@gsc-basic/shared-service 1.0.5 → 1.0.7

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 (950) hide show
  1. package/dist/index.css +14 -0
  2. package/dist/shared-service.js +14 -0
  3. package/index.d.ts +64 -62
  4. package/package.json +16 -13
  5. package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -22
  6. package/dist/es/_virtual/index.js +0 -15
  7. package/dist/es/_virtual/index2.js +0 -17
  8. package/dist/es/configs/auth-config/dist/index.js +0 -91
  9. package/dist/es/email-center/AccountConf/index.js +0 -19
  10. package/dist/es/email-center/AccountConf/src/config/columns.js +0 -82
  11. package/dist/es/email-center/AccountConf/src/config/filters.js +0 -61
  12. package/dist/es/email-center/AccountConf/src/config/schema.js +0 -139
  13. package/dist/es/email-center/AccountConf/src/constant/index.js +0 -72
  14. package/dist/es/email-center/AccountConf/src/index.css +0 -14
  15. package/dist/es/email-center/AccountConf/src/index.vue.js +0 -98
  16. package/dist/es/email-center/AccountConf/src/index2.css +0 -14
  17. package/dist/es/email-center/CmGroup/index.js +0 -19
  18. package/dist/es/email-center/CmGroup/src/config/columns.js +0 -77
  19. package/dist/es/email-center/CmGroup/src/config/filters.js +0 -64
  20. package/dist/es/email-center/CmGroup/src/config/schema.js +0 -79
  21. package/dist/es/email-center/CmGroup/src/constant/index.js +0 -26
  22. package/dist/es/email-center/CmGroup/src/index.css +0 -14
  23. package/dist/es/email-center/CmGroup/src/index.vue.js +0 -91
  24. package/dist/es/email-center/CmGroup/src/index2.css +0 -14
  25. package/dist/es/email-center/InboxNotifyConf/index.js +0 -19
  26. package/dist/es/email-center/InboxNotifyConf/src/config/columns.js +0 -124
  27. package/dist/es/email-center/InboxNotifyConf/src/config/filters.js +0 -61
  28. package/dist/es/email-center/InboxNotifyConf/src/config/schema.js +0 -152
  29. package/dist/es/email-center/InboxNotifyConf/src/constant/index.js +0 -104
  30. package/dist/es/email-center/InboxNotifyConf/src/index.css +0 -14
  31. package/dist/es/email-center/InboxNotifyConf/src/index.vue.js +0 -122
  32. package/dist/es/email-center/InboxNotifyConf/src/index2.css +0 -14
  33. package/dist/es/email-center/Log/index.js +0 -19
  34. package/dist/es/email-center/Log/src/config/columns.js +0 -115
  35. package/dist/es/email-center/Log/src/config/filters.js +0 -81
  36. package/dist/es/email-center/Log/src/index.css +0 -14
  37. package/dist/es/email-center/Log/src/index.vue.js +0 -161
  38. package/dist/es/email-center/Log/src/index2.css +0 -14
  39. package/dist/es/email-center/Template/index.js +0 -19
  40. package/dist/es/email-center/Template/src/components/MailTemplateSend.css +0 -14
  41. package/dist/es/email-center/Template/src/components/MailTemplateSend.vue.js +0 -256
  42. package/dist/es/email-center/Template/src/components/MailTemplateSend2.css +0 -14
  43. package/dist/es/email-center/Template/src/config/columns.js +0 -107
  44. package/dist/es/email-center/Template/src/config/filters.js +0 -82
  45. package/dist/es/email-center/Template/src/config/schema.js +0 -179
  46. package/dist/es/email-center/Template/src/constant/index.js +0 -274
  47. package/dist/es/email-center/Template/src/index.css +0 -14
  48. package/dist/es/email-center/Template/src/index.vue.js +0 -255
  49. package/dist/es/email-center/Template/src/index2.css +0 -14
  50. package/dist/es/email-center/api/accountConf.js +0 -21
  51. package/dist/es/email-center/api/cmGroup.js +0 -21
  52. package/dist/es/email-center/api/common.js +0 -42
  53. package/dist/es/email-center/api/inboxNotifyConf.js +0 -21
  54. package/dist/es/email-center/api/log.js +0 -23
  55. package/dist/es/email-center/api/template.js +0 -27
  56. package/dist/es/email-center/components/form.css +0 -14
  57. package/dist/es/email-center/components/form.vue.js +0 -116
  58. package/dist/es/email-center/components/form2.css +0 -14
  59. package/dist/es/email-center/components/grid.css +0 -14
  60. package/dist/es/email-center/components/grid.vue.js +0 -308
  61. package/dist/es/email-center/components/grid2.css +0 -14
  62. package/dist/es/file-flow/DownloadCenter/index.js +0 -19
  63. package/dist/es/file-flow/DownloadCenter/src/components/progress.css +0 -14
  64. package/dist/es/file-flow/DownloadCenter/src/components/progress.vue.js +0 -135
  65. package/dist/es/file-flow/DownloadCenter/src/components/progress2.css +0 -14
  66. package/dist/es/file-flow/DownloadCenter/src/config/columns.js +0 -80
  67. package/dist/es/file-flow/DownloadCenter/src/config/filters.js +0 -79
  68. package/dist/es/file-flow/DownloadCenter/src/config/logColumns.js +0 -48
  69. package/dist/es/file-flow/DownloadCenter/src/config/schema.js +0 -50
  70. package/dist/es/file-flow/DownloadCenter/src/index.css +0 -14
  71. package/dist/es/file-flow/DownloadCenter/src/index.vue.js +0 -219
  72. package/dist/es/file-flow/DownloadCenter/src/index2.css +0 -14
  73. package/dist/es/file-flow/DownloadCenter/src/index3.css +0 -14
  74. package/dist/es/file-flow/UploadButton/index.js +0 -19
  75. package/dist/es/file-flow/UploadButton/src/component/upload.css +0 -14
  76. package/dist/es/file-flow/UploadButton/src/component/upload.vue.js +0 -139
  77. package/dist/es/file-flow/UploadButton/src/composables/useUploadFile.js +0 -57
  78. package/dist/es/file-flow/UploadButton/src/index.css +0 -14
  79. package/dist/es/file-flow/UploadButton/src/index.vue.js +0 -63
  80. package/dist/es/file-flow/UploadCenter/index.js +0 -19
  81. package/dist/es/file-flow/UploadCenter/src/config/columns.js +0 -75
  82. package/dist/es/file-flow/UploadCenter/src/config/filters.js +0 -103
  83. package/dist/es/file-flow/UploadCenter/src/config/logColumns.js +0 -47
  84. package/dist/es/file-flow/UploadCenter/src/config/schema.js +0 -50
  85. package/dist/es/file-flow/UploadCenter/src/config/statusColumns.js +0 -45
  86. package/dist/es/file-flow/UploadCenter/src/index.css +0 -14
  87. package/dist/es/file-flow/UploadCenter/src/index.vue.js +0 -244
  88. package/dist/es/file-flow/UploadCenter/src/index2.css +0 -14
  89. package/dist/es/file-flow/api/downloadCenter.js +0 -64
  90. package/dist/es/file-flow/api/uploadButton.js +0 -24
  91. package/dist/es/file-flow/api/uploadCenter.js +0 -62
  92. package/dist/es/file-flow/components/InterruptModal.css +0 -14
  93. package/dist/es/file-flow/components/InterruptModal.vue.js +0 -83
  94. package/dist/es/hooks/useLocale.js +0 -40
  95. package/dist/es/index.js +0 -49
  96. package/dist/es/locale/index.js +0 -44
  97. package/dist/es/locale/lang/en-US.js +0 -205
  98. package/dist/es/locale/lang/ja-JP.js +0 -206
  99. package/dist/es/locale/lang/zh-CN.js +0 -203
  100. package/dist/es/node_modules/@vueuse/core/dist/index.js +0 -230
  101. package/dist/es/node_modules/@vueuse/shared/dist/index.js +0 -165
  102. package/dist/es/node_modules/lodash-es/_Hash.js +0 -33
  103. package/dist/es/node_modules/lodash-es/_ListCache.js +0 -33
  104. package/dist/es/node_modules/lodash-es/_Map.js +0 -19
  105. package/dist/es/node_modules/lodash-es/_MapCache.js +0 -33
  106. package/dist/es/node_modules/lodash-es/_Symbol.js +0 -18
  107. package/dist/es/node_modules/lodash-es/_apply.js +0 -29
  108. package/dist/es/node_modules/lodash-es/_arrayMap.js +0 -21
  109. package/dist/es/node_modules/lodash-es/_arrayPush.js +0 -21
  110. package/dist/es/node_modules/lodash-es/_assignValue.js +0 -23
  111. package/dist/es/node_modules/lodash-es/_assocIndexOf.js +0 -23
  112. package/dist/es/node_modules/lodash-es/_baseAssignValue.js +0 -25
  113. package/dist/es/node_modules/lodash-es/_baseFlatten.js +0 -26
  114. package/dist/es/node_modules/lodash-es/_baseGet.js +0 -24
  115. package/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -23
  116. package/dist/es/node_modules/lodash-es/_baseHasIn.js +0 -19
  117. package/dist/es/node_modules/lodash-es/_baseIsArguments.js +0 -22
  118. package/dist/es/node_modules/lodash-es/_baseIsNative.js +0 -29
  119. package/dist/es/node_modules/lodash-es/_basePick.js +0 -23
  120. package/dist/es/node_modules/lodash-es/_basePickBy.js +0 -26
  121. package/dist/es/node_modules/lodash-es/_baseSet.js +0 -37
  122. package/dist/es/node_modules/lodash-es/_baseSetToString.js +0 -27
  123. package/dist/es/node_modules/lodash-es/_baseToString.js +0 -31
  124. package/dist/es/node_modules/lodash-es/_castPath.js +0 -23
  125. package/dist/es/node_modules/lodash-es/_coreJsData.js +0 -18
  126. package/dist/es/node_modules/lodash-es/_defineProperty.js +0 -24
  127. package/dist/es/node_modules/lodash-es/_flatRest.js +0 -22
  128. package/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -17
  129. package/dist/es/node_modules/lodash-es/_getMapData.js +0 -21
  130. package/dist/es/node_modules/lodash-es/_getNative.js +0 -22
  131. package/dist/es/node_modules/lodash-es/_getRawTag.js +0 -28
  132. package/dist/es/node_modules/lodash-es/_getValue.js +0 -19
  133. package/dist/es/node_modules/lodash-es/_hasPath.js +0 -32
  134. package/dist/es/node_modules/lodash-es/_hashClear.js +0 -20
  135. package/dist/es/node_modules/lodash-es/_hashDelete.js +0 -20
  136. package/dist/es/node_modules/lodash-es/_hashGet.js +0 -26
  137. package/dist/es/node_modules/lodash-es/_hashHas.js +0 -22
  138. package/dist/es/node_modules/lodash-es/_hashSet.js +0 -22
  139. package/dist/es/node_modules/lodash-es/_isFlattenable.js +0 -23
  140. package/dist/es/node_modules/lodash-es/_isIndex.js +0 -21
  141. package/dist/es/node_modules/lodash-es/_isKey.js +0 -25
  142. package/dist/es/node_modules/lodash-es/_isKeyable.js +0 -20
  143. package/dist/es/node_modules/lodash-es/_isMasked.js +0 -24
  144. package/dist/es/node_modules/lodash-es/_listCacheClear.js +0 -19
  145. package/dist/es/node_modules/lodash-es/_listCacheDelete.js +0 -25
  146. package/dist/es/node_modules/lodash-es/_listCacheGet.js +0 -21
  147. package/dist/es/node_modules/lodash-es/_listCacheHas.js +0 -20
  148. package/dist/es/node_modules/lodash-es/_listCacheSet.js +0 -21
  149. package/dist/es/node_modules/lodash-es/_mapCacheClear.js +0 -26
  150. package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +0 -21
  151. package/dist/es/node_modules/lodash-es/_mapCacheGet.js +0 -20
  152. package/dist/es/node_modules/lodash-es/_mapCacheHas.js +0 -20
  153. package/dist/es/node_modules/lodash-es/_mapCacheSet.js +0 -21
  154. package/dist/es/node_modules/lodash-es/_memoizeCapped.js +0 -24
  155. package/dist/es/node_modules/lodash-es/_nativeCreate.js +0 -18
  156. package/dist/es/node_modules/lodash-es/_objectToString.js +0 -20
  157. package/dist/es/node_modules/lodash-es/_overRest.js +0 -28
  158. package/dist/es/node_modules/lodash-es/_root.js +0 -18
  159. package/dist/es/node_modules/lodash-es/_setToString.js +0 -19
  160. package/dist/es/node_modules/lodash-es/_shortOut.js +0 -29
  161. package/dist/es/node_modules/lodash-es/_stringToPath.js +0 -23
  162. package/dist/es/node_modules/lodash-es/_toKey.js +0 -23
  163. package/dist/es/node_modules/lodash-es/_toSource.js +0 -30
  164. package/dist/es/node_modules/lodash-es/constant.js +0 -21
  165. package/dist/es/node_modules/lodash-es/eq.js +0 -19
  166. package/dist/es/node_modules/lodash-es/flatten.js +0 -21
  167. package/dist/es/node_modules/lodash-es/get.js +0 -21
  168. package/dist/es/node_modules/lodash-es/hasIn.js +0 -21
  169. package/dist/es/node_modules/lodash-es/identity.js +0 -19
  170. package/dist/es/node_modules/lodash-es/isArguments.js +0 -23
  171. package/dist/es/node_modules/lodash-es/isArray.js +0 -17
  172. package/dist/es/node_modules/lodash-es/isFunction.js +0 -25
  173. package/dist/es/node_modules/lodash-es/isLength.js +0 -20
  174. package/dist/es/node_modules/lodash-es/isObject.js +0 -20
  175. package/dist/es/node_modules/lodash-es/isObjectLike.js +0 -19
  176. package/dist/es/node_modules/lodash-es/isSymbol.js +0 -22
  177. package/dist/es/node_modules/lodash-es/memoize.js +0 -31
  178. package/dist/es/node_modules/lodash-es/pick.js +0 -21
  179. package/dist/es/node_modules/lodash-es/toString.js +0 -20
  180. package/dist/es/node_modules/path-to-regexp/dist/index.js +0 -275
  181. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -300
  182. package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +0 -1283
  183. package/dist/es/node_modules/title-case/dist/index.js +0 -20
  184. package/dist/es/packages/components/dist/es/Button/index.js +0 -19
  185. package/dist/es/packages/components/dist/es/Button/src/Button.css +0 -14
  186. package/dist/es/packages/components/dist/es/Button/src/Button.vue.js +0 -54
  187. package/dist/es/packages/components/dist/es/Button/src/Button2.css +0 -14
  188. package/dist/es/packages/components/dist/es/ConfigProvider/index.js +0 -19
  189. package/dist/es/packages/components/dist/es/ConfigProvider/src/configProvider.js +0 -27
  190. package/dist/es/packages/components/dist/es/ConfigProvider/src/configProviderProps.js +0 -35
  191. package/dist/es/packages/components/dist/es/ConfigProvider/src/constants.js +0 -22
  192. package/dist/es/packages/components/dist/es/ConfigProvider/src/useGlobalConfig.js +0 -47
  193. package/dist/es/packages/components/dist/es/Form/index.js +0 -19
  194. package/dist/es/packages/components/dist/es/Form/src/Form.css +0 -14
  195. package/dist/es/packages/components/dist/es/Form/src/Form.vue.js +0 -386
  196. package/dist/es/packages/components/dist/es/Form/src/Form2.css +0 -14
  197. package/dist/es/packages/components/dist/es/Form/src/styles/form.css +0 -14
  198. package/dist/es/packages/components/dist/es/Overlay/src/Modal.css +0 -14
  199. package/dist/es/packages/components/dist/es/Overlay/src/Modal.vue.js +0 -80
  200. package/dist/es/packages/components/dist/es/Overlay/src/Modal2.css +0 -14
  201. package/dist/es/packages/components/dist/es/RichTextEditor/index.js +0 -19
  202. package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.css +0 -14
  203. package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +0 -182
  204. package/dist/es/packages/components/dist/es/RichTextEditor/src/ToolbarPanel2.css +0 -14
  205. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.css +0 -14
  206. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +0 -50
  207. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.css +0 -14
  208. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +0 -50
  209. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +0 -14
  210. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +0 -53
  211. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +0 -14
  212. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +0 -68
  213. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +0 -14
  214. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +0 -79
  215. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.css +0 -14
  216. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +0 -90
  217. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.css +0 -14
  218. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +0 -102
  219. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/LinkPopover2.css +0 -14
  220. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +0 -14
  221. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +0 -86
  222. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/MarkButton.css +0 -14
  223. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/MarkButton.vue.js +0 -99
  224. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TableButton.css +0 -14
  225. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TableButton.vue.js +0 -175
  226. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +0 -14
  227. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +0 -95
  228. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.css +0 -14
  229. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +0 -53
  230. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.css +0 -14
  231. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +0 -29
  232. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +0 -14
  233. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +0 -27
  234. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.css +0 -14
  235. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +0 -64
  236. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.css +0 -14
  237. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +0 -90
  238. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +0 -14
  239. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +0 -111
  240. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +0 -14
  241. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +0 -390
  242. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +0 -14
  243. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +0 -14
  244. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +0 -147
  245. package/dist/es/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +0 -14
  246. package/dist/es/packages/components/dist/es/RichTextEditor/src/constant/index.js +0 -63
  247. package/dist/es/packages/components/dist/es/RichTextEditor/src/extensions/styledTable.js +0 -112
  248. package/dist/es/packages/components/dist/es/RichTextEditor/src/extensions/video.js +0 -78
  249. package/dist/es/packages/components/dist/es/RichTextEditor/src/index.css +0 -14
  250. package/dist/es/packages/components/dist/es/RichTextEditor/src/index.vue.js +0 -176
  251. package/dist/es/packages/components/dist/es/RichTextEditor/src/index2.css +0 -14
  252. package/dist/es/packages/components/dist/es/RichTextEditor/src/props.js +0 -50
  253. package/dist/es/packages/components/dist/es/_virtual/_plugin-vue_export-helper.js +0 -22
  254. package/dist/es/packages/components/dist/es/hooks/useLocale.js +0 -38
  255. package/dist/es/packages/components/dist/es/hooks/useNamespace.js +0 -21
  256. package/dist/es/packages/components/dist/es/locale/lang/en-US.js +0 -134
  257. package/dist/es/packages/components/dist/es/locale/lang/ja-JP.js +0 -134
  258. package/dist/es/packages/components/dist/es/locale/lang/zh-CN.js +0 -134
  259. package/dist/es/packages/components/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +0 -191
  260. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +0 -26
  261. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +0 -419
  262. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +0 -799
  263. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +0 -68
  264. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +0 -122
  265. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +0 -58
  266. package/dist/es/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +0 -226
  267. package/dist/es/packages/components/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +0 -42
  268. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +0 -221
  269. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +0 -136
  270. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +0 -25
  271. package/dist/es/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/store.js +0 -57
  272. package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +0 -51
  273. package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +0 -46
  274. package/dist/es/packages/components/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +0 -61
  275. package/dist/es/packages/components/dist/es/node_modules/@tiptap/core/dist/index.js +0 -3995
  276. package/dist/es/packages/components/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -30
  277. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -75
  278. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +0 -98
  279. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +0 -19
  280. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-code/dist/index.js +0 -67
  281. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +0 -227
  282. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-document/dist/index.js +0 -25
  283. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -72
  284. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +0 -76
  285. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -69
  286. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-image/dist/index.js +0 -143
  287. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +0 -96
  288. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-link/dist/index.js +0 -326
  289. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-list/dist/index.js +0 -743
  290. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -62
  291. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +0 -79
  292. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +0 -54
  293. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +0 -54
  294. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-table/dist/index.js +0 -392
  295. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +0 -19
  296. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +0 -19
  297. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text/dist/index.js +0 -26
  298. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +0 -60
  299. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +0 -253
  300. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +0 -78
  301. package/dist/es/packages/components/dist/es/node_modules/@tiptap/extensions/dist/index.js +0 -311
  302. package/dist/es/packages/components/dist/es/node_modules/@tiptap/html/dist/index.js +0 -28
  303. package/dist/es/packages/components/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +0 -42
  304. package/dist/es/packages/components/dist/es/node_modules/@tiptap/vue-3/dist/index.js +0 -270
  305. package/dist/es/packages/components/dist/es/node_modules/linkifyjs/dist/linkify.js +0 -720
  306. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_DataView.js +0 -19
  307. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Hash.js +0 -33
  308. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_ListCache.js +0 -33
  309. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Map.js +0 -19
  310. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_MapCache.js +0 -33
  311. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Promise.js +0 -19
  312. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Set.js +0 -19
  313. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_SetCache.js +0 -26
  314. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Stack.js +0 -31
  315. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Symbol.js +0 -18
  316. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_Uint8Array.js +0 -18
  317. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_WeakMap.js +0 -19
  318. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_apply.js +0 -29
  319. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayFilter.js +0 -23
  320. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayIncludes.js +0 -21
  321. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +0 -22
  322. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +0 -33
  323. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayMap.js +0 -21
  324. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arrayPush.js +0 -21
  325. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_arraySome.js +0 -22
  326. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_assignMergeValue.js +0 -21
  327. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_assignValue.js +0 -23
  328. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_assocIndexOf.js +0 -23
  329. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseAssignValue.js +0 -25
  330. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseCreate.js +0 -30
  331. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseFindIndex.js +0 -22
  332. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseFlatten.js +0 -26
  333. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseFor.js +0 -18
  334. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGet.js +0 -24
  335. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +0 -22
  336. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -23
  337. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIndexOf.js +0 -22
  338. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIntersection.js +0 -42
  339. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsArguments.js +0 -22
  340. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsEqual.js +0 -21
  341. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +0 -45
  342. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsNaN.js +0 -19
  343. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsNative.js +0 -29
  344. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +0 -25
  345. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseKeys.js +0 -27
  346. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseKeysIn.js +0 -28
  347. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseMerge.js +0 -33
  348. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseMergeDeep.js +0 -44
  349. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseRest.js +0 -22
  350. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseSetToString.js +0 -27
  351. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseTimes.js +0 -21
  352. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseToString.js +0 -31
  353. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseUnary.js +0 -21
  354. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_baseUniq.js +0 -46
  355. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cacheHas.js +0 -19
  356. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +0 -20
  357. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_castPath.js +0 -23
  358. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +0 -21
  359. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cloneBuffer.js +0 -22
  360. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_cloneTypedArray.js +0 -21
  361. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_copyArray.js +0 -22
  362. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_copyObject.js +0 -27
  363. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_coreJsData.js +0 -18
  364. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_createAssigner.js +0 -28
  365. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_createBaseFor.js +0 -26
  366. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_createSet.js +0 -22
  367. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_defineProperty.js +0 -24
  368. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_equalArrays.js +0 -53
  369. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_equalByTag.js +0 -58
  370. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_equalObjects.js +0 -49
  371. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -17
  372. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getAllKeys.js +0 -22
  373. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getMapData.js +0 -21
  374. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getNative.js +0 -22
  375. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getPrototype.js +0 -18
  376. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getRawTag.js +0 -28
  377. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getSymbols.js +0 -23
  378. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getTag.js +0 -41
  379. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_getValue.js +0 -19
  380. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashClear.js +0 -20
  381. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashDelete.js +0 -20
  382. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashGet.js +0 -26
  383. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashHas.js +0 -22
  384. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_hashSet.js +0 -22
  385. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_initCloneObject.js +0 -22
  386. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isFlattenable.js +0 -23
  387. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isIndex.js +0 -21
  388. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isIterateeCall.js +0 -26
  389. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isKey.js +0 -25
  390. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isKeyable.js +0 -20
  391. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isMasked.js +0 -24
  392. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_isPrototype.js +0 -21
  393. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheClear.js +0 -19
  394. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheDelete.js +0 -25
  395. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheGet.js +0 -21
  396. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheHas.js +0 -20
  397. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_listCacheSet.js +0 -21
  398. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheClear.js +0 -26
  399. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheDelete.js +0 -21
  400. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheGet.js +0 -20
  401. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheHas.js +0 -20
  402. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapCacheSet.js +0 -21
  403. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_mapToArray.js +0 -22
  404. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_memoizeCapped.js +0 -24
  405. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nativeCreate.js +0 -18
  406. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nativeKeys.js +0 -18
  407. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nativeKeysIn.js +0 -23
  408. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_nodeUtil.js +0 -24
  409. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_objectToString.js +0 -20
  410. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_overArg.js +0 -21
  411. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_overRest.js +0 -28
  412. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_root.js +0 -18
  413. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_safeGet.js +0 -20
  414. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setCacheAdd.js +0 -20
  415. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setCacheHas.js +0 -19
  416. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setToArray.js +0 -22
  417. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_setToString.js +0 -19
  418. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_shortOut.js +0 -29
  419. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackClear.js +0 -20
  420. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackDelete.js +0 -20
  421. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackGet.js +0 -19
  422. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackHas.js +0 -19
  423. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stackSet.js +0 -30
  424. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_strictIndexOf.js +0 -22
  425. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_stringToPath.js +0 -23
  426. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_toKey.js +0 -23
  427. package/dist/es/packages/components/dist/es/node_modules/lodash-es/_toSource.js +0 -30
  428. package/dist/es/packages/components/dist/es/node_modules/lodash-es/constant.js +0 -21
  429. package/dist/es/packages/components/dist/es/node_modules/lodash-es/eq.js +0 -19
  430. package/dist/es/packages/components/dist/es/node_modules/lodash-es/get.js +0 -21
  431. package/dist/es/packages/components/dist/es/node_modules/lodash-es/identity.js +0 -19
  432. package/dist/es/packages/components/dist/es/node_modules/lodash-es/intersectionWith.js +0 -25
  433. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArguments.js +0 -23
  434. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArray.js +0 -17
  435. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArrayLike.js +0 -21
  436. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isArrayLikeObject.js +0 -21
  437. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isBuffer.js +0 -19
  438. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isEqual.js +0 -20
  439. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isFunction.js +0 -25
  440. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isLength.js +0 -20
  441. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isObject.js +0 -20
  442. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isObjectLike.js +0 -19
  443. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isPlainObject.js +0 -29
  444. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isSymbol.js +0 -22
  445. package/dist/es/packages/components/dist/es/node_modules/lodash-es/isTypedArray.js +0 -20
  446. package/dist/es/packages/components/dist/es/node_modules/lodash-es/keys.js +0 -22
  447. package/dist/es/packages/components/dist/es/node_modules/lodash-es/keysIn.js +0 -22
  448. package/dist/es/packages/components/dist/es/node_modules/lodash-es/last.js +0 -20
  449. package/dist/es/packages/components/dist/es/node_modules/lodash-es/memoize.js +0 -31
  450. package/dist/es/packages/components/dist/es/node_modules/lodash-es/mergeWith.js +0 -21
  451. package/dist/es/packages/components/dist/es/node_modules/lodash-es/noop.js +0 -18
  452. package/dist/es/packages/components/dist/es/node_modules/lodash-es/stubArray.js +0 -19
  453. package/dist/es/packages/components/dist/es/node_modules/lodash-es/stubFalse.js +0 -19
  454. package/dist/es/packages/components/dist/es/node_modules/lodash-es/toPlainObject.js +0 -21
  455. package/dist/es/packages/components/dist/es/node_modules/lodash-es/toString.js +0 -20
  456. package/dist/es/packages/components/dist/es/node_modules/lodash-es/unionWith.js +0 -25
  457. package/dist/es/packages/components/dist/es/node_modules/orderedmap/dist/index.js +0 -116
  458. package/dist/es/packages/components/dist/es/node_modules/prosemirror-commands/dist/index.js +0 -401
  459. package/dist/es/packages/components/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +0 -99
  460. package/dist/es/packages/components/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +0 -217
  461. package/dist/es/packages/components/dist/es/node_modules/prosemirror-history/dist/index.js +0 -261
  462. package/dist/es/packages/components/dist/es/node_modules/prosemirror-keymap/dist/index.js +0 -75
  463. package/dist/es/packages/components/dist/es/node_modules/prosemirror-model/dist/index.js +0 -2746
  464. package/dist/es/packages/components/dist/es/node_modules/prosemirror-schema-list/dist/index.js +0 -101
  465. package/dist/es/packages/components/dist/es/node_modules/prosemirror-state/dist/index.js +0 -835
  466. package/dist/es/packages/components/dist/es/node_modules/prosemirror-tables/dist/index.js +0 -1459
  467. package/dist/es/packages/components/dist/es/node_modules/prosemirror-transform/dist/index.js +0 -1549
  468. package/dist/es/packages/components/dist/es/node_modules/prosemirror-view/dist/index.js +0 -3811
  469. package/dist/es/packages/components/dist/es/node_modules/rope-sequence/dist/index.js +0 -113
  470. package/dist/es/packages/components/dist/es/node_modules/w3c-keyname/index.js +0 -106
  471. package/dist/es/packages/components/dist/es/packages/utils/dist/index.js +0 -556
  472. package/dist/es/packages/components/dist/es/styles/tokens.css +0 -14
  473. package/dist/es/packages/hooks/dist/index.js +0 -114
  474. package/dist/es/packages/shared-service/index.js +0 -59
  475. package/dist/es/packages/utils/dist/index.js +0 -532
  476. package/dist/es/utils/request.js +0 -98
  477. package/dist/es/utils/util.js +0 -53
  478. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -14
  479. package/dist/lib/_virtual/index.js +0 -14
  480. package/dist/lib/_virtual/index2.js +0 -14
  481. package/dist/lib/configs/auth-config/dist/index.js +0 -14
  482. package/dist/lib/email-center/AccountConf/index.js +0 -14
  483. package/dist/lib/email-center/AccountConf/src/config/columns.js +0 -14
  484. package/dist/lib/email-center/AccountConf/src/config/filters.js +0 -14
  485. package/dist/lib/email-center/AccountConf/src/config/schema.js +0 -14
  486. package/dist/lib/email-center/AccountConf/src/constant/index.js +0 -14
  487. package/dist/lib/email-center/AccountConf/src/index.css +0 -14
  488. package/dist/lib/email-center/AccountConf/src/index.vue.js +0 -14
  489. package/dist/lib/email-center/AccountConf/src/index2.css +0 -14
  490. package/dist/lib/email-center/CmGroup/index.js +0 -14
  491. package/dist/lib/email-center/CmGroup/src/config/columns.js +0 -14
  492. package/dist/lib/email-center/CmGroup/src/config/filters.js +0 -14
  493. package/dist/lib/email-center/CmGroup/src/config/schema.js +0 -14
  494. package/dist/lib/email-center/CmGroup/src/constant/index.js +0 -14
  495. package/dist/lib/email-center/CmGroup/src/index.css +0 -14
  496. package/dist/lib/email-center/CmGroup/src/index.vue.js +0 -14
  497. package/dist/lib/email-center/CmGroup/src/index2.css +0 -14
  498. package/dist/lib/email-center/InboxNotifyConf/index.js +0 -14
  499. package/dist/lib/email-center/InboxNotifyConf/src/config/columns.js +0 -14
  500. package/dist/lib/email-center/InboxNotifyConf/src/config/filters.js +0 -14
  501. package/dist/lib/email-center/InboxNotifyConf/src/config/schema.js +0 -14
  502. package/dist/lib/email-center/InboxNotifyConf/src/constant/index.js +0 -14
  503. package/dist/lib/email-center/InboxNotifyConf/src/index.css +0 -14
  504. package/dist/lib/email-center/InboxNotifyConf/src/index.vue.js +0 -14
  505. package/dist/lib/email-center/InboxNotifyConf/src/index2.css +0 -14
  506. package/dist/lib/email-center/Log/index.js +0 -14
  507. package/dist/lib/email-center/Log/src/config/columns.js +0 -14
  508. package/dist/lib/email-center/Log/src/config/filters.js +0 -14
  509. package/dist/lib/email-center/Log/src/index.css +0 -14
  510. package/dist/lib/email-center/Log/src/index.vue.js +0 -14
  511. package/dist/lib/email-center/Log/src/index2.css +0 -14
  512. package/dist/lib/email-center/Template/index.js +0 -14
  513. package/dist/lib/email-center/Template/src/components/MailTemplateSend.css +0 -14
  514. package/dist/lib/email-center/Template/src/components/MailTemplateSend.vue.js +0 -14
  515. package/dist/lib/email-center/Template/src/components/MailTemplateSend2.css +0 -14
  516. package/dist/lib/email-center/Template/src/config/columns.js +0 -14
  517. package/dist/lib/email-center/Template/src/config/filters.js +0 -14
  518. package/dist/lib/email-center/Template/src/config/schema.js +0 -14
  519. package/dist/lib/email-center/Template/src/constant/index.js +0 -14
  520. package/dist/lib/email-center/Template/src/index.css +0 -14
  521. package/dist/lib/email-center/Template/src/index.vue.js +0 -14
  522. package/dist/lib/email-center/Template/src/index2.css +0 -14
  523. package/dist/lib/email-center/api/accountConf.js +0 -14
  524. package/dist/lib/email-center/api/cmGroup.js +0 -14
  525. package/dist/lib/email-center/api/common.js +0 -14
  526. package/dist/lib/email-center/api/inboxNotifyConf.js +0 -14
  527. package/dist/lib/email-center/api/log.js +0 -14
  528. package/dist/lib/email-center/api/template.js +0 -14
  529. package/dist/lib/email-center/components/form.css +0 -14
  530. package/dist/lib/email-center/components/form.vue.js +0 -14
  531. package/dist/lib/email-center/components/form2.css +0 -14
  532. package/dist/lib/email-center/components/grid.css +0 -14
  533. package/dist/lib/email-center/components/grid.vue.js +0 -14
  534. package/dist/lib/email-center/components/grid2.css +0 -14
  535. package/dist/lib/file-flow/DownloadCenter/index.js +0 -14
  536. package/dist/lib/file-flow/DownloadCenter/src/components/progress.css +0 -14
  537. package/dist/lib/file-flow/DownloadCenter/src/components/progress.vue.js +0 -14
  538. package/dist/lib/file-flow/DownloadCenter/src/components/progress2.css +0 -14
  539. package/dist/lib/file-flow/DownloadCenter/src/config/columns.js +0 -14
  540. package/dist/lib/file-flow/DownloadCenter/src/config/filters.js +0 -14
  541. package/dist/lib/file-flow/DownloadCenter/src/config/logColumns.js +0 -14
  542. package/dist/lib/file-flow/DownloadCenter/src/config/schema.js +0 -14
  543. package/dist/lib/file-flow/DownloadCenter/src/index.css +0 -14
  544. package/dist/lib/file-flow/DownloadCenter/src/index.vue.js +0 -14
  545. package/dist/lib/file-flow/DownloadCenter/src/index2.css +0 -14
  546. package/dist/lib/file-flow/DownloadCenter/src/index3.css +0 -14
  547. package/dist/lib/file-flow/UploadButton/index.js +0 -14
  548. package/dist/lib/file-flow/UploadButton/src/component/upload.css +0 -14
  549. package/dist/lib/file-flow/UploadButton/src/component/upload.vue.js +0 -14
  550. package/dist/lib/file-flow/UploadButton/src/composables/useUploadFile.js +0 -14
  551. package/dist/lib/file-flow/UploadButton/src/index.css +0 -14
  552. package/dist/lib/file-flow/UploadButton/src/index.vue.js +0 -14
  553. package/dist/lib/file-flow/UploadCenter/index.js +0 -14
  554. package/dist/lib/file-flow/UploadCenter/src/config/columns.js +0 -14
  555. package/dist/lib/file-flow/UploadCenter/src/config/filters.js +0 -14
  556. package/dist/lib/file-flow/UploadCenter/src/config/logColumns.js +0 -14
  557. package/dist/lib/file-flow/UploadCenter/src/config/schema.js +0 -14
  558. package/dist/lib/file-flow/UploadCenter/src/config/statusColumns.js +0 -14
  559. package/dist/lib/file-flow/UploadCenter/src/index.css +0 -14
  560. package/dist/lib/file-flow/UploadCenter/src/index.vue.js +0 -14
  561. package/dist/lib/file-flow/UploadCenter/src/index2.css +0 -14
  562. package/dist/lib/file-flow/api/downloadCenter.js +0 -14
  563. package/dist/lib/file-flow/api/uploadButton.js +0 -14
  564. package/dist/lib/file-flow/api/uploadCenter.js +0 -14
  565. package/dist/lib/file-flow/components/InterruptModal.css +0 -14
  566. package/dist/lib/file-flow/components/InterruptModal.vue.js +0 -14
  567. package/dist/lib/hooks/useLocale.js +0 -14
  568. package/dist/lib/index.js +0 -14
  569. package/dist/lib/locale/index.js +0 -14
  570. package/dist/lib/locale/lang/en-US.js +0 -14
  571. package/dist/lib/locale/lang/ja-JP.js +0 -14
  572. package/dist/lib/locale/lang/zh-CN.js +0 -14
  573. package/dist/lib/node_modules/@vueuse/core/dist/index.js +0 -14
  574. package/dist/lib/node_modules/@vueuse/shared/dist/index.js +0 -14
  575. package/dist/lib/node_modules/lodash-es/_Hash.js +0 -14
  576. package/dist/lib/node_modules/lodash-es/_ListCache.js +0 -14
  577. package/dist/lib/node_modules/lodash-es/_Map.js +0 -14
  578. package/dist/lib/node_modules/lodash-es/_MapCache.js +0 -14
  579. package/dist/lib/node_modules/lodash-es/_Symbol.js +0 -14
  580. package/dist/lib/node_modules/lodash-es/_apply.js +0 -14
  581. package/dist/lib/node_modules/lodash-es/_arrayMap.js +0 -14
  582. package/dist/lib/node_modules/lodash-es/_arrayPush.js +0 -14
  583. package/dist/lib/node_modules/lodash-es/_assignValue.js +0 -14
  584. package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +0 -14
  585. package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +0 -14
  586. package/dist/lib/node_modules/lodash-es/_baseFlatten.js +0 -14
  587. package/dist/lib/node_modules/lodash-es/_baseGet.js +0 -14
  588. package/dist/lib/node_modules/lodash-es/_baseGetTag.js +0 -14
  589. package/dist/lib/node_modules/lodash-es/_baseHasIn.js +0 -14
  590. package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +0 -14
  591. package/dist/lib/node_modules/lodash-es/_baseIsNative.js +0 -14
  592. package/dist/lib/node_modules/lodash-es/_basePick.js +0 -14
  593. package/dist/lib/node_modules/lodash-es/_basePickBy.js +0 -14
  594. package/dist/lib/node_modules/lodash-es/_baseSet.js +0 -14
  595. package/dist/lib/node_modules/lodash-es/_baseSetToString.js +0 -14
  596. package/dist/lib/node_modules/lodash-es/_baseToString.js +0 -14
  597. package/dist/lib/node_modules/lodash-es/_castPath.js +0 -14
  598. package/dist/lib/node_modules/lodash-es/_coreJsData.js +0 -14
  599. package/dist/lib/node_modules/lodash-es/_defineProperty.js +0 -14
  600. package/dist/lib/node_modules/lodash-es/_flatRest.js +0 -14
  601. package/dist/lib/node_modules/lodash-es/_freeGlobal.js +0 -14
  602. package/dist/lib/node_modules/lodash-es/_getMapData.js +0 -14
  603. package/dist/lib/node_modules/lodash-es/_getNative.js +0 -14
  604. package/dist/lib/node_modules/lodash-es/_getRawTag.js +0 -14
  605. package/dist/lib/node_modules/lodash-es/_getValue.js +0 -14
  606. package/dist/lib/node_modules/lodash-es/_hasPath.js +0 -14
  607. package/dist/lib/node_modules/lodash-es/_hashClear.js +0 -14
  608. package/dist/lib/node_modules/lodash-es/_hashDelete.js +0 -14
  609. package/dist/lib/node_modules/lodash-es/_hashGet.js +0 -14
  610. package/dist/lib/node_modules/lodash-es/_hashHas.js +0 -14
  611. package/dist/lib/node_modules/lodash-es/_hashSet.js +0 -14
  612. package/dist/lib/node_modules/lodash-es/_isFlattenable.js +0 -14
  613. package/dist/lib/node_modules/lodash-es/_isIndex.js +0 -14
  614. package/dist/lib/node_modules/lodash-es/_isKey.js +0 -14
  615. package/dist/lib/node_modules/lodash-es/_isKeyable.js +0 -14
  616. package/dist/lib/node_modules/lodash-es/_isMasked.js +0 -14
  617. package/dist/lib/node_modules/lodash-es/_listCacheClear.js +0 -14
  618. package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +0 -14
  619. package/dist/lib/node_modules/lodash-es/_listCacheGet.js +0 -14
  620. package/dist/lib/node_modules/lodash-es/_listCacheHas.js +0 -14
  621. package/dist/lib/node_modules/lodash-es/_listCacheSet.js +0 -14
  622. package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +0 -14
  623. package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +0 -14
  624. package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +0 -14
  625. package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +0 -14
  626. package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +0 -14
  627. package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +0 -14
  628. package/dist/lib/node_modules/lodash-es/_nativeCreate.js +0 -14
  629. package/dist/lib/node_modules/lodash-es/_objectToString.js +0 -14
  630. package/dist/lib/node_modules/lodash-es/_overRest.js +0 -14
  631. package/dist/lib/node_modules/lodash-es/_root.js +0 -14
  632. package/dist/lib/node_modules/lodash-es/_setToString.js +0 -14
  633. package/dist/lib/node_modules/lodash-es/_shortOut.js +0 -14
  634. package/dist/lib/node_modules/lodash-es/_stringToPath.js +0 -14
  635. package/dist/lib/node_modules/lodash-es/_toKey.js +0 -14
  636. package/dist/lib/node_modules/lodash-es/_toSource.js +0 -14
  637. package/dist/lib/node_modules/lodash-es/constant.js +0 -14
  638. package/dist/lib/node_modules/lodash-es/eq.js +0 -14
  639. package/dist/lib/node_modules/lodash-es/flatten.js +0 -14
  640. package/dist/lib/node_modules/lodash-es/get.js +0 -14
  641. package/dist/lib/node_modules/lodash-es/hasIn.js +0 -14
  642. package/dist/lib/node_modules/lodash-es/identity.js +0 -14
  643. package/dist/lib/node_modules/lodash-es/isArguments.js +0 -14
  644. package/dist/lib/node_modules/lodash-es/isArray.js +0 -14
  645. package/dist/lib/node_modules/lodash-es/isFunction.js +0 -14
  646. package/dist/lib/node_modules/lodash-es/isLength.js +0 -14
  647. package/dist/lib/node_modules/lodash-es/isObject.js +0 -14
  648. package/dist/lib/node_modules/lodash-es/isObjectLike.js +0 -14
  649. package/dist/lib/node_modules/lodash-es/isSymbol.js +0 -14
  650. package/dist/lib/node_modules/lodash-es/memoize.js +0 -14
  651. package/dist/lib/node_modules/lodash-es/pick.js +0 -14
  652. package/dist/lib/node_modules/lodash-es/toString.js +0 -14
  653. package/dist/lib/node_modules/path-to-regexp/dist/index.js +0 -14
  654. package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -14
  655. package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +0 -14
  656. package/dist/lib/node_modules/title-case/dist/index.js +0 -14
  657. package/dist/lib/packages/components/dist/es/Button/index.js +0 -14
  658. package/dist/lib/packages/components/dist/es/Button/src/Button.css +0 -14
  659. package/dist/lib/packages/components/dist/es/Button/src/Button.vue.js +0 -14
  660. package/dist/lib/packages/components/dist/es/Button/src/Button2.css +0 -14
  661. package/dist/lib/packages/components/dist/es/ConfigProvider/index.js +0 -14
  662. package/dist/lib/packages/components/dist/es/ConfigProvider/src/configProvider.js +0 -14
  663. package/dist/lib/packages/components/dist/es/ConfigProvider/src/configProviderProps.js +0 -14
  664. package/dist/lib/packages/components/dist/es/ConfigProvider/src/constants.js +0 -14
  665. package/dist/lib/packages/components/dist/es/ConfigProvider/src/useGlobalConfig.js +0 -14
  666. package/dist/lib/packages/components/dist/es/Form/index.js +0 -14
  667. package/dist/lib/packages/components/dist/es/Form/src/Form.css +0 -14
  668. package/dist/lib/packages/components/dist/es/Form/src/Form.vue.js +0 -14
  669. package/dist/lib/packages/components/dist/es/Form/src/Form2.css +0 -14
  670. package/dist/lib/packages/components/dist/es/Form/src/styles/form.css +0 -14
  671. package/dist/lib/packages/components/dist/es/Overlay/src/Modal.css +0 -14
  672. package/dist/lib/packages/components/dist/es/Overlay/src/Modal.vue.js +0 -14
  673. package/dist/lib/packages/components/dist/es/Overlay/src/Modal2.css +0 -14
  674. package/dist/lib/packages/components/dist/es/RichTextEditor/index.js +0 -14
  675. package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.css +0 -14
  676. package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +0 -14
  677. package/dist/lib/packages/components/dist/es/RichTextEditor/src/ToolbarPanel2.css +0 -14
  678. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.css +0 -14
  679. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +0 -14
  680. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.css +0 -14
  681. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +0 -14
  682. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +0 -14
  683. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +0 -14
  684. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +0 -14
  685. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +0 -14
  686. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +0 -14
  687. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +0 -14
  688. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.css +0 -14
  689. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +0 -14
  690. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.css +0 -14
  691. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +0 -14
  692. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/LinkPopover2.css +0 -14
  693. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +0 -14
  694. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +0 -14
  695. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/MarkButton.css +0 -14
  696. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/MarkButton.vue.js +0 -14
  697. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TableButton.css +0 -14
  698. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TableButton.vue.js +0 -14
  699. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +0 -14
  700. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +0 -14
  701. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.css +0 -14
  702. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +0 -14
  703. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.css +0 -14
  704. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +0 -14
  705. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +0 -14
  706. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +0 -14
  707. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.css +0 -14
  708. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +0 -14
  709. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.css +0 -14
  710. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +0 -14
  711. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +0 -14
  712. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +0 -14
  713. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +0 -14
  714. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +0 -14
  715. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +0 -14
  716. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +0 -14
  717. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +0 -14
  718. package/dist/lib/packages/components/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +0 -14
  719. package/dist/lib/packages/components/dist/es/RichTextEditor/src/constant/index.js +0 -14
  720. package/dist/lib/packages/components/dist/es/RichTextEditor/src/extensions/styledTable.js +0 -14
  721. package/dist/lib/packages/components/dist/es/RichTextEditor/src/extensions/video.js +0 -14
  722. package/dist/lib/packages/components/dist/es/RichTextEditor/src/index.css +0 -14
  723. package/dist/lib/packages/components/dist/es/RichTextEditor/src/index.vue.js +0 -14
  724. package/dist/lib/packages/components/dist/es/RichTextEditor/src/index2.css +0 -14
  725. package/dist/lib/packages/components/dist/es/RichTextEditor/src/props.js +0 -14
  726. package/dist/lib/packages/components/dist/es/_virtual/_plugin-vue_export-helper.js +0 -14
  727. package/dist/lib/packages/components/dist/es/hooks/useLocale.js +0 -14
  728. package/dist/lib/packages/components/dist/es/hooks/useNamespace.js +0 -14
  729. package/dist/lib/packages/components/dist/es/locale/lang/en-US.js +0 -14
  730. package/dist/lib/packages/components/dist/es/locale/lang/ja-JP.js +0 -14
  731. package/dist/lib/packages/components/dist/es/locale/lang/zh-CN.js +0 -14
  732. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +0 -14
  733. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +0 -14
  734. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +0 -14
  735. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +0 -14
  736. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +0 -14
  737. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +0 -14
  738. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +0 -14
  739. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +0 -14
  740. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +0 -14
  741. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +0 -14
  742. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +0 -14
  743. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +0 -14
  744. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/store/dist/esm/store.js +0 -14
  745. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +0 -14
  746. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +0 -14
  747. package/dist/lib/packages/components/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +0 -14
  748. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/core/dist/index.js +0 -106
  749. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -14
  750. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -18
  751. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +0 -14
  752. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +0 -14
  753. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-code/dist/index.js +0 -14
  754. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +0 -31
  755. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-document/dist/index.js +0 -16
  756. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -16
  757. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +0 -14
  758. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -14
  759. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-image/dist/index.js +0 -14
  760. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +0 -14
  761. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-link/dist/index.js +0 -14
  762. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-list/dist/index.js +0 -25
  763. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -14
  764. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +0 -14
  765. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +0 -14
  766. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +0 -14
  767. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-table/dist/index.js +0 -18
  768. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +0 -14
  769. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +0 -14
  770. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text/dist/index.js +0 -14
  771. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +0 -14
  772. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +0 -14
  773. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +0 -14
  774. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/extensions/dist/index.js +0 -14
  775. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/html/dist/index.js +0 -14
  776. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +0 -14
  777. package/dist/lib/packages/components/dist/es/node_modules/@tiptap/vue-3/dist/index.js +0 -14
  778. package/dist/lib/packages/components/dist/es/node_modules/linkifyjs/dist/linkify.js +0 -18
  779. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_DataView.js +0 -14
  780. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Hash.js +0 -14
  781. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_ListCache.js +0 -14
  782. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Map.js +0 -14
  783. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_MapCache.js +0 -14
  784. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Promise.js +0 -14
  785. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Set.js +0 -14
  786. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_SetCache.js +0 -14
  787. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Stack.js +0 -14
  788. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Symbol.js +0 -14
  789. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_Uint8Array.js +0 -14
  790. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_WeakMap.js +0 -14
  791. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_apply.js +0 -14
  792. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayFilter.js +0 -14
  793. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayIncludes.js +0 -14
  794. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +0 -14
  795. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +0 -14
  796. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayMap.js +0 -14
  797. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arrayPush.js +0 -14
  798. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_arraySome.js +0 -14
  799. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_assignMergeValue.js +0 -14
  800. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_assignValue.js +0 -14
  801. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_assocIndexOf.js +0 -14
  802. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseAssignValue.js +0 -14
  803. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseCreate.js +0 -14
  804. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseFindIndex.js +0 -14
  805. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseFlatten.js +0 -14
  806. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseFor.js +0 -14
  807. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGet.js +0 -14
  808. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +0 -14
  809. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseGetTag.js +0 -14
  810. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIndexOf.js +0 -14
  811. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIntersection.js +0 -14
  812. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsArguments.js +0 -14
  813. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsEqual.js +0 -14
  814. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +0 -14
  815. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsNaN.js +0 -14
  816. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsNative.js +0 -14
  817. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +0 -14
  818. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseKeys.js +0 -14
  819. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseKeysIn.js +0 -14
  820. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseMerge.js +0 -14
  821. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseMergeDeep.js +0 -14
  822. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseRest.js +0 -14
  823. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseSetToString.js +0 -14
  824. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseTimes.js +0 -14
  825. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseToString.js +0 -14
  826. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseUnary.js +0 -14
  827. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_baseUniq.js +0 -14
  828. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cacheHas.js +0 -14
  829. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +0 -14
  830. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_castPath.js +0 -14
  831. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +0 -14
  832. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cloneBuffer.js +0 -14
  833. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_cloneTypedArray.js +0 -14
  834. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_copyArray.js +0 -14
  835. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_copyObject.js +0 -14
  836. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_coreJsData.js +0 -14
  837. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_createAssigner.js +0 -14
  838. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_createBaseFor.js +0 -14
  839. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_createSet.js +0 -14
  840. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_defineProperty.js +0 -14
  841. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_equalArrays.js +0 -14
  842. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_equalByTag.js +0 -14
  843. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_equalObjects.js +0 -14
  844. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_freeGlobal.js +0 -14
  845. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getAllKeys.js +0 -14
  846. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getMapData.js +0 -14
  847. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getNative.js +0 -14
  848. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getPrototype.js +0 -14
  849. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getRawTag.js +0 -14
  850. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getSymbols.js +0 -14
  851. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getTag.js +0 -14
  852. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_getValue.js +0 -14
  853. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashClear.js +0 -14
  854. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashDelete.js +0 -14
  855. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashGet.js +0 -14
  856. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashHas.js +0 -14
  857. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_hashSet.js +0 -14
  858. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_initCloneObject.js +0 -14
  859. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isFlattenable.js +0 -14
  860. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isIndex.js +0 -14
  861. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isIterateeCall.js +0 -14
  862. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isKey.js +0 -14
  863. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isKeyable.js +0 -14
  864. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isMasked.js +0 -14
  865. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_isPrototype.js +0 -14
  866. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheClear.js +0 -14
  867. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheDelete.js +0 -14
  868. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheGet.js +0 -14
  869. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheHas.js +0 -14
  870. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_listCacheSet.js +0 -14
  871. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheClear.js +0 -14
  872. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheDelete.js +0 -14
  873. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheGet.js +0 -14
  874. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheHas.js +0 -14
  875. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapCacheSet.js +0 -14
  876. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_mapToArray.js +0 -14
  877. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_memoizeCapped.js +0 -14
  878. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nativeCreate.js +0 -14
  879. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nativeKeys.js +0 -14
  880. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nativeKeysIn.js +0 -14
  881. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_nodeUtil.js +0 -14
  882. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_objectToString.js +0 -14
  883. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_overArg.js +0 -14
  884. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_overRest.js +0 -14
  885. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_root.js +0 -14
  886. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_safeGet.js +0 -14
  887. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setCacheAdd.js +0 -14
  888. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setCacheHas.js +0 -14
  889. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setToArray.js +0 -14
  890. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_setToString.js +0 -14
  891. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_shortOut.js +0 -14
  892. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackClear.js +0 -14
  893. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackDelete.js +0 -14
  894. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackGet.js +0 -14
  895. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackHas.js +0 -14
  896. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stackSet.js +0 -14
  897. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_strictIndexOf.js +0 -14
  898. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_stringToPath.js +0 -14
  899. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_toKey.js +0 -14
  900. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/_toSource.js +0 -14
  901. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/constant.js +0 -14
  902. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/eq.js +0 -14
  903. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/get.js +0 -14
  904. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/identity.js +0 -14
  905. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/intersectionWith.js +0 -14
  906. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArguments.js +0 -14
  907. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArray.js +0 -14
  908. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArrayLike.js +0 -14
  909. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isArrayLikeObject.js +0 -14
  910. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isBuffer.js +0 -14
  911. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isEqual.js +0 -14
  912. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isFunction.js +0 -14
  913. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isLength.js +0 -14
  914. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isObject.js +0 -14
  915. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isObjectLike.js +0 -14
  916. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isPlainObject.js +0 -14
  917. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isSymbol.js +0 -14
  918. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/isTypedArray.js +0 -14
  919. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/keys.js +0 -14
  920. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/keysIn.js +0 -14
  921. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/last.js +0 -14
  922. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/memoize.js +0 -14
  923. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/mergeWith.js +0 -14
  924. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/noop.js +0 -14
  925. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/stubArray.js +0 -14
  926. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/stubFalse.js +0 -14
  927. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/toPlainObject.js +0 -14
  928. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/toString.js +0 -14
  929. package/dist/lib/packages/components/dist/es/node_modules/lodash-es/unionWith.js +0 -14
  930. package/dist/lib/packages/components/dist/es/node_modules/orderedmap/dist/index.js +0 -14
  931. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-commands/dist/index.js +0 -15
  932. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +0 -14
  933. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +0 -14
  934. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-history/dist/index.js +0 -14
  935. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-keymap/dist/index.js +0 -14
  936. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-model/dist/index.js +0 -17
  937. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-schema-list/dist/index.js +0 -14
  938. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-state/dist/index.js +0 -14
  939. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-tables/dist/index.js +0 -14
  940. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-transform/dist/index.js +0 -15
  941. package/dist/lib/packages/components/dist/es/node_modules/prosemirror-view/dist/index.js +0 -18
  942. package/dist/lib/packages/components/dist/es/node_modules/rope-sequence/dist/index.js +0 -14
  943. package/dist/lib/packages/components/dist/es/node_modules/w3c-keyname/index.js +0 -14
  944. package/dist/lib/packages/components/dist/es/packages/utils/dist/index.js +0 -14
  945. package/dist/lib/packages/components/dist/es/styles/tokens.css +0 -14
  946. package/dist/lib/packages/hooks/dist/index.js +0 -14
  947. package/dist/lib/packages/shared-service/index.js +0 -14
  948. package/dist/lib/packages/utils/dist/index.js +0 -14
  949. package/dist/lib/utils/request.js +0 -14
  950. package/dist/lib/utils/util.js +0 -14
@@ -1,2746 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
3
- @license Proprietary
4
-
5
- This software is the confidential and proprietary property of Lenovo SSG BASD.
6
- You shall not disclose such Confidential Information and shall use it only in
7
- accordance with the terms of the license agreement.
8
-
9
- --- Build Info ---
10
- Version: 1.0.4
11
- Build Time: 2026/3/20 19:01:32
12
- Build Commit: e870d54d366d1b5dce52602a729199a8d55c50a8
13
- */
14
- import q from "../../orderedmap/dist/index.js";
15
- function Y(o, t, e) {
16
- for (let n = 0; ; n++) {
17
- if (n == o.childCount || n == t.childCount)
18
- return o.childCount == t.childCount ? null : e;
19
- let r = o.child(n), i = t.child(n);
20
- if (r == i) {
21
- e += r.nodeSize;
22
- continue;
23
- }
24
- if (!r.sameMarkup(i))
25
- return e;
26
- if (r.isText && r.text != i.text) {
27
- for (let s = 0; r.text[s] == i.text[s]; s++)
28
- e++;
29
- return e;
30
- }
31
- if (r.content.size || i.content.size) {
32
- let s = Y(r.content, i.content, e + 1);
33
- if (s != null)
34
- return s;
35
- }
36
- e += r.nodeSize;
37
- }
38
- }
39
- function Z(o, t, e, n) {
40
- for (let r = o.childCount, i = t.childCount; ; ) {
41
- if (r == 0 || i == 0)
42
- return r == i ? null : { a: e, b: n };
43
- let s = o.child(--r), h = t.child(--i), l = s.nodeSize;
44
- if (s == h) {
45
- e -= l, n -= l;
46
- continue;
47
- }
48
- if (!s.sameMarkup(h))
49
- return { a: e, b: n };
50
- if (s.isText && s.text != h.text) {
51
- let a = 0, c = Math.min(s.text.length, h.text.length);
52
- for (; a < c && s.text[s.text.length - a - 1] == h.text[h.text.length - a - 1]; )
53
- a++, e--, n--;
54
- return { a: e, b: n };
55
- }
56
- if (s.content.size || h.content.size) {
57
- let a = Z(s.content, h.content, e - 1, n - 1);
58
- if (a)
59
- return a;
60
- }
61
- e -= l, n -= l;
62
- }
63
- }
64
- class u {
65
- /**
66
- @internal
67
- */
68
- constructor(t, e) {
69
- if (this.content = t, this.size = e || 0, e == null)
70
- for (let n = 0; n < t.length; n++)
71
- this.size += t[n].nodeSize;
72
- }
73
- /**
74
- Invoke a callback for all descendant nodes between the given two
75
- positions (relative to start of this fragment). Doesn't descend
76
- into a node when the callback returns `false`.
77
- */
78
- nodesBetween(t, e, n, r = 0, i) {
79
- for (let s = 0, h = 0; h < e; s++) {
80
- let l = this.content[s], a = h + l.nodeSize;
81
- if (a > t && n(l, r + h, i || null, s) !== !1 && l.content.size) {
82
- let c = h + 1;
83
- l.nodesBetween(Math.max(0, t - c), Math.min(l.content.size, e - c), n, r + c);
84
- }
85
- h = a;
86
- }
87
- }
88
- /**
89
- Call the given callback for every descendant node. `pos` will be
90
- relative to the start of the fragment. The callback may return
91
- `false` to prevent traversal of a given node's children.
92
- */
93
- descendants(t) {
94
- this.nodesBetween(0, this.size, t);
95
- }
96
- /**
97
- Extract the text between `from` and `to`. See the same method on
98
- [`Node`](https://prosemirror.net/docs/ref/#model.Node.textBetween).
99
- */
100
- textBetween(t, e, n, r) {
101
- let i = "", s = !0;
102
- return this.nodesBetween(t, e, (h, l) => {
103
- let a = h.isText ? h.text.slice(Math.max(t, l) - l, e - l) : h.isLeaf ? r ? typeof r == "function" ? r(h) : r : h.type.spec.leafText ? h.type.spec.leafText(h) : "" : "";
104
- h.isBlock && (h.isLeaf && a || h.isTextblock) && n && (s ? s = !1 : i += n), i += a;
105
- }, 0), i;
106
- }
107
- /**
108
- Create a new fragment containing the combined content of this
109
- fragment and the other.
110
- */
111
- append(t) {
112
- if (!t.size)
113
- return this;
114
- if (!this.size)
115
- return t;
116
- let e = this.lastChild, n = t.firstChild, r = this.content.slice(), i = 0;
117
- for (e.isText && e.sameMarkup(n) && (r[r.length - 1] = e.withText(e.text + n.text), i = 1); i < t.content.length; i++)
118
- r.push(t.content[i]);
119
- return new u(r, this.size + t.size);
120
- }
121
- /**
122
- Cut out the sub-fragment between the two given positions.
123
- */
124
- cut(t, e = this.size) {
125
- if (t == 0 && e == this.size)
126
- return this;
127
- let n = [], r = 0;
128
- if (e > t)
129
- for (let i = 0, s = 0; s < e; i++) {
130
- let h = this.content[i], l = s + h.nodeSize;
131
- l > t && ((s < t || l > e) && (h.isText ? h = h.cut(Math.max(0, t - s), Math.min(h.text.length, e - s)) : h = h.cut(Math.max(0, t - s - 1), Math.min(h.content.size, e - s - 1))), n.push(h), r += h.nodeSize), s = l;
132
- }
133
- return new u(n, r);
134
- }
135
- /**
136
- @internal
137
- */
138
- cutByIndex(t, e) {
139
- return t == e ? u.empty : t == 0 && e == this.content.length ? this : new u(this.content.slice(t, e));
140
- }
141
- /**
142
- Create a new fragment in which the node at the given index is
143
- replaced by the given node.
144
- */
145
- replaceChild(t, e) {
146
- let n = this.content[t];
147
- if (n == e)
148
- return this;
149
- let r = this.content.slice(), i = this.size + e.nodeSize - n.nodeSize;
150
- return r[t] = e, new u(r, i);
151
- }
152
- /**
153
- Create a new fragment by prepending the given node to this
154
- fragment.
155
- */
156
- addToStart(t) {
157
- return new u([t].concat(this.content), this.size + t.nodeSize);
158
- }
159
- /**
160
- Create a new fragment by appending the given node to this
161
- fragment.
162
- */
163
- addToEnd(t) {
164
- return new u(this.content.concat(t), this.size + t.nodeSize);
165
- }
166
- /**
167
- Compare this fragment to another one.
168
- */
169
- eq(t) {
170
- if (this.content.length != t.content.length)
171
- return !1;
172
- for (let e = 0; e < this.content.length; e++)
173
- if (!this.content[e].eq(t.content[e]))
174
- return !1;
175
- return !0;
176
- }
177
- /**
178
- The first child of the fragment, or `null` if it is empty.
179
- */
180
- get firstChild() {
181
- return this.content.length ? this.content[0] : null;
182
- }
183
- /**
184
- The last child of the fragment, or `null` if it is empty.
185
- */
186
- get lastChild() {
187
- return this.content.length ? this.content[this.content.length - 1] : null;
188
- }
189
- /**
190
- The number of child nodes in this fragment.
191
- */
192
- get childCount() {
193
- return this.content.length;
194
- }
195
- /**
196
- Get the child node at the given index. Raise an error when the
197
- index is out of range.
198
- */
199
- child(t) {
200
- let e = this.content[t];
201
- if (!e)
202
- throw new RangeError("Index " + t + " out of range for " + this);
203
- return e;
204
- }
205
- /**
206
- Get the child node at the given index, if it exists.
207
- */
208
- maybeChild(t) {
209
- return this.content[t] || null;
210
- }
211
- /**
212
- Call `f` for every child node, passing the node, its offset
213
- into this parent node, and its index.
214
- */
215
- forEach(t) {
216
- for (let e = 0, n = 0; e < this.content.length; e++) {
217
- let r = this.content[e];
218
- t(r, n, e), n += r.nodeSize;
219
- }
220
- }
221
- /**
222
- Find the first position at which this fragment and another
223
- fragment differ, or `null` if they are the same.
224
- */
225
- findDiffStart(t, e = 0) {
226
- return Y(this, t, e);
227
- }
228
- /**
229
- Find the first position, searching from the end, at which this
230
- fragment and the given fragment differ, or `null` if they are
231
- the same. Since this position will not be the same in both
232
- nodes, an object with two separate positions is returned.
233
- */
234
- findDiffEnd(t, e = this.size, n = t.size) {
235
- return Z(this, t, e, n);
236
- }
237
- /**
238
- Find the index and inner offset corresponding to a given relative
239
- position in this fragment. The result object will be reused
240
- (overwritten) the next time the function is called. @internal
241
- */
242
- findIndex(t) {
243
- if (t == 0)
244
- return O(0, t);
245
- if (t == this.size)
246
- return O(this.content.length, t);
247
- if (t > this.size || t < 0)
248
- throw new RangeError(`Position ${t} outside of fragment (${this})`);
249
- for (let e = 0, n = 0; ; e++) {
250
- let r = this.child(e), i = n + r.nodeSize;
251
- if (i >= t)
252
- return i == t ? O(e + 1, i) : O(e, n);
253
- n = i;
254
- }
255
- }
256
- /**
257
- Return a debugging string that describes this fragment.
258
- */
259
- toString() {
260
- return "<" + this.toStringInner() + ">";
261
- }
262
- /**
263
- @internal
264
- */
265
- toStringInner() {
266
- return this.content.join(", ");
267
- }
268
- /**
269
- Create a JSON-serializeable representation of this fragment.
270
- */
271
- toJSON() {
272
- return this.content.length ? this.content.map((t) => t.toJSON()) : null;
273
- }
274
- /**
275
- Deserialize a fragment from its JSON representation.
276
- */
277
- static fromJSON(t, e) {
278
- if (!e)
279
- return u.empty;
280
- if (!Array.isArray(e))
281
- throw new RangeError("Invalid input for Fragment.fromJSON");
282
- return new u(e.map(t.nodeFromJSON));
283
- }
284
- /**
285
- Build a fragment from an array of nodes. Ensures that adjacent
286
- text nodes with the same marks are joined together.
287
- */
288
- static fromArray(t) {
289
- if (!t.length)
290
- return u.empty;
291
- let e, n = 0;
292
- for (let r = 0; r < t.length; r++) {
293
- let i = t[r];
294
- n += i.nodeSize, r && i.isText && t[r - 1].sameMarkup(i) ? (e || (e = t.slice(0, r)), e[e.length - 1] = i.withText(e[e.length - 1].text + i.text)) : e && e.push(i);
295
- }
296
- return new u(e || t, n);
297
- }
298
- /**
299
- Create a fragment from something that can be interpreted as a
300
- set of nodes. For `null`, it returns the empty fragment. For a
301
- fragment, the fragment itself. For a node or array of nodes, a
302
- fragment containing those nodes.
303
- */
304
- static from(t) {
305
- if (!t)
306
- return u.empty;
307
- if (t instanceof u)
308
- return t;
309
- if (Array.isArray(t))
310
- return this.fromArray(t);
311
- if (t.attrs)
312
- return new u([t], t.nodeSize);
313
- throw new RangeError("Can not convert " + t + " to a Fragment" + (t.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
314
- }
315
- }
316
- u.empty = new u([], 0);
317
- const R = { index: 0, offset: 0 };
318
- function O(o, t) {
319
- return R.index = o, R.offset = t, R;
320
- }
321
- function M(o, t) {
322
- if (o === t)
323
- return !0;
324
- if (!(o && typeof o == "object") || !(t && typeof t == "object"))
325
- return !1;
326
- let e = Array.isArray(o);
327
- if (Array.isArray(t) != e)
328
- return !1;
329
- if (e) {
330
- if (o.length != t.length)
331
- return !1;
332
- for (let n = 0; n < o.length; n++)
333
- if (!M(o[n], t[n]))
334
- return !1;
335
- } else {
336
- for (let n in o)
337
- if (!(n in t) || !M(o[n], t[n]))
338
- return !1;
339
- for (let n in t)
340
- if (!(n in o))
341
- return !1;
342
- }
343
- return !0;
344
- }
345
- class f {
346
- /**
347
- @internal
348
- */
349
- constructor(t, e) {
350
- this.type = t, this.attrs = e;
351
- }
352
- /**
353
- Given a set of marks, create a new set which contains this one as
354
- well, in the right position. If this mark is already in the set,
355
- the set itself is returned. If any marks that are set to be
356
- [exclusive](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) with this mark are present,
357
- those are replaced by this one.
358
- */
359
- addToSet(t) {
360
- let e, n = !1;
361
- for (let r = 0; r < t.length; r++) {
362
- let i = t[r];
363
- if (this.eq(i))
364
- return t;
365
- if (this.type.excludes(i.type))
366
- e || (e = t.slice(0, r));
367
- else {
368
- if (i.type.excludes(this.type))
369
- return t;
370
- !n && i.type.rank > this.type.rank && (e || (e = t.slice(0, r)), e.push(this), n = !0), e && e.push(i);
371
- }
372
- }
373
- return e || (e = t.slice()), n || e.push(this), e;
374
- }
375
- /**
376
- Remove this mark from the given set, returning a new set. If this
377
- mark is not in the set, the set itself is returned.
378
- */
379
- removeFromSet(t) {
380
- for (let e = 0; e < t.length; e++)
381
- if (this.eq(t[e]))
382
- return t.slice(0, e).concat(t.slice(e + 1));
383
- return t;
384
- }
385
- /**
386
- Test whether this mark is in the given set of marks.
387
- */
388
- isInSet(t) {
389
- for (let e = 0; e < t.length; e++)
390
- if (this.eq(t[e]))
391
- return !0;
392
- return !1;
393
- }
394
- /**
395
- Test whether this mark has the same type and attributes as
396
- another mark.
397
- */
398
- eq(t) {
399
- return this == t || this.type == t.type && M(this.attrs, t.attrs);
400
- }
401
- /**
402
- Convert this mark to a JSON-serializeable representation.
403
- */
404
- toJSON() {
405
- let t = { type: this.type.name };
406
- for (let e in this.attrs) {
407
- t.attrs = this.attrs;
408
- break;
409
- }
410
- return t;
411
- }
412
- /**
413
- Deserialize a mark from JSON.
414
- */
415
- static fromJSON(t, e) {
416
- if (!e)
417
- throw new RangeError("Invalid input for Mark.fromJSON");
418
- let n = t.marks[e.type];
419
- if (!n)
420
- throw new RangeError(`There is no mark type ${e.type} in this schema`);
421
- let r = n.create(e.attrs);
422
- return n.checkAttrs(r.attrs), r;
423
- }
424
- /**
425
- Test whether two sets of marks are identical.
426
- */
427
- static sameSet(t, e) {
428
- if (t == e)
429
- return !0;
430
- if (t.length != e.length)
431
- return !1;
432
- for (let n = 0; n < t.length; n++)
433
- if (!t[n].eq(e[n]))
434
- return !1;
435
- return !0;
436
- }
437
- /**
438
- Create a properly sorted mark set from null, a single mark, or an
439
- unsorted array of marks.
440
- */
441
- static setFrom(t) {
442
- if (!t || Array.isArray(t) && t.length == 0)
443
- return f.none;
444
- if (t instanceof f)
445
- return [t];
446
- let e = t.slice();
447
- return e.sort((n, r) => n.type.rank - r.type.rank), e;
448
- }
449
- }
450
- f.none = [];
451
- class F extends Error {
452
- }
453
- let C = class k {
454
- /**
455
- Create a slice. When specifying a non-zero open depth, you must
456
- make sure that there are nodes of at least that depth at the
457
- appropriate side of the fragment—i.e. if the fragment is an
458
- empty paragraph node, `openStart` and `openEnd` can't be greater
459
- than 1.
460
-
461
- It is not necessary for the content of open nodes to conform to
462
- the schema's content constraints, though it should be a valid
463
- start/end/middle for such a node, depending on which sides are
464
- open.
465
- */
466
- constructor(t, e, n) {
467
- this.content = t, this.openStart = e, this.openEnd = n;
468
- }
469
- /**
470
- The size this slice would add when inserted into a document.
471
- */
472
- get size() {
473
- return this.content.size - this.openStart - this.openEnd;
474
- }
475
- /**
476
- @internal
477
- */
478
- insertAt(t, e) {
479
- let n = tt(this.content, t + this.openStart, e);
480
- return n && new k(n, this.openStart, this.openEnd);
481
- }
482
- /**
483
- @internal
484
- */
485
- removeBetween(t, e) {
486
- return new k(_(this.content, t + this.openStart, e + this.openStart), this.openStart, this.openEnd);
487
- }
488
- /**
489
- Tests whether this slice is equal to another slice.
490
- */
491
- eq(t) {
492
- return this.content.eq(t.content) && this.openStart == t.openStart && this.openEnd == t.openEnd;
493
- }
494
- /**
495
- @internal
496
- */
497
- toString() {
498
- return this.content + "(" + this.openStart + "," + this.openEnd + ")";
499
- }
500
- /**
501
- Convert a slice to a JSON-serializable representation.
502
- */
503
- toJSON() {
504
- if (!this.content.size)
505
- return null;
506
- let t = { content: this.content.toJSON() };
507
- return this.openStart > 0 && (t.openStart = this.openStart), this.openEnd > 0 && (t.openEnd = this.openEnd), t;
508
- }
509
- /**
510
- Deserialize a slice from its JSON representation.
511
- */
512
- static fromJSON(t, e) {
513
- if (!e)
514
- return k.empty;
515
- let n = e.openStart || 0, r = e.openEnd || 0;
516
- if (typeof n != "number" || typeof r != "number")
517
- throw new RangeError("Invalid input for Slice.fromJSON");
518
- return new k(u.fromJSON(t, e.content), n, r);
519
- }
520
- /**
521
- Create a slice from a fragment by taking the maximum possible
522
- open value on both side of the fragment.
523
- */
524
- static maxOpen(t, e = !0) {
525
- let n = 0, r = 0;
526
- for (let i = t.firstChild; i && !i.isLeaf && (e || !i.type.spec.isolating); i = i.firstChild)
527
- n++;
528
- for (let i = t.lastChild; i && !i.isLeaf && (e || !i.type.spec.isolating); i = i.lastChild)
529
- r++;
530
- return new k(t, n, r);
531
- }
532
- };
533
- C.empty = new C(u.empty, 0, 0);
534
- function _(o, t, e) {
535
- let { index: n, offset: r } = o.findIndex(t), i = o.maybeChild(n), { index: s, offset: h } = o.findIndex(e);
536
- if (r == t || i.isText) {
537
- if (h != e && !o.child(s).isText)
538
- throw new RangeError("Removing non-flat range");
539
- return o.cut(0, t).append(o.cut(e));
540
- }
541
- if (n != s)
542
- throw new RangeError("Removing non-flat range");
543
- return o.replaceChild(n, i.copy(_(i.content, t - r - 1, e - r - 1)));
544
- }
545
- function tt(o, t, e, n) {
546
- let { index: r, offset: i } = o.findIndex(t), s = o.maybeChild(r);
547
- if (i == t || s.isText)
548
- return n && !n.canReplace(r, r, e) ? null : o.cut(0, t).append(e).append(o.cut(t));
549
- let h = tt(s.content, t - i - 1, e, s);
550
- return h && o.replaceChild(r, s.copy(h));
551
- }
552
- function mt(o, t, e) {
553
- if (e.openStart > o.depth)
554
- throw new F("Inserted content deeper than insertion position");
555
- if (o.depth - e.openStart != t.depth - e.openEnd)
556
- throw new F("Inconsistent open depths");
557
- return et(o, t, e, 0);
558
- }
559
- function et(o, t, e, n) {
560
- let r = o.index(n), i = o.node(n);
561
- if (r == t.index(n) && n < o.depth - e.openStart) {
562
- let s = et(o, t, e, n + 1);
563
- return i.copy(i.content.replaceChild(r, s));
564
- } else if (e.content.size)
565
- if (!e.openStart && !e.openEnd && o.depth == n && t.depth == n) {
566
- let s = o.parent, h = s.content;
567
- return y(s, h.cut(0, o.parentOffset).append(e.content).append(h.cut(t.parentOffset)));
568
- } else {
569
- let { start: s, end: h } = gt(e, o);
570
- return y(i, rt(o, s, h, t, n));
571
- }
572
- else return y(i, A(o, t, n));
573
- }
574
- function nt(o, t) {
575
- if (!t.type.compatibleContent(o.type))
576
- throw new F("Cannot join " + t.type.name + " onto " + o.type.name);
577
- }
578
- function B(o, t, e) {
579
- let n = o.node(e);
580
- return nt(n, t.node(e)), n;
581
- }
582
- function g(o, t) {
583
- let e = t.length - 1;
584
- e >= 0 && o.isText && o.sameMarkup(t[e]) ? t[e] = o.withText(t[e].text + o.text) : t.push(o);
585
- }
586
- function w(o, t, e, n) {
587
- let r = (t || o).node(e), i = 0, s = t ? t.index(e) : r.childCount;
588
- o && (i = o.index(e), o.depth > e ? i++ : o.textOffset && (g(o.nodeAfter, n), i++));
589
- for (let h = i; h < s; h++)
590
- g(r.child(h), n);
591
- t && t.depth == e && t.textOffset && g(t.nodeBefore, n);
592
- }
593
- function y(o, t) {
594
- return o.type.checkContent(t), o.copy(t);
595
- }
596
- function rt(o, t, e, n, r) {
597
- let i = o.depth > r && B(o, t, r + 1), s = n.depth > r && B(e, n, r + 1), h = [];
598
- return w(null, o, r, h), i && s && t.index(r) == e.index(r) ? (nt(i, s), g(y(i, rt(o, t, e, n, r + 1)), h)) : (i && g(y(i, A(o, t, r + 1)), h), w(t, e, r, h), s && g(y(s, A(e, n, r + 1)), h)), w(n, null, r, h), new u(h);
599
- }
600
- function A(o, t, e) {
601
- let n = [];
602
- if (w(null, o, e, n), o.depth > e) {
603
- let r = B(o, t, e + 1);
604
- g(y(r, A(o, t, e + 1)), n);
605
- }
606
- return w(t, null, e, n), new u(n);
607
- }
608
- function gt(o, t) {
609
- let e = t.depth - o.openStart, n = t.node(e).copy(o.content);
610
- for (let r = e - 1; r >= 0; r--)
611
- n = t.node(r).copy(u.from(n));
612
- return {
613
- start: n.resolveNoCache(o.openStart + e),
614
- end: n.resolveNoCache(n.content.size - o.openEnd - e)
615
- };
616
- }
617
- class b {
618
- /**
619
- @internal
620
- */
621
- constructor(t, e, n) {
622
- this.pos = t, this.path = e, this.parentOffset = n, this.depth = e.length / 3 - 1;
623
- }
624
- /**
625
- @internal
626
- */
627
- resolveDepth(t) {
628
- return t == null ? this.depth : t < 0 ? this.depth + t : t;
629
- }
630
- /**
631
- The parent node that the position points into. Note that even if
632
- a position points into a text node, that node is not considered
633
- the parent—text nodes are ‘flat’ in this model, and have no content.
634
- */
635
- get parent() {
636
- return this.node(this.depth);
637
- }
638
- /**
639
- The root node in which the position was resolved.
640
- */
641
- get doc() {
642
- return this.node(0);
643
- }
644
- /**
645
- The ancestor node at the given level. `p.node(p.depth)` is the
646
- same as `p.parent`.
647
- */
648
- node(t) {
649
- return this.path[this.resolveDepth(t) * 3];
650
- }
651
- /**
652
- The index into the ancestor at the given level. If this points
653
- at the 3rd node in the 2nd paragraph on the top level, for
654
- example, `p.index(0)` is 1 and `p.index(1)` is 2.
655
- */
656
- index(t) {
657
- return this.path[this.resolveDepth(t) * 3 + 1];
658
- }
659
- /**
660
- The index pointing after this position into the ancestor at the
661
- given level.
662
- */
663
- indexAfter(t) {
664
- return t = this.resolveDepth(t), this.index(t) + (t == this.depth && !this.textOffset ? 0 : 1);
665
- }
666
- /**
667
- The (absolute) position at the start of the node at the given
668
- level.
669
- */
670
- start(t) {
671
- return t = this.resolveDepth(t), t == 0 ? 0 : this.path[t * 3 - 1] + 1;
672
- }
673
- /**
674
- The (absolute) position at the end of the node at the given
675
- level.
676
- */
677
- end(t) {
678
- return t = this.resolveDepth(t), this.start(t) + this.node(t).content.size;
679
- }
680
- /**
681
- The (absolute) position directly before the wrapping node at the
682
- given level, or, when `depth` is `this.depth + 1`, the original
683
- position.
684
- */
685
- before(t) {
686
- if (t = this.resolveDepth(t), !t)
687
- throw new RangeError("There is no position before the top-level node");
688
- return t == this.depth + 1 ? this.pos : this.path[t * 3 - 1];
689
- }
690
- /**
691
- The (absolute) position directly after the wrapping node at the
692
- given level, or the original position when `depth` is `this.depth + 1`.
693
- */
694
- after(t) {
695
- if (t = this.resolveDepth(t), !t)
696
- throw new RangeError("There is no position after the top-level node");
697
- return t == this.depth + 1 ? this.pos : this.path[t * 3 - 1] + this.path[t * 3].nodeSize;
698
- }
699
- /**
700
- When this position points into a text node, this returns the
701
- distance between the position and the start of the text node.
702
- Will be zero for positions that point between nodes.
703
- */
704
- get textOffset() {
705
- return this.pos - this.path[this.path.length - 1];
706
- }
707
- /**
708
- Get the node directly after the position, if any. If the position
709
- points into a text node, only the part of that node after the
710
- position is returned.
711
- */
712
- get nodeAfter() {
713
- let t = this.parent, e = this.index(this.depth);
714
- if (e == t.childCount)
715
- return null;
716
- let n = this.pos - this.path[this.path.length - 1], r = t.child(e);
717
- return n ? t.child(e).cut(n) : r;
718
- }
719
- /**
720
- Get the node directly before the position, if any. If the
721
- position points into a text node, only the part of that node
722
- before the position is returned.
723
- */
724
- get nodeBefore() {
725
- let t = this.index(this.depth), e = this.pos - this.path[this.path.length - 1];
726
- return e ? this.parent.child(t).cut(0, e) : t == 0 ? null : this.parent.child(t - 1);
727
- }
728
- /**
729
- Get the position at the given index in the parent node at the
730
- given depth (which defaults to `this.depth`).
731
- */
732
- posAtIndex(t, e) {
733
- e = this.resolveDepth(e);
734
- let n = this.path[e * 3], r = e == 0 ? 0 : this.path[e * 3 - 1] + 1;
735
- for (let i = 0; i < t; i++)
736
- r += n.child(i).nodeSize;
737
- return r;
738
- }
739
- /**
740
- Get the marks at this position, factoring in the surrounding
741
- marks' [`inclusive`](https://prosemirror.net/docs/ref/#model.MarkSpec.inclusive) property. If the
742
- position is at the start of a non-empty node, the marks of the
743
- node after it (if any) are returned.
744
- */
745
- marks() {
746
- let t = this.parent, e = this.index();
747
- if (t.content.size == 0)
748
- return f.none;
749
- if (this.textOffset)
750
- return t.child(e).marks;
751
- let n = t.maybeChild(e - 1), r = t.maybeChild(e);
752
- if (!n) {
753
- let h = n;
754
- n = r, r = h;
755
- }
756
- let i = n.marks;
757
- for (var s = 0; s < i.length; s++)
758
- i[s].type.spec.inclusive === !1 && (!r || !i[s].isInSet(r.marks)) && (i = i[s--].removeFromSet(i));
759
- return i;
760
- }
761
- /**
762
- Get the marks after the current position, if any, except those
763
- that are non-inclusive and not present at position `$end`. This
764
- is mostly useful for getting the set of marks to preserve after a
765
- deletion. Will return `null` if this position is at the end of
766
- its parent node or its parent node isn't a textblock (in which
767
- case no marks should be preserved).
768
- */
769
- marksAcross(t) {
770
- let e = this.parent.maybeChild(this.index());
771
- if (!e || !e.isInline)
772
- return null;
773
- let n = e.marks, r = t.parent.maybeChild(t.index());
774
- for (var i = 0; i < n.length; i++)
775
- n[i].type.spec.inclusive === !1 && (!r || !n[i].isInSet(r.marks)) && (n = n[i--].removeFromSet(n));
776
- return n;
777
- }
778
- /**
779
- The depth up to which this position and the given (non-resolved)
780
- position share the same parent nodes.
781
- */
782
- sharedDepth(t) {
783
- for (let e = this.depth; e > 0; e--)
784
- if (this.start(e) <= t && this.end(e) >= t)
785
- return e;
786
- return 0;
787
- }
788
- /**
789
- Returns a range based on the place where this position and the
790
- given position diverge around block content. If both point into
791
- the same textblock, for example, a range around that textblock
792
- will be returned. If they point into different blocks, the range
793
- around those blocks in their shared ancestor is returned. You can
794
- pass in an optional predicate that will be called with a parent
795
- node to see if a range into that parent is acceptable.
796
- */
797
- blockRange(t = this, e) {
798
- if (t.pos < this.pos)
799
- return t.blockRange(this);
800
- for (let n = this.depth - (this.parent.inlineContent || this.pos == t.pos ? 1 : 0); n >= 0; n--)
801
- if (t.pos <= this.end(n) && (!e || e(this.node(n))))
802
- return new kt(this, t, n);
803
- return null;
804
- }
805
- /**
806
- Query whether the given position shares the same parent node.
807
- */
808
- sameParent(t) {
809
- return this.pos - this.parentOffset == t.pos - t.parentOffset;
810
- }
811
- /**
812
- Return the greater of this and the given position.
813
- */
814
- max(t) {
815
- return t.pos > this.pos ? t : this;
816
- }
817
- /**
818
- Return the smaller of this and the given position.
819
- */
820
- min(t) {
821
- return t.pos < this.pos ? t : this;
822
- }
823
- /**
824
- @internal
825
- */
826
- toString() {
827
- let t = "";
828
- for (let e = 1; e <= this.depth; e++)
829
- t += (t ? "/" : "") + this.node(e).type.name + "_" + this.index(e - 1);
830
- return t + ":" + this.parentOffset;
831
- }
832
- /**
833
- @internal
834
- */
835
- static resolve(t, e) {
836
- if (!(e >= 0 && e <= t.content.size))
837
- throw new RangeError("Position " + e + " out of range");
838
- let n = [], r = 0, i = e;
839
- for (let s = t; ; ) {
840
- let { index: h, offset: l } = s.content.findIndex(i), a = i - l;
841
- if (n.push(s, h, r + l), !a || (s = s.child(h), s.isText))
842
- break;
843
- i = a - 1, r += l + 1;
844
- }
845
- return new b(e, n, i);
846
- }
847
- /**
848
- @internal
849
- */
850
- static resolveCached(t, e) {
851
- let n = j.get(t);
852
- if (n)
853
- for (let i = 0; i < n.elts.length; i++) {
854
- let s = n.elts[i];
855
- if (s.pos == e)
856
- return s;
857
- }
858
- else
859
- j.set(t, n = new yt());
860
- let r = n.elts[n.i] = b.resolve(t, e);
861
- return n.i = (n.i + 1) % xt, r;
862
- }
863
- }
864
- class yt {
865
- constructor() {
866
- this.elts = [], this.i = 0;
867
- }
868
- }
869
- const xt = 12, j = /* @__PURE__ */ new WeakMap();
870
- class kt {
871
- /**
872
- Construct a node range. `$from` and `$to` should point into the
873
- same node until at least the given `depth`, since a node range
874
- denotes an adjacent set of nodes in a single parent node.
875
- */
876
- constructor(t, e, n) {
877
- this.$from = t, this.$to = e, this.depth = n;
878
- }
879
- /**
880
- The position at the start of the range.
881
- */
882
- get start() {
883
- return this.$from.before(this.depth + 1);
884
- }
885
- /**
886
- The position at the end of the range.
887
- */
888
- get end() {
889
- return this.$to.after(this.depth + 1);
890
- }
891
- /**
892
- The parent node that the range points into.
893
- */
894
- get parent() {
895
- return this.$from.node(this.depth);
896
- }
897
- /**
898
- The start index of the range in the parent node.
899
- */
900
- get startIndex() {
901
- return this.$from.index(this.depth);
902
- }
903
- /**
904
- The end index of the range in the parent node.
905
- */
906
- get endIndex() {
907
- return this.$to.indexAfter(this.depth);
908
- }
909
- }
910
- const wt = /* @__PURE__ */ Object.create(null);
911
- class m {
912
- /**
913
- @internal
914
- */
915
- constructor(t, e, n, r = f.none) {
916
- this.type = t, this.attrs = e, this.marks = r, this.content = n || u.empty;
917
- }
918
- /**
919
- The array of this node's child nodes.
920
- */
921
- get children() {
922
- return this.content.content;
923
- }
924
- /**
925
- The size of this node, as defined by the integer-based [indexing
926
- scheme](https://prosemirror.net/docs/guide/#doc.indexing). For text nodes, this is the
927
- amount of characters. For other leaf nodes, it is one. For
928
- non-leaf nodes, it is the size of the content plus two (the
929
- start and end token).
930
- */
931
- get nodeSize() {
932
- return this.isLeaf ? 1 : 2 + this.content.size;
933
- }
934
- /**
935
- The number of children that the node has.
936
- */
937
- get childCount() {
938
- return this.content.childCount;
939
- }
940
- /**
941
- Get the child node at the given index. Raises an error when the
942
- index is out of range.
943
- */
944
- child(t) {
945
- return this.content.child(t);
946
- }
947
- /**
948
- Get the child node at the given index, if it exists.
949
- */
950
- maybeChild(t) {
951
- return this.content.maybeChild(t);
952
- }
953
- /**
954
- Call `f` for every child node, passing the node, its offset
955
- into this parent node, and its index.
956
- */
957
- forEach(t) {
958
- this.content.forEach(t);
959
- }
960
- /**
961
- Invoke a callback for all descendant nodes recursively between
962
- the given two positions that are relative to start of this
963
- node's content. The callback is invoked with the node, its
964
- position relative to the original node (method receiver),
965
- its parent node, and its child index. When the callback returns
966
- false for a given node, that node's children will not be
967
- recursed over. The last parameter can be used to specify a
968
- starting position to count from.
969
- */
970
- nodesBetween(t, e, n, r = 0) {
971
- this.content.nodesBetween(t, e, n, r, this);
972
- }
973
- /**
974
- Call the given callback for every descendant node. Doesn't
975
- descend into a node when the callback returns `false`.
976
- */
977
- descendants(t) {
978
- this.nodesBetween(0, this.content.size, t);
979
- }
980
- /**
981
- Concatenates all the text nodes found in this fragment and its
982
- children.
983
- */
984
- get textContent() {
985
- return this.isLeaf && this.type.spec.leafText ? this.type.spec.leafText(this) : this.textBetween(0, this.content.size, "");
986
- }
987
- /**
988
- Get all text between positions `from` and `to`. When
989
- `blockSeparator` is given, it will be inserted to separate text
990
- from different block nodes. If `leafText` is given, it'll be
991
- inserted for every non-text leaf node encountered, otherwise
992
- [`leafText`](https://prosemirror.net/docs/ref/#model.NodeSpec.leafText) will be used.
993
- */
994
- textBetween(t, e, n, r) {
995
- return this.content.textBetween(t, e, n, r);
996
- }
997
- /**
998
- Returns this node's first child, or `null` if there are no
999
- children.
1000
- */
1001
- get firstChild() {
1002
- return this.content.firstChild;
1003
- }
1004
- /**
1005
- Returns this node's last child, or `null` if there are no
1006
- children.
1007
- */
1008
- get lastChild() {
1009
- return this.content.lastChild;
1010
- }
1011
- /**
1012
- Test whether two nodes represent the same piece of document.
1013
- */
1014
- eq(t) {
1015
- return this == t || this.sameMarkup(t) && this.content.eq(t.content);
1016
- }
1017
- /**
1018
- Compare the markup (type, attributes, and marks) of this node to
1019
- those of another. Returns `true` if both have the same markup.
1020
- */
1021
- sameMarkup(t) {
1022
- return this.hasMarkup(t.type, t.attrs, t.marks);
1023
- }
1024
- /**
1025
- Check whether this node's markup correspond to the given type,
1026
- attributes, and marks.
1027
- */
1028
- hasMarkup(t, e, n) {
1029
- return this.type == t && M(this.attrs, e || t.defaultAttrs || wt) && f.sameSet(this.marks, n || f.none);
1030
- }
1031
- /**
1032
- Create a new node with the same markup as this node, containing
1033
- the given content (or empty, if no content is given).
1034
- */
1035
- copy(t = null) {
1036
- return t == this.content ? this : new m(this.type, this.attrs, t, this.marks);
1037
- }
1038
- /**
1039
- Create a copy of this node, with the given set of marks instead
1040
- of the node's own marks.
1041
- */
1042
- mark(t) {
1043
- return t == this.marks ? this : new m(this.type, this.attrs, this.content, t);
1044
- }
1045
- /**
1046
- Create a copy of this node with only the content between the
1047
- given positions. If `to` is not given, it defaults to the end of
1048
- the node.
1049
- */
1050
- cut(t, e = this.content.size) {
1051
- return t == 0 && e == this.content.size ? this : this.copy(this.content.cut(t, e));
1052
- }
1053
- /**
1054
- Cut out the part of the document between the given positions, and
1055
- return it as a `Slice` object.
1056
- */
1057
- slice(t, e = this.content.size, n = !1) {
1058
- if (t == e)
1059
- return C.empty;
1060
- let r = this.resolve(t), i = this.resolve(e), s = n ? 0 : r.sharedDepth(e), h = r.start(s), l = r.node(s).content.cut(r.pos - h, i.pos - h);
1061
- return new C(l, r.depth - s, i.depth - s);
1062
- }
1063
- /**
1064
- Replace the part of the document between the given positions with
1065
- the given slice. The slice must 'fit', meaning its open sides
1066
- must be able to connect to the surrounding content, and its
1067
- content nodes must be valid children for the node they are placed
1068
- into. If any of this is violated, an error of type
1069
- [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
1070
- */
1071
- replace(t, e, n) {
1072
- return mt(this.resolve(t), this.resolve(e), n);
1073
- }
1074
- /**
1075
- Find the node directly after the given position.
1076
- */
1077
- nodeAt(t) {
1078
- for (let e = this; ; ) {
1079
- let { index: n, offset: r } = e.content.findIndex(t);
1080
- if (e = e.maybeChild(n), !e)
1081
- return null;
1082
- if (r == t || e.isText)
1083
- return e;
1084
- t -= r + 1;
1085
- }
1086
- }
1087
- /**
1088
- Find the (direct) child node after the given offset, if any,
1089
- and return it along with its index and offset relative to this
1090
- node.
1091
- */
1092
- childAfter(t) {
1093
- let { index: e, offset: n } = this.content.findIndex(t);
1094
- return { node: this.content.maybeChild(e), index: e, offset: n };
1095
- }
1096
- /**
1097
- Find the (direct) child node before the given offset, if any,
1098
- and return it along with its index and offset relative to this
1099
- node.
1100
- */
1101
- childBefore(t) {
1102
- if (t == 0)
1103
- return { node: null, index: 0, offset: 0 };
1104
- let { index: e, offset: n } = this.content.findIndex(t);
1105
- if (n < t)
1106
- return { node: this.content.child(e), index: e, offset: n };
1107
- let r = this.content.child(e - 1);
1108
- return { node: r, index: e - 1, offset: n - r.nodeSize };
1109
- }
1110
- /**
1111
- Resolve the given position in the document, returning an
1112
- [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1113
- */
1114
- resolve(t) {
1115
- return b.resolveCached(this, t);
1116
- }
1117
- /**
1118
- @internal
1119
- */
1120
- resolveNoCache(t) {
1121
- return b.resolve(this, t);
1122
- }
1123
- /**
1124
- Test whether a given mark or mark type occurs in this document
1125
- between the two given positions.
1126
- */
1127
- rangeHasMark(t, e, n) {
1128
- let r = !1;
1129
- return e > t && this.nodesBetween(t, e, (i) => (n.isInSet(i.marks) && (r = !0), !r)), r;
1130
- }
1131
- /**
1132
- True when this is a block (non-inline node)
1133
- */
1134
- get isBlock() {
1135
- return this.type.isBlock;
1136
- }
1137
- /**
1138
- True when this is a textblock node, a block node with inline
1139
- content.
1140
- */
1141
- get isTextblock() {
1142
- return this.type.isTextblock;
1143
- }
1144
- /**
1145
- True when this node allows inline content.
1146
- */
1147
- get inlineContent() {
1148
- return this.type.inlineContent;
1149
- }
1150
- /**
1151
- True when this is an inline node (a text node or a node that can
1152
- appear among text).
1153
- */
1154
- get isInline() {
1155
- return this.type.isInline;
1156
- }
1157
- /**
1158
- True when this is a text node.
1159
- */
1160
- get isText() {
1161
- return this.type.isText;
1162
- }
1163
- /**
1164
- True when this is a leaf node.
1165
- */
1166
- get isLeaf() {
1167
- return this.type.isLeaf;
1168
- }
1169
- /**
1170
- True when this is an atom, i.e. when it does not have directly
1171
- editable content. This is usually the same as `isLeaf`, but can
1172
- be configured with the [`atom` property](https://prosemirror.net/docs/ref/#model.NodeSpec.atom)
1173
- on a node's spec (typically used when the node is displayed as
1174
- an uneditable [node view](https://prosemirror.net/docs/ref/#view.NodeView)).
1175
- */
1176
- get isAtom() {
1177
- return this.type.isAtom;
1178
- }
1179
- /**
1180
- Return a string representation of this node for debugging
1181
- purposes.
1182
- */
1183
- toString() {
1184
- if (this.type.spec.toDebugString)
1185
- return this.type.spec.toDebugString(this);
1186
- let t = this.type.name;
1187
- return this.content.size && (t += "(" + this.content.toStringInner() + ")"), it(this.marks, t);
1188
- }
1189
- /**
1190
- Get the content match in this node at the given index.
1191
- */
1192
- contentMatchAt(t) {
1193
- let e = this.type.contentMatch.matchFragment(this.content, 0, t);
1194
- if (!e)
1195
- throw new Error("Called contentMatchAt on a node with invalid content");
1196
- return e;
1197
- }
1198
- /**
1199
- Test whether replacing the range between `from` and `to` (by
1200
- child index) with the given replacement fragment (which defaults
1201
- to the empty fragment) would leave the node's content valid. You
1202
- can optionally pass `start` and `end` indices into the
1203
- replacement fragment.
1204
- */
1205
- canReplace(t, e, n = u.empty, r = 0, i = n.childCount) {
1206
- let s = this.contentMatchAt(t).matchFragment(n, r, i), h = s && s.matchFragment(this.content, e);
1207
- if (!h || !h.validEnd)
1208
- return !1;
1209
- for (let l = r; l < i; l++)
1210
- if (!this.type.allowsMarks(n.child(l).marks))
1211
- return !1;
1212
- return !0;
1213
- }
1214
- /**
1215
- Test whether replacing the range `from` to `to` (by index) with
1216
- a node of the given type would leave the node's content valid.
1217
- */
1218
- canReplaceWith(t, e, n, r) {
1219
- if (r && !this.type.allowsMarks(r))
1220
- return !1;
1221
- let i = this.contentMatchAt(t).matchType(n), s = i && i.matchFragment(this.content, e);
1222
- return s ? s.validEnd : !1;
1223
- }
1224
- /**
1225
- Test whether the given node's content could be appended to this
1226
- node. If that node is empty, this will only return true if there
1227
- is at least one node type that can appear in both nodes (to avoid
1228
- merging completely incompatible nodes).
1229
- */
1230
- canAppend(t) {
1231
- return t.content.size ? this.canReplace(this.childCount, this.childCount, t.content) : this.type.compatibleContent(t.type);
1232
- }
1233
- /**
1234
- Check whether this node and its descendants conform to the
1235
- schema, and raise an exception when they do not.
1236
- */
1237
- check() {
1238
- this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
1239
- let t = f.none;
1240
- for (let e = 0; e < this.marks.length; e++) {
1241
- let n = this.marks[e];
1242
- n.type.checkAttrs(n.attrs), t = n.addToSet(t);
1243
- }
1244
- if (!f.sameSet(t, this.marks))
1245
- throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((e) => e.type.name)}`);
1246
- this.content.forEach((e) => e.check());
1247
- }
1248
- /**
1249
- Return a JSON-serializeable representation of this node.
1250
- */
1251
- toJSON() {
1252
- let t = { type: this.type.name };
1253
- for (let e in this.attrs) {
1254
- t.attrs = this.attrs;
1255
- break;
1256
- }
1257
- return this.content.size && (t.content = this.content.toJSON()), this.marks.length && (t.marks = this.marks.map((e) => e.toJSON())), t;
1258
- }
1259
- /**
1260
- Deserialize a node from its JSON representation.
1261
- */
1262
- static fromJSON(t, e) {
1263
- if (!e)
1264
- throw new RangeError("Invalid input for Node.fromJSON");
1265
- let n;
1266
- if (e.marks) {
1267
- if (!Array.isArray(e.marks))
1268
- throw new RangeError("Invalid mark data for Node.fromJSON");
1269
- n = e.marks.map(t.markFromJSON);
1270
- }
1271
- if (e.type == "text") {
1272
- if (typeof e.text != "string")
1273
- throw new RangeError("Invalid text node in JSON");
1274
- return t.text(e.text, n);
1275
- }
1276
- let r = u.fromJSON(t, e.content), i = t.nodeType(e.type).create(e.attrs, r, n);
1277
- return i.type.checkAttrs(i.attrs), i;
1278
- }
1279
- }
1280
- m.prototype.text = void 0;
1281
- class N extends m {
1282
- /**
1283
- @internal
1284
- */
1285
- constructor(t, e, n, r) {
1286
- if (super(t, e, null, r), !n)
1287
- throw new RangeError("Empty text nodes are not allowed");
1288
- this.text = n;
1289
- }
1290
- toString() {
1291
- return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : it(this.marks, JSON.stringify(this.text));
1292
- }
1293
- get textContent() {
1294
- return this.text;
1295
- }
1296
- textBetween(t, e) {
1297
- return this.text.slice(t, e);
1298
- }
1299
- get nodeSize() {
1300
- return this.text.length;
1301
- }
1302
- mark(t) {
1303
- return t == this.marks ? this : new N(this.type, this.attrs, this.text, t);
1304
- }
1305
- withText(t) {
1306
- return t == this.text ? this : new N(this.type, this.attrs, t, this.marks);
1307
- }
1308
- cut(t = 0, e = this.text.length) {
1309
- return t == 0 && e == this.text.length ? this : this.withText(this.text.slice(t, e));
1310
- }
1311
- eq(t) {
1312
- return this.sameMarkup(t) && this.text == t.text;
1313
- }
1314
- toJSON() {
1315
- let t = super.toJSON();
1316
- return t.text = this.text, t;
1317
- }
1318
- }
1319
- function it(o, t) {
1320
- for (let e = o.length - 1; e >= 0; e--)
1321
- t = o[e].type.name + "(" + t + ")";
1322
- return t;
1323
- }
1324
- class x {
1325
- /**
1326
- @internal
1327
- */
1328
- constructor(t) {
1329
- this.validEnd = t, this.next = [], this.wrapCache = [];
1330
- }
1331
- /**
1332
- @internal
1333
- */
1334
- static parse(t, e) {
1335
- let n = new St(t, e);
1336
- if (n.next == null)
1337
- return x.empty;
1338
- let r = st(n);
1339
- n.next && n.err("Unexpected trailing text");
1340
- let i = Mt(Tt(r));
1341
- return At(i, n), i;
1342
- }
1343
- /**
1344
- Match a node type, returning a match after that node if
1345
- successful.
1346
- */
1347
- matchType(t) {
1348
- for (let e = 0; e < this.next.length; e++)
1349
- if (this.next[e].type == t)
1350
- return this.next[e].next;
1351
- return null;
1352
- }
1353
- /**
1354
- Try to match a fragment. Returns the resulting match when
1355
- successful.
1356
- */
1357
- matchFragment(t, e = 0, n = t.childCount) {
1358
- let r = this;
1359
- for (let i = e; r && i < n; i++)
1360
- r = r.matchType(t.child(i).type);
1361
- return r;
1362
- }
1363
- /**
1364
- @internal
1365
- */
1366
- get inlineContent() {
1367
- return this.next.length != 0 && this.next[0].type.isInline;
1368
- }
1369
- /**
1370
- Get the first matching node type at this match position that can
1371
- be generated.
1372
- */
1373
- get defaultType() {
1374
- for (let t = 0; t < this.next.length; t++) {
1375
- let { type: e } = this.next[t];
1376
- if (!(e.isText || e.hasRequiredAttrs()))
1377
- return e;
1378
- }
1379
- return null;
1380
- }
1381
- /**
1382
- @internal
1383
- */
1384
- compatible(t) {
1385
- for (let e = 0; e < this.next.length; e++)
1386
- for (let n = 0; n < t.next.length; n++)
1387
- if (this.next[e].type == t.next[n].type)
1388
- return !0;
1389
- return !1;
1390
- }
1391
- /**
1392
- Try to match the given fragment, and if that fails, see if it can
1393
- be made to match by inserting nodes in front of it. When
1394
- successful, return a fragment of inserted nodes (which may be
1395
- empty if nothing had to be inserted). When `toEnd` is true, only
1396
- return a fragment if the resulting match goes to the end of the
1397
- content expression.
1398
- */
1399
- fillBefore(t, e = !1, n = 0) {
1400
- let r = [this];
1401
- function i(s, h) {
1402
- let l = s.matchFragment(t, n);
1403
- if (l && (!e || l.validEnd))
1404
- return u.from(h.map((a) => a.createAndFill()));
1405
- for (let a = 0; a < s.next.length; a++) {
1406
- let { type: c, next: p } = s.next[a];
1407
- if (!(c.isText || c.hasRequiredAttrs()) && r.indexOf(p) == -1) {
1408
- r.push(p);
1409
- let d = i(p, h.concat(c));
1410
- if (d)
1411
- return d;
1412
- }
1413
- }
1414
- return null;
1415
- }
1416
- return i(this, []);
1417
- }
1418
- /**
1419
- Find a set of wrapping node types that would allow a node of the
1420
- given type to appear at this position. The result may be empty
1421
- (when it fits directly) and will be null when no such wrapping
1422
- exists.
1423
- */
1424
- findWrapping(t) {
1425
- for (let n = 0; n < this.wrapCache.length; n += 2)
1426
- if (this.wrapCache[n] == t)
1427
- return this.wrapCache[n + 1];
1428
- let e = this.computeWrapping(t);
1429
- return this.wrapCache.push(t, e), e;
1430
- }
1431
- /**
1432
- @internal
1433
- */
1434
- computeWrapping(t) {
1435
- let e = /* @__PURE__ */ Object.create(null), n = [{ match: this, type: null, via: null }];
1436
- for (; n.length; ) {
1437
- let r = n.shift(), i = r.match;
1438
- if (i.matchType(t)) {
1439
- let s = [];
1440
- for (let h = r; h.type; h = h.via)
1441
- s.push(h.type);
1442
- return s.reverse();
1443
- }
1444
- for (let s = 0; s < i.next.length; s++) {
1445
- let { type: h, next: l } = i.next[s];
1446
- !h.isLeaf && !h.hasRequiredAttrs() && !(h.name in e) && (!r.type || l.validEnd) && (n.push({ match: h.contentMatch, type: h, via: r }), e[h.name] = !0);
1447
- }
1448
- }
1449
- return null;
1450
- }
1451
- /**
1452
- The number of outgoing edges this node has in the finite
1453
- automaton that describes the content expression.
1454
- */
1455
- get edgeCount() {
1456
- return this.next.length;
1457
- }
1458
- /**
1459
- Get the _n_​th outgoing edge from this node in the finite
1460
- automaton that describes the content expression.
1461
- */
1462
- edge(t) {
1463
- if (t >= this.next.length)
1464
- throw new RangeError(`There's no ${t}th edge in this content match`);
1465
- return this.next[t];
1466
- }
1467
- /**
1468
- @internal
1469
- */
1470
- toString() {
1471
- let t = [];
1472
- function e(n) {
1473
- t.push(n);
1474
- for (let r = 0; r < n.next.length; r++)
1475
- t.indexOf(n.next[r].next) == -1 && e(n.next[r].next);
1476
- }
1477
- return e(this), t.map((n, r) => {
1478
- let i = r + (n.validEnd ? "*" : " ") + " ";
1479
- for (let s = 0; s < n.next.length; s++)
1480
- i += (s ? ", " : "") + n.next[s].type.name + "->" + t.indexOf(n.next[s].next);
1481
- return i;
1482
- }).join(`
1483
- `);
1484
- }
1485
- }
1486
- x.empty = new x(!0);
1487
- class St {
1488
- constructor(t, e) {
1489
- this.string = t, this.nodeTypes = e, this.inline = null, this.pos = 0, this.tokens = t.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
1490
- }
1491
- get next() {
1492
- return this.tokens[this.pos];
1493
- }
1494
- eat(t) {
1495
- return this.next == t && (this.pos++ || !0);
1496
- }
1497
- err(t) {
1498
- throw new SyntaxError(t + " (in content expression '" + this.string + "')");
1499
- }
1500
- }
1501
- function st(o) {
1502
- let t = [];
1503
- do
1504
- t.push(Ct(o));
1505
- while (o.eat("|"));
1506
- return t.length == 1 ? t[0] : { type: "choice", exprs: t };
1507
- }
1508
- function Ct(o) {
1509
- let t = [];
1510
- do
1511
- t.push(bt(o));
1512
- while (o.next && o.next != ")" && o.next != "|");
1513
- return t.length == 1 ? t[0] : { type: "seq", exprs: t };
1514
- }
1515
- function bt(o) {
1516
- let t = vt(o);
1517
- for (; ; )
1518
- if (o.eat("+"))
1519
- t = { type: "plus", expr: t };
1520
- else if (o.eat("*"))
1521
- t = { type: "star", expr: t };
1522
- else if (o.eat("?"))
1523
- t = { type: "opt", expr: t };
1524
- else if (o.eat("{"))
1525
- t = Et(o, t);
1526
- else
1527
- break;
1528
- return t;
1529
- }
1530
- function L(o) {
1531
- /\D/.test(o.next) && o.err("Expected number, got '" + o.next + "'");
1532
- let t = Number(o.next);
1533
- return o.pos++, t;
1534
- }
1535
- function Et(o, t) {
1536
- let e = L(o), n = e;
1537
- return o.eat(",") && (o.next != "}" ? n = L(o) : n = -1), o.eat("}") || o.err("Unclosed braced range"), { type: "range", min: e, max: n, expr: t };
1538
- }
1539
- function Ot(o, t) {
1540
- let e = o.nodeTypes, n = e[t];
1541
- if (n)
1542
- return [n];
1543
- let r = [];
1544
- for (let i in e) {
1545
- let s = e[i];
1546
- s.isInGroup(t) && r.push(s);
1547
- }
1548
- return r.length == 0 && o.err("No node type or group '" + t + "' found"), r;
1549
- }
1550
- function vt(o) {
1551
- if (o.eat("(")) {
1552
- let t = st(o);
1553
- return o.eat(")") || o.err("Missing closing paren"), t;
1554
- } else if (/\W/.test(o.next))
1555
- o.err("Unexpected token '" + o.next + "'");
1556
- else {
1557
- let t = Ot(o, o.next).map((e) => (o.inline == null ? o.inline = e.isInline : o.inline != e.isInline && o.err("Mixing inline and block content"), { type: "name", value: e }));
1558
- return o.pos++, t.length == 1 ? t[0] : { type: "choice", exprs: t };
1559
- }
1560
- }
1561
- function Tt(o) {
1562
- let t = [[]];
1563
- return r(i(o, 0), e()), t;
1564
- function e() {
1565
- return t.push([]) - 1;
1566
- }
1567
- function n(s, h, l) {
1568
- let a = { term: l, to: h };
1569
- return t[s].push(a), a;
1570
- }
1571
- function r(s, h) {
1572
- s.forEach((l) => l.to = h);
1573
- }
1574
- function i(s, h) {
1575
- if (s.type == "choice")
1576
- return s.exprs.reduce((l, a) => l.concat(i(a, h)), []);
1577
- if (s.type == "seq")
1578
- for (let l = 0; ; l++) {
1579
- let a = i(s.exprs[l], h);
1580
- if (l == s.exprs.length - 1)
1581
- return a;
1582
- r(a, h = e());
1583
- }
1584
- else if (s.type == "star") {
1585
- let l = e();
1586
- return n(h, l), r(i(s.expr, l), l), [n(l)];
1587
- } else if (s.type == "plus") {
1588
- let l = e();
1589
- return r(i(s.expr, h), l), r(i(s.expr, l), l), [n(l)];
1590
- } else {
1591
- if (s.type == "opt")
1592
- return [n(h)].concat(i(s.expr, h));
1593
- if (s.type == "range") {
1594
- let l = h;
1595
- for (let a = 0; a < s.min; a++) {
1596
- let c = e();
1597
- r(i(s.expr, l), c), l = c;
1598
- }
1599
- if (s.max == -1)
1600
- r(i(s.expr, l), l);
1601
- else
1602
- for (let a = s.min; a < s.max; a++) {
1603
- let c = e();
1604
- n(l, c), r(i(s.expr, l), c), l = c;
1605
- }
1606
- return [n(l)];
1607
- } else {
1608
- if (s.type == "name")
1609
- return [n(h, void 0, s.value)];
1610
- throw new Error("Unknown expr type");
1611
- }
1612
- }
1613
- }
1614
- }
1615
- function ot(o, t) {
1616
- return t - o;
1617
- }
1618
- function W(o, t) {
1619
- let e = [];
1620
- return n(t), e.sort(ot);
1621
- function n(r) {
1622
- let i = o[r];
1623
- if (i.length == 1 && !i[0].term)
1624
- return n(i[0].to);
1625
- e.push(r);
1626
- for (let s = 0; s < i.length; s++) {
1627
- let { term: h, to: l } = i[s];
1628
- !h && e.indexOf(l) == -1 && n(l);
1629
- }
1630
- }
1631
- }
1632
- function Mt(o) {
1633
- let t = /* @__PURE__ */ Object.create(null);
1634
- return e(W(o, 0));
1635
- function e(n) {
1636
- let r = [];
1637
- n.forEach((s) => {
1638
- o[s].forEach(({ term: h, to: l }) => {
1639
- if (!h)
1640
- return;
1641
- let a;
1642
- for (let c = 0; c < r.length; c++)
1643
- r[c][0] == h && (a = r[c][1]);
1644
- W(o, l).forEach((c) => {
1645
- a || r.push([h, a = []]), a.indexOf(c) == -1 && a.push(c);
1646
- });
1647
- });
1648
- });
1649
- let i = t[n.join(",")] = new x(n.indexOf(o.length - 1) > -1);
1650
- for (let s = 0; s < r.length; s++) {
1651
- let h = r[s][1].sort(ot);
1652
- i.next.push({ type: r[s][0], next: t[h.join(",")] || e(h) });
1653
- }
1654
- return i;
1655
- }
1656
- }
1657
- function At(o, t) {
1658
- for (let e = 0, n = [o]; e < n.length; e++) {
1659
- let r = n[e], i = !r.validEnd, s = [];
1660
- for (let h = 0; h < r.next.length; h++) {
1661
- let { type: l, next: a } = r.next[h];
1662
- s.push(l.name), i && !(l.isText || l.hasRequiredAttrs()) && (i = !1), n.indexOf(a) == -1 && n.push(a);
1663
- }
1664
- i && t.err("Only non-generatable nodes (" + s.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
1665
- }
1666
- }
1667
- function ht(o) {
1668
- let t = /* @__PURE__ */ Object.create(null);
1669
- for (let e in o) {
1670
- let n = o[e];
1671
- if (!n.hasDefault)
1672
- return null;
1673
- t[e] = n.default;
1674
- }
1675
- return t;
1676
- }
1677
- function lt(o, t) {
1678
- let e = /* @__PURE__ */ Object.create(null);
1679
- for (let n in o) {
1680
- let r = t && t[n];
1681
- if (r === void 0) {
1682
- let i = o[n];
1683
- if (i.hasDefault)
1684
- r = i.default;
1685
- else
1686
- throw new RangeError("No value supplied for attribute " + n);
1687
- }
1688
- e[n] = r;
1689
- }
1690
- return e;
1691
- }
1692
- function at(o, t, e, n) {
1693
- for (let r in t)
1694
- if (!(r in o))
1695
- throw new RangeError(`Unsupported attribute ${r} for ${e} of type ${r}`);
1696
- for (let r in o) {
1697
- let i = o[r];
1698
- i.validate && i.validate(t[r]);
1699
- }
1700
- }
1701
- function ct(o, t) {
1702
- let e = /* @__PURE__ */ Object.create(null);
1703
- if (t)
1704
- for (let n in t)
1705
- e[n] = new zt(o, n, t[n]);
1706
- return e;
1707
- }
1708
- class z {
1709
- /**
1710
- @internal
1711
- */
1712
- constructor(t, e, n) {
1713
- this.name = t, this.schema = e, this.spec = n, this.markSet = null, this.groups = n.group ? n.group.split(" ") : [], this.attrs = ct(t, n.attrs), this.defaultAttrs = ht(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(n.inline || t == "text"), this.isText = t == "text";
1714
- }
1715
- /**
1716
- True if this is an inline type.
1717
- */
1718
- get isInline() {
1719
- return !this.isBlock;
1720
- }
1721
- /**
1722
- True if this is a textblock type, a block that contains inline
1723
- content.
1724
- */
1725
- get isTextblock() {
1726
- return this.isBlock && this.inlineContent;
1727
- }
1728
- /**
1729
- True for node types that allow no content.
1730
- */
1731
- get isLeaf() {
1732
- return this.contentMatch == x.empty;
1733
- }
1734
- /**
1735
- True when this node is an atom, i.e. when it does not have
1736
- directly editable content.
1737
- */
1738
- get isAtom() {
1739
- return this.isLeaf || !!this.spec.atom;
1740
- }
1741
- /**
1742
- Return true when this node type is part of the given
1743
- [group](https://prosemirror.net/docs/ref/#model.NodeSpec.group).
1744
- */
1745
- isInGroup(t) {
1746
- return this.groups.indexOf(t) > -1;
1747
- }
1748
- /**
1749
- The node type's [whitespace](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option.
1750
- */
1751
- get whitespace() {
1752
- return this.spec.whitespace || (this.spec.code ? "pre" : "normal");
1753
- }
1754
- /**
1755
- Tells you whether this node type has any required attributes.
1756
- */
1757
- hasRequiredAttrs() {
1758
- for (let t in this.attrs)
1759
- if (this.attrs[t].isRequired)
1760
- return !0;
1761
- return !1;
1762
- }
1763
- /**
1764
- Indicates whether this node allows some of the same content as
1765
- the given node type.
1766
- */
1767
- compatibleContent(t) {
1768
- return this == t || this.contentMatch.compatible(t.contentMatch);
1769
- }
1770
- /**
1771
- @internal
1772
- */
1773
- computeAttrs(t) {
1774
- return !t && this.defaultAttrs ? this.defaultAttrs : lt(this.attrs, t);
1775
- }
1776
- /**
1777
- Create a `Node` of this type. The given attributes are
1778
- checked and defaulted (you can pass `null` to use the type's
1779
- defaults entirely, if no required attributes exist). `content`
1780
- may be a `Fragment`, a node, an array of nodes, or
1781
- `null`. Similarly `marks` may be `null` to default to the empty
1782
- set of marks.
1783
- */
1784
- create(t = null, e, n) {
1785
- if (this.isText)
1786
- throw new Error("NodeType.create can't construct text nodes");
1787
- return new m(this, this.computeAttrs(t), u.from(e), f.setFrom(n));
1788
- }
1789
- /**
1790
- Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
1791
- against the node type's content restrictions, and throw an error
1792
- if it doesn't match.
1793
- */
1794
- createChecked(t = null, e, n) {
1795
- return e = u.from(e), this.checkContent(e), new m(this, this.computeAttrs(t), e, f.setFrom(n));
1796
- }
1797
- /**
1798
- Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
1799
- necessary to add nodes to the start or end of the given fragment
1800
- to make it fit the node. If no fitting wrapping can be found,
1801
- return null. Note that, due to the fact that required nodes can
1802
- always be created, this will always succeed if you pass null or
1803
- `Fragment.empty` as content.
1804
- */
1805
- createAndFill(t = null, e, n) {
1806
- if (t = this.computeAttrs(t), e = u.from(e), e.size) {
1807
- let s = this.contentMatch.fillBefore(e);
1808
- if (!s)
1809
- return null;
1810
- e = s.append(e);
1811
- }
1812
- let r = this.contentMatch.matchFragment(e), i = r && r.fillBefore(u.empty, !0);
1813
- return i ? new m(this, t, e.append(i), f.setFrom(n)) : null;
1814
- }
1815
- /**
1816
- Returns true if the given fragment is valid content for this node
1817
- type.
1818
- */
1819
- validContent(t) {
1820
- let e = this.contentMatch.matchFragment(t);
1821
- if (!e || !e.validEnd)
1822
- return !1;
1823
- for (let n = 0; n < t.childCount; n++)
1824
- if (!this.allowsMarks(t.child(n).marks))
1825
- return !1;
1826
- return !0;
1827
- }
1828
- /**
1829
- Throws a RangeError if the given fragment is not valid content for this
1830
- node type.
1831
- @internal
1832
- */
1833
- checkContent(t) {
1834
- if (!this.validContent(t))
1835
- throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0, 50)}`);
1836
- }
1837
- /**
1838
- @internal
1839
- */
1840
- checkAttrs(t) {
1841
- at(this.attrs, t, "node", this.name);
1842
- }
1843
- /**
1844
- Check whether the given mark type is allowed in this node.
1845
- */
1846
- allowsMarkType(t) {
1847
- return this.markSet == null || this.markSet.indexOf(t) > -1;
1848
- }
1849
- /**
1850
- Test whether the given set of marks are allowed in this node.
1851
- */
1852
- allowsMarks(t) {
1853
- if (this.markSet == null)
1854
- return !0;
1855
- for (let e = 0; e < t.length; e++)
1856
- if (!this.allowsMarkType(t[e].type))
1857
- return !1;
1858
- return !0;
1859
- }
1860
- /**
1861
- Removes the marks that are not allowed in this node from the given set.
1862
- */
1863
- allowedMarks(t) {
1864
- if (this.markSet == null)
1865
- return t;
1866
- let e;
1867
- for (let n = 0; n < t.length; n++)
1868
- this.allowsMarkType(t[n].type) ? e && e.push(t[n]) : e || (e = t.slice(0, n));
1869
- return e ? e.length ? e : f.none : t;
1870
- }
1871
- /**
1872
- @internal
1873
- */
1874
- static compile(t, e) {
1875
- let n = /* @__PURE__ */ Object.create(null);
1876
- t.forEach((i, s) => n[i] = new z(i, e, s));
1877
- let r = e.spec.topNode || "doc";
1878
- if (!n[r])
1879
- throw new RangeError("Schema is missing its top node type ('" + r + "')");
1880
- if (!n.text)
1881
- throw new RangeError("Every schema needs a 'text' type");
1882
- for (let i in n.text.attrs)
1883
- throw new RangeError("The text node type should not have attributes");
1884
- return n;
1885
- }
1886
- }
1887
- function Nt(o, t, e) {
1888
- let n = e.split("|");
1889
- return (r) => {
1890
- let i = r === null ? "null" : typeof r;
1891
- if (n.indexOf(i) < 0)
1892
- throw new RangeError(`Expected value of type ${n} for attribute ${t} on type ${o}, got ${i}`);
1893
- };
1894
- }
1895
- class zt {
1896
- constructor(t, e, n) {
1897
- this.hasDefault = Object.prototype.hasOwnProperty.call(n, "default"), this.default = n.default, this.validate = typeof n.validate == "string" ? Nt(t, e, n.validate) : n.validate;
1898
- }
1899
- get isRequired() {
1900
- return !this.hasDefault;
1901
- }
1902
- }
1903
- class J {
1904
- /**
1905
- @internal
1906
- */
1907
- constructor(t, e, n, r) {
1908
- this.name = t, this.rank = e, this.schema = n, this.spec = r, this.attrs = ct(t, r.attrs), this.excluded = null;
1909
- let i = ht(this.attrs);
1910
- this.instance = i ? new f(this, i) : null;
1911
- }
1912
- /**
1913
- Create a mark of this type. `attrs` may be `null` or an object
1914
- containing only some of the mark's attributes. The others, if
1915
- they have defaults, will be added.
1916
- */
1917
- create(t = null) {
1918
- return !t && this.instance ? this.instance : new f(this, lt(this.attrs, t));
1919
- }
1920
- /**
1921
- @internal
1922
- */
1923
- static compile(t, e) {
1924
- let n = /* @__PURE__ */ Object.create(null), r = 0;
1925
- return t.forEach((i, s) => n[i] = new J(i, r++, e, s)), n;
1926
- }
1927
- /**
1928
- When there is a mark of this type in the given set, a new set
1929
- without it is returned. Otherwise, the input set is returned.
1930
- */
1931
- removeFromSet(t) {
1932
- for (var e = 0; e < t.length; e++)
1933
- t[e].type == this && (t = t.slice(0, e).concat(t.slice(e + 1)), e--);
1934
- return t;
1935
- }
1936
- /**
1937
- Tests whether there is a mark of this type in the given set.
1938
- */
1939
- isInSet(t) {
1940
- for (let e = 0; e < t.length; e++)
1941
- if (t[e].type == this)
1942
- return t[e];
1943
- }
1944
- /**
1945
- @internal
1946
- */
1947
- checkAttrs(t) {
1948
- at(this.attrs, t, "mark", this.name);
1949
- }
1950
- /**
1951
- Queries whether a given mark type is
1952
- [excluded](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) by this one.
1953
- */
1954
- excludes(t) {
1955
- return this.excluded.indexOf(t) > -1;
1956
- }
1957
- }
1958
- class qt {
1959
- /**
1960
- Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
1961
- */
1962
- constructor(t) {
1963
- this.linebreakReplacement = null, this.cached = /* @__PURE__ */ Object.create(null);
1964
- let e = this.spec = {};
1965
- for (let r in t)
1966
- e[r] = t[r];
1967
- e.nodes = q.from(t.nodes), e.marks = q.from(t.marks || {}), this.nodes = z.compile(this.spec.nodes, this), this.marks = J.compile(this.spec.marks, this);
1968
- let n = /* @__PURE__ */ Object.create(null);
1969
- for (let r in this.nodes) {
1970
- if (r in this.marks)
1971
- throw new RangeError(r + " can not be both a node and a mark");
1972
- let i = this.nodes[r], s = i.spec.content || "", h = i.spec.marks;
1973
- if (i.contentMatch = n[s] || (n[s] = x.parse(s, this.nodes)), i.inlineContent = i.contentMatch.inlineContent, i.spec.linebreakReplacement) {
1974
- if (this.linebreakReplacement)
1975
- throw new RangeError("Multiple linebreak nodes defined");
1976
- if (!i.isInline || !i.isLeaf)
1977
- throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
1978
- this.linebreakReplacement = i;
1979
- }
1980
- i.markSet = h == "_" ? null : h ? U(this, h.split(" ")) : h == "" || !i.inlineContent ? [] : null;
1981
- }
1982
- for (let r in this.marks) {
1983
- let i = this.marks[r], s = i.spec.excludes;
1984
- i.excluded = s == null ? [i] : s == "" ? [] : U(this, s.split(" "));
1985
- }
1986
- this.nodeFromJSON = (r) => m.fromJSON(this, r), this.markFromJSON = (r) => f.fromJSON(this, r), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
1987
- }
1988
- /**
1989
- Create a node in this schema. The `type` may be a string or a
1990
- `NodeType` instance. Attributes will be extended with defaults,
1991
- `content` may be a `Fragment`, `null`, a `Node`, or an array of
1992
- nodes.
1993
- */
1994
- node(t, e = null, n, r) {
1995
- if (typeof t == "string")
1996
- t = this.nodeType(t);
1997
- else if (t instanceof z) {
1998
- if (t.schema != this)
1999
- throw new RangeError("Node type from different schema used (" + t.name + ")");
2000
- } else throw new RangeError("Invalid node type: " + t);
2001
- return t.createChecked(e, n, r);
2002
- }
2003
- /**
2004
- Create a text node in the schema. Empty text nodes are not
2005
- allowed.
2006
- */
2007
- text(t, e) {
2008
- let n = this.nodes.text;
2009
- return new N(n, n.defaultAttrs, t, f.setFrom(e));
2010
- }
2011
- /**
2012
- Create a mark with the given type and attributes.
2013
- */
2014
- mark(t, e) {
2015
- return typeof t == "string" && (t = this.marks[t]), t.create(e);
2016
- }
2017
- /**
2018
- @internal
2019
- */
2020
- nodeType(t) {
2021
- let e = this.nodes[t];
2022
- if (!e)
2023
- throw new RangeError("Unknown node type: " + t);
2024
- return e;
2025
- }
2026
- }
2027
- function U(o, t) {
2028
- let e = [];
2029
- for (let n = 0; n < t.length; n++) {
2030
- let r = t[n], i = o.marks[r], s = i;
2031
- if (i)
2032
- e.push(i);
2033
- else
2034
- for (let h in o.marks) {
2035
- let l = o.marks[h];
2036
- (r == "_" || l.spec.group && l.spec.group.split(" ").indexOf(r) > -1) && e.push(s = l);
2037
- }
2038
- if (!s)
2039
- throw new SyntaxError("Unknown mark type: '" + t[n] + "'");
2040
- }
2041
- return e;
2042
- }
2043
- function Rt(o) {
2044
- return o.tag != null;
2045
- }
2046
- function It(o) {
2047
- return o.style != null;
2048
- }
2049
- class D {
2050
- /**
2051
- Create a parser that targets the given schema, using the given
2052
- parsing rules.
2053
- */
2054
- constructor(t, e) {
2055
- this.schema = t, this.rules = e, this.tags = [], this.styles = [];
2056
- let n = this.matchedStyles = [];
2057
- e.forEach((r) => {
2058
- if (Rt(r))
2059
- this.tags.push(r);
2060
- else if (It(r)) {
2061
- let i = /[^=]*/.exec(r.style)[0];
2062
- n.indexOf(i) < 0 && n.push(i), this.styles.push(r);
2063
- }
2064
- }), this.normalizeLists = !this.tags.some((r) => {
2065
- if (!/^(ul|ol)\b/.test(r.tag) || !r.node)
2066
- return !1;
2067
- let i = t.nodes[r.node];
2068
- return i.contentMatch.matchType(i);
2069
- });
2070
- }
2071
- /**
2072
- Parse a document from the content of a DOM node.
2073
- */
2074
- parse(t, e = {}) {
2075
- let n = new V(this, e, !1);
2076
- return n.addAll(t, f.none, e.from, e.to), n.finish();
2077
- }
2078
- /**
2079
- Parses the content of the given DOM node, like
2080
- [`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse), and takes the same set of
2081
- options. But unlike that method, which produces a whole node,
2082
- this one returns a slice that is open at the sides, meaning that
2083
- the schema constraints aren't applied to the start of nodes to
2084
- the left of the input and the end of nodes at the end.
2085
- */
2086
- parseSlice(t, e = {}) {
2087
- let n = new V(this, e, !0);
2088
- return n.addAll(t, f.none, e.from, e.to), C.maxOpen(n.finish());
2089
- }
2090
- /**
2091
- @internal
2092
- */
2093
- matchTag(t, e, n) {
2094
- for (let r = n ? this.tags.indexOf(n) + 1 : 0; r < this.tags.length; r++) {
2095
- let i = this.tags[r];
2096
- if (Dt(t, i.tag) && (i.namespace === void 0 || t.namespaceURI == i.namespace) && (!i.context || e.matchesContext(i.context))) {
2097
- if (i.getAttrs) {
2098
- let s = i.getAttrs(t);
2099
- if (s === !1)
2100
- continue;
2101
- i.attrs = s || void 0;
2102
- }
2103
- return i;
2104
- }
2105
- }
2106
- }
2107
- /**
2108
- @internal
2109
- */
2110
- matchStyle(t, e, n, r) {
2111
- for (let i = r ? this.styles.indexOf(r) + 1 : 0; i < this.styles.length; i++) {
2112
- let s = this.styles[i], h = s.style;
2113
- if (!(h.indexOf(t) != 0 || s.context && !n.matchesContext(s.context) || // Test that the style string either precisely matches the prop,
2114
- // or has an '=' sign after the prop, followed by the given
2115
- // value.
2116
- h.length > t.length && (h.charCodeAt(t.length) != 61 || h.slice(t.length + 1) != e))) {
2117
- if (s.getAttrs) {
2118
- let l = s.getAttrs(e);
2119
- if (l === !1)
2120
- continue;
2121
- s.attrs = l || void 0;
2122
- }
2123
- return s;
2124
- }
2125
- }
2126
- }
2127
- /**
2128
- @internal
2129
- */
2130
- static schemaRules(t) {
2131
- let e = [];
2132
- function n(r) {
2133
- let i = r.priority == null ? 50 : r.priority, s = 0;
2134
- for (; s < e.length; s++) {
2135
- let h = e[s];
2136
- if ((h.priority == null ? 50 : h.priority) < i)
2137
- break;
2138
- }
2139
- e.splice(s, 0, r);
2140
- }
2141
- for (let r in t.marks) {
2142
- let i = t.marks[r].spec.parseDOM;
2143
- i && i.forEach((s) => {
2144
- n(s = H(s)), s.mark || s.ignore || s.clearMark || (s.mark = r);
2145
- });
2146
- }
2147
- for (let r in t.nodes) {
2148
- let i = t.nodes[r].spec.parseDOM;
2149
- i && i.forEach((s) => {
2150
- n(s = H(s)), s.node || s.ignore || s.mark || (s.node = r);
2151
- });
2152
- }
2153
- return e;
2154
- }
2155
- /**
2156
- Construct a DOM parser using the parsing rules listed in a
2157
- schema's [node specs](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM), reordered by
2158
- [priority](https://prosemirror.net/docs/ref/#model.GenericParseRule.priority).
2159
- */
2160
- static fromSchema(t) {
2161
- return t.cached.domParser || (t.cached.domParser = new D(t, D.schemaRules(t)));
2162
- }
2163
- }
2164
- const ut = {
2165
- address: !0,
2166
- article: !0,
2167
- aside: !0,
2168
- blockquote: !0,
2169
- canvas: !0,
2170
- dd: !0,
2171
- div: !0,
2172
- dl: !0,
2173
- fieldset: !0,
2174
- figcaption: !0,
2175
- figure: !0,
2176
- footer: !0,
2177
- form: !0,
2178
- h1: !0,
2179
- h2: !0,
2180
- h3: !0,
2181
- h4: !0,
2182
- h5: !0,
2183
- h6: !0,
2184
- header: !0,
2185
- hgroup: !0,
2186
- hr: !0,
2187
- li: !0,
2188
- noscript: !0,
2189
- ol: !0,
2190
- output: !0,
2191
- p: !0,
2192
- pre: !0,
2193
- section: !0,
2194
- table: !0,
2195
- tfoot: !0,
2196
- ul: !0
2197
- }, Ft = {
2198
- head: !0,
2199
- noscript: !0,
2200
- object: !0,
2201
- script: !0,
2202
- style: !0,
2203
- title: !0
2204
- }, ft = { ol: !0, ul: !0 }, E = 1, P = 2, S = 4;
2205
- function G(o, t, e) {
2206
- return t != null ? (t ? E : 0) | (t === "full" ? P : 0) : o && o.whitespace == "pre" ? E | P : e & ~S;
2207
- }
2208
- class v {
2209
- constructor(t, e, n, r, i, s) {
2210
- this.type = t, this.attrs = e, this.marks = n, this.solid = r, this.options = s, this.content = [], this.activeMarks = f.none, this.match = i || (s & S ? null : t.contentMatch);
2211
- }
2212
- findWrapping(t) {
2213
- if (!this.match) {
2214
- if (!this.type)
2215
- return [];
2216
- let e = this.type.contentMatch.fillBefore(u.from(t));
2217
- if (e)
2218
- this.match = this.type.contentMatch.matchFragment(e);
2219
- else {
2220
- let n = this.type.contentMatch, r;
2221
- return (r = n.findWrapping(t.type)) ? (this.match = n, r) : null;
2222
- }
2223
- }
2224
- return this.match.findWrapping(t.type);
2225
- }
2226
- finish(t) {
2227
- if (!(this.options & E)) {
2228
- let n = this.content[this.content.length - 1], r;
2229
- if (n && n.isText && (r = /[ \t\r\n\u000c]+$/.exec(n.text))) {
2230
- let i = n;
2231
- n.text.length == r[0].length ? this.content.pop() : this.content[this.content.length - 1] = i.withText(i.text.slice(0, i.text.length - r[0].length));
2232
- }
2233
- }
2234
- let e = u.from(this.content);
2235
- return !t && this.match && (e = e.append(this.match.fillBefore(u.empty, !0))), this.type ? this.type.create(this.attrs, e, this.marks) : e;
2236
- }
2237
- inlineContext(t) {
2238
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !ut.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
2239
- }
2240
- }
2241
- class V {
2242
- constructor(t, e, n) {
2243
- this.parser = t, this.options = e, this.isOpen = n, this.open = 0, this.localPreserveWS = !1;
2244
- let r = e.topNode, i, s = G(null, e.preserveWhitespace, 0) | (n ? S : 0);
2245
- r ? i = new v(r.type, r.attrs, f.none, !0, e.topMatch || r.type.contentMatch, s) : n ? i = new v(null, null, f.none, !0, null, s) : i = new v(t.schema.topNodeType, null, f.none, !0, null, s), this.nodes = [i], this.find = e.findPositions, this.needsBlock = !1;
2246
- }
2247
- get top() {
2248
- return this.nodes[this.open];
2249
- }
2250
- // Add a DOM node to the content. Text is inserted as text node,
2251
- // otherwise, the node is passed to `addElement` or, if it has a
2252
- // `style` attribute, `addElementWithStyles`.
2253
- addDOM(t, e) {
2254
- t.nodeType == 3 ? this.addTextNode(t, e) : t.nodeType == 1 && this.addElement(t, e);
2255
- }
2256
- addTextNode(t, e) {
2257
- let n = t.nodeValue, r = this.top, i = r.options & P ? "full" : this.localPreserveWS || (r.options & E) > 0, { schema: s } = this.parser;
2258
- if (i === "full" || r.inlineContext(t) || /[^ \t\r\n\u000c]/.test(n)) {
2259
- if (i)
2260
- if (i === "full")
2261
- n = n.replace(/\r\n?/g, `
2262
- `);
2263
- else if (s.linebreakReplacement && /[\r\n]/.test(n) && this.top.findWrapping(s.linebreakReplacement.create())) {
2264
- let h = n.split(/\r?\n|\r/);
2265
- for (let l = 0; l < h.length; l++)
2266
- l && this.insertNode(s.linebreakReplacement.create(), e, !0), h[l] && this.insertNode(s.text(h[l]), e, !/\S/.test(h[l]));
2267
- n = "";
2268
- } else
2269
- n = n.replace(/\r?\n|\r/g, " ");
2270
- else if (n = n.replace(/[ \t\r\n\u000c]+/g, " "), /^[ \t\r\n\u000c]/.test(n) && this.open == this.nodes.length - 1) {
2271
- let h = r.content[r.content.length - 1], l = t.previousSibling;
2272
- (!h || l && l.nodeName == "BR" || h.isText && /[ \t\r\n\u000c]$/.test(h.text)) && (n = n.slice(1));
2273
- }
2274
- n && this.insertNode(s.text(n), e, !/\S/.test(n)), this.findInText(t);
2275
- } else
2276
- this.findInside(t);
2277
- }
2278
- // Try to find a handler for the given tag and use that to parse. If
2279
- // none is found, the element's content nodes are added directly.
2280
- addElement(t, e, n) {
2281
- let r = this.localPreserveWS, i = this.top;
2282
- (t.tagName == "PRE" || /pre/.test(t.style && t.style.whiteSpace)) && (this.localPreserveWS = !0);
2283
- let s = t.nodeName.toLowerCase(), h;
2284
- ft.hasOwnProperty(s) && this.parser.normalizeLists && Bt(t);
2285
- let l = this.options.ruleFromNode && this.options.ruleFromNode(t) || (h = this.parser.matchTag(t, this, n));
2286
- t: if (l ? l.ignore : Ft.hasOwnProperty(s))
2287
- this.findInside(t), this.ignoreFallback(t, e);
2288
- else if (!l || l.skip || l.closeParent) {
2289
- l && l.closeParent ? this.open = Math.max(0, this.open - 1) : l && l.skip.nodeType && (t = l.skip);
2290
- let a, c = this.needsBlock;
2291
- if (ut.hasOwnProperty(s))
2292
- i.content.length && i.content[0].isInline && this.open && (this.open--, i = this.top), a = !0, i.type || (this.needsBlock = !0);
2293
- else if (!t.firstChild) {
2294
- this.leafFallback(t, e);
2295
- break t;
2296
- }
2297
- let p = l && l.skip ? e : this.readStyles(t, e);
2298
- p && this.addAll(t, p), a && this.sync(i), this.needsBlock = c;
2299
- } else {
2300
- let a = this.readStyles(t, e);
2301
- a && this.addElementByRule(t, l, a, l.consuming === !1 ? h : void 0);
2302
- }
2303
- this.localPreserveWS = r;
2304
- }
2305
- // Called for leaf DOM nodes that would otherwise be ignored
2306
- leafFallback(t, e) {
2307
- t.nodeName == "BR" && this.top.type && this.top.type.inlineContent && this.addTextNode(t.ownerDocument.createTextNode(`
2308
- `), e);
2309
- }
2310
- // Called for ignored nodes
2311
- ignoreFallback(t, e) {
2312
- t.nodeName == "BR" && (!this.top.type || !this.top.type.inlineContent) && this.findPlace(this.parser.schema.text("-"), e, !0);
2313
- }
2314
- // Run any style parser associated with the node's styles. Either
2315
- // return an updated array of marks, or null to indicate some of the
2316
- // styles had a rule with `ignore` set.
2317
- readStyles(t, e) {
2318
- let n = t.style;
2319
- if (n && n.length)
2320
- for (let r = 0; r < this.parser.matchedStyles.length; r++) {
2321
- let i = this.parser.matchedStyles[r], s = n.getPropertyValue(i);
2322
- if (s)
2323
- for (let h = void 0; ; ) {
2324
- let l = this.parser.matchStyle(i, s, this, h);
2325
- if (!l)
2326
- break;
2327
- if (l.ignore)
2328
- return null;
2329
- if (l.clearMark ? e = e.filter((a) => !l.clearMark(a)) : e = e.concat(this.parser.schema.marks[l.mark].create(l.attrs)), l.consuming === !1)
2330
- h = l;
2331
- else
2332
- break;
2333
- }
2334
- }
2335
- return e;
2336
- }
2337
- // Look up a handler for the given node. If none are found, return
2338
- // false. Otherwise, apply it, use its return value to drive the way
2339
- // the node's content is wrapped, and return true.
2340
- addElementByRule(t, e, n, r) {
2341
- let i, s;
2342
- if (e.node)
2343
- if (s = this.parser.schema.nodes[e.node], s.isLeaf)
2344
- this.insertNode(s.create(e.attrs), n, t.nodeName == "BR") || this.leafFallback(t, n);
2345
- else {
2346
- let l = this.enter(s, e.attrs || null, n, e.preserveWhitespace);
2347
- l && (i = !0, n = l);
2348
- }
2349
- else {
2350
- let l = this.parser.schema.marks[e.mark];
2351
- n = n.concat(l.create(e.attrs));
2352
- }
2353
- let h = this.top;
2354
- if (s && s.isLeaf)
2355
- this.findInside(t);
2356
- else if (r)
2357
- this.addElement(t, n, r);
2358
- else if (e.getContent)
2359
- this.findInside(t), e.getContent(t, this.parser.schema).forEach((l) => this.insertNode(l, n, !1));
2360
- else {
2361
- let l = t;
2362
- typeof e.contentElement == "string" ? l = t.querySelector(e.contentElement) : typeof e.contentElement == "function" ? l = e.contentElement(t) : e.contentElement && (l = e.contentElement), this.findAround(t, l, !0), this.addAll(l, n), this.findAround(t, l, !1);
2363
- }
2364
- i && this.sync(h) && this.open--;
2365
- }
2366
- // Add all child nodes between `startIndex` and `endIndex` (or the
2367
- // whole node, if not given). If `sync` is passed, use it to
2368
- // synchronize after every block element.
2369
- addAll(t, e, n, r) {
2370
- let i = n || 0;
2371
- for (let s = n ? t.childNodes[n] : t.firstChild, h = r == null ? null : t.childNodes[r]; s != h; s = s.nextSibling, ++i)
2372
- this.findAtPoint(t, i), this.addDOM(s, e);
2373
- this.findAtPoint(t, i);
2374
- }
2375
- // Try to find a way to fit the given node type into the current
2376
- // context. May add intermediate wrappers and/or leave non-solid
2377
- // nodes that we're in.
2378
- findPlace(t, e, n) {
2379
- let r, i;
2380
- for (let s = this.open, h = 0; s >= 0; s--) {
2381
- let l = this.nodes[s], a = l.findWrapping(t);
2382
- if (a && (!r || r.length > a.length + h) && (r = a, i = l, !a.length))
2383
- break;
2384
- if (l.solid) {
2385
- if (n)
2386
- break;
2387
- h += 2;
2388
- }
2389
- }
2390
- if (!r)
2391
- return null;
2392
- this.sync(i);
2393
- for (let s = 0; s < r.length; s++)
2394
- e = this.enterInner(r[s], null, e, !1);
2395
- return e;
2396
- }
2397
- // Try to insert the given node, adjusting the context when needed.
2398
- insertNode(t, e, n) {
2399
- if (t.isInline && this.needsBlock && !this.top.type) {
2400
- let i = this.textblockFromContext();
2401
- i && (e = this.enterInner(i, null, e));
2402
- }
2403
- let r = this.findPlace(t, e, n);
2404
- if (r) {
2405
- this.closeExtra();
2406
- let i = this.top;
2407
- i.match && (i.match = i.match.matchType(t.type));
2408
- let s = f.none;
2409
- for (let h of r.concat(t.marks))
2410
- (i.type ? i.type.allowsMarkType(h.type) : K(h.type, t.type)) && (s = h.addToSet(s));
2411
- return i.content.push(t.mark(s)), !0;
2412
- }
2413
- return !1;
2414
- }
2415
- // Try to start a node of the given type, adjusting the context when
2416
- // necessary.
2417
- enter(t, e, n, r) {
2418
- let i = this.findPlace(t.create(e), n, !1);
2419
- return i && (i = this.enterInner(t, e, n, !0, r)), i;
2420
- }
2421
- // Open a node of the given type
2422
- enterInner(t, e, n, r = !1, i) {
2423
- this.closeExtra();
2424
- let s = this.top;
2425
- s.match = s.match && s.match.matchType(t);
2426
- let h = G(t, i, s.options);
2427
- s.options & S && s.content.length == 0 && (h |= S);
2428
- let l = f.none;
2429
- return n = n.filter((a) => (s.type ? s.type.allowsMarkType(a.type) : K(a.type, t)) ? (l = a.addToSet(l), !1) : !0), this.nodes.push(new v(t, e, l, r, null, h)), this.open++, n;
2430
- }
2431
- // Make sure all nodes above this.open are finished and added to
2432
- // their parents
2433
- closeExtra(t = !1) {
2434
- let e = this.nodes.length - 1;
2435
- if (e > this.open) {
2436
- for (; e > this.open; e--)
2437
- this.nodes[e - 1].content.push(this.nodes[e].finish(t));
2438
- this.nodes.length = this.open + 1;
2439
- }
2440
- }
2441
- finish() {
2442
- return this.open = 0, this.closeExtra(this.isOpen), this.nodes[0].finish(!!(this.isOpen || this.options.topOpen));
2443
- }
2444
- sync(t) {
2445
- for (let e = this.open; e >= 0; e--) {
2446
- if (this.nodes[e] == t)
2447
- return this.open = e, !0;
2448
- this.localPreserveWS && (this.nodes[e].options |= E);
2449
- }
2450
- return !1;
2451
- }
2452
- get currentPos() {
2453
- this.closeExtra();
2454
- let t = 0;
2455
- for (let e = this.open; e >= 0; e--) {
2456
- let n = this.nodes[e].content;
2457
- for (let r = n.length - 1; r >= 0; r--)
2458
- t += n[r].nodeSize;
2459
- e && t++;
2460
- }
2461
- return t;
2462
- }
2463
- findAtPoint(t, e) {
2464
- if (this.find)
2465
- for (let n = 0; n < this.find.length; n++)
2466
- this.find[n].node == t && this.find[n].offset == e && (this.find[n].pos = this.currentPos);
2467
- }
2468
- findInside(t) {
2469
- if (this.find)
2470
- for (let e = 0; e < this.find.length; e++)
2471
- this.find[e].pos == null && t.nodeType == 1 && t.contains(this.find[e].node) && (this.find[e].pos = this.currentPos);
2472
- }
2473
- findAround(t, e, n) {
2474
- if (t != e && this.find)
2475
- for (let r = 0; r < this.find.length; r++)
2476
- this.find[r].pos == null && t.nodeType == 1 && t.contains(this.find[r].node) && e.compareDocumentPosition(this.find[r].node) & (n ? 2 : 4) && (this.find[r].pos = this.currentPos);
2477
- }
2478
- findInText(t) {
2479
- if (this.find)
2480
- for (let e = 0; e < this.find.length; e++)
2481
- this.find[e].node == t && (this.find[e].pos = this.currentPos - (t.nodeValue.length - this.find[e].offset));
2482
- }
2483
- // Determines whether the given context string matches this context.
2484
- matchesContext(t) {
2485
- if (t.indexOf("|") > -1)
2486
- return t.split(/\s*\|\s*/).some(this.matchesContext, this);
2487
- let e = t.split("/"), n = this.options.context, r = !this.isOpen && (!n || n.parent.type == this.nodes[0].type), i = -(n ? n.depth + 1 : 0) + (r ? 0 : 1), s = (h, l) => {
2488
- for (; h >= 0; h--) {
2489
- let a = e[h];
2490
- if (a == "") {
2491
- if (h == e.length - 1 || h == 0)
2492
- continue;
2493
- for (; l >= i; l--)
2494
- if (s(h - 1, l))
2495
- return !0;
2496
- return !1;
2497
- } else {
2498
- let c = l > 0 || l == 0 && r ? this.nodes[l].type : n && l >= i ? n.node(l - i).type : null;
2499
- if (!c || c.name != a && !c.isInGroup(a))
2500
- return !1;
2501
- l--;
2502
- }
2503
- }
2504
- return !0;
2505
- };
2506
- return s(e.length - 1, this.open);
2507
- }
2508
- textblockFromContext() {
2509
- let t = this.options.context;
2510
- if (t)
2511
- for (let e = t.depth; e >= 0; e--) {
2512
- let n = t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;
2513
- if (n && n.isTextblock && n.defaultAttrs)
2514
- return n;
2515
- }
2516
- for (let e in this.parser.schema.nodes) {
2517
- let n = this.parser.schema.nodes[e];
2518
- if (n.isTextblock && n.defaultAttrs)
2519
- return n;
2520
- }
2521
- }
2522
- }
2523
- function Bt(o) {
2524
- for (let t = o.firstChild, e = null; t; t = t.nextSibling) {
2525
- let n = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
2526
- n && ft.hasOwnProperty(n) && e ? (e.appendChild(t), t = e) : n == "li" ? e = t : n && (e = null);
2527
- }
2528
- }
2529
- function Dt(o, t) {
2530
- return (o.matches || o.msMatchesSelector || o.webkitMatchesSelector || o.mozMatchesSelector).call(o, t);
2531
- }
2532
- function H(o) {
2533
- let t = {};
2534
- for (let e in o)
2535
- t[e] = o[e];
2536
- return t;
2537
- }
2538
- function K(o, t) {
2539
- let e = t.schema.nodes;
2540
- for (let n in e) {
2541
- let r = e[n];
2542
- if (!r.allowsMarkType(o))
2543
- continue;
2544
- let i = [], s = (h) => {
2545
- i.push(h);
2546
- for (let l = 0; l < h.edgeCount; l++) {
2547
- let { type: a, next: c } = h.edge(l);
2548
- if (a == t || i.indexOf(c) < 0 && s(c))
2549
- return !0;
2550
- }
2551
- };
2552
- if (s(r.contentMatch))
2553
- return !0;
2554
- }
2555
- }
2556
- class pt {
2557
- /**
2558
- Create a serializer. `nodes` should map node names to functions
2559
- that take a node and return a description of the corresponding
2560
- DOM. `marks` does the same for mark names, but also gets an
2561
- argument that tells it whether the mark's content is block or
2562
- inline content (for typical use, it'll always be inline). A mark
2563
- serializer may be `null` to indicate that marks of that type
2564
- should not be serialized.
2565
- */
2566
- constructor(t, e) {
2567
- this.nodes = t, this.marks = e;
2568
- }
2569
- /**
2570
- Serialize the content of this fragment to a DOM fragment. When
2571
- not in the browser, the `document` option, containing a DOM
2572
- document, should be passed so that the serializer can create
2573
- nodes.
2574
- */
2575
- serializeFragment(t, e = {}, n) {
2576
- n || (n = I(e).createDocumentFragment());
2577
- let r = n, i = [];
2578
- return t.forEach((s) => {
2579
- if (i.length || s.marks.length) {
2580
- let h = 0, l = 0;
2581
- for (; h < i.length && l < s.marks.length; ) {
2582
- let a = s.marks[l];
2583
- if (!this.marks[a.type.name]) {
2584
- l++;
2585
- continue;
2586
- }
2587
- if (!a.eq(i[h][0]) || a.type.spec.spanning === !1)
2588
- break;
2589
- h++, l++;
2590
- }
2591
- for (; h < i.length; )
2592
- r = i.pop()[1];
2593
- for (; l < s.marks.length; ) {
2594
- let a = s.marks[l++], c = this.serializeMark(a, s.isInline, e);
2595
- c && (i.push([a, r]), r.appendChild(c.dom), r = c.contentDOM || c.dom);
2596
- }
2597
- }
2598
- r.appendChild(this.serializeNodeInner(s, e));
2599
- }), n;
2600
- }
2601
- /**
2602
- @internal
2603
- */
2604
- serializeNodeInner(t, e) {
2605
- let { dom: n, contentDOM: r } = T(I(e), this.nodes[t.type.name](t), null, t.attrs);
2606
- if (r) {
2607
- if (t.isLeaf)
2608
- throw new RangeError("Content hole not allowed in a leaf node spec");
2609
- this.serializeFragment(t.content, e, r);
2610
- }
2611
- return n;
2612
- }
2613
- /**
2614
- Serialize this node to a DOM node. This can be useful when you
2615
- need to serialize a part of a document, as opposed to the whole
2616
- document. To serialize a whole document, use
2617
- [`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment) on
2618
- its [content](https://prosemirror.net/docs/ref/#model.Node.content).
2619
- */
2620
- serializeNode(t, e = {}) {
2621
- let n = this.serializeNodeInner(t, e);
2622
- for (let r = t.marks.length - 1; r >= 0; r--) {
2623
- let i = this.serializeMark(t.marks[r], t.isInline, e);
2624
- i && ((i.contentDOM || i.dom).appendChild(n), n = i.dom);
2625
- }
2626
- return n;
2627
- }
2628
- /**
2629
- @internal
2630
- */
2631
- serializeMark(t, e, n = {}) {
2632
- let r = this.marks[t.type.name];
2633
- return r && T(I(n), r(t, e), null, t.attrs);
2634
- }
2635
- static renderSpec(t, e, n = null, r) {
2636
- return T(t, e, n, r);
2637
- }
2638
- /**
2639
- Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
2640
- properties in a schema's node and mark specs.
2641
- */
2642
- static fromSchema(t) {
2643
- return t.cached.domSerializer || (t.cached.domSerializer = new pt(this.nodesFromSchema(t), this.marksFromSchema(t)));
2644
- }
2645
- /**
2646
- Gather the serializers in a schema's node specs into an object.
2647
- This can be useful as a base to build a custom serializer from.
2648
- */
2649
- static nodesFromSchema(t) {
2650
- let e = Q(t.nodes);
2651
- return e.text || (e.text = (n) => n.text), e;
2652
- }
2653
- /**
2654
- Gather the serializers in a schema's mark specs into an object.
2655
- */
2656
- static marksFromSchema(t) {
2657
- return Q(t.marks);
2658
- }
2659
- }
2660
- function Q(o) {
2661
- let t = {};
2662
- for (let e in o) {
2663
- let n = o[e].spec.toDOM;
2664
- n && (t[e] = n);
2665
- }
2666
- return t;
2667
- }
2668
- function I(o) {
2669
- return o.document || window.document;
2670
- }
2671
- const X = /* @__PURE__ */ new WeakMap();
2672
- function Pt(o) {
2673
- let t = X.get(o);
2674
- return t === void 0 && X.set(o, t = Jt(o)), t;
2675
- }
2676
- function Jt(o) {
2677
- let t = null;
2678
- function e(n) {
2679
- if (n && typeof n == "object")
2680
- if (Array.isArray(n))
2681
- if (typeof n[0] == "string")
2682
- t || (t = []), t.push(n);
2683
- else
2684
- for (let r = 0; r < n.length; r++)
2685
- e(n[r]);
2686
- else
2687
- for (let r in n)
2688
- e(n[r]);
2689
- }
2690
- return e(o), t;
2691
- }
2692
- function T(o, t, e, n) {
2693
- if (typeof t == "string")
2694
- return { dom: o.createTextNode(t) };
2695
- if (t.nodeType != null)
2696
- return { dom: t };
2697
- if (t.dom && t.dom.nodeType != null)
2698
- return t;
2699
- let r = t[0], i;
2700
- if (typeof r != "string")
2701
- throw new RangeError("Invalid array passed to renderSpec");
2702
- if (n && (i = Pt(n)) && i.indexOf(t) > -1)
2703
- throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
2704
- let s = r.indexOf(" ");
2705
- s > 0 && (e = r.slice(0, s), r = r.slice(s + 1));
2706
- let h, l = e ? o.createElementNS(e, r) : o.createElement(r), a = t[1], c = 1;
2707
- if (a && typeof a == "object" && a.nodeType == null && !Array.isArray(a)) {
2708
- c = 2;
2709
- for (let p in a)
2710
- if (a[p] != null) {
2711
- let d = p.indexOf(" ");
2712
- d > 0 ? l.setAttributeNS(p.slice(0, d), p.slice(d + 1), a[p]) : p == "style" && l.style ? l.style.cssText = a[p] : l.setAttribute(p, a[p]);
2713
- }
2714
- }
2715
- for (let p = c; p < t.length; p++) {
2716
- let d = t[p];
2717
- if (d === 0) {
2718
- if (p < t.length - 1 || p > c)
2719
- throw new RangeError("Content hole must be the only child of its parent node");
2720
- return { dom: l, contentDOM: l };
2721
- } else {
2722
- let { dom: dt, contentDOM: $ } = T(o, d, e, n);
2723
- if (l.appendChild(dt), $) {
2724
- if (h)
2725
- throw new RangeError("Multiple content holes");
2726
- h = $;
2727
- }
2728
- }
2729
- }
2730
- return { dom: l, contentDOM: h };
2731
- }
2732
- export {
2733
- x as ContentMatch,
2734
- D as DOMParser,
2735
- pt as DOMSerializer,
2736
- u as Fragment,
2737
- f as Mark,
2738
- J as MarkType,
2739
- m as Node,
2740
- kt as NodeRange,
2741
- z as NodeType,
2742
- F as ReplaceError,
2743
- b as ResolvedPos,
2744
- qt as Schema,
2745
- C as Slice
2746
- };