@gsc-basic/components 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1097) hide show
  1. package/README.md +8 -8
  2. package/dist/es/Button/index.js +9 -4
  3. package/dist/es/Button/src/Button.css +3 -3
  4. package/dist/es/Button/src/Button.vue.js +44 -4
  5. package/dist/es/Button/src/Button2.css +3 -3
  6. package/dist/es/CodeEditor/index.js +9 -4
  7. package/dist/es/CodeEditor/src/index.css +4 -4
  8. package/dist/es/CodeEditor/src/index.vue.js +148 -4
  9. package/dist/es/CodeEditor/src/index2.css +3 -3
  10. package/dist/es/CodeEditor/src/index3.css +4 -4
  11. package/dist/es/ConfigProvider/index.js +9 -4
  12. package/dist/es/ConfigProvider/src/configProvider.js +17 -4
  13. package/dist/es/ConfigProvider/src/configProviderProps.js +25 -4
  14. package/dist/es/ConfigProvider/src/constants.js +12 -4
  15. package/dist/es/ConfigProvider/src/useGlobalConfig.js +48 -4
  16. package/dist/es/CountTo/index.js +9 -4
  17. package/dist/es/CountTo/src/index.css +3 -3
  18. package/dist/es/CountTo/src/index.vue.js +126 -4
  19. package/dist/es/Ellipsis/index.js +9 -4
  20. package/dist/es/Ellipsis/src/components/JsEllipsis.css +3 -3
  21. package/dist/es/Ellipsis/src/components/JsEllipsis.vue.js +181 -4
  22. package/dist/es/Ellipsis/src/components/NativeEllipsis.css +3 -3
  23. package/dist/es/Ellipsis/src/components/NativeEllipsis.vue.js +44 -4
  24. package/dist/es/Ellipsis/src/components/NativeEllipsis2.css +3 -3
  25. package/dist/es/Ellipsis/src/index.css +3 -3
  26. package/dist/es/Ellipsis/src/index.vue.js +96 -4
  27. package/dist/es/Ellipsis/src/utils/utils.js +59 -4
  28. package/dist/es/Form/index.js +9 -4
  29. package/dist/es/Form/src/Form.css +3 -3
  30. package/dist/es/Form/src/Form.vue.js +377 -4
  31. package/dist/es/Form/src/Form2.css +3 -3
  32. package/dist/es/Form/src/styles/form.css +3 -3
  33. package/dist/es/Marquee/index.js +9 -4
  34. package/dist/es/Marquee/src/index.css +3 -3
  35. package/dist/es/Marquee/src/index.vue.js +191 -4
  36. package/dist/es/Marquee/src/index2.css +3 -3
  37. package/dist/es/Overlay/index.js +64 -4
  38. package/dist/es/Overlay/src/Message.css +3 -3
  39. package/dist/es/Overlay/src/Message.vue.js +39 -4
  40. package/dist/es/Overlay/src/Message2.css +3 -3
  41. package/dist/es/Overlay/src/Modal.css +3 -3
  42. package/dist/es/Overlay/src/Modal.vue.js +70 -4
  43. package/dist/es/Overlay/src/Modal2.css +3 -3
  44. package/dist/es/Overlay/src/Notice.css +3 -3
  45. package/dist/es/Overlay/src/Notice.vue.js +40 -4
  46. package/dist/es/Overlay/src/Notice2.css +3 -3
  47. package/dist/es/Overlay/src/Tooltip.css +3 -3
  48. package/dist/es/Overlay/src/Tooltip.vue.js +87 -4
  49. package/dist/es/Overlay/src/Tooltip2.css +3 -3
  50. package/dist/es/RichTextEditor/index.js +9 -4
  51. package/dist/es/RichTextEditor/src/ToolbarPanel.css +3 -3
  52. package/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +162 -4
  53. package/dist/es/RichTextEditor/src/ToolbarPanel2.css +3 -3
  54. package/dist/es/RichTextEditor/src/components/BlockquoteButton.css +4 -4
  55. package/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +40 -4
  56. package/dist/es/RichTextEditor/src/components/CodeBlockButton.css +4 -4
  57. package/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +40 -4
  58. package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
  59. package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +40 -4
  60. package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
  61. package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +58 -4
  62. package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
  63. package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +69 -4
  64. package/dist/es/RichTextEditor/src/components/ImageUploadButton.css +4 -4
  65. package/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +74 -4
  66. package/dist/es/RichTextEditor/src/components/LinkPopover.css +4 -4
  67. package/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +92 -4
  68. package/dist/es/RichTextEditor/src/components/LinkPopover2.css +4 -4
  69. package/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
  70. package/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +76 -4
  71. package/dist/es/RichTextEditor/src/components/MarkButton.css +4 -4
  72. package/dist/es/RichTextEditor/src/components/MarkButton.vue.js +89 -4
  73. package/dist/es/RichTextEditor/src/components/TableButton.css +3 -3
  74. package/dist/es/RichTextEditor/src/components/TableButton.vue.js +165 -4
  75. package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
  76. package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +85 -4
  77. package/dist/es/RichTextEditor/src/components/TextColorPopover.css +3 -3
  78. package/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +40 -4
  79. package/dist/es/RichTextEditor/src/components/ToolbarGroup.css +3 -3
  80. package/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +19 -4
  81. package/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
  82. package/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +17 -4
  83. package/dist/es/RichTextEditor/src/components/UndoRedoButton.css +4 -4
  84. package/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +54 -4
  85. package/dist/es/RichTextEditor/src/components/VideoUploadButton.css +4 -4
  86. package/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +74 -4
  87. package/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
  88. package/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +101 -4
  89. package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
  90. package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +364 -4
  91. package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
  92. package/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
  93. package/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +137 -4
  94. package/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
  95. package/dist/es/RichTextEditor/src/constant/index.js +53 -4
  96. package/dist/es/RichTextEditor/src/extensions/video.js +68 -4
  97. package/dist/es/RichTextEditor/src/index.css +4 -4
  98. package/dist/es/RichTextEditor/src/index.vue.js +158 -4
  99. package/dist/es/RichTextEditor/src/index2.css +4 -4
  100. package/dist/es/RichTextEditor/src/props.js +24 -4
  101. package/dist/es/ScaleScreen/index.js +9 -4
  102. package/dist/es/ScaleScreen/src/index.css +3 -3
  103. package/dist/es/ScaleScreen/src/index.vue.js +118 -4
  104. package/dist/es/ScaleScreen/src/index2.css +3 -3
  105. package/dist/es/Transition/index.js +30 -4
  106. package/dist/es/Transition/src/CollapseTransition.css +3 -3
  107. package/dist/es/Transition/src/CollapseTransition.vue.js +44 -4
  108. package/dist/es/Transition/src/CollapseTransition2.css +3 -3
  109. package/dist/es/Transition/src/CreateTransition.js +75 -6
  110. package/dist/es/Transition/src/ExpandTransition.js +42 -4
  111. package/dist/es/Transition/src/style/index.css +3 -3
  112. package/dist/es/Transition/style.js +4 -4
  113. package/dist/es/VideoBackground/index.js +9 -4
  114. package/dist/es/VideoBackground/src/helper.js +32 -4
  115. package/dist/es/VideoBackground/src/index.css +3 -3
  116. package/dist/es/VideoBackground/src/index.vue.js +111 -4
  117. package/dist/es/VideoBackground/src/index2.css +3 -3
  118. package/dist/es/VideoBackground/src/index3.css +3 -3
  119. package/dist/es/VideoBackground/src/videoBackground.js +34 -4
  120. package/dist/es/VideoPlayer/index.js +9 -4
  121. package/dist/es/VideoPlayer/src/index.css +3 -3
  122. package/dist/es/VideoPlayer/src/index.vue.js +63 -4
  123. package/dist/es/VirtualScroll/index.js +9 -4
  124. package/dist/es/VirtualScroll/src/index.css +3 -3
  125. package/dist/es/VirtualScroll/src/index.vue.js +11 -4
  126. package/dist/es/VirtualScroll/src/index.vue2.js +107 -4
  127. package/dist/es/VirtualScroll/src/index2.css +3 -3
  128. package/dist/es/_virtual/_commonjsHelpers.js +9 -4
  129. package/dist/es/_virtual/_plugin-vue_export-helper.js +12 -4
  130. package/dist/es/_virtual/delegate.js +10 -4
  131. package/dist/es/_virtual/download.js +10 -4
  132. package/dist/es/_virtual/download2.js +7 -4
  133. package/dist/es/_virtual/index.js +5 -4
  134. package/dist/es/_virtual/index2.js +7 -4
  135. package/dist/es/_virtual/index3.js +21 -0
  136. package/dist/es/{Grid/src/components/CellEditor.css → _virtual/index4.js} +7 -4
  137. package/dist/es/hooks/useLocale.js +28 -4
  138. package/dist/es/hooks/useNamespace.js +11 -4
  139. package/dist/es/index.js +79 -4
  140. package/dist/es/locale/lang/en-US.js +167 -4
  141. package/dist/es/locale/lang/ja-JP.js +167 -4
  142. package/dist/es/locale/lang/zh-CN.js +167 -4
  143. package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1379 -4
  144. package/dist/es/node_modules/@codemirror/commands/dist/index.js +847 -4
  145. package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +41 -6
  146. package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +315 -20
  147. package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +51 -6
  148. package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +402 -15
  149. package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +500 -7
  150. package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +219 -7
  151. package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +54 -6
  152. package/dist/es/node_modules/@codemirror/language/dist/index.js +1304 -4
  153. package/dist/es/node_modules/@codemirror/lint/dist/index.js +660 -6
  154. package/dist/es/node_modules/@codemirror/search/dist/index.js +842 -5
  155. package/dist/es/node_modules/@codemirror/state/dist/index.js +2646 -4
  156. package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +135 -4
  157. package/dist/es/node_modules/@codemirror/view/dist/index.js +7492 -4
  158. package/dist/es/node_modules/@lezer/common/dist/index.js +1433 -5
  159. package/dist/es/node_modules/@lezer/highlight/dist/index.js +640 -4
  160. package/dist/es/node_modules/@lezer/java/dist/index.js +65 -4
  161. package/dist/es/node_modules/@lezer/javascript/dist/index.js +164 -4
  162. package/dist/es/node_modules/@lezer/json/dist/index.js +37 -4
  163. package/dist/es/node_modules/@lezer/lr/dist/index.js +1312 -4
  164. package/dist/es/node_modules/@lezer/python/dist/index.js +224 -4
  165. package/dist/es/node_modules/@lezer/xml/dist/index.js +103 -4
  166. package/dist/es/node_modules/@lezer/yaml/dist/index.js +277 -4
  167. package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +72 -4
  168. package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +181 -4
  169. package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +16 -4
  170. package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +409 -4
  171. package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +792 -4
  172. package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +58 -4
  173. package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +112 -5
  174. package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +48 -4
  175. package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +216 -4
  176. package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +32 -4
  177. package/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +221 -0
  178. package/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +136 -0
  179. package/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +25 -0
  180. package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +47 -4
  181. package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +41 -4
  182. package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +36 -4
  183. package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +51 -4
  184. package/dist/es/node_modules/@tiptap/core/dist/index.js +3984 -4
  185. package/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +20 -4
  186. package/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +60 -5
  187. package/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +82 -5
  188. package/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +9 -4
  189. package/dist/es/node_modules/@tiptap/extension-code/dist/index.js +57 -4
  190. package/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +220 -4
  191. package/dist/es/node_modules/@tiptap/extension-document/dist/index.js +15 -4
  192. package/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +62 -4
  193. package/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +66 -4
  194. package/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +88 -4
  195. package/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -4
  196. package/dist/es/node_modules/@tiptap/extension-image/dist/index.js +133 -4
  197. package/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +80 -4
  198. package/dist/es/node_modules/@tiptap/extension-link/dist/index.js +316 -4
  199. package/dist/es/node_modules/@tiptap/extension-list/dist/index.js +731 -4
  200. package/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +47 -4
  201. package/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +69 -4
  202. package/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +44 -4
  203. package/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +44 -4
  204. package/dist/es/node_modules/@tiptap/extension-table/dist/index.js +383 -4
  205. package/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +9 -4
  206. package/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +9 -4
  207. package/dist/es/node_modules/@tiptap/extension-text/dist/index.js +16 -4
  208. package/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +50 -4
  209. package/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +243 -4
  210. package/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +68 -4
  211. package/dist/es/node_modules/@tiptap/extensions/dist/index.js +299 -4
  212. package/dist/es/node_modules/@tiptap/html/dist/index.js +28 -0
  213. package/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +32 -4
  214. package/dist/es/node_modules/@tiptap/vue-3/dist/index.js +260 -4
  215. package/dist/es/node_modules/@vueuse/core/dist/index.js +354 -4
  216. package/dist/es/node_modules/@vueuse/shared/dist/index.js +139 -4
  217. package/dist/es/node_modules/codemirror/dist/index.js +43 -4
  218. package/dist/es/node_modules/crelt/index.js +30 -4
  219. package/dist/es/node_modules/delegate/src/closest.js +24 -4
  220. package/dist/es/node_modules/delegate/src/delegate.js +32 -4
  221. package/dist/es/node_modules/downloadjs/download.js +80 -4
  222. package/dist/es/node_modules/eventemitter3/index.js +114 -4
  223. package/dist/es/node_modules/linkifyjs/dist/linkify.js +710 -4
  224. package/dist/es/node_modules/lodash-es/_DataView.js +9 -4
  225. package/dist/es/node_modules/lodash-es/_Hash.js +23 -4
  226. package/dist/es/node_modules/lodash-es/_ListCache.js +23 -4
  227. package/dist/es/node_modules/lodash-es/_Map.js +9 -4
  228. package/dist/es/node_modules/lodash-es/_MapCache.js +23 -4
  229. package/dist/es/node_modules/lodash-es/_Promise.js +9 -4
  230. package/dist/es/node_modules/lodash-es/_Set.js +9 -4
  231. package/dist/es/node_modules/lodash-es/_SetCache.js +26 -0
  232. package/dist/es/node_modules/lodash-es/_Stack.js +21 -4
  233. package/dist/es/node_modules/lodash-es/_Symbol.js +8 -4
  234. package/dist/es/node_modules/lodash-es/_Uint8Array.js +8 -4
  235. package/dist/es/node_modules/lodash-es/_WeakMap.js +9 -4
  236. package/dist/es/node_modules/lodash-es/_apply.js +19 -4
  237. package/dist/es/node_modules/lodash-es/_arrayEach.js +11 -4
  238. package/dist/es/node_modules/lodash-es/_arrayFilter.js +13 -4
  239. package/dist/es/node_modules/lodash-es/_arrayIncludes.js +21 -0
  240. package/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
  241. package/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +23 -4
  242. package/dist/es/node_modules/lodash-es/_arrayMap.js +11 -4
  243. package/dist/es/node_modules/lodash-es/_arrayPush.js +11 -4
  244. package/dist/es/node_modules/lodash-es/_arraySome.js +22 -0
  245. package/dist/es/node_modules/lodash-es/_asciiToArray.js +9 -4
  246. package/dist/es/node_modules/lodash-es/_assignMergeValue.js +21 -0
  247. package/dist/es/node_modules/lodash-es/_assignValue.js +13 -4
  248. package/dist/es/node_modules/lodash-es/_assocIndexOf.js +13 -4
  249. package/dist/es/node_modules/lodash-es/_baseAssignValue.js +15 -4
  250. package/dist/es/node_modules/lodash-es/_baseClone.js +57 -4
  251. package/dist/es/node_modules/lodash-es/_baseCreate.js +30 -0
  252. package/dist/es/node_modules/lodash-es/_baseFindIndex.js +22 -0
  253. package/dist/es/node_modules/lodash-es/_baseFlatten.js +16 -4
  254. package/dist/es/node_modules/lodash-es/_baseFor.js +18 -0
  255. package/dist/es/node_modules/lodash-es/_baseGet.js +14 -4
  256. package/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +12 -4
  257. package/dist/es/node_modules/lodash-es/_baseGetTag.js +13 -4
  258. package/dist/es/node_modules/lodash-es/_baseIndexOf.js +22 -0
  259. package/dist/es/node_modules/lodash-es/_baseIntersection.js +42 -0
  260. package/dist/es/node_modules/lodash-es/_baseIsArguments.js +12 -4
  261. package/dist/es/node_modules/lodash-es/_baseIsEqual.js +21 -0
  262. package/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +45 -0
  263. package/dist/es/node_modules/lodash-es/_baseIsMap.js +12 -4
  264. package/dist/{lib/Grid/src/components/CellEditor.css → es/node_modules/lodash-es/_baseIsNaN.js} +9 -4
  265. package/dist/es/node_modules/lodash-es/_baseIsNative.js +19 -4
  266. package/dist/es/node_modules/lodash-es/_baseIsRegExp.js +12 -4
  267. package/dist/es/node_modules/lodash-es/_baseIsSet.js +12 -4
  268. package/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +15 -4
  269. package/dist/es/node_modules/lodash-es/_baseKeys.js +27 -0
  270. package/dist/es/node_modules/lodash-es/_baseKeysIn.js +18 -4
  271. package/dist/es/node_modules/lodash-es/_baseMerge.js +33 -0
  272. package/dist/es/node_modules/lodash-es/_baseMergeDeep.js +44 -0
  273. package/dist/es/node_modules/lodash-es/_baseRest.js +22 -0
  274. package/dist/es/node_modules/lodash-es/_baseSetToString.js +17 -4
  275. package/dist/es/node_modules/lodash-es/_baseSlice.js +13 -4
  276. package/dist/es/node_modules/lodash-es/_baseTimes.js +11 -4
  277. package/dist/es/node_modules/lodash-es/_baseToString.js +21 -4
  278. package/dist/es/node_modules/lodash-es/_baseUnary.js +11 -4
  279. package/dist/es/node_modules/lodash-es/_baseUniq.js +46 -0
  280. package/dist/es/node_modules/lodash-es/_baseUnset.js +31 -4
  281. package/dist/es/node_modules/{@tanstack/store/dist/esm/types.js → lodash-es/_cacheHas.js} +9 -4
  282. package/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +20 -0
  283. package/dist/es/node_modules/lodash-es/_castPath.js +13 -4
  284. package/dist/es/node_modules/lodash-es/_castSlice.js +11 -4
  285. package/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +11 -4
  286. package/dist/es/node_modules/lodash-es/_cloneBuffer.js +14 -4
  287. package/dist/es/node_modules/lodash-es/_cloneDataView.js +11 -4
  288. package/dist/es/node_modules/lodash-es/_cloneRegExp.js +11 -4
  289. package/dist/es/node_modules/lodash-es/_cloneSymbol.js +11 -4
  290. package/dist/es/node_modules/lodash-es/_cloneTypedArray.js +11 -4
  291. package/dist/es/node_modules/lodash-es/_copyArray.js +22 -0
  292. package/dist/es/node_modules/lodash-es/_copyObject.js +17 -4
  293. package/dist/es/node_modules/lodash-es/_coreJsData.js +8 -4
  294. package/dist/es/node_modules/lodash-es/_createAssigner.js +28 -0
  295. package/dist/es/node_modules/lodash-es/_createBaseFor.js +26 -0
  296. package/dist/es/node_modules/lodash-es/_createCaseFirst.js +17 -4
  297. package/dist/es/node_modules/lodash-es/_createSet.js +22 -0
  298. package/dist/es/node_modules/lodash-es/_customOmitClone.js +10 -4
  299. package/dist/es/node_modules/lodash-es/_defineProperty.js +14 -4
  300. package/dist/es/node_modules/lodash-es/_equalArrays.js +53 -0
  301. package/dist/es/node_modules/lodash-es/_equalByTag.js +58 -0
  302. package/dist/es/node_modules/lodash-es/_equalObjects.js +49 -0
  303. package/dist/es/node_modules/lodash-es/_flatRest.js +12 -4
  304. package/dist/es/node_modules/lodash-es/_freeGlobal.js +7 -4
  305. package/dist/es/node_modules/lodash-es/_getAllKeys.js +22 -0
  306. package/dist/es/node_modules/lodash-es/_getAllKeysIn.js +12 -4
  307. package/dist/es/node_modules/lodash-es/_getMapData.js +11 -4
  308. package/dist/es/node_modules/lodash-es/_getNative.js +12 -4
  309. package/dist/es/node_modules/lodash-es/_getPrototype.js +8 -4
  310. package/dist/es/node_modules/lodash-es/_getRawTag.js +18 -4
  311. package/dist/es/node_modules/lodash-es/_getSymbols.js +13 -4
  312. package/dist/es/node_modules/lodash-es/_getSymbolsIn.js +15 -4
  313. package/dist/es/node_modules/lodash-es/_getTag.js +31 -4
  314. package/dist/es/node_modules/lodash-es/_getValue.js +9 -4
  315. package/dist/es/node_modules/lodash-es/_hasUnicode.js +10 -4
  316. package/dist/es/node_modules/lodash-es/_hashClear.js +10 -4
  317. package/dist/es/node_modules/lodash-es/_hashDelete.js +10 -4
  318. package/dist/es/node_modules/lodash-es/_hashGet.js +16 -4
  319. package/dist/es/node_modules/lodash-es/_hashHas.js +12 -4
  320. package/dist/es/node_modules/lodash-es/_hashSet.js +12 -4
  321. package/dist/es/node_modules/lodash-es/_initCloneArray.js +11 -4
  322. package/dist/es/node_modules/lodash-es/_initCloneByTag.js +45 -4
  323. package/dist/es/node_modules/lodash-es/_initCloneObject.js +22 -0
  324. package/dist/es/node_modules/lodash-es/_isFlattenable.js +13 -4
  325. package/dist/es/node_modules/lodash-es/_isIndex.js +11 -4
  326. package/dist/es/node_modules/lodash-es/_isIterateeCall.js +26 -0
  327. package/dist/es/node_modules/lodash-es/_isKey.js +15 -4
  328. package/dist/es/node_modules/lodash-es/_isKeyable.js +10 -4
  329. package/dist/es/node_modules/lodash-es/_isMasked.js +14 -4
  330. package/dist/es/node_modules/lodash-es/_isPrototype.js +11 -4
  331. package/dist/es/node_modules/lodash-es/_listCacheClear.js +9 -4
  332. package/dist/es/node_modules/lodash-es/_listCacheDelete.js +15 -4
  333. package/dist/es/node_modules/lodash-es/_listCacheGet.js +11 -4
  334. package/dist/es/node_modules/lodash-es/_listCacheHas.js +10 -4
  335. package/dist/es/node_modules/lodash-es/_listCacheSet.js +11 -4
  336. package/dist/es/node_modules/lodash-es/_mapCacheClear.js +16 -4
  337. package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +11 -4
  338. package/dist/es/node_modules/lodash-es/_mapCacheGet.js +10 -4
  339. package/dist/es/node_modules/lodash-es/_mapCacheHas.js +10 -4
  340. package/dist/es/node_modules/lodash-es/_mapCacheSet.js +11 -4
  341. package/dist/es/node_modules/lodash-es/_mapToArray.js +22 -0
  342. package/dist/es/node_modules/lodash-es/_memoizeCapped.js +14 -4
  343. package/dist/es/node_modules/lodash-es/_nativeCreate.js +8 -4
  344. package/dist/es/node_modules/lodash-es/_nativeKeys.js +18 -0
  345. package/dist/es/node_modules/lodash-es/_nativeKeysIn.js +13 -4
  346. package/dist/es/node_modules/lodash-es/_nodeUtil.js +14 -4
  347. package/dist/es/node_modules/lodash-es/_objectToString.js +10 -4
  348. package/dist/es/node_modules/lodash-es/_overArg.js +11 -4
  349. package/dist/es/node_modules/lodash-es/_overRest.js +18 -4
  350. package/dist/es/node_modules/lodash-es/_parent.js +11 -4
  351. package/dist/es/node_modules/lodash-es/_root.js +8 -4
  352. package/dist/es/node_modules/lodash-es/_safeGet.js +20 -0
  353. package/dist/es/node_modules/lodash-es/_setCacheAdd.js +20 -0
  354. package/dist/es/node_modules/lodash-es/_setCacheHas.js +19 -0
  355. package/dist/es/node_modules/lodash-es/_setToArray.js +22 -0
  356. package/dist/es/node_modules/lodash-es/_setToString.js +9 -4
  357. package/dist/es/node_modules/lodash-es/_shortOut.js +19 -4
  358. package/dist/es/node_modules/lodash-es/_stackClear.js +10 -4
  359. package/dist/es/node_modules/lodash-es/_stackDelete.js +10 -4
  360. package/dist/es/node_modules/lodash-es/_stackGet.js +9 -4
  361. package/dist/es/node_modules/lodash-es/_stackHas.js +9 -4
  362. package/dist/es/node_modules/lodash-es/_stackSet.js +20 -4
  363. package/dist/es/node_modules/lodash-es/_strictIndexOf.js +22 -0
  364. package/dist/es/node_modules/lodash-es/_stringToArray.js +12 -4
  365. package/dist/es/node_modules/lodash-es/_stringToPath.js +13 -4
  366. package/dist/es/node_modules/lodash-es/_toKey.js +13 -4
  367. package/dist/es/node_modules/lodash-es/_toSource.js +20 -4
  368. package/dist/es/node_modules/lodash-es/_unicodeToArray.js +10 -4
  369. package/dist/es/node_modules/lodash-es/constant.js +11 -4
  370. package/dist/es/node_modules/lodash-es/eq.js +9 -4
  371. package/dist/es/node_modules/lodash-es/flatten.js +11 -4
  372. package/dist/es/node_modules/lodash-es/get.js +11 -4
  373. package/dist/es/node_modules/lodash-es/identity.js +9 -4
  374. package/dist/es/node_modules/lodash-es/intersectionWith.js +25 -0
  375. package/dist/es/node_modules/lodash-es/isArguments.js +13 -4
  376. package/dist/es/node_modules/lodash-es/isArray.js +7 -4
  377. package/dist/es/node_modules/lodash-es/isArrayLike.js +11 -4
  378. package/dist/es/node_modules/lodash-es/isArrayLikeObject.js +21 -0
  379. package/dist/es/node_modules/lodash-es/isBuffer.js +9 -4
  380. package/dist/es/node_modules/lodash-es/isEqual.js +20 -0
  381. package/dist/es/node_modules/lodash-es/isFinite.js +11 -4
  382. package/dist/es/node_modules/lodash-es/isFunction.js +15 -4
  383. package/dist/es/node_modules/lodash-es/isLength.js +10 -4
  384. package/dist/es/node_modules/lodash-es/isMap.js +10 -4
  385. package/dist/es/node_modules/lodash-es/isNaN.js +10 -4
  386. package/dist/es/node_modules/lodash-es/isNil.js +9 -4
  387. package/dist/es/node_modules/lodash-es/isNumber.js +12 -4
  388. package/dist/es/node_modules/lodash-es/isObject.js +10 -4
  389. package/dist/es/node_modules/lodash-es/isObjectLike.js +9 -4
  390. package/dist/es/node_modules/lodash-es/isPlainObject.js +19 -4
  391. package/dist/es/node_modules/lodash-es/isRegExp.js +10 -4
  392. package/dist/es/node_modules/lodash-es/isSet.js +10 -4
  393. package/dist/es/node_modules/lodash-es/isString.js +13 -4
  394. package/dist/es/node_modules/lodash-es/isSymbol.js +12 -4
  395. package/dist/es/node_modules/lodash-es/isTypedArray.js +10 -4
  396. package/dist/es/node_modules/lodash-es/keys.js +22 -0
  397. package/dist/es/node_modules/lodash-es/keysIn.js +12 -4
  398. package/dist/es/node_modules/lodash-es/last.js +10 -4
  399. package/dist/es/node_modules/lodash-es/memoize.js +21 -4
  400. package/dist/es/node_modules/lodash-es/mergeWith.js +21 -0
  401. package/dist/es/node_modules/lodash-es/noop.js +18 -0
  402. package/dist/es/node_modules/lodash-es/omit.js +26 -4
  403. package/dist/es/node_modules/lodash-es/stubArray.js +9 -4
  404. package/dist/es/node_modules/lodash-es/stubFalse.js +9 -4
  405. package/dist/es/node_modules/lodash-es/toPlainObject.js +21 -0
  406. package/dist/es/node_modules/lodash-es/toString.js +10 -4
  407. package/dist/es/node_modules/lodash-es/unionWith.js +25 -0
  408. package/dist/es/node_modules/lodash-es/upperFirst.js +8 -4
  409. package/dist/es/node_modules/orderedmap/dist/index.js +106 -4
  410. package/dist/es/node_modules/path-to-regexp/dist/index.js +275 -0
  411. package/dist/es/node_modules/prosemirror-commands/dist/index.js +391 -4
  412. package/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +89 -4
  413. package/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +207 -4
  414. package/dist/es/node_modules/prosemirror-history/dist/index.js +251 -4
  415. package/dist/es/node_modules/prosemirror-keymap/dist/index.js +65 -4
  416. package/dist/es/node_modules/prosemirror-model/dist/index.js +2736 -4
  417. package/dist/es/node_modules/prosemirror-schema-list/dist/index.js +91 -4
  418. package/dist/es/node_modules/prosemirror-state/dist/index.js +825 -4
  419. package/dist/es/node_modules/prosemirror-tables/dist/index.js +1449 -4
  420. package/dist/es/node_modules/prosemirror-transform/dist/index.js +1539 -4
  421. package/dist/es/node_modules/prosemirror-view/dist/index.js +3797 -4
  422. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +300 -0
  423. package/dist/es/node_modules/rope-sequence/dist/index.js +103 -4
  424. package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +1283 -0
  425. package/dist/es/node_modules/style-mod/src/style-mod.js +112 -4
  426. package/dist/es/{Grid → node_modules/title-case/dist}/index.js +10 -4
  427. package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +135 -4
  428. package/dist/es/node_modules/w3c-keyname/index.js +96 -4
  429. package/dist/es/node_modules/xgplayer/dist/index.min.css +3 -3
  430. package/dist/es/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +200 -4
  431. package/dist/es/node_modules/xgplayer/es/constant.js +10 -4
  432. package/dist/es/node_modules/xgplayer/es/defaultConfig.js +90 -4
  433. package/dist/es/node_modules/xgplayer/es/error.js +67 -4
  434. package/dist/es/node_modules/xgplayer/es/events.js +70 -4
  435. package/dist/es/node_modules/xgplayer/es/index.umd.js +48 -4
  436. package/dist/es/node_modules/xgplayer/es/instManager.js +104 -4
  437. package/dist/es/node_modules/xgplayer/es/lang/en.js +82 -4
  438. package/dist/es/node_modules/xgplayer/es/lang/i18n.js +78 -4
  439. package/dist/es/node_modules/xgplayer/es/lang/jp.js +82 -4
  440. package/dist/es/node_modules/xgplayer/es/lang/zh-cn.js +82 -4
  441. package/dist/es/node_modules/xgplayer/es/mediaProxy.js +469 -4
  442. package/dist/es/node_modules/xgplayer/es/player.js +1243 -4
  443. package/dist/es/node_modules/xgplayer/es/plugin/basePlugin.js +210 -4
  444. package/dist/es/node_modules/xgplayer/es/plugin/hooksDescriptor.js +133 -4
  445. package/dist/es/node_modules/xgplayer/es/plugin/plugin.js +369 -4
  446. package/dist/es/node_modules/xgplayer/es/plugin/pluginsManager.js +207 -4
  447. package/dist/es/node_modules/xgplayer/es/plugin/preset.js +17 -4
  448. package/dist/es/node_modules/xgplayer/es/plugin/resizeObserver.js +84 -4
  449. package/dist/es/node_modules/xgplayer/es/plugins/assets/back.js +13 -4
  450. package/dist/es/node_modules/xgplayer/es/plugins/assets/download.js +23 -4
  451. package/dist/es/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +12 -4
  452. package/dist/es/node_modules/xgplayer/es/plugins/assets/exitFull.js +12 -4
  453. package/dist/es/node_modules/xgplayer/es/plugins/assets/loading.js +12 -4
  454. package/dist/es/node_modules/xgplayer/es/plugins/assets/pause.js +12 -4
  455. package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIcon.js +13 -4
  456. package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +16 -4
  457. package/dist/es/node_modules/xgplayer/es/plugins/assets/play.js +12 -4
  458. package/dist/es/node_modules/xgplayer/es/plugins/assets/playNext.js +12 -4
  459. package/dist/es/node_modules/xgplayer/es/plugins/assets/replay.js +12 -4
  460. package/dist/es/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +12 -4
  461. package/dist/es/node_modules/xgplayer/es/plugins/assets/requestFull.js +12 -4
  462. package/dist/es/node_modules/xgplayer/es/plugins/assets/rotate.js +20 -4
  463. package/dist/es/node_modules/xgplayer/es/plugins/assets/seekicon.js +15 -4
  464. package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +13 -4
  465. package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +13 -4
  466. package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +13 -4
  467. package/dist/es/node_modules/xgplayer/es/plugins/common/iconPlugin.js +38 -4
  468. package/dist/es/node_modules/xgplayer/es/plugins/common/iconTools.js +15 -4
  469. package/dist/es/node_modules/xgplayer/es/plugins/common/optionList.js +82 -4
  470. package/dist/es/node_modules/xgplayer/es/plugins/common/optionsIcon.js +196 -4
  471. package/dist/es/node_modules/xgplayer/es/plugins/common/thumbnail.js +144 -4
  472. package/dist/es/node_modules/xgplayer/es/plugins/controls/index.js +174 -4
  473. package/dist/es/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +108 -4
  474. package/dist/es/node_modules/xgplayer/es/plugins/definition/index.js +113 -4
  475. package/dist/es/node_modules/xgplayer/es/plugins/download/index.js +86 -4
  476. package/dist/es/node_modules/xgplayer/es/plugins/dynamicBg/index.js +235 -5
  477. package/dist/es/node_modules/xgplayer/es/plugins/enter/index.js +45 -4
  478. package/dist/es/node_modules/xgplayer/es/plugins/error/index.js +71 -4
  479. package/dist/es/node_modules/xgplayer/es/plugins/fpsDetect/index.js +119 -4
  480. package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +71 -4
  481. package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/index.js +153 -4
  482. package/dist/es/node_modules/xgplayer/es/plugins/gapJump/index.js +99 -4
  483. package/dist/es/node_modules/xgplayer/es/plugins/keyboard/index.js +302 -4
  484. package/dist/es/node_modules/xgplayer/es/plugins/loading/index.js +49 -4
  485. package/dist/es/node_modules/xgplayer/es/plugins/logger/index.js +174 -5
  486. package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/index.js +172 -4
  487. package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +58 -4
  488. package/dist/es/node_modules/xgplayer/es/plugins/mobile/index.js +446 -4
  489. package/dist/es/node_modules/xgplayer/es/plugins/mobile/touch.js +141 -4
  490. package/dist/es/node_modules/xgplayer/es/plugins/pc/index.js +125 -4
  491. package/dist/es/node_modules/xgplayer/es/plugins/pip/index.js +219 -4
  492. package/dist/es/node_modules/xgplayer/es/plugins/play/index.js +105 -4
  493. package/dist/es/node_modules/xgplayer/es/plugins/playNext/index.js +81 -4
  494. package/dist/es/node_modules/xgplayer/es/plugins/playbackRate/index.js +103 -4
  495. package/dist/es/node_modules/xgplayer/es/plugins/poster/index.js +122 -4
  496. package/dist/es/node_modules/xgplayer/es/plugins/progress/index.js +434 -4
  497. package/dist/es/node_modules/xgplayer/es/plugins/progress/innerList.js +218 -4
  498. package/dist/es/node_modules/xgplayer/es/plugins/progress/miniProgress.js +96 -4
  499. package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +178 -4
  500. package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/index.js +295 -4
  501. package/dist/es/node_modules/xgplayer/es/plugins/prompt/index.js +89 -4
  502. package/dist/es/node_modules/xgplayer/es/plugins/replay/index.js +95 -4
  503. package/dist/es/node_modules/xgplayer/es/plugins/rotate/index.js +109 -4
  504. package/dist/es/node_modules/xgplayer/es/plugins/screenShot/index.js +137 -4
  505. package/dist/es/node_modules/xgplayer/es/plugins/start/index.js +225 -4
  506. package/dist/es/node_modules/xgplayer/es/plugins/stats/index.js +155 -4
  507. package/dist/es/node_modules/xgplayer/es/plugins/testspeed/index.js +137 -4
  508. package/dist/es/node_modules/xgplayer/es/plugins/time/index.js +167 -4
  509. package/dist/es/node_modules/xgplayer/es/plugins/time/timesegments.js +149 -4
  510. package/dist/es/node_modules/xgplayer/es/plugins/volume/index.js +209 -4
  511. package/dist/es/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +56 -4
  512. package/dist/es/node_modules/xgplayer/es/presets/default.js +64 -4
  513. package/dist/es/node_modules/xgplayer/es/state.js +16 -4
  514. package/dist/es/node_modules/xgplayer/es/stateClassMap.js +37 -4
  515. package/dist/es/node_modules/xgplayer/es/utils/database.js +86 -4
  516. package/dist/es/node_modules/xgplayer/es/utils/debug.js +37 -4
  517. package/dist/es/node_modules/xgplayer/es/utils/draggabilly.js +274 -4
  518. package/dist/es/node_modules/xgplayer/es/utils/sniffer.js +114 -4
  519. package/dist/es/node_modules/xgplayer/es/utils/util.js +520 -4
  520. package/dist/es/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +28 -4
  521. package/dist/es/node_modules/xgplayer/es/version.js +7 -4
  522. package/dist/es/packages/components/index.js +88 -4
  523. package/dist/es/packages/hooks/dist/index.js +81 -0
  524. package/dist/es/packages/utils/dist/index.js +599 -0
  525. package/dist/es/styles/tokens.css +3 -3
  526. package/dist/lib/Button/index.js +4 -4
  527. package/dist/lib/Button/src/Button.css +3 -3
  528. package/dist/lib/Button/src/Button.vue.js +4 -4
  529. package/dist/lib/Button/src/Button2.css +3 -3
  530. package/dist/lib/CodeEditor/index.js +4 -4
  531. package/dist/lib/CodeEditor/src/index.css +4 -4
  532. package/dist/lib/CodeEditor/src/index.vue.js +4 -4
  533. package/dist/lib/CodeEditor/src/index2.css +3 -3
  534. package/dist/lib/CodeEditor/src/index3.css +4 -4
  535. package/dist/lib/ConfigProvider/index.js +4 -4
  536. package/dist/lib/ConfigProvider/src/configProvider.js +4 -4
  537. package/dist/lib/ConfigProvider/src/configProviderProps.js +4 -4
  538. package/dist/lib/ConfigProvider/src/constants.js +4 -4
  539. package/dist/lib/ConfigProvider/src/useGlobalConfig.js +4 -4
  540. package/dist/lib/CountTo/index.js +4 -4
  541. package/dist/lib/CountTo/src/index.css +3 -3
  542. package/dist/lib/CountTo/src/index.vue.js +4 -4
  543. package/dist/lib/Ellipsis/index.js +4 -4
  544. package/dist/lib/Ellipsis/src/components/JsEllipsis.css +3 -3
  545. package/dist/lib/Ellipsis/src/components/JsEllipsis.vue.js +4 -4
  546. package/dist/lib/Ellipsis/src/components/NativeEllipsis.css +3 -3
  547. package/dist/lib/Ellipsis/src/components/NativeEllipsis.vue.js +4 -4
  548. package/dist/lib/Ellipsis/src/components/NativeEllipsis2.css +3 -3
  549. package/dist/lib/Ellipsis/src/index.css +3 -3
  550. package/dist/lib/Ellipsis/src/index.vue.js +4 -4
  551. package/dist/lib/Ellipsis/src/utils/utils.js +4 -4
  552. package/dist/lib/Form/index.js +4 -4
  553. package/dist/lib/Form/src/Form.css +3 -3
  554. package/dist/lib/Form/src/Form.vue.js +4 -4
  555. package/dist/lib/Form/src/Form2.css +3 -3
  556. package/dist/lib/Form/src/styles/form.css +3 -3
  557. package/dist/lib/Marquee/index.js +4 -4
  558. package/dist/lib/Marquee/src/index.css +3 -3
  559. package/dist/lib/Marquee/src/index.vue.js +4 -4
  560. package/dist/lib/Marquee/src/index2.css +3 -3
  561. package/dist/lib/Overlay/index.js +4 -4
  562. package/dist/lib/Overlay/src/Message.css +3 -3
  563. package/dist/lib/Overlay/src/Message.vue.js +4 -4
  564. package/dist/lib/Overlay/src/Message2.css +3 -3
  565. package/dist/lib/Overlay/src/Modal.css +3 -3
  566. package/dist/lib/Overlay/src/Modal.vue.js +4 -4
  567. package/dist/lib/Overlay/src/Modal2.css +3 -3
  568. package/dist/lib/Overlay/src/Notice.css +3 -3
  569. package/dist/lib/Overlay/src/Notice.vue.js +4 -4
  570. package/dist/lib/Overlay/src/Notice2.css +3 -3
  571. package/dist/lib/Overlay/src/Tooltip.css +3 -3
  572. package/dist/lib/Overlay/src/Tooltip.vue.js +4 -4
  573. package/dist/lib/Overlay/src/Tooltip2.css +3 -3
  574. package/dist/lib/RichTextEditor/index.js +4 -4
  575. package/dist/lib/RichTextEditor/src/ToolbarPanel.css +3 -3
  576. package/dist/lib/RichTextEditor/src/ToolbarPanel.vue.js +4 -4
  577. package/dist/lib/RichTextEditor/src/ToolbarPanel2.css +3 -3
  578. package/dist/lib/RichTextEditor/src/components/BlockquoteButton.css +4 -4
  579. package/dist/lib/RichTextEditor/src/components/BlockquoteButton.vue.js +4 -4
  580. package/dist/lib/RichTextEditor/src/components/CodeBlockButton.css +4 -4
  581. package/dist/lib/RichTextEditor/src/components/CodeBlockButton.vue.js +4 -4
  582. package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
  583. package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.vue.js +4 -4
  584. package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
  585. package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +4 -4
  586. package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
  587. package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +4 -4
  588. package/dist/lib/RichTextEditor/src/components/ImageUploadButton.css +4 -4
  589. package/dist/lib/RichTextEditor/src/components/ImageUploadButton.vue.js +4 -4
  590. package/dist/lib/RichTextEditor/src/components/LinkPopover.css +4 -4
  591. package/dist/lib/RichTextEditor/src/components/LinkPopover.vue.js +4 -4
  592. package/dist/lib/RichTextEditor/src/components/LinkPopover2.css +4 -4
  593. package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
  594. package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.vue.js +4 -4
  595. package/dist/lib/RichTextEditor/src/components/MarkButton.css +4 -4
  596. package/dist/lib/RichTextEditor/src/components/MarkButton.vue.js +4 -4
  597. package/dist/lib/RichTextEditor/src/components/TableButton.css +3 -3
  598. package/dist/lib/RichTextEditor/src/components/TableButton.vue.js +4 -4
  599. package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
  600. package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +4 -4
  601. package/dist/lib/RichTextEditor/src/components/TextColorPopover.css +3 -3
  602. package/dist/lib/RichTextEditor/src/components/TextColorPopover.vue.js +4 -4
  603. package/dist/lib/RichTextEditor/src/components/ToolbarGroup.css +3 -3
  604. package/dist/lib/RichTextEditor/src/components/ToolbarGroup.vue.js +4 -4
  605. package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
  606. package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.vue.js +4 -4
  607. package/dist/lib/RichTextEditor/src/components/UndoRedoButton.css +4 -4
  608. package/dist/lib/RichTextEditor/src/components/UndoRedoButton.vue.js +4 -4
  609. package/dist/lib/RichTextEditor/src/components/VideoUploadButton.css +4 -4
  610. package/dist/lib/RichTextEditor/src/components/VideoUploadButton.vue.js +4 -4
  611. package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
  612. package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.vue.js +4 -4
  613. package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
  614. package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +4 -4
  615. package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
  616. package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
  617. package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.vue.js +4 -4
  618. package/dist/lib/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
  619. package/dist/lib/RichTextEditor/src/constant/index.js +4 -4
  620. package/dist/lib/RichTextEditor/src/extensions/video.js +4 -4
  621. package/dist/lib/RichTextEditor/src/index.css +4 -4
  622. package/dist/lib/RichTextEditor/src/index.vue.js +4 -4
  623. package/dist/lib/RichTextEditor/src/index2.css +4 -4
  624. package/dist/lib/RichTextEditor/src/props.js +4 -4
  625. package/dist/lib/ScaleScreen/index.js +4 -4
  626. package/dist/lib/ScaleScreen/src/index.css +3 -3
  627. package/dist/lib/ScaleScreen/src/index.vue.js +4 -4
  628. package/dist/lib/ScaleScreen/src/index2.css +3 -3
  629. package/dist/lib/Transition/index.js +4 -4
  630. package/dist/lib/Transition/src/CollapseTransition.css +3 -3
  631. package/dist/lib/Transition/src/CollapseTransition.vue.js +4 -4
  632. package/dist/lib/Transition/src/CollapseTransition2.css +3 -3
  633. package/dist/lib/Transition/src/CreateTransition.js +4 -4
  634. package/dist/lib/Transition/src/ExpandTransition.js +4 -4
  635. package/dist/lib/Transition/src/style/index.css +3 -3
  636. package/dist/lib/Transition/style.js +4 -4
  637. package/dist/lib/VideoBackground/index.js +4 -4
  638. package/dist/lib/VideoBackground/src/helper.js +4 -4
  639. package/dist/lib/VideoBackground/src/index.css +3 -3
  640. package/dist/lib/VideoBackground/src/index.vue.js +4 -4
  641. package/dist/lib/VideoBackground/src/index2.css +3 -3
  642. package/dist/lib/VideoBackground/src/index3.css +3 -3
  643. package/dist/lib/VideoBackground/src/videoBackground.js +4 -4
  644. package/dist/lib/VideoPlayer/index.js +4 -4
  645. package/dist/lib/VideoPlayer/src/index.css +3 -3
  646. package/dist/lib/VideoPlayer/src/index.vue.js +4 -4
  647. package/dist/lib/VirtualScroll/index.js +4 -4
  648. package/dist/lib/VirtualScroll/src/index.css +3 -3
  649. package/dist/lib/VirtualScroll/src/index.vue.js +4 -4
  650. package/dist/lib/VirtualScroll/src/index.vue2.js +4 -4
  651. package/dist/lib/VirtualScroll/src/index2.css +3 -3
  652. package/dist/lib/_virtual/_commonjsHelpers.js +4 -4
  653. package/dist/lib/_virtual/_plugin-vue_export-helper.js +4 -4
  654. package/dist/lib/_virtual/delegate.js +4 -4
  655. package/dist/lib/_virtual/download.js +4 -4
  656. package/dist/lib/_virtual/download2.js +4 -4
  657. package/dist/lib/_virtual/index.js +4 -4
  658. package/dist/lib/_virtual/index2.js +4 -4
  659. package/dist/lib/_virtual/index3.js +14 -0
  660. package/dist/lib/{node_modules/@tanstack/store/dist/esm/types.js → _virtual/index4.js} +4 -4
  661. package/dist/lib/hooks/useLocale.js +4 -4
  662. package/dist/lib/hooks/useNamespace.js +4 -4
  663. package/dist/lib/index.js +4 -4
  664. package/dist/lib/locale/lang/en-US.js +4 -4
  665. package/dist/lib/locale/lang/ja-JP.js +4 -4
  666. package/dist/lib/locale/lang/zh-CN.js +4 -4
  667. package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +4 -4
  668. package/dist/lib/node_modules/@codemirror/commands/dist/index.js +4 -4
  669. package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +4 -4
  670. package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +16 -4
  671. package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +4 -4
  672. package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +6 -4
  673. package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +5 -4
  674. package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +4 -4
  675. package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +4 -4
  676. package/dist/lib/node_modules/@codemirror/language/dist/index.js +4 -4
  677. package/dist/lib/node_modules/@codemirror/lint/dist/index.js +4 -4
  678. package/dist/lib/node_modules/@codemirror/search/dist/index.js +5 -4
  679. package/dist/lib/node_modules/@codemirror/state/dist/index.js +8 -4
  680. package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +4 -4
  681. package/dist/lib/node_modules/@codemirror/view/dist/index.js +8 -4
  682. package/dist/lib/node_modules/@lezer/common/dist/index.js +4 -4
  683. package/dist/lib/node_modules/@lezer/highlight/dist/index.js +4 -4
  684. package/dist/lib/node_modules/@lezer/java/dist/index.js +4 -4
  685. package/dist/lib/node_modules/@lezer/javascript/dist/index.js +4 -4
  686. package/dist/lib/node_modules/@lezer/json/dist/index.js +4 -4
  687. package/dist/lib/node_modules/@lezer/lr/dist/index.js +4 -4
  688. package/dist/lib/node_modules/@lezer/python/dist/index.js +4 -4
  689. package/dist/lib/node_modules/@lezer/xml/dist/index.js +4 -4
  690. package/dist/lib/node_modules/@lezer/yaml/dist/index.js +4 -4
  691. package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +4 -4
  692. package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +4 -4
  693. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +4 -4
  694. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +4 -4
  695. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +4 -4
  696. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +4 -4
  697. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +4 -4
  698. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +4 -4
  699. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +4 -4
  700. package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +4 -4
  701. package/dist/lib/node_modules/@tanstack/store/dist/esm/alien.js +14 -0
  702. package/dist/lib/node_modules/@tanstack/store/dist/esm/atom.js +14 -0
  703. package/dist/lib/node_modules/@tanstack/store/dist/esm/batch.js +14 -0
  704. package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +4 -4
  705. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +4 -4
  706. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +4 -4
  707. package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +4 -4
  708. package/dist/lib/node_modules/@tiptap/core/dist/index.js +94 -4
  709. package/dist/lib/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +4 -4
  710. package/dist/lib/node_modules/@tiptap/extension-blockquote/dist/index.js +8 -4
  711. package/dist/lib/node_modules/@tiptap/extension-bold/dist/index.js +4 -4
  712. package/dist/lib/node_modules/@tiptap/extension-character-count/dist/index.js +4 -4
  713. package/dist/lib/node_modules/@tiptap/extension-code/dist/index.js +4 -4
  714. package/dist/lib/node_modules/@tiptap/extension-code-block/dist/index.js +21 -4
  715. package/dist/lib/node_modules/@tiptap/extension-document/dist/index.js +6 -4
  716. package/dist/lib/node_modules/@tiptap/extension-hard-break/dist/index.js +6 -4
  717. package/dist/lib/node_modules/@tiptap/extension-heading/dist/index.js +4 -4
  718. package/dist/lib/node_modules/@tiptap/extension-highlight/dist/index.js +4 -4
  719. package/dist/lib/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +4 -4
  720. package/dist/lib/node_modules/@tiptap/extension-image/dist/index.js +4 -4
  721. package/dist/lib/node_modules/@tiptap/extension-italic/dist/index.js +4 -4
  722. package/dist/lib/node_modules/@tiptap/extension-link/dist/index.js +4 -4
  723. package/dist/lib/node_modules/@tiptap/extension-list/dist/index.js +15 -4
  724. package/dist/lib/node_modules/@tiptap/extension-paragraph/dist/index.js +4 -4
  725. package/dist/lib/node_modules/@tiptap/extension-strike/dist/index.js +4 -4
  726. package/dist/lib/node_modules/@tiptap/extension-subscript/dist/index.js +4 -4
  727. package/dist/lib/node_modules/@tiptap/extension-superscript/dist/index.js +4 -4
  728. package/dist/lib/node_modules/@tiptap/extension-table/dist/index.js +8 -4
  729. package/dist/lib/node_modules/@tiptap/extension-task-item/dist/index.js +4 -4
  730. package/dist/lib/node_modules/@tiptap/extension-task-list/dist/index.js +4 -4
  731. package/dist/lib/node_modules/@tiptap/extension-text/dist/index.js +4 -4
  732. package/dist/lib/node_modules/@tiptap/extension-text-align/dist/index.js +4 -4
  733. package/dist/lib/node_modules/@tiptap/extension-text-style/dist/index.js +4 -4
  734. package/dist/lib/node_modules/@tiptap/extension-underline/dist/index.js +4 -4
  735. package/dist/lib/node_modules/@tiptap/extensions/dist/index.js +4 -4
  736. package/dist/lib/node_modules/@tiptap/html/dist/index.js +14 -0
  737. package/dist/lib/node_modules/@tiptap/starter-kit/dist/index.js +4 -4
  738. package/dist/lib/node_modules/@tiptap/vue-3/dist/index.js +4 -4
  739. package/dist/lib/node_modules/@vueuse/core/dist/index.js +4 -4
  740. package/dist/lib/node_modules/@vueuse/shared/dist/index.js +4 -4
  741. package/dist/lib/node_modules/codemirror/dist/index.js +4 -4
  742. package/dist/lib/node_modules/crelt/index.js +4 -4
  743. package/dist/lib/node_modules/delegate/src/closest.js +4 -4
  744. package/dist/lib/node_modules/delegate/src/delegate.js +4 -4
  745. package/dist/lib/node_modules/downloadjs/download.js +6 -4
  746. package/dist/lib/node_modules/eventemitter3/index.js +4 -4
  747. package/dist/lib/node_modules/linkifyjs/dist/linkify.js +8 -4
  748. package/dist/lib/node_modules/lodash-es/_DataView.js +4 -4
  749. package/dist/lib/node_modules/lodash-es/_Hash.js +4 -4
  750. package/dist/lib/node_modules/lodash-es/_ListCache.js +4 -4
  751. package/dist/lib/node_modules/lodash-es/_Map.js +4 -4
  752. package/dist/lib/node_modules/lodash-es/_MapCache.js +4 -4
  753. package/dist/lib/node_modules/lodash-es/_Promise.js +4 -4
  754. package/dist/lib/node_modules/lodash-es/_Set.js +4 -4
  755. package/dist/lib/node_modules/lodash-es/_SetCache.js +14 -0
  756. package/dist/lib/node_modules/lodash-es/_Stack.js +4 -4
  757. package/dist/lib/node_modules/lodash-es/_Symbol.js +4 -4
  758. package/dist/lib/node_modules/lodash-es/_Uint8Array.js +4 -4
  759. package/dist/lib/node_modules/lodash-es/_WeakMap.js +4 -4
  760. package/dist/lib/node_modules/lodash-es/_apply.js +4 -4
  761. package/dist/lib/node_modules/lodash-es/_arrayEach.js +4 -4
  762. package/dist/lib/node_modules/lodash-es/_arrayFilter.js +4 -4
  763. package/dist/lib/node_modules/lodash-es/_arrayIncludes.js +14 -0
  764. package/dist/lib/node_modules/lodash-es/_arrayIncludesWith.js +14 -0
  765. package/dist/lib/node_modules/lodash-es/_arrayLikeKeys.js +4 -4
  766. package/dist/lib/node_modules/lodash-es/_arrayMap.js +4 -4
  767. package/dist/lib/node_modules/lodash-es/_arrayPush.js +4 -4
  768. package/dist/lib/node_modules/lodash-es/_arraySome.js +14 -0
  769. package/dist/lib/node_modules/lodash-es/_asciiToArray.js +4 -4
  770. package/dist/lib/node_modules/lodash-es/_assignMergeValue.js +14 -0
  771. package/dist/lib/node_modules/lodash-es/_assignValue.js +4 -4
  772. package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +4 -4
  773. package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +4 -4
  774. package/dist/lib/node_modules/lodash-es/_baseClone.js +4 -4
  775. package/dist/lib/node_modules/lodash-es/_baseCreate.js +14 -0
  776. package/dist/lib/node_modules/lodash-es/_baseFindIndex.js +14 -0
  777. package/dist/lib/node_modules/lodash-es/_baseFlatten.js +4 -4
  778. package/dist/lib/node_modules/lodash-es/_baseFor.js +14 -0
  779. package/dist/lib/node_modules/lodash-es/_baseGet.js +4 -4
  780. package/dist/lib/node_modules/lodash-es/_baseGetAllKeys.js +4 -4
  781. package/dist/lib/node_modules/lodash-es/_baseGetTag.js +4 -4
  782. package/dist/lib/node_modules/lodash-es/_baseIndexOf.js +14 -0
  783. package/dist/lib/node_modules/lodash-es/_baseIntersection.js +14 -0
  784. package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +4 -4
  785. package/dist/lib/node_modules/lodash-es/_baseIsEqual.js +14 -0
  786. package/dist/lib/node_modules/lodash-es/_baseIsEqualDeep.js +14 -0
  787. package/dist/lib/node_modules/lodash-es/_baseIsMap.js +4 -4
  788. package/dist/lib/node_modules/lodash-es/_baseIsNaN.js +14 -0
  789. package/dist/lib/node_modules/lodash-es/_baseIsNative.js +4 -4
  790. package/dist/lib/node_modules/lodash-es/_baseIsRegExp.js +4 -4
  791. package/dist/lib/node_modules/lodash-es/_baseIsSet.js +4 -4
  792. package/dist/lib/node_modules/lodash-es/_baseIsTypedArray.js +4 -4
  793. package/dist/lib/node_modules/lodash-es/_baseKeys.js +14 -0
  794. package/dist/lib/node_modules/lodash-es/_baseKeysIn.js +4 -4
  795. package/dist/lib/node_modules/lodash-es/_baseMerge.js +14 -0
  796. package/dist/lib/node_modules/lodash-es/_baseMergeDeep.js +14 -0
  797. package/dist/lib/node_modules/lodash-es/_baseRest.js +14 -0
  798. package/dist/lib/node_modules/lodash-es/_baseSetToString.js +4 -4
  799. package/dist/lib/node_modules/lodash-es/_baseSlice.js +4 -4
  800. package/dist/lib/node_modules/lodash-es/_baseTimes.js +4 -4
  801. package/dist/lib/node_modules/lodash-es/_baseToString.js +4 -4
  802. package/dist/lib/node_modules/lodash-es/_baseUnary.js +4 -4
  803. package/dist/lib/node_modules/lodash-es/_baseUniq.js +14 -0
  804. package/dist/lib/node_modules/lodash-es/_baseUnset.js +4 -4
  805. package/dist/lib/node_modules/lodash-es/_cacheHas.js +14 -0
  806. package/dist/lib/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
  807. package/dist/lib/node_modules/lodash-es/_castPath.js +4 -4
  808. package/dist/lib/node_modules/lodash-es/_castSlice.js +4 -4
  809. package/dist/lib/node_modules/lodash-es/_cloneArrayBuffer.js +4 -4
  810. package/dist/lib/node_modules/lodash-es/_cloneBuffer.js +4 -4
  811. package/dist/lib/node_modules/lodash-es/_cloneDataView.js +4 -4
  812. package/dist/lib/node_modules/lodash-es/_cloneRegExp.js +4 -4
  813. package/dist/lib/node_modules/lodash-es/_cloneSymbol.js +4 -4
  814. package/dist/lib/node_modules/lodash-es/_cloneTypedArray.js +4 -4
  815. package/dist/lib/node_modules/lodash-es/_copyArray.js +14 -0
  816. package/dist/lib/node_modules/lodash-es/_copyObject.js +4 -4
  817. package/dist/lib/node_modules/lodash-es/_coreJsData.js +4 -4
  818. package/dist/lib/node_modules/lodash-es/_createAssigner.js +14 -0
  819. package/dist/lib/node_modules/lodash-es/_createBaseFor.js +14 -0
  820. package/dist/lib/node_modules/lodash-es/_createCaseFirst.js +4 -4
  821. package/dist/lib/node_modules/lodash-es/_createSet.js +14 -0
  822. package/dist/lib/node_modules/lodash-es/_customOmitClone.js +4 -4
  823. package/dist/lib/node_modules/lodash-es/_defineProperty.js +4 -4
  824. package/dist/lib/node_modules/lodash-es/_equalArrays.js +14 -0
  825. package/dist/lib/node_modules/lodash-es/_equalByTag.js +14 -0
  826. package/dist/lib/node_modules/lodash-es/_equalObjects.js +14 -0
  827. package/dist/lib/node_modules/lodash-es/_flatRest.js +4 -4
  828. package/dist/lib/node_modules/lodash-es/_freeGlobal.js +4 -4
  829. package/dist/lib/node_modules/lodash-es/_getAllKeys.js +14 -0
  830. package/dist/lib/node_modules/lodash-es/_getAllKeysIn.js +4 -4
  831. package/dist/lib/node_modules/lodash-es/_getMapData.js +4 -4
  832. package/dist/lib/node_modules/lodash-es/_getNative.js +4 -4
  833. package/dist/lib/node_modules/lodash-es/_getPrototype.js +4 -4
  834. package/dist/lib/node_modules/lodash-es/_getRawTag.js +4 -4
  835. package/dist/lib/node_modules/lodash-es/_getSymbols.js +4 -4
  836. package/dist/lib/node_modules/lodash-es/_getSymbolsIn.js +4 -4
  837. package/dist/lib/node_modules/lodash-es/_getTag.js +4 -4
  838. package/dist/lib/node_modules/lodash-es/_getValue.js +4 -4
  839. package/dist/lib/node_modules/lodash-es/_hasUnicode.js +4 -4
  840. package/dist/lib/node_modules/lodash-es/_hashClear.js +4 -4
  841. package/dist/lib/node_modules/lodash-es/_hashDelete.js +4 -4
  842. package/dist/lib/node_modules/lodash-es/_hashGet.js +4 -4
  843. package/dist/lib/node_modules/lodash-es/_hashHas.js +4 -4
  844. package/dist/lib/node_modules/lodash-es/_hashSet.js +4 -4
  845. package/dist/lib/node_modules/lodash-es/_initCloneArray.js +4 -4
  846. package/dist/lib/node_modules/lodash-es/_initCloneByTag.js +4 -4
  847. package/dist/lib/node_modules/lodash-es/_initCloneObject.js +14 -0
  848. package/dist/lib/node_modules/lodash-es/_isFlattenable.js +4 -4
  849. package/dist/lib/node_modules/lodash-es/_isIndex.js +4 -4
  850. package/dist/lib/node_modules/lodash-es/_isIterateeCall.js +14 -0
  851. package/dist/lib/node_modules/lodash-es/_isKey.js +4 -4
  852. package/dist/lib/node_modules/lodash-es/_isKeyable.js +4 -4
  853. package/dist/lib/node_modules/lodash-es/_isMasked.js +4 -4
  854. package/dist/lib/node_modules/lodash-es/_isPrototype.js +4 -4
  855. package/dist/lib/node_modules/lodash-es/_listCacheClear.js +4 -4
  856. package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +4 -4
  857. package/dist/lib/node_modules/lodash-es/_listCacheGet.js +4 -4
  858. package/dist/lib/node_modules/lodash-es/_listCacheHas.js +4 -4
  859. package/dist/lib/node_modules/lodash-es/_listCacheSet.js +4 -4
  860. package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +4 -4
  861. package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +4 -4
  862. package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +4 -4
  863. package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +4 -4
  864. package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +4 -4
  865. package/dist/lib/node_modules/lodash-es/_mapToArray.js +14 -0
  866. package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +4 -4
  867. package/dist/lib/node_modules/lodash-es/_nativeCreate.js +4 -4
  868. package/dist/lib/node_modules/lodash-es/_nativeKeys.js +14 -0
  869. package/dist/lib/node_modules/lodash-es/_nativeKeysIn.js +4 -4
  870. package/dist/lib/node_modules/lodash-es/_nodeUtil.js +4 -4
  871. package/dist/lib/node_modules/lodash-es/_objectToString.js +4 -4
  872. package/dist/lib/node_modules/lodash-es/_overArg.js +4 -4
  873. package/dist/lib/node_modules/lodash-es/_overRest.js +4 -4
  874. package/dist/lib/node_modules/lodash-es/_parent.js +4 -4
  875. package/dist/lib/node_modules/lodash-es/_root.js +4 -4
  876. package/dist/lib/node_modules/lodash-es/_safeGet.js +14 -0
  877. package/dist/lib/node_modules/lodash-es/_setCacheAdd.js +14 -0
  878. package/dist/lib/node_modules/lodash-es/_setCacheHas.js +14 -0
  879. package/dist/lib/node_modules/lodash-es/_setToArray.js +14 -0
  880. package/dist/lib/node_modules/lodash-es/_setToString.js +4 -4
  881. package/dist/lib/node_modules/lodash-es/_shortOut.js +4 -4
  882. package/dist/lib/node_modules/lodash-es/_stackClear.js +4 -4
  883. package/dist/lib/node_modules/lodash-es/_stackDelete.js +4 -4
  884. package/dist/lib/node_modules/lodash-es/_stackGet.js +4 -4
  885. package/dist/lib/node_modules/lodash-es/_stackHas.js +4 -4
  886. package/dist/lib/node_modules/lodash-es/_stackSet.js +4 -4
  887. package/dist/lib/node_modules/lodash-es/_strictIndexOf.js +14 -0
  888. package/dist/lib/node_modules/lodash-es/_stringToArray.js +4 -4
  889. package/dist/lib/node_modules/lodash-es/_stringToPath.js +4 -4
  890. package/dist/lib/node_modules/lodash-es/_toKey.js +4 -4
  891. package/dist/lib/node_modules/lodash-es/_toSource.js +4 -4
  892. package/dist/lib/node_modules/lodash-es/_unicodeToArray.js +4 -4
  893. package/dist/lib/node_modules/lodash-es/constant.js +4 -4
  894. package/dist/lib/node_modules/lodash-es/eq.js +4 -4
  895. package/dist/lib/node_modules/lodash-es/flatten.js +4 -4
  896. package/dist/lib/node_modules/lodash-es/get.js +4 -4
  897. package/dist/lib/node_modules/lodash-es/identity.js +4 -4
  898. package/dist/lib/node_modules/lodash-es/intersectionWith.js +14 -0
  899. package/dist/lib/node_modules/lodash-es/isArguments.js +4 -4
  900. package/dist/lib/node_modules/lodash-es/isArray.js +4 -4
  901. package/dist/lib/node_modules/lodash-es/isArrayLike.js +4 -4
  902. package/dist/lib/node_modules/lodash-es/isArrayLikeObject.js +14 -0
  903. package/dist/lib/node_modules/lodash-es/isBuffer.js +4 -4
  904. package/dist/lib/node_modules/lodash-es/isEqual.js +14 -0
  905. package/dist/lib/node_modules/lodash-es/isFinite.js +4 -4
  906. package/dist/lib/node_modules/lodash-es/isFunction.js +4 -4
  907. package/dist/lib/node_modules/lodash-es/isLength.js +4 -4
  908. package/dist/lib/node_modules/lodash-es/isMap.js +4 -4
  909. package/dist/lib/node_modules/lodash-es/isNaN.js +4 -4
  910. package/dist/lib/node_modules/lodash-es/isNil.js +4 -4
  911. package/dist/lib/node_modules/lodash-es/isNumber.js +4 -4
  912. package/dist/lib/node_modules/lodash-es/isObject.js +4 -4
  913. package/dist/lib/node_modules/lodash-es/isObjectLike.js +4 -4
  914. package/dist/lib/node_modules/lodash-es/isPlainObject.js +4 -4
  915. package/dist/lib/node_modules/lodash-es/isRegExp.js +4 -4
  916. package/dist/lib/node_modules/lodash-es/isSet.js +4 -4
  917. package/dist/lib/node_modules/lodash-es/isString.js +4 -4
  918. package/dist/lib/node_modules/lodash-es/isSymbol.js +4 -4
  919. package/dist/lib/node_modules/lodash-es/isTypedArray.js +4 -4
  920. package/dist/lib/node_modules/lodash-es/keys.js +14 -0
  921. package/dist/lib/node_modules/lodash-es/keysIn.js +4 -4
  922. package/dist/lib/node_modules/lodash-es/last.js +4 -4
  923. package/dist/lib/node_modules/lodash-es/memoize.js +4 -4
  924. package/dist/lib/node_modules/lodash-es/mergeWith.js +14 -0
  925. package/dist/lib/node_modules/lodash-es/noop.js +14 -0
  926. package/dist/lib/node_modules/lodash-es/omit.js +4 -4
  927. package/dist/lib/node_modules/lodash-es/stubArray.js +4 -4
  928. package/dist/lib/node_modules/lodash-es/stubFalse.js +4 -4
  929. package/dist/lib/node_modules/lodash-es/toPlainObject.js +14 -0
  930. package/dist/lib/node_modules/lodash-es/toString.js +4 -4
  931. package/dist/lib/node_modules/lodash-es/unionWith.js +14 -0
  932. package/dist/lib/node_modules/lodash-es/upperFirst.js +4 -4
  933. package/dist/lib/node_modules/orderedmap/dist/index.js +4 -4
  934. package/dist/lib/node_modules/path-to-regexp/dist/index.js +14 -0
  935. package/dist/lib/node_modules/prosemirror-commands/dist/index.js +5 -4
  936. package/dist/lib/node_modules/prosemirror-dropcursor/dist/index.js +4 -4
  937. package/dist/lib/node_modules/prosemirror-gapcursor/dist/index.js +4 -4
  938. package/dist/lib/node_modules/prosemirror-history/dist/index.js +4 -4
  939. package/dist/lib/node_modules/prosemirror-keymap/dist/index.js +4 -4
  940. package/dist/lib/node_modules/prosemirror-model/dist/index.js +7 -4
  941. package/dist/lib/node_modules/prosemirror-schema-list/dist/index.js +4 -4
  942. package/dist/lib/node_modules/prosemirror-state/dist/index.js +4 -4
  943. package/dist/lib/node_modules/prosemirror-tables/dist/index.js +4 -4
  944. package/dist/lib/node_modules/prosemirror-transform/dist/index.js +5 -4
  945. package/dist/lib/node_modules/prosemirror-view/dist/index.js +8 -4
  946. package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +14 -0
  947. package/dist/lib/node_modules/rope-sequence/dist/index.js +4 -4
  948. package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +14 -0
  949. package/dist/lib/node_modules/style-mod/src/style-mod.js +6 -4
  950. package/dist/lib/{Grid → node_modules/title-case/dist}/index.js +4 -4
  951. package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +4 -4
  952. package/dist/lib/node_modules/w3c-keyname/index.js +4 -4
  953. package/dist/lib/node_modules/xgplayer/dist/index.min.css +3 -3
  954. package/dist/lib/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +5 -4
  955. package/dist/lib/node_modules/xgplayer/es/constant.js +4 -4
  956. package/dist/lib/node_modules/xgplayer/es/defaultConfig.js +4 -4
  957. package/dist/lib/node_modules/xgplayer/es/error.js +4 -4
  958. package/dist/lib/node_modules/xgplayer/es/events.js +4 -4
  959. package/dist/lib/node_modules/xgplayer/es/index.umd.js +4 -4
  960. package/dist/lib/node_modules/xgplayer/es/instManager.js +4 -4
  961. package/dist/lib/node_modules/xgplayer/es/lang/en.js +4 -4
  962. package/dist/lib/node_modules/xgplayer/es/lang/i18n.js +4 -4
  963. package/dist/lib/node_modules/xgplayer/es/lang/jp.js +4 -4
  964. package/dist/lib/node_modules/xgplayer/es/lang/zh-cn.js +4 -4
  965. package/dist/lib/node_modules/xgplayer/es/mediaProxy.js +4 -4
  966. package/dist/lib/node_modules/xgplayer/es/player.js +4 -4
  967. package/dist/lib/node_modules/xgplayer/es/plugin/basePlugin.js +4 -4
  968. package/dist/lib/node_modules/xgplayer/es/plugin/hooksDescriptor.js +4 -4
  969. package/dist/lib/node_modules/xgplayer/es/plugin/plugin.js +4 -4
  970. package/dist/lib/node_modules/xgplayer/es/plugin/pluginsManager.js +4 -4
  971. package/dist/lib/node_modules/xgplayer/es/plugin/preset.js +4 -4
  972. package/dist/lib/node_modules/xgplayer/es/plugin/resizeObserver.js +4 -4
  973. package/dist/lib/node_modules/xgplayer/es/plugins/assets/back.js +8 -4
  974. package/dist/lib/node_modules/xgplayer/es/plugins/assets/download.js +18 -4
  975. package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +7 -4
  976. package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitFull.js +7 -4
  977. package/dist/lib/node_modules/xgplayer/es/plugins/assets/loading.js +7 -4
  978. package/dist/lib/node_modules/xgplayer/es/plugins/assets/pause.js +7 -4
  979. package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIcon.js +8 -4
  980. package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +11 -4
  981. package/dist/lib/node_modules/xgplayer/es/plugins/assets/play.js +7 -4
  982. package/dist/lib/node_modules/xgplayer/es/plugins/assets/playNext.js +7 -4
  983. package/dist/lib/node_modules/xgplayer/es/plugins/assets/replay.js +7 -4
  984. package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +7 -4
  985. package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestFull.js +7 -4
  986. package/dist/lib/node_modules/xgplayer/es/plugins/assets/rotate.js +15 -4
  987. package/dist/lib/node_modules/xgplayer/es/plugins/assets/seekicon.js +10 -4
  988. package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +8 -4
  989. package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +8 -4
  990. package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +8 -4
  991. package/dist/lib/node_modules/xgplayer/es/plugins/common/iconPlugin.js +4 -4
  992. package/dist/lib/node_modules/xgplayer/es/plugins/common/iconTools.js +6 -4
  993. package/dist/lib/node_modules/xgplayer/es/plugins/common/optionList.js +4 -4
  994. package/dist/lib/node_modules/xgplayer/es/plugins/common/optionsIcon.js +7 -4
  995. package/dist/lib/node_modules/xgplayer/es/plugins/common/thumbnail.js +4 -4
  996. package/dist/lib/node_modules/xgplayer/es/plugins/controls/index.js +12 -4
  997. package/dist/lib/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +8 -4
  998. package/dist/lib/node_modules/xgplayer/es/plugins/definition/index.js +4 -4
  999. package/dist/lib/node_modules/xgplayer/es/plugins/download/index.js +8 -4
  1000. package/dist/lib/node_modules/xgplayer/es/plugins/dynamicBg/index.js +5 -4
  1001. package/dist/lib/node_modules/xgplayer/es/plugins/enter/index.js +4 -4
  1002. package/dist/lib/node_modules/xgplayer/es/plugins/error/index.js +9 -4
  1003. package/dist/lib/node_modules/xgplayer/es/plugins/fpsDetect/index.js +4 -4
  1004. package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +5 -4
  1005. package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/index.js +8 -4
  1006. package/dist/lib/node_modules/xgplayer/es/plugins/gapJump/index.js +4 -4
  1007. package/dist/lib/node_modules/xgplayer/es/plugins/keyboard/index.js +4 -4
  1008. package/dist/lib/node_modules/xgplayer/es/plugins/loading/index.js +7 -4
  1009. package/dist/lib/node_modules/xgplayer/es/plugins/logger/index.js +4 -4
  1010. package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/index.js +16 -4
  1011. package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +7 -4
  1012. package/dist/lib/node_modules/xgplayer/es/plugins/mobile/index.js +22 -4
  1013. package/dist/lib/node_modules/xgplayer/es/plugins/mobile/touch.js +4 -4
  1014. package/dist/lib/node_modules/xgplayer/es/plugins/pc/index.js +4 -4
  1015. package/dist/lib/node_modules/xgplayer/es/plugins/pip/index.js +11 -4
  1016. package/dist/lib/node_modules/xgplayer/es/plugins/play/index.js +8 -4
  1017. package/dist/lib/node_modules/xgplayer/es/plugins/playNext/index.js +10 -4
  1018. package/dist/lib/node_modules/xgplayer/es/plugins/playbackRate/index.js +4 -4
  1019. package/dist/lib/node_modules/xgplayer/es/plugins/poster/index.js +5 -4
  1020. package/dist/lib/node_modules/xgplayer/es/plugins/progress/index.js +10 -4
  1021. package/dist/lib/node_modules/xgplayer/es/plugins/progress/innerList.js +4 -4
  1022. package/dist/lib/node_modules/xgplayer/es/plugins/progress/miniProgress.js +7 -4
  1023. package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +4 -4
  1024. package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -4
  1025. package/dist/lib/node_modules/xgplayer/es/plugins/prompt/index.js +6 -4
  1026. package/dist/lib/node_modules/xgplayer/es/plugins/replay/index.js +6 -4
  1027. package/dist/lib/node_modules/xgplayer/es/plugins/rotate/index.js +9 -4
  1028. package/dist/lib/node_modules/xgplayer/es/plugins/screenShot/index.js +9 -4
  1029. package/dist/lib/node_modules/xgplayer/es/plugins/start/index.js +7 -4
  1030. package/dist/lib/node_modules/xgplayer/es/plugins/stats/index.js +4 -4
  1031. package/dist/lib/node_modules/xgplayer/es/plugins/testspeed/index.js +4 -4
  1032. package/dist/lib/node_modules/xgplayer/es/plugins/time/index.js +9 -4
  1033. package/dist/lib/node_modules/xgplayer/es/plugins/time/timesegments.js +4 -4
  1034. package/dist/lib/node_modules/xgplayer/es/plugins/volume/index.js +14 -4
  1035. package/dist/lib/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +4 -4
  1036. package/dist/lib/node_modules/xgplayer/es/presets/default.js +4 -4
  1037. package/dist/lib/node_modules/xgplayer/es/state.js +4 -4
  1038. package/dist/lib/node_modules/xgplayer/es/stateClassMap.js +4 -4
  1039. package/dist/lib/node_modules/xgplayer/es/utils/database.js +4 -4
  1040. package/dist/lib/node_modules/xgplayer/es/utils/debug.js +4 -4
  1041. package/dist/lib/node_modules/xgplayer/es/utils/draggabilly.js +4 -4
  1042. package/dist/lib/node_modules/xgplayer/es/utils/sniffer.js +4 -4
  1043. package/dist/lib/node_modules/xgplayer/es/utils/util.js +4 -4
  1044. package/dist/lib/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +4 -4
  1045. package/dist/lib/node_modules/xgplayer/es/version.js +4 -4
  1046. package/dist/lib/packages/components/index.js +4 -4
  1047. package/dist/lib/packages/hooks/dist/index.js +14 -0
  1048. package/dist/lib/packages/utils/dist/index.js +14 -0
  1049. package/dist/lib/styles/tokens.css +3 -3
  1050. package/index.d.ts +227 -113
  1051. package/package.json +26 -28
  1052. package/dist/es/Grid/src/Grid.css +0 -14
  1053. package/dist/es/Grid/src/Grid.vue.js +0 -14
  1054. package/dist/es/Grid/src/components/ActionBar.css +0 -14
  1055. package/dist/es/Grid/src/components/ActionBar.vue.js +0 -14
  1056. package/dist/es/Grid/src/components/CellEditor.vue.js +0 -14
  1057. package/dist/es/Grid/src/components/CellEditor2.css +0 -14
  1058. package/dist/es/Grid/src/components/ColumnFilter.css +0 -14
  1059. package/dist/es/Grid/src/components/ColumnFilter.vue.js +0 -14
  1060. package/dist/es/Grid/src/components/ColumnSettings.css +0 -14
  1061. package/dist/es/Grid/src/components/ColumnSettings.vue.js +0 -14
  1062. package/dist/es/Grid/src/components/DataTable.css +0 -14
  1063. package/dist/es/Grid/src/components/DataTable.vue.js +0 -14
  1064. package/dist/es/Grid/src/components/Pager.css +0 -14
  1065. package/dist/es/Grid/src/components/Pager.vue.js +0 -14
  1066. package/dist/es/Grid/src/components/QueryBar.css +0 -14
  1067. package/dist/es/Grid/src/components/QueryBar.vue.js +0 -14
  1068. package/dist/es/Grid/src/composables/useCellEditor.js +0 -14
  1069. package/dist/es/Grid/src/composables/useGridTable.js +0 -14
  1070. package/dist/es/Grid/src/styles/table.css +0 -14
  1071. package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
  1072. package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
  1073. package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
  1074. package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +0 -14
  1075. package/dist/lib/Grid/src/Grid.css +0 -14
  1076. package/dist/lib/Grid/src/Grid.vue.js +0 -14
  1077. package/dist/lib/Grid/src/components/ActionBar.css +0 -14
  1078. package/dist/lib/Grid/src/components/ActionBar.vue.js +0 -14
  1079. package/dist/lib/Grid/src/components/CellEditor.vue.js +0 -14
  1080. package/dist/lib/Grid/src/components/CellEditor2.css +0 -14
  1081. package/dist/lib/Grid/src/components/ColumnFilter.css +0 -14
  1082. package/dist/lib/Grid/src/components/ColumnFilter.vue.js +0 -14
  1083. package/dist/lib/Grid/src/components/ColumnSettings.css +0 -14
  1084. package/dist/lib/Grid/src/components/ColumnSettings.vue.js +0 -14
  1085. package/dist/lib/Grid/src/components/DataTable.css +0 -14
  1086. package/dist/lib/Grid/src/components/DataTable.vue.js +0 -14
  1087. package/dist/lib/Grid/src/components/Pager.css +0 -14
  1088. package/dist/lib/Grid/src/components/Pager.vue.js +0 -14
  1089. package/dist/lib/Grid/src/components/QueryBar.css +0 -14
  1090. package/dist/lib/Grid/src/components/QueryBar.vue.js +0 -14
  1091. package/dist/lib/Grid/src/composables/useCellEditor.js +0 -14
  1092. package/dist/lib/Grid/src/composables/useGridTable.js +0 -14
  1093. package/dist/lib/Grid/src/styles/table.css +0 -14
  1094. package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
  1095. package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
  1096. package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
  1097. package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.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.5
11
- Build Time: 2026/3/3 17:22:50
12
- Build Commit: a388255c630130f5e69ede988a8585cdbdc065c1
10
+ Version: 1.1.7
11
+ Build Time: 2026/3/13 18:25:06
12
+ Build Commit: 0b162dea954baa715e67b70f80401a571205058a
13
13
  */
14
- const e=1024;let t=0;class r{constructor(e,t){this.from=e,this.to=t}}class n{constructor(e={}){this.id=t++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=h.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}n.closedBy=new n({deserialize:e=>e.split(" ")}),n.openedBy=new n({deserialize:e=>e.split(" ")}),n.group=new n({deserialize:e=>e.split(" ")}),n.isolate=new n({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),n.contextHash=new n({perNode:!0}),n.lookAhead=new n({perNode:!0}),n.mounted=new n({perNode:!0});class i{constructor(e,t,r,n=!1){this.tree=e,this.overlay=t,this.parser=r,this.bracketed=n}static get(e){return e&&e.props&&e.props[n.mounted.id]}}const s=/* @__PURE__ */Object.create(null);class h{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?/* @__PURE__ */Object.create(null):s,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new h(e.name||"",t,e.id,r);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(n.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=/* @__PURE__ */Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(n.group),i=-1;i<(r?r.length:0);i++){let n=t[i<0?e.name:r[i]];if(n)return n}}}}h.none=new h("",
15
- /* @__PURE__ */Object.create(null),0,8);class o{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);if(e){n||(n=Object.assign({},r.props));let t=e[1],i=e[0];i.combine&&i.id in n&&(t=i.combine(n[i.id],t)),n[i.id]=t}}t.push(n?new h(r.name,n,r.id,r.flags):r)}return new o(t)}}const l=/* @__PURE__ */new WeakMap,f=/* @__PURE__ */new WeakMap;var u,a;(a=u||(u={}))[a.ExcludeBuffers=1]="ExcludeBuffers",a[a.IncludeAnonymous=2]="IncludeAnonymous",a[a.IgnoreMounts=4]="IgnoreMounts",a[a.IgnoreOverlays=8]="IgnoreOverlays",a[a.EnterBracketed=16]="EnterBracketed";class d{constructor(e,t,r,n,i){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,i&&i.length){this.props=/* @__PURE__ */Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=i.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let r of this.children){let e=r.toString();e&&(t&&(t+=","),t+=e)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new A(this.topNode,e)}cursorAt(e,t=0,r=0){let n=l.get(this)||this.topNode,i=new A(n);return i.moveTo(e,t),l.set(this,i._tree),i}get topNode(){return new y(this,0,0,null)}resolve(e,t=0){let r=x(l.get(this)||this.topNode,e,t,!1);return l.set(this,r),r}resolveInner(e,t=0){let r=x(f.get(this)||this.topNode,e,t,!0);return f.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),s=null;for(let h=n instanceof y?n:n.context.parent;h;h=h.parent)if(h.index<0){let e=h.parent;(s||(s=[n])).push(e.resolve(t,r)),h=e}else{let e=i.get(h.tree);if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){let i=new y(e.tree,e.overlay[0].from+h.from,-1,h);(s||(s=[n])).push(x(i,t,r,!1))}}return s?k(s):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:i=this.length}=e,s=e.mode||0,h=(s&u.IncludeAnonymous)>0;for(let o=this.cursor(s|u.IncludeAnonymous);;){let e=!1;if(o.from<=i&&o.to>=n&&(!h&&o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&r&&(h||!o.type.isAnonymous)&&r(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:z(h.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,r)=>new d(this.type,e,t,r,this.propValues),e.makeTree||((e,t,r)=>new d(h.none,e,t,r)))}static build(t){return function(t){var r;let{buffer:i,nodeSet:s,maxBufferLength:h=e,reused:o=[],minRepeatType:l=s.types.length}=t,f=Array.isArray(i)?new p(i,i.length):i,u=s.types,a=0,g=0;function x(e,t,r,n,i,d){let{id:p,start:k,end:C,size:A}=f,S=g,B=a;if(A<0){if(f.next(),-1==A){let t=o[p];return r.push(t),void n.push(k-e)}if(-3==A)return void(a=p);if(-4==A)return void(g=p);throw new RangeError(`Unrecognized record size: ${A}`)}let N,I,E=u[p],O=k-e;if(C-k<=h&&(I=_(f.pos-t,i))){let t=new Uint16Array(I.size-I.skip),r=f.pos-I.size,n=t.length;for(;f.pos>r;)n=v(I.start,t,n);N=new c(t,C-I.start,s),O=I.start-e}else{let e=f.pos-A;f.next();let t=[],r=[],n=p>=l?p:-1,i=0,s=C;for(;f.pos>e;)n>=0&&f.id==n&&f.size>=0?(f.end<=s-h&&(m(t,r,k,i,f.end,s,n,S,B),i=t.length,s=f.end),f.next()):d>2500?b(k,e,t,r):x(k,e,t,r,n,d+1);if(n>=0&&i>0&&i<t.length&&m(t,r,k,i,k,s,n,S,B),t.reverse(),r.reverse(),n>-1&&i>0){let e=y(E,B);N=z(E,t,r,0,t.length,0,C-k,e,e)}else N=w(E,t,r,C-k,S-C,B)}r.push(N),n.push(O)}function b(e,t,r,n){let i=[],o=0,l=-1;for(;f.pos>t;){let{id:e,start:t,end:r,size:n}=f;if(n>4)f.next();else{if(l>-1&&t<l)break;l<0&&(l=r-h),i.push(e,t,r),o++,f.next()}}if(o){let t=new Uint16Array(4*o),h=i[i.length-2];for(let e=i.length-3,r=0;e>=0;e-=3)t[r++]=i[e],t[r++]=i[e+1]-h,t[r++]=i[e+2]-h,t[r++]=r;r.push(new c(t,i[2]-h,s)),n.push(h-e)}}function y(e,t){return(r,i,s)=>{let h,o,l=0,f=r.length-1;if(f>=0&&(h=r[f])instanceof d){if(!f&&h.type==e&&h.length==s)return h;(o=h.prop(n.lookAhead))&&(l=i[f]+h.length+o)}return w(e,r,i,s,l,t)}}function m(e,t,r,n,i,h,o,l,f){let u=[],a=[];for(;e.length>n;)u.push(e.pop()),a.push(t.pop()+r-i);e.push(w(s.types[o],u,a,h-i,l-h,f)),t.push(i-r)}function w(e,t,r,i,s,h,o){if(h){let e=[n.contextHash,h];o=o?[e].concat(o):[e]}if(s>25){let e=[n.lookAhead,s];o=o?[e].concat(o):[e]}return new d(e,t,r,i,o)}function _(e,t){let r=f.fork(),n=0,i=0,s=0,o=r.end-h,u={size:0,start:0,skip:0};e:for(let h=r.pos-e;r.pos>h;){let e=r.size;if(r.id==t&&e>=0){u.size=n,u.start=i,u.skip=s,s+=4,n+=4,r.next();continue}let f=r.pos-e;if(e<0||f<h||r.start<o)break;let a=r.id>=l?4:0,d=r.start;for(r.next();r.pos>f;){if(r.size<0){if(-3!=r.size&&-4!=r.size)break e;a+=4}else r.id>=l&&(a+=4);r.next()}i=d,n+=e,s+=a}return(t<0||n==e)&&(u.size=n,u.start=i,u.skip=s),u.size>4?u:void 0}function v(e,t,r){let{id:n,start:i,end:s,size:h}=f;if(f.next(),h>=0&&n<l){let o=r;if(h>4){let n=f.pos-(h-4);for(;f.pos>n;)r=v(e,t,r)}t[--r]=o,t[--r]=s-e,t[--r]=i-e,t[--r]=n}else-3==h?a=n:-4==h&&(g=n);return r}let k=[],C=[];for(;f.pos>0;)x(t.start||0,t.bufferStart||0,k,C,-1,0);let A=null!==(r=t.length)&&void 0!==r?r:k.length?C[0]+k[0].length:0;return new d(u[t.topID],k.reverse(),C.reverse(),A)}(t)}}d.empty=new d(h.none,[],[],0);class p{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new p(this.buffer,this.index)}}class c{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return h.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],i=n.name;if(/\W/.test(i)&&!n.isError&&(i=JSON.stringify(i)),r==(e+=4))return i;let s=[];for(;e<r;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,r,n,i){let{buffer:s}=this,h=-1;for(let o=e;o!=t&&!(g(i,n,s[o+1],s[o+2])&&(h=o,r>0));o=s[o+3]);return h}slice(e,t,r){let n=this.buffer,i=new Uint16Array(t-e),s=0;for(let h=e,o=0;h<t;){i[o++]=n[h++],i[o++]=n[h++]-r;let t=i[o++]=n[h++]-r;i[o++]=n[h++]-e,s=Math.max(s,t)}return new c(i,s,this.set)}}function g(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function x(e,t,r,n){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof y&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:u.IgnoreOverlays;if(n)for(let h=e,o=h.parent;o;h=o,o=h.parent)h instanceof y&&h.index<0&&(null===(i=o.enter(t,r,s))||void 0===i?void 0:i.from)!=h.from&&(e=o);for(;;){let n=e.enter(t,r,s);if(!n)return e;e=n}}class b{cursor(e=0){return new A(this,e)}getChild(e,t=null,r=null){let n=m(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return m(this,e,t,r)}resolve(e,t=0){return x(this,e,t,!1)}resolveInner(e,t=0){return x(this,e,t,!0)}matchContext(e){return w(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class y extends b{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,n,s=0){for(let h=this;;){for(let{children:o,positions:l}=h._tree,f=t>0?o.length:-1;e!=f;e+=t){let f,a=o[e],p=l[e]+h.from;if(s&u.EnterBracketed&&a instanceof d&&(f=i.get(a))&&!f.overlay&&f.bracketed&&r>=p&&r<=p+a.length||g(n,r,p,p+a.length))if(a instanceof c){if(s&u.ExcludeBuffers)continue;let i=a.findChild(0,a.buffer.length,t,r-p,n);if(i>-1)return new v(new _(h,a,e,p),null,i)}else if(s&u.IncludeAnonymous||!a.type.isAnonymous||S(a)){let o;if(!(s&u.IgnoreMounts)&&(o=i.get(a))&&!o.overlay)return new y(o.tree,p,e,h);let l=new y(a,p,e,h);return s&u.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?a.children.length-1:0,t,r,n,s)}}if(s&u.IncludeAnonymous||!h.type.isAnonymous)return null;if(e=h.index>=0?h.index+t:t<0?-1:h._parent._tree.children.length,h=h._parent,!h)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,r=0){let n;if(!(r&u.IgnoreOverlays)&&(n=i.get(this._tree))&&n.overlay){let i=e-this.from,s=r&u.EnterBracketed&&n.bracketed;for(let{from:e,to:r}of n.overlay)if((t>0||s?e<=i:e<i)&&(t<0||s?r>=i:r>i))return new y(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function m(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=r)for(let h=!1;!h;)if(h=i.type.is(r),!i.nextSibling())return s;for(;;){if(null!=n&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==n?s:[]}}function w(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class _{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class v extends b{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new v(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,r=0){if(r&u.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new v(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new v(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new v(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s)),t.push(0)}return new d(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function k(e){if(!e.length)return null;let t=0,r=e[0];for(let s=1;s<e.length;s++){let n=e[s];(n.from>r.from||n.to<r.to)&&(r=n,t=s)}let n=r instanceof y&&r.index<0?null:r.parent,i=e.slice();return n?i[t]=n:i.splice(t,1),new C(i,r)}class C{constructor(e,t){this.heads=e,this.node=t}get next(){return k(this.heads)}}class A{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~u.EnterBracketed,e instanceof y)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof y?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){return this.buffer?!(r&u.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&u.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&u.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:r}=n)}else({index:t,_parent:r}=this._tree);for(;r;({index:t,_parent:r}=r))if(t>-1)for(let n=t+e,i=e<0?-1:r._tree.children.length;n!=i;n+=e){let e=r._tree.children[n];if(this.mode&u.IncludeAnonymous||e instanceof c||!e.type.isAnonymous||S(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)e:for(let n=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,r=i+1;break e}n=this.stack[--i]}for(let n=r;n<this.stack.length;n++)t=new v(this.buffer,t,this.stack[n]);return this.bufferNode=new v(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return w(this.node.parent,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,i=this.stack.length-1;n>=0;i--){if(i<0)return w(this._tree,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function S(e){return e.children.some(e=>e instanceof c||!e.type.isAnonymous||S(e))}const B=/* @__PURE__ */new WeakMap;function N(e,t){if(!e.isAnonymous||t instanceof c||t.type!=e)return 1;let r=B.get(t);if(null==r){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof d)){r=1;break}r+=N(e,n)}B.set(t,r)}return r}function z(e,t,r,n,i,s,h,o,l){let f=0;for(let p=n;p<i;p++)f+=N(e,t[p]);let u=Math.ceil(1.5*f/8),a=[],d=[];return function t(r,n,i,h,o){for(let f=i;f<h;){let i=f,p=n[f],c=N(e,r[f]);for(f++;f<h;f++){let t=N(e,r[f]);if(c+t>=u)break;c+=t}if(f==i+1){if(c>u){let e=r[i];t(e.children,e.positions,0,e.children.length,n[i]+o);continue}a.push(r[i])}else{let t=n[f-1]+r[f-1].length-p;a.push(z(e,r,n,i,f,p,t,null,l))}d.push(p+o-s)}}(t,r,n,i,0),(o||l)(a,d,h)}class I{constructor(){this.map=/* @__PURE__ */new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=/* @__PURE__ */new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof v?this.setBuffer(e.context.buffer,e.index,t):e instanceof y&&this.map.set(e.tree,t)}get(e){return e instanceof v?this.getBuffer(e.context.buffer,e.index):e instanceof y?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class E{constructor(e,t,r,n,i=!1,s=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new E(0,e.length,e,0,!1,r)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],i=1,s=e.length?e[0]:null;for(let h=0,o=0,l=0;;h++){let f=h<t.length?t[h]:null,u=f?f.fromA:1e9;if(u-o>=r)for(;s&&s.from<u;){let t=s;if(o>=t.from||u<=t.to||l){let e=Math.max(t.from,o)-l,r=Math.min(t.to,u)-l;t=e>=r?null:new E(e,r,t.tree,t.offset+l,h>0,!!f)}if(t&&n.push(t),s.to>u)break;s=i<e.length?e[i++]:null}if(!f)break;o=f.toA,l=f.toA-f.toB}return n}}class O{startParse(e,t,n){return"string"==typeof e&&(e=new M(e)),n=n?n.length?n.map(e=>new r(e.from,e.to)):[new r(0,0)]:[new r(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class M{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new n({perNode:!0});export{e as DefaultBufferLength,u as IterMode,i as MountedTree,n as NodeProp,o as NodeSet,h as NodeType,I as NodeWeakMap,O as Parser,d as Tree,c as TreeBuffer,A as TreeCursor,E as TreeFragment};
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
+ };