tuikit-atomicx-vue3 4.4.0 → 4.5.1

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 (721) hide show
  1. package/.eslintrc.cjs +6 -2
  2. package/dist/DurationSelector.vue_vue_type_script_setup_true_lang-RndH6NtJ.js +54 -0
  3. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D9jiYNFu.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +31 -29
  4. package/dist/{PopoverTrigger-L8abAry7.js → PopoverPortal-DghpKKm8.js} +91 -136
  5. package/dist/PopoverTrigger-BajjNkGO.js +54 -0
  6. package/dist/{PopperContent-XdhqL8Y2.js → PopperContent-SLoFuK7k.js} +6 -6
  7. package/dist/{Teleport-CSEuZbpM.js → Teleport-DFrneqLM.js} +4 -4
  8. package/dist/TimezoneSelector.vue_vue_type_script_setup_true_lang-C-lovW-l.js +62 -0
  9. package/dist/baseComp/AudioIcon.js +7 -7
  10. package/dist/baseComp/Input/InputH5.vue.d.ts +1 -1
  11. package/dist/baseComp/Input/InputPC.vue.d.ts +1 -1
  12. package/dist/baseComp/Input/InputWX.vue.d.ts +1 -1
  13. package/dist/baseComp/Input/index.d.ts +15 -15
  14. package/dist/baseComp/Modal/Modal.js +3 -3
  15. package/dist/changeNameCardDialog.vue_vue_type_script_setup_true_lang-a4FmKskP.js +41 -0
  16. package/dist/components/AudioSetting/AudioMediaControl.js +23 -23
  17. package/dist/components/AudioSetting/AudioRequestDialog.js +86 -2
  18. package/dist/components/AudioSetting/AudioSettingTab.js +32 -33
  19. package/dist/components/AudioSetting/MicrophoneSelect.js +14 -15
  20. package/dist/components/AudioSetting/SpeakerSelect.js +16 -17
  21. package/dist/components/AudioSetting/index.js +29 -3
  22. package/dist/components/AudioSettingPanel/MicrophoneSelect.js +61 -0
  23. package/dist/components/AudioSettingPanel/MicrophoneSelect.vue.d.ts +29 -0
  24. package/dist/components/AudioSettingPanel/SpeakerSelect.js +61 -0
  25. package/dist/components/AudioSettingPanel/SpeakerSelect.vue.d.ts +29 -0
  26. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +12 -6
  27. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +12 -6
  28. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +12 -6
  29. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +12 -6
  30. package/dist/components/AudioSettingPanel/index.d.ts +49 -2
  31. package/dist/components/AudioSettingPanel/index.js +127 -94
  32. package/dist/components/AudioSettingPanel/index.vue.d.ts +49 -1
  33. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +10 -9
  34. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  35. package/dist/components/BarrageInput/TextEditor/EditorCore.js +16 -14
  36. package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -1
  37. package/dist/components/BarrageInput/index.d.ts +6 -6
  38. package/dist/components/BarrageList/BarrageList.js +7 -7
  39. package/dist/components/BarrageList/BarrageListH5.js +7 -7
  40. package/dist/components/BarrageList/BarrageListState.d.ts +5 -27
  41. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
  42. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
  43. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +11 -11
  44. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
  45. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +4 -4
  46. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +1 -1
  47. package/dist/components/CameraButton/index.js +7 -7
  48. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
  49. package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +2 -2
  50. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
  51. package/dist/components/ConversationList/ConversationList.vue.d.ts +190 -190
  52. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +82 -82
  53. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +62 -40
  54. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +30 -26
  55. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +27 -23
  56. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +1 -1
  57. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +67 -65
  58. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +16 -16
  59. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +32 -30
  60. package/dist/components/ConversationList/ConversationPreview/utils.d.ts +2 -2
  61. package/dist/components/ConversationList/ConversationPreview/utils.js +81 -35
  62. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
  63. package/dist/components/ConversationList/i18n/en-US.d.ts +10 -1
  64. package/dist/components/ConversationList/i18n/en-US.js +11 -2
  65. package/dist/components/ConversationList/i18n/zh-CN.d.ts +10 -1
  66. package/dist/components/ConversationList/i18n/zh-CN.js +11 -2
  67. package/dist/components/ConversationList/index.d.ts +442 -442
  68. package/dist/components/FreeBeautyPanel/FreeBeautyPanel.js +257 -0
  69. package/dist/components/FreeBeautyPanel/FreeBeautyPanel.vue.d.ts +6 -0
  70. package/dist/components/FreeBeautyPanel/i18n/en-US/index.d.ts +15 -0
  71. package/dist/components/FreeBeautyPanel/i18n/en-US/index.js +19 -0
  72. package/dist/components/FreeBeautyPanel/i18n/index.d.ts +4 -0
  73. package/dist/components/FreeBeautyPanel/i18n/index.js +6 -0
  74. package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.d.ts +15 -0
  75. package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.js +19 -0
  76. package/dist/components/FreeBeautyPanel/index.d.ts +6 -0
  77. package/dist/components/FreeBeautyPanel/index.js +10 -0
  78. package/dist/components/LiveMonitorView/LiveMonitorView.js +11 -11
  79. package/dist/components/LiveScenePanel/index.d.ts +1 -2
  80. package/dist/components/LiveScenePanel/index.js +48 -46
  81. package/dist/components/LiveView/DefaultStreamViewUI.js +10 -10
  82. package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
  83. package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
  84. package/dist/components/LiveView/PlayerControl/MultiResolution.js +58 -64
  85. package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +1 -7
  86. package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -83
  87. package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +6 -6
  88. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +153 -194
  89. package/dist/components/LiveView/index.d.ts +37 -2
  90. package/dist/components/LiveView/index.js +29 -29
  91. package/dist/components/MessageInput/AttachmentPicker/index.js +10 -9
  92. package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
  93. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +17 -16
  94. package/dist/components/MessageInput/MessageInput.js +1 -1
  95. package/dist/components/MessageInput/MessageInput.vue.d.ts +4 -1
  96. package/dist/components/MessageInput/QuotedMessagePreview/index.js +35 -35
  97. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +14 -12
  98. package/dist/components/MessageInput/TextEditor/EditorCore.js +59 -108
  99. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +5 -1
  100. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +229 -0
  101. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue.d.ts +15 -0
  102. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
  103. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
  104. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.d.ts +1 -0
  105. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +22 -0
  106. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.d.ts +3 -0
  107. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +15 -0
  108. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
  109. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
  110. package/dist/components/MessageInput/TextEditor/extensions/index.d.ts +8 -0
  111. package/dist/components/MessageInput/TextEditor/extensions/index.js +12 -0
  112. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.d.ts +5 -0
  113. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +330 -0
  114. package/dist/components/MessageInput/TextEditor/index.js +64 -55
  115. package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
  116. package/dist/components/MessageInput/i18n/en-US.d.ts +3 -0
  117. package/dist/components/MessageInput/i18n/en-US.js +4 -1
  118. package/dist/components/MessageInput/i18n/index.d.ts +10 -0
  119. package/dist/components/MessageInput/i18n/zh-CN.d.ts +7 -0
  120. package/dist/components/MessageInput/i18n/zh-CN.js +8 -1
  121. package/dist/components/MessageInput/index.d.ts +60 -30
  122. package/dist/components/MessageInput/index.js +1 -1
  123. package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +18 -18
  124. package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
  125. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +119 -89
  126. package/dist/components/MessageList/Message/ImageMessage/ImagePreview.js +142 -0
  127. package/dist/components/MessageList/Message/ImageMessage/ImagePreview.vue.d.ts +20 -0
  128. package/dist/components/MessageList/Message/Message.vue.d.ts +8 -0
  129. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
  130. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +74 -69
  131. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +8 -0
  132. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
  133. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
  134. package/dist/components/MessageList/Message/index.js +8 -4
  135. package/dist/components/MessageList/MessageList.js +98 -90
  136. package/dist/components/MessageList/MessageList.vue.d.ts +1 -1
  137. package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
  138. package/dist/components/MessageList/i18n/en-US.js +66 -2
  139. package/dist/components/MessageList/i18n/index.d.ts +128 -0
  140. package/dist/components/MessageList/i18n/index.js +6 -6
  141. package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
  142. package/dist/components/MessageList/i18n/zh-CN.js +64 -0
  143. package/dist/components/MessageList/index.d.ts +21 -3
  144. package/dist/components/MicButton/index.js +13 -13
  145. package/dist/components/RoomParticipantList/ParticipantAction.js +78 -0
  146. package/dist/components/RoomParticipantList/ParticipantAction.vue.d.ts +17 -0
  147. package/dist/components/RoomParticipantList/ParticipantItem.js +82 -0
  148. package/dist/components/RoomParticipantList/ParticipantItem.vue.d.ts +27 -0
  149. package/dist/components/RoomParticipantList/PendingParticipantItem.js +75 -0
  150. package/dist/components/RoomParticipantList/PendingParticipantItem.vue.d.ts +16 -0
  151. package/dist/components/RoomParticipantList/RoomAction.js +89 -0
  152. package/dist/components/RoomParticipantList/RoomAction.vue.d.ts +2 -0
  153. package/dist/components/RoomParticipantList/i18n/en-US/index.d.ts +66 -0
  154. package/dist/components/RoomParticipantList/i18n/en-US/index.js +69 -0
  155. package/dist/components/RoomParticipantList/i18n/index.d.ts +2 -0
  156. package/dist/components/RoomParticipantList/i18n/index.js +6 -0
  157. package/dist/components/RoomParticipantList/i18n/zh-CN/index.d.ts +66 -0
  158. package/dist/components/RoomParticipantList/i18n/zh-CN/index.js +69 -0
  159. package/dist/components/RoomParticipantList/index.d.ts +2 -0
  160. package/dist/components/RoomParticipantList/index.js +171 -0
  161. package/dist/components/RoomParticipantList/index.vue.d.ts +2 -0
  162. package/dist/components/RoomParticipantList/useParticpantAction/index.d.ts +15 -0
  163. package/dist/components/RoomParticipantList/useParticpantAction/index.js +71 -0
  164. package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.d.ts +19 -0
  165. package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.js +36 -0
  166. package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.d.ts +19 -0
  167. package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.js +42 -0
  168. package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.d.ts +11 -0
  169. package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.js +34 -0
  170. package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.d.ts +11 -0
  171. package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.js +31 -0
  172. package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.js +4 -0
  173. package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue.d.ts +17 -0
  174. package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.d.ts +11 -0
  175. package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.js +61 -0
  176. package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.d.ts +11 -0
  177. package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.js +54 -0
  178. package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.d.ts +19 -0
  179. package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.js +40 -0
  180. package/dist/components/RoomParticipantList/useRoomAction/index.d.ts +8 -0
  181. package/dist/components/RoomParticipantList/useRoomAction/index.js +20 -0
  182. package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.d.ts +5 -0
  183. package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.js +51 -0
  184. package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.d.ts +8 -0
  185. package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.js +60 -0
  186. package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.d.ts +5 -0
  187. package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.js +50 -0
  188. package/dist/components/RoomParticipantView/StreamPlay.js +74 -0
  189. package/dist/components/RoomParticipantView/StreamPlay.vue.d.ts +66 -0
  190. package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.d.ts +56 -0
  191. package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.js +94 -0
  192. package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.d.ts +58 -0
  193. package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.js +97 -0
  194. package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.d.ts +46 -0
  195. package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.js +100 -0
  196. package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.d.ts +92 -0
  197. package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.js +177 -0
  198. package/dist/components/RoomParticipantView/StreamPlayManager/index.d.ts +119 -0
  199. package/dist/components/RoomParticipantView/StreamPlayManager/index.js +298 -0
  200. package/dist/components/RoomParticipantView/StreamPlayManager/types.d.ts +14 -0
  201. package/dist/components/RoomParticipantView/StreamPlayManager/types.js +4 -0
  202. package/dist/components/RoomParticipantView/index.d.ts +99 -0
  203. package/dist/components/RoomParticipantView/index.js +32 -0
  204. package/dist/components/RoomParticipantView/index.vue.d.ts +34 -0
  205. package/dist/components/RoomView/ArrowStroke.js +43 -0
  206. package/dist/components/RoomView/ArrowStroke.vue.d.ts +20 -0
  207. package/dist/components/RoomView/GridLayout.js +119 -0
  208. package/dist/components/RoomView/GridLayout.vue.d.ts +20 -0
  209. package/dist/components/RoomView/SpeakerLayout.js +141 -0
  210. package/dist/components/RoomView/SpeakerLayout.vue.d.ts +32 -0
  211. package/dist/components/RoomView/index.d.ts +52 -0
  212. package/dist/components/RoomView/index.js +49 -0
  213. package/dist/components/RoomView/index.vue.d.ts +46 -0
  214. package/dist/components/RoomView/useRoomToolbar.d.ts +5 -0
  215. package/dist/components/RoomView/useRoomToolbar.js +36 -0
  216. package/dist/components/RoomView/useRoomView.d.ts +13 -0
  217. package/dist/components/RoomView/useRoomView.js +40 -0
  218. package/dist/components/RoomView/useStreamItemDimensions.d.ts +30 -0
  219. package/dist/components/RoomView/useStreamItemDimensions.js +57 -0
  220. package/dist/components/ScheduleRoomPanel/Datepicker.js +162 -0
  221. package/dist/components/ScheduleRoomPanel/Datepicker.vue.d.ts +18 -0
  222. package/dist/components/ScheduleRoomPanel/DurationSelector.js +4 -0
  223. package/dist/components/ScheduleRoomPanel/DurationSelector.vue.d.ts +39 -0
  224. package/dist/components/ScheduleRoomPanel/RoomDetail.js +113 -0
  225. package/dist/components/ScheduleRoomPanel/RoomDetail.vue.d.ts +31 -0
  226. package/dist/components/ScheduleRoomPanel/RoomEdit.js +281 -0
  227. package/dist/components/ScheduleRoomPanel/RoomEdit.vue.d.ts +23 -0
  228. package/dist/components/ScheduleRoomPanel/RoomShare.js +110 -0
  229. package/dist/components/ScheduleRoomPanel/RoomShare.vue.d.ts +16 -0
  230. package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +385 -0
  231. package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.vue.d.ts +40 -0
  232. package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +345 -0
  233. package/dist/components/ScheduleRoomPanel/ScheduledRoomList.vue.d.ts +8 -0
  234. package/dist/components/ScheduleRoomPanel/Timepicker.js +65 -0
  235. package/dist/components/ScheduleRoomPanel/Timepicker.vue.d.ts +18 -0
  236. package/dist/components/ScheduleRoomPanel/TimezoneSelector.js +4 -0
  237. package/dist/components/ScheduleRoomPanel/TimezoneSelector.vue.d.ts +18 -0
  238. package/dist/components/ScheduleRoomPanel/i18n/en-US/index.d.ts +108 -0
  239. package/dist/components/ScheduleRoomPanel/i18n/en-US/index.js +111 -0
  240. package/dist/components/ScheduleRoomPanel/i18n/index.d.ts +4 -0
  241. package/dist/components/ScheduleRoomPanel/i18n/index.js +6 -0
  242. package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.d.ts +108 -0
  243. package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.js +111 -0
  244. package/dist/components/ScheduleRoomPanel/index.d.ts +34 -0
  245. package/dist/components/ScheduleRoomPanel/index.js +12 -0
  246. package/dist/components/ScheduleRoomPanel/type.d.ts +7 -0
  247. package/dist/components/ScheduleRoomPanel/type.js +1 -0
  248. package/dist/components/ScheduleRoomPanel/utils.d.ts +46 -0
  249. package/dist/components/ScheduleRoomPanel/utils.js +123 -0
  250. package/dist/components/Search/Search.vue.d.ts +12 -12
  251. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
  252. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
  253. package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
  254. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
  255. package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
  256. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
  257. package/dist/components/Search/SearchBar/SearchBar.js +56 -58
  258. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +6 -6
  259. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +1 -1
  260. package/dist/components/Search/index.d.ts +18 -18
  261. package/dist/components/StreamMixer/LocalMixer/index.js +25 -22
  262. package/dist/components/StreamMixer/index.d.ts +1 -2
  263. package/dist/components/StreamMixer/index.js +9 -8
  264. package/dist/components/StreamView/Layout/CustomLayout.js +53 -53
  265. package/dist/components/StreamView/Layout/CustomLayout.vue.d.ts +1 -2
  266. package/dist/components/StreamView/Layout/FloatLayout.vue.d.ts +1 -2
  267. package/dist/components/StreamView/Layout/GridLayout.js +47 -51
  268. package/dist/components/StreamView/Layout/GridLayout.vue.d.ts +1 -2
  269. package/dist/components/StreamView/Layout/MeetingLayout.js +10 -10
  270. package/dist/components/StreamView/Layout/MeetingLayout.vue.d.ts +1 -1
  271. package/dist/components/StreamView/common/StreamList/index.vue.d.ts +1 -1
  272. package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.vue.d.ts +2 -2
  273. package/dist/components/StreamView/index.d.ts +90 -3
  274. package/dist/components/StreamView/index.js +4 -4
  275. package/dist/components/StreamView/index.vue.d.ts +1 -1
  276. package/dist/components/StreamView/manager/mediaManager.js +9 -9
  277. package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
  278. package/dist/components/UIKitModal/UIKitModal.js +156 -0
  279. package/dist/components/UIKitModal/index.d.ts +2 -0
  280. package/dist/components/UIKitModal/index.js +6 -0
  281. package/dist/components/UIKitModal/index.vue.d.ts +45 -0
  282. package/dist/components/UIKitModal/type.d.ts +21 -0
  283. package/dist/components/UIKitModal/type.js +1 -0
  284. package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.d.ts +17 -0
  285. package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.js +21 -0
  286. package/dist/components/UIKitModal/useRoomModal/i18n/index.d.ts +4 -0
  287. package/dist/components/UIKitModal/useRoomModal/i18n/index.js +6 -0
  288. package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.d.ts +17 -0
  289. package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.js +21 -0
  290. package/dist/components/UIKitModal/useRoomModal/index.d.ts +6 -0
  291. package/dist/components/UIKitModal/useRoomModal/index.js +11 -0
  292. package/dist/components/UIKitModal/useRoomModal/useRoomModal.d.ts +21 -0
  293. package/dist/components/UIKitModal/useRoomModal/useRoomModal.js +79 -0
  294. package/dist/components/UserList/AllUserActions/indexH5.js +21 -21
  295. package/dist/components/UserList/AllUserActions/useIndexHooks.d.ts +0 -2
  296. package/dist/components/UserList/AllUserActions/useIndexHooks.js +24 -25
  297. package/dist/components/UserList/UserItem/UserInfo/index.js +19 -19
  298. package/dist/components/UserPicker/UserPicker.js +1 -2
  299. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
  300. package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
  301. package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
  302. package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
  303. package/dist/components/UserPicker/i18n/en-US.js +2 -1
  304. package/dist/components/UserPicker/i18n/index.d.ts +2 -0
  305. package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
  306. package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
  307. package/dist/components/UserPicker/index.d.ts +2 -2
  308. package/dist/components/UserPicker/type.d.ts +1 -1
  309. package/dist/components/VideoSetting/CameraSelect.js +6 -7
  310. package/dist/components/VideoSetting/VideoMediaControl.js +45 -44
  311. package/dist/components/VideoSetting/VideoPreview.js +24 -25
  312. package/dist/components/VideoSetting/VideoProfile.js +22 -23
  313. package/dist/components/VideoSetting/VideoSettingTab.js +24 -24
  314. package/dist/components/VideoSetting/index.js +32 -3
  315. package/dist/components/VideoSettingPanel/CameraSelect.js +28 -25
  316. package/dist/components/VideoSettingPanel/VideoPreview.js +13 -13
  317. package/dist/components/VideoSettingPanel/VideoProfile.js +27 -27
  318. package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +13 -10
  319. package/dist/components/VideoSettingPanel/i18n/en-US/index.js +13 -10
  320. package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +13 -10
  321. package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +13 -10
  322. package/dist/components/VideoSettingPanel/index.d.ts +9 -0
  323. package/dist/components/VideoSettingPanel/index.js +56 -44
  324. package/dist/components/VideoSettingPanel/index.vue.d.ts +9 -0
  325. package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.js +169 -0
  326. package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue.d.ts +33 -0
  327. package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.d.ts +10 -0
  328. package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.js +14 -0
  329. package/dist/components/VirtualBackgroundPanel/i18n/index.d.ts +4 -0
  330. package/dist/components/VirtualBackgroundPanel/i18n/index.js +6 -0
  331. package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.d.ts +10 -0
  332. package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.js +14 -0
  333. package/dist/components/VirtualBackgroundPanel/index.d.ts +20 -0
  334. package/dist/components/VirtualBackgroundPanel/index.js +10 -0
  335. package/dist/hooks/useRoomActions/index.d.ts +1 -1
  336. package/dist/hooks/useRoomActions/index.js +10 -11
  337. package/dist/hooks/useRoomActions/useRoomAudioAction.d.ts +1 -3
  338. package/dist/hooks/useRoomActions/useRoomAudioAction.js +30 -31
  339. package/dist/hooks/useRoomActions/useRoomScreenAction.d.ts +0 -2
  340. package/dist/hooks/useRoomActions/useRoomScreenAction.js +20 -20
  341. package/dist/hooks/useRoomActions/useRoomVideoAction.d.ts +1 -8
  342. package/dist/hooks/useRoomActions/useRoomVideoAction.js +26 -28
  343. package/dist/hooks/useRoomEngine.d.ts +2 -2
  344. package/dist/hooks/useUserActions/index.d.ts +7 -23
  345. package/dist/hooks/useUserActions/index.js +11 -11
  346. package/dist/hooks/useUserActions/useChangeNameCardAction/index.d.ts +1 -9
  347. package/dist/hooks/useUserActions/useKickUserAction.d.ts +1 -9
  348. package/dist/hooks/useUserActions/useSeatAction.d.ts +1 -1
  349. package/dist/hooks/useUserActions/useSeatAction.js +3 -3
  350. package/dist/hooks/useUserActions/useTransferOwnerAction.d.ts +2 -10
  351. package/dist/hooks/useUserActions/useTransferOwnerAction.js +22 -20
  352. package/dist/hooks/useUserActions/useVideoAction.d.ts +1 -9
  353. package/dist/index-BvFYOUyz.js +2936 -0
  354. package/dist/{index-BfIEeWMg.js → index-C8Jw_xE4.js} +825 -800
  355. package/dist/index-CiYL_XsE.js +64 -0
  356. package/dist/index-CzCDLp99.js +2174 -0
  357. package/dist/index.d.ts +4 -7
  358. package/dist/index.js +255 -194
  359. package/dist/report/MetricsKey.d.ts +27 -14
  360. package/dist/report/MetricsKey.js +1 -1
  361. package/dist/report/dataReport.js +12 -8
  362. package/dist/states/ASRState/ASRState.d.ts +61 -0
  363. package/dist/states/ASRState/ASRState.js +79 -0
  364. package/dist/states/ASRState/index.d.ts +1 -0
  365. package/dist/states/ASRState/index.js +4 -0
  366. package/dist/states/BarrageState/BarrageState.d.ts +70 -44
  367. package/dist/states/BarrageState/BarrageState.js +29 -31
  368. package/dist/states/BarrageState/index.js +2 -3
  369. package/dist/states/BattleState/BattleState.d.ts +101 -5
  370. package/dist/states/C2CSettingState/C2CSettingState.d.ts +107 -0
  371. package/dist/states/CoGuestState.d.ts +53 -1
  372. package/dist/states/CoGuestState.js +15 -15
  373. package/dist/states/CoHostState/CoHostState.d.ts +120 -0
  374. package/dist/states/ContactListState/ContactListState.d.ts +56 -0
  375. package/dist/states/ConversationListState/ConversationListState.d.ts +36 -0
  376. package/dist/states/DeviceState/DeviceState.d.ts +68 -10
  377. package/dist/states/DeviceState/DeviceState.js +233 -189
  378. package/dist/states/DeviceState/mediaAbality.d.ts +2 -0
  379. package/dist/states/DeviceState/mediaAbality.js +11 -0
  380. package/dist/states/FreeBeautyState/FreeBeautyState.d.ts +11 -0
  381. package/dist/states/FreeBeautyState/FreeBeautyState.js +103 -0
  382. package/dist/states/FreeBeautyState/index.d.ts +1 -0
  383. package/dist/states/FreeBeautyState/index.js +4 -0
  384. package/dist/states/GroupSettingState/GroupSettingState.d.ts +59 -0
  385. package/dist/states/LiveAudienceState.d.ts +42 -4
  386. package/dist/states/LiveListState/LiveListState.d.ts +2 -2
  387. package/dist/states/LiveListState/LiveListState.js +5 -5
  388. package/dist/states/LiveMonitorState/index.d.ts +42 -0
  389. package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
  390. package/dist/states/LiveSeatState/index.d.ts +58 -8
  391. package/dist/states/LiveSeatState/index.js +20 -18
  392. package/dist/states/LiveSeatState/seatManager.d.ts +293 -6
  393. package/dist/states/LiveSeatState/seatManager.js +283 -0
  394. package/dist/states/LiveSeatState/store.d.ts +0 -2
  395. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +13 -13
  396. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +7 -7
  397. package/dist/states/LiveSeatState/usePlayStream/index.d.ts +4 -7
  398. package/dist/states/LiveSeatState/usePlayStream/index.js +65 -54
  399. package/dist/states/LoginState.d.ts +45 -0
  400. package/dist/states/MessageActionState/MessageActionState.d.ts +36 -2
  401. package/dist/states/MessageActionState/MessageActionState.js +83 -103
  402. package/dist/states/MessageInputState/MessageInputState.js +115 -83
  403. package/dist/states/MessageInputState/type.d.ts +36 -10
  404. package/dist/states/MessageInputState/utils.d.ts +1 -5
  405. package/dist/states/MessageListState/MessageListState.d.ts +40 -1
  406. package/dist/states/RoomParticipantState/callEventManager.d.ts +10 -0
  407. package/dist/states/RoomParticipantState/callEventManager.js +49 -0
  408. package/dist/states/RoomParticipantState/common.d.ts +14 -0
  409. package/dist/states/RoomParticipantState/common.js +76 -0
  410. package/dist/states/RoomParticipantState/index.d.ts +4 -0
  411. package/dist/states/RoomParticipantState/index.js +93 -0
  412. package/dist/states/RoomParticipantState/participantEventManager.d.ts +66 -0
  413. package/dist/states/RoomParticipantState/participantEventManager.js +326 -0
  414. package/dist/states/RoomParticipantState/participantManager.d.ts +311 -0
  415. package/dist/states/RoomParticipantState/participantManager.js +440 -0
  416. package/dist/states/RoomParticipantState/scheduleEventManager.d.ts +7 -0
  417. package/dist/states/RoomParticipantState/scheduleEventManager.js +37 -0
  418. package/dist/states/RoomParticipantState/store.d.ts +38 -0
  419. package/dist/states/RoomParticipantState/store.js +102 -0
  420. package/dist/states/RoomState/callManager.d.ts +43 -0
  421. package/dist/states/RoomState/callManager.js +208 -0
  422. package/dist/states/RoomState/common.d.ts +25 -0
  423. package/dist/states/RoomState/common.js +101 -0
  424. package/dist/states/RoomState/index.d.ts +8 -0
  425. package/dist/states/RoomState/index.js +52 -0
  426. package/dist/states/RoomState/roomManager.d.ts +35 -0
  427. package/dist/states/RoomState/roomManager.js +129 -0
  428. package/dist/states/RoomState/scheduleManager.d.ts +48 -0
  429. package/dist/states/RoomState/scheduleManager.js +174 -0
  430. package/dist/states/RoomState/store.d.ts +103 -0
  431. package/dist/states/RoomState/store.js +12 -0
  432. package/dist/states/SeatStore.d.ts +59 -52
  433. package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
  434. package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
  435. package/dist/states/UIKitModalState/index.d.ts +1 -0
  436. package/dist/states/UIKitModalState/index.js +4 -0
  437. package/dist/states/UserState/index.js +22 -28
  438. package/dist/states/UserState/store.d.ts +1 -1
  439. package/dist/states/UserState/store.js +55 -62
  440. package/dist/states/UserState/userManager.d.ts +2 -2
  441. package/dist/states/UserState/userManager.js +23 -25
  442. package/dist/states/VideoMixerState/VideoMixerState.d.ts +57 -1
  443. package/dist/states/VideoMixerState/VideoMixerState.js +91 -90
  444. package/dist/states/VideoMixerState/index.d.ts +1 -0
  445. package/dist/states/VideoMixerState/index.js +2 -1
  446. package/dist/states/VirtualBackgroundState/VirtualBackgroundState.d.ts +52 -0
  447. package/dist/states/VirtualBackgroundState/VirtualBackgroundState.js +99 -0
  448. package/dist/states/VirtualBackgroundState/index.d.ts +1 -0
  449. package/dist/states/VirtualBackgroundState/index.js +4 -0
  450. package/dist/styles/index.css +1 -1
  451. package/dist/{chat/index.d.ts → subEntry/chat/chat.d.ts} +2554 -2514
  452. package/dist/subEntry/chat/chat.js +89 -0
  453. package/dist/subEntry/chat/index.d.ts +11 -0
  454. package/dist/subEntry/chat/index.js +81 -0
  455. package/dist/{chat → subEntry/chat}/server.js +4 -4
  456. package/dist/subEntry/common/base.d.ts +5 -0
  457. package/dist/subEntry/common/base.js +21 -0
  458. package/dist/subEntry/common/index.d.ts +2 -0
  459. package/dist/subEntry/common/index.js +29 -0
  460. package/dist/subEntry/common/rtc.d.ts +4 -0
  461. package/dist/subEntry/common/rtc.js +10 -0
  462. package/dist/subEntry/live/index.d.ts +4 -0
  463. package/dist/subEntry/live/index.js +200 -0
  464. package/dist/subEntry/live/live.d.ts +21 -0
  465. package/dist/subEntry/live/live.js +45 -0
  466. package/dist/{rtc → subEntry/live}/server.d.ts +1 -1
  467. package/dist/{rtc → subEntry/live}/server.js +4 -4
  468. package/dist/subEntry/room/index.d.ts +4 -0
  469. package/dist/subEntry/room/index.js +180 -0
  470. package/dist/subEntry/room/room.d.ts +11 -0
  471. package/dist/subEntry/room/room.js +25 -0
  472. package/dist/subEntry/room/server.d.ts +19 -0
  473. package/dist/subEntry/room/server.js +97 -0
  474. package/dist/types/asr.d.ts +29 -0
  475. package/dist/types/asr.js +4 -0
  476. package/dist/types/barrage.d.ts +83 -0
  477. package/dist/types/barrage.js +4 -0
  478. package/dist/types/beauty.d.ts +9 -0
  479. package/dist/types/beauty.js +4 -0
  480. package/dist/types/device.d.ts +0 -1
  481. package/dist/types/index.d.ts +7 -3
  482. package/dist/types/index.js +125 -108
  483. package/dist/types/participant.d.ts +243 -0
  484. package/dist/types/participant.js +10 -0
  485. package/dist/types/room.d.ts +202 -55
  486. package/dist/types/room.js +5 -3
  487. package/dist/types/virtualBackground.d.ts +14 -0
  488. package/dist/types/virtualBackground.js +5 -0
  489. package/dist/{useId-CtirfF0W.js → useId-D5WE76CM.js} +1 -1
  490. package/dist/utils/call.d.ts +1 -1
  491. package/dist/utils/call.js +78 -79
  492. package/dist/utils/compare.d.ts +10 -0
  493. package/dist/utils/compare.js +12 -0
  494. package/dist/{utils-DaB7eSu5.js → utils-CttDpxqz.js} +1 -1
  495. package/package.json +16 -10
  496. package/src/baseComp/AudioIcon.vue +11 -3
  497. package/src/components/AudioSetting/AudioMediaControl.vue +10 -9
  498. package/src/components/AudioSetting/AudioRequestDialog.vue +11 -11
  499. package/src/components/AudioSetting/AudioSettingTab.vue +14 -14
  500. package/src/components/AudioSetting/MicrophoneSelect.vue +11 -11
  501. package/src/components/AudioSetting/SpeakerSelect.vue +10 -11
  502. package/src/components/AudioSetting/index.ts +1 -1
  503. package/src/components/AudioSetting/index.vue +4 -7
  504. package/src/components/AudioSettingPanel/MicrophoneSelect.vue +77 -0
  505. package/src/components/AudioSettingPanel/SpeakerSelect.vue +78 -0
  506. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +12 -6
  507. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +12 -6
  508. package/src/components/AudioSettingPanel/index.ts +3 -1
  509. package/src/components/AudioSettingPanel/index.vue +150 -122
  510. package/src/components/BarrageList/BarrageList.vue +1 -1
  511. package/src/components/BarrageList/BarrageListH5.vue +1 -1
  512. package/src/components/BarrageList/BarrageListState.ts +1 -1
  513. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
  514. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +2 -2
  515. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
  516. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
  517. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -7
  518. package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +8 -0
  519. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +32 -1
  520. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +3 -3
  521. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +3 -2
  522. package/src/components/ConversationList/ConversationPreview/utils.ts +98 -28
  523. package/src/components/ConversationList/i18n/en-US.ts +10 -1
  524. package/src/components/ConversationList/i18n/zh-CN.ts +10 -1
  525. package/src/components/FreeBeautyPanel/FreeBeautyPanel.vue +618 -0
  526. package/src/components/FreeBeautyPanel/i18n/en-US/index.ts +16 -0
  527. package/src/components/FreeBeautyPanel/i18n/index.ts +4 -0
  528. package/src/components/FreeBeautyPanel/i18n/zh-CN/index.ts +16 -0
  529. package/src/components/FreeBeautyPanel/index.ts +11 -0
  530. package/src/components/LiveScenePanel/index.ts +4 -1
  531. package/src/components/LiveScenePanel/index.vue +1 -0
  532. package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
  533. package/src/components/LiveView/PlayerControl/MultiResolution.vue +29 -26
  534. package/src/components/LiveView/PlayerControl/PlayerControl.vue +10 -36
  535. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +108 -286
  536. package/src/components/LiveView/index.ts +2 -1
  537. package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
  538. package/src/components/MessageInput/MessageInput.vue +2 -0
  539. package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +19 -22
  540. package/src/components/MessageInput/TextEditor/Editor.scss +25 -0
  541. package/src/components/MessageInput/TextEditor/EditorCore.ts +78 -111
  542. package/src/components/MessageInput/TextEditor/TextEditor.vue +68 -51
  543. package/src/components/MessageInput/TextEditor/extensions/MentionSuggestion.vue +449 -0
  544. package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
  545. package/src/components/MessageInput/TextEditor/extensions/emojiExtension.ts +22 -0
  546. package/src/components/MessageInput/TextEditor/extensions/enterKeyExtension.ts +22 -0
  547. package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
  548. package/src/components/MessageInput/TextEditor/extensions/index.ts +8 -0
  549. package/src/components/MessageInput/TextEditor/extensions/mentionExtension.ts +87 -0
  550. package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
  551. package/src/components/MessageInput/i18n/en-US.ts +3 -0
  552. package/src/components/MessageInput/i18n/zh-CN.ts +7 -0
  553. package/src/components/MessageInput/types.d.ts +1 -0
  554. package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +4 -2
  555. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
  556. package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +49 -0
  557. package/src/components/MessageList/Message/ImageMessage/ImagePreview.vue +344 -0
  558. package/src/components/MessageList/Message/Message.vue +6 -0
  559. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +16 -9
  560. package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
  561. package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
  562. package/src/components/MessageList/MessageList.vue +36 -14
  563. package/src/components/MessageList/i18n/en-US.ts +66 -0
  564. package/src/components/MessageList/i18n/index.ts +4 -4
  565. package/src/components/MessageList/i18n/zh-CN.ts +66 -0
  566. package/src/components/RoomParticipantList/ParticipantAction.vue +196 -0
  567. package/src/components/RoomParticipantList/ParticipantItem.vue +205 -0
  568. package/src/components/RoomParticipantList/PendingParticipantItem.vue +142 -0
  569. package/src/components/RoomParticipantList/RoomAction.vue +141 -0
  570. package/src/components/RoomParticipantList/i18n/en-US/index.ts +74 -0
  571. package/src/components/RoomParticipantList/i18n/index.ts +2 -0
  572. package/src/components/RoomParticipantList/i18n/zh-CN/index.ts +74 -0
  573. package/src/components/RoomParticipantList/index.ts +10 -0
  574. package/src/components/RoomParticipantList/index.vue +285 -0
  575. package/src/components/RoomParticipantList/useParticpantAction/index.ts +94 -0
  576. package/src/components/RoomParticipantList/useParticpantAction/useAdminAction.ts +56 -0
  577. package/src/components/RoomParticipantList/useParticpantAction/useAudioAction.ts +66 -0
  578. package/src/components/RoomParticipantList/useParticpantAction/useKickAction.ts +46 -0
  579. package/src/components/RoomParticipantList/useParticpantAction/useMessageAction.ts +42 -0
  580. package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue +51 -0
  581. package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.ts +80 -0
  582. package/src/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.ts +77 -0
  583. package/src/components/RoomParticipantList/useParticpantAction/useVideoAction.ts +59 -0
  584. package/src/components/RoomParticipantList/useRoomAction/index.ts +23 -0
  585. package/src/components/RoomParticipantList/useRoomAction/useRoomAudioAction.ts +67 -0
  586. package/src/components/RoomParticipantList/useRoomAction/useRoomScreenAction.ts +69 -0
  587. package/src/components/RoomParticipantList/useRoomAction/useRoomVideoAction.ts +66 -0
  588. package/src/components/RoomParticipantView/StreamPlay.vue +127 -0
  589. package/src/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.ts +174 -0
  590. package/src/components/RoomParticipantView/StreamPlayManager/README.md +768 -0
  591. package/src/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.ts +209 -0
  592. package/src/components/RoomParticipantView/StreamPlayManager/StreamPlayer.ts +183 -0
  593. package/src/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.ts +357 -0
  594. package/src/components/RoomParticipantView/StreamPlayManager/index.ts +501 -0
  595. package/src/components/RoomParticipantView/StreamPlayManager/types.ts +13 -0
  596. package/src/components/RoomParticipantView/index.ts +5 -0
  597. package/src/components/RoomParticipantView/index.vue +43 -0
  598. package/src/components/RoomView/ArrowStroke.vue +265 -0
  599. package/src/components/RoomView/GridLayout.vue +236 -0
  600. package/src/components/RoomView/SpeakerLayout.vue +400 -0
  601. package/src/components/RoomView/index.ts +5 -0
  602. package/src/components/RoomView/index.vue +58 -0
  603. package/src/components/RoomView/useRoomToolbar.ts +97 -0
  604. package/src/components/RoomView/useRoomView.ts +48 -0
  605. package/src/components/RoomView/useStreamItemDimensions.ts +162 -0
  606. package/src/components/ScheduleRoomPanel/Datepicker.vue +332 -0
  607. package/src/components/ScheduleRoomPanel/DurationSelector.vue +92 -0
  608. package/src/components/ScheduleRoomPanel/RoomDetail.vue +240 -0
  609. package/src/components/ScheduleRoomPanel/RoomEdit.vue +473 -0
  610. package/src/components/ScheduleRoomPanel/RoomShare.vue +216 -0
  611. package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +625 -0
  612. package/src/components/ScheduleRoomPanel/ScheduledRoomList.vue +622 -0
  613. package/src/components/ScheduleRoomPanel/Timepicker.vue +86 -0
  614. package/src/components/ScheduleRoomPanel/TimezoneSelector.vue +70 -0
  615. package/src/components/ScheduleRoomPanel/i18n/en-US/index.ts +116 -0
  616. package/src/components/ScheduleRoomPanel/i18n/index.ts +4 -0
  617. package/src/components/ScheduleRoomPanel/i18n/zh-CN/index.ts +116 -0
  618. package/src/components/ScheduleRoomPanel/index.ts +14 -0
  619. package/src/components/ScheduleRoomPanel/type.ts +7 -0
  620. package/src/components/ScheduleRoomPanel/utils.ts +281 -0
  621. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
  622. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
  623. package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
  624. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
  625. package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
  626. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
  627. package/src/components/Search/SearchBar/SearchBar.scss +3 -6
  628. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +30 -31
  629. package/src/components/StreamMixer/LocalMixer/index.vue +6 -1
  630. package/src/components/StreamMixer/index.ts +4 -1
  631. package/src/components/StreamView/Layout/CustomLayout.vue +40 -36
  632. package/src/components/StreamView/Layout/GridLayout.vue +31 -40
  633. package/src/components/StreamView/Layout/MeetingLayout.vue +34 -35
  634. package/src/components/StreamView/index.ts +5 -3
  635. package/src/components/StreamView/manager/mediaManager.ts +1 -2
  636. package/src/components/UIKitModal/UIKitModal.ts +71 -0
  637. package/src/components/UIKitModal/index.scss +134 -0
  638. package/src/components/UIKitModal/index.ts +2 -0
  639. package/src/components/UIKitModal/index.vue +160 -0
  640. package/src/components/UIKitModal/type.ts +24 -0
  641. package/src/components/UIKitModal/useRoomModal/i18n/en-US/index.ts +19 -0
  642. package/src/components/UIKitModal/useRoomModal/i18n/index.ts +4 -0
  643. package/src/components/UIKitModal/useRoomModal/i18n/zh-CN/index.ts +18 -0
  644. package/src/components/UIKitModal/useRoomModal/index.ts +11 -0
  645. package/src/components/UIKitModal/useRoomModal/useRoomModal.ts +103 -0
  646. package/src/components/UserList/AllUserActions/indexH5.vue +3 -3
  647. package/src/components/UserList/AllUserActions/useIndexHooks.ts +1 -1
  648. package/src/components/UserList/UserItem/UserInfo/index.vue +17 -12
  649. package/src/components/UserPicker/UserPicker.vue +1 -1
  650. package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
  651. package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
  652. package/src/components/UserPicker/i18n/en-US.ts +1 -0
  653. package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
  654. package/src/components/UserPicker/type.ts +1 -1
  655. package/src/components/VideoSetting/CameraSelect.vue +11 -11
  656. package/src/components/VideoSetting/VideoMediaControl.vue +22 -21
  657. package/src/components/VideoSetting/VideoPreview.vue +14 -8
  658. package/src/components/VideoSetting/VideoProfile.vue +13 -15
  659. package/src/components/VideoSetting/VideoSettingTab.vue +9 -9
  660. package/src/components/VideoSettingPanel/CameraSelect.vue +8 -3
  661. package/src/components/VideoSettingPanel/VideoPreview.vue +4 -4
  662. package/src/components/VideoSettingPanel/VideoProfile.vue +6 -6
  663. package/src/components/VideoSettingPanel/i18n/en-US/index.ts +13 -10
  664. package/src/components/VideoSettingPanel/i18n/zh-CN/index.ts +13 -10
  665. package/src/components/VideoSettingPanel/index.ts +2 -2
  666. package/src/components/VideoSettingPanel/index.vue +73 -74
  667. package/src/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue +337 -0
  668. package/src/components/VirtualBackgroundPanel/assets/blurred-background.png +0 -0
  669. package/src/components/VirtualBackgroundPanel/assets/close-virtual-background.png +0 -0
  670. package/src/components/VirtualBackgroundPanel/i18n/en-US/index.ts +11 -0
  671. package/src/components/VirtualBackgroundPanel/i18n/index.ts +4 -0
  672. package/src/components/VirtualBackgroundPanel/i18n/zh-CN/index.ts +11 -0
  673. package/src/components/VirtualBackgroundPanel/index.ts +11 -0
  674. package/src/hooks/useRoomActions/index.ts +3 -2
  675. package/src/hooks/useRoomActions/useRoomAudioAction.ts +11 -12
  676. package/src/hooks/useRoomActions/useRoomScreenAction.ts +12 -13
  677. package/src/hooks/useRoomActions/useRoomVideoAction.ts +10 -13
  678. package/src/hooks/useRoomEngine.ts +3 -2
  679. package/src/hooks/useUserActions/index.ts +38 -43
  680. package/src/hooks/useUserActions/useSeatAction.ts +10 -10
  681. package/src/hooks/useUserActions/useTransferOwnerAction.ts +10 -10
  682. package/src/index.ts +8 -10
  683. package/src/report/MetricsKey.ts +28 -14
  684. package/src/report/dataReport.ts +13 -9
  685. package/src/{chat/index.ts → subEntry/chat/chat.ts} +25 -18
  686. package/src/subEntry/chat/index.ts +13 -0
  687. package/src/{chat → subEntry/chat}/server.ts +3 -3
  688. package/src/subEntry/common/base.ts +6 -0
  689. package/src/subEntry/common/index.ts +2 -0
  690. package/src/subEntry/common/rtc.ts +5 -0
  691. package/src/subEntry/live/index.ts +8 -0
  692. package/src/subEntry/live/live.ts +23 -0
  693. package/src/{rtc → subEntry/live}/server.ts +3 -3
  694. package/src/subEntry/room/index.ts +8 -0
  695. package/src/subEntry/room/room.ts +12 -0
  696. package/src/subEntry/room/server.ts +123 -0
  697. package/src/types/asr.ts +31 -0
  698. package/src/types/barrage.ts +86 -0
  699. package/src/types/beauty.ts +10 -0
  700. package/src/types/device.ts +3 -5
  701. package/src/types/index.ts +9 -3
  702. package/src/types/participant.ts +155 -0
  703. package/src/types/room.ts +122 -57
  704. package/src/types/user.ts +2 -0
  705. package/src/types/virtualBackground.ts +17 -0
  706. package/src/utils/call.ts +25 -26
  707. package/src/utils/compare.ts +34 -0
  708. package/tsconfig.eslint.json +15 -0
  709. package/tsconfig.json +7 -1
  710. package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +0 -89
  711. package/dist/chat/index.js +0 -59
  712. package/dist/index-DTi1fL-x.js +0 -5128
  713. package/dist/index-DTq2ybsB.js +0 -33
  714. package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +0 -32
  715. package/dist/rtc/index.d.ts +0 -501
  716. package/dist/rtc/index.js +0 -67
  717. package/dist/states/RoomState.d.ts +0 -173
  718. package/dist/states/RoomState.js +0 -272
  719. package/dist/states/SearchState.d.ts +0 -267
  720. package/src/rtc/index.ts +0 -100
  721. /package/dist/{chat → subEntry/chat}/server.d.ts +0 -0
@@ -0,0 +1,2174 @@
1
+ import { P as en, a as tn, Z as Nn, _ as Bn, $ as nn, E as rn, a0 as Vn, a1 as kn, a2 as $n } from "./index-C8Jw_xE4.js";
2
+ import { defineComponent as Ue, shallowRef as In, onMounted as xt, onBeforeUnmount as pt, h as Le, ref as Et, getCurrentInstance as Wn, watchEffect as _n, nextTick as Fn, unref as Un, markRaw as on, reactive as qn, render as Ht, customRef as Kn } from "vue";
3
+ var $ = "top", z = "bottom", Y = "right", I = "left", Tt = "auto", qe = [$, z, Y, I], Ce = "start", Ie = "end", zn = "clippingParents", an = "viewport", Be = "popper", Yn = "reference", jt = /* @__PURE__ */ qe.reduce(function(t, e) {
4
+ return t.concat([e + "-" + Ce, e + "-" + Ie]);
5
+ }, []), sn = /* @__PURE__ */ [].concat(qe, [Tt]).reduce(function(t, e) {
6
+ return t.concat([e, e + "-" + Ce, e + "-" + Ie]);
7
+ }, []), Xn = "beforeRead", Gn = "read", Jn = "afterRead", Zn = "beforeMain", Qn = "main", er = "afterMain", tr = "beforeWrite", nr = "write", rr = "afterWrite", ir = [Xn, Gn, Jn, Zn, Qn, er, tr, nr, rr];
8
+ function te(t) {
9
+ return t ? (t.nodeName || "").toLowerCase() : null;
10
+ }
11
+ function U(t) {
12
+ if (t == null)
13
+ return window;
14
+ if (t.toString() !== "[object Window]") {
15
+ var e = t.ownerDocument;
16
+ return e && e.defaultView || window;
17
+ }
18
+ return t;
19
+ }
20
+ function ge(t) {
21
+ var e = U(t).Element;
22
+ return t instanceof e || t instanceof Element;
23
+ }
24
+ function K(t) {
25
+ var e = U(t).HTMLElement;
26
+ return t instanceof e || t instanceof HTMLElement;
27
+ }
28
+ function Ct(t) {
29
+ if (typeof ShadowRoot > "u")
30
+ return !1;
31
+ var e = U(t).ShadowRoot;
32
+ return t instanceof e || t instanceof ShadowRoot;
33
+ }
34
+ function or(t) {
35
+ var e = t.state;
36
+ Object.keys(e.elements).forEach(function(n) {
37
+ var r = e.styles[n] || {}, o = e.attributes[n] || {}, a = e.elements[n];
38
+ !K(a) || !te(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(p) {
39
+ var u = o[p];
40
+ u === !1 ? a.removeAttribute(p) : a.setAttribute(p, u === !0 ? "" : u);
41
+ }));
42
+ });
43
+ }
44
+ function ar(t) {
45
+ var e = t.state, n = {
46
+ popper: {
47
+ position: e.options.strategy,
48
+ left: "0",
49
+ top: "0",
50
+ margin: "0"
51
+ },
52
+ arrow: {
53
+ position: "absolute"
54
+ },
55
+ reference: {}
56
+ };
57
+ return Object.assign(e.elements.popper.style, n.popper), e.styles = n, e.elements.arrow && Object.assign(e.elements.arrow.style, n.arrow), function() {
58
+ Object.keys(e.elements).forEach(function(r) {
59
+ var o = e.elements[r], a = e.attributes[r] || {}, p = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), u = p.reduce(function(s, d) {
60
+ return s[d] = "", s;
61
+ }, {});
62
+ !K(o) || !te(o) || (Object.assign(o.style, u), Object.keys(a).forEach(function(s) {
63
+ o.removeAttribute(s);
64
+ }));
65
+ });
66
+ };
67
+ }
68
+ const un = {
69
+ name: "applyStyles",
70
+ enabled: !0,
71
+ phase: "write",
72
+ fn: or,
73
+ effect: ar,
74
+ requires: ["computeStyles"]
75
+ };
76
+ function ee(t) {
77
+ return t.split("-")[0];
78
+ }
79
+ var me = Math.max, st = Math.min, De = Math.round;
80
+ function gt() {
81
+ var t = navigator.userAgentData;
82
+ return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
83
+ return e.brand + "/" + e.version;
84
+ }).join(" ") : navigator.userAgent;
85
+ }
86
+ function pn() {
87
+ return !/^((?!chrome|android).)*safari/i.test(gt());
88
+ }
89
+ function Ae(t, e, n) {
90
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
91
+ var r = t.getBoundingClientRect(), o = 1, a = 1;
92
+ e && K(t) && (o = t.offsetWidth > 0 && De(r.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && De(r.height) / t.offsetHeight || 1);
93
+ var p = ge(t) ? U(t) : window, u = p.visualViewport, s = !pn() && n, d = (r.left + (s && u ? u.offsetLeft : 0)) / o, c = (r.top + (s && u ? u.offsetTop : 0)) / a, g = r.width / o, y = r.height / a;
94
+ return {
95
+ width: g,
96
+ height: y,
97
+ top: c,
98
+ right: d + g,
99
+ bottom: c + y,
100
+ left: d,
101
+ x: d,
102
+ y: c
103
+ };
104
+ }
105
+ function Dt(t) {
106
+ var e = Ae(t), n = t.offsetWidth, r = t.offsetHeight;
107
+ return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
108
+ x: t.offsetLeft,
109
+ y: t.offsetTop,
110
+ width: n,
111
+ height: r
112
+ };
113
+ }
114
+ function ln(t, e) {
115
+ var n = e.getRootNode && e.getRootNode();
116
+ if (t.contains(e))
117
+ return !0;
118
+ if (n && Ct(n)) {
119
+ var r = e;
120
+ do {
121
+ if (r && t.isSameNode(r))
122
+ return !0;
123
+ r = r.parentNode || r.host;
124
+ } while (r);
125
+ }
126
+ return !1;
127
+ }
128
+ function se(t) {
129
+ return U(t).getComputedStyle(t);
130
+ }
131
+ function sr(t) {
132
+ return ["table", "td", "th"].indexOf(te(t)) >= 0;
133
+ }
134
+ function le(t) {
135
+ return ((ge(t) ? t.ownerDocument : (
136
+ // $FlowFixMe[prop-missing]
137
+ t.document
138
+ )) || window.document).documentElement;
139
+ }
140
+ function lt(t) {
141
+ return te(t) === "html" ? t : (
142
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
143
+ // $FlowFixMe[incompatible-return]
144
+ // $FlowFixMe[prop-missing]
145
+ t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
146
+ t.parentNode || // DOM Element detected
147
+ (Ct(t) ? t.host : null) || // ShadowRoot detected
148
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
149
+ le(t)
150
+ );
151
+ }
152
+ function Nt(t) {
153
+ return !K(t) || // https://github.com/popperjs/popper-core/issues/837
154
+ se(t).position === "fixed" ? null : t.offsetParent;
155
+ }
156
+ function ur(t) {
157
+ var e = /firefox/i.test(gt()), n = /Trident/i.test(gt());
158
+ if (n && K(t)) {
159
+ var r = se(t);
160
+ if (r.position === "fixed")
161
+ return null;
162
+ }
163
+ var o = lt(t);
164
+ for (Ct(o) && (o = o.host); K(o) && ["html", "body"].indexOf(te(o)) < 0; ) {
165
+ var a = se(o);
166
+ if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
167
+ return o;
168
+ o = o.parentNode;
169
+ }
170
+ return null;
171
+ }
172
+ function Ke(t) {
173
+ for (var e = U(t), n = Nt(t); n && sr(n) && se(n).position === "static"; )
174
+ n = Nt(n);
175
+ return n && (te(n) === "html" || te(n) === "body" && se(n).position === "static") ? e : n || ur(t) || e;
176
+ }
177
+ function At(t) {
178
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
179
+ }
180
+ function Ve(t, e, n) {
181
+ return me(t, st(e, n));
182
+ }
183
+ function pr(t, e, n) {
184
+ var r = Ve(t, e, n);
185
+ return r > n ? n : r;
186
+ }
187
+ function cn() {
188
+ return {
189
+ top: 0,
190
+ right: 0,
191
+ bottom: 0,
192
+ left: 0
193
+ };
194
+ }
195
+ function dn(t) {
196
+ return Object.assign({}, cn(), t);
197
+ }
198
+ function fn(t, e) {
199
+ return e.reduce(function(n, r) {
200
+ return n[r] = t, n;
201
+ }, {});
202
+ }
203
+ var lr = function(e, n) {
204
+ return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
205
+ placement: n.placement
206
+ })) : e, dn(typeof e != "number" ? e : fn(e, qe));
207
+ };
208
+ function cr(t) {
209
+ var e, n = t.state, r = t.name, o = t.options, a = n.elements.arrow, p = n.modifiersData.popperOffsets, u = ee(n.placement), s = At(u), d = [I, Y].indexOf(u) >= 0, c = d ? "height" : "width";
210
+ if (!(!a || !p)) {
211
+ var g = lr(o.padding, n), y = Dt(a), h = s === "y" ? $ : I, b = s === "y" ? z : Y, w = n.rects.reference[c] + n.rects.reference[s] - p[s] - n.rects.popper[c], O = p[s] - n.rects.reference[s], T = Ke(a), C = T ? s === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, S = w / 2 - O / 2, i = g[h], E = C - y[c] - g[b], f = C / 2 - y[c] / 2 + S, A = Ve(i, f, E), H = s;
212
+ n.modifiersData[r] = (e = {}, e[H] = A, e.centerOffset = A - f, e);
213
+ }
214
+ }
215
+ function dr(t) {
216
+ var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
217
+ o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || ln(e.elements.popper, o) && (e.elements.arrow = o));
218
+ }
219
+ const fr = {
220
+ name: "arrow",
221
+ enabled: !0,
222
+ phase: "main",
223
+ fn: cr,
224
+ effect: dr,
225
+ requires: ["popperOffsets"],
226
+ requiresIfExists: ["preventOverflow"]
227
+ };
228
+ function Se(t) {
229
+ return t.split("-")[1];
230
+ }
231
+ var vr = {
232
+ top: "auto",
233
+ right: "auto",
234
+ bottom: "auto",
235
+ left: "auto"
236
+ };
237
+ function hr(t, e) {
238
+ var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
239
+ return {
240
+ x: De(n * o) / o || 0,
241
+ y: De(r * o) / o || 0
242
+ };
243
+ }
244
+ function Bt(t) {
245
+ var e, n = t.popper, r = t.popperRect, o = t.placement, a = t.variation, p = t.offsets, u = t.position, s = t.gpuAcceleration, d = t.adaptive, c = t.roundOffsets, g = t.isFixed, y = p.x, h = y === void 0 ? 0 : y, b = p.y, w = b === void 0 ? 0 : b, O = typeof c == "function" ? c({
246
+ x: h,
247
+ y: w
248
+ }) : {
249
+ x: h,
250
+ y: w
251
+ };
252
+ h = O.x, w = O.y;
253
+ var T = p.hasOwnProperty("x"), C = p.hasOwnProperty("y"), S = I, i = $, E = window;
254
+ if (d) {
255
+ var f = Ke(n), A = "clientHeight", H = "clientWidth";
256
+ if (f === U(n) && (f = le(n), se(f).position !== "static" && u === "absolute" && (A = "scrollHeight", H = "scrollWidth")), f = f, o === $ || (o === I || o === Y) && a === Ie) {
257
+ i = z;
258
+ var R = g && f === E && E.visualViewport ? E.visualViewport.height : (
259
+ // $FlowFixMe[prop-missing]
260
+ f[A]
261
+ );
262
+ w -= R - r.height, w *= s ? 1 : -1;
263
+ }
264
+ if (o === I || (o === $ || o === z) && a === Ie) {
265
+ S = Y;
266
+ var P = g && f === E && E.visualViewport ? E.visualViewport.width : (
267
+ // $FlowFixMe[prop-missing]
268
+ f[H]
269
+ );
270
+ h -= P - r.width, h *= s ? 1 : -1;
271
+ }
272
+ }
273
+ var j = Object.assign({
274
+ position: u
275
+ }, d && vr), M = c === !0 ? hr({
276
+ x: h,
277
+ y: w
278
+ }, U(n)) : {
279
+ x: h,
280
+ y: w
281
+ };
282
+ if (h = M.x, w = M.y, s) {
283
+ var L;
284
+ return Object.assign({}, j, (L = {}, L[i] = C ? "0" : "", L[S] = T ? "0" : "", L.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + w + "px)" : "translate3d(" + h + "px, " + w + "px, 0)", L));
285
+ }
286
+ return Object.assign({}, j, (e = {}, e[i] = C ? w + "px" : "", e[S] = T ? h + "px" : "", e.transform = "", e));
287
+ }
288
+ function mr(t) {
289
+ var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, p = a === void 0 ? !0 : a, u = n.roundOffsets, s = u === void 0 ? !0 : u, d = {
290
+ placement: ee(e.placement),
291
+ variation: Se(e.placement),
292
+ popper: e.elements.popper,
293
+ popperRect: e.rects.popper,
294
+ gpuAcceleration: o,
295
+ isFixed: e.options.strategy === "fixed"
296
+ };
297
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Bt(Object.assign({}, d, {
298
+ offsets: e.modifiersData.popperOffsets,
299
+ position: e.options.strategy,
300
+ adaptive: p,
301
+ roundOffsets: s
302
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Bt(Object.assign({}, d, {
303
+ offsets: e.modifiersData.arrow,
304
+ position: "absolute",
305
+ adaptive: !1,
306
+ roundOffsets: s
307
+ })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
308
+ "data-popper-placement": e.placement
309
+ });
310
+ }
311
+ const gr = {
312
+ name: "computeStyles",
313
+ enabled: !0,
314
+ phase: "beforeWrite",
315
+ fn: mr,
316
+ data: {}
317
+ };
318
+ var it = {
319
+ passive: !0
320
+ };
321
+ function yr(t) {
322
+ var e = t.state, n = t.instance, r = t.options, o = r.scroll, a = o === void 0 ? !0 : o, p = r.resize, u = p === void 0 ? !0 : p, s = U(e.elements.popper), d = [].concat(e.scrollParents.reference, e.scrollParents.popper);
323
+ return a && d.forEach(function(c) {
324
+ c.addEventListener("scroll", n.update, it);
325
+ }), u && s.addEventListener("resize", n.update, it), function() {
326
+ a && d.forEach(function(c) {
327
+ c.removeEventListener("scroll", n.update, it);
328
+ }), u && s.removeEventListener("resize", n.update, it);
329
+ };
330
+ }
331
+ const br = {
332
+ name: "eventListeners",
333
+ enabled: !0,
334
+ phase: "write",
335
+ fn: function() {
336
+ },
337
+ effect: yr,
338
+ data: {}
339
+ };
340
+ var wr = {
341
+ left: "right",
342
+ right: "left",
343
+ bottom: "top",
344
+ top: "bottom"
345
+ };
346
+ function at(t) {
347
+ return t.replace(/left|right|bottom|top/g, function(e) {
348
+ return wr[e];
349
+ });
350
+ }
351
+ var Or = {
352
+ start: "end",
353
+ end: "start"
354
+ };
355
+ function Vt(t) {
356
+ return t.replace(/start|end/g, function(e) {
357
+ return Or[e];
358
+ });
359
+ }
360
+ function St(t) {
361
+ var e = U(t), n = e.pageXOffset, r = e.pageYOffset;
362
+ return {
363
+ scrollLeft: n,
364
+ scrollTop: r
365
+ };
366
+ }
367
+ function Lt(t) {
368
+ return Ae(le(t)).left + St(t).scrollLeft;
369
+ }
370
+ function xr(t, e) {
371
+ var n = U(t), r = le(t), o = n.visualViewport, a = r.clientWidth, p = r.clientHeight, u = 0, s = 0;
372
+ if (o) {
373
+ a = o.width, p = o.height;
374
+ var d = pn();
375
+ (d || !d && e === "fixed") && (u = o.offsetLeft, s = o.offsetTop);
376
+ }
377
+ return {
378
+ width: a,
379
+ height: p,
380
+ x: u + Lt(t),
381
+ y: s
382
+ };
383
+ }
384
+ function Er(t) {
385
+ var e, n = le(t), r = St(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = me(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), p = me(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), u = -r.scrollLeft + Lt(t), s = -r.scrollTop;
386
+ return se(o || n).direction === "rtl" && (u += me(n.clientWidth, o ? o.clientWidth : 0) - a), {
387
+ width: a,
388
+ height: p,
389
+ x: u,
390
+ y: s
391
+ };
392
+ }
393
+ function Pt(t) {
394
+ var e = se(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
395
+ return /auto|scroll|overlay|hidden/.test(n + o + r);
396
+ }
397
+ function vn(t) {
398
+ return ["html", "body", "#document"].indexOf(te(t)) >= 0 ? t.ownerDocument.body : K(t) && Pt(t) ? t : vn(lt(t));
399
+ }
400
+ function ke(t, e) {
401
+ var n;
402
+ e === void 0 && (e = []);
403
+ var r = vn(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), a = U(r), p = o ? [a].concat(a.visualViewport || [], Pt(r) ? r : []) : r, u = e.concat(p);
404
+ return o ? u : (
405
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
406
+ u.concat(ke(lt(p)))
407
+ );
408
+ }
409
+ function yt(t) {
410
+ return Object.assign({}, t, {
411
+ left: t.x,
412
+ top: t.y,
413
+ right: t.x + t.width,
414
+ bottom: t.y + t.height
415
+ });
416
+ }
417
+ function Tr(t, e) {
418
+ var n = Ae(t, !1, e === "fixed");
419
+ 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;
420
+ }
421
+ function kt(t, e, n) {
422
+ return e === an ? yt(xr(t, n)) : ge(e) ? Tr(e, n) : yt(Er(le(t)));
423
+ }
424
+ function Cr(t) {
425
+ var e = ke(lt(t)), n = ["absolute", "fixed"].indexOf(se(t).position) >= 0, r = n && K(t) ? Ke(t) : t;
426
+ return ge(r) ? e.filter(function(o) {
427
+ return ge(o) && ln(o, r) && te(o) !== "body";
428
+ }) : [];
429
+ }
430
+ function Dr(t, e, n, r) {
431
+ var o = e === "clippingParents" ? Cr(t) : [].concat(e), a = [].concat(o, [n]), p = a[0], u = a.reduce(function(s, d) {
432
+ var c = kt(t, d, r);
433
+ return s.top = me(c.top, s.top), s.right = st(c.right, s.right), s.bottom = st(c.bottom, s.bottom), s.left = me(c.left, s.left), s;
434
+ }, kt(t, p, r));
435
+ return u.width = u.right - u.left, u.height = u.bottom - u.top, u.x = u.left, u.y = u.top, u;
436
+ }
437
+ function hn(t) {
438
+ var e = t.reference, n = t.element, r = t.placement, o = r ? ee(r) : null, a = r ? Se(r) : null, p = e.x + e.width / 2 - n.width / 2, u = e.y + e.height / 2 - n.height / 2, s;
439
+ switch (o) {
440
+ case $:
441
+ s = {
442
+ x: p,
443
+ y: e.y - n.height
444
+ };
445
+ break;
446
+ case z:
447
+ s = {
448
+ x: p,
449
+ y: e.y + e.height
450
+ };
451
+ break;
452
+ case Y:
453
+ s = {
454
+ x: e.x + e.width,
455
+ y: u
456
+ };
457
+ break;
458
+ case I:
459
+ s = {
460
+ x: e.x - n.width,
461
+ y: u
462
+ };
463
+ break;
464
+ default:
465
+ s = {
466
+ x: e.x,
467
+ y: e.y
468
+ };
469
+ }
470
+ var d = o ? At(o) : null;
471
+ if (d != null) {
472
+ var c = d === "y" ? "height" : "width";
473
+ switch (a) {
474
+ case Ce:
475
+ s[d] = s[d] - (e[c] / 2 - n[c] / 2);
476
+ break;
477
+ case Ie:
478
+ s[d] = s[d] + (e[c] / 2 - n[c] / 2);
479
+ break;
480
+ }
481
+ }
482
+ return s;
483
+ }
484
+ function We(t, e) {
485
+ e === void 0 && (e = {});
486
+ var n = e, r = n.placement, o = r === void 0 ? t.placement : r, a = n.strategy, p = a === void 0 ? t.strategy : a, u = n.boundary, s = u === void 0 ? zn : u, d = n.rootBoundary, c = d === void 0 ? an : d, g = n.elementContext, y = g === void 0 ? Be : g, h = n.altBoundary, b = h === void 0 ? !1 : h, w = n.padding, O = w === void 0 ? 0 : w, T = dn(typeof O != "number" ? O : fn(O, qe)), C = y === Be ? Yn : Be, S = t.rects.popper, i = t.elements[b ? C : y], E = Dr(ge(i) ? i : i.contextElement || le(t.elements.popper), s, c, p), f = Ae(t.elements.reference), A = hn({
487
+ reference: f,
488
+ element: S,
489
+ placement: o
490
+ }), H = yt(Object.assign({}, S, A)), R = y === Be ? H : f, P = {
491
+ top: E.top - R.top + T.top,
492
+ bottom: R.bottom - E.bottom + T.bottom,
493
+ left: E.left - R.left + T.left,
494
+ right: R.right - E.right + T.right
495
+ }, j = t.modifiersData.offset;
496
+ if (y === Be && j) {
497
+ var M = j[o];
498
+ Object.keys(P).forEach(function(L) {
499
+ var W = [Y, z].indexOf(L) >= 0 ? 1 : -1, _ = [$, z].indexOf(L) >= 0 ? "y" : "x";
500
+ P[L] += M[_] * W;
501
+ });
502
+ }
503
+ return P;
504
+ }
505
+ function Ar(t, e) {
506
+ e === void 0 && (e = {});
507
+ var n = e, r = n.placement, o = n.boundary, a = n.rootBoundary, p = n.padding, u = n.flipVariations, s = n.allowedAutoPlacements, d = s === void 0 ? sn : s, c = Se(r), g = c ? u ? jt : jt.filter(function(b) {
508
+ return Se(b) === c;
509
+ }) : qe, y = g.filter(function(b) {
510
+ return d.indexOf(b) >= 0;
511
+ });
512
+ y.length === 0 && (y = g);
513
+ var h = y.reduce(function(b, w) {
514
+ return b[w] = We(t, {
515
+ placement: w,
516
+ boundary: o,
517
+ rootBoundary: a,
518
+ padding: p
519
+ })[ee(w)], b;
520
+ }, {});
521
+ return Object.keys(h).sort(function(b, w) {
522
+ return h[b] - h[w];
523
+ });
524
+ }
525
+ function Sr(t) {
526
+ if (ee(t) === Tt)
527
+ return [];
528
+ var e = at(t);
529
+ return [Vt(t), e, Vt(e)];
530
+ }
531
+ function Lr(t) {
532
+ var e = t.state, n = t.options, r = t.name;
533
+ if (!e.modifiersData[r]._skip) {
534
+ for (var o = n.mainAxis, a = o === void 0 ? !0 : o, p = n.altAxis, u = p === void 0 ? !0 : p, s = n.fallbackPlacements, d = n.padding, c = n.boundary, g = n.rootBoundary, y = n.altBoundary, h = n.flipVariations, b = h === void 0 ? !0 : h, w = n.allowedAutoPlacements, O = e.options.placement, T = ee(O), C = T === O, S = s || (C || !b ? [at(O)] : Sr(O)), i = [O].concat(S).reduce(function(ne, X) {
535
+ return ne.concat(ee(X) === Tt ? Ar(e, {
536
+ placement: X,
537
+ boundary: c,
538
+ rootBoundary: g,
539
+ padding: d,
540
+ flipVariations: b,
541
+ allowedAutoPlacements: w
542
+ }) : X);
543
+ }, []), E = e.rects.reference, f = e.rects.popper, A = /* @__PURE__ */ new Map(), H = !0, R = i[0], P = 0; P < i.length; P++) {
544
+ var j = i[P], M = ee(j), L = Se(j) === Ce, W = [$, z].indexOf(M) >= 0, _ = W ? "width" : "height", B = We(e, {
545
+ placement: j,
546
+ boundary: c,
547
+ rootBoundary: g,
548
+ altBoundary: y,
549
+ padding: d
550
+ }), V = W ? L ? Y : I : L ? z : $;
551
+ E[_] > f[_] && (V = at(V));
552
+ var N = at(V), G = [];
553
+ if (a && G.push(B[M] <= 0), u && G.push(B[V] <= 0, B[N] <= 0), G.every(function(ne) {
554
+ return ne;
555
+ })) {
556
+ R = j, H = !1;
557
+ break;
558
+ }
559
+ A.set(j, G);
560
+ }
561
+ if (H)
562
+ for (var J = b ? 3 : 1, ce = function(X) {
563
+ var re = i.find(function(ye) {
564
+ var ie = A.get(ye);
565
+ if (ie)
566
+ return ie.slice(0, X).every(function(be) {
567
+ return be;
568
+ });
569
+ });
570
+ if (re)
571
+ return R = re, "break";
572
+ }, Z = J; Z > 0; Z--) {
573
+ var de = ce(Z);
574
+ if (de === "break") break;
575
+ }
576
+ e.placement !== R && (e.modifiersData[r]._skip = !0, e.placement = R, e.reset = !0);
577
+ }
578
+ }
579
+ const Pr = {
580
+ name: "flip",
581
+ enabled: !0,
582
+ phase: "main",
583
+ fn: Lr,
584
+ requiresIfExists: ["offset"],
585
+ data: {
586
+ _skip: !1
587
+ }
588
+ };
589
+ function $t(t, e, n) {
590
+ return n === void 0 && (n = {
591
+ x: 0,
592
+ y: 0
593
+ }), {
594
+ top: t.top - e.height - n.y,
595
+ right: t.right - e.width + n.x,
596
+ bottom: t.bottom - e.height + n.y,
597
+ left: t.left - e.width - n.x
598
+ };
599
+ }
600
+ function It(t) {
601
+ return [$, Y, z, I].some(function(e) {
602
+ return t[e] >= 0;
603
+ });
604
+ }
605
+ function Mr(t) {
606
+ var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, p = We(e, {
607
+ elementContext: "reference"
608
+ }), u = We(e, {
609
+ altBoundary: !0
610
+ }), s = $t(p, r), d = $t(u, o, a), c = It(s), g = It(d);
611
+ e.modifiersData[n] = {
612
+ referenceClippingOffsets: s,
613
+ popperEscapeOffsets: d,
614
+ isReferenceHidden: c,
615
+ hasPopperEscaped: g
616
+ }, e.attributes.popper = Object.assign({}, e.attributes.popper, {
617
+ "data-popper-reference-hidden": c,
618
+ "data-popper-escaped": g
619
+ });
620
+ }
621
+ const Rr = {
622
+ name: "hide",
623
+ enabled: !0,
624
+ phase: "main",
625
+ requiresIfExists: ["preventOverflow"],
626
+ fn: Mr
627
+ };
628
+ function Hr(t, e, n) {
629
+ var r = ee(t), o = [I, $].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, e, {
630
+ placement: t
631
+ })) : n, p = a[0], u = a[1];
632
+ return p = p || 0, u = (u || 0) * o, [I, Y].indexOf(r) >= 0 ? {
633
+ x: u,
634
+ y: p
635
+ } : {
636
+ x: p,
637
+ y: u
638
+ };
639
+ }
640
+ function jr(t) {
641
+ var e = t.state, n = t.options, r = t.name, o = n.offset, a = o === void 0 ? [0, 0] : o, p = sn.reduce(function(c, g) {
642
+ return c[g] = Hr(g, e.rects, a), c;
643
+ }, {}), u = p[e.placement], s = u.x, d = u.y;
644
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += d), e.modifiersData[r] = p;
645
+ }
646
+ const Nr = {
647
+ name: "offset",
648
+ enabled: !0,
649
+ phase: "main",
650
+ requires: ["popperOffsets"],
651
+ fn: jr
652
+ };
653
+ function Br(t) {
654
+ var e = t.state, n = t.name;
655
+ e.modifiersData[n] = hn({
656
+ reference: e.rects.reference,
657
+ element: e.rects.popper,
658
+ placement: e.placement
659
+ });
660
+ }
661
+ const Vr = {
662
+ name: "popperOffsets",
663
+ enabled: !0,
664
+ phase: "read",
665
+ fn: Br,
666
+ data: {}
667
+ };
668
+ function kr(t) {
669
+ return t === "x" ? "y" : "x";
670
+ }
671
+ function $r(t) {
672
+ var e = t.state, n = t.options, r = t.name, o = n.mainAxis, a = o === void 0 ? !0 : o, p = n.altAxis, u = p === void 0 ? !1 : p, s = n.boundary, d = n.rootBoundary, c = n.altBoundary, g = n.padding, y = n.tether, h = y === void 0 ? !0 : y, b = n.tetherOffset, w = b === void 0 ? 0 : b, O = We(e, {
673
+ boundary: s,
674
+ rootBoundary: d,
675
+ padding: g,
676
+ altBoundary: c
677
+ }), T = ee(e.placement), C = Se(e.placement), S = !C, i = At(T), E = kr(i), f = e.modifiersData.popperOffsets, A = e.rects.reference, H = e.rects.popper, R = typeof w == "function" ? w(Object.assign({}, e.rects, {
678
+ placement: e.placement
679
+ })) : w, P = typeof R == "number" ? {
680
+ mainAxis: R,
681
+ altAxis: R
682
+ } : Object.assign({
683
+ mainAxis: 0,
684
+ altAxis: 0
685
+ }, R), j = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, M = {
686
+ x: 0,
687
+ y: 0
688
+ };
689
+ if (f) {
690
+ if (a) {
691
+ var L, W = i === "y" ? $ : I, _ = i === "y" ? z : Y, B = i === "y" ? "height" : "width", V = f[i], N = V + O[W], G = V - O[_], J = h ? -H[B] / 2 : 0, ce = C === Ce ? A[B] : H[B], Z = C === Ce ? -H[B] : -A[B], de = e.elements.arrow, ne = h && de ? Dt(de) : {
692
+ width: 0,
693
+ height: 0
694
+ }, X = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : cn(), re = X[W], ye = X[_], ie = Ve(0, A[B], ne[B]), be = S ? A[B] / 2 - J - ie - re - P.mainAxis : ce - ie - re - P.mainAxis, ue = S ? -A[B] / 2 + J + ie + ye + P.mainAxis : Z + ie + ye + P.mainAxis, we = e.elements.arrow && Ke(e.elements.arrow), ze = we ? i === "y" ? we.clientTop || 0 : we.clientLeft || 0 : 0, Me = (L = j == null ? void 0 : j[i]) != null ? L : 0, Ye = V + be - Me - ze, Xe = V + ue - Me, Re = Ve(h ? st(N, Ye) : N, V, h ? me(G, Xe) : G);
695
+ f[i] = Re, M[i] = Re - V;
696
+ }
697
+ if (u) {
698
+ var He, Ge = i === "x" ? $ : I, Je = i === "x" ? z : Y, oe = f[E], pe = E === "y" ? "height" : "width", je = oe + O[Ge], fe = oe - O[Je], Ne = [$, I].indexOf(T) !== -1, Ze = (He = j == null ? void 0 : j[E]) != null ? He : 0, Qe = Ne ? je : oe - A[pe] - H[pe] - Ze + P.altAxis, et = Ne ? oe + A[pe] + H[pe] - Ze - P.altAxis : fe, tt = h && Ne ? pr(Qe, oe, et) : Ve(h ? Qe : je, oe, h ? et : fe);
699
+ f[E] = tt, M[E] = tt - oe;
700
+ }
701
+ e.modifiersData[r] = M;
702
+ }
703
+ }
704
+ const Ir = {
705
+ name: "preventOverflow",
706
+ enabled: !0,
707
+ phase: "main",
708
+ fn: $r,
709
+ requiresIfExists: ["offset"]
710
+ };
711
+ function Wr(t) {
712
+ return {
713
+ scrollLeft: t.scrollLeft,
714
+ scrollTop: t.scrollTop
715
+ };
716
+ }
717
+ function _r(t) {
718
+ return t === U(t) || !K(t) ? St(t) : Wr(t);
719
+ }
720
+ function Fr(t) {
721
+ var e = t.getBoundingClientRect(), n = De(e.width) / t.offsetWidth || 1, r = De(e.height) / t.offsetHeight || 1;
722
+ return n !== 1 || r !== 1;
723
+ }
724
+ function Ur(t, e, n) {
725
+ n === void 0 && (n = !1);
726
+ var r = K(e), o = K(e) && Fr(e), a = le(e), p = Ae(t, o, n), u = {
727
+ scrollLeft: 0,
728
+ scrollTop: 0
729
+ }, s = {
730
+ x: 0,
731
+ y: 0
732
+ };
733
+ return (r || !r && !n) && ((te(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
734
+ Pt(a)) && (u = _r(e)), K(e) ? (s = Ae(e, !0), s.x += e.clientLeft, s.y += e.clientTop) : a && (s.x = Lt(a))), {
735
+ x: p.left + u.scrollLeft - s.x,
736
+ y: p.top + u.scrollTop - s.y,
737
+ width: p.width,
738
+ height: p.height
739
+ };
740
+ }
741
+ function qr(t) {
742
+ var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
743
+ t.forEach(function(a) {
744
+ e.set(a.name, a);
745
+ });
746
+ function o(a) {
747
+ n.add(a.name);
748
+ var p = [].concat(a.requires || [], a.requiresIfExists || []);
749
+ p.forEach(function(u) {
750
+ if (!n.has(u)) {
751
+ var s = e.get(u);
752
+ s && o(s);
753
+ }
754
+ }), r.push(a);
755
+ }
756
+ return t.forEach(function(a) {
757
+ n.has(a.name) || o(a);
758
+ }), r;
759
+ }
760
+ function Kr(t) {
761
+ var e = qr(t);
762
+ return ir.reduce(function(n, r) {
763
+ return n.concat(e.filter(function(o) {
764
+ return o.phase === r;
765
+ }));
766
+ }, []);
767
+ }
768
+ function zr(t) {
769
+ var e;
770
+ return function() {
771
+ return e || (e = new Promise(function(n) {
772
+ Promise.resolve().then(function() {
773
+ e = void 0, n(t());
774
+ });
775
+ })), e;
776
+ };
777
+ }
778
+ function Yr(t) {
779
+ var e = t.reduce(function(n, r) {
780
+ var o = n[r.name];
781
+ return n[r.name] = o ? Object.assign({}, o, r, {
782
+ options: Object.assign({}, o.options, r.options),
783
+ data: Object.assign({}, o.data, r.data)
784
+ }) : r, n;
785
+ }, {});
786
+ return Object.keys(e).map(function(n) {
787
+ return e[n];
788
+ });
789
+ }
790
+ var Wt = {
791
+ placement: "bottom",
792
+ modifiers: [],
793
+ strategy: "absolute"
794
+ };
795
+ function _t() {
796
+ for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
797
+ e[n] = arguments[n];
798
+ return !e.some(function(r) {
799
+ return !(r && typeof r.getBoundingClientRect == "function");
800
+ });
801
+ }
802
+ function Xr(t) {
803
+ t === void 0 && (t = {});
804
+ var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, a = o === void 0 ? Wt : o;
805
+ return function(u, s, d) {
806
+ d === void 0 && (d = a);
807
+ var c = {
808
+ placement: "bottom",
809
+ orderedModifiers: [],
810
+ options: Object.assign({}, Wt, a),
811
+ modifiersData: {},
812
+ elements: {
813
+ reference: u,
814
+ popper: s
815
+ },
816
+ attributes: {},
817
+ styles: {}
818
+ }, g = [], y = !1, h = {
819
+ state: c,
820
+ setOptions: function(T) {
821
+ var C = typeof T == "function" ? T(c.options) : T;
822
+ w(), c.options = Object.assign({}, a, c.options, C), c.scrollParents = {
823
+ reference: ge(u) ? ke(u) : u.contextElement ? ke(u.contextElement) : [],
824
+ popper: ke(s)
825
+ };
826
+ var S = Kr(Yr([].concat(r, c.options.modifiers)));
827
+ return c.orderedModifiers = S.filter(function(i) {
828
+ return i.enabled;
829
+ }), b(), h.update();
830
+ },
831
+ // Sync update – it will always be executed, even if not necessary. This
832
+ // is useful for low frequency updates where sync behavior simplifies the
833
+ // logic.
834
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
835
+ // prefer the async Popper#update method
836
+ forceUpdate: function() {
837
+ if (!y) {
838
+ var T = c.elements, C = T.reference, S = T.popper;
839
+ if (_t(C, S)) {
840
+ c.rects = {
841
+ reference: Ur(C, Ke(S), c.options.strategy === "fixed"),
842
+ popper: Dt(S)
843
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
844
+ return c.modifiersData[P.name] = Object.assign({}, P.data);
845
+ });
846
+ for (var i = 0; i < c.orderedModifiers.length; i++) {
847
+ if (c.reset === !0) {
848
+ c.reset = !1, i = -1;
849
+ continue;
850
+ }
851
+ var E = c.orderedModifiers[i], f = E.fn, A = E.options, H = A === void 0 ? {} : A, R = E.name;
852
+ typeof f == "function" && (c = f({
853
+ state: c,
854
+ options: H,
855
+ name: R,
856
+ instance: h
857
+ }) || c);
858
+ }
859
+ }
860
+ }
861
+ },
862
+ // Async and optimistically optimized update – it will not be executed if
863
+ // not necessary (debounced to run at most once-per-tick)
864
+ update: zr(function() {
865
+ return new Promise(function(O) {
866
+ h.forceUpdate(), O(c);
867
+ });
868
+ }),
869
+ destroy: function() {
870
+ w(), y = !0;
871
+ }
872
+ };
873
+ if (!_t(u, s))
874
+ return h;
875
+ h.setOptions(d).then(function(O) {
876
+ !y && d.onFirstUpdate && d.onFirstUpdate(O);
877
+ });
878
+ function b() {
879
+ c.orderedModifiers.forEach(function(O) {
880
+ var T = O.name, C = O.options, S = C === void 0 ? {} : C, i = O.effect;
881
+ if (typeof i == "function") {
882
+ var E = i({
883
+ state: c,
884
+ name: T,
885
+ instance: h,
886
+ options: S
887
+ }), f = function() {
888
+ };
889
+ g.push(E || f);
890
+ }
891
+ });
892
+ }
893
+ function w() {
894
+ g.forEach(function(O) {
895
+ return O();
896
+ }), g = [];
897
+ }
898
+ return h;
899
+ };
900
+ }
901
+ var Gr = [br, Vr, gr, un, Nr, Pr, Ir, fr, Rr], Jr = /* @__PURE__ */ Xr({
902
+ defaultModifiers: Gr
903
+ }), Zr = "tippy-box", mn = "tippy-content", Qr = "tippy-backdrop", gn = "tippy-arrow", yn = "tippy-svg-arrow", he = {
904
+ passive: !0,
905
+ capture: !0
906
+ }, bn = function() {
907
+ return document.body;
908
+ };
909
+ function ei(t, e) {
910
+ return {}.hasOwnProperty.call(t, e);
911
+ }
912
+ function ft(t, e, n) {
913
+ if (Array.isArray(t)) {
914
+ var r = t[e];
915
+ return r ?? (Array.isArray(n) ? n[e] : n);
916
+ }
917
+ return t;
918
+ }
919
+ function Mt(t, e) {
920
+ var n = {}.toString.call(t);
921
+ return n.indexOf("[object") === 0 && n.indexOf(e + "]") > -1;
922
+ }
923
+ function wn(t, e) {
924
+ return typeof t == "function" ? t.apply(void 0, e) : t;
925
+ }
926
+ function Ft(t, e) {
927
+ if (e === 0)
928
+ return t;
929
+ var n;
930
+ return function(r) {
931
+ clearTimeout(n), n = setTimeout(function() {
932
+ t(r);
933
+ }, e);
934
+ };
935
+ }
936
+ function ti(t, e) {
937
+ var n = Object.assign({}, t);
938
+ return e.forEach(function(r) {
939
+ delete n[r];
940
+ }), n;
941
+ }
942
+ function ni(t) {
943
+ return t.split(/\s+/).filter(Boolean);
944
+ }
945
+ function Te(t) {
946
+ return [].concat(t);
947
+ }
948
+ function Ut(t, e) {
949
+ t.indexOf(e) === -1 && t.push(e);
950
+ }
951
+ function ri(t) {
952
+ return t.filter(function(e, n) {
953
+ return t.indexOf(e) === n;
954
+ });
955
+ }
956
+ function ii(t) {
957
+ return t.split("-")[0];
958
+ }
959
+ function ut(t) {
960
+ return [].slice.call(t);
961
+ }
962
+ function qt(t) {
963
+ return Object.keys(t).reduce(function(e, n) {
964
+ return t[n] !== void 0 && (e[n] = t[n]), e;
965
+ }, {});
966
+ }
967
+ function $e() {
968
+ return document.createElement("div");
969
+ }
970
+ function _e(t) {
971
+ return ["Element", "Fragment"].some(function(e) {
972
+ return Mt(t, e);
973
+ });
974
+ }
975
+ function oi(t) {
976
+ return Mt(t, "NodeList");
977
+ }
978
+ function ai(t) {
979
+ return Mt(t, "MouseEvent");
980
+ }
981
+ function si(t) {
982
+ return !!(t && t._tippy && t._tippy.reference === t);
983
+ }
984
+ function ui(t) {
985
+ return _e(t) ? [t] : oi(t) ? ut(t) : Array.isArray(t) ? t : ut(document.querySelectorAll(t));
986
+ }
987
+ function vt(t, e) {
988
+ t.forEach(function(n) {
989
+ n && (n.style.transitionDuration = e + "ms");
990
+ });
991
+ }
992
+ function Kt(t, e) {
993
+ t.forEach(function(n) {
994
+ n && n.setAttribute("data-state", e);
995
+ });
996
+ }
997
+ function pi(t) {
998
+ var e, n = Te(t), r = n[0];
999
+ return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
1000
+ }
1001
+ function li(t, e) {
1002
+ var n = e.clientX, r = e.clientY;
1003
+ return t.every(function(o) {
1004
+ var a = o.popperRect, p = o.popperState, u = o.props, s = u.interactiveBorder, d = ii(p.placement), c = p.modifiersData.offset;
1005
+ if (!c)
1006
+ return !0;
1007
+ var g = d === "bottom" ? c.top.y : 0, y = d === "top" ? c.bottom.y : 0, h = d === "right" ? c.left.x : 0, b = d === "left" ? c.right.x : 0, w = a.top - r + g > s, O = r - a.bottom - y > s, T = a.left - n + h > s, C = n - a.right - b > s;
1008
+ return w || O || T || C;
1009
+ });
1010
+ }
1011
+ function ht(t, e, n) {
1012
+ var r = e + "EventListener";
1013
+ ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
1014
+ t[r](o, n);
1015
+ });
1016
+ }
1017
+ function zt(t, e) {
1018
+ for (var n = e; n; ) {
1019
+ var r;
1020
+ if (t.contains(n))
1021
+ return !0;
1022
+ n = n.getRootNode == null || (r = n.getRootNode()) == null ? void 0 : r.host;
1023
+ }
1024
+ return !1;
1025
+ }
1026
+ var Q = {
1027
+ isTouch: !1
1028
+ }, Yt = 0;
1029
+ function ci() {
1030
+ Q.isTouch || (Q.isTouch = !0, window.performance && document.addEventListener("mousemove", On));
1031
+ }
1032
+ function On() {
1033
+ var t = performance.now();
1034
+ t - Yt < 20 && (Q.isTouch = !1, document.removeEventListener("mousemove", On)), Yt = t;
1035
+ }
1036
+ function di() {
1037
+ var t = document.activeElement;
1038
+ if (si(t)) {
1039
+ var e = t._tippy;
1040
+ t.blur && !e.state.isVisible && t.blur();
1041
+ }
1042
+ }
1043
+ function fi() {
1044
+ document.addEventListener("touchstart", ci, he), window.addEventListener("blur", di);
1045
+ }
1046
+ var vi = typeof window < "u" && typeof document < "u", hi = vi ? (
1047
+ // @ts-ignore
1048
+ !!window.msCrypto
1049
+ ) : !1;
1050
+ function Ee(t) {
1051
+ var e = t === "destroy" ? "n already-" : " ";
1052
+ return [t + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
1053
+ }
1054
+ function Xt(t) {
1055
+ var e = /[ \t]{2,}/g, n = /^[ \t]*/gm;
1056
+ return t.replace(e, " ").replace(n, "").trim();
1057
+ }
1058
+ function mi(t) {
1059
+ return Xt(`
1060
+ %ctippy.js
1061
+
1062
+ %c` + Xt(t) + `
1063
+
1064
+ %c👷‍ This is a development-only message. It will be removed in production.
1065
+ `);
1066
+ }
1067
+ function xn(t) {
1068
+ return [
1069
+ mi(t),
1070
+ // title
1071
+ "color: #00C584; font-size: 1.3em; font-weight: bold;",
1072
+ // message
1073
+ "line-height: 1.5",
1074
+ // footer
1075
+ "color: #a6a095;"
1076
+ ];
1077
+ }
1078
+ var Fe;
1079
+ process.env.NODE_ENV !== "production" && gi();
1080
+ function gi() {
1081
+ Fe = /* @__PURE__ */ new Set();
1082
+ }
1083
+ function ae(t, e) {
1084
+ if (t && !Fe.has(e)) {
1085
+ var n;
1086
+ Fe.add(e), (n = console).warn.apply(n, xn(e));
1087
+ }
1088
+ }
1089
+ function bt(t, e) {
1090
+ if (t && !Fe.has(e)) {
1091
+ var n;
1092
+ Fe.add(e), (n = console).error.apply(n, xn(e));
1093
+ }
1094
+ }
1095
+ function yi(t) {
1096
+ var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
1097
+ bt(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), bt(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
1098
+ }
1099
+ var En = {
1100
+ animateFill: !1,
1101
+ followCursor: !1,
1102
+ inlinePositioning: !1,
1103
+ sticky: !1
1104
+ }, bi = {
1105
+ allowHTML: !1,
1106
+ animation: "fade",
1107
+ arrow: !0,
1108
+ content: "",
1109
+ inertia: !1,
1110
+ maxWidth: 350,
1111
+ role: "tooltip",
1112
+ theme: "",
1113
+ zIndex: 9999
1114
+ }, F = Object.assign({
1115
+ appendTo: bn,
1116
+ aria: {
1117
+ content: "auto",
1118
+ expanded: "auto"
1119
+ },
1120
+ delay: 0,
1121
+ duration: [300, 250],
1122
+ getReferenceClientRect: null,
1123
+ hideOnClick: !0,
1124
+ ignoreAttributes: !1,
1125
+ interactive: !1,
1126
+ interactiveBorder: 2,
1127
+ interactiveDebounce: 0,
1128
+ moveTransition: "",
1129
+ offset: [0, 10],
1130
+ onAfterUpdate: function() {
1131
+ },
1132
+ onBeforeUpdate: function() {
1133
+ },
1134
+ onCreate: function() {
1135
+ },
1136
+ onDestroy: function() {
1137
+ },
1138
+ onHidden: function() {
1139
+ },
1140
+ onHide: function() {
1141
+ },
1142
+ onMount: function() {
1143
+ },
1144
+ onShow: function() {
1145
+ },
1146
+ onShown: function() {
1147
+ },
1148
+ onTrigger: function() {
1149
+ },
1150
+ onUntrigger: function() {
1151
+ },
1152
+ onClickOutside: function() {
1153
+ },
1154
+ placement: "top",
1155
+ plugins: [],
1156
+ popperOptions: {},
1157
+ render: null,
1158
+ showOnCreate: !1,
1159
+ touch: !0,
1160
+ trigger: "mouseenter focus",
1161
+ triggerTarget: null
1162
+ }, En, bi), wi = Object.keys(F), Oi = function(e) {
1163
+ process.env.NODE_ENV !== "production" && Cn(e, []);
1164
+ var n = Object.keys(e);
1165
+ n.forEach(function(r) {
1166
+ F[r] = e[r];
1167
+ });
1168
+ };
1169
+ function Tn(t) {
1170
+ var e = t.plugins || [], n = e.reduce(function(r, o) {
1171
+ var a = o.name, p = o.defaultValue;
1172
+ if (a) {
1173
+ var u;
1174
+ r[a] = t[a] !== void 0 ? t[a] : (u = F[a]) != null ? u : p;
1175
+ }
1176
+ return r;
1177
+ }, {});
1178
+ return Object.assign({}, t, n);
1179
+ }
1180
+ function xi(t, e) {
1181
+ var n = e ? Object.keys(Tn(Object.assign({}, F, {
1182
+ plugins: e
1183
+ }))) : wi, r = n.reduce(function(o, a) {
1184
+ var p = (t.getAttribute("data-tippy-" + a) || "").trim();
1185
+ if (!p)
1186
+ return o;
1187
+ if (a === "content")
1188
+ o[a] = p;
1189
+ else
1190
+ try {
1191
+ o[a] = JSON.parse(p);
1192
+ } catch {
1193
+ o[a] = p;
1194
+ }
1195
+ return o;
1196
+ }, {});
1197
+ return r;
1198
+ }
1199
+ function Gt(t, e) {
1200
+ var n = Object.assign({}, e, {
1201
+ content: wn(e.content, [t])
1202
+ }, e.ignoreAttributes ? {} : xi(t, e.plugins));
1203
+ return n.aria = Object.assign({}, F.aria, n.aria), n.aria = {
1204
+ expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
1205
+ content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
1206
+ }, n;
1207
+ }
1208
+ function Cn(t, e) {
1209
+ t === void 0 && (t = {}), e === void 0 && (e = []);
1210
+ var n = Object.keys(t);
1211
+ n.forEach(function(r) {
1212
+ var o = ti(F, Object.keys(En)), a = !ei(o, r);
1213
+ a && (a = e.filter(function(p) {
1214
+ return p.name === r;
1215
+ }).length === 0), ae(a, ["`" + 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.", `
1216
+
1217
+ `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
1218
+ `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
1219
+ });
1220
+ }
1221
+ var Ei = function() {
1222
+ return "innerHTML";
1223
+ };
1224
+ function wt(t, e) {
1225
+ t[Ei()] = e;
1226
+ }
1227
+ function Jt(t) {
1228
+ var e = $e();
1229
+ return t === !0 ? e.className = gn : (e.className = yn, _e(t) ? e.appendChild(t) : wt(e, t)), e;
1230
+ }
1231
+ function Zt(t, e) {
1232
+ _e(e.content) ? (wt(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? wt(t, e.content) : t.textContent = e.content);
1233
+ }
1234
+ function Ot(t) {
1235
+ var e = t.firstElementChild, n = ut(e.children);
1236
+ return {
1237
+ box: e,
1238
+ content: n.find(function(r) {
1239
+ return r.classList.contains(mn);
1240
+ }),
1241
+ arrow: n.find(function(r) {
1242
+ return r.classList.contains(gn) || r.classList.contains(yn);
1243
+ }),
1244
+ backdrop: n.find(function(r) {
1245
+ return r.classList.contains(Qr);
1246
+ })
1247
+ };
1248
+ }
1249
+ function Dn(t) {
1250
+ var e = $e(), n = $e();
1251
+ n.className = Zr, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
1252
+ var r = $e();
1253
+ r.className = mn, r.setAttribute("data-state", "hidden"), Zt(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
1254
+ function o(a, p) {
1255
+ var u = Ot(e), s = u.box, d = u.content, c = u.arrow;
1256
+ p.theme ? s.setAttribute("data-theme", p.theme) : s.removeAttribute("data-theme"), typeof p.animation == "string" ? s.setAttribute("data-animation", p.animation) : s.removeAttribute("data-animation"), p.inertia ? s.setAttribute("data-inertia", "") : s.removeAttribute("data-inertia"), s.style.maxWidth = typeof p.maxWidth == "number" ? p.maxWidth + "px" : p.maxWidth, p.role ? s.setAttribute("role", p.role) : s.removeAttribute("role"), (a.content !== p.content || a.allowHTML !== p.allowHTML) && Zt(d, t.props), p.arrow ? c ? a.arrow !== p.arrow && (s.removeChild(c), s.appendChild(Jt(p.arrow))) : s.appendChild(Jt(p.arrow)) : c && s.removeChild(c);
1257
+ }
1258
+ return {
1259
+ popper: e,
1260
+ onUpdate: o
1261
+ };
1262
+ }
1263
+ Dn.$$tippy = !0;
1264
+ var Ti = 1, ot = [], mt = [];
1265
+ function Ci(t, e) {
1266
+ var n = Gt(t, Object.assign({}, F, Tn(qt(e)))), r, o, a, p = !1, u = !1, s = !1, d = !1, c, g, y, h = [], b = Ft(Ye, n.interactiveDebounce), w, O = Ti++, T = null, C = ri(n.plugins), S = {
1267
+ // Is the instance currently enabled?
1268
+ isEnabled: !0,
1269
+ // Is the tippy currently showing and not transitioning out?
1270
+ isVisible: !1,
1271
+ // Has the instance been destroyed?
1272
+ isDestroyed: !1,
1273
+ // Is the tippy currently mounted to the DOM?
1274
+ isMounted: !1,
1275
+ // Has the tippy finished transitioning in?
1276
+ isShown: !1
1277
+ }, i = {
1278
+ // properties
1279
+ id: O,
1280
+ reference: t,
1281
+ popper: $e(),
1282
+ popperInstance: T,
1283
+ props: n,
1284
+ state: S,
1285
+ plugins: C,
1286
+ // methods
1287
+ clearDelayTimeouts: Qe,
1288
+ setProps: et,
1289
+ setContent: tt,
1290
+ show: Ln,
1291
+ hide: Pn,
1292
+ hideWithInteractivity: Mn,
1293
+ enable: Ne,
1294
+ disable: Ze,
1295
+ unmount: Rn,
1296
+ destroy: Hn
1297
+ };
1298
+ if (!n.render)
1299
+ return process.env.NODE_ENV !== "production" && bt(!0, "render() function has not been supplied."), i;
1300
+ var E = n.render(i), f = E.popper, A = E.onUpdate;
1301
+ f.setAttribute("data-tippy-root", ""), f.id = "tippy-" + i.id, i.popper = f, t._tippy = i, f._tippy = i;
1302
+ var H = C.map(function(l) {
1303
+ return l.fn(i);
1304
+ }), R = t.hasAttribute("aria-expanded");
1305
+ return we(), J(), V(), N("onCreate", [i]), n.showOnCreate && je(), f.addEventListener("mouseenter", function() {
1306
+ i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
1307
+ }), f.addEventListener("mouseleave", function() {
1308
+ i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && W().addEventListener("mousemove", b);
1309
+ }), i;
1310
+ function P() {
1311
+ var l = i.props.touch;
1312
+ return Array.isArray(l) ? l : [l, 0];
1313
+ }
1314
+ function j() {
1315
+ return P()[0] === "hold";
1316
+ }
1317
+ function M() {
1318
+ var l;
1319
+ return !!((l = i.props.render) != null && l.$$tippy);
1320
+ }
1321
+ function L() {
1322
+ return w || t;
1323
+ }
1324
+ function W() {
1325
+ var l = L().parentNode;
1326
+ return l ? pi(l) : document;
1327
+ }
1328
+ function _() {
1329
+ return Ot(f);
1330
+ }
1331
+ function B(l) {
1332
+ return i.state.isMounted && !i.state.isVisible || Q.isTouch || c && c.type === "focus" ? 0 : ft(i.props.delay, l ? 0 : 1, F.delay);
1333
+ }
1334
+ function V(l) {
1335
+ l === void 0 && (l = !1), f.style.pointerEvents = i.props.interactive && !l ? "" : "none", f.style.zIndex = "" + i.props.zIndex;
1336
+ }
1337
+ function N(l, v, m) {
1338
+ if (m === void 0 && (m = !0), H.forEach(function(x) {
1339
+ x[l] && x[l].apply(x, v);
1340
+ }), m) {
1341
+ var D;
1342
+ (D = i.props)[l].apply(D, v);
1343
+ }
1344
+ }
1345
+ function G() {
1346
+ var l = i.props.aria;
1347
+ if (l.content) {
1348
+ var v = "aria-" + l.content, m = f.id, D = Te(i.props.triggerTarget || t);
1349
+ D.forEach(function(x) {
1350
+ var k = x.getAttribute(v);
1351
+ if (i.state.isVisible)
1352
+ x.setAttribute(v, k ? k + " " + m : m);
1353
+ else {
1354
+ var q = k && k.replace(m, "").trim();
1355
+ q ? x.setAttribute(v, q) : x.removeAttribute(v);
1356
+ }
1357
+ });
1358
+ }
1359
+ }
1360
+ function J() {
1361
+ if (!(R || !i.props.aria.expanded)) {
1362
+ var l = Te(i.props.triggerTarget || t);
1363
+ l.forEach(function(v) {
1364
+ i.props.interactive ? v.setAttribute("aria-expanded", i.state.isVisible && v === L() ? "true" : "false") : v.removeAttribute("aria-expanded");
1365
+ });
1366
+ }
1367
+ }
1368
+ function ce() {
1369
+ W().removeEventListener("mousemove", b), ot = ot.filter(function(l) {
1370
+ return l !== b;
1371
+ });
1372
+ }
1373
+ function Z(l) {
1374
+ if (!(Q.isTouch && (s || l.type === "mousedown"))) {
1375
+ var v = l.composedPath && l.composedPath()[0] || l.target;
1376
+ if (!(i.props.interactive && zt(f, v))) {
1377
+ if (Te(i.props.triggerTarget || t).some(function(m) {
1378
+ return zt(m, v);
1379
+ })) {
1380
+ if (Q.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
1381
+ return;
1382
+ } else
1383
+ N("onClickOutside", [i, l]);
1384
+ i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), u = !0, setTimeout(function() {
1385
+ u = !1;
1386
+ }), i.state.isMounted || re());
1387
+ }
1388
+ }
1389
+ }
1390
+ function de() {
1391
+ s = !0;
1392
+ }
1393
+ function ne() {
1394
+ s = !1;
1395
+ }
1396
+ function X() {
1397
+ var l = W();
1398
+ l.addEventListener("mousedown", Z, !0), l.addEventListener("touchend", Z, he), l.addEventListener("touchstart", ne, he), l.addEventListener("touchmove", de, he);
1399
+ }
1400
+ function re() {
1401
+ var l = W();
1402
+ l.removeEventListener("mousedown", Z, !0), l.removeEventListener("touchend", Z, he), l.removeEventListener("touchstart", ne, he), l.removeEventListener("touchmove", de, he);
1403
+ }
1404
+ function ye(l, v) {
1405
+ be(l, function() {
1406
+ !i.state.isVisible && f.parentNode && f.parentNode.contains(f) && v();
1407
+ });
1408
+ }
1409
+ function ie(l, v) {
1410
+ be(l, v);
1411
+ }
1412
+ function be(l, v) {
1413
+ var m = _().box;
1414
+ function D(x) {
1415
+ x.target === m && (ht(m, "remove", D), v());
1416
+ }
1417
+ if (l === 0)
1418
+ return v();
1419
+ ht(m, "remove", g), ht(m, "add", D), g = D;
1420
+ }
1421
+ function ue(l, v, m) {
1422
+ m === void 0 && (m = !1);
1423
+ var D = Te(i.props.triggerTarget || t);
1424
+ D.forEach(function(x) {
1425
+ x.addEventListener(l, v, m), h.push({
1426
+ node: x,
1427
+ eventType: l,
1428
+ handler: v,
1429
+ options: m
1430
+ });
1431
+ });
1432
+ }
1433
+ function we() {
1434
+ j() && (ue("touchstart", Me, {
1435
+ passive: !0
1436
+ }), ue("touchend", Xe, {
1437
+ passive: !0
1438
+ })), ni(i.props.trigger).forEach(function(l) {
1439
+ if (l !== "manual")
1440
+ switch (ue(l, Me), l) {
1441
+ case "mouseenter":
1442
+ ue("mouseleave", Xe);
1443
+ break;
1444
+ case "focus":
1445
+ ue(hi ? "focusout" : "blur", Re);
1446
+ break;
1447
+ case "focusin":
1448
+ ue("focusout", Re);
1449
+ break;
1450
+ }
1451
+ });
1452
+ }
1453
+ function ze() {
1454
+ h.forEach(function(l) {
1455
+ var v = l.node, m = l.eventType, D = l.handler, x = l.options;
1456
+ v.removeEventListener(m, D, x);
1457
+ }), h = [];
1458
+ }
1459
+ function Me(l) {
1460
+ var v, m = !1;
1461
+ if (!(!i.state.isEnabled || He(l) || u)) {
1462
+ var D = ((v = c) == null ? void 0 : v.type) === "focus";
1463
+ c = l, w = l.currentTarget, J(), !i.state.isVisible && ai(l) && ot.forEach(function(x) {
1464
+ return x(l);
1465
+ }), l.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || p) && i.props.hideOnClick !== !1 && i.state.isVisible ? m = !0 : je(l), l.type === "click" && (p = !m), m && !D && fe(l);
1466
+ }
1467
+ }
1468
+ function Ye(l) {
1469
+ var v = l.target, m = L().contains(v) || f.contains(v);
1470
+ if (!(l.type === "mousemove" && m)) {
1471
+ var D = pe().concat(f).map(function(x) {
1472
+ var k, q = x._tippy, Oe = (k = q.popperInstance) == null ? void 0 : k.state;
1473
+ return Oe ? {
1474
+ popperRect: x.getBoundingClientRect(),
1475
+ popperState: Oe,
1476
+ props: n
1477
+ } : null;
1478
+ }).filter(Boolean);
1479
+ li(D, l) && (ce(), fe(l));
1480
+ }
1481
+ }
1482
+ function Xe(l) {
1483
+ var v = He(l) || i.props.trigger.indexOf("click") >= 0 && p;
1484
+ if (!v) {
1485
+ if (i.props.interactive) {
1486
+ i.hideWithInteractivity(l);
1487
+ return;
1488
+ }
1489
+ fe(l);
1490
+ }
1491
+ }
1492
+ function Re(l) {
1493
+ i.props.trigger.indexOf("focusin") < 0 && l.target !== L() || i.props.interactive && l.relatedTarget && f.contains(l.relatedTarget) || fe(l);
1494
+ }
1495
+ function He(l) {
1496
+ return Q.isTouch ? j() !== l.type.indexOf("touch") >= 0 : !1;
1497
+ }
1498
+ function Ge() {
1499
+ Je();
1500
+ var l = i.props, v = l.popperOptions, m = l.placement, D = l.offset, x = l.getReferenceClientRect, k = l.moveTransition, q = M() ? Ot(f).arrow : null, Oe = x ? {
1501
+ getBoundingClientRect: x,
1502
+ contextElement: x.contextElement || L()
1503
+ } : t, Rt = {
1504
+ name: "$$tippy",
1505
+ enabled: !0,
1506
+ phase: "beforeWrite",
1507
+ requires: ["computeStyles"],
1508
+ fn: function(nt) {
1509
+ var xe = nt.state;
1510
+ if (M()) {
1511
+ var jn = _(), dt = jn.box;
1512
+ ["placement", "reference-hidden", "escaped"].forEach(function(rt) {
1513
+ rt === "placement" ? dt.setAttribute("data-placement", xe.placement) : xe.attributes.popper["data-popper-" + rt] ? dt.setAttribute("data-" + rt, "") : dt.removeAttribute("data-" + rt);
1514
+ }), xe.attributes.popper = {};
1515
+ }
1516
+ }
1517
+ }, ve = [{
1518
+ name: "offset",
1519
+ options: {
1520
+ offset: D
1521
+ }
1522
+ }, {
1523
+ name: "preventOverflow",
1524
+ options: {
1525
+ padding: {
1526
+ top: 2,
1527
+ bottom: 2,
1528
+ left: 5,
1529
+ right: 5
1530
+ }
1531
+ }
1532
+ }, {
1533
+ name: "flip",
1534
+ options: {
1535
+ padding: 5
1536
+ }
1537
+ }, {
1538
+ name: "computeStyles",
1539
+ options: {
1540
+ adaptive: !k
1541
+ }
1542
+ }, Rt];
1543
+ M() && q && ve.push({
1544
+ name: "arrow",
1545
+ options: {
1546
+ element: q,
1547
+ padding: 3
1548
+ }
1549
+ }), ve.push.apply(ve, (v == null ? void 0 : v.modifiers) || []), i.popperInstance = Jr(Oe, f, Object.assign({}, v, {
1550
+ placement: m,
1551
+ onFirstUpdate: y,
1552
+ modifiers: ve
1553
+ }));
1554
+ }
1555
+ function Je() {
1556
+ i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
1557
+ }
1558
+ function oe() {
1559
+ var l = i.props.appendTo, v, m = L();
1560
+ i.props.interactive && l === bn || l === "parent" ? v = m.parentNode : v = wn(l, [m]), v.contains(f) || v.appendChild(f), i.state.isMounted = !0, Ge(), process.env.NODE_ENV !== "production" && ae(i.props.interactive && l === F.appendTo && m.nextElementSibling !== f, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
1561
+
1562
+ `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
1563
+
1564
+ `, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
1565
+
1566
+ `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
1567
+ }
1568
+ function pe() {
1569
+ return ut(f.querySelectorAll("[data-tippy-root]"));
1570
+ }
1571
+ function je(l) {
1572
+ i.clearDelayTimeouts(), l && N("onTrigger", [i, l]), X();
1573
+ var v = B(!0), m = P(), D = m[0], x = m[1];
1574
+ Q.isTouch && D === "hold" && x && (v = x), v ? r = setTimeout(function() {
1575
+ i.show();
1576
+ }, v) : i.show();
1577
+ }
1578
+ function fe(l) {
1579
+ if (i.clearDelayTimeouts(), N("onUntrigger", [i, l]), !i.state.isVisible) {
1580
+ re();
1581
+ return;
1582
+ }
1583
+ if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(l.type) >= 0 && p)) {
1584
+ var v = B(!1);
1585
+ v ? o = setTimeout(function() {
1586
+ i.state.isVisible && i.hide();
1587
+ }, v) : a = requestAnimationFrame(function() {
1588
+ i.hide();
1589
+ });
1590
+ }
1591
+ }
1592
+ function Ne() {
1593
+ i.state.isEnabled = !0;
1594
+ }
1595
+ function Ze() {
1596
+ i.hide(), i.state.isEnabled = !1;
1597
+ }
1598
+ function Qe() {
1599
+ clearTimeout(r), clearTimeout(o), cancelAnimationFrame(a);
1600
+ }
1601
+ function et(l) {
1602
+ if (process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("setProps")), !i.state.isDestroyed) {
1603
+ N("onBeforeUpdate", [i, l]), ze();
1604
+ var v = i.props, m = Gt(t, Object.assign({}, v, qt(l), {
1605
+ ignoreAttributes: !0
1606
+ }));
1607
+ i.props = m, we(), v.interactiveDebounce !== m.interactiveDebounce && (ce(), b = Ft(Ye, m.interactiveDebounce)), v.triggerTarget && !m.triggerTarget ? Te(v.triggerTarget).forEach(function(D) {
1608
+ D.removeAttribute("aria-expanded");
1609
+ }) : m.triggerTarget && t.removeAttribute("aria-expanded"), J(), V(), A && A(v, m), i.popperInstance && (Ge(), pe().forEach(function(D) {
1610
+ requestAnimationFrame(D._tippy.popperInstance.forceUpdate);
1611
+ })), N("onAfterUpdate", [i, l]);
1612
+ }
1613
+ }
1614
+ function tt(l) {
1615
+ i.setProps({
1616
+ content: l
1617
+ });
1618
+ }
1619
+ function Ln() {
1620
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("show"));
1621
+ var l = i.state.isVisible, v = i.state.isDestroyed, m = !i.state.isEnabled, D = Q.isTouch && !i.props.touch, x = ft(i.props.duration, 0, F.duration);
1622
+ if (!(l || v || m || D) && !L().hasAttribute("disabled") && (N("onShow", [i], !1), i.props.onShow(i) !== !1)) {
1623
+ if (i.state.isVisible = !0, M() && (f.style.visibility = "visible"), V(), X(), i.state.isMounted || (f.style.transition = "none"), M()) {
1624
+ var k = _(), q = k.box, Oe = k.content;
1625
+ vt([q, Oe], 0);
1626
+ }
1627
+ y = function() {
1628
+ var ve;
1629
+ if (!(!i.state.isVisible || d)) {
1630
+ if (d = !0, f.style.transition = i.props.moveTransition, M() && i.props.animation) {
1631
+ var ct = _(), nt = ct.box, xe = ct.content;
1632
+ vt([nt, xe], x), Kt([nt, xe], "visible");
1633
+ }
1634
+ G(), J(), Ut(mt, i), (ve = i.popperInstance) == null || ve.forceUpdate(), N("onMount", [i]), i.props.animation && M() && ie(x, function() {
1635
+ i.state.isShown = !0, N("onShown", [i]);
1636
+ });
1637
+ }
1638
+ }, oe();
1639
+ }
1640
+ }
1641
+ function Pn() {
1642
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("hide"));
1643
+ var l = !i.state.isVisible, v = i.state.isDestroyed, m = !i.state.isEnabled, D = ft(i.props.duration, 1, F.duration);
1644
+ if (!(l || v || m) && (N("onHide", [i], !1), i.props.onHide(i) !== !1)) {
1645
+ if (i.state.isVisible = !1, i.state.isShown = !1, d = !1, p = !1, M() && (f.style.visibility = "hidden"), ce(), re(), V(!0), M()) {
1646
+ var x = _(), k = x.box, q = x.content;
1647
+ i.props.animation && (vt([k, q], D), Kt([k, q], "hidden"));
1648
+ }
1649
+ G(), J(), i.props.animation ? M() && ye(D, i.unmount) : i.unmount();
1650
+ }
1651
+ }
1652
+ function Mn(l) {
1653
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("hideWithInteractivity")), W().addEventListener("mousemove", b), Ut(ot, b), b(l);
1654
+ }
1655
+ function Rn() {
1656
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Je(), pe().forEach(function(l) {
1657
+ l._tippy.unmount();
1658
+ }), f.parentNode && f.parentNode.removeChild(f), mt = mt.filter(function(l) {
1659
+ return l !== i;
1660
+ }), i.state.isMounted = !1, N("onHidden", [i]));
1661
+ }
1662
+ function Hn() {
1663
+ process.env.NODE_ENV !== "production" && ae(i.state.isDestroyed, Ee("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), ze(), delete t._tippy, i.state.isDestroyed = !0, N("onDestroy", [i]));
1664
+ }
1665
+ }
1666
+ function Pe(t, e) {
1667
+ e === void 0 && (e = {});
1668
+ var n = F.plugins.concat(e.plugins || []);
1669
+ process.env.NODE_ENV !== "production" && (yi(t), Cn(e, n)), fi();
1670
+ var r = Object.assign({}, e, {
1671
+ plugins: n
1672
+ }), o = ui(t);
1673
+ if (process.env.NODE_ENV !== "production") {
1674
+ var a = _e(r.content), p = o.length > 1;
1675
+ ae(a && p, ["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.", `
1676
+
1677
+ `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
1678
+
1679
+ `, `1) content: element.innerHTML
1680
+ `, "2) content: () => element.cloneNode(true)"].join(" "));
1681
+ }
1682
+ var u = o.reduce(function(s, d) {
1683
+ var c = d && Ci(d, r);
1684
+ return c && s.push(c), s;
1685
+ }, []);
1686
+ return _e(t) ? u[0] : u;
1687
+ }
1688
+ Pe.defaultProps = F;
1689
+ Pe.setDefaultProps = Oi;
1690
+ Pe.currentInput = Q;
1691
+ Object.assign({}, un, {
1692
+ effect: function(e) {
1693
+ var n = e.state, r = {
1694
+ popper: {
1695
+ position: n.options.strategy,
1696
+ left: "0",
1697
+ top: "0",
1698
+ margin: "0"
1699
+ },
1700
+ arrow: {
1701
+ position: "absolute"
1702
+ },
1703
+ reference: {}
1704
+ };
1705
+ Object.assign(n.elements.popper.style, r.popper), n.styles = r, n.elements.arrow && Object.assign(n.elements.arrow.style, r.arrow);
1706
+ }
1707
+ });
1708
+ Pe.setDefaultProps({
1709
+ render: Dn
1710
+ });
1711
+ class Di {
1712
+ constructor({ editor: e, element: n, view: r, tippyOptions: o = {}, updateDelay: a = 250, shouldShow: p }) {
1713
+ this.preventHide = !1, this.shouldShow = ({ view: u, state: s, from: d, to: c }) => {
1714
+ const { doc: g, selection: y } = s, { empty: h } = y, b = !g.textBetween(d, c).length && Nn(s.selection), w = this.element.contains(document.activeElement);
1715
+ return !(!(u.hasFocus() || w) || h || b || !this.editor.isEditable);
1716
+ }, this.mousedownHandler = () => {
1717
+ this.preventHide = !0;
1718
+ }, this.dragstartHandler = () => {
1719
+ this.hide();
1720
+ }, this.focusHandler = () => {
1721
+ setTimeout(() => this.update(this.editor.view));
1722
+ }, this.blurHandler = ({ event: u }) => {
1723
+ var s;
1724
+ if (this.preventHide) {
1725
+ this.preventHide = !1;
1726
+ return;
1727
+ }
1728
+ u != null && u.relatedTarget && (!((s = this.element.parentNode) === null || s === void 0) && s.contains(u.relatedTarget)) || (u == null ? void 0 : u.relatedTarget) !== this.editor.view.dom && this.hide();
1729
+ }, this.tippyBlurHandler = (u) => {
1730
+ this.blurHandler({ event: u });
1731
+ }, this.handleDebouncedUpdate = (u, s) => {
1732
+ const d = !(s != null && s.selection.eq(u.state.selection)), c = !(s != null && s.doc.eq(u.state.doc));
1733
+ !d && !c || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => {
1734
+ this.updateHandler(u, d, c, s);
1735
+ }, this.updateDelay));
1736
+ }, this.updateHandler = (u, s, d, c) => {
1737
+ var g, y, h;
1738
+ const { state: b, composing: w } = u, { selection: O } = b;
1739
+ if (w || !s && !d)
1740
+ return;
1741
+ this.createTooltip();
1742
+ const { ranges: C } = O, S = Math.min(...C.map((f) => f.$from.pos)), i = Math.max(...C.map((f) => f.$to.pos));
1743
+ if (!((g = this.shouldShow) === null || g === void 0 ? void 0 : g.call(this, {
1744
+ editor: this.editor,
1745
+ element: this.element,
1746
+ view: u,
1747
+ state: b,
1748
+ oldState: c,
1749
+ from: S,
1750
+ to: i
1751
+ }))) {
1752
+ this.hide();
1753
+ return;
1754
+ }
1755
+ (y = this.tippy) === null || y === void 0 || y.setProps({
1756
+ getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
1757
+ if (Bn(b.selection)) {
1758
+ let f = u.nodeDOM(S);
1759
+ if (f) {
1760
+ const A = f.dataset.nodeViewWrapper ? f : f.querySelector("[data-node-view-wrapper]");
1761
+ if (A && (f = A.firstChild), f)
1762
+ return f.getBoundingClientRect();
1763
+ }
1764
+ }
1765
+ return nn(u, S, i);
1766
+ })
1767
+ }), this.show();
1768
+ }, this.editor = e, this.element = n, this.view = r, this.updateDelay = a, p && (this.shouldShow = p), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = o, this.element.remove(), this.element.style.visibility = "visible";
1769
+ }
1770
+ createTooltip() {
1771
+ const { element: e } = this.editor.options, n = !!e.parentElement;
1772
+ this.element.tabIndex = 0, !(this.tippy || !n) && (this.tippy = Pe(e, {
1773
+ duration: 0,
1774
+ getReferenceClientRect: null,
1775
+ content: this.element,
1776
+ interactive: !0,
1777
+ trigger: "manual",
1778
+ placement: "top",
1779
+ hideOnClick: "toggle",
1780
+ ...this.tippyOptions
1781
+ }), this.tippy.popper.firstChild && this.tippy.popper.firstChild.addEventListener("blur", this.tippyBlurHandler));
1782
+ }
1783
+ update(e, n) {
1784
+ const { state: r } = e, o = r.selection.from !== r.selection.to;
1785
+ if (this.updateDelay > 0 && o) {
1786
+ this.handleDebouncedUpdate(e, n);
1787
+ return;
1788
+ }
1789
+ const a = !(n != null && n.selection.eq(e.state.selection)), p = !(n != null && n.doc.eq(e.state.doc));
1790
+ this.updateHandler(e, a, p, n);
1791
+ }
1792
+ show() {
1793
+ var e;
1794
+ (e = this.tippy) === null || e === void 0 || e.show();
1795
+ }
1796
+ hide() {
1797
+ var e;
1798
+ (e = this.tippy) === null || e === void 0 || e.hide();
1799
+ }
1800
+ destroy() {
1801
+ var e, n;
1802
+ !((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);
1803
+ }
1804
+ }
1805
+ const An = (t) => new en({
1806
+ key: typeof t.pluginKey == "string" ? new tn(t.pluginKey) : t.pluginKey,
1807
+ view: (e) => new Di({ view: e, ...t })
1808
+ });
1809
+ rn.create({
1810
+ name: "bubbleMenu",
1811
+ addOptions() {
1812
+ return {
1813
+ element: null,
1814
+ tippyOptions: {},
1815
+ pluginKey: "bubbleMenu",
1816
+ updateDelay: void 0,
1817
+ shouldShow: null
1818
+ };
1819
+ },
1820
+ addProseMirrorPlugins() {
1821
+ return this.options.element ? [
1822
+ An({
1823
+ pluginKey: this.options.pluginKey,
1824
+ editor: this.editor,
1825
+ element: this.options.element,
1826
+ tippyOptions: this.options.tippyOptions,
1827
+ updateDelay: this.options.updateDelay,
1828
+ shouldShow: this.options.shouldShow
1829
+ })
1830
+ ] : [];
1831
+ }
1832
+ });
1833
+ class Ai {
1834
+ getTextContent(e) {
1835
+ return Vn(e, { textSerializers: kn(this.editor.schema) });
1836
+ }
1837
+ constructor({ editor: e, element: n, view: r, tippyOptions: o = {}, shouldShow: a }) {
1838
+ this.preventHide = !1, this.shouldShow = ({ view: p, state: u }) => {
1839
+ const { selection: s } = u, { $anchor: d, empty: c } = s, g = d.depth === 1, y = d.parent.isTextblock && !d.parent.type.spec.code && !d.parent.textContent && d.parent.childCount === 0 && !this.getTextContent(d.parent);
1840
+ return !(!p.hasFocus() || !c || !g || !y || !this.editor.isEditable);
1841
+ }, this.mousedownHandler = () => {
1842
+ this.preventHide = !0;
1843
+ }, this.focusHandler = () => {
1844
+ setTimeout(() => this.update(this.editor.view));
1845
+ }, this.blurHandler = ({ event: p }) => {
1846
+ var u;
1847
+ if (this.preventHide) {
1848
+ this.preventHide = !1;
1849
+ return;
1850
+ }
1851
+ p != null && p.relatedTarget && (!((u = this.element.parentNode) === null || u === void 0) && u.contains(p.relatedTarget)) || (p == null ? void 0 : p.relatedTarget) !== this.editor.view.dom && this.hide();
1852
+ }, this.tippyBlurHandler = (p) => {
1853
+ this.blurHandler({ event: p });
1854
+ }, this.editor = e, this.element = n, this.view = r, a && (this.shouldShow = a), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = o, this.element.remove(), this.element.style.visibility = "visible";
1855
+ }
1856
+ createTooltip() {
1857
+ const { element: e } = this.editor.options, n = !!e.parentElement;
1858
+ this.element.tabIndex = 0, !(this.tippy || !n) && (this.tippy = Pe(e, {
1859
+ duration: 0,
1860
+ getReferenceClientRect: null,
1861
+ content: this.element,
1862
+ interactive: !0,
1863
+ trigger: "manual",
1864
+ placement: "right",
1865
+ hideOnClick: "toggle",
1866
+ ...this.tippyOptions
1867
+ }), this.tippy.popper.firstChild && this.tippy.popper.firstChild.addEventListener("blur", this.tippyBlurHandler));
1868
+ }
1869
+ update(e, n) {
1870
+ var r, o, a;
1871
+ const { state: p } = e, { doc: u, selection: s } = p, { from: d, to: c } = s;
1872
+ if (n && n.doc.eq(u) && n.selection.eq(s))
1873
+ return;
1874
+ if (this.createTooltip(), !((r = this.shouldShow) === null || r === void 0 ? void 0 : r.call(this, {
1875
+ editor: this.editor,
1876
+ view: e,
1877
+ state: p,
1878
+ oldState: n
1879
+ }))) {
1880
+ this.hide();
1881
+ return;
1882
+ }
1883
+ (o = this.tippy) === null || o === void 0 || o.setProps({
1884
+ getReferenceClientRect: ((a = this.tippyOptions) === null || a === void 0 ? void 0 : a.getReferenceClientRect) || (() => nn(e, d, c))
1885
+ }), this.show();
1886
+ }
1887
+ show() {
1888
+ var e;
1889
+ (e = this.tippy) === null || e === void 0 || e.show();
1890
+ }
1891
+ hide() {
1892
+ var e;
1893
+ (e = this.tippy) === null || e === void 0 || e.hide();
1894
+ }
1895
+ destroy() {
1896
+ var e, n;
1897
+ !((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);
1898
+ }
1899
+ }
1900
+ const Sn = (t) => new en({
1901
+ key: typeof t.pluginKey == "string" ? new tn(t.pluginKey) : t.pluginKey,
1902
+ view: (e) => new Ai({ view: e, ...t })
1903
+ });
1904
+ rn.create({
1905
+ name: "floatingMenu",
1906
+ addOptions() {
1907
+ return {
1908
+ element: null,
1909
+ tippyOptions: {},
1910
+ pluginKey: "floatingMenu",
1911
+ shouldShow: null
1912
+ };
1913
+ },
1914
+ addProseMirrorPlugins() {
1915
+ return this.options.element ? [
1916
+ Sn({
1917
+ pluginKey: this.options.pluginKey,
1918
+ editor: this.editor,
1919
+ element: this.options.element,
1920
+ tippyOptions: this.options.tippyOptions,
1921
+ shouldShow: this.options.shouldShow
1922
+ })
1923
+ ] : [];
1924
+ }
1925
+ });
1926
+ Ue({
1927
+ name: "BubbleMenu",
1928
+ props: {
1929
+ pluginKey: {
1930
+ type: [String, Object],
1931
+ default: "bubbleMenu"
1932
+ },
1933
+ editor: {
1934
+ type: Object,
1935
+ required: !0
1936
+ },
1937
+ updateDelay: {
1938
+ type: Number,
1939
+ default: void 0
1940
+ },
1941
+ tippyOptions: {
1942
+ type: Object,
1943
+ default: () => ({})
1944
+ },
1945
+ shouldShow: {
1946
+ type: Function,
1947
+ default: null
1948
+ }
1949
+ },
1950
+ setup(t, { slots: e }) {
1951
+ const n = Et(null);
1952
+ return xt(() => {
1953
+ const { updateDelay: r, editor: o, pluginKey: a, shouldShow: p, tippyOptions: u } = t;
1954
+ o.registerPlugin(An({
1955
+ updateDelay: r,
1956
+ editor: o,
1957
+ element: n.value,
1958
+ pluginKey: a,
1959
+ shouldShow: p,
1960
+ tippyOptions: u
1961
+ }));
1962
+ }), pt(() => {
1963
+ const { pluginKey: r, editor: o } = t;
1964
+ o.unregisterPlugin(r);
1965
+ }), () => {
1966
+ var r;
1967
+ return Le("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
1968
+ };
1969
+ }
1970
+ });
1971
+ function Qt(t) {
1972
+ return Kn((e, n) => ({
1973
+ get() {
1974
+ return e(), t;
1975
+ },
1976
+ set(r) {
1977
+ t = r, requestAnimationFrame(() => {
1978
+ requestAnimationFrame(() => {
1979
+ n();
1980
+ });
1981
+ });
1982
+ }
1983
+ }));
1984
+ }
1985
+ class Si extends $n {
1986
+ constructor(e = {}) {
1987
+ return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Qt(this.view.state), this.reactiveExtensionStorage = Qt(this.extensionStorage), this.on("beforeTransaction", ({ nextState: n }) => {
1988
+ this.reactiveState.value = n, this.reactiveExtensionStorage.value = this.extensionStorage;
1989
+ }), on(this);
1990
+ }
1991
+ get state() {
1992
+ return this.reactiveState ? this.reactiveState.value : this.view.state;
1993
+ }
1994
+ get storage() {
1995
+ return this.reactiveExtensionStorage ? this.reactiveExtensionStorage.value : super.storage;
1996
+ }
1997
+ /**
1998
+ * Register a ProseMirror plugin.
1999
+ */
2000
+ registerPlugin(e, n) {
2001
+ const r = super.registerPlugin(e, n);
2002
+ return this.reactiveState && (this.reactiveState.value = r), r;
2003
+ }
2004
+ /**
2005
+ * Unregister a ProseMirror plugin.
2006
+ */
2007
+ unregisterPlugin(e) {
2008
+ const n = super.unregisterPlugin(e);
2009
+ return this.reactiveState && n && (this.reactiveState.value = n), n;
2010
+ }
2011
+ }
2012
+ const Mi = Ue({
2013
+ name: "EditorContent",
2014
+ props: {
2015
+ editor: {
2016
+ default: null,
2017
+ type: Object
2018
+ }
2019
+ },
2020
+ setup(t) {
2021
+ const e = Et(), n = Wn();
2022
+ return _n(() => {
2023
+ const r = t.editor;
2024
+ r && r.options.element && e.value && Fn(() => {
2025
+ if (!e.value || !r.options.element.firstChild)
2026
+ return;
2027
+ const o = Un(e.value);
2028
+ e.value.append(...r.options.element.childNodes), r.contentComponent = n.ctx._, n && (r.appContext = {
2029
+ ...n.appContext,
2030
+ // Vue internally uses prototype chain to forward/shadow injects across the entire component chain
2031
+ // so don't use object spread operator or 'Object.assign' and just set `provides` as is on editor's appContext
2032
+ // @ts-expect-error forward instance's 'provides' into appContext
2033
+ provides: n.provides
2034
+ }), r.setOptions({
2035
+ element: o
2036
+ }), r.createNodeViews();
2037
+ });
2038
+ }), pt(() => {
2039
+ const r = t.editor;
2040
+ r && (r.contentComponent = null, r.appContext = null);
2041
+ }), { rootEl: e };
2042
+ },
2043
+ render() {
2044
+ return Le("div", {
2045
+ ref: (t) => {
2046
+ this.rootEl = t;
2047
+ }
2048
+ });
2049
+ }
2050
+ });
2051
+ Ue({
2052
+ name: "FloatingMenu",
2053
+ props: {
2054
+ pluginKey: {
2055
+ // TODO: TypeScript breaks :(
2056
+ // type: [String, Object as PropType<Exclude<FloatingMenuPluginProps['pluginKey'], string>>],
2057
+ type: null,
2058
+ default: "floatingMenu"
2059
+ },
2060
+ editor: {
2061
+ type: Object,
2062
+ required: !0
2063
+ },
2064
+ tippyOptions: {
2065
+ type: Object,
2066
+ default: () => ({})
2067
+ },
2068
+ shouldShow: {
2069
+ type: Function,
2070
+ default: null
2071
+ }
2072
+ },
2073
+ setup(t, { slots: e }) {
2074
+ const n = Et(null);
2075
+ return xt(() => {
2076
+ const { pluginKey: r, editor: o, tippyOptions: a, shouldShow: p } = t;
2077
+ o.registerPlugin(Sn({
2078
+ pluginKey: r,
2079
+ editor: o,
2080
+ element: n.value,
2081
+ tippyOptions: a,
2082
+ shouldShow: p
2083
+ }));
2084
+ }), pt(() => {
2085
+ const { pluginKey: r, editor: o } = t;
2086
+ o.unregisterPlugin(r);
2087
+ }), () => {
2088
+ var r;
2089
+ return Le("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
2090
+ };
2091
+ }
2092
+ });
2093
+ Ue({
2094
+ name: "NodeViewContent",
2095
+ props: {
2096
+ as: {
2097
+ type: String,
2098
+ default: "div"
2099
+ }
2100
+ },
2101
+ render() {
2102
+ return Le(this.as, {
2103
+ style: {
2104
+ whiteSpace: "pre-wrap"
2105
+ },
2106
+ "data-node-view-content": ""
2107
+ });
2108
+ }
2109
+ });
2110
+ Ue({
2111
+ name: "NodeViewWrapper",
2112
+ props: {
2113
+ as: {
2114
+ type: String,
2115
+ default: "div"
2116
+ }
2117
+ },
2118
+ inject: ["onDragStart", "decorationClasses"],
2119
+ render() {
2120
+ var t, e;
2121
+ return Le(this.as, {
2122
+ // @ts-ignore
2123
+ class: this.decorationClasses,
2124
+ style: {
2125
+ whiteSpace: "normal"
2126
+ },
2127
+ "data-node-view-wrapper": "",
2128
+ // @ts-ignore (https://github.com/vuejs/vue-next/issues/3031)
2129
+ onDragstart: this.onDragStart
2130
+ }, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t));
2131
+ }
2132
+ });
2133
+ const Ri = (t = {}) => {
2134
+ const e = In();
2135
+ return xt(() => {
2136
+ e.value = new Si(t);
2137
+ }), pt(() => {
2138
+ var n, r, o;
2139
+ const a = (n = e.value) === null || n === void 0 ? void 0 : n.options.element, p = a == null ? void 0 : a.cloneNode(!0);
2140
+ (r = a == null ? void 0 : a.parentNode) === null || r === void 0 || r.replaceChild(p, a), (o = e.value) === null || o === void 0 || o.destroy();
2141
+ }), e;
2142
+ };
2143
+ class Hi {
2144
+ constructor(e, { props: n = {}, editor: r }) {
2145
+ this.editor = r, this.component = on(e), this.el = document.createElement("div"), this.props = qn(n), this.renderedComponent = this.renderComponent();
2146
+ }
2147
+ get element() {
2148
+ return this.renderedComponent.el;
2149
+ }
2150
+ get ref() {
2151
+ var e, n, r, o;
2152
+ return !((n = (e = this.renderedComponent.vNode) === null || e === void 0 ? void 0 : e.component) === null || n === void 0) && n.exposed ? this.renderedComponent.vNode.component.exposed : (o = (r = this.renderedComponent.vNode) === null || r === void 0 ? void 0 : r.component) === null || o === void 0 ? void 0 : o.proxy;
2153
+ }
2154
+ renderComponent() {
2155
+ let e = Le(this.component, this.props);
2156
+ return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && Ht(e, this.el), { vNode: e, destroy: () => {
2157
+ this.el && Ht(null, this.el), this.el = null, e = null;
2158
+ }, el: this.el ? this.el.firstElementChild : null };
2159
+ }
2160
+ updateProps(e = {}) {
2161
+ Object.entries(e).forEach(([n, r]) => {
2162
+ this.props[n] = r;
2163
+ }), this.renderComponent();
2164
+ }
2165
+ destroy() {
2166
+ this.renderedComponent.destroy();
2167
+ }
2168
+ }
2169
+ export {
2170
+ Si as E,
2171
+ Hi as V,
2172
+ Mi as a,
2173
+ Ri as u
2174
+ };