@gsc-basic/components 1.0.3 → 1.1.0
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/{lib/src → es}/Form/src/Form.css +14 -1
- package/dist/es/Form/src/Form.vue.js +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/{src/Form/src/Form.css → Marquee/src/index2.css} +14 -1
- 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/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/RichTextEditor/src/index2.css +14 -0
- 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/{src/ScaleScreen → ScaleScreen}/src/index2.css +13 -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/VirtualScroll/src/index2.css +14 -0
- 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/{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/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/{src/ScaleScreen → ScaleScreen}/src/index2.css +13 -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/VirtualScroll/src/index2.css +14 -0
- 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 -16
- 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.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,1431 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}), this.combine = e.combine || null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
This is meant to be used with
|
|
19
|
-
[`NodeSet.extend`](#common.NodeSet.extend) or
|
|
20
|
-
[`LRParser.configure`](#lr.ParserConfig.props) to compute
|
|
21
|
-
prop values for each node type in the set. Takes a [match
|
|
22
|
-
object](#common.NodeType^match) or function that returns undefined
|
|
23
|
-
if the node type doesn't get this prop, and the prop's value if
|
|
24
|
-
it does.
|
|
25
|
-
*/
|
|
26
|
-
add(e) {
|
|
27
|
-
if (this.perNode)
|
|
28
|
-
throw new RangeError("Can't add per-node props to node types");
|
|
29
|
-
return typeof e != "function" && (e = j.match(e)), (t) => {
|
|
30
|
-
let r = e(t);
|
|
31
|
-
return r === void 0 ? null : [this, r];
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
k.closedBy = new k({ deserialize: (l) => l.split(" ") });
|
|
36
|
-
k.openedBy = new k({ deserialize: (l) => l.split(" ") });
|
|
37
|
-
k.group = new k({ deserialize: (l) => l.split(" ") });
|
|
38
|
-
k.isolate = new k({ deserialize: (l) => {
|
|
39
|
-
if (l && l != "rtl" && l != "ltr" && l != "auto")
|
|
40
|
-
throw new RangeError("Invalid value for isolate: " + l);
|
|
41
|
-
return l || "auto";
|
|
42
|
-
} });
|
|
43
|
-
k.contextHash = new k({ perNode: !0 });
|
|
44
|
-
k.lookAhead = new k({ perNode: !0 });
|
|
45
|
-
k.mounted = new k({ perNode: !0 });
|
|
46
|
-
class V {
|
|
47
|
-
constructor(e, t, r, i = !1) {
|
|
48
|
-
this.tree = e, this.overlay = t, this.parser = r, this.bracketed = i;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
@internal
|
|
52
|
-
*/
|
|
53
|
-
static get(e) {
|
|
54
|
-
return e && e.props && e.props[k.mounted.id];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
const xe = /* @__PURE__ */ Object.create(null);
|
|
58
|
-
class j {
|
|
59
|
-
/**
|
|
60
|
-
@internal
|
|
61
|
-
*/
|
|
62
|
-
constructor(e, t, r, i = 0) {
|
|
63
|
-
this.name = e, this.props = t, this.id = r, this.flags = i;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
Define a node type.
|
|
67
|
-
*/
|
|
68
|
-
static define(e) {
|
|
69
|
-
let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : xe, r = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new j(e.name || "", t, e.id, r);
|
|
70
|
-
if (e.props) {
|
|
71
|
-
for (let n of e.props)
|
|
72
|
-
if (Array.isArray(n) || (n = n(i)), n) {
|
|
73
|
-
if (n[0].perNode)
|
|
74
|
-
throw new RangeError("Can't store a per-node prop on a node type");
|
|
75
|
-
t[n[0].id] = n[1];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return i;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
Retrieves a node prop for this type. Will return `undefined` if
|
|
82
|
-
the prop isn't present on this node.
|
|
83
|
-
*/
|
|
84
|
-
prop(e) {
|
|
85
|
-
return this.props[e.id];
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
True when this is the top node of a grammar.
|
|
89
|
-
*/
|
|
90
|
-
get isTop() {
|
|
91
|
-
return (this.flags & 1) > 0;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
True when this node is produced by a skip rule.
|
|
95
|
-
*/
|
|
96
|
-
get isSkipped() {
|
|
97
|
-
return (this.flags & 2) > 0;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
Indicates whether this is an error node.
|
|
101
|
-
*/
|
|
102
|
-
get isError() {
|
|
103
|
-
return (this.flags & 4) > 0;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
When true, this node type doesn't correspond to a user-declared
|
|
107
|
-
named node, for example because it is used to cache repetition.
|
|
108
|
-
*/
|
|
109
|
-
get isAnonymous() {
|
|
110
|
-
return (this.flags & 8) > 0;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
Returns true when this node's name or one of its
|
|
114
|
-
[groups](#common.NodeProp^group) matches the given string.
|
|
115
|
-
*/
|
|
116
|
-
is(e) {
|
|
117
|
-
if (typeof e == "string") {
|
|
118
|
-
if (this.name == e)
|
|
119
|
-
return !0;
|
|
120
|
-
let t = this.prop(k.group);
|
|
121
|
-
return t ? t.indexOf(e) > -1 : !1;
|
|
122
|
-
}
|
|
123
|
-
return this.id == e;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
Create a function from node types to arbitrary values by
|
|
127
|
-
specifying an object whose property names are node or
|
|
128
|
-
[group](#common.NodeProp^group) names. Often useful with
|
|
129
|
-
[`NodeProp.add`](#common.NodeProp.add). You can put multiple
|
|
130
|
-
names, separated by spaces, in a single property name to map
|
|
131
|
-
multiple node names to a single value.
|
|
132
|
-
*/
|
|
133
|
-
static match(e) {
|
|
134
|
-
let t = /* @__PURE__ */ Object.create(null);
|
|
135
|
-
for (let r in e)
|
|
136
|
-
for (let i of r.split(" "))
|
|
137
|
-
t[i] = e[r];
|
|
138
|
-
return (r) => {
|
|
139
|
-
for (let i = r.prop(k.group), n = -1; n < (i ? i.length : 0); n++) {
|
|
140
|
-
let s = t[n < 0 ? r.name : i[n]];
|
|
141
|
-
if (s)
|
|
142
|
-
return s;
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
j.none = new j(
|
|
148
|
-
"",
|
|
149
|
-
/* @__PURE__ */ Object.create(null),
|
|
150
|
-
0,
|
|
151
|
-
8
|
|
152
|
-
/* NodeFlag.Anonymous */
|
|
153
|
-
);
|
|
154
|
-
class ae {
|
|
155
|
-
/**
|
|
156
|
-
Create a set with the given types. The `id` property of each
|
|
157
|
-
type should correspond to its position within the array.
|
|
158
|
-
*/
|
|
159
|
-
constructor(e) {
|
|
160
|
-
this.types = e;
|
|
161
|
-
for (let t = 0; t < e.length; t++)
|
|
162
|
-
if (e[t].id != t)
|
|
163
|
-
throw new RangeError("Node type ids should correspond to array positions when creating a node set");
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
Create a copy of this set with some node properties added. The
|
|
167
|
-
arguments to this method can be created with
|
|
168
|
-
[`NodeProp.add`](#common.NodeProp.add).
|
|
169
|
-
*/
|
|
170
|
-
extend(...e) {
|
|
171
|
-
let t = [];
|
|
172
|
-
for (let r of this.types) {
|
|
173
|
-
let i = null;
|
|
174
|
-
for (let n of e) {
|
|
175
|
-
let s = n(r);
|
|
176
|
-
if (s) {
|
|
177
|
-
i || (i = Object.assign({}, r.props));
|
|
178
|
-
let h = s[1], u = s[0];
|
|
179
|
-
u.combine && u.id in i && (h = u.combine(i[u.id], h)), i[u.id] = h;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
t.push(i ? new j(r.name, i, r.id, r.flags) : r);
|
|
183
|
-
}
|
|
184
|
-
return new ae(t);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
const Q = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
|
|
188
|
-
var _;
|
|
189
|
-
(function(l) {
|
|
190
|
-
l[l.ExcludeBuffers = 1] = "ExcludeBuffers", l[l.IncludeAnonymous = 2] = "IncludeAnonymous", l[l.IgnoreMounts = 4] = "IgnoreMounts", l[l.IgnoreOverlays = 8] = "IgnoreOverlays", l[l.EnterBracketed = 16] = "EnterBracketed";
|
|
191
|
-
})(_ || (_ = {}));
|
|
192
|
-
class P {
|
|
193
|
-
/**
|
|
194
|
-
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
195
|
-
*/
|
|
196
|
-
constructor(e, t, r, i, n) {
|
|
197
|
-
if (this.type = e, this.children = t, this.positions = r, this.length = i, this.props = null, n && n.length) {
|
|
198
|
-
this.props = /* @__PURE__ */ Object.create(null);
|
|
199
|
-
for (let [s, h] of n)
|
|
200
|
-
this.props[typeof s == "number" ? s : s.id] = h;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
@internal
|
|
205
|
-
*/
|
|
206
|
-
toString() {
|
|
207
|
-
let e = V.get(this);
|
|
208
|
-
if (e && !e.overlay)
|
|
209
|
-
return e.tree.toString();
|
|
210
|
-
let t = "";
|
|
211
|
-
for (let r of this.children) {
|
|
212
|
-
let i = r.toString();
|
|
213
|
-
i && (t && (t += ","), t += i);
|
|
214
|
-
}
|
|
215
|
-
return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (t.length ? "(" + t + ")" : "") : t;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
Get a [tree cursor](#common.TreeCursor) positioned at the top of
|
|
219
|
-
the tree. Mode can be used to [control](#common.IterMode) which
|
|
220
|
-
nodes the cursor visits.
|
|
221
|
-
*/
|
|
222
|
-
cursor(e = 0) {
|
|
223
|
-
return new te(this.topNode, e);
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
Get a [tree cursor](#common.TreeCursor) pointing into this tree
|
|
227
|
-
at the given position and side (see
|
|
228
|
-
[`moveTo`](#common.TreeCursor.moveTo).
|
|
229
|
-
*/
|
|
230
|
-
cursorAt(e, t = 0, r = 0) {
|
|
231
|
-
let i = Q.get(this) || this.topNode, n = new te(i);
|
|
232
|
-
return n.moveTo(e, t), Q.set(this, n._tree), n;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
Get a [syntax node](#common.SyntaxNode) object for the top of the
|
|
236
|
-
tree.
|
|
237
|
-
*/
|
|
238
|
-
get topNode() {
|
|
239
|
-
return new z(this, 0, 0, null);
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
Get the [syntax node](#common.SyntaxNode) at the given position.
|
|
243
|
-
If `side` is -1, this will move into nodes that end at the
|
|
244
|
-
position. If 1, it'll move into nodes that start at the
|
|
245
|
-
position. With 0, it'll only enter nodes that cover the position
|
|
246
|
-
from both sides.
|
|
247
|
-
|
|
248
|
-
Note that this will not enter
|
|
249
|
-
[overlays](#common.MountedTree.overlay), and you often want
|
|
250
|
-
[`resolveInner`](#common.Tree.resolveInner) instead.
|
|
251
|
-
*/
|
|
252
|
-
resolve(e, t = 0) {
|
|
253
|
-
let r = $(Q.get(this) || this.topNode, e, t, !1);
|
|
254
|
-
return Q.set(this, r), r;
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
Like [`resolve`](#common.Tree.resolve), but will enter
|
|
258
|
-
[overlaid](#common.MountedTree.overlay) nodes, producing a syntax node
|
|
259
|
-
pointing into the innermost overlaid tree at the given position
|
|
260
|
-
(with parent links going through all parent structure, including
|
|
261
|
-
the host trees).
|
|
262
|
-
*/
|
|
263
|
-
resolveInner(e, t = 0) {
|
|
264
|
-
let r = $(fe.get(this) || this.topNode, e, t, !0);
|
|
265
|
-
return fe.set(this, r), r;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
In some situations, it can be useful to iterate through all
|
|
269
|
-
nodes around a position, including those in overlays that don't
|
|
270
|
-
directly cover the position. This method gives you an iterator
|
|
271
|
-
that will produce all nodes, from small to big, around the given
|
|
272
|
-
position.
|
|
273
|
-
*/
|
|
274
|
-
resolveStack(e, t = 0) {
|
|
275
|
-
return me(this, e, t);
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
Iterate over the tree and its children, calling `enter` for any
|
|
279
|
-
node that touches the `from`/`to` region (if given) before
|
|
280
|
-
running over such a node's children, and `leave` (if given) when
|
|
281
|
-
leaving the node. When `enter` returns `false`, that node will
|
|
282
|
-
not have its children iterated over (or `leave` called).
|
|
283
|
-
*/
|
|
284
|
-
iterate(e) {
|
|
285
|
-
let { enter: t, leave: r, from: i = 0, to: n = this.length } = e, s = e.mode || 0, h = (s & _.IncludeAnonymous) > 0;
|
|
286
|
-
for (let u = this.cursor(s | _.IncludeAnonymous); ; ) {
|
|
287
|
-
let C = !1;
|
|
288
|
-
if (u.from <= n && u.to >= i && (!h && u.type.isAnonymous || t(u) !== !1)) {
|
|
289
|
-
if (u.firstChild())
|
|
290
|
-
continue;
|
|
291
|
-
C = !0;
|
|
292
|
-
}
|
|
293
|
-
for (; C && r && (h || !u.type.isAnonymous) && r(u), !u.nextSibling(); ) {
|
|
294
|
-
if (!u.parent())
|
|
295
|
-
return;
|
|
296
|
-
C = !0;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
Get the value of the given [node prop](#common.NodeProp) for this
|
|
302
|
-
node. Works with both per-node and per-type props.
|
|
303
|
-
*/
|
|
304
|
-
prop(e) {
|
|
305
|
-
return e.perNode ? this.props ? this.props[e.id] : void 0 : this.type.prop(e);
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
Returns the node's [per-node props](#common.NodeProp.perNode) in a
|
|
309
|
-
format that can be passed to the [`Tree`](#common.Tree)
|
|
310
|
-
constructor.
|
|
311
|
-
*/
|
|
312
|
-
get propValues() {
|
|
313
|
-
let e = [];
|
|
314
|
-
if (this.props)
|
|
315
|
-
for (let t in this.props)
|
|
316
|
-
e.push([+t, this.props[t]]);
|
|
317
|
-
return e;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
Balance the direct children of this tree, producing a copy of
|
|
321
|
-
which may have children grouped into subtrees with type
|
|
322
|
-
[`NodeType.none`](#common.NodeType^none).
|
|
323
|
-
*/
|
|
324
|
-
balance(e = {}) {
|
|
325
|
-
return this.children.length <= 8 ? this : se(j.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, r, i) => new P(this.type, t, r, i, this.propValues), e.makeTree || ((t, r, i) => new P(j.none, t, r, i)));
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
Build a tree from a postfix-ordered buffer of node information,
|
|
329
|
-
or a cursor over such a buffer.
|
|
330
|
-
*/
|
|
331
|
-
static build(e) {
|
|
332
|
-
return we(e);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
P.empty = new P(j.none, [], [], 0);
|
|
336
|
-
class ie {
|
|
337
|
-
constructor(e, t) {
|
|
338
|
-
this.buffer = e, this.index = t;
|
|
339
|
-
}
|
|
340
|
-
get id() {
|
|
341
|
-
return this.buffer[this.index - 4];
|
|
342
|
-
}
|
|
343
|
-
get start() {
|
|
344
|
-
return this.buffer[this.index - 3];
|
|
345
|
-
}
|
|
346
|
-
get end() {
|
|
347
|
-
return this.buffer[this.index - 2];
|
|
348
|
-
}
|
|
349
|
-
get size() {
|
|
350
|
-
return this.buffer[this.index - 1];
|
|
351
|
-
}
|
|
352
|
-
get pos() {
|
|
353
|
-
return this.index;
|
|
354
|
-
}
|
|
355
|
-
next() {
|
|
356
|
-
this.index -= 4;
|
|
357
|
-
}
|
|
358
|
-
fork() {
|
|
359
|
-
return new ie(this.buffer, this.index);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
class M {
|
|
363
|
-
/**
|
|
364
|
-
Create a tree buffer.
|
|
365
|
-
*/
|
|
366
|
-
constructor(e, t, r) {
|
|
367
|
-
this.buffer = e, this.length = t, this.set = r;
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
@internal
|
|
371
|
-
*/
|
|
372
|
-
get type() {
|
|
373
|
-
return j.none;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
@internal
|
|
377
|
-
*/
|
|
378
|
-
toString() {
|
|
379
|
-
let e = [];
|
|
380
|
-
for (let t = 0; t < this.buffer.length; )
|
|
381
|
-
e.push(this.childString(t)), t = this.buffer[t + 3];
|
|
382
|
-
return e.join(",");
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
@internal
|
|
386
|
-
*/
|
|
387
|
-
childString(e) {
|
|
388
|
-
let t = this.buffer[e], r = this.buffer[e + 3], i = this.set.types[t], n = i.name;
|
|
389
|
-
if (/\W/.test(n) && !i.isError && (n = JSON.stringify(n)), e += 4, r == e)
|
|
390
|
-
return n;
|
|
391
|
-
let s = [];
|
|
392
|
-
for (; e < r; )
|
|
393
|
-
s.push(this.childString(e)), e = this.buffer[e + 3];
|
|
394
|
-
return n + "(" + s.join(",") + ")";
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
@internal
|
|
398
|
-
*/
|
|
399
|
-
findChild(e, t, r, i, n) {
|
|
400
|
-
let { buffer: s } = this, h = -1;
|
|
401
|
-
for (let u = e; u != t && !(pe(n, i, s[u + 1], s[u + 2]) && (h = u, r > 0)); u = s[u + 3])
|
|
402
|
-
;
|
|
403
|
-
return h;
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
@internal
|
|
407
|
-
*/
|
|
408
|
-
slice(e, t, r) {
|
|
409
|
-
let i = this.buffer, n = new Uint16Array(t - e), s = 0;
|
|
410
|
-
for (let h = e, u = 0; h < t; ) {
|
|
411
|
-
n[u++] = i[h++], n[u++] = i[h++] - r;
|
|
412
|
-
let C = n[u++] = i[h++] - r;
|
|
413
|
-
n[u++] = i[h++] - e, s = Math.max(s, C);
|
|
414
|
-
}
|
|
415
|
-
return new M(n, s, this.set);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
function pe(l, e, t, r) {
|
|
419
|
-
switch (l) {
|
|
420
|
-
case -2:
|
|
421
|
-
return t < e;
|
|
422
|
-
case -1:
|
|
423
|
-
return r >= e && t < e;
|
|
424
|
-
case 0:
|
|
425
|
-
return t < e && r > e;
|
|
426
|
-
case 1:
|
|
427
|
-
return t <= e && r > e;
|
|
428
|
-
case 2:
|
|
429
|
-
return r > e;
|
|
430
|
-
case 4:
|
|
431
|
-
return !0;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
function $(l, e, t, r) {
|
|
435
|
-
for (var i; l.from == l.to || (t < 1 ? l.from >= e : l.from > e) || (t > -1 ? l.to <= e : l.to < e); ) {
|
|
436
|
-
let s = !r && l instanceof z && l.index < 0 ? null : l.parent;
|
|
437
|
-
if (!s)
|
|
438
|
-
return l;
|
|
439
|
-
l = s;
|
|
440
|
-
}
|
|
441
|
-
let n = r ? 0 : _.IgnoreOverlays;
|
|
442
|
-
if (r)
|
|
443
|
-
for (let s = l, h = s.parent; h; s = h, h = s.parent)
|
|
444
|
-
s instanceof z && s.index < 0 && ((i = h.enter(e, t, n)) === null || i === void 0 ? void 0 : i.from) != s.from && (l = h);
|
|
445
|
-
for (; ; ) {
|
|
446
|
-
let s = l.enter(e, t, n);
|
|
447
|
-
if (!s)
|
|
448
|
-
return l;
|
|
449
|
-
l = s;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
class de {
|
|
453
|
-
cursor(e = 0) {
|
|
454
|
-
return new te(this, e);
|
|
455
|
-
}
|
|
456
|
-
getChild(e, t = null, r = null) {
|
|
457
|
-
let i = ue(this, e, t, r);
|
|
458
|
-
return i.length ? i[0] : null;
|
|
459
|
-
}
|
|
460
|
-
getChildren(e, t = null, r = null) {
|
|
461
|
-
return ue(this, e, t, r);
|
|
462
|
-
}
|
|
463
|
-
resolve(e, t = 0) {
|
|
464
|
-
return $(this, e, t, !1);
|
|
465
|
-
}
|
|
466
|
-
resolveInner(e, t = 0) {
|
|
467
|
-
return $(this, e, t, !0);
|
|
468
|
-
}
|
|
469
|
-
matchContext(e) {
|
|
470
|
-
return ee(this.parent, e);
|
|
471
|
-
}
|
|
472
|
-
enterUnfinishedNodesBefore(e) {
|
|
473
|
-
let t = this.childBefore(e), r = this;
|
|
474
|
-
for (; t; ) {
|
|
475
|
-
let i = t.lastChild;
|
|
476
|
-
if (!i || i.to != t.to)
|
|
477
|
-
break;
|
|
478
|
-
i.type.isError && i.from == i.to ? (r = t, t = i.prevSibling) : t = i;
|
|
479
|
-
}
|
|
480
|
-
return r;
|
|
481
|
-
}
|
|
482
|
-
get node() {
|
|
483
|
-
return this;
|
|
484
|
-
}
|
|
485
|
-
get next() {
|
|
486
|
-
return this.parent;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
class z extends de {
|
|
490
|
-
constructor(e, t, r, i) {
|
|
491
|
-
super(), this._tree = e, this.from = t, this.index = r, this._parent = i;
|
|
492
|
-
}
|
|
493
|
-
get type() {
|
|
494
|
-
return this._tree.type;
|
|
495
|
-
}
|
|
496
|
-
get name() {
|
|
497
|
-
return this._tree.type.name;
|
|
498
|
-
}
|
|
499
|
-
get to() {
|
|
500
|
-
return this.from + this._tree.length;
|
|
501
|
-
}
|
|
502
|
-
nextChild(e, t, r, i, n = 0) {
|
|
503
|
-
var s;
|
|
504
|
-
for (let h = this; ; ) {
|
|
505
|
-
for (let { children: u, positions: C } = h._tree, v = t > 0 ? u.length : -1; e != v; e += t) {
|
|
506
|
-
let p = u[e], x = C[e] + h.from;
|
|
507
|
-
if (!(!(n & _.EnterBracketed && p instanceof P && ((s = V.get(p)) === null || s === void 0 ? void 0 : s.overlay) === null && (x >= r || x + p.length <= r)) && !pe(i, r, x, x + p.length))) {
|
|
508
|
-
if (p instanceof M) {
|
|
509
|
-
if (n & _.ExcludeBuffers)
|
|
510
|
-
continue;
|
|
511
|
-
let N = p.findChild(0, p.buffer.length, t, r - x, i);
|
|
512
|
-
if (N > -1)
|
|
513
|
-
return new O(new be(h, p, e, x), null, N);
|
|
514
|
-
} else if (n & _.IncludeAnonymous || !p.type.isAnonymous || ne(p)) {
|
|
515
|
-
let N;
|
|
516
|
-
if (!(n & _.IgnoreMounts) && (N = V.get(p)) && !N.overlay)
|
|
517
|
-
return new z(N.tree, x, e, h);
|
|
518
|
-
let S = new z(p, x, e, h);
|
|
519
|
-
return n & _.IncludeAnonymous || !S.type.isAnonymous ? S : S.nextChild(t < 0 ? p.children.length - 1 : 0, t, r, i, n);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
if (n & _.IncludeAnonymous || !h.type.isAnonymous || (h.index >= 0 ? e = h.index + t : e = t < 0 ? -1 : h._parent._tree.children.length, h = h._parent, !h))
|
|
524
|
-
return null;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
get firstChild() {
|
|
528
|
-
return this.nextChild(
|
|
529
|
-
0,
|
|
530
|
-
1,
|
|
531
|
-
0,
|
|
532
|
-
4
|
|
533
|
-
/* Side.DontCare */
|
|
534
|
-
);
|
|
535
|
-
}
|
|
536
|
-
get lastChild() {
|
|
537
|
-
return this.nextChild(
|
|
538
|
-
this._tree.children.length - 1,
|
|
539
|
-
-1,
|
|
540
|
-
0,
|
|
541
|
-
4
|
|
542
|
-
/* Side.DontCare */
|
|
543
|
-
);
|
|
544
|
-
}
|
|
545
|
-
childAfter(e) {
|
|
546
|
-
return this.nextChild(
|
|
547
|
-
0,
|
|
548
|
-
1,
|
|
549
|
-
e,
|
|
550
|
-
2
|
|
551
|
-
/* Side.After */
|
|
552
|
-
);
|
|
553
|
-
}
|
|
554
|
-
childBefore(e) {
|
|
555
|
-
return this.nextChild(
|
|
556
|
-
this._tree.children.length - 1,
|
|
557
|
-
-1,
|
|
558
|
-
e,
|
|
559
|
-
-2
|
|
560
|
-
/* Side.Before */
|
|
561
|
-
);
|
|
562
|
-
}
|
|
563
|
-
prop(e) {
|
|
564
|
-
return this._tree.prop(e);
|
|
565
|
-
}
|
|
566
|
-
enter(e, t, r = 0) {
|
|
567
|
-
let i;
|
|
568
|
-
if (!(r & _.IgnoreOverlays) && (i = V.get(this._tree)) && i.overlay) {
|
|
569
|
-
let n = e - this.from, s = r & _.EnterBracketed && i.bracketed;
|
|
570
|
-
for (let { from: h, to: u } of i.overlay)
|
|
571
|
-
if ((t > 0 || s ? h <= n : h < n) && (t < 0 || s ? u >= n : u > n))
|
|
572
|
-
return new z(i.tree, i.overlay[0].from + this.from, -1, this);
|
|
573
|
-
}
|
|
574
|
-
return this.nextChild(0, 1, e, t, r);
|
|
575
|
-
}
|
|
576
|
-
nextSignificantParent() {
|
|
577
|
-
let e = this;
|
|
578
|
-
for (; e.type.isAnonymous && e._parent; )
|
|
579
|
-
e = e._parent;
|
|
580
|
-
return e;
|
|
581
|
-
}
|
|
582
|
-
get parent() {
|
|
583
|
-
return this._parent ? this._parent.nextSignificantParent() : null;
|
|
584
|
-
}
|
|
585
|
-
get nextSibling() {
|
|
586
|
-
return this._parent && this.index >= 0 ? this._parent.nextChild(
|
|
587
|
-
this.index + 1,
|
|
588
|
-
1,
|
|
589
|
-
0,
|
|
590
|
-
4
|
|
591
|
-
/* Side.DontCare */
|
|
592
|
-
) : null;
|
|
593
|
-
}
|
|
594
|
-
get prevSibling() {
|
|
595
|
-
return this._parent && this.index >= 0 ? this._parent.nextChild(
|
|
596
|
-
this.index - 1,
|
|
597
|
-
-1,
|
|
598
|
-
0,
|
|
599
|
-
4
|
|
600
|
-
/* Side.DontCare */
|
|
601
|
-
) : null;
|
|
602
|
-
}
|
|
603
|
-
get tree() {
|
|
604
|
-
return this._tree;
|
|
605
|
-
}
|
|
606
|
-
toTree() {
|
|
607
|
-
return this._tree;
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
@internal
|
|
611
|
-
*/
|
|
612
|
-
toString() {
|
|
613
|
-
return this._tree.toString();
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function ue(l, e, t, r) {
|
|
617
|
-
let i = l.cursor(), n = [];
|
|
618
|
-
if (!i.firstChild())
|
|
619
|
-
return n;
|
|
620
|
-
if (t != null) {
|
|
621
|
-
for (let s = !1; !s; )
|
|
622
|
-
if (s = i.type.is(t), !i.nextSibling())
|
|
623
|
-
return n;
|
|
624
|
-
}
|
|
625
|
-
for (; ; ) {
|
|
626
|
-
if (r != null && i.type.is(r))
|
|
627
|
-
return n;
|
|
628
|
-
if (i.type.is(e) && n.push(i.node), !i.nextSibling())
|
|
629
|
-
return r == null ? n : [];
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
function ee(l, e, t = e.length - 1) {
|
|
633
|
-
for (let r = l; t >= 0; r = r.parent) {
|
|
634
|
-
if (!r)
|
|
635
|
-
return !1;
|
|
636
|
-
if (!r.type.isAnonymous) {
|
|
637
|
-
if (e[t] && e[t] != r.name)
|
|
638
|
-
return !1;
|
|
639
|
-
t--;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
return !0;
|
|
643
|
-
}
|
|
644
|
-
class be {
|
|
645
|
-
constructor(e, t, r, i) {
|
|
646
|
-
this.parent = e, this.buffer = t, this.index = r, this.start = i;
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
class O extends de {
|
|
650
|
-
get name() {
|
|
651
|
-
return this.type.name;
|
|
652
|
-
}
|
|
653
|
-
get from() {
|
|
654
|
-
return this.context.start + this.context.buffer.buffer[this.index + 1];
|
|
655
|
-
}
|
|
656
|
-
get to() {
|
|
657
|
-
return this.context.start + this.context.buffer.buffer[this.index + 2];
|
|
658
|
-
}
|
|
659
|
-
constructor(e, t, r) {
|
|
660
|
-
super(), this.context = e, this._parent = t, this.index = r, this.type = e.buffer.set.types[e.buffer.buffer[r]];
|
|
661
|
-
}
|
|
662
|
-
child(e, t, r) {
|
|
663
|
-
let { buffer: i } = this.context, n = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.context.start, r);
|
|
664
|
-
return n < 0 ? null : new O(this.context, this, n);
|
|
665
|
-
}
|
|
666
|
-
get firstChild() {
|
|
667
|
-
return this.child(
|
|
668
|
-
1,
|
|
669
|
-
0,
|
|
670
|
-
4
|
|
671
|
-
/* Side.DontCare */
|
|
672
|
-
);
|
|
673
|
-
}
|
|
674
|
-
get lastChild() {
|
|
675
|
-
return this.child(
|
|
676
|
-
-1,
|
|
677
|
-
0,
|
|
678
|
-
4
|
|
679
|
-
/* Side.DontCare */
|
|
680
|
-
);
|
|
681
|
-
}
|
|
682
|
-
childAfter(e) {
|
|
683
|
-
return this.child(
|
|
684
|
-
1,
|
|
685
|
-
e,
|
|
686
|
-
2
|
|
687
|
-
/* Side.After */
|
|
688
|
-
);
|
|
689
|
-
}
|
|
690
|
-
childBefore(e) {
|
|
691
|
-
return this.child(
|
|
692
|
-
-1,
|
|
693
|
-
e,
|
|
694
|
-
-2
|
|
695
|
-
/* Side.Before */
|
|
696
|
-
);
|
|
697
|
-
}
|
|
698
|
-
prop(e) {
|
|
699
|
-
return this.type.prop(e);
|
|
700
|
-
}
|
|
701
|
-
enter(e, t, r = 0) {
|
|
702
|
-
if (r & _.ExcludeBuffers)
|
|
703
|
-
return null;
|
|
704
|
-
let { buffer: i } = this.context, n = i.findChild(this.index + 4, i.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
705
|
-
return n < 0 ? null : new O(this.context, this, n);
|
|
706
|
-
}
|
|
707
|
-
get parent() {
|
|
708
|
-
return this._parent || this.context.parent.nextSignificantParent();
|
|
709
|
-
}
|
|
710
|
-
externalSibling(e) {
|
|
711
|
-
return this._parent ? null : this.context.parent.nextChild(
|
|
712
|
-
this.context.index + e,
|
|
713
|
-
e,
|
|
714
|
-
0,
|
|
715
|
-
4
|
|
716
|
-
/* Side.DontCare */
|
|
717
|
-
);
|
|
718
|
-
}
|
|
719
|
-
get nextSibling() {
|
|
720
|
-
let { buffer: e } = this.context, t = e.buffer[this.index + 3];
|
|
721
|
-
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new O(this.context, this._parent, t) : this.externalSibling(1);
|
|
722
|
-
}
|
|
723
|
-
get prevSibling() {
|
|
724
|
-
let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
|
|
725
|
-
return this.index == t ? this.externalSibling(-1) : new O(this.context, this._parent, e.findChild(
|
|
726
|
-
t,
|
|
727
|
-
this.index,
|
|
728
|
-
-1,
|
|
729
|
-
0,
|
|
730
|
-
4
|
|
731
|
-
/* Side.DontCare */
|
|
732
|
-
));
|
|
733
|
-
}
|
|
734
|
-
get tree() {
|
|
735
|
-
return null;
|
|
736
|
-
}
|
|
737
|
-
toTree() {
|
|
738
|
-
let e = [], t = [], { buffer: r } = this.context, i = this.index + 4, n = r.buffer[this.index + 3];
|
|
739
|
-
if (n > i) {
|
|
740
|
-
let s = r.buffer[this.index + 1];
|
|
741
|
-
e.push(r.slice(i, n, s)), t.push(0);
|
|
742
|
-
}
|
|
743
|
-
return new P(this.type, e, t, this.to - this.from);
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
@internal
|
|
747
|
-
*/
|
|
748
|
-
toString() {
|
|
749
|
-
return this.context.buffer.childString(this.index);
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
function ce(l) {
|
|
753
|
-
if (!l.length)
|
|
754
|
-
return null;
|
|
755
|
-
let e = 0, t = l[0];
|
|
756
|
-
for (let n = 1; n < l.length; n++) {
|
|
757
|
-
let s = l[n];
|
|
758
|
-
(s.from > t.from || s.to < t.to) && (t = s, e = n);
|
|
759
|
-
}
|
|
760
|
-
let r = t instanceof z && t.index < 0 ? null : t.parent, i = l.slice();
|
|
761
|
-
return r ? i[e] = r : i.splice(e, 1), new ye(i, t);
|
|
762
|
-
}
|
|
763
|
-
class ye {
|
|
764
|
-
constructor(e, t) {
|
|
765
|
-
this.heads = e, this.node = t;
|
|
766
|
-
}
|
|
767
|
-
get next() {
|
|
768
|
-
return ce(this.heads);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
function me(l, e, t) {
|
|
772
|
-
let r = l.resolveInner(e, t), i = null;
|
|
773
|
-
for (let n = r instanceof z ? r : r.context.parent; n; n = n.parent)
|
|
774
|
-
if (n.index < 0) {
|
|
775
|
-
let s = n.parent;
|
|
776
|
-
(i || (i = [r])).push(s.resolve(e, t)), n = s;
|
|
777
|
-
} else {
|
|
778
|
-
let s = V.get(n.tree);
|
|
779
|
-
if (s && s.overlay && s.overlay[0].from <= e && s.overlay[s.overlay.length - 1].to >= e) {
|
|
780
|
-
let h = new z(s.tree, s.overlay[0].from + n.from, -1, n);
|
|
781
|
-
(i || (i = [r])).push($(h, e, t, !1));
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
return i ? ce(i) : r;
|
|
785
|
-
}
|
|
786
|
-
class te {
|
|
787
|
-
/**
|
|
788
|
-
Shorthand for `.type.name`.
|
|
789
|
-
*/
|
|
790
|
-
get name() {
|
|
791
|
-
return this.type.name;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
@internal
|
|
795
|
-
*/
|
|
796
|
-
constructor(e, t = 0) {
|
|
797
|
-
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = t & ~_.EnterBracketed, e instanceof z)
|
|
798
|
-
this.yieldNode(e);
|
|
799
|
-
else {
|
|
800
|
-
this._tree = e.context.parent, this.buffer = e.context;
|
|
801
|
-
for (let r = e._parent; r; r = r._parent)
|
|
802
|
-
this.stack.unshift(r.index);
|
|
803
|
-
this.bufferNode = e, this.yieldBuf(e.index);
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
yieldNode(e) {
|
|
807
|
-
return e ? (this._tree = e, this.type = e.type, this.from = e.from, this.to = e.to, !0) : !1;
|
|
808
|
-
}
|
|
809
|
-
yieldBuf(e, t) {
|
|
810
|
-
this.index = e;
|
|
811
|
-
let { start: r, buffer: i } = this.buffer;
|
|
812
|
-
return this.type = t || i.set.types[i.buffer[e]], this.from = r + i.buffer[e + 1], this.to = r + i.buffer[e + 2], !0;
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
@internal
|
|
816
|
-
*/
|
|
817
|
-
yield(e) {
|
|
818
|
-
return e ? e instanceof z ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
|
|
819
|
-
}
|
|
820
|
-
/**
|
|
821
|
-
@internal
|
|
822
|
-
*/
|
|
823
|
-
toString() {
|
|
824
|
-
return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
@internal
|
|
828
|
-
*/
|
|
829
|
-
enterChild(e, t, r) {
|
|
830
|
-
if (!this.buffer)
|
|
831
|
-
return this.yield(this._tree.nextChild(e < 0 ? this._tree._tree.children.length - 1 : 0, e, t, r, this.mode));
|
|
832
|
-
let { buffer: i } = this.buffer, n = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.buffer.start, r);
|
|
833
|
-
return n < 0 ? !1 : (this.stack.push(this.index), this.yieldBuf(n));
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
Move the cursor to this node's first child. When this returns
|
|
837
|
-
false, the node has no child, and the cursor has not been moved.
|
|
838
|
-
*/
|
|
839
|
-
firstChild() {
|
|
840
|
-
return this.enterChild(
|
|
841
|
-
1,
|
|
842
|
-
0,
|
|
843
|
-
4
|
|
844
|
-
/* Side.DontCare */
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
Move the cursor to this node's last child.
|
|
849
|
-
*/
|
|
850
|
-
lastChild() {
|
|
851
|
-
return this.enterChild(
|
|
852
|
-
-1,
|
|
853
|
-
0,
|
|
854
|
-
4
|
|
855
|
-
/* Side.DontCare */
|
|
856
|
-
);
|
|
857
|
-
}
|
|
858
|
-
/**
|
|
859
|
-
Move the cursor to the first child that ends after `pos`.
|
|
860
|
-
*/
|
|
861
|
-
childAfter(e) {
|
|
862
|
-
return this.enterChild(
|
|
863
|
-
1,
|
|
864
|
-
e,
|
|
865
|
-
2
|
|
866
|
-
/* Side.After */
|
|
867
|
-
);
|
|
868
|
-
}
|
|
869
|
-
/**
|
|
870
|
-
Move to the last child that starts before `pos`.
|
|
871
|
-
*/
|
|
872
|
-
childBefore(e) {
|
|
873
|
-
return this.enterChild(
|
|
874
|
-
-1,
|
|
875
|
-
e,
|
|
876
|
-
-2
|
|
877
|
-
/* Side.Before */
|
|
878
|
-
);
|
|
879
|
-
}
|
|
880
|
-
/**
|
|
881
|
-
Move the cursor to the child around `pos`. If side is -1 the
|
|
882
|
-
child may end at that position, when 1 it may start there. This
|
|
883
|
-
will also enter [overlaid](#common.MountedTree.overlay)
|
|
884
|
-
[mounted](#common.NodeProp^mounted) trees unless `overlays` is
|
|
885
|
-
set to false.
|
|
886
|
-
*/
|
|
887
|
-
enter(e, t, r = this.mode) {
|
|
888
|
-
return this.buffer ? r & _.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, r));
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
Move to the node's parent node, if this isn't the top node.
|
|
892
|
-
*/
|
|
893
|
-
parent() {
|
|
894
|
-
if (!this.buffer)
|
|
895
|
-
return this.yieldNode(this.mode & _.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
896
|
-
if (this.stack.length)
|
|
897
|
-
return this.yieldBuf(this.stack.pop());
|
|
898
|
-
let e = this.mode & _.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
899
|
-
return this.buffer = null, this.yieldNode(e);
|
|
900
|
-
}
|
|
901
|
-
/**
|
|
902
|
-
@internal
|
|
903
|
-
*/
|
|
904
|
-
sibling(e) {
|
|
905
|
-
if (!this.buffer)
|
|
906
|
-
return this._tree._parent ? this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + e, e, 0, 4, this.mode)) : !1;
|
|
907
|
-
let { buffer: t } = this.buffer, r = this.stack.length - 1;
|
|
908
|
-
if (e < 0) {
|
|
909
|
-
let i = r < 0 ? 0 : this.stack[r] + 4;
|
|
910
|
-
if (this.index != i)
|
|
911
|
-
return this.yieldBuf(t.findChild(
|
|
912
|
-
i,
|
|
913
|
-
this.index,
|
|
914
|
-
-1,
|
|
915
|
-
0,
|
|
916
|
-
4
|
|
917
|
-
/* Side.DontCare */
|
|
918
|
-
));
|
|
919
|
-
} else {
|
|
920
|
-
let i = t.buffer[this.index + 3];
|
|
921
|
-
if (i < (r < 0 ? t.buffer.length : t.buffer[this.stack[r] + 3]))
|
|
922
|
-
return this.yieldBuf(i);
|
|
923
|
-
}
|
|
924
|
-
return r < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + e, e, 0, 4, this.mode)) : !1;
|
|
925
|
-
}
|
|
926
|
-
/**
|
|
927
|
-
Move to this node's next sibling, if any.
|
|
928
|
-
*/
|
|
929
|
-
nextSibling() {
|
|
930
|
-
return this.sibling(1);
|
|
931
|
-
}
|
|
932
|
-
/**
|
|
933
|
-
Move to this node's previous sibling, if any.
|
|
934
|
-
*/
|
|
935
|
-
prevSibling() {
|
|
936
|
-
return this.sibling(-1);
|
|
937
|
-
}
|
|
938
|
-
atLastNode(e) {
|
|
939
|
-
let t, r, { buffer: i } = this;
|
|
940
|
-
if (i) {
|
|
941
|
-
if (e > 0) {
|
|
942
|
-
if (this.index < i.buffer.buffer.length)
|
|
943
|
-
return !1;
|
|
944
|
-
} else
|
|
945
|
-
for (let n = 0; n < this.index; n++)
|
|
946
|
-
if (i.buffer.buffer[n + 3] < this.index)
|
|
947
|
-
return !1;
|
|
948
|
-
({ index: t, parent: r } = i);
|
|
949
|
-
} else
|
|
950
|
-
({ index: t, _parent: r } = this._tree);
|
|
951
|
-
for (; r; { index: t, _parent: r } = r)
|
|
952
|
-
if (t > -1)
|
|
953
|
-
for (let n = t + e, s = e < 0 ? -1 : r._tree.children.length; n != s; n += e) {
|
|
954
|
-
let h = r._tree.children[n];
|
|
955
|
-
if (this.mode & _.IncludeAnonymous || h instanceof M || !h.type.isAnonymous || ne(h))
|
|
956
|
-
return !1;
|
|
957
|
-
}
|
|
958
|
-
return !0;
|
|
959
|
-
}
|
|
960
|
-
move(e, t) {
|
|
961
|
-
if (t && this.enterChild(
|
|
962
|
-
e,
|
|
963
|
-
0,
|
|
964
|
-
4
|
|
965
|
-
/* Side.DontCare */
|
|
966
|
-
))
|
|
967
|
-
return !0;
|
|
968
|
-
for (; ; ) {
|
|
969
|
-
if (this.sibling(e))
|
|
970
|
-
return !0;
|
|
971
|
-
if (this.atLastNode(e) || !this.parent())
|
|
972
|
-
return !1;
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
/**
|
|
976
|
-
Move to the next node in a
|
|
977
|
-
[pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)
|
|
978
|
-
traversal, going from a node to its first child or, if the
|
|
979
|
-
current node is empty or `enter` is false, its next sibling or
|
|
980
|
-
the next sibling of the first parent node that has one.
|
|
981
|
-
*/
|
|
982
|
-
next(e = !0) {
|
|
983
|
-
return this.move(1, e);
|
|
984
|
-
}
|
|
985
|
-
/**
|
|
986
|
-
Move to the next node in a last-to-first pre-order traversal. A
|
|
987
|
-
node is followed by its last child or, if it has none, its
|
|
988
|
-
previous sibling or the previous sibling of the first parent
|
|
989
|
-
node that has one.
|
|
990
|
-
*/
|
|
991
|
-
prev(e = !0) {
|
|
992
|
-
return this.move(-1, e);
|
|
993
|
-
}
|
|
994
|
-
/**
|
|
995
|
-
Move the cursor to the innermost node that covers `pos`. If
|
|
996
|
-
`side` is -1, it will enter nodes that end at `pos`. If it is 1,
|
|
997
|
-
it will enter nodes that start at `pos`.
|
|
998
|
-
*/
|
|
999
|
-
moveTo(e, t = 0) {
|
|
1000
|
-
for (; (this.from == this.to || (t < 1 ? this.from >= e : this.from > e) || (t > -1 ? this.to <= e : this.to < e)) && this.parent(); )
|
|
1001
|
-
;
|
|
1002
|
-
for (; this.enterChild(1, e, t); )
|
|
1003
|
-
;
|
|
1004
|
-
return this;
|
|
1005
|
-
}
|
|
1006
|
-
/**
|
|
1007
|
-
Get a [syntax node](#common.SyntaxNode) at the cursor's current
|
|
1008
|
-
position.
|
|
1009
|
-
*/
|
|
1010
|
-
get node() {
|
|
1011
|
-
if (!this.buffer)
|
|
1012
|
-
return this._tree;
|
|
1013
|
-
let e = this.bufferNode, t = null, r = 0;
|
|
1014
|
-
if (e && e.context == this.buffer)
|
|
1015
|
-
e: for (let i = this.index, n = this.stack.length; n >= 0; ) {
|
|
1016
|
-
for (let s = e; s; s = s._parent)
|
|
1017
|
-
if (s.index == i) {
|
|
1018
|
-
if (i == this.index)
|
|
1019
|
-
return s;
|
|
1020
|
-
t = s, r = n + 1;
|
|
1021
|
-
break e;
|
|
1022
|
-
}
|
|
1023
|
-
i = this.stack[--n];
|
|
1024
|
-
}
|
|
1025
|
-
for (let i = r; i < this.stack.length; i++)
|
|
1026
|
-
t = new O(this.buffer, t, this.stack[i]);
|
|
1027
|
-
return this.bufferNode = new O(this.buffer, t, this.index);
|
|
1028
|
-
}
|
|
1029
|
-
/**
|
|
1030
|
-
Get the [tree](#common.Tree) that represents the current node, if
|
|
1031
|
-
any. Will return null when the node is in a [tree
|
|
1032
|
-
buffer](#common.TreeBuffer).
|
|
1033
|
-
*/
|
|
1034
|
-
get tree() {
|
|
1035
|
-
return this.buffer ? null : this._tree._tree;
|
|
1036
|
-
}
|
|
1037
|
-
/**
|
|
1038
|
-
Iterate over the current node and all its descendants, calling
|
|
1039
|
-
`enter` when entering a node and `leave`, if given, when leaving
|
|
1040
|
-
one. When `enter` returns `false`, any children of that node are
|
|
1041
|
-
skipped, and `leave` isn't called for it.
|
|
1042
|
-
*/
|
|
1043
|
-
iterate(e, t) {
|
|
1044
|
-
for (let r = 0; ; ) {
|
|
1045
|
-
let i = !1;
|
|
1046
|
-
if (this.type.isAnonymous || e(this) !== !1) {
|
|
1047
|
-
if (this.firstChild()) {
|
|
1048
|
-
r++;
|
|
1049
|
-
continue;
|
|
1050
|
-
}
|
|
1051
|
-
this.type.isAnonymous || (i = !0);
|
|
1052
|
-
}
|
|
1053
|
-
for (; ; ) {
|
|
1054
|
-
if (i && t && t(this), i = this.type.isAnonymous, !r)
|
|
1055
|
-
return;
|
|
1056
|
-
if (this.nextSibling())
|
|
1057
|
-
break;
|
|
1058
|
-
this.parent(), r--, i = !0;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
Test whether the current node matches a given context—a sequence
|
|
1064
|
-
of direct parent node names. Empty strings in the context array
|
|
1065
|
-
are treated as wildcards.
|
|
1066
|
-
*/
|
|
1067
|
-
matchContext(e) {
|
|
1068
|
-
if (!this.buffer)
|
|
1069
|
-
return ee(this.node.parent, e);
|
|
1070
|
-
let { buffer: t } = this.buffer, { types: r } = t.set;
|
|
1071
|
-
for (let i = e.length - 1, n = this.stack.length - 1; i >= 0; n--) {
|
|
1072
|
-
if (n < 0)
|
|
1073
|
-
return ee(this._tree, e, i);
|
|
1074
|
-
let s = r[t.buffer[this.stack[n]]];
|
|
1075
|
-
if (!s.isAnonymous) {
|
|
1076
|
-
if (e[i] && e[i] != s.name)
|
|
1077
|
-
return !1;
|
|
1078
|
-
i--;
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
return !0;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
function ne(l) {
|
|
1085
|
-
return l.children.some((e) => e instanceof M || !e.type.isAnonymous || ne(e));
|
|
1086
|
-
}
|
|
1087
|
-
function we(l) {
|
|
1088
|
-
var e;
|
|
1089
|
-
let { buffer: t, nodeSet: r, maxBufferLength: i = 1024, reused: n = [], minRepeatType: s = r.types.length } = l, h = Array.isArray(t) ? new ie(t, t.length) : t, u = r.types, C = 0, v = 0;
|
|
1090
|
-
function p(c, b, f, m, d, w) {
|
|
1091
|
-
let { id: a, start: o, end: g, size: y } = h, A = v, W = C;
|
|
1092
|
-
if (y < 0)
|
|
1093
|
-
if (h.next(), y == -1) {
|
|
1094
|
-
let R = n[a];
|
|
1095
|
-
f.push(R), m.push(o - c);
|
|
1096
|
-
return;
|
|
1097
|
-
} else if (y == -3) {
|
|
1098
|
-
C = a;
|
|
1099
|
-
return;
|
|
1100
|
-
} else if (y == -4) {
|
|
1101
|
-
v = a;
|
|
1102
|
-
return;
|
|
1103
|
-
} else
|
|
1104
|
-
throw new RangeError(`Unrecognized record size: ${y}`);
|
|
1105
|
-
let J = u[a], q, D, le = o - c;
|
|
1106
|
-
if (g - o <= i && (D = Y(h.pos - b, d))) {
|
|
1107
|
-
let R = new Uint16Array(D.size - D.skip), I = h.pos - D.size, E = R.length;
|
|
1108
|
-
for (; h.pos > I; )
|
|
1109
|
-
E = G(D.start, R, E);
|
|
1110
|
-
q = new M(R, g - D.start, r), le = D.start - c;
|
|
1111
|
-
} else {
|
|
1112
|
-
let R = h.pos - y;
|
|
1113
|
-
h.next();
|
|
1114
|
-
let I = [], E = [], F = a >= s ? a : -1, H = 0, K = g;
|
|
1115
|
-
for (; h.pos > R; )
|
|
1116
|
-
F >= 0 && h.id == F && h.size >= 0 ? (h.end <= K - i && (S(I, E, o, H, h.end, K, F, A, W), H = I.length, K = h.end), h.next()) : w > 2500 ? x(o, R, I, E) : p(o, R, I, E, F, w + 1);
|
|
1117
|
-
if (F >= 0 && H > 0 && H < I.length && S(I, E, o, H, o, K, F, A, W), I.reverse(), E.reverse(), F > -1 && H > 0) {
|
|
1118
|
-
let he = N(J, W);
|
|
1119
|
-
q = se(J, I, E, 0, I.length, 0, g - o, he, he);
|
|
1120
|
-
} else
|
|
1121
|
-
q = L(J, I, E, g - o, A - g, W);
|
|
1122
|
-
}
|
|
1123
|
-
f.push(q), m.push(le);
|
|
1124
|
-
}
|
|
1125
|
-
function x(c, b, f, m) {
|
|
1126
|
-
let d = [], w = 0, a = -1;
|
|
1127
|
-
for (; h.pos > b; ) {
|
|
1128
|
-
let { id: o, start: g, end: y, size: A } = h;
|
|
1129
|
-
if (A > 4)
|
|
1130
|
-
h.next();
|
|
1131
|
-
else {
|
|
1132
|
-
if (a > -1 && g < a)
|
|
1133
|
-
break;
|
|
1134
|
-
a < 0 && (a = y - i), d.push(o, g, y), w++, h.next();
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
if (w) {
|
|
1138
|
-
let o = new Uint16Array(w * 4), g = d[d.length - 2];
|
|
1139
|
-
for (let y = d.length - 3, A = 0; y >= 0; y -= 3)
|
|
1140
|
-
o[A++] = d[y], o[A++] = d[y + 1] - g, o[A++] = d[y + 2] - g, o[A++] = A;
|
|
1141
|
-
f.push(new M(o, d[2] - g, r)), m.push(g - c);
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
function N(c, b) {
|
|
1145
|
-
return (f, m, d) => {
|
|
1146
|
-
let w = 0, a = f.length - 1, o, g;
|
|
1147
|
-
if (a >= 0 && (o = f[a]) instanceof P) {
|
|
1148
|
-
if (!a && o.type == c && o.length == d)
|
|
1149
|
-
return o;
|
|
1150
|
-
(g = o.prop(k.lookAhead)) && (w = m[a] + o.length + g);
|
|
1151
|
-
}
|
|
1152
|
-
return L(c, f, m, d, w, b);
|
|
1153
|
-
};
|
|
1154
|
-
}
|
|
1155
|
-
function S(c, b, f, m, d, w, a, o, g) {
|
|
1156
|
-
let y = [], A = [];
|
|
1157
|
-
for (; c.length > m; )
|
|
1158
|
-
y.push(c.pop()), A.push(b.pop() + f - d);
|
|
1159
|
-
c.push(L(r.types[a], y, A, w - d, o - w, g)), b.push(d - f);
|
|
1160
|
-
}
|
|
1161
|
-
function L(c, b, f, m, d, w, a) {
|
|
1162
|
-
if (w) {
|
|
1163
|
-
let o = [k.contextHash, w];
|
|
1164
|
-
a = a ? [o].concat(a) : [o];
|
|
1165
|
-
}
|
|
1166
|
-
if (d > 25) {
|
|
1167
|
-
let o = [k.lookAhead, d];
|
|
1168
|
-
a = a ? [o].concat(a) : [o];
|
|
1169
|
-
}
|
|
1170
|
-
return new P(c, b, f, m, a);
|
|
1171
|
-
}
|
|
1172
|
-
function Y(c, b) {
|
|
1173
|
-
let f = h.fork(), m = 0, d = 0, w = 0, a = f.end - i, o = { size: 0, start: 0, skip: 0 };
|
|
1174
|
-
e: for (let g = f.pos - c; f.pos > g; ) {
|
|
1175
|
-
let y = f.size;
|
|
1176
|
-
if (f.id == b && y >= 0) {
|
|
1177
|
-
o.size = m, o.start = d, o.skip = w, w += 4, m += 4, f.next();
|
|
1178
|
-
continue;
|
|
1179
|
-
}
|
|
1180
|
-
let A = f.pos - y;
|
|
1181
|
-
if (y < 0 || A < g || f.start < a)
|
|
1182
|
-
break;
|
|
1183
|
-
let W = f.id >= s ? 4 : 0, J = f.start;
|
|
1184
|
-
for (f.next(); f.pos > A; ) {
|
|
1185
|
-
if (f.size < 0)
|
|
1186
|
-
if (f.size == -3 || f.size == -4)
|
|
1187
|
-
W += 4;
|
|
1188
|
-
else
|
|
1189
|
-
break e;
|
|
1190
|
-
else f.id >= s && (W += 4);
|
|
1191
|
-
f.next();
|
|
1192
|
-
}
|
|
1193
|
-
d = J, m += y, w += W;
|
|
1194
|
-
}
|
|
1195
|
-
return (b < 0 || m == c) && (o.size = m, o.start = d, o.skip = w), o.size > 4 ? o : void 0;
|
|
1196
|
-
}
|
|
1197
|
-
function G(c, b, f) {
|
|
1198
|
-
let { id: m, start: d, end: w, size: a } = h;
|
|
1199
|
-
if (h.next(), a >= 0 && m < s) {
|
|
1200
|
-
let o = f;
|
|
1201
|
-
if (a > 4) {
|
|
1202
|
-
let g = h.pos - (a - 4);
|
|
1203
|
-
for (; h.pos > g; )
|
|
1204
|
-
f = G(c, b, f);
|
|
1205
|
-
}
|
|
1206
|
-
b[--f] = o, b[--f] = w - c, b[--f] = d - c, b[--f] = m;
|
|
1207
|
-
} else a == -3 ? C = m : a == -4 && (v = m);
|
|
1208
|
-
return f;
|
|
1209
|
-
}
|
|
1210
|
-
let T = [], B = [];
|
|
1211
|
-
for (; h.pos > 0; )
|
|
1212
|
-
p(l.start || 0, l.bufferStart || 0, T, B, -1, 0);
|
|
1213
|
-
let U = (e = l.length) !== null && e !== void 0 ? e : T.length ? B[0] + T[0].length : 0;
|
|
1214
|
-
return new P(u[l.topID], T.reverse(), B.reverse(), U);
|
|
1215
|
-
}
|
|
1216
|
-
const oe = /* @__PURE__ */ new WeakMap();
|
|
1217
|
-
function X(l, e) {
|
|
1218
|
-
if (!l.isAnonymous || e instanceof M || e.type != l)
|
|
1219
|
-
return 1;
|
|
1220
|
-
let t = oe.get(e);
|
|
1221
|
-
if (t == null) {
|
|
1222
|
-
t = 1;
|
|
1223
|
-
for (let r of e.children) {
|
|
1224
|
-
if (r.type != l || !(r instanceof P)) {
|
|
1225
|
-
t = 1;
|
|
1226
|
-
break;
|
|
1227
|
-
}
|
|
1228
|
-
t += X(l, r);
|
|
1229
|
-
}
|
|
1230
|
-
oe.set(e, t);
|
|
1231
|
-
}
|
|
1232
|
-
return t;
|
|
1233
|
-
}
|
|
1234
|
-
function se(l, e, t, r, i, n, s, h, u) {
|
|
1235
|
-
let C = 0;
|
|
1236
|
-
for (let S = r; S < i; S++)
|
|
1237
|
-
C += X(l, e[S]);
|
|
1238
|
-
let v = Math.ceil(
|
|
1239
|
-
C * 1.5 / 8
|
|
1240
|
-
/* Balance.BranchFactor */
|
|
1241
|
-
), p = [], x = [];
|
|
1242
|
-
function N(S, L, Y, G, T) {
|
|
1243
|
-
for (let B = Y; B < G; ) {
|
|
1244
|
-
let U = B, c = L[B], b = X(l, S[B]);
|
|
1245
|
-
for (B++; B < G; B++) {
|
|
1246
|
-
let f = X(l, S[B]);
|
|
1247
|
-
if (b + f >= v)
|
|
1248
|
-
break;
|
|
1249
|
-
b += f;
|
|
1250
|
-
}
|
|
1251
|
-
if (B == U + 1) {
|
|
1252
|
-
if (b > v) {
|
|
1253
|
-
let f = S[U];
|
|
1254
|
-
N(f.children, f.positions, 0, f.children.length, L[U] + T);
|
|
1255
|
-
continue;
|
|
1256
|
-
}
|
|
1257
|
-
p.push(S[U]);
|
|
1258
|
-
} else {
|
|
1259
|
-
let f = L[B - 1] + S[B - 1].length - c;
|
|
1260
|
-
p.push(se(l, S, L, U, B, c, f, null, u));
|
|
1261
|
-
}
|
|
1262
|
-
x.push(c + T - n);
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
return N(e, t, r, i, 0), (h || u)(p, x, s);
|
|
1266
|
-
}
|
|
1267
|
-
class Se {
|
|
1268
|
-
constructor() {
|
|
1269
|
-
this.map = /* @__PURE__ */ new WeakMap();
|
|
1270
|
-
}
|
|
1271
|
-
setBuffer(e, t, r) {
|
|
1272
|
-
let i = this.map.get(e);
|
|
1273
|
-
i || this.map.set(e, i = /* @__PURE__ */ new Map()), i.set(t, r);
|
|
1274
|
-
}
|
|
1275
|
-
getBuffer(e, t) {
|
|
1276
|
-
let r = this.map.get(e);
|
|
1277
|
-
return r && r.get(t);
|
|
1278
|
-
}
|
|
1279
|
-
/**
|
|
1280
|
-
Set the value for this syntax node.
|
|
1281
|
-
*/
|
|
1282
|
-
set(e, t) {
|
|
1283
|
-
e instanceof O ? this.setBuffer(e.context.buffer, e.index, t) : e instanceof z && this.map.set(e.tree, t);
|
|
1284
|
-
}
|
|
1285
|
-
/**
|
|
1286
|
-
Retrieve value for this syntax node, if it exists in the map.
|
|
1287
|
-
*/
|
|
1288
|
-
get(e) {
|
|
1289
|
-
return e instanceof O ? this.getBuffer(e.context.buffer, e.index) : e instanceof z ? this.map.get(e.tree) : void 0;
|
|
1290
|
-
}
|
|
1291
|
-
/**
|
|
1292
|
-
Set the value for the node that a cursor currently points to.
|
|
1293
|
-
*/
|
|
1294
|
-
cursorSet(e, t) {
|
|
1295
|
-
e.buffer ? this.setBuffer(e.buffer.buffer, e.index, t) : this.map.set(e.tree, t);
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
Retrieve the value for the node that a cursor currently points
|
|
1299
|
-
to.
|
|
1300
|
-
*/
|
|
1301
|
-
cursorGet(e) {
|
|
1302
|
-
return e.buffer ? this.getBuffer(e.buffer.buffer, e.index) : this.map.get(e.tree);
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
class re {
|
|
1306
|
-
/**
|
|
1307
|
-
Construct a tree fragment. You'll usually want to use
|
|
1308
|
-
[`addTree`](#common.TreeFragment^addTree) and
|
|
1309
|
-
[`applyChanges`](#common.TreeFragment^applyChanges) instead of
|
|
1310
|
-
calling this directly.
|
|
1311
|
-
*/
|
|
1312
|
-
constructor(e, t, r, i, n = !1, s = !1) {
|
|
1313
|
-
this.from = e, this.to = t, this.tree = r, this.offset = i, this.open = (n ? 1 : 0) | (s ? 2 : 0);
|
|
1314
|
-
}
|
|
1315
|
-
/**
|
|
1316
|
-
Whether the start of the fragment represents the start of a
|
|
1317
|
-
parse, or the end of a change. (In the second case, it may not
|
|
1318
|
-
be safe to reuse some nodes at the start, depending on the
|
|
1319
|
-
parsing algorithm.)
|
|
1320
|
-
*/
|
|
1321
|
-
get openStart() {
|
|
1322
|
-
return (this.open & 1) > 0;
|
|
1323
|
-
}
|
|
1324
|
-
/**
|
|
1325
|
-
Whether the end of the fragment represents the end of a
|
|
1326
|
-
full-document parse, or the start of a change.
|
|
1327
|
-
*/
|
|
1328
|
-
get openEnd() {
|
|
1329
|
-
return (this.open & 2) > 0;
|
|
1330
|
-
}
|
|
1331
|
-
/**
|
|
1332
|
-
Create a set of fragments from a freshly parsed tree, or update
|
|
1333
|
-
an existing set of fragments by replacing the ones that overlap
|
|
1334
|
-
with a tree with content from the new tree. When `partial` is
|
|
1335
|
-
true, the parse is treated as incomplete, and the resulting
|
|
1336
|
-
fragment has [`openEnd`](#common.TreeFragment.openEnd) set to
|
|
1337
|
-
true.
|
|
1338
|
-
*/
|
|
1339
|
-
static addTree(e, t = [], r = !1) {
|
|
1340
|
-
let i = [new re(0, e.length, e, 0, !1, r)];
|
|
1341
|
-
for (let n of t)
|
|
1342
|
-
n.to > e.length && i.push(n);
|
|
1343
|
-
return i;
|
|
1344
|
-
}
|
|
1345
|
-
/**
|
|
1346
|
-
Apply a set of edits to an array of fragments, removing or
|
|
1347
|
-
splitting fragments as necessary to remove edited ranges, and
|
|
1348
|
-
adjusting offsets for fragments that moved.
|
|
1349
|
-
*/
|
|
1350
|
-
static applyChanges(e, t, r = 128) {
|
|
1351
|
-
if (!t.length)
|
|
1352
|
-
return e;
|
|
1353
|
-
let i = [], n = 1, s = e.length ? e[0] : null;
|
|
1354
|
-
for (let h = 0, u = 0, C = 0; ; h++) {
|
|
1355
|
-
let v = h < t.length ? t[h] : null, p = v ? v.fromA : 1e9;
|
|
1356
|
-
if (p - u >= r)
|
|
1357
|
-
for (; s && s.from < p; ) {
|
|
1358
|
-
let x = s;
|
|
1359
|
-
if (u >= x.from || p <= x.to || C) {
|
|
1360
|
-
let N = Math.max(x.from, u) - C, S = Math.min(x.to, p) - C;
|
|
1361
|
-
x = N >= S ? null : new re(N, S, x.tree, x.offset + C, h > 0, !!v);
|
|
1362
|
-
}
|
|
1363
|
-
if (x && i.push(x), s.to > p)
|
|
1364
|
-
break;
|
|
1365
|
-
s = n < e.length ? e[n++] : null;
|
|
1366
|
-
}
|
|
1367
|
-
if (!v)
|
|
1368
|
-
break;
|
|
1369
|
-
u = v.toA, C = v.toA - v.toB;
|
|
1370
|
-
}
|
|
1371
|
-
return i;
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
class _e {
|
|
1375
|
-
/**
|
|
1376
|
-
Start a parse, returning a [partial parse](#common.PartialParse)
|
|
1377
|
-
object. [`fragments`](#common.TreeFragment) can be passed in to
|
|
1378
|
-
make the parse incremental.
|
|
1379
|
-
|
|
1380
|
-
By default, the entire input is parsed. You can pass `ranges`,
|
|
1381
|
-
which should be a sorted array of non-empty, non-overlapping
|
|
1382
|
-
ranges, to parse only those ranges. The tree returned in that
|
|
1383
|
-
case will start at `ranges[0].from`.
|
|
1384
|
-
*/
|
|
1385
|
-
startParse(e, t, r) {
|
|
1386
|
-
return typeof e == "string" && (e = new ke(e)), r = r ? r.length ? r.map((i) => new Z(i.from, i.to)) : [new Z(0, 0)] : [new Z(0, e.length)], this.createParse(e, t || [], r);
|
|
1387
|
-
}
|
|
1388
|
-
/**
|
|
1389
|
-
Run a full parse, returning the resulting tree.
|
|
1390
|
-
*/
|
|
1391
|
-
parse(e, t, r) {
|
|
1392
|
-
let i = this.startParse(e, t, r);
|
|
1393
|
-
for (; ; ) {
|
|
1394
|
-
let n = i.advance();
|
|
1395
|
-
if (n)
|
|
1396
|
-
return n;
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
class ke {
|
|
1401
|
-
constructor(e) {
|
|
1402
|
-
this.string = e;
|
|
1403
|
-
}
|
|
1404
|
-
get length() {
|
|
1405
|
-
return this.string.length;
|
|
1406
|
-
}
|
|
1407
|
-
chunk(e) {
|
|
1408
|
-
return this.string.slice(e);
|
|
1409
|
-
}
|
|
1410
|
-
get lineChunks() {
|
|
1411
|
-
return !1;
|
|
1412
|
-
}
|
|
1413
|
-
read(e, t) {
|
|
1414
|
-
return this.string.slice(e, t);
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
new k({ perNode: !0 });
|
|
1418
|
-
export {
|
|
1419
|
-
Ce as DefaultBufferLength,
|
|
1420
|
-
_ as IterMode,
|
|
1421
|
-
V as MountedTree,
|
|
1422
|
-
k as NodeProp,
|
|
1423
|
-
ae as NodeSet,
|
|
1424
|
-
j as NodeType,
|
|
1425
|
-
Se as NodeWeakMap,
|
|
1426
|
-
_e as Parser,
|
|
1427
|
-
P as Tree,
|
|
1428
|
-
M as TreeBuffer,
|
|
1429
|
-
te as TreeCursor,
|
|
1430
|
-
re as TreeFragment
|
|
1431
|
-
};
|
|
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.0.4
|
|
11
|
+
Build Time: 2026/2/11 18:34:19
|
|
12
|
+
Build Commit: 9b4b89872743098216d14081433fa57d7fa73fd3
|
|
13
|
+
*/
|
|
14
|
+
const e=1024;let t=0;class r{constructor(e,t){this.from=e,this.to=t}}class n{constructor(e={}){this.id=t++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=h.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}n.closedBy=new n({deserialize:e=>e.split(" ")}),n.openedBy=new n({deserialize:e=>e.split(" ")}),n.group=new n({deserialize:e=>e.split(" ")}),n.isolate=new n({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),n.contextHash=new n({perNode:!0}),n.lookAhead=new n({perNode:!0}),n.mounted=new n({perNode:!0});class i{constructor(e,t,r,n=!1){this.tree=e,this.overlay=t,this.parser=r,this.bracketed=n}static get(e){return e&&e.props&&e.props[n.mounted.id]}}const s=/* @__PURE__ */Object.create(null);class h{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?/* @__PURE__ */Object.create(null):s,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new h(e.name||"",t,e.id,r);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(n.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=/* @__PURE__ */Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(n.group),i=-1;i<(r?r.length:0);i++){let n=t[i<0?e.name:r[i]];if(n)return n}}}}h.none=new h("",
|
|
15
|
+
/* @__PURE__ */Object.create(null),0,8);class o{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);if(e){n||(n=Object.assign({},r.props));let t=e[1],i=e[0];i.combine&&i.id in n&&(t=i.combine(n[i.id],t)),n[i.id]=t}}t.push(n?new h(r.name,n,r.id,r.flags):r)}return new o(t)}}const l=/* @__PURE__ */new WeakMap,f=/* @__PURE__ */new WeakMap;var u,a;(a=u||(u={}))[a.ExcludeBuffers=1]="ExcludeBuffers",a[a.IncludeAnonymous=2]="IncludeAnonymous",a[a.IgnoreMounts=4]="IgnoreMounts",a[a.IgnoreOverlays=8]="IgnoreOverlays",a[a.EnterBracketed=16]="EnterBracketed";class d{constructor(e,t,r,n,i){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,i&&i.length){this.props=/* @__PURE__ */Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=i.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let r of this.children){let e=r.toString();e&&(t&&(t+=","),t+=e)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new A(this.topNode,e)}cursorAt(e,t=0,r=0){let n=l.get(this)||this.topNode,i=new A(n);return i.moveTo(e,t),l.set(this,i._tree),i}get topNode(){return new y(this,0,0,null)}resolve(e,t=0){let r=x(l.get(this)||this.topNode,e,t,!1);return l.set(this,r),r}resolveInner(e,t=0){let r=x(f.get(this)||this.topNode,e,t,!0);return f.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),s=null;for(let h=n instanceof y?n:n.context.parent;h;h=h.parent)if(h.index<0){let e=h.parent;(s||(s=[n])).push(e.resolve(t,r)),h=e}else{let e=i.get(h.tree);if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){let i=new y(e.tree,e.overlay[0].from+h.from,-1,h);(s||(s=[n])).push(x(i,t,r,!1))}}return s?k(s):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:i=this.length}=e,s=e.mode||0,h=(s&u.IncludeAnonymous)>0;for(let o=this.cursor(s|u.IncludeAnonymous);;){let e=!1;if(o.from<=i&&o.to>=n&&(!h&&o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&r&&(h||!o.type.isAnonymous)&&r(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:z(h.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,r)=>new d(this.type,e,t,r,this.propValues),e.makeTree||((e,t,r)=>new d(h.none,e,t,r)))}static build(t){return function(t){var r;let{buffer:i,nodeSet:s,maxBufferLength:h=e,reused:o=[],minRepeatType:l=s.types.length}=t,f=Array.isArray(i)?new p(i,i.length):i,u=s.types,a=0,g=0;function x(e,t,r,n,i,d){let{id:p,start:k,end:C,size:A}=f,S=g,B=a;if(A<0){if(f.next(),-1==A){let t=o[p];return r.push(t),void n.push(k-e)}if(-3==A)return void(a=p);if(-4==A)return void(g=p);throw new RangeError(`Unrecognized record size: ${A}`)}let N,I,E=u[p],O=k-e;if(C-k<=h&&(I=_(f.pos-t,i))){let t=new Uint16Array(I.size-I.skip),r=f.pos-I.size,n=t.length;for(;f.pos>r;)n=v(I.start,t,n);N=new c(t,C-I.start,s),O=I.start-e}else{let e=f.pos-A;f.next();let t=[],r=[],n=p>=l?p:-1,i=0,s=C;for(;f.pos>e;)n>=0&&f.id==n&&f.size>=0?(f.end<=s-h&&(m(t,r,k,i,f.end,s,n,S,B),i=t.length,s=f.end),f.next()):d>2500?b(k,e,t,r):x(k,e,t,r,n,d+1);if(n>=0&&i>0&&i<t.length&&m(t,r,k,i,k,s,n,S,B),t.reverse(),r.reverse(),n>-1&&i>0){let e=y(E,B);N=z(E,t,r,0,t.length,0,C-k,e,e)}else N=w(E,t,r,C-k,S-C,B)}r.push(N),n.push(O)}function b(e,t,r,n){let i=[],o=0,l=-1;for(;f.pos>t;){let{id:e,start:t,end:r,size:n}=f;if(n>4)f.next();else{if(l>-1&&t<l)break;l<0&&(l=r-h),i.push(e,t,r),o++,f.next()}}if(o){let t=new Uint16Array(4*o),h=i[i.length-2];for(let e=i.length-3,r=0;e>=0;e-=3)t[r++]=i[e],t[r++]=i[e+1]-h,t[r++]=i[e+2]-h,t[r++]=r;r.push(new c(t,i[2]-h,s)),n.push(h-e)}}function y(e,t){return(r,i,s)=>{let h,o,l=0,f=r.length-1;if(f>=0&&(h=r[f])instanceof d){if(!f&&h.type==e&&h.length==s)return h;(o=h.prop(n.lookAhead))&&(l=i[f]+h.length+o)}return w(e,r,i,s,l,t)}}function m(e,t,r,n,i,h,o,l,f){let u=[],a=[];for(;e.length>n;)u.push(e.pop()),a.push(t.pop()+r-i);e.push(w(s.types[o],u,a,h-i,l-h,f)),t.push(i-r)}function w(e,t,r,i,s,h,o){if(h){let e=[n.contextHash,h];o=o?[e].concat(o):[e]}if(s>25){let e=[n.lookAhead,s];o=o?[e].concat(o):[e]}return new d(e,t,r,i,o)}function _(e,t){let r=f.fork(),n=0,i=0,s=0,o=r.end-h,u={size:0,start:0,skip:0};e:for(let h=r.pos-e;r.pos>h;){let e=r.size;if(r.id==t&&e>=0){u.size=n,u.start=i,u.skip=s,s+=4,n+=4,r.next();continue}let f=r.pos-e;if(e<0||f<h||r.start<o)break;let a=r.id>=l?4:0,d=r.start;for(r.next();r.pos>f;){if(r.size<0){if(-3!=r.size&&-4!=r.size)break e;a+=4}else r.id>=l&&(a+=4);r.next()}i=d,n+=e,s+=a}return(t<0||n==e)&&(u.size=n,u.start=i,u.skip=s),u.size>4?u:void 0}function v(e,t,r){let{id:n,start:i,end:s,size:h}=f;if(f.next(),h>=0&&n<l){let o=r;if(h>4){let n=f.pos-(h-4);for(;f.pos>n;)r=v(e,t,r)}t[--r]=o,t[--r]=s-e,t[--r]=i-e,t[--r]=n}else-3==h?a=n:-4==h&&(g=n);return r}let k=[],C=[];for(;f.pos>0;)x(t.start||0,t.bufferStart||0,k,C,-1,0);let A=null!==(r=t.length)&&void 0!==r?r:k.length?C[0]+k[0].length:0;return new d(u[t.topID],k.reverse(),C.reverse(),A)}(t)}}d.empty=new d(h.none,[],[],0);class p{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new p(this.buffer,this.index)}}class c{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return h.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],i=n.name;if(/\W/.test(i)&&!n.isError&&(i=JSON.stringify(i)),r==(e+=4))return i;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,r,n,i){let{buffer:s}=this,h=-1;for(let o=e;o!=t&&!(g(i,n,s[o+1],s[o+2])&&(h=o,r>0));o=s[o+3]);return h}slice(e,t,r){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let h=e,o=0;h<t;){i[o++]=n[h++],i[o++]=n[h++]-r;let t=i[o++]=n[h++]-r;i[o++]=n[h++]-e,s=Math.max(s,t)}return new c(i,s,this.set)}}function g(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function x(e,t,r,n){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof y&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:u.IgnoreOverlays;if(n)for(let h=e,o=h.parent;o;h=o,o=h.parent)h instanceof y&&h.index<0&&(null===(i=o.enter(t,r,s))||void 0===i?void 0:i.from)!=h.from&&(e=o);for(;;){let n=e.enter(t,r,s);if(!n)return e;e=n}}class b{cursor(e=0){return new A(this,e)}getChild(e,t=null,r=null){let n=m(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return m(this,e,t,r)}resolve(e,t=0){return x(this,e,t,!1)}resolveInner(e,t=0){return x(this,e,t,!0)}matchContext(e){return w(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class y extends b{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,n,s=0){for(let h=this;;){for(let{children:o,positions:l}=h._tree,f=t>0?o.length:-1;e!=f;e+=t){let f,a=o[e],p=l[e]+h.from;if(s&u.EnterBracketed&&a instanceof d&&(f=i.get(a))&&!f.overlay&&f.bracketed&&r>=p&&r<=p+a.length||g(n,r,p,p+a.length))if(a instanceof c){if(s&u.ExcludeBuffers)continue;let i=a.findChild(0,a.buffer.length,t,r-p,n);if(i>-1)return new v(new _(h,a,e,p),null,i)}else if(s&u.IncludeAnonymous||!a.type.isAnonymous||S(a)){let o;if(!(s&u.IgnoreMounts)&&(o=i.get(a))&&!o.overlay)return new y(o.tree,p,e,h);let l=new y(a,p,e,h);return s&u.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?a.children.length-1:0,t,r,n,s)}}if(s&u.IncludeAnonymous||!h.type.isAnonymous)return null;if(e=h.index>=0?h.index+t:t<0?-1:h._parent._tree.children.length,h=h._parent,!h)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,r=0){let n;if(!(r&u.IgnoreOverlays)&&(n=i.get(this._tree))&&n.overlay){let i=e-this.from,s=r&u.EnterBracketed&&n.bracketed;for(let{from:e,to:r}of n.overlay)if((t>0||s?e<=i:e<i)&&(t<0||s?r>=i:r>i))return new y(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function m(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=r)for(let h=!1;!h;)if(h=i.type.is(r),!i.nextSibling())return s;for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function w(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class _{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class v extends b{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new v(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,r=0){if(r&u.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new v(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new v(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new v(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s)),t.push(0)}return new d(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function k(e){if(!e.length)return null;let t=0,r=e[0];for(let s=1;s<e.length;s++){let n=e[s];(n.from>r.from||n.to<r.to)&&(r=n,t=s)}let n=r instanceof y&&r.index<0?null:r.parent,i=e.slice();return n?i[t]=n:i.splice(t,1),new C(i,r)}class C{constructor(e,t){this.heads=e,this.node=t}get next(){return k(this.heads)}}class A{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~u.EnterBracketed,e instanceof y)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof y?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){return this.buffer?!(r&u.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&u.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&u.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:r}=n)}else({index:t,_parent:r}=this._tree);for(;r;({index:t,_parent:r}=r))if(t>-1)for(let n=t+e,i=e<0?-1:r._tree.children.length;n!=i;n+=e){let e=r._tree.children[n];if(this.mode&u.IncludeAnonymous||e instanceof c||!e.type.isAnonymous||S(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)e:for(let n=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,r=i+1;break e}n=this.stack[--i]}for(let n=r;n<this.stack.length;n++)t=new v(this.buffer,t,this.stack[n]);return this.bufferNode=new v(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return w(this.node.parent,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return w(this._tree,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function S(e){return e.children.some(e=>e instanceof c||!e.type.isAnonymous||S(e))}const B=/* @__PURE__ */new WeakMap;function N(e,t){if(!e.isAnonymous||t instanceof c||t.type!=e)return 1;let r=B.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof d)){r=1;break}r+=N(e,n)}B.set(t,r)}return r}function z(e,t,r,n,i,s,h,o,l){let f=0;for(let p=n;p<i;p++)f+=N(e,t[p]);let u=Math.ceil(1.5*f/8),a=[],d=[];return function t(r,n,i,h,o){for(let f=i;f<h;){let i=f,p=n[f],c=N(e,r[f]);for(f++;f<h;f++){let t=N(e,r[f]);if(c+t>=u)break;c+=t}if(f==i+1){if(c>u){let e=r[i];t(e.children,e.positions,0,e.children.length,n[i]+o);continue}a.push(r[i])}else{let t=n[f-1]+r[f-1].length-p;a.push(z(e,r,n,i,f,p,t,null,l))}d.push(p+o-s)}}(t,r,n,i,0),(o||l)(a,d,h)}class I{constructor(){this.map=/* @__PURE__ */new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=/* @__PURE__ */new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof v?this.setBuffer(e.context.buffer,e.index,t):e instanceof y&&this.map.set(e.tree,t)}get(e){return e instanceof v?this.getBuffer(e.context.buffer,e.index):e instanceof y?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class E{constructor(e,t,r,n,i=!1,s=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new E(0,e.length,e,0,!1,r)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],i=1,s=e.length?e[0]:null;for(let h=0,o=0,l=0;;h++){let f=h<t.length?t[h]:null,u=f?f.fromA:1e9;if(u-o>=r)for(;s&&s.from<u;){let t=s;if(o>=t.from||u<=t.to||l){let e=Math.max(t.from,o)-l,r=Math.min(t.to,u)-l;t=e>=r?null:new E(e,r,t.tree,t.offset+l,h>0,!!f)}if(t&&n.push(t),s.to>u)break;s=i<e.length?e[i++]:null}if(!f)break;o=f.toA,l=f.toA-f.toB}return n}}class O{startParse(e,t,n){return"string"==typeof e&&(e=new M(e)),n=n?n.length?n.map(e=>new r(e.from,e.to)):[new r(0,0)]:[new r(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class M{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new n({perNode:!0});export{e as DefaultBufferLength,u as IterMode,i as MountedTree,n as NodeProp,o as NodeSet,h as NodeType,I as NodeWeakMap,O as Parser,d as Tree,c as TreeBuffer,A as TreeCursor,E as TreeFragment};
|