tuikit-atomicx-vue3 0.1.1 → 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.
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-XRL7A5Gj.js +123 -0
- package/dist/{PopoverTrigger-ByOI-vdB.js → PopoverTrigger-BKOIHfdS.js} +1 -1
- package/dist/{PopperContent-BaiCn-CA.js → PopperContent-DtL7HVWz.js} +29 -21
- package/dist/baseComp/TuiSwitch.js +2 -2
- package/dist/baseComp/index.d.ts +0 -1
- package/dist/baseComp/index.js +1 -3
- package/dist/chat/index.d.ts +2230 -4090
- package/dist/chat/index.js +16 -8
- package/dist/components/Avatar/Avatar.js +35 -10
- package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/BarrageInput/BarrageInput.vue.d.ts +2 -2
- package/dist/components/BarrageInput/BarrageInputH5.js +30 -10
- package/dist/components/BarrageInput/BarrageInputH5.vue.d.ts +2 -2
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +1 -1
- package/dist/components/BarrageInput/TextEditor/index.js +13 -5
- package/dist/components/BarrageInput/constants.d.ts +3 -0
- package/dist/components/BarrageInput/constants.js +6 -0
- package/dist/components/BarrageInput/i18n/en-US/index.d.ts +2 -0
- package/dist/components/BarrageInput/i18n/en-US/index.js +3 -1
- package/dist/components/BarrageInput/i18n/zh-CN/index.d.ts +2 -0
- package/dist/components/BarrageInput/i18n/zh-CN/index.js +3 -1
- package/dist/components/BarrageInput/index.d.ts +18 -18
- package/dist/components/BarrageList/BarrageList.js +5 -6
- package/dist/components/BarrageList/BarrageListH5.js +5 -6
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +5 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +7 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +1 -1
- package/dist/components/ChatSetting/ChatSetting.js +8 -11
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +2 -1
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +2 -1
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +2 -2
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +116 -89
- package/dist/components/ChatSetting/i18n/index.d.ts +191 -1
- package/dist/components/ChatSetting/i18n/index.js +3 -4
- package/dist/components/ChatSetting/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +78 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue.d.ts +33 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +257 -0
- package/dist/components/ContactList/ContactInfo/ContactInfo.vue.d.ts +56 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +96 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue.d.ts +37 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +228 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue.d.ts +39 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +101 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue.d.ts +37 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +154 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue.d.ts +37 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +141 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue.d.ts +32 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +122 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue.d.ts +33 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.d.ts +1 -0
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +4 -0
- package/dist/components/ContactList/ContactInfo/index.d.ts +8 -0
- package/dist/components/ContactList/ContactInfo/index.js +18 -0
- package/dist/components/ContactList/ContactList.js +281 -0
- package/dist/components/ContactList/ContactList.vue.d.ts +41 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +52 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue.d.ts +25 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/ContactListItem.js +4 -0
- package/dist/components/ContactList/ContactListItem/ContactListItem.vue.d.ts +30 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +76 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue.d.ts +27 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +53 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.vue.d.ts +25 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/FriendItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +79 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue.d.ts +27 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +52 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.vue.d.ts +25 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/index.d.ts +1 -0
- package/dist/components/ContactList/ContactListItem/GroupItem/index.js +4 -0
- package/dist/components/ContactList/ContactListItem/index.d.ts +6 -0
- package/dist/components/ContactList/ContactListItem/index.js +95 -0
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +85 -0
- package/dist/components/ContactList/ContactSearch/ContactSearch.vue.d.ts +8 -0
- package/dist/components/ContactList/ContactSearch/index.d.ts +1 -0
- package/dist/components/ContactList/ContactSearch/index.js +4 -0
- package/dist/components/ContactList/constants/const.d.ts +3 -0
- package/dist/components/ContactList/constants/const.js +6 -0
- package/dist/components/ContactList/hooks/index.d.ts +1 -0
- package/dist/components/ContactList/hooks/index.js +4 -0
- package/dist/components/ContactList/hooks/useContactList.d.ts +9 -0
- package/dist/components/ContactList/hooks/useContactList.js +18 -0
- package/dist/components/ContactList/i18n/en-US.d.ts +77 -0
- package/dist/components/ContactList/i18n/en-US.js +80 -0
- package/dist/components/ContactList/i18n/index.d.ts +4 -0
- package/dist/components/ContactList/i18n/index.js +6 -0
- package/dist/components/ContactList/i18n/zh-CN.d.ts +77 -0
- package/dist/components/ContactList/i18n/zh-CN.js +80 -0
- package/dist/components/ContactList/index.d.ts +310 -0
- package/dist/components/ContactList/index.js +16 -0
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +31 -46
- package/dist/components/ConversationList/ConversationActions/ConversationActions.vue.d.ts +1 -10
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +160 -100
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.vue.d.ts +0 -3
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +79 -17
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue.d.ts +6 -12
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +78 -158
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue.d.ts +5 -4
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +38 -207
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue.d.ts +3 -9
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +35 -23
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue.d.ts +2 -11
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +1 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.d.ts +2 -7
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +6 -14
- package/dist/components/ConversationList/ConversationCreate/index.d.ts +0 -2
- package/dist/components/ConversationList/ConversationCreate/index.js +5 -9
- package/dist/components/ConversationList/ConversationList.js +51 -39
- package/dist/components/ConversationList/ConversationList.vue.d.ts +654 -1510
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +4 -4
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.vue.d.ts +1 -1
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +596 -1404
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +1 -1
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +13 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +146 -348
- package/dist/components/ConversationList/ConversationPreview/index.js +3 -3
- package/dist/components/ConversationList/ConversationPreview/utils.js +8 -8
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +5 -5
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +8 -8
- package/dist/components/ConversationList/hooks/useConversation.d.ts +6 -0
- package/dist/components/ConversationList/hooks/useConversation.js +20 -0
- package/dist/components/ConversationList/hooks/useConversationCreate.d.ts +5 -0
- package/dist/components/ConversationList/hooks/useConversationCreate.js +24 -0
- package/dist/components/ConversationList/i18n/en-US.d.ts +16 -0
- package/dist/components/ConversationList/i18n/en-US.js +25 -7
- package/dist/components/ConversationList/i18n/zh-CN.d.ts +16 -0
- package/dist/components/ConversationList/i18n/zh-CN.js +24 -6
- package/dist/components/ConversationList/index.d.ts +2096 -4595
- package/dist/components/{LiveStreamView → LiveCoreView}/DefaultStreamViewUI.js +1 -1
- package/dist/components/LiveCoreView/index.d.ts +4 -0
- package/dist/components/{LiveStreamView → LiveCoreView}/index.js +68 -74
- package/dist/components/LiveList/LiveList.js +71 -45
- package/dist/components/LiveList/LiveListH5.js +14 -15
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +1 -2
- package/dist/components/LiveScenePanel/icons/AddIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/CameraIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/CameraMirror.js +2 -2
- package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +2 -2
- package/dist/components/LiveScenePanel/icons/ImageIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/MoreIcon.js +2 -2
- package/dist/components/LiveScenePanel/icons/ScreenIcon.js +2 -2
- package/dist/components/MessageInput/AttachmentPicker/index.js +1 -1
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +1 -1
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +2 -2
- package/dist/components/MessageInput/SendButton/index.js +1 -1
- package/dist/components/MessageInput/TextEditor/index.js +6 -5
- package/dist/components/MessageInput/i18n/index.d.ts +24 -1
- package/dist/components/MessageInput/i18n/index.js +7 -8
- package/dist/components/MessageInput/index.d.ts +409 -6
- package/dist/components/MessageInput/index.js +23 -125
- package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +3 -3
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +3 -3
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +5 -5
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +34 -30
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -10
- package/dist/components/MessageList/MessageForward/MessageForward.js +4 -4
- package/dist/components/MessageList/MessageList.js +66 -60
- package/dist/components/MessageList/MessageList.vue.d.ts +3 -3
- package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +32 -0
- package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.vue.d.ts +6 -0
- package/dist/components/MessageList/ScrollToBottom/index.d.ts +3 -0
- package/dist/components/MessageList/ScrollToBottom/index.js +4 -0
- package/dist/components/MessageList/i18n/en-US.d.ts +5 -0
- package/dist/components/MessageList/i18n/en-US.js +6 -1
- package/dist/components/MessageList/i18n/index.d.ts +85 -1
- package/dist/components/MessageList/i18n/index.js +7 -8
- package/dist/components/MessageList/i18n/zh-CN.d.ts +5 -0
- package/dist/components/MessageList/i18n/zh-CN.js +6 -1
- package/dist/components/MessageList/index.js +4 -0
- package/dist/components/Search/Search.js +4 -4
- package/dist/components/Search/Search.vue.d.ts +4 -4
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +15 -9
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +12 -7
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +2 -2
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +10 -5
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +10 -10
- package/dist/components/Search/SearchBar/SearchBar.js +3 -2
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +1 -1
- package/dist/components/Search/SearchResults/SearchResults.js +82 -69
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +8 -8
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.d.ts +5 -6
- package/dist/components/Search/i18n/en-US/Search.js +9 -9
- package/dist/components/Search/i18n/zh-CN/Search.js +13 -13
- package/dist/components/Search/index.d.ts +6 -6
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +14 -10
- package/dist/components/StreamMixer/LocalMixer/index.js +81 -56
- package/dist/components/StreamMixer/icons/CameraMirror.js +2 -2
- package/dist/components/StreamMixer/icons/Delete.js +2 -2
- package/dist/components/StreamMixer/icons/Down.js +2 -2
- package/dist/components/StreamMixer/icons/Rotation.js +2 -2
- package/dist/components/StreamMixer/icons/Up.js +2 -2
- package/dist/components/StreamMixer/index.js +2 -2
- package/dist/components/StreamView/common/StreamCover/index.js +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeNode.js +2 -2
- package/dist/components/UserPicker/i18n/index.d.ts +15 -1
- package/dist/components/UserPicker/i18n/index.js +3 -4
- package/dist/components/UserPicker/index.d.ts +0 -1
- package/dist/components/UserPicker/index.js +6 -3
- package/dist/components/VideoSettingPanel/VideoPreview.js +3 -4
- package/dist/components/VideoSettingPanel/VideoProfile.js +3 -4
- package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +5 -0
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +8 -3
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +5 -0
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +8 -3
- package/dist/components/VideoSettingPanel/index.js +3 -3
- package/dist/hooks/useLongPress.d.ts +4 -4
- package/dist/hooks/useMessageActions.js +5 -5
- package/dist/hooks/useMouseHover.d.ts +7 -5
- package/dist/hooks/useMouseHover.js +3 -1
- package/dist/index.js +12 -6
- package/dist/rtc/index.d.ts +22 -20
- package/dist/rtc/index.js +6 -3
- package/dist/states/BarrageListState/BarrageListState.js +3 -2
- package/dist/states/CoHostState.d.ts +1 -1
- package/dist/states/CoHostState.js +59 -62
- package/dist/states/ContactListState/ContactListState.d.ts +16 -16
- package/dist/states/ContactListState/ContactListState.js +20 -20
- package/dist/states/ConversationListState/ConversationListState.d.ts +13 -12
- package/dist/states/ConversationListState/ConversationListState.js +19 -19
- package/dist/states/LiveSeatState/seatEventManager.js +3 -5
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +9 -0
- package/dist/states/LiveState/index.d.ts +4 -4
- package/dist/states/LiveState/index.js +4 -2
- package/dist/states/LoginState.js +1 -3
- package/dist/states/MessageInputState/MessageInputState.js +18 -18
- package/dist/states/SearchState.d.ts +2 -2
- package/dist/states/SearchState.js +124 -127
- package/dist/styles/index.css +1954 -1070
- package/dist/types/contact.d.ts +145 -9
- package/dist/types/conversation.d.ts +36 -28
- package/dist/types/conversation.js +22 -0
- package/dist/types/index.js +5 -3
- package/dist/types/live.d.ts +2 -3
- package/dist/types/types.d.ts +0 -8
- package/dist/types/types.js +0 -10
- package/dist/utils/time.d.ts +2 -2
- package/dist/utils/time.js +253 -1471
- package/package.json +23 -5
- package/src/baseComp/View/View.vue +1 -2
- package/src/baseComp/index.ts +1 -2
- package/src/chat/index.ts +11 -0
- package/src/components/Avatar/Avatar.vue +12 -11
- package/src/components/BarrageInput/BarrageInputH5.vue +36 -9
- package/src/components/BarrageInput/TextEditor/TextEditor.vue +13 -5
- package/src/components/BarrageInput/constants.ts +3 -0
- package/src/components/BarrageInput/i18n/en-US/index.ts +2 -0
- package/src/components/BarrageInput/i18n/zh-CN/index.ts +2 -0
- package/src/components/BarrageList/BarrageList.vue +2 -2
- package/src/components/BarrageList/BarrageListH5.vue +2 -2
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +0 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +5 -2
- package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +7 -3
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +3 -3
- package/src/components/ChatSetting/ChatSetting.vue +6 -10
- package/src/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.vue +1 -1
- package/src/components/ChatSetting/SettingItem/SettingItem.vue +40 -36
- package/src/components/ChatSetting/i18n/index.ts +3 -5
- package/src/components/ChatSetting/index.ts +5 -1
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.scss +50 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.vue +71 -0
- package/src/components/ContactList/ContactInfo/BlacklistInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.scss +33 -0
- package/src/components/ContactList/ContactInfo/ContactInfo.vue +256 -0
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.scss +82 -0
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.vue +88 -0
- package/src/components/ContactList/ContactInfo/FriendApplicationInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.scss +92 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/FriendInfo.vue +219 -0
- package/src/components/ContactList/ContactInfo/FriendInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.scss +82 -0
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.vue +99 -0
- package/src/components/ContactList/ContactInfo/GroupApplicationInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.scss +52 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +146 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.scss +111 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.vue +147 -0
- package/src/components/ContactList/ContactInfo/SearchGroupInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.scss +111 -0
- package/src/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.vue +128 -0
- package/src/components/ContactList/ContactInfo/SearchUserInfo/index.ts +1 -0
- package/src/components/ContactList/ContactInfo/index.ts +8 -0
- package/src/components/ContactList/ContactList.scss +124 -0
- package/src/components/ContactList/ContactList.vue +299 -0
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.scss +39 -0
- package/src/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.vue +47 -0
- package/src/components/ContactList/ContactListItem/BlacklistItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/ContactListItem.vue +98 -0
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.scss +58 -0
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.vue +70 -0
- package/src/components/ContactList/ContactListItem/FriendApplicationItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.scss +39 -0
- package/src/components/ContactList/ContactListItem/FriendItem/FriendItem.vue +47 -0
- package/src/components/ContactList/ContactListItem/FriendItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.scss +57 -0
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.vue +78 -0
- package/src/components/ContactList/ContactListItem/GroupApplicationItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.scss +39 -0
- package/src/components/ContactList/ContactListItem/GroupItem/GroupItem.vue +47 -0
- package/src/components/ContactList/ContactListItem/GroupItem/index.ts +1 -0
- package/src/components/ContactList/ContactListItem/index.ts +6 -0
- package/src/components/ContactList/ContactSearch/ContactSearch.scss +58 -0
- package/src/components/ContactList/ContactSearch/ContactSearch.vue +98 -0
- package/src/components/ContactList/ContactSearch/index.ts +1 -0
- package/src/components/ContactList/constants/const.ts +7 -0
- package/src/components/ContactList/hooks/index.ts +1 -0
- package/src/components/ContactList/hooks/useContactList.ts +21 -0
- package/src/components/ContactList/i18n/en-US.ts +77 -0
- package/src/components/ContactList/i18n/index.ts +4 -0
- package/src/components/ContactList/i18n/zh-CN.ts +77 -0
- package/src/components/ContactList/index.ts +18 -0
- package/src/components/ConversationList/ConversationActions/ConversationActions.scss +34 -35
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +15 -29
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.scss +11 -37
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +154 -69
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.scss +37 -1
- package/src/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.vue +70 -15
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.scss +19 -66
- package/src/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.vue +72 -139
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.scss +5 -129
- package/src/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.vue +42 -183
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.scss +14 -11
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.vue +23 -18
- package/src/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.ts +2 -8
- package/src/components/ConversationList/ConversationCreate/index.ts +0 -2
- package/src/components/ConversationList/ConversationList.scss +1 -0
- package/src/components/ConversationList/ConversationList.vue +44 -25
- package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +2 -5
- package/src/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.vue +2 -2
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.vue +1 -1
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue +6 -19
- package/src/components/ConversationList/ConversationPreview/utils.ts +11 -11
- package/src/components/ConversationList/hooks/useConversation.ts +21 -0
- package/src/components/ConversationList/hooks/useConversationCreate.ts +29 -0
- package/src/components/ConversationList/i18n/en-US.ts +26 -6
- package/src/components/ConversationList/i18n/zh-CN.ts +25 -5
- package/src/components/{LiveStreamView → LiveCoreView}/index.ts +4 -3
- package/src/components/{LiveStreamView → LiveCoreView}/index.vue +109 -88
- package/src/components/LiveList/LiveList.vue +94 -38
- package/src/components/LiveList/LiveListH5.vue +47 -23
- package/src/components/MessageInput/MessageInput.module.scss +1 -1
- package/src/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.vue +2 -2
- package/src/components/MessageInput/SendButton/SendButton.vue +1 -1
- package/src/components/MessageInput/TextEditor/Editor.scss +3 -2
- package/src/components/MessageInput/TextEditor/TextEditor.module.scss +1 -0
- package/src/components/MessageInput/TextEditor/TextEditor.vue +2 -0
- package/src/components/MessageInput/i18n/index.ts +1 -7
- package/src/components/MessageInput/index.ts +25 -8
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +4 -4
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +0 -1
- package/src/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +16 -17
- package/src/components/MessageList/MessageForward/MessageForward.vue +2 -2
- package/src/components/MessageList/MessageList.vue +21 -5
- package/src/components/MessageList/ScrollToBottom/ScrollToBottom.vue +50 -0
- package/src/components/MessageList/ScrollToBottom/index.ts +5 -0
- package/src/components/MessageList/i18n/en-US.ts +5 -0
- package/src/components/MessageList/i18n/index.ts +1 -5
- package/src/components/MessageList/i18n/zh-CN.ts +5 -0
- package/src/components/MessageList/index.ts +4 -1
- package/src/components/Search/Search.vue +0 -4
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.vue +125 -38
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.vue +24 -16
- package/src/components/Search/SearchAdvanced/SearchAdvanced.vue +9 -7
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.vue +4 -3
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +0 -1
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.vue +57 -23
- package/src/components/Search/SearchBar/SearchBar.scss +0 -2
- package/src/components/Search/SearchBar/SearchBar.vue +7 -5
- package/src/components/Search/SearchResults/EmptyResult/EmptyResult.vue +4 -2
- package/src/components/Search/SearchResults/SearchResults.scss +5 -11
- package/src/components/Search/SearchResults/SearchResults.vue +25 -29
- package/src/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.scss +1 -9
- package/src/components/Search/SearchResults/SearchResultsItem/utils/highlightText.ts +15 -16
- package/src/components/Search/i18n/en-US/Search.ts +9 -9
- package/src/components/Search/i18n/zh-CN/Search.ts +13 -13
- package/src/components/StreamMixer/LocalMixer/MixerControl.vue +20 -15
- package/src/components/StreamMixer/LocalMixer/index.vue +130 -57
- package/src/components/StreamMixer/index.vue +3 -3
- package/src/components/UserPicker/i18n/index.ts +1 -5
- package/src/components/UserPicker/index.ts +4 -3
- package/src/components/VideoSettingPanel/VideoPreview.vue +13 -8
- package/src/components/VideoSettingPanel/VideoProfile.vue +5 -5
- package/src/components/VideoSettingPanel/i18n/en-US/index.ts +8 -3
- package/src/components/VideoSettingPanel/i18n/zh-CN/index.ts +8 -3
- package/src/components/VideoSettingPanel/index.vue +15 -9
- package/src/hooks/useLongPress.ts +7 -18
- package/src/hooks/useMessageActions.ts +5 -5
- package/src/hooks/useMouseHover.ts +9 -7
- package/src/rtc/index.ts +6 -3
- package/src/types/contact.ts +175 -12
- package/src/types/conversation.ts +42 -32
- package/src/types/live.ts +3 -5
- package/src/types/types.ts +0 -28
- package/src/utils/time.ts +8 -10
- package/dist/baseComp/Popup/Popup.js +0 -132
- package/dist/baseComp/Popup/Popup.vue.d.ts +0 -54
- package/dist/baseComp/Popup/index.d.ts +0 -2
- package/dist/baseComp/Popup/index.js +0 -4
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.js +0 -65
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.vue.d.ts +0 -17
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.d.ts +0 -1
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.js +0 -4
- package/dist/components/ConversationList/ConversationCreate/hooks/useConversationCreate.d.ts +0 -9
- package/dist/components/ConversationList/ConversationCreate/hooks/useConversationCreate.js +0 -96
- package/dist/components/ConversationList/ConversationCreate/static/word.d.ts +0 -6
- package/dist/components/ConversationList/ConversationCreate/static/word.js +0 -4
- package/dist/components/LiveStreamView/index.d.ts +0 -4
- package/src/baseComp/Popup/Popup.vue +0 -156
- package/src/baseComp/Popup/index.ts +0 -2
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.scss +0 -36
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/ConversationCreateSelectView.vue +0 -44
- package/src/components/ConversationList/ConversationCreate/ConversationCreateSelectView/index.ts +0 -1
- package/src/components/ConversationList/ConversationCreate/hooks/useConversationCreate.ts +0 -132
- package/src/components/ConversationList/ConversationCreate/static/word.ts +0 -300
- /package/dist/components/{LiveStreamView → LiveCoreView}/DefaultStreamViewUI.vue.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.js +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/index.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/index.js +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.d.ts +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.js +0 -0
- /package/dist/components/{LiveStreamView → LiveCoreView}/index.vue.d.ts +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/DefaultStreamViewUI.vue +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/i18n/en-US/index.ts +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/i18n/index.ts +0 -0
- /package/src/components/{LiveStreamView → LiveCoreView}/i18n/zh-CN/index.ts +0 -0
package/dist/utils/time.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useUIKit
|
|
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$
|
|
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$
|
|
191
|
+
const formatDistance$1 = (token, count, options) => {
|
|
192
192
|
let result;
|
|
193
|
-
const tokenValue = formatDistanceLocale$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
235
|
+
const formatLong$1 = {
|
|
236
236
|
date: buildFormatLongFn({
|
|
237
|
-
formats: dateFormats$
|
|
237
|
+
formats: dateFormats$1,
|
|
238
238
|
defaultWidth: "full"
|
|
239
239
|
}),
|
|
240
240
|
time: buildFormatLongFn({
|
|
241
|
-
formats: timeFormats$
|
|
241
|
+
formats: timeFormats$1,
|
|
242
242
|
defaultWidth: "full"
|
|
243
243
|
}),
|
|
244
244
|
dateTime: buildFormatLongFn({
|
|
245
|
-
formats: dateTimeFormats$
|
|
245
|
+
formats: dateTimeFormats$1,
|
|
246
246
|
defaultWidth: "full"
|
|
247
247
|
})
|
|
248
248
|
};
|
|
249
|
-
const formatRelativeLocale$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
410
|
-
ordinalNumber: ordinalNumber$
|
|
409
|
+
const localize$1 = {
|
|
410
|
+
ordinalNumber: ordinalNumber$1,
|
|
411
411
|
era: buildLocalizeFn({
|
|
412
|
-
values: eraValues$
|
|
412
|
+
values: eraValues$1,
|
|
413
413
|
defaultWidth: "wide"
|
|
414
414
|
}),
|
|
415
415
|
quarter: buildLocalizeFn({
|
|
416
|
-
values: quarterValues$
|
|
416
|
+
values: quarterValues$1,
|
|
417
417
|
defaultWidth: "wide",
|
|
418
418
|
argumentCallback: (quarter) => quarter - 1
|
|
419
419
|
}),
|
|
420
420
|
month: buildLocalizeFn({
|
|
421
|
-
values: monthValues$
|
|
421
|
+
values: monthValues$1,
|
|
422
422
|
defaultWidth: "wide"
|
|
423
423
|
}),
|
|
424
424
|
day: buildLocalizeFn({
|
|
425
|
-
values: dayValues$
|
|
425
|
+
values: dayValues$1,
|
|
426
426
|
defaultWidth: "wide"
|
|
427
427
|
}),
|
|
428
428
|
dayPeriod: buildLocalizeFn({
|
|
429
|
-
values: dayPeriodValues$
|
|
429
|
+
values: dayPeriodValues$1,
|
|
430
430
|
defaultWidth: "wide",
|
|
431
|
-
formattingValues: formattingDayPeriodValues$
|
|
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$
|
|
489
|
-
const parseOrdinalNumberPattern$
|
|
490
|
-
const matchEraPatterns$
|
|
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$
|
|
495
|
+
const parseEraPatterns$1 = {
|
|
496
496
|
any: [/^b/i, /^(a|c)/i]
|
|
497
497
|
};
|
|
498
|
-
const matchQuarterPatterns$
|
|
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$
|
|
503
|
+
const parseQuarterPatterns$1 = {
|
|
504
504
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
505
505
|
};
|
|
506
|
-
const matchMonthPatterns$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
567
|
+
const match$1 = {
|
|
568
568
|
ordinalNumber: buildMatchPatternFn({
|
|
569
|
-
matchPattern: matchOrdinalNumberPattern$
|
|
570
|
-
parsePattern: parseOrdinalNumberPattern$
|
|
569
|
+
matchPattern: matchOrdinalNumberPattern$1,
|
|
570
|
+
parsePattern: parseOrdinalNumberPattern$1,
|
|
571
571
|
valueCallback: (value) => parseInt(value, 10)
|
|
572
572
|
}),
|
|
573
573
|
era: buildMatchFn({
|
|
574
|
-
matchPatterns: matchEraPatterns$
|
|
574
|
+
matchPatterns: matchEraPatterns$1,
|
|
575
575
|
defaultMatchWidth: "wide",
|
|
576
|
-
parsePatterns: parseEraPatterns$
|
|
576
|
+
parsePatterns: parseEraPatterns$1,
|
|
577
577
|
defaultParseWidth: "any"
|
|
578
578
|
}),
|
|
579
579
|
quarter: buildMatchFn({
|
|
580
|
-
matchPatterns: matchQuarterPatterns$
|
|
580
|
+
matchPatterns: matchQuarterPatterns$1,
|
|
581
581
|
defaultMatchWidth: "wide",
|
|
582
|
-
parsePatterns: parseQuarterPatterns$
|
|
582
|
+
parsePatterns: parseQuarterPatterns$1,
|
|
583
583
|
defaultParseWidth: "any",
|
|
584
584
|
valueCallback: (index) => index + 1
|
|
585
585
|
}),
|
|
586
586
|
month: buildMatchFn({
|
|
587
|
-
matchPatterns: matchMonthPatterns$
|
|
587
|
+
matchPatterns: matchMonthPatterns$1,
|
|
588
588
|
defaultMatchWidth: "wide",
|
|
589
|
-
parsePatterns: parseMonthPatterns$
|
|
589
|
+
parsePatterns: parseMonthPatterns$1,
|
|
590
590
|
defaultParseWidth: "any"
|
|
591
591
|
}),
|
|
592
592
|
day: buildMatchFn({
|
|
593
|
-
matchPatterns: matchDayPatterns$
|
|
593
|
+
matchPatterns: matchDayPatterns$1,
|
|
594
594
|
defaultMatchWidth: "wide",
|
|
595
|
-
parsePatterns: parseDayPatterns$
|
|
595
|
+
parsePatterns: parseDayPatterns$1,
|
|
596
596
|
defaultParseWidth: "any"
|
|
597
597
|
}),
|
|
598
598
|
dayPeriod: buildMatchFn({
|
|
599
|
-
matchPatterns: matchDayPeriodPatterns$
|
|
599
|
+
matchPatterns: matchDayPeriodPatterns$1,
|
|
600
600
|
defaultMatchWidth: "any",
|
|
601
|
-
parsePatterns: parseDayPeriodPatterns$
|
|
601
|
+
parsePatterns: parseDayPeriodPatterns$1,
|
|
602
602
|
defaultParseWidth: "any"
|
|
603
603
|
})
|
|
604
604
|
};
|
|
605
605
|
const enUS = {
|
|
606
606
|
code: "en-US",
|
|
607
|
-
formatDistance: formatDistance$
|
|
608
|
-
formatLong: formatLong$
|
|
609
|
-
formatRelative: formatRelative$
|
|
610
|
-
localize: localize$
|
|
611
|
-
match: match$
|
|
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
|
|
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: "
|
|
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: "
|
|
1514
|
-
other: "
|
|
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: "
|
|
1522
|
-
other: "
|
|
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: "
|
|
1530
|
-
other: "
|
|
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
|
|
1546
|
-
options = options || {};
|
|
1541
|
+
const formatDistance = (token, count, options) => {
|
|
1547
1542
|
let result;
|
|
1548
|
-
const tokenValue = formatDistanceLocale
|
|
1543
|
+
const tokenValue = formatDistanceLocale[token];
|
|
1549
1544
|
if (typeof tokenValue === "string") {
|
|
1550
1545
|
result = tokenValue;
|
|
1551
1546
|
} else if (count === 1) {
|
|
1552
|
-
|
|
1553
|
-
result = tokenValue.oneWithSuffix;
|
|
1554
|
-
} else {
|
|
1555
|
-
result = tokenValue.one;
|
|
1556
|
-
}
|
|
1547
|
+
result = tokenValue.one;
|
|
1557
1548
|
} else {
|
|
1558
|
-
|
|
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
|
|
1574
|
-
full: "y年M月d日EEEE",
|
|
1575
|
-
long: "y年M月d日",
|
|
1576
|
-
medium: "
|
|
1577
|
-
short: "
|
|
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
|
|
1580
|
-
full: "
|
|
1581
|
-
long: "
|
|
1582
|
-
medium: "
|
|
1583
|
-
short: "
|
|
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
|
|
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
|
|
1578
|
+
const formatLong = {
|
|
1592
1579
|
date: buildFormatLongFn({
|
|
1593
|
-
formats: dateFormats
|
|
1580
|
+
formats: dateFormats,
|
|
1594
1581
|
defaultWidth: "full"
|
|
1595
1582
|
}),
|
|
1596
1583
|
time: buildFormatLongFn({
|
|
1597
|
-
formats: timeFormats
|
|
1584
|
+
formats: timeFormats,
|
|
1598
1585
|
defaultWidth: "full"
|
|
1599
1586
|
}),
|
|
1600
1587
|
dateTime: buildFormatLongFn({
|
|
1601
|
-
formats: dateTimeFormats
|
|
1588
|
+
formats: dateTimeFormats,
|
|
1602
1589
|
defaultWidth: "full"
|
|
1603
1590
|
})
|
|
1604
1591
|
};
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
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
|
|
1614
|
-
|
|
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
|
|
1617
|
-
narrow: ["
|
|
1618
|
-
abbreviated: ["
|
|
1619
|
-
wide: ["
|
|
1618
|
+
const eraValues = {
|
|
1619
|
+
narrow: ["前", "公元"],
|
|
1620
|
+
abbreviated: ["前", "公元"],
|
|
1621
|
+
wide: ["公元前", "公元"]
|
|
1620
1622
|
};
|
|
1621
|
-
const quarterValues
|
|
1623
|
+
const quarterValues = {
|
|
1622
1624
|
narrow: ["1", "2", "3", "4"],
|
|
1623
|
-
abbreviated: ["
|
|
1624
|
-
wide: ["
|
|
1625
|
+
abbreviated: ["第一季", "第二季", "第三季", "第四季"],
|
|
1626
|
+
wide: ["第一季度", "第二季度", "第三季度", "第四季度"]
|
|
1625
1627
|
};
|
|
1626
|
-
const monthValues
|
|
1627
|
-
narrow: [
|
|
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
|
-
"
|
|
1644
|
-
"
|
|
1645
|
-
"
|
|
1646
|
-
"
|
|
1647
|
-
"
|
|
1648
|
-
"
|
|
1649
|
-
"
|
|
1650
|
-
"
|
|
1651
|
-
"
|
|
1652
|
-
"
|
|
1653
|
-
"
|
|
1654
|
-
"
|
|
1658
|
+
"一月",
|
|
1659
|
+
"二月",
|
|
1660
|
+
"三月",
|
|
1661
|
+
"四月",
|
|
1662
|
+
"五月",
|
|
1663
|
+
"六月",
|
|
1664
|
+
"七月",
|
|
1665
|
+
"八月",
|
|
1666
|
+
"九月",
|
|
1667
|
+
"十月",
|
|
1668
|
+
"十一月",
|
|
1669
|
+
"十二月"
|
|
1655
1670
|
]
|
|
1656
1671
|
};
|
|
1657
|
-
const dayValues
|
|
1658
|
-
narrow: ["日", "
|
|
1659
|
-
short: ["日", "
|
|
1660
|
-
abbreviated: ["
|
|
1661
|
-
wide: ["
|
|
1672
|
+
const dayValues = {
|
|
1673
|
+
narrow: ["日", "一", "二", "三", "四", "五", "六"],
|
|
1674
|
+
short: ["日", "一", "二", "三", "四", "五", "六"],
|
|
1675
|
+
abbreviated: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
|
|
1676
|
+
wide: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
|
|
1662
1677
|
};
|
|
1663
|
-
const dayPeriodValues
|
|
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
|
|
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
|
|
1742
|
+
const ordinalNumber = (dirtyNumber, options) => {
|
|
1728
1743
|
const number = Number(dirtyNumber);
|
|
1729
|
-
|
|
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
|
|
1746
|
+
return number.toString() + "日";
|
|
1741
1747
|
case "hour":
|
|
1742
|
-
return
|
|
1748
|
+
return number.toString() + "时";
|
|
1743
1749
|
case "minute":
|
|
1744
|
-
return
|
|
1750
|
+
return number.toString() + "分";
|
|
1745
1751
|
case "second":
|
|
1746
|
-
return
|
|
1752
|
+
return number.toString() + "秒";
|
|
1747
1753
|
default:
|
|
1748
|
-
return
|
|
1754
|
+
return "第 " + number.toString();
|
|
1749
1755
|
}
|
|
1750
1756
|
};
|
|
1751
|
-
const localize
|
|
1752
|
-
ordinalNumber
|
|
1757
|
+
const localize = {
|
|
1758
|
+
ordinalNumber,
|
|
1753
1759
|
era: buildLocalizeFn({
|
|
1754
|
-
values: eraValues
|
|
1760
|
+
values: eraValues,
|
|
1755
1761
|
defaultWidth: "wide"
|
|
1756
1762
|
}),
|
|
1757
1763
|
quarter: buildLocalizeFn({
|
|
1758
|
-
values: quarterValues
|
|
1764
|
+
values: quarterValues,
|
|
1759
1765
|
defaultWidth: "wide",
|
|
1760
|
-
argumentCallback: (quarter) =>
|
|
1766
|
+
argumentCallback: (quarter) => quarter - 1
|
|
1761
1767
|
}),
|
|
1762
1768
|
month: buildLocalizeFn({
|
|
1763
|
-
values: monthValues
|
|
1769
|
+
values: monthValues,
|
|
1764
1770
|
defaultWidth: "wide"
|
|
1765
1771
|
}),
|
|
1766
1772
|
day: buildLocalizeFn({
|
|
1767
|
-
values: dayValues
|
|
1773
|
+
values: dayValues,
|
|
1768
1774
|
defaultWidth: "wide"
|
|
1769
1775
|
}),
|
|
1770
1776
|
dayPeriod: buildLocalizeFn({
|
|
1771
|
-
values: dayPeriodValues
|
|
1777
|
+
values: dayPeriodValues,
|
|
1772
1778
|
defaultWidth: "wide",
|
|
1773
|
-
formattingValues: formattingDayPeriodValues
|
|
1779
|
+
formattingValues: formattingDayPeriodValues,
|
|
1774
1780
|
defaultFormattingWidth: "wide"
|
|
1775
1781
|
})
|
|
1776
1782
|
};
|
|
1777
|
-
const matchOrdinalNumberPattern
|
|
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: /^第[一二三四]
|
|
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:
|
|
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: /^(上午?|下午?|午夜|[中正]
|
|
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
|
|
3115
|
-
code: "zh-
|
|
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
|
-
"
|
|
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
|
|
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
|
-
|
|
1952
|
+
const { language } = useUIKit();
|
|
1953
|
+
return getTimeStamp({ time, language });
|
|
3172
1954
|
}
|
|
3173
1955
|
export {
|
|
3174
1956
|
getTimeStamp,
|