aliyun-rtc-sdk 6.13.2 → 6.13.4-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 +461 -459
- package/dist/aliyun-rtc-sdk.umd.js +9 -9
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -654,8 +654,8 @@ function $n() {
|
|
|
654
654
|
return this;
|
|
655
655
|
},
|
|
656
656
|
_lg: function(s, a, c, o) {
|
|
657
|
-
var u = this, h = u._conf, p = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, g = d.ignoreResErrors, l = d.ignoreUrls,
|
|
658
|
-
if (u._isRobot || r.ignoreByRule(p, l) || r.ignoreByRule(r.decode(p), l) || s === "error" && (r.ignoreByRule(a.msg, f) || r.ignoreByRule(r.decode(a.msg), f)) || s === "resourceError" && (r.ignoreByRule(a.src, g) || r.ignoreByRule(r.decode(a.src), g)) || s === "api" && (r.ignoreByRule(a.api,
|
|
657
|
+
var u = this, h = u._conf, p = u.getPage(), d = h.ignore || {}, f = d.ignoreErrors, g = d.ignoreResErrors, l = d.ignoreUrls, S = d.ignoreApis;
|
|
658
|
+
if (u._isRobot || r.ignoreByRule(p, l) || r.ignoreByRule(r.decode(p), l) || s === "error" && (r.ignoreByRule(a.msg, f) || r.ignoreByRule(r.decode(a.msg), f)) || s === "resourceError" && (r.ignoreByRule(a.src, g) || r.ignoreByRule(r.decode(a.src), g)) || s === "api" && (r.ignoreByRule(a.api, S) || r.ignoreByRule(r.decode(a.api), S)) || !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({
|
|
@@ -681,7 +681,7 @@ function $n() {
|
|
|
681
681
|
try {
|
|
682
682
|
if (!(a = h.beforeReport(a)))
|
|
683
683
|
return u;
|
|
684
|
-
} catch (
|
|
684
|
+
} catch (x) {
|
|
685
685
|
return u;
|
|
686
686
|
}
|
|
687
687
|
return o === 1 ? t(u, a) : c && !u.sampling(c) ? u : t(u, a);
|
|
@@ -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[
|
|
830
|
+
}, l = ["tag", "c1", "c2", "c3"], S = 0; S < l.length; S++) {
|
|
831
|
+
var v = l[S];
|
|
832
832
|
a[v] && (g[v] = a[v]);
|
|
833
833
|
}
|
|
834
|
-
var
|
|
835
|
-
return r.ignoreByRule(g.msg,
|
|
834
|
+
var x = (this.getConfig("ignore") || {}).ignoreErrors;
|
|
835
|
+
return r.ignoreByRule(g.msg, x) || r.ignoreByRule(r.decode(g.msg), x) ? this : (this.beforeSend && this.beforeSend("error", g), this._lg("error", g, 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, p, d, f, g, l,
|
|
845
|
+
api: function(s, a, c, o, u, h, p, d, f, g, l, S, v, x, b, y) {
|
|
846
846
|
if (!s)
|
|
847
847
|
return r.warn("[retcode] api is null"), this;
|
|
848
848
|
if (s = typeof s == "string" ? {
|
|
@@ -856,9 +856,9 @@ function Kn() {
|
|
|
856
856
|
pv_id: d,
|
|
857
857
|
apiSnapshot: f,
|
|
858
858
|
domain: g,
|
|
859
|
-
flag:
|
|
859
|
+
flag: S,
|
|
860
860
|
tag: v,
|
|
861
|
-
c1:
|
|
861
|
+
c1: x,
|
|
862
862
|
c2: b,
|
|
863
863
|
c3: y
|
|
864
864
|
} : r.sub(s, e), !r.checkAPI(s.api, !0))
|
|
@@ -972,16 +972,16 @@ function Gn() {
|
|
|
972
972
|
d[f] = g(l);
|
|
973
973
|
}
|
|
974
974
|
}, u = function(d) {
|
|
975
|
-
var f, g, l,
|
|
975
|
+
var f, g, l, S, v, x = [];
|
|
976
976
|
if (!d || typeof d.tagName != "string")
|
|
977
977
|
return "";
|
|
978
|
-
if (
|
|
978
|
+
if (x.push(d.tagName.toLowerCase()), typeof d.id == "string" && x.push("#".concat(d.id)), typeof (f = d.className) == "string")
|
|
979
979
|
for (g = f.split(/\s+/), v = 0; v < g.length; v++)
|
|
980
|
-
|
|
980
|
+
x.push(".".concat(g[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 (S = d.getAttribute(l)) == "string" && x.push("[".concat(l, '="').concat(S, '"]'));
|
|
984
|
+
return x.join("");
|
|
985
985
|
}, h = function(d, f) {
|
|
986
986
|
return function(g) {
|
|
987
987
|
if (g && g !== c) {
|
|
@@ -993,20 +993,20 @@ function Gn() {
|
|
|
993
993
|
l = "<unknown>";
|
|
994
994
|
}
|
|
995
995
|
if (l.length !== 0) {
|
|
996
|
-
var
|
|
996
|
+
var S = {
|
|
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 x = v || null, b = [], y = 0, E = 0, I = 3, A = ""; x && y++ < 5 && !((A = u(x)) === "html" || y > 1 && E + b.length * I + A.length >= 80); )
|
|
1003
|
+
b.push(A), E += A.length, x = x.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(S) : d === "keypress" && (a || i && i.addBehavior(S), clearTimeout(a), a = setTimeout(function() {
|
|
1010
1010
|
a = void 0;
|
|
1011
1011
|
}, 100));
|
|
1012
1012
|
}
|
|
@@ -1014,30 +1014,30 @@ function Gn() {
|
|
|
1014
1014
|
};
|
|
1015
1015
|
}, p = function() {
|
|
1016
1016
|
if (function() {
|
|
1017
|
-
var l = e && e.chrome,
|
|
1018
|
-
return !
|
|
1017
|
+
var l = e && e.chrome, S = l && l.app && l.app.runtime, v = "history" in e && !!e.history.pushState && !!e.history.replaceState;
|
|
1018
|
+
return !S && v;
|
|
1019
1019
|
}()) {
|
|
1020
|
-
var d = function(l,
|
|
1020
|
+
var d = function(l, S) {
|
|
1021
1021
|
var v = {
|
|
1022
1022
|
type: "navigation",
|
|
1023
1023
|
data: {
|
|
1024
1024
|
from: l,
|
|
1025
|
-
to:
|
|
1025
|
+
to: S
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
|
-
i && i.addBehavior(v), s =
|
|
1028
|
+
i && i.addBehavior(v), s = S;
|
|
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, S = new Array(l), v = 0; v < l; v++)
|
|
1032
|
+
S[v] = arguments[v];
|
|
1033
|
+
var x = e.location.href;
|
|
1034
|
+
if (d(s, x), f)
|
|
1035
|
+
return f.apply(this, S);
|
|
1036
1036
|
};
|
|
1037
1037
|
var g = function(l) {
|
|
1038
1038
|
return function() {
|
|
1039
|
-
for (var
|
|
1040
|
-
v[
|
|
1039
|
+
for (var S = arguments.length, v = new Array(S), x = 0; x < S; x++)
|
|
1040
|
+
v[x] = arguments[x];
|
|
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
|
};
|
|
@@ -1102,20 +1102,20 @@ function Gn() {
|
|
|
1102
1102
|
var g = ["debug", "info", "warn", "log", "error", "assert"];
|
|
1103
1103
|
r.isArray(f) && (g = f);
|
|
1104
1104
|
for (var l = 0; l < g.length; l++) {
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1107
|
-
var
|
|
1105
|
+
var S = g[l];
|
|
1106
|
+
S && r.isString(S) && e.console[S] && typeof e.console[S] == "function" && o(e.console, S, function(v) {
|
|
1107
|
+
var x = S;
|
|
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: x,
|
|
1115
1115
|
message: y
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
|
-
if (i && i.addBehavior(I),
|
|
1118
|
+
if (i && i.addBehavior(I), x === "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", {
|
|
@@ -1199,10 +1199,10 @@ function Yn() {
|
|
|
1199
1199
|
ready: [12, 1],
|
|
1200
1200
|
load: [14, 1]
|
|
1201
1201
|
}, function(g, l) {
|
|
1202
|
-
var
|
|
1203
|
-
if (o === 2 ||
|
|
1204
|
-
var
|
|
1205
|
-
|
|
1202
|
+
var S = a[e[g[1]]], v = a[e[g[0]]];
|
|
1203
|
+
if (o === 2 || S > 0 && v > 0) {
|
|
1204
|
+
var x = Math.round(v - S);
|
|
1205
|
+
x >= 0 && x < 6e5 && (s[l] = x);
|
|
1206
1206
|
}
|
|
1207
1207
|
});
|
|
1208
1208
|
var h = t.navigator.connection, p = i.navigation || {};
|
|
@@ -1222,8 +1222,8 @@ function Zn() {
|
|
|
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, S, v, x, b) {
|
|
1226
|
+
if (S === void 0) {
|
|
1227
1227
|
var y, E;
|
|
1228
1228
|
if (!d[l]) {
|
|
1229
1229
|
y = new RegExp(l + "=([^;]+)");
|
|
@@ -1236,7 +1236,7 @@ function Zn() {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
return d[l];
|
|
1238
1238
|
}
|
|
1239
|
-
var I = l + "=" +
|
|
1239
|
+
var I = l + "=" + S;
|
|
1240
1240
|
I += "; path=/", v && (I += "; max-age=" + v);
|
|
1241
1241
|
try {
|
|
1242
1242
|
return e.cookie = I, !!e.cookie;
|
|
@@ -1244,8 +1244,8 @@ function Zn() {
|
|
|
1244
1244
|
return t.warn("[retcode] can not set cookie: ", A), !1;
|
|
1245
1245
|
}
|
|
1246
1246
|
}, g = function(l) {
|
|
1247
|
-
var
|
|
1248
|
-
return !
|
|
1247
|
+
var S = l._conf.uid || f("_nk_") || f("_bl_uid");
|
|
1248
|
+
return !S && (S = t.uu(), !f("_bl_uid", S, 15552e3)) ? null : S;
|
|
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 S = l.type;
|
|
1258
|
+
if (S === "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
|
+
S === "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 (x) {
|
|
1268
1268
|
}
|
|
1269
1269
|
return this;
|
|
1270
1270
|
},
|
|
1271
1271
|
resourceErrorHandler: function(l) {
|
|
1272
|
-
var
|
|
1272
|
+
var S = this, v = l.target || l.srcElement;
|
|
1273
1273
|
try {
|
|
1274
|
-
var
|
|
1275
|
-
src:
|
|
1274
|
+
var x = S.getSrc(v), b = typeof v.tagName == "string" ? v.tagName.toLowerCase() : "", y = S.getXPath(v, 5), E = t.getURL(x), I = {
|
|
1275
|
+
src: x && x.substring(0, 1e3),
|
|
1276
1276
|
node_name: b,
|
|
1277
1277
|
xpath: y,
|
|
1278
|
-
res_type: t.getResType(b,
|
|
1278
|
+
res_type: t.getResType(b, x),
|
|
1279
1279
|
res_name: E.path,
|
|
1280
1280
|
domain: E.domain
|
|
1281
1281
|
};
|
|
1282
|
-
return
|
|
1283
|
-
src:
|
|
1282
|
+
return S._conf.enableResource && S.fixResourceStatus && l.timeStamp && S.fixResourceStatus({
|
|
1283
|
+
src: x,
|
|
1284
1284
|
node_name: b,
|
|
1285
|
-
res_type: t.getResType(b,
|
|
1285
|
+
res_type: t.getResType(b, x),
|
|
1286
1286
|
timeStamp: l.timeStamp,
|
|
1287
1287
|
domain: E.domain
|
|
1288
|
-
}),
|
|
1288
|
+
}), S._lg("resourceError", I), S;
|
|
1289
1289
|
} catch (A) {
|
|
1290
|
-
return t.warn("[ARMS] resourceErrorHandler error :", A),
|
|
1290
|
+
return t.warn("[ARMS] resourceErrorHandler error :", A), S;
|
|
1291
1291
|
}
|
|
1292
1292
|
},
|
|
1293
1293
|
getSrc: function(l) {
|
|
1294
|
-
var
|
|
1294
|
+
var S = l.src || l.href;
|
|
1295
1295
|
try {
|
|
1296
|
-
if (!
|
|
1297
|
-
var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object",
|
|
1298
|
-
v &&
|
|
1296
|
+
if (!S) {
|
|
1297
|
+
var v = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") === "object", x = l.getAttribute("classid") && l.getAttribute("classid").toLowerCase() === "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" || l.getAttribute("type") === "application/x-shockwave-flash";
|
|
1298
|
+
v && x && (S = l.getAttribute("data") || l.getAttribute("codebase")), S || (S = l.outerHTML || l.innerHTML);
|
|
1299
1299
|
}
|
|
1300
1300
|
} catch (b) {
|
|
1301
|
-
|
|
1301
|
+
S = "";
|
|
1302
1302
|
}
|
|
1303
|
-
return
|
|
1303
|
+
return S;
|
|
1304
1304
|
},
|
|
1305
|
-
getXPath: function(l,
|
|
1306
|
-
var v = l.id ? "#" + l.id : "",
|
|
1307
|
-
return l.parentNode && l.parentNode.tagName &&
|
|
1305
|
+
getXPath: function(l, S) {
|
|
1306
|
+
var v = l.id ? "#" + l.id : "", x = typeof l.className == "string" ? "." + l.className.split(" ").join(".") : "", b = (typeof l.tagName == "string" ? l.tagName.toLowerCase() : "") + v + x;
|
|
1307
|
+
return l.parentNode && l.parentNode.tagName && S - 1 != 0 ? this.getXPath(l.parentNode, S - 1) + " > " + b : b;
|
|
1308
1308
|
},
|
|
1309
1309
|
sendPerformance: function(l) {
|
|
1310
|
-
var
|
|
1311
|
-
|
|
1310
|
+
var S = this;
|
|
1311
|
+
S.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 = S.getPage(!0), l && (v = t.ext(v, l)), v.autoSend = !0, S.performance(v));
|
|
1314
1314
|
});
|
|
1315
1315
|
},
|
|
1316
1316
|
sendResources: function(l) {
|
|
1317
|
-
var
|
|
1318
|
-
|
|
1317
|
+
var S = this;
|
|
1318
|
+
S.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 = S.getPage(!0), v.dl = location.href, l && (v = t.ext(v, l)), S._lg("res", v, S.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 S = function(v) {
|
|
1327
|
+
var x = g(v), b = n.devicePixelRatio || 1;
|
|
1328
1328
|
return {
|
|
1329
|
-
uid:
|
|
1329
|
+
uid: x,
|
|
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
|
+
S && S.uid && l._lg("pv", S, l.getConfig("pvSample"));
|
|
1340
1340
|
});
|
|
1341
1341
|
},
|
|
1342
1342
|
commonInfo: function() {
|
|
1343
1343
|
return p.uid = g(this), p.sid = function(l) {
|
|
1344
1344
|
if (l.session)
|
|
1345
1345
|
return l.session;
|
|
1346
|
-
var
|
|
1346
|
+
var S;
|
|
1347
1347
|
try {
|
|
1348
1348
|
if (typeof window == "object" && typeof sessionStorage == "object" && typeof sessionStorage.getItem == "function")
|
|
1349
|
-
return typeof (
|
|
1349
|
+
return typeof (S = sessionStorage.getItem("_bl_sid")) == "string" ? (l.session = S, S) : (S = t.uu(), l.session = S, typeof sessionStorage.setItem == "function" && sessionStorage.setItem("_bl_sid", S), S);
|
|
1350
1350
|
} catch (v) {
|
|
1351
1351
|
t.warn("[ARMS] getSid error :", v);
|
|
1352
1352
|
}
|
|
1353
|
-
return l.session =
|
|
1353
|
+
return l.session = S = t.uu(), S;
|
|
1354
1354
|
}(this), p;
|
|
1355
1355
|
},
|
|
1356
1356
|
handleUnload: function(l) {
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1357
|
+
var S = Date.now();
|
|
1358
|
+
if (S - this._lastUnload < 200)
|
|
1359
1359
|
return this;
|
|
1360
|
-
this._lastUnload =
|
|
1360
|
+
this._lastUnload = S, 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 S = this;
|
|
1364
|
+
if (!l ^ S.hashChangeHandler)
|
|
1365
|
+
return S;
|
|
1366
|
+
l ? (S.hackHistoryState(), S.hashChangeHandler = function(v) {
|
|
1367
|
+
var x = S._conf.parseHash(location.hash);
|
|
1368
|
+
x && S.setPage(x, v !== !1);
|
|
1369
|
+
}, S.stateChangeHandler = function(v) {
|
|
1370
|
+
var x = S._conf.parseHash(v.detail);
|
|
1371
|
+
x && S.setPage(x);
|
|
1372
|
+
}, t.on(n, "hashchange", S.hashChangeHandler), t.on(n, "historystatechange", S.stateChangeHandler), S.hashChangeHandler(!1)) : (t.off(n, "hashchange", S.hashChangeHandler), t.off(n, "historystatechange", S.stateChangeHandler), S.hashChangeHandler = null, S.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 S = l._conf;
|
|
1379
1379
|
return t.on(n, "beforeunload", function() {
|
|
1380
1380
|
l.handleUnload(0);
|
|
1381
|
-
}), l.bindHashChange(
|
|
1381
|
+
}), l.bindHashChange(S.enableSPA), l.activeErrHandler(!1), l.hasInitHandler = !0, l;
|
|
1382
1382
|
}
|
|
1383
1383
|
}), t.on(n, "error", function(l) {
|
|
1384
1384
|
a && a.errorHandler(l);
|
|
@@ -1397,10 +1397,10 @@ function Qn() {
|
|
|
1397
1397
|
function s(p, d, f) {
|
|
1398
1398
|
var g = 0, l = p.tagName;
|
|
1399
1399
|
if (l !== "SCRIPT" && l !== "STYLE" && l !== "META" && l !== "HEAD") {
|
|
1400
|
-
var
|
|
1401
|
-
if (
|
|
1402
|
-
for (var v = p.children,
|
|
1403
|
-
g += s(v[
|
|
1400
|
+
var S = p.children ? p.children.length : 0;
|
|
1401
|
+
if (S > 0)
|
|
1402
|
+
for (var v = p.children, x = S - 1; x >= 0; x--)
|
|
1403
|
+
g += s(v[x], d + 1, g > 0);
|
|
1404
1404
|
if (g <= 0 && !f && !(p.getBoundingClientRect && p.getBoundingClientRect().top < c))
|
|
1405
1405
|
return 0;
|
|
1406
1406
|
g += 1 + 0.5 * d;
|
|
@@ -1427,10 +1427,10 @@ function Qn() {
|
|
|
1427
1427
|
var f = t.MutationObserver;
|
|
1428
1428
|
return (u = new f(function() {
|
|
1429
1429
|
(function(g) {
|
|
1430
|
-
var l = Date.now() - g,
|
|
1431
|
-
if (
|
|
1430
|
+
var l = Date.now() - g, S = i.querySelector("body");
|
|
1431
|
+
if (S) {
|
|
1432
1432
|
var v = 0;
|
|
1433
|
-
v += s(
|
|
1433
|
+
v += s(S, 1, !1), o.push({
|
|
1434
1434
|
score: v,
|
|
1435
1435
|
t: l
|
|
1436
1436
|
});
|
|
@@ -1450,17 +1450,17 @@ function Qn() {
|
|
|
1450
1450
|
endObserving: function(p, 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, x) {
|
|
1454
1454
|
var b = Date.now() - v;
|
|
1455
|
-
return !(b >
|
|
1455
|
+
return !(b > x || b - (o && o.length && o[o.length - 1].t || 0) > 2 * n);
|
|
1456
1456
|
}(f._startTime, p)) {
|
|
1457
1457
|
u.disconnect(), h = 0, o = a(o);
|
|
1458
1458
|
for (var g = null, l = 1; l < o.length; l++)
|
|
1459
1459
|
if (o[l].t >= o[l - 1].t) {
|
|
1460
|
-
var
|
|
1461
|
-
(!g || g.rate <=
|
|
1460
|
+
var S = o[l].score - o[l - 1].score;
|
|
1461
|
+
(!g || g.rate <= S) && (g = {
|
|
1462
1462
|
t: o[l].t,
|
|
1463
|
-
rate:
|
|
1463
|
+
rate: S
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
1466
|
g && g.t > 0 && g.t < 36e5 ? f.sendPerformance({
|
|
@@ -1477,12 +1477,12 @@ function Qn() {
|
|
|
1477
1477
|
var Ts, Ps;
|
|
1478
1478
|
function eo() {
|
|
1479
1479
|
return Ps || (Ps = 1, Ts = function(r, n) {
|
|
1480
|
-
var e = Ne(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l,
|
|
1480
|
+
var e = Ne(), t = null, i = e.getCurDomain(), s = function(h, p, d, f, g, l, S, v, x, b, y, E, I) {
|
|
1481
1481
|
var A = e.J(g) || null, C = e.safetyCall(p, [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, _, S, L, C.msg, v, x, b, _ ? {} : y, i, E, I);
|
|
1486
1486
|
}, a = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
|
|
1487
1487
|
return e.ext(r.prototype, {
|
|
1488
1488
|
removeHook: function(h, p) {
|
|
@@ -1497,7 +1497,7 @@ function eo() {
|
|
|
1497
1497
|
if (!l || !l.api || f && (f.method === "HEAD" || f.mode === "no-cors"))
|
|
1498
1498
|
return p.apply(n, g);
|
|
1499
1499
|
f || (f = {});
|
|
1500
|
-
var
|
|
1500
|
+
var S = Date.now(), v = l._conf, x = 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))
|
|
@@ -1581,14 +1581,14 @@ function eo() {
|
|
|
1581
1581
|
typeof Fe == "object" && Fe["eagleeye-traceid"] && (C = Fe["eagleeye-traceid"], R = "response");
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
|
-
var je =
|
|
1584
|
+
var je = x();
|
|
1585
1585
|
return j.text().then(function(Xe) {
|
|
1586
1586
|
if (!C && e.isFunction(I)) {
|
|
1587
1587
|
var Ye = I(j, Xe);
|
|
1588
1588
|
Ye && e.isString(Ye) && (C = Ye);
|
|
1589
1589
|
}
|
|
1590
1590
|
var xe = e.getFetchSnapshot(g, Xe, ue);
|
|
1591
|
-
j.ok ? s(l, v.parseResponse, b, y, Xe, j.status || 200, je,
|
|
1591
|
+
j.ok ? s(l, v.parseResponse, b, y, Xe, j.status || 200, je, S, C, L, xe, R, $) : (l.api(b, !1, je, j.status || 404, j.statusText, S, C, L, xe, 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 = x();
|
|
1603
|
+
throw l.api(b, !1, j, J.name || "Error", J.message, S, C, L, {}, i), v.enableResource && t.fixResourceStatus && t.fixResourceStatus({
|
|
1604
1604
|
src: y,
|
|
1605
1605
|
res_type: "api"
|
|
1606
1606
|
}), J;
|
|
@@ -1612,11 +1612,11 @@ function eo() {
|
|
|
1612
1612
|
var p, d = n[u];
|
|
1613
1613
|
n[o] = d;
|
|
1614
1614
|
var f = function(g) {
|
|
1615
|
-
var l = new d(g),
|
|
1616
|
-
if (!
|
|
1615
|
+
var l = new d(g), S = t;
|
|
1616
|
+
if (!S || !S.api || !l.addEventListener)
|
|
1617
1617
|
return l;
|
|
1618
|
-
var v,
|
|
1619
|
-
return G && !
|
|
1618
|
+
var v, x, b, y, E = l.send, I = l.open, A = l.setRequestHeader, C = S._conf, L = (C.ignore || {}).ignoreApis, _ = C.parseTraceId, R = S.getConfig("enableLinkTrace"), T = "", B = "", $ = "", q = null, G = S.getConfig("sample"), ae = S.getConfig("linkType"), Q = 1;
|
|
1619
|
+
return G && !S.sampling(G) && (Q = 0), l.open = function(te, ee) {
|
|
1620
1620
|
p = 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);
|
|
@@ -1629,28 +1629,28 @@ function eo() {
|
|
|
1629
1629
|
F = "";
|
|
1630
1630
|
}
|
|
1631
1631
|
var M = e.checkSameOrigin(y, F);
|
|
1632
|
-
if ((
|
|
1632
|
+
if ((S.getConfig("enableApiCors") || M) && A && typeof A == "function")
|
|
1633
1633
|
switch (ae) {
|
|
1634
1634
|
case "arms":
|
|
1635
|
-
T =
|
|
1635
|
+
T = S.getTraceId()["EagleEye-TraceID"], A.apply(l, ["EagleEye-TraceID", T]), B = S.getPageviewId()["EagleEye-SessionID"], A.apply(l, ["EagleEye-SessionID", B]), $ = S.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 = S.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 = S.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 = S.getUberTraceId(Q);
|
|
1644
|
+
A.apply(l, ["uber-trace-id", j["uber-trace-id"]]), T = j.traceId, B = S.getPageviewId()["EagleEye-SessionID"];
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
}, l.send = function() {
|
|
1648
|
-
v = Date.now(),
|
|
1648
|
+
v = Date.now(), x = 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 = x(), ee = e.getXhrSnapshot(y, p, 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,9 +1666,9 @@ 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" ? S.api(b, !0, te, F, "", v, T, B, {}, i, q, Q) : s(S, C.parseResponse, b, y, l.responseText, F, te, v, T, B, ee, q, Q);
|
|
1670
1670
|
} else
|
|
1671
|
-
|
|
1671
|
+
S.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
|
});
|
|
@@ -1702,8 +1702,8 @@ function to() {
|
|
|
1702
1702
|
if (!p || typeof p != "string" || p === f)
|
|
1703
1703
|
return g;
|
|
1704
1704
|
try {
|
|
1705
|
-
var l = f.split("#"),
|
|
1706
|
-
b !== y ? s("historystatechange", y) : v !==
|
|
1705
|
+
var l = f.split("#"), S = p.split("#"), v = e.cutUrlSearch(l[0]), x = e.cutUrlSearch(S[0]), b = l[1] && l[1].replace(/^\/?(.*)/, "$1"), y = S[1] && S[1].replace(/^\/?(.*)/, "$1");
|
|
1706
|
+
b !== y ? s("historystatechange", y) : v !== x && s("historystatechange", x);
|
|
1707
1707
|
} catch (E) {
|
|
1708
1708
|
e.warn("[retcode] error in " + c + ": " + E);
|
|
1709
1709
|
}
|
|
@@ -1728,8 +1728,8 @@ function io() {
|
|
|
1728
1728
|
if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
|
|
1729
1729
|
var p = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
|
|
1730
1730
|
if (p && d.includes(p) && !r.ignoreByRule(o.name, f) && !r.ignoreByRule(r.decode(o.name), f)) {
|
|
1731
|
-
var g = o[e[0]], l = o[e[1]],
|
|
1732
|
-
if (!h.has(o) && (!r.areInOrder(g, l,
|
|
1731
|
+
var g = o[e[0]], l = o[e[1]], S = o[e[2]], v = o[e[3]], x = 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(g, l, S, v, x, b, y, E, I) || g > E))
|
|
1733
1733
|
return;
|
|
1734
1734
|
if (A < g && (A = g), C < g && (C = l), r.areInOrder(g, A, C, l))
|
|
1735
1735
|
return {
|
|
@@ -1773,8 +1773,8 @@ function io() {
|
|
|
1773
1773
|
if (r.checkAPI(g.name, !1)) {
|
|
1774
1774
|
var l = s(g, u, h);
|
|
1775
1775
|
if (l) {
|
|
1776
|
-
var
|
|
1777
|
-
|
|
1776
|
+
var S = l.res_type + "-" + l.domain;
|
|
1777
|
+
S in p || (p[S] = []), p[S].push(l);
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
@@ -1801,8 +1801,8 @@ function io() {
|
|
|
1801
1801
|
var p = Object.keys(o);
|
|
1802
1802
|
if (p.length !== 0) {
|
|
1803
1803
|
var d = [];
|
|
1804
|
-
r.each(p, function(
|
|
1805
|
-
var v = o[
|
|
1804
|
+
r.each(p, function(S) {
|
|
1805
|
+
var v = o[S], x = {
|
|
1806
1806
|
domain: "",
|
|
1807
1807
|
res_type: "",
|
|
1808
1808
|
src_type: "",
|
|
@@ -1817,15 +1817,15 @@ 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
|
+
x.domain = b.domain, x.res_type = b.res_type, x.src_type = b.src_type, x.count += 1, x.duration += b.duration, x.size += b.size, I || (x.err_count += 1, x.err_duration += b.duration), A && (x.slow_count += 1, x.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, x.timings.push(C);
|
|
1824
1824
|
} catch (L) {
|
|
1825
1825
|
}
|
|
1826
|
-
}),
|
|
1826
|
+
}), x.count && (x.size = Math.round(x.size / x.count), x.duration = Math.round(x.duration / x.count)), x.slow_count && (x.slow_duration = Math.round(x.slow_duration / x.slow_count)), x.err_count && (x.err_duration = Math.round(x.err_duration / x.err_count)), x.timings.length > 20 && (x.timings.sort(function(b, y) {
|
|
1827
1827
|
return y.duration - b.duration;
|
|
1828
|
-
}),
|
|
1828
|
+
}), x.timings.length = 20), x.timings = encodeURIComponent(JSON.stringify(x.timings)), d.push(x);
|
|
1829
1829
|
});
|
|
1830
1830
|
var f = {
|
|
1831
1831
|
_combo: 1,
|
|
@@ -2256,7 +2256,7 @@ function st(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.4-beta.0", Ks = "web";
|
|
2260
2260
|
class Ue {
|
|
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 (x) {
|
|
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 (x) {
|
|
2569
2569
|
}
|
|
2570
2570
|
if (typeof s.randomBytes == "function")
|
|
2571
2571
|
try {
|
|
2572
2572
|
return s.randomBytes(4).readInt32LE();
|
|
2573
|
-
} catch (
|
|
2573
|
+
} catch (x) {
|
|
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 x() {
|
|
2579
2579
|
}
|
|
2580
2580
|
return function(b) {
|
|
2581
2581
|
var y;
|
|
2582
|
-
return
|
|
2582
|
+
return x.prototype = b, y = new x(), x.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(x) {
|
|
2605
2605
|
var b = c(this);
|
|
2606
|
-
return
|
|
2606
|
+
return x && b.mixIn(x), (!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 x = this.extend();
|
|
2624
|
+
return x.init.apply(x, arguments), x;
|
|
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(x) {
|
|
2652
|
+
for (var b in x)
|
|
2653
|
+
x.hasOwnProperty(b) && (this[b] = x[b]);
|
|
2654
|
+
x.hasOwnProperty("toString") && (this.toString = x.toString);
|
|
2655
2655
|
},
|
|
2656
2656
|
/**
|
|
2657
2657
|
* Creates a copy of this object.
|
|
@@ -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(x, b) {
|
|
2683
|
+
x = this.words = x || [], b != i ? this.sigBytes = b : this.sigBytes = x.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(x) {
|
|
2699
|
+
return (x || 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(x) {
|
|
2713
|
+
var b = this.words, y = x.words, E = this.sigBytes, I = x.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 x = this.words, b = this.sigBytes;
|
|
2733
|
+
x[b >>> 2] &= 4294967295 << 32 - b % 4 * 8, x.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 x = h.clone.call(this);
|
|
2746
|
+
return x.words = this.words.slice(0), x;
|
|
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(x) {
|
|
2762
|
+
for (var b = [], y = 0; y < x; y += 4)
|
|
2763
2763
|
b.push(a());
|
|
2764
|
-
return new p.init(b,
|
|
2764
|
+
return new p.init(b, x);
|
|
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(x) {
|
|
2781
|
+
for (var b = x.words, y = x.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,9 +2797,9 @@ 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(
|
|
2800
|
+
parse: function(x) {
|
|
2801
|
+
for (var b = x.length, y = [], E = 0; E < b; E += 2)
|
|
2802
|
+
y[E >>> 3] |= parseInt(x.substr(E, 2), 16) << 24 - E % 8 * 4;
|
|
2803
2803
|
return new p.init(y, b / 2);
|
|
2804
2804
|
}
|
|
2805
2805
|
}, g = d.Latin1 = {
|
|
@@ -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(x) {
|
|
2820
|
+
for (var b = x.words, y = x.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,9 +2836,9 @@ 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] |= (
|
|
2839
|
+
parse: function(x) {
|
|
2840
|
+
for (var b = x.length, y = [], E = 0; E < b; E++)
|
|
2841
|
+
y[E >>> 2] |= (x.charCodeAt(E) & 255) << 24 - E % 4 * 8;
|
|
2842
2842
|
return new p.init(y, b);
|
|
2843
2843
|
}
|
|
2844
2844
|
}, l = d.Utf8 = {
|
|
@@ -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(x) {
|
|
2859
2859
|
try {
|
|
2860
|
-
return decodeURIComponent(escape(g.stringify(
|
|
2860
|
+
return decodeURIComponent(escape(g.stringify(x)));
|
|
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 g.parse(unescape(encodeURIComponent(
|
|
2878
|
+
parse: function(x) {
|
|
2879
|
+
return g.parse(unescape(encodeURIComponent(x)));
|
|
2880
2880
|
}
|
|
2881
|
-
},
|
|
2881
|
+
}, S = u.BufferedBlockAlgorithm = h.extend({
|
|
2882
2882
|
/**
|
|
2883
2883
|
* Resets this block algorithm's data buffer to its initial state.
|
|
2884
2884
|
*
|
|
@@ -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(x) {
|
|
2903
|
+
typeof x == "string" && (x = l.parse(x)), this._data.concat(x), this._nDataBytes += x.sigBytes;
|
|
2904
2904
|
},
|
|
2905
2905
|
/**
|
|
2906
2906
|
* Processes available data blocks.
|
|
@@ -2916,9 +2916,9 @@ function ne() {
|
|
|
2916
2916
|
* var processedData = bufferedBlockAlgorithm._process();
|
|
2917
2917
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
2918
2918
|
*/
|
|
2919
|
-
_process: function(
|
|
2919
|
+
_process: function(x) {
|
|
2920
2920
|
var b, y = this._data, E = y.words, I = y.sigBytes, A = this.blockSize, C = A * 4, L = I / C;
|
|
2921
|
-
|
|
2921
|
+
x ? 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)
|
|
@@ -2937,12 +2937,12 @@ function ne() {
|
|
|
2937
2937
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
2938
2938
|
*/
|
|
2939
2939
|
clone: function() {
|
|
2940
|
-
var
|
|
2941
|
-
return
|
|
2940
|
+
var x = h.clone.call(this);
|
|
2941
|
+
return x._data = this._data.clone(), x;
|
|
2942
2942
|
},
|
|
2943
2943
|
_minBufferSize: 0
|
|
2944
2944
|
});
|
|
2945
|
-
u.Hasher =
|
|
2945
|
+
u.Hasher = S.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(x) {
|
|
2960
|
+
this.cfg = this.cfg.extend(x), 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
|
+
S.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(x) {
|
|
2985
|
+
return this._append(x), 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(x) {
|
|
3002
|
+
x && this._append(x);
|
|
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(x) {
|
|
3021
3021
|
return function(b, y) {
|
|
3022
|
-
return new
|
|
3022
|
+
return new x.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(x) {
|
|
3039
3039
|
return function(b, y) {
|
|
3040
|
-
return new v.HMAC.init(
|
|
3040
|
+
return new v.HMAC.init(x, y).finalize(b);
|
|
3041
3041
|
};
|
|
3042
3042
|
}
|
|
3043
3043
|
});
|
|
@@ -3420,8 +3420,8 @@ function Mt() {
|
|
|
3420
3420
|
var u = o.words, h = o.sigBytes, p = this._map;
|
|
3421
3421
|
o.clamp();
|
|
3422
3422
|
for (var d = [], f = 0; f < h; f += 3)
|
|
3423
|
-
for (var g = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255,
|
|
3424
|
-
d.push(p.charAt(v >>> 6 * (3 -
|
|
3423
|
+
for (var g = u[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = u[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, S = u[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, v = g << 16 | l << 8 | S, x = 0; x < 4 && f + x * 0.75 < h; x++)
|
|
3424
|
+
d.push(p.charAt(v >>> 6 * (3 - x) & 63));
|
|
3425
3425
|
var b = p.charAt(64);
|
|
3426
3426
|
if (b)
|
|
3427
3427
|
for (; d.length % 4; )
|
|
@@ -3460,8 +3460,8 @@ function Mt() {
|
|
|
3460
3460
|
function c(o, u, h) {
|
|
3461
3461
|
for (var p = [], d = 0, f = 0; f < u; f++)
|
|
3462
3462
|
if (f % 4) {
|
|
3463
|
-
var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2,
|
|
3464
|
-
p[d >>> 2] |=
|
|
3463
|
+
var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = g | l;
|
|
3464
|
+
p[d >>> 2] |= S << 24 - d % 4 * 8, d++;
|
|
3465
3465
|
}
|
|
3466
3466
|
return s.create(p, d);
|
|
3467
3467
|
}
|
|
@@ -3498,8 +3498,8 @@ function Po() {
|
|
|
3498
3498
|
var h = o.words, p = o.sigBytes, d = u ? this._safe_map : this._map;
|
|
3499
3499
|
o.clamp();
|
|
3500
3500
|
for (var f = [], g = 0; g < p; g += 3)
|
|
3501
|
-
for (var l = h[g >>> 2] >>> 24 - g % 4 * 8 & 255,
|
|
3502
|
-
f.push(d.charAt(
|
|
3501
|
+
for (var l = h[g >>> 2] >>> 24 - g % 4 * 8 & 255, S = h[g + 1 >>> 2] >>> 24 - (g + 1) % 4 * 8 & 255, v = h[g + 2 >>> 2] >>> 24 - (g + 2) % 4 * 8 & 255, x = l << 16 | S << 8 | v, b = 0; b < 4 && g + b * 0.75 < p; b++)
|
|
3502
|
+
f.push(d.charAt(x >>> 6 * (3 - b) & 63));
|
|
3503
3503
|
var y = d.charAt(64);
|
|
3504
3504
|
if (y)
|
|
3505
3505
|
for (; f.length % 4; )
|
|
@@ -3542,8 +3542,8 @@ function Po() {
|
|
|
3542
3542
|
function c(o, u, h) {
|
|
3543
3543
|
for (var p = [], d = 0, f = 0; f < u; f++)
|
|
3544
3544
|
if (f % 4) {
|
|
3545
|
-
var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2,
|
|
3546
|
-
p[d >>> 2] |=
|
|
3545
|
+
var g = h[o.charCodeAt(f - 1)] << f % 4 * 2, l = h[o.charCodeAt(f)] >>> 6 - f % 4 * 2, S = g | l;
|
|
3546
|
+
p[d >>> 2] |= S << 24 - d % 4 * 8, d++;
|
|
3547
3547
|
}
|
|
3548
3548
|
return s.create(p, d);
|
|
3549
3549
|
}
|
|
@@ -3572,19 +3572,19 @@ function Lt() {
|
|
|
3572
3572
|
271733878
|
|
3573
3573
|
]);
|
|
3574
3574
|
},
|
|
3575
|
-
_doProcessBlock: function(l,
|
|
3575
|
+
_doProcessBlock: function(l, S) {
|
|
3576
3576
|
for (var v = 0; v < 16; v++) {
|
|
3577
|
-
var
|
|
3578
|
-
l[
|
|
3577
|
+
var x = S + v, b = l[x];
|
|
3578
|
+
l[x] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
3579
3579
|
}
|
|
3580
|
-
var y = this._hash.words, E = l[
|
|
3580
|
+
var y = this._hash.words, E = l[S + 0], I = l[S + 1], A = l[S + 2], C = l[S + 3], L = l[S + 4], _ = l[S + 5], R = l[S + 6], T = l[S + 7], B = l[S + 8], $ = l[S + 9], q = l[S + 10], G = l[S + 11], ae = l[S + 12], Q = l[S + 13], te = l[S + 14], ee = l[S + 15], P = y[0], N = y[1], F = y[2], M = y[3];
|
|
3581
3581
|
P = p(P, N, F, M, E, 7, u[0]), M = p(M, P, N, F, I, 12, u[1]), F = p(F, M, P, N, A, 17, u[2]), N = p(N, F, M, P, C, 22, u[3]), P = p(P, N, F, M, L, 7, u[4]), M = p(M, P, N, F, _, 12, u[5]), F = p(F, M, P, N, R, 17, u[6]), N = p(N, F, M, P, T, 22, u[7]), P = p(P, N, F, M, B, 7, u[8]), M = p(M, P, N, F, $, 12, u[9]), F = p(F, M, P, N, q, 17, u[10]), N = p(N, F, M, P, G, 22, u[11]), P = p(P, N, F, M, ae, 7, u[12]), M = p(M, P, N, F, Q, 12, u[13]), F = p(F, M, P, N, te, 17, u[14]), N = p(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 = g(P, N, F, M, E, 6, u[48]), M = g(M, P, N, F, T, 10, u[49]), F = g(F, M, P, N, te, 15, u[50]), N = g(N, F, M, P, _, 21, u[51]), P = g(P, N, F, M, ae, 6, u[52]), M = g(M, P, N, F, C, 10, u[53]), F = g(F, M, P, N, q, 15, u[54]), N = g(N, F, M, P, I, 21, u[55]), P = g(P, N, F, M, B, 6, u[56]), M = g(M, P, N, F, ee, 10, u[57]), F = g(F, M, P, N, R, 15, u[58]), N = g(N, F, M, P, Q, 21, u[59]), P = g(P, N, F, M, L, 6, u[60]), M = g(M, P, N, F, G, 10, u[61]), F = g(F, M, P, N, A, 15, u[62]), N = g(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
|
-
x
|
|
3584
|
+
var l = this._data, S = l.words, v = this._nDataBytes * 8, x = l.sigBytes * 8;
|
|
3585
|
+
S[x >>> 5] |= 128 << 24 - x % 32;
|
|
3586
3586
|
var b = t.floor(v / 4294967296), y = v;
|
|
3587
|
-
|
|
3587
|
+
S[(x + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, S[(x + 64 >>> 9 << 4) + 14] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, l.sigBytes = (S.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 p(l,
|
|
3600
|
-
var I = l + (
|
|
3601
|
-
return (I << y | I >>> 32 - y) +
|
|
3599
|
+
function p(l, S, v, x, b, y, E) {
|
|
3600
|
+
var I = l + (S & v | ~S & x) + b + E;
|
|
3601
|
+
return (I << y | I >>> 32 - y) + S;
|
|
3602
3602
|
}
|
|
3603
|
-
function d(l,
|
|
3604
|
-
var I = l + (
|
|
3605
|
-
return (I << y | I >>> 32 - y) +
|
|
3603
|
+
function d(l, S, v, x, b, y, E) {
|
|
3604
|
+
var I = l + (S & x | v & ~x) + b + E;
|
|
3605
|
+
return (I << y | I >>> 32 - y) + S;
|
|
3606
3606
|
}
|
|
3607
|
-
function f(l,
|
|
3608
|
-
var I = l + (
|
|
3609
|
-
return (I << y | I >>> 32 - y) +
|
|
3607
|
+
function f(l, S, v, x, b, y, E) {
|
|
3608
|
+
var I = l + (S ^ v ^ x) + b + E;
|
|
3609
|
+
return (I << y | I >>> 32 - y) + S;
|
|
3610
3610
|
}
|
|
3611
|
-
function g(l,
|
|
3612
|
-
var I = l + (v ^ (
|
|
3613
|
-
return (I << y | I >>> 32 - y) +
|
|
3611
|
+
function g(l, S, v, x, b, y, E) {
|
|
3612
|
+
var I = l + (v ^ (S | ~x)) + b + E;
|
|
3613
|
+
return (I << y | I >>> 32 - y) + S;
|
|
3614
3614
|
}
|
|
3615
3615
|
i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
|
|
3616
3616
|
}(Math), e.MD5;
|
|
@@ -3635,17 +3635,17 @@ function sn() {
|
|
|
3635
3635
|
]);
|
|
3636
3636
|
},
|
|
3637
3637
|
_doProcessBlock: function(h, p) {
|
|
3638
|
-
for (var d = this._hash.words, f = d[0], g = d[1], l = d[2],
|
|
3639
|
-
if (
|
|
3640
|
-
o[
|
|
3638
|
+
for (var d = this._hash.words, f = d[0], g = d[1], l = d[2], S = d[3], v = d[4], x = 0; x < 80; x++) {
|
|
3639
|
+
if (x < 16)
|
|
3640
|
+
o[x] = h[p + x] | 0;
|
|
3641
3641
|
else {
|
|
3642
|
-
var b = o[
|
|
3643
|
-
o[
|
|
3642
|
+
var b = o[x - 3] ^ o[x - 8] ^ o[x - 14] ^ o[x - 16];
|
|
3643
|
+
o[x] = 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[x];
|
|
3646
|
+
x < 20 ? y += (g & l | ~g & S) + 1518500249 : x < 40 ? y += (g ^ l ^ S) + 1859775393 : x < 60 ? y += (g & l | g & S | l & S) - 1894007588 : y += (g ^ l ^ S) - 899497514, v = S, S = l, l = g << 30 | g >>> 2, g = f, f = y;
|
|
3647
3647
|
}
|
|
3648
|
-
d[0] = d[0] + f | 0, d[1] = d[1] + g | 0, d[2] = d[2] + l | 0, d[3] = d[3] +
|
|
3648
|
+
d[0] = d[0] + f | 0, d[1] = d[1] + g | 0, d[2] = d[2] + l | 0, d[3] = d[3] + S | 0, d[4] = d[4] + v | 0;
|
|
3649
3649
|
},
|
|
3650
3650
|
_doFinalize: function() {
|
|
3651
3651
|
var h = this._data, p = h.words, d = this._nDataBytes * 8, f = h.sigBytes * 8;
|
|
@@ -3671,7 +3671,7 @@ 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 x = t.sqrt(v), b = 2; b <= x; b++)
|
|
3675
3675
|
if (!(v % b))
|
|
3676
3676
|
return !1;
|
|
3677
3677
|
return !0;
|
|
@@ -3679,29 +3679,29 @@ function $r() {
|
|
|
3679
3679
|
function g(v) {
|
|
3680
3680
|
return (v - (v | 0)) * 4294967296 | 0;
|
|
3681
3681
|
}
|
|
3682
|
-
for (var l = 2,
|
|
3683
|
-
f(l) && (
|
|
3682
|
+
for (var l = 2, S = 0; S < 64; )
|
|
3683
|
+
f(l) && (S < 8 && (u[S] = g(t.pow(l, 1 / 2))), h[S] = g(t.pow(l, 1 / 3)), S++), l++;
|
|
3684
3684
|
})();
|
|
3685
3685
|
var p = [], d = o.SHA256 = c.extend({
|
|
3686
3686
|
_doReset: function() {
|
|
3687
3687
|
this._hash = new a.init(u.slice(0));
|
|
3688
3688
|
},
|
|
3689
3689
|
_doProcessBlock: function(f, g) {
|
|
3690
|
-
for (var l = this._hash.words,
|
|
3690
|
+
for (var l = this._hash.words, S = l[0], v = l[1], x = 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
|
p[C] = f[g + C] | 0;
|
|
3693
3693
|
else {
|
|
3694
3694
|
var L = p[C - 15], _ = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, R = p[C - 2], T = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
|
|
3695
3695
|
p[C] = _ + p[C - 7] + T + p[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, $ = S & v ^ S & x ^ v & x, q = (S << 30 | S >>> 2) ^ (S << 19 | S >>> 13) ^ (S << 10 | S >>> 22), G = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25), ae = A + G + B + h[C] + p[C], Q = q + $;
|
|
3698
|
+
A = I, I = E, E = y, y = b + ae | 0, b = x, x = v, v = S, S = ae + Q | 0;
|
|
3699
3699
|
}
|
|
3700
|
-
l[0] = l[0] +
|
|
3700
|
+
l[0] = l[0] + S | 0, l[1] = l[1] + v | 0, l[2] = l[2] + x | 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, g = f.words, l = this._nDataBytes * 8,
|
|
3704
|
-
return g[
|
|
3703
|
+
var f = this._data, g = f.words, l = this._nDataBytes * 8, S = f.sigBytes * 8;
|
|
3704
|
+
return g[S >>> 5] |= 128 << 24 - S % 32, g[(S + 64 >>> 9 << 4) + 14] = t.floor(l / 4294967296), g[(S + 64 >>> 9 << 4) + 15] = l, f.sigBytes = g.length * 4, this._process(), this._hash;
|
|
3705
3705
|
},
|
|
3706
3706
|
clone: function() {
|
|
3707
3707
|
var f = c.clone.call(this);
|
|
@@ -3854,7 +3854,7 @@ function an() {
|
|
|
3854
3854
|
]);
|
|
3855
3855
|
},
|
|
3856
3856
|
_doProcessBlock: function(g, l) {
|
|
3857
|
-
for (var
|
|
3857
|
+
for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], y = S[3], E = S[4], I = S[5], A = S[6], C = S[7], L = v.high, _ = v.low, R = x.high, T = x.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, Fe = B, je = $, Xe = q, Ye = G, xe = ae, Pe = Q, at = te, Et = ee, Nt = P, At = N, Jt = F, _t = M, ke = 0; ke < 80; ke++) {
|
|
3858
3858
|
var Ce, Ze, Ct = d[ke];
|
|
3859
3859
|
if (ke < 16)
|
|
3860
3860
|
Ze = Ct.high = g[l + ke * 2] | 0, Ce = Ct.low = g[l + ke * 2 + 1] | 0;
|
|
@@ -3865,13 +3865,13 @@ function an() {
|
|
|
3865
3865
|
var Dn = xe & at ^ ~xe & Nt, os = Pe & Et ^ ~Pe & At, Tn = J & ue ^ J & Fe ^ ue & Fe, Pn = j & X ^ j & je ^ X & je, 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 = (xe >>> 14 | Pe << 18) ^ (xe >>> 18 | Pe << 14) ^ (xe << 23 | Pe >>> 9), Mn = (Pe >>> 14 | xe << 18) ^ (Pe >>> 18 | xe << 14) ^ (Pe << 23 | xe >>> 9), us = p[ke], Ln = us.high, hs = us.low, We = _t + Mn, ft = Jt + Bn + (We >>> 0 < _t >>> 0 ? 1 : 0), We = We + os, ft = ft + Dn + (We >>> 0 < os >>> 0 ? 1 : 0), We = We + hs, ft = ft + Ln + (We >>> 0 < hs >>> 0 ? 1 : 0), We = We + Ce, ft = ft + Ze + (We >>> 0 < Ce >>> 0 ? 1 : 0), ds = cs + Pn, Nn = kn + Tn + (ds >>> 0 < cs >>> 0 ? 1 : 0);
|
|
3866
3866
|
Jt = Nt, _t = At, Nt = at, At = Et, at = xe, Et = Pe, Pe = Ye + We | 0, xe = Xe + ft + (Pe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, Xe = Fe, Ye = je, Fe = ue, je = X, ue = J, X = j, j = We + ds | 0, J = ft + Nn + (j >>> 0 < We >>> 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 = x.low = T + X, x.high = R + ue + (T >>> 0 < X >>> 0 ? 1 : 0), $ = b.low = $ + je, b.high = B + Fe + ($ >>> 0 < je >>> 0 ? 1 : 0), G = y.low = G + Ye, y.high = q + Xe + (G >>> 0 < Ye >>> 0 ? 1 : 0), Q = E.low = Q + Pe, E.high = ae + xe + (Q >>> 0 < Pe >>> 0 ? 1 : 0), ee = I.low = ee + Et, I.high = te + at + (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 g = this._data, l = g.words,
|
|
3872
|
-
l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(
|
|
3873
|
-
var
|
|
3874
|
-
return
|
|
3871
|
+
var g = this._data, l = g.words, S = this._nDataBytes * 8, v = g.sigBytes * 8;
|
|
3872
|
+
l[v >>> 5] |= 128 << 24 - v % 32, l[(v + 128 >>> 10 << 5) + 30] = Math.floor(S / 4294967296), l[(v + 128 >>> 10 << 5) + 31] = S, g.sigBytes = l.length * 4, this._process();
|
|
3873
|
+
var x = this._hash.toX32();
|
|
3874
|
+
return x;
|
|
3875
3875
|
},
|
|
3876
3876
|
clone: function() {
|
|
3877
3877
|
var g = s.clone.call(this);
|
|
@@ -3923,14 +3923,14 @@ function Mo() {
|
|
|
3923
3923
|
return function(t) {
|
|
3924
3924
|
var i = e, s = i.lib, a = s.WordArray, c = s.Hasher, o = i.x64, u = o.Word, h = i.algo, p = [], d = [], f = [];
|
|
3925
3925
|
(function() {
|
|
3926
|
-
for (var
|
|
3927
|
-
p[
|
|
3928
|
-
var b = v % 5, y = (2 *
|
|
3929
|
-
|
|
3926
|
+
for (var S = 1, v = 0, x = 0; x < 24; x++) {
|
|
3927
|
+
p[S + 5 * v] = (x + 1) * (x + 2) / 2 % 64;
|
|
3928
|
+
var b = v % 5, y = (2 * S + 3 * v) % 5;
|
|
3929
|
+
S = b, v = y;
|
|
3930
3930
|
}
|
|
3931
|
-
for (var
|
|
3931
|
+
for (var S = 0; S < 5; S++)
|
|
3932
3932
|
for (var v = 0; v < 5; v++)
|
|
3933
|
-
d[
|
|
3933
|
+
d[S + 5 * v] = v + (2 * S + 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) {
|
|
@@ -3944,8 +3944,8 @@ function Mo() {
|
|
|
3944
3944
|
})();
|
|
3945
3945
|
var g = [];
|
|
3946
3946
|
(function() {
|
|
3947
|
-
for (var
|
|
3948
|
-
g[
|
|
3947
|
+
for (var S = 0; S < 25; S++)
|
|
3948
|
+
g[S] = u.create();
|
|
3949
3949
|
})();
|
|
3950
3950
|
var l = h.SHA3 = c.extend({
|
|
3951
3951
|
/**
|
|
@@ -3960,21 +3960,21 @@ function Mo() {
|
|
|
3960
3960
|
outputLength: 512
|
|
3961
3961
|
}),
|
|
3962
3962
|
_doReset: function() {
|
|
3963
|
-
for (var
|
|
3964
|
-
|
|
3963
|
+
for (var S = this._state = [], v = 0; v < 25; v++)
|
|
3964
|
+
S[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(S, v) {
|
|
3968
|
+
for (var x = this._state, b = this.blockSize / 2, y = 0; y < b; y++) {
|
|
3969
|
+
var E = S[v + 2 * y], I = S[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 = x[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 = x[L + 5 * T];
|
|
3978
3978
|
_ ^= A.high, R ^= A.low;
|
|
3979
3979
|
}
|
|
3980
3980
|
var B = g[L];
|
|
@@ -3982,31 +3982,31 @@ function Mo() {
|
|
|
3982
3982
|
}
|
|
3983
3983
|
for (var L = 0; L < 5; L++)
|
|
3984
3984
|
for (var $ = g[(L + 4) % 5], q = g[(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 =
|
|
3985
|
+
var A = x[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 = x[Q], te = A.high, ee = A.low, P = p[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
3991
|
var N = g[d[Q]];
|
|
3992
3992
|
N.high = _, N.low = R;
|
|
3993
3993
|
}
|
|
3994
|
-
var F = g[0], M =
|
|
3994
|
+
var F = g[0], M = x[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 = x[Q], J = g[Q], j = g[(L + 1) % 5 + 5 * T], ue = g[(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 = x[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 S = this._data, v = S.words;
|
|
4007
4007
|
this._nDataBytes * 8;
|
|
4008
|
-
var
|
|
4009
|
-
v[
|
|
4008
|
+
var x = S.sigBytes * 8, b = this.blockSize * 32;
|
|
4009
|
+
v[x >>> 5] |= 1 << 24 - x % 32, v[(t.ceil((x + 1) / b) * b >>> 5) - 1] |= 128, S.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 S = c.clone.call(this), v = S._state = this._state.slice(0), x = 0; x < 25; x++)
|
|
4018
|
+
v[x] = v[x].clone();
|
|
4019
|
+
return S;
|
|
4020
4020
|
}
|
|
4021
4021
|
});
|
|
4022
4022
|
i.SHA3 = c._createHelper(l), i.HmacSHA3 = c._createHmacHelper(l);
|
|
@@ -4377,7 +4377,7 @@ function Lo() {
|
|
|
4377
4377
|
var R = this._hash.words, T = f.words, B = g.words, $ = u.words, q = h.words, G = p.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 += S(te, ee, P) + T[0] : C < 32 ? X += v(te, ee, P) + T[1] : C < 48 ? X += x(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 += x(M, J, j) + B[2] : C < 64 ? X += v(M, J, j) + B[3] : X += S(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 S(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 x(I, A, C) {
|
|
4404
4404
|
return (I | ~A) ^ C;
|
|
4405
4405
|
}
|
|
4406
4406
|
function b(I, A, C) {
|
|
@@ -4440,8 +4440,8 @@ function Kr() {
|
|
|
4440
4440
|
u = this._hasher = new u.init(), typeof h == "string" && (h = c.parse(h));
|
|
4441
4441
|
var p = u.blockSize, d = p * 4;
|
|
4442
4442
|
h.sigBytes > d && (h = u.finalize(h)), h.clamp();
|
|
4443
|
-
for (var f = this._oKey = h.clone(), g = this._iKey = h.clone(), l = f.words,
|
|
4444
|
-
l[v] ^= 1549556828,
|
|
4443
|
+
for (var f = this._oKey = h.clone(), g = this._iKey = h.clone(), l = f.words, S = g.words, v = 0; v < p; v++)
|
|
4444
|
+
l[v] ^= 1549556828, S[v] ^= 909522486;
|
|
4445
4445
|
f.sigBytes = g.sigBytes = d, this.reset();
|
|
4446
4446
|
},
|
|
4447
4447
|
/**
|
|
@@ -4542,15 +4542,15 @@ function No() {
|
|
|
4542
4542
|
* var key = kdf.compute(password, salt);
|
|
4543
4543
|
*/
|
|
4544
4544
|
compute: function(p, d) {
|
|
4545
|
-
for (var f = this.cfg, g = u.create(f.hasher, p), l = a.create(),
|
|
4546
|
-
var E = g.update(d).finalize(
|
|
4545
|
+
for (var f = this.cfg, g = u.create(f.hasher, p), l = a.create(), S = a.create([1]), v = l.words, x = S.words, b = f.keySize, y = f.iterations; v.length < b; ) {
|
|
4546
|
+
var E = g.update(d).finalize(S);
|
|
4547
4547
|
g.reset();
|
|
4548
4548
|
for (var I = E.words, A = I.length, C = E, L = 1; L < y; L++) {
|
|
4549
4549
|
C = g.finalize(C), g.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), x[0]++;
|
|
4554
4554
|
}
|
|
4555
4555
|
return l.sigBytes = b * 4, l;
|
|
4556
4556
|
}
|
|
@@ -4609,9 +4609,9 @@ function yt() {
|
|
|
4609
4609
|
* var key = kdf.compute(password, salt);
|
|
4610
4610
|
*/
|
|
4611
4611
|
compute: function(h, p) {
|
|
4612
|
-
for (var d, f = this.cfg, g = f.hasher.create(), l = a.create(),
|
|
4612
|
+
for (var d, f = this.cfg, g = f.hasher.create(), l = a.create(), S = l.words, v = f.keySize, x = f.iterations; S.length < v; ) {
|
|
4613
4613
|
d && g.update(d), d = g.update(h).finalize(p), g.reset();
|
|
4614
|
-
for (var b = 1; b <
|
|
4614
|
+
for (var b = 1; b < x; b++)
|
|
4615
4615
|
d = g.finalize(d), g.reset();
|
|
4616
4616
|
l.concat(d);
|
|
4617
4617
|
}
|
|
@@ -4817,7 +4817,7 @@ function Ae() {
|
|
|
4817
4817
|
init: function(_, R) {
|
|
4818
4818
|
this._cipher = _, this._iv = R;
|
|
4819
4819
|
}
|
|
4820
|
-
}),
|
|
4820
|
+
}), S = g.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 = {}, x = 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: S,
|
|
4904
|
+
padding: x
|
|
4905
4905
|
}),
|
|
4906
4906
|
reset: function() {
|
|
4907
4907
|
var _;
|
|
@@ -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 = [], p = [], d = [], f = [], g = [], l = [],
|
|
5444
|
+
var t = e, i = t.lib, s = i.BlockCipher, a = t.algo, c = [], o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [];
|
|
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;
|
|
@@ -5451,10 +5451,10 @@ function Jo() {
|
|
|
5451
5451
|
var C = b[E], L = b[C], _ = b[L], R = b[A] * 257 ^ A * 16843008;
|
|
5452
5452
|
u[E] = R << 24 | R >>> 8, h[E] = R << 16 | R >>> 16, p[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, g[A] = R << 16 | R >>> 16, l[A] = R << 8 | R >>> 24,
|
|
5454
|
+
f[A] = R << 24 | R >>> 8, g[A] = R << 16 | R >>> 16, l[A] = R << 8 | R >>> 24, S[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], x = a.AES = s.extend({
|
|
5458
5458
|
_doReset: function() {
|
|
5459
5459
|
var b;
|
|
5460
5460
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
@@ -5466,7 +5466,7 @@ 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]] ^ g[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^
|
|
5469
|
+
T < 4 || _ <= 4 ? R[T] = b : R[T] = f[c[b >>> 24]] ^ g[c[b >>> 16 & 255]] ^ l[c[b >>> 8 & 255]] ^ S[c[b & 255]];
|
|
5470
5470
|
}
|
|
5471
5471
|
}
|
|
5472
5472
|
},
|
|
@@ -5475,7 +5475,7 @@ function Jo() {
|
|
|
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, g, l,
|
|
5478
|
+
b[y + 1] = b[y + 3], b[y + 3] = E, this._doCryptBlock(b, y, this._invKeySchedule, f, g, l, S, 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(x);
|
|
5493
5493
|
}(), e.AES;
|
|
5494
5494
|
});
|
|
5495
5495
|
}(Er)), Er.exports;
|
|
@@ -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, x = v.words, b = [], y = 0; y < 56; y++) {
|
|
6151
6151
|
var E = o[y] - 1;
|
|
6152
|
-
b[y] =
|
|
6152
|
+
b[y] = x[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, x) {
|
|
6166
|
+
this._doCryptBlock(v, x, this._subKeys);
|
|
6167
6167
|
},
|
|
6168
|
-
decryptBlock: function(v,
|
|
6169
|
-
this._doCryptBlock(v,
|
|
6168
|
+
decryptBlock: function(v, x) {
|
|
6169
|
+
this._doCryptBlock(v, x, this._invSubKeys);
|
|
6170
6170
|
},
|
|
6171
|
-
_doCryptBlock: function(v,
|
|
6172
|
-
this._lBlock = v[
|
|
6171
|
+
_doCryptBlock: function(v, x, b) {
|
|
6172
|
+
this._lBlock = v[x], this._rBlock = v[x + 1], g.call(this, 4, 252645135), g.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), g.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
6175
|
C |= p[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 = _, g.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), g.call(this, 16, 65535), g.call(this, 4, 252645135), v[
|
|
6179
|
+
this._lBlock = this._rBlock, this._rBlock = _, g.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), g.call(this, 16, 65535), g.call(this, 4, 252645135), v[x] = this._lBlock, v[x + 1] = this._rBlock;
|
|
6180
6180
|
},
|
|
6181
6181
|
keySize: 64 / 32,
|
|
6182
6182
|
ivSize: 64 / 32,
|
|
6183
6183
|
blockSize: 64 / 32
|
|
6184
6184
|
});
|
|
6185
|
-
function g(v,
|
|
6186
|
-
var b = (this._lBlock >>> v ^ this._rBlock) &
|
|
6185
|
+
function g(v, x) {
|
|
6186
|
+
var b = (this._lBlock >>> v ^ this._rBlock) & x;
|
|
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, x) {
|
|
6190
|
+
var b = (this._rBlock >>> v ^ this._lBlock) & x;
|
|
6191
6191
|
this._lBlock ^= b, this._rBlock ^= b << v;
|
|
6192
6192
|
}
|
|
6193
6193
|
t.DES = a._createHelper(f);
|
|
6194
|
-
var
|
|
6194
|
+
var S = c.TripleDES = a.extend({
|
|
6195
6195
|
_doReset: function() {
|
|
6196
|
-
var v = this._key,
|
|
6197
|
-
if (
|
|
6196
|
+
var v = this._key, x = v.words;
|
|
6197
|
+
if (x.length !== 2 && x.length !== 4 && x.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 = x.slice(0, 2), y = x.length < 4 ? x.slice(0, 2) : x.slice(2, 4), E = x.length < 6 ? x.slice(0, 2) : x.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, x) {
|
|
6203
|
+
this._des1.encryptBlock(v, x), this._des2.decryptBlock(v, x), this._des3.encryptBlock(v, x);
|
|
6204
6204
|
},
|
|
6205
|
-
decryptBlock: function(v,
|
|
6206
|
-
this._des3.decryptBlock(v,
|
|
6205
|
+
decryptBlock: function(v, x) {
|
|
6206
|
+
this._des3.decryptBlock(v, x), this._des2.encryptBlock(v, x), this._des1.decryptBlock(v, x);
|
|
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(S);
|
|
6213
6213
|
}(), e.TripleDES;
|
|
6214
6214
|
});
|
|
6215
6215
|
}(Ar)), Ar.exports;
|
|
@@ -6226,10 +6226,10 @@ function Xo() {
|
|
|
6226
6226
|
for (var h = this._key, p = h.words, d = h.sigBytes, f = this._S = [], g = 0; g < 256; g++)
|
|
6227
6227
|
f[g] = g;
|
|
6228
6228
|
for (var g = 0, l = 0; g < 256; g++) {
|
|
6229
|
-
var
|
|
6229
|
+
var S = g % d, v = p[S >>> 2] >>> 24 - S % 4 * 8 & 255;
|
|
6230
6230
|
l = (l + f[g] + v) % 256;
|
|
6231
|
-
var
|
|
6232
|
-
f[g] = f[l], f[l] =
|
|
6231
|
+
var x = f[g];
|
|
6232
|
+
f[g] = f[l], f[l] = x;
|
|
6233
6233
|
}
|
|
6234
6234
|
this._i = this._j = 0;
|
|
6235
6235
|
},
|
|
@@ -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
|
+
], S = 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,
|
|
@@ -6302,10 +6302,10 @@ function Yo() {
|
|
|
6302
6302
|
for (var g = 0; g < 4; g++)
|
|
6303
6303
|
p.call(this);
|
|
6304
6304
|
for (var g = 0; g < 8; g++)
|
|
6305
|
-
|
|
6305
|
+
S[g] ^= l[g + 4 & 7];
|
|
6306
6306
|
if (f) {
|
|
6307
|
-
var v = f.words,
|
|
6308
|
-
|
|
6307
|
+
var v = f.words, x = v[0], b = v[1], y = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, I = y >>> 16 | E & 4294901760, A = E << 16 | y & 65535;
|
|
6308
|
+
S[0] ^= y, S[1] ^= I, S[2] ^= E, S[3] ^= A, S[4] ^= y, S[5] ^= I, S[6] ^= E, S[7] ^= A;
|
|
6309
6309
|
for (var g = 0; g < 4; g++)
|
|
6310
6310
|
p.call(this);
|
|
6311
6311
|
}
|
|
@@ -6324,8 +6324,8 @@ function Yo() {
|
|
|
6324
6324
|
o[g] = f[g];
|
|
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
6326
|
for (var g = 0; g < 8; g++) {
|
|
6327
|
-
var l = d[g] + f[g],
|
|
6328
|
-
u[g] =
|
|
6327
|
+
var l = d[g] + f[g], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
|
|
6328
|
+
u[g] = x ^ 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
|
}
|
|
@@ -6363,14 +6363,14 @@ function Zo() {
|
|
|
6363
6363
|
d[3] & 4294901760 | d[0] & 65535
|
|
6364
6364
|
];
|
|
6365
6365
|
this._b = 0;
|
|
6366
|
-
for (var
|
|
6366
|
+
for (var S = 0; S < 4; S++)
|
|
6367
6367
|
p.call(this);
|
|
6368
|
-
for (var
|
|
6369
|
-
l[
|
|
6368
|
+
for (var S = 0; S < 8; S++)
|
|
6369
|
+
l[S] ^= g[S + 4 & 7];
|
|
6370
6370
|
if (f) {
|
|
6371
|
-
var v = f.words,
|
|
6371
|
+
var v = f.words, x = v[0], b = v[1], y = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 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
|
|
6373
|
+
for (var S = 0; S < 4; S++)
|
|
6374
6374
|
p.call(this);
|
|
6375
6375
|
}
|
|
6376
6376
|
},
|
|
@@ -6388,8 +6388,8 @@ function Zo() {
|
|
|
6388
6388
|
o[g] = f[g];
|
|
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
6390
|
for (var g = 0; g < 8; g++) {
|
|
6391
|
-
var l = d[g] + f[g],
|
|
6392
|
-
u[g] =
|
|
6391
|
+
var l = d[g] + f[g], S = l & 65535, v = l >>> 16, x = ((S * S >>> 17) + S * v >>> 15) + v * v, b = ((l & 4294901760) * l | 0) + ((l & 65535) * l | 0);
|
|
6392
|
+
u[g] = x ^ 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 p(
|
|
7467
|
-
let
|
|
7468
|
-
return I = I ^
|
|
7466
|
+
function p(S, v) {
|
|
7467
|
+
let x = v >> 24 & 255, b = v >> 16 & 255, y = v >> 8 & 255, E = v & 255, I = S.sbox[0][x] + S.sbox[1][b];
|
|
7468
|
+
return I = I ^ S.sbox[2][y], I = I + S.sbox[3][E], I;
|
|
7469
7469
|
}
|
|
7470
|
-
function d(
|
|
7471
|
-
let b = v, y =
|
|
7470
|
+
function d(S, v, x) {
|
|
7471
|
+
let b = v, y = x, 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 ^ S.pbox[I], y = p(S, b) ^ y, E = b, b = y, y = E;
|
|
7474
|
+
return E = b, b = y, y = E, y = y ^ S.pbox[c], b = b ^ S.pbox[c + 1], { left: b, right: y };
|
|
7475
7475
|
}
|
|
7476
|
-
function f(
|
|
7477
|
-
let b = v, y =
|
|
7476
|
+
function f(S, v, x) {
|
|
7477
|
+
let b = v, y = x, 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 ^ S.pbox[I], y = p(S, b) ^ y, E = b, b = y, y = E;
|
|
7480
|
+
return E = b, b = y, y = E, y = y ^ S.pbox[1], b = b ^ S.pbox[0], { left: b, right: y };
|
|
7481
7481
|
}
|
|
7482
|
-
function g(
|
|
7482
|
+
function g(S, v, x) {
|
|
7483
7483
|
for (let A = 0; A < 4; A++) {
|
|
7484
|
-
|
|
7484
|
+
S.sbox[A] = [];
|
|
7485
7485
|
for (let C = 0; C < 256; C++)
|
|
7486
|
-
|
|
7486
|
+
S.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
|
+
S.pbox[A] = o[A] ^ v[b], b++, b >= x && (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(S, y, E), y = I.left, E = I.right, S.pbox[A] = y, S.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(S, y, E), y = I.left, E = I.right, S.sbox[A][C] = y, S.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
|
-
g(h, v,
|
|
7502
|
+
var S = this._keyPriorReset = this._key, v = S.words, x = S.sigBytes / 4;
|
|
7503
|
+
g(h, v, x);
|
|
7504
7504
|
}
|
|
7505
7505
|
},
|
|
7506
|
-
encryptBlock: function(
|
|
7507
|
-
var
|
|
7508
|
-
|
|
7506
|
+
encryptBlock: function(S, v) {
|
|
7507
|
+
var x = d(h, S[v], S[v + 1]);
|
|
7508
|
+
S[v] = x.left, S[v + 1] = x.right;
|
|
7509
7509
|
},
|
|
7510
|
-
decryptBlock: function(
|
|
7511
|
-
var
|
|
7512
|
-
|
|
7510
|
+
decryptBlock: function(S, v) {
|
|
7511
|
+
var x = f(h, S[v], S[v + 1]);
|
|
7512
|
+
S[v] = x.left, S[v + 1] = x.right;
|
|
7513
7513
|
},
|
|
7514
7514
|
blockSize: 64 / 32,
|
|
7515
7515
|
keySize: 128 / 32,
|
|
@@ -7663,7 +7663,7 @@ function Jr(r, n, e, t) {
|
|
|
7663
7663
|
return e ? 0 : r.getTimezoneOffset();
|
|
7664
7664
|
}, l = function() {
|
|
7665
7665
|
return u0(r);
|
|
7666
|
-
},
|
|
7666
|
+
}, S = function() {
|
|
7667
7667
|
return h0(r);
|
|
7668
7668
|
}, v = { d: function() {
|
|
7669
7669
|
return a();
|
|
@@ -7730,10 +7730,10 @@ function Jr(r, n, e, t) {
|
|
|
7730
7730
|
}, WW: function() {
|
|
7731
7731
|
return $e(l());
|
|
7732
7732
|
}, N: function() {
|
|
7733
|
-
return
|
|
7733
|
+
return S();
|
|
7734
7734
|
} };
|
|
7735
|
-
return n.replace(n0, function(
|
|
7736
|
-
return
|
|
7735
|
+
return n.replace(n0, function(x) {
|
|
7736
|
+
return x in v ? v[x]() : x.slice(1, x.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" }, Ve = { 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"] }, $e = function(n) {
|
|
@@ -7752,18 +7752,18 @@ var Ta = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
7752
7752
|
return u[s + "FullYear"]();
|
|
7753
7753
|
}, l = function() {
|
|
7754
7754
|
return h[s + "Date"]();
|
|
7755
|
-
},
|
|
7755
|
+
}, S = function() {
|
|
7756
7756
|
return h[s + "Month"]();
|
|
7757
7757
|
}, v = function() {
|
|
7758
7758
|
return h[s + "FullYear"]();
|
|
7759
|
-
},
|
|
7759
|
+
}, x = function() {
|
|
7760
7760
|
return p[s + "Date"]();
|
|
7761
7761
|
}, b = function() {
|
|
7762
7762
|
return p[s + "Month"]();
|
|
7763
7763
|
}, y = function() {
|
|
7764
7764
|
return p[s + "FullYear"]();
|
|
7765
7765
|
};
|
|
7766
|
-
return g() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e &&
|
|
7766
|
+
return g() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && S() === t && l() === i ? o ? "Ysd" : "Yesterday" : y() === e && b() === t && x() === 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);
|
|
@@ -8050,10 +8050,8 @@ class y0 {
|
|
|
8050
8050
|
});
|
|
8051
8051
|
}));
|
|
8052
8052
|
m(this, "logMethod", (n, e = console.log) => (...t) => {
|
|
8053
|
-
if (this.logLevel > n)
|
|
8054
|
-
return;
|
|
8055
8053
|
let i = wr();
|
|
8056
|
-
e(i, ...t);
|
|
8054
|
+
this.logLevel <= n && e(i, ...t);
|
|
8057
8055
|
let s = Ue.paramArrayToString(t);
|
|
8058
8056
|
n > 0 && this.addLog(s);
|
|
8059
8057
|
});
|
|
@@ -9136,9 +9134,9 @@ const D = (r, n) => (e, t, i) => {
|
|
|
9136
9134
|
H.interface(c, t, ...u);
|
|
9137
9135
|
const h = s.apply(this, a);
|
|
9138
9136
|
return Promise.resolve(h).then((d) => d).catch((d) => d).then((d) => {
|
|
9139
|
-
var
|
|
9137
|
+
var S;
|
|
9140
9138
|
let f = "";
|
|
9141
|
-
const g = d instanceof Error, l = g && ((
|
|
9139
|
+
const g = d instanceof Error, l = g && ((S = e.constructor) == null ? void 0 : S.logError);
|
|
9142
9140
|
if (!(!n && !g)) {
|
|
9143
9141
|
if (l)
|
|
9144
9142
|
f = d;
|
|
@@ -9386,8 +9384,8 @@ const k0 = "https://pgw.rtn.aliyuncs.com", B0 = "https://gw.rtn.aliyuncs.com", F
|
|
|
9386
9384
|
fetch(p).then((f) => f.json()).then((f) => {
|
|
9387
9385
|
var g, l;
|
|
9388
9386
|
if (f.code === 0) {
|
|
9389
|
-
const
|
|
9390
|
-
this.expiration =
|
|
9387
|
+
const S = (g = f.data) == null ? void 0 : g.oss, v = (l = f.data) == null ? void 0 : l.sls;
|
|
9388
|
+
this.expiration = S.expiration || v.expiration, this.emit("onTokenUpdate", S, v), H.event(`[${ti.logName}]`, "getToken", S, v);
|
|
9391
9389
|
} else
|
|
9392
9390
|
throw new Error();
|
|
9393
9391
|
this.slsReporter.reportSTSResult(200, d);
|
|
@@ -10619,43 +10617,47 @@ const ge = (bt = class extends pn {
|
|
|
10619
10617
|
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
10620
10618
|
try {
|
|
10621
10619
|
const h = (a = this.streamTracks) == null ? void 0 : a.find(
|
|
10622
|
-
({ ssrc:
|
|
10620
|
+
({ ssrc: x, type: b, msid: y }) => b === "audio" && x && y === k.Audio
|
|
10623
10621
|
), p = yield this.compareAndPublish(h, t.audio, k.Audio);
|
|
10624
10622
|
p && (i = p);
|
|
10625
10623
|
const d = (c = this.streamTracks) == null ? void 0 : c.find(
|
|
10626
|
-
({ ssrc:
|
|
10624
|
+
({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.VideoLarge
|
|
10627
10625
|
), f = yield this.compareAndPublish(d, t.video, k.VideoLarge);
|
|
10628
10626
|
f && (i = f);
|
|
10629
10627
|
const g = (o = this.streamTracks) == null ? void 0 : o.find(
|
|
10630
|
-
({ ssrc:
|
|
10628
|
+
({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.VideoSmall
|
|
10631
10629
|
), l = yield this.compareAndPublish(
|
|
10632
10630
|
g,
|
|
10633
10631
|
t.videoSmall,
|
|
10634
10632
|
k.VideoSmall
|
|
10635
10633
|
);
|
|
10636
10634
|
l && (i = l);
|
|
10637
|
-
const
|
|
10638
|
-
({ ssrc:
|
|
10639
|
-
), v = yield this.compareAndPublish(
|
|
10640
|
-
if (v && (i = v), !i)
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
}
|
|
10657
|
-
|
|
10658
|
-
|
|
10635
|
+
const S = (u = this.streamTracks) == null ? void 0 : u.find(
|
|
10636
|
+
({ ssrc: x, type: b, msid: y }) => b === "video" && x && y === k.Screen
|
|
10637
|
+
), v = yield this.compareAndPublish(S, t.screen, k.Screen);
|
|
10638
|
+
if (v && (i = v), !i && e === rt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
|
|
10639
|
+
const x = this.rtsManager.publishingTracks.find(({ type: y }) => y === "video"), b = this.rtsManager.publishingTracks.find(({ type: y }) => y === "audio");
|
|
10640
|
+
(x || b) && (yield this.rtsManager.waitPublishSender(
|
|
10641
|
+
this.url,
|
|
10642
|
+
!x,
|
|
10643
|
+
x ? x.msid : b == null ? void 0 : b.msid
|
|
10644
|
+
)), i = {
|
|
10645
|
+
type: gt.Add,
|
|
10646
|
+
userid: this.userId,
|
|
10647
|
+
sessionid: "",
|
|
10648
|
+
displayname: this.name,
|
|
10649
|
+
pubid: this.publishId,
|
|
10650
|
+
resume: !0,
|
|
10651
|
+
subscribe: {
|
|
10652
|
+
signal: "",
|
|
10653
|
+
pullstreamurl: this.url
|
|
10654
|
+
},
|
|
10655
|
+
callid: this.callId,
|
|
10656
|
+
tracks: this.rtsManager.publishingTracks,
|
|
10657
|
+
traceid: this.traceId
|
|
10658
|
+
};
|
|
10659
|
+
} else
|
|
10660
|
+
return;
|
|
10659
10661
|
yield this.syncPublishToRoomServer(i, t, s);
|
|
10660
10662
|
} catch (h) {
|
|
10661
10663
|
const { code: p } = h != null ? h : {}, d = this.url;
|
|
@@ -10937,12 +10939,12 @@ const ge = (bt = class extends pn {
|
|
|
10937
10939
|
const g = this.getMediaStats(f.mediaSourceId);
|
|
10938
10940
|
f._source = g;
|
|
10939
10941
|
const l = this.monitorDataCache[h];
|
|
10940
|
-
let
|
|
10942
|
+
let S;
|
|
10941
10943
|
if ((l == null ? void 0 : l.length) > 0) {
|
|
10942
10944
|
const v = l[l.length - 1] || {}, { _last: b } = v;
|
|
10943
|
-
|
|
10945
|
+
S = Ft(v, ["_last"]);
|
|
10944
10946
|
}
|
|
10945
|
-
(l == null ? void 0 : l.length) >= Ha && this.reportPublishMonitor(h), f._last =
|
|
10947
|
+
(l == null ? void 0 : l.length) >= Ha && this.reportPublishMonitor(h), f._last = S, f._codec = u.codec || "", this.monitorDataCache[h].push(f);
|
|
10946
10948
|
});
|
|
10947
10949
|
}), o.forEach((u) => {
|
|
10948
10950
|
this.reportPublishMonitor(u);
|
|
@@ -11567,14 +11569,14 @@ const _e = (ut = class extends pn {
|
|
|
11567
11569
|
});
|
|
11568
11570
|
this.streamInfo = new bi(), this.remoteUserInfo = new tc(this), this.parameter = d, this.streamInfo.on(Le.Remote, (g) => {
|
|
11569
11571
|
this.emit(Le.Remote, g, this.userId);
|
|
11570
|
-
}), 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", (g, l,
|
|
11571
|
-
this.emit("audioSubscribeStateChanged", this.uid, g, l,
|
|
11572
|
-
}), this.videoSubState = new Ut(), this.videoSubState.on("change", (g, l,
|
|
11573
|
-
this.emit("videoSubscribeStateChanged", this.uid, g, l,
|
|
11574
|
-
}), this.screenSubState = new Ut(), this.screenSubState.on("change", (g, l,
|
|
11575
|
-
this.emit("screenSubscribeStateChanged", this.uid, g, l,
|
|
11576
|
-
}), this.dataSubState = new Ut(), this.dataSubState.on("change", (g, l,
|
|
11577
|
-
this.emit("dataSubscribeStateChanged", this.uid, g, l,
|
|
11572
|
+
}), 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", (g, l, S) => {
|
|
11573
|
+
this.emit("audioSubscribeStateChanged", this.uid, g, l, S);
|
|
11574
|
+
}), this.videoSubState = new Ut(), this.videoSubState.on("change", (g, l, S) => {
|
|
11575
|
+
this.emit("videoSubscribeStateChanged", this.uid, g, l, S);
|
|
11576
|
+
}), this.screenSubState = new Ut(), this.screenSubState.on("change", (g, l, S) => {
|
|
11577
|
+
this.emit("screenSubscribeStateChanged", this.uid, g, l, S);
|
|
11578
|
+
}), this.dataSubState = new Ut(), this.dataSubState.on("change", (g, l, S) => {
|
|
11579
|
+
this.emit("dataSubscribeStateChanged", this.uid, g, l, S);
|
|
11578
11580
|
}), this.playoutVolume = p;
|
|
11579
11581
|
}
|
|
11580
11582
|
isWantSubAudio() {
|
|
@@ -11720,12 +11722,12 @@ const _e = (ut = class extends pn {
|
|
|
11720
11722
|
var f, g;
|
|
11721
11723
|
let c = e;
|
|
11722
11724
|
if (!c) {
|
|
11723
|
-
const { hasAudio: l, hasVideo:
|
|
11725
|
+
const { hasAudio: l, hasVideo: S, hasScreen: v, hasData: x } = (f = this.streamInfo) != null ? f : {};
|
|
11724
11726
|
c = {
|
|
11725
11727
|
audio: this.wantSubAudio && l,
|
|
11726
|
-
video: this.wantSubVideo &&
|
|
11728
|
+
video: this.wantSubVideo && S,
|
|
11727
11729
|
screen: this.wantSubScreen && v,
|
|
11728
|
-
data: ((g = this.parameter.data) == null ? void 0 : g.enableSubDataChannel) &&
|
|
11730
|
+
data: ((g = this.parameter.data) == null ? void 0 : g.enableSubDataChannel) && x
|
|
11729
11731
|
};
|
|
11730
11732
|
}
|
|
11731
11733
|
this.streamInfo.markRemoteTrackSubscribing(c);
|
|
@@ -12000,9 +12002,9 @@ const _e = (ut = class extends pn {
|
|
|
12000
12002
|
};
|
|
12001
12003
|
}
|
|
12002
12004
|
updateSubscribe(e) {
|
|
12003
|
-
var a, c, o, u, h, p, d, f, g, l,
|
|
12005
|
+
var a, c, o, u, h, p, d, f, g, l, S, v, x, b, y, E, I;
|
|
12004
12006
|
const t = Date.now(), i = {}, s = {};
|
|
12005
|
-
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 && ((p = this.streamInfo) != null && p.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 || !((g = this.streamInfo) != null && g.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 && ((
|
|
12007
|
+
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 && ((p = this.streamInfo) != null && p.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 || !((g = this.streamInfo) != null && g.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 && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.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) {
|
|
12006
12008
|
if (H.event(`[${ut.logName}]`, "reconnect, try to resume"), this.streamInfo.hasAudio && !i.audio) {
|
|
12007
12009
|
const A = this.rtsManager.getStreamByMsid({
|
|
12008
12010
|
url: this.streamUrl,
|
|
@@ -12461,7 +12463,7 @@ const ve = (Me = class extends we {
|
|
|
12461
12463
|
}
|
|
12462
12464
|
httpPublish(a, c) {
|
|
12463
12465
|
return w(this, arguments, function* (e, t, i = !1, s = rt.MANUAL) {
|
|
12464
|
-
var
|
|
12466
|
+
var x, b;
|
|
12465
12467
|
let o;
|
|
12466
12468
|
const { publishStream: u, videoSmallStream: h, screenStream: p, vMsid: d } = yield this.localStreamManager.createHTTPPublishStream();
|
|
12467
12469
|
if (!u)
|
|
@@ -12475,7 +12477,7 @@ const ve = (Me = class extends we {
|
|
|
12475
12477
|
this.encodedInsertableStreams && (f.encodedInsertableStreams = !0), f.answerSdpHook = (y) => {
|
|
12476
12478
|
const E = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(y);
|
|
12477
12479
|
return E != null && E[0] && (o = E[0]), y;
|
|
12478
|
-
}, (b = (
|
|
12480
|
+
}, (b = (x = this.parameter) == null ? void 0 : x.net) != null && b.useTCP && (f.tcpOnly = !0), f.beforeRetry = (y) => w(this, null, function* () {
|
|
12479
12481
|
this._rtsReconnecting = !0, this.publishRetryHook && this.publishRetryHook();
|
|
12480
12482
|
const { publishStream: E, vMsid: I } = yield this.localStreamManager.createHTTPPublishStream();
|
|
12481
12483
|
if (!E)
|
|
@@ -12485,11 +12487,11 @@ const ve = (Me = class extends we {
|
|
|
12485
12487
|
});
|
|
12486
12488
|
return y.stream = E, A.aMsid ? y.aMsid = A.aMsid : y.aMsid = [], A.vMsid ? y.vMsid = A.vMsid : y.vMsid = [], y;
|
|
12487
12489
|
}), this._rtsPeerConnectionType = "publish";
|
|
12488
|
-
let g = !u.hasVideo, l = d,
|
|
12490
|
+
let g = !u.hasVideo, l = d, S = "";
|
|
12489
12491
|
this.startConnect();
|
|
12490
12492
|
const v = Date.now();
|
|
12491
12493
|
try {
|
|
12492
|
-
|
|
12494
|
+
S = yield this.rts.publish(e, u, f);
|
|
12493
12495
|
} catch (y) {
|
|
12494
12496
|
this.setConnected(!1);
|
|
12495
12497
|
const E = 2e3 - (Date.now() - v);
|
|
@@ -12509,7 +12511,7 @@ const ve = (Me = class extends we {
|
|
|
12509
12511
|
v
|
|
12510
12512
|
), V.fromRtsError(y);
|
|
12511
12513
|
}
|
|
12512
|
-
H.event(`[${Me.logName}]`, "rts publish success",
|
|
12514
|
+
H.event(`[${Me.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(
|
|
12513
12515
|
i,
|
|
12514
12516
|
e,
|
|
12515
12517
|
t,
|
|
@@ -12518,13 +12520,13 @@ const ve = (Me = class extends we {
|
|
|
12518
12520
|
u.hasVideo && d === k.Screen,
|
|
12519
12521
|
u.hasAudio,
|
|
12520
12522
|
0,
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
+
S,
|
|
12524
|
+
S,
|
|
12523
12525
|
v
|
|
12524
12526
|
);
|
|
12525
12527
|
try {
|
|
12526
12528
|
const y = Date.now();
|
|
12527
|
-
return this._pcTraceId =
|
|
12529
|
+
return this._pcTraceId = S, this.setConnected(!0), this._publishingTracks = this.rts.getPublishTrackInfoList(), h && (yield this.publishAdd(
|
|
12528
12530
|
e,
|
|
12529
12531
|
h,
|
|
12530
12532
|
t,
|
|
@@ -12547,11 +12549,11 @@ const ve = (Me = class extends we {
|
|
|
12547
12549
|
y,
|
|
12548
12550
|
this._localJoinTime,
|
|
12549
12551
|
g ? k.Audio : f.vMsid,
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
+
S || "",
|
|
12553
|
+
S || "",
|
|
12552
12554
|
s
|
|
12553
12555
|
), {
|
|
12554
|
-
traceId:
|
|
12556
|
+
traceId: S,
|
|
12555
12557
|
l1ip: o
|
|
12556
12558
|
};
|
|
12557
12559
|
} catch (y) {
|
|
@@ -12582,7 +12584,7 @@ const ve = (Me = class extends we {
|
|
|
12582
12584
|
}
|
|
12583
12585
|
publishAdd(u, h, p, d) {
|
|
12584
12586
|
return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = rt.MANUAL) {
|
|
12585
|
-
var l,
|
|
12587
|
+
var l, S, v, x, b, y, E, I;
|
|
12586
12588
|
const f = Date.now(), g = this.getPubMsid(t, s);
|
|
12587
12589
|
try {
|
|
12588
12590
|
const A = yield Oa(
|
|
@@ -12606,9 +12608,9 @@ const ve = (Me = class extends we {
|
|
|
12606
12608
|
e,
|
|
12607
12609
|
i,
|
|
12608
12610
|
((l = g.vMsid) == null ? void 0 : l[0]) === k.VideoLarge,
|
|
12609
|
-
((
|
|
12611
|
+
((S = g.vMsid) == null ? void 0 : S[0]) === k.VideoSmall,
|
|
12610
12612
|
((v = g.vMsid) == null ? void 0 : v[0]) === k.Screen,
|
|
12611
|
-
((
|
|
12613
|
+
((x = g.aMsid) == null ? void 0 : x[0]) === k.Audio,
|
|
12612
12614
|
0,
|
|
12613
12615
|
this.pcTraceId,
|
|
12614
12616
|
L.traceId || "",
|
|
@@ -12645,7 +12647,7 @@ const ve = (Me = class extends we {
|
|
|
12645
12647
|
}
|
|
12646
12648
|
publishDelete(e, t) {
|
|
12647
12649
|
return w(this, null, function* () {
|
|
12648
|
-
var u, h, p, d, f, g, l,
|
|
12650
|
+
var u, h, p, d, f, g, l, S;
|
|
12649
12651
|
yield this.dcConnectingPromise;
|
|
12650
12652
|
const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === k.Audio)) == null ? void 0 : h.msid, s = (d = (p = this.publishingTracks) == null ? void 0 : p.find(({ msid: v }) => v === k.VideoLarge)) == null ? void 0 : d.msid, a = (g = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === k.Screen)) == null ? void 0 : g.msid, c = [];
|
|
12651
12653
|
t.screen && a ? c.push(a) : t.video && c.push(t.vMsid || s);
|
|
@@ -12659,7 +12661,7 @@ const ve = (Me = class extends we {
|
|
|
12659
12661
|
vMsid: c
|
|
12660
12662
|
}
|
|
12661
12663
|
])) || [];
|
|
12662
|
-
return H.event(Me.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((
|
|
12664
|
+
return H.event(Me.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
|
|
12663
12665
|
} catch (v) {
|
|
12664
12666
|
throw V.fromRtsError(v);
|
|
12665
12667
|
}
|
|
@@ -12941,20 +12943,20 @@ const ve = (Me = class extends we {
|
|
|
12941
12943
|
const d = Date.now();
|
|
12942
12944
|
let f = k.VideoLarge, g = o.video || o.screen, l = o.audio;
|
|
12943
12945
|
o.video && o.vMsid ? f = o.vMsid : o.screen && (f = k.Screen);
|
|
12944
|
-
let
|
|
12946
|
+
let S = 0, v = 0, x = 0;
|
|
12945
12947
|
const y = ((E, I) => {
|
|
12946
12948
|
let A = 0;
|
|
12947
12949
|
const C = () => {
|
|
12948
12950
|
let L;
|
|
12949
|
-
return l && !
|
|
12951
|
+
return l && !S && (L = this.rts.getSubscribeAudioStats(u.streamUrl).then((_) => {
|
|
12950
12952
|
if (_.packetsReceived > 0)
|
|
12951
|
-
|
|
12953
|
+
S = Date.now();
|
|
12952
12954
|
else if (!g)
|
|
12953
12955
|
return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : !1;
|
|
12954
12956
|
return !0;
|
|
12955
|
-
})), g && !
|
|
12957
|
+
})), g && !x && (L = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((_) => {
|
|
12956
12958
|
if (_.packetsReceived > 0 && (v = Date.now()), _.framesDecoded > 0)
|
|
12957
|
-
|
|
12959
|
+
x = Date.now();
|
|
12958
12960
|
else
|
|
12959
12961
|
return A < E ? (A++, new Promise((R) => setTimeout(() => R(C()), I))) : (H.error(`[${Me.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
|
|
12960
12962
|
return !0;
|
|
@@ -12970,34 +12972,34 @@ const ve = (Me = class extends we {
|
|
|
12970
12972
|
f,
|
|
12971
12973
|
{
|
|
12972
12974
|
fprt: v - p,
|
|
12973
|
-
ifsprtc:
|
|
12975
|
+
ifsprtc: x ? x - p : 0,
|
|
12974
12976
|
ajsub: t === le.Join ? 1 : 0,
|
|
12975
12977
|
pctid: this.pcTraceId,
|
|
12976
12978
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
12977
12979
|
sstc: d - p
|
|
12978
12980
|
}
|
|
12979
|
-
),
|
|
12981
|
+
), x && this.slsReporter.reportSubscribeFirstFrame(
|
|
12980
12982
|
t === le.Resume,
|
|
12981
12983
|
i,
|
|
12982
12984
|
s,
|
|
12983
12985
|
f,
|
|
12984
12986
|
{
|
|
12985
|
-
fvfrt:
|
|
12986
|
-
fp2fftc:
|
|
12987
|
+
fvfrt: x - p,
|
|
12988
|
+
fp2fftc: x - v,
|
|
12987
12989
|
ajsub: t === le.Join ? 1 : 0,
|
|
12988
|
-
tffrtc: t === le.Join ?
|
|
12990
|
+
tffrtc: t === le.Join ? x - this.localJoinTime : x - a,
|
|
12989
12991
|
pctid: this.pcTraceId,
|
|
12990
12992
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
12991
|
-
fvfdtc:
|
|
12993
|
+
fvfdtc: x - p
|
|
12992
12994
|
}
|
|
12993
|
-
),
|
|
12995
|
+
), S && this.slsReporter.reportSubscribeFirstPacket(
|
|
12994
12996
|
t === le.Resume,
|
|
12995
12997
|
i,
|
|
12996
12998
|
s,
|
|
12997
12999
|
k.Audio,
|
|
12998
13000
|
{
|
|
12999
|
-
fprt:
|
|
13000
|
-
ifsprtc:
|
|
13001
|
+
fprt: S - p,
|
|
13002
|
+
ifsprtc: S - p,
|
|
13001
13003
|
ajsub: t === le.Join ? 1 : 0,
|
|
13002
13004
|
pctid: this.pcTraceId,
|
|
13003
13005
|
subtid: (h == null ? void 0 : h.traceId) || "",
|
|
@@ -13275,8 +13277,8 @@ class Wa extends we {
|
|
|
13275
13277
|
for (const l of this.plugins)
|
|
13276
13278
|
try {
|
|
13277
13279
|
yield l.execute(this, e);
|
|
13278
|
-
} catch (
|
|
13279
|
-
console.error(`error in plugin-${l.name}, error: ${
|
|
13280
|
+
} catch (S) {
|
|
13281
|
+
console.error(`error in plugin-${l.name}, error: ${S}`);
|
|
13280
13282
|
}
|
|
13281
13283
|
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 = (p = this._publishAudioStream) == null ? void 0 : p.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, (g = this.previewStream) == null || g.deleteTracks({ audio: !0 }));
|
|
13282
13284
|
});
|
|
@@ -13380,7 +13382,7 @@ const Ge = (Bt = class extends we {
|
|
|
13380
13382
|
m(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13381
13383
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13382
13384
|
const i = (s) => w(this, null, function* () {
|
|
13383
|
-
if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.
|
|
13385
|
+
if (H.info(`[${Bt.logName}]`, "plugin added", s.name), !s.isSupported("6.13.4-beta.0")) {
|
|
13384
13386
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13385
13387
|
return;
|
|
13386
13388
|
}
|
|
@@ -15273,7 +15275,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15273
15275
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15274
15276
|
src: s[0].ssrc || "",
|
|
15275
15277
|
codec: s[0]._codec || ""
|
|
15276
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [],
|
|
15278
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [];
|
|
15277
15279
|
try {
|
|
15278
15280
|
if (s.forEach((R) => {
|
|
15279
15281
|
var F, M, J, j, ue, X;
|
|
@@ -15293,7 +15295,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15293
15295
|
if (f.push(N), a)
|
|
15294
15296
|
(M = R._source) != null && M.audioLevel && g.push(Xa(R._source.audioLevel)), l.push(0);
|
|
15295
15297
|
else {
|
|
15296
|
-
|
|
15298
|
+
S.push(Ya(R, "totalEncodeTime")), v.push(wt((J = R._source) == null ? void 0 : J.framesPerSecond, 100)), x.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));
|
|
15297
15299
|
const Fe = pe(R, "totalPacketSendDelay");
|
|
15298
15300
|
C.push(fe(Fe, 1 / (ee || 1), 2e3));
|
|
15299
15301
|
const je = pe(R, "qpSum");
|
|
@@ -15303,7 +15305,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15303
15305
|
const R = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
15304
15306
|
c.ailevel = g.join(","), c.arpc = l.join(","), c.arsr = R, c.aesr = R, c.publevel = -90, c.rawlevel = -90;
|
|
15305
15307
|
} else
|
|
15306
|
-
c.em =
|
|
15308
|
+
c.em = S.join(","), c.cfps = v.join(","), c.ifps = x.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(",");
|
|
15307
15309
|
} catch (R) {
|
|
15308
15310
|
}
|
|
15309
15311
|
this.log({
|
|
@@ -15324,7 +15326,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15324
15326
|
ctm: Math.floor(s[0].timestamp || 0),
|
|
15325
15327
|
src: s[0].ssrc || "",
|
|
15326
15328
|
codec: s[0]._codec || ""
|
|
15327
|
-
}, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [],
|
|
15329
|
+
}, o = [], u = [], h = [], p = [], d = [], f = [], g = [], l = [], S = [], v = [], x = [], b = [], y = [], E = [], I = [], A = [], C = [], L = [], _ = [], R = [], T = [], B = [], $ = [], q = [], G = [], ae = [], Q = [], te = [], ee = [], P = [], N = [], F = [], M = [], J = [];
|
|
15328
15330
|
try {
|
|
15329
15331
|
s.forEach((j) => {
|
|
15330
15332
|
var Ze, Ct;
|
|
@@ -15351,7 +15353,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15351
15353
|
const _t = pe(j, "fecPacketsReceived");
|
|
15352
15354
|
b.push(Rt(_t, xe));
|
|
15353
15355
|
const ke = pe(j, "retransmittedPacketsReceived"), Ce = xe + at - ke;
|
|
15354
|
-
if (
|
|
15356
|
+
if (S.push(Rt(xe - ke, Ce)), v.push(Rt(at, Ce)), l.push(Rt(ke, Ce)), x.push(Ce), M.push(0), J.push(""), a) {
|
|
15355
15357
|
E.push(Xa(j.audioLevel));
|
|
15356
15358
|
const dt = Lc(j, "synthesizedSamplesEvents");
|
|
15357
15359
|
I.push(dt);
|
|
@@ -15379,7 +15381,7 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15379
15381
|
const Gt = pe(j, "jitterBufferMinimumDelay");
|
|
15380
15382
|
Gt && ze ? N.push(fe(Gt, 1e3 / ze, 3e4)) : N.push(0);
|
|
15381
15383
|
}
|
|
15382
|
-
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = g.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser =
|
|
15384
|
+
}), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = p.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = g.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = M.join(","), c.alll = v.join(","), c.totalc = x.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(","));
|
|
15383
15385
|
} catch (j) {
|
|
15384
15386
|
}
|
|
15385
15387
|
this.log({
|
|
@@ -15400,10 +15402,10 @@ const fe = (r, n = 1, e = 6e4, t = 0) => {
|
|
|
15400
15402
|
return;
|
|
15401
15403
|
const e = [], t = [], i = [], s = [], a = [], c = [], o = [], u = [], h = [], p = [];
|
|
15402
15404
|
n.forEach((f, g) => {
|
|
15403
|
-
var
|
|
15405
|
+
var S;
|
|
15404
15406
|
if (!f.timestamp)
|
|
15405
15407
|
return;
|
|
15406
|
-
const l = (
|
|
15408
|
+
const l = (S = f._last) != null && S.timestamp ? f.timestamp - f._last.timestamp : 1e3;
|
|
15407
15409
|
e.push(fe(f.currentRoundTripTime, 1e3)), t.push(fe(f.availableOutgoingBitrate, 8, 2e8)), i.push(qe(fe(f.bytesSent, 8, 2e7), l, 25e6)), s.push(qe(fe(f.bytesReceived, 8, 2e7), l, 25e6)), a.push(0), c.push(0), g % 5 === 0 && (o.push(""), u.push(""), h.push(""), p.push(""));
|
|
15408
15410
|
});
|
|
15409
15411
|
const d = {
|
|
@@ -16921,16 +16923,16 @@ const z = (K = class extends we {
|
|
|
16921
16923
|
}
|
|
16922
16924
|
switchCamera(e, t) {
|
|
16923
16925
|
return w(this, null, function* () {
|
|
16924
|
-
var s, a, c, o, u, h, p, d, f, g, l,
|
|
16926
|
+
var s, a, c, o, u, h, p, d, f, g, l, S, v;
|
|
16925
16927
|
if (this._audioOnlyMode)
|
|
16926
16928
|
throw new V(O.ERR_INNER, "Cannot switch camera in audio only mode");
|
|
16927
16929
|
const i = {};
|
|
16928
16930
|
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)) {
|
|
16929
|
-
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (p = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : p.video) == null || d.disableVideo(), (
|
|
16930
|
-
const
|
|
16931
|
+
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((d = (p = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : p.video) == null || d.disableVideo(), (S = (l = (g = (f = this.publisher) == null ? void 0 : f.publishStreams) == null ? void 0 : g.video) == null ? void 0 : l.videoTrack) == null || S.stop());
|
|
16932
|
+
const x = {
|
|
16931
16933
|
video: !0
|
|
16932
16934
|
};
|
|
16933
|
-
t && (
|
|
16935
|
+
t && (x.mediaStream = new MediaStream([t])), yield (v = this.publisher) == null ? void 0 : v.createLocalStream(x);
|
|
16934
16936
|
}
|
|
16935
16937
|
});
|
|
16936
16938
|
}
|