aliyun-rtc-sdk 6.13.6-beta.2 → 6.13.7-beta.0
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 +998 -994
- package/dist/aliyun-rtc-sdk.umd.js +12 -12
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ var w = (r, n, e) => new Promise((t, i) => {
|
|
|
36
36
|
}, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, a);
|
|
37
37
|
c((e = e.apply(r, n)).next());
|
|
38
38
|
});
|
|
39
|
-
import { AliRTS as
|
|
39
|
+
import { AliRTS as ce, EConnectStatus as ps, EDatachannelStatus as gs } from "aliyun-rts-sdk";
|
|
40
40
|
import we from "eventemitter3";
|
|
41
41
|
var jn = Object.defineProperty, zn = (r, n, e) => n in r ? jn(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e, Vt = (r, n, e) => (zn(r, typeof n != "symbol" ? n + "" : n, e), e), ki = { exports: {} }, Bi = { exports: {} }, Mi, ms;
|
|
42
42
|
function Fe() {
|
|
@@ -130,8 +130,8 @@ function Fe() {
|
|
|
130
130
|
if (!a)
|
|
131
131
|
return c;
|
|
132
132
|
var o = this, u = o.T(a), h = i.slice(0, s - 1);
|
|
133
|
-
return u === "Function" ? o.safetyCall(a, h, c) : u === "Array" ? (this.each(a, function(
|
|
134
|
-
h[0] = c = o.filterByRule.apply(o, [].concat(h,
|
|
133
|
+
return u === "Function" ? o.safetyCall(a, h, c) : u === "Array" ? (this.each(a, function(g) {
|
|
134
|
+
h[0] = c = o.filterByRule.apply(o, [].concat(h, g));
|
|
135
135
|
}), c) : u === "Object" ? c.replace(a.rule, a.target || "") : c.replace(a, "");
|
|
136
136
|
},
|
|
137
137
|
ignoreByRule: function(i, s) {
|
|
@@ -336,7 +336,7 @@ function Fe() {
|
|
|
336
336
|
if (i.indexOf("?") >= 0 && (u = i.substring(i.indexOf("?") + 1, i.length).split("&")), u.length > 0)
|
|
337
337
|
for (var h in u)
|
|
338
338
|
c = (a = u[h].split("="))[0], o = a[1], s[c] = o;
|
|
339
|
-
} catch (
|
|
339
|
+
} catch (g) {
|
|
340
340
|
s = {};
|
|
341
341
|
}
|
|
342
342
|
return s;
|
|
@@ -350,8 +350,8 @@ function Fe() {
|
|
|
350
350
|
s.protocol = i.substring(0, c + 1);
|
|
351
351
|
var o = i.indexOf("#"), u = i.indexOf("?");
|
|
352
352
|
o < 0 && (o = a), u < 0 && (u = o), s.search = i.substring(u, o).substring(0, 1e3);
|
|
353
|
-
var h = i.substring(c + 3, u),
|
|
354
|
-
return
|
|
353
|
+
var h = i.substring(c + 3, u), g = h.indexOf("/");
|
|
354
|
+
return g < 0 && (g = h.length), s.domain = h.substring(0, g).split(":")[0], s.path = h.substring(g, h.length).substring(0, 1e3), s;
|
|
355
355
|
},
|
|
356
356
|
getResType: function(i, s) {
|
|
357
357
|
if (["script", "img", "other"].indexOf(i) > -1)
|
|
@@ -380,11 +380,11 @@ function Fe() {
|
|
|
380
380
|
getFetchSnapshot: function(i, s, a) {
|
|
381
381
|
var c, o;
|
|
382
382
|
try {
|
|
383
|
-
var u = (i && typeof i[0] != "string" ? i[0].url : i[0]) || "", h = (i && typeof i[0] != "string" ? i[0] : i[1]) || {},
|
|
383
|
+
var u = (i && typeof i[0] != "string" ? i[0].url : i[0]) || "", h = (i && typeof i[0] != "string" ? i[0] : i[1]) || {}, g = h.method.toUpperCase() === "POST" ? h.body : this.getQuerys(u);
|
|
384
384
|
c = {
|
|
385
385
|
originApi: u,
|
|
386
386
|
method: h.method || "unknown",
|
|
387
|
-
params:
|
|
387
|
+
params: g,
|
|
388
388
|
response: s || "",
|
|
389
389
|
reqHeaders: this.parseFetchHeaders(h.headers || null),
|
|
390
390
|
resHeaders: this.parseFetchHeaders(a)
|
|
@@ -597,19 +597,19 @@ function $n() {
|
|
|
597
597
|
};
|
|
598
598
|
},
|
|
599
599
|
getUberTraceId: function(s) {
|
|
600
|
-
var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u,
|
|
600
|
+
var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u, g = h.substring(0, 16);
|
|
601
601
|
return s = s ? "1" : "0", h[0] === "0" && (h[0] = "1"), h[16] === "0" && (h[16] = "1"), {
|
|
602
|
-
"uber-trace-id": h + ":" +
|
|
602
|
+
"uber-trace-id": h + ":" + g + ":0:" + s,
|
|
603
603
|
traceId: h
|
|
604
604
|
};
|
|
605
605
|
},
|
|
606
606
|
getB3TraceId: function(s) {
|
|
607
|
-
var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u,
|
|
607
|
+
var a = this.rip, c = Date.now(), o = r.getSortNum(this.record), u = r.getRandNum(this._conf.pid), h = a + c + o + r.getNum(2) + u, g = h.substring(0, 16);
|
|
608
608
|
return s = s ? "1" : "0", h[0] === "0" && (h[0] = "1"), h[16] === "0" && (h[16] = "1"), {
|
|
609
|
-
b3: h + "-" +
|
|
609
|
+
b3: h + "-" + g + "-" + s + "-0",
|
|
610
610
|
"X-B3-TraceId": h,
|
|
611
611
|
"X-B3-ParentSpanId": "0",
|
|
612
|
-
"X-B3-SpanId":
|
|
612
|
+
"X-B3-SpanId": g,
|
|
613
613
|
"X-B3-Sampled": s
|
|
614
614
|
};
|
|
615
615
|
},
|
|
@@ -654,14 +654,14 @@ function $n() {
|
|
|
654
654
|
return this;
|
|
655
655
|
},
|
|
656
656
|
_lg: function(s, a, c, o) {
|
|
657
|
-
var u = this, h = u._conf,
|
|
658
|
-
if (u._isRobot || r.ignoreByRule(
|
|
657
|
+
var u = this, h = u._conf, g = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, p = d.ignoreResErrors, l = d.ignoreUrls, x = d.ignoreApis;
|
|
658
|
+
if (u._isRobot || r.ignoreByRule(g, l) || r.ignoreByRule(r.decode(g), l) || s === "error" && (r.ignoreByRule(a.msg, f) || r.ignoreByRule(r.decode(a.msg), f)) || s === "resourceError" && (r.ignoreByRule(a.src, p) || r.ignoreByRule(r.decode(a.src), p)) || s === "api" && (r.ignoreByRule(a.api, x) || r.ignoreByRule(r.decode(a.api), x)) || !u.checkImgUrl(h.imgUrl) || !a || h.disabled || !h.pid || o === 0)
|
|
659
659
|
return u;
|
|
660
660
|
var v = a.dl;
|
|
661
661
|
if (delete a.dl, a = r.ext({
|
|
662
662
|
t: s,
|
|
663
663
|
times: 1,
|
|
664
|
-
page:
|
|
664
|
+
page: g,
|
|
665
665
|
tag: h.tag || "",
|
|
666
666
|
release: h.release || "",
|
|
667
667
|
environment: h.environment,
|
|
@@ -681,7 +681,7 @@ function $n() {
|
|
|
681
681
|
try {
|
|
682
682
|
if (!(a = h.beforeReport(a)))
|
|
683
683
|
return u;
|
|
684
|
-
} catch (
|
|
684
|
+
} catch (S) {
|
|
685
685
|
return u;
|
|
686
686
|
}
|
|
687
687
|
return o === 1 ? t(u, a) : c && !u.sampling(c) ? u : t(u, a);
|
|
@@ -707,7 +707,7 @@ function $n() {
|
|
|
707
707
|
h.times++;
|
|
708
708
|
try {
|
|
709
709
|
h.err && a.err && h.err.msg_raw && a.err.msg_raw && h.err.msg_raw.split("&").indexOf(a.err.msg_raw) < 0 && h.err.msg_raw.length < 1e3 && (h.err.msg_raw += "&" + a.err.msg_raw);
|
|
710
|
-
} catch (
|
|
710
|
+
} catch (g) {
|
|
711
711
|
}
|
|
712
712
|
} else
|
|
713
713
|
o.selfQueue.unshift(a), o.onReady(function() {
|
|
@@ -803,8 +803,8 @@ function Kn() {
|
|
|
803
803
|
a = a || {};
|
|
804
804
|
var h = typeof location == "object" && typeof location.href == "string" && location.href.substring(0, 500) || "";
|
|
805
805
|
if (r.checkSDKError(o, a.filename)) {
|
|
806
|
-
var
|
|
807
|
-
if (r.ignoreByRule(d,
|
|
806
|
+
var g = /^Script error\.?$/, d = s.msg || s.message;
|
|
807
|
+
if (r.ignoreByRule(d, g) || r.ignoreByRule(r.decode(d), g))
|
|
808
808
|
return this;
|
|
809
809
|
var f = {
|
|
810
810
|
msg: r.selfErrKey,
|
|
@@ -814,7 +814,7 @@ function Kn() {
|
|
|
814
814
|
};
|
|
815
815
|
return this._self("error", f, 1);
|
|
816
816
|
}
|
|
817
|
-
for (var
|
|
817
|
+
for (var p = {
|
|
818
818
|
begin: Date.now(),
|
|
819
819
|
cate: c,
|
|
820
820
|
msg: o && o.substring(0, 1e3),
|
|
@@ -827,12 +827,12 @@ function Kn() {
|
|
|
827
827
|
stack_raw: r.encode(u)
|
|
828
828
|
},
|
|
829
829
|
dl: h
|
|
830
|
-
}, l = ["tag", "c1", "c2", "c3"],
|
|
831
|
-
var v = l[
|
|
832
|
-
a[v] && (
|
|
830
|
+
}, l = ["tag", "c1", "c2", "c3"], x = 0; x < l.length; x++) {
|
|
831
|
+
var v = l[x];
|
|
832
|
+
a[v] && (p[v] = a[v]);
|
|
833
833
|
}
|
|
834
|
-
var
|
|
835
|
-
return r.ignoreByRule(
|
|
834
|
+
var S = (this.getConfig("ignore") || {}).ignoreErrors;
|
|
835
|
+
return r.ignoreByRule(p.msg, S) || r.ignoreByRule(r.decode(p.msg), S) ? this : (this.beforeSend && this.beforeSend("error", p), this._lg("error", p, 1));
|
|
836
836
|
},
|
|
837
837
|
behavior: function(s) {
|
|
838
838
|
if (s) {
|
|
@@ -842,7 +842,7 @@ function Kn() {
|
|
|
842
842
|
return this.beforeSend && this.beforeSend("behavior", a), this._lg("behavior", a, 1);
|
|
843
843
|
}
|
|
844
844
|
},
|
|
845
|
-
api: function(s, a, c, o, u, h,
|
|
845
|
+
api: function(s, a, c, o, u, h, g, d, f, p, l, x, v, S, b, y) {
|
|
846
846
|
if (!s)
|
|
847
847
|
return r.warn("[retcode] api is null"), this;
|
|
848
848
|
if (s = typeof s == "string" ? {
|
|
@@ -852,13 +852,13 @@ function Kn() {
|
|
|
852
852
|
code: o,
|
|
853
853
|
msg: u,
|
|
854
854
|
begin: h,
|
|
855
|
-
traceId:
|
|
855
|
+
traceId: g,
|
|
856
856
|
pv_id: d,
|
|
857
857
|
apiSnapshot: f,
|
|
858
|
-
domain:
|
|
859
|
-
flag:
|
|
858
|
+
domain: p,
|
|
859
|
+
flag: x,
|
|
860
860
|
tag: v,
|
|
861
|
-
c1:
|
|
861
|
+
c1: S,
|
|
862
862
|
c2: b,
|
|
863
863
|
c3: y
|
|
864
864
|
} : r.sub(s, e), !r.checkAPI(s.api, !0))
|
|
@@ -901,14 +901,14 @@ function Kn() {
|
|
|
901
901
|
}
|
|
902
902
|
if (u)
|
|
903
903
|
return r.warn("[arms] lack param data: " + s), this;
|
|
904
|
-
var
|
|
904
|
+
var g = {
|
|
905
905
|
begin: s.begin || Date.now(),
|
|
906
906
|
dom: s.dom || "",
|
|
907
907
|
load: s.load || "",
|
|
908
908
|
res: r.isArray(s.res) ? JSON.stringify(s.res) : JSON.stringify([]),
|
|
909
909
|
dl: s.dl || ""
|
|
910
910
|
};
|
|
911
|
-
return this._lg("res",
|
|
911
|
+
return this._lg("res", g, a);
|
|
912
912
|
},
|
|
913
913
|
event: function(s, a) {
|
|
914
914
|
if (typeof s == "object" && s && s.key) {
|
|
@@ -966,95 +966,95 @@ function Gn() {
|
|
|
966
966
|
Es = 1;
|
|
967
967
|
var r = Fe();
|
|
968
968
|
return Ui = function(n, e) {
|
|
969
|
-
var t = [], i = null, s = e && e.location && e.location.href, a = void 0, c = null, o = function(d, f,
|
|
969
|
+
var t = [], i = null, s = e && e.location && e.location.href, a = void 0, c = null, o = function(d, f, p) {
|
|
970
970
|
if (d !== null) {
|
|
971
971
|
var l = d[f];
|
|
972
|
-
d[f] =
|
|
972
|
+
d[f] = p(l);
|
|
973
973
|
}
|
|
974
974
|
}, u = function(d) {
|
|
975
|
-
var f,
|
|
975
|
+
var f, p, l, x, v, S = [];
|
|
976
976
|
if (!d || typeof d.tagName != "string")
|
|
977
977
|
return "";
|
|
978
|
-
if (
|
|
979
|
-
for (
|
|
980
|
-
|
|
978
|
+
if (S.push(d.tagName.toLowerCase()), typeof d.id == "string" && S.push("#".concat(d.id)), typeof (f = d.className) == "string")
|
|
979
|
+
for (p = f.split(/\s+/), v = 0; v < p.length; v++)
|
|
980
|
+
S.push(".".concat(p[v]));
|
|
981
981
|
var b = ["type", "name", "title", "alt", "data-arms-attr"];
|
|
982
982
|
for (v = 0; v < b.length; v++)
|
|
983
|
-
l = b[v], typeof (
|
|
984
|
-
return
|
|
983
|
+
l = b[v], typeof (x = d.getAttribute(l)) == "string" && S.push("[".concat(l, '="').concat(x, '"]'));
|
|
984
|
+
return S.join("");
|
|
985
985
|
}, h = function(d, f) {
|
|
986
|
-
return function(
|
|
987
|
-
if (
|
|
988
|
-
c =
|
|
986
|
+
return function(p) {
|
|
987
|
+
if (p && p !== c) {
|
|
988
|
+
c = p;
|
|
989
989
|
var l;
|
|
990
990
|
try {
|
|
991
|
-
l =
|
|
991
|
+
l = p.target;
|
|
992
992
|
} catch (v) {
|
|
993
993
|
l = "<unknown>";
|
|
994
994
|
}
|
|
995
995
|
if (l.length !== 0) {
|
|
996
|
-
var
|
|
996
|
+
var x = {
|
|
997
997
|
type: "ui.".concat(d),
|
|
998
998
|
data: {
|
|
999
999
|
message: function(v) {
|
|
1000
1000
|
if (!v || v.nodeType !== 1)
|
|
1001
1001
|
return "";
|
|
1002
|
-
for (var
|
|
1003
|
-
b.push(A), E += A.length,
|
|
1002
|
+
for (var S = v || null, b = [], y = 0, E = 0, I = 3, A = ""; S && y++ < 5 && !((A = u(S)) === "html" || y > 1 && E + b.length * I + A.length >= 80); )
|
|
1003
|
+
b.push(A), E += A.length, S = S.parentNode;
|
|
1004
1004
|
return b.reverse().join(" > ");
|
|
1005
1005
|
}(l)
|
|
1006
1006
|
},
|
|
1007
1007
|
timestamp: Date.now()
|
|
1008
1008
|
};
|
|
1009
|
-
d === "click" ? i && i.addBehavior(
|
|
1009
|
+
d === "click" ? i && i.addBehavior(x) : d === "keypress" && (a || i && i.addBehavior(x), clearTimeout(a), a = setTimeout(function() {
|
|
1010
1010
|
a = void 0;
|
|
1011
1011
|
}, 100));
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
|
-
},
|
|
1015
|
+
}, g = function() {
|
|
1016
1016
|
if (function() {
|
|
1017
|
-
var l = e && e.chrome,
|
|
1018
|
-
return !
|
|
1017
|
+
var l = e && e.chrome, x = l && l.app && l.app.runtime, v = "history" in e && !!e.history.pushState && !!e.history.replaceState;
|
|
1018
|
+
return !x && v;
|
|
1019
1019
|
}()) {
|
|
1020
|
-
var d = function(l,
|
|
1020
|
+
var d = function(l, x) {
|
|
1021
1021
|
var v = {
|
|
1022
1022
|
type: "navigation",
|
|
1023
1023
|
data: {
|
|
1024
1024
|
from: l,
|
|
1025
|
-
to:
|
|
1025
|
+
to: x
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
|
-
i && i.addBehavior(v), s =
|
|
1028
|
+
i && i.addBehavior(v), s = x;
|
|
1029
1029
|
}, f = e.onpopstate;
|
|
1030
1030
|
e.onpopstate = function() {
|
|
1031
|
-
for (var l = arguments.length,
|
|
1032
|
-
|
|
1033
|
-
var
|
|
1034
|
-
if (d(s,
|
|
1035
|
-
return f.apply(this,
|
|
1031
|
+
for (var l = arguments.length, x = new Array(l), v = 0; v < l; v++)
|
|
1032
|
+
x[v] = arguments[v];
|
|
1033
|
+
var S = e.location.href;
|
|
1034
|
+
if (d(s, S), f)
|
|
1035
|
+
return f.apply(this, x);
|
|
1036
1036
|
};
|
|
1037
|
-
var
|
|
1037
|
+
var p = function(l) {
|
|
1038
1038
|
return function() {
|
|
1039
|
-
for (var
|
|
1040
|
-
v[
|
|
1039
|
+
for (var x = arguments.length, v = new Array(x), S = 0; S < x; S++)
|
|
1040
|
+
v[S] = arguments[S];
|
|
1041
1041
|
var b = v.length > 2 ? v[2] : void 0;
|
|
1042
1042
|
return b && d(s, String(b)), l.apply(this, v);
|
|
1043
1043
|
};
|
|
1044
1044
|
};
|
|
1045
|
-
o(e.history, "pushState",
|
|
1045
|
+
o(e.history, "pushState", p), o(e.history, "replaceState", p);
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
1048
|
r.ext(n.prototype, {
|
|
1049
1049
|
addBehavior: function(d) {
|
|
1050
1050
|
if (this.getConfig("behavior") && d && typeof d == "object") {
|
|
1051
|
-
var f = {},
|
|
1051
|
+
var f = {}, p = d.data || {};
|
|
1052
1052
|
if (d.type)
|
|
1053
|
-
f =
|
|
1053
|
+
f = p;
|
|
1054
1054
|
else {
|
|
1055
|
-
if (typeof
|
|
1055
|
+
if (typeof p.name != "string" || typeof p.message != "string")
|
|
1056
1056
|
return;
|
|
1057
|
-
f.name =
|
|
1057
|
+
f.name = p.name.substr(0, 20), f.message = p.message.substr(0, 200);
|
|
1058
1058
|
}
|
|
1059
1059
|
f.message && (f.message = r.encode(f.message));
|
|
1060
1060
|
var l = {
|
|
@@ -1083,39 +1083,39 @@ function Gn() {
|
|
|
1083
1083
|
try {
|
|
1084
1084
|
(function() {
|
|
1085
1085
|
if (document && document.referrer && document.location) {
|
|
1086
|
-
var f = document.referrer,
|
|
1086
|
+
var f = document.referrer, p = document.location.href;
|
|
1087
1087
|
if (f !== "") {
|
|
1088
1088
|
var l = {
|
|
1089
1089
|
type: "navigation",
|
|
1090
1090
|
data: {
|
|
1091
1091
|
from: f,
|
|
1092
|
-
to:
|
|
1092
|
+
to: p
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
|
-
s =
|
|
1095
|
+
s = p, i && i.addBehavior(l);
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
|
-
})(), e && e.document && e.document.addEventListener && (e.document.addEventListener("click", h("click"), !1), e.document.addEventListener("keypress", h("keypress"), !1)),
|
|
1098
|
+
})(), e && e.document && e.document.addEventListener && (e.document.addEventListener("click", h("click"), !1), e.document.addEventListener("keypress", h("keypress"), !1)), g();
|
|
1099
1099
|
var d = this.getConfig("enableConsole");
|
|
1100
1100
|
d && function(f) {
|
|
1101
1101
|
if (e && e.console) {
|
|
1102
|
-
var
|
|
1103
|
-
r.isArray(f) && (
|
|
1104
|
-
for (var l = 0; l <
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1107
|
-
var
|
|
1102
|
+
var p = ["debug", "info", "warn", "log", "error", "assert"];
|
|
1103
|
+
r.isArray(f) && (p = f);
|
|
1104
|
+
for (var l = 0; l < p.length; l++) {
|
|
1105
|
+
var x = p[l];
|
|
1106
|
+
x && r.isString(x) && e.console[x] && typeof e.console[x] == "function" && o(e.console, x, function(v) {
|
|
1107
|
+
var S = x;
|
|
1108
1108
|
return function() {
|
|
1109
1109
|
for (var b = arguments.length, y = new Array(b), E = 0; E < b; E++)
|
|
1110
1110
|
y[E] = arguments[E];
|
|
1111
1111
|
var I = {
|
|
1112
1112
|
type: "console",
|
|
1113
1113
|
data: {
|
|
1114
|
-
level:
|
|
1114
|
+
level: S,
|
|
1115
1115
|
message: y
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
|
-
if (i && i.addBehavior(I),
|
|
1118
|
+
if (i && i.addBehavior(I), S === "error")
|
|
1119
1119
|
for (var A = 0; A < y.length; A++) {
|
|
1120
1120
|
var C = y[A];
|
|
1121
1121
|
C && C.message && C.stack && i && i.errorHandler(new ErrorEvent("error", {
|
|
@@ -1162,9 +1162,9 @@ function Xn() {
|
|
|
1162
1162
|
dom: [10, 8],
|
|
1163
1163
|
load: [14, 1]
|
|
1164
1164
|
}, function(u, h) {
|
|
1165
|
-
var
|
|
1166
|
-
if (
|
|
1167
|
-
var f = Math.round(d -
|
|
1165
|
+
var g = a[e[u[1]]], d = a[e[u[0]]];
|
|
1166
|
+
if (g > 0 && d > 0) {
|
|
1167
|
+
var f = Math.round(d - g);
|
|
1168
1168
|
f >= 0 && f < 6e5 && (s[h] = f);
|
|
1169
1169
|
}
|
|
1170
1170
|
}), s.res = JSON.stringify(c), s;
|
|
@@ -1198,17 +1198,17 @@ function Yn() {
|
|
|
1198
1198
|
tti: [10, 1],
|
|
1199
1199
|
ready: [12, 1],
|
|
1200
1200
|
load: [14, 1]
|
|
1201
|
-
}, function(
|
|
1202
|
-
var
|
|
1203
|
-
if (o === 2 ||
|
|
1204
|
-
var
|
|
1205
|
-
|
|
1201
|
+
}, function(p, l) {
|
|
1202
|
+
var x = a[e[p[1]]], v = a[e[p[0]]];
|
|
1203
|
+
if (o === 2 || x > 0 && v > 0) {
|
|
1204
|
+
var S = Math.round(v - x);
|
|
1205
|
+
S >= 0 && S < 6e5 && (s[l] = S);
|
|
1206
1206
|
}
|
|
1207
1207
|
});
|
|
1208
|
-
var h = t.navigator.connection,
|
|
1208
|
+
var h = t.navigator.connection, g = i.navigation || {};
|
|
1209
1209
|
s.ct = h ? h.effectiveType || h.type : "";
|
|
1210
1210
|
var d = h && (h.downlink || h.downlinkMax || h.bandwidth) || null;
|
|
1211
|
-
if ((d = d > 999 ? 999 : d) && (s.bandwidth = d), s.navtype =
|
|
1211
|
+
if ((d = d > 999 ? 999 : d) && (s.bandwidth = d), s.navtype = g.type === 1 ? "Reload" : "Other", o === 1 && a[e[16]] > 0 && a[e[1]] > 0) {
|
|
1212
1212
|
var f = a[e[16]] - a[e[1]];
|
|
1213
1213
|
f >= 0 && f < 36e5 && (s.fpt = f);
|
|
1214
1214
|
}
|
|
@@ -1218,12 +1218,12 @@ function Yn() {
|
|
|
1218
1218
|
var Rs, ws;
|
|
1219
1219
|
function Zn() {
|
|
1220
1220
|
return ws || (ws = 1, Rs = function(r, n, e) {
|
|
1221
|
-
var t = Fe(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection,
|
|
1221
|
+
var t = Fe(), i = Xn(), s = Yn(), a = null, c = e.documentElement, o = n.innerWidth || c.clientWidth || e.body.clientWidth, u = n.innerHeight || c.clientHeight || e.body.clientHeight, h = n.navigator.connection, g = {
|
|
1222
1222
|
sr: screen.width + "x" + screen.height,
|
|
1223
1223
|
vp: o + "x" + u,
|
|
1224
1224
|
ct: h ? h.effectiveType || h.type : ""
|
|
1225
|
-
}, d = {}, f = function(l,
|
|
1226
|
-
if (
|
|
1225
|
+
}, d = {}, f = function(l, x, v, S, b) {
|
|
1226
|
+
if (x === void 0) {
|
|
1227
1227
|
var y, E;
|
|
1228
1228
|
if (!d[l]) {
|
|
1229
1229
|
y = new RegExp(l + "=([^;]+)");
|
|
@@ -1236,16 +1236,16 @@ function Zn() {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
return d[l];
|
|
1238
1238
|
}
|
|
1239
|
-
var I = l + "=" +
|
|
1239
|
+
var I = l + "=" + x;
|
|
1240
1240
|
I += "; path=/", v && (I += "; max-age=" + v);
|
|
1241
1241
|
try {
|
|
1242
1242
|
return e.cookie = I, !!e.cookie;
|
|
1243
1243
|
} catch (A) {
|
|
1244
1244
|
return t.warn("[retcode] can not set cookie: ", A), !1;
|
|
1245
1245
|
}
|
|
1246
|
-
},
|
|
1247
|
-
var
|
|
1248
|
-
return !
|
|
1246
|
+
}, p = function(l) {
|
|
1247
|
+
var x = l._conf.uid || f("_nk_") || f("_bl_uid");
|
|
1248
|
+
return !x && (x = t.uu(), !f("_bl_uid", x, 15552e3)) ? null : x;
|
|
1249
1249
|
};
|
|
1250
1250
|
return t.ext(r.prototype, {
|
|
1251
1251
|
activeErrHandler: function(l) {
|
|
@@ -1254,79 +1254,79 @@ function Zn() {
|
|
|
1254
1254
|
errorHandler: function(l) {
|
|
1255
1255
|
if (!l)
|
|
1256
1256
|
return this;
|
|
1257
|
-
var
|
|
1258
|
-
if (
|
|
1257
|
+
var x = l.type;
|
|
1258
|
+
if (x === "error") {
|
|
1259
1259
|
var v = l.target || l.srcElement;
|
|
1260
1260
|
!v || !v.tagName || l.message || l.filename || l.lineno || l.colno ? this.error(l.error || {
|
|
1261
1261
|
message: l.message
|
|
1262
1262
|
}, l) : this.resourceErrorHandler(l);
|
|
1263
1263
|
} else
|
|
1264
|
-
|
|
1264
|
+
x === "unhandledrejection" && t.T(l.reason, "Error") && t.checkAutoError(l.reason) && this.error(l.reason);
|
|
1265
1265
|
try {
|
|
1266
1266
|
this.getConfig("behavior") && this.reportBehavior && this.reportBehavior();
|
|
1267
|
-
} catch (
|
|
1267
|
+
} catch (S) {
|
|
1268
1268
|
}
|
|
1269
1269
|
return this;
|
|
1270
1270
|
},
|
|
1271
1271
|
resourceErrorHandler: function(l) {
|
|
1272
|
-
var
|
|
1272
|
+
var x = this, v = l.target || l.srcElement;
|
|
1273
1273
|
try {
|
|
1274
|
-
var
|
|
1275
|
-
src:
|
|
1274
|
+
var S = x.getSrc(v), b = typeof v.tagName == "string" ? v.tagName.toLowerCase() : "", y = x.getXPath(v, 5), E = t.getURL(S), I = {
|
|
1275
|
+
src: S && S.substring(0, 1e3),
|
|
1276
1276
|
node_name: b,
|
|
1277
1277
|
xpath: y,
|
|
1278
|
-
res_type: t.getResType(b,
|
|
1278
|
+
res_type: t.getResType(b, S),
|
|
1279
1279
|
res_name: E.path,
|
|
1280
1280
|
domain: E.domain
|
|
1281
1281
|
};
|
|
1282
|
-
return
|
|
1283
|
-
src:
|
|
1282
|
+
return x._conf.enableResource && x.fixResourceStatus && l.timeStamp && x.fixResourceStatus({
|
|
1283
|
+
src: S,
|
|
1284
1284
|
node_name: b,
|
|
1285
|
-
res_type: t.getResType(b,
|
|
1285
|
+
res_type: t.getResType(b, S),
|
|
1286
1286
|
timeStamp: l.timeStamp,
|
|
1287
1287
|
domain: E.domain
|
|
1288
|
-
}),
|
|
1288
|
+
}), x._lg("resourceError", I), x;
|
|
1289
1289
|
} catch (A) {
|
|
1290
|
-
return t.warn("[ARMS] resourceErrorHandler error :", A),
|
|
1290
|
+
return t.warn("[ARMS] resourceErrorHandler error :", A), x;
|
|
1291
1291
|
}
|
|
1292
1292
|
},
|
|
1293
1293
|
getSrc: function(l) {
|
|
1294
|
-
var
|
|
1294
|
+
var x = l.src || l.href;
|
|
1295
1295
|
try {
|
|
1296
|
-
if (!
|
|
1297
|
-
var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object",
|
|
1298
|
-
v &&
|
|
1296
|
+
if (!x) {
|
|
1297
|
+
var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object", S = l.getAttribute("classid") && l.getAttribute("classid").toLowerCase() === "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" || l.getAttribute("type") === "application/x-shockwave-flash";
|
|
1298
|
+
v && S && (x = l.getAttribute("data") || l.getAttribute("codebase")), x || (x = l.outerHTML || l.innerHTML);
|
|
1299
1299
|
}
|
|
1300
1300
|
} catch (b) {
|
|
1301
|
-
|
|
1301
|
+
x = "";
|
|
1302
1302
|
}
|
|
1303
|
-
return
|
|
1303
|
+
return x;
|
|
1304
1304
|
},
|
|
1305
|
-
getXPath: function(l,
|
|
1306
|
-
var v = l.id ? "#" + l.id : "",
|
|
1307
|
-
return l.parentNode && l.parentNode.tagName &&
|
|
1305
|
+
getXPath: function(l, x) {
|
|
1306
|
+
var v = l.id ? "#" + l.id : "", S = typeof l.className == "string" ? "." + l.className.split(" ").join(".") : "", b = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") + v + S;
|
|
1307
|
+
return l.parentNode && l.parentNode.tagName && x - 1 != 0 ? this.getXPath(l.parentNode, x - 1) + " > " + b : b;
|
|
1308
1308
|
},
|
|
1309
1309
|
sendPerformance: function(l) {
|
|
1310
|
-
var
|
|
1311
|
-
|
|
1310
|
+
var x = this;
|
|
1311
|
+
x.onReady(function() {
|
|
1312
1312
|
var v = s();
|
|
1313
|
-
v && v.load && v.load > 0 && (v.page =
|
|
1313
|
+
v && v.load && v.load > 0 && (v.page = x.getPage(!0), l && (v = t.ext(v, l)), v.autoSend = !0, x.performance(v));
|
|
1314
1314
|
});
|
|
1315
1315
|
},
|
|
1316
1316
|
sendResources: function(l) {
|
|
1317
|
-
var
|
|
1318
|
-
|
|
1317
|
+
var x = this;
|
|
1318
|
+
x.onReady(function() {
|
|
1319
1319
|
var v = i();
|
|
1320
|
-
v && v.load && v.load > 0 && (v.load && v.load <= 2e3 || v.load && v.load <= 8e3 && Math.random() > 0.05 || (v.page =
|
|
1320
|
+
v && v.load && v.load > 0 && (v.load && v.load <= 2e3 || v.load && v.load <= 8e3 && Math.random() > 0.05 || (v.page = x.getPage(!0), v.dl = location.href, l && (v = t.ext(v, l)), x._lg("res", v, x.getConfig("sample"))));
|
|
1321
1321
|
});
|
|
1322
1322
|
},
|
|
1323
1323
|
sendPV: function() {
|
|
1324
1324
|
var l = this;
|
|
1325
1325
|
l.onReady(function() {
|
|
1326
|
-
var
|
|
1327
|
-
var
|
|
1326
|
+
var x = function(v) {
|
|
1327
|
+
var S = p(v), b = n.devicePixelRatio || 1;
|
|
1328
1328
|
return {
|
|
1329
|
-
uid:
|
|
1329
|
+
uid: S,
|
|
1330
1330
|
dt: e.title,
|
|
1331
1331
|
dl: location.href,
|
|
1332
1332
|
dr: e.referrer,
|
|
@@ -1336,49 +1336,49 @@ function Zn() {
|
|
|
1336
1336
|
begin: Date.now()
|
|
1337
1337
|
};
|
|
1338
1338
|
}(l);
|
|
1339
|
-
|
|
1339
|
+
x && x.uid && l._lg("pv", x, l.getConfig("pvSample"));
|
|
1340
1340
|
});
|
|
1341
1341
|
},
|
|
1342
1342
|
commonInfo: function() {
|
|
1343
|
-
return
|
|
1343
|
+
return g.uid = p(this), g.sid = function(l) {
|
|
1344
1344
|
if (l.session)
|
|
1345
1345
|
return l.session;
|
|
1346
|
-
var
|
|
1346
|
+
var x;
|
|
1347
1347
|
try {
|
|
1348
1348
|
if (typeof window == "object" && typeof sessionStorage == "object" && typeof sessionStorage.getItem == "function")
|
|
1349
|
-
return typeof (
|
|
1349
|
+
return typeof (x = sessionStorage.getItem("_bl_sid")) == "string" ? (l.session = x, x) : (x = t.uu(), l.session = x, typeof sessionStorage.setItem == "function" && sessionStorage.setItem("_bl_sid", x), x);
|
|
1350
1350
|
} catch (v) {
|
|
1351
1351
|
t.warn("[ARMS] getSid error :", v);
|
|
1352
1352
|
}
|
|
1353
|
-
return l.session =
|
|
1354
|
-
}(this),
|
|
1353
|
+
return l.session = x = t.uu(), x;
|
|
1354
|
+
}(this), g;
|
|
1355
1355
|
},
|
|
1356
1356
|
handleUnload: function(l) {
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1357
|
+
var x = Date.now();
|
|
1358
|
+
if (x - this._lastUnload < 200)
|
|
1359
1359
|
return this;
|
|
1360
|
-
this._lastUnload =
|
|
1360
|
+
this._lastUnload = x, this.sendHealth(l), this.speedCache && (this._lg("speed", this.speedCache), this.speedCache = null, clearTimeout(this.speedTimmer)), this._conf && this._conf.enableResource && this.resourceComboReport(), this.clear(!0);
|
|
1361
1361
|
},
|
|
1362
1362
|
bindHashChange: function(l) {
|
|
1363
|
-
var
|
|
1364
|
-
if (!l ^
|
|
1365
|
-
return
|
|
1366
|
-
l ? (
|
|
1367
|
-
var
|
|
1368
|
-
|
|
1369
|
-
},
|
|
1370
|
-
var
|
|
1371
|
-
|
|
1372
|
-
}, t.on(n, "hashchange",
|
|
1363
|
+
var x = this;
|
|
1364
|
+
if (!l ^ x.hashChangeHandler)
|
|
1365
|
+
return x;
|
|
1366
|
+
l ? (x.hackHistoryState(), x.hashChangeHandler = function(v) {
|
|
1367
|
+
var S = x._conf.parseHash(location.hash);
|
|
1368
|
+
S && x.setPage(S, v !== !1);
|
|
1369
|
+
}, x.stateChangeHandler = function(v) {
|
|
1370
|
+
var S = x._conf.parseHash(v.detail);
|
|
1371
|
+
S && x.setPage(S);
|
|
1372
|
+
}, t.on(n, "hashchange", x.hashChangeHandler), t.on(n, "historystatechange", x.stateChangeHandler), x.hashChangeHandler(!1)) : (t.off(n, "hashchange", x.hashChangeHandler), t.off(n, "historystatechange", x.stateChangeHandler), x.hashChangeHandler = null, x.stateChangeHandler = null);
|
|
1373
1373
|
},
|
|
1374
1374
|
initHandler: function() {
|
|
1375
1375
|
var l = this;
|
|
1376
1376
|
if (l.hasInitHandler)
|
|
1377
1377
|
return l;
|
|
1378
|
-
var
|
|
1378
|
+
var x = l._conf;
|
|
1379
1379
|
return t.on(n, "beforeunload", function() {
|
|
1380
1380
|
l.handleUnload(0);
|
|
1381
|
-
}), l.bindHashChange(
|
|
1381
|
+
}), l.bindHashChange(x.enableSPA), l.activeErrHandler(!1), l.hasInitHandler = !0, l;
|
|
1382
1382
|
}
|
|
1383
1383
|
}), t.on(n, "error", function(l) {
|
|
1384
1384
|
a && a.errorHandler(l);
|
|
@@ -1394,28 +1394,28 @@ function Qn() {
|
|
|
1394
1394
|
Ds = 1;
|
|
1395
1395
|
var r = Fe(), n = 500;
|
|
1396
1396
|
return zi = function(e, t, i) {
|
|
1397
|
-
function s(
|
|
1398
|
-
var
|
|
1397
|
+
function s(g, d, f) {
|
|
1398
|
+
var p = 0, l = g.tagName;
|
|
1399
1399
|
if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
|
|
1400
|
-
var
|
|
1401
|
-
if (
|
|
1402
|
-
for (var v =
|
|
1403
|
-
|
|
1404
|
-
if (
|
|
1400
|
+
var x = g.children ? g.children.length : 0;
|
|
1401
|
+
if (x > 0)
|
|
1402
|
+
for (var v = g.children, S = x - 1; S >= 0; S--)
|
|
1403
|
+
p += s(v[S], d + 1, p > 0);
|
|
1404
|
+
if (p <= 0 && !f && !(g.getBoundingClientRect && g.getBoundingClientRect().top < c))
|
|
1405
1405
|
return 0;
|
|
1406
|
-
|
|
1406
|
+
p += 1 + 0.5 * d;
|
|
1407
1407
|
}
|
|
1408
|
-
return g;
|
|
1409
|
-
}
|
|
1410
|
-
function a(p) {
|
|
1411
|
-
for (var d = 1; d < p.length; d++)
|
|
1412
|
-
if (p[d].score < p[d - 1].score)
|
|
1413
|
-
return p.splice(d, 1), a(p);
|
|
1414
1408
|
return p;
|
|
1415
1409
|
}
|
|
1410
|
+
function a(g) {
|
|
1411
|
+
for (var d = 1; d < g.length; d++)
|
|
1412
|
+
if (g[d].score < g[d - 1].score)
|
|
1413
|
+
return g.splice(d, 1), a(g);
|
|
1414
|
+
return g;
|
|
1415
|
+
}
|
|
1416
1416
|
var c = t.innerHeight || 0, o = [], u = null, h = 0;
|
|
1417
1417
|
r.ext(e.prototype, {
|
|
1418
|
-
initFmpObserver: function(
|
|
1418
|
+
initFmpObserver: function(g) {
|
|
1419
1419
|
var d = this;
|
|
1420
1420
|
if (!d._conf || !d._conf.useFmp)
|
|
1421
1421
|
return null;
|
|
@@ -1426,11 +1426,11 @@ function Qn() {
|
|
|
1426
1426
|
});
|
|
1427
1427
|
var f = t.MutationObserver;
|
|
1428
1428
|
return (u = new f(function() {
|
|
1429
|
-
(function(
|
|
1430
|
-
var l = Date.now() -
|
|
1431
|
-
if (
|
|
1429
|
+
(function(p) {
|
|
1430
|
+
var l = Date.now() - p, x = i.querySelector("body");
|
|
1431
|
+
if (x) {
|
|
1432
1432
|
var v = 0;
|
|
1433
|
-
v += s(
|
|
1433
|
+
v += s(x, 1, !1), o.push({
|
|
1434
1434
|
score: v,
|
|
1435
1435
|
t: l
|
|
1436
1436
|
});
|
|
@@ -1444,31 +1444,31 @@ function Qn() {
|
|
|
1444
1444
|
childList: !0,
|
|
1445
1445
|
subtree: !0
|
|
1446
1446
|
}), h = 1, d.onReady(function() {
|
|
1447
|
-
d.endObserving(
|
|
1447
|
+
d.endObserving(g);
|
|
1448
1448
|
}), u;
|
|
1449
1449
|
},
|
|
1450
|
-
endObserving: function(
|
|
1450
|
+
endObserving: function(g, d) {
|
|
1451
1451
|
var f = this;
|
|
1452
1452
|
if (u && h)
|
|
1453
|
-
if (f.fmpTimmer && (clearTimeout(f.fmpTimmer), f.fmpTimmer = null), d || !function(v,
|
|
1453
|
+
if (f.fmpTimmer && (clearTimeout(f.fmpTimmer), f.fmpTimmer = null), d || !function(v, S) {
|
|
1454
1454
|
var b = Date.now() - v;
|
|
1455
|
-
return !(b >
|
|
1456
|
-
}(f._startTime,
|
|
1455
|
+
return !(b > S || b - (o && o.length && o[o.length - 1].t || 0) > 2 * n);
|
|
1456
|
+
}(f._startTime, g)) {
|
|
1457
1457
|
u.disconnect(), h = 0, o = a(o);
|
|
1458
|
-
for (var
|
|
1458
|
+
for (var p = null, l = 1; l < o.length; l++)
|
|
1459
1459
|
if (o[l].t >= o[l - 1].t) {
|
|
1460
|
-
var
|
|
1461
|
-
(!
|
|
1460
|
+
var x = o[l].score - o[l - 1].score;
|
|
1461
|
+
(!p || p.rate <= x) && (p = {
|
|
1462
1462
|
t: o[l].t,
|
|
1463
|
-
rate:
|
|
1463
|
+
rate: x
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
|
-
|
|
1467
|
-
fmp:
|
|
1466
|
+
p && p.t > 0 && p.t < 36e5 ? f.sendPerformance({
|
|
1467
|
+
fmp: p.t
|
|
1468
1468
|
}) : f.sendPerformance();
|
|
1469
1469
|
} else
|
|
1470
1470
|
f.fmpTimmer = r.delay(function() {
|
|
1471
|
-
f.endObserving(
|
|
1471
|
+
f.endObserving(g);
|
|
1472
1472
|
}, n);
|
|
1473
1473
|
}
|
|
1474
1474
|
});
|
|
@@ -1477,31 +1477,31 @@ function Qn() {
|
|
|
1477
1477
|
var Ts, Ps;
|
|
1478
1478
|
function eo() {
|
|
1479
1479
|
return Ps || (Ps = 1, Ts = function(r, n) {
|
|
1480
|
-
var e = Fe(), t = null, i = e.getCurDomain(), s = function(h,
|
|
1481
|
-
var A = e.J(
|
|
1480
|
+
var e = Fe(), t = null, i = e.getCurDomain(), s = function(h, g, d, f, p, l, x, v, S, b, y, E, I) {
|
|
1481
|
+
var A = e.J(p) || null, C = e.safetyCall(g, [A, f], null);
|
|
1482
1482
|
if (!C)
|
|
1483
1483
|
return !1;
|
|
1484
1484
|
var L = C.code || l, _ = !("success" in C) || C.success;
|
|
1485
|
-
h.api(d, _,
|
|
1485
|
+
h.api(d, _, x, L, C.msg, v, S, b, _ ? {} : y, i, E, I);
|
|
1486
1486
|
}, a = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
|
|
1487
1487
|
return e.ext(r.prototype, {
|
|
1488
|
-
removeHook: function(h,
|
|
1489
|
-
return t && (
|
|
1488
|
+
removeHook: function(h, g) {
|
|
1489
|
+
return t && (g || this === t) ? (n[c] && (n[a] = n[c], delete n[c]), n[o] && (n[u] = n[o], delete n[o]), t = null, this) : this;
|
|
1490
1490
|
},
|
|
1491
1491
|
addHook: function(h) {
|
|
1492
1492
|
return !h && t ? this : (t || (function() {
|
|
1493
1493
|
if (typeof n[a] == "function") {
|
|
1494
|
-
var
|
|
1495
|
-
n[c] =
|
|
1496
|
-
var
|
|
1494
|
+
var g = n[a];
|
|
1495
|
+
n[c] = g, n[a] = function(d, f) {
|
|
1496
|
+
var p = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), l = t;
|
|
1497
1497
|
if (!l || !l.api || f && (f.method === "HEAD" || f.mode === "no-cors"))
|
|
1498
|
-
return
|
|
1498
|
+
return g.apply(n, p);
|
|
1499
1499
|
f || (f = {});
|
|
1500
|
-
var
|
|
1500
|
+
var x = Date.now(), v = l._conf, S = e.duration(), b = (d && typeof d != "string" ? d.url : d) || "", y = b;
|
|
1501
1501
|
b = e.cutUrlSearch(b);
|
|
1502
1502
|
var E = (v.ignore || {}).ignoreApis, I = v.parseTraceId;
|
|
1503
1503
|
if (!e.checkAPI(b, !0) || e.ignoreByRule(b, E))
|
|
1504
|
-
return
|
|
1504
|
+
return g.apply(n, p);
|
|
1505
1505
|
b = e.filterByRule(b, y, v.ignoreApiPath ? v.ignoreApiPath : v.apiHelper);
|
|
1506
1506
|
var A = v.enableLinkTrace, C = "", L = "", _ = l.getConfig("pid"), R = null, T = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
|
|
1507
1507
|
if (T && !l.sampling(T) && ($ = 0), A) {
|
|
@@ -1515,26 +1515,26 @@ function eo() {
|
|
|
1515
1515
|
if (l.getConfig("enableApiCors") || G)
|
|
1516
1516
|
if (d && typeof d != "string")
|
|
1517
1517
|
try {
|
|
1518
|
-
if (
|
|
1518
|
+
if (p[0].headers && typeof p[0].headers.get == "function" && typeof p[0].headers.append == "function")
|
|
1519
1519
|
switch (B) {
|
|
1520
1520
|
case "arms":
|
|
1521
|
-
var ae =
|
|
1522
|
-
ae ? C = ae : (C = l.getTraceId()["EagleEye-TraceID"],
|
|
1521
|
+
var ae = p[0].headers.get("EagleEye-TraceID"), Q = p[0].headers.get("EagleEye-SessionID"), te = p[0].headers.get("EagleEye-pAppName");
|
|
1522
|
+
ae ? C = ae : (C = l.getTraceId()["EagleEye-TraceID"], p[0].headers.append("EagleEye-TraceID", C)), Q ? L = Q : (L = l.getPageviewId()["EagleEye-SessionID"], p[0].headers.append("EagleEye-SessionID", L)), te || p[0].headers.append("EagleEye-pAppName", _);
|
|
1523
1523
|
break;
|
|
1524
1524
|
case "b3":
|
|
1525
|
-
var ee =
|
|
1525
|
+
var ee = p[0].headers.get("X-B3-TraceId");
|
|
1526
1526
|
if (ee)
|
|
1527
1527
|
C = ee;
|
|
1528
1528
|
else {
|
|
1529
1529
|
var P = l.getB3TraceId($);
|
|
1530
|
-
|
|
1530
|
+
p[0].headers.append("X-B3-TraceId", P["X-B3-TraceId"]), p[0].headers.append("X-B3-ParentSpanId", P["X-B3-ParentSpanId"]), p[0].headers.append("X-B3-SpanId", P["X-B3-SpanId"]), p[0].headers.append("X-B3-Sampled", P["X-B3-Sampled"]), p[0].headers.append("X-Request-ID", e.guid()), C = P["X-B3-TraceId"];
|
|
1531
1531
|
}
|
|
1532
1532
|
L = l.pageview;
|
|
1533
1533
|
break;
|
|
1534
1534
|
case "tracing":
|
|
1535
1535
|
default:
|
|
1536
|
-
var N =
|
|
1537
|
-
N ? C = N.split(":")[0] : (N = l.getUberTraceId($),
|
|
1536
|
+
var N = p[0].headers.get("uber-trace-id");
|
|
1537
|
+
N ? C = N.split(":")[0] : (N = l.getUberTraceId($), p[0].headers.append("uber-trace-id", N["uber-trace-id"]), C = N.traceId), L = l.pageview;
|
|
1538
1538
|
}
|
|
1539
1539
|
} catch (J) {
|
|
1540
1540
|
e.warn(`[retcode] fetch failed to set header, exception is :
|
|
@@ -1565,7 +1565,7 @@ function eo() {
|
|
|
1565
1565
|
L = l.getPageviewId()["EagleEye-SessionID"];
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
return
|
|
1568
|
+
return g.apply(n, p).then(function(J) {
|
|
1569
1569
|
if (!l || !l.api)
|
|
1570
1570
|
return J;
|
|
1571
1571
|
try {
|
|
@@ -1581,14 +1581,14 @@ function eo() {
|
|
|
1581
1581
|
typeof Ve == "object" && Ve["eagleeye-traceid"] && (C = Ve["eagleeye-traceid"], R = "response");
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
var ze =
|
|
1584
|
+
var ze = S();
|
|
1585
1585
|
return j.text().then(function(Ye) {
|
|
1586
1586
|
if (!C && e.isFunction(I)) {
|
|
1587
1587
|
var Ze = I(j, Ye);
|
|
1588
1588
|
Ze && e.isString(Ze) && (C = Ze);
|
|
1589
1589
|
}
|
|
1590
|
-
var Se = e.getFetchSnapshot(
|
|
1591
|
-
j.ok ? s(l, v.parseResponse, b, y, Ye, j.status || 200, ze,
|
|
1590
|
+
var Se = e.getFetchSnapshot(p, Ye, ue);
|
|
1591
|
+
j.ok ? s(l, v.parseResponse, b, y, Ye, j.status || 200, ze, x, C, L, Se, R, $) : (l.api(b, !1, ze, j.status || 404, j.statusText, x, C, L, Se, i, R, $), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1592
1592
|
src: j.url,
|
|
1593
1593
|
res_type: "api"
|
|
1594
1594
|
}));
|
|
@@ -1599,8 +1599,8 @@ function eo() {
|
|
|
1599
1599
|
}).catch(function(J) {
|
|
1600
1600
|
if (!l || !l.api)
|
|
1601
1601
|
throw J;
|
|
1602
|
-
var j =
|
|
1603
|
-
throw l.api(b, !1, j, J.name || "Error", J.message,
|
|
1602
|
+
var j = S();
|
|
1603
|
+
throw l.api(b, !1, j, J.name || "Error", J.message, x, C, L, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1604
1604
|
src: y,
|
|
1605
1605
|
res_type: "api"
|
|
1606
1606
|
}), J;
|
|
@@ -1609,15 +1609,15 @@ function eo() {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
}(), function() {
|
|
1611
1611
|
if (typeof n[u] == "function") {
|
|
1612
|
-
var
|
|
1612
|
+
var g, d = n[u];
|
|
1613
1613
|
n[o] = d;
|
|
1614
|
-
var f = function(
|
|
1615
|
-
var l = new d(
|
|
1616
|
-
if (!
|
|
1614
|
+
var f = function(p) {
|
|
1615
|
+
var l = new d(p), x = t;
|
|
1616
|
+
if (!x || !x.api || !l.addEventListener)
|
|
1617
1617
|
return l;
|
|
1618
|
-
var v,
|
|
1619
|
-
return G && !
|
|
1620
|
-
|
|
1618
|
+
var v, S, b, y, E = l.send, I = l.open, A = l.setRequestHeader, C = x._conf, L = (C.ignore || {}).ignoreApis, _ = C.parseTraceId, R = x.getConfig("enableLinkTrace"), T = "", B = "", $ = "", q = null, G = x.getConfig("sample"), ae = x.getConfig("linkType"), Q = 1;
|
|
1619
|
+
return G && !x.sampling(G) && (Q = 0), l.open = function(te, ee) {
|
|
1620
|
+
g = te;
|
|
1621
1621
|
var P = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1622
1622
|
I.apply(l, P), y = ee || "", b = e.cutUrlSearch(y);
|
|
1623
1623
|
var N = !e.checkAPI(b, !0) || e.ignoreByRule(b, L);
|
|
@@ -1629,28 +1629,28 @@ function eo() {
|
|
|
1629
1629
|
F = "";
|
|
1630
1630
|
}
|
|
1631
1631
|
var M = e.checkSameOrigin(y, F);
|
|
1632
|
-
if ((
|
|
1632
|
+
if ((x.getConfig("enableApiCors") || M) && A && typeof A == "function")
|
|
1633
1633
|
switch (ae) {
|
|
1634
1634
|
case "arms":
|
|
1635
|
-
T =
|
|
1635
|
+
T = x.getTraceId()["EagleEye-TraceID"], A.apply(l, ["EagleEye-TraceID", T]), B = x.getPageviewId()["EagleEye-SessionID"], A.apply(l, ["EagleEye-SessionID", B]), $ = x.getConfig("pid"), A.apply(l, ["EagleEye-pAppName", $]);
|
|
1636
1636
|
break;
|
|
1637
1637
|
case "b3":
|
|
1638
|
-
var J =
|
|
1639
|
-
A.apply(l, ["X-B3-TraceId", J["X-B3-TraceId"]]), A.apply(l, ["X-B3-ParentSpanId", J["X-B3-ParentSpanId"]]), A.apply(l, ["X-B3-SpanId", J["X-B3-SpanId"]]), A.apply(l, ["X-B3-Sampled", J["X-B3-Sampled"]]), A.apply(l, ["X-Request-ID", e.guid()]), T = J["X-B3-TraceId"], B =
|
|
1638
|
+
var J = x.getB3TraceId(Q);
|
|
1639
|
+
A.apply(l, ["X-B3-TraceId", J["X-B3-TraceId"]]), A.apply(l, ["X-B3-ParentSpanId", J["X-B3-ParentSpanId"]]), A.apply(l, ["X-B3-SpanId", J["X-B3-SpanId"]]), A.apply(l, ["X-B3-Sampled", J["X-B3-Sampled"]]), A.apply(l, ["X-Request-ID", e.guid()]), T = J["X-B3-TraceId"], B = x.getPageviewId()["EagleEye-SessionID"];
|
|
1640
1640
|
break;
|
|
1641
1641
|
case "tracing":
|
|
1642
1642
|
default:
|
|
1643
|
-
var j =
|
|
1644
|
-
A.apply(l, ["uber-trace-id", j["uber-trace-id"]]), T = j.traceId, B =
|
|
1643
|
+
var j = x.getUberTraceId(Q);
|
|
1644
|
+
A.apply(l, ["uber-trace-id", j["uber-trace-id"]]), T = j.traceId, B = x.getPageviewId()["EagleEye-SessionID"];
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
}, l.send = function() {
|
|
1648
|
-
v = Date.now(),
|
|
1648
|
+
v = Date.now(), S = e.duration();
|
|
1649
1649
|
var te = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1650
1650
|
E.apply(l, te);
|
|
1651
1651
|
}, e.on(l, "readystatechange", function() {
|
|
1652
1652
|
if (b && l.readyState === 4) {
|
|
1653
|
-
var te =
|
|
1653
|
+
var te = S(), ee = e.getXhrSnapshot(y, g, l);
|
|
1654
1654
|
if (!T) {
|
|
1655
1655
|
var P = e.parseXhrHeaders(typeof l.getAllResponseHeaders == "function" && l.getAllResponseHeaders() || "");
|
|
1656
1656
|
typeof P == "object" && P["eagleeye-traceid"] && (T = P["eagleeye-traceid"], q = "response");
|
|
@@ -1666,17 +1666,17 @@ function eo() {
|
|
|
1666
1666
|
if (M && !/(text)|(json)/.test(M))
|
|
1667
1667
|
return;
|
|
1668
1668
|
}
|
|
1669
|
-
l.responseType && l.responseType !== "text" ?
|
|
1669
|
+
l.responseType && l.responseType !== "text" ? x.api(b, !0, te, F, "", v, T, B, {}, i, q, Q) : s(x, C.parseResponse, b, y, l.responseText, F, te, v, T, B, ee, q, Q);
|
|
1670
1670
|
} else
|
|
1671
|
-
|
|
1671
|
+
x.api(b, !1, te, l.status || "FAILED", l.statusText, v, T, B, ee, i, q, Q), C.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1672
1672
|
src: l.responseURL || y,
|
|
1673
1673
|
res_type: "api"
|
|
1674
1674
|
});
|
|
1675
1675
|
}
|
|
1676
1676
|
}), l;
|
|
1677
1677
|
};
|
|
1678
|
-
f.prototype = d.prototype, e.each(Object.keys(d), function(
|
|
1679
|
-
f[
|
|
1678
|
+
f.prototype = d.prototype, e.each(Object.keys(d), function(p) {
|
|
1679
|
+
f[p] = d[p];
|
|
1680
1680
|
}), n[u] = f, n[u].toString = e.createFakeToString(u);
|
|
1681
1681
|
}
|
|
1682
1682
|
}()), t = this, this);
|
|
@@ -1697,17 +1697,17 @@ function to() {
|
|
|
1697
1697
|
}) : ((u = i.createEvent("HTMLEvents")).initEvent(c, !1, !0), u.detail = o), n.dispatchEvent(u);
|
|
1698
1698
|
}, a = function(c) {
|
|
1699
1699
|
var o = t[c];
|
|
1700
|
-
typeof o == "function" && (t[c] = function(u, h,
|
|
1701
|
-
var d = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), f = location.href,
|
|
1702
|
-
if (!
|
|
1703
|
-
return
|
|
1700
|
+
typeof o == "function" && (t[c] = function(u, h, g) {
|
|
1701
|
+
var d = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), f = location.href, p = o.apply(t, d);
|
|
1702
|
+
if (!g || typeof g != "string" || g === f)
|
|
1703
|
+
return p;
|
|
1704
1704
|
try {
|
|
1705
|
-
var l = f.split("#"),
|
|
1706
|
-
b !== y ? s("historystatechange", y) : v !==
|
|
1705
|
+
var l = f.split("#"), x = g.split("#"), v = e.cutUrlSearch(l[0]), S = e.cutUrlSearch(x[0]), b = l[1] && l[1].replace(/^\/?(.*)/, "$1"), y = x[1] && x[1].replace(/^\/?(.*)/, "$1");
|
|
1706
|
+
b !== y ? s("historystatechange", y) : v !== S && s("historystatechange", S);
|
|
1707
1707
|
} catch (E) {
|
|
1708
1708
|
e.warn("[retcode] error in " + c + ": " + E);
|
|
1709
1709
|
}
|
|
1710
|
-
return
|
|
1710
|
+
return p;
|
|
1711
1711
|
}, t[c].toString = e.createFakeToString(c));
|
|
1712
1712
|
};
|
|
1713
1713
|
e.ext(r.prototype, {
|
|
@@ -1726,15 +1726,15 @@ function io() {
|
|
|
1726
1726
|
return Wi = function(t, i) {
|
|
1727
1727
|
function s(o, u, h) {
|
|
1728
1728
|
if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
|
|
1729
|
-
var
|
|
1730
|
-
if (
|
|
1731
|
-
var
|
|
1732
|
-
if (!h.has(o) && (!r.areInOrder(
|
|
1729
|
+
var g = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
|
|
1730
|
+
if (g && d.includes(g) && !r.ignoreByRule(o.name, f) && !r.ignoreByRule(r.decode(o.name), f)) {
|
|
1731
|
+
var p = o[e[0]], l = o[e[1]], x = o[e[2]], v = o[e[3]], S = o[e[4]], b = o[e[5]], y = o[e[6]], E = o[e[7]], I = o[e[8]], A = o[e[18]], C = o[e[19]];
|
|
1732
|
+
if (!h.has(o) && (!r.areInOrder(p, l, x, v, S, b, y, E, I) || p > E))
|
|
1733
1733
|
return;
|
|
1734
|
-
if (A <
|
|
1734
|
+
if (A < p && (A = p), C < p && (C = l), r.areInOrder(p, A, C, l))
|
|
1735
1735
|
return {
|
|
1736
1736
|
domain: r.getURL(o.name).domain,
|
|
1737
|
-
res_type:
|
|
1737
|
+
res_type: g,
|
|
1738
1738
|
src_type: r.getSrcType(o.name, u.cdnHostList),
|
|
1739
1739
|
success: 1,
|
|
1740
1740
|
size: Math.round(o.decodedBodySize),
|
|
@@ -1751,9 +1751,9 @@ function io() {
|
|
|
1751
1751
|
var o = this, u = i.performance, h = i.PerformanceObserver;
|
|
1752
1752
|
if (o[c] || (o[c] = /* @__PURE__ */ new WeakMap()), !u || !h || typeof u != "object" || typeof u.getEntriesByType != "function")
|
|
1753
1753
|
return null;
|
|
1754
|
-
var
|
|
1754
|
+
var g = u.getEntriesByType("resource") || [];
|
|
1755
1755
|
return setTimeout(function() {
|
|
1756
|
-
o.setResource(
|
|
1756
|
+
o.setResource(g);
|
|
1757
1757
|
}, 10), new h(function(d) {
|
|
1758
1758
|
setTimeout(function() {
|
|
1759
1759
|
o.setResource(d.getEntries());
|
|
@@ -1768,13 +1768,13 @@ function io() {
|
|
|
1768
1768
|
var u = this._conf, h = this[c];
|
|
1769
1769
|
if (r.isArray(o) && o.length) {
|
|
1770
1770
|
this[a] || (this[a] = {});
|
|
1771
|
-
for (var
|
|
1772
|
-
var
|
|
1773
|
-
if (r.checkAPI(
|
|
1774
|
-
var l = s(
|
|
1771
|
+
for (var g = this[a], d = 0, f = o.length; d < f; d += 1) {
|
|
1772
|
+
var p = o[d];
|
|
1773
|
+
if (r.checkAPI(p.name, !1)) {
|
|
1774
|
+
var l = s(p, u, h);
|
|
1775
1775
|
if (l) {
|
|
1776
|
-
var
|
|
1777
|
-
|
|
1776
|
+
var x = l.res_type + "-" + l.domain;
|
|
1777
|
+
x in g || (g[x] = []), g[x].push(l);
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
@@ -1788,9 +1788,9 @@ function io() {
|
|
|
1788
1788
|
var h = this[c];
|
|
1789
1789
|
if (!o.src || !r.checkAPI(o.src, !1))
|
|
1790
1790
|
return this;
|
|
1791
|
-
var
|
|
1791
|
+
var g = o.timeStamp || u.now(), d = u.getEntriesByName(o.src, "resource");
|
|
1792
1792
|
return r.each(d, function(f) {
|
|
1793
|
-
h.has(f) ||
|
|
1793
|
+
h.has(f) || g - f.responseEnd < 100 && h.set(f, {
|
|
1794
1794
|
success: 0
|
|
1795
1795
|
});
|
|
1796
1796
|
}), this;
|
|
@@ -1798,11 +1798,11 @@ function io() {
|
|
|
1798
1798
|
resourceComboReport: function() {
|
|
1799
1799
|
var o = this[a] || {}, u = this._conf.resourceSlow || 2e3, h = this[c];
|
|
1800
1800
|
this[a] = {};
|
|
1801
|
-
var
|
|
1802
|
-
if (
|
|
1801
|
+
var g = Object.keys(o);
|
|
1802
|
+
if (g.length !== 0) {
|
|
1803
1803
|
var d = [];
|
|
1804
|
-
r.each(
|
|
1805
|
-
var v = o[
|
|
1804
|
+
r.each(g, function(x) {
|
|
1805
|
+
var v = o[x], S = {
|
|
1806
1806
|
domain: "",
|
|
1807
1807
|
res_type: "",
|
|
1808
1808
|
src_type: "",
|
|
@@ -1817,22 +1817,22 @@ function io() {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
r.each(v, function(b) {
|
|
1819
1819
|
var y = b.timing || {}, E = h.get(b.timing), I = E ? E.success : 1, A = b.duration > u ? 1 : 0;
|
|
1820
|
-
|
|
1820
|
+
S.domain = b.domain, S.res_type = b.res_type, S.src_type = b.src_type, S.count += 1, S.duration += b.duration, S.size += b.size, I || (S.err_count += 1, S.err_duration += b.duration), A && (S.slow_count += 1, S.slow_duration += b.duration);
|
|
1821
1821
|
try {
|
|
1822
1822
|
var C = JSON.parse(JSON.stringify(y));
|
|
1823
|
-
C.success = I, C.resourceSlow = u, C.isSlow = A,
|
|
1823
|
+
C.success = I, C.resourceSlow = u, C.isSlow = A, S.timings.push(C);
|
|
1824
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, y) {
|
|
1827
1827
|
return y.duration - b.duration;
|
|
1828
|
-
}),
|
|
1828
|
+
}), S.timings.length = 20), S.timings = encodeURIComponent(JSON.stringify(S.timings)), d.push(S);
|
|
1829
1829
|
});
|
|
1830
1830
|
var f = {
|
|
1831
1831
|
_combo: 1,
|
|
1832
1832
|
resource: JSON.stringify(d)
|
|
1833
|
-
},
|
|
1834
|
-
f.ct =
|
|
1835
|
-
var l =
|
|
1833
|
+
}, p = i.navigator.connection;
|
|
1834
|
+
f.ct = p ? p.effectiveType || p.type : "";
|
|
1835
|
+
var l = p && (p.downlink || p.downlinkMax || p.bandwidth) || null;
|
|
1836
1836
|
(l = l > 999 ? 999 : l) && (f.bandwidth = l), this._lg("resource", f, this.getConfig("sample"));
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
@@ -1850,8 +1850,8 @@ function ro() {
|
|
|
1850
1850
|
errcount: 0,
|
|
1851
1851
|
apisucc: 0,
|
|
1852
1852
|
apifail: 0
|
|
1853
|
-
}, u.beforeSend = function(h,
|
|
1854
|
-
h === "error" ? u._health.errcount++ : h === "api" && u._health[
|
|
1853
|
+
}, u.beforeSend = function(h, g) {
|
|
1854
|
+
h === "error" ? u._health.errcount++ : h === "api" && u._health[g.success ? "apisucc" : "apifail"]++;
|
|
1855
1855
|
}, o.enableInstanceAutoSend !== !1 && (u.initHandler(), u.initHook(), u.initFmpObserver(1e4), u._conf && u._conf.behavior && typeof u.initBehavior == "function" && u.initBehavior(), u._conf && u._conf.enableResource && typeof u.initResource == "function" && u.initResource()), Object.defineProperty && i.addEventListener && Object.defineProperty(u, "pipe", {
|
|
1856
1856
|
set: u.sendPipe
|
|
1857
1857
|
}), u;
|
|
@@ -1910,13 +1910,13 @@ function ro() {
|
|
|
1910
1910
|
}, !0);
|
|
1911
1911
|
},
|
|
1912
1912
|
getPage: function(o) {
|
|
1913
|
-
var u = this._conf, h = u.page,
|
|
1914
|
-
return h && !o ? r.safetyCall(h, [], h + "") : this._initialPage || r.filterByRule(u.ignoreUrlCase ? d.toLowerCase() : d,
|
|
1913
|
+
var u = this._conf, h = u.page, g = location, d = g.host + g.pathname;
|
|
1914
|
+
return h && !o ? r.safetyCall(h, [], h + "") : this._initialPage || r.filterByRule(u.ignoreUrlCase ? d.toLowerCase() : d, g.href, u.ignoreUrlPath ? u.ignoreUrlPath : u.urlHelper);
|
|
1915
1915
|
},
|
|
1916
1916
|
setPage: function(o, u) {
|
|
1917
|
-
var h = this,
|
|
1917
|
+
var h = this, g = h.prevPage;
|
|
1918
1918
|
if (u !== !1) {
|
|
1919
|
-
if (!o || o ===
|
|
1919
|
+
if (!o || o === g)
|
|
1920
1920
|
return h;
|
|
1921
1921
|
h.prevPage = o, clearTimeout(h.sendPVTimmer), h.handleUnload(1), h.resetPageview(), h.sendPVTimmer = setTimeout(function() {
|
|
1922
1922
|
h.sendPV();
|
|
@@ -1930,8 +1930,8 @@ function ro() {
|
|
|
1930
1930
|
r.verifyConfig(o), o = this.setImgUrl(o);
|
|
1931
1931
|
var h = this._conf;
|
|
1932
1932
|
if (this._conf = r.ext({}, h, o), !u) {
|
|
1933
|
-
var
|
|
1934
|
-
|
|
1933
|
+
var g = "disableHook";
|
|
1934
|
+
g in o && h[g] !== o[g] && (o[g] ? this.removeHook() : this.addHook()), (g = "enableSPA") in o && h[g] !== o[g] && this.bindHashChange(o[g]);
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
1937
|
},
|
|
@@ -1941,8 +1941,8 @@ function ro() {
|
|
|
1941
1941
|
postData: function(o, u) {
|
|
1942
1942
|
var h = {};
|
|
1943
1943
|
h[u] = o[u], delete o[u];
|
|
1944
|
-
var
|
|
1945
|
-
typeof o == "object" && (
|
|
1944
|
+
var g = "";
|
|
1945
|
+
typeof o == "object" && (g = r.serialize(o)), t(h, this.getConfig("imgUrl") + g + "&post_res=");
|
|
1946
1946
|
},
|
|
1947
1947
|
sendPipe: function(o) {
|
|
1948
1948
|
var u = this;
|
|
@@ -1950,8 +1950,8 @@ function ro() {
|
|
|
1950
1950
|
return u;
|
|
1951
1951
|
try {
|
|
1952
1952
|
if (r.T(o[0]) === "Array")
|
|
1953
|
-
return r.each(o, function(
|
|
1954
|
-
return u.sendPipe(
|
|
1953
|
+
return r.each(o, function(g) {
|
|
1954
|
+
return u.sendPipe(g);
|
|
1955
1955
|
});
|
|
1956
1956
|
if (r.T(o) !== "Array")
|
|
1957
1957
|
return u;
|
|
@@ -1959,8 +1959,8 @@ function ro() {
|
|
|
1959
1959
|
if (!a.test(h))
|
|
1960
1960
|
return u;
|
|
1961
1961
|
u[h].apply(u, o);
|
|
1962
|
-
} catch (
|
|
1963
|
-
return r.warn("[retcode] error in sendPipe",
|
|
1962
|
+
} catch (g) {
|
|
1963
|
+
return r.warn("[retcode] error in sendPipe", g), u;
|
|
1964
1964
|
}
|
|
1965
1965
|
},
|
|
1966
1966
|
sendHealth: function() {
|
|
@@ -2052,8 +2052,8 @@ function co(r, n, e) {
|
|
|
2052
2052
|
let h;
|
|
2053
2053
|
try {
|
|
2054
2054
|
h = a[c];
|
|
2055
|
-
} catch (
|
|
2056
|
-
throw e(
|
|
2055
|
+
} catch (g) {
|
|
2056
|
+
throw e(g), g;
|
|
2057
2057
|
}
|
|
2058
2058
|
return rt(h, n + 1, e);
|
|
2059
2059
|
}
|
|
@@ -2062,13 +2062,13 @@ function co(r, n, e) {
|
|
|
2062
2062
|
typeof a[c] == "function" && (o = a[c].bind(a));
|
|
2063
2063
|
const u = {
|
|
2064
2064
|
MediaboxWrapperObjectMethod(...h) {
|
|
2065
|
-
let
|
|
2065
|
+
let g;
|
|
2066
2066
|
try {
|
|
2067
|
-
|
|
2067
|
+
g = o(...h);
|
|
2068
2068
|
} catch (d) {
|
|
2069
2069
|
throw e(d), d;
|
|
2070
2070
|
}
|
|
2071
|
-
return rt(
|
|
2071
|
+
return rt(g, n + 1, e);
|
|
2072
2072
|
}
|
|
2073
2073
|
};
|
|
2074
2074
|
return typeof a[c] == "function" ? u.MediaboxWrapperObjectMethod : n > 10 ? a[c] : rt(a[c], n + 1, e);
|
|
@@ -2226,7 +2226,7 @@ class jr {
|
|
|
2226
2226
|
this.isDestroyed = !0;
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
var
|
|
2229
|
+
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 || {}), Ne = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Ne || {}), k = /* @__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))(k || {}), zr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(zr || {}), mt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(mt || {}), $t = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))($t || {}), mi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(mi || {}), le = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(le || {}), st = /* @__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))(st || {}), Ie = [];
|
|
2230
2230
|
for (var Ki = 0; Ki < 256; ++Ki)
|
|
2231
2231
|
Ie.push((Ki + 256).toString(16).slice(1));
|
|
2232
2232
|
function po(r, n = 0) {
|
|
@@ -2256,7 +2256,7 @@ function at(r, n, e) {
|
|
|
2256
2256
|
return po(t);
|
|
2257
2257
|
}
|
|
2258
2258
|
var xi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(xi || {});
|
|
2259
|
-
const yi = "6.13.
|
|
2259
|
+
const yi = "6.13.7-beta.0", Ks = "web";
|
|
2260
2260
|
class He {
|
|
2261
2261
|
/**
|
|
2262
2262
|
* 将版本号转换为number
|
|
@@ -2558,28 +2558,28 @@ function ne() {
|
|
|
2558
2558
|
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 Co == "function")
|
|
2559
2559
|
try {
|
|
2560
2560
|
s = wo;
|
|
2561
|
-
} catch (
|
|
2561
|
+
} catch (S) {
|
|
2562
2562
|
}
|
|
2563
2563
|
var a = function() {
|
|
2564
2564
|
if (s) {
|
|
2565
2565
|
if (typeof s.getRandomValues == "function")
|
|
2566
2566
|
try {
|
|
2567
2567
|
return s.getRandomValues(new Uint32Array(1))[0];
|
|
2568
|
-
} catch (
|
|
2568
|
+
} catch (S) {
|
|
2569
2569
|
}
|
|
2570
2570
|
if (typeof s.randomBytes == "function")
|
|
2571
2571
|
try {
|
|
2572
2572
|
return s.randomBytes(4).readInt32LE();
|
|
2573
|
-
} catch (
|
|
2573
|
+
} catch (S) {
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
2576
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
2577
2577
|
}, c = Object.create || function() {
|
|
2578
|
-
function
|
|
2578
|
+
function S() {
|
|
2579
2579
|
}
|
|
2580
2580
|
return function(b) {
|
|
2581
2581
|
var y;
|
|
2582
|
-
return
|
|
2582
|
+
return S.prototype = b, y = new S(), S.prototype = null, y;
|
|
2583
2583
|
};
|
|
2584
2584
|
}(), o = {}, u = o.lib = {}, h = u.Base = function() {
|
|
2585
2585
|
return {
|
|
@@ -2601,9 +2601,9 @@ function ne() {
|
|
|
2601
2601
|
* }
|
|
2602
2602
|
* });
|
|
2603
2603
|
*/
|
|
2604
|
-
extend: function(
|
|
2604
|
+
extend: function(S) {
|
|
2605
2605
|
var b = c(this);
|
|
2606
|
-
return
|
|
2606
|
+
return S && b.mixIn(S), (!b.hasOwnProperty("init") || this.init === b.init) && (b.init = function() {
|
|
2607
2607
|
b.$super.init.apply(this, arguments);
|
|
2608
2608
|
}), b.init.prototype = b, b.$super = this, b;
|
|
2609
2609
|
},
|
|
@@ -2620,8 +2620,8 @@ function ne() {
|
|
|
2620
2620
|
* var instance = MyType.create();
|
|
2621
2621
|
*/
|
|
2622
2622
|
create: function() {
|
|
2623
|
-
var
|
|
2624
|
-
return
|
|
2623
|
+
var S = this.extend();
|
|
2624
|
+
return S.init.apply(S, arguments), S;
|
|
2625
2625
|
},
|
|
2626
2626
|
/**
|
|
2627
2627
|
* Initializes a newly created object.
|
|
@@ -2648,10 +2648,10 @@ function ne() {
|
|
|
2648
2648
|
* field: 'value'
|
|
2649
2649
|
* });
|
|
2650
2650
|
*/
|
|
2651
|
-
mixIn: function(
|
|
2652
|
-
for (var b in
|
|
2653
|
-
|
|
2654
|
-
|
|
2651
|
+
mixIn: function(S) {
|
|
2652
|
+
for (var b in S)
|
|
2653
|
+
S.hasOwnProperty(b) && (this[b] = S[b]);
|
|
2654
|
+
S.hasOwnProperty("toString") && (this.toString = S.toString);
|
|
2655
2655
|
},
|
|
2656
2656
|
/**
|
|
2657
2657
|
* Creates a copy of this object.
|
|
@@ -2666,7 +2666,7 @@ function ne() {
|
|
|
2666
2666
|
return this.init.prototype.extend(this);
|
|
2667
2667
|
}
|
|
2668
2668
|
};
|
|
2669
|
-
}(),
|
|
2669
|
+
}(), g = u.WordArray = h.extend({
|
|
2670
2670
|
/**
|
|
2671
2671
|
* Initializes a newly created word array.
|
|
2672
2672
|
*
|
|
@@ -2679,8 +2679,8 @@ function ne() {
|
|
|
2679
2679
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
2680
2680
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
2681
2681
|
*/
|
|
2682
|
-
init: function(
|
|
2683
|
-
|
|
2682
|
+
init: function(S, b) {
|
|
2683
|
+
S = this.words = S || [], b != i ? this.sigBytes = b : this.sigBytes = S.length * 4;
|
|
2684
2684
|
},
|
|
2685
2685
|
/**
|
|
2686
2686
|
* Converts this word array to a string.
|
|
@@ -2695,8 +2695,8 @@ function ne() {
|
|
|
2695
2695
|
* var string = wordArray.toString();
|
|
2696
2696
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
2697
2697
|
*/
|
|
2698
|
-
toString: function(
|
|
2699
|
-
return (
|
|
2698
|
+
toString: function(S) {
|
|
2699
|
+
return (S || f).stringify(this);
|
|
2700
2700
|
},
|
|
2701
2701
|
/**
|
|
2702
2702
|
* Concatenates a word array to this word array.
|
|
@@ -2709,8 +2709,8 @@ function ne() {
|
|
|
2709
2709
|
*
|
|
2710
2710
|
* wordArray1.concat(wordArray2);
|
|
2711
2711
|
*/
|
|
2712
|
-
concat: function(
|
|
2713
|
-
var b = this.words, y =
|
|
2712
|
+
concat: function(S) {
|
|
2713
|
+
var b = this.words, y = S.words, E = this.sigBytes, I = S.sigBytes;
|
|
2714
2714
|
if (this.clamp(), E % 4)
|
|
2715
2715
|
for (var A = 0; A < I; A++) {
|
|
2716
2716
|
var C = y[A >>> 2] >>> 24 - A % 4 * 8 & 255;
|
|
@@ -2729,8 +2729,8 @@ function ne() {
|
|
|
2729
2729
|
* wordArray.clamp();
|
|
2730
2730
|
*/
|
|
2731
2731
|
clamp: function() {
|
|
2732
|
-
var
|
|
2733
|
-
|
|
2732
|
+
var S = this.words, b = this.sigBytes;
|
|
2733
|
+
S[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, S.length = t.ceil(b / 4);
|
|
2734
2734
|
},
|
|
2735
2735
|
/**
|
|
2736
2736
|
* Creates a copy of this word array.
|
|
@@ -2742,8 +2742,8 @@ function ne() {
|
|
|
2742
2742
|
* var clone = wordArray.clone();
|
|
2743
2743
|
*/
|
|
2744
2744
|
clone: function() {
|
|
2745
|
-
var
|
|
2746
|
-
return
|
|
2745
|
+
var S = h.clone.call(this);
|
|
2746
|
+
return S.words = this.words.slice(0), S;
|
|
2747
2747
|
},
|
|
2748
2748
|
/**
|
|
2749
2749
|
* Creates a word array filled with random bytes.
|
|
@@ -2758,10 +2758,10 @@ function ne() {
|
|
|
2758
2758
|
*
|
|
2759
2759
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
2760
2760
|
*/
|
|
2761
|
-
random: function(
|
|
2762
|
-
for (var b = [], y = 0; y <
|
|
2761
|
+
random: function(S) {
|
|
2762
|
+
for (var b = [], y = 0; y < S; y += 4)
|
|
2763
2763
|
b.push(a());
|
|
2764
|
-
return new
|
|
2764
|
+
return new g.init(b, S);
|
|
2765
2765
|
}
|
|
2766
2766
|
}), d = o.enc = {}, f = d.Hex = {
|
|
2767
2767
|
/**
|
|
@@ -2777,8 +2777,8 @@ function ne() {
|
|
|
2777
2777
|
*
|
|
2778
2778
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
2779
2779
|
*/
|
|
2780
|
-
stringify: function(
|
|
2781
|
-
for (var b =
|
|
2780
|
+
stringify: function(S) {
|
|
2781
|
+
for (var b = S.words, y = S.sigBytes, E = [], I = 0; I < y; I++) {
|
|
2782
2782
|
var A = b[I >>> 2] >>> 24 - I % 4 * 8 & 255;
|
|
2783
2783
|
E.push((A >>> 4).toString(16)), E.push((A & 15).toString(16));
|
|
2784
2784
|
}
|
|
@@ -2797,12 +2797,12 @@ function ne() {
|
|
|
2797
2797
|
*
|
|
2798
2798
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
2799
2799
|
*/
|
|
2800
|
-
parse: function(
|
|
2801
|
-
for (var b =
|
|
2802
|
-
y[E >>> 3] |= parseInt(
|
|
2803
|
-
return new
|
|
2800
|
+
parse: function(S) {
|
|
2801
|
+
for (var b = S.length, y = [], E = 0; E < b; E += 2)
|
|
2802
|
+
y[E >>> 3] |= parseInt(S.substr(E, 2), 16) << 24 - E % 8 * 4;
|
|
2803
|
+
return new g.init(y, b / 2);
|
|
2804
2804
|
}
|
|
2805
|
-
},
|
|
2805
|
+
}, p = d.Latin1 = {
|
|
2806
2806
|
/**
|
|
2807
2807
|
* Converts a word array to a Latin1 string.
|
|
2808
2808
|
*
|
|
@@ -2816,8 +2816,8 @@ function ne() {
|
|
|
2816
2816
|
*
|
|
2817
2817
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
2818
2818
|
*/
|
|
2819
|
-
stringify: function(
|
|
2820
|
-
for (var b =
|
|
2819
|
+
stringify: function(S) {
|
|
2820
|
+
for (var b = S.words, y = S.sigBytes, E = [], I = 0; I < y; I++) {
|
|
2821
2821
|
var A = b[I >>> 2] >>> 24 - I % 4 * 8 & 255;
|
|
2822
2822
|
E.push(String.fromCharCode(A));
|
|
2823
2823
|
}
|
|
@@ -2836,10 +2836,10 @@ function ne() {
|
|
|
2836
2836
|
*
|
|
2837
2837
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
2838
2838
|
*/
|
|
2839
|
-
parse: function(
|
|
2840
|
-
for (var b =
|
|
2841
|
-
y[E >>> 2] |= (
|
|
2842
|
-
return new
|
|
2839
|
+
parse: function(S) {
|
|
2840
|
+
for (var b = S.length, y = [], E = 0; E < b; E++)
|
|
2841
|
+
y[E >>> 2] |= (S.charCodeAt(E) & 255) << 24 - E % 4 * 8;
|
|
2842
|
+
return new g.init(y, b);
|
|
2843
2843
|
}
|
|
2844
2844
|
}, l = d.Utf8 = {
|
|
2845
2845
|
/**
|
|
@@ -2855,9 +2855,9 @@ function ne() {
|
|
|
2855
2855
|
*
|
|
2856
2856
|
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
2857
2857
|
*/
|
|
2858
|
-
stringify: function(
|
|
2858
|
+
stringify: function(S) {
|
|
2859
2859
|
try {
|
|
2860
|
-
return decodeURIComponent(escape(
|
|
2860
|
+
return decodeURIComponent(escape(p.stringify(S)));
|
|
2861
2861
|
} catch (b) {
|
|
2862
2862
|
throw new Error("Malformed UTF-8 data");
|
|
2863
2863
|
}
|
|
@@ -2875,10 +2875,10 @@ function ne() {
|
|
|
2875
2875
|
*
|
|
2876
2876
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
2877
2877
|
*/
|
|
2878
|
-
parse: function(
|
|
2879
|
-
return
|
|
2878
|
+
parse: function(S) {
|
|
2879
|
+
return p.parse(unescape(encodeURIComponent(S)));
|
|
2880
2880
|
}
|
|
2881
|
-
},
|
|
2881
|
+
}, x = u.BufferedBlockAlgorithm = h.extend({
|
|
2882
2882
|
/**
|
|
2883
2883
|
* Resets this block algorithm's data buffer to its initial state.
|
|
2884
2884
|
*
|
|
@@ -2887,7 +2887,7 @@ function ne() {
|
|
|
2887
2887
|
* bufferedBlockAlgorithm.reset();
|
|
2888
2888
|
*/
|
|
2889
2889
|
reset: function() {
|
|
2890
|
-
this._data = new
|
|
2890
|
+
this._data = new g.init(), this._nDataBytes = 0;
|
|
2891
2891
|
},
|
|
2892
2892
|
/**
|
|
2893
2893
|
* Adds new data to this block algorithm's buffer.
|
|
@@ -2899,8 +2899,8 @@ function ne() {
|
|
|
2899
2899
|
* bufferedBlockAlgorithm._append('data');
|
|
2900
2900
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
2901
2901
|
*/
|
|
2902
|
-
_append: function(
|
|
2903
|
-
typeof
|
|
2902
|
+
_append: function(S) {
|
|
2903
|
+
typeof S == "string" && (S = l.parse(S)), this._data.concat(S), this._nDataBytes += S.sigBytes;
|
|
2904
2904
|
},
|
|
2905
2905
|
/**
|
|
2906
2906
|
* Processes available data blocks.
|
|
@@ -2916,16 +2916,16 @@ function ne() {
|
|
|
2916
2916
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
2917
2917
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
2918
2918
|
*/
|
|
2919
|
-
_process: function(
|
|
2919
|
+
_process: function(S) {
|
|
2920
2920
|
var b, y = this._data, E = y.words, I = y.sigBytes, A = this.blockSize, C = A * 4, L = I / C;
|
|
2921
|
-
|
|
2921
|
+
S ? L = t.ceil(L) : L = t.max((L | 0) - this._minBufferSize, 0);
|
|
2922
2922
|
var _ = L * A, R = t.min(_ * 4, I);
|
|
2923
2923
|
if (_) {
|
|
2924
2924
|
for (var T = 0; T < _; T += A)
|
|
2925
2925
|
this._doProcessBlock(E, T);
|
|
2926
2926
|
b = E.splice(0, _), y.sigBytes -= R;
|
|
2927
2927
|
}
|
|
2928
|
-
return new
|
|
2928
|
+
return new g.init(b, R);
|
|
2929
2929
|
},
|
|
2930
2930
|
/**
|
|
2931
2931
|
* Creates a copy of this object.
|
|
@@ -2937,12 +2937,12 @@ function ne() {
|
|
|
2937
2937
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
2938
2938
|
*/
|
|
2939
2939
|
clone: function() {
|
|
2940
|
-
var
|
|
2941
|
-
return
|
|
2940
|
+
var S = h.clone.call(this);
|
|
2941
|
+
return S._data = this._data.clone(), S;
|
|
2942
2942
|
},
|
|
2943
2943
|
_minBufferSize: 0
|
|
2944
2944
|
});
|
|
2945
|
-
u.Hasher =
|
|
2945
|
+
u.Hasher = x.extend({
|
|
2946
2946
|
/**
|
|
2947
2947
|
* Configuration options.
|
|
2948
2948
|
*/
|
|
@@ -2956,8 +2956,8 @@ function ne() {
|
|
|
2956
2956
|
*
|
|
2957
2957
|
* var hasher = CryptoJS.algo.SHA256.create();
|
|
2958
2958
|
*/
|
|
2959
|
-
init: function(
|
|
2960
|
-
this.cfg = this.cfg.extend(
|
|
2959
|
+
init: function(S) {
|
|
2960
|
+
this.cfg = this.cfg.extend(S), this.reset();
|
|
2961
2961
|
},
|
|
2962
2962
|
/**
|
|
2963
2963
|
* Resets this hasher to its initial state.
|
|
@@ -2967,7 +2967,7 @@ function ne() {
|
|
|
2967
2967
|
* hasher.reset();
|
|
2968
2968
|
*/
|
|
2969
2969
|
reset: function() {
|
|
2970
|
-
|
|
2970
|
+
x.reset.call(this), this._doReset();
|
|
2971
2971
|
},
|
|
2972
2972
|
/**
|
|
2973
2973
|
* Updates this hasher with a message.
|
|
@@ -2981,8 +2981,8 @@ function ne() {
|
|
|
2981
2981
|
* hasher.update('message');
|
|
2982
2982
|
* hasher.update(wordArray);
|
|
2983
2983
|
*/
|
|
2984
|
-
update: function(
|
|
2985
|
-
return this._append(
|
|
2984
|
+
update: function(S) {
|
|
2985
|
+
return this._append(S), this._process(), this;
|
|
2986
2986
|
},
|
|
2987
2987
|
/**
|
|
2988
2988
|
* Finalizes the hash computation.
|
|
@@ -2998,8 +2998,8 @@ function ne() {
|
|
|
2998
2998
|
* var hash = hasher.finalize('message');
|
|
2999
2999
|
* var hash = hasher.finalize(wordArray);
|
|
3000
3000
|
*/
|
|
3001
|
-
finalize: function(
|
|
3002
|
-
|
|
3001
|
+
finalize: function(S) {
|
|
3002
|
+
S && this._append(S);
|
|
3003
3003
|
var b = this._doFinalize();
|
|
3004
3004
|
return b;
|
|
3005
3005
|
},
|
|
@@ -3017,9 +3017,9 @@ function ne() {
|
|
|
3017
3017
|
*
|
|
3018
3018
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
3019
3019
|
*/
|
|
3020
|
-
_createHelper: function(
|
|
3020
|
+
_createHelper: function(S) {
|
|
3021
3021
|
return function(b, y) {
|
|
3022
|
-
return new
|
|
3022
|
+
return new S.init(y).finalize(b);
|
|
3023
3023
|
};
|
|
3024
3024
|
},
|
|
3025
3025
|
/**
|
|
@@ -3035,9 +3035,9 @@ function ne() {
|
|
|
3035
3035
|
*
|
|
3036
3036
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
3037
3037
|
*/
|
|
3038
|
-
_createHmacHelper: function(
|
|
3038
|
+
_createHmacHelper: function(S) {
|
|
3039
3039
|
return function(b, y) {
|
|
3040
|
-
return new v.HMAC.init(
|
|
3040
|
+
return new v.HMAC.init(S, y).finalize(b);
|
|
3041
3041
|
};
|
|
3042
3042
|
}
|
|
3043
3043
|
});
|
|
@@ -3253,11 +3253,11 @@ function Ei() {
|
|
|
3253
3253
|
* var x32WordArray = x64WordArray.toX32();
|
|
3254
3254
|
*/
|
|
3255
3255
|
toX32: function() {
|
|
3256
|
-
for (var u = this.words, h = u.length,
|
|
3256
|
+
for (var u = this.words, h = u.length, g = [], d = 0; d < h; d++) {
|
|
3257
3257
|
var f = u[d];
|
|
3258
|
-
|
|
3258
|
+
g.push(f.high), g.push(f.low);
|
|
3259
3259
|
}
|
|
3260
|
-
return c.create(
|
|
3260
|
+
return c.create(g, this.sigBytes);
|
|
3261
3261
|
},
|
|
3262
3262
|
/**
|
|
3263
3263
|
* Creates a copy of this word array.
|
|
@@ -3269,7 +3269,7 @@ function Ei() {
|
|
|
3269
3269
|
* var clone = x64WordArray.clone();
|
|
3270
3270
|
*/
|
|
3271
3271
|
clone: function() {
|
|
3272
|
-
for (var u = a.clone.call(this), h = u.words = this.words.slice(0),
|
|
3272
|
+
for (var u = a.clone.call(this), h = u.words = this.words.slice(0), g = h.length, d = 0; d < g; d++)
|
|
3273
3273
|
h[d] = h[d].clone();
|
|
3274
3274
|
return u;
|
|
3275
3275
|
}
|
|
@@ -3288,8 +3288,8 @@ function Do() {
|
|
|
3288
3288
|
if (typeof ArrayBuffer == "function") {
|
|
3289
3289
|
var t = e, i = t.lib, s = i.WordArray, a = s.init, c = s.init = function(o) {
|
|
3290
3290
|
if (o instanceof ArrayBuffer && (o = new Uint8Array(o)), (o instanceof Int8Array || typeof Uint8ClampedArray != "undefined" && o instanceof Uint8ClampedArray || o instanceof Int16Array || o instanceof Uint16Array || o instanceof Int32Array || o instanceof Uint32Array || o instanceof Float32Array || o instanceof Float64Array) && (o = new Uint8Array(o.buffer, o.byteOffset, o.byteLength)), o instanceof Uint8Array) {
|
|
3291
|
-
for (var u = o.byteLength, h = [],
|
|
3292
|
-
h[
|
|
3291
|
+
for (var u = o.byteLength, h = [], g = 0; g < u; g++)
|
|
3292
|
+
h[g >>> 2] |= o[g] << 24 - g % 4 * 8;
|
|
3293
3293
|
a.call(this, h, u);
|
|
3294
3294
|
} else
|
|
3295
3295
|
a.apply(this, arguments);
|
|
@@ -3323,11 +3323,11 @@ function To() {
|
|
|
3323
3323
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
3324
3324
|
*/
|
|
3325
3325
|
stringify: function(o) {
|
|
3326
|
-
for (var u = o.words, h = o.sigBytes,
|
|
3326
|
+
for (var u = o.words, h = o.sigBytes, g = [], d = 0; d < h; d += 2) {
|
|
3327
3327
|
var f = u[d >>> 2] >>> 16 - d % 4 * 8 & 65535;
|
|
3328
|
-
|
|
3328
|
+
g.push(String.fromCharCode(f));
|
|
3329
3329
|
}
|
|
3330
|
-
return
|
|
3330
|
+
return g.join("");
|
|
3331
3331
|
},
|
|
3332
3332
|
/**
|
|
3333
3333
|
* Converts a UTF-16 BE string to a word array.
|
|
@@ -3343,8 +3343,8 @@ function To() {
|
|
|
3343
3343
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
3344
3344
|
*/
|
|
3345
3345
|
parse: function(o) {
|
|
3346
|
-
for (var u = o.length, h = [],
|
|
3347
|
-
h[
|
|
3346
|
+
for (var u = o.length, h = [], g = 0; g < u; g++)
|
|
3347
|
+
h[g >>> 1] |= o.charCodeAt(g) << 16 - g % 2 * 16;
|
|
3348
3348
|
return s.create(h, u * 2);
|
|
3349
3349
|
}
|
|
3350
3350
|
}, a.Utf16LE = {
|
|
@@ -3362,11 +3362,11 @@ function To() {
|
|
|
3362
3362
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
3363
3363
|
*/
|
|
3364
3364
|
stringify: function(o) {
|
|
3365
|
-
for (var u = o.words, h = o.sigBytes,
|
|
3365
|
+
for (var u = o.words, h = o.sigBytes, g = [], d = 0; d < h; d += 2) {
|
|
3366
3366
|
var f = c(u[d >>> 2] >>> 16 - d % 4 * 8 & 65535);
|
|
3367
|
-
|
|
3367
|
+
g.push(String.fromCharCode(f));
|
|
3368
3368
|
}
|
|
3369
|
-
return
|
|
3369
|
+
return g.join("");
|
|
3370
3370
|
},
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Converts a UTF-16 LE string to a word array.
|
|
@@ -3382,8 +3382,8 @@ function To() {
|
|
|
3382
3382
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
3383
3383
|
*/
|
|
3384
3384
|
parse: function(o) {
|
|
3385
|
-
for (var u = o.length, h = [],
|
|
3386
|
-
h[
|
|
3385
|
+
for (var u = o.length, h = [], g = 0; g < u; g++)
|
|
3386
|
+
h[g >>> 1] |= c(o.charCodeAt(g) << 16 - g % 2 * 16);
|
|
3387
3387
|
return s.create(h, u * 2);
|
|
3388
3388
|
}
|
|
3389
3389
|
};
|
|
@@ -3417,12 +3417,12 @@ function Mt() {
|
|
|
3417
3417
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
3418
3418
|
*/
|
|
3419
3419
|
stringify: function(o) {
|
|
3420
|
-
var u = o.words, h = o.sigBytes,
|
|
3420
|
+
var u = o.words, h = o.sigBytes, g = this._map;
|
|
3421
3421
|
o.clamp();
|
|
3422
3422
|
for (var d = [], f = 0; f < h; f += 3)
|
|
3423
|
-
for (var
|
|
3424
|
-
d.push(
|
|
3425
|
-
var b =
|
|
3423
|
+
for (var p = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, x = u[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, v = p << 16 | l << 8 | x, S = 0; S < 4 && f + S * 0.75 < h; S++)
|
|
3424
|
+
d.push(g.charAt(v >>> 6 * (3 - S) & 63));
|
|
3425
|
+
var b = g.charAt(64);
|
|
3426
3426
|
if (b)
|
|
3427
3427
|
for (; d.length % 4; )
|
|
3428
3428
|
d.push(b);
|
|
@@ -3442,28 +3442,28 @@ function Mt() {
|
|
|
3442
3442
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
3443
3443
|
*/
|
|
3444
3444
|
parse: function(o) {
|
|
3445
|
-
var u = o.length, h = this._map,
|
|
3446
|
-
if (!
|
|
3447
|
-
|
|
3445
|
+
var u = o.length, h = this._map, g = this._reverseMap;
|
|
3446
|
+
if (!g) {
|
|
3447
|
+
g = this._reverseMap = [];
|
|
3448
3448
|
for (var d = 0; d < h.length; d++)
|
|
3449
|
-
|
|
3449
|
+
g[h.charCodeAt(d)] = d;
|
|
3450
3450
|
}
|
|
3451
3451
|
var f = h.charAt(64);
|
|
3452
3452
|
if (f) {
|
|
3453
|
-
var
|
|
3454
|
-
|
|
3453
|
+
var p = o.indexOf(f);
|
|
3454
|
+
p !== -1 && (u = p);
|
|
3455
3455
|
}
|
|
3456
|
-
return c(o, u,
|
|
3456
|
+
return c(o, u, g);
|
|
3457
3457
|
},
|
|
3458
3458
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
3459
3459
|
};
|
|
3460
3460
|
function c(o, u, h) {
|
|
3461
|
-
for (var
|
|
3461
|
+
for (var g = [], d = 0, f = 0; f < u; f++)
|
|
3462
3462
|
if (f % 4) {
|
|
3463
|
-
var
|
|
3464
|
-
|
|
3463
|
+
var p = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = p | l;
|
|
3464
|
+
g[d >>> 2] |= x << 24 - d % 4 * 8, d++;
|
|
3465
3465
|
}
|
|
3466
|
-
return s.create(
|
|
3466
|
+
return s.create(g, d);
|
|
3467
3467
|
}
|
|
3468
3468
|
}(), e.enc.Base64;
|
|
3469
3469
|
});
|
|
@@ -3495,11 +3495,11 @@ function Po() {
|
|
|
3495
3495
|
*/
|
|
3496
3496
|
stringify: function(o, u) {
|
|
3497
3497
|
u === void 0 && (u = !0);
|
|
3498
|
-
var h = o.words,
|
|
3498
|
+
var h = o.words, g = o.sigBytes, d = u ? this._safe_map : this._map;
|
|
3499
3499
|
o.clamp();
|
|
3500
|
-
for (var f = [],
|
|
3501
|
-
for (var l = h[
|
|
3502
|
-
f.push(d.charAt(
|
|
3500
|
+
for (var f = [], p = 0; p < g; p += 3)
|
|
3501
|
+
for (var l = h[p >>> 2] >>> 24 - p % 4 * 8 & 255, x = h[p + 1 >>> 2] >>> 24 - (p + 1) % 4 * 8 & 255, v = h[p + 2 >>> 2] >>> 24 - (p + 2) % 4 * 8 & 255, S = l << 16 | x << 8 | v, b = 0; b < 4 && p + b * 0.75 < g; b++)
|
|
3502
|
+
f.push(d.charAt(S >>> 6 * (3 - b) & 63));
|
|
3503
3503
|
var y = d.charAt(64);
|
|
3504
3504
|
if (y)
|
|
3505
3505
|
for (; f.length % 4; )
|
|
@@ -3523,15 +3523,15 @@ function Po() {
|
|
|
3523
3523
|
*/
|
|
3524
3524
|
parse: function(o, u) {
|
|
3525
3525
|
u === void 0 && (u = !0);
|
|
3526
|
-
var h = o.length,
|
|
3526
|
+
var h = o.length, g = u ? this._safe_map : this._map, d = this._reverseMap;
|
|
3527
3527
|
if (!d) {
|
|
3528
3528
|
d = this._reverseMap = [];
|
|
3529
|
-
for (var f = 0; f <
|
|
3530
|
-
d[
|
|
3529
|
+
for (var f = 0; f < g.length; f++)
|
|
3530
|
+
d[g.charCodeAt(f)] = f;
|
|
3531
3531
|
}
|
|
3532
|
-
var
|
|
3533
|
-
if (
|
|
3534
|
-
var l = o.indexOf(
|
|
3532
|
+
var p = g.charAt(64);
|
|
3533
|
+
if (p) {
|
|
3534
|
+
var l = o.indexOf(p);
|
|
3535
3535
|
l !== -1 && (h = l);
|
|
3536
3536
|
}
|
|
3537
3537
|
return c(o, h, d);
|
|
@@ -3540,12 +3540,12 @@ function Po() {
|
|
|
3540
3540
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
3541
3541
|
};
|
|
3542
3542
|
function c(o, u, h) {
|
|
3543
|
-
for (var
|
|
3543
|
+
for (var g = [], d = 0, f = 0; f < u; f++)
|
|
3544
3544
|
if (f % 4) {
|
|
3545
|
-
var
|
|
3546
|
-
|
|
3545
|
+
var p = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, x = p | l;
|
|
3546
|
+
g[d >>> 2] |= x << 24 - d % 4 * 8, d++;
|
|
3547
3547
|
}
|
|
3548
|
-
return s.create(
|
|
3548
|
+
return s.create(g, d);
|
|
3549
3549
|
}
|
|
3550
3550
|
}(), e.enc.Base64url;
|
|
3551
3551
|
});
|
|
@@ -3572,19 +3572,19 @@ function Lt() {
|
|
|
3572
3572
|
271733878
|
|
3573
3573
|
]);
|
|
3574
3574
|
},
|
|
3575
|
-
_doProcessBlock: function(l,
|
|
3575
|
+
_doProcessBlock: function(l, x) {
|
|
3576
3576
|
for (var v = 0; v < 16; v++) {
|
|
3577
|
-
var
|
|
3578
|
-
l[
|
|
3577
|
+
var S = x + v, b = l[S];
|
|
3578
|
+
l[S] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
3579
3579
|
}
|
|
3580
|
-
var y = this._hash.words, E = l[
|
|
3581
|
-
P =
|
|
3580
|
+
var y = this._hash.words, E = l[x + 0], I = l[x + 1], A = l[x + 2], C = l[x + 3], L = l[x + 4], _ = l[x + 5], R = l[x + 6], T = l[x + 7], B = l[x + 8], $ = l[x + 9], q = l[x + 10], G = l[x + 11], ae = l[x + 12], Q = l[x + 13], te = l[x + 14], ee = l[x + 15], P = y[0], N = y[1], F = y[2], M = y[3];
|
|
3581
|
+
P = g(P, N, F, M, E, 7, u[0]), M = g(M, P, N, F, I, 12, u[1]), F = g(F, M, P, N, A, 17, u[2]), N = g(N, F, M, P, C, 22, u[3]), P = g(P, N, F, M, L, 7, u[4]), M = g(M, P, N, F, _, 12, u[5]), F = g(F, M, P, N, R, 17, u[6]), N = g(N, F, M, P, T, 22, u[7]), P = g(P, N, F, M, B, 7, u[8]), M = g(M, P, N, F, $, 12, u[9]), F = g(F, M, P, N, q, 17, u[10]), N = g(N, F, M, P, G, 22, u[11]), P = g(P, N, F, M, ae, 7, u[12]), M = g(M, P, N, F, Q, 12, u[13]), F = g(F, M, P, N, te, 17, u[14]), N = g(N, F, M, P, ee, 22, u[15]), P = d(P, N, F, M, I, 5, u[16]), M = d(M, P, N, F, R, 9, u[17]), F = d(F, M, P, N, G, 14, u[18]), N = d(N, F, M, P, E, 20, u[19]), P = d(P, N, F, M, _, 5, u[20]), M = d(M, P, N, F, q, 9, u[21]), F = d(F, M, P, N, ee, 14, u[22]), N = d(N, F, M, P, L, 20, u[23]), P = d(P, N, F, M, $, 5, u[24]), M = d(M, P, N, F, te, 9, u[25]), F = d(F, M, P, N, C, 14, u[26]), N = d(N, F, M, P, B, 20, u[27]), P = d(P, N, F, M, Q, 5, u[28]), M = d(M, P, N, F, A, 9, u[29]), F = d(F, M, P, N, T, 14, u[30]), N = d(N, F, M, P, ae, 20, u[31]), P = f(P, N, F, M, _, 4, u[32]), M = f(M, P, N, F, B, 11, u[33]), F = f(F, M, P, N, G, 16, u[34]), N = f(N, F, M, P, te, 23, u[35]), P = f(P, N, F, M, I, 4, u[36]), M = f(M, P, N, F, L, 11, u[37]), F = f(F, M, P, N, T, 16, u[38]), N = f(N, F, M, P, q, 23, u[39]), P = f(P, N, F, M, Q, 4, u[40]), M = f(M, P, N, F, E, 11, u[41]), F = f(F, M, P, N, C, 16, u[42]), N = f(N, F, M, P, R, 23, u[43]), P = f(P, N, F, M, $, 4, u[44]), M = f(M, P, N, F, ae, 11, u[45]), F = f(F, M, P, N, ee, 16, u[46]), N = f(N, F, M, P, A, 23, u[47]), P = p(P, N, F, M, E, 6, u[48]), M = p(M, P, N, F, T, 10, u[49]), F = p(F, M, P, N, te, 15, u[50]), N = p(N, F, M, P, _, 21, u[51]), P = p(P, N, F, M, ae, 6, u[52]), M = p(M, P, N, F, C, 10, u[53]), F = p(F, M, P, N, q, 15, u[54]), N = p(N, F, M, P, I, 21, u[55]), P = p(P, N, F, M, B, 6, u[56]), M = p(M, P, N, F, ee, 10, u[57]), F = p(F, M, P, N, R, 15, u[58]), N = p(N, F, M, P, Q, 21, u[59]), P = p(P, N, F, M, L, 6, u[60]), M = p(M, P, N, F, G, 10, u[61]), F = p(F, M, P, N, A, 15, u[62]), N = p(N, F, M, P, $, 21, u[63]), y[0] = y[0] + P | 0, y[1] = y[1] + N | 0, y[2] = y[2] + F | 0, y[3] = y[3] + M | 0;
|
|
3582
3582
|
},
|
|
3583
3583
|
_doFinalize: function() {
|
|
3584
|
-
var l = this._data,
|
|
3585
|
-
S
|
|
3584
|
+
var l = this._data, x = l.words, v = this._nDataBytes * 8, S = l.sigBytes * 8;
|
|
3585
|
+
x[S >>> 5] |= 128 << 24 - S % 32;
|
|
3586
3586
|
var b = t.floor(v / 4294967296), y = v;
|
|
3587
|
-
|
|
3587
|
+
x[(S + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, x[(S + 64 >>> 9 << 4) + 14] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, l.sigBytes = (x.length + 1) * 4, this._process();
|
|
3588
3588
|
for (var E = this._hash, I = E.words, A = 0; A < 4; A++) {
|
|
3589
3589
|
var C = I[A];
|
|
3590
3590
|
I[A] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
|
|
@@ -3596,21 +3596,21 @@ function Lt() {
|
|
|
3596
3596
|
return l._hash = this._hash.clone(), l;
|
|
3597
3597
|
}
|
|
3598
3598
|
});
|
|
3599
|
-
function
|
|
3600
|
-
var I = l + (
|
|
3601
|
-
return (I << y | I >>> 32 - y) +
|
|
3599
|
+
function g(l, x, v, S, b, y, E) {
|
|
3600
|
+
var I = l + (x & v | ~x & S) + b + E;
|
|
3601
|
+
return (I << y | I >>> 32 - y) + x;
|
|
3602
3602
|
}
|
|
3603
|
-
function d(l,
|
|
3604
|
-
var I = l + (
|
|
3605
|
-
return (I << y | I >>> 32 - y) +
|
|
3603
|
+
function d(l, x, v, S, b, y, E) {
|
|
3604
|
+
var I = l + (x & S | v & ~S) + b + E;
|
|
3605
|
+
return (I << y | I >>> 32 - y) + x;
|
|
3606
3606
|
}
|
|
3607
|
-
function f(l,
|
|
3608
|
-
var I = l + (
|
|
3609
|
-
return (I << y | I >>> 32 - y) +
|
|
3607
|
+
function f(l, x, v, S, b, y, E) {
|
|
3608
|
+
var I = l + (x ^ v ^ S) + b + E;
|
|
3609
|
+
return (I << y | I >>> 32 - y) + x;
|
|
3610
3610
|
}
|
|
3611
|
-
function
|
|
3612
|
-
var I = l + (v ^ (
|
|
3613
|
-
return (I << y | I >>> 32 - y) +
|
|
3611
|
+
function p(l, x, v, S, b, y, E) {
|
|
3612
|
+
var I = l + (v ^ (x | ~S)) + b + E;
|
|
3613
|
+
return (I << y | I >>> 32 - y) + x;
|
|
3614
3614
|
}
|
|
3615
3615
|
i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
|
|
3616
3616
|
}(Math), e.MD5;
|
|
@@ -3634,22 +3634,22 @@ function sn() {
|
|
|
3634
3634
|
3285377520
|
|
3635
3635
|
]);
|
|
3636
3636
|
},
|
|
3637
|
-
_doProcessBlock: function(h,
|
|
3638
|
-
for (var d = this._hash.words, f = d[0],
|
|
3639
|
-
if (
|
|
3640
|
-
o[
|
|
3637
|
+
_doProcessBlock: function(h, g) {
|
|
3638
|
+
for (var d = this._hash.words, f = d[0], p = d[1], l = d[2], x = d[3], v = d[4], S = 0; S < 80; S++) {
|
|
3639
|
+
if (S < 16)
|
|
3640
|
+
o[S] = h[g + S] | 0;
|
|
3641
3641
|
else {
|
|
3642
|
-
var b = o[
|
|
3643
|
-
o[
|
|
3642
|
+
var b = o[S - 3] ^ o[S - 8] ^ o[S - 14] ^ o[S - 16];
|
|
3643
|
+
o[S] = b << 1 | b >>> 31;
|
|
3644
3644
|
}
|
|
3645
|
-
var y = (f << 5 | f >>> 27) + v + o[
|
|
3646
|
-
|
|
3645
|
+
var y = (f << 5 | f >>> 27) + v + o[S];
|
|
3646
|
+
S < 20 ? y += (p & l | ~p & x) + 1518500249 : S < 40 ? y += (p ^ l ^ x) + 1859775393 : S < 60 ? y += (p & l | p & x | l & x) - 1894007588 : y += (p ^ l ^ x) - 899497514, v = x, x = l, l = p << 30 | p >>> 2, p = f, f = y;
|
|
3647
3647
|
}
|
|
3648
|
-
d[0] = d[0] + f | 0, d[1] = d[1] +
|
|
3648
|
+
d[0] = d[0] + f | 0, d[1] = d[1] + p | 0, d[2] = d[2] + l | 0, d[3] = d[3] + x | 0, d[4] = d[4] + v | 0;
|
|
3649
3649
|
},
|
|
3650
3650
|
_doFinalize: function() {
|
|
3651
|
-
var h = this._data,
|
|
3652
|
-
return
|
|
3651
|
+
var h = this._data, g = h.words, d = this._nDataBytes * 8, f = h.sigBytes * 8;
|
|
3652
|
+
return g[f >>> 5] |= 128 << 24 - f % 32, g[(f + 64 >>> 9 << 4) + 14] = Math.floor(d / 4294967296), g[(f + 64 >>> 9 << 4) + 15] = d, h.sigBytes = g.length * 4, this._process(), this._hash;
|
|
3653
3653
|
},
|
|
3654
3654
|
clone: function() {
|
|
3655
3655
|
var h = a.clone.call(this);
|
|
@@ -3671,37 +3671,37 @@ function $r() {
|
|
|
3671
3671
|
var i = e, s = i.lib, a = s.WordArray, c = s.Hasher, o = i.algo, u = [], h = [];
|
|
3672
3672
|
(function() {
|
|
3673
3673
|
function f(v) {
|
|
3674
|
-
for (var
|
|
3674
|
+
for (var S = t.sqrt(v), b = 2; b <= S; b++)
|
|
3675
3675
|
if (!(v % b))
|
|
3676
3676
|
return !1;
|
|
3677
3677
|
return !0;
|
|
3678
3678
|
}
|
|
3679
|
-
function
|
|
3679
|
+
function p(v) {
|
|
3680
3680
|
return (v - (v | 0)) * 4294967296 | 0;
|
|
3681
3681
|
}
|
|
3682
|
-
for (var l = 2,
|
|
3683
|
-
f(l) && (
|
|
3682
|
+
for (var l = 2, x = 0; x < 64; )
|
|
3683
|
+
f(l) && (x < 8 && (u[x] = p(t.pow(l, 1 / 2))), h[x] = p(t.pow(l, 1 / 3)), x++), l++;
|
|
3684
3684
|
})();
|
|
3685
|
-
var
|
|
3685
|
+
var g = [], d = o.SHA256 = c.extend({
|
|
3686
3686
|
_doReset: function() {
|
|
3687
3687
|
this._hash = new a.init(u.slice(0));
|
|
3688
3688
|
},
|
|
3689
|
-
_doProcessBlock: function(f,
|
|
3690
|
-
for (var l = this._hash.words,
|
|
3689
|
+
_doProcessBlock: function(f, p) {
|
|
3690
|
+
for (var l = this._hash.words, x = l[0], v = l[1], S = l[2], b = l[3], y = l[4], E = l[5], I = l[6], A = l[7], C = 0; C < 64; C++) {
|
|
3691
3691
|
if (C < 16)
|
|
3692
|
-
|
|
3692
|
+
g[C] = f[p + C] | 0;
|
|
3693
3693
|
else {
|
|
3694
|
-
var L =
|
|
3695
|
-
|
|
3694
|
+
var L = g[C - 15], _ = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, R = g[C - 2], T = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
|
|
3695
|
+
g[C] = _ + g[C - 7] + T + g[C - 16];
|
|
3696
3696
|
}
|
|
3697
|
-
var B = y & E ^ ~y & I, $ =
|
|
3698
|
-
A = I, I = E, E = y, y = b + ae | 0, b =
|
|
3697
|
+
var B = y & E ^ ~y & I, $ = x & v ^ x & S ^ v & S, q = (x << 30 | x >>> 2) ^ (x << 19 | x >>> 13) ^ (x << 10 | x >>> 22), G = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25), ae = A + G + B + h[C] + g[C], Q = q + $;
|
|
3698
|
+
A = I, I = E, E = y, y = b + ae | 0, b = S, S = v, v = x, x = ae + Q | 0;
|
|
3699
3699
|
}
|
|
3700
|
-
l[0] = l[0] +
|
|
3700
|
+
l[0] = l[0] + x | 0, l[1] = l[1] + v | 0, l[2] = l[2] + S | 0, l[3] = l[3] + b | 0, l[4] = l[4] + y | 0, l[5] = l[5] + E | 0, l[6] = l[6] + I | 0, l[7] = l[7] + A | 0;
|
|
3701
3701
|
},
|
|
3702
3702
|
_doFinalize: function() {
|
|
3703
|
-
var f = this._data,
|
|
3704
|
-
return
|
|
3703
|
+
var f = this._data, p = f.words, l = this._nDataBytes * 8, x = f.sigBytes * 8;
|
|
3704
|
+
return p[x >>> 5] |= 128 << 24 - x % 32, p[(x + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), p[(x + 64 >>> 9 << 4) + 15] = l, f.sigBytes = p.length * 4, this._process(), this._hash;
|
|
3705
3705
|
},
|
|
3706
3706
|
clone: function() {
|
|
3707
3707
|
var f = c.clone.call(this);
|
|
@@ -3754,7 +3754,7 @@ function an() {
|
|
|
3754
3754
|
function h() {
|
|
3755
3755
|
return c.create.apply(c, arguments);
|
|
3756
3756
|
}
|
|
3757
|
-
var
|
|
3757
|
+
var g = [
|
|
3758
3758
|
h(1116352408, 3609767458),
|
|
3759
3759
|
h(1899447441, 602891725),
|
|
3760
3760
|
h(3049323471, 3964484399),
|
|
@@ -3837,8 +3837,8 @@ function an() {
|
|
|
3837
3837
|
h(1816402316, 1246189591)
|
|
3838
3838
|
], d = [];
|
|
3839
3839
|
(function() {
|
|
3840
|
-
for (var
|
|
3841
|
-
d[
|
|
3840
|
+
for (var p = 0; p < 80; p++)
|
|
3841
|
+
d[p] = h();
|
|
3842
3842
|
})();
|
|
3843
3843
|
var f = u.SHA512 = s.extend({
|
|
3844
3844
|
_doReset: function() {
|
|
@@ -3853,29 +3853,29 @@ function an() {
|
|
|
3853
3853
|
new c.init(1541459225, 327033209)
|
|
3854
3854
|
]);
|
|
3855
3855
|
},
|
|
3856
|
-
_doProcessBlock: function(
|
|
3857
|
-
for (var
|
|
3856
|
+
_doProcessBlock: function(p, l) {
|
|
3857
|
+
for (var x = this._hash.words, v = x[0], S = x[1], b = x[2], y = x[3], E = x[4], I = x[5], A = x[6], C = x[7], L = v.high, _ = v.low, R = S.high, T = S.low, B = b.high, $ = b.low, q = y.high, G = y.low, ae = E.high, Q = E.low, te = I.high, ee = I.low, P = A.high, N = A.low, F = C.high, M = C.low, J = L, j = _, ue = R, X = T, Ve = B, ze = $, Ye = q, Ze = G, Se = ae, Pe = Q, nt = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
|
|
3858
3858
|
var Ce, Qe, Ct = d[ke];
|
|
3859
3859
|
if (ke < 16)
|
|
3860
|
-
Qe = Ct.high =
|
|
3860
|
+
Qe = Ct.high = p[l + ke * 2] | 0, Ce = Ct.low = p[l + ke * 2 + 1] | 0;
|
|
3861
3861
|
else {
|
|
3862
3862
|
var lt = d[ke - 15], et = lt.high, ot = lt.low, Di = (et >>> 1 | ot << 31) ^ (et >>> 8 | ot << 24) ^ et >>> 7, oi = (ot >>> 1 | et << 31) ^ (ot >>> 8 | et << 24) ^ (ot >>> 7 | et << 25), ci = d[ke - 2], We = ci.high, ft = ci.low, ui = (We >>> 19 | ft << 13) ^ (We << 3 | ft >>> 29) ^ We >>> 6, Gt = (ft >>> 19 | We << 13) ^ (ft << 3 | We >>> 29) ^ (ft >>> 6 | We << 26), ss = d[ke - 7], In = ss.high, Rn = ss.low, as = d[ke - 16], wn = as.high, ns = as.low;
|
|
3863
3863
|
Ce = oi + Rn, Qe = Di + In + (Ce >>> 0 < oi >>> 0 ? 1 : 0), Ce = Ce + Gt, Qe = Qe + ui + (Ce >>> 0 < Gt >>> 0 ? 1 : 0), Ce = Ce + ns, Qe = Qe + wn + (Ce >>> 0 < ns >>> 0 ? 1 : 0), Ct.high = Qe, Ct.low = Ce;
|
|
3864
3864
|
}
|
|
3865
|
-
var Dn = Se & nt ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Ve ^ ue & Ve, Pn = j & X ^ j & ze ^ X & ze, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | Pe << 18) ^ (Se >>> 18 | Pe << 14) ^ (Se << 23 | Pe >>> 9), Mn = (Pe >>> 14 | Se << 18) ^ (Pe >>> 18 | Se << 14) ^ (Pe << 23 | Se >>> 9), us =
|
|
3865
|
+
var Dn = Se & nt ^ ~Se & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Ve ^ ue & Ve, Pn = j & X ^ j & ze ^ X & ze, kn = (J >>> 28 | j << 4) ^ (J << 30 | j >>> 2) ^ (J << 25 | j >>> 7), cs = (j >>> 28 | J << 4) ^ (j << 30 | J >>> 2) ^ (j << 25 | J >>> 7), Bn = (Se >>> 14 | Pe << 18) ^ (Se >>> 18 | Pe << 14) ^ (Se << 23 | Pe >>> 9), Mn = (Pe >>> 14 | Se << 18) ^ (Pe >>> 18 | Se << 14) ^ (Pe << 23 | Se >>> 9), us = g[ke], Ln = us.high, hs = us.low, $e = _t + Mn, pt = Jt + Bn + ($e >>> 0 < _t >>> 0 ? 1 : 0), $e = $e + os, pt = pt + Dn + ($e >>> 0 < os >>> 0 ? 1 : 0), $e = $e + hs, pt = pt + Ln + ($e >>> 0 < hs >>> 0 ? 1 : 0), $e = $e + Ce, pt = pt + Qe + ($e >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
|
|
3866
3866
|
Jt = Nt, _t = At, Nt = nt, At = Et, nt = Se, Et = Pe, Pe = Ze + $e | 0, Se = Ye + pt + (Pe >>> 0 < Ze >>> 0 ? 1 : 0) | 0, Ye = Ve, Ze = ze, Ve = ue, ze = X, ue = J, X = j, j = $e + ds | 0, J = pt + Nn + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
|
|
3867
3867
|
}
|
|
3868
|
-
_ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T =
|
|
3868
|
+
_ = v.low = _ + j, v.high = L + J + (_ >>> 0 < j >>> 0 ? 1 : 0), T = S.low = T + X, S.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Ve + ($ >>> 0 < ze >>> 0 ? 1 : 0), G = y.low = G + Ze, y.high = q + Ye + (G >>> 0 < Ze >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + Se + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + nt + (ee >>> 0 < Et >>> 0 ? 1 : 0), N = A.low = N + At, A.high = P + Nt + (N >>> 0 < At >>> 0 ? 1 : 0), M = C.low = M + _t, C.high = F + Jt + (M >>> 0 < _t >>> 0 ? 1 : 0);
|
|
3869
3869
|
},
|
|
3870
3870
|
_doFinalize: function() {
|
|
3871
|
-
var
|
|
3872
|
-
l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(
|
|
3873
|
-
var
|
|
3874
|
-
return
|
|
3871
|
+
var p = this._data, l = p.words, x = this._nDataBytes * 8, v = p.sigBytes * 8;
|
|
3872
|
+
l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(x / 4294967296), l[(v + 128 >>> 10 << 5) + 31] = x, p.sigBytes = l.length * 4, this._process();
|
|
3873
|
+
var S = this._hash.toX32();
|
|
3874
|
+
return S;
|
|
3875
3875
|
},
|
|
3876
3876
|
clone: function() {
|
|
3877
|
-
var
|
|
3878
|
-
return
|
|
3877
|
+
var p = s.clone.call(this);
|
|
3878
|
+
return p._hash = this._hash.clone(), p;
|
|
3879
3879
|
},
|
|
3880
3880
|
blockSize: 1024 / 32
|
|
3881
3881
|
});
|
|
@@ -3921,16 +3921,16 @@ function Mo() {
|
|
|
3921
3921
|
r.exports = t(ne(), Ei());
|
|
3922
3922
|
})(ie, function(e) {
|
|
3923
3923
|
return function(t) {
|
|
3924
|
-
var i = e, s = i.lib, a = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo,
|
|
3924
|
+
var i = e, s = i.lib, a = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, g = [], d = [], f = [];
|
|
3925
3925
|
(function() {
|
|
3926
|
-
for (var
|
|
3927
|
-
|
|
3928
|
-
var b = v % 5, y = (2 *
|
|
3929
|
-
|
|
3926
|
+
for (var x = 1, v = 0, S = 0; S < 24; S++) {
|
|
3927
|
+
g[x + 5 * v] = (S + 1) * (S + 2) / 2 % 64;
|
|
3928
|
+
var b = v % 5, y = (2 * x + 3 * v) % 5;
|
|
3929
|
+
x = b, v = y;
|
|
3930
3930
|
}
|
|
3931
|
-
for (var
|
|
3931
|
+
for (var x = 0; x < 5; x++)
|
|
3932
3932
|
for (var v = 0; v < 5; v++)
|
|
3933
|
-
d[
|
|
3933
|
+
d[x + 5 * v] = v + (2 * x + 3 * v) % 5 * 5;
|
|
3934
3934
|
for (var E = 1, I = 0; I < 24; I++) {
|
|
3935
3935
|
for (var A = 0, C = 0, L = 0; L < 7; L++) {
|
|
3936
3936
|
if (E & 1) {
|
|
@@ -3942,10 +3942,10 @@ function Mo() {
|
|
|
3942
3942
|
f[I] = u.create(A, C);
|
|
3943
3943
|
}
|
|
3944
3944
|
})();
|
|
3945
|
-
var
|
|
3945
|
+
var p = [];
|
|
3946
3946
|
(function() {
|
|
3947
|
-
for (var
|
|
3948
|
-
|
|
3947
|
+
for (var x = 0; x < 25; x++)
|
|
3948
|
+
p[x] = u.create();
|
|
3949
3949
|
})();
|
|
3950
3950
|
var l = h.SHA3 = c.extend({
|
|
3951
3951
|
/**
|
|
@@ -3960,53 +3960,53 @@ function Mo() {
|
|
|
3960
3960
|
outputLength: 512
|
|
3961
3961
|
}),
|
|
3962
3962
|
_doReset: function() {
|
|
3963
|
-
for (var
|
|
3964
|
-
|
|
3963
|
+
for (var x = this._state = [], v = 0; v < 25; v++)
|
|
3964
|
+
x[v] = new u.init();
|
|
3965
3965
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
3966
3966
|
},
|
|
3967
|
-
_doProcessBlock: function(
|
|
3968
|
-
for (var
|
|
3969
|
-
var E =
|
|
3967
|
+
_doProcessBlock: function(x, v) {
|
|
3968
|
+
for (var S = this._state, b = this.blockSize / 2, y = 0; y < b; y++) {
|
|
3969
|
+
var E = x[v + 2 * y], I = x[v + 2 * y + 1];
|
|
3970
3970
|
E = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
|
|
3971
|
-
var A =
|
|
3971
|
+
var A = S[y];
|
|
3972
3972
|
A.high ^= I, A.low ^= E;
|
|
3973
3973
|
}
|
|
3974
3974
|
for (var C = 0; C < 24; C++) {
|
|
3975
3975
|
for (var L = 0; L < 5; L++) {
|
|
3976
3976
|
for (var _ = 0, R = 0, T = 0; T < 5; T++) {
|
|
3977
|
-
var A =
|
|
3977
|
+
var A = S[L + 5 * T];
|
|
3978
3978
|
_ ^= A.high, R ^= A.low;
|
|
3979
3979
|
}
|
|
3980
|
-
var B =
|
|
3980
|
+
var B = p[L];
|
|
3981
3981
|
B.high = _, B.low = R;
|
|
3982
3982
|
}
|
|
3983
3983
|
for (var L = 0; L < 5; L++)
|
|
3984
|
-
for (var $ =
|
|
3985
|
-
var A =
|
|
3984
|
+
for (var $ = p[(L + 4) % 5], q = p[(L + 1) % 5], G = q.high, ae = q.low, _ = $.high ^ (G << 1 | ae >>> 31), R = $.low ^ (ae << 1 | G >>> 31), T = 0; T < 5; T++) {
|
|
3985
|
+
var A = S[L + 5 * T];
|
|
3986
3986
|
A.high ^= _, A.low ^= R;
|
|
3987
3987
|
}
|
|
3988
3988
|
for (var Q = 1; Q < 25; Q++) {
|
|
3989
|
-
var _, R, A =
|
|
3989
|
+
var _, R, A = S[Q], te = A.high, ee = A.low, P = g[Q];
|
|
3990
3990
|
P < 32 ? (_ = te << P | ee >>> 32 - P, R = ee << P | te >>> 32 - P) : (_ = ee << P - 32 | te >>> 64 - P, R = te << P - 32 | ee >>> 64 - P);
|
|
3991
|
-
var N =
|
|
3991
|
+
var N = p[d[Q]];
|
|
3992
3992
|
N.high = _, N.low = R;
|
|
3993
3993
|
}
|
|
3994
|
-
var F =
|
|
3994
|
+
var F = p[0], M = S[0];
|
|
3995
3995
|
F.high = M.high, F.low = M.low;
|
|
3996
3996
|
for (var L = 0; L < 5; L++)
|
|
3997
3997
|
for (var T = 0; T < 5; T++) {
|
|
3998
|
-
var Q = L + 5 * T, A =
|
|
3998
|
+
var Q = L + 5 * T, A = S[Q], J = p[Q], j = p[(L + 1) % 5 + 5 * T], ue = p[(L + 2) % 5 + 5 * T];
|
|
3999
3999
|
A.high = J.high ^ ~j.high & ue.high, A.low = J.low ^ ~j.low & ue.low;
|
|
4000
4000
|
}
|
|
4001
|
-
var A =
|
|
4001
|
+
var A = S[0], X = f[C];
|
|
4002
4002
|
A.high ^= X.high, A.low ^= X.low;
|
|
4003
4003
|
}
|
|
4004
4004
|
},
|
|
4005
4005
|
_doFinalize: function() {
|
|
4006
|
-
var
|
|
4006
|
+
var x = this._data, v = x.words;
|
|
4007
4007
|
this._nDataBytes * 8;
|
|
4008
|
-
var
|
|
4009
|
-
v[
|
|
4008
|
+
var S = x.sigBytes * 8, b = this.blockSize * 32;
|
|
4009
|
+
v[S >>> 5] |= 1 << 24 - S % 32, v[(t.ceil((S + 1) / b) * b >>> 5) - 1] |= 128, x.sigBytes = v.length * 4, this._process();
|
|
4010
4010
|
for (var y = this._state, E = this.cfg.outputLength / 8, I = E / 8, A = [], C = 0; C < I; C++) {
|
|
4011
4011
|
var L = y[C], _ = L.high, R = L.low;
|
|
4012
4012
|
_ = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, R = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, A.push(R), A.push(_);
|
|
@@ -4014,9 +4014,9 @@ function Mo() {
|
|
|
4014
4014
|
return new a.init(A, E);
|
|
4015
4015
|
},
|
|
4016
4016
|
clone: function() {
|
|
4017
|
-
for (var
|
|
4018
|
-
v[
|
|
4019
|
-
return
|
|
4017
|
+
for (var x = c.clone.call(this), v = x._state = this._state.slice(0), S = 0; S < 25; S++)
|
|
4018
|
+
v[S] = v[S].clone();
|
|
4019
|
+
return x;
|
|
4020
4020
|
}
|
|
4021
4021
|
});
|
|
4022
4022
|
i.SHA3 = c._createHelper(l), i.HmacSHA3 = c._createHmacHelper(l);
|
|
@@ -4203,7 +4203,7 @@ function Lo() {
|
|
|
4203
4203
|
3,
|
|
4204
4204
|
9,
|
|
4205
4205
|
11
|
|
4206
|
-
]),
|
|
4206
|
+
]), g = a.create([
|
|
4207
4207
|
11,
|
|
4208
4208
|
14,
|
|
4209
4209
|
15,
|
|
@@ -4365,7 +4365,7 @@ function Lo() {
|
|
|
4365
4365
|
13,
|
|
4366
4366
|
11,
|
|
4367
4367
|
11
|
|
4368
|
-
]), f = a.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
|
|
4368
|
+
]), f = a.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), p = a.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), l = o.RIPEMD160 = c.extend({
|
|
4369
4369
|
_doReset: function() {
|
|
4370
4370
|
this._hash = a.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
4371
4371
|
},
|
|
@@ -4374,10 +4374,10 @@ function Lo() {
|
|
|
4374
4374
|
var L = A + C, _ = I[L];
|
|
4375
4375
|
I[L] = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360;
|
|
4376
4376
|
}
|
|
4377
|
-
var R = this._hash.words, T = f.words, B =
|
|
4377
|
+
var R = this._hash.words, T = f.words, B = p.words, $ = u.words, q = h.words, G = g.words, ae = d.words, Q, te, ee, P, N, F, M, J, j, ue;
|
|
4378
4378
|
F = Q = R[0], M = te = R[1], J = ee = R[2], j = P = R[3], ue = N = R[4];
|
|
4379
4379
|
for (var X, C = 0; C < 80; C += 1)
|
|
4380
|
-
X = Q + I[A + $[C]] | 0, C < 16 ? X +=
|
|
4380
|
+
X = Q + I[A + $[C]] | 0, C < 16 ? X += x(te, ee, P) + T[0] : C < 32 ? X += v(te, ee, P) + T[1] : C < 48 ? X += S(te, ee, P) + T[2] : C < 64 ? X += b(te, ee, P) + T[3] : X += y(te, ee, P) + T[4], X = X | 0, X = E(X, G[C]), X = X + N | 0, Q = N, N = P, P = E(ee, 10), ee = te, te = X, X = F + I[A + q[C]] | 0, C < 16 ? X += y(M, J, j) + B[0] : C < 32 ? X += b(M, J, j) + B[1] : C < 48 ? X += S(M, J, j) + B[2] : C < 64 ? X += v(M, J, j) + B[3] : X += x(M, J, j) + B[4], X = X | 0, X = E(X, ae[C]), X = X + ue | 0, F = ue, ue = j, j = E(J, 10), J = M, M = X;
|
|
4381
4381
|
X = R[1] + ee + j | 0, R[1] = R[2] + P + ue | 0, R[2] = R[3] + N + F | 0, R[3] = R[4] + Q + M | 0, R[4] = R[0] + te + J | 0, R[0] = X;
|
|
4382
4382
|
},
|
|
4383
4383
|
_doFinalize: function() {
|
|
@@ -4394,13 +4394,13 @@ function Lo() {
|
|
|
4394
4394
|
return I._hash = this._hash.clone(), I;
|
|
4395
4395
|
}
|
|
4396
4396
|
});
|
|
4397
|
-
function
|
|
4397
|
+
function x(I, A, C) {
|
|
4398
4398
|
return I ^ A ^ C;
|
|
4399
4399
|
}
|
|
4400
4400
|
function v(I, A, C) {
|
|
4401
4401
|
return I & A | ~I & C;
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function S(I, A, C) {
|
|
4404
4404
|
return (I | ~A) ^ C;
|
|
4405
4405
|
}
|
|
4406
4406
|
function b(I, A, C) {
|
|
@@ -4438,11 +4438,11 @@ function Kr() {
|
|
|
4438
4438
|
*/
|
|
4439
4439
|
init: function(u, h) {
|
|
4440
4440
|
u = this._hasher = new u.init(), typeof h == "string" && (h = c.parse(h));
|
|
4441
|
-
var
|
|
4441
|
+
var g = u.blockSize, d = g * 4;
|
|
4442
4442
|
h.sigBytes > d && (h = u.finalize(h)), h.clamp();
|
|
4443
|
-
for (var f = this._oKey = h.clone(),
|
|
4444
|
-
l[v] ^= 1549556828,
|
|
4445
|
-
f.sigBytes =
|
|
4443
|
+
for (var f = this._oKey = h.clone(), p = this._iKey = h.clone(), l = f.words, x = p.words, v = 0; v < g; v++)
|
|
4444
|
+
l[v] ^= 1549556828, x[v] ^= 909522486;
|
|
4445
|
+
f.sigBytes = p.sigBytes = d, this.reset();
|
|
4446
4446
|
},
|
|
4447
4447
|
/**
|
|
4448
4448
|
* Resets this HMAC to its initial state.
|
|
@@ -4485,9 +4485,9 @@ function Kr() {
|
|
|
4485
4485
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
4486
4486
|
*/
|
|
4487
4487
|
finalize: function(u) {
|
|
4488
|
-
var h = this._hasher,
|
|
4488
|
+
var h = this._hasher, g = h.finalize(u);
|
|
4489
4489
|
h.reset();
|
|
4490
|
-
var d = h.finalize(this._oKey.clone().concat(
|
|
4490
|
+
var d = h.finalize(this._oKey.clone().concat(g));
|
|
4491
4491
|
return d;
|
|
4492
4492
|
}
|
|
4493
4493
|
});
|
|
@@ -4526,8 +4526,8 @@ function No() {
|
|
|
4526
4526
|
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
|
|
4527
4527
|
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
|
|
4528
4528
|
*/
|
|
4529
|
-
init: function(
|
|
4530
|
-
this.cfg = this.cfg.extend(
|
|
4529
|
+
init: function(g) {
|
|
4530
|
+
this.cfg = this.cfg.extend(g);
|
|
4531
4531
|
},
|
|
4532
4532
|
/**
|
|
4533
4533
|
* Computes the Password-Based Key Derivation Function 2.
|
|
@@ -4541,22 +4541,22 @@ function No() {
|
|
|
4541
4541
|
*
|
|
4542
4542
|
* var key = kdf.compute(password, salt);
|
|
4543
4543
|
*/
|
|
4544
|
-
compute: function(
|
|
4545
|
-
for (var f = this.cfg,
|
|
4546
|
-
var E =
|
|
4547
|
-
|
|
4544
|
+
compute: function(g, d) {
|
|
4545
|
+
for (var f = this.cfg, p = u.create(f.hasher, g), l = a.create(), x = a.create([1]), v = l.words, S = x.words, b = f.keySize, y = f.iterations; v.length < b; ) {
|
|
4546
|
+
var E = p.update(d).finalize(x);
|
|
4547
|
+
p.reset();
|
|
4548
4548
|
for (var I = E.words, A = I.length, C = E, L = 1; L < y; L++) {
|
|
4549
|
-
C =
|
|
4549
|
+
C = p.finalize(C), p.reset();
|
|
4550
4550
|
for (var _ = C.words, R = 0; R < A; R++)
|
|
4551
4551
|
I[R] ^= _[R];
|
|
4552
4552
|
}
|
|
4553
|
-
l.concat(E),
|
|
4553
|
+
l.concat(E), S[0]++;
|
|
4554
4554
|
}
|
|
4555
4555
|
return l.sigBytes = b * 4, l;
|
|
4556
4556
|
}
|
|
4557
4557
|
});
|
|
4558
|
-
t.PBKDF2 = function(
|
|
4559
|
-
return h.create(f).compute(
|
|
4558
|
+
t.PBKDF2 = function(g, d, f) {
|
|
4559
|
+
return h.create(f).compute(g, d);
|
|
4560
4560
|
};
|
|
4561
4561
|
}(), e.PBKDF2;
|
|
4562
4562
|
});
|
|
@@ -4608,18 +4608,18 @@ function yt() {
|
|
|
4608
4608
|
*
|
|
4609
4609
|
* var key = kdf.compute(password, salt);
|
|
4610
4610
|
*/
|
|
4611
|
-
compute: function(h,
|
|
4612
|
-
for (var d, f = this.cfg,
|
|
4613
|
-
d &&
|
|
4614
|
-
for (var b = 1; b <
|
|
4615
|
-
d =
|
|
4611
|
+
compute: function(h, g) {
|
|
4612
|
+
for (var d, f = this.cfg, p = f.hasher.create(), l = a.create(), x = l.words, v = f.keySize, S = f.iterations; x.length < v; ) {
|
|
4613
|
+
d && p.update(d), d = p.update(h).finalize(g), p.reset();
|
|
4614
|
+
for (var b = 1; b < S; b++)
|
|
4615
|
+
d = p.finalize(d), p.reset();
|
|
4616
4616
|
l.concat(d);
|
|
4617
4617
|
}
|
|
4618
4618
|
return l.sigBytes = v * 4, l;
|
|
4619
4619
|
}
|
|
4620
4620
|
});
|
|
4621
|
-
t.EvpKDF = function(h,
|
|
4622
|
-
return u.create(d).compute(h,
|
|
4621
|
+
t.EvpKDF = function(h, g, d) {
|
|
4622
|
+
return u.create(d).compute(h, g);
|
|
4623
4623
|
};
|
|
4624
4624
|
}(), e.EvpKDF;
|
|
4625
4625
|
});
|
|
@@ -4634,7 +4634,7 @@ function Ae() {
|
|
|
4634
4634
|
e.lib.Cipher || function(t) {
|
|
4635
4635
|
var i = e, s = i.lib, a = s.Base, c = s.WordArray, o = s.BufferedBlockAlgorithm, u = i.enc;
|
|
4636
4636
|
u.Utf8;
|
|
4637
|
-
var h = u.Base64,
|
|
4637
|
+
var h = u.Base64, g = i.algo, d = g.EvpKDF, f = s.Cipher = o.extend({
|
|
4638
4638
|
/**
|
|
4639
4639
|
* Configuration options.
|
|
4640
4640
|
*
|
|
@@ -4773,7 +4773,7 @@ function Ae() {
|
|
|
4773
4773
|
},
|
|
4774
4774
|
blockSize: 1
|
|
4775
4775
|
});
|
|
4776
|
-
var
|
|
4776
|
+
var p = i.mode = {}, l = s.BlockCipherMode = a.extend({
|
|
4777
4777
|
/**
|
|
4778
4778
|
* Creates this mode for encryption.
|
|
4779
4779
|
*
|
|
@@ -4817,7 +4817,7 @@ function Ae() {
|
|
|
4817
4817
|
init: function(_, R) {
|
|
4818
4818
|
this._cipher = _, this._iv = R;
|
|
4819
4819
|
}
|
|
4820
|
-
}),
|
|
4820
|
+
}), x = p.CBC = function() {
|
|
4821
4821
|
var _ = l.extend();
|
|
4822
4822
|
_.Encryptor = _.extend({
|
|
4823
4823
|
/**
|
|
@@ -4857,7 +4857,7 @@ function Ae() {
|
|
|
4857
4857
|
T[B + ae] ^= q[ae];
|
|
4858
4858
|
}
|
|
4859
4859
|
return _;
|
|
4860
|
-
}(), v = i.pad = {},
|
|
4860
|
+
}(), v = i.pad = {}, S = v.Pkcs7 = {
|
|
4861
4861
|
/**
|
|
4862
4862
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
4863
4863
|
*
|
|
@@ -4900,8 +4900,8 @@ function Ae() {
|
|
|
4900
4900
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
4901
4901
|
*/
|
|
4902
4902
|
cfg: f.cfg.extend({
|
|
4903
|
-
mode:
|
|
4904
|
-
padding:
|
|
4903
|
+
mode: x,
|
|
4904
|
+
padding: S
|
|
4905
4905
|
}),
|
|
4906
4906
|
reset: function() {
|
|
4907
4907
|
var _;
|
|
@@ -5185,8 +5185,8 @@ function Fo() {
|
|
|
5185
5185
|
function i(s, a, c, o) {
|
|
5186
5186
|
var u, h = this._iv;
|
|
5187
5187
|
h ? (u = h.slice(0), this._iv = void 0) : u = this._prevBlock, o.encryptBlock(u, 0);
|
|
5188
|
-
for (var
|
|
5189
|
-
s[a +
|
|
5188
|
+
for (var g = 0; g < c; g++)
|
|
5189
|
+
s[a + g] ^= u[g];
|
|
5190
5190
|
}
|
|
5191
5191
|
return t;
|
|
5192
5192
|
}(), e.mode.CFB;
|
|
@@ -5204,10 +5204,10 @@ function Vo() {
|
|
|
5204
5204
|
processBlock: function(s, a) {
|
|
5205
5205
|
var c = this._cipher, o = c.blockSize, u = this._iv, h = this._counter;
|
|
5206
5206
|
u && (h = this._counter = u.slice(0), this._iv = void 0);
|
|
5207
|
-
var
|
|
5208
|
-
c.encryptBlock(
|
|
5207
|
+
var g = h.slice(0);
|
|
5208
|
+
c.encryptBlock(g, 0), h[o - 1] = h[o - 1] + 1 | 0;
|
|
5209
5209
|
for (var d = 0; d < o; d++)
|
|
5210
|
-
s[a + d] ^=
|
|
5210
|
+
s[a + d] ^= g[d];
|
|
5211
5211
|
}
|
|
5212
5212
|
});
|
|
5213
5213
|
return t.Decryptor = i, t;
|
|
@@ -5241,12 +5241,12 @@ function Oo() {
|
|
|
5241
5241
|
}
|
|
5242
5242
|
var a = t.Encryptor = t.extend({
|
|
5243
5243
|
processBlock: function(c, o) {
|
|
5244
|
-
var u = this._cipher, h = u.blockSize,
|
|
5245
|
-
|
|
5244
|
+
var u = this._cipher, h = u.blockSize, g = this._iv, d = this._counter;
|
|
5245
|
+
g && (d = this._counter = g.slice(0), this._iv = void 0), s(d);
|
|
5246
5246
|
var f = d.slice(0);
|
|
5247
5247
|
u.encryptBlock(f, 0);
|
|
5248
|
-
for (var
|
|
5249
|
-
c[o +
|
|
5248
|
+
for (var p = 0; p < h; p++)
|
|
5249
|
+
c[o + p] ^= f[p];
|
|
5250
5250
|
}
|
|
5251
5251
|
});
|
|
5252
5252
|
return t.Decryptor = a, t;
|
|
@@ -5265,8 +5265,8 @@ function Uo() {
|
|
|
5265
5265
|
processBlock: function(s, a) {
|
|
5266
5266
|
var c = this._cipher, o = c.blockSize, u = this._iv, h = this._keystream;
|
|
5267
5267
|
u && (h = this._keystream = u.slice(0), this._iv = void 0), c.encryptBlock(h, 0);
|
|
5268
|
-
for (var
|
|
5269
|
-
s[a +
|
|
5268
|
+
for (var g = 0; g < o; g++)
|
|
5269
|
+
s[a + g] ^= h[g];
|
|
5270
5270
|
}
|
|
5271
5271
|
});
|
|
5272
5272
|
return t.Decryptor = i, t;
|
|
@@ -5426,8 +5426,8 @@ function qo() {
|
|
|
5426
5426
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
5427
5427
|
*/
|
|
5428
5428
|
parse: function(h) {
|
|
5429
|
-
var
|
|
5430
|
-
return a.create({ ciphertext:
|
|
5429
|
+
var g = o.parse(h);
|
|
5430
|
+
return a.create({ ciphertext: g });
|
|
5431
5431
|
}
|
|
5432
5432
|
};
|
|
5433
5433
|
}(), e.format.Hex;
|
|
@@ -5441,7 +5441,7 @@ function Jo() {
|
|
|
5441
5441
|
r.exports = t(ne(), Mt(), Lt(), yt(), Ae());
|
|
5442
5442
|
})(ie, function(e) {
|
|
5443
5443
|
return function() {
|
|
5444
|
-
var t = e, i = t.lib, s = i.BlockCipher, a = t.algo, c = [], o = [], u = [], h = [],
|
|
5444
|
+
var t = e, i = t.lib, s = i.BlockCipher, a = t.algo, c = [], o = [], u = [], h = [], g = [], d = [], f = [], p = [], l = [], x = [];
|
|
5445
5445
|
(function() {
|
|
5446
5446
|
for (var b = [], y = 0; y < 256; y++)
|
|
5447
5447
|
y < 128 ? b[y] = y << 1 : b[y] = y << 1 ^ 283;
|
|
@@ -5449,12 +5449,12 @@ function Jo() {
|
|
|
5449
5449
|
var A = I ^ I << 1 ^ I << 2 ^ I << 3 ^ I << 4;
|
|
5450
5450
|
A = A >>> 8 ^ A & 255 ^ 99, c[E] = A, o[A] = E;
|
|
5451
5451
|
var C = b[E], L = b[C], _ = b[L], R = b[A] * 257 ^ A * 16843008;
|
|
5452
|
-
u[E] = R << 24 | R >>> 8, h[E] = R << 16 | R >>> 16,
|
|
5452
|
+
u[E] = R << 24 | R >>> 8, h[E] = R << 16 | R >>> 16, g[E] = R << 8 | R >>> 24, d[E] = R;
|
|
5453
5453
|
var R = _ * 16843009 ^ L * 65537 ^ C * 257 ^ E * 16843008;
|
|
5454
|
-
f[A] = R << 24 | R >>> 8,
|
|
5454
|
+
f[A] = R << 24 | R >>> 8, p[A] = R << 16 | R >>> 16, l[A] = R << 8 | R >>> 24, x[A] = R, E ? (E = C ^ b[b[b[_ ^ C]]], I ^= b[b[I]]) : E = I = 1;
|
|
5455
5455
|
}
|
|
5456
5456
|
})();
|
|
5457
|
-
var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
5457
|
+
var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], S = a.AES = s.extend({
|
|
5458
5458
|
_doReset: function() {
|
|
5459
5459
|
var b;
|
|
5460
5460
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
@@ -5466,16 +5466,16 @@ function Jo() {
|
|
|
5466
5466
|
var b = L[_];
|
|
5467
5467
|
else
|
|
5468
5468
|
var b = L[_ - 4];
|
|
5469
|
-
T < 4 || _ <= 4 ? R[T] = b : R[T] = f[c[b >>> 24]] ^
|
|
5469
|
+
T < 4 || _ <= 4 ? R[T] = b : R[T] = f[c[b >>> 24]] ^ p[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ x[c[b & 255]];
|
|
5470
5470
|
}
|
|
5471
5471
|
}
|
|
5472
5472
|
},
|
|
5473
5473
|
encryptBlock: function(b, y) {
|
|
5474
|
-
this._doCryptBlock(b, y, this._keySchedule, u, h,
|
|
5474
|
+
this._doCryptBlock(b, y, this._keySchedule, u, h, g, d, c);
|
|
5475
5475
|
},
|
|
5476
5476
|
decryptBlock: function(b, y) {
|
|
5477
5477
|
var E = b[y + 1];
|
|
5478
|
-
b[y + 1] = b[y + 3], b[y + 3] = E, this._doCryptBlock(b, y, this._invKeySchedule, f,
|
|
5478
|
+
b[y + 1] = b[y + 3], b[y + 3] = E, this._doCryptBlock(b, y, this._invKeySchedule, f, p, l, x, o);
|
|
5479
5479
|
var E = b[y + 1];
|
|
5480
5480
|
b[y + 1] = b[y + 3], b[y + 3] = E;
|
|
5481
5481
|
},
|
|
@@ -5489,7 +5489,7 @@ function Jo() {
|
|
|
5489
5489
|
},
|
|
5490
5490
|
keySize: 256 / 32
|
|
5491
5491
|
});
|
|
5492
|
-
t.AES = s._createHelper(
|
|
5492
|
+
t.AES = s._createHelper(S);
|
|
5493
5493
|
}(), e.AES;
|
|
5494
5494
|
});
|
|
5495
5495
|
}(Er)), Er.exports;
|
|
@@ -5607,7 +5607,7 @@ function Go() {
|
|
|
5607
5607
|
36,
|
|
5608
5608
|
29,
|
|
5609
5609
|
32
|
|
5610
|
-
], h = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
|
|
5610
|
+
], h = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], g = [
|
|
5611
5611
|
{
|
|
5612
5612
|
0: 8421888,
|
|
5613
5613
|
268435456: 32768,
|
|
@@ -6147,9 +6147,9 @@ function Go() {
|
|
|
6147
6147
|
2147483679
|
|
6148
6148
|
], f = c.DES = a.extend({
|
|
6149
6149
|
_doReset: function() {
|
|
6150
|
-
for (var v = this._key,
|
|
6150
|
+
for (var v = this._key, S = v.words, b = [], y = 0; y < 56; y++) {
|
|
6151
6151
|
var E = o[y] - 1;
|
|
6152
|
-
b[y] =
|
|
6152
|
+
b[y] = S[E >>> 5] >>> 31 - E % 32 & 1;
|
|
6153
6153
|
}
|
|
6154
6154
|
for (var I = this._subKeys = [], A = 0; A < 16; A++) {
|
|
6155
6155
|
for (var C = I[A] = [], L = h[A], y = 0; y < 24; y++)
|
|
@@ -6162,54 +6162,54 @@ function Go() {
|
|
|
6162
6162
|
for (var _ = this._invSubKeys = [], y = 0; y < 16; y++)
|
|
6163
6163
|
_[y] = I[15 - y];
|
|
6164
6164
|
},
|
|
6165
|
-
encryptBlock: function(v,
|
|
6166
|
-
this._doCryptBlock(v,
|
|
6165
|
+
encryptBlock: function(v, S) {
|
|
6166
|
+
this._doCryptBlock(v, S, this._subKeys);
|
|
6167
6167
|
},
|
|
6168
|
-
decryptBlock: function(v,
|
|
6169
|
-
this._doCryptBlock(v,
|
|
6168
|
+
decryptBlock: function(v, S) {
|
|
6169
|
+
this._doCryptBlock(v, S, this._invSubKeys);
|
|
6170
6170
|
},
|
|
6171
|
-
_doCryptBlock: function(v,
|
|
6172
|
-
this._lBlock = v[
|
|
6171
|
+
_doCryptBlock: function(v, S, b) {
|
|
6172
|
+
this._lBlock = v[S], this._rBlock = v[S + 1], p.call(this, 4, 252645135), p.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), p.call(this, 1, 1431655765);
|
|
6173
6173
|
for (var y = 0; y < 16; y++) {
|
|
6174
6174
|
for (var E = b[y], I = this._lBlock, A = this._rBlock, C = 0, L = 0; L < 8; L++)
|
|
6175
|
-
C |=
|
|
6175
|
+
C |= g[L][((A ^ E[L]) & d[L]) >>> 0];
|
|
6176
6176
|
this._lBlock = A, this._rBlock = I ^ C;
|
|
6177
6177
|
}
|
|
6178
6178
|
var _ = this._lBlock;
|
|
6179
|
-
this._lBlock = this._rBlock, this._rBlock = _,
|
|
6179
|
+
this._lBlock = this._rBlock, this._rBlock = _, p.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), p.call(this, 16, 65535), p.call(this, 4, 252645135), v[S] = this._lBlock, v[S + 1] = this._rBlock;
|
|
6180
6180
|
},
|
|
6181
6181
|
keySize: 64 / 32,
|
|
6182
6182
|
ivSize: 64 / 32,
|
|
6183
6183
|
blockSize: 64 / 32
|
|
6184
6184
|
});
|
|
6185
|
-
function
|
|
6186
|
-
var b = (this._lBlock >>> v ^ this._rBlock) &
|
|
6185
|
+
function p(v, S) {
|
|
6186
|
+
var b = (this._lBlock >>> v ^ this._rBlock) & S;
|
|
6187
6187
|
this._rBlock ^= b, this._lBlock ^= b << v;
|
|
6188
6188
|
}
|
|
6189
|
-
function l(v,
|
|
6190
|
-
var b = (this._rBlock >>> v ^ this._lBlock) &
|
|
6189
|
+
function l(v, S) {
|
|
6190
|
+
var b = (this._rBlock >>> v ^ this._lBlock) & S;
|
|
6191
6191
|
this._lBlock ^= b, this._rBlock ^= b << v;
|
|
6192
6192
|
}
|
|
6193
6193
|
t.DES = a._createHelper(f);
|
|
6194
|
-
var
|
|
6194
|
+
var x = c.TripleDES = a.extend({
|
|
6195
6195
|
_doReset: function() {
|
|
6196
|
-
var v = this._key,
|
|
6197
|
-
if (
|
|
6196
|
+
var v = this._key, S = v.words;
|
|
6197
|
+
if (S.length !== 2 && S.length !== 4 && S.length < 6)
|
|
6198
6198
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
6199
|
-
var b =
|
|
6199
|
+
var b = S.slice(0, 2), y = S.length < 4 ? S.slice(0, 2) : S.slice(2, 4), E = S.length < 6 ? S.slice(0, 2) : S.slice(4, 6);
|
|
6200
6200
|
this._des1 = f.createEncryptor(s.create(b)), this._des2 = f.createEncryptor(s.create(y)), this._des3 = f.createEncryptor(s.create(E));
|
|
6201
6201
|
},
|
|
6202
|
-
encryptBlock: function(v,
|
|
6203
|
-
this._des1.encryptBlock(v,
|
|
6202
|
+
encryptBlock: function(v, S) {
|
|
6203
|
+
this._des1.encryptBlock(v, S), this._des2.decryptBlock(v, S), this._des3.encryptBlock(v, S);
|
|
6204
6204
|
},
|
|
6205
|
-
decryptBlock: function(v,
|
|
6206
|
-
this._des3.decryptBlock(v,
|
|
6205
|
+
decryptBlock: function(v, S) {
|
|
6206
|
+
this._des3.decryptBlock(v, S), this._des2.encryptBlock(v, S), this._des1.decryptBlock(v, S);
|
|
6207
6207
|
},
|
|
6208
6208
|
keySize: 192 / 32,
|
|
6209
6209
|
ivSize: 64 / 32,
|
|
6210
6210
|
blockSize: 64 / 32
|
|
6211
6211
|
});
|
|
6212
|
-
t.TripleDES = a._createHelper(
|
|
6212
|
+
t.TripleDES = a._createHelper(x);
|
|
6213
6213
|
}(), e.TripleDES;
|
|
6214
6214
|
});
|
|
6215
6215
|
}(Ar)), Ar.exports;
|
|
@@ -6223,29 +6223,29 @@ function Xo() {
|
|
|
6223
6223
|
return function() {
|
|
6224
6224
|
var t = e, i = t.lib, s = i.StreamCipher, a = t.algo, c = a.RC4 = s.extend({
|
|
6225
6225
|
_doReset: function() {
|
|
6226
|
-
for (var h = this._key,
|
|
6227
|
-
f[
|
|
6228
|
-
for (var
|
|
6229
|
-
var
|
|
6230
|
-
l = (l + f[
|
|
6231
|
-
var
|
|
6232
|
-
f[
|
|
6226
|
+
for (var h = this._key, g = h.words, d = h.sigBytes, f = this._S = [], p = 0; p < 256; p++)
|
|
6227
|
+
f[p] = p;
|
|
6228
|
+
for (var p = 0, l = 0; p < 256; p++) {
|
|
6229
|
+
var x = p % d, v = g[x >>> 2] >>> 24 - x % 4 * 8 & 255;
|
|
6230
|
+
l = (l + f[p] + v) % 256;
|
|
6231
|
+
var S = f[p];
|
|
6232
|
+
f[p] = f[l], f[l] = S;
|
|
6233
6233
|
}
|
|
6234
6234
|
this._i = this._j = 0;
|
|
6235
6235
|
},
|
|
6236
|
-
_doProcessBlock: function(h,
|
|
6237
|
-
h[
|
|
6236
|
+
_doProcessBlock: function(h, g) {
|
|
6237
|
+
h[g] ^= o.call(this);
|
|
6238
6238
|
},
|
|
6239
6239
|
keySize: 256 / 32,
|
|
6240
6240
|
ivSize: 0
|
|
6241
6241
|
});
|
|
6242
6242
|
function o() {
|
|
6243
|
-
for (var h = this._S,
|
|
6244
|
-
|
|
6245
|
-
var l = h[
|
|
6246
|
-
h[
|
|
6243
|
+
for (var h = this._S, g = this._i, d = this._j, f = 0, p = 0; p < 4; p++) {
|
|
6244
|
+
g = (g + 1) % 256, d = (d + h[g]) % 256;
|
|
6245
|
+
var l = h[g];
|
|
6246
|
+
h[g] = h[d], h[d] = l, f |= h[(h[g] + h[d]) % 256] << 24 - p * 8;
|
|
6247
6247
|
}
|
|
6248
|
-
return this._i =
|
|
6248
|
+
return this._i = g, this._j = d, f;
|
|
6249
6249
|
}
|
|
6250
6250
|
t.RC4 = s._createHelper(c);
|
|
6251
6251
|
var u = a.RC4Drop = c.extend({
|
|
@@ -6277,8 +6277,8 @@ function Yo() {
|
|
|
6277
6277
|
return function() {
|
|
6278
6278
|
var t = e, i = t.lib, s = i.StreamCipher, a = t.algo, c = [], o = [], u = [], h = a.Rabbit = s.extend({
|
|
6279
6279
|
_doReset: function() {
|
|
6280
|
-
for (var d = this._key.words, f = this.cfg.iv,
|
|
6281
|
-
d[
|
|
6280
|
+
for (var d = this._key.words, f = this.cfg.iv, p = 0; p < 4; p++)
|
|
6281
|
+
d[p] = (d[p] << 8 | d[p] >>> 24) & 16711935 | (d[p] << 24 | d[p] >>> 8) & 4278255360;
|
|
6282
6282
|
var l = this._X = [
|
|
6283
6283
|
d[0],
|
|
6284
6284
|
d[3] << 16 | d[2] >>> 16,
|
|
@@ -6288,7 +6288,7 @@ function Yo() {
|
|
|
6288
6288
|
d[1] << 16 | d[0] >>> 16,
|
|
6289
6289
|
d[3],
|
|
6290
6290
|
d[2] << 16 | d[1] >>> 16
|
|
6291
|
-
],
|
|
6291
|
+
], x = this._C = [
|
|
6292
6292
|
d[2] << 16 | d[2] >>> 16,
|
|
6293
6293
|
d[0] & 4294901760 | d[1] & 65535,
|
|
6294
6294
|
d[3] << 16 | d[3] >>> 16,
|
|
@@ -6299,33 +6299,33 @@ function Yo() {
|
|
|
6299
6299
|
d[3] & 4294901760 | d[0] & 65535
|
|
6300
6300
|
];
|
|
6301
6301
|
this._b = 0;
|
|
6302
|
-
for (var
|
|
6303
|
-
|
|
6304
|
-
for (var
|
|
6305
|
-
|
|
6302
|
+
for (var p = 0; p < 4; p++)
|
|
6303
|
+
g.call(this);
|
|
6304
|
+
for (var p = 0; p < 8; p++)
|
|
6305
|
+
x[p] ^= l[p + 4 & 7];
|
|
6306
6306
|
if (f) {
|
|
6307
|
-
var v = f.words,
|
|
6308
|
-
|
|
6309
|
-
for (var
|
|
6310
|
-
|
|
6307
|
+
var v = f.words, S = v[0], b = v[1], y = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, I = y >>> 16 | E & 4294901760, A = E << 16 | y & 65535;
|
|
6308
|
+
x[0] ^= y, x[1] ^= I, x[2] ^= E, x[3] ^= A, x[4] ^= y, x[5] ^= I, x[6] ^= E, x[7] ^= A;
|
|
6309
|
+
for (var p = 0; p < 4; p++)
|
|
6310
|
+
g.call(this);
|
|
6311
6311
|
}
|
|
6312
6312
|
},
|
|
6313
6313
|
_doProcessBlock: function(d, f) {
|
|
6314
|
-
var
|
|
6315
|
-
|
|
6314
|
+
var p = this._X;
|
|
6315
|
+
g.call(this), c[0] = p[0] ^ p[5] >>> 16 ^ p[3] << 16, c[1] = p[2] ^ p[7] >>> 16 ^ p[5] << 16, c[2] = p[4] ^ p[1] >>> 16 ^ p[7] << 16, c[3] = p[6] ^ p[3] >>> 16 ^ p[1] << 16;
|
|
6316
6316
|
for (var l = 0; l < 4; l++)
|
|
6317
6317
|
c[l] = (c[l] << 8 | c[l] >>> 24) & 16711935 | (c[l] << 24 | c[l] >>> 8) & 4278255360, d[f + l] ^= c[l];
|
|
6318
6318
|
},
|
|
6319
6319
|
blockSize: 128 / 32,
|
|
6320
6320
|
ivSize: 64 / 32
|
|
6321
6321
|
});
|
|
6322
|
-
function
|
|
6323
|
-
for (var d = this._X, f = this._C,
|
|
6324
|
-
o[
|
|
6322
|
+
function g() {
|
|
6323
|
+
for (var d = this._X, f = this._C, p = 0; p < 8; p++)
|
|
6324
|
+
o[p] = f[p];
|
|
6325
6325
|
f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < o[7] >>> 0 ? 1 : 0;
|
|
6326
|
-
for (var
|
|
6327
|
-
var l = d[
|
|
6328
|
-
u[
|
|
6326
|
+
for (var p = 0; p < 8; p++) {
|
|
6327
|
+
var l = d[p] + f[p], x = l & 65535, v = l >>> 16, S = ((x * x >>> 17) + x * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
|
|
6328
|
+
u[p] = S ^ b;
|
|
6329
6329
|
}
|
|
6330
6330
|
d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0, d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0, d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0, d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0, d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0, d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0, d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0, d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0;
|
|
6331
6331
|
}
|
|
@@ -6343,7 +6343,7 @@ function Zo() {
|
|
|
6343
6343
|
return function() {
|
|
6344
6344
|
var t = e, i = t.lib, s = i.StreamCipher, a = t.algo, c = [], o = [], u = [], h = a.RabbitLegacy = s.extend({
|
|
6345
6345
|
_doReset: function() {
|
|
6346
|
-
var d = this._key.words, f = this.cfg.iv,
|
|
6346
|
+
var d = this._key.words, f = this.cfg.iv, p = this._X = [
|
|
6347
6347
|
d[0],
|
|
6348
6348
|
d[3] << 16 | d[2] >>> 16,
|
|
6349
6349
|
d[1],
|
|
@@ -6363,33 +6363,33 @@ function Zo() {
|
|
|
6363
6363
|
d[3] & 4294901760 | d[0] & 65535
|
|
6364
6364
|
];
|
|
6365
6365
|
this._b = 0;
|
|
6366
|
-
for (var
|
|
6367
|
-
|
|
6368
|
-
for (var
|
|
6369
|
-
l[
|
|
6366
|
+
for (var x = 0; x < 4; x++)
|
|
6367
|
+
g.call(this);
|
|
6368
|
+
for (var x = 0; x < 8; x++)
|
|
6369
|
+
l[x] ^= p[x + 4 & 7];
|
|
6370
6370
|
if (f) {
|
|
6371
|
-
var v = f.words,
|
|
6371
|
+
var v = f.words, S = v[0], b = v[1], y = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, I = y >>> 16 | E & 4294901760, A = E << 16 | y & 65535;
|
|
6372
6372
|
l[0] ^= y, l[1] ^= I, l[2] ^= E, l[3] ^= A, l[4] ^= y, l[5] ^= I, l[6] ^= E, l[7] ^= A;
|
|
6373
|
-
for (var
|
|
6374
|
-
|
|
6373
|
+
for (var x = 0; x < 4; x++)
|
|
6374
|
+
g.call(this);
|
|
6375
6375
|
}
|
|
6376
6376
|
},
|
|
6377
6377
|
_doProcessBlock: function(d, f) {
|
|
6378
|
-
var
|
|
6379
|
-
|
|
6378
|
+
var p = this._X;
|
|
6379
|
+
g.call(this), c[0] = p[0] ^ p[5] >>> 16 ^ p[3] << 16, c[1] = p[2] ^ p[7] >>> 16 ^ p[5] << 16, c[2] = p[4] ^ p[1] >>> 16 ^ p[7] << 16, c[3] = p[6] ^ p[3] >>> 16 ^ p[1] << 16;
|
|
6380
6380
|
for (var l = 0; l < 4; l++)
|
|
6381
6381
|
c[l] = (c[l] << 8 | c[l] >>> 24) & 16711935 | (c[l] << 24 | c[l] >>> 8) & 4278255360, d[f + l] ^= c[l];
|
|
6382
6382
|
},
|
|
6383
6383
|
blockSize: 128 / 32,
|
|
6384
6384
|
ivSize: 64 / 32
|
|
6385
6385
|
});
|
|
6386
|
-
function
|
|
6387
|
-
for (var d = this._X, f = this._C,
|
|
6388
|
-
o[
|
|
6386
|
+
function g() {
|
|
6387
|
+
for (var d = this._X, f = this._C, p = 0; p < 8; p++)
|
|
6388
|
+
o[p] = f[p];
|
|
6389
6389
|
f[0] = f[0] + 1295307597 + this._b | 0, f[1] = f[1] + 3545052371 + (f[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, f[2] = f[2] + 886263092 + (f[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, f[3] = f[3] + 1295307597 + (f[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, f[4] = f[4] + 3545052371 + (f[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, f[5] = f[5] + 886263092 + (f[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, f[6] = f[6] + 1295307597 + (f[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, f[7] = f[7] + 3545052371 + (f[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = f[7] >>> 0 < o[7] >>> 0 ? 1 : 0;
|
|
6390
|
-
for (var
|
|
6391
|
-
var l = d[
|
|
6392
|
-
u[
|
|
6390
|
+
for (var p = 0; p < 8; p++) {
|
|
6391
|
+
var l = d[p] + f[p], x = l & 65535, v = l >>> 16, S = ((x * x >>> 17) + x * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
|
|
6392
|
+
u[p] = S ^ b;
|
|
6393
6393
|
}
|
|
6394
6394
|
d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0, d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0, d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0, d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0, d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0, d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0, d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0, d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0;
|
|
6395
6395
|
}
|
|
@@ -7463,53 +7463,53 @@ function Qo() {
|
|
|
7463
7463
|
pbox: [],
|
|
7464
7464
|
sbox: []
|
|
7465
7465
|
};
|
|
7466
|
-
function
|
|
7467
|
-
let
|
|
7468
|
-
return I = I ^
|
|
7466
|
+
function g(x, v) {
|
|
7467
|
+
let S = v >> 24 & 255, b = v >> 16 & 255, y = v >> 8 & 255, E = v & 255, I = x.sbox[0][S] + x.sbox[1][b];
|
|
7468
|
+
return I = I ^ x.sbox[2][y], I = I + x.sbox[3][E], I;
|
|
7469
7469
|
}
|
|
7470
|
-
function d(
|
|
7471
|
-
let b = v, y =
|
|
7470
|
+
function d(x, v, S) {
|
|
7471
|
+
let b = v, y = S, E;
|
|
7472
7472
|
for (let I = 0; I < c; ++I)
|
|
7473
|
-
b = b ^
|
|
7474
|
-
return E = b, b = y, y = E, y = y ^
|
|
7473
|
+
b = b ^ x.pbox[I], y = g(x, b) ^ y, E = b, b = y, y = E;
|
|
7474
|
+
return E = b, b = y, y = E, y = y ^ x.pbox[c], b = b ^ x.pbox[c + 1], { left: b, right: y };
|
|
7475
7475
|
}
|
|
7476
|
-
function f(
|
|
7477
|
-
let b = v, y =
|
|
7476
|
+
function f(x, v, S) {
|
|
7477
|
+
let b = v, y = S, E;
|
|
7478
7478
|
for (let I = c + 1; I > 1; --I)
|
|
7479
|
-
b = b ^
|
|
7480
|
-
return E = b, b = y, y = E, y = y ^
|
|
7479
|
+
b = b ^ x.pbox[I], y = g(x, b) ^ y, E = b, b = y, y = E;
|
|
7480
|
+
return E = b, b = y, y = E, y = y ^ x.pbox[1], b = b ^ x.pbox[0], { left: b, right: y };
|
|
7481
7481
|
}
|
|
7482
|
-
function
|
|
7482
|
+
function p(x, v, S) {
|
|
7483
7483
|
for (let A = 0; A < 4; A++) {
|
|
7484
|
-
|
|
7484
|
+
x.sbox[A] = [];
|
|
7485
7485
|
for (let C = 0; C < 256; C++)
|
|
7486
|
-
|
|
7486
|
+
x.sbox[A][C] = u[A][C];
|
|
7487
7487
|
}
|
|
7488
7488
|
let b = 0;
|
|
7489
7489
|
for (let A = 0; A < c + 2; A++)
|
|
7490
|
-
|
|
7490
|
+
x.pbox[A] = o[A] ^ v[b], b++, b >= S && (b = 0);
|
|
7491
7491
|
let y = 0, E = 0, I = 0;
|
|
7492
7492
|
for (let A = 0; A < c + 2; A += 2)
|
|
7493
|
-
I = d(
|
|
7493
|
+
I = d(x, y, E), y = I.left, E = I.right, x.pbox[A] = y, x.pbox[A + 1] = E;
|
|
7494
7494
|
for (let A = 0; A < 4; A++)
|
|
7495
7495
|
for (let C = 0; C < 256; C += 2)
|
|
7496
|
-
I = d(
|
|
7496
|
+
I = d(x, y, E), y = I.left, E = I.right, x.sbox[A][C] = y, x.sbox[A][C + 1] = E;
|
|
7497
7497
|
return !0;
|
|
7498
7498
|
}
|
|
7499
7499
|
var l = a.Blowfish = s.extend({
|
|
7500
7500
|
_doReset: function() {
|
|
7501
7501
|
if (this._keyPriorReset !== this._key) {
|
|
7502
|
-
var
|
|
7503
|
-
|
|
7502
|
+
var x = this._keyPriorReset = this._key, v = x.words, S = x.sigBytes / 4;
|
|
7503
|
+
p(h, v, S);
|
|
7504
7504
|
}
|
|
7505
7505
|
},
|
|
7506
|
-
encryptBlock: function(
|
|
7507
|
-
var
|
|
7508
|
-
|
|
7506
|
+
encryptBlock: function(x, v) {
|
|
7507
|
+
var S = d(h, x[v], x[v + 1]);
|
|
7508
|
+
x[v] = S.left, x[v + 1] = S.right;
|
|
7509
7509
|
},
|
|
7510
|
-
decryptBlock: function(
|
|
7511
|
-
var
|
|
7512
|
-
|
|
7510
|
+
decryptBlock: function(x, v) {
|
|
7511
|
+
var S = f(h, x[v], x[v + 1]);
|
|
7512
|
+
x[v] = S.left, x[v + 1] = S.right;
|
|
7513
7513
|
},
|
|
7514
7514
|
blockSize: 64 / 32,
|
|
7515
7515
|
keySize: 128 / 32,
|
|
@@ -7540,17 +7540,17 @@ function i0(r, n, e, t, i, s, a, c) {
|
|
|
7540
7540
|
` + ((o = s.get("Content-Type")) != null ? o : "") + `
|
|
7541
7541
|
` + c + `
|
|
7542
7542
|
`;
|
|
7543
|
-
const h = (
|
|
7543
|
+
const h = (p, l) => p[0].localeCompare(l[0]), g = (p) => p[0].startsWith("x-log-") || p[0].startsWith("x-acs-");
|
|
7544
7544
|
try {
|
|
7545
|
-
const
|
|
7545
|
+
const p = [...s.entries()].filter(g).sort(h).map((l) => l[0] + ":" + l[1] + `
|
|
7546
7546
|
`).join("");
|
|
7547
|
-
u +=
|
|
7548
|
-
} catch (
|
|
7547
|
+
u += p;
|
|
7548
|
+
} catch (p) {
|
|
7549
7549
|
}
|
|
7550
7550
|
u += n, i.size > 0 && (u += "?");
|
|
7551
7551
|
try {
|
|
7552
|
-
u += [...i.entries()].sort(h).map((
|
|
7553
|
-
} catch (
|
|
7552
|
+
u += [...i.entries()].sort(h).map((p) => p[0] + "=" + p[1]).join("&");
|
|
7553
|
+
} catch (p) {
|
|
7554
7554
|
}
|
|
7555
7555
|
const d = ri.HmacSHA1(u, t).toString(ri.enc.Base64), f = "LOG " + e + ":" + d;
|
|
7556
7556
|
return s.set("Authorization", f), s.set("x-log-date", c), f;
|
|
@@ -7653,17 +7653,17 @@ function Jr(r, n, e, t) {
|
|
|
7653
7653
|
return r[s() + "FullYear"]();
|
|
7654
7654
|
}, h = function() {
|
|
7655
7655
|
return r[s() + "Hours"]();
|
|
7656
|
-
},
|
|
7656
|
+
}, g = function() {
|
|
7657
7657
|
return r[s() + "Minutes"]();
|
|
7658
7658
|
}, d = function() {
|
|
7659
7659
|
return r[s() + "Seconds"]();
|
|
7660
7660
|
}, f = function() {
|
|
7661
7661
|
return r[s() + "Milliseconds"]();
|
|
7662
|
-
},
|
|
7662
|
+
}, p = function() {
|
|
7663
7663
|
return e ? 0 : r.getTimezoneOffset();
|
|
7664
7664
|
}, l = function() {
|
|
7665
7665
|
return u0(r);
|
|
7666
|
-
},
|
|
7666
|
+
}, x = function() {
|
|
7667
7667
|
return h0(r);
|
|
7668
7668
|
}, v = { d: function() {
|
|
7669
7669
|
return a();
|
|
@@ -7698,9 +7698,9 @@ function Jr(r, n, e, t) {
|
|
|
7698
7698
|
}, HH: function() {
|
|
7699
7699
|
return Ke(h());
|
|
7700
7700
|
}, M: function() {
|
|
7701
|
-
return
|
|
7701
|
+
return g();
|
|
7702
7702
|
}, MM: function() {
|
|
7703
|
-
return Ke(
|
|
7703
|
+
return Ke(g());
|
|
7704
7704
|
}, s: function() {
|
|
7705
7705
|
return d();
|
|
7706
7706
|
}, ss: function() {
|
|
@@ -7720,9 +7720,9 @@ function Jr(r, n, e, t) {
|
|
|
7720
7720
|
}, Z: function() {
|
|
7721
7721
|
return t ? "GMT" : e ? "UTC" : d0(r);
|
|
7722
7722
|
}, o: function() {
|
|
7723
|
-
return (
|
|
7723
|
+
return (p() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(p()) / 60) * 100 + Math.abs(p()) % 60, 4);
|
|
7724
7724
|
}, p: function() {
|
|
7725
|
-
return (
|
|
7725
|
+
return (p() > 0 ? "-" : "+") + Ke(Math.floor(Math.abs(p()) / 60), 2) + ":" + Ke(Math.floor(Math.abs(p()) % 60), 2);
|
|
7726
7726
|
}, S: function() {
|
|
7727
7727
|
return ["th", "st", "nd", "rd"][a() % 10 > 3 ? 0 : (a() % 100 - a() % 10 != 10) * a() % 10];
|
|
7728
7728
|
}, W: function() {
|
|
@@ -7730,10 +7730,10 @@ function Jr(r, n, e, t) {
|
|
|
7730
7730
|
}, WW: function() {
|
|
7731
7731
|
return Ke(l());
|
|
7732
7732
|
}, N: function() {
|
|
7733
|
-
return
|
|
7733
|
+
return x();
|
|
7734
7734
|
} };
|
|
7735
|
-
return n.replace(n0, function(
|
|
7736
|
-
return
|
|
7735
|
+
return n.replace(n0, function(S) {
|
|
7736
|
+
return S in v ? v[S]() : S.slice(1, S.length - 1);
|
|
7737
7737
|
});
|
|
7738
7738
|
}
|
|
7739
7739
|
var Ta = { 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(n) {
|
|
@@ -7742,28 +7742,28 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7742
7742
|
}, Pa = function(n) {
|
|
7743
7743
|
var e = n.y, t = n.m, i = n.d, s = n._, a = n.dayName, c = n.short, o = c === void 0 ? !1 : c, u = /* @__PURE__ */ new Date(), h = /* @__PURE__ */ new Date();
|
|
7744
7744
|
h.setDate(h[s + "Date"]() - 1);
|
|
7745
|
-
var
|
|
7746
|
-
|
|
7745
|
+
var g = /* @__PURE__ */ new Date();
|
|
7746
|
+
g.setDate(g[s + "Date"]() + 1);
|
|
7747
7747
|
var d = function() {
|
|
7748
7748
|
return u[s + "Date"]();
|
|
7749
7749
|
}, f = function() {
|
|
7750
7750
|
return u[s + "Month"]();
|
|
7751
|
-
},
|
|
7751
|
+
}, p = function() {
|
|
7752
7752
|
return u[s + "FullYear"]();
|
|
7753
7753
|
}, l = function() {
|
|
7754
7754
|
return h[s + "Date"]();
|
|
7755
|
-
},
|
|
7755
|
+
}, x = function() {
|
|
7756
7756
|
return h[s + "Month"]();
|
|
7757
7757
|
}, v = function() {
|
|
7758
7758
|
return h[s + "FullYear"]();
|
|
7759
|
-
},
|
|
7760
|
-
return
|
|
7759
|
+
}, S = function() {
|
|
7760
|
+
return g[s + "Date"]();
|
|
7761
7761
|
}, b = function() {
|
|
7762
|
-
return
|
|
7762
|
+
return g[s + "Month"]();
|
|
7763
7763
|
}, y = function() {
|
|
7764
|
-
return
|
|
7764
|
+
return g[s + "FullYear"]();
|
|
7765
7765
|
};
|
|
7766
|
-
return
|
|
7766
|
+
return p() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && x() === t && l() === i ? o ? "Ysd" : "Yesterday" : y() === e && b() === t && S() === i ? o ? "Tmw" : "Tomorrow" : a;
|
|
7767
7767
|
}, u0 = function(n) {
|
|
7768
7768
|
var e = new Date(n.getFullYear(), n.getMonth(), n.getDate());
|
|
7769
7769
|
e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
|
|
@@ -7779,7 +7779,7 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7779
7779
|
}, d0 = function(n) {
|
|
7780
7780
|
return (String(n).match(o0) || [""]).pop().replace(c0, "").replace(/GMT\+0000/g, "UTC");
|
|
7781
7781
|
};
|
|
7782
|
-
const { BrowserUtil: l0 } =
|
|
7782
|
+
const { BrowserUtil: l0 } = ce, Ot = {
|
|
7783
7783
|
EdgeHTML: "EdgeHTML",
|
|
7784
7784
|
Blink: "Blink",
|
|
7785
7785
|
Trident: "Trident",
|
|
@@ -7995,7 +7995,7 @@ const { BrowserUtil: l0 } = oe, Ot = {
|
|
|
7995
7995
|
} catch (n) {
|
|
7996
7996
|
}
|
|
7997
7997
|
return r;
|
|
7998
|
-
}, { BrowserUtil: ka, SystenUtil: Ba } =
|
|
7998
|
+
}, { BrowserUtil: ka, SystenUtil: Ba } = ce, S0 = nn(), v0 = "woMMssV6jmyol9fr", b0 = 200, fi = 10 * 60 * 1e3, pi = {
|
|
7999
7999
|
host: "cn-hangzhou.log.aliyuncs.com",
|
|
8000
8000
|
// 所在地域的服务入口。例如cn-hangzhou.log.aliyuncs.com
|
|
8001
8001
|
project: "alivc-aio",
|
|
@@ -8288,7 +8288,7 @@ class O {
|
|
|
8288
8288
|
}
|
|
8289
8289
|
m(O, "logger");
|
|
8290
8290
|
const E0 = (r) => w(void 0, null, function* () {
|
|
8291
|
-
const n = new
|
|
8291
|
+
const n = new ce.SupportUtil();
|
|
8292
8292
|
let e = {
|
|
8293
8293
|
support: !1,
|
|
8294
8294
|
detail: {
|
|
@@ -8308,8 +8308,8 @@ const E0 = (r) => w(void 0, null, function* () {
|
|
|
8308
8308
|
const t = yield n.checkH264Encode();
|
|
8309
8309
|
e.detail.isH264EncodeSupported = t, e.support = e.support && t;
|
|
8310
8310
|
}
|
|
8311
|
-
return e.detail.isScreenShareSupported = n.checkWebRtcSupport() && n.checkScreenCapture() && !
|
|
8312
|
-
}), A0 = () => new
|
|
8311
|
+
return e.detail.isScreenShareSupported = n.checkWebRtcSupport() && n.checkScreenCapture() && !ce.SystenUtil.isAndroid && !ce.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = n.checkWebRtcSupport() && n.checkEncodedTransformSupport(), e;
|
|
8312
|
+
}), A0 = () => new ce.SupportUtil().checkScreenCapture();
|
|
8313
8313
|
var Ee = /* @__PURE__ */ ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(Ee || {}), _0 = /* @__PURE__ */ ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))(_0 || {}), Ai = /* @__PURE__ */ ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(Ai || {});
|
|
8314
8314
|
class Kt extends we {
|
|
8315
8315
|
constructor(e, t = Ee.AliRtcSdkStreamTypeCapture, i = 1) {
|
|
@@ -8468,17 +8468,17 @@ class Br {
|
|
|
8468
8468
|
c.taskProfile && (a.taskprofile = C0[c.taskProfile]);
|
|
8469
8469
|
const o = c.encodeParam || new fn(1280, 720);
|
|
8470
8470
|
let u = o.videoWidth, h = o.videoHeight;
|
|
8471
|
-
const
|
|
8471
|
+
const g = {};
|
|
8472
8472
|
Object.keys(o).forEach((f) => {
|
|
8473
|
-
const
|
|
8474
|
-
|
|
8475
|
-
}),
|
|
8473
|
+
const p = o[f];
|
|
8474
|
+
p > 0 && (g[f.toLowerCase()] = p);
|
|
8475
|
+
}), g.lowbitratehighquality = 0, a.encodeparam = g, a.backgrounds = c.backgrounds.map((f) => f.toJson(u, h)), a.watermarks = c.watermarks.map((f) => f.toJson(u, h)), a.clockwidgets = c.clockWidgets.map((f) => f.toJson(u, h));
|
|
8476
8476
|
const d = c.users.map((f) => f.userId);
|
|
8477
8477
|
a.subspecusers = [...new Set(d)], a.layouts = [
|
|
8478
8478
|
{
|
|
8479
8479
|
audiomixcount: c.users.length,
|
|
8480
8480
|
panes: c.users.map(
|
|
8481
|
-
(f,
|
|
8481
|
+
(f, p) => f.toJson(p, u, h, c.mediaProcessMode)
|
|
8482
8482
|
)
|
|
8483
8483
|
}
|
|
8484
8484
|
], a.layoutids = ["0"], a.cropmode = c.cropMode, a.backgroundcolor = Zr(c.backgroundColor), a.taskmode = c.mediaProcessMode;
|
|
@@ -8843,10 +8843,10 @@ const w0 = 3e4, qe = class qe extends we {
|
|
|
8843
8843
|
s.data.users = [], s.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
|
|
8844
8844
|
const { tracks: a, resume: c } = i;
|
|
8845
8845
|
a.forEach((u) => {
|
|
8846
|
-
const { codec: h, ssrc:
|
|
8846
|
+
const { codec: h, ssrc: g } = u;
|
|
8847
8847
|
u.userdata = JSON.stringify({
|
|
8848
8848
|
codec: h
|
|
8849
|
-
}), u.ssrc = `${
|
|
8849
|
+
}), u.ssrc = `${g}`, c && (u.attr = {
|
|
8850
8850
|
reason: "reconnect"
|
|
8851
8851
|
});
|
|
8852
8852
|
}), s.data.users.push(i), this.sendPackage(s);
|
|
@@ -9123,8 +9123,8 @@ let Lr = qe;
|
|
|
9123
9123
|
const D = (r, n) => (e, t, i) => {
|
|
9124
9124
|
const s = i.value;
|
|
9125
9125
|
return i.value = function(...a) {
|
|
9126
|
-
var
|
|
9127
|
-
const c = `[${((
|
|
9126
|
+
var g;
|
|
9127
|
+
const c = `[${((g = e.constructor) == null ? void 0 : g.logName) || ""}]`, o = Date.now();
|
|
9128
9128
|
let u = [];
|
|
9129
9129
|
if (r)
|
|
9130
9130
|
try {
|
|
@@ -9134,13 +9134,13 @@ const D = (r, n) => (e, t, i) => {
|
|
|
9134
9134
|
O.interface(c, t, ...u);
|
|
9135
9135
|
const h = s.apply(this, a);
|
|
9136
9136
|
return Promise.resolve(h).then((d) => d).catch((d) => d).then((d) => {
|
|
9137
|
-
var
|
|
9137
|
+
var x;
|
|
9138
9138
|
let f = "";
|
|
9139
|
-
const
|
|
9140
|
-
if (!(!n && !
|
|
9139
|
+
const p = d instanceof Error, l = p && ((x = e.constructor) == null ? void 0 : x.logError);
|
|
9140
|
+
if (!(!n && !p)) {
|
|
9141
9141
|
if (l)
|
|
9142
9142
|
f = d;
|
|
9143
|
-
else if (
|
|
9143
|
+
else if (p)
|
|
9144
9144
|
f = d.message || "";
|
|
9145
9145
|
else if (n)
|
|
9146
9146
|
if (d === void 0)
|
|
@@ -9155,7 +9155,7 @@ const D = (r, n) => (e, t, i) => {
|
|
|
9155
9155
|
O.interfaceResult(
|
|
9156
9156
|
c,
|
|
9157
9157
|
t,
|
|
9158
|
-
!(
|
|
9158
|
+
!(p && l),
|
|
9159
9159
|
`${Date.now() - o}ms`,
|
|
9160
9160
|
f
|
|
9161
9161
|
);
|
|
@@ -9215,9 +9215,9 @@ const Ci = (Be = class extends we {
|
|
|
9215
9215
|
this.slsReporter,
|
|
9216
9216
|
i
|
|
9217
9217
|
), this.initMessageCenter(), this.messageCenter.once("onJoinChannelResult", (u) => {
|
|
9218
|
-
var h,
|
|
9218
|
+
var h, g, d;
|
|
9219
9219
|
if (O.info(`[${Be.logName}]`, "join result: ", u), c.taskretrynum = ((h = this.messageCenter) == null ? void 0 : h.retryCount) || 0, u.code == 200) {
|
|
9220
|
-
(
|
|
9220
|
+
(g = this.messageCenter) == null || g.sendPkgCache(), (d = this.messageCenter) == null || d.startKeepAlive();
|
|
9221
9221
|
let f = u.data;
|
|
9222
9222
|
f.tid = u.tid, f.users = u.data.users, f.timestamp = u.timestamp, c.est && (c.joinconnecttc = Date.now() - c.est), this.slsReporter.reportJoinConnection(c), s(f);
|
|
9223
9223
|
} else
|
|
@@ -9324,29 +9324,29 @@ const Ci = (Be = class extends we {
|
|
|
9324
9324
|
* 初始化MessageCenter,增加事件监听
|
|
9325
9325
|
*/
|
|
9326
9326
|
initMessageCenter() {
|
|
9327
|
-
var e, t, i, s, a, c, o, u, h,
|
|
9327
|
+
var e, t, i, s, a, c, o, u, h, g, d, f;
|
|
9328
9328
|
(e = this.messageCenter) == null || e.on("onKeepAliveRsp", () => {
|
|
9329
9329
|
this.emit("onKeepAliveRsp");
|
|
9330
|
-
}), (t = this.messageCenter) == null || t.on("onNotifyJoin", (
|
|
9331
|
-
this.emit("onNotifyJoin",
|
|
9332
|
-
}), (i = this.messageCenter) == null || i.on("onNotifyStatus", (
|
|
9333
|
-
this.emit("onNotifyStatus",
|
|
9334
|
-
}), (s = this.messageCenter) == null || s.on("onNotifyLeave", (
|
|
9335
|
-
this.emit("onNotifyLeave",
|
|
9336
|
-
}), (a = this.messageCenter) == null || a.on("onNotifyPublish", (
|
|
9337
|
-
this.emit("onNotifyPublish",
|
|
9338
|
-
}), (c = this.messageCenter) == null || c.on("onBye", (
|
|
9339
|
-
this.emit("onBye",
|
|
9330
|
+
}), (t = this.messageCenter) == null || t.on("onNotifyJoin", (p) => {
|
|
9331
|
+
this.emit("onNotifyJoin", p);
|
|
9332
|
+
}), (i = this.messageCenter) == null || i.on("onNotifyStatus", (p) => {
|
|
9333
|
+
this.emit("onNotifyStatus", p);
|
|
9334
|
+
}), (s = this.messageCenter) == null || s.on("onNotifyLeave", (p) => {
|
|
9335
|
+
this.emit("onNotifyLeave", p);
|
|
9336
|
+
}), (a = this.messageCenter) == null || a.on("onNotifyPublish", (p) => {
|
|
9337
|
+
this.emit("onNotifyPublish", p);
|
|
9338
|
+
}), (c = this.messageCenter) == null || c.on("onBye", (p, l) => {
|
|
9339
|
+
this.emit("onBye", p, l);
|
|
9340
9340
|
}), (o = this.messageCenter) == null || o.on("onReconnectStart", () => {
|
|
9341
9341
|
this.emit("onReconnectStart");
|
|
9342
|
-
}), (u = this.messageCenter) == null || u.on("onReconnectSuccess", (
|
|
9343
|
-
this.emit("onReconnectSuccess",
|
|
9344
|
-
}), (h = this.messageCenter) == null || h.on("onReconnectFail", (
|
|
9345
|
-
this.emit("onReconnectFail",
|
|
9346
|
-
}), (
|
|
9347
|
-
this.emit("onConnectFail",
|
|
9348
|
-
}), (d = this.messageCenter) == null || d.on("onNetworkError", (
|
|
9349
|
-
this.emit("onNetworkError",
|
|
9342
|
+
}), (u = this.messageCenter) == null || u.on("onReconnectSuccess", (p) => {
|
|
9343
|
+
this.emit("onReconnectSuccess", p);
|
|
9344
|
+
}), (h = this.messageCenter) == null || h.on("onReconnectFail", (p) => {
|
|
9345
|
+
this.emit("onReconnectFail", p);
|
|
9346
|
+
}), (g = this.messageCenter) == null || g.on("onConnectFail", (p) => {
|
|
9347
|
+
this.emit("onConnectFail", p), this.reset();
|
|
9348
|
+
}), (d = this.messageCenter) == null || d.on("onNetworkError", (p) => {
|
|
9349
|
+
this.emit("onNetworkError", p);
|
|
9350
9350
|
}), (f = this.messageCenter) == null || f.on("onAuthInvalid", () => {
|
|
9351
9351
|
this.emit("onAuthInvalid");
|
|
9352
9352
|
});
|
|
@@ -9380,12 +9380,12 @@ const k0 = "https://pgw.rtn.aliyuncs.com", B0 = "https://gw.rtn.aliyuncs.com", F
|
|
|
9380
9380
|
const { appId: e, channelId: t, userId: i, nonce: s = "", token: a, timestamp: c, sessionId: o, role: u } = this.authInfo;
|
|
9381
9381
|
let h = B0;
|
|
9382
9382
|
this.env === dt.pre && (h = k0);
|
|
9383
|
-
const
|
|
9384
|
-
fetch(
|
|
9385
|
-
var
|
|
9383
|
+
const g = `${h}/gslb/v1/stsupdate?appid=${e}&channelid=${t}&userid=${i}&nonce=${s}&token=${a}×tamp=${c}&session=${o}${u ? `&tokenrole=${u}` : ""}&slstoken=true&osstoken=true&tokensid=false`, d = Date.now();
|
|
9384
|
+
fetch(g).then((f) => f.json()).then((f) => {
|
|
9385
|
+
var p, l;
|
|
9386
9386
|
if (f.code === 0) {
|
|
9387
|
-
const
|
|
9388
|
-
this.expiration =
|
|
9387
|
+
const x = (p = f.data) == null ? void 0 : p.oss, v = (l = f.data) == null ? void 0 : l.sls;
|
|
9388
|
+
this.expiration = x.expiration || v.expiration, this.emit("onTokenUpdate", x, v), O.event(`[${ti.logName}]`, "getToken", x, v);
|
|
9389
9389
|
} else
|
|
9390
9390
|
throw new Error();
|
|
9391
9391
|
this.slsReporter.reportSTSResult(200, d);
|
|
@@ -9541,8 +9541,8 @@ class ts extends we {
|
|
|
9541
9541
|
* 监听业务信令相关的事件
|
|
9542
9542
|
*/
|
|
9543
9543
|
initSignaling() {
|
|
9544
|
-
var e, t, i, s, a, c, o, u, h,
|
|
9545
|
-
(e = this.signaling) == null || e.on("onKeepAliveRsp", this.onKeepAliveRsp.bind(this)), (t = this.signaling) == null || t.on("onNotifyJoin", this.onNotifyJoin.bind(this)), (i = this.signaling) == null || i.on("onNotifyStatus", this.onNotifyStatus.bind(this)), (s = this.signaling) == null || s.on("onNotifyLeave", this.onNotifyLeave.bind(this)), (a = this.signaling) == null || a.on("onNotifyPublish", this.onNotifyPublish.bind(this)), (c = this.signaling) == null || c.on("onBye", this.onBye.bind(this)), (o = this.signaling) == null || o.on("onReconnectStart", this.onReconnectStart.bind(this)), (u = this.signaling) == null || u.on("onReconnectSuccess", this.onReconnectSuccess.bind(this)), (h = this.signaling) == null || h.on("onReconnectFail", this.onReconnectFail.bind(this)), (
|
|
9544
|
+
var e, t, i, s, a, c, o, u, h, g, d, f, p;
|
|
9545
|
+
(e = this.signaling) == null || e.on("onKeepAliveRsp", this.onKeepAliveRsp.bind(this)), (t = this.signaling) == null || t.on("onNotifyJoin", this.onNotifyJoin.bind(this)), (i = this.signaling) == null || i.on("onNotifyStatus", this.onNotifyStatus.bind(this)), (s = this.signaling) == null || s.on("onNotifyLeave", this.onNotifyLeave.bind(this)), (a = this.signaling) == null || a.on("onNotifyPublish", this.onNotifyPublish.bind(this)), (c = this.signaling) == null || c.on("onBye", this.onBye.bind(this)), (o = this.signaling) == null || o.on("onReconnectStart", this.onReconnectStart.bind(this)), (u = this.signaling) == null || u.on("onReconnectSuccess", this.onReconnectSuccess.bind(this)), (h = this.signaling) == null || h.on("onReconnectFail", this.onReconnectFail.bind(this)), (g = this.signaling) == null || g.on("onConnectFail", this.onConnectFail.bind(this)), (d = this.signaling) == null || d.on("onNetworkError", this.onNetworkError.bind(this)), (f = this.signaling) == null || f.on("onAuthInvalid", this.onAuthInvalid.bind(this)), (p = this.signaling) == null || p.on("onError", this.onError.bind(this));
|
|
9546
9546
|
}
|
|
9547
9547
|
/**
|
|
9548
9548
|
* 收到心跳消息
|
|
@@ -9653,16 +9653,16 @@ function V0(r, n, e, t, i) {
|
|
|
9653
9653
|
n.connect(o), o.connect(e);
|
|
9654
9654
|
const h = () => {
|
|
9655
9655
|
c && window.clearInterval(c);
|
|
9656
|
-
},
|
|
9656
|
+
}, g = () => {
|
|
9657
9657
|
c = window.setInterval(() => {
|
|
9658
9658
|
o.getByteFrequencyData(u);
|
|
9659
|
-
let d = Math.round(u.reduce((f,
|
|
9659
|
+
let d = Math.round(u.reduce((f, p) => f + p) / u.length);
|
|
9660
9660
|
d = Math.min(100, d), a = d, i && i(d);
|
|
9661
9661
|
}, s);
|
|
9662
9662
|
};
|
|
9663
|
-
return
|
|
9663
|
+
return g(), {
|
|
9664
9664
|
updateInterval: (d) => {
|
|
9665
|
-
h(), s = d,
|
|
9665
|
+
h(), s = d, g();
|
|
9666
9666
|
},
|
|
9667
9667
|
getLevel: () => a,
|
|
9668
9668
|
dispose: () => {
|
|
@@ -9870,7 +9870,7 @@ const Sn = (r, n, e = !1) => {
|
|
|
9870
9870
|
return e && r.srcObject === n ? i = Promise.resolve() : (r.load(), r.srcObject = n, i = r.play(), r._playPromise = i), i;
|
|
9871
9871
|
}));
|
|
9872
9872
|
return new Promise((i) => {
|
|
9873
|
-
if (
|
|
9873
|
+
if (ce.BrowserUtil.isMicroMessenger) {
|
|
9874
9874
|
const s = window.top !== window.self, a = window.WeixinJSBridge || window.top.WeixinJSBridge;
|
|
9875
9875
|
a ? a.invoke("getNetworkType", {}, () => {
|
|
9876
9876
|
i(t());
|
|
@@ -10147,16 +10147,16 @@ const ge = (ht = class extends pn {
|
|
|
10147
10147
|
this.onTrackEnd(u);
|
|
10148
10148
|
}), this.streamManager.on("publishupdate", () => {
|
|
10149
10149
|
this.publishUpdate();
|
|
10150
|
-
}), this.audioPubState = new Xt(), this.audioPubState.on("change", (u, h,
|
|
10151
|
-
this.emit("audioPublishStateChanged", u, h,
|
|
10152
|
-
}), this.videoPubState = new Xt(), this.videoPubState.on("change", (u, h,
|
|
10153
|
-
this.emit("videoPublishStateChanged", u, h,
|
|
10154
|
-
}), this.videoSmallPubState = new Xt(), this.videoSmallPubState.on("change", (u, h,
|
|
10155
|
-
this.emit("dualStreamPublishStateChanged", u, h,
|
|
10156
|
-
}), this.screenPubState = new Xt(), this.screenPubState.on("change", (u, h,
|
|
10157
|
-
this.emit("screenPublishStateChanged", u, h,
|
|
10158
|
-
}), this.dataPubState = new Xt(), this.dataPubState.on("change", (u, h,
|
|
10159
|
-
this.emit("dataPublishStateChanged", u, h,
|
|
10150
|
+
}), this.audioPubState = new Xt(), this.audioPubState.on("change", (u, h, g) => {
|
|
10151
|
+
this.emit("audioPublishStateChanged", u, h, g);
|
|
10152
|
+
}), this.videoPubState = new Xt(), this.videoPubState.on("change", (u, h, g) => {
|
|
10153
|
+
this.emit("videoPublishStateChanged", u, h, g);
|
|
10154
|
+
}), this.videoSmallPubState = new Xt(), this.videoSmallPubState.on("change", (u, h, g) => {
|
|
10155
|
+
this.emit("dualStreamPublishStateChanged", u, h, g);
|
|
10156
|
+
}), this.screenPubState = new Xt(), this.screenPubState.on("change", (u, h, g) => {
|
|
10157
|
+
this.emit("screenPublishStateChanged", u, h, g);
|
|
10158
|
+
}), this.dataPubState = new Xt(), this.dataPubState.on("change", (u, h, g) => {
|
|
10159
|
+
this.emit("dataPublishStateChanged", u, h, g);
|
|
10160
10160
|
}), this.startStreamMonitor();
|
|
10161
10161
|
}
|
|
10162
10162
|
get joined() {
|
|
@@ -10322,9 +10322,9 @@ const ge = (ht = class extends pn {
|
|
|
10322
10322
|
let a = [];
|
|
10323
10323
|
if (!t && !e && !i && s) {
|
|
10324
10324
|
try {
|
|
10325
|
-
a = yield
|
|
10325
|
+
a = yield ce.getCameraList(), a.length && (yield this.startCameraCapture());
|
|
10326
10326
|
} catch (c) {
|
|
10327
|
-
throw c.code ===
|
|
10327
|
+
throw c.code === ce.ErrorCode.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED ? new V(U.ERR_CAMERA_AUTH_FAIL, "camera auth fail") : new V(U.ERR_CAMERA_OPEN_FAIL, `camera open fail: ${c.message}`);
|
|
10328
10328
|
}
|
|
10329
10329
|
if (!a.length)
|
|
10330
10330
|
throw new V(U.ERR_CAMERA_NOT_AVAILABLE, "No camera device can be captured");
|
|
@@ -10337,9 +10337,9 @@ const ge = (ht = class extends pn {
|
|
|
10337
10337
|
let s = [];
|
|
10338
10338
|
if (!e && !t && i) {
|
|
10339
10339
|
try {
|
|
10340
|
-
s = yield
|
|
10340
|
+
s = yield ce.getMicList(), s.length && (yield this.startAudioCapture());
|
|
10341
10341
|
} catch (a) {
|
|
10342
|
-
throw a.code ===
|
|
10342
|
+
throw a.code === ce.ErrorCode.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED ? new V(U.ERR_MIC_AUTH_FAIL, "microphone auth fail") : new V(U.ERR_MIC_OPEN_FAIL, `microphone open fail: ${a.message}`);
|
|
10343
10343
|
}
|
|
10344
10344
|
if (!s.length)
|
|
10345
10345
|
throw new V(U.ERR_MIC_NOT_AVAILABLE, "No microphone device can be captured");
|
|
@@ -10527,7 +10527,7 @@ const ge = (ht = class extends pn {
|
|
|
10527
10527
|
});
|
|
10528
10528
|
}
|
|
10529
10529
|
reportAudioProfile() {
|
|
10530
|
-
const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t =
|
|
10530
|
+
const e = this.streamManager.cameraStreamInfo.audioProfile || "standard", t = ce.AudioProfileMap.get(e);
|
|
10531
10531
|
this.slsReporter.reportPublishProfile(k.Audio, {
|
|
10532
10532
|
a_profile: e,
|
|
10533
10533
|
bits: (t == null ? void 0 : t.maxBitrate) || 0,
|
|
@@ -10536,7 +10536,7 @@ const ge = (ht = class extends pn {
|
|
|
10536
10536
|
});
|
|
10537
10537
|
}
|
|
10538
10538
|
reportVideoProfile() {
|
|
10539
|
-
const e = this.streamManager.cameraStreamInfo.videoProfile || "", t =
|
|
10539
|
+
const e = this.streamManager.cameraStreamInfo.videoProfile || "", t = ce.VideoProfileMap.get(e);
|
|
10540
10540
|
t && this.slsReporter.reportPublishProfile(k.VideoLarge, {
|
|
10541
10541
|
v_profile: e,
|
|
10542
10542
|
wdth: (t == null ? void 0 : t.width) || 0,
|
|
@@ -10546,7 +10546,7 @@ const ge = (ht = class extends pn {
|
|
|
10546
10546
|
});
|
|
10547
10547
|
}
|
|
10548
10548
|
reportScreenProfile() {
|
|
10549
|
-
const e = this.streamManager.screenStreamInfo.videoProfile || "", t =
|
|
10549
|
+
const e = this.streamManager.screenStreamInfo.videoProfile || "", t = ce.VideoProfileMap.get(e);
|
|
10550
10550
|
t && this.slsReporter.reportPublishProfile(k.Screen, {
|
|
10551
10551
|
v_profile: e,
|
|
10552
10552
|
wdth: (t == null ? void 0 : t.width) || 0,
|
|
@@ -10569,13 +10569,13 @@ const ge = (ht = class extends pn {
|
|
|
10569
10569
|
try {
|
|
10570
10570
|
const h = (/* @__PURE__ */ new Date()).getTime();
|
|
10571
10571
|
s && this.audioPubState.setState(Z.AliRtcStatePublishing), a && this.videoPubState.setState(Z.AliRtcStatePublishing), c && this.videoSmallPubState.setState(Z.AliRtcStatePublishing), o && this.screenPubState.setState(Z.AliRtcStatePublishing), this.publishPromise = this.rtsManager.publish(this.url, this.callId, e, t);
|
|
10572
|
-
const { traceId:
|
|
10573
|
-
if (this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId =
|
|
10572
|
+
const { traceId: g, l1ip: d } = yield this.publishPromise;
|
|
10573
|
+
if (this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = g, (u = this.parameter.data) != null && u.enablePubDataChannel) {
|
|
10574
10574
|
this.dataPubState.setState(Z.AliRtcStatePublishing);
|
|
10575
|
-
const
|
|
10576
|
-
|
|
10575
|
+
const p = yield this.rtsManager.publishAddDataChannel(this.url);
|
|
10576
|
+
p ? (this.dc = p, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dataPubState.setState(Z.AliRtcStatePublished)) : this.emit("publishDataError", new V(U.ERR_INNER, "publishDataError"));
|
|
10577
10577
|
}
|
|
10578
|
-
s && (this.trackTraceIdMap[k.Audio] =
|
|
10578
|
+
s && (this.trackTraceIdMap[k.Audio] = g, this.reportAudioProfile()), c && (this.trackTraceIdMap[k.VideoSmall] = g), a && (this.trackTraceIdMap[k.VideoLarge] = g, this.reportVideoProfile()), o && (this.trackTraceIdMap[k.Screen] = g, this.reportScreenProfile());
|
|
10579
10579
|
const f = {
|
|
10580
10580
|
type: mt.Add,
|
|
10581
10581
|
userid: this.userId,
|
|
@@ -10590,7 +10590,7 @@ const ge = (ht = class extends pn {
|
|
|
10590
10590
|
l1ip: this.parameter.reportL1IP ? d : void 0,
|
|
10591
10591
|
callid: this.callId,
|
|
10592
10592
|
tracks: this.streamTracks,
|
|
10593
|
-
traceid:
|
|
10593
|
+
traceid: g
|
|
10594
10594
|
};
|
|
10595
10595
|
yield this.syncPublishToRoomServer(f, i, h), s && this.audioPubState.setState(Z.AliRtcStatePublished), a && this.videoPubState.setState(Z.AliRtcStatePublished), c && this.videoSmallPubState.setState(Z.AliRtcStatePublished), o && this.screenPubState.setState(Z.AliRtcStatePublished);
|
|
10596
10596
|
} catch (h) {
|
|
@@ -10614,31 +10614,31 @@ const ge = (ht = class extends pn {
|
|
|
10614
10614
|
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
10615
10615
|
try {
|
|
10616
10616
|
const h = (a = this.streamTracks) == null ? void 0 : a.find(
|
|
10617
|
-
({ ssrc:
|
|
10618
|
-
),
|
|
10619
|
-
|
|
10617
|
+
({ ssrc: S, type: b, msid: y }) => b === "audio" && S && y === k.Audio
|
|
10618
|
+
), g = yield this.compareAndPublish(h, t.audio, k.Audio);
|
|
10619
|
+
g && (i = g);
|
|
10620
10620
|
const d = (c = this.streamTracks) == null ? void 0 : c.find(
|
|
10621
|
-
({ ssrc:
|
|
10621
|
+
({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.VideoLarge
|
|
10622
10622
|
), f = yield this.compareAndPublish(d, t.video, k.VideoLarge);
|
|
10623
10623
|
f && (i = f);
|
|
10624
|
-
const
|
|
10625
|
-
({ ssrc:
|
|
10624
|
+
const p = (o = this.streamTracks) == null ? void 0 : o.find(
|
|
10625
|
+
({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.VideoSmall
|
|
10626
10626
|
), l = yield this.compareAndPublish(
|
|
10627
|
-
|
|
10627
|
+
p,
|
|
10628
10628
|
t.videoSmall,
|
|
10629
10629
|
k.VideoSmall
|
|
10630
10630
|
);
|
|
10631
10631
|
l && (i = l);
|
|
10632
|
-
const
|
|
10633
|
-
({ ssrc:
|
|
10634
|
-
), v = yield this.compareAndPublish(
|
|
10632
|
+
const x = (u = this.streamTracks) == null ? void 0 : u.find(
|
|
10633
|
+
({ ssrc: S, type: b, msid: y }) => b === "video" && S && y === k.Screen
|
|
10634
|
+
), v = yield this.compareAndPublish(x, t.screen, k.Screen);
|
|
10635
10635
|
if (v && (i = v), !i)
|
|
10636
10636
|
if (e === st.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
|
|
10637
|
-
const
|
|
10638
|
-
(
|
|
10637
|
+
const S = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
|
|
10638
|
+
(S || b) && (yield this.rtsManager.waitPublishSender(
|
|
10639
10639
|
this.url,
|
|
10640
|
-
!
|
|
10641
|
-
|
|
10640
|
+
!S,
|
|
10641
|
+
S ? S.msid : b == null ? void 0 : b.msid
|
|
10642
10642
|
)), i = {
|
|
10643
10643
|
type: mt.Add,
|
|
10644
10644
|
userid: this.userId,
|
|
@@ -10658,8 +10658,8 @@ const ge = (ht = class extends pn {
|
|
|
10658
10658
|
return;
|
|
10659
10659
|
yield this.syncPublishToRoomServer(i, t, s);
|
|
10660
10660
|
} catch (h) {
|
|
10661
|
-
const { code:
|
|
10662
|
-
throw
|
|
10661
|
+
const { code: g } = h != null ? h : {}, d = this.url;
|
|
10662
|
+
throw g === 403 && d && (yield this.refreshPushStreamUrl(), i = yield this.publishUpdate()), h;
|
|
10663
10663
|
}
|
|
10664
10664
|
return i;
|
|
10665
10665
|
});
|
|
@@ -10709,7 +10709,7 @@ const ge = (ht = class extends pn {
|
|
|
10709
10709
|
try {
|
|
10710
10710
|
const h = yield this.rtsManager.publishAdd(this.url, e, this.callId, t, !1, !0);
|
|
10711
10711
|
a && (this.audioPubState.setState(Z.AliRtcStatePublished), this.reportAudioProfile(), this.trackTraceIdMap[k.Audio] = h), c && (this.videoPubState.setState(Z.AliRtcStatePublished), this.reportVideoProfile(), this.trackTraceIdMap[k.VideoLarge] = h), o && (this.videoSmallPubState.setState(Z.AliRtcStatePublished), this.trackTraceIdMap[k.VideoSmall] = h), u && (this.screenPubState.setState(Z.AliRtcStatePublished), this.reportScreenProfile(), this.trackTraceIdMap[k.Screen] = h), this.streamTracks = this.rtsManager.publishingTracks;
|
|
10712
|
-
const
|
|
10712
|
+
const g = {
|
|
10713
10713
|
type: mt.Add,
|
|
10714
10714
|
userid: this.userId,
|
|
10715
10715
|
sessionid: "",
|
|
@@ -10724,12 +10724,12 @@ const ge = (ht = class extends pn {
|
|
|
10724
10724
|
tracks: this.streamTracks,
|
|
10725
10725
|
traceid: h
|
|
10726
10726
|
};
|
|
10727
|
-
return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(),
|
|
10727
|
+
return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), g;
|
|
10728
10728
|
} catch (h) {
|
|
10729
|
-
let
|
|
10730
|
-
if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish),
|
|
10729
|
+
let g = U.ERR_SDK_PUBLISH_INVAILD;
|
|
10730
|
+
if (a && (this.audioPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(Z.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
|
|
10731
10731
|
return this.publishAdd(e, t, i, s + 1);
|
|
10732
|
-
throw V.fromError(h,
|
|
10732
|
+
throw V.fromError(h, g, "publish add failed");
|
|
10733
10733
|
}
|
|
10734
10734
|
});
|
|
10735
10735
|
}
|
|
@@ -10929,20 +10929,20 @@ const ge = (ht = class extends pn {
|
|
|
10929
10929
|
if (!h)
|
|
10930
10930
|
return;
|
|
10931
10931
|
o.includes(h) && (o = o.filter((f) => f !== h));
|
|
10932
|
-
let
|
|
10933
|
-
h === k.Audio ?
|
|
10932
|
+
let g;
|
|
10933
|
+
h === k.Audio ? g = this.rtsManager.getPublishAudioStats(this.url) : g = this.rtsManager.getPublishVideoStats(this.url, h), g.then((f) => {
|
|
10934
10934
|
if (!f.timestamp)
|
|
10935
10935
|
return;
|
|
10936
10936
|
this.monitorDataCache[h] || (this.monitorDataCache[h] = []);
|
|
10937
|
-
const
|
|
10938
|
-
f._source =
|
|
10937
|
+
const p = this.getMediaStats(f.mediaSourceId);
|
|
10938
|
+
f._source = p;
|
|
10939
10939
|
const l = this.monitorDataCache[h];
|
|
10940
|
-
let
|
|
10940
|
+
let x;
|
|
10941
10941
|
if ((l == null ? void 0 : l.length) > 0) {
|
|
10942
10942
|
const v = l[l.length - 1] || {}, { _last: b } = v;
|
|
10943
|
-
|
|
10943
|
+
x = Ft(v, ["_last"]);
|
|
10944
10944
|
}
|
|
10945
|
-
(l == null ? void 0 : l.length) >= Ha && this.reportPublishMonitor(h), f._last =
|
|
10945
|
+
(l == null ? void 0 : l.length) >= Ha && this.reportPublishMonitor(h), f._last = x, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
|
|
10946
10946
|
});
|
|
10947
10947
|
}), o.forEach((u) => {
|
|
10948
10948
|
this.reportPublishMonitor(u);
|
|
@@ -11130,7 +11130,7 @@ const $0 = (r) => {
|
|
|
11130
11130
|
const n = new MediaStream();
|
|
11131
11131
|
return n.addTrack(r), n;
|
|
11132
11132
|
}, bn = (r) => w(void 0, null, function* () {
|
|
11133
|
-
return yield
|
|
11133
|
+
return yield ce.createStream({
|
|
11134
11134
|
custom: !0,
|
|
11135
11135
|
mediaStream: r
|
|
11136
11136
|
});
|
|
@@ -11344,9 +11344,9 @@ class bi extends we {
|
|
|
11344
11344
|
updateTracks(e) {
|
|
11345
11345
|
let t = "", i = "", s = "", a = "", c = "";
|
|
11346
11346
|
return e ? (e.forEach((o) => {
|
|
11347
|
-
var
|
|
11347
|
+
var g;
|
|
11348
11348
|
let u = xt.UNKNOWN;
|
|
11349
|
-
const h = ((
|
|
11349
|
+
const h = ((g = o == null ? void 0 : o.attr) == null ? void 0 : g.reason) === "reconnect";
|
|
11350
11350
|
if (o.userdata) {
|
|
11351
11351
|
const { codec: d } = JSON.parse(o.userdata);
|
|
11352
11352
|
d && (u = d);
|
|
@@ -11380,7 +11380,7 @@ class bi extends we {
|
|
|
11380
11380
|
updateRemoteUserDeviceStatus(e) {
|
|
11381
11381
|
let t = gn.parseStatus(e);
|
|
11382
11382
|
const { audioDisable: i, videoDisable: s, screenDisable: a } = t;
|
|
11383
|
-
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Ne.Remote, i ?
|
|
11383
|
+
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Ne.Remote, i ? oe.MuteAudio : oe.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Ne.Remote, s ? oe.MuteVideo : oe.UnmuteVideo)), this.userStatus.screenDisable != a && (this.userStatus.screenDisable = a, this.emit(Ne.Remote, a ? oe.MuteScreen : oe.UnmuteScreen))) : (this.userStatus = t, this.emit(Ne.Remote, i ? oe.MuteAudio : oe.UnmuteAudio), this.emit(Ne.Remote, s ? oe.MuteVideo : oe.UnmuteVideo), this.emit(Ne.Remote, a ? oe.MuteScreen : oe.UnmuteScreen)), !1;
|
|
11384
11384
|
}
|
|
11385
11385
|
}
|
|
11386
11386
|
/**
|
|
@@ -11481,7 +11481,7 @@ const _e = (Me = class extends pn {
|
|
|
11481
11481
|
signalingManager: o,
|
|
11482
11482
|
localUser: u,
|
|
11483
11483
|
audioVolumeIndicationInterval: h,
|
|
11484
|
-
playoutVolume:
|
|
11484
|
+
playoutVolume: g,
|
|
11485
11485
|
parameter: d
|
|
11486
11486
|
} = e;
|
|
11487
11487
|
super(t, i, s, h);
|
|
@@ -11543,8 +11543,8 @@ const _e = (Me = class extends pn {
|
|
|
11543
11543
|
const c = new ArrayBuffer(a);
|
|
11544
11544
|
let o = 0;
|
|
11545
11545
|
for (let h = 0; h < this.dcMsgWaitingPieces.length; h++) {
|
|
11546
|
-
const
|
|
11547
|
-
new Uint8Array(c, o,
|
|
11546
|
+
const g = this.dcMsgWaitingPieces[h];
|
|
11547
|
+
new Uint8Array(c, o, g.byteLength).set(new Uint8Array(g)), o += g.byteLength;
|
|
11548
11548
|
}
|
|
11549
11549
|
new Uint8Array(c, o, t.body.byteLength).set(new Uint8Array(t.body)), i = Wt.parse(c);
|
|
11550
11550
|
} catch (c) {
|
|
@@ -11571,17 +11571,17 @@ const _e = (Me = class extends pn {
|
|
|
11571
11571
|
m(this, "handleAudioPaused", () => {
|
|
11572
11572
|
this.emit("remoteAudioPlayError", this.uid, "paused");
|
|
11573
11573
|
});
|
|
11574
|
-
this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Ne.Remote, (
|
|
11575
|
-
this.emit(Ne.Remote,
|
|
11576
|
-
}), this.signalingManager = o, this.viewMap = (f = a[t]) != null ? f : { cameraViews: [], screenViews: [] }, a[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new Ut(), this.audioSubState.on("change", (
|
|
11577
|
-
this.emit("audioSubscribeStateChanged", this.uid,
|
|
11578
|
-
}), this.videoSubState = new Ut(), this.videoSubState.on("change", (
|
|
11579
|
-
this.emit("videoSubscribeStateChanged", this.uid,
|
|
11580
|
-
}), this.screenSubState = new Ut(), this.screenSubState.on("change", (
|
|
11581
|
-
this.emit("screenSubscribeStateChanged", this.uid,
|
|
11582
|
-
}), this.dataSubState = new Ut(), this.dataSubState.on("change", (
|
|
11583
|
-
this.emit("dataSubscribeStateChanged", this.uid,
|
|
11584
|
-
}), this.playoutVolume =
|
|
11574
|
+
this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Ne.Remote, (p) => {
|
|
11575
|
+
this.emit(Ne.Remote, p, this.userId);
|
|
11576
|
+
}), this.signalingManager = o, this.viewMap = (f = a[t]) != null ? f : { cameraViews: [], screenViews: [] }, a[t] = this.viewMap, this.slsReporter = c, this.localUser = u, this.audioSubState = new Ut(), this.audioSubState.on("change", (p, l, x) => {
|
|
11577
|
+
this.emit("audioSubscribeStateChanged", this.uid, p, l, x);
|
|
11578
|
+
}), this.videoSubState = new Ut(), this.videoSubState.on("change", (p, l, x) => {
|
|
11579
|
+
this.emit("videoSubscribeStateChanged", this.uid, p, l, x);
|
|
11580
|
+
}), this.screenSubState = new Ut(), this.screenSubState.on("change", (p, l, x) => {
|
|
11581
|
+
this.emit("screenSubscribeStateChanged", this.uid, p, l, x);
|
|
11582
|
+
}), this.dataSubState = new Ut(), this.dataSubState.on("change", (p, l, x) => {
|
|
11583
|
+
this.emit("dataSubscribeStateChanged", this.uid, p, l, x);
|
|
11584
|
+
}), this.playoutVolume = g;
|
|
11585
11585
|
}
|
|
11586
11586
|
isWantSubAudio() {
|
|
11587
11587
|
return this.wantSubAudio;
|
|
@@ -11702,7 +11702,7 @@ const _e = (Me = class extends pn {
|
|
|
11702
11702
|
"track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
|
|
11703
11703
|
);
|
|
11704
11704
|
e ? Fr(e).forEach((s) => {
|
|
11705
|
-
s.setAttribute("playsinline", ""),
|
|
11705
|
+
s.setAttribute("playsinline", ""), ce.BrowserUtil.isMicroMessenger && (s.setAttribute("x5-video-player-type", "h5-page"), s.setAttribute("x5-playsinline", ""), ce.SystenUtil.isAndroid || ce.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);
|
|
11706
11706
|
}) : (this.stopPlayAll(t === se.AliRtcVideoTrackScreen), t === se.AliRtcVideoTrackScreen ? this.viewMap.screenViews = [] : this.viewMap.cameraViews = []);
|
|
11707
11707
|
}
|
|
11708
11708
|
clear(e = !0) {
|
|
@@ -11723,23 +11723,23 @@ const _e = (Me = class extends pn {
|
|
|
11723
11723
|
}
|
|
11724
11724
|
subscribe(s, a) {
|
|
11725
11725
|
return w(this, arguments, function* (e, t, i = Date.now()) {
|
|
11726
|
-
var f,
|
|
11726
|
+
var f, p;
|
|
11727
11727
|
let c = e;
|
|
11728
11728
|
if (!c) {
|
|
11729
|
-
const { hasAudio: l, hasVideo:
|
|
11729
|
+
const { hasAudio: l, hasVideo: x, hasScreen: v, hasData: S } = (f = this.streamInfo) != null ? f : {};
|
|
11730
11730
|
c = {
|
|
11731
11731
|
audio: this.wantSubAudio && l,
|
|
11732
|
-
video: this.wantSubVideo &&
|
|
11732
|
+
video: this.wantSubVideo && x,
|
|
11733
11733
|
screen: this.wantSubScreen && v,
|
|
11734
|
-
data: ((
|
|
11734
|
+
data: ((p = this.parameter.data) == null ? void 0 : p.enableSubDataChannel) && S
|
|
11735
11735
|
};
|
|
11736
11736
|
}
|
|
11737
11737
|
this.streamInfo.markRemoteTrackSubscribing(c);
|
|
11738
|
-
const { screen: o, audio: u, video: h, vMsid:
|
|
11738
|
+
const { screen: o, audio: u, video: h, vMsid: g } = c, d = [];
|
|
11739
11739
|
(h || u) && d.push({
|
|
11740
11740
|
audio: u,
|
|
11741
11741
|
video: h,
|
|
11742
|
-
vMsid:
|
|
11742
|
+
vMsid: g
|
|
11743
11743
|
}), o && d.push({
|
|
11744
11744
|
screen: o
|
|
11745
11745
|
}), !(d.length === 0 && !(e != null && e.data)) && (yield Promise.all(d.map((l) => this.subscribeProxy(l, t || le.User, i))), e != null && e.data && this.subscribeDataChannel());
|
|
@@ -11751,7 +11751,7 @@ const _e = (Me = class extends pn {
|
|
|
11751
11751
|
let s = (/* @__PURE__ */ new Date()).getTime(), a = "";
|
|
11752
11752
|
try {
|
|
11753
11753
|
e.audio && this.audioSubState.setState(de.AliRtcStateSubscribing), e.video && (this.videoSubState.currentState === de.AliRtcStateSubscribeIdle || this.videoSubState.currentState === de.AliRtcStateNoSubscribe) && this.videoSubState.setState(de.AliRtcStateSubscribing), e.screen && this.screenSubState.setState(de.AliRtcStateSubscribing);
|
|
11754
|
-
const
|
|
11754
|
+
const g = yield this.rtsManager.subscribe(
|
|
11755
11755
|
{
|
|
11756
11756
|
remoteUser: this,
|
|
11757
11757
|
options: e
|
|
@@ -11761,12 +11761,12 @@ const _e = (Me = class extends pn {
|
|
|
11761
11761
|
this.callId,
|
|
11762
11762
|
i
|
|
11763
11763
|
);
|
|
11764
|
-
this.streamInfo.updateRemoteTrackSubState(e), a =
|
|
11765
|
-
const { stream: d } =
|
|
11764
|
+
this.streamInfo.updateRemoteTrackSubState(e), a = g.traceId || "";
|
|
11765
|
+
const { stream: d } = g;
|
|
11766
11766
|
if (e.audio) {
|
|
11767
11767
|
this.trackTraceIdMap[k.Audio] = a;
|
|
11768
|
-
const
|
|
11769
|
-
|
|
11768
|
+
const p = d.audioTrack;
|
|
11769
|
+
p && (this.audioTrack = p, (o = d.mediaStream) == null || o.removeTrack(p), this.playAudio(), this.audioVolumeIndicationInterval && this.audioLevelMonitor.start(p, this.audioVolumeIndicationInterval)), this.audioSubState.setState(de.AliRtcStateSubscribed), this.audioSubState.getEnabled() || this.toggleAudio(!1);
|
|
11770
11770
|
}
|
|
11771
11771
|
e.video && (this.videoSubState.setState(de.AliRtcStateSubscribed), e.vMsid === k.VideoSmall ? (this.trackTraceIdMap[k.VideoSmall] = a, this.videoSmallSubState.setState(de.AliRtcStateSubscribed)) : (this.trackTraceIdMap[k.VideoLarge] = a, this.videoLargeSubState.setState(de.AliRtcStateSubscribed)), this.videoSubState.getEnabled() || this.toggleVideo(!1), this.updateStream(d, this.isVideoLargeSubscribing && this.isVideoSmallSubscribing)), e.screen && (this.screenSubState.setState(de.AliRtcStateSubscribed), this.trackTraceIdMap[k.Screen] = a, this.videoSubState.getEnabled() || this.toggleScreen(!1), this.updateScreenStream(d));
|
|
11772
11772
|
const f = (/* @__PURE__ */ new Date()).getTime() - s;
|
|
@@ -11788,9 +11788,9 @@ const _e = (Me = class extends pn {
|
|
|
11788
11788
|
est: s
|
|
11789
11789
|
}
|
|
11790
11790
|
), this.startStreamMonitor();
|
|
11791
|
-
} catch (
|
|
11791
|
+
} catch (g) {
|
|
11792
11792
|
const d = (/* @__PURE__ */ new Date()).getTime() - s;
|
|
11793
|
-
e.audio && this.audioSubState.setState(de.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(de.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(de.AliRtcStateNoSubscribe),
|
|
11793
|
+
e.audio && this.audioSubState.setState(de.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(de.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(de.AliRtcStateNoSubscribe), g && (g.message = `user(${this.uid}) subscribe error, ${(g == null ? void 0 : g.message) || ""}`);
|
|
11794
11794
|
let f = U.ERR_INNER;
|
|
11795
11795
|
e.audio && (f = U.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === k.VideoSmall ? f = U.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = U.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = U.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
|
|
11796
11796
|
((h = this.localUser) == null ? void 0 : h.callId) || "",
|
|
@@ -11810,8 +11810,8 @@ const _e = (Me = class extends pn {
|
|
|
11810
11810
|
est: s
|
|
11811
11811
|
}
|
|
11812
11812
|
);
|
|
11813
|
-
const
|
|
11814
|
-
throw this.emit("remoteSubscribeError",
|
|
11813
|
+
const p = V.fromError(g, f);
|
|
11814
|
+
throw this.emit("remoteSubscribeError", p), p;
|
|
11815
11815
|
}
|
|
11816
11816
|
});
|
|
11817
11817
|
}
|
|
@@ -12006,9 +12006,9 @@ const _e = (Me = class extends pn {
|
|
|
12006
12006
|
};
|
|
12007
12007
|
}
|
|
12008
12008
|
updateSubscribe(e) {
|
|
12009
|
-
var a, c, o, u, h,
|
|
12009
|
+
var a, c, o, u, h, g, d, f, p, l, x, v, S, b, y, E, I;
|
|
12010
12010
|
const t = Date.now(), i = {}, s = {};
|
|
12011
|
-
if (this.wantSubAudio && !this.isAudioSubscribing && ((a = this.streamInfo) != null && a.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || k.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) || k.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((
|
|
12011
|
+
if (this.wantSubAudio && !this.isAudioSubscribing && ((a = this.streamInfo) != null && a.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || k.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) || k.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((g = this.streamInfo) != null && g.hasVideoSmall) ? (i.video = !0, i.vMsid = k.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || k.VideoLarge), this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = k.VideoLarge) : this.defaultVideoStreamType === Re.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = k.VideoSmall)) : (!this.wantSubVideo || !((p = this.streamInfo) != null && p.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? k.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || k.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 : (!((y = this.parameter.data) != null && y.enableSubDataChannel) || !((E = this.streamInfo) != null && E.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 === le.Reconnect) {
|
|
12012
12012
|
if (O.event(`[${Me.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
|
|
12013
12013
|
const A = this.rtsManager.getStreamByMsid({
|
|
12014
12014
|
url: this.streamUrl,
|
|
@@ -12067,7 +12067,7 @@ const _e = (Me = class extends pn {
|
|
|
12067
12067
|
i.removeTrack(s);
|
|
12068
12068
|
}) : (i = new MediaStream(), this.audioElement.srcObject = i), i.addTrack(this.audioTrack);
|
|
12069
12069
|
}
|
|
12070
|
-
if (
|
|
12070
|
+
if (ce.SystenUtil.isIos && parseInt(ce.SystenUtil.systemVersion) <= 13) {
|
|
12071
12071
|
O.event(`[${Me.logName}]`, "play audio for iOS 13-");
|
|
12072
12072
|
const i = this.audioElement;
|
|
12073
12073
|
i.setAttribute("autoplay", "");
|
|
@@ -12221,7 +12221,7 @@ const _e = (Me = class extends pn {
|
|
|
12221
12221
|
let s;
|
|
12222
12222
|
const a = i === k.Audio;
|
|
12223
12223
|
a ? s = this.rtsManager.getSubscribeAudioStats(this.streamUrl) : s = this.rtsManager.getSubscribeVideoStats(this.streamUrl, i), s.then((c) => {
|
|
12224
|
-
var
|
|
12224
|
+
var g;
|
|
12225
12225
|
if (!c.timestamp)
|
|
12226
12226
|
return;
|
|
12227
12227
|
this.monitorDataCache[i] || (this.monitorDataCache[i] = []);
|
|
@@ -12231,7 +12231,7 @@ const _e = (Me = class extends pn {
|
|
|
12231
12231
|
const h = o[o.length - 1] || {}, { _last: f } = h;
|
|
12232
12232
|
u = Ft(h, ["_last"]);
|
|
12233
12233
|
}
|
|
12234
|
-
(o == null ? void 0 : o.length) >= sc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, a && (c._source = (
|
|
12234
|
+
(o == null ? void 0 : o.length) >= sc && this.reportSubscribeMonitor(i), c._last = u, c._codec = t.codec, a && (c._source = (g = this.localUser) == null ? void 0 : g.getMediaStats(c.playoutId)), this.monitorDataCache[i].push(c);
|
|
12235
12235
|
});
|
|
12236
12236
|
}), e.forEach((t) => {
|
|
12237
12237
|
this.reportSubscribeMonitor(t);
|
|
@@ -12372,7 +12372,7 @@ const xe = (Le = class extends we {
|
|
|
12372
12372
|
m(this, "dcConnectingPromise");
|
|
12373
12373
|
m(this, "_publishingTracks", []);
|
|
12374
12374
|
m(this, "parameter", {});
|
|
12375
|
-
this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = s, this.parameter = a, this.rts =
|
|
12375
|
+
this.localStreamManager = e, this.slsReporter = t, this.publishRetryHook = i, this.subscribeRetryOptionsHook = s, this.parameter = a, this.rts = ce.createClient(), this.addRTSListener();
|
|
12376
12376
|
}
|
|
12377
12377
|
addRTSListener() {
|
|
12378
12378
|
this.rts.on("connectStatusChange", (e) => {
|
|
@@ -12435,7 +12435,7 @@ const xe = (Le = class extends we {
|
|
|
12435
12435
|
this.rts.unpublish();
|
|
12436
12436
|
} catch (e) {
|
|
12437
12437
|
}
|
|
12438
|
-
this.rts =
|
|
12438
|
+
this.rts = ce.createClient(), this.addRTSListener();
|
|
12439
12439
|
}
|
|
12440
12440
|
startConnect() {
|
|
12441
12441
|
this.connecting = !0, this.connectingPromise = new Promise((e) => {
|
|
@@ -12475,9 +12475,9 @@ const xe = (Le = class extends we {
|
|
|
12475
12475
|
}
|
|
12476
12476
|
httpPublish(a, c) {
|
|
12477
12477
|
return w(this, arguments, function* (e, t, i = !1, s = st.MANUAL) {
|
|
12478
|
-
var
|
|
12478
|
+
var S, b;
|
|
12479
12479
|
let o;
|
|
12480
|
-
const { publishStream: u, videoSmallStream: h, screenStream:
|
|
12480
|
+
const { publishStream: u, videoSmallStream: h, screenStream: g, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
|
|
12481
12481
|
if (!u)
|
|
12482
12482
|
return O.warn(`[${Le.logName}]`, "publishStream is null"), {
|
|
12483
12483
|
traceId: "",
|
|
@@ -12489,7 +12489,7 @@ const xe = (Le = class extends we {
|
|
|
12489
12489
|
this.encodedInsertableStreams && (f.encodedInsertableStreams = !0), f.answerSdpHook = (y) => {
|
|
12490
12490
|
const E = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(y);
|
|
12491
12491
|
return E != null && E[0] && (o = E[0]), y;
|
|
12492
|
-
}, (b = (
|
|
12492
|
+
}, (b = (S = this.parameter) == null ? void 0 : S.net) != null && b.useTCP && (f.tcpOnly = !0), f.beforeRetry = (y) => w(this, null, function* () {
|
|
12493
12493
|
this._rtsReconnecting = !0, this.publishRetryHook && this.publishRetryHook();
|
|
12494
12494
|
const { publishStream: E, vMsid: I } = yield this.localStreamManager.createHTTPPublishStream();
|
|
12495
12495
|
if (!E)
|
|
@@ -12499,11 +12499,11 @@ const xe = (Le = class extends we {
|
|
|
12499
12499
|
});
|
|
12500
12500
|
return y.stream = E, A.aMsid ? y.aMsid = A.aMsid : y.aMsid = [], A.vMsid ? y.vMsid = A.vMsid : y.vMsid = [], y;
|
|
12501
12501
|
}), this._rtsPeerConnectionType = "publish";
|
|
12502
|
-
let
|
|
12502
|
+
let p = !u.hasVideo, l = d, x = "";
|
|
12503
12503
|
this.startConnect();
|
|
12504
12504
|
const v = Date.now();
|
|
12505
12505
|
try {
|
|
12506
|
-
|
|
12506
|
+
x = yield this.rts.publish(e, u, f);
|
|
12507
12507
|
} catch (y) {
|
|
12508
12508
|
this.setConnected(!1);
|
|
12509
12509
|
const E = 2e3 - (Date.now() - v);
|
|
@@ -12523,7 +12523,7 @@ const xe = (Le = class extends we {
|
|
|
12523
12523
|
v
|
|
12524
12524
|
), V.fromRtsError(y);
|
|
12525
12525
|
}
|
|
12526
|
-
O.event(`[${Le.logName}]`, "rts publish success",
|
|
12526
|
+
O.event(`[${Le.logName}]`, "rts publish success", x), this.slsReporter.reportPublish(
|
|
12527
12527
|
i,
|
|
12528
12528
|
e,
|
|
12529
12529
|
t,
|
|
@@ -12532,13 +12532,13 @@ const xe = (Le = class extends we {
|
|
|
12532
12532
|
u.hasVideo && d === k.Screen,
|
|
12533
12533
|
u.hasAudio,
|
|
12534
12534
|
0,
|
|
12535
|
-
|
|
12536
|
-
|
|
12535
|
+
x,
|
|
12536
|
+
x,
|
|
12537
12537
|
v
|
|
12538
12538
|
);
|
|
12539
12539
|
try {
|
|
12540
12540
|
const y = Date.now();
|
|
12541
|
-
return this._pcTraceId =
|
|
12541
|
+
return this._pcTraceId = x, this.setConnected(!0), this._publishingTracks = this.rts.getPublishTrackInfoList(), h && (yield this.publishAdd(
|
|
12542
12542
|
e,
|
|
12543
12543
|
h,
|
|
12544
12544
|
t,
|
|
@@ -12546,26 +12546,26 @@ const xe = (Le = class extends we {
|
|
|
12546
12546
|
vMsid: k.VideoSmall
|
|
12547
12547
|
},
|
|
12548
12548
|
i
|
|
12549
|
-
),
|
|
12549
|
+
), p = !1, l = k.VideoSmall), g && (yield this.publishAdd(
|
|
12550
12550
|
e,
|
|
12551
|
-
|
|
12551
|
+
g,
|
|
12552
12552
|
t,
|
|
12553
12553
|
{
|
|
12554
12554
|
vMsid: k.Screen
|
|
12555
12555
|
},
|
|
12556
12556
|
i
|
|
12557
|
-
),
|
|
12557
|
+
), p = !1, l = k.Screen), yield this.waitPublishSender(e, p, l), this.slsReporter.reportPublishFirstPacket(
|
|
12558
12558
|
i,
|
|
12559
12559
|
t,
|
|
12560
12560
|
v,
|
|
12561
12561
|
y,
|
|
12562
12562
|
this._localJoinTime,
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12563
|
+
p ? k.Audio : f.vMsid,
|
|
12564
|
+
x || "",
|
|
12565
|
+
x || "",
|
|
12566
12566
|
s
|
|
12567
12567
|
), {
|
|
12568
|
-
traceId:
|
|
12568
|
+
traceId: x,
|
|
12569
12569
|
l1ip: o
|
|
12570
12570
|
};
|
|
12571
12571
|
} catch (y) {
|
|
@@ -12577,7 +12577,7 @@ const xe = (Le = class extends we {
|
|
|
12577
12577
|
return w(this, null, function* () {
|
|
12578
12578
|
const s = (a, c) => {
|
|
12579
12579
|
let o = 0;
|
|
12580
|
-
const u = () => (t ? this.rts.getPublishAudioStats(e, i) : this.rts.getPublishVideoStats(e, i)).then((
|
|
12580
|
+
const u = () => (t ? this.rts.getPublishAudioStats(e, i) : this.rts.getPublishVideoStats(e, i)).then((g) => !(g.bytesSent > 0) && o < a ? (o++, new Promise((f) => setTimeout(() => f(u()), c))) : Promise.resolve());
|
|
12581
12581
|
return u();
|
|
12582
12582
|
};
|
|
12583
12583
|
return Promise.race([vt(1e3), s(5, 100)]).catch(() => {
|
|
@@ -12594,10 +12594,10 @@ const xe = (Le = class extends we {
|
|
|
12594
12594
|
return yield this.rts.getPublishAudioStats(e, t);
|
|
12595
12595
|
});
|
|
12596
12596
|
}
|
|
12597
|
-
publishAdd(u, h,
|
|
12597
|
+
publishAdd(u, h, g, d) {
|
|
12598
12598
|
return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = st.MANUAL) {
|
|
12599
|
-
var l,
|
|
12600
|
-
const f = Date.now(),
|
|
12599
|
+
var l, x, v, S, b, y, E, I;
|
|
12600
|
+
const f = Date.now(), p = this.getPubMsid(t, s);
|
|
12601
12601
|
try {
|
|
12602
12602
|
const A = yield Oa(
|
|
12603
12603
|
(C) => w(this, null, function* () {
|
|
@@ -12606,7 +12606,7 @@ const xe = (Le = class extends we {
|
|
|
12606
12606
|
url: e,
|
|
12607
12607
|
stream: t,
|
|
12608
12608
|
updateSourceStream: !1
|
|
12609
|
-
},
|
|
12609
|
+
}, p)
|
|
12610
12610
|
])) : Promise.reject(new V(U.ERR_INNER, "rts not connected"));
|
|
12611
12611
|
}),
|
|
12612
12612
|
za,
|
|
@@ -12619,10 +12619,10 @@ const xe = (Le = class extends we {
|
|
|
12619
12619
|
!1,
|
|
12620
12620
|
e,
|
|
12621
12621
|
i,
|
|
12622
|
-
((l =
|
|
12623
|
-
((
|
|
12624
|
-
((v =
|
|
12625
|
-
((
|
|
12622
|
+
((l = p.vMsid) == null ? void 0 : l[0]) === k.VideoLarge,
|
|
12623
|
+
((x = p.vMsid) == null ? void 0 : x[0]) === k.VideoSmall,
|
|
12624
|
+
((v = p.vMsid) == null ? void 0 : v[0]) === k.Screen,
|
|
12625
|
+
((S = p.aMsid) == null ? void 0 : S[0]) === k.Audio,
|
|
12626
12626
|
0,
|
|
12627
12627
|
this.pcTraceId,
|
|
12628
12628
|
L.traceId || "",
|
|
@@ -12644,10 +12644,10 @@ const xe = (Le = class extends we {
|
|
|
12644
12644
|
!1,
|
|
12645
12645
|
e,
|
|
12646
12646
|
i,
|
|
12647
|
-
((b =
|
|
12648
|
-
((y =
|
|
12649
|
-
((E =
|
|
12650
|
-
((I =
|
|
12647
|
+
((b = p.vMsid) == null ? void 0 : b[0]) === k.VideoLarge,
|
|
12648
|
+
((y = p.vMsid) == null ? void 0 : y[0]) === k.VideoSmall,
|
|
12649
|
+
((E = p.vMsid) == null ? void 0 : E[0]) === k.Screen,
|
|
12650
|
+
((I = p.aMsid) == null ? void 0 : I[0]) === k.Audio,
|
|
12651
12651
|
(A == null ? void 0 : A.errorCode) || -1,
|
|
12652
12652
|
this.pcTraceId,
|
|
12653
12653
|
"",
|
|
@@ -12659,9 +12659,9 @@ const xe = (Le = class extends we {
|
|
|
12659
12659
|
}
|
|
12660
12660
|
publishDelete(e, t) {
|
|
12661
12661
|
return w(this, null, function* () {
|
|
12662
|
-
var u, h,
|
|
12662
|
+
var u, h, g, d, f, p, l, x;
|
|
12663
12663
|
yield this.dcConnectingPromise;
|
|
12664
|
-
const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === k.Audio)) == null ? void 0 : h.msid, s = (d = (
|
|
12664
|
+
const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === k.Audio)) == null ? void 0 : h.msid, s = (d = (g = this.publishingTracks) == null ? void 0 : g.find(({ msid: v }) => v === k.VideoLarge)) == null ? void 0 : d.msid, a = (p = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === k.Screen)) == null ? void 0 : p.msid, c = [];
|
|
12665
12665
|
t.screen && a ? c.push(a) : t.video && c.push(t.vMsid || s);
|
|
12666
12666
|
const o = [];
|
|
12667
12667
|
t.audio && i && o.push(i), O.event(Le.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
|
|
@@ -12673,7 +12673,7 @@ const xe = (Le = class extends we {
|
|
|
12673
12673
|
vMsid: c
|
|
12674
12674
|
}
|
|
12675
12675
|
])) || [];
|
|
12676
|
-
return O.event(Le.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((
|
|
12676
|
+
return O.event(Le.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((x = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : x.trackId) || "";
|
|
12677
12677
|
} catch (v) {
|
|
12678
12678
|
throw V.fromRtsError(v);
|
|
12679
12679
|
}
|
|
@@ -12755,12 +12755,16 @@ const xe = (Le = class extends we {
|
|
|
12755
12755
|
}
|
|
12756
12756
|
httpSubscribe(e) {
|
|
12757
12757
|
return w(this, null, function* () {
|
|
12758
|
-
var c, o;
|
|
12758
|
+
var c, o, u, h, g, d;
|
|
12759
12759
|
const { remoteUser: t, options: i } = e;
|
|
12760
12760
|
let s = t.streamUrl;
|
|
12761
12761
|
i.video || i.screen ? i != null && i.audio || (s += "@subaudio=no") : s += "@subvideo=no";
|
|
12762
12762
|
const a = this.getSubConfig(t.streamInfo, i);
|
|
12763
|
-
this.encodedInsertableStreams && (a.encodedInsertableStreams = !0), (o = (c = this.parameter) == null ? void 0 : c.net) != null && o.useTCP && (a.tcpOnly = !0),
|
|
12763
|
+
if (this.encodedInsertableStreams && (a.encodedInsertableStreams = !0), (o = (c = this.parameter) == null ? void 0 : c.net) != null && o.useTCP && (a.tcpOnly = !0), (h = (u = this.parameter) == null ? void 0 : u.net) != null && h.mediaTimeout) {
|
|
12764
|
+
const f = (d = (g = this.parameter) == null ? void 0 : g.net) == null ? void 0 : d.mediaTimeout;
|
|
12765
|
+
f > 1e3 && f < 1e5 && (a.mediaTimeout = f);
|
|
12766
|
+
}
|
|
12767
|
+
a.beforeRetry = (f) => w(this, null, function* () {
|
|
12764
12768
|
this._rtsReconnecting = !0;
|
|
12765
12769
|
try {
|
|
12766
12770
|
this.emit(
|
|
@@ -12768,32 +12772,32 @@ const xe = (Le = class extends we {
|
|
|
12768
12772
|
"subscribe"
|
|
12769
12773
|
/* SUBSCRIBE */
|
|
12770
12774
|
);
|
|
12771
|
-
} catch (
|
|
12775
|
+
} catch (p) {
|
|
12772
12776
|
}
|
|
12773
12777
|
if (this._publishingTracks = [], this.subscribeRetryOptionsHook) {
|
|
12774
|
-
const
|
|
12775
|
-
if (
|
|
12776
|
-
let
|
|
12777
|
-
i.video || i.screen ? i != null && i.audio || (
|
|
12778
|
-
const
|
|
12779
|
-
|
|
12780
|
-
|
|
12778
|
+
const p = this.subscribeRetryOptionsHook();
|
|
12779
|
+
if (p) {
|
|
12780
|
+
let l = t.streamUrl;
|
|
12781
|
+
i.video || i.screen ? i != null && i.audio || (l += "@subaudio=no") : l += "@subvideo=no", f.url = l;
|
|
12782
|
+
const x = this.getSubConfig(
|
|
12783
|
+
p.remoteUser.streamInfo,
|
|
12784
|
+
p.options
|
|
12781
12785
|
);
|
|
12782
|
-
|
|
12786
|
+
x.aMsid && (f.aMsid = x.aMsid), x.vMsid && (f.vMsid = x.vMsid);
|
|
12783
12787
|
} else
|
|
12784
12788
|
return;
|
|
12785
12789
|
}
|
|
12786
|
-
return
|
|
12790
|
+
return f;
|
|
12787
12791
|
}), this._rtsPeerConnectionType = "subscribe";
|
|
12788
12792
|
try {
|
|
12789
12793
|
this.startConnect();
|
|
12790
|
-
const
|
|
12791
|
-
return this._pcTraceId =
|
|
12792
|
-
traceId:
|
|
12793
|
-
stream:
|
|
12794
|
+
const f = yield this.rts.subscribe(s, a);
|
|
12795
|
+
return this._pcTraceId = f.traceId, this.setConnected(!0), {
|
|
12796
|
+
traceId: f.traceId,
|
|
12797
|
+
stream: f
|
|
12794
12798
|
};
|
|
12795
|
-
} catch (
|
|
12796
|
-
throw this.setConnected(!1), this.emit("disconnected"), V.fromRtsError(
|
|
12799
|
+
} catch (f) {
|
|
12800
|
+
throw this.setConnected(!1), this.emit("disconnected"), V.fromRtsError(f);
|
|
12797
12801
|
}
|
|
12798
12802
|
});
|
|
12799
12803
|
}
|
|
@@ -12809,13 +12813,13 @@ const xe = (Le = class extends we {
|
|
|
12809
12813
|
});
|
|
12810
12814
|
try {
|
|
12811
12815
|
return (yield Oa(
|
|
12812
|
-
(
|
|
12813
|
-
return yield this.dcConnectingPromise,
|
|
12816
|
+
(g) => w(this, null, function* () {
|
|
12817
|
+
return yield this.dcConnectingPromise, g > 0 && O.event(`[${Le.logName}]`, `subscribeAdd retry times: ${g}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
|
|
12814
12818
|
}),
|
|
12815
12819
|
za,
|
|
12816
12820
|
0,
|
|
12817
12821
|
// 仅超时重试
|
|
12818
|
-
(
|
|
12822
|
+
(g) => (g == null ? void 0 : g.errorCode) === 15006
|
|
12819
12823
|
))[0];
|
|
12820
12824
|
} catch (h) {
|
|
12821
12825
|
if (((u = (o = (c = (a = h == null ? void 0 : h.extraInfo) == null ? void 0 : a.parsedData) == null ? void 0 : c.streams) == null ? void 0 : o[0]) == null ? void 0 : u.res_code) === 508)
|
|
@@ -12894,8 +12898,8 @@ const xe = (Le = class extends we {
|
|
|
12894
12898
|
let o = "", u;
|
|
12895
12899
|
if (this.connecting && (yield this.connectingPromise), this.connected) {
|
|
12896
12900
|
yield this.dcConnectingPromise;
|
|
12897
|
-
let h = !1,
|
|
12898
|
-
const { audio: d, video: f, videoSmall:
|
|
12901
|
+
let h = !1, g;
|
|
12902
|
+
const { audio: d, video: f, videoSmall: p, screen: l } = this.localStreamManager.publishStreams;
|
|
12899
12903
|
d && (o = yield this.publishAdd(
|
|
12900
12904
|
e,
|
|
12901
12905
|
d,
|
|
@@ -12904,7 +12908,7 @@ const xe = (Le = class extends we {
|
|
|
12904
12908
|
aMsid: k.Audio
|
|
12905
12909
|
},
|
|
12906
12910
|
i
|
|
12907
|
-
), h = !0,
|
|
12911
|
+
), h = !0, g = k.Audio, yield vt(100)), f && (o = yield this.publishAdd(
|
|
12908
12912
|
e,
|
|
12909
12913
|
f,
|
|
12910
12914
|
t,
|
|
@@ -12912,15 +12916,15 @@ const xe = (Le = class extends we {
|
|
|
12912
12916
|
vMsid: k.VideoLarge
|
|
12913
12917
|
},
|
|
12914
12918
|
i
|
|
12915
|
-
), h = !1,
|
|
12919
|
+
), h = !1, g = k.VideoLarge, yield vt(100)), p && (o = yield this.publishAdd(
|
|
12916
12920
|
e,
|
|
12917
|
-
|
|
12921
|
+
p,
|
|
12918
12922
|
t,
|
|
12919
12923
|
{
|
|
12920
12924
|
vMsid: k.VideoSmall
|
|
12921
12925
|
},
|
|
12922
12926
|
i
|
|
12923
|
-
), h = !1,
|
|
12927
|
+
), h = !1, g = k.VideoSmall, yield vt(100)), l && (o = yield this.publishAdd(
|
|
12924
12928
|
e,
|
|
12925
12929
|
l,
|
|
12926
12930
|
t,
|
|
@@ -12929,7 +12933,7 @@ const xe = (Le = class extends we {
|
|
|
12929
12933
|
vMsid: k.Screen
|
|
12930
12934
|
},
|
|
12931
12935
|
i
|
|
12932
|
-
), h = !1,
|
|
12936
|
+
), h = !1, g = k.Screen), g && (yield this.waitPublishSender(e, h, g));
|
|
12933
12937
|
} else {
|
|
12934
12938
|
const h = yield this.httpPublish(e, t, i, s);
|
|
12935
12939
|
o = h.traceId, u = h.l1ip;
|
|
@@ -12950,25 +12954,25 @@ const xe = (Le = class extends we {
|
|
|
12950
12954
|
"subscribe error, video and screen cannot be subscribed at the same time"
|
|
12951
12955
|
);
|
|
12952
12956
|
this.connecting && (yield this.connectingPromise);
|
|
12953
|
-
let h,
|
|
12954
|
-
this.connected ? (
|
|
12957
|
+
let h, g = Date.now();
|
|
12958
|
+
this.connected ? (g = Date.now(), h = yield this.subscribeAdd(e)) : (c = !0, h = yield this.httpSubscribe(e));
|
|
12955
12959
|
const d = Date.now();
|
|
12956
|
-
let f = k.VideoLarge,
|
|
12960
|
+
let f = k.VideoLarge, p = o.video || o.screen, l = o.audio;
|
|
12957
12961
|
o.video && o.vMsid ? f = o.vMsid : o.screen && (f = k.Screen);
|
|
12958
|
-
let
|
|
12962
|
+
let x = 0, v = 0, S = 0;
|
|
12959
12963
|
const y = ((E, I) => {
|
|
12960
12964
|
let A = 0;
|
|
12961
12965
|
const C = () => {
|
|
12962
12966
|
let L;
|
|
12963
|
-
return l && !
|
|
12967
|
+
return l && !x && (L = this.rts.getSubscribeAudioStats(u.streamUrl).then((_) => {
|
|
12964
12968
|
if (_.packetsReceived > 0)
|
|
12965
|
-
|
|
12966
|
-
else if (!
|
|
12969
|
+
x = Date.now();
|
|
12970
|
+
else if (!p)
|
|
12967
12971
|
return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : !1;
|
|
12968
12972
|
return !0;
|
|
12969
|
-
})),
|
|
12973
|
+
})), p && !S && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((_) => {
|
|
12970
12974
|
if (_.packetsReceived > 0 && (v = Date.now()), _.framesDecoded > 0)
|
|
12971
|
-
|
|
12975
|
+
S = Date.now();
|
|
12972
12976
|
else
|
|
12973
12977
|
return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : (O.error(`[${Le.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
|
|
12974
12978
|
return !0;
|
|
@@ -12983,39 +12987,39 @@ const xe = (Le = class extends we {
|
|
|
12983
12987
|
s,
|
|
12984
12988
|
f,
|
|
12985
12989
|
{
|
|
12986
|
-
fprt: v -
|
|
12987
|
-
ifsprtc:
|
|
12990
|
+
fprt: v - g,
|
|
12991
|
+
ifsprtc: S ? S - g : 0,
|
|
12988
12992
|
ajsub: t === le.Join ? 1 : 0,
|
|
12989
12993
|
pctid: this.pcTraceId,
|
|
12990
12994
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
12991
|
-
sstc: d -
|
|
12995
|
+
sstc: d - g
|
|
12992
12996
|
}
|
|
12993
|
-
),
|
|
12997
|
+
), S && this.slsReporter.reportSubscribeFirstFrame(
|
|
12994
12998
|
t === le.Resume,
|
|
12995
12999
|
i,
|
|
12996
13000
|
s,
|
|
12997
13001
|
f,
|
|
12998
13002
|
{
|
|
12999
|
-
fvfrt:
|
|
13000
|
-
fp2fftc:
|
|
13003
|
+
fvfrt: S - g,
|
|
13004
|
+
fp2fftc: S - v,
|
|
13001
13005
|
ajsub: t === le.Join ? 1 : 0,
|
|
13002
|
-
tffrtc: t === le.Join ?
|
|
13006
|
+
tffrtc: t === le.Join ? S - this.localJoinTime : S - a,
|
|
13003
13007
|
pctid: this.pcTraceId,
|
|
13004
13008
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
13005
|
-
fvfdtc:
|
|
13009
|
+
fvfdtc: S - g
|
|
13006
13010
|
}
|
|
13007
|
-
),
|
|
13011
|
+
), x && this.slsReporter.reportSubscribeFirstPacket(
|
|
13008
13012
|
t === le.Resume,
|
|
13009
13013
|
i,
|
|
13010
13014
|
s,
|
|
13011
13015
|
k.Audio,
|
|
13012
13016
|
{
|
|
13013
|
-
fprt:
|
|
13014
|
-
ifsprtc:
|
|
13017
|
+
fprt: x - g,
|
|
13018
|
+
ifsprtc: x - g,
|
|
13015
13019
|
ajsub: t === le.Join ? 1 : 0,
|
|
13016
13020
|
pctid: this.pcTraceId,
|
|
13017
13021
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
13018
|
-
sstc: d -
|
|
13022
|
+
sstc: d - g
|
|
13019
13023
|
}
|
|
13020
13024
|
);
|
|
13021
13025
|
}), c && (yield Promise.race([y, vt(1500)])), h;
|
|
@@ -13205,9 +13209,9 @@ class Wa extends we {
|
|
|
13205
13209
|
}
|
|
13206
13210
|
updateSource(e, t, i) {
|
|
13207
13211
|
return w(this, null, function* () {
|
|
13208
|
-
var c, o, u, h,
|
|
13212
|
+
var c, o, u, h, g, d;
|
|
13209
13213
|
const { videoTrack: s, audioTrack: a } = e;
|
|
13210
|
-
s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), a && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === Ee.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), a && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (
|
|
13214
|
+
s && ((c = this.originVideoTrack) == null || c.removeEventListener("ended", this.onVideoTrackEnded)), a && ((o = this.originAudioTrack) == null || o.removeEventListener("ended", this.onAudioTrackEnded)), this.type === Ee.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((u = this.originVideoTrack) == null || u.stop()), a && ((h = this.originAudioTrack) == null || h.stop())), s && (this.originVideoTrack = s, (g = this.originVideoTrack) == null || g.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || $t.Camera, this.updateVideoTrack(s)), a && (this.originAudioTrack = a, (d = this.originAudioTrack) == null || d.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || mi.Microphone, this.updateAudioTrack(a));
|
|
13211
13215
|
});
|
|
13212
13216
|
}
|
|
13213
13217
|
get currentProfile() {
|
|
@@ -13287,15 +13291,15 @@ class Wa extends we {
|
|
|
13287
13291
|
}
|
|
13288
13292
|
process(e) {
|
|
13289
13293
|
return w(this, null, function* () {
|
|
13290
|
-
var t, i, s, a, c, o, u, h,
|
|
13294
|
+
var t, i, s, a, c, o, u, h, g, d, f, p;
|
|
13291
13295
|
this._targetAudioTrack = this.originAudioTrack, this._targetVideoTrack = this.originVideoTrack;
|
|
13292
13296
|
for (const l of this.plugins)
|
|
13293
13297
|
try {
|
|
13294
13298
|
yield l.execute(this, e);
|
|
13295
|
-
} catch (
|
|
13296
|
-
console.error(`error in plugin-${l.name}, error: ${
|
|
13299
|
+
} catch (x) {
|
|
13300
|
+
console.error(`error in plugin-${l.name}, error: ${x}`);
|
|
13297
13301
|
}
|
|
13298
|
-
this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield Yt(this._targetVideoTrack), this.setVideoMuted(this._videoMuted), (s = this.profileManager) == null || s.setVideoProfile(this.originVideoTrack, this._publishVideoStream, !0), (a = this.profileManager) == null || a.setContentHint(this._targetVideoTrack), this.previewStream ? (c = this.previewStream) == null || c.mergeStream(this._publishVideoStream) : this._previewStream = yield Yt(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 Yt(this._targetDualVideoTrack), this._videoMuted ? this._publishDualVideoStream.disableVideo() : this._publishDualVideoStream.enableVideo()) : this._publishDualVideoStream = void 0, this._targetAudioTrack ? ((d = (
|
|
13302
|
+
this._targetVideoTrack ? ((i = (t = this._publishVideoStream) == null ? void 0 : t.videoTrack) == null ? void 0 : i.id) !== this._targetVideoTrack.id && (this._publishVideoStream = yield Yt(this._targetVideoTrack), this.setVideoMuted(this._videoMuted), (s = this.profileManager) == null || s.setVideoProfile(this.originVideoTrack, this._publishVideoStream, !0), (a = this.profileManager) == null || a.setContentHint(this._targetVideoTrack), this.previewStream ? (c = this.previewStream) == null || c.mergeStream(this._publishVideoStream) : this._previewStream = yield Yt(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 Yt(this._targetDualVideoTrack), this._videoMuted ? this._publishDualVideoStream.disableVideo() : this._publishDualVideoStream.enableVideo()) : this._publishDualVideoStream = void 0, this._targetAudioTrack ? ((d = (g = this._publishAudioStream) == null ? void 0 : g.audioTrack) == null ? void 0 : d.id) !== this._targetAudioTrack.id && (this._publishAudioStream = yield Yt(this._targetAudioTrack), this.setAudioMuted(this._audioMuted), this.previewStream ? (f = this.previewStream) == null || f.mergeStream(this._publishAudioStream) : this._previewStream = yield Yt(this._targetAudioTrack)) : (this._publishAudioStream = void 0, (p = this.previewStream) == null || p.deleteTracks({ audio: !0 }));
|
|
13299
13303
|
});
|
|
13300
13304
|
}
|
|
13301
13305
|
/**
|
|
@@ -13397,7 +13401,7 @@ const Xe = (Bt = class extends we {
|
|
|
13397
13401
|
m(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13398
13402
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13399
13403
|
const i = (s) => w(this, null, function* () {
|
|
13400
|
-
if (O.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.
|
|
13404
|
+
if (O.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.7-beta.0")) {
|
|
13401
13405
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13402
13406
|
return;
|
|
13403
13407
|
}
|
|
@@ -13488,7 +13492,7 @@ const Xe = (Bt = class extends we {
|
|
|
13488
13492
|
var e, t, i, s;
|
|
13489
13493
|
if ((e = this.cameraStreamInfo.cameraVideoConstraints) != null && e.deviceId) {
|
|
13490
13494
|
let a = (t = this.cameraStreamInfo.cameraVideoConstraints) == null ? void 0 : t.deviceId;
|
|
13491
|
-
const c = yield
|
|
13495
|
+
const c = yield ce.getCameraList();
|
|
13492
13496
|
c.find((o) => o.deviceId === a) || (a = (s = (i = c.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? s : ""), this.cameraStreamInfo.cameraVideoConstraints.deviceId = a;
|
|
13493
13497
|
}
|
|
13494
13498
|
});
|
|
@@ -13499,14 +13503,14 @@ const Xe = (Bt = class extends we {
|
|
|
13499
13503
|
var e, t, i, s;
|
|
13500
13504
|
if ((e = this.cameraStreamInfo.micAudioConstraints) != null && e.deviceId) {
|
|
13501
13505
|
let a = (t = this.cameraStreamInfo.micAudioConstraints) == null ? void 0 : t.deviceId;
|
|
13502
|
-
const c = yield
|
|
13506
|
+
const c = yield ce.getMicList();
|
|
13503
13507
|
c.find((o) => o.deviceId === a) || (a = (s = (i = c.find((o) => !!o.deviceId)) == null ? void 0 : i.deviceId) != null ? s : ""), this.cameraStreamInfo.micAudioConstraints.deviceId = a;
|
|
13504
13508
|
}
|
|
13505
13509
|
});
|
|
13506
13510
|
}
|
|
13507
13511
|
createLocalStream(e) {
|
|
13508
13512
|
return w(this, null, function* () {
|
|
13509
|
-
var
|
|
13513
|
+
var g;
|
|
13510
13514
|
const { screen: t, mediaStream: i, videoProfile: s, screenProfile: a } = e;
|
|
13511
13515
|
let { video: c, audio: o } = e;
|
|
13512
13516
|
const u = K0(e);
|
|
@@ -13515,14 +13519,14 @@ const Xe = (Bt = class extends we {
|
|
|
13515
13519
|
i || (c === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), c = Y({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof c == "object" && (yield this.setAvailableCameraDeviceId(), c = Y(Y({}, c), this.cameraStreamInfo.cameraVideoConstraints)), o === void 0 && this.audioCaptureDisabled ? o = !1 : o && (o === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), o = Y({}, this.cameraStreamInfo.micAudioConstraints)) : typeof o == "object" && (yield this.setAvailableMicrophoneDeviceId(), o = Y(Y({}, o), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
|
|
13516
13520
|
const d = Date.now();
|
|
13517
13521
|
try {
|
|
13518
|
-
h = yield
|
|
13522
|
+
h = yield ce.createStream({
|
|
13519
13523
|
audio: o,
|
|
13520
13524
|
video: c,
|
|
13521
13525
|
screen: t,
|
|
13522
13526
|
custom: !!i,
|
|
13523
13527
|
mediaStream: i,
|
|
13524
13528
|
skipProfile: !0
|
|
13525
|
-
}), o && !i && this.slsReporter.reportAudio(null, Date.now() - d, ((
|
|
13529
|
+
}), o && !i && this.slsReporter.reportAudio(null, Date.now() - d, ((g = h == null ? void 0 : h.audioTrack) == null ? void 0 : g.label) || ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d);
|
|
13526
13530
|
} catch (f) {
|
|
13527
13531
|
throw o && !i && this.slsReporter.reportAudio(f, Date.now() - d, ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - d), f;
|
|
13528
13532
|
}
|
|
@@ -13533,7 +13537,7 @@ const Xe = (Bt = class extends we {
|
|
|
13533
13537
|
f && (yield h.setAudioProfile(f));
|
|
13534
13538
|
}
|
|
13535
13539
|
}
|
|
13536
|
-
return
|
|
13540
|
+
return ce.SystenUtil.isIos && ce.SystenUtil.compareVersion("15.1") && !ce.SystenUtil.compareVersion("15.2") && (yield vt(1e3)), yield this.updateStreams(), h;
|
|
13537
13541
|
});
|
|
13538
13542
|
}
|
|
13539
13543
|
stopLocalStream(e) {
|
|
@@ -13558,14 +13562,14 @@ const Xe = (Bt = class extends we {
|
|
|
13558
13562
|
}
|
|
13559
13563
|
createHTTPPublishStream() {
|
|
13560
13564
|
return w(this, null, function* () {
|
|
13561
|
-
var o, u, h,
|
|
13565
|
+
var o, u, h, g;
|
|
13562
13566
|
let e, t = !1, i, s, a;
|
|
13563
13567
|
const c = yield this.publishStreams;
|
|
13564
13568
|
try {
|
|
13565
13569
|
if (!c.audio && !c.video && !c.videoSmall && !c.screen)
|
|
13566
13570
|
throw O.error(`[${Bt.logName}]`, "no tracks founded"), new V(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
|
|
13567
13571
|
const d = new MediaStream();
|
|
13568
|
-
(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, a = c.screen) : (h = c.screen) != null && h.videoTrack && (i = k.Screen, d.addTrack((
|
|
13572
|
+
(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, a = c.screen) : (h = c.screen) != null && h.videoTrack && (i = k.Screen, d.addTrack((g = c.screen) == null ? void 0 : g.videoTrack), t = !0), e = yield bn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
|
|
13569
13573
|
} catch (d) {
|
|
13570
13574
|
}
|
|
13571
13575
|
return { publishStream: e, videoSmallStream: s, screenStream: a, vMsid: i };
|
|
@@ -13713,9 +13717,9 @@ class fc extends Kt {
|
|
|
13713
13717
|
return;
|
|
13714
13718
|
}
|
|
13715
13719
|
const t = new MediaStreamTrackProcessor({ track: e.originVideoTrack }), i = new MediaStreamTrackGenerator({ kind: "video" }), s = new MediaStream([i]), a = this, c = new TransformStream({
|
|
13716
|
-
transform(
|
|
13720
|
+
transform(g, d) {
|
|
13717
13721
|
return w(this, null, function* () {
|
|
13718
|
-
const f = yield a.handleFrame(
|
|
13722
|
+
const f = yield a.handleFrame(g, e);
|
|
13719
13723
|
yield d.enqueue(f), f == null || f.close();
|
|
13720
13724
|
});
|
|
13721
13725
|
}
|
|
@@ -14470,8 +14474,8 @@ class Te extends we {
|
|
|
14470
14474
|
const s = Fr(t);
|
|
14471
14475
|
s.length !== 0 && (s.forEach((o) => {
|
|
14472
14476
|
var u;
|
|
14473
|
-
(u = this.publisher) == null || u.resetElement(o), Object.values(this.usersViewMap).forEach(({ cameraViews: h = [], screenViews:
|
|
14474
|
-
h.includes(o) && h.splice(h.indexOf(o), 1),
|
|
14477
|
+
(u = this.publisher) == null || u.resetElement(o), Object.values(this.usersViewMap).forEach(({ cameraViews: h = [], screenViews: g = [] }) => {
|
|
14478
|
+
h.includes(o) && h.splice(h.indexOf(o), 1), g.includes(o) && g.splice(g.indexOf(o), 1);
|
|
14475
14479
|
});
|
|
14476
14480
|
}), (c = this.userMap[e]) == null || c.setViewConfig(s, i));
|
|
14477
14481
|
}
|
|
@@ -14514,8 +14518,8 @@ class Te extends we {
|
|
|
14514
14518
|
let u = this.getRemoteUser(t);
|
|
14515
14519
|
if (!u)
|
|
14516
14520
|
return;
|
|
14517
|
-
const h = u.streamInfo.audioTrackInfo,
|
|
14518
|
-
u.updateRemoteTracks(i, o, a, c), u.updateSubscribe(le.Publish), (h !== u.streamInfo.audioTrackInfo ||
|
|
14521
|
+
const h = u.streamInfo.audioTrackInfo, g = u.streamInfo.videoTrackInfo;
|
|
14522
|
+
u.updateRemoteTracks(i, o, a, c), u.updateSubscribe(le.Publish), (h !== u.streamInfo.audioTrackInfo || g !== u.streamInfo.videoTrackInfo) && this.emit(
|
|
14519
14523
|
"remoteTrackAvailableChange",
|
|
14520
14524
|
t,
|
|
14521
14525
|
u.streamInfo.audioTrackInfo,
|
|
@@ -14609,7 +14613,7 @@ class Te extends we {
|
|
|
14609
14613
|
playoutVolume: this.playoutVolume,
|
|
14610
14614
|
parameter: this.parameter
|
|
14611
14615
|
});
|
|
14612
|
-
return s.on(Ne.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(
|
|
14616
|
+
return s.on(Ne.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(oe.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(oe.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (a, c, o, u) => {
|
|
14613
14617
|
this.emit("audioSubscribeStateChanged", a, c, o, u, this.channel || "");
|
|
14614
14618
|
}), s.on("videoSubscribeStateChanged", (a, c, o, u) => {
|
|
14615
14619
|
this.emit("videoSubscribeStateChanged", a, c, o, u, this.channel || "");
|
|
@@ -14639,20 +14643,20 @@ class Te extends we {
|
|
|
14639
14643
|
* @param {string} userId
|
|
14640
14644
|
*/
|
|
14641
14645
|
onRemoteDeviceStatusChange(e, t) {
|
|
14642
|
-
e ===
|
|
14646
|
+
e === oe.MuteAudio ? this.emit("userAudioMuted", t, !0) : e === oe.UnmuteAudio ? this.emit("userAudioMuted", t, !1) : e === oe.MuteVideo ? this.emit("userVideoMuted", t, !0) : e === oe.UnmuteVideo ? this.emit("userVideoMuted", t, !1) : e === oe.MuteScreen ? this.emit("userScreenMuted", t, !0) : e === oe.UnmuteScreen && this.emit("userScreenMuted", t, !1);
|
|
14643
14647
|
}
|
|
14644
14648
|
/**
|
|
14645
14649
|
* 远端流数据采集上报
|
|
14646
14650
|
* @param {any} stat
|
|
14647
14651
|
*/
|
|
14648
14652
|
onRemoteStatReport(e, t, i) {
|
|
14649
|
-
this.emit(
|
|
14653
|
+
this.emit(oe.PullStreamStats, e, t, i);
|
|
14650
14654
|
}
|
|
14651
14655
|
/**
|
|
14652
14656
|
* rts 单 PC 订阅超限
|
|
14653
14657
|
*/
|
|
14654
14658
|
onSubscribeExceeds(e, t) {
|
|
14655
|
-
this.emit(
|
|
14659
|
+
this.emit(oe.RtsSubscribeExceeds, e, t);
|
|
14656
14660
|
}
|
|
14657
14661
|
removeLeftUser(e) {
|
|
14658
14662
|
return w(this, null, function* () {
|
|
@@ -15122,7 +15126,7 @@ class Mc {
|
|
|
15122
15126
|
return this.sourceType && ei[this.sourceType] ? s.sourcetype = ei[this.sourceType] : s.sourcetype = ei[si.LiveTranscodingCamera], this.segmentType && i === Yr.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = vi.LiveTranscodingNoBody, s;
|
|
15123
15127
|
}
|
|
15124
15128
|
}
|
|
15125
|
-
const { BrowserUtil: kr, SystenUtil: Ja } =
|
|
15129
|
+
const { BrowserUtil: kr, SystenUtil: Ja } = ce;
|
|
15126
15130
|
class Ga {
|
|
15127
15131
|
constructor() {
|
|
15128
15132
|
m(this, "tracker");
|
|
@@ -15290,7 +15294,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15290
15294
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15291
15295
|
src: s[0].ssrc || "",
|
|
15292
15296
|
codec: s[0]._codec || ""
|
|
15293
|
-
}, o = [], u = [], h = [],
|
|
15297
|
+
}, o = [], u = [], h = [], g = [], d = [], f = [], p = [], l = [], x = [], v = [], S = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [];
|
|
15294
15298
|
try {
|
|
15295
15299
|
if (s.forEach((R) => {
|
|
15296
15300
|
var F, M, J, j, ue, X;
|
|
@@ -15303,24 +15307,24 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15303
15307
|
const ae = Je(fe($, 8, 2e7), T);
|
|
15304
15308
|
h.push(ae);
|
|
15305
15309
|
const Q = pe(R, "packetsSent"), te = Je(Q, T);
|
|
15306
|
-
|
|
15310
|
+
g.push(te);
|
|
15307
15311
|
const ee = pe(R, "packetsLost"), P = Je(ee, T);
|
|
15308
15312
|
d.push(P);
|
|
15309
15313
|
const N = Rt(ee, Q);
|
|
15310
15314
|
if (f.push(N), a)
|
|
15311
|
-
(M = R._source) != null && M.audioLevel &&
|
|
15315
|
+
(M = R._source) != null && M.audioLevel && p.push(Xa(R._source.audioLevel)), l.push(0);
|
|
15312
15316
|
else {
|
|
15313
|
-
|
|
15317
|
+
x.push(Ya(R, "totalEncodeTime")), v.push(wt((J = R._source) == null ? void 0 : J.framesPerSecond, 100)), S.push(wt((j = R._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(wt(R.framesPerSecond, 100)), y.push(wt((ue = R._source) == null ? void 0 : ue.height, 4400)), E.push(wt((X = R._source) == null ? void 0 : X.width, 7700)), I.push(wt(R.frameHeight, 4400)), A.push(wt(R.frameWidth, 7700));
|
|
15314
15318
|
const Ve = pe(R, "totalPacketSendDelay");
|
|
15315
15319
|
C.push(fe(Ve, 1 / (ee || 1), 2e3));
|
|
15316
15320
|
const ze = pe(R, "qpSum");
|
|
15317
15321
|
L.push(fe(ze, 1 / (R.framesPerSecond || 1), 51)), _.push(0);
|
|
15318
15322
|
}
|
|
15319
|
-
}), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps =
|
|
15323
|
+
}), c.sbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.ps = g.join(","), c.pl = d.join(","), c.plr = f.join(","), a) {
|
|
15320
15324
|
const R = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
15321
|
-
c.ailevel =
|
|
15325
|
+
c.ailevel = p.join(","), c.arpc = l.join(","), c.arsr = R, c.aesr = R, c.publevel = -90, c.rawlevel = -90;
|
|
15322
15326
|
} else
|
|
15323
|
-
c.em =
|
|
15327
|
+
c.em = x.join(","), c.cfps = v.join(","), c.ifps = S.join(","), c.sfps = b.join(","), c.ih = y.join(","), c.iw = E.join(","), c.sh = I.join(","), c.sw = A.join(","), c.sd = C.join(","), c.aqp = L.join(","), c.caf = _.join(","), c.can = _.join(","), c.cav = u.join(","), c.ifimax = _.join(","), c.ifimin = _.join(","), c.efimax = _.join(","), c.efimin = _.join(","), c.sfimax = _.join(","), c.sfimin = _.join(","), c.apsnr = _.join(",");
|
|
15324
15328
|
} catch (R) {
|
|
15325
15329
|
}
|
|
15326
15330
|
this.log({
|
|
@@ -15341,7 +15345,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15341
15345
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15342
15346
|
src: s[0].ssrc || "",
|
|
15343
15347
|
codec: s[0]._codec || ""
|
|
15344
|
-
}, o = [], u = [], h = [],
|
|
15348
|
+
}, o = [], u = [], h = [], g = [], d = [], f = [], p = [], l = [], x = [], v = [], S = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [], R = [], T = [], B = [], $ = [], q = [], G = [], ae = [], Q = [], te = [], ee = [], P = [], N = [], F = [], M = [], J = [];
|
|
15345
15349
|
try {
|
|
15346
15350
|
s.forEach((j) => {
|
|
15347
15351
|
var Qe, Ct;
|
|
@@ -15354,7 +15358,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15354
15358
|
const Ze = Je(fe(Ve, 8, 2e7), ue);
|
|
15355
15359
|
h.push(Ze);
|
|
15356
15360
|
const Se = pe(j, "packetsReceived"), Pe = Je(Se, ue);
|
|
15357
|
-
|
|
15361
|
+
g.push(Pe);
|
|
15358
15362
|
const nt = pe(j, "packetsLost"), Et = Je(nt, ue);
|
|
15359
15363
|
d.push(Et);
|
|
15360
15364
|
const Nt = Rt(nt, Se);
|
|
@@ -15362,13 +15366,13 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15362
15366
|
const At = pe(j, "jitterBufferDelay"), Jt = pe(j, "jitterBufferEmittedCount");
|
|
15363
15367
|
if (j.jitterBufferDelay && j.jitterBufferEmittedCount) {
|
|
15364
15368
|
const lt = fe(At, 1e3 / Jt, 1e4);
|
|
15365
|
-
|
|
15369
|
+
p.push(lt);
|
|
15366
15370
|
} else
|
|
15367
|
-
|
|
15371
|
+
p.push(0);
|
|
15368
15372
|
const _t = pe(j, "fecPacketsReceived");
|
|
15369
15373
|
b.push(Rt(_t, Se));
|
|
15370
15374
|
const ke = pe(j, "retransmittedPacketsReceived"), Ce = Se + nt - ke;
|
|
15371
|
-
if (
|
|
15375
|
+
if (x.push(Rt(Se - ke, Ce)), v.push(Rt(nt, Ce)), l.push(Rt(ke, Ce)), S.push(Ce), M.push(0), J.push(""), a) {
|
|
15372
15376
|
E.push(Xa(j.audioLevel));
|
|
15373
15377
|
const lt = Lc(j, "synthesizedSamplesEvents");
|
|
15374
15378
|
I.push(lt);
|
|
@@ -15396,7 +15400,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15396
15400
|
const Gt = pe(j, "jitterBufferMinimumDelay");
|
|
15397
15401
|
Gt && We ? N.push(fe(Gt, 1e3 / We, 3e4)) : N.push(0);
|
|
15398
15402
|
}
|
|
15399
|
-
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr =
|
|
15403
|
+
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = g.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = p.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = x.join(","), c.basel = v.join(","), c.recoverr = M.join(","), c.alll = v.join(","), c.totalc = S.join(","), a ? (c.er = y.join(","), c.aolevel = E.join(","), c.asrc = C.join(","), c.scnt = I.join(","), c.sdura = A.join(",")) : (c.dm = L.join(","), c.dfps = _.join(","), c.rfps = R.join(","), c.rh = T.join(","), c.rw = B.join(","), c.fpt = J.join(","), c.ns = G.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = M.join(","), c.ofimin = M.join(","), c.dfimax = M.join(","), c.dfimin = M.join(","), c.rfimax = M.join(","), c.rfimin = M.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = P.join(","), c.pdm = N.join(","), c.ofps = F.join(","), c.dfbd = Q.join(","));
|
|
15400
15404
|
} catch (j) {
|
|
15401
15405
|
}
|
|
15402
15406
|
this.log({
|
|
@@ -15415,13 +15419,13 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15415
15419
|
reportNetworkMonitor(n) {
|
|
15416
15420
|
if (n.length <= 0)
|
|
15417
15421
|
return;
|
|
15418
|
-
const e = [], t = [], i = [], s = [], a = [], c = [], o = [], u = [], h = [],
|
|
15419
|
-
n.forEach((f,
|
|
15420
|
-
var
|
|
15422
|
+
const e = [], t = [], i = [], s = [], a = [], c = [], o = [], u = [], h = [], g = [];
|
|
15423
|
+
n.forEach((f, p) => {
|
|
15424
|
+
var x;
|
|
15421
15425
|
if (!f.timestamp)
|
|
15422
15426
|
return;
|
|
15423
|
-
const l = (
|
|
15424
|
-
e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Je(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Je(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0),
|
|
15427
|
+
const l = (x = f._last) != null && x.timestamp ? f.timestamp - f._last.timestamp : 1e3;
|
|
15428
|
+
e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(Je(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(Je(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), p % 5 === 0 && (o.push(""), u.push(""), h.push(""), g.push(""));
|
|
15425
15429
|
});
|
|
15426
15430
|
const d = {
|
|
15427
15431
|
ctm: Math.floor(n[0].timestamp || 0),
|
|
@@ -15431,7 +15435,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15431
15435
|
cpu: o.join(","),
|
|
15432
15436
|
mem: u.join(","),
|
|
15433
15437
|
sysmem: h.join(","),
|
|
15434
|
-
systotalmem:
|
|
15438
|
+
systotalmem: g.join(","),
|
|
15435
15439
|
audioonly: this.engine.isAudioOnly() ? 1 : 0
|
|
15436
15440
|
};
|
|
15437
15441
|
this.log({
|
|
@@ -15453,7 +15457,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15453
15457
|
* @param {string} tid
|
|
15454
15458
|
*/
|
|
15455
15459
|
reportJoin(n, e, t = "") {
|
|
15456
|
-
var
|
|
15460
|
+
var g, d;
|
|
15457
15461
|
const { start: i, rs: s = 0, re: a = 0 } = e, c = Date.now() - i, o = a - s;
|
|
15458
15462
|
let u = 0;
|
|
15459
15463
|
s && (u = s - i);
|
|
@@ -15461,7 +15465,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15461
15465
|
a && (h = a - s), this.log({
|
|
15462
15466
|
evetid: 10010,
|
|
15463
15467
|
args: this.data2String({
|
|
15464
|
-
sesid: ((
|
|
15468
|
+
sesid: ((g = this.authInfo) == null ? void 0 : g.sessionId) || "",
|
|
15465
15469
|
joitm: c,
|
|
15466
15470
|
rslt: n,
|
|
15467
15471
|
gslbtm: 0,
|
|
@@ -15528,7 +15532,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15528
15532
|
* @param {string} tid
|
|
15529
15533
|
* @param {number} pubTime
|
|
15530
15534
|
*/
|
|
15531
|
-
reportPublish(n, e, t, i, s, a, c, o, u, h,
|
|
15535
|
+
reportPublish(n, e, t, i, s, a, c, o, u, h, g) {
|
|
15532
15536
|
this.log({
|
|
15533
15537
|
evetid: n ? 10032 : 10030,
|
|
15534
15538
|
calid: t,
|
|
@@ -15541,7 +15545,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15541
15545
|
isaudio: c ? 1 : 0,
|
|
15542
15546
|
rslt: o,
|
|
15543
15547
|
tid: "123",
|
|
15544
|
-
pubtm: Date.now() -
|
|
15548
|
+
pubtm: Date.now() - g,
|
|
15545
15549
|
pctid: u,
|
|
15546
15550
|
pubtid: h,
|
|
15547
15551
|
isvp: 0,
|
|
@@ -16063,7 +16067,7 @@ const z = (K = class extends we {
|
|
|
16063
16067
|
* 监听 Publisher 事件
|
|
16064
16068
|
*/
|
|
16065
16069
|
addPublisherListeners() {
|
|
16066
|
-
var e, t, i, s, a, c, o, u, h,
|
|
16070
|
+
var e, t, i, s, a, c, o, u, h, g;
|
|
16067
16071
|
(e = this.publisher) == null || e.on(Ne.Local, (d) => {
|
|
16068
16072
|
O.event("[Publisher] Device Status Change", d), this.onLocalDeviceStatusChange(d);
|
|
16069
16073
|
}), (t = this.publisher) == null || t.on(kt.VideoTrackEnded, () => {
|
|
@@ -16089,24 +16093,24 @@ const z = (K = class extends we {
|
|
|
16089
16093
|
);
|
|
16090
16094
|
}), (a = this.publisher) == null || a.on(
|
|
16091
16095
|
"localDeviceException",
|
|
16092
|
-
(d, f,
|
|
16093
|
-
this.emit("localDeviceException", d, f,
|
|
16096
|
+
(d, f, p = "") => {
|
|
16097
|
+
this.emit("localDeviceException", d, f, p);
|
|
16094
16098
|
}
|
|
16095
|
-
), (c = this.publisher) == null || c.on("audioPublishStateChanged", (d, f,
|
|
16099
|
+
), (c = this.publisher) == null || c.on("audioPublishStateChanged", (d, f, p) => {
|
|
16096
16100
|
var l;
|
|
16097
|
-
this.emit("audioPublishStateChanged", d, f,
|
|
16098
|
-
}), (o = this.publisher) == null || o.on("videoPublishStateChanged", (d, f,
|
|
16101
|
+
this.emit("audioPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
|
|
16102
|
+
}), (o = this.publisher) == null || o.on("videoPublishStateChanged", (d, f, p) => {
|
|
16099
16103
|
var l;
|
|
16100
|
-
this.emit("videoPublishStateChanged", d, f,
|
|
16101
|
-
}), (u = this.publisher) == null || u.on("dualStreamPublishStateChanged", (d, f,
|
|
16104
|
+
this.emit("videoPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
|
|
16105
|
+
}), (u = this.publisher) == null || u.on("dualStreamPublishStateChanged", (d, f, p) => {
|
|
16102
16106
|
var l;
|
|
16103
|
-
this.emit("dualStreamPublishStateChanged", d, f,
|
|
16104
|
-
}), (h = this.publisher) == null || h.on("screenPublishStateChanged", (d, f,
|
|
16107
|
+
this.emit("dualStreamPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
|
|
16108
|
+
}), (h = this.publisher) == null || h.on("screenPublishStateChanged", (d, f, p) => {
|
|
16105
16109
|
var l;
|
|
16106
|
-
this.emit("screenSharePublishStateChanged", d, f,
|
|
16107
|
-
}), (
|
|
16110
|
+
this.emit("screenSharePublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
|
|
16111
|
+
}), (g = this.publisher) == null || g.on("dataPublishStateChanged", (d, f, p) => {
|
|
16108
16112
|
var l;
|
|
16109
|
-
this.emit("dataPublishStateChanged", d, f,
|
|
16113
|
+
this.emit("dataPublishStateChanged", d, f, p, (l = this.channel) != null ? l : "");
|
|
16110
16114
|
});
|
|
16111
16115
|
}
|
|
16112
16116
|
occurError(e, t) {
|
|
@@ -16235,7 +16239,7 @@ const z = (K = class extends we {
|
|
|
16235
16239
|
const i = t.userid;
|
|
16236
16240
|
if (i) {
|
|
16237
16241
|
const s = this.bizControl.addUser(i, t.displayname, le.Join);
|
|
16238
|
-
O.event(`[${K.logName}]`,
|
|
16242
|
+
O.event(`[${K.logName}]`, oe.UserJoined, s);
|
|
16239
16243
|
}
|
|
16240
16244
|
});
|
|
16241
16245
|
}
|
|
@@ -16267,8 +16271,8 @@ const z = (K = class extends we {
|
|
|
16267
16271
|
a > 1 && (clearInterval(u), o()), a += 1;
|
|
16268
16272
|
try {
|
|
16269
16273
|
yield (h = this.publisher) == null ? void 0 : h.resumePublish(), clearInterval(u), c();
|
|
16270
|
-
} catch (
|
|
16271
|
-
const { code: d } =
|
|
16274
|
+
} catch (g) {
|
|
16275
|
+
const { code: d } = g;
|
|
16272
16276
|
d !== 10205 && (clearInterval(u), o());
|
|
16273
16277
|
}
|
|
16274
16278
|
}), 1e3);
|
|
@@ -16304,7 +16308,7 @@ const z = (K = class extends we {
|
|
|
16304
16308
|
leaveList: i,
|
|
16305
16309
|
presentList: s
|
|
16306
16310
|
}), this.handleUsersJoin(t), i.forEach((a) => {
|
|
16307
|
-
O.event(K.logName,
|
|
16311
|
+
O.event(K.logName, oe.UserLeft, a.userid, a.reason), this.emit("remoteUserOffLineNotify", a.userid, Qr.AliRtcUserOfflineQuit);
|
|
16308
16312
|
});
|
|
16309
16313
|
for (let a = 0; a < s.length; a++) {
|
|
16310
16314
|
const c = s[a], o = c.userid, u = this.bizControl.getRemoteUser(o);
|
|
@@ -16346,7 +16350,7 @@ const z = (K = class extends we {
|
|
|
16346
16350
|
* @returns {void}
|
|
16347
16351
|
*/
|
|
16348
16352
|
onError(e) {
|
|
16349
|
-
this.slsReporter.reportError(e), O.event(K.logName,
|
|
16353
|
+
this.slsReporter.reportError(e), O.event(K.logName, oe.Error, e);
|
|
16350
16354
|
}
|
|
16351
16355
|
setEnableDualVideoStream(e, t) {
|
|
16352
16356
|
this.bizControl.setEnableDualVideoStream(e, t);
|
|
@@ -16378,41 +16382,41 @@ const z = (K = class extends we {
|
|
|
16378
16382
|
}
|
|
16379
16383
|
startAndPublishDefaultDevices(e) {
|
|
16380
16384
|
return w(this, null, function* () {
|
|
16381
|
-
var c, o, u, h,
|
|
16385
|
+
var c, o, u, h, g;
|
|
16382
16386
|
if (!this.publisher)
|
|
16383
16387
|
return;
|
|
16384
16388
|
const { hasCamera: t, hasMicrophone: i, hasScreenShare: s } = this.publisher;
|
|
16385
|
-
if (t
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
)
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
)
|
|
16405
|
-
|
|
16389
|
+
if (!t && !i && !s) {
|
|
16390
|
+
try {
|
|
16391
|
+
yield (c = this.publisher) == null ? void 0 : c.startDefaultCamera(this._audioOnlyMode);
|
|
16392
|
+
} catch (d) {
|
|
16393
|
+
O.warn(`[${K.logName}]`, "startDefaultCamera failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
|
|
16394
|
+
new V(
|
|
16395
|
+
U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
|
|
16396
|
+
`auto start video failed, ${d.message || ""}`
|
|
16397
|
+
)
|
|
16398
|
+
);
|
|
16399
|
+
}
|
|
16400
|
+
try {
|
|
16401
|
+
yield (o = this.publisher) == null ? void 0 : o.startDefaultAudio();
|
|
16402
|
+
} catch (d) {
|
|
16403
|
+
O.warn(`[${K.logName}]`, "startDefaultAUdio failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
|
|
16404
|
+
new V(
|
|
16405
|
+
U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
|
|
16406
|
+
`auto start audio failed, ${d.message || ""}`
|
|
16407
|
+
)
|
|
16408
|
+
);
|
|
16409
|
+
}
|
|
16410
|
+
yield (u = this.publisher) == null ? void 0 : u.previewAll();
|
|
16406
16411
|
}
|
|
16407
|
-
yield (u = this.publisher) == null ? void 0 : u.previewAll();
|
|
16408
16412
|
const a = ((h = this.publisher) == null ? void 0 : h.publishStreams) || {};
|
|
16409
16413
|
if (Object.values(a).some((d) => d))
|
|
16410
16414
|
try {
|
|
16411
|
-
yield (
|
|
16415
|
+
yield (g = this.publisher) == null ? void 0 : g.startPublish(!1, e);
|
|
16412
16416
|
} catch (d) {
|
|
16413
16417
|
const f = [];
|
|
16414
|
-
a != null && a.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((
|
|
16415
|
-
this.occurError(new V(
|
|
16418
|
+
a != null && a.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((p) => {
|
|
16419
|
+
this.occurError(new V(p, `auto publish stream failed, ${d.message || ""}`));
|
|
16416
16420
|
});
|
|
16417
16421
|
}
|
|
16418
16422
|
});
|
|
@@ -16430,7 +16434,7 @@ const z = (K = class extends we {
|
|
|
16430
16434
|
);
|
|
16431
16435
|
if (this.clientRole === e)
|
|
16432
16436
|
return;
|
|
16433
|
-
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Dt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(st.
|
|
16437
|
+
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Dt.AliRtcSdkInteractive ? (this.bizControl.isSubscribing ? yield (t = this.publisher) == null ? void 0 : t.clearStream() : yield (i = this.publisher) == null ? void 0 : i.unPublish(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startAndPublishDefaultDevices(st.ROLE_CHANGE)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
|
|
16434
16438
|
} catch (s) {
|
|
16435
16439
|
throw s.code === 403 && this.emit("authInfoExpired"), s;
|
|
16436
16440
|
}
|
|
@@ -16507,10 +16511,10 @@ const z = (K = class extends we {
|
|
|
16507
16511
|
);
|
|
16508
16512
|
this.connectState = he.AliRtcConnectionStatusConnected, (o = this.publisher) == null || o.reportSelfDeviceStatus(), this.bizControl.init(i, h), this.setCheckAuthInfoTimer(i.timestamp, h.timestamp), this.liveTranscoding.setAuthInfo(i), this.slsReporter.reportJoin(0, a, h.tid), this.slsReporter.reportJoinResult(null);
|
|
16509
16513
|
} catch (h) {
|
|
16510
|
-
const
|
|
16511
|
-
throw this.connectState = he.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(
|
|
16514
|
+
const g = (u = h.code) != null ? u : -1, d = h.reason || h.message || "";
|
|
16515
|
+
throw this.connectState = he.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(g, a, ""), this.slsReporter.reportJoinResult(h), new V(g, d);
|
|
16512
16516
|
}
|
|
16513
|
-
this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(st.
|
|
16517
|
+
this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(st.JOIN_CHANNEL)), this.remoteUsers.forEach((h) => {
|
|
16514
16518
|
h.updateSubscribe(le.Join);
|
|
16515
16519
|
});
|
|
16516
16520
|
} else {
|
|
@@ -16791,7 +16795,7 @@ const z = (K = class extends we {
|
|
|
16791
16795
|
}
|
|
16792
16796
|
muteLocalMic(e = !1) {
|
|
16793
16797
|
var t;
|
|
16794
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
16798
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteAudio : oe.UnmuteAudio), (t = this.publisher) == null || t.muteLocalMic(e);
|
|
16795
16799
|
}
|
|
16796
16800
|
muteRemoteAudioPlaying(e, t = !1) {
|
|
16797
16801
|
const i = this.bizControl.getRemoteUser(e);
|
|
@@ -16879,7 +16883,7 @@ const z = (K = class extends we {
|
|
|
16879
16883
|
}
|
|
16880
16884
|
setCameraCapturerConfiguration(e) {
|
|
16881
16885
|
return w(this, null, function* () {
|
|
16882
|
-
var u, h,
|
|
16886
|
+
var u, h, g;
|
|
16883
16887
|
const {
|
|
16884
16888
|
width: t = Zt.width,
|
|
16885
16889
|
height: i = Zt.height,
|
|
@@ -16893,7 +16897,7 @@ const z = (K = class extends we {
|
|
|
16893
16897
|
height: i,
|
|
16894
16898
|
frameRate: s,
|
|
16895
16899
|
maxBitrate: a
|
|
16896
|
-
}), c !== void 0 && ((h = this.publisher) == null || h.setCameraDirection(c)), o && ((
|
|
16900
|
+
}), c !== void 0 && ((h = this.publisher) == null || h.setCameraDirection(c)), o && ((g = this.publisher) == null || g.setCameraDeviceId(o));
|
|
16897
16901
|
});
|
|
16898
16902
|
}
|
|
16899
16903
|
setCameraCapturerContentHint(e) {
|
|
@@ -16904,22 +16908,22 @@ const z = (K = class extends we {
|
|
|
16904
16908
|
}
|
|
16905
16909
|
enableLocalVideo(e = !0) {
|
|
16906
16910
|
return w(this, null, function* () {
|
|
16907
|
-
var t, i, s, a, c, o, u, h,
|
|
16911
|
+
var t, i, s, a, c, o, u, h, g, d, f;
|
|
16908
16912
|
if (this._audioOnlyMode)
|
|
16909
16913
|
throw new V(U.ERR_INNER, "Cannot enable local video in audio only mode");
|
|
16910
|
-
e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((c = (a = (s = this.publisher) == null ? void 0 : s.publishStreams) == null ? void 0 : a.video) == null || c.disableVideo(), (
|
|
16914
|
+
e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((c = (a = (s = this.publisher) == null ? void 0 : s.publishStreams) == null ? void 0 : a.video) == null || c.disableVideo(), (g = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || g.stop()), yield (d = this.publisher) == null ? void 0 : d.startCameraCapture()) : yield (f = this.publisher) == null ? void 0 : f.stopCameraCapture();
|
|
16911
16915
|
});
|
|
16912
16916
|
}
|
|
16913
16917
|
muteLocalCamera(e) {
|
|
16914
16918
|
return w(this, null, function* () {
|
|
16915
16919
|
var t;
|
|
16916
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
16920
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteVideo : oe.UnmuteVideo), (t = this.publisher) == null || t.muteLocalCamera(e);
|
|
16917
16921
|
});
|
|
16918
16922
|
}
|
|
16919
16923
|
muteLocalScreen(e) {
|
|
16920
16924
|
return w(this, null, function* () {
|
|
16921
16925
|
var t;
|
|
16922
|
-
this.isPublishing && this.onLocalDeviceStatusChange(e ?
|
|
16926
|
+
this.isPublishing && this.onLocalDeviceStatusChange(e ? oe.MuteScreen : oe.UnmuteScreen), (t = this.publisher) == null || t.muteLocalScreen(e);
|
|
16923
16927
|
});
|
|
16924
16928
|
}
|
|
16925
16929
|
setRemoteViewConfig(e, t, i) {
|
|
@@ -16938,16 +16942,16 @@ const z = (K = class extends we {
|
|
|
16938
16942
|
}
|
|
16939
16943
|
switchCamera(e, t) {
|
|
16940
16944
|
return w(this, null, function* () {
|
|
16941
|
-
var s, a, c, o, u, h,
|
|
16945
|
+
var s, a, c, o, u, h, g, d, f, p, l, x, v;
|
|
16942
16946
|
if (this._audioOnlyMode)
|
|
16943
16947
|
throw new V(U.ERR_INNER, "Cannot switch camera in audio only mode");
|
|
16944
16948
|
const i = {};
|
|
16945
16949
|
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? ai.CAMERA_FRONT : ai.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((a = this.publisher) == null ? void 0 : a.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
|
|
16946
|
-
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (
|
|
16947
|
-
const
|
|
16950
|
+
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (g = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : g.video) == null || d.disableVideo(), (x = (l = (p = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : p.video) == null ? void 0 : l.videoTrack) == null || x.stop());
|
|
16951
|
+
const S = {
|
|
16948
16952
|
video: !0
|
|
16949
16953
|
};
|
|
16950
|
-
t && (
|
|
16954
|
+
t && (S.mediaStream = new MediaStream([t])), yield (v = this.publisher) == null ? void 0 : v.createLocalStream(S);
|
|
16951
16955
|
}
|
|
16952
16956
|
});
|
|
16953
16957
|
}
|
|
@@ -17185,11 +17189,11 @@ m(K, "isDualVideoStreamSupported", Vr.isSupport), /**
|
|
|
17185
17189
|
* @returns {Promise<string[]>}
|
|
17186
17190
|
*/
|
|
17187
17191
|
m(K, "getCameraList", () => w(K, null, function* () {
|
|
17188
|
-
return (yield
|
|
17192
|
+
return (yield ce.getCameraList()).filter((t) => t.deviceId);
|
|
17189
17193
|
})), m(K, "getMicrophoneList", () => w(K, null, function* () {
|
|
17190
|
-
return (yield
|
|
17194
|
+
return (yield ce.getMicList()).filter((t) => t.deviceId);
|
|
17191
17195
|
})), m(K, "getSpeakerList", () => w(K, null, function* () {
|
|
17192
|
-
return (yield
|
|
17196
|
+
return (yield ce.getSpeakerList()).filter((t) => t.deviceId);
|
|
17193
17197
|
})), m(K, "_instance"), m(K, "AliRtcSdkChannelProfile", St), m(K, "AliRtcSdkClientRole", Dt), m(K, "AliRtcVideoStreamType", Re), m(K, "AliRtcVideoTrack", se), m(K, "AliRtcAudioTrack", qt), m(K, "AliRtcPublishState", Z), m(K, "AliRtcSubscribeState", de), m(K, "AliRtcRawDataStreamType", Ee), m(K, "AliRtcLogLevel", on), m(K, "AliRtcEngineLocalDeviceType", ut), m(K, "AliRtcEngineLocalDeviceExceptionType", ye), m(K, "AliRtcConnectionStatus", he), m(K, "AliRtcConnectionStatusChangeReason", Ht), m(K, "AliRtcPlugin", Kt), m(K, "AliRtcPluginTrackType", Ai), m(K, "AliRtcLiveTranscodingParam", Br), m(K, "AliRtcLiveTranscodingEncodeParam", fn), m(K, "AliRtcLiveTranscodingMixParam", Tc), m(K, "AliRtcLiveTranscodingSingleParam", Pc), m(K, "AliRtcTranscodingClockWidget", kc), m(K, "AliRtcTranscodingImage", An), m(K, "AliRtcTranscodingText", Bc), m(K, "AliRtcTranscodingUser", Mc), m(K, "AliRtcLiveTranscodingMixMode", Si), m(K, "AliRtcLiveTranscodingStreamType", cn), m(K, "AliRtcLiveTranscodingSourceType", si), m(K, "AliRtcLiveTranscodingTaskProfile", un), m(K, "AliRtcLiveTranscodingAudioSampleRate", Xr), m(K, "AliRtcLiveTranscodingSegmentType", vi), m(K, "AliRtcLiveTranscodingFontType", _i), m(K, "AliRtcLiveTranscodingCropMode", hn), m(K, "AliRtcLiveTranscodingMediaProcessMode", Yr), m(K, "AliRtcLiveTranscodingState", dn), m(K, "AliRtcLiveTranscodingErrorCode", ct), m(K, "AliRtcTrascodingPublishTaskStatus", ln), m(K, "AliRtcDataChannelMsg", Wt), m(K, "AliRtcDataMsgType", vn), m(K, "Plugin", Kt), K);
|
|
17194
17198
|
W([
|
|
17195
17199
|
D()
|