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