aliyun-rtc-sdk 7.2.9 → 7.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aliyun-rtc-sdk.es.js +239 -232
- package/dist/aliyun-rtc-sdk.umd.js +6 -6
- package/dist/types/index.d.ts +10 -5
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ var is = (a, s, e) => s in a ? po(a, s, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
hr.call(s, e) && is(a, e, s[e]);
|
|
10
10
|
return a;
|
|
11
11
|
}, dt = (a, s) => mo(a, go(s));
|
|
12
|
-
var
|
|
12
|
+
var Ct = (a, s) => {
|
|
13
13
|
var e = {};
|
|
14
14
|
for (var t in a)
|
|
15
15
|
dr.call(a, t) && s.indexOf(t) < 0 && (e[t] = a[t]);
|
|
@@ -36,9 +36,9 @@ var _ = (a, s, e) => new Promise((t, i) => {
|
|
|
36
36
|
}, o = (c) => c.done ? t(c.value) : Promise.resolve(c.value).then(r, n);
|
|
37
37
|
o((e = e.apply(a, s)).next());
|
|
38
38
|
});
|
|
39
|
-
import { AliRTS as ge, EConnectStatus as $i, DynamicConfig as So, EDatachannelStatus as ur } from "aliyun-rts-sdk";
|
|
39
|
+
import { AliRTS as ge, EConnectStatus as $i, DynamicConfig as So, EDatachannelStatus as ur } from "aliyun-rts-live-sdk";
|
|
40
40
|
import Je from "eventemitter3";
|
|
41
|
-
var
|
|
41
|
+
var Tn = ((a) => (a.EnableNonOnePcDefaultJoinMode = "h5_enable_non_one_pc_default_join_mode", a))(Tn || {});
|
|
42
42
|
function mi() {
|
|
43
43
|
}
|
|
44
44
|
let Ni = 0, xi = !1;
|
|
@@ -55,7 +55,7 @@ const hi = () => {
|
|
|
55
55
|
const a = jt.getInstance();
|
|
56
56
|
a.state !== "running" && a.state !== "closed" && ((s = a.resume()) == null || s.then(mi, mi).catch(mi)), window.removeEventListener("mousedown", hi), window.removeEventListener("touchstart", hi);
|
|
57
57
|
};
|
|
58
|
-
var zt = ((a) => (a.prod = "rs.rtn.aliyuncs.com", a.pre = "prs.rtn.aliyuncs.com", a))(zt || {}), Rt = ((a) => (a.pre = "pre", a.prod = "prod", a))(Rt || {}), Ut = ((a) => (a.AliRtcSdkCommunication = "communication", a.AliRtcSdkInteractiveLive = "interactive_live", a.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", a))(Ut || {}), Qt = ((a) => (a.AliRtcSdkInteractive = "interactive", a.AliRtcSdkLive = "live", a))(Qt || {}), Lt = ((a) => (a[a.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", a[a.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", a[a.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", a[a.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", a[a.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", a[a.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", a[a.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", a))(Lt || {}), We = ((a) => (a[a.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", a[a.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", a[a.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", a[a.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", a[a.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", a[a.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", a[a.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", a[a.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", a[a.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", a[a.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", a[a.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", a[a.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", a[a.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", a[a.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", a))(We || {}), re = ((a) => (a[a.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", a[a.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", a[a.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", a[a.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", a[a.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", a[a.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", a))(re || {}), Ct = ((a) => (a[a.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", a[a.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", a[a.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", a[a.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", a[a.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", a[a.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", a[a.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", a[a.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", a[a.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", a[a.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", a[a.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", a[a.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", a[a.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", a))(Ct || {}), Ks = ((a) => (a[a.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", a[a.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", a[a.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", a))(Ks || {}), gi = ((a) => (a[a.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", a[a.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", a[a.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", a))(gi || {}), de = ((a) => (a[a.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", a[a.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", a[a.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", a[a.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", a))(de || {}), Z = ((a) => (a[a.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", a[a.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", a[a.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", a[a.AliRtcStatePublished = 3] = "AliRtcStatePublished", a[a.AliRtcStateReconnecting = 4] = "AliRtcStateReconnecting", a))(Z || {}), ne = ((a) => (a[a.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", a[a.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", a[a.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", a[a.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", a[a.AliRtcStateReconnecting = 4] = "AliRtcStateReconnecting", a))(ne || {}), Ye = ((a) => (a[a.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", a[a.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", a[a.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", a))(Ye || {}), _i = ((a) => (a[a.CAMERA_INVALID = -1] = "CAMERA_INVALID", a[a.CAMERA_REAR = 0] = "CAMERA_REAR", a[a.CAMERA_FRONT = 1] = "CAMERA_FRONT", a))(_i || {}), ct = ((a) => (a[a.AliRtcNetworkExcellent = 0] = "AliRtcNetworkExcellent", a[a.AliRtcNetworkGood = 1] = "AliRtcNetworkGood", a[a.AliRtcNetworkPoor = 2] = "AliRtcNetworkPoor", a[a.AliRtcNetworkBad = 3] = "AliRtcNetworkBad", a[a.AliRtcNetworkVeryBad = 4] = "AliRtcNetworkVeryBad", a[a.AliRtcNetworkDisconnected = 5] = "AliRtcNetworkDisconnected", a[a.AliRtcNetworkUnknown = 6] = "AliRtcNetworkUnknown", a))(ct || {}), Me = ((a) => (a.PullStreamStats = "remoteStat", a.RtsSubscribeExceeds = "rtsSubscribeExceeds", a.UserJoined = "userJoined", a.UserLeft = "userLeft", a.Bye = "bye", a.MuteAudio = "muteAudio", a.UnmuteAudio = "unmuteAudio", a.MuteVideo = "muteVideo", a.UnmuteVideo = "unmuteVideo", a.MuteScreen = "muteScreen", a.UnmuteScreen = "unmuteScreen", a.Error = "error", a))(Me || {}), lt = ((a) => (a.Local = "local-device-status-change", a.Remote = "remote-device-status-change", a))(lt || {}), P = ((a) => (a.Audio = "sophon_audio", a.VideoLarge = "sophon_video_camera_large", a.VideoSmall = "sophon_video_camera_small", a.Screen = "sophon_video_screen_share", a.Data = "sophon_data", a))(P || {}), ks = ((a) => (a.Audio = "rts audio", a.VideoLarge = "rts video", a))(ks || {}), kt = ((a) => (a.Add = "add", a.Delete = "delete", a.Replace = "replace", a.Stop = "stop", a.UnPublish = "unpublish", a))(kt || {}), Ii = ((a) => (a[a.Camera = 0] = "Camera", a[a.Screen = 1] = "Screen", a[a.Image = 2] = "Image", a))(Ii || {}), Wi = ((a) => (a[a.Microphone = 0] = "Microphone", a[a.Screen = 1] = "Screen", a[a.Mixed = 2] = "Mixed", a))(Wi || {}), pe = ((a) => (a.InRoom = "inRoom", a.Join = "join", a.Publish = "publish", a.User = "user", a.Resume = "resume", a.Retry = "retry", a.Reconnect = "reconnect", a))(pe || {}), Et = ((a) => (a[a.MANUAL = 0] = "MANUAL", a[a.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", a[a.ROLE_CHANGE = 2] = "ROLE_CHANGE", a[a.RECONNECT = 3] = "RECONNECT", a))(Et || {}), B = ((a) => (a[a.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", a[a.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", a[a.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", a[a.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", a[a.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", a[a.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", a[a.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", a[a.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", a[a.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", a[a.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", a[a.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", a[a.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", a[a.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", a[a.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", a[a.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", a[a.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", a[a.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", a[a.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", a[a.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", a[a.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", a[a.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", a[a.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", a[a.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", a[a.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", a[a.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", a[a.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", a[a.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", a[a.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", a[a.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", a[a.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", a[a.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", a[a.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", a[a.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", a[a.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", a[a.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", a[a.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", a[a.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", a[a.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", a[a.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", a[a.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", a[a.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", a[a.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", a[a.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", a[a.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", a[a.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", a[a.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", a[a.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", a[a.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", a[a.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", a[a.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", a[a.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", a[a.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", a[a.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", a[a.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", a[a.ERR_INNER = -1] = "ERR_INNER", a[a.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", a[a.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", a[a.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", a[a.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", a[a.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", a[a.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", a[a.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", a[a.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", a[a.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", a[a.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", a[a.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", a[a.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", a[a.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", a[a.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", a[a.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", a[a.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", a))(B || {});
|
|
58
|
+
var zt = ((a) => (a.prod = "rs.rtn.aliyuncs.com", a.pre = "prs.rtn.aliyuncs.com", a))(zt || {}), Rt = ((a) => (a.pre = "pre", a.prod = "prod", a))(Rt || {}), Ut = ((a) => (a.AliRtcSdkCommunication = "communication", a.AliRtcSdkInteractiveLive = "interactive_live", a.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", a))(Ut || {}), Qt = ((a) => (a.AliRtcSdkInteractive = "interactive", a.AliRtcSdkLive = "live", a))(Qt || {}), Lt = ((a) => (a[a.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", a[a.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", a[a.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", a[a.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", a[a.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", a[a.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", a[a.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", a))(Lt || {}), We = ((a) => (a[a.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", a[a.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", a[a.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", a[a.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", a[a.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", a[a.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", a[a.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", a[a.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", a[a.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", a[a.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", a[a.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", a[a.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", a[a.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", a[a.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", a))(We || {}), re = ((a) => (a[a.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", a[a.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", a[a.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", a[a.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", a[a.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", a[a.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", a))(re || {}), Tt = ((a) => (a[a.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", a[a.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", a[a.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", a[a.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", a[a.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", a[a.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", a[a.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", a[a.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", a[a.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", a[a.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", a[a.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", a[a.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", a[a.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", a))(Tt || {}), Ks = ((a) => (a[a.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", a[a.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", a[a.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", a))(Ks || {}), gi = ((a) => (a[a.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", a[a.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", a[a.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", a))(gi || {}), de = ((a) => (a[a.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", a[a.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", a[a.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", a[a.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", a))(de || {}), Z = ((a) => (a[a.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", a[a.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", a[a.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", a[a.AliRtcStatePublished = 3] = "AliRtcStatePublished", a[a.AliRtcStateReconnecting = 4] = "AliRtcStateReconnecting", a))(Z || {}), ne = ((a) => (a[a.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", a[a.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", a[a.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", a[a.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", a[a.AliRtcStateReconnecting = 4] = "AliRtcStateReconnecting", a))(ne || {}), Ye = ((a) => (a[a.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", a[a.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", a[a.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", a))(Ye || {}), _i = ((a) => (a[a.CAMERA_INVALID = -1] = "CAMERA_INVALID", a[a.CAMERA_REAR = 0] = "CAMERA_REAR", a[a.CAMERA_FRONT = 1] = "CAMERA_FRONT", a))(_i || {}), ct = ((a) => (a[a.AliRtcNetworkExcellent = 0] = "AliRtcNetworkExcellent", a[a.AliRtcNetworkGood = 1] = "AliRtcNetworkGood", a[a.AliRtcNetworkPoor = 2] = "AliRtcNetworkPoor", a[a.AliRtcNetworkBad = 3] = "AliRtcNetworkBad", a[a.AliRtcNetworkVeryBad = 4] = "AliRtcNetworkVeryBad", a[a.AliRtcNetworkDisconnected = 5] = "AliRtcNetworkDisconnected", a[a.AliRtcNetworkUnknown = 6] = "AliRtcNetworkUnknown", a))(ct || {}), Me = ((a) => (a.PullStreamStats = "remoteStat", a.RtsSubscribeExceeds = "rtsSubscribeExceeds", a.UserJoined = "userJoined", a.UserLeft = "userLeft", a.Bye = "bye", a.MuteAudio = "muteAudio", a.UnmuteAudio = "unmuteAudio", a.MuteVideo = "muteVideo", a.UnmuteVideo = "unmuteVideo", a.MuteScreen = "muteScreen", a.UnmuteScreen = "unmuteScreen", a.Error = "error", a))(Me || {}), lt = ((a) => (a.Local = "local-device-status-change", a.Remote = "remote-device-status-change", a))(lt || {}), P = ((a) => (a.Audio = "sophon_audio", a.VideoLarge = "sophon_video_camera_large", a.VideoSmall = "sophon_video_camera_small", a.Screen = "sophon_video_screen_share", a.Data = "sophon_data", a))(P || {}), ks = ((a) => (a.Audio = "rts audio", a.VideoLarge = "rts video", a))(ks || {}), kt = ((a) => (a.Add = "add", a.Delete = "delete", a.Replace = "replace", a.Stop = "stop", a.UnPublish = "unpublish", a))(kt || {}), Ii = ((a) => (a[a.Camera = 0] = "Camera", a[a.Screen = 1] = "Screen", a[a.Image = 2] = "Image", a))(Ii || {}), Wi = ((a) => (a[a.Microphone = 0] = "Microphone", a[a.Screen = 1] = "Screen", a[a.Mixed = 2] = "Mixed", a))(Wi || {}), pe = ((a) => (a.InRoom = "inRoom", a.Join = "join", a.Publish = "publish", a.User = "user", a.Resume = "resume", a.Retry = "retry", a.Reconnect = "reconnect", a))(pe || {}), Et = ((a) => (a[a.MANUAL = 0] = "MANUAL", a[a.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", a[a.ROLE_CHANGE = 2] = "ROLE_CHANGE", a[a.RECONNECT = 3] = "RECONNECT", a))(Et || {}), B = ((a) => (a[a.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", a[a.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", a[a.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", a[a.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", a[a.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", a[a.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", a[a.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", a[a.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", a[a.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", a[a.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", a[a.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", a[a.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", a[a.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", a[a.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", a[a.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", a[a.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", a[a.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", a[a.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", a[a.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", a[a.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", a[a.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", a[a.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", a[a.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", a[a.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", a[a.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", a[a.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", a[a.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", a[a.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", a[a.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", a[a.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", a[a.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", a[a.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", a[a.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", a[a.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", a[a.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", a[a.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", a[a.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", a[a.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", a[a.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", a[a.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", a[a.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", a[a.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", a[a.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", a[a.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", a[a.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", a[a.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", a[a.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", a[a.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", a[a.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", a[a.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", a[a.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", a[a.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", a[a.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", a[a.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", a[a.ERR_INNER = -1] = "ERR_INNER", a[a.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", a[a.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", a[a.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", a[a.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", a[a.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", a[a.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", a[a.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", a[a.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", a[a.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", a[a.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", a[a.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", a[a.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", a[a.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", a[a.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", a[a.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", a[a.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", a))(B || {});
|
|
59
59
|
class V extends Error {
|
|
60
60
|
constructor(e, t, i) {
|
|
61
61
|
super(t);
|
|
@@ -193,7 +193,7 @@ function gt(a, s, e) {
|
|
|
193
193
|
return (qe[r[n + 0]] + qe[r[n + 1]] + qe[r[n + 2]] + qe[r[n + 3]] + "-" + qe[r[n + 4]] + qe[r[n + 5]] + "-" + qe[r[n + 6]] + qe[r[n + 7]] + "-" + qe[r[n + 8]] + qe[r[n + 9]] + "-" + qe[r[n + 10]] + qe[r[n + 11]] + qe[r[n + 12]] + qe[r[n + 13]] + qe[r[n + 14]] + qe[r[n + 15]]).toLowerCase();
|
|
194
194
|
}(t);
|
|
195
195
|
}
|
|
196
|
-
const ki = "7.2.
|
|
196
|
+
const ki = "7.2.10";
|
|
197
197
|
class Le {
|
|
198
198
|
static getVersionNumber() {
|
|
199
199
|
let s = ki.split("."), e = "";
|
|
@@ -404,13 +404,13 @@ function ue() {
|
|
|
404
404
|
}, _append: function(m) {
|
|
405
405
|
typeof m == "string" && (m = u.parse(m)), this._data.concat(m), this._nDataBytes += m.sigBytes;
|
|
406
406
|
}, _process: function(m) {
|
|
407
|
-
var S, R = this._data, A = R.words, v = R.sigBytes, y = this.blockSize, I = v / (4 * y), w = (I = m ? s.ceil(I) : s.max((0 | I) - this._minBufferSize, 0)) * y,
|
|
407
|
+
var S, R = this._data, A = R.words, v = R.sigBytes, y = this.blockSize, I = v / (4 * y), w = (I = m ? s.ceil(I) : s.max((0 | I) - this._minBufferSize, 0)) * y, C = s.min(4 * w, v);
|
|
408
408
|
if (w) {
|
|
409
|
-
for (var
|
|
410
|
-
this._doProcessBlock(A,
|
|
411
|
-
S = A.splice(0, w), R.sigBytes -=
|
|
409
|
+
for (var T = 0; T < w; T += y)
|
|
410
|
+
this._doProcessBlock(A, T);
|
|
411
|
+
S = A.splice(0, w), R.sigBytes -= C;
|
|
412
412
|
}
|
|
413
|
-
return new l.init(S,
|
|
413
|
+
return new l.init(S, C);
|
|
414
414
|
}, clone: function() {
|
|
415
415
|
var m = c.clone.call(this);
|
|
416
416
|
return m._data = this._data.clone(), m;
|
|
@@ -509,9 +509,9 @@ function Eo() {
|
|
|
509
509
|
}(), a.enc.Utf16;
|
|
510
510
|
}(ue())), Er.exports;
|
|
511
511
|
}
|
|
512
|
-
var
|
|
512
|
+
var Cr, Tr = { exports: {} };
|
|
513
513
|
function Zt() {
|
|
514
|
-
return
|
|
514
|
+
return Cr || (Cr = 1, Tr.exports = function(a) {
|
|
515
515
|
return function() {
|
|
516
516
|
var s = a, e = s.lib.WordArray;
|
|
517
517
|
function t(i, r, n) {
|
|
@@ -548,10 +548,10 @@ function Zt() {
|
|
|
548
548
|
return t(i, r, o);
|
|
549
549
|
}, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" };
|
|
550
550
|
}(), a.enc.Base64;
|
|
551
|
-
}(ue())),
|
|
551
|
+
}(ue())), Tr.exports;
|
|
552
552
|
}
|
|
553
553
|
var kr, Pr = { exports: {} };
|
|
554
|
-
function
|
|
554
|
+
function Co() {
|
|
555
555
|
return kr || (kr = 1, Pr.exports = function(a) {
|
|
556
556
|
return function() {
|
|
557
557
|
var s = a, e = s.lib.WordArray;
|
|
@@ -609,8 +609,8 @@ function ei() {
|
|
|
609
609
|
var m = b + g, S = u[m];
|
|
610
610
|
u[m] = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8);
|
|
611
611
|
}
|
|
612
|
-
var R = this._hash.words, A = u[b + 0], v = u[b + 1], y = u[b + 2], I = u[b + 3], w = u[b + 4],
|
|
613
|
-
M = l(M, O, D, x, A, 7, o[0]), x = l(x, M, O, D, v, 12, o[1]), D = l(D, x, M, O, y, 17, o[2]), O = l(O, D, x, M, I, 22, o[3]), M = l(M, O, D, x, w, 7, o[4]), x = l(x, M, O, D,
|
|
612
|
+
var R = this._hash.words, A = u[b + 0], v = u[b + 1], y = u[b + 2], I = u[b + 3], w = u[b + 4], C = u[b + 5], T = u[b + 6], L = u[b + 7], N = u[b + 8], U = u[b + 9], z = u[b + 10], Y = u[b + 11], K = u[b + 12], $ = u[b + 13], Q = u[b + 14], te = u[b + 15], M = R[0], O = R[1], D = R[2], x = R[3];
|
|
613
|
+
M = l(M, O, D, x, A, 7, o[0]), x = l(x, M, O, D, v, 12, o[1]), D = l(D, x, M, O, y, 17, o[2]), O = l(O, D, x, M, I, 22, o[3]), M = l(M, O, D, x, w, 7, o[4]), x = l(x, M, O, D, C, 12, o[5]), D = l(D, x, M, O, T, 17, o[6]), O = l(O, D, x, M, L, 22, o[7]), M = l(M, O, D, x, N, 7, o[8]), x = l(x, M, O, D, U, 12, o[9]), D = l(D, x, M, O, z, 17, o[10]), O = l(O, D, x, M, Y, 22, o[11]), M = l(M, O, D, x, K, 7, o[12]), x = l(x, M, O, D, $, 12, o[13]), D = l(D, x, M, O, Q, 17, o[14]), M = d(M, O = l(O, D, x, M, te, 22, o[15]), D, x, v, 5, o[16]), x = d(x, M, O, D, T, 9, o[17]), D = d(D, x, M, O, Y, 14, o[18]), O = d(O, D, x, M, A, 20, o[19]), M = d(M, O, D, x, C, 5, o[20]), x = d(x, M, O, D, z, 9, o[21]), D = d(D, x, M, O, te, 14, o[22]), O = d(O, D, x, M, w, 20, o[23]), M = d(M, O, D, x, U, 5, o[24]), x = d(x, M, O, D, Q, 9, o[25]), D = d(D, x, M, O, I, 14, o[26]), O = d(O, D, x, M, N, 20, o[27]), M = d(M, O, D, x, $, 5, o[28]), x = d(x, M, O, D, y, 9, o[29]), D = d(D, x, M, O, L, 14, o[30]), M = h(M, O = d(O, D, x, M, K, 20, o[31]), D, x, C, 4, o[32]), x = h(x, M, O, D, N, 11, o[33]), D = h(D, x, M, O, Y, 16, o[34]), O = h(O, D, x, M, Q, 23, o[35]), M = h(M, O, D, x, v, 4, o[36]), x = h(x, M, O, D, w, 11, o[37]), D = h(D, x, M, O, L, 16, o[38]), O = h(O, D, x, M, z, 23, o[39]), M = h(M, O, D, x, $, 4, o[40]), x = h(x, M, O, D, A, 11, o[41]), D = h(D, x, M, O, I, 16, o[42]), O = h(O, D, x, M, T, 23, o[43]), M = h(M, O, D, x, U, 4, o[44]), x = h(x, M, O, D, K, 11, o[45]), D = h(D, x, M, O, te, 16, o[46]), M = f(M, O = h(O, D, x, M, y, 23, o[47]), D, x, A, 6, o[48]), x = f(x, M, O, D, L, 10, o[49]), D = f(D, x, M, O, Q, 15, o[50]), O = f(O, D, x, M, C, 21, o[51]), M = f(M, O, D, x, K, 6, o[52]), x = f(x, M, O, D, I, 10, o[53]), D = f(D, x, M, O, z, 15, o[54]), O = f(O, D, x, M, v, 21, o[55]), M = f(M, O, D, x, N, 6, o[56]), x = f(x, M, O, D, te, 10, o[57]), D = f(D, x, M, O, T, 15, o[58]), O = f(O, D, x, M, $, 21, o[59]), M = f(M, O, D, x, w, 6, o[60]), x = f(x, M, O, D, Y, 10, o[61]), D = f(D, x, M, O, y, 15, o[62]), O = f(O, D, x, M, U, 21, o[63]), R[0] = R[0] + M | 0, R[1] = R[1] + O | 0, R[2] = R[2] + D | 0, R[3] = R[3] + x | 0;
|
|
614
614
|
}, _doFinalize: function() {
|
|
615
615
|
var u = this._data, b = u.words, g = 8 * this._nDataBytes, m = 8 * u.sigBytes;
|
|
616
616
|
b[m >>> 5] |= 128 << 24 - m % 32;
|
|
@@ -697,8 +697,8 @@ function ns() {
|
|
|
697
697
|
if (I < 16)
|
|
698
698
|
l[I] = 0 | h[f + I];
|
|
699
699
|
else {
|
|
700
|
-
var w = l[I - 15],
|
|
701
|
-
l[I] =
|
|
700
|
+
var w = l[I - 15], C = (w << 25 | w >>> 7) ^ (w << 14 | w >>> 18) ^ w >>> 3, T = l[I - 2], L = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
|
|
701
|
+
l[I] = C + l[I - 7] + L + l[I - 16];
|
|
702
702
|
}
|
|
703
703
|
var N = b & g ^ b & m ^ g & m, U = (b << 30 | b >>> 2) ^ (b << 19 | b >>> 13) ^ (b << 10 | b >>> 22), z = y + ((R << 26 | R >>> 6) ^ (R << 21 | R >>> 11) ^ (R << 7 | R >>> 25)) + (R & A ^ ~R & v) + c[I] + l[I];
|
|
704
704
|
y = v, v = A, A = R, R = S + z | 0, S = m, m = g, g = b, b = z + (U + N) | 0;
|
|
@@ -715,7 +715,7 @@ function ns() {
|
|
|
715
715
|
}(Math), a.SHA256;
|
|
716
716
|
}(ue())), Or.exports;
|
|
717
717
|
}
|
|
718
|
-
var Vr,
|
|
718
|
+
var Vr, To = { exports: {} }, Ur, Br = { exports: {} };
|
|
719
719
|
function Hr() {
|
|
720
720
|
return Ur || (Ur = 1, Br.exports = function(a) {
|
|
721
721
|
return function() {
|
|
@@ -731,7 +731,7 @@ function Hr() {
|
|
|
731
731
|
var d = n.SHA512 = e.extend({ _doReset: function() {
|
|
732
732
|
this._hash = new r.init([new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209)]);
|
|
733
733
|
}, _doProcessBlock: function(h, f) {
|
|
734
|
-
for (var u = this._hash.words, b = u[0], g = u[1], m = u[2], S = u[3], R = u[4], A = u[5], v = u[6], y = u[7], I = b.high, w = b.low,
|
|
734
|
+
for (var u = this._hash.words, b = u[0], g = u[1], m = u[2], S = u[3], R = u[4], A = u[5], v = u[6], y = u[7], I = b.high, w = b.low, C = g.high, T = g.low, L = m.high, N = m.low, U = S.high, z = S.low, Y = R.high, K = R.low, $ = A.high, Q = A.low, te = v.high, M = v.low, O = y.high, D = y.low, x = I, me = w, Re = C, Ie = T, G = L, fe = N, Oe = U, Ae = z, Se = Y, ve = K, Fe = $, se = Q, Ee = te, xe = M, le = O, oe = D, X = 0; X < 80; X++) {
|
|
735
735
|
var ye, Ne, ae = l[X];
|
|
736
736
|
if (X < 16)
|
|
737
737
|
Ne = ae.high = 0 | h[f + 2 * X], ye = ae.low = 0 | h[f + 2 * X + 1];
|
|
@@ -742,7 +742,7 @@ function Hr() {
|
|
|
742
742
|
var Jt, ao = Se & Fe ^ ~Se & Ee, ar = ve & se ^ ~ve & xe, no = x & Re ^ x & G ^ Re & G, oo = me & Ie ^ me & fe ^ Ie & fe, co = (x >>> 28 | me << 4) ^ (x << 30 | me >>> 2) ^ (x << 25 | me >>> 7), nr = (me >>> 28 | x << 4) ^ (me << 30 | x >>> 2) ^ (me << 25 | x >>> 7), lo = (Se >>> 14 | ve << 18) ^ (Se >>> 18 | ve << 14) ^ (Se << 23 | ve >>> 9), ho = (ve >>> 14 | Se << 18) ^ (ve >>> 18 | Se << 14) ^ (ve << 23 | Se >>> 9), or = c[X], uo = or.high, cr = or.low, fi = le + lo + ((Jt = oe + ho) >>> 0 < oe >>> 0 ? 1 : 0), lr = nr + oo;
|
|
743
743
|
le = Ee, oe = xe, Ee = Fe, xe = se, Fe = Se, se = ve, Se = Oe + (fi = (fi = (fi = fi + ao + ((Jt += ar) >>> 0 < ar >>> 0 ? 1 : 0)) + uo + ((Jt += cr) >>> 0 < cr >>> 0 ? 1 : 0)) + Ne + ((Jt += ye) >>> 0 < ye >>> 0 ? 1 : 0)) + ((ve = Ae + Jt | 0) >>> 0 < Ae >>> 0 ? 1 : 0) | 0, Oe = G, Ae = fe, G = Re, fe = Ie, Re = x, Ie = me, x = fi + (co + no + (lr >>> 0 < nr >>> 0 ? 1 : 0)) + ((me = Jt + lr | 0) >>> 0 < Jt >>> 0 ? 1 : 0) | 0;
|
|
744
744
|
}
|
|
745
|
-
w = b.low = w + me, b.high = I + x + (w >>> 0 < me >>> 0 ? 1 : 0),
|
|
745
|
+
w = b.low = w + me, b.high = I + x + (w >>> 0 < me >>> 0 ? 1 : 0), T = g.low = T + Ie, g.high = C + Re + (T >>> 0 < Ie >>> 0 ? 1 : 0), N = m.low = N + fe, m.high = L + G + (N >>> 0 < fe >>> 0 ? 1 : 0), z = S.low = z + Ae, S.high = U + Oe + (z >>> 0 < Ae >>> 0 ? 1 : 0), K = R.low = K + ve, R.high = Y + Se + (K >>> 0 < ve >>> 0 ? 1 : 0), Q = A.low = Q + se, A.high = $ + Fe + (Q >>> 0 < se >>> 0 ? 1 : 0), M = v.low = M + xe, v.high = te + Ee + (M >>> 0 < xe >>> 0 ? 1 : 0), D = y.low = D + oe, y.high = O + le + (D >>> 0 < oe >>> 0 ? 1 : 0);
|
|
746
746
|
}, _doFinalize: function() {
|
|
747
747
|
var h = this._data, f = h.words, u = 8 * this._nDataBytes, b = 8 * h.sigBytes;
|
|
748
748
|
return f[b >>> 5] |= 128 << 24 - b % 32, f[30 + (b + 128 >>> 10 << 5)] = Math.floor(u / 4294967296), f[31 + (b + 128 >>> 10 << 5)] = u, h.sigBytes = 4 * f.length, this._process(), this._hash.toX32();
|
|
@@ -795,15 +795,15 @@ function Po() {
|
|
|
795
795
|
}
|
|
796
796
|
for (var v = 0; v < 24; v++) {
|
|
797
797
|
for (var y = 0; y < 5; y++) {
|
|
798
|
-
for (var I = 0, w = 0,
|
|
799
|
-
I ^= (D = g[y + 5 *
|
|
800
|
-
var
|
|
801
|
-
|
|
798
|
+
for (var I = 0, w = 0, C = 0; C < 5; C++)
|
|
799
|
+
I ^= (D = g[y + 5 * C]).high, w ^= D.low;
|
|
800
|
+
var T = h[y];
|
|
801
|
+
T.high = I, T.low = w;
|
|
802
802
|
}
|
|
803
803
|
for (y = 0; y < 5; y++) {
|
|
804
804
|
var L = h[(y + 4) % 5], N = h[(y + 1) % 5], U = N.high, z = N.low;
|
|
805
|
-
for (I = L.high ^ (U << 1 | z >>> 31), w = L.low ^ (z << 1 | U >>> 31),
|
|
806
|
-
(D = g[y + 5 *
|
|
805
|
+
for (I = L.high ^ (U << 1 | z >>> 31), w = L.low ^ (z << 1 | U >>> 31), C = 0; C < 5; C++)
|
|
806
|
+
(D = g[y + 5 * C]).high ^= I, D.low ^= w;
|
|
807
807
|
}
|
|
808
808
|
for (var Y = 1; Y < 25; Y++) {
|
|
809
809
|
var K = (D = g[Y]).high, $ = D.low, Q = c[Y];
|
|
@@ -813,8 +813,8 @@ function Po() {
|
|
|
813
813
|
}
|
|
814
814
|
var M = h[0], O = g[0];
|
|
815
815
|
for (M.high = O.high, M.low = O.low, y = 0; y < 5; y++)
|
|
816
|
-
for (
|
|
817
|
-
var D = g[Y = y + 5 *
|
|
816
|
+
for (C = 0; C < 5; C++) {
|
|
817
|
+
var D = g[Y = y + 5 * C], x = h[Y], me = h[(y + 1) % 5 + 5 * C], Re = h[(y + 2) % 5 + 5 * C];
|
|
818
818
|
D.high = x.high ^ ~me.high & Re.high, D.low = x.low ^ ~me.low & Re.low;
|
|
819
819
|
}
|
|
820
820
|
D = g[0];
|
|
@@ -827,8 +827,8 @@ function Po() {
|
|
|
827
827
|
var g = 8 * u.sigBytes, m = 32 * this.blockSize;
|
|
828
828
|
b[g >>> 5] |= 1 << 24 - g % 32, b[(s.ceil((g + 1) / m) * m >>> 5) - 1] |= 128, u.sigBytes = 4 * b.length, this._process();
|
|
829
829
|
for (var S = this._state, R = this.cfg.outputLength / 8, A = R / 8, v = [], y = 0; y < A; y++) {
|
|
830
|
-
var I = S[y], w = I.high,
|
|
831
|
-
w = 16711935 & (w << 8 | w >>> 24) | 4278255360 & (w << 24 | w >>> 8),
|
|
830
|
+
var I = S[y], w = I.high, C = I.low;
|
|
831
|
+
w = 16711935 & (w << 8 | w >>> 24) | 4278255360 & (w << 24 | w >>> 8), C = 16711935 & (C << 8 | C >>> 24) | 4278255360 & (C << 24 | C >>> 8), v.push(C), v.push(w);
|
|
832
832
|
}
|
|
833
833
|
return new i.init(v, R);
|
|
834
834
|
}, clone: function() {
|
|
@@ -904,10 +904,10 @@ function Ke() {
|
|
|
904
904
|
return typeof y == "string" ? A : S;
|
|
905
905
|
}
|
|
906
906
|
return function(y) {
|
|
907
|
-
return { encrypt: function(I, w,
|
|
908
|
-
return v(w).encrypt(y, I, w,
|
|
909
|
-
}, decrypt: function(I, w,
|
|
910
|
-
return v(w).decrypt(y, I, w,
|
|
907
|
+
return { encrypt: function(I, w, C) {
|
|
908
|
+
return v(w).encrypt(y, I, w, C);
|
|
909
|
+
}, decrypt: function(I, w, C) {
|
|
910
|
+
return v(w).decrypt(y, I, w, C);
|
|
911
911
|
} };
|
|
912
912
|
};
|
|
913
913
|
}() });
|
|
@@ -922,23 +922,23 @@ function Ke() {
|
|
|
922
922
|
this._cipher = v, this._iv = y;
|
|
923
923
|
} }), u = h.CBC = function() {
|
|
924
924
|
var v = f.extend();
|
|
925
|
-
function y(I, w,
|
|
926
|
-
var
|
|
927
|
-
L ? (
|
|
928
|
-
for (var N = 0; N <
|
|
929
|
-
I[w + N] ^=
|
|
925
|
+
function y(I, w, C) {
|
|
926
|
+
var T, L = this._iv;
|
|
927
|
+
L ? (T = L, this._iv = s) : T = this._prevBlock;
|
|
928
|
+
for (var N = 0; N < C; N++)
|
|
929
|
+
I[w + N] ^= T[N];
|
|
930
930
|
}
|
|
931
931
|
return v.Encryptor = v.extend({ processBlock: function(I, w) {
|
|
932
|
-
var
|
|
933
|
-
y.call(this, I, w,
|
|
932
|
+
var C = this._cipher, T = C.blockSize;
|
|
933
|
+
y.call(this, I, w, T), C.encryptBlock(I, w), this._prevBlock = I.slice(w, w + T);
|
|
934
934
|
} }), v.Decryptor = v.extend({ processBlock: function(I, w) {
|
|
935
|
-
var
|
|
936
|
-
|
|
935
|
+
var C = this._cipher, T = C.blockSize, L = I.slice(w, w + T);
|
|
936
|
+
C.decryptBlock(I, w), y.call(this, I, w, T), this._prevBlock = L;
|
|
937
937
|
} }), v;
|
|
938
938
|
}(), b = (e.pad = {}).Pkcs7 = { pad: function(v, y) {
|
|
939
|
-
for (var I = 4 * y, w = I - v.sigBytes % I,
|
|
940
|
-
|
|
941
|
-
var N = r.create(
|
|
939
|
+
for (var I = 4 * y, w = I - v.sigBytes % I, C = w << 24 | w << 16 | w << 8 | w, T = [], L = 0; L < w; L += 4)
|
|
940
|
+
T.push(C);
|
|
941
|
+
var N = r.create(T, w);
|
|
942
942
|
v.concat(N);
|
|
943
943
|
}, unpad: function(v) {
|
|
944
944
|
var y = 255 & v.words[v.sigBytes - 1 >>> 2];
|
|
@@ -967,28 +967,28 @@ function Ke() {
|
|
|
967
967
|
return w[0] == 1398893684 && w[1] == 1701076831 && (y = r.create(w.slice(2, 4)), w.splice(0, 4), I.sigBytes -= 16), g.create({ ciphertext: I, salt: y });
|
|
968
968
|
} }, S = t.SerializableCipher = i.extend({ cfg: i.extend({ format: m }), encrypt: function(v, y, I, w) {
|
|
969
969
|
w = this.cfg.extend(w);
|
|
970
|
-
var
|
|
971
|
-
return g.create({ ciphertext:
|
|
970
|
+
var C = v.createEncryptor(I, w), T = C.finalize(y), L = C.cfg;
|
|
971
|
+
return g.create({ ciphertext: T, key: I, iv: L.iv, algorithm: v, mode: L.mode, padding: L.padding, blockSize: v.blockSize, formatter: w.format });
|
|
972
972
|
}, decrypt: function(v, y, I, w) {
|
|
973
973
|
return w = this.cfg.extend(w), y = this._parse(y, w.format), v.createDecryptor(I, w).finalize(y.ciphertext);
|
|
974
974
|
}, _parse: function(v, y) {
|
|
975
975
|
return typeof v == "string" ? y.parse(v, this) : v;
|
|
976
|
-
} }), R = (e.kdf = {}).OpenSSL = { execute: function(v, y, I, w,
|
|
977
|
-
if (w || (w = r.random(8)),
|
|
978
|
-
|
|
976
|
+
} }), R = (e.kdf = {}).OpenSSL = { execute: function(v, y, I, w, C) {
|
|
977
|
+
if (w || (w = r.random(8)), C)
|
|
978
|
+
T = l.create({ keySize: y + I, hasher: C }).compute(v, w);
|
|
979
979
|
else
|
|
980
|
-
var
|
|
981
|
-
var L = r.create(
|
|
982
|
-
return
|
|
980
|
+
var T = l.create({ keySize: y + I }).compute(v, w);
|
|
981
|
+
var L = r.create(T.words.slice(y), 4 * I);
|
|
982
|
+
return T.sigBytes = 4 * y, g.create({ key: T, iv: L, salt: w });
|
|
983
983
|
} }, A = t.PasswordBasedCipher = S.extend({ cfg: S.cfg.extend({ kdf: R }), encrypt: function(v, y, I, w) {
|
|
984
|
-
var
|
|
985
|
-
w.iv =
|
|
986
|
-
var
|
|
987
|
-
return
|
|
984
|
+
var C = (w = this.cfg.extend(w)).kdf.execute(I, v.keySize, v.ivSize, w.salt, w.hasher);
|
|
985
|
+
w.iv = C.iv;
|
|
986
|
+
var T = S.encrypt.call(this, v, y, C.key, w);
|
|
987
|
+
return T.mixIn(C), T;
|
|
988
988
|
}, decrypt: function(v, y, I, w) {
|
|
989
989
|
w = this.cfg.extend(w), y = this._parse(y, w.format);
|
|
990
|
-
var
|
|
991
|
-
return w.iv =
|
|
990
|
+
var C = w.kdf.execute(I, v.keySize, v.ivSize, y.salt, w.hasher);
|
|
991
|
+
return w.iv = C.iv, S.decrypt.call(this, v, y, C.key, w);
|
|
992
992
|
} });
|
|
993
993
|
}();
|
|
994
994
|
}(ue(), Bt())), Qr.exports;
|
|
@@ -1100,8 +1100,8 @@ function zo() {
|
|
|
1100
1100
|
I |= l[w][((y ^ A[w]) & d[w]) >>> 0];
|
|
1101
1101
|
this._lBlock = y, this._rBlock = v ^ I;
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
this._lBlock = this._rBlock, this._rBlock =
|
|
1103
|
+
var C = this._lBlock;
|
|
1104
|
+
this._lBlock = this._rBlock, this._rBlock = C, f.call(this, 1, 1431655765), u.call(this, 8, 16711935), u.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), g[m] = this._lBlock, g[m + 1] = this._rBlock;
|
|
1105
1105
|
}, keySize: 2, ivSize: 2, blockSize: 2 });
|
|
1106
1106
|
function f(g, m) {
|
|
1107
1107
|
var S = (this._lBlock >>> g ^ this._rBlock) & m;
|
|
@@ -1185,7 +1185,7 @@ function qo() {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
Pn.exports = function(a) {
|
|
1187
1187
|
return a;
|
|
1188
|
-
}(ue(), zi(), Io(), Eo(), Zt(),
|
|
1188
|
+
}(ue(), zi(), Io(), Eo(), Zt(), Co(), ei(), Dn(), ns(), Vr || (Vr = 1, To.exports = function(a) {
|
|
1189
1189
|
return e = (s = a).lib.WordArray, t = s.algo, i = t.SHA256, r = t.SHA224 = i.extend({ _doReset: function() {
|
|
1190
1190
|
this._hash = new e.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]);
|
|
1191
1191
|
}, _doFinalize: function() {
|
|
@@ -1210,16 +1210,16 @@ Pn.exports = function(a) {
|
|
|
1210
1210
|
var I = v + y, w = A[I];
|
|
1211
1211
|
A[I] = 16711935 & (w << 8 | w >>> 24) | 4278255360 & (w << 24 | w >>> 8);
|
|
1212
1212
|
}
|
|
1213
|
-
var
|
|
1214
|
-
for (z =
|
|
1215
|
-
te =
|
|
1216
|
-
te = M[1] + L + $ | 0, M[1] = M[2] + N + Q | 0, M[2] = M[3] + U + z | 0, M[3] = M[4] +
|
|
1213
|
+
var C, T, L, N, U, z, Y, K, $, Q, te, M = this._hash.words, O = d.words, D = h.words, x = n.words, me = o.words, Re = c.words, Ie = l.words;
|
|
1214
|
+
for (z = C = M[0], Y = T = M[1], K = L = M[2], $ = N = M[3], Q = U = M[4], y = 0; y < 80; y += 1)
|
|
1215
|
+
te = C + A[v + x[y]] | 0, te += y < 16 ? u(T, L, N) + O[0] : y < 32 ? b(T, L, N) + O[1] : y < 48 ? g(T, L, N) + O[2] : y < 64 ? m(T, L, N) + O[3] : S(T, L, N) + O[4], te = (te = R(te |= 0, Re[y])) + U | 0, C = U, U = N, N = R(L, 10), L = T, T = te, te = z + A[v + me[y]] | 0, te += y < 16 ? S(Y, K, $) + D[0] : y < 32 ? m(Y, K, $) + D[1] : y < 48 ? g(Y, K, $) + D[2] : y < 64 ? b(Y, K, $) + D[3] : u(Y, K, $) + D[4], te = (te = R(te |= 0, Ie[y])) + Q | 0, z = Q, Q = $, $ = R(K, 10), K = Y, Y = te;
|
|
1216
|
+
te = M[1] + L + $ | 0, M[1] = M[2] + N + Q | 0, M[2] = M[3] + U + z | 0, M[3] = M[4] + C + Y | 0, M[4] = M[0] + T + K | 0, M[0] = te;
|
|
1217
1217
|
}, _doFinalize: function() {
|
|
1218
1218
|
var A = this._data, v = A.words, y = 8 * this._nDataBytes, I = 8 * A.sigBytes;
|
|
1219
1219
|
v[I >>> 5] |= 128 << 24 - I % 32, v[14 + (I + 64 >>> 9 << 4)] = 16711935 & (y << 8 | y >>> 24) | 4278255360 & (y << 24 | y >>> 8), A.sigBytes = 4 * (v.length + 1), this._process();
|
|
1220
|
-
for (var w = this._hash,
|
|
1221
|
-
var L = T
|
|
1222
|
-
T
|
|
1220
|
+
for (var w = this._hash, C = w.words, T = 0; T < 5; T++) {
|
|
1221
|
+
var L = C[T];
|
|
1222
|
+
C[T] = 16711935 & (L << 8 | L >>> 24) | 4278255360 & (L << 24 | L >>> 8);
|
|
1223
1223
|
}
|
|
1224
1224
|
return w;
|
|
1225
1225
|
}, clone: function() {
|
|
@@ -1255,8 +1255,8 @@ Pn.exports = function(a) {
|
|
|
1255
1255
|
f.reset();
|
|
1256
1256
|
for (var v = A.words, y = v.length, I = A, w = 1; w < R; w++) {
|
|
1257
1257
|
I = f.finalize(I), f.reset();
|
|
1258
|
-
for (var
|
|
1259
|
-
v[
|
|
1258
|
+
for (var C = I.words, T = 0; T < y; T++)
|
|
1259
|
+
v[T] ^= C[T];
|
|
1260
1260
|
}
|
|
1261
1261
|
u.concat(A), m[0]++;
|
|
1262
1262
|
}
|
|
@@ -1328,20 +1328,20 @@ Pn.exports = function(a) {
|
|
|
1328
1328
|
for (S = 0; S < 256; S++) {
|
|
1329
1329
|
var v = A ^ A << 1 ^ A << 2 ^ A << 3 ^ A << 4;
|
|
1330
1330
|
v = v >>> 8 ^ 255 & v ^ 99, i[R] = v, r[v] = R;
|
|
1331
|
-
var y = m[R], I = m[y], w = m[I],
|
|
1332
|
-
n[R] =
|
|
1331
|
+
var y = m[R], I = m[y], w = m[I], C = 257 * m[v] ^ 16843008 * v;
|
|
1332
|
+
n[R] = C << 24 | C >>> 8, o[R] = C << 16 | C >>> 16, c[R] = C << 8 | C >>> 24, l[R] = C, C = 16843009 * w ^ 65537 * I ^ 257 * y ^ 16843008 * R, d[v] = C << 24 | C >>> 8, h[v] = C << 16 | C >>> 16, f[v] = C << 8 | C >>> 24, u[v] = C, R ? (R = y ^ m[m[m[w ^ y]]], A ^= m[m[A]]) : R = A = 1;
|
|
1333
1333
|
}
|
|
1334
1334
|
})();
|
|
1335
1335
|
var b = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], g = t.AES = e.extend({ _doReset: function() {
|
|
1336
1336
|
if (!this._nRounds || this._keyPriorReset !== this._key) {
|
|
1337
1337
|
for (var m = this._keyPriorReset = this._key, S = m.words, R = m.sigBytes / 4, A = 4 * ((this._nRounds = R + 6) + 1), v = this._keySchedule = [], y = 0; y < A; y++)
|
|
1338
|
-
y < R ? v[y] = S[y] : (
|
|
1338
|
+
y < R ? v[y] = S[y] : (C = v[y - 1], y % R ? R > 6 && y % R == 4 && (C = i[C >>> 24] << 24 | i[C >>> 16 & 255] << 16 | i[C >>> 8 & 255] << 8 | i[255 & C]) : (C = i[(C = C << 8 | C >>> 24) >>> 24] << 24 | i[C >>> 16 & 255] << 16 | i[C >>> 8 & 255] << 8 | i[255 & C], C ^= b[y / R | 0] << 24), v[y] = v[y - R] ^ C);
|
|
1339
1339
|
for (var I = this._invKeySchedule = [], w = 0; w < A; w++) {
|
|
1340
1340
|
if (y = A - w, w % 4)
|
|
1341
|
-
var
|
|
1341
|
+
var C = v[y];
|
|
1342
1342
|
else
|
|
1343
|
-
|
|
1344
|
-
I[w] = w < 4 || y <= 4 ?
|
|
1343
|
+
C = v[y - 4];
|
|
1344
|
+
I[w] = w < 4 || y <= 4 ? C : d[i[C >>> 24]] ^ h[i[C >>> 16 & 255]] ^ f[i[C >>> 8 & 255]] ^ u[i[255 & C]];
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
}, encryptBlock: function(m, S) {
|
|
@@ -1350,11 +1350,11 @@ Pn.exports = function(a) {
|
|
|
1350
1350
|
var R = m[S + 1];
|
|
1351
1351
|
m[S + 1] = m[S + 3], m[S + 3] = R, this._doCryptBlock(m, S, this._invKeySchedule, d, h, f, u, r), R = m[S + 1], m[S + 1] = m[S + 3], m[S + 3] = R;
|
|
1352
1352
|
}, _doCryptBlock: function(m, S, R, A, v, y, I, w) {
|
|
1353
|
-
for (var
|
|
1354
|
-
var K = A[
|
|
1355
|
-
|
|
1353
|
+
for (var C = this._nRounds, T = m[S] ^ R[0], L = m[S + 1] ^ R[1], N = m[S + 2] ^ R[2], U = m[S + 3] ^ R[3], z = 4, Y = 1; Y < C; Y++) {
|
|
1354
|
+
var K = A[T >>> 24] ^ v[L >>> 16 & 255] ^ y[N >>> 8 & 255] ^ I[255 & U] ^ R[z++], $ = A[L >>> 24] ^ v[N >>> 16 & 255] ^ y[U >>> 8 & 255] ^ I[255 & T] ^ R[z++], Q = A[N >>> 24] ^ v[U >>> 16 & 255] ^ y[T >>> 8 & 255] ^ I[255 & L] ^ R[z++], te = A[U >>> 24] ^ v[T >>> 16 & 255] ^ y[L >>> 8 & 255] ^ I[255 & N] ^ R[z++];
|
|
1355
|
+
T = K, L = $, N = Q, U = te;
|
|
1356
1356
|
}
|
|
1357
|
-
K = (w[
|
|
1357
|
+
K = (w[T >>> 24] << 24 | w[L >>> 16 & 255] << 16 | w[N >>> 8 & 255] << 8 | w[255 & U]) ^ R[z++], $ = (w[L >>> 24] << 24 | w[N >>> 16 & 255] << 16 | w[U >>> 8 & 255] << 8 | w[255 & T]) ^ R[z++], Q = (w[N >>> 24] << 24 | w[U >>> 16 & 255] << 16 | w[T >>> 8 & 255] << 8 | w[255 & L]) ^ R[z++], te = (w[U >>> 24] << 24 | w[T >>> 16 & 255] << 16 | w[L >>> 8 & 255] << 8 | w[255 & N]) ^ R[z++], m[S] = K, m[S + 1] = $, m[S + 2] = Q, m[S + 3] = te;
|
|
1358
1358
|
}, keySize: 8 });
|
|
1359
1359
|
s.AES = e._createHelper(g);
|
|
1360
1360
|
}(), a.AES;
|
|
@@ -1506,16 +1506,16 @@ function Gs(a) {
|
|
|
1506
1506
|
` + ((I = A.get("Content-Type")) != null ? I : "") + `
|
|
1507
1507
|
` + y + `
|
|
1508
1508
|
`;
|
|
1509
|
-
const
|
|
1509
|
+
const C = (N, U) => N[0].localeCompare(U[0]), T = (N) => N[0].startsWith("x-log-") || N[0].startsWith("x-acs-");
|
|
1510
1510
|
try {
|
|
1511
|
-
const N = [...A.entries()].filter(
|
|
1511
|
+
const N = [...A.entries()].filter(T).sort(C).map((U) => U[0] + ":" + U[1] + `
|
|
1512
1512
|
`).join("");
|
|
1513
1513
|
w += N;
|
|
1514
1514
|
} catch (N) {
|
|
1515
1515
|
}
|
|
1516
1516
|
w += g, R.size > 0 && (w += "?");
|
|
1517
1517
|
try {
|
|
1518
|
-
w += [...R.entries()].sort(
|
|
1518
|
+
w += [...R.entries()].sort(C).map((N) => N[0] + "=" + N[1]).join("&");
|
|
1519
1519
|
} catch (N) {
|
|
1520
1520
|
}
|
|
1521
1521
|
const L = "LOG " + m + ":" + ii.HmacSHA1(w, S).toString(ii.enc.Base64);
|
|
@@ -1815,7 +1815,7 @@ var ie;
|
|
|
1815
1815
|
let mc = (ie = class extends On {
|
|
1816
1816
|
constructor(e) {
|
|
1817
1817
|
const g = e, { maxRetries: t = 10, retryDelay: i = 2e3, backoffMultiplier: r = 2, maxRetryDelay: n = 3e5, enableLocalStorage: o = !0, maxStorageSize: c = 1e3, storageKey: l = "artc_reliable_logs", enableNetworkMonitor: d = !0, onNetworkChange: h = () => {
|
|
1818
|
-
}, forceXhrMode: f = !0, debug: u = !1 } = g, b =
|
|
1818
|
+
}, forceXhrMode: f = !0, debug: u = !1 } = g, b = Ct(g, ["maxRetries", "retryDelay", "backoffMultiplier", "maxRetryDelay", "enableLocalStorage", "maxStorageSize", "storageKey", "enableNetworkMonitor", "onNetworkChange", "forceXhrMode", "debug"]);
|
|
1819
1819
|
super(Object.assign({}, b, { installUnloadHook: (m) => {
|
|
1820
1820
|
ie.unloadHooks.push(m), ie.globalUnloadListenersRegistered || (ie.globalUnloadListenersRegistered = !0, ie.beforeUnloadHandler = () => {
|
|
1821
1821
|
ie.instances.forEach((S) => {
|
|
@@ -1983,7 +1983,7 @@ let mc = (ie = class extends On {
|
|
|
1983
1983
|
this.retryTimer && (clearInterval(this.retryTimer), this.retryTimer = null), this.saveFailedLogs(), this.failedLogs.clear(), ie.instances.delete(this), ie.instances.size === 0 && (ie.beforeUnloadHandler && (window.removeEventListener("beforeunload", ie.beforeUnloadHandler), ie.beforeUnloadHandler = null), ie.visibilityChangeHandler && (document.removeEventListener("visibilitychange", ie.visibilityChangeHandler), ie.visibilityChangeHandler = null), ie.globalUnloadListenersRegistered = !1, ie.unloadHooks = [], ie.onlineHandler && (window.removeEventListener("online", ie.onlineHandler), ie.onlineHandler = null), ie.offlineHandler && (window.removeEventListener("offline", ie.offlineHandler), ie.offlineHandler = null), ie.globalNetworkListenersRegistered = !1), this.debug("WebTrackerBrowser destroyed");
|
|
1984
1984
|
}
|
|
1985
1985
|
}, p(ie, "globalUnloadListenersRegistered", !1), p(ie, "globalNetworkListenersRegistered", !1), p(ie, "instances", /* @__PURE__ */ new Set()), p(ie, "unloadHooks", []), p(ie, "beforeUnloadHandler", null), p(ie, "visibilityChangeHandler", null), p(ie, "onlineHandler", null), p(ie, "offlineHandler", null), ie);
|
|
1986
|
-
const { BrowserUtil: Ia, SystenUtil: Ea } = ge, gc = Mn(), Vi = 6e5,
|
|
1986
|
+
const { BrowserUtil: Ia, SystenUtil: Ea } = ge, gc = Mn(), Vi = 6e5, Ca = { host: "cn-hangzhou.log.aliyuncs.com", project: "alivc-aio", logstore: "logger", time: 10, count: 10 }, Ta = { host: "ap-southeast-1.log.aliyuncs.com", project: "alivc-aio-sgp", logstore: "logger", time: 10, count: 10 };
|
|
1987
1987
|
function os() {
|
|
1988
1988
|
return Qi(/* @__PURE__ */ new Date(), "HH:MM:ss.l");
|
|
1989
1989
|
}
|
|
@@ -2012,7 +2012,7 @@ class Pa {
|
|
|
2012
2012
|
if (!this.stsPlugin)
|
|
2013
2013
|
return;
|
|
2014
2014
|
this.logSequence += 1, s.unshift(this.getLogParams(710203, { log: `[${ka()} ${os()}] [INF] beforeunload`, stat_log_seq: this.logSequence }));
|
|
2015
|
-
const e = this.globalEnv === "SEA" ?
|
|
2015
|
+
const e = this.globalEnv === "SEA" ? Ta : Ca, t = `https://${e.project}.${e.host}/logstores/${e.logstore}`, i = { __logs__: s.map((o) => this.stsPlugin.transString(o)) }, { data: r, header: n } = yield this.stsPlugin.process(t, JSON.stringify(i));
|
|
2016
2016
|
fetch(t, { keepalive: !0, method: "POST", headers: n, body: r });
|
|
2017
2017
|
}));
|
|
2018
2018
|
p(this, "logMethod", (s, e = console.log) => (...t) => {
|
|
@@ -2094,7 +2094,7 @@ class Pa {
|
|
|
2094
2094
|
e.accessKeyId = r.AccessKeyId, e.accessKeySecret = r.AccessKeySecret, e.securityToken = r.SecurityToken;
|
|
2095
2095
|
}).catch(() => {
|
|
2096
2096
|
});
|
|
2097
|
-
} }, t = new mc(this.globalEnv === "SEA" ?
|
|
2097
|
+
} }, t = new mc(this.globalEnv === "SEA" ? Ta : Ca), i = Gs(e);
|
|
2098
2098
|
t.useStsPlugin(i), this.stsPlugin = i, this.tracker = t, this.reportStartAndCache();
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
@@ -2480,7 +2480,7 @@ p(qi, "logName", "RemoteStreamHandler");
|
|
|
2480
2480
|
let Ls = qi;
|
|
2481
2481
|
var cs, ls, Ns = { exports: {} };
|
|
2482
2482
|
cs = Ns, ls = Ns.exports, function(a, s) {
|
|
2483
|
-
var e = "function", t = "undefined", i = "object", r = "string", n = "major", o = "model", c = "name", l = "type", d = "vendor", h = "version", f = "architecture", u = "console", b = "mobile", g = "tablet", m = "smarttv", S = "wearable", R = "embedded", A = "Amazon", v = "Apple", y = "ASUS", I = "BlackBerry", w = "Browser",
|
|
2483
|
+
var e = "function", t = "undefined", i = "object", r = "string", n = "major", o = "model", c = "name", l = "type", d = "vendor", h = "version", f = "architecture", u = "console", b = "mobile", g = "tablet", m = "smarttv", S = "wearable", R = "embedded", A = "Amazon", v = "Apple", y = "ASUS", I = "BlackBerry", w = "Browser", C = "Chrome", T = "Firefox", L = "Google", N = "Huawei", U = "LG", z = "Microsoft", Y = "Motorola", K = "Opera", $ = "Samsung", Q = "Sharp", te = "Sony", M = "Xiaomi", O = "Zebra", D = "Facebook", x = "Chromium OS", me = "Mac OS", Re = " Browser", Ie = function(le) {
|
|
2484
2484
|
for (var oe = {}, X = 0; X < le.length; X++)
|
|
2485
2485
|
oe[le[X].toUpperCase()] = le[X];
|
|
2486
2486
|
return oe;
|
|
@@ -2509,7 +2509,7 @@ cs = Ns, ls = Ns.exports, function(a, s) {
|
|
|
2509
2509
|
} else if (G(oe[X], le))
|
|
2510
2510
|
return X === "?" ? s : X;
|
|
2511
2511
|
return oe.hasOwnProperty("*") ? oe["*"] : le;
|
|
2512
|
-
}, ve = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, h], [/opios[\/ ]+([\w\.]+)/i], [h, [c, K + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [h, [c, K + " GX"]], [/\bopr\/([\w\.]+)/i], [h, [c, K]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [h, [c, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [h, [c, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, h], [/quark(?:pc)?\/([-\w\.]+)/i], [h, [c, "Quark"]], [/\bddg\/([\w\.]+)/i], [h, [c, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [c, "UC" + w]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [h, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [c, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [h, [c, "Smart Lenovo " + w]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + w], h], [/\bfocus\/([\w\.]+)/i], [h, [c, C + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [c, K + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [c, K + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [c, "MIUI" + Re]], [/fxios\/([\w\.-]+)/i], [h, [c, C]], [/\bqihoobrowser\/?([\w\.]*)/i], [h, [c, "360"]], [/\b(qq)\/([\w\.]+)/i], [[c, /(.+)/, "$1Browser"], h], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1" + Re], h], [/samsungbrowser\/([\w\.]+)/i], [h, [c, $ + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [h, [c, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[c, "Sogou Mobile"], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [c, h], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [c], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [h, c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, D], h], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [c, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [c, T + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, T + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [c, "Android " + w]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [h, Se, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [c, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], h], [/(wolvic|librewolf)\/([\w\.]+)/i], [c, h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [c, C + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [c, [h, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [c, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[f, "amd64"]], [/(ia32(?=;))/i], [[f, fe]], [/((?:i[346]|x)86)[;\)]/i], [[f, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[f, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[f, "armhf"]], [/windows (ce|mobile); ppc;/i], [[f, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[f, /ower/, "", fe]], [/(sun4\w)[;\)]/i], [[f, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[f, fe]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [o, [d, $], [l, g]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [o, [d, $], [l, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [o, [d, v], [l, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [o, [d, v], [l, g]], [/(macintosh);/i], [o, [d, v]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [o, [d, Q], [l, b]], [/(?:honor)([-\w ]+)[;\)]/i], [o, [d, "Honor"], [l, b]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [o, [d, N], [l, g]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [o, [d, N], [l, b]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[o, /_/g, " "], [d, M], [l, b]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[o, /_/g, " "], [d, M], [l, g]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [o, [d, "OPPO"], [l, b]], [/\b(opd2\d{3}a?) bui/i], [o, [d, "OPPO"], [l, g]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [o, [d, "Vivo"], [l, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [o, [d, "Realme"], [l, b]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [o, [d, Y], [l, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [o, [d, Y], [l, g]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [o, [d, U], [l, g]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [o, [d, U], [l, b]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [o, [d, "Lenovo"], [l, g]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[o, /_/g, " "], [d, "Nokia"], [l, b]], [/(pixel c)\b/i], [o, [d, L], [l, g]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [o, [d, L], [l, b]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [o, [d, te], [l, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[o, "Xperia Tablet"], [d, te], [l, g]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [o, [d, "OnePlus"], [l, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [o, [d, A], [l, g]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[o, /(.+)/g, "Fire Phone $1"], [d, A], [l, b]], [/(playbook);[-\w\),; ]+(rim)/i], [o, d, [l, g]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [o, [d, I], [l, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [o, [d, y], [l, g]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [o, [d, y], [l, b]], [/(nexus 9)/i], [o, [d, "HTC"], [l, g]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [d, [o, /_/g, " "], [l, b]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [o, [d, "TCL"], [l, g]], [/(itel) ((\w+))/i], [[d, fe], o, [l, Se, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [o, [d, "Acer"], [l, g]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [o, [d, "Meizu"], [l, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [o, [d, "Ulefone"], [l, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [o, [d, "Energizer"], [l, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [o, [d, "Cat"], [l, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [o, [d, "Smartfren"], [l, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [o, [d, "Nothing"], [l, b]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [d, o, [l, b]], [/(imo) (tab \w+)/i, /(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [d, o, [l, g]], [/(surface duo)/i], [o, [d, z], [l, g]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [o, [d, "Fairphone"], [l, b]], [/(u304aa)/i], [o, [d, "AT&T"], [l, b]], [/\bsie-(\w*)/i], [o, [d, "Siemens"], [l, b]], [/\b(rct\w+) b/i], [o, [d, "RCA"], [l, g]], [/\b(venue[\d ]{2,7}) b/i], [o, [d, "Dell"], [l, g]], [/\b(q(?:mv|ta)\w+) b/i], [o, [d, "Verizon"], [l, g]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [o, [d, "Barnes & Noble"], [l, g]], [/\b(tm\d{3}\w+) b/i], [o, [d, "NuVision"], [l, g]], [/\b(k88) b/i], [o, [d, "ZTE"], [l, g]], [/\b(nx\d{3}j) b/i], [o, [d, "ZTE"], [l, b]], [/\b(gen\d{3}) b.+49h/i], [o, [d, "Swiss"], [l, b]], [/\b(zur\d{3}) b/i], [o, [d, "Swiss"], [l, g]], [/\b((zeki)?tb.*\b) b/i], [o, [d, "Zeki"], [l, g]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[d, "Dragon Touch"], o, [l, g]], [/\b(ns-?\w{0,9}) b/i], [o, [d, "Insignia"], [l, g]], [/\b((nxa|next)-?\w{0,9}) b/i], [o, [d, "NextBook"], [l, g]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[d, "Voice"], o, [l, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[d, "LvTel"], o, [l, b]], [/\b(ph-1) /i], [o, [d, "Essential"], [l, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [o, [d, "Envizen"], [l, g]], [/\b(trio[-\w\. ]+) b/i], [o, [d, "MachSpeed"], [l, g]], [/\btu_(1491) b/i], [o, [d, "Rotor"], [l, g]], [/(shield[\w ]+) b/i], [o, [d, "Nvidia"], [l, g]], [/(sprint) (\w+)/i], [d, o, [l, b]], [/(kin\.[onetw]{3})/i], [[o, /\./g, " "], [d, z], [l, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [o, [d, O], [l, g]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [o, [d, O], [l, b]], [/smart-tv.+(samsung)/i], [d, [l, m]], [/hbbtv.+maple;(\d+)/i], [[o, /^/, "SmartTV"], [d, $], [l, m]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[d, U], [l, m]], [/(apple) ?tv/i], [d, [o, v + " TV"], [l, m]], [/crkey/i], [[o, T + "cast"], [d, L], [l, m]], [/droid.+aft(\w+)( bui|\))/i], [o, [d, A], [l, m]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [o, [d, Q], [l, m]], [/(bravia[\w ]+)( bui|\))/i], [o, [d, te], [l, m]], [/(mitv-\w{5}) bui/i], [o, [d, M], [l, m]], [/Hbbtv.*(technisat) (.*);/i], [d, o, [l, m]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[d, Oe], [o, Oe], [l, m]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[l, m]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [d, o, [l, u]], [/droid.+; (shield) bui/i], [o, [d, "Nvidia"], [l, u]], [/(playstation [345portablevi]+)/i], [o, [d, te], [l, u]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [o, [d, z], [l, u]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [o, [d, $], [l, S]], [/((pebble))app/i], [d, o, [l, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [o, [d, v], [l, S]], [/droid.+; (glass) \d/i], [o, [d, L], [l, S]], [/droid.+; (wt63?0{2,3})\)/i], [o, [d, O], [l, S]], [/droid.+; (glass) \d/i], [o, [d, L], [l, S]], [/(pico) (4|neo3(?: link|pro)?)/i], [d, o, [l, S]], [/; (quest( \d| pro)?)/i], [o, [d, D], [l, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [d, [l, R]], [/(aeobc)\b/i], [o, [d, A], [l, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [o, [l, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [o, [l, g]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[l, g]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[l, b]], [/(android[-\w\. ]{0,9});.+buil/i], [o, [d, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [c, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [c, h], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, h], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [c, [h, Se, ve]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[h, Se, ve], [c, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, me], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, h], [/\(bb(10);/i], [h, [c, I]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [c, C + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [c, T + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, x], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [c, h], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, h]] }, se = function(le, oe) {
|
|
2512
|
+
}, ve = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, h], [/opios[\/ ]+([\w\.]+)/i], [h, [c, K + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [h, [c, K + " GX"]], [/\bopr\/([\w\.]+)/i], [h, [c, K]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [h, [c, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [h, [c, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, h], [/quark(?:pc)?\/([-\w\.]+)/i], [h, [c, "Quark"]], [/\bddg\/([\w\.]+)/i], [h, [c, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [c, "UC" + w]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [h, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [c, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [h, [c, "Smart Lenovo " + w]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + w], h], [/\bfocus\/([\w\.]+)/i], [h, [c, T + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [c, K + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [c, K + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [c, "MIUI" + Re]], [/fxios\/([\w\.-]+)/i], [h, [c, T]], [/\bqihoobrowser\/?([\w\.]*)/i], [h, [c, "360"]], [/\b(qq)\/([\w\.]+)/i], [[c, /(.+)/, "$1Browser"], h], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1" + Re], h], [/samsungbrowser\/([\w\.]+)/i], [h, [c, $ + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [h, [c, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[c, "Sogou Mobile"], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [c, h], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [c], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [h, c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, D], h], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [c, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [c, C + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, C + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [c, "Android " + w]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [h, Se, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [c, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], h], [/(wolvic|librewolf)\/([\w\.]+)/i], [c, h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [c, T + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [c, [h, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [c, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[f, "amd64"]], [/(ia32(?=;))/i], [[f, fe]], [/((?:i[346]|x)86)[;\)]/i], [[f, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[f, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[f, "armhf"]], [/windows (ce|mobile); ppc;/i], [[f, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[f, /ower/, "", fe]], [/(sun4\w)[;\)]/i], [[f, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[f, fe]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [o, [d, $], [l, g]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [o, [d, $], [l, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [o, [d, v], [l, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [o, [d, v], [l, g]], [/(macintosh);/i], [o, [d, v]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [o, [d, Q], [l, b]], [/(?:honor)([-\w ]+)[;\)]/i], [o, [d, "Honor"], [l, b]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [o, [d, N], [l, g]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [o, [d, N], [l, b]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[o, /_/g, " "], [d, M], [l, b]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[o, /_/g, " "], [d, M], [l, g]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [o, [d, "OPPO"], [l, b]], [/\b(opd2\d{3}a?) bui/i], [o, [d, "OPPO"], [l, g]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [o, [d, "Vivo"], [l, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [o, [d, "Realme"], [l, b]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [o, [d, Y], [l, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [o, [d, Y], [l, g]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [o, [d, U], [l, g]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [o, [d, U], [l, b]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [o, [d, "Lenovo"], [l, g]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[o, /_/g, " "], [d, "Nokia"], [l, b]], [/(pixel c)\b/i], [o, [d, L], [l, g]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [o, [d, L], [l, b]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [o, [d, te], [l, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[o, "Xperia Tablet"], [d, te], [l, g]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [o, [d, "OnePlus"], [l, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [o, [d, A], [l, g]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[o, /(.+)/g, "Fire Phone $1"], [d, A], [l, b]], [/(playbook);[-\w\),; ]+(rim)/i], [o, d, [l, g]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [o, [d, I], [l, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [o, [d, y], [l, g]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [o, [d, y], [l, b]], [/(nexus 9)/i], [o, [d, "HTC"], [l, g]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [d, [o, /_/g, " "], [l, b]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [o, [d, "TCL"], [l, g]], [/(itel) ((\w+))/i], [[d, fe], o, [l, Se, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [o, [d, "Acer"], [l, g]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [o, [d, "Meizu"], [l, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [o, [d, "Ulefone"], [l, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [o, [d, "Energizer"], [l, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [o, [d, "Cat"], [l, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [o, [d, "Smartfren"], [l, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [o, [d, "Nothing"], [l, b]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [d, o, [l, b]], [/(imo) (tab \w+)/i, /(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [d, o, [l, g]], [/(surface duo)/i], [o, [d, z], [l, g]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [o, [d, "Fairphone"], [l, b]], [/(u304aa)/i], [o, [d, "AT&T"], [l, b]], [/\bsie-(\w*)/i], [o, [d, "Siemens"], [l, b]], [/\b(rct\w+) b/i], [o, [d, "RCA"], [l, g]], [/\b(venue[\d ]{2,7}) b/i], [o, [d, "Dell"], [l, g]], [/\b(q(?:mv|ta)\w+) b/i], [o, [d, "Verizon"], [l, g]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [o, [d, "Barnes & Noble"], [l, g]], [/\b(tm\d{3}\w+) b/i], [o, [d, "NuVision"], [l, g]], [/\b(k88) b/i], [o, [d, "ZTE"], [l, g]], [/\b(nx\d{3}j) b/i], [o, [d, "ZTE"], [l, b]], [/\b(gen\d{3}) b.+49h/i], [o, [d, "Swiss"], [l, b]], [/\b(zur\d{3}) b/i], [o, [d, "Swiss"], [l, g]], [/\b((zeki)?tb.*\b) b/i], [o, [d, "Zeki"], [l, g]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[d, "Dragon Touch"], o, [l, g]], [/\b(ns-?\w{0,9}) b/i], [o, [d, "Insignia"], [l, g]], [/\b((nxa|next)-?\w{0,9}) b/i], [o, [d, "NextBook"], [l, g]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[d, "Voice"], o, [l, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[d, "LvTel"], o, [l, b]], [/\b(ph-1) /i], [o, [d, "Essential"], [l, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [o, [d, "Envizen"], [l, g]], [/\b(trio[-\w\. ]+) b/i], [o, [d, "MachSpeed"], [l, g]], [/\btu_(1491) b/i], [o, [d, "Rotor"], [l, g]], [/(shield[\w ]+) b/i], [o, [d, "Nvidia"], [l, g]], [/(sprint) (\w+)/i], [d, o, [l, b]], [/(kin\.[onetw]{3})/i], [[o, /\./g, " "], [d, z], [l, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [o, [d, O], [l, g]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [o, [d, O], [l, b]], [/smart-tv.+(samsung)/i], [d, [l, m]], [/hbbtv.+maple;(\d+)/i], [[o, /^/, "SmartTV"], [d, $], [l, m]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[d, U], [l, m]], [/(apple) ?tv/i], [d, [o, v + " TV"], [l, m]], [/crkey/i], [[o, C + "cast"], [d, L], [l, m]], [/droid.+aft(\w+)( bui|\))/i], [o, [d, A], [l, m]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [o, [d, Q], [l, m]], [/(bravia[\w ]+)( bui|\))/i], [o, [d, te], [l, m]], [/(mitv-\w{5}) bui/i], [o, [d, M], [l, m]], [/Hbbtv.*(technisat) (.*);/i], [d, o, [l, m]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[d, Oe], [o, Oe], [l, m]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[l, m]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [d, o, [l, u]], [/droid.+; (shield) bui/i], [o, [d, "Nvidia"], [l, u]], [/(playstation [345portablevi]+)/i], [o, [d, te], [l, u]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [o, [d, z], [l, u]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [o, [d, $], [l, S]], [/((pebble))app/i], [d, o, [l, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [o, [d, v], [l, S]], [/droid.+; (glass) \d/i], [o, [d, L], [l, S]], [/droid.+; (wt63?0{2,3})\)/i], [o, [d, O], [l, S]], [/droid.+; (glass) \d/i], [o, [d, L], [l, S]], [/(pico) (4|neo3(?: link|pro)?)/i], [d, o, [l, S]], [/; (quest( \d| pro)?)/i], [o, [d, D], [l, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [d, [l, R]], [/(aeobc)\b/i], [o, [d, A], [l, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [o, [l, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [o, [l, g]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[l, g]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[l, b]], [/(android[-\w\. ]{0,9});.+buil/i], [o, [d, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [c, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [c, h], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, h], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [c, [h, Se, ve]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[h, Se, ve], [c, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, me], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, h], [/\(bb(10);/i], [h, [c, I]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [c, T + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [c, C + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, x], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [c, h], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, h]] }, se = function(le, oe) {
|
|
2513
2513
|
if (typeof le === i && (oe = le, le = s), !(this instanceof se))
|
|
2514
2514
|
return new se(le, oe).getResult();
|
|
2515
2515
|
var X = typeof a !== t && a.navigator ? a.navigator : s, ye = le || (X && X.userAgent ? X.userAgent : ""), Ne = X && X.userAgentData ? X.userAgentData : s, ae = oe ? function(q, De) {
|
|
@@ -2572,7 +2572,7 @@ class Xi {
|
|
|
2572
2572
|
static get adaptInfo() {
|
|
2573
2573
|
var e, t, i, r;
|
|
2574
2574
|
let s = new fc.UAParser().getResult();
|
|
2575
|
-
return { os_name: ((e = s.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = s.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = s.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((r = s.device.vendor) == null ? void 0 : r.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: s.browser.version || "", sdk_version: "7.2.
|
|
2575
|
+
return { os_name: ((e = s.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = s.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = s.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((r = s.device.vendor) == null ? void 0 : r.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: s.browser.version || "", sdk_version: "7.2.10", version: "v1" };
|
|
2576
2576
|
}
|
|
2577
2577
|
refreshAuthInfo(s) {
|
|
2578
2578
|
this.authInfo = s;
|
|
@@ -3616,11 +3616,11 @@ function Ic() {
|
|
|
3616
3616
|
var I = R.getEntriesByType("navigation")[0];
|
|
3617
3617
|
I && (v = I);
|
|
3618
3618
|
}
|
|
3619
|
-
return g.each({ dom: [10, 8], load: [14, 1] }, function(w,
|
|
3620
|
-
var
|
|
3621
|
-
if (
|
|
3622
|
-
var N = Math.round(L -
|
|
3623
|
-
N >= 0 && N < 6e5 && (A[
|
|
3619
|
+
return g.each({ dom: [10, 8], load: [14, 1] }, function(w, C) {
|
|
3620
|
+
var T = v[m[w[1]]], L = v[m[w[0]]];
|
|
3621
|
+
if (T > 0 && L > 0) {
|
|
3622
|
+
var N = Math.round(L - T);
|
|
3623
|
+
N >= 0 && N < 6e5 && (A[C] = N);
|
|
3624
3624
|
}
|
|
3625
3625
|
}), A.res = JSON.stringify(y), A;
|
|
3626
3626
|
}, Ss;
|
|
@@ -3645,10 +3645,10 @@ function Ic() {
|
|
|
3645
3645
|
$ >= 0 && $ < 6e5 && (A[z] = $);
|
|
3646
3646
|
}
|
|
3647
3647
|
});
|
|
3648
|
-
var
|
|
3649
|
-
A.ct =
|
|
3650
|
-
var L =
|
|
3651
|
-
if ((L = L > 999 ? 999 : L) && (A.bandwidth = L), A.navtype =
|
|
3648
|
+
var C = S.navigator.connection, T = R.navigation || {};
|
|
3649
|
+
A.ct = C ? C.effectiveType || C.type : "";
|
|
3650
|
+
var L = C && (C.downlink || C.downlinkMax || C.bandwidth) || null;
|
|
3651
|
+
if ((L = L > 999 ? 999 : L) && (A.bandwidth = L), A.navtype = T.type === 1 ? "Reload" : "Other", I === 1 && v[m[16]] > 0 && v[m[1]] > 0) {
|
|
3652
3652
|
var N = v[m[16]] - v[m[1]];
|
|
3653
3653
|
N >= 0 && N < 36e5 && (A.fpt = N);
|
|
3654
3654
|
}
|
|
@@ -3845,7 +3845,7 @@ function Ec() {
|
|
|
3845
3845
|
} });
|
|
3846
3846
|
}, ys;
|
|
3847
3847
|
}
|
|
3848
|
-
function
|
|
3848
|
+
function Cc() {
|
|
3849
3849
|
if (sn)
|
|
3850
3850
|
return us.exports;
|
|
3851
3851
|
sn = 1;
|
|
@@ -3903,9 +3903,9 @@ function Tc() {
|
|
|
3903
3903
|
var y = { msg: c.selfErrKey, err: { msg_raw: c.encode(u.msg || u.message) } };
|
|
3904
3904
|
return this._self("error", y, 1);
|
|
3905
3905
|
}
|
|
3906
|
-
for (var I = { begin: Date.now(), cate: g, msg: m && m.substring(0, 1e3), stack: S && S.substring(0, 1e3), file: c.removeUrlSearch(b.filename || ""), line: b.lineno || "", col: b.colno || "", err: { msg_raw: c.encode(m), stack_raw: c.encode(S) }, dl: R }, w = ["tag", "c1", "c2", "c3"],
|
|
3907
|
-
var
|
|
3908
|
-
b[
|
|
3906
|
+
for (var I = { begin: Date.now(), cate: g, msg: m && m.substring(0, 1e3), stack: S && S.substring(0, 1e3), file: c.removeUrlSearch(b.filename || ""), line: b.lineno || "", col: b.colno || "", err: { msg_raw: c.encode(m), stack_raw: c.encode(S) }, dl: R }, w = ["tag", "c1", "c2", "c3"], C = 0; C < w.length; C++) {
|
|
3907
|
+
var T = w[C];
|
|
3908
|
+
b[T] && (I[T] = b[T]);
|
|
3909
3909
|
}
|
|
3910
3910
|
var L = (this.getConfig("ignore") || {}).ignoreErrors;
|
|
3911
3911
|
return c.ignoreByRule(I.msg, L) || c.ignoreByRule(c.decode(I.msg), L) ? this : (this.beforeSend && this.beforeSend("error", I), this._lg("error", I, 1));
|
|
@@ -3914,10 +3914,10 @@ function Tc() {
|
|
|
3914
3914
|
var b = typeof u == "object" && u.behavior ? u : { behavior: u };
|
|
3915
3915
|
return this.beforeSend && this.beforeSend("behavior", b), this._lg("behavior", b, 1);
|
|
3916
3916
|
}
|
|
3917
|
-
}, api: function(u, b, g, m, S, R, A, v, y, I, w,
|
|
3917
|
+
}, api: function(u, b, g, m, S, R, A, v, y, I, w, C, T, L, N, U) {
|
|
3918
3918
|
if (!u)
|
|
3919
3919
|
return c.warn("[retcode] api is null"), this;
|
|
3920
|
-
if (u = typeof u == "string" ? { api: u, success: b, time: g, code: m, msg: S, begin: R, traceId: A, pv_id: v, apiSnapshot: y, domain: I, flag:
|
|
3920
|
+
if (u = typeof u == "string" ? { api: u, success: b, time: g, code: m, msg: S, begin: R, traceId: A, pv_id: v, apiSnapshot: y, domain: I, flag: C, tag: T, c1: L, c2: N, c3: U } : c.sub(u, d), !c.checkAPI(u.api, !0))
|
|
3921
3921
|
return this;
|
|
3922
3922
|
u.code = u.code || "";
|
|
3923
3923
|
var z = u.msg || "";
|
|
@@ -4074,12 +4074,12 @@ function Tc() {
|
|
|
4074
4074
|
var l = this.__proto__.constructor(c);
|
|
4075
4075
|
return c.page && l.sendPV(), l;
|
|
4076
4076
|
} }), _c()(o, i), Ic()(o, i, r), Ec()(o, i, r), (Xa || (Xa = 1, Qa = function(c, l) {
|
|
4077
|
-
var d = it(), h = null, f = d.getCurDomain(), u = function(R, A, v, y, I, w,
|
|
4077
|
+
var d = it(), h = null, f = d.getCurDomain(), u = function(R, A, v, y, I, w, C, T, L, N, U, z, Y) {
|
|
4078
4078
|
var K = d.J(I) || null, $ = d.safetyCall(A, [K, y], null);
|
|
4079
4079
|
if (!$)
|
|
4080
4080
|
return !1;
|
|
4081
4081
|
var Q = $.code || w, te = !("success" in $) || $.success;
|
|
4082
|
-
R.api(v, te,
|
|
4082
|
+
R.api(v, te, C, Q, $.msg, T, L, N, te ? {} : U, f, z, Y);
|
|
4083
4083
|
}, b = "fetch", g = "__oFetch_", m = "__oXMLHttpRequest_", S = "XMLHttpRequest";
|
|
4084
4084
|
return d.ext(c.prototype, { removeHook: function(R, A) {
|
|
4085
4085
|
return h && (A || this === h) ? (l[g] && (l[b] = l[g], delete l[g]), l[m] && (l[S] = l[m], delete l[m]), h = null, this) : this;
|
|
@@ -4092,13 +4092,13 @@ function Tc() {
|
|
|
4092
4092
|
if (!w || !w.api || y && (y.method === "HEAD" || y.mode === "no-cors"))
|
|
4093
4093
|
return A.apply(l, I);
|
|
4094
4094
|
y || (y = {});
|
|
4095
|
-
var
|
|
4095
|
+
var C = Date.now(), T = w._conf, L = d.duration(), N = (v && typeof v != "string" ? v.url : v) || "", U = N;
|
|
4096
4096
|
N = d.cutUrlSearch(N);
|
|
4097
|
-
var z = (
|
|
4097
|
+
var z = (T.ignore || {}).ignoreApis, Y = T.parseTraceId;
|
|
4098
4098
|
if (!d.checkAPI(N, !0) || d.ignoreByRule(N, z))
|
|
4099
4099
|
return A.apply(l, I);
|
|
4100
|
-
N = d.filterByRule(N, U,
|
|
4101
|
-
var K =
|
|
4100
|
+
N = d.filterByRule(N, U, T.ignoreApiPath ? T.ignoreApiPath : T.apiHelper);
|
|
4101
|
+
var K = T.enableLinkTrace, $ = "", Q = "", te = w.getConfig("pid"), M = null, O = w.getConfig("sample"), D = w.getConfig("linkType"), x = 1;
|
|
4102
4102
|
if (O && !w.sampling(O) && (x = 0), K) {
|
|
4103
4103
|
var me = "";
|
|
4104
4104
|
try {
|
|
@@ -4181,7 +4181,7 @@ function Tc() {
|
|
|
4181
4181
|
Ne && d.isString(Ne) && ($ = Ne);
|
|
4182
4182
|
}
|
|
4183
4183
|
var ae = d.getFetchSnapshot(I, ye, xe);
|
|
4184
|
-
Ee.ok ? u(w,
|
|
4184
|
+
Ee.ok ? u(w, T.parseResponse, N, U, ye, Ee.status || 200, X, C, $, Q, ae, M, x) : (w.api(N, !1, X, Ee.status || 404, Ee.statusText, C, $, Q, ae, f, M, x), T.enableResource && h.fixResourceStatus && h.fixResourceStatus({ src: Ee.url, res_type: "api" }));
|
|
4185
4185
|
}), se;
|
|
4186
4186
|
} catch (ye) {
|
|
4187
4187
|
return d.warn("[ARMS] fetch response error :", ye), se;
|
|
@@ -4190,7 +4190,7 @@ function Tc() {
|
|
|
4190
4190
|
if (!w || !w.api)
|
|
4191
4191
|
throw se;
|
|
4192
4192
|
var Ee = L();
|
|
4193
|
-
throw w.api(N, !1, Ee, se.name || "Error", se.message,
|
|
4193
|
+
throw w.api(N, !1, Ee, se.name || "Error", se.message, C, $, Q, {}, f), T.enableResource && h.fixResourceStatus && h.fixResourceStatus({ src: U, res_type: "api" }), se;
|
|
4194
4194
|
});
|
|
4195
4195
|
}, l[b].toString = d.createFakeToString(b);
|
|
4196
4196
|
}
|
|
@@ -4199,11 +4199,11 @@ function Tc() {
|
|
|
4199
4199
|
var A, v = l[S];
|
|
4200
4200
|
l[m] = v;
|
|
4201
4201
|
var y = function(I) {
|
|
4202
|
-
var w = new v(I),
|
|
4203
|
-
if (!
|
|
4202
|
+
var w = new v(I), C = h;
|
|
4203
|
+
if (!C || !C.api || !w.addEventListener)
|
|
4204
4204
|
return w;
|
|
4205
|
-
var
|
|
4206
|
-
return Re && !
|
|
4205
|
+
var T, L, N, U, z = w.send, Y = w.open, K = w.setRequestHeader, $ = C._conf, Q = ($.ignore || {}).ignoreApis, te = $.parseTraceId, M = C.getConfig("enableLinkTrace"), O = "", D = "", x = "", me = null, Re = C.getConfig("sample"), Ie = C.getConfig("linkType"), G = 1;
|
|
4206
|
+
return Re && !C.sampling(Re) && (G = 0), w.open = function(fe, Oe) {
|
|
4207
4207
|
A = fe;
|
|
4208
4208
|
var Ae = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
4209
4209
|
Y.apply(w, Ae), U = Oe || "", N = d.cutUrlSearch(U);
|
|
@@ -4216,22 +4216,22 @@ function Tc() {
|
|
|
4216
4216
|
ve = "";
|
|
4217
4217
|
}
|
|
4218
4218
|
var Fe = d.checkSameOrigin(U, ve);
|
|
4219
|
-
if ((
|
|
4219
|
+
if ((C.getConfig("enableApiCors") || Fe) && K && typeof K == "function")
|
|
4220
4220
|
switch (Ie) {
|
|
4221
4221
|
case "arms":
|
|
4222
|
-
O =
|
|
4222
|
+
O = C.getTraceId()["EagleEye-TraceID"], K.apply(w, ["EagleEye-TraceID", O]), D = C.getPageviewId()["EagleEye-SessionID"], K.apply(w, ["EagleEye-SessionID", D]), x = C.getConfig("pid"), K.apply(w, ["EagleEye-pAppName", x]);
|
|
4223
4223
|
break;
|
|
4224
4224
|
case "b3":
|
|
4225
|
-
var se =
|
|
4226
|
-
K.apply(w, ["X-B3-TraceId", se["X-B3-TraceId"]]), K.apply(w, ["X-B3-ParentSpanId", se["X-B3-ParentSpanId"]]), K.apply(w, ["X-B3-SpanId", se["X-B3-SpanId"]]), K.apply(w, ["X-B3-Sampled", se["X-B3-Sampled"]]), K.apply(w, ["X-Request-ID", d.guid()]), O = se["X-B3-TraceId"], D =
|
|
4225
|
+
var se = C.getB3TraceId(G);
|
|
4226
|
+
K.apply(w, ["X-B3-TraceId", se["X-B3-TraceId"]]), K.apply(w, ["X-B3-ParentSpanId", se["X-B3-ParentSpanId"]]), K.apply(w, ["X-B3-SpanId", se["X-B3-SpanId"]]), K.apply(w, ["X-B3-Sampled", se["X-B3-Sampled"]]), K.apply(w, ["X-Request-ID", d.guid()]), O = se["X-B3-TraceId"], D = C.getPageviewId()["EagleEye-SessionID"];
|
|
4227
4227
|
break;
|
|
4228
4228
|
default:
|
|
4229
|
-
var Ee =
|
|
4230
|
-
K.apply(w, ["uber-trace-id", Ee["uber-trace-id"]]), O = Ee.traceId, D =
|
|
4229
|
+
var Ee = C.getUberTraceId(G);
|
|
4230
|
+
K.apply(w, ["uber-trace-id", Ee["uber-trace-id"]]), O = Ee.traceId, D = C.getPageviewId()["EagleEye-SessionID"];
|
|
4231
4231
|
}
|
|
4232
4232
|
}
|
|
4233
4233
|
}, w.send = function() {
|
|
4234
|
-
|
|
4234
|
+
T = Date.now(), L = d.duration();
|
|
4235
4235
|
var fe = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
4236
4236
|
z.apply(w, fe);
|
|
4237
4237
|
}, d.on(w, "readystatechange", function() {
|
|
@@ -4252,9 +4252,9 @@ function Tc() {
|
|
|
4252
4252
|
if (Fe && !/(text)|(json)/.test(Fe))
|
|
4253
4253
|
return;
|
|
4254
4254
|
}
|
|
4255
|
-
w.responseType && w.responseType !== "text" ?
|
|
4255
|
+
w.responseType && w.responseType !== "text" ? C.api(N, !0, fe, ve, "", T, O, D, {}, f, me, G) : u(C, $.parseResponse, N, U, w.responseText, ve, fe, T, O, D, Oe, me, G);
|
|
4256
4256
|
} else
|
|
4257
|
-
|
|
4257
|
+
C.api(N, !1, fe, w.status || "FAILED", w.statusText, T, O, D, Oe, f, me, G), $.enableResource && h.fixResourceStatus && h.fixResourceStatus({ src: w.responseURL || U, res_type: "api" });
|
|
4258
4258
|
}
|
|
4259
4259
|
}), w;
|
|
4260
4260
|
};
|
|
@@ -4277,8 +4277,8 @@ function Tc() {
|
|
|
4277
4277
|
if (!A || typeof A != "string" || A === y)
|
|
4278
4278
|
return I;
|
|
4279
4279
|
try {
|
|
4280
|
-
var w = y.split("#"),
|
|
4281
|
-
N !== U ? u("historystatechange", U) :
|
|
4280
|
+
var w = y.split("#"), C = A.split("#"), T = d.cutUrlSearch(w[0]), L = d.cutUrlSearch(C[0]), N = w[1] && w[1].replace(/^\/?(.*)/, "$1"), U = C[1] && C[1].replace(/^\/?(.*)/, "$1");
|
|
4281
|
+
N !== U ? u("historystatechange", U) : T !== L && u("historystatechange", L);
|
|
4282
4282
|
} catch (z) {
|
|
4283
4283
|
d.warn("[retcode] error in " + g + ": " + z);
|
|
4284
4284
|
}
|
|
@@ -4298,8 +4298,8 @@ function Tc() {
|
|
|
4298
4298
|
if (g instanceof h.PerformanceResourceTiming && g.initiatorType) {
|
|
4299
4299
|
var R = c.getResType(g.initiatorType, g.name), A = m.resourceTypes || [], v = (m.ignore || {}).ignoreResources;
|
|
4300
4300
|
if (R && A.includes(R) && !c.ignoreByRule(g.name, v) && !c.ignoreByRule(c.decode(g.name), v)) {
|
|
4301
|
-
var y = g[l[0]], I = g[l[1]], w = g[l[2]],
|
|
4302
|
-
if (!S.has(g) && (!c.areInOrder(y, I, w,
|
|
4301
|
+
var y = g[l[0]], I = g[l[1]], w = g[l[2]], C = g[l[3]], T = g[l[4]], L = g[l[5]], N = g[l[6]], U = g[l[7]], z = g[l[8]], Y = g[l[18]], K = g[l[19]];
|
|
4302
|
+
if (!S.has(g) && (!c.areInOrder(y, I, w, C, T, L, N, U, z) || y > U))
|
|
4303
4303
|
return;
|
|
4304
4304
|
if (Y < y && (Y = y), K < y && (K = I), c.areInOrder(y, Y, K, I))
|
|
4305
4305
|
return { domain: c.getURL(g.name).domain, res_type: R, src_type: c.getSrcType(g.name, m.cdnHostList), success: 1, size: Math.round(g.decodedBodySize), duration: Math.round(g.duration), timeStamp: g.responseEnd, timing: g };
|
|
@@ -4355,18 +4355,18 @@ function Tc() {
|
|
|
4355
4355
|
if (R.length !== 0) {
|
|
4356
4356
|
var A = [];
|
|
4357
4357
|
c.each(R, function(w) {
|
|
4358
|
-
var
|
|
4359
|
-
c.each(
|
|
4358
|
+
var C = g[w], T = { domain: "", res_type: "", src_type: "", size: 0, duration: 0, count: 0, err_count: 0, err_duration: 0, slow_count: 0, slow_duration: 0, timings: [] };
|
|
4359
|
+
c.each(C, function(L) {
|
|
4360
4360
|
var N = L.timing || {}, U = S.get(L.timing), z = U ? U.success : 1, Y = L.duration > m ? 1 : 0;
|
|
4361
|
-
|
|
4361
|
+
T.domain = L.domain, T.res_type = L.res_type, T.src_type = L.src_type, T.count += 1, T.duration += L.duration, T.size += L.size, z || (T.err_count += 1, T.err_duration += L.duration), Y && (T.slow_count += 1, T.slow_duration += L.duration);
|
|
4362
4362
|
try {
|
|
4363
4363
|
var K = JSON.parse(JSON.stringify(N));
|
|
4364
|
-
K.success = z, K.resourceSlow = m, K.isSlow = Y,
|
|
4364
|
+
K.success = z, K.resourceSlow = m, K.isSlow = Y, T.timings.push(K);
|
|
4365
4365
|
} catch ($) {
|
|
4366
4366
|
}
|
|
4367
|
-
}),
|
|
4367
|
+
}), T.count && (T.size = Math.round(T.size / T.count), T.duration = Math.round(T.duration / T.count)), T.slow_count && (T.slow_duration = Math.round(T.slow_duration / T.slow_count)), T.err_count && (T.err_duration = Math.round(T.err_duration / T.err_count)), T.timings.length > 20 && (T.timings.sort(function(L, N) {
|
|
4368
4368
|
return N.duration - L.duration;
|
|
4369
|
-
}),
|
|
4369
|
+
}), T.timings.length = 20), T.timings = encodeURIComponent(JSON.stringify(T.timings)), A.push(T);
|
|
4370
4370
|
});
|
|
4371
4371
|
var v = { _combo: 1, resource: JSON.stringify(A) }, y = h.navigator.connection;
|
|
4372
4372
|
v.ct = y ? y.effectiveType || y.type : "";
|
|
@@ -4377,7 +4377,7 @@ function Tc() {
|
|
|
4377
4377
|
}, Rs;
|
|
4378
4378
|
}()(o, i), o._super = s, o._root = s._root, s.Browser = o, us.exports = o, us.exports;
|
|
4379
4379
|
}
|
|
4380
|
-
var
|
|
4380
|
+
var Tc = { getArmsLogger: function() {
|
|
4381
4381
|
return function() {
|
|
4382
4382
|
if (rn)
|
|
4383
4383
|
return hs.exports;
|
|
@@ -4388,7 +4388,7 @@ var Cc = { getArmsLogger: function() {
|
|
|
4388
4388
|
return c.autoSendPv !== !1 && o.sendPV(), c && c.useFmp || o.sendPerformance(), c && c.sendResource && o.sendResources(), s[i] = !0, o;
|
|
4389
4389
|
}
|
|
4390
4390
|
rn = 1;
|
|
4391
|
-
var s = window, e = s.BrowserLogger =
|
|
4391
|
+
var s = window, e = s.BrowserLogger = Cc(), t = it().key, i = "__hasInitBlSdk";
|
|
4392
4392
|
return e.singleton = function(r, n) {
|
|
4393
4393
|
return s[i] ? s[t] : a(r, n);
|
|
4394
4394
|
}, e.createExtraInstance = function(r) {
|
|
@@ -4519,7 +4519,7 @@ class Qs {
|
|
|
4519
4519
|
return;
|
|
4520
4520
|
if (!As[e])
|
|
4521
4521
|
throw new Error(`region ${e} is not supported`);
|
|
4522
|
-
const r =
|
|
4522
|
+
const r = Tc.getArmsLogger();
|
|
4523
4523
|
this.armsLogger = r.createExtraInstance({ enableInstanceAutoSend: !0, pid: As[e].pid, tag: this.options.businessName, release: `${this.options.businessName}_${this.options.version}`, imgUrl: As[e].reportUrl, behavior: !0, sample: 1, disableHook: !0, environment: t, beforeReport: (n) => {
|
|
4524
4524
|
var o;
|
|
4525
4525
|
if (this.isDestroyed || Un(n.stack, this.marker) || n.t !== "pv" && n.t !== "error" && n.t !== "health")
|
|
@@ -4947,7 +4947,7 @@ class bi extends Je {
|
|
|
4947
4947
|
}
|
|
4948
4948
|
}
|
|
4949
4949
|
var mt;
|
|
4950
|
-
const
|
|
4950
|
+
const Ce = (mt = class extends Bn {
|
|
4951
4951
|
constructor(e) {
|
|
4952
4952
|
const { rtsManager: t, localStreamManager: i, slsReporter: r, signalingManager: n, audioVolumeIndicationInterval: o, parameter: c } = e;
|
|
4953
4953
|
super("", "", t, o);
|
|
@@ -5390,7 +5390,7 @@ const Te = (mt = class extends Bn {
|
|
|
5390
5390
|
return void E.event(`[${mt.logName}]`, "sync publish to room server failed because no publishInfo");
|
|
5391
5391
|
let r = e;
|
|
5392
5392
|
if (this.dc) {
|
|
5393
|
-
const o = e, { tracks: l } = o, d =
|
|
5393
|
+
const o = e, { tracks: l } = o, d = Ct(o, ["tracks"]);
|
|
5394
5394
|
r = dt(J({}, d), { tracks: [...l, { type: "data", msid: P.Data, ssrc: `web_${this.callId.substring(0, 8)}_${((c = this.dc.datachannel) == null ? void 0 : c.id) || "0"}`, codec: "text" }] });
|
|
5395
5395
|
}
|
|
5396
5396
|
const n = yield this.signalingManager.publish(r);
|
|
@@ -5524,7 +5524,7 @@ const Te = (mt = class extends Bn {
|
|
|
5524
5524
|
l.type === "media-source" || l.type === "media-playout" ? l.id && (this.pcMediaStatsMap[l.id] = l) : l.type === "candidate-pair" && l.state === "succeeded" && (n = l);
|
|
5525
5525
|
}), ((e = this.candidateDataCache) == null ? void 0 : e.length) > 0) {
|
|
5526
5526
|
const l = this.candidateDataCache[this.candidateDataCache.length - 1] || {}, t = l, { _last: d } = t;
|
|
5527
|
-
o =
|
|
5527
|
+
o = Ct(t, ["_last"]);
|
|
5528
5528
|
}
|
|
5529
5529
|
((i = this.candidateDataCache) == null ? void 0 : i.length) >= 30 && this.reportNetwork(), n && (n._last = o, this.candidateDataCache.push(n));
|
|
5530
5530
|
let c = Object.keys(this.monitorDataCache).filter((l) => {
|
|
@@ -5546,7 +5546,7 @@ const Te = (mt = class extends Bn {
|
|
|
5546
5546
|
let g;
|
|
5547
5547
|
if ((b == null ? void 0 : b.length) > 0) {
|
|
5548
5548
|
const S = b[b.length - 1] || {}, m = S, { _last: R } = m;
|
|
5549
|
-
g =
|
|
5549
|
+
g = Ct(m, ["_last"]);
|
|
5550
5550
|
}
|
|
5551
5551
|
(b == null ? void 0 : b.length) >= 30 && this.reportPublishMonitor(d), f._last = g, f._codec = l.codec || "", this.monitorDataCache[d].push(f);
|
|
5552
5552
|
});
|
|
@@ -5649,8 +5649,8 @@ const Te = (mt = class extends Bn {
|
|
|
5649
5649
|
});
|
|
5650
5650
|
}
|
|
5651
5651
|
}, p(mt, "logName", "LocalUser"), mt);
|
|
5652
|
-
Pe([k()],
|
|
5653
|
-
let xc =
|
|
5652
|
+
Pe([k()], Ce.prototype, "clearPublishState", 1), Pe([k()], Ce.prototype, "clear", 1), Pe([k(H)], Ce.prototype, "startDefaultCameraAndMic", 1), Pe([k()], Ce.prototype, "setViewConfig", 1), Pe([k()], Ce.prototype, "startCameraCapture", 1), Pe([k()], Ce.prototype, "stopCameraCapture", 1), Pe([k()], Ce.prototype, "startAudioCapture", 1), Pe([k()], Ce.prototype, "stopAudioCapture", 1), Pe([k()], Ce.prototype, "startCameraAndMic", 1), Pe([k()], Ce.prototype, "stopPreview", 1), Pe([k()], Ce.prototype, "resumePublish", 1), Pe([k()], Ce.prototype, "createLocalStream", 1), Pe([k()], Ce.prototype, "stopLocalStream", 1), Pe([k()], Ce.prototype, "updateDataChannel", 1), Pe([k(H)], Ce.prototype, "startPublish", 1), Pe([k()], Ce.prototype, "updateStreams", 1), Pe([k(([a]) => [a])], Ce.prototype, "syncPublishToRoomServer", 1), Pe([k()], Ce.prototype, "refreshPushStreamUrl", 1), Pe([k(([a, s, e]) => [JSON.stringify(e)])], Ce.prototype, "publishAdd", 1), Pe([k(([a, s]) => [JSON.stringify(s)])], Ce.prototype, "publishReplace", 1), Pe([k(H)], Ce.prototype, "publishDeleteTracks", 1), Pe([k()], Ce.prototype, "publishStop", 1), Pe([k()], Ce.prototype, "unPublish", 1), Pe([k(([a, s, e]) => [a.length, s, e])], Ce.prototype, "sendSEI", 1), Pe([k(H)], Ce.prototype, "markReconnect", 1), Pe([k(H)], Ce.prototype, "markReconnected", 1);
|
|
5653
|
+
let xc = Ce;
|
|
5654
5654
|
var St = ((a) => (a.OPUS = "opus", a.H264 = "H264", a.H265 = "H265", a.AV1 = "AV1", a.UNKNOWN = "", a))(St || {}), ce = ((a) => (a[a.NotSubscribe = 0] = "NotSubscribe", a[a.Subscribing = 1] = "Subscribing", a[a.Subscribed = 2] = "Subscribed", a))(ce || {}), ri = ((a) => (a.VideoTrackEnded = "videoTrackEnded", a.AudioTrackEnded = "audioTrackEnded", a.ScreenTrackEnded = "screenTrackEnded", a))(ri || {});
|
|
5655
5655
|
const zn = (a) => _(void 0, null, function* () {
|
|
5656
5656
|
return yield ge.createStream({ custom: !0, mediaStream: a });
|
|
@@ -6441,7 +6441,7 @@ const Ue = (ai = class extends Bn {
|
|
|
6441
6441
|
let l;
|
|
6442
6442
|
if ((c == null ? void 0 : c.length) > 0) {
|
|
6443
6443
|
const f = c[c.length - 1] || {}, d = f, { _last: u } = d;
|
|
6444
|
-
l =
|
|
6444
|
+
l = Ct(d, ["_last"]);
|
|
6445
6445
|
}
|
|
6446
6446
|
(c == null ? void 0 : c.length) >= 30 && this.reportSubscribeMonitor(i), o._last = l, o._codec = t.codec, n && (o._source = (h = this.localUser) == null ? void 0 : h.getMediaStats(o.playoutId)), this.monitorDataCache[i].push(o);
|
|
6447
6447
|
});
|
|
@@ -6749,8 +6749,8 @@ class Kc {
|
|
|
6749
6749
|
const S = n.video, R = n.audio;
|
|
6750
6750
|
n.video && n.vMsid && (m = n.vMsid);
|
|
6751
6751
|
let A = 0, v = 0, y = 0;
|
|
6752
|
-
const I = ((w,
|
|
6753
|
-
let
|
|
6752
|
+
const I = ((w, C) => {
|
|
6753
|
+
let T = 0;
|
|
6754
6754
|
const L = () => {
|
|
6755
6755
|
if (!this.rtsClientMap.has(l))
|
|
6756
6756
|
return Promise.resolve();
|
|
@@ -6759,14 +6759,14 @@ class Kc {
|
|
|
6759
6759
|
if (U.packetsReceived > 0)
|
|
6760
6760
|
A = Date.now();
|
|
6761
6761
|
else if (!S)
|
|
6762
|
-
return
|
|
6762
|
+
return T < w && (T++, new Promise((z) => setTimeout(() => z(L()), C)));
|
|
6763
6763
|
return !0;
|
|
6764
6764
|
})), S && !y && (N = d.client.getSubscribeVideoStats(c, m).then((U) => {
|
|
6765
6765
|
if (typeof U.packetsReceived == "number") {
|
|
6766
6766
|
if (!v && U.packetsReceived > 0 && (v = Date.now()), U.framesDecoded > 0)
|
|
6767
6767
|
y = Date.now();
|
|
6768
|
-
else if (
|
|
6769
|
-
return
|
|
6768
|
+
else if (T < w)
|
|
6769
|
+
return T++, new Promise((z) => setTimeout(() => z(L()), C));
|
|
6770
6770
|
return !0;
|
|
6771
6771
|
}
|
|
6772
6772
|
})), Promise.resolve(N);
|
|
@@ -7151,6 +7151,10 @@ const Be = (ee = class extends Je {
|
|
|
7151
7151
|
var t;
|
|
7152
7152
|
this.dycConf.updateConfigData(e), (t = this.rts) == null || t.updateDynamicConfig(e);
|
|
7153
7153
|
}
|
|
7154
|
+
setChannelContext(e) {
|
|
7155
|
+
var t;
|
|
7156
|
+
(t = this.rts) == null || t.setChannelContext(e);
|
|
7157
|
+
}
|
|
7154
7158
|
setReceiverPreferredVideoCodecH265() {
|
|
7155
7159
|
var r;
|
|
7156
7160
|
let e = (r = RTCRtpReceiver.getCapabilities("video")) == null ? void 0 : r.codecs;
|
|
@@ -7325,8 +7329,8 @@ const Be = (ee = class extends Je {
|
|
|
7325
7329
|
if (A) {
|
|
7326
7330
|
const v = Date.now(), [y] = A, I = Date.now();
|
|
7327
7331
|
return setTimeout(() => {
|
|
7328
|
-
var w,
|
|
7329
|
-
this.slsReporter.reportPublish(!1, h, f, ((w = b.vMsid) == null ? void 0 : w[0]) === P.VideoLarge, ((
|
|
7332
|
+
var w, C, T, L;
|
|
7333
|
+
this.slsReporter.reportPublish(!1, h, f, ((w = b.vMsid) == null ? void 0 : w[0]) === P.VideoLarge, ((C = b.vMsid) == null ? void 0 : C[0]) === P.VideoSmall, ((T = b.vMsid) == null ? void 0 : T[0]) === P.Screen, ((L = b.aMsid) == null ? void 0 : L[0]) === P.Audio, 0, this.pcTraceId, y.traceId || "", u, I);
|
|
7330
7334
|
}, 6e3), y.traceId && (this._pcTraceId = y.traceId), this.updatePublishingTracks(y.trackInfoList), n && (yield this.waitPublishSender(h, !t.hasVideo, t.hasVideo ? i == null ? void 0 : i.vMsid : i == null ? void 0 : i.aMsid)), this.slsReporter.reportPublishFirstPacket(r, f, u, v, this._localJoinTime, (t.hasVideo ? i == null ? void 0 : i.vMsid : i == null ? void 0 : i.aMsid) || "", this.pcTraceId, y.traceId || "", o), y.traceId || "";
|
|
7331
7335
|
}
|
|
7332
7336
|
} catch (A) {
|
|
@@ -7619,17 +7623,17 @@ const Be = (ee = class extends Je {
|
|
|
7619
7623
|
const A = ((v, y) => {
|
|
7620
7624
|
let I = 0;
|
|
7621
7625
|
const w = () => {
|
|
7622
|
-
let
|
|
7623
|
-
return g && !m && (
|
|
7624
|
-
if (
|
|
7626
|
+
let C;
|
|
7627
|
+
return g && !m && (C = this.rts.getSubscribeAudioStats(l.streamUrl).then((T) => {
|
|
7628
|
+
if (T.packetsReceived > 0)
|
|
7625
7629
|
m = Date.now(), E.debug(`[${ee.logName}]`, l.userId, "Stats 音频首包");
|
|
7626
7630
|
else if (!b)
|
|
7627
7631
|
return I < v && (I++, new Promise((L) => setTimeout(() => L(w()), y)));
|
|
7628
7632
|
return !0;
|
|
7629
|
-
})), b && !R && (
|
|
7630
|
-
if (typeof
|
|
7631
|
-
return !S &&
|
|
7632
|
-
})), Promise.resolve(
|
|
7633
|
+
})), b && !R && (C = this.rts.getSubscribeVideoStats(l.streamUrl, u).then((T) => {
|
|
7634
|
+
if (typeof T.packetsReceived == "number")
|
|
7635
|
+
return !S && T.packetsReceived > 0 && (S = Date.now(), E.debug(`[${ee.logName}]`, l.userId, "Stats 视频首包")), T.framesDecoded > 0 ? (R = Date.now(), E.debug(`[${ee.logName}]`, l.userId, "Stats 视频首帧数据"), !0) : I < v ? (I++, new Promise((L) => setTimeout(() => L(w()), y))) : (E.event(`[${ee.logName}]`, l.userId, "尝试获取首帧数据失败"), !1);
|
|
7636
|
+
})), Promise.resolve(C);
|
|
7633
7637
|
};
|
|
7634
7638
|
return w();
|
|
7635
7639
|
})(20, 100);
|
|
@@ -7966,7 +7970,7 @@ const bt = ($t = class extends Je {
|
|
|
7966
7970
|
})), this.screenStreamInfo.on("videotrackended", () => _(this, null, function* () {
|
|
7967
7971
|
yield this.stopLocalStream({ screen: !0 }), this.emit("trackended", ri.ScreenTrackEnded);
|
|
7968
7972
|
})), this.pluginManager.on("added", (i) => _(this, null, function* () {
|
|
7969
|
-
if (E.info(`[${$t.logName}]`, "plugin added", i.name), !i.isSupported("7.2.
|
|
7973
|
+
if (E.info(`[${$t.logName}]`, "plugin added", i.name), !i.isSupported("7.2.10"))
|
|
7970
7974
|
return console.warn(`${i.name} is not supported!!!`), void i.emit("unsupported");
|
|
7971
7975
|
try {
|
|
7972
7976
|
yield i.init();
|
|
@@ -9431,6 +9435,9 @@ class Qe extends Je {
|
|
|
9431
9435
|
updateDynamicConfig(e) {
|
|
9432
9436
|
this.rtsManager.updateDynamicConfig(e);
|
|
9433
9437
|
}
|
|
9438
|
+
setChannelContext() {
|
|
9439
|
+
this.rtsManager.setChannelContext({ channelId: this.channel, userId: this.userId });
|
|
9440
|
+
}
|
|
9434
9441
|
setupAudioProcessingPluginIfNeeded() {
|
|
9435
9442
|
if (this.audio3AConfig.enableSoft3A) {
|
|
9436
9443
|
let e = 0;
|
|
@@ -9453,7 +9460,7 @@ class Qe extends Je {
|
|
|
9453
9460
|
}
|
|
9454
9461
|
p(Qe, "logName", "BizControl");
|
|
9455
9462
|
at([k()], Qe.prototype, "init", 1), at([k()], Qe.prototype, "leave", 1), at([k()], Qe.prototype, "clear", 1), at([k(H)], Qe.prototype, "addUser", 1), at([k()], Qe.prototype, "removeLeftUser", 1), at([k()], Qe.prototype, "diffUsers", 1), at([k(H)], Qe.prototype, "updateAudioWant", 1), at([k(H)], Qe.prototype, "updateVideoWant", 1), at([k(H)], Qe.prototype, "updateScreenWant", 1), at([k()], Qe.prototype, "stopIndication", 1), at([k()], Qe.prototype, "startIndication", 1), at([k(H)], Qe.prototype, "setEnableDualVideoStream", 1), at([k(H)], Qe.prototype, "setAudioVolume", 1), at([k()], Qe.prototype, "enableAudioVolumeIndication", 1);
|
|
9456
|
-
var Ji = ((a) => (a[a.LiveTranscodingSingle = 0] = "LiveTranscodingSingle", a[a.LiveTranscodingMix = 1] = "LiveTranscodingMix", a))(Ji || {}), Jn = ((a) => (a[a.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", a[a.LiveTranscodingAudio = 1] = "LiveTranscodingAudio", a[a.LiveTranscodingVideo = 2] = "LiveTranscodingVideo", a))(Jn || {}),
|
|
9463
|
+
var Ji = ((a) => (a[a.LiveTranscodingSingle = 0] = "LiveTranscodingSingle", a[a.LiveTranscodingMix = 1] = "LiveTranscodingMix", a))(Ji || {}), Jn = ((a) => (a[a.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", a[a.LiveTranscodingAudio = 1] = "LiveTranscodingAudio", a[a.LiveTranscodingVideo = 2] = "LiveTranscodingVideo", a))(Jn || {}), Ci = ((a) => (a[a.LiveTranscodingCamera = 0] = "LiveTranscodingCamera", a[a.LiveTranscodingShareScreen = 1] = "LiveTranscodingShareScreen", a))(Ci || {});
|
|
9457
9464
|
const Ai = { 0: "camera", 1: "shareScreen" };
|
|
9458
9465
|
var Gn = ((a) => (a[a.LiveTranscoding_Profile_1IN_1080P = 0] = "LiveTranscoding_Profile_1IN_1080P", a[a.LiveTranscoding_Profile_1IN_720P = 1] = "LiveTranscoding_Profile_1IN_720P", a[a.LiveTranscoding_Profile_1IN_360P = 2] = "LiveTranscoding_Profile_1IN_360P", a[a.LiveTranscoding_Profile_2IN_1080P = 3] = "LiveTranscoding_Profile_2IN_1080P", a[a.LiveTranscoding_Profile_2IN_720P = 4] = "LiveTranscoding_Profile_2IN_720P", a[a.LiveTranscoding_Profile_2IN_360P = 5] = "LiveTranscoding_Profile_2IN_360P", a[a.LiveTranscoding_Profile_4IN_1080P = 6] = "LiveTranscoding_Profile_4IN_1080P", a[a.LiveTranscoding_Profile_4IN_720P = 7] = "LiveTranscoding_Profile_4IN_720P", a[a.LiveTranscoding_Profile_4IN_360P = 8] = "LiveTranscoding_Profile_4IN_360P", a[a.LiveTranscoding_Profile_9IN_1080P = 9] = "LiveTranscoding_Profile_9IN_1080P", a[a.LiveTranscoding_Profile_9IN_720P = 10] = "LiveTranscoding_Profile_9IN_720P", a[a.LiveTranscoding_Profile_9IN_360P = 11] = "LiveTranscoding_Profile_9IN_360P", a[a.LiveTranscoding_Profile_12IN_1080P = 12] = "LiveTranscoding_Profile_12IN_1080P", a[a.LiveTranscoding_Profile_12IN_720P = 13] = "LiveTranscoding_Profile_12IN_720P", a[a.LiveTranscoding_Profile_12IN_360P = 14] = "LiveTranscoding_Profile_12IN_360P", a[a.LiveTranscoding_Profile_16IN_1080P = 15] = "LiveTranscoding_Profile_16IN_1080P", a[a.LiveTranscoding_Profile_16IN_720P = 16] = "LiveTranscoding_Profile_16IN_720P", a[a.LiveTranscoding_Profile_16IN_360P = 17] = "LiveTranscoding_Profile_16IN_360P", a[a.LiveTranscoding_Profile_Mixed = 9999] = "LiveTranscoding_Profile_Mixed", a))(Gn || {});
|
|
9459
9466
|
const ml = { 0: "1IN_1080P", 1: "1IN_720P", 2: "1IN_360P", 3: "2IN_1080P", 4: "2IN_720P", 5: "2IN_360P", 6: "4IN_1080P", 7: "4IN_720P", 8: "4IN_360P", 9: "9IN_1080P", 10: "9IN_720P", 11: "9IN_360P", 12: "12IN_1080P", 13: "12IN_720P", 14: "12IN_360P", 15: "16IN_1080P", 16: "16IN_720P", 17: "16IN_360P", 9999: "Mixed_Audio" };
|
|
@@ -9493,7 +9500,7 @@ class js {
|
|
|
9493
9500
|
if (n.mixmode = this.mixMode, i && (n.streamurl = i), this.mixMode === Ji.LiveTranscodingSingle) {
|
|
9494
9501
|
const o = this.singleParam;
|
|
9495
9502
|
if (o) {
|
|
9496
|
-
n.streamtype = o.streamType, o.sourceType ===
|
|
9503
|
+
n.streamtype = o.streamType, o.sourceType === Ci.LiveTranscodingShareScreen ? n.sourcetype = Ai[o.sourceType] : n.sourcetype = Ai[Ci.LiveTranscodingCamera];
|
|
9497
9504
|
const c = [];
|
|
9498
9505
|
o.userId && c.push(o.userId), n.subspecusers = c;
|
|
9499
9506
|
}
|
|
@@ -9677,8 +9684,8 @@ const nt = class nt {
|
|
|
9677
9684
|
}
|
|
9678
9685
|
};
|
|
9679
9686
|
p(nt, "instances", /* @__PURE__ */ new Map()), p(nt, "refCounts", /* @__PURE__ */ new Map());
|
|
9680
|
-
let
|
|
9681
|
-
const eo = (a = "DEFAULT") =>
|
|
9687
|
+
let Ti = nt;
|
|
9688
|
+
const eo = (a = "DEFAULT") => Ti.getInstance(a), { BrowserUtil: Cs, SystenUtil: wn } = ge, Hi = 6e5, vl = { host: "cn-shanghai.log.aliyuncs.com", project: "apsara-video-client", logstore: "client" }, yl = { host: "ap-southeast-1.log.aliyuncs.com", project: "apsara-video-client-sgp", logstore: "client" }, be = class be {
|
|
9682
9689
|
constructor(s) {
|
|
9683
9690
|
p(this, "param");
|
|
9684
9691
|
p(this, "msgCacheArr", []);
|
|
@@ -9764,14 +9771,14 @@ const eo = (a = "DEFAULT") => Ci.getInstance(a), { BrowserUtil: Ts, SystenUtil:
|
|
|
9764
9771
|
const t = be.sharedUpdateTimers.get(this.envKey);
|
|
9765
9772
|
t && (clearTimeout(t), be.sharedUpdateTimers.delete(this.envKey)), be.sharedTrackers.delete(this.envKey), be.sharedStsData.delete(this.envKey), be.sharedStsExpiration.delete(this.envKey), be.instanceCount.delete(this.envKey);
|
|
9766
9773
|
}
|
|
9767
|
-
|
|
9774
|
+
Ti.releaseInstance(this.envKey);
|
|
9768
9775
|
}
|
|
9769
9776
|
sendReport(s) {
|
|
9770
9777
|
var i;
|
|
9771
9778
|
let e;
|
|
9772
9779
|
s.tm = Date.now();
|
|
9773
9780
|
try {
|
|
9774
|
-
e = JSON.parse(JSON.stringify(J(dt(J({ bt:
|
|
9781
|
+
e = JSON.parse(JSON.stringify(J(dt(J({ bt: Cs.browserName || "unknown", ntptm: this.ntpClock.now(), ntpofs: this.ntpClock.now() - Date.now() }, this.param), { stat_log_id: `${((i = this.param) == null ? void 0 : i.sesid) || "nosession"}-${this.index}` }), s)));
|
|
9775
9782
|
} catch (r) {
|
|
9776
9783
|
}
|
|
9777
9784
|
if (!e)
|
|
@@ -9785,7 +9792,7 @@ const eo = (a = "DEFAULT") => Ci.getInstance(a), { BrowserUtil: Ts, SystenUtil:
|
|
|
9785
9792
|
e = (localStorage == null ? void 0 : localStorage.getItem("AliRtcUUID")) || "", e || (e = gt(), localStorage == null || localStorage.setItem("AliRtcUUID", e));
|
|
9786
9793
|
} catch (t) {
|
|
9787
9794
|
}
|
|
9788
|
-
this.param || (this.param = { apid: s.appId, usrid: s.userId, statsvrs: "0.6.1", evetid: 0, sesid: s.sessionId, sessionId: s.sessionId, channelid: s.channelId, usrn: s.userId, osn: wn.systemName, osv: wn.systemVersion, deb: uc(), den: lc(), model: xn(), platfm: Nn, udid: e, sdkvrs: ki, acs: "Unknown", cput: Mn(), dm: `${window.location.protocol}//${window.location.host}`, bt:
|
|
9795
|
+
this.param || (this.param = { apid: s.appId, usrid: s.userId, statsvrs: "0.6.1", evetid: 0, sesid: s.sessionId, sessionId: s.sessionId, channelid: s.channelId, usrn: s.userId, osn: wn.systemName, osv: wn.systemVersion, deb: uc(), den: lc(), model: xn(), platfm: Nn, udid: e, sdkvrs: ki, acs: "Unknown", cput: Mn(), dm: `${window.location.protocol}//${window.location.host}`, bt: Cs.browserName, bv: Cs.browserVersion, envir: "PRODUCT", args: "", instid: gt() });
|
|
9789
9796
|
}
|
|
9790
9797
|
};
|
|
9791
9798
|
p(be, "sharedTrackers", /* @__PURE__ */ new Map()), p(be, "sharedStsData", /* @__PURE__ */ new Map()), p(be, "sharedStsExpiration", /* @__PURE__ */ new Map()), p(be, "sharedUpdateTimers", /* @__PURE__ */ new Map()), p(be, "sharedClientId", gt()), p(be, "instanceCount", /* @__PURE__ */ new Map());
|
|
@@ -9803,11 +9810,11 @@ const ke = (a, s = 1, e = 6e4, t = 0) => {
|
|
|
9803
9810
|
return "0.00";
|
|
9804
9811
|
let e = a;
|
|
9805
9812
|
return (!e || e < 0) && (e = 0), (e / s * 100).toFixed(2);
|
|
9806
|
-
}, _n = (a) => a >= 0 && a <= 1 ? ke(Math.floor(32767 * a), 1, 32767) : 0,
|
|
9813
|
+
}, _n = (a) => a >= 0 && a <= 1 ? ke(Math.floor(32767 * a), 1, 32767) : 0, Te = (a, s) => {
|
|
9807
9814
|
var t, i, r;
|
|
9808
9815
|
let e = ((t = a._last) == null ? void 0 : t[s]) || 0;
|
|
9809
9816
|
return a.ssrc && ((i = a._last) != null && i.ssrc) && a.ssrc !== ((r = a._last) == null ? void 0 : r.ssrc) && (e = 0), ((a == null ? void 0 : a[s]) || 0) - e;
|
|
9810
|
-
}, In = (a, s) => ke(
|
|
9817
|
+
}, In = (a, s) => ke(Te(a, s), 1e3, 1e4), Yt = (a, s = 2e7) => ke(a, 1, s);
|
|
9811
9818
|
class Rl {
|
|
9812
9819
|
constructor(s, e) {
|
|
9813
9820
|
p(this, "engine");
|
|
@@ -9828,7 +9835,7 @@ class Rl {
|
|
|
9828
9835
|
this.authInfo = s, this.logClient.start(s);
|
|
9829
9836
|
}
|
|
9830
9837
|
stop() {
|
|
9831
|
-
this.logClient.stop(),
|
|
9838
|
+
this.logClient.stop(), Ti.releaseInstance(this.globalEnv);
|
|
9832
9839
|
}
|
|
9833
9840
|
reportPublishAudio3A(s, e, t, i) {
|
|
9834
9841
|
const r = {};
|
|
@@ -9838,39 +9845,39 @@ class Rl {
|
|
|
9838
9845
|
reportPublishMonitor(s, e, t, i, r) {
|
|
9839
9846
|
if (!t || r.length <= 0)
|
|
9840
9847
|
return;
|
|
9841
|
-
const n = t === P.Audio, o = { ctm: Math.floor(r[0].timestamp || 0), src: r[0].ssrc || "", codec: r[0]._codec || "" }, c = [], l = [], d = [], h = [], f = [], u = [], b = [], g = [], m = [], S = [], R = [], A = [], v = [], y = [], I = [], w = [],
|
|
9848
|
+
const n = t === P.Audio, o = { ctm: Math.floor(r[0].timestamp || 0), src: r[0].ssrc || "", codec: r[0]._codec || "" }, c = [], l = [], d = [], h = [], f = [], u = [], b = [], g = [], m = [], S = [], R = [], A = [], v = [], y = [], I = [], w = [], C = [], T = [], L = [], N = [];
|
|
9842
9849
|
try {
|
|
9843
9850
|
if (r.forEach((U) => {
|
|
9844
9851
|
var Re, Ie, G, fe, Oe, Ae;
|
|
9845
9852
|
if (!U || !U.timestamp)
|
|
9846
9853
|
return;
|
|
9847
|
-
const z = (Re = U._last) != null && Re.timestamp ? U.timestamp - U._last.timestamp : 1e3, Y =
|
|
9854
|
+
const z = (Re = U._last) != null && Re.timestamp ? U.timestamp - U._last.timestamp : 1e3, Y = Te(U, "bytesSent"), K = Te(U, "headerBytesSent"), $ = ut(ke(Y + K, 8, 2e7), z);
|
|
9848
9855
|
c.push($);
|
|
9849
9856
|
const Q = ut(ke(Y, 8, 2e7), z);
|
|
9850
9857
|
l.push(Q);
|
|
9851
9858
|
const te = ut(ke(K, 8, 2e7), z);
|
|
9852
9859
|
d.push(te);
|
|
9853
|
-
const M =
|
|
9860
|
+
const M = Te(U, "packetsSent"), O = ut(M, z);
|
|
9854
9861
|
h.push(O);
|
|
9855
|
-
const D =
|
|
9862
|
+
const D = Te(U, "packetsLost"), x = ut(D, z);
|
|
9856
9863
|
f.push(x);
|
|
9857
9864
|
const me = qt(D, M);
|
|
9858
9865
|
if (u.push(me), n)
|
|
9859
9866
|
(Ie = U._source) != null && Ie.audioLevel && b.push(_n(U._source.audioLevel)), g.push(0);
|
|
9860
9867
|
else {
|
|
9861
9868
|
m.push(In(U, "totalEncodeTime")), S.push(Yt((G = U._source) == null ? void 0 : G.framesPerSecond, 100)), R.push(Yt((fe = U._source) == null ? void 0 : fe.framesPerSecond, 100)), A.push(Yt(U.framesPerSecond, 100));
|
|
9862
|
-
const Se =
|
|
9863
|
-
v.push(ut(Se, z, 100)), y.push(Yt((Oe = U._source) == null ? void 0 : Oe.height, 4400)), I.push(Yt((Ae = U._source) == null ? void 0 : Ae.width, 7700)), w.push(Yt(U.frameHeight, 4400)),
|
|
9864
|
-
const ve =
|
|
9865
|
-
|
|
9866
|
-
const Fe =
|
|
9869
|
+
const Se = Te(U, "framesEncoded");
|
|
9870
|
+
v.push(ut(Se, z, 100)), y.push(Yt((Oe = U._source) == null ? void 0 : Oe.height, 4400)), I.push(Yt((Ae = U._source) == null ? void 0 : Ae.width, 7700)), w.push(Yt(U.frameHeight, 4400)), C.push(Yt(U.frameWidth, 7700));
|
|
9871
|
+
const ve = Te(U, "totalPacketSendDelay");
|
|
9872
|
+
T.push(ke(ve, 1 / (D || 1), 2e3));
|
|
9873
|
+
const Fe = Te(U, "qpSum");
|
|
9867
9874
|
L.push(ke(Fe, 1 / (U.framesPerSecond || 1), 51)), N.push(0);
|
|
9868
9875
|
}
|
|
9869
9876
|
}), o.sbr = c.join(","), o.mbrs = l.join(","), o.pbrs = d.join(","), o.ps = h.join(","), o.pl = f.join(","), o.plr = u.join(","), n) {
|
|
9870
9877
|
const U = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
9871
9878
|
o.ailevel = b.join(","), o.arpc = g.join(","), o.arsr = U, o.aesr = U, o.publevel = -90, o.rawlevel = -90;
|
|
9872
9879
|
} else
|
|
9873
|
-
o.em = m.join(","), o.cfps = S.join(","), o.ifps = R.join(","), o.sfps = A.join(","), o.efps = v.join(","), o.ih = y.join(","), o.iw = I.join(","), o.sh = w.join(","), o.sw =
|
|
9880
|
+
o.em = m.join(","), o.cfps = S.join(","), o.ifps = R.join(","), o.sfps = A.join(","), o.efps = v.join(","), o.ih = y.join(","), o.iw = I.join(","), o.sh = w.join(","), o.sw = C.join(","), o.sd = T.join(","), o.aqp = L.join(","), o.caf = N.join(","), o.can = N.join(","), o.cav = l.join(","), o.ifimax = N.join(","), o.ifimin = N.join(","), o.efimax = N.join(","), o.efimin = N.join(","), o.sfimax = N.join(","), o.sfimin = N.join(","), o.apsnr = N.join(",");
|
|
9874
9881
|
} catch (U) {
|
|
9875
9882
|
}
|
|
9876
9883
|
this.log({ evetid: 10070, traceid: e, calid: s, rmtid: "", args: this.data2String(J({ calid: s, tckid: t, rmtid: "", traceid: e }, o)) });
|
|
@@ -9878,33 +9885,33 @@ class Rl {
|
|
|
9878
9885
|
reportSubscribeMonitor(s, e, t, i, r) {
|
|
9879
9886
|
if (!i || !r || r.length <= 0)
|
|
9880
9887
|
return;
|
|
9881
|
-
const n = i === P.Audio, o = { ctm: Math.floor(r[0].timestamp || 0), src: r[0].ssrc || "", codec: r[0]._codec || "" }, c = [], l = [], d = [], h = [], f = [], u = [], b = [], g = [], m = [], S = [], R = [], A = [], v = [], y = [], I = [], w = [],
|
|
9888
|
+
const n = i === P.Audio, o = { ctm: Math.floor(r[0].timestamp || 0), src: r[0].ssrc || "", codec: r[0]._codec || "" }, c = [], l = [], d = [], h = [], f = [], u = [], b = [], g = [], m = [], S = [], R = [], A = [], v = [], y = [], I = [], w = [], C = [], T = [], L = [], N = [], U = [], z = [], Y = [], K = [], $ = [], Q = [], te = [], M = [], O = [], D = [], x = [], me = [], Re = [], Ie = [];
|
|
9882
9889
|
try {
|
|
9883
9890
|
r.forEach((G) => {
|
|
9884
9891
|
var q, De;
|
|
9885
9892
|
if (!G || !G.timestamp)
|
|
9886
9893
|
return;
|
|
9887
|
-
const fe = (q = G._last) != null && q.timestamp ? G.timestamp - G._last.timestamp : 1e3, Oe =
|
|
9894
|
+
const fe = (q = G._last) != null && q.timestamp ? G.timestamp - G._last.timestamp : 1e3, Oe = Te(G, "bytesReceived"), Ae = Te(G, "headerBytesReceived"), Se = ut(ke(Oe + Ae, 8, 2e7), fe);
|
|
9888
9895
|
c.push(Se);
|
|
9889
9896
|
const ve = ut(ke(Oe, 8, 2e7), fe);
|
|
9890
9897
|
l.push(ve);
|
|
9891
9898
|
const Fe = ut(ke(Ae, 8, 2e7), fe);
|
|
9892
9899
|
d.push(Fe);
|
|
9893
|
-
const se =
|
|
9900
|
+
const se = Te(G, "packetsReceived"), Ee = ut(se, fe);
|
|
9894
9901
|
h.push(Ee);
|
|
9895
|
-
const xe =
|
|
9902
|
+
const xe = Te(G, "packetsLost"), le = ut(xe, fe);
|
|
9896
9903
|
f.push(le);
|
|
9897
9904
|
const oe = qt(xe, se);
|
|
9898
9905
|
u.push(oe);
|
|
9899
|
-
const X =
|
|
9906
|
+
const X = Te(G, "jitterBufferDelay"), ye = Te(G, "jitterBufferEmittedCount");
|
|
9900
9907
|
if (G.jitterBufferDelay && G.jitterBufferEmittedCount) {
|
|
9901
9908
|
const Ze = ke(X, 1e3 / ye, 1e4);
|
|
9902
9909
|
b.push(Ze);
|
|
9903
9910
|
} else
|
|
9904
9911
|
b.push(0);
|
|
9905
|
-
const Ne =
|
|
9912
|
+
const Ne = Te(G, "fecPacketsReceived");
|
|
9906
9913
|
A.push(qt(Ne, se));
|
|
9907
|
-
const ae =
|
|
9914
|
+
const ae = Te(G, "retransmittedPacketsReceived"), Ge = se + xe - ae;
|
|
9908
9915
|
if (m.push(qt(se - ae, Ge)), S.push(qt(xe, Ge)), g.push(qt(ae, Ge)), R.push(Ge), Re.push(0), Ie.push(""), n) {
|
|
9909
9916
|
y.push(_n(G.audioLevel));
|
|
9910
9917
|
const Ze = ((et, At) => {
|
|
@@ -9915,28 +9922,28 @@ class Rl {
|
|
|
9915
9922
|
const ze = In(G, "synthesizedSamplesDuration");
|
|
9916
9923
|
w.push(ze);
|
|
9917
9924
|
const ni = qt(ze, fe);
|
|
9918
|
-
v.push(ni),
|
|
9925
|
+
v.push(ni), C.push(0);
|
|
9919
9926
|
} else {
|
|
9920
9927
|
const Ze = (De = G._last) != null && De.totalInterFrameDelay ? G.totalInterFrameDelay - G._last.totalInterFrameDelay : 0;
|
|
9921
|
-
|
|
9922
|
-
const ze =
|
|
9928
|
+
T.push(ke(Ze, 1e3 / (G.framesDecoded || 30), 500)), L.push(ke(G.framesPerSecond, 1, 100)), N.push(Te(G, "framesReceived")), me.push(Te(G, "framesRendered")), U.push(ke(G.frameHeight, 1, 4400)), z.push(ke(G.frameWidth, 1, 7700));
|
|
9929
|
+
const ze = Te(G, "totalProcessingDelay");
|
|
9923
9930
|
Y.push(ke(ze, 1e3 / (G.framesDecoded || 30), 12e4));
|
|
9924
|
-
const ni =
|
|
9931
|
+
const ni = Te(G, "nackCount");
|
|
9925
9932
|
$.push(ni);
|
|
9926
|
-
const et =
|
|
9933
|
+
const et = Te(G, "pliCount");
|
|
9927
9934
|
K.push(et);
|
|
9928
|
-
const At =
|
|
9935
|
+
const At = Te(G, "qpSum");
|
|
9929
9936
|
Q.push(ke(At, 1 / (G.framesPerSecond || 1), 51)), te.push(ke(G.framesDropped));
|
|
9930
|
-
const oi =
|
|
9937
|
+
const oi = Te(G, "totalFreezesDuration");
|
|
9931
9938
|
M.push(ke(oi, 1e3, 3e4));
|
|
9932
|
-
const ft =
|
|
9939
|
+
const ft = Te(G, "jitterBufferEmittedCount"), xt = Te(G, "jitterBufferDelay");
|
|
9933
9940
|
xt && ft ? O.push(ke(xt, 1e3 / ft, 3e4)) : O.push(0);
|
|
9934
|
-
const Di =
|
|
9941
|
+
const Di = Te(G, "jitterBufferTargetDelay");
|
|
9935
9942
|
Di && ft ? D.push(ke(Di, 1e3 / ft, 3e4)) : D.push(0);
|
|
9936
|
-
const Mi =
|
|
9943
|
+
const Mi = Te(G, "jitterBufferMinimumDelay");
|
|
9937
9944
|
Mi && ft ? x.push(ke(Mi, 1e3 / ft, 3e4)) : x.push(0);
|
|
9938
9945
|
}
|
|
9939
|
-
}), o.rbr = c.join(","), o.mbrs = l.join(","), o.pbrs = d.join(","), o.pr = h.join(","), o.pl = f.join(","), o.plr = u.join(","), o.jd = b.join(","), o.fecr = A.join(","), o.retransr = g.join(","), o.baser = m.join(","), o.basel = S.join(","), o.recoverr = Re.join(","), o.alll = S.join(","), o.totalc = R.join(","), n ? (o.er = v.join(","), o.aolevel = y.join(","), o.asrc =
|
|
9946
|
+
}), o.rbr = c.join(","), o.mbrs = l.join(","), o.pbrs = d.join(","), o.pr = h.join(","), o.pl = f.join(","), o.plr = u.join(","), o.jd = b.join(","), o.fecr = A.join(","), o.retransr = g.join(","), o.baser = m.join(","), o.basel = S.join(","), o.recoverr = Re.join(","), o.alll = S.join(","), o.totalc = R.join(","), n ? (o.er = v.join(","), o.aolevel = y.join(","), o.asrc = C.join(","), o.scnt = I.join(","), o.sdura = w.join(",")) : (o.dm = T.join(","), o.dfps = L.join(","), o.rfps = N.join(","), o.rh = U.join(","), o.rw = z.join(","), o.fpt = Ie.join(","), o.ns = $.join(","), o.pliss = K.join(","), o.aqp = Q.join(","), o.ofimax = Re.join(","), o.ofimin = Re.join(","), o.dfimax = Re.join(","), o.dfimin = Re.join(","), o.rfimax = Re.join(","), o.rfimin = Re.join(","), o.vrstutter = M.join(","), o.cdm = O.join(","), o.tdm = D.join(","), o.pdm = x.join(","), o.ofps = me.join(","), o.dfbd = te.join(","));
|
|
9940
9947
|
} catch (G) {
|
|
9941
9948
|
}
|
|
9942
9949
|
this.log({ evetid: 10080, traceid: t, rmtid: e, calid: s, new_args: _e.getInstance().getSummary(), args: this.data2String(J({ calid: s, rmtid: e, tckid: i, traceid: t }, o)) });
|
|
@@ -10301,11 +10308,11 @@ const pt = class pt extends Je {
|
|
|
10301
10308
|
this.sendPackage(t);
|
|
10302
10309
|
}
|
|
10303
10310
|
publish(e) {
|
|
10304
|
-
const l = e, { l1ip: t } = l, i =
|
|
10311
|
+
const l = e, { l1ip: t } = l, i = Ct(l, ["l1ip"]);
|
|
10305
10312
|
let r = this.packageCreator.createPublishPackage();
|
|
10306
10313
|
r.data.users = [], r.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
|
|
10307
10314
|
const { tracks: n, resume: o } = i;
|
|
10308
|
-
let c = "7.2.
|
|
10315
|
+
let c = "7.2.10";
|
|
10309
10316
|
c && (c = c.split("-")[0]), n.forEach((d) => {
|
|
10310
10317
|
const { codec: h, ssrc: f } = d;
|
|
10311
10318
|
d.userdata = JSON.stringify({ sdk_version: c, codec: h }), d.ssrc = `${f}`, o && (d.attr = { reason: "reconnect" });
|
|
@@ -10435,7 +10442,7 @@ const pt = class pt extends Je {
|
|
|
10435
10442
|
};
|
|
10436
10443
|
p(pt, "logName", "RSMessageCenter");
|
|
10437
10444
|
let zs = pt;
|
|
10438
|
-
var Al = Object.defineProperty, wl = Object.getOwnPropertyDescriptor,
|
|
10445
|
+
var Al = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, Ts = (a, s, e, t) => {
|
|
10439
10446
|
for (var i, r = t > 1 ? void 0 : t ? wl(s, e) : s, n = a.length - 1; n >= 0; n--)
|
|
10440
10447
|
(i = a[n]) && (r = (t ? i(s, e, r) : i(r)) || r);
|
|
10441
10448
|
return t && r && Al(s, e, r), r;
|
|
@@ -10563,7 +10570,7 @@ const ji = (tt = class extends Je {
|
|
|
10563
10570
|
});
|
|
10564
10571
|
}
|
|
10565
10572
|
}, p(tt, "logName", "RoomServerSignaling"), tt);
|
|
10566
|
-
|
|
10573
|
+
Ts([k()], ji.prototype, "join", 1), Ts([k()], ji.prototype, "publish", 1), Ts([k()], ji.prototype, "roleUpdate", 1);
|
|
10567
10574
|
let _l = ji;
|
|
10568
10575
|
var Il = Object.defineProperty, El = Object.getOwnPropertyDescriptor;
|
|
10569
10576
|
class ir extends Je {
|
|
@@ -10706,7 +10713,7 @@ p(ir, "logName", "SignalingManager");
|
|
|
10706
10713
|
(i = a[n]) && (r = (t ? i(s, e, r) : i(r)) || r);
|
|
10707
10714
|
t && r && Il(s, e, r);
|
|
10708
10715
|
})([k(H)], ir.prototype, "publish", 1);
|
|
10709
|
-
class
|
|
10716
|
+
class Cl {
|
|
10710
10717
|
constructor(s) {
|
|
10711
10718
|
p(this, "taskProfile");
|
|
10712
10719
|
p(this, "encodeParam");
|
|
@@ -10720,7 +10727,7 @@ class Tl {
|
|
|
10720
10727
|
this.taskProfile = s;
|
|
10721
10728
|
}
|
|
10722
10729
|
}
|
|
10723
|
-
class
|
|
10730
|
+
class Tl {
|
|
10724
10731
|
constructor(s, e, t) {
|
|
10725
10732
|
p(this, "userId");
|
|
10726
10733
|
p(this, "streamType");
|
|
@@ -10791,7 +10798,7 @@ class Dl {
|
|
|
10791
10798
|
}
|
|
10792
10799
|
toJson(s, e, t, i) {
|
|
10793
10800
|
const r = { paneid: s, majorpane: 0, x: vt(this.x, e), y: vt(this.y, t), width: vt(this.width, e), height: vt(this.height, t), zorder: this.zOrder, userid: this.userId, images: this.images.map((n) => n.toJson(e, t)), texts: this.texts.map((n) => n.toJson(e, t)) };
|
|
10794
|
-
return this.sourceType && Ai[this.sourceType] ? r.sourcetype = Ai[this.sourceType] : r.sourcetype = Ai[
|
|
10801
|
+
return this.sourceType && Ai[this.sourceType] ? r.sourcetype = Ai[this.sourceType] : r.sourcetype = Ai[Ci.LiveTranscodingCamera], this.segmentType && i === er.LiveTranscodingVirtualBackground ? r.segmenttype = this.segmentType : r.segmenttype = Gi.LiveTranscodingNoBody, r;
|
|
10795
10802
|
}
|
|
10796
10803
|
}
|
|
10797
10804
|
class Ml {
|
|
@@ -11194,13 +11201,13 @@ const j = (F = class extends Je {
|
|
|
11194
11201
|
}), this.signalingManager.on("onBye", (e, t) => {
|
|
11195
11202
|
E.setActiveInstance(this.instanceId), E.event("[Signaling] Bye ", e, t), this.slsReporter.reportError({ message: `reason: ${e}, description: ${t}` }), this.emit("bye", e), this.signalingManager.reset(), this.leaveChannel(), this.slsReporter.reportBye(e);
|
|
11196
11203
|
}), this.signalingManager.on("onConnectFail", (e) => {
|
|
11197
|
-
E.setActiveInstance(this.instanceId), E.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.bizControl.leave(), this.signalingManager.reset(), this.connectState = re.AliRtcConnectionStatusFailed, this.emit("connectionStatusChange", re.AliRtcConnectionStatusFailed,
|
|
11204
|
+
E.setActiveInstance(this.instanceId), E.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.bizControl.leave(), this.signalingManager.reset(), this.connectState = re.AliRtcConnectionStatusFailed, this.emit("connectionStatusChange", re.AliRtcConnectionStatusFailed, Tt.AliRtcConnectionChangedNetworkInterrupted);
|
|
11198
11205
|
}), this.signalingManager.on("onNetworkError", (e) => {
|
|
11199
11206
|
this.slsReporter.reportWarning("signaling network error"), E.setActiveInstance(this.instanceId), E.event("[Signaling] Network error ", e), this.onNetworkError();
|
|
11200
11207
|
}), this.signalingManager.on("onAuthInvalid", () => {
|
|
11201
11208
|
E.setActiveInstance(this.instanceId), E.event("[Signaling] Auth Invalid");
|
|
11202
11209
|
}), this.signalingManager.on("onReconnectStart", () => {
|
|
11203
|
-
this.onNetworkError(), E.setActiveInstance(this.instanceId), E.event("[Signaling] Reconnect Start "), this.connectState = re.AliRtcConnectionStatusReconnecting, this.emit("connectionStatusChange", re.AliRtcConnectionStatusReconnecting,
|
|
11210
|
+
this.onNetworkError(), E.setActiveInstance(this.instanceId), E.event("[Signaling] Reconnect Start "), this.connectState = re.AliRtcConnectionStatusReconnecting, this.emit("connectionStatusChange", re.AliRtcConnectionStatusReconnecting, Tt.AliRtcConnectionSignalingConnecting);
|
|
11204
11211
|
}), this.signalingManager.on("onReconnectSuccess", (e) => {
|
|
11205
11212
|
E.setActiveInstance(this.instanceId), E.event("[Signaling] Reconnect Success ", e), this.onNetworkRecovery(e);
|
|
11206
11213
|
}), this.signalingManager.on("onReconnectFail", (e) => {
|
|
@@ -11258,7 +11265,7 @@ const j = (F = class extends Je {
|
|
|
11258
11265
|
}
|
|
11259
11266
|
onNetworkRecovery(e) {
|
|
11260
11267
|
return _(this, null, function* () {
|
|
11261
|
-
E.event(F.logName, "onNetworkRecovery", `rts isConnected: ${this.bizControl.rtsManager.isConnected}; rts isConnecting: ${this.bizControl.rtsManager.isConnecting}`, { users: e }), yield this.resumeSubList(e), this.networkError && (this.networkError = !1, this.publisher.reportSelfDeviceStatus(), this.connectState = re.AliRtcConnectionStatusConnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusConnected,
|
|
11268
|
+
E.event(F.logName, "onNetworkRecovery", `rts isConnected: ${this.bizControl.rtsManager.isConnected}; rts isConnecting: ${this.bizControl.rtsManager.isConnecting}`, { users: e }), yield this.resumeSubList(e), this.networkError && (this.networkError = !1, this.publisher.reportSelfDeviceStatus(), this.connectState = re.AliRtcConnectionStatusConnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusConnected, Tt.AliRtcConnectionSignalingHeartbeatAlive));
|
|
11262
11269
|
});
|
|
11263
11270
|
}
|
|
11264
11271
|
resumeSubList(e) {
|
|
@@ -11289,7 +11296,7 @@ const j = (F = class extends Je {
|
|
|
11289
11296
|
});
|
|
11290
11297
|
}
|
|
11291
11298
|
onNetworkError() {
|
|
11292
|
-
this.connectState === re.AliRtcConnectionStatusConnected && (this.networkError || (this.connectState = re.AliRtcConnectionStatusDisconnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusDisconnected,
|
|
11299
|
+
this.connectState === re.AliRtcConnectionStatusConnected && (this.networkError || (this.connectState = re.AliRtcConnectionStatusDisconnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusDisconnected, Tt.AliRtcConnectionChangedNetworkInterrupted)), this.networkError = !0);
|
|
11293
11300
|
}
|
|
11294
11301
|
onError(e) {
|
|
11295
11302
|
this.slsReporter.reportError(e), E.event(F.logName, Me.Error, e);
|
|
@@ -11405,7 +11412,7 @@ const j = (F = class extends Je {
|
|
|
11405
11412
|
{
|
|
11406
11413
|
if (h)
|
|
11407
11414
|
throw this.connectState = re.AliRtcConnectionStatusFailed, this.slsReporter.reportJoin(h.code, d, ""), this.slsReporter.reportJoinResult(h), h;
|
|
11408
|
-
c.sessionId = Le.createCallid("web"), this.sessionId = c.sessionId, this.slsReporter.start(c), this.slsReporter.reportConnectionLatencyEvent(Xe.JOIN, st.START, "", "", o), this.connectState = re.AliRtcConnectionStatusConnecting, this.emit("connectionStatusChange", re.AliRtcConnectionStatusConnecting,
|
|
11415
|
+
c.sessionId = Le.createCallid("web"), this.sessionId = c.sessionId, this.slsReporter.start(c), this.slsReporter.reportConnectionLatencyEvent(Xe.JOIN, st.START, "", "", o), this.connectState = re.AliRtcConnectionStatusConnecting, this.emit("connectionStatusChange", re.AliRtcConnectionStatusConnecting, Tt.AliRtcConnectionSignalingConnecting), E.setActiveInstance(this.instanceId), E.setSessionID(c.appId, c.sessionId);
|
|
11409
11416
|
const f = () => _(this, null, function* () {
|
|
11410
11417
|
var g, m, S, R;
|
|
11411
11418
|
try {
|
|
@@ -11415,26 +11422,26 @@ const j = (F = class extends Je {
|
|
|
11415
11422
|
v.joinMode && (A = v.joinMode);
|
|
11416
11423
|
const y = new Ri(((g = this.config) == null ? void 0 : g.env) || Rt.prod, c, A);
|
|
11417
11424
|
if (y.result) {
|
|
11418
|
-
const
|
|
11419
|
-
y.result.useonepc &&
|
|
11425
|
+
const T = (u = y.result.config, b = Tn.EnableNonOnePcDefaultJoinMode, Xt(u == null ? void 0 : u.data, b));
|
|
11426
|
+
y.result.useonepc && T !== !1 || (A = ""), E.info(`[${Ri.logName}]`, "got allocate result from localStorage", `joinMode: ${A}`, y.result.useonepc, T);
|
|
11420
11427
|
} else
|
|
11421
11428
|
E.info(`[${Ri.logName}]`, "no allocate result in localStorage", `joinMode: ${A}`);
|
|
11422
11429
|
A && (i.joinmode = A);
|
|
11423
11430
|
const I = Date.now(), w = yield this.signalingManager.join(c, l, this.maxSignalingReconnectDuration, d, i);
|
|
11424
11431
|
w.l1ip ? (E.info("allocate l1 pub ip with mode", A, w.l1ip), this.bizControl.rtsManager.preferredPubL1Ip = w.l1ip) : this.bizControl.rtsManager.preferredPubL1Ip = void 0, w.l1subip ? (E.info("allocate l1 sub ip with mode", A, w.l1subip), this.bizControl.rtsManager.preferredSubL1Ip = w.l1subip) : this.bizControl.rtsManager.preferredSubL1Ip = void 0;
|
|
11425
|
-
const
|
|
11426
|
-
if (this.connectState = re.AliRtcConnectionStatusConnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusConnected,
|
|
11432
|
+
const C = Date.now();
|
|
11433
|
+
if (this.connectState = re.AliRtcConnectionStatusConnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusConnected, Tt.AliRtcConnectionSignalingJoinRoomSuccess), y.fetchAndUpdate(), this.bizControl.init(c, w, { capabilityProfile: typeof t == "object" ? t.capabilityProfile : Ki.Default, robotUserId: typeof t == "object" ? t.robotUserId : void 0 }), (m = w == null ? void 0 : w.config) == null ? void 0 : m.data) {
|
|
11427
11434
|
this.bizControl.updateDynamicConfig(w.config.data), _e.setGlobalQualityStatsEnable((S = this.bizControl.rtsManager.dycConf.getDycConf("h5_quality_stats_enable")) != null ? S : !0);
|
|
11428
|
-
const
|
|
11429
|
-
if (
|
|
11435
|
+
const T = this.bizControl.rtsManager.dycConf.getDycConf("h5_low_perf_devices") || "";
|
|
11436
|
+
if (T) {
|
|
11430
11437
|
const L = xn();
|
|
11431
|
-
L && (Array.isArray(
|
|
11438
|
+
L && (Array.isArray(T) ? T : String(T).split(",").map((N) => N.trim()).filter(Boolean)).includes(L) && (E.info("[LowPerfDevice]", `Current device "${L}" is in low performance device list, suggesting lower resolution subscription`), this.emit("sdkAdvisory", { type: "lowPerformanceDevice", deviceModel: L }), this.bizControl.rtsManager.isLowPerfDevice = !0);
|
|
11432
11439
|
}
|
|
11433
11440
|
}
|
|
11434
|
-
this.setCheckAuthInfoTimer(c.timestamp, w.timestamp), this.liveTranscoding.setAuthInfo(c), this.slsReporter.reportJoin(0, d, w.tid), this.slsReporter.reportJoinResult(null), this.slsReporter.reportConnectionLatencyEvent(Xe.JOIN, st.SEND_SIG, "", "", I), this.slsReporter.reportConnectionLatencyEvent(Xe.JOIN, st.RECV_RST, "", "",
|
|
11441
|
+
this.bizControl.setChannelContext(), this.setCheckAuthInfoTimer(c.timestamp, w.timestamp), this.liveTranscoding.setAuthInfo(c), this.slsReporter.reportJoin(0, d, w.tid), this.slsReporter.reportJoinResult(null), this.slsReporter.reportConnectionLatencyEvent(Xe.JOIN, st.SEND_SIG, "", "", I), this.slsReporter.reportConnectionLatencyEvent(Xe.JOIN, st.RECV_RST, "", "", C), this.slsReporter.reportConnectionLatencyEvent(Xe.JOIN, st.END, "", "");
|
|
11435
11442
|
} catch (A) {
|
|
11436
11443
|
const v = (R = A.code) != null ? R : -1, y = A.reason || A.message || "";
|
|
11437
|
-
throw this.connectState = re.AliRtcConnectionStatusDisconnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusDisconnected,
|
|
11444
|
+
throw this.connectState = re.AliRtcConnectionStatusDisconnected, this.emit("connectionStatusChange", re.AliRtcConnectionStatusDisconnected, Tt.AliRtcConnectionSignalingJoinRoomFailure), this.slsReporter.reportJoin(v, d, ""), this.slsReporter.reportJoinResult(A), new V(v, y);
|
|
11438
11445
|
}
|
|
11439
11446
|
var u, b;
|
|
11440
11447
|
});
|
|
@@ -11597,7 +11604,7 @@ const j = (F = class extends Je {
|
|
|
11597
11604
|
const { width: t, height: i } = e;
|
|
11598
11605
|
if (t && !isNaN(t) && i && !isNaN(i) && t * i > 9437184)
|
|
11599
11606
|
throw new V(B.ERR_INVALID_ARGUMENTS, "width * height must be less than 9437184");
|
|
11600
|
-
const c = e, { bitrate: r } = c, n =
|
|
11607
|
+
const c = e, { bitrate: r } = c, n = Ct(c, ["bitrate"]), o = J({}, n);
|
|
11601
11608
|
r && (o.maxBitrate = e.bitrate), yield this.publisher.setScreenProfile(o);
|
|
11602
11609
|
});
|
|
11603
11610
|
}
|
|
@@ -11699,7 +11706,7 @@ const j = (F = class extends Je {
|
|
|
11699
11706
|
}
|
|
11700
11707
|
setCameraCapturerConfiguration(e) {
|
|
11701
11708
|
return _(this, null, function* () {
|
|
11702
|
-
const l = e, { cameraDirection: t, deviceId: i, bitrate: r, maxSendFrameRate: n } = l, o =
|
|
11709
|
+
const l = e, { cameraDirection: t, deviceId: i, bitrate: r, maxSendFrameRate: n } = l, o = Ct(l, ["cameraDirection", "deviceId", "bitrate", "maxSendFrameRate"]), c = J({}, o);
|
|
11703
11710
|
r && (c.maxBitrate = r), n && (c.maxSendFrameRate = n), Object.keys(c).length > 0 && (yield this.publisher.setVideoProfile(c)), t !== void 0 && this.publisher.setCameraDirection(t), i && this.publisher.setCameraDeviceId(i);
|
|
11704
11711
|
});
|
|
11705
11712
|
}
|
|
@@ -11887,20 +11894,20 @@ const j = (F = class extends Je {
|
|
|
11887
11894
|
return (yield ge.getMicList()).filter((e) => e.deviceId);
|
|
11888
11895
|
})), p(F, "getSpeakerList", () => _(F, null, function* () {
|
|
11889
11896
|
return (yield ge.getSpeakerList()).filter((e) => e.deviceId);
|
|
11890
|
-
})), p(F, "_instances", /* @__PURE__ */ new Map()), p(F, "_instanceCounter", 0), p(F, "_instance"), p(F, "AliRtcSdkChannelProfile", Ut), p(F, "AliRtcSdkClientRole", Qt), p(F, "AliRtcVideoStreamType", Ye), p(F, "AliRtcVideoTrack", de), p(F, "AliRtcAudioTrack", gi), p(F, "AliRtcPublishState", Z), p(F, "AliRtcSubscribeState", ne), p(F, "AliRtcRawDataStreamType", He), p(F, "AliRtcLogLevel", Vn), p(F, "AliRtcEngineLocalDeviceType", Lt), p(F, "AliRtcEngineLocalDeviceExceptionType", We), p(F, "AliRtcConnectionStatus", re), p(F, "AliRtcConnectionStatusChangeReason",
|
|
11897
|
+
})), p(F, "_instances", /* @__PURE__ */ new Map()), p(F, "_instanceCounter", 0), p(F, "_instance"), p(F, "AliRtcSdkChannelProfile", Ut), p(F, "AliRtcSdkClientRole", Qt), p(F, "AliRtcVideoStreamType", Ye), p(F, "AliRtcVideoTrack", de), p(F, "AliRtcAudioTrack", gi), p(F, "AliRtcPublishState", Z), p(F, "AliRtcSubscribeState", ne), p(F, "AliRtcRawDataStreamType", He), p(F, "AliRtcLogLevel", Vn), p(F, "AliRtcEngineLocalDeviceType", Lt), p(F, "AliRtcEngineLocalDeviceExceptionType", We), p(F, "AliRtcConnectionStatus", re), p(F, "AliRtcConnectionStatusChangeReason", Tt), p(F, "AliRtcPlugin", Kt), p(F, "AliRtcPluginTrackType", Pi), p(F, "AliRtcImageHolderPlugin", Ll), p(F, "AliRtcLiveTranscodingParam", js), p(F, "AliRtcLiveTranscodingEncodeParam", Xn), p(F, "AliRtcLiveTranscodingMixParam", Cl), p(F, "AliRtcLiveTranscodingSingleParam", Tl), p(F, "AliRtcTranscodingClockWidget", kl), p(F, "AliRtcTranscodingImage", io), p(F, "AliRtcTranscodingText", Pl), p(F, "AliRtcTranscodingUser", Dl), p(F, "AliRtcLiveTranscodingMixMode", Ji), p(F, "AliRtcLiveTranscodingStreamType", Jn), p(F, "AliRtcLiveTranscodingSourceType", Ci), p(F, "AliRtcLiveTranscodingTaskProfile", Gn), p(F, "AliRtcLiveTranscodingAudioSampleRate", Zs), p(F, "AliRtcLiveTranscodingSegmentType", Gi), p(F, "AliRtcLiveTranscodingFontType", ts), p(F, "AliRtcLiveTranscodingCropMode", qn), p(F, "AliRtcLiveTranscodingMediaProcessMode", er), p(F, "AliRtcLiveTranscodingState", Yn), p(F, "AliRtcLiveTranscodingErrorCode", Dt), p(F, "AliRtcTrascodingPublishTaskStatus", Qn), p(F, "AliRtcDataChannelMsg", si), p(F, "AliRtcDataMsgType", Wn), p(F, "Plugin", Kt), F);
|
|
11891
11898
|
W([k()], j.prototype, "destroy", 1), W([k()], j.prototype, "backToUnpublishStatus", 1), W([k()], j.prototype, "resumePublishForNetworkRecovery", 1), W([k()], j.prototype, "onNetworkRecovery", 1), W([k()], j.prototype, "resumeSubList", 1), W([k(H)], j.prototype, "retrySubscribe", 1), W([k(H)], j.prototype, "setEnableDualVideoStream", 1), W([k(H)], j.prototype, "setChannelProfile", 1), W([k(H)], j.prototype, "setClientRole", 1), W([k(H)], j.prototype, "setAudioOnlyMode", 1), W([k()], j.prototype, "clearCheckAuthInfoTimer", 1), W([k(H)], j.prototype, "joinChannel", 1), W([k(H)], j.prototype, "joinAIChannel", 1), W([k(H)], j.prototype, "leaveChannel", 1), W([k(H)], j.prototype, "refreshAuthInfo", 1), W([k(H)], j.prototype, "publishLocalAudioStream", 1), W([k(H)], j.prototype, "setDefaultSubscribeAllRemoteAudioStreams", 1), W([k(H)], j.prototype, "subscribeAllRemoteAudioStreams", 1), W([k(H)], j.prototype, "subscribeRemoteAudioStream", 1), W([k(H)], j.prototype, "resumeRemoteAudioStream", 1), W([k(H)], j.prototype, "stopRemoteAudioPlay", 1), W([k(H)], j.prototype, "publishLocalVideoStream", 1), W([k(H)], j.prototype, "setRemoteDefaultVideoStreamType", 1), W([k(H)], j.prototype, "setRemoteUserVideoStreamType", 1), W([k(H)], j.prototype, "setDefaultSubscribeAllRemoteVideoStreams", 1), W([k(H)], j.prototype, "subscribeAllRemoteVideoStreams", 1), W([k(H)], j.prototype, "subscribeRemoteMediaStream", 1), W([k(H)], j.prototype, "resumeRemoteMediaStream", 1), W([k(([a]) => [`${a == null ? void 0 : a.audio}`])], j.prototype, "startScreenShare", 1), W([k()], j.prototype, "stopScreenShare", 1), W([k(H)], j.prototype, "setScreenShareConfiguration", 1), W([k(H)], j.prototype, "setScreenShareContentHint", 1), W([k()], j.prototype, "publishLocalScreenShareStream", 1), W([k(H)], j.prototype, "setAudioShareVolume", 1), W([k(H)], j.prototype, "enableAudioVolumeIndication", 1), W([k(H)], j.prototype, "muteLocalMic", 1), W([k(H)], j.prototype, "muteRemoteAudioPlaying", 1), W([k(H)], j.prototype, "muteAllRemoteAudioPlaying", 1), W([k(H)], j.prototype, "startAudioCapture", 1), W([k(H)], j.prototype, "setAudioConstraints", 1), W([k()], j.prototype, "stopAudioCapture", 1), W([k(H)], j.prototype, "switchMicrophone", 1), W([k(H)], j.prototype, "setRecordingVolume", 1), W([k(H)], j.prototype, "setPlayoutVolume", 1), W([k(H)], j.prototype, "setRemoteAudioVolume", 1), W([k(H)], j.prototype, "setAudioProfile", 1), W([k(H)], j.prototype, "getAudioTrack", 1), W([k(H)], j.prototype, "setLocalViewConfig", 1), W([k(H)], j.prototype, "setCameraCapturerConfiguration", 1), W([k(H)], j.prototype, "setCameraCapturerContentHint", 1), W([k(H)], j.prototype, "enableLocalVideo", 1), W([k(H)], j.prototype, "muteLocalCamera", 1), W([k(H)], j.prototype, "muteLocalScreen", 1), W([k(H)], j.prototype, "setRemoteViewConfig", 1), W([k(H)], j.prototype, "switchCamera", 1), W([k()], j.prototype, "startPreview", 1), W([k()], j.prototype, "startPreviewScreen", 1), W([k()], j.prototype, "stopPreview", 1), W([k()], j.prototype, "stopPreviewScreen", 1), W([k()], j.prototype, "startPublishLiveStream", 1), W([k()], j.prototype, "updatePublishLiveStream", 1), W([k()], j.prototype, "updatePublishLiveStreamWithTaskId", 1), W([k()], j.prototype, "stopPublishLiveStream", 1), W([k()], j.prototype, "stopPublishLiveStreamWithTaskId", 1), W([k(H)], j.prototype, "setEnableMediaExtensionMsg", 1), W([k(([a, s, e]) => [a.byteLength, s, e])], j.prototype, "sendMediaExtensionMsgEx", 1), W([k(([a, s]) => [a.name || "", s])], j.prototype, "enablePlugin", 1), W([k(H)], j.prototype, "removePlugin", 1), W([k(H)], j.prototype, "setPluginOption", 1), W([k(H)], j.prototype, "getPluginByName", 1), W([k(H)], j.prototype, "getPluginOption", 1), W([k(H)], j.prototype, "setBeautyEffect", 1), W([k(H)], j.prototype, "enableBackgroundExchange", 1), W([k(H)], j.prototype, "enableBackgroundBlur", 1), W([k(H)], j.prototype, "setParameter", 1), W([k(([a]) => {
|
|
11892
11899
|
var s;
|
|
11893
11900
|
return [(s = a.data) == null ? void 0 : s.byteLength];
|
|
11894
11901
|
})], j.prototype, "sendDataChannelMessage", 1), W([k(H)], j.prototype, "subscribeRemoteStream", 1), W([k(H)], j, "setLogLevel", 1);
|
|
11895
11902
|
let so = j;
|
|
11896
|
-
var
|
|
11897
|
-
Vt = new Qs({ businessName: "imp-web-rtc", version: (
|
|
11903
|
+
var Cn;
|
|
11904
|
+
Vt = new Qs({ businessName: "imp-web-rtc", version: (Cn = so.getSdkVersion()) != null ? Cn : "unknown", env: "prod", disabled: window.AliRtcOptionsDisableProxy === !0, deferRegionSet: !0 });
|
|
11898
11905
|
const Bl = Vt.shallowWrapClass(so);
|
|
11899
11906
|
export {
|
|
11900
11907
|
gi as AliRtcAudioTrack,
|
|
11901
11908
|
Ki as AliRtcCapabilityProfile,
|
|
11902
11909
|
re as AliRtcConnectionStatus,
|
|
11903
|
-
|
|
11910
|
+
Tt as AliRtcConnectionStatusChangeReason,
|
|
11904
11911
|
si as AliRtcDataChannelMsg,
|
|
11905
11912
|
Wn as AliRtcDataMsgType,
|
|
11906
11913
|
We as AliRtcEngineLocalDeviceExceptionType,
|
|
@@ -11914,11 +11921,11 @@ export {
|
|
|
11914
11921
|
ts as AliRtcLiveTranscodingFontType,
|
|
11915
11922
|
er as AliRtcLiveTranscodingMediaProcessMode,
|
|
11916
11923
|
Ji as AliRtcLiveTranscodingMixMode,
|
|
11917
|
-
|
|
11924
|
+
Cl as AliRtcLiveTranscodingMixParam,
|
|
11918
11925
|
js as AliRtcLiveTranscodingParam,
|
|
11919
11926
|
Gi as AliRtcLiveTranscodingSegmentType,
|
|
11920
|
-
|
|
11921
|
-
|
|
11927
|
+
Tl as AliRtcLiveTranscodingSingleParam,
|
|
11928
|
+
Ci as AliRtcLiveTranscodingSourceType,
|
|
11922
11929
|
Yn as AliRtcLiveTranscodingState,
|
|
11923
11930
|
Jn as AliRtcLiveTranscodingStreamType,
|
|
11924
11931
|
Gn as AliRtcLiveTranscodingTaskProfile,
|