aliyun-rtc-sdk 6.14.4-beta.0 → 6.14.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aliyun-rtc-sdk.es.js +970 -960
- package/dist/aliyun-rtc-sdk.umd.js +15 -15
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var jn = Object.defineProperty, zn = Object.defineProperties;
|
|
2
|
+
var Wn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var li = Object.getOwnPropertySymbols, $n = Object.getPrototypeOf, xs = Object.prototype.hasOwnProperty, Ss = Object.prototype.propertyIsEnumerable, Kn = Reflect.get;
|
|
4
|
+
var Bi = (r, a, e) => a in r ? jn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, G = (r, a) => {
|
|
5
5
|
for (var e in a || (a = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
xs.call(a, e) && Bi(r, e, a[e]);
|
|
7
|
+
if (li)
|
|
8
|
+
for (var e of li(a))
|
|
9
|
+
Ss.call(a, e) && Bi(r, e, a[e]);
|
|
10
10
|
return r;
|
|
11
|
-
}, ut = (r, a) =>
|
|
11
|
+
}, ut = (r, a) => zn(r, Wn(a));
|
|
12
12
|
var wt = (r, a) => {
|
|
13
13
|
var e = {};
|
|
14
14
|
for (var t in r)
|
|
15
|
-
|
|
16
|
-
if (r != null &&
|
|
17
|
-
for (var t of
|
|
18
|
-
a.indexOf(t) < 0 &&
|
|
15
|
+
xs.call(r, t) && a.indexOf(t) < 0 && (e[t] = r[t]);
|
|
16
|
+
if (r != null && li)
|
|
17
|
+
for (var t of li(r))
|
|
18
|
+
a.indexOf(t) < 0 && Ss.call(r, t) && (e[t] = r[t]);
|
|
19
19
|
return e;
|
|
20
20
|
};
|
|
21
|
-
var g = (r, a, e) => (
|
|
22
|
-
var
|
|
21
|
+
var g = (r, a, e) => (Bi(r, typeof a != "symbol" ? a + "" : a, e), e);
|
|
22
|
+
var Ni = (r, a, e) => Kn($n(r), e, a);
|
|
23
23
|
var w = (r, a, e) => new Promise((t, i) => {
|
|
24
24
|
var s = (o) => {
|
|
25
25
|
try {
|
|
@@ -36,13 +36,13 @@ var w = (r, a, e) => new Promise((t, i) => {
|
|
|
36
36
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
37
37
|
c((e = e.apply(r, a)).next());
|
|
38
38
|
});
|
|
39
|
-
import { AliRTS as le, EConnectStatus as
|
|
39
|
+
import { AliRTS as le, EConnectStatus as Li, EDatachannelStatus as vs } from "aliyun-rts-sdk";
|
|
40
40
|
import De from "eventemitter3";
|
|
41
|
-
var
|
|
41
|
+
var qn = Object.defineProperty, Jn = (r, a, e) => a in r ? qn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, Dt = (r, a, e) => (Jn(r, typeof a != "symbol" ? a + "" : a, e), e), Mi = { exports: {} }, Vi = { exports: {} }, Fi, bs;
|
|
42
42
|
function Ve() {
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
45
|
-
|
|
43
|
+
if (bs)
|
|
44
|
+
return Fi;
|
|
45
|
+
bs = 1, Date.now = Date.now || function() {
|
|
46
46
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
47
47
|
};
|
|
48
48
|
var r = Date.now(), a = function() {
|
|
@@ -479,26 +479,26 @@ function Ve() {
|
|
|
479
479
|
return c;
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
|
-
return
|
|
482
|
+
return Fi = t, Fi;
|
|
483
483
|
}
|
|
484
|
-
var
|
|
485
|
-
function
|
|
486
|
-
if (
|
|
487
|
-
return
|
|
488
|
-
|
|
484
|
+
var Oi = { exports: {} }, Ui = { exports: {} }, Hi, Es;
|
|
485
|
+
function Gn() {
|
|
486
|
+
if (Es)
|
|
487
|
+
return Hi;
|
|
488
|
+
Es = 1;
|
|
489
489
|
var r = Ve();
|
|
490
|
-
return
|
|
490
|
+
return Hi = function(a, e, t) {
|
|
491
491
|
typeof a == "object" && (a = r.serialize(a));
|
|
492
492
|
var i = e + a + (t ? "&post_res=" : "");
|
|
493
493
|
window && window.navigator && typeof window.navigator.sendBeacon == "function" ? window.navigator.sendBeacon(i, t || "&post_res=") : r.warn("[arms] navigator.sendBeacon not surported");
|
|
494
|
-
},
|
|
494
|
+
}, Hi;
|
|
495
495
|
}
|
|
496
|
-
var
|
|
497
|
-
function
|
|
498
|
-
if (
|
|
499
|
-
return
|
|
500
|
-
|
|
501
|
-
var r = Ve(), a =
|
|
496
|
+
var _s;
|
|
497
|
+
function Xn() {
|
|
498
|
+
if (_s)
|
|
499
|
+
return Ui.exports;
|
|
500
|
+
_s = 1;
|
|
501
|
+
var r = Ve(), a = Gn(), e = "aokcdqn3ly@e629dabd48a9933", t = function(s, n) {
|
|
502
502
|
var c;
|
|
503
503
|
if (n.t === "error" && (c = s.requestQueue[0]) && c.t === "error" && n.msg === c.msg)
|
|
504
504
|
return n.times = c.times + 1, void (s.requestQueue[0] = n);
|
|
@@ -726,14 +726,14 @@ function Jn() {
|
|
|
726
726
|
return !(c = h && h.length <= 20) && r.warn("[retcode] invalid key: " + h), o["x-" + h] = u, c;
|
|
727
727
|
}), c ? this._lg("custom", o, n || 1) : this;
|
|
728
728
|
}
|
|
729
|
-
},
|
|
729
|
+
}, Ui.exports = i, Ui.exports;
|
|
730
730
|
}
|
|
731
|
-
var
|
|
732
|
-
function
|
|
733
|
-
if (
|
|
734
|
-
return
|
|
735
|
-
|
|
736
|
-
var r = Ve(), a =
|
|
731
|
+
var As;
|
|
732
|
+
function Yn() {
|
|
733
|
+
if (As)
|
|
734
|
+
return Oi.exports;
|
|
735
|
+
As = 1;
|
|
736
|
+
var r = Ve(), a = Xn(), e = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], t = function(s) {
|
|
737
737
|
var n = (s.key || "default").split("::");
|
|
738
738
|
return n.length > 1 ? r.ext(s, {
|
|
739
739
|
group: n[0],
|
|
@@ -918,15 +918,15 @@ function Gn() {
|
|
|
918
918
|
c.success = s.success === !1 ? 0 : 1, this._lg("event", c, n);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
}), i._super = a, i._root = a, a.Reporter = i,
|
|
921
|
+
}), i._super = a, i._root = a, a.Reporter = i, Oi.exports = i, Oi.exports;
|
|
922
922
|
}
|
|
923
|
-
var
|
|
924
|
-
function
|
|
925
|
-
if (
|
|
926
|
-
return
|
|
927
|
-
|
|
923
|
+
var ji = { exports: {} }, ys;
|
|
924
|
+
function Zn() {
|
|
925
|
+
if (ys)
|
|
926
|
+
return ji.exports;
|
|
927
|
+
ys = 1;
|
|
928
928
|
var r = Ve(), a = typeof window == "object" ? window : {}, e = "catch", t = a.__oFetch_ || a.fetch;
|
|
929
|
-
return t = typeof t == "function" ? t : void 0,
|
|
929
|
+
return t = typeof t == "function" ? t : void 0, ji.exports = function(i, s) {
|
|
930
930
|
var n = -1;
|
|
931
931
|
typeof i == "object" && (n = i.z, i = r.serialize(i));
|
|
932
932
|
var c = s + i;
|
|
@@ -941,15 +941,15 @@ function Xn() {
|
|
|
941
941
|
a[o] = void 0;
|
|
942
942
|
}, u.src = c, u = null;
|
|
943
943
|
}
|
|
944
|
-
},
|
|
944
|
+
}, ji.exports;
|
|
945
945
|
}
|
|
946
|
-
var
|
|
947
|
-
function
|
|
948
|
-
if (
|
|
949
|
-
return
|
|
950
|
-
|
|
946
|
+
var zi = { exports: {} }, Cs;
|
|
947
|
+
function Qn() {
|
|
948
|
+
if (Cs)
|
|
949
|
+
return zi.exports;
|
|
950
|
+
Cs = 1;
|
|
951
951
|
var r = Ve(), a = typeof window == "object" ? window : {}, e = a.__oXMLHttpRequest_ || a.XMLHttpRequest;
|
|
952
|
-
return e = typeof e == "function" ? e : void 0,
|
|
952
|
+
return e = typeof e == "function" ? e : void 0, zi.exports = function(t, i) {
|
|
953
953
|
try {
|
|
954
954
|
var s = new e();
|
|
955
955
|
s.open("POST", i, !0), s.setRequestHeader("Content-Type", "text/plain"), s.send(JSON.stringify(t));
|
|
@@ -957,15 +957,15 @@ function Yn() {
|
|
|
957
957
|
r.warn(`[retcode] Failed to log, exception is :
|
|
958
958
|
` + n);
|
|
959
959
|
}
|
|
960
|
-
},
|
|
960
|
+
}, zi.exports;
|
|
961
961
|
}
|
|
962
|
-
var
|
|
963
|
-
function
|
|
964
|
-
if (
|
|
965
|
-
return
|
|
966
|
-
|
|
962
|
+
var Wi, Rs;
|
|
963
|
+
function eo() {
|
|
964
|
+
if (Rs)
|
|
965
|
+
return Wi;
|
|
966
|
+
Rs = 1;
|
|
967
967
|
var r = Ve();
|
|
968
|
-
return
|
|
968
|
+
return Wi = function(a, e) {
|
|
969
969
|
var t = [], i = null, s = e && e.location && e.location.href, n = void 0, c = null, o = function(d, f, m) {
|
|
970
970
|
if (d !== null) {
|
|
971
971
|
var l = d[f];
|
|
@@ -1137,19 +1137,19 @@ function Zn() {
|
|
|
1137
1137
|
return this;
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
|
-
},
|
|
1140
|
+
}, Wi;
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1142
|
+
var Is = {}, ws;
|
|
1143
|
+
function Kr() {
|
|
1144
|
+
return ws || (ws = 1, Is.TIMING_KEYS = ["startTime", "fetchStart", "domainLookupStart", "domainLookupEnd", "connectStart", "connectEnd", "requestStart", "responseStart", "responseEnd", "", "domInteractive", "", "domContentLoadedEventEnd", "", "loadEventStart", "", "msFirstPaint", "secureConnectionStart", "redirectStart", "redirectEnd"]), Is;
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1147
|
-
function
|
|
1148
|
-
if (
|
|
1149
|
-
return
|
|
1150
|
-
|
|
1151
|
-
var r = Ve(), a =
|
|
1152
|
-
return
|
|
1146
|
+
var $i, Ds;
|
|
1147
|
+
function to() {
|
|
1148
|
+
if (Ds)
|
|
1149
|
+
return $i;
|
|
1150
|
+
Ds = 1;
|
|
1151
|
+
var r = Ve(), a = Kr(), e = a.TIMING_KEYS;
|
|
1152
|
+
return $i = function() {
|
|
1153
1153
|
var t = r.win || {}, i = t.performance;
|
|
1154
1154
|
if (!i || typeof i != "object" || typeof i.getEntriesByType != "function")
|
|
1155
1155
|
return null;
|
|
@@ -1168,15 +1168,15 @@ function Qn() {
|
|
|
1168
1168
|
f >= 0 && f < 6e5 && (s[h] = f);
|
|
1169
1169
|
}
|
|
1170
1170
|
}), s.res = JSON.stringify(c), s;
|
|
1171
|
-
},
|
|
1171
|
+
}, $i;
|
|
1172
1172
|
}
|
|
1173
|
-
var
|
|
1174
|
-
function
|
|
1175
|
-
if (
|
|
1176
|
-
return
|
|
1177
|
-
|
|
1178
|
-
var r = Ve(), a =
|
|
1179
|
-
return
|
|
1173
|
+
var Ki, Ts;
|
|
1174
|
+
function io() {
|
|
1175
|
+
if (Ts)
|
|
1176
|
+
return Ki;
|
|
1177
|
+
Ts = 1;
|
|
1178
|
+
var r = Ve(), a = Kr(), e = a.TIMING_KEYS;
|
|
1179
|
+
return Ki = function() {
|
|
1180
1180
|
var t = r.win || {}, i = t.performance;
|
|
1181
1181
|
if (!i || typeof i != "object")
|
|
1182
1182
|
return null;
|
|
@@ -1213,12 +1213,12 @@ function eo() {
|
|
|
1213
1213
|
f >= 0 && f < 36e5 && (s.fpt = f);
|
|
1214
1214
|
}
|
|
1215
1215
|
return o === 1 && n[e[1]] > 0 ? s.begin = n[e[1]] : o === 2 && s.load > 0 ? s.begin = c - s.load : s.begin = c, s;
|
|
1216
|
-
},
|
|
1216
|
+
}, Ki;
|
|
1217
1217
|
}
|
|
1218
|
-
var
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1221
|
-
var t = Ve(), i =
|
|
1218
|
+
var Ps, ks;
|
|
1219
|
+
function ro() {
|
|
1220
|
+
return ks || (ks = 1, Ps = function(r, a, e) {
|
|
1221
|
+
var t = Ve(), i = to(), s = io(), n = null, c = e.documentElement, o = a.innerWidth || c.clientWidth || e.body.clientWidth, u = a.innerHeight || c.clientHeight || e.body.clientHeight, h = a.navigator.connection, p = {
|
|
1222
1222
|
sr: screen.width + "x" + screen.height,
|
|
1223
1223
|
vp: o + "x" + u,
|
|
1224
1224
|
ct: h ? h.effectiveType || h.type : ""
|
|
@@ -1385,15 +1385,15 @@ function to() {
|
|
|
1385
1385
|
}, !1, !0).on(a, "unhandledrejection", function(l) {
|
|
1386
1386
|
n && n.errorHandler(l);
|
|
1387
1387
|
}), r;
|
|
1388
|
-
}),
|
|
1388
|
+
}), Ps;
|
|
1389
1389
|
}
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1392
|
-
if (
|
|
1393
|
-
return
|
|
1394
|
-
|
|
1390
|
+
var qi, Bs;
|
|
1391
|
+
function so() {
|
|
1392
|
+
if (Bs)
|
|
1393
|
+
return qi;
|
|
1394
|
+
Bs = 1;
|
|
1395
1395
|
var r = Ve(), a = 500;
|
|
1396
|
-
return
|
|
1396
|
+
return qi = function(e, t, i) {
|
|
1397
1397
|
function s(p, d, f) {
|
|
1398
1398
|
var m = 0, l = p.tagName;
|
|
1399
1399
|
if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
|
|
@@ -1472,17 +1472,17 @@ function io() {
|
|
|
1472
1472
|
}, a);
|
|
1473
1473
|
}
|
|
1474
1474
|
});
|
|
1475
|
-
},
|
|
1475
|
+
}, qi;
|
|
1476
1476
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1477
|
+
var Ns, Ls;
|
|
1478
|
+
function ao() {
|
|
1479
|
+
return Ls || (Ls = 1, Ns = function(r, a) {
|
|
1480
1480
|
var e = Ve(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, m, l, x, v, S, b, E, _, y) {
|
|
1481
1481
|
var A = e.J(m) || null, R = e.safetyCall(p, [A, f], null);
|
|
1482
1482
|
if (!R)
|
|
1483
1483
|
return !1;
|
|
1484
|
-
var
|
|
1485
|
-
h.api(d, C, x,
|
|
1484
|
+
var L = R.code || l, C = !("success" in R) || R.success;
|
|
1485
|
+
h.api(d, C, x, L, R.msg, v, S, b, C ? {} : E, i, _, y);
|
|
1486
1486
|
}, n = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
|
|
1487
1487
|
return e.ext(r.prototype, {
|
|
1488
1488
|
removeHook: function(h, p) {
|
|
@@ -1503,7 +1503,7 @@ function ro() {
|
|
|
1503
1503
|
if (!e.checkAPI(b, !0) || e.ignoreByRule(b, _))
|
|
1504
1504
|
return p.apply(a, m);
|
|
1505
1505
|
b = e.filterByRule(b, E, v.ignoreApiPath ? v.ignoreApiPath : v.apiHelper);
|
|
1506
|
-
var A = v.enableLinkTrace, R = "",
|
|
1506
|
+
var A = v.enableLinkTrace, R = "", L = "", C = l.getConfig("pid"), I = null, P = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
|
|
1507
1507
|
if (P && !l.sampling(P) && ($ = 0), A) {
|
|
1508
1508
|
var q = "";
|
|
1509
1509
|
try {
|
|
@@ -1519,7 +1519,7 @@ function ro() {
|
|
|
1519
1519
|
switch (B) {
|
|
1520
1520
|
case "arms":
|
|
1521
1521
|
var ae = m[0].headers.get("EagleEye-TraceID"), Q = m[0].headers.get("EagleEye-SessionID"), te = m[0].headers.get("EagleEye-pAppName");
|
|
1522
|
-
ae ? R = ae : (R = l.getTraceId()["EagleEye-TraceID"], m[0].headers.append("EagleEye-TraceID", R)), Q ?
|
|
1522
|
+
ae ? R = ae : (R = l.getTraceId()["EagleEye-TraceID"], m[0].headers.append("EagleEye-TraceID", R)), Q ? L = Q : (L = l.getPageviewId()["EagleEye-SessionID"], m[0].headers.append("EagleEye-SessionID", L)), te || m[0].headers.append("EagleEye-pAppName", C);
|
|
1523
1523
|
break;
|
|
1524
1524
|
case "b3":
|
|
1525
1525
|
var ee = m[0].headers.get("X-B3-TraceId");
|
|
@@ -1529,12 +1529,12 @@ function ro() {
|
|
|
1529
1529
|
var k = l.getB3TraceId($);
|
|
1530
1530
|
m[0].headers.append("X-B3-TraceId", k["X-B3-TraceId"]), m[0].headers.append("X-B3-ParentSpanId", k["X-B3-ParentSpanId"]), m[0].headers.append("X-B3-SpanId", k["X-B3-SpanId"]), m[0].headers.append("X-B3-Sampled", k["X-B3-Sampled"]), m[0].headers.append("X-Request-ID", e.guid()), R = k["X-B3-TraceId"];
|
|
1531
1531
|
}
|
|
1532
|
-
|
|
1532
|
+
L = l.pageview;
|
|
1533
1533
|
break;
|
|
1534
1534
|
case "tracing":
|
|
1535
1535
|
default:
|
|
1536
|
-
var
|
|
1537
|
-
|
|
1536
|
+
var M = m[0].headers.get("uber-trace-id");
|
|
1537
|
+
M ? R = M.split(":")[0] : (M = l.getUberTraceId($), m[0].headers.append("uber-trace-id", M["uber-trace-id"]), R = M.traceId), L = l.pageview;
|
|
1538
1538
|
}
|
|
1539
1539
|
} catch (J) {
|
|
1540
1540
|
e.warn(`[retcode] fetch failed to set header, exception is :
|
|
@@ -1543,7 +1543,7 @@ function ro() {
|
|
|
1543
1543
|
else
|
|
1544
1544
|
switch (f.headers = f.headers ? f.headers : {}, B) {
|
|
1545
1545
|
case "arms":
|
|
1546
|
-
f.headers["EagleEye-TraceID"] ? R = f.headers["EagleEye-TraceID"] : (R = l.getTraceId()["EagleEye-TraceID"], f.headers["EagleEye-TraceID"] = R), f.headers["EagleEye-SessionID"] ?
|
|
1546
|
+
f.headers["EagleEye-TraceID"] ? R = f.headers["EagleEye-TraceID"] : (R = l.getTraceId()["EagleEye-TraceID"], f.headers["EagleEye-TraceID"] = R), f.headers["EagleEye-SessionID"] ? L = f.headers["EagleEye-SessionID"] : (L = l.getPageviewId()["EagleEye-SessionID"], f.headers["EagleEye-SessionID"] = L), f.headers["EagleEye-pAppName"] || (f.headers["EagleEye-pAppName"] = C);
|
|
1547
1547
|
break;
|
|
1548
1548
|
case "b3":
|
|
1549
1549
|
if (f.headers["X-B3-TraceId"])
|
|
@@ -1552,7 +1552,7 @@ function ro() {
|
|
|
1552
1552
|
var V = l.getB3TraceId($);
|
|
1553
1553
|
f.headers["X-B3-TraceId"] = V["X-B3-TraceId"], f.headers["X-B3-ParentSpanId"] = V["X-B3-ParentSpanId"], f.headers["X-B3-SpanId"] = V["X-B3-SpanId"], f.headers["X-B3-Sampled"] = V["X-B3-Sampled"], f.headers["X-Request-ID"] = e.guid(), R = V["X-B3-TraceId"];
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1555
|
+
L = l.getPageviewId()["EagleEye-SessionID"];
|
|
1556
1556
|
break;
|
|
1557
1557
|
case "tracing":
|
|
1558
1558
|
default:
|
|
@@ -1562,7 +1562,7 @@ function ro() {
|
|
|
1562
1562
|
var N = l.getUberTraceId($);
|
|
1563
1563
|
f.headers["uber-trace-id"] = N["uber-trace-id"], R = N.traceId;
|
|
1564
1564
|
}
|
|
1565
|
-
|
|
1565
|
+
L = l.getPageviewId()["EagleEye-SessionID"];
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
return p.apply(a, m).then(function(J) {
|
|
@@ -1588,7 +1588,7 @@ function ro() {
|
|
|
1588
1588
|
et && e.isString(et) && (R = et);
|
|
1589
1589
|
}
|
|
1590
1590
|
var Se = e.getFetchSnapshot(m, Qe, ce);
|
|
1591
|
-
j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze, x, R,
|
|
1591
|
+
j.ok ? s(l, v.parseResponse, b, E, Qe, j.status || 200, ze, x, R, L, Se, I, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, x, R, L, Se, i, I, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1592
1592
|
src: j.url,
|
|
1593
1593
|
res_type: "api"
|
|
1594
1594
|
}));
|
|
@@ -1600,7 +1600,7 @@ function ro() {
|
|
|
1600
1600
|
if (!l || !l.api)
|
|
1601
1601
|
throw J;
|
|
1602
1602
|
var j = S();
|
|
1603
|
-
throw l.api(b, !1, j, J.name || "Error", J.message, x, R,
|
|
1603
|
+
throw l.api(b, !1, j, J.name || "Error", J.message, x, R, L, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1604
1604
|
src: E,
|
|
1605
1605
|
res_type: "api"
|
|
1606
1606
|
}), J;
|
|
@@ -1615,13 +1615,13 @@ function ro() {
|
|
|
1615
1615
|
var l = new d(m), x = t;
|
|
1616
1616
|
if (!x || !x.api || !l.addEventListener)
|
|
1617
1617
|
return l;
|
|
1618
|
-
var v, S, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = x._conf,
|
|
1618
|
+
var v, S, b, E, _ = l.send, y = l.open, A = l.setRequestHeader, R = x._conf, L = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = x.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, X = x.getConfig("sample"), ae = x.getConfig("linkType"), Q = 1;
|
|
1619
1619
|
return X && !x.sampling(X) && (Q = 0), l.open = function(te, ee) {
|
|
1620
1620
|
p = te;
|
|
1621
1621
|
var k = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1622
1622
|
y.apply(l, k), E = ee || "", b = e.cutUrlSearch(E);
|
|
1623
|
-
var
|
|
1624
|
-
if (b = b ? e.filterByRule(b, E, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !
|
|
1623
|
+
var M = !e.checkAPI(b, !0) || e.ignoreByRule(b, L);
|
|
1624
|
+
if (b = b ? e.filterByRule(b, E, R.ignoreApiPath ? R.ignoreApiPath : R.apiHelper) : "", !M && I) {
|
|
1625
1625
|
var V = "";
|
|
1626
1626
|
try {
|
|
1627
1627
|
V = location.origin ? location.origin : location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "");
|
|
@@ -1656,8 +1656,8 @@ function ro() {
|
|
|
1656
1656
|
typeof k == "object" && k["eagleeye-traceid"] && (P = k["eagleeye-traceid"], q = "response");
|
|
1657
1657
|
}
|
|
1658
1658
|
if (!P && e.isFunction(C)) {
|
|
1659
|
-
var
|
|
1660
|
-
|
|
1659
|
+
var M = C(l);
|
|
1660
|
+
M && e.isString(M) && (P = M);
|
|
1661
1661
|
}
|
|
1662
1662
|
if (l.status >= 200 && l.status <= 299) {
|
|
1663
1663
|
var V = l.status || 200;
|
|
@@ -1685,11 +1685,11 @@ function ro() {
|
|
|
1685
1685
|
return this.hasInitHook ? this : (this.getConfig("disableHook") || this.addHook(), this.hasInitHook = !0, this);
|
|
1686
1686
|
}
|
|
1687
1687
|
}), r;
|
|
1688
|
-
}),
|
|
1688
|
+
}), Ns;
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1691
|
-
function
|
|
1692
|
-
return
|
|
1690
|
+
var Ms, Vs;
|
|
1691
|
+
function no() {
|
|
1692
|
+
return Vs || (Vs = 1, Ms = function(r, a) {
|
|
1693
1693
|
var e = Ve(), t = a.history || {}, i = a.document, s = function(c, o) {
|
|
1694
1694
|
var u;
|
|
1695
1695
|
a.CustomEvent ? u = new CustomEvent(c, {
|
|
@@ -1715,15 +1715,15 @@ function so() {
|
|
|
1715
1715
|
return this.hasHackedHistoryState ? this : (n("pushState"), n("replaceState"), this.hasHackedHistoryState = !0, this);
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
1718
|
-
}),
|
|
1718
|
+
}), Ms;
|
|
1719
1719
|
}
|
|
1720
|
-
var
|
|
1721
|
-
function
|
|
1722
|
-
if (
|
|
1723
|
-
return
|
|
1724
|
-
|
|
1725
|
-
var r = Ve(), a =
|
|
1726
|
-
return
|
|
1720
|
+
var Ji, Fs;
|
|
1721
|
+
function oo() {
|
|
1722
|
+
if (Fs)
|
|
1723
|
+
return Ji;
|
|
1724
|
+
Fs = 1;
|
|
1725
|
+
var r = Ve(), a = Kr(), e = a.TIMING_KEYS;
|
|
1726
|
+
return Ji = function(t, i) {
|
|
1727
1727
|
function s(o, u, h) {
|
|
1728
1728
|
if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
|
|
1729
1729
|
var p = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
|
|
@@ -1821,7 +1821,7 @@ function ao() {
|
|
|
1821
1821
|
try {
|
|
1822
1822
|
var R = JSON.parse(JSON.stringify(E));
|
|
1823
1823
|
R.success = y, R.resourceSlow = u, R.isSlow = A, S.timings.push(R);
|
|
1824
|
-
} catch (
|
|
1824
|
+
} catch (L) {
|
|
1825
1825
|
}
|
|
1826
1826
|
}), S.count && (S.size = Math.round(S.size / S.count), S.duration = Math.round(S.duration / S.count)), S.slow_count && (S.slow_duration = Math.round(S.slow_duration / S.slow_count)), S.err_count && (S.err_duration = Math.round(S.err_duration / S.err_count)), S.timings.length > 20 && (S.timings.sort(function(b, E) {
|
|
1827
1827
|
return E.duration - b.duration;
|
|
@@ -1837,14 +1837,14 @@ function ao() {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
|
-
},
|
|
1840
|
+
}, Ji;
|
|
1841
1841
|
}
|
|
1842
|
-
var
|
|
1843
|
-
function
|
|
1844
|
-
if (
|
|
1845
|
-
return
|
|
1846
|
-
|
|
1847
|
-
var r = Ve(), a =
|
|
1842
|
+
var Os;
|
|
1843
|
+
function co() {
|
|
1844
|
+
if (Os)
|
|
1845
|
+
return Vi.exports;
|
|
1846
|
+
Os = 1;
|
|
1847
|
+
var r = Ve(), a = Yn(), e = Zn(), t = Qn(), i = r.win, s = i.document, n = /^(error|api|speed|sum|avg|percent|custom|msg|setPage|setConfig|behavior|performance)$/, c = function(o) {
|
|
1848
1848
|
var u = this;
|
|
1849
1849
|
return a.call(u, o), u._initialPage = o.page && r.safetyCall(o.page, [], o.page + "") || null, u._isRobot = r.isRobot(), u._health = {
|
|
1850
1850
|
errcount: 0,
|
|
@@ -1980,13 +1980,13 @@ function no() {
|
|
|
1980
1980
|
var u = this.__proto__.constructor(o);
|
|
1981
1981
|
return o.page && u.sendPV(), u;
|
|
1982
1982
|
}
|
|
1983
|
-
}),
|
|
1983
|
+
}), eo()(c, i), ro()(c, i, s), so()(c, i, s), ao()(c, i), no()(c, i), oo()(c, i), c._super = a, c._root = a._root, a.Browser = c, Vi.exports = c, Vi.exports;
|
|
1984
1984
|
}
|
|
1985
|
-
var
|
|
1986
|
-
function
|
|
1987
|
-
if (
|
|
1988
|
-
return
|
|
1989
|
-
|
|
1985
|
+
var Us;
|
|
1986
|
+
function uo() {
|
|
1987
|
+
if (Us)
|
|
1988
|
+
return Mi.exports;
|
|
1989
|
+
Us = 1;
|
|
1990
1990
|
function r(c, o) {
|
|
1991
1991
|
var u = e[i] = new t(c);
|
|
1992
1992
|
u.sendPipe(o);
|
|
@@ -1999,7 +1999,7 @@ function oo() {
|
|
|
1999
1999
|
var c = {}, o = [];
|
|
2000
2000
|
return i in e && (c = e[i].config || {}, o = e[i].pipe || []), r(c, o);
|
|
2001
2001
|
}
|
|
2002
|
-
var e = window, t = e.BrowserLogger =
|
|
2002
|
+
var e = window, t = e.BrowserLogger = co(), i = Ve().key, s = "__hasInitBlSdk";
|
|
2003
2003
|
t.singleton = function(c, o) {
|
|
2004
2004
|
return e[s] ? e[i] : r(c, o);
|
|
2005
2005
|
}, t.createExtraInstance = function(c) {
|
|
@@ -2008,41 +2008,41 @@ function oo() {
|
|
|
2008
2008
|
return u.enableInstanceAutoSend && (u.autoSendPv !== !1 && o.sendPV(), u && u.useFmp || o.sendPerformance(), u && u.sendResource && o.sendResources()), o;
|
|
2009
2009
|
};
|
|
2010
2010
|
var n = typeof window == "object" && !!window.navigator;
|
|
2011
|
-
return n && e[i] && (t.bl = a()),
|
|
2011
|
+
return n && e[i] && (t.bl = a()), Mi.exports = t, Mi.exports;
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2013
|
+
function ho() {
|
|
2014
|
+
return uo();
|
|
2015
2015
|
}
|
|
2016
|
-
var
|
|
2017
|
-
getArmsLogger:
|
|
2016
|
+
var lo = {
|
|
2017
|
+
getArmsLogger: ho
|
|
2018
2018
|
};
|
|
2019
|
-
const
|
|
2019
|
+
const Hs = "https://arms-retcode.aliyuncs.com/r.png?", js = "https://arms-retcode-sg.aliyuncs.com/r.png?", zs = "https://retcode-us-west-1.arms.aliyuncs.com/r.png?", Ws = "e1iftji1w7@7ec1cef2cc88733", $s = "e1iftji1w7@10a06d1ec260adc", Ks = "e1iftji1w7@10a06d1ec260adc", Gi = {
|
|
2020
2020
|
cn: {
|
|
2021
|
-
reportUrl:
|
|
2022
|
-
pid:
|
|
2021
|
+
reportUrl: Hs,
|
|
2022
|
+
pid: Ws
|
|
2023
2023
|
},
|
|
2024
2024
|
"cn-hangzhou": {
|
|
2025
|
-
reportUrl:
|
|
2026
|
-
pid:
|
|
2025
|
+
reportUrl: Hs,
|
|
2026
|
+
pid: Ws
|
|
2027
2027
|
},
|
|
2028
2028
|
sg: {
|
|
2029
|
-
reportUrl:
|
|
2030
|
-
pid:
|
|
2029
|
+
reportUrl: js,
|
|
2030
|
+
pid: $s
|
|
2031
2031
|
},
|
|
2032
2032
|
"ap-southeast-1": {
|
|
2033
|
-
reportUrl:
|
|
2034
|
-
pid:
|
|
2033
|
+
reportUrl: js,
|
|
2034
|
+
pid: $s
|
|
2035
2035
|
},
|
|
2036
2036
|
usw: {
|
|
2037
|
-
reportUrl:
|
|
2038
|
-
pid:
|
|
2037
|
+
reportUrl: zs,
|
|
2038
|
+
pid: Ks
|
|
2039
2039
|
},
|
|
2040
2040
|
"us-west-1": {
|
|
2041
|
-
reportUrl:
|
|
2042
|
-
pid:
|
|
2041
|
+
reportUrl: zs,
|
|
2042
|
+
pid: Ks
|
|
2043
2043
|
}
|
|
2044
|
-
},
|
|
2045
|
-
function
|
|
2044
|
+
}, fo = (r) => r !== null && typeof r == "object", po = (r) => Object.prototype.toString.call(r).slice(8, -1), go = (r) => Object.isExtensible(r) ? po(r) === "Object" : !1;
|
|
2045
|
+
function mo(r, a, e) {
|
|
2046
2046
|
var n;
|
|
2047
2047
|
if (Reflect.get(r, "__v_skip") === !0)
|
|
2048
2048
|
return r;
|
|
@@ -2076,7 +2076,7 @@ function po(r, a, e) {
|
|
|
2076
2076
|
set: s.MediaboxWrapperObjectSetter
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2079
|
+
function xo(r, a, e) {
|
|
2080
2080
|
const t = {
|
|
2081
2081
|
MediaboxWrapperFunctionApply(i, s, n) {
|
|
2082
2082
|
let c;
|
|
@@ -2107,16 +2107,16 @@ function go(r, a, e) {
|
|
|
2107
2107
|
construct: t.MediaboxWrapperClassConstructor
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function So(r, a) {
|
|
2111
2111
|
if (typeof r != "string")
|
|
2112
2112
|
return a;
|
|
2113
|
-
if (
|
|
2113
|
+
if (on(r, a))
|
|
2114
2114
|
return r;
|
|
2115
2115
|
const e = r.indexOf(`
|
|
2116
2116
|
`);
|
|
2117
2117
|
return e < 0 ? `${r}${a}` : `${r.slice(0, e)}${a}${r.slice(e)}`;
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function on(r, a) {
|
|
2120
2120
|
if (typeof r != "string")
|
|
2121
2121
|
return !1;
|
|
2122
2122
|
const e = r.indexOf(a);
|
|
@@ -2127,36 +2127,36 @@ function an(r, a) {
|
|
|
2127
2127
|
return t < 0 ? !0 : e < t;
|
|
2128
2128
|
}
|
|
2129
2129
|
function ft(r, a, e) {
|
|
2130
|
-
return typeof r == "function" ?
|
|
2130
|
+
return typeof r == "function" ? xo(r, a + 1, e) : r instanceof Promise ? r.then((t) => ft(t, a + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? (r.forEach((t, i) => {
|
|
2131
2131
|
r[i] = ft(t, a + 1, e);
|
|
2132
|
-
}), r) :
|
|
2132
|
+
}), r) : fo(r) && go(r) ? mo(r, a + 1, e) : r;
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2134
|
+
function vo(r) {
|
|
2135
2135
|
return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1;
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2137
|
+
function qs(r) {
|
|
2138
2138
|
return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1 || r.indexOf("MediaboxWrapper") > -1;
|
|
2139
2139
|
}
|
|
2140
|
-
class
|
|
2140
|
+
class Js extends Error {
|
|
2141
2141
|
constructor(a) {
|
|
2142
2142
|
super(a), this.name = "MQTError";
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
let
|
|
2146
|
-
class
|
|
2145
|
+
let bo = 1;
|
|
2146
|
+
class qr {
|
|
2147
2147
|
constructor(a) {
|
|
2148
2148
|
var e, t;
|
|
2149
2149
|
Dt(this, "armsLogger"), Dt(this, "isReady", !1), Dt(this, "isDestroyed", !1), Dt(this, "options"), Dt(this, "queue", []), Dt(this, "marker"), Dt(this, "helper", {
|
|
2150
2150
|
MediaboxWrapperQueue(i) {
|
|
2151
|
-
return new
|
|
2151
|
+
return new Js(i);
|
|
2152
2152
|
},
|
|
2153
2153
|
MediaboxWrapperInitiative(i) {
|
|
2154
|
-
return new
|
|
2154
|
+
return new Js(i);
|
|
2155
2155
|
}
|
|
2156
2156
|
}), this.options = ut(G({}, a), {
|
|
2157
2157
|
region: a.deferRegionSet ? void 0 : (e = a.region) != null ? e : "cn",
|
|
2158
2158
|
env: (t = a.env) != null ? t : "prod"
|
|
2159
|
-
}), this.marker = `-${
|
|
2159
|
+
}), this.marker = `-${bo++}-`, this.initArmsLogger();
|
|
2160
2160
|
}
|
|
2161
2161
|
static get version() {
|
|
2162
2162
|
return "0.23.0";
|
|
@@ -2169,29 +2169,29 @@ class $r {
|
|
|
2169
2169
|
throw new Error("region is required");
|
|
2170
2170
|
if (!e)
|
|
2171
2171
|
return;
|
|
2172
|
-
if (!
|
|
2172
|
+
if (!Gi[e])
|
|
2173
2173
|
throw new Error(`region ${e} is not supported`);
|
|
2174
2174
|
const s = (c) => {
|
|
2175
2175
|
var o;
|
|
2176
|
-
if (this.isDestroyed ||
|
|
2176
|
+
if (this.isDestroyed || on(c.stack, this.marker) || c.t !== "pv" && c.t !== "error")
|
|
2177
2177
|
return !1;
|
|
2178
|
-
if (c.c1 = (o = this.options.cid) != null ? o : window.location.host, c.c2 =
|
|
2179
|
-
if (
|
|
2178
|
+
if (c.c1 = (o = this.options.cid) != null ? o : window.location.host, c.c2 = qr.version, this.options.customData && (c.c3 = new URLSearchParams(this.options.customData).toString()), c.t === "error") {
|
|
2179
|
+
if (vo(c.file) || qs(c.stack)) {
|
|
2180
2180
|
let u = c;
|
|
2181
2181
|
return this.options.beforeSend && (u = this.options.beforeSend(c)), this.isReady ? u : (u && this.queue.push(u), !1);
|
|
2182
2182
|
}
|
|
2183
2183
|
return !1;
|
|
2184
2184
|
}
|
|
2185
2185
|
return c;
|
|
2186
|
-
}, n =
|
|
2186
|
+
}, n = lo.getArmsLogger();
|
|
2187
2187
|
this.armsLogger = n.createExtraInstance({
|
|
2188
2188
|
enableInstanceAutoSend: !0,
|
|
2189
|
-
pid:
|
|
2189
|
+
pid: Gi[e].pid,
|
|
2190
2190
|
tag: this.options.businessName,
|
|
2191
2191
|
release: `${this.options.businessName}_${this.options.version}`,
|
|
2192
2192
|
// release 参数只能初始化时设置
|
|
2193
2193
|
// appType: "web",
|
|
2194
|
-
imgUrl:
|
|
2194
|
+
imgUrl: Gi[e].reportUrl,
|
|
2195
2195
|
// sendResource: true,
|
|
2196
2196
|
behavior: !0,
|
|
2197
2197
|
sample: 1,
|
|
@@ -2206,7 +2206,7 @@ class $r {
|
|
|
2206
2206
|
wrap(a) {
|
|
2207
2207
|
return this.options.disabled || typeof Proxy > "u" ? a : ft(a, 0, (e) => {
|
|
2208
2208
|
var t;
|
|
2209
|
-
e instanceof Error && typeof e.stack == "string" &&
|
|
2209
|
+
e instanceof Error && typeof e.stack == "string" && qs(e.stack) && ((t = this.armsLogger) == null || t.error(e), e.stack = So(e.stack, this.marker));
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
2212
|
updateOptions(a) {
|
|
@@ -2234,43 +2234,43 @@ class $r {
|
|
|
2234
2234
|
this.isDestroyed = !0;
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}),
|
|
2238
|
-
for (var
|
|
2239
|
-
Ie.push((
|
|
2240
|
-
function
|
|
2237
|
+
var oe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(oe || {}), Me = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Me || {}), T = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(T || {}), Jr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(Jr || {}), St = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(St || {}), Jt = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))(Jt || {}), Si = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(Si || {}), de = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(de || {}), nt = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(nt || {}), Ie = [];
|
|
2238
|
+
for (var Xi = 0; Xi < 256; ++Xi)
|
|
2239
|
+
Ie.push((Xi + 256).toString(16).slice(1));
|
|
2240
|
+
function Eo(r, a = 0) {
|
|
2241
2241
|
return (Ie[r[a + 0]] + Ie[r[a + 1]] + Ie[r[a + 2]] + Ie[r[a + 3]] + "-" + Ie[r[a + 4]] + Ie[r[a + 5]] + "-" + Ie[r[a + 6]] + Ie[r[a + 7]] + "-" + Ie[r[a + 8]] + Ie[r[a + 9]] + "-" + Ie[r[a + 10]] + Ie[r[a + 11]] + Ie[r[a + 12]] + Ie[r[a + 13]] + Ie[r[a + 14]] + Ie[r[a + 15]]).toLowerCase();
|
|
2242
2242
|
}
|
|
2243
|
-
var
|
|
2244
|
-
function
|
|
2245
|
-
if (!
|
|
2243
|
+
var fi, _o = new Uint8Array(16);
|
|
2244
|
+
function Ao() {
|
|
2245
|
+
if (!fi && (fi = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !fi))
|
|
2246
2246
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2247
|
-
return
|
|
2247
|
+
return fi(_o);
|
|
2248
2248
|
}
|
|
2249
|
-
var
|
|
2250
|
-
const
|
|
2251
|
-
randomUUID:
|
|
2249
|
+
var yo = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
2250
|
+
const Gs = {
|
|
2251
|
+
randomUUID: yo
|
|
2252
2252
|
};
|
|
2253
2253
|
function rt(r, a, e) {
|
|
2254
|
-
if (
|
|
2255
|
-
return
|
|
2254
|
+
if (Gs.randomUUID && !a && !r)
|
|
2255
|
+
return Gs.randomUUID();
|
|
2256
2256
|
r = r || {};
|
|
2257
|
-
var t = r.random || (r.rng ||
|
|
2257
|
+
var t = r.random || (r.rng || Ao)();
|
|
2258
2258
|
if (t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, a) {
|
|
2259
2259
|
e = e || 0;
|
|
2260
2260
|
for (var i = 0; i < 16; ++i)
|
|
2261
2261
|
a[e + i] = t[i];
|
|
2262
2262
|
return a;
|
|
2263
2263
|
}
|
|
2264
|
-
return
|
|
2264
|
+
return Eo(t);
|
|
2265
2265
|
}
|
|
2266
|
-
var
|
|
2267
|
-
const
|
|
2266
|
+
var vi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(vi || {});
|
|
2267
|
+
const yi = "6.14.4-beta.1", Xs = "web";
|
|
2268
2268
|
class He {
|
|
2269
2269
|
/**
|
|
2270
2270
|
* 将版本号转换为number
|
|
2271
2271
|
*/
|
|
2272
2272
|
static getVersionNumber() {
|
|
2273
|
-
let a =
|
|
2273
|
+
let a = yi.split("."), e = "";
|
|
2274
2274
|
return a.forEach((t) => {
|
|
2275
2275
|
t.length === 1 ? e += "0" + t : e += t;
|
|
2276
2276
|
}), parseInt(e);
|
|
@@ -2328,7 +2328,7 @@ class He {
|
|
|
2328
2328
|
*/
|
|
2329
2329
|
static isNetworkAvailable() {
|
|
2330
2330
|
return w(this, null, function* () {
|
|
2331
|
-
const a =
|
|
2331
|
+
const a = vi.prod, { onLine: e } = navigator;
|
|
2332
2332
|
if (!e)
|
|
2333
2333
|
return !1;
|
|
2334
2334
|
try {
|
|
@@ -2374,7 +2374,7 @@ class He {
|
|
|
2374
2374
|
return e;
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function Ys(r, a, e) {
|
|
2378
2378
|
Object.defineProperty(r, a, {
|
|
2379
2379
|
writable: !0,
|
|
2380
2380
|
enumerable: !0,
|
|
@@ -2382,13 +2382,13 @@ function Gs(r, a, e) {
|
|
|
2382
2382
|
value: e
|
|
2383
2383
|
});
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function cn(r, a, e, t) {
|
|
2386
2386
|
t ? t(() => {
|
|
2387
|
-
|
|
2388
|
-
}) :
|
|
2387
|
+
Ys(r, a, e);
|
|
2388
|
+
}) : Ys(r, a, e);
|
|
2389
2389
|
}
|
|
2390
2390
|
Array(32);
|
|
2391
|
-
class
|
|
2391
|
+
class Co {
|
|
2392
2392
|
constructor(a) {
|
|
2393
2393
|
this.timer = null, this.time = 10, this.count = 10, this.arr = [];
|
|
2394
2394
|
var e, t;
|
|
@@ -2450,7 +2450,7 @@ class Ao {
|
|
|
2450
2450
|
return this.opt;
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
|
-
var
|
|
2453
|
+
var Ro = (r, a, e) => new Promise((t, i) => {
|
|
2454
2454
|
var s = (o) => {
|
|
2455
2455
|
try {
|
|
2456
2456
|
c(e.next(o));
|
|
@@ -2466,27 +2466,27 @@ var yo = (r, a, e) => new Promise((t, i) => {
|
|
|
2466
2466
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
2467
2467
|
c((e = e.apply(r, a)).next());
|
|
2468
2468
|
});
|
|
2469
|
-
function
|
|
2469
|
+
function Io(r, a) {
|
|
2470
2470
|
return navigator && navigator.sendBeacon ? navigator.sendBeacon(`${r}?APIVersion=0.6.0`, a) : !1;
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function Zs(r, a) {
|
|
2473
2473
|
const e = new window.XMLHttpRequest();
|
|
2474
2474
|
e.open("POST", `${r}?APIVersion=0.6.0`, !0), e.send(a);
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function wo(r, a) {
|
|
2477
2477
|
try {
|
|
2478
2478
|
if (a.length >= 32768) {
|
|
2479
|
-
|
|
2479
|
+
Zs(r, a);
|
|
2480
2480
|
return;
|
|
2481
2481
|
}
|
|
2482
|
-
|
|
2482
|
+
Io(r, a) || Zs(r, a);
|
|
2483
2483
|
} catch (e) {
|
|
2484
2484
|
window && window.console && typeof window.console.error == "function" && (console.error(`Failed to log to ali log service because of this exception:
|
|
2485
2485
|
` + e), console.error("Failed log data:", r));
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
|
-
function
|
|
2489
|
-
return
|
|
2488
|
+
function Do(r, a, e) {
|
|
2489
|
+
return Ro(this, null, function* () {
|
|
2490
2490
|
try {
|
|
2491
2491
|
r = r.slice(0, -6);
|
|
2492
2492
|
const { data: t, header: i } = yield e.process(r, a), s = new window.XMLHttpRequest();
|
|
@@ -2500,7 +2500,7 @@ function Io(r, a, e) {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
});
|
|
2502
2502
|
}
|
|
2503
|
-
class
|
|
2503
|
+
class Gr extends Co {
|
|
2504
2504
|
constructor(a) {
|
|
2505
2505
|
const e = Object.assign({}, a, {
|
|
2506
2506
|
installUnloadHook: (t) => {
|
|
@@ -2509,23 +2509,23 @@ class qr extends Ao {
|
|
|
2509
2509
|
});
|
|
2510
2510
|
},
|
|
2511
2511
|
sendPayload: (t, i) => {
|
|
2512
|
-
|
|
2512
|
+
wo(t, i);
|
|
2513
2513
|
}
|
|
2514
2514
|
});
|
|
2515
2515
|
super(e);
|
|
2516
2516
|
}
|
|
2517
2517
|
useStsPlugin(a) {
|
|
2518
2518
|
this.getOpt().sendPayload = (e, t) => {
|
|
2519
|
-
|
|
2519
|
+
Do(e, t, a);
|
|
2520
2520
|
}, this.overwriteTransString(a);
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
|
-
|
|
2523
|
+
cn(window, "SLS_Tracker", Gr);
|
|
2524
2524
|
var ie = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
2525
|
-
function
|
|
2525
|
+
function To(r) {
|
|
2526
2526
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Po(r) {
|
|
2529
2529
|
if (r.__esModule)
|
|
2530
2530
|
return r;
|
|
2531
2531
|
var a = r.default;
|
|
@@ -2546,26 +2546,26 @@ function Do(r) {
|
|
|
2546
2546
|
});
|
|
2547
2547
|
}), e;
|
|
2548
2548
|
}
|
|
2549
|
-
var
|
|
2550
|
-
function
|
|
2549
|
+
var un = { exports: {} };
|
|
2550
|
+
function ko(r) {
|
|
2551
2551
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2552
2552
|
}
|
|
2553
|
-
var
|
|
2554
|
-
const
|
|
2553
|
+
var Yi = { exports: {} };
|
|
2554
|
+
const Bo = {}, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2555
2555
|
__proto__: null,
|
|
2556
|
-
default:
|
|
2557
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2558
|
-
var
|
|
2556
|
+
default: Bo
|
|
2557
|
+
}, Symbol.toStringTag, { value: "Module" })), Lo = /* @__PURE__ */ Po(No);
|
|
2558
|
+
var Qs;
|
|
2559
2559
|
function ne() {
|
|
2560
|
-
return
|
|
2560
|
+
return Qs || (Qs = 1, function(r, a) {
|
|
2561
2561
|
(function(e, t) {
|
|
2562
2562
|
r.exports = t();
|
|
2563
2563
|
})(ie, function() {
|
|
2564
2564
|
var e = e || function(t, i) {
|
|
2565
2565
|
var s;
|
|
2566
|
-
if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof
|
|
2566
|
+
if (typeof window != "undefined" && window.crypto && (s = window.crypto), typeof self != "undefined" && self.crypto && (s = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window != "undefined" && window.msCrypto && (s = window.msCrypto), !s && typeof ie != "undefined" && ie.crypto && (s = ie.crypto), !s && typeof ko == "function")
|
|
2567
2567
|
try {
|
|
2568
|
-
s =
|
|
2568
|
+
s = Lo;
|
|
2569
2569
|
} catch (S) {
|
|
2570
2570
|
}
|
|
2571
2571
|
var n = function() {
|
|
@@ -2725,8 +2725,8 @@ function ne() {
|
|
|
2725
2725
|
b[_ + A >>> 2] |= R << 24 - (_ + A) % 4 * 8;
|
|
2726
2726
|
}
|
|
2727
2727
|
else
|
|
2728
|
-
for (var
|
|
2729
|
-
b[_ +
|
|
2728
|
+
for (var L = 0; L < y; L += 4)
|
|
2729
|
+
b[_ + L >>> 2] = E[L >>> 2];
|
|
2730
2730
|
return this.sigBytes += y, this;
|
|
2731
2731
|
},
|
|
2732
2732
|
/**
|
|
@@ -2925,9 +2925,9 @@ function ne() {
|
|
|
2925
2925
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
2926
2926
|
*/
|
|
2927
2927
|
_process: function(S) {
|
|
2928
|
-
var b, E = this._data, _ = E.words, y = E.sigBytes, A = this.blockSize, R = A * 4,
|
|
2929
|
-
S ?
|
|
2930
|
-
var C =
|
|
2928
|
+
var b, E = this._data, _ = E.words, y = E.sigBytes, A = this.blockSize, R = A * 4, L = y / R;
|
|
2929
|
+
S ? L = t.ceil(L) : L = t.max((L | 0) - this._minBufferSize, 0);
|
|
2930
|
+
var C = L * A, I = t.min(C * 4, y);
|
|
2931
2931
|
if (C) {
|
|
2932
2932
|
for (var P = 0; P < C; P += A)
|
|
2933
2933
|
this._doProcessBlock(_, P);
|
|
@@ -3054,11 +3054,11 @@ function ne() {
|
|
|
3054
3054
|
}(Math);
|
|
3055
3055
|
return e;
|
|
3056
3056
|
});
|
|
3057
|
-
}(
|
|
3057
|
+
}(Yi)), Yi.exports;
|
|
3058
3058
|
}
|
|
3059
|
-
var
|
|
3060
|
-
function
|
|
3061
|
-
return
|
|
3059
|
+
var Zi = { exports: {} }, ea;
|
|
3060
|
+
function Ci() {
|
|
3061
|
+
return ea || (ea = 1, function(r, a) {
|
|
3062
3062
|
(function(e, t) {
|
|
3063
3063
|
r.exports = t(ne());
|
|
3064
3064
|
})(ie, function(e) {
|
|
@@ -3284,11 +3284,11 @@ function Ai() {
|
|
|
3284
3284
|
});
|
|
3285
3285
|
}(), e;
|
|
3286
3286
|
});
|
|
3287
|
-
}(
|
|
3287
|
+
}(Zi)), Zi.exports;
|
|
3288
3288
|
}
|
|
3289
|
-
var
|
|
3290
|
-
function
|
|
3291
|
-
return
|
|
3289
|
+
var Qi = { exports: {} }, ta;
|
|
3290
|
+
function Mo() {
|
|
3291
|
+
return ta || (ta = 1, function(r, a) {
|
|
3292
3292
|
(function(e, t) {
|
|
3293
3293
|
r.exports = t(ne());
|
|
3294
3294
|
})(ie, function(e) {
|
|
@@ -3306,11 +3306,11 @@ function No() {
|
|
|
3306
3306
|
}
|
|
3307
3307
|
}(), e.lib.WordArray;
|
|
3308
3308
|
});
|
|
3309
|
-
}(
|
|
3309
|
+
}(Qi)), Qi.exports;
|
|
3310
3310
|
}
|
|
3311
|
-
var
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3311
|
+
var er = { exports: {} }, ia;
|
|
3312
|
+
function Vo() {
|
|
3313
|
+
return ia || (ia = 1, function(r, a) {
|
|
3314
3314
|
(function(e, t) {
|
|
3315
3315
|
r.exports = t(ne());
|
|
3316
3316
|
})(ie, function(e) {
|
|
@@ -3400,11 +3400,11 @@ function Mo() {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
}(), e.enc.Utf16;
|
|
3402
3402
|
});
|
|
3403
|
-
}(
|
|
3403
|
+
}(er)), er.exports;
|
|
3404
3404
|
}
|
|
3405
|
-
var
|
|
3406
|
-
function
|
|
3407
|
-
return
|
|
3405
|
+
var tr = { exports: {} }, ra;
|
|
3406
|
+
function Ot() {
|
|
3407
|
+
return ra || (ra = 1, function(r, a) {
|
|
3408
3408
|
(function(e, t) {
|
|
3409
3409
|
r.exports = t(ne());
|
|
3410
3410
|
})(ie, function(e) {
|
|
@@ -3475,11 +3475,11 @@ function Ft() {
|
|
|
3475
3475
|
}
|
|
3476
3476
|
}(), e.enc.Base64;
|
|
3477
3477
|
});
|
|
3478
|
-
}(
|
|
3478
|
+
}(tr)), tr.exports;
|
|
3479
3479
|
}
|
|
3480
|
-
var
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3480
|
+
var ir = { exports: {} }, sa;
|
|
3481
|
+
function Fo() {
|
|
3482
|
+
return sa || (sa = 1, function(r, a) {
|
|
3483
3483
|
(function(e, t) {
|
|
3484
3484
|
r.exports = t(ne());
|
|
3485
3485
|
})(ie, function(e) {
|
|
@@ -3557,11 +3557,11 @@ function Lo() {
|
|
|
3557
3557
|
}
|
|
3558
3558
|
}(), e.enc.Base64url;
|
|
3559
3559
|
});
|
|
3560
|
-
}(
|
|
3560
|
+
}(ir)), ir.exports;
|
|
3561
3561
|
}
|
|
3562
|
-
var
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3562
|
+
var rr = { exports: {} }, aa;
|
|
3563
|
+
function Ut() {
|
|
3564
|
+
return aa || (aa = 1, function(r, a) {
|
|
3565
3565
|
(function(e, t) {
|
|
3566
3566
|
r.exports = t(ne());
|
|
3567
3567
|
})(ie, function(e) {
|
|
@@ -3585,8 +3585,8 @@ function Ot() {
|
|
|
3585
3585
|
var S = x + v, b = l[S];
|
|
3586
3586
|
l[S] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
3587
3587
|
}
|
|
3588
|
-
var E = this._hash.words, _ = l[x + 0], y = l[x + 1], A = l[x + 2], R = l[x + 3],
|
|
3589
|
-
k = p(k,
|
|
3588
|
+
var E = this._hash.words, _ = l[x + 0], y = l[x + 1], A = l[x + 2], R = l[x + 3], L = l[x + 4], C = l[x + 5], I = l[x + 6], P = l[x + 7], B = l[x + 8], $ = l[x + 9], q = l[x + 10], X = l[x + 11], ae = l[x + 12], Q = l[x + 13], te = l[x + 14], ee = l[x + 15], k = E[0], M = E[1], V = E[2], N = E[3];
|
|
3589
|
+
k = p(k, M, V, N, _, 7, u[0]), N = p(N, k, M, V, y, 12, u[1]), V = p(V, N, k, M, A, 17, u[2]), M = p(M, V, N, k, R, 22, u[3]), k = p(k, M, V, N, L, 7, u[4]), N = p(N, k, M, V, C, 12, u[5]), V = p(V, N, k, M, I, 17, u[6]), M = p(M, V, N, k, P, 22, u[7]), k = p(k, M, V, N, B, 7, u[8]), N = p(N, k, M, V, $, 12, u[9]), V = p(V, N, k, M, q, 17, u[10]), M = p(M, V, N, k, X, 22, u[11]), k = p(k, M, V, N, ae, 7, u[12]), N = p(N, k, M, V, Q, 12, u[13]), V = p(V, N, k, M, te, 17, u[14]), M = p(M, V, N, k, ee, 22, u[15]), k = d(k, M, V, N, y, 5, u[16]), N = d(N, k, M, V, I, 9, u[17]), V = d(V, N, k, M, X, 14, u[18]), M = d(M, V, N, k, _, 20, u[19]), k = d(k, M, V, N, C, 5, u[20]), N = d(N, k, M, V, q, 9, u[21]), V = d(V, N, k, M, ee, 14, u[22]), M = d(M, V, N, k, L, 20, u[23]), k = d(k, M, V, N, $, 5, u[24]), N = d(N, k, M, V, te, 9, u[25]), V = d(V, N, k, M, R, 14, u[26]), M = d(M, V, N, k, B, 20, u[27]), k = d(k, M, V, N, Q, 5, u[28]), N = d(N, k, M, V, A, 9, u[29]), V = d(V, N, k, M, P, 14, u[30]), M = d(M, V, N, k, ae, 20, u[31]), k = f(k, M, V, N, C, 4, u[32]), N = f(N, k, M, V, B, 11, u[33]), V = f(V, N, k, M, X, 16, u[34]), M = f(M, V, N, k, te, 23, u[35]), k = f(k, M, V, N, y, 4, u[36]), N = f(N, k, M, V, L, 11, u[37]), V = f(V, N, k, M, P, 16, u[38]), M = f(M, V, N, k, q, 23, u[39]), k = f(k, M, V, N, Q, 4, u[40]), N = f(N, k, M, V, _, 11, u[41]), V = f(V, N, k, M, R, 16, u[42]), M = f(M, V, N, k, I, 23, u[43]), k = f(k, M, V, N, $, 4, u[44]), N = f(N, k, M, V, ae, 11, u[45]), V = f(V, N, k, M, ee, 16, u[46]), M = f(M, V, N, k, A, 23, u[47]), k = m(k, M, V, N, _, 6, u[48]), N = m(N, k, M, V, P, 10, u[49]), V = m(V, N, k, M, te, 15, u[50]), M = m(M, V, N, k, C, 21, u[51]), k = m(k, M, V, N, ae, 6, u[52]), N = m(N, k, M, V, R, 10, u[53]), V = m(V, N, k, M, q, 15, u[54]), M = m(M, V, N, k, y, 21, u[55]), k = m(k, M, V, N, B, 6, u[56]), N = m(N, k, M, V, ee, 10, u[57]), V = m(V, N, k, M, I, 15, u[58]), M = m(M, V, N, k, Q, 21, u[59]), k = m(k, M, V, N, L, 6, u[60]), N = m(N, k, M, V, X, 10, u[61]), V = m(V, N, k, M, A, 15, u[62]), M = m(M, V, N, k, $, 21, u[63]), E[0] = E[0] + k | 0, E[1] = E[1] + M | 0, E[2] = E[2] + V | 0, E[3] = E[3] + N | 0;
|
|
3590
3590
|
},
|
|
3591
3591
|
_doFinalize: function() {
|
|
3592
3592
|
var l = this._data, x = l.words, v = this._nDataBytes * 8, S = l.sigBytes * 8;
|
|
@@ -3623,11 +3623,11 @@ function Ot() {
|
|
|
3623
3623
|
i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
|
|
3624
3624
|
}(Math), e.MD5;
|
|
3625
3625
|
});
|
|
3626
|
-
}(
|
|
3626
|
+
}(rr)), rr.exports;
|
|
3627
3627
|
}
|
|
3628
|
-
var
|
|
3629
|
-
function
|
|
3630
|
-
return
|
|
3628
|
+
var sr = { exports: {} }, na;
|
|
3629
|
+
function hn() {
|
|
3630
|
+
return na || (na = 1, function(r, a) {
|
|
3631
3631
|
(function(e, t) {
|
|
3632
3632
|
r.exports = t(ne());
|
|
3633
3633
|
})(ie, function(e) {
|
|
@@ -3667,11 +3667,11 @@ function cn() {
|
|
|
3667
3667
|
t.SHA1 = n._createHelper(u), t.HmacSHA1 = n._createHmacHelper(u);
|
|
3668
3668
|
}(), e.SHA1;
|
|
3669
3669
|
});
|
|
3670
|
-
}(
|
|
3670
|
+
}(sr)), sr.exports;
|
|
3671
3671
|
}
|
|
3672
|
-
var
|
|
3673
|
-
function
|
|
3674
|
-
return
|
|
3672
|
+
var ar = { exports: {} }, oa;
|
|
3673
|
+
function Xr() {
|
|
3674
|
+
return oa || (oa = 1, function(r, a) {
|
|
3675
3675
|
(function(e, t) {
|
|
3676
3676
|
r.exports = t(ne());
|
|
3677
3677
|
})(ie, function(e) {
|
|
@@ -3699,7 +3699,7 @@ function Jr() {
|
|
|
3699
3699
|
if (R < 16)
|
|
3700
3700
|
p[R] = f[m + R] | 0;
|
|
3701
3701
|
else {
|
|
3702
|
-
var
|
|
3702
|
+
var L = p[R - 15], C = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, I = p[R - 2], P = (I << 15 | I >>> 17) ^ (I << 13 | I >>> 19) ^ I >>> 10;
|
|
3703
3703
|
p[R] = C + p[R - 7] + P + p[R - 16];
|
|
3704
3704
|
}
|
|
3705
3705
|
var B = E & _ ^ ~E & y, $ = x & v ^ x & S ^ v & S, q = (x << 30 | x >>> 2) ^ (x << 19 | x >>> 13) ^ (x << 10 | x >>> 22), X = (E << 26 | E >>> 6) ^ (E << 21 | E >>> 11) ^ (E << 7 | E >>> 25), ae = A + X + B + h[R] + p[R], Q = q + $;
|
|
@@ -3719,13 +3719,13 @@ function Jr() {
|
|
|
3719
3719
|
i.SHA256 = c._createHelper(d), i.HmacSHA256 = c._createHmacHelper(d);
|
|
3720
3720
|
}(Math), e.SHA256;
|
|
3721
3721
|
});
|
|
3722
|
-
}(
|
|
3722
|
+
}(ar)), ar.exports;
|
|
3723
3723
|
}
|
|
3724
|
-
var
|
|
3725
|
-
function
|
|
3726
|
-
return
|
|
3724
|
+
var nr = { exports: {} }, ca;
|
|
3725
|
+
function Oo() {
|
|
3726
|
+
return ca || (ca = 1, function(r, a) {
|
|
3727
3727
|
(function(e, t, i) {
|
|
3728
|
-
r.exports = t(ne(),
|
|
3728
|
+
r.exports = t(ne(), Xr());
|
|
3729
3729
|
})(ie, function(e) {
|
|
3730
3730
|
return function() {
|
|
3731
3731
|
var t = e, i = t.lib, s = i.WordArray, n = t.algo, c = n.SHA256, o = n.SHA224 = c.extend({
|
|
@@ -3749,13 +3749,13 @@ function Vo() {
|
|
|
3749
3749
|
t.SHA224 = c._createHelper(o), t.HmacSHA224 = c._createHmacHelper(o);
|
|
3750
3750
|
}(), e.SHA224;
|
|
3751
3751
|
});
|
|
3752
|
-
}(
|
|
3752
|
+
}(nr)), nr.exports;
|
|
3753
3753
|
}
|
|
3754
|
-
var
|
|
3755
|
-
function
|
|
3756
|
-
return
|
|
3754
|
+
var or = { exports: {} }, ua;
|
|
3755
|
+
function dn() {
|
|
3756
|
+
return ua || (ua = 1, function(r, a) {
|
|
3757
3757
|
(function(e, t, i) {
|
|
3758
|
-
r.exports = t(ne(),
|
|
3758
|
+
r.exports = t(ne(), Ci());
|
|
3759
3759
|
})(ie, function(e) {
|
|
3760
3760
|
return function() {
|
|
3761
3761
|
var t = e, i = t.lib, s = i.Hasher, n = t.x64, c = n.Word, o = n.WordArray, u = t.algo;
|
|
@@ -3862,18 +3862,18 @@ function un() {
|
|
|
3862
3862
|
]);
|
|
3863
3863
|
},
|
|
3864
3864
|
_doProcessBlock: function(m, l) {
|
|
3865
|
-
for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], E = x[3], _ = x[4], y = x[5], A = x[6], R = x[7],
|
|
3865
|
+
for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], E = x[3], _ = x[4], y = x[5], A = x[6], R = x[7], L = v.high, C = v.low, I = S.high, P = S.low, B = b.high, $ = b.low, q = E.high, X = E.low, ae = _.high, Q = _.low, te = y.high, ee = y.low, k = A.high, M = A.low, V = R.high, N = R.low, J = L, j = C, ce = I, Z = P, Fe = B, ze = $, Qe = q, et = X, Se = ae, ke = Q, ot = te, yt = ee, Ht = k, Ct = M, Yt = V, Rt = N, Be = 0; Be < 80; Be++) {
|
|
3866
3866
|
var Re, tt, It = d[Be];
|
|
3867
3867
|
if (Be < 16)
|
|
3868
3868
|
tt = It.high = m[l + Be * 2] | 0, Re = It.low = m[l + Be * 2 + 1] | 0;
|
|
3869
3869
|
else {
|
|
3870
|
-
var gt = d[Be - 15], it = gt.high, ct = gt.low,
|
|
3871
|
-
Re =
|
|
3870
|
+
var gt = d[Be - 15], it = gt.high, ct = gt.low, ki = (it >>> 1 | ct << 31) ^ (it >>> 8 | ct << 24) ^ it >>> 7, ui = (ct >>> 1 | it << 31) ^ (ct >>> 8 | it << 24) ^ (ct >>> 7 | it << 25), hi = d[Be - 2], We = hi.high, mt = hi.low, di = (We >>> 19 | mt << 13) ^ (We << 3 | mt >>> 29) ^ We >>> 6, Zt = (mt >>> 19 | We << 13) ^ (mt << 3 | We >>> 29) ^ (mt >>> 6 | We << 26), us = d[Be - 7], Pn = us.high, kn = us.low, hs = d[Be - 16], Bn = hs.high, ds = hs.low;
|
|
3871
|
+
Re = ui + kn, tt = ki + Pn + (Re >>> 0 < ui >>> 0 ? 1 : 0), Re = Re + Zt, tt = tt + di + (Re >>> 0 < Zt >>> 0 ? 1 : 0), Re = Re + ds, tt = tt + Bn + (Re >>> 0 < ds >>> 0 ? 1 : 0), It.high = tt, It.low = Re;
|
|
3872
3872
|
}
|
|
3873
|
-
var
|
|
3874
|
-
|
|
3873
|
+
var Nn = Se & ot ^ ~Se & Ht, ls = ke & yt ^ ~ke & Ct, Ln = J & ce ^ J & Fe ^ ce & Fe, Mn = j & Z ^ j & ze ^ Z & ze, Vn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), fs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Fn = (Se >>> 14 | ke << 18) ^ (Se >>> 18 | ke << 14) ^ (Se << 23 | ke >>> 9), On = (ke >>> 14 | Se << 18) ^ (ke >>> 18 | Se << 14) ^ (ke << 23 | Se >>> 9), ps = p[Be], Un = ps.high, gs = ps.low, $e = Rt + On, xt = Yt + Fn + ($e >>> 0 < Rt >>> 0 ? 1 : 0), $e = $e + ls, xt = xt + Nn + ($e >>> 0 < ls >>> 0 ? 1 : 0), $e = $e + gs, xt = xt + Un + ($e >>> 0 < gs >>> 0 ? 1 : 0), $e = $e + Re, xt = xt + tt + ($e >>> 0 < Re >>> 0 ? 1 : 0), ms = fs + Mn, Hn = Vn + Ln + (ms >>> 0 < fs >>> 0 ? 1 : 0);
|
|
3874
|
+
Yt = Ht, Rt = Ct, Ht = ot, Ct = yt, ot = Se, yt = ke, ke = et + $e | 0, Se = Qe + xt + (ke >>> 0 < et >>> 0 ? 1 : 0) | 0, Qe = Fe, et = ze, Fe = ce, ze = Z, ce = J, Z = j, j = $e + ms | 0, J = xt + Hn + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
|
|
3875
3875
|
}
|
|
3876
|
-
C = v.low = C + j, v.high =
|
|
3876
|
+
C = v.low = C + j, v.high = L + J + (C >>> 0 < j >>> 0 ? 1 : 0), P = S.low = P + Z, S.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Fe + ($ >>> 0 < ze >>> 0 ? 1 : 0), X = E.low = X + et, E.high = q + Qe + (X >>> 0 < et >>> 0 ? 1 : 0), Q = _.low = Q + ke, _.high = ae + Se + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = y.low = ee + yt, y.high = te + ot + (ee >>> 0 < yt >>> 0 ? 1 : 0), M = A.low = M + Ct, A.high = k + Ht + (M >>> 0 < Ct >>> 0 ? 1 : 0), N = R.low = N + Rt, R.high = V + Yt + (N >>> 0 < Rt >>> 0 ? 1 : 0);
|
|
3877
3877
|
},
|
|
3878
3878
|
_doFinalize: function() {
|
|
3879
3879
|
var m = this._data, l = m.words, x = this._nDataBytes * 8, v = m.sigBytes * 8;
|
|
@@ -3890,13 +3890,13 @@ function un() {
|
|
|
3890
3890
|
t.SHA512 = s._createHelper(f), t.HmacSHA512 = s._createHmacHelper(f);
|
|
3891
3891
|
}(), e.SHA512;
|
|
3892
3892
|
});
|
|
3893
|
-
}(
|
|
3893
|
+
}(or)), or.exports;
|
|
3894
3894
|
}
|
|
3895
|
-
var
|
|
3896
|
-
function
|
|
3897
|
-
return
|
|
3895
|
+
var cr = { exports: {} }, ha;
|
|
3896
|
+
function Uo() {
|
|
3897
|
+
return ha || (ha = 1, function(r, a) {
|
|
3898
3898
|
(function(e, t, i) {
|
|
3899
|
-
r.exports = t(ne(),
|
|
3899
|
+
r.exports = t(ne(), Ci(), dn());
|
|
3900
3900
|
})(ie, function(e) {
|
|
3901
3901
|
return function() {
|
|
3902
3902
|
var t = e, i = t.x64, s = i.Word, n = i.WordArray, c = t.algo, o = c.SHA512, u = c.SHA384 = o.extend({
|
|
@@ -3920,13 +3920,13 @@ function Fo() {
|
|
|
3920
3920
|
t.SHA384 = o._createHelper(u), t.HmacSHA384 = o._createHmacHelper(u);
|
|
3921
3921
|
}(), e.SHA384;
|
|
3922
3922
|
});
|
|
3923
|
-
}(
|
|
3923
|
+
}(cr)), cr.exports;
|
|
3924
3924
|
}
|
|
3925
|
-
var
|
|
3926
|
-
function
|
|
3927
|
-
return
|
|
3925
|
+
var ur = { exports: {} }, da;
|
|
3926
|
+
function Ho() {
|
|
3927
|
+
return da || (da = 1, function(r, a) {
|
|
3928
3928
|
(function(e, t, i) {
|
|
3929
|
-
r.exports = t(ne(),
|
|
3929
|
+
r.exports = t(ne(), Ci());
|
|
3930
3930
|
})(ie, function(e) {
|
|
3931
3931
|
return function(t) {
|
|
3932
3932
|
var i = e, s = i.lib, n = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, p = [], d = [], f = [];
|
|
@@ -3940,9 +3940,9 @@ function Oo() {
|
|
|
3940
3940
|
for (var v = 0; v < 5; v++)
|
|
3941
3941
|
d[x + 5 * v] = v + (2 * x + 3 * v) % 5 * 5;
|
|
3942
3942
|
for (var _ = 1, y = 0; y < 24; y++) {
|
|
3943
|
-
for (var A = 0, R = 0,
|
|
3943
|
+
for (var A = 0, R = 0, L = 0; L < 7; L++) {
|
|
3944
3944
|
if (_ & 1) {
|
|
3945
|
-
var C = (1 <<
|
|
3945
|
+
var C = (1 << L) - 1;
|
|
3946
3946
|
C < 32 ? R ^= 1 << C : A ^= 1 << C - 32;
|
|
3947
3947
|
}
|
|
3948
3948
|
_ & 128 ? _ = _ << 1 ^ 113 : _ <<= 1;
|
|
@@ -3980,30 +3980,30 @@ function Oo() {
|
|
|
3980
3980
|
A.high ^= y, A.low ^= _;
|
|
3981
3981
|
}
|
|
3982
3982
|
for (var R = 0; R < 24; R++) {
|
|
3983
|
-
for (var
|
|
3983
|
+
for (var L = 0; L < 5; L++) {
|
|
3984
3984
|
for (var C = 0, I = 0, P = 0; P < 5; P++) {
|
|
3985
|
-
var A = S[
|
|
3985
|
+
var A = S[L + 5 * P];
|
|
3986
3986
|
C ^= A.high, I ^= A.low;
|
|
3987
3987
|
}
|
|
3988
|
-
var B = m[
|
|
3988
|
+
var B = m[L];
|
|
3989
3989
|
B.high = C, B.low = I;
|
|
3990
3990
|
}
|
|
3991
|
-
for (var
|
|
3992
|
-
for (var $ = m[(
|
|
3993
|
-
var A = S[
|
|
3991
|
+
for (var L = 0; L < 5; L++)
|
|
3992
|
+
for (var $ = m[(L + 4) % 5], q = m[(L + 1) % 5], X = q.high, ae = q.low, C = $.high ^ (X << 1 | ae >>> 31), I = $.low ^ (ae << 1 | X >>> 31), P = 0; P < 5; P++) {
|
|
3993
|
+
var A = S[L + 5 * P];
|
|
3994
3994
|
A.high ^= C, A.low ^= I;
|
|
3995
3995
|
}
|
|
3996
3996
|
for (var Q = 1; Q < 25; Q++) {
|
|
3997
3997
|
var C, I, A = S[Q], te = A.high, ee = A.low, k = p[Q];
|
|
3998
3998
|
k < 32 ? (C = te << k | ee >>> 32 - k, I = ee << k | te >>> 32 - k) : (C = ee << k - 32 | te >>> 64 - k, I = te << k - 32 | ee >>> 64 - k);
|
|
3999
|
-
var
|
|
4000
|
-
|
|
3999
|
+
var M = m[d[Q]];
|
|
4000
|
+
M.high = C, M.low = I;
|
|
4001
4001
|
}
|
|
4002
4002
|
var V = m[0], N = S[0];
|
|
4003
4003
|
V.high = N.high, V.low = N.low;
|
|
4004
|
-
for (var
|
|
4004
|
+
for (var L = 0; L < 5; L++)
|
|
4005
4005
|
for (var P = 0; P < 5; P++) {
|
|
4006
|
-
var Q =
|
|
4006
|
+
var Q = L + 5 * P, A = S[Q], J = m[Q], j = m[(L + 1) % 5 + 5 * P], ce = m[(L + 2) % 5 + 5 * P];
|
|
4007
4007
|
A.high = J.high ^ ~j.high & ce.high, A.low = J.low ^ ~j.low & ce.low;
|
|
4008
4008
|
}
|
|
4009
4009
|
var A = S[0], Z = f[R];
|
|
@@ -4016,7 +4016,7 @@ function Oo() {
|
|
|
4016
4016
|
var S = x.sigBytes * 8, b = this.blockSize * 32;
|
|
4017
4017
|
v[S >>> 5] |= 1 << 24 - S % 32, v[(t.ceil((S + 1) / b) * b >>> 5) - 1] |= 128, x.sigBytes = v.length * 4, this._process();
|
|
4018
4018
|
for (var E = this._state, _ = this.cfg.outputLength / 8, y = _ / 8, A = [], R = 0; R < y; R++) {
|
|
4019
|
-
var
|
|
4019
|
+
var L = E[R], C = L.high, I = L.low;
|
|
4020
4020
|
C = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360, A.push(I), A.push(C);
|
|
4021
4021
|
}
|
|
4022
4022
|
return new n.init(A, _);
|
|
@@ -4030,11 +4030,11 @@ function Oo() {
|
|
|
4030
4030
|
i.SHA3 = c._createHelper(l), i.HmacSHA3 = c._createHmacHelper(l);
|
|
4031
4031
|
}(Math), e.SHA3;
|
|
4032
4032
|
});
|
|
4033
|
-
}(
|
|
4033
|
+
}(ur)), ur.exports;
|
|
4034
4034
|
}
|
|
4035
|
-
var
|
|
4036
|
-
function
|
|
4037
|
-
return
|
|
4035
|
+
var hr = { exports: {} }, la;
|
|
4036
|
+
function jo() {
|
|
4037
|
+
return la || (la = 1, function(r, a) {
|
|
4038
4038
|
(function(e, t) {
|
|
4039
4039
|
r.exports = t(ne());
|
|
4040
4040
|
})(ie, function(e) {
|
|
@@ -4379,18 +4379,18 @@ function Uo() {
|
|
|
4379
4379
|
},
|
|
4380
4380
|
_doProcessBlock: function(y, A) {
|
|
4381
4381
|
for (var R = 0; R < 16; R++) {
|
|
4382
|
-
var
|
|
4383
|
-
y[
|
|
4382
|
+
var L = A + R, C = y[L];
|
|
4383
|
+
y[L] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
|
|
4384
4384
|
}
|
|
4385
|
-
var I = this._hash.words, P = f.words, B = m.words, $ = u.words, q = h.words, X = p.words, ae = d.words, Q, te, ee, k,
|
|
4386
|
-
V = Q = I[0], N = te = I[1], J = ee = I[2], j = k = I[3], ce =
|
|
4385
|
+
var I = this._hash.words, P = f.words, B = m.words, $ = u.words, q = h.words, X = p.words, ae = d.words, Q, te, ee, k, M, V, N, J, j, ce;
|
|
4386
|
+
V = Q = I[0], N = te = I[1], J = ee = I[2], j = k = I[3], ce = M = I[4];
|
|
4387
4387
|
for (var Z, R = 0; R < 80; R += 1)
|
|
4388
|
-
Z = Q + y[A + $[R]] | 0, R < 16 ? Z += x(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += S(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z +
|
|
4389
|
-
Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] +
|
|
4388
|
+
Z = Q + y[A + $[R]] | 0, R < 16 ? Z += x(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += S(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, X[R]), Z = Z + M | 0, Q = M, M = k, k = _(ee, 10), ee = te, te = Z, Z = V + y[A + q[R]] | 0, R < 16 ? Z += E(N, J, j) + B[0] : R < 32 ? Z += b(N, J, j) + B[1] : R < 48 ? Z += S(N, J, j) + B[2] : R < 64 ? Z += v(N, J, j) + B[3] : Z += x(N, J, j) + B[4], Z = Z | 0, Z = _(Z, ae[R]), Z = Z + ce | 0, V = ce, ce = j, j = _(J, 10), J = N, N = Z;
|
|
4389
|
+
Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + M + V | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te + J | 0, I[0] = Z;
|
|
4390
4390
|
},
|
|
4391
4391
|
_doFinalize: function() {
|
|
4392
|
-
var y = this._data, A = y.words, R = this._nDataBytes * 8,
|
|
4393
|
-
A[
|
|
4392
|
+
var y = this._data, A = y.words, R = this._nDataBytes * 8, L = y.sigBytes * 8;
|
|
4393
|
+
A[L >>> 5] |= 128 << 24 - L % 32, A[(L + 64 >>> 9 << 4) + 14] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, y.sigBytes = (A.length + 1) * 4, this._process();
|
|
4394
4394
|
for (var C = this._hash, I = C.words, P = 0; P < 5; P++) {
|
|
4395
4395
|
var B = I[P];
|
|
4396
4396
|
I[P] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
|
|
@@ -4423,11 +4423,11 @@ function Uo() {
|
|
|
4423
4423
|
i.RIPEMD160 = c._createHelper(l), i.HmacRIPEMD160 = c._createHmacHelper(l);
|
|
4424
4424
|
}(), e.RIPEMD160;
|
|
4425
4425
|
});
|
|
4426
|
-
}(
|
|
4426
|
+
}(hr)), hr.exports;
|
|
4427
4427
|
}
|
|
4428
|
-
var
|
|
4429
|
-
function
|
|
4430
|
-
return
|
|
4428
|
+
var dr = { exports: {} }, fa;
|
|
4429
|
+
function Yr() {
|
|
4430
|
+
return fa || (fa = 1, function(r, a) {
|
|
4431
4431
|
(function(e, t) {
|
|
4432
4432
|
r.exports = t(ne());
|
|
4433
4433
|
})(ie, function(e) {
|
|
@@ -4501,13 +4501,13 @@ function Gr() {
|
|
|
4501
4501
|
});
|
|
4502
4502
|
})();
|
|
4503
4503
|
});
|
|
4504
|
-
}(
|
|
4504
|
+
}(dr)), dr.exports;
|
|
4505
4505
|
}
|
|
4506
|
-
var
|
|
4507
|
-
function
|
|
4508
|
-
return
|
|
4506
|
+
var lr = { exports: {} }, pa;
|
|
4507
|
+
function zo() {
|
|
4508
|
+
return pa || (pa = 1, function(r, a) {
|
|
4509
4509
|
(function(e, t, i) {
|
|
4510
|
-
r.exports = t(ne(),
|
|
4510
|
+
r.exports = t(ne(), Xr(), Yr());
|
|
4511
4511
|
})(ie, function(e) {
|
|
4512
4512
|
return function() {
|
|
4513
4513
|
var t = e, i = t.lib, s = i.Base, n = i.WordArray, c = t.algo, o = c.SHA256, u = c.HMAC, h = c.PBKDF2 = s.extend({
|
|
@@ -4553,7 +4553,7 @@ function Ho() {
|
|
|
4553
4553
|
for (var f = this.cfg, m = u.create(f.hasher, p), l = n.create(), x = n.create([1]), v = l.words, S = x.words, b = f.keySize, E = f.iterations; v.length < b; ) {
|
|
4554
4554
|
var _ = m.update(d).finalize(x);
|
|
4555
4555
|
m.reset();
|
|
4556
|
-
for (var y = _.words, A = y.length, R = _,
|
|
4556
|
+
for (var y = _.words, A = y.length, R = _, L = 1; L < E; L++) {
|
|
4557
4557
|
R = m.finalize(R), m.reset();
|
|
4558
4558
|
for (var C = R.words, I = 0; I < A; I++)
|
|
4559
4559
|
y[I] ^= C[I];
|
|
@@ -4568,13 +4568,13 @@ function Ho() {
|
|
|
4568
4568
|
};
|
|
4569
4569
|
}(), e.PBKDF2;
|
|
4570
4570
|
});
|
|
4571
|
-
}(
|
|
4571
|
+
}(lr)), lr.exports;
|
|
4572
4572
|
}
|
|
4573
|
-
var
|
|
4573
|
+
var fr = { exports: {} }, ga;
|
|
4574
4574
|
function At() {
|
|
4575
|
-
return
|
|
4575
|
+
return ga || (ga = 1, function(r, a) {
|
|
4576
4576
|
(function(e, t, i) {
|
|
4577
|
-
r.exports = t(ne(),
|
|
4577
|
+
r.exports = t(ne(), hn(), Yr());
|
|
4578
4578
|
})(ie, function(e) {
|
|
4579
4579
|
return function() {
|
|
4580
4580
|
var t = e, i = t.lib, s = i.Base, n = i.WordArray, c = t.algo, o = c.MD5, u = c.EvpKDF = s.extend({
|
|
@@ -4631,11 +4631,11 @@ function At() {
|
|
|
4631
4631
|
};
|
|
4632
4632
|
}(), e.EvpKDF;
|
|
4633
4633
|
});
|
|
4634
|
-
}(
|
|
4634
|
+
}(fr)), fr.exports;
|
|
4635
4635
|
}
|
|
4636
|
-
var
|
|
4636
|
+
var pr = { exports: {} }, ma;
|
|
4637
4637
|
function ye() {
|
|
4638
|
-
return
|
|
4638
|
+
return ma || (ma = 1, function(r, a) {
|
|
4639
4639
|
(function(e, t, i) {
|
|
4640
4640
|
r.exports = t(ne(), At());
|
|
4641
4641
|
})(ie, function(e) {
|
|
@@ -4760,7 +4760,7 @@ function ye() {
|
|
|
4760
4760
|
*/
|
|
4761
4761
|
_createHelper: function() {
|
|
4762
4762
|
function C(I) {
|
|
4763
|
-
return typeof I == "string" ?
|
|
4763
|
+
return typeof I == "string" ? L : y;
|
|
4764
4764
|
}
|
|
4765
4765
|
return function(I) {
|
|
4766
4766
|
return {
|
|
@@ -5109,7 +5109,7 @@ function ye() {
|
|
|
5109
5109
|
var X = c.create(q.words.slice(I), P * 4);
|
|
5110
5110
|
return q.sigBytes = I * 4, b.create({ key: q, iv: X, salt: B });
|
|
5111
5111
|
}
|
|
5112
|
-
},
|
|
5112
|
+
}, L = s.PasswordBasedCipher = y.extend({
|
|
5113
5113
|
/**
|
|
5114
5114
|
* Configuration options.
|
|
5115
5115
|
*
|
|
@@ -5169,11 +5169,11 @@ function ye() {
|
|
|
5169
5169
|
});
|
|
5170
5170
|
}();
|
|
5171
5171
|
});
|
|
5172
|
-
}(
|
|
5172
|
+
}(pr)), pr.exports;
|
|
5173
5173
|
}
|
|
5174
|
-
var
|
|
5175
|
-
function
|
|
5176
|
-
return
|
|
5174
|
+
var gr = { exports: {} }, xa;
|
|
5175
|
+
function Wo() {
|
|
5176
|
+
return xa || (xa = 1, function(r, a) {
|
|
5177
5177
|
(function(e, t, i) {
|
|
5178
5178
|
r.exports = t(ne(), ye());
|
|
5179
5179
|
})(ie, function(e) {
|
|
@@ -5199,11 +5199,11 @@ function jo() {
|
|
|
5199
5199
|
return t;
|
|
5200
5200
|
}(), e.mode.CFB;
|
|
5201
5201
|
});
|
|
5202
|
-
}(
|
|
5202
|
+
}(gr)), gr.exports;
|
|
5203
5203
|
}
|
|
5204
|
-
var
|
|
5205
|
-
function
|
|
5206
|
-
return
|
|
5204
|
+
var mr = { exports: {} }, Sa;
|
|
5205
|
+
function $o() {
|
|
5206
|
+
return Sa || (Sa = 1, function(r, a) {
|
|
5207
5207
|
(function(e, t, i) {
|
|
5208
5208
|
r.exports = t(ne(), ye());
|
|
5209
5209
|
})(ie, function(e) {
|
|
@@ -5221,11 +5221,11 @@ function zo() {
|
|
|
5221
5221
|
return t.Decryptor = i, t;
|
|
5222
5222
|
}(), e.mode.CTR;
|
|
5223
5223
|
});
|
|
5224
|
-
}(
|
|
5224
|
+
}(mr)), mr.exports;
|
|
5225
5225
|
}
|
|
5226
|
-
var
|
|
5227
|
-
function
|
|
5228
|
-
return
|
|
5226
|
+
var xr = { exports: {} }, va;
|
|
5227
|
+
function Ko() {
|
|
5228
|
+
return va || (va = 1, function(r, a) {
|
|
5229
5229
|
(function(e, t, i) {
|
|
5230
5230
|
r.exports = t(ne(), ye());
|
|
5231
5231
|
})(ie, function(e) {
|
|
@@ -5260,11 +5260,11 @@ function Wo() {
|
|
|
5260
5260
|
return t.Decryptor = n, t;
|
|
5261
5261
|
}(), e.mode.CTRGladman;
|
|
5262
5262
|
});
|
|
5263
|
-
}(
|
|
5263
|
+
}(xr)), xr.exports;
|
|
5264
5264
|
}
|
|
5265
|
-
var
|
|
5266
|
-
function
|
|
5267
|
-
return
|
|
5265
|
+
var Sr = { exports: {} }, ba;
|
|
5266
|
+
function qo() {
|
|
5267
|
+
return ba || (ba = 1, function(r, a) {
|
|
5268
5268
|
(function(e, t, i) {
|
|
5269
5269
|
r.exports = t(ne(), ye());
|
|
5270
5270
|
})(ie, function(e) {
|
|
@@ -5280,11 +5280,11 @@ function $o() {
|
|
|
5280
5280
|
return t.Decryptor = i, t;
|
|
5281
5281
|
}(), e.mode.OFB;
|
|
5282
5282
|
});
|
|
5283
|
-
}(
|
|
5283
|
+
}(Sr)), Sr.exports;
|
|
5284
5284
|
}
|
|
5285
|
-
var
|
|
5286
|
-
function
|
|
5287
|
-
return
|
|
5285
|
+
var vr = { exports: {} }, Ea;
|
|
5286
|
+
function Jo() {
|
|
5287
|
+
return Ea || (Ea = 1, function(r, a) {
|
|
5288
5288
|
(function(e, t, i) {
|
|
5289
5289
|
r.exports = t(ne(), ye());
|
|
5290
5290
|
})(ie, function(e) {
|
|
@@ -5301,11 +5301,11 @@ function Ko() {
|
|
|
5301
5301
|
}), t;
|
|
5302
5302
|
}(), e.mode.ECB;
|
|
5303
5303
|
});
|
|
5304
|
-
}(
|
|
5304
|
+
}(vr)), vr.exports;
|
|
5305
5305
|
}
|
|
5306
|
-
var
|
|
5307
|
-
function
|
|
5308
|
-
return
|
|
5306
|
+
var br = { exports: {} }, _a;
|
|
5307
|
+
function Go() {
|
|
5308
|
+
return _a || (_a = 1, function(r, a) {
|
|
5309
5309
|
(function(e, t, i) {
|
|
5310
5310
|
r.exports = t(ne(), ye());
|
|
5311
5311
|
})(ie, function(e) {
|
|
@@ -5320,11 +5320,11 @@ function qo() {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
}, e.pad.Ansix923;
|
|
5322
5322
|
});
|
|
5323
|
-
}(
|
|
5323
|
+
}(br)), br.exports;
|
|
5324
5324
|
}
|
|
5325
|
-
var
|
|
5326
|
-
function
|
|
5327
|
-
return
|
|
5325
|
+
var Er = { exports: {} }, Aa;
|
|
5326
|
+
function Xo() {
|
|
5327
|
+
return Aa || (Aa = 1, function(r, a) {
|
|
5328
5328
|
(function(e, t, i) {
|
|
5329
5329
|
r.exports = t(ne(), ye());
|
|
5330
5330
|
})(ie, function(e) {
|
|
@@ -5339,11 +5339,11 @@ function Jo() {
|
|
|
5339
5339
|
}
|
|
5340
5340
|
}, e.pad.Iso10126;
|
|
5341
5341
|
});
|
|
5342
|
-
}(
|
|
5342
|
+
}(Er)), Er.exports;
|
|
5343
5343
|
}
|
|
5344
|
-
var
|
|
5345
|
-
function
|
|
5346
|
-
return
|
|
5344
|
+
var _r = { exports: {} }, ya;
|
|
5345
|
+
function Yo() {
|
|
5346
|
+
return ya || (ya = 1, function(r, a) {
|
|
5347
5347
|
(function(e, t, i) {
|
|
5348
5348
|
r.exports = t(ne(), ye());
|
|
5349
5349
|
})(ie, function(e) {
|
|
@@ -5356,11 +5356,11 @@ function Go() {
|
|
|
5356
5356
|
}
|
|
5357
5357
|
}, e.pad.Iso97971;
|
|
5358
5358
|
});
|
|
5359
|
-
}(
|
|
5359
|
+
}(_r)), _r.exports;
|
|
5360
5360
|
}
|
|
5361
|
-
var
|
|
5362
|
-
function
|
|
5363
|
-
return
|
|
5361
|
+
var Ar = { exports: {} }, Ca;
|
|
5362
|
+
function Zo() {
|
|
5363
|
+
return Ca || (Ca = 1, function(r, a) {
|
|
5364
5364
|
(function(e, t, i) {
|
|
5365
5365
|
r.exports = t(ne(), ye());
|
|
5366
5366
|
})(ie, function(e) {
|
|
@@ -5378,11 +5378,11 @@ function Xo() {
|
|
|
5378
5378
|
}
|
|
5379
5379
|
}, e.pad.ZeroPadding;
|
|
5380
5380
|
});
|
|
5381
|
-
}(
|
|
5381
|
+
}(Ar)), Ar.exports;
|
|
5382
5382
|
}
|
|
5383
|
-
var
|
|
5384
|
-
function
|
|
5385
|
-
return
|
|
5383
|
+
var yr = { exports: {} }, Ra;
|
|
5384
|
+
function Qo() {
|
|
5385
|
+
return Ra || (Ra = 1, function(r, a) {
|
|
5386
5386
|
(function(e, t, i) {
|
|
5387
5387
|
r.exports = t(ne(), ye());
|
|
5388
5388
|
})(ie, function(e) {
|
|
@@ -5393,11 +5393,11 @@ function Yo() {
|
|
|
5393
5393
|
}
|
|
5394
5394
|
}, e.pad.NoPadding;
|
|
5395
5395
|
});
|
|
5396
|
-
}(
|
|
5396
|
+
}(yr)), yr.exports;
|
|
5397
5397
|
}
|
|
5398
|
-
var
|
|
5399
|
-
function
|
|
5400
|
-
return
|
|
5398
|
+
var Cr = { exports: {} }, Ia;
|
|
5399
|
+
function e0() {
|
|
5400
|
+
return Ia || (Ia = 1, function(r, a) {
|
|
5401
5401
|
(function(e, t, i) {
|
|
5402
5402
|
r.exports = t(ne(), ye());
|
|
5403
5403
|
})(ie, function(e) {
|
|
@@ -5440,13 +5440,13 @@ function Zo() {
|
|
|
5440
5440
|
};
|
|
5441
5441
|
}(), e.format.Hex;
|
|
5442
5442
|
});
|
|
5443
|
-
}(
|
|
5443
|
+
}(Cr)), Cr.exports;
|
|
5444
5444
|
}
|
|
5445
|
-
var
|
|
5446
|
-
function
|
|
5447
|
-
return
|
|
5445
|
+
var Rr = { exports: {} }, wa;
|
|
5446
|
+
function t0() {
|
|
5447
|
+
return wa || (wa = 1, function(r, a) {
|
|
5448
5448
|
(function(e, t, i) {
|
|
5449
|
-
r.exports = t(ne(),
|
|
5449
|
+
r.exports = t(ne(), Ot(), Ut(), At(), ye());
|
|
5450
5450
|
})(ie, function(e) {
|
|
5451
5451
|
return function() {
|
|
5452
5452
|
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [];
|
|
@@ -5456,9 +5456,9 @@ function Qo() {
|
|
|
5456
5456
|
for (var _ = 0, y = 0, E = 0; E < 256; E++) {
|
|
5457
5457
|
var A = y ^ y << 1 ^ y << 2 ^ y << 3 ^ y << 4;
|
|
5458
5458
|
A = A >>> 8 ^ A & 255 ^ 99, c[_] = A, o[A] = _;
|
|
5459
|
-
var R = b[_],
|
|
5459
|
+
var R = b[_], L = b[R], C = b[L], I = b[A] * 257 ^ A * 16843008;
|
|
5460
5460
|
u[_] = I << 24 | I >>> 8, h[_] = I << 16 | I >>> 16, p[_] = I << 8 | I >>> 24, d[_] = I;
|
|
5461
|
-
var I = C * 16843009 ^
|
|
5461
|
+
var I = C * 16843009 ^ L * 65537 ^ R * 257 ^ _ * 16843008;
|
|
5462
5462
|
f[A] = I << 24 | I >>> 8, m[A] = I << 16 | I >>> 16, l[A] = I << 8 | I >>> 24, x[A] = I, _ ? (_ = R ^ b[b[b[C ^ R]]], y ^= b[b[y]]) : _ = y = 1;
|
|
5463
5463
|
}
|
|
5464
5464
|
})();
|
|
@@ -5466,14 +5466,14 @@ function Qo() {
|
|
|
5466
5466
|
_doReset: function() {
|
|
5467
5467
|
var b;
|
|
5468
5468
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
5469
|
-
for (var E = this._keyPriorReset = this._key, _ = E.words, y = E.sigBytes / 4, A = this._nRounds = y + 6, R = (A + 1) * 4,
|
|
5470
|
-
C < y ?
|
|
5469
|
+
for (var E = this._keyPriorReset = this._key, _ = E.words, y = E.sigBytes / 4, A = this._nRounds = y + 6, R = (A + 1) * 4, L = this._keySchedule = [], C = 0; C < R; C++)
|
|
5470
|
+
C < y ? L[C] = _[C] : (b = L[C - 1], C % y ? y > 6 && C % y == 4 && (b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255]) : (b = b << 8 | b >>> 24, b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255], b ^= v[C / y | 0] << 24), L[C] = L[C - y] ^ b);
|
|
5471
5471
|
for (var I = this._invKeySchedule = [], P = 0; P < R; P++) {
|
|
5472
5472
|
var C = R - P;
|
|
5473
5473
|
if (P % 4)
|
|
5474
|
-
var b =
|
|
5474
|
+
var b = L[C];
|
|
5475
5475
|
else
|
|
5476
|
-
var b =
|
|
5476
|
+
var b = L[C - 4];
|
|
5477
5477
|
P < 4 || C <= 4 ? I[P] = b : I[P] = f[c[b >>> 24]] ^ m[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ x[c[b & 255]];
|
|
5478
5478
|
}
|
|
5479
5479
|
}
|
|
@@ -5487,9 +5487,9 @@ function Qo() {
|
|
|
5487
5487
|
var _ = b[E + 1];
|
|
5488
5488
|
b[E + 1] = b[E + 3], b[E + 3] = _;
|
|
5489
5489
|
},
|
|
5490
|
-
_doCryptBlock: function(b, E, _, y, A, R,
|
|
5490
|
+
_doCryptBlock: function(b, E, _, y, A, R, L, C) {
|
|
5491
5491
|
for (var I = this._nRounds, P = b[E] ^ _[0], B = b[E + 1] ^ _[1], $ = b[E + 2] ^ _[2], q = b[E + 3] ^ _[3], X = 4, ae = 1; ae < I; ae++) {
|
|
5492
|
-
var Q = y[P >>> 24] ^ A[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^
|
|
5492
|
+
var Q = y[P >>> 24] ^ A[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^ L[q & 255] ^ _[X++], te = y[B >>> 24] ^ A[$ >>> 16 & 255] ^ R[q >>> 8 & 255] ^ L[P & 255] ^ _[X++], ee = y[$ >>> 24] ^ A[q >>> 16 & 255] ^ R[P >>> 8 & 255] ^ L[B & 255] ^ _[X++], k = y[q >>> 24] ^ A[P >>> 16 & 255] ^ R[B >>> 8 & 255] ^ L[$ & 255] ^ _[X++];
|
|
5493
5493
|
P = Q, B = te, $ = ee, q = k;
|
|
5494
5494
|
}
|
|
5495
5495
|
var Q = (C[P >>> 24] << 24 | C[B >>> 16 & 255] << 16 | C[$ >>> 8 & 255] << 8 | C[q & 255]) ^ _[X++], te = (C[B >>> 24] << 24 | C[$ >>> 16 & 255] << 16 | C[q >>> 8 & 255] << 8 | C[P & 255]) ^ _[X++], ee = (C[$ >>> 24] << 24 | C[q >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[B & 255]) ^ _[X++], k = (C[q >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[B >>> 8 & 255] << 8 | C[$ & 255]) ^ _[X++];
|
|
@@ -5500,13 +5500,13 @@ function Qo() {
|
|
|
5500
5500
|
t.AES = s._createHelper(S);
|
|
5501
5501
|
}(), e.AES;
|
|
5502
5502
|
});
|
|
5503
|
-
}(
|
|
5503
|
+
}(Rr)), Rr.exports;
|
|
5504
5504
|
}
|
|
5505
|
-
var
|
|
5506
|
-
function
|
|
5507
|
-
return
|
|
5505
|
+
var Ir = { exports: {} }, Da;
|
|
5506
|
+
function i0() {
|
|
5507
|
+
return Da || (Da = 1, function(r, a) {
|
|
5508
5508
|
(function(e, t, i) {
|
|
5509
|
-
r.exports = t(ne(),
|
|
5509
|
+
r.exports = t(ne(), Ot(), Ut(), At(), ye());
|
|
5510
5510
|
})(ie, function(e) {
|
|
5511
5511
|
return function() {
|
|
5512
5512
|
var t = e, i = t.lib, s = i.WordArray, n = i.BlockCipher, c = t.algo, o = [
|
|
@@ -6160,8 +6160,8 @@ function e0() {
|
|
|
6160
6160
|
b[E] = S[_ >>> 5] >>> 31 - _ % 32 & 1;
|
|
6161
6161
|
}
|
|
6162
6162
|
for (var y = this._subKeys = [], A = 0; A < 16; A++) {
|
|
6163
|
-
for (var R = y[A] = [],
|
|
6164
|
-
R[E / 6 | 0] |= b[(u[E] - 1 +
|
|
6163
|
+
for (var R = y[A] = [], L = h[A], E = 0; E < 24; E++)
|
|
6164
|
+
R[E / 6 | 0] |= b[(u[E] - 1 + L) % 28] << 31 - E % 6, R[4 + (E / 6 | 0)] |= b[28 + (u[E + 24] - 1 + L) % 28] << 31 - E % 6;
|
|
6165
6165
|
R[0] = R[0] << 1 | R[0] >>> 31;
|
|
6166
6166
|
for (var E = 1; E < 7; E++)
|
|
6167
6167
|
R[E] = R[E] >>> (E - 1) * 4 + 3;
|
|
@@ -6179,8 +6179,8 @@ function e0() {
|
|
|
6179
6179
|
_doCryptBlock: function(v, S, b) {
|
|
6180
6180
|
this._lBlock = v[S], this._rBlock = v[S + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), m.call(this, 1, 1431655765);
|
|
6181
6181
|
for (var E = 0; E < 16; E++) {
|
|
6182
|
-
for (var _ = b[E], y = this._lBlock, A = this._rBlock, R = 0,
|
|
6183
|
-
R |= p[
|
|
6182
|
+
for (var _ = b[E], y = this._lBlock, A = this._rBlock, R = 0, L = 0; L < 8; L++)
|
|
6183
|
+
R |= p[L][((A ^ _[L]) & d[L]) >>> 0];
|
|
6184
6184
|
this._lBlock = A, this._rBlock = y ^ R;
|
|
6185
6185
|
}
|
|
6186
6186
|
var C = this._lBlock;
|
|
@@ -6220,13 +6220,13 @@ function e0() {
|
|
|
6220
6220
|
t.TripleDES = n._createHelper(x);
|
|
6221
6221
|
}(), e.TripleDES;
|
|
6222
6222
|
});
|
|
6223
|
-
}(
|
|
6223
|
+
}(Ir)), Ir.exports;
|
|
6224
6224
|
}
|
|
6225
|
-
var
|
|
6226
|
-
function
|
|
6227
|
-
return
|
|
6225
|
+
var wr = { exports: {} }, Ta;
|
|
6226
|
+
function r0() {
|
|
6227
|
+
return Ta || (Ta = 1, function(r, a) {
|
|
6228
6228
|
(function(e, t, i) {
|
|
6229
|
-
r.exports = t(ne(),
|
|
6229
|
+
r.exports = t(ne(), Ot(), Ut(), At(), ye());
|
|
6230
6230
|
})(ie, function(e) {
|
|
6231
6231
|
return function() {
|
|
6232
6232
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = n.RC4 = s.extend({
|
|
@@ -6274,13 +6274,13 @@ function t0() {
|
|
|
6274
6274
|
t.RC4Drop = s._createHelper(u);
|
|
6275
6275
|
}(), e.RC4;
|
|
6276
6276
|
});
|
|
6277
|
-
}(
|
|
6277
|
+
}(wr)), wr.exports;
|
|
6278
6278
|
}
|
|
6279
|
-
var
|
|
6280
|
-
function
|
|
6281
|
-
return
|
|
6279
|
+
var Dr = { exports: {} }, Pa;
|
|
6280
|
+
function s0() {
|
|
6281
|
+
return Pa || (Pa = 1, function(r, a) {
|
|
6282
6282
|
(function(e, t, i) {
|
|
6283
|
-
r.exports = t(ne(),
|
|
6283
|
+
r.exports = t(ne(), Ot(), Ut(), At(), ye());
|
|
6284
6284
|
})(ie, function(e) {
|
|
6285
6285
|
return function() {
|
|
6286
6286
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.Rabbit = s.extend({
|
|
@@ -6340,13 +6340,13 @@ function i0() {
|
|
|
6340
6340
|
t.Rabbit = s._createHelper(h);
|
|
6341
6341
|
}(), e.Rabbit;
|
|
6342
6342
|
});
|
|
6343
|
-
}(
|
|
6343
|
+
}(Dr)), Dr.exports;
|
|
6344
6344
|
}
|
|
6345
|
-
var
|
|
6346
|
-
function
|
|
6347
|
-
return
|
|
6345
|
+
var Tr = { exports: {} }, ka;
|
|
6346
|
+
function a0() {
|
|
6347
|
+
return ka || (ka = 1, function(r, a) {
|
|
6348
6348
|
(function(e, t, i) {
|
|
6349
|
-
r.exports = t(ne(),
|
|
6349
|
+
r.exports = t(ne(), Ot(), Ut(), At(), ye());
|
|
6350
6350
|
})(ie, function(e) {
|
|
6351
6351
|
return function() {
|
|
6352
6352
|
var t = e, i = t.lib, s = i.StreamCipher, n = t.algo, c = [], o = [], u = [], h = n.RabbitLegacy = s.extend({
|
|
@@ -6404,13 +6404,13 @@ function r0() {
|
|
|
6404
6404
|
t.RabbitLegacy = s._createHelper(h);
|
|
6405
6405
|
}(), e.RabbitLegacy;
|
|
6406
6406
|
});
|
|
6407
|
-
}(
|
|
6407
|
+
}(Tr)), Tr.exports;
|
|
6408
6408
|
}
|
|
6409
|
-
var
|
|
6410
|
-
function
|
|
6411
|
-
return
|
|
6409
|
+
var Pr = { exports: {} }, Ba;
|
|
6410
|
+
function n0() {
|
|
6411
|
+
return Ba || (Ba = 1, function(r, a) {
|
|
6412
6412
|
(function(e, t, i) {
|
|
6413
|
-
r.exports = t(ne(),
|
|
6413
|
+
r.exports = t(ne(), Ot(), Ut(), At(), ye());
|
|
6414
6414
|
})(ie, function(e) {
|
|
6415
6415
|
return function() {
|
|
6416
6416
|
var t = e, i = t.lib, s = i.BlockCipher, n = t.algo;
|
|
@@ -7526,21 +7526,21 @@ function s0() {
|
|
|
7526
7526
|
t.Blowfish = s._createHelper(l);
|
|
7527
7527
|
}(), e.Blowfish;
|
|
7528
7528
|
});
|
|
7529
|
-
}(
|
|
7529
|
+
}(Pr)), Pr.exports;
|
|
7530
7530
|
}
|
|
7531
7531
|
(function(r, a) {
|
|
7532
7532
|
(function(e, t, i) {
|
|
7533
|
-
r.exports = t(ne(),
|
|
7533
|
+
r.exports = t(ne(), Ci(), Mo(), Vo(), Ot(), Fo(), Ut(), hn(), Xr(), Oo(), dn(), Uo(), Ho(), jo(), Yr(), zo(), At(), ye(), Wo(), $o(), Ko(), qo(), Jo(), Go(), Xo(), Yo(), Zo(), Qo(), e0(), t0(), i0(), r0(), s0(), a0(), n0());
|
|
7534
7534
|
})(ie, function(e) {
|
|
7535
7535
|
return e;
|
|
7536
7536
|
});
|
|
7537
|
-
})(
|
|
7538
|
-
var
|
|
7539
|
-
const
|
|
7540
|
-
function
|
|
7541
|
-
return
|
|
7537
|
+
})(un);
|
|
7538
|
+
var o0 = un.exports;
|
|
7539
|
+
const ai = /* @__PURE__ */ To(o0);
|
|
7540
|
+
function c0(r) {
|
|
7541
|
+
return ai.MD5(r).toString().toUpperCase();
|
|
7542
7542
|
}
|
|
7543
|
-
function
|
|
7543
|
+
function u0(r, a, e, t, i, s, n, c) {
|
|
7544
7544
|
var o;
|
|
7545
7545
|
let u = "";
|
|
7546
7546
|
s.set("x-log-apiversion", "0.6.0"), s.set("x-log-signaturemethod", "hmac-sha1"), u += r + `
|
|
@@ -7560,10 +7560,10 @@ function o0(r, a, e, t, i, s, n, c) {
|
|
|
7560
7560
|
u += [...i.entries()].sort(h).map((m) => m[0] + "=" + m[1]).join("&");
|
|
7561
7561
|
} catch (m) {
|
|
7562
7562
|
}
|
|
7563
|
-
const d =
|
|
7563
|
+
const d = ai.HmacSHA1(u, t).toString(ai.enc.Base64), f = "LOG " + e + ":" + d;
|
|
7564
7564
|
return s.set("Authorization", f), s.set("x-log-date", c), f;
|
|
7565
7565
|
}
|
|
7566
|
-
var
|
|
7566
|
+
var h0 = (r, a, e) => new Promise((t, i) => {
|
|
7567
7567
|
var s = (o) => {
|
|
7568
7568
|
try {
|
|
7569
7569
|
c(e.next(o));
|
|
@@ -7579,8 +7579,8 @@ var c0 = (r, a, e) => new Promise((t, i) => {
|
|
|
7579
7579
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
7580
7580
|
c((e = e.apply(r, a)).next());
|
|
7581
7581
|
});
|
|
7582
|
-
function
|
|
7583
|
-
return
|
|
7582
|
+
function d0(r) {
|
|
7583
|
+
return h0(this, null, function* () {
|
|
7584
7584
|
const a = /* @__PURE__ */ new Date();
|
|
7585
7585
|
if (r.refreshSTSTokenInterval || (r.refreshSTSTokenInterval = 3e5), !r.stsTokenFreshTime || +a - r.stsTokenFreshTime >= r.refreshSTSTokenInterval) {
|
|
7586
7586
|
r.stsTokenFreshTime = a;
|
|
@@ -7594,7 +7594,7 @@ function u0(r) {
|
|
|
7594
7594
|
return null;
|
|
7595
7595
|
});
|
|
7596
7596
|
}
|
|
7597
|
-
var
|
|
7597
|
+
var l0 = (r, a, e) => new Promise((t, i) => {
|
|
7598
7598
|
var s = (o) => {
|
|
7599
7599
|
try {
|
|
7600
7600
|
c(e.next(o));
|
|
@@ -7610,7 +7610,7 @@ var h0 = (r, a, e) => new Promise((t, i) => {
|
|
|
7610
7610
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, n);
|
|
7611
7611
|
c((e = e.apply(r, a)).next());
|
|
7612
7612
|
});
|
|
7613
|
-
function
|
|
7613
|
+
function Zr(r) {
|
|
7614
7614
|
return {
|
|
7615
7615
|
transString: function(a) {
|
|
7616
7616
|
let e = {}, t = 0, i = !1;
|
|
@@ -7624,14 +7624,14 @@ function Xr(r) {
|
|
|
7624
7624
|
return e.__time__ = i ? t : Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3), e;
|
|
7625
7625
|
},
|
|
7626
7626
|
process: function(a, e) {
|
|
7627
|
-
return
|
|
7628
|
-
yield
|
|
7629
|
-
let t = a.slice(a.indexOf("/logstores")), i = e.length, s =
|
|
7627
|
+
return l0(this, null, function* () {
|
|
7628
|
+
yield d0(r);
|
|
7629
|
+
let t = a.slice(a.indexOf("/logstores")), i = e.length, s = c0(e), n = (/* @__PURE__ */ new Date()).toUTCString(), c = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map([
|
|
7630
7630
|
["Content-Type", "application/json"],
|
|
7631
7631
|
["Content-MD5", s],
|
|
7632
7632
|
["x-log-bodyrawsize", i.toString()]
|
|
7633
7633
|
]);
|
|
7634
|
-
r.securityToken && o.set("x-acs-security-token", r.securityToken),
|
|
7634
|
+
r.securityToken && o.set("x-acs-security-token", r.securityToken), u0("POST", t, r.accessKeyId, r.accessKeySecret, c, o, s, n);
|
|
7635
7635
|
let u = Object.fromEntries(o);
|
|
7636
7636
|
return {
|
|
7637
7637
|
data: e,
|
|
@@ -7641,12 +7641,12 @@ function Xr(r) {
|
|
|
7641
7641
|
}
|
|
7642
7642
|
};
|
|
7643
7643
|
}
|
|
7644
|
-
typeof window != "undefined" &&
|
|
7645
|
-
var
|
|
7646
|
-
function
|
|
7644
|
+
typeof window != "undefined" && cn(window, "stsPlugin", Zr);
|
|
7645
|
+
var f0 = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, p0 = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, g0 = /[^-+\dA-Z]/g;
|
|
7646
|
+
function Qr(r, a, e, t) {
|
|
7647
7647
|
if (arguments.length === 1 && typeof r == "string" && !/\d/.test(r) && (a = r, r = void 0), r = r || r === 0 ? r : /* @__PURE__ */ new Date(), r instanceof Date || (r = new Date(r)), isNaN(r))
|
|
7648
7648
|
throw TypeError("Invalid date");
|
|
7649
|
-
a = String(
|
|
7649
|
+
a = String(Na[a] || a || Na.default);
|
|
7650
7650
|
var i = a.slice(0, 4);
|
|
7651
7651
|
(i === "UTC:" || i === "GMT:") && (a = a.slice(4), e = !0, i === "GMT:" && (t = !0));
|
|
7652
7652
|
var s = function() {
|
|
@@ -7670,9 +7670,9 @@ function Yr(r, a, e, t) {
|
|
|
7670
7670
|
}, m = function() {
|
|
7671
7671
|
return e ? 0 : r.getTimezoneOffset();
|
|
7672
7672
|
}, l = function() {
|
|
7673
|
-
return
|
|
7673
|
+
return m0(r);
|
|
7674
7674
|
}, x = function() {
|
|
7675
|
-
return
|
|
7675
|
+
return x0(r);
|
|
7676
7676
|
}, v = { d: function() {
|
|
7677
7677
|
return n();
|
|
7678
7678
|
}, dd: function() {
|
|
@@ -7680,11 +7680,11 @@ function Yr(r, a, e, t) {
|
|
|
7680
7680
|
}, ddd: function() {
|
|
7681
7681
|
return Oe.dayNames[c()];
|
|
7682
7682
|
}, DDD: function() {
|
|
7683
|
-
return
|
|
7683
|
+
return La({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c()], short: !0 });
|
|
7684
7684
|
}, dddd: function() {
|
|
7685
7685
|
return Oe.dayNames[c() + 7];
|
|
7686
7686
|
}, DDDD: function() {
|
|
7687
|
-
return
|
|
7687
|
+
return La({ y: u(), m: o(), d: n(), _: s(), dayName: Oe.dayNames[c() + 7] });
|
|
7688
7688
|
}, m: function() {
|
|
7689
7689
|
return o() + 1;
|
|
7690
7690
|
}, mm: function() {
|
|
@@ -7726,7 +7726,7 @@ function Yr(r, a, e, t) {
|
|
|
7726
7726
|
}, TT: function() {
|
|
7727
7727
|
return h() < 12 ? Oe.timeNames[6] : Oe.timeNames[7];
|
|
7728
7728
|
}, Z: function() {
|
|
7729
|
-
return t ? "GMT" : e ? "UTC" :
|
|
7729
|
+
return t ? "GMT" : e ? "UTC" : S0(r);
|
|
7730
7730
|
}, o: function() {
|
|
7731
7731
|
return (m() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(m()) / 60) * 100 + Math.abs(m()) % 60, 4);
|
|
7732
7732
|
}, p: function() {
|
|
@@ -7740,14 +7740,14 @@ function Yr(r, a, e, t) {
|
|
|
7740
7740
|
}, N: function() {
|
|
7741
7741
|
return x();
|
|
7742
7742
|
} };
|
|
7743
|
-
return a.replace(
|
|
7743
|
+
return a.replace(f0, function(S) {
|
|
7744
7744
|
return S in v ? v[S]() : S.slice(1, S.length - 1);
|
|
7745
7745
|
});
|
|
7746
7746
|
}
|
|
7747
|
-
var
|
|
7747
|
+
var Na = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShortDate: "mm/dd/yyyy", mediumDate: "mmm d, yyyy", longDate: "mmmm d, yyyy", fullDate: "dddd, mmmm d, yyyy", shortTime: "h:MM TT", mediumTime: "h:MM:ss TT", longTime: "h:MM:ss TT Z", isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:sso", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", expiresHeaderFormat: "ddd, dd mmm yyyy HH:MM:ss Z" }, Oe = { dayNames: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], timeNames: ["a", "p", "am", "pm", "A", "P", "AM", "PM"] }, Ke = function(a) {
|
|
7748
7748
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
7749
7749
|
return String(a).padStart(e, "0");
|
|
7750
|
-
},
|
|
7750
|
+
}, La = function(a) {
|
|
7751
7751
|
var e = a.y, t = a.m, i = a.d, s = a._, n = a.dayName, c = a.short, o = c === void 0 ? !1 : c, u = /* @__PURE__ */ new Date(), h = /* @__PURE__ */ new Date();
|
|
7752
7752
|
h.setDate(h[s + "Date"]() - 1);
|
|
7753
7753
|
var p = /* @__PURE__ */ new Date();
|
|
@@ -7772,7 +7772,7 @@ var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7772
7772
|
return p[s + "FullYear"]();
|
|
7773
7773
|
};
|
|
7774
7774
|
return m() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && x() === t && l() === i ? o ? "Ysd" : "Yesterday" : E() === e && b() === t && S() === i ? o ? "Tmw" : "Tomorrow" : n;
|
|
7775
|
-
},
|
|
7775
|
+
}, m0 = function(a) {
|
|
7776
7776
|
var e = new Date(a.getFullYear(), a.getMonth(), a.getDate());
|
|
7777
7777
|
e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
|
|
7778
7778
|
var t = new Date(e.getFullYear(), 0, 4);
|
|
@@ -7781,33 +7781,33 @@ var ka = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7781
7781
|
e.setHours(e.getHours() - i);
|
|
7782
7782
|
var s = (e - t) / (864e5 * 7);
|
|
7783
7783
|
return 1 + Math.floor(s);
|
|
7784
|
-
},
|
|
7784
|
+
}, x0 = function(a) {
|
|
7785
7785
|
var e = a.getDay();
|
|
7786
7786
|
return e === 0 && (e = 7), e;
|
|
7787
|
-
},
|
|
7788
|
-
return (String(a).match(
|
|
7787
|
+
}, S0 = function(a) {
|
|
7788
|
+
return (String(a).match(p0) || [""]).pop().replace(g0, "").replace(/GMT\+0000/g, "UTC");
|
|
7789
7789
|
};
|
|
7790
|
-
const { BrowserUtil:
|
|
7790
|
+
const { BrowserUtil: v0 } = le, jt = {
|
|
7791
7791
|
EdgeHTML: "EdgeHTML",
|
|
7792
7792
|
Blink: "Blink",
|
|
7793
7793
|
Trident: "Trident",
|
|
7794
7794
|
Gecko: "Gecko",
|
|
7795
7795
|
WebKit: "WebKit"
|
|
7796
|
-
},
|
|
7796
|
+
}, pi = (r, a) => {
|
|
7797
7797
|
const e = a.match(r);
|
|
7798
7798
|
return e && e.length > 0 && e[1] || "";
|
|
7799
|
-
},
|
|
7799
|
+
}, b0 = [
|
|
7800
7800
|
/* EdgeHTML */
|
|
7801
7801
|
{
|
|
7802
7802
|
test: [/\sedg\//i, [/edg([ea]|ios)/i]],
|
|
7803
7803
|
describe(r) {
|
|
7804
7804
|
if (/\sedg\//i.test(r))
|
|
7805
7805
|
return {
|
|
7806
|
-
name:
|
|
7806
|
+
name: jt.Blink
|
|
7807
7807
|
};
|
|
7808
|
-
const e =
|
|
7808
|
+
const e = pi(/edge\/(\d+(\.?_?\d+)+)/i, r);
|
|
7809
7809
|
return {
|
|
7810
|
-
name:
|
|
7810
|
+
name: jt.EdgeHTML,
|
|
7811
7811
|
version: e
|
|
7812
7812
|
};
|
|
7813
7813
|
}
|
|
@@ -7817,8 +7817,8 @@ const { BrowserUtil: x0 } = le, Ht = {
|
|
|
7817
7817
|
test: [/trident/i],
|
|
7818
7818
|
describe(r) {
|
|
7819
7819
|
const a = {
|
|
7820
|
-
name:
|
|
7821
|
-
}, e =
|
|
7820
|
+
name: jt.Trident
|
|
7821
|
+
}, e = pi(/trident\/(\d+(\.?_?\d+)+)/i, r);
|
|
7822
7822
|
return e && (a.version = e), a;
|
|
7823
7823
|
}
|
|
7824
7824
|
},
|
|
@@ -7830,8 +7830,8 @@ const { BrowserUtil: x0 } = le, Ht = {
|
|
|
7830
7830
|
},
|
|
7831
7831
|
describe(r) {
|
|
7832
7832
|
const a = {
|
|
7833
|
-
name:
|
|
7834
|
-
}, e =
|
|
7833
|
+
name: jt.Gecko
|
|
7834
|
+
}, e = pi(/gecko\/(\d+(\.?_?\d+)+)/i, r);
|
|
7835
7835
|
return e && (a.version = e), a;
|
|
7836
7836
|
}
|
|
7837
7837
|
},
|
|
@@ -7840,7 +7840,7 @@ const { BrowserUtil: x0 } = le, Ht = {
|
|
|
7840
7840
|
test: [/(apple)?webkit\/537\.36/i],
|
|
7841
7841
|
describe() {
|
|
7842
7842
|
return {
|
|
7843
|
-
name:
|
|
7843
|
+
name: jt.Blink
|
|
7844
7844
|
};
|
|
7845
7845
|
}
|
|
7846
7846
|
},
|
|
@@ -7849,27 +7849,27 @@ const { BrowserUtil: x0 } = le, Ht = {
|
|
|
7849
7849
|
test: [/(apple)?webkit/i],
|
|
7850
7850
|
describe(r) {
|
|
7851
7851
|
const a = {
|
|
7852
|
-
name:
|
|
7853
|
-
}, e =
|
|
7852
|
+
name: jt.WebKit
|
|
7853
|
+
}, e = pi(/webkit\/(\d+(\.?_?\d+)+)/i, r);
|
|
7854
7854
|
return e && (a.version = e), a;
|
|
7855
7855
|
}
|
|
7856
7856
|
}
|
|
7857
|
-
],
|
|
7857
|
+
], es = (r, a) => r.find((e) => {
|
|
7858
7858
|
if (typeof e.test == "function")
|
|
7859
7859
|
return e.test(a);
|
|
7860
7860
|
if (Array.isArray(e.test))
|
|
7861
7861
|
return e.test.some((t) => typeof t == "string" ? a.indexOf(t) > -1 : t instanceof RegExp ? t.test(a) : !1);
|
|
7862
|
-
}),
|
|
7862
|
+
}), E0 = () => {
|
|
7863
7863
|
try {
|
|
7864
|
-
const r = navigator.userAgent || "", a =
|
|
7864
|
+
const r = navigator.userAgent || "", a = es(b0, r);
|
|
7865
7865
|
if (a) {
|
|
7866
7866
|
const e = a.describe(r);
|
|
7867
|
-
return `${e.name}/${e.version ||
|
|
7867
|
+
return `${e.name}/${e.version || v0.browserVersion}`;
|
|
7868
7868
|
}
|
|
7869
7869
|
} catch (r) {
|
|
7870
7870
|
}
|
|
7871
7871
|
return navigator.userAgent;
|
|
7872
|
-
},
|
|
7872
|
+
}, _0 = [
|
|
7873
7873
|
{
|
|
7874
7874
|
test: ["wow64", "win64", "x64"],
|
|
7875
7875
|
describe() {
|
|
@@ -7894,17 +7894,17 @@ const { BrowserUtil: x0 } = le, Ht = {
|
|
|
7894
7894
|
return "arm";
|
|
7895
7895
|
}
|
|
7896
7896
|
}
|
|
7897
|
-
],
|
|
7897
|
+
], ln = () => {
|
|
7898
7898
|
let r = "unknown";
|
|
7899
7899
|
try {
|
|
7900
|
-
const a = navigator.userAgent || "", e =
|
|
7900
|
+
const a = navigator.userAgent || "", e = es(_0, a);
|
|
7901
7901
|
if (!e)
|
|
7902
7902
|
return r;
|
|
7903
7903
|
r = e.describe(a);
|
|
7904
7904
|
} catch (a) {
|
|
7905
7905
|
}
|
|
7906
7906
|
return r;
|
|
7907
|
-
},
|
|
7907
|
+
}, A0 = [
|
|
7908
7908
|
{
|
|
7909
7909
|
test: [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i],
|
|
7910
7910
|
describe() {
|
|
@@ -7993,17 +7993,17 @@ const { BrowserUtil: x0 } = le, Ht = {
|
|
|
7993
7993
|
return "Meizu";
|
|
7994
7994
|
}
|
|
7995
7995
|
}
|
|
7996
|
-
],
|
|
7996
|
+
], y0 = () => {
|
|
7997
7997
|
let r = "Unknown";
|
|
7998
7998
|
try {
|
|
7999
|
-
const a = navigator.userAgent || "", e =
|
|
7999
|
+
const a = navigator.userAgent || "", e = es(A0, a);
|
|
8000
8000
|
if (!e)
|
|
8001
8001
|
return r;
|
|
8002
8002
|
r = e.describe(a);
|
|
8003
8003
|
} catch (a) {
|
|
8004
8004
|
}
|
|
8005
8005
|
return r;
|
|
8006
|
-
}, { BrowserUtil:
|
|
8006
|
+
}, { BrowserUtil: Ma, SystenUtil: Va } = le, C0 = ln(), R0 = "woMMssV6jmyol9fr", I0 = 200, gi = 10 * 60 * 1e3, mi = {
|
|
8007
8007
|
host: "cn-hangzhou.log.aliyuncs.com",
|
|
8008
8008
|
// 所在地域的服务入口。例如cn-hangzhou.log.aliyuncs.com
|
|
8009
8009
|
project: "alivc-aio",
|
|
@@ -8015,14 +8015,14 @@ const { BrowserUtil: x0 } = le, Ht = {
|
|
|
8015
8015
|
count: 10
|
|
8016
8016
|
// 发送日志的数量大小,默认是10条。
|
|
8017
8017
|
};
|
|
8018
|
-
function
|
|
8019
|
-
return
|
|
8018
|
+
function kr() {
|
|
8019
|
+
return Qr(/* @__PURE__ */ new Date(), "HH:MM:ss.l");
|
|
8020
8020
|
}
|
|
8021
|
-
function
|
|
8022
|
-
return
|
|
8021
|
+
function Fa() {
|
|
8022
|
+
return Qr(/* @__PURE__ */ new Date(), "isoDate");
|
|
8023
8023
|
}
|
|
8024
|
-
var
|
|
8025
|
-
class
|
|
8024
|
+
var fn = /* @__PURE__ */ ((r) => (r[r.DEBUG = 0] = "DEBUG", r[r.INFO = 1] = "INFO", r[r.API = 2] = "API", r[r.WARNING = 3] = "WARNING", r[r.ERROR = 4] = "ERROR", r[r.NONE = 5] = "NONE", r))(fn || {});
|
|
8025
|
+
class w0 {
|
|
8026
8026
|
constructor() {
|
|
8027
8027
|
g(this, "tracker");
|
|
8028
8028
|
g(this, "slsPlugin");
|
|
@@ -8043,11 +8043,11 @@ class R0 {
|
|
|
8043
8043
|
return;
|
|
8044
8044
|
this.logSequence += 1, a.unshift(
|
|
8045
8045
|
this.getLogParams(710203, {
|
|
8046
|
-
log: `[${
|
|
8046
|
+
log: `[${Fa()} ${kr()}] [INF] beforeunload`,
|
|
8047
8047
|
stat_log_seq: this.logSequence
|
|
8048
8048
|
})
|
|
8049
8049
|
);
|
|
8050
|
-
const e = `https://${
|
|
8050
|
+
const e = `https://${mi.project}.${mi.host}/logstores/${mi.logstore}`, t = {
|
|
8051
8051
|
__logs__: a.map((n) => this.slsPlugin.transString(n))
|
|
8052
8052
|
}, { data: i, header: s } = yield this.slsPlugin.process(e, JSON.stringify(t));
|
|
8053
8053
|
fetch(e, {
|
|
@@ -8058,7 +8058,7 @@ class R0 {
|
|
|
8058
8058
|
});
|
|
8059
8059
|
}));
|
|
8060
8060
|
g(this, "logMethod", (a, e = console.log) => (...t) => {
|
|
8061
|
-
let i =
|
|
8061
|
+
let i = kr();
|
|
8062
8062
|
this.logLevel <= a && e(i, ...t);
|
|
8063
8063
|
let s = He.paramArrayToString(t);
|
|
8064
8064
|
a > 0 && this.addLog(s);
|
|
@@ -8117,22 +8117,22 @@ class R0 {
|
|
|
8117
8117
|
}
|
|
8118
8118
|
this.updateTaskTimer = setTimeout(() => {
|
|
8119
8119
|
this.startSTSUpdateTask();
|
|
8120
|
-
},
|
|
8120
|
+
}, gi);
|
|
8121
8121
|
});
|
|
8122
8122
|
}
|
|
8123
8123
|
refreshSTSToken() {
|
|
8124
8124
|
return w(this, null, function* () {
|
|
8125
|
-
if (!this.stsData || this.stsExpiration <= Date.now() -
|
|
8126
|
-
const a = yield this.requestSTSToken(), e = new Date(a == null ? void 0 : a.Expiration).getTime() || 0, t = Date.now() +
|
|
8125
|
+
if (!this.stsData || this.stsExpiration <= Date.now() - gi) {
|
|
8126
|
+
const a = yield this.requestSTSToken(), e = new Date(a == null ? void 0 : a.Expiration).getTime() || 0, t = Date.now() + gi;
|
|
8127
8127
|
this.stsExpiration = Math.max(e, t), this.stsData = a;
|
|
8128
8128
|
}
|
|
8129
8129
|
return this.stsData;
|
|
8130
8130
|
});
|
|
8131
8131
|
}
|
|
8132
8132
|
requestSTSToken() {
|
|
8133
|
-
const a = Date.now(), e = `${this.clientId}|${
|
|
8133
|
+
const a = Date.now(), e = `${this.clientId}|${R0}|${a}`, i = {
|
|
8134
8134
|
Action: "AssumeSlsRoleV2",
|
|
8135
|
-
AuthInfo:
|
|
8135
|
+
AuthInfo: ai.MD5(e).toString(ai.enc.Hex),
|
|
8136
8136
|
ClientId: this.clientId,
|
|
8137
8137
|
BusinessType: "logger",
|
|
8138
8138
|
AppVersion: "1.0",
|
|
@@ -8143,7 +8143,7 @@ class R0 {
|
|
|
8143
8143
|
Format: "JSON",
|
|
8144
8144
|
SignatureMethod: "HMAC-SHA1",
|
|
8145
8145
|
SignatureVersion: "1.0",
|
|
8146
|
-
Timestamp:
|
|
8146
|
+
Timestamp: Qr(a, "isoUtcDateTime")
|
|
8147
8147
|
// SignatureNonce: generateRandomString(64),
|
|
8148
8148
|
}, n = `https://slsrole.alicdn.com/?${new URLSearchParams(i).toString()}`;
|
|
8149
8149
|
return fetch(n).then((c) => c.json()).then((c) => JSON.parse(window.atob(c.SlsAuthResult)));
|
|
@@ -8154,7 +8154,7 @@ class R0 {
|
|
|
8154
8154
|
accessKeyId: a.AccessKeyId,
|
|
8155
8155
|
accessKeySecret: a.AccessKeySecret,
|
|
8156
8156
|
securityToken: a.SecurityToken,
|
|
8157
|
-
refreshSTSTokenInterval:
|
|
8157
|
+
refreshSTSTokenInterval: gi,
|
|
8158
8158
|
stsTokenFreshTime: void 0,
|
|
8159
8159
|
refreshSTSToken: () => {
|
|
8160
8160
|
this.refreshSTSToken().then((s) => {
|
|
@@ -8162,7 +8162,7 @@ class R0 {
|
|
|
8162
8162
|
}).catch(() => {
|
|
8163
8163
|
});
|
|
8164
8164
|
}
|
|
8165
|
-
}, t = new
|
|
8165
|
+
}, t = new Gr(mi), i = Zr(e);
|
|
8166
8166
|
t.useStsPlugin(i), this.slsPlugin = i, this.tracker = t, this.reportStartAndCache();
|
|
8167
8167
|
}
|
|
8168
8168
|
}
|
|
@@ -8216,16 +8216,16 @@ class R0 {
|
|
|
8216
8216
|
b_sesid: this.bSesid,
|
|
8217
8217
|
// 与其他端对齐,用于该字段标记某个上传任务
|
|
8218
8218
|
biz_type: "rtc",
|
|
8219
|
-
cpu_info:
|
|
8220
|
-
db:
|
|
8221
|
-
dm:
|
|
8219
|
+
cpu_info: C0,
|
|
8220
|
+
db: Ma.browserName,
|
|
8221
|
+
dm: Ma.browserVersion,
|
|
8222
8222
|
install_uuid: this.clientId,
|
|
8223
8223
|
logger_v: "0.0.1",
|
|
8224
|
-
os:
|
|
8225
|
-
osv:
|
|
8224
|
+
os: Va.systemName,
|
|
8225
|
+
osv: Va.systemVersion,
|
|
8226
8226
|
p_sesid: this.bSesid,
|
|
8227
8227
|
// 与其他端对齐,用于该字段标记某个上传任务
|
|
8228
|
-
sdk_version:
|
|
8228
|
+
sdk_version: yi,
|
|
8229
8229
|
sdkname: "AliRTCSdk",
|
|
8230
8230
|
stm: Date.now(),
|
|
8231
8231
|
tar_pf: "web",
|
|
@@ -8245,13 +8245,13 @@ class R0 {
|
|
|
8245
8245
|
this.tracker.send(e);
|
|
8246
8246
|
}
|
|
8247
8247
|
addLog(a) {
|
|
8248
|
-
const e =
|
|
8249
|
-
!this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >=
|
|
8248
|
+
const e = kr(), i = `[${Fa()} ${e}] ${a}`;
|
|
8249
|
+
!this.sessionId || !this.tracker ? (this.logCache.push(i), this.logCache.length >= I0 && this.logCache.shift()) : this.sendLog(i);
|
|
8250
8250
|
}
|
|
8251
8251
|
}
|
|
8252
8252
|
class O {
|
|
8253
8253
|
static getLogger() {
|
|
8254
|
-
return this.logger || (this.logger = new
|
|
8254
|
+
return this.logger || (this.logger = new w0()), this.logger;
|
|
8255
8255
|
}
|
|
8256
8256
|
static init() {
|
|
8257
8257
|
this.getLogger().init();
|
|
@@ -8295,7 +8295,7 @@ class O {
|
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
8297
|
g(O, "logger");
|
|
8298
|
-
const
|
|
8298
|
+
const D0 = (r) => w(void 0, null, function* () {
|
|
8299
8299
|
const a = new le.SupportUtil();
|
|
8300
8300
|
let e = {
|
|
8301
8301
|
support: !1,
|
|
@@ -8317,9 +8317,9 @@ const I0 = (r) => w(void 0, null, function* () {
|
|
|
8317
8317
|
e.detail.isH264EncodeSupported = t, e.support = e.support && t;
|
|
8318
8318
|
}
|
|
8319
8319
|
return e.detail.isScreenShareSupported = a.checkWebRtcSupport() && a.checkScreenCapture() && !le.SystenUtil.isAndroid && !le.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = a.checkWebRtcSupport() && a.checkEncodedTransformSupport(), e;
|
|
8320
|
-
}),
|
|
8321
|
-
var be = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(be || {}),
|
|
8322
|
-
class
|
|
8320
|
+
}), T0 = () => new le.SupportUtil().checkScreenCapture();
|
|
8321
|
+
var be = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(be || {}), P0 = /* @__PURE__ */ ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))(P0 || {}), Ri = /* @__PURE__ */ ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(Ri || {});
|
|
8322
|
+
class Gt extends De {
|
|
8323
8323
|
constructor(e, t = be.AliRtcSdkStreamTypeCapture, i = 1) {
|
|
8324
8324
|
super();
|
|
8325
8325
|
// 扩展名
|
|
@@ -8382,13 +8382,13 @@ class Jt extends De {
|
|
|
8382
8382
|
this._hasCleared = !0, this.lastInputAudioTrack = void 0, this.lastInputVideoTrack = void 0, this.lastOutputAudioTrack = void 0, this.lastOutputVideoTrack = void 0;
|
|
8383
8383
|
}
|
|
8384
8384
|
}
|
|
8385
|
-
var
|
|
8386
|
-
const
|
|
8385
|
+
var bi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingSingle = 0] = "LiveTranscodingSingle", r[r.LiveTranscodingMix = 1] = "LiveTranscodingMix", r))(bi || {}), pn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingAudio = 1] = "LiveTranscodingAudio", r[r.LiveTranscodingVideo = 2] = "LiveTranscodingVideo", r))(pn || {}), ni = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingCamera = 0] = "LiveTranscodingCamera", r[r.LiveTranscodingShareScreen = 1] = "LiveTranscodingShareScreen", r))(ni || {});
|
|
8386
|
+
const ii = {
|
|
8387
8387
|
0: "camera",
|
|
8388
8388
|
1: "shareScreen"
|
|
8389
8389
|
};
|
|
8390
|
-
var
|
|
8391
|
-
const
|
|
8390
|
+
var gn = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_Profile_1IN_1080P = 0] = "LiveTranscoding_Profile_1IN_1080P", r[r.LiveTranscoding_Profile_1IN_720P = 1] = "LiveTranscoding_Profile_1IN_720P", r[r.LiveTranscoding_Profile_1IN_360P = 2] = "LiveTranscoding_Profile_1IN_360P", r[r.LiveTranscoding_Profile_2IN_1080P = 3] = "LiveTranscoding_Profile_2IN_1080P", r[r.LiveTranscoding_Profile_2IN_720P = 4] = "LiveTranscoding_Profile_2IN_720P", r[r.LiveTranscoding_Profile_2IN_360P = 5] = "LiveTranscoding_Profile_2IN_360P", r[r.LiveTranscoding_Profile_4IN_1080P = 6] = "LiveTranscoding_Profile_4IN_1080P", r[r.LiveTranscoding_Profile_4IN_720P = 7] = "LiveTranscoding_Profile_4IN_720P", r[r.LiveTranscoding_Profile_4IN_360P = 8] = "LiveTranscoding_Profile_4IN_360P", r[r.LiveTranscoding_Profile_9IN_1080P = 9] = "LiveTranscoding_Profile_9IN_1080P", r[r.LiveTranscoding_Profile_9IN_720P = 10] = "LiveTranscoding_Profile_9IN_720P", r[r.LiveTranscoding_Profile_9IN_360P = 11] = "LiveTranscoding_Profile_9IN_360P", r[r.LiveTranscoding_Profile_12IN_1080P = 12] = "LiveTranscoding_Profile_12IN_1080P", r[r.LiveTranscoding_Profile_12IN_720P = 13] = "LiveTranscoding_Profile_12IN_720P", r[r.LiveTranscoding_Profile_12IN_360P = 14] = "LiveTranscoding_Profile_12IN_360P", r[r.LiveTranscoding_Profile_16IN_1080P = 15] = "LiveTranscoding_Profile_16IN_1080P", r[r.LiveTranscoding_Profile_16IN_720P = 16] = "LiveTranscoding_Profile_16IN_720P", r[r.LiveTranscoding_Profile_16IN_360P = 17] = "LiveTranscoding_Profile_16IN_360P", r[r.LiveTranscoding_Profile_Mixed = 9999] = "LiveTranscoding_Profile_Mixed", r))(gn || {});
|
|
8391
|
+
const k0 = {
|
|
8392
8392
|
0: "1IN_1080P",
|
|
8393
8393
|
1: "1IN_720P",
|
|
8394
8394
|
2: "1IN_360P",
|
|
@@ -8409,8 +8409,8 @@ const T0 = {
|
|
|
8409
8409
|
17: "16IN_360P",
|
|
8410
8410
|
9999: "Mixed_Audio"
|
|
8411
8411
|
};
|
|
8412
|
-
var
|
|
8413
|
-
const
|
|
8412
|
+
var ts = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(ts || {}), Ei = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(Ei || {}), Ii = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(Ii || {}), mn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(mn || {}), is = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(is || {}), xn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(xn || {}), ht = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ht || {}), Sn = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(Sn || {}), Ue = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Ue || {});
|
|
8413
|
+
const B0 = {
|
|
8414
8414
|
0: "/libra/v1/sdk/start-task",
|
|
8415
8415
|
1: "/libra/v1/sdk/update-task",
|
|
8416
8416
|
2: "/libra/v1/sdk/stop-task",
|
|
@@ -8419,7 +8419,7 @@ const P0 = {
|
|
|
8419
8419
|
5: "/libra/v1/sdk/acknowledge",
|
|
8420
8420
|
6: "/"
|
|
8421
8421
|
};
|
|
8422
|
-
class
|
|
8422
|
+
class vn {
|
|
8423
8423
|
//[1,2]
|
|
8424
8424
|
constructor(a, e, t, i, s, n, c, o) {
|
|
8425
8425
|
g(this, "videoWidth");
|
|
@@ -8432,23 +8432,23 @@ class xn {
|
|
|
8432
8432
|
//[1kbps,10000kbps]
|
|
8433
8433
|
g(this, "videoGop", 30);
|
|
8434
8434
|
//[1,60]
|
|
8435
|
-
g(this, "audioSamplerate",
|
|
8435
|
+
g(this, "audioSamplerate", ts.LiveTranscoding_HZ_44100);
|
|
8436
8436
|
g(this, "audioBitrate", 500);
|
|
8437
8437
|
//[8kbps,500kbps]
|
|
8438
8438
|
g(this, "audioChannels", 1);
|
|
8439
8439
|
this.videoWidth = a, this.videoHeight = e, t && (this.videoFramerate = t), i && (this.videoBitrate = i), s && (this.videoGop = s), n && (this.audioSamplerate = n), c && (this.audioBitrate = c), o && (this.audioChannels = o);
|
|
8440
8440
|
}
|
|
8441
8441
|
}
|
|
8442
|
-
const
|
|
8442
|
+
const rs = (r) => ((r & 16711680) >> 16) + (r & 65280) + ((r & 255) << 16), Ye = (r = 0, a) => {
|
|
8443
8443
|
if (a == 0)
|
|
8444
8444
|
return 0;
|
|
8445
8445
|
let e = r / a;
|
|
8446
8446
|
return e < 0 && (e = 0), e > 1 && (e = 1), e;
|
|
8447
8447
|
};
|
|
8448
|
-
class
|
|
8448
|
+
class Vr {
|
|
8449
8449
|
constructor(a, e, t) {
|
|
8450
8450
|
/*! 旁路模式 */
|
|
8451
|
-
g(this, "mixMode",
|
|
8451
|
+
g(this, "mixMode", bi.LiveTranscodingSingle);
|
|
8452
8452
|
/*! 路模式单路参数 */
|
|
8453
8453
|
g(this, "singleParam");
|
|
8454
8454
|
/*! 旁路模式混流参数 */
|
|
@@ -8463,18 +8463,18 @@ class Mr {
|
|
|
8463
8463
|
if (a === Ue.MPU_TASK_TRANSACTION_POLLING || a === Ue.MPU_TASK_TRANSACTION_LIST || a === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE)
|
|
8464
8464
|
return a === Ue.MPU_TASK_TRANSACTION_ACKNOWLEDGE && (n.messageid = s), n;
|
|
8465
8465
|
if (n.taskid = t, a !== Ue.MPU_TASK_TRANSACTION_STOP) {
|
|
8466
|
-
if (n.mixmode = this.mixMode, i && (n.streamurl = i), this.mixMode ===
|
|
8466
|
+
if (n.mixmode = this.mixMode, i && (n.streamurl = i), this.mixMode === bi.LiveTranscodingSingle) {
|
|
8467
8467
|
const c = this.singleParam;
|
|
8468
8468
|
if (c) {
|
|
8469
|
-
n.streamtype = c.streamType, c.sourceType ===
|
|
8469
|
+
n.streamtype = c.streamType, c.sourceType === ni.LiveTranscodingShareScreen ? n.sourcetype = ii[c.sourceType] : n.sourcetype = ii[ni.LiveTranscodingCamera];
|
|
8470
8470
|
const o = [];
|
|
8471
8471
|
c.userId && o.push(c.userId), n.subspecusers = o;
|
|
8472
8472
|
}
|
|
8473
8473
|
} else if (a === Ue.MPU_TASK_TRANSACTION_START || a === Ue.MPU_TASK_TRANSACTION_UPDATE) {
|
|
8474
8474
|
const c = this.mixParam;
|
|
8475
8475
|
if (c) {
|
|
8476
|
-
c.taskProfile && (n.taskprofile =
|
|
8477
|
-
const o = c.encodeParam || new
|
|
8476
|
+
c.taskProfile && (n.taskprofile = k0[c.taskProfile]);
|
|
8477
|
+
const o = c.encodeParam || new vn(1280, 720);
|
|
8478
8478
|
let u = o.videoWidth, h = o.videoHeight;
|
|
8479
8479
|
const p = {};
|
|
8480
8480
|
Object.keys(o).forEach((f) => {
|
|
@@ -8489,15 +8489,15 @@ class Mr {
|
|
|
8489
8489
|
(f, m) => f.toJson(m, u, h, c.mediaProcessMode)
|
|
8490
8490
|
)
|
|
8491
8491
|
}
|
|
8492
|
-
], n.layoutids = ["0"], n.cropmode = c.cropMode, n.backgroundcolor =
|
|
8492
|
+
], n.layoutids = ["0"], n.cropmode = c.cropMode, n.backgroundcolor = rs(c.backgroundColor), n.taskmode = c.mediaProcessMode;
|
|
8493
8493
|
}
|
|
8494
8494
|
}
|
|
8495
8495
|
}
|
|
8496
8496
|
return n;
|
|
8497
8497
|
}
|
|
8498
8498
|
}
|
|
8499
|
-
var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Bt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), _e = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(_e || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(ue || {}),
|
|
8500
|
-
const
|
|
8499
|
+
var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Bt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), _e = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(_e || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(ue || {}), Wt = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Wt || {}), ss = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(ss || {}), Xt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(Xt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), Y = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Y || {}), he = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(he || {}), we = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(we || {}), oi = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(oi || {});
|
|
8500
|
+
const Oa = 12, Ua = 5e3, $t = class $t extends De {
|
|
8501
8501
|
constructor(e) {
|
|
8502
8502
|
super();
|
|
8503
8503
|
g(this, "ws");
|
|
@@ -8508,7 +8508,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
|
|
|
8508
8508
|
// 建立连接时候使用的url
|
|
8509
8509
|
g(this, "lastConnectStartTime", 0);
|
|
8510
8510
|
// 上一次开始连接的时间
|
|
8511
|
-
g(this, "maxConnectRetryCount",
|
|
8511
|
+
g(this, "maxConnectRetryCount", Oa);
|
|
8512
8512
|
g(this, "connectRetryCount", 0);
|
|
8513
8513
|
// 尝试重连了多少次
|
|
8514
8514
|
g(this, "gotErr", !1);
|
|
@@ -8517,7 +8517,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
|
|
|
8517
8517
|
g(this, "isReconnecting", !1);
|
|
8518
8518
|
g(this, "networkAvailableChecked", !0);
|
|
8519
8519
|
g(this, "reconnectTimeoutId", 0);
|
|
8520
|
-
this.maxConnectRetryCount = e != null ? e :
|
|
8520
|
+
this.maxConnectRetryCount = e != null ? e : Oa, this.onOpen = this.onOpen.bind(this), this.onMessage = this.onMessage.bind(this), this.onError = this.onError.bind(this), this.onClose = this.onClose.bind(this);
|
|
8521
8521
|
}
|
|
8522
8522
|
get connectUrl() {
|
|
8523
8523
|
return this.wsUrl;
|
|
@@ -8556,7 +8556,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
|
|
|
8556
8556
|
* @param event
|
|
8557
8557
|
*/
|
|
8558
8558
|
onOpen(e) {
|
|
8559
|
-
O.info(`[${
|
|
8559
|
+
O.info(`[${$t.logName}]`, "onOpen"), this.socketStatus = 2, this.connectRetryCount = 0, this.networkAvailableChecked = !1, this.closedByInvoke = !1, this.gotErr = !1, this.isReconnecting = !1, this.emit("onOpen", e);
|
|
8560
8560
|
}
|
|
8561
8561
|
/**
|
|
8562
8562
|
* 收到消息
|
|
@@ -8571,7 +8571,7 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
|
|
|
8571
8571
|
*/
|
|
8572
8572
|
onError(e) {
|
|
8573
8573
|
this.isReconnecting && this.emit("onReconnectFail", e), this.emit("onError", e), this.isReconnecting = !1, this.socketStatus !== 2 && He.isNetworkAvailable().then((t) => {
|
|
8574
|
-
t && console.error(
|
|
8574
|
+
t && console.error($t.logName, "onError, Network is available, token may be invalid");
|
|
8575
8575
|
});
|
|
8576
8576
|
}
|
|
8577
8577
|
/**
|
|
@@ -8585,15 +8585,15 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
|
|
|
8585
8585
|
return;
|
|
8586
8586
|
}
|
|
8587
8587
|
if (O.info(
|
|
8588
|
-
`[${
|
|
8588
|
+
`[${$t.logName}]`,
|
|
8589
8589
|
`onClose, code: ${e.code}, reason: ${e.reason}, status: ${status}, retryCount: ${this.connectRetryCount}`
|
|
8590
8590
|
), (yield He.isNetworkAvailable()) && !this.networkAvailableChecked) {
|
|
8591
8591
|
this.reconnect(), this.networkAvailableChecked = !0;
|
|
8592
8592
|
return;
|
|
8593
8593
|
} else
|
|
8594
|
-
this.connectRetryCount || this.emit("onNetworkError"), this.reconnectTimeoutId || (this.connectRetryCount += 1, this.connectRetryCount > this.maxConnectRetryCount ? this.emit("onConnectFail") : Date.now() - this.lastConnectStartTime >=
|
|
8594
|
+
this.connectRetryCount || this.emit("onNetworkError"), this.reconnectTimeoutId || (this.connectRetryCount += 1, this.connectRetryCount > this.maxConnectRetryCount ? this.emit("onConnectFail") : Date.now() - this.lastConnectStartTime >= Ua ? this.reconnect() : this.reconnectTimeoutId = window.setTimeout(() => {
|
|
8595
8595
|
this.reconnect();
|
|
8596
|
-
},
|
|
8596
|
+
}, Ua));
|
|
8597
8597
|
this.socketStatus = 0, this.emit("onClose", e);
|
|
8598
8598
|
});
|
|
8599
8599
|
}
|
|
@@ -8613,10 +8613,10 @@ const Va = 12, Fa = 5e3, Wt = class Wt extends De {
|
|
|
8613
8613
|
/**
|
|
8614
8614
|
* @ignore
|
|
8615
8615
|
*/
|
|
8616
|
-
g(
|
|
8617
|
-
let
|
|
8616
|
+
g($t, "logName", "Socket");
|
|
8617
|
+
let Fr = $t;
|
|
8618
8618
|
var ve = /* @__PURE__ */ ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(ve || {});
|
|
8619
|
-
class
|
|
8619
|
+
class N0 {
|
|
8620
8620
|
constructor(a, e) {
|
|
8621
8621
|
g(this, "authInfo");
|
|
8622
8622
|
g(this, "userName");
|
|
@@ -8654,7 +8654,7 @@ class k0 {
|
|
|
8654
8654
|
"joinchannel"
|
|
8655
8655
|
/* JOINCHANNEL */
|
|
8656
8656
|
);
|
|
8657
|
-
return a.header.displayName = this.userName, a.header.clientversion = He.getVersionNumber().toString(), a.header.platform =
|
|
8657
|
+
return a.header.displayName = this.userName, a.header.clientversion = He.getVersionNumber().toString(), a.header.platform = Xs, this.roleAuth && (a.data.auth = this.roleAuth), a;
|
|
8658
8658
|
}
|
|
8659
8659
|
/**
|
|
8660
8660
|
* 创建一个用于发送离会消息的Package
|
|
@@ -8696,7 +8696,7 @@ class k0 {
|
|
|
8696
8696
|
"reconnect"
|
|
8697
8697
|
/* RECONNECT */
|
|
8698
8698
|
);
|
|
8699
|
-
return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform =
|
|
8699
|
+
return e.header.displayName = this.userName, e.header.clientversion = He.getVersionNumber().toString(), e.header.platform = Xs, e.data = G(G({}, e.data), a != null ? a : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
|
|
8700
8700
|
}
|
|
8701
8701
|
createRefreshUrlPackage() {
|
|
8702
8702
|
let a = this.createBaseSendPackage(
|
|
@@ -8769,7 +8769,7 @@ class F extends Error {
|
|
|
8769
8769
|
return this._extra;
|
|
8770
8770
|
}
|
|
8771
8771
|
}
|
|
8772
|
-
const
|
|
8772
|
+
const L0 = 3e4, qe = class qe extends De {
|
|
8773
8773
|
// 发送重连信令时,房间信令凭这些信息找回 session
|
|
8774
8774
|
constructor(e, t, i, s, n, c) {
|
|
8775
8775
|
super();
|
|
@@ -8792,7 +8792,7 @@ const B0 = 3e4, qe = class qe extends De {
|
|
|
8792
8792
|
g(this, "aliveChecker", 0);
|
|
8793
8793
|
// 心跳检查定时器
|
|
8794
8794
|
g(this, "reconnectData");
|
|
8795
|
-
this.authInfo = e, this.userName = t, this.packageCreater = new
|
|
8795
|
+
this.authInfo = e, this.userName = t, this.packageCreater = new N0(e, t), this.channelProfile = i, this.clientRole = s, this.slsReporter = n, this.wsClient = new Fr(c), this.wsClient.on("onOpen", this.onOpen.bind(this)), this.wsClient.on("onMessage", this.onMessage.bind(this)), this.wsClient.on("onError", this.onError.bind(this)), this.wsClient.on("onClose", this.onClose.bind(this)), this.wsClient.on("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.on("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.on("onNetworkError", this.onNetworkError.bind(this)), this.wsClient.on("onReconnectStart", this.onReconnectStart.bind(this)), this.wsClient.on("onReconnectFail", this.onReconnectFail.bind(this));
|
|
8796
8796
|
}
|
|
8797
8797
|
get retryCount() {
|
|
8798
8798
|
return this.wsClient.connectRetryCount;
|
|
@@ -8980,7 +8980,7 @@ const B0 = 3e4, qe = class qe extends De {
|
|
|
8980
8980
|
checkAlive() {
|
|
8981
8981
|
window.clearTimeout(this.aliveChecker), this.aliveChecker = window.setTimeout(() => {
|
|
8982
8982
|
O.info(`[${qe.logName}] not alive, reconnect`), this.stopKeepAlive(), this.emit("onReconnectStart"), this.wsClient.reconnect();
|
|
8983
|
-
},
|
|
8983
|
+
}, L0);
|
|
8984
8984
|
}
|
|
8985
8985
|
/**
|
|
8986
8986
|
* 处理收到的业务信令
|
|
@@ -9127,7 +9127,7 @@ const B0 = 3e4, qe = class qe extends De {
|
|
|
9127
9127
|
}
|
|
9128
9128
|
};
|
|
9129
9129
|
g(qe, "logName", "RSMessageCenter");
|
|
9130
|
-
let
|
|
9130
|
+
let Or = qe;
|
|
9131
9131
|
const D = (r, a) => (e, t, i) => {
|
|
9132
9132
|
const s = i.value;
|
|
9133
9133
|
return i.value = function(...n) {
|
|
@@ -9171,12 +9171,12 @@ const D = (r, a) => (e, t, i) => {
|
|
|
9171
9171
|
}), h;
|
|
9172
9172
|
}, i;
|
|
9173
9173
|
}, H = (r) => r;
|
|
9174
|
-
var
|
|
9175
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
9174
|
+
var M0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, as = (r, a, e, t) => {
|
|
9175
|
+
for (var i = t > 1 ? void 0 : t ? V0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
9176
9176
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
9177
|
-
return t && i &&
|
|
9177
|
+
return t && i && M0(a, e, i), i;
|
|
9178
9178
|
}, Ne;
|
|
9179
|
-
const
|
|
9179
|
+
const wi = (Ne = class extends De {
|
|
9180
9180
|
constructor(e, t, i, s = pt.prod) {
|
|
9181
9181
|
super();
|
|
9182
9182
|
g(this, "messageCenter");
|
|
@@ -9194,7 +9194,7 @@ const Ri = (Ne = class extends De {
|
|
|
9194
9194
|
clientrole: t
|
|
9195
9195
|
}
|
|
9196
9196
|
};
|
|
9197
|
-
const n = s === pt.pre ?
|
|
9197
|
+
const n = s === pt.pre ? vi.pre : vi.prod;
|
|
9198
9198
|
this.roomServerUri = `wss://${n}/roomserver/v1/ws`;
|
|
9199
9199
|
}
|
|
9200
9200
|
/**
|
|
@@ -9215,7 +9215,7 @@ const Ri = (Ne = class extends De {
|
|
|
9215
9215
|
return w(this, null, function* () {
|
|
9216
9216
|
return new Promise((s, n) => {
|
|
9217
9217
|
const c = {};
|
|
9218
|
-
this.authInfo = e, this.userName = t, this.messageCenter = new
|
|
9218
|
+
this.authInfo = e, this.userName = t, this.messageCenter = new Or(
|
|
9219
9219
|
e,
|
|
9220
9220
|
t,
|
|
9221
9221
|
this.channelProfile,
|
|
@@ -9363,17 +9363,17 @@ const Ri = (Ne = class extends De {
|
|
|
9363
9363
|
* @ignore
|
|
9364
9364
|
*/
|
|
9365
9365
|
g(Ne, "logName", "RoomServerSignaling"), Ne);
|
|
9366
|
-
|
|
9366
|
+
as([
|
|
9367
9367
|
D()
|
|
9368
|
-
],
|
|
9369
|
-
|
|
9368
|
+
], wi.prototype, "join", 1);
|
|
9369
|
+
as([
|
|
9370
9370
|
D()
|
|
9371
|
-
],
|
|
9372
|
-
|
|
9371
|
+
], wi.prototype, "publish", 1);
|
|
9372
|
+
as([
|
|
9373
9373
|
D()
|
|
9374
|
-
],
|
|
9375
|
-
let
|
|
9376
|
-
const
|
|
9374
|
+
], wi.prototype, "roleUpdate", 1);
|
|
9375
|
+
let F0 = wi;
|
|
9376
|
+
const O0 = "https://pgw.rtn.aliyuncs.com", U0 = "https://gw.rtn.aliyuncs.com", Ha = 10 * 60 * 1e3, H0 = 12, ri = class ri extends De {
|
|
9377
9377
|
constructor(e, t) {
|
|
9378
9378
|
super();
|
|
9379
9379
|
g(this, "env");
|
|
@@ -9386,19 +9386,19 @@ const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", O
|
|
|
9386
9386
|
if (this.skipTime = 0, !this.authInfo)
|
|
9387
9387
|
return;
|
|
9388
9388
|
const { appId: e, channelId: t, userId: i, nonce: s = "", token: n, timestamp: c, sessionId: o, role: u } = this.authInfo;
|
|
9389
|
-
let h =
|
|
9390
|
-
this.env === pt.pre && (h =
|
|
9389
|
+
let h = U0;
|
|
9390
|
+
this.env === pt.pre && (h = O0);
|
|
9391
9391
|
const p = `${h}/gslb/v1/stsupdate?appid=${e}&channelid=${t}&userid=${i}&nonce=${s}&token=${n}×tamp=${c}&session=${o}${u ? `&tokenrole=${u}` : ""}&slstoken=true&osstoken=true&tokensid=false`, d = Date.now();
|
|
9392
9392
|
fetch(p).then((f) => f.json()).then((f) => {
|
|
9393
9393
|
var m, l;
|
|
9394
9394
|
if (f.code === 0) {
|
|
9395
9395
|
const x = (m = f.data) == null ? void 0 : m.oss, v = (l = f.data) == null ? void 0 : l.sls;
|
|
9396
|
-
this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), O.event(`[${
|
|
9396
|
+
this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), O.event(`[${ri.logName}]`, "getToken", x, v);
|
|
9397
9397
|
} else
|
|
9398
9398
|
throw new Error();
|
|
9399
9399
|
this.slsReporter.reportSTSResult(200, d);
|
|
9400
9400
|
}).catch((f) => {
|
|
9401
|
-
this.slsReporter.reportSTSResult(-1, d), O.error(`[${
|
|
9401
|
+
this.slsReporter.reportSTSResult(-1, d), O.error(`[${ri.logName}]`, "getToken", f.message);
|
|
9402
9402
|
});
|
|
9403
9403
|
}));
|
|
9404
9404
|
this.slsReporter = e, this.env = t;
|
|
@@ -9408,25 +9408,25 @@ const V0 = "https://pgw.rtn.aliyuncs.com", F0 = "https://gw.rtn.aliyuncs.com", O
|
|
|
9408
9408
|
}
|
|
9409
9409
|
startSTSUpdate(e) {
|
|
9410
9410
|
this.authInfo = e, this.requestToken(), this.timer && clearInterval(this.timer), this.timer = window.setInterval(() => {
|
|
9411
|
-
if (this.expiration && Math.floor((Date.now() +
|
|
9411
|
+
if (this.expiration && Math.floor((Date.now() + Ha * 1.5) / 1e3) < this.expiration && this.skipTime < H0) {
|
|
9412
9412
|
this.skipTime += 1;
|
|
9413
9413
|
return;
|
|
9414
9414
|
}
|
|
9415
9415
|
this.requestToken();
|
|
9416
|
-
},
|
|
9416
|
+
}, Ha);
|
|
9417
9417
|
}
|
|
9418
9418
|
clear() {
|
|
9419
9419
|
this.timer && clearInterval(this.timer);
|
|
9420
9420
|
}
|
|
9421
9421
|
};
|
|
9422
|
-
g(
|
|
9423
|
-
let
|
|
9424
|
-
var
|
|
9425
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
9422
|
+
g(ri, "logName", "StsManager");
|
|
9423
|
+
let Ur = ri;
|
|
9424
|
+
var j0 = Object.defineProperty, z0 = Object.getOwnPropertyDescriptor, W0 = (r, a, e, t) => {
|
|
9425
|
+
for (var i = t > 1 ? void 0 : t ? z0(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
9426
9426
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
9427
|
-
return t && i &&
|
|
9427
|
+
return t && i && j0(a, e, i), i;
|
|
9428
9428
|
};
|
|
9429
|
-
class
|
|
9429
|
+
class ns extends De {
|
|
9430
9430
|
constructor(e, t, i, s = pt.prod) {
|
|
9431
9431
|
super();
|
|
9432
9432
|
g(this, "signaling");
|
|
@@ -9438,7 +9438,7 @@ class ss extends De {
|
|
|
9438
9438
|
g(this, "maxConnectRetryCount");
|
|
9439
9439
|
g(this, "stsManager");
|
|
9440
9440
|
g(this, "slsReporter");
|
|
9441
|
-
this.channelProfile = e, this.clientRole = t, this.env = s, this.slsReporter = i, this.stsManager = new
|
|
9441
|
+
this.channelProfile = e, this.clientRole = t, this.env = s, this.slsReporter = i, this.stsManager = new Ur(i, s);
|
|
9442
9442
|
}
|
|
9443
9443
|
reset() {
|
|
9444
9444
|
var e;
|
|
@@ -9451,7 +9451,7 @@ class ss extends De {
|
|
|
9451
9451
|
*/
|
|
9452
9452
|
join(e, t = e.userId, i, s) {
|
|
9453
9453
|
return this.maxConnectRetryCount = i, this.userName = t, new Promise((n, c) => {
|
|
9454
|
-
this.signaling ? c(new F(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new
|
|
9454
|
+
this.signaling ? c(new F(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new F0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i).then((o) => {
|
|
9455
9455
|
this.authInfo = e, s && (s.re = Date.now()), n(o);
|
|
9456
9456
|
}).catch((o) => {
|
|
9457
9457
|
this.reset(), c(o);
|
|
@@ -9641,18 +9641,28 @@ class ss extends De {
|
|
|
9641
9641
|
/**
|
|
9642
9642
|
* @ignore
|
|
9643
9643
|
*/
|
|
9644
|
-
g(
|
|
9645
|
-
|
|
9644
|
+
g(ns, "logName", "SignalingManager");
|
|
9645
|
+
W0([
|
|
9646
9646
|
D(H)
|
|
9647
|
-
],
|
|
9647
|
+
], ns.prototype, "publish", 1);
|
|
9648
|
+
function Kt() {
|
|
9649
|
+
}
|
|
9648
9650
|
const Nt = class Nt {
|
|
9649
9651
|
static getInstance() {
|
|
9650
|
-
|
|
9652
|
+
var a;
|
|
9653
|
+
return Nt.instance || (Nt.instance = new AudioContext()), (a = Nt.instance.resume()) == null || a.then(Kt, Kt).catch(Kt), Nt.instance;
|
|
9651
9654
|
}
|
|
9652
9655
|
};
|
|
9653
9656
|
g(Nt, "instance");
|
|
9654
|
-
let
|
|
9655
|
-
|
|
9657
|
+
let Mt = Nt;
|
|
9658
|
+
const _i = () => {
|
|
9659
|
+
var a;
|
|
9660
|
+
const r = Mt.getInstance();
|
|
9661
|
+
r.state !== "running" && r.state !== "closed" && ((a = r.resume()) == null || a.then(Kt, Kt).catch(Kt)), window.removeEventListener("mousedown", _i), window.removeEventListener("touchstart", _i);
|
|
9662
|
+
};
|
|
9663
|
+
window.addEventListener("mousedown", _i);
|
|
9664
|
+
window.addEventListener("touchend", _i);
|
|
9665
|
+
function $0(r, a, e, t, i) {
|
|
9656
9666
|
let s = t, n = 0, c;
|
|
9657
9667
|
const o = r.createAnalyser();
|
|
9658
9668
|
o.fftSize = 256;
|
|
@@ -9661,7 +9671,7 @@ function z0(r, a, e, t, i) {
|
|
|
9661
9671
|
const h = () => {
|
|
9662
9672
|
c && window.clearInterval(c);
|
|
9663
9673
|
}, p = () => {
|
|
9664
|
-
c = window.setInterval(() => {
|
|
9674
|
+
r.state === "suspended" && r.resume(), c = window.setInterval(() => {
|
|
9665
9675
|
o.getByteFrequencyData(u);
|
|
9666
9676
|
let d = Math.round(u.reduce((f, m) => f + m) / u.length);
|
|
9667
9677
|
d = Math.min(100, d), n = d, i && i(d);
|
|
@@ -9677,14 +9687,14 @@ function z0(r, a, e, t, i) {
|
|
|
9677
9687
|
}
|
|
9678
9688
|
};
|
|
9679
9689
|
}
|
|
9680
|
-
class
|
|
9690
|
+
class K0 extends De {
|
|
9681
9691
|
constructor() {
|
|
9682
9692
|
super();
|
|
9683
9693
|
g(this, "audioContext");
|
|
9684
9694
|
g(this, "stream");
|
|
9685
9695
|
g(this, "sourceNode");
|
|
9686
9696
|
g(this, "analyser");
|
|
9687
|
-
this.audioContext =
|
|
9697
|
+
this.audioContext = Mt.getInstance(), this.stream = new MediaStream();
|
|
9688
9698
|
}
|
|
9689
9699
|
getLevel() {
|
|
9690
9700
|
return this.analyser ? this.analyser.getLevel() : 0;
|
|
@@ -9698,7 +9708,7 @@ class W0 extends De {
|
|
|
9698
9708
|
start(e, t = 1e3) {
|
|
9699
9709
|
this.sourceNode && this.stop(), this.stream.addTrack(e), this.sourceNode = this.audioContext.createMediaStreamSource(this.stream);
|
|
9700
9710
|
const i = this.audioContext.createMediaStreamDestination();
|
|
9701
|
-
this.analyser =
|
|
9711
|
+
this.analyser = $0(this.audioContext, this.sourceNode, i, t, (s) => {
|
|
9702
9712
|
this.emit("audioLevel", s);
|
|
9703
9713
|
});
|
|
9704
9714
|
}
|
|
@@ -9711,7 +9721,7 @@ class W0 extends De {
|
|
|
9711
9721
|
this.stop();
|
|
9712
9722
|
}
|
|
9713
9723
|
}
|
|
9714
|
-
class
|
|
9724
|
+
class bn extends De {
|
|
9715
9725
|
constructor(e, t, i, s) {
|
|
9716
9726
|
super();
|
|
9717
9727
|
g(this, "uid");
|
|
@@ -9721,7 +9731,7 @@ class Sn extends De {
|
|
|
9721
9731
|
// 本地音量检测
|
|
9722
9732
|
g(this, "audioLevelMonitor");
|
|
9723
9733
|
g(this, "audioVolumeIndicationInterval", 0);
|
|
9724
|
-
this.uid = e, this.name = t, this.rtsManager = i, this.audioVolumeIndicationInterval = s, this.audioLevelMonitor = new
|
|
9734
|
+
this.uid = e, this.name = t, this.rtsManager = i, this.audioVolumeIndicationInterval = s, this.audioLevelMonitor = new K0();
|
|
9725
9735
|
}
|
|
9726
9736
|
get userId() {
|
|
9727
9737
|
return this.uid;
|
|
@@ -9754,7 +9764,7 @@ class Sn extends De {
|
|
|
9754
9764
|
this.audioLevelMonitor.dispose();
|
|
9755
9765
|
}
|
|
9756
9766
|
}
|
|
9757
|
-
class
|
|
9767
|
+
class En {
|
|
9758
9768
|
/**
|
|
9759
9769
|
* 将设备状态转换成String通过同名通道发送出去
|
|
9760
9770
|
* @param status
|
|
@@ -9787,19 +9797,19 @@ class vn {
|
|
|
9787
9797
|
};
|
|
9788
9798
|
}
|
|
9789
9799
|
}
|
|
9790
|
-
const
|
|
9800
|
+
const q0 = "customVideoProfile", J0 = "customScreenProfile", Hr = {
|
|
9791
9801
|
width: 1280,
|
|
9792
9802
|
height: 720,
|
|
9793
9803
|
frameRate: 30,
|
|
9794
9804
|
maxBitrate: 2e3
|
|
9795
|
-
},
|
|
9805
|
+
}, ja = {
|
|
9796
9806
|
width: 1920,
|
|
9797
9807
|
height: 1080,
|
|
9798
9808
|
frameRate: 30,
|
|
9799
9809
|
maxBitrate: 2600
|
|
9800
9810
|
};
|
|
9801
|
-
var
|
|
9802
|
-
const
|
|
9811
|
+
var ti = /* @__PURE__ */ ((r) => (r[r.ERROR_DEVICE_UNKNOWNERROR = 1e4] = "ERROR_DEVICE_UNKNOWNERROR", r[r.ERROR_DEVICE_AUDIODEVICE_NOTFOUND = 10001] = "ERROR_DEVICE_AUDIODEVICE_NOTFOUND", r[r.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED = 10002] = "ERROR_DEVICE_AUDIODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_AUDIODEVICE_NOTREADABLE = 10003] = "ERROR_DEVICE_AUDIODEVICE_NOTREADABLE", r[r.ERROR_DEVICE_VIDEODEVICE_NOTFOUND = 10004] = "ERROR_DEVICE_VIDEODEVICE_NOTFOUND", r[r.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED = 10005] = "ERROR_DEVICE_VIDEODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_VIDEODEVICE_NOTREADABLE = 10006] = "ERROR_DEVICE_VIDEODEVICE_NOTREADABLE", r[r.ERROR_SCREENSHARE_NOTSUPPORT = 10010] = "ERROR_SCREENSHARE_NOTSUPPORT", r[r.ERROR_SCREENSHARE_NOTALLOWED = 10011] = "ERROR_SCREENSHARE_NOTALLOWED", r[r.ERROR_SCREENSHARE_ENDED = 10012] = "ERROR_SCREENSHARE_ENDED", r[r.ERROR_SCREENSHARE_NOPERMISSION = 10013] = "ERROR_SCREENSHARE_NOPERMISSION", r[r.ERROR_SCREENSHARE_SAFARI_INVALIDACCESS = 10014] = "ERROR_SCREENSHARE_SAFARI_INVALIDACCESS", r[r.ERROR_SCREENSHARE_UNKNOWNERRO = 10019] = "ERROR_SCREENSHARE_UNKNOWNERRO", r[r.ERROR_DEVICE_NOTSUPPORT = 2e4] = "ERROR_DEVICE_NOTSUPPORT", r))(ti || {});
|
|
9812
|
+
const G0 = {
|
|
9803
9813
|
1e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
|
|
9804
9814
|
2e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
|
|
9805
9815
|
10001: _e.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
|
|
@@ -9816,8 +9826,8 @@ const q0 = {
|
|
|
9816
9826
|
10019: _e.AliEngineLocalDeviceExceptionTypeDisplayException
|
|
9817
9827
|
};
|
|
9818
9828
|
var Je = /* @__PURE__ */ ((r) => (r.CREATE_ENGINE = "create_engine", r.JOIN = "join", r.WANT_INSERT_PUB_TASK = "wantInsertPubTask", r.INSERT_PUB_TASK = "InsertPubTask", r.HANDLE_PUB_TASK = "HandlePubTask", r.RECV_NOTIFY_PUBLISH = "RecvNotifyPublish", r.INSERT_SUB_TASK = "InsertSubTask", r.HANDLE_SUB_TASK = "HandleSubTask", r.FIRST_REMOTE = "first_remote", r))(Je || {}), Xe = /* @__PURE__ */ ((r) => (r.START = "start", r.SEND_SIG = "send_sig", r.RECV_RST = "recv_rst", r.END = "end", r.RECEIVED = "received", r.DECODED = "decoded", r.PLAYED = "played", r))(Xe || {});
|
|
9819
|
-
const
|
|
9820
|
-
function
|
|
9829
|
+
const X0 = (r) => r.getAudioTracks()[0];
|
|
9830
|
+
function za(r) {
|
|
9821
9831
|
var a;
|
|
9822
9832
|
if (((a = r == null ? void 0 : r.nodeName) == null ? void 0 : a.toLowerCase()) === "video")
|
|
9823
9833
|
return r.setAttribute("playsinline", ""), r;
|
|
@@ -9832,19 +9842,19 @@ function Ha(r) {
|
|
|
9832
9842
|
} else
|
|
9833
9843
|
throw new F(U.ERR_INVALID_ARGUMENTS, "element id should be string");
|
|
9834
9844
|
}
|
|
9835
|
-
function
|
|
9845
|
+
function jr(r) {
|
|
9836
9846
|
var e;
|
|
9837
9847
|
const a = [];
|
|
9838
9848
|
if (Array.isArray(r))
|
|
9839
9849
|
r.forEach((t) => {
|
|
9840
9850
|
try {
|
|
9841
|
-
a.push(
|
|
9851
|
+
a.push(za(t));
|
|
9842
9852
|
} catch (i) {
|
|
9843
9853
|
}
|
|
9844
9854
|
});
|
|
9845
9855
|
else if (typeof r == "string" || ((e = r == null ? void 0 : r.nodeName) == null ? void 0 : e.toLowerCase()) === "video")
|
|
9846
9856
|
try {
|
|
9847
|
-
a.push(
|
|
9857
|
+
a.push(za(r));
|
|
9848
9858
|
} catch (t) {
|
|
9849
9859
|
}
|
|
9850
9860
|
return a;
|
|
@@ -9852,7 +9862,7 @@ function Ur(r) {
|
|
|
9852
9862
|
function Et(r) {
|
|
9853
9863
|
return new Promise((a) => setTimeout(a, r));
|
|
9854
9864
|
}
|
|
9855
|
-
function
|
|
9865
|
+
function Wa(r, a, e = 1e3, t = (i) => !0) {
|
|
9856
9866
|
return w(this, null, function* () {
|
|
9857
9867
|
let i = 0, s;
|
|
9858
9868
|
for (; i < a; )
|
|
@@ -9865,7 +9875,7 @@ function ja(r, a, e = 1e3, t = (i) => !0) {
|
|
|
9865
9875
|
}
|
|
9866
9876
|
});
|
|
9867
9877
|
}
|
|
9868
|
-
function
|
|
9878
|
+
function Y0(r, a) {
|
|
9869
9879
|
let e = 0;
|
|
9870
9880
|
const t = [];
|
|
9871
9881
|
for (; e < r.byteLength; ) {
|
|
@@ -9874,7 +9884,7 @@ function G0(r, a) {
|
|
|
9874
9884
|
}
|
|
9875
9885
|
return t;
|
|
9876
9886
|
}
|
|
9877
|
-
function
|
|
9887
|
+
function Z0(r) {
|
|
9878
9888
|
var a, e;
|
|
9879
9889
|
try {
|
|
9880
9890
|
const t = new URL(r), [i, s] = t.pathname.slice(1).split("/"), n = /(\w+)(web\w{5}-\w{4}-\w{4}-\w{4}-\w{12})/.exec(s), c = n == null ? void 0 : n[1], o = n == null ? void 0 : n[2], u = new URLSearchParams(t.search), h = parseInt((e = (a = u.get("auth_key")) == null ? void 0 : a.split("-")[0]) != null ? e : "0") * 1e3;
|
|
@@ -9888,11 +9898,11 @@ function X0(r) {
|
|
|
9888
9898
|
return null;
|
|
9889
9899
|
}
|
|
9890
9900
|
}
|
|
9891
|
-
function
|
|
9901
|
+
function $a(r, a) {
|
|
9892
9902
|
let e = a;
|
|
9893
9903
|
return typeof window.__ali_prefer_media_server == "string" && window.__ali_prefer_media_server !== "" && (e = window.__ali_prefer_media_server), e ? `${r}&ali_prefer_media_server=${e}` : r;
|
|
9894
9904
|
}
|
|
9895
|
-
const
|
|
9905
|
+
const _n = (r, a, e = !1) => {
|
|
9896
9906
|
const t = () => (r.muted = !0, Promise.race([Et(500), r._playPromise || Promise.resolve()]).catch(() => {
|
|
9897
9907
|
}).then(() => {
|
|
9898
9908
|
let i;
|
|
@@ -9921,8 +9931,8 @@ const bn = (r, a, e = !1) => {
|
|
|
9921
9931
|
r.srcObject = null, r._playPromise = void 0;
|
|
9922
9932
|
});
|
|
9923
9933
|
};
|
|
9924
|
-
var
|
|
9925
|
-
class
|
|
9934
|
+
var An = /* @__PURE__ */ ((r) => (r[r.AliEngineDataMsgNone = 0] = "AliEngineDataMsgNone", r[r.AliEngineDataMsgMusicProgress = 1] = "AliEngineDataMsgMusicProgress", r[r.AliEngineDataMsgCustom = 2] = "AliEngineDataMsgCustom", r))(An || {});
|
|
9935
|
+
class Di {
|
|
9926
9936
|
constructor(a, e, t, i = 0) {
|
|
9927
9937
|
g(this, "msgType");
|
|
9928
9938
|
g(this, "msgId");
|
|
@@ -9936,15 +9946,15 @@ class Ii {
|
|
|
9936
9946
|
}
|
|
9937
9947
|
static parse(a) {
|
|
9938
9948
|
const e = new DataView(a), t = e.getUint8(0), i = e.getUint8(1) >> 4, s = e.getUint8(1) & 15, n = e.getUint16(2);
|
|
9939
|
-
return new
|
|
9949
|
+
return new Di(s, n, t, i);
|
|
9940
9950
|
}
|
|
9941
9951
|
}
|
|
9942
9952
|
const Tt = 5;
|
|
9943
|
-
class
|
|
9953
|
+
class xi {
|
|
9944
9954
|
constructor(a, e, t) {
|
|
9945
9955
|
g(this, "_byteArray");
|
|
9946
9956
|
if (this._byteArray = new Uint8Array(0), a !== void 0 && e !== void 0 && t !== void 0) {
|
|
9947
|
-
const s = new
|
|
9957
|
+
const s = new Di(a, e, t).build();
|
|
9948
9958
|
this._byteArray = new Uint8Array(s.byteLength + this._byteArray.byteLength), this._byteArray.set(s, 0);
|
|
9949
9959
|
}
|
|
9950
9960
|
}
|
|
@@ -9971,7 +9981,7 @@ class mi {
|
|
|
9971
9981
|
return this._byteArray.buffer;
|
|
9972
9982
|
}
|
|
9973
9983
|
}
|
|
9974
|
-
class
|
|
9984
|
+
class ci {
|
|
9975
9985
|
constructor(a = 0, e = !0, t = 1, i = !1, s = 0, n = !1, c = !1, o = 3) {
|
|
9976
9986
|
g(this, "_fin", !0);
|
|
9977
9987
|
g(this, "_hasExtension", !1);
|
|
@@ -10019,7 +10029,7 @@ class oi {
|
|
|
10019
10029
|
}
|
|
10020
10030
|
static parse(a) {
|
|
10021
10031
|
const e = new DataView(a), t = e.getUint8(0) >> 7 === 1, i = (e.getUint8(0) & 64) >> 6 === 1, s = (e.getUint8(0) & 48) >> 4, n = e.getUint8(0) & 15, c = e.getUint8(1) >> 7 === 1, o = (e.getUint8(1) & 64) >> 6 === 1, u = e.getUint8(1) & 15, h = e.getUint16(2);
|
|
10022
|
-
return new
|
|
10032
|
+
return new ci(
|
|
10023
10033
|
h,
|
|
10024
10034
|
t,
|
|
10025
10035
|
n,
|
|
@@ -10031,10 +10041,10 @@ class oi {
|
|
|
10031
10041
|
);
|
|
10032
10042
|
}
|
|
10033
10043
|
}
|
|
10034
|
-
class
|
|
10044
|
+
class Ti {
|
|
10035
10045
|
constructor(a, e) {
|
|
10036
10046
|
g(this, "_body");
|
|
10037
|
-
g(this, "_header", new
|
|
10047
|
+
g(this, "_header", new ci());
|
|
10038
10048
|
this._header = a, this._body = e;
|
|
10039
10049
|
}
|
|
10040
10050
|
get header() {
|
|
@@ -10053,20 +10063,20 @@ class wi {
|
|
|
10053
10063
|
return i.set(new Uint8Array(t), 0), i.set(new Uint8Array(a), t.byteLength), i.set(new Uint8Array(e), t.byteLength + a.byteLength), i.buffer;
|
|
10054
10064
|
}
|
|
10055
10065
|
static parse(a) {
|
|
10056
|
-
const e = a.slice(0, 4), t =
|
|
10066
|
+
const e = a.slice(0, 4), t = ci.parse(e);
|
|
10057
10067
|
let i = new ArrayBuffer(0);
|
|
10058
|
-
return a.byteLength - 4 >= t.payloadLength && (i = a.slice(4, 4 + t.payloadLength)), new
|
|
10068
|
+
return a.byteLength - 4 >= t.payloadLength && (i = a.slice(4, 4 + t.payloadLength)), new Ti(t, i);
|
|
10059
10069
|
}
|
|
10060
10070
|
}
|
|
10061
|
-
const
|
|
10071
|
+
const Br = (r) => {
|
|
10062
10072
|
const a = r.byteLength, e = new DataView(r);
|
|
10063
10073
|
let t = 0;
|
|
10064
10074
|
for (let i = 0; i < a; i++)
|
|
10065
10075
|
t = t * 256 + e.getUint8(i);
|
|
10066
10076
|
return t;
|
|
10067
10077
|
};
|
|
10068
|
-
let
|
|
10069
|
-
class
|
|
10078
|
+
let Ka = 0;
|
|
10079
|
+
class qt {
|
|
10070
10080
|
constructor(a, e = 0, t = 0, i = 0) {
|
|
10071
10081
|
g(this, "data");
|
|
10072
10082
|
g(this, "networkTime");
|
|
@@ -10075,9 +10085,9 @@ class Kt {
|
|
|
10075
10085
|
this.data = a, this.type = e, this.networkTime = t, this.futureOrProgress = i;
|
|
10076
10086
|
}
|
|
10077
10087
|
toBuffer() {
|
|
10078
|
-
const a = new
|
|
10079
|
-
a.write(1, Uint8Array.from([0]).buffer), a.write(2, Uint16Array.from([0]).buffer),
|
|
10080
|
-
const e = new
|
|
10088
|
+
const a = new xi(0, 0, 0);
|
|
10089
|
+
a.write(1, Uint8Array.from([0]).buffer), a.write(2, Uint16Array.from([0]).buffer), Ka++, a.write(3, Uint32Array.from([Ka]).buffer);
|
|
10090
|
+
const e = new xi();
|
|
10081
10091
|
return e.write(1, Uint8Array.from([0]).buffer), e.write(2, Uint8Array.from([this.type]).buffer), e.write(3, Uint32Array.from([this.futureOrProgress]).buffer), e.write(
|
|
10082
10092
|
4,
|
|
10083
10093
|
Uint32Array.from([Number(this.networkTime >> 32 & 4294967295), Number(this.networkTime & 4294967295)]).buffer
|
|
@@ -10086,14 +10096,14 @@ class Kt {
|
|
|
10086
10096
|
static parse(a) {
|
|
10087
10097
|
if (!a || a.byteLength < 4)
|
|
10088
10098
|
return;
|
|
10089
|
-
|
|
10090
|
-
const t =
|
|
10099
|
+
Di.parse(a.slice(0, 4));
|
|
10100
|
+
const t = xi.parse(a.slice(4))[
|
|
10091
10101
|
30
|
|
10092
10102
|
/* TLV_TAG_Music */
|
|
10093
10103
|
];
|
|
10094
10104
|
if (!t)
|
|
10095
10105
|
return;
|
|
10096
|
-
const i =
|
|
10106
|
+
const i = xi.parse(t), s = i[
|
|
10097
10107
|
2
|
|
10098
10108
|
/* TLV_TAG_Command */
|
|
10099
10109
|
], n = i[
|
|
@@ -10107,21 +10117,21 @@ class Kt {
|
|
|
10107
10117
|
/* TLV_TAG_UserMsg */
|
|
10108
10118
|
];
|
|
10109
10119
|
if (o.byteLength !== 0)
|
|
10110
|
-
return new
|
|
10120
|
+
return new qt(
|
|
10111
10121
|
o,
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10122
|
+
Br(s),
|
|
10123
|
+
Br(c),
|
|
10124
|
+
Br(n)
|
|
10115
10125
|
);
|
|
10116
10126
|
}
|
|
10117
10127
|
}
|
|
10118
|
-
var
|
|
10119
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
10128
|
+
var Q0 = Object.defineProperty, ec = Object.getOwnPropertyDescriptor, me = (r, a, e, t) => {
|
|
10129
|
+
for (var i = t > 1 ? void 0 : t ? ec(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
10120
10130
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
10121
|
-
return t && i &&
|
|
10131
|
+
return t && i && Q0(a, e, i), i;
|
|
10122
10132
|
};
|
|
10123
|
-
const
|
|
10124
|
-
class
|
|
10133
|
+
const qa = 30;
|
|
10134
|
+
class Qt extends De {
|
|
10125
10135
|
constructor() {
|
|
10126
10136
|
super();
|
|
10127
10137
|
g(this, "_state");
|
|
@@ -10137,7 +10147,7 @@ class Zt extends De {
|
|
|
10137
10147
|
}
|
|
10138
10148
|
}
|
|
10139
10149
|
var lt;
|
|
10140
|
-
const ge = (lt = class extends
|
|
10150
|
+
const ge = (lt = class extends bn {
|
|
10141
10151
|
constructor(e) {
|
|
10142
10152
|
const { rtsManager: t, localStreamManager: i, slsReporter: s, signalingManager: n, audioVolumeIndicationInterval: c, parameter: o } = e;
|
|
10143
10153
|
super("", "", t, c);
|
|
@@ -10179,15 +10189,15 @@ const ge = (lt = class extends Sn {
|
|
|
10179
10189
|
this.onTrackEnd(u);
|
|
10180
10190
|
}), this.streamManager.on("publishupdate", () => {
|
|
10181
10191
|
this.publishUpdate();
|
|
10182
|
-
}), this.audioPubState = new
|
|
10192
|
+
}), this.audioPubState = new Qt(), this.audioPubState.on("change", (u, h, p) => {
|
|
10183
10193
|
this.emit("audioPublishStateChanged", u, h, p);
|
|
10184
|
-
}), this.videoPubState = new
|
|
10194
|
+
}), this.videoPubState = new Qt(), this.videoPubState.on("change", (u, h, p) => {
|
|
10185
10195
|
this.emit("videoPublishStateChanged", u, h, p);
|
|
10186
|
-
}), this.videoSmallPubState = new
|
|
10196
|
+
}), this.videoSmallPubState = new Qt(), this.videoSmallPubState.on("change", (u, h, p) => {
|
|
10187
10197
|
this.emit("dualStreamPublishStateChanged", u, h, p);
|
|
10188
|
-
}), this.screenPubState = new
|
|
10198
|
+
}), this.screenPubState = new Qt(), this.screenPubState.on("change", (u, h, p) => {
|
|
10189
10199
|
this.emit("screenPublishStateChanged", u, h, p);
|
|
10190
|
-
}), this.dataPubState = new
|
|
10200
|
+
}), this.dataPubState = new Qt(), this.dataPubState.on("change", (u, h, p) => {
|
|
10191
10201
|
this.emit("dataPublishStateChanged", u, h, p);
|
|
10192
10202
|
}), this.startStreamMonitor();
|
|
10193
10203
|
}
|
|
@@ -10280,7 +10290,7 @@ const ge = (lt = class extends Sn {
|
|
|
10280
10290
|
}
|
|
10281
10291
|
setVideoProfile(e) {
|
|
10282
10292
|
return w(this, null, function* () {
|
|
10283
|
-
yield this.streamManager.setVideoProfile(
|
|
10293
|
+
yield this.streamManager.setVideoProfile(q0, e);
|
|
10284
10294
|
});
|
|
10285
10295
|
}
|
|
10286
10296
|
setVideoContentHint(e) {
|
|
@@ -10296,15 +10306,15 @@ const ge = (lt = class extends Sn {
|
|
|
10296
10306
|
}
|
|
10297
10307
|
setScreenProfile(e) {
|
|
10298
10308
|
return w(this, null, function* () {
|
|
10299
|
-
yield this.streamManager.setScreenProfile(
|
|
10309
|
+
yield this.streamManager.setScreenProfile(J0, e);
|
|
10300
10310
|
});
|
|
10301
10311
|
}
|
|
10302
10312
|
setCameraDirection(e) {
|
|
10303
|
-
if (e ===
|
|
10313
|
+
if (e === oi.CAMERA_FRONT)
|
|
10304
10314
|
this.streamManager.setCameraVideoConstraints({
|
|
10305
10315
|
facingMode: "user"
|
|
10306
10316
|
});
|
|
10307
|
-
else if (e ===
|
|
10317
|
+
else if (e === oi.CAMERA_REAR)
|
|
10308
10318
|
this.streamManager.setCameraVideoConstraints({
|
|
10309
10319
|
facingMode: "environment"
|
|
10310
10320
|
});
|
|
@@ -10347,7 +10357,7 @@ const ge = (lt = class extends Sn {
|
|
|
10347
10357
|
}
|
|
10348
10358
|
clear() {
|
|
10349
10359
|
return w(this, null, function* () {
|
|
10350
|
-
|
|
10360
|
+
Ni(lt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
|
|
10351
10361
|
});
|
|
10352
10362
|
}
|
|
10353
10363
|
resetElement(e) {
|
|
@@ -10366,7 +10376,7 @@ const ge = (lt = class extends Sn {
|
|
|
10366
10376
|
} catch (n) {
|
|
10367
10377
|
const c = n.errorCode;
|
|
10368
10378
|
let o = U.ERR_CAMERA_OPEN_FAIL;
|
|
10369
|
-
throw c ===
|
|
10379
|
+
throw c === ti.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? o = U.ERR_CAMERA_NOT_AVAILABLE : c === ti.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (o = U.ERR_CAMERA_AUTH_FAIL), new F(o, `camera open fail: ${n.message}`);
|
|
10370
10380
|
}
|
|
10371
10381
|
});
|
|
10372
10382
|
}
|
|
@@ -10379,7 +10389,7 @@ const ge = (lt = class extends Sn {
|
|
|
10379
10389
|
} catch (s) {
|
|
10380
10390
|
const n = s.errorCode;
|
|
10381
10391
|
let c = U.ERR_MIC_OPEN_FAIL;
|
|
10382
|
-
throw n ===
|
|
10392
|
+
throw n === ti.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? c = U.ERR_MIC_NOT_AVAILABLE : n === ti.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (c = U.ERR_MIC_AUTH_FAIL), new F(c, `mic open fail: ${s.message}`);
|
|
10383
10393
|
}
|
|
10384
10394
|
});
|
|
10385
10395
|
}
|
|
@@ -10449,7 +10459,7 @@ const ge = (lt = class extends Sn {
|
|
|
10449
10459
|
O.info(`[${lt.logName}]`, "preview no stream founded");
|
|
10450
10460
|
return;
|
|
10451
10461
|
}
|
|
10452
|
-
return
|
|
10462
|
+
return _n(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
|
|
10453
10463
|
} catch (s) {
|
|
10454
10464
|
const n = U.ERR_INNER;
|
|
10455
10465
|
throw F.fromError(s, n, "preview failed");
|
|
@@ -10514,7 +10524,7 @@ const ge = (lt = class extends Sn {
|
|
|
10514
10524
|
const t = yield this.streamManager.createLocalStream(e);
|
|
10515
10525
|
return t != null && t.audioTrack && this.audioVolumeIndicationInterval > 0 && this.audioLevelMonitor.start(t.audioTrack, this.audioVolumeIndicationInterval), e.video ? this.previewAll({ primary: !0 }) : e.screen && this.previewAll({ screen: !0 }), t;
|
|
10516
10526
|
} catch (t) {
|
|
10517
|
-
const i =
|
|
10527
|
+
const i = G0[t.errorCode];
|
|
10518
10528
|
throw i && (e.audio ? this.emit(
|
|
10519
10529
|
"localDeviceException",
|
|
10520
10530
|
dt.AliEngineLocalDeviceTypeMic,
|
|
@@ -10901,7 +10911,7 @@ const ge = (lt = class extends Sn {
|
|
|
10901
10911
|
* 事件通知本地的设备使用状态
|
|
10902
10912
|
*/
|
|
10903
10913
|
reportSelfDeviceStatus() {
|
|
10904
|
-
this.emit(
|
|
10914
|
+
this.emit(Me.Local, this.getDeviceStatus());
|
|
10905
10915
|
}
|
|
10906
10916
|
/**
|
|
10907
10917
|
* 从localStream 中获取当前的设备状态
|
|
@@ -10920,7 +10930,7 @@ const ge = (lt = class extends Sn {
|
|
|
10920
10930
|
backgroundMode: !1,
|
|
10921
10931
|
accompanyPlaying: !1
|
|
10922
10932
|
};
|
|
10923
|
-
return e.cameraOpen = this.hasCamera, e.micOpen = this.hasMicrophone, e.screenShare = this.hasScreenShare, e.audioDisable = !((t = this.streamManager.cameraStreamInfo.originAudioTrack) != null && t.enabled), e.videoDisable = !((i = this.streamManager.cameraStreamInfo.originVideoTrack) != null && i.enabled), e.screenDisable = !this.hasScreenShare || !((n = (s = this.streamManager.screenStreamInfo) == null ? void 0 : s.originVideoTrack) != null && n.enabled),
|
|
10933
|
+
return e.cameraOpen = this.hasCamera, e.micOpen = this.hasMicrophone, e.screenShare = this.hasScreenShare, e.audioDisable = !((t = this.streamManager.cameraStreamInfo.originAudioTrack) != null && t.enabled), e.videoDisable = !((i = this.streamManager.cameraStreamInfo.originVideoTrack) != null && i.enabled), e.screenDisable = !this.hasScreenShare || !((n = (s = this.streamManager.screenStreamInfo) == null ? void 0 : s.originVideoTrack) != null && n.enabled), En.getCurrentStatus(e);
|
|
10924
10934
|
}
|
|
10925
10935
|
resetPreviewElements() {
|
|
10926
10936
|
this.previewElements.forEach((e) => {
|
|
@@ -10974,7 +10984,7 @@ const ge = (lt = class extends Sn {
|
|
|
10974
10984
|
const t = this.candidateDataCache[this.candidateDataCache.length - 1] || {}, { _last: h } = t;
|
|
10975
10985
|
c = wt(t, ["_last"]);
|
|
10976
10986
|
}
|
|
10977
|
-
((i = this.candidateDataCache) == null ? void 0 : i.length) >=
|
|
10987
|
+
((i = this.candidateDataCache) == null ? void 0 : i.length) >= qa && this.reportNetwork(), n && (n._last = c, this.candidateDataCache.push(n));
|
|
10978
10988
|
let o = Object.keys(this.monitorDataCache).filter((u) => {
|
|
10979
10989
|
var h;
|
|
10980
10990
|
return ((h = this.monitorDataCache[u]) == null ? void 0 : h.length) > 0;
|
|
@@ -10997,7 +11007,7 @@ const ge = (lt = class extends Sn {
|
|
|
10997
11007
|
const v = l[l.length - 1] || {}, { _last: b } = v;
|
|
10998
11008
|
x = wt(v, ["_last"]);
|
|
10999
11009
|
}
|
|
11000
|
-
(l == null ? void 0 : l.length) >=
|
|
11010
|
+
(l == null ? void 0 : l.length) >= qa && this.reportPublishMonitor(h), f._last = x, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
|
|
11001
11011
|
});
|
|
11002
11012
|
}), o.forEach((u) => {
|
|
11003
11013
|
this.reportPublishMonitor(u);
|
|
@@ -11055,10 +11065,10 @@ const ge = (lt = class extends Sn {
|
|
|
11055
11065
|
throw new F(U.ERR_INNER, "data channel publish is not enabled");
|
|
11056
11066
|
if (!this.dc)
|
|
11057
11067
|
throw new F(U.ERR_INNER, "data channel is not ready");
|
|
11058
|
-
const t = e.toBuffer(), i =
|
|
11068
|
+
const t = e.toBuffer(), i = Y0(t, 1156);
|
|
11059
11069
|
i.forEach((n, c) => {
|
|
11060
|
-
const o = new
|
|
11061
|
-
new
|
|
11070
|
+
const o = new Ti(
|
|
11071
|
+
new ci(n.byteLength, c === i.length - 1, c === 0 ? 1 : 0),
|
|
11062
11072
|
n
|
|
11063
11073
|
);
|
|
11064
11074
|
this.dc.send(o.toGRTNBuffer());
|
|
@@ -11070,7 +11080,7 @@ const ge = (lt = class extends Sn {
|
|
|
11070
11080
|
const e = [];
|
|
11071
11081
|
if (this.hasAudioTrackInMS) {
|
|
11072
11082
|
const n = yield this.rtsManager.getPublishAudioStats(this.url);
|
|
11073
|
-
n && e.push({ stats: n, track:
|
|
11083
|
+
n && e.push({ stats: n, track: Xt.AliRtcAudioTrackMic });
|
|
11074
11084
|
}
|
|
11075
11085
|
const t = [];
|
|
11076
11086
|
if (this.hasCameraTrackInMS) {
|
|
@@ -11179,31 +11189,31 @@ me([
|
|
|
11179
11189
|
me([
|
|
11180
11190
|
D(([r, a, e]) => [r.length, a, e])
|
|
11181
11191
|
], ge.prototype, "sendSEI", 1);
|
|
11182
|
-
let
|
|
11183
|
-
var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}),
|
|
11184
|
-
const
|
|
11192
|
+
let tc = ge;
|
|
11193
|
+
var vt = /* @__PURE__ */ ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(vt || {}), re = /* @__PURE__ */ ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(re || {}), Vt = /* @__PURE__ */ ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(Vt || {});
|
|
11194
|
+
const ic = (r) => {
|
|
11185
11195
|
const a = new MediaStream();
|
|
11186
11196
|
return a.addTrack(r), a;
|
|
11187
|
-
},
|
|
11197
|
+
}, yn = (r) => w(void 0, null, function* () {
|
|
11188
11198
|
return yield le.createStream({
|
|
11189
11199
|
custom: !0,
|
|
11190
11200
|
mediaStream: r
|
|
11191
11201
|
});
|
|
11192
|
-
}),
|
|
11193
|
-
const a =
|
|
11194
|
-
return yield
|
|
11195
|
-
}),
|
|
11202
|
+
}), ei = (r) => w(void 0, null, function* () {
|
|
11203
|
+
const a = ic(r);
|
|
11204
|
+
return yield yn(a);
|
|
11205
|
+
}), rc = (r) => {
|
|
11196
11206
|
const { audio: a, video: e, screen: t } = r;
|
|
11197
11207
|
if (e && t)
|
|
11198
11208
|
throw new F(U.ERR_INNER, "create stream error, cannot create video && screen together");
|
|
11199
11209
|
return !(!e && !a && !t);
|
|
11200
|
-
},
|
|
11201
|
-
var
|
|
11202
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
11210
|
+
}, sc = (r) => r === T.Audio || r === Jr.Audio, ac = (r) => r === T.VideoLarge || r === Jr.VideoLarge, nc = (r) => r === T.VideoSmall, oc = (r) => r === T.Screen, cc = (r) => r === T.Data;
|
|
11211
|
+
var uc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor, dc = (r, a, e, t) => {
|
|
11212
|
+
for (var i = t > 1 ? void 0 : t ? hc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
11203
11213
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
11204
|
-
return t && i &&
|
|
11214
|
+
return t && i && uc(a, e, i), i;
|
|
11205
11215
|
};
|
|
11206
|
-
class
|
|
11216
|
+
class Ai extends De {
|
|
11207
11217
|
constructor() {
|
|
11208
11218
|
super();
|
|
11209
11219
|
g(this, "audioInfo", {
|
|
@@ -11390,7 +11400,7 @@ class Ei extends De {
|
|
|
11390
11400
|
return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : vt.UNKNOWN;
|
|
11391
11401
|
}
|
|
11392
11402
|
get audioTrackInfo() {
|
|
11393
|
-
return this.hasAudio ?
|
|
11403
|
+
return this.hasAudio ? Xt.AliRtcAudioTrackMic : Xt.AliRtcAudioTrackNo;
|
|
11394
11404
|
}
|
|
11395
11405
|
get videoTrackInfo() {
|
|
11396
11406
|
return this.hasVideo && this.hasScreen ? se.AliRtcVideoTrackBoth : this.hasVideo ? se.AliRtcVideoTrackCamera : this.hasScreen ? se.AliRtcVideoTrackScreen : se.AliRtcVideoTrackNo;
|
|
@@ -11406,7 +11416,7 @@ class Ei extends De {
|
|
|
11406
11416
|
const { codec: d } = JSON.parse(o.userdata);
|
|
11407
11417
|
d && (u = d);
|
|
11408
11418
|
}
|
|
11409
|
-
|
|
11419
|
+
sc(o.msid) ? (t = o.ssrc, this.audioInfo.msid = o.msid, this.audioInfo.codec = u, (h || this.audioInfo.ssrc !== t) && (this.audioInfo.subscribeState = re.NotSubscribe)) : nc(o.msid) ? (s = o.ssrc, this.videoSmallInfo.msid = o.msid, this.videoSmallInfo.codec = u, (h || this.videoSmallInfo.ssrc !== s) && (this.videoSmallInfo.subscribeState = re.NotSubscribe)) : ac(o.msid) ? (i = o.ssrc, this.videoLargeInfo.msid = o.msid, this.videoLargeInfo.codec = u, (h || this.videoLargeInfo.ssrc !== i) && (this.videoLargeInfo.subscribeState = re.NotSubscribe)) : oc(o.msid) ? (n = o.ssrc, this.screenInfo.msid = o.msid, this.screenInfo.codec = u, (h || this.screenInfo.ssrc !== n) && (this.screenInfo.subscribeState = re.NotSubscribe)) : cc(o.msid) && (c = o.ssrc, this.dataInfo.msid = o.msid, this.dataInfo.codec = u, (h || this.dataInfo.ssrc !== c) && (this.dataInfo.subscribeState = re.NotSubscribe));
|
|
11410
11420
|
}), this.updateRemoteTrackSsrc(t, i, s, n, c)) : this.updateRemoteTrackSsrc(t, i, s, n, c), {};
|
|
11411
11421
|
}
|
|
11412
11422
|
updateRemoteTrackSsrc(e, t, i, s, n) {
|
|
@@ -11433,19 +11443,19 @@ class Ei extends De {
|
|
|
11433
11443
|
* @returns {boolean} 状态改变返回true,否则返回false
|
|
11434
11444
|
*/
|
|
11435
11445
|
updateRemoteUserDeviceStatus(e) {
|
|
11436
|
-
let t =
|
|
11446
|
+
let t = En.parseStatus(e);
|
|
11437
11447
|
const { audioDisable: i, videoDisable: s, screenDisable: n } = t;
|
|
11438
|
-
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(
|
|
11448
|
+
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Me.Remote, i ? oe.MuteAudio : oe.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Me.Remote, s ? oe.MuteVideo : oe.UnmuteVideo)), this.userStatus.screenDisable != n && (this.userStatus.screenDisable = n, this.emit(Me.Remote, n ? oe.MuteScreen : oe.UnmuteScreen))) : (this.userStatus = t, this.emit(Me.Remote, i ? oe.MuteAudio : oe.UnmuteAudio), this.emit(Me.Remote, s ? oe.MuteVideo : oe.UnmuteVideo), this.emit(Me.Remote, n ? oe.MuteScreen : oe.UnmuteScreen)), !1;
|
|
11439
11449
|
}
|
|
11440
11450
|
}
|
|
11441
11451
|
/**
|
|
11442
11452
|
* @ignore
|
|
11443
11453
|
*/
|
|
11444
|
-
g(
|
|
11445
|
-
|
|
11454
|
+
g(Ai, "logName", "RemoteStreamInfo");
|
|
11455
|
+
dc([
|
|
11446
11456
|
D()
|
|
11447
|
-
],
|
|
11448
|
-
class
|
|
11457
|
+
], Ai.prototype, "updateRemoteTrackSubState", 1);
|
|
11458
|
+
class lc {
|
|
11449
11459
|
constructor(a) {
|
|
11450
11460
|
g(this, "remoteUser");
|
|
11451
11461
|
this.remoteUser = a;
|
|
@@ -11493,12 +11503,12 @@ class hc {
|
|
|
11493
11503
|
return this.remoteUser.getAudioElement();
|
|
11494
11504
|
}
|
|
11495
11505
|
}
|
|
11496
|
-
var
|
|
11497
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
11506
|
+
var fc = Object.defineProperty, pc = Object.getOwnPropertyDescriptor, Te = (r, a, e, t) => {
|
|
11507
|
+
for (var i = t > 1 ? void 0 : t ? pc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
11498
11508
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
11499
|
-
return t && i &&
|
|
11509
|
+
return t && i && fc(a, e, i), i;
|
|
11500
11510
|
};
|
|
11501
|
-
class
|
|
11511
|
+
class zt extends De {
|
|
11502
11512
|
constructor() {
|
|
11503
11513
|
super();
|
|
11504
11514
|
g(this, "state");
|
|
@@ -11522,9 +11532,9 @@ class jt extends De {
|
|
|
11522
11532
|
this._enabled = e;
|
|
11523
11533
|
}
|
|
11524
11534
|
}
|
|
11525
|
-
const
|
|
11526
|
-
var
|
|
11527
|
-
const Ce = (
|
|
11535
|
+
const gc = 30;
|
|
11536
|
+
var Le;
|
|
11537
|
+
const Ce = (Le = class extends bn {
|
|
11528
11538
|
constructor(e) {
|
|
11529
11539
|
var f;
|
|
11530
11540
|
const {
|
|
@@ -11566,8 +11576,8 @@ const Ce = (Me = class extends Sn {
|
|
|
11566
11576
|
g(this, "playoutGainNode");
|
|
11567
11577
|
g(this, "audioSubState");
|
|
11568
11578
|
g(this, "videoSubState");
|
|
11569
|
-
g(this, "videoLargeSubState", new
|
|
11570
|
-
g(this, "videoSmallSubState", new
|
|
11579
|
+
g(this, "videoLargeSubState", new zt());
|
|
11580
|
+
g(this, "videoSmallSubState", new zt());
|
|
11571
11581
|
g(this, "screenSubState");
|
|
11572
11582
|
// DataChannel 通道相关
|
|
11573
11583
|
g(this, "dataSubState");
|
|
@@ -11585,7 +11595,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11585
11595
|
});
|
|
11586
11596
|
g(this, "onDataChannelMessage", (e) => {
|
|
11587
11597
|
var s;
|
|
11588
|
-
const t =
|
|
11598
|
+
const t = Ti.parse(e.slice(4));
|
|
11589
11599
|
let i;
|
|
11590
11600
|
if (t.body)
|
|
11591
11601
|
if (t.isFin) {
|
|
@@ -11601,14 +11611,14 @@ const Ce = (Me = class extends Sn {
|
|
|
11601
11611
|
const p = this.dcMsgWaitingPieces[h];
|
|
11602
11612
|
new Uint8Array(c, o, p.byteLength).set(new Uint8Array(p)), o += p.byteLength;
|
|
11603
11613
|
}
|
|
11604
|
-
new Uint8Array(c, o, t.body.byteLength).set(new Uint8Array(t.body)), i =
|
|
11614
|
+
new Uint8Array(c, o, t.body.byteLength).set(new Uint8Array(t.body)), i = qt.parse(c);
|
|
11605
11615
|
} catch (c) {
|
|
11606
11616
|
}
|
|
11607
|
-
this.dcMsgWaitingPieces = [], i || (i =
|
|
11617
|
+
this.dcMsgWaitingPieces = [], i || (i = qt.parse(t.body));
|
|
11608
11618
|
} else
|
|
11609
|
-
i =
|
|
11619
|
+
i = qt.parse(t.body);
|
|
11610
11620
|
i || O.event(
|
|
11611
|
-
`[${
|
|
11621
|
+
`[${Le.logName}]`,
|
|
11612
11622
|
`parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`
|
|
11613
11623
|
);
|
|
11614
11624
|
} else {
|
|
@@ -11616,7 +11626,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11616
11626
|
return;
|
|
11617
11627
|
}
|
|
11618
11628
|
i && (O.event(
|
|
11619
|
-
`[${
|
|
11629
|
+
`[${Le.logName}]`,
|
|
11620
11630
|
`receive data channel message, length: ${(s = i.data) == null ? void 0 : s.byteLength}`
|
|
11621
11631
|
), this.emit("remoteDataChannelMessage", this.uid, i));
|
|
11622
11632
|
});
|
|
@@ -11629,15 +11639,15 @@ const Ce = (Me = class extends Sn {
|
|
|
11629
11639
|
g(this, "handleAudioPaused", () => {
|
|
11630
11640
|
this.emit("remoteAudioPlayError", this.uid, "paused");
|
|
11631
11641
|
});
|
|
11632
|
-
this.streamInfo = new
|
|
11633
|
-
this.emit(
|
|
11634
|
-
}), this.signalingManager = o, this.viewMap = (f = n[t]) != null ? f : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new
|
|
11642
|
+
this.streamInfo = new Ai(), this.remoteUserInfo = new lc(this), this.parameter = d, this.streamInfo.on(Me.Remote, (m) => {
|
|
11643
|
+
this.emit(Me.Remote, m, this.userId);
|
|
11644
|
+
}), this.signalingManager = o, this.viewMap = (f = n[t]) != null ? f : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new zt(), this.audioSubState.on("change", (m, l, x) => {
|
|
11635
11645
|
this.emit("audioSubscribeStateChanged", this.uid, m, l, x);
|
|
11636
|
-
}), this.videoSubState = new
|
|
11646
|
+
}), this.videoSubState = new zt(), this.videoSubState.on("change", (m, l, x) => {
|
|
11637
11647
|
this.emit("videoSubscribeStateChanged", this.uid, m, l, x);
|
|
11638
|
-
}), this.screenSubState = new
|
|
11648
|
+
}), this.screenSubState = new zt(), this.screenSubState.on("change", (m, l, x) => {
|
|
11639
11649
|
this.emit("screenSubscribeStateChanged", this.uid, m, l, x);
|
|
11640
|
-
}), this.dataSubState = new
|
|
11650
|
+
}), this.dataSubState = new zt(), this.dataSubState.on("change", (m, l, x) => {
|
|
11641
11651
|
this.emit("dataSubscribeStateChanged", this.uid, m, l, x);
|
|
11642
11652
|
}), this.playoutVolume = p;
|
|
11643
11653
|
}
|
|
@@ -11682,7 +11692,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11682
11692
|
else {
|
|
11683
11693
|
const t = this.audioElement.srcObject;
|
|
11684
11694
|
if (t) {
|
|
11685
|
-
const i =
|
|
11695
|
+
const i = Mt.getInstance();
|
|
11686
11696
|
i.addEventListener("statechange", this.handleAudioContextSuspended);
|
|
11687
11697
|
const s = i.createMediaStreamSource(t);
|
|
11688
11698
|
this.audioElement.muted = !0, this.playoutGainNode = i.createGain(), s.connect(this.playoutGainNode), this.playoutGainNode.gain.value = e, this.playoutGainNode.connect(i.destination);
|
|
@@ -11765,14 +11775,14 @@ const Ce = (Me = class extends Sn {
|
|
|
11765
11775
|
U.ERR_INVALID_ARGUMENTS,
|
|
11766
11776
|
"track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
|
|
11767
11777
|
);
|
|
11768
|
-
e ?
|
|
11778
|
+
e ? jr(e).forEach((s) => {
|
|
11769
11779
|
s.setAttribute("playsinline", ""), le.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), le.SystenUtil.isAndroid || le.SystenUtil.isIos && s.setAttribute("x-webkit-airplay", "allow")), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews.push(s) : this.viewMap.cameraViews.push(s), this.play(s, t === se.AliRtcVideoTrackScreen);
|
|
11770
11780
|
}) : (this.stopPlayAll(t === se.AliRtcVideoTrackScreen), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
|
|
11771
11781
|
}
|
|
11772
11782
|
clear(e = !0) {
|
|
11773
11783
|
return w(this, null, function* () {
|
|
11774
11784
|
var t;
|
|
11775
|
-
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl),
|
|
11785
|
+
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ni(Le.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, Mt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Me.Remote);
|
|
11776
11786
|
});
|
|
11777
11787
|
}
|
|
11778
11788
|
updateRemoteUserDeviceStatus(e) {
|
|
@@ -11782,7 +11792,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11782
11792
|
updateRemoteTracks(e, t, i, s) {
|
|
11783
11793
|
return w(this, null, function* () {
|
|
11784
11794
|
var c;
|
|
11785
|
-
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new
|
|
11795
|
+
return this.remoteCallid = e, (!this.streamUrl || !this.streamInfo.hasTrack) && (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Ai()), (c = this.streamInfo) == null ? void 0 : c.updateTracks(s);
|
|
11786
11796
|
});
|
|
11787
11797
|
}
|
|
11788
11798
|
subscribe(s, n) {
|
|
@@ -11930,7 +11940,7 @@ const Ce = (Me = class extends Sn {
|
|
|
11930
11940
|
}
|
|
11931
11941
|
resumeAudio() {
|
|
11932
11942
|
return w(this, null, function* () {
|
|
11933
|
-
const e =
|
|
11943
|
+
const e = Mt.getInstance();
|
|
11934
11944
|
return e.state !== "running" && e.resume(), this.audioElement ? this.audioElement.play() : this.playAudio();
|
|
11935
11945
|
});
|
|
11936
11946
|
}
|
|
@@ -12073,7 +12083,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12073
12083
|
var n, c, o, u, h, p, d, f, m, l, x, v, S, b, E, _, y;
|
|
12074
12084
|
const t = Date.now(), i = {}, s = {};
|
|
12075
12085
|
if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || T.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || T.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((p = this.streamInfo) != null && p.hasVideoSmall) ? (i.video = !0, i.vMsid = T.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || T.VideoLarge), this.defaultVideoStreamType === we.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = T.VideoLarge) : this.defaultVideoStreamType === we.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = T.VideoSmall)) : (!this.wantSubVideo || !((m = this.streamInfo) != null && m.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? T.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || T.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((x = this.streamInfo) != null && x.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (S = this.parameter.data) != null && S.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((E = this.parameter.data) != null && E.enableSubDataChannel) || !((_ = this.streamInfo) != null && _.hasData)) && this.isDataSubscribing && (s.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (s.audio || s.video || s.screen) && this.subscribeDeleteTracks(s), e === de.Reconnect) {
|
|
12076
|
-
if (O.event(`[${
|
|
12086
|
+
if (O.event(`[${Le.logName}]`, "reconnect, try to resume"), this.streamInfo.hasData && !i.data) {
|
|
12077
12087
|
const A = this.rtsManager.getDatachannelByMsid({
|
|
12078
12088
|
url: this.streamUrl,
|
|
12079
12089
|
msid: this.streamInfo.getDataInfo().msid || T.Data
|
|
@@ -12108,7 +12118,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12108
12118
|
};
|
|
12109
12119
|
}
|
|
12110
12120
|
handleAutoPlayFailed() {
|
|
12111
|
-
O.event(`[${
|
|
12121
|
+
O.event(`[${Le.logName}]`, "auto play failed"), this.emit("remoteAudioAutoPlayFail", this.uid);
|
|
12112
12122
|
const e = () => {
|
|
12113
12123
|
this.resumeAudio().then(() => {
|
|
12114
12124
|
document.removeEventListener("click", e, !1), document.removeEventListener("touchstart", e, !1);
|
|
@@ -12129,17 +12139,17 @@ const Ce = (Me = class extends Sn {
|
|
|
12129
12139
|
return w(this, null, function* () {
|
|
12130
12140
|
var e, t;
|
|
12131
12141
|
if (!this.audioTrack) {
|
|
12132
|
-
O.event(`[${
|
|
12142
|
+
O.event(`[${Le.logName}]`, this.userId, "audio track is null");
|
|
12133
12143
|
return;
|
|
12134
12144
|
}
|
|
12135
|
-
if (this.toggleAudio(!this.audioMuted), this.audioElement || (O.event(`[${
|
|
12145
|
+
if (this.toggleAudio(!this.audioMuted), this.audioElement || (O.event(`[${Le.logName}]`, this.userId, "create audio element"), this.audioElement = document.createElement("audio"), this.audioElement.setAttribute("autoplay", "autoplay"), this.audioElement.addEventListener("pause", this.handleAudioPaused), this.setPlayoutVolume(this.playoutVolume)), ((t = (e = this.audioElement.srcObject) == null ? void 0 : e.getAudioTracks()) == null ? void 0 : t[0]) !== this.audioTrack) {
|
|
12136
12146
|
let i = this.audioElement.srcObject;
|
|
12137
12147
|
i ? i.getAudioTracks().forEach((s) => {
|
|
12138
12148
|
i.removeTrack(s);
|
|
12139
12149
|
}) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
|
|
12140
12150
|
}
|
|
12141
12151
|
if (le.SystenUtil.isIos && parseInt(le.SystenUtil.systemVersion) <= 13) {
|
|
12142
|
-
O.event(`[${
|
|
12152
|
+
O.event(`[${Le.logName}]`, "play audio for iOS 13-");
|
|
12143
12153
|
const i = this.audioElement;
|
|
12144
12154
|
i.setAttribute("autoplay", "");
|
|
12145
12155
|
const s = () => {
|
|
@@ -12151,8 +12161,8 @@ const Ce = (Me = class extends Sn {
|
|
|
12151
12161
|
} else
|
|
12152
12162
|
(() => {
|
|
12153
12163
|
var s;
|
|
12154
|
-
O.event(`[${
|
|
12155
|
-
O.event(`[${
|
|
12164
|
+
O.event(`[${Le.logName}]`, "try play audio"), (s = this.audioElement) == null || s.play().then(() => {
|
|
12165
|
+
O.event(`[${Le.logName}]`, "play audio success");
|
|
12156
12166
|
}).catch(() => {
|
|
12157
12167
|
this.handleAutoPlayFailed();
|
|
12158
12168
|
});
|
|
@@ -12171,7 +12181,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12171
12181
|
}
|
|
12172
12182
|
play(e, t = !1, i = !1) {
|
|
12173
12183
|
const s = t ? this.screenStream : this.stream;
|
|
12174
|
-
!e || !s || !s.mediaStream ||
|
|
12184
|
+
!e || !s || !s.mediaStream || _n(e, s.mediaStream, i).catch((n) => {
|
|
12175
12185
|
n.code === 20 || n.name === "AbortError" || this.handleVideoPlayFailded(
|
|
12176
12186
|
e,
|
|
12177
12187
|
t ? se.AliRtcVideoTrackScreen : se.AliRtcVideoTrackCamera
|
|
@@ -12215,7 +12225,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12215
12225
|
const e = [];
|
|
12216
12226
|
if (this.isAudioSubscribing) {
|
|
12217
12227
|
const u = yield this.rtsManager.getSubscribeAudioStats(this.streamUrl);
|
|
12218
|
-
u && e.push({ uid: this.uid, track:
|
|
12228
|
+
u && e.push({ uid: this.uid, track: Xt.AliRtcAudioTrackMic, stats: u });
|
|
12219
12229
|
}
|
|
12220
12230
|
const t = [];
|
|
12221
12231
|
if ((i = this.streamInfo) != null && i.isVideoLargeSubscribed) {
|
|
@@ -12302,7 +12312,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12302
12312
|
const h = o[o.length - 1] || {}, { _last: f } = h;
|
|
12303
12313
|
u = wt(h, ["_last"]);
|
|
12304
12314
|
}
|
|
12305
|
-
(o == null ? void 0 : o.length) >=
|
|
12315
|
+
(o == null ? void 0 : o.length) >= gc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, n && (c._source = (p = this.localUser) == null ? void 0 : p.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
|
|
12306
12316
|
});
|
|
12307
12317
|
}), e.forEach((t) => {
|
|
12308
12318
|
this.reportSubscribeMonitor(t);
|
|
@@ -12322,7 +12332,7 @@ const Ce = (Me = class extends Sn {
|
|
|
12322
12332
|
}, /**
|
|
12323
12333
|
* @ignore
|
|
12324
12334
|
*/
|
|
12325
|
-
g(
|
|
12335
|
+
g(Le, "logName", "RemoteUser"), Le);
|
|
12326
12336
|
Te([
|
|
12327
12337
|
D()
|
|
12328
12338
|
], Ce.prototype, "clear", 1);
|
|
@@ -12378,9 +12388,9 @@ Te([
|
|
|
12378
12388
|
Te([
|
|
12379
12389
|
D()
|
|
12380
12390
|
], Ce.prototype, "stopPlayAll", 1);
|
|
12381
|
-
let
|
|
12391
|
+
let mc = Ce;
|
|
12382
12392
|
var _t = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(_t || {});
|
|
12383
|
-
class
|
|
12393
|
+
class xc extends De {
|
|
12384
12394
|
constructor() {
|
|
12385
12395
|
super(...arguments);
|
|
12386
12396
|
g(this, "plugins", /* @__PURE__ */ new Map());
|
|
@@ -12411,15 +12421,15 @@ class gc extends De {
|
|
|
12411
12421
|
return Array.from(this.plugins.values());
|
|
12412
12422
|
}
|
|
12413
12423
|
}
|
|
12414
|
-
var
|
|
12415
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
12424
|
+
var Sc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, Ee = (r, a, e, t) => {
|
|
12425
|
+
for (var i = t > 1 ? void 0 : t ? vc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
12416
12426
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
12417
|
-
return t && i &&
|
|
12427
|
+
return t && i && Sc(a, e, i), i;
|
|
12418
12428
|
};
|
|
12419
|
-
const
|
|
12429
|
+
const Pi = ([r]) => {
|
|
12420
12430
|
const { remoteUser: a, options: e } = r;
|
|
12421
12431
|
return [`user(${a.userId})`, e];
|
|
12422
|
-
},
|
|
12432
|
+
}, Ja = 5, Ga = 17, Xa = 5e3;
|
|
12423
12433
|
var Ae;
|
|
12424
12434
|
const xe = (Ae = class extends De {
|
|
12425
12435
|
constructor(e, t, i) {
|
|
@@ -12451,11 +12461,11 @@ const xe = (Ae = class extends De {
|
|
|
12451
12461
|
addRTSListener() {
|
|
12452
12462
|
this.rts.on("connectStatusChange", (e) => {
|
|
12453
12463
|
var t, i, s, n;
|
|
12454
|
-
if (O.event(`[${Ae.logName}]`, "rts connectStatusChange to:", e.status), e.status ===
|
|
12464
|
+
if (O.event(`[${Ae.logName}]`, "rts connectStatusChange to:", e.status), e.status === Li.CONNECT_STATUS_DISCONNECTED)
|
|
12455
12465
|
this.dcReject && this.dcReject(), this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
|
|
12456
|
-
else if (e.status ===
|
|
12466
|
+
else if (e.status === Li.CONNECT_STATUS_RECONNECTING)
|
|
12457
12467
|
this._rtsReconnecting = !0;
|
|
12458
|
-
else if (e.status ===
|
|
12468
|
+
else if (e.status === Li.CONNECT_STATUS_CONNECTED) {
|
|
12459
12469
|
const c = (n = (s = (i = (t = this.rts.commonController) == null ? void 0 : t.peerCore) == null ? void 0 : i.getSignal()) == null ? void 0 : s.getDatachannelCore()) == null ? void 0 : n.readyState;
|
|
12460
12470
|
O.event(`[${Ae.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList()), this.setConnected(!0);
|
|
12461
12471
|
}
|
|
@@ -12467,7 +12477,7 @@ const xe = (Ae = class extends De {
|
|
|
12467
12477
|
O.error(`[${Ae.logName}]`, "emit connected error:", e);
|
|
12468
12478
|
}
|
|
12469
12479
|
}), this.rts.on("datachannelStatusChange", (e) => {
|
|
12470
|
-
O.event(`[${Ae.logName}]`, "rts datachannelStatusChange to:", e.status), e.status ===
|
|
12480
|
+
O.event(`[${Ae.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === vs.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === vs.DATACHANNEL_STATUS_CLOSE && (this.dcReject && this.dcReject(), this.dcConnectingPromise = new Promise((t, i) => {
|
|
12471
12481
|
this.dcResolve = t, this.dcReject = i;
|
|
12472
12482
|
}));
|
|
12473
12483
|
}), this.rts.on("receivedSEI", (e) => {
|
|
@@ -12576,12 +12586,12 @@ const xe = (Ae = class extends De {
|
|
|
12576
12586
|
this.encodedInsertableStreams && (m.encodedInsertableStreams = !0), m.answerSdpHook = (_) => {
|
|
12577
12587
|
const y = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(_);
|
|
12578
12588
|
return y != null && y[0] && (o = y[0]), _;
|
|
12579
|
-
}, (E = (b = this.parameter) == null ? void 0 : b.net) != null && E.useTCP && (m.tcpOnly = !0), m.retryTimes =
|
|
12589
|
+
}, (E = (b = this.parameter) == null ? void 0 : b.net) != null && E.useTCP && (m.tcpOnly = !0), m.retryTimes = Ga, m.retryInterval = Xa, this._rtsPeerConnectionType = "publish";
|
|
12580
12590
|
let l = !h.hasVideo, x = f, v = "";
|
|
12581
12591
|
this.startConnect();
|
|
12582
12592
|
const S = Date.now();
|
|
12583
12593
|
try {
|
|
12584
|
-
v = yield this.rts.publish(
|
|
12594
|
+
v = yield this.rts.publish($a(e), h, m);
|
|
12585
12595
|
} catch (_) {
|
|
12586
12596
|
this.setConnected(!1);
|
|
12587
12597
|
const y = 2e3 - (Date.now() - S);
|
|
@@ -12690,7 +12700,7 @@ const xe = (Ae = class extends De {
|
|
|
12690
12700
|
yield this.dcConnectingPromise;
|
|
12691
12701
|
const f = Date.now(), m = this.getPubMsid(t, s);
|
|
12692
12702
|
try {
|
|
12693
|
-
const A = yield
|
|
12703
|
+
const A = yield Wa(
|
|
12694
12704
|
(R) => w(this, null, function* () {
|
|
12695
12705
|
return R > 0 && O.event(`[${Ae.logName}]`, `publishAdd retry times: ${R}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
|
|
12696
12706
|
G({
|
|
@@ -12700,12 +12710,12 @@ const xe = (Ae = class extends De {
|
|
|
12700
12710
|
}, m)
|
|
12701
12711
|
])) : Promise.reject(new F(U.ERR_INNER, "rts not connected"));
|
|
12702
12712
|
}),
|
|
12703
|
-
|
|
12713
|
+
Ja,
|
|
12704
12714
|
0,
|
|
12705
12715
|
(R) => (R == null ? void 0 : R.errorCode) === 15006
|
|
12706
12716
|
);
|
|
12707
12717
|
if (A) {
|
|
12708
|
-
const R = Date.now(), [
|
|
12718
|
+
const R = Date.now(), [L] = A;
|
|
12709
12719
|
return this.slsReporter.reportPublish(
|
|
12710
12720
|
!1,
|
|
12711
12721
|
e,
|
|
@@ -12716,9 +12726,9 @@ const xe = (Ae = class extends De {
|
|
|
12716
12726
|
((S = m.aMsid) == null ? void 0 : S[0]) === T.Audio,
|
|
12717
12727
|
0,
|
|
12718
12728
|
this.pcTraceId,
|
|
12719
|
-
|
|
12729
|
+
L.traceId || "",
|
|
12720
12730
|
f
|
|
12721
|
-
), this.updatePublishingTracks(
|
|
12731
|
+
), this.updatePublishingTracks(L.trackInfoList), c && (yield this.waitPublishSender(e, !t.hasVideo, t.hasVideo ? s == null ? void 0 : s.vMsid : s == null ? void 0 : s.aMsid)), this.slsReporter.reportPublishFirstPacket(
|
|
12722
12732
|
n,
|
|
12723
12733
|
i,
|
|
12724
12734
|
f,
|
|
@@ -12726,9 +12736,9 @@ const xe = (Ae = class extends De {
|
|
|
12726
12736
|
this._localJoinTime,
|
|
12727
12737
|
(t.hasVideo ? s == null ? void 0 : s.vMsid : s == null ? void 0 : s.aMsid) || "",
|
|
12728
12738
|
this.pcTraceId,
|
|
12729
|
-
|
|
12739
|
+
L.traceId || "",
|
|
12730
12740
|
o
|
|
12731
|
-
),
|
|
12741
|
+
), L.traceId || "";
|
|
12732
12742
|
}
|
|
12733
12743
|
} catch (A) {
|
|
12734
12744
|
throw this.slsReporter.reportPublish(
|
|
@@ -12855,10 +12865,10 @@ const xe = (Ae = class extends De {
|
|
|
12855
12865
|
const f = (d = (p = this.parameter) == null ? void 0 : p.net) == null ? void 0 : d.mediaTimeout;
|
|
12856
12866
|
f > 1e3 && f < 1e5 && (n.mediaTimeout = f);
|
|
12857
12867
|
}
|
|
12858
|
-
n.retryTimes =
|
|
12868
|
+
n.retryTimes = Ga, n.retryInterval = Xa, this._rtsPeerConnectionType = "subscribe";
|
|
12859
12869
|
try {
|
|
12860
12870
|
this.startConnect();
|
|
12861
|
-
const f = yield this.rts.subscribe(
|
|
12871
|
+
const f = yield this.rts.subscribe($a(s), n);
|
|
12862
12872
|
return this._pcTraceId = f.traceId, this.setConnected(!0), {
|
|
12863
12873
|
traceId: f.traceId,
|
|
12864
12874
|
stream: f
|
|
@@ -12871,7 +12881,6 @@ const xe = (Ae = class extends De {
|
|
|
12871
12881
|
subscribeAdd(e) {
|
|
12872
12882
|
return w(this, null, function* () {
|
|
12873
12883
|
var n, c, o, u;
|
|
12874
|
-
yield this.dcConnectingPromise;
|
|
12875
12884
|
const { remoteUser: t, options: i } = e, s = ut(G({
|
|
12876
12885
|
url: t.streamUrl,
|
|
12877
12886
|
subAudio: !!i.audio,
|
|
@@ -12879,12 +12888,13 @@ const xe = (Ae = class extends De {
|
|
|
12879
12888
|
}, this.getSubConfig(t.streamInfo, i)), {
|
|
12880
12889
|
targetStream: i.screen ? t.getScreenStream : t.getCameraStream
|
|
12881
12890
|
});
|
|
12891
|
+
yield this.dcConnectingPromise;
|
|
12882
12892
|
try {
|
|
12883
|
-
return (yield
|
|
12893
|
+
return (yield Wa(
|
|
12884
12894
|
(p) => w(this, null, function* () {
|
|
12885
12895
|
return yield this.dcConnectingPromise, p > 0 && O.event(`[${Ae.logName}]`, `subscribeAdd retry times: ${p}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
|
|
12886
12896
|
}),
|
|
12887
|
-
|
|
12897
|
+
Ja,
|
|
12888
12898
|
0,
|
|
12889
12899
|
// 仅超时重试
|
|
12890
12900
|
(p) => (p == null ? void 0 : p.errorCode) === 15006
|
|
@@ -12899,7 +12909,6 @@ const xe = (Ae = class extends De {
|
|
|
12899
12909
|
subscribeDelete(e) {
|
|
12900
12910
|
return w(this, null, function* () {
|
|
12901
12911
|
var n, c, o, u;
|
|
12902
|
-
yield this.dcConnectingPromise;
|
|
12903
12912
|
const { remoteUser: t, options: i } = e, s = ut(G({
|
|
12904
12913
|
url: t.streamUrl,
|
|
12905
12914
|
subAudio: !!i.audio,
|
|
@@ -12907,6 +12916,7 @@ const xe = (Ae = class extends De {
|
|
|
12907
12916
|
}, this.getSubConfig(t.streamInfo, i)), {
|
|
12908
12917
|
targetStream: i.screen ? t.getScreenStream : t.getCameraStream
|
|
12909
12918
|
});
|
|
12919
|
+
yield this.dcConnectingPromise;
|
|
12910
12920
|
try {
|
|
12911
12921
|
return (yield this.rts.subscribeDeleteTracks([s]))[0];
|
|
12912
12922
|
} catch (h) {
|
|
@@ -13053,20 +13063,20 @@ const xe = (Ae = class extends De {
|
|
|
13053
13063
|
const E = ((_, y) => {
|
|
13054
13064
|
let A = 0;
|
|
13055
13065
|
const R = () => {
|
|
13056
|
-
let
|
|
13057
|
-
return l && !x && (
|
|
13066
|
+
let L;
|
|
13067
|
+
return l && !x && (L = this.rts.getSubscribeAudioStats(u.streamUrl).then((C) => {
|
|
13058
13068
|
if (C.packetsReceived > 0)
|
|
13059
13069
|
x = Date.now();
|
|
13060
13070
|
else if (!m)
|
|
13061
13071
|
return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : !1;
|
|
13062
13072
|
return !0;
|
|
13063
|
-
})), m && !S && (
|
|
13073
|
+
})), m && !S && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((C) => {
|
|
13064
13074
|
if (C.packetsReceived > 0 && (v = Date.now()), C.framesDecoded > 0)
|
|
13065
13075
|
S = Date.now();
|
|
13066
13076
|
else
|
|
13067
13077
|
return A < _ ? (A++, new Promise((I) => setTimeout(() => I(R()), y))) : (O.event(`[${Ae.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
|
|
13068
13078
|
return !0;
|
|
13069
|
-
})), Promise.resolve(
|
|
13079
|
+
})), Promise.resolve(L);
|
|
13070
13080
|
};
|
|
13071
13081
|
return R();
|
|
13072
13082
|
})(40, 100);
|
|
@@ -13192,13 +13202,13 @@ Ee([
|
|
|
13192
13202
|
D()
|
|
13193
13203
|
], xe.prototype, "unpublish", 1);
|
|
13194
13204
|
Ee([
|
|
13195
|
-
D(
|
|
13205
|
+
D(Pi, ({ traceId: r }) => r)
|
|
13196
13206
|
], xe.prototype, "httpSubscribe", 1);
|
|
13197
13207
|
Ee([
|
|
13198
|
-
D(
|
|
13208
|
+
D(Pi, ({ traceId: r }) => r)
|
|
13199
13209
|
], xe.prototype, "subscribeAdd", 1);
|
|
13200
13210
|
Ee([
|
|
13201
|
-
D(
|
|
13211
|
+
D(Pi)
|
|
13202
13212
|
], xe.prototype, "subscribeDelete", 1);
|
|
13203
13213
|
Ee([
|
|
13204
13214
|
D(H)
|
|
@@ -13213,14 +13223,14 @@ Ee([
|
|
|
13213
13223
|
D(H)
|
|
13214
13224
|
], xe.prototype, "publish", 1);
|
|
13215
13225
|
Ee([
|
|
13216
|
-
D(
|
|
13226
|
+
D(Pi)
|
|
13217
13227
|
], xe.prototype, "subscribe", 1);
|
|
13218
13228
|
Ee([
|
|
13219
13229
|
D()
|
|
13220
13230
|
], xe.prototype, "sendSEI", 1);
|
|
13221
|
-
let
|
|
13222
|
-
class
|
|
13223
|
-
constructor(a =
|
|
13231
|
+
let bc = xe;
|
|
13232
|
+
class Nr {
|
|
13233
|
+
constructor(a = Hr) {
|
|
13224
13234
|
g(this, "defaultProfile");
|
|
13225
13235
|
g(this, "profile");
|
|
13226
13236
|
g(this, "profileMap", /* @__PURE__ */ new Map());
|
|
@@ -13263,7 +13273,7 @@ class kr {
|
|
|
13263
13273
|
});
|
|
13264
13274
|
}
|
|
13265
13275
|
}
|
|
13266
|
-
class
|
|
13276
|
+
class Ya extends De {
|
|
13267
13277
|
constructor(e) {
|
|
13268
13278
|
super();
|
|
13269
13279
|
g(this, "type");
|
|
@@ -13313,7 +13323,7 @@ class Ga extends De {
|
|
|
13313
13323
|
return w(this, null, function* () {
|
|
13314
13324
|
var c, o, u, h, p, d;
|
|
13315
13325
|
const { videoTrack: s, audioTrack: n } = e;
|
|
13316
|
-
s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), n && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === be.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), n && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (p = this.originVideoTrack) == null || p.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t ||
|
|
13326
|
+
s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), n && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === be.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), n && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (p = this.originVideoTrack) == null || p.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || Jt.Camera, this.updateVideoTrack(s)), n && (this.originAudioTrack = n, (d = this.originAudioTrack) == null || d.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || Si.Microphone, this.updateAudioTrack(n));
|
|
13317
13327
|
});
|
|
13318
13328
|
}
|
|
13319
13329
|
get currentProfile() {
|
|
@@ -13401,7 +13411,7 @@ class Ga extends De {
|
|
|
13401
13411
|
} catch (x) {
|
|
13402
13412
|
console.error(`error in plugin-${l.name}, error: ${x}`);
|
|
13403
13413
|
}
|
|
13404
|
-
this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield
|
|
13414
|
+
this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield ei(this._targetVideoTrack), this.setVideoMuted(this._videoMuted), (s = this.profileManager) == null || s.setVideoProfile(this.originVideoTrack, this._publishVideoStream, !0), (n = this.profileManager) == null || n.setContentHint(this._targetVideoTrack), this.previewStream ? (c = this.previewStream) == null || c.mergeStream(this._publishVideoStream) : this._previewStream = yield ei(this._targetVideoTrack)) : (this._publishVideoStream = void 0, (o = this.previewStream) == null || o.deleteTracks({ video: !0 })), this._targetDualVideoTrack ? ((h = (u = this._publishDualVideoStream) == null ? void 0 : u.videoTrack) == null ? void 0 : h.id) !== this._targetDualVideoTrack.id && (this._publishDualVideoStream = yield ei(this._targetDualVideoTrack), this._videoMuted ? this._publishDualVideoStream.disableVideo() : this._publishDualVideoStream.enableVideo()) : this._publishDualVideoStream = void 0, this._targetAudioTrack ? ((d = (p = this._publishAudioStream) == null ? void 0 : p.audioTrack) == null ? void 0 : d.id) !== this._targetAudioTrack.id && (this._publishAudioStream = yield ei(this._targetAudioTrack), this.setAudioMuted(this._audioMuted), this.previewStream ? (f = this.previewStream) == null || f.mergeStream(this._publishAudioStream) : this._previewStream = yield ei(this._targetAudioTrack)) : (this._publishAudioStream = void 0, (m = this.previewStream) == null || m.deleteTracks({ audio: !0 }));
|
|
13405
13415
|
});
|
|
13406
13416
|
}
|
|
13407
13417
|
/**
|
|
@@ -13431,8 +13441,8 @@ class Ga extends De {
|
|
|
13431
13441
|
*/
|
|
13432
13442
|
updateVideoProfile(e, t) {
|
|
13433
13443
|
return w(this, null, function* () {
|
|
13434
|
-
this._profileManager || (this._profileManager = new
|
|
13435
|
-
this.type === be.AliRtcSdkStreamTypeScreen ?
|
|
13444
|
+
this._profileManager || (this._profileManager = new Nr(
|
|
13445
|
+
this.type === be.AliRtcSdkStreamTypeScreen ? ja : Hr
|
|
13436
13446
|
)), e && this._profileManager.updateProfile(e, t), yield this._profileManager.setVideoProfile(
|
|
13437
13447
|
this.originVideoTrack,
|
|
13438
13448
|
this._publishVideoStream,
|
|
@@ -13445,8 +13455,8 @@ class Ga extends De {
|
|
|
13445
13455
|
return (e = this.profileManager) == null ? void 0 : e.videoProfile;
|
|
13446
13456
|
}
|
|
13447
13457
|
setVideoContentHint(e) {
|
|
13448
|
-
this._profileManager || (this._profileManager = new
|
|
13449
|
-
this.type === be.AliRtcSdkStreamTypeScreen ?
|
|
13458
|
+
this._profileManager || (this._profileManager = new Nr(
|
|
13459
|
+
this.type === be.AliRtcSdkStreamTypeScreen ? ja : Hr
|
|
13450
13460
|
)), this._profileManager.setContentHint(this.currentVideoTrack, e);
|
|
13451
13461
|
}
|
|
13452
13462
|
/**
|
|
@@ -13455,7 +13465,7 @@ class Ga extends De {
|
|
|
13455
13465
|
*/
|
|
13456
13466
|
updateAudioProfile(e) {
|
|
13457
13467
|
return w(this, null, function* () {
|
|
13458
|
-
this._profileManager || (this._profileManager = new
|
|
13468
|
+
this._profileManager || (this._profileManager = new Nr()), this._profileManager.updateAudioProfile(e);
|
|
13459
13469
|
});
|
|
13460
13470
|
}
|
|
13461
13471
|
/**
|
|
@@ -13479,12 +13489,12 @@ class Ga extends De {
|
|
|
13479
13489
|
return t > -1 ? (e.clear(this), this.plugins.splice(t, 1), !0) : !1;
|
|
13480
13490
|
}
|
|
13481
13491
|
}
|
|
13482
|
-
var
|
|
13483
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
13492
|
+
var Ec = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, st = (r, a, e, t) => {
|
|
13493
|
+
for (var i = t > 1 ? void 0 : t ? _c(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
13484
13494
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
13485
|
-
return t && i &&
|
|
13486
|
-
},
|
|
13487
|
-
const Ze = (
|
|
13495
|
+
return t && i && Ec(a, e, i), i;
|
|
13496
|
+
}, Ft;
|
|
13497
|
+
const Ze = (Ft = class extends De {
|
|
13488
13498
|
// 设置是否发布屏幕流
|
|
13489
13499
|
constructor(e, t) {
|
|
13490
13500
|
super();
|
|
@@ -13493,8 +13503,8 @@ const Ze = (Vt = class extends De {
|
|
|
13493
13503
|
// 当前正在推流的流,只有在使用 HTTP 推流的时候才有值,用于设置 peerconnection 的参数
|
|
13494
13504
|
g(this, "publishingCameraVideoStream");
|
|
13495
13505
|
g(this, "publishingScreenVideoStream");
|
|
13496
|
-
g(this, "cameraStreamInfo", new
|
|
13497
|
-
g(this, "screenStreamInfo", new
|
|
13506
|
+
g(this, "cameraStreamInfo", new Ya(be.AliRtcSdkStreamTypeCapture));
|
|
13507
|
+
g(this, "screenStreamInfo", new Ya(be.AliRtcSdkStreamTypeScreen));
|
|
13498
13508
|
g(this, "streamInfos", [this.cameraStreamInfo, this.screenStreamInfo]);
|
|
13499
13509
|
g(this, "_audioCaptureDisabled", !1);
|
|
13500
13510
|
// 离会再入会,若不另外设置,则保持音频采集关闭
|
|
@@ -13507,7 +13517,7 @@ const Ze = (Vt = class extends De {
|
|
|
13507
13517
|
g(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13508
13518
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13509
13519
|
const i = (s) => w(this, null, function* () {
|
|
13510
|
-
if (O.info(`[${
|
|
13520
|
+
if (O.info(`[${Ft.logName}]`, "plugin added", s.name), !s.isSupported("6.14.4-beta.1")) {
|
|
13511
13521
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13512
13522
|
return;
|
|
13513
13523
|
}
|
|
@@ -13521,15 +13531,15 @@ const Ze = (Vt = class extends De {
|
|
|
13521
13531
|
this.cameraStreamInfo.on("videotrackended", () => w(this, null, function* () {
|
|
13522
13532
|
yield this.stopLocalStream({
|
|
13523
13533
|
video: !0
|
|
13524
|
-
}), this.emit("trackended",
|
|
13534
|
+
}), this.emit("trackended", Vt.VideoTrackEnded);
|
|
13525
13535
|
})), this.cameraStreamInfo.on("audiotrackended", () => w(this, null, function* () {
|
|
13526
13536
|
yield this.stopLocalStream({
|
|
13527
13537
|
audio: !0
|
|
13528
|
-
}), this.emit("trackended",
|
|
13538
|
+
}), this.emit("trackended", Vt.AudioTrackEnded);
|
|
13529
13539
|
})), this.screenStreamInfo.on("videotrackended", () => w(this, null, function* () {
|
|
13530
13540
|
yield this.stopLocalStream({
|
|
13531
13541
|
screen: !0
|
|
13532
|
-
}), this.emit("trackended",
|
|
13542
|
+
}), this.emit("trackended", Vt.ScreenTrackEnded);
|
|
13533
13543
|
})), this.pluginManager.on("added", i), this.pluginManager.on("removed", (s) => w(this, null, function* () {
|
|
13534
13544
|
this.cameraStreamInfo.removePlugin(s) && (yield this.cameraStreamInfo.process(this.streamInfos)), this.screenStreamInfo.removePlugin(s) && (yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
|
|
13535
13545
|
})), this.pluginManager.on("updated", () => w(this, null, function* () {
|
|
@@ -13619,7 +13629,7 @@ const Ze = (Vt = class extends De {
|
|
|
13619
13629
|
var p;
|
|
13620
13630
|
const { screen: t, mediaStream: i, videoProfile: s, screenProfile: n } = e;
|
|
13621
13631
|
let { video: c, audio: o } = e;
|
|
13622
|
-
const u =
|
|
13632
|
+
const u = rc(e);
|
|
13623
13633
|
let h;
|
|
13624
13634
|
if (u) {
|
|
13625
13635
|
i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c = G({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof c == "object" && (yield this.setAvailableCameraDeviceId(), c = G(G({}, c), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = G({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = G(G({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
|
|
@@ -13637,8 +13647,8 @@ const Ze = (Vt = class extends De {
|
|
|
13637
13647
|
throw o && !i && this.slsReporter.reportAudio(f, Date.now() - d, ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d), f;
|
|
13638
13648
|
}
|
|
13639
13649
|
if (t)
|
|
13640
|
-
yield this.screenStreamInfo.updateSource(h,
|
|
13641
|
-
else if (yield this.cameraStreamInfo.updateSource(h,
|
|
13650
|
+
yield this.screenStreamInfo.updateSource(h, Jt.Screen, Si.Screen), yield this.setScreenProfile(n), this.setScreenContentHint(), this.publishingScreenVideoStream = void 0;
|
|
13651
|
+
else if (yield this.cameraStreamInfo.updateSource(h, Jt.Camera, Si.Microphone), h.hasVideo && (yield this.setVideoProfile(s), this.setVideoContentHint(), this.publishingCameraVideoStream = void 0), h.hasAudio && typeof o == "boolean") {
|
|
13642
13652
|
const f = this.cameraStreamInfo.audioProfile;
|
|
13643
13653
|
f && (yield h.setAudioProfile(f));
|
|
13644
13654
|
}
|
|
@@ -13673,9 +13683,9 @@ const Ze = (Vt = class extends De {
|
|
|
13673
13683
|
const c = this.publishStreams;
|
|
13674
13684
|
try {
|
|
13675
13685
|
if (!c.audio && !c.video && !c.videoSmall && !c.screen)
|
|
13676
|
-
throw O.error(`[${
|
|
13686
|
+
throw O.error(`[${Ft.logName}]`, "no tracks founded"), new F(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
|
|
13677
13687
|
const d = new MediaStream();
|
|
13678
|
-
(o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, n = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield
|
|
13688
|
+
(o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, n = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((p = c.screen) == null ? void 0 : p.videoTrack), t = !0), e = yield yn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
|
|
13679
13689
|
} catch (d) {
|
|
13680
13690
|
}
|
|
13681
13691
|
return { publishStream: e, videoSmallStream: s, screenStream: n, vMsid: i };
|
|
@@ -13717,7 +13727,7 @@ const Ze = (Vt = class extends De {
|
|
|
13717
13727
|
}, /**
|
|
13718
13728
|
* @ignore
|
|
13719
13729
|
*/
|
|
13720
|
-
g(
|
|
13730
|
+
g(Ft, "logName", "LocalStreamManager"), Ft);
|
|
13721
13731
|
st([
|
|
13722
13732
|
D(([r]) => {
|
|
13723
13733
|
const { audio: a, video: e, screen: t, custom: i, skipProfile: s, videoProfile: n, screenProfile: c } = r;
|
|
@@ -13764,8 +13774,8 @@ st([
|
|
|
13764
13774
|
st([
|
|
13765
13775
|
D(H)
|
|
13766
13776
|
], Ze.prototype, "setMicAudioConstraints", 1);
|
|
13767
|
-
let
|
|
13768
|
-
class
|
|
13777
|
+
let Ac = Ze;
|
|
13778
|
+
class yc extends Gt {
|
|
13769
13779
|
constructor() {
|
|
13770
13780
|
super("AliRtcScreenStandardize", be.AliRtcSdkStreamTypeScreen);
|
|
13771
13781
|
g(this, "canvas");
|
|
@@ -13795,7 +13805,7 @@ class _c extends Jt {
|
|
|
13795
13805
|
this.lastWidth = e, this.lastHeight = t;
|
|
13796
13806
|
}
|
|
13797
13807
|
shouldUpdate(e) {
|
|
13798
|
-
return this.hasScreenTrack !== (!!e.originVideoTrack && e.videoSource ===
|
|
13808
|
+
return this.hasScreenTrack !== (!!e.originVideoTrack && e.videoSource === Jt.Screen);
|
|
13799
13809
|
}
|
|
13800
13810
|
handleFrame(e, t) {
|
|
13801
13811
|
return w(this, null, function* () {
|
|
@@ -13818,7 +13828,7 @@ class _c extends Jt {
|
|
|
13818
13828
|
process(e) {
|
|
13819
13829
|
return w(this, null, function* () {
|
|
13820
13830
|
var h;
|
|
13821
|
-
if (!e.originVideoTrack || e.videoSource !==
|
|
13831
|
+
if (!e.originVideoTrack || e.videoSource !== Jt.Screen) {
|
|
13822
13832
|
this.clear(e), this.hasScreenTrack = !1;
|
|
13823
13833
|
return;
|
|
13824
13834
|
}
|
|
@@ -13839,9 +13849,9 @@ class _c extends Jt {
|
|
|
13839
13849
|
this.canvas = void 0, this.lastWidth = void 0, this.lastHeight = void 0, super.clear(e);
|
|
13840
13850
|
}
|
|
13841
13851
|
}
|
|
13842
|
-
class
|
|
13852
|
+
class Cc extends Gt {
|
|
13843
13853
|
constructor() {
|
|
13844
|
-
super("blankAudio", be.AliRtcSdkStreamTypeCapture,
|
|
13854
|
+
super("blankAudio", be.AliRtcSdkStreamTypeCapture, Ri.BOTH);
|
|
13845
13855
|
g(this, "hasTrack", !1);
|
|
13846
13856
|
g(this, "oscillator", null);
|
|
13847
13857
|
g(this, "audioTrack", null);
|
|
@@ -13874,7 +13884,7 @@ class Ac extends Jt {
|
|
|
13874
13884
|
});
|
|
13875
13885
|
}
|
|
13876
13886
|
}
|
|
13877
|
-
class
|
|
13887
|
+
class Cn {
|
|
13878
13888
|
constructor(a) {
|
|
13879
13889
|
g(this, "name", "COMMON");
|
|
13880
13890
|
this.name = a || this.name;
|
|
@@ -13888,13 +13898,13 @@ class An {
|
|
|
13888
13898
|
t && console[t](`[${a}][${this.name}]`, ...e);
|
|
13889
13899
|
}
|
|
13890
13900
|
}
|
|
13891
|
-
g(
|
|
13892
|
-
class
|
|
13901
|
+
g(Cn, "LEVEL", 0);
|
|
13902
|
+
class Rc {
|
|
13893
13903
|
constructor() {
|
|
13894
|
-
g(this, "logger", new
|
|
13904
|
+
g(this, "logger", new Cn("AudioMixer"));
|
|
13895
13905
|
g(this, "audioContext", new AudioContext());
|
|
13896
13906
|
g(this, "audioDestination", this.audioContext.createMediaStreamDestination());
|
|
13897
|
-
g(this, "audioTrack",
|
|
13907
|
+
g(this, "audioTrack", X0(this.audioDestination.stream));
|
|
13898
13908
|
g(this, "sourceNodeMap", {});
|
|
13899
13909
|
}
|
|
13900
13910
|
get sourceNodeList() {
|
|
@@ -13956,10 +13966,10 @@ class yc {
|
|
|
13956
13966
|
return a / 100;
|
|
13957
13967
|
}
|
|
13958
13968
|
}
|
|
13959
|
-
const
|
|
13960
|
-
class
|
|
13969
|
+
const Ic = 4;
|
|
13970
|
+
class wc extends Gt {
|
|
13961
13971
|
constructor() {
|
|
13962
|
-
super("audioMixer", be.AliRtcSdkStreamTypeCapture,
|
|
13972
|
+
super("audioMixer", be.AliRtcSdkStreamTypeCapture, Ri.AUDIO);
|
|
13963
13973
|
g(this, "audioMixer");
|
|
13964
13974
|
g(this, "primaryAudioTrackId");
|
|
13965
13975
|
g(this, "screenAudioTrackId");
|
|
@@ -14002,11 +14012,11 @@ class Rc extends Jt {
|
|
|
14002
14012
|
this.audioMixer && (this.audioMixer.dispose(), this.audioMixer = void 0), this.primaryAudioTrackId = s == null ? void 0 : s.id, e.updateAudioTrack(s);
|
|
14003
14013
|
return;
|
|
14004
14014
|
}
|
|
14005
|
-
this.audioMixer || (this.audioMixer = new
|
|
14015
|
+
this.audioMixer || (this.audioMixer = new Rc()), yield this.audioMixer.resume(), this.primaryAudioTrackId && (s == null ? void 0 : s.id) !== this.primaryAudioTrackId && ((c = this.audioMixer) == null || c.removeTrack(this.primaryAudioTrackId)), s && !this.audioMixer.hasTrack(s == null ? void 0 : s.id) && this.audioMixer.addTrack(s), this.primaryAudioTrackId = s == null ? void 0 : s.id, this.screenAudioTrackId && (n == null ? void 0 : n.id) !== this.screenAudioTrackId && ((o = this.audioMixer) == null || o.removeTrack(this.screenAudioTrackId)), n && !this.audioMixer.hasTrack(n == null ? void 0 : n.id) && this.audioMixer.addTrack(n), this.screenAudioTrackId = n == null ? void 0 : n.id, this.updateVolume(), e.updateAudioTrack(this.audioMixer.getAudioTrack());
|
|
14006
14016
|
});
|
|
14007
14017
|
}
|
|
14008
14018
|
isValidVolume(e) {
|
|
14009
|
-
return e !== void 0 && e >= 0 && e <=
|
|
14019
|
+
return e !== void 0 && e >= 0 && e <= Ic;
|
|
14010
14020
|
}
|
|
14011
14021
|
updateVolume() {
|
|
14012
14022
|
this.audioMixer && (this.primaryAudioTrackId && this.audioMixer.setVolume(this.options.audio * 100, this.primaryAudioTrackId), this.screenAudioTrackId && this.audioMixer.setVolume(this.options.screen * 100, this.screenAudioTrackId));
|
|
@@ -14016,7 +14026,7 @@ class Rc extends Jt {
|
|
|
14016
14026
|
(t = this.audioMixer) == null || t.dispose(), super.clear(e);
|
|
14017
14027
|
}
|
|
14018
14028
|
}
|
|
14019
|
-
class
|
|
14029
|
+
class os {
|
|
14020
14030
|
constructor(a, e) {
|
|
14021
14031
|
g(this, "originTrack");
|
|
14022
14032
|
g(this, "originVideo");
|
|
@@ -14049,7 +14059,7 @@ class as {
|
|
|
14049
14059
|
return n > s ? (c = Math.round(o / s), u = Math.round((t - c) / 2)) : n < s && (o = Math.round(c * s), h = Math.round((i - o) / 2)), { x: u, y: h, width: c, height: o };
|
|
14050
14060
|
}
|
|
14051
14061
|
}
|
|
14052
|
-
class
|
|
14062
|
+
class Dc extends os {
|
|
14053
14063
|
constructor(e, t) {
|
|
14054
14064
|
super(e, t);
|
|
14055
14065
|
g(this, "targetCtx");
|
|
@@ -14091,7 +14101,7 @@ class Ic extends as {
|
|
|
14091
14101
|
this.stopRender(), this.originVideo.removeEventListener("play", this.startRender), this.originVideo.removeEventListener("pause", this.stopRender), this.originVideo.removeEventListener("ended", this.stopRender), this.originVideo.pause(), this.originVideo.srcObject = null;
|
|
14092
14102
|
}
|
|
14093
14103
|
}
|
|
14094
|
-
const
|
|
14104
|
+
const Tc = `
|
|
14095
14105
|
attribute vec2 a_position;
|
|
14096
14106
|
attribute vec2 a_texCoord;
|
|
14097
14107
|
|
|
@@ -14112,7 +14122,7 @@ void main() {
|
|
|
14112
14122
|
|
|
14113
14123
|
v_texCoord = a_texCoord;
|
|
14114
14124
|
}
|
|
14115
|
-
`,
|
|
14125
|
+
`, Pc = `
|
|
14116
14126
|
precision mediump float;
|
|
14117
14127
|
|
|
14118
14128
|
varying lowp vec2 v_texCoord;
|
|
@@ -14122,7 +14132,7 @@ void main() {
|
|
|
14122
14132
|
gl_FragColor = texture2D(u_texture, v_texCoord);
|
|
14123
14133
|
}
|
|
14124
14134
|
`;
|
|
14125
|
-
function
|
|
14135
|
+
function kc() {
|
|
14126
14136
|
let r;
|
|
14127
14137
|
try {
|
|
14128
14138
|
const a = document.createElement("canvas");
|
|
@@ -14140,11 +14150,11 @@ function Tc() {
|
|
|
14140
14150
|
}
|
|
14141
14151
|
return !!r;
|
|
14142
14152
|
}
|
|
14143
|
-
function
|
|
14153
|
+
function Bc(r) {
|
|
14144
14154
|
const a = r.createTexture();
|
|
14145
14155
|
return r.bindTexture(r.TEXTURE_2D, a), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR), a;
|
|
14146
14156
|
}
|
|
14147
|
-
function
|
|
14157
|
+
function Za(r, a, e) {
|
|
14148
14158
|
const t = r.createShader(a);
|
|
14149
14159
|
if (!t) {
|
|
14150
14160
|
console.error("create shader failed");
|
|
@@ -14152,18 +14162,18 @@ function Xa(r, a, e) {
|
|
|
14152
14162
|
}
|
|
14153
14163
|
return r.shaderSource(t, e), r.compileShader(t), r.getShaderParameter(t, r.COMPILE_STATUS) ? t : (console.error(`An error occurred compiling the shaders: ${r.getShaderInfoLog(t)}`), r.deleteShader(t), null);
|
|
14154
14164
|
}
|
|
14155
|
-
function
|
|
14156
|
-
const t =
|
|
14165
|
+
function Nc(r, a, e) {
|
|
14166
|
+
const t = Za(r, r.VERTEX_SHADER, a), i = Za(r, r.FRAGMENT_SHADER, e), s = r.createProgram();
|
|
14157
14167
|
if (!(!s || !t || !i))
|
|
14158
14168
|
return r.attachShader(s, t), r.attachShader(s, i), r.linkProgram(s), r.getProgramParameter(s, r.LINK_STATUS) ? s : (console.error(`Unable to initialize the shader program: ${r.getProgramInfoLog(s)}`), null);
|
|
14159
14169
|
}
|
|
14160
|
-
function
|
|
14170
|
+
function Lc(r, a, e, t = 0, i = 0) {
|
|
14161
14171
|
const s = r.createBuffer();
|
|
14162
14172
|
r.bindBuffer(r.ARRAY_BUFFER, s);
|
|
14163
14173
|
const n = t, c = i, o = a + t, u = e + i, h = [n, c, o, c, n, u, n, u, o, c, o, u];
|
|
14164
14174
|
return r.bufferData(r.ARRAY_BUFFER, new Float32Array(h), r.STATIC_DRAW), s;
|
|
14165
14175
|
}
|
|
14166
|
-
class
|
|
14176
|
+
class Qa extends os {
|
|
14167
14177
|
constructor(e, t) {
|
|
14168
14178
|
super(e, t);
|
|
14169
14179
|
g(this, "targetCtx");
|
|
@@ -14172,14 +14182,14 @@ class Ya extends as {
|
|
|
14172
14182
|
this.targetCtx = this.targetCanvas.getContext("webgl2"), this.locationMap = {}, this.startRender = this.startRender.bind(this), this.stopRender = this.startRender.bind(this), this.updateBuffer = this.updateBuffer.bind(this), this.initGL(), this.initStream(e);
|
|
14173
14183
|
}
|
|
14174
14184
|
static isSupport() {
|
|
14175
|
-
return
|
|
14185
|
+
return kc();
|
|
14176
14186
|
}
|
|
14177
14187
|
initGL() {
|
|
14178
14188
|
const e = this.targetCtx;
|
|
14179
14189
|
if (!e)
|
|
14180
14190
|
return;
|
|
14181
|
-
this.targetTexture =
|
|
14182
|
-
const t =
|
|
14191
|
+
this.targetTexture = Bc(e);
|
|
14192
|
+
const t = Nc(e, Tc, Pc);
|
|
14183
14193
|
if (!t) {
|
|
14184
14194
|
console.log("[ScalerWebGL] program is null.");
|
|
14185
14195
|
return;
|
|
@@ -14223,7 +14233,7 @@ class Ya extends as {
|
|
|
14223
14233
|
this.originVideo.videoHeight,
|
|
14224
14234
|
this.targetWidth,
|
|
14225
14235
|
this.targetHeight
|
|
14226
|
-
), c =
|
|
14236
|
+
), c = Lc(e, n.width, n.height, n.x, n.y);
|
|
14227
14237
|
e.enableVertexAttribArray(t), e.bindBuffer(e.ARRAY_BUFFER, c), e.vertexAttribPointer(t, 2, e.FLOAT, !1, 0, 0), e.enableVertexAttribArray(i);
|
|
14228
14238
|
const o = e.createBuffer();
|
|
14229
14239
|
e.bindBuffer(e.ARRAY_BUFFER, o), e.bufferData(
|
|
@@ -14246,7 +14256,7 @@ class Ya extends as {
|
|
|
14246
14256
|
this.stopRender(), this.originVideo.removeEventListener("play", this.startRender), this.originVideo.removeEventListener("pause", this.stopRender), this.originVideo.removeEventListener("ended", this.stopRender), this.originVideo.removeEventListener("resize", this.updateBuffer), this.originVideo.pause(), this.originVideo.srcObject = null;
|
|
14247
14257
|
}
|
|
14248
14258
|
}
|
|
14249
|
-
const
|
|
14259
|
+
const Mc = `
|
|
14250
14260
|
var targetOptions={
|
|
14251
14261
|
width: 320,
|
|
14252
14262
|
height: 180,
|
|
@@ -14332,7 +14342,7 @@ onmessage = function(evt) {
|
|
|
14332
14342
|
}
|
|
14333
14343
|
}
|
|
14334
14344
|
`;
|
|
14335
|
-
class
|
|
14345
|
+
class en extends os {
|
|
14336
14346
|
constructor(e, t) {
|
|
14337
14347
|
super(e, t);
|
|
14338
14348
|
g(this, "processor");
|
|
@@ -14344,7 +14354,7 @@ class Za extends as {
|
|
|
14344
14354
|
return "MediaStreamTrackProcessor" in window && "MediaStreamTrackGenerator" in window && "TransformStream" in window && "VideoFrame" in window;
|
|
14345
14355
|
}
|
|
14346
14356
|
startTransform() {
|
|
14347
|
-
const e = new Blob([
|
|
14357
|
+
const e = new Blob([Mc], { type: "text/javascript" }), i = (window.URL || window.webkitURL).createObjectURL(e);
|
|
14348
14358
|
this.worker = new Worker(i);
|
|
14349
14359
|
const { readable: s } = this.processor, { writable: n } = this.trackGenerator;
|
|
14350
14360
|
this.worker.postMessage(
|
|
@@ -14374,7 +14384,7 @@ class Za extends as {
|
|
|
14374
14384
|
return this.trackGenerator;
|
|
14375
14385
|
}
|
|
14376
14386
|
}
|
|
14377
|
-
class
|
|
14387
|
+
class zr {
|
|
14378
14388
|
static isSupport() {
|
|
14379
14389
|
return typeof HTMLCanvasElement.prototype.captureStream == "function";
|
|
14380
14390
|
}
|
|
@@ -14385,10 +14395,10 @@ class Hr {
|
|
|
14385
14395
|
* @return {VideoScaler}
|
|
14386
14396
|
*/
|
|
14387
14397
|
static getInstance(a, e) {
|
|
14388
|
-
return
|
|
14398
|
+
return en.isSupport() ? new en(a, e) : Qa.isSupport() ? new Qa(a, e) : new Dc(a, e);
|
|
14389
14399
|
}
|
|
14390
14400
|
}
|
|
14391
|
-
class
|
|
14401
|
+
class Vc extends Gt {
|
|
14392
14402
|
constructor() {
|
|
14393
14403
|
super(...arguments);
|
|
14394
14404
|
g(this, "hasVideoTrack", !1);
|
|
@@ -14406,7 +14416,7 @@ class Mc extends Jt {
|
|
|
14406
14416
|
this.options = e, (t = this.videoScaler) == null || t.updateOptions(e);
|
|
14407
14417
|
}
|
|
14408
14418
|
isSupported() {
|
|
14409
|
-
return
|
|
14419
|
+
return zr.isSupport();
|
|
14410
14420
|
}
|
|
14411
14421
|
shouldUpdate(e) {
|
|
14412
14422
|
return this.hasVideoTrack !== !!e.currentVideoTrack;
|
|
@@ -14416,7 +14426,7 @@ class Mc extends Jt {
|
|
|
14416
14426
|
if (e.currentVideoTrack) {
|
|
14417
14427
|
if (this.hasVideoTrack = !0, !this.videoScaler) {
|
|
14418
14428
|
const i = this.options || this.initOptions;
|
|
14419
|
-
this.videoScaler =
|
|
14429
|
+
this.videoScaler = zr.getInstance(e.currentVideoTrack, i);
|
|
14420
14430
|
}
|
|
14421
14431
|
const t = this.videoScaler.getVideoTrack();
|
|
14422
14432
|
t && e.updateDualVideoTrack(t);
|
|
@@ -14428,10 +14438,10 @@ class Mc extends Jt {
|
|
|
14428
14438
|
super.clear(e), this.hasVideoTrack = !1, e == null || e.updateDualVideoTrack();
|
|
14429
14439
|
}
|
|
14430
14440
|
}
|
|
14431
|
-
var
|
|
14432
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
14441
|
+
var Fc = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, je = (r, a, e, t) => {
|
|
14442
|
+
for (var i = t > 1 ? void 0 : t ? Oc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
14433
14443
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
14434
|
-
return t && i &&
|
|
14444
|
+
return t && i && Fc(a, e, i), i;
|
|
14435
14445
|
};
|
|
14436
14446
|
class Pe extends De {
|
|
14437
14447
|
constructor(e) {
|
|
@@ -14465,7 +14475,7 @@ class Pe extends De {
|
|
|
14465
14475
|
g(this, "indicationTimer", 0);
|
|
14466
14476
|
g(this, "parameter", {});
|
|
14467
14477
|
const { signalingManager: t, slsReporter: i } = e;
|
|
14468
|
-
this.signalingManager = t, this.addSignalingManagerListener(), this.slsReporter = i, this.pluginManager = new
|
|
14478
|
+
this.signalingManager = t, this.addSignalingManagerListener(), this.slsReporter = i, this.pluginManager = new xc(), this.localStreamManager = new Ac(this.pluginManager, this.slsReporter), this.rtsManager = new bc(this.localStreamManager, this.slsReporter, this.parameter), this.self = new tc({
|
|
14469
14479
|
rtsManager: this.rtsManager,
|
|
14470
14480
|
localStreamManager: this.localStreamManager,
|
|
14471
14481
|
slsReporter: this.slsReporter,
|
|
@@ -14473,7 +14483,7 @@ class Pe extends De {
|
|
|
14473
14483
|
pluginManager: this.pluginManager,
|
|
14474
14484
|
audioVolumeIndicationInterval: this.audioVolumeIndicationInterval,
|
|
14475
14485
|
parameter: this.parameter
|
|
14476
|
-
}), this.audioMixerPlugin = new
|
|
14486
|
+
}), this.audioMixerPlugin = new wc(), this.pluginManager.add(this.audioMixerPlugin), this.dualVideoPlugin = new Vc("dualVideoPlugin"), T0() && this.pluginManager.add(new yc());
|
|
14477
14487
|
}
|
|
14478
14488
|
addSignalingManagerListener() {
|
|
14479
14489
|
this.signalingManager.on("onNotifyPublish", (e) => {
|
|
@@ -14545,7 +14555,7 @@ class Pe extends De {
|
|
|
14545
14555
|
var s;
|
|
14546
14556
|
if (!e)
|
|
14547
14557
|
return (s = this.publisher) == null ? void 0 : s.setViewConfig(null, t);
|
|
14548
|
-
const i =
|
|
14558
|
+
const i = jr(e);
|
|
14549
14559
|
i.length !== 0 && i.forEach((n) => {
|
|
14550
14560
|
var c, o;
|
|
14551
14561
|
(c = this.publisher) == null || c.resetElement(n), Object.values(this.usersViewMap).forEach(({ cameraViews: u = [], screenViews: h = [] }) => {
|
|
@@ -14558,7 +14568,7 @@ class Pe extends De {
|
|
|
14558
14568
|
var n, c;
|
|
14559
14569
|
if (!t)
|
|
14560
14570
|
return (n = this.userMap[e]) == null ? void 0 : n.setViewConfig(null, i);
|
|
14561
|
-
const s =
|
|
14571
|
+
const s = jr(t);
|
|
14562
14572
|
s.length !== 0 && (s.forEach((o) => {
|
|
14563
14573
|
var u;
|
|
14564
14574
|
(u = this.publisher) == null || u.resetElement(o), Object.values(this.usersViewMap).forEach(({ cameraViews: h = [], screenViews: p = [] }) => {
|
|
@@ -14622,7 +14632,7 @@ class Pe extends De {
|
|
|
14622
14632
|
if (!e)
|
|
14623
14633
|
return;
|
|
14624
14634
|
let t = 59 * 60 * 1e3;
|
|
14625
|
-
const i = (s =
|
|
14635
|
+
const i = (s = Z0(e)) == null ? void 0 : s.timeoutTs;
|
|
14626
14636
|
i && (t = i - Date.now() - 60 * 1e3), this.refreshUrlTimer = window.setTimeout(() => w(this, null, function* () {
|
|
14627
14637
|
var c;
|
|
14628
14638
|
const n = yield this.signalingManager.refreshUrl({
|
|
@@ -14705,7 +14715,7 @@ class Pe extends De {
|
|
|
14705
14715
|
* @returns {RemoteUser}
|
|
14706
14716
|
*/
|
|
14707
14717
|
executeAddUser(e, t, i) {
|
|
14708
|
-
const s = new
|
|
14718
|
+
const s = new mc({
|
|
14709
14719
|
userId: e,
|
|
14710
14720
|
displayName: t,
|
|
14711
14721
|
rtsManager: this.rtsManager,
|
|
@@ -14717,7 +14727,7 @@ class Pe extends De {
|
|
|
14717
14727
|
playoutVolume: this.playoutVolume,
|
|
14718
14728
|
parameter: this.parameter
|
|
14719
14729
|
});
|
|
14720
|
-
return s.on(
|
|
14730
|
+
return s.on(Me.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(oe.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(oe.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (n, c, o, u) => {
|
|
14721
14731
|
this.emit("audioSubscribeStateChanged", n, c, o, u, this.channel || "");
|
|
14722
14732
|
}), s.on("videoSubscribeStateChanged", (n, c, o, u) => {
|
|
14723
14733
|
this.emit("videoSubscribeStateChanged", n, c, o, u, this.channel || "");
|
|
@@ -14777,7 +14787,7 @@ class Pe extends De {
|
|
|
14777
14787
|
s[o] || c.push({
|
|
14778
14788
|
userid: o,
|
|
14779
14789
|
reason: "",
|
|
14780
|
-
leavecode:
|
|
14790
|
+
leavecode: ss.AliRtcUserOfflineQuit
|
|
14781
14791
|
});
|
|
14782
14792
|
}), this.userMap = s, { joinList: t, leaveList: c, presentList: i };
|
|
14783
14793
|
}
|
|
@@ -14867,7 +14877,7 @@ class Pe extends De {
|
|
|
14867
14877
|
Object.keys(t).forEach((c) => {
|
|
14868
14878
|
const o = this.parameter[c], u = t[c];
|
|
14869
14879
|
typeof o == "object" && typeof u == "object" ? this.parameter[c] = G(G({}, o), u) : this.parameter[c] = u;
|
|
14870
|
-
}), t.enableBlankAudio === !0 ? (this.blankAudioPlugin || (this.blankAudioPlugin = new
|
|
14880
|
+
}), t.enableBlankAudio === !0 ? (this.blankAudioPlugin || (this.blankAudioPlugin = new Cc()), this.pluginManager.has((i = this.blankAudioPlugin) == null ? void 0 : i.name) || this.pluginManager.add(this.blankAudioPlugin)) : t.enableBlankAudio === !1 && (this.blankAudioPlugin && this.pluginManager.remove((s = this.blankAudioPlugin) == null ? void 0 : s.name), (n = this.blankAudioPlugin) == null || n.clear(), this.blankAudioPlugin = void 0);
|
|
14871
14881
|
}
|
|
14872
14882
|
getParameter() {
|
|
14873
14883
|
return JSON.stringify(this.parameter);
|
|
@@ -14922,7 +14932,7 @@ je([
|
|
|
14922
14932
|
je([
|
|
14923
14933
|
D()
|
|
14924
14934
|
], Pe.prototype, "enableAudioVolumeIndication", 1);
|
|
14925
|
-
const
|
|
14935
|
+
const Lr = (r) => w(void 0, null, function* () {
|
|
14926
14936
|
const a = new Uint8Array(160).fill(170), e = new TextEncoder().encode(r), t = yield window.crypto.subtle.importKey(
|
|
14927
14937
|
"raw",
|
|
14928
14938
|
// 密钥格式
|
|
@@ -14942,7 +14952,7 @@ const Br = (r) => w(void 0, null, function* () {
|
|
|
14942
14952
|
);
|
|
14943
14953
|
return Array.from(new Uint8Array(i)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
14944
14954
|
});
|
|
14945
|
-
class
|
|
14955
|
+
class Uc {
|
|
14946
14956
|
constructor(a) {
|
|
14947
14957
|
g(this, "authInfo");
|
|
14948
14958
|
g(this, "slsReporter");
|
|
@@ -14953,7 +14963,7 @@ class Fc {
|
|
|
14953
14963
|
const t = this.authInfo;
|
|
14954
14964
|
if (!t)
|
|
14955
14965
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
14956
|
-
const i = "https://gw.rtn.aliyuncs.com", s =
|
|
14966
|
+
const i = "https://gw.rtn.aliyuncs.com", s = B0[a], n = {
|
|
14957
14967
|
appid: t.appId,
|
|
14958
14968
|
userid: t.userId,
|
|
14959
14969
|
channelid: t.channelId,
|
|
@@ -14986,7 +14996,7 @@ class Fc {
|
|
|
14986
14996
|
return w(this, null, function* () {
|
|
14987
14997
|
if (!this.authInfo)
|
|
14988
14998
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
14989
|
-
const t = yield
|
|
14999
|
+
const t = yield Lr(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
|
|
14990
15000
|
return this.doRequest(i, s);
|
|
14991
15001
|
});
|
|
14992
15002
|
}
|
|
@@ -15002,7 +15012,7 @@ class Fc {
|
|
|
15002
15012
|
return w(this, null, function* () {
|
|
15003
15013
|
if (!this.authInfo)
|
|
15004
15014
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
15005
|
-
const t = yield
|
|
15015
|
+
const t = yield Lr(a.split("?")[0]), i = Ue.MPU_TASK_TRANSACTION_UPDATE, s = e.toJson(i, this.authInfo, t, a);
|
|
15006
15016
|
return this.doRequest(i, s);
|
|
15007
15017
|
});
|
|
15008
15018
|
}
|
|
@@ -15018,21 +15028,21 @@ class Fc {
|
|
|
15018
15028
|
return w(this, null, function* () {
|
|
15019
15029
|
if (!this.authInfo)
|
|
15020
15030
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
15021
|
-
const e = yield
|
|
15031
|
+
const e = yield Lr(a.split("?")[0]), t = Ue.MPU_TASK_TRANSACTION_STOP, i = new Vr().toJson(t, this.authInfo, e, a);
|
|
15022
15032
|
return this.doRequest(t, i);
|
|
15023
15033
|
});
|
|
15024
15034
|
}
|
|
15025
15035
|
stopPublishLiveStreamWithTaskId(a) {
|
|
15026
15036
|
if (!this.authInfo)
|
|
15027
15037
|
return Promise.reject(ht.LiveTranscodingErrorInvalidParam);
|
|
15028
|
-
const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new
|
|
15038
|
+
const e = Ue.MPU_TASK_TRANSACTION_STOP, t = new Vr().toJson(e, this.authInfo, a);
|
|
15029
15039
|
return this.doRequest(e, t);
|
|
15030
15040
|
}
|
|
15031
15041
|
refreshAuthInfo(a) {
|
|
15032
15042
|
this.authInfo && this.setAuthInfo(G(G({}, this.authInfo), a));
|
|
15033
15043
|
}
|
|
15034
15044
|
}
|
|
15035
|
-
class
|
|
15045
|
+
class cs {
|
|
15036
15046
|
/**
|
|
15037
15047
|
* 检测是否是string类型
|
|
15038
15048
|
* @param {any} param
|
|
@@ -15080,7 +15090,7 @@ class ns {
|
|
|
15080
15090
|
if (!a.userId)
|
|
15081
15091
|
return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
|
|
15082
15092
|
if (a.timestamp) {
|
|
15083
|
-
if (!
|
|
15093
|
+
if (!cs.checkNumber(a.timestamp))
|
|
15084
15094
|
return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
|
|
15085
15095
|
} else
|
|
15086
15096
|
return new F(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
|
|
@@ -15103,7 +15113,7 @@ class ns {
|
|
|
15103
15113
|
return a && (a.width || a.height || a.frameRate || a.bitrateMax);
|
|
15104
15114
|
}
|
|
15105
15115
|
}
|
|
15106
|
-
class
|
|
15116
|
+
class Hc {
|
|
15107
15117
|
constructor(a) {
|
|
15108
15118
|
g(this, "taskProfile");
|
|
15109
15119
|
g(this, "encodeParam");
|
|
@@ -15117,7 +15127,7 @@ class Oc {
|
|
|
15117
15127
|
this.taskProfile = a;
|
|
15118
15128
|
}
|
|
15119
15129
|
}
|
|
15120
|
-
class
|
|
15130
|
+
class jc {
|
|
15121
15131
|
constructor(a, e, t) {
|
|
15122
15132
|
g(this, "userId");
|
|
15123
15133
|
g(this, "streamType");
|
|
@@ -15125,8 +15135,8 @@ class Uc {
|
|
|
15125
15135
|
this.userId = a, this.streamType = e, this.sourceType = t;
|
|
15126
15136
|
}
|
|
15127
15137
|
}
|
|
15128
|
-
class
|
|
15129
|
-
constructor(a, e, t, i = 0, s = 16777215, n =
|
|
15138
|
+
class zc {
|
|
15139
|
+
constructor(a, e, t, i = 0, s = 16777215, n = Ii.NOTO_SERIF_CJKSC_REGULAR) {
|
|
15130
15140
|
g(this, "x");
|
|
15131
15141
|
g(this, "y");
|
|
15132
15142
|
g(this, "fontSize");
|
|
@@ -15141,13 +15151,13 @@ class Hc {
|
|
|
15141
15151
|
y: Ye(this.y, e),
|
|
15142
15152
|
fonttype: this.fontType,
|
|
15143
15153
|
fontsize: this.fontSize,
|
|
15144
|
-
fontcolor:
|
|
15154
|
+
fontcolor: rs(this.fontColor),
|
|
15145
15155
|
zorder: this.zOrder
|
|
15146
15156
|
};
|
|
15147
15157
|
}
|
|
15148
15158
|
}
|
|
15149
|
-
var
|
|
15150
|
-
class
|
|
15159
|
+
var Rn = /* @__PURE__ */ ((r) => (r[r.NOT_DISPLAY = 0] = "NOT_DISPLAY", r[r.ALWAYS = 1] = "ALWAYS", r[r.WHEN_NO_VIDEO = 2] = "WHEN_NO_VIDEO", r))(Rn || {});
|
|
15160
|
+
class In {
|
|
15151
15161
|
constructor(a, e, t, i, s, n = 0, c = 1, o = 1) {
|
|
15152
15162
|
g(this, "url");
|
|
15153
15163
|
g(this, "x");
|
|
@@ -15172,9 +15182,9 @@ class Cn {
|
|
|
15172
15182
|
};
|
|
15173
15183
|
}
|
|
15174
15184
|
}
|
|
15175
|
-
g(
|
|
15176
|
-
class
|
|
15177
|
-
constructor(a, e, t, i, s = 0, n = 16777215, c =
|
|
15185
|
+
g(In, "DisplayType", Rn);
|
|
15186
|
+
class Wc {
|
|
15187
|
+
constructor(a, e, t, i, s = 0, n = 16777215, c = Ii.NOTO_SERIF_CJKSC_REGULAR) {
|
|
15178
15188
|
g(this, "text");
|
|
15179
15189
|
g(this, "x");
|
|
15180
15190
|
g(this, "y");
|
|
@@ -15191,12 +15201,12 @@ class jc {
|
|
|
15191
15201
|
y: Ye(this.y, e),
|
|
15192
15202
|
fonttype: this.fontType,
|
|
15193
15203
|
fontsize: this.fontSize,
|
|
15194
|
-
fontcolor:
|
|
15204
|
+
fontcolor: rs(this.fontColor),
|
|
15195
15205
|
zorder: this.zOrder
|
|
15196
15206
|
};
|
|
15197
15207
|
}
|
|
15198
15208
|
}
|
|
15199
|
-
class
|
|
15209
|
+
class $c {
|
|
15200
15210
|
constructor(a, e, t, i, s, n = 0, c) {
|
|
15201
15211
|
g(this, "userId");
|
|
15202
15212
|
g(this, "x");
|
|
@@ -15205,7 +15215,7 @@ class zc {
|
|
|
15205
15215
|
g(this, "height");
|
|
15206
15216
|
g(this, "zOrder");
|
|
15207
15217
|
g(this, "sourceType");
|
|
15208
|
-
g(this, "segmentType",
|
|
15218
|
+
g(this, "segmentType", Ei.LiveTranscodingNoBody);
|
|
15209
15219
|
g(this, "images", []);
|
|
15210
15220
|
g(this, "texts", []);
|
|
15211
15221
|
typeof a == "number" ? this.userId = a.toString() : this.userId = a, this.x = e, this.y = t, this.width = i, this.height = s, this.zOrder = n, c && (this.sourceType = c);
|
|
@@ -15223,26 +15233,26 @@ class zc {
|
|
|
15223
15233
|
images: this.images.map((n) => n.toJson(e, t)),
|
|
15224
15234
|
texts: this.texts.map((n) => n.toJson(e, t))
|
|
15225
15235
|
};
|
|
15226
|
-
return this.sourceType &&
|
|
15236
|
+
return this.sourceType && ii[this.sourceType] ? s.sourcetype = ii[this.sourceType] : s.sourcetype = ii[ni.LiveTranscodingCamera], this.segmentType && i === is.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = Ei.LiveTranscodingNoBody, s;
|
|
15227
15237
|
}
|
|
15228
15238
|
}
|
|
15229
|
-
const
|
|
15239
|
+
const Lt = class Lt {
|
|
15230
15240
|
constructor() {
|
|
15231
15241
|
// 使用 static 声明实例
|
|
15232
15242
|
g(this, "ntpClock");
|
|
15233
15243
|
this.ntpClock = new le.Clock();
|
|
15234
15244
|
}
|
|
15235
15245
|
static getInstance() {
|
|
15236
|
-
return
|
|
15246
|
+
return Lt.instance || (Lt.instance = new Lt()), Lt.instance;
|
|
15237
15247
|
}
|
|
15238
15248
|
now() {
|
|
15239
15249
|
return this.ntpClock.now();
|
|
15240
15250
|
}
|
|
15241
15251
|
};
|
|
15242
|
-
g(
|
|
15243
|
-
let
|
|
15244
|
-
const
|
|
15245
|
-
class
|
|
15252
|
+
g(Lt, "instance");
|
|
15253
|
+
let Wr = Lt;
|
|
15254
|
+
const wn = () => Wr.getInstance(), { BrowserUtil: Mr, SystenUtil: tn } = le;
|
|
15255
|
+
class rn {
|
|
15246
15256
|
constructor() {
|
|
15247
15257
|
g(this, "tracker");
|
|
15248
15258
|
g(this, "param");
|
|
@@ -15252,13 +15262,13 @@ class en {
|
|
|
15252
15262
|
g(this, "slsToken");
|
|
15253
15263
|
g(this, "ossToken");
|
|
15254
15264
|
g(this, "ntpClock");
|
|
15255
|
-
this.ntpClock =
|
|
15265
|
+
this.ntpClock = wn();
|
|
15256
15266
|
}
|
|
15257
15267
|
createTracker() {
|
|
15258
15268
|
if (!this.tracker && this.slsToken && this.param) {
|
|
15259
15269
|
const a = this.slsToken;
|
|
15260
15270
|
this.ossToken && (this.param.ossbn = this.ossToken.bucket_name, this.param.ossep = this.ossToken.region_endpoint);
|
|
15261
|
-
const e = new
|
|
15271
|
+
const e = new Gr({
|
|
15262
15272
|
host: a.region_endpoint,
|
|
15263
15273
|
project: a.project,
|
|
15264
15274
|
logstore: a.log_store_stats
|
|
@@ -15272,7 +15282,7 @@ class en {
|
|
|
15272
15282
|
}
|
|
15273
15283
|
};
|
|
15274
15284
|
this.stsOpt = t;
|
|
15275
|
-
const i =
|
|
15285
|
+
const i = Zr(t);
|
|
15276
15286
|
e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, n) => {
|
|
15277
15287
|
var c, o;
|
|
15278
15288
|
(o = this.tracker) == null || o.send(G(ut(G({}, this.param), { stat_log_id: `${((c = this.param) == null ? void 0 : c.sesid) || "nosession"}-${n}` }), s));
|
|
@@ -15302,7 +15312,7 @@ class en {
|
|
|
15302
15312
|
try {
|
|
15303
15313
|
e = JSON.parse(
|
|
15304
15314
|
JSON.stringify(G(ut(G({
|
|
15305
|
-
bt:
|
|
15315
|
+
bt: Mr.browserName || "unknown",
|
|
15306
15316
|
ntptm: this.ntpClock.now(),
|
|
15307
15317
|
// NTP时间
|
|
15308
15318
|
ntpofs: this.ntpClock.now() - Date.now()
|
|
@@ -15334,18 +15344,18 @@ class en {
|
|
|
15334
15344
|
sessionId: a.sessionId,
|
|
15335
15345
|
channelid: a.channelId,
|
|
15336
15346
|
usrn: a.userId,
|
|
15337
|
-
osn:
|
|
15338
|
-
osv:
|
|
15339
|
-
deb:
|
|
15340
|
-
den:
|
|
15347
|
+
osn: tn.systemName,
|
|
15348
|
+
osv: tn.systemVersion,
|
|
15349
|
+
deb: y0(),
|
|
15350
|
+
den: E0(),
|
|
15341
15351
|
udid: e,
|
|
15342
|
-
sdkvrs:
|
|
15352
|
+
sdkvrs: yi,
|
|
15343
15353
|
acs: "Unknown",
|
|
15344
|
-
cput:
|
|
15354
|
+
cput: ln(),
|
|
15345
15355
|
dm: `${window.location.protocol}//${window.location.host}`,
|
|
15346
15356
|
// bt 需要保证不为空
|
|
15347
|
-
bt:
|
|
15348
|
-
bv:
|
|
15357
|
+
bt: Mr.browserName,
|
|
15358
|
+
bv: Mr.browserVersion,
|
|
15349
15359
|
envir: "PRODUCT",
|
|
15350
15360
|
args: "",
|
|
15351
15361
|
instid: rt()
|
|
@@ -15366,26 +15376,26 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15366
15376
|
return "0.00";
|
|
15367
15377
|
let e = r;
|
|
15368
15378
|
return (!e || e < 0) && (e = 0), (e / a * 100).toFixed(2);
|
|
15369
|
-
},
|
|
15379
|
+
}, sn = (r) => r >= 0 && r <= 1 ? fe(Math.floor(32767 * r), 1, 32767) : 0, pe = (r, a) => {
|
|
15370
15380
|
var t, i, s;
|
|
15371
15381
|
let e = ((t = r._last) == null ? void 0 : t[a]) || 0;
|
|
15372
15382
|
return r.ssrc && ((i = r._last) != null && i.ssrc) && r.ssrc !== ((s = r._last) == null ? void 0 : s.ssrc) && (e = 0), ((r == null ? void 0 : r[a]) || 0) - e;
|
|
15373
|
-
},
|
|
15383
|
+
}, Kc = (r, a) => {
|
|
15374
15384
|
var e, t, i;
|
|
15375
15385
|
return (((e = r == null ? void 0 : r._source) == null ? void 0 : e[a]) || 0) - (((i = (t = r == null ? void 0 : r._last) == null ? void 0 : t._source) == null ? void 0 : i[a]) || 0);
|
|
15376
|
-
},
|
|
15386
|
+
}, an = (r, a) => fe(pe(r, a), 1e3, 1e4), kt = (r, a = 2e7) => fe(r, 1, a), si = class si {
|
|
15377
15387
|
constructor(a) {
|
|
15378
15388
|
g(this, "engine");
|
|
15379
15389
|
g(this, "logClient");
|
|
15380
15390
|
g(this, "authInfo");
|
|
15381
15391
|
g(this, "ntpClock");
|
|
15382
|
-
this.logClient = new
|
|
15392
|
+
this.logClient = new rn(), this.engine = a, this.ntpClock = wn();
|
|
15383
15393
|
}
|
|
15384
15394
|
static getLogClient() {
|
|
15385
|
-
return this.staticClient || (this.staticClient = new
|
|
15395
|
+
return this.staticClient || (this.staticClient = new rn()), this.staticClient;
|
|
15386
15396
|
}
|
|
15387
15397
|
static reportOSSUpload(a, e, t = 0) {
|
|
15388
|
-
|
|
15398
|
+
si.getLogClient().sendReport({
|
|
15389
15399
|
errmsg: `${e}/${a}.log`,
|
|
15390
15400
|
errtype: t,
|
|
15391
15401
|
evetid: 70017,
|
|
@@ -15402,7 +15412,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15402
15412
|
this.authInfo = a, this.logClient.start(a);
|
|
15403
15413
|
}
|
|
15404
15414
|
updateToken(a, e) {
|
|
15405
|
-
this.logClient.updateToken(a, e),
|
|
15415
|
+
this.logClient.updateToken(a, e), si.getLogClient().updateToken(a, e);
|
|
15406
15416
|
}
|
|
15407
15417
|
/**
|
|
15408
15418
|
* 断开连接
|
|
@@ -15417,7 +15427,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15417
15427
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15418
15428
|
src: s[0].ssrc || "",
|
|
15419
15429
|
codec: s[0]._codec || ""
|
|
15420
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [],
|
|
15430
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [];
|
|
15421
15431
|
try {
|
|
15422
15432
|
if (s.forEach((I) => {
|
|
15423
15433
|
var V, N, J, j, ce, Z;
|
|
@@ -15433,21 +15443,21 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15433
15443
|
p.push(te);
|
|
15434
15444
|
const ee = pe(I, "packetsLost"), k = Ge(ee, P);
|
|
15435
15445
|
d.push(k);
|
|
15436
|
-
const
|
|
15437
|
-
if (f.push(
|
|
15438
|
-
(N = I._source) != null && N.audioLevel && m.push(
|
|
15446
|
+
const M = Pt(ee, Q);
|
|
15447
|
+
if (f.push(M), n)
|
|
15448
|
+
(N = I._source) != null && N.audioLevel && m.push(sn(I._source.audioLevel)), l.push(0);
|
|
15439
15449
|
else {
|
|
15440
|
-
x.push(
|
|
15450
|
+
x.push(an(I, "totalEncodeTime")), v.push(kt((J = I._source) == null ? void 0 : J.framesPerSecond, 100)), S.push(kt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(kt(I.framesPerSecond, 100)), E.push(kt((ce = I._source) == null ? void 0 : ce.height, 4400)), _.push(kt((Z = I._source) == null ? void 0 : Z.width, 7700)), y.push(kt(I.frameHeight, 4400)), A.push(kt(I.frameWidth, 7700));
|
|
15441
15451
|
const Fe = pe(I, "totalPacketSendDelay");
|
|
15442
15452
|
R.push(fe(Fe, 1 / (ee || 1), 2e3));
|
|
15443
15453
|
const ze = pe(I, "qpSum");
|
|
15444
|
-
|
|
15454
|
+
L.push(fe(ze, 1 / (I.framesPerSecond || 1), 51)), C.push(0);
|
|
15445
15455
|
}
|
|
15446
15456
|
}), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps = p.join(","), c.pl = d.join(","), c.plr = f.join(","), n) {
|
|
15447
15457
|
const I = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
15448
15458
|
c.ailevel = m.join(","), c.arpc = l.join(","), c.arsr = I, c.aesr = I, c.publevel = -90, c.rawlevel = -90;
|
|
15449
15459
|
} else
|
|
15450
|
-
c.em = x.join(","), c.cfps = v.join(","), c.ifps = S.join(","), c.sfps = b.join(","), c.ih = E.join(","), c.iw = _.join(","), c.sh = y.join(","), c.sw = A.join(","), c.sd = R.join(","), c.aqp =
|
|
15460
|
+
c.em = x.join(","), c.cfps = v.join(","), c.ifps = S.join(","), c.sfps = b.join(","), c.ih = E.join(","), c.iw = _.join(","), c.sh = y.join(","), c.sw = A.join(","), c.sd = R.join(","), c.aqp = L.join(","), c.caf = C.join(","), c.can = C.join(","), c.cav = u.join(","), c.ifimax = C.join(","), c.ifimin = C.join(","), c.efimax = C.join(","), c.efimin = C.join(","), c.sfimax = C.join(","), c.sfimin = C.join(","), c.apsnr = C.join(",");
|
|
15451
15461
|
} catch (I) {
|
|
15452
15462
|
}
|
|
15453
15463
|
this.log({
|
|
@@ -15468,7 +15478,7 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15468
15478
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15469
15479
|
src: s[0].ssrc || "",
|
|
15470
15480
|
codec: s[0]._codec || ""
|
|
15471
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [],
|
|
15481
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], m = [], l = [], x = [], v = [], S = [], b = [], E = [], _ = [], y = [], A = [], R = [], L = [], C = [], I = [], P = [], B = [], $ = [], q = [], X = [], ae = [], Q = [], te = [], ee = [], k = [], M = [], V = [], N = [], J = [];
|
|
15472
15482
|
try {
|
|
15473
15483
|
s.forEach((j) => {
|
|
15474
15484
|
var tt, It;
|
|
@@ -15484,11 +15494,11 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15484
15494
|
p.push(ke);
|
|
15485
15495
|
const ot = pe(j, "packetsLost"), yt = Ge(ot, ce);
|
|
15486
15496
|
d.push(yt);
|
|
15487
|
-
const
|
|
15488
|
-
f.push(
|
|
15489
|
-
const Ct = pe(j, "jitterBufferDelay"),
|
|
15497
|
+
const Ht = Pt(ot, Se);
|
|
15498
|
+
f.push(Ht);
|
|
15499
|
+
const Ct = pe(j, "jitterBufferDelay"), Yt = pe(j, "jitterBufferEmittedCount");
|
|
15490
15500
|
if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
|
|
15491
|
-
const gt = fe(Ct, 1e3 /
|
|
15501
|
+
const gt = fe(Ct, 1e3 / Yt, 1e4);
|
|
15492
15502
|
m.push(gt);
|
|
15493
15503
|
} else
|
|
15494
15504
|
m.push(0);
|
|
@@ -15496,34 +15506,34 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
15496
15506
|
b.push(Pt(Rt, Se));
|
|
15497
15507
|
const Be = pe(j, "retransmittedPacketsReceived"), Re = Se + ot - Be;
|
|
15498
15508
|
if (x.push(Pt(Se - Be, Re)), v.push(Pt(ot, Re)), l.push(Pt(Be, Re)), S.push(Re), N.push(0), J.push(""), n) {
|
|
15499
|
-
_.push(
|
|
15500
|
-
const gt =
|
|
15509
|
+
_.push(sn(j.audioLevel));
|
|
15510
|
+
const gt = Kc(j, "synthesizedSamplesEvents");
|
|
15501
15511
|
y.push(gt);
|
|
15502
|
-
const it =
|
|
15512
|
+
const it = an(j, "synthesizedSamplesDuration");
|
|
15503
15513
|
A.push(it);
|
|
15504
15514
|
const ct = Pt(it, ce);
|
|
15505
15515
|
E.push(ct), R.push(0);
|
|
15506
15516
|
} else {
|
|
15507
15517
|
const gt = (It = j._last) != null && It.totalInterFrameDelay ? j.totalInterFrameDelay - j._last.totalInterFrameDelay : 0;
|
|
15508
|
-
|
|
15518
|
+
L.push(fe(gt, 1e3 / (j.framesDecoded || 30), 500)), C.push(fe(j.framesPerSecond, 1, 100)), I.push(pe(j, "framesReceived")), V.push(pe(j, "framesRendered")), P.push(fe(j.frameHeight, 1, 4400)), B.push(fe(j.frameWidth, 1, 7700));
|
|
15509
15519
|
const it = pe(j, "totalProcessingDelay");
|
|
15510
15520
|
$.push(fe(it, 1e3 / (j.framesDecoded || 30), 12e4));
|
|
15511
15521
|
const ct = pe(j, "nackCount");
|
|
15512
15522
|
X.push(ct);
|
|
15513
|
-
const
|
|
15514
|
-
q.push(
|
|
15515
|
-
const
|
|
15516
|
-
ae.push(fe(
|
|
15517
|
-
const
|
|
15518
|
-
te.push(fe(
|
|
15523
|
+
const ki = pe(j, "pliCount");
|
|
15524
|
+
q.push(ki);
|
|
15525
|
+
const ui = pe(j, "qpSum");
|
|
15526
|
+
ae.push(fe(ui, 1 / (j.framesPerSecond || 1), 51)), Q.push(fe(j.framesDropped));
|
|
15527
|
+
const hi = pe(j, "totalFreezesDuration");
|
|
15528
|
+
te.push(fe(hi, 1e3, 3e4));
|
|
15519
15529
|
const We = pe(j, "jitterBufferEmittedCount"), mt = pe(j, "jitterBufferDelay");
|
|
15520
15530
|
mt && We ? ee.push(fe(mt, 1e3 / We, 3e4)) : ee.push(0);
|
|
15521
|
-
const
|
|
15522
|
-
|
|
15523
|
-
const
|
|
15524
|
-
|
|
15531
|
+
const di = pe(j, "jitterBufferTargetDelay");
|
|
15532
|
+
di && We ? k.push(fe(di, 1e3 / We, 3e4)) : k.push(0);
|
|
15533
|
+
const Zt = pe(j, "jitterBufferMinimumDelay");
|
|
15534
|
+
Zt && We ? M.push(fe(Zt, 1e3 / We, 3e4)) : M.push(0);
|
|
15525
15535
|
}
|
|
15526
|
-
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = S.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm =
|
|
15536
|
+
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = S.join(","), n ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = y.join(","), c.sdura = A.join(",")) : (c.dm = L.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns = X.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = N.join(","), c.ofimin = N.join(","), c.dfimax = N.join(","), c.dfimin = N.join(","), c.rfimax = N.join(","), c.rfimin = N.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = k.join(","), c.pdm = M.join(","), c.ofps = V.join(","), c.dfbd = Q.join(","));
|
|
15527
15537
|
} catch (j) {
|
|
15528
15538
|
}
|
|
15529
15539
|
this.log({
|
|
@@ -16126,12 +16136,12 @@ const fe = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
16126
16136
|
return e;
|
|
16127
16137
|
}
|
|
16128
16138
|
};
|
|
16129
|
-
g(
|
|
16130
|
-
let
|
|
16131
|
-
var
|
|
16132
|
-
for (var i = t > 1 ? void 0 : t ?
|
|
16139
|
+
g(si, "staticClient");
|
|
16140
|
+
let $r = si;
|
|
16141
|
+
var qc = Object.defineProperty, Jc = Object.getOwnPropertyDescriptor, W = (r, a, e, t) => {
|
|
16142
|
+
for (var i = t > 1 ? void 0 : t ? Jc(a, e) : a, s = r.length - 1, n; s >= 0; s--)
|
|
16133
16143
|
(n = r[s]) && (i = (t ? n(a, e, i) : n(i)) || i);
|
|
16134
|
-
return t && i &&
|
|
16144
|
+
return t && i && qc(a, e, i), i;
|
|
16135
16145
|
}, K;
|
|
16136
16146
|
const z = (K = class extends De {
|
|
16137
16147
|
constructor(e) {
|
|
@@ -16152,7 +16162,7 @@ const z = (K = class extends De {
|
|
|
16152
16162
|
g(this, "_serverCheckAuthInfoTimestamp", null);
|
|
16153
16163
|
g(this, "_localCheckAuthInfoTimestamp", null);
|
|
16154
16164
|
const t = Date.now();
|
|
16155
|
-
O.init(), this.slsReporter = new
|
|
16165
|
+
O.init(), this.slsReporter = new $r(this), this.channelProfile = bt.AliRtcSdkCommunication, this.clientRole = Bt.AliRtcSdkLive, this.liveTranscoding = new Uc(this.slsReporter), this.signalingManager = new ns(
|
|
16156
16166
|
this.channelProfile,
|
|
16157
16167
|
this.clientRole,
|
|
16158
16168
|
this.slsReporter,
|
|
@@ -16175,7 +16185,7 @@ const z = (K = class extends De {
|
|
|
16175
16185
|
), this.slsReporter.reportSDKCreated(t);
|
|
16176
16186
|
}
|
|
16177
16187
|
static getSdkVersion() {
|
|
16178
|
-
return
|
|
16188
|
+
return yi;
|
|
16179
16189
|
}
|
|
16180
16190
|
static setLogLevel(e) {
|
|
16181
16191
|
O.setLogLevel(e);
|
|
@@ -16227,23 +16237,23 @@ const z = (K = class extends De {
|
|
|
16227
16237
|
*/
|
|
16228
16238
|
addPublisherListeners() {
|
|
16229
16239
|
var e, t, i, s, n, c, o, u, h, p;
|
|
16230
|
-
(e = this.publisher) == null || e.on(
|
|
16240
|
+
(e = this.publisher) == null || e.on(Me.Local, (d) => {
|
|
16231
16241
|
O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
|
|
16232
|
-
}), (t = this.publisher) == null || t.on(
|
|
16242
|
+
}), (t = this.publisher) == null || t.on(Vt.VideoTrackEnded, () => {
|
|
16233
16243
|
O.event("[Publisher] VideoTrack Ended"), this.emit(
|
|
16234
16244
|
"localDeviceException",
|
|
16235
16245
|
dt.AliEngineLocalDeviceTypeCamera,
|
|
16236
16246
|
_e.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
|
|
16237
16247
|
""
|
|
16238
16248
|
);
|
|
16239
|
-
}), (i = this.publisher) == null || i.on(
|
|
16249
|
+
}), (i = this.publisher) == null || i.on(Vt.ScreenTrackEnded, () => {
|
|
16240
16250
|
O.event("[Publisher] ScreenTrack Ended"), this.emit(
|
|
16241
16251
|
"localDeviceException",
|
|
16242
16252
|
dt.AliEngineLocalDeviceTypeDisplay,
|
|
16243
16253
|
_e.AliEngineLocalDeviceExceptionTypeDisplayException,
|
|
16244
16254
|
""
|
|
16245
16255
|
);
|
|
16246
|
-
}), (s = this.publisher) == null || s.on(
|
|
16256
|
+
}), (s = this.publisher) == null || s.on(Vt.AudioTrackEnded, () => {
|
|
16247
16257
|
O.event("[Publisher] AudioTrack Ended"), this.emit(
|
|
16248
16258
|
"localDeviceException",
|
|
16249
16259
|
dt.AliEngineLocalDeviceTypeMic,
|
|
@@ -16291,7 +16301,7 @@ const z = (K = class extends De {
|
|
|
16291
16301
|
})), this.bizControl.rtsManager.on("seimessage", (e, t, i) => {
|
|
16292
16302
|
const s = this.remoteUsers.find((n) => n.streamUrl === e);
|
|
16293
16303
|
s && this.emit("mediaExtensionMsgReceived", s.userId, i, t);
|
|
16294
|
-
}), this.bizControl.on(
|
|
16304
|
+
}), this.bizControl.on(Me.Remote, (e, t) => {
|
|
16295
16305
|
O.event(`[${K.logName}]`, "RemoteUser Device Status Change", e, t);
|
|
16296
16306
|
}), this.bizControl.on("remoteTrackAvailableChange", (e, t, i) => {
|
|
16297
16307
|
this.emit("remoteTrackAvailableNotify", e, t, i);
|
|
@@ -16364,7 +16374,7 @@ const z = (K = class extends De {
|
|
|
16364
16374
|
O.event("[Signaling] Connect Failed ", e), this.onError(e), this.backToUnpublishStatus(), this.connectState = ue.AliRtcConnectionStatusFailed, this.emit(
|
|
16365
16375
|
"connectionStatusChange",
|
|
16366
16376
|
ue.AliRtcConnectionStatusFailed,
|
|
16367
|
-
|
|
16377
|
+
Wt.AliRtcConnectionChangedNetworkInterrupted
|
|
16368
16378
|
);
|
|
16369
16379
|
}), this.signalingManager.on("onNetworkError", (e) => {
|
|
16370
16380
|
this.slsReporter.reportWarning("signaling network error"), O.event("[Signaling] Network error ", e), this.onNetworkError();
|
|
@@ -16374,7 +16384,7 @@ const z = (K = class extends De {
|
|
|
16374
16384
|
O.event("[Signaling] Reconnect Start "), this.connectState = ue.AliRtcConnectionStatusReconnecting, this.emit(
|
|
16375
16385
|
"connectionStatusChange",
|
|
16376
16386
|
ue.AliRtcConnectionStatusReconnecting,
|
|
16377
|
-
|
|
16387
|
+
Wt.AliRtcConnectionSignalingConnecting
|
|
16378
16388
|
);
|
|
16379
16389
|
}), this.signalingManager.on("onReconnectSuccess", (e) => {
|
|
16380
16390
|
O.event("[Signaling] Reconnect Success ", e), this.onNetworkRecovery(e);
|
|
@@ -16408,7 +16418,7 @@ const z = (K = class extends De {
|
|
|
16408
16418
|
* @returns {void}
|
|
16409
16419
|
*/
|
|
16410
16420
|
onLocalDeviceStatusChange(e) {
|
|
16411
|
-
O.event(`[${K.logName}]`,
|
|
16421
|
+
O.event(`[${K.logName}]`, Me.Local, e), this.signalingManager.reportStatus(e).then(() => {
|
|
16412
16422
|
O.debug("[signaling] reportStatus suc");
|
|
16413
16423
|
}).catch((t) => {
|
|
16414
16424
|
O.error("[signaling] reportStatus failed", t);
|
|
@@ -16454,7 +16464,7 @@ const z = (K = class extends De {
|
|
|
16454
16464
|
), !this.bizControl.rtsManager.isConnected && !this.bizControl.rtsManager.isConnecting ? (this.currentRoleCanPublish && (yield this.resumePublishForNetworkRecovery()), yield this.resumeSubList()) : e && (yield this.resumeSubList(e)), this.networkError && (this.networkError = !1, (t = this.publisher) == null || t.reportSelfDeviceStatus(), this.connectState = ue.AliRtcConnectionStatusConnected, this.emit(
|
|
16455
16465
|
"connectionStatusChange",
|
|
16456
16466
|
ue.AliRtcConnectionStatusConnected,
|
|
16457
|
-
|
|
16467
|
+
Wt.AliRtcConnectionSignalingHeartbeatAlive
|
|
16458
16468
|
));
|
|
16459
16469
|
});
|
|
16460
16470
|
}
|
|
@@ -16467,7 +16477,7 @@ const z = (K = class extends De {
|
|
|
16467
16477
|
leaveList: i,
|
|
16468
16478
|
presentList: s
|
|
16469
16479
|
}), this.handleUsersJoin(t), i.forEach((n) => {
|
|
16470
|
-
O.event(K.logName, oe.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid,
|
|
16480
|
+
O.event(K.logName, oe.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid, ss.AliRtcUserOfflineQuit);
|
|
16471
16481
|
});
|
|
16472
16482
|
for (let n = 0; n < s.length; n++) {
|
|
16473
16483
|
const c = s[n], o = c.userid, u = this.bizControl.getRemoteUser(o);
|
|
@@ -16500,7 +16510,7 @@ const z = (K = class extends De {
|
|
|
16500
16510
|
this.connectState === ue.AliRtcConnectionStatusConnected && (this.networkError || (this.connectState = ue.AliRtcConnectionStatusDisconnected, this.emit(
|
|
16501
16511
|
"connectionStatusChange",
|
|
16502
16512
|
ue.AliRtcConnectionStatusDisconnected,
|
|
16503
|
-
|
|
16513
|
+
Wt.AliRtcConnectionChangedNetworkInterrupted
|
|
16504
16514
|
)), this.networkError = !0);
|
|
16505
16515
|
}
|
|
16506
16516
|
/**
|
|
@@ -16657,7 +16667,7 @@ const z = (K = class extends De {
|
|
|
16657
16667
|
const c = {
|
|
16658
16668
|
start: Date.now()
|
|
16659
16669
|
};
|
|
16660
|
-
let o =
|
|
16670
|
+
let o = cs.checkAuthInfo(s);
|
|
16661
16671
|
if (ue.AliRtcConnectionStatusInit === this.connectState || ue.AliRtcConnectionStatusDisconnected === this.connectState || ue.AliRtcConnectionStatusFailed === this.connectState) {
|
|
16662
16672
|
if (s.sessionId = He.createCallid("web"), this.slsReporter.start(s), this.slsReporter.reportConnectionLatencyEvent(
|
|
16663
16673
|
Je.JOIN,
|
|
@@ -17113,7 +17123,7 @@ const z = (K = class extends De {
|
|
|
17113
17123
|
if (this._audioOnlyMode)
|
|
17114
17124
|
throw new F(U.ERR_INNER, "Cannot switch camera in audio only mode");
|
|
17115
17125
|
const i = {};
|
|
17116
|
-
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : t || (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ?
|
|
17126
|
+
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : t || (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? oi.CAMERA_FRONT : oi.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
|
|
17117
17127
|
(u = (o = this.publisher) == null ? void 0 : o.cameraTrack) == null || u.stop();
|
|
17118
17128
|
const p = {
|
|
17119
17129
|
video: !0
|
|
@@ -17347,11 +17357,11 @@ g(K, "logError", !0), /**
|
|
|
17347
17357
|
* @param {string} direction
|
|
17348
17358
|
* @returns {Promise<AliRtcCheckResult>}
|
|
17349
17359
|
*/
|
|
17350
|
-
g(K, "isSupported",
|
|
17360
|
+
g(K, "isSupported", D0), /**
|
|
17351
17361
|
* 检查浏览器是否支持开启大小流
|
|
17352
17362
|
* @returns {boolean}
|
|
17353
17363
|
*/
|
|
17354
|
-
g(K, "isDualVideoStreamSupported",
|
|
17364
|
+
g(K, "isDualVideoStreamSupported", zr.isSupport), /**
|
|
17355
17365
|
* 获取摄像头列表
|
|
17356
17366
|
* @returns {Promise<string[]>}
|
|
17357
17367
|
*/
|
|
@@ -17361,7 +17371,7 @@ g(K, "getCameraList", () => w(K, null, function* () {
|
|
|
17361
17371
|
return (yield le.getMicList()).filter((t) => t.deviceId);
|
|
17362
17372
|
})), g(K, "getSpeakerList", () => w(K, null, function* () {
|
|
17363
17373
|
return (yield le.getSpeakerList()).filter((t) => t.deviceId);
|
|
17364
|
-
})), g(K, "_instance"), g(K, "AliRtcSdkChannelProfile", bt), g(K, "AliRtcSdkClientRole", Bt), g(K, "AliRtcVideoStreamType", we), g(K, "AliRtcVideoTrack", se), g(K, "AliRtcAudioTrack",
|
|
17374
|
+
})), g(K, "_instance"), g(K, "AliRtcSdkChannelProfile", bt), g(K, "AliRtcSdkClientRole", Bt), g(K, "AliRtcVideoStreamType", we), g(K, "AliRtcVideoTrack", se), g(K, "AliRtcAudioTrack", Xt), g(K, "AliRtcPublishState", Y), g(K, "AliRtcSubscribeState", he), g(K, "AliRtcRawDataStreamType", be), g(K, "AliRtcLogLevel", fn), g(K, "AliRtcEngineLocalDeviceType", dt), g(K, "AliRtcEngineLocalDeviceExceptionType", _e), g(K, "AliRtcConnectionStatus", ue), g(K, "AliRtcConnectionStatusChangeReason", Wt), g(K, "AliRtcPlugin", Gt), g(K, "AliRtcPluginTrackType", Ri), g(K, "AliRtcLiveTranscodingParam", Vr), g(K, "AliRtcLiveTranscodingEncodeParam", vn), g(K, "AliRtcLiveTranscodingMixParam", Hc), g(K, "AliRtcLiveTranscodingSingleParam", jc), g(K, "AliRtcTranscodingClockWidget", zc), g(K, "AliRtcTranscodingImage", In), g(K, "AliRtcTranscodingText", Wc), g(K, "AliRtcTranscodingUser", $c), g(K, "AliRtcLiveTranscodingMixMode", bi), g(K, "AliRtcLiveTranscodingStreamType", pn), g(K, "AliRtcLiveTranscodingSourceType", ni), g(K, "AliRtcLiveTranscodingTaskProfile", gn), g(K, "AliRtcLiveTranscodingAudioSampleRate", ts), g(K, "AliRtcLiveTranscodingSegmentType", Ei), g(K, "AliRtcLiveTranscodingFontType", Ii), g(K, "AliRtcLiveTranscodingCropMode", mn), g(K, "AliRtcLiveTranscodingMediaProcessMode", is), g(K, "AliRtcLiveTranscodingState", xn), g(K, "AliRtcLiveTranscodingErrorCode", ht), g(K, "AliRtcTrascodingPublishTaskStatus", Sn), g(K, "AliRtcDataChannelMsg", qt), g(K, "AliRtcDataMsgType", An), g(K, "Plugin", Gt), K);
|
|
17365
17375
|
W([
|
|
17366
17376
|
D()
|
|
17367
17377
|
], z.prototype, "destroy", 1);
|
|
@@ -17590,56 +17600,56 @@ W([
|
|
|
17590
17600
|
W([
|
|
17591
17601
|
D(H)
|
|
17592
17602
|
], z, "setLogLevel", 1);
|
|
17593
|
-
let
|
|
17594
|
-
var
|
|
17595
|
-
const
|
|
17603
|
+
let Dn = z;
|
|
17604
|
+
var nn;
|
|
17605
|
+
const Tn = new qr({
|
|
17596
17606
|
businessName: "imp-web-rtc",
|
|
17597
|
-
version: (
|
|
17607
|
+
version: (nn = Dn.getSdkVersion()) != null ? nn : "unknown",
|
|
17598
17608
|
env: "prod",
|
|
17599
17609
|
disabled: window.AliRtcOptionsDisableProxy === !0
|
|
17600
17610
|
});
|
|
17601
|
-
|
|
17602
|
-
const
|
|
17611
|
+
Tn.setReady();
|
|
17612
|
+
const Zc = Tn.wrap(Dn);
|
|
17603
17613
|
export {
|
|
17604
17614
|
ue as AliRtcConnectionStatus,
|
|
17605
|
-
|
|
17606
|
-
|
|
17607
|
-
|
|
17615
|
+
Wt as AliRtcConnectionStatusChangeReason,
|
|
17616
|
+
qt as AliRtcDataChannelMsg,
|
|
17617
|
+
An as AliRtcDataMsgType,
|
|
17608
17618
|
_e as AliRtcEngineLocalDeviceExceptionType,
|
|
17609
17619
|
dt as AliRtcEngineLocalDeviceType,
|
|
17610
17620
|
U as AliRtcErrorCode,
|
|
17611
|
-
|
|
17612
|
-
|
|
17613
|
-
|
|
17621
|
+
ts as AliRtcLiveTranscodingAudioSampleRate,
|
|
17622
|
+
mn as AliRtcLiveTranscodingCropMode,
|
|
17623
|
+
vn as AliRtcLiveTranscodingEncodeParam,
|
|
17614
17624
|
ht as AliRtcLiveTranscodingErrorCode,
|
|
17615
|
-
|
|
17616
|
-
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
|
|
17627
|
-
|
|
17628
|
-
|
|
17629
|
-
|
|
17630
|
-
|
|
17625
|
+
Ii as AliRtcLiveTranscodingFontType,
|
|
17626
|
+
is as AliRtcLiveTranscodingMediaProcessMode,
|
|
17627
|
+
bi as AliRtcLiveTranscodingMixMode,
|
|
17628
|
+
Hc as AliRtcLiveTranscodingMixParam,
|
|
17629
|
+
Vr as AliRtcLiveTranscodingParam,
|
|
17630
|
+
Ei as AliRtcLiveTranscodingSegmentType,
|
|
17631
|
+
jc as AliRtcLiveTranscodingSingleParam,
|
|
17632
|
+
ni as AliRtcLiveTranscodingSourceType,
|
|
17633
|
+
xn as AliRtcLiveTranscodingState,
|
|
17634
|
+
pn as AliRtcLiveTranscodingStreamType,
|
|
17635
|
+
gn as AliRtcLiveTranscodingTaskProfile,
|
|
17636
|
+
Ya as AliRtcLocalStreamInfo,
|
|
17637
|
+
fn as AliRtcLogLevel,
|
|
17638
|
+
Gt as AliRtcPlugin,
|
|
17639
|
+
Ri as AliRtcPluginTrackType,
|
|
17640
|
+
P0 as AliRtcPluginType,
|
|
17631
17641
|
Y as AliRtcPublishState,
|
|
17632
17642
|
be as AliRtcRawDataStreamType,
|
|
17633
|
-
|
|
17643
|
+
lc as AliRtcRemoteUserInfo,
|
|
17634
17644
|
bt as AliRtcSdkChannelProfile,
|
|
17635
17645
|
Bt as AliRtcSdkClientRole,
|
|
17636
17646
|
he as AliRtcSubscribeState,
|
|
17637
|
-
|
|
17638
|
-
|
|
17639
|
-
|
|
17640
|
-
|
|
17641
|
-
|
|
17647
|
+
zc as AliRtcTranscodingClockWidget,
|
|
17648
|
+
In as AliRtcTranscodingImage,
|
|
17649
|
+
Wc as AliRtcTranscodingText,
|
|
17650
|
+
$c as AliRtcTranscodingUser,
|
|
17651
|
+
Sn as AliRtcTrascodingPublishTaskStatus,
|
|
17642
17652
|
we as AliRtcVideoStreamType,
|
|
17643
17653
|
se as AliRtcVideoTrack,
|
|
17644
|
-
|
|
17654
|
+
Zc as default
|
|
17645
17655
|
};
|