@gsc-basic/components 1.1.7 → 1.1.9

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 (1055) hide show
  1. package/dist/es/Button/index.js +9 -4
  2. package/dist/es/Button/src/Button.css +3 -3
  3. package/dist/es/Button/src/Button.vue.js +44 -4
  4. package/dist/es/Button/src/Button2.css +3 -3
  5. package/dist/es/CodeEditor/index.js +9 -4
  6. package/dist/es/CodeEditor/src/index.css +3 -3
  7. package/dist/es/CodeEditor/src/index.vue.js +148 -4
  8. package/dist/es/CodeEditor/src/index2.css +3 -3
  9. package/dist/es/CodeEditor/src/index3.css +3 -3
  10. package/dist/es/ConfigProvider/index.js +9 -4
  11. package/dist/es/ConfigProvider/src/configProvider.js +17 -4
  12. package/dist/es/ConfigProvider/src/configProviderProps.js +25 -4
  13. package/dist/es/ConfigProvider/src/constants.js +12 -4
  14. package/dist/es/ConfigProvider/src/useGlobalConfig.js +48 -4
  15. package/dist/es/CountTo/index.js +9 -4
  16. package/dist/es/CountTo/src/index.css +4 -4
  17. package/dist/es/CountTo/src/index.vue.js +126 -4
  18. package/dist/es/Ellipsis/index.js +9 -4
  19. package/dist/es/Ellipsis/src/components/JsEllipsis.css +3 -3
  20. package/dist/es/Ellipsis/src/components/JsEllipsis.vue.js +181 -4
  21. package/dist/es/Ellipsis/src/components/NativeEllipsis.css +3 -3
  22. package/dist/es/Ellipsis/src/components/NativeEllipsis.vue.js +44 -4
  23. package/dist/es/Ellipsis/src/components/NativeEllipsis2.css +3 -3
  24. package/dist/es/Ellipsis/src/index.css +3 -3
  25. package/dist/es/Ellipsis/src/index.vue.js +96 -4
  26. package/dist/es/Ellipsis/src/utils/utils.js +59 -4
  27. package/dist/es/Form/index.js +9 -4
  28. package/dist/es/Form/src/Form.css +3 -3
  29. package/dist/es/Form/src/Form.vue.js +377 -4
  30. package/dist/es/Form/src/Form2.css +3 -3
  31. package/dist/es/Form/src/styles/form.css +3 -3
  32. package/dist/es/Marquee/index.js +9 -4
  33. package/dist/es/Marquee/src/index.css +3 -3
  34. package/dist/es/Marquee/src/index.vue.js +191 -4
  35. package/dist/es/Marquee/src/index2.css +3 -3
  36. package/dist/es/Overlay/index.js +64 -4
  37. package/dist/es/Overlay/src/Message.css +3 -3
  38. package/dist/es/Overlay/src/Message.vue.js +39 -4
  39. package/dist/es/Overlay/src/Message2.css +3 -3
  40. package/dist/es/Overlay/src/Modal.css +3 -3
  41. package/dist/es/Overlay/src/Modal.vue.js +70 -4
  42. package/dist/es/Overlay/src/Modal2.css +3 -3
  43. package/dist/es/Overlay/src/Notice.css +3 -3
  44. package/dist/es/Overlay/src/Notice.vue.js +40 -4
  45. package/dist/es/Overlay/src/Notice2.css +3 -3
  46. package/dist/es/Overlay/src/Tooltip.css +3 -3
  47. package/dist/es/Overlay/src/Tooltip.vue.js +87 -4
  48. package/dist/es/Overlay/src/Tooltip2.css +3 -3
  49. package/dist/es/RichTextEditor/index.js +9 -4
  50. package/dist/es/RichTextEditor/src/ToolbarPanel.css +3 -3
  51. package/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +162 -4
  52. package/dist/es/RichTextEditor/src/ToolbarPanel2.css +3 -3
  53. package/dist/es/RichTextEditor/src/components/BlockquoteButton.css +4 -4
  54. package/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +40 -4
  55. package/dist/es/RichTextEditor/src/components/CodeBlockButton.css +4 -4
  56. package/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +40 -4
  57. package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
  58. package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +40 -4
  59. package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
  60. package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +58 -4
  61. package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
  62. package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +69 -4
  63. package/dist/es/RichTextEditor/src/components/ImageUploadButton.css +4 -4
  64. package/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +74 -4
  65. package/dist/es/RichTextEditor/src/components/LinkPopover.css +4 -4
  66. package/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +92 -4
  67. package/dist/es/RichTextEditor/src/components/LinkPopover2.css +4 -4
  68. package/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
  69. package/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +76 -4
  70. package/dist/es/RichTextEditor/src/components/MarkButton.css +4 -4
  71. package/dist/es/RichTextEditor/src/components/MarkButton.vue.js +89 -4
  72. package/dist/es/RichTextEditor/src/components/TableButton.css +3 -3
  73. package/dist/es/RichTextEditor/src/components/TableButton.vue.js +165 -4
  74. package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
  75. package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +85 -4
  76. package/dist/es/RichTextEditor/src/components/TextColorPopover.css +3 -3
  77. package/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +40 -4
  78. package/dist/es/RichTextEditor/src/components/ToolbarGroup.css +3 -3
  79. package/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +19 -4
  80. package/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
  81. package/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +17 -4
  82. package/dist/es/RichTextEditor/src/components/UndoRedoButton.css +4 -4
  83. package/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +54 -4
  84. package/dist/es/RichTextEditor/src/components/VideoUploadButton.css +4 -4
  85. package/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +74 -4
  86. package/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
  87. package/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +101 -4
  88. package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
  89. package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +364 -4
  90. package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
  91. package/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
  92. package/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +137 -4
  93. package/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
  94. package/dist/es/RichTextEditor/src/constant/index.js +53 -4
  95. package/dist/es/RichTextEditor/src/extensions/styledTable.js +112 -0
  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 +165 -4
  99. package/dist/es/RichTextEditor/src/index2.css +4 -4
  100. package/dist/es/RichTextEditor/src/props.js +28 -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/{node_modules/@tanstack/store/dist/esm/types.js → _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/es/node_modules/lodash-es/_baseIsNaN.js +19 -0
  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/lodash-es/_cacheHas.js +19 -0
  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/node_modules/title-case/dist/index.js +20 -0
  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 +3 -3
  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 +3 -3
  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 +4 -4
  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/styledTable.js +14 -0
  621. package/dist/lib/RichTextEditor/src/extensions/video.js +4 -4
  622. package/dist/lib/RichTextEditor/src/index.css +4 -4
  623. package/dist/lib/RichTextEditor/src/index.vue.js +4 -4
  624. package/dist/lib/RichTextEditor/src/index2.css +4 -4
  625. package/dist/lib/RichTextEditor/src/props.js +4 -4
  626. package/dist/lib/ScaleScreen/index.js +4 -4
  627. package/dist/lib/ScaleScreen/src/index.css +3 -3
  628. package/dist/lib/ScaleScreen/src/index.vue.js +4 -4
  629. package/dist/lib/ScaleScreen/src/index2.css +3 -3
  630. package/dist/lib/Transition/index.js +4 -4
  631. package/dist/lib/Transition/src/CollapseTransition.css +3 -3
  632. package/dist/lib/Transition/src/CollapseTransition.vue.js +4 -4
  633. package/dist/lib/Transition/src/CollapseTransition2.css +3 -3
  634. package/dist/lib/Transition/src/CreateTransition.js +4 -4
  635. package/dist/lib/Transition/src/ExpandTransition.js +4 -4
  636. package/dist/lib/Transition/src/style/index.css +3 -3
  637. package/dist/lib/Transition/style.js +4 -4
  638. package/dist/lib/VideoBackground/index.js +4 -4
  639. package/dist/lib/VideoBackground/src/helper.js +4 -4
  640. package/dist/lib/VideoBackground/src/index.css +3 -3
  641. package/dist/lib/VideoBackground/src/index.vue.js +4 -4
  642. package/dist/lib/VideoBackground/src/index2.css +3 -3
  643. package/dist/lib/VideoBackground/src/index3.css +3 -3
  644. package/dist/lib/VideoBackground/src/videoBackground.js +4 -4
  645. package/dist/lib/VideoPlayer/index.js +4 -4
  646. package/dist/lib/VideoPlayer/src/index.css +3 -3
  647. package/dist/lib/VideoPlayer/src/index.vue.js +4 -4
  648. package/dist/lib/VirtualScroll/index.js +4 -4
  649. package/dist/lib/VirtualScroll/src/index.css +3 -3
  650. package/dist/lib/VirtualScroll/src/index.vue.js +4 -4
  651. package/dist/lib/VirtualScroll/src/index.vue2.js +4 -4
  652. package/dist/lib/VirtualScroll/src/index2.css +3 -3
  653. package/dist/lib/_virtual/_commonjsHelpers.js +4 -4
  654. package/dist/lib/_virtual/_plugin-vue_export-helper.js +4 -4
  655. package/dist/lib/_virtual/delegate.js +4 -4
  656. package/dist/lib/_virtual/download.js +4 -4
  657. package/dist/lib/_virtual/download2.js +4 -4
  658. package/dist/lib/_virtual/index.js +4 -4
  659. package/dist/lib/_virtual/index2.js +4 -4
  660. package/dist/lib/_virtual/index3.js +14 -0
  661. package/dist/lib/{node_modules/@tanstack/store/dist/esm/types.js → _virtual/index4.js} +4 -4
  662. package/dist/lib/hooks/useLocale.js +4 -4
  663. package/dist/lib/hooks/useNamespace.js +4 -4
  664. package/dist/lib/index.js +4 -4
  665. package/dist/lib/locale/lang/en-US.js +4 -4
  666. package/dist/lib/locale/lang/ja-JP.js +4 -4
  667. package/dist/lib/locale/lang/zh-CN.js +4 -4
  668. package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +4 -4
  669. package/dist/lib/node_modules/@codemirror/commands/dist/index.js +4 -4
  670. package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +4 -4
  671. package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +16 -4
  672. package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +4 -4
  673. package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +6 -4
  674. package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +5 -4
  675. package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +4 -4
  676. package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +4 -4
  677. package/dist/lib/node_modules/@codemirror/language/dist/index.js +4 -4
  678. package/dist/lib/node_modules/@codemirror/lint/dist/index.js +4 -4
  679. package/dist/lib/node_modules/@codemirror/search/dist/index.js +5 -4
  680. package/dist/lib/node_modules/@codemirror/state/dist/index.js +8 -4
  681. package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +4 -4
  682. package/dist/lib/node_modules/@codemirror/view/dist/index.js +8 -4
  683. package/dist/lib/node_modules/@lezer/common/dist/index.js +4 -4
  684. package/dist/lib/node_modules/@lezer/highlight/dist/index.js +4 -4
  685. package/dist/lib/node_modules/@lezer/java/dist/index.js +4 -4
  686. package/dist/lib/node_modules/@lezer/javascript/dist/index.js +4 -4
  687. package/dist/lib/node_modules/@lezer/json/dist/index.js +4 -4
  688. package/dist/lib/node_modules/@lezer/lr/dist/index.js +4 -4
  689. package/dist/lib/node_modules/@lezer/python/dist/index.js +4 -4
  690. package/dist/lib/node_modules/@lezer/xml/dist/index.js +4 -4
  691. package/dist/lib/node_modules/@lezer/yaml/dist/index.js +4 -4
  692. package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +4 -4
  693. package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +4 -4
  694. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +4 -4
  695. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +4 -4
  696. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +4 -4
  697. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +4 -4
  698. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +4 -4
  699. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +4 -4
  700. package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +4 -4
  701. package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +4 -4
  702. package/dist/lib/node_modules/@tanstack/store/dist/esm/alien.js +14 -0
  703. package/dist/lib/node_modules/@tanstack/store/dist/esm/atom.js +14 -0
  704. package/dist/lib/node_modules/@tanstack/store/dist/esm/batch.js +14 -0
  705. package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +4 -4
  706. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +4 -4
  707. package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +4 -4
  708. package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +4 -4
  709. package/dist/lib/node_modules/@tiptap/core/dist/index.js +94 -4
  710. package/dist/lib/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +4 -4
  711. package/dist/lib/node_modules/@tiptap/extension-blockquote/dist/index.js +8 -4
  712. package/dist/lib/node_modules/@tiptap/extension-bold/dist/index.js +4 -4
  713. package/dist/lib/node_modules/@tiptap/extension-character-count/dist/index.js +4 -4
  714. package/dist/lib/node_modules/@tiptap/extension-code/dist/index.js +4 -4
  715. package/dist/lib/node_modules/@tiptap/extension-code-block/dist/index.js +21 -4
  716. package/dist/lib/node_modules/@tiptap/extension-document/dist/index.js +6 -4
  717. package/dist/lib/node_modules/@tiptap/extension-hard-break/dist/index.js +6 -4
  718. package/dist/lib/node_modules/@tiptap/extension-heading/dist/index.js +4 -4
  719. package/dist/lib/node_modules/@tiptap/extension-highlight/dist/index.js +4 -4
  720. package/dist/lib/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +4 -4
  721. package/dist/lib/node_modules/@tiptap/extension-image/dist/index.js +4 -4
  722. package/dist/lib/node_modules/@tiptap/extension-italic/dist/index.js +4 -4
  723. package/dist/lib/node_modules/@tiptap/extension-link/dist/index.js +4 -4
  724. package/dist/lib/node_modules/@tiptap/extension-list/dist/index.js +15 -4
  725. package/dist/lib/node_modules/@tiptap/extension-paragraph/dist/index.js +4 -4
  726. package/dist/lib/node_modules/@tiptap/extension-strike/dist/index.js +4 -4
  727. package/dist/lib/node_modules/@tiptap/extension-subscript/dist/index.js +4 -4
  728. package/dist/lib/node_modules/@tiptap/extension-superscript/dist/index.js +4 -4
  729. package/dist/lib/node_modules/@tiptap/extension-table/dist/index.js +8 -4
  730. package/dist/lib/node_modules/@tiptap/extension-task-item/dist/index.js +4 -4
  731. package/dist/lib/node_modules/@tiptap/extension-task-list/dist/index.js +4 -4
  732. package/dist/lib/node_modules/@tiptap/extension-text/dist/index.js +4 -4
  733. package/dist/lib/node_modules/@tiptap/extension-text-align/dist/index.js +4 -4
  734. package/dist/lib/node_modules/@tiptap/extension-text-style/dist/index.js +4 -4
  735. package/dist/lib/node_modules/@tiptap/extension-underline/dist/index.js +4 -4
  736. package/dist/lib/node_modules/@tiptap/extensions/dist/index.js +4 -4
  737. package/dist/lib/node_modules/@tiptap/html/dist/index.js +14 -0
  738. package/dist/lib/node_modules/@tiptap/starter-kit/dist/index.js +4 -4
  739. package/dist/lib/node_modules/@tiptap/vue-3/dist/index.js +4 -4
  740. package/dist/lib/node_modules/@vueuse/core/dist/index.js +4 -4
  741. package/dist/lib/node_modules/@vueuse/shared/dist/index.js +4 -4
  742. package/dist/lib/node_modules/codemirror/dist/index.js +4 -4
  743. package/dist/lib/node_modules/crelt/index.js +4 -4
  744. package/dist/lib/node_modules/delegate/src/closest.js +4 -4
  745. package/dist/lib/node_modules/delegate/src/delegate.js +4 -4
  746. package/dist/lib/node_modules/downloadjs/download.js +6 -4
  747. package/dist/lib/node_modules/eventemitter3/index.js +4 -4
  748. package/dist/lib/node_modules/linkifyjs/dist/linkify.js +8 -4
  749. package/dist/lib/node_modules/lodash-es/_DataView.js +4 -4
  750. package/dist/lib/node_modules/lodash-es/_Hash.js +4 -4
  751. package/dist/lib/node_modules/lodash-es/_ListCache.js +4 -4
  752. package/dist/lib/node_modules/lodash-es/_Map.js +4 -4
  753. package/dist/lib/node_modules/lodash-es/_MapCache.js +4 -4
  754. package/dist/lib/node_modules/lodash-es/_Promise.js +4 -4
  755. package/dist/lib/node_modules/lodash-es/_Set.js +4 -4
  756. package/dist/lib/node_modules/lodash-es/_SetCache.js +14 -0
  757. package/dist/lib/node_modules/lodash-es/_Stack.js +4 -4
  758. package/dist/lib/node_modules/lodash-es/_Symbol.js +4 -4
  759. package/dist/lib/node_modules/lodash-es/_Uint8Array.js +4 -4
  760. package/dist/lib/node_modules/lodash-es/_WeakMap.js +4 -4
  761. package/dist/lib/node_modules/lodash-es/_apply.js +4 -4
  762. package/dist/lib/node_modules/lodash-es/_arrayEach.js +4 -4
  763. package/dist/lib/node_modules/lodash-es/_arrayFilter.js +4 -4
  764. package/dist/lib/node_modules/lodash-es/_arrayIncludes.js +14 -0
  765. package/dist/lib/node_modules/lodash-es/_arrayIncludesWith.js +14 -0
  766. package/dist/lib/node_modules/lodash-es/_arrayLikeKeys.js +4 -4
  767. package/dist/lib/node_modules/lodash-es/_arrayMap.js +4 -4
  768. package/dist/lib/node_modules/lodash-es/_arrayPush.js +4 -4
  769. package/dist/lib/node_modules/lodash-es/_arraySome.js +14 -0
  770. package/dist/lib/node_modules/lodash-es/_asciiToArray.js +4 -4
  771. package/dist/lib/node_modules/lodash-es/_assignMergeValue.js +14 -0
  772. package/dist/lib/node_modules/lodash-es/_assignValue.js +4 -4
  773. package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +4 -4
  774. package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +4 -4
  775. package/dist/lib/node_modules/lodash-es/_baseClone.js +4 -4
  776. package/dist/lib/node_modules/lodash-es/_baseCreate.js +14 -0
  777. package/dist/lib/node_modules/lodash-es/_baseFindIndex.js +14 -0
  778. package/dist/lib/node_modules/lodash-es/_baseFlatten.js +4 -4
  779. package/dist/lib/node_modules/lodash-es/_baseFor.js +14 -0
  780. package/dist/lib/node_modules/lodash-es/_baseGet.js +4 -4
  781. package/dist/lib/node_modules/lodash-es/_baseGetAllKeys.js +4 -4
  782. package/dist/lib/node_modules/lodash-es/_baseGetTag.js +4 -4
  783. package/dist/lib/node_modules/lodash-es/_baseIndexOf.js +14 -0
  784. package/dist/lib/node_modules/lodash-es/_baseIntersection.js +14 -0
  785. package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +4 -4
  786. package/dist/lib/node_modules/lodash-es/_baseIsEqual.js +14 -0
  787. package/dist/lib/node_modules/lodash-es/_baseIsEqualDeep.js +14 -0
  788. package/dist/lib/node_modules/lodash-es/_baseIsMap.js +4 -4
  789. package/dist/lib/node_modules/lodash-es/_baseIsNaN.js +14 -0
  790. package/dist/lib/node_modules/lodash-es/_baseIsNative.js +4 -4
  791. package/dist/lib/node_modules/lodash-es/_baseIsRegExp.js +4 -4
  792. package/dist/lib/node_modules/lodash-es/_baseIsSet.js +4 -4
  793. package/dist/lib/node_modules/lodash-es/_baseIsTypedArray.js +4 -4
  794. package/dist/lib/node_modules/lodash-es/_baseKeys.js +14 -0
  795. package/dist/lib/node_modules/lodash-es/_baseKeysIn.js +4 -4
  796. package/dist/lib/node_modules/lodash-es/_baseMerge.js +14 -0
  797. package/dist/lib/node_modules/lodash-es/_baseMergeDeep.js +14 -0
  798. package/dist/lib/node_modules/lodash-es/_baseRest.js +14 -0
  799. package/dist/lib/node_modules/lodash-es/_baseSetToString.js +4 -4
  800. package/dist/lib/node_modules/lodash-es/_baseSlice.js +4 -4
  801. package/dist/lib/node_modules/lodash-es/_baseTimes.js +4 -4
  802. package/dist/lib/node_modules/lodash-es/_baseToString.js +4 -4
  803. package/dist/lib/node_modules/lodash-es/_baseUnary.js +4 -4
  804. package/dist/lib/node_modules/lodash-es/_baseUniq.js +14 -0
  805. package/dist/lib/node_modules/lodash-es/_baseUnset.js +4 -4
  806. package/dist/lib/node_modules/lodash-es/_cacheHas.js +14 -0
  807. package/dist/lib/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
  808. package/dist/lib/node_modules/lodash-es/_castPath.js +4 -4
  809. package/dist/lib/node_modules/lodash-es/_castSlice.js +4 -4
  810. package/dist/lib/node_modules/lodash-es/_cloneArrayBuffer.js +4 -4
  811. package/dist/lib/node_modules/lodash-es/_cloneBuffer.js +4 -4
  812. package/dist/lib/node_modules/lodash-es/_cloneDataView.js +4 -4
  813. package/dist/lib/node_modules/lodash-es/_cloneRegExp.js +4 -4
  814. package/dist/lib/node_modules/lodash-es/_cloneSymbol.js +4 -4
  815. package/dist/lib/node_modules/lodash-es/_cloneTypedArray.js +4 -4
  816. package/dist/lib/node_modules/lodash-es/_copyArray.js +14 -0
  817. package/dist/lib/node_modules/lodash-es/_copyObject.js +4 -4
  818. package/dist/lib/node_modules/lodash-es/_coreJsData.js +4 -4
  819. package/dist/lib/node_modules/lodash-es/_createAssigner.js +14 -0
  820. package/dist/lib/node_modules/lodash-es/_createBaseFor.js +14 -0
  821. package/dist/lib/node_modules/lodash-es/_createCaseFirst.js +4 -4
  822. package/dist/lib/node_modules/lodash-es/_createSet.js +14 -0
  823. package/dist/lib/node_modules/lodash-es/_customOmitClone.js +4 -4
  824. package/dist/lib/node_modules/lodash-es/_defineProperty.js +4 -4
  825. package/dist/lib/node_modules/lodash-es/_equalArrays.js +14 -0
  826. package/dist/lib/node_modules/lodash-es/_equalByTag.js +14 -0
  827. package/dist/lib/node_modules/lodash-es/_equalObjects.js +14 -0
  828. package/dist/lib/node_modules/lodash-es/_flatRest.js +4 -4
  829. package/dist/lib/node_modules/lodash-es/_freeGlobal.js +4 -4
  830. package/dist/lib/node_modules/lodash-es/_getAllKeys.js +14 -0
  831. package/dist/lib/node_modules/lodash-es/_getAllKeysIn.js +4 -4
  832. package/dist/lib/node_modules/lodash-es/_getMapData.js +4 -4
  833. package/dist/lib/node_modules/lodash-es/_getNative.js +4 -4
  834. package/dist/lib/node_modules/lodash-es/_getPrototype.js +4 -4
  835. package/dist/lib/node_modules/lodash-es/_getRawTag.js +4 -4
  836. package/dist/lib/node_modules/lodash-es/_getSymbols.js +4 -4
  837. package/dist/lib/node_modules/lodash-es/_getSymbolsIn.js +4 -4
  838. package/dist/lib/node_modules/lodash-es/_getTag.js +4 -4
  839. package/dist/lib/node_modules/lodash-es/_getValue.js +4 -4
  840. package/dist/lib/node_modules/lodash-es/_hasUnicode.js +4 -4
  841. package/dist/lib/node_modules/lodash-es/_hashClear.js +4 -4
  842. package/dist/lib/node_modules/lodash-es/_hashDelete.js +4 -4
  843. package/dist/lib/node_modules/lodash-es/_hashGet.js +4 -4
  844. package/dist/lib/node_modules/lodash-es/_hashHas.js +4 -4
  845. package/dist/lib/node_modules/lodash-es/_hashSet.js +4 -4
  846. package/dist/lib/node_modules/lodash-es/_initCloneArray.js +4 -4
  847. package/dist/lib/node_modules/lodash-es/_initCloneByTag.js +4 -4
  848. package/dist/lib/node_modules/lodash-es/_initCloneObject.js +14 -0
  849. package/dist/lib/node_modules/lodash-es/_isFlattenable.js +4 -4
  850. package/dist/lib/node_modules/lodash-es/_isIndex.js +4 -4
  851. package/dist/lib/node_modules/lodash-es/_isIterateeCall.js +14 -0
  852. package/dist/lib/node_modules/lodash-es/_isKey.js +4 -4
  853. package/dist/lib/node_modules/lodash-es/_isKeyable.js +4 -4
  854. package/dist/lib/node_modules/lodash-es/_isMasked.js +4 -4
  855. package/dist/lib/node_modules/lodash-es/_isPrototype.js +4 -4
  856. package/dist/lib/node_modules/lodash-es/_listCacheClear.js +4 -4
  857. package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +4 -4
  858. package/dist/lib/node_modules/lodash-es/_listCacheGet.js +4 -4
  859. package/dist/lib/node_modules/lodash-es/_listCacheHas.js +4 -4
  860. package/dist/lib/node_modules/lodash-es/_listCacheSet.js +4 -4
  861. package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +4 -4
  862. package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +4 -4
  863. package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +4 -4
  864. package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +4 -4
  865. package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +4 -4
  866. package/dist/lib/node_modules/lodash-es/_mapToArray.js +14 -0
  867. package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +4 -4
  868. package/dist/lib/node_modules/lodash-es/_nativeCreate.js +4 -4
  869. package/dist/lib/node_modules/lodash-es/_nativeKeys.js +14 -0
  870. package/dist/lib/node_modules/lodash-es/_nativeKeysIn.js +4 -4
  871. package/dist/lib/node_modules/lodash-es/_nodeUtil.js +4 -4
  872. package/dist/lib/node_modules/lodash-es/_objectToString.js +4 -4
  873. package/dist/lib/node_modules/lodash-es/_overArg.js +4 -4
  874. package/dist/lib/node_modules/lodash-es/_overRest.js +4 -4
  875. package/dist/lib/node_modules/lodash-es/_parent.js +4 -4
  876. package/dist/lib/node_modules/lodash-es/_root.js +4 -4
  877. package/dist/lib/node_modules/lodash-es/_safeGet.js +14 -0
  878. package/dist/lib/node_modules/lodash-es/_setCacheAdd.js +14 -0
  879. package/dist/lib/node_modules/lodash-es/_setCacheHas.js +14 -0
  880. package/dist/lib/node_modules/lodash-es/_setToArray.js +14 -0
  881. package/dist/lib/node_modules/lodash-es/_setToString.js +4 -4
  882. package/dist/lib/node_modules/lodash-es/_shortOut.js +4 -4
  883. package/dist/lib/node_modules/lodash-es/_stackClear.js +4 -4
  884. package/dist/lib/node_modules/lodash-es/_stackDelete.js +4 -4
  885. package/dist/lib/node_modules/lodash-es/_stackGet.js +4 -4
  886. package/dist/lib/node_modules/lodash-es/_stackHas.js +4 -4
  887. package/dist/lib/node_modules/lodash-es/_stackSet.js +4 -4
  888. package/dist/lib/node_modules/lodash-es/_strictIndexOf.js +14 -0
  889. package/dist/lib/node_modules/lodash-es/_stringToArray.js +4 -4
  890. package/dist/lib/node_modules/lodash-es/_stringToPath.js +4 -4
  891. package/dist/lib/node_modules/lodash-es/_toKey.js +4 -4
  892. package/dist/lib/node_modules/lodash-es/_toSource.js +4 -4
  893. package/dist/lib/node_modules/lodash-es/_unicodeToArray.js +4 -4
  894. package/dist/lib/node_modules/lodash-es/constant.js +4 -4
  895. package/dist/lib/node_modules/lodash-es/eq.js +4 -4
  896. package/dist/lib/node_modules/lodash-es/flatten.js +4 -4
  897. package/dist/lib/node_modules/lodash-es/get.js +4 -4
  898. package/dist/lib/node_modules/lodash-es/identity.js +4 -4
  899. package/dist/lib/node_modules/lodash-es/intersectionWith.js +14 -0
  900. package/dist/lib/node_modules/lodash-es/isArguments.js +4 -4
  901. package/dist/lib/node_modules/lodash-es/isArray.js +4 -4
  902. package/dist/lib/node_modules/lodash-es/isArrayLike.js +4 -4
  903. package/dist/lib/node_modules/lodash-es/isArrayLikeObject.js +14 -0
  904. package/dist/lib/node_modules/lodash-es/isBuffer.js +4 -4
  905. package/dist/lib/node_modules/lodash-es/isEqual.js +14 -0
  906. package/dist/lib/node_modules/lodash-es/isFinite.js +4 -4
  907. package/dist/lib/node_modules/lodash-es/isFunction.js +4 -4
  908. package/dist/lib/node_modules/lodash-es/isLength.js +4 -4
  909. package/dist/lib/node_modules/lodash-es/isMap.js +4 -4
  910. package/dist/lib/node_modules/lodash-es/isNaN.js +4 -4
  911. package/dist/lib/node_modules/lodash-es/isNil.js +4 -4
  912. package/dist/lib/node_modules/lodash-es/isNumber.js +4 -4
  913. package/dist/lib/node_modules/lodash-es/isObject.js +4 -4
  914. package/dist/lib/node_modules/lodash-es/isObjectLike.js +4 -4
  915. package/dist/lib/node_modules/lodash-es/isPlainObject.js +4 -4
  916. package/dist/lib/node_modules/lodash-es/isRegExp.js +4 -4
  917. package/dist/lib/node_modules/lodash-es/isSet.js +4 -4
  918. package/dist/lib/node_modules/lodash-es/isString.js +4 -4
  919. package/dist/lib/node_modules/lodash-es/isSymbol.js +4 -4
  920. package/dist/lib/node_modules/lodash-es/isTypedArray.js +4 -4
  921. package/dist/lib/node_modules/lodash-es/keys.js +14 -0
  922. package/dist/lib/node_modules/lodash-es/keysIn.js +4 -4
  923. package/dist/lib/node_modules/lodash-es/last.js +4 -4
  924. package/dist/lib/node_modules/lodash-es/memoize.js +4 -4
  925. package/dist/lib/node_modules/lodash-es/mergeWith.js +14 -0
  926. package/dist/lib/node_modules/lodash-es/noop.js +14 -0
  927. package/dist/lib/node_modules/lodash-es/omit.js +4 -4
  928. package/dist/lib/node_modules/lodash-es/stubArray.js +4 -4
  929. package/dist/lib/node_modules/lodash-es/stubFalse.js +4 -4
  930. package/dist/lib/node_modules/lodash-es/toPlainObject.js +14 -0
  931. package/dist/lib/node_modules/lodash-es/toString.js +4 -4
  932. package/dist/lib/node_modules/lodash-es/unionWith.js +14 -0
  933. package/dist/lib/node_modules/lodash-es/upperFirst.js +4 -4
  934. package/dist/lib/node_modules/orderedmap/dist/index.js +4 -4
  935. package/dist/lib/node_modules/path-to-regexp/dist/index.js +14 -0
  936. package/dist/lib/node_modules/prosemirror-commands/dist/index.js +5 -4
  937. package/dist/lib/node_modules/prosemirror-dropcursor/dist/index.js +4 -4
  938. package/dist/lib/node_modules/prosemirror-gapcursor/dist/index.js +4 -4
  939. package/dist/lib/node_modules/prosemirror-history/dist/index.js +4 -4
  940. package/dist/lib/node_modules/prosemirror-keymap/dist/index.js +4 -4
  941. package/dist/lib/node_modules/prosemirror-model/dist/index.js +7 -4
  942. package/dist/lib/node_modules/prosemirror-schema-list/dist/index.js +4 -4
  943. package/dist/lib/node_modules/prosemirror-state/dist/index.js +4 -4
  944. package/dist/lib/node_modules/prosemirror-tables/dist/index.js +4 -4
  945. package/dist/lib/node_modules/prosemirror-transform/dist/index.js +5 -4
  946. package/dist/lib/node_modules/prosemirror-view/dist/index.js +8 -4
  947. package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +14 -0
  948. package/dist/lib/node_modules/rope-sequence/dist/index.js +4 -4
  949. package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +14 -0
  950. package/dist/lib/node_modules/style-mod/src/style-mod.js +6 -4
  951. package/dist/lib/node_modules/title-case/dist/index.js +14 -0
  952. package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +4 -4
  953. package/dist/lib/node_modules/w3c-keyname/index.js +4 -4
  954. package/dist/lib/node_modules/xgplayer/dist/index.min.css +3 -3
  955. package/dist/lib/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +5 -4
  956. package/dist/lib/node_modules/xgplayer/es/constant.js +4 -4
  957. package/dist/lib/node_modules/xgplayer/es/defaultConfig.js +4 -4
  958. package/dist/lib/node_modules/xgplayer/es/error.js +4 -4
  959. package/dist/lib/node_modules/xgplayer/es/events.js +4 -4
  960. package/dist/lib/node_modules/xgplayer/es/index.umd.js +4 -4
  961. package/dist/lib/node_modules/xgplayer/es/instManager.js +4 -4
  962. package/dist/lib/node_modules/xgplayer/es/lang/en.js +4 -4
  963. package/dist/lib/node_modules/xgplayer/es/lang/i18n.js +4 -4
  964. package/dist/lib/node_modules/xgplayer/es/lang/jp.js +4 -4
  965. package/dist/lib/node_modules/xgplayer/es/lang/zh-cn.js +4 -4
  966. package/dist/lib/node_modules/xgplayer/es/mediaProxy.js +4 -4
  967. package/dist/lib/node_modules/xgplayer/es/player.js +4 -4
  968. package/dist/lib/node_modules/xgplayer/es/plugin/basePlugin.js +4 -4
  969. package/dist/lib/node_modules/xgplayer/es/plugin/hooksDescriptor.js +4 -4
  970. package/dist/lib/node_modules/xgplayer/es/plugin/plugin.js +4 -4
  971. package/dist/lib/node_modules/xgplayer/es/plugin/pluginsManager.js +4 -4
  972. package/dist/lib/node_modules/xgplayer/es/plugin/preset.js +4 -4
  973. package/dist/lib/node_modules/xgplayer/es/plugin/resizeObserver.js +4 -4
  974. package/dist/lib/node_modules/xgplayer/es/plugins/assets/back.js +8 -4
  975. package/dist/lib/node_modules/xgplayer/es/plugins/assets/download.js +18 -4
  976. package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +7 -4
  977. package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitFull.js +7 -4
  978. package/dist/lib/node_modules/xgplayer/es/plugins/assets/loading.js +7 -4
  979. package/dist/lib/node_modules/xgplayer/es/plugins/assets/pause.js +7 -4
  980. package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIcon.js +8 -4
  981. package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +11 -4
  982. package/dist/lib/node_modules/xgplayer/es/plugins/assets/play.js +7 -4
  983. package/dist/lib/node_modules/xgplayer/es/plugins/assets/playNext.js +7 -4
  984. package/dist/lib/node_modules/xgplayer/es/plugins/assets/replay.js +7 -4
  985. package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +7 -4
  986. package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestFull.js +7 -4
  987. package/dist/lib/node_modules/xgplayer/es/plugins/assets/rotate.js +15 -4
  988. package/dist/lib/node_modules/xgplayer/es/plugins/assets/seekicon.js +10 -4
  989. package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +8 -4
  990. package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +8 -4
  991. package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +8 -4
  992. package/dist/lib/node_modules/xgplayer/es/plugins/common/iconPlugin.js +4 -4
  993. package/dist/lib/node_modules/xgplayer/es/plugins/common/iconTools.js +6 -4
  994. package/dist/lib/node_modules/xgplayer/es/plugins/common/optionList.js +4 -4
  995. package/dist/lib/node_modules/xgplayer/es/plugins/common/optionsIcon.js +7 -4
  996. package/dist/lib/node_modules/xgplayer/es/plugins/common/thumbnail.js +4 -4
  997. package/dist/lib/node_modules/xgplayer/es/plugins/controls/index.js +12 -4
  998. package/dist/lib/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +8 -4
  999. package/dist/lib/node_modules/xgplayer/es/plugins/definition/index.js +4 -4
  1000. package/dist/lib/node_modules/xgplayer/es/plugins/download/index.js +8 -4
  1001. package/dist/lib/node_modules/xgplayer/es/plugins/dynamicBg/index.js +5 -4
  1002. package/dist/lib/node_modules/xgplayer/es/plugins/enter/index.js +4 -4
  1003. package/dist/lib/node_modules/xgplayer/es/plugins/error/index.js +9 -4
  1004. package/dist/lib/node_modules/xgplayer/es/plugins/fpsDetect/index.js +4 -4
  1005. package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +5 -4
  1006. package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/index.js +8 -4
  1007. package/dist/lib/node_modules/xgplayer/es/plugins/gapJump/index.js +4 -4
  1008. package/dist/lib/node_modules/xgplayer/es/plugins/keyboard/index.js +4 -4
  1009. package/dist/lib/node_modules/xgplayer/es/plugins/loading/index.js +7 -4
  1010. package/dist/lib/node_modules/xgplayer/es/plugins/logger/index.js +4 -4
  1011. package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/index.js +16 -4
  1012. package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +7 -4
  1013. package/dist/lib/node_modules/xgplayer/es/plugins/mobile/index.js +22 -4
  1014. package/dist/lib/node_modules/xgplayer/es/plugins/mobile/touch.js +4 -4
  1015. package/dist/lib/node_modules/xgplayer/es/plugins/pc/index.js +4 -4
  1016. package/dist/lib/node_modules/xgplayer/es/plugins/pip/index.js +11 -4
  1017. package/dist/lib/node_modules/xgplayer/es/plugins/play/index.js +8 -4
  1018. package/dist/lib/node_modules/xgplayer/es/plugins/playNext/index.js +10 -4
  1019. package/dist/lib/node_modules/xgplayer/es/plugins/playbackRate/index.js +4 -4
  1020. package/dist/lib/node_modules/xgplayer/es/plugins/poster/index.js +5 -4
  1021. package/dist/lib/node_modules/xgplayer/es/plugins/progress/index.js +10 -4
  1022. package/dist/lib/node_modules/xgplayer/es/plugins/progress/innerList.js +4 -4
  1023. package/dist/lib/node_modules/xgplayer/es/plugins/progress/miniProgress.js +7 -4
  1024. package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +4 -4
  1025. package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -4
  1026. package/dist/lib/node_modules/xgplayer/es/plugins/prompt/index.js +6 -4
  1027. package/dist/lib/node_modules/xgplayer/es/plugins/replay/index.js +6 -4
  1028. package/dist/lib/node_modules/xgplayer/es/plugins/rotate/index.js +9 -4
  1029. package/dist/lib/node_modules/xgplayer/es/plugins/screenShot/index.js +9 -4
  1030. package/dist/lib/node_modules/xgplayer/es/plugins/start/index.js +7 -4
  1031. package/dist/lib/node_modules/xgplayer/es/plugins/stats/index.js +4 -4
  1032. package/dist/lib/node_modules/xgplayer/es/plugins/testspeed/index.js +4 -4
  1033. package/dist/lib/node_modules/xgplayer/es/plugins/time/index.js +9 -4
  1034. package/dist/lib/node_modules/xgplayer/es/plugins/time/timesegments.js +4 -4
  1035. package/dist/lib/node_modules/xgplayer/es/plugins/volume/index.js +14 -4
  1036. package/dist/lib/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +4 -4
  1037. package/dist/lib/node_modules/xgplayer/es/presets/default.js +4 -4
  1038. package/dist/lib/node_modules/xgplayer/es/state.js +4 -4
  1039. package/dist/lib/node_modules/xgplayer/es/stateClassMap.js +4 -4
  1040. package/dist/lib/node_modules/xgplayer/es/utils/database.js +4 -4
  1041. package/dist/lib/node_modules/xgplayer/es/utils/debug.js +4 -4
  1042. package/dist/lib/node_modules/xgplayer/es/utils/draggabilly.js +4 -4
  1043. package/dist/lib/node_modules/xgplayer/es/utils/sniffer.js +4 -4
  1044. package/dist/lib/node_modules/xgplayer/es/utils/util.js +4 -4
  1045. package/dist/lib/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +4 -4
  1046. package/dist/lib/node_modules/xgplayer/es/version.js +4 -4
  1047. package/dist/lib/packages/components/index.js +4 -4
  1048. package/dist/lib/packages/hooks/dist/index.js +14 -0
  1049. package/dist/lib/packages/utils/dist/index.js +14 -0
  1050. package/dist/lib/styles/tokens.css +3 -3
  1051. package/package.json +27 -28
  1052. package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
  1053. package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
  1054. package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
  1055. package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
@@ -7,8 +7,1543 @@ 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.6
11
- Build Time: 2026/3/4 16:49:40
12
- Build Commit: 63f88fe7a59965e471017742b570179ac37f5591
10
+ Version: 1.1.8
11
+ Build Time: 2026/3/18 18:22:17
12
+ Build Commit: 44c48456c04c14c7d83e532658836e594a224593
13
13
  */
14
- import{Slice as t,Fragment as e,Mark as r,ReplaceError as n,MarkType as i}from"../../prosemirror-model/dist/index.js";const s=Math.pow(2,16);function o(t,e){return t+e*s}function l(t){return 65535&t}class a{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class p{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&p.empty)return p.empty}recover(t){let e=0,r=l(t);if(!this.inverted)for(let n=0;n<r;n++)e+=this.ranges[3*n+2]-this.ranges[3*n+1];return this.ranges[3*r]+e+function(t){return(t-(65535&t))/s}(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let p=this.ranges[l]-(this.inverted?n:0);if(p>t)break;let h=this.ranges[l+i],c=this.ranges[l+s],f=p+h;if(t<=f){let i=p+n+((h?t==p?-1:t==f?1:e:e)<0?0:c);if(r)return i;let s=t==(e<0?p:f)?null:o(l/3,t-p),d=t==p?2:t==f?1:4;return(e<0?t!=p:t!=f)&&(d|=8),new a(i,d,s)}n+=c-h}return r?t+n:new a(t+n,0,null)}touches(t,e){let r=0,n=l(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let e=this.ranges[o]-(this.inverted?r:0);if(e>t)break;let l=this.ranges[o+i];if(t<=e+l&&o==3*n)return!0;r+=this.ranges[o+s]-l}return!1}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+e],p=this.ranges[n+r];t(o,o+a,l,l+p),i+=p-a}}invert(){return new p(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?p.empty:new p(t<0?[0,-t,0]:[0,0,t])}}p.empty=new p([]);class h{constructor(t,e,r=0,n=(t?t.length:0)){this.mirror=e,this.from=r,this.to=n,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new h(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let n=t.getMirror(e);this.appendMap(t._maps[e],null!=n&&n<e?r+n:void 0)}}getMirror(t){if(this.mirror)for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let n=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=n&&n>e?r-n-1:void 0)}}invert(){let t=new h;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,r){let n=0;for(let i=this.from;i<this.to;i++){let r=this._maps[i].mapResult(t,e);if(null!=r.recover){let e=this.getMirror(i);if(null!=e&&e>i&&e<this.to){i=e,t=this._maps[e].recover(r.recover);continue}}n|=r.delInfo,t=r.pos}return r?t:new a(t,n,null)}}const c=/* @__PURE__ */Object.create(null);class f{getMap(){return p.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=c[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in c)throw new RangeError("Duplicate use of step JSON ID "+t);return c[t]=e,e.prototype.jsonID=t,e}}class d{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new d(t,null)}static fail(t){return new d(null,t)}static fromReplace(t,e,r,i){try{return d.ok(t.replace(e,r,i))}catch(s){if(s instanceof n)return d.fail(s.message);throw s}}}function u(t,r,n){let i=[];for(let e=0;e<t.childCount;e++){let s=t.child(e);s.content.size&&(s=s.copy(u(s.content,r,s))),s.isInline&&(s=r(s,n,e)),i.push(s)}return e.fromArray(i)}class m extends f{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),s=new t(u(r.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,i),r.openStart,r.openEnd);return d.fromReplace(e,this.from,this.to,s)}invert(){return new g(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new m(e.pos,r.pos,this.mark)}merge(t){return t instanceof m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new m(e.from,e.to,t.markFromJSON(e.mark))}}f.jsonID("addMark",m);class g extends f{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),n=new t(u(r.content,t=>t.mark(this.mark.removeFromSet(t.marks)),e),r.openStart,r.openEnd);return d.fromReplace(e,this.from,this.to,n)}invert(){return new m(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new g(e.pos,r.pos,this.mark)}merge(t){return t instanceof g&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new g(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new g(e.from,e.to,t.markFromJSON(e.mark))}}f.jsonID("removeMark",g);class y extends f{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let n=r.nodeAt(this.pos);if(!n)return d.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return d.fromReplace(r,this.pos,this.pos+1,new t(e.from(i),0,n.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(t))return new y(this.pos,e.marks[r]);return new y(this.pos,this.mark)}}return new w(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new y(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new y(e.pos,t.markFromJSON(e.mark))}}f.jsonID("addNodeMark",y);class w extends f{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let n=r.nodeAt(this.pos);if(!n)return d.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return d.fromReplace(r,this.pos,this.pos+1,new t(e.from(i),0,n.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new y(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new w(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new w(e.pos,t.markFromJSON(e.mark))}}f.jsonID("removeNodeMark",w);class k extends f{constructor(t,e,r,n=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=n}apply(t){return this.structure&&S(t,this.from,this.to)?d.fail("Structure replace would overwrite content"):d.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new p([this.from,this.to-this.from,this.slice.size])}invert(t){return new k(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deletedAcross&&r.deletedAcross?null:new k(e.pos,Math.max(e.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof k)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let r=this.slice.size+e.slice.size==0?t.empty:new t(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new k(e.from,this.to,r,this.structure)}}{let r=this.slice.size+e.slice.size==0?t.empty:new t(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new k(this.from,this.to+(e.to-e.from),r,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new k(r.from,r.to,t.fromJSON(e,r.slice),!!r.structure)}}f.jsonID("replace",k);class v extends f{constructor(t,e,r,n,i,s,o=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(t){if(this.structure&&(S(t,this.from,this.gapFrom)||S(t,this.gapTo,this.to)))return d.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return d.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?d.fromReplace(t,this.from,this.to,r):d.fail("Content does not fit in gap")}getMap(){return new p([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new v(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),n=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||n<e.pos||i>r.pos?null:new v(e.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to||"number"!=typeof r.gapFrom||"number"!=typeof r.gapTo||"number"!=typeof r.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new v(r.from,r.to,r.gapFrom,r.gapTo,t.fromJSON(e,r.slice),r.insert,!!r.structure)}}function S(t,e,r){let n=t.resolve(e),i=r-e,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let t=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function M(r,n,i,s=i.contentMatch,o=!0){let l=r.doc.nodeAt(n),a=[],p=n+1;for(let h=0;h<l.childCount;h++){let n=l.child(h),c=p+n.nodeSize,f=s.matchType(n.type);if(f){s=f;for(let t=0;t<n.marks.length;t++)i.allowsMarkType(n.marks[t].type)||r.step(new g(p,c,n.marks[t]));if(o&&n.isText&&"pre"!=i.whitespace){let r,s,o=/\r?\n|\r/g;for(;r=o.exec(n.text);)s||(s=new t(e.from(i.schema.text(" ",i.allowedMarks(n.marks))),0,0)),a.push(new k(p+r.index,p+r.index+r[0].length,s))}}else a.push(new k(p,c,t.empty));p=c}if(!s.validEnd){let n=s.fillBefore(e.empty,!0);r.replace(p,p,new t(n,0,0))}for(let t=a.length-1;t>=0;t--)r.step(a[t])}function x(t,e,r){return(0==e||t.canReplace(e,t.childCount))&&(r==t.childCount||t.canReplace(0,r))}function R(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,n=0,i=0;;--r){let s=t.$from.node(r),o=t.$from.index(r)+n,l=t.$to.indexAfter(r)-i;if(r<t.depth&&s.canReplace(o,l,e))return r;if(0==r||s.type.spec.isolating||!x(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function C(t,e,r=null,n=t){let i=function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,s=r.contentMatchAt(n).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return r.canReplaceWith(n,i,o)?s:null}(t,e),s=i&&function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,s=r.child(n),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let a=n;l&&a<i;a++)l=l.matchType(r.child(a).type);return l&&l.validEnd?o:null}(n,e);return s?i.map(b).concat({type:e,attrs:r}).concat(s.map(b)):null}function b(t){return{type:t,attrs:null}}function N(t,e,r,n){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=t.mapping.slice(n).map(r+1+s+o.index);t.replaceWith(i,i+1,e.type.schema.linebreakReplacement.create())}}})}function I(t,e,r,n){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=t.mapping.slice(n).map(r+1+s);t.replaceWith(i,i+1,e.type.schema.text("\n"))}})}function T(t,e,r=1,n){let i=t.resolve(e),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let p=i.depth-1,h=r-2;p>s;p--,h--){let t=i.node(p),e=i.index(p);if(t.type.spec.isolating)return!1;let r=t.content.cutByIndex(e,t.childCount),s=n&&n[h+1];s&&(r=r.replaceChild(0,s.type.create(s.attrs)));let o=n&&n[h]||t;if(!t.canReplace(e+1,t.childCount)||!o.type.validContent(r))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function A(t,e){let r=t.resolve(e),n=r.index();return O(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function O(t,e){return!(!t||!e||t.isLeaf||!function(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:n}=t.type.schema;for(let i=0;i<e.childCount;i++){let s=e.child(i),o=s.type==n?t.type.schema.nodes.text:s.type;if(r=r.matchType(o),!r)return!1;if(!t.type.allowsMarks(s.marks))return!1}return r.validEnd}(t,e))}function E(t,e,r=-1){let n=t.resolve(e);for(let i=n.depth;;i--){let t,s,o=n.index(i);if(i==n.depth?(t=n.nodeBefore,s=n.nodeAfter):r>0?(t=n.node(i+1),o++,s=n.node(i).maybeChild(o)):(t=n.node(i).maybeChild(o-1),s=n.node(i+1)),t&&!t.isTextblock&&O(t,s)&&n.node(i).canReplace(o,o+1))return e;if(0==i)break;e=r<0?n.before(i):n.after(i)}}function J(t,e,r){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(0==n.parentOffset)for(let i=n.depth-1;i>=0;i--){let t=n.index(i);if(n.node(i).canReplaceWith(t,t,r))return n.before(i+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let i=n.depth-1;i>=0;i--){let t=n.indexAfter(i);if(n.node(i).canReplaceWith(t,t,r))return n.after(i+1);if(t<n.node(i).childCount)return null}return null}function z(t,e,r){let n=t.resolve(e);if(!r.content.size)return e;let i=r.content;for(let s=0;s<r.openStart;s++)i=i.firstChild.content;for(let s=1;s<=(0==r.openStart&&r.size?2:1);s++)for(let t=n.depth;t>=0;t--){let e=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,r=n.index(t)+(e>0?1:0),o=n.node(t),l=!1;if(1==s)l=o.canReplace(r,r,i);else{let t=o.contentMatchAt(r).findWrapping(i.firstChild.type);l=t&&o.canReplaceWith(r,r,t[0])}if(l)return 0==e?n.pos:e<0?n.before(t+1):n.after(t+1)}return null}function F(e,r,n=r,i=t.empty){if(r==n&&!i.size)return null;let s=e.resolve(r),o=e.resolve(n);return _(s,o,i)?new k(r,n,i):new D(s,o,i).fit()}function _(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}f.jsonID("replaceAround",v);class D{constructor(t,r,n){this.$from=t,this.$to=r,this.unplaced=n,this.frontier=[],this.placed=e.empty;for(let e=0;e<=t.depth;e++){let r=t.node(e);this.frontier.push({type:r.type,match:r.contentMatchAt(t.indexAfter(e))})}for(let i=t.depth;i>0;i--)this.placed=e.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let s=this.placed,o=n.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new t(s,o,l);return e>-1?new v(n.pos,e,this.$to.pos,this.$to.end(),a,r):a.size||n.pos!=this.$to.pos?new k(n.pos,i.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<t;r++){let i=e.firstChild;if(e.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){t=r;break}e=i.content}for(let r=1;r<=2;r++)for(let n=1==r?t:this.unplaced.openStart;n>=0;n--){let t,i=null;n?(i=W(this.unplaced.content,n-1).firstChild,t=i.content):t=this.unplaced.content;let s=t.firstChild;for(let o=this.depth;o>=0;o--){let t,{type:l,match:a}=this.frontier[o],p=null;if(1==r&&(s?a.matchType(s.type)||(p=a.fillBefore(e.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:o,parent:i,inject:p};if(2==r&&s&&(t=a.findWrapping(s.type)))return{sliceDepth:n,frontierDepth:o,parent:i,wrap:t};if(i&&a.matchType(i.type))break}}}openMore(){let{content:e,openStart:r,openEnd:n}=this.unplaced,i=W(e,r);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new t(e,r+1,Math.max(n,i.size+r>=e.size-n?r+1:0)),!0)}dropNode(){let{content:e,openStart:r,openEnd:n}=this.unplaced,i=W(e,r);if(i.childCount<=1&&r>0){let s=e.size-r<=r+i.size;this.unplaced=new t(B(e,r-1,1),r-1,s?r-1:n)}else this.unplaced=new t(B(e,r,1),r,n)}placeNodes({sliceDepth:r,frontierDepth:n,parent:i,inject:s,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let t=0;t<o.length;t++)this.openFrontierNode(o[t]);let l=this.unplaced,a=i?i.content:l.content,p=l.openStart-r,h=0,c=[],{match:f,type:d}=this.frontier[n];if(s){for(let t=0;t<s.childCount;t++)c.push(s.child(t));f=f.matchFragment(s)}let u=a.size+r-(l.content.size-l.openEnd);for(;h<a.childCount;){let t=a.child(h),e=f.matchType(t.type);if(!e)break;h++,(h>1||0==p||t.content.size)&&(f=e,c.push(j(t.mark(d.allowedMarks(t.marks)),1==h?p:0,h==a.childCount?u:-1)))}let m=h==a.childCount;m||(u=-1),this.placed=$(this.placed,n,e.from(c)),this.frontier[n].match=f,m&&u<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t<u;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=m?0==r?t.empty:new t(B(l.content,r-1,1),r-1,u<0?l.openEnd:r-1):new t(B(l.content,r,h),l.openStart,l.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t,e=this.frontier[this.depth];if(!e.type.isTextblock||!L(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:r,type:n}=this.frontier[e],i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),s=L(t,e,n,r,i);if(s){for(let r=e-1;r>=0;r--){let{match:e,type:n}=this.frontier[r],i=L(t,r,n,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:s,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=$(this.placed,e.depth,e.fit)),t=e.move;for(let r=e.depth+1;r<=t.depth;r++){let e=t.node(r),n=e.type.contentMatch.fillBefore(e.content,!0,t.index(r));this.openFrontierNode(e.type,e.attrs,n)}return t}openFrontierNode(t,r=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=$(this.placed,this.depth,e.from(t.create(r,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(e.empty,!0);t.childCount&&(this.placed=$(this.placed,this.frontier.length,t))}}function B(t,e,r){return 0==e?t.cutByIndex(r,t.childCount):t.replaceChild(0,t.firstChild.copy(B(t.firstChild.content,e-1,r)))}function $(t,e,r){return 0==e?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy($(t.lastChild.content,e-1,r)))}function W(t,e){for(let r=0;r<e;r++)t=t.firstChild.content;return t}function j(t,r,n){if(r<=0)return t;let i=t.content;return r>1&&(i=i.replaceChild(0,j(i.firstChild,r-1,1==i.childCount?n-1:0))),r>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(e.empty,!0)))),t.copy(i)}function L(t,e,r,n,i){let s=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!function(t,e,r){for(let n=r;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}(r,s.content,o)?l:null}function q(t){return t.spec.defining||t.spec.definingForContent}function G(t,r,n,i,s){if(r<n){let e=t.firstChild;t=t.replaceChild(0,e.copy(G(e.content,r+1,n,i,e)))}if(r>i){let r=s.contentMatchAt(0),n=r.fillBefore(t).append(t);t=n.append(r.matchFragment(n).fillBefore(e.empty,!0))}return t}function H(t,e){let r=[];for(let n=Math.min(t.depth,e.depth);n>=0;n--){let i=t.start(n);if(i<t.pos-(t.depth-n)||e.end(n)>e.pos+(e.depth-n)||t.node(n).type.spec.isolating||e.node(n).type.spec.isolating)break;(i==e.start(n)||n==t.depth&&n==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&n&&e.start(n-1)==i-1)&&r.push(n)}return r}class K extends f{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r}apply(r){let n=r.nodeAt(this.pos);if(!n)return d.fail("No node at attribute step's position");let i=/* @__PURE__ */Object.create(null);for(let t in n.attrs)i[t]=n.attrs[t];i[this.attr]=this.value;let s=n.type.create(i,null,n.marks);return d.fromReplace(r,this.pos,this.pos+1,new t(e.from(s),0,n.isLeaf?0:1))}getMap(){return p.empty}invert(t){return new K(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new K(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new K(e.pos,e.attr,e.value)}}f.jsonID("attr",K);class P extends f{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=/* @__PURE__ */Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return d.ok(r)}getMap(){return p.empty}invert(t){return new P(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new P(e.attr,e.value)}}f.jsonID("docAttr",P);let Q=class extends Error{};Q=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r},(Q.prototype=Object.create(Error.prototype)).constructor=Q,Q.prototype.name="TransformError";class U{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new h}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new Q(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(t=n.map(t,1),e=n.map(e,-1)),n.forEach((r,n,i,s)=>{t=Math.min(t,i),e=Math.max(e,s)})}return 1e9==t?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(e,r=e,n=t.empty){let i=F(this.doc,e,r,n);return i&&this.step(i),this}replaceWith(r,n,i){return this.replace(r,n,new t(e.from(i),0,0))}delete(e,r){return this.replace(e,r,t.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(e,r,n){return function(e,r,n,i){if(!i.size)return e.deleteRange(r,n);let s=e.doc.resolve(r),o=e.doc.resolve(n);if(_(s,o,i))return e.step(new k(r,n,i));let l=H(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let t=s.depth,d=s.pos-1;t>0;t--,d--){let e=s.node(t).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;l.indexOf(t)>-1?a=t:s.before(t)==d&&l.splice(1,0,-t)}let p=l.indexOf(a),h=[],c=i.openStart;for(let t=i.content,d=0;;d++){let e=t.firstChild;if(h.push(e),d==i.openStart)break;t=e.content}for(let t=c-1;t>=0;t--){let e=h[t],r=q(e.type);if(r&&!e.sameMarkup(s.node(Math.abs(a)-1)))c=t;else if(r||!e.type.isTextblock)break}for(let d=i.openStart;d>=0;d--){let r=(d+c+1)%(i.openStart+1),a=h[r];if(a)for(let h=0;h<l.length;h++){let c=l[(h+p)%l.length],f=!0;c<0&&(f=!1,c=-c);let d=s.node(c-1),u=s.index(c-1);if(d.canReplaceWith(u,u,a.type,a.marks))return e.replace(s.before(c),f?o.after(c):n,new t(G(i.content,0,i.openStart,r),r,i.openEnd))}}let f=e.steps.length;for(let t=l.length-1;t>=0&&(e.replace(r,n,i),!(e.steps.length>f));t--){let e=l[t];e<0||(r=s.before(e),n=o.after(e))}}(this,e,r,n),this}replaceRangeWith(r,n,i){return function(r,n,i,s){if(!s.isInline&&n==i&&r.doc.resolve(n).parent.content.size){let t=J(r.doc,n,s.type);null!=t&&(n=i=t)}r.replaceRange(n,i,new t(e.from(s),0,0))}(this,r,n,i),this}deleteRange(t,e){return function(t,e,r){let n=t.doc.resolve(e),i=t.doc.resolve(r),s=H(n,i);for(let o=0;o<s.length;o++){let e=s[o],r=o==s.length-1;if(r&&0==e||n.node(e).type.contentMatch.validEnd)return t.delete(n.start(e),i.end(e));if(e>0&&(r||n.node(e-1).canReplace(n.index(e-1),i.indexAfter(e-1))))return t.delete(n.before(e),i.after(e))}for(let o=1;o<=n.depth&&o<=i.depth;o++)if(e-n.start(o)==n.depth-o&&r>n.end(o)&&i.end(o)-r!=i.depth-o&&n.start(o-1)==i.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),i.index(o-1)))return t.delete(n.before(o),r);t.delete(e,r)}(this,t,e),this}lift(r,n){return function(r,n,i){let{$from:s,$to:o,depth:l}=n,a=s.before(l+1),p=o.after(l+1),h=a,c=p,f=e.empty,d=0;for(let t=l,g=!1;t>i;t--)g||s.index(t)>0?(g=!0,f=e.from(s.node(t).copy(f)),d++):h--;let u=e.empty,m=0;for(let t=l,g=!1;t>i;t--)g||o.after(t+1)<o.end(t)?(g=!0,u=e.from(o.node(t).copy(u)),m++):c++;r.step(new v(h,c,a,p,new t(f.append(u),d,m),f.size-d,!0))}(this,r,n),this}join(e,r=1){return function(e,r,n){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(r-n),l=o.node().type;if(s&&l.inlineContent){let t="pre"==l.whitespace,e=!!l.contentMatch.matchType(s);t&&!e?i=!1:!t&&e&&(i=!0)}let a=e.steps.length;if(!1===i){let t=e.doc.resolve(r+n);I(e,t.node(),t.before(),a)}l.inlineContent&&M(e,r+n-1,l,o.node().contentMatchAt(o.index()),null==i);let p=e.mapping.slice(a),h=p.map(r-n);if(e.step(new k(h,p.map(r+n,-1),t.empty,!0)),!0===i){let t=e.doc.resolve(h);N(e,t.node(),t.before(),e.steps.length)}}(this,e,r),this}wrap(r,n){return function(r,n,i){let s=e.empty;for(let t=i.length-1;t>=0;t--){if(s.size){let e=i[t].type.contentMatch.matchFragment(s);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}s=e.from(i[t].type.create(i[t].attrs,s))}let o=n.start,l=n.end;r.step(new v(o,l,o,l,new t(s,0,0),i.length,!0))}(this,r,n),this}setBlockType(r,n=r,i,s=null){return function(r,n,i,s,o){if(!s.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let l=r.steps.length;r.doc.nodesBetween(n,i,(n,i)=>{let a="function"==typeof o?o(n):o;if(n.isTextblock&&!n.hasMarkup(s,a)&&function(t,e,r){let n=t.resolve(e),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}(r.doc,r.mapping.slice(l).map(i),s)){let o=null;if(s.schema.linebreakReplacement){let t="pre"==s.whitespace,e=!!s.contentMatch.matchType(s.schema.linebreakReplacement);t&&!e?o=!1:!t&&e&&(o=!0)}!1===o&&I(r,n,i,l),M(r,r.mapping.slice(l).map(i,1),s,void 0,null===o);let p=r.mapping.slice(l),h=p.map(i,1),c=p.map(i+n.nodeSize,1);return r.step(new v(h,c,h+1,c-1,new t(e.from(s.create(a,null,n.marks)),0,0),1,!0)),!0===o&&N(r,n,i,l),!1}})}(this,r,n,i,s),this}setNodeMarkup(r,n,i=null,s){return function(r,n,i,s,o){let l=r.doc.nodeAt(n);if(!l)throw new RangeError("No node at given position");i||(i=l.type);let a=i.create(s,null,o||l.marks);if(l.isLeaf)return r.replaceWith(n,n+l.nodeSize,a);if(!i.validContent(l.content))throw new RangeError("Invalid content for node type "+i.name);r.step(new v(n,n+l.nodeSize,n+1,n+l.nodeSize-1,new t(e.from(a),0,0),1,!0))}(this,r,n,i,s),this}setNodeAttribute(t,e,r){return this.step(new K(t,e,r)),this}setDocAttribute(t,e){return this.step(new P(t,e)),this}addNodeMark(t,e){return this.step(new y(t,e)),this}removeNodeMark(t,e){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(e instanceof r)e.isInSet(n.marks)&&this.step(new w(t,e));else{let r,i=n.marks,s=[];for(;r=e.isInSet(i);)s.push(new w(t,r)),i=r.removeFromSet(i);for(let t=s.length-1;t>=0;t--)this.step(s[t])}return this}split(r,n=1,i){return function(r,n,i=1,s){let o=r.doc.resolve(n),l=e.empty,a=e.empty;for(let t=o.depth,p=o.depth-i,h=i-1;t>p;t--,h--){l=e.from(o.node(t).copy(l));let r=s&&s[h];a=e.from(r?r.type.create(r.attrs,a):o.node(t).copy(a))}r.step(new k(n,n,new t(l.append(a),i,i),!0))}(this,r,n,i),this}addMark(t,e,r){return function(t,e,r,n){let i,s,o=[],l=[];t.doc.nodesBetween(e,r,(t,a,p)=>{if(!t.isInline)return;let h=t.marks;if(!n.isInSet(h)&&p.type.allowsMarkType(n.type)){let p=Math.max(a,e),c=Math.min(a+t.nodeSize,r),f=n.addToSet(h);for(let t=0;t<h.length;t++)h[t].isInSet(f)||(i&&i.to==p&&i.mark.eq(h[t])?i.to=c:o.push(i=new g(p,c,h[t])));s&&s.to==p?s.to=c:l.push(s=new m(p,c,n))}}),o.forEach(e=>t.step(e)),l.forEach(e=>t.step(e))}(this,t,e,r),this}removeMark(t,e,r){return function(t,e,r,n){let s=[],o=0;t.doc.nodesBetween(e,r,(t,l)=>{if(!t.isInline)return;o++;let a=null;if(n instanceof i){let e,r=t.marks;for(;e=n.isInSet(r);)(a||(a=[])).push(e),r=e.removeFromSet(r)}else n?n.isInSet(t.marks)&&(a=[n]):a=t.marks;if(a&&a.length){let n=Math.min(l+t.nodeSize,r);for(let t=0;t<a.length;t++){let r,i=a[t];for(let t=0;t<s.length;t++){let e=s[t];e.step==o-1&&i.eq(s[t].style)&&(r=e)}r?(r.to=n,r.step=o):s.push({style:i,from:Math.max(l,e),to:n,step:o})}}}),s.forEach(e=>t.step(new g(e.from,e.to,e.style)))}(this,t,e,r),this}clearIncompatible(t,e,r){return M(this,t,e,r),this}}export{m as AddMarkStep,y as AddNodeMarkStep,K as AttrStep,P as DocAttrStep,a as MapResult,h as Mapping,g as RemoveMarkStep,w as RemoveNodeMarkStep,v as ReplaceAroundStep,k as ReplaceStep,f as Step,p as StepMap,d as StepResult,U as Transform,Q as TransformError,A as canJoin,T as canSplit,z as dropPoint,C as findWrapping,J as insertPoint,E as joinPoint,R as liftTarget,F as replaceStep};
14
+ import { Slice as g, ReplaceError as se, Fragment as w, Mark as oe, MarkType as le } from "../../prosemirror-model/dist/index.js";
15
+ const Q = 65535, U = Math.pow(2, 16);
16
+ function ae(s, e) {
17
+ return s + e * U;
18
+ }
19
+ function H(s) {
20
+ return s & Q;
21
+ }
22
+ function he(s) {
23
+ return (s - (s & Q)) / U;
24
+ }
25
+ const V = 1, X = 2, J = 4, Y = 8;
26
+ class L {
27
+ /**
28
+ @internal
29
+ */
30
+ constructor(e, t, r) {
31
+ this.pos = e, this.delInfo = t, this.recover = r;
32
+ }
33
+ /**
34
+ Tells you whether the position was deleted, that is, whether the
35
+ step removed the token on the side queried (via the `assoc`)
36
+ argument from the document.
37
+ */
38
+ get deleted() {
39
+ return (this.delInfo & Y) > 0;
40
+ }
41
+ /**
42
+ Tells you whether the token before the mapped position was deleted.
43
+ */
44
+ get deletedBefore() {
45
+ return (this.delInfo & (V | J)) > 0;
46
+ }
47
+ /**
48
+ True when the token after the mapped position was deleted.
49
+ */
50
+ get deletedAfter() {
51
+ return (this.delInfo & (X | J)) > 0;
52
+ }
53
+ /**
54
+ Tells whether any of the steps mapped through deletes across the
55
+ position (including both the token before and after the
56
+ position).
57
+ */
58
+ get deletedAcross() {
59
+ return (this.delInfo & J) > 0;
60
+ }
61
+ }
62
+ class S {
63
+ /**
64
+ Create a position map. The modifications to the document are
65
+ represented as an array of numbers, in which each group of three
66
+ represents a modified chunk as `[start, oldSize, newSize]`.
67
+ */
68
+ constructor(e, t = !1) {
69
+ if (this.ranges = e, this.inverted = t, !e.length && S.empty)
70
+ return S.empty;
71
+ }
72
+ /**
73
+ @internal
74
+ */
75
+ recover(e) {
76
+ let t = 0, r = H(e);
77
+ if (!this.inverted)
78
+ for (let n = 0; n < r; n++)
79
+ t += this.ranges[n * 3 + 2] - this.ranges[n * 3 + 1];
80
+ return this.ranges[r * 3] + t + he(e);
81
+ }
82
+ mapResult(e, t = 1) {
83
+ return this._map(e, t, !1);
84
+ }
85
+ map(e, t = 1) {
86
+ return this._map(e, t, !0);
87
+ }
88
+ /**
89
+ @internal
90
+ */
91
+ _map(e, t, r) {
92
+ let n = 0, i = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
93
+ for (let l = 0; l < this.ranges.length; l += 3) {
94
+ let a = this.ranges[l] - (this.inverted ? n : 0);
95
+ if (a > e)
96
+ break;
97
+ let h = this.ranges[l + i], p = this.ranges[l + o], c = a + h;
98
+ if (e <= c) {
99
+ let f = h ? e == a ? -1 : e == c ? 1 : t : t, d = a + n + (f < 0 ? 0 : p);
100
+ if (r)
101
+ return d;
102
+ let u = e == (t < 0 ? a : c) ? null : ae(l / 3, e - a), m = e == a ? X : e == c ? V : J;
103
+ return (t < 0 ? e != a : e != c) && (m |= Y), new L(d, m, u);
104
+ }
105
+ n += p - h;
106
+ }
107
+ return r ? e + n : new L(e + n, 0, null);
108
+ }
109
+ /**
110
+ @internal
111
+ */
112
+ touches(e, t) {
113
+ let r = 0, n = H(t), i = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
114
+ for (let l = 0; l < this.ranges.length; l += 3) {
115
+ let a = this.ranges[l] - (this.inverted ? r : 0);
116
+ if (a > e)
117
+ break;
118
+ let h = this.ranges[l + i], p = a + h;
119
+ if (e <= p && l == n * 3)
120
+ return !0;
121
+ r += this.ranges[l + o] - h;
122
+ }
123
+ return !1;
124
+ }
125
+ /**
126
+ Calls the given function on each of the changed ranges included in
127
+ this map.
128
+ */
129
+ forEach(e) {
130
+ let t = this.inverted ? 2 : 1, r = this.inverted ? 1 : 2;
131
+ for (let n = 0, i = 0; n < this.ranges.length; n += 3) {
132
+ let o = this.ranges[n], l = o - (this.inverted ? i : 0), a = o + (this.inverted ? 0 : i), h = this.ranges[n + t], p = this.ranges[n + r];
133
+ e(l, l + h, a, a + p), i += p - h;
134
+ }
135
+ }
136
+ /**
137
+ Create an inverted version of this map. The result can be used to
138
+ map positions in the post-step document to the pre-step document.
139
+ */
140
+ invert() {
141
+ return new S(this.ranges, !this.inverted);
142
+ }
143
+ /**
144
+ @internal
145
+ */
146
+ toString() {
147
+ return (this.inverted ? "-" : "") + JSON.stringify(this.ranges);
148
+ }
149
+ /**
150
+ Create a map that moves all positions by offset `n` (which may be
151
+ negative). This can be useful when applying steps meant for a
152
+ sub-document to a larger document, or vice-versa.
153
+ */
154
+ static offset(e) {
155
+ return e == 0 ? S.empty : new S(e < 0 ? [0, -e, 0] : [0, 0, e]);
156
+ }
157
+ }
158
+ S.empty = new S([]);
159
+ class A {
160
+ /**
161
+ Create a new mapping with the given position maps.
162
+ */
163
+ constructor(e, t, r = 0, n = e ? e.length : 0) {
164
+ this.mirror = t, this.from = r, this.to = n, this._maps = e || [], this.ownData = !(e || t);
165
+ }
166
+ /**
167
+ The step maps in this mapping.
168
+ */
169
+ get maps() {
170
+ return this._maps;
171
+ }
172
+ /**
173
+ Create a mapping that maps only through a part of this one.
174
+ */
175
+ slice(e = 0, t = this.maps.length) {
176
+ return new A(this._maps, this.mirror, e, t);
177
+ }
178
+ /**
179
+ Add a step map to the end of this mapping. If `mirrors` is
180
+ given, it should be the index of the step map that is the mirror
181
+ image of this one.
182
+ */
183
+ appendMap(e, t) {
184
+ this.ownData || (this._maps = this._maps.slice(), this.mirror = this.mirror && this.mirror.slice(), this.ownData = !0), this.to = this._maps.push(e), t != null && this.setMirror(this._maps.length - 1, t);
185
+ }
186
+ /**
187
+ Add all the step maps in a given mapping to this one (preserving
188
+ mirroring information).
189
+ */
190
+ appendMapping(e) {
191
+ for (let t = 0, r = this._maps.length; t < e._maps.length; t++) {
192
+ let n = e.getMirror(t);
193
+ this.appendMap(e._maps[t], n != null && n < t ? r + n : void 0);
194
+ }
195
+ }
196
+ /**
197
+ Finds the offset of the step map that mirrors the map at the
198
+ given offset, in this mapping (as per the second argument to
199
+ `appendMap`).
200
+ */
201
+ getMirror(e) {
202
+ if (this.mirror) {
203
+ for (let t = 0; t < this.mirror.length; t++)
204
+ if (this.mirror[t] == e)
205
+ return this.mirror[t + (t % 2 ? -1 : 1)];
206
+ }
207
+ }
208
+ /**
209
+ @internal
210
+ */
211
+ setMirror(e, t) {
212
+ this.mirror || (this.mirror = []), this.mirror.push(e, t);
213
+ }
214
+ /**
215
+ Append the inverse of the given mapping to this one.
216
+ */
217
+ appendMappingInverted(e) {
218
+ for (let t = e.maps.length - 1, r = this._maps.length + e._maps.length; t >= 0; t--) {
219
+ let n = e.getMirror(t);
220
+ this.appendMap(e._maps[t].invert(), n != null && n > t ? r - n - 1 : void 0);
221
+ }
222
+ }
223
+ /**
224
+ Create an inverted version of this mapping.
225
+ */
226
+ invert() {
227
+ let e = new A();
228
+ return e.appendMappingInverted(this), e;
229
+ }
230
+ /**
231
+ Map a position through this mapping.
232
+ */
233
+ map(e, t = 1) {
234
+ if (this.mirror)
235
+ return this._map(e, t, !0);
236
+ for (let r = this.from; r < this.to; r++)
237
+ e = this._maps[r].map(e, t);
238
+ return e;
239
+ }
240
+ /**
241
+ Map a position through this mapping, returning a mapping
242
+ result.
243
+ */
244
+ mapResult(e, t = 1) {
245
+ return this._map(e, t, !1);
246
+ }
247
+ /**
248
+ @internal
249
+ */
250
+ _map(e, t, r) {
251
+ let n = 0;
252
+ for (let i = this.from; i < this.to; i++) {
253
+ let o = this._maps[i], l = o.mapResult(e, t);
254
+ if (l.recover != null) {
255
+ let a = this.getMirror(i);
256
+ if (a != null && a > i && a < this.to) {
257
+ i = a, e = this._maps[a].recover(l.recover);
258
+ continue;
259
+ }
260
+ }
261
+ n |= l.delInfo, e = l.pos;
262
+ }
263
+ return r ? e : new L(e, n, null);
264
+ }
265
+ }
266
+ const B = /* @__PURE__ */ Object.create(null);
267
+ class k {
268
+ /**
269
+ Get the step map that represents the changes made by this step,
270
+ and which can be used to transform between positions in the old
271
+ and the new document.
272
+ */
273
+ getMap() {
274
+ return S.empty;
275
+ }
276
+ /**
277
+ Try to merge this step with another one, to be applied directly
278
+ after it. Returns the merged step when possible, null if the
279
+ steps can't be merged.
280
+ */
281
+ merge(e) {
282
+ return null;
283
+ }
284
+ /**
285
+ Deserialize a step from its JSON representation. Will call
286
+ through to the step class' own implementation of this method.
287
+ */
288
+ static fromJSON(e, t) {
289
+ if (!t || !t.stepType)
290
+ throw new RangeError("Invalid input for Step.fromJSON");
291
+ let r = B[t.stepType];
292
+ if (!r)
293
+ throw new RangeError(`No step type ${t.stepType} defined`);
294
+ return r.fromJSON(e, t);
295
+ }
296
+ /**
297
+ To be able to serialize steps to JSON, each step needs a string
298
+ ID to attach to its JSON representation. Use this method to
299
+ register an ID for your step classes. Try to pick something
300
+ that's unlikely to clash with steps from other modules.
301
+ */
302
+ static jsonID(e, t) {
303
+ if (e in B)
304
+ throw new RangeError("Duplicate use of step JSON ID " + e);
305
+ return B[e] = t, t.prototype.jsonID = e, t;
306
+ }
307
+ }
308
+ class y {
309
+ /**
310
+ @internal
311
+ */
312
+ constructor(e, t) {
313
+ this.doc = e, this.failed = t;
314
+ }
315
+ /**
316
+ Create a successful step result.
317
+ */
318
+ static ok(e) {
319
+ return new y(e, null);
320
+ }
321
+ /**
322
+ Create a failed step result.
323
+ */
324
+ static fail(e) {
325
+ return new y(null, e);
326
+ }
327
+ /**
328
+ Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
329
+ arguments. Create a successful result if it succeeds, and a
330
+ failed one if it throws a `ReplaceError`.
331
+ */
332
+ static fromReplace(e, t, r, n) {
333
+ try {
334
+ return y.ok(e.replace(t, r, n));
335
+ } catch (i) {
336
+ if (i instanceof se)
337
+ return y.fail(i.message);
338
+ throw i;
339
+ }
340
+ }
341
+ }
342
+ function P(s, e, t) {
343
+ let r = [];
344
+ for (let n = 0; n < s.childCount; n++) {
345
+ let i = s.child(n);
346
+ i.content.size && (i = i.copy(P(i.content, e, i))), i.isInline && (i = e(i, t, n)), r.push(i);
347
+ }
348
+ return w.fromArray(r);
349
+ }
350
+ class C extends k {
351
+ /**
352
+ Create a mark step.
353
+ */
354
+ constructor(e, t, r) {
355
+ super(), this.from = e, this.to = t, this.mark = r;
356
+ }
357
+ apply(e) {
358
+ let t = e.slice(this.from, this.to), r = e.resolve(this.from), n = r.node(r.sharedDepth(this.to)), i = new g(P(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), n), t.openStart, t.openEnd);
359
+ return y.fromReplace(e, this.from, this.to, i);
360
+ }
361
+ invert() {
362
+ return new b(this.from, this.to, this.mark);
363
+ }
364
+ map(e) {
365
+ let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
366
+ return t.deleted && r.deleted || t.pos >= r.pos ? null : new C(t.pos, r.pos, this.mark);
367
+ }
368
+ merge(e) {
369
+ return e instanceof C && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new C(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
370
+ }
371
+ toJSON() {
372
+ return {
373
+ stepType: "addMark",
374
+ mark: this.mark.toJSON(),
375
+ from: this.from,
376
+ to: this.to
377
+ };
378
+ }
379
+ /**
380
+ @internal
381
+ */
382
+ static fromJSON(e, t) {
383
+ if (typeof t.from != "number" || typeof t.to != "number")
384
+ throw new RangeError("Invalid input for AddMarkStep.fromJSON");
385
+ return new C(t.from, t.to, e.markFromJSON(t.mark));
386
+ }
387
+ }
388
+ k.jsonID("addMark", C);
389
+ class b extends k {
390
+ /**
391
+ Create a mark-removing step.
392
+ */
393
+ constructor(e, t, r) {
394
+ super(), this.from = e, this.to = t, this.mark = r;
395
+ }
396
+ apply(e) {
397
+ let t = e.slice(this.from, this.to), r = new g(P(t.content, (n) => n.mark(this.mark.removeFromSet(n.marks)), e), t.openStart, t.openEnd);
398
+ return y.fromReplace(e, this.from, this.to, r);
399
+ }
400
+ invert() {
401
+ return new C(this.from, this.to, this.mark);
402
+ }
403
+ map(e) {
404
+ let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
405
+ return t.deleted && r.deleted || t.pos >= r.pos ? null : new b(t.pos, r.pos, this.mark);
406
+ }
407
+ merge(e) {
408
+ return e instanceof b && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new b(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
409
+ }
410
+ toJSON() {
411
+ return {
412
+ stepType: "removeMark",
413
+ mark: this.mark.toJSON(),
414
+ from: this.from,
415
+ to: this.to
416
+ };
417
+ }
418
+ /**
419
+ @internal
420
+ */
421
+ static fromJSON(e, t) {
422
+ if (typeof t.from != "number" || typeof t.to != "number")
423
+ throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
424
+ return new b(t.from, t.to, e.markFromJSON(t.mark));
425
+ }
426
+ }
427
+ k.jsonID("removeMark", b);
428
+ class N extends k {
429
+ /**
430
+ Create a node mark step.
431
+ */
432
+ constructor(e, t) {
433
+ super(), this.pos = e, this.mark = t;
434
+ }
435
+ apply(e) {
436
+ let t = e.nodeAt(this.pos);
437
+ if (!t)
438
+ return y.fail("No node at mark step's position");
439
+ let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
440
+ return y.fromReplace(e, this.pos, this.pos + 1, new g(w.from(r), 0, t.isLeaf ? 0 : 1));
441
+ }
442
+ invert(e) {
443
+ let t = e.nodeAt(this.pos);
444
+ if (t) {
445
+ let r = this.mark.addToSet(t.marks);
446
+ if (r.length == t.marks.length) {
447
+ for (let n = 0; n < t.marks.length; n++)
448
+ if (!t.marks[n].isInSet(r))
449
+ return new N(this.pos, t.marks[n]);
450
+ return new N(this.pos, this.mark);
451
+ }
452
+ }
453
+ return new R(this.pos, this.mark);
454
+ }
455
+ map(e) {
456
+ let t = e.mapResult(this.pos, 1);
457
+ return t.deletedAfter ? null : new N(t.pos, this.mark);
458
+ }
459
+ toJSON() {
460
+ return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
461
+ }
462
+ /**
463
+ @internal
464
+ */
465
+ static fromJSON(e, t) {
466
+ if (typeof t.pos != "number")
467
+ throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
468
+ return new N(t.pos, e.markFromJSON(t.mark));
469
+ }
470
+ }
471
+ k.jsonID("addNodeMark", N);
472
+ class R extends k {
473
+ /**
474
+ Create a mark-removing step.
475
+ */
476
+ constructor(e, t) {
477
+ super(), this.pos = e, this.mark = t;
478
+ }
479
+ apply(e) {
480
+ let t = e.nodeAt(this.pos);
481
+ if (!t)
482
+ return y.fail("No node at mark step's position");
483
+ let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
484
+ return y.fromReplace(e, this.pos, this.pos + 1, new g(w.from(r), 0, t.isLeaf ? 0 : 1));
485
+ }
486
+ invert(e) {
487
+ let t = e.nodeAt(this.pos);
488
+ return !t || !this.mark.isInSet(t.marks) ? this : new N(this.pos, this.mark);
489
+ }
490
+ map(e) {
491
+ let t = e.mapResult(this.pos, 1);
492
+ return t.deletedAfter ? null : new R(t.pos, this.mark);
493
+ }
494
+ toJSON() {
495
+ return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
496
+ }
497
+ /**
498
+ @internal
499
+ */
500
+ static fromJSON(e, t) {
501
+ if (typeof t.pos != "number")
502
+ throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
503
+ return new R(t.pos, e.markFromJSON(t.mark));
504
+ }
505
+ }
506
+ k.jsonID("removeNodeMark", R);
507
+ class v extends k {
508
+ /**
509
+ The given `slice` should fit the 'gap' between `from` and
510
+ `to`—the depths must line up, and the surrounding nodes must be
511
+ able to be joined with the open sides of the slice. When
512
+ `structure` is true, the step will fail if the content between
513
+ from and to is not just a sequence of closing and then opening
514
+ tokens (this is to guard against rebased replace steps
515
+ overwriting something they weren't supposed to).
516
+ */
517
+ constructor(e, t, r, n = !1) {
518
+ super(), this.from = e, this.to = t, this.slice = r, this.structure = n;
519
+ }
520
+ apply(e) {
521
+ return this.structure && q(e, this.from, this.to) ? y.fail("Structure replace would overwrite content") : y.fromReplace(e, this.from, this.to, this.slice);
522
+ }
523
+ getMap() {
524
+ return new S([this.from, this.to - this.from, this.slice.size]);
525
+ }
526
+ invert(e) {
527
+ return new v(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
528
+ }
529
+ map(e) {
530
+ let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
531
+ return t.deletedAcross && r.deletedAcross ? null : new v(t.pos, Math.max(t.pos, r.pos), this.slice, this.structure);
532
+ }
533
+ merge(e) {
534
+ if (!(e instanceof v) || e.structure || this.structure)
535
+ return null;
536
+ if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
537
+ let t = this.slice.size + e.slice.size == 0 ? g.empty : new g(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
538
+ return new v(this.from, this.to + (e.to - e.from), t, this.structure);
539
+ } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
540
+ let t = this.slice.size + e.slice.size == 0 ? g.empty : new g(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
541
+ return new v(e.from, this.to, t, this.structure);
542
+ } else
543
+ return null;
544
+ }
545
+ toJSON() {
546
+ let e = { stepType: "replace", from: this.from, to: this.to };
547
+ return this.slice.size && (e.slice = this.slice.toJSON()), this.structure && (e.structure = !0), e;
548
+ }
549
+ /**
550
+ @internal
551
+ */
552
+ static fromJSON(e, t) {
553
+ if (typeof t.from != "number" || typeof t.to != "number")
554
+ throw new RangeError("Invalid input for ReplaceStep.fromJSON");
555
+ return new v(t.from, t.to, g.fromJSON(e, t.slice), !!t.structure);
556
+ }
557
+ }
558
+ k.jsonID("replace", v);
559
+ class M extends k {
560
+ /**
561
+ Create a replace-around step with the given range and gap.
562
+ `insert` should be the point in the slice into which the content
563
+ of the gap should be moved. `structure` has the same meaning as
564
+ it has in the [`ReplaceStep`](https://prosemirror.net/docs/ref/#transform.ReplaceStep) class.
565
+ */
566
+ constructor(e, t, r, n, i, o, l = !1) {
567
+ super(), this.from = e, this.to = t, this.gapFrom = r, this.gapTo = n, this.slice = i, this.insert = o, this.structure = l;
568
+ }
569
+ apply(e) {
570
+ if (this.structure && (q(e, this.from, this.gapFrom) || q(e, this.gapTo, this.to)))
571
+ return y.fail("Structure gap-replace would overwrite content");
572
+ let t = e.slice(this.gapFrom, this.gapTo);
573
+ if (t.openStart || t.openEnd)
574
+ return y.fail("Gap is not a flat range");
575
+ let r = this.slice.insertAt(this.insert, t.content);
576
+ return r ? y.fromReplace(e, this.from, this.to, r) : y.fail("Content does not fit in gap");
577
+ }
578
+ getMap() {
579
+ return new S([
580
+ this.from,
581
+ this.gapFrom - this.from,
582
+ this.insert,
583
+ this.gapTo,
584
+ this.to - this.gapTo,
585
+ this.slice.size - this.insert
586
+ ]);
587
+ }
588
+ invert(e) {
589
+ let t = this.gapTo - this.gapFrom;
590
+ return new M(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
591
+ }
592
+ map(e) {
593
+ let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), n = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), i = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
594
+ return t.deletedAcross && r.deletedAcross || n < t.pos || i > r.pos ? null : new M(t.pos, r.pos, n, i, this.slice, this.insert, this.structure);
595
+ }
596
+ toJSON() {
597
+ let e = {
598
+ stepType: "replaceAround",
599
+ from: this.from,
600
+ to: this.to,
601
+ gapFrom: this.gapFrom,
602
+ gapTo: this.gapTo,
603
+ insert: this.insert
604
+ };
605
+ return this.slice.size && (e.slice = this.slice.toJSON()), this.structure && (e.structure = !0), e;
606
+ }
607
+ /**
608
+ @internal
609
+ */
610
+ static fromJSON(e, t) {
611
+ if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
612
+ throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
613
+ return new M(t.from, t.to, t.gapFrom, t.gapTo, g.fromJSON(e, t.slice), t.insert, !!t.structure);
614
+ }
615
+ }
616
+ k.jsonID("replaceAround", M);
617
+ function q(s, e, t) {
618
+ let r = s.resolve(e), n = t - e, i = r.depth;
619
+ for (; n > 0 && i > 0 && r.indexAfter(i) == r.node(i).childCount; )
620
+ i--, n--;
621
+ if (n > 0) {
622
+ let o = r.node(i).maybeChild(r.indexAfter(i));
623
+ for (; n > 0; ) {
624
+ if (!o || o.isLeaf)
625
+ return !0;
626
+ o = o.firstChild, n--;
627
+ }
628
+ }
629
+ return !1;
630
+ }
631
+ function pe(s, e, t, r) {
632
+ let n = [], i = [], o, l;
633
+ s.doc.nodesBetween(e, t, (a, h, p) => {
634
+ if (!a.isInline)
635
+ return;
636
+ let c = a.marks;
637
+ if (!r.isInSet(c) && p.type.allowsMarkType(r.type)) {
638
+ let f = Math.max(h, e), d = Math.min(h + a.nodeSize, t), u = r.addToSet(c);
639
+ for (let m = 0; m < c.length; m++)
640
+ c[m].isInSet(u) || (o && o.to == f && o.mark.eq(c[m]) ? o.to = d : n.push(o = new b(f, d, c[m])));
641
+ l && l.to == f ? l.to = d : i.push(l = new C(f, d, r));
642
+ }
643
+ }), n.forEach((a) => s.step(a)), i.forEach((a) => s.step(a));
644
+ }
645
+ function fe(s, e, t, r) {
646
+ let n = [], i = 0;
647
+ s.doc.nodesBetween(e, t, (o, l) => {
648
+ if (!o.isInline)
649
+ return;
650
+ i++;
651
+ let a = null;
652
+ if (r instanceof le) {
653
+ let h = o.marks, p;
654
+ for (; p = r.isInSet(h); )
655
+ (a || (a = [])).push(p), h = p.removeFromSet(h);
656
+ } else r ? r.isInSet(o.marks) && (a = [r]) : a = o.marks;
657
+ if (a && a.length) {
658
+ let h = Math.min(l + o.nodeSize, t);
659
+ for (let p = 0; p < a.length; p++) {
660
+ let c = a[p], f;
661
+ for (let d = 0; d < n.length; d++) {
662
+ let u = n[d];
663
+ u.step == i - 1 && c.eq(n[d].style) && (f = u);
664
+ }
665
+ f ? (f.to = h, f.step = i) : n.push({ style: c, from: Math.max(l, e), to: h, step: i });
666
+ }
667
+ }
668
+ }), n.forEach((o) => s.step(new b(o.from, o.to, o.style)));
669
+ }
670
+ function $(s, e, t, r = t.contentMatch, n = !0) {
671
+ let i = s.doc.nodeAt(e), o = [], l = e + 1;
672
+ for (let a = 0; a < i.childCount; a++) {
673
+ let h = i.child(a), p = l + h.nodeSize, c = r.matchType(h.type);
674
+ if (!c)
675
+ o.push(new v(l, p, g.empty));
676
+ else {
677
+ r = c;
678
+ for (let f = 0; f < h.marks.length; f++)
679
+ t.allowsMarkType(h.marks[f].type) || s.step(new b(l, p, h.marks[f]));
680
+ if (n && h.isText && t.whitespace != "pre") {
681
+ let f, d = /\r?\n|\r/g, u;
682
+ for (; f = d.exec(h.text); )
683
+ u || (u = new g(w.from(t.schema.text(" ", t.allowedMarks(h.marks))), 0, 0)), o.push(new v(l + f.index, l + f.index + f[0].length, u));
684
+ }
685
+ }
686
+ l = p;
687
+ }
688
+ if (!r.validEnd) {
689
+ let a = r.fillBefore(w.empty, !0);
690
+ s.replace(l, l, new g(a, 0, 0));
691
+ }
692
+ for (let a = o.length - 1; a >= 0; a--)
693
+ s.step(o[a]);
694
+ }
695
+ function ce(s, e, t) {
696
+ return (e == 0 || s.canReplace(e, s.childCount)) && (t == s.childCount || s.canReplace(0, t));
697
+ }
698
+ function Fe(s) {
699
+ let t = s.parent.content.cutByIndex(s.startIndex, s.endIndex);
700
+ for (let r = s.depth, n = 0, i = 0; ; --r) {
701
+ let o = s.$from.node(r), l = s.$from.index(r) + n, a = s.$to.indexAfter(r) - i;
702
+ if (r < s.depth && o.canReplace(l, a, t))
703
+ return r;
704
+ if (r == 0 || o.type.spec.isolating || !ce(o, l, a))
705
+ break;
706
+ l && (n = 1), a < o.childCount && (i = 1);
707
+ }
708
+ return null;
709
+ }
710
+ function de(s, e, t) {
711
+ let { $from: r, $to: n, depth: i } = e, o = r.before(i + 1), l = n.after(i + 1), a = o, h = l, p = w.empty, c = 0;
712
+ for (let u = i, m = !1; u > t; u--)
713
+ m || r.index(u) > 0 ? (m = !0, p = w.from(r.node(u).copy(p)), c++) : a--;
714
+ let f = w.empty, d = 0;
715
+ for (let u = i, m = !1; u > t; u--)
716
+ m || n.after(u + 1) < n.end(u) ? (m = !0, f = w.from(n.node(u).copy(f)), d++) : h++;
717
+ s.step(new M(a, h, o, l, new g(p.append(f), c, d), p.size - c, !0));
718
+ }
719
+ function ze(s, e, t = null, r = s) {
720
+ let n = ue(s, e), i = n && me(r, e);
721
+ return i ? n.map(K).concat({ type: e, attrs: t }).concat(i.map(K)) : null;
722
+ }
723
+ function K(s) {
724
+ return { type: s, attrs: null };
725
+ }
726
+ function ue(s, e) {
727
+ let { parent: t, startIndex: r, endIndex: n } = s, i = t.contentMatchAt(r).findWrapping(e);
728
+ if (!i)
729
+ return null;
730
+ let o = i.length ? i[0] : e;
731
+ return t.canReplaceWith(r, n, o) ? i : null;
732
+ }
733
+ function me(s, e) {
734
+ let { parent: t, startIndex: r, endIndex: n } = s, i = t.child(r), o = e.contentMatch.findWrapping(i.type);
735
+ if (!o)
736
+ return null;
737
+ let a = (o.length ? o[o.length - 1] : e).contentMatch;
738
+ for (let h = r; a && h < n; h++)
739
+ a = a.matchType(t.child(h).type);
740
+ return !a || !a.validEnd ? null : o;
741
+ }
742
+ function ge(s, e, t) {
743
+ let r = w.empty;
744
+ for (let o = t.length - 1; o >= 0; o--) {
745
+ if (r.size) {
746
+ let l = t[o].type.contentMatch.matchFragment(r);
747
+ if (!l || !l.validEnd)
748
+ throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
749
+ }
750
+ r = w.from(t[o].type.create(t[o].attrs, r));
751
+ }
752
+ let n = e.start, i = e.end;
753
+ s.step(new M(n, i, n, i, new g(r, 0, 0), t.length, !0));
754
+ }
755
+ function we(s, e, t, r, n) {
756
+ if (!r.isTextblock)
757
+ throw new RangeError("Type given to setBlockType should be a textblock");
758
+ let i = s.steps.length;
759
+ s.doc.nodesBetween(e, t, (o, l) => {
760
+ let a = typeof n == "function" ? n(o) : n;
761
+ if (o.isTextblock && !o.hasMarkup(r, a) && ye(s.doc, s.mapping.slice(i).map(l), r)) {
762
+ let h = null;
763
+ if (r.schema.linebreakReplacement) {
764
+ let d = r.whitespace == "pre", u = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
765
+ d && !u ? h = !1 : !d && u && (h = !0);
766
+ }
767
+ h === !1 && _(s, o, l, i), $(s, s.mapping.slice(i).map(l, 1), r, void 0, h === null);
768
+ let p = s.mapping.slice(i), c = p.map(l, 1), f = p.map(l + o.nodeSize, 1);
769
+ return s.step(new M(c, f, c + 1, f - 1, new g(w.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), h === !0 && Z(s, o, l, i), !1;
770
+ }
771
+ });
772
+ }
773
+ function Z(s, e, t, r) {
774
+ e.forEach((n, i) => {
775
+ if (n.isText) {
776
+ let o, l = /\r?\n|\r/g;
777
+ for (; o = l.exec(n.text); ) {
778
+ let a = s.mapping.slice(r).map(t + 1 + i + o.index);
779
+ s.replaceWith(a, a + 1, e.type.schema.linebreakReplacement.create());
780
+ }
781
+ }
782
+ });
783
+ }
784
+ function _(s, e, t, r) {
785
+ e.forEach((n, i) => {
786
+ if (n.type == n.type.schema.linebreakReplacement) {
787
+ let o = s.mapping.slice(r).map(t + 1 + i);
788
+ s.replaceWith(o, o + 1, e.type.schema.text(`
789
+ `));
790
+ }
791
+ });
792
+ }
793
+ function ye(s, e, t) {
794
+ let r = s.resolve(e), n = r.index();
795
+ return r.parent.canReplaceWith(n, n + 1, t);
796
+ }
797
+ function ke(s, e, t, r, n) {
798
+ let i = s.doc.nodeAt(e);
799
+ if (!i)
800
+ throw new RangeError("No node at given position");
801
+ t || (t = i.type);
802
+ let o = t.create(r, null, n || i.marks);
803
+ if (i.isLeaf)
804
+ return s.replaceWith(e, e + i.nodeSize, o);
805
+ if (!t.validContent(i.content))
806
+ throw new RangeError("Invalid content for node type " + t.name);
807
+ s.step(new M(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new g(w.from(o), 0, 0), 1, !0));
808
+ }
809
+ function Je(s, e, t = 1, r) {
810
+ let n = s.resolve(e), i = n.depth - t, o = r && r[r.length - 1] || n.parent;
811
+ if (i < 0 || n.parent.type.spec.isolating || !n.parent.canReplace(n.index(), n.parent.childCount) || !o.type.validContent(n.parent.content.cutByIndex(n.index(), n.parent.childCount)))
812
+ return !1;
813
+ for (let h = n.depth - 1, p = t - 2; h > i; h--, p--) {
814
+ let c = n.node(h), f = n.index(h);
815
+ if (c.type.spec.isolating)
816
+ return !1;
817
+ let d = c.content.cutByIndex(f, c.childCount), u = r && r[p + 1];
818
+ u && (d = d.replaceChild(0, u.type.create(u.attrs)));
819
+ let m = r && r[p] || c;
820
+ if (!c.canReplace(f + 1, c.childCount) || !m.type.validContent(d))
821
+ return !1;
822
+ }
823
+ let l = n.indexAfter(i), a = r && r[0];
824
+ return n.node(i).canReplaceWith(l, l, a ? a.type : n.node(i + 1).type);
825
+ }
826
+ function ve(s, e, t = 1, r) {
827
+ let n = s.doc.resolve(e), i = w.empty, o = w.empty;
828
+ for (let l = n.depth, a = n.depth - t, h = t - 1; l > a; l--, h--) {
829
+ i = w.from(n.node(l).copy(i));
830
+ let p = r && r[h];
831
+ o = w.from(p ? p.type.create(p.attrs, o) : n.node(l).copy(o));
832
+ }
833
+ s.step(new v(e, e, new g(i.append(o), t, t), !0));
834
+ }
835
+ function Ae(s, e) {
836
+ let t = s.resolve(e), r = t.index();
837
+ return j(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
838
+ }
839
+ function xe(s, e) {
840
+ e.content.size || s.type.compatibleContent(e.type);
841
+ let t = s.contentMatchAt(s.childCount), { linebreakReplacement: r } = s.type.schema;
842
+ for (let n = 0; n < e.childCount; n++) {
843
+ let i = e.child(n), o = i.type == r ? s.type.schema.nodes.text : i.type;
844
+ if (t = t.matchType(o), !t || !s.type.allowsMarks(i.marks))
845
+ return !1;
846
+ }
847
+ return t.validEnd;
848
+ }
849
+ function j(s, e) {
850
+ return !!(s && e && !s.isLeaf && xe(s, e));
851
+ }
852
+ function Be(s, e, t = -1) {
853
+ let r = s.resolve(e);
854
+ for (let n = r.depth; ; n--) {
855
+ let i, o, l = r.index(n);
856
+ if (n == r.depth ? (i = r.nodeBefore, o = r.nodeAfter) : t > 0 ? (i = r.node(n + 1), l++, o = r.node(n).maybeChild(l)) : (i = r.node(n).maybeChild(l - 1), o = r.node(n + 1)), i && !i.isTextblock && j(i, o) && r.node(n).canReplace(l, l + 1))
857
+ return e;
858
+ if (n == 0)
859
+ break;
860
+ e = t < 0 ? r.before(n) : r.after(n);
861
+ }
862
+ }
863
+ function Se(s, e, t) {
864
+ let r = null, { linebreakReplacement: n } = s.doc.type.schema, i = s.doc.resolve(e - t), o = i.node().type;
865
+ if (n && o.inlineContent) {
866
+ let p = o.whitespace == "pre", c = !!o.contentMatch.matchType(n);
867
+ p && !c ? r = !1 : !p && c && (r = !0);
868
+ }
869
+ let l = s.steps.length;
870
+ if (r === !1) {
871
+ let p = s.doc.resolve(e + t);
872
+ _(s, p.node(), p.before(), l);
873
+ }
874
+ o.inlineContent && $(s, e + t - 1, o, i.node().contentMatchAt(i.index()), r == null);
875
+ let a = s.mapping.slice(l), h = a.map(e - t);
876
+ if (s.step(new v(h, a.map(e + t, -1), g.empty, !0)), r === !0) {
877
+ let p = s.doc.resolve(h);
878
+ Z(s, p.node(), p.before(), s.steps.length);
879
+ }
880
+ return s;
881
+ }
882
+ function be(s, e, t) {
883
+ let r = s.resolve(e);
884
+ if (r.parent.canReplaceWith(r.index(), r.index(), t))
885
+ return e;
886
+ if (r.parentOffset == 0)
887
+ for (let n = r.depth - 1; n >= 0; n--) {
888
+ let i = r.index(n);
889
+ if (r.node(n).canReplaceWith(i, i, t))
890
+ return r.before(n + 1);
891
+ if (i > 0)
892
+ return null;
893
+ }
894
+ if (r.parentOffset == r.parent.content.size)
895
+ for (let n = r.depth - 1; n >= 0; n--) {
896
+ let i = r.indexAfter(n);
897
+ if (r.node(n).canReplaceWith(i, i, t))
898
+ return r.after(n + 1);
899
+ if (i < r.node(n).childCount)
900
+ return null;
901
+ }
902
+ return null;
903
+ }
904
+ function We(s, e, t) {
905
+ let r = s.resolve(e);
906
+ if (!t.content.size)
907
+ return e;
908
+ let n = t.content;
909
+ for (let i = 0; i < t.openStart; i++)
910
+ n = n.firstChild.content;
911
+ for (let i = 1; i <= (t.openStart == 0 && t.size ? 2 : 1); i++)
912
+ for (let o = r.depth; o >= 0; o--) {
913
+ let l = o == r.depth ? 0 : r.pos <= (r.start(o + 1) + r.end(o + 1)) / 2 ? -1 : 1, a = r.index(o) + (l > 0 ? 1 : 0), h = r.node(o), p = !1;
914
+ if (i == 1)
915
+ p = h.canReplace(a, a, n);
916
+ else {
917
+ let c = h.contentMatchAt(a).findWrapping(n.firstChild.type);
918
+ p = c && h.canReplaceWith(a, a, c[0]);
919
+ }
920
+ if (p)
921
+ return l == 0 ? r.pos : l < 0 ? r.before(o + 1) : r.after(o + 1);
922
+ }
923
+ return null;
924
+ }
925
+ function Me(s, e, t = e, r = g.empty) {
926
+ if (e == t && !r.size)
927
+ return null;
928
+ let n = s.resolve(e), i = s.resolve(t);
929
+ return ee(n, i, r) ? new v(e, t, r) : new Ce(n, i, r).fit();
930
+ }
931
+ function ee(s, e, t) {
932
+ return !t.openStart && !t.openEnd && s.start() == e.start() && s.parent.canReplace(s.index(), e.index(), t.content);
933
+ }
934
+ class Ce {
935
+ constructor(e, t, r) {
936
+ this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = w.empty;
937
+ for (let n = 0; n <= e.depth; n++) {
938
+ let i = e.node(n);
939
+ this.frontier.push({
940
+ type: i.type,
941
+ match: i.contentMatchAt(e.indexAfter(n))
942
+ });
943
+ }
944
+ for (let n = e.depth; n > 0; n--)
945
+ this.placed = w.from(e.node(n).copy(this.placed));
946
+ }
947
+ get depth() {
948
+ return this.frontier.length - 1;
949
+ }
950
+ fit() {
951
+ for (; this.unplaced.size; ) {
952
+ let h = this.findFittable();
953
+ h ? this.placeNodes(h) : this.openMore() || this.dropNode();
954
+ }
955
+ let e = this.mustMoveInline(), t = this.placed.size - this.depth - this.$from.depth, r = this.$from, n = this.close(e < 0 ? this.$to : r.doc.resolve(e));
956
+ if (!n)
957
+ return null;
958
+ let i = this.placed, o = r.depth, l = n.depth;
959
+ for (; o && l && i.childCount == 1; )
960
+ i = i.firstChild.content, o--, l--;
961
+ let a = new g(i, o, l);
962
+ return e > -1 ? new M(r.pos, e, this.$to.pos, this.$to.end(), a, t) : a.size || r.pos != this.$to.pos ? new v(r.pos, n.pos, a) : null;
963
+ }
964
+ // Find a position on the start spine of `this.unplaced` that has
965
+ // content that can be moved somewhere on the frontier. Returns two
966
+ // depths, one for the slice and one for the frontier.
967
+ findFittable() {
968
+ let e = this.unplaced.openStart;
969
+ for (let t = this.unplaced.content, r = 0, n = this.unplaced.openEnd; r < e; r++) {
970
+ let i = t.firstChild;
971
+ if (t.childCount > 1 && (n = 0), i.type.spec.isolating && n <= r) {
972
+ e = r;
973
+ break;
974
+ }
975
+ t = i.content;
976
+ }
977
+ for (let t = 1; t <= 2; t++)
978
+ for (let r = t == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
979
+ let n, i = null;
980
+ r ? (i = W(this.unplaced.content, r - 1).firstChild, n = i.content) : n = this.unplaced.content;
981
+ let o = n.firstChild;
982
+ for (let l = this.depth; l >= 0; l--) {
983
+ let { type: a, match: h } = this.frontier[l], p, c = null;
984
+ if (t == 1 && (o ? h.matchType(o.type) || (c = h.fillBefore(w.from(o), !1)) : i && a.compatibleContent(i.type)))
985
+ return { sliceDepth: r, frontierDepth: l, parent: i, inject: c };
986
+ if (t == 2 && o && (p = h.findWrapping(o.type)))
987
+ return { sliceDepth: r, frontierDepth: l, parent: i, wrap: p };
988
+ if (i && h.matchType(i.type))
989
+ break;
990
+ }
991
+ }
992
+ }
993
+ openMore() {
994
+ let { content: e, openStart: t, openEnd: r } = this.unplaced, n = W(e, t);
995
+ return !n.childCount || n.firstChild.isLeaf ? !1 : (this.unplaced = new g(e, t + 1, Math.max(r, n.size + t >= e.size - r ? t + 1 : 0)), !0);
996
+ }
997
+ dropNode() {
998
+ let { content: e, openStart: t, openEnd: r } = this.unplaced, n = W(e, t);
999
+ if (n.childCount <= 1 && t > 0) {
1000
+ let i = e.size - t <= t + n.size;
1001
+ this.unplaced = new g(O(e, t - 1, 1), t - 1, i ? t - 1 : r);
1002
+ } else
1003
+ this.unplaced = new g(O(e, t, 1), t, r);
1004
+ }
1005
+ // Move content from the unplaced slice at `sliceDepth` to the
1006
+ // frontier node at `frontierDepth`. Close that frontier node when
1007
+ // applicable.
1008
+ placeNodes({ sliceDepth: e, frontierDepth: t, parent: r, inject: n, wrap: i }) {
1009
+ for (; this.depth > t; )
1010
+ this.closeFrontierNode();
1011
+ if (i)
1012
+ for (let m = 0; m < i.length; m++)
1013
+ this.openFrontierNode(i[m]);
1014
+ let o = this.unplaced, l = r ? r.content : o.content, a = o.openStart - e, h = 0, p = [], { match: c, type: f } = this.frontier[t];
1015
+ if (n) {
1016
+ for (let m = 0; m < n.childCount; m++)
1017
+ p.push(n.child(m));
1018
+ c = c.matchFragment(n);
1019
+ }
1020
+ let d = l.size + e - (o.content.size - o.openEnd);
1021
+ for (; h < l.childCount; ) {
1022
+ let m = l.child(h), x = c.matchType(m.type);
1023
+ if (!x)
1024
+ break;
1025
+ h++, (h > 1 || a == 0 || m.content.size) && (c = x, p.push(te(m.mark(f.allowedMarks(m.marks)), h == 1 ? a : 0, h == l.childCount ? d : -1)));
1026
+ }
1027
+ let u = h == l.childCount;
1028
+ u || (d = -1), this.placed = F(this.placed, t, w.from(p)), this.frontier[t].match = c, u && d < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
1029
+ for (let m = 0, x = l; m < d; m++) {
1030
+ let I = x.lastChild;
1031
+ this.frontier.push({ type: I.type, match: I.contentMatchAt(I.childCount) }), x = I.content;
1032
+ }
1033
+ this.unplaced = u ? e == 0 ? g.empty : new g(O(o.content, e - 1, 1), e - 1, d < 0 ? o.openEnd : e - 1) : new g(O(o.content, e, h), o.openStart, o.openEnd);
1034
+ }
1035
+ mustMoveInline() {
1036
+ if (!this.$to.parent.isTextblock)
1037
+ return -1;
1038
+ let e = this.frontier[this.depth], t;
1039
+ if (!e.type.isTextblock || !D(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
1040
+ return -1;
1041
+ let { depth: r } = this.$to, n = this.$to.after(r);
1042
+ for (; r > 1 && n == this.$to.end(--r); )
1043
+ ++n;
1044
+ return n;
1045
+ }
1046
+ findCloseLevel(e) {
1047
+ e: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
1048
+ let { match: r, type: n } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), o = D(e, t, n, r, i);
1049
+ if (o) {
1050
+ for (let l = t - 1; l >= 0; l--) {
1051
+ let { match: a, type: h } = this.frontier[l], p = D(e, l, h, a, !0);
1052
+ if (!p || p.childCount)
1053
+ continue e;
1054
+ }
1055
+ return { depth: t, fit: o, move: i ? e.doc.resolve(e.after(t + 1)) : e };
1056
+ }
1057
+ }
1058
+ }
1059
+ close(e) {
1060
+ let t = this.findCloseLevel(e);
1061
+ if (!t)
1062
+ return null;
1063
+ for (; this.depth > t.depth; )
1064
+ this.closeFrontierNode();
1065
+ t.fit.childCount && (this.placed = F(this.placed, t.depth, t.fit)), e = t.move;
1066
+ for (let r = t.depth + 1; r <= e.depth; r++) {
1067
+ let n = e.node(r), i = n.type.contentMatch.fillBefore(n.content, !0, e.index(r));
1068
+ this.openFrontierNode(n.type, n.attrs, i);
1069
+ }
1070
+ return e;
1071
+ }
1072
+ openFrontierNode(e, t = null, r) {
1073
+ let n = this.frontier[this.depth];
1074
+ n.match = n.match.matchType(e), this.placed = F(this.placed, this.depth, w.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
1075
+ }
1076
+ closeFrontierNode() {
1077
+ let t = this.frontier.pop().match.fillBefore(w.empty, !0);
1078
+ t.childCount && (this.placed = F(this.placed, this.frontier.length, t));
1079
+ }
1080
+ }
1081
+ function O(s, e, t) {
1082
+ return e == 0 ? s.cutByIndex(t, s.childCount) : s.replaceChild(0, s.firstChild.copy(O(s.firstChild.content, e - 1, t)));
1083
+ }
1084
+ function F(s, e, t) {
1085
+ return e == 0 ? s.append(t) : s.replaceChild(s.childCount - 1, s.lastChild.copy(F(s.lastChild.content, e - 1, t)));
1086
+ }
1087
+ function W(s, e) {
1088
+ for (let t = 0; t < e; t++)
1089
+ s = s.firstChild.content;
1090
+ return s;
1091
+ }
1092
+ function te(s, e, t) {
1093
+ if (e <= 0)
1094
+ return s;
1095
+ let r = s.content;
1096
+ return e > 1 && (r = r.replaceChild(0, te(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = s.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(s.type.contentMatch.matchFragment(r).fillBefore(w.empty, !0)))), s.copy(r);
1097
+ }
1098
+ function D(s, e, t, r, n) {
1099
+ let i = s.node(e), o = n ? s.indexAfter(e) : s.index(e);
1100
+ if (o == i.childCount && !t.compatibleContent(i.type))
1101
+ return null;
1102
+ let l = r.fillBefore(i.content, !0, o);
1103
+ return l && !Ne(t, i.content, o) ? l : null;
1104
+ }
1105
+ function Ne(s, e, t) {
1106
+ for (let r = t; r < e.childCount; r++)
1107
+ if (!s.allowsMarks(e.child(r).marks))
1108
+ return !0;
1109
+ return !1;
1110
+ }
1111
+ function Ie(s) {
1112
+ return s.spec.defining || s.spec.definingForContent;
1113
+ }
1114
+ function Re(s, e, t, r) {
1115
+ if (!r.size)
1116
+ return s.deleteRange(e, t);
1117
+ let n = s.doc.resolve(e), i = s.doc.resolve(t);
1118
+ if (ee(n, i, r))
1119
+ return s.step(new v(e, t, r));
1120
+ let o = ne(n, i);
1121
+ o[o.length - 1] == 0 && o.pop();
1122
+ let l = -(n.depth + 1);
1123
+ o.unshift(l);
1124
+ for (let f = n.depth, d = n.pos - 1; f > 0; f--, d--) {
1125
+ let u = n.node(f).type.spec;
1126
+ if (u.defining || u.definingAsContext || u.isolating)
1127
+ break;
1128
+ o.indexOf(f) > -1 ? l = f : n.before(f) == d && o.splice(1, 0, -f);
1129
+ }
1130
+ let a = o.indexOf(l), h = [], p = r.openStart;
1131
+ for (let f = r.content, d = 0; ; d++) {
1132
+ let u = f.firstChild;
1133
+ if (h.push(u), d == r.openStart)
1134
+ break;
1135
+ f = u.content;
1136
+ }
1137
+ for (let f = p - 1; f >= 0; f--) {
1138
+ let d = h[f], u = Ie(d.type);
1139
+ if (u && !d.sameMarkup(n.node(Math.abs(l) - 1)))
1140
+ p = f;
1141
+ else if (u || !d.type.isTextblock)
1142
+ break;
1143
+ }
1144
+ for (let f = r.openStart; f >= 0; f--) {
1145
+ let d = (f + p + 1) % (r.openStart + 1), u = h[d];
1146
+ if (u)
1147
+ for (let m = 0; m < o.length; m++) {
1148
+ let x = o[(m + a) % o.length], I = !0;
1149
+ x < 0 && (I = !1, x = -x);
1150
+ let ie = n.node(x - 1), G = n.index(x - 1);
1151
+ if (ie.canReplaceWith(G, G, u.type, u.marks))
1152
+ return s.replace(n.before(x), I ? i.after(x) : t, new g(re(r.content, 0, r.openStart, d), d, r.openEnd));
1153
+ }
1154
+ }
1155
+ let c = s.steps.length;
1156
+ for (let f = o.length - 1; f >= 0 && (s.replace(e, t, r), !(s.steps.length > c)); f--) {
1157
+ let d = o[f];
1158
+ d < 0 || (e = n.before(d), t = i.after(d));
1159
+ }
1160
+ }
1161
+ function re(s, e, t, r, n) {
1162
+ if (e < t) {
1163
+ let i = s.firstChild;
1164
+ s = s.replaceChild(0, i.copy(re(i.content, e + 1, t, r, i)));
1165
+ }
1166
+ if (e > r) {
1167
+ let i = n.contentMatchAt(0), o = i.fillBefore(s).append(s);
1168
+ s = o.append(i.matchFragment(o).fillBefore(w.empty, !0));
1169
+ }
1170
+ return s;
1171
+ }
1172
+ function Ee(s, e, t, r) {
1173
+ if (!r.isInline && e == t && s.doc.resolve(e).parent.content.size) {
1174
+ let n = be(s.doc, e, r.type);
1175
+ n != null && (e = t = n);
1176
+ }
1177
+ s.replaceRange(e, t, new g(w.from(r), 0, 0));
1178
+ }
1179
+ function Te(s, e, t) {
1180
+ let r = s.doc.resolve(e), n = s.doc.resolve(t), i = ne(r, n);
1181
+ for (let o = 0; o < i.length; o++) {
1182
+ let l = i[o], a = o == i.length - 1;
1183
+ if (a && l == 0 || r.node(l).type.contentMatch.validEnd)
1184
+ return s.delete(r.start(l), n.end(l));
1185
+ if (l > 0 && (a || r.node(l - 1).canReplace(r.index(l - 1), n.indexAfter(l - 1))))
1186
+ return s.delete(r.before(l), n.after(l));
1187
+ }
1188
+ for (let o = 1; o <= r.depth && o <= n.depth; o++)
1189
+ if (e - r.start(o) == r.depth - o && t > r.end(o) && n.end(o) - t != n.depth - o && r.start(o - 1) == n.start(o - 1) && r.node(o - 1).canReplace(r.index(o - 1), n.index(o - 1)))
1190
+ return s.delete(r.before(o), t);
1191
+ s.delete(e, t);
1192
+ }
1193
+ function ne(s, e) {
1194
+ let t = [], r = Math.min(s.depth, e.depth);
1195
+ for (let n = r; n >= 0; n--) {
1196
+ let i = s.start(n);
1197
+ if (i < s.pos - (s.depth - n) || e.end(n) > e.pos + (e.depth - n) || s.node(n).type.spec.isolating || e.node(n).type.spec.isolating)
1198
+ break;
1199
+ (i == e.start(n) || n == s.depth && n == e.depth && s.parent.inlineContent && e.parent.inlineContent && n && e.start(n - 1) == i - 1) && t.push(n);
1200
+ }
1201
+ return t;
1202
+ }
1203
+ class E extends k {
1204
+ /**
1205
+ Construct an attribute step.
1206
+ */
1207
+ constructor(e, t, r) {
1208
+ super(), this.pos = e, this.attr = t, this.value = r;
1209
+ }
1210
+ apply(e) {
1211
+ let t = e.nodeAt(this.pos);
1212
+ if (!t)
1213
+ return y.fail("No node at attribute step's position");
1214
+ let r = /* @__PURE__ */ Object.create(null);
1215
+ for (let i in t.attrs)
1216
+ r[i] = t.attrs[i];
1217
+ r[this.attr] = this.value;
1218
+ let n = t.type.create(r, null, t.marks);
1219
+ return y.fromReplace(e, this.pos, this.pos + 1, new g(w.from(n), 0, t.isLeaf ? 0 : 1));
1220
+ }
1221
+ getMap() {
1222
+ return S.empty;
1223
+ }
1224
+ invert(e) {
1225
+ return new E(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
1226
+ }
1227
+ map(e) {
1228
+ let t = e.mapResult(this.pos, 1);
1229
+ return t.deletedAfter ? null : new E(t.pos, this.attr, this.value);
1230
+ }
1231
+ toJSON() {
1232
+ return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
1233
+ }
1234
+ static fromJSON(e, t) {
1235
+ if (typeof t.pos != "number" || typeof t.attr != "string")
1236
+ throw new RangeError("Invalid input for AttrStep.fromJSON");
1237
+ return new E(t.pos, t.attr, t.value);
1238
+ }
1239
+ }
1240
+ k.jsonID("attr", E);
1241
+ class z extends k {
1242
+ /**
1243
+ Construct an attribute step.
1244
+ */
1245
+ constructor(e, t) {
1246
+ super(), this.attr = e, this.value = t;
1247
+ }
1248
+ apply(e) {
1249
+ let t = /* @__PURE__ */ Object.create(null);
1250
+ for (let n in e.attrs)
1251
+ t[n] = e.attrs[n];
1252
+ t[this.attr] = this.value;
1253
+ let r = e.type.create(t, e.content, e.marks);
1254
+ return y.ok(r);
1255
+ }
1256
+ getMap() {
1257
+ return S.empty;
1258
+ }
1259
+ invert(e) {
1260
+ return new z(this.attr, e.attrs[this.attr]);
1261
+ }
1262
+ map(e) {
1263
+ return this;
1264
+ }
1265
+ toJSON() {
1266
+ return { stepType: "docAttr", attr: this.attr, value: this.value };
1267
+ }
1268
+ static fromJSON(e, t) {
1269
+ if (typeof t.attr != "string")
1270
+ throw new RangeError("Invalid input for DocAttrStep.fromJSON");
1271
+ return new z(t.attr, t.value);
1272
+ }
1273
+ }
1274
+ k.jsonID("docAttr", z);
1275
+ let T = class extends Error {
1276
+ };
1277
+ T = function s(e) {
1278
+ let t = Error.call(this, e);
1279
+ return t.__proto__ = s.prototype, t;
1280
+ };
1281
+ T.prototype = Object.create(Error.prototype);
1282
+ T.prototype.constructor = T;
1283
+ T.prototype.name = "TransformError";
1284
+ class De {
1285
+ /**
1286
+ Create a transform that starts with the given document.
1287
+ */
1288
+ constructor(e) {
1289
+ this.doc = e, this.steps = [], this.docs = [], this.mapping = new A();
1290
+ }
1291
+ /**
1292
+ The starting document.
1293
+ */
1294
+ get before() {
1295
+ return this.docs.length ? this.docs[0] : this.doc;
1296
+ }
1297
+ /**
1298
+ Apply a new step in this transform, saving the result. Throws an
1299
+ error when the step fails.
1300
+ */
1301
+ step(e) {
1302
+ let t = this.maybeStep(e);
1303
+ if (t.failed)
1304
+ throw new T(t.failed);
1305
+ return this;
1306
+ }
1307
+ /**
1308
+ Try to apply a step in this transformation, ignoring it if it
1309
+ fails. Returns the step result.
1310
+ */
1311
+ maybeStep(e) {
1312
+ let t = e.apply(this.doc);
1313
+ return t.failed || this.addStep(e, t.doc), t;
1314
+ }
1315
+ /**
1316
+ True when the document has been changed (when there are any
1317
+ steps).
1318
+ */
1319
+ get docChanged() {
1320
+ return this.steps.length > 0;
1321
+ }
1322
+ /**
1323
+ Return a single range, in post-transform document positions,
1324
+ that covers all content changed by this transform. Returns null
1325
+ if no replacements are made. Note that this will ignore changes
1326
+ that add/remove marks without replacing the underlying content.
1327
+ */
1328
+ changedRange() {
1329
+ let e = 1e9, t = -1e9;
1330
+ for (let r = 0; r < this.mapping.maps.length; r++) {
1331
+ let n = this.mapping.maps[r];
1332
+ r && (e = n.map(e, 1), t = n.map(t, -1)), n.forEach((i, o, l, a) => {
1333
+ e = Math.min(e, l), t = Math.max(t, a);
1334
+ });
1335
+ }
1336
+ return e == 1e9 ? null : { from: e, to: t };
1337
+ }
1338
+ /**
1339
+ @internal
1340
+ */
1341
+ addStep(e, t) {
1342
+ this.docs.push(this.doc), this.steps.push(e), this.mapping.appendMap(e.getMap()), this.doc = t;
1343
+ }
1344
+ /**
1345
+ Replace the part of the document between `from` and `to` with the
1346
+ given `slice`.
1347
+ */
1348
+ replace(e, t = e, r = g.empty) {
1349
+ let n = Me(this.doc, e, t, r);
1350
+ return n && this.step(n), this;
1351
+ }
1352
+ /**
1353
+ Replace the given range with the given content, which may be a
1354
+ fragment, node, or array of nodes.
1355
+ */
1356
+ replaceWith(e, t, r) {
1357
+ return this.replace(e, t, new g(w.from(r), 0, 0));
1358
+ }
1359
+ /**
1360
+ Delete the content between the given positions.
1361
+ */
1362
+ delete(e, t) {
1363
+ return this.replace(e, t, g.empty);
1364
+ }
1365
+ /**
1366
+ Insert the given content at the given position.
1367
+ */
1368
+ insert(e, t) {
1369
+ return this.replaceWith(e, e, t);
1370
+ }
1371
+ /**
1372
+ Replace a range of the document with a given slice, using
1373
+ `from`, `to`, and the slice's
1374
+ [`openStart`](https://prosemirror.net/docs/ref/#model.Slice.openStart) property as hints, rather
1375
+ than fixed start and end points. This method may grow the
1376
+ replaced area or close open nodes in the slice in order to get a
1377
+ fit that is more in line with WYSIWYG expectations, by dropping
1378
+ fully covered parent nodes of the replaced region when they are
1379
+ marked [non-defining as
1380
+ context](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext), or including an
1381
+ open parent node from the slice that _is_ marked as [defining
1382
+ its content](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
1383
+
1384
+ This is the method, for example, to handle paste. The similar
1385
+ [`replace`](https://prosemirror.net/docs/ref/#transform.Transform.replace) method is a more
1386
+ primitive tool which will _not_ move the start and end of its given
1387
+ range, and is useful in situations where you need more precise
1388
+ control over what happens.
1389
+ */
1390
+ replaceRange(e, t, r) {
1391
+ return Re(this, e, t, r), this;
1392
+ }
1393
+ /**
1394
+ Replace the given range with a node, but use `from` and `to` as
1395
+ hints, rather than precise positions. When from and to are the same
1396
+ and are at the start or end of a parent node in which the given
1397
+ node doesn't fit, this method may _move_ them out towards a parent
1398
+ that does allow the given node to be placed. When the given range
1399
+ completely covers a parent node, this method may completely replace
1400
+ that parent node.
1401
+ */
1402
+ replaceRangeWith(e, t, r) {
1403
+ return Ee(this, e, t, r), this;
1404
+ }
1405
+ /**
1406
+ Delete the given range, expanding it to cover fully covered
1407
+ parent nodes until a valid replace is found.
1408
+ */
1409
+ deleteRange(e, t) {
1410
+ return Te(this, e, t), this;
1411
+ }
1412
+ /**
1413
+ Split the content in the given range off from its parent, if there
1414
+ is sibling content before or after it, and move it up the tree to
1415
+ the depth specified by `target`. You'll probably want to use
1416
+ [`liftTarget`](https://prosemirror.net/docs/ref/#transform.liftTarget) to compute `target`, to make
1417
+ sure the lift is valid.
1418
+ */
1419
+ lift(e, t) {
1420
+ return de(this, e, t), this;
1421
+ }
1422
+ /**
1423
+ Join the blocks around the given position. If depth is 2, their
1424
+ last and first siblings are also joined, and so on.
1425
+ */
1426
+ join(e, t = 1) {
1427
+ return Se(this, e, t), this;
1428
+ }
1429
+ /**
1430
+ Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
1431
+ The wrappers are assumed to be valid in this position, and should
1432
+ probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
1433
+ */
1434
+ wrap(e, t) {
1435
+ return ge(this, e, t), this;
1436
+ }
1437
+ /**
1438
+ Set the type of all textblocks (partly) between `from` and `to` to
1439
+ the given node type with the given attributes.
1440
+ */
1441
+ setBlockType(e, t = e, r, n = null) {
1442
+ return we(this, e, t, r, n), this;
1443
+ }
1444
+ /**
1445
+ Change the type, attributes, and/or marks of the node at `pos`.
1446
+ When `type` isn't given, the existing node type is preserved,
1447
+ */
1448
+ setNodeMarkup(e, t, r = null, n) {
1449
+ return ke(this, e, t, r, n), this;
1450
+ }
1451
+ /**
1452
+ Set a single attribute on a given node to a new value.
1453
+ The `pos` addresses the document content. Use `setDocAttribute`
1454
+ to set attributes on the document itself.
1455
+ */
1456
+ setNodeAttribute(e, t, r) {
1457
+ return this.step(new E(e, t, r)), this;
1458
+ }
1459
+ /**
1460
+ Set a single attribute on the document to a new value.
1461
+ */
1462
+ setDocAttribute(e, t) {
1463
+ return this.step(new z(e, t)), this;
1464
+ }
1465
+ /**
1466
+ Add a mark to the node at position `pos`.
1467
+ */
1468
+ addNodeMark(e, t) {
1469
+ return this.step(new N(e, t)), this;
1470
+ }
1471
+ /**
1472
+ Remove a mark (or all marks of the given type) from the node at
1473
+ position `pos`.
1474
+ */
1475
+ removeNodeMark(e, t) {
1476
+ let r = this.doc.nodeAt(e);
1477
+ if (!r)
1478
+ throw new RangeError("No node at position " + e);
1479
+ if (t instanceof oe)
1480
+ t.isInSet(r.marks) && this.step(new R(e, t));
1481
+ else {
1482
+ let n = r.marks, i, o = [];
1483
+ for (; i = t.isInSet(n); )
1484
+ o.push(new R(e, i)), n = i.removeFromSet(n);
1485
+ for (let l = o.length - 1; l >= 0; l--)
1486
+ this.step(o[l]);
1487
+ }
1488
+ return this;
1489
+ }
1490
+ /**
1491
+ Split the node at the given position, and optionally, if `depth` is
1492
+ greater than one, any number of nodes above that. By default, the
1493
+ parts split off will inherit the node type of the original node.
1494
+ This can be changed by passing an array of types and attributes to
1495
+ use after the split (with the outermost nodes coming first).
1496
+ */
1497
+ split(e, t = 1, r) {
1498
+ return ve(this, e, t, r), this;
1499
+ }
1500
+ /**
1501
+ Add the given mark to the inline content between `from` and `to`.
1502
+ */
1503
+ addMark(e, t, r) {
1504
+ return pe(this, e, t, r), this;
1505
+ }
1506
+ /**
1507
+ Remove marks from inline nodes between `from` and `to`. When
1508
+ `mark` is a single mark, remove precisely that mark. When it is
1509
+ a mark type, remove all marks of that type. When it is null,
1510
+ remove all marks of any type.
1511
+ */
1512
+ removeMark(e, t, r) {
1513
+ return fe(this, e, t, r), this;
1514
+ }
1515
+ /**
1516
+ Removes all marks and nodes from the content of the node at
1517
+ `pos` that don't match the given new parent node type. Accepts
1518
+ an optional starting [content match](https://prosemirror.net/docs/ref/#model.ContentMatch) as
1519
+ third argument.
1520
+ */
1521
+ clearIncompatible(e, t, r) {
1522
+ return $(this, e, t, r), this;
1523
+ }
1524
+ }
1525
+ export {
1526
+ C as AddMarkStep,
1527
+ N as AddNodeMarkStep,
1528
+ E as AttrStep,
1529
+ z as DocAttrStep,
1530
+ L as MapResult,
1531
+ A as Mapping,
1532
+ b as RemoveMarkStep,
1533
+ R as RemoveNodeMarkStep,
1534
+ M as ReplaceAroundStep,
1535
+ v as ReplaceStep,
1536
+ k as Step,
1537
+ S as StepMap,
1538
+ y as StepResult,
1539
+ De as Transform,
1540
+ T as TransformError,
1541
+ Ae as canJoin,
1542
+ Je as canSplit,
1543
+ We as dropPoint,
1544
+ ze as findWrapping,
1545
+ be as insertPoint,
1546
+ Be as joinPoint,
1547
+ Fe as liftTarget,
1548
+ Me as replaceStep
1549
+ };