tuikit-atomicx-vue3 3.4.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/dist/baseComp/Modal/Modal.js +431 -23
  3. package/dist/chat/index.d.ts +18 -18
  4. package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
  5. package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
  6. package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
  7. package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
  8. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
  9. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
  10. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
  11. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
  12. package/dist/components/AudioSettingPanel/index.js +81 -73
  13. package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
  14. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
  15. package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
  16. package/dist/components/BarrageInput/MessageInputState.js +82 -0
  17. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  18. package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
  19. package/dist/components/BarrageInput/TextEditor/index.js +7 -7
  20. package/dist/components/BarrageInput/type.d.ts +17 -0
  21. package/dist/components/BarrageInput/type.js +4 -0
  22. package/dist/components/BarrageInput/utils.d.ts +30 -0
  23. package/dist/components/BarrageInput/utils.js +41 -0
  24. package/dist/components/BarrageList/BarrageList.js +80 -110
  25. package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
  26. package/dist/components/BarrageList/BarrageListH5.js +95 -122
  27. package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
  28. package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
  29. package/dist/components/BarrageList/BarrageListState.js +106 -0
  30. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
  31. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
  32. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
  33. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
  34. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
  35. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
  36. package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
  37. package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
  38. package/dist/components/BarrageList/index.d.ts +0 -36
  39. package/dist/components/CameraButton/index.js +18 -19
  40. package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
  41. package/dist/components/CoHostPanel/BattlePanel.js +25 -25
  42. package/dist/components/CoHostPanel/CoHostPanel.js +60 -55
  43. package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
  44. package/dist/components/CoHostPanel/ConnectionPanel.js +129 -120
  45. package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
  46. package/dist/components/CoHostPanel/constants.d.ts +3 -0
  47. package/dist/components/CoHostPanel/constants.js +6 -0
  48. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
  49. package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
  50. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
  51. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
  52. package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
  53. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
  54. package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
  55. package/dist/components/LiveList/LiveList.js +23 -23
  56. package/dist/components/LiveList/LiveListH5.js +38 -38
  57. package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
  58. package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
  59. package/dist/components/LiveScenePanel/index.js +4 -4
  60. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.js +58 -58
  61. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.js +56 -49
  62. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.js +6 -6
  63. package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.js +1 -1
  64. package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.js +46 -43
  65. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.js +23 -23
  66. package/dist/components/LiveView/PlayerControl/MultiResolution.js +79 -0
  67. package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +8 -0
  68. package/dist/components/LiveView/PlayerControl/PlayerControl.js +172 -0
  69. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +263 -0
  70. package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +6 -0
  71. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +131 -0
  72. package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +3 -2
  73. package/dist/components/{LiveCoreView → LiveView}/i18n/en-US/index.js +4 -3
  74. package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +3 -2
  75. package/dist/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.js +4 -3
  76. package/dist/components/LiveView/index.d.ts +79 -0
  77. package/dist/components/{LiveCoreView → LiveView}/index.js +44 -42
  78. package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
  79. package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
  80. package/dist/components/MessageList/index.d.ts +18 -18
  81. package/dist/components/MicButton/index.js +11 -11
  82. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
  83. package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
  84. package/dist/components/StreamMixer/index.js +6 -6
  85. package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
  86. package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
  87. package/dist/components/StreamView/Layout/GridLayout.js +5 -5
  88. package/dist/components/StreamView/index.js +25 -33
  89. package/dist/components/StreamView/manager/mediaManager.js +54 -60
  90. package/dist/components/VideoSetting/CameraSelect.js +8 -8
  91. package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
  92. package/dist/components/VideoSetting/VideoPreview.js +9 -9
  93. package/dist/components/VideoSetting/VideoProfile.js +6 -6
  94. package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
  95. package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
  96. package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
  97. package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
  98. package/dist/hooks/useRoomEngine.js +6 -6
  99. package/dist/{index-D88ja_7_.js → index-BfIEeWMg.js} +1767 -1757
  100. package/dist/{index-D-KJvDvy.js → index-DTi1fL-x.js} +460 -457
  101. package/dist/index.js +177 -157
  102. package/dist/report/MetricsKey.d.ts +16 -0
  103. package/dist/report/MetricsKey.js +4 -0
  104. package/dist/report/dataReport.d.ts +12 -0
  105. package/dist/report/dataReport.js +45 -0
  106. package/dist/report/index.d.ts +4 -0
  107. package/dist/report/index.js +6 -0
  108. package/dist/rtc/index.d.ts +6 -81
  109. package/dist/rtc/index.js +53 -52
  110. package/dist/states/BarrageState/BarrageState.d.ts +74 -0
  111. package/dist/states/BarrageState/BarrageState.js +80 -0
  112. package/dist/states/BarrageState/index.d.ts +1 -0
  113. package/dist/states/BarrageState/index.js +5 -0
  114. package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
  115. package/dist/states/BattleState/BattleState.js +203 -0
  116. package/dist/states/BattleState/index.d.ts +1 -0
  117. package/dist/states/BattleState/index.js +4 -0
  118. package/dist/states/CoGuestState.d.ts +24 -94
  119. package/dist/states/CoGuestState.js +297 -189
  120. package/dist/states/CoHostState/CoHostState.d.ts +2 -2
  121. package/dist/states/CoHostState/CoHostState.js +135 -131
  122. package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
  123. package/dist/states/DeviceState/DeviceState.js +314 -0
  124. package/dist/states/DeviceState/index.d.ts +1 -0
  125. package/dist/states/DeviceState/index.js +4 -0
  126. package/dist/states/LiveAudienceState.d.ts +3 -1
  127. package/dist/states/LiveAudienceState.js +106 -63
  128. package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
  129. package/dist/states/LiveListState/LiveListState.js +285 -0
  130. package/dist/states/LiveListState/index.d.ts +1 -0
  131. package/dist/states/LiveListState/index.js +4 -0
  132. package/dist/states/LiveMonitorState/api/http.js +147 -129
  133. package/dist/states/LiveMonitorState/index.js +67 -62
  134. package/dist/states/LiveSeatState/index.d.ts +46 -11
  135. package/dist/states/LiveSeatState/index.js +34 -15
  136. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  137. package/dist/states/LiveSeatState/seatEventManager.js +63 -42
  138. package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
  139. package/dist/states/LiveSeatState/seatManager.js +131 -29
  140. package/dist/states/LiveSeatState/store.d.ts +5 -5
  141. package/dist/states/LiveSeatState/store.js +12 -10
  142. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  143. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  144. package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
  145. package/dist/states/LoginState.js +39 -34
  146. package/dist/states/SeatStore.js +82 -83
  147. package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
  148. package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
  149. package/dist/states/VideoMixerState/index.d.ts +1 -0
  150. package/dist/states/VideoMixerState/index.js +4 -0
  151. package/dist/styles/index.css +1 -1
  152. package/dist/types/audience.d.ts +21 -0
  153. package/dist/types/audience.js +4 -1
  154. package/dist/types/battle.d.ts +75 -3
  155. package/dist/types/battle.js +5 -1
  156. package/dist/types/coGuest.d.ts +72 -5
  157. package/dist/types/coGuest.js +4 -2
  158. package/dist/types/device.d.ts +38 -17
  159. package/dist/types/device.js +10 -8
  160. package/dist/types/index.d.ts +2 -2
  161. package/dist/types/index.js +96 -80
  162. package/dist/types/live.d.ts +36 -21
  163. package/dist/types/live.js +6 -4
  164. package/dist/types/seat.d.ts +23 -4
  165. package/dist/types/seat.js +7 -1
  166. package/dist/utils/eventCenter.d.ts +88 -0
  167. package/dist/utils/eventCenter.js +161 -0
  168. package/package.json +2 -2
  169. package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
  170. package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
  171. package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
  172. package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
  173. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
  174. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
  175. package/src/components/AudioSettingPanel/index.vue +4 -2
  176. package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
  177. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  178. package/src/components/BarrageInput/MessageInputState.ts +160 -0
  179. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  180. package/src/components/BarrageInput/type.ts +26 -0
  181. package/src/components/BarrageInput/utils.ts +45 -0
  182. package/src/components/BarrageList/BarrageList.vue +61 -117
  183. package/src/components/BarrageList/BarrageListH5.vue +75 -159
  184. package/src/components/BarrageList/BarrageListState.ts +223 -0
  185. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
  186. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
  187. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
  188. package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
  189. package/src/components/CameraButton/index.vue +0 -1
  190. package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
  191. package/src/components/CoHostPanel/BattlePanel.vue +4 -7
  192. package/src/components/CoHostPanel/CoHostPanel.vue +11 -3
  193. package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
  194. package/src/components/CoHostPanel/ConnectionPanel.vue +41 -37
  195. package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
  196. package/src/components/CoHostPanel/constants.ts +3 -0
  197. package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
  198. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
  199. package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
  200. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
  201. package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
  202. package/src/components/LiveList/LiveList.vue +5 -5
  203. package/src/components/LiveList/LiveListH5.vue +6 -6
  204. package/src/components/LiveScenePanel/index.vue +2 -2
  205. package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue +10 -15
  206. package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue +30 -31
  207. package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +5 -3
  208. package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +1 -1
  209. package/src/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue +9 -3
  210. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +10 -2
  211. package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +233 -259
  212. package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +64 -0
  213. package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +3 -2
  214. package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +3 -2
  215. package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
  216. package/src/components/{LiveCoreView → LiveView}/index.vue +3 -3
  217. package/src/components/MicButton/index.vue +3 -3
  218. package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
  219. package/src/components/StreamMixer/index.vue +1 -1
  220. package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
  221. package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
  222. package/src/components/StreamView/index.vue +28 -14
  223. package/src/components/StreamView/manager/mediaManager.ts +38 -42
  224. package/src/components/VideoSetting/CameraSelect.vue +1 -2
  225. package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
  226. package/src/components/VideoSetting/VideoPreview.vue +1 -2
  227. package/src/components/VideoSetting/VideoProfile.vue +1 -1
  228. package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
  229. package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
  230. package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
  231. package/src/hooks/useRoomEngine.ts +1 -1
  232. package/src/report/MetricsKey.ts +16 -0
  233. package/src/report/dataReport.ts +55 -0
  234. package/src/report/index.ts +7 -0
  235. package/src/rtc/index.ts +8 -10
  236. package/src/types/audience.ts +27 -1
  237. package/src/types/battle.ts +87 -4
  238. package/src/types/coGuest.ts +87 -5
  239. package/src/types/device.ts +41 -16
  240. package/src/types/index.ts +2 -2
  241. package/src/types/live.ts +41 -22
  242. package/src/types/seat.ts +28 -4
  243. package/src/utils/eventCenter.ts +249 -0
  244. package/dist/DialogPortal-CvJcEAsn.js +0 -417
  245. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
  246. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
  247. package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
  248. package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
  249. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
  250. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
  251. package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
  252. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
  253. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
  254. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
  255. package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
  256. package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
  257. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
  258. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
  259. package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
  260. package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
  261. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
  262. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
  263. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
  264. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
  265. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
  266. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
  267. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
  268. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +0 -35
  269. package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
  270. package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
  271. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
  272. package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
  273. package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
  274. package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
  275. package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
  276. package/dist/components/BarrageList/MessageForward/index.js +0 -4
  277. package/dist/components/LiveCoreView/PlayerControl/MultiResolution.js +0 -78
  278. package/dist/components/LiveCoreView/PlayerControl/MultiResolution.vue.d.ts +0 -2
  279. package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +0 -168
  280. package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +0 -267
  281. package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +0 -99
  282. package/dist/components/LiveCoreView/index.d.ts +0 -4
  283. package/dist/components/StreamView/Layout/MixLayout.js +0 -89
  284. package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
  285. package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
  286. package/dist/states/BarrageListState/BarrageListState.js +0 -122
  287. package/dist/states/BarrageListState/index.d.ts +0 -1
  288. package/dist/states/BarrageListState/index.js +0 -4
  289. package/dist/states/BattleState.js +0 -117
  290. package/dist/states/DeviceState.js +0 -296
  291. package/dist/states/LiveState/index.js +0 -254
  292. package/dist/states/VideoMixerState.js +0 -260
  293. package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
  294. package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
  295. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
  296. package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
  297. package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
  298. package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
  299. package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
  300. package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
  301. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
  302. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
  303. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
  304. package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
  305. package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
  306. package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
  307. package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
  308. package/src/components/BarrageList/MessageForward/index.ts +0 -3
  309. package/src/components/StreamView/Layout/MixLayout.vue +0 -144
  310. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue.d.ts +0 -0
  311. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts +0 -0
  312. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue.d.ts +0 -0
  313. /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +0 -0
  314. /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
  315. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
  316. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
  317. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +0 -0
  318. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
  319. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.js +0 -0
  320. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
  321. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.js +0 -0
  322. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
  323. /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.js +0 -0
  324. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
  325. /package/dist/components/{LiveCoreView → LiveView}/i18n/index.js +0 -0
  326. /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
  327. /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue +0 -0
  328. /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue +0 -0
  329. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
  330. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
  331. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
  332. /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
  333. /package/src/components/{LiveCoreView → LiveView}/assets/img/defeat.png +0 -0
  334. /package/src/components/{LiveCoreView → LiveView}/assets/img/draw.png +0 -0
  335. /package/src/components/{LiveCoreView → LiveView}/assets/img/victory.png +0 -0
  336. /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleOrdinaryBadge.svg +0 -0
  337. /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleTopBadge.svg +0 -0
  338. /package/src/components/{LiveCoreView → LiveView}/assets/svg/blueBkg.svg +0 -0
  339. /package/src/components/{LiveCoreView → LiveView}/assets/svg/redBkg.svg +0 -0
  340. /package/src/components/{LiveCoreView → LiveView}/assets/svg/s.svg +0 -0
  341. /package/src/components/{LiveCoreView → LiveView}/assets/svg/v.svg +0 -0
  342. /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
@@ -1,6 +1,6 @@
1
- import { N as Jr, n as Zr, m as Qr, E as cn, P as X, a as te, i as ei, D as or, b as sr, f as ti, c as un, d as He, S as le, w as ni, e as ri, F as Te, g as dn, T as V, h as $t, s as ii, j as Cn, k as oi, l as si, o as ai, p as li, q as ci, A as ui, r as di, t as pi, u as fi, v as hi, x as mi, y as vi, z as gi, B as ar, C as yi, G as bi, H as wi, I as xi, J as ki, K as Mi, L as Oi, M as Ti, O as Ai, Q as qt, R as Ei, U as Ci, V as Si, W as Ii, X as Li, Y as Pi, Z as Di, _ as lr, $ as $i, a0 as Ri, a1 as Bi } from "./index-D88ja_7_.js";
2
- import { markRaw as Ni, customRef as Hi, defineComponent as ht, ref as pn, onMounted as cr, onBeforeUnmount as fn, h as mt, getCurrentInstance as ji, watchEffect as _i, nextTick as Fi, unref as Vi } from "vue";
3
- const Wi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, tc = Jr.create({
1
+ import { N as Zr, n as Qr, m as ei, E as cn, P as X, a as te, i as ti, D as or, b as sr, f as ni, c as un, d as He, S as le, w as ri, e as ii, F as Te, g as dn, T as V, h as $t, s as oi, j as Cn, k as si, l as ai, o as li, p as ci, q as ui, A as di, r as pi, t as fi, u as hi, v as mi, x as vi, y as gi, z as yi, B as ar, C as bi, G as wi, H as xi, I as ki, J as Mi, K as Oi, L as Ti, M as Ai, O as Ei, Q as qt, R as Ci, U as Si, V as Ii, W as Li, X as Pi, Y as Di, Z as $i, _ as lr, $ as Ri, a0 as Bi, a1 as Ni } from "./index-BfIEeWMg.js";
2
+ import { markRaw as Hi, customRef as ji, defineComponent as ht, ref as pn, onMounted as cr, onBeforeUnmount as fn, h as mt, getCurrentInstance as _i, watchEffect as Fi, nextTick as Vi, unref as Wi } from "vue";
3
+ const zi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, nc = Zr.create({
4
4
  name: "image",
5
5
  addOptions() {
6
6
  return {
@@ -37,7 +37,7 @@ const Wi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, tc = Jr.c
37
37
  ];
38
38
  },
39
39
  renderHTML({ HTMLAttributes: t }) {
40
- return ["img", Qr(this.options.HTMLAttributes, t)];
40
+ return ["img", ei(this.options.HTMLAttributes, t)];
41
41
  },
42
42
  addCommands() {
43
43
  return {
@@ -49,8 +49,8 @@ const Wi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, tc = Jr.c
49
49
  },
50
50
  addInputRules() {
51
51
  return [
52
- Zr({
53
- find: Wi,
52
+ Qr({
53
+ find: zi,
54
54
  type: this.type,
55
55
  getAttributes: (t) => {
56
56
  const [, , e, n, r] = t;
@@ -59,7 +59,7 @@ const Wi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, tc = Jr.c
59
59
  })
60
60
  ];
61
61
  }
62
- }), nc = cn.create({
62
+ }), rc = cn.create({
63
63
  name: "placeholder",
64
64
  addOptions() {
65
65
  return {
@@ -82,7 +82,7 @@ const Wi = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, tc = Jr.c
82
82
  return null;
83
83
  const o = this.editor.isEmpty;
84
84
  return t.descendants((s, a) => {
85
- const l = r >= a && r <= a + s.nodeSize, c = !s.isLeaf && ei(s);
85
+ const l = r >= a && r <= a + s.nodeSize, c = !s.isLeaf && ti(s);
86
86
  if ((l || !this.options.showOnlyCurrent) && c) {
87
87
  const u = [this.options.emptyNodeClass];
88
88
  o && u.push(this.options.emptyEditorClass);
@@ -130,7 +130,7 @@ function ur(t) {
130
130
  }
131
131
  };
132
132
  }
133
- class zi {
133
+ class Ki {
134
134
  constructor(e) {
135
135
  this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
136
136
  }
@@ -196,7 +196,7 @@ function F(t, e, n) {
196
196
  parent: t.parent ? F(t.parent, e, n) : null
197
197
  }) : t.config[e];
198
198
  }
199
- function Ki(t) {
199
+ function Ui(t) {
200
200
  const e = t.filter((i) => i.type === "extension"), n = t.filter((i) => i.type === "node"), r = t.filter((i) => i.type === "mark");
201
201
  return {
202
202
  baseExtensions: e,
@@ -237,13 +237,13 @@ function G(...t) {
237
237
  }), r;
238
238
  }, {});
239
239
  }
240
- function Ui(t) {
240
+ function qi(t) {
241
241
  return typeof t == "function";
242
242
  }
243
243
  function B(t, e = void 0, ...n) {
244
- return Ui(t) ? e ? t.bind(e)(...n) : t(...n) : t;
244
+ return qi(t) ? e ? t.bind(e)(...n) : t(...n) : t;
245
245
  }
246
- function qi(t) {
246
+ function Gi(t) {
247
247
  return Object.prototype.toString.call(t) === "[object RegExp]";
248
248
  }
249
249
  class Vt {
@@ -251,11 +251,11 @@ class Vt {
251
251
  this.find = e.find, this.handler = e.handler;
252
252
  }
253
253
  }
254
- function Gi(t) {
254
+ function Yi(t) {
255
255
  return Object.prototype.toString.call(t).slice(8, -1);
256
256
  }
257
257
  function St(t) {
258
- return Gi(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
258
+ return Yi(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
259
259
  }
260
260
  function Wt(t, e) {
261
261
  const n = { ...t };
@@ -309,7 +309,7 @@ class Be {
309
309
  return !1;
310
310
  }
311
311
  }
312
- class Yi {
312
+ class Xi {
313
313
  constructor(e) {
314
314
  this.find = e.find, this.handler = e.handler;
315
315
  }
@@ -349,7 +349,7 @@ class K {
349
349
  })), n;
350
350
  }
351
351
  }
352
- function Xi(t, e, n) {
352
+ function Ji(t, e, n) {
353
353
  const { from: r, to: i } = e, { blockSeparator: o = `
354
354
 
355
355
  `, textSerializers: s = {} } = n || {};
@@ -369,7 +369,7 @@ function Xi(t, e, n) {
369
369
  l.isText && (a += (f = l == null ? void 0 : l.text) === null || f === void 0 ? void 0 : f.slice(Math.max(r, c) - c, i - c));
370
370
  }), a;
371
371
  }
372
- function Ji(t) {
372
+ function Zi(t) {
373
373
  return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
374
374
  }
375
375
  K.create({
@@ -385,8 +385,8 @@ K.create({
385
385
  key: new te("clipboardTextSerializer"),
386
386
  props: {
387
387
  clipboardTextSerializer: () => {
388
- const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: i } = e, { ranges: o } = i, s = Math.min(...o.map((u) => u.$from.pos)), a = Math.max(...o.map((u) => u.$to.pos)), l = Ji(n);
389
- return Xi(r, { from: s, to: a }, {
388
+ const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: i } = e, { ranges: o } = i, s = Math.min(...o.map((u) => u.$from.pos)), a = Math.max(...o.map((u) => u.$to.pos)), l = Zi(n);
389
+ return Ji(r, { from: s, to: a }, {
390
390
  ...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
391
391
  textSerializers: l
392
392
  });
@@ -396,10 +396,10 @@ K.create({
396
396
  ];
397
397
  }
398
398
  });
399
- const Zi = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
399
+ const Qi = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
400
400
  var n;
401
401
  t.isDestroyed || (e.dom.blur(), (n = window == null ? void 0 : window.getSelection()) === null || n === void 0 || n.removeAllRanges());
402
- }), !0), Qi = (t = !1) => ({ commands: e }) => e.setContent("", t), eo = () => ({ state: t, tr: e, dispatch: n }) => {
402
+ }), !0), eo = (t = !1) => ({ commands: e }) => e.setContent("", t), to = () => ({ state: t, tr: e, dispatch: n }) => {
403
403
  const { selection: r } = e, { ranges: i } = r;
404
404
  return n && i.forEach(({ $from: o, $to: s }) => {
405
405
  t.doc.nodesBetween(o.pos, s.pos, (a, l) => {
@@ -408,7 +408,7 @@ const Zi = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
408
408
  const { doc: c, mapping: u } = e, d = c.resolve(u.map(l)), f = c.resolve(u.map(l + a.nodeSize)), h = d.blockRange(f);
409
409
  if (!h)
410
410
  return;
411
- const y = Oi(h);
411
+ const y = Ti(h);
412
412
  if (a.type.isTextblock) {
413
413
  const { defaultType: v } = d.parent.contentMatchAt(d.index());
414
414
  e.setNodeMarkup(h.start, v);
@@ -416,12 +416,12 @@ const Zi = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
416
416
  (y || y === 0) && e.lift(h, y);
417
417
  });
418
418
  }), !0;
419
- }, to = (t) => (e) => t(e), no = () => ({ state: t, dispatch: e }) => Mi(t, e), ro = (t, e) => ({ editor: n, tr: r }) => {
419
+ }, no = (t) => (e) => t(e), ro = () => ({ state: t, dispatch: e }) => Oi(t, e), io = (t, e) => ({ editor: n, tr: r }) => {
420
420
  const { state: i } = n, o = i.doc.slice(t.from, t.to);
421
421
  r.deleteRange(t.from, t.to);
422
422
  const s = r.mapping.map(e);
423
423
  return r.insert(s, o.content), r.setSelection(new V(r.doc.resolve(Math.max(s - 1, 0)))), !0;
424
- }, io = () => ({ tr: t, dispatch: e }) => {
424
+ }, oo = () => ({ tr: t, dispatch: e }) => {
425
425
  const { selection: n } = t, r = n.$anchor.node();
426
426
  if (r.content.size > 0)
427
427
  return !1;
@@ -435,7 +435,7 @@ const Zi = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
435
435
  return !0;
436
436
  }
437
437
  return !1;
438
- }, oo = (t) => ({ tr: e, state: n, dispatch: r }) => {
438
+ }, so = (t) => ({ tr: e, state: n, dispatch: r }) => {
439
439
  const i = W(t, n.schema), o = e.selection.$anchor;
440
440
  for (let s = o.depth; s > 0; s -= 1)
441
441
  if (o.node(s).type === i) {
@@ -446,13 +446,13 @@ const Zi = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
446
446
  return !0;
447
447
  }
448
448
  return !1;
449
- }, so = (t) => ({ tr: e, dispatch: n }) => {
449
+ }, ao = (t) => ({ tr: e, dispatch: n }) => {
450
450
  const { from: r, to: i } = t;
451
451
  return n && e.delete(r, i), !0;
452
- }, ao = () => ({ state: t, dispatch: e }) => ki(t, e), lo = () => ({ commands: t }) => t.keyboardShortcut("Enter"), co = () => ({ state: t, dispatch: e }) => xi(t, e);
452
+ }, lo = () => ({ state: t, dispatch: e }) => Mi(t, e), co = () => ({ commands: t }) => t.keyboardShortcut("Enter"), uo = () => ({ state: t, dispatch: e }) => ki(t, e);
453
453
  function Ht(t, e, n = { strict: !0 }) {
454
454
  const r = Object.keys(e);
455
- return r.length ? r.every((i) => n.strict ? e[i] === t[i] : qi(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0;
455
+ return r.length ? r.every((i) => n.strict ? e[i] === t[i] : Gi(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0;
456
456
  }
457
457
  function dr(t, e, n = {}) {
458
458
  return t.find((r) => r.type === e && Ht(
@@ -489,7 +489,7 @@ function Ae(t, e) {
489
489
  }
490
490
  return t;
491
491
  }
492
- const uo = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
492
+ const po = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
493
493
  const o = Ae(t, r.schema), { doc: s, selection: a } = n, { $from: l, from: c, to: u } = a;
494
494
  if (i) {
495
495
  const d = hn(l, o, e);
@@ -499,7 +499,7 @@ const uo = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
499
499
  }
500
500
  }
501
501
  return !0;
502
- }, po = (t) => (e) => {
502
+ }, fo = (t) => (e) => {
503
503
  const n = typeof t == "function" ? t(e) : t;
504
504
  for (let r = 0; r < n.length; r += 1)
505
505
  if (n[r](e))
@@ -512,7 +512,7 @@ function pr(t) {
512
512
  function De(t = 0, e = 0, n = 0) {
513
513
  return Math.min(Math.max(t, e), n);
514
514
  }
515
- function fo(t, e = null) {
515
+ function ho(t, e = null) {
516
516
  if (!e)
517
517
  return null;
518
518
  const n = le.atStart(t), r = le.atEnd(t);
@@ -523,7 +523,7 @@ function fo(t, e = null) {
523
523
  const i = n.from, o = r.to;
524
524
  return e === "all" ? V.create(t, De(0, i, o), De(t.content.size, i, o)) : V.create(t, De(e, i, o), De(e, i, o));
525
525
  }
526
- function ho() {
526
+ function mo() {
527
527
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
528
528
  }
529
529
  function mn() {
@@ -536,13 +536,13 @@ function mn() {
536
536
  "iPod"
537
537
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
538
538
  }
539
- const mo = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
539
+ const vo = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) => {
540
540
  e = {
541
541
  scrollIntoView: !0,
542
542
  ...e
543
543
  };
544
544
  const s = () => {
545
- (mn() || ho()) && r.dom.focus(), requestAnimationFrame(() => {
545
+ (mn() || mo()) && r.dom.focus(), requestAnimationFrame(() => {
546
546
  n.isDestroyed || (r.focus(), e != null && e.scrollIntoView && n.commands.scrollIntoView());
547
547
  });
548
548
  };
@@ -550,9 +550,9 @@ const mo = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: o }) =>
550
550
  return !0;
551
551
  if (o && t === null && !pr(n.state.selection))
552
552
  return s(), !0;
553
- const a = fo(i.doc, t) || n.state.selection, l = n.state.selection.eq(a);
553
+ const a = ho(i.doc, t) || n.state.selection, l = n.state.selection.eq(a);
554
554
  return o && (l || i.setSelection(a), l && i.storedMarks && i.setStoredMarks(i.storedMarks), s()), !0;
555
- }, vo = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), go = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), fr = (t) => {
555
+ }, go = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), yo = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), fr = (t) => {
556
556
  const e = t.childNodes;
557
557
  for (let n = e.length - 1; n >= 0; n -= 1) {
558
558
  const r = e[n];
@@ -565,7 +565,7 @@ function It(t) {
565
565
  return fr(n);
566
566
  }
567
567
  function lt(t, e, n) {
568
- if (t instanceof Ti || t instanceof Te)
568
+ if (t instanceof Ai || t instanceof Te)
569
569
  return t;
570
570
  n = {
571
571
  slice: !0,
@@ -587,7 +587,7 @@ function lt(t, e, n) {
587
587
  if (i) {
588
588
  if (n.errorOnInvalidContent) {
589
589
  let s = !1, a = "";
590
- const l = new Ai({
590
+ const l = new Ei({
591
591
  topNode: e.spec.topNode,
592
592
  marks: e.spec.marks,
593
593
  // Prosemirror's schemas are executed such that: the last to execute, matches last
@@ -613,12 +613,12 @@ function lt(t, e, n) {
613
613
  }
614
614
  return lt("", e, n);
615
615
  }
616
- function yo(t, e, n) {
616
+ function bo(t, e, n) {
617
617
  const r = t.steps.length - 1;
618
618
  if (r < e)
619
619
  return;
620
620
  const i = t.steps[r];
621
- if (!(i instanceof Ei || i instanceof Ci))
621
+ if (!(i instanceof Ci || i instanceof Si))
622
622
  return;
623
623
  const o = t.mapping.maps[r];
624
624
  let s = 0;
@@ -626,7 +626,7 @@ function yo(t, e, n) {
626
626
  s === 0 && (s = u);
627
627
  }), t.setSelection(le.near(t.doc.resolve(s), n));
628
628
  }
629
- const bo = (t) => !("type" in t), wo = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
629
+ const wo = (t) => !("type" in t), xo = (t, e, n) => ({ tr: r, dispatch: i, editor: o }) => {
630
630
  var s;
631
631
  if (i) {
632
632
  n = {
@@ -667,7 +667,7 @@ const bo = (t) => !("type" in t), wo = (t, e, n) => ({ tr: r, dispatch: i, edito
667
667
  return l(g), !1;
668
668
  }
669
669
  let { from: u, to: d } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, f = !0, h = !0;
670
- if ((bo(a) ? a : [a]).forEach((g) => {
670
+ if ((wo(a) ? a : [a]).forEach((g) => {
671
671
  g.check(), f = f ? g.isText && g.marks.length === 0 : !1, h = h ? g.isBlock : !1;
672
672
  }), u === d && h) {
673
673
  const { parent: g } = r.doc.resolve(u);
@@ -686,28 +686,28 @@ const bo = (t) => !("type" in t), wo = (t, e, n) => ({ tr: r, dispatch: i, edito
686
686
  r.insertText(v, u, d);
687
687
  } else
688
688
  v = a, r.replaceWith(u, d, v);
689
- n.updateSelection && yo(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: u, text: v }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: v });
689
+ n.updateSelection && bo(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: u, text: v }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: u, text: v });
690
690
  }
691
691
  return !0;
692
- }, xo = () => ({ state: t, dispatch: e }) => mi(t, e), ko = () => ({ state: t, dispatch: e }) => bi(t, e), Mo = () => ({ state: t, dispatch: e }) => wi(t, e), Oo = () => ({ state: t, dispatch: e }) => yi(t, e), To = () => ({ state: t, dispatch: e, tr: n }) => {
692
+ }, ko = () => ({ state: t, dispatch: e }) => vi(t, e), Mo = () => ({ state: t, dispatch: e }) => wi(t, e), Oo = () => ({ state: t, dispatch: e }) => xi(t, e), To = () => ({ state: t, dispatch: e }) => bi(t, e), Ao = () => ({ state: t, dispatch: e, tr: n }) => {
693
693
  try {
694
694
  const r = ar(t.doc, t.selection.$from.pos, -1);
695
695
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
696
696
  } catch {
697
697
  return !1;
698
698
  }
699
- }, Ao = () => ({ state: t, dispatch: e, tr: n }) => {
699
+ }, Eo = () => ({ state: t, dispatch: e, tr: n }) => {
700
700
  try {
701
701
  const r = ar(t.doc, t.selection.$from.pos, 1);
702
702
  return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
703
703
  } catch {
704
704
  return !1;
705
705
  }
706
- }, Eo = () => ({ state: t, dispatch: e }) => gi(t, e), Co = () => ({ state: t, dispatch: e }) => vi(t, e);
706
+ }, Co = () => ({ state: t, dispatch: e }) => yi(t, e), So = () => ({ state: t, dispatch: e }) => gi(t, e);
707
707
  function hr() {
708
708
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
709
709
  }
710
- function So(t) {
710
+ function Io(t) {
711
711
  const e = t.split(/-(?!$)/);
712
712
  let n = e[e.length - 1];
713
713
  n === "Space" && (n = " ");
@@ -729,8 +729,8 @@ function So(t) {
729
729
  }
730
730
  return r && (n = `Alt-${n}`), i && (n = `Ctrl-${n}`), s && (n = `Meta-${n}`), o && (n = `Shift-${n}`), n;
731
731
  }
732
- const Io = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => {
733
- const o = So(t).split(/-(?!$)/), s = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), a = new KeyboardEvent("keydown", {
732
+ const Lo = (t) => ({ editor: e, view: n, tr: r, dispatch: i }) => {
733
+ const o = Io(t).split(/-(?!$)/), s = o.find((c) => !["Alt", "Ctrl", "Meta", "Shift"].includes(c)), a = new KeyboardEvent("keydown", {
734
734
  key: s === "Space" ? " " : s,
735
735
  altKey: o.includes("Alt"),
736
736
  ctrlKey: o.includes("Ctrl"),
@@ -761,13 +761,13 @@ function vn(t, e, n = {}) {
761
761
  const l = i - r, c = a.filter((d) => s ? s.name === d.node.type.name : !0).filter((d) => Ht(d.node.attrs, n, { strict: !1 }));
762
762
  return o ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= l;
763
763
  }
764
- const Lo = (t, e = {}) => ({ state: n, dispatch: r }) => {
764
+ const Po = (t, e = {}) => ({ state: n, dispatch: r }) => {
765
765
  const i = W(t, n.schema);
766
- return vn(n, i, e) ? hi(n, r) : !1;
767
- }, Po = () => ({ state: t, dispatch: e }) => fi(t, e), Do = (t) => ({ state: e, dispatch: n }) => {
766
+ return vn(n, i, e) ? mi(n, r) : !1;
767
+ }, Do = () => ({ state: t, dispatch: e }) => hi(t, e), $o = (t) => ({ state: e, dispatch: n }) => {
768
768
  const r = W(t, e.schema);
769
- return pi(r)(e, n);
770
- }, $o = () => ({ state: t, dispatch: e }) => di(t, e);
769
+ return fi(r)(e, n);
770
+ }, Ro = () => ({ state: t, dispatch: e }) => pi(t, e);
771
771
  function mr(t, e) {
772
772
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
773
773
  }
@@ -775,7 +775,7 @@ function In(t, e) {
775
775
  const n = typeof e == "string" ? [e] : e;
776
776
  return Object.keys(t).reduce((r, i) => (n.includes(i) || (r[i] = t[i]), r), {});
777
777
  }
778
- const Ro = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
778
+ const Bo = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
779
779
  let o = null, s = null;
780
780
  const a = mr(typeof t == "string" ? t : t.name, r.schema);
781
781
  return a ? (a === "node" && (o = W(t, r.schema)), a === "mark" && (s = Ae(t, r.schema)), i && n.selection.ranges.forEach((l) => {
@@ -785,25 +785,25 @@ const Ro = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
785
785
  });
786
786
  });
787
787
  }), !0) : !1;
788
- }, Bo = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), No = () => ({ tr: t, dispatch: e }) => {
788
+ }, No = () => ({ tr: t, dispatch: e }) => (e && t.scrollIntoView(), !0), Ho = () => ({ tr: t, dispatch: e }) => {
789
789
  if (e) {
790
- const n = new ui(t.doc);
790
+ const n = new di(t.doc);
791
791
  t.setSelection(n);
792
792
  }
793
793
  return !0;
794
- }, Ho = () => ({ state: t, dispatch: e }) => ci(t, e), jo = () => ({ state: t, dispatch: e }) => li(t, e), _o = () => ({ state: t, dispatch: e }) => ai(t, e), Fo = () => ({ state: t, dispatch: e }) => si(t, e), Vo = () => ({ state: t, dispatch: e }) => oi(t, e);
795
- function Wo(t, e, n = {}, r = {}) {
794
+ }, jo = () => ({ state: t, dispatch: e }) => ui(t, e), _o = () => ({ state: t, dispatch: e }) => ci(t, e), Fo = () => ({ state: t, dispatch: e }) => li(t, e), Vo = () => ({ state: t, dispatch: e }) => ai(t, e), Wo = () => ({ state: t, dispatch: e }) => si(t, e);
795
+ function zo(t, e, n = {}, r = {}) {
796
796
  return lt(t, e, {
797
797
  slice: !1,
798
798
  parseOptions: n,
799
799
  errorOnInvalidContent: r.errorOnInvalidContent
800
800
  });
801
801
  }
802
- const zo = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: a }) => {
802
+ const Ko = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, commands: a }) => {
803
803
  var l, c;
804
804
  const { doc: u } = o;
805
805
  if (n.preserveWhitespace !== "full") {
806
- const d = Wo(t, i.schema, n, {
806
+ const d = zo(t, i.schema, n, {
807
807
  errorOnInvalidContent: (l = r.errorOnInvalidContent) !== null && l !== void 0 ? l : i.options.enableContentCheck
808
808
  });
809
809
  return s && o.replaceWith(0, u.content.size, d).setMeta("preventUpdate", !e), !0;
@@ -813,7 +813,7 @@ const zo = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
813
813
  errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : i.options.enableContentCheck
814
814
  });
815
815
  };
816
- function Ko(t, e) {
816
+ function Uo(t, e) {
817
817
  const n = Ae(e, t.schema), { from: r, to: i, empty: o } = t.selection, s = [];
818
818
  o ? (t.storedMarks && s.push(...t.storedMarks), s.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (l) => {
819
819
  s.push(...l.marks);
@@ -821,7 +821,7 @@ function Ko(t, e) {
821
821
  const a = s.find((l) => l.type.name === n.name);
822
822
  return a ? { ...a.attrs } : {};
823
823
  }
824
- function Uo(t) {
824
+ function qo(t) {
825
825
  for (let e = 0; e < t.edgeCount; e += 1) {
826
826
  const { type: n } = t.edge(e);
827
827
  if (n.isTextblock && !n.hasRequiredAttrs())
@@ -829,7 +829,7 @@ function Uo(t) {
829
829
  }
830
830
  return null;
831
831
  }
832
- function qo(t, e) {
832
+ function Go(t, e) {
833
833
  for (let n = t.depth; n > 0; n -= 1) {
834
834
  const r = t.node(n);
835
835
  if (e(r))
@@ -842,7 +842,7 @@ function qo(t, e) {
842
842
  }
843
843
  }
844
844
  function gn(t) {
845
- return (e) => qo(e.$from, t);
845
+ return (e) => Go(e.$from, t);
846
846
  }
847
847
  function vr(t, e, n) {
848
848
  const r = [];
@@ -866,7 +866,7 @@ function Rt(t, e, n) {
866
866
  return i ? i.attribute.keepOnSplit : !1;
867
867
  }));
868
868
  }
869
- function Go(t, e, n = {}) {
869
+ function Yo(t, e, n = {}) {
870
870
  const { empty: r, ranges: i } = t.selection, o = e ? Ae(e, t.schema) : null;
871
871
  if (r)
872
872
  return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Ht(d.attrs, n, { strict: !1 }));
@@ -890,7 +890,7 @@ function Go(t, e, n = {}) {
890
890
  return (l > 0 ? l + c : l) >= s;
891
891
  }
892
892
  function Ln(t, e) {
893
- const { nodeExtensions: n } = Ki(e), r = n.find((s) => s.name === t);
893
+ const { nodeExtensions: n } = Ui(e), r = n.find((s) => s.name === t);
894
894
  if (!r)
895
895
  return !1;
896
896
  const i = {
@@ -922,10 +922,10 @@ function gr(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
922
922
  }
923
923
  return !1;
924
924
  }
925
- function Yo(t) {
925
+ function Xo(t) {
926
926
  return t instanceof He;
927
927
  }
928
- function Xo(t, e, n) {
928
+ function Jo(t, e, n) {
929
929
  var r;
930
930
  const { selection: i } = e;
931
931
  let o = null;
@@ -947,11 +947,11 @@ function Xo(t, e, n) {
947
947
  }), c;
948
948
  });
949
949
  }
950
- const Jo = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
950
+ const Zo = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
951
951
  const { selection: o } = n, { empty: s, ranges: a } = o, l = Ae(t, r.schema);
952
952
  if (i)
953
953
  if (s) {
954
- const c = Ko(r, l);
954
+ const c = Uo(r, l);
955
955
  n.addStoredMark(l.create({
956
956
  ...c,
957
957
  ...e
@@ -969,26 +969,26 @@ const Jo = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
969
969
  }) : n.addMark(y, v, l.create(e));
970
970
  });
971
971
  });
972
- return Xo(r, n, l);
973
- }, Zo = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), Qo = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
972
+ return Jo(r, n, l);
973
+ }, Qo = (t, e) => ({ tr: n }) => (n.setMeta(t, e), !0), es = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
974
974
  const o = W(t, n.schema);
975
975
  let s;
976
976
  return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: a }) => Cn(o, { ...s, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => Cn(o, { ...s, ...e })(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
977
- }, es = (t) => ({ tr: e, dispatch: n }) => {
977
+ }, ts = (t) => ({ tr: e, dispatch: n }) => {
978
978
  if (n) {
979
979
  const { doc: r } = e, i = De(t, 0, r.content.size), o = He.create(r, i);
980
980
  e.setSelection(o);
981
981
  }
982
982
  return !0;
983
- }, ts = (t) => ({ tr: e, dispatch: n }) => {
983
+ }, ns = (t) => ({ tr: e, dispatch: n }) => {
984
984
  if (n) {
985
985
  const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, s = V.atStart(r).from, a = V.atEnd(r).to, l = De(i, s, a), c = De(o, s, a), u = V.create(r, l, c);
986
986
  e.setSelection(u);
987
987
  }
988
988
  return !0;
989
- }, ns = (t) => ({ state: e, dispatch: n }) => {
989
+ }, rs = (t) => ({ state: e, dispatch: n }) => {
990
990
  const r = W(t, e.schema);
991
- return ii(r)(e, n);
991
+ return oi(r)(e, n);
992
992
  };
993
993
  function Pn(t, e) {
994
994
  const n = t.storedMarks || t.selection.$to.parentOffset && t.selection.$from.marks();
@@ -997,13 +997,13 @@ function Pn(t, e) {
997
997
  t.tr.ensureMarks(r);
998
998
  }
999
999
  }
1000
- const rs = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
1000
+ const is = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
1001
1001
  const { selection: o, doc: s } = e, { $from: a, $to: l } = o, c = i.extensionManager.attributes, u = Rt(c, a.node().type.name, a.node().attrs);
1002
1002
  if (o instanceof He && o.node.isBlock)
1003
1003
  return !a.parentOffset || !$t(s, a.pos) ? !1 : (r && (t && Pn(n, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
1004
1004
  if (!a.parent.isBlock)
1005
1005
  return !1;
1006
- const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : Uo(a.node(-1).contentMatchAt(a.indexAfter(-1)));
1006
+ const d = l.parentOffset === l.parent.content.size, f = a.depth === 0 ? void 0 : qo(a.node(-1).contentMatchAt(a.indexAfter(-1)));
1007
1007
  let h = d && f ? [
1008
1008
  {
1009
1009
  type: f,
@@ -1023,7 +1023,7 @@ const rs = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
1023
1023
  t && Pn(n, i.extensionManager.splittableMarks), e.scrollIntoView();
1024
1024
  }
1025
1025
  return y;
1026
- }, is = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
1026
+ }, os = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: o }) => {
1027
1027
  var s;
1028
1028
  const a = W(t, r.schema), { $from: l, $to: c } = r.selection, u = r.selection.node;
1029
1029
  if (u && u.isBlock || l.depth < 2 || !l.sameParent(c))
@@ -1096,7 +1096,7 @@ const rs = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
1096
1096
  return !0;
1097
1097
  const i = t.doc.nodeAt(r);
1098
1098
  return n.node.type === (i == null ? void 0 : i.type) && un(t.doc, r) && t.join(r), !0;
1099
- }, os = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: c, can: u }) => {
1099
+ }, ss = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: c, can: u }) => {
1100
1100
  const { extensions: d, splittableMarks: f } = i.extensionManager, h = W(t, s.schema), y = W(e, s.schema), { selection: v, storedMarks: g } = s, { $from: w, $to: x } = v, T = w.blockRange(x), p = g || v.$to.parentOffset && v.$from.marks();
1101
1101
  if (!T)
1102
1102
  return !1;
@@ -1111,17 +1111,17 @@ const rs = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
1111
1111
  const b = u().wrapInList(h, r), A = p.filter((S) => f.includes(S.type.name));
1112
1112
  return o.ensureMarks(A), b ? !0 : c.clearNodes();
1113
1113
  }).wrapInList(h, r).command(() => Gt(o, h)).command(() => Yt(o, h)).run();
1114
- }, ss = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
1114
+ }, as = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
1115
1115
  const { extendEmptyMarkRange: o = !1 } = n, s = Ae(t, r.schema);
1116
- return Go(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
1117
- }, as = (t, e, n = {}) => ({ state: r, commands: i }) => {
1116
+ return Yo(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
1117
+ }, ls = (t, e, n = {}) => ({ state: r, commands: i }) => {
1118
1118
  const o = W(t, r.schema), s = W(e, r.schema), a = vn(r, o, n);
1119
1119
  let l;
1120
1120
  return r.selection.$anchor.sameParent(r.selection.$head) && (l = r.selection.$anchor.parent.attrs), a ? i.setNode(s, l) : i.setNode(o, { ...l, ...n });
1121
- }, ls = (t, e = {}) => ({ state: n, commands: r }) => {
1121
+ }, cs = (t, e = {}) => ({ state: n, commands: r }) => {
1122
1122
  const i = W(t, n.schema);
1123
1123
  return vn(n, i, e) ? r.lift(i) : r.wrapIn(i, e);
1124
- }, cs = () => ({ state: t, dispatch: e }) => {
1124
+ }, us = () => ({ state: t, dispatch: e }) => {
1125
1125
  const n = t.plugins;
1126
1126
  for (let r = 0; r < n.length; r += 1) {
1127
1127
  const i = n[r];
@@ -1141,12 +1141,12 @@ const rs = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
1141
1141
  }
1142
1142
  }
1143
1143
  return !1;
1144
- }, us = () => ({ tr: t, dispatch: e }) => {
1144
+ }, ds = () => ({ tr: t, dispatch: e }) => {
1145
1145
  const { selection: n } = t, { empty: r, ranges: i } = n;
1146
1146
  return r || e && i.forEach((o) => {
1147
1147
  t.removeMark(o.$from.pos, o.$to.pos);
1148
1148
  }), !0;
1149
- }, ds = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
1149
+ }, ps = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
1150
1150
  var o;
1151
1151
  const { extendEmptyMarkRange: s = !1 } = e, { selection: a } = n, l = Ae(t, r.schema), { $from: c, empty: u, ranges: d } = a;
1152
1152
  if (!i)
@@ -1160,7 +1160,7 @@ const rs = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
1160
1160
  n.removeMark(f.$from.pos, f.$to.pos, l);
1161
1161
  });
1162
1162
  return n.removeStoredMark(l), !0;
1163
- }, ps = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
1163
+ }, fs = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
1164
1164
  let o = null, s = null;
1165
1165
  const a = mr(typeof t == "string" ? t : t.name, r.schema);
1166
1166
  return a ? (a === "node" && (o = W(t, r.schema)), a === "mark" && (s = Ae(t, r.schema)), i && n.selection.ranges.forEach((l) => {
@@ -1191,79 +1191,79 @@ const rs = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
1191
1191
  }));
1192
1192
  }));
1193
1193
  }), !0) : !1;
1194
- }, fs = (t, e = {}) => ({ state: n, dispatch: r }) => {
1195
- const i = W(t, n.schema);
1196
- return ri(i, e)(n, r);
1197
1194
  }, hs = (t, e = {}) => ({ state: n, dispatch: r }) => {
1198
1195
  const i = W(t, n.schema);
1199
- return ni(i, e)(n, r);
1196
+ return ii(i, e)(n, r);
1197
+ }, ms = (t, e = {}) => ({ state: n, dispatch: r }) => {
1198
+ const i = W(t, n.schema);
1199
+ return ri(i, e)(n, r);
1200
1200
  };
1201
- var ms = /* @__PURE__ */ Object.freeze({
1201
+ var vs = /* @__PURE__ */ Object.freeze({
1202
1202
  __proto__: null,
1203
- blur: Zi,
1204
- clearContent: Qi,
1205
- clearNodes: eo,
1206
- command: to,
1207
- createParagraphNear: no,
1208
- cut: ro,
1209
- deleteCurrentNode: io,
1210
- deleteNode: oo,
1211
- deleteRange: so,
1212
- deleteSelection: ao,
1213
- enter: lo,
1214
- exitCode: co,
1215
- extendMarkRange: uo,
1216
- first: po,
1217
- focus: mo,
1218
- forEach: vo,
1219
- insertContent: go,
1220
- insertContentAt: wo,
1221
- joinBackward: Mo,
1222
- joinDown: ko,
1223
- joinForward: Oo,
1224
- joinItemBackward: To,
1225
- joinItemForward: Ao,
1226
- joinTextblockBackward: Eo,
1227
- joinTextblockForward: Co,
1228
- joinUp: xo,
1229
- keyboardShortcut: Io,
1230
- lift: Lo,
1231
- liftEmptyBlock: Po,
1232
- liftListItem: Do,
1233
- newlineInCode: $o,
1234
- resetAttributes: Ro,
1235
- scrollIntoView: Bo,
1236
- selectAll: No,
1237
- selectNodeBackward: Ho,
1238
- selectNodeForward: jo,
1239
- selectParentNode: _o,
1240
- selectTextblockEnd: Fo,
1241
- selectTextblockStart: Vo,
1242
- setContent: zo,
1243
- setMark: Jo,
1244
- setMeta: Zo,
1245
- setNode: Qo,
1246
- setNodeSelection: es,
1247
- setTextSelection: ts,
1248
- sinkListItem: ns,
1249
- splitBlock: rs,
1250
- splitListItem: is,
1251
- toggleList: os,
1252
- toggleMark: ss,
1253
- toggleNode: as,
1254
- toggleWrap: ls,
1255
- undoInputRule: cs,
1256
- unsetAllMarks: us,
1257
- unsetMark: ds,
1258
- updateAttributes: ps,
1259
- wrapIn: fs,
1260
- wrapInList: hs
1203
+ blur: Qi,
1204
+ clearContent: eo,
1205
+ clearNodes: to,
1206
+ command: no,
1207
+ createParagraphNear: ro,
1208
+ cut: io,
1209
+ deleteCurrentNode: oo,
1210
+ deleteNode: so,
1211
+ deleteRange: ao,
1212
+ deleteSelection: lo,
1213
+ enter: co,
1214
+ exitCode: uo,
1215
+ extendMarkRange: po,
1216
+ first: fo,
1217
+ focus: vo,
1218
+ forEach: go,
1219
+ insertContent: yo,
1220
+ insertContentAt: xo,
1221
+ joinBackward: Oo,
1222
+ joinDown: Mo,
1223
+ joinForward: To,
1224
+ joinItemBackward: Ao,
1225
+ joinItemForward: Eo,
1226
+ joinTextblockBackward: Co,
1227
+ joinTextblockForward: So,
1228
+ joinUp: ko,
1229
+ keyboardShortcut: Lo,
1230
+ lift: Po,
1231
+ liftEmptyBlock: Do,
1232
+ liftListItem: $o,
1233
+ newlineInCode: Ro,
1234
+ resetAttributes: Bo,
1235
+ scrollIntoView: No,
1236
+ selectAll: Ho,
1237
+ selectNodeBackward: jo,
1238
+ selectNodeForward: _o,
1239
+ selectParentNode: Fo,
1240
+ selectTextblockEnd: Vo,
1241
+ selectTextblockStart: Wo,
1242
+ setContent: Ko,
1243
+ setMark: Zo,
1244
+ setMeta: Qo,
1245
+ setNode: es,
1246
+ setNodeSelection: ts,
1247
+ setTextSelection: ns,
1248
+ sinkListItem: rs,
1249
+ splitBlock: is,
1250
+ splitListItem: os,
1251
+ toggleList: ss,
1252
+ toggleMark: as,
1253
+ toggleNode: ls,
1254
+ toggleWrap: cs,
1255
+ undoInputRule: us,
1256
+ unsetAllMarks: ds,
1257
+ unsetMark: ps,
1258
+ updateAttributes: fs,
1259
+ wrapIn: hs,
1260
+ wrapInList: ms
1261
1261
  });
1262
1262
  K.create({
1263
1263
  name: "commands",
1264
1264
  addCommands() {
1265
1265
  return {
1266
- ...ms
1266
+ ...vs
1267
1267
  };
1268
1268
  }
1269
1269
  });
@@ -1300,14 +1300,14 @@ K.create({
1300
1300
  ];
1301
1301
  }
1302
1302
  });
1303
- const vs = new te("focusEvents");
1303
+ const gs = new te("focusEvents");
1304
1304
  K.create({
1305
1305
  name: "focusEvents",
1306
1306
  addProseMirrorPlugins() {
1307
1307
  const { editor: t } = this;
1308
1308
  return [
1309
1309
  new X({
1310
- key: vs,
1310
+ key: gs,
1311
1311
  props: {
1312
1312
  handleDOMEvents: {
1313
1313
  focus: (e, n) => {
@@ -1394,7 +1394,7 @@ K.create({
1394
1394
  const f = n.tr, h = ur({
1395
1395
  state: n,
1396
1396
  transaction: f
1397
- }), { commands: y } = new zi({
1397
+ }), { commands: y } = new Ki({
1398
1398
  editor: this.editor,
1399
1399
  state: h
1400
1400
  });
@@ -1456,7 +1456,7 @@ function Ue(t) {
1456
1456
  }
1457
1457
  });
1458
1458
  }
1459
- function gs(t) {
1459
+ function ys(t) {
1460
1460
  return new Vt({
1461
1461
  find: t.find,
1462
1462
  handler: ({ state: e, range: n, match: r }) => {
@@ -1492,7 +1492,7 @@ function ct(t) {
1492
1492
  return new Vt({
1493
1493
  find: t.find,
1494
1494
  handler: ({ state: e, range: n, match: r, chain: i }) => {
1495
- const o = B(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && ti(l, t.type, o);
1495
+ const o = B(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && ni(l, t.type, o);
1496
1496
  if (!c)
1497
1497
  return null;
1498
1498
  if (s.wrap(l, c), t.keepMarks && t.editor) {
@@ -1547,7 +1547,7 @@ class Y {
1547
1547
  }
1548
1548
  }
1549
1549
  function qe(t) {
1550
- return new Yi({
1550
+ return new Xi({
1551
1551
  find: t.find,
1552
1552
  handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
1553
1553
  const o = B(t.getAttributes, void 0, r, i);
@@ -1564,7 +1564,7 @@ function qe(t) {
1564
1564
  }
1565
1565
  });
1566
1566
  }
1567
- function ys(t, e) {
1567
+ function bs(t, e) {
1568
1568
  const { selection: n } = t, { $from: r } = n;
1569
1569
  if (n instanceof He) {
1570
1570
  const o = r.index();
@@ -1579,7 +1579,7 @@ function ys(t, e) {
1579
1579
  }
1580
1580
  return !1;
1581
1581
  }
1582
- const bs = /^\s*>\s$/, ws = Y.create({
1582
+ const ws = /^\s*>\s$/, xs = Y.create({
1583
1583
  name: "blockquote",
1584
1584
  addOptions() {
1585
1585
  return {
@@ -1612,12 +1612,12 @@ const bs = /^\s*>\s$/, ws = Y.create({
1612
1612
  addInputRules() {
1613
1613
  return [
1614
1614
  ct({
1615
- find: bs,
1615
+ find: ws,
1616
1616
  type: this.type
1617
1617
  })
1618
1618
  ];
1619
1619
  }
1620
- }), xs = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, ks = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Ms = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Os = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Ts = Be.create({
1620
+ }), ks = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Ms = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Os = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Ts = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, As = Be.create({
1621
1621
  name: "bold",
1622
1622
  addOptions() {
1623
1623
  return {
@@ -1662,11 +1662,11 @@ const bs = /^\s*>\s$/, ws = Y.create({
1662
1662
  addInputRules() {
1663
1663
  return [
1664
1664
  Ue({
1665
- find: xs,
1665
+ find: ks,
1666
1666
  type: this.type
1667
1667
  }),
1668
1668
  Ue({
1669
- find: Ms,
1669
+ find: Os,
1670
1670
  type: this.type
1671
1671
  })
1672
1672
  ];
@@ -1674,16 +1674,16 @@ const bs = /^\s*>\s$/, ws = Y.create({
1674
1674
  addPasteRules() {
1675
1675
  return [
1676
1676
  qe({
1677
- find: ks,
1677
+ find: Ms,
1678
1678
  type: this.type
1679
1679
  }),
1680
1680
  qe({
1681
- find: Os,
1681
+ find: Ts,
1682
1682
  type: this.type
1683
1683
  })
1684
1684
  ];
1685
1685
  }
1686
- }), As = "listItem", Dn = "textStyle", $n = /^\s*([-+*])\s$/, Es = Y.create({
1686
+ }), Es = "listItem", Dn = "textStyle", $n = /^\s*([-+*])\s$/, Cs = Y.create({
1687
1687
  name: "bulletList",
1688
1688
  addOptions() {
1689
1689
  return {
@@ -1707,7 +1707,7 @@ const bs = /^\s*>\s$/, ws = Y.create({
1707
1707
  },
1708
1708
  addCommands() {
1709
1709
  return {
1710
- toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(As, this.editor.getAttributes(Dn)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
1710
+ toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Es, this.editor.getAttributes(Dn)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
1711
1711
  };
1712
1712
  },
1713
1713
  addKeyboardShortcuts() {
@@ -1731,7 +1731,7 @@ const bs = /^\s*>\s$/, ws = Y.create({
1731
1731
  t
1732
1732
  ];
1733
1733
  }
1734
- }), Cs = /(^|[^`])`([^`]+)`(?!`)/, Ss = /(^|[^`])`([^`]+)`(?!`)/g, Is = Be.create({
1734
+ }), Ss = /(^|[^`])`([^`]+)`(?!`)/, Is = /(^|[^`])`([^`]+)`(?!`)/g, Ls = Be.create({
1735
1735
  name: "code",
1736
1736
  addOptions() {
1737
1737
  return {
@@ -1764,7 +1764,7 @@ const bs = /^\s*>\s$/, ws = Y.create({
1764
1764
  addInputRules() {
1765
1765
  return [
1766
1766
  Ue({
1767
- find: Cs,
1767
+ find: Ss,
1768
1768
  type: this.type
1769
1769
  })
1770
1770
  ];
@@ -1772,12 +1772,12 @@ const bs = /^\s*>\s$/, ws = Y.create({
1772
1772
  addPasteRules() {
1773
1773
  return [
1774
1774
  qe({
1775
- find: Ss,
1775
+ find: Is,
1776
1776
  type: this.type
1777
1777
  })
1778
1778
  ];
1779
1779
  }
1780
- }), Ls = /^```([a-z]+)?[\s\n]$/, Ps = /^~~~([a-z]+)?[\s\n]$/, Ds = Y.create({
1780
+ }), Ps = /^```([a-z]+)?[\s\n]$/, Ds = /^~~~([a-z]+)?[\s\n]$/, $s = Y.create({
1781
1781
  name: "codeBlock",
1782
1782
  addOptions() {
1783
1783
  return {
@@ -1868,14 +1868,14 @@ const bs = /^\s*>\s$/, ws = Y.create({
1868
1868
  addInputRules() {
1869
1869
  return [
1870
1870
  nn({
1871
- find: Ls,
1871
+ find: Ps,
1872
1872
  type: this.type,
1873
1873
  getAttributes: (t) => ({
1874
1874
  language: t[1]
1875
1875
  })
1876
1876
  }),
1877
1877
  nn({
1878
- find: Ps,
1878
+ find: Ds,
1879
1879
  type: this.type,
1880
1880
  getAttributes: (t) => ({
1881
1881
  language: t[1]
@@ -1904,19 +1904,19 @@ const bs = /^\s*>\s$/, ws = Y.create({
1904
1904
  })
1905
1905
  ];
1906
1906
  }
1907
- }), $s = Y.create({
1907
+ }), Rs = Y.create({
1908
1908
  name: "doc",
1909
1909
  topNode: !0,
1910
1910
  content: "block+"
1911
1911
  });
1912
- function Rs(t = {}) {
1912
+ function Bs(t = {}) {
1913
1913
  return new X({
1914
1914
  view(e) {
1915
- return new Bs(e, t);
1915
+ return new Ns(e, t);
1916
1916
  }
1917
1917
  });
1918
1918
  }
1919
- class Bs {
1919
+ class Ns {
1920
1920
  constructor(e, n) {
1921
1921
  var r;
1922
1922
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === !1 ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((i) => {
@@ -1974,7 +1974,7 @@ class Bs {
1974
1974
  if (n && !o) {
1975
1975
  let s = n.pos;
1976
1976
  if (this.editorView.dragging && this.editorView.dragging.slice) {
1977
- let a = Si(this.editorView.state.doc, s, this.editorView.dragging.slice);
1977
+ let a = Ii(this.editorView.state.doc, s, this.editorView.dragging.slice);
1978
1978
  a != null && (s = a);
1979
1979
  }
1980
1980
  this.setCursor(s), this.scheduleRemoval(5e3);
@@ -1990,7 +1990,7 @@ class Bs {
1990
1990
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
1991
1991
  }
1992
1992
  }
1993
- const Ns = K.create({
1993
+ const Hs = K.create({
1994
1994
  name: "dropCursor",
1995
1995
  addOptions() {
1996
1996
  return {
@@ -2001,7 +2001,7 @@ const Ns = K.create({
2001
2001
  },
2002
2002
  addProseMirrorPlugins() {
2003
2003
  return [
2004
- Rs(this.options)
2004
+ Bs(this.options)
2005
2005
  ];
2006
2006
  }
2007
2007
  });
@@ -2044,7 +2044,7 @@ class $ extends le {
2044
2044
  */
2045
2045
  static valid(e) {
2046
2046
  let n = e.parent;
2047
- if (n.isTextblock || !Hs(e) || !js(e))
2047
+ if (n.isTextblock || !js(e) || !_s(e))
2048
2048
  return !1;
2049
2049
  let r = n.type.spec.allowGapCursor;
2050
2050
  if (r != null)
@@ -2105,7 +2105,10 @@ class yn {
2105
2105
  return $.valid(n) ? new $(n) : le.near(n);
2106
2106
  }
2107
2107
  }
2108
- function Hs(t) {
2108
+ function yr(t) {
2109
+ return t.isAtom || t.spec.isolating || t.spec.createGapCursor;
2110
+ }
2111
+ function js(t) {
2109
2112
  for (let e = t.depth; e >= 0; e--) {
2110
2113
  let n = t.index(e), r = t.node(e);
2111
2114
  if (n == 0) {
@@ -2114,7 +2117,7 @@ function Hs(t) {
2114
2117
  continue;
2115
2118
  }
2116
2119
  for (let i = r.child(n - 1); ; i = i.lastChild) {
2117
- if (i.childCount == 0 && !i.inlineContent || i.isAtom || i.type.spec.isolating)
2120
+ if (i.childCount == 0 && !i.inlineContent || yr(i.type))
2118
2121
  return !0;
2119
2122
  if (i.inlineContent)
2120
2123
  return !1;
@@ -2122,7 +2125,7 @@ function Hs(t) {
2122
2125
  }
2123
2126
  return !0;
2124
2127
  }
2125
- function js(t) {
2128
+ function _s(t) {
2126
2129
  for (let e = t.depth; e >= 0; e--) {
2127
2130
  let n = t.indexAfter(e), r = t.node(e);
2128
2131
  if (n == r.childCount) {
@@ -2131,7 +2134,7 @@ function js(t) {
2131
2134
  continue;
2132
2135
  }
2133
2136
  for (let i = r.child(n); ; i = i.firstChild) {
2134
- if (i.childCount == 0 && !i.inlineContent || i.isAtom || i.type.spec.isolating)
2137
+ if (i.childCount == 0 && !i.inlineContent || yr(i.type))
2135
2138
  return !0;
2136
2139
  if (i.inlineContent)
2137
2140
  return !1;
@@ -2139,20 +2142,20 @@ function js(t) {
2139
2142
  }
2140
2143
  return !0;
2141
2144
  }
2142
- function _s() {
2145
+ function Fs() {
2143
2146
  return new X({
2144
2147
  props: {
2145
- decorations: zs,
2148
+ decorations: Ks,
2146
2149
  createSelectionBetween(t, e, n) {
2147
2150
  return e.pos == n.pos && $.valid(n) ? new $(n) : null;
2148
2151
  },
2149
- handleClick: Vs,
2150
- handleKeyDown: Fs,
2151
- handleDOMEvents: { beforeinput: Ws }
2152
+ handleClick: Ws,
2153
+ handleKeyDown: Vs,
2154
+ handleDOMEvents: { beforeinput: zs }
2152
2155
  }
2153
2156
  });
2154
2157
  }
2155
- const Fs = Ii({
2158
+ const Vs = Li({
2156
2159
  ArrowLeft: Lt("horiz", -1),
2157
2160
  ArrowRight: Lt("horiz", 1),
2158
2161
  ArrowUp: Lt("vert", -1),
@@ -2171,7 +2174,7 @@ function Lt(t, e) {
2171
2174
  return c ? (i && i(r.tr.setSelection(new $(c))), !0) : !1;
2172
2175
  };
2173
2176
  }
2174
- function Vs(t, e, n) {
2177
+ function Ws(t, e, n) {
2175
2178
  if (!t || !t.editable)
2176
2179
  return !1;
2177
2180
  let r = t.state.doc.resolve(e);
@@ -2180,7 +2183,7 @@ function Vs(t, e, n) {
2180
2183
  let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
2181
2184
  return i && i.inside > -1 && He.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new $(r))), !0);
2182
2185
  }
2183
- function Ws(t, e) {
2186
+ function zs(t, e) {
2184
2187
  if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof $))
2185
2188
  return !1;
2186
2189
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
@@ -2192,17 +2195,17 @@ function Ws(t, e) {
2192
2195
  let o = t.state.tr.replace(n.pos, n.pos, new dn(i, 0, 0));
2193
2196
  return o.setSelection(V.near(o.doc.resolve(n.pos + 1))), t.dispatch(o), !1;
2194
2197
  }
2195
- function zs(t) {
2198
+ function Ks(t) {
2196
2199
  if (!(t.selection instanceof $))
2197
2200
  return null;
2198
2201
  let e = document.createElement("div");
2199
2202
  return e.className = "ProseMirror-gapcursor", sr.create(t.doc, [or.widget(t.selection.head, e, { key: "gapcursor" })]);
2200
2203
  }
2201
- const Ks = K.create({
2204
+ const Us = K.create({
2202
2205
  name: "gapCursor",
2203
2206
  addProseMirrorPlugins() {
2204
2207
  return [
2205
- _s()
2208
+ Fs()
2206
2209
  ];
2207
2210
  },
2208
2211
  extendNodeSchema(t) {
@@ -2216,7 +2219,7 @@ const Ks = K.create({
2216
2219
  allowGapCursor: (e = B(F(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
2217
2220
  };
2218
2221
  }
2219
- }), Us = Y.create({
2222
+ }), qs = Y.create({
2220
2223
  name: "hardBreak",
2221
2224
  addOptions() {
2222
2225
  return {
@@ -2266,7 +2269,7 @@ const Ks = K.create({
2266
2269
  "Shift-Enter": () => this.editor.commands.setHardBreak()
2267
2270
  };
2268
2271
  }
2269
- }), qs = Y.create({
2272
+ }), Gs = Y.create({
2270
2273
  name: "heading",
2271
2274
  addOptions() {
2272
2275
  return {
@@ -2325,7 +2328,7 @@ N.prototype.prepend = function(e) {
2325
2328
  return e.length ? N.from(e).append(this) : this;
2326
2329
  };
2327
2330
  N.prototype.appendInner = function(e) {
2328
- return new Gs(this, e);
2331
+ return new Ys(this, e);
2329
2332
  };
2330
2333
  N.prototype.slice = function(e, n) {
2331
2334
  return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? N.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
@@ -2345,9 +2348,9 @@ N.prototype.map = function(e, n, r) {
2345
2348
  }, n, r), i;
2346
2349
  };
2347
2350
  N.from = function(e) {
2348
- return e instanceof N ? e : e && e.length ? new yr(e) : N.empty;
2351
+ return e instanceof N ? e : e && e.length ? new br(e) : N.empty;
2349
2352
  };
2350
- var yr = /* @__PURE__ */ function(t) {
2353
+ var br = /* @__PURE__ */ function(t) {
2351
2354
  function e(r) {
2352
2355
  t.call(this), this.values = r;
2353
2356
  }
@@ -2379,8 +2382,8 @@ var yr = /* @__PURE__ */ function(t) {
2379
2382
  return 0;
2380
2383
  }, Object.defineProperties(e.prototype, n), e;
2381
2384
  }(N);
2382
- N.empty = new yr([]);
2383
- var Gs = /* @__PURE__ */ function(t) {
2385
+ N.empty = new br([]);
2386
+ var Ys = /* @__PURE__ */ function(t) {
2384
2387
  function e(n, r) {
2385
2388
  t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
2386
2389
  }
@@ -2413,7 +2416,7 @@ var Gs = /* @__PURE__ */ function(t) {
2413
2416
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
2414
2417
  }, e;
2415
2418
  }(N);
2416
- const Ys = 500;
2419
+ const Xs = 500;
2417
2420
  class ae {
2418
2421
  constructor(e, n) {
2419
2422
  this.items = e, this.eventCount = n;
@@ -2455,10 +2458,10 @@ class ae {
2455
2458
  (h = l && l.merge(f)) && (f = h, u ? o.pop() : a = a.slice(0, a.length - 1)), o.push(f), n && (s++, n = void 0), i || (l = f);
2456
2459
  }
2457
2460
  let c = s - r.depth;
2458
- return c > Js && (a = Xs(a, c), s -= c), new ae(a.append(o), s);
2461
+ return c > Zs && (a = Js(a, c), s -= c), new ae(a.append(o), s);
2459
2462
  }
2460
2463
  remapping(e, n) {
2461
- let r = new Li();
2464
+ let r = new Pi();
2462
2465
  return this.items.forEach((i, o) => {
2463
2466
  let s = i.mirrorOffset != null && o - i.mirrorOffset >= e ? r.maps.length - i.mirrorOffset : void 0;
2464
2467
  r.appendMap(i.map, s);
@@ -2495,7 +2498,7 @@ class ae {
2495
2498
  for (let f = n; f < s; f++)
2496
2499
  c.push(new pe(o.maps[f]));
2497
2500
  let u = this.items.slice(0, i).append(c).append(r), d = new ae(u, a);
2498
- return d.emptyItemCount() > Ys && (d = d.compress(this.items.length - r.length)), d;
2501
+ return d.emptyItemCount() > Xs && (d = d.compress(this.items.length - r.length)), d;
2499
2502
  }
2500
2503
  emptyItemCount() {
2501
2504
  let e = 0;
@@ -2527,7 +2530,7 @@ class ae {
2527
2530
  }
2528
2531
  }
2529
2532
  ae.empty = new ae(N.empty, 0);
2530
- function Xs(t, e) {
2533
+ function Js(t, e) {
2531
2534
  let n;
2532
2535
  return t.forEach((r, i) => {
2533
2536
  if (r.selection && e-- == 0)
@@ -2551,23 +2554,23 @@ class Oe {
2551
2554
  this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = i, this.prevComposition = o;
2552
2555
  }
2553
2556
  }
2554
- const Js = 20;
2555
- function Zs(t, e, n, r) {
2557
+ const Zs = 20;
2558
+ function Qs(t, e, n, r) {
2556
2559
  let i = n.getMeta($e), o;
2557
2560
  if (i)
2558
2561
  return i.historyState;
2559
- n.getMeta(ta) && (t = new Oe(t.done, t.undone, null, 0, -1));
2562
+ n.getMeta(na) && (t = new Oe(t.done, t.undone, null, 0, -1));
2560
2563
  let s = n.getMeta("appendedTransaction");
2561
2564
  if (n.steps.length == 0)
2562
2565
  return t;
2563
2566
  if (s && s.getMeta($e))
2564
2567
  return s.getMeta($e).redo ? new Oe(t.done.addTransform(n, void 0, r, Bt(e)), t.undone, Rn(n.mapping.maps), t.prevTime, t.prevComposition) : new Oe(t.done, t.undone.addTransform(n, void 0, r, Bt(e)), null, t.prevTime, t.prevComposition);
2565
2568
  if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
2566
- let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !Qs(n, t.prevRanges)), c = s ? Xt(t.prevRanges, n.mapping) : Rn(n.mapping.maps);
2569
+ let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !ea(n, t.prevRanges)), c = s ? Xt(t.prevRanges, n.mapping) : Rn(n.mapping.maps);
2567
2570
  return new Oe(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, Bt(e)), ae.empty, c, n.time, a ?? t.prevComposition);
2568
2571
  } else return (o = n.getMeta("rebased")) ? new Oe(t.done.rebased(n, o), t.undone.rebased(n, o), Xt(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Oe(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Xt(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
2569
2572
  }
2570
- function Qs(t, e) {
2573
+ function ea(t, e) {
2571
2574
  if (!e)
2572
2575
  return !1;
2573
2576
  if (!t.docChanged)
@@ -2594,7 +2597,7 @@ function Xt(t, e) {
2594
2597
  }
2595
2598
  return n;
2596
2599
  }
2597
- function ea(t, e, n) {
2600
+ function ta(t, e, n) {
2598
2601
  let r = Bt(e), i = $e.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
2599
2602
  if (!o)
2600
2603
  return null;
@@ -2614,8 +2617,8 @@ function Bt(t) {
2614
2617
  }
2615
2618
  return Jt;
2616
2619
  }
2617
- const $e = new te("history"), ta = new te("closeHistory");
2618
- function na(t = {}) {
2620
+ const $e = new te("history"), na = new te("closeHistory");
2621
+ function ra(t = {}) {
2619
2622
  return t = {
2620
2623
  depth: t.depth || 100,
2621
2624
  newGroupDelay: t.newGroupDelay || 500
@@ -2626,33 +2629,33 @@ function na(t = {}) {
2626
2629
  return new Oe(ae.empty, ae.empty, null, 0, -1);
2627
2630
  },
2628
2631
  apply(e, n, r) {
2629
- return Zs(n, r, e, t);
2632
+ return Qs(n, r, e, t);
2630
2633
  }
2631
2634
  },
2632
2635
  config: t,
2633
2636
  props: {
2634
2637
  handleDOMEvents: {
2635
2638
  beforeinput(e, n) {
2636
- let r = n.inputType, i = r == "historyUndo" ? wr : r == "historyRedo" ? xr : null;
2637
- return i ? (n.preventDefault(), i(e.state, e.dispatch)) : !1;
2639
+ let r = n.inputType, i = r == "historyUndo" ? xr : r == "historyRedo" ? kr : null;
2640
+ return !i || !e.editable ? !1 : (n.preventDefault(), i(e.state, e.dispatch));
2638
2641
  }
2639
2642
  }
2640
2643
  }
2641
2644
  });
2642
2645
  }
2643
- function br(t, e) {
2646
+ function wr(t, e) {
2644
2647
  return (n, r) => {
2645
2648
  let i = $e.getState(n);
2646
2649
  if (!i || (t ? i.undone : i.done).eventCount == 0)
2647
2650
  return !1;
2648
2651
  if (r) {
2649
- let o = ea(i, n, t);
2652
+ let o = ta(i, n, t);
2650
2653
  o && r(e ? o.scrollIntoView() : o);
2651
2654
  }
2652
2655
  return !0;
2653
2656
  };
2654
2657
  }
2655
- const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2658
+ const xr = wr(!1, !0), kr = wr(!0, !0), ia = K.create({
2656
2659
  name: "history",
2657
2660
  addOptions() {
2658
2661
  return {
@@ -2662,13 +2665,13 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2662
2665
  },
2663
2666
  addCommands() {
2664
2667
  return {
2665
- undo: () => ({ state: t, dispatch: e }) => wr(t, e),
2666
- redo: () => ({ state: t, dispatch: e }) => xr(t, e)
2668
+ undo: () => ({ state: t, dispatch: e }) => xr(t, e),
2669
+ redo: () => ({ state: t, dispatch: e }) => kr(t, e)
2667
2670
  };
2668
2671
  },
2669
2672
  addProseMirrorPlugins() {
2670
2673
  return [
2671
- na(this.options)
2674
+ ra(this.options)
2672
2675
  ];
2673
2676
  },
2674
2677
  addKeyboardShortcuts() {
@@ -2681,7 +2684,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2681
2684
  "Shift-Mod-я": () => this.editor.commands.redo()
2682
2685
  };
2683
2686
  }
2684
- }), ia = Y.create({
2687
+ }), oa = Y.create({
2685
2688
  name: "horizontalRule",
2686
2689
  addOptions() {
2687
2690
  return {
@@ -2698,7 +2701,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2698
2701
  addCommands() {
2699
2702
  return {
2700
2703
  setHorizontalRule: () => ({ chain: t, state: e }) => {
2701
- if (!ys(e, e.schema.nodes[this.name]))
2704
+ if (!bs(e, e.schema.nodes[this.name]))
2702
2705
  return !1;
2703
2706
  const { selection: n } = e, { $from: r, $to: i } = n, o = t();
2704
2707
  return r.parentOffset === 0 ? o.insertContentAt({
@@ -2706,7 +2709,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2706
2709
  to: i.pos
2707
2710
  }, {
2708
2711
  type: this.name
2709
- }) : Yo(n) ? o.insertContentAt(i.pos, {
2712
+ }) : Xo(n) ? o.insertContentAt(i.pos, {
2710
2713
  type: this.name
2711
2714
  }) : o.insertContent({ type: this.name }), o.command(({ tr: s, dispatch: a }) => {
2712
2715
  var l;
@@ -2727,13 +2730,13 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2727
2730
  },
2728
2731
  addInputRules() {
2729
2732
  return [
2730
- gs({
2733
+ ys({
2731
2734
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
2732
2735
  type: this.type
2733
2736
  })
2734
2737
  ];
2735
2738
  }
2736
- }), oa = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, sa = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, aa = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, la = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, ca = Be.create({
2739
+ }), sa = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, aa = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, la = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, ca = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, ua = Be.create({
2737
2740
  name: "italic",
2738
2741
  addOptions() {
2739
2742
  return {
@@ -2777,11 +2780,11 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2777
2780
  addInputRules() {
2778
2781
  return [
2779
2782
  Ue({
2780
- find: oa,
2783
+ find: sa,
2781
2784
  type: this.type
2782
2785
  }),
2783
2786
  Ue({
2784
- find: aa,
2787
+ find: la,
2785
2788
  type: this.type
2786
2789
  })
2787
2790
  ];
@@ -2789,16 +2792,16 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2789
2792
  addPasteRules() {
2790
2793
  return [
2791
2794
  qe({
2792
- find: sa,
2795
+ find: aa,
2793
2796
  type: this.type
2794
2797
  }),
2795
2798
  qe({
2796
- find: la,
2799
+ find: ca,
2797
2800
  type: this.type
2798
2801
  })
2799
2802
  ];
2800
2803
  }
2801
- }), ua = Y.create({
2804
+ }), da = Y.create({
2802
2805
  name: "listItem",
2803
2806
  addOptions() {
2804
2807
  return {
@@ -2826,7 +2829,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2826
2829
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
2827
2830
  };
2828
2831
  }
2829
- }), da = "listItem", Nn = "textStyle", Hn = /^(\d+)\.\s$/, pa = Y.create({
2832
+ }), pa = "listItem", Nn = "textStyle", Hn = /^(\d+)\.\s$/, fa = Y.create({
2830
2833
  name: "orderedList",
2831
2834
  addOptions() {
2832
2835
  return {
@@ -2865,7 +2868,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2865
2868
  },
2866
2869
  addCommands() {
2867
2870
  return {
2868
- toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(da, this.editor.getAttributes(Nn)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2871
+ toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(pa, this.editor.getAttributes(Nn)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
2869
2872
  };
2870
2873
  },
2871
2874
  addKeyboardShortcuts() {
@@ -2892,7 +2895,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2892
2895
  t
2893
2896
  ];
2894
2897
  }
2895
- }), fa = Y.create({
2898
+ }), ha = Y.create({
2896
2899
  name: "paragraph",
2897
2900
  priority: 1e3,
2898
2901
  addOptions() {
@@ -2920,7 +2923,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2920
2923
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
2921
2924
  };
2922
2925
  }
2923
- }), ha = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, ma = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, va = Be.create({
2926
+ }), ma = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, va = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, ga = Be.create({
2924
2927
  name: "strike",
2925
2928
  addOptions() {
2926
2929
  return {
@@ -2963,7 +2966,7 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2963
2966
  addInputRules() {
2964
2967
  return [
2965
2968
  Ue({
2966
- find: ha,
2969
+ find: ma,
2967
2970
  type: this.type
2968
2971
  })
2969
2972
  ];
@@ -2971,27 +2974,27 @@ const wr = br(!1, !0), xr = br(!0, !0), ra = K.create({
2971
2974
  addPasteRules() {
2972
2975
  return [
2973
2976
  qe({
2974
- find: ma,
2977
+ find: va,
2975
2978
  type: this.type
2976
2979
  })
2977
2980
  ];
2978
2981
  }
2979
- }), ga = Y.create({
2982
+ }), ya = Y.create({
2980
2983
  name: "text",
2981
2984
  group: "inline"
2982
- }), rc = K.create({
2985
+ }), ic = K.create({
2983
2986
  name: "starterKit",
2984
2987
  addExtensions() {
2985
2988
  var t, e, n, r, i, o, s, a, l, c, u, d, f, h, y, v, g, w;
2986
2989
  const x = [];
2987
- return this.options.bold !== !1 && x.push(Ts.configure((t = this.options) === null || t === void 0 ? void 0 : t.bold)), this.options.blockquote !== !1 && x.push(ws.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && x.push(Es.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && x.push(Is.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && x.push(Ds.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && x.push($s.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && x.push(Ns.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && x.push(Ks.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && x.push(Us.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && x.push(qs.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && x.push(ra.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && x.push(ia.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && x.push(ca.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && x.push(ua.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && x.push(pa.configure((y = this.options) === null || y === void 0 ? void 0 : y.orderedList)), this.options.paragraph !== !1 && x.push(fa.configure((v = this.options) === null || v === void 0 ? void 0 : v.paragraph)), this.options.strike !== !1 && x.push(va.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && x.push(ga.configure((w = this.options) === null || w === void 0 ? void 0 : w.text)), x;
2990
+ return this.options.bold !== !1 && x.push(As.configure((t = this.options) === null || t === void 0 ? void 0 : t.bold)), this.options.blockquote !== !1 && x.push(xs.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && x.push(Cs.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && x.push(Ls.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && x.push($s.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && x.push(Rs.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && x.push(Hs.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && x.push(Us.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && x.push(qs.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && x.push(Gs.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && x.push(ia.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && x.push(oa.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && x.push(ua.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && x.push(da.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && x.push(fa.configure((y = this.options) === null || y === void 0 ? void 0 : y.orderedList)), this.options.paragraph !== !1 && x.push(ha.configure((v = this.options) === null || v === void 0 ? void 0 : v.paragraph)), this.options.strike !== !1 && x.push(ga.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && x.push(ya.configure((w = this.options) === null || w === void 0 ? void 0 : w.text)), x;
2988
2991
  }
2989
2992
  });
2990
- var U = "top", ie = "bottom", oe = "right", q = "left", bn = "auto", vt = [U, ie, oe, q], Ge = "start", ut = "end", ya = "clippingParents", kr = "viewport", it = "popper", ba = "reference", jn = /* @__PURE__ */ vt.reduce(function(t, e) {
2993
+ var U = "top", ie = "bottom", oe = "right", q = "left", bn = "auto", vt = [U, ie, oe, q], Ge = "start", ut = "end", ba = "clippingParents", Mr = "viewport", it = "popper", wa = "reference", jn = /* @__PURE__ */ vt.reduce(function(t, e) {
2991
2994
  return t.concat([e + "-" + Ge, e + "-" + ut]);
2992
- }, []), Mr = /* @__PURE__ */ [].concat(vt, [bn]).reduce(function(t, e) {
2995
+ }, []), Or = /* @__PURE__ */ [].concat(vt, [bn]).reduce(function(t, e) {
2993
2996
  return t.concat([e, e + "-" + Ge, e + "-" + ut]);
2994
- }, []), wa = "beforeRead", xa = "read", ka = "afterRead", Ma = "beforeMain", Oa = "main", Ta = "afterMain", Aa = "beforeWrite", Ea = "write", Ca = "afterWrite", Sa = [wa, xa, ka, Ma, Oa, Ta, Aa, Ea, Ca];
2997
+ }, []), xa = "beforeRead", ka = "read", Ma = "afterRead", Oa = "beforeMain", Ta = "main", Aa = "afterMain", Ea = "beforeWrite", Ca = "write", Sa = "afterWrite", Ia = [xa, ka, Ma, Oa, Ta, Aa, Ea, Ca, Sa];
2995
2998
  function me(t) {
2996
2999
  return t ? (t.nodeName || "").toLowerCase() : null;
2997
3000
  }
@@ -3018,7 +3021,7 @@ function wn(t) {
3018
3021
  var e = ee(t).ShadowRoot;
3019
3022
  return t instanceof e || t instanceof ShadowRoot;
3020
3023
  }
3021
- function Ia(t) {
3024
+ function La(t) {
3022
3025
  var e = t.state;
3023
3026
  Object.keys(e.elements).forEach(function(n) {
3024
3027
  var r = e.styles[n] || {}, i = e.attributes[n] || {}, o = e.elements[n];
@@ -3028,7 +3031,7 @@ function Ia(t) {
3028
3031
  }));
3029
3032
  });
3030
3033
  }
3031
- function La(t) {
3034
+ function Pa(t) {
3032
3035
  var e = t.state, n = {
3033
3036
  popper: {
3034
3037
  position: e.options.strategy,
@@ -3052,12 +3055,12 @@ function La(t) {
3052
3055
  });
3053
3056
  };
3054
3057
  }
3055
- const Or = {
3058
+ const Tr = {
3056
3059
  name: "applyStyles",
3057
3060
  enabled: !0,
3058
3061
  phase: "write",
3059
- fn: Ia,
3060
- effect: La,
3062
+ fn: La,
3063
+ effect: Pa,
3061
3064
  requires: ["computeStyles"]
3062
3065
  };
3063
3066
  function he(t) {
@@ -3070,14 +3073,14 @@ function rn() {
3070
3073
  return e.brand + "/" + e.version;
3071
3074
  }).join(" ") : navigator.userAgent;
3072
3075
  }
3073
- function Tr() {
3076
+ function Ar() {
3074
3077
  return !/^((?!chrome|android).)*safari/i.test(rn());
3075
3078
  }
3076
3079
  function Xe(t, e, n) {
3077
3080
  e === void 0 && (e = !1), n === void 0 && (n = !1);
3078
3081
  var r = t.getBoundingClientRect(), i = 1, o = 1;
3079
3082
  e && re(t) && (i = t.offsetWidth > 0 && Ye(r.width) / t.offsetWidth || 1, o = t.offsetHeight > 0 && Ye(r.height) / t.offsetHeight || 1);
3080
- var s = Ne(t) ? ee(t) : window, a = s.visualViewport, l = !Tr() && n, c = (r.left + (l && a ? a.offsetLeft : 0)) / i, u = (r.top + (l && a ? a.offsetTop : 0)) / o, d = r.width / i, f = r.height / o;
3083
+ var s = Ne(t) ? ee(t) : window, a = s.visualViewport, l = !Ar() && n, c = (r.left + (l && a ? a.offsetLeft : 0)) / i, u = (r.top + (l && a ? a.offsetTop : 0)) / o, d = r.width / i, f = r.height / o;
3081
3084
  return {
3082
3085
  width: d,
3083
3086
  height: f,
@@ -3098,7 +3101,7 @@ function xn(t) {
3098
3101
  height: r
3099
3102
  };
3100
3103
  }
3101
- function Ar(t, e) {
3104
+ function Er(t, e) {
3102
3105
  var n = e.getRootNode && e.getRootNode();
3103
3106
  if (t.contains(e))
3104
3107
  return !0;
@@ -3115,7 +3118,7 @@ function Ar(t, e) {
3115
3118
  function xe(t) {
3116
3119
  return ee(t).getComputedStyle(t);
3117
3120
  }
3118
- function Pa(t) {
3121
+ function Da(t) {
3119
3122
  return ["table", "td", "th"].indexOf(me(t)) >= 0;
3120
3123
  }
3121
3124
  function Ee(t) {
@@ -3140,7 +3143,7 @@ function _n(t) {
3140
3143
  return !re(t) || // https://github.com/popperjs/popper-core/issues/837
3141
3144
  xe(t).position === "fixed" ? null : t.offsetParent;
3142
3145
  }
3143
- function Da(t) {
3146
+ function $a(t) {
3144
3147
  var e = /firefox/i.test(rn()), n = /Trident/i.test(rn());
3145
3148
  if (n && re(t)) {
3146
3149
  var r = xe(t);
@@ -3157,9 +3160,9 @@ function Da(t) {
3157
3160
  return null;
3158
3161
  }
3159
3162
  function gt(t) {
3160
- for (var e = ee(t), n = _n(t); n && Pa(n) && xe(n).position === "static"; )
3163
+ for (var e = ee(t), n = _n(t); n && Da(n) && xe(n).position === "static"; )
3161
3164
  n = _n(n);
3162
- return n && (me(n) === "html" || me(n) === "body" && xe(n).position === "static") ? e : n || Da(t) || e;
3165
+ return n && (me(n) === "html" || me(n) === "body" && xe(n).position === "static") ? e : n || $a(t) || e;
3163
3166
  }
3164
3167
  function kn(t) {
3165
3168
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -3167,11 +3170,11 @@ function kn(t) {
3167
3170
  function ot(t, e, n) {
3168
3171
  return Re(t, _t(e, n));
3169
3172
  }
3170
- function $a(t, e, n) {
3173
+ function Ra(t, e, n) {
3171
3174
  var r = ot(t, e, n);
3172
3175
  return r > n ? n : r;
3173
3176
  }
3174
- function Er() {
3177
+ function Cr() {
3175
3178
  return {
3176
3179
  top: 0,
3177
3180
  right: 0,
@@ -3179,49 +3182,49 @@ function Er() {
3179
3182
  left: 0
3180
3183
  };
3181
3184
  }
3182
- function Cr(t) {
3183
- return Object.assign({}, Er(), t);
3185
+ function Sr(t) {
3186
+ return Object.assign({}, Cr(), t);
3184
3187
  }
3185
- function Sr(t, e) {
3188
+ function Ir(t, e) {
3186
3189
  return e.reduce(function(n, r) {
3187
3190
  return n[r] = t, n;
3188
3191
  }, {});
3189
3192
  }
3190
- var Ra = function(e, n) {
3193
+ var Ba = function(e, n) {
3191
3194
  return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
3192
3195
  placement: n.placement
3193
- })) : e, Cr(typeof e != "number" ? e : Sr(e, vt));
3196
+ })) : e, Sr(typeof e != "number" ? e : Ir(e, vt));
3194
3197
  };
3195
- function Ba(t) {
3198
+ function Na(t) {
3196
3199
  var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, a = he(n.placement), l = kn(a), c = [q, oe].indexOf(a) >= 0, u = c ? "height" : "width";
3197
3200
  if (!(!o || !s)) {
3198
- var d = Ra(i.padding, n), f = xn(o), h = l === "y" ? U : q, y = l === "y" ? ie : oe, v = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], g = s[l] - n.rects.reference[l], w = gt(o), x = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, T = v / 2 - g / 2, p = d[h], O = x - f[u] - d[y], b = x / 2 - f[u] / 2 + T, A = ot(p, b, O), S = l;
3201
+ var d = Ba(i.padding, n), f = xn(o), h = l === "y" ? U : q, y = l === "y" ? ie : oe, v = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], g = s[l] - n.rects.reference[l], w = gt(o), x = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, T = v / 2 - g / 2, p = d[h], O = x - f[u] - d[y], b = x / 2 - f[u] / 2 + T, A = ot(p, b, O), S = l;
3199
3202
  n.modifiersData[r] = (e = {}, e[S] = A, e.centerOffset = A - b, e);
3200
3203
  }
3201
3204
  }
3202
- function Na(t) {
3205
+ function Ha(t) {
3203
3206
  var e = t.state, n = t.options, r = n.element, i = r === void 0 ? "[data-popper-arrow]" : r;
3204
- i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Ar(e.elements.popper, i) && (e.elements.arrow = i));
3207
+ i != null && (typeof i == "string" && (i = e.elements.popper.querySelector(i), !i) || Er(e.elements.popper, i) && (e.elements.arrow = i));
3205
3208
  }
3206
- const Ha = {
3209
+ const ja = {
3207
3210
  name: "arrow",
3208
3211
  enabled: !0,
3209
3212
  phase: "main",
3210
- fn: Ba,
3211
- effect: Na,
3213
+ fn: Na,
3214
+ effect: Ha,
3212
3215
  requires: ["popperOffsets"],
3213
3216
  requiresIfExists: ["preventOverflow"]
3214
3217
  };
3215
3218
  function Je(t) {
3216
3219
  return t.split("-")[1];
3217
3220
  }
3218
- var ja = {
3221
+ var _a = {
3219
3222
  top: "auto",
3220
3223
  right: "auto",
3221
3224
  bottom: "auto",
3222
3225
  left: "auto"
3223
3226
  };
3224
- function _a(t, e) {
3227
+ function Fa(t, e) {
3225
3228
  var n = t.x, r = t.y, i = e.devicePixelRatio || 1;
3226
3229
  return {
3227
3230
  x: Ye(n * i) / i || 0,
@@ -3259,7 +3262,7 @@ function Fn(t) {
3259
3262
  }
3260
3263
  var R = Object.assign({
3261
3264
  position: a
3262
- }, c && ja), D = u === !0 ? _a({
3265
+ }, c && _a), D = u === !0 ? Fa({
3263
3266
  x: h,
3264
3267
  y: v
3265
3268
  }, ee(n)) : {
@@ -3272,7 +3275,7 @@ function Fn(t) {
3272
3275
  }
3273
3276
  return Object.assign({}, R, (e = {}, e[p] = x ? v + "px" : "", e[T] = w ? h + "px" : "", e.transform = "", e));
3274
3277
  }
3275
- function Fa(t) {
3278
+ function Va(t) {
3276
3279
  var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, s = o === void 0 ? !0 : o, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
3277
3280
  placement: he(e.placement),
3278
3281
  variation: Je(e.placement),
@@ -3295,17 +3298,17 @@ function Fa(t) {
3295
3298
  "data-popper-placement": e.placement
3296
3299
  });
3297
3300
  }
3298
- const Va = {
3301
+ const Wa = {
3299
3302
  name: "computeStyles",
3300
3303
  enabled: !0,
3301
3304
  phase: "beforeWrite",
3302
- fn: Fa,
3305
+ fn: Va,
3303
3306
  data: {}
3304
3307
  };
3305
3308
  var Pt = {
3306
3309
  passive: !0
3307
3310
  };
3308
- function Wa(t) {
3311
+ function za(t) {
3309
3312
  var e = t.state, n = t.instance, r = t.options, i = r.scroll, o = i === void 0 ? !0 : i, s = r.resize, a = s === void 0 ? !0 : s, l = ee(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
3310
3313
  return o && c.forEach(function(u) {
3311
3314
  u.addEventListener("scroll", n.update, Pt);
@@ -3315,16 +3318,16 @@ function Wa(t) {
3315
3318
  }), a && l.removeEventListener("resize", n.update, Pt);
3316
3319
  };
3317
3320
  }
3318
- const za = {
3321
+ const Ka = {
3319
3322
  name: "eventListeners",
3320
3323
  enabled: !0,
3321
3324
  phase: "write",
3322
3325
  fn: function() {
3323
3326
  },
3324
- effect: Wa,
3327
+ effect: za,
3325
3328
  data: {}
3326
3329
  };
3327
- var Ka = {
3330
+ var Ua = {
3328
3331
  left: "right",
3329
3332
  right: "left",
3330
3333
  bottom: "top",
@@ -3332,16 +3335,16 @@ var Ka = {
3332
3335
  };
3333
3336
  function Nt(t) {
3334
3337
  return t.replace(/left|right|bottom|top/g, function(e) {
3335
- return Ka[e];
3338
+ return Ua[e];
3336
3339
  });
3337
3340
  }
3338
- var Ua = {
3341
+ var qa = {
3339
3342
  start: "end",
3340
3343
  end: "start"
3341
3344
  };
3342
3345
  function Vn(t) {
3343
3346
  return t.replace(/start|end/g, function(e) {
3344
- return Ua[e];
3347
+ return qa[e];
3345
3348
  });
3346
3349
  }
3347
3350
  function Mn(t) {
@@ -3354,11 +3357,11 @@ function Mn(t) {
3354
3357
  function On(t) {
3355
3358
  return Xe(Ee(t)).left + Mn(t).scrollLeft;
3356
3359
  }
3357
- function qa(t, e) {
3360
+ function Ga(t, e) {
3358
3361
  var n = ee(t), r = Ee(t), i = n.visualViewport, o = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
3359
3362
  if (i) {
3360
3363
  o = i.width, s = i.height;
3361
- var c = Tr();
3364
+ var c = Ar();
3362
3365
  (c || !c && e === "fixed") && (a = i.offsetLeft, l = i.offsetTop);
3363
3366
  }
3364
3367
  return {
@@ -3368,7 +3371,7 @@ function qa(t, e) {
3368
3371
  y: l
3369
3372
  };
3370
3373
  }
3371
- function Ga(t) {
3374
+ function Ya(t) {
3372
3375
  var e, n = Ee(t), r = Mn(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, o = Re(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = Re(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), a = -r.scrollLeft + On(t), l = -r.scrollTop;
3373
3376
  return xe(i || n).direction === "rtl" && (a += Re(n.clientWidth, i ? i.clientWidth : 0) - o), {
3374
3377
  width: o,
@@ -3381,13 +3384,13 @@ function Tn(t) {
3381
3384
  var e = xe(t), n = e.overflow, r = e.overflowX, i = e.overflowY;
3382
3385
  return /auto|scroll|overlay|hidden/.test(n + i + r);
3383
3386
  }
3384
- function Ir(t) {
3385
- return ["html", "body", "#document"].indexOf(me(t)) >= 0 ? t.ownerDocument.body : re(t) && Tn(t) ? t : Ir(zt(t));
3387
+ function Lr(t) {
3388
+ return ["html", "body", "#document"].indexOf(me(t)) >= 0 ? t.ownerDocument.body : re(t) && Tn(t) ? t : Lr(zt(t));
3386
3389
  }
3387
3390
  function st(t, e) {
3388
3391
  var n;
3389
3392
  e === void 0 && (e = []);
3390
- var r = Ir(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), o = ee(r), s = i ? [o].concat(o.visualViewport || [], Tn(r) ? r : []) : r, a = e.concat(s);
3393
+ var r = Lr(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), o = ee(r), s = i ? [o].concat(o.visualViewport || [], Tn(r) ? r : []) : r, a = e.concat(s);
3391
3394
  return i ? a : (
3392
3395
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
3393
3396
  a.concat(st(zt(s)))
@@ -3401,27 +3404,27 @@ function on(t) {
3401
3404
  bottom: t.y + t.height
3402
3405
  });
3403
3406
  }
3404
- function Ya(t, e) {
3407
+ function Xa(t, e) {
3405
3408
  var n = Xe(t, !1, e === "fixed");
3406
3409
  return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
3407
3410
  }
3408
3411
  function Wn(t, e, n) {
3409
- return e === kr ? on(qa(t, n)) : Ne(e) ? Ya(e, n) : on(Ga(Ee(t)));
3412
+ return e === Mr ? on(Ga(t, n)) : Ne(e) ? Xa(e, n) : on(Ya(Ee(t)));
3410
3413
  }
3411
- function Xa(t) {
3414
+ function Ja(t) {
3412
3415
  var e = st(zt(t)), n = ["absolute", "fixed"].indexOf(xe(t).position) >= 0, r = n && re(t) ? gt(t) : t;
3413
3416
  return Ne(r) ? e.filter(function(i) {
3414
- return Ne(i) && Ar(i, r) && me(i) !== "body";
3417
+ return Ne(i) && Er(i, r) && me(i) !== "body";
3415
3418
  }) : [];
3416
3419
  }
3417
- function Ja(t, e, n, r) {
3418
- var i = e === "clippingParents" ? Xa(t) : [].concat(e), o = [].concat(i, [n]), s = o[0], a = o.reduce(function(l, c) {
3420
+ function Za(t, e, n, r) {
3421
+ var i = e === "clippingParents" ? Ja(t) : [].concat(e), o = [].concat(i, [n]), s = o[0], a = o.reduce(function(l, c) {
3419
3422
  var u = Wn(t, c, r);
3420
3423
  return l.top = Re(u.top, l.top), l.right = _t(u.right, l.right), l.bottom = _t(u.bottom, l.bottom), l.left = Re(u.left, l.left), l;
3421
3424
  }, Wn(t, s, r));
3422
3425
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
3423
3426
  }
3424
- function Lr(t) {
3427
+ function Pr(t) {
3425
3428
  var e = t.reference, n = t.element, r = t.placement, i = r ? he(r) : null, o = r ? Je(r) : null, s = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
3426
3429
  switch (i) {
3427
3430
  case U:
@@ -3470,7 +3473,7 @@ function Lr(t) {
3470
3473
  }
3471
3474
  function dt(t, e) {
3472
3475
  e === void 0 && (e = {});
3473
- var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? ya : a, c = n.rootBoundary, u = c === void 0 ? kr : c, d = n.elementContext, f = d === void 0 ? it : d, h = n.altBoundary, y = h === void 0 ? !1 : h, v = n.padding, g = v === void 0 ? 0 : v, w = Cr(typeof g != "number" ? g : Sr(g, vt)), x = f === it ? ba : it, T = t.rects.popper, p = t.elements[y ? x : f], O = Ja(Ne(p) ? p : p.contextElement || Ee(t.elements.popper), l, u, s), b = Xe(t.elements.reference), A = Lr({
3476
+ var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? ba : a, c = n.rootBoundary, u = c === void 0 ? Mr : c, d = n.elementContext, f = d === void 0 ? it : d, h = n.altBoundary, y = h === void 0 ? !1 : h, v = n.padding, g = v === void 0 ? 0 : v, w = Sr(typeof g != "number" ? g : Ir(g, vt)), x = f === it ? wa : it, T = t.rects.popper, p = t.elements[y ? x : f], O = Za(Ne(p) ? p : p.contextElement || Ee(t.elements.popper), l, u, s), b = Xe(t.elements.reference), A = Pr({
3474
3477
  reference: b,
3475
3478
  element: T,
3476
3479
  placement: i
@@ -3489,9 +3492,9 @@ function dt(t, e) {
3489
3492
  }
3490
3493
  return P;
3491
3494
  }
3492
- function Za(t, e) {
3495
+ function Qa(t, e) {
3493
3496
  e === void 0 && (e = {});
3494
- var n = e, r = n.placement, i = n.boundary, o = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Mr : l, u = Je(r), d = u ? a ? jn : jn.filter(function(y) {
3497
+ var n = e, r = n.placement, i = n.boundary, o = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Or : l, u = Je(r), d = u ? a ? jn : jn.filter(function(y) {
3495
3498
  return Je(y) === u;
3496
3499
  }) : vt, f = d.filter(function(y) {
3497
3500
  return c.indexOf(y) >= 0;
@@ -3509,17 +3512,17 @@ function Za(t, e) {
3509
3512
  return h[y] - h[v];
3510
3513
  });
3511
3514
  }
3512
- function Qa(t) {
3515
+ function el(t) {
3513
3516
  if (he(t) === bn)
3514
3517
  return [];
3515
3518
  var e = Nt(t);
3516
3519
  return [Vn(t), e, Vn(e)];
3517
3520
  }
3518
- function el(t) {
3521
+ function tl(t) {
3519
3522
  var e = t.state, n = t.options, r = t.name;
3520
3523
  if (!e.modifiersData[r]._skip) {
3521
- for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, y = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, g = e.options.placement, w = he(g), x = w === g, T = l || (x || !y ? [Nt(g)] : Qa(g)), p = [g].concat(T).reduce(function(ve, se) {
3522
- return ve.concat(he(se) === bn ? Za(e, {
3524
+ for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, y = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, g = e.options.placement, w = he(g), x = w === g, T = l || (x || !y ? [Nt(g)] : el(g)), p = [g].concat(T).reduce(function(ve, se) {
3525
+ return ve.concat(he(se) === bn ? Qa(e, {
3523
3526
  placement: se,
3524
3527
  boundary: u,
3525
3528
  rootBoundary: d,
@@ -3563,11 +3566,11 @@ function el(t) {
3563
3566
  e.placement !== L && (e.modifiersData[r]._skip = !0, e.placement = L, e.reset = !0);
3564
3567
  }
3565
3568
  }
3566
- const tl = {
3569
+ const nl = {
3567
3570
  name: "flip",
3568
3571
  enabled: !0,
3569
3572
  phase: "main",
3570
- fn: el,
3573
+ fn: tl,
3571
3574
  requiresIfExists: ["offset"],
3572
3575
  data: {
3573
3576
  _skip: !1
@@ -3589,7 +3592,7 @@ function Kn(t) {
3589
3592
  return t[e] >= 0;
3590
3593
  });
3591
3594
  }
3592
- function nl(t) {
3595
+ function rl(t) {
3593
3596
  var e = t.state, n = t.name, r = e.rects.reference, i = e.rects.popper, o = e.modifiersData.preventOverflow, s = dt(e, {
3594
3597
  elementContext: "reference"
3595
3598
  }), a = dt(e, {
@@ -3605,14 +3608,14 @@ function nl(t) {
3605
3608
  "data-popper-escaped": d
3606
3609
  });
3607
3610
  }
3608
- const rl = {
3611
+ const il = {
3609
3612
  name: "hide",
3610
3613
  enabled: !0,
3611
3614
  phase: "main",
3612
3615
  requiresIfExists: ["preventOverflow"],
3613
- fn: nl
3616
+ fn: rl
3614
3617
  };
3615
- function il(t, e, n) {
3618
+ function ol(t, e, n) {
3616
3619
  var r = he(t), i = [q, U].indexOf(r) >= 0 ? -1 : 1, o = typeof n == "function" ? n(Object.assign({}, e, {
3617
3620
  placement: t
3618
3621
  })) : n, s = o[0], a = o[1];
@@ -3624,44 +3627,44 @@ function il(t, e, n) {
3624
3627
  y: a
3625
3628
  };
3626
3629
  }
3627
- function ol(t) {
3628
- var e = t.state, n = t.options, r = t.name, i = n.offset, o = i === void 0 ? [0, 0] : i, s = Mr.reduce(function(u, d) {
3629
- return u[d] = il(d, e.rects, o), u;
3630
+ function sl(t) {
3631
+ var e = t.state, n = t.options, r = t.name, i = n.offset, o = i === void 0 ? [0, 0] : i, s = Or.reduce(function(u, d) {
3632
+ return u[d] = ol(d, e.rects, o), u;
3630
3633
  }, {}), a = s[e.placement], l = a.x, c = a.y;
3631
3634
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = s;
3632
3635
  }
3633
- const sl = {
3636
+ const al = {
3634
3637
  name: "offset",
3635
3638
  enabled: !0,
3636
3639
  phase: "main",
3637
3640
  requires: ["popperOffsets"],
3638
- fn: ol
3641
+ fn: sl
3639
3642
  };
3640
- function al(t) {
3643
+ function ll(t) {
3641
3644
  var e = t.state, n = t.name;
3642
- e.modifiersData[n] = Lr({
3645
+ e.modifiersData[n] = Pr({
3643
3646
  reference: e.rects.reference,
3644
3647
  element: e.rects.popper,
3645
3648
  placement: e.placement
3646
3649
  });
3647
3650
  }
3648
- const ll = {
3651
+ const cl = {
3649
3652
  name: "popperOffsets",
3650
3653
  enabled: !0,
3651
3654
  phase: "read",
3652
- fn: al,
3655
+ fn: ll,
3653
3656
  data: {}
3654
3657
  };
3655
- function cl(t) {
3658
+ function ul(t) {
3656
3659
  return t === "x" ? "y" : "x";
3657
3660
  }
3658
- function ul(t) {
3661
+ function dl(t) {
3659
3662
  var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, h = f === void 0 ? !0 : f, y = n.tetherOffset, v = y === void 0 ? 0 : y, g = dt(e, {
3660
3663
  boundary: l,
3661
3664
  rootBoundary: c,
3662
3665
  padding: d,
3663
3666
  altBoundary: u
3664
- }), w = he(e.placement), x = Je(e.placement), T = !x, p = kn(w), O = cl(p), b = e.modifiersData.popperOffsets, A = e.rects.reference, S = e.rects.popper, L = typeof v == "function" ? v(Object.assign({}, e.rects, {
3667
+ }), w = he(e.placement), x = Je(e.placement), T = !x, p = kn(w), O = ul(p), b = e.modifiersData.popperOffsets, A = e.rects.reference, S = e.rects.popper, L = typeof v == "function" ? v(Object.assign({}, e.rects, {
3665
3668
  placement: e.placement
3666
3669
  })) : v, P = typeof L == "number" ? {
3667
3670
  mainAxis: L,
@@ -3678,39 +3681,39 @@ function ul(t) {
3678
3681
  var I, J = p === "y" ? U : q, Z = p === "y" ? ie : oe, j = p === "y" ? "height" : "width", _ = b[p], H = _ + g[J], ce = _ - g[Z], ue = h ? -S[j] / 2 : 0, Ce = x === Ge ? A[j] : S[j], de = x === Ge ? -S[j] : -A[j], Se = e.elements.arrow, ve = h && Se ? xn(Se) : {
3679
3682
  width: 0,
3680
3683
  height: 0
3681
- }, se = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Er(), ge = se[J], je = se[Z], ye = ot(0, A[j], ve[j]), _e = T ? A[j] / 2 - ue - ye - ge - P.mainAxis : Ce - ye - ge - P.mainAxis, ke = T ? -A[j] / 2 + ue + ye + je + P.mainAxis : de + ye + je + P.mainAxis, Fe = e.elements.arrow && gt(e.elements.arrow), yt = Fe ? p === "y" ? Fe.clientTop || 0 : Fe.clientLeft || 0 : 0, Qe = (I = R == null ? void 0 : R[p]) != null ? I : 0, bt = _ + _e - Qe - yt, wt = _ + ke - Qe, et = ot(h ? _t(H, bt) : H, _, h ? Re(ce, wt) : ce);
3684
+ }, se = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Cr(), ge = se[J], je = se[Z], ye = ot(0, A[j], ve[j]), _e = T ? A[j] / 2 - ue - ye - ge - P.mainAxis : Ce - ye - ge - P.mainAxis, ke = T ? -A[j] / 2 + ue + ye + je + P.mainAxis : de + ye + je + P.mainAxis, Fe = e.elements.arrow && gt(e.elements.arrow), yt = Fe ? p === "y" ? Fe.clientTop || 0 : Fe.clientLeft || 0 : 0, Qe = (I = R == null ? void 0 : R[p]) != null ? I : 0, bt = _ + _e - Qe - yt, wt = _ + ke - Qe, et = ot(h ? _t(H, bt) : H, _, h ? Re(ce, wt) : ce);
3682
3685
  b[p] = et, D[p] = et - _;
3683
3686
  }
3684
3687
  if (a) {
3685
- var tt, xt = p === "x" ? U : q, kt = p === "x" ? ie : oe, be = b[O], Me = O === "y" ? "height" : "width", nt = be + g[xt], Ie = be - g[kt], rt = [U, q].indexOf(w) !== -1, Mt = (tt = R == null ? void 0 : R[O]) != null ? tt : 0, Ot = rt ? nt : be - A[Me] - S[Me] - Mt + P.altAxis, Tt = rt ? be + A[Me] + S[Me] - Mt - P.altAxis : Ie, At = h && rt ? $a(Ot, be, Tt) : ot(h ? Ot : nt, be, h ? Tt : Ie);
3688
+ var tt, xt = p === "x" ? U : q, kt = p === "x" ? ie : oe, be = b[O], Me = O === "y" ? "height" : "width", nt = be + g[xt], Ie = be - g[kt], rt = [U, q].indexOf(w) !== -1, Mt = (tt = R == null ? void 0 : R[O]) != null ? tt : 0, Ot = rt ? nt : be - A[Me] - S[Me] - Mt + P.altAxis, Tt = rt ? be + A[Me] + S[Me] - Mt - P.altAxis : Ie, At = h && rt ? Ra(Ot, be, Tt) : ot(h ? Ot : nt, be, h ? Tt : Ie);
3686
3689
  b[O] = At, D[O] = At - be;
3687
3690
  }
3688
3691
  e.modifiersData[r] = D;
3689
3692
  }
3690
3693
  }
3691
- const dl = {
3694
+ const pl = {
3692
3695
  name: "preventOverflow",
3693
3696
  enabled: !0,
3694
3697
  phase: "main",
3695
- fn: ul,
3698
+ fn: dl,
3696
3699
  requiresIfExists: ["offset"]
3697
3700
  };
3698
- function pl(t) {
3701
+ function fl(t) {
3699
3702
  return {
3700
3703
  scrollLeft: t.scrollLeft,
3701
3704
  scrollTop: t.scrollTop
3702
3705
  };
3703
3706
  }
3704
- function fl(t) {
3705
- return t === ee(t) || !re(t) ? Mn(t) : pl(t);
3706
- }
3707
3707
  function hl(t) {
3708
+ return t === ee(t) || !re(t) ? Mn(t) : fl(t);
3709
+ }
3710
+ function ml(t) {
3708
3711
  var e = t.getBoundingClientRect(), n = Ye(e.width) / t.offsetWidth || 1, r = Ye(e.height) / t.offsetHeight || 1;
3709
3712
  return n !== 1 || r !== 1;
3710
3713
  }
3711
- function ml(t, e, n) {
3714
+ function vl(t, e, n) {
3712
3715
  n === void 0 && (n = !1);
3713
- var r = re(e), i = re(e) && hl(e), o = Ee(e), s = Xe(t, i, n), a = {
3716
+ var r = re(e), i = re(e) && ml(e), o = Ee(e), s = Xe(t, i, n), a = {
3714
3717
  scrollLeft: 0,
3715
3718
  scrollTop: 0
3716
3719
  }, l = {
@@ -3718,14 +3721,14 @@ function ml(t, e, n) {
3718
3721
  y: 0
3719
3722
  };
3720
3723
  return (r || !r && !n) && ((me(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
3721
- Tn(o)) && (a = fl(e)), re(e) ? (l = Xe(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = On(o))), {
3724
+ Tn(o)) && (a = hl(e)), re(e) ? (l = Xe(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = On(o))), {
3722
3725
  x: s.left + a.scrollLeft - l.x,
3723
3726
  y: s.top + a.scrollTop - l.y,
3724
3727
  width: s.width,
3725
3728
  height: s.height
3726
3729
  };
3727
3730
  }
3728
- function vl(t) {
3731
+ function gl(t) {
3729
3732
  var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
3730
3733
  t.forEach(function(o) {
3731
3734
  e.set(o.name, o);
@@ -3744,15 +3747,15 @@ function vl(t) {
3744
3747
  n.has(o.name) || i(o);
3745
3748
  }), r;
3746
3749
  }
3747
- function gl(t) {
3748
- var e = vl(t);
3749
- return Sa.reduce(function(n, r) {
3750
+ function yl(t) {
3751
+ var e = gl(t);
3752
+ return Ia.reduce(function(n, r) {
3750
3753
  return n.concat(e.filter(function(i) {
3751
3754
  return i.phase === r;
3752
3755
  }));
3753
3756
  }, []);
3754
3757
  }
3755
- function yl(t) {
3758
+ function bl(t) {
3756
3759
  var e;
3757
3760
  return function() {
3758
3761
  return e || (e = new Promise(function(n) {
@@ -3762,7 +3765,7 @@ function yl(t) {
3762
3765
  })), e;
3763
3766
  };
3764
3767
  }
3765
- function bl(t) {
3768
+ function wl(t) {
3766
3769
  var e = t.reduce(function(n, r) {
3767
3770
  var i = n[r.name];
3768
3771
  return n[r.name] = i ? Object.assign({}, i, r, {
@@ -3786,7 +3789,7 @@ function qn() {
3786
3789
  return !(r && typeof r.getBoundingClientRect == "function");
3787
3790
  });
3788
3791
  }
3789
- function wl(t) {
3792
+ function xl(t) {
3790
3793
  t === void 0 && (t = {});
3791
3794
  var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, i = e.defaultOptions, o = i === void 0 ? Un : i;
3792
3795
  return function(a, l, c) {
@@ -3810,7 +3813,7 @@ function wl(t) {
3810
3813
  reference: Ne(a) ? st(a) : a.contextElement ? st(a.contextElement) : [],
3811
3814
  popper: st(l)
3812
3815
  };
3813
- var T = gl(bl([].concat(r, u.options.modifiers)));
3816
+ var T = yl(wl([].concat(r, u.options.modifiers)));
3814
3817
  return u.orderedModifiers = T.filter(function(p) {
3815
3818
  return p.enabled;
3816
3819
  }), y(), h.update();
@@ -3825,7 +3828,7 @@ function wl(t) {
3825
3828
  var w = u.elements, x = w.reference, T = w.popper;
3826
3829
  if (qn(x, T)) {
3827
3830
  u.rects = {
3828
- reference: ml(x, gt(T), u.options.strategy === "fixed"),
3831
+ reference: vl(x, gt(T), u.options.strategy === "fixed"),
3829
3832
  popper: xn(T)
3830
3833
  }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
3831
3834
  return u.modifiersData[P.name] = Object.assign({}, P.data);
@@ -3848,7 +3851,7 @@ function wl(t) {
3848
3851
  },
3849
3852
  // Async and optimistically optimized update – it will not be executed if
3850
3853
  // not necessary (debounced to run at most once-per-tick)
3851
- update: yl(function() {
3854
+ update: bl(function() {
3852
3855
  return new Promise(function(g) {
3853
3856
  h.forceUpdate(), g(u);
3854
3857
  });
@@ -3885,15 +3888,15 @@ function wl(t) {
3885
3888
  return h;
3886
3889
  };
3887
3890
  }
3888
- var xl = [za, ll, Va, Or, sl, tl, dl, Ha, rl], kl = /* @__PURE__ */ wl({
3889
- defaultModifiers: xl
3890
- }), Ml = "tippy-box", Pr = "tippy-content", Ol = "tippy-backdrop", Dr = "tippy-arrow", $r = "tippy-svg-arrow", Pe = {
3891
+ var kl = [Ka, cl, Wa, Tr, al, nl, pl, ja, il], Ml = /* @__PURE__ */ xl({
3892
+ defaultModifiers: kl
3893
+ }), Ol = "tippy-box", Dr = "tippy-content", Tl = "tippy-backdrop", $r = "tippy-arrow", Rr = "tippy-svg-arrow", Pe = {
3891
3894
  passive: !0,
3892
3895
  capture: !0
3893
- }, Rr = function() {
3896
+ }, Br = function() {
3894
3897
  return document.body;
3895
3898
  };
3896
- function Tl(t, e) {
3899
+ function Al(t, e) {
3897
3900
  return {}.hasOwnProperty.call(t, e);
3898
3901
  }
3899
3902
  function Zt(t, e, n) {
@@ -3907,7 +3910,7 @@ function An(t, e) {
3907
3910
  var n = {}.toString.call(t);
3908
3911
  return n.indexOf("[object") === 0 && n.indexOf(e + "]") > -1;
3909
3912
  }
3910
- function Br(t, e) {
3913
+ function Nr(t, e) {
3911
3914
  return typeof t == "function" ? t.apply(void 0, e) : t;
3912
3915
  }
3913
3916
  function Gn(t, e) {
@@ -3920,13 +3923,13 @@ function Gn(t, e) {
3920
3923
  }, e);
3921
3924
  };
3922
3925
  }
3923
- function Al(t, e) {
3926
+ function El(t, e) {
3924
3927
  var n = Object.assign({}, t);
3925
3928
  return e.forEach(function(r) {
3926
3929
  delete n[r];
3927
3930
  }), n;
3928
3931
  }
3929
- function El(t) {
3932
+ function Cl(t) {
3930
3933
  return t.split(/\s+/).filter(Boolean);
3931
3934
  }
3932
3935
  function Ke(t) {
@@ -3935,12 +3938,12 @@ function Ke(t) {
3935
3938
  function Yn(t, e) {
3936
3939
  t.indexOf(e) === -1 && t.push(e);
3937
3940
  }
3938
- function Cl(t) {
3941
+ function Sl(t) {
3939
3942
  return t.filter(function(e, n) {
3940
3943
  return t.indexOf(e) === n;
3941
3944
  });
3942
3945
  }
3943
- function Sl(t) {
3946
+ function Il(t) {
3944
3947
  return t.split("-")[0];
3945
3948
  }
3946
3949
  function Ft(t) {
@@ -3959,17 +3962,17 @@ function pt(t) {
3959
3962
  return An(t, e);
3960
3963
  });
3961
3964
  }
3962
- function Il(t) {
3965
+ function Ll(t) {
3963
3966
  return An(t, "NodeList");
3964
3967
  }
3965
- function Ll(t) {
3968
+ function Pl(t) {
3966
3969
  return An(t, "MouseEvent");
3967
3970
  }
3968
- function Pl(t) {
3971
+ function Dl(t) {
3969
3972
  return !!(t && t._tippy && t._tippy.reference === t);
3970
3973
  }
3971
- function Dl(t) {
3972
- return pt(t) ? [t] : Il(t) ? Ft(t) : Array.isArray(t) ? t : Ft(document.querySelectorAll(t));
3974
+ function $l(t) {
3975
+ return pt(t) ? [t] : Ll(t) ? Ft(t) : Array.isArray(t) ? t : Ft(document.querySelectorAll(t));
3973
3976
  }
3974
3977
  function Qt(t, e) {
3975
3978
  t.forEach(function(n) {
@@ -3981,14 +3984,14 @@ function Jn(t, e) {
3981
3984
  n && n.setAttribute("data-state", e);
3982
3985
  });
3983
3986
  }
3984
- function $l(t) {
3987
+ function Rl(t) {
3985
3988
  var e, n = Ke(t), r = n[0];
3986
3989
  return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
3987
3990
  }
3988
- function Rl(t, e) {
3991
+ function Bl(t, e) {
3989
3992
  var n = e.clientX, r = e.clientY;
3990
3993
  return t.every(function(i) {
3991
- var o = i.popperRect, s = i.popperState, a = i.props, l = a.interactiveBorder, c = Sl(s.placement), u = s.modifiersData.offset;
3994
+ var o = i.popperRect, s = i.popperState, a = i.props, l = a.interactiveBorder, c = Il(s.placement), u = s.modifiersData.offset;
3992
3995
  if (!u)
3993
3996
  return !0;
3994
3997
  var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, y = c === "left" ? u.right.x : 0, v = o.top - r + d > l, g = r - o.bottom - f > l, w = o.left - n + h > l, x = n - o.right - y > l;
@@ -4013,24 +4016,24 @@ function Zn(t, e) {
4013
4016
  var fe = {
4014
4017
  isTouch: !1
4015
4018
  }, Qn = 0;
4016
- function Bl() {
4017
- fe.isTouch || (fe.isTouch = !0, window.performance && document.addEventListener("mousemove", Nr));
4019
+ function Nl() {
4020
+ fe.isTouch || (fe.isTouch = !0, window.performance && document.addEventListener("mousemove", Hr));
4018
4021
  }
4019
- function Nr() {
4022
+ function Hr() {
4020
4023
  var t = performance.now();
4021
- t - Qn < 20 && (fe.isTouch = !1, document.removeEventListener("mousemove", Nr)), Qn = t;
4024
+ t - Qn < 20 && (fe.isTouch = !1, document.removeEventListener("mousemove", Hr)), Qn = t;
4022
4025
  }
4023
- function Nl() {
4026
+ function Hl() {
4024
4027
  var t = document.activeElement;
4025
- if (Pl(t)) {
4028
+ if (Dl(t)) {
4026
4029
  var e = t._tippy;
4027
4030
  t.blur && !e.state.isVisible && t.blur();
4028
4031
  }
4029
4032
  }
4030
- function Hl() {
4031
- document.addEventListener("touchstart", Bl, Pe), window.addEventListener("blur", Nl);
4033
+ function jl() {
4034
+ document.addEventListener("touchstart", Nl, Pe), window.addEventListener("blur", Hl);
4032
4035
  }
4033
- var jl = typeof window < "u" && typeof document < "u", _l = jl ? (
4036
+ var _l = typeof window < "u" && typeof document < "u", Fl = _l ? (
4034
4037
  // @ts-ignore
4035
4038
  !!window.msCrypto
4036
4039
  ) : !1;
@@ -4042,7 +4045,7 @@ function er(t) {
4042
4045
  var e = /[ \t]{2,}/g, n = /^[ \t]*/gm;
4043
4046
  return t.replace(e, " ").replace(n, "").trim();
4044
4047
  }
4045
- function Fl(t) {
4048
+ function Vl(t) {
4046
4049
  return er(`
4047
4050
  %ctippy.js
4048
4051
 
@@ -4051,9 +4054,9 @@ function Fl(t) {
4051
4054
  %c👷‍ This is a development-only message. It will be removed in production.
4052
4055
  `);
4053
4056
  }
4054
- function Hr(t) {
4057
+ function jr(t) {
4055
4058
  return [
4056
- Fl(t),
4059
+ Vl(t),
4057
4060
  // title
4058
4061
  "color: #00C584; font-size: 1.3em; font-weight: bold;",
4059
4062
  // message
@@ -4063,32 +4066,32 @@ function Hr(t) {
4063
4066
  ];
4064
4067
  }
4065
4068
  var ft;
4066
- process.env.NODE_ENV !== "production" && Vl();
4067
- function Vl() {
4069
+ process.env.NODE_ENV !== "production" && Wl();
4070
+ function Wl() {
4068
4071
  ft = /* @__PURE__ */ new Set();
4069
4072
  }
4070
4073
  function we(t, e) {
4071
4074
  if (t && !ft.has(e)) {
4072
4075
  var n;
4073
- ft.add(e), (n = console).warn.apply(n, Hr(e));
4076
+ ft.add(e), (n = console).warn.apply(n, jr(e));
4074
4077
  }
4075
4078
  }
4076
4079
  function sn(t, e) {
4077
4080
  if (t && !ft.has(e)) {
4078
4081
  var n;
4079
- ft.add(e), (n = console).error.apply(n, Hr(e));
4082
+ ft.add(e), (n = console).error.apply(n, jr(e));
4080
4083
  }
4081
4084
  }
4082
- function Wl(t) {
4085
+ function zl(t) {
4083
4086
  var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
4084
4087
  sn(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), sn(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
4085
4088
  }
4086
- var jr = {
4089
+ var _r = {
4087
4090
  animateFill: !1,
4088
4091
  followCursor: !1,
4089
4092
  inlinePositioning: !1,
4090
4093
  sticky: !1
4091
- }, zl = {
4094
+ }, Kl = {
4092
4095
  allowHTML: !1,
4093
4096
  animation: "fade",
4094
4097
  arrow: !0,
@@ -4099,7 +4102,7 @@ var jr = {
4099
4102
  theme: "",
4100
4103
  zIndex: 9999
4101
4104
  }, Q = Object.assign({
4102
- appendTo: Rr,
4105
+ appendTo: Br,
4103
4106
  aria: {
4104
4107
  content: "auto",
4105
4108
  expanded: "auto"
@@ -4146,14 +4149,14 @@ var jr = {
4146
4149
  touch: !0,
4147
4150
  trigger: "mouseenter focus",
4148
4151
  triggerTarget: null
4149
- }, jr, zl), Kl = Object.keys(Q), Ul = function(e) {
4150
- process.env.NODE_ENV !== "production" && Fr(e, []);
4152
+ }, _r, Kl), Ul = Object.keys(Q), ql = function(e) {
4153
+ process.env.NODE_ENV !== "production" && Vr(e, []);
4151
4154
  var n = Object.keys(e);
4152
4155
  n.forEach(function(r) {
4153
4156
  Q[r] = e[r];
4154
4157
  });
4155
4158
  };
4156
- function _r(t) {
4159
+ function Fr(t) {
4157
4160
  var e = t.plugins || [], n = e.reduce(function(r, i) {
4158
4161
  var o = i.name, s = i.defaultValue;
4159
4162
  if (o) {
@@ -4164,10 +4167,10 @@ function _r(t) {
4164
4167
  }, {});
4165
4168
  return Object.assign({}, t, n);
4166
4169
  }
4167
- function ql(t, e) {
4168
- var n = e ? Object.keys(_r(Object.assign({}, Q, {
4170
+ function Gl(t, e) {
4171
+ var n = e ? Object.keys(Fr(Object.assign({}, Q, {
4169
4172
  plugins: e
4170
- }))) : Kl, r = n.reduce(function(i, o) {
4173
+ }))) : Ul, r = n.reduce(function(i, o) {
4171
4174
  var s = (t.getAttribute("data-tippy-" + o) || "").trim();
4172
4175
  if (!s)
4173
4176
  return i;
@@ -4185,18 +4188,18 @@ function ql(t, e) {
4185
4188
  }
4186
4189
  function tr(t, e) {
4187
4190
  var n = Object.assign({}, e, {
4188
- content: Br(e.content, [t])
4189
- }, e.ignoreAttributes ? {} : ql(t, e.plugins));
4191
+ content: Nr(e.content, [t])
4192
+ }, e.ignoreAttributes ? {} : Gl(t, e.plugins));
4190
4193
  return n.aria = Object.assign({}, Q.aria, n.aria), n.aria = {
4191
4194
  expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
4192
4195
  content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
4193
4196
  }, n;
4194
4197
  }
4195
- function Fr(t, e) {
4198
+ function Vr(t, e) {
4196
4199
  t === void 0 && (t = {}), e === void 0 && (e = []);
4197
4200
  var n = Object.keys(t);
4198
4201
  n.forEach(function(r) {
4199
- var i = Al(Q, Object.keys(jr)), o = !Tl(i, r);
4202
+ var i = El(Q, Object.keys(_r)), o = !Al(i, r);
4200
4203
  o && (o = e.filter(function(s) {
4201
4204
  return s.name === r;
4202
4205
  }).length === 0), we(o, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -4205,15 +4208,15 @@ function Fr(t, e) {
4205
4208
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
4206
4209
  });
4207
4210
  }
4208
- var Gl = function() {
4211
+ var Yl = function() {
4209
4212
  return "innerHTML";
4210
4213
  };
4211
4214
  function an(t, e) {
4212
- t[Gl()] = e;
4215
+ t[Yl()] = e;
4213
4216
  }
4214
4217
  function nr(t) {
4215
4218
  var e = at();
4216
- return t === !0 ? e.className = Dr : (e.className = $r, pt(t) ? e.appendChild(t) : an(e, t)), e;
4219
+ return t === !0 ? e.className = $r : (e.className = Rr, pt(t) ? e.appendChild(t) : an(e, t)), e;
4217
4220
  }
4218
4221
  function rr(t, e) {
4219
4222
  pt(e.content) ? (an(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? an(t, e.content) : t.textContent = e.content);
@@ -4223,21 +4226,21 @@ function ln(t) {
4223
4226
  return {
4224
4227
  box: e,
4225
4228
  content: n.find(function(r) {
4226
- return r.classList.contains(Pr);
4229
+ return r.classList.contains(Dr);
4227
4230
  }),
4228
4231
  arrow: n.find(function(r) {
4229
- return r.classList.contains(Dr) || r.classList.contains($r);
4232
+ return r.classList.contains($r) || r.classList.contains(Rr);
4230
4233
  }),
4231
4234
  backdrop: n.find(function(r) {
4232
- return r.classList.contains(Ol);
4235
+ return r.classList.contains(Tl);
4233
4236
  })
4234
4237
  };
4235
4238
  }
4236
- function Vr(t) {
4239
+ function Wr(t) {
4237
4240
  var e = at(), n = at();
4238
- n.className = Ml, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
4241
+ n.className = Ol, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
4239
4242
  var r = at();
4240
- r.className = Pr, r.setAttribute("data-state", "hidden"), rr(r, t.props), e.appendChild(n), n.appendChild(r), i(t.props, t.props);
4243
+ r.className = Dr, r.setAttribute("data-state", "hidden"), rr(r, t.props), e.appendChild(n), n.appendChild(r), i(t.props, t.props);
4241
4244
  function i(o, s) {
4242
4245
  var a = ln(e), l = a.box, c = a.content, u = a.arrow;
4243
4246
  s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (o.content !== s.content || o.allowHTML !== s.allowHTML) && rr(c, t.props), s.arrow ? u ? o.arrow !== s.arrow && (l.removeChild(u), l.appendChild(nr(s.arrow))) : l.appendChild(nr(s.arrow)) : u && l.removeChild(u);
@@ -4247,10 +4250,10 @@ function Vr(t) {
4247
4250
  onUpdate: i
4248
4251
  };
4249
4252
  }
4250
- Vr.$$tippy = !0;
4251
- var Yl = 1, Dt = [], tn = [];
4252
- function Xl(t, e) {
4253
- var n = tr(t, Object.assign({}, Q, _r(Xn(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, d, f, h = [], y = Gn(bt, n.interactiveDebounce), v, g = Yl++, w = null, x = Cl(n.plugins), T = {
4253
+ Wr.$$tippy = !0;
4254
+ var Xl = 1, Dt = [], tn = [];
4255
+ function Jl(t, e) {
4256
+ var n = tr(t, Object.assign({}, Q, Fr(Xn(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, d, f, h = [], y = Gn(bt, n.interactiveDebounce), v, g = Xl++, w = null, x = Sl(n.plugins), T = {
4254
4257
  // Is the instance currently enabled?
4255
4258
  isEnabled: !0,
4256
4259
  // Is the tippy currently showing and not transitioning out?
@@ -4274,13 +4277,13 @@ function Xl(t, e) {
4274
4277
  clearDelayTimeouts: Ot,
4275
4278
  setProps: Tt,
4276
4279
  setContent: At,
4277
- show: Kr,
4278
- hide: Ur,
4279
- hideWithInteractivity: qr,
4280
+ show: Ur,
4281
+ hide: qr,
4282
+ hideWithInteractivity: Gr,
4280
4283
  enable: rt,
4281
4284
  disable: Mt,
4282
- unmount: Gr,
4283
- destroy: Yr
4285
+ unmount: Yr,
4286
+ destroy: Xr
4284
4287
  };
4285
4288
  if (!n.render)
4286
4289
  return process.env.NODE_ENV !== "production" && sn(!0, "render() function has not been supplied."), p;
@@ -4310,7 +4313,7 @@ function Xl(t, e) {
4310
4313
  }
4311
4314
  function J() {
4312
4315
  var m = I().parentNode;
4313
- return m ? $l(m) : document;
4316
+ return m ? Rl(m) : document;
4314
4317
  }
4315
4318
  function Z() {
4316
4319
  return ln(b);
@@ -4422,14 +4425,14 @@ function Xl(t, e) {
4422
4425
  passive: !0
4423
4426
  }), ke("touchend", wt, {
4424
4427
  passive: !0
4425
- })), El(p.props.trigger).forEach(function(m) {
4428
+ })), Cl(p.props.trigger).forEach(function(m) {
4426
4429
  if (m !== "manual")
4427
4430
  switch (ke(m, Qe), m) {
4428
4431
  case "mouseenter":
4429
4432
  ke("mouseleave", wt);
4430
4433
  break;
4431
4434
  case "focus":
4432
- ke(_l ? "focusout" : "blur", et);
4435
+ ke(Fl ? "focusout" : "blur", et);
4433
4436
  break;
4434
4437
  case "focusin":
4435
4438
  ke("focusout", et);
@@ -4447,7 +4450,7 @@ function Xl(t, e) {
4447
4450
  var k, M = !1;
4448
4451
  if (!(!p.state.isEnabled || tt(m) || a)) {
4449
4452
  var C = ((k = u) == null ? void 0 : k.type) === "focus";
4450
- u = m, v = m.currentTarget, ue(), !p.state.isVisible && Ll(m) && Dt.forEach(function(E) {
4453
+ u = m, v = m.currentTarget, ue(), !p.state.isVisible && Pl(m) && Dt.forEach(function(E) {
4451
4454
  return E(m);
4452
4455
  }), m.type === "click" && (p.props.trigger.indexOf("mouseenter") < 0 || s) && p.props.hideOnClick !== !1 && p.state.isVisible ? M = !0 : nt(m), m.type === "click" && (s = !M), M && !C && Ie(m);
4453
4456
  }
@@ -4463,7 +4466,7 @@ function Xl(t, e) {
4463
4466
  props: n
4464
4467
  } : null;
4465
4468
  }).filter(Boolean);
4466
- Rl(C, m) && (Ce(), Ie(m));
4469
+ Bl(C, m) && (Ce(), Ie(m));
4467
4470
  }
4468
4471
  }
4469
4472
  function wt(m) {
@@ -4495,7 +4498,7 @@ function Xl(t, e) {
4495
4498
  fn: function(Et) {
4496
4499
  var We = Et.state;
4497
4500
  if (D()) {
4498
- var Xr = Z(), Ut = Xr.box;
4501
+ var Jr = Z(), Ut = Jr.box;
4499
4502
  ["placement", "reference-hidden", "escaped"].forEach(function(Ct) {
4500
4503
  Ct === "placement" ? Ut.setAttribute("data-placement", We.placement) : We.attributes.popper["data-popper-" + Ct] ? Ut.setAttribute("data-" + Ct, "") : Ut.removeAttribute("data-" + Ct);
4501
4504
  }), We.attributes.popper = {};
@@ -4533,7 +4536,7 @@ function Xl(t, e) {
4533
4536
  element: ne,
4534
4537
  padding: 3
4535
4538
  }
4536
- }), Le.push.apply(Le, (k == null ? void 0 : k.modifiers) || []), p.popperInstance = kl(Ve, b, Object.assign({}, k, {
4539
+ }), Le.push.apply(Le, (k == null ? void 0 : k.modifiers) || []), p.popperInstance = Ml(Ve, b, Object.assign({}, k, {
4537
4540
  placement: M,
4538
4541
  onFirstUpdate: f,
4539
4542
  modifiers: Le
@@ -4544,7 +4547,7 @@ function Xl(t, e) {
4544
4547
  }
4545
4548
  function be() {
4546
4549
  var m = p.props.appendTo, k, M = I();
4547
- p.props.interactive && m === Rr || m === "parent" ? k = M.parentNode : k = Br(m, [M]), k.contains(b) || k.appendChild(b), p.state.isMounted = !0, xt(), process.env.NODE_ENV !== "production" && we(p.props.interactive && m === Q.appendTo && M.nextElementSibling !== b, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
4550
+ p.props.interactive && m === Br || m === "parent" ? k = M.parentNode : k = Nr(m, [M]), k.contains(b) || k.appendChild(b), p.state.isMounted = !0, xt(), process.env.NODE_ENV !== "production" && we(p.props.interactive && m === Q.appendTo && M.nextElementSibling !== b, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
4548
4551
 
4549
4552
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
4550
4553
 
@@ -4603,7 +4606,7 @@ function Xl(t, e) {
4603
4606
  content: m
4604
4607
  });
4605
4608
  }
4606
- function Kr() {
4609
+ function Ur() {
4607
4610
  process.env.NODE_ENV !== "production" && we(p.state.isDestroyed, ze("show"));
4608
4611
  var m = p.state.isVisible, k = p.state.isDestroyed, M = !p.state.isEnabled, C = fe.isTouch && !p.props.touch, E = Zt(p.props.duration, 0, Q.duration);
4609
4612
  if (!(m || k || M || C) && !I().hasAttribute("disabled") && (H("onShow", [p], !1), p.props.onShow(p) !== !1)) {
@@ -4625,7 +4628,7 @@ function Xl(t, e) {
4625
4628
  }, be();
4626
4629
  }
4627
4630
  }
4628
- function Ur() {
4631
+ function qr() {
4629
4632
  process.env.NODE_ENV !== "production" && we(p.state.isDestroyed, ze("hide"));
4630
4633
  var m = !p.state.isVisible, k = p.state.isDestroyed, M = !p.state.isEnabled, C = Zt(p.props.duration, 1, Q.duration);
4631
4634
  if (!(m || k || M) && (H("onHide", [p], !1), p.props.onHide(p) !== !1)) {
@@ -4636,27 +4639,27 @@ function Xl(t, e) {
4636
4639
  ce(), ue(), p.props.animation ? D() && je(C, p.unmount) : p.unmount();
4637
4640
  }
4638
4641
  }
4639
- function qr(m) {
4642
+ function Gr(m) {
4640
4643
  process.env.NODE_ENV !== "production" && we(p.state.isDestroyed, ze("hideWithInteractivity")), J().addEventListener("mousemove", y), Yn(Dt, y), y(m);
4641
4644
  }
4642
- function Gr() {
4645
+ function Yr() {
4643
4646
  process.env.NODE_ENV !== "production" && we(p.state.isDestroyed, ze("unmount")), p.state.isVisible && p.hide(), p.state.isMounted && (kt(), Me().forEach(function(m) {
4644
4647
  m._tippy.unmount();
4645
4648
  }), b.parentNode && b.parentNode.removeChild(b), tn = tn.filter(function(m) {
4646
4649
  return m !== p;
4647
4650
  }), p.state.isMounted = !1, H("onHidden", [p]));
4648
4651
  }
4649
- function Yr() {
4652
+ function Xr() {
4650
4653
  process.env.NODE_ENV !== "production" && we(p.state.isDestroyed, ze("destroy")), !p.state.isDestroyed && (p.clearDelayTimeouts(), p.unmount(), yt(), delete t._tippy, p.state.isDestroyed = !0, H("onDestroy", [p]));
4651
4654
  }
4652
4655
  }
4653
4656
  function Ze(t, e) {
4654
4657
  e === void 0 && (e = {});
4655
4658
  var n = Q.plugins.concat(e.plugins || []);
4656
- process.env.NODE_ENV !== "production" && (Wl(t), Fr(e, n)), Hl();
4659
+ process.env.NODE_ENV !== "production" && (zl(t), Vr(e, n)), jl();
4657
4660
  var r = Object.assign({}, e, {
4658
4661
  plugins: n
4659
- }), i = Dl(t);
4662
+ }), i = $l(t);
4660
4663
  if (process.env.NODE_ENV !== "production") {
4661
4664
  var o = pt(r.content), s = i.length > 1;
4662
4665
  we(o && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
@@ -4667,15 +4670,15 @@ function Ze(t, e) {
4667
4670
  `, "2) content: () => element.cloneNode(true)"].join(" "));
4668
4671
  }
4669
4672
  var a = i.reduce(function(l, c) {
4670
- var u = c && Xl(c, r);
4673
+ var u = c && Jl(c, r);
4671
4674
  return u && l.push(u), l;
4672
4675
  }, []);
4673
4676
  return pt(t) ? a[0] : a;
4674
4677
  }
4675
4678
  Ze.defaultProps = Q;
4676
- Ze.setDefaultProps = Ul;
4679
+ Ze.setDefaultProps = ql;
4677
4680
  Ze.currentInput = fe;
4678
- Object.assign({}, Or, {
4681
+ Object.assign({}, Tr, {
4679
4682
  effect: function(e) {
4680
4683
  var n = e.state, r = {
4681
4684
  popper: {
@@ -4693,12 +4696,12 @@ Object.assign({}, Or, {
4693
4696
  }
4694
4697
  });
4695
4698
  Ze.setDefaultProps({
4696
- render: Vr
4699
+ render: Wr
4697
4700
  });
4698
- class Jl {
4701
+ class Zl {
4699
4702
  constructor({ editor: e, element: n, view: r, tippyOptions: i = {}, updateDelay: o = 250, shouldShow: s }) {
4700
4703
  this.preventHide = !1, this.shouldShow = ({ view: a, state: l, from: c, to: u }) => {
4701
- const { doc: d, selection: f } = l, { empty: h } = f, y = !d.textBetween(c, u).length && Pi(l.selection), v = this.element.contains(document.activeElement);
4704
+ const { doc: d, selection: f } = l, { empty: h } = f, y = !d.textBetween(c, u).length && Di(l.selection), v = this.element.contains(document.activeElement);
4702
4705
  return !(!(a.hasFocus() || v) || h || y || !this.editor.isEditable);
4703
4706
  }, this.mousedownHandler = () => {
4704
4707
  this.preventHide = !0;
@@ -4741,7 +4744,7 @@ class Jl {
4741
4744
  }
4742
4745
  (f = this.tippy) === null || f === void 0 || f.setProps({
4743
4746
  getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
4744
- if (Di(y.selection)) {
4747
+ if ($i(y.selection)) {
4745
4748
  let b = a.nodeDOM(T);
4746
4749
  if (b) {
4747
4750
  const A = b.dataset.nodeViewWrapper ? b : b.querySelector("[data-node-view-wrapper]");
@@ -4789,9 +4792,9 @@ class Jl {
4789
4792
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
4790
4793
  }
4791
4794
  }
4792
- const Wr = (t) => new X({
4795
+ const zr = (t) => new X({
4793
4796
  key: typeof t.pluginKey == "string" ? new te(t.pluginKey) : t.pluginKey,
4794
- view: (e) => new Jl({ view: e, ...t })
4797
+ view: (e) => new Zl({ view: e, ...t })
4795
4798
  });
4796
4799
  cn.create({
4797
4800
  name: "bubbleMenu",
@@ -4806,7 +4809,7 @@ cn.create({
4806
4809
  },
4807
4810
  addProseMirrorPlugins() {
4808
4811
  return this.options.element ? [
4809
- Wr({
4812
+ zr({
4810
4813
  pluginKey: this.options.pluginKey,
4811
4814
  editor: this.editor,
4812
4815
  element: this.options.element,
@@ -4817,9 +4820,9 @@ cn.create({
4817
4820
  ] : [];
4818
4821
  }
4819
4822
  });
4820
- class Zl {
4823
+ class Ql {
4821
4824
  getTextContent(e) {
4822
- return $i(e, { textSerializers: Ri(this.editor.schema) });
4825
+ return Ri(e, { textSerializers: Bi(this.editor.schema) });
4823
4826
  }
4824
4827
  constructor({ editor: e, element: n, view: r, tippyOptions: i = {}, shouldShow: o }) {
4825
4828
  this.preventHide = !1, this.shouldShow = ({ view: s, state: a }) => {
@@ -4884,9 +4887,9 @@ class Zl {
4884
4887
  !((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
4885
4888
  }
4886
4889
  }
4887
- const zr = (t) => new X({
4890
+ const Kr = (t) => new X({
4888
4891
  key: typeof t.pluginKey == "string" ? new te(t.pluginKey) : t.pluginKey,
4889
- view: (e) => new Zl({ view: e, ...t })
4892
+ view: (e) => new Ql({ view: e, ...t })
4890
4893
  });
4891
4894
  cn.create({
4892
4895
  name: "floatingMenu",
@@ -4900,7 +4903,7 @@ cn.create({
4900
4903
  },
4901
4904
  addProseMirrorPlugins() {
4902
4905
  return this.options.element ? [
4903
- zr({
4906
+ Kr({
4904
4907
  pluginKey: this.options.pluginKey,
4905
4908
  editor: this.editor,
4906
4909
  element: this.options.element,
@@ -4938,7 +4941,7 @@ ht({
4938
4941
  const n = pn(null);
4939
4942
  return cr(() => {
4940
4943
  const { updateDelay: r, editor: i, pluginKey: o, shouldShow: s, tippyOptions: a } = t;
4941
- i.registerPlugin(Wr({
4944
+ i.registerPlugin(zr({
4942
4945
  updateDelay: r,
4943
4946
  editor: i,
4944
4947
  element: n.value,
@@ -4956,7 +4959,7 @@ ht({
4956
4959
  }
4957
4960
  });
4958
4961
  function ir(t) {
4959
- return Hi((e, n) => ({
4962
+ return ji((e, n) => ({
4960
4963
  get() {
4961
4964
  return e(), t;
4962
4965
  },
@@ -4969,11 +4972,11 @@ function ir(t) {
4969
4972
  }
4970
4973
  }));
4971
4974
  }
4972
- class ic extends Bi {
4975
+ class oc extends Ni {
4973
4976
  constructor(e = {}) {
4974
4977
  return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = ir(this.view.state), this.reactiveExtensionStorage = ir(this.extensionStorage), this.on("beforeTransaction", ({ nextState: n }) => {
4975
4978
  this.reactiveState.value = n, this.reactiveExtensionStorage.value = this.extensionStorage;
4976
- }), Ni(this);
4979
+ }), Hi(this);
4977
4980
  }
4978
4981
  get state() {
4979
4982
  return this.reactiveState ? this.reactiveState.value : this.view.state;
@@ -5005,13 +5008,13 @@ ht({
5005
5008
  }
5006
5009
  },
5007
5010
  setup(t) {
5008
- const e = pn(), n = ji();
5009
- return _i(() => {
5011
+ const e = pn(), n = _i();
5012
+ return Fi(() => {
5010
5013
  const r = t.editor;
5011
- r && r.options.element && e.value && Fi(() => {
5014
+ r && r.options.element && e.value && Vi(() => {
5012
5015
  if (!e.value || !r.options.element.firstChild)
5013
5016
  return;
5014
- const i = Vi(e.value);
5017
+ const i = Wi(e.value);
5015
5018
  e.value.append(...r.options.element.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
5016
5019
  ...n.appContext,
5017
5020
  // Vue internally uses prototype chain to forward/shadow injects across the entire component chain
@@ -5061,7 +5064,7 @@ ht({
5061
5064
  const n = pn(null);
5062
5065
  return cr(() => {
5063
5066
  const { pluginKey: r, editor: i, tippyOptions: o, shouldShow: s } = t;
5064
- i.registerPlugin(zr({
5067
+ i.registerPlugin(Kr({
5065
5068
  pluginKey: r,
5066
5069
  editor: i,
5067
5070
  element: n.value,
@@ -5118,8 +5121,8 @@ ht({
5118
5121
  }
5119
5122
  });
5120
5123
  export {
5121
- ic as E,
5122
- tc as I,
5123
- nc as P,
5124
- rc as S
5124
+ oc as E,
5125
+ nc as I,
5126
+ rc as P,
5127
+ ic as S
5125
5128
  };