tuikit-atomicx-vue3 0.1.0 → 3.3.0-beta.3

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 (910) hide show
  1. package/dist/{DialogPortal-8bLejP4P.js → DialogPortal-DWeT-J6v.js} +3 -3
  2. package/dist/{FilePicker.vue_vue_type_script_setup_true_lang-D0cP-aFi.js → FilePicker.vue_vue_type_script_setup_true_lang-CaSj3Gh_.js} +2 -1
  3. package/dist/{ImagePicker.vue_vue_type_script_setup_true_lang-DzBHwcSi.js → ImagePicker.vue_vue_type_script_setup_true_lang-CrzGMmrh.js} +2 -1
  4. package/dist/{MaterialRenameDialog.vue_vue_type_script_setup_true_lang-Cmhf2QX4.js → MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js} +1 -1
  5. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ca6-JH93.js → MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js} +16 -16
  6. package/dist/{PopoverTrigger-BhQt39dx.js → PopoverTrigger-BKOIHfdS.js} +3 -3
  7. package/dist/{PopperContent-C59duB_H.js → PopperContent-DtL7HVWz.js} +30 -22
  8. package/dist/{Teleport-BnT1MTUO.js → Teleport-CMvGsENT.js} +4 -5
  9. package/dist/{VideoPicker.vue_vue_type_script_setup_true_lang-DAv8_NWh.js → VideoPicker.vue_vue_type_script_setup_true_lang-DTv6TJKr.js} +2 -1
  10. package/dist/baseComp/AudioIcon.js +1 -1
  11. package/dist/baseComp/Modal/Modal.js +1 -1
  12. package/dist/baseComp/TuiSwitch.js +2 -2
  13. package/dist/baseComp/View/View.js +2 -40
  14. package/dist/baseComp/View/View.vue.d.ts +4 -10
  15. package/dist/baseComp/View/index.js +37 -2
  16. package/dist/baseComp/index.d.ts +1 -0
  17. package/dist/baseComp/index.js +4 -0
  18. package/dist/chat/index.d.ts +15494 -0
  19. package/dist/chat/index.js +74 -0
  20. package/dist/chat/server.d.ts +19 -0
  21. package/dist/chat/server.js +108 -0
  22. package/dist/components/AudioSetting/AudioMediaControl.js +1 -1
  23. package/dist/components/AudioSetting/index.js +1 -33
  24. package/dist/components/AudioSettingPanel/index.js +19 -5
  25. package/dist/components/Avatar/Avatar.js +37 -12
  26. package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
  27. package/dist/components/Avatar/constants/avatar.d.ts +7 -0
  28. package/dist/components/Avatar/constants/avatar.js +14 -0
  29. package/dist/components/Avatar/index.d.ts +2 -1
  30. package/dist/components/Avatar/index.js +8 -1
  31. package/dist/components/BarrageInput/BarrageInput.js +13 -7
  32. package/dist/components/BarrageInput/BarrageInput.vue.d.ts +5 -0
  33. package/dist/components/BarrageInput/BarrageInputH5.js +42 -14
  34. package/dist/components/BarrageInput/BarrageInputH5.vue.d.ts +13 -2
  35. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +9 -8
  36. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.d.ts +18 -0
  37. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +93 -0
  38. package/dist/components/BarrageInput/TextEditor/EditorCore.d.ts +4 -3
  39. package/dist/components/BarrageInput/TextEditor/EditorCore.js +8 -2
  40. package/dist/components/BarrageInput/TextEditor/TextEditor.js +1 -1
  41. package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -0
  42. package/dist/components/BarrageInput/TextEditor/index.js +133 -2
  43. package/dist/components/BarrageInput/constants.d.ts +3 -0
  44. package/dist/components/BarrageInput/constants.js +6 -0
  45. package/dist/components/BarrageInput/i18n/en-US/index.d.ts +2 -0
  46. package/dist/components/BarrageInput/i18n/en-US/index.js +3 -1
  47. package/dist/components/BarrageInput/i18n/zh-CN/index.d.ts +2 -0
  48. package/dist/components/BarrageInput/i18n/zh-CN/index.js +3 -1
  49. package/dist/components/BarrageInput/index.d.ts +15 -72
  50. package/dist/components/BarrageList/BarrageList.js +7 -8
  51. package/dist/components/BarrageList/BarrageListH5.js +7 -8
  52. package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +1 -1
  53. package/dist/components/BarrageList/Message/CustomMessage/index.js +10 -2
  54. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +1 -1
  55. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +28 -2
  56. package/dist/components/BarrageList/Message/Message.js +1 -1
  57. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +3 -3
  58. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +12 -12
  59. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +5 -4
  60. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +2 -2
  61. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +7 -4
  62. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +2 -2
  63. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +2 -2
  64. package/dist/components/BarrageList/Message/index.js +21 -2
  65. package/dist/components/BarrageList/MessageForward/MessageForward.js +4 -4
  66. package/dist/components/CameraButton/index.js +48 -2
  67. package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +123 -0
  68. package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.vue.d.ts +2 -0
  69. package/dist/components/ChatSetting/C2CChatSetting/index.d.ts +4 -0
  70. package/dist/components/ChatSetting/C2CChatSetting/index.js +5 -0
  71. package/dist/components/ChatSetting/ChatSetting.js +30 -0
  72. package/dist/components/ChatSetting/ChatSetting.vue.d.ts +2 -0
  73. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +182 -0
  74. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue.d.ts +2 -0
  75. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.d.ts +3 -0
  76. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +4 -0
  77. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +262 -0
  78. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue.d.ts +2 -0
  79. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +193 -0
  80. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue.d.ts +2 -0
  81. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.d.ts +3 -0
  82. package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +4 -0
  83. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +285 -0
  84. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue.d.ts +6 -0
  85. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.d.ts +3 -0
  86. package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +4 -0
  87. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +38 -0
  88. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.vue.d.ts +6 -0
  89. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.d.ts +3 -0
  90. package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +4 -0
  91. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +250 -0
  92. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue.d.ts +66 -0
  93. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.d.ts +3 -0
  94. package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +4 -0
  95. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +46 -0
  96. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.vue.d.ts +2 -0
  97. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.d.ts +3 -0
  98. package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +4 -0
  99. package/dist/components/ChatSetting/GroupChatSetting/index.d.ts +3 -0
  100. package/dist/components/ChatSetting/GroupChatSetting/index.js +4 -0
  101. package/dist/components/ChatSetting/SettingItem/SettingItem.js +295 -0
  102. package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +26 -0
  103. package/dist/components/ChatSetting/SettingItem/index.d.ts +3 -0
  104. package/dist/components/ChatSetting/SettingItem/index.js +4 -0
  105. package/dist/components/ChatSetting/i18n/en-US.d.ts +95 -0
  106. package/dist/components/ChatSetting/i18n/en-US.js +107 -0
  107. package/dist/components/ChatSetting/i18n/index.d.ts +191 -0
  108. package/dist/components/ChatSetting/i18n/index.js +9 -0
  109. package/dist/components/ChatSetting/i18n/zh-CN.d.ts +95 -0
  110. package/dist/components/ChatSetting/i18n/zh-CN.js +107 -0
  111. package/dist/components/ChatSetting/index.d.ts +5 -0
  112. package/dist/components/ChatSetting/index.js +12 -0
  113. package/dist/components/CoGuestPanel/CoGuestPanel.js +38 -113
  114. package/dist/components/CoGuestPanel/constants.d.ts +4 -0
  115. package/dist/components/CoGuestPanel/constants.js +7 -0
  116. package/dist/components/CoGuestPanel/i18n/en-US/index.d.ts +5 -0
  117. package/dist/components/CoGuestPanel/i18n/en-US/index.js +12 -7
  118. package/dist/components/CoGuestPanel/i18n/zh-CN/index.d.ts +5 -0
  119. package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +12 -7
  120. package/dist/components/CoGuestPanel/index.d.ts +1 -2
  121. package/dist/components/CoGuestPanel/index.js +3 -2
  122. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +78 -0
  123. package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue.d.ts +33 -0
  124. package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.d.ts +1 -0
  125. package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +4 -0
  126. package/dist/components/ContactList/ContactInfo/ContactInfo.js +257 -0
  127. package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +56 -0
  128. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +96 -0
  129. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue.d.ts +37 -0
  130. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.d.ts +1 -0
  131. package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +4 -0
  132. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +228 -0
  133. package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue.d.ts +39 -0
  134. package/dist/components/ContactList/ContactInfo/FriendInfo/index.d.ts +1 -0
  135. package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +4 -0
  136. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +101 -0
  137. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue.d.ts +37 -0
  138. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.d.ts +1 -0
  139. package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +4 -0
  140. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +154 -0
  141. package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue.d.ts +37 -0
  142. package/dist/components/ContactList/ContactInfo/GroupInfo/index.d.ts +1 -0
  143. package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +4 -0
  144. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +141 -0
  145. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue.d.ts +32 -0
  146. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.d.ts +1 -0
  147. package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +4 -0
  148. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +122 -0
  149. package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue.d.ts +33 -0
  150. package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.d.ts +1 -0
  151. package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +4 -0
  152. package/dist/components/ContactList/ContactInfo/index.d.ts +8 -0
  153. package/dist/components/ContactList/ContactInfo/index.js +18 -0
  154. package/dist/components/ContactList/ContactList.js +281 -0
  155. package/dist/components/ContactList/ContactList.vue.d.ts +41 -0
  156. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +52 -0
  157. package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue.d.ts +25 -0
  158. package/dist/components/ContactList/ContactListItem/BlacklistItem/index.d.ts +1 -0
  159. package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +4 -0
  160. package/dist/components/ContactList/ContactListItem/ContactListItem.js +4 -0
  161. package/dist/components/ContactList/ContactListItem/ContactListItem.vue.d.ts +30 -0
  162. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +76 -0
  163. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue.d.ts +27 -0
  164. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.d.ts +1 -0
  165. package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +4 -0
  166. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +53 -0
  167. package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.vue.d.ts +25 -0
  168. package/dist/components/ContactList/ContactListItem/FriendItem/index.d.ts +1 -0
  169. package/dist/components/ContactList/ContactListItem/FriendItem/index.js +4 -0
  170. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +79 -0
  171. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue.d.ts +27 -0
  172. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.d.ts +1 -0
  173. package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +4 -0
  174. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +52 -0
  175. package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.vue.d.ts +25 -0
  176. package/dist/components/ContactList/ContactListItem/GroupItem/index.d.ts +1 -0
  177. package/dist/components/ContactList/ContactListItem/GroupItem/index.js +4 -0
  178. package/dist/components/ContactList/ContactListItem/index.d.ts +6 -0
  179. package/dist/components/ContactList/ContactListItem/index.js +95 -0
  180. package/dist/components/ContactList/ContactSearch/ContactSearch.js +85 -0
  181. package/dist/components/ContactList/ContactSearch/ContactSearch.vue.d.ts +8 -0
  182. package/dist/components/ContactList/ContactSearch/index.d.ts +1 -0
  183. package/dist/components/ContactList/ContactSearch/index.js +4 -0
  184. package/dist/components/ContactList/constants/const.d.ts +3 -0
  185. package/dist/components/ContactList/constants/const.js +6 -0
  186. package/dist/components/ContactList/hooks/index.d.ts +1 -0
  187. package/dist/components/ContactList/hooks/index.js +4 -0
  188. package/dist/components/ContactList/hooks/useContactList.d.ts +9 -0
  189. package/dist/components/ContactList/hooks/useContactList.js +18 -0
  190. package/dist/components/ContactList/i18n/en-US.d.ts +77 -0
  191. package/dist/components/ContactList/i18n/en-US.js +80 -0
  192. package/dist/components/ContactList/i18n/index.d.ts +4 -0
  193. package/dist/components/ContactList/i18n/index.js +6 -0
  194. package/dist/components/ContactList/i18n/zh-CN.d.ts +77 -0
  195. package/dist/components/ContactList/i18n/zh-CN.js +80 -0
  196. package/dist/components/ContactList/index.d.ts +310 -0
  197. package/dist/components/ContactList/index.js +16 -0
  198. package/dist/components/ConversationList/ConversationActions/ConversationActions.js +192 -0
  199. package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +50 -0
  200. package/dist/components/ConversationList/ConversationActions/index.d.ts +1 -0
  201. package/dist/components/ConversationList/ConversationActions/index.js +4 -0
  202. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +217 -0
  203. package/dist/components/ConversationList/ConversationCreate/ConversationCreate.vue.d.ts +35 -0
  204. package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +103 -0
  205. package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue.d.ts +31 -0
  206. package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +146 -0
  207. package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue.d.ts +23 -0
  208. package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +69 -0
  209. package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue.d.ts +19 -0
  210. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +91 -0
  211. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue.d.ts +13 -0
  212. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.d.ts +5 -0
  213. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +6 -0
  214. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.d.ts +8 -0
  215. package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +11 -0
  216. package/dist/components/ConversationList/ConversationCreate/index.d.ts +6 -0
  217. package/dist/components/ConversationList/ConversationCreate/index.js +14 -0
  218. package/dist/components/ConversationList/ConversationList.js +193 -25
  219. package/dist/components/ConversationList/ConversationList.vue.d.ts +8593 -1
  220. package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +51 -0
  221. package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +381 -0
  222. package/dist/components/ConversationList/ConversationListContent/index.d.ts +1 -0
  223. package/dist/components/ConversationList/ConversationListContent/index.js +4 -0
  224. package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +51 -0
  225. package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.vue.d.ts +47 -0
  226. package/dist/components/ConversationList/ConversationListHeader/index.d.ts +1 -0
  227. package/dist/components/ConversationList/ConversationListHeader/index.js +4 -0
  228. package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +103 -0
  229. package/dist/components/{LiveStreamView/DefaultStreamViewUI.vue.d.ts → ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue.d.ts} +18 -30
  230. package/dist/components/ConversationList/ConversationPlaceHolder/index.d.ts +4 -0
  231. package/dist/components/ConversationList/ConversationPlaceHolder/index.js +4 -0
  232. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +4 -0
  233. package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +2548 -0
  234. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +69 -0
  235. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue.d.ts +17 -0
  236. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +58 -0
  237. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue.d.ts +17 -0
  238. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +63 -0
  239. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue.d.ts +19 -0
  240. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +150 -0
  241. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +599 -0
  242. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +68 -0
  243. package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue.d.ts +17 -0
  244. package/dist/components/ConversationList/ConversationPreview/index.d.ts +7 -0
  245. package/dist/components/ConversationList/ConversationPreview/index.js +86 -0
  246. package/dist/components/ConversationList/ConversationPreview/utils.d.ts +7 -0
  247. package/dist/components/ConversationList/ConversationPreview/utils.js +49 -0
  248. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +197 -0
  249. package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +2006 -0
  250. package/dist/components/ConversationList/ConversationSearch/index.d.ts +1 -0
  251. package/dist/components/ConversationList/ConversationSearch/index.js +4 -0
  252. package/dist/components/ConversationList/hooks/useConversation.d.ts +6 -0
  253. package/dist/components/ConversationList/hooks/useConversation.js +20 -0
  254. package/dist/components/ConversationList/hooks/useConversationCreate.d.ts +5 -0
  255. package/dist/components/ConversationList/hooks/useConversationCreate.js +24 -0
  256. package/dist/components/ConversationList/i18n/en-US.d.ts +54 -0
  257. package/dist/components/ConversationList/i18n/en-US.js +65 -0
  258. package/dist/components/ConversationList/i18n/index.d.ts +4 -0
  259. package/dist/components/ConversationList/i18n/index.js +6 -0
  260. package/dist/components/ConversationList/i18n/zh-CN.d.ts +54 -0
  261. package/dist/components/ConversationList/i18n/zh-CN.js +65 -0
  262. package/dist/components/ConversationList/index.d.ts +16714 -3
  263. package/dist/components/ConversationList/index.js +32 -2
  264. package/dist/components/LiveAudienceList/LiveAudienceList.js +3 -3
  265. package/dist/components/LiveAudienceList/UserActionMenu.js +4 -37
  266. package/dist/components/LiveCoreView/DefaultStreamViewUI.js +177 -0
  267. package/dist/components/LiveCoreView/DefaultStreamViewUI.vue.d.ts +26 -0
  268. package/dist/components/LiveCoreView/index.d.ts +4 -0
  269. package/dist/components/{LiveStreamView → LiveCoreView}/index.js +71 -77
  270. package/dist/components/{LiveStreamView → LiveCoreView}/index.vue.d.ts +3 -1
  271. package/dist/components/LiveList/LiveList.js +88 -49
  272. package/dist/components/LiveList/LiveListH5.js +35 -23
  273. package/dist/components/LiveMonitorView/LiveMonitorView.js +63 -53
  274. package/dist/components/LiveScenePanel/CameraSettingDialog.js +1 -2
  275. package/dist/components/LiveScenePanel/MaterialRenameDialog.js +1 -1
  276. package/dist/components/LiveScenePanel/i18n/en-US/index.d.ts +2 -0
  277. package/dist/components/LiveScenePanel/i18n/en-US/index.js +3 -1
  278. package/dist/components/LiveScenePanel/i18n/zh-CN/index.d.ts +2 -0
  279. package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +3 -1
  280. package/dist/components/LiveScenePanel/icons/AddIcon.js +2 -2
  281. package/dist/components/LiveScenePanel/icons/CameraIcon.js +2 -2
  282. package/dist/components/LiveScenePanel/icons/CameraMirror.js +2 -2
  283. package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +2 -2
  284. package/dist/components/LiveScenePanel/icons/ImageIcon.js +2 -2
  285. package/dist/components/LiveScenePanel/icons/MoreIcon.js +2 -2
  286. package/dist/components/LiveScenePanel/icons/ScreenIcon.js +2 -2
  287. package/dist/components/LiveScenePanel/index.js +14 -6
  288. package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +1 -1
  289. package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +1 -1
  290. package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +1 -1
  291. package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +1 -1
  292. package/dist/components/MessageInput/AttachmentPicker/index.js +90 -8
  293. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +5 -4
  294. package/dist/components/MessageInput/MessageInput.js +1 -1
  295. package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +1 -1
  296. package/dist/components/MessageInput/QuotedMessagePreview/index.js +89 -2
  297. package/dist/components/MessageInput/SendButton/SendButton.js +1 -1
  298. package/dist/components/MessageInput/SendButton/SendButton.vue.d.ts +3 -3
  299. package/dist/components/MessageInput/SendButton/index.js +33 -2
  300. package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -2
  301. package/dist/components/MessageInput/TextEditor/EditorCore.js +3 -2
  302. package/dist/components/MessageInput/TextEditor/TextEditor.js +1 -1
  303. package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +3 -3
  304. package/dist/components/MessageInput/TextEditor/index.js +97 -2
  305. package/dist/components/MessageInput/i18n/en-US.d.ts +12 -0
  306. package/dist/components/MessageInput/i18n/en-US.js +14 -0
  307. package/dist/components/MessageInput/i18n/index.d.ts +24 -0
  308. package/dist/components/MessageInput/i18n/index.js +9 -0
  309. package/dist/components/MessageInput/i18n/zh-CN.d.ts +12 -0
  310. package/dist/components/MessageInput/i18n/zh-CN.js +14 -0
  311. package/dist/components/MessageInput/index.d.ts +409 -6
  312. package/dist/components/MessageInput/index.js +25 -14
  313. package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +4 -4
  314. package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +3 -3
  315. package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +1 -1
  316. package/dist/components/MessageList/Message/CustomMessage/index.js +10 -2
  317. package/dist/components/MessageList/Message/FileMessage/FileMessage.js +9 -9
  318. package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +1 -1
  319. package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +4 -4
  320. package/dist/components/MessageList/Message/GroupTipMessage/index.js +29 -2
  321. package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +6 -0
  322. package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +85 -0
  323. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +2 -2
  324. package/dist/components/MessageList/Message/Message.js +1 -1
  325. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +5 -5
  326. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +5 -5
  327. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
  328. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +21 -20
  329. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +41 -36
  330. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +4 -10
  331. package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +2 -2
  332. package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +9 -9
  333. package/dist/components/MessageList/Message/TextMessage/TextMessage.js +10 -10
  334. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +2 -2
  335. package/dist/components/MessageList/Message/index.js +30 -2
  336. package/dist/components/MessageList/MessageForward/ForwardListItem.js +5 -5
  337. package/dist/components/MessageList/MessageForward/MessageForward.js +14 -14
  338. package/dist/components/MessageList/MessageList.js +69 -62
  339. package/dist/components/MessageList/MessageList.vue.d.ts +3 -3
  340. package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +37 -37
  341. package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +32 -0
  342. package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.vue.d.ts +6 -0
  343. package/dist/components/MessageList/ScrollToBottom/index.d.ts +3 -0
  344. package/dist/components/MessageList/ScrollToBottom/index.js +4 -0
  345. package/dist/components/MessageList/i18n/en-US.d.ts +42 -0
  346. package/dist/components/MessageList/i18n/en-US.js +46 -0
  347. package/dist/components/MessageList/i18n/index.d.ts +85 -0
  348. package/dist/components/MessageList/i18n/index.js +9 -0
  349. package/dist/components/MessageList/i18n/zh-CN.d.ts +42 -0
  350. package/dist/components/MessageList/i18n/zh-CN.js +46 -0
  351. package/dist/components/MessageList/index.js +6 -2
  352. package/dist/components/MicButton/index.js +56 -2
  353. package/dist/components/Search/Search.js +191 -0
  354. package/dist/components/Search/Search.vue.d.ts +809 -0
  355. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +570 -0
  356. package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue.d.ts +16 -0
  357. package/dist/components/Search/SearchAdvanced/DateRangePicker/index.d.ts +2 -0
  358. package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +4 -0
  359. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +267 -0
  360. package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue.d.ts +17 -0
  361. package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.d.ts +2 -0
  362. package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +4 -0
  363. package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +76 -0
  364. package/dist/components/Search/SearchAdvanced/SearchAdvanced.vue.d.ts +30 -0
  365. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +64 -0
  366. package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.vue.d.ts +20 -0
  367. package/dist/components/Search/SearchAdvanced/SearchTab/index.d.ts +2 -0
  368. package/dist/components/Search/SearchAdvanced/SearchTab/index.js +4 -0
  369. package/dist/components/Search/SearchAdvanced/Slider/Slider.js +97 -0
  370. package/dist/components/Search/SearchAdvanced/Slider/Slider.vue.d.ts +34 -0
  371. package/dist/components/Search/SearchAdvanced/Slider/index.d.ts +2 -0
  372. package/dist/components/Search/SearchAdvanced/Slider/index.js +4 -0
  373. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +449 -0
  374. package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue.d.ts +17 -0
  375. package/dist/components/Search/SearchAdvanced/UserAdvanced/index.d.ts +2 -0
  376. package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +4 -0
  377. package/dist/components/Search/SearchAdvanced/index.d.ts +8 -0
  378. package/dist/components/Search/SearchAdvanced/index.js +14 -0
  379. package/dist/components/Search/SearchBar/SearchBar.js +155 -0
  380. package/dist/components/Search/SearchBar/SearchBar.vue.d.ts +39 -0
  381. package/dist/components/Search/SearchBar/index.d.ts +4 -0
  382. package/dist/components/Search/SearchBar/index.js +4 -0
  383. package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +47 -0
  384. package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.vue.d.ts +28 -0
  385. package/dist/components/Search/SearchResults/EmptyResult/index.d.ts +2 -0
  386. package/dist/components/Search/SearchResults/EmptyResult/index.js +4 -0
  387. package/dist/components/Search/SearchResults/Loading/Loading.js +29 -0
  388. package/dist/components/Search/SearchResults/Loading/Loading.vue.d.ts +14 -0
  389. package/dist/components/Search/SearchResults/Loading/index.d.ts +2 -0
  390. package/dist/components/Search/SearchResults/Loading/index.js +4 -0
  391. package/dist/components/Search/SearchResults/SearchResults.js +429 -0
  392. package/dist/components/Search/SearchResults/SearchResults.vue.d.ts +173 -0
  393. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +107 -0
  394. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue.d.ts +14 -0
  395. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.d.ts +2 -0
  396. package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +4 -0
  397. package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +76 -0
  398. package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.vue.d.ts +14 -0
  399. package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.d.ts +2 -0
  400. package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +4 -0
  401. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +311 -0
  402. package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.vue.d.ts +14 -0
  403. package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.d.ts +2 -0
  404. package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +4 -0
  405. package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +59 -0
  406. package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue.d.ts +34 -0
  407. package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +102 -0
  408. package/dist/components/Search/SearchResults/SearchResultsItem/User/User.vue.d.ts +14 -0
  409. package/dist/components/Search/SearchResults/SearchResultsItem/User/index.d.ts +2 -0
  410. package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +4 -0
  411. package/dist/components/Search/SearchResults/SearchResultsItem/index.d.ts +9 -0
  412. package/dist/components/Search/SearchResults/SearchResultsItem/index.js +13 -0
  413. package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.d.ts +9 -0
  414. package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +43 -0
  415. package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.d.ts +1 -0
  416. package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +4 -0
  417. package/dist/components/Search/SearchResults/index.d.ts +6 -0
  418. package/dist/components/Search/SearchResults/index.js +18 -0
  419. package/dist/components/Search/i18n/en-US/DateRangePicker.d.ts +23 -0
  420. package/dist/components/Search/i18n/en-US/DateRangePicker.js +26 -0
  421. package/dist/components/Search/i18n/en-US/Search.d.ts +42 -0
  422. package/dist/components/Search/i18n/en-US/Search.js +54 -0
  423. package/dist/components/Search/i18n/en-US/index.d.ts +66 -0
  424. package/dist/components/Search/i18n/en-US/index.js +10 -0
  425. package/dist/components/Search/i18n/index.d.ts +4 -0
  426. package/dist/components/Search/i18n/index.js +6 -0
  427. package/dist/components/Search/i18n/zh-CN/DateRangePicker.d.ts +23 -0
  428. package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +26 -0
  429. package/dist/components/Search/i18n/zh-CN/Search.d.ts +42 -0
  430. package/dist/components/Search/i18n/zh-CN/Search.js +54 -0
  431. package/dist/components/Search/i18n/zh-CN/index.d.ts +66 -0
  432. package/dist/components/Search/i18n/zh-CN/index.js +10 -0
  433. package/dist/components/Search/index.d.ts +1335 -0
  434. package/dist/components/Search/index.js +28 -0
  435. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +14 -10
  436. package/dist/components/StreamMixer/LocalMixer/index.js +82 -57
  437. package/dist/components/StreamMixer/icons/CameraMirror.js +2 -2
  438. package/dist/components/StreamMixer/icons/Delete.js +2 -2
  439. package/dist/components/StreamMixer/icons/Down.js +2 -2
  440. package/dist/components/StreamMixer/icons/Rotation.js +2 -2
  441. package/dist/components/StreamMixer/icons/Up.js +2 -2
  442. package/dist/components/StreamMixer/index.js +3 -3
  443. package/dist/components/StreamView/Layout/FloatLayout.js +4 -4
  444. package/dist/components/StreamView/Layout/GridLayout.js +1 -1
  445. package/dist/components/StreamView/Layout/MeetingLayout.js +2 -2
  446. package/dist/components/StreamView/common/StreamCover/index.js +2 -2
  447. package/dist/components/StreamView/common/StreamPlay/index.js +1 -1
  448. package/dist/components/StreamView/manager/mediaManager.js +2 -4
  449. package/dist/components/UserList/UserItem/UserAction/indexPC.js +1 -1
  450. package/dist/components/UserList/UserItem/UserInfo/index.js +2 -2
  451. package/dist/components/UserList/UserItem/indexPC.js +1 -1
  452. package/dist/components/UserPicker/UserPicker.js +2 -2
  453. package/dist/components/UserPicker/components/ListMode/ListMode.js +1 -1
  454. package/dist/components/UserPicker/components/ListMode/ListMode.vue.d.ts +1 -1
  455. package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +1 -1
  456. package/dist/components/UserPicker/components/TreeMode/TreeNode.js +2 -2
  457. package/dist/components/UserPicker/i18n/en-US.d.ts +7 -0
  458. package/dist/components/UserPicker/i18n/en-US.js +9 -0
  459. package/dist/components/UserPicker/i18n/index.d.ts +15 -0
  460. package/dist/components/UserPicker/i18n/index.js +9 -0
  461. package/dist/components/UserPicker/i18n/zh-CN.d.ts +7 -0
  462. package/dist/components/UserPicker/i18n/zh-CN.js +9 -0
  463. package/dist/components/UserPicker/index.d.ts +0 -1
  464. package/dist/components/UserPicker/index.js +6 -3
  465. package/dist/components/VideoSetting/VideoMediaControl.js +1 -1
  466. package/dist/components/VideoSetting/index.js +3 -37
  467. package/dist/components/VideoSettingPanel/VideoPreview.js +3 -4
  468. package/dist/components/VideoSettingPanel/VideoProfile.js +3 -4
  469. package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +5 -0
  470. package/dist/components/VideoSettingPanel/i18n/en-US/index.js +8 -3
  471. package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +5 -0
  472. package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +8 -3
  473. package/dist/components/VideoSettingPanel/index.d.ts +31 -2
  474. package/dist/components/VideoSettingPanel/index.js +5 -4
  475. package/dist/constants/avatar.d.ts +0 -0
  476. package/dist/constants/avatar.js +1 -0
  477. package/dist/handler/translator.js +2 -2
  478. package/dist/hooks/index.d.ts +3 -0
  479. package/dist/hooks/index.js +6 -0
  480. package/dist/hooks/useLongPress.d.ts +18 -0
  481. package/dist/hooks/useLongPress.js +82 -0
  482. package/dist/hooks/useMessageActions.js +8 -8
  483. package/dist/hooks/useMouseHover.d.ts +11 -0
  484. package/dist/hooks/useMouseHover.js +31 -0
  485. package/dist/hooks/useRoomActions/useRoomAudioAction.js +1 -1
  486. package/dist/hooks/useRoomActions/useRoomScreenAction.js +1 -1
  487. package/dist/hooks/useRoomActions/useRoomVideoAction.js +1 -1
  488. package/dist/hooks/useUserActions/index.js +2 -2
  489. package/dist/hooks/useUserActions/useAdminAction.js +2 -2
  490. package/dist/hooks/useUserActions/useAudioAction.js +2 -2
  491. package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +1 -1
  492. package/dist/hooks/useUserActions/useKickUserAction.js +1 -1
  493. package/dist/hooks/useUserActions/useMemberInviteAction.js +1 -1
  494. package/dist/hooks/useUserActions/useSeatAction.js +1 -1
  495. package/dist/hooks/useUserActions/useTransferOwnerAction.js +3 -8
  496. package/dist/hooks/useUserActions/useVideoAction.js +2 -2
  497. package/dist/{index-BREVQgBq.js → index-CX1Zs9En.js} +3 -5
  498. package/dist/index-DRcLhqhU.js +38 -0
  499. package/dist/index-ex2Jv3Tj.js +7655 -0
  500. package/dist/{index-oR-rgHxX.js → index-t9cbWbGG.js} +1027 -6459
  501. package/dist/index.d.ts +5 -34
  502. package/dist/index.js +57 -69
  503. package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +36 -0
  504. package/dist/rtc/index.d.ts +535 -0
  505. package/dist/rtc/index.js +89 -0
  506. package/dist/rtc/server.d.ts +19 -0
  507. package/dist/rtc/server.js +115 -0
  508. package/dist/states/BarrageListState/BarrageListState.js +3 -4
  509. package/dist/states/C2CSettingState/C2CSettingState.d.ts +19 -0
  510. package/dist/states/C2CSettingState/C2CSettingState.js +112 -0
  511. package/dist/states/C2CSettingState/index.d.ts +1 -0
  512. package/dist/states/C2CSettingState/index.js +4 -0
  513. package/dist/states/CoGuestState.js +2 -2
  514. package/dist/states/CoHostState.d.ts +1 -1
  515. package/dist/states/CoHostState.js +60 -63
  516. package/dist/states/ContactListState/ContactListState.d.ts +40 -0
  517. package/dist/states/ContactListState/ContactListState.js +321 -0
  518. package/dist/states/ContactListState/index.d.ts +1 -0
  519. package/dist/states/ContactListState/index.js +4 -0
  520. package/dist/states/ConversationListState/ConversationListState.d.ts +23 -8
  521. package/dist/states/ConversationListState/ConversationListState.js +105 -21
  522. package/dist/states/DeviceState.js +21 -14
  523. package/dist/states/GroupSettingState/GroupSettingState.d.ts +20 -0
  524. package/dist/states/GroupSettingState/GroupSettingState.js +456 -0
  525. package/dist/states/GroupSettingState/index.d.ts +2 -0
  526. package/dist/states/GroupSettingState/index.js +9 -0
  527. package/dist/states/GroupSettingState/permissions.d.ts +3 -0
  528. package/dist/states/GroupSettingState/permissions.js +305 -0
  529. package/dist/states/GroupSettingState/types.d.ts +126 -0
  530. package/dist/states/GroupSettingState/types.js +43 -0
  531. package/dist/states/LiveAudienceState.js +3 -4
  532. package/dist/states/LiveMonitorState/api/http.js +91 -109
  533. package/dist/states/LiveMonitorState/index.d.ts +1 -0
  534. package/dist/states/LiveMonitorState/index.js +4 -3
  535. package/dist/states/LiveMonitorState/player/adapters/trtc.js +8 -16
  536. package/dist/states/LiveMonitorState/player/manager/playerManager.js +2 -0
  537. package/dist/states/LiveSeatState/seatEventManager.js +7 -9
  538. package/dist/states/LiveSeatState/store.js +1 -1
  539. package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +9 -0
  540. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  541. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  542. package/dist/states/LiveSeatState/usePlayStream/index.d.ts +7 -4
  543. package/dist/states/LiveSeatState/usePlayStream/index.js +81 -93
  544. package/dist/states/LiveState/index.d.ts +5 -11
  545. package/dist/states/LiveState/index.js +40 -62
  546. package/dist/states/LoginState.d.ts +6 -15
  547. package/dist/states/LoginState.js +49 -39
  548. package/dist/states/MessageActionState/MessageActionState.js +1 -2
  549. package/dist/states/MessageInputState/MessageInputState.d.ts +11 -28
  550. package/dist/states/MessageInputState/MessageInputState.js +115 -165
  551. package/dist/states/MessageInputState/index.js +2 -1
  552. package/dist/states/MessageInputState/type.d.ts +21 -0
  553. package/dist/states/MessageInputState/type.js +12 -0
  554. package/dist/states/MessageInputState/utils.d.ts +30 -0
  555. package/dist/states/MessageInputState/utils.js +42 -0
  556. package/dist/states/RoomState.js +5 -3
  557. package/dist/states/SearchState.d.ts +267 -0
  558. package/dist/states/SearchState.js +434 -0
  559. package/dist/states/SeatStore.js +3 -3
  560. package/dist/states/UIOpenControlState/UIOpenControlState.d.ts +15 -0
  561. package/dist/states/UIOpenControlState/UIOpenControlState.js +28 -0
  562. package/dist/states/UIOpenControlState/index.d.ts +1 -0
  563. package/dist/states/UIOpenControlState/index.js +4 -0
  564. package/dist/states/UserState/index.js +1 -1
  565. package/dist/states/UserState/store.js +2 -2
  566. package/dist/states/UserState/userEventManager.js +2 -2
  567. package/dist/states/UserState/userManager.js +2 -2
  568. package/dist/states/VideoMixerState.js +15 -5
  569. package/dist/styles/index.css +12948 -4461
  570. package/dist/types/contact.d.ts +247 -0
  571. package/dist/types/contact.js +19 -0
  572. package/dist/types/conversation.d.ts +235 -0
  573. package/dist/types/conversation.js +38 -0
  574. package/dist/types/device.d.ts +3 -1
  575. package/dist/types/device.js +2 -0
  576. package/dist/types/engine.d.ts +7 -0
  577. package/dist/types/engine.js +10 -0
  578. package/dist/types/index.d.ts +5 -0
  579. package/dist/types/index.js +15 -1
  580. package/dist/types/live.d.ts +3 -3
  581. package/dist/types/login.d.ts +23 -0
  582. package/dist/types/login.js +1 -0
  583. package/dist/types/monitor.d.ts +1 -0
  584. package/dist/types/search.d.ts +90 -0
  585. package/dist/types/search.js +18 -0
  586. package/dist/{useId-DlA8vN1W.js → useId-CsgLY8y3.js} +1 -1
  587. package/dist/utils/env.js +1 -1
  588. package/dist/utils/environment.js +1 -1
  589. package/dist/utils/index.js +6 -2
  590. package/dist/utils/json.d.ts +23 -2
  591. package/dist/utils/json.js +48 -1
  592. package/dist/utils/lodash.d.ts +8 -6
  593. package/dist/utils/lodash.js +26 -2
  594. package/dist/utils/riseInput.js +1 -1
  595. package/dist/utils/time.d.ts +2 -2
  596. package/dist/utils/time.js +253 -1471
  597. package/dist/{utils-CnPWv_hZ.js → utils-KP1QpeUS.js} +1 -5
  598. package/package.json +45 -5
  599. package/src/baseComp/AudioIcon.vue +1 -1
  600. package/src/baseComp/View/View.vue +12 -17
  601. package/src/baseComp/index.ts +1 -0
  602. package/src/chat/index.ts +109 -0
  603. package/src/chat/server.ts +113 -0
  604. package/src/components/AudioSettingPanel/index.vue +53 -16
  605. package/src/components/Avatar/Avatar.vue +15 -15
  606. package/src/components/Avatar/constants/avatar.ts +15 -0
  607. package/src/components/Avatar/index.ts +17 -1
  608. package/src/components/BarrageInput/BarrageInput.vue +15 -4
  609. package/src/components/BarrageInput/BarrageInputH5.vue +48 -9
  610. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.module.scss +2 -2
  611. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  612. package/src/components/BarrageInput/TextEditor/CharacterCountExtension.ts +129 -0
  613. package/src/components/BarrageInput/TextEditor/EditorCore.ts +9 -3
  614. package/src/components/BarrageInput/TextEditor/TextEditor.vue +37 -18
  615. package/src/components/BarrageInput/constants.ts +3 -0
  616. package/src/components/BarrageInput/i18n/en-US/index.ts +2 -0
  617. package/src/components/BarrageInput/i18n/zh-CN/index.ts +2 -0
  618. package/src/components/BarrageList/BarrageList.vue +2 -2
  619. package/src/components/BarrageList/BarrageListH5.vue +2 -2
  620. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +0 -1
  621. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +5 -2
  622. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +7 -3
  623. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +3 -3
  624. package/src/components/ChatSetting/C2CChatSetting/C2CChatSetting.vue +223 -0
  625. package/src/components/ChatSetting/C2CChatSetting/index.ts +3 -0
  626. package/src/components/ChatSetting/ChatSetting.vue +39 -0
  627. package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +204 -0
  628. package/src/components/ChatSetting/GroupChatSetting/GroupActions/index.ts +5 -0
  629. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +295 -0
  630. package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +227 -0
  631. package/src/components/ChatSetting/GroupChatSetting/GroupInfo/index.ts +5 -0
  632. package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +364 -0
  633. package/src/components/ChatSetting/GroupChatSetting/GroupManagement/index.ts +5 -0
  634. package/src/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.vue +69 -0
  635. package/src/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.ts +5 -0
  636. package/src/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.vue +515 -0
  637. package/src/components/ChatSetting/GroupChatSetting/GroupMembers/index.ts +5 -0
  638. package/src/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.vue +50 -0
  639. package/src/components/ChatSetting/GroupChatSetting/PersonalSettings/index.ts +5 -0
  640. package/src/components/ChatSetting/GroupChatSetting/index.ts +5 -0
  641. package/src/components/ChatSetting/SettingItem/SettingItem.vue +528 -0
  642. package/src/components/ChatSetting/SettingItem/index.ts +3 -0
  643. package/src/components/ChatSetting/i18n/en-US.ts +115 -0
  644. package/src/components/ChatSetting/i18n/index.ts +11 -0
  645. package/src/components/ChatSetting/i18n/zh-CN.ts +115 -0
  646. package/src/components/ChatSetting/index.ts +10 -0
  647. package/src/components/CoGuestPanel/CoGuestPanel.vue +52 -13
  648. package/src/components/CoGuestPanel/constants.ts +4 -0
  649. package/src/components/CoGuestPanel/i18n/en-US/index.ts +12 -7
  650. package/src/components/CoGuestPanel/i18n/zh-CN/index.ts +12 -7
  651. package/src/components/CoGuestPanel/index.ts +2 -2
  652. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +50 -0
  653. package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +71 -0
  654. package/src/components/ContactList/ContactInfo/BlacklistInfo/index.ts +1 -0
  655. package/src/components/ContactList/ContactInfo/ContactInfo.scss +33 -0
  656. package/src/components/ContactList/ContactInfo/ContactInfo.vue +256 -0
  657. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +82 -0
  658. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +88 -0
  659. package/src/components/ContactList/ContactInfo/FriendApplicationInfo/index.ts +1 -0
  660. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +92 -0
  661. package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +219 -0
  662. package/src/components/ContactList/ContactInfo/FriendInfo/index.ts +1 -0
  663. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +82 -0
  664. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +99 -0
  665. package/src/components/ContactList/ContactInfo/GroupApplicationInfo/index.ts +1 -0
  666. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +52 -0
  667. package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +146 -0
  668. package/src/components/ContactList/ContactInfo/GroupInfo/index.ts +1 -0
  669. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +111 -0
  670. package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +147 -0
  671. package/src/components/ContactList/ContactInfo/SearchGroupInfo/index.ts +1 -0
  672. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +111 -0
  673. package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +128 -0
  674. package/src/components/ContactList/ContactInfo/SearchUserInfo/index.ts +1 -0
  675. package/src/components/ContactList/ContactInfo/index.ts +8 -0
  676. package/src/components/ContactList/ContactList.scss +124 -0
  677. package/src/components/ContactList/ContactList.vue +299 -0
  678. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +39 -0
  679. package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +47 -0
  680. package/src/components/ContactList/ContactListItem/BlacklistItem/index.ts +1 -0
  681. package/src/components/ContactList/ContactListItem/ContactListItem.vue +98 -0
  682. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +58 -0
  683. package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +70 -0
  684. package/src/components/ContactList/ContactListItem/FriendApplicationItem/index.ts +1 -0
  685. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +39 -0
  686. package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +47 -0
  687. package/src/components/ContactList/ContactListItem/FriendItem/index.ts +1 -0
  688. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +57 -0
  689. package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +78 -0
  690. package/src/components/ContactList/ContactListItem/GroupApplicationItem/index.ts +1 -0
  691. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +39 -0
  692. package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +47 -0
  693. package/src/components/ContactList/ContactListItem/GroupItem/index.ts +1 -0
  694. package/src/components/ContactList/ContactListItem/index.ts +6 -0
  695. package/src/components/ContactList/ContactSearch/ContactSearch.scss +58 -0
  696. package/src/components/ContactList/ContactSearch/ContactSearch.vue +98 -0
  697. package/src/components/ContactList/ContactSearch/index.ts +1 -0
  698. package/src/components/ContactList/constants/const.ts +7 -0
  699. package/src/components/ContactList/hooks/index.ts +1 -0
  700. package/src/components/ContactList/hooks/useContactList.ts +21 -0
  701. package/src/components/ContactList/i18n/en-US.ts +77 -0
  702. package/src/components/ContactList/i18n/index.ts +4 -0
  703. package/src/components/ContactList/i18n/zh-CN.ts +77 -0
  704. package/src/components/ContactList/index.ts +18 -0
  705. package/src/components/ConversationList/ConversationActions/ConversationActions.scss +72 -0
  706. package/src/components/ConversationList/ConversationActions/ConversationActions.vue +182 -0
  707. package/src/components/ConversationList/ConversationActions/index.ts +1 -0
  708. package/src/components/ConversationList/ConversationCreate/ConversationCreate.scss +21 -0
  709. package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +234 -0
  710. package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.scss +43 -0
  711. package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +87 -0
  712. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +55 -0
  713. package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +124 -0
  714. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.scss +11 -0
  715. package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +65 -0
  716. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +66 -0
  717. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +61 -0
  718. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.ts +5 -0
  719. package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.ts +15 -0
  720. package/src/components/ConversationList/ConversationCreate/index.ts +6 -0
  721. package/src/components/ConversationList/ConversationList.scss +19 -0
  722. package/src/components/ConversationList/ConversationList.vue +206 -36
  723. package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +21 -0
  724. package/src/components/ConversationList/ConversationListContent/ConversationListContent.vue +55 -0
  725. package/src/components/ConversationList/ConversationListContent/index.ts +1 -0
  726. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +25 -0
  727. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.vue +51 -0
  728. package/src/components/ConversationList/ConversationListHeader/index.ts +1 -0
  729. package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.scss +51 -0
  730. package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +78 -0
  731. package/src/components/ConversationList/ConversationPlaceHolder/images/cry.png +0 -0
  732. package/src/components/ConversationList/ConversationPlaceHolder/images/effort.png +0 -0
  733. package/src/components/ConversationList/ConversationPlaceHolder/index.ts +4 -0
  734. package/src/components/ConversationList/ConversationPreview/ConversationPreview.scss +116 -0
  735. package/src/components/ConversationList/ConversationPreview/ConversationPreview.vue +72 -0
  736. package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +37 -0
  737. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +27 -0
  738. package/src/components/ConversationList/ConversationPreview/ConversationPreviewTitle.vue +31 -0
  739. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +134 -0
  740. package/src/components/ConversationList/ConversationPreview/ConversationPreviewUnread.vue +34 -0
  741. package/src/components/ConversationList/ConversationPreview/index.ts +7 -0
  742. package/src/components/ConversationList/ConversationPreview/utils.ts +55 -0
  743. package/src/components/ConversationList/ConversationSearch/ConversationSearch.scss +51 -0
  744. package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +191 -0
  745. package/src/components/ConversationList/ConversationSearch/index.ts +1 -0
  746. package/src/components/ConversationList/hooks/useConversation.ts +21 -0
  747. package/src/components/ConversationList/hooks/useConversationCreate.ts +29 -0
  748. package/src/components/ConversationList/i18n/en-US.ts +70 -0
  749. package/src/components/ConversationList/i18n/index.ts +4 -0
  750. package/src/components/ConversationList/i18n/zh-CN.ts +70 -0
  751. package/src/components/ConversationList/index.ts +32 -1
  752. package/src/components/LiveAudienceList/LiveAudienceList.vue +1 -1
  753. package/src/components/LiveAudienceList/UserActionMenu.vue +30 -30
  754. package/src/components/LiveCoreView/DefaultStreamViewUI.vue +244 -0
  755. package/src/components/{LiveStreamView → LiveCoreView}/index.ts +4 -3
  756. package/src/components/{LiveStreamView → LiveCoreView}/index.vue +109 -87
  757. package/src/components/LiveList/LiveList.vue +116 -46
  758. package/src/components/LiveList/LiveListH5.vue +71 -27
  759. package/src/components/LiveMonitorView/LiveMonitorView.vue +117 -93
  760. package/src/components/LiveScenePanel/MaterialRenameDialog.vue +1 -1
  761. package/src/components/LiveScenePanel/i18n/en-US/index.ts +2 -0
  762. package/src/components/LiveScenePanel/i18n/zh-CN/index.ts +2 -0
  763. package/src/components/LiveScenePanel/index.vue +7 -1
  764. package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +4 -4
  765. package/src/components/MessageInput/MessageInput.module.scss +1 -1
  766. package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +9 -9
  767. package/src/components/MessageInput/SendButton/SendButton.vue +8 -6
  768. package/src/components/MessageInput/TextEditor/Editor.scss +3 -2
  769. package/src/components/MessageInput/TextEditor/EditorCore.ts +3 -3
  770. package/src/components/MessageInput/TextEditor/TextEditor.module.scss +1 -0
  771. package/src/components/MessageInput/TextEditor/TextEditor.vue +15 -10
  772. package/src/components/MessageInput/i18n/en-US.ts +13 -0
  773. package/src/components/MessageInput/i18n/index.ts +7 -0
  774. package/src/components/MessageInput/i18n/zh-CN.ts +13 -0
  775. package/src/components/MessageInput/index.ts +26 -7
  776. package/src/components/MessageList/Message/FileMessage/FileMessage.vue +1 -1
  777. package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +10 -10
  778. package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +97 -0
  779. package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +4 -4
  780. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +1 -1
  781. package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +26 -23
  782. package/src/components/MessageList/Message/RecalledMessage/RecalledMessage.vue +3 -3
  783. package/src/components/MessageList/Message/TextMessage/TextMessage.vue +4 -11
  784. package/src/components/MessageList/MessageForward/MessageForward.vue +7 -7
  785. package/src/components/MessageList/MessageList.vue +21 -5
  786. package/src/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.vue +11 -11
  787. package/src/components/MessageList/ScrollToBottom/ScrollToBottom.vue +50 -0
  788. package/src/components/MessageList/ScrollToBottom/index.ts +5 -0
  789. package/src/components/MessageList/i18n/en-US.ts +47 -0
  790. package/src/components/MessageList/i18n/index.ts +9 -0
  791. package/src/components/MessageList/i18n/zh-CN.ts +46 -0
  792. package/src/components/MessageList/index.ts +5 -0
  793. package/src/components/Search/Search.scss +12 -0
  794. package/src/components/Search/Search.vue +192 -0
  795. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +308 -0
  796. package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +558 -0
  797. package/src/components/Search/SearchAdvanced/DateRangePicker/index.ts +2 -0
  798. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +84 -0
  799. package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +263 -0
  800. package/src/components/Search/SearchAdvanced/MessageAdvanced/index.ts +2 -0
  801. package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +56 -0
  802. package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +62 -0
  803. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +40 -0
  804. package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +57 -0
  805. package/src/components/Search/SearchAdvanced/SearchTab/index.ts +2 -0
  806. package/src/components/Search/SearchAdvanced/Slider/Slider.scss +47 -0
  807. package/src/components/Search/SearchAdvanced/Slider/Slider.vue +82 -0
  808. package/src/components/Search/SearchAdvanced/Slider/index.ts +2 -0
  809. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +309 -0
  810. package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +382 -0
  811. package/src/components/Search/SearchAdvanced/UserAdvanced/index.ts +2 -0
  812. package/src/components/Search/SearchAdvanced/index.ts +9 -0
  813. package/src/components/Search/SearchBar/SearchBar.scss +120 -0
  814. package/src/components/Search/SearchBar/SearchBar.vue +132 -0
  815. package/src/components/Search/SearchBar/index.ts +5 -0
  816. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.scss +27 -0
  817. package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +32 -0
  818. package/src/components/Search/SearchResults/EmptyResult/index.ts +2 -0
  819. package/src/components/Search/SearchResults/Loading/Loading.scss +29 -0
  820. package/src/components/Search/SearchResults/Loading/Loading.vue +17 -0
  821. package/src/components/Search/SearchResults/Loading/index.ts +2 -0
  822. package/src/components/Search/SearchResults/SearchResults.scss +191 -0
  823. package/src/components/Search/SearchResults/SearchResults.vue +400 -0
  824. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +47 -0
  825. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.vue +58 -0
  826. package/src/components/Search/SearchResults/SearchResultsItem/Conversation/index.ts +2 -0
  827. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.scss +54 -0
  828. package/src/components/Search/SearchResults/SearchResultsItem/Group/Group.vue +39 -0
  829. package/src/components/Search/SearchResults/SearchResultsItem/Group/index.ts +2 -0
  830. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.scss +169 -0
  831. package/src/components/Search/SearchResults/SearchResultsItem/Message/Message.vue +263 -0
  832. package/src/components/Search/SearchResults/SearchResultsItem/Message/index.ts +2 -0
  833. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.scss +17 -0
  834. package/src/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.vue +63 -0
  835. package/src/components/Search/SearchResults/SearchResultsItem/User/User.scss +53 -0
  836. package/src/components/Search/SearchResults/SearchResultsItem/User/User.vue +72 -0
  837. package/src/components/Search/SearchResults/SearchResultsItem/User/index.ts +2 -0
  838. package/src/components/Search/SearchResults/SearchResultsItem/index.ts +10 -0
  839. package/src/components/Search/SearchResults/SearchResultsItem/utils/highlightText.ts +75 -0
  840. package/src/components/Search/SearchResults/SearchResultsItem/utils/index.ts +1 -0
  841. package/src/components/Search/SearchResults/index.ts +7 -0
  842. package/src/components/Search/i18n/en-US/DateRangePicker.ts +24 -0
  843. package/src/components/Search/i18n/en-US/Search.ts +60 -0
  844. package/src/components/Search/i18n/en-US/index.ts +9 -0
  845. package/src/components/Search/i18n/index.ts +4 -0
  846. package/src/components/Search/i18n/zh-CN/DateRangePicker.ts +24 -0
  847. package/src/components/Search/i18n/zh-CN/Search.ts +60 -0
  848. package/src/components/Search/i18n/zh-CN/index.ts +9 -0
  849. package/src/components/Search/index.ts +34 -0
  850. package/src/components/StreamMixer/LocalMixer/MixerControl.vue +20 -15
  851. package/src/components/StreamMixer/LocalMixer/index.vue +130 -57
  852. package/src/components/StreamMixer/index.vue +3 -3
  853. package/src/components/UserPicker/UserPicker.vue +5 -5
  854. package/src/components/UserPicker/components/ListMode/ListMode.vue +2 -2
  855. package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -1
  856. package/src/components/UserPicker/i18n/en-US.ts +8 -0
  857. package/src/components/UserPicker/i18n/index.ts +9 -0
  858. package/src/components/UserPicker/i18n/zh-CN.ts +8 -0
  859. package/src/components/UserPicker/index.ts +5 -2
  860. package/src/components/VideoSettingPanel/VideoPreview.vue +13 -8
  861. package/src/components/VideoSettingPanel/VideoProfile.vue +5 -5
  862. package/src/components/VideoSettingPanel/i18n/en-US/index.ts +8 -3
  863. package/src/components/VideoSettingPanel/i18n/zh-CN/index.ts +8 -3
  864. package/src/components/VideoSettingPanel/index.ts +3 -1
  865. package/src/components/VideoSettingPanel/index.vue +15 -9
  866. package/src/constants/avatar.ts +0 -0
  867. package/src/hooks/index.ts +4 -0
  868. package/src/hooks/useLongPress.ts +113 -0
  869. package/src/hooks/useMessageActions.ts +5 -5
  870. package/src/hooks/useMouseHover.ts +42 -0
  871. package/src/index.ts +6 -69
  872. package/src/rtc/index.ts +97 -0
  873. package/src/rtc/server.ts +119 -0
  874. package/src/types/contact.ts +309 -0
  875. package/src/types/conversation.ts +259 -0
  876. package/src/types/device.ts +2 -0
  877. package/src/types/engine.ts +18 -0
  878. package/src/types/index.ts +5 -0
  879. package/src/types/live.ts +4 -5
  880. package/src/types/login.ts +26 -0
  881. package/src/types/monitor.ts +5 -4
  882. package/src/types/search.ts +126 -0
  883. package/src/utils/json.ts +67 -4
  884. package/src/utils/lodash.ts +38 -21
  885. package/src/utils/time.ts +8 -10
  886. package/dist/AttachmentPicker.vue_vue_type_script_setup_true_lang-B9tVChd9.js +0 -89
  887. package/dist/CustomMessage.vue_vue_type_script_setup_true_lang-By3MsAd0.js +0 -12
  888. package/dist/CustomMessage.vue_vue_type_script_setup_true_lang-CoK94Qxs.js +0 -12
  889. package/dist/GroupTipMessage.vue_vue_type_style_index_0_lang-BqyPcZln.js +0 -30
  890. package/dist/GroupTipMessage.vue_vue_type_style_index_0_lang-Dw2-5Ner.js +0 -30
  891. package/dist/Message.vue_vue_type_script_setup_true_lang-BV0PxtjX.js +0 -32
  892. package/dist/Message.vue_vue_type_script_setup_true_lang-mEw2syBo.js +0 -23
  893. package/dist/QuotedMessagePreview.vue_vue_type_script_setup_true_lang-C8lXN2Qm.js +0 -91
  894. package/dist/SendButton.vue_vue_type_script_setup_true_lang-BqIeqUyN.js +0 -35
  895. package/dist/TextEditor.vue_vue_type_script_setup_true_lang-w_I4bsmJ.js +0 -126
  896. package/dist/TextEditor.vue_vue_type_script_setup_true_lang-yXW1iVZ1.js +0 -98
  897. package/dist/components/LiveStreamView/DefaultStreamViewUI.js +0 -90
  898. package/dist/components/LiveStreamView/index.d.ts +0 -4
  899. package/dist/index-BlyS4ObG.js +0 -50
  900. package/dist/index-NFANFVi5.js +0 -58
  901. package/src/components/LiveStreamView/DefaultStreamViewUI.vue +0 -145
  902. /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.d.ts +0 -0
  903. /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.js +0 -0
  904. /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/index.d.ts +0 -0
  905. /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/index.js +0 -0
  906. /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.d.ts +0 -0
  907. /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.js +0 -0
  908. /package/src/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.ts +0 -0
  909. /package/src/components/{LiveStreamView → LiveCoreView}/i18n/index.ts +0 -0
  910. /package/src/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { i18next, useUIKit } from "@tencentcloud/uikit-base-component-vue3";
1
+ import { useUIKit } from "@tencentcloud/uikit-base-component-vue3";
2
2
  const millisecondsInWeek = 6048e5;
3
3
  const millisecondsInDay = 864e5;
4
4
  const constructFromSymbol = Symbol.for("constructDateFrom");
@@ -125,7 +125,7 @@ function startOfYear(date, options) {
125
125
  date_.setHours(0, 0, 0, 0);
126
126
  return date_;
127
127
  }
128
- const formatDistanceLocale$4 = {
128
+ const formatDistanceLocale$1 = {
129
129
  lessThanXSeconds: {
130
130
  one: "less than a second",
131
131
  other: "less than {{count}} seconds"
@@ -188,9 +188,9 @@ const formatDistanceLocale$4 = {
188
188
  other: "almost {{count}} years"
189
189
  }
190
190
  };
191
- const formatDistance$4 = (token, count, options) => {
191
+ const formatDistance$1 = (token, count, options) => {
192
192
  let result;
193
- const tokenValue = formatDistanceLocale$4[token];
193
+ const tokenValue = formatDistanceLocale$1[token];
194
194
  if (typeof tokenValue === "string") {
195
195
  result = tokenValue;
196
196
  } else if (count === 1) {
@@ -214,39 +214,39 @@ function buildFormatLongFn(args) {
214
214
  return format2;
215
215
  };
216
216
  }
217
- const dateFormats$4 = {
217
+ const dateFormats$1 = {
218
218
  full: "EEEE, MMMM do, y",
219
219
  long: "MMMM do, y",
220
220
  medium: "MMM d, y",
221
221
  short: "MM/dd/yyyy"
222
222
  };
223
- const timeFormats$4 = {
223
+ const timeFormats$1 = {
224
224
  full: "h:mm:ss a zzzz",
225
225
  long: "h:mm:ss a z",
226
226
  medium: "h:mm:ss a",
227
227
  short: "h:mm a"
228
228
  };
229
- const dateTimeFormats$4 = {
229
+ const dateTimeFormats$1 = {
230
230
  full: "{{date}} 'at' {{time}}",
231
231
  long: "{{date}} 'at' {{time}}",
232
232
  medium: "{{date}}, {{time}}",
233
233
  short: "{{date}}, {{time}}"
234
234
  };
235
- const formatLong$4 = {
235
+ const formatLong$1 = {
236
236
  date: buildFormatLongFn({
237
- formats: dateFormats$4,
237
+ formats: dateFormats$1,
238
238
  defaultWidth: "full"
239
239
  }),
240
240
  time: buildFormatLongFn({
241
- formats: timeFormats$4,
241
+ formats: timeFormats$1,
242
242
  defaultWidth: "full"
243
243
  }),
244
244
  dateTime: buildFormatLongFn({
245
- formats: dateTimeFormats$4,
245
+ formats: dateTimeFormats$1,
246
246
  defaultWidth: "full"
247
247
  })
248
248
  };
249
- const formatRelativeLocale$4 = {
249
+ const formatRelativeLocale$1 = {
250
250
  lastWeek: "'last' eeee 'at' p",
251
251
  yesterday: "'yesterday at' p",
252
252
  today: "'today at' p",
@@ -254,7 +254,7 @@ const formatRelativeLocale$4 = {
254
254
  nextWeek: "eeee 'at' p",
255
255
  other: "P"
256
256
  };
257
- const formatRelative$4 = (token, _date, _baseDate, _options) => formatRelativeLocale$4[token];
257
+ const formatRelative$1 = (token, _date, _baseDate, _options) => formatRelativeLocale$1[token];
258
258
  function buildLocalizeFn(args) {
259
259
  return (value, options) => {
260
260
  const context = (options == null ? void 0 : options.context) ? String(options.context) : "standalone";
@@ -272,17 +272,17 @@ function buildLocalizeFn(args) {
272
272
  return valuesArray[index];
273
273
  };
274
274
  }
275
- const eraValues$4 = {
275
+ const eraValues$1 = {
276
276
  narrow: ["B", "A"],
277
277
  abbreviated: ["BC", "AD"],
278
278
  wide: ["Before Christ", "Anno Domini"]
279
279
  };
280
- const quarterValues$4 = {
280
+ const quarterValues$1 = {
281
281
  narrow: ["1", "2", "3", "4"],
282
282
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
283
283
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
284
284
  };
285
- const monthValues$4 = {
285
+ const monthValues$1 = {
286
286
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
287
287
  abbreviated: [
288
288
  "Jan",
@@ -313,7 +313,7 @@ const monthValues$4 = {
313
313
  "December"
314
314
  ]
315
315
  };
316
- const dayValues$4 = {
316
+ const dayValues$1 = {
317
317
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
318
318
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
319
319
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -327,7 +327,7 @@ const dayValues$4 = {
327
327
  "Saturday"
328
328
  ]
329
329
  };
330
- const dayPeriodValues$4 = {
330
+ const dayPeriodValues$1 = {
331
331
  narrow: {
332
332
  am: "a",
333
333
  pm: "p",
@@ -359,7 +359,7 @@ const dayPeriodValues$4 = {
359
359
  night: "night"
360
360
  }
361
361
  };
362
- const formattingDayPeriodValues$4 = {
362
+ const formattingDayPeriodValues$1 = {
363
363
  narrow: {
364
364
  am: "a",
365
365
  pm: "p",
@@ -391,7 +391,7 @@ const formattingDayPeriodValues$4 = {
391
391
  night: "at night"
392
392
  }
393
393
  };
394
- const ordinalNumber$4 = (dirtyNumber, _options) => {
394
+ const ordinalNumber$1 = (dirtyNumber, _options) => {
395
395
  const number = Number(dirtyNumber);
396
396
  const rem100 = number % 100;
397
397
  if (rem100 > 20 || rem100 < 10) {
@@ -406,29 +406,29 @@ const ordinalNumber$4 = (dirtyNumber, _options) => {
406
406
  }
407
407
  return number + "th";
408
408
  };
409
- const localize$4 = {
410
- ordinalNumber: ordinalNumber$4,
409
+ const localize$1 = {
410
+ ordinalNumber: ordinalNumber$1,
411
411
  era: buildLocalizeFn({
412
- values: eraValues$4,
412
+ values: eraValues$1,
413
413
  defaultWidth: "wide"
414
414
  }),
415
415
  quarter: buildLocalizeFn({
416
- values: quarterValues$4,
416
+ values: quarterValues$1,
417
417
  defaultWidth: "wide",
418
418
  argumentCallback: (quarter) => quarter - 1
419
419
  }),
420
420
  month: buildLocalizeFn({
421
- values: monthValues$4,
421
+ values: monthValues$1,
422
422
  defaultWidth: "wide"
423
423
  }),
424
424
  day: buildLocalizeFn({
425
- values: dayValues$4,
425
+ values: dayValues$1,
426
426
  defaultWidth: "wide"
427
427
  }),
428
428
  dayPeriod: buildLocalizeFn({
429
- values: dayPeriodValues$4,
429
+ values: dayPeriodValues$1,
430
430
  defaultWidth: "wide",
431
- formattingValues: formattingDayPeriodValues$4,
431
+ formattingValues: formattingDayPeriodValues$1,
432
432
  defaultFormattingWidth: "wide"
433
433
  })
434
434
  };
@@ -485,30 +485,30 @@ function buildMatchPatternFn(args) {
485
485
  return { value, rest };
486
486
  };
487
487
  }
488
- const matchOrdinalNumberPattern$4 = /^(\d+)(th|st|nd|rd)?/i;
489
- const parseOrdinalNumberPattern$4 = /\d+/i;
490
- const matchEraPatterns$4 = {
488
+ const matchOrdinalNumberPattern$1 = /^(\d+)(th|st|nd|rd)?/i;
489
+ const parseOrdinalNumberPattern$1 = /\d+/i;
490
+ const matchEraPatterns$1 = {
491
491
  narrow: /^(b|a)/i,
492
492
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
493
493
  wide: /^(before christ|before common era|anno domini|common era)/i
494
494
  };
495
- const parseEraPatterns$4 = {
495
+ const parseEraPatterns$1 = {
496
496
  any: [/^b/i, /^(a|c)/i]
497
497
  };
498
- const matchQuarterPatterns$4 = {
498
+ const matchQuarterPatterns$1 = {
499
499
  narrow: /^[1234]/i,
500
500
  abbreviated: /^q[1234]/i,
501
501
  wide: /^[1234](th|st|nd|rd)? quarter/i
502
502
  };
503
- const parseQuarterPatterns$4 = {
503
+ const parseQuarterPatterns$1 = {
504
504
  any: [/1/i, /2/i, /3/i, /4/i]
505
505
  };
506
- const matchMonthPatterns$4 = {
506
+ const matchMonthPatterns$1 = {
507
507
  narrow: /^[jfmasond]/i,
508
508
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
509
509
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
510
510
  };
511
- const parseMonthPatterns$4 = {
511
+ const parseMonthPatterns$1 = {
512
512
  narrow: [
513
513
  /^j/i,
514
514
  /^f/i,
@@ -538,21 +538,21 @@ const parseMonthPatterns$4 = {
538
538
  /^d/i
539
539
  ]
540
540
  };
541
- const matchDayPatterns$4 = {
541
+ const matchDayPatterns$1 = {
542
542
  narrow: /^[smtwf]/i,
543
543
  short: /^(su|mo|tu|we|th|fr|sa)/i,
544
544
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
545
545
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
546
546
  };
547
- const parseDayPatterns$4 = {
547
+ const parseDayPatterns$1 = {
548
548
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
549
549
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
550
550
  };
551
- const matchDayPeriodPatterns$4 = {
551
+ const matchDayPeriodPatterns$1 = {
552
552
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
553
553
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
554
554
  };
555
- const parseDayPeriodPatterns$4 = {
555
+ const parseDayPeriodPatterns$1 = {
556
556
  any: {
557
557
  am: /^a/i,
558
558
  pm: /^p/i,
@@ -564,51 +564,51 @@ const parseDayPeriodPatterns$4 = {
564
564
  night: /night/i
565
565
  }
566
566
  };
567
- const match$4 = {
567
+ const match$1 = {
568
568
  ordinalNumber: buildMatchPatternFn({
569
- matchPattern: matchOrdinalNumberPattern$4,
570
- parsePattern: parseOrdinalNumberPattern$4,
569
+ matchPattern: matchOrdinalNumberPattern$1,
570
+ parsePattern: parseOrdinalNumberPattern$1,
571
571
  valueCallback: (value) => parseInt(value, 10)
572
572
  }),
573
573
  era: buildMatchFn({
574
- matchPatterns: matchEraPatterns$4,
574
+ matchPatterns: matchEraPatterns$1,
575
575
  defaultMatchWidth: "wide",
576
- parsePatterns: parseEraPatterns$4,
576
+ parsePatterns: parseEraPatterns$1,
577
577
  defaultParseWidth: "any"
578
578
  }),
579
579
  quarter: buildMatchFn({
580
- matchPatterns: matchQuarterPatterns$4,
580
+ matchPatterns: matchQuarterPatterns$1,
581
581
  defaultMatchWidth: "wide",
582
- parsePatterns: parseQuarterPatterns$4,
582
+ parsePatterns: parseQuarterPatterns$1,
583
583
  defaultParseWidth: "any",
584
584
  valueCallback: (index) => index + 1
585
585
  }),
586
586
  month: buildMatchFn({
587
- matchPatterns: matchMonthPatterns$4,
587
+ matchPatterns: matchMonthPatterns$1,
588
588
  defaultMatchWidth: "wide",
589
- parsePatterns: parseMonthPatterns$4,
589
+ parsePatterns: parseMonthPatterns$1,
590
590
  defaultParseWidth: "any"
591
591
  }),
592
592
  day: buildMatchFn({
593
- matchPatterns: matchDayPatterns$4,
593
+ matchPatterns: matchDayPatterns$1,
594
594
  defaultMatchWidth: "wide",
595
- parsePatterns: parseDayPatterns$4,
595
+ parsePatterns: parseDayPatterns$1,
596
596
  defaultParseWidth: "any"
597
597
  }),
598
598
  dayPeriod: buildMatchFn({
599
- matchPatterns: matchDayPeriodPatterns$4,
599
+ matchPatterns: matchDayPeriodPatterns$1,
600
600
  defaultMatchWidth: "any",
601
- parsePatterns: parseDayPeriodPatterns$4,
601
+ parsePatterns: parseDayPeriodPatterns$1,
602
602
  defaultParseWidth: "any"
603
603
  })
604
604
  };
605
605
  const enUS = {
606
606
  code: "en-US",
607
- formatDistance: formatDistance$4,
608
- formatLong: formatLong$4,
609
- formatRelative: formatRelative$4,
610
- localize: localize$4,
611
- match: match$4,
607
+ formatDistance: formatDistance$1,
608
+ formatLong: formatLong$1,
609
+ formatRelative: formatRelative$1,
610
+ localize: localize$1,
611
+ match: match$1,
612
612
  options: {
613
613
  weekStartsOn: 0,
614
614
  firstWeekContainsDate: 1
@@ -1475,156 +1475,171 @@ function isYesterday(date, options) {
1475
1475
  subDays(constructNow(date))
1476
1476
  );
1477
1477
  }
1478
- const formatDistanceLocale$3 = {
1478
+ const formatDistanceLocale = {
1479
1479
  lessThanXSeconds: {
1480
- one: "1秒未満",
1481
- other: "{{count}}秒未満",
1482
- oneWithSuffix: "約1秒",
1483
- otherWithSuffix: "約{{count}}秒"
1480
+ one: "不到 1",
1481
+ other: "不到 {{count}}"
1484
1482
  },
1485
1483
  xSeconds: {
1486
- one: "1秒",
1487
- other: "{{count}}秒"
1484
+ one: "1 秒",
1485
+ other: "{{count}} 秒"
1488
1486
  },
1489
- halfAMinute: "30秒",
1487
+ halfAMinute: "半分钟",
1490
1488
  lessThanXMinutes: {
1491
- one: "1分未満",
1492
- other: "{{count}}分未満",
1493
- oneWithSuffix: "約1分",
1494
- otherWithSuffix: "約{{count}}分"
1489
+ one: "不到 1 分钟",
1490
+ other: "不到 {{count}} 分钟"
1495
1491
  },
1496
1492
  xMinutes: {
1497
- one: "1",
1498
- other: "{{count}}"
1499
- },
1500
- aboutXHours: {
1501
- one: "約1時間",
1502
- other: "約{{count}}時間"
1493
+ one: "1 分钟",
1494
+ other: "{{count}} 分钟"
1503
1495
  },
1504
1496
  xHours: {
1505
- one: "1時間",
1506
- other: "{{count}}時間"
1497
+ one: "1 小时",
1498
+ other: "{{count}} 小时"
1499
+ },
1500
+ aboutXHours: {
1501
+ one: "大约 1 小时",
1502
+ other: "大约 {{count}} 小时"
1507
1503
  },
1508
1504
  xDays: {
1509
- one: "1",
1510
- other: "{{count}}"
1505
+ one: "1",
1506
+ other: "{{count}}"
1511
1507
  },
1512
1508
  aboutXWeeks: {
1513
- one: "1週間",
1514
- other: "{{count}}週間"
1509
+ one: "大约 1 个星期",
1510
+ other: "大约 {{count}} 个星期"
1515
1511
  },
1516
1512
  xWeeks: {
1517
- one: "1週間",
1518
- other: "{{count}}週間"
1513
+ one: "1 个星期",
1514
+ other: "{{count}} 个星期"
1519
1515
  },
1520
1516
  aboutXMonths: {
1521
- one: "1か月",
1522
- other: "{{count}}か月"
1517
+ one: "大约 1 个月",
1518
+ other: "大约 {{count}} 个月"
1523
1519
  },
1524
1520
  xMonths: {
1525
- one: "1か月",
1526
- other: "{{count}}か月"
1521
+ one: "1 个月",
1522
+ other: "{{count}} 个月"
1527
1523
  },
1528
1524
  aboutXYears: {
1529
- one: "1年",
1530
- other: "{{count}}年"
1525
+ one: "大约 1 年",
1526
+ other: "大约 {{count}} 年"
1531
1527
  },
1532
1528
  xYears: {
1533
- one: "1年",
1534
- other: "{{count}}年"
1529
+ one: "1 年",
1530
+ other: "{{count}} 年"
1535
1531
  },
1536
1532
  overXYears: {
1537
- one: "1年以上",
1538
- other: "{{count}}年以上"
1533
+ one: "超过 1",
1534
+ other: "超过 {{count}}"
1539
1535
  },
1540
1536
  almostXYears: {
1541
- one: "1年近く",
1542
- other: "{{count}}年近く"
1537
+ one: "将近 1",
1538
+ other: "将近 {{count}}"
1543
1539
  }
1544
1540
  };
1545
- const formatDistance$3 = (token, count, options) => {
1546
- options = options || {};
1541
+ const formatDistance = (token, count, options) => {
1547
1542
  let result;
1548
- const tokenValue = formatDistanceLocale$3[token];
1543
+ const tokenValue = formatDistanceLocale[token];
1549
1544
  if (typeof tokenValue === "string") {
1550
1545
  result = tokenValue;
1551
1546
  } else if (count === 1) {
1552
- if (options.addSuffix && tokenValue.oneWithSuffix) {
1553
- result = tokenValue.oneWithSuffix;
1554
- } else {
1555
- result = tokenValue.one;
1556
- }
1547
+ result = tokenValue.one;
1557
1548
  } else {
1558
- if (options.addSuffix && tokenValue.otherWithSuffix) {
1559
- result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));
1560
- } else {
1561
- result = tokenValue.other.replace("{{count}}", String(count));
1562
- }
1549
+ result = tokenValue.other.replace("{{count}}", String(count));
1563
1550
  }
1564
- if (options.addSuffix) {
1551
+ if (options == null ? void 0 : options.addSuffix) {
1565
1552
  if (options.comparison && options.comparison > 0) {
1566
- return result + "";
1553
+ return result + "";
1567
1554
  } else {
1568
1555
  return result + "前";
1569
1556
  }
1570
1557
  }
1571
1558
  return result;
1572
1559
  };
1573
- const dateFormats$3 = {
1574
- full: "y年M月d日EEEE",
1575
- long: "y年M月d日",
1576
- medium: "y/MM/dd",
1577
- short: "y/MM/dd"
1560
+ const dateFormats = {
1561
+ full: "y''M''d'' EEEE",
1562
+ long: "y''M''d''",
1563
+ medium: "yyyy-MM-dd",
1564
+ short: "yy-MM-dd"
1578
1565
  };
1579
- const timeFormats$3 = {
1580
- full: "H時mmss秒 zzzz",
1581
- long: "H:mm:ss z",
1582
- medium: "H:mm:ss",
1583
- short: "H:mm"
1566
+ const timeFormats = {
1567
+ full: "zzzz a h:mm:ss",
1568
+ long: "z a h:mm:ss",
1569
+ medium: "a h:mm:ss",
1570
+ short: "a h:mm"
1584
1571
  };
1585
- const dateTimeFormats$3 = {
1572
+ const dateTimeFormats = {
1586
1573
  full: "{{date}} {{time}}",
1587
1574
  long: "{{date}} {{time}}",
1588
1575
  medium: "{{date}} {{time}}",
1589
1576
  short: "{{date}} {{time}}"
1590
1577
  };
1591
- const formatLong$3 = {
1578
+ const formatLong = {
1592
1579
  date: buildFormatLongFn({
1593
- formats: dateFormats$3,
1580
+ formats: dateFormats,
1594
1581
  defaultWidth: "full"
1595
1582
  }),
1596
1583
  time: buildFormatLongFn({
1597
- formats: timeFormats$3,
1584
+ formats: timeFormats,
1598
1585
  defaultWidth: "full"
1599
1586
  }),
1600
1587
  dateTime: buildFormatLongFn({
1601
- formats: dateTimeFormats$3,
1588
+ formats: dateTimeFormats,
1602
1589
  defaultWidth: "full"
1603
1590
  })
1604
1591
  };
1605
- const formatRelativeLocale$3 = {
1606
- lastWeek: "先週のeeeep",
1607
- yesterday: "昨日のp",
1608
- today: "今日のp",
1609
- tomorrow: "明日のp",
1610
- nextWeek: "翌週のeeeeのp",
1611
- other: "P"
1592
+ function checkWeek(date, baseDate, options) {
1593
+ const baseFormat = "eeee p";
1594
+ if (isSameWeek(date, baseDate, options)) {
1595
+ return baseFormat;
1596
+ } else if (date.getTime() > baseDate.getTime()) {
1597
+ return "'下个'" + baseFormat;
1598
+ }
1599
+ return "'上个'" + baseFormat;
1600
+ }
1601
+ const formatRelativeLocale = {
1602
+ lastWeek: checkWeek,
1603
+ // days before yesterday, maybe in this week or last week
1604
+ yesterday: "'昨天' p",
1605
+ today: "'今天' p",
1606
+ tomorrow: "'明天' p",
1607
+ nextWeek: checkWeek,
1608
+ // days after tomorrow, maybe in this week or next week
1609
+ other: "PP p"
1612
1610
  };
1613
- const formatRelative$3 = (token, _date, _baseDate, _options) => {
1614
- return formatRelativeLocale$3[token];
1611
+ const formatRelative = (token, date, baseDate, options) => {
1612
+ const format2 = formatRelativeLocale[token];
1613
+ if (typeof format2 === "function") {
1614
+ return format2(date, baseDate, options);
1615
+ }
1616
+ return format2;
1615
1617
  };
1616
- const eraValues$3 = {
1617
- narrow: ["BC", "AC"],
1618
- abbreviated: ["紀元前", "西暦"],
1619
- wide: ["紀元前", "西暦"]
1618
+ const eraValues = {
1619
+ narrow: ["", "公元"],
1620
+ abbreviated: ["", "公元"],
1621
+ wide: ["公元前", "公元"]
1620
1622
  };
1621
- const quarterValues$3 = {
1623
+ const quarterValues = {
1622
1624
  narrow: ["1", "2", "3", "4"],
1623
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1624
- wide: ["第1四半期", "第2四半期", "第3四半期", "第4四半期"]
1625
+ abbreviated: ["第一季", "第二季", "第三季", "第四季"],
1626
+ wide: ["第一季度", "第二季度", "第三季度", "第四季度"]
1625
1627
  };
1626
- const monthValues$3 = {
1627
- narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
1628
+ const monthValues = {
1629
+ narrow: [
1630
+ "一",
1631
+ "二",
1632
+ "三",
1633
+ "四",
1634
+ "五",
1635
+ "六",
1636
+ "七",
1637
+ "八",
1638
+ "九",
1639
+ "十",
1640
+ "十一",
1641
+ "十二"
1642
+ ],
1628
1643
  abbreviated: [
1629
1644
  "1月",
1630
1645
  "2月",
@@ -1640,1363 +1655,132 @@ const monthValues$3 = {
1640
1655
  "12月"
1641
1656
  ],
1642
1657
  wide: [
1643
- "1月",
1644
- "2月",
1645
- "3月",
1646
- "4月",
1647
- "5月",
1648
- "6月",
1649
- "7月",
1650
- "8月",
1651
- "9月",
1652
- "10月",
1653
- "11月",
1654
- "12月"
1658
+ "一月",
1659
+ "二月",
1660
+ "三月",
1661
+ "四月",
1662
+ "五月",
1663
+ "六月",
1664
+ "七月",
1665
+ "八月",
1666
+ "九月",
1667
+ "十月",
1668
+ "十一月",
1669
+ "十二月"
1655
1670
  ]
1656
1671
  };
1657
- const dayValues$3 = {
1658
- narrow: ["日", "", "", "", "", "", ""],
1659
- short: ["日", "", "", "", "", "", ""],
1660
- abbreviated: ["", "", "", "", "", "", ""],
1661
- wide: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"]
1672
+ const dayValues = {
1673
+ narrow: ["日", "", "", "", "", "", ""],
1674
+ short: ["日", "", "", "", "", "", ""],
1675
+ abbreviated: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
1676
+ wide: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
1662
1677
  };
1663
- const dayPeriodValues$3 = {
1678
+ const dayPeriodValues = {
1664
1679
  narrow: {
1665
- am: "午前",
1666
- pm: "午後",
1667
- midnight: "深夜",
1668
- noon: "正午",
1669
- morning: "",
1670
- afternoon: "午後",
1671
- evening: "",
1672
- night: "深夜"
1680
+ am: "",
1681
+ pm: "",
1682
+ midnight: "凌晨",
1683
+ noon: "",
1684
+ morning: "",
1685
+ afternoon: "下午",
1686
+ evening: "",
1687
+ night: ""
1673
1688
  },
1674
1689
  abbreviated: {
1675
- am: "午前",
1676
- pm: "午後",
1677
- midnight: "深夜",
1678
- noon: "正午",
1679
- morning: "",
1680
- afternoon: "午後",
1681
- evening: "",
1682
- night: "深夜"
1690
+ am: "上午",
1691
+ pm: "下午",
1692
+ midnight: "凌晨",
1693
+ noon: "中午",
1694
+ morning: "早晨",
1695
+ afternoon: "中午",
1696
+ evening: "晚上",
1697
+ night: "夜间"
1683
1698
  },
1684
1699
  wide: {
1685
- am: "午前",
1686
- pm: "午後",
1687
- midnight: "深夜",
1688
- noon: "正午",
1689
- morning: "",
1690
- afternoon: "午後",
1691
- evening: "",
1692
- night: "深夜"
1700
+ am: "上午",
1701
+ pm: "下午",
1702
+ midnight: "凌晨",
1703
+ noon: "中午",
1704
+ morning: "早晨",
1705
+ afternoon: "中午",
1706
+ evening: "晚上",
1707
+ night: "夜间"
1693
1708
  }
1694
1709
  };
1695
- const formattingDayPeriodValues$3 = {
1710
+ const formattingDayPeriodValues = {
1696
1711
  narrow: {
1697
- am: "午前",
1698
- pm: "午後",
1699
- midnight: "深夜",
1700
- noon: "正午",
1701
- morning: "",
1702
- afternoon: "午後",
1703
- evening: "",
1704
- night: "深夜"
1712
+ am: "",
1713
+ pm: "",
1714
+ midnight: "凌晨",
1715
+ noon: "",
1716
+ morning: "",
1717
+ afternoon: "下午",
1718
+ evening: "",
1719
+ night: ""
1705
1720
  },
1706
1721
  abbreviated: {
1707
- am: "午前",
1708
- pm: "午後",
1709
- midnight: "深夜",
1710
- noon: "正午",
1711
- morning: "",
1712
- afternoon: "午後",
1713
- evening: "",
1714
- night: "深夜"
1722
+ am: "上午",
1723
+ pm: "下午",
1724
+ midnight: "凌晨",
1725
+ noon: "中午",
1726
+ morning: "早晨",
1727
+ afternoon: "中午",
1728
+ evening: "晚上",
1729
+ night: "夜间"
1715
1730
  },
1716
1731
  wide: {
1717
- am: "午前",
1718
- pm: "午後",
1719
- midnight: "深夜",
1720
- noon: "正午",
1721
- morning: "",
1722
- afternoon: "午後",
1723
- evening: "",
1724
- night: "深夜"
1732
+ am: "上午",
1733
+ pm: "下午",
1734
+ midnight: "凌晨",
1735
+ noon: "中午",
1736
+ morning: "早晨",
1737
+ afternoon: "中午",
1738
+ evening: "晚上",
1739
+ night: "夜间"
1725
1740
  }
1726
1741
  };
1727
- const ordinalNumber$3 = (dirtyNumber, options) => {
1742
+ const ordinalNumber = (dirtyNumber, options) => {
1728
1743
  const number = Number(dirtyNumber);
1729
- const unit = String(options == null ? void 0 : options.unit);
1730
- switch (unit) {
1731
- case "year":
1732
- return `${number}年`;
1733
- case "quarter":
1734
- return `第${number}四半期`;
1735
- case "month":
1736
- return `${number}月`;
1737
- case "week":
1738
- return `第${number}週`;
1744
+ switch (options == null ? void 0 : options.unit) {
1739
1745
  case "date":
1740
- return `${number}日`;
1746
+ return number.toString() + "日";
1741
1747
  case "hour":
1742
- return `${number}時`;
1748
+ return number.toString() + "时";
1743
1749
  case "minute":
1744
- return `${number}分`;
1750
+ return number.toString() + "分";
1745
1751
  case "second":
1746
- return `${number}秒`;
1752
+ return number.toString() + "秒";
1747
1753
  default:
1748
- return `${number}`;
1754
+ return "第 " + number.toString();
1749
1755
  }
1750
1756
  };
1751
- const localize$3 = {
1752
- ordinalNumber: ordinalNumber$3,
1757
+ const localize = {
1758
+ ordinalNumber,
1753
1759
  era: buildLocalizeFn({
1754
- values: eraValues$3,
1760
+ values: eraValues,
1755
1761
  defaultWidth: "wide"
1756
1762
  }),
1757
1763
  quarter: buildLocalizeFn({
1758
- values: quarterValues$3,
1764
+ values: quarterValues,
1759
1765
  defaultWidth: "wide",
1760
- argumentCallback: (quarter) => Number(quarter) - 1
1766
+ argumentCallback: (quarter) => quarter - 1
1761
1767
  }),
1762
1768
  month: buildLocalizeFn({
1763
- values: monthValues$3,
1769
+ values: monthValues,
1764
1770
  defaultWidth: "wide"
1765
1771
  }),
1766
1772
  day: buildLocalizeFn({
1767
- values: dayValues$3,
1773
+ values: dayValues,
1768
1774
  defaultWidth: "wide"
1769
1775
  }),
1770
1776
  dayPeriod: buildLocalizeFn({
1771
- values: dayPeriodValues$3,
1777
+ values: dayPeriodValues,
1772
1778
  defaultWidth: "wide",
1773
- formattingValues: formattingDayPeriodValues$3,
1779
+ formattingValues: formattingDayPeriodValues,
1774
1780
  defaultFormattingWidth: "wide"
1775
1781
  })
1776
1782
  };
1777
- const matchOrdinalNumberPattern$3 = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
1778
- const parseOrdinalNumberPattern$3 = /\d+/i;
1779
- const matchEraPatterns$3 = {
1780
- narrow: /^(B\.?C\.?|A\.?D\.?)/i,
1781
- abbreviated: /^(紀元[前後]|西暦)/i,
1782
- wide: /^(紀元[前後]|西暦)/i
1783
- };
1784
- const parseEraPatterns$3 = {
1785
- narrow: [/^B/i, /^A/i],
1786
- any: [/^(紀元前)/i, /^(西暦|紀元後)/i]
1787
- };
1788
- const matchQuarterPatterns$3 = {
1789
- narrow: /^[1234]/i,
1790
- abbreviated: /^Q[1234]/i,
1791
- wide: /^第[1234一二三四1234]四半期/i
1792
- };
1793
- const parseQuarterPatterns$3 = {
1794
- any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i]
1795
- };
1796
- const matchMonthPatterns$3 = {
1797
- narrow: /^([123456789]|1[012])/,
1798
- abbreviated: /^([123456789]|1[012])月/i,
1799
- wide: /^([123456789]|1[012])月/i
1800
- };
1801
- const parseMonthPatterns$3 = {
1802
- any: [
1803
- /^1\D/,
1804
- /^2/,
1805
- /^3/,
1806
- /^4/,
1807
- /^5/,
1808
- /^6/,
1809
- /^7/,
1810
- /^8/,
1811
- /^9/,
1812
- /^10/,
1813
- /^11/,
1814
- /^12/
1815
- ]
1816
- };
1817
- const matchDayPatterns$3 = {
1818
- narrow: /^[日月火水木金土]/,
1819
- short: /^[日月火水木金土]/,
1820
- abbreviated: /^[日月火水木金土]/,
1821
- wide: /^[日月火水木金土]曜日/
1822
- };
1823
- const parseDayPatterns$3 = {
1824
- any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/]
1825
- };
1826
- const matchDayPeriodPatterns$3 = {
1827
- any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i
1828
- };
1829
- const parseDayPeriodPatterns$3 = {
1830
- any: {
1831
- am: /^(A|午前)/i,
1832
- pm: /^(P|午後)/i,
1833
- midnight: /^深夜|真夜中/i,
1834
- noon: /^正午/i,
1835
- morning: /^朝/i,
1836
- afternoon: /^午後/i,
1837
- evening: /^夜/i,
1838
- night: /^深夜/i
1839
- }
1840
- };
1841
- const match$3 = {
1842
- ordinalNumber: buildMatchPatternFn({
1843
- matchPattern: matchOrdinalNumberPattern$3,
1844
- parsePattern: parseOrdinalNumberPattern$3,
1845
- valueCallback: function(value) {
1846
- return parseInt(value, 10);
1847
- }
1848
- }),
1849
- era: buildMatchFn({
1850
- matchPatterns: matchEraPatterns$3,
1851
- defaultMatchWidth: "wide",
1852
- parsePatterns: parseEraPatterns$3,
1853
- defaultParseWidth: "any"
1854
- }),
1855
- quarter: buildMatchFn({
1856
- matchPatterns: matchQuarterPatterns$3,
1857
- defaultMatchWidth: "wide",
1858
- parsePatterns: parseQuarterPatterns$3,
1859
- defaultParseWidth: "any",
1860
- valueCallback: (index) => index + 1
1861
- }),
1862
- month: buildMatchFn({
1863
- matchPatterns: matchMonthPatterns$3,
1864
- defaultMatchWidth: "wide",
1865
- parsePatterns: parseMonthPatterns$3,
1866
- defaultParseWidth: "any"
1867
- }),
1868
- day: buildMatchFn({
1869
- matchPatterns: matchDayPatterns$3,
1870
- defaultMatchWidth: "wide",
1871
- parsePatterns: parseDayPatterns$3,
1872
- defaultParseWidth: "any"
1873
- }),
1874
- dayPeriod: buildMatchFn({
1875
- matchPatterns: matchDayPeriodPatterns$3,
1876
- defaultMatchWidth: "any",
1877
- parsePatterns: parseDayPeriodPatterns$3,
1878
- defaultParseWidth: "any"
1879
- })
1880
- };
1881
- const ja = {
1882
- code: "ja",
1883
- formatDistance: formatDistance$3,
1884
- formatLong: formatLong$3,
1885
- formatRelative: formatRelative$3,
1886
- localize: localize$3,
1887
- match: match$3,
1888
- options: {
1889
- weekStartsOn: 0,
1890
- firstWeekContainsDate: 1
1891
- }
1892
- };
1893
- const formatDistanceLocale$2 = {
1894
- lessThanXSeconds: {
1895
- one: "1초 미만",
1896
- other: "{{count}}초 미만"
1897
- },
1898
- xSeconds: {
1899
- one: "1초",
1900
- other: "{{count}}초"
1901
- },
1902
- halfAMinute: "30초",
1903
- lessThanXMinutes: {
1904
- one: "1분 미만",
1905
- other: "{{count}}분 미만"
1906
- },
1907
- xMinutes: {
1908
- one: "1분",
1909
- other: "{{count}}분"
1910
- },
1911
- aboutXHours: {
1912
- one: "약 1시간",
1913
- other: "약 {{count}}시간"
1914
- },
1915
- xHours: {
1916
- one: "1시간",
1917
- other: "{{count}}시간"
1918
- },
1919
- xDays: {
1920
- one: "1일",
1921
- other: "{{count}}일"
1922
- },
1923
- aboutXWeeks: {
1924
- one: "약 1주",
1925
- other: "약 {{count}}주"
1926
- },
1927
- xWeeks: {
1928
- one: "1주",
1929
- other: "{{count}}주"
1930
- },
1931
- aboutXMonths: {
1932
- one: "약 1개월",
1933
- other: "약 {{count}}개월"
1934
- },
1935
- xMonths: {
1936
- one: "1개월",
1937
- other: "{{count}}개월"
1938
- },
1939
- aboutXYears: {
1940
- one: "약 1년",
1941
- other: "약 {{count}}년"
1942
- },
1943
- xYears: {
1944
- one: "1년",
1945
- other: "{{count}}년"
1946
- },
1947
- overXYears: {
1948
- one: "1년 이상",
1949
- other: "{{count}}년 이상"
1950
- },
1951
- almostXYears: {
1952
- one: "거의 1년",
1953
- other: "거의 {{count}}년"
1954
- }
1955
- };
1956
- const formatDistance$2 = (token, count, options) => {
1957
- let result;
1958
- const tokenValue = formatDistanceLocale$2[token];
1959
- if (typeof tokenValue === "string") {
1960
- result = tokenValue;
1961
- } else if (count === 1) {
1962
- result = tokenValue.one;
1963
- } else {
1964
- result = tokenValue.other.replace("{{count}}", count.toString());
1965
- }
1966
- if (options == null ? void 0 : options.addSuffix) {
1967
- if (options.comparison && options.comparison > 0) {
1968
- return result + " 후";
1969
- } else {
1970
- return result + " 전";
1971
- }
1972
- }
1973
- return result;
1974
- };
1975
- const dateFormats$2 = {
1976
- full: "y년 M월 d일 EEEE",
1977
- long: "y년 M월 d일",
1978
- medium: "y.MM.dd",
1979
- short: "y.MM.dd"
1980
- };
1981
- const timeFormats$2 = {
1982
- full: "a H시 mm분 ss초 zzzz",
1983
- long: "a H:mm:ss z",
1984
- medium: "HH:mm:ss",
1985
- short: "HH:mm"
1986
- };
1987
- const dateTimeFormats$2 = {
1988
- full: "{{date}} {{time}}",
1989
- long: "{{date}} {{time}}",
1990
- medium: "{{date}} {{time}}",
1991
- short: "{{date}} {{time}}"
1992
- };
1993
- const formatLong$2 = {
1994
- date: buildFormatLongFn({
1995
- formats: dateFormats$2,
1996
- defaultWidth: "full"
1997
- }),
1998
- time: buildFormatLongFn({
1999
- formats: timeFormats$2,
2000
- defaultWidth: "full"
2001
- }),
2002
- dateTime: buildFormatLongFn({
2003
- formats: dateTimeFormats$2,
2004
- defaultWidth: "full"
2005
- })
2006
- };
2007
- const formatRelativeLocale$2 = {
2008
- lastWeek: "'지난' eeee p",
2009
- yesterday: "'어제' p",
2010
- today: "'오늘' p",
2011
- tomorrow: "'내일' p",
2012
- nextWeek: "'다음' eeee p",
2013
- other: "P"
2014
- };
2015
- const formatRelative$2 = (token, _date, _baseDate, _options) => formatRelativeLocale$2[token];
2016
- const eraValues$2 = {
2017
- narrow: ["BC", "AD"],
2018
- abbreviated: ["BC", "AD"],
2019
- wide: ["기원전", "서기"]
2020
- };
2021
- const quarterValues$2 = {
2022
- narrow: ["1", "2", "3", "4"],
2023
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
2024
- wide: ["1분기", "2분기", "3분기", "4분기"]
2025
- };
2026
- const monthValues$2 = {
2027
- narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
2028
- abbreviated: [
2029
- "1월",
2030
- "2월",
2031
- "3월",
2032
- "4월",
2033
- "5월",
2034
- "6월",
2035
- "7월",
2036
- "8월",
2037
- "9월",
2038
- "10월",
2039
- "11월",
2040
- "12월"
2041
- ],
2042
- wide: [
2043
- "1월",
2044
- "2월",
2045
- "3월",
2046
- "4월",
2047
- "5월",
2048
- "6월",
2049
- "7월",
2050
- "8월",
2051
- "9월",
2052
- "10월",
2053
- "11월",
2054
- "12월"
2055
- ]
2056
- };
2057
- const dayValues$2 = {
2058
- narrow: ["일", "월", "화", "수", "목", "금", "토"],
2059
- short: ["일", "월", "화", "수", "목", "금", "토"],
2060
- abbreviated: ["일", "월", "화", "수", "목", "금", "토"],
2061
- wide: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"]
2062
- };
2063
- const dayPeriodValues$2 = {
2064
- narrow: {
2065
- am: "오전",
2066
- pm: "오후",
2067
- midnight: "자정",
2068
- noon: "정오",
2069
- morning: "아침",
2070
- afternoon: "오후",
2071
- evening: "저녁",
2072
- night: "밤"
2073
- },
2074
- abbreviated: {
2075
- am: "오전",
2076
- pm: "오후",
2077
- midnight: "자정",
2078
- noon: "정오",
2079
- morning: "아침",
2080
- afternoon: "오후",
2081
- evening: "저녁",
2082
- night: "밤"
2083
- },
2084
- wide: {
2085
- am: "오전",
2086
- pm: "오후",
2087
- midnight: "자정",
2088
- noon: "정오",
2089
- morning: "아침",
2090
- afternoon: "오후",
2091
- evening: "저녁",
2092
- night: "밤"
2093
- }
2094
- };
2095
- const formattingDayPeriodValues$2 = {
2096
- narrow: {
2097
- am: "오전",
2098
- pm: "오후",
2099
- midnight: "자정",
2100
- noon: "정오",
2101
- morning: "아침",
2102
- afternoon: "오후",
2103
- evening: "저녁",
2104
- night: "밤"
2105
- },
2106
- abbreviated: {
2107
- am: "오전",
2108
- pm: "오후",
2109
- midnight: "자정",
2110
- noon: "정오",
2111
- morning: "아침",
2112
- afternoon: "오후",
2113
- evening: "저녁",
2114
- night: "밤"
2115
- },
2116
- wide: {
2117
- am: "오전",
2118
- pm: "오후",
2119
- midnight: "자정",
2120
- noon: "정오",
2121
- morning: "아침",
2122
- afternoon: "오후",
2123
- evening: "저녁",
2124
- night: "밤"
2125
- }
2126
- };
2127
- const ordinalNumber$2 = (dirtyNumber, options) => {
2128
- const number = Number(dirtyNumber);
2129
- const unit = String(options == null ? void 0 : options.unit);
2130
- switch (unit) {
2131
- case "minute":
2132
- case "second":
2133
- return String(number);
2134
- case "date":
2135
- return number + "일";
2136
- default:
2137
- return number + "번째";
2138
- }
2139
- };
2140
- const localize$2 = {
2141
- ordinalNumber: ordinalNumber$2,
2142
- era: buildLocalizeFn({
2143
- values: eraValues$2,
2144
- defaultWidth: "wide"
2145
- }),
2146
- quarter: buildLocalizeFn({
2147
- values: quarterValues$2,
2148
- defaultWidth: "wide",
2149
- argumentCallback: (quarter) => quarter - 1
2150
- }),
2151
- month: buildLocalizeFn({
2152
- values: monthValues$2,
2153
- defaultWidth: "wide"
2154
- }),
2155
- day: buildLocalizeFn({
2156
- values: dayValues$2,
2157
- defaultWidth: "wide"
2158
- }),
2159
- dayPeriod: buildLocalizeFn({
2160
- values: dayPeriodValues$2,
2161
- defaultWidth: "wide",
2162
- formattingValues: formattingDayPeriodValues$2,
2163
- defaultFormattingWidth: "wide"
2164
- })
2165
- };
2166
- const matchOrdinalNumberPattern$2 = /^(\d+)(일|번째)?/i;
2167
- const parseOrdinalNumberPattern$2 = /\d+/i;
2168
- const matchEraPatterns$2 = {
2169
- narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
2170
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
2171
- wide: /^(기원전|서기)/i
2172
- };
2173
- const parseEraPatterns$2 = {
2174
- any: [/^(bc|기원전)/i, /^(ad|서기)/i]
2175
- };
2176
- const matchQuarterPatterns$2 = {
2177
- narrow: /^[1234]/i,
2178
- abbreviated: /^q[1234]/i,
2179
- wide: /^[1234]사?분기/i
2180
- };
2181
- const parseQuarterPatterns$2 = {
2182
- any: [/1/i, /2/i, /3/i, /4/i]
2183
- };
2184
- const matchMonthPatterns$2 = {
2185
- narrow: /^(1[012]|[123456789])/,
2186
- abbreviated: /^(1[012]|[123456789])월/i,
2187
- wide: /^(1[012]|[123456789])월/i
2188
- };
2189
- const parseMonthPatterns$2 = {
2190
- any: [
2191
- /^1월?$/,
2192
- /^2/,
2193
- /^3/,
2194
- /^4/,
2195
- /^5/,
2196
- /^6/,
2197
- /^7/,
2198
- /^8/,
2199
- /^9/,
2200
- /^10/,
2201
- /^11/,
2202
- /^12/
2203
- ]
2204
- };
2205
- const matchDayPatterns$2 = {
2206
- narrow: /^[일월화수목금토]/,
2207
- short: /^[일월화수목금토]/,
2208
- abbreviated: /^[일월화수목금토]/,
2209
- wide: /^[일월화수목금토]요일/
2210
- };
2211
- const parseDayPatterns$2 = {
2212
- any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/]
2213
- };
2214
- const matchDayPeriodPatterns$2 = {
2215
- any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i
2216
- };
2217
- const parseDayPeriodPatterns$2 = {
2218
- any: {
2219
- am: /^(am|오전)/i,
2220
- pm: /^(pm|오후)/i,
2221
- midnight: /^자정/i,
2222
- noon: /^정오/i,
2223
- morning: /^아침/i,
2224
- afternoon: /^오후/i,
2225
- evening: /^저녁/i,
2226
- night: /^밤/i
2227
- }
2228
- };
2229
- const match$2 = {
2230
- ordinalNumber: buildMatchPatternFn({
2231
- matchPattern: matchOrdinalNumberPattern$2,
2232
- parsePattern: parseOrdinalNumberPattern$2,
2233
- valueCallback: (value) => parseInt(value, 10)
2234
- }),
2235
- era: buildMatchFn({
2236
- matchPatterns: matchEraPatterns$2,
2237
- defaultMatchWidth: "wide",
2238
- parsePatterns: parseEraPatterns$2,
2239
- defaultParseWidth: "any"
2240
- }),
2241
- quarter: buildMatchFn({
2242
- matchPatterns: matchQuarterPatterns$2,
2243
- defaultMatchWidth: "wide",
2244
- parsePatterns: parseQuarterPatterns$2,
2245
- defaultParseWidth: "any",
2246
- valueCallback: (index) => index + 1
2247
- }),
2248
- month: buildMatchFn({
2249
- matchPatterns: matchMonthPatterns$2,
2250
- defaultMatchWidth: "wide",
2251
- parsePatterns: parseMonthPatterns$2,
2252
- defaultParseWidth: "any"
2253
- }),
2254
- day: buildMatchFn({
2255
- matchPatterns: matchDayPatterns$2,
2256
- defaultMatchWidth: "wide",
2257
- parsePatterns: parseDayPatterns$2,
2258
- defaultParseWidth: "any"
2259
- }),
2260
- dayPeriod: buildMatchFn({
2261
- matchPatterns: matchDayPeriodPatterns$2,
2262
- defaultMatchWidth: "any",
2263
- parsePatterns: parseDayPeriodPatterns$2,
2264
- defaultParseWidth: "any"
2265
- })
2266
- };
2267
- const ko = {
2268
- code: "ko",
2269
- formatDistance: formatDistance$2,
2270
- formatLong: formatLong$2,
2271
- formatRelative: formatRelative$2,
2272
- localize: localize$2,
2273
- match: match$2,
2274
- options: {
2275
- weekStartsOn: 0,
2276
- firstWeekContainsDate: 1
2277
- }
2278
- };
2279
- const formatDistanceLocale$1 = {
2280
- lessThanXSeconds: {
2281
- one: "不到 1 秒",
2282
- other: "不到 {{count}} 秒"
2283
- },
2284
- xSeconds: {
2285
- one: "1 秒",
2286
- other: "{{count}} 秒"
2287
- },
2288
- halfAMinute: "半分钟",
2289
- lessThanXMinutes: {
2290
- one: "不到 1 分钟",
2291
- other: "不到 {{count}} 分钟"
2292
- },
2293
- xMinutes: {
2294
- one: "1 分钟",
2295
- other: "{{count}} 分钟"
2296
- },
2297
- xHours: {
2298
- one: "1 小时",
2299
- other: "{{count}} 小时"
2300
- },
2301
- aboutXHours: {
2302
- one: "大约 1 小时",
2303
- other: "大约 {{count}} 小时"
2304
- },
2305
- xDays: {
2306
- one: "1 天",
2307
- other: "{{count}} 天"
2308
- },
2309
- aboutXWeeks: {
2310
- one: "大约 1 个星期",
2311
- other: "大约 {{count}} 个星期"
2312
- },
2313
- xWeeks: {
2314
- one: "1 个星期",
2315
- other: "{{count}} 个星期"
2316
- },
2317
- aboutXMonths: {
2318
- one: "大约 1 个月",
2319
- other: "大约 {{count}} 个月"
2320
- },
2321
- xMonths: {
2322
- one: "1 个月",
2323
- other: "{{count}} 个月"
2324
- },
2325
- aboutXYears: {
2326
- one: "大约 1 年",
2327
- other: "大约 {{count}} 年"
2328
- },
2329
- xYears: {
2330
- one: "1 年",
2331
- other: "{{count}} 年"
2332
- },
2333
- overXYears: {
2334
- one: "超过 1 年",
2335
- other: "超过 {{count}} 年"
2336
- },
2337
- almostXYears: {
2338
- one: "将近 1 年",
2339
- other: "将近 {{count}} 年"
2340
- }
2341
- };
2342
- const formatDistance$1 = (token, count, options) => {
2343
- let result;
2344
- const tokenValue = formatDistanceLocale$1[token];
2345
- if (typeof tokenValue === "string") {
2346
- result = tokenValue;
2347
- } else if (count === 1) {
2348
- result = tokenValue.one;
2349
- } else {
2350
- result = tokenValue.other.replace("{{count}}", String(count));
2351
- }
2352
- if (options == null ? void 0 : options.addSuffix) {
2353
- if (options.comparison && options.comparison > 0) {
2354
- return result + "内";
2355
- } else {
2356
- return result + "前";
2357
- }
2358
- }
2359
- return result;
2360
- };
2361
- const dateFormats$1 = {
2362
- full: "y'年'M'月'd'日' EEEE",
2363
- long: "y'年'M'月'd'日'",
2364
- medium: "yyyy-MM-dd",
2365
- short: "yy-MM-dd"
2366
- };
2367
- const timeFormats$1 = {
2368
- full: "zzzz a h:mm:ss",
2369
- long: "z a h:mm:ss",
2370
- medium: "a h:mm:ss",
2371
- short: "a h:mm"
2372
- };
2373
- const dateTimeFormats$1 = {
2374
- full: "{{date}} {{time}}",
2375
- long: "{{date}} {{time}}",
2376
- medium: "{{date}} {{time}}",
2377
- short: "{{date}} {{time}}"
2378
- };
2379
- const formatLong$1 = {
2380
- date: buildFormatLongFn({
2381
- formats: dateFormats$1,
2382
- defaultWidth: "full"
2383
- }),
2384
- time: buildFormatLongFn({
2385
- formats: timeFormats$1,
2386
- defaultWidth: "full"
2387
- }),
2388
- dateTime: buildFormatLongFn({
2389
- formats: dateTimeFormats$1,
2390
- defaultWidth: "full"
2391
- })
2392
- };
2393
- function checkWeek(date, baseDate, options) {
2394
- const baseFormat = "eeee p";
2395
- if (isSameWeek(date, baseDate, options)) {
2396
- return baseFormat;
2397
- } else if (date.getTime() > baseDate.getTime()) {
2398
- return "'下个'" + baseFormat;
2399
- }
2400
- return "'上个'" + baseFormat;
2401
- }
2402
- const formatRelativeLocale$1 = {
2403
- lastWeek: checkWeek,
2404
- // days before yesterday, maybe in this week or last week
2405
- yesterday: "'昨天' p",
2406
- today: "'今天' p",
2407
- tomorrow: "'明天' p",
2408
- nextWeek: checkWeek,
2409
- // days after tomorrow, maybe in this week or next week
2410
- other: "PP p"
2411
- };
2412
- const formatRelative$1 = (token, date, baseDate, options) => {
2413
- const format2 = formatRelativeLocale$1[token];
2414
- if (typeof format2 === "function") {
2415
- return format2(date, baseDate, options);
2416
- }
2417
- return format2;
2418
- };
2419
- const eraValues$1 = {
2420
- narrow: ["前", "公元"],
2421
- abbreviated: ["前", "公元"],
2422
- wide: ["公元前", "公元"]
2423
- };
2424
- const quarterValues$1 = {
2425
- narrow: ["1", "2", "3", "4"],
2426
- abbreviated: ["第一季", "第二季", "第三季", "第四季"],
2427
- wide: ["第一季度", "第二季度", "第三季度", "第四季度"]
2428
- };
2429
- const monthValues$1 = {
2430
- narrow: [
2431
- "一",
2432
- "二",
2433
- "三",
2434
- "四",
2435
- "五",
2436
- "六",
2437
- "七",
2438
- "八",
2439
- "九",
2440
- "十",
2441
- "十一",
2442
- "十二"
2443
- ],
2444
- abbreviated: [
2445
- "1月",
2446
- "2月",
2447
- "3月",
2448
- "4月",
2449
- "5月",
2450
- "6月",
2451
- "7月",
2452
- "8月",
2453
- "9月",
2454
- "10月",
2455
- "11月",
2456
- "12月"
2457
- ],
2458
- wide: [
2459
- "一月",
2460
- "二月",
2461
- "三月",
2462
- "四月",
2463
- "五月",
2464
- "六月",
2465
- "七月",
2466
- "八月",
2467
- "九月",
2468
- "十月",
2469
- "十一月",
2470
- "十二月"
2471
- ]
2472
- };
2473
- const dayValues$1 = {
2474
- narrow: ["日", "一", "二", "三", "四", "五", "六"],
2475
- short: ["日", "一", "二", "三", "四", "五", "六"],
2476
- abbreviated: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
2477
- wide: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
2478
- };
2479
- const dayPeriodValues$1 = {
2480
- narrow: {
2481
- am: "上",
2482
- pm: "下",
2483
- midnight: "凌晨",
2484
- noon: "午",
2485
- morning: "早",
2486
- afternoon: "下午",
2487
- evening: "晚",
2488
- night: "夜"
2489
- },
2490
- abbreviated: {
2491
- am: "上午",
2492
- pm: "下午",
2493
- midnight: "凌晨",
2494
- noon: "中午",
2495
- morning: "早晨",
2496
- afternoon: "中午",
2497
- evening: "晚上",
2498
- night: "夜间"
2499
- },
2500
- wide: {
2501
- am: "上午",
2502
- pm: "下午",
2503
- midnight: "凌晨",
2504
- noon: "中午",
2505
- morning: "早晨",
2506
- afternoon: "中午",
2507
- evening: "晚上",
2508
- night: "夜间"
2509
- }
2510
- };
2511
- const formattingDayPeriodValues$1 = {
2512
- narrow: {
2513
- am: "上",
2514
- pm: "下",
2515
- midnight: "凌晨",
2516
- noon: "午",
2517
- morning: "早",
2518
- afternoon: "下午",
2519
- evening: "晚",
2520
- night: "夜"
2521
- },
2522
- abbreviated: {
2523
- am: "上午",
2524
- pm: "下午",
2525
- midnight: "凌晨",
2526
- noon: "中午",
2527
- morning: "早晨",
2528
- afternoon: "中午",
2529
- evening: "晚上",
2530
- night: "夜间"
2531
- },
2532
- wide: {
2533
- am: "上午",
2534
- pm: "下午",
2535
- midnight: "凌晨",
2536
- noon: "中午",
2537
- morning: "早晨",
2538
- afternoon: "中午",
2539
- evening: "晚上",
2540
- night: "夜间"
2541
- }
2542
- };
2543
- const ordinalNumber$1 = (dirtyNumber, options) => {
2544
- const number = Number(dirtyNumber);
2545
- switch (options == null ? void 0 : options.unit) {
2546
- case "date":
2547
- return number.toString() + "日";
2548
- case "hour":
2549
- return number.toString() + "时";
2550
- case "minute":
2551
- return number.toString() + "分";
2552
- case "second":
2553
- return number.toString() + "秒";
2554
- default:
2555
- return "第 " + number.toString();
2556
- }
2557
- };
2558
- const localize$1 = {
2559
- ordinalNumber: ordinalNumber$1,
2560
- era: buildLocalizeFn({
2561
- values: eraValues$1,
2562
- defaultWidth: "wide"
2563
- }),
2564
- quarter: buildLocalizeFn({
2565
- values: quarterValues$1,
2566
- defaultWidth: "wide",
2567
- argumentCallback: (quarter) => quarter - 1
2568
- }),
2569
- month: buildLocalizeFn({
2570
- values: monthValues$1,
2571
- defaultWidth: "wide"
2572
- }),
2573
- day: buildLocalizeFn({
2574
- values: dayValues$1,
2575
- defaultWidth: "wide"
2576
- }),
2577
- dayPeriod: buildLocalizeFn({
2578
- values: dayPeriodValues$1,
2579
- defaultWidth: "wide",
2580
- formattingValues: formattingDayPeriodValues$1,
2581
- defaultFormattingWidth: "wide"
2582
- })
2583
- };
2584
- const matchOrdinalNumberPattern$1 = /^(第\s*)?\d+(日|时|分|秒)?/i;
2585
- const parseOrdinalNumberPattern$1 = /\d+/i;
2586
- const matchEraPatterns$1 = {
2587
- narrow: /^(前)/i,
2588
- abbreviated: /^(前)/i,
2589
- wide: /^(公元前|公元)/i
2590
- };
2591
- const parseEraPatterns$1 = {
2592
- any: [/^(前)/i, /^(公元)/i]
2593
- };
2594
- const matchQuarterPatterns$1 = {
2595
- narrow: /^[1234]/i,
2596
- abbreviated: /^第[一二三四]刻/i,
2597
- wide: /^第[一二三四]刻钟/i
2598
- };
2599
- const parseQuarterPatterns$1 = {
2600
- any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
2601
- };
2602
- const matchMonthPatterns$1 = {
2603
- narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
2604
- abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
2605
- wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
2606
- };
2607
- const parseMonthPatterns$1 = {
2608
- narrow: [
2609
- /^一/i,
2610
- /^二/i,
2611
- /^三/i,
2612
- /^四/i,
2613
- /^五/i,
2614
- /^六/i,
2615
- /^七/i,
2616
- /^八/i,
2617
- /^九/i,
2618
- /^十(?!(一|二))/i,
2619
- /^十一/i,
2620
- /^十二/i
2621
- ],
2622
- any: [
2623
- /^一|1/i,
2624
- /^二|2/i,
2625
- /^三|3/i,
2626
- /^四|4/i,
2627
- /^五|5/i,
2628
- /^六|6/i,
2629
- /^七|7/i,
2630
- /^八|8/i,
2631
- /^九|9/i,
2632
- /^十(?!(一|二))|10/i,
2633
- /^十一|11/i,
2634
- /^十二|12/i
2635
- ]
2636
- };
2637
- const matchDayPatterns$1 = {
2638
- narrow: /^[一二三四五六日]/i,
2639
- short: /^[一二三四五六日]/i,
2640
- abbreviated: /^周[一二三四五六日]/i,
2641
- wide: /^星期[一二三四五六日]/i
2642
- };
2643
- const parseDayPatterns$1 = {
2644
- any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i]
2645
- };
2646
- const matchDayPeriodPatterns$1 = {
2647
- any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
2648
- };
2649
- const parseDayPeriodPatterns$1 = {
2650
- any: {
2651
- am: /^上午?/i,
2652
- pm: /^下午?/i,
2653
- midnight: /^午夜/i,
2654
- noon: /^[中正]午/i,
2655
- morning: /^早上/i,
2656
- afternoon: /^下午/i,
2657
- evening: /^晚上?/i,
2658
- night: /^凌晨/i
2659
- }
2660
- };
2661
- const match$1 = {
2662
- ordinalNumber: buildMatchPatternFn({
2663
- matchPattern: matchOrdinalNumberPattern$1,
2664
- parsePattern: parseOrdinalNumberPattern$1,
2665
- valueCallback: (value) => parseInt(value, 10)
2666
- }),
2667
- era: buildMatchFn({
2668
- matchPatterns: matchEraPatterns$1,
2669
- defaultMatchWidth: "wide",
2670
- parsePatterns: parseEraPatterns$1,
2671
- defaultParseWidth: "any"
2672
- }),
2673
- quarter: buildMatchFn({
2674
- matchPatterns: matchQuarterPatterns$1,
2675
- defaultMatchWidth: "wide",
2676
- parsePatterns: parseQuarterPatterns$1,
2677
- defaultParseWidth: "any",
2678
- valueCallback: (index) => index + 1
2679
- }),
2680
- month: buildMatchFn({
2681
- matchPatterns: matchMonthPatterns$1,
2682
- defaultMatchWidth: "wide",
2683
- parsePatterns: parseMonthPatterns$1,
2684
- defaultParseWidth: "any"
2685
- }),
2686
- day: buildMatchFn({
2687
- matchPatterns: matchDayPatterns$1,
2688
- defaultMatchWidth: "wide",
2689
- parsePatterns: parseDayPatterns$1,
2690
- defaultParseWidth: "any"
2691
- }),
2692
- dayPeriod: buildMatchFn({
2693
- matchPatterns: matchDayPeriodPatterns$1,
2694
- defaultMatchWidth: "any",
2695
- parsePatterns: parseDayPeriodPatterns$1,
2696
- defaultParseWidth: "any"
2697
- })
2698
- };
2699
- const zhCN = {
2700
- code: "zh-CN",
2701
- formatDistance: formatDistance$1,
2702
- formatLong: formatLong$1,
2703
- formatRelative: formatRelative$1,
2704
- localize: localize$1,
2705
- match: match$1,
2706
- options: {
2707
- weekStartsOn: 1,
2708
- firstWeekContainsDate: 4
2709
- }
2710
- };
2711
- const formatDistanceLocale = {
2712
- lessThanXSeconds: {
2713
- one: "少於 1 秒",
2714
- other: "少於 {{count}} 秒"
2715
- },
2716
- xSeconds: {
2717
- one: "1 秒",
2718
- other: "{{count}} 秒"
2719
- },
2720
- halfAMinute: "半分鐘",
2721
- lessThanXMinutes: {
2722
- one: "少於 1 分鐘",
2723
- other: "少於 {{count}} 分鐘"
2724
- },
2725
- xMinutes: {
2726
- one: "1 分鐘",
2727
- other: "{{count}} 分鐘"
2728
- },
2729
- xHours: {
2730
- one: "1 小時",
2731
- other: "{{count}} 小時"
2732
- },
2733
- aboutXHours: {
2734
- one: "大約 1 小時",
2735
- other: "大約 {{count}} 小時"
2736
- },
2737
- xDays: {
2738
- one: "1 天",
2739
- other: "{{count}} 天"
2740
- },
2741
- aboutXWeeks: {
2742
- one: "大約 1 個星期",
2743
- other: "大約 {{count}} 個星期"
2744
- },
2745
- xWeeks: {
2746
- one: "1 個星期",
2747
- other: "{{count}} 個星期"
2748
- },
2749
- aboutXMonths: {
2750
- one: "大約 1 個月",
2751
- other: "大約 {{count}} 個月"
2752
- },
2753
- xMonths: {
2754
- one: "1 個月",
2755
- other: "{{count}} 個月"
2756
- },
2757
- aboutXYears: {
2758
- one: "大約 1 年",
2759
- other: "大約 {{count}} 年"
2760
- },
2761
- xYears: {
2762
- one: "1 年",
2763
- other: "{{count}} 年"
2764
- },
2765
- overXYears: {
2766
- one: "超過 1 年",
2767
- other: "超過 {{count}} 年"
2768
- },
2769
- almostXYears: {
2770
- one: "將近 1 年",
2771
- other: "將近 {{count}} 年"
2772
- }
2773
- };
2774
- const formatDistance = (token, count, options) => {
2775
- let result;
2776
- const tokenValue = formatDistanceLocale[token];
2777
- if (typeof tokenValue === "string") {
2778
- result = tokenValue;
2779
- } else if (count === 1) {
2780
- result = tokenValue.one;
2781
- } else {
2782
- result = tokenValue.other.replace("{{count}}", String(count));
2783
- }
2784
- if (options == null ? void 0 : options.addSuffix) {
2785
- if (options.comparison && options.comparison > 0) {
2786
- return result + "內";
2787
- } else {
2788
- return result + "前";
2789
- }
2790
- }
2791
- return result;
2792
- };
2793
- const dateFormats = {
2794
- full: "y'年'M'月'd'日' EEEE",
2795
- long: "y'年'M'月'd'日'",
2796
- medium: "yyyy-MM-dd",
2797
- short: "yy-MM-dd"
2798
- };
2799
- const timeFormats = {
2800
- full: "zzzz a h:mm:ss",
2801
- long: "z a h:mm:ss",
2802
- medium: "a h:mm:ss",
2803
- short: "a h:mm"
2804
- };
2805
- const dateTimeFormats = {
2806
- full: "{{date}} {{time}}",
2807
- long: "{{date}} {{time}}",
2808
- medium: "{{date}} {{time}}",
2809
- short: "{{date}} {{time}}"
2810
- };
2811
- const formatLong = {
2812
- date: buildFormatLongFn({
2813
- formats: dateFormats,
2814
- defaultWidth: "full"
2815
- }),
2816
- time: buildFormatLongFn({
2817
- formats: timeFormats,
2818
- defaultWidth: "full"
2819
- }),
2820
- dateTime: buildFormatLongFn({
2821
- formats: dateTimeFormats,
2822
- defaultWidth: "full"
2823
- })
2824
- };
2825
- const formatRelativeLocale = {
2826
- lastWeek: "'上個'eeee p",
2827
- yesterday: "'昨天' p",
2828
- today: "'今天' p",
2829
- tomorrow: "'明天' p",
2830
- nextWeek: "'下個'eeee p",
2831
- other: "P"
2832
- };
2833
- const formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
2834
- const eraValues = {
2835
- narrow: ["前", "公元"],
2836
- abbreviated: ["前", "公元"],
2837
- wide: ["公元前", "公元"]
2838
- };
2839
- const quarterValues = {
2840
- narrow: ["1", "2", "3", "4"],
2841
- abbreviated: ["第一刻", "第二刻", "第三刻", "第四刻"],
2842
- wide: ["第一刻鐘", "第二刻鐘", "第三刻鐘", "第四刻鐘"]
2843
- };
2844
- const monthValues = {
2845
- narrow: [
2846
- "一",
2847
- "二",
2848
- "三",
2849
- "四",
2850
- "五",
2851
- "六",
2852
- "七",
2853
- "八",
2854
- "九",
2855
- "十",
2856
- "十一",
2857
- "十二"
2858
- ],
2859
- abbreviated: [
2860
- "1月",
2861
- "2月",
2862
- "3月",
2863
- "4月",
2864
- "5月",
2865
- "6月",
2866
- "7月",
2867
- "8月",
2868
- "9月",
2869
- "10月",
2870
- "11月",
2871
- "12月"
2872
- ],
2873
- wide: [
2874
- "一月",
2875
- "二月",
2876
- "三月",
2877
- "四月",
2878
- "五月",
2879
- "六月",
2880
- "七月",
2881
- "八月",
2882
- "九月",
2883
- "十月",
2884
- "十一月",
2885
- "十二月"
2886
- ]
2887
- };
2888
- const dayValues = {
2889
- narrow: ["日", "一", "二", "三", "四", "五", "六"],
2890
- short: ["日", "一", "二", "三", "四", "五", "六"],
2891
- abbreviated: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
2892
- wide: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
2893
- };
2894
- const dayPeriodValues = {
2895
- narrow: {
2896
- am: "上",
2897
- pm: "下",
2898
- midnight: "凌晨",
2899
- noon: "午",
2900
- morning: "早",
2901
- afternoon: "下午",
2902
- evening: "晚",
2903
- night: "夜"
2904
- },
2905
- abbreviated: {
2906
- am: "上午",
2907
- pm: "下午",
2908
- midnight: "凌晨",
2909
- noon: "中午",
2910
- morning: "早晨",
2911
- afternoon: "中午",
2912
- evening: "晚上",
2913
- night: "夜間"
2914
- },
2915
- wide: {
2916
- am: "上午",
2917
- pm: "下午",
2918
- midnight: "凌晨",
2919
- noon: "中午",
2920
- morning: "早晨",
2921
- afternoon: "中午",
2922
- evening: "晚上",
2923
- night: "夜間"
2924
- }
2925
- };
2926
- const formattingDayPeriodValues = {
2927
- narrow: {
2928
- am: "上",
2929
- pm: "下",
2930
- midnight: "凌晨",
2931
- noon: "午",
2932
- morning: "早",
2933
- afternoon: "下午",
2934
- evening: "晚",
2935
- night: "夜"
2936
- },
2937
- abbreviated: {
2938
- am: "上午",
2939
- pm: "下午",
2940
- midnight: "凌晨",
2941
- noon: "中午",
2942
- morning: "早晨",
2943
- afternoon: "中午",
2944
- evening: "晚上",
2945
- night: "夜間"
2946
- },
2947
- wide: {
2948
- am: "上午",
2949
- pm: "下午",
2950
- midnight: "凌晨",
2951
- noon: "中午",
2952
- morning: "早晨",
2953
- afternoon: "中午",
2954
- evening: "晚上",
2955
- night: "夜間"
2956
- }
2957
- };
2958
- const ordinalNumber = (dirtyNumber, options) => {
2959
- const number = Number(dirtyNumber);
2960
- switch (options == null ? void 0 : options.unit) {
2961
- case "date":
2962
- return number + "日";
2963
- case "hour":
2964
- return number + "時";
2965
- case "minute":
2966
- return number + "分";
2967
- case "second":
2968
- return number + "秒";
2969
- default:
2970
- return "第 " + number;
2971
- }
2972
- };
2973
- const localize = {
2974
- ordinalNumber,
2975
- era: buildLocalizeFn({
2976
- values: eraValues,
2977
- defaultWidth: "wide"
2978
- }),
2979
- quarter: buildLocalizeFn({
2980
- values: quarterValues,
2981
- defaultWidth: "wide",
2982
- argumentCallback: (quarter) => quarter - 1
2983
- }),
2984
- month: buildLocalizeFn({
2985
- values: monthValues,
2986
- defaultWidth: "wide"
2987
- }),
2988
- day: buildLocalizeFn({
2989
- values: dayValues,
2990
- defaultWidth: "wide"
2991
- }),
2992
- dayPeriod: buildLocalizeFn({
2993
- values: dayPeriodValues,
2994
- defaultWidth: "wide",
2995
- formattingValues: formattingDayPeriodValues,
2996
- defaultFormattingWidth: "wide"
2997
- })
2998
- };
2999
- const matchOrdinalNumberPattern = /^(第\s*)?\d+(日|時|分|秒)?/i;
1783
+ const matchOrdinalNumberPattern = /^(第\s*)?\d+(日|时|分|秒)?/i;
3000
1784
  const parseOrdinalNumberPattern = /\d+/i;
3001
1785
  const matchEraPatterns = {
3002
1786
  narrow: /^(前)/i,
@@ -3009,7 +1793,7 @@ const parseEraPatterns = {
3009
1793
  const matchQuarterPatterns = {
3010
1794
  narrow: /^[1234]/i,
3011
1795
  abbreviated: /^第[一二三四]刻/i,
3012
- wide: /^第[一二三四]刻鐘/i
1796
+ wide: /^第[一二三四]刻钟/i
3013
1797
  };
3014
1798
  const parseQuarterPatterns = {
3015
1799
  any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
@@ -3052,14 +1836,14 @@ const parseMonthPatterns = {
3052
1836
  const matchDayPatterns = {
3053
1837
  narrow: /^[一二三四五六日]/i,
3054
1838
  short: /^[一二三四五六日]/i,
3055
- abbreviated: /^週[一二三四五六日]/i,
1839
+ abbreviated: /^周[一二三四五六日]/i,
3056
1840
  wide: /^星期[一二三四五六日]/i
3057
1841
  };
3058
1842
  const parseDayPatterns = {
3059
1843
  any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i]
3060
1844
  };
3061
1845
  const matchDayPeriodPatterns = {
3062
- any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i
1846
+ any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
3063
1847
  };
3064
1848
  const parseDayPeriodPatterns = {
3065
1849
  any: {
@@ -3111,8 +1895,8 @@ const match = {
3111
1895
  defaultParseWidth: "any"
3112
1896
  })
3113
1897
  };
3114
- const zhTW = {
3115
- code: "zh-TW",
1898
+ const zhCN = {
1899
+ code: "zh-CN",
3116
1900
  formatDistance,
3117
1901
  formatLong,
3118
1902
  formatRelative,
@@ -3124,17 +1908,14 @@ const zhTW = {
3124
1908
  }
3125
1909
  };
3126
1910
  function getTimeStamp({ time, language = "en-US" }) {
1911
+ const { t } = useUIKit();
3127
1912
  const locales = {
3128
1913
  "zh-CN": zhCN,
3129
- "zh-TW": zhTW,
3130
- "en-US": enUS,
3131
- "ja-JP": ja,
3132
- "ko-KR": ko
1914
+ "en-US": enUS
3133
1915
  };
3134
1916
  const timeFormat = "HH:mm";
3135
1917
  const locale = locales[language] || locales["en-US"];
3136
- const { t } = useUIKit();
3137
- const yesterdayText = t("TUIChat.Yesterday", {
1918
+ const yesterdayText = t("MessageList.yesterday", {
3138
1919
  defaultValue: "Yesterday"
3139
1920
  });
3140
1921
  if (!time) {
@@ -3168,7 +1949,8 @@ function getTimeStamp({ time, language = "en-US" }) {
3168
1949
  });
3169
1950
  }
3170
1951
  function getTimeStampAuto(time) {
3171
- return getTimeStamp({ time, language: i18next.language });
1952
+ const { language } = useUIKit();
1953
+ return getTimeStamp({ time, language });
3172
1954
  }
3173
1955
  export {
3174
1956
  getTimeStamp,