@gsc-basic/components 1.1.7 → 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/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 +3 -3
- 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 +3 -3
- 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/{node_modules/@tanstack/store/dist/esm/types.js → _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/es/node_modules/lodash-es/_baseIsNaN.js +19 -0
- 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/lodash-es/_cacheHas.js +19 -0
- 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/node_modules/title-case/dist/index.js +20 -0
- 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 +3 -3
- 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 +3 -3
- 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/node_modules/title-case/dist/index.js +14 -0
- 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/package.json +28 -29
- 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/lib/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
|
@@ -7,8 +7,851 @@ 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{EditorSelection as e,StateField as t,Transaction as n,Facet as r,combineConfig as o,StateEffect as l,ChangeSet as s,ChangeDesc as i,Annotation as a,countColumn as c,Text as f,findClusterBreak as u}from"../../state/dist/index.js";import{EditorView as h,Direction as m}from"../../view/dist/index.js";import{IndentContext as d,getIndentation as p,indentString as g,syntaxTree as y,matchBrackets as v,getIndentUnit as A,indentUnit as k}from"../../language/dist/index.js";import{NodeProp as w}from"../../../@lezer/common/dist/index.js";const D=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=C(e.state,n.from);return r.line?x(e):!!r.block&&B(e)};function S(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=e(t,n);return!!o&&(r(n.update(o)),!0)}}const x=/* @__PURE__ */S(E,0),M=/* @__PURE__ */S(b,0),B=/* @__PURE__ */S((e,t)=>b(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),o=n.to<=r.to?r:e.doc.lineAt(n.to);o.from>r.from&&o.from==n.to&&(o=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let l=t.length-1;l>=0&&t[l].to>r.from?t[l].to=o.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}(t)),0);function C(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}const O=50;function b(e,t,n=t.selection.ranges){let r=n.map(e=>C(t,e.from).block);if(!r.every(e=>e))return null;let o=n.map((e,n)=>function(e,{open:t,close:n},r,o){let l,s,i=e.sliceDoc(r-O,r),a=e.sliceDoc(o,o+O),c=/\s*$/.exec(i)[0].length,f=/^\s*/.exec(a)[0].length,u=i.length-c;if(i.slice(u-t.length,u)==t&&a.slice(f,f+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:o+f,margin:f&&1}};o-r<=2*O?l=s=e.sliceDoc(r,o):(l=e.sliceDoc(r,r+O),s=e.sliceDoc(o-O,o));let h=/^\s*/.exec(l)[0].length,m=/\s*$/.exec(s)[0].length,d=s.length-m-n.length;return l.slice(h,h+t.length)==t&&s.slice(d,d+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(l.charAt(h+t.length))?1:0},close:{pos:o-m-n.length,margin:/\s/.test(s.charAt(d-1))?1:0}}:null}(t,r[n],e.from,e.to));if(2!=e&&!o.every(e=>e))return{changes:t.changes(n.map((e,t)=>o[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]))};if(1!=e&&o.some(e=>e)){let e=[];for(let t,n=0;n<o.length;n++)if(t=o[n]){let o=r[n],{open:l,close:s}=t;e.push({from:l.pos-o.open.length,to:l.pos+l.margin},{from:s.pos-s.margin,to:s.pos+o.close.length})}return{changes:e}}return null}function E(e,t,n=t.selection.ranges){let r=[],o=-1;e:for(let{from:l,to:s}of n){let e,n=r.length,i=1e9;for(let a=l;a<=s;){let n=t.doc.lineAt(a);if(null==e&&(e=C(t,n.from).line,!e))continue e;if(n.from>o&&(l==s||s>n.from)){o=n.from;let t=/^\s*/.exec(n.text)[0].length,l=t==n.length,s=n.text.slice(t,t+e.length)==e?t:-1;t<n.text.length&&t<i&&(i=t),r.push({line:n,comment:s,token:e,indent:t,empty:l,single:!1})}a=n.to+1}if(i<1e9)for(let t=n;t<r.length;t++)r[t].indent<r[t].line.text.length&&(r[t].indent=i);r.length==n+1&&(r[n].single=!0)}if(2!=e&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:o,indent:l,empty:s,single:i}of r)!i&&s||e.push({from:t.from+l,insert:o+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:o}of r)if(n>=0){let r=t.from+n,l=r+o.length;" "==t.text[l-t.from]&&l++,e.push({from:r,to:l})}return{changes:e}}return null}const T=/* @__PURE__ */a.define(),V=/* @__PURE__ */a.define(),I=/* @__PURE__ */r.define(),R=/* @__PURE__ */r.define({combine:e=>o(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),J=/* @__PURE__ */t.define({create:()=>Z.empty,update(e,t){let r=t.state.facet(R),o=t.annotation(T);if(o){let n=G.fromTransaction(t,o.selection),l=o.side,s=0==l?e.undone:e.done;return s=n?P(s,s.length,r.minDepth,n):W(s,t.startState.selection),new Z(0==l?o.rest:s,0==l?s:o.rest)}let l=t.annotation(V);if("full"!=l&&"before"!=l||(e=e.isolate()),!1===t.annotation(n.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=G.fromTransaction(t),i=t.annotation(n.time),a=t.annotation(n.userEvent);return s?e=e.addChanges(s,i,a,r,t):t.selection&&(e=e.addSelection(t.startState.selection,i,a,r.newGroupDelay)),"full"!=l&&"after"!=l||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new Z(e.done.map(G.fromJSON),e.undone.map(G.fromJSON))});function N(e={}){return[J,R.of(e),h.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?U:"historyRedo"==e.inputType?H:null;return!!n&&(e.preventDefault(),n(t))}})]}function L(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let o=n.field(J,!1);if(!o)return!1;let l=o.pop(e,n,t);return!!l&&(r(l),!0)}}const U=/* @__PURE__ */L(0,!1),H=/* @__PURE__ */L(1,!1),j=/* @__PURE__ */L(0,!0),z=/* @__PURE__ */L(1,!0);class G{constructor(e,t,n,r,o){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=o}setSelAfter(e){return new G(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new G(t.changes&&s.fromJSON(t.changes),[],t.mapped&&i.fromJSON(t.mapped),t.startSelection&&e.fromJSON(t.startSelection),t.selectionsAfter.map(e.fromJSON))}static fromTransaction(e,t){let n=$;for(let r of e.startState.facet(I)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new G(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,$)}static selection(e){return new G(void 0,$,void 0,void 0,e)}}function P(e,t,n,r){let o=t+1>n+20?t-n-1:0,l=e.slice(o,t);return l.push(r),l}function q(e,t){return e.length?t.length?e.concat(t):e:t}const $=[],F=200;function W(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-F));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),P(e,e.length-1,1e9,n.setSelAfter(r)))}return[G.selection([t])]}function K(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Q(e,t){if(!e.length)return e;let n=e.length,r=$;for(;n;){let o=X(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let t=e.slice(0,n);return t[n-1]=o,t}t=o.mapped,n--,r=o.selectionsAfter}return r.length?[G.selection(r)]:$}function X(e,t,n){let r=q(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):$,n);if(!e.changes)return G.selection(r);let o=e.changes.map(t),s=t.mapDesc(e.changes,!0),i=e.mapped?e.mapped.composeDesc(s):s;return new G(o,l.mapEffects(e.effects,t),i,e.startSelection.map(s),r)}const Y=/^(input\.type|delete)($|\.)/;class Z{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Z(this.done,this.undone):this}addChanges(e,t,n,r,o){let s=this.done,i=s[s.length-1];return s=i&&i.changes&&!i.changes.empty&&e.changes&&(!n||Y.test(n))&&(!i.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(o,function(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,o,l)=>{for(let s=0;s<n.length;){let e=n[s++],t=n[s++];l>=e&&o<=t&&(r=!0)}}),r}(i.changes,e.changes))||"input.type.compose"==n)?P(s,s.length-1,r.minDepth,new G(e.changes.compose(i.changes),q(l.mapEffects(e.effects,i.changes),i.effects),i.mapped,i.startSelection,$)):P(s,s.length,r.minDepth,e),new Z(s,$,t,n)}addSelection(e,t,n,r){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:$;return o.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(l=o[o.length-1],s=e,l.ranges.length==s.ranges.length&&0===l.ranges.filter((e,t)=>e.empty!=s.ranges[t].empty).length)?this:new Z(W(this.done,e),this.undone,t,n);var l,s}addMapping(e){return new Z(Q(this.done,e),Q(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let o=r[r.length-1],l=o.selectionsAfter[0]||(o.startSelection?o.startSelection.map(o.changes.invertedDesc,1):t.selection);if(n&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:T.of({side:e,rest:K(r),selection:l}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let n=1==r.length?$:r.slice(0,r.length-1);return o.mapped&&(n=Q(n,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:T.of({side:e,rest:n,selection:l}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Z.empty=/* @__PURE__ */new Z($,$);const _=[{key:"Mod-z",run:U,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:H,preventDefault:!0},{linux:"Ctrl-Shift-z",run:H,preventDefault:!0},{key:"Mod-u",run:j,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:z,preventDefault:!0}];function ee(t,n){return e.create(t.ranges.map(n),t.mainIndex)}function te(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function ne({state:e,dispatch:t},n){let r=ee(e.selection,n);return!r.eq(e.selection,!0)&&(t(te(e,r)),!0)}function re(t,n){return e.cursor(n?t.to:t.from)}function oe(e,t){return ne(e,n=>n.empty?e.moveByChar(n,t):re(n,t))}function le(e){return e.textDirectionAt(e.state.selection.main.head)==m.LTR}const se=e=>oe(e,!le(e)),ie=e=>oe(e,le(e));function ae(e,t){return ne(e,n=>n.empty?e.moveByGroup(n,t):re(n,t))}const ce=e=>ae(e,!le(e)),fe=e=>ae(e,le(e));function ue(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function he(t,n,r){let o,l,s=y(t).resolveInner(n.head),i=r?w.closedBy:w.openedBy;for(let e=n.head;;){let n=r?s.childAfter(e):s.childBefore(e);if(!n)break;ue(t,n,i)?s=n:e=r?n.to:n.from}return l=s.type.prop(i)&&(o=r?v(t,s.from,1):v(t,s.to,-1))&&o.matched?r?o.end.to:o.end.from:r?s.to:s.from,e.cursor(l,r?-1:1)}const me=e=>ne(e,t=>he(e.state,t,!le(e))),de=e=>ne(e,t=>he(e.state,t,le(e)));function pe(e,t){return ne(e,n=>{if(!n.empty)return re(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const ge=e=>pe(e,!1),ye=e=>pe(e,!0);function ve(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,o=0;if(n){for(let t of e.state.facet(h.scrollMargins)){let n=t(e);(null==n?void 0:n.top)&&(r=Math.max(null==n?void 0:n.top,r)),(null==n?void 0:n.bottom)&&(o=Math.max(null==n?void 0:n.bottom,o))}t=e.scrollDOM.clientHeight-r-o}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:o,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function Ae(e,t){let n,r=ve(e),{state:o}=e,l=ee(o.selection,n=>n.empty?e.moveVertically(n,t,r.height):re(n,t));if(l.eq(o.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(o.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),i=s.top+r.marginTop,a=s.bottom-r.marginBottom;t&&t.top>i&&t.bottom<a&&(n=h.scrollIntoView(l.main.head,{y:"start",yMargin:t.top-i}))}return e.dispatch(te(o,l),{effects:n}),!0}const ke=e=>Ae(e,!1),we=e=>Ae(e,!0);function De(t,n,r){let o=t.lineBlockAt(n.head),l=t.moveToLineBoundary(n,r);if(l.head==n.head&&l.head!=(r?o.to:o.from)&&(l=t.moveToLineBoundary(n,r,!1)),!r&&l.head==o.from&&o.length){let r=/^\s*/.exec(t.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;r&&n.head!=o.from+r&&(l=e.cursor(o.from+r))}return l}const Se=e=>ne(e,t=>De(e,t,!0)),xe=e=>ne(e,t=>De(e,t,!1)),Me=e=>ne(e,t=>De(e,t,!le(e))),Be=e=>ne(e,t=>De(e,t,le(e))),Ce=t=>ne(t,n=>e.cursor(t.lineBlockAt(n.head).from,1)),Oe=t=>ne(t,n=>e.cursor(t.lineBlockAt(n.head).to,-1));const be=({state:t,dispatch:n})=>function(t,n){let r=!1,o=ee(t.selection,n=>{let o=v(t,n.head,-1)||v(t,n.head,1)||n.head>0&&v(t,n.head-1,1)||n.head<t.doc.length&&v(t,n.head+1,-1);if(!o||!o.end)return n;r=!0;let l=o.start.from==n.head?o.end.to:o.end.from;return e.cursor(l)});return!!r&&(n(te(t,o)),!0)}(t,n);function Ee(t,n){let r=ee(t.state.selection,t=>{let r=n(t);return e.range(t.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return!r.eq(t.state.selection)&&(t.dispatch(te(t.state,r)),!0)}function Te(e,t){return Ee(e,n=>e.moveByChar(n,t))}const Ve=e=>Te(e,!le(e)),Ie=e=>Te(e,le(e));function Re(e,t){return Ee(e,n=>e.moveByGroup(n,t))}const Je=e=>Re(e,!le(e)),Ne=e=>Re(e,le(e)),Le=e=>Ee(e,t=>he(e.state,t,!le(e))),Ue=e=>Ee(e,t=>he(e.state,t,le(e)));function He(e,t){return Ee(e,n=>e.moveVertically(n,t))}const je=e=>He(e,!1),ze=e=>He(e,!0);function Ge(e,t){return Ee(e,n=>e.moveVertically(n,t,ve(e).height))}const Pe=e=>Ge(e,!1),qe=e=>Ge(e,!0),$e=e=>Ee(e,t=>De(e,t,!0)),Fe=e=>Ee(e,t=>De(e,t,!1)),We=e=>Ee(e,t=>De(e,t,!le(e))),Ke=e=>Ee(e,t=>De(e,t,le(e))),Qe=t=>Ee(t,n=>e.cursor(t.lineBlockAt(n.head).from)),Xe=t=>Ee(t,n=>e.cursor(t.lineBlockAt(n.head).to)),Ye=({state:e,dispatch:t})=>(t(te(e,{anchor:0})),!0),Ze=({state:e,dispatch:t})=>(t(te(e,{anchor:e.doc.length})),!0),_e=({state:e,dispatch:t})=>(t(te(e,{anchor:e.selection.main.anchor,head:0})),!0),et=({state:e,dispatch:t})=>(t(te(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),tt=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),nt=({state:t,dispatch:n})=>{let r=wt(t).map(({from:n,to:r})=>e.range(n,Math.min(r+1,t.doc.length)));return n(t.update({selection:e.create(r),userEvent:"select"})),!0},rt=({state:t,dispatch:n})=>{let r=ee(t.selection,n=>{let r=y(t),o=r.resolveStack(n.from,1);if(n.empty){let e=r.resolveStack(n.from,-1);e.node.from>=o.node.from&&e.node.to<=o.node.to&&(o=e)}for(let t=o;t;t=t.next){let{node:r}=t;if((r.from<n.from&&r.to>=n.to||r.to>n.to&&r.from<=n.from)&&t.next)return e.range(r.to,r.from)}return n});return!r.eq(t.selection)&&(n(te(t,r)),!0)};function ot(t,n){let{state:r}=t,o=r.selection,l=r.selection.ranges.slice();for(let e of r.selection.ranges){let o=r.doc.lineAt(e.head);if(n?o.to<t.state.doc.length:o.from>0)for(let r=e;;){let e=t.moveVertically(r,n);if(e.head<o.from||e.head>o.to){l.some(t=>t.head==e.head)||l.push(e);break}if(e.head==r.head)break;r=e}}return l.length!=o.ranges.length&&(t.dispatch(te(r,e.create(l,l.length-1))),!0)}const lt=e=>ot(e,!1),st=e=>ot(e,!0),it=({state:t,dispatch:n})=>{let r=t.selection,o=null;return r.ranges.length>1?o=e.create([r.main]):r.main.empty||(o=e.create([e.cursor(r.main.head)])),!!o&&(n(te(t,o)),!0)};function at(t,n){if(t.state.readOnly)return!1;let r="delete.selection",{state:o}=t,l=o.changeByRange(o=>{let{from:l,to:s}=o;if(l==s){let e=n(o);e<l?(r="delete.backward",e=ct(t,e,!1)):e>l&&(r="delete.forward",e=ct(t,e,!0)),l=Math.min(l,e),s=Math.max(s,e)}else l=ct(t,l,!1),s=ct(t,s,!0);return l==s?{range:o}:{changes:{from:l,to:s},range:e.cursor(l,l<o.head?-1:1)}});return!l.changes.empty&&(t.dispatch(o.update(l,{scrollIntoView:!0,userEvent:r,effects:"delete.selection"==r?h.announce.of(o.phrase("Selection deleted")):void 0})),!0)}function ct(e,t,n){if(e instanceof h)for(let r of e.state.facet(h.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}const ft=(e,t,n)=>at(e,r=>{let o,l,s=r.from,{state:i}=e,a=i.doc.lineAt(s);if(n&&!t&&s>a.from&&s<a.from+200&&!/[^ \t]/.test(o=a.text.slice(0,s-a.from))){if("\t"==o[o.length-1])return s-1;let e=c(o,i.tabSize)%A(i)||A(i);for(let t=0;t<e&&" "==o[o.length-1-t];t++)s--;l=s}else l=u(a.text,s-a.from,t,t)+a.from,l==s&&a.number!=(t?i.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(a.text.slice(l-a.from,s-a.from))&&(l=u(a.text,l-a.from,!1,!1)+a.from);return l}),ut=e=>ft(e,!1,!0),ht=e=>ft(e,!0,!1),mt=(e,t)=>at(e,n=>{let r=n.head,{state:o}=e,l=o.doc.lineAt(r),s=o.charCategorizer(r);for(let e=null;;){if(r==(t?l.to:l.from)){r==n.head&&l.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}let i=u(l.text,r-l.from,t)+l.from,a=l.text.slice(Math.min(r,i)-l.from,Math.max(r,i)-l.from),c=s(a);if(null!=e&&c!=e)break;" "==a&&r==n.head||(e=c),r=i}return r}),dt=e=>mt(e,!1),pt=e=>mt(e,!0),gt=e=>at(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),yt=e=>at(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),vt=e=>at(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),At=({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:f.of(["",""])},range:e.cursor(t.from)}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0},kt=({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{if(!n.empty||0==n.from||n.from==t.doc.length)return{range:n};let r=n.from,o=t.doc.lineAt(r),l=r==o.from?r-1:u(o.text,r-o.from,!1)+o.from,s=r==o.to?r+1:u(o.text,r-o.from,!0)+o.from;return{changes:{from:l,to:s,insert:t.doc.slice(r,s).append(t.doc.slice(l,r))},range:e.cursor(s)}});return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function wt(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),l=e.doc.lineAt(r.to);if(r.empty||r.to!=l.from||(l=e.doc.lineAt(r.to-1)),n>=o.number){let e=t[t.length-1];e.to=l.to,e.ranges.push(r)}else t.push({from:o.from,to:l.to,ranges:[r]});n=l.number+1}return t}function Dt(t,n,r){if(t.readOnly)return!1;let o=[],l=[];for(let s of wt(t)){if(r?s.to==t.doc.length:0==s.from)continue;let n=t.doc.lineAt(r?s.to+1:s.from-1),i=n.length+1;if(r){o.push({from:s.to,to:n.to},{from:s.from,insert:n.text+t.lineBreak});for(let n of s.ranges)l.push(e.range(Math.min(t.doc.length,n.anchor+i),Math.min(t.doc.length,n.head+i)))}else{o.push({from:n.from,to:s.from},{from:s.to,insert:t.lineBreak+n.text});for(let t of s.ranges)l.push(e.range(t.anchor-i,t.head-i))}}return!!o.length&&(n(t.update({changes:o,scrollIntoView:!0,selection:e.create(l,t.selection.mainIndex),userEvent:"move.line"})),!0)}const St=({state:e,dispatch:t})=>Dt(e,t,!1),xt=({state:e,dispatch:t})=>Dt(e,t,!0);function Mt(e,t,n){if(e.readOnly)return!1;let r=[];for(let l of wt(e))n?r.push({from:l.from,insert:e.doc.slice(l.from,l.to)+e.lineBreak}):r.push({from:l.to,insert:e.lineBreak+e.doc.slice(l.from,l.to)});let o=e.changes(r);return t(e.update({changes:o,selection:e.selection.map(o,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Bt=({state:e,dispatch:t})=>Mt(e,t,!1),Ct=({state:e,dispatch:t})=>Mt(e,t,!0),Ot=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(wt(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=ee(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),o=e.coordsAtPos(t.head,t.assoc||1);o&&(n=r.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};const bt=/* @__PURE__ */Tt(!1),Et=/* @__PURE__ */Tt(!0);function Tt(t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=n.changeByRange(r=>{let{from:o,to:l}=r,s=n.doc.lineAt(o),i=!t&&o==l&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=y(e).resolveInner(t),o=r.childBefore(t),l=r.childAfter(t);return o&&l&&o.to<=t&&l.from>=t&&(n=o.type.prop(w.closedBy))&&n.indexOf(l.name)>-1&&e.doc.lineAt(o.to).from==e.doc.lineAt(l.from).from&&!/\S/.test(e.sliceDoc(o.to,l.from))?{from:o.to,to:l.from}:null}(n,o);t&&(o=l=(l<=s.to?s:n.doc.lineAt(l)).to);let a=new d(n,{simulateBreak:o,simulateDoubleBreak:!!i}),u=p(a,o);for(null==u&&(u=c(/^\s*/.exec(n.doc.lineAt(o).text)[0],n.tabSize));l<s.to&&/\s/.test(s.text[l-s.from]);)l++;i?({from:o,to:l}=i):o>s.from&&o<s.from+100&&!/\S/.test(s.text.slice(0,o))&&(o=s.from);let h=["",g(n,u)];return i&&h.push(g(n,a.lineIndent(s.from,-1))),{changes:{from:o,to:l,insert:f.of(h)},range:e.cursor(o+1+h[1].length)}});return r(n.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function Vt(t,n){let r=-1;return t.changeByRange(o=>{let l=[];for(let e=o.from;e<=o.to;){let s=t.doc.lineAt(e);s.number>r&&(o.empty||o.to>s.from)&&(n(s,l,o),r=s.number),e=s.to+1}let s=t.changes(l);return{changes:l,range:e.range(s.mapPos(o.anchor,1),s.mapPos(o.head,1))}})}const It=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=/* @__PURE__ */Object.create(null),r=new d(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),o=Vt(e,(t,o,l)=>{let s=p(r,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let i=/^\s*/.exec(t.text)[0],a=g(e,s);(i!=a||l.from<t.from+i.length)&&(n[t.from]=s,o.push({from:t.from,to:t.from+i.length,insert:a}))});return o.changes.empty||t(e.update(o,{userEvent:"indent"})),!0},Rt=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Vt(e,(t,n)=>{n.push({from:t.from,insert:e.facet(k)})}),{userEvent:"input.indent"})),!0),Jt=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Vt(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let o=c(r,e.tabSize),l=0,s=g(e,Math.max(0,o-A(e)));for(;l<r.length&&l<s.length&&r.charCodeAt(l)==s.charCodeAt(l);)l++;n.push({from:t.from+l,to:t.from+r.length,insert:s.slice(l)})}),{userEvent:"delete.dedent"})),!0),Nt=e=>(e.setTabFocusMode(),!0),Lt=[{key:"Ctrl-b",run:se,shift:Ve,preventDefault:!0},{key:"Ctrl-f",run:ie,shift:Ie},{key:"Ctrl-p",run:ge,shift:je},{key:"Ctrl-n",run:ye,shift:ze},{key:"Ctrl-a",run:Ce,shift:Qe},{key:"Ctrl-e",run:Oe,shift:Xe},{key:"Ctrl-d",run:ht},{key:"Ctrl-h",run:ut},{key:"Ctrl-k",run:gt},{key:"Ctrl-Alt-h",run:dt},{key:"Ctrl-o",run:At},{key:"Ctrl-t",run:kt},{key:"Ctrl-v",run:we}],Ut=/* @__PURE__ */[{key:"ArrowLeft",run:se,shift:Ve,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:ce,shift:Je,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Me,shift:We,preventDefault:!0},{key:"ArrowRight",run:ie,shift:Ie,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:fe,shift:Ne,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Be,shift:Ke,preventDefault:!0},{key:"ArrowUp",run:ge,shift:je,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Ye,shift:_e},{mac:"Ctrl-ArrowUp",run:ke,shift:Pe},{key:"ArrowDown",run:ye,shift:ze,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Ze,shift:et},{mac:"Ctrl-ArrowDown",run:we,shift:qe},{key:"PageUp",run:ke,shift:Pe},{key:"PageDown",run:we,shift:qe},{key:"Home",run:xe,shift:Fe,preventDefault:!0},{key:"Mod-Home",run:Ye,shift:_e},{key:"End",run:Se,shift:$e,preventDefault:!0},{key:"Mod-End",run:Ze,shift:et},{key:"Enter",run:bt,shift:bt},{key:"Mod-a",run:tt},{key:"Backspace",run:ut,shift:ut,preventDefault:!0},{key:"Delete",run:ht,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:dt,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:pt,preventDefault:!0},{mac:"Mod-Backspace",run:yt,preventDefault:!0},{mac:"Mod-Delete",run:vt,preventDefault:!0}].concat(/* @__PURE__ */Lt.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Ht=/* @__PURE__ */[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:me,shift:Le},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:de,shift:Ue},{key:"Alt-ArrowUp",run:St},{key:"Shift-Alt-ArrowUp",run:Bt},{key:"Alt-ArrowDown",run:xt},{key:"Shift-Alt-ArrowDown",run:Ct},{key:"Mod-Alt-ArrowUp",run:lt},{key:"Mod-Alt-ArrowDown",run:st},{key:"Escape",run:it},{key:"Mod-Enter",run:Et},{key:"Alt-l",mac:"Ctrl-l",run:nt},{key:"Mod-i",run:rt,preventDefault:!0},{key:"Mod-[",run:Jt},{key:"Mod-]",run:Rt},{key:"Mod-Alt-\\",run:It},{key:"Shift-Mod-k",run:Ot},{key:"Shift-Mod-\\",run:be},{key:"Mod-/",run:D},{key:"Alt-A",run:M},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Nt}].concat(Ut),jt={key:"Tab",run:Rt,shift:Jt};export{lt as addCursorAbove,st as addCursorBelow,Ct as copyLineDown,Bt as copyLineUp,se as cursorCharLeft,ie as cursorCharRight,Ze as cursorDocEnd,Ye as cursorDocStart,ce as cursorGroupLeft,fe as cursorGroupRight,xe as cursorLineBoundaryBackward,Se as cursorLineBoundaryForward,Me as cursorLineBoundaryLeft,Be as cursorLineBoundaryRight,ye as cursorLineDown,Oe as cursorLineEnd,Ce as cursorLineStart,ge as cursorLineUp,be as cursorMatchingBracket,we as cursorPageDown,ke as cursorPageUp,me as cursorSyntaxLeft,de as cursorSyntaxRight,Ht as defaultKeymap,ut as deleteCharBackward,ht as deleteCharForward,dt as deleteGroupBackward,pt as deleteGroupForward,Ot as deleteLine,yt as deleteLineBoundaryBackward,vt as deleteLineBoundaryForward,gt as deleteToLineEnd,Lt as emacsStyleKeymap,N as history,_ as historyKeymap,Jt as indentLess,Rt as indentMore,It as indentSelection,jt as indentWithTab,Et as insertBlankLine,bt as insertNewlineAndIndent,I as invertedEffects,V as isolateHistory,xt as moveLineDown,St as moveLineUp,H as redo,z as redoSelection,tt as selectAll,Ve as selectCharLeft,Ie as selectCharRight,et as selectDocEnd,_e as selectDocStart,Je as selectGroupLeft,Ne as selectGroupRight,nt as selectLine,Fe as selectLineBoundaryBackward,$e as selectLineBoundaryForward,We as selectLineBoundaryLeft,Ke as selectLineBoundaryRight,ze as selectLineDown,Xe as selectLineEnd,Qe as selectLineStart,je as selectLineUp,qe as selectPageDown,Pe as selectPageUp,rt as selectParentSyntax,Le as selectSyntaxLeft,Ue as selectSyntaxRight,it as simplifySelection,At as splitLine,Ut as standardKeymap,M as toggleBlockComment,B as toggleBlockCommentByLine,D as toggleComment,x as toggleLineComment,Nt as toggleTabFocusMode,kt as transposeChars,U as undo,j as undoSelection};
|
|
14
|
+
import { EditorSelection as h, StateField as qe, Transaction as P, Facet as oe, combineConfig as Ke, StateEffect as le, ChangeSet as $e, ChangeDesc as We, Annotation as ce, countColumn as $, Text as se, findClusterBreak as E } from "../../state/dist/index.js";
|
|
15
|
+
import { EditorView as x, Direction as Qe } from "../../view/dist/index.js";
|
|
16
|
+
import { IndentContext as ie, getIndentation as ue, indentString as v, syntaxTree as W, matchBrackets as D, getIndentUnit as G, indentUnit as Xe } from "../../language/dist/index.js";
|
|
17
|
+
import { NodeProp as F } from "../../../@lezer/common/dist/index.js";
|
|
18
|
+
const Ye = (e) => {
|
|
19
|
+
let { state: t } = e, r = t.doc.lineAt(t.selection.main.from), n = X(e.state, r.from);
|
|
20
|
+
return n.line ? Ze(e) : n.block ? _e(e) : !1;
|
|
21
|
+
};
|
|
22
|
+
function Q(e, t) {
|
|
23
|
+
return ({ state: r, dispatch: n }) => {
|
|
24
|
+
if (r.readOnly)
|
|
25
|
+
return !1;
|
|
26
|
+
let l = e(t, r);
|
|
27
|
+
return l ? (n(r.update(l)), !0) : !1;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const Ze = /* @__PURE__ */ Q(
|
|
31
|
+
tt,
|
|
32
|
+
0
|
|
33
|
+
/* CommentOption.Toggle */
|
|
34
|
+
), je = /* @__PURE__ */ Q(
|
|
35
|
+
fe,
|
|
36
|
+
0
|
|
37
|
+
/* CommentOption.Toggle */
|
|
38
|
+
), _e = /* @__PURE__ */ Q(
|
|
39
|
+
(e, t) => fe(e, t, et(t)),
|
|
40
|
+
0
|
|
41
|
+
/* CommentOption.Toggle */
|
|
42
|
+
);
|
|
43
|
+
function X(e, t) {
|
|
44
|
+
let r = e.languageDataAt("commentTokens", t, 1);
|
|
45
|
+
return r.length ? r[0] : {};
|
|
46
|
+
}
|
|
47
|
+
const M = 50;
|
|
48
|
+
function we(e, { open: t, close: r }, n, l) {
|
|
49
|
+
let o = e.sliceDoc(n - M, n), c = e.sliceDoc(l, l + M), s = /\s*$/.exec(o)[0].length, i = /^\s*/.exec(c)[0].length, f = o.length - s;
|
|
50
|
+
if (o.slice(f - t.length, f) == t && c.slice(i, i + r.length) == r)
|
|
51
|
+
return {
|
|
52
|
+
open: { pos: n - s, margin: s && 1 },
|
|
53
|
+
close: { pos: l + i, margin: i && 1 }
|
|
54
|
+
};
|
|
55
|
+
let u, a;
|
|
56
|
+
l - n <= 2 * M ? u = a = e.sliceDoc(n, l) : (u = e.sliceDoc(n, n + M), a = e.sliceDoc(l - M, l));
|
|
57
|
+
let p = /^\s*/.exec(u)[0].length, T = /\s*$/.exec(a)[0].length, L = a.length - T - r.length;
|
|
58
|
+
return u.slice(p, p + t.length) == t && a.slice(L, L + r.length) == r ? {
|
|
59
|
+
open: {
|
|
60
|
+
pos: n + p + t.length,
|
|
61
|
+
margin: /\s/.test(u.charAt(p + t.length)) ? 1 : 0
|
|
62
|
+
},
|
|
63
|
+
close: {
|
|
64
|
+
pos: l - T - r.length,
|
|
65
|
+
margin: /\s/.test(a.charAt(L - 1)) ? 1 : 0
|
|
66
|
+
}
|
|
67
|
+
} : null;
|
|
68
|
+
}
|
|
69
|
+
function et(e) {
|
|
70
|
+
let t = [];
|
|
71
|
+
for (let r of e.selection.ranges) {
|
|
72
|
+
let n = e.doc.lineAt(r.from), l = r.to <= n.to ? n : e.doc.lineAt(r.to);
|
|
73
|
+
l.from > n.from && l.from == r.to && (l = r.to == n.to + 1 ? n : e.doc.lineAt(r.to - 1));
|
|
74
|
+
let o = t.length - 1;
|
|
75
|
+
o >= 0 && t[o].to > n.from ? t[o].to = l.to : t.push({ from: n.from + /^\s*/.exec(n.text)[0].length, to: l.to });
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
}
|
|
79
|
+
function fe(e, t, r = t.selection.ranges) {
|
|
80
|
+
let n = r.map((o) => X(t, o.from).block);
|
|
81
|
+
if (!n.every((o) => o))
|
|
82
|
+
return null;
|
|
83
|
+
let l = r.map((o, c) => we(t, n[c], o.from, o.to));
|
|
84
|
+
if (e != 2 && !l.every((o) => o))
|
|
85
|
+
return { changes: t.changes(r.map((o, c) => l[c] ? [] : [{ from: o.from, insert: n[c].open + " " }, { from: o.to, insert: " " + n[c].close }])) };
|
|
86
|
+
if (e != 1 && l.some((o) => o)) {
|
|
87
|
+
let o = [];
|
|
88
|
+
for (let c = 0, s; c < l.length; c++)
|
|
89
|
+
if (s = l[c]) {
|
|
90
|
+
let i = n[c], { open: f, close: u } = s;
|
|
91
|
+
o.push({ from: f.pos - i.open.length, to: f.pos + f.margin }, { from: u.pos - u.margin, to: u.pos + i.close.length });
|
|
92
|
+
}
|
|
93
|
+
return { changes: o };
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
function tt(e, t, r = t.selection.ranges) {
|
|
98
|
+
let n = [], l = -1;
|
|
99
|
+
e: for (let { from: o, to: c } of r) {
|
|
100
|
+
let s = n.length, i = 1e9, f;
|
|
101
|
+
for (let u = o; u <= c; ) {
|
|
102
|
+
let a = t.doc.lineAt(u);
|
|
103
|
+
if (f == null && (f = X(t, a.from).line, !f))
|
|
104
|
+
continue e;
|
|
105
|
+
if (a.from > l && (o == c || c > a.from)) {
|
|
106
|
+
l = a.from;
|
|
107
|
+
let p = /^\s*/.exec(a.text)[0].length, T = p == a.length, L = a.text.slice(p, p + f.length) == f ? p : -1;
|
|
108
|
+
p < a.text.length && p < i && (i = p), n.push({ line: a, comment: L, token: f, indent: p, empty: T, single: !1 });
|
|
109
|
+
}
|
|
110
|
+
u = a.to + 1;
|
|
111
|
+
}
|
|
112
|
+
if (i < 1e9)
|
|
113
|
+
for (let u = s; u < n.length; u++)
|
|
114
|
+
n[u].indent < n[u].line.text.length && (n[u].indent = i);
|
|
115
|
+
n.length == s + 1 && (n[s].single = !0);
|
|
116
|
+
}
|
|
117
|
+
if (e != 2 && n.some((o) => o.comment < 0 && (!o.empty || o.single))) {
|
|
118
|
+
let o = [];
|
|
119
|
+
for (let { line: s, token: i, indent: f, empty: u, single: a } of n)
|
|
120
|
+
(a || !u) && o.push({ from: s.from + f, insert: i + " " });
|
|
121
|
+
let c = t.changes(o);
|
|
122
|
+
return { changes: c, selection: t.selection.map(c, 1) };
|
|
123
|
+
} else if (e != 1 && n.some((o) => o.comment >= 0)) {
|
|
124
|
+
let o = [];
|
|
125
|
+
for (let { line: c, comment: s, token: i } of n)
|
|
126
|
+
if (s >= 0) {
|
|
127
|
+
let f = c.from + s, u = f + i.length;
|
|
128
|
+
c.text[u - c.from] == " " && u++, o.push({ from: f, to: u });
|
|
129
|
+
}
|
|
130
|
+
return { changes: o };
|
|
131
|
+
}
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
const z = /* @__PURE__ */ ce.define(), nt = /* @__PURE__ */ ce.define(), rt = /* @__PURE__ */ oe.define(), ae = /* @__PURE__ */ oe.define({
|
|
135
|
+
combine(e) {
|
|
136
|
+
return Ke(e, {
|
|
137
|
+
minDepth: 100,
|
|
138
|
+
newGroupDelay: 500,
|
|
139
|
+
joinToEvent: (t, r) => r
|
|
140
|
+
}, {
|
|
141
|
+
minDepth: Math.max,
|
|
142
|
+
newGroupDelay: Math.min,
|
|
143
|
+
joinToEvent: (t, r) => (n, l) => t(n, l) || r(n, l)
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}), he = /* @__PURE__ */ qe.define({
|
|
147
|
+
create() {
|
|
148
|
+
return B.empty;
|
|
149
|
+
},
|
|
150
|
+
update(e, t) {
|
|
151
|
+
let r = t.state.facet(ae), n = t.annotation(z);
|
|
152
|
+
if (n) {
|
|
153
|
+
let i = m.fromTransaction(t, n.selection), f = n.side, u = f == 0 ? e.undone : e.done;
|
|
154
|
+
return i ? u = R(u, u.length, r.minDepth, i) : u = pe(u, t.startState.selection), new B(f == 0 ? n.rest : u, f == 0 ? u : n.rest);
|
|
155
|
+
}
|
|
156
|
+
let l = t.annotation(nt);
|
|
157
|
+
if ((l == "full" || l == "before") && (e = e.isolate()), t.annotation(P.addToHistory) === !1)
|
|
158
|
+
return t.changes.empty ? e : e.addMapping(t.changes.desc);
|
|
159
|
+
let o = m.fromTransaction(t), c = t.annotation(P.time), s = t.annotation(P.userEvent);
|
|
160
|
+
return o ? e = e.addChanges(o, c, s, r, t) : t.selection && (e = e.addSelection(t.startState.selection, c, s, r.newGroupDelay)), (l == "full" || l == "after") && (e = e.isolate()), e;
|
|
161
|
+
},
|
|
162
|
+
toJSON(e) {
|
|
163
|
+
return { done: e.done.map((t) => t.toJSON()), undone: e.undone.map((t) => t.toJSON()) };
|
|
164
|
+
},
|
|
165
|
+
fromJSON(e) {
|
|
166
|
+
return new B(e.done.map(m.fromJSON), e.undone.map(m.fromJSON));
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
function un(e = {}) {
|
|
170
|
+
return [
|
|
171
|
+
he,
|
|
172
|
+
ae.of(e),
|
|
173
|
+
x.domEventHandlers({
|
|
174
|
+
beforeinput(t, r) {
|
|
175
|
+
let n = t.inputType == "historyUndo" ? de : t.inputType == "historyRedo" ? H : null;
|
|
176
|
+
return n ? (t.preventDefault(), n(r)) : !1;
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
];
|
|
180
|
+
}
|
|
181
|
+
function I(e, t) {
|
|
182
|
+
return function({ state: r, dispatch: n }) {
|
|
183
|
+
if (!t && r.readOnly)
|
|
184
|
+
return !1;
|
|
185
|
+
let l = r.field(he, !1);
|
|
186
|
+
if (!l)
|
|
187
|
+
return !1;
|
|
188
|
+
let o = l.pop(e, r, t);
|
|
189
|
+
return o ? (n(o), !0) : !1;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
const de = /* @__PURE__ */ I(0, !1), H = /* @__PURE__ */ I(1, !1), ot = /* @__PURE__ */ I(0, !0), lt = /* @__PURE__ */ I(1, !0);
|
|
193
|
+
class m {
|
|
194
|
+
constructor(t, r, n, l, o) {
|
|
195
|
+
this.changes = t, this.effects = r, this.mapped = n, this.startSelection = l, this.selectionsAfter = o;
|
|
196
|
+
}
|
|
197
|
+
setSelAfter(t) {
|
|
198
|
+
return new m(this.changes, this.effects, this.mapped, this.startSelection, t);
|
|
199
|
+
}
|
|
200
|
+
toJSON() {
|
|
201
|
+
var t, r, n;
|
|
202
|
+
return {
|
|
203
|
+
changes: (t = this.changes) === null || t === void 0 ? void 0 : t.toJSON(),
|
|
204
|
+
mapped: (r = this.mapped) === null || r === void 0 ? void 0 : r.toJSON(),
|
|
205
|
+
startSelection: (n = this.startSelection) === null || n === void 0 ? void 0 : n.toJSON(),
|
|
206
|
+
selectionsAfter: this.selectionsAfter.map((l) => l.toJSON())
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
static fromJSON(t) {
|
|
210
|
+
return new m(t.changes && $e.fromJSON(t.changes), [], t.mapped && We.fromJSON(t.mapped), t.startSelection && h.fromJSON(t.startSelection), t.selectionsAfter.map(h.fromJSON));
|
|
211
|
+
}
|
|
212
|
+
// This does not check `addToHistory` and such, it assumes the
|
|
213
|
+
// transaction needs to be converted to an item. Returns null when
|
|
214
|
+
// there are no changes or effects in the transaction.
|
|
215
|
+
static fromTransaction(t, r) {
|
|
216
|
+
let n = g;
|
|
217
|
+
for (let l of t.startState.facet(rt)) {
|
|
218
|
+
let o = l(t);
|
|
219
|
+
o.length && (n = n.concat(o));
|
|
220
|
+
}
|
|
221
|
+
return !n.length && t.changes.empty ? null : new m(t.changes.invert(t.startState.doc), n, void 0, r || t.startState.selection, g);
|
|
222
|
+
}
|
|
223
|
+
static selection(t) {
|
|
224
|
+
return new m(void 0, g, void 0, void 0, t);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
function R(e, t, r, n) {
|
|
228
|
+
let l = t + 1 > r + 20 ? t - r - 1 : 0, o = e.slice(l, t);
|
|
229
|
+
return o.push(n), o;
|
|
230
|
+
}
|
|
231
|
+
function ct(e, t) {
|
|
232
|
+
let r = [], n = !1;
|
|
233
|
+
return e.iterChangedRanges((l, o) => r.push(l, o)), t.iterChangedRanges((l, o, c, s) => {
|
|
234
|
+
for (let i = 0; i < r.length; ) {
|
|
235
|
+
let f = r[i++], u = r[i++];
|
|
236
|
+
s >= f && c <= u && (n = !0);
|
|
237
|
+
}
|
|
238
|
+
}), n;
|
|
239
|
+
}
|
|
240
|
+
function st(e, t) {
|
|
241
|
+
return e.ranges.length == t.ranges.length && e.ranges.filter((r, n) => r.empty != t.ranges[n].empty).length === 0;
|
|
242
|
+
}
|
|
243
|
+
function me(e, t) {
|
|
244
|
+
return e.length ? t.length ? e.concat(t) : e : t;
|
|
245
|
+
}
|
|
246
|
+
const g = [], it = 200;
|
|
247
|
+
function pe(e, t) {
|
|
248
|
+
if (e.length) {
|
|
249
|
+
let r = e[e.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - it));
|
|
250
|
+
return n.length && n[n.length - 1].eq(t) ? e : (n.push(t), R(e, e.length - 1, 1e9, r.setSelAfter(n)));
|
|
251
|
+
} else
|
|
252
|
+
return [m.selection([t])];
|
|
253
|
+
}
|
|
254
|
+
function ut(e) {
|
|
255
|
+
let t = e[e.length - 1], r = e.slice();
|
|
256
|
+
return r[e.length - 1] = t.setSelAfter(t.selectionsAfter.slice(0, t.selectionsAfter.length - 1)), r;
|
|
257
|
+
}
|
|
258
|
+
function J(e, t) {
|
|
259
|
+
if (!e.length)
|
|
260
|
+
return e;
|
|
261
|
+
let r = e.length, n = g;
|
|
262
|
+
for (; r; ) {
|
|
263
|
+
let l = ft(e[r - 1], t, n);
|
|
264
|
+
if (l.changes && !l.changes.empty || l.effects.length) {
|
|
265
|
+
let o = e.slice(0, r);
|
|
266
|
+
return o[r - 1] = l, o;
|
|
267
|
+
} else
|
|
268
|
+
t = l.mapped, r--, n = l.selectionsAfter;
|
|
269
|
+
}
|
|
270
|
+
return n.length ? [m.selection(n)] : g;
|
|
271
|
+
}
|
|
272
|
+
function ft(e, t, r) {
|
|
273
|
+
let n = me(e.selectionsAfter.length ? e.selectionsAfter.map((s) => s.map(t)) : g, r);
|
|
274
|
+
if (!e.changes)
|
|
275
|
+
return m.selection(n);
|
|
276
|
+
let l = e.changes.map(t), o = t.mapDesc(e.changes, !0), c = e.mapped ? e.mapped.composeDesc(o) : o;
|
|
277
|
+
return new m(l, le.mapEffects(e.effects, t), c, e.startSelection.map(o), n);
|
|
278
|
+
}
|
|
279
|
+
const at = /^(input\.type|delete)($|\.)/;
|
|
280
|
+
class B {
|
|
281
|
+
constructor(t, r, n = 0, l = void 0) {
|
|
282
|
+
this.done = t, this.undone = r, this.prevTime = n, this.prevUserEvent = l;
|
|
283
|
+
}
|
|
284
|
+
isolate() {
|
|
285
|
+
return this.prevTime ? new B(this.done, this.undone) : this;
|
|
286
|
+
}
|
|
287
|
+
addChanges(t, r, n, l, o) {
|
|
288
|
+
let c = this.done, s = c[c.length - 1];
|
|
289
|
+
return s && s.changes && !s.changes.empty && t.changes && (!n || at.test(n)) && (!s.selectionsAfter.length && r - this.prevTime < l.newGroupDelay && l.joinToEvent(o, ct(s.changes, t.changes)) || // For compose (but not compose.start) events, always join with previous event
|
|
290
|
+
n == "input.type.compose") ? c = R(c, c.length - 1, l.minDepth, new m(t.changes.compose(s.changes), me(le.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, g)) : c = R(c, c.length, l.minDepth, t), new B(c, g, r, n);
|
|
291
|
+
}
|
|
292
|
+
addSelection(t, r, n, l) {
|
|
293
|
+
let o = this.done.length ? this.done[this.done.length - 1].selectionsAfter : g;
|
|
294
|
+
return o.length > 0 && r - this.prevTime < l && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && st(o[o.length - 1], t) ? this : new B(pe(this.done, t), this.undone, r, n);
|
|
295
|
+
}
|
|
296
|
+
addMapping(t) {
|
|
297
|
+
return new B(J(this.done, t), J(this.undone, t), this.prevTime, this.prevUserEvent);
|
|
298
|
+
}
|
|
299
|
+
pop(t, r, n) {
|
|
300
|
+
let l = t == 0 ? this.done : this.undone;
|
|
301
|
+
if (l.length == 0)
|
|
302
|
+
return null;
|
|
303
|
+
let o = l[l.length - 1], c = o.selectionsAfter[0] || (o.startSelection ? o.startSelection.map(o.changes.invertedDesc, 1) : r.selection);
|
|
304
|
+
if (n && o.selectionsAfter.length)
|
|
305
|
+
return r.update({
|
|
306
|
+
selection: o.selectionsAfter[o.selectionsAfter.length - 1],
|
|
307
|
+
annotations: z.of({ side: t, rest: ut(l), selection: c }),
|
|
308
|
+
userEvent: t == 0 ? "select.undo" : "select.redo",
|
|
309
|
+
scrollIntoView: !0
|
|
310
|
+
});
|
|
311
|
+
if (o.changes) {
|
|
312
|
+
let s = l.length == 1 ? g : l.slice(0, l.length - 1);
|
|
313
|
+
return o.mapped && (s = J(s, o.mapped)), r.update({
|
|
314
|
+
changes: o.changes,
|
|
315
|
+
selection: o.startSelection,
|
|
316
|
+
effects: o.effects,
|
|
317
|
+
annotations: z.of({ side: t, rest: s, selection: c }),
|
|
318
|
+
filter: !1,
|
|
319
|
+
userEvent: t == 0 ? "undo" : "redo",
|
|
320
|
+
scrollIntoView: !0
|
|
321
|
+
});
|
|
322
|
+
} else
|
|
323
|
+
return null;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
B.empty = /* @__PURE__ */ new B(g, g);
|
|
327
|
+
const fn = [
|
|
328
|
+
{ key: "Mod-z", run: de, preventDefault: !0 },
|
|
329
|
+
{ key: "Mod-y", mac: "Mod-Shift-z", run: H, preventDefault: !0 },
|
|
330
|
+
{ linux: "Ctrl-Shift-z", run: H, preventDefault: !0 },
|
|
331
|
+
{ key: "Mod-u", run: ot, preventDefault: !0 },
|
|
332
|
+
{ key: "Alt-u", mac: "Mod-Shift-u", run: lt, preventDefault: !0 }
|
|
333
|
+
];
|
|
334
|
+
function C(e, t) {
|
|
335
|
+
return h.create(e.ranges.map(t), e.mainIndex);
|
|
336
|
+
}
|
|
337
|
+
function k(e, t) {
|
|
338
|
+
return e.update({ selection: t, scrollIntoView: !0, userEvent: "select" });
|
|
339
|
+
}
|
|
340
|
+
function A({ state: e, dispatch: t }, r) {
|
|
341
|
+
let n = C(e.selection, r);
|
|
342
|
+
return n.eq(e.selection, !0) ? !1 : (t(k(e, n)), !0);
|
|
343
|
+
}
|
|
344
|
+
function U(e, t) {
|
|
345
|
+
return h.cursor(t ? e.to : e.from);
|
|
346
|
+
}
|
|
347
|
+
function ge(e, t) {
|
|
348
|
+
return A(e, (r) => r.empty ? e.moveByChar(r, t) : U(r, t));
|
|
349
|
+
}
|
|
350
|
+
function d(e) {
|
|
351
|
+
return e.textDirectionAt(e.state.selection.main.head) == Qe.LTR;
|
|
352
|
+
}
|
|
353
|
+
const ye = (e) => ge(e, !d(e)), ke = (e) => ge(e, d(e));
|
|
354
|
+
function Ae(e, t) {
|
|
355
|
+
return A(e, (r) => r.empty ? e.moveByGroup(r, t) : U(r, t));
|
|
356
|
+
}
|
|
357
|
+
const ht = (e) => Ae(e, !d(e)), dt = (e) => Ae(e, d(e));
|
|
358
|
+
function mt(e, t, r) {
|
|
359
|
+
if (t.type.prop(r))
|
|
360
|
+
return !0;
|
|
361
|
+
let n = t.to - t.from;
|
|
362
|
+
return n && (n > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
|
|
363
|
+
}
|
|
364
|
+
function V(e, t, r) {
|
|
365
|
+
let n = W(e).resolveInner(t.head), l = r ? F.closedBy : F.openedBy;
|
|
366
|
+
for (let i = t.head; ; ) {
|
|
367
|
+
let f = r ? n.childAfter(i) : n.childBefore(i);
|
|
368
|
+
if (!f)
|
|
369
|
+
break;
|
|
370
|
+
mt(e, f, l) ? n = f : i = r ? f.to : f.from;
|
|
371
|
+
}
|
|
372
|
+
let o = n.type.prop(l), c, s;
|
|
373
|
+
return o && (c = r ? D(e, n.from, 1) : D(e, n.to, -1)) && c.matched ? s = r ? c.end.to : c.end.from : s = r ? n.to : n.from, h.cursor(s, r ? -1 : 1);
|
|
374
|
+
}
|
|
375
|
+
const pt = (e) => A(e, (t) => V(e.state, t, !d(e))), gt = (e) => A(e, (t) => V(e.state, t, d(e)));
|
|
376
|
+
function Be(e, t) {
|
|
377
|
+
return A(e, (r) => {
|
|
378
|
+
if (!r.empty)
|
|
379
|
+
return U(r, t);
|
|
380
|
+
let n = e.moveVertically(r, t);
|
|
381
|
+
return n.head != r.head ? n : e.moveToLineBoundary(r, t);
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
const Se = (e) => Be(e, !1), De = (e) => Be(e, !0);
|
|
385
|
+
function xe(e) {
|
|
386
|
+
let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, r = 0, n = 0, l;
|
|
387
|
+
if (t) {
|
|
388
|
+
for (let o of e.state.facet(x.scrollMargins)) {
|
|
389
|
+
let c = o(e);
|
|
390
|
+
c?.top && (r = Math.max(c?.top, r)), c?.bottom && (n = Math.max(c?.bottom, n));
|
|
391
|
+
}
|
|
392
|
+
l = e.scrollDOM.clientHeight - r - n;
|
|
393
|
+
} else
|
|
394
|
+
l = (e.dom.ownerDocument.defaultView || window).innerHeight;
|
|
395
|
+
return {
|
|
396
|
+
marginTop: r,
|
|
397
|
+
marginBottom: n,
|
|
398
|
+
selfScroll: t,
|
|
399
|
+
height: Math.max(e.defaultLineHeight, l - 5)
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
function Ce(e, t) {
|
|
403
|
+
let r = xe(e), { state: n } = e, l = C(n.selection, (c) => c.empty ? e.moveVertically(c, t, r.height) : U(c, t));
|
|
404
|
+
if (l.eq(n.selection))
|
|
405
|
+
return !1;
|
|
406
|
+
let o;
|
|
407
|
+
if (r.selfScroll) {
|
|
408
|
+
let c = e.coordsAtPos(n.selection.main.head), s = e.scrollDOM.getBoundingClientRect(), i = s.top + r.marginTop, f = s.bottom - r.marginBottom;
|
|
409
|
+
c && c.top > i && c.bottom < f && (o = x.scrollIntoView(l.main.head, { y: "start", yMargin: c.top - i }));
|
|
410
|
+
}
|
|
411
|
+
return e.dispatch(k(n, l), { effects: o }), !0;
|
|
412
|
+
}
|
|
413
|
+
const Z = (e) => Ce(e, !1), q = (e) => Ce(e, !0);
|
|
414
|
+
function S(e, t, r) {
|
|
415
|
+
let n = e.lineBlockAt(t.head), l = e.moveToLineBoundary(t, r);
|
|
416
|
+
if (l.head == t.head && l.head != (r ? n.to : n.from) && (l = e.moveToLineBoundary(t, r, !1)), !r && l.head == n.from && n.length) {
|
|
417
|
+
let o = /^\s*/.exec(e.state.sliceDoc(n.from, Math.min(n.from + 100, n.to)))[0].length;
|
|
418
|
+
o && t.head != n.from + o && (l = h.cursor(n.from + o));
|
|
419
|
+
}
|
|
420
|
+
return l;
|
|
421
|
+
}
|
|
422
|
+
const yt = (e) => A(e, (t) => S(e, t, !0)), kt = (e) => A(e, (t) => S(e, t, !1)), At = (e) => A(e, (t) => S(e, t, !d(e))), Bt = (e) => A(e, (t) => S(e, t, d(e))), St = (e) => A(e, (t) => h.cursor(e.lineBlockAt(t.head).from, 1)), Dt = (e) => A(e, (t) => h.cursor(e.lineBlockAt(t.head).to, -1));
|
|
423
|
+
function xt(e, t, r) {
|
|
424
|
+
let n = !1, l = C(e.selection, (o) => {
|
|
425
|
+
let c = D(e, o.head, -1) || D(e, o.head, 1) || o.head > 0 && D(e, o.head - 1, 1) || o.head < e.doc.length && D(e, o.head + 1, -1);
|
|
426
|
+
if (!c || !c.end)
|
|
427
|
+
return o;
|
|
428
|
+
n = !0;
|
|
429
|
+
let s = c.start.from == o.head ? c.end.to : c.end.from;
|
|
430
|
+
return h.cursor(s);
|
|
431
|
+
});
|
|
432
|
+
return n ? (t(k(e, l)), !0) : !1;
|
|
433
|
+
}
|
|
434
|
+
const Ct = ({ state: e, dispatch: t }) => xt(e, t);
|
|
435
|
+
function y(e, t) {
|
|
436
|
+
let r = C(e.state.selection, (n) => {
|
|
437
|
+
let l = t(n);
|
|
438
|
+
return h.range(n.anchor, l.head, l.goalColumn, l.bidiLevel || void 0, l.assoc);
|
|
439
|
+
});
|
|
440
|
+
return r.eq(e.state.selection) ? !1 : (e.dispatch(k(e.state, r)), !0);
|
|
441
|
+
}
|
|
442
|
+
function Le(e, t) {
|
|
443
|
+
return y(e, (r) => e.moveByChar(r, t));
|
|
444
|
+
}
|
|
445
|
+
const Me = (e) => Le(e, !d(e)), Ee = (e) => Le(e, d(e));
|
|
446
|
+
function Oe(e, t) {
|
|
447
|
+
return y(e, (r) => e.moveByGroup(r, t));
|
|
448
|
+
}
|
|
449
|
+
const Lt = (e) => Oe(e, !d(e)), Mt = (e) => Oe(e, d(e)), Et = (e) => y(e, (t) => V(e.state, t, !d(e))), Ot = (e) => y(e, (t) => V(e.state, t, d(e)));
|
|
450
|
+
function Te(e, t) {
|
|
451
|
+
return y(e, (r) => e.moveVertically(r, t));
|
|
452
|
+
}
|
|
453
|
+
const be = (e) => Te(e, !1), ve = (e) => Te(e, !0);
|
|
454
|
+
function Re(e, t) {
|
|
455
|
+
return y(e, (r) => e.moveVertically(r, t, xe(e).height));
|
|
456
|
+
}
|
|
457
|
+
const j = (e) => Re(e, !1), _ = (e) => Re(e, !0), Tt = (e) => y(e, (t) => S(e, t, !0)), bt = (e) => y(e, (t) => S(e, t, !1)), vt = (e) => y(e, (t) => S(e, t, !d(e))), Rt = (e) => y(e, (t) => S(e, t, d(e))), It = (e) => y(e, (t) => h.cursor(e.lineBlockAt(t.head).from)), Ut = (e) => y(e, (t) => h.cursor(e.lineBlockAt(t.head).to)), w = ({ state: e, dispatch: t }) => (t(k(e, { anchor: 0 })), !0), ee = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.doc.length })), !0), te = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: 0 })), !0), ne = ({ state: e, dispatch: t }) => (t(k(e, { anchor: e.selection.main.anchor, head: e.doc.length })), !0), Vt = ({ state: e, dispatch: t }) => (t(e.update({ selection: { anchor: 0, head: e.doc.length }, userEvent: "select" })), !0), Nt = ({ state: e, dispatch: t }) => {
|
|
458
|
+
let r = N(e).map(({ from: n, to: l }) => h.range(n, Math.min(l + 1, e.doc.length)));
|
|
459
|
+
return t(e.update({ selection: h.create(r), userEvent: "select" })), !0;
|
|
460
|
+
}, Pt = ({ state: e, dispatch: t }) => {
|
|
461
|
+
let r = C(e.selection, (n) => {
|
|
462
|
+
let l = W(e), o = l.resolveStack(n.from, 1);
|
|
463
|
+
if (n.empty) {
|
|
464
|
+
let c = l.resolveStack(n.from, -1);
|
|
465
|
+
c.node.from >= o.node.from && c.node.to <= o.node.to && (o = c);
|
|
466
|
+
}
|
|
467
|
+
for (let c = o; c; c = c.next) {
|
|
468
|
+
let { node: s } = c;
|
|
469
|
+
if ((s.from < n.from && s.to >= n.to || s.to > n.to && s.from <= n.from) && c.next)
|
|
470
|
+
return h.range(s.to, s.from);
|
|
471
|
+
}
|
|
472
|
+
return n;
|
|
473
|
+
});
|
|
474
|
+
return r.eq(e.selection) ? !1 : (t(k(e, r)), !0);
|
|
475
|
+
};
|
|
476
|
+
function Ie(e, t) {
|
|
477
|
+
let { state: r } = e, n = r.selection, l = r.selection.ranges.slice();
|
|
478
|
+
for (let o of r.selection.ranges) {
|
|
479
|
+
let c = r.doc.lineAt(o.head);
|
|
480
|
+
if (t ? c.to < e.state.doc.length : c.from > 0)
|
|
481
|
+
for (let s = o; ; ) {
|
|
482
|
+
let i = e.moveVertically(s, t);
|
|
483
|
+
if (i.head < c.from || i.head > c.to) {
|
|
484
|
+
l.some((f) => f.head == i.head) || l.push(i);
|
|
485
|
+
break;
|
|
486
|
+
} else {
|
|
487
|
+
if (i.head == s.head)
|
|
488
|
+
break;
|
|
489
|
+
s = i;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return l.length == n.ranges.length ? !1 : (e.dispatch(k(r, h.create(l, l.length - 1))), !0);
|
|
494
|
+
}
|
|
495
|
+
const Jt = (e) => Ie(e, !1), Gt = (e) => Ie(e, !0), Ft = ({ state: e, dispatch: t }) => {
|
|
496
|
+
let r = e.selection, n = null;
|
|
497
|
+
return r.ranges.length > 1 ? n = h.create([r.main]) : r.main.empty || (n = h.create([h.cursor(r.main.head)])), n ? (t(k(e, n)), !0) : !1;
|
|
498
|
+
};
|
|
499
|
+
function O(e, t) {
|
|
500
|
+
if (e.state.readOnly)
|
|
501
|
+
return !1;
|
|
502
|
+
let r = "delete.selection", { state: n } = e, l = n.changeByRange((o) => {
|
|
503
|
+
let { from: c, to: s } = o;
|
|
504
|
+
if (c == s) {
|
|
505
|
+
let i = t(o);
|
|
506
|
+
i < c ? (r = "delete.backward", i = b(e, i, !1)) : i > c && (r = "delete.forward", i = b(e, i, !0)), c = Math.min(c, i), s = Math.max(s, i);
|
|
507
|
+
} else
|
|
508
|
+
c = b(e, c, !1), s = b(e, s, !0);
|
|
509
|
+
return c == s ? { range: o } : { changes: { from: c, to: s }, range: h.cursor(c, c < o.head ? -1 : 1) };
|
|
510
|
+
});
|
|
511
|
+
return l.changes.empty ? !1 : (e.dispatch(n.update(l, {
|
|
512
|
+
scrollIntoView: !0,
|
|
513
|
+
userEvent: r,
|
|
514
|
+
effects: r == "delete.selection" ? x.announce.of(n.phrase("Selection deleted")) : void 0
|
|
515
|
+
})), !0);
|
|
516
|
+
}
|
|
517
|
+
function b(e, t, r) {
|
|
518
|
+
if (e instanceof x)
|
|
519
|
+
for (let n of e.state.facet(x.atomicRanges).map((l) => l(e)))
|
|
520
|
+
n.between(t, t, (l, o) => {
|
|
521
|
+
l < t && o > t && (t = r ? o : l);
|
|
522
|
+
});
|
|
523
|
+
return t;
|
|
524
|
+
}
|
|
525
|
+
const Ue = (e, t, r) => O(e, (n) => {
|
|
526
|
+
let l = n.from, { state: o } = e, c = o.doc.lineAt(l), s, i;
|
|
527
|
+
if (r && !t && l > c.from && l < c.from + 200 && !/[^ \t]/.test(s = c.text.slice(0, l - c.from))) {
|
|
528
|
+
if (s[s.length - 1] == " ")
|
|
529
|
+
return l - 1;
|
|
530
|
+
let f = $(s, o.tabSize), u = f % G(o) || G(o);
|
|
531
|
+
for (let a = 0; a < u && s[s.length - 1 - a] == " "; a++)
|
|
532
|
+
l--;
|
|
533
|
+
i = l;
|
|
534
|
+
} else
|
|
535
|
+
i = E(c.text, l - c.from, t, t) + c.from, i == l && c.number != (t ? o.doc.lines : 1) ? i += t ? 1 : -1 : !t && /[\ufe00-\ufe0f]/.test(c.text.slice(i - c.from, l - c.from)) && (i = E(c.text, i - c.from, !1, !1) + c.from);
|
|
536
|
+
return i;
|
|
537
|
+
}), K = (e) => Ue(e, !1, !0), Ve = (e) => Ue(e, !0, !1), Ne = (e, t) => O(e, (r) => {
|
|
538
|
+
let n = r.head, { state: l } = e, o = l.doc.lineAt(n), c = l.charCategorizer(n);
|
|
539
|
+
for (let s = null; ; ) {
|
|
540
|
+
if (n == (t ? o.to : o.from)) {
|
|
541
|
+
n == r.head && o.number != (t ? l.doc.lines : 1) && (n += t ? 1 : -1);
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
544
|
+
let i = E(o.text, n - o.from, t) + o.from, f = o.text.slice(Math.min(n, i) - o.from, Math.max(n, i) - o.from), u = c(f);
|
|
545
|
+
if (s != null && u != s)
|
|
546
|
+
break;
|
|
547
|
+
(f != " " || n != r.head) && (s = u), n = i;
|
|
548
|
+
}
|
|
549
|
+
return n;
|
|
550
|
+
}), Pe = (e) => Ne(e, !1), zt = (e) => Ne(e, !0), Ht = (e) => O(e, (t) => {
|
|
551
|
+
let r = e.lineBlockAt(t.head).to;
|
|
552
|
+
return t.head < r ? r : Math.min(e.state.doc.length, t.head + 1);
|
|
553
|
+
}), qt = (e) => O(e, (t) => {
|
|
554
|
+
let r = e.moveToLineBoundary(t, !1).head;
|
|
555
|
+
return t.head > r ? r : Math.max(0, t.head - 1);
|
|
556
|
+
}), Kt = (e) => O(e, (t) => {
|
|
557
|
+
let r = e.moveToLineBoundary(t, !0).head;
|
|
558
|
+
return t.head < r ? r : Math.min(e.state.doc.length, t.head + 1);
|
|
559
|
+
}), $t = ({ state: e, dispatch: t }) => {
|
|
560
|
+
if (e.readOnly)
|
|
561
|
+
return !1;
|
|
562
|
+
let r = e.changeByRange((n) => ({
|
|
563
|
+
changes: { from: n.from, to: n.to, insert: se.of(["", ""]) },
|
|
564
|
+
range: h.cursor(n.from)
|
|
565
|
+
}));
|
|
566
|
+
return t(e.update(r, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
567
|
+
}, Wt = ({ state: e, dispatch: t }) => {
|
|
568
|
+
if (e.readOnly)
|
|
569
|
+
return !1;
|
|
570
|
+
let r = e.changeByRange((n) => {
|
|
571
|
+
if (!n.empty || n.from == 0 || n.from == e.doc.length)
|
|
572
|
+
return { range: n };
|
|
573
|
+
let l = n.from, o = e.doc.lineAt(l), c = l == o.from ? l - 1 : E(o.text, l - o.from, !1) + o.from, s = l == o.to ? l + 1 : E(o.text, l - o.from, !0) + o.from;
|
|
574
|
+
return {
|
|
575
|
+
changes: { from: c, to: s, insert: e.doc.slice(l, s).append(e.doc.slice(c, l)) },
|
|
576
|
+
range: h.cursor(s)
|
|
577
|
+
};
|
|
578
|
+
});
|
|
579
|
+
return r.changes.empty ? !1 : (t(e.update(r, { scrollIntoView: !0, userEvent: "move.character" })), !0);
|
|
580
|
+
};
|
|
581
|
+
function N(e) {
|
|
582
|
+
let t = [], r = -1;
|
|
583
|
+
for (let n of e.selection.ranges) {
|
|
584
|
+
let l = e.doc.lineAt(n.from), o = e.doc.lineAt(n.to);
|
|
585
|
+
if (!n.empty && n.to == o.from && (o = e.doc.lineAt(n.to - 1)), r >= l.number) {
|
|
586
|
+
let c = t[t.length - 1];
|
|
587
|
+
c.to = o.to, c.ranges.push(n);
|
|
588
|
+
} else
|
|
589
|
+
t.push({ from: l.from, to: o.to, ranges: [n] });
|
|
590
|
+
r = o.number + 1;
|
|
591
|
+
}
|
|
592
|
+
return t;
|
|
593
|
+
}
|
|
594
|
+
function Je(e, t, r) {
|
|
595
|
+
if (e.readOnly)
|
|
596
|
+
return !1;
|
|
597
|
+
let n = [], l = [];
|
|
598
|
+
for (let o of N(e)) {
|
|
599
|
+
if (r ? o.to == e.doc.length : o.from == 0)
|
|
600
|
+
continue;
|
|
601
|
+
let c = e.doc.lineAt(r ? o.to + 1 : o.from - 1), s = c.length + 1;
|
|
602
|
+
if (r) {
|
|
603
|
+
n.push({ from: o.to, to: c.to }, { from: o.from, insert: c.text + e.lineBreak });
|
|
604
|
+
for (let i of o.ranges)
|
|
605
|
+
l.push(h.range(Math.min(e.doc.length, i.anchor + s), Math.min(e.doc.length, i.head + s)));
|
|
606
|
+
} else {
|
|
607
|
+
n.push({ from: c.from, to: o.from }, { from: o.to, insert: e.lineBreak + c.text });
|
|
608
|
+
for (let i of o.ranges)
|
|
609
|
+
l.push(h.range(i.anchor - s, i.head - s));
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
return n.length ? (t(e.update({
|
|
613
|
+
changes: n,
|
|
614
|
+
scrollIntoView: !0,
|
|
615
|
+
selection: h.create(l, e.selection.mainIndex),
|
|
616
|
+
userEvent: "move.line"
|
|
617
|
+
})), !0) : !1;
|
|
618
|
+
}
|
|
619
|
+
const Qt = ({ state: e, dispatch: t }) => Je(e, t, !1), Xt = ({ state: e, dispatch: t }) => Je(e, t, !0);
|
|
620
|
+
function Ge(e, t, r) {
|
|
621
|
+
if (e.readOnly)
|
|
622
|
+
return !1;
|
|
623
|
+
let n = [];
|
|
624
|
+
for (let o of N(e))
|
|
625
|
+
r ? n.push({ from: o.from, insert: e.doc.slice(o.from, o.to) + e.lineBreak }) : n.push({ from: o.to, insert: e.lineBreak + e.doc.slice(o.from, o.to) });
|
|
626
|
+
let l = e.changes(n);
|
|
627
|
+
return t(e.update({
|
|
628
|
+
changes: l,
|
|
629
|
+
selection: e.selection.map(l, r ? 1 : -1),
|
|
630
|
+
scrollIntoView: !0,
|
|
631
|
+
userEvent: "input.copyline"
|
|
632
|
+
})), !0;
|
|
633
|
+
}
|
|
634
|
+
const Yt = ({ state: e, dispatch: t }) => Ge(e, t, !1), Zt = ({ state: e, dispatch: t }) => Ge(e, t, !0), jt = (e) => {
|
|
635
|
+
if (e.state.readOnly)
|
|
636
|
+
return !1;
|
|
637
|
+
let { state: t } = e, r = t.changes(N(t).map(({ from: l, to: o }) => (l > 0 ? l-- : o < t.doc.length && o++, { from: l, to: o }))), n = C(t.selection, (l) => {
|
|
638
|
+
let o;
|
|
639
|
+
if (e.lineWrapping) {
|
|
640
|
+
let c = e.lineBlockAt(l.head), s = e.coordsAtPos(l.head, l.assoc || 1);
|
|
641
|
+
s && (o = c.bottom + e.documentTop - s.bottom + e.defaultLineHeight / 2);
|
|
642
|
+
}
|
|
643
|
+
return e.moveVertically(l, !0, o);
|
|
644
|
+
}).map(r);
|
|
645
|
+
return e.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0;
|
|
646
|
+
};
|
|
647
|
+
function _t(e, t) {
|
|
648
|
+
if (/\(\)|\[\]|\{\}/.test(e.sliceDoc(t - 1, t + 1)))
|
|
649
|
+
return { from: t, to: t };
|
|
650
|
+
let r = W(e).resolveInner(t), n = r.childBefore(t), l = r.childAfter(t), o;
|
|
651
|
+
return n && l && n.to <= t && l.from >= t && (o = n.type.prop(F.closedBy)) && o.indexOf(l.name) > -1 && e.doc.lineAt(n.to).from == e.doc.lineAt(l.from).from && !/\S/.test(e.sliceDoc(n.to, l.from)) ? { from: n.to, to: l.from } : null;
|
|
652
|
+
}
|
|
653
|
+
const re = /* @__PURE__ */ Fe(!1), wt = /* @__PURE__ */ Fe(!0);
|
|
654
|
+
function Fe(e) {
|
|
655
|
+
return ({ state: t, dispatch: r }) => {
|
|
656
|
+
if (t.readOnly)
|
|
657
|
+
return !1;
|
|
658
|
+
let n = t.changeByRange((l) => {
|
|
659
|
+
let { from: o, to: c } = l, s = t.doc.lineAt(o), i = !e && o == c && _t(t, o);
|
|
660
|
+
e && (o = c = (c <= s.to ? s : t.doc.lineAt(c)).to);
|
|
661
|
+
let f = new ie(t, { simulateBreak: o, simulateDoubleBreak: !!i }), u = ue(f, o);
|
|
662
|
+
for (u == null && (u = $(/^\s*/.exec(t.doc.lineAt(o).text)[0], t.tabSize)); c < s.to && /\s/.test(s.text[c - s.from]); )
|
|
663
|
+
c++;
|
|
664
|
+
i ? { from: o, to: c } = i : o > s.from && o < s.from + 100 && !/\S/.test(s.text.slice(0, o)) && (o = s.from);
|
|
665
|
+
let a = ["", v(t, u)];
|
|
666
|
+
return i && a.push(v(t, f.lineIndent(s.from, -1))), {
|
|
667
|
+
changes: { from: o, to: c, insert: se.of(a) },
|
|
668
|
+
range: h.cursor(o + 1 + a[1].length)
|
|
669
|
+
};
|
|
670
|
+
});
|
|
671
|
+
return r(t.update(n, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
function Y(e, t) {
|
|
675
|
+
let r = -1;
|
|
676
|
+
return e.changeByRange((n) => {
|
|
677
|
+
let l = [];
|
|
678
|
+
for (let c = n.from; c <= n.to; ) {
|
|
679
|
+
let s = e.doc.lineAt(c);
|
|
680
|
+
s.number > r && (n.empty || n.to > s.from) && (t(s, l, n), r = s.number), c = s.to + 1;
|
|
681
|
+
}
|
|
682
|
+
let o = e.changes(l);
|
|
683
|
+
return {
|
|
684
|
+
changes: l,
|
|
685
|
+
range: h.range(o.mapPos(n.anchor, 1), o.mapPos(n.head, 1))
|
|
686
|
+
};
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
const en = ({ state: e, dispatch: t }) => {
|
|
690
|
+
if (e.readOnly)
|
|
691
|
+
return !1;
|
|
692
|
+
let r = /* @__PURE__ */ Object.create(null), n = new ie(e, { overrideIndentation: (o) => {
|
|
693
|
+
let c = r[o];
|
|
694
|
+
return c ?? -1;
|
|
695
|
+
} }), l = Y(e, (o, c, s) => {
|
|
696
|
+
let i = ue(n, o.from);
|
|
697
|
+
if (i == null)
|
|
698
|
+
return;
|
|
699
|
+
/\S/.test(o.text) || (i = 0);
|
|
700
|
+
let f = /^\s*/.exec(o.text)[0], u = v(e, i);
|
|
701
|
+
(f != u || s.from < o.from + f.length) && (r[o.from] = i, c.push({ from: o.from, to: o.from + f.length, insert: u }));
|
|
702
|
+
});
|
|
703
|
+
return l.changes.empty || t(e.update(l, { userEvent: "indent" })), !0;
|
|
704
|
+
}, ze = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Y(e, (r, n) => {
|
|
705
|
+
n.push({ from: r.from, insert: e.facet(Xe) });
|
|
706
|
+
}), { userEvent: "input.indent" })), !0), He = ({ state: e, dispatch: t }) => e.readOnly ? !1 : (t(e.update(Y(e, (r, n) => {
|
|
707
|
+
let l = /^\s*/.exec(r.text)[0];
|
|
708
|
+
if (!l)
|
|
709
|
+
return;
|
|
710
|
+
let o = $(l, e.tabSize), c = 0, s = v(e, Math.max(0, o - G(e)));
|
|
711
|
+
for (; c < l.length && c < s.length && l.charCodeAt(c) == s.charCodeAt(c); )
|
|
712
|
+
c++;
|
|
713
|
+
n.push({ from: r.from + c, to: r.from + l.length, insert: s.slice(c) });
|
|
714
|
+
}), { userEvent: "delete.dedent" })), !0), tn = (e) => (e.setTabFocusMode(), !0), nn = [
|
|
715
|
+
{ key: "Ctrl-b", run: ye, shift: Me, preventDefault: !0 },
|
|
716
|
+
{ key: "Ctrl-f", run: ke, shift: Ee },
|
|
717
|
+
{ key: "Ctrl-p", run: Se, shift: be },
|
|
718
|
+
{ key: "Ctrl-n", run: De, shift: ve },
|
|
719
|
+
{ key: "Ctrl-a", run: St, shift: It },
|
|
720
|
+
{ key: "Ctrl-e", run: Dt, shift: Ut },
|
|
721
|
+
{ key: "Ctrl-d", run: Ve },
|
|
722
|
+
{ key: "Ctrl-h", run: K },
|
|
723
|
+
{ key: "Ctrl-k", run: Ht },
|
|
724
|
+
{ key: "Ctrl-Alt-h", run: Pe },
|
|
725
|
+
{ key: "Ctrl-o", run: $t },
|
|
726
|
+
{ key: "Ctrl-t", run: Wt },
|
|
727
|
+
{ key: "Ctrl-v", run: q }
|
|
728
|
+
], rn = /* @__PURE__ */ [
|
|
729
|
+
{ key: "ArrowLeft", run: ye, shift: Me, preventDefault: !0 },
|
|
730
|
+
{ key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: ht, shift: Lt, preventDefault: !0 },
|
|
731
|
+
{ mac: "Cmd-ArrowLeft", run: At, shift: vt, preventDefault: !0 },
|
|
732
|
+
{ key: "ArrowRight", run: ke, shift: Ee, preventDefault: !0 },
|
|
733
|
+
{ key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: dt, shift: Mt, preventDefault: !0 },
|
|
734
|
+
{ mac: "Cmd-ArrowRight", run: Bt, shift: Rt, preventDefault: !0 },
|
|
735
|
+
{ key: "ArrowUp", run: Se, shift: be, preventDefault: !0 },
|
|
736
|
+
{ mac: "Cmd-ArrowUp", run: w, shift: te },
|
|
737
|
+
{ mac: "Ctrl-ArrowUp", run: Z, shift: j },
|
|
738
|
+
{ key: "ArrowDown", run: De, shift: ve, preventDefault: !0 },
|
|
739
|
+
{ mac: "Cmd-ArrowDown", run: ee, shift: ne },
|
|
740
|
+
{ mac: "Ctrl-ArrowDown", run: q, shift: _ },
|
|
741
|
+
{ key: "PageUp", run: Z, shift: j },
|
|
742
|
+
{ key: "PageDown", run: q, shift: _ },
|
|
743
|
+
{ key: "Home", run: kt, shift: bt, preventDefault: !0 },
|
|
744
|
+
{ key: "Mod-Home", run: w, shift: te },
|
|
745
|
+
{ key: "End", run: yt, shift: Tt, preventDefault: !0 },
|
|
746
|
+
{ key: "Mod-End", run: ee, shift: ne },
|
|
747
|
+
{ key: "Enter", run: re, shift: re },
|
|
748
|
+
{ key: "Mod-a", run: Vt },
|
|
749
|
+
{ key: "Backspace", run: K, shift: K, preventDefault: !0 },
|
|
750
|
+
{ key: "Delete", run: Ve, preventDefault: !0 },
|
|
751
|
+
{ key: "Mod-Backspace", mac: "Alt-Backspace", run: Pe, preventDefault: !0 },
|
|
752
|
+
{ key: "Mod-Delete", mac: "Alt-Delete", run: zt, preventDefault: !0 },
|
|
753
|
+
{ mac: "Mod-Backspace", run: qt, preventDefault: !0 },
|
|
754
|
+
{ mac: "Mod-Delete", run: Kt, preventDefault: !0 }
|
|
755
|
+
].concat(/* @__PURE__ */ nn.map((e) => ({ mac: e.key, run: e.run, shift: e.shift }))), an = /* @__PURE__ */ [
|
|
756
|
+
{ key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: pt, shift: Et },
|
|
757
|
+
{ key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: gt, shift: Ot },
|
|
758
|
+
{ key: "Alt-ArrowUp", run: Qt },
|
|
759
|
+
{ key: "Shift-Alt-ArrowUp", run: Yt },
|
|
760
|
+
{ key: "Alt-ArrowDown", run: Xt },
|
|
761
|
+
{ key: "Shift-Alt-ArrowDown", run: Zt },
|
|
762
|
+
{ key: "Mod-Alt-ArrowUp", run: Jt },
|
|
763
|
+
{ key: "Mod-Alt-ArrowDown", run: Gt },
|
|
764
|
+
{ key: "Escape", run: Ft },
|
|
765
|
+
{ key: "Mod-Enter", run: wt },
|
|
766
|
+
{ key: "Alt-l", mac: "Ctrl-l", run: Nt },
|
|
767
|
+
{ key: "Mod-i", run: Pt, preventDefault: !0 },
|
|
768
|
+
{ key: "Mod-[", run: He },
|
|
769
|
+
{ key: "Mod-]", run: ze },
|
|
770
|
+
{ key: "Mod-Alt-\\", run: en },
|
|
771
|
+
{ key: "Shift-Mod-k", run: jt },
|
|
772
|
+
{ key: "Shift-Mod-\\", run: Ct },
|
|
773
|
+
{ key: "Mod-/", run: Ye },
|
|
774
|
+
{ key: "Alt-A", run: je },
|
|
775
|
+
{ key: "Ctrl-m", mac: "Shift-Alt-m", run: tn }
|
|
776
|
+
].concat(rn), hn = { key: "Tab", run: ze, shift: He };
|
|
777
|
+
export {
|
|
778
|
+
Jt as addCursorAbove,
|
|
779
|
+
Gt as addCursorBelow,
|
|
780
|
+
Zt as copyLineDown,
|
|
781
|
+
Yt as copyLineUp,
|
|
782
|
+
ye as cursorCharLeft,
|
|
783
|
+
ke as cursorCharRight,
|
|
784
|
+
ee as cursorDocEnd,
|
|
785
|
+
w as cursorDocStart,
|
|
786
|
+
ht as cursorGroupLeft,
|
|
787
|
+
dt as cursorGroupRight,
|
|
788
|
+
kt as cursorLineBoundaryBackward,
|
|
789
|
+
yt as cursorLineBoundaryForward,
|
|
790
|
+
At as cursorLineBoundaryLeft,
|
|
791
|
+
Bt as cursorLineBoundaryRight,
|
|
792
|
+
De as cursorLineDown,
|
|
793
|
+
Dt as cursorLineEnd,
|
|
794
|
+
St as cursorLineStart,
|
|
795
|
+
Se as cursorLineUp,
|
|
796
|
+
Ct as cursorMatchingBracket,
|
|
797
|
+
q as cursorPageDown,
|
|
798
|
+
Z as cursorPageUp,
|
|
799
|
+
pt as cursorSyntaxLeft,
|
|
800
|
+
gt as cursorSyntaxRight,
|
|
801
|
+
an as defaultKeymap,
|
|
802
|
+
K as deleteCharBackward,
|
|
803
|
+
Ve as deleteCharForward,
|
|
804
|
+
Pe as deleteGroupBackward,
|
|
805
|
+
zt as deleteGroupForward,
|
|
806
|
+
jt as deleteLine,
|
|
807
|
+
qt as deleteLineBoundaryBackward,
|
|
808
|
+
Kt as deleteLineBoundaryForward,
|
|
809
|
+
Ht as deleteToLineEnd,
|
|
810
|
+
nn as emacsStyleKeymap,
|
|
811
|
+
un as history,
|
|
812
|
+
fn as historyKeymap,
|
|
813
|
+
He as indentLess,
|
|
814
|
+
ze as indentMore,
|
|
815
|
+
en as indentSelection,
|
|
816
|
+
hn as indentWithTab,
|
|
817
|
+
wt as insertBlankLine,
|
|
818
|
+
re as insertNewlineAndIndent,
|
|
819
|
+
rt as invertedEffects,
|
|
820
|
+
nt as isolateHistory,
|
|
821
|
+
Xt as moveLineDown,
|
|
822
|
+
Qt as moveLineUp,
|
|
823
|
+
H as redo,
|
|
824
|
+
lt as redoSelection,
|
|
825
|
+
Vt as selectAll,
|
|
826
|
+
Me as selectCharLeft,
|
|
827
|
+
Ee as selectCharRight,
|
|
828
|
+
ne as selectDocEnd,
|
|
829
|
+
te as selectDocStart,
|
|
830
|
+
Lt as selectGroupLeft,
|
|
831
|
+
Mt as selectGroupRight,
|
|
832
|
+
Nt as selectLine,
|
|
833
|
+
bt as selectLineBoundaryBackward,
|
|
834
|
+
Tt as selectLineBoundaryForward,
|
|
835
|
+
vt as selectLineBoundaryLeft,
|
|
836
|
+
Rt as selectLineBoundaryRight,
|
|
837
|
+
ve as selectLineDown,
|
|
838
|
+
Ut as selectLineEnd,
|
|
839
|
+
It as selectLineStart,
|
|
840
|
+
be as selectLineUp,
|
|
841
|
+
_ as selectPageDown,
|
|
842
|
+
j as selectPageUp,
|
|
843
|
+
Pt as selectParentSyntax,
|
|
844
|
+
Et as selectSyntaxLeft,
|
|
845
|
+
Ot as selectSyntaxRight,
|
|
846
|
+
Ft as simplifySelection,
|
|
847
|
+
$t as splitLine,
|
|
848
|
+
rn as standardKeymap,
|
|
849
|
+
je as toggleBlockComment,
|
|
850
|
+
_e as toggleBlockCommentByLine,
|
|
851
|
+
Ye as toggleComment,
|
|
852
|
+
Ze as toggleLineComment,
|
|
853
|
+
tn as toggleTabFocusMode,
|
|
854
|
+
Wt as transposeChars,
|
|
855
|
+
de as undo,
|
|
856
|
+
ot as undoSelection
|
|
857
|
+
};
|