@gsc-basic/components 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/Button/index.js +9 -4
- package/dist/es/Button/src/Button.css +3 -3
- package/dist/es/Button/src/Button.vue.js +44 -4
- package/dist/es/Button/src/Button2.css +3 -3
- package/dist/es/CodeEditor/index.js +9 -4
- package/dist/es/CodeEditor/src/index.css +3 -3
- package/dist/es/CodeEditor/src/index.vue.js +148 -4
- package/dist/es/CodeEditor/src/index2.css +3 -3
- package/dist/es/CodeEditor/src/index3.css +3 -3
- package/dist/es/ConfigProvider/index.js +9 -4
- package/dist/es/ConfigProvider/src/configProvider.js +17 -4
- package/dist/es/ConfigProvider/src/configProviderProps.js +25 -4
- package/dist/es/ConfigProvider/src/constants.js +12 -4
- package/dist/es/ConfigProvider/src/useGlobalConfig.js +48 -4
- package/dist/es/CountTo/index.js +9 -4
- package/dist/es/CountTo/src/index.css +3 -3
- package/dist/es/CountTo/src/index.vue.js +126 -4
- package/dist/es/Ellipsis/index.js +9 -4
- package/dist/es/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/JsEllipsis.vue.js +181 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/NativeEllipsis.vue.js +44 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/es/Ellipsis/src/index.css +3 -3
- package/dist/es/Ellipsis/src/index.vue.js +96 -4
- package/dist/es/Ellipsis/src/utils/utils.js +59 -4
- package/dist/es/Form/index.js +9 -4
- package/dist/es/Form/src/Form.css +3 -3
- package/dist/es/Form/src/Form.vue.js +377 -4
- package/dist/es/Form/src/Form2.css +3 -3
- package/dist/es/Form/src/styles/form.css +3 -3
- package/dist/es/Marquee/index.js +9 -4
- package/dist/es/Marquee/src/index.css +3 -3
- package/dist/es/Marquee/src/index.vue.js +191 -4
- package/dist/es/Marquee/src/index2.css +3 -3
- package/dist/es/Overlay/index.js +64 -4
- package/dist/es/Overlay/src/Message.css +3 -3
- package/dist/es/Overlay/src/Message.vue.js +39 -4
- package/dist/es/Overlay/src/Message2.css +3 -3
- package/dist/es/Overlay/src/Modal.css +3 -3
- package/dist/es/Overlay/src/Modal.vue.js +70 -4
- package/dist/es/Overlay/src/Modal2.css +3 -3
- package/dist/es/Overlay/src/Notice.css +3 -3
- package/dist/es/Overlay/src/Notice.vue.js +40 -4
- package/dist/es/Overlay/src/Notice2.css +3 -3
- package/dist/es/Overlay/src/Tooltip.css +3 -3
- package/dist/es/Overlay/src/Tooltip.vue.js +87 -4
- package/dist/es/Overlay/src/Tooltip2.css +3 -3
- package/dist/es/RichTextEditor/index.js +9 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +162 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +58 -4
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +69 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +92 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +76 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.vue.js +89 -4
- package/dist/es/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/es/RichTextEditor/src/components/TableButton.vue.js +165 -4
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +85 -4
- package/dist/es/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +19 -4
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +17 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +54 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +101 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +364 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +137 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/es/RichTextEditor/src/constant/index.js +53 -4
- package/dist/es/RichTextEditor/src/extensions/video.js +68 -4
- package/dist/es/RichTextEditor/src/index.css +4 -4
- package/dist/es/RichTextEditor/src/index.vue.js +158 -4
- package/dist/es/RichTextEditor/src/index2.css +4 -4
- package/dist/es/RichTextEditor/src/props.js +24 -4
- package/dist/es/ScaleScreen/index.js +9 -4
- package/dist/es/ScaleScreen/src/index.css +3 -3
- package/dist/es/ScaleScreen/src/index.vue.js +118 -4
- package/dist/es/ScaleScreen/src/index2.css +3 -3
- package/dist/es/Transition/index.js +30 -4
- package/dist/es/Transition/src/CollapseTransition.css +3 -3
- package/dist/es/Transition/src/CollapseTransition.vue.js +44 -4
- package/dist/es/Transition/src/CollapseTransition2.css +3 -3
- package/dist/es/Transition/src/CreateTransition.js +75 -6
- package/dist/es/Transition/src/ExpandTransition.js +42 -4
- package/dist/es/Transition/src/style/index.css +3 -3
- package/dist/es/Transition/style.js +4 -4
- package/dist/es/VideoBackground/index.js +9 -4
- package/dist/es/VideoBackground/src/helper.js +32 -4
- package/dist/es/VideoBackground/src/index.css +3 -3
- package/dist/es/VideoBackground/src/index.vue.js +111 -4
- package/dist/es/VideoBackground/src/index2.css +3 -3
- package/dist/es/VideoBackground/src/index3.css +3 -3
- package/dist/es/VideoBackground/src/videoBackground.js +34 -4
- package/dist/es/VideoPlayer/index.js +9 -4
- package/dist/es/VideoPlayer/src/index.css +3 -3
- package/dist/es/VideoPlayer/src/index.vue.js +63 -4
- package/dist/es/VirtualScroll/index.js +9 -4
- package/dist/es/VirtualScroll/src/index.css +3 -3
- package/dist/es/VirtualScroll/src/index.vue.js +11 -4
- package/dist/es/VirtualScroll/src/index.vue2.js +107 -4
- package/dist/es/VirtualScroll/src/index2.css +3 -3
- package/dist/es/_virtual/_commonjsHelpers.js +9 -4
- package/dist/es/_virtual/_plugin-vue_export-helper.js +12 -4
- package/dist/es/_virtual/delegate.js +10 -4
- package/dist/es/_virtual/download.js +10 -4
- package/dist/es/_virtual/download2.js +7 -4
- package/dist/es/_virtual/index.js +5 -4
- package/dist/es/_virtual/index2.js +7 -4
- package/dist/es/_virtual/index3.js +21 -0
- package/dist/es/{node_modules/@tanstack/store/dist/esm/types.js → _virtual/index4.js} +7 -4
- package/dist/es/hooks/useLocale.js +28 -4
- package/dist/es/hooks/useNamespace.js +11 -4
- package/dist/es/index.js +79 -4
- package/dist/es/locale/lang/en-US.js +167 -4
- package/dist/es/locale/lang/ja-JP.js +167 -4
- package/dist/es/locale/lang/zh-CN.js +167 -4
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1379 -4
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +847 -4
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +41 -6
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +315 -20
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +51 -6
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +402 -15
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +500 -7
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +219 -7
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +54 -6
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1304 -4
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +660 -6
- package/dist/es/node_modules/@codemirror/search/dist/index.js +842 -5
- package/dist/es/node_modules/@codemirror/state/dist/index.js +2646 -4
- package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +135 -4
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7492 -4
- package/dist/es/node_modules/@lezer/common/dist/index.js +1433 -5
- package/dist/es/node_modules/@lezer/highlight/dist/index.js +640 -4
- package/dist/es/node_modules/@lezer/java/dist/index.js +65 -4
- package/dist/es/node_modules/@lezer/javascript/dist/index.js +164 -4
- package/dist/es/node_modules/@lezer/json/dist/index.js +37 -4
- package/dist/es/node_modules/@lezer/lr/dist/index.js +1312 -4
- package/dist/es/node_modules/@lezer/python/dist/index.js +224 -4
- package/dist/es/node_modules/@lezer/xml/dist/index.js +103 -4
- package/dist/es/node_modules/@lezer/yaml/dist/index.js +277 -4
- package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +72 -4
- package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +181 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +16 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +409 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +792 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +58 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +112 -5
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +48 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +216 -4
- package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +32 -4
- package/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +221 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +136 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +25 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +47 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +41 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +36 -4
- package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +51 -4
- package/dist/es/node_modules/@tiptap/core/dist/index.js +3984 -4
- package/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +20 -4
- package/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +60 -5
- package/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +82 -5
- package/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-code/dist/index.js +57 -4
- package/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +220 -4
- package/dist/es/node_modules/@tiptap/extension-document/dist/index.js +15 -4
- package/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +62 -4
- package/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +66 -4
- package/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +88 -4
- package/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -4
- package/dist/es/node_modules/@tiptap/extension-image/dist/index.js +133 -4
- package/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +80 -4
- package/dist/es/node_modules/@tiptap/extension-link/dist/index.js +316 -4
- package/dist/es/node_modules/@tiptap/extension-list/dist/index.js +731 -4
- package/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +47 -4
- package/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +69 -4
- package/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-table/dist/index.js +383 -4
- package/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-text/dist/index.js +16 -4
- package/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +50 -4
- package/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +243 -4
- package/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +68 -4
- package/dist/es/node_modules/@tiptap/extensions/dist/index.js +299 -4
- package/dist/es/node_modules/@tiptap/html/dist/index.js +28 -0
- package/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +32 -4
- package/dist/es/node_modules/@tiptap/vue-3/dist/index.js +260 -4
- package/dist/es/node_modules/@vueuse/core/dist/index.js +354 -4
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +139 -4
- package/dist/es/node_modules/codemirror/dist/index.js +43 -4
- package/dist/es/node_modules/crelt/index.js +30 -4
- package/dist/es/node_modules/delegate/src/closest.js +24 -4
- package/dist/es/node_modules/delegate/src/delegate.js +32 -4
- package/dist/es/node_modules/downloadjs/download.js +80 -4
- package/dist/es/node_modules/eventemitter3/index.js +114 -4
- package/dist/es/node_modules/linkifyjs/dist/linkify.js +710 -4
- package/dist/es/node_modules/lodash-es/_DataView.js +9 -4
- package/dist/es/node_modules/lodash-es/_Hash.js +23 -4
- package/dist/es/node_modules/lodash-es/_ListCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Map.js +9 -4
- package/dist/es/node_modules/lodash-es/_MapCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Promise.js +9 -4
- package/dist/es/node_modules/lodash-es/_Set.js +9 -4
- package/dist/es/node_modules/lodash-es/_SetCache.js +26 -0
- package/dist/es/node_modules/lodash-es/_Stack.js +21 -4
- package/dist/es/node_modules/lodash-es/_Symbol.js +8 -4
- package/dist/es/node_modules/lodash-es/_Uint8Array.js +8 -4
- package/dist/es/node_modules/lodash-es/_WeakMap.js +9 -4
- package/dist/es/node_modules/lodash-es/_apply.js +19 -4
- package/dist/es/node_modules/lodash-es/_arrayEach.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayFilter.js +13 -4
- package/dist/es/node_modules/lodash-es/_arrayIncludes.js +21 -0
- package/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +23 -4
- package/dist/es/node_modules/lodash-es/_arrayMap.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayPush.js +11 -4
- package/dist/es/node_modules/lodash-es/_arraySome.js +22 -0
- package/dist/es/node_modules/lodash-es/_asciiToArray.js +9 -4
- package/dist/es/node_modules/lodash-es/_assignMergeValue.js +21 -0
- package/dist/es/node_modules/lodash-es/_assignValue.js +13 -4
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseAssignValue.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseClone.js +57 -4
- package/dist/es/node_modules/lodash-es/_baseCreate.js +30 -0
- package/dist/es/node_modules/lodash-es/_baseFindIndex.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseFlatten.js +16 -4
- package/dist/es/node_modules/lodash-es/_baseFor.js +18 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +14 -4
- package/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseIntersection.js +42 -0
- package/dist/es/node_modules/lodash-es/_baseIsArguments.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsEqual.js +21 -0
- package/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +45 -0
- package/dist/es/node_modules/lodash-es/_baseIsMap.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsNaN.js +19 -0
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +19 -4
- package/dist/es/node_modules/lodash-es/_baseIsRegExp.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseKeys.js +27 -0
- package/dist/es/node_modules/lodash-es/_baseKeysIn.js +18 -4
- package/dist/es/node_modules/lodash-es/_baseMerge.js +33 -0
- package/dist/es/node_modules/lodash-es/_baseMergeDeep.js +44 -0
- package/dist/es/node_modules/lodash-es/_baseRest.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseSetToString.js +17 -4
- package/dist/es/node_modules/lodash-es/_baseSlice.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseTimes.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseToString.js +21 -4
- package/dist/es/node_modules/lodash-es/_baseUnary.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseUniq.js +46 -0
- package/dist/es/node_modules/lodash-es/_baseUnset.js +31 -4
- package/dist/es/node_modules/lodash-es/_cacheHas.js +19 -0
- package/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +20 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_castSlice.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneBuffer.js +14 -4
- package/dist/es/node_modules/lodash-es/_cloneDataView.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneRegExp.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneSymbol.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneTypedArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_copyArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_copyObject.js +17 -4
- package/dist/es/node_modules/lodash-es/_coreJsData.js +8 -4
- package/dist/es/node_modules/lodash-es/_createAssigner.js +28 -0
- package/dist/es/node_modules/lodash-es/_createBaseFor.js +26 -0
- package/dist/es/node_modules/lodash-es/_createCaseFirst.js +17 -4
- package/dist/es/node_modules/lodash-es/_createSet.js +22 -0
- package/dist/es/node_modules/lodash-es/_customOmitClone.js +10 -4
- package/dist/es/node_modules/lodash-es/_defineProperty.js +14 -4
- package/dist/es/node_modules/lodash-es/_equalArrays.js +53 -0
- package/dist/es/node_modules/lodash-es/_equalByTag.js +58 -0
- package/dist/es/node_modules/lodash-es/_equalObjects.js +49 -0
- package/dist/es/node_modules/lodash-es/_flatRest.js +12 -4
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +7 -4
- package/dist/es/node_modules/lodash-es/_getAllKeys.js +22 -0
- package/dist/es/node_modules/lodash-es/_getAllKeysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/_getMapData.js +11 -4
- package/dist/es/node_modules/lodash-es/_getNative.js +12 -4
- package/dist/es/node_modules/lodash-es/_getPrototype.js +8 -4
- package/dist/es/node_modules/lodash-es/_getRawTag.js +18 -4
- package/dist/es/node_modules/lodash-es/_getSymbols.js +13 -4
- package/dist/es/node_modules/lodash-es/_getSymbolsIn.js +15 -4
- package/dist/es/node_modules/lodash-es/_getTag.js +31 -4
- package/dist/es/node_modules/lodash-es/_getValue.js +9 -4
- package/dist/es/node_modules/lodash-es/_hasUnicode.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashGet.js +16 -4
- package/dist/es/node_modules/lodash-es/_hashHas.js +12 -4
- package/dist/es/node_modules/lodash-es/_hashSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_initCloneArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_initCloneByTag.js +45 -4
- package/dist/es/node_modules/lodash-es/_initCloneObject.js +22 -0
- package/dist/es/node_modules/lodash-es/_isFlattenable.js +13 -4
- package/dist/es/node_modules/lodash-es/_isIndex.js +11 -4
- package/dist/es/node_modules/lodash-es/_isIterateeCall.js +26 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +15 -4
- package/dist/es/node_modules/lodash-es/_isKeyable.js +10 -4
- package/dist/es/node_modules/lodash-es/_isMasked.js +14 -4
- package/dist/es/node_modules/lodash-es/_isPrototype.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +9 -4
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +15 -4
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +16 -4
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +14 -4
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +8 -4
- package/dist/es/node_modules/lodash-es/_nativeKeys.js +18 -0
- package/dist/es/node_modules/lodash-es/_nativeKeysIn.js +13 -4
- package/dist/es/node_modules/lodash-es/_nodeUtil.js +14 -4
- package/dist/es/node_modules/lodash-es/_objectToString.js +10 -4
- package/dist/es/node_modules/lodash-es/_overArg.js +11 -4
- package/dist/es/node_modules/lodash-es/_overRest.js +18 -4
- package/dist/es/node_modules/lodash-es/_parent.js +11 -4
- package/dist/es/node_modules/lodash-es/_root.js +8 -4
- package/dist/es/node_modules/lodash-es/_safeGet.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheAdd.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheHas.js +19 -0
- package/dist/es/node_modules/lodash-es/_setToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_setToString.js +9 -4
- package/dist/es/node_modules/lodash-es/_shortOut.js +19 -4
- package/dist/es/node_modules/lodash-es/_stackClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackGet.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackHas.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackSet.js +20 -4
- package/dist/es/node_modules/lodash-es/_strictIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_stringToArray.js +12 -4
- package/dist/es/node_modules/lodash-es/_stringToPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_toKey.js +13 -4
- package/dist/es/node_modules/lodash-es/_toSource.js +20 -4
- package/dist/es/node_modules/lodash-es/_unicodeToArray.js +10 -4
- package/dist/es/node_modules/lodash-es/constant.js +11 -4
- package/dist/es/node_modules/lodash-es/eq.js +9 -4
- package/dist/es/node_modules/lodash-es/flatten.js +11 -4
- package/dist/es/node_modules/lodash-es/get.js +11 -4
- package/dist/es/node_modules/lodash-es/identity.js +9 -4
- package/dist/es/node_modules/lodash-es/intersectionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/isArguments.js +13 -4
- package/dist/es/node_modules/lodash-es/isArray.js +7 -4
- package/dist/es/node_modules/lodash-es/isArrayLike.js +11 -4
- package/dist/es/node_modules/lodash-es/isArrayLikeObject.js +21 -0
- package/dist/es/node_modules/lodash-es/isBuffer.js +9 -4
- package/dist/es/node_modules/lodash-es/isEqual.js +20 -0
- package/dist/es/node_modules/lodash-es/isFinite.js +11 -4
- package/dist/es/node_modules/lodash-es/isFunction.js +15 -4
- package/dist/es/node_modules/lodash-es/isLength.js +10 -4
- package/dist/es/node_modules/lodash-es/isMap.js +10 -4
- package/dist/es/node_modules/lodash-es/isNaN.js +10 -4
- package/dist/es/node_modules/lodash-es/isNil.js +9 -4
- package/dist/es/node_modules/lodash-es/isNumber.js +12 -4
- package/dist/es/node_modules/lodash-es/isObject.js +10 -4
- package/dist/es/node_modules/lodash-es/isObjectLike.js +9 -4
- package/dist/es/node_modules/lodash-es/isPlainObject.js +19 -4
- package/dist/es/node_modules/lodash-es/isRegExp.js +10 -4
- package/dist/es/node_modules/lodash-es/isSet.js +10 -4
- package/dist/es/node_modules/lodash-es/isString.js +13 -4
- package/dist/es/node_modules/lodash-es/isSymbol.js +12 -4
- package/dist/es/node_modules/lodash-es/isTypedArray.js +10 -4
- package/dist/es/node_modules/lodash-es/keys.js +22 -0
- package/dist/es/node_modules/lodash-es/keysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/last.js +10 -4
- package/dist/es/node_modules/lodash-es/memoize.js +21 -4
- package/dist/es/node_modules/lodash-es/mergeWith.js +21 -0
- package/dist/es/node_modules/lodash-es/noop.js +18 -0
- package/dist/es/node_modules/lodash-es/omit.js +26 -4
- package/dist/es/node_modules/lodash-es/stubArray.js +9 -4
- package/dist/es/node_modules/lodash-es/stubFalse.js +9 -4
- package/dist/es/node_modules/lodash-es/toPlainObject.js +21 -0
- package/dist/es/node_modules/lodash-es/toString.js +10 -4
- package/dist/es/node_modules/lodash-es/unionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/upperFirst.js +8 -4
- package/dist/es/node_modules/orderedmap/dist/index.js +106 -4
- package/dist/es/node_modules/path-to-regexp/dist/index.js +275 -0
- package/dist/es/node_modules/prosemirror-commands/dist/index.js +391 -4
- package/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +89 -4
- package/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +207 -4
- package/dist/es/node_modules/prosemirror-history/dist/index.js +251 -4
- package/dist/es/node_modules/prosemirror-keymap/dist/index.js +65 -4
- package/dist/es/node_modules/prosemirror-model/dist/index.js +2736 -4
- package/dist/es/node_modules/prosemirror-schema-list/dist/index.js +91 -4
- package/dist/es/node_modules/prosemirror-state/dist/index.js +825 -4
- package/dist/es/node_modules/prosemirror-tables/dist/index.js +1449 -4
- package/dist/es/node_modules/prosemirror-transform/dist/index.js +1539 -4
- package/dist/es/node_modules/prosemirror-view/dist/index.js +3797 -4
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +300 -0
- package/dist/es/node_modules/rope-sequence/dist/index.js +103 -4
- package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +1283 -0
- package/dist/es/node_modules/style-mod/src/style-mod.js +112 -4
- package/dist/es/node_modules/title-case/dist/index.js +20 -0
- package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +135 -4
- package/dist/es/node_modules/w3c-keyname/index.js +96 -4
- package/dist/es/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/es/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +200 -4
- package/dist/es/node_modules/xgplayer/es/constant.js +10 -4
- package/dist/es/node_modules/xgplayer/es/defaultConfig.js +90 -4
- package/dist/es/node_modules/xgplayer/es/error.js +67 -4
- package/dist/es/node_modules/xgplayer/es/events.js +70 -4
- package/dist/es/node_modules/xgplayer/es/index.umd.js +48 -4
- package/dist/es/node_modules/xgplayer/es/instManager.js +104 -4
- package/dist/es/node_modules/xgplayer/es/lang/en.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/i18n.js +78 -4
- package/dist/es/node_modules/xgplayer/es/lang/jp.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/zh-cn.js +82 -4
- package/dist/es/node_modules/xgplayer/es/mediaProxy.js +469 -4
- package/dist/es/node_modules/xgplayer/es/player.js +1243 -4
- package/dist/es/node_modules/xgplayer/es/plugin/basePlugin.js +210 -4
- package/dist/es/node_modules/xgplayer/es/plugin/hooksDescriptor.js +133 -4
- package/dist/es/node_modules/xgplayer/es/plugin/plugin.js +369 -4
- package/dist/es/node_modules/xgplayer/es/plugin/pluginsManager.js +207 -4
- package/dist/es/node_modules/xgplayer/es/plugin/preset.js +17 -4
- package/dist/es/node_modules/xgplayer/es/plugin/resizeObserver.js +84 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/back.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/download.js +23 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/loading.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pause.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIcon.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +16 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/play.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/playNext.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/replay.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/rotate.js +20 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/seekicon.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconPlugin.js +38 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconTools.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionList.js +82 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionsIcon.js +196 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/thumbnail.js +144 -4
- package/dist/es/node_modules/xgplayer/es/plugins/controls/index.js +174 -4
- package/dist/es/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +108 -4
- package/dist/es/node_modules/xgplayer/es/plugins/definition/index.js +113 -4
- package/dist/es/node_modules/xgplayer/es/plugins/download/index.js +86 -4
- package/dist/es/node_modules/xgplayer/es/plugins/dynamicBg/index.js +235 -5
- package/dist/es/node_modules/xgplayer/es/plugins/enter/index.js +45 -4
- package/dist/es/node_modules/xgplayer/es/plugins/error/index.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fpsDetect/index.js +119 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/index.js +153 -4
- package/dist/es/node_modules/xgplayer/es/plugins/gapJump/index.js +99 -4
- package/dist/es/node_modules/xgplayer/es/plugins/keyboard/index.js +302 -4
- package/dist/es/node_modules/xgplayer/es/plugins/loading/index.js +49 -4
- package/dist/es/node_modules/xgplayer/es/plugins/logger/index.js +174 -5
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/index.js +172 -4
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +58 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/index.js +446 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/touch.js +141 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pc/index.js +125 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pip/index.js +219 -4
- package/dist/es/node_modules/xgplayer/es/plugins/play/index.js +105 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playNext/index.js +81 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playbackRate/index.js +103 -4
- package/dist/es/node_modules/xgplayer/es/plugins/poster/index.js +122 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/index.js +434 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/innerList.js +218 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/miniProgress.js +96 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +178 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/index.js +295 -4
- package/dist/es/node_modules/xgplayer/es/plugins/prompt/index.js +89 -4
- package/dist/es/node_modules/xgplayer/es/plugins/replay/index.js +95 -4
- package/dist/es/node_modules/xgplayer/es/plugins/rotate/index.js +109 -4
- package/dist/es/node_modules/xgplayer/es/plugins/screenShot/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/start/index.js +225 -4
- package/dist/es/node_modules/xgplayer/es/plugins/stats/index.js +155 -4
- package/dist/es/node_modules/xgplayer/es/plugins/testspeed/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/index.js +167 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/timesegments.js +149 -4
- package/dist/es/node_modules/xgplayer/es/plugins/volume/index.js +209 -4
- package/dist/es/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +56 -4
- package/dist/es/node_modules/xgplayer/es/presets/default.js +64 -4
- package/dist/es/node_modules/xgplayer/es/state.js +16 -4
- package/dist/es/node_modules/xgplayer/es/stateClassMap.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/database.js +86 -4
- package/dist/es/node_modules/xgplayer/es/utils/debug.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/draggabilly.js +274 -4
- package/dist/es/node_modules/xgplayer/es/utils/sniffer.js +114 -4
- package/dist/es/node_modules/xgplayer/es/utils/util.js +520 -4
- package/dist/es/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +28 -4
- package/dist/es/node_modules/xgplayer/es/version.js +7 -4
- package/dist/es/packages/components/index.js +88 -4
- package/dist/es/packages/hooks/dist/index.js +81 -0
- package/dist/es/packages/utils/dist/index.js +599 -0
- package/dist/es/styles/tokens.css +3 -3
- package/dist/lib/Button/index.js +4 -4
- package/dist/lib/Button/src/Button.css +3 -3
- package/dist/lib/Button/src/Button.vue.js +4 -4
- package/dist/lib/Button/src/Button2.css +3 -3
- package/dist/lib/CodeEditor/index.js +4 -4
- package/dist/lib/CodeEditor/src/index.css +3 -3
- package/dist/lib/CodeEditor/src/index.vue.js +4 -4
- package/dist/lib/CodeEditor/src/index2.css +3 -3
- package/dist/lib/CodeEditor/src/index3.css +3 -3
- package/dist/lib/ConfigProvider/index.js +4 -4
- package/dist/lib/ConfigProvider/src/configProvider.js +4 -4
- package/dist/lib/ConfigProvider/src/configProviderProps.js +4 -4
- package/dist/lib/ConfigProvider/src/constants.js +4 -4
- package/dist/lib/ConfigProvider/src/useGlobalConfig.js +4 -4
- package/dist/lib/CountTo/index.js +4 -4
- package/dist/lib/CountTo/src/index.css +3 -3
- package/dist/lib/CountTo/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/index.js +4 -4
- package/dist/lib/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/JsEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/lib/Ellipsis/src/index.css +3 -3
- package/dist/lib/Ellipsis/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/src/utils/utils.js +4 -4
- package/dist/lib/Form/index.js +4 -4
- package/dist/lib/Form/src/Form.css +3 -3
- package/dist/lib/Form/src/Form.vue.js +4 -4
- package/dist/lib/Form/src/Form2.css +3 -3
- package/dist/lib/Form/src/styles/form.css +3 -3
- package/dist/lib/Marquee/index.js +4 -4
- package/dist/lib/Marquee/src/index.css +3 -3
- package/dist/lib/Marquee/src/index.vue.js +4 -4
- package/dist/lib/Marquee/src/index2.css +3 -3
- package/dist/lib/Overlay/index.js +4 -4
- package/dist/lib/Overlay/src/Message.css +3 -3
- package/dist/lib/Overlay/src/Message.vue.js +4 -4
- package/dist/lib/Overlay/src/Message2.css +3 -3
- package/dist/lib/Overlay/src/Modal.css +3 -3
- package/dist/lib/Overlay/src/Modal.vue.js +4 -4
- package/dist/lib/Overlay/src/Modal2.css +3 -3
- package/dist/lib/Overlay/src/Notice.css +3 -3
- package/dist/lib/Overlay/src/Notice.vue.js +4 -4
- package/dist/lib/Overlay/src/Notice2.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.vue.js +4 -4
- package/dist/lib/Overlay/src/Tooltip2.css +3 -3
- package/dist/lib/RichTextEditor/index.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/lib/RichTextEditor/src/ToolbarPanel.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TableButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/lib/RichTextEditor/src/constant/index.js +4 -4
- package/dist/lib/RichTextEditor/src/extensions/video.js +4 -4
- package/dist/lib/RichTextEditor/src/index.css +4 -4
- package/dist/lib/RichTextEditor/src/index.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/index2.css +4 -4
- package/dist/lib/RichTextEditor/src/props.js +4 -4
- package/dist/lib/ScaleScreen/index.js +4 -4
- package/dist/lib/ScaleScreen/src/index.css +3 -3
- package/dist/lib/ScaleScreen/src/index.vue.js +4 -4
- package/dist/lib/ScaleScreen/src/index2.css +3 -3
- package/dist/lib/Transition/index.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition.css +3 -3
- package/dist/lib/Transition/src/CollapseTransition.vue.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition2.css +3 -3
- package/dist/lib/Transition/src/CreateTransition.js +4 -4
- package/dist/lib/Transition/src/ExpandTransition.js +4 -4
- package/dist/lib/Transition/src/style/index.css +3 -3
- package/dist/lib/Transition/style.js +4 -4
- package/dist/lib/VideoBackground/index.js +4 -4
- package/dist/lib/VideoBackground/src/helper.js +4 -4
- package/dist/lib/VideoBackground/src/index.css +3 -3
- package/dist/lib/VideoBackground/src/index.vue.js +4 -4
- package/dist/lib/VideoBackground/src/index2.css +3 -3
- package/dist/lib/VideoBackground/src/index3.css +3 -3
- package/dist/lib/VideoBackground/src/videoBackground.js +4 -4
- package/dist/lib/VideoPlayer/index.js +4 -4
- package/dist/lib/VideoPlayer/src/index.css +3 -3
- package/dist/lib/VideoPlayer/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/index.js +4 -4
- package/dist/lib/VirtualScroll/src/index.css +3 -3
- package/dist/lib/VirtualScroll/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/src/index.vue2.js +4 -4
- package/dist/lib/VirtualScroll/src/index2.css +3 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +4 -4
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +4 -4
- package/dist/lib/_virtual/delegate.js +4 -4
- package/dist/lib/_virtual/download.js +4 -4
- package/dist/lib/_virtual/download2.js +4 -4
- package/dist/lib/_virtual/index.js +4 -4
- package/dist/lib/_virtual/index2.js +4 -4
- package/dist/lib/_virtual/index3.js +14 -0
- package/dist/lib/{node_modules/@tanstack/store/dist/esm/types.js → _virtual/index4.js} +4 -4
- package/dist/lib/hooks/useLocale.js +4 -4
- package/dist/lib/hooks/useNamespace.js +4 -4
- package/dist/lib/index.js +4 -4
- package/dist/lib/locale/lang/en-US.js +4 -4
- package/dist/lib/locale/lang/ja-JP.js +4 -4
- package/dist/lib/locale/lang/zh-CN.js +4 -4
- package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +16 -4
- package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +6 -4
- package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lint/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +8 -4
- package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +8 -4
- package/dist/lib/node_modules/@lezer/common/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/java/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/javascript/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/json/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/python/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +4 -4
- package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +4 -4
- package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +4 -4
- package/dist/lib/node_modules/@tanstack/store/dist/esm/alien.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/atom.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/batch.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/core/dist/index.js +94 -4
- package/dist/lib/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-blockquote/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-bold/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-character-count/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code-block/dist/index.js +21 -4
- package/dist/lib/node_modules/@tiptap/extension-document/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-hard-break/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-heading/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-image/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-italic/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-link/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-list/dist/index.js +15 -4
- package/dist/lib/node_modules/@tiptap/extension-paragraph/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-strike/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-subscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-superscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-table/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-task-item/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-task-list/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-align/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-style/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-underline/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extensions/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/html/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/starter-kit/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/vue-3/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +4 -4
- package/dist/lib/node_modules/codemirror/dist/index.js +4 -4
- package/dist/lib/node_modules/crelt/index.js +4 -4
- package/dist/lib/node_modules/delegate/src/closest.js +4 -4
- package/dist/lib/node_modules/delegate/src/delegate.js +4 -4
- package/dist/lib/node_modules/downloadjs/download.js +6 -4
- package/dist/lib/node_modules/eventemitter3/index.js +4 -4
- package/dist/lib/node_modules/linkifyjs/dist/linkify.js +8 -4
- package/dist/lib/node_modules/lodash-es/_DataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Hash.js +4 -4
- package/dist/lib/node_modules/lodash-es/_ListCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Map.js +4 -4
- package/dist/lib/node_modules/lodash-es/_MapCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Promise.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Set.js +4 -4
- package/dist/lib/node_modules/lodash-es/_SetCache.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Stack.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Symbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Uint8Array.js +4 -4
- package/dist/lib/node_modules/lodash-es/_WeakMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_apply.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayEach.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayFilter.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayIncludes.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayIncludesWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayLikeKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayPush.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arraySome.js +14 -0
- package/dist/lib/node_modules/lodash-es/_asciiToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assignMergeValue.js +14 -0
- package/dist/lib/node_modules/lodash-es/_assignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFindIndex.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFlatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetAllKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIntersection.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsEqualDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsNaN.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseMerge.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseMergeDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseRest.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseSetToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseTimes.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUnary.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUniq.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseUnset.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_castSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneArrayBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneDataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_copyArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_copyObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createAssigner.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createBaseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createCaseFirst.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_customOmitClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_defineProperty.js +4 -4
- package/dist/lib/node_modules/lodash-es/_equalArrays.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalByTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalObjects.js +14 -0
- package/dist/lib/node_modules/lodash-es/_flatRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getAllKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getMapData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbols.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbolsIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hasUnicode.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneByTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isFlattenable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIndex.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIterateeCall.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isMasked.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_nativeKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nodeUtil.js +4 -4
- package/dist/lib/node_modules/lodash-es/_objectToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overArg.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_parent.js +4 -4
- package/dist/lib/node_modules/lodash-es/_root.js +4 -4
- package/dist/lib/node_modules/lodash-es/_safeGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheAdd.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_shortOut.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_strictIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stringToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toSource.js +4 -4
- package/dist/lib/node_modules/lodash-es/_unicodeToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/constant.js +4 -4
- package/dist/lib/node_modules/lodash-es/eq.js +4 -4
- package/dist/lib/node_modules/lodash-es/flatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/get.js +4 -4
- package/dist/lib/node_modules/lodash-es/identity.js +4 -4
- package/dist/lib/node_modules/lodash-es/intersectionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/isArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/isBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/isEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/isFinite.js +4 -4
- package/dist/lib/node_modules/lodash-es/isFunction.js +4 -4
- package/dist/lib/node_modules/lodash-es/isLength.js +4 -4
- package/dist/lib/node_modules/lodash-es/isMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNaN.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNil.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNumber.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isPlainObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/isString.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/isTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/keys.js +14 -0
- package/dist/lib/node_modules/lodash-es/keysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/last.js +4 -4
- package/dist/lib/node_modules/lodash-es/memoize.js +4 -4
- package/dist/lib/node_modules/lodash-es/mergeWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/noop.js +14 -0
- package/dist/lib/node_modules/lodash-es/omit.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubFalse.js +4 -4
- package/dist/lib/node_modules/lodash-es/toPlainObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/toString.js +4 -4
- package/dist/lib/node_modules/lodash-es/unionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/upperFirst.js +4 -4
- package/dist/lib/node_modules/orderedmap/dist/index.js +4 -4
- package/dist/lib/node_modules/path-to-regexp/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-commands/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-dropcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-gapcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-history/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-keymap/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-model/dist/index.js +7 -4
- package/dist/lib/node_modules/prosemirror-schema-list/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-state/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-tables/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-transform/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-view/dist/index.js +8 -4
- package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +14 -0
- package/dist/lib/node_modules/rope-sequence/dist/index.js +4 -4
- package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +14 -0
- package/dist/lib/node_modules/style-mod/src/style-mod.js +6 -4
- package/dist/lib/node_modules/title-case/dist/index.js +14 -0
- package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +4 -4
- package/dist/lib/node_modules/w3c-keyname/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/lib/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/constant.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/defaultConfig.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/error.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/events.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/index.umd.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/instManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/en.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/i18n.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/jp.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/zh-cn.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/mediaProxy.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/player.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/basePlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/hooksDescriptor.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/plugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/pluginsManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/preset.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/resizeObserver.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/back.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/download.js +18 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/loading.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pause.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIcon.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/play.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/playNext.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/replay.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/rotate.js +15 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/seekicon.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconPlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconTools.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionsIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/thumbnail.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/controls/index.js +12 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/definition/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/download/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/dynamicBg/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/enter/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/error/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fpsDetect/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/gapJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/keyboard/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/loading/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/logger/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/index.js +16 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/index.js +22 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/touch.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pc/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pip/index.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/play/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playNext/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playbackRate/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/poster/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/innerList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/miniProgress.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/prompt/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/replay/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/rotate/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/screenShot/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/start/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/stats/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/testspeed/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/timesegments.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/volume/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/presets/default.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/state.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/stateClassMap.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/database.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/debug.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/draggabilly.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/sniffer.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/util.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/version.js +4 -4
- package/dist/lib/packages/components/index.js +4 -4
- package/dist/lib/packages/hooks/dist/index.js +14 -0
- package/dist/lib/packages/utils/dist/index.js +14 -0
- package/dist/lib/styles/tokens.css +3 -3
- package/package.json +28 -29
- package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
|
@@ -7,9 +7,1437 @@ You shall not disclose such Confidential Information and shall use it only in
|
|
|
7
7
|
accordance with the terms of the license agreement.
|
|
8
8
|
|
|
9
9
|
--- Build Info ---
|
|
10
|
-
Version: 1.1.
|
|
11
|
-
Build Time: 2026/3/
|
|
12
|
-
Build Commit:
|
|
10
|
+
Version: 1.1.7
|
|
11
|
+
Build Time: 2026/3/13 18:25:06
|
|
12
|
+
Build Commit: 0b162dea954baa715e67b70f80401a571205058a
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
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};
|
|
14
|
+
const Ce = 1024;
|
|
15
|
+
let ge = 0;
|
|
16
|
+
class Z {
|
|
17
|
+
constructor(e, t) {
|
|
18
|
+
this.from = e, this.to = t;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
class k {
|
|
22
|
+
/**
|
|
23
|
+
Create a new node prop type.
|
|
24
|
+
*/
|
|
25
|
+
constructor(e = {}) {
|
|
26
|
+
this.id = ge++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
|
|
27
|
+
throw new Error("This node type doesn't define a deserialize function");
|
|
28
|
+
}), this.combine = e.combine || null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
This is meant to be used with
|
|
32
|
+
[`NodeSet.extend`](#common.NodeSet.extend) or
|
|
33
|
+
[`LRParser.configure`](#lr.ParserConfig.props) to compute
|
|
34
|
+
prop values for each node type in the set. Takes a [match
|
|
35
|
+
object](#common.NodeType^match) or function that returns undefined
|
|
36
|
+
if the node type doesn't get this prop, and the prop's value if
|
|
37
|
+
it does.
|
|
38
|
+
*/
|
|
39
|
+
add(e) {
|
|
40
|
+
if (this.perNode)
|
|
41
|
+
throw new RangeError("Can't add per-node props to node types");
|
|
42
|
+
return typeof e != "function" && (e = j.match(e)), (t) => {
|
|
43
|
+
let r = e(t);
|
|
44
|
+
return r === void 0 ? null : [this, r];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
k.closedBy = new k({ deserialize: (l) => l.split(" ") });
|
|
49
|
+
k.openedBy = new k({ deserialize: (l) => l.split(" ") });
|
|
50
|
+
k.group = new k({ deserialize: (l) => l.split(" ") });
|
|
51
|
+
k.isolate = new k({ deserialize: (l) => {
|
|
52
|
+
if (l && l != "rtl" && l != "ltr" && l != "auto")
|
|
53
|
+
throw new RangeError("Invalid value for isolate: " + l);
|
|
54
|
+
return l || "auto";
|
|
55
|
+
} });
|
|
56
|
+
k.contextHash = new k({ perNode: !0 });
|
|
57
|
+
k.lookAhead = new k({ perNode: !0 });
|
|
58
|
+
k.mounted = new k({ perNode: !0 });
|
|
59
|
+
class V {
|
|
60
|
+
constructor(e, t, r, i = !1) {
|
|
61
|
+
this.tree = e, this.overlay = t, this.parser = r, this.bracketed = i;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
@internal
|
|
65
|
+
*/
|
|
66
|
+
static get(e) {
|
|
67
|
+
return e && e.props && e.props[k.mounted.id];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const xe = /* @__PURE__ */ Object.create(null);
|
|
71
|
+
class j {
|
|
72
|
+
/**
|
|
73
|
+
@internal
|
|
74
|
+
*/
|
|
75
|
+
constructor(e, t, r, i = 0) {
|
|
76
|
+
this.name = e, this.props = t, this.id = r, this.flags = i;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
Define a node type.
|
|
80
|
+
*/
|
|
81
|
+
static define(e) {
|
|
82
|
+
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);
|
|
83
|
+
if (e.props) {
|
|
84
|
+
for (let n of e.props)
|
|
85
|
+
if (Array.isArray(n) || (n = n(i)), n) {
|
|
86
|
+
if (n[0].perNode)
|
|
87
|
+
throw new RangeError("Can't store a per-node prop on a node type");
|
|
88
|
+
t[n[0].id] = n[1];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return i;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
Retrieves a node prop for this type. Will return `undefined` if
|
|
95
|
+
the prop isn't present on this node.
|
|
96
|
+
*/
|
|
97
|
+
prop(e) {
|
|
98
|
+
return this.props[e.id];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
True when this is the top node of a grammar.
|
|
102
|
+
*/
|
|
103
|
+
get isTop() {
|
|
104
|
+
return (this.flags & 1) > 0;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
True when this node is produced by a skip rule.
|
|
108
|
+
*/
|
|
109
|
+
get isSkipped() {
|
|
110
|
+
return (this.flags & 2) > 0;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
Indicates whether this is an error node.
|
|
114
|
+
*/
|
|
115
|
+
get isError() {
|
|
116
|
+
return (this.flags & 4) > 0;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
When true, this node type doesn't correspond to a user-declared
|
|
120
|
+
named node, for example because it is used to cache repetition.
|
|
121
|
+
*/
|
|
122
|
+
get isAnonymous() {
|
|
123
|
+
return (this.flags & 8) > 0;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
Returns true when this node's name or one of its
|
|
127
|
+
[groups](#common.NodeProp^group) matches the given string.
|
|
128
|
+
*/
|
|
129
|
+
is(e) {
|
|
130
|
+
if (typeof e == "string") {
|
|
131
|
+
if (this.name == e)
|
|
132
|
+
return !0;
|
|
133
|
+
let t = this.prop(k.group);
|
|
134
|
+
return t ? t.indexOf(e) > -1 : !1;
|
|
135
|
+
}
|
|
136
|
+
return this.id == e;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
Create a function from node types to arbitrary values by
|
|
140
|
+
specifying an object whose property names are node or
|
|
141
|
+
[group](#common.NodeProp^group) names. Often useful with
|
|
142
|
+
[`NodeProp.add`](#common.NodeProp.add). You can put multiple
|
|
143
|
+
names, separated by spaces, in a single property name to map
|
|
144
|
+
multiple node names to a single value.
|
|
145
|
+
*/
|
|
146
|
+
static match(e) {
|
|
147
|
+
let t = /* @__PURE__ */ Object.create(null);
|
|
148
|
+
for (let r in e)
|
|
149
|
+
for (let i of r.split(" "))
|
|
150
|
+
t[i] = e[r];
|
|
151
|
+
return (r) => {
|
|
152
|
+
for (let i = r.prop(k.group), n = -1; n < (i ? i.length : 0); n++) {
|
|
153
|
+
let s = t[n < 0 ? r.name : i[n]];
|
|
154
|
+
if (s)
|
|
155
|
+
return s;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
j.none = new j(
|
|
161
|
+
"",
|
|
162
|
+
/* @__PURE__ */ Object.create(null),
|
|
163
|
+
0,
|
|
164
|
+
8
|
|
165
|
+
/* NodeFlag.Anonymous */
|
|
166
|
+
);
|
|
167
|
+
class ae {
|
|
168
|
+
/**
|
|
169
|
+
Create a set with the given types. The `id` property of each
|
|
170
|
+
type should correspond to its position within the array.
|
|
171
|
+
*/
|
|
172
|
+
constructor(e) {
|
|
173
|
+
this.types = e;
|
|
174
|
+
for (let t = 0; t < e.length; t++)
|
|
175
|
+
if (e[t].id != t)
|
|
176
|
+
throw new RangeError("Node type ids should correspond to array positions when creating a node set");
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
Create a copy of this set with some node properties added. The
|
|
180
|
+
arguments to this method can be created with
|
|
181
|
+
[`NodeProp.add`](#common.NodeProp.add).
|
|
182
|
+
*/
|
|
183
|
+
extend(...e) {
|
|
184
|
+
let t = [];
|
|
185
|
+
for (let r of this.types) {
|
|
186
|
+
let i = null;
|
|
187
|
+
for (let n of e) {
|
|
188
|
+
let s = n(r);
|
|
189
|
+
if (s) {
|
|
190
|
+
i || (i = Object.assign({}, r.props));
|
|
191
|
+
let h = s[1], o = s[0];
|
|
192
|
+
o.combine && o.id in i && (h = o.combine(i[o.id], h)), i[o.id] = h;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
t.push(i ? new j(r.name, i, r.id, r.flags) : r);
|
|
196
|
+
}
|
|
197
|
+
return new ae(t);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const Q = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
|
|
201
|
+
var _;
|
|
202
|
+
(function(l) {
|
|
203
|
+
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";
|
|
204
|
+
})(_ || (_ = {}));
|
|
205
|
+
class P {
|
|
206
|
+
/**
|
|
207
|
+
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
208
|
+
*/
|
|
209
|
+
constructor(e, t, r, i, n) {
|
|
210
|
+
if (this.type = e, this.children = t, this.positions = r, this.length = i, this.props = null, n && n.length) {
|
|
211
|
+
this.props = /* @__PURE__ */ Object.create(null);
|
|
212
|
+
for (let [s, h] of n)
|
|
213
|
+
this.props[typeof s == "number" ? s : s.id] = h;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
@internal
|
|
218
|
+
*/
|
|
219
|
+
toString() {
|
|
220
|
+
let e = V.get(this);
|
|
221
|
+
if (e && !e.overlay)
|
|
222
|
+
return e.tree.toString();
|
|
223
|
+
let t = "";
|
|
224
|
+
for (let r of this.children) {
|
|
225
|
+
let i = r.toString();
|
|
226
|
+
i && (t && (t += ","), t += i);
|
|
227
|
+
}
|
|
228
|
+
return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (t.length ? "(" + t + ")" : "") : t;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
Get a [tree cursor](#common.TreeCursor) positioned at the top of
|
|
232
|
+
the tree. Mode can be used to [control](#common.IterMode) which
|
|
233
|
+
nodes the cursor visits.
|
|
234
|
+
*/
|
|
235
|
+
cursor(e = 0) {
|
|
236
|
+
return new te(this.topNode, e);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
Get a [tree cursor](#common.TreeCursor) pointing into this tree
|
|
240
|
+
at the given position and side (see
|
|
241
|
+
[`moveTo`](#common.TreeCursor.moveTo).
|
|
242
|
+
*/
|
|
243
|
+
cursorAt(e, t = 0, r = 0) {
|
|
244
|
+
let i = Q.get(this) || this.topNode, n = new te(i);
|
|
245
|
+
return n.moveTo(e, t), Q.set(this, n._tree), n;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
Get a [syntax node](#common.SyntaxNode) object for the top of the
|
|
249
|
+
tree.
|
|
250
|
+
*/
|
|
251
|
+
get topNode() {
|
|
252
|
+
return new z(this, 0, 0, null);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
Get the [syntax node](#common.SyntaxNode) at the given position.
|
|
256
|
+
If `side` is -1, this will move into nodes that end at the
|
|
257
|
+
position. If 1, it'll move into nodes that start at the
|
|
258
|
+
position. With 0, it'll only enter nodes that cover the position
|
|
259
|
+
from both sides.
|
|
260
|
+
|
|
261
|
+
Note that this will not enter
|
|
262
|
+
[overlays](#common.MountedTree.overlay), and you often want
|
|
263
|
+
[`resolveInner`](#common.Tree.resolveInner) instead.
|
|
264
|
+
*/
|
|
265
|
+
resolve(e, t = 0) {
|
|
266
|
+
let r = $(Q.get(this) || this.topNode, e, t, !1);
|
|
267
|
+
return Q.set(this, r), r;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
Like [`resolve`](#common.Tree.resolve), but will enter
|
|
271
|
+
[overlaid](#common.MountedTree.overlay) nodes, producing a syntax node
|
|
272
|
+
pointing into the innermost overlaid tree at the given position
|
|
273
|
+
(with parent links going through all parent structure, including
|
|
274
|
+
the host trees).
|
|
275
|
+
*/
|
|
276
|
+
resolveInner(e, t = 0) {
|
|
277
|
+
let r = $(fe.get(this) || this.topNode, e, t, !0);
|
|
278
|
+
return fe.set(this, r), r;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
In some situations, it can be useful to iterate through all
|
|
282
|
+
nodes around a position, including those in overlays that don't
|
|
283
|
+
directly cover the position. This method gives you an iterator
|
|
284
|
+
that will produce all nodes, from small to big, around the given
|
|
285
|
+
position.
|
|
286
|
+
*/
|
|
287
|
+
resolveStack(e, t = 0) {
|
|
288
|
+
return me(this, e, t);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
Iterate over the tree and its children, calling `enter` for any
|
|
292
|
+
node that touches the `from`/`to` region (if given) before
|
|
293
|
+
running over such a node's children, and `leave` (if given) when
|
|
294
|
+
leaving the node. When `enter` returns `false`, that node will
|
|
295
|
+
not have its children iterated over (or `leave` called).
|
|
296
|
+
*/
|
|
297
|
+
iterate(e) {
|
|
298
|
+
let { enter: t, leave: r, from: i = 0, to: n = this.length } = e, s = e.mode || 0, h = (s & _.IncludeAnonymous) > 0;
|
|
299
|
+
for (let o = this.cursor(s | _.IncludeAnonymous); ; ) {
|
|
300
|
+
let C = !1;
|
|
301
|
+
if (o.from <= n && o.to >= i && (!h && o.type.isAnonymous || t(o) !== !1)) {
|
|
302
|
+
if (o.firstChild())
|
|
303
|
+
continue;
|
|
304
|
+
C = !0;
|
|
305
|
+
}
|
|
306
|
+
for (; C && r && (h || !o.type.isAnonymous) && r(o), !o.nextSibling(); ) {
|
|
307
|
+
if (!o.parent())
|
|
308
|
+
return;
|
|
309
|
+
C = !0;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
Get the value of the given [node prop](#common.NodeProp) for this
|
|
315
|
+
node. Works with both per-node and per-type props.
|
|
316
|
+
*/
|
|
317
|
+
prop(e) {
|
|
318
|
+
return e.perNode ? this.props ? this.props[e.id] : void 0 : this.type.prop(e);
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
Returns the node's [per-node props](#common.NodeProp.perNode) in a
|
|
322
|
+
format that can be passed to the [`Tree`](#common.Tree)
|
|
323
|
+
constructor.
|
|
324
|
+
*/
|
|
325
|
+
get propValues() {
|
|
326
|
+
let e = [];
|
|
327
|
+
if (this.props)
|
|
328
|
+
for (let t in this.props)
|
|
329
|
+
e.push([+t, this.props[t]]);
|
|
330
|
+
return e;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
Balance the direct children of this tree, producing a copy of
|
|
334
|
+
which may have children grouped into subtrees with type
|
|
335
|
+
[`NodeType.none`](#common.NodeType^none).
|
|
336
|
+
*/
|
|
337
|
+
balance(e = {}) {
|
|
338
|
+
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)));
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
Build a tree from a postfix-ordered buffer of node information,
|
|
342
|
+
or a cursor over such a buffer.
|
|
343
|
+
*/
|
|
344
|
+
static build(e) {
|
|
345
|
+
return we(e);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
P.empty = new P(j.none, [], [], 0);
|
|
349
|
+
class ie {
|
|
350
|
+
constructor(e, t) {
|
|
351
|
+
this.buffer = e, this.index = t;
|
|
352
|
+
}
|
|
353
|
+
get id() {
|
|
354
|
+
return this.buffer[this.index - 4];
|
|
355
|
+
}
|
|
356
|
+
get start() {
|
|
357
|
+
return this.buffer[this.index - 3];
|
|
358
|
+
}
|
|
359
|
+
get end() {
|
|
360
|
+
return this.buffer[this.index - 2];
|
|
361
|
+
}
|
|
362
|
+
get size() {
|
|
363
|
+
return this.buffer[this.index - 1];
|
|
364
|
+
}
|
|
365
|
+
get pos() {
|
|
366
|
+
return this.index;
|
|
367
|
+
}
|
|
368
|
+
next() {
|
|
369
|
+
this.index -= 4;
|
|
370
|
+
}
|
|
371
|
+
fork() {
|
|
372
|
+
return new ie(this.buffer, this.index);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
class M {
|
|
376
|
+
/**
|
|
377
|
+
Create a tree buffer.
|
|
378
|
+
*/
|
|
379
|
+
constructor(e, t, r) {
|
|
380
|
+
this.buffer = e, this.length = t, this.set = r;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
@internal
|
|
384
|
+
*/
|
|
385
|
+
get type() {
|
|
386
|
+
return j.none;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
@internal
|
|
390
|
+
*/
|
|
391
|
+
toString() {
|
|
392
|
+
let e = [];
|
|
393
|
+
for (let t = 0; t < this.buffer.length; )
|
|
394
|
+
e.push(this.childString(t)), t = this.buffer[t + 3];
|
|
395
|
+
return e.join(",");
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
@internal
|
|
399
|
+
*/
|
|
400
|
+
childString(e) {
|
|
401
|
+
let t = this.buffer[e], r = this.buffer[e + 3], i = this.set.types[t], n = i.name;
|
|
402
|
+
if (/\W/.test(n) && !i.isError && (n = JSON.stringify(n)), e += 4, r == e)
|
|
403
|
+
return n;
|
|
404
|
+
let s = [];
|
|
405
|
+
for (; e < r; )
|
|
406
|
+
s.push(this.childString(e)), e = this.buffer[e + 3];
|
|
407
|
+
return n + "(" + s.join(",") + ")";
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
@internal
|
|
411
|
+
*/
|
|
412
|
+
findChild(e, t, r, i, n) {
|
|
413
|
+
let { buffer: s } = this, h = -1;
|
|
414
|
+
for (let o = e; o != t && !(pe(n, i, s[o + 1], s[o + 2]) && (h = o, r > 0)); o = s[o + 3])
|
|
415
|
+
;
|
|
416
|
+
return h;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
@internal
|
|
420
|
+
*/
|
|
421
|
+
slice(e, t, r) {
|
|
422
|
+
let i = this.buffer, n = new Uint16Array(t - e), s = 0;
|
|
423
|
+
for (let h = e, o = 0; h < t; ) {
|
|
424
|
+
n[o++] = i[h++], n[o++] = i[h++] - r;
|
|
425
|
+
let C = n[o++] = i[h++] - r;
|
|
426
|
+
n[o++] = i[h++] - e, s = Math.max(s, C);
|
|
427
|
+
}
|
|
428
|
+
return new M(n, s, this.set);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function pe(l, e, t, r) {
|
|
432
|
+
switch (l) {
|
|
433
|
+
case -2:
|
|
434
|
+
return t < e;
|
|
435
|
+
case -1:
|
|
436
|
+
return r >= e && t < e;
|
|
437
|
+
case 0:
|
|
438
|
+
return t < e && r > e;
|
|
439
|
+
case 1:
|
|
440
|
+
return t <= e && r > e;
|
|
441
|
+
case 2:
|
|
442
|
+
return r > e;
|
|
443
|
+
case 4:
|
|
444
|
+
return !0;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
function $(l, e, t, r) {
|
|
448
|
+
for (var i; l.from == l.to || (t < 1 ? l.from >= e : l.from > e) || (t > -1 ? l.to <= e : l.to < e); ) {
|
|
449
|
+
let s = !r && l instanceof z && l.index < 0 ? null : l.parent;
|
|
450
|
+
if (!s)
|
|
451
|
+
return l;
|
|
452
|
+
l = s;
|
|
453
|
+
}
|
|
454
|
+
let n = r ? 0 : _.IgnoreOverlays;
|
|
455
|
+
if (r)
|
|
456
|
+
for (let s = l, h = s.parent; h; s = h, h = s.parent)
|
|
457
|
+
s instanceof z && s.index < 0 && ((i = h.enter(e, t, n)) === null || i === void 0 ? void 0 : i.from) != s.from && (l = h);
|
|
458
|
+
for (; ; ) {
|
|
459
|
+
let s = l.enter(e, t, n);
|
|
460
|
+
if (!s)
|
|
461
|
+
return l;
|
|
462
|
+
l = s;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
class de {
|
|
466
|
+
cursor(e = 0) {
|
|
467
|
+
return new te(this, e);
|
|
468
|
+
}
|
|
469
|
+
getChild(e, t = null, r = null) {
|
|
470
|
+
let i = ue(this, e, t, r);
|
|
471
|
+
return i.length ? i[0] : null;
|
|
472
|
+
}
|
|
473
|
+
getChildren(e, t = null, r = null) {
|
|
474
|
+
return ue(this, e, t, r);
|
|
475
|
+
}
|
|
476
|
+
resolve(e, t = 0) {
|
|
477
|
+
return $(this, e, t, !1);
|
|
478
|
+
}
|
|
479
|
+
resolveInner(e, t = 0) {
|
|
480
|
+
return $(this, e, t, !0);
|
|
481
|
+
}
|
|
482
|
+
matchContext(e) {
|
|
483
|
+
return ee(this.parent, e);
|
|
484
|
+
}
|
|
485
|
+
enterUnfinishedNodesBefore(e) {
|
|
486
|
+
let t = this.childBefore(e), r = this;
|
|
487
|
+
for (; t; ) {
|
|
488
|
+
let i = t.lastChild;
|
|
489
|
+
if (!i || i.to != t.to)
|
|
490
|
+
break;
|
|
491
|
+
i.type.isError && i.from == i.to ? (r = t, t = i.prevSibling) : t = i;
|
|
492
|
+
}
|
|
493
|
+
return r;
|
|
494
|
+
}
|
|
495
|
+
get node() {
|
|
496
|
+
return this;
|
|
497
|
+
}
|
|
498
|
+
get next() {
|
|
499
|
+
return this.parent;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
class z extends de {
|
|
503
|
+
constructor(e, t, r, i) {
|
|
504
|
+
super(), this._tree = e, this.from = t, this.index = r, this._parent = i;
|
|
505
|
+
}
|
|
506
|
+
get type() {
|
|
507
|
+
return this._tree.type;
|
|
508
|
+
}
|
|
509
|
+
get name() {
|
|
510
|
+
return this._tree.type.name;
|
|
511
|
+
}
|
|
512
|
+
get to() {
|
|
513
|
+
return this.from + this._tree.length;
|
|
514
|
+
}
|
|
515
|
+
nextChild(e, t, r, i, n = 0) {
|
|
516
|
+
for (let s = this; ; ) {
|
|
517
|
+
for (let { children: h, positions: o } = s._tree, C = t > 0 ? h.length : -1; e != C; e += t) {
|
|
518
|
+
let p = h[e], w = o[e] + s.from, A;
|
|
519
|
+
if (!(!(n & _.EnterBracketed && p instanceof P && (A = V.get(p)) && !A.overlay && A.bracketed && r >= w && r <= w + p.length) && !pe(i, r, w, w + p.length))) {
|
|
520
|
+
if (p instanceof M) {
|
|
521
|
+
if (n & _.ExcludeBuffers)
|
|
522
|
+
continue;
|
|
523
|
+
let N = p.findChild(0, p.buffer.length, t, r - w, i);
|
|
524
|
+
if (N > -1)
|
|
525
|
+
return new O(new be(s, p, e, w), null, N);
|
|
526
|
+
} else if (n & _.IncludeAnonymous || !p.type.isAnonymous || ne(p)) {
|
|
527
|
+
let N;
|
|
528
|
+
if (!(n & _.IgnoreMounts) && (N = V.get(p)) && !N.overlay)
|
|
529
|
+
return new z(N.tree, w, e, s);
|
|
530
|
+
let S = new z(p, w, e, s);
|
|
531
|
+
return n & _.IncludeAnonymous || !S.type.isAnonymous ? S : S.nextChild(t < 0 ? p.children.length - 1 : 0, t, r, i, n);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
if (n & _.IncludeAnonymous || !s.type.isAnonymous || (s.index >= 0 ? e = s.index + t : e = t < 0 ? -1 : s._parent._tree.children.length, s = s._parent, !s))
|
|
536
|
+
return null;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
get firstChild() {
|
|
540
|
+
return this.nextChild(
|
|
541
|
+
0,
|
|
542
|
+
1,
|
|
543
|
+
0,
|
|
544
|
+
4
|
|
545
|
+
/* Side.DontCare */
|
|
546
|
+
);
|
|
547
|
+
}
|
|
548
|
+
get lastChild() {
|
|
549
|
+
return this.nextChild(
|
|
550
|
+
this._tree.children.length - 1,
|
|
551
|
+
-1,
|
|
552
|
+
0,
|
|
553
|
+
4
|
|
554
|
+
/* Side.DontCare */
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
childAfter(e) {
|
|
558
|
+
return this.nextChild(
|
|
559
|
+
0,
|
|
560
|
+
1,
|
|
561
|
+
e,
|
|
562
|
+
2
|
|
563
|
+
/* Side.After */
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
childBefore(e) {
|
|
567
|
+
return this.nextChild(
|
|
568
|
+
this._tree.children.length - 1,
|
|
569
|
+
-1,
|
|
570
|
+
e,
|
|
571
|
+
-2
|
|
572
|
+
/* Side.Before */
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
prop(e) {
|
|
576
|
+
return this._tree.prop(e);
|
|
577
|
+
}
|
|
578
|
+
enter(e, t, r = 0) {
|
|
579
|
+
let i;
|
|
580
|
+
if (!(r & _.IgnoreOverlays) && (i = V.get(this._tree)) && i.overlay) {
|
|
581
|
+
let n = e - this.from, s = r & _.EnterBracketed && i.bracketed;
|
|
582
|
+
for (let { from: h, to: o } of i.overlay)
|
|
583
|
+
if ((t > 0 || s ? h <= n : h < n) && (t < 0 || s ? o >= n : o > n))
|
|
584
|
+
return new z(i.tree, i.overlay[0].from + this.from, -1, this);
|
|
585
|
+
}
|
|
586
|
+
return this.nextChild(0, 1, e, t, r);
|
|
587
|
+
}
|
|
588
|
+
nextSignificantParent() {
|
|
589
|
+
let e = this;
|
|
590
|
+
for (; e.type.isAnonymous && e._parent; )
|
|
591
|
+
e = e._parent;
|
|
592
|
+
return e;
|
|
593
|
+
}
|
|
594
|
+
get parent() {
|
|
595
|
+
return this._parent ? this._parent.nextSignificantParent() : null;
|
|
596
|
+
}
|
|
597
|
+
get nextSibling() {
|
|
598
|
+
return this._parent && this.index >= 0 ? this._parent.nextChild(
|
|
599
|
+
this.index + 1,
|
|
600
|
+
1,
|
|
601
|
+
0,
|
|
602
|
+
4
|
|
603
|
+
/* Side.DontCare */
|
|
604
|
+
) : null;
|
|
605
|
+
}
|
|
606
|
+
get prevSibling() {
|
|
607
|
+
return this._parent && this.index >= 0 ? this._parent.nextChild(
|
|
608
|
+
this.index - 1,
|
|
609
|
+
-1,
|
|
610
|
+
0,
|
|
611
|
+
4
|
|
612
|
+
/* Side.DontCare */
|
|
613
|
+
) : null;
|
|
614
|
+
}
|
|
615
|
+
get tree() {
|
|
616
|
+
return this._tree;
|
|
617
|
+
}
|
|
618
|
+
toTree() {
|
|
619
|
+
return this._tree;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
@internal
|
|
623
|
+
*/
|
|
624
|
+
toString() {
|
|
625
|
+
return this._tree.toString();
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
function ue(l, e, t, r) {
|
|
629
|
+
let i = l.cursor(), n = [];
|
|
630
|
+
if (!i.firstChild())
|
|
631
|
+
return n;
|
|
632
|
+
if (t != null) {
|
|
633
|
+
for (let s = !1; !s; )
|
|
634
|
+
if (s = i.type.is(t), !i.nextSibling())
|
|
635
|
+
return n;
|
|
636
|
+
}
|
|
637
|
+
for (; ; ) {
|
|
638
|
+
if (r != null && i.type.is(r))
|
|
639
|
+
return n;
|
|
640
|
+
if (i.type.is(e) && n.push(i.node), !i.nextSibling())
|
|
641
|
+
return r == null ? n : [];
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
function ee(l, e, t = e.length - 1) {
|
|
645
|
+
for (let r = l; t >= 0; r = r.parent) {
|
|
646
|
+
if (!r)
|
|
647
|
+
return !1;
|
|
648
|
+
if (!r.type.isAnonymous) {
|
|
649
|
+
if (e[t] && e[t] != r.name)
|
|
650
|
+
return !1;
|
|
651
|
+
t--;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
return !0;
|
|
655
|
+
}
|
|
656
|
+
class be {
|
|
657
|
+
constructor(e, t, r, i) {
|
|
658
|
+
this.parent = e, this.buffer = t, this.index = r, this.start = i;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
class O extends de {
|
|
662
|
+
get name() {
|
|
663
|
+
return this.type.name;
|
|
664
|
+
}
|
|
665
|
+
get from() {
|
|
666
|
+
return this.context.start + this.context.buffer.buffer[this.index + 1];
|
|
667
|
+
}
|
|
668
|
+
get to() {
|
|
669
|
+
return this.context.start + this.context.buffer.buffer[this.index + 2];
|
|
670
|
+
}
|
|
671
|
+
constructor(e, t, r) {
|
|
672
|
+
super(), this.context = e, this._parent = t, this.index = r, this.type = e.buffer.set.types[e.buffer.buffer[r]];
|
|
673
|
+
}
|
|
674
|
+
child(e, t, r) {
|
|
675
|
+
let { buffer: i } = this.context, n = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.context.start, r);
|
|
676
|
+
return n < 0 ? null : new O(this.context, this, n);
|
|
677
|
+
}
|
|
678
|
+
get firstChild() {
|
|
679
|
+
return this.child(
|
|
680
|
+
1,
|
|
681
|
+
0,
|
|
682
|
+
4
|
|
683
|
+
/* Side.DontCare */
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
get lastChild() {
|
|
687
|
+
return this.child(
|
|
688
|
+
-1,
|
|
689
|
+
0,
|
|
690
|
+
4
|
|
691
|
+
/* Side.DontCare */
|
|
692
|
+
);
|
|
693
|
+
}
|
|
694
|
+
childAfter(e) {
|
|
695
|
+
return this.child(
|
|
696
|
+
1,
|
|
697
|
+
e,
|
|
698
|
+
2
|
|
699
|
+
/* Side.After */
|
|
700
|
+
);
|
|
701
|
+
}
|
|
702
|
+
childBefore(e) {
|
|
703
|
+
return this.child(
|
|
704
|
+
-1,
|
|
705
|
+
e,
|
|
706
|
+
-2
|
|
707
|
+
/* Side.Before */
|
|
708
|
+
);
|
|
709
|
+
}
|
|
710
|
+
prop(e) {
|
|
711
|
+
return this.type.prop(e);
|
|
712
|
+
}
|
|
713
|
+
enter(e, t, r = 0) {
|
|
714
|
+
if (r & _.ExcludeBuffers)
|
|
715
|
+
return null;
|
|
716
|
+
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);
|
|
717
|
+
return n < 0 ? null : new O(this.context, this, n);
|
|
718
|
+
}
|
|
719
|
+
get parent() {
|
|
720
|
+
return this._parent || this.context.parent.nextSignificantParent();
|
|
721
|
+
}
|
|
722
|
+
externalSibling(e) {
|
|
723
|
+
return this._parent ? null : this.context.parent.nextChild(
|
|
724
|
+
this.context.index + e,
|
|
725
|
+
e,
|
|
726
|
+
0,
|
|
727
|
+
4
|
|
728
|
+
/* Side.DontCare */
|
|
729
|
+
);
|
|
730
|
+
}
|
|
731
|
+
get nextSibling() {
|
|
732
|
+
let { buffer: e } = this.context, t = e.buffer[this.index + 3];
|
|
733
|
+
return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new O(this.context, this._parent, t) : this.externalSibling(1);
|
|
734
|
+
}
|
|
735
|
+
get prevSibling() {
|
|
736
|
+
let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
|
|
737
|
+
return this.index == t ? this.externalSibling(-1) : new O(this.context, this._parent, e.findChild(
|
|
738
|
+
t,
|
|
739
|
+
this.index,
|
|
740
|
+
-1,
|
|
741
|
+
0,
|
|
742
|
+
4
|
|
743
|
+
/* Side.DontCare */
|
|
744
|
+
));
|
|
745
|
+
}
|
|
746
|
+
get tree() {
|
|
747
|
+
return null;
|
|
748
|
+
}
|
|
749
|
+
toTree() {
|
|
750
|
+
let e = [], t = [], { buffer: r } = this.context, i = this.index + 4, n = r.buffer[this.index + 3];
|
|
751
|
+
if (n > i) {
|
|
752
|
+
let s = r.buffer[this.index + 1];
|
|
753
|
+
e.push(r.slice(i, n, s)), t.push(0);
|
|
754
|
+
}
|
|
755
|
+
return new P(this.type, e, t, this.to - this.from);
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
@internal
|
|
759
|
+
*/
|
|
760
|
+
toString() {
|
|
761
|
+
return this.context.buffer.childString(this.index);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
function ce(l) {
|
|
765
|
+
if (!l.length)
|
|
766
|
+
return null;
|
|
767
|
+
let e = 0, t = l[0];
|
|
768
|
+
for (let n = 1; n < l.length; n++) {
|
|
769
|
+
let s = l[n];
|
|
770
|
+
(s.from > t.from || s.to < t.to) && (t = s, e = n);
|
|
771
|
+
}
|
|
772
|
+
let r = t instanceof z && t.index < 0 ? null : t.parent, i = l.slice();
|
|
773
|
+
return r ? i[e] = r : i.splice(e, 1), new ye(i, t);
|
|
774
|
+
}
|
|
775
|
+
class ye {
|
|
776
|
+
constructor(e, t) {
|
|
777
|
+
this.heads = e, this.node = t;
|
|
778
|
+
}
|
|
779
|
+
get next() {
|
|
780
|
+
return ce(this.heads);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function me(l, e, t) {
|
|
784
|
+
let r = l.resolveInner(e, t), i = null;
|
|
785
|
+
for (let n = r instanceof z ? r : r.context.parent; n; n = n.parent)
|
|
786
|
+
if (n.index < 0) {
|
|
787
|
+
let s = n.parent;
|
|
788
|
+
(i || (i = [r])).push(s.resolve(e, t)), n = s;
|
|
789
|
+
} else {
|
|
790
|
+
let s = V.get(n.tree);
|
|
791
|
+
if (s && s.overlay && s.overlay[0].from <= e && s.overlay[s.overlay.length - 1].to >= e) {
|
|
792
|
+
let h = new z(s.tree, s.overlay[0].from + n.from, -1, n);
|
|
793
|
+
(i || (i = [r])).push($(h, e, t, !1));
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
return i ? ce(i) : r;
|
|
797
|
+
}
|
|
798
|
+
class te {
|
|
799
|
+
/**
|
|
800
|
+
Shorthand for `.type.name`.
|
|
801
|
+
*/
|
|
802
|
+
get name() {
|
|
803
|
+
return this.type.name;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
@internal
|
|
807
|
+
*/
|
|
808
|
+
constructor(e, t = 0) {
|
|
809
|
+
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = t & ~_.EnterBracketed, e instanceof z)
|
|
810
|
+
this.yieldNode(e);
|
|
811
|
+
else {
|
|
812
|
+
this._tree = e.context.parent, this.buffer = e.context;
|
|
813
|
+
for (let r = e._parent; r; r = r._parent)
|
|
814
|
+
this.stack.unshift(r.index);
|
|
815
|
+
this.bufferNode = e, this.yieldBuf(e.index);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
yieldNode(e) {
|
|
819
|
+
return e ? (this._tree = e, this.type = e.type, this.from = e.from, this.to = e.to, !0) : !1;
|
|
820
|
+
}
|
|
821
|
+
yieldBuf(e, t) {
|
|
822
|
+
this.index = e;
|
|
823
|
+
let { start: r, buffer: i } = this.buffer;
|
|
824
|
+
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;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
@internal
|
|
828
|
+
*/
|
|
829
|
+
yield(e) {
|
|
830
|
+
return e ? e instanceof z ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
@internal
|
|
834
|
+
*/
|
|
835
|
+
toString() {
|
|
836
|
+
return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
@internal
|
|
840
|
+
*/
|
|
841
|
+
enterChild(e, t, r) {
|
|
842
|
+
if (!this.buffer)
|
|
843
|
+
return this.yield(this._tree.nextChild(e < 0 ? this._tree._tree.children.length - 1 : 0, e, t, r, this.mode));
|
|
844
|
+
let { buffer: i } = this.buffer, n = i.findChild(this.index + 4, i.buffer[this.index + 3], e, t - this.buffer.start, r);
|
|
845
|
+
return n < 0 ? !1 : (this.stack.push(this.index), this.yieldBuf(n));
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
Move the cursor to this node's first child. When this returns
|
|
849
|
+
false, the node has no child, and the cursor has not been moved.
|
|
850
|
+
*/
|
|
851
|
+
firstChild() {
|
|
852
|
+
return this.enterChild(
|
|
853
|
+
1,
|
|
854
|
+
0,
|
|
855
|
+
4
|
|
856
|
+
/* Side.DontCare */
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
Move the cursor to this node's last child.
|
|
861
|
+
*/
|
|
862
|
+
lastChild() {
|
|
863
|
+
return this.enterChild(
|
|
864
|
+
-1,
|
|
865
|
+
0,
|
|
866
|
+
4
|
|
867
|
+
/* Side.DontCare */
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
Move the cursor to the first child that ends after `pos`.
|
|
872
|
+
*/
|
|
873
|
+
childAfter(e) {
|
|
874
|
+
return this.enterChild(
|
|
875
|
+
1,
|
|
876
|
+
e,
|
|
877
|
+
2
|
|
878
|
+
/* Side.After */
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
Move to the last child that starts before `pos`.
|
|
883
|
+
*/
|
|
884
|
+
childBefore(e) {
|
|
885
|
+
return this.enterChild(
|
|
886
|
+
-1,
|
|
887
|
+
e,
|
|
888
|
+
-2
|
|
889
|
+
/* Side.Before */
|
|
890
|
+
);
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
Move the cursor to the child around `pos`. If side is -1 the
|
|
894
|
+
child may end at that position, when 1 it may start there. This
|
|
895
|
+
will also enter [overlaid](#common.MountedTree.overlay)
|
|
896
|
+
[mounted](#common.NodeProp^mounted) trees unless `overlays` is
|
|
897
|
+
set to false.
|
|
898
|
+
*/
|
|
899
|
+
enter(e, t, r = this.mode) {
|
|
900
|
+
return this.buffer ? r & _.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, r));
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
Move to the node's parent node, if this isn't the top node.
|
|
904
|
+
*/
|
|
905
|
+
parent() {
|
|
906
|
+
if (!this.buffer)
|
|
907
|
+
return this.yieldNode(this.mode & _.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
908
|
+
if (this.stack.length)
|
|
909
|
+
return this.yieldBuf(this.stack.pop());
|
|
910
|
+
let e = this.mode & _.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
911
|
+
return this.buffer = null, this.yieldNode(e);
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
@internal
|
|
915
|
+
*/
|
|
916
|
+
sibling(e) {
|
|
917
|
+
if (!this.buffer)
|
|
918
|
+
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;
|
|
919
|
+
let { buffer: t } = this.buffer, r = this.stack.length - 1;
|
|
920
|
+
if (e < 0) {
|
|
921
|
+
let i = r < 0 ? 0 : this.stack[r] + 4;
|
|
922
|
+
if (this.index != i)
|
|
923
|
+
return this.yieldBuf(t.findChild(
|
|
924
|
+
i,
|
|
925
|
+
this.index,
|
|
926
|
+
-1,
|
|
927
|
+
0,
|
|
928
|
+
4
|
|
929
|
+
/* Side.DontCare */
|
|
930
|
+
));
|
|
931
|
+
} else {
|
|
932
|
+
let i = t.buffer[this.index + 3];
|
|
933
|
+
if (i < (r < 0 ? t.buffer.length : t.buffer[this.stack[r] + 3]))
|
|
934
|
+
return this.yieldBuf(i);
|
|
935
|
+
}
|
|
936
|
+
return r < 0 ? this.yield(this.buffer.parent.nextChild(this.buffer.index + e, e, 0, 4, this.mode)) : !1;
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
Move to this node's next sibling, if any.
|
|
940
|
+
*/
|
|
941
|
+
nextSibling() {
|
|
942
|
+
return this.sibling(1);
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
Move to this node's previous sibling, if any.
|
|
946
|
+
*/
|
|
947
|
+
prevSibling() {
|
|
948
|
+
return this.sibling(-1);
|
|
949
|
+
}
|
|
950
|
+
atLastNode(e) {
|
|
951
|
+
let t, r, { buffer: i } = this;
|
|
952
|
+
if (i) {
|
|
953
|
+
if (e > 0) {
|
|
954
|
+
if (this.index < i.buffer.buffer.length)
|
|
955
|
+
return !1;
|
|
956
|
+
} else
|
|
957
|
+
for (let n = 0; n < this.index; n++)
|
|
958
|
+
if (i.buffer.buffer[n + 3] < this.index)
|
|
959
|
+
return !1;
|
|
960
|
+
({ index: t, parent: r } = i);
|
|
961
|
+
} else
|
|
962
|
+
({ index: t, _parent: r } = this._tree);
|
|
963
|
+
for (; r; { index: t, _parent: r } = r)
|
|
964
|
+
if (t > -1)
|
|
965
|
+
for (let n = t + e, s = e < 0 ? -1 : r._tree.children.length; n != s; n += e) {
|
|
966
|
+
let h = r._tree.children[n];
|
|
967
|
+
if (this.mode & _.IncludeAnonymous || h instanceof M || !h.type.isAnonymous || ne(h))
|
|
968
|
+
return !1;
|
|
969
|
+
}
|
|
970
|
+
return !0;
|
|
971
|
+
}
|
|
972
|
+
move(e, t) {
|
|
973
|
+
if (t && this.enterChild(
|
|
974
|
+
e,
|
|
975
|
+
0,
|
|
976
|
+
4
|
|
977
|
+
/* Side.DontCare */
|
|
978
|
+
))
|
|
979
|
+
return !0;
|
|
980
|
+
for (; ; ) {
|
|
981
|
+
if (this.sibling(e))
|
|
982
|
+
return !0;
|
|
983
|
+
if (this.atLastNode(e) || !this.parent())
|
|
984
|
+
return !1;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
Move to the next node in a
|
|
989
|
+
[pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR)
|
|
990
|
+
traversal, going from a node to its first child or, if the
|
|
991
|
+
current node is empty or `enter` is false, its next sibling or
|
|
992
|
+
the next sibling of the first parent node that has one.
|
|
993
|
+
*/
|
|
994
|
+
next(e = !0) {
|
|
995
|
+
return this.move(1, e);
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
Move to the next node in a last-to-first pre-order traversal. A
|
|
999
|
+
node is followed by its last child or, if it has none, its
|
|
1000
|
+
previous sibling or the previous sibling of the first parent
|
|
1001
|
+
node that has one.
|
|
1002
|
+
*/
|
|
1003
|
+
prev(e = !0) {
|
|
1004
|
+
return this.move(-1, e);
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
Move the cursor to the innermost node that covers `pos`. If
|
|
1008
|
+
`side` is -1, it will enter nodes that end at `pos`. If it is 1,
|
|
1009
|
+
it will enter nodes that start at `pos`.
|
|
1010
|
+
*/
|
|
1011
|
+
moveTo(e, t = 0) {
|
|
1012
|
+
for (; (this.from == this.to || (t < 1 ? this.from >= e : this.from > e) || (t > -1 ? this.to <= e : this.to < e)) && this.parent(); )
|
|
1013
|
+
;
|
|
1014
|
+
for (; this.enterChild(1, e, t); )
|
|
1015
|
+
;
|
|
1016
|
+
return this;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
Get a [syntax node](#common.SyntaxNode) at the cursor's current
|
|
1020
|
+
position.
|
|
1021
|
+
*/
|
|
1022
|
+
get node() {
|
|
1023
|
+
if (!this.buffer)
|
|
1024
|
+
return this._tree;
|
|
1025
|
+
let e = this.bufferNode, t = null, r = 0;
|
|
1026
|
+
if (e && e.context == this.buffer)
|
|
1027
|
+
e: for (let i = this.index, n = this.stack.length; n >= 0; ) {
|
|
1028
|
+
for (let s = e; s; s = s._parent)
|
|
1029
|
+
if (s.index == i) {
|
|
1030
|
+
if (i == this.index)
|
|
1031
|
+
return s;
|
|
1032
|
+
t = s, r = n + 1;
|
|
1033
|
+
break e;
|
|
1034
|
+
}
|
|
1035
|
+
i = this.stack[--n];
|
|
1036
|
+
}
|
|
1037
|
+
for (let i = r; i < this.stack.length; i++)
|
|
1038
|
+
t = new O(this.buffer, t, this.stack[i]);
|
|
1039
|
+
return this.bufferNode = new O(this.buffer, t, this.index);
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
Get the [tree](#common.Tree) that represents the current node, if
|
|
1043
|
+
any. Will return null when the node is in a [tree
|
|
1044
|
+
buffer](#common.TreeBuffer).
|
|
1045
|
+
*/
|
|
1046
|
+
get tree() {
|
|
1047
|
+
return this.buffer ? null : this._tree._tree;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
Iterate over the current node and all its descendants, calling
|
|
1051
|
+
`enter` when entering a node and `leave`, if given, when leaving
|
|
1052
|
+
one. When `enter` returns `false`, any children of that node are
|
|
1053
|
+
skipped, and `leave` isn't called for it.
|
|
1054
|
+
*/
|
|
1055
|
+
iterate(e, t) {
|
|
1056
|
+
for (let r = 0; ; ) {
|
|
1057
|
+
let i = !1;
|
|
1058
|
+
if (this.type.isAnonymous || e(this) !== !1) {
|
|
1059
|
+
if (this.firstChild()) {
|
|
1060
|
+
r++;
|
|
1061
|
+
continue;
|
|
1062
|
+
}
|
|
1063
|
+
this.type.isAnonymous || (i = !0);
|
|
1064
|
+
}
|
|
1065
|
+
for (; ; ) {
|
|
1066
|
+
if (i && t && t(this), i = this.type.isAnonymous, !r)
|
|
1067
|
+
return;
|
|
1068
|
+
if (this.nextSibling())
|
|
1069
|
+
break;
|
|
1070
|
+
this.parent(), r--, i = !0;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
Test whether the current node matches a given context—a sequence
|
|
1076
|
+
of direct parent node names. Empty strings in the context array
|
|
1077
|
+
are treated as wildcards.
|
|
1078
|
+
*/
|
|
1079
|
+
matchContext(e) {
|
|
1080
|
+
if (!this.buffer)
|
|
1081
|
+
return ee(this.node.parent, e);
|
|
1082
|
+
let { buffer: t } = this.buffer, { types: r } = t.set;
|
|
1083
|
+
for (let i = e.length - 1, n = this.stack.length - 1; i >= 0; n--) {
|
|
1084
|
+
if (n < 0)
|
|
1085
|
+
return ee(this._tree, e, i);
|
|
1086
|
+
let s = r[t.buffer[this.stack[n]]];
|
|
1087
|
+
if (!s.isAnonymous) {
|
|
1088
|
+
if (e[i] && e[i] != s.name)
|
|
1089
|
+
return !1;
|
|
1090
|
+
i--;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
return !0;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
function ne(l) {
|
|
1097
|
+
return l.children.some((e) => e instanceof M || !e.type.isAnonymous || ne(e));
|
|
1098
|
+
}
|
|
1099
|
+
function we(l) {
|
|
1100
|
+
var e;
|
|
1101
|
+
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, o = r.types, C = 0, p = 0;
|
|
1102
|
+
function w(c, x, f, y, d, m) {
|
|
1103
|
+
let { id: a, start: u, end: g, size: b } = h, v = p, W = C;
|
|
1104
|
+
if (b < 0)
|
|
1105
|
+
if (h.next(), b == -1) {
|
|
1106
|
+
let R = n[a];
|
|
1107
|
+
f.push(R), y.push(u - c);
|
|
1108
|
+
return;
|
|
1109
|
+
} else if (b == -3) {
|
|
1110
|
+
C = a;
|
|
1111
|
+
return;
|
|
1112
|
+
} else if (b == -4) {
|
|
1113
|
+
p = a;
|
|
1114
|
+
return;
|
|
1115
|
+
} else
|
|
1116
|
+
throw new RangeError(`Unrecognized record size: ${b}`);
|
|
1117
|
+
let J = o[a], q, D, le = u - c;
|
|
1118
|
+
if (g - u <= i && (D = Y(h.pos - x, d))) {
|
|
1119
|
+
let R = new Uint16Array(D.size - D.skip), I = h.pos - D.size, E = R.length;
|
|
1120
|
+
for (; h.pos > I; )
|
|
1121
|
+
E = G(D.start, R, E);
|
|
1122
|
+
q = new M(R, g - D.start, r), le = D.start - c;
|
|
1123
|
+
} else {
|
|
1124
|
+
let R = h.pos - b;
|
|
1125
|
+
h.next();
|
|
1126
|
+
let I = [], E = [], F = a >= s ? a : -1, H = 0, K = g;
|
|
1127
|
+
for (; h.pos > R; )
|
|
1128
|
+
F >= 0 && h.id == F && h.size >= 0 ? (h.end <= K - i && (S(I, E, u, H, h.end, K, F, v, W), H = I.length, K = h.end), h.next()) : m > 2500 ? A(u, R, I, E) : w(u, R, I, E, F, m + 1);
|
|
1129
|
+
if (F >= 0 && H > 0 && H < I.length && S(I, E, u, H, u, K, F, v, W), I.reverse(), E.reverse(), F > -1 && H > 0) {
|
|
1130
|
+
let he = N(J, W);
|
|
1131
|
+
q = se(J, I, E, 0, I.length, 0, g - u, he, he);
|
|
1132
|
+
} else
|
|
1133
|
+
q = L(J, I, E, g - u, v - g, W);
|
|
1134
|
+
}
|
|
1135
|
+
f.push(q), y.push(le);
|
|
1136
|
+
}
|
|
1137
|
+
function A(c, x, f, y) {
|
|
1138
|
+
let d = [], m = 0, a = -1;
|
|
1139
|
+
for (; h.pos > x; ) {
|
|
1140
|
+
let { id: u, start: g, end: b, size: v } = h;
|
|
1141
|
+
if (v > 4)
|
|
1142
|
+
h.next();
|
|
1143
|
+
else {
|
|
1144
|
+
if (a > -1 && g < a)
|
|
1145
|
+
break;
|
|
1146
|
+
a < 0 && (a = b - i), d.push(u, g, b), m++, h.next();
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
if (m) {
|
|
1150
|
+
let u = new Uint16Array(m * 4), g = d[d.length - 2];
|
|
1151
|
+
for (let b = d.length - 3, v = 0; b >= 0; b -= 3)
|
|
1152
|
+
u[v++] = d[b], u[v++] = d[b + 1] - g, u[v++] = d[b + 2] - g, u[v++] = v;
|
|
1153
|
+
f.push(new M(u, d[2] - g, r)), y.push(g - c);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
function N(c, x) {
|
|
1157
|
+
return (f, y, d) => {
|
|
1158
|
+
let m = 0, a = f.length - 1, u, g;
|
|
1159
|
+
if (a >= 0 && (u = f[a]) instanceof P) {
|
|
1160
|
+
if (!a && u.type == c && u.length == d)
|
|
1161
|
+
return u;
|
|
1162
|
+
(g = u.prop(k.lookAhead)) && (m = y[a] + u.length + g);
|
|
1163
|
+
}
|
|
1164
|
+
return L(c, f, y, d, m, x);
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
function S(c, x, f, y, d, m, a, u, g) {
|
|
1168
|
+
let b = [], v = [];
|
|
1169
|
+
for (; c.length > y; )
|
|
1170
|
+
b.push(c.pop()), v.push(x.pop() + f - d);
|
|
1171
|
+
c.push(L(r.types[a], b, v, m - d, u - m, g)), x.push(d - f);
|
|
1172
|
+
}
|
|
1173
|
+
function L(c, x, f, y, d, m, a) {
|
|
1174
|
+
if (m) {
|
|
1175
|
+
let u = [k.contextHash, m];
|
|
1176
|
+
a = a ? [u].concat(a) : [u];
|
|
1177
|
+
}
|
|
1178
|
+
if (d > 25) {
|
|
1179
|
+
let u = [k.lookAhead, d];
|
|
1180
|
+
a = a ? [u].concat(a) : [u];
|
|
1181
|
+
}
|
|
1182
|
+
return new P(c, x, f, y, a);
|
|
1183
|
+
}
|
|
1184
|
+
function Y(c, x) {
|
|
1185
|
+
let f = h.fork(), y = 0, d = 0, m = 0, a = f.end - i, u = { size: 0, start: 0, skip: 0 };
|
|
1186
|
+
e: for (let g = f.pos - c; f.pos > g; ) {
|
|
1187
|
+
let b = f.size;
|
|
1188
|
+
if (f.id == x && b >= 0) {
|
|
1189
|
+
u.size = y, u.start = d, u.skip = m, m += 4, y += 4, f.next();
|
|
1190
|
+
continue;
|
|
1191
|
+
}
|
|
1192
|
+
let v = f.pos - b;
|
|
1193
|
+
if (b < 0 || v < g || f.start < a)
|
|
1194
|
+
break;
|
|
1195
|
+
let W = f.id >= s ? 4 : 0, J = f.start;
|
|
1196
|
+
for (f.next(); f.pos > v; ) {
|
|
1197
|
+
if (f.size < 0)
|
|
1198
|
+
if (f.size == -3 || f.size == -4)
|
|
1199
|
+
W += 4;
|
|
1200
|
+
else
|
|
1201
|
+
break e;
|
|
1202
|
+
else f.id >= s && (W += 4);
|
|
1203
|
+
f.next();
|
|
1204
|
+
}
|
|
1205
|
+
d = J, y += b, m += W;
|
|
1206
|
+
}
|
|
1207
|
+
return (x < 0 || y == c) && (u.size = y, u.start = d, u.skip = m), u.size > 4 ? u : void 0;
|
|
1208
|
+
}
|
|
1209
|
+
function G(c, x, f) {
|
|
1210
|
+
let { id: y, start: d, end: m, size: a } = h;
|
|
1211
|
+
if (h.next(), a >= 0 && y < s) {
|
|
1212
|
+
let u = f;
|
|
1213
|
+
if (a > 4) {
|
|
1214
|
+
let g = h.pos - (a - 4);
|
|
1215
|
+
for (; h.pos > g; )
|
|
1216
|
+
f = G(c, x, f);
|
|
1217
|
+
}
|
|
1218
|
+
x[--f] = u, x[--f] = m - c, x[--f] = d - c, x[--f] = y;
|
|
1219
|
+
} else a == -3 ? C = y : a == -4 && (p = y);
|
|
1220
|
+
return f;
|
|
1221
|
+
}
|
|
1222
|
+
let T = [], B = [];
|
|
1223
|
+
for (; h.pos > 0; )
|
|
1224
|
+
w(l.start || 0, l.bufferStart || 0, T, B, -1, 0);
|
|
1225
|
+
let U = (e = l.length) !== null && e !== void 0 ? e : T.length ? B[0] + T[0].length : 0;
|
|
1226
|
+
return new P(o[l.topID], T.reverse(), B.reverse(), U);
|
|
1227
|
+
}
|
|
1228
|
+
const oe = /* @__PURE__ */ new WeakMap();
|
|
1229
|
+
function X(l, e) {
|
|
1230
|
+
if (!l.isAnonymous || e instanceof M || e.type != l)
|
|
1231
|
+
return 1;
|
|
1232
|
+
let t = oe.get(e);
|
|
1233
|
+
if (t == null) {
|
|
1234
|
+
t = 1;
|
|
1235
|
+
for (let r of e.children) {
|
|
1236
|
+
if (r.type != l || !(r instanceof P)) {
|
|
1237
|
+
t = 1;
|
|
1238
|
+
break;
|
|
1239
|
+
}
|
|
1240
|
+
t += X(l, r);
|
|
1241
|
+
}
|
|
1242
|
+
oe.set(e, t);
|
|
1243
|
+
}
|
|
1244
|
+
return t;
|
|
1245
|
+
}
|
|
1246
|
+
function se(l, e, t, r, i, n, s, h, o) {
|
|
1247
|
+
let C = 0;
|
|
1248
|
+
for (let S = r; S < i; S++)
|
|
1249
|
+
C += X(l, e[S]);
|
|
1250
|
+
let p = Math.ceil(
|
|
1251
|
+
C * 1.5 / 8
|
|
1252
|
+
/* Balance.BranchFactor */
|
|
1253
|
+
), w = [], A = [];
|
|
1254
|
+
function N(S, L, Y, G, T) {
|
|
1255
|
+
for (let B = Y; B < G; ) {
|
|
1256
|
+
let U = B, c = L[B], x = X(l, S[B]);
|
|
1257
|
+
for (B++; B < G; B++) {
|
|
1258
|
+
let f = X(l, S[B]);
|
|
1259
|
+
if (x + f >= p)
|
|
1260
|
+
break;
|
|
1261
|
+
x += f;
|
|
1262
|
+
}
|
|
1263
|
+
if (B == U + 1) {
|
|
1264
|
+
if (x > p) {
|
|
1265
|
+
let f = S[U];
|
|
1266
|
+
N(f.children, f.positions, 0, f.children.length, L[U] + T);
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
w.push(S[U]);
|
|
1270
|
+
} else {
|
|
1271
|
+
let f = L[B - 1] + S[B - 1].length - c;
|
|
1272
|
+
w.push(se(l, S, L, U, B, c, f, null, o));
|
|
1273
|
+
}
|
|
1274
|
+
A.push(c + T - n);
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
return N(e, t, r, i, 0), (h || o)(w, A, s);
|
|
1278
|
+
}
|
|
1279
|
+
class Se {
|
|
1280
|
+
constructor() {
|
|
1281
|
+
this.map = /* @__PURE__ */ new WeakMap();
|
|
1282
|
+
}
|
|
1283
|
+
setBuffer(e, t, r) {
|
|
1284
|
+
let i = this.map.get(e);
|
|
1285
|
+
i || this.map.set(e, i = /* @__PURE__ */ new Map()), i.set(t, r);
|
|
1286
|
+
}
|
|
1287
|
+
getBuffer(e, t) {
|
|
1288
|
+
let r = this.map.get(e);
|
|
1289
|
+
return r && r.get(t);
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
Set the value for this syntax node.
|
|
1293
|
+
*/
|
|
1294
|
+
set(e, t) {
|
|
1295
|
+
e instanceof O ? this.setBuffer(e.context.buffer, e.index, t) : e instanceof z && this.map.set(e.tree, t);
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
Retrieve value for this syntax node, if it exists in the map.
|
|
1299
|
+
*/
|
|
1300
|
+
get(e) {
|
|
1301
|
+
return e instanceof O ? this.getBuffer(e.context.buffer, e.index) : e instanceof z ? this.map.get(e.tree) : void 0;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
Set the value for the node that a cursor currently points to.
|
|
1305
|
+
*/
|
|
1306
|
+
cursorSet(e, t) {
|
|
1307
|
+
e.buffer ? this.setBuffer(e.buffer.buffer, e.index, t) : this.map.set(e.tree, t);
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
Retrieve the value for the node that a cursor currently points
|
|
1311
|
+
to.
|
|
1312
|
+
*/
|
|
1313
|
+
cursorGet(e) {
|
|
1314
|
+
return e.buffer ? this.getBuffer(e.buffer.buffer, e.index) : this.map.get(e.tree);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
class re {
|
|
1318
|
+
/**
|
|
1319
|
+
Construct a tree fragment. You'll usually want to use
|
|
1320
|
+
[`addTree`](#common.TreeFragment^addTree) and
|
|
1321
|
+
[`applyChanges`](#common.TreeFragment^applyChanges) instead of
|
|
1322
|
+
calling this directly.
|
|
1323
|
+
*/
|
|
1324
|
+
constructor(e, t, r, i, n = !1, s = !1) {
|
|
1325
|
+
this.from = e, this.to = t, this.tree = r, this.offset = i, this.open = (n ? 1 : 0) | (s ? 2 : 0);
|
|
1326
|
+
}
|
|
1327
|
+
/**
|
|
1328
|
+
Whether the start of the fragment represents the start of a
|
|
1329
|
+
parse, or the end of a change. (In the second case, it may not
|
|
1330
|
+
be safe to reuse some nodes at the start, depending on the
|
|
1331
|
+
parsing algorithm.)
|
|
1332
|
+
*/
|
|
1333
|
+
get openStart() {
|
|
1334
|
+
return (this.open & 1) > 0;
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
Whether the end of the fragment represents the end of a
|
|
1338
|
+
full-document parse, or the start of a change.
|
|
1339
|
+
*/
|
|
1340
|
+
get openEnd() {
|
|
1341
|
+
return (this.open & 2) > 0;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
Create a set of fragments from a freshly parsed tree, or update
|
|
1345
|
+
an existing set of fragments by replacing the ones that overlap
|
|
1346
|
+
with a tree with content from the new tree. When `partial` is
|
|
1347
|
+
true, the parse is treated as incomplete, and the resulting
|
|
1348
|
+
fragment has [`openEnd`](#common.TreeFragment.openEnd) set to
|
|
1349
|
+
true.
|
|
1350
|
+
*/
|
|
1351
|
+
static addTree(e, t = [], r = !1) {
|
|
1352
|
+
let i = [new re(0, e.length, e, 0, !1, r)];
|
|
1353
|
+
for (let n of t)
|
|
1354
|
+
n.to > e.length && i.push(n);
|
|
1355
|
+
return i;
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
Apply a set of edits to an array of fragments, removing or
|
|
1359
|
+
splitting fragments as necessary to remove edited ranges, and
|
|
1360
|
+
adjusting offsets for fragments that moved.
|
|
1361
|
+
*/
|
|
1362
|
+
static applyChanges(e, t, r = 128) {
|
|
1363
|
+
if (!t.length)
|
|
1364
|
+
return e;
|
|
1365
|
+
let i = [], n = 1, s = e.length ? e[0] : null;
|
|
1366
|
+
for (let h = 0, o = 0, C = 0; ; h++) {
|
|
1367
|
+
let p = h < t.length ? t[h] : null, w = p ? p.fromA : 1e9;
|
|
1368
|
+
if (w - o >= r)
|
|
1369
|
+
for (; s && s.from < w; ) {
|
|
1370
|
+
let A = s;
|
|
1371
|
+
if (o >= A.from || w <= A.to || C) {
|
|
1372
|
+
let N = Math.max(A.from, o) - C, S = Math.min(A.to, w) - C;
|
|
1373
|
+
A = N >= S ? null : new re(N, S, A.tree, A.offset + C, h > 0, !!p);
|
|
1374
|
+
}
|
|
1375
|
+
if (A && i.push(A), s.to > w)
|
|
1376
|
+
break;
|
|
1377
|
+
s = n < e.length ? e[n++] : null;
|
|
1378
|
+
}
|
|
1379
|
+
if (!p)
|
|
1380
|
+
break;
|
|
1381
|
+
o = p.toA, C = p.toA - p.toB;
|
|
1382
|
+
}
|
|
1383
|
+
return i;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
class _e {
|
|
1387
|
+
/**
|
|
1388
|
+
Start a parse, returning a [partial parse](#common.PartialParse)
|
|
1389
|
+
object. [`fragments`](#common.TreeFragment) can be passed in to
|
|
1390
|
+
make the parse incremental.
|
|
1391
|
+
|
|
1392
|
+
By default, the entire input is parsed. You can pass `ranges`,
|
|
1393
|
+
which should be a sorted array of non-empty, non-overlapping
|
|
1394
|
+
ranges, to parse only those ranges. The tree returned in that
|
|
1395
|
+
case will start at `ranges[0].from`.
|
|
1396
|
+
*/
|
|
1397
|
+
startParse(e, t, r) {
|
|
1398
|
+
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);
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
Run a full parse, returning the resulting tree.
|
|
1402
|
+
*/
|
|
1403
|
+
parse(e, t, r) {
|
|
1404
|
+
let i = this.startParse(e, t, r);
|
|
1405
|
+
for (; ; ) {
|
|
1406
|
+
let n = i.advance();
|
|
1407
|
+
if (n)
|
|
1408
|
+
return n;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
class ke {
|
|
1413
|
+
constructor(e) {
|
|
1414
|
+
this.string = e;
|
|
1415
|
+
}
|
|
1416
|
+
get length() {
|
|
1417
|
+
return this.string.length;
|
|
1418
|
+
}
|
|
1419
|
+
chunk(e) {
|
|
1420
|
+
return this.string.slice(e);
|
|
1421
|
+
}
|
|
1422
|
+
get lineChunks() {
|
|
1423
|
+
return !1;
|
|
1424
|
+
}
|
|
1425
|
+
read(e, t) {
|
|
1426
|
+
return this.string.slice(e, t);
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
new k({ perNode: !0 });
|
|
1430
|
+
export {
|
|
1431
|
+
Ce as DefaultBufferLength,
|
|
1432
|
+
_ as IterMode,
|
|
1433
|
+
V as MountedTree,
|
|
1434
|
+
k as NodeProp,
|
|
1435
|
+
ae as NodeSet,
|
|
1436
|
+
j as NodeType,
|
|
1437
|
+
Se as NodeWeakMap,
|
|
1438
|
+
_e as Parser,
|
|
1439
|
+
P as Tree,
|
|
1440
|
+
M as TreeBuffer,
|
|
1441
|
+
te as TreeCursor,
|
|
1442
|
+
re as TreeFragment
|
|
1443
|
+
};
|