tuikit-atomicx-vue3 3.3.4 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +33 -0
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +89 -0
- package/dist/DialogPortal-CvJcEAsn.js +417 -0
- package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-C8oUv-KF.js +36 -0
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D1G-LitO.js +116 -0
- package/dist/PopoverTrigger-L8abAry7.js +607 -0
- package/dist/PopperContent-XdhqL8Y2.js +1603 -0
- package/dist/Teleport-CSEuZbpM.js +913 -0
- package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-DlROoquV.js +89 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/baseComp/ActionSheep.js +41 -51
- package/dist/baseComp/AudioIcon.js +27 -37
- package/dist/baseComp/Avatar.js +16 -28
- package/dist/baseComp/Dialog/DialogH5.js +56 -82
- package/dist/baseComp/Dialog/DialogPC.js +76 -118
- package/dist/baseComp/Dialog/index.js +2 -2
- package/dist/baseComp/IconButton.js +43 -56
- package/dist/baseComp/Input/InputH5.js +85 -128
- package/dist/baseComp/Input/InputPC.js +85 -128
- package/dist/baseComp/Input/InputWX.js +88 -131
- package/dist/baseComp/Input/index.js +5 -5
- package/dist/baseComp/MessageBox/index.js +120 -150
- package/dist/baseComp/Modal/Modal.js +38 -45
- package/dist/baseComp/Modal/index.js +3 -3
- package/dist/baseComp/ObserverView/ObserverView.js +50 -86
- package/dist/baseComp/ObserverView/index.js +2 -2
- package/dist/baseComp/Option/OptionH5.js +29 -40
- package/dist/baseComp/Option/OptionPC.js +34 -46
- package/dist/baseComp/Option/OptionWX.js +30 -41
- package/dist/baseComp/Option/index.js +2 -2
- package/dist/baseComp/Select/SelectH5.js +54 -86
- package/dist/baseComp/Select/SelectPC.js +78 -120
- package/dist/baseComp/Select/SelectWX.js +48 -79
- package/dist/baseComp/Select/index.js +2 -2
- package/dist/baseComp/SvgIcon.js +17 -22
- package/dist/baseComp/TuiSwitch.js +15 -19
- package/dist/baseComp/View/View.js +2 -2
- package/dist/baseComp/View/index.js +19 -24
- package/dist/baseComp/index.js +2 -2
- package/dist/baseComp/useZIndex.js +7 -12
- package/dist/chat/index.d.ts +1421 -990
- package/dist/chat/index.js +57 -82
- package/dist/chat/server.js +60 -84
- package/dist/components/AudioSetting/AudioMediaControl.js +52 -78
- package/dist/components/AudioSetting/AudioRequestDialog.js +2 -2
- package/dist/components/AudioSetting/AudioSettingTab.js +72 -102
- package/dist/components/AudioSetting/MicrophoneSelect.js +45 -57
- package/dist/components/AudioSetting/SpeakerSelect.js +45 -57
- package/dist/components/AudioSetting/index.js +3 -3
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -2
- package/dist/components/AudioSettingPanel/i18n/index.js +4 -4
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -2
- package/dist/components/AudioSettingPanel/index.js +102 -147
- package/dist/components/Avatar/Avatar.js +88 -140
- package/dist/components/Avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/Avatar/AvatarBadge/AvatarBadge.js +25 -31
- package/dist/components/Avatar/AvatarBadge/index.js +2 -2
- package/dist/components/Avatar/constants/avatar.js +7 -12
- package/dist/components/Avatar/index.js +9 -9
- package/dist/components/BarrageInput/BarrageInput.js +50 -67
- package/dist/components/BarrageInput/BarrageInputH5.js +80 -111
- package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +84 -97
- package/dist/components/BarrageInput/EmojiPicker/index.js +2 -2
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +34 -62
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +79 -90
- package/dist/components/BarrageInput/TextEditor/TextEditor.js +2 -2
- package/dist/components/BarrageInput/TextEditor/index.js +81 -125
- package/dist/components/BarrageInput/constants.js +2 -2
- package/dist/components/BarrageInput/i18n/en-US/index.js +2 -2
- package/dist/components/BarrageInput/i18n/index.js +4 -4
- package/dist/components/BarrageInput/i18n/zh-CN/index.js +2 -2
- package/dist/components/BarrageInput/index.js +11 -11
- package/dist/components/BarrageList/BarrageList.js +97 -173
- package/dist/components/BarrageList/BarrageListH5.js +96 -171
- package/dist/components/BarrageList/ClickAction/UserActionMenu.js +64 -94
- package/dist/components/BarrageList/Message/CustomMessage/CustomMessage.js +2 -2
- package/dist/components/BarrageList/Message/CustomMessage/index.js +5 -7
- package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +16 -21
- package/dist/components/BarrageList/Message/FaceMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
- package/dist/components/BarrageList/Message/GroupTipMessage/index.js +13 -18
- package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +56 -80
- package/dist/components/BarrageList/Message/ImageMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +5 -5
- package/dist/components/BarrageList/Message/MergerMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/Message.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +28 -39
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/index.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +93 -101
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +26 -32
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +19 -22
- package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +2 -2
- package/dist/components/BarrageList/Message/MessageLayout/index.js +2 -2
- package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +31 -39
- package/dist/components/BarrageList/Message/RecalledMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +67 -96
- package/dist/components/BarrageList/Message/TextMessage/index.js +2 -2
- package/dist/components/BarrageList/Message/index.js +11 -15
- package/dist/components/BarrageList/MessageForward/ForwardListItem.js +34 -43
- package/dist/components/BarrageList/MessageForward/MessageForward.js +158 -210
- package/dist/components/BarrageList/MessageForward/index.js +2 -2
- package/dist/components/BarrageList/MessageListContext.js +9 -10
- package/dist/components/BarrageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
- package/dist/components/BarrageList/MessageTimeDivider/index.js +2 -2
- package/dist/components/BarrageList/i18n/en-US/index.js +3 -3
- package/dist/components/BarrageList/i18n/index.js +4 -4
- package/dist/components/BarrageList/i18n/zh-CN/index.js +3 -3
- package/dist/components/BarrageList/index.js +10 -10
- package/dist/components/CameraButton/index.js +34 -44
- package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +92 -108
- package/dist/components/ChatSetting/C2CChatSetting/index.js +3 -3
- package/dist/components/ChatSetting/ChatSetting.js +17 -23
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +133 -163
- package/dist/components/ChatSetting/GroupChatSetting/GroupActions/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +179 -245
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/GroupInfo.js +124 -181
- package/dist/components/ChatSetting/GroupChatSetting/GroupInfo/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.js +195 -259
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagement/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/GroupManagementEntry.js +23 -32
- package/dist/components/ChatSetting/GroupChatSetting/GroupManagementEntry/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/GroupMembers.js +149 -212
- package/dist/components/ChatSetting/GroupChatSetting/GroupMembers/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/PersonalSettings.js +35 -40
- package/dist/components/ChatSetting/GroupChatSetting/PersonalSettings/index.js +2 -2
- package/dist/components/ChatSetting/GroupChatSetting/index.js +2 -2
- package/dist/components/ChatSetting/SettingItem/SettingItem.js +201 -247
- package/dist/components/ChatSetting/SettingItem/index.js +2 -2
- package/dist/components/ChatSetting/i18n/en-US.js +2 -2
- package/dist/components/ChatSetting/i18n/index.js +6 -6
- package/dist/components/ChatSetting/i18n/zh-CN.js +2 -2
- package/dist/components/ChatSetting/index.js +7 -7
- package/dist/components/CoGuestPanel/CoGuestPanel.js +139 -180
- package/dist/components/CoGuestPanel/constants.js +2 -2
- package/dist/components/CoGuestPanel/i18n/en-US/index.js +9 -9
- package/dist/components/CoGuestPanel/i18n/index.js +4 -4
- package/dist/components/CoGuestPanel/i18n/zh-CN/index.js +9 -9
- package/dist/components/CoGuestPanel/index.js +8 -8
- package/dist/components/CoHostPanel/BattlePanel.js +196 -0
- package/dist/components/CoHostPanel/BattlePanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/CoHostPanel.js +109 -0
- package/dist/components/CoHostPanel/CoHostPanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/ConfigSettingPanel.js +110 -0
- package/dist/components/CoHostPanel/ConfigSettingPanel.vue.d.ts +33 -0
- package/dist/components/CoHostPanel/ConnectionPanel.js +273 -0
- package/dist/components/CoHostPanel/ConnectionPanel.vue.d.ts +19 -0
- package/dist/components/CoHostPanel/RecommendHostList.js +113 -0
- package/dist/components/CoHostPanel/RecommendHostList.vue.d.ts +13 -0
- package/dist/components/CoHostPanel/UserList.js +34 -0
- package/dist/components/CoHostPanel/UserList.vue.d.ts +28 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +74 -0
- package/dist/components/CoHostPanel/i18n/en-US/index.js +81 -0
- package/dist/components/CoHostPanel/i18n/index.d.ts +4 -0
- package/dist/components/CoHostPanel/i18n/index.js +6 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +75 -0
- package/dist/components/CoHostPanel/i18n/zh-CN/index.js +82 -0
- package/dist/components/CoHostPanel/index.d.ts +16 -0
- package/dist/components/CoHostPanel/index.js +10 -0
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/BlacklistInfo.js +36 -51
- package/dist/components/ContactList/ContactInfo/BlacklistInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/ContactInfo.js +141 -196
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/FriendApplicationInfo.js +39 -61
- package/dist/components/ContactList/ContactInfo/FriendApplicationInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/FriendInfo/FriendInfo.js +109 -160
- package/dist/components/ContactList/ContactInfo/FriendInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/GroupApplicationInfo.js +58 -86
- package/dist/components/ContactList/ContactInfo/GroupApplicationInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/GroupInfo/GroupInfo.js +99 -133
- package/dist/components/ContactList/ContactInfo/GroupInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/SearchGroupInfo.js +86 -118
- package/dist/components/ContactList/ContactInfo/SearchGroupInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/SearchUserInfo.js +72 -101
- package/dist/components/ContactList/ContactInfo/SearchUserInfo/index.js +2 -2
- package/dist/components/ContactList/ContactInfo/index.js +16 -16
- package/dist/components/ContactList/ContactList.js +164 -235
- package/dist/components/ContactList/ContactListItem/BlacklistItem/BlacklistItem.js +29 -38
- package/dist/components/ContactList/ContactListItem/BlacklistItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/ContactListItem.js +2 -2
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/FriendApplicationItem.js +46 -61
- package/dist/components/ContactList/ContactListItem/FriendApplicationItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/FriendItem/FriendItem.js +24 -31
- package/dist/components/ContactList/ContactListItem/FriendItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/GroupApplicationItem.js +45 -64
- package/dist/components/ContactList/ContactListItem/GroupApplicationItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/GroupItem/GroupItem.js +29 -38
- package/dist/components/ContactList/ContactListItem/GroupItem/index.js +2 -2
- package/dist/components/ContactList/ContactListItem/index.js +57 -66
- package/dist/components/ContactList/ContactSearch/ContactSearch.js +53 -73
- package/dist/components/ContactList/ContactSearch/index.js +2 -2
- package/dist/components/ContactList/constants/const.js +3 -4
- package/dist/components/ContactList/hooks/index.js +2 -2
- package/dist/components/ContactList/hooks/useContactList.js +11 -15
- package/dist/components/ContactList/i18n/en-US.js +21 -21
- package/dist/components/ContactList/i18n/index.js +4 -4
- package/dist/components/ContactList/i18n/zh-CN.js +21 -21
- package/dist/components/ContactList/index.js +12 -14
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +107 -150
- package/dist/components/ConversationList/ConversationActions/index.js +2 -2
- package/dist/components/ConversationList/ConversationCreate/ConversationCreate.js +116 -193
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateButton/ConversationCreateButton.js +65 -80
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateGroupDetail/ConversationCreateGroupDetail.js +108 -126
- package/dist/components/ConversationList/ConversationCreate/ConversationCreateUserSelectList/ConversationCreateUserSelectList.js +40 -52
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/ConversationGroupTypeInfo.js +61 -79
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/index.js +4 -4
- package/dist/components/ConversationList/ConversationCreate/ConversationGroupTypeInfo/type.js +8 -8
- package/dist/components/ConversationList/ConversationCreate/index.js +12 -12
- package/dist/components/ConversationList/ConversationList.js +112 -154
- package/dist/components/ConversationList/ConversationList.vue.d.ts +72 -72
- package/dist/components/ConversationList/ConversationListContent/ConversationListContent.js +27 -33
- package/dist/components/ConversationList/ConversationListContent/index.js +2 -2
- package/dist/components/ConversationList/ConversationListHeader/ConversationListHeader.js +30 -39
- package/dist/components/ConversationList/ConversationListHeader/index.js +2 -2
- package/dist/components/ConversationList/ConversationPlaceHolder/ConversationPlaceHolder.js +65 -81
- package/dist/components/ConversationList/ConversationPlaceHolder/index.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.js +2 -2
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +72 -72
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewAbstract.js +40 -59
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +29 -47
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTitle.js +25 -42
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.js +84 -111
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +18 -18
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUnread.js +36 -51
- package/dist/components/ConversationList/ConversationPreview/index.js +55 -63
- package/dist/components/ConversationList/ConversationPreview/utils.js +36 -42
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.js +114 -160
- package/dist/components/ConversationList/ConversationSearch/index.js +2 -2
- package/dist/components/ConversationList/hooks/useConversation.js +12 -18
- package/dist/components/ConversationList/hooks/useConversationCreate.js +17 -18
- package/dist/components/ConversationList/i18n/en-US.js +32 -32
- package/dist/components/ConversationList/i18n/index.js +4 -4
- package/dist/components/ConversationList/i18n/zh-CN.js +32 -32
- package/dist/components/ConversationList/index.d.ts +989 -989
- package/dist/components/ConversationList/index.js +24 -32
- package/dist/components/LiveAudienceList/LiveAudienceList.js +85 -120
- package/dist/components/LiveAudienceList/LiveAudienceListH5.js +50 -72
- package/dist/components/LiveAudienceList/UserActionMenu.js +82 -124
- package/dist/components/LiveAudienceList/i18n/en-US/index.js +2 -2
- package/dist/components/LiveAudienceList/i18n/index.js +4 -4
- package/dist/components/LiveAudienceList/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveAudienceList/index.js +10 -10
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleDecorate.js +152 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleDecorate.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.js +66 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.vue.d.ts +35 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.js +54 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.js +35 -0
- package/dist/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +35 -0
- package/dist/components/LiveCoreView/DefaultStreamViewUI.js +101 -154
- package/dist/components/LiveCoreView/PlayerControl/AudioControl.js +113 -236
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.js +78 -0
- package/dist/components/LiveCoreView/PlayerControl/MultiResolution.vue.d.ts +2 -0
- package/dist/components/LiveCoreView/PlayerControl/PlayerControl.js +150 -261
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.d.ts +11 -0
- package/dist/components/LiveCoreView/PlayerControl/PlayerControlState.js +234 -379
- package/dist/components/LiveCoreView/PlayerControl/index.js +6 -6
- package/dist/components/LiveCoreView/PlayerControl/utils/deviceDetection.js +37 -121
- package/dist/components/LiveCoreView/PlayerControl/utils/domHelpers.js +32 -53
- package/dist/components/LiveCoreView/PlayerControl/utils/fullscreenManager.js +107 -177
- package/dist/components/LiveCoreView/i18n/en-US/index.d.ts +6 -0
- package/dist/components/LiveCoreView/i18n/en-US/index.js +14 -8
- package/dist/components/LiveCoreView/i18n/index.js +4 -4
- package/dist/components/LiveCoreView/i18n/zh-CN/index.d.ts +6 -0
- package/dist/components/LiveCoreView/i18n/zh-CN/index.js +14 -8
- package/dist/components/LiveCoreView/index.js +176 -301
- package/dist/components/LiveList/LiveList.js +109 -165
- package/dist/components/LiveList/LiveList.vue.d.ts +15 -3
- package/dist/components/LiveList/LiveListH5.js +109 -169
- package/dist/components/LiveList/i18n/en-US/index.d.ts +1 -1
- package/dist/components/LiveList/i18n/en-US/index.js +4 -4
- package/dist/components/LiveList/i18n/index.js +4 -4
- package/dist/components/LiveList/i18n/zh-CN/index.d.ts +1 -1
- package/dist/components/LiveList/i18n/zh-CN/index.js +4 -4
- package/dist/components/LiveList/index.d.ts +17 -1
- package/dist/components/LiveList/index.js +10 -10
- package/dist/components/LiveList/pullToRefresh.js +88 -163
- package/dist/components/LiveMonitorView/LiveMonitorView.js +72 -110
- package/dist/components/LiveMonitorView/i18n/en-US/index.js +2 -2
- package/dist/components/LiveMonitorView/i18n/index.js +4 -4
- package/dist/components/LiveMonitorView/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveMonitorView/index.js +7 -7
- package/dist/components/LiveScenePanel/CameraSettingDialog.js +126 -188
- package/dist/components/LiveScenePanel/LiveSceneSelect.js +79 -106
- package/dist/components/LiveScenePanel/MaterialDialog.js +78 -98
- package/dist/components/LiveScenePanel/MaterialItem.js +105 -142
- package/dist/components/LiveScenePanel/MaterialRenameDialog.js +2 -2
- package/dist/components/LiveScenePanel/i18n/en-US/index.js +2 -2
- package/dist/components/LiveScenePanel/i18n/index.js +4 -4
- package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +2 -2
- package/dist/components/LiveScenePanel/icons/AddIcon.js +10 -11
- package/dist/components/LiveScenePanel/icons/CameraIcon.js +9 -10
- package/dist/components/LiveScenePanel/icons/CameraMirror.js +13 -14
- package/dist/components/LiveScenePanel/icons/CameraUnmirror.js +11 -12
- package/dist/components/LiveScenePanel/icons/ImageIcon.js +8 -9
- package/dist/components/LiveScenePanel/icons/MoreIcon.js +13 -14
- package/dist/components/LiveScenePanel/icons/ScreenIcon.js +8 -9
- package/dist/components/LiveScenePanel/index.js +142 -190
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.js +2 -2
- package/dist/components/MessageInput/AttachmentPicker/AttachmentPicker.vue.d.ts +10 -1
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/FilePicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/ImagePicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.js +63 -2
- package/dist/components/MessageInput/AttachmentPicker/VideoPicker.vue.d.ts +14 -13
- package/dist/components/MessageInput/AttachmentPicker/index.js +70 -72
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +155 -0
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.vue.d.ts +45 -0
- package/dist/components/MessageInput/AudioCallPicker/index.d.ts +3 -0
- package/dist/components/MessageInput/AudioCallPicker/index.js +4 -0
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +108 -96
- package/dist/components/MessageInput/EmojiPicker/EmojiPicker.vue.d.ts +34 -6
- package/dist/components/MessageInput/EmojiPicker/index.js +2 -2
- package/dist/components/MessageInput/MessageInput.js +2 -2
- package/dist/components/MessageInput/QuotedMessagePreview/QuotedMessagePreview.js +2 -2
- package/dist/components/MessageInput/QuotedMessagePreview/index.js +60 -74
- package/dist/components/MessageInput/SendButton/SendButton.js +2 -2
- package/dist/components/MessageInput/SendButton/index.js +20 -25
- package/dist/components/MessageInput/TextEditor/EditorCore.js +72 -79
- package/dist/components/MessageInput/TextEditor/TextEditor.js +2 -2
- package/dist/components/MessageInput/TextEditor/index.js +60 -95
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +158 -0
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.vue.d.ts +45 -0
- package/dist/components/MessageInput/VideoCallPicker/index.d.ts +3 -0
- package/dist/components/MessageInput/VideoCallPicker/index.js +4 -0
- package/dist/components/MessageInput/i18n/en-US.d.ts +4 -0
- package/dist/components/MessageInput/i18n/en-US.js +7 -3
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/index.js +6 -6
- package/dist/components/MessageInput/i18n/zh-CN.js +2 -2
- package/dist/components/MessageInput/index.d.ts +462 -191
- package/dist/components/MessageInput/index.js +23 -25
- package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +50 -65
- package/dist/components/MessageList/Message/AudioMessage/PlayButton.js +31 -37
- package/dist/components/MessageList/Message/AudioMessage/WaveForm.js +37 -52
- package/dist/components/MessageList/Message/AudioMessage/index.js +2 -2
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +60 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue.d.ts +16 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.d.ts +3 -0
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/index.js +4 -0
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +49 -2
- package/dist/components/MessageList/Message/CustomMessage/CustomMessage.vue.d.ts +15 -1
- package/dist/components/MessageList/Message/CustomMessage/index.js +2 -10
- package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +16 -20
- package/dist/components/MessageList/Message/FaceMessage/index.js +2 -2
- package/dist/components/MessageList/Message/FileMessage/FileMessage.js +57 -70
- package/dist/components/MessageList/Message/FileMessage/index.js +2 -2
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.js +2 -2
- package/dist/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -23
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.d.ts +1 -1
- package/dist/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.js +41 -59
- package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +106 -169
- package/dist/components/MessageList/Message/ImageMessage/index.js +2 -2
- package/dist/components/MessageList/Message/LocationMessage/LocationMessage.js +7 -7
- package/dist/components/MessageList/Message/LocationMessage/index.js +2 -2
- package/dist/components/MessageList/Message/MergerMessage/MergerMessage.js +7 -7
- package/dist/components/MessageList/Message/MergerMessage/index.js +2 -2
- package/dist/components/MessageList/Message/Message.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +800 -1074
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +36 -44
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageBubble/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +116 -123
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageMeta.js +47 -73
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +24 -27
- package/dist/components/MessageList/Message/MessageLayout/MessageMeta/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/index.js +2 -2
- package/dist/components/MessageList/Message/MessageLayout/useMessageLayoutClasses.js +23 -28
- package/dist/components/MessageList/Message/RecalledMessage/RecalledMessage.js +39 -48
- package/dist/components/MessageList/Message/RecalledMessage/index.js +2 -2
- package/dist/components/MessageList/Message/TextMessage/TextMessage.js +80 -102
- package/dist/components/MessageList/Message/TextMessage/index.js +2 -2
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +68 -92
- package/dist/components/MessageList/Message/VideoMessage/index.js +2 -2
- package/dist/components/MessageList/Message/index.js +18 -20
- package/dist/components/MessageList/MessageForward/ForwardListItem.js +46 -53
- package/dist/components/MessageList/MessageForward/MessageForward.js +102 -124
- package/dist/components/MessageList/MessageForward/index.js +2 -2
- package/dist/components/MessageList/MessageList.js +129 -204
- package/dist/components/MessageList/MessageListContext.js +9 -10
- package/dist/components/MessageList/MessageTimeDivider/MessageTimeDivider.js +20 -28
- package/dist/components/MessageList/MessageTimeDivider/index.js +2 -2
- package/dist/components/MessageList/ReadReceiptInfo/ReadReceiptInfo.js +294 -379
- package/dist/components/MessageList/ReadReceiptInfo/index.js +2 -2
- package/dist/components/MessageList/ScrollToBottom/ScrollToBottom.js +20 -25
- package/dist/components/MessageList/ScrollToBottom/index.js +2 -2
- package/dist/components/MessageList/i18n/en-US.d.ts +20 -1
- package/dist/components/MessageList/i18n/en-US.js +21 -2
- package/dist/components/MessageList/i18n/index.d.ts +134 -92
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +20 -1
- package/dist/components/MessageList/i18n/zh-CN.js +21 -2
- package/dist/components/MessageList/index.js +9 -10
- package/dist/components/MicButton/AudioIcon.js +27 -37
- package/dist/components/MicButton/index.js +37 -52
- package/dist/components/Search/Search.js +117 -156
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +378 -505
- package/dist/components/Search/SearchAdvanced/DateRangePicker/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +147 -211
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +46 -60
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +39 -51
- package/dist/components/Search/SearchAdvanced/SearchTab/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +53 -82
- package/dist/components/Search/SearchAdvanced/Slider/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +247 -317
- package/dist/components/Search/SearchAdvanced/UserAdvanced/index.js +2 -2
- package/dist/components/Search/SearchAdvanced/index.js +12 -12
- package/dist/components/Search/SearchBar/SearchBar.js +98 -122
- package/dist/components/Search/SearchBar/index.js +2 -2
- package/dist/components/Search/SearchResults/EmptyResult/EmptyResult.js +26 -37
- package/dist/components/Search/SearchResults/EmptyResult/index.js +2 -2
- package/dist/components/Search/SearchResults/Loading/Loading.js +13 -19
- package/dist/components/Search/SearchResults/Loading/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResults.js +233 -339
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/Conversation.js +61 -83
- package/dist/components/Search/SearchResults/SearchResultsItem/Conversation/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/Group.js +40 -52
- package/dist/components/Search/SearchResults/SearchResultsItem/Group/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/Message.js +134 -181
- package/dist/components/Search/SearchResults/SearchResultsItem/Message/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/SearchResultsItem.js +40 -46
- package/dist/components/Search/SearchResults/SearchResultsItem/User/User.js +56 -75
- package/dist/components/Search/SearchResults/SearchResultsItem/User/index.js +2 -2
- package/dist/components/Search/SearchResults/SearchResultsItem/index.js +11 -11
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/highlightText.js +17 -36
- package/dist/components/Search/SearchResults/SearchResultsItem/utils/index.js +2 -2
- package/dist/components/Search/SearchResults/index.js +16 -16
- package/dist/components/Search/i18n/en-US/DateRangePicker.js +3 -3
- package/dist/components/Search/i18n/en-US/Search.js +3 -3
- package/dist/components/Search/i18n/en-US/index.js +7 -7
- package/dist/components/Search/i18n/index.js +4 -4
- package/dist/components/Search/i18n/zh-CN/DateRangePicker.js +3 -3
- package/dist/components/Search/i18n/zh-CN/Search.js +3 -3
- package/dist/components/Search/i18n/zh-CN/index.js +7 -7
- package/dist/components/Search/index.js +20 -26
- package/dist/components/StreamMixer/LocalMixer/MixerControl.js +68 -100
- package/dist/components/StreamMixer/LocalMixer/index.js +103 -171
- package/dist/components/StreamMixer/i18n/en-US/index.js +2 -2
- package/dist/components/StreamMixer/i18n/index.js +4 -4
- package/dist/components/StreamMixer/i18n/zh-CN/index.js +2 -2
- package/dist/components/StreamMixer/icons/CameraMirror.js +13 -14
- package/dist/components/StreamMixer/icons/Delete.js +13 -14
- package/dist/components/StreamMixer/icons/Down.js +10 -11
- package/dist/components/StreamMixer/icons/Rotation.js +11 -12
- package/dist/components/StreamMixer/icons/Up.js +10 -11
- package/dist/components/StreamMixer/index.js +19 -21
- package/dist/components/StreamView/Layout/CustomLayout.js +132 -209
- package/dist/components/StreamView/Layout/FloatLayout.js +136 -199
- package/dist/components/StreamView/Layout/GridLayout.js +117 -197
- package/dist/components/StreamView/Layout/MeetingLayout.js +129 -231
- package/dist/components/StreamView/Layout/MixLayout.js +70 -98
- package/dist/components/StreamView/common/ArrowStroke.js +26 -29
- package/dist/components/StreamView/common/LocalScreenView/index.js +82 -92
- package/dist/components/StreamView/common/StreamCover/index.js +33 -62
- package/dist/components/StreamView/common/StreamList/index.js +103 -163
- package/dist/components/StreamView/common/StreamPlay/index.js +58 -98
- package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.js +58 -90
- package/dist/components/StreamView/common/StreamRegion/index.js +2 -2
- package/dist/components/StreamView/index.js +64 -66
- package/dist/components/StreamView/manager/mediaManager.js +125 -236
- package/dist/components/UserList/AllUserActions/index.js +2 -2
- package/dist/components/UserList/AllUserActions/indexH5.js +59 -69
- package/dist/components/UserList/AllUserActions/indexPC.js +61 -73
- package/dist/components/UserList/AllUserActions/useIndexHooks.js +32 -39
- package/dist/components/UserList/UserItem/UserAction/index.js +2 -2
- package/dist/components/UserList/UserItem/UserAction/indexH5.js +47 -61
- package/dist/components/UserList/UserItem/UserAction/indexPC.js +86 -130
- package/dist/components/UserList/UserItem/UserInfo/index.js +67 -117
- package/dist/components/UserList/UserItem/UserInvite/index.js +18 -21
- package/dist/components/UserList/UserItem/index.js +2 -2
- package/dist/components/UserList/UserItem/indexH5.js +42 -54
- package/dist/components/UserList/UserItem/indexPC.js +32 -37
- package/dist/components/UserList/UserListContent/index.js +30 -44
- package/dist/components/UserList/UserListSearch/index.js +20 -26
- package/dist/components/UserList/index.js +50 -63
- package/dist/components/UserPicker/UserPicker.js +110 -148
- package/dist/components/UserPicker/components/ListMode/ListMode.js +70 -96
- package/dist/components/UserPicker/components/ListMode/index.js +2 -2
- package/dist/components/UserPicker/components/SearchBar/SearchBar.js +43 -58
- package/dist/components/UserPicker/components/SearchBar/index.js +2 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +69 -94
- package/dist/components/UserPicker/components/SelectedPanel/index.js +2 -2
- package/dist/components/UserPicker/components/TreeMode/TreeMode.js +33 -42
- package/dist/components/UserPicker/components/TreeMode/TreeNode.js +81 -106
- package/dist/components/UserPicker/components/TreeMode/index.js +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -80
- package/dist/components/UserPicker/hooks/useSelection.js +155 -313
- package/dist/components/UserPicker/hooks/useTreeState.js +17 -37
- package/dist/components/UserPicker/i18n/en-US.js +2 -2
- package/dist/components/UserPicker/i18n/index.js +6 -6
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -2
- package/dist/components/UserPicker/index.js +7 -7
- package/dist/components/VideoSetting/CameraSelect.js +46 -58
- package/dist/components/VideoSetting/VideoMediaControl.js +45 -65
- package/dist/components/VideoSetting/VideoPreview.js +31 -40
- package/dist/components/VideoSetting/VideoProfile.js +38 -46
- package/dist/components/VideoSetting/VideoRequestDialog.js +2 -2
- package/dist/components/VideoSetting/VideoSettingTab.js +43 -55
- package/dist/components/VideoSetting/index.js +3 -3
- package/dist/components/VideoSettingPanel/CameraSelect.js +45 -57
- package/dist/components/VideoSettingPanel/VideoPreview.js +30 -39
- package/dist/components/VideoSettingPanel/VideoProfile.js +36 -44
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +5 -5
- package/dist/components/VideoSettingPanel/i18n/index.js +4 -4
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +5 -5
- package/dist/components/VideoSettingPanel/index.js +48 -63
- package/dist/constants/emoji.js +3 -4
- package/dist/directives/vClickOutside.js +9 -23
- package/dist/directives/vDblTouch.js +26 -51
- package/dist/directives/vTap.js +37 -68
- package/dist/directives/vTouchScale.js +83 -155
- package/dist/handler/index.js +4 -4
- package/dist/handler/translator.js +65 -97
- package/dist/handler/voiceConverter.js +21 -30
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/useAudioControl.js +44 -128
- package/dist/hooks/useLongPress.js +41 -75
- package/dist/hooks/useMessageActions.d.ts +1 -1
- package/dist/hooks/useMessageActions.js +46 -57
- package/dist/hooks/useMouseHover.js +16 -26
- package/dist/hooks/useReadReceipt/useReadReceipt.js +66 -114
- package/dist/hooks/useRoomActions/index.js +11 -14
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +39 -44
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +41 -48
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +38 -44
- package/dist/hooks/useRoomEngine.js +14 -17
- package/dist/hooks/useScroll.js +52 -89
- package/dist/hooks/useUserActions/index.js +81 -117
- package/dist/hooks/useUserActions/useAdminAction.js +29 -35
- package/dist/hooks/useUserActions/useAudioAction.js +36 -40
- package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardDialog.js +59 -69
- package/dist/hooks/useUserActions/useChangeNameCardAction/changeNameCardInput.js +40 -49
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.js +43 -51
- package/dist/hooks/useUserActions/useChatAction.js +23 -25
- package/dist/hooks/useUserActions/useKickUserAction.js +27 -32
- package/dist/hooks/useUserActions/useMemberInviteAction.js +24 -40
- package/dist/hooks/useUserActions/useSeatAction.js +96 -108
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +40 -47
- package/dist/hooks/useUserActions/useVideoAction.js +35 -38
- package/dist/hooks/useZIndex.js +7 -12
- package/dist/i18n/index.js +4 -4
- package/dist/index-CeQ4nl87.js +44 -0
- package/dist/index-D-KJvDvy.js +5125 -0
- package/dist/index-D88ja_7_.js +12047 -0
- package/dist/index-DPczIrgX.js +42 -0
- package/dist/index-DTq2ybsB.js +33 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +178 -159
- package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +32 -0
- package/dist/locales/en-US.js +31 -31
- package/dist/locales/index.js +29 -34
- package/dist/locales/zh-CN.js +31 -31
- package/dist/rtc/index.d.ts +34 -2
- package/dist/rtc/index.js +63 -86
- package/dist/rtc/server.js +62 -85
- package/dist/states/BarrageListState/BarrageListState.js +98 -183
- package/dist/states/BarrageListState/index.js +2 -2
- package/dist/states/BattleState.d.ts +46 -0
- package/dist/states/BattleState.js +117 -0
- package/dist/states/C2CSettingState/C2CSettingState.js +52 -92
- package/dist/states/C2CSettingState/index.js +2 -2
- package/dist/states/CoGuestState.d.ts +1 -1
- package/dist/states/CoGuestState.js +191 -291
- package/dist/states/CoHostState/CoHostState.d.ts +30 -0
- package/dist/states/CoHostState/CoHostState.js +209 -0
- package/dist/states/CoHostState/index.d.ts +1 -0
- package/dist/states/CoHostState/index.js +4 -0
- package/dist/states/ContactListState/ContactListState.js +175 -271
- package/dist/states/ContactListState/index.js +2 -2
- package/dist/states/ConversationListState/ConversationListState.js +61 -112
- package/dist/states/ConversationListState/index.js +2 -2
- package/dist/states/DeviceState.js +240 -389
- package/dist/states/GroupSettingState/GroupSettingState.js +220 -378
- package/dist/states/GroupSettingState/index.js +7 -7
- package/dist/states/GroupSettingState/permissions.js +240 -250
- package/dist/states/GroupSettingState/types.js +5 -41
- package/dist/states/LiveAudienceState.js +100 -132
- package/dist/states/LiveMonitorState/api/http.js +1245 -1910
- package/dist/states/LiveMonitorState/index.js +92 -148
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +54 -106
- package/dist/states/LiveMonitorState/player/base/basePlayer.js +111 -169
- package/dist/states/LiveMonitorState/player/index.js +10 -10
- package/dist/states/LiveMonitorState/player/manager/playerManager.js +27 -33
- package/dist/states/LiveMonitorState/player/types/index.js +8 -8
- package/dist/states/LiveMonitorState/player/types/player.js +3 -13
- package/dist/states/LiveMonitorState/player/types/trtc.js +6 -20
- package/dist/states/LiveMonitorState/utils/index.js +17 -22
- package/dist/states/LiveSeatState/index.js +16 -16
- package/dist/states/LiveSeatState/seatEventManager.js +54 -75
- package/dist/states/LiveSeatState/seatManager.js +29 -36
- package/dist/states/LiveSeatState/store.js +18 -25
- package/dist/states/LiveSeatState/usePlayStream/MixStreamPlayer.js +43 -65
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +55 -83
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +59 -97
- package/dist/states/LiveSeatState/usePlayStream/index.js +44 -96
- package/dist/states/LiveSeatState/usePlayStream/useStreamPostion.js +43 -55
- package/dist/states/LiveState/index.js +190 -275
- package/dist/states/LoginState.js +48 -62
- package/dist/states/MessageActionState/MessageActionState.d.ts +6 -6
- package/dist/states/MessageActionState/MessageActionState.js +45 -56
- package/dist/states/MessageActionState/index.js +2 -2
- package/dist/states/MessageInputState/MessageInputState.js +90 -139
- package/dist/states/MessageInputState/index.js +4 -4
- package/dist/states/MessageInputState/type.js +2 -10
- package/dist/states/MessageInputState/utils.js +20 -21
- package/dist/states/MessageListState/MessageListState.js +65 -89
- package/dist/states/MessageListState/index.js +2 -2
- package/dist/states/RoomState.js +223 -332
- package/dist/states/SearchState.d.ts +2 -2
- package/dist/states/SearchState.js +229 -356
- package/dist/states/SeatStore.js +140 -213
- package/dist/states/UserState/index.js +31 -51
- package/dist/states/UserState/store.js +95 -147
- package/dist/states/UserState/userEventManager.js +85 -134
- package/dist/states/UserState/userManager.js +184 -232
- package/dist/states/VideoMixerState.js +181 -228
- package/dist/statistical/const.js +2 -6
- package/dist/statistical/index.js +4 -4
- package/dist/statistical/statistical.js +12 -12
- package/dist/styles/index.css +1 -13145
- package/dist/types/battle.d.ts +11 -0
- package/dist/types/battle.js +1 -0
- package/dist/types/call.d.ts +55 -0
- package/dist/types/call.js +4 -0
- package/dist/types/chatSetting.js +4 -4
- package/dist/types/coGuest.js +2 -8
- package/dist/types/coHost.d.ts +44 -4
- package/dist/types/coHost.js +4 -8
- package/dist/types/contact.js +3 -17
- package/dist/types/conversation.js +6 -36
- package/dist/types/device.d.ts +4 -0
- package/dist/types/device.js +8 -45
- package/dist/types/engine.d.ts +23 -7
- package/dist/types/engine.js +5 -23
- package/dist/types/index.d.ts +9 -6
- package/dist/types/index.js +92 -84
- package/dist/types/live.js +4 -21
- package/dist/types/message.js +4 -29
- package/dist/types/monitor.js +2 -6
- package/dist/types/room.js +3 -16
- package/dist/types/search.js +9 -15
- package/dist/types/seat.d.ts +4 -4
- package/dist/types/stream.js +3 -14
- package/dist/types/types.js +32 -329
- package/dist/types/user.d.ts +0 -3
- package/dist/types/user.js +8 -65
- package/dist/useId-CtirfF0W.js +12 -0
- package/dist/utils/call.d.ts +6 -2
- package/dist/utils/call.js +126 -11
- package/dist/utils/copyText.js +20 -33
- package/dist/utils/documentLink.js +2 -2
- package/dist/utils/domOperation.js +99 -122
- package/dist/utils/downFile.js +11 -19
- package/dist/utils/emoji.js +24 -31
- package/dist/utils/enableSampleTaskStatus.js +5 -8
- package/dist/utils/env.js +8 -13
- package/dist/utils/environment.js +14 -18
- package/dist/utils/index.js +36 -36
- package/dist/utils/json.js +34 -58
- package/dist/utils/lodash.js +63 -109
- package/dist/utils/riseInput.js +19 -36
- package/dist/utils/time.js +640 -934
- package/dist/utils/type-check.js +21 -46
- package/dist/utils/utils.js +131 -235
- package/dist/utils-DaB7eSu5.js +48 -0
- package/package.json +5 -4
- package/src/chat/index.ts +18 -0
- package/src/components/BarrageInput/TextEditor/Editor.scss +2 -2
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
- package/src/components/ChatSetting/ChatSetting.vue +3 -3
- package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +3 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +1 -0
- package/src/components/ChatSetting/GroupChatSetting/GroupManagement/GroupManagement.vue +1 -0
- package/src/components/CoGuestPanel/CoGuestPanel.vue +2 -1
- package/src/components/CoHostPanel/BattlePanel.vue +271 -0
- package/src/components/CoHostPanel/CoHostPanel.vue +218 -0
- package/src/components/CoHostPanel/ConfigSettingPanel.vue +264 -0
- package/src/components/CoHostPanel/ConnectionPanel.vue +549 -0
- package/src/components/CoHostPanel/RecommendHostList.vue +306 -0
- package/src/components/CoHostPanel/UserList.vue +93 -0
- package/src/components/CoHostPanel/i18n/en-US/index.ts +78 -0
- package/src/components/CoHostPanel/i18n/index.ts +4 -0
- package/src/components/CoHostPanel/i18n/zh-CN/index.ts +79 -0
- package/src/components/CoHostPanel/index.ts +7 -0
- package/src/components/ContactList/ContactInfo/GroupInfo/GroupInfo.vue +1 -0
- package/src/components/ConversationList/ConversationCreate/ConversationCreate.vue +1 -0
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +1 -1
- package/src/components/ConversationList/ConversationSearch/ConversationSearch.vue +1 -0
- package/src/components/LiveCoreView/CoreViewDecorate/BattleDecorate.vue +420 -0
- package/src/components/LiveCoreView/CoreViewDecorate/BattleUserDecorate.vue +141 -0
- package/src/components/LiveCoreView/CoreViewDecorate/CoHostDecorate.vue +116 -0
- package/src/components/LiveCoreView/CoreViewDecorate/LiveCoreDecorate.vue +70 -0
- package/src/components/LiveCoreView/PlayerControl/MultiResolution.vue +130 -0
- package/src/components/LiveCoreView/PlayerControl/PlayerControl.vue +10 -8
- package/src/components/LiveCoreView/PlayerControl/PlayerControlState.ts +117 -1
- package/src/components/LiveCoreView/assets/img/defeat.png +0 -0
- package/src/components/LiveCoreView/assets/img/draw.png +0 -0
- package/src/components/LiveCoreView/assets/img/victory.png +0 -0
- package/src/components/LiveCoreView/assets/svg/BattleOrdinaryBadge.svg +20 -0
- package/src/components/LiveCoreView/assets/svg/BattleTopBadge.svg +16 -0
- package/src/components/LiveCoreView/assets/svg/blueBkg.svg +9 -0
- package/src/components/LiveCoreView/assets/svg/redBkg.svg +9 -0
- package/src/components/LiveCoreView/assets/svg/s.svg +17 -0
- package/src/components/LiveCoreView/assets/svg/v.svg +17 -0
- package/src/components/LiveCoreView/i18n/en-US/index.ts +6 -0
- package/src/components/LiveCoreView/i18n/zh-CN/index.ts +6 -0
- package/src/components/LiveCoreView/index.vue +4 -1
- package/src/components/LiveList/LiveList.vue +61 -106
- package/src/components/LiveList/LiveListH5.vue +1 -1
- package/src/components/LiveList/i18n/en-US/index.ts +1 -1
- package/src/components/LiveList/i18n/zh-CN/index.ts +1 -1
- package/src/components/MessageInput/AttachmentPicker/AttachmentPicker.vue +10 -8
- package/src/components/MessageInput/AttachmentPicker/FilePicker.vue +59 -31
- package/src/components/MessageInput/AttachmentPicker/ImagePicker.vue +58 -31
- package/src/components/MessageInput/AttachmentPicker/VideoPicker.vue +58 -31
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +240 -0
- package/src/components/MessageInput/AudioCallPicker/index.ts +3 -0
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.vue +107 -18
- package/src/components/MessageInput/MessageInput.module.scss +1 -1
- package/src/components/MessageInput/MessageInput.vue +6 -2
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +246 -0
- package/src/components/MessageInput/VideoCallPicker/index.ts +3 -0
- package/src/components/MessageInput/i18n/en-US.ts +4 -0
- package/src/components/MessageInput/index.ts +10 -4
- package/src/components/MessageInput/types.d.ts +3 -1
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +67 -0
- package/src/components/MessageList/Message/CustomMessage/CallMessage/index.ts +3 -0
- package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +59 -2
- package/src/components/MessageList/Message/CustomMessage/index.ts +1 -1
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +9 -10
- package/src/components/MessageList/Message/GroupTipMessage/resolveGroupTipMessage.ts +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +30 -18
- package/src/components/MessageList/i18n/en-US.ts +24 -1
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +24 -1
- package/src/components/MessageList/index.ts +2 -2
- package/src/components/UserPicker/UserPicker.vue +0 -2
- package/src/hooks/index.ts +1 -2
- package/src/hooks/useMessageActions.ts +3 -3
- package/src/index.ts +2 -1
- package/src/rtc/index.ts +5 -0
- package/src/types/battle.ts +12 -0
- package/src/types/call.ts +62 -0
- package/src/types/coHost.ts +46 -4
- package/src/types/device.ts +5 -0
- package/src/types/engine.ts +45 -21
- package/src/types/index.ts +12 -6
- package/src/types/seat.ts +5 -5
- package/src/types/user.ts +0 -4
- package/src/utils/call.ts +233 -5
- package/src/utils/time.ts +1 -1
- package/dist/AttachmentPicker.module-BesmtGyl.js +0 -11
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-BmX-qsat.js +0 -108
- package/dist/DialogPortal-DWeT-J6v.js +0 -496
- package/dist/FilePicker.vue_vue_type_script_setup_true_lang-CdJ4DUzE.js +0 -76
- package/dist/ImagePicker.vue_vue_type_script_setup_true_lang-CbNUofpK.js +0 -76
- package/dist/MaterialRenameDialog.vue_vue_type_script_setup_true_lang-CVh4Regz.js +0 -43
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-wUJPjWbx.js +0 -128
- package/dist/PopoverTrigger-BKOIHfdS.js +0 -679
- package/dist/PopperContent-DtL7HVWz.js +0 -2227
- package/dist/Teleport-CMvGsENT.js +0 -1365
- package/dist/VideoPicker.vue_vue_type_script_setup_true_lang-CmxjbNDJ.js +0 -76
- package/dist/VideoRequestDialog.vue_vue_type_script_setup_true_lang-CnE-LwNh.js +0 -108
- package/dist/_commonjsHelpers-CUmg6egw.js +0 -6
- package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
- package/dist/index-BF6QB9jF.js +0 -63
- package/dist/index-BPFJrNlA.js +0 -15915
- package/dist/index-CX1Zs9En.js +0 -44
- package/dist/index-DRcLhqhU.js +0 -38
- package/dist/index-v15JHz0-.js +0 -7655
- package/dist/index.vue_vue_type_script_setup_true_lang-EcKm3pYY.js +0 -36
- package/dist/states/CoHostState.d.ts +0 -22
- package/dist/states/CoHostState.js +0 -178
- package/dist/useId-CsgLY8y3.js +0 -13
- package/dist/utils-KP1QpeUS.js +0 -59
- package/src/components/MessageInput/EmojiPicker/EmojiPicker.module.scss +0 -28
|
@@ -1,410 +1,246 @@
|
|
|
1
|
-
function
|
|
2
|
-
return function
|
|
3
|
-
return
|
|
1
|
+
function We(e, t) {
|
|
2
|
+
return function() {
|
|
3
|
+
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString } = Object.prototype
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null));
|
|
13
|
-
const kindOfTest = (type) => {
|
|
14
|
-
type = type.toLowerCase();
|
|
15
|
-
return (thing) => kindOf(thing) === type;
|
|
16
|
-
};
|
|
17
|
-
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
18
|
-
const { isArray } = Array;
|
|
19
|
-
const isUndefined = typeOfTest("undefined");
|
|
20
|
-
function isBuffer(val) {
|
|
21
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
6
|
+
const { toString: yt } = Object.prototype, { getPrototypeOf: we } = Object, { iterator: re, toStringTag: Ke } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
|
|
7
|
+
const n = yt.call(t);
|
|
8
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => se(t) === e), oe = (e) => (t) => typeof t === e, { isArray: M } = Array, H = oe("undefined");
|
|
10
|
+
function V(e) {
|
|
11
|
+
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
22
12
|
}
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
result = ArrayBuffer.isView(val);
|
|
28
|
-
} else {
|
|
29
|
-
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
30
|
-
}
|
|
31
|
-
return result;
|
|
13
|
+
const ve = P("ArrayBuffer");
|
|
14
|
+
function bt(e) {
|
|
15
|
+
let t;
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ve(e.buffer), t;
|
|
32
17
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
}
|
|
42
|
-
const prototype2 = getPrototypeOf(val);
|
|
43
|
-
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
|
|
44
|
-
};
|
|
45
|
-
const isEmptyObject = (val) => {
|
|
46
|
-
if (!isObject(val) || isBuffer(val)) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
18
|
+
const wt = oe("string"), T = oe("function"), Xe = oe("number"), W = (e) => e !== null && typeof e == "object", Et = (e) => e === !0 || e === !1, Y = (e) => {
|
|
19
|
+
if (se(e) !== "object")
|
|
20
|
+
return !1;
|
|
21
|
+
const t = we(e);
|
|
22
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ke in e) && !(re in e);
|
|
23
|
+
}, gt = (e) => {
|
|
24
|
+
if (!W(e) || V(e))
|
|
25
|
+
return !1;
|
|
49
26
|
try {
|
|
50
|
-
return Object.keys(
|
|
51
|
-
} catch
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
let kind;
|
|
62
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
63
|
-
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
64
|
-
};
|
|
65
|
-
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
66
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
67
|
-
const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
68
|
-
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
69
|
-
if (obj === null || typeof obj === "undefined") {
|
|
27
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
28
|
+
} catch {
|
|
29
|
+
return !1;
|
|
30
|
+
}
|
|
31
|
+
}, Rt = P("Date"), St = P("File"), Ot = P("Blob"), Tt = P("FileList"), At = (e) => W(e) && T(e.pipe), xt = (e) => {
|
|
32
|
+
let t;
|
|
33
|
+
return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = se(e)) === "formdata" || // detect form-data instance
|
|
34
|
+
t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
|
|
35
|
+
}, Ct = P("URLSearchParams"), [Nt, Pt, _t, Ft] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Lt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
+
function K(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
37
|
+
if (e === null || typeof e > "u")
|
|
70
38
|
return;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (isArray(obj)) {
|
|
78
|
-
for (i = 0, l = obj.length; i < l; i++) {
|
|
79
|
-
fn.call(null, obj[i], i, obj);
|
|
80
|
-
}
|
|
81
|
-
} else {
|
|
82
|
-
if (isBuffer(obj)) {
|
|
39
|
+
let r, s;
|
|
40
|
+
if (typeof e != "object" && (e = [e]), M(e))
|
|
41
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
42
|
+
t.call(null, e[r], r, e);
|
|
43
|
+
else {
|
|
44
|
+
if (V(e))
|
|
83
45
|
return;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
for (i = 0; i < len; i++) {
|
|
89
|
-
key = keys[i];
|
|
90
|
-
fn.call(null, obj[key], key, obj);
|
|
91
|
-
}
|
|
46
|
+
const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
|
|
47
|
+
let c;
|
|
48
|
+
for (r = 0; r < o; r++)
|
|
49
|
+
c = i[r], t.call(null, e[c], c, e);
|
|
92
50
|
}
|
|
93
51
|
}
|
|
94
|
-
function
|
|
95
|
-
if (
|
|
52
|
+
function Ge(e, t) {
|
|
53
|
+
if (V(e))
|
|
96
54
|
return null;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
_key = keys[i];
|
|
104
|
-
if (key === _key.toLowerCase()) {
|
|
105
|
-
return _key;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
55
|
+
t = t.toLowerCase();
|
|
56
|
+
const n = Object.keys(e);
|
|
57
|
+
let r = n.length, s;
|
|
58
|
+
for (; r-- > 0; )
|
|
59
|
+
if (s = n[r], t === s.toLowerCase())
|
|
60
|
+
return s;
|
|
108
61
|
return null;
|
|
109
62
|
}
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
function merge() {
|
|
116
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
117
|
-
const result = {};
|
|
118
|
-
const assignValue = (val, key) => {
|
|
119
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
120
|
-
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
121
|
-
result[targetKey] = merge(result[targetKey], val);
|
|
122
|
-
} else if (isPlainObject(val)) {
|
|
123
|
-
result[targetKey] = merge({}, val);
|
|
124
|
-
} else if (isArray(val)) {
|
|
125
|
-
result[targetKey] = val.slice();
|
|
126
|
-
} else {
|
|
127
|
-
result[targetKey] = val;
|
|
128
|
-
}
|
|
63
|
+
const k = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qe = (e) => !H(e) && e !== k;
|
|
64
|
+
function pe() {
|
|
65
|
+
const { caseless: e, skipUndefined: t } = Qe(this) && this || {}, n = {}, r = (s, i) => {
|
|
66
|
+
const o = e && Ge(n, i) || i;
|
|
67
|
+
Y(n[o]) && Y(s) ? n[o] = pe(n[o], s) : Y(s) ? n[o] = pe({}, s) : M(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
|
|
129
68
|
};
|
|
130
|
-
for (let
|
|
131
|
-
arguments[
|
|
132
|
-
|
|
133
|
-
return result;
|
|
69
|
+
for (let s = 0, i = arguments.length; s < i; s++)
|
|
70
|
+
arguments[s] && K(arguments[s], r);
|
|
71
|
+
return n;
|
|
134
72
|
}
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
};
|
|
145
|
-
const stripBOM = (content) => {
|
|
146
|
-
if (content.charCodeAt(0) === 65279) {
|
|
147
|
-
content = content.slice(1);
|
|
148
|
-
}
|
|
149
|
-
return content;
|
|
150
|
-
};
|
|
151
|
-
const inherits = (constructor, superConstructor, props, descriptors2) => {
|
|
152
|
-
constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
|
|
153
|
-
constructor.prototype.constructor = constructor;
|
|
154
|
-
Object.defineProperty(constructor, "super", {
|
|
155
|
-
value: superConstructor.prototype
|
|
156
|
-
});
|
|
157
|
-
props && Object.assign(constructor.prototype, props);
|
|
158
|
-
};
|
|
159
|
-
const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
160
|
-
let props;
|
|
161
|
-
let i;
|
|
162
|
-
let prop;
|
|
163
|
-
const merged = {};
|
|
164
|
-
destObj = destObj || {};
|
|
165
|
-
if (sourceObj == null) return destObj;
|
|
73
|
+
const Ut = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, i) => {
|
|
74
|
+
n && T(s) ? e[i] = We(s, n) : e[i] = s;
|
|
75
|
+
}, { allOwnKeys: r }), e), Bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Dt = (e, t, n, r) => {
|
|
76
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
77
|
+
value: t.prototype
|
|
78
|
+
}), n && Object.assign(e.prototype, n);
|
|
79
|
+
}, kt = (e, t, n, r) => {
|
|
80
|
+
let s, i, o;
|
|
81
|
+
const c = {};
|
|
82
|
+
if (t = t || {}, e == null) return t;
|
|
166
83
|
do {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
84
|
+
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
85
|
+
o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
|
|
86
|
+
e = n !== !1 && we(e);
|
|
87
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
88
|
+
return t;
|
|
89
|
+
}, jt = (e, t, n) => {
|
|
90
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
91
|
+
const r = e.indexOf(t, n);
|
|
92
|
+
return r !== -1 && r === n;
|
|
93
|
+
}, qt = (e) => {
|
|
94
|
+
if (!e) return null;
|
|
95
|
+
if (M(e)) return e;
|
|
96
|
+
let t = e.length;
|
|
97
|
+
if (!Xe(t)) return null;
|
|
98
|
+
const n = new Array(t);
|
|
99
|
+
for (; t-- > 0; )
|
|
100
|
+
n[t] = e[t];
|
|
101
|
+
return n;
|
|
102
|
+
}, It = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && we(Uint8Array)), Ht = (e, t) => {
|
|
103
|
+
const r = (e && e[re]).call(e);
|
|
104
|
+
let s;
|
|
105
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
106
|
+
const i = s.value;
|
|
107
|
+
t.call(e, i[0], i[1]);
|
|
108
|
+
}
|
|
109
|
+
}, Mt = (e, t) => {
|
|
110
|
+
let n;
|
|
111
|
+
const r = [];
|
|
112
|
+
for (; (n = e.exec(t)) !== null; )
|
|
113
|
+
r.push(n);
|
|
114
|
+
return r;
|
|
115
|
+
}, zt = P("HTMLFormElement"), Jt = (e) => e.toLowerCase().replace(
|
|
116
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
117
|
+
function(n, r, s) {
|
|
118
|
+
return r.toUpperCase() + s;
|
|
119
|
+
}
|
|
120
|
+
), _e = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), $t = P("RegExp"), Ze = (e, t) => {
|
|
121
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
122
|
+
K(n, (s, i) => {
|
|
123
|
+
let o;
|
|
124
|
+
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
125
|
+
}), Object.defineProperties(e, r);
|
|
126
|
+
}, Vt = (e) => {
|
|
127
|
+
Ze(e, (t, n) => {
|
|
128
|
+
if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
129
|
+
return !1;
|
|
130
|
+
const r = e[n];
|
|
131
|
+
if (T(r)) {
|
|
132
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
133
|
+
t.writable = !1;
|
|
134
|
+
return;
|
|
174
135
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
return destObj;
|
|
179
|
-
};
|
|
180
|
-
const endsWith = (str, searchString, position) => {
|
|
181
|
-
str = String(str);
|
|
182
|
-
if (position === void 0 || position > str.length) {
|
|
183
|
-
position = str.length;
|
|
184
|
-
}
|
|
185
|
-
position -= searchString.length;
|
|
186
|
-
const lastIndex = str.indexOf(searchString, position);
|
|
187
|
-
return lastIndex !== -1 && lastIndex === position;
|
|
188
|
-
};
|
|
189
|
-
const toArray = (thing) => {
|
|
190
|
-
if (!thing) return null;
|
|
191
|
-
if (isArray(thing)) return thing;
|
|
192
|
-
let i = thing.length;
|
|
193
|
-
if (!isNumber(i)) return null;
|
|
194
|
-
const arr = new Array(i);
|
|
195
|
-
while (i-- > 0) {
|
|
196
|
-
arr[i] = thing[i];
|
|
197
|
-
}
|
|
198
|
-
return arr;
|
|
199
|
-
};
|
|
200
|
-
const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
|
|
201
|
-
return (thing) => {
|
|
202
|
-
return TypedArray && thing instanceof TypedArray;
|
|
203
|
-
};
|
|
204
|
-
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
205
|
-
const forEachEntry = (obj, fn) => {
|
|
206
|
-
const generator = obj && obj[iterator];
|
|
207
|
-
const _iterator = generator.call(obj);
|
|
208
|
-
let result;
|
|
209
|
-
while ((result = _iterator.next()) && !result.done) {
|
|
210
|
-
const pair = result.value;
|
|
211
|
-
fn.call(obj, pair[0], pair[1]);
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
const matchAll = (regExp, str) => {
|
|
215
|
-
let matches;
|
|
216
|
-
const arr = [];
|
|
217
|
-
while ((matches = regExp.exec(str)) !== null) {
|
|
218
|
-
arr.push(matches);
|
|
219
|
-
}
|
|
220
|
-
return arr;
|
|
221
|
-
};
|
|
222
|
-
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
223
|
-
const toCamelCase = (str) => {
|
|
224
|
-
return str.toLowerCase().replace(
|
|
225
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
226
|
-
function replacer(m, p1, p2) {
|
|
227
|
-
return p1.toUpperCase() + p2;
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
};
|
|
231
|
-
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
232
|
-
const isRegExp = kindOfTest("RegExp");
|
|
233
|
-
const reduceDescriptors = (obj, reducer) => {
|
|
234
|
-
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
235
|
-
const reducedDescriptors = {};
|
|
236
|
-
forEach(descriptors2, (descriptor, name) => {
|
|
237
|
-
let ret;
|
|
238
|
-
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
239
|
-
reducedDescriptors[name] = ret || descriptor;
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
Object.defineProperties(obj, reducedDescriptors);
|
|
243
|
-
};
|
|
244
|
-
const freezeMethods = (obj) => {
|
|
245
|
-
reduceDescriptors(obj, (descriptor, name) => {
|
|
246
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
247
|
-
return false;
|
|
248
|
-
}
|
|
249
|
-
const value = obj[name];
|
|
250
|
-
if (!isFunction(value)) return;
|
|
251
|
-
descriptor.enumerable = false;
|
|
252
|
-
if ("writable" in descriptor) {
|
|
253
|
-
descriptor.writable = false;
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
if (!descriptor.set) {
|
|
257
|
-
descriptor.set = () => {
|
|
258
|
-
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
259
|
-
};
|
|
136
|
+
t.set || (t.set = () => {
|
|
137
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
138
|
+
});
|
|
260
139
|
}
|
|
261
140
|
});
|
|
262
|
-
}
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
arr.forEach((value) => {
|
|
267
|
-
obj[value] = true;
|
|
141
|
+
}, Wt = (e, t) => {
|
|
142
|
+
const n = {}, r = (s) => {
|
|
143
|
+
s.forEach((i) => {
|
|
144
|
+
n[i] = !0;
|
|
268
145
|
});
|
|
269
146
|
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
const toFiniteNumber = (value, defaultValue) => {
|
|
276
|
-
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
277
|
-
};
|
|
278
|
-
function isSpecCompliantForm(thing) {
|
|
279
|
-
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
147
|
+
return M(e) ? r(e) : r(String(e).split(t)), n;
|
|
148
|
+
}, Kt = () => {
|
|
149
|
+
}, vt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
150
|
+
function Xt(e) {
|
|
151
|
+
return !!(e && T(e.append) && e[Ke] === "FormData" && e[re]);
|
|
280
152
|
}
|
|
281
|
-
const
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
if (stack.indexOf(source) >= 0) {
|
|
153
|
+
const Gt = (e) => {
|
|
154
|
+
const t = new Array(10), n = (r, s) => {
|
|
155
|
+
if (W(r)) {
|
|
156
|
+
if (t.indexOf(r) >= 0)
|
|
286
157
|
return;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
297
|
-
});
|
|
298
|
-
stack[i] = void 0;
|
|
299
|
-
return target;
|
|
158
|
+
if (V(r))
|
|
159
|
+
return r;
|
|
160
|
+
if (!("toJSON" in r)) {
|
|
161
|
+
t[s] = r;
|
|
162
|
+
const i = M(r) ? [] : {};
|
|
163
|
+
return K(r, (o, c) => {
|
|
164
|
+
const d = n(o, s + 1);
|
|
165
|
+
!H(d) && (i[c] = d);
|
|
166
|
+
}), t[s] = void 0, i;
|
|
300
167
|
}
|
|
301
168
|
}
|
|
302
|
-
return
|
|
169
|
+
return r;
|
|
303
170
|
};
|
|
304
|
-
return
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
isFileList,
|
|
355
|
-
forEach,
|
|
356
|
-
merge,
|
|
357
|
-
extend,
|
|
358
|
-
trim,
|
|
359
|
-
stripBOM,
|
|
360
|
-
inherits,
|
|
361
|
-
toFlatObject,
|
|
362
|
-
kindOf,
|
|
363
|
-
kindOfTest,
|
|
364
|
-
endsWith,
|
|
365
|
-
toArray,
|
|
366
|
-
forEachEntry,
|
|
367
|
-
matchAll,
|
|
368
|
-
isHTMLForm,
|
|
369
|
-
hasOwnProperty,
|
|
370
|
-
hasOwnProp: hasOwnProperty,
|
|
171
|
+
return n(e, 0);
|
|
172
|
+
}, Qt = P("AsyncFunction"), Zt = (e) => e && (W(e) || T(e)) && T(e.then) && T(e.catch), Ye = ((e, t) => e ? setImmediate : t ? ((n, r) => (k.addEventListener("message", ({ source: s, data: i }) => {
|
|
173
|
+
s === k && i === n && r.length && r.shift()();
|
|
174
|
+
}, !1), (s) => {
|
|
175
|
+
r.push(s), k.postMessage(n, "*");
|
|
176
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
177
|
+
typeof setImmediate == "function",
|
|
178
|
+
T(k.postMessage)
|
|
179
|
+
), Yt = typeof queueMicrotask < "u" ? queueMicrotask.bind(k) : typeof process < "u" && process.nextTick || Ye, en = (e) => e != null && T(e[re]), a = {
|
|
180
|
+
isArray: M,
|
|
181
|
+
isArrayBuffer: ve,
|
|
182
|
+
isBuffer: V,
|
|
183
|
+
isFormData: xt,
|
|
184
|
+
isArrayBufferView: bt,
|
|
185
|
+
isString: wt,
|
|
186
|
+
isNumber: Xe,
|
|
187
|
+
isBoolean: Et,
|
|
188
|
+
isObject: W,
|
|
189
|
+
isPlainObject: Y,
|
|
190
|
+
isEmptyObject: gt,
|
|
191
|
+
isReadableStream: Nt,
|
|
192
|
+
isRequest: Pt,
|
|
193
|
+
isResponse: _t,
|
|
194
|
+
isHeaders: Ft,
|
|
195
|
+
isUndefined: H,
|
|
196
|
+
isDate: Rt,
|
|
197
|
+
isFile: St,
|
|
198
|
+
isBlob: Ot,
|
|
199
|
+
isRegExp: $t,
|
|
200
|
+
isFunction: T,
|
|
201
|
+
isStream: At,
|
|
202
|
+
isURLSearchParams: Ct,
|
|
203
|
+
isTypedArray: It,
|
|
204
|
+
isFileList: Tt,
|
|
205
|
+
forEach: K,
|
|
206
|
+
merge: pe,
|
|
207
|
+
extend: Ut,
|
|
208
|
+
trim: Lt,
|
|
209
|
+
stripBOM: Bt,
|
|
210
|
+
inherits: Dt,
|
|
211
|
+
toFlatObject: kt,
|
|
212
|
+
kindOf: se,
|
|
213
|
+
kindOfTest: P,
|
|
214
|
+
endsWith: jt,
|
|
215
|
+
toArray: qt,
|
|
216
|
+
forEachEntry: Ht,
|
|
217
|
+
matchAll: Mt,
|
|
218
|
+
isHTMLForm: zt,
|
|
219
|
+
hasOwnProperty: _e,
|
|
220
|
+
hasOwnProp: _e,
|
|
371
221
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
372
|
-
reduceDescriptors,
|
|
373
|
-
freezeMethods,
|
|
374
|
-
toObjectSet,
|
|
375
|
-
toCamelCase,
|
|
376
|
-
noop,
|
|
377
|
-
toFiniteNumber,
|
|
378
|
-
findKey,
|
|
379
|
-
global:
|
|
380
|
-
isContextDefined,
|
|
381
|
-
isSpecCompliantForm,
|
|
382
|
-
toJSONObject,
|
|
383
|
-
isAsyncFn,
|
|
384
|
-
isThenable,
|
|
385
|
-
setImmediate:
|
|
386
|
-
asap,
|
|
387
|
-
isIterable
|
|
222
|
+
reduceDescriptors: Ze,
|
|
223
|
+
freezeMethods: Vt,
|
|
224
|
+
toObjectSet: Wt,
|
|
225
|
+
toCamelCase: Jt,
|
|
226
|
+
noop: Kt,
|
|
227
|
+
toFiniteNumber: vt,
|
|
228
|
+
findKey: Ge,
|
|
229
|
+
global: k,
|
|
230
|
+
isContextDefined: Qe,
|
|
231
|
+
isSpecCompliantForm: Xt,
|
|
232
|
+
toJSONObject: Gt,
|
|
233
|
+
isAsyncFn: Qt,
|
|
234
|
+
isThenable: Zt,
|
|
235
|
+
setImmediate: Ye,
|
|
236
|
+
asap: Yt,
|
|
237
|
+
isIterable: en
|
|
388
238
|
};
|
|
389
|
-
function
|
|
390
|
-
Error.call(this);
|
|
391
|
-
if (Error.captureStackTrace) {
|
|
392
|
-
Error.captureStackTrace(this, this.constructor);
|
|
393
|
-
} else {
|
|
394
|
-
this.stack = new Error().stack;
|
|
395
|
-
}
|
|
396
|
-
this.message = message;
|
|
397
|
-
this.name = "AxiosError";
|
|
398
|
-
code && (this.code = code);
|
|
399
|
-
config && (this.config = config);
|
|
400
|
-
request && (this.request = request);
|
|
401
|
-
if (response) {
|
|
402
|
-
this.response = response;
|
|
403
|
-
this.status = response.status ? response.status : null;
|
|
404
|
-
}
|
|
239
|
+
function y(e, t, n, r, s) {
|
|
240
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
405
241
|
}
|
|
406
|
-
|
|
407
|
-
toJSON: function
|
|
242
|
+
a.inherits(y, Error, {
|
|
243
|
+
toJSON: function() {
|
|
408
244
|
return {
|
|
409
245
|
// Standard
|
|
410
246
|
message: this.message,
|
|
@@ -418,14 +254,13 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
418
254
|
columnNumber: this.columnNumber,
|
|
419
255
|
stack: this.stack,
|
|
420
256
|
// Axios
|
|
421
|
-
config:
|
|
257
|
+
config: a.toJSONObject(this.config),
|
|
422
258
|
code: this.code,
|
|
423
259
|
status: this.status
|
|
424
260
|
};
|
|
425
261
|
}
|
|
426
262
|
});
|
|
427
|
-
const
|
|
428
|
-
const descriptors = {};
|
|
263
|
+
const et = y.prototype, tt = {};
|
|
429
264
|
[
|
|
430
265
|
"ERR_BAD_OPTION_VALUE",
|
|
431
266
|
"ERR_BAD_OPTION",
|
|
@@ -440,139 +275,102 @@ const descriptors = {};
|
|
|
440
275
|
"ERR_NOT_SUPPORT",
|
|
441
276
|
"ERR_INVALID_URL"
|
|
442
277
|
// eslint-disable-next-line func-names
|
|
443
|
-
].forEach((
|
|
444
|
-
|
|
278
|
+
].forEach((e) => {
|
|
279
|
+
tt[e] = { value: e };
|
|
445
280
|
});
|
|
446
|
-
Object.defineProperties(
|
|
447
|
-
Object.defineProperty(
|
|
448
|
-
|
|
449
|
-
const
|
|
450
|
-
|
|
451
|
-
return
|
|
452
|
-
}, (
|
|
453
|
-
|
|
454
|
-
});
|
|
455
|
-
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
456
|
-
axiosError.cause = error;
|
|
457
|
-
axiosError.name = error.name;
|
|
458
|
-
customProps && Object.assign(axiosError, customProps);
|
|
459
|
-
return axiosError;
|
|
281
|
+
Object.defineProperties(y, tt);
|
|
282
|
+
Object.defineProperty(et, "isAxiosError", { value: !0 });
|
|
283
|
+
y.from = (e, t, n, r, s, i) => {
|
|
284
|
+
const o = Object.create(et);
|
|
285
|
+
a.toFlatObject(e, o, function(l) {
|
|
286
|
+
return l !== Error.prototype;
|
|
287
|
+
}, (f) => f !== "isAxiosError");
|
|
288
|
+
const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
289
|
+
return y.call(o, c, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
|
|
460
290
|
};
|
|
461
|
-
const
|
|
462
|
-
function
|
|
463
|
-
return
|
|
291
|
+
const tn = null;
|
|
292
|
+
function he(e) {
|
|
293
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
464
294
|
}
|
|
465
|
-
function
|
|
466
|
-
return
|
|
295
|
+
function nt(e) {
|
|
296
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
467
297
|
}
|
|
468
|
-
function
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
473
|
-
}).join(dots ? "." : "");
|
|
298
|
+
function Fe(e, t, n) {
|
|
299
|
+
return e ? e.concat(t).map(function(s, i) {
|
|
300
|
+
return s = nt(s), !n && i ? "[" + s + "]" : s;
|
|
301
|
+
}).join(n ? "." : "") : t;
|
|
474
302
|
}
|
|
475
|
-
function
|
|
476
|
-
return
|
|
303
|
+
function nn(e) {
|
|
304
|
+
return a.isArray(e) && !e.some(he);
|
|
477
305
|
}
|
|
478
|
-
const
|
|
479
|
-
return /^is[A-Z]/.test(
|
|
306
|
+
const rn = a.toFlatObject(a, {}, null, function(t) {
|
|
307
|
+
return /^is[A-Z]/.test(t);
|
|
480
308
|
});
|
|
481
|
-
function
|
|
482
|
-
if (!
|
|
309
|
+
function ie(e, t, n) {
|
|
310
|
+
if (!a.isObject(e))
|
|
483
311
|
throw new TypeError("target must be an object");
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}, false, function defined(option, source) {
|
|
491
|
-
return !utils$1.isUndefined(source[option]);
|
|
312
|
+
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
313
|
+
metaTokens: !0,
|
|
314
|
+
dots: !1,
|
|
315
|
+
indexes: !1
|
|
316
|
+
}, !1, function(m, p) {
|
|
317
|
+
return !a.isUndefined(p[m]);
|
|
492
318
|
});
|
|
493
|
-
const metaTokens =
|
|
494
|
-
|
|
495
|
-
const dots = options.dots;
|
|
496
|
-
const indexes = options.indexes;
|
|
497
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
498
|
-
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
499
|
-
if (!utils$1.isFunction(visitor)) {
|
|
319
|
+
const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
320
|
+
if (!a.isFunction(s))
|
|
500
321
|
throw new TypeError("visitor must be a function");
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
if (
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
if (
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
if (
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
let arr = value;
|
|
520
|
-
if (value && !path && typeof value === "object") {
|
|
521
|
-
if (utils$1.endsWith(key, "{}")) {
|
|
522
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
523
|
-
value = JSON.stringify(value);
|
|
524
|
-
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
|
|
525
|
-
key = removeBrackets(key);
|
|
526
|
-
arr.forEach(function each(el, index) {
|
|
527
|
-
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
322
|
+
function f(u) {
|
|
323
|
+
if (u === null) return "";
|
|
324
|
+
if (a.isDate(u))
|
|
325
|
+
return u.toISOString();
|
|
326
|
+
if (a.isBoolean(u))
|
|
327
|
+
return u.toString();
|
|
328
|
+
if (!d && a.isBlob(u))
|
|
329
|
+
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
330
|
+
return a.isArrayBuffer(u) || a.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
331
|
+
}
|
|
332
|
+
function l(u, m, p) {
|
|
333
|
+
let E = u;
|
|
334
|
+
if (u && !p && typeof u == "object") {
|
|
335
|
+
if (a.endsWith(m, "{}"))
|
|
336
|
+
m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
|
|
337
|
+
else if (a.isArray(u) && nn(u) || (a.isFileList(u) || a.endsWith(m, "[]")) && (E = a.toArray(u)))
|
|
338
|
+
return m = nt(m), E.forEach(function(g, O) {
|
|
339
|
+
!(a.isUndefined(g) || g === null) && t.append(
|
|
528
340
|
// eslint-disable-next-line no-nested-ternary
|
|
529
|
-
|
|
530
|
-
|
|
341
|
+
o === !0 ? Fe([m], O, i) : o === null ? m : m + "[]",
|
|
342
|
+
f(g)
|
|
531
343
|
);
|
|
532
|
-
});
|
|
533
|
-
return false;
|
|
534
|
-
}
|
|
344
|
+
}), !1;
|
|
535
345
|
}
|
|
536
|
-
|
|
537
|
-
return true;
|
|
538
|
-
}
|
|
539
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
540
|
-
return false;
|
|
346
|
+
return he(u) ? !0 : (t.append(Fe(p, m, i), f(u)), !1);
|
|
541
347
|
}
|
|
542
|
-
const
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
isVisitable
|
|
348
|
+
const h = [], b = Object.assign(rn, {
|
|
349
|
+
defaultVisitor: l,
|
|
350
|
+
convertValue: f,
|
|
351
|
+
isVisitable: he
|
|
547
352
|
});
|
|
548
|
-
function
|
|
549
|
-
if (
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
stack.pop();
|
|
567
|
-
}
|
|
568
|
-
if (!utils$1.isObject(obj)) {
|
|
353
|
+
function R(u, m) {
|
|
354
|
+
if (!a.isUndefined(u)) {
|
|
355
|
+
if (h.indexOf(u) !== -1)
|
|
356
|
+
throw Error("Circular reference detected in " + m.join("."));
|
|
357
|
+
h.push(u), a.forEach(u, function(E, x) {
|
|
358
|
+
(!(a.isUndefined(E) || E === null) && s.call(
|
|
359
|
+
t,
|
|
360
|
+
E,
|
|
361
|
+
a.isString(x) ? x.trim() : x,
|
|
362
|
+
m,
|
|
363
|
+
b
|
|
364
|
+
)) === !0 && R(E, m ? m.concat(x) : [x]);
|
|
365
|
+
}), h.pop();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (!a.isObject(e))
|
|
569
369
|
throw new TypeError("data must be an object");
|
|
570
|
-
|
|
571
|
-
build(obj);
|
|
572
|
-
return formData;
|
|
370
|
+
return R(e), t;
|
|
573
371
|
}
|
|
574
|
-
function
|
|
575
|
-
const
|
|
372
|
+
function Le(e) {
|
|
373
|
+
const t = {
|
|
576
374
|
"!": "%21",
|
|
577
375
|
"'": "%27",
|
|
578
376
|
"(": "%28",
|
|
@@ -581,56 +379,44 @@ function encode$1(str) {
|
|
|
581
379
|
"%20": "+",
|
|
582
380
|
"%00": "\0"
|
|
583
381
|
};
|
|
584
|
-
return encodeURIComponent(
|
|
585
|
-
return
|
|
382
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
383
|
+
return t[r];
|
|
586
384
|
});
|
|
587
385
|
}
|
|
588
|
-
function
|
|
589
|
-
this._pairs = [];
|
|
590
|
-
params && toFormData(params, this, options);
|
|
386
|
+
function Ee(e, t) {
|
|
387
|
+
this._pairs = [], e && ie(e, this, t);
|
|
591
388
|
}
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
this._pairs.push([
|
|
389
|
+
const rt = Ee.prototype;
|
|
390
|
+
rt.append = function(t, n) {
|
|
391
|
+
this._pairs.push([t, n]);
|
|
595
392
|
};
|
|
596
|
-
|
|
597
|
-
const
|
|
598
|
-
return
|
|
599
|
-
} :
|
|
600
|
-
return this._pairs.map(function
|
|
601
|
-
return
|
|
393
|
+
rt.toString = function(t) {
|
|
394
|
+
const n = t ? function(r) {
|
|
395
|
+
return t.call(this, r, Le);
|
|
396
|
+
} : Le;
|
|
397
|
+
return this._pairs.map(function(s) {
|
|
398
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
602
399
|
}, "").join("&");
|
|
603
400
|
};
|
|
604
|
-
function
|
|
605
|
-
return encodeURIComponent(
|
|
401
|
+
function sn(e) {
|
|
402
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
606
403
|
}
|
|
607
|
-
function
|
|
608
|
-
if (!
|
|
609
|
-
return
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
if (serializeFn) {
|
|
620
|
-
serializedParams = serializeFn(params, options);
|
|
621
|
-
} else {
|
|
622
|
-
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
|
|
623
|
-
}
|
|
624
|
-
if (serializedParams) {
|
|
625
|
-
const hashmarkIndex = url.indexOf("#");
|
|
626
|
-
if (hashmarkIndex !== -1) {
|
|
627
|
-
url = url.slice(0, hashmarkIndex);
|
|
628
|
-
}
|
|
629
|
-
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
404
|
+
function st(e, t, n) {
|
|
405
|
+
if (!t)
|
|
406
|
+
return e;
|
|
407
|
+
const r = n && n.encode || sn;
|
|
408
|
+
a.isFunction(n) && (n = {
|
|
409
|
+
serialize: n
|
|
410
|
+
});
|
|
411
|
+
const s = n && n.serialize;
|
|
412
|
+
let i;
|
|
413
|
+
if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Ee(t, n).toString(r), i) {
|
|
414
|
+
const o = e.indexOf("#");
|
|
415
|
+
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
630
416
|
}
|
|
631
|
-
return
|
|
417
|
+
return e;
|
|
632
418
|
}
|
|
633
|
-
class
|
|
419
|
+
class Ue {
|
|
634
420
|
constructor() {
|
|
635
421
|
this.handlers = [];
|
|
636
422
|
}
|
|
@@ -642,14 +428,13 @@ class InterceptorManager {
|
|
|
642
428
|
*
|
|
643
429
|
* @return {Number} An ID used to remove interceptor later
|
|
644
430
|
*/
|
|
645
|
-
use(
|
|
646
|
-
this.handlers.push({
|
|
647
|
-
fulfilled,
|
|
648
|
-
rejected,
|
|
649
|
-
synchronous:
|
|
650
|
-
runWhen:
|
|
651
|
-
});
|
|
652
|
-
return this.handlers.length - 1;
|
|
431
|
+
use(t, n, r) {
|
|
432
|
+
return this.handlers.push({
|
|
433
|
+
fulfilled: t,
|
|
434
|
+
rejected: n,
|
|
435
|
+
synchronous: r ? r.synchronous : !1,
|
|
436
|
+
runWhen: r ? r.runWhen : null
|
|
437
|
+
}), this.handlers.length - 1;
|
|
653
438
|
}
|
|
654
439
|
/**
|
|
655
440
|
* Remove an interceptor from the stack
|
|
@@ -658,10 +443,8 @@ class InterceptorManager {
|
|
|
658
443
|
*
|
|
659
444
|
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
660
445
|
*/
|
|
661
|
-
eject(
|
|
662
|
-
|
|
663
|
-
this.handlers[id] = null;
|
|
664
|
-
}
|
|
446
|
+
eject(t) {
|
|
447
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
665
448
|
}
|
|
666
449
|
/**
|
|
667
450
|
* Clear all interceptors from the stack
|
|
@@ -669,9 +452,7 @@ class InterceptorManager {
|
|
|
669
452
|
* @returns {void}
|
|
670
453
|
*/
|
|
671
454
|
clear() {
|
|
672
|
-
|
|
673
|
-
this.handlers = [];
|
|
674
|
-
}
|
|
455
|
+
this.handlers && (this.handlers = []);
|
|
675
456
|
}
|
|
676
457
|
/**
|
|
677
458
|
* Iterate over all the registered interceptors
|
|
@@ -683,192 +464,123 @@ class InterceptorManager {
|
|
|
683
464
|
*
|
|
684
465
|
* @returns {void}
|
|
685
466
|
*/
|
|
686
|
-
forEach(
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
fn(h);
|
|
690
|
-
}
|
|
467
|
+
forEach(t) {
|
|
468
|
+
a.forEach(this.handlers, function(r) {
|
|
469
|
+
r !== null && t(r);
|
|
691
470
|
});
|
|
692
471
|
}
|
|
693
472
|
}
|
|
694
|
-
const
|
|
695
|
-
silentJSONParsing:
|
|
696
|
-
forcedJSONParsing:
|
|
697
|
-
clarifyTimeoutError:
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
701
|
-
const Blob$1 = typeof Blob !== "undefined" ? Blob : null;
|
|
702
|
-
const platform$1 = {
|
|
703
|
-
isBrowser: true,
|
|
473
|
+
const ot = {
|
|
474
|
+
silentJSONParsing: !0,
|
|
475
|
+
forcedJSONParsing: !0,
|
|
476
|
+
clarifyTimeoutError: !1
|
|
477
|
+
}, on = typeof URLSearchParams < "u" ? URLSearchParams : Ee, an = typeof FormData < "u" ? FormData : null, cn = typeof Blob < "u" ? Blob : null, ln = {
|
|
478
|
+
isBrowser: !0,
|
|
704
479
|
classes: {
|
|
705
|
-
URLSearchParams:
|
|
706
|
-
FormData:
|
|
707
|
-
Blob:
|
|
480
|
+
URLSearchParams: on,
|
|
481
|
+
FormData: an,
|
|
482
|
+
Blob: cn
|
|
708
483
|
},
|
|
709
484
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
const _navigator = typeof navigator === "object" && navigator || void 0;
|
|
713
|
-
const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
714
|
-
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
715
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
716
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
717
|
-
})();
|
|
718
|
-
const origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
719
|
-
const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
485
|
+
}, ge = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, un = ge && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
486
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", dn = ge && window.location.href || "http://localhost", pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
720
487
|
__proto__: null,
|
|
721
|
-
hasBrowserEnv,
|
|
722
|
-
hasStandardBrowserEnv,
|
|
723
|
-
hasStandardBrowserWebWorkerEnv,
|
|
724
|
-
navigator:
|
|
725
|
-
origin
|
|
726
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
727
|
-
|
|
728
|
-
...
|
|
729
|
-
...platform$1
|
|
488
|
+
hasBrowserEnv: ge,
|
|
489
|
+
hasStandardBrowserEnv: un,
|
|
490
|
+
hasStandardBrowserWebWorkerEnv: fn,
|
|
491
|
+
navigator: me,
|
|
492
|
+
origin: dn
|
|
493
|
+
}, Symbol.toStringTag, { value: "Module" })), S = {
|
|
494
|
+
...pn,
|
|
495
|
+
...ln
|
|
730
496
|
};
|
|
731
|
-
function
|
|
732
|
-
return
|
|
733
|
-
visitor: function(
|
|
734
|
-
|
|
735
|
-
this.append(key, value.toString("base64"));
|
|
736
|
-
return false;
|
|
737
|
-
}
|
|
738
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
497
|
+
function hn(e, t) {
|
|
498
|
+
return ie(e, new S.classes.URLSearchParams(), {
|
|
499
|
+
visitor: function(n, r, s, i) {
|
|
500
|
+
return S.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
739
501
|
},
|
|
740
|
-
...
|
|
502
|
+
...t
|
|
741
503
|
});
|
|
742
504
|
}
|
|
743
|
-
function
|
|
744
|
-
return
|
|
745
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
746
|
-
});
|
|
505
|
+
function mn(e) {
|
|
506
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
747
507
|
}
|
|
748
|
-
function
|
|
749
|
-
const
|
|
750
|
-
|
|
508
|
+
function yn(e) {
|
|
509
|
+
const t = {}, n = Object.keys(e);
|
|
510
|
+
let r;
|
|
511
|
+
const s = n.length;
|
|
751
512
|
let i;
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
key = keys[i];
|
|
756
|
-
obj[key] = arr[key];
|
|
757
|
-
}
|
|
758
|
-
return obj;
|
|
513
|
+
for (r = 0; r < s; r++)
|
|
514
|
+
i = n[r], t[i] = e[i];
|
|
515
|
+
return t;
|
|
759
516
|
}
|
|
760
|
-
function
|
|
761
|
-
function
|
|
762
|
-
let
|
|
763
|
-
if (
|
|
764
|
-
const
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}
|
|
773
|
-
return !isNumericKey;
|
|
774
|
-
}
|
|
775
|
-
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
776
|
-
target[name] = [];
|
|
777
|
-
}
|
|
778
|
-
const result = buildPath(path, value, target[name], index);
|
|
779
|
-
if (result && utils$1.isArray(target[name])) {
|
|
780
|
-
target[name] = arrayToObject(target[name]);
|
|
781
|
-
}
|
|
782
|
-
return !isNumericKey;
|
|
783
|
-
}
|
|
784
|
-
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
785
|
-
const obj = {};
|
|
786
|
-
utils$1.forEachEntry(formData, (name, value) => {
|
|
787
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
788
|
-
});
|
|
789
|
-
return obj;
|
|
517
|
+
function it(e) {
|
|
518
|
+
function t(n, r, s, i) {
|
|
519
|
+
let o = n[i++];
|
|
520
|
+
if (o === "__proto__") return !0;
|
|
521
|
+
const c = Number.isFinite(+o), d = i >= n.length;
|
|
522
|
+
return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = yn(s[o])), !c);
|
|
523
|
+
}
|
|
524
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
525
|
+
const n = {};
|
|
526
|
+
return a.forEachEntry(e, (r, s) => {
|
|
527
|
+
t(mn(r), s, n, 0);
|
|
528
|
+
}), n;
|
|
790
529
|
}
|
|
791
530
|
return null;
|
|
792
531
|
}
|
|
793
|
-
function
|
|
794
|
-
if (
|
|
532
|
+
function bn(e, t, n) {
|
|
533
|
+
if (a.isString(e))
|
|
795
534
|
try {
|
|
796
|
-
(0, JSON.parse)(
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
throw e;
|
|
801
|
-
}
|
|
535
|
+
return (0, JSON.parse)(e), a.trim(e);
|
|
536
|
+
} catch (r) {
|
|
537
|
+
if (r.name !== "SyntaxError")
|
|
538
|
+
throw r;
|
|
802
539
|
}
|
|
803
|
-
|
|
804
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
540
|
+
return (n || JSON.stringify)(e);
|
|
805
541
|
}
|
|
806
|
-
const
|
|
807
|
-
transitional:
|
|
542
|
+
const v = {
|
|
543
|
+
transitional: ot,
|
|
808
544
|
adapter: ["xhr", "http", "fetch"],
|
|
809
|
-
transformRequest: [function
|
|
810
|
-
const
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
if (
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
if (
|
|
818
|
-
return
|
|
819
|
-
|
|
820
|
-
if (
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
return data.toString();
|
|
829
|
-
}
|
|
830
|
-
let isFileList2;
|
|
831
|
-
if (isObjectPayload) {
|
|
832
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
833
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
834
|
-
}
|
|
835
|
-
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
836
|
-
const _FormData = this.env && this.env.FormData;
|
|
837
|
-
return toFormData(
|
|
838
|
-
isFileList2 ? { "files[]": data } : data,
|
|
839
|
-
_FormData && new _FormData(),
|
|
545
|
+
transformRequest: [function(t, n) {
|
|
546
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
|
|
547
|
+
if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
548
|
+
return s ? JSON.stringify(it(t)) : t;
|
|
549
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
550
|
+
return t;
|
|
551
|
+
if (a.isArrayBufferView(t))
|
|
552
|
+
return t.buffer;
|
|
553
|
+
if (a.isURLSearchParams(t))
|
|
554
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
555
|
+
let c;
|
|
556
|
+
if (i) {
|
|
557
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
558
|
+
return hn(t, this.formSerializer).toString();
|
|
559
|
+
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
560
|
+
const d = this.env && this.env.FormData;
|
|
561
|
+
return ie(
|
|
562
|
+
c ? { "files[]": t } : t,
|
|
563
|
+
d && new d(),
|
|
840
564
|
this.formSerializer
|
|
841
565
|
);
|
|
842
566
|
}
|
|
843
567
|
}
|
|
844
|
-
|
|
845
|
-
headers.setContentType("application/json", false);
|
|
846
|
-
return stringifySafely(data);
|
|
847
|
-
}
|
|
848
|
-
return data;
|
|
568
|
+
return i || s ? (n.setContentType("application/json", !1), bn(t)) : t;
|
|
849
569
|
}],
|
|
850
|
-
transformResponse: [function
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
if (
|
|
855
|
-
|
|
856
|
-
}
|
|
857
|
-
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
858
|
-
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
859
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
570
|
+
transformResponse: [function(t) {
|
|
571
|
+
const n = this.transitional || v.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
572
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
573
|
+
return t;
|
|
574
|
+
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
575
|
+
const o = !(n && n.silentJSONParsing) && s;
|
|
860
576
|
try {
|
|
861
|
-
return JSON.parse(
|
|
862
|
-
} catch (
|
|
863
|
-
if (
|
|
864
|
-
|
|
865
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
866
|
-
}
|
|
867
|
-
throw e;
|
|
868
|
-
}
|
|
577
|
+
return JSON.parse(t, this.parseReviver);
|
|
578
|
+
} catch (c) {
|
|
579
|
+
if (o)
|
|
580
|
+
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
869
581
|
}
|
|
870
582
|
}
|
|
871
|
-
return
|
|
583
|
+
return t;
|
|
872
584
|
}],
|
|
873
585
|
/**
|
|
874
586
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
@@ -880,23 +592,23 @@ const defaults = {
|
|
|
880
592
|
maxContentLength: -1,
|
|
881
593
|
maxBodyLength: -1,
|
|
882
594
|
env: {
|
|
883
|
-
FormData:
|
|
884
|
-
Blob:
|
|
595
|
+
FormData: S.classes.FormData,
|
|
596
|
+
Blob: S.classes.Blob
|
|
885
597
|
},
|
|
886
|
-
validateStatus: function
|
|
887
|
-
return
|
|
598
|
+
validateStatus: function(t) {
|
|
599
|
+
return t >= 200 && t < 300;
|
|
888
600
|
},
|
|
889
601
|
headers: {
|
|
890
602
|
common: {
|
|
891
|
-
|
|
603
|
+
Accept: "application/json, text/plain, */*",
|
|
892
604
|
"Content-Type": void 0
|
|
893
605
|
}
|
|
894
606
|
}
|
|
895
607
|
};
|
|
896
|
-
|
|
897
|
-
|
|
608
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
609
|
+
v.headers[e] = {};
|
|
898
610
|
});
|
|
899
|
-
const
|
|
611
|
+
const wn = a.toObjectSet([
|
|
900
612
|
"age",
|
|
901
613
|
"authorization",
|
|
902
614
|
"content-length",
|
|
@@ -914,214 +626,153 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
|
914
626
|
"referer",
|
|
915
627
|
"retry-after",
|
|
916
628
|
"user-agent"
|
|
917
|
-
])
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
928
|
-
return;
|
|
929
|
-
}
|
|
930
|
-
if (key === "set-cookie") {
|
|
931
|
-
if (parsed[key]) {
|
|
932
|
-
parsed[key].push(val);
|
|
933
|
-
} else {
|
|
934
|
-
parsed[key] = [val];
|
|
935
|
-
}
|
|
936
|
-
} else {
|
|
937
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
938
|
-
}
|
|
939
|
-
});
|
|
940
|
-
return parsed;
|
|
941
|
-
};
|
|
942
|
-
const $internals = Symbol("internals");
|
|
943
|
-
function normalizeHeader(header) {
|
|
944
|
-
return header && String(header).trim().toLowerCase();
|
|
629
|
+
]), En = (e) => {
|
|
630
|
+
const t = {};
|
|
631
|
+
let n, r, s;
|
|
632
|
+
return e && e.split(`
|
|
633
|
+
`).forEach(function(o) {
|
|
634
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && wn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
635
|
+
}), t;
|
|
636
|
+
}, Be = Symbol("internals");
|
|
637
|
+
function $(e) {
|
|
638
|
+
return e && String(e).trim().toLowerCase();
|
|
945
639
|
}
|
|
946
|
-
function
|
|
947
|
-
|
|
948
|
-
return value;
|
|
949
|
-
}
|
|
950
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
640
|
+
function ee(e) {
|
|
641
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(ee) : String(e);
|
|
951
642
|
}
|
|
952
|
-
function
|
|
953
|
-
const
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
}
|
|
959
|
-
return tokens;
|
|
643
|
+
function gn(e) {
|
|
644
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
645
|
+
let r;
|
|
646
|
+
for (; r = n.exec(e); )
|
|
647
|
+
t[r[1]] = r[2];
|
|
648
|
+
return t;
|
|
960
649
|
}
|
|
961
|
-
const
|
|
962
|
-
function
|
|
963
|
-
if (
|
|
964
|
-
return
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
if (utils$1.isString(filter2)) {
|
|
971
|
-
return value.indexOf(filter2) !== -1;
|
|
972
|
-
}
|
|
973
|
-
if (utils$1.isRegExp(filter2)) {
|
|
974
|
-
return filter2.test(value);
|
|
650
|
+
const Rn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
651
|
+
function ue(e, t, n, r, s) {
|
|
652
|
+
if (a.isFunction(r))
|
|
653
|
+
return r.call(this, t, n);
|
|
654
|
+
if (s && (t = n), !!a.isString(t)) {
|
|
655
|
+
if (a.isString(r))
|
|
656
|
+
return t.indexOf(r) !== -1;
|
|
657
|
+
if (a.isRegExp(r))
|
|
658
|
+
return r.test(t);
|
|
975
659
|
}
|
|
976
660
|
}
|
|
977
|
-
function
|
|
978
|
-
return
|
|
979
|
-
return char.toUpperCase() + str;
|
|
980
|
-
});
|
|
661
|
+
function Sn(e) {
|
|
662
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
981
663
|
}
|
|
982
|
-
function
|
|
983
|
-
const
|
|
984
|
-
["get", "set", "has"].forEach((
|
|
985
|
-
Object.defineProperty(
|
|
986
|
-
value: function(
|
|
987
|
-
return this[
|
|
664
|
+
function On(e, t) {
|
|
665
|
+
const n = a.toCamelCase(" " + t);
|
|
666
|
+
["get", "set", "has"].forEach((r) => {
|
|
667
|
+
Object.defineProperty(e, r + n, {
|
|
668
|
+
value: function(s, i, o) {
|
|
669
|
+
return this[r].call(this, t, s, i, o);
|
|
988
670
|
},
|
|
989
|
-
configurable:
|
|
671
|
+
configurable: !0
|
|
990
672
|
});
|
|
991
673
|
});
|
|
992
674
|
}
|
|
993
|
-
class
|
|
994
|
-
constructor(
|
|
995
|
-
|
|
996
|
-
}
|
|
997
|
-
set(
|
|
998
|
-
const
|
|
999
|
-
function
|
|
1000
|
-
const
|
|
1001
|
-
if (!
|
|
675
|
+
class A {
|
|
676
|
+
constructor(t) {
|
|
677
|
+
t && this.set(t);
|
|
678
|
+
}
|
|
679
|
+
set(t, n, r) {
|
|
680
|
+
const s = this;
|
|
681
|
+
function i(c, d, f) {
|
|
682
|
+
const l = $(d);
|
|
683
|
+
if (!l)
|
|
1002
684
|
throw new Error("header name must be a non-empty string");
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
let obj = {}, dest, key;
|
|
1016
|
-
for (const entry of header) {
|
|
1017
|
-
if (!utils$1.isArray(entry)) {
|
|
685
|
+
const h = a.findKey(s, l);
|
|
686
|
+
(!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || d] = ee(c));
|
|
687
|
+
}
|
|
688
|
+
const o = (c, d) => a.forEach(c, (f, l) => i(f, l, d));
|
|
689
|
+
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
690
|
+
o(t, n);
|
|
691
|
+
else if (a.isString(t) && (t = t.trim()) && !Rn(t))
|
|
692
|
+
o(En(t), n);
|
|
693
|
+
else if (a.isObject(t) && a.isIterable(t)) {
|
|
694
|
+
let c = {}, d, f;
|
|
695
|
+
for (const l of t) {
|
|
696
|
+
if (!a.isArray(l))
|
|
1018
697
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1019
|
-
|
|
1020
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
698
|
+
c[f = l[0]] = (d = c[f]) ? a.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
|
|
1021
699
|
}
|
|
1022
|
-
|
|
1023
|
-
} else
|
|
1024
|
-
|
|
1025
|
-
}
|
|
700
|
+
o(c, n);
|
|
701
|
+
} else
|
|
702
|
+
t != null && i(n, t, r);
|
|
1026
703
|
return this;
|
|
1027
704
|
}
|
|
1028
|
-
get(
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
if (
|
|
1038
|
-
return
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
return parser.call(this, value, key);
|
|
1042
|
-
}
|
|
1043
|
-
if (utils$1.isRegExp(parser)) {
|
|
1044
|
-
return parser.exec(value);
|
|
1045
|
-
}
|
|
705
|
+
get(t, n) {
|
|
706
|
+
if (t = $(t), t) {
|
|
707
|
+
const r = a.findKey(this, t);
|
|
708
|
+
if (r) {
|
|
709
|
+
const s = this[r];
|
|
710
|
+
if (!n)
|
|
711
|
+
return s;
|
|
712
|
+
if (n === !0)
|
|
713
|
+
return gn(s);
|
|
714
|
+
if (a.isFunction(n))
|
|
715
|
+
return n.call(this, s, r);
|
|
716
|
+
if (a.isRegExp(n))
|
|
717
|
+
return n.exec(s);
|
|
1046
718
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1047
719
|
}
|
|
1048
720
|
}
|
|
1049
721
|
}
|
|
1050
|
-
has(
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
722
|
+
has(t, n) {
|
|
723
|
+
if (t = $(t), t) {
|
|
724
|
+
const r = a.findKey(this, t);
|
|
725
|
+
return !!(r && this[r] !== void 0 && (!n || ue(this, this[r], r, n)));
|
|
1055
726
|
}
|
|
1056
|
-
return
|
|
727
|
+
return !1;
|
|
1057
728
|
}
|
|
1058
|
-
delete(
|
|
1059
|
-
const
|
|
1060
|
-
let
|
|
1061
|
-
function
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
1066
|
-
delete self2[key];
|
|
1067
|
-
deleted = true;
|
|
1068
|
-
}
|
|
729
|
+
delete(t, n) {
|
|
730
|
+
const r = this;
|
|
731
|
+
let s = !1;
|
|
732
|
+
function i(o) {
|
|
733
|
+
if (o = $(o), o) {
|
|
734
|
+
const c = a.findKey(r, o);
|
|
735
|
+
c && (!n || ue(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
1069
736
|
}
|
|
1070
737
|
}
|
|
1071
|
-
|
|
1072
|
-
header.forEach(deleteHeader);
|
|
1073
|
-
} else {
|
|
1074
|
-
deleteHeader(header);
|
|
1075
|
-
}
|
|
1076
|
-
return deleted;
|
|
738
|
+
return a.isArray(t) ? t.forEach(i) : i(t), s;
|
|
1077
739
|
}
|
|
1078
|
-
clear(
|
|
1079
|
-
const
|
|
1080
|
-
let
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
1085
|
-
delete this[key];
|
|
1086
|
-
deleted = true;
|
|
1087
|
-
}
|
|
740
|
+
clear(t) {
|
|
741
|
+
const n = Object.keys(this);
|
|
742
|
+
let r = n.length, s = !1;
|
|
743
|
+
for (; r--; ) {
|
|
744
|
+
const i = n[r];
|
|
745
|
+
(!t || ue(this, this[i], i, t, !0)) && (delete this[i], s = !0);
|
|
1088
746
|
}
|
|
1089
|
-
return
|
|
747
|
+
return s;
|
|
1090
748
|
}
|
|
1091
|
-
normalize(
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
self2[key] = normalizeValue(value);
|
|
1098
|
-
delete self2[header];
|
|
749
|
+
normalize(t) {
|
|
750
|
+
const n = this, r = {};
|
|
751
|
+
return a.forEach(this, (s, i) => {
|
|
752
|
+
const o = a.findKey(r, i);
|
|
753
|
+
if (o) {
|
|
754
|
+
n[o] = ee(s), delete n[i];
|
|
1099
755
|
return;
|
|
1100
756
|
}
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
}
|
|
1105
|
-
self2[normalized] = normalizeValue(value);
|
|
1106
|
-
headers[normalized] = true;
|
|
1107
|
-
});
|
|
1108
|
-
return this;
|
|
757
|
+
const c = t ? Sn(i) : String(i).trim();
|
|
758
|
+
c !== i && delete n[i], n[c] = ee(s), r[c] = !0;
|
|
759
|
+
}), this;
|
|
1109
760
|
}
|
|
1110
|
-
concat(...
|
|
1111
|
-
return this.constructor.concat(this, ...
|
|
761
|
+
concat(...t) {
|
|
762
|
+
return this.constructor.concat(this, ...t);
|
|
1112
763
|
}
|
|
1113
|
-
toJSON(
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
});
|
|
1118
|
-
return obj;
|
|
764
|
+
toJSON(t) {
|
|
765
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
766
|
+
return a.forEach(this, (r, s) => {
|
|
767
|
+
r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
|
|
768
|
+
}), n;
|
|
1119
769
|
}
|
|
1120
770
|
[Symbol.iterator]() {
|
|
1121
771
|
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1122
772
|
}
|
|
1123
773
|
toString() {
|
|
1124
|
-
return Object.entries(this.toJSON()).map(([
|
|
774
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
775
|
+
`);
|
|
1125
776
|
}
|
|
1126
777
|
getSetCookie() {
|
|
1127
778
|
return this.get("set-cookie") || [];
|
|
@@ -1129,203 +780,135 @@ class AxiosHeaders {
|
|
|
1129
780
|
get [Symbol.toStringTag]() {
|
|
1130
781
|
return "AxiosHeaders";
|
|
1131
782
|
}
|
|
1132
|
-
static from(
|
|
1133
|
-
return
|
|
783
|
+
static from(t) {
|
|
784
|
+
return t instanceof this ? t : new this(t);
|
|
1134
785
|
}
|
|
1135
|
-
static concat(
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1138
|
-
return computed;
|
|
786
|
+
static concat(t, ...n) {
|
|
787
|
+
const r = new this(t);
|
|
788
|
+
return n.forEach((s) => r.set(s)), r;
|
|
1139
789
|
}
|
|
1140
|
-
static accessor(
|
|
1141
|
-
const
|
|
790
|
+
static accessor(t) {
|
|
791
|
+
const r = (this[Be] = this[Be] = {
|
|
1142
792
|
accessors: {}
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
const lHeader = normalizeHeader(_header);
|
|
1148
|
-
if (!accessors[lHeader]) {
|
|
1149
|
-
buildAccessors(prototype2, _header);
|
|
1150
|
-
accessors[lHeader] = true;
|
|
1151
|
-
}
|
|
793
|
+
}).accessors, s = this.prototype;
|
|
794
|
+
function i(o) {
|
|
795
|
+
const c = $(o);
|
|
796
|
+
r[c] || (On(s, o), r[c] = !0);
|
|
1152
797
|
}
|
|
1153
|
-
|
|
1154
|
-
return this;
|
|
798
|
+
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
1155
799
|
}
|
|
1156
800
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
let
|
|
801
|
+
A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
802
|
+
a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
|
|
803
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
1160
804
|
return {
|
|
1161
|
-
get: () =>
|
|
1162
|
-
set(
|
|
1163
|
-
this[
|
|
805
|
+
get: () => e,
|
|
806
|
+
set(r) {
|
|
807
|
+
this[n] = r;
|
|
1164
808
|
}
|
|
1165
809
|
};
|
|
1166
810
|
});
|
|
1167
|
-
|
|
1168
|
-
function
|
|
1169
|
-
const
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
1175
|
-
});
|
|
1176
|
-
headers.normalize();
|
|
1177
|
-
return data;
|
|
811
|
+
a.freezeMethods(A);
|
|
812
|
+
function fe(e, t) {
|
|
813
|
+
const n = this || v, r = t || n, s = A.from(r.headers);
|
|
814
|
+
let i = r.data;
|
|
815
|
+
return a.forEach(e, function(c) {
|
|
816
|
+
i = c.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
817
|
+
}), s.normalize(), i;
|
|
1178
818
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return !!(
|
|
819
|
+
function at(e) {
|
|
820
|
+
return !!(e && e.__CANCEL__);
|
|
1181
821
|
}
|
|
1182
|
-
function
|
|
1183
|
-
|
|
1184
|
-
this.name = "CanceledError";
|
|
822
|
+
function z(e, t, n) {
|
|
823
|
+
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1185
824
|
}
|
|
1186
|
-
|
|
1187
|
-
__CANCEL__:
|
|
825
|
+
a.inherits(z, y, {
|
|
826
|
+
__CANCEL__: !0
|
|
1188
827
|
});
|
|
1189
|
-
function
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
response.request,
|
|
1199
|
-
response
|
|
1200
|
-
));
|
|
1201
|
-
}
|
|
828
|
+
function ct(e, t, n) {
|
|
829
|
+
const r = n.config.validateStatus;
|
|
830
|
+
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
831
|
+
"Request failed with status code " + n.status,
|
|
832
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
833
|
+
n.config,
|
|
834
|
+
n.request,
|
|
835
|
+
n
|
|
836
|
+
));
|
|
1202
837
|
}
|
|
1203
|
-
function
|
|
1204
|
-
const
|
|
1205
|
-
return
|
|
838
|
+
function Tn(e) {
|
|
839
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
840
|
+
return t && t[1] || "";
|
|
1206
841
|
}
|
|
1207
|
-
function
|
|
1208
|
-
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
if (!firstSampleTS) {
|
|
1219
|
-
firstSampleTS = now;
|
|
1220
|
-
}
|
|
1221
|
-
bytes[head] = chunkLength;
|
|
1222
|
-
timestamps[head] = now;
|
|
1223
|
-
let i = tail;
|
|
1224
|
-
let bytesCount = 0;
|
|
1225
|
-
while (i !== head) {
|
|
1226
|
-
bytesCount += bytes[i++];
|
|
1227
|
-
i = i % samplesCount;
|
|
1228
|
-
}
|
|
1229
|
-
head = (head + 1) % samplesCount;
|
|
1230
|
-
if (head === tail) {
|
|
1231
|
-
tail = (tail + 1) % samplesCount;
|
|
1232
|
-
}
|
|
1233
|
-
if (now - firstSampleTS < min) {
|
|
842
|
+
function An(e, t) {
|
|
843
|
+
e = e || 10;
|
|
844
|
+
const n = new Array(e), r = new Array(e);
|
|
845
|
+
let s = 0, i = 0, o;
|
|
846
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
847
|
+
const f = Date.now(), l = r[i];
|
|
848
|
+
o || (o = f), n[s] = d, r[s] = f;
|
|
849
|
+
let h = i, b = 0;
|
|
850
|
+
for (; h !== s; )
|
|
851
|
+
b += n[h++], h = h % e;
|
|
852
|
+
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
|
|
1234
853
|
return;
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
854
|
+
const R = l && f - l;
|
|
855
|
+
return R ? Math.round(b * 1e3 / R) : void 0;
|
|
1238
856
|
};
|
|
1239
857
|
}
|
|
1240
|
-
function
|
|
1241
|
-
let
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
let timer;
|
|
1245
|
-
const invoke = (args, now = Date.now()) => {
|
|
1246
|
-
timestamp = now;
|
|
1247
|
-
lastArgs = null;
|
|
1248
|
-
if (timer) {
|
|
1249
|
-
clearTimeout(timer);
|
|
1250
|
-
timer = null;
|
|
1251
|
-
}
|
|
1252
|
-
fn(...args);
|
|
858
|
+
function xn(e, t) {
|
|
859
|
+
let n = 0, r = 1e3 / t, s, i;
|
|
860
|
+
const o = (f, l = Date.now()) => {
|
|
861
|
+
n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
|
|
1253
862
|
};
|
|
1254
|
-
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
lastArgs = args;
|
|
1261
|
-
if (!timer) {
|
|
1262
|
-
timer = setTimeout(() => {
|
|
1263
|
-
timer = null;
|
|
1264
|
-
invoke(lastArgs);
|
|
1265
|
-
}, threshold - passed);
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
};
|
|
1269
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
1270
|
-
return [throttled, flush];
|
|
863
|
+
return [(...f) => {
|
|
864
|
+
const l = Date.now(), h = l - n;
|
|
865
|
+
h >= r ? o(f, l) : (s = f, i || (i = setTimeout(() => {
|
|
866
|
+
i = null, o(s);
|
|
867
|
+
}, r - h)));
|
|
868
|
+
}, () => s && o(s)];
|
|
1271
869
|
}
|
|
1272
|
-
const
|
|
1273
|
-
let
|
|
1274
|
-
const
|
|
1275
|
-
return
|
|
1276
|
-
const loaded =
|
|
1277
|
-
|
|
1278
|
-
const
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
1289
|
-
event: e,
|
|
1290
|
-
lengthComputable: total != null,
|
|
1291
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
870
|
+
const ne = (e, t, n = 3) => {
|
|
871
|
+
let r = 0;
|
|
872
|
+
const s = An(50, 250);
|
|
873
|
+
return xn((i) => {
|
|
874
|
+
const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= c;
|
|
875
|
+
r = o;
|
|
876
|
+
const h = {
|
|
877
|
+
loaded: o,
|
|
878
|
+
total: c,
|
|
879
|
+
progress: c ? o / c : void 0,
|
|
880
|
+
bytes: d,
|
|
881
|
+
rate: f || void 0,
|
|
882
|
+
estimated: f && c && l ? (c - o) / f : void 0,
|
|
883
|
+
event: i,
|
|
884
|
+
lengthComputable: c != null,
|
|
885
|
+
[t ? "download" : "upload"]: !0
|
|
1292
886
|
};
|
|
1293
|
-
|
|
1294
|
-
},
|
|
1295
|
-
}
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
url = new URL(url, platform.origin);
|
|
1307
|
-
return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
|
|
1308
|
-
})(
|
|
1309
|
-
new URL(platform.origin),
|
|
1310
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
1311
|
-
) : () => true;
|
|
1312
|
-
const cookies = platform.hasStandardBrowserEnv ? (
|
|
887
|
+
e(h);
|
|
888
|
+
}, n);
|
|
889
|
+
}, De = (e, t) => {
|
|
890
|
+
const n = e != null;
|
|
891
|
+
return [(r) => t[0]({
|
|
892
|
+
lengthComputable: n,
|
|
893
|
+
total: e,
|
|
894
|
+
loaded: r
|
|
895
|
+
}), t[1]];
|
|
896
|
+
}, ke = (e) => (...t) => a.asap(() => e(...t)), Cn = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, S.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
897
|
+
new URL(S.origin),
|
|
898
|
+
S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
|
|
899
|
+
) : () => !0, Nn = S.hasStandardBrowserEnv ? (
|
|
1313
900
|
// Standard browser envs support document.cookie
|
|
1314
901
|
{
|
|
1315
|
-
write(
|
|
1316
|
-
const
|
|
1317
|
-
|
|
1318
|
-
utils$1.isString(path) && cookie.push("path=" + path);
|
|
1319
|
-
utils$1.isString(domain) && cookie.push("domain=" + domain);
|
|
1320
|
-
secure === true && cookie.push("secure");
|
|
1321
|
-
document.cookie = cookie.join("; ");
|
|
902
|
+
write(e, t, n, r, s, i) {
|
|
903
|
+
const o = [e + "=" + encodeURIComponent(t)];
|
|
904
|
+
a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
1322
905
|
},
|
|
1323
|
-
read(
|
|
1324
|
-
const
|
|
1325
|
-
return
|
|
906
|
+
read(e) {
|
|
907
|
+
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
908
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
1326
909
|
},
|
|
1327
|
-
remove(
|
|
1328
|
-
this.write(
|
|
910
|
+
remove(e) {
|
|
911
|
+
this.write(e, "", Date.now() - 864e5);
|
|
1329
912
|
}
|
|
1330
913
|
}
|
|
1331
914
|
) : (
|
|
@@ -1340,688 +923,520 @@ const cookies = platform.hasStandardBrowserEnv ? (
|
|
|
1340
923
|
}
|
|
1341
924
|
}
|
|
1342
925
|
);
|
|
1343
|
-
function
|
|
1344
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(
|
|
926
|
+
function Pn(e) {
|
|
927
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1345
928
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
929
|
+
function _n(e, t) {
|
|
930
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1348
931
|
}
|
|
1349
|
-
function
|
|
1350
|
-
let
|
|
1351
|
-
|
|
1352
|
-
return combineURLs(baseURL, requestedURL);
|
|
1353
|
-
}
|
|
1354
|
-
return requestedURL;
|
|
932
|
+
function lt(e, t, n) {
|
|
933
|
+
let r = !Pn(t);
|
|
934
|
+
return e && (r || n == !1) ? _n(e, t) : t;
|
|
1355
935
|
}
|
|
1356
|
-
const
|
|
1357
|
-
function
|
|
1358
|
-
|
|
1359
|
-
const
|
|
1360
|
-
function
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
maxContentLength: defaultToConfig2,
|
|
1416
|
-
maxBodyLength: defaultToConfig2,
|
|
1417
|
-
beforeRedirect: defaultToConfig2,
|
|
1418
|
-
transport: defaultToConfig2,
|
|
1419
|
-
httpAgent: defaultToConfig2,
|
|
1420
|
-
httpsAgent: defaultToConfig2,
|
|
1421
|
-
cancelToken: defaultToConfig2,
|
|
1422
|
-
socketPath: defaultToConfig2,
|
|
1423
|
-
responseEncoding: defaultToConfig2,
|
|
1424
|
-
validateStatus: mergeDirectKeys,
|
|
1425
|
-
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
936
|
+
const je = (e) => e instanceof A ? { ...e } : e;
|
|
937
|
+
function q(e, t) {
|
|
938
|
+
t = t || {};
|
|
939
|
+
const n = {};
|
|
940
|
+
function r(f, l, h, b) {
|
|
941
|
+
return a.isPlainObject(f) && a.isPlainObject(l) ? a.merge.call({ caseless: b }, f, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
942
|
+
}
|
|
943
|
+
function s(f, l, h, b) {
|
|
944
|
+
if (a.isUndefined(l)) {
|
|
945
|
+
if (!a.isUndefined(f))
|
|
946
|
+
return r(void 0, f, h, b);
|
|
947
|
+
} else return r(f, l, h, b);
|
|
948
|
+
}
|
|
949
|
+
function i(f, l) {
|
|
950
|
+
if (!a.isUndefined(l))
|
|
951
|
+
return r(void 0, l);
|
|
952
|
+
}
|
|
953
|
+
function o(f, l) {
|
|
954
|
+
if (a.isUndefined(l)) {
|
|
955
|
+
if (!a.isUndefined(f))
|
|
956
|
+
return r(void 0, f);
|
|
957
|
+
} else return r(void 0, l);
|
|
958
|
+
}
|
|
959
|
+
function c(f, l, h) {
|
|
960
|
+
if (h in t)
|
|
961
|
+
return r(f, l);
|
|
962
|
+
if (h in e)
|
|
963
|
+
return r(void 0, f);
|
|
964
|
+
}
|
|
965
|
+
const d = {
|
|
966
|
+
url: i,
|
|
967
|
+
method: i,
|
|
968
|
+
data: i,
|
|
969
|
+
baseURL: o,
|
|
970
|
+
transformRequest: o,
|
|
971
|
+
transformResponse: o,
|
|
972
|
+
paramsSerializer: o,
|
|
973
|
+
timeout: o,
|
|
974
|
+
timeoutMessage: o,
|
|
975
|
+
withCredentials: o,
|
|
976
|
+
withXSRFToken: o,
|
|
977
|
+
adapter: o,
|
|
978
|
+
responseType: o,
|
|
979
|
+
xsrfCookieName: o,
|
|
980
|
+
xsrfHeaderName: o,
|
|
981
|
+
onUploadProgress: o,
|
|
982
|
+
onDownloadProgress: o,
|
|
983
|
+
decompress: o,
|
|
984
|
+
maxContentLength: o,
|
|
985
|
+
maxBodyLength: o,
|
|
986
|
+
beforeRedirect: o,
|
|
987
|
+
transport: o,
|
|
988
|
+
httpAgent: o,
|
|
989
|
+
httpsAgent: o,
|
|
990
|
+
cancelToken: o,
|
|
991
|
+
socketPath: o,
|
|
992
|
+
responseEncoding: o,
|
|
993
|
+
validateStatus: c,
|
|
994
|
+
headers: (f, l, h) => s(je(f), je(l), h, !0)
|
|
1426
995
|
};
|
|
1427
|
-
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
});
|
|
1432
|
-
return config;
|
|
996
|
+
return a.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
997
|
+
const h = d[l] || s, b = h(e[l], t[l], l);
|
|
998
|
+
a.isUndefined(b) && h !== c || (n[l] = b);
|
|
999
|
+
}), n;
|
|
1433
1000
|
}
|
|
1434
|
-
const
|
|
1435
|
-
const
|
|
1436
|
-
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } =
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
)
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
headers.setContentType(void 0);
|
|
1449
|
-
} else if ((contentType = headers.getContentType()) !== false) {
|
|
1450
|
-
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
1451
|
-
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
if (platform.hasStandardBrowserEnv) {
|
|
1455
|
-
withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
1456
|
-
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {
|
|
1457
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
1458
|
-
if (xsrfValue) {
|
|
1459
|
-
headers.set(xsrfHeaderName, xsrfValue);
|
|
1460
|
-
}
|
|
1001
|
+
const ut = (e) => {
|
|
1002
|
+
const t = q({}, e);
|
|
1003
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
|
|
1004
|
+
if (t.headers = o = A.from(o), t.url = st(lt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
|
|
1005
|
+
"Authorization",
|
|
1006
|
+
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1007
|
+
), a.isFormData(n)) {
|
|
1008
|
+
if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
|
|
1009
|
+
o.setContentType(void 0);
|
|
1010
|
+
else if (a.isFunction(n.getHeaders)) {
|
|
1011
|
+
const d = n.getHeaders(), f = ["content-type", "content-length"];
|
|
1012
|
+
Object.entries(d).forEach(([l, h]) => {
|
|
1013
|
+
f.includes(l.toLowerCase()) && o.set(l, h);
|
|
1014
|
+
});
|
|
1461
1015
|
}
|
|
1462
1016
|
}
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
return
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
const
|
|
1471
|
-
let
|
|
1472
|
-
|
|
1473
|
-
let
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
let request = new XMLHttpRequest();
|
|
1482
|
-
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
1483
|
-
request.timeout = _config.timeout;
|
|
1484
|
-
function onloadend() {
|
|
1485
|
-
if (!request) {
|
|
1017
|
+
if (S.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Cn(t.url))) {
|
|
1018
|
+
const d = s && i && Nn.read(i);
|
|
1019
|
+
d && o.set(s, d);
|
|
1020
|
+
}
|
|
1021
|
+
return t;
|
|
1022
|
+
}, Fn = typeof XMLHttpRequest < "u", Ln = Fn && function(e) {
|
|
1023
|
+
return new Promise(function(n, r) {
|
|
1024
|
+
const s = ut(e);
|
|
1025
|
+
let i = s.data;
|
|
1026
|
+
const o = A.from(s.headers).normalize();
|
|
1027
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b, R, u;
|
|
1028
|
+
function m() {
|
|
1029
|
+
R && R(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1030
|
+
}
|
|
1031
|
+
let p = new XMLHttpRequest();
|
|
1032
|
+
p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
|
|
1033
|
+
function E() {
|
|
1034
|
+
if (!p)
|
|
1486
1035
|
return;
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
headers: responseHeaders,
|
|
1497
|
-
config,
|
|
1498
|
-
request
|
|
1499
|
-
};
|
|
1500
|
-
settle(function _resolve(value) {
|
|
1501
|
-
resolve(value);
|
|
1502
|
-
done();
|
|
1503
|
-
}, function _reject(err) {
|
|
1504
|
-
reject(err);
|
|
1505
|
-
done();
|
|
1506
|
-
}, response);
|
|
1507
|
-
request = null;
|
|
1508
|
-
}
|
|
1509
|
-
if ("onloadend" in request) {
|
|
1510
|
-
request.onloadend = onloadend;
|
|
1511
|
-
} else {
|
|
1512
|
-
request.onreadystatechange = function handleLoad() {
|
|
1513
|
-
if (!request || request.readyState !== 4) {
|
|
1514
|
-
return;
|
|
1515
|
-
}
|
|
1516
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
|
|
1517
|
-
return;
|
|
1518
|
-
}
|
|
1519
|
-
setTimeout(onloadend);
|
|
1520
|
-
};
|
|
1521
|
-
}
|
|
1522
|
-
request.onabort = function handleAbort() {
|
|
1523
|
-
if (!request) {
|
|
1524
|
-
return;
|
|
1525
|
-
}
|
|
1526
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
1527
|
-
request = null;
|
|
1528
|
-
};
|
|
1529
|
-
request.onerror = function handleError() {
|
|
1530
|
-
reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
|
|
1531
|
-
request = null;
|
|
1532
|
-
};
|
|
1533
|
-
request.ontimeout = function handleTimeout() {
|
|
1534
|
-
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
1535
|
-
const transitional2 = _config.transitional || transitionalDefaults;
|
|
1536
|
-
if (_config.timeoutErrorMessage) {
|
|
1537
|
-
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
1538
|
-
}
|
|
1539
|
-
reject(new AxiosError(
|
|
1540
|
-
timeoutErrorMessage,
|
|
1541
|
-
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
1542
|
-
config,
|
|
1543
|
-
request
|
|
1544
|
-
));
|
|
1545
|
-
request = null;
|
|
1546
|
-
};
|
|
1547
|
-
requestData === void 0 && requestHeaders.setContentType(null);
|
|
1548
|
-
if ("setRequestHeader" in request) {
|
|
1549
|
-
utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
1550
|
-
request.setRequestHeader(key, val);
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
if (!utils$1.isUndefined(_config.withCredentials)) {
|
|
1554
|
-
request.withCredentials = !!_config.withCredentials;
|
|
1555
|
-
}
|
|
1556
|
-
if (responseType && responseType !== "json") {
|
|
1557
|
-
request.responseType = _config.responseType;
|
|
1558
|
-
}
|
|
1559
|
-
if (onDownloadProgress) {
|
|
1560
|
-
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
1561
|
-
request.addEventListener("progress", downloadThrottled);
|
|
1562
|
-
}
|
|
1563
|
-
if (onUploadProgress && request.upload) {
|
|
1564
|
-
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
1565
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
1566
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
1567
|
-
}
|
|
1568
|
-
if (_config.cancelToken || _config.signal) {
|
|
1569
|
-
onCanceled = (cancel) => {
|
|
1570
|
-
if (!request) {
|
|
1571
|
-
return;
|
|
1572
|
-
}
|
|
1573
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
1574
|
-
request.abort();
|
|
1575
|
-
request = null;
|
|
1036
|
+
const g = A.from(
|
|
1037
|
+
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
1038
|
+
), N = {
|
|
1039
|
+
data: !c || c === "text" || c === "json" ? p.responseText : p.response,
|
|
1040
|
+
status: p.status,
|
|
1041
|
+
statusText: p.statusText,
|
|
1042
|
+
headers: g,
|
|
1043
|
+
config: e,
|
|
1044
|
+
request: p
|
|
1576
1045
|
};
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1046
|
+
ct(function(C) {
|
|
1047
|
+
n(C), m();
|
|
1048
|
+
}, function(C) {
|
|
1049
|
+
r(C), m();
|
|
1050
|
+
}, N), p = null;
|
|
1051
|
+
}
|
|
1052
|
+
"onloadend" in p ? p.onloadend = E : p.onreadystatechange = function() {
|
|
1053
|
+
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
1054
|
+
}, p.onabort = function() {
|
|
1055
|
+
p && (r(new y("Request aborted", y.ECONNABORTED, e, p)), p = null);
|
|
1056
|
+
}, p.onerror = function(O) {
|
|
1057
|
+
const N = O && O.message ? O.message : "Network Error", B = new y(N, y.ERR_NETWORK, e, p);
|
|
1058
|
+
B.event = O || null, r(B), p = null;
|
|
1059
|
+
}, p.ontimeout = function() {
|
|
1060
|
+
let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1061
|
+
const N = s.transitional || ot;
|
|
1062
|
+
s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new y(
|
|
1063
|
+
O,
|
|
1064
|
+
N.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1065
|
+
e,
|
|
1066
|
+
p
|
|
1067
|
+
)), p = null;
|
|
1068
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(O, N) {
|
|
1069
|
+
p.setRequestHeader(N, O);
|
|
1070
|
+
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, R] = ne(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (g) => {
|
|
1071
|
+
p && (r(!g || g.type ? new z(null, e, p) : g), p.abort(), p = null);
|
|
1072
|
+
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1073
|
+
const x = Tn(s.url);
|
|
1074
|
+
if (x && S.protocols.indexOf(x) === -1) {
|
|
1075
|
+
r(new y("Unsupported protocol " + x + ":", y.ERR_BAD_REQUEST, e));
|
|
1585
1076
|
return;
|
|
1586
1077
|
}
|
|
1587
|
-
|
|
1078
|
+
p.send(i || null);
|
|
1588
1079
|
});
|
|
1589
|
-
}
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
unsubscribe();
|
|
1599
|
-
const err = reason instanceof Error ? reason : this.reason;
|
|
1600
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
1080
|
+
}, Un = (e, t) => {
|
|
1081
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1082
|
+
if (t || n) {
|
|
1083
|
+
let r = new AbortController(), s;
|
|
1084
|
+
const i = function(f) {
|
|
1085
|
+
if (!s) {
|
|
1086
|
+
s = !0, c();
|
|
1087
|
+
const l = f instanceof Error ? f : this.reason;
|
|
1088
|
+
r.abort(l instanceof y ? l : new z(l instanceof Error ? l.message : l));
|
|
1601
1089
|
}
|
|
1602
1090
|
};
|
|
1603
|
-
let
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
timer = null;
|
|
1611
|
-
signals.forEach((signal2) => {
|
|
1612
|
-
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
1613
|
-
});
|
|
1614
|
-
signals = null;
|
|
1615
|
-
}
|
|
1091
|
+
let o = t && setTimeout(() => {
|
|
1092
|
+
o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1093
|
+
}, t);
|
|
1094
|
+
const c = () => {
|
|
1095
|
+
e && (o && clearTimeout(o), o = null, e.forEach((f) => {
|
|
1096
|
+
f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
|
|
1097
|
+
}), e = null);
|
|
1616
1098
|
};
|
|
1617
|
-
|
|
1618
|
-
const { signal } =
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
if (len < chunkSize) {
|
|
1626
|
-
yield chunk;
|
|
1099
|
+
e.forEach((f) => f.addEventListener("abort", i));
|
|
1100
|
+
const { signal: d } = r;
|
|
1101
|
+
return d.unsubscribe = () => a.asap(c), d;
|
|
1102
|
+
}
|
|
1103
|
+
}, Bn = function* (e, t) {
|
|
1104
|
+
let n = e.byteLength;
|
|
1105
|
+
if (n < t) {
|
|
1106
|
+
yield e;
|
|
1627
1107
|
return;
|
|
1628
1108
|
}
|
|
1629
|
-
let
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
for await (const chunk of readStream(iterable)) {
|
|
1639
|
-
yield* streamChunk(chunk, chunkSize);
|
|
1640
|
-
}
|
|
1641
|
-
};
|
|
1642
|
-
const readStream = async function* (stream) {
|
|
1643
|
-
if (stream[Symbol.asyncIterator]) {
|
|
1644
|
-
yield* stream;
|
|
1109
|
+
let r = 0, s;
|
|
1110
|
+
for (; r < n; )
|
|
1111
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
1112
|
+
}, Dn = async function* (e, t) {
|
|
1113
|
+
for await (const n of kn(e))
|
|
1114
|
+
yield* Bn(n, t);
|
|
1115
|
+
}, kn = async function* (e) {
|
|
1116
|
+
if (e[Symbol.asyncIterator]) {
|
|
1117
|
+
yield* e;
|
|
1645
1118
|
return;
|
|
1646
1119
|
}
|
|
1647
|
-
const
|
|
1120
|
+
const t = e.getReader();
|
|
1648
1121
|
try {
|
|
1649
1122
|
for (; ; ) {
|
|
1650
|
-
const { done, value } = await
|
|
1651
|
-
if (
|
|
1123
|
+
const { done: n, value: r } = await t.read();
|
|
1124
|
+
if (n)
|
|
1652
1125
|
break;
|
|
1653
|
-
|
|
1654
|
-
yield value;
|
|
1126
|
+
yield r;
|
|
1655
1127
|
}
|
|
1656
1128
|
} finally {
|
|
1657
|
-
await
|
|
1129
|
+
await t.cancel();
|
|
1658
1130
|
}
|
|
1659
|
-
}
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
let done;
|
|
1664
|
-
let _onFinish = (e) => {
|
|
1665
|
-
if (!done) {
|
|
1666
|
-
done = true;
|
|
1667
|
-
onFinish && onFinish(e);
|
|
1668
|
-
}
|
|
1131
|
+
}, qe = (e, t, n, r) => {
|
|
1132
|
+
const s = Dn(e, t);
|
|
1133
|
+
let i = 0, o, c = (d) => {
|
|
1134
|
+
o || (o = !0, r && r(d));
|
|
1669
1135
|
};
|
|
1670
1136
|
return new ReadableStream({
|
|
1671
|
-
async pull(
|
|
1137
|
+
async pull(d) {
|
|
1672
1138
|
try {
|
|
1673
|
-
const { done:
|
|
1674
|
-
if (
|
|
1675
|
-
|
|
1676
|
-
controller.close();
|
|
1139
|
+
const { done: f, value: l } = await s.next();
|
|
1140
|
+
if (f) {
|
|
1141
|
+
c(), d.close();
|
|
1677
1142
|
return;
|
|
1678
1143
|
}
|
|
1679
|
-
let
|
|
1680
|
-
if (
|
|
1681
|
-
let
|
|
1682
|
-
|
|
1144
|
+
let h = l.byteLength;
|
|
1145
|
+
if (n) {
|
|
1146
|
+
let b = i += h;
|
|
1147
|
+
n(b);
|
|
1683
1148
|
}
|
|
1684
|
-
|
|
1685
|
-
} catch (
|
|
1686
|
-
|
|
1687
|
-
throw err;
|
|
1149
|
+
d.enqueue(new Uint8Array(l));
|
|
1150
|
+
} catch (f) {
|
|
1151
|
+
throw c(f), f;
|
|
1688
1152
|
}
|
|
1689
1153
|
},
|
|
1690
|
-
cancel(
|
|
1691
|
-
|
|
1692
|
-
return iterator2.return();
|
|
1154
|
+
cancel(d) {
|
|
1155
|
+
return c(d), s.return();
|
|
1693
1156
|
}
|
|
1694
1157
|
}, {
|
|
1695
1158
|
highWaterMark: 2
|
|
1696
1159
|
});
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1160
|
+
}, Ie = 64 * 1024, { isFunction: Z } = a, jn = (({ Request: e, Response: t }) => ({
|
|
1161
|
+
Request: e,
|
|
1162
|
+
Response: t
|
|
1163
|
+
}))(a.global), {
|
|
1164
|
+
ReadableStream: He,
|
|
1165
|
+
TextEncoder: Me
|
|
1166
|
+
} = a.global, ze = (e, ...t) => {
|
|
1702
1167
|
try {
|
|
1703
|
-
return !!
|
|
1704
|
-
} catch
|
|
1705
|
-
return
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
return duplexAccessed && !hasContentType;
|
|
1719
|
-
});
|
|
1720
|
-
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
1721
|
-
const supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
1722
|
-
const resolvers = {
|
|
1723
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
1724
|
-
};
|
|
1725
|
-
isFetchSupported && ((res) => {
|
|
1726
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
1727
|
-
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
1728
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
1729
|
-
});
|
|
1730
|
-
});
|
|
1731
|
-
})(new Response());
|
|
1732
|
-
const getBodyLength = async (body) => {
|
|
1733
|
-
if (body == null) {
|
|
1734
|
-
return 0;
|
|
1735
|
-
}
|
|
1736
|
-
if (utils$1.isBlob(body)) {
|
|
1737
|
-
return body.size;
|
|
1738
|
-
}
|
|
1739
|
-
if (utils$1.isSpecCompliantForm(body)) {
|
|
1740
|
-
const _request = new Request(platform.origin, {
|
|
1168
|
+
return !!e(...t);
|
|
1169
|
+
} catch {
|
|
1170
|
+
return !1;
|
|
1171
|
+
}
|
|
1172
|
+
}, qn = (e) => {
|
|
1173
|
+
e = a.merge.call({
|
|
1174
|
+
skipUndefined: !0
|
|
1175
|
+
}, jn, e);
|
|
1176
|
+
const { fetch: t, Request: n, Response: r } = e, s = t ? Z(t) : typeof fetch == "function", i = Z(n), o = Z(r);
|
|
1177
|
+
if (!s)
|
|
1178
|
+
return !1;
|
|
1179
|
+
const c = s && Z(He), d = s && (typeof Me == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new Me()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c && ze(() => {
|
|
1180
|
+
let u = !1;
|
|
1181
|
+
const m = new n(S.origin, {
|
|
1182
|
+
body: new He(),
|
|
1741
1183
|
method: "POST",
|
|
1742
|
-
|
|
1184
|
+
get duplex() {
|
|
1185
|
+
return u = !0, "half";
|
|
1186
|
+
}
|
|
1187
|
+
}).headers.has("Content-Type");
|
|
1188
|
+
return u && !m;
|
|
1189
|
+
}), l = o && c && ze(() => a.isReadableStream(new r("").body)), h = {
|
|
1190
|
+
stream: l && ((u) => u.body)
|
|
1191
|
+
};
|
|
1192
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
1193
|
+
!h[u] && (h[u] = (m, p) => {
|
|
1194
|
+
let E = m && m[u];
|
|
1195
|
+
if (E)
|
|
1196
|
+
return E.call(m);
|
|
1197
|
+
throw new y(`Response type '${u}' is not supported`, y.ERR_NOT_SUPPORT, p);
|
|
1743
1198
|
});
|
|
1744
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
1745
|
-
}
|
|
1746
|
-
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
1747
|
-
return body.byteLength;
|
|
1748
|
-
}
|
|
1749
|
-
if (utils$1.isURLSearchParams(body)) {
|
|
1750
|
-
body = body + "";
|
|
1751
|
-
}
|
|
1752
|
-
if (utils$1.isString(body)) {
|
|
1753
|
-
return (await encodeText(body)).byteLength;
|
|
1754
|
-
}
|
|
1755
|
-
};
|
|
1756
|
-
const resolveBodyLength = async (headers, body) => {
|
|
1757
|
-
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
1758
|
-
return length == null ? getBodyLength(body) : length;
|
|
1759
|
-
};
|
|
1760
|
-
const fetchAdapter = isFetchSupported && (async (config) => {
|
|
1761
|
-
let {
|
|
1762
|
-
url,
|
|
1763
|
-
method,
|
|
1764
|
-
data,
|
|
1765
|
-
signal,
|
|
1766
|
-
cancelToken,
|
|
1767
|
-
timeout,
|
|
1768
|
-
onDownloadProgress,
|
|
1769
|
-
onUploadProgress,
|
|
1770
|
-
responseType,
|
|
1771
|
-
headers,
|
|
1772
|
-
withCredentials = "same-origin",
|
|
1773
|
-
fetchOptions
|
|
1774
|
-
} = resolveConfig(config);
|
|
1775
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
1776
|
-
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
1777
|
-
let request;
|
|
1778
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
1779
|
-
composedSignal.unsubscribe();
|
|
1780
1199
|
});
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1200
|
+
const b = async (u) => {
|
|
1201
|
+
if (u == null)
|
|
1202
|
+
return 0;
|
|
1203
|
+
if (a.isBlob(u))
|
|
1204
|
+
return u.size;
|
|
1205
|
+
if (a.isSpecCompliantForm(u))
|
|
1206
|
+
return (await new n(S.origin, {
|
|
1785
1207
|
method: "POST",
|
|
1786
|
-
body:
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1208
|
+
body: u
|
|
1209
|
+
}).arrayBuffer()).byteLength;
|
|
1210
|
+
if (a.isArrayBufferView(u) || a.isArrayBuffer(u))
|
|
1211
|
+
return u.byteLength;
|
|
1212
|
+
if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
|
|
1213
|
+
return (await d(u)).byteLength;
|
|
1214
|
+
}, R = async (u, m) => {
|
|
1215
|
+
const p = a.toFiniteNumber(u.getContentLength());
|
|
1216
|
+
return p ?? b(m);
|
|
1217
|
+
};
|
|
1218
|
+
return async (u) => {
|
|
1219
|
+
let {
|
|
1220
|
+
url: m,
|
|
1221
|
+
method: p,
|
|
1222
|
+
data: E,
|
|
1223
|
+
signal: x,
|
|
1224
|
+
cancelToken: g,
|
|
1225
|
+
timeout: O,
|
|
1226
|
+
onDownloadProgress: N,
|
|
1227
|
+
onUploadProgress: B,
|
|
1228
|
+
responseType: C,
|
|
1229
|
+
headers: ce,
|
|
1230
|
+
withCredentials: X = "same-origin",
|
|
1231
|
+
fetchOptions: Te
|
|
1232
|
+
} = ut(u), Ae = t || fetch;
|
|
1233
|
+
C = C ? (C + "").toLowerCase() : "text";
|
|
1234
|
+
let G = Un([x, g && g.toAbortSignal()], O), J = null;
|
|
1235
|
+
const D = G && G.unsubscribe && (() => {
|
|
1236
|
+
G.unsubscribe();
|
|
1237
|
+
});
|
|
1238
|
+
let xe;
|
|
1239
|
+
try {
|
|
1240
|
+
if (B && f && p !== "get" && p !== "head" && (xe = await R(ce, E)) !== 0) {
|
|
1241
|
+
let U = new n(m, {
|
|
1242
|
+
method: "POST",
|
|
1243
|
+
body: E,
|
|
1244
|
+
duplex: "half"
|
|
1245
|
+
}), I;
|
|
1246
|
+
if (a.isFormData(E) && (I = U.headers.get("content-type")) && ce.setContentType(I), U.body) {
|
|
1247
|
+
const [le, Q] = De(
|
|
1248
|
+
xe,
|
|
1249
|
+
ne(ke(B))
|
|
1250
|
+
);
|
|
1251
|
+
E = qe(U.body, Ie, le, Q);
|
|
1252
|
+
}
|
|
1792
1253
|
}
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1254
|
+
a.isString(X) || (X = X ? "include" : "omit");
|
|
1255
|
+
const _ = i && "credentials" in n.prototype, Ce = {
|
|
1256
|
+
...Te,
|
|
1257
|
+
signal: G,
|
|
1258
|
+
method: p.toUpperCase(),
|
|
1259
|
+
headers: ce.normalize().toJSON(),
|
|
1260
|
+
body: E,
|
|
1261
|
+
duplex: "half",
|
|
1262
|
+
credentials: _ ? X : void 0
|
|
1263
|
+
};
|
|
1264
|
+
J = i && new n(m, Ce);
|
|
1265
|
+
let L = await (i ? Ae(J, Te) : Ae(m, Ce));
|
|
1266
|
+
const Ne = l && (C === "stream" || C === "response");
|
|
1267
|
+
if (l && (N || Ne && D)) {
|
|
1268
|
+
const U = {};
|
|
1269
|
+
["status", "statusText", "headers"].forEach((Pe) => {
|
|
1270
|
+
U[Pe] = L[Pe];
|
|
1271
|
+
});
|
|
1272
|
+
const I = a.toFiniteNumber(L.headers.get("content-length")), [le, Q] = N && De(
|
|
1273
|
+
I,
|
|
1274
|
+
ne(ke(N), !0)
|
|
1275
|
+
) || [];
|
|
1276
|
+
L = new r(
|
|
1277
|
+
qe(L.body, Ie, le, () => {
|
|
1278
|
+
Q && Q(), D && D();
|
|
1279
|
+
}),
|
|
1280
|
+
U
|
|
1797
1281
|
);
|
|
1798
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
1799
1282
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
duplex: "half",
|
|
1812
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
1813
|
-
});
|
|
1814
|
-
let response = await fetch(request, fetchOptions);
|
|
1815
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
1816
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
1817
|
-
const options = {};
|
|
1818
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
1819
|
-
options[prop] = response[prop];
|
|
1820
|
-
});
|
|
1821
|
-
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
1822
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
1823
|
-
responseContentLength,
|
|
1824
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
1825
|
-
) || [];
|
|
1826
|
-
response = new Response(
|
|
1827
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
1828
|
-
flush && flush();
|
|
1829
|
-
unsubscribe && unsubscribe();
|
|
1830
|
-
}),
|
|
1831
|
-
options
|
|
1832
|
-
);
|
|
1833
|
-
}
|
|
1834
|
-
responseType = responseType || "text";
|
|
1835
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
|
|
1836
|
-
!isStreamResponse && unsubscribe && unsubscribe();
|
|
1837
|
-
return await new Promise((resolve, reject) => {
|
|
1838
|
-
settle(resolve, reject, {
|
|
1839
|
-
data: responseData,
|
|
1840
|
-
headers: AxiosHeaders.from(response.headers),
|
|
1841
|
-
status: response.status,
|
|
1842
|
-
statusText: response.statusText,
|
|
1843
|
-
config,
|
|
1844
|
-
request
|
|
1283
|
+
C = C || "text";
|
|
1284
|
+
let mt = await h[a.findKey(h, C) || "text"](L, u);
|
|
1285
|
+
return !Ne && D && D(), await new Promise((U, I) => {
|
|
1286
|
+
ct(U, I, {
|
|
1287
|
+
data: mt,
|
|
1288
|
+
headers: A.from(L.headers),
|
|
1289
|
+
status: L.status,
|
|
1290
|
+
statusText: L.statusText,
|
|
1291
|
+
config: u,
|
|
1292
|
+
request: J
|
|
1293
|
+
});
|
|
1845
1294
|
});
|
|
1846
|
-
})
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
1850
|
-
throw Object.assign(
|
|
1851
|
-
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
|
|
1295
|
+
} catch (_) {
|
|
1296
|
+
throw D && D(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
|
|
1297
|
+
new y("Network Error", y.ERR_NETWORK, u, J),
|
|
1852
1298
|
{
|
|
1853
|
-
cause:
|
|
1299
|
+
cause: _.cause || _
|
|
1854
1300
|
}
|
|
1855
|
-
);
|
|
1301
|
+
) : y.from(_, _ && _.code, u, J);
|
|
1856
1302
|
}
|
|
1857
|
-
|
|
1303
|
+
};
|
|
1304
|
+
}, In = /* @__PURE__ */ new Map(), ft = (e) => {
|
|
1305
|
+
let t = e ? e.env : {};
|
|
1306
|
+
const { fetch: n, Request: r, Response: s } = t, i = [
|
|
1307
|
+
r,
|
|
1308
|
+
s,
|
|
1309
|
+
n
|
|
1310
|
+
];
|
|
1311
|
+
let o = i.length, c = o, d, f, l = In;
|
|
1312
|
+
for (; c--; )
|
|
1313
|
+
d = i[c], f = l.get(d), f === void 0 && l.set(d, f = c ? /* @__PURE__ */ new Map() : qn(t)), l = f;
|
|
1314
|
+
return f;
|
|
1315
|
+
};
|
|
1316
|
+
ft();
|
|
1317
|
+
const ye = {
|
|
1318
|
+
http: tn,
|
|
1319
|
+
xhr: Ln,
|
|
1320
|
+
fetch: {
|
|
1321
|
+
get: ft
|
|
1858
1322
|
}
|
|
1859
|
-
});
|
|
1860
|
-
const knownAdapters = {
|
|
1861
|
-
http: httpAdapter,
|
|
1862
|
-
xhr: xhrAdapter,
|
|
1863
|
-
fetch: fetchAdapter
|
|
1864
1323
|
};
|
|
1865
|
-
|
|
1866
|
-
if (
|
|
1324
|
+
a.forEach(ye, (e, t) => {
|
|
1325
|
+
if (e) {
|
|
1867
1326
|
try {
|
|
1868
|
-
Object.defineProperty(
|
|
1869
|
-
} catch
|
|
1327
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1328
|
+
} catch {
|
|
1870
1329
|
}
|
|
1871
|
-
Object.defineProperty(
|
|
1330
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1872
1331
|
}
|
|
1873
1332
|
});
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
const
|
|
1880
|
-
let
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
adapter = nameOrAdapter;
|
|
1887
|
-
if (!isResolvedHandle(nameOrAdapter)) {
|
|
1888
|
-
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
1889
|
-
if (adapter === void 0) {
|
|
1890
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
if (adapter) {
|
|
1333
|
+
const Je = (e) => `- ${e}`, Hn = (e) => a.isFunction(e) || e === null || e === !1, dt = {
|
|
1334
|
+
getAdapter: (e, t) => {
|
|
1335
|
+
e = a.isArray(e) ? e : [e];
|
|
1336
|
+
const { length: n } = e;
|
|
1337
|
+
let r, s;
|
|
1338
|
+
const i = {};
|
|
1339
|
+
for (let o = 0; o < n; o++) {
|
|
1340
|
+
r = e[o];
|
|
1341
|
+
let c;
|
|
1342
|
+
if (s = r, !Hn(r) && (s = ye[(c = String(r)).toLowerCase()], s === void 0))
|
|
1343
|
+
throw new y(`Unknown adapter '${c}'`);
|
|
1344
|
+
if (s && (a.isFunction(s) || (s = s.get(t))))
|
|
1894
1345
|
break;
|
|
1895
|
-
|
|
1896
|
-
rejectedReasons[id || "#" + i] = adapter;
|
|
1346
|
+
i[c || "#" + o] = s;
|
|
1897
1347
|
}
|
|
1898
|
-
if (!
|
|
1899
|
-
const
|
|
1900
|
-
([
|
|
1348
|
+
if (!s) {
|
|
1349
|
+
const o = Object.entries(i).map(
|
|
1350
|
+
([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1901
1351
|
);
|
|
1902
|
-
let
|
|
1903
|
-
|
|
1904
|
-
|
|
1352
|
+
let c = n ? o.length > 1 ? `since :
|
|
1353
|
+
` + o.map(Je).join(`
|
|
1354
|
+
`) : " " + Je(o[0]) : "as no adapter specified";
|
|
1355
|
+
throw new y(
|
|
1356
|
+
"There is no suitable adapter to dispatch the request " + c,
|
|
1905
1357
|
"ERR_NOT_SUPPORT"
|
|
1906
1358
|
);
|
|
1907
1359
|
}
|
|
1908
|
-
return
|
|
1360
|
+
return s;
|
|
1909
1361
|
},
|
|
1910
|
-
adapters:
|
|
1362
|
+
adapters: ye
|
|
1911
1363
|
};
|
|
1912
|
-
function
|
|
1913
|
-
if (
|
|
1914
|
-
|
|
1915
|
-
}
|
|
1916
|
-
if (config.signal && config.signal.aborted) {
|
|
1917
|
-
throw new CanceledError(null, config);
|
|
1918
|
-
}
|
|
1364
|
+
function de(e) {
|
|
1365
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1366
|
+
throw new z(null, e);
|
|
1919
1367
|
}
|
|
1920
|
-
function
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
response
|
|
1937
|
-
);
|
|
1938
|
-
response.headers = AxiosHeaders.from(response.headers);
|
|
1939
|
-
return response;
|
|
1940
|
-
}, function onAdapterRejection(reason) {
|
|
1941
|
-
if (!isCancel(reason)) {
|
|
1942
|
-
throwIfCancellationRequested(config);
|
|
1943
|
-
if (reason && reason.response) {
|
|
1944
|
-
reason.response.data = transformData.call(
|
|
1945
|
-
config,
|
|
1946
|
-
config.transformResponse,
|
|
1947
|
-
reason.response
|
|
1948
|
-
);
|
|
1949
|
-
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
1950
|
-
}
|
|
1951
|
-
}
|
|
1952
|
-
return Promise.reject(reason);
|
|
1368
|
+
function $e(e) {
|
|
1369
|
+
return de(e), e.headers = A.from(e.headers), e.data = fe.call(
|
|
1370
|
+
e,
|
|
1371
|
+
e.transformRequest
|
|
1372
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), dt.getAdapter(e.adapter || v.adapter, e)(e).then(function(r) {
|
|
1373
|
+
return de(e), r.data = fe.call(
|
|
1374
|
+
e,
|
|
1375
|
+
e.transformResponse,
|
|
1376
|
+
r
|
|
1377
|
+
), r.headers = A.from(r.headers), r;
|
|
1378
|
+
}, function(r) {
|
|
1379
|
+
return at(r) || (de(e), r && r.response && (r.response.data = fe.call(
|
|
1380
|
+
e,
|
|
1381
|
+
e.transformResponse,
|
|
1382
|
+
r.response
|
|
1383
|
+
), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
|
|
1953
1384
|
});
|
|
1954
1385
|
}
|
|
1955
|
-
const
|
|
1956
|
-
|
|
1957
|
-
[
|
|
1958
|
-
|
|
1959
|
-
return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
|
|
1386
|
+
const pt = "1.12.2", ae = {};
|
|
1387
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1388
|
+
ae[e] = function(r) {
|
|
1389
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1960
1390
|
};
|
|
1961
1391
|
});
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1964
|
-
function
|
|
1965
|
-
return "[Axios v" +
|
|
1966
|
-
}
|
|
1967
|
-
return (
|
|
1968
|
-
if (
|
|
1969
|
-
throw new
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
);
|
|
1973
|
-
}
|
|
1974
|
-
if (version && !deprecatedWarnings[opt]) {
|
|
1975
|
-
deprecatedWarnings[opt] = true;
|
|
1976
|
-
console.warn(
|
|
1977
|
-
formatMessage(
|
|
1978
|
-
opt,
|
|
1979
|
-
" has been deprecated since v" + version + " and will be removed in the near future"
|
|
1980
|
-
)
|
|
1392
|
+
const Ve = {};
|
|
1393
|
+
ae.transitional = function(t, n, r) {
|
|
1394
|
+
function s(i, o) {
|
|
1395
|
+
return "[Axios v" + pt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1396
|
+
}
|
|
1397
|
+
return (i, o, c) => {
|
|
1398
|
+
if (t === !1)
|
|
1399
|
+
throw new y(
|
|
1400
|
+
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1401
|
+
y.ERR_DEPRECATED
|
|
1981
1402
|
);
|
|
1982
|
-
|
|
1983
|
-
|
|
1403
|
+
return n && !Ve[o] && (Ve[o] = !0, console.warn(
|
|
1404
|
+
s(
|
|
1405
|
+
o,
|
|
1406
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1407
|
+
)
|
|
1408
|
+
)), t ? t(i, o, c) : !0;
|
|
1984
1409
|
};
|
|
1985
1410
|
};
|
|
1986
|
-
|
|
1987
|
-
return (
|
|
1988
|
-
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
1989
|
-
return true;
|
|
1990
|
-
};
|
|
1411
|
+
ae.spelling = function(t) {
|
|
1412
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1991
1413
|
};
|
|
1992
|
-
function
|
|
1993
|
-
if (typeof
|
|
1994
|
-
throw new
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
const result = value === void 0 || validator2(value, opt, options);
|
|
2004
|
-
if (result !== true) {
|
|
2005
|
-
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
2006
|
-
}
|
|
1414
|
+
function Mn(e, t, n) {
|
|
1415
|
+
if (typeof e != "object")
|
|
1416
|
+
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1417
|
+
const r = Object.keys(e);
|
|
1418
|
+
let s = r.length;
|
|
1419
|
+
for (; s-- > 0; ) {
|
|
1420
|
+
const i = r[s], o = t[i];
|
|
1421
|
+
if (o) {
|
|
1422
|
+
const c = e[i], d = c === void 0 || o(c, i, e);
|
|
1423
|
+
if (d !== !0)
|
|
1424
|
+
throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
|
|
2007
1425
|
continue;
|
|
2008
1426
|
}
|
|
2009
|
-
if (
|
|
2010
|
-
throw new
|
|
2011
|
-
}
|
|
1427
|
+
if (n !== !0)
|
|
1428
|
+
throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
|
|
2012
1429
|
}
|
|
2013
1430
|
}
|
|
2014
|
-
const
|
|
2015
|
-
assertOptions,
|
|
2016
|
-
validators:
|
|
2017
|
-
};
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
request: new InterceptorManager(),
|
|
2024
|
-
response: new InterceptorManager()
|
|
1431
|
+
const te = {
|
|
1432
|
+
assertOptions: Mn,
|
|
1433
|
+
validators: ae
|
|
1434
|
+
}, F = te.validators;
|
|
1435
|
+
class j {
|
|
1436
|
+
constructor(t) {
|
|
1437
|
+
this.defaults = t || {}, this.interceptors = {
|
|
1438
|
+
request: new Ue(),
|
|
1439
|
+
response: new Ue()
|
|
2025
1440
|
};
|
|
2026
1441
|
}
|
|
2027
1442
|
/**
|
|
@@ -2032,263 +1447,197 @@ class Axios {
|
|
|
2032
1447
|
*
|
|
2033
1448
|
* @returns {Promise} The Promise to be fulfilled
|
|
2034
1449
|
*/
|
|
2035
|
-
async request(
|
|
1450
|
+
async request(t, n) {
|
|
2036
1451
|
try {
|
|
2037
|
-
return await this._request(
|
|
2038
|
-
} catch (
|
|
2039
|
-
if (
|
|
2040
|
-
let
|
|
2041
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
2042
|
-
const
|
|
1452
|
+
return await this._request(t, n);
|
|
1453
|
+
} catch (r) {
|
|
1454
|
+
if (r instanceof Error) {
|
|
1455
|
+
let s = {};
|
|
1456
|
+
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1457
|
+
const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
2043
1458
|
try {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
err.stack += "\n" + stack;
|
|
2048
|
-
}
|
|
2049
|
-
} catch (e) {
|
|
1459
|
+
r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1460
|
+
` + i) : r.stack = i;
|
|
1461
|
+
} catch {
|
|
2050
1462
|
}
|
|
2051
1463
|
}
|
|
2052
|
-
throw
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
_request(
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
serialize: paramsSerializer
|
|
2075
|
-
};
|
|
2076
|
-
} else {
|
|
2077
|
-
validator.assertOptions(paramsSerializer, {
|
|
2078
|
-
encode: validators.function,
|
|
2079
|
-
serialize: validators.function
|
|
2080
|
-
}, true);
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
if (config.allowAbsoluteUrls !== void 0) ;
|
|
2084
|
-
else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
2085
|
-
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
2086
|
-
} else {
|
|
2087
|
-
config.allowAbsoluteUrls = true;
|
|
2088
|
-
}
|
|
2089
|
-
validator.assertOptions(config, {
|
|
2090
|
-
baseUrl: validators.spelling("baseURL"),
|
|
2091
|
-
withXsrfToken: validators.spelling("withXSRFToken")
|
|
2092
|
-
}, true);
|
|
2093
|
-
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
2094
|
-
let contextHeaders = headers && utils$1.merge(
|
|
2095
|
-
headers.common,
|
|
2096
|
-
headers[config.method]
|
|
1464
|
+
throw r;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
_request(t, n) {
|
|
1468
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
|
|
1469
|
+
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1470
|
+
r !== void 0 && te.assertOptions(r, {
|
|
1471
|
+
silentJSONParsing: F.transitional(F.boolean),
|
|
1472
|
+
forcedJSONParsing: F.transitional(F.boolean),
|
|
1473
|
+
clarifyTimeoutError: F.transitional(F.boolean)
|
|
1474
|
+
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1475
|
+
serialize: s
|
|
1476
|
+
} : te.assertOptions(s, {
|
|
1477
|
+
encode: F.function,
|
|
1478
|
+
serialize: F.function
|
|
1479
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), te.assertOptions(n, {
|
|
1480
|
+
baseUrl: F.spelling("baseURL"),
|
|
1481
|
+
withXsrfToken: F.spelling("withXSRFToken")
|
|
1482
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1483
|
+
let o = i && a.merge(
|
|
1484
|
+
i.common,
|
|
1485
|
+
i[n.method]
|
|
2097
1486
|
);
|
|
2098
|
-
|
|
1487
|
+
i && a.forEach(
|
|
2099
1488
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2100
|
-
(
|
|
2101
|
-
delete
|
|
1489
|
+
(u) => {
|
|
1490
|
+
delete i[u];
|
|
2102
1491
|
}
|
|
2103
|
-
);
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
|
|
2109
|
-
return;
|
|
2110
|
-
}
|
|
2111
|
-
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
2112
|
-
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
1492
|
+
), n.headers = A.concat(o, i);
|
|
1493
|
+
const c = [];
|
|
1494
|
+
let d = !0;
|
|
1495
|
+
this.interceptors.request.forEach(function(m) {
|
|
1496
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, c.unshift(m.fulfilled, m.rejected));
|
|
2113
1497
|
});
|
|
2114
|
-
const
|
|
2115
|
-
this.interceptors.response.forEach(function
|
|
2116
|
-
|
|
1498
|
+
const f = [];
|
|
1499
|
+
this.interceptors.response.forEach(function(m) {
|
|
1500
|
+
f.push(m.fulfilled, m.rejected);
|
|
2117
1501
|
});
|
|
2118
|
-
let
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
}
|
|
2130
|
-
return promise;
|
|
2131
|
-
}
|
|
2132
|
-
len = requestInterceptorChain.length;
|
|
2133
|
-
let newConfig = config;
|
|
2134
|
-
i = 0;
|
|
2135
|
-
while (i < len) {
|
|
2136
|
-
const onFulfilled = requestInterceptorChain[i++];
|
|
2137
|
-
const onRejected = requestInterceptorChain[i++];
|
|
1502
|
+
let l, h = 0, b;
|
|
1503
|
+
if (!d) {
|
|
1504
|
+
const u = [$e.bind(this), void 0];
|
|
1505
|
+
for (u.unshift(...c), u.push(...f), b = u.length, l = Promise.resolve(n); h < b; )
|
|
1506
|
+
l = l.then(u[h++], u[h++]);
|
|
1507
|
+
return l;
|
|
1508
|
+
}
|
|
1509
|
+
b = c.length;
|
|
1510
|
+
let R = n;
|
|
1511
|
+
for (; h < b; ) {
|
|
1512
|
+
const u = c[h++], m = c[h++];
|
|
2138
1513
|
try {
|
|
2139
|
-
|
|
2140
|
-
} catch (
|
|
2141
|
-
|
|
1514
|
+
R = u(R);
|
|
1515
|
+
} catch (p) {
|
|
1516
|
+
m.call(this, p);
|
|
2142
1517
|
break;
|
|
2143
1518
|
}
|
|
2144
1519
|
}
|
|
2145
1520
|
try {
|
|
2146
|
-
|
|
2147
|
-
} catch (
|
|
2148
|
-
return Promise.reject(
|
|
1521
|
+
l = $e.call(this, R);
|
|
1522
|
+
} catch (u) {
|
|
1523
|
+
return Promise.reject(u);
|
|
2149
1524
|
}
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
2154
|
-
}
|
|
2155
|
-
return promise;
|
|
1525
|
+
for (h = 0, b = f.length; h < b; )
|
|
1526
|
+
l = l.then(f[h++], f[h++]);
|
|
1527
|
+
return l;
|
|
2156
1528
|
}
|
|
2157
|
-
getUri(
|
|
2158
|
-
|
|
2159
|
-
const
|
|
2160
|
-
return
|
|
1529
|
+
getUri(t) {
|
|
1530
|
+
t = q(this.defaults, t);
|
|
1531
|
+
const n = lt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1532
|
+
return st(n, t.params, t.paramsSerializer);
|
|
2161
1533
|
}
|
|
2162
1534
|
}
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
return this.request(
|
|
2166
|
-
method,
|
|
2167
|
-
url,
|
|
2168
|
-
data: (
|
|
1535
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1536
|
+
j.prototype[t] = function(n, r) {
|
|
1537
|
+
return this.request(q(r || {}, {
|
|
1538
|
+
method: t,
|
|
1539
|
+
url: n,
|
|
1540
|
+
data: (r || {}).data
|
|
2169
1541
|
}));
|
|
2170
1542
|
};
|
|
2171
1543
|
});
|
|
2172
|
-
|
|
2173
|
-
function
|
|
2174
|
-
return function
|
|
2175
|
-
return this.request(
|
|
2176
|
-
method,
|
|
2177
|
-
headers:
|
|
1544
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
1545
|
+
function n(r) {
|
|
1546
|
+
return function(i, o, c) {
|
|
1547
|
+
return this.request(q(c || {}, {
|
|
1548
|
+
method: t,
|
|
1549
|
+
headers: r ? {
|
|
2178
1550
|
"Content-Type": "multipart/form-data"
|
|
2179
1551
|
} : {},
|
|
2180
|
-
url,
|
|
2181
|
-
data
|
|
1552
|
+
url: i,
|
|
1553
|
+
data: o
|
|
2182
1554
|
}));
|
|
2183
1555
|
};
|
|
2184
1556
|
}
|
|
2185
|
-
|
|
2186
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
1557
|
+
j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
|
|
2187
1558
|
});
|
|
2188
|
-
class
|
|
2189
|
-
constructor(
|
|
2190
|
-
if (typeof
|
|
1559
|
+
class Re {
|
|
1560
|
+
constructor(t) {
|
|
1561
|
+
if (typeof t != "function")
|
|
2191
1562
|
throw new TypeError("executor must be a function.");
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
resolvePromise = resolve;
|
|
1563
|
+
let n;
|
|
1564
|
+
this.promise = new Promise(function(i) {
|
|
1565
|
+
n = i;
|
|
2196
1566
|
});
|
|
2197
|
-
const
|
|
2198
|
-
this.promise.then((
|
|
2199
|
-
if (!
|
|
2200
|
-
let i =
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
};
|
|
2215
|
-
return promise;
|
|
2216
|
-
};
|
|
2217
|
-
executor(function cancel(message, config, request) {
|
|
2218
|
-
if (token.reason) {
|
|
2219
|
-
return;
|
|
2220
|
-
}
|
|
2221
|
-
token.reason = new CanceledError(message, config, request);
|
|
2222
|
-
resolvePromise(token.reason);
|
|
1567
|
+
const r = this;
|
|
1568
|
+
this.promise.then((s) => {
|
|
1569
|
+
if (!r._listeners) return;
|
|
1570
|
+
let i = r._listeners.length;
|
|
1571
|
+
for (; i-- > 0; )
|
|
1572
|
+
r._listeners[i](s);
|
|
1573
|
+
r._listeners = null;
|
|
1574
|
+
}), this.promise.then = (s) => {
|
|
1575
|
+
let i;
|
|
1576
|
+
const o = new Promise((c) => {
|
|
1577
|
+
r.subscribe(c), i = c;
|
|
1578
|
+
}).then(s);
|
|
1579
|
+
return o.cancel = function() {
|
|
1580
|
+
r.unsubscribe(i);
|
|
1581
|
+
}, o;
|
|
1582
|
+
}, t(function(i, o, c) {
|
|
1583
|
+
r.reason || (r.reason = new z(i, o, c), n(r.reason));
|
|
2223
1584
|
});
|
|
2224
1585
|
}
|
|
2225
1586
|
/**
|
|
2226
1587
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
2227
1588
|
*/
|
|
2228
1589
|
throwIfRequested() {
|
|
2229
|
-
if (this.reason)
|
|
1590
|
+
if (this.reason)
|
|
2230
1591
|
throw this.reason;
|
|
2231
|
-
}
|
|
2232
1592
|
}
|
|
2233
1593
|
/**
|
|
2234
1594
|
* Subscribe to the cancel signal
|
|
2235
1595
|
*/
|
|
2236
|
-
subscribe(
|
|
1596
|
+
subscribe(t) {
|
|
2237
1597
|
if (this.reason) {
|
|
2238
|
-
|
|
1598
|
+
t(this.reason);
|
|
2239
1599
|
return;
|
|
2240
1600
|
}
|
|
2241
|
-
|
|
2242
|
-
this._listeners.push(listener);
|
|
2243
|
-
} else {
|
|
2244
|
-
this._listeners = [listener];
|
|
2245
|
-
}
|
|
1601
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
2246
1602
|
}
|
|
2247
1603
|
/**
|
|
2248
1604
|
* Unsubscribe from the cancel signal
|
|
2249
1605
|
*/
|
|
2250
|
-
unsubscribe(
|
|
2251
|
-
if (!this._listeners)
|
|
1606
|
+
unsubscribe(t) {
|
|
1607
|
+
if (!this._listeners)
|
|
2252
1608
|
return;
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
if (index !== -1) {
|
|
2256
|
-
this._listeners.splice(index, 1);
|
|
2257
|
-
}
|
|
1609
|
+
const n = this._listeners.indexOf(t);
|
|
1610
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
2258
1611
|
}
|
|
2259
1612
|
toAbortSignal() {
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
controller.abort(err);
|
|
1613
|
+
const t = new AbortController(), n = (r) => {
|
|
1614
|
+
t.abort(r);
|
|
2263
1615
|
};
|
|
2264
|
-
this.subscribe(
|
|
2265
|
-
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
2266
|
-
return controller.signal;
|
|
1616
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
2267
1617
|
}
|
|
2268
1618
|
/**
|
|
2269
1619
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
2270
1620
|
* cancels the `CancelToken`.
|
|
2271
1621
|
*/
|
|
2272
1622
|
static source() {
|
|
2273
|
-
let
|
|
2274
|
-
const token = new CancelToken(function executor(c) {
|
|
2275
|
-
cancel = c;
|
|
2276
|
-
});
|
|
1623
|
+
let t;
|
|
2277
1624
|
return {
|
|
2278
|
-
token
|
|
2279
|
-
|
|
1625
|
+
token: new Re(function(s) {
|
|
1626
|
+
t = s;
|
|
1627
|
+
}),
|
|
1628
|
+
cancel: t
|
|
2280
1629
|
};
|
|
2281
1630
|
}
|
|
2282
1631
|
}
|
|
2283
|
-
function
|
|
2284
|
-
return function
|
|
2285
|
-
return
|
|
1632
|
+
function zn(e) {
|
|
1633
|
+
return function(n) {
|
|
1634
|
+
return e.apply(null, n);
|
|
2286
1635
|
};
|
|
2287
1636
|
}
|
|
2288
|
-
function
|
|
2289
|
-
return
|
|
1637
|
+
function Jn(e) {
|
|
1638
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
2290
1639
|
}
|
|
2291
|
-
const
|
|
1640
|
+
const be = {
|
|
2292
1641
|
Continue: 100,
|
|
2293
1642
|
SwitchingProtocols: 101,
|
|
2294
1643
|
Processing: 102,
|
|
@@ -2353,62 +1702,48 @@ const HttpStatusCode = {
|
|
|
2353
1702
|
NotExtended: 510,
|
|
2354
1703
|
NetworkAuthenticationRequired: 511
|
|
2355
1704
|
};
|
|
2356
|
-
Object.entries(
|
|
2357
|
-
|
|
1705
|
+
Object.entries(be).forEach(([e, t]) => {
|
|
1706
|
+
be[t] = e;
|
|
2358
1707
|
});
|
|
2359
|
-
function
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
instance.create = function create(instanceConfig) {
|
|
2365
|
-
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
2366
|
-
};
|
|
2367
|
-
return instance;
|
|
1708
|
+
function ht(e) {
|
|
1709
|
+
const t = new j(e), n = We(j.prototype.request, t);
|
|
1710
|
+
return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1711
|
+
return ht(q(e, s));
|
|
1712
|
+
}, n;
|
|
2368
1713
|
}
|
|
2369
|
-
const
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
return Promise.all(
|
|
1714
|
+
const w = ht(v);
|
|
1715
|
+
w.Axios = j;
|
|
1716
|
+
w.CanceledError = z;
|
|
1717
|
+
w.CancelToken = Re;
|
|
1718
|
+
w.isCancel = at;
|
|
1719
|
+
w.VERSION = pt;
|
|
1720
|
+
w.toFormData = ie;
|
|
1721
|
+
w.AxiosError = y;
|
|
1722
|
+
w.Cancel = w.CanceledError;
|
|
1723
|
+
w.all = function(t) {
|
|
1724
|
+
return Promise.all(t);
|
|
2380
1725
|
};
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
const
|
|
1726
|
+
w.spread = zn;
|
|
1727
|
+
w.isAxiosError = Jn;
|
|
1728
|
+
w.mergeConfig = q;
|
|
1729
|
+
w.AxiosHeaders = A;
|
|
1730
|
+
w.formToJSON = (e) => it(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1731
|
+
w.getAdapter = dt.getAdapter;
|
|
1732
|
+
w.HttpStatusCode = be;
|
|
1733
|
+
w.default = w;
|
|
1734
|
+
const Se = {
|
|
2390
1735
|
fetchLiveList: "get_live_list",
|
|
2391
1736
|
destroyRoom: "destroy_room",
|
|
2392
1737
|
getRoomInfo: "get_room_info"
|
|
2393
|
-
}
|
|
2394
|
-
const
|
|
2395
|
-
return await sendRequest(baseUrl, API_NAME.fetchLiveList, data);
|
|
2396
|
-
};
|
|
2397
|
-
const destroyRoom = async (baseUrl, data) => {
|
|
2398
|
-
return await sendRequest(baseUrl, API_NAME.destroyRoom, data);
|
|
2399
|
-
};
|
|
2400
|
-
const getRoomInfo = async (baseUrl, data) => {
|
|
2401
|
-
return await sendRequest(baseUrl, API_NAME.getRoomInfo, data);
|
|
2402
|
-
};
|
|
2403
|
-
const sendRequest = async (baseUrl, interfaceName, data) => {
|
|
2404
|
-
const result = await axios.post(`${baseUrl}/${interfaceName}`, data);
|
|
1738
|
+
}, $n = async (e, t) => await Oe(e, Se.fetchLiveList, t), Vn = async (e, t) => await Oe(e, Se.destroyRoom, t), Wn = async (e, t) => await Oe(e, Se.getRoomInfo, t), Oe = async (e, t, n) => {
|
|
1739
|
+
const r = await w.post(`${e}/${t}`, n);
|
|
2405
1740
|
return {
|
|
2406
|
-
code:
|
|
2407
|
-
data:
|
|
1741
|
+
code: r.data.ErrorCode,
|
|
1742
|
+
data: r.data.ErrorCode === 0 ? r.data.Response : r.data.ErrorInfo
|
|
2408
1743
|
};
|
|
2409
1744
|
};
|
|
2410
1745
|
export {
|
|
2411
|
-
destroyRoom,
|
|
2412
|
-
fetchLiveList,
|
|
2413
|
-
getRoomInfo
|
|
1746
|
+
Vn as destroyRoom,
|
|
1747
|
+
$n as fetchLiveList,
|
|
1748
|
+
Wn as getRoomInfo
|
|
2414
1749
|
};
|