aliyun-rtc-sdk 7.1.2-beta.1 → 7.1.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aliyun-rtc-sdk.es.js +943 -752
- package/dist/aliyun-rtc-sdk.umd.js +28 -13
- package/dist/plugins/audioProcessPlugin.d.ts +57 -34
- package/dist/plugins/audioProcessPlugin.js +104 -101
- package/dist/plugins/beautyPlugin.d.ts +15 -26
- package/dist/types/index.d.ts +35 -12
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var Mn = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var Mn = Object.defineProperty, Ln = Object.defineProperties;
|
|
2
|
+
var Nn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var vi = Object.getOwnPropertySymbols, xn = Object.getPrototypeOf, Kr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, Vn = Reflect.get;
|
|
4
|
-
var Ui = (r, a, e) => a in r ? Mn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e,
|
|
4
|
+
var Ui = (r, a, e) => a in r ? Mn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e, $ = (r, a) => {
|
|
5
5
|
for (var e in a || (a = {}))
|
|
6
6
|
Kr.call(a, e) && Ui(r, e, a[e]);
|
|
7
7
|
if (vi)
|
|
8
8
|
for (var e of vi(a))
|
|
9
9
|
$r.call(a, e) && Ui(r, e, a[e]);
|
|
10
10
|
return r;
|
|
11
|
-
},
|
|
12
|
-
var
|
|
11
|
+
}, ut = (r, a) => Ln(r, Nn(a));
|
|
12
|
+
var Et = (r, a) => {
|
|
13
13
|
var e = {};
|
|
14
14
|
for (var t in r)
|
|
15
15
|
Kr.call(r, t) && a.indexOf(t) < 0 && (e[t] = r[t]);
|
|
@@ -38,7 +38,7 @@ var I = (r, a, e) => new Promise((t, i) => {
|
|
|
38
38
|
});
|
|
39
39
|
import { AliRTS as Se, EConnectStatus as Jr, EDatachannelStatus as Gr } from "aliyun-rts-sdk";
|
|
40
40
|
import He from "eventemitter3";
|
|
41
|
-
var qr, Xr, On = Object.defineProperty,
|
|
41
|
+
var qr, Xr, On = Object.defineProperty, Ot = (r, a, e) => (((t, i, s) => {
|
|
42
42
|
i in t ? On(t, i, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[i] = s;
|
|
43
43
|
})(r, typeof a != "symbol" ? a + "" : a, e), e), Hi = { exports: {} }, Fi = { exports: {} };
|
|
44
44
|
function Ye() {
|
|
@@ -383,11 +383,11 @@ function Ye() {
|
|
|
383
383
|
} };
|
|
384
384
|
return qr = e;
|
|
385
385
|
}
|
|
386
|
-
var ji, Yr,
|
|
386
|
+
var ji, Yr, Qr, Zr, zi = { exports: {} }, Wi = { exports: {} };
|
|
387
387
|
function Un() {
|
|
388
|
-
if (
|
|
388
|
+
if (Qr)
|
|
389
389
|
return Wi.exports;
|
|
390
|
-
|
|
390
|
+
Qr = 1;
|
|
391
391
|
var r = Ye(), a = function() {
|
|
392
392
|
if (Yr)
|
|
393
393
|
return ji;
|
|
@@ -507,7 +507,7 @@ function Un() {
|
|
|
507
507
|
try {
|
|
508
508
|
if (!(n = l.beforeReport(n)))
|
|
509
509
|
return h;
|
|
510
|
-
} catch (
|
|
510
|
+
} catch (R) {
|
|
511
511
|
return h;
|
|
512
512
|
}
|
|
513
513
|
return c === 1 ? t(h, n) : o && !h.sampling(o) ? h : t(h, n);
|
|
@@ -557,9 +557,9 @@ function Bn() {
|
|
|
557
557
|
if (S.push(d.tagName.toLowerCase()), typeof d.id == "string" && S.push("#".concat(d.id)), typeof (b = d.className) == "string")
|
|
558
558
|
for (u = b.split(/\s+/), m = 0; m < u.length; m++)
|
|
559
559
|
S.push(".".concat(u[m]));
|
|
560
|
-
var
|
|
561
|
-
for (m = 0; m <
|
|
562
|
-
f =
|
|
560
|
+
var R = ["type", "name", "title", "alt", "data-arms-attr"];
|
|
561
|
+
for (m = 0; m < R.length; m++)
|
|
562
|
+
f = R[m], typeof (p = d.getAttribute(f)) == "string" && S.push("[".concat(f, '="').concat(p, '"]'));
|
|
563
563
|
return S.join("");
|
|
564
564
|
}, l = function(d, b) {
|
|
565
565
|
return function(u) {
|
|
@@ -575,9 +575,9 @@ function Bn() {
|
|
|
575
575
|
var p = { type: "ui.".concat(d), data: { message: function(m) {
|
|
576
576
|
if (!m || m.nodeType !== 1)
|
|
577
577
|
return "";
|
|
578
|
-
for (var S = m || null,
|
|
579
|
-
|
|
580
|
-
return
|
|
578
|
+
for (var S = m || null, R = [], _ = 0, y = 0, v = ""; S && _++ < 5 && !((v = h(S)) === "html" || _ > 1 && y + 3 * R.length + v.length >= 80); )
|
|
579
|
+
R.push(v), y += v.length, S = S.parentNode;
|
|
580
|
+
return R.reverse().join(" > ");
|
|
581
581
|
}(f) }, timestamp: Date.now() };
|
|
582
582
|
d === "click" ? i && i.addBehavior(p) : d === "keypress" && (n || i && i.addBehavior(p), clearTimeout(n), n = setTimeout(function() {
|
|
583
583
|
n = void 0;
|
|
@@ -632,14 +632,14 @@ function Bn() {
|
|
|
632
632
|
e.onpopstate = function() {
|
|
633
633
|
for (var p = arguments.length, m = new Array(p), S = 0; S < p; S++)
|
|
634
634
|
m[S] = arguments[S];
|
|
635
|
-
var
|
|
636
|
-
if (b(s,
|
|
635
|
+
var R = e.location.href;
|
|
636
|
+
if (b(s, R), u)
|
|
637
637
|
return u.apply(this, m);
|
|
638
638
|
};
|
|
639
639
|
var f = function(p) {
|
|
640
640
|
return function() {
|
|
641
|
-
for (var m = arguments.length, S = new Array(m),
|
|
642
|
-
S[
|
|
641
|
+
for (var m = arguments.length, S = new Array(m), R = 0; R < m; R++)
|
|
642
|
+
S[R] = arguments[R];
|
|
643
643
|
var _ = S.length > 2 ? S[2] : void 0;
|
|
644
644
|
return _ && b(s, String(_)), p.apply(this, S);
|
|
645
645
|
};
|
|
@@ -657,13 +657,13 @@ function Bn() {
|
|
|
657
657
|
p && r.isString(p) && e.console[p] && typeof e.console[p] == "function" && c(e.console, p, function(m) {
|
|
658
658
|
var S = p;
|
|
659
659
|
return function() {
|
|
660
|
-
for (var
|
|
660
|
+
for (var R = arguments.length, _ = new Array(R), y = 0; y < R; y++)
|
|
661
661
|
_[y] = arguments[y];
|
|
662
662
|
var v = { type: "console", data: { level: S, message: _ } };
|
|
663
663
|
if (i && i.addBehavior(v), S === "error")
|
|
664
664
|
for (var w = 0; w < _.length; w++) {
|
|
665
|
-
var
|
|
666
|
-
|
|
665
|
+
var A = _[w];
|
|
666
|
+
A && A.message && A.stack && i && i.errorHandler(new ErrorEvent("error", { error: A, message: A.message }));
|
|
667
667
|
}
|
|
668
668
|
m && Function.prototype.apply.call(m, e.console, _);
|
|
669
669
|
};
|
|
@@ -692,16 +692,16 @@ function Hn() {
|
|
|
692
692
|
ss = 1;
|
|
693
693
|
var p = Ye(), m = dr().TIMING_KEYS;
|
|
694
694
|
return Gi = function() {
|
|
695
|
-
var S = p.win || {},
|
|
696
|
-
if (!
|
|
695
|
+
var S = p.win || {}, R = S.performance;
|
|
696
|
+
if (!R || typeof R != "object" || typeof R.getEntriesByType != "function")
|
|
697
697
|
return null;
|
|
698
|
-
var _ = {}, y =
|
|
698
|
+
var _ = {}, y = R.timing || {}, v = R.getEntriesByType("resource") || [];
|
|
699
699
|
if (_.begin = y[m[1]] || Date.now(), typeof S.PerformanceNavigationTiming == "function") {
|
|
700
|
-
var w =
|
|
700
|
+
var w = R.getEntriesByType("navigation")[0];
|
|
701
701
|
w && (y = w);
|
|
702
702
|
}
|
|
703
|
-
return p.each({ dom: [10, 8], load: [14, 1] }, function(
|
|
704
|
-
var C = y[m[
|
|
703
|
+
return p.each({ dom: [10, 8], load: [14, 1] }, function(A, E) {
|
|
704
|
+
var C = y[m[A[1]]], x = y[m[A[0]]];
|
|
705
705
|
if (C > 0 && x > 0) {
|
|
706
706
|
var P = Math.round(x - C);
|
|
707
707
|
P >= 0 && P < 6e5 && (_[E] = P);
|
|
@@ -714,13 +714,13 @@ function Hn() {
|
|
|
714
714
|
as = 1;
|
|
715
715
|
var p = Ye(), m = dr().TIMING_KEYS;
|
|
716
716
|
return qi = function() {
|
|
717
|
-
var S = p.win || {},
|
|
718
|
-
if (!
|
|
717
|
+
var S = p.win || {}, R = S.performance;
|
|
718
|
+
if (!R || typeof R != "object")
|
|
719
719
|
return null;
|
|
720
|
-
var _ = {}, y =
|
|
720
|
+
var _ = {}, y = R.timing || {}, v = Date.now(), w = 1;
|
|
721
721
|
if (typeof S.PerformanceNavigationTiming == "function") {
|
|
722
|
-
var
|
|
723
|
-
|
|
722
|
+
var A = R.getEntriesByType("navigation")[0];
|
|
723
|
+
A && (y = A, w = 2);
|
|
724
724
|
}
|
|
725
725
|
p.each({ dns: [3, 2], tcp: [5, 4], ssl: [5, 17], ttfb: [7, 6], trans: [8, 7], dom: [10, 8], res: [14, 12], firstbyte: [7, 2], fpt: [8, 1], tti: [10, 1], ready: [12, 1], load: [14, 1] }, function(z, G) {
|
|
726
726
|
var X = y[m[z[1]]], K = y[m[z[0]]];
|
|
@@ -729,7 +729,7 @@ function Hn() {
|
|
|
729
729
|
H >= 0 && H < 6e5 && (_[G] = H);
|
|
730
730
|
}
|
|
731
731
|
});
|
|
732
|
-
var E = S.navigator.connection, C =
|
|
732
|
+
var E = S.navigator.connection, C = R.navigation || {};
|
|
733
733
|
_.ct = E ? E.effectiveType || E.type : "";
|
|
734
734
|
var x = E && (E.downlink || E.downlinkMax || E.bandwidth) || null;
|
|
735
735
|
if ((x = x > 999 ? 999 : x) && (_.bandwidth = x), _.navtype = C.type === 1 ? "Reload" : "Other", w === 1 && y[m[16]] > 0 && y[m[1]] > 0) {
|
|
@@ -738,15 +738,15 @@ function Hn() {
|
|
|
738
738
|
}
|
|
739
739
|
return w === 1 && y[m[1]] > 0 ? _.begin = y[m[1]] : w === 2 && _.load > 0 ? _.begin = v - _.load : _.begin = v, _;
|
|
740
740
|
}, qi;
|
|
741
|
-
}(), n = null, o = e.documentElement, c = a.innerWidth || o.clientWidth || e.body.clientWidth, h = a.innerHeight || o.clientHeight || e.body.clientHeight, l = a.navigator.connection, d = { sr: screen.width + "x" + screen.height, vp: c + "x" + h, ct: l ? l.effectiveType || l.type : "" }, b = {}, u = function(p, m, S,
|
|
741
|
+
}(), n = null, o = e.documentElement, c = a.innerWidth || o.clientWidth || e.body.clientWidth, h = a.innerHeight || o.clientHeight || e.body.clientHeight, l = a.navigator.connection, d = { sr: screen.width + "x" + screen.height, vp: c + "x" + h, ct: l ? l.effectiveType || l.type : "" }, b = {}, u = function(p, m, S, R, _) {
|
|
742
742
|
if (m === void 0) {
|
|
743
743
|
var y, v;
|
|
744
744
|
if (!b[p]) {
|
|
745
745
|
y = new RegExp(p + "=([^;]+)");
|
|
746
746
|
try {
|
|
747
747
|
v = y.exec(e.cookie);
|
|
748
|
-
} catch (
|
|
749
|
-
return t.warn("[retcode] can not get cookie:",
|
|
748
|
+
} catch (A) {
|
|
749
|
+
return t.warn("[retcode] can not get cookie:", A), null;
|
|
750
750
|
}
|
|
751
751
|
v && (b[p] = v[1]);
|
|
752
752
|
}
|
|
@@ -756,8 +756,8 @@ function Hn() {
|
|
|
756
756
|
w += "; path=/", S && (w += "; max-age=" + S);
|
|
757
757
|
try {
|
|
758
758
|
return e.cookie = w, !!e.cookie;
|
|
759
|
-
} catch (
|
|
760
|
-
return t.warn("[retcode] can not set cookie: ",
|
|
759
|
+
} catch (A) {
|
|
760
|
+
return t.warn("[retcode] can not set cookie: ", A), !1;
|
|
761
761
|
}
|
|
762
762
|
}, f = function(p) {
|
|
763
763
|
var m = p._conf.uid || u("_nk_") || u("_bl_uid");
|
|
@@ -776,30 +776,30 @@ function Hn() {
|
|
|
776
776
|
m === "unhandledrejection" && t.T(p.reason, "Error") && t.checkAutoError(p.reason) && this.error(p.reason);
|
|
777
777
|
try {
|
|
778
778
|
this.getConfig("behavior") && this.reportBehavior && this.reportBehavior();
|
|
779
|
-
} catch (
|
|
779
|
+
} catch (R) {
|
|
780
780
|
}
|
|
781
781
|
return this;
|
|
782
782
|
}, resourceErrorHandler: function(p) {
|
|
783
783
|
var m = this, S = p.target || p.srcElement;
|
|
784
784
|
try {
|
|
785
|
-
var
|
|
786
|
-
return m._conf.enableResource && m.fixResourceStatus && p.timeStamp && m.fixResourceStatus({ src:
|
|
787
|
-
} catch (
|
|
788
|
-
return t.warn("[ARMS] resourceErrorHandler error :",
|
|
785
|
+
var R = m.getSrc(S), _ = typeof S.tagName == "string" ? S.tagName.toLowerCase() : "", y = m.getXPath(S, 5), v = t.getURL(R), w = { src: R && R.substring(0, 1e3), node_name: _, xpath: y, res_type: t.getResType(_, R), res_name: v.path, domain: v.domain };
|
|
786
|
+
return m._conf.enableResource && m.fixResourceStatus && p.timeStamp && m.fixResourceStatus({ src: R, node_name: _, res_type: t.getResType(_, R), timeStamp: p.timeStamp, domain: v.domain }), m._lg("resourceError", w), m;
|
|
787
|
+
} catch (A) {
|
|
788
|
+
return t.warn("[ARMS] resourceErrorHandler error :", A), m;
|
|
789
789
|
}
|
|
790
790
|
}, getSrc: function(p) {
|
|
791
791
|
var m = p.src || p.href;
|
|
792
792
|
try {
|
|
793
793
|
if (!m) {
|
|
794
|
-
var S = (typeof p.tagName == "string" ? p.tagName.toLowerCase() : "") === "object",
|
|
795
|
-
S &&
|
|
794
|
+
var S = (typeof p.tagName == "string" ? p.tagName.toLowerCase() : "") === "object", R = p.getAttribute("classid") && p.getAttribute("classid").toLowerCase() === "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" || p.getAttribute("type") === "application/x-shockwave-flash";
|
|
795
|
+
S && R && (m = p.getAttribute("data") || p.getAttribute("codebase")), m || (m = p.outerHTML || p.innerHTML);
|
|
796
796
|
}
|
|
797
797
|
} catch (_) {
|
|
798
798
|
m = "";
|
|
799
799
|
}
|
|
800
800
|
return m;
|
|
801
801
|
}, getXPath: function(p, m) {
|
|
802
|
-
var S = p.id ? "#" + p.id : "",
|
|
802
|
+
var S = p.id ? "#" + p.id : "", R = typeof p.className == "string" ? "." + p.className.split(" ").join(".") : "", _ = (typeof p.tagName == "string" ? p.tagName.toLowerCase() : "") + S + R;
|
|
803
803
|
return p.parentNode && p.parentNode.tagName && m - 1 != 0 ? this.getXPath(p.parentNode, m - 1) + " > " + _ : _;
|
|
804
804
|
}, sendPerformance: function(p) {
|
|
805
805
|
var m = this;
|
|
@@ -816,8 +816,8 @@ function Hn() {
|
|
|
816
816
|
}, sendPV: function() {
|
|
817
817
|
var p = this;
|
|
818
818
|
p.onReady(function() {
|
|
819
|
-
var m, S,
|
|
820
|
-
|
|
819
|
+
var m, S, R = (m = f(p), S = a.devicePixelRatio || 1, { uid: m, dt: e.title, dl: location.href, dr: e.referrer, dpr: S.toFixed(2), de: (e.characterSet || e.defaultCharset || "").toLowerCase(), ul: o.lang, begin: Date.now() });
|
|
820
|
+
R && R.uid && p._lg("pv", R, p.getConfig("pvSample"));
|
|
821
821
|
});
|
|
822
822
|
}, commonInfo: function() {
|
|
823
823
|
return d.uid = f(this), d.sid = function(p) {
|
|
@@ -842,11 +842,11 @@ function Hn() {
|
|
|
842
842
|
if (!p ^ m.hashChangeHandler)
|
|
843
843
|
return m;
|
|
844
844
|
p ? (m.hackHistoryState(), m.hashChangeHandler = function(S) {
|
|
845
|
-
var
|
|
846
|
-
|
|
845
|
+
var R = m._conf.parseHash(location.hash);
|
|
846
|
+
R && m.setPage(R, S !== !1);
|
|
847
847
|
}, m.stateChangeHandler = function(S) {
|
|
848
|
-
var
|
|
849
|
-
|
|
848
|
+
var R = m._conf.parseHash(S.detail);
|
|
849
|
+
R && m.setPage(R);
|
|
850
850
|
}, t.on(a, "hashchange", m.hashChangeHandler), t.on(a, "historystatechange", m.stateChangeHandler), m.hashChangeHandler(!1)) : (t.off(a, "hashchange", m.hashChangeHandler), t.off(a, "historystatechange", m.stateChangeHandler), m.hashChangeHandler = null, m.stateChangeHandler = null);
|
|
851
851
|
}, initHandler: function() {
|
|
852
852
|
var p = this;
|
|
@@ -918,8 +918,8 @@ function Fn() {
|
|
|
918
918
|
c.disconnect(), h = 0, o = s(o);
|
|
919
919
|
for (var m = null, S = 1; S < o.length; S++)
|
|
920
920
|
if (o[S].t >= o[S - 1].t) {
|
|
921
|
-
var
|
|
922
|
-
(!m || m.rate <=
|
|
921
|
+
var R = o[S].score - o[S - 1].score;
|
|
922
|
+
(!m || m.rate <= R) && (m = { t: o[S].t, rate: R });
|
|
923
923
|
}
|
|
924
924
|
m && m.t > 0 && m.t < 36e5 ? p.sendPerformance({ fmp: m.t }) : p.sendPerformance();
|
|
925
925
|
} else
|
|
@@ -934,9 +934,9 @@ function jn() {
|
|
|
934
934
|
return Fi.exports;
|
|
935
935
|
ms = 1;
|
|
936
936
|
var r = Ye(), a = function() {
|
|
937
|
-
if (
|
|
937
|
+
if (Zr)
|
|
938
938
|
return zi.exports;
|
|
939
|
-
|
|
939
|
+
Zr = 1;
|
|
940
940
|
var c = Ye(), h = Un(), l = ["api", "success", "time", "code", "msg", "trace", "traceId", "begin", "pv_id", "sid", "seq", "domain", "flag", "apiSnapshot", "tag", "c1", "c2", "c3"], d = function(u) {
|
|
941
941
|
var f = (u.key || "default").split("::");
|
|
942
942
|
return f.length > 1 ? c.ext(u, { group: f[0], key: f[1] }) : c.ext(u, { group: "default_group", key: f[0] });
|
|
@@ -979,7 +979,7 @@ function jn() {
|
|
|
979
979
|
arguments.length === 1 ? (typeof u == "string" && (u = { message: u }, f = {}), typeof u == "object" && (f = u = u.error || u)) : (typeof u == "string" && (u = { message: u }), typeof f != "object" && (f = {}));
|
|
980
980
|
var p = u.name || "CustomError", m = u.message || "", S = u.stack || "";
|
|
981
981
|
f = f || {};
|
|
982
|
-
var
|
|
982
|
+
var R = typeof location == "object" && typeof location.href == "string" && location.href.substring(0, 500) || "";
|
|
983
983
|
if (c.checkSDKError(m, f.filename)) {
|
|
984
984
|
var _ = /^Script error\.?$/, y = u.msg || u.message;
|
|
985
985
|
if (c.ignoreByRule(y, _) || c.ignoreByRule(c.decode(y), _))
|
|
@@ -987,8 +987,8 @@ function jn() {
|
|
|
987
987
|
var v = { msg: c.selfErrKey, err: { msg_raw: c.encode(u.msg || u.message) } };
|
|
988
988
|
return this._self("error", v, 1);
|
|
989
989
|
}
|
|
990
|
-
for (var w = { begin: Date.now(), cate: p, msg: m && m.substring(0, 1e3), stack: S && S.substring(0, 1e3), file: c.removeUrlSearch(f.filename || ""), line: f.lineno || "", col: f.colno || "", err: { msg_raw: c.encode(m), stack_raw: c.encode(S) }, dl:
|
|
991
|
-
var C =
|
|
990
|
+
for (var w = { begin: Date.now(), cate: p, msg: m && m.substring(0, 1e3), stack: S && S.substring(0, 1e3), file: c.removeUrlSearch(f.filename || ""), line: f.lineno || "", col: f.colno || "", err: { msg_raw: c.encode(m), stack_raw: c.encode(S) }, dl: R }, A = ["tag", "c1", "c2", "c3"], E = 0; E < A.length; E++) {
|
|
991
|
+
var C = A[E];
|
|
992
992
|
f[C] && (w[C] = f[C]);
|
|
993
993
|
}
|
|
994
994
|
var x = (this.getConfig("ignore") || {}).ignoreErrors;
|
|
@@ -998,14 +998,14 @@ function jn() {
|
|
|
998
998
|
var f = typeof u == "object" && u.behavior ? u : { behavior: u };
|
|
999
999
|
return this.beforeSend && this.beforeSend("behavior", f), this._lg("behavior", f, 1);
|
|
1000
1000
|
}
|
|
1001
|
-
}, api: function(u, f, p, m, S,
|
|
1001
|
+
}, api: function(u, f, p, m, S, R, _, y, v, w, A, E, C, x, P, z) {
|
|
1002
1002
|
if (!u)
|
|
1003
1003
|
return c.warn("[retcode] api is null"), this;
|
|
1004
|
-
if (u = typeof u == "string" ? { api: u, success: f, time: p, code: m, msg: S, begin:
|
|
1004
|
+
if (u = typeof u == "string" ? { api: u, success: f, time: p, code: m, msg: S, begin: R, traceId: _, pv_id: y, apiSnapshot: v, domain: w, flag: E, tag: C, c1: x, c2: P, c3: z } : c.sub(u, l), !c.checkAPI(u.api, !0))
|
|
1005
1005
|
return this;
|
|
1006
1006
|
u.code = u.code || "";
|
|
1007
1007
|
var G = u.msg || "";
|
|
1008
|
-
if (G = typeof G == "string" ? G.substring(0, 1e3) : G, u.msg = G, u.success = u.success ? 1 : 0, u.time = +u.time, u.begin = u.begin, u.traceId = u.traceId || "", u.pv_id = u.pv_id || "", u.domain = u.domain || "", u.flag = u.flag, u.dl = typeof location == "object" && typeof location.href == "string" && location.href.substring(0, 500) || "", u.apiSnapshot && (typeof u.apiSnapshot == "object" && (u.apiSnapshot = JSON.stringify(u.apiSnapshot)), typeof u.apiSnapshot != "string" && delete u.apiSnapshot, u.apiSnapshot.length > 2e3 && (u.apiSnapshot = u.apiSnapshot.substring(0, 2e3))),
|
|
1008
|
+
if (G = typeof G == "string" ? G.substring(0, 1e3) : G, u.msg = G, u.success = u.success ? 1 : 0, u.time = +u.time, u.begin = u.begin, u.traceId = u.traceId || "", u.pv_id = u.pv_id || "", u.domain = u.domain || "", u.flag = u.flag, u.dl = typeof location == "object" && typeof location.href == "string" && location.href.substring(0, 500) || "", u.apiSnapshot && (typeof u.apiSnapshot == "object" && (u.apiSnapshot = JSON.stringify(u.apiSnapshot)), typeof u.apiSnapshot != "string" && delete u.apiSnapshot, u.apiSnapshot.length > 2e3 && (u.apiSnapshot = u.apiSnapshot.substring(0, 2e3))), A && (u.traceOrigin = A), !u.api || isNaN(u.time))
|
|
1009
1009
|
return c.warn("[retcode] invalid time or api"), this;
|
|
1010
1010
|
var X = (this.getConfig("ignore") || {}).ignoreApis;
|
|
1011
1011
|
return c.ignoreByRule(u.api, X) || c.ignoreByRule(c.decode(u.api), X) || u.time < 0 ? this : (this.beforeSend && this.beforeSend("api", u), this._lg("api", u, u.success && this.getConfig("sample"), u.flag));
|
|
@@ -1031,8 +1031,8 @@ function jn() {
|
|
|
1031
1031
|
if (!u || !c.isPlainObject(u))
|
|
1032
1032
|
return c.warn("[arms] invalid param data: " + u), this;
|
|
1033
1033
|
var p = Object.keys(u), m = ["begin", "dom", "load", "res", "dl"], S = !1;
|
|
1034
|
-
for (var
|
|
1035
|
-
if (p.indexOf(m[
|
|
1034
|
+
for (var R in m)
|
|
1035
|
+
if (p.indexOf(m[R]) < 0) {
|
|
1036
1036
|
S = !0;
|
|
1037
1037
|
break;
|
|
1038
1038
|
}
|
|
@@ -1158,32 +1158,32 @@ function jn() {
|
|
|
1158
1158
|
var h = this.__proto__.constructor(c);
|
|
1159
1159
|
return c.page && h.sendPV(), h;
|
|
1160
1160
|
} }), Bn()(o, i), Hn()(o, i, s), Fn()(o, i, s), (ls || (ls = 1, hs = function(c, h) {
|
|
1161
|
-
var l = Ye(), d = null, b = l.getCurDomain(), u = function(
|
|
1161
|
+
var l = Ye(), d = null, b = l.getCurDomain(), u = function(R, _, y, v, w, A, E, C, x, P, z, G, X) {
|
|
1162
1162
|
var K = l.J(w) || null, H = l.safetyCall(_, [K, v], null);
|
|
1163
1163
|
if (!H)
|
|
1164
1164
|
return !1;
|
|
1165
|
-
var Y = H.code ||
|
|
1166
|
-
|
|
1165
|
+
var Y = H.code || A, ee = !("success" in H) || H.success;
|
|
1166
|
+
R.api(y, ee, E, Y, H.msg, C, x, P, ee ? {} : z, b, G, X);
|
|
1167
1167
|
}, f = "fetch", p = "__oFetch_", m = "__oXMLHttpRequest_", S = "XMLHttpRequest";
|
|
1168
|
-
return l.ext(c.prototype, { removeHook: function(
|
|
1168
|
+
return l.ext(c.prototype, { removeHook: function(R, _) {
|
|
1169
1169
|
return d && (_ || this === d) ? (h[p] && (h[f] = h[p], delete h[p]), h[m] && (h[S] = h[m], delete h[m]), d = null, this) : this;
|
|
1170
|
-
}, addHook: function(
|
|
1171
|
-
return !
|
|
1170
|
+
}, addHook: function(R) {
|
|
1171
|
+
return !R && d || (d || (function() {
|
|
1172
1172
|
if (typeof h[f] == "function") {
|
|
1173
1173
|
var _ = h[f];
|
|
1174
1174
|
h[p] = _, h[f] = function(y, v) {
|
|
1175
|
-
var w = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments),
|
|
1176
|
-
if (!
|
|
1175
|
+
var w = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), A = d;
|
|
1176
|
+
if (!A || !A.api || v && (v.method === "HEAD" || v.mode === "no-cors"))
|
|
1177
1177
|
return _.apply(h, w);
|
|
1178
1178
|
v || (v = {});
|
|
1179
|
-
var E = Date.now(), C =
|
|
1179
|
+
var E = Date.now(), C = A._conf, x = l.duration(), P = (y && typeof y != "string" ? y.url : y) || "", z = P;
|
|
1180
1180
|
P = l.cutUrlSearch(P);
|
|
1181
1181
|
var G = (C.ignore || {}).ignoreApis, X = C.parseTraceId;
|
|
1182
1182
|
if (!l.checkAPI(P, !0) || l.ignoreByRule(P, G))
|
|
1183
1183
|
return _.apply(h, w);
|
|
1184
1184
|
P = l.filterByRule(P, z, C.ignoreApiPath ? C.ignoreApiPath : C.apiHelper);
|
|
1185
|
-
var K = C.enableLinkTrace, H = "", Y = "", ee =
|
|
1186
|
-
if (
|
|
1185
|
+
var K = C.enableLinkTrace, H = "", Y = "", ee = A.getConfig("pid"), M = null, N = A.getConfig("sample"), D = A.getConfig("linkType"), L = 1;
|
|
1186
|
+
if (N && !A.sampling(N) && (L = 0), K) {
|
|
1187
1187
|
var ce = "";
|
|
1188
1188
|
try {
|
|
1189
1189
|
ce = location.origin ? location.origin : location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "");
|
|
@@ -1191,28 +1191,28 @@ function jn() {
|
|
|
1191
1191
|
ce = "";
|
|
1192
1192
|
}
|
|
1193
1193
|
var me = l.checkSameOrigin(z, ce);
|
|
1194
|
-
if (
|
|
1194
|
+
if (A.getConfig("enableApiCors") || me)
|
|
1195
1195
|
if (y && typeof y != "string")
|
|
1196
1196
|
try {
|
|
1197
1197
|
if (w[0].headers && typeof w[0].headers.get == "function" && typeof w[0].headers.append == "function")
|
|
1198
1198
|
switch (D) {
|
|
1199
1199
|
case "arms":
|
|
1200
|
-
var ye = w[0].headers.get("EagleEye-TraceID"),
|
|
1201
|
-
ye ? H = ye : (H =
|
|
1200
|
+
var ye = w[0].headers.get("EagleEye-TraceID"), J = w[0].headers.get("EagleEye-SessionID"), le = w[0].headers.get("EagleEye-pAppName");
|
|
1201
|
+
ye ? H = ye : (H = A.getTraceId()["EagleEye-TraceID"], w[0].headers.append("EagleEye-TraceID", H)), J ? Y = J : (Y = A.getPageviewId()["EagleEye-SessionID"], w[0].headers.append("EagleEye-SessionID", Y)), le || w[0].headers.append("EagleEye-pAppName", ee);
|
|
1202
1202
|
break;
|
|
1203
1203
|
case "b3":
|
|
1204
1204
|
var Pe = w[0].headers.get("X-B3-TraceId");
|
|
1205
1205
|
if (Pe)
|
|
1206
1206
|
H = Pe;
|
|
1207
1207
|
else {
|
|
1208
|
-
var be =
|
|
1208
|
+
var be = A.getB3TraceId(L);
|
|
1209
1209
|
w[0].headers.append("X-B3-TraceId", be["X-B3-TraceId"]), w[0].headers.append("X-B3-ParentSpanId", be["X-B3-ParentSpanId"]), w[0].headers.append("X-B3-SpanId", be["X-B3-SpanId"]), w[0].headers.append("X-B3-Sampled", be["X-B3-Sampled"]), w[0].headers.append("X-Request-ID", l.guid()), H = be["X-B3-TraceId"];
|
|
1210
1210
|
}
|
|
1211
|
-
Y =
|
|
1211
|
+
Y = A.pageview;
|
|
1212
1212
|
break;
|
|
1213
1213
|
default:
|
|
1214
1214
|
var de = w[0].headers.get("uber-trace-id");
|
|
1215
|
-
de ? H = de.split(":")[0] : (de =
|
|
1215
|
+
de ? H = de.split(":")[0] : (de = A.getUberTraceId(L), w[0].headers.append("uber-trace-id", de["uber-trace-id"]), H = de.traceId), Y = A.pageview;
|
|
1216
1216
|
}
|
|
1217
1217
|
} catch (te) {
|
|
1218
1218
|
l.warn(`[retcode] fetch failed to set header, exception is :
|
|
@@ -1221,29 +1221,29 @@ function jn() {
|
|
|
1221
1221
|
else
|
|
1222
1222
|
switch (v.headers = v.headers ? v.headers : {}, D) {
|
|
1223
1223
|
case "arms":
|
|
1224
|
-
v.headers["EagleEye-TraceID"] ? H = v.headers["EagleEye-TraceID"] : (H =
|
|
1224
|
+
v.headers["EagleEye-TraceID"] ? H = v.headers["EagleEye-TraceID"] : (H = A.getTraceId()["EagleEye-TraceID"], v.headers["EagleEye-TraceID"] = H), v.headers["EagleEye-SessionID"] ? Y = v.headers["EagleEye-SessionID"] : (Y = A.getPageviewId()["EagleEye-SessionID"], v.headers["EagleEye-SessionID"] = Y), v.headers["EagleEye-pAppName"] || (v.headers["EagleEye-pAppName"] = ee);
|
|
1225
1225
|
break;
|
|
1226
1226
|
case "b3":
|
|
1227
1227
|
if (v.headers["X-B3-TraceId"])
|
|
1228
1228
|
H = v.headers["X-B3-TraceId"];
|
|
1229
1229
|
else {
|
|
1230
|
-
var ge =
|
|
1230
|
+
var ge = A.getB3TraceId(L);
|
|
1231
1231
|
v.headers["X-B3-TraceId"] = ge["X-B3-TraceId"], v.headers["X-B3-ParentSpanId"] = ge["X-B3-ParentSpanId"], v.headers["X-B3-SpanId"] = ge["X-B3-SpanId"], v.headers["X-B3-Sampled"] = ge["X-B3-Sampled"], v.headers["X-Request-ID"] = l.guid(), H = ge["X-B3-TraceId"];
|
|
1232
1232
|
}
|
|
1233
|
-
Y =
|
|
1233
|
+
Y = A.getPageviewId()["EagleEye-SessionID"];
|
|
1234
1234
|
break;
|
|
1235
1235
|
default:
|
|
1236
1236
|
if (v.headers["uber-trace-id"])
|
|
1237
1237
|
H = v.headers["uber-trace-id"].split(":")[0];
|
|
1238
1238
|
else {
|
|
1239
|
-
var Fe =
|
|
1239
|
+
var Fe = A.getUberTraceId(L);
|
|
1240
1240
|
v.headers["uber-trace-id"] = Fe["uber-trace-id"], H = Fe.traceId;
|
|
1241
1241
|
}
|
|
1242
|
-
Y =
|
|
1242
|
+
Y = A.getPageviewId()["EagleEye-SessionID"];
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
return _.apply(h, w).then(function(te) {
|
|
1246
|
-
if (!
|
|
1246
|
+
if (!A || !A.api)
|
|
1247
1247
|
return te;
|
|
1248
1248
|
try {
|
|
1249
1249
|
if (!te || typeof te.clone != "function")
|
|
@@ -1258,23 +1258,23 @@ function jn() {
|
|
|
1258
1258
|
typeof re == "object" && re["eagleeye-traceid"] && (H = re["eagleeye-traceid"], M = "response");
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
var
|
|
1261
|
+
var Q = x();
|
|
1262
1262
|
return Ae.text().then(function(ue) {
|
|
1263
1263
|
if (!H && l.isFunction(X)) {
|
|
1264
1264
|
var Ie = X(Ae, ue);
|
|
1265
1265
|
Ie && l.isString(Ie) && (H = Ie);
|
|
1266
1266
|
}
|
|
1267
1267
|
var ie = l.getFetchSnapshot(w, ue, ke);
|
|
1268
|
-
Ae.ok ? u(
|
|
1268
|
+
Ae.ok ? u(A, C.parseResponse, P, z, ue, Ae.status || 200, Q, E, H, Y, ie, M, L) : (A.api(P, !1, Q, Ae.status || 404, Ae.statusText, E, H, Y, ie, b, M, L), C.enableResource && d.fixResourceStatus && d.fixResourceStatus({ src: Ae.url, res_type: "api" }));
|
|
1269
1269
|
}), te;
|
|
1270
1270
|
} catch (ue) {
|
|
1271
1271
|
return l.warn("[ARMS] fetch response error :", ue), te;
|
|
1272
1272
|
}
|
|
1273
1273
|
}).catch(function(te) {
|
|
1274
|
-
if (!
|
|
1274
|
+
if (!A || !A.api)
|
|
1275
1275
|
throw te;
|
|
1276
1276
|
var Ae = x();
|
|
1277
|
-
throw
|
|
1277
|
+
throw A.api(P, !1, Ae, te.name || "Error", te.message, E, H, Y, {}, b), C.enableResource && d.fixResourceStatus && d.fixResourceStatus({ src: z, res_type: "api" }), te;
|
|
1278
1278
|
});
|
|
1279
1279
|
}, h[f].toString = l.createFakeToString(f);
|
|
1280
1280
|
}
|
|
@@ -1283,14 +1283,14 @@ function jn() {
|
|
|
1283
1283
|
var _, y = h[S];
|
|
1284
1284
|
h[m] = y;
|
|
1285
1285
|
var v = function(w) {
|
|
1286
|
-
var
|
|
1287
|
-
if (!E || !E.api || !
|
|
1288
|
-
return
|
|
1289
|
-
var C, x, P, z, G =
|
|
1290
|
-
return me && !E.sampling(me) && (
|
|
1286
|
+
var A = new y(w), E = d;
|
|
1287
|
+
if (!E || !E.api || !A.addEventListener)
|
|
1288
|
+
return A;
|
|
1289
|
+
var C, x, P, z, G = A.send, X = A.open, K = A.setRequestHeader, H = E._conf, Y = (H.ignore || {}).ignoreApis, ee = H.parseTraceId, M = E.getConfig("enableLinkTrace"), N = "", D = "", L = "", ce = null, me = E.getConfig("sample"), ye = E.getConfig("linkType"), J = 1;
|
|
1290
|
+
return me && !E.sampling(me) && (J = 0), A.open = function(le, Pe) {
|
|
1291
1291
|
_ = le;
|
|
1292
1292
|
var be = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1293
|
-
X.apply(
|
|
1293
|
+
X.apply(A, be), z = Pe || "", P = l.cutUrlSearch(z);
|
|
1294
1294
|
var de = !l.checkAPI(P, !0) || l.ignoreByRule(P, Y);
|
|
1295
1295
|
if (P = P ? l.filterByRule(P, z, H.ignoreApiPath ? H.ignoreApiPath : H.apiHelper) : "", !de && M) {
|
|
1296
1296
|
var ge = "";
|
|
@@ -1303,44 +1303,44 @@ function jn() {
|
|
|
1303
1303
|
if ((E.getConfig("enableApiCors") || Fe) && K && typeof K == "function")
|
|
1304
1304
|
switch (ye) {
|
|
1305
1305
|
case "arms":
|
|
1306
|
-
|
|
1306
|
+
N = E.getTraceId()["EagleEye-TraceID"], K.apply(A, ["EagleEye-TraceID", N]), D = E.getPageviewId()["EagleEye-SessionID"], K.apply(A, ["EagleEye-SessionID", D]), L = E.getConfig("pid"), K.apply(A, ["EagleEye-pAppName", L]);
|
|
1307
1307
|
break;
|
|
1308
1308
|
case "b3":
|
|
1309
|
-
var te = E.getB3TraceId(
|
|
1310
|
-
K.apply(
|
|
1309
|
+
var te = E.getB3TraceId(J);
|
|
1310
|
+
K.apply(A, ["X-B3-TraceId", te["X-B3-TraceId"]]), K.apply(A, ["X-B3-ParentSpanId", te["X-B3-ParentSpanId"]]), K.apply(A, ["X-B3-SpanId", te["X-B3-SpanId"]]), K.apply(A, ["X-B3-Sampled", te["X-B3-Sampled"]]), K.apply(A, ["X-Request-ID", l.guid()]), N = te["X-B3-TraceId"], D = E.getPageviewId()["EagleEye-SessionID"];
|
|
1311
1311
|
break;
|
|
1312
1312
|
default:
|
|
1313
|
-
var Ae = E.getUberTraceId(
|
|
1314
|
-
K.apply(
|
|
1313
|
+
var Ae = E.getUberTraceId(J);
|
|
1314
|
+
K.apply(A, ["uber-trace-id", Ae["uber-trace-id"]]), N = Ae.traceId, D = E.getPageviewId()["EagleEye-SessionID"];
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
},
|
|
1317
|
+
}, A.send = function() {
|
|
1318
1318
|
C = Date.now(), x = l.duration();
|
|
1319
1319
|
var le = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
1320
|
-
G.apply(
|
|
1321
|
-
}, l.on(
|
|
1322
|
-
if (P &&
|
|
1323
|
-
var le = x(), Pe = l.getXhrSnapshot(z, _,
|
|
1324
|
-
if (!
|
|
1325
|
-
var be = l.parseXhrHeaders(typeof
|
|
1326
|
-
typeof be == "object" && be["eagleeye-traceid"] && (
|
|
1320
|
+
G.apply(A, le);
|
|
1321
|
+
}, l.on(A, "readystatechange", function() {
|
|
1322
|
+
if (P && A.readyState === 4) {
|
|
1323
|
+
var le = x(), Pe = l.getXhrSnapshot(z, _, A);
|
|
1324
|
+
if (!N) {
|
|
1325
|
+
var be = l.parseXhrHeaders(typeof A.getAllResponseHeaders == "function" && A.getAllResponseHeaders() || "");
|
|
1326
|
+
typeof be == "object" && be["eagleeye-traceid"] && (N = be["eagleeye-traceid"], ce = "response");
|
|
1327
1327
|
}
|
|
1328
|
-
if (!
|
|
1329
|
-
var de = ee(
|
|
1330
|
-
de && l.isString(de) && (
|
|
1328
|
+
if (!N && l.isFunction(ee)) {
|
|
1329
|
+
var de = ee(A);
|
|
1330
|
+
de && l.isString(de) && (N = de);
|
|
1331
1331
|
}
|
|
1332
|
-
if (
|
|
1333
|
-
var ge =
|
|
1334
|
-
if (typeof
|
|
1335
|
-
var Fe =
|
|
1332
|
+
if (A.status >= 200 && A.status <= 299) {
|
|
1333
|
+
var ge = A.status || 200;
|
|
1334
|
+
if (typeof A.getResponseHeader == "function") {
|
|
1335
|
+
var Fe = A.getResponseHeader("Content-Type");
|
|
1336
1336
|
if (Fe && !/(text)|(json)/.test(Fe))
|
|
1337
1337
|
return;
|
|
1338
1338
|
}
|
|
1339
|
-
|
|
1339
|
+
A.responseType && A.responseType !== "text" ? E.api(P, !0, le, ge, "", C, N, D, {}, b, ce, J) : u(E, H.parseResponse, P, z, A.responseText, ge, le, C, N, D, Pe, ce, J);
|
|
1340
1340
|
} else
|
|
1341
|
-
E.api(P, !1, le,
|
|
1341
|
+
E.api(P, !1, le, A.status || "FAILED", A.statusText, C, N, D, Pe, b, ce, J), H.enableResource && d.fixResourceStatus && d.fixResourceStatus({ src: A.responseURL || z, res_type: "api" });
|
|
1342
1342
|
}
|
|
1343
|
-
}),
|
|
1343
|
+
}), A;
|
|
1344
1344
|
};
|
|
1345
1345
|
v.prototype = y.prototype, l.each(Object.keys(y), function(w) {
|
|
1346
1346
|
v[w] = y[w];
|
|
@@ -1356,12 +1356,12 @@ function jn() {
|
|
|
1356
1356
|
h.CustomEvent ? S = new CustomEvent(p, { detail: m }) : ((S = b.createEvent("HTMLEvents")).initEvent(p, !1, !0), S.detail = m), h.dispatchEvent(S);
|
|
1357
1357
|
}, f = function(p) {
|
|
1358
1358
|
var m = d[p];
|
|
1359
|
-
typeof m == "function" && (d[p] = function(S,
|
|
1359
|
+
typeof m == "function" && (d[p] = function(S, R, _) {
|
|
1360
1360
|
var y = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments), v = location.href, w = m.apply(d, y);
|
|
1361
1361
|
if (!_ || typeof _ != "string" || _ === v)
|
|
1362
1362
|
return w;
|
|
1363
1363
|
try {
|
|
1364
|
-
var
|
|
1364
|
+
var A = v.split("#"), E = _.split("#"), C = l.cutUrlSearch(A[0]), x = l.cutUrlSearch(E[0]), P = A[1] && A[1].replace(/^\/?(.*)/, "$1"), z = E[1] && E[1].replace(/^\/?(.*)/, "$1");
|
|
1365
1365
|
P !== z ? u("historystatechange", z) : C !== x && u("historystatechange", x);
|
|
1366
1366
|
} catch (G) {
|
|
1367
1367
|
l.warn("[retcode] error in " + p + ": " + G);
|
|
@@ -1380,13 +1380,13 @@ function jn() {
|
|
|
1380
1380
|
return Yi = function(l, d) {
|
|
1381
1381
|
function b(p, m, S) {
|
|
1382
1382
|
if (p instanceof d.PerformanceResourceTiming && p.initiatorType) {
|
|
1383
|
-
var
|
|
1384
|
-
if (
|
|
1385
|
-
var v = p[h[0]], w = p[h[1]],
|
|
1386
|
-
if (!S.has(p) && (!c.areInOrder(v, w,
|
|
1383
|
+
var R = c.getResType(p.initiatorType, p.name), _ = m.resourceTypes || [], y = (m.ignore || {}).ignoreResources;
|
|
1384
|
+
if (R && _.includes(R) && !c.ignoreByRule(p.name, y) && !c.ignoreByRule(c.decode(p.name), y)) {
|
|
1385
|
+
var v = p[h[0]], w = p[h[1]], A = p[h[2]], E = p[h[3]], C = p[h[4]], x = p[h[5]], P = p[h[6]], z = p[h[7]], G = p[h[8]], X = p[h[18]], K = p[h[19]];
|
|
1386
|
+
if (!S.has(p) && (!c.areInOrder(v, w, A, E, C, x, P, z, G) || v > z))
|
|
1387
1387
|
return;
|
|
1388
1388
|
if (X < v && (X = v), K < v && (K = w), c.areInOrder(v, X, K, w))
|
|
1389
|
-
return { domain: c.getURL(p.name).domain, res_type:
|
|
1389
|
+
return { domain: c.getURL(p.name).domain, res_type: R, src_type: c.getSrcType(p.name, m.cdnHostList), success: 1, size: Math.round(p.decodedBodySize), duration: Math.round(p.duration), timeStamp: p.responseEnd, timing: p };
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
@@ -1395,9 +1395,9 @@ function jn() {
|
|
|
1395
1395
|
var p = this, m = d.performance, S = d.PerformanceObserver;
|
|
1396
1396
|
if (p[f] || (p[f] = /* @__PURE__ */ new WeakMap()), !m || !S || typeof m != "object" || typeof m.getEntriesByType != "function")
|
|
1397
1397
|
return null;
|
|
1398
|
-
var
|
|
1398
|
+
var R = m.getEntriesByType("resource") || [];
|
|
1399
1399
|
return setTimeout(function() {
|
|
1400
|
-
p.setResource(
|
|
1400
|
+
p.setResource(R);
|
|
1401
1401
|
}, 10), new S(function(_) {
|
|
1402
1402
|
setTimeout(function() {
|
|
1403
1403
|
p.setResource(_.getEntries());
|
|
@@ -1409,13 +1409,13 @@ function jn() {
|
|
|
1409
1409
|
var m = this._conf, S = this[f];
|
|
1410
1410
|
if (c.isArray(p) && p.length) {
|
|
1411
1411
|
this[u] || (this[u] = {});
|
|
1412
|
-
for (var
|
|
1412
|
+
for (var R = this[u], _ = 0, y = p.length; _ < y; _ += 1) {
|
|
1413
1413
|
var v = p[_];
|
|
1414
1414
|
if (c.checkAPI(v.name, !1)) {
|
|
1415
1415
|
var w = b(v, m, S);
|
|
1416
1416
|
if (w) {
|
|
1417
|
-
var
|
|
1418
|
-
|
|
1417
|
+
var A = w.res_type + "-" + w.domain;
|
|
1418
|
+
A in R || (R[A] = []), R[A].push(w);
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
@@ -1428,18 +1428,18 @@ function jn() {
|
|
|
1428
1428
|
var S = this[f];
|
|
1429
1429
|
if (!p.src || !c.checkAPI(p.src, !1))
|
|
1430
1430
|
return this;
|
|
1431
|
-
var
|
|
1431
|
+
var R = p.timeStamp || m.now(), _ = m.getEntriesByName(p.src, "resource");
|
|
1432
1432
|
return c.each(_, function(y) {
|
|
1433
|
-
S.has(y) ||
|
|
1433
|
+
S.has(y) || R - y.responseEnd < 100 && S.set(y, { success: 0 });
|
|
1434
1434
|
}), this;
|
|
1435
1435
|
}, resourceComboReport: function() {
|
|
1436
1436
|
var p = this[u] || {}, m = this._conf.resourceSlow || 2e3, S = this[f];
|
|
1437
1437
|
this[u] = {};
|
|
1438
|
-
var
|
|
1439
|
-
if (
|
|
1438
|
+
var R = Object.keys(p);
|
|
1439
|
+
if (R.length !== 0) {
|
|
1440
1440
|
var _ = [];
|
|
1441
|
-
c.each(
|
|
1442
|
-
var E = p[
|
|
1441
|
+
c.each(R, function(A) {
|
|
1442
|
+
var E = p[A], C = { domain: "", res_type: "", src_type: "", size: 0, duration: 0, count: 0, err_count: 0, err_duration: 0, slow_count: 0, slow_duration: 0, timings: [] };
|
|
1443
1443
|
c.each(E, function(x) {
|
|
1444
1444
|
var P = x.timing || {}, z = S.get(x.timing), G = z ? z.success : 1, X = x.duration > m ? 1 : 0;
|
|
1445
1445
|
C.domain = x.domain, C.res_type = x.res_type, C.src_type = x.src_type, C.count += 1, C.duration += x.duration, C.size += x.size, G || (C.err_count += 1, C.err_duration += x.duration), X && (C.slow_count += 1, C.slow_duration += x.duration);
|
|
@@ -1487,7 +1487,7 @@ var zn = { getArmsLogger: function() {
|
|
|
1487
1487
|
}()), Hi.exports = e, Hi.exports;
|
|
1488
1488
|
}();
|
|
1489
1489
|
} };
|
|
1490
|
-
const Ss = "https://arms-retcode.aliyuncs.com/r.png?", bs = "https://arms-retcode-sg.aliyuncs.com/r.png?", vs = "https://retcode-us-west-1.arms.aliyuncs.com/r.png?", ys = "e1iftji1w7@7ec1cef2cc88733", As = "e1iftji1w7@10a06d1ec260adc", Rs = "e1iftji1w7@10a06d1ec260adc",
|
|
1490
|
+
const Ss = "https://arms-retcode.aliyuncs.com/r.png?", bs = "https://arms-retcode-sg.aliyuncs.com/r.png?", vs = "https://retcode-us-west-1.arms.aliyuncs.com/r.png?", ys = "e1iftji1w7@7ec1cef2cc88733", As = "e1iftji1w7@10a06d1ec260adc", Rs = "e1iftji1w7@10a06d1ec260adc", Qi = { cn: { reportUrl: Ss, pid: ys }, "cn-hangzhou": { reportUrl: Ss, pid: ys }, sg: { reportUrl: bs, pid: As }, "ap-southeast-1": { reportUrl: bs, pid: As }, usw: { reportUrl: vs, pid: Rs }, "us-west-1": { reportUrl: vs, pid: Rs } }, Wn = (r) => !!Object.isExtensible(r) && ((a) => Object.prototype.toString.call(a).slice(8, -1))(r) === "Object";
|
|
1491
1491
|
function _s(r, a) {
|
|
1492
1492
|
if (typeof r != "string")
|
|
1493
1493
|
return !1;
|
|
@@ -1557,7 +1557,7 @@ let Kn = 1;
|
|
|
1557
1557
|
class Er {
|
|
1558
1558
|
constructor(a) {
|
|
1559
1559
|
var e, t;
|
|
1560
|
-
|
|
1560
|
+
Ot(this, "armsLogger"), Ot(this, "isReady", !1), Ot(this, "isDestroyed", !1), Ot(this, "options"), Ot(this, "queue", []), Ot(this, "marker"), Ot(this, "helper", { MediaboxWrapperQueue: (i) => new Es(i), MediaboxWrapperInitiative: (i) => new Es(i) }), this.options = ut($({}, a), { region: a.deferRegionSet ? void 0 : (e = a.region) != null ? e : "cn", env: (t = a.env) != null ? t : "prod" }), this.marker = `-${Kn++}-`, this.initArmsLogger();
|
|
1561
1561
|
}
|
|
1562
1562
|
static get version() {
|
|
1563
1563
|
return "0.23.0";
|
|
@@ -1570,10 +1570,10 @@ class Er {
|
|
|
1570
1570
|
throw new Error("region is required");
|
|
1571
1571
|
if (!e)
|
|
1572
1572
|
return;
|
|
1573
|
-
if (!
|
|
1573
|
+
if (!Qi[e])
|
|
1574
1574
|
throw new Error(`region ${e} is not supported`);
|
|
1575
1575
|
const s = zn.getArmsLogger();
|
|
1576
|
-
this.armsLogger = s.createExtraInstance({ enableInstanceAutoSend: !0, pid:
|
|
1576
|
+
this.armsLogger = s.createExtraInstance({ enableInstanceAutoSend: !0, pid: Qi[e].pid, tag: this.options.businessName, release: `${this.options.businessName}_${this.options.version}`, imgUrl: Qi[e].reportUrl, behavior: !0, sample: 1, disableHook: !0, environment: t, beforeReport: (n) => {
|
|
1577
1577
|
var o;
|
|
1578
1578
|
if (this.isDestroyed || _s(n.stack, this.marker) || n.t !== "pv" && n.t !== "error")
|
|
1579
1579
|
return !1;
|
|
@@ -1604,7 +1604,7 @@ class Er {
|
|
|
1604
1604
|
});
|
|
1605
1605
|
}
|
|
1606
1606
|
updateOptions(a) {
|
|
1607
|
-
this.options =
|
|
1607
|
+
this.options = $($({}, this.options), a);
|
|
1608
1608
|
}
|
|
1609
1609
|
setReady() {
|
|
1610
1610
|
this.initArmsLogger(!0), this.isReady = !0, this.queue.length && this.queue.forEach((a) => {
|
|
@@ -1620,13 +1620,13 @@ class Er {
|
|
|
1620
1620
|
this.isDestroyed = !0;
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
|
-
for (var
|
|
1623
|
+
for (var Zi, We = [], er = 0; er < 256; ++er)
|
|
1624
1624
|
We.push((er + 256).toString(16).slice(1));
|
|
1625
1625
|
var $n = new Uint8Array(16);
|
|
1626
1626
|
function Jn() {
|
|
1627
|
-
if (!
|
|
1627
|
+
if (!Zi && !(Zi = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)))
|
|
1628
1628
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1629
|
-
return
|
|
1629
|
+
return Zi($n);
|
|
1630
1630
|
}
|
|
1631
1631
|
const Is = { randomUUID: typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
1632
1632
|
function dt(r, a, e) {
|
|
@@ -1643,11 +1643,11 @@ function dt(r, a, e) {
|
|
|
1643
1643
|
return (We[s[n + 0]] + We[s[n + 1]] + We[s[n + 2]] + We[s[n + 3]] + "-" + We[s[n + 4]] + We[s[n + 5]] + "-" + We[s[n + 6]] + We[s[n + 7]] + "-" + We[s[n + 8]] + We[s[n + 9]] + "-" + We[s[n + 10]] + We[s[n + 11]] + We[s[n + 12]] + We[s[n + 13]] + We[s[n + 14]] + We[s[n + 15]]).toLowerCase();
|
|
1644
1644
|
}(t);
|
|
1645
1645
|
}
|
|
1646
|
-
var we = ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(we || {}),
|
|
1647
|
-
const
|
|
1646
|
+
var we = ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(we || {}), Qe = ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Qe || {}), k = ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(k || {}), ur = ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(ur || {}), It = ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(It || {}), ui = ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))(ui || {}), Ti = ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(Ti || {}), fe = ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(fe || {}), bt = ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(bt || {}), Ci = ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(Ci || {});
|
|
1647
|
+
const Ni = "7.1.3-beta.1";
|
|
1648
1648
|
class it {
|
|
1649
1649
|
static getVersionNumber() {
|
|
1650
|
-
let a =
|
|
1650
|
+
let a = Ni.split("."), e = "";
|
|
1651
1651
|
return a.forEach((t) => {
|
|
1652
1652
|
t.length === 1 ? e += "0" + t : e += t;
|
|
1653
1653
|
}), parseInt(e);
|
|
@@ -1715,7 +1715,7 @@ class it {
|
|
|
1715
1715
|
function Ts(r, a, e) {
|
|
1716
1716
|
Object.defineProperty(r, a, { writable: !0, enumerable: !0, configurable: !0, value: e });
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function Za(r, a, e, t) {
|
|
1719
1719
|
t ? t(() => {
|
|
1720
1720
|
Ts(r, a, e);
|
|
1721
1721
|
}) : Ts(r, a, e);
|
|
@@ -1843,12 +1843,12 @@ class Ir extends Gn {
|
|
|
1843
1843
|
}, this.overwriteTransString(a);
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
|
-
|
|
1846
|
+
Za(window, "SLS_Tracker", Ir);
|
|
1847
1847
|
var Ei = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1848
1848
|
function Yn(r) {
|
|
1849
1849
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
1850
1850
|
}
|
|
1851
|
-
function
|
|
1851
|
+
function Qn(r) {
|
|
1852
1852
|
if (r.__esModule)
|
|
1853
1853
|
return r;
|
|
1854
1854
|
var a = r.default;
|
|
@@ -1867,7 +1867,7 @@ function Zn(r) {
|
|
|
1867
1867
|
}), e;
|
|
1868
1868
|
}
|
|
1869
1869
|
var en = { exports: {} }, ks = { exports: {} };
|
|
1870
|
-
const
|
|
1870
|
+
const Zn = Qn(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
|
|
1871
1871
|
var Ps;
|
|
1872
1872
|
function he() {
|
|
1873
1873
|
return Ps || (Ps = 1, ks.exports = function() {
|
|
@@ -1875,7 +1875,7 @@ function he() {
|
|
|
1875
1875
|
var t;
|
|
1876
1876
|
if (typeof window != "undefined" && window.crypto && (t = window.crypto), typeof self != "undefined" && self.crypto && (t = self.crypto), typeof globalThis != "undefined" && globalThis.crypto && (t = globalThis.crypto), !t && typeof window != "undefined" && window.msCrypto && (t = window.msCrypto), !t && Ei !== void 0 && Ei.crypto && (t = Ei.crypto), !t)
|
|
1877
1877
|
try {
|
|
1878
|
-
t =
|
|
1878
|
+
t = Zn;
|
|
1879
1879
|
} catch (m) {
|
|
1880
1880
|
}
|
|
1881
1881
|
var i = function() {
|
|
@@ -1896,8 +1896,8 @@ function he() {
|
|
|
1896
1896
|
function m() {
|
|
1897
1897
|
}
|
|
1898
1898
|
return function(S) {
|
|
1899
|
-
var
|
|
1900
|
-
return m.prototype = S,
|
|
1899
|
+
var R;
|
|
1900
|
+
return m.prototype = S, R = new m(), m.prototype = null, R;
|
|
1901
1901
|
};
|
|
1902
1902
|
}(), n = {}, o = n.lib = {}, c = o.Base = { extend: function(m) {
|
|
1903
1903
|
var S = s(this);
|
|
@@ -1919,15 +1919,15 @@ function he() {
|
|
|
1919
1919
|
}, toString: function(m) {
|
|
1920
1920
|
return (m || d).stringify(this);
|
|
1921
1921
|
}, concat: function(m) {
|
|
1922
|
-
var S = this.words,
|
|
1922
|
+
var S = this.words, R = m.words, _ = this.sigBytes, y = m.sigBytes;
|
|
1923
1923
|
if (this.clamp(), _ % 4)
|
|
1924
1924
|
for (var v = 0; v < y; v++) {
|
|
1925
|
-
var w =
|
|
1925
|
+
var w = R[v >>> 2] >>> 24 - v % 4 * 8 & 255;
|
|
1926
1926
|
S[_ + v >>> 2] |= w << 24 - (_ + v) % 4 * 8;
|
|
1927
1927
|
}
|
|
1928
1928
|
else
|
|
1929
|
-
for (var
|
|
1930
|
-
S[_ +
|
|
1929
|
+
for (var A = 0; A < y; A += 4)
|
|
1930
|
+
S[_ + A >>> 2] = R[A >>> 2];
|
|
1931
1931
|
return this.sigBytes += y, this;
|
|
1932
1932
|
}, clamp: function() {
|
|
1933
1933
|
var m = this.words, S = this.sigBytes;
|
|
@@ -1936,29 +1936,29 @@ function he() {
|
|
|
1936
1936
|
var m = c.clone.call(this);
|
|
1937
1937
|
return m.words = this.words.slice(0), m;
|
|
1938
1938
|
}, random: function(m) {
|
|
1939
|
-
for (var S = [],
|
|
1939
|
+
for (var S = [], R = 0; R < m; R += 4)
|
|
1940
1940
|
S.push(i());
|
|
1941
1941
|
return new h.init(S, m);
|
|
1942
1942
|
} }), l = n.enc = {}, d = l.Hex = { stringify: function(m) {
|
|
1943
|
-
for (var S = m.words,
|
|
1943
|
+
for (var S = m.words, R = m.sigBytes, _ = [], y = 0; y < R; y++) {
|
|
1944
1944
|
var v = S[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
1945
1945
|
_.push((v >>> 4).toString(16)), _.push((15 & v).toString(16));
|
|
1946
1946
|
}
|
|
1947
1947
|
return _.join("");
|
|
1948
1948
|
}, parse: function(m) {
|
|
1949
|
-
for (var S = m.length,
|
|
1950
|
-
|
|
1951
|
-
return new h.init(
|
|
1949
|
+
for (var S = m.length, R = [], _ = 0; _ < S; _ += 2)
|
|
1950
|
+
R[_ >>> 3] |= parseInt(m.substr(_, 2), 16) << 24 - _ % 8 * 4;
|
|
1951
|
+
return new h.init(R, S / 2);
|
|
1952
1952
|
} }, b = l.Latin1 = { stringify: function(m) {
|
|
1953
|
-
for (var S = m.words,
|
|
1953
|
+
for (var S = m.words, R = m.sigBytes, _ = [], y = 0; y < R; y++) {
|
|
1954
1954
|
var v = S[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
1955
1955
|
_.push(String.fromCharCode(v));
|
|
1956
1956
|
}
|
|
1957
1957
|
return _.join("");
|
|
1958
1958
|
}, parse: function(m) {
|
|
1959
|
-
for (var S = m.length,
|
|
1960
|
-
|
|
1961
|
-
return new h.init(
|
|
1959
|
+
for (var S = m.length, R = [], _ = 0; _ < S; _++)
|
|
1960
|
+
R[_ >>> 2] |= (255 & m.charCodeAt(_)) << 24 - _ % 4 * 8;
|
|
1961
|
+
return new h.init(R, S);
|
|
1962
1962
|
} }, u = l.Utf8 = { stringify: function(m) {
|
|
1963
1963
|
try {
|
|
1964
1964
|
return decodeURIComponent(escape(b.stringify(m)));
|
|
@@ -1972,11 +1972,11 @@ function he() {
|
|
|
1972
1972
|
}, _append: function(m) {
|
|
1973
1973
|
typeof m == "string" && (m = u.parse(m)), this._data.concat(m), this._nDataBytes += m.sigBytes;
|
|
1974
1974
|
}, _process: function(m) {
|
|
1975
|
-
var S,
|
|
1976
|
-
if (
|
|
1977
|
-
for (var C = 0; C <
|
|
1975
|
+
var S, R = this._data, _ = R.words, y = R.sigBytes, v = this.blockSize, w = y / (4 * v), A = (w = m ? a.ceil(w) : a.max((0 | w) - this._minBufferSize, 0)) * v, E = a.min(4 * A, y);
|
|
1976
|
+
if (A) {
|
|
1977
|
+
for (var C = 0; C < A; C += v)
|
|
1978
1978
|
this._doProcessBlock(_, C);
|
|
1979
|
-
S = _.splice(0,
|
|
1979
|
+
S = _.splice(0, A), R.sigBytes -= E;
|
|
1980
1980
|
}
|
|
1981
1981
|
return new h.init(S, E);
|
|
1982
1982
|
}, clone: function() {
|
|
@@ -1992,12 +1992,12 @@ function he() {
|
|
|
1992
1992
|
}, finalize: function(m) {
|
|
1993
1993
|
return m && this._append(m), this._doFinalize();
|
|
1994
1994
|
}, blockSize: 16, _createHelper: function(m) {
|
|
1995
|
-
return function(S,
|
|
1996
|
-
return new m.init(
|
|
1995
|
+
return function(S, R) {
|
|
1996
|
+
return new m.init(R).finalize(S);
|
|
1997
1997
|
};
|
|
1998
1998
|
}, _createHmacHelper: function(m) {
|
|
1999
|
-
return function(S,
|
|
2000
|
-
return new p.HMAC.init(m,
|
|
1999
|
+
return function(S, R) {
|
|
2000
|
+
return new p.HMAC.init(m, R).finalize(S);
|
|
2001
2001
|
};
|
|
2002
2002
|
} });
|
|
2003
2003
|
var p = n.algo = {};
|
|
@@ -2027,9 +2027,9 @@ function ki() {
|
|
|
2027
2027
|
var a, e, t, i, s, n;
|
|
2028
2028
|
}(he())), Ms.exports;
|
|
2029
2029
|
}
|
|
2030
|
-
var
|
|
2030
|
+
var Ls, Ns = { exports: {} };
|
|
2031
2031
|
function eo() {
|
|
2032
|
-
return
|
|
2032
|
+
return Ls || (Ls = 1, Ns.exports = function(r) {
|
|
2033
2033
|
return function() {
|
|
2034
2034
|
if (typeof ArrayBuffer == "function") {
|
|
2035
2035
|
var a = r.lib.WordArray, e = a.init, t = a.init = function(i) {
|
|
@@ -2043,7 +2043,7 @@ function eo() {
|
|
|
2043
2043
|
t.prototype = a;
|
|
2044
2044
|
}
|
|
2045
2045
|
}(), r.lib.WordArray;
|
|
2046
|
-
}(he())),
|
|
2046
|
+
}(he())), Ns.exports;
|
|
2047
2047
|
}
|
|
2048
2048
|
var xs, Vs = { exports: {} };
|
|
2049
2049
|
function to() {
|
|
@@ -2078,7 +2078,7 @@ function to() {
|
|
|
2078
2078
|
}(he())), Vs.exports;
|
|
2079
2079
|
}
|
|
2080
2080
|
var Os, Us = { exports: {} };
|
|
2081
|
-
function
|
|
2081
|
+
function Ft() {
|
|
2082
2082
|
return Os || (Os = 1, Us.exports = function(r) {
|
|
2083
2083
|
return function() {
|
|
2084
2084
|
var a = r, e = a.lib.WordArray;
|
|
@@ -2162,7 +2162,7 @@ function io() {
|
|
|
2162
2162
|
}(he())), Hs.exports;
|
|
2163
2163
|
}
|
|
2164
2164
|
var Fs, js = { exports: {} };
|
|
2165
|
-
function
|
|
2165
|
+
function jt() {
|
|
2166
2166
|
return Fs || (Fs = 1, js.exports = function(r) {
|
|
2167
2167
|
return function(a) {
|
|
2168
2168
|
var e = r, t = e.lib, i = t.WordArray, s = t.Hasher, n = e.algo, o = [];
|
|
@@ -2177,13 +2177,13 @@ function Ft() {
|
|
|
2177
2177
|
var m = f + p, S = u[m];
|
|
2178
2178
|
u[m] = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8);
|
|
2179
2179
|
}
|
|
2180
|
-
var
|
|
2181
|
-
M = h(M,
|
|
2180
|
+
var R = this._hash.words, _ = u[f + 0], y = u[f + 1], v = u[f + 2], w = u[f + 3], A = u[f + 4], E = u[f + 5], C = u[f + 6], x = u[f + 7], P = u[f + 8], z = u[f + 9], G = u[f + 10], X = u[f + 11], K = u[f + 12], H = u[f + 13], Y = u[f + 14], ee = u[f + 15], M = R[0], N = R[1], D = R[2], L = R[3];
|
|
2181
|
+
M = h(M, N, D, L, _, 7, o[0]), L = h(L, M, N, D, y, 12, o[1]), D = h(D, L, M, N, v, 17, o[2]), N = h(N, D, L, M, w, 22, o[3]), M = h(M, N, D, L, A, 7, o[4]), L = h(L, M, N, D, E, 12, o[5]), D = h(D, L, M, N, C, 17, o[6]), N = h(N, D, L, M, x, 22, o[7]), M = h(M, N, D, L, P, 7, o[8]), L = h(L, M, N, D, z, 12, o[9]), D = h(D, L, M, N, G, 17, o[10]), N = h(N, D, L, M, X, 22, o[11]), M = h(M, N, D, L, K, 7, o[12]), L = h(L, M, N, D, H, 12, o[13]), D = h(D, L, M, N, Y, 17, o[14]), M = l(M, N = h(N, D, L, M, ee, 22, o[15]), D, L, y, 5, o[16]), L = l(L, M, N, D, C, 9, o[17]), D = l(D, L, M, N, X, 14, o[18]), N = l(N, D, L, M, _, 20, o[19]), M = l(M, N, D, L, E, 5, o[20]), L = l(L, M, N, D, G, 9, o[21]), D = l(D, L, M, N, ee, 14, o[22]), N = l(N, D, L, M, A, 20, o[23]), M = l(M, N, D, L, z, 5, o[24]), L = l(L, M, N, D, Y, 9, o[25]), D = l(D, L, M, N, w, 14, o[26]), N = l(N, D, L, M, P, 20, o[27]), M = l(M, N, D, L, H, 5, o[28]), L = l(L, M, N, D, v, 9, o[29]), D = l(D, L, M, N, x, 14, o[30]), M = d(M, N = l(N, D, L, M, K, 20, o[31]), D, L, E, 4, o[32]), L = d(L, M, N, D, P, 11, o[33]), D = d(D, L, M, N, X, 16, o[34]), N = d(N, D, L, M, Y, 23, o[35]), M = d(M, N, D, L, y, 4, o[36]), L = d(L, M, N, D, A, 11, o[37]), D = d(D, L, M, N, x, 16, o[38]), N = d(N, D, L, M, G, 23, o[39]), M = d(M, N, D, L, H, 4, o[40]), L = d(L, M, N, D, _, 11, o[41]), D = d(D, L, M, N, w, 16, o[42]), N = d(N, D, L, M, C, 23, o[43]), M = d(M, N, D, L, z, 4, o[44]), L = d(L, M, N, D, K, 11, o[45]), D = d(D, L, M, N, ee, 16, o[46]), M = b(M, N = d(N, D, L, M, v, 23, o[47]), D, L, _, 6, o[48]), L = b(L, M, N, D, x, 10, o[49]), D = b(D, L, M, N, Y, 15, o[50]), N = b(N, D, L, M, E, 21, o[51]), M = b(M, N, D, L, K, 6, o[52]), L = b(L, M, N, D, w, 10, o[53]), D = b(D, L, M, N, G, 15, o[54]), N = b(N, D, L, M, y, 21, o[55]), M = b(M, N, D, L, P, 6, o[56]), L = b(L, M, N, D, ee, 10, o[57]), D = b(D, L, M, N, C, 15, o[58]), N = b(N, D, L, M, H, 21, o[59]), M = b(M, N, D, L, A, 6, o[60]), L = b(L, M, N, D, X, 10, o[61]), D = b(D, L, M, N, v, 15, o[62]), N = b(N, D, L, M, z, 21, o[63]), R[0] = R[0] + M | 0, R[1] = R[1] + N | 0, R[2] = R[2] + D | 0, R[3] = R[3] + L | 0;
|
|
2182
2182
|
}, _doFinalize: function() {
|
|
2183
2183
|
var u = this._data, f = u.words, p = 8 * this._nDataBytes, m = 8 * u.sigBytes;
|
|
2184
2184
|
f[m >>> 5] |= 128 << 24 - m % 32;
|
|
2185
|
-
var S = a.floor(p / 4294967296),
|
|
2186
|
-
f[15 + (m + 64 >>> 9 << 4)] = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8), f[14 + (m + 64 >>> 9 << 4)] = 16711935 & (
|
|
2185
|
+
var S = a.floor(p / 4294967296), R = p;
|
|
2186
|
+
f[15 + (m + 64 >>> 9 << 4)] = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8), f[14 + (m + 64 >>> 9 << 4)] = 16711935 & (R << 8 | R >>> 24) | 4278255360 & (R << 24 | R >>> 8), u.sigBytes = 4 * (f.length + 1), this._process();
|
|
2187
2187
|
for (var _ = this._hash, y = _.words, v = 0; v < 4; v++) {
|
|
2188
2188
|
var w = y[v];
|
|
2189
2189
|
y[v] = 16711935 & (w << 8 | w >>> 24) | 4278255360 & (w << 24 | w >>> 8);
|
|
@@ -2193,21 +2193,21 @@ function Ft() {
|
|
|
2193
2193
|
var u = s.clone.call(this);
|
|
2194
2194
|
return u._hash = this._hash.clone(), u;
|
|
2195
2195
|
} });
|
|
2196
|
-
function h(u, f, p, m, S,
|
|
2196
|
+
function h(u, f, p, m, S, R, _) {
|
|
2197
2197
|
var y = u + (f & p | ~f & m) + S + _;
|
|
2198
|
-
return (y <<
|
|
2198
|
+
return (y << R | y >>> 32 - R) + f;
|
|
2199
2199
|
}
|
|
2200
|
-
function l(u, f, p, m, S,
|
|
2200
|
+
function l(u, f, p, m, S, R, _) {
|
|
2201
2201
|
var y = u + (f & m | p & ~m) + S + _;
|
|
2202
|
-
return (y <<
|
|
2202
|
+
return (y << R | y >>> 32 - R) + f;
|
|
2203
2203
|
}
|
|
2204
|
-
function d(u, f, p, m, S,
|
|
2204
|
+
function d(u, f, p, m, S, R, _) {
|
|
2205
2205
|
var y = u + (f ^ p ^ m) + S + _;
|
|
2206
|
-
return (y <<
|
|
2206
|
+
return (y << R | y >>> 32 - R) + f;
|
|
2207
2207
|
}
|
|
2208
|
-
function b(u, f, p, m, S,
|
|
2208
|
+
function b(u, f, p, m, S, R, _) {
|
|
2209
2209
|
var y = u + (p ^ (f | ~m)) + S + _;
|
|
2210
|
-
return (y <<
|
|
2210
|
+
return (y << R | y >>> 32 - R) + f;
|
|
2211
2211
|
}
|
|
2212
2212
|
e.MD5 = s._createHelper(c), e.HmacMD5 = s._createHmacHelper(c);
|
|
2213
2213
|
}(Math), r.MD5;
|
|
@@ -2226,8 +2226,8 @@ function tn() {
|
|
|
2226
2226
|
var S = n[m - 3] ^ n[m - 8] ^ n[m - 14] ^ n[m - 16];
|
|
2227
2227
|
n[m] = S << 1 | S >>> 31;
|
|
2228
2228
|
}
|
|
2229
|
-
var
|
|
2230
|
-
|
|
2229
|
+
var R = (d << 5 | d >>> 27) + p + n[m];
|
|
2230
|
+
R += m < 20 ? 1518500249 + (b & u | ~b & f) : m < 40 ? 1859775393 + (b ^ u ^ f) : m < 60 ? (b & u | b & f | u & f) - 1894007588 : (b ^ u ^ f) - 899497514, p = f, f = u, u = b << 30 | b >>> 2, b = d, d = R;
|
|
2231
2231
|
}
|
|
2232
2232
|
l[0] = l[0] + d | 0, l[1] = l[1] + b | 0, l[2] = l[2] + u | 0, l[3] = l[3] + f | 0, l[4] = l[4] + p | 0;
|
|
2233
2233
|
}, _doFinalize: function() {
|
|
@@ -2261,17 +2261,17 @@ function tr() {
|
|
|
2261
2261
|
var h = [], l = n.SHA256 = s.extend({ _doReset: function() {
|
|
2262
2262
|
this._hash = new i.init(o.slice(0));
|
|
2263
2263
|
}, _doProcessBlock: function(d, b) {
|
|
2264
|
-
for (var u = this._hash.words, f = u[0], p = u[1], m = u[2], S = u[3],
|
|
2264
|
+
for (var u = this._hash.words, f = u[0], p = u[1], m = u[2], S = u[3], R = u[4], _ = u[5], y = u[6], v = u[7], w = 0; w < 64; w++) {
|
|
2265
2265
|
if (w < 16)
|
|
2266
2266
|
h[w] = 0 | d[b + w];
|
|
2267
2267
|
else {
|
|
2268
|
-
var
|
|
2268
|
+
var A = h[w - 15], E = (A << 25 | A >>> 7) ^ (A << 14 | A >>> 18) ^ A >>> 3, C = h[w - 2], x = (C << 15 | C >>> 17) ^ (C << 13 | C >>> 19) ^ C >>> 10;
|
|
2269
2269
|
h[w] = E + h[w - 7] + x + h[w - 16];
|
|
2270
2270
|
}
|
|
2271
|
-
var P = f & p ^ f & m ^ p & m, z = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), G = v + ((
|
|
2272
|
-
v = y, y = _, _ =
|
|
2271
|
+
var P = f & p ^ f & m ^ p & m, z = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), G = v + ((R << 26 | R >>> 6) ^ (R << 21 | R >>> 11) ^ (R << 7 | R >>> 25)) + (R & _ ^ ~R & y) + c[w] + h[w];
|
|
2272
|
+
v = y, y = _, _ = R, R = S + G | 0, S = m, m = p, p = f, f = G + (z + P) | 0;
|
|
2273
2273
|
}
|
|
2274
|
-
u[0] = u[0] + f | 0, u[1] = u[1] + p | 0, u[2] = u[2] + m | 0, u[3] = u[3] + S | 0, u[4] = u[4] +
|
|
2274
|
+
u[0] = u[0] + f | 0, u[1] = u[1] + p | 0, u[2] = u[2] + m | 0, u[3] = u[3] + S | 0, u[4] = u[4] + R | 0, u[5] = u[5] + _ | 0, u[6] = u[6] + y | 0, u[7] = u[7] + v | 0;
|
|
2275
2275
|
}, _doFinalize: function() {
|
|
2276
2276
|
var d = this._data, b = d.words, u = 8 * this._nDataBytes, f = 8 * d.sigBytes;
|
|
2277
2277
|
return b[f >>> 5] |= 128 << 24 - f % 32, b[14 + (f + 64 >>> 9 << 4)] = a.floor(u / 4294967296), b[15 + (f + 64 >>> 9 << 4)] = u, d.sigBytes = 4 * b.length, this._process(), this._hash;
|
|
@@ -2299,18 +2299,18 @@ function Xs() {
|
|
|
2299
2299
|
var l = n.SHA512 = e.extend({ _doReset: function() {
|
|
2300
2300
|
this._hash = new s.init([new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209)]);
|
|
2301
2301
|
}, _doProcessBlock: function(d, b) {
|
|
2302
|
-
for (var u = this._hash.words, f = u[0], p = u[1], m = u[2], S = u[3],
|
|
2303
|
-
var ue, Ie, ie = h[
|
|
2304
|
-
if (
|
|
2305
|
-
Ie = ie.high = 0 | d[b + 2 *
|
|
2302
|
+
for (var u = this._hash.words, f = u[0], p = u[1], m = u[2], S = u[3], R = u[4], _ = u[5], y = u[6], v = u[7], w = f.high, A = f.low, E = p.high, C = p.low, x = m.high, P = m.low, z = S.high, G = S.low, X = R.high, K = R.low, H = _.high, Y = _.low, ee = y.high, M = y.low, N = v.high, D = v.low, L = w, ce = A, me = E, ye = C, J = x, le = P, Pe = z, be = G, de = X, ge = K, Fe = H, te = Y, Ae = ee, ke = M, se = N, re = D, Q = 0; Q < 80; Q++) {
|
|
2303
|
+
var ue, Ie, ie = h[Q];
|
|
2304
|
+
if (Q < 16)
|
|
2305
|
+
Ie = ie.high = 0 | d[b + 2 * Q], ue = ie.low = 0 | d[b + 2 * Q + 1];
|
|
2306
2306
|
else {
|
|
2307
|
-
var je = h[
|
|
2307
|
+
var je = h[Q - 15], q = je.high, Ee = je.low, Je = (q >>> 1 | Ee << 31) ^ (q >>> 8 | Ee << 24) ^ q >>> 7, Oe = (Ee >>> 1 | q << 31) ^ (Ee >>> 8 | q << 24) ^ (Ee >>> 7 | q << 25), Gt = h[Q - 2], Ge = Gt.high, mt = Gt.low, qt = (Ge >>> 19 | mt << 13) ^ (Ge << 3 | mt >>> 29) ^ Ge >>> 6, nt = (mt >>> 19 | Ge << 13) ^ (mt << 3 | Ge >>> 29) ^ (mt >>> 6 | Ge << 26), wt = h[Q - 7], Si = wt.high, bi = wt.low, Ur = h[Q - 16], wn = Ur.high, Br = Ur.low;
|
|
2308
2308
|
Ie = (Ie = (Ie = Je + Si + ((ue = Oe + bi) >>> 0 < Oe >>> 0 ? 1 : 0)) + qt + ((ue += nt) >>> 0 < nt >>> 0 ? 1 : 0)) + wn + ((ue += Br) >>> 0 < Br >>> 0 ? 1 : 0), ie.high = Ie, ie.low = ue;
|
|
2309
2309
|
}
|
|
2310
|
-
var
|
|
2311
|
-
se = Ae, re = ke, Ae = Fe, ke = te, Fe = de, te = ge, de = Pe + (ri = (ri = (ri = ri + En + ((
|
|
2310
|
+
var Vt, En = de & Fe ^ ~de & Ae, Hr = ge & te ^ ~ge & ke, In = L & me ^ L & J ^ me & J, Tn = ce & ye ^ ce & le ^ ye & le, Cn = (L >>> 28 | ce << 4) ^ (L << 30 | ce >>> 2) ^ (L << 25 | ce >>> 7), Fr = (ce >>> 28 | L << 4) ^ (ce << 30 | L >>> 2) ^ (ce << 25 | L >>> 7), kn = (de >>> 14 | ge << 18) ^ (de >>> 18 | ge << 14) ^ (de << 23 | ge >>> 9), Pn = (ge >>> 14 | de << 18) ^ (ge >>> 18 | de << 14) ^ (ge << 23 | de >>> 9), jr = c[Q], Dn = jr.high, zr = jr.low, ri = se + kn + ((Vt = re + Pn) >>> 0 < re >>> 0 ? 1 : 0), Wr = Fr + Tn;
|
|
2311
|
+
se = Ae, re = ke, Ae = Fe, ke = te, Fe = de, te = ge, de = Pe + (ri = (ri = (ri = ri + En + ((Vt += Hr) >>> 0 < Hr >>> 0 ? 1 : 0)) + Dn + ((Vt += zr) >>> 0 < zr >>> 0 ? 1 : 0)) + Ie + ((Vt += ue) >>> 0 < ue >>> 0 ? 1 : 0)) + ((ge = be + Vt | 0) >>> 0 < be >>> 0 ? 1 : 0) | 0, Pe = J, be = le, J = me, le = ye, me = L, ye = ce, L = ri + (Cn + In + (Wr >>> 0 < Fr >>> 0 ? 1 : 0)) + ((ce = Vt + Wr | 0) >>> 0 < Vt >>> 0 ? 1 : 0) | 0;
|
|
2312
2312
|
}
|
|
2313
|
-
|
|
2313
|
+
A = f.low = A + ce, f.high = w + L + (A >>> 0 < ce >>> 0 ? 1 : 0), C = p.low = C + ye, p.high = E + me + (C >>> 0 < ye >>> 0 ? 1 : 0), P = m.low = P + le, m.high = x + J + (P >>> 0 < le >>> 0 ? 1 : 0), G = S.low = G + be, S.high = z + Pe + (G >>> 0 < be >>> 0 ? 1 : 0), K = R.low = K + ge, R.high = X + de + (K >>> 0 < ge >>> 0 ? 1 : 0), Y = _.low = Y + te, _.high = H + Fe + (Y >>> 0 < te >>> 0 ? 1 : 0), M = y.low = M + ke, y.high = ee + Ae + (M >>> 0 < ke >>> 0 ? 1 : 0), D = v.low = D + re, v.high = N + se + (D >>> 0 < re >>> 0 ? 1 : 0);
|
|
2314
2314
|
}, _doFinalize: function() {
|
|
2315
2315
|
var d = this._data, b = d.words, u = 8 * this._nDataBytes, f = 8 * d.sigBytes;
|
|
2316
2316
|
return b[f >>> 5] |= 128 << 24 - f % 32, b[30 + (f + 128 >>> 10 << 5)] = Math.floor(u / 4294967296), b[31 + (f + 128 >>> 10 << 5)] = u, d.sigBytes = 4 * b.length, this._process(), this._hash.toX32();
|
|
@@ -2322,9 +2322,9 @@ function Xs() {
|
|
|
2322
2322
|
}(), r.SHA512;
|
|
2323
2323
|
}(he(), ki())), qs.exports;
|
|
2324
2324
|
}
|
|
2325
|
-
var Ys, so = { exports: {} },
|
|
2325
|
+
var Ys, so = { exports: {} }, Qs, Zs = { exports: {} };
|
|
2326
2326
|
function ao() {
|
|
2327
|
-
return
|
|
2327
|
+
return Qs || (Qs = 1, Zs.exports = function(r) {
|
|
2328
2328
|
return function(a) {
|
|
2329
2329
|
var e = r, t = e.lib, i = t.WordArray, s = t.Hasher, n = e.x64.Word, o = e.algo, c = [], h = [], l = [];
|
|
2330
2330
|
(function() {
|
|
@@ -2336,7 +2336,7 @@ function ao() {
|
|
|
2336
2336
|
for (u = 0; u < 5; u++)
|
|
2337
2337
|
for (f = 0; f < 5; f++)
|
|
2338
2338
|
h[u + 5 * f] = f + (2 * u + 3 * f) % 5 * 5;
|
|
2339
|
-
for (var S = 1,
|
|
2339
|
+
for (var S = 1, R = 0; R < 24; R++) {
|
|
2340
2340
|
for (var _ = 0, y = 0, v = 0; v < 7; v++) {
|
|
2341
2341
|
if (1 & S) {
|
|
2342
2342
|
var w = (1 << v) - 1;
|
|
@@ -2344,7 +2344,7 @@ function ao() {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
128 & S ? S = S << 1 ^ 113 : S <<= 1;
|
|
2346
2346
|
}
|
|
2347
|
-
l[
|
|
2347
|
+
l[R] = n.create(_, y);
|
|
2348
2348
|
}
|
|
2349
2349
|
})();
|
|
2350
2350
|
var d = [];
|
|
@@ -2358,32 +2358,32 @@ function ao() {
|
|
|
2358
2358
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2359
2359
|
}, _doProcessBlock: function(u, f) {
|
|
2360
2360
|
for (var p = this._state, m = this.blockSize / 2, S = 0; S < m; S++) {
|
|
2361
|
-
var
|
|
2362
|
-
|
|
2361
|
+
var R = u[f + 2 * S], _ = u[f + 2 * S + 1];
|
|
2362
|
+
R = 16711935 & (R << 8 | R >>> 24) | 4278255360 & (R << 24 | R >>> 8), _ = 16711935 & (_ << 8 | _ >>> 24) | 4278255360 & (_ << 24 | _ >>> 8), (D = p[S]).high ^= _, D.low ^= R;
|
|
2363
2363
|
}
|
|
2364
2364
|
for (var y = 0; y < 24; y++) {
|
|
2365
2365
|
for (var v = 0; v < 5; v++) {
|
|
2366
|
-
for (var w = 0,
|
|
2367
|
-
w ^= (D = p[v + 5 * E]).high,
|
|
2366
|
+
for (var w = 0, A = 0, E = 0; E < 5; E++)
|
|
2367
|
+
w ^= (D = p[v + 5 * E]).high, A ^= D.low;
|
|
2368
2368
|
var C = d[v];
|
|
2369
|
-
C.high = w, C.low =
|
|
2369
|
+
C.high = w, C.low = A;
|
|
2370
2370
|
}
|
|
2371
2371
|
for (v = 0; v < 5; v++) {
|
|
2372
2372
|
var x = d[(v + 4) % 5], P = d[(v + 1) % 5], z = P.high, G = P.low;
|
|
2373
|
-
for (w = x.high ^ (z << 1 | G >>> 31),
|
|
2374
|
-
(D = p[v + 5 * E]).high ^= w, D.low ^=
|
|
2373
|
+
for (w = x.high ^ (z << 1 | G >>> 31), A = x.low ^ (G << 1 | z >>> 31), E = 0; E < 5; E++)
|
|
2374
|
+
(D = p[v + 5 * E]).high ^= w, D.low ^= A;
|
|
2375
2375
|
}
|
|
2376
2376
|
for (var X = 1; X < 25; X++) {
|
|
2377
2377
|
var K = (D = p[X]).high, H = D.low, Y = c[X];
|
|
2378
|
-
Y < 32 ? (w = K << Y | H >>> 32 - Y,
|
|
2378
|
+
Y < 32 ? (w = K << Y | H >>> 32 - Y, A = H << Y | K >>> 32 - Y) : (w = H << Y - 32 | K >>> 64 - Y, A = K << Y - 32 | H >>> 64 - Y);
|
|
2379
2379
|
var ee = d[h[X]];
|
|
2380
|
-
ee.high = w, ee.low =
|
|
2380
|
+
ee.high = w, ee.low = A;
|
|
2381
2381
|
}
|
|
2382
|
-
var M = d[0],
|
|
2383
|
-
for (M.high =
|
|
2382
|
+
var M = d[0], N = p[0];
|
|
2383
|
+
for (M.high = N.high, M.low = N.low, v = 0; v < 5; v++)
|
|
2384
2384
|
for (E = 0; E < 5; E++) {
|
|
2385
|
-
var D = p[X = v + 5 * E],
|
|
2386
|
-
D.high =
|
|
2385
|
+
var D = p[X = v + 5 * E], L = d[X], ce = d[(v + 1) % 5 + 5 * E], me = d[(v + 2) % 5 + 5 * E];
|
|
2386
|
+
D.high = L.high ^ ~ce.high & me.high, D.low = L.low ^ ~ce.low & me.low;
|
|
2387
2387
|
}
|
|
2388
2388
|
D = p[0];
|
|
2389
2389
|
var ye = l[y];
|
|
@@ -2394,11 +2394,11 @@ function ao() {
|
|
|
2394
2394
|
this._nDataBytes;
|
|
2395
2395
|
var p = 8 * u.sigBytes, m = 32 * this.blockSize;
|
|
2396
2396
|
f[p >>> 5] |= 1 << 24 - p % 32, f[(a.ceil((p + 1) / m) * m >>> 5) - 1] |= 128, u.sigBytes = 4 * f.length, this._process();
|
|
2397
|
-
for (var S = this._state,
|
|
2398
|
-
var w = S[v],
|
|
2399
|
-
|
|
2397
|
+
for (var S = this._state, R = this.cfg.outputLength / 8, _ = R / 8, y = [], v = 0; v < _; v++) {
|
|
2398
|
+
var w = S[v], A = w.high, E = w.low;
|
|
2399
|
+
A = 16711935 & (A << 8 | A >>> 24) | 4278255360 & (A << 24 | A >>> 8), E = 16711935 & (E << 8 | E >>> 24) | 4278255360 & (E << 24 | E >>> 8), y.push(E), y.push(A);
|
|
2400
2400
|
}
|
|
2401
|
-
return new i.init(y,
|
|
2401
|
+
return new i.init(y, R);
|
|
2402
2402
|
}, clone: function() {
|
|
2403
2403
|
for (var u = s.clone.call(this), f = u._state = this._state.slice(0), p = 0; p < 25; p++)
|
|
2404
2404
|
f[p] = f[p].clone();
|
|
@@ -2406,7 +2406,7 @@ function ao() {
|
|
|
2406
2406
|
} });
|
|
2407
2407
|
e.SHA3 = s._createHelper(b), e.HmacSHA3 = s._createHmacHelper(b);
|
|
2408
2408
|
}(Math), r.SHA3;
|
|
2409
|
-
}(he(), ki())),
|
|
2409
|
+
}(he(), ki())), Zs.exports;
|
|
2410
2410
|
}
|
|
2411
2411
|
var ea, no = { exports: {} }, ta, ia = { exports: {} };
|
|
2412
2412
|
function pr() {
|
|
@@ -2431,7 +2431,7 @@ function pr() {
|
|
|
2431
2431
|
}(he())), ia.exports;
|
|
2432
2432
|
}
|
|
2433
2433
|
var ra, oo = { exports: {} }, sa, aa = { exports: {} };
|
|
2434
|
-
function
|
|
2434
|
+
function Ct() {
|
|
2435
2435
|
return sa || (sa = 1, aa.exports = function(r) {
|
|
2436
2436
|
return e = (a = r).lib, t = e.Base, i = e.WordArray, s = a.algo, n = s.MD5, o = s.EvpKDF = t.extend({ cfg: t.extend({ keySize: 4, hasher: n, iterations: 1 }), init: function(c) {
|
|
2437
2437
|
this.cfg = this.cfg.extend(c);
|
|
@@ -2472,10 +2472,10 @@ function Be() {
|
|
|
2472
2472
|
return typeof v == "string" ? _ : S;
|
|
2473
2473
|
}
|
|
2474
2474
|
return function(v) {
|
|
2475
|
-
return { encrypt: function(w,
|
|
2476
|
-
return y(
|
|
2477
|
-
}, decrypt: function(w,
|
|
2478
|
-
return y(
|
|
2475
|
+
return { encrypt: function(w, A, E) {
|
|
2476
|
+
return y(A).encrypt(v, w, A, E);
|
|
2477
|
+
}, decrypt: function(w, A, E) {
|
|
2478
|
+
return y(A).decrypt(v, w, A, E);
|
|
2479
2479
|
} };
|
|
2480
2480
|
};
|
|
2481
2481
|
}() });
|
|
@@ -2490,23 +2490,23 @@ function Be() {
|
|
|
2490
2490
|
this._cipher = y, this._iv = v;
|
|
2491
2491
|
} }), u = d.CBC = function() {
|
|
2492
2492
|
var y = b.extend();
|
|
2493
|
-
function v(w,
|
|
2493
|
+
function v(w, A, E) {
|
|
2494
2494
|
var C, x = this._iv;
|
|
2495
2495
|
x ? (C = x, this._iv = a) : C = this._prevBlock;
|
|
2496
2496
|
for (var P = 0; P < E; P++)
|
|
2497
|
-
w[
|
|
2497
|
+
w[A + P] ^= C[P];
|
|
2498
2498
|
}
|
|
2499
|
-
return y.Encryptor = y.extend({ processBlock: function(w,
|
|
2499
|
+
return y.Encryptor = y.extend({ processBlock: function(w, A) {
|
|
2500
2500
|
var E = this._cipher, C = E.blockSize;
|
|
2501
|
-
v.call(this, w,
|
|
2502
|
-
} }), y.Decryptor = y.extend({ processBlock: function(w,
|
|
2503
|
-
var E = this._cipher, C = E.blockSize, x = w.slice(
|
|
2504
|
-
E.decryptBlock(w,
|
|
2501
|
+
v.call(this, w, A, C), E.encryptBlock(w, A), this._prevBlock = w.slice(A, A + C);
|
|
2502
|
+
} }), y.Decryptor = y.extend({ processBlock: function(w, A) {
|
|
2503
|
+
var E = this._cipher, C = E.blockSize, x = w.slice(A, A + C);
|
|
2504
|
+
E.decryptBlock(w, A), v.call(this, w, A, C), this._prevBlock = x;
|
|
2505
2505
|
} }), y;
|
|
2506
2506
|
}(), f = (e.pad = {}).Pkcs7 = { pad: function(y, v) {
|
|
2507
|
-
for (var w = 4 * v,
|
|
2507
|
+
for (var w = 4 * v, A = w - y.sigBytes % w, E = A << 24 | A << 16 | A << 8 | A, C = [], x = 0; x < A; x += 4)
|
|
2508
2508
|
C.push(E);
|
|
2509
|
-
var P = s.create(C,
|
|
2509
|
+
var P = s.create(C, A);
|
|
2510
2510
|
y.concat(P);
|
|
2511
2511
|
}, unpad: function(y) {
|
|
2512
2512
|
var v = 255 & y.words[y.sigBytes - 1 >>> 2];
|
|
@@ -2515,8 +2515,8 @@ function Be() {
|
|
|
2515
2515
|
t.BlockCipher = l.extend({ cfg: l.cfg.extend({ mode: u, padding: f }), reset: function() {
|
|
2516
2516
|
var y;
|
|
2517
2517
|
l.reset.call(this);
|
|
2518
|
-
var v = this.cfg, w = v.iv,
|
|
2519
|
-
this._xformMode == this._ENC_XFORM_MODE ? y =
|
|
2518
|
+
var v = this.cfg, w = v.iv, A = v.mode;
|
|
2519
|
+
this._xformMode == this._ENC_XFORM_MODE ? y = A.createEncryptor : (y = A.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == y ? this._mode.init(this, w && w.words) : (this._mode = y.call(A, this, w && w.words), this._mode.__creator = y);
|
|
2520
2520
|
}, _doProcessBlock: function(y, v) {
|
|
2521
2521
|
this._mode.processBlock(y, v);
|
|
2522
2522
|
}, _doFinalize: function() {
|
|
@@ -2531,35 +2531,35 @@ function Be() {
|
|
|
2531
2531
|
var v = y.ciphertext, w = y.salt;
|
|
2532
2532
|
return (w ? s.create([1398893684, 1701076831]).concat(w).concat(v) : v).toString(c);
|
|
2533
2533
|
}, parse: function(y) {
|
|
2534
|
-
var v, w = c.parse(y),
|
|
2535
|
-
return
|
|
2536
|
-
} }, S = t.SerializableCipher = i.extend({ cfg: i.extend({ format: m }), encrypt: function(y, v, w,
|
|
2537
|
-
|
|
2538
|
-
var E = y.createEncryptor(w,
|
|
2539
|
-
return p.create({ ciphertext: C, key: w, iv: x.iv, algorithm: y, mode: x.mode, padding: x.padding, blockSize: y.blockSize, formatter:
|
|
2540
|
-
}, decrypt: function(y, v, w,
|
|
2541
|
-
return
|
|
2534
|
+
var v, w = c.parse(y), A = w.words;
|
|
2535
|
+
return A[0] == 1398893684 && A[1] == 1701076831 && (v = s.create(A.slice(2, 4)), A.splice(0, 4), w.sigBytes -= 16), p.create({ ciphertext: w, salt: v });
|
|
2536
|
+
} }, S = t.SerializableCipher = i.extend({ cfg: i.extend({ format: m }), encrypt: function(y, v, w, A) {
|
|
2537
|
+
A = this.cfg.extend(A);
|
|
2538
|
+
var E = y.createEncryptor(w, A), C = E.finalize(v), x = E.cfg;
|
|
2539
|
+
return p.create({ ciphertext: C, key: w, iv: x.iv, algorithm: y, mode: x.mode, padding: x.padding, blockSize: y.blockSize, formatter: A.format });
|
|
2540
|
+
}, decrypt: function(y, v, w, A) {
|
|
2541
|
+
return A = this.cfg.extend(A), v = this._parse(v, A.format), y.createDecryptor(w, A).finalize(v.ciphertext);
|
|
2542
2542
|
}, _parse: function(y, v) {
|
|
2543
2543
|
return typeof y == "string" ? v.parse(y, this) : y;
|
|
2544
|
-
} }),
|
|
2545
|
-
if (
|
|
2546
|
-
C = h.create({ keySize: v + w, hasher: E }).compute(y,
|
|
2544
|
+
} }), R = (e.kdf = {}).OpenSSL = { execute: function(y, v, w, A, E) {
|
|
2545
|
+
if (A || (A = s.random(8)), E)
|
|
2546
|
+
C = h.create({ keySize: v + w, hasher: E }).compute(y, A);
|
|
2547
2547
|
else
|
|
2548
|
-
var C = h.create({ keySize: v + w }).compute(y,
|
|
2548
|
+
var C = h.create({ keySize: v + w }).compute(y, A);
|
|
2549
2549
|
var x = s.create(C.words.slice(v), 4 * w);
|
|
2550
|
-
return C.sigBytes = 4 * v, p.create({ key: C, iv: x, salt:
|
|
2551
|
-
} }, _ = t.PasswordBasedCipher = S.extend({ cfg: S.cfg.extend({ kdf:
|
|
2552
|
-
var E = (
|
|
2553
|
-
|
|
2554
|
-
var C = S.encrypt.call(this, y, v, E.key,
|
|
2550
|
+
return C.sigBytes = 4 * v, p.create({ key: C, iv: x, salt: A });
|
|
2551
|
+
} }, _ = t.PasswordBasedCipher = S.extend({ cfg: S.cfg.extend({ kdf: R }), encrypt: function(y, v, w, A) {
|
|
2552
|
+
var E = (A = this.cfg.extend(A)).kdf.execute(w, y.keySize, y.ivSize, A.salt, A.hasher);
|
|
2553
|
+
A.iv = E.iv;
|
|
2554
|
+
var C = S.encrypt.call(this, y, v, E.key, A);
|
|
2555
2555
|
return C.mixIn(E), C;
|
|
2556
|
-
}, decrypt: function(y, v, w,
|
|
2557
|
-
|
|
2558
|
-
var E =
|
|
2559
|
-
return
|
|
2556
|
+
}, decrypt: function(y, v, w, A) {
|
|
2557
|
+
A = this.cfg.extend(A), v = this._parse(v, A.format);
|
|
2558
|
+
var E = A.kdf.execute(w, y.keySize, y.ivSize, v.salt, A.hasher);
|
|
2559
|
+
return A.iv = E.iv, S.decrypt.call(this, y, v, E.key, A);
|
|
2560
2560
|
} });
|
|
2561
2561
|
}();
|
|
2562
|
-
}(he(),
|
|
2562
|
+
}(he(), Ct())), oa.exports;
|
|
2563
2563
|
}
|
|
2564
2564
|
var ca, ha = { exports: {} };
|
|
2565
2565
|
function co() {
|
|
@@ -2643,8 +2643,8 @@ function Ao() {
|
|
|
2643
2643
|
return function() {
|
|
2644
2644
|
var a = r, e = a.lib, t = e.WordArray, i = e.BlockCipher, s = a.algo, n = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4], o = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32], c = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], h = [{ 0: 8421888, 268435456: 32768, 536870912: 8421378, 805306368: 2, 1073741824: 512, 1342177280: 8421890, 1610612736: 8389122, 1879048192: 8388608, 2147483648: 514, 2415919104: 8389120, 2684354560: 33280, 2952790016: 8421376, 3221225472: 32770, 3489660928: 8388610, 3758096384: 0, 4026531840: 33282, 134217728: 0, 402653184: 8421890, 671088640: 33282, 939524096: 32768, 1207959552: 8421888, 1476395008: 512, 1744830464: 8421378, 2013265920: 2, 2281701376: 8389120, 2550136832: 33280, 2818572288: 8421376, 3087007744: 8389122, 3355443200: 8388610, 3623878656: 32770, 3892314112: 514, 4160749568: 8388608, 1: 32768, 268435457: 2, 536870913: 8421888, 805306369: 8388608, 1073741825: 8421378, 1342177281: 33280, 1610612737: 512, 1879048193: 8389122, 2147483649: 8421890, 2415919105: 8421376, 2684354561: 8388610, 2952790017: 33282, 3221225473: 514, 3489660929: 8389120, 3758096385: 32770, 4026531841: 0, 134217729: 8421890, 402653185: 8421376, 671088641: 8388608, 939524097: 512, 1207959553: 32768, 1476395009: 8388610, 1744830465: 2, 2013265921: 33282, 2281701377: 32770, 2550136833: 8389122, 2818572289: 514, 3087007745: 8421888, 3355443201: 8389120, 3623878657: 0, 3892314113: 33280, 4160749569: 8421378 }, { 0: 1074282512, 16777216: 16384, 33554432: 524288, 50331648: 1074266128, 67108864: 1073741840, 83886080: 1074282496, 100663296: 1073758208, 117440512: 16, 134217728: 540672, 150994944: 1073758224, 167772160: 1073741824, 184549376: 540688, 201326592: 524304, 218103808: 0, 234881024: 16400, 251658240: 1074266112, 8388608: 1073758208, 25165824: 540688, 41943040: 16, 58720256: 1073758224, 75497472: 1074282512, 92274688: 1073741824, 109051904: 524288, 125829120: 1074266128, 142606336: 524304, 159383552: 0, 176160768: 16384, 192937984: 1074266112, 209715200: 1073741840, 226492416: 540672, 243269632: 1074282496, 260046848: 16400, 268435456: 0, 285212672: 1074266128, 301989888: 1073758224, 318767104: 1074282496, 335544320: 1074266112, 352321536: 16, 369098752: 540688, 385875968: 16384, 402653184: 16400, 419430400: 524288, 436207616: 524304, 452984832: 1073741840, 469762048: 540672, 486539264: 1073758208, 503316480: 1073741824, 520093696: 1074282512, 276824064: 540688, 293601280: 524288, 310378496: 1074266112, 327155712: 16384, 343932928: 1073758208, 360710144: 1074282512, 377487360: 16, 394264576: 1073741824, 411041792: 1074282496, 427819008: 1073741840, 444596224: 1073758224, 461373440: 524304, 478150656: 0, 494927872: 16400, 511705088: 1074266128, 528482304: 540672 }, { 0: 260, 1048576: 0, 2097152: 67109120, 3145728: 65796, 4194304: 65540, 5242880: 67108868, 6291456: 67174660, 7340032: 67174400, 8388608: 67108864, 9437184: 67174656, 10485760: 65792, 11534336: 67174404, 12582912: 67109124, 13631488: 65536, 14680064: 4, 15728640: 256, 524288: 67174656, 1572864: 67174404, 2621440: 0, 3670016: 67109120, 4718592: 67108868, 5767168: 65536, 6815744: 65540, 7864320: 260, 8912896: 4, 9961472: 256, 11010048: 67174400, 12058624: 65796, 13107200: 65792, 14155776: 67109124, 15204352: 67174660, 16252928: 67108864, 16777216: 67174656, 17825792: 65540, 18874368: 65536, 19922944: 67109120, 20971520: 256, 22020096: 67174660, 23068672: 67108868, 24117248: 0, 25165824: 67109124, 26214400: 67108864, 27262976: 4, 28311552: 65792, 29360128: 67174400, 30408704: 260, 31457280: 65796, 32505856: 67174404, 17301504: 67108864, 18350080: 260, 19398656: 67174656, 20447232: 0, 21495808: 65540, 22544384: 67109120, 23592960: 256, 24641536: 67174404, 25690112: 65536, 26738688: 67174660, 27787264: 65796, 28835840: 67108868, 29884416: 67109124, 30932992: 67174400, 31981568: 4, 33030144: 65792 }, { 0: 2151682048, 65536: 2147487808, 131072: 4198464, 196608: 2151677952, 262144: 0, 327680: 4198400, 393216: 2147483712, 458752: 4194368, 524288: 2147483648, 589824: 4194304, 655360: 64, 720896: 2147487744, 786432: 2151678016, 851968: 4160, 917504: 4096, 983040: 2151682112, 32768: 2147487808, 98304: 64, 163840: 2151678016, 229376: 2147487744, 294912: 4198400, 360448: 2151682112, 425984: 0, 491520: 2151677952, 557056: 4096, 622592: 2151682048, 688128: 4194304, 753664: 4160, 819200: 2147483648, 884736: 4194368, 950272: 4198464, 1015808: 2147483712, 1048576: 4194368, 1114112: 4198400, 1179648: 2147483712, 1245184: 0, 1310720: 4160, 1376256: 2151678016, 1441792: 2151682048, 1507328: 2147487808, 1572864: 2151682112, 1638400: 2147483648, 1703936: 2151677952, 1769472: 4198464, 1835008: 2147487744, 1900544: 4194304, 1966080: 64, 2031616: 4096, 1081344: 2151677952, 1146880: 2151682112, 1212416: 0, 1277952: 4198400, 1343488: 4194368, 1409024: 2147483648, 1474560: 2147487808, 1540096: 64, 1605632: 2147483712, 1671168: 4096, 1736704: 2147487744, 1802240: 2151678016, 1867776: 4160, 1933312: 2151682048, 1998848: 4194304, 2064384: 4198464 }, { 0: 128, 4096: 17039360, 8192: 262144, 12288: 536870912, 16384: 537133184, 20480: 16777344, 24576: 553648256, 28672: 262272, 32768: 16777216, 36864: 537133056, 40960: 536871040, 45056: 553910400, 49152: 553910272, 53248: 0, 57344: 17039488, 61440: 553648128, 2048: 17039488, 6144: 553648256, 10240: 128, 14336: 17039360, 18432: 262144, 22528: 537133184, 26624: 553910272, 30720: 536870912, 34816: 537133056, 38912: 0, 43008: 553910400, 47104: 16777344, 51200: 536871040, 55296: 553648128, 59392: 16777216, 63488: 262272, 65536: 262144, 69632: 128, 73728: 536870912, 77824: 553648256, 81920: 16777344, 86016: 553910272, 90112: 537133184, 94208: 16777216, 98304: 553910400, 102400: 553648128, 106496: 17039360, 110592: 537133056, 114688: 262272, 118784: 536871040, 122880: 0, 126976: 17039488, 67584: 553648256, 71680: 16777216, 75776: 17039360, 79872: 537133184, 83968: 536870912, 88064: 17039488, 92160: 128, 96256: 553910272, 100352: 262272, 104448: 553910400, 108544: 0, 112640: 553648128, 116736: 16777344, 120832: 262144, 124928: 537133056, 129024: 536871040 }, { 0: 268435464, 256: 8192, 512: 270532608, 768: 270540808, 1024: 268443648, 1280: 2097152, 1536: 2097160, 1792: 268435456, 2048: 0, 2304: 268443656, 2560: 2105344, 2816: 8, 3072: 270532616, 3328: 2105352, 3584: 8200, 3840: 270540800, 128: 270532608, 384: 270540808, 640: 8, 896: 2097152, 1152: 2105352, 1408: 268435464, 1664: 268443648, 1920: 8200, 2176: 2097160, 2432: 8192, 2688: 268443656, 2944: 270532616, 3200: 0, 3456: 270540800, 3712: 2105344, 3968: 268435456, 4096: 268443648, 4352: 270532616, 4608: 270540808, 4864: 8200, 5120: 2097152, 5376: 268435456, 5632: 268435464, 5888: 2105344, 6144: 2105352, 6400: 0, 6656: 8, 6912: 270532608, 7168: 8192, 7424: 268443656, 7680: 270540800, 7936: 2097160, 4224: 8, 4480: 2105344, 4736: 2097152, 4992: 268435464, 5248: 268443648, 5504: 8200, 5760: 270540808, 6016: 270532608, 6272: 270540800, 6528: 270532616, 6784: 8192, 7040: 2105352, 7296: 2097160, 7552: 0, 7808: 268435456, 8064: 268443656 }, { 0: 1048576, 16: 33555457, 32: 1024, 48: 1049601, 64: 34604033, 80: 0, 96: 1, 112: 34603009, 128: 33555456, 144: 1048577, 160: 33554433, 176: 34604032, 192: 34603008, 208: 1025, 224: 1049600, 240: 33554432, 8: 34603009, 24: 0, 40: 33555457, 56: 34604032, 72: 1048576, 88: 33554433, 104: 33554432, 120: 1025, 136: 1049601, 152: 33555456, 168: 34603008, 184: 1048577, 200: 1024, 216: 34604033, 232: 1, 248: 1049600, 256: 33554432, 272: 1048576, 288: 33555457, 304: 34603009, 320: 1048577, 336: 33555456, 352: 34604032, 368: 1049601, 384: 1025, 400: 34604033, 416: 1049600, 432: 1, 448: 0, 464: 34603008, 480: 33554433, 496: 1024, 264: 1049600, 280: 33555457, 296: 34603009, 312: 1, 328: 33554432, 344: 1048576, 360: 1025, 376: 34604032, 392: 33554433, 408: 34603008, 424: 0, 440: 34604033, 456: 1049601, 472: 1024, 488: 33555456, 504: 1048577 }, { 0: 134219808, 1: 131072, 2: 134217728, 3: 32, 4: 131104, 5: 134350880, 6: 134350848, 7: 2048, 8: 134348800, 9: 134219776, 10: 133120, 11: 134348832, 12: 2080, 13: 0, 14: 134217760, 15: 133152, 2147483648: 2048, 2147483649: 134350880, 2147483650: 134219808, 2147483651: 134217728, 2147483652: 134348800, 2147483653: 133120, 2147483654: 133152, 2147483655: 32, 2147483656: 134217760, 2147483657: 2080, 2147483658: 131104, 2147483659: 134350848, 2147483660: 0, 2147483661: 134348832, 2147483662: 134219776, 2147483663: 131072, 16: 133152, 17: 134350848, 18: 32, 19: 2048, 20: 134219776, 21: 134217760, 22: 134348832, 23: 131072, 24: 0, 25: 131104, 26: 134348800, 27: 134219808, 28: 134350880, 29: 133120, 30: 2080, 31: 134217728, 2147483664: 131072, 2147483665: 2048, 2147483666: 134348832, 2147483667: 133152, 2147483668: 32, 2147483669: 134348800, 2147483670: 134217728, 2147483671: 134219808, 2147483672: 134350880, 2147483673: 134217760, 2147483674: 134219776, 2147483675: 0, 2147483676: 133120, 2147483677: 2080, 2147483678: 131104, 2147483679: 134350848 }], l = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679], d = s.DES = i.extend({ _doReset: function() {
|
|
2645
2645
|
for (var p = this._key.words, m = [], S = 0; S < 56; S++) {
|
|
2646
|
-
var
|
|
2647
|
-
m[S] = p[
|
|
2646
|
+
var R = n[S] - 1;
|
|
2647
|
+
m[S] = p[R >>> 5] >>> 31 - R % 32 & 1;
|
|
2648
2648
|
}
|
|
2649
2649
|
for (var _ = this._subKeys = [], y = 0; y < 16; y++) {
|
|
2650
2650
|
var v = _[y] = [], w = c[y];
|
|
@@ -2654,18 +2654,18 @@ function Ao() {
|
|
|
2654
2654
|
v[S] = v[S] >>> 4 * (S - 1) + 3;
|
|
2655
2655
|
v[7] = v[7] << 5 | v[7] >>> 27;
|
|
2656
2656
|
}
|
|
2657
|
-
var
|
|
2657
|
+
var A = this._invSubKeys = [];
|
|
2658
2658
|
for (S = 0; S < 16; S++)
|
|
2659
|
-
|
|
2659
|
+
A[S] = _[15 - S];
|
|
2660
2660
|
}, encryptBlock: function(p, m) {
|
|
2661
2661
|
this._doCryptBlock(p, m, this._subKeys);
|
|
2662
2662
|
}, decryptBlock: function(p, m) {
|
|
2663
2663
|
this._doCryptBlock(p, m, this._invSubKeys);
|
|
2664
2664
|
}, _doCryptBlock: function(p, m, S) {
|
|
2665
2665
|
this._lBlock = p[m], this._rBlock = p[m + 1], b.call(this, 4, 252645135), b.call(this, 16, 65535), u.call(this, 2, 858993459), u.call(this, 8, 16711935), b.call(this, 1, 1431655765);
|
|
2666
|
-
for (var
|
|
2667
|
-
for (var _ = S[
|
|
2668
|
-
w |= h[
|
|
2666
|
+
for (var R = 0; R < 16; R++) {
|
|
2667
|
+
for (var _ = S[R], y = this._lBlock, v = this._rBlock, w = 0, A = 0; A < 8; A++)
|
|
2668
|
+
w |= h[A][((v ^ _[A]) & l[A]) >>> 0];
|
|
2669
2669
|
this._lBlock = v, this._rBlock = y ^ w;
|
|
2670
2670
|
}
|
|
2671
2671
|
var E = this._lBlock;
|
|
@@ -2684,8 +2684,8 @@ function Ao() {
|
|
|
2684
2684
|
var p = this._key.words;
|
|
2685
2685
|
if (p.length !== 2 && p.length !== 4 && p.length < 6)
|
|
2686
2686
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
2687
|
-
var m = p.slice(0, 2), S = p.length < 4 ? p.slice(0, 2) : p.slice(2, 4),
|
|
2688
|
-
this._des1 = d.createEncryptor(t.create(m)), this._des2 = d.createEncryptor(t.create(S)), this._des3 = d.createEncryptor(t.create(
|
|
2687
|
+
var m = p.slice(0, 2), S = p.length < 4 ? p.slice(0, 2) : p.slice(2, 4), R = p.length < 6 ? p.slice(0, 2) : p.slice(4, 6);
|
|
2688
|
+
this._des1 = d.createEncryptor(t.create(m)), this._des2 = d.createEncryptor(t.create(S)), this._des3 = d.createEncryptor(t.create(R));
|
|
2689
2689
|
}, encryptBlock: function(p, m) {
|
|
2690
2690
|
this._des1.encryptBlock(p, m), this._des2.decryptBlock(p, m), this._des3.encryptBlock(p, m);
|
|
2691
2691
|
}, decryptBlock: function(p, m) {
|
|
@@ -2693,7 +2693,7 @@ function Ao() {
|
|
|
2693
2693
|
}, keySize: 6, ivSize: 2, blockSize: 2 });
|
|
2694
2694
|
a.TripleDES = i._createHelper(f);
|
|
2695
2695
|
}(), r.TripleDES;
|
|
2696
|
-
}(he(),
|
|
2696
|
+
}(he(), Ft(), jt(), Ct(), Be())), Ea.exports;
|
|
2697
2697
|
}
|
|
2698
2698
|
var Ia, Ro = { exports: {} }, Ta, _o = { exports: {} }, Ca, wo = { exports: {} }, ka, Pa = { exports: {} };
|
|
2699
2699
|
function Eo() {
|
|
@@ -2703,20 +2703,20 @@ function Eo() {
|
|
|
2703
2703
|
const i = 16, s = [608135816, 2242054355, 320440878, 57701188, 2752067618, 698298832, 137296536, 3964562569, 1160258022, 953160567, 3193202383, 887688300, 3232508343, 3380367581, 1065670069, 3041331479, 2450970073, 2306472731], n = [[3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670, 3128725573, 4046225305, 614570311, 3012652279, 134345442, 2240740374, 1667834072, 1901547113, 2757295779, 4103290238, 227898511, 1921955416, 1904987480, 2182433518, 2069144605, 3260701109, 2620446009, 720527379, 3318853667, 677414384, 3393288472, 3101374703, 2390351024, 1614419982, 1822297739, 2954791486, 3608508353, 3174124327, 2024746970, 1432378464, 3864339955, 2857741204, 1464375394, 1676153920, 1439316330, 715854006, 3033291828, 289532110, 2706671279, 2087905683, 3018724369, 1668267050, 732546397, 1947742710, 3462151702, 2609353502, 2950085171, 1814351708, 2050118529, 680887927, 999245976, 1800124847, 3300911131, 1713906067, 1641548236, 4213287313, 1216130144, 1575780402, 4018429277, 3917837745, 3693486850, 3949271944, 596196993, 3549867205, 258830323, 2213823033, 772490370, 2760122372, 1774776394, 2652871518, 566650946, 4142492826, 1728879713, 2882767088, 1783734482, 3629395816, 2517608232, 2874225571, 1861159788, 326777828, 3124490320, 2130389656, 2716951837, 967770486, 1724537150, 2185432712, 2364442137, 1164943284, 2105845187, 998989502, 3765401048, 2244026483, 1075463327, 1455516326, 1322494562, 910128902, 469688178, 1117454909, 936433444, 3490320968, 3675253459, 1240580251, 122909385, 2157517691, 634681816, 4142456567, 3825094682, 3061402683, 2540495037, 79693498, 3249098678, 1084186820, 1583128258, 426386531, 1761308591, 1047286709, 322548459, 995290223, 1845252383, 2603652396, 3431023940, 2942221577, 3202600964, 3727903485, 1712269319, 422464435, 3234572375, 1170764815, 3523960633, 3117677531, 1434042557, 442511882, 3600875718, 1076654713, 1738483198, 4213154764, 2393238008, 3677496056, 1014306527, 4251020053, 793779912, 2902807211, 842905082, 4246964064, 1395751752, 1040244610, 2656851899, 3396308128, 445077038, 3742853595, 3577915638, 679411651, 2892444358, 2354009459, 1767581616, 3150600392, 3791627101, 3102740896, 284835224, 4246832056, 1258075500, 768725851, 2589189241, 3069724005, 3532540348, 1274779536, 3789419226, 2764799539, 1660621633, 3471099624, 4011903706, 913787905, 3497959166, 737222580, 2514213453, 2928710040, 3937242737, 1804850592, 3499020752, 2949064160, 2386320175, 2390070455, 2415321851, 4061277028, 2290661394, 2416832540, 1336762016, 1754252060, 3520065937, 3014181293, 791618072, 3188594551, 3933548030, 2332172193, 3852520463, 3043980520, 413987798, 3465142937, 3030929376, 4245938359, 2093235073, 3534596313, 375366246, 2157278981, 2479649556, 555357303, 3870105701, 2008414854, 3344188149, 4221384143, 3956125452, 2067696032, 3594591187, 2921233993, 2428461, 544322398, 577241275, 1471733935, 610547355, 4027169054, 1432588573, 1507829418, 2025931657, 3646575487, 545086370, 48609733, 2200306550, 1653985193, 298326376, 1316178497, 3007786442, 2064951626, 458293330, 2589141269, 3591329599, 3164325604, 727753846, 2179363840, 146436021, 1461446943, 4069977195, 705550613, 3059967265, 3887724982, 4281599278, 3313849956, 1404054877, 2845806497, 146425753, 1854211946], [1266315497, 3048417604, 3681880366, 3289982499, 290971e4, 1235738493, 2632868024, 2414719590, 3970600049, 1771706367, 1449415276, 3266420449, 422970021, 1963543593, 2690192192, 3826793022, 1062508698, 1531092325, 1804592342, 2583117782, 2714934279, 4024971509, 1294809318, 4028980673, 1289560198, 2221992742, 1669523910, 35572830, 157838143, 1052438473, 1016535060, 1802137761, 1753167236, 1386275462, 3080475397, 2857371447, 1040679964, 2145300060, 2390574316, 1461121720, 2956646967, 4031777805, 4028374788, 33600511, 2920084762, 1018524850, 629373528, 3691585981, 3515945977, 2091462646, 2486323059, 586499841, 988145025, 935516892, 3367335476, 2599673255, 2839830854, 265290510, 3972581182, 2759138881, 3795373465, 1005194799, 847297441, 406762289, 1314163512, 1332590856, 1866599683, 4127851711, 750260880, 613907577, 1450815602, 3165620655, 3734664991, 3650291728, 3012275730, 3704569646, 1427272223, 778793252, 1343938022, 2676280711, 2052605720, 1946737175, 3164576444, 3914038668, 3967478842, 3682934266, 1661551462, 3294938066, 4011595847, 840292616, 3712170807, 616741398, 312560963, 711312465, 1351876610, 322626781, 1910503582, 271666773, 2175563734, 1594956187, 70604529, 3617834859, 1007753275, 1495573769, 4069517037, 2549218298, 2663038764, 504708206, 2263041392, 3941167025, 2249088522, 1514023603, 1998579484, 1312622330, 694541497, 2582060303, 2151582166, 1382467621, 776784248, 2618340202, 3323268794, 2497899128, 2784771155, 503983604, 4076293799, 907881277, 423175695, 432175456, 1378068232, 4145222326, 3954048622, 3938656102, 3820766613, 2793130115, 2977904593, 26017576, 3274890735, 3194772133, 1700274565, 1756076034, 4006520079, 3677328699, 720338349, 1533947780, 354530856, 688349552, 3973924725, 1637815568, 332179504, 3949051286, 53804574, 2852348879, 3044236432, 1282449977, 3583942155, 3416972820, 4006381244, 1617046695, 2628476075, 3002303598, 1686838959, 431878346, 2686675385, 1700445008, 1080580658, 1009431731, 832498133, 3223435511, 2605976345, 2271191193, 2516031870, 1648197032, 4164389018, 2548247927, 300782431, 375919233, 238389289, 3353747414, 2531188641, 2019080857, 1475708069, 455242339, 2609103871, 448939670, 3451063019, 1395535956, 2413381860, 1841049896, 1491858159, 885456874, 4264095073, 4001119347, 1565136089, 3898914787, 1108368660, 540939232, 1173283510, 2745871338, 3681308437, 4207628240, 3343053890, 4016749493, 1699691293, 1103962373, 3625875870, 2256883143, 3830138730, 1031889488, 3479347698, 1535977030, 4236805024, 3251091107, 2132092099, 1774941330, 1199868427, 1452454533, 157007616, 2904115357, 342012276, 595725824, 1480756522, 206960106, 497939518, 591360097, 863170706, 2375253569, 3596610801, 1814182875, 2094937945, 3421402208, 1082520231, 3463918190, 2785509508, 435703966, 3908032597, 1641649973, 2842273706, 3305899714, 1510255612, 2148256476, 2655287854, 3276092548, 4258621189, 236887753, 3681803219, 274041037, 1734335097, 3815195456, 3317970021, 1899903192, 1026095262, 4050517792, 356393447, 2410691914, 3873677099, 3682840055], [3913112168, 2491498743, 4132185628, 2489919796, 1091903735, 1979897079, 3170134830, 3567386728, 3557303409, 857797738, 1136121015, 1342202287, 507115054, 2535736646, 337727348, 3213592640, 1301675037, 2528481711, 1895095763, 1721773893, 3216771564, 62756741, 2142006736, 835421444, 2531993523, 1442658625, 3659876326, 2882144922, 676362277, 1392781812, 170690266, 3921047035, 1759253602, 3611846912, 1745797284, 664899054, 1329594018, 3901205900, 3045908486, 2062866102, 2865634940, 3543621612, 3464012697, 1080764994, 553557557, 3656615353, 3996768171, 991055499, 499776247, 1265440854, 648242737, 3940784050, 980351604, 3713745714, 1749149687, 3396870395, 4211799374, 3640570775, 1161844396, 3125318951, 1431517754, 545492359, 4268468663, 3499529547, 1437099964, 2702547544, 3433638243, 2581715763, 2787789398, 1060185593, 1593081372, 2418618748, 4260947970, 69676912, 2159744348, 86519011, 2512459080, 3838209314, 1220612927, 3339683548, 133810670, 1090789135, 1078426020, 1569222167, 845107691, 3583754449, 4072456591, 1091646820, 628848692, 1613405280, 3757631651, 526609435, 236106946, 48312990, 2942717905, 3402727701, 1797494240, 859738849, 992217954, 4005476642, 2243076622, 3870952857, 3732016268, 765654824, 3490871365, 2511836413, 1685915746, 3888969200, 1414112111, 2273134842, 3281911079, 4080962846, 172450625, 2569994100, 980381355, 4109958455, 2819808352, 2716589560, 2568741196, 3681446669, 3329971472, 1835478071, 660984891, 3704678404, 4045999559, 3422617507, 3040415634, 1762651403, 1719377915, 3470491036, 2693910283, 3642056355, 3138596744, 1364962596, 2073328063, 1983633131, 926494387, 3423689081, 2150032023, 4096667949, 1749200295, 3328846651, 309677260, 2016342300, 1779581495, 3079819751, 111262694, 1274766160, 443224088, 298511866, 1025883608, 3806446537, 1145181785, 168956806, 3641502830, 3584813610, 1689216846, 3666258015, 3200248200, 1692713982, 2646376535, 4042768518, 1618508792, 1610833997, 3523052358, 4130873264, 2001055236, 3610705100, 2202168115, 4028541809, 2961195399, 1006657119, 2006996926, 3186142756, 1430667929, 3210227297, 1314452623, 4074634658, 4101304120, 2273951170, 1399257539, 3367210612, 3027628629, 1190975929, 2062231137, 2333990788, 2221543033, 2438960610, 1181637006, 548689776, 2362791313, 3372408396, 3104550113, 3145860560, 296247880, 1970579870, 3078560182, 3769228297, 1714227617, 3291629107, 3898220290, 166772364, 1251581989, 493813264, 448347421, 195405023, 2709975567, 677966185, 3703036547, 1463355134, 2715995803, 1338867538, 1343315457, 2802222074, 2684532164, 233230375, 2599980071, 2000651841, 3277868038, 1638401717, 4028070440, 3237316320, 6314154, 819756386, 300326615, 590932579, 1405279636, 3267499572, 3150704214, 2428286686, 3959192993, 3461946742, 1862657033, 1266418056, 963775037, 2089974820, 2263052895, 1917689273, 448879540, 3550394620, 3981727096, 150775221, 3627908307, 1303187396, 508620638, 2975983352, 2726630617, 1817252668, 1876281319, 1457606340, 908771278, 3720792119, 3617206836, 2455994898, 1729034894, 1080033504], [976866871, 3556439503, 2881648439, 1522871579, 1555064734, 1336096578, 3548522304, 2579274686, 3574697629, 3205460757, 3593280638, 3338716283, 3079412587, 564236357, 2993598910, 1781952180, 1464380207, 3163844217, 3332601554, 1699332808, 1393555694, 1183702653, 3581086237, 1288719814, 691649499, 2847557200, 2895455976, 3193889540, 2717570544, 1781354906, 1676643554, 2592534050, 3230253752, 1126444790, 2770207658, 2633158820, 2210423226, 2615765581, 2414155088, 3127139286, 673620729, 2805611233, 1269405062, 4015350505, 3341807571, 4149409754, 1057255273, 2012875353, 2162469141, 2276492801, 2601117357, 993977747, 3918593370, 2654263191, 753973209, 36408145, 2530585658, 25011837, 3520020182, 2088578344, 530523599, 2918365339, 1524020338, 1518925132, 3760827505, 3759777254, 1202760957, 3985898139, 3906192525, 674977740, 4174734889, 2031300136, 2019492241, 3983892565, 4153806404, 3822280332, 352677332, 2297720250, 60907813, 90501309, 3286998549, 1016092578, 2535922412, 2839152426, 457141659, 509813237, 4120667899, 652014361, 1966332200, 2975202805, 55981186, 2327461051, 676427537, 3255491064, 2882294119, 3433927263, 1307055953, 942726286, 933058658, 2468411793, 3933900994, 4215176142, 1361170020, 2001714738, 2830558078, 3274259782, 1222529897, 1679025792, 2729314320, 3714953764, 1770335741, 151462246, 3013232138, 1682292957, 1483529935, 471910574, 1539241949, 458788160, 3436315007, 1807016891, 3718408830, 978976581, 1043663428, 3165965781, 1927990952, 4200891579, 2372276910, 3208408903, 3533431907, 1412390302, 2931980059, 4132332400, 1947078029, 3881505623, 4168226417, 2941484381, 1077988104, 1320477388, 886195818, 18198404, 3786409e3, 2509781533, 112762804, 3463356488, 1866414978, 891333506, 18488651, 661792760, 1628790961, 3885187036, 3141171499, 876946877, 2693282273, 1372485963, 791857591, 2686433993, 3759982718, 3167212022, 3472953795, 2716379847, 445679433, 3561995674, 3504004811, 3574258232, 54117162, 3331405415, 2381918588, 3769707343, 4154350007, 1140177722, 4074052095, 668550556, 3214352940, 367459370, 261225585, 2610173221, 4209349473, 3468074219, 3265815641, 314222801, 3066103646, 3808782860, 282218597, 3406013506, 3773591054, 379116347, 1285071038, 846784868, 2669647154, 3771962079, 3550491691, 2305946142, 453669953, 1268987020, 3317592352, 3279303384, 3744833421, 2610507566, 3859509063, 266596637, 3847019092, 517658769, 3462560207, 3443424879, 370717030, 4247526661, 2224018117, 4143653529, 4112773975, 2788324899, 2477274417, 1456262402, 2901442914, 1517677493, 1846949527, 2295493580, 3734397586, 2176403920, 1280348187, 1908823572, 3871786941, 846861322, 1172426758, 3287448474, 3383383037, 1655181056, 3139813346, 901632758, 1897031941, 2986607138, 3066810236, 3447102507, 1393639104, 373351379, 950779232, 625454576, 3124240540, 4148612726, 2007998917, 544563296, 2244738638, 2330496472, 2058025392, 1291430526, 424198748, 50039436, 29584100, 3605783033, 2429876329, 2791104160, 1057563949, 3255363231, 3075367218, 3463963227, 1469046755, 985887462]];
|
|
2704
2704
|
var o = { pbox: [], sbox: [] };
|
|
2705
2705
|
function c(u, f) {
|
|
2706
|
-
let p = f >> 24 & 255, m = f >> 16 & 255, S = f >> 8 & 255,
|
|
2707
|
-
return _ ^= u.sbox[2][S], _ += u.sbox[3][
|
|
2706
|
+
let p = f >> 24 & 255, m = f >> 16 & 255, S = f >> 8 & 255, R = 255 & f, _ = u.sbox[0][p] + u.sbox[1][m];
|
|
2707
|
+
return _ ^= u.sbox[2][S], _ += u.sbox[3][R], _;
|
|
2708
2708
|
}
|
|
2709
2709
|
function h(u, f, p) {
|
|
2710
|
-
let m, S = f,
|
|
2710
|
+
let m, S = f, R = p;
|
|
2711
2711
|
for (let _ = 0; _ < i; ++_)
|
|
2712
|
-
S ^= u.pbox[_],
|
|
2713
|
-
return m = S, S =
|
|
2712
|
+
S ^= u.pbox[_], R = c(u, S) ^ R, m = S, S = R, R = m;
|
|
2713
|
+
return m = S, S = R, R = m, R ^= u.pbox[i], S ^= u.pbox[i + 1], { left: S, right: R };
|
|
2714
2714
|
}
|
|
2715
2715
|
function l(u, f, p) {
|
|
2716
|
-
let m, S = f,
|
|
2716
|
+
let m, S = f, R = p;
|
|
2717
2717
|
for (let _ = i + 1; _ > 1; --_)
|
|
2718
|
-
S ^= u.pbox[_],
|
|
2719
|
-
return m = S, S =
|
|
2718
|
+
S ^= u.pbox[_], R = c(u, S) ^ R, m = S, S = R, R = m;
|
|
2719
|
+
return m = S, S = R, R = m, R ^= u.pbox[1], S ^= u.pbox[0], { left: S, right: R };
|
|
2720
2720
|
}
|
|
2721
2721
|
function d(u, f, p) {
|
|
2722
2722
|
for (let y = 0; y < 4; y++) {
|
|
@@ -2727,12 +2727,12 @@ function Eo() {
|
|
|
2727
2727
|
let m = 0;
|
|
2728
2728
|
for (let y = 0; y < i + 2; y++)
|
|
2729
2729
|
u.pbox[y] = s[y] ^ f[m], m++, m >= p && (m = 0);
|
|
2730
|
-
let S = 0,
|
|
2730
|
+
let S = 0, R = 0, _ = 0;
|
|
2731
2731
|
for (let y = 0; y < i + 2; y += 2)
|
|
2732
|
-
_ = h(u, S,
|
|
2732
|
+
_ = h(u, S, R), S = _.left, R = _.right, u.pbox[y] = S, u.pbox[y + 1] = R;
|
|
2733
2733
|
for (let y = 0; y < 4; y++)
|
|
2734
2734
|
for (let v = 0; v < 256; v += 2)
|
|
2735
|
-
_ = h(u, S,
|
|
2735
|
+
_ = h(u, S, R), S = _.left, R = _.right, u.sbox[y][v] = S, u.sbox[y][v + 1] = R;
|
|
2736
2736
|
return !0;
|
|
2737
2737
|
}
|
|
2738
2738
|
var b = t.Blowfish = e.extend({ _doReset: function() {
|
|
@@ -2749,11 +2749,11 @@ function Eo() {
|
|
|
2749
2749
|
}, blockSize: 2, keySize: 4, ivSize: 2 });
|
|
2750
2750
|
a.Blowfish = e._createHelper(b);
|
|
2751
2751
|
}(), r.Blowfish;
|
|
2752
|
-
}(he(),
|
|
2752
|
+
}(he(), Ft(), jt(), Ct(), Be())), Pa.exports;
|
|
2753
2753
|
}
|
|
2754
2754
|
en.exports = function(r) {
|
|
2755
2755
|
return r;
|
|
2756
|
-
}(he(), ki(), eo(), to(),
|
|
2756
|
+
}(he(), ki(), eo(), to(), Ft(), io(), jt(), tn(), tr(), Js || (Js = 1, ro.exports = function(r) {
|
|
2757
2757
|
return e = (a = r).lib.WordArray, t = a.algo, i = t.SHA256, s = t.SHA224 = i.extend({ _doReset: function() {
|
|
2758
2758
|
this._hash = new e.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]);
|
|
2759
2759
|
}, _doFinalize: function() {
|
|
@@ -2775,21 +2775,21 @@ en.exports = function(r) {
|
|
|
2775
2775
|
this._hash = t.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2776
2776
|
}, _doProcessBlock: function(_, y) {
|
|
2777
2777
|
for (var v = 0; v < 16; v++) {
|
|
2778
|
-
var w = y + v,
|
|
2779
|
-
_[w] = 16711935 & (
|
|
2778
|
+
var w = y + v, A = _[w];
|
|
2779
|
+
_[w] = 16711935 & (A << 8 | A >>> 24) | 4278255360 & (A << 24 | A >>> 8);
|
|
2780
2780
|
}
|
|
2781
|
-
var E, C, x, P, z, G, X, K, H, Y, ee, M = this._hash.words,
|
|
2781
|
+
var E, C, x, P, z, G, X, K, H, Y, ee, M = this._hash.words, N = l.words, D = d.words, L = n.words, ce = o.words, me = c.words, ye = h.words;
|
|
2782
2782
|
for (G = E = M[0], X = C = M[1], K = x = M[2], H = P = M[3], Y = z = M[4], v = 0; v < 80; v += 1)
|
|
2783
|
-
ee = E + _[y +
|
|
2783
|
+
ee = E + _[y + L[v]] | 0, ee += v < 16 ? u(C, x, P) + N[0] : v < 32 ? f(C, x, P) + N[1] : v < 48 ? p(C, x, P) + N[2] : v < 64 ? m(C, x, P) + N[3] : S(C, x, P) + N[4], ee = (ee = R(ee |= 0, me[v])) + z | 0, E = z, z = P, P = R(x, 10), x = C, C = ee, ee = G + _[y + ce[v]] | 0, ee += v < 16 ? S(X, K, H) + D[0] : v < 32 ? m(X, K, H) + D[1] : v < 48 ? p(X, K, H) + D[2] : v < 64 ? f(X, K, H) + D[3] : u(X, K, H) + D[4], ee = (ee = R(ee |= 0, ye[v])) + Y | 0, G = Y, Y = H, H = R(K, 10), K = X, X = ee;
|
|
2784
2784
|
ee = M[1] + x + H | 0, M[1] = M[2] + P + Y | 0, M[2] = M[3] + z + G | 0, M[3] = M[4] + E + X | 0, M[4] = M[0] + C + K | 0, M[0] = ee;
|
|
2785
2785
|
}, _doFinalize: function() {
|
|
2786
2786
|
var _ = this._data, y = _.words, v = 8 * this._nDataBytes, w = 8 * _.sigBytes;
|
|
2787
2787
|
y[w >>> 5] |= 128 << 24 - w % 32, y[14 + (w + 64 >>> 9 << 4)] = 16711935 & (v << 8 | v >>> 24) | 4278255360 & (v << 24 | v >>> 8), _.sigBytes = 4 * (y.length + 1), this._process();
|
|
2788
|
-
for (var
|
|
2788
|
+
for (var A = this._hash, E = A.words, C = 0; C < 5; C++) {
|
|
2789
2789
|
var x = E[C];
|
|
2790
2790
|
E[C] = 16711935 & (x << 8 | x >>> 24) | 4278255360 & (x << 24 | x >>> 8);
|
|
2791
2791
|
}
|
|
2792
|
-
return
|
|
2792
|
+
return A;
|
|
2793
2793
|
}, clone: function() {
|
|
2794
2794
|
var _ = i.clone.call(this);
|
|
2795
2795
|
return _._hash = this._hash.clone(), _;
|
|
@@ -2809,7 +2809,7 @@ en.exports = function(r) {
|
|
|
2809
2809
|
function S(_, y, v) {
|
|
2810
2810
|
return _ ^ (y | ~v);
|
|
2811
2811
|
}
|
|
2812
|
-
function
|
|
2812
|
+
function R(_, y) {
|
|
2813
2813
|
return _ << y | _ >>> 32 - y;
|
|
2814
2814
|
}
|
|
2815
2815
|
a.RIPEMD160 = i._createHelper(b), a.HmacRIPEMD160 = i._createHmacHelper(b);
|
|
@@ -2818,10 +2818,10 @@ en.exports = function(r) {
|
|
|
2818
2818
|
return t = (e = (a = r).lib).Base, i = e.WordArray, n = (s = a.algo).SHA256, o = s.HMAC, c = s.PBKDF2 = t.extend({ cfg: t.extend({ keySize: 4, hasher: n, iterations: 25e4 }), init: function(h) {
|
|
2819
2819
|
this.cfg = this.cfg.extend(h);
|
|
2820
2820
|
}, compute: function(h, l) {
|
|
2821
|
-
for (var d = this.cfg, b = o.create(d.hasher, h), u = i.create(), f = i.create([1]), p = u.words, m = f.words, S = d.keySize,
|
|
2821
|
+
for (var d = this.cfg, b = o.create(d.hasher, h), u = i.create(), f = i.create([1]), p = u.words, m = f.words, S = d.keySize, R = d.iterations; p.length < S; ) {
|
|
2822
2822
|
var _ = b.update(l).finalize(f);
|
|
2823
2823
|
b.reset();
|
|
2824
|
-
for (var y = _.words, v = y.length, w = _,
|
|
2824
|
+
for (var y = _.words, v = y.length, w = _, A = 1; A < R; A++) {
|
|
2825
2825
|
w = b.finalize(w), b.reset();
|
|
2826
2826
|
for (var E = w.words, C = 0; C < v; C++)
|
|
2827
2827
|
y[C] ^= E[C];
|
|
@@ -2833,7 +2833,7 @@ en.exports = function(r) {
|
|
|
2833
2833
|
return c.create(d).compute(h, l);
|
|
2834
2834
|
}, r.PBKDF2;
|
|
2835
2835
|
var a, e, t, i, s, n, o, c;
|
|
2836
|
-
}(he(), tr(), pr())),
|
|
2836
|
+
}(he(), tr(), pr())), Ct(), Be(), co(), ho(), lo(), uo(), fa || (fa = 1, po.exports = function(r) {
|
|
2837
2837
|
return r.mode.ECB = ((a = r.lib.BlockCipherMode.extend()).Encryptor = a.extend({ processBlock: function(e, t) {
|
|
2838
2838
|
this._cipher.encryptBlock(e, t);
|
|
2839
2839
|
} }), a.Decryptor = a.extend({ processBlock: function(e, t) {
|
|
@@ -2892,41 +2892,41 @@ en.exports = function(r) {
|
|
|
2892
2892
|
(function() {
|
|
2893
2893
|
for (var m = [], S = 0; S < 256; S++)
|
|
2894
2894
|
m[S] = S < 128 ? S << 1 : S << 1 ^ 283;
|
|
2895
|
-
var
|
|
2895
|
+
var R = 0, _ = 0;
|
|
2896
2896
|
for (S = 0; S < 256; S++) {
|
|
2897
2897
|
var y = _ ^ _ << 1 ^ _ << 2 ^ _ << 3 ^ _ << 4;
|
|
2898
|
-
y = y >>> 8 ^ 255 & y ^ 99, i[
|
|
2899
|
-
var v = m[
|
|
2900
|
-
n[
|
|
2898
|
+
y = y >>> 8 ^ 255 & y ^ 99, i[R] = y, s[y] = R;
|
|
2899
|
+
var v = m[R], w = m[v], A = m[w], E = 257 * m[y] ^ 16843008 * y;
|
|
2900
|
+
n[R] = E << 24 | E >>> 8, o[R] = E << 16 | E >>> 16, c[R] = E << 8 | E >>> 24, h[R] = E, E = 16843009 * A ^ 65537 * w ^ 257 * v ^ 16843008 * R, l[y] = E << 24 | E >>> 8, d[y] = E << 16 | E >>> 16, b[y] = E << 8 | E >>> 24, u[y] = E, R ? (R = v ^ m[m[m[A ^ v]]], _ ^= m[m[_]]) : R = _ = 1;
|
|
2901
2901
|
}
|
|
2902
2902
|
})();
|
|
2903
2903
|
var f = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], p = t.AES = e.extend({ _doReset: function() {
|
|
2904
2904
|
if (!this._nRounds || this._keyPriorReset !== this._key) {
|
|
2905
|
-
for (var m = this._keyPriorReset = this._key, S = m.words,
|
|
2906
|
-
v <
|
|
2907
|
-
for (var w = this._invKeySchedule = [],
|
|
2908
|
-
if (v = _ -
|
|
2905
|
+
for (var m = this._keyPriorReset = this._key, S = m.words, R = m.sigBytes / 4, _ = 4 * ((this._nRounds = R + 6) + 1), y = this._keySchedule = [], v = 0; v < _; v++)
|
|
2906
|
+
v < R ? y[v] = S[v] : (E = y[v - 1], v % R ? R > 6 && v % R == 4 && (E = i[E >>> 24] << 24 | i[E >>> 16 & 255] << 16 | i[E >>> 8 & 255] << 8 | i[255 & E]) : (E = i[(E = E << 8 | E >>> 24) >>> 24] << 24 | i[E >>> 16 & 255] << 16 | i[E >>> 8 & 255] << 8 | i[255 & E], E ^= f[v / R | 0] << 24), y[v] = y[v - R] ^ E);
|
|
2907
|
+
for (var w = this._invKeySchedule = [], A = 0; A < _; A++) {
|
|
2908
|
+
if (v = _ - A, A % 4)
|
|
2909
2909
|
var E = y[v];
|
|
2910
2910
|
else
|
|
2911
2911
|
E = y[v - 4];
|
|
2912
|
-
w[
|
|
2912
|
+
w[A] = A < 4 || v <= 4 ? E : l[i[E >>> 24]] ^ d[i[E >>> 16 & 255]] ^ b[i[E >>> 8 & 255]] ^ u[i[255 & E]];
|
|
2913
2913
|
}
|
|
2914
2914
|
}
|
|
2915
2915
|
}, encryptBlock: function(m, S) {
|
|
2916
2916
|
this._doCryptBlock(m, S, this._keySchedule, n, o, c, h, i);
|
|
2917
2917
|
}, decryptBlock: function(m, S) {
|
|
2918
|
-
var
|
|
2919
|
-
m[S + 1] = m[S + 3], m[S + 3] =
|
|
2920
|
-
}, _doCryptBlock: function(m, S,
|
|
2921
|
-
for (var E = this._nRounds, C = m[S] ^
|
|
2922
|
-
var K = _[C >>> 24] ^ y[x >>> 16 & 255] ^ v[P >>> 8 & 255] ^ w[255 & z] ^
|
|
2918
|
+
var R = m[S + 1];
|
|
2919
|
+
m[S + 1] = m[S + 3], m[S + 3] = R, this._doCryptBlock(m, S, this._invKeySchedule, l, d, b, u, s), R = m[S + 1], m[S + 1] = m[S + 3], m[S + 3] = R;
|
|
2920
|
+
}, _doCryptBlock: function(m, S, R, _, y, v, w, A) {
|
|
2921
|
+
for (var E = this._nRounds, C = m[S] ^ R[0], x = m[S + 1] ^ R[1], P = m[S + 2] ^ R[2], z = m[S + 3] ^ R[3], G = 4, X = 1; X < E; X++) {
|
|
2922
|
+
var K = _[C >>> 24] ^ y[x >>> 16 & 255] ^ v[P >>> 8 & 255] ^ w[255 & z] ^ R[G++], H = _[x >>> 24] ^ y[P >>> 16 & 255] ^ v[z >>> 8 & 255] ^ w[255 & C] ^ R[G++], Y = _[P >>> 24] ^ y[z >>> 16 & 255] ^ v[C >>> 8 & 255] ^ w[255 & x] ^ R[G++], ee = _[z >>> 24] ^ y[C >>> 16 & 255] ^ v[x >>> 8 & 255] ^ w[255 & P] ^ R[G++];
|
|
2923
2923
|
C = K, x = H, P = Y, z = ee;
|
|
2924
2924
|
}
|
|
2925
|
-
K = (
|
|
2925
|
+
K = (A[C >>> 24] << 24 | A[x >>> 16 & 255] << 16 | A[P >>> 8 & 255] << 8 | A[255 & z]) ^ R[G++], H = (A[x >>> 24] << 24 | A[P >>> 16 & 255] << 16 | A[z >>> 8 & 255] << 8 | A[255 & C]) ^ R[G++], Y = (A[P >>> 24] << 24 | A[z >>> 16 & 255] << 16 | A[C >>> 8 & 255] << 8 | A[255 & x]) ^ R[G++], ee = (A[z >>> 24] << 24 | A[C >>> 16 & 255] << 16 | A[x >>> 8 & 255] << 8 | A[255 & P]) ^ R[G++], m[S] = K, m[S + 1] = H, m[S + 2] = Y, m[S + 3] = ee;
|
|
2926
2926
|
}, keySize: 8 });
|
|
2927
2927
|
a.AES = e._createHelper(p);
|
|
2928
2928
|
}(), r.AES;
|
|
2929
|
-
}(he(),
|
|
2929
|
+
}(he(), Ft(), jt(), Ct(), Be())), Ao(), Ia || (Ia = 1, Ro.exports = function(r) {
|
|
2930
2930
|
return function() {
|
|
2931
2931
|
var a = r, e = a.lib.StreamCipher, t = a.algo, i = t.RC4 = e.extend({ _doReset: function() {
|
|
2932
2932
|
for (var o = this._key, c = o.words, h = o.sigBytes, l = this._S = [], d = 0; d < 256; d++)
|
|
@@ -2958,7 +2958,7 @@ en.exports = function(r) {
|
|
|
2958
2958
|
} });
|
|
2959
2959
|
a.RC4Drop = e._createHelper(n);
|
|
2960
2960
|
}(), r.RC4;
|
|
2961
|
-
}(he(),
|
|
2961
|
+
}(he(), Ft(), jt(), Ct(), Be())), Ta || (Ta = 1, _o.exports = function(r) {
|
|
2962
2962
|
return function() {
|
|
2963
2963
|
var a = r, e = a.lib.StreamCipher, t = a.algo, i = [], s = [], n = [], o = t.Rabbit = e.extend({ _doReset: function() {
|
|
2964
2964
|
for (var h = this._key.words, l = this.cfg.iv, d = 0; d < 4; d++)
|
|
@@ -2969,8 +2969,8 @@ en.exports = function(r) {
|
|
|
2969
2969
|
for (d = 0; d < 8; d++)
|
|
2970
2970
|
u[d] ^= b[d + 4 & 7];
|
|
2971
2971
|
if (l) {
|
|
2972
|
-
var f = l.words, p = f[0], m = f[1], S = 16711935 & (p << 8 | p >>> 24) | 4278255360 & (p << 24 | p >>> 8),
|
|
2973
|
-
for (u[0] ^= S, u[1] ^= _, u[2] ^=
|
|
2972
|
+
var f = l.words, p = f[0], m = f[1], S = 16711935 & (p << 8 | p >>> 24) | 4278255360 & (p << 24 | p >>> 8), R = 16711935 & (m << 8 | m >>> 24) | 4278255360 & (m << 24 | m >>> 8), _ = S >>> 16 | 4294901760 & R, y = R << 16 | 65535 & S;
|
|
2973
|
+
for (u[0] ^= S, u[1] ^= _, u[2] ^= R, u[3] ^= y, u[4] ^= S, u[5] ^= _, u[6] ^= R, u[7] ^= y, d = 0; d < 4; d++)
|
|
2974
2974
|
c.call(this);
|
|
2975
2975
|
}
|
|
2976
2976
|
}, _doProcessBlock: function(h, l) {
|
|
@@ -2990,7 +2990,7 @@ en.exports = function(r) {
|
|
|
2990
2990
|
}
|
|
2991
2991
|
a.Rabbit = e._createHelper(o);
|
|
2992
2992
|
}(), r.Rabbit;
|
|
2993
|
-
}(he(),
|
|
2993
|
+
}(he(), Ft(), jt(), Ct(), Be())), Ca || (Ca = 1, wo.exports = function(r) {
|
|
2994
2994
|
return function() {
|
|
2995
2995
|
var a = r, e = a.lib.StreamCipher, t = a.algo, i = [], s = [], n = [], o = t.RabbitLegacy = e.extend({ _doReset: function() {
|
|
2996
2996
|
var h = this._key.words, l = this.cfg.iv, d = this._X = [h[0], h[3] << 16 | h[2] >>> 16, h[1], h[0] << 16 | h[3] >>> 16, h[2], h[1] << 16 | h[0] >>> 16, h[3], h[2] << 16 | h[1] >>> 16], b = this._C = [h[2] << 16 | h[2] >>> 16, 4294901760 & h[0] | 65535 & h[1], h[3] << 16 | h[3] >>> 16, 4294901760 & h[1] | 65535 & h[2], h[0] << 16 | h[0] >>> 16, 4294901760 & h[2] | 65535 & h[3], h[1] << 16 | h[1] >>> 16, 4294901760 & h[3] | 65535 & h[0]];
|
|
@@ -3000,8 +3000,8 @@ en.exports = function(r) {
|
|
|
3000
3000
|
for (u = 0; u < 8; u++)
|
|
3001
3001
|
b[u] ^= d[u + 4 & 7];
|
|
3002
3002
|
if (l) {
|
|
3003
|
-
var f = l.words, p = f[0], m = f[1], S = 16711935 & (p << 8 | p >>> 24) | 4278255360 & (p << 24 | p >>> 8),
|
|
3004
|
-
for (b[0] ^= S, b[1] ^= _, b[2] ^=
|
|
3003
|
+
var f = l.words, p = f[0], m = f[1], S = 16711935 & (p << 8 | p >>> 24) | 4278255360 & (p << 24 | p >>> 8), R = 16711935 & (m << 8 | m >>> 24) | 4278255360 & (m << 24 | m >>> 8), _ = S >>> 16 | 4294901760 & R, y = R << 16 | 65535 & S;
|
|
3004
|
+
for (b[0] ^= S, b[1] ^= _, b[2] ^= R, b[3] ^= y, b[4] ^= S, b[5] ^= _, b[6] ^= R, b[7] ^= y, u = 0; u < 4; u++)
|
|
3005
3005
|
c.call(this);
|
|
3006
3006
|
}
|
|
3007
3007
|
}, _doProcessBlock: function(h, l) {
|
|
@@ -3021,7 +3021,7 @@ en.exports = function(r) {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
a.RabbitLegacy = e._createHelper(o);
|
|
3023
3023
|
}(), r.RabbitLegacy;
|
|
3024
|
-
}(he(),
|
|
3024
|
+
}(he(), Ft(), jt(), Ct(), Be())), Eo());
|
|
3025
3025
|
const ci = Yn(en.exports);
|
|
3026
3026
|
function Io(r) {
|
|
3027
3027
|
return a = this, e = null, t = function* () {
|
|
@@ -3066,10 +3066,10 @@ function Tr(r) {
|
|
|
3066
3066
|
let n = a.slice(a.indexOf("/logstores")), o = e.length, c = (h = e, ci.MD5(h).toString().toUpperCase());
|
|
3067
3067
|
var h;
|
|
3068
3068
|
let l = (/* @__PURE__ */ new Date()).toUTCString(), d = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map([["Content-Type", "application/json"], ["Content-MD5", c], ["x-log-bodyrawsize", o.toString()]]);
|
|
3069
|
-
r.securityToken && b.set("x-acs-security-token", r.securityToken), function(f, p, m, S,
|
|
3069
|
+
r.securityToken && b.set("x-acs-security-token", r.securityToken), function(f, p, m, S, R, _, y, v) {
|
|
3070
3070
|
var w;
|
|
3071
|
-
let
|
|
3072
|
-
_.set("x-log-apiversion", "0.6.0"), _.set("x-log-signaturemethod", "hmac-sha1"),
|
|
3071
|
+
let A = "";
|
|
3072
|
+
_.set("x-log-apiversion", "0.6.0"), _.set("x-log-signaturemethod", "hmac-sha1"), A += f + `
|
|
3073
3073
|
` + y + `
|
|
3074
3074
|
` + ((w = _.get("Content-Type")) != null ? w : "") + `
|
|
3075
3075
|
` + v + `
|
|
@@ -3078,15 +3078,15 @@ function Tr(r) {
|
|
|
3078
3078
|
try {
|
|
3079
3079
|
const P = [..._.entries()].filter(C).sort(E).map((z) => z[0] + ":" + z[1] + `
|
|
3080
3080
|
`).join("");
|
|
3081
|
-
|
|
3081
|
+
A += P;
|
|
3082
3082
|
} catch (P) {
|
|
3083
3083
|
}
|
|
3084
|
-
|
|
3084
|
+
A += p, R.size > 0 && (A += "?");
|
|
3085
3085
|
try {
|
|
3086
|
-
|
|
3086
|
+
A += [...R.entries()].sort(E).map((P) => P[0] + "=" + P[1]).join("&");
|
|
3087
3087
|
} catch (P) {
|
|
3088
3088
|
}
|
|
3089
|
-
const x = "LOG " + m + ":" + ci.HmacSHA1(
|
|
3089
|
+
const x = "LOG " + m + ":" + ci.HmacSHA1(A, S).toString(ci.enc.Base64);
|
|
3090
3090
|
_.set("Authorization", x), _.set("x-log-date", v);
|
|
3091
3091
|
}("POST", n, r.accessKeyId, r.accessKeySecret, d, b, c, l);
|
|
3092
3092
|
let u = Object.fromEntries(b);
|
|
@@ -3110,7 +3110,7 @@ function Tr(r) {
|
|
|
3110
3110
|
var t, i, s;
|
|
3111
3111
|
} };
|
|
3112
3112
|
}
|
|
3113
|
-
typeof window != "undefined" &&
|
|
3113
|
+
typeof window != "undefined" && Za(window, "stsPlugin", Tr);
|
|
3114
3114
|
var To = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, Co = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, ko = /[^-+\dA-Z]/g;
|
|
3115
3115
|
function Cr(r, a, e, t) {
|
|
3116
3116
|
if (arguments.length !== 1 || typeof r != "string" || /\d/.test(r) || (a = r, r = void 0), (r = r || r === 0 ? r : /* @__PURE__ */ new Date()) instanceof Date || (r = new Date(r)), isNaN(r))
|
|
@@ -3144,21 +3144,21 @@ function Cr(r, a, e, t) {
|
|
|
3144
3144
|
}, dd: function() {
|
|
3145
3145
|
return rt(n());
|
|
3146
3146
|
}, ddd: function() {
|
|
3147
|
-
return
|
|
3147
|
+
return Ze.dayNames[o()];
|
|
3148
3148
|
}, DDD: function() {
|
|
3149
|
-
return Ma({ y: h(), m: c(), d: n(), _: s(), dayName:
|
|
3149
|
+
return Ma({ y: h(), m: c(), d: n(), _: s(), dayName: Ze.dayNames[o()], short: !0 });
|
|
3150
3150
|
}, dddd: function() {
|
|
3151
|
-
return
|
|
3151
|
+
return Ze.dayNames[o() + 7];
|
|
3152
3152
|
}, DDDD: function() {
|
|
3153
|
-
return Ma({ y: h(), m: c(), d: n(), _: s(), dayName:
|
|
3153
|
+
return Ma({ y: h(), m: c(), d: n(), _: s(), dayName: Ze.dayNames[o() + 7] });
|
|
3154
3154
|
}, m: function() {
|
|
3155
3155
|
return c() + 1;
|
|
3156
3156
|
}, mm: function() {
|
|
3157
3157
|
return rt(c() + 1);
|
|
3158
3158
|
}, mmm: function() {
|
|
3159
|
-
return
|
|
3159
|
+
return Ze.monthNames[c()];
|
|
3160
3160
|
}, mmmm: function() {
|
|
3161
|
-
return
|
|
3161
|
+
return Ze.monthNames[c() + 12];
|
|
3162
3162
|
}, yy: function() {
|
|
3163
3163
|
return String(h()).slice(2);
|
|
3164
3164
|
}, yyyy: function() {
|
|
@@ -3184,13 +3184,13 @@ function Cr(r, a, e, t) {
|
|
|
3184
3184
|
}, L: function() {
|
|
3185
3185
|
return rt(Math.floor(u() / 10));
|
|
3186
3186
|
}, t: function() {
|
|
3187
|
-
return l() < 12 ?
|
|
3187
|
+
return l() < 12 ? Ze.timeNames[0] : Ze.timeNames[1];
|
|
3188
3188
|
}, tt: function() {
|
|
3189
|
-
return l() < 12 ?
|
|
3189
|
+
return l() < 12 ? Ze.timeNames[2] : Ze.timeNames[3];
|
|
3190
3190
|
}, T: function() {
|
|
3191
|
-
return l() < 12 ?
|
|
3191
|
+
return l() < 12 ? Ze.timeNames[4] : Ze.timeNames[5];
|
|
3192
3192
|
}, TT: function() {
|
|
3193
|
-
return l() < 12 ?
|
|
3193
|
+
return l() < 12 ? Ze.timeNames[6] : Ze.timeNames[7];
|
|
3194
3194
|
}, Z: function() {
|
|
3195
3195
|
return t ? "GMT" : e ? "UTC" : Mo(r);
|
|
3196
3196
|
}, o: function() {
|
|
@@ -3210,7 +3210,7 @@ function Cr(r, a, e, t) {
|
|
|
3210
3210
|
return S in m ? m[S]() : S.slice(1, S.length - 1);
|
|
3211
3211
|
});
|
|
3212
3212
|
}
|
|
3213
|
-
var Da = { 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" },
|
|
3213
|
+
var Da = { 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" }, Ze = { 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"] }, rt = function(r) {
|
|
3214
3214
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
3215
3215
|
return String(r).padStart(a, "0");
|
|
3216
3216
|
}, Ma = function(r) {
|
|
@@ -3233,14 +3233,14 @@ var Da = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
|
|
|
3233
3233
|
}, Mo = function(r) {
|
|
3234
3234
|
return (String(r).match(Co) || [""]).pop().replace(ko, "").replace(/GMT\+0000/g, "UTC");
|
|
3235
3235
|
};
|
|
3236
|
-
const { BrowserUtil:
|
|
3236
|
+
const { BrowserUtil: Lo } = Se, No = "EdgeHTML", La = "Blink", xo = "Trident", Vo = "Gecko", Oo = "WebKit", yi = (r, a) => {
|
|
3237
3237
|
const e = a.match(r);
|
|
3238
3238
|
return e && e.length > 0 && e[1] || "";
|
|
3239
3239
|
}, Uo = [{ test: [/\sedg\//i, [/edg([ea]|ios)/i]], describe(r) {
|
|
3240
3240
|
if (/\sedg\//i.test(r))
|
|
3241
|
-
return { name:
|
|
3241
|
+
return { name: La };
|
|
3242
3242
|
const a = yi(/edge\/(\d+(\.?_?\d+)+)/i, r);
|
|
3243
|
-
return { name:
|
|
3243
|
+
return { name: No, version: a };
|
|
3244
3244
|
} }, { test: [/trident/i], describe(r) {
|
|
3245
3245
|
const a = { name: xo }, e = yi(/trident\/(\d+(\.?_?\d+)+)/i, r);
|
|
3246
3246
|
return e && (a.version = e), a;
|
|
@@ -3250,7 +3250,7 @@ const { BrowserUtil: No } = Se, Lo = "EdgeHTML", Na = "Blink", xo = "Trident", V
|
|
|
3250
3250
|
}, describe(r) {
|
|
3251
3251
|
const a = { name: Vo }, e = yi(/gecko\/(\d+(\.?_?\d+)+)/i, r);
|
|
3252
3252
|
return e && (a.version = e), a;
|
|
3253
|
-
} }, { test: [/(apple)?webkit\/537\.36/i], describe: () => ({ name:
|
|
3253
|
+
} }, { test: [/(apple)?webkit\/537\.36/i], describe: () => ({ name: La }) }, { test: [/(apple)?webkit/i], describe(r) {
|
|
3254
3254
|
const a = { name: Oo }, e = yi(/webkit\/(\d+(\.?_?\d+)+)/i, r);
|
|
3255
3255
|
return e && (a.version = e), a;
|
|
3256
3256
|
} }], kr = (r, a) => r.find((e) => typeof e.test == "function" ? e.test(a) : Array.isArray(e.test) ? e.test.some((t) => typeof t == "string" ? a.indexOf(t) > -1 : t instanceof RegExp && t.test(a)) : void 0), Bo = () => {
|
|
@@ -3258,7 +3258,7 @@ const { BrowserUtil: No } = Se, Lo = "EdgeHTML", Na = "Blink", xo = "Trident", V
|
|
|
3258
3258
|
const r = navigator.userAgent || "", a = kr(Uo, r);
|
|
3259
3259
|
if (a) {
|
|
3260
3260
|
const e = a.describe(r);
|
|
3261
|
-
return `${e.name}/${e.version ||
|
|
3261
|
+
return `${e.name}/${e.version || Lo.browserVersion}`;
|
|
3262
3262
|
}
|
|
3263
3263
|
} catch (r) {
|
|
3264
3264
|
}
|
|
@@ -3283,7 +3283,7 @@ const { BrowserUtil: No } = Se, Lo = "EdgeHTML", Na = "Blink", xo = "Trident", V
|
|
|
3283
3283
|
} catch (a) {
|
|
3284
3284
|
}
|
|
3285
3285
|
return r;
|
|
3286
|
-
}, { BrowserUtil:
|
|
3286
|
+
}, { BrowserUtil: Na, SystenUtil: xa } = Se, zo = rn(), Ai = 6e5, Ri = { host: "cn-hangzhou.log.aliyuncs.com", project: "alivc-aio", logstore: "logger", time: 10, count: 10 };
|
|
3287
3287
|
function ir() {
|
|
3288
3288
|
return Cr(/* @__PURE__ */ new Date(), "HH:MM:ss.l");
|
|
3289
3289
|
}
|
|
@@ -3415,7 +3415,7 @@ class Wo {
|
|
|
3415
3415
|
a ? this.sendLogBeforeUnload(t) : (this.tracker.sendBatchLogsImmediate(t), this.endReported = !0), this.reset();
|
|
3416
3416
|
}
|
|
3417
3417
|
getLogParams(a, e) {
|
|
3418
|
-
return
|
|
3418
|
+
return $({ appid: `${window.location.host}`, appid_list: this.appId, appver: "", b_sesid: this.bSesid, biz_type: "rtc", cpu_info: zo, db: Na.browserName, dm: Na.browserVersion, install_uuid: this.clientId, logger_v: "0.0.1", os: xa.systemName, osv: xa.systemVersion, p_sesid: this.bSesid, sdk_version: Ni, sdkname: "AliRTCSdk", stm: Date.now(), tar_pf: "web", traceid: this.sessionId, event_id: a }, e || {});
|
|
3419
3419
|
}
|
|
3420
3420
|
sendLog(a) {
|
|
3421
3421
|
if (!this.tracker || !this.sessionId)
|
|
@@ -3473,9 +3473,10 @@ class V {
|
|
|
3473
3473
|
g(V, "logger");
|
|
3474
3474
|
const Ko = (r) => I(void 0, null, function* () {
|
|
3475
3475
|
const a = new Se.SupportUtil();
|
|
3476
|
+
window.isSecureContext || console.warn("WebRTC 需要 HTTPS 安全上下文,细节可参考:https://developer.mozilla.org/zh-CN/docs/Web/Security/Secure_Contexts");
|
|
3476
3477
|
let e = { support: !1, detail: { isWebRTCSupported: a.checkMediaDevices() && a.checkWebRtcSupport(), isH264DecodeSupported: !1, isH264EncodeSupported: !1, isScreenShareSupported: !1, isSendMediaExtensionMsgSupported: !1, isBrowserSupported: !0 } }, t = !1;
|
|
3477
3478
|
try {
|
|
3478
|
-
e.detail.isWebRTCSupported
|
|
3479
|
+
e.detail.isWebRTCSupported ? (yield a.isSupport({ isReceiveVideo: !0 }), t = !0) : console.warn("当前浏览器不支持 WebRTC");
|
|
3479
3480
|
} catch (i) {
|
|
3480
3481
|
t = !1, e.detail.isBrowserSupported = a.checkBrowser({ errorCode: 0, message: "" });
|
|
3481
3482
|
}
|
|
@@ -3489,9 +3490,9 @@ const Ko = (r) => I(void 0, null, function* () {
|
|
|
3489
3490
|
}
|
|
3490
3491
|
return e.detail.isScreenShareSupported = a.checkWebRtcSupport() && a.checkScreenCapture() && !Se.SystenUtil.isAndroid && !Se.SystenUtil.isIos, e.detail.isSendMediaExtensionMsgSupported = a.checkWebRtcSupport() && a.checkEncodedTransformSupport(), e;
|
|
3491
3492
|
});
|
|
3492
|
-
var
|
|
3493
|
-
class
|
|
3494
|
-
constructor(e, t =
|
|
3493
|
+
var Ne = ((r) => (r[r.AliRtcSdkStreamTypeCapture = 0] = "AliRtcSdkStreamTypeCapture", r[r.AliRtcSdkStreamTypeScreen = 1] = "AliRtcSdkStreamTypeScreen", r))(Ne || {}), $o = ((r) => (r[r.PRE_PROCESSOR = 0] = "PRE_PROCESSOR", r[r.POST_PROCESSOR = 1] = "POST_PROCESSOR", r))($o || {}), fi = ((r) => (r[r.AUDIO = 0] = "AUDIO", r[r.VIDEO = 1] = "VIDEO", r[r.BOTH = 2] = "BOTH", r))(fi || {});
|
|
3494
|
+
class xt extends He {
|
|
3495
|
+
constructor(e, t = Ne.AliRtcSdkStreamTypeCapture, i = 1) {
|
|
3495
3496
|
super();
|
|
3496
3497
|
g(this, "name");
|
|
3497
3498
|
g(this, "options");
|
|
@@ -3608,7 +3609,7 @@ class mr {
|
|
|
3608
3609
|
return n;
|
|
3609
3610
|
}
|
|
3610
3611
|
}
|
|
3611
|
-
var _t = ((r) => (r.pre = "pre", r.prod = "prod", r))(_t || {}),
|
|
3612
|
+
var _t = ((r) => (r.pre = "pre", r.prod = "prod", r))(_t || {}), kt = ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(kt || {}), Ht = ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Ht || {}), Rt = ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(Rt || {}), xe = ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(xe || {}), ne = ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(ne || {}), yt = ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(yt || {}), Lr = ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(Lr || {}), ii = ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(ii || {}), oe = ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(oe || {}), Z = ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(Z || {}), pe = ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(pe || {}), Ke = ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(Ke || {}), mi = ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(mi || {});
|
|
3612
3613
|
const ei = class ei extends He {
|
|
3613
3614
|
constructor(e) {
|
|
3614
3615
|
super();
|
|
@@ -3678,11 +3679,11 @@ g(ei, "logName", "Socket");
|
|
|
3678
3679
|
let gr = ei;
|
|
3679
3680
|
var rr, sr, fr = { exports: {} };
|
|
3680
3681
|
rr = fr, sr = fr.exports, function(r, a) {
|
|
3681
|
-
var e = "function", t = "undefined", i = "object", s = "string", n = "major", o = "model", c = "name", h = "type", l = "vendor", d = "version", b = "architecture", u = "console", f = "mobile", p = "tablet", m = "smarttv", S = "wearable",
|
|
3682
|
-
for (var re = {},
|
|
3683
|
-
re[se[
|
|
3682
|
+
var e = "function", t = "undefined", i = "object", s = "string", n = "major", o = "model", c = "name", h = "type", l = "vendor", d = "version", b = "architecture", u = "console", f = "mobile", p = "tablet", m = "smarttv", S = "wearable", R = "embedded", _ = "Amazon", y = "Apple", v = "ASUS", w = "BlackBerry", A = "Browser", E = "Chrome", C = "Firefox", x = "Google", P = "Huawei", z = "LG", G = "Microsoft", X = "Motorola", K = "Opera", H = "Samsung", Y = "Sharp", ee = "Sony", M = "Xiaomi", N = "Zebra", D = "Facebook", L = "Chromium OS", ce = "Mac OS", me = " Browser", ye = function(se) {
|
|
3683
|
+
for (var re = {}, Q = 0; Q < se.length; Q++)
|
|
3684
|
+
re[se[Q].toUpperCase()] = se[Q];
|
|
3684
3685
|
return re;
|
|
3685
|
-
},
|
|
3686
|
+
}, J = function(se, re) {
|
|
3686
3687
|
return typeof se === s && le(re).indexOf(le(se)) !== -1;
|
|
3687
3688
|
}, le = function(se) {
|
|
3688
3689
|
return se.toLowerCase();
|
|
@@ -3690,47 +3691,47 @@ rr = fr, sr = fr.exports, function(r, a) {
|
|
|
3690
3691
|
if (typeof se === s)
|
|
3691
3692
|
return se = se.replace(/^\s\s*/, ""), typeof re === t ? se : se.substring(0, 500);
|
|
3692
3693
|
}, be = function(se, re) {
|
|
3693
|
-
for (var
|
|
3694
|
+
for (var Q, ue, Ie, ie, je, q, Ee = 0; Ee < re.length && !je; ) {
|
|
3694
3695
|
var Je = re[Ee], Oe = re[Ee + 1];
|
|
3695
|
-
for (
|
|
3696
|
-
if (je = Je[
|
|
3696
|
+
for (Q = ue = 0; Q < Je.length && !je && Je[Q]; )
|
|
3697
|
+
if (je = Je[Q++].exec(se))
|
|
3697
3698
|
for (Ie = 0; Ie < Oe.length; Ie++)
|
|
3698
3699
|
q = je[++ue], typeof (ie = Oe[Ie]) === i && ie.length > 0 ? ie.length === 2 ? typeof ie[1] == e ? this[ie[0]] = ie[1].call(this, q) : this[ie[0]] = ie[1] : ie.length === 3 ? typeof ie[1] !== e || ie[1].exec && ie[1].test ? this[ie[0]] = q ? q.replace(ie[1], ie[2]) : a : this[ie[0]] = q ? ie[1].call(this, q, ie[2]) : a : ie.length === 4 && (this[ie[0]] = q ? ie[3].call(this, q.replace(ie[1], ie[2])) : a) : this[ie] = q || a;
|
|
3699
3700
|
Ee += 2;
|
|
3700
3701
|
}
|
|
3701
3702
|
}, de = function(se, re) {
|
|
3702
|
-
for (var
|
|
3703
|
-
if (typeof re[
|
|
3704
|
-
for (var ue = 0; ue < re[
|
|
3705
|
-
if (
|
|
3706
|
-
return
|
|
3707
|
-
} else if (
|
|
3708
|
-
return
|
|
3703
|
+
for (var Q in re)
|
|
3704
|
+
if (typeof re[Q] === i && re[Q].length > 0) {
|
|
3705
|
+
for (var ue = 0; ue < re[Q].length; ue++)
|
|
3706
|
+
if (J(re[Q][ue], se))
|
|
3707
|
+
return Q === "?" ? a : Q;
|
|
3708
|
+
} else if (J(re[Q], se))
|
|
3709
|
+
return Q === "?" ? a : Q;
|
|
3709
3710
|
return re.hasOwnProperty("*") ? re["*"] : se;
|
|
3710
|
-
}, ge = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [d, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [d, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, d], [/opios[\/ ]+([\w\.]+)/i], [d, [c, K + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [d, [c, K + " GX"]], [/\bopr\/([\w\.]+)/i], [d, [c, K]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [d, [c, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [d, [c, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, d], [/quark(?:pc)?\/([-\w\.]+)/i], [d, [c, "Quark"]], [/\bddg\/([\w\.]+)/i], [d, [c, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [d, [c, "UC" + R]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [d, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [d, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [d, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [d, [c, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [d, [c, "Smart Lenovo " + R]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + R], d], [/\bfocus\/([\w\.]+)/i], [d, [c, C + " Focus"]], [/\bopt\/([\w\.]+)/i], [d, [c, K + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [d, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [d, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [d, [c, K + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [d, [c, "MIUI" + me]], [/fxios\/([\w\.-]+)/i], [d, [c, C]], [/\bqihoobrowser\/?([\w\.]*)/i], [d, [c, "360"]], [/\b(qq)\/([\w\.]+)/i], [[c, /(.+)/, "$1Browser"], d], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1" + me], d], [/samsungbrowser\/([\w\.]+)/i], [d, [c, H + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [d, [c, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[c, "Sogou Mobile"], d], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [c, d], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [c], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [d, c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, D], d], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [c, d], [/\bgsa\/([\w\.]+) .*safari\//i], [d, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [d, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [d, [c, E + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, E + " WebView"], d], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [d, [c, "Android " + R]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, d], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [d, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [d, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [d, de, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [c, d], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], d], [/(wolvic|librewolf)\/([\w\.]+)/i], [c, d], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [d, [c, C + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [c, [d, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [c, [d, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[b, "amd64"]], [/(ia32(?=;))/i], [[b, le]], [/((?:i[346]|x)86)[;\)]/i], [[b, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[b, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[b, "armhf"]], [/windows (ce|mobile); ppc;/i], [[b, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[b, /ower/, "", le]], [/(sun4\w)[;\)]/i], [[b, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[b, le]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [o, [l, H], [h, p]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [o, [l, H], [h, f]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [o, [l, y], [h, f]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [o, [l, y], [h, p]], [/(macintosh);/i], [o, [l, y]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [o, [l, Y], [h, f]], [/(?:honor)([-\w ]+)[;\)]/i], [o, [l, "Honor"], [h, f]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [o, [l, P], [h, p]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [o, [l, P], [h, f]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[o, /_/g, " "], [l, M], [h, f]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[o, /_/g, " "], [l, M], [h, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [o, [l, "OPPO"], [h, f]], [/\b(opd2\d{3}a?) bui/i], [o, [l, "OPPO"], [h, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [o, [l, "Vivo"], [h, f]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [o, [l, "Realme"], [h, f]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [o, [l, X], [h, f]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [o, [l, X], [h, p]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [o, [l, z], [h, p]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [o, [l, z], [h, f]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [o, [l, "Lenovo"], [h, p]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[o, /_/g, " "], [l, "Nokia"], [h, f]], [/(pixel c)\b/i], [o, [l, x], [h, p]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [o, [l, x], [h, f]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [o, [l, ee], [h, f]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[o, "Xperia Tablet"], [l, ee], [h, p]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [o, [l, "OnePlus"], [h, f]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [o, [l, _], [h, p]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[o, /(.+)/g, "Fire Phone $1"], [l, _], [h, f]], [/(playbook);[-\w\),; ]+(rim)/i], [o, l, [h, p]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [o, [l, w], [h, f]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [o, [l, v], [h, p]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [o, [l, v], [h, f]], [/(nexus 9)/i], [o, [l, "HTC"], [h, p]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [l, [o, /_/g, " "], [h, f]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [o, [l, "TCL"], [h, p]], [/(itel) ((\w+))/i], [[l, le], o, [h, de, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [o, [l, "Acer"], [h, p]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [o, [l, "Meizu"], [h, f]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [o, [l, "Ulefone"], [h, f]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [o, [l, "Energizer"], [h, f]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [o, [l, "Cat"], [h, f]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [o, [l, "Smartfren"], [h, f]], [/droid.+; (a(?:015|06[35]|142p?))/i], [o, [l, "Nothing"], [h, f]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [l, o, [h, f]], [/(imo) (tab \w+)/i, /(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [l, o, [h, p]], [/(surface duo)/i], [o, [l, G], [h, p]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [o, [l, "Fairphone"], [h, f]], [/(u304aa)/i], [o, [l, "AT&T"], [h, f]], [/\bsie-(\w*)/i], [o, [l, "Siemens"], [h, f]], [/\b(rct\w+) b/i], [o, [l, "RCA"], [h, p]], [/\b(venue[\d ]{2,7}) b/i], [o, [l, "Dell"], [h, p]], [/\b(q(?:mv|ta)\w+) b/i], [o, [l, "Verizon"], [h, p]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [o, [l, "Barnes & Noble"], [h, p]], [/\b(tm\d{3}\w+) b/i], [o, [l, "NuVision"], [h, p]], [/\b(k88) b/i], [o, [l, "ZTE"], [h, p]], [/\b(nx\d{3}j) b/i], [o, [l, "ZTE"], [h, f]], [/\b(gen\d{3}) b.+49h/i], [o, [l, "Swiss"], [h, f]], [/\b(zur\d{3}) b/i], [o, [l, "Swiss"], [h, p]], [/\b((zeki)?tb.*\b) b/i], [o, [l, "Zeki"], [h, p]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[l, "Dragon Touch"], o, [h, p]], [/\b(ns-?\w{0,9}) b/i], [o, [l, "Insignia"], [h, p]], [/\b((nxa|next)-?\w{0,9}) b/i], [o, [l, "NextBook"], [h, p]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[l, "Voice"], o, [h, f]], [/\b(lvtel\-)?(v1[12]) b/i], [[l, "LvTel"], o, [h, f]], [/\b(ph-1) /i], [o, [l, "Essential"], [h, f]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [o, [l, "Envizen"], [h, p]], [/\b(trio[-\w\. ]+) b/i], [o, [l, "MachSpeed"], [h, p]], [/\btu_(1491) b/i], [o, [l, "Rotor"], [h, p]], [/(shield[\w ]+) b/i], [o, [l, "Nvidia"], [h, p]], [/(sprint) (\w+)/i], [l, o, [h, f]], [/(kin\.[onetw]{3})/i], [[o, /\./g, " "], [l, G], [h, f]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [o, [l, L], [h, p]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [o, [l, L], [h, f]], [/smart-tv.+(samsung)/i], [l, [h, m]], [/hbbtv.+maple;(\d+)/i], [[o, /^/, "SmartTV"], [l, H], [h, m]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[l, z], [h, m]], [/(apple) ?tv/i], [l, [o, y + " TV"], [h, m]], [/crkey/i], [[o, E + "cast"], [l, x], [h, m]], [/droid.+aft(\w+)( bui|\))/i], [o, [l, _], [h, m]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [o, [l, Y], [h, m]], [/(bravia[\w ]+)( bui|\))/i], [o, [l, ee], [h, m]], [/(mitv-\w{5}) bui/i], [o, [l, M], [h, m]], [/Hbbtv.*(technisat) (.*);/i], [l, o, [h, m]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[l, Pe], [o, Pe], [h, m]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, m]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [l, o, [h, u]], [/droid.+; (shield) bui/i], [o, [l, "Nvidia"], [h, u]], [/(playstation [345portablevi]+)/i], [o, [l, ee], [h, u]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [o, [l, G], [h, u]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [o, [l, H], [h, S]], [/((pebble))app/i], [l, o, [h, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [o, [l, y], [h, S]], [/droid.+; (glass) \d/i], [o, [l, x], [h, S]], [/droid.+; (wt63?0{2,3})\)/i], [o, [l, L], [h, S]], [/droid.+; (glass) \d/i], [o, [l, x], [h, S]], [/(pico) (4|neo3(?: link|pro)?)/i], [l, o, [h, S]], [/; (quest( \d| pro)?)/i], [o, [l, D], [h, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [l, [h, A]], [/(aeobc)\b/i], [o, [l, _], [h, A]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [o, [h, f]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [o, [h, p]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, p]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, f]], [/(android[-\w\. ]{0,9});.+buil/i], [o, [l, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [d, [c, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [c, d], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [d, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, d], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [d, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, d], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [c, [d, de, ge]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[d, de, ge], [c, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[d, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, ce], [d, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [d, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, d], [/\(bb(10);/i], [d, [c, w]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [d, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [d, [c, C + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [d, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [d, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [d, [c, E + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, N], d], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [c, d], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], d], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, d]] }, te = function(se, re) {
|
|
3711
|
+
}, ge = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [d, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [d, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, d], [/opios[\/ ]+([\w\.]+)/i], [d, [c, K + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [d, [c, K + " GX"]], [/\bopr\/([\w\.]+)/i], [d, [c, K]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [d, [c, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [d, [c, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, d], [/quark(?:pc)?\/([-\w\.]+)/i], [d, [c, "Quark"]], [/\bddg\/([\w\.]+)/i], [d, [c, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [d, [c, "UC" + A]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [d, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [d, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [d, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [d, [c, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [d, [c, "Smart Lenovo " + A]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + A], d], [/\bfocus\/([\w\.]+)/i], [d, [c, C + " Focus"]], [/\bopt\/([\w\.]+)/i], [d, [c, K + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [d, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [d, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [d, [c, K + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [d, [c, "MIUI" + me]], [/fxios\/([\w\.-]+)/i], [d, [c, C]], [/\bqihoobrowser\/?([\w\.]*)/i], [d, [c, "360"]], [/\b(qq)\/([\w\.]+)/i], [[c, /(.+)/, "$1Browser"], d], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1" + me], d], [/samsungbrowser\/([\w\.]+)/i], [d, [c, H + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [d, [c, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[c, "Sogou Mobile"], d], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [c, d], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [c], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [d, c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, D], d], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [c, d], [/\bgsa\/([\w\.]+) .*safari\//i], [d, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [d, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [d, [c, E + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, E + " WebView"], d], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [d, [c, "Android " + A]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, d], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [d, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [d, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [d, de, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [c, d], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], d], [/(wolvic|librewolf)\/([\w\.]+)/i], [c, d], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [d, [c, C + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [c, [d, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [c, [d, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[b, "amd64"]], [/(ia32(?=;))/i], [[b, le]], [/((?:i[346]|x)86)[;\)]/i], [[b, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[b, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[b, "armhf"]], [/windows (ce|mobile); ppc;/i], [[b, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[b, /ower/, "", le]], [/(sun4\w)[;\)]/i], [[b, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[b, le]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [o, [l, H], [h, p]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [o, [l, H], [h, f]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [o, [l, y], [h, f]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [o, [l, y], [h, p]], [/(macintosh);/i], [o, [l, y]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [o, [l, Y], [h, f]], [/(?:honor)([-\w ]+)[;\)]/i], [o, [l, "Honor"], [h, f]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [o, [l, P], [h, p]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [o, [l, P], [h, f]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[o, /_/g, " "], [l, M], [h, f]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[o, /_/g, " "], [l, M], [h, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [o, [l, "OPPO"], [h, f]], [/\b(opd2\d{3}a?) bui/i], [o, [l, "OPPO"], [h, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [o, [l, "Vivo"], [h, f]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [o, [l, "Realme"], [h, f]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [o, [l, X], [h, f]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [o, [l, X], [h, p]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [o, [l, z], [h, p]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [o, [l, z], [h, f]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [o, [l, "Lenovo"], [h, p]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[o, /_/g, " "], [l, "Nokia"], [h, f]], [/(pixel c)\b/i], [o, [l, x], [h, p]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [o, [l, x], [h, f]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [o, [l, ee], [h, f]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[o, "Xperia Tablet"], [l, ee], [h, p]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [o, [l, "OnePlus"], [h, f]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [o, [l, _], [h, p]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[o, /(.+)/g, "Fire Phone $1"], [l, _], [h, f]], [/(playbook);[-\w\),; ]+(rim)/i], [o, l, [h, p]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [o, [l, w], [h, f]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [o, [l, v], [h, p]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [o, [l, v], [h, f]], [/(nexus 9)/i], [o, [l, "HTC"], [h, p]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [l, [o, /_/g, " "], [h, f]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [o, [l, "TCL"], [h, p]], [/(itel) ((\w+))/i], [[l, le], o, [h, de, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [o, [l, "Acer"], [h, p]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [o, [l, "Meizu"], [h, f]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [o, [l, "Ulefone"], [h, f]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [o, [l, "Energizer"], [h, f]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [o, [l, "Cat"], [h, f]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [o, [l, "Smartfren"], [h, f]], [/droid.+; (a(?:015|06[35]|142p?))/i], [o, [l, "Nothing"], [h, f]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [l, o, [h, f]], [/(imo) (tab \w+)/i, /(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [l, o, [h, p]], [/(surface duo)/i], [o, [l, G], [h, p]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [o, [l, "Fairphone"], [h, f]], [/(u304aa)/i], [o, [l, "AT&T"], [h, f]], [/\bsie-(\w*)/i], [o, [l, "Siemens"], [h, f]], [/\b(rct\w+) b/i], [o, [l, "RCA"], [h, p]], [/\b(venue[\d ]{2,7}) b/i], [o, [l, "Dell"], [h, p]], [/\b(q(?:mv|ta)\w+) b/i], [o, [l, "Verizon"], [h, p]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [o, [l, "Barnes & Noble"], [h, p]], [/\b(tm\d{3}\w+) b/i], [o, [l, "NuVision"], [h, p]], [/\b(k88) b/i], [o, [l, "ZTE"], [h, p]], [/\b(nx\d{3}j) b/i], [o, [l, "ZTE"], [h, f]], [/\b(gen\d{3}) b.+49h/i], [o, [l, "Swiss"], [h, f]], [/\b(zur\d{3}) b/i], [o, [l, "Swiss"], [h, p]], [/\b((zeki)?tb.*\b) b/i], [o, [l, "Zeki"], [h, p]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[l, "Dragon Touch"], o, [h, p]], [/\b(ns-?\w{0,9}) b/i], [o, [l, "Insignia"], [h, p]], [/\b((nxa|next)-?\w{0,9}) b/i], [o, [l, "NextBook"], [h, p]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[l, "Voice"], o, [h, f]], [/\b(lvtel\-)?(v1[12]) b/i], [[l, "LvTel"], o, [h, f]], [/\b(ph-1) /i], [o, [l, "Essential"], [h, f]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [o, [l, "Envizen"], [h, p]], [/\b(trio[-\w\. ]+) b/i], [o, [l, "MachSpeed"], [h, p]], [/\btu_(1491) b/i], [o, [l, "Rotor"], [h, p]], [/(shield[\w ]+) b/i], [o, [l, "Nvidia"], [h, p]], [/(sprint) (\w+)/i], [l, o, [h, f]], [/(kin\.[onetw]{3})/i], [[o, /\./g, " "], [l, G], [h, f]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [o, [l, N], [h, p]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [o, [l, N], [h, f]], [/smart-tv.+(samsung)/i], [l, [h, m]], [/hbbtv.+maple;(\d+)/i], [[o, /^/, "SmartTV"], [l, H], [h, m]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[l, z], [h, m]], [/(apple) ?tv/i], [l, [o, y + " TV"], [h, m]], [/crkey/i], [[o, E + "cast"], [l, x], [h, m]], [/droid.+aft(\w+)( bui|\))/i], [o, [l, _], [h, m]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [o, [l, Y], [h, m]], [/(bravia[\w ]+)( bui|\))/i], [o, [l, ee], [h, m]], [/(mitv-\w{5}) bui/i], [o, [l, M], [h, m]], [/Hbbtv.*(technisat) (.*);/i], [l, o, [h, m]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[l, Pe], [o, Pe], [h, m]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[h, m]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [l, o, [h, u]], [/droid.+; (shield) bui/i], [o, [l, "Nvidia"], [h, u]], [/(playstation [345portablevi]+)/i], [o, [l, ee], [h, u]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [o, [l, G], [h, u]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [o, [l, H], [h, S]], [/((pebble))app/i], [l, o, [h, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [o, [l, y], [h, S]], [/droid.+; (glass) \d/i], [o, [l, x], [h, S]], [/droid.+; (wt63?0{2,3})\)/i], [o, [l, N], [h, S]], [/droid.+; (glass) \d/i], [o, [l, x], [h, S]], [/(pico) (4|neo3(?: link|pro)?)/i], [l, o, [h, S]], [/; (quest( \d| pro)?)/i], [o, [l, D], [h, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [l, [h, R]], [/(aeobc)\b/i], [o, [l, _], [h, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [o, [h, f]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [o, [h, p]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[h, p]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[h, f]], [/(android[-\w\. ]{0,9});.+buil/i], [o, [l, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [d, [c, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [c, d], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [d, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, d], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [d, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, d], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [c, [d, de, ge]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[d, de, ge], [c, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[d, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, ce], [d, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [d, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, d], [/\(bb(10);/i], [d, [c, w]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [d, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [d, [c, C + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [d, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [d, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [d, [c, E + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, L], d], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [c, d], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], d], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, d]] }, te = function(se, re) {
|
|
3711
3712
|
if (typeof se === i && (re = se, se = a), !(this instanceof te))
|
|
3712
3713
|
return new te(se, re).getResult();
|
|
3713
|
-
var
|
|
3714
|
+
var Q = typeof r !== t && r.navigator ? r.navigator : a, ue = se || (Q && Q.userAgent ? Q.userAgent : ""), Ie = Q && Q.userAgentData ? Q.userAgentData : a, ie = re ? function(q, Ee) {
|
|
3714
3715
|
var Je = {};
|
|
3715
3716
|
for (var Oe in q)
|
|
3716
3717
|
Ee[Oe] && Ee[Oe].length % 2 == 0 ? Je[Oe] = Ee[Oe].concat(q[Oe]) : Je[Oe] = q[Oe];
|
|
3717
3718
|
return Je;
|
|
3718
|
-
}(Fe, re) : Fe, je =
|
|
3719
|
+
}(Fe, re) : Fe, je = Q && Q.userAgent == ue;
|
|
3719
3720
|
return this.getBrowser = function() {
|
|
3720
3721
|
var q, Ee = {};
|
|
3721
|
-
return Ee[c] = a, Ee[d] = a, be.call(Ee, ue, ie.browser), Ee[n] = typeof (q = Ee[d]) === s ? q.replace(/[^\d\.]/g, "").split(".")[0] : a, je &&
|
|
3722
|
+
return Ee[c] = a, Ee[d] = a, be.call(Ee, ue, ie.browser), Ee[n] = typeof (q = Ee[d]) === s ? q.replace(/[^\d\.]/g, "").split(".")[0] : a, je && Q && Q.brave && typeof Q.brave.isBrave == e && (Ee[c] = "Brave"), Ee;
|
|
3722
3723
|
}, this.getCPU = function() {
|
|
3723
3724
|
var q = {};
|
|
3724
3725
|
return q[b] = a, be.call(q, ue, ie.cpu), q;
|
|
3725
3726
|
}, this.getDevice = function() {
|
|
3726
3727
|
var q = {};
|
|
3727
|
-
return q[l] = a, q[o] = a, q[h] = a, be.call(q, ue, ie.device), je && !q[h] && Ie && Ie.mobile && (q[h] = f), je && q[o] == "Macintosh" &&
|
|
3728
|
+
return q[l] = a, q[o] = a, q[h] = a, be.call(q, ue, ie.device), je && !q[h] && Ie && Ie.mobile && (q[h] = f), je && q[o] == "Macintosh" && Q && typeof Q.standalone !== t && Q.maxTouchPoints && Q.maxTouchPoints > 2 && (q[o] = "iPad", q[h] = p), q;
|
|
3728
3729
|
}, this.getEngine = function() {
|
|
3729
3730
|
var q = {};
|
|
3730
3731
|
return q[c] = a, q[d] = a, be.call(q, ue, ie.engine), q;
|
|
3731
3732
|
}, this.getOS = function() {
|
|
3732
3733
|
var q = {};
|
|
3733
|
-
return q[c] = a, q[d] = a, be.call(q, ue, ie.os), je && !q[c] && Ie && Ie.platform && Ie.platform != "Unknown" && (q[c] = Ie.platform.replace(/chrome os/i,
|
|
3734
|
+
return q[c] = a, q[d] = a, be.call(q, ue, ie.os), je && !q[c] && Ie && Ie.platform && Ie.platform != "Unknown" && (q[c] = Ie.platform.replace(/chrome os/i, L).replace(/macos/i, ce)), q;
|
|
3734
3735
|
}, this.getResult = function() {
|
|
3735
3736
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
3736
3737
|
}, this.getUA = function() {
|
|
@@ -3739,7 +3740,7 @@ rr = fr, sr = fr.exports, function(r, a) {
|
|
|
3739
3740
|
return ue = typeof q === s && q.length > 500 ? Pe(q, 500) : q, this;
|
|
3740
3741
|
}, this.setUA(ue), this;
|
|
3741
3742
|
};
|
|
3742
|
-
te.VERSION = "1.0.40", te.BROWSER = ye([c, d, n]), te.CPU = ye([b]), te.DEVICE = ye([o, l, h, u, f, m, p, S,
|
|
3743
|
+
te.VERSION = "1.0.40", te.BROWSER = ye([c, d, n]), te.CPU = ye([b]), te.DEVICE = ye([o, l, h, u, f, m, p, S, R]), te.ENGINE = te.OS = ye([c, d]), rr.exports && (sr = rr.exports = te), sr.UAParser = te;
|
|
3743
3744
|
var Ae = typeof r !== t && (r.jQuery || r.Zepto);
|
|
3744
3745
|
if (Ae && !Ae.ua) {
|
|
3745
3746
|
var ke = new te();
|
|
@@ -3748,12 +3749,12 @@ rr = fr, sr = fr.exports, function(r, a) {
|
|
|
3748
3749
|
}, Ae.ua.set = function(se) {
|
|
3749
3750
|
ke.setUA(se);
|
|
3750
3751
|
var re = ke.getResult();
|
|
3751
|
-
for (var
|
|
3752
|
-
Ae.ua[
|
|
3752
|
+
for (var Q in re)
|
|
3753
|
+
Ae.ua[Q] = re[Q];
|
|
3753
3754
|
};
|
|
3754
3755
|
}
|
|
3755
3756
|
}(typeof window == "object" ? window : Ei);
|
|
3756
|
-
var qo = fr.exports,
|
|
3757
|
+
var qo = fr.exports, Le = ((r) => (r.KEEPALIVE = "keepalive", r.JOINCHANNEL = "joinchannel", r.NOTIFYJOIN = "notifyjoin", r.NOTIFYSTATUS = "notifystatus", r.STATUSREPORT = "statusreport", r.LEAVECHANNEL = "leavechannel", r.NOTIFYLEAVE = "notifyleave", r.NOTIFYPUBLISH = "notifypublish", r.BYE = "bye", r.RECONNECT = "reconnect", r.PUBLISH = "publish", r.REFRESHURL = "refreshurl", r.UNSUBSCRIBE = "unsubscribe", r.ROLEUPDATE = "roleupdate", r))(Le || {});
|
|
3757
3758
|
class Xo {
|
|
3758
3759
|
constructor(a, e) {
|
|
3759
3760
|
g(this, "authInfo");
|
|
@@ -3770,7 +3771,7 @@ class Xo {
|
|
|
3770
3771
|
get adaptInfo() {
|
|
3771
3772
|
var e, t, i, s;
|
|
3772
3773
|
let a = new qo.UAParser().getResult();
|
|
3773
|
-
return { os_name: ((e = a.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = a.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = a.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((s = a.device.vendor) == null ? void 0 : s.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: a.browser.version || "", sdk_version: "7.1.
|
|
3774
|
+
return { os_name: ((e = a.os.name) == null ? void 0 : e.replace(" ", "")) + "_" + ((t = a.browser.name) == null ? void 0 : t.replace(" ", "")), device_name: ((i = a.device.model) == null ? void 0 : i.replace(" ", "")) || "", brand_name: ((s = a.device.vendor) == null ? void 0 : s.replace(" ", "")) || "", device_key: window.navigator.userAgent, os_version: a.browser.version || "", sdk_version: "7.1.3-beta.1", version: "v1" };
|
|
3774
3775
|
}
|
|
3775
3776
|
refreshAuthInfo(a) {
|
|
3776
3777
|
this.authInfo = a;
|
|
@@ -3783,7 +3784,7 @@ class Xo {
|
|
|
3783
3784
|
}
|
|
3784
3785
|
createJoinPackage(a) {
|
|
3785
3786
|
let e = this.createBaseSendPackage("joinchannel");
|
|
3786
|
-
return e.header.displayName = this.userName, e.header.clientversion = it.getVersionNumber().toString(), e.header.platform = "web", this.roleAuth && (e.data.auth = this.roleAuth), this.adaptInfo && (e.data.adapt = this.adaptInfo), a && (e.data =
|
|
3787
|
+
return e.header.displayName = this.userName, e.header.clientversion = it.getVersionNumber().toString(), e.header.platform = "web", this.roleAuth && (e.data.auth = this.roleAuth), this.adaptInfo && (e.data.adapt = this.adaptInfo), a && (e.data = $($({}, e.data), a)), e;
|
|
3787
3788
|
}
|
|
3788
3789
|
crateLeavePackage() {
|
|
3789
3790
|
return this.createBaseSendPackage("leavechannel");
|
|
@@ -3802,7 +3803,7 @@ class Xo {
|
|
|
3802
3803
|
}
|
|
3803
3804
|
createReconnectPackage(a) {
|
|
3804
3805
|
let e = this.createBaseSendPackage("reconnect");
|
|
3805
|
-
return e.header.displayName = this.userName, e.header.clientversion = it.getVersionNumber().toString(), e.header.platform = "web", e.data =
|
|
3806
|
+
return e.header.displayName = this.userName, e.header.clientversion = it.getVersionNumber().toString(), e.header.platform = "web", e.data = $($({}, e.data), a != null ? a : {}), this.roleAuth && (e.data.auth = this.roleAuth), e;
|
|
3806
3807
|
}
|
|
3807
3808
|
createRefreshUrlPackage() {
|
|
3808
3809
|
let a = this.createBaseSendPackage("refreshurl");
|
|
@@ -3890,11 +3891,11 @@ const st = class st extends He {
|
|
|
3890
3891
|
this.sendPackage(t);
|
|
3891
3892
|
}
|
|
3892
3893
|
publish(e) {
|
|
3893
|
-
const h = e, { l1ip: t } = h, i =
|
|
3894
|
+
const h = e, { l1ip: t } = h, i = Et(h, ["l1ip"]);
|
|
3894
3895
|
let s = this.packageCreater.createPublishPackage();
|
|
3895
3896
|
s.data.users = [], s.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
|
|
3896
3897
|
const { tracks: n, resume: o } = i;
|
|
3897
|
-
let c = "7.1.
|
|
3898
|
+
let c = "7.1.3-beta.1";
|
|
3898
3899
|
c && (c = c.split("-")[0]), n.forEach((l) => {
|
|
3899
3900
|
const { codec: d, ssrc: b } = l;
|
|
3900
3901
|
l.userdata = JSON.stringify({ sdk_version: c, codec: d }), l.ssrc = `${b}`, o && (l.attr = { reason: "reconnect" });
|
|
@@ -3906,7 +3907,7 @@ const st = class st extends He {
|
|
|
3906
3907
|
}
|
|
3907
3908
|
refreshUrl(e) {
|
|
3908
3909
|
const t = this.packageCreater.createRefreshUrlPackage();
|
|
3909
|
-
t.data =
|
|
3910
|
+
t.data = $(ut($({}, t.data), { sessionid: t.header.sessionid }), e), this.sendPackage(t);
|
|
3910
3911
|
}
|
|
3911
3912
|
refreshAuthInfo(e) {
|
|
3912
3913
|
this.authInfo = e, this.packageCreater.refreshAuthInfo(e);
|
|
@@ -3915,7 +3916,7 @@ const st = class st extends He {
|
|
|
3915
3916
|
V.info(`[${st.logName}] close`), this.stopKeepAlive(), this.wsClient.off("onOpen", this.onOpen.bind(this)), this.wsClient.off("onMessage", this.onMessage.bind(this)), this.wsClient.off("onError", this.onError.bind(this)), this.wsClient.off("onClose", this.onClose.bind(this)), this.wsClient.off("onConnectFail", this.onConnectFail.bind(this)), this.wsClient.off("onAuthInvalid", this.onAuthInvalid.bind(this)), this.wsClient.off("onReconnectStart"), this.wsClient.off("onReconnectFail"), this.wsClient.close();
|
|
3916
3917
|
}
|
|
3917
3918
|
sendPackage(e) {
|
|
3918
|
-
[
|
|
3919
|
+
[Le.KEEPALIVE, Le.RECONNECT, Le.JOINCHANNEL].includes(e.msgtype) || this.packageCache.set(e.tid, e), this.wsClient.send(e), e.msgtype !== Le.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!0, e.msgtype, e.tid, e);
|
|
3919
3920
|
}
|
|
3920
3921
|
updateReconnectData(e) {
|
|
3921
3922
|
this.reconnectData = e;
|
|
@@ -3923,7 +3924,7 @@ const st = class st extends He {
|
|
|
3923
3924
|
onOpen() {
|
|
3924
3925
|
if (V.info(`[${st.logName}] onOpen`), this.isFirstConnect) {
|
|
3925
3926
|
let e = this.packageCreater.createJoinPackage(this.joinChannelExtraData);
|
|
3926
|
-
e.data.configure = { channelprofile: this.channelProfile }, this.channelProfile !==
|
|
3927
|
+
e.data.configure = { channelprofile: this.channelProfile }, this.channelProfile !== kt.AliRtcSdkInteractiveLive && this.channelProfile !== kt.AliRtcSdkInteractiveWithLowLatencyLive || (e.data.configure.clientrole = this.clientRole), this.sendPackage(e);
|
|
3927
3928
|
} else {
|
|
3928
3929
|
this.stopKeepAlive();
|
|
3929
3930
|
const e = this.packageCreater.createReconnectPackage(this.reconnectData);
|
|
@@ -3933,7 +3934,7 @@ const st = class st extends He {
|
|
|
3933
3934
|
onMessage(e) {
|
|
3934
3935
|
try {
|
|
3935
3936
|
let t = JSON.parse(e.data);
|
|
3936
|
-
this.packageCache.delete(t.tid), this.onRecvMessage(t), t != null && t.msgtype && (t == null ? void 0 : t.msgtype) !==
|
|
3937
|
+
this.packageCache.delete(t.tid), this.onRecvMessage(t), t != null && t.msgtype && (t == null ? void 0 : t.msgtype) !== Le.KEEPALIVE && this.slsReporter.reportRoomServerEvent(!1, t.msgtype, t.tid, t);
|
|
3937
3938
|
} catch (t) {
|
|
3938
3939
|
V.warn(`[${st.logName}] onMessage err`, t, e);
|
|
3939
3940
|
}
|
|
@@ -3972,44 +3973,44 @@ const st = class st extends He {
|
|
|
3972
3973
|
}, 3e4);
|
|
3973
3974
|
}
|
|
3974
3975
|
onRecvMessage(e) {
|
|
3975
|
-
switch (e.msgtype !==
|
|
3976
|
-
case
|
|
3976
|
+
switch (e.msgtype !== Le.KEEPALIVE && V.info(`[${st.logName}] recv msg: ${e.msgtype}`), e.msgtype) {
|
|
3977
|
+
case Le.JOINCHANNEL:
|
|
3977
3978
|
this.onJoinResult(e);
|
|
3978
3979
|
break;
|
|
3979
|
-
case
|
|
3980
|
+
case Le.KEEPALIVE:
|
|
3980
3981
|
this.onKeepAliveRsp();
|
|
3981
3982
|
break;
|
|
3982
|
-
case
|
|
3983
|
+
case Le.PUBLISH:
|
|
3983
3984
|
this.onPublishResult(e);
|
|
3984
3985
|
break;
|
|
3985
|
-
case
|
|
3986
|
+
case Le.NOTIFYJOIN:
|
|
3986
3987
|
this.onNotifyJoin(e);
|
|
3987
3988
|
break;
|
|
3988
|
-
case
|
|
3989
|
+
case Le.NOTIFYSTATUS:
|
|
3989
3990
|
this.onNotifyStatus(e);
|
|
3990
3991
|
break;
|
|
3991
|
-
case
|
|
3992
|
+
case Le.LEAVECHANNEL:
|
|
3992
3993
|
this.onLeaveResult(e);
|
|
3993
3994
|
break;
|
|
3994
|
-
case
|
|
3995
|
+
case Le.NOTIFYLEAVE:
|
|
3995
3996
|
this.onNotifyLeave(e);
|
|
3996
3997
|
break;
|
|
3997
|
-
case
|
|
3998
|
+
case Le.NOTIFYPUBLISH:
|
|
3998
3999
|
this.onNotifyPublish(e);
|
|
3999
4000
|
break;
|
|
4000
|
-
case
|
|
4001
|
+
case Le.STATUSREPORT:
|
|
4001
4002
|
this.onStatusReport(e);
|
|
4002
4003
|
break;
|
|
4003
|
-
case
|
|
4004
|
+
case Le.BYE:
|
|
4004
4005
|
this.onBye(e);
|
|
4005
4006
|
break;
|
|
4006
|
-
case
|
|
4007
|
+
case Le.ROLEUPDATE:
|
|
4007
4008
|
this.onRoleUpdateResult(e);
|
|
4008
4009
|
break;
|
|
4009
|
-
case
|
|
4010
|
+
case Le.REFRESHURL:
|
|
4010
4011
|
this.onRefreshUrlResult(e);
|
|
4011
4012
|
break;
|
|
4012
|
-
case
|
|
4013
|
+
case Le.RECONNECT:
|
|
4013
4014
|
this.onReconnectResult(e);
|
|
4014
4015
|
break;
|
|
4015
4016
|
default:
|
|
@@ -4105,8 +4106,8 @@ const T = (r, a) => (e, t, i) => {
|
|
|
4105
4106
|
}), l;
|
|
4106
4107
|
}, i;
|
|
4107
4108
|
}, U = (r) => r;
|
|
4108
|
-
var Yo = Object.defineProperty,
|
|
4109
|
-
for (var i, s = t > 1 ? void 0 : t ?
|
|
4109
|
+
var Yo = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, ar = (r, a, e, t) => {
|
|
4110
|
+
for (var i, s = t > 1 ? void 0 : t ? Qo(a, e) : a, n = r.length - 1; n >= 0; n--)
|
|
4110
4111
|
(i = r[n]) && (s = (t ? i(a, e, s) : i(s)) || s);
|
|
4111
4112
|
return t && s && Yo(a, e, s), s;
|
|
4112
4113
|
}, qe;
|
|
@@ -4163,7 +4164,7 @@ const Ii = (qe = class extends He {
|
|
|
4163
4164
|
return new Promise((t, i) => {
|
|
4164
4165
|
var s;
|
|
4165
4166
|
this.messageCenter ? (this.messageCenter.once("onPublishResult", (n, o, c) => {
|
|
4166
|
-
V.info(`[${qe.logName}]`, "recv pubish response " + n), n === 200 ? (this.updateReconnectData(
|
|
4167
|
+
V.info(`[${qe.logName}]`, "recv pubish response " + n), n === 200 ? (this.updateReconnectData(ut($({}, this.reconnectData), { publish: { users: [e] } })), t({ tid: o })) : i(this.handleSignalError(n, `publish error, ${c}`));
|
|
4167
4168
|
}), this.authInfo && (e.sessionid = (s = this.authInfo.sessionId) != null ? s : ""), e.callid || (e.callid = dt()), V.info(`[${qe.logName}]`, "assign callid " + e.callid + " and send publish request"), this.messageCenter.publish(e)) : i(this.handleSignalError(-1, "publish error, no message center"));
|
|
4168
4169
|
});
|
|
4169
4170
|
}
|
|
@@ -4234,7 +4235,7 @@ const Ii = (qe = class extends He {
|
|
|
4234
4235
|
}
|
|
4235
4236
|
}, g(qe, "logName", "RoomServerSignaling"), qe);
|
|
4236
4237
|
ar([T()], Ii.prototype, "join", 1), ar([T()], Ii.prototype, "publish", 1), ar([T()], Ii.prototype, "roleUpdate", 1);
|
|
4237
|
-
let
|
|
4238
|
+
let Zo = Ii;
|
|
4238
4239
|
const ec = 6e5, li = class li extends He {
|
|
4239
4240
|
constructor(e, t) {
|
|
4240
4241
|
super();
|
|
@@ -4281,7 +4282,7 @@ const ec = 6e5, li = class li extends He {
|
|
|
4281
4282
|
g(li, "logName", "StsManager");
|
|
4282
4283
|
let br = li;
|
|
4283
4284
|
var tc = Object.defineProperty, ic = Object.getOwnPropertyDescriptor;
|
|
4284
|
-
class
|
|
4285
|
+
class Nr extends He {
|
|
4285
4286
|
constructor(e, t, i, s = _t.prod) {
|
|
4286
4287
|
super();
|
|
4287
4288
|
g(this, "signaling");
|
|
@@ -4301,7 +4302,7 @@ class Lr extends He {
|
|
|
4301
4302
|
}
|
|
4302
4303
|
join(e, t = e.userId, i, s, n) {
|
|
4303
4304
|
return this.maxConnectRetryCount = i, this.userName = t, new Promise((o, c) => {
|
|
4304
|
-
this.signaling ? c(new O(B.ERR_JOIN_ALREADY_JOINED, "already joined")) : (V.info("[signalingmanager] create signaling"), this.signaling = new
|
|
4305
|
+
this.signaling ? c(new O(B.ERR_JOIN_ALREADY_JOINED, "already joined")) : (V.info("[signalingmanager] create signaling"), this.signaling = new Zo(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i, n).then((h) => {
|
|
4305
4306
|
this.authInfo = e, s && (s.re = Date.now()), o(h);
|
|
4306
4307
|
}).catch((h) => {
|
|
4307
4308
|
this.reset(), c(h);
|
|
@@ -4364,7 +4365,7 @@ class Lr extends He {
|
|
|
4364
4365
|
return I(this, null, function* () {
|
|
4365
4366
|
var t;
|
|
4366
4367
|
try {
|
|
4367
|
-
this.authInfo && (this.authInfo =
|
|
4368
|
+
this.authInfo && (this.authInfo = $($({}, this.authInfo), e), (t = this.signaling) == null || t.refreshAuthInfo(this.authInfo), this.stsManager.refreshAuthInfo(this.authInfo));
|
|
4368
4369
|
} catch (i) {
|
|
4369
4370
|
throw i;
|
|
4370
4371
|
}
|
|
@@ -4416,25 +4417,25 @@ class Lr extends He {
|
|
|
4416
4417
|
this.emit("onUnknownMessage", e);
|
|
4417
4418
|
}
|
|
4418
4419
|
}
|
|
4419
|
-
g(
|
|
4420
|
+
g(Nr, "logName", "SignalingManager");
|
|
4420
4421
|
function ti() {
|
|
4421
4422
|
}
|
|
4422
4423
|
((r, a, e, t) => {
|
|
4423
4424
|
for (var i, s = t > 1 ? void 0 : t ? ic(a, e) : a, n = r.length - 1; n >= 0; n--)
|
|
4424
4425
|
(i = r[n]) && (s = (t ? i(a, e, s) : i(s)) || s);
|
|
4425
4426
|
t && s && tc(a, e, s);
|
|
4426
|
-
})([T(U)],
|
|
4427
|
-
const
|
|
4427
|
+
})([T(U)], Nr.prototype, "publish", 1);
|
|
4428
|
+
const zt = class zt {
|
|
4428
4429
|
static getInstance() {
|
|
4429
4430
|
var a;
|
|
4430
|
-
return
|
|
4431
|
+
return zt.instance || (zt.instance = new AudioContext()), (a = zt.instance.resume()) == null || a.then(ti, ti).catch(ti), zt.instance;
|
|
4431
4432
|
}
|
|
4432
4433
|
};
|
|
4433
|
-
g(
|
|
4434
|
-
let
|
|
4434
|
+
g(zt, "instance");
|
|
4435
|
+
let Kt = zt;
|
|
4435
4436
|
const Mi = () => {
|
|
4436
4437
|
var a;
|
|
4437
|
-
const r =
|
|
4438
|
+
const r = Kt.getInstance();
|
|
4438
4439
|
r.state !== "running" && r.state !== "closed" && ((a = r.resume()) == null || a.then(ti, ti).catch(ti)), window.removeEventListener("mousedown", Mi), window.removeEventListener("touchstart", Mi);
|
|
4439
4440
|
};
|
|
4440
4441
|
window.addEventListener("mousedown", Mi), window.addEventListener("touchstart", Mi);
|
|
@@ -4445,7 +4446,7 @@ class rc extends He {
|
|
|
4445
4446
|
g(this, "stream");
|
|
4446
4447
|
g(this, "sourceNode");
|
|
4447
4448
|
g(this, "analyser");
|
|
4448
|
-
this.audioContext =
|
|
4449
|
+
this.audioContext = Kt.getInstance(), this.stream = new MediaStream();
|
|
4449
4450
|
}
|
|
4450
4451
|
getLevel() {
|
|
4451
4452
|
return this.analyser ? this.analyser.getLevel() : 0;
|
|
@@ -4464,7 +4465,7 @@ class rc extends He {
|
|
|
4464
4465
|
}, m = () => {
|
|
4465
4466
|
s.state === "suspended" && s.resume(), l = window.setInterval(() => {
|
|
4466
4467
|
u.getByteFrequencyData(f);
|
|
4467
|
-
let S = Math.round(f.reduce((
|
|
4468
|
+
let S = Math.round(f.reduce((R, _) => R + _) / f.length);
|
|
4468
4469
|
S = Math.min(100, S), b = S, h && h(S);
|
|
4469
4470
|
}, d);
|
|
4470
4471
|
};
|
|
@@ -4572,7 +4573,7 @@ function yr(r) {
|
|
|
4572
4573
|
}
|
|
4573
4574
|
return a;
|
|
4574
4575
|
}
|
|
4575
|
-
function
|
|
4576
|
+
function Pt(r) {
|
|
4576
4577
|
return new Promise((a) => setTimeout(a, r));
|
|
4577
4578
|
}
|
|
4578
4579
|
function Ba(r, a, e = 1e3, t = (i) => !0) {
|
|
@@ -4613,7 +4614,7 @@ function Yt(r, a) {
|
|
|
4613
4614
|
}
|
|
4614
4615
|
}
|
|
4615
4616
|
const gn = (r, a, e = !1) => {
|
|
4616
|
-
const t = () => (r.muted = !0, Promise.race([
|
|
4617
|
+
const t = () => (r.muted = !0, Promise.race([Pt(500), r._playPromise || Promise.resolve()]).catch(() => {
|
|
4617
4618
|
}).then(() => {
|
|
4618
4619
|
let i;
|
|
4619
4620
|
return e && r.srcObject === a ? i = Promise.resolve() : (r.load(), r.srcObject = a, i = r.play(), r._playPromise = i), i;
|
|
@@ -4635,8 +4636,8 @@ const gn = (r, a, e = !1) => {
|
|
|
4635
4636
|
i(t());
|
|
4636
4637
|
}, 0);
|
|
4637
4638
|
});
|
|
4638
|
-
},
|
|
4639
|
-
Promise.race([
|
|
4639
|
+
}, ft = (r) => {
|
|
4640
|
+
Promise.race([Pt(100), r._playPromise || Promise.resolve()]).catch(() => {
|
|
4640
4641
|
}).then(() => {
|
|
4641
4642
|
r.srcObject = null, r._playPromise = void 0;
|
|
4642
4643
|
});
|
|
@@ -4771,7 +4772,7 @@ const or = (r) => {
|
|
|
4771
4772
|
return t;
|
|
4772
4773
|
};
|
|
4773
4774
|
let Ha = 0;
|
|
4774
|
-
class
|
|
4775
|
+
class $t {
|
|
4775
4776
|
constructor(a, e = 0, t = 0, i = 0) {
|
|
4776
4777
|
g(this, "data");
|
|
4777
4778
|
g(this, "networkTime");
|
|
@@ -4793,7 +4794,7 @@ class Kt {
|
|
|
4793
4794
|
if (!e)
|
|
4794
4795
|
return;
|
|
4795
4796
|
const t = _i.parse(e), i = t[2], s = t[3], n = t[4], o = t[5];
|
|
4796
|
-
return o.byteLength !== 0 ? new
|
|
4797
|
+
return o.byteLength !== 0 ? new $t(o, or(i), or(n), or(s)) : void 0;
|
|
4797
4798
|
}
|
|
4798
4799
|
}
|
|
4799
4800
|
var ac = Object.defineProperty, nc = Object.getOwnPropertyDescriptor, Ce = (r, a, e, t) => {
|
|
@@ -4806,7 +4807,7 @@ class si extends He {
|
|
|
4806
4807
|
super();
|
|
4807
4808
|
g(this, "_state");
|
|
4808
4809
|
g(this, "time");
|
|
4809
|
-
this._state =
|
|
4810
|
+
this._state = Z.AliRtcStatePublishIdle, this.time = Date.now();
|
|
4810
4811
|
}
|
|
4811
4812
|
get state() {
|
|
4812
4813
|
return this._state;
|
|
@@ -4816,8 +4817,8 @@ class si extends He {
|
|
|
4816
4817
|
this._state = e, this.time = Date.now(), this.emit("change", t, e, Math.floor((this.time - i) / 1e3));
|
|
4817
4818
|
}
|
|
4818
4819
|
}
|
|
4819
|
-
var
|
|
4820
|
-
const Te = (
|
|
4820
|
+
var St;
|
|
4821
|
+
const Te = (St = class extends dn {
|
|
4821
4822
|
constructor(e) {
|
|
4822
4823
|
const { rtsManager: t, localStreamManager: i, slsReporter: s, signalingManager: n, audioVolumeIndicationInterval: o, parameter: c } = e;
|
|
4823
4824
|
super("", "", t, o);
|
|
@@ -5008,11 +5009,11 @@ const Te = (ft = class extends dn {
|
|
|
5008
5009
|
}
|
|
5009
5010
|
clear() {
|
|
5010
5011
|
return I(this, null, function* () {
|
|
5011
|
-
Bi(
|
|
5012
|
+
Bi(St.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
|
|
5012
5013
|
});
|
|
5013
5014
|
}
|
|
5014
5015
|
resetElement(e) {
|
|
5015
|
-
this.previewElements.includes(e) && (
|
|
5016
|
+
this.previewElements.includes(e) && (ft(e), this.previewElements.splice(this.previewElements.indexOf(e), 1)), this.screenPreviewElements.includes(e) && (ft(e), this.screenPreviewElements.splice(this.screenPreviewElements.indexOf(e), 1));
|
|
5016
5017
|
}
|
|
5017
5018
|
setPreviewElement(e) {
|
|
5018
5019
|
const { videoElement: t, screen: i } = e;
|
|
@@ -5081,7 +5082,7 @@ const Te = (ft = class extends dn {
|
|
|
5081
5082
|
let s = i ? this.streamManager.screenStreamInfo.previewStream : this.streamManager.cameraStreamInfo.previewStream;
|
|
5082
5083
|
if (!t)
|
|
5083
5084
|
throw new O(B.ERR_INVALID_ARGUMENTS, "no video element found", { videoElement: t });
|
|
5084
|
-
return s ? (gn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream) : void V.info(`[${
|
|
5085
|
+
return s ? (gn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream) : void V.info(`[${St.logName}]`, "preview no stream founded");
|
|
5085
5086
|
} catch (s) {
|
|
5086
5087
|
const n = B.ERR_INNER;
|
|
5087
5088
|
throw O.fromError(s, n, "preview failed");
|
|
@@ -5108,16 +5109,16 @@ const Te = (ft = class extends dn {
|
|
|
5108
5109
|
if (t) {
|
|
5109
5110
|
const n = this.previewElements.findIndex((o) => o === t);
|
|
5110
5111
|
if (n >= 0)
|
|
5111
|
-
this.previewElements.splice(n, 1),
|
|
5112
|
+
this.previewElements.splice(n, 1), ft(t);
|
|
5112
5113
|
else {
|
|
5113
5114
|
const o = this.screenPreviewElements.findIndex((c) => c === t);
|
|
5114
|
-
o >= 0 && (this.screenPreviewElements.splice(o, 1),
|
|
5115
|
+
o >= 0 && (this.screenPreviewElements.splice(o, 1), ft(t));
|
|
5115
5116
|
}
|
|
5116
5117
|
} else
|
|
5117
5118
|
i && (this.previewElements.forEach((n) => {
|
|
5118
|
-
|
|
5119
|
+
ft(n);
|
|
5119
5120
|
}), this.previewElements = []), s && (this.screenPreviewElements.forEach((n) => {
|
|
5120
|
-
|
|
5121
|
+
ft(n);
|
|
5121
5122
|
}), this.screenPreviewElements = []);
|
|
5122
5123
|
}
|
|
5123
5124
|
resumePublish() {
|
|
@@ -5131,12 +5132,12 @@ const Te = (ft = class extends dn {
|
|
|
5131
5132
|
if (e.video)
|
|
5132
5133
|
for (let i = 0; i < this.previewElements.length; i++) {
|
|
5133
5134
|
const s = this.previewElements[i];
|
|
5134
|
-
|
|
5135
|
+
ft(s);
|
|
5135
5136
|
}
|
|
5136
5137
|
else if (e.screen)
|
|
5137
5138
|
for (let i = 0; i < this.screenPreviewElements.length; i++) {
|
|
5138
5139
|
const s = this.screenPreviewElements[i];
|
|
5139
|
-
|
|
5140
|
+
ft(s);
|
|
5140
5141
|
}
|
|
5141
5142
|
const t = yield this.streamManager.createLocalStream(e);
|
|
5142
5143
|
return t != null && t.audioTrack && this.audioVolumeIndicationInterval > 0 && this.audioLevelMonitor.start(t.audioTrack, this.audioVolumeIndicationInterval), e.video ? this.previewAll({ primary: !0 }) : e.screen && this.previewAll({ screen: !0 }), t;
|
|
@@ -5184,19 +5185,19 @@ const Te = (ft = class extends dn {
|
|
|
5184
5185
|
}
|
|
5185
5186
|
publishDataChannel() {
|
|
5186
5187
|
return I(this, null, function* () {
|
|
5187
|
-
if (this.dataPubState.state !==
|
|
5188
|
-
this.dataPubState.setState(
|
|
5188
|
+
if (this.dataPubState.state !== Z.AliRtcStatePublishing) {
|
|
5189
|
+
this.dataPubState.setState(Z.AliRtcStatePublishing);
|
|
5189
5190
|
try {
|
|
5190
5191
|
const e = yield this.rtsManager.publishAddDataChannel(this.url);
|
|
5191
|
-
e ? (this.updateDataChannel(e), this.dataPubState.setState(
|
|
5192
|
+
e ? (this.updateDataChannel(e), this.dataPubState.setState(Z.AliRtcStatePublished)) : (this.dataPubState.setState(Z.AliRtcStateNoPublish), this.emit("publishDataError", new O(B.ERR_INNER, "publishDataError")));
|
|
5192
5193
|
} catch (e) {
|
|
5193
|
-
V.error("[LocalUser]", "publishDataChannel error", e), this.dataPubState.setState(
|
|
5194
|
+
V.error("[LocalUser]", "publishDataChannel error", e), this.dataPubState.setState(Z.AliRtcStateNoPublish);
|
|
5194
5195
|
}
|
|
5195
5196
|
}
|
|
5196
5197
|
});
|
|
5197
5198
|
}
|
|
5198
5199
|
startPublish() {
|
|
5199
|
-
return I(this, arguments, function* (e = !1, t =
|
|
5200
|
+
return I(this, arguments, function* (e = !1, t = bt.MANUAL) {
|
|
5200
5201
|
var h;
|
|
5201
5202
|
if (!this.joined)
|
|
5202
5203
|
return;
|
|
@@ -5206,18 +5207,18 @@ const Te = (ft = class extends dn {
|
|
|
5206
5207
|
this.createCallId();
|
|
5207
5208
|
try {
|
|
5208
5209
|
const l = (/* @__PURE__ */ new Date()).getTime();
|
|
5209
|
-
s && this.audioPubState.setState(
|
|
5210
|
+
s && this.audioPubState.setState(Z.AliRtcStatePublishing), n && this.videoPubState.setState(Z.AliRtcStatePublishing), o && this.videoSmallPubState.setState(Z.AliRtcStatePublishing), c && this.screenPubState.setState(Z.AliRtcStatePublishing), this.publishPromise = this.rtsManager.publish(this.url, this.callId, e, t);
|
|
5210
5211
|
const { traceId: d, l1ip: b } = yield this.publishPromise;
|
|
5211
5212
|
this.streamTracks = this.rtsManager.publishingTracks, this.traceId = d;
|
|
5212
|
-
const u = { type:
|
|
5213
|
+
const u = { type: It.Add, userid: this.userId, sessionid: "", displayname: this.name, pubid: this.publishId, resume: e, subscribe: { signal: "", pullstreamurl: this.url }, l1ip: this.parameter.reportL1IP ? b : void 0, callid: this.callId, tracks: this.streamTracks, traceid: d };
|
|
5213
5214
|
(h = this.parameter.data) != null && h.enablePubDataChannel && this.publishDataChannel().then(() => {
|
|
5214
5215
|
this.syncPublishToRoomServer(u, i, l);
|
|
5215
|
-
}), s && (this.trackTraceIdMap[k.Audio] = d, this.reportAudioProfile()), o && (this.trackTraceIdMap[k.VideoSmall] = d), n && (this.trackTraceIdMap[k.VideoLarge] = d, this.reportVideoProfile()), c && (this.trackTraceIdMap[k.Screen] = d, this.reportScreenProfile()), yield this.syncPublishToRoomServer(u, i, l), s && this.audioPubState.setState(
|
|
5216
|
+
}), s && (this.trackTraceIdMap[k.Audio] = d, this.reportAudioProfile()), o && (this.trackTraceIdMap[k.VideoSmall] = d), n && (this.trackTraceIdMap[k.VideoLarge] = d, this.reportVideoProfile()), c && (this.trackTraceIdMap[k.Screen] = d, this.reportScreenProfile()), yield this.syncPublishToRoomServer(u, i, l), s && this.audioPubState.setState(Z.AliRtcStatePublished), n && this.videoPubState.setState(Z.AliRtcStatePublished), o && this.videoSmallPubState.setState(Z.AliRtcStatePublished), c && this.screenPubState.setState(Z.AliRtcStatePublished);
|
|
5216
5217
|
} catch (l) {
|
|
5217
|
-
throw s && this.audioPubState.setState(
|
|
5218
|
+
throw s && this.audioPubState.setState(Z.AliRtcStateNoPublish), n && this.videoPubState.setState(Z.AliRtcStateNoPublish), o && this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), c && this.screenPubState.setState(Z.AliRtcStateNoPublish), l;
|
|
5218
5219
|
}
|
|
5219
5220
|
} else
|
|
5220
|
-
V.event(`[${
|
|
5221
|
+
V.event(`[${St.logName}]`, "startPublish no stream founded");
|
|
5221
5222
|
});
|
|
5222
5223
|
}
|
|
5223
5224
|
updateStreams() {
|
|
@@ -5228,7 +5229,7 @@ const Te = (ft = class extends dn {
|
|
|
5228
5229
|
publishUpdate(e) {
|
|
5229
5230
|
return I(this, null, function* () {
|
|
5230
5231
|
var n, o, c, h, l, d;
|
|
5231
|
-
if (V.info(`[${
|
|
5232
|
+
if (V.info(`[${St.logName}]`, "publishUpdate", e || "-", this.shouldPublish), !this.shouldPublish)
|
|
5232
5233
|
return;
|
|
5233
5234
|
if (!this.rtsManager.isConnecting && !this.rtsManager.isConnected)
|
|
5234
5235
|
return void (yield this.startPublish());
|
|
@@ -5243,9 +5244,9 @@ const Te = (ft = class extends dn {
|
|
|
5243
5244
|
p && (i = p);
|
|
5244
5245
|
const m = (c = this.streamTracks) == null ? void 0 : c.find(({ ssrc: y, type: v, msid: w }) => v === "video" && y && w === k.VideoSmall), S = yield this.compareAndPublish(m, t.videoSmall, k.VideoSmall);
|
|
5245
5246
|
S && (i = S);
|
|
5246
|
-
const
|
|
5247
|
+
const R = (h = this.streamTracks) == null ? void 0 : h.find(({ ssrc: y, type: v, msid: w }) => v === "video" && y && w === k.Screen), _ = yield this.compareAndPublish(R, t.screen, k.Screen);
|
|
5247
5248
|
if (_ && (i = _), !i) {
|
|
5248
|
-
if (!(e ===
|
|
5249
|
+
if (!(e === bt.RECONNECT && this.rtsManager.publishingTracks.length > 0))
|
|
5249
5250
|
return;
|
|
5250
5251
|
{
|
|
5251
5252
|
if ((l = this.parameter.data) != null && l.enablePubDataChannel) {
|
|
@@ -5253,7 +5254,7 @@ const Te = (ft = class extends dn {
|
|
|
5253
5254
|
this.updateDataChannel(w);
|
|
5254
5255
|
}
|
|
5255
5256
|
const y = this.rtsManager.publishingTracks.find(({ type: w }) => w === "video"), v = this.rtsManager.publishingTracks.find(({ type: w }) => w === "audio");
|
|
5256
|
-
(y || v) && (yield this.rtsManager.waitPublishSender(this.url, !y, y ? y.msid : v == null ? void 0 : v.msid)), i = { type:
|
|
5257
|
+
(y || v) && (yield this.rtsManager.waitPublishSender(this.url, !y, y ? y.msid : v == null ? void 0 : v.msid)), i = { type: It.Add, userid: this.userId, sessionid: "", displayname: this.name, pubid: this.publishId, subscribe: { signal: "", pullstreamurl: this.url }, callid: this.callId, tracks: this.rtsManager.publishingTracks, traceid: this.traceId };
|
|
5257
5258
|
}
|
|
5258
5259
|
}
|
|
5259
5260
|
(d = this.parameter.data) != null && d.enablePubDataChannel && !this.dc && (yield this.publishDataChannel()), yield this.syncPublishToRoomServer(i, t, s);
|
|
@@ -5271,8 +5272,8 @@ const Te = (ft = class extends dn {
|
|
|
5271
5272
|
throw new O(B.ERR_INNER, "sync publish to room server failed because no publishInfo");
|
|
5272
5273
|
let s = e;
|
|
5273
5274
|
if (this.dc) {
|
|
5274
|
-
const o = e, { tracks: h } = o, l =
|
|
5275
|
-
s =
|
|
5275
|
+
const o = e, { tracks: h } = o, l = Et(o, ["tracks"]);
|
|
5276
|
+
s = ut($({}, l), { tracks: [...h, { type: "data", msid: k.Data, ssrc: `${((c = this.callId) == null ? void 0 : c.length) > 8 ? this.callId.substring(0, 8) : "web"}${this.dc.datachannel.id || "0"}`, codec: "text" }] });
|
|
5276
5277
|
}
|
|
5277
5278
|
const n = yield this.signalingManager.publish(s);
|
|
5278
5279
|
e.signaltid = n.tid;
|
|
@@ -5293,15 +5294,15 @@ const Te = (ft = class extends dn {
|
|
|
5293
5294
|
return I(this, null, function* () {
|
|
5294
5295
|
this.createCallId();
|
|
5295
5296
|
const n = (t == null ? void 0 : t.aMsid) === k.Audio, o = (t == null ? void 0 : t.vMsid) === k.VideoLarge, c = (t == null ? void 0 : t.vMsid) === k.VideoSmall, h = (t == null ? void 0 : t.vMsid) === k.Screen;
|
|
5296
|
-
n && this.audioPubState.setState(
|
|
5297
|
+
n && this.audioPubState.setState(Z.AliRtcStatePublishing), o && this.videoPubState.setState(Z.AliRtcStatePublishing), c && this.videoSmallPubState.setState(Z.AliRtcStatePublishing), h && this.screenPubState.setState(Z.AliRtcStatePublishing);
|
|
5297
5298
|
try {
|
|
5298
5299
|
const l = yield this.rtsManager.publishAdd(this.url, e, this.callId, t, !1, !0);
|
|
5299
|
-
n && (this.audioPubState.setState(
|
|
5300
|
-
const d = { type:
|
|
5300
|
+
n && (this.audioPubState.setState(Z.AliRtcStatePublished), this.reportAudioProfile(), this.trackTraceIdMap[k.Audio] = l), o && (this.videoPubState.setState(Z.AliRtcStatePublished), this.reportVideoProfile(), this.trackTraceIdMap[k.VideoLarge] = l), c && (this.videoSmallPubState.setState(Z.AliRtcStatePublished), this.trackTraceIdMap[k.VideoSmall] = l), h && (this.screenPubState.setState(Z.AliRtcStatePublished), this.reportScreenProfile(), this.trackTraceIdMap[k.Screen] = l), this.streamTracks = this.rtsManager.publishingTracks;
|
|
5301
|
+
const d = { type: It.Add, userid: this.userId, sessionid: "", displayname: this.name, pubid: this.publishId, resume: i, subscribe: { signal: "", pullstreamurl: this.url }, callid: this.callId, tracks: this.streamTracks, traceid: l };
|
|
5301
5302
|
return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), d;
|
|
5302
5303
|
} catch (l) {
|
|
5303
5304
|
let d = B.ERR_SDK_PUBLISH_INVAILD;
|
|
5304
|
-
if (n && (this.audioPubState.setState(
|
|
5305
|
+
if (n && (this.audioPubState.setState(Z.AliRtcStateNoPublish), d = B.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), o && (this.videoPubState.setState(Z.AliRtcStateNoPublish), d = B.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), c && (this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), d = B.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), h && (this.screenPubState.setState(Z.AliRtcStateNoPublish), d = B.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), l.errorCode === 15006 && s < 3)
|
|
5305
5306
|
return this.publishAdd(e, t, i, s + 1);
|
|
5306
5307
|
throw O.fromError(l, d, "publish add failed");
|
|
5307
5308
|
}
|
|
@@ -5313,7 +5314,7 @@ const Te = (ft = class extends dn {
|
|
|
5313
5314
|
yield this.rtsManager.publishReplace(this.url, e, t), this.streamTracks = this.rtsManager.publishingTracks;
|
|
5314
5315
|
const i = (t == null ? void 0 : t.vMsid) === k.VideoLarge, s = (t == null ? void 0 : t.vMsid) === k.Screen;
|
|
5315
5316
|
i && this.streamManager.setVideoProfile(void 0, void 0, !0), s && this.streamManager.setScreenProfile(void 0, void 0);
|
|
5316
|
-
const n = { type:
|
|
5317
|
+
const n = { type: It.Replace, userid: this.userId, sessionid: "", pubid: this.publishId, displayname: this.name, subscribe: { signal: "", pullstreamurl: this.url }, callid: this.callId, tracks: this.streamTracks };
|
|
5317
5318
|
return this.reportSelfDeviceStatus(), n;
|
|
5318
5319
|
} catch (i) {
|
|
5319
5320
|
throw O.fromError(i, B.ERR_INNER, `publish replace failed, vMsid: ${t == null ? void 0 : t.vMsid} aMsid: ${t == null ? void 0 : t.aMsid}`);
|
|
@@ -5322,9 +5323,9 @@ const Te = (ft = class extends dn {
|
|
|
5322
5323
|
}
|
|
5323
5324
|
publishDeleteTracks(e) {
|
|
5324
5325
|
return I(this, null, function* () {
|
|
5325
|
-
const t = { type:
|
|
5326
|
+
const t = { type: It.Delete, userid: this.userId, sessionid: "", displayname: this.displayname, callid: this.callId, pubid: this.publishId, subscribe: { signal: "", pullstreamurl: this.url }, tracks: [] };
|
|
5326
5327
|
try {
|
|
5327
|
-
return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(
|
|
5328
|
+
return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(Z.AliRtcStateNoPublish), e.video && (e.vMsid === k.VideoSmall ? this.videoSmallPubState.setState(Z.AliRtcStateNoPublish) : this.videoPubState.setState(Z.AliRtcStateNoPublish)), e.screen && this.screenPubState.setState(Z.AliRtcStateNoPublish), t.tracks = this.streamTracks, this.reportSelfDeviceStatus(), t;
|
|
5328
5329
|
} catch (i) {
|
|
5329
5330
|
throw O.fromError(i, B.ERR_INNER, "publish delete tracks failed");
|
|
5330
5331
|
}
|
|
@@ -5332,14 +5333,14 @@ const Te = (ft = class extends dn {
|
|
|
5332
5333
|
}
|
|
5333
5334
|
publishStop() {
|
|
5334
5335
|
return I(this, null, function* () {
|
|
5335
|
-
V.info(`[${
|
|
5336
|
+
V.info(`[${St.logName}]`, "publishStop", { url: this.url });
|
|
5336
5337
|
const e = (/* @__PURE__ */ new Date()).getTime();
|
|
5337
5338
|
try {
|
|
5338
5339
|
const t = this.hasAudioTrackInMS, i = this.hasCameraTrackInMS, s = this.hasCameraDualTrackInMS, n = this.hasScreenTrackInMS;
|
|
5339
|
-
yield this.rtsManager.publishStop(this.url), t && this.audioPubState.setState(
|
|
5340
|
+
yield this.rtsManager.publishStop(this.url), t && this.audioPubState.setState(Z.AliRtcStateNoPublish), i && this.videoPubState.setState(Z.AliRtcStateNoPublish), s && this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), n && this.screenPubState.setState(Z.AliRtcStateNoPublish), this.traceId = "", Object.keys(this.monitorDataCache).forEach((c) => {
|
|
5340
5341
|
this.reportPublishMonitor(c);
|
|
5341
5342
|
}), this.streamTracks = [];
|
|
5342
|
-
const o = { type:
|
|
5343
|
+
const o = { type: It.Stop, userid: this.userId, sessionid: "", displayname: this.displayname, callid: this.callId, pubid: this.publishId, subscribe: { signal: "", pullstreamurl: this.url }, tracks: [] };
|
|
5343
5344
|
return this.syncPublishToRoomServer(o, {}, e), o;
|
|
5344
5345
|
} catch (t) {
|
|
5345
5346
|
throw O.fromError(t, B.ERR_INNER, "publish stop failed");
|
|
@@ -5350,20 +5351,20 @@ const Te = (ft = class extends dn {
|
|
|
5350
5351
|
return I(this, null, function* () {
|
|
5351
5352
|
this.shouldPublish = !1;
|
|
5352
5353
|
const e = (/* @__PURE__ */ new Date()).getTime();
|
|
5353
|
-
let t = { type:
|
|
5354
|
+
let t = { type: It.UnPublish, userid: this.userId, sessionid: "", displayname: this.displayname, callid: this.callId, pubid: this.publishId, subscribe: { signal: "", pullstreamurl: this.url }, tracks: [] };
|
|
5354
5355
|
try {
|
|
5355
5356
|
if (this.isPublishing) {
|
|
5356
5357
|
const i = this.hasAudioTrackInMS, s = this.hasCameraTrackInMS, n = this.hasCameraDualTrackInMS, o = this.hasScreenTrackInMS;
|
|
5357
|
-
yield this.rtsManager.unpublish(), this.streamTracks = [], this.stopStreamMonitor(), i && this.audioPubState.setState(
|
|
5358
|
+
yield this.rtsManager.unpublish(), this.streamTracks = [], this.stopStreamMonitor(), i && this.audioPubState.setState(Z.AliRtcStateNoPublish), s && this.videoPubState.setState(Z.AliRtcStateNoPublish), n && this.videoSmallPubState.setState(Z.AliRtcStateNoPublish), o && this.screenPubState.setState(Z.AliRtcStateNoPublish), this.traceId = "", this.clearStream();
|
|
5358
5359
|
}
|
|
5359
|
-
return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(
|
|
5360
|
+
return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(Z.AliRtcStateNoPublish), this.dc = void 0), this.slsReporter.reportUnpublish(this.callId || "", e, 0, ""), t;
|
|
5360
5361
|
} catch (i) {
|
|
5361
5362
|
throw O.fromError(i, B.ERR_INNER, "unpublish failed");
|
|
5362
5363
|
}
|
|
5363
5364
|
});
|
|
5364
5365
|
}
|
|
5365
5366
|
reportSelfDeviceStatus() {
|
|
5366
|
-
this.emit(
|
|
5367
|
+
this.emit(Qe.Local, this.getDeviceStatus());
|
|
5367
5368
|
}
|
|
5368
5369
|
getDeviceStatus() {
|
|
5369
5370
|
var t, i, s, n;
|
|
@@ -5406,7 +5407,7 @@ const Te = (ft = class extends dn {
|
|
|
5406
5407
|
h.type === "media-source" || h.type === "media-playout" ? h.id && (this.pcMediaStatsMap[h.id] = h) : h.type === "candidate-pair" && h.state === "succeeded" && (n = h);
|
|
5407
5408
|
}), ((e = this.candidateDataCache) == null ? void 0 : e.length) > 0) {
|
|
5408
5409
|
const h = this.candidateDataCache[this.candidateDataCache.length - 1] || {}, t = h, { _last: l } = t;
|
|
5409
|
-
o =
|
|
5410
|
+
o = Et(t, ["_last"]);
|
|
5410
5411
|
}
|
|
5411
5412
|
((i = this.candidateDataCache) == null ? void 0 : i.length) >= 30 && this.reportNetwork(), n && (n._last = o, this.candidateDataCache.push(n));
|
|
5412
5413
|
let c = Object.keys(this.monitorDataCache).filter((h) => {
|
|
@@ -5427,8 +5428,8 @@ const Te = (ft = class extends dn {
|
|
|
5427
5428
|
const f = this.monitorDataCache[l];
|
|
5428
5429
|
let p;
|
|
5429
5430
|
if ((f == null ? void 0 : f.length) > 0) {
|
|
5430
|
-
const S = f[f.length - 1] || {}, m = S, { _last:
|
|
5431
|
-
p =
|
|
5431
|
+
const S = f[f.length - 1] || {}, m = S, { _last: R } = m;
|
|
5432
|
+
p = Et(m, ["_last"]);
|
|
5432
5433
|
}
|
|
5433
5434
|
(f == null ? void 0 : f.length) >= 30 && this.reportPublishMonitor(l), b._last = p, b._codec = h.codec || "", this.monitorDataCache[l].push(b);
|
|
5434
5435
|
});
|
|
@@ -5445,7 +5446,7 @@ const Te = (ft = class extends dn {
|
|
|
5445
5446
|
});
|
|
5446
5447
|
}
|
|
5447
5448
|
clearStream() {
|
|
5448
|
-
this.streamManager.stop(), this.audioPubState.setState(
|
|
5449
|
+
this.streamManager.stop(), this.audioPubState.setState(Z.AliRtcStatePublishIdle), this.videoPubState.setState(Z.AliRtcStatePublishIdle), this.videoSmallPubState.setState(Z.AliRtcStatePublishIdle), this.screenPubState.setState(Z.AliRtcStatePublishIdle);
|
|
5449
5450
|
}
|
|
5450
5451
|
getCurrentCameraDeviceId() {
|
|
5451
5452
|
var e;
|
|
@@ -5513,10 +5514,10 @@ const Te = (ft = class extends dn {
|
|
|
5513
5514
|
}), { audio: e, video: t, candidate: i };
|
|
5514
5515
|
});
|
|
5515
5516
|
}
|
|
5516
|
-
}, g(
|
|
5517
|
+
}, g(St, "logName", "LocalUser"), St);
|
|
5517
5518
|
Ce([T()], Te.prototype, "clearPublishState", 1), Ce([T()], Te.prototype, "clear", 1), Ce([T(U)], Te.prototype, "startDefaultCamera", 1), Ce([T(U)], Te.prototype, "startDefaultAudio", 1), Ce([T()], Te.prototype, "setViewConfig", 1), Ce([T()], Te.prototype, "startCameraCapture", 1), Ce([T()], Te.prototype, "stopCameraCapture", 1), Ce([T()], Te.prototype, "startAudioCapture", 1), Ce([T()], Te.prototype, "stopAudioCapture", 1), Ce([T()], Te.prototype, "stopPreview", 1), Ce([T()], Te.prototype, "resumePublish", 1), Ce([T()], Te.prototype, "createLocalStream", 1), Ce([T()], Te.prototype, "stopLocalStream", 1), Ce([T(U)], Te.prototype, "startPublish", 1), Ce([T()], Te.prototype, "updateStreams", 1), Ce([T(([r]) => [r])], Te.prototype, "syncPublishToRoomServer", 1), Ce([T()], Te.prototype, "refreshPushStreamUrl", 1), Ce([T(([r, a, e]) => [JSON.stringify(e)])], Te.prototype, "publishAdd", 1), Ce([T(([r, a]) => [JSON.stringify(a)])], Te.prototype, "publishReplace", 1), Ce([T(U)], Te.prototype, "publishDeleteTracks", 1), Ce([T()], Te.prototype, "publishStop", 1), Ce([T()], Te.prototype, "unPublish", 1), Ce([T(([r, a, e]) => [r.length, a, e])], Te.prototype, "sendSEI", 1);
|
|
5518
5519
|
let oc = Te;
|
|
5519
|
-
var
|
|
5520
|
+
var Tt = ((r) => (r.OPUS = "opus", r.H264 = "H264", r.UNKNOWN = "", r))(Tt || {}), ae = ((r) => (r[r.NotSubscribe = 0] = "NotSubscribe", r[r.Subscribing = 1] = "Subscribing", r[r.Subscribed = 2] = "Subscribed", r))(ae || {}), Jt = ((r) => (r.VideoTrackEnded = "videoTrackEnded", r.AudioTrackEnded = "audioTrackEnded", r.ScreenTrackEnded = "screenTrackEnded", r))(Jt || {});
|
|
5520
5521
|
const Sn = (r) => I(void 0, null, function* () {
|
|
5521
5522
|
return yield Se.createStream({ custom: !0, mediaStream: r });
|
|
5522
5523
|
}), ai = (r) => I(void 0, null, function* () {
|
|
@@ -5527,14 +5528,14 @@ const Sn = (r) => I(void 0, null, function* () {
|
|
|
5527
5528
|
return yield Sn(a);
|
|
5528
5529
|
});
|
|
5529
5530
|
var cc = Object.defineProperty, hc = Object.getOwnPropertyDescriptor;
|
|
5530
|
-
class
|
|
5531
|
+
class Li extends He {
|
|
5531
5532
|
constructor() {
|
|
5532
5533
|
super();
|
|
5533
|
-
g(this, "audioInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec:
|
|
5534
|
-
g(this, "videoLargeInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec:
|
|
5535
|
-
g(this, "videoSmallInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec:
|
|
5536
|
-
g(this, "screenInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec:
|
|
5537
|
-
g(this, "dataInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec:
|
|
5534
|
+
g(this, "audioInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec: Tt.UNKNOWN });
|
|
5535
|
+
g(this, "videoLargeInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec: Tt.UNKNOWN });
|
|
5536
|
+
g(this, "videoSmallInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec: Tt.UNKNOWN });
|
|
5537
|
+
g(this, "screenInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec: Tt.UNKNOWN });
|
|
5538
|
+
g(this, "dataInfo", { subscribeState: ae.NotSubscribe, ssrc: "", msid: "", pt: 0, red: 0, codec: Tt.UNKNOWN });
|
|
5538
5539
|
g(this, "audioVolume", 1);
|
|
5539
5540
|
g(this, "audioMuted", !1);
|
|
5540
5541
|
g(this, "userStatus");
|
|
@@ -5618,7 +5619,7 @@ class Ni extends He {
|
|
|
5618
5619
|
return this.audioInfo.codec;
|
|
5619
5620
|
}
|
|
5620
5621
|
get videoCodec() {
|
|
5621
|
-
return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec :
|
|
5622
|
+
return this.hasVideoLarge ? this.videoLargeInfo.codec : this.hasVideoSmall ? this.videoSmallInfo.codec : this.hasScreen ? this.screenInfo.codec : Tt.UNKNOWN;
|
|
5622
5623
|
}
|
|
5623
5624
|
get audioTrackInfo() {
|
|
5624
5625
|
return this.hasAudio ? ii.AliRtcAudioTrackMic : ii.AliRtcAudioTrackNo;
|
|
@@ -5630,7 +5631,7 @@ class Ni extends He {
|
|
|
5630
5631
|
let t = "", i = "", s = "", n = "", o = "";
|
|
5631
5632
|
return e ? (e.forEach((c) => {
|
|
5632
5633
|
var b;
|
|
5633
|
-
let h =
|
|
5634
|
+
let h = Tt.UNKNOWN;
|
|
5634
5635
|
const l = ((b = c == null ? void 0 : c.attr) == null ? void 0 : b.reason) === "reconnect";
|
|
5635
5636
|
if (c.userdata) {
|
|
5636
5637
|
const { codec: u } = JSON.parse(c.userdata);
|
|
@@ -5652,15 +5653,15 @@ class Ni extends He {
|
|
|
5652
5653
|
updateRemoteUserDeviceStatus(e) {
|
|
5653
5654
|
let t = un.parseStatus(e);
|
|
5654
5655
|
const { audioDisable: i, videoDisable: s, screenDisable: n } = t;
|
|
5655
|
-
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(
|
|
5656
|
+
return this.userStatus ? (this.userStatus.audioDisable != i && (this.userStatus.audioDisable = i, this.emit(Qe.Remote, i ? we.MuteAudio : we.UnmuteAudio)), this.userStatus.videoDisable != s && (this.userStatus.videoDisable = s, this.emit(Qe.Remote, s ? we.MuteVideo : we.UnmuteVideo)), this.userStatus.screenDisable != n && (this.userStatus.screenDisable = n, this.emit(Qe.Remote, n ? we.MuteScreen : we.UnmuteScreen))) : (this.userStatus = t, this.emit(Qe.Remote, i ? we.MuteAudio : we.UnmuteAudio), this.emit(Qe.Remote, s ? we.MuteVideo : we.UnmuteVideo), this.emit(Qe.Remote, n ? we.MuteScreen : we.UnmuteScreen)), !1;
|
|
5656
5657
|
}
|
|
5657
5658
|
}
|
|
5658
|
-
g(
|
|
5659
|
+
g(Li, "logName", "RemoteStreamInfo");
|
|
5659
5660
|
((r, a, e, t) => {
|
|
5660
5661
|
for (var i, s = t > 1 ? void 0 : t ? hc(a, e) : a, n = r.length - 1; n >= 0; n--)
|
|
5661
5662
|
(i = r[n]) && (s = (t ? i(a, e, s) : i(s)) || s);
|
|
5662
5663
|
t && s && cc(a, e, s);
|
|
5663
|
-
})([T()],
|
|
5664
|
+
})([T()], Li.prototype, "updateRemoteTrackSubState", 1);
|
|
5664
5665
|
class lc {
|
|
5665
5666
|
constructor(a) {
|
|
5666
5667
|
g(this, "remoteUser");
|
|
@@ -5714,7 +5715,7 @@ var dc = Object.defineProperty, uc = Object.getOwnPropertyDescriptor, ze = (r, a
|
|
|
5714
5715
|
(i = r[n]) && (s = (t ? i(a, e, s) : i(s)) || s);
|
|
5715
5716
|
return t && s && dc(a, e, s), s;
|
|
5716
5717
|
};
|
|
5717
|
-
class
|
|
5718
|
+
class Qt extends He {
|
|
5718
5719
|
constructor() {
|
|
5719
5720
|
super();
|
|
5720
5721
|
g(this, "state");
|
|
@@ -5768,8 +5769,8 @@ const Ue = (Xe = class extends dn {
|
|
|
5768
5769
|
g(this, "playoutGainNode");
|
|
5769
5770
|
g(this, "audioSubState");
|
|
5770
5771
|
g(this, "videoSubState");
|
|
5771
|
-
g(this, "videoLargeSubState", new
|
|
5772
|
-
g(this, "videoSmallSubState", new
|
|
5772
|
+
g(this, "videoLargeSubState", new Qt());
|
|
5773
|
+
g(this, "videoSmallSubState", new Qt());
|
|
5773
5774
|
g(this, "screenSubState");
|
|
5774
5775
|
g(this, "dataSubState");
|
|
5775
5776
|
g(this, "dc");
|
|
@@ -5799,12 +5800,12 @@ const Ue = (Xe = class extends dn {
|
|
|
5799
5800
|
const l = this.dcMsgWaitingPieces[h];
|
|
5800
5801
|
new Uint8Array(o, c, l.byteLength).set(new Uint8Array(l)), c += l.byteLength;
|
|
5801
5802
|
}
|
|
5802
|
-
new Uint8Array(o, c, t.body.byteLength).set(new Uint8Array(t.body)), i =
|
|
5803
|
+
new Uint8Array(o, c, t.body.byteLength).set(new Uint8Array(t.body)), i = $t.parse(o);
|
|
5803
5804
|
} catch (o) {
|
|
5804
5805
|
}
|
|
5805
|
-
this.dcMsgWaitingPieces = [], i || (i =
|
|
5806
|
+
this.dcMsgWaitingPieces = [], i || (i = $t.parse(t.body));
|
|
5806
5807
|
} else
|
|
5807
|
-
i =
|
|
5808
|
+
i = $t.parse(t.body);
|
|
5808
5809
|
i || V.event(`[${Xe.logName}]`, `parse data channel message fail, piece count: ${this.dcMsgWaitingPieces.length + 1}`);
|
|
5809
5810
|
}
|
|
5810
5811
|
i && (V.event(`[${Xe.logName}]`, `receive dc message, length(${(s = i.data) == null ? void 0 : s.byteLength})`), this.emit("remoteDataChannelMessage", this.uid, i));
|
|
@@ -5818,15 +5819,15 @@ const Ue = (Xe = class extends dn {
|
|
|
5818
5819
|
g(this, "handleAudioPaused", () => {
|
|
5819
5820
|
this.emit("remoteAudioPlayError", this.uid, "paused");
|
|
5820
5821
|
});
|
|
5821
|
-
this.streamInfo = new
|
|
5822
|
-
this.emit(
|
|
5823
|
-
}), this.signalingManager = c, this.viewMap = (u = n[t]) != null ? u : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = o, this.localUser = h, this.audioSubState = new
|
|
5822
|
+
this.streamInfo = new Li(), this.remoteUserInfo = new lc(this), this.parameter = b, this.streamInfo.on(Qe.Remote, (f) => {
|
|
5823
|
+
this.emit(Qe.Remote, f, this.userId);
|
|
5824
|
+
}), this.signalingManager = c, this.viewMap = (u = n[t]) != null ? u : { cameraViews: [], screenViews: [] }, n[t] = this.viewMap, this.slsReporter = o, this.localUser = h, this.audioSubState = new Qt(), this.audioSubState.on("change", (f, p, m) => {
|
|
5824
5825
|
this.emit("audioSubscribeStateChanged", this.uid, f, p, m);
|
|
5825
|
-
}), this.videoSubState = new
|
|
5826
|
+
}), this.videoSubState = new Qt(), this.videoSubState.on("change", (f, p, m) => {
|
|
5826
5827
|
this.emit("videoSubscribeStateChanged", this.uid, f, p, m);
|
|
5827
|
-
}), this.screenSubState = new
|
|
5828
|
+
}), this.screenSubState = new Qt(), this.screenSubState.on("change", (f, p, m) => {
|
|
5828
5829
|
this.emit("screenSubscribeStateChanged", this.uid, f, p, m);
|
|
5829
|
-
}), this.dataSubState = new
|
|
5830
|
+
}), this.dataSubState = new Qt(), this.dataSubState.on("change", (f, p, m) => {
|
|
5830
5831
|
this.emit("dataSubscribeStateChanged", this.uid, f, p, m);
|
|
5831
5832
|
}), this.playoutVolume = d;
|
|
5832
5833
|
}
|
|
@@ -5871,7 +5872,7 @@ const Ue = (Xe = class extends dn {
|
|
|
5871
5872
|
else {
|
|
5872
5873
|
const t = this.audioElement.srcObject;
|
|
5873
5874
|
if (t) {
|
|
5874
|
-
const i =
|
|
5875
|
+
const i = Kt.getInstance();
|
|
5875
5876
|
i.addEventListener("statechange", this.handleAudioContextSuspended);
|
|
5876
5877
|
const s = i.createMediaStreamSource(t);
|
|
5877
5878
|
this.audioElement.muted = !0, this.playoutGainNode = i.createGain(), s.connect(this.playoutGainNode), this.playoutGainNode.gain.value = e, this.playoutGainNode.connect(i.destination);
|
|
@@ -5958,7 +5959,7 @@ const Ue = (Xe = class extends dn {
|
|
|
5958
5959
|
clear(e = !0) {
|
|
5959
5960
|
return I(this, null, function* () {
|
|
5960
5961
|
var t;
|
|
5961
|
-
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Bi(Xe.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0,
|
|
5962
|
+
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Bi(Xe.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, Kt.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(Qe.Remote);
|
|
5962
5963
|
});
|
|
5963
5964
|
}
|
|
5964
5965
|
updateRemoteUserDeviceStatus(e) {
|
|
@@ -5968,7 +5969,7 @@ const Ue = (Xe = class extends dn {
|
|
|
5968
5969
|
updateRemoteTracks(e, t, i, s) {
|
|
5969
5970
|
return I(this, null, function* () {
|
|
5970
5971
|
var o;
|
|
5971
|
-
return this.remoteCallid = e, this.streamUrl && this.streamInfo.hasTrack || (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new
|
|
5972
|
+
return this.remoteCallid = e, this.streamUrl && this.streamInfo.hasTrack || (this.streamUrl = t), this.callId = e != null ? e : "", this.streamInfo || (this.streamInfo = new Li()), (o = this.streamInfo) == null ? void 0 : o.updateTracks(s);
|
|
5972
5973
|
});
|
|
5973
5974
|
}
|
|
5974
5975
|
subscribe(s, n) {
|
|
@@ -5976,8 +5977,8 @@ const Ue = (Xe = class extends dn {
|
|
|
5976
5977
|
var u, f;
|
|
5977
5978
|
let o = e;
|
|
5978
5979
|
if (!o) {
|
|
5979
|
-
const { hasAudio: p, hasVideo: m, hasScreen: S, hasData:
|
|
5980
|
-
o = { audio: this.wantSubAudio && p, video: this.wantSubVideo && m, screen: this.wantSubScreen && S, data: ((f = this.parameter.data) == null ? void 0 : f.enableSubDataChannel) &&
|
|
5980
|
+
const { hasAudio: p, hasVideo: m, hasScreen: S, hasData: R } = (u = this.streamInfo) != null ? u : {};
|
|
5981
|
+
o = { audio: this.wantSubAudio && p, video: this.wantSubVideo && m, screen: this.wantSubScreen && S, data: ((f = this.parameter.data) == null ? void 0 : f.enableSubDataChannel) && R };
|
|
5981
5982
|
}
|
|
5982
5983
|
this.streamInfo.markRemoteTrackSubscribing(o);
|
|
5983
5984
|
const { screen: c, audio: h, video: l, vMsid: d } = o, b = [];
|
|
@@ -6034,7 +6035,7 @@ const Ue = (Xe = class extends dn {
|
|
|
6034
6035
|
}
|
|
6035
6036
|
resumeAudio() {
|
|
6036
6037
|
return I(this, null, function* () {
|
|
6037
|
-
const e =
|
|
6038
|
+
const e = Kt.getInstance();
|
|
6038
6039
|
return e.state !== "running" && e.resume(), this.audioElement ? this.audioElement.play() : this.playAudio();
|
|
6039
6040
|
});
|
|
6040
6041
|
}
|
|
@@ -6143,24 +6144,24 @@ const Ue = (Xe = class extends dn {
|
|
|
6143
6144
|
return { remoteUser: this, options: t };
|
|
6144
6145
|
}
|
|
6145
6146
|
updateSubscribe(e) {
|
|
6146
|
-
var n, o, c, h, l, d, b, u, f, p, m, S,
|
|
6147
|
+
var n, o, c, h, l, d, b, u, f, p, m, S, R, _, y, v, w;
|
|
6147
6148
|
const t = Date.now(), i = {}, s = {};
|
|
6148
|
-
if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((o = this.streamInfo.getAudioInfo()) == null ? void 0 : o.msid) || k.Audio) : this.wantSubAudio && ((c = this.streamInfo) != null && c.hasAudio) || !this.isAudioSubscribing || (s.audio = !0, s.aMsid = ((h = this.streamInfo.getAudioInfo()) == null ? void 0 : h.msid) || k.Audio), this.wantSubVideo && ((l = this.streamInfo) != null && l.hasVideo) ? (this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((d = this.streamInfo) != null && d.hasVideoSmall) ? (i.video = !0, i.vMsid = k.VideoSmall) : this.isVideoLargeSubscribing || !((b = this.streamInfo) != null && b.hasVideoLarge) || this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing || (i.video = !0, i.vMsid = ((u = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : u.msid) || k.VideoLarge), this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = k.VideoLarge) : this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = k.VideoSmall)) : this.wantSubVideo && ((f = this.streamInfo) != null && f.hasVideo) || !this.isVideoSubscribing || (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? k.VideoSmall : ((p = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : p.msid) || k.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((m = this.streamInfo) != null && m.hasScreen) ? i.screen = !0 : this.wantSubScreen && ((S = this.streamInfo) != null && S.hasScreen) || !this.isScreenSubscribing || (s.screen = !0), (
|
|
6149
|
+
if (this.wantSubAudio && !this.isAudioSubscribing && ((n = this.streamInfo) != null && n.hasAudio) ? (i.audio = !0, i.aMsid = ((o = this.streamInfo.getAudioInfo()) == null ? void 0 : o.msid) || k.Audio) : this.wantSubAudio && ((c = this.streamInfo) != null && c.hasAudio) || !this.isAudioSubscribing || (s.audio = !0, s.aMsid = ((h = this.streamInfo.getAudioInfo()) == null ? void 0 : h.msid) || k.Audio), this.wantSubVideo && ((l = this.streamInfo) != null && l.hasVideo) ? (this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((d = this.streamInfo) != null && d.hasVideoSmall) ? (i.video = !0, i.vMsid = k.VideoSmall) : this.isVideoLargeSubscribing || !((b = this.streamInfo) != null && b.hasVideoLarge) || this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing || (i.video = !0, i.vMsid = ((u = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : u.msid) || k.VideoLarge), this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = k.VideoLarge) : this.defaultVideoStreamType === Ke.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = k.VideoSmall)) : this.wantSubVideo && ((f = this.streamInfo) != null && f.hasVideo) || !this.isVideoSubscribing || (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? k.VideoSmall : ((p = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : p.msid) || k.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((m = this.streamInfo) != null && m.hasScreen) ? i.screen = !0 : this.wantSubScreen && ((S = this.streamInfo) != null && S.hasScreen) || !this.isScreenSubscribing || (s.screen = !0), (R = this.parameter.data) != null && R.enableSubDataChannel && !this.isDataSubscribing && ((_ = this.streamInfo) != null && _.hasData) ? i.data = !0 : (y = this.parameter.data) != null && y.enableSubDataChannel && ((v = this.streamInfo) != null && v.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 === fe.Reconnect) {
|
|
6149
6150
|
if (V.event(`[${Xe.logName}]`, "reconnect, try to resume"), this.streamInfo.hasData && !i.data) {
|
|
6150
|
-
const
|
|
6151
|
-
this.dataChannelConnected(
|
|
6151
|
+
const A = this.rtsManager.getDatachannelByMsid({ url: this.streamUrl, msid: this.streamInfo.getDataInfo().msid || k.Data });
|
|
6152
|
+
this.dataChannelConnected(A);
|
|
6152
6153
|
}
|
|
6153
6154
|
if (this.streamInfo.hasAudio && !i.audio) {
|
|
6154
|
-
const
|
|
6155
|
-
|
|
6155
|
+
const A = this.rtsManager.getStreamByMsid({ url: this.streamUrl, aMsid: this.streamInfo.getAudioInfo().msid || k.Audio });
|
|
6156
|
+
A && A.audioTrack && (this.audioTrack = A.audioTrack, this.audioVolumeIndicationInterval > 0 && (this.audioLevelMonitor.stop(), this.audioLevelMonitor.start(this.audioTrack, this.audioVolumeIndicationInterval)), this.playAudio());
|
|
6156
6157
|
}
|
|
6157
6158
|
if (this.streamInfo.hasVideo && !i.video) {
|
|
6158
|
-
const
|
|
6159
|
-
|
|
6159
|
+
const A = this.rtsManager.getStreamByMsid({ url: this.streamUrl, vMsid: this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? k.VideoSmall : ((w = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : w.msid) || k.VideoLarge });
|
|
6160
|
+
A && A.mediaStream && (this.stream = A, this.playAll(!1));
|
|
6160
6161
|
}
|
|
6161
6162
|
if (this.streamInfo.hasScreen && !i.screen) {
|
|
6162
|
-
const
|
|
6163
|
-
|
|
6163
|
+
const A = this.rtsManager.getStreamByMsid({ url: this.streamUrl, vMsid: this.streamInfo.getScreenInfo().msid || k.Screen });
|
|
6164
|
+
A && A.mediaStream && (this.screenStream = A, this.playAll(!0));
|
|
6164
6165
|
}
|
|
6165
6166
|
}
|
|
6166
6167
|
return { addOption: i, deleteOption: s };
|
|
@@ -6234,9 +6235,9 @@ const Ue = (Xe = class extends dn {
|
|
|
6234
6235
|
}
|
|
6235
6236
|
stopPlayAll(e = !1) {
|
|
6236
6237
|
e ? this.viewMap.screenViews.forEach((t) => {
|
|
6237
|
-
|
|
6238
|
+
ft(t);
|
|
6238
6239
|
}) : this.viewMap.cameraViews.forEach((t) => {
|
|
6239
|
-
|
|
6240
|
+
ft(t);
|
|
6240
6241
|
});
|
|
6241
6242
|
}
|
|
6242
6243
|
toggleAudio(e = !0) {
|
|
@@ -6304,7 +6305,7 @@ const Ue = (Xe = class extends dn {
|
|
|
6304
6305
|
let h;
|
|
6305
6306
|
if ((c == null ? void 0 : c.length) > 0) {
|
|
6306
6307
|
const b = c[c.length - 1] || {}, l = b, { _last: u } = l;
|
|
6307
|
-
h =
|
|
6308
|
+
h = Et(l, ["_last"]);
|
|
6308
6309
|
}
|
|
6309
6310
|
(c == null ? void 0 : c.length) >= 30 && this.reportSubscribeMonitor(i), o._last = h, o._codec = t.codec, n && (o._source = (d = this.localUser) == null ? void 0 : d.getMediaStats(o.playoutId)), this.monitorDataCache[i].push(o);
|
|
6310
6311
|
});
|
|
@@ -6323,7 +6324,7 @@ const Ue = (Xe = class extends dn {
|
|
|
6323
6324
|
}, g(Xe, "logName", "RemoteUser"), Xe);
|
|
6324
6325
|
ze([T()], Ue.prototype, "clear", 1), ze([T()], Ue.prototype, "updateRemoteUserDeviceStatus", 1), ze([T()], Ue.prototype, "updateRemoteTracks", 1), ze([T(U)], Ue.prototype, "subscribe", 1), ze([T()], Ue.prototype, "subscribeProxy", 1), ze([T(U)], Ue.prototype, "subscribeDeleteProxy", 1), ze([T()], Ue.prototype, "restore", 1), ze([T(U)], Ue.prototype, "resumeAudio", 1), ze([T(U)], Ue.prototype, "stopSubscribe", 1), ze([T(U)], Ue.prototype, "doStopSubscribe", 1), ze([T()], Ue.prototype, "clearStream", 1), ze([T()], Ue.prototype, "clearScreenStream", 1), ze([T()], Ue.prototype, "updateSubscribe", 1), ze([T()], Ue.prototype, "playAudio", 1), ze([T()], Ue.prototype, "stopPlayAudio", 1), ze([T((r, a, e) => [typeof r == "string" ? r : r == null ? void 0 : r.nodeType, a || "-", e || "-"])], Ue.prototype, "play", 1), ze([T()], Ue.prototype, "stopPlayAll", 1);
|
|
6325
6326
|
let pc = Ue;
|
|
6326
|
-
var
|
|
6327
|
+
var Mt = ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(Mt || {});
|
|
6327
6328
|
class mc extends He {
|
|
6328
6329
|
constructor() {
|
|
6329
6330
|
super(...arguments);
|
|
@@ -6331,13 +6332,13 @@ class mc extends He {
|
|
|
6331
6332
|
}
|
|
6332
6333
|
add(e, t) {
|
|
6333
6334
|
if (this.plugins.has(e.name))
|
|
6334
|
-
throw new O(
|
|
6335
|
+
throw new O(Mt.AliRtcPluginErrorCreateError, `Plugin ${e.name} already exists`);
|
|
6335
6336
|
this.plugins.set(e.name, e), t && e.setOptions(t), this.emit("added", e), e.on("enabled", () => this.emit("added", e)), e.on("disabled", () => this.emit("removed", e)), e.on("updated", () => this.emit("updated", e));
|
|
6336
6337
|
}
|
|
6337
6338
|
remove(e) {
|
|
6338
6339
|
const t = this.plugins.get(e);
|
|
6339
6340
|
if (!t)
|
|
6340
|
-
throw new O(
|
|
6341
|
+
throw new O(Mt.AliRtcPluginErrorNoFindPlugin, `Plugin ${e} not founded`);
|
|
6341
6342
|
this.plugins.delete(e), t.removeAllListeners(), this.emit("removed", t);
|
|
6342
6343
|
}
|
|
6343
6344
|
removeAll() {
|
|
@@ -6409,7 +6410,13 @@ const De = (Ve = class extends He {
|
|
|
6409
6410
|
this.dcResolve = t, this.dcReject = i;
|
|
6410
6411
|
}));
|
|
6411
6412
|
}), this.rts.on("receivedSEI", (e) => {
|
|
6412
|
-
|
|
6413
|
+
var t;
|
|
6414
|
+
if (this.emit("seimessage", e.url, e.sei.payloadType, e.sei.data), e.sei.payloadType === 99)
|
|
6415
|
+
try {
|
|
6416
|
+
const i = JSON.parse(new TextDecoder().decode(e.sei.data));
|
|
6417
|
+
this.slsReporter.reportLoopAudioDelay(((t = this.publishingTracks.find((s) => s.type === "audio")) == null ? void 0 : t.ssrc) || "", i);
|
|
6418
|
+
} catch (i) {
|
|
6419
|
+
}
|
|
6413
6420
|
}), this.rts.on("onError", (e) => {
|
|
6414
6421
|
V.event(`[${Ve.logName}]`, "rts onError event:", e);
|
|
6415
6422
|
}), this.rts.on("reconnect", (e) => {
|
|
@@ -6484,8 +6491,8 @@ const De = (Ve = class extends He {
|
|
|
6484
6491
|
e && (this._publishingTracks = e.map(({ msid: t, from: i, ssrc: s, codec: n, type: o, trackId: c }) => ({ msid: t, from: i, type: o, ssrc: `${s}`, codec: n != null ? n : "", trackId: c })));
|
|
6485
6492
|
}
|
|
6486
6493
|
httpPublish(n, o) {
|
|
6487
|
-
return I(this, arguments, function* (e, t, i = !1, s =
|
|
6488
|
-
var _, y;
|
|
6494
|
+
return I(this, arguments, function* (e, t, i = !1, s = bt.MANUAL) {
|
|
6495
|
+
var _, y, v, w;
|
|
6489
6496
|
let c;
|
|
6490
6497
|
const h = Date.now();
|
|
6491
6498
|
this.startConnect();
|
|
@@ -6493,33 +6500,33 @@ const De = (Ve = class extends He {
|
|
|
6493
6500
|
if (!l)
|
|
6494
6501
|
return V.warn(`[${Ve.logName}]`, "publishStream is null"), { traceId: "", l1ip: c };
|
|
6495
6502
|
const f = this.getPubMsid(l, { vMsid: u });
|
|
6496
|
-
this.encodedInsertableStreams && (f.encodedInsertableStreams = !0), f.answerSdpHook = (
|
|
6497
|
-
const
|
|
6498
|
-
return
|
|
6499
|
-
}, (y = (_ = this.parameter) == null ? void 0 : _.net) != null && y.useTCP && (f.tcpOnly = !0), f.retryTimes = 17, f.retryInterval = 5e3, this._rtsPeerConnectionType = "publish";
|
|
6503
|
+
this.encodedInsertableStreams && (f.encodedInsertableStreams = !0), f.answerSdpHook = (A) => {
|
|
6504
|
+
const E = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(A);
|
|
6505
|
+
return E != null && E[0] && (c = E[0]), A;
|
|
6506
|
+
}, (y = (_ = this.parameter) == null ? void 0 : _.net) != null && y.useTCP && (f.tcpOnly = !0), (w = (v = this.parameter) == null ? void 0 : v.net) != null && w.cumuDelay && (f.cumuDelay = !0), f.retryTimes = 17, f.retryInterval = 5e3, this._rtsPeerConnectionType = "publish";
|
|
6500
6507
|
let p = !l.hasVideo, m = u, S = "";
|
|
6501
|
-
const
|
|
6508
|
+
const R = Date.now();
|
|
6502
6509
|
try {
|
|
6503
6510
|
S = yield this.rts.publish(nr(e, this.preferredPubL1Ip), l, f);
|
|
6504
|
-
} catch (
|
|
6511
|
+
} catch (A) {
|
|
6505
6512
|
this.setConnected(!1);
|
|
6506
|
-
const
|
|
6507
|
-
throw
|
|
6513
|
+
const E = 2e3 - (Date.now() - R);
|
|
6514
|
+
throw E <= 0 ? this.emit("disconnected") : setTimeout(() => {
|
|
6508
6515
|
this.emit("disconnected");
|
|
6509
|
-
},
|
|
6516
|
+
}, E), this.slsReporter.reportPublish(i, e, t, l.hasVideo && (!u || u === k.VideoLarge), l.hasVideo && u === k.VideoSmall, l.hasVideo && u === k.Screen, l.hasAudio, (A == null ? void 0 : A.errorCode) || -1, this.pcTraceId, "", R), O.fromRtsError(A);
|
|
6510
6517
|
}
|
|
6511
|
-
V.event(`[${Ve.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(i, e, t, l.hasVideo && (!u || u === k.VideoLarge), l.hasVideo && u === k.VideoSmall, l.hasVideo && u === k.Screen, l.hasAudio, 0, S, S,
|
|
6518
|
+
V.event(`[${Ve.logName}]`, "rts publish success", S), this.slsReporter.reportPublish(i, e, t, l.hasVideo && (!u || u === k.VideoLarge), l.hasVideo && u === k.VideoSmall, l.hasVideo && u === k.Screen, l.hasAudio, 0, S, S, R), this.slsReporter.reportConnectionLatencyEvent(at.HANDLE_PUB_TASK, ht.START, t, S, h), this.slsReporter.reportConnectionLatencyEvent(at.HANDLE_PUB_TASK, ht.END, t, S, Date.now());
|
|
6512
6519
|
try {
|
|
6513
|
-
const
|
|
6514
|
-
return this._pcTraceId = S, this.setConnected(!0), this._publishingTracks = this.rts.getPublishTrackInfoList(), d && (yield this.publishAdd(e, d, t, { vMsid: k.VideoSmall }, i), p = !1, m = k.VideoSmall), b && (yield this.publishAdd(e, b, t, { vMsid: k.Screen }, i), p = !1, m = k.Screen), yield this.waitPublishSender(e, p, m), this.slsReporter.reportPublishFirstPacket(i, t,
|
|
6515
|
-
} catch (
|
|
6516
|
-
throw this.setConnected(!1), O.fromError(
|
|
6520
|
+
const A = Date.now();
|
|
6521
|
+
return this._pcTraceId = S, this.setConnected(!0), this._publishingTracks = this.rts.getPublishTrackInfoList(), d && (yield this.publishAdd(e, d, t, { vMsid: k.VideoSmall }, i), p = !1, m = k.VideoSmall), b && (yield this.publishAdd(e, b, t, { vMsid: k.Screen }, i), p = !1, m = k.Screen), yield this.waitPublishSender(e, p, m), this.slsReporter.reportPublishFirstPacket(i, t, R, A, this._localJoinTime, p ? k.Audio : f.vMsid, S || "", S || "", s), { traceId: S, l1ip: c };
|
|
6522
|
+
} catch (A) {
|
|
6523
|
+
throw this.setConnected(!1), O.fromError(A);
|
|
6517
6524
|
}
|
|
6518
6525
|
});
|
|
6519
6526
|
}
|
|
6520
6527
|
waitPublishSender(e, t = !1, i) {
|
|
6521
6528
|
return I(this, null, function* () {
|
|
6522
|
-
return Promise.race([
|
|
6529
|
+
return Promise.race([Pt(1e3), ((s, n) => {
|
|
6523
6530
|
let o = 0;
|
|
6524
6531
|
const c = () => (t ? this.rts.getPublishAudioStats(e, i) : this.rts.getPublishVideoStats(e, i)).then((h) => !(h.bytesSent > 0) && o < s ? (o++, new Promise((l) => setTimeout(() => l(c()), n))) : Promise.resolve());
|
|
6525
6532
|
return c();
|
|
@@ -6538,20 +6545,20 @@ const De = (Ve = class extends He {
|
|
|
6538
6545
|
});
|
|
6539
6546
|
}
|
|
6540
6547
|
publishAdd(h, l, d, b) {
|
|
6541
|
-
return I(this, arguments, function* (e, t, i, s, n = !1, o = !1, c =
|
|
6542
|
-
var p, m, S,
|
|
6548
|
+
return I(this, arguments, function* (e, t, i, s, n = !1, o = !1, c = bt.MANUAL) {
|
|
6549
|
+
var p, m, S, R, _, y, v, w;
|
|
6543
6550
|
yield this.dcConnectingPromise;
|
|
6544
6551
|
const u = Date.now(), f = this.getPubMsid(t, s);
|
|
6545
6552
|
try {
|
|
6546
|
-
const
|
|
6547
|
-
return E > 0 && V.event(`[${Ve.logName}]`, `publishAdd retry times: ${E}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
|
|
6553
|
+
const A = yield Ba((E) => I(this, null, function* () {
|
|
6554
|
+
return E > 0 && V.event(`[${Ve.logName}]`, `publishAdd retry times: ${E}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([$({ url: e, stream: t, updateSourceStream: !1 }, f)])) : Promise.reject(new O(B.ERR_INNER, "rts not connected"));
|
|
6548
6555
|
}), 5, 0, (E) => (E == null ? void 0 : E.errorCode) === 15006);
|
|
6549
|
-
if (
|
|
6550
|
-
const E = Date.now(), [C] =
|
|
6551
|
-
return this.slsReporter.reportPublish(!1, e, i, ((p = f.vMsid) == null ? void 0 : p[0]) === k.VideoLarge, ((m = f.vMsid) == null ? void 0 : m[0]) === k.VideoSmall, ((S = f.vMsid) == null ? void 0 : S[0]) === k.Screen, ((
|
|
6556
|
+
if (A) {
|
|
6557
|
+
const E = Date.now(), [C] = A;
|
|
6558
|
+
return this.slsReporter.reportPublish(!1, e, i, ((p = f.vMsid) == null ? void 0 : p[0]) === k.VideoLarge, ((m = f.vMsid) == null ? void 0 : m[0]) === k.VideoSmall, ((S = f.vMsid) == null ? void 0 : S[0]) === k.Screen, ((R = f.aMsid) == null ? void 0 : R[0]) === k.Audio, 0, this.pcTraceId, C.traceId || "", u), this.updatePublishingTracks(C.trackInfoList), o && (yield this.waitPublishSender(e, !t.hasVideo, t.hasVideo ? s == null ? void 0 : s.vMsid : s == null ? void 0 : s.aMsid)), this.slsReporter.reportPublishFirstPacket(n, i, u, E, this._localJoinTime, (t.hasVideo ? s == null ? void 0 : s.vMsid : s == null ? void 0 : s.aMsid) || "", this.pcTraceId, C.traceId || "", c), C.traceId || "";
|
|
6552
6559
|
}
|
|
6553
|
-
} catch (
|
|
6554
|
-
throw this.slsReporter.reportPublish(!1, e, i, ((_ = f.vMsid) == null ? void 0 : _[0]) === k.VideoLarge, ((y = f.vMsid) == null ? void 0 : y[0]) === k.VideoSmall, ((v = f.vMsid) == null ? void 0 : v[0]) === k.Screen, ((w = f.aMsid) == null ? void 0 : w[0]) === k.Audio, (
|
|
6560
|
+
} catch (A) {
|
|
6561
|
+
throw this.slsReporter.reportPublish(!1, e, i, ((_ = f.vMsid) == null ? void 0 : _[0]) === k.VideoLarge, ((y = f.vMsid) == null ? void 0 : y[0]) === k.VideoSmall, ((v = f.vMsid) == null ? void 0 : v[0]) === k.Screen, ((w = f.aMsid) == null ? void 0 : w[0]) === k.Audio, (A == null ? void 0 : A.errorCode) || -1, this.pcTraceId, "", u), A != null && A.errorCode ? O.fromRtsError(A) : O.fromError(A);
|
|
6555
6562
|
}
|
|
6556
6563
|
return "";
|
|
6557
6564
|
});
|
|
@@ -6619,29 +6626,29 @@ const De = (Ve = class extends He {
|
|
|
6619
6626
|
}
|
|
6620
6627
|
httpSubscribe(e) {
|
|
6621
6628
|
return I(this, null, function* () {
|
|
6622
|
-
var o, c, h, l, d, b;
|
|
6629
|
+
var o, c, h, l, d, b, u, f;
|
|
6623
6630
|
const { remoteUser: t, options: i } = e;
|
|
6624
6631
|
let s = t.streamUrl;
|
|
6625
6632
|
i.video || i.screen ? i != null && i.audio || (s += "@subaudio=no") : s += "@subvideo=no";
|
|
6626
6633
|
const n = this.getSubConfig(t.streamInfo, i);
|
|
6627
|
-
if (this.encodedInsertableStreams && (n.encodedInsertableStreams = !0), (c = (o = this.parameter) == null ? void 0 : o.net) != null && c.useTCP && (n.tcpOnly = !0), (l = (h = this.parameter) == null ? void 0 : h.net) == null ? void 0 :
|
|
6628
|
-
const
|
|
6629
|
-
|
|
6634
|
+
if (this.encodedInsertableStreams && (n.encodedInsertableStreams = !0), (c = (o = this.parameter) == null ? void 0 : o.net) != null && c.useTCP && (n.tcpOnly = !0), (l = (h = this.parameter) == null ? void 0 : h.net) != null && l.cumuDelay && (n.cumuDelay = !0), (b = (d = this.parameter) == null ? void 0 : d.net) == null ? void 0 : b.mediaTimeout) {
|
|
6635
|
+
const p = (f = (u = this.parameter) == null ? void 0 : u.net) == null ? void 0 : f.mediaTimeout;
|
|
6636
|
+
p > 1e3 && p < 1e5 && (n.mediaTimeout = p);
|
|
6630
6637
|
}
|
|
6631
6638
|
n.retryTimes = 17, n.retryInterval = 5e3, this._rtsPeerConnectionType = "subscribe";
|
|
6632
6639
|
try {
|
|
6633
6640
|
this.startConnect();
|
|
6634
|
-
const
|
|
6635
|
-
return this._pcTraceId =
|
|
6636
|
-
} catch (
|
|
6637
|
-
throw this.setConnected(!1), this.emit("disconnected"), O.fromRtsError(
|
|
6641
|
+
const p = yield this.rts.subscribe(nr(s), n);
|
|
6642
|
+
return this._pcTraceId = p.traceId, this.setConnected(!0), { traceId: p.traceId, stream: p };
|
|
6643
|
+
} catch (p) {
|
|
6644
|
+
throw this.setConnected(!1), this.emit("disconnected"), O.fromRtsError(p);
|
|
6638
6645
|
}
|
|
6639
6646
|
});
|
|
6640
6647
|
}
|
|
6641
6648
|
subscribeAdd(e) {
|
|
6642
6649
|
return I(this, null, function* () {
|
|
6643
6650
|
var n, o, c, h;
|
|
6644
|
-
const { remoteUser: t, options: i } = e, s =
|
|
6651
|
+
const { remoteUser: t, options: i } = e, s = ut($({ url: t.streamUrl, subAudio: !!i.audio, subVideo: !(!i.screen && !i.video) }, this.getSubConfig(t.streamInfo, i)), { targetStream: i.screen ? t.getScreenStream : t.getCameraStream });
|
|
6645
6652
|
yield this.dcConnectingPromise;
|
|
6646
6653
|
try {
|
|
6647
6654
|
return (yield Ba((l) => I(this, null, function* () {
|
|
@@ -6657,7 +6664,7 @@ const De = (Ve = class extends He {
|
|
|
6657
6664
|
subscribeDelete(e) {
|
|
6658
6665
|
return I(this, null, function* () {
|
|
6659
6666
|
var n, o, c, h;
|
|
6660
|
-
const { remoteUser: t, options: i } = e, s =
|
|
6667
|
+
const { remoteUser: t, options: i } = e, s = ut($({ url: t.streamUrl, subAudio: !!i.audio, subVideo: !(!i.screen && !i.video) }, this.getSubConfig(t.streamInfo, i)), { targetStream: i.screen ? t.getScreenStream : t.getCameraStream });
|
|
6661
6668
|
yield this.dcConnectingPromise;
|
|
6662
6669
|
try {
|
|
6663
6670
|
return (yield this.rts.subscribeDeleteTracks([s]))[0];
|
|
@@ -6702,13 +6709,13 @@ const De = (Ve = class extends He {
|
|
|
6702
6709
|
});
|
|
6703
6710
|
}
|
|
6704
6711
|
publish(n, o) {
|
|
6705
|
-
return I(this, arguments, function* (e, t, i = !1, s =
|
|
6712
|
+
return I(this, arguments, function* (e, t, i = !1, s = bt.MANUAL) {
|
|
6706
6713
|
let c, h = "";
|
|
6707
6714
|
if (this.connecting && (yield this.connectingPromise), this.connected) {
|
|
6708
6715
|
yield this.dcConnectingPromise;
|
|
6709
6716
|
let l, d = !1;
|
|
6710
6717
|
const { audio: b, video: u, videoSmall: f, screen: p } = this.localStreamManager.publishStreams;
|
|
6711
|
-
b && (h = yield this.publishAdd(e, b, t, { aMsid: k.Audio }, i), d = !0, l = k.Audio, yield
|
|
6718
|
+
b && (h = yield this.publishAdd(e, b, t, { aMsid: k.Audio }, i), d = !0, l = k.Audio, yield Pt(100)), u && (h = yield this.publishAdd(e, u, t, { vMsid: k.VideoLarge }, i), d = !1, l = k.VideoLarge, yield Pt(100)), f && (h = yield this.publishAdd(e, f, t, { vMsid: k.VideoSmall }, i), d = !1, l = k.VideoSmall, yield Pt(100)), p && (h = yield this.publishAdd(e, p, t, { isScreen: !0, vMsid: k.Screen }, i), d = !1, l = k.Screen), l && (yield this.waitPublishSender(e, d, l));
|
|
6712
6719
|
} else {
|
|
6713
6720
|
const l = yield this.httpPublish(e, t, i, s);
|
|
6714
6721
|
h = l.traceId, c = l.l1ip;
|
|
@@ -6735,24 +6742,24 @@ const De = (Ve = class extends He {
|
|
|
6735
6742
|
const b = Date.now();
|
|
6736
6743
|
let u = k.VideoLarge, f = c.video || c.screen, p = c.audio;
|
|
6737
6744
|
c.video && c.vMsid ? u = c.vMsid : c.screen && (u = k.Screen);
|
|
6738
|
-
let m = 0, S = 0,
|
|
6745
|
+
let m = 0, S = 0, R = 0;
|
|
6739
6746
|
const _ = ((y, v) => {
|
|
6740
6747
|
let w = 0;
|
|
6741
|
-
const
|
|
6748
|
+
const A = () => {
|
|
6742
6749
|
let E;
|
|
6743
6750
|
return p && !m && (E = this.rts.getSubscribeAudioStats(h.streamUrl).then((C) => {
|
|
6744
6751
|
if (C.packetsReceived > 0)
|
|
6745
6752
|
m = Date.now();
|
|
6746
6753
|
else if (!f)
|
|
6747
|
-
return w < y && (w++, new Promise((x) => setTimeout(() => x(
|
|
6754
|
+
return w < y && (w++, new Promise((x) => setTimeout(() => x(A()), v)));
|
|
6748
6755
|
return !0;
|
|
6749
|
-
})), f && !
|
|
6756
|
+
})), f && !R && (E = this.rts.getSubscribeVideoStats(h.streamUrl, u).then((C) => (C.packetsReceived > 0 && (S = Date.now()), C.framesDecoded > 0 ? (R = Date.now(), !0) : w < y ? (w++, new Promise((x) => setTimeout(() => x(A()), v))) : (V.event(`[${Ve.logName}]`, h.userId, "尝试获取首帧数据失败"), !1)))), Promise.resolve(E);
|
|
6750
6757
|
};
|
|
6751
|
-
return
|
|
6752
|
-
})(
|
|
6753
|
-
return _.then((
|
|
6754
|
-
S && this.slsReporter.reportSubscribeFirstPacket(t === fe.Resume, i, s, u, { fprt: S - d, ifsprtc:
|
|
6755
|
-
}), o && (yield Promise.race([_,
|
|
6758
|
+
return A();
|
|
6759
|
+
})(40, 100);
|
|
6760
|
+
return _.then(() => {
|
|
6761
|
+
S && this.slsReporter.reportSubscribeFirstPacket(t === fe.Resume, i, s, u, { fprt: S - d, ifsprtc: R ? R - d : 0, ajsub: t === fe.Join ? 1 : 0, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", sstc: b - d }), R && this.slsReporter.reportSubscribeFirstFrame(t === fe.Resume, i, s, u, { fvfrt: R - d, fp2fftc: R - S, ajsub: t === fe.Join ? 1 : 0, tffrtc: t === fe.Join ? R - this.localJoinTime : R - n, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", fvfdtc: R - d }), m && (this.slsReporter.reportConnectionLatencyEvent(at.FIRST_REMOTE, ht.DECODED, i, k.Audio, m), this.slsReporter.reportSubscribeFirstPacket(t === fe.Resume, i, s, k.Audio, { fprt: m - d, ifsprtc: m - d, ajsub: t === fe.Join ? 1 : 0, pctid: this.pcTraceId, subtid: (l == null ? void 0 : l.traceId) || "", sstc: b - d }));
|
|
6762
|
+
}), o && (yield Promise.race([_, Pt(1500)])), l;
|
|
6756
6763
|
});
|
|
6757
6764
|
}
|
|
6758
6765
|
getSubscribeVideoStats(e, t) {
|
|
@@ -6792,10 +6799,10 @@ class cr {
|
|
|
6792
6799
|
g(this, "profileMap", /* @__PURE__ */ new Map());
|
|
6793
6800
|
g(this, "audioProfile");
|
|
6794
6801
|
g(this, "contentHint");
|
|
6795
|
-
this.defaultProfile =
|
|
6802
|
+
this.defaultProfile = $({}, a);
|
|
6796
6803
|
}
|
|
6797
6804
|
updateProfile(a, e) {
|
|
6798
|
-
this.profileMap.set(a,
|
|
6805
|
+
this.profileMap.set(a, $($($({}, this.defaultProfile), this.profileMap.get(a) || {}), e || {})), this.profile = a;
|
|
6799
6806
|
}
|
|
6800
6807
|
get videoProfile() {
|
|
6801
6808
|
return this.profile;
|
|
@@ -6818,7 +6825,7 @@ class cr {
|
|
|
6818
6825
|
} catch (s) {
|
|
6819
6826
|
}
|
|
6820
6827
|
if (e) {
|
|
6821
|
-
const s =
|
|
6828
|
+
const s = $({}, i);
|
|
6822
6829
|
i.maxSendFrameRate && (s.frameRate = i.maxSendFrameRate), e == null || e.VideoProfileMap.set(this.profile, s), yield e.setVideoProfile(this.profile);
|
|
6823
6830
|
}
|
|
6824
6831
|
}
|
|
@@ -6865,7 +6872,7 @@ class Fa extends He {
|
|
|
6865
6872
|
return I(this, null, function* () {
|
|
6866
6873
|
var o, c, h, l, d, b;
|
|
6867
6874
|
const { videoTrack: s, audioTrack: n } = e;
|
|
6868
|
-
s && ((o = this.originVideoTrack) == null || o.removeEventListener("ended", this.onVideoTrackEnded)), n && ((c = this.originAudioTrack) == null || c.removeEventListener("ended", this.onAudioTrackEnded)), this.type ===
|
|
6875
|
+
s && ((o = this.originVideoTrack) == null || o.removeEventListener("ended", this.onVideoTrackEnded)), n && ((c = this.originAudioTrack) == null || c.removeEventListener("ended", this.onAudioTrackEnded)), this.type === Ne.AliRtcSdkStreamTypeScreen ? this.stop() : (s && ((h = this.originVideoTrack) == null || h.stop()), n && ((l = this.originAudioTrack) == null || l.stop())), s && (this.originVideoTrack = s, (d = this.originVideoTrack) == null || d.addEventListener("ended", this.onVideoTrackEnded), this.videoSource = t || ui.Camera, this.updateVideoTrack(s)), n && (this.originAudioTrack = n, (b = this.originAudioTrack) == null || b.addEventListener("ended", this.onAudioTrackEnded), this.audioSource = i || Ti.Microphone, this.updateAudioTrack(n));
|
|
6869
6876
|
});
|
|
6870
6877
|
}
|
|
6871
6878
|
get currentProfile() {
|
|
@@ -6948,7 +6955,7 @@ class Fa extends He {
|
|
|
6948
6955
|
}
|
|
6949
6956
|
updateVideoProfile(e, t, i = !1) {
|
|
6950
6957
|
return I(this, null, function* () {
|
|
6951
|
-
this._profileManager || (this._profileManager = new cr(this.type ===
|
|
6958
|
+
this._profileManager || (this._profileManager = new cr(this.type === Ne.AliRtcSdkStreamTypeScreen ? Oa : vr)), e && this._profileManager.updateProfile(e, t), yield this._profileManager.setVideoProfile(this.originVideoTrack, this._publishVideoStream, i);
|
|
6952
6959
|
});
|
|
6953
6960
|
}
|
|
6954
6961
|
get videoProfile() {
|
|
@@ -6956,7 +6963,7 @@ class Fa extends He {
|
|
|
6956
6963
|
return (e = this.profileManager) == null ? void 0 : e.videoProfile;
|
|
6957
6964
|
}
|
|
6958
6965
|
setVideoContentHint(e) {
|
|
6959
|
-
this._profileManager || (this._profileManager = new cr(this.type ===
|
|
6966
|
+
this._profileManager || (this._profileManager = new cr(this.type === Ne.AliRtcSdkStreamTypeScreen ? Oa : vr)), this._profileManager.setContentHint(this.currentVideoTrack, e);
|
|
6960
6967
|
}
|
|
6961
6968
|
updateAudioProfile(e) {
|
|
6962
6969
|
return I(this, null, function* () {
|
|
@@ -6978,20 +6985,20 @@ class Fa extends He {
|
|
|
6978
6985
|
return t > -1 && (e.clear(this), this.plugins.splice(t, 1), !0);
|
|
6979
6986
|
}
|
|
6980
6987
|
}
|
|
6981
|
-
var bc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor,
|
|
6988
|
+
var bc = Object.defineProperty, vc = Object.getOwnPropertyDescriptor, pt = (r, a, e, t) => {
|
|
6982
6989
|
for (var i, s = t > 1 ? void 0 : t ? vc(a, e) : a, n = r.length - 1; n >= 0; n--)
|
|
6983
6990
|
(i = r[n]) && (s = (t ? i(a, e, s) : i(s)) || s);
|
|
6984
6991
|
return t && s && bc(a, e, s), s;
|
|
6985
|
-
},
|
|
6986
|
-
const ct = (
|
|
6992
|
+
}, Lt;
|
|
6993
|
+
const ct = (Lt = class extends He {
|
|
6987
6994
|
constructor(e, t) {
|
|
6988
6995
|
super();
|
|
6989
6996
|
g(this, "pluginManager");
|
|
6990
6997
|
g(this, "slsReporter");
|
|
6991
6998
|
g(this, "publishingCameraVideoStream");
|
|
6992
6999
|
g(this, "publishingScreenVideoStream");
|
|
6993
|
-
g(this, "cameraStreamInfo", new Fa(
|
|
6994
|
-
g(this, "screenStreamInfo", new Fa(
|
|
7000
|
+
g(this, "cameraStreamInfo", new Fa(Ne.AliRtcSdkStreamTypeCapture));
|
|
7001
|
+
g(this, "screenStreamInfo", new Fa(Ne.AliRtcSdkStreamTypeScreen));
|
|
6995
7002
|
g(this, "streamInfos", [this.cameraStreamInfo, this.screenStreamInfo]);
|
|
6996
7003
|
g(this, "_audioCaptureDisabled", !1);
|
|
6997
7004
|
g(this, "_cameraCaptureDisabled", !1);
|
|
@@ -6999,20 +7006,20 @@ const ct = (Mt = class extends He {
|
|
|
6999
7006
|
g(this, "_publishLocalVideoStreamEnabled", !0);
|
|
7000
7007
|
g(this, "_publishLocalScreenStreamEnabled", !0);
|
|
7001
7008
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t, this.cameraStreamInfo.on("videotrackended", () => I(this, null, function* () {
|
|
7002
|
-
yield this.stopLocalStream({ video: !0 }), this.emit("trackended",
|
|
7009
|
+
yield this.stopLocalStream({ video: !0 }), this.emit("trackended", Jt.VideoTrackEnded);
|
|
7003
7010
|
})), this.cameraStreamInfo.on("audiotrackended", () => I(this, null, function* () {
|
|
7004
|
-
yield this.stopLocalStream({ audio: !0 }), this.emit("trackended",
|
|
7011
|
+
yield this.stopLocalStream({ audio: !0 }), this.emit("trackended", Jt.AudioTrackEnded);
|
|
7005
7012
|
})), this.screenStreamInfo.on("videotrackended", () => I(this, null, function* () {
|
|
7006
|
-
yield this.stopLocalStream({ screen: !0 }), this.emit("trackended",
|
|
7013
|
+
yield this.stopLocalStream({ screen: !0 }), this.emit("trackended", Jt.ScreenTrackEnded);
|
|
7007
7014
|
})), this.pluginManager.on("added", (i) => I(this, null, function* () {
|
|
7008
|
-
if (V.info(`[${
|
|
7015
|
+
if (V.info(`[${Lt.logName}]`, "plugin added", i.name), !i.isSupported("7.1.3-beta.1"))
|
|
7009
7016
|
return console.warn(`${i.name} is not supported!!!`), void i.emit("unsupported");
|
|
7010
7017
|
try {
|
|
7011
7018
|
yield i.init();
|
|
7012
7019
|
} catch (s) {
|
|
7013
|
-
i.emit("error", O.fromError(s,
|
|
7020
|
+
i.emit("error", O.fromError(s, Mt.AliRtcPluginErrorInitError));
|
|
7014
7021
|
}
|
|
7015
|
-
i.streamType ===
|
|
7022
|
+
i.streamType === Ne.AliRtcSdkStreamTypeCapture && (this.cameraStreamInfo.addPlugin(i), yield this.cameraStreamInfo.process(this.streamInfos)), i.streamType === Ne.AliRtcSdkStreamTypeScreen && (this.screenStreamInfo.addPlugin(i), yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
|
|
7016
7023
|
})), this.pluginManager.on("removed", (i) => I(this, null, function* () {
|
|
7017
7024
|
this.cameraStreamInfo.removePlugin(i) && (yield this.cameraStreamInfo.process(this.streamInfos)), this.screenStreamInfo.removePlugin(i) && (yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
|
|
7018
7025
|
})), this.pluginManager.on("updated", () => I(this, null, function* () {
|
|
@@ -7108,10 +7115,10 @@ const ct = (Mt = class extends He {
|
|
|
7108
7115
|
})(e);
|
|
7109
7116
|
let l;
|
|
7110
7117
|
if (h) {
|
|
7111
|
-
i || (o === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), o =
|
|
7118
|
+
i || (o === !0 && this.cameraStreamInfo.cameraVideoConstraints ? (yield this.setAvailableCameraDeviceId(), o = $({}, this.cameraStreamInfo.cameraVideoConstraints)) : typeof o == "object" && (yield this.setAvailableCameraDeviceId(), o = $($({}, o), this.cameraStreamInfo.cameraVideoConstraints)), c === void 0 && this.audioCaptureDisabled ? c = !1 : c && (c === !0 && this.cameraStreamInfo.micAudioConstraints ? (yield this.setAvailableMicrophoneDeviceId(), c = $({}, this.cameraStreamInfo.micAudioConstraints)) : typeof c == "object" && (yield this.setAvailableMicrophoneDeviceId(), c = $($({}, c), this.cameraStreamInfo.micAudioConstraints)), this._audioCaptureDisabled = !1));
|
|
7112
7119
|
const b = Date.now();
|
|
7113
7120
|
try {
|
|
7114
|
-
l = yield Se.createStream({ audio: c, video: o, screen: t, custom: !!i, mediaStream: i, skipProfile: !0 }), V.info(`[${
|
|
7121
|
+
l = yield Se.createStream({ audio: c, video: o, screen: t, custom: !!i, mediaStream: i, skipProfile: !0 }), V.info(`[${Lt.logName}]`, "createLocalStream", { audio: c, video: o, screen: t, custom: !!i, time: Date.now() - b }), c && !i && this.slsReporter.reportAudio(null, Date.now() - b, ((d = l == null ? void 0 : l.audioTrack) == null ? void 0 : d.label) || ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - b);
|
|
7115
7122
|
} catch (u) {
|
|
7116
7123
|
throw c && !i && this.slsReporter.reportAudio(u, Date.now() - b, ""), t && !i && this.slsReporter.reportScreen(null, Date.now() - b), u;
|
|
7117
7124
|
}
|
|
@@ -7122,7 +7129,7 @@ const ct = (Mt = class extends He {
|
|
|
7122
7129
|
u && (yield l.setAudioProfile(u));
|
|
7123
7130
|
}
|
|
7124
7131
|
}
|
|
7125
|
-
return Se.SystenUtil.isIos && Se.SystenUtil.compareVersion("15.1") && !Se.SystenUtil.compareVersion("15.2") && (yield
|
|
7132
|
+
return Se.SystenUtil.isIos && Se.SystenUtil.compareVersion("15.1") && !Se.SystenUtil.compareVersion("15.2") && (yield Pt(1e3)), yield this.updateStreams(), l;
|
|
7126
7133
|
});
|
|
7127
7134
|
}
|
|
7128
7135
|
stopLocalStream(e) {
|
|
@@ -7143,7 +7150,7 @@ const ct = (Mt = class extends He {
|
|
|
7143
7150
|
const o = this.publishStreams;
|
|
7144
7151
|
try {
|
|
7145
7152
|
if (!(o.audio || o.video || o.videoSmall || o.screen))
|
|
7146
|
-
throw V.error(`[${
|
|
7153
|
+
throw V.error(`[${Lt.logName}]`, "no tracks founded"), new O(B.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
|
|
7147
7154
|
const b = new MediaStream();
|
|
7148
7155
|
(c = o.audio) != null && c.audioTrack && b.addTrack(o.audio.audioTrack), (h = o.video) != null && h.videoTrack ? (b.addTrack(o.video.videoTrack), i = o.videoSmall, s = o.screen) : (l = o.screen) != null && l.videoTrack && (t = k.Screen, b.addTrack((d = o.screen) == null ? void 0 : d.videoTrack), n = !0), e = yield Sn(b), n ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
|
|
7149
7156
|
} catch (b) {
|
|
@@ -7178,21 +7185,21 @@ const ct = (Mt = class extends He {
|
|
|
7178
7185
|
}
|
|
7179
7186
|
setCameraVideoConstraints(e) {
|
|
7180
7187
|
var t;
|
|
7181
|
-
this.cameraStreamInfo.cameraVideoConstraints =
|
|
7188
|
+
this.cameraStreamInfo.cameraVideoConstraints = $($({}, (t = this.cameraStreamInfo.cameraVideoConstraints) != null ? t : {}), e);
|
|
7182
7189
|
}
|
|
7183
7190
|
setMicAudioConstraints(e) {
|
|
7184
7191
|
var t;
|
|
7185
|
-
this.cameraStreamInfo.micAudioConstraints =
|
|
7192
|
+
this.cameraStreamInfo.micAudioConstraints = $($({}, (t = this.cameraStreamInfo.micAudioConstraints) != null ? t : {}), e);
|
|
7186
7193
|
}
|
|
7187
|
-
}, g(
|
|
7188
|
-
|
|
7194
|
+
}, g(Lt, "logName", "LocalStreamManager"), Lt);
|
|
7195
|
+
pt([T(([r]) => {
|
|
7189
7196
|
const { audio: a, video: e, screen: t, custom: i, skipProfile: s, videoProfile: n, screenProfile: o } = r;
|
|
7190
7197
|
return [{ audio: a, video: e, screen: t, custom: i, skipProfile: s, videoProfile: n, screenProfile: o }];
|
|
7191
|
-
})], ct.prototype, "createLocalStream", 1),
|
|
7198
|
+
})], ct.prototype, "createLocalStream", 1), pt([T(U)], ct.prototype, "stopLocalStream", 1), pt([T()], ct.prototype, "createHTTPPublishStream", 1), pt([T()], ct.prototype, "stop", 1), pt([T(U)], ct.prototype, "setVideoProfile", 1), pt([T(U)], ct.prototype, "setVideoContentHint", 1), pt([T(U)], ct.prototype, "setAudioProfile", 1), pt([T(U)], ct.prototype, "setScreenProfile", 1), pt([T(U)], ct.prototype, "setScreenContentHint", 1), pt([T(U)], ct.prototype, "setCameraVideoConstraints", 1), pt([T(U)], ct.prototype, "setMicAudioConstraints", 1);
|
|
7192
7199
|
let yc = ct;
|
|
7193
|
-
class Ac extends
|
|
7200
|
+
class Ac extends xt {
|
|
7194
7201
|
constructor() {
|
|
7195
|
-
super("AliRtcScreenStandardize",
|
|
7202
|
+
super("AliRtcScreenStandardize", Ne.AliRtcSdkStreamTypeScreen);
|
|
7196
7203
|
g(this, "canvas");
|
|
7197
7204
|
g(this, "lastWidth");
|
|
7198
7205
|
g(this, "lastHeight");
|
|
@@ -7277,9 +7284,9 @@ class Ac extends Jt {
|
|
|
7277
7284
|
this.canvas = void 0, this.lastWidth = void 0, this.lastHeight = void 0, super.clear(e);
|
|
7278
7285
|
}
|
|
7279
7286
|
}
|
|
7280
|
-
class Rc extends
|
|
7287
|
+
class Rc extends xt {
|
|
7281
7288
|
constructor() {
|
|
7282
|
-
super("blankAudio",
|
|
7289
|
+
super("blankAudio", Ne.AliRtcSdkStreamTypeCapture, fi.BOTH);
|
|
7283
7290
|
g(this, "hasTrack", !1);
|
|
7284
7291
|
g(this, "oscillator", null);
|
|
7285
7292
|
g(this, "audioTrack", null);
|
|
@@ -7387,9 +7394,9 @@ class _c {
|
|
|
7387
7394
|
return a / 100;
|
|
7388
7395
|
}
|
|
7389
7396
|
}
|
|
7390
|
-
class wc extends
|
|
7397
|
+
class wc extends xt {
|
|
7391
7398
|
constructor() {
|
|
7392
|
-
super("audioMixer",
|
|
7399
|
+
super("audioMixer", Ne.AliRtcSdkStreamTypeCapture, fi.AUDIO);
|
|
7393
7400
|
g(this, "audioMixer");
|
|
7394
7401
|
g(this, "primaryAudioTrackId");
|
|
7395
7402
|
g(this, "screenAudioTrackId");
|
|
@@ -7409,16 +7416,16 @@ class wc extends Jt {
|
|
|
7409
7416
|
}
|
|
7410
7417
|
shouldUpdate(e, t) {
|
|
7411
7418
|
var n, o;
|
|
7412
|
-
if (e.type !==
|
|
7419
|
+
if (e.type !== Ne.AliRtcSdkStreamTypeCapture)
|
|
7413
7420
|
return !1;
|
|
7414
|
-
const i = t.find((c) => c.type ===
|
|
7421
|
+
const i = t.find((c) => c.type === Ne.AliRtcSdkStreamTypeCapture), s = t.find((c) => c.type === Ne.AliRtcSdkStreamTypeScreen);
|
|
7415
7422
|
return !(this.primaryAudioTrackId === ((n = i == null ? void 0 : i.currentAudioTrack) == null ? void 0 : n.id) && this.screenAudioTrackId === ((o = s == null ? void 0 : s.currentAudioTrack) == null ? void 0 : o.id) && !this.dirty);
|
|
7416
7423
|
}
|
|
7417
7424
|
process(e, t) {
|
|
7418
7425
|
return I(this, null, function* () {
|
|
7419
7426
|
var o, c;
|
|
7420
7427
|
this.dirty = !1;
|
|
7421
|
-
const i = t.find((h) => h.type ===
|
|
7428
|
+
const i = t.find((h) => h.type === Ne.AliRtcSdkStreamTypeScreen), s = e.currentAudioTrack, n = i == null ? void 0 : i.currentAudioTrack;
|
|
7422
7429
|
if (!n && this.options.audio === 1)
|
|
7423
7430
|
return this.audioMixer && (this.audioMixer.dispose(), this.audioMixer = void 0), this.primaryAudioTrackId = s == null ? void 0 : s.id, void e.updateAudioTrack(s);
|
|
7424
7431
|
this.audioMixer || (this.audioMixer = new _c()), yield this.audioMixer.resume(), this.primaryAudioTrackId && (s == null ? void 0 : s.id) !== this.primaryAudioTrackId && ((o = this.audioMixer) == null || o.removeTrack(this.primaryAudioTrackId)), s && !this.audioMixer.hasTrack(s == null ? void 0 : s.id) && this.audioMixer.addTrack(s), this.primaryAudioTrackId = s == null ? void 0 : s.id, this.screenAudioTrackId && (n == null ? void 0 : n.id) !== this.screenAudioTrackId && ((c = this.audioMixer) == null || c.removeTrack(this.screenAudioTrackId)), n && !this.audioMixer.hasTrack(n == null ? void 0 : n.id) && this.audioMixer.addTrack(n), this.screenAudioTrackId = n == null ? void 0 : n.id, this.updateVolume(), e.updateAudioTrack(this.audioMixer.getAudioTrack());
|
|
@@ -7713,7 +7720,7 @@ onmessage = function(evt) {
|
|
|
7713
7720
|
this.worker.postMessage({ type: "startRender", readable: i, writable: s, width: this.targetWidth, height: this.targetHeight, frameRate: this.targetFrameRate }, [i, s]);
|
|
7714
7721
|
}
|
|
7715
7722
|
updateOptions(e) {
|
|
7716
|
-
super.updateOptions(e), this.worker && this.worker.postMessage(
|
|
7723
|
+
super.updateOptions(e), this.worker && this.worker.postMessage($({ type: "updateOptions" }, e));
|
|
7717
7724
|
}
|
|
7718
7725
|
dispose() {
|
|
7719
7726
|
try {
|
|
@@ -7733,7 +7740,7 @@ class Ar {
|
|
|
7733
7740
|
return Wa.isSupport() ? new Wa(a, e) : za.isSupport() ? new za(a, e) : new Ec(a, e);
|
|
7734
7741
|
}
|
|
7735
7742
|
}
|
|
7736
|
-
class Ic extends
|
|
7743
|
+
class Ic extends xt {
|
|
7737
7744
|
constructor() {
|
|
7738
7745
|
super(...arguments);
|
|
7739
7746
|
g(this, "hasVideoTrack", !1);
|
|
@@ -7769,7 +7776,7 @@ class Ic extends Jt {
|
|
|
7769
7776
|
super.clear(e), this.hasVideoTrack = !1, e == null || e.updateDualVideoTrack();
|
|
7770
7777
|
}
|
|
7771
7778
|
}
|
|
7772
|
-
function
|
|
7779
|
+
function Zt(r, a, e, t) {
|
|
7773
7780
|
return new (e || (e = Promise))(function(i, s) {
|
|
7774
7781
|
function n(h) {
|
|
7775
7782
|
try {
|
|
@@ -7794,9 +7801,9 @@ function Qt(r, a, e, t) {
|
|
|
7794
7801
|
c((t = t.apply(r, a || [])).next());
|
|
7795
7802
|
});
|
|
7796
7803
|
}
|
|
7797
|
-
var
|
|
7804
|
+
var Dt, gt;
|
|
7798
7805
|
function Ka() {
|
|
7799
|
-
return
|
|
7806
|
+
return Zt(this, void 0, void 0, function* () {
|
|
7800
7807
|
let r = !1;
|
|
7801
7808
|
try {
|
|
7802
7809
|
r = yield (() => I(this, null, function* () {
|
|
@@ -7808,30 +7815,30 @@ function Ka() {
|
|
|
7808
7815
|
return console.log("isSupportedSIMD", r), r;
|
|
7809
7816
|
});
|
|
7810
7817
|
}
|
|
7811
|
-
typeof SuppressedError == "function" && SuppressedError, (
|
|
7818
|
+
typeof SuppressedError == "function" && SuppressedError, (gt = Dt || (Dt = {}))[gt.ERROR = 0] = "ERROR", gt[gt.WARN = 1] = "WARN", gt[gt.INFO = 2] = "INFO", gt[gt.LOG = 3] = "LOG", gt[gt.DEBUG = 4] = "DEBUG";
|
|
7812
7819
|
class ve {
|
|
7813
7820
|
static error(...a) {
|
|
7814
7821
|
var e;
|
|
7815
|
-
ve.logLevel >=
|
|
7822
|
+
ve.logLevel >= Dt.ERROR && ((e = console.error) === null || e === void 0 || e.call(console, `[${ve.logTag}] `, ...a));
|
|
7816
7823
|
}
|
|
7817
7824
|
static warn(...a) {
|
|
7818
7825
|
var e;
|
|
7819
|
-
ve.logLevel >=
|
|
7826
|
+
ve.logLevel >= Dt.WARN && ((e = console.warn) === null || e === void 0 || e.call(console, `[${ve.logTag}] `, ...a));
|
|
7820
7827
|
}
|
|
7821
7828
|
static info(...a) {
|
|
7822
7829
|
var e;
|
|
7823
|
-
ve.logLevel >=
|
|
7830
|
+
ve.logLevel >= Dt.INFO && ((e = console.info) === null || e === void 0 || e.call(console, `[${ve.logTag}] `, ...a));
|
|
7824
7831
|
}
|
|
7825
7832
|
static log(...a) {
|
|
7826
7833
|
var e;
|
|
7827
|
-
ve.logLevel >=
|
|
7834
|
+
ve.logLevel >= Dt.LOG && ((e = console.log) === null || e === void 0 || e.call(console, `[${ve.logTag}] `, ...a));
|
|
7828
7835
|
}
|
|
7829
7836
|
static debug(...a) {
|
|
7830
7837
|
var e;
|
|
7831
|
-
ve.logLevel >=
|
|
7838
|
+
ve.logLevel >= Dt.DEBUG && ((e = console.debug) === null || e === void 0 || e.call(console, `[${ve.logTag}] `, ...a));
|
|
7832
7839
|
}
|
|
7833
7840
|
}
|
|
7834
|
-
ve.logLevel =
|
|
7841
|
+
ve.logLevel = Dt.WARN, ve.logTag = "aliyun-audio-3a";
|
|
7835
7842
|
class Tc {
|
|
7836
7843
|
}
|
|
7837
7844
|
class $a extends Tc {
|
|
@@ -7845,7 +7852,7 @@ class $a extends Tc {
|
|
|
7845
7852
|
}();
|
|
7846
7853
|
}
|
|
7847
7854
|
static isSupportedSIMD() {
|
|
7848
|
-
return
|
|
7855
|
+
return Zt(this, void 0, void 0, function* () {
|
|
7849
7856
|
return yield Ka();
|
|
7850
7857
|
});
|
|
7851
7858
|
}
|
|
@@ -7856,16 +7863,16 @@ class $a extends Tc {
|
|
|
7856
7863
|
super(), this.channelCount = 1, this.sampleRate = 48e3, this.collectDumpOutputData = [], this.collectDumpNearInputData = [], this.collectDumpFarInputData = [], this.collectDumpMetaData = [], this.statUpdateTimer = 0, this.statUpdateInterval = 5e3, this.options = Object.assign({ aecOn: !0, ansOn: !0, agcOn: !0, hdOn: !1, ansMode: 1, dumpOn: !1, aiaecOn: !1, wasmCdnPath: "https://g.alicdn.com/code/npm/@ali/aliyun-audio-3a/0.0.6/" }, a || {});
|
|
7857
7864
|
}
|
|
7858
7865
|
initWASM(a, e, t) {
|
|
7859
|
-
return
|
|
7866
|
+
return Zt(this, void 0, void 0, function* () {
|
|
7860
7867
|
ve.log("initWASM", a, e, t);
|
|
7861
|
-
const i = (n) =>
|
|
7868
|
+
const i = (n) => Zt(this, void 0, void 0, function* () {
|
|
7862
7869
|
try {
|
|
7863
7870
|
const o = yield fetch(n, { credentials: "same-origin" });
|
|
7864
7871
|
return o.ok || this.onLoadError(new Error(`Failed to fetch WASM: ${o.status}:${o.statusText}, url:${n}`)), o.arrayBuffer();
|
|
7865
7872
|
} catch (o) {
|
|
7866
7873
|
return this.onLoadError(new Error("WASM load error")), ve.error("Error fetching WASM:", o), new Uint8Array(0);
|
|
7867
7874
|
}
|
|
7868
|
-
}), s = (n) =>
|
|
7875
|
+
}), s = (n) => Zt(this, void 0, void 0, function* () {
|
|
7869
7876
|
return fetch(n).then((o) => o.text());
|
|
7870
7877
|
});
|
|
7871
7878
|
try {
|
|
@@ -7880,7 +7887,7 @@ class $a extends Tc {
|
|
|
7880
7887
|
});
|
|
7881
7888
|
}
|
|
7882
7889
|
createProcessor(a, e, t, i, s) {
|
|
7883
|
-
return
|
|
7890
|
+
return Zt(this, void 0, void 0, function* () {
|
|
7884
7891
|
this.audioContext = a, this.audioContext.resume(), this.channelCount = t, this.sampleRate = i;
|
|
7885
7892
|
try {
|
|
7886
7893
|
const c = new Blob(['!function(){"use strict";function t(t,e,a,n){return new(a||(a=Promise))((function(s,i){function o(t){try{h(n.next(t))}catch(t){i(t)}}function r(t){try{h(n.throw(t))}catch(t){i(t)}}function h(t){var e;t.done?s(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(o,r)}h((n=n.apply(t,e||[])).next())}))}var e;"function"==typeof SuppressedError&&SuppressedError,function(t){t[t.ERROR=0]="ERROR",t[t.WARN=1]="WARN",t[t.INFO=2]="INFO",t[t.LOG=3]="LOG",t[t.DEBUG=4]="DEBUG"}(e||(e={}));class a{static error(...t){var n;a.logLevel>=e.ERROR&&(null===(n=console.error)||void 0===n||n.call(console,`[${a.logTag}] `,...t))}static warn(...t){var n;a.logLevel>=e.WARN&&(null===(n=console.warn)||void 0===n||n.call(console,`[${a.logTag}] `,...t))}static info(...t){var n;a.logLevel>=e.INFO&&(null===(n=console.info)||void 0===n||n.call(console,`[${a.logTag}] `,...t))}static log(...t){var n;a.logLevel>=e.LOG&&(null===(n=console.log)||void 0===n||n.call(console,`[${a.logTag}] `,...t))}static debug(...t){var n;a.logLevel>=e.DEBUG&&(null===(n=console.debug)||void 0===n||n.call(console,`[${a.logTag}] `,...t))}}a.logLevel=e.WARN,a.logTag="aliyun-audio-3a";const n=Float32Array.BYTES_PER_ELEMENT,s=Uint16Array.BYTES_PER_ELEMENT;class i{constructor(t,e,a,n,s){this._channelData=[],this._name=t,this._isInitialized=!1,this._module=e,this._length=a,this._ringLength=2*a,this._maxChannelCount=s?Math.min(s,32):n,this._channelCount=n,this._allocateHeap(),this._isInitialized=!0,this._readIndex=0,this._writeIndex=0,this._framesAvailable=0,this._channelDataLocal=[];for(let t=0;t<this._channelCount;++t)this._channelDataLocal[t]=new Float32Array(this._ringLength)}_allocateHeap(){const t=this._length*n,e=this._channelCount*t;this._dataPtr=this._module._malloc(e),this._channelData=[];for(let e=0;e<this._channelCount;++e){const a=this._dataPtr+e*t,n=a+t;this._channelData[e]=this._module.HEAPF32.subarray(a>>s,n>>s)}}adaptChannel(t){t<this._maxChannelCount&&(this._channelCount=t)}get length(){return this._isInitialized?this._length:null}get numberOfChannels(){return this._isInitialized?this._channelCount:null}get maxChannelCount(){return this._isInitialized?this._maxChannelCount:null}getChannelData(t){return void 0!==t&&t>=this._channelCount?null:void 0===t?this._channelData:this._channelData[t]}getHeapAddress(){return this._dataPtr}getPointer(){return this._dataPtr}free(){this._isInitialized=!1,null!==this._dataPtr&&this._module._free(this._dataPtr),this._channelData=[]}get framesAvailable(){return this._framesAvailable}push(t){const e=t[0].length;for(let a=0;a<e;++a){for(let e=0;e<this._channelCount;++e)this._channelDataLocal[e][this._writeIndex]=t[e][a];this._writeIndex=(this._writeIndex+1)%this._ringLength}this._framesAvailable+=e,this._framesAvailable>this._ringLength&&(console.warn(this._name,"Too many frames available, overflow"),this._framesAvailable=this._ringLength,this._writeIndex=0)}pull(t){if(0===this._framesAvailable)return void console.warn(this._name,"No frames available");const e=t[0].length;for(let a=0;a<e;++a){for(let e=0;e<this._channelCount;++e)t[e][a]=this._channelDataLocal[e][this._readIndex];this._readIndex=(this._readIndex+1)%this._ringLength}this._framesAvailable-=e,this._framesAvailable<0&&(this._framesAvailable=0,this._readIndex=0)}}class o{constructor(t){this.inited=!1,this.handle=null,this.channelCount=1,this.isEnable=!0,this.dumpAudioData=!1,this.kernelBufferSize=512,this.node=t,this.onDumpOutputDataFunction=null,this.onDumpNearDataFunction=null,this.onDumpFarDataFunction=null,this.onDumpMetaDataFunction=null,this.wasmInvoker=null,this._nearAudioBuffer={},this._outputAudioBuffer={}}destructor(){this.wasmInvoker=null,this.handle=null}init(n){return t(this,void 0,void 0,(function*(){const{wasmBuffer:t,audioModuleScript:s,channelCount:o=1,sampleRate:r=44100,dumpAudioData:h=!1,logLevel:l=e.DEBUG}=n;a.logLevel=l,a.log("AudioAPM init",JSON.stringify(n)),this.channelCount=o,this.dumpAudioData=h;try{const e=new Function(`let module={};let exports={};${s}; return module`)();this.wasmInvoker=yield e.exports({wasmBinary:t})}catch(t){this.node.port.postMessage({type:"error",message:"audioModule init error"}),a.error(t)}this._nearAudioBuffer=new i("inBuffer",this.wasmInvoker,this.kernelBufferSize,2*this.channelCount,32),this._outputAudioBuffer=new i("outBuffer",this.wasmInvoker,this.kernelBufferSize,this.channelCount,32);const u=this.wasmInvoker.addFunction(((t,e)=>{const a=this.wasmInvoker.HEAPU8.subarray(t,t+e),n=String.fromCharCode.apply(null,a);this.node&&this.node.port&&this.node.port.postMessage({type:"output_log",message:"output_log",data:n})}),"vii");if(this.wasmInvoker.__apm_log_callback(u),this.handle=this.wasmInvoker.__apm_create(n.aecOn?1:0,n.ansOn?1:0,n.agcOn?1:0,n.hdOn?1:0,r,o,n.dumpOn?1:0,this.kernelBufferSize),n.aiaecOn){const t=102;this.wasmInvoker.__apm_set_param(this.handle,t,7)}if(n.useHardOnly){const t=108;this.wasmInvoker.__apm_set_param(this.handle,t,1)}this.node.port.postMessage({type:"init_done",message:"init done"}),this.inited=!0}))}getStatData(){if(this.wasmInvoker&&this.isEnable){let t=this.wasmInvoker.__apm_get_stat(this.handle),e=this.wasmInvoker.UTF8ToString(t);this.wasmInvoker._free(t),this.node&&this.node.port&&this.node.port.postMessage({type:"apm_stat_data",message:"apm_stat_data",data:e})}}onOutputLog(t){console.log("[WASM_LOG]",t)}destory(){return t(this,void 0,void 0,(function*(){var t;try{null===(t=this.wasmInvoker)||void 0===t||t.__apm_destory(this.handle),this.inited=!1}catch(t){a.error(t)}finally{this.handle=null}}))}enable(){this.isEnable=!0,a.log("APM enable")}disable(){this.isEnable=!1,a.log("APM disable")}getStat(){if(null==this.wasmInvoker||null==this.handle)return"";let t=this.wasmInvoker.__apm_get_stat(this.handle),e=this.wasmInvoker.UTF8ToString(t);return this.wasmInvoker._free(t),e}startDump(){this.onDumpOutputDataFunction=this.wasmInvoker.addFunction(((t,e)=>{const a=this.wasmInvoker.HEAPU8.subarray(t,t+e),n=new Uint8Array(a);this.node&&this.node.port&&this.node.port.postMessage({type:"dump_output_data",message:"dump_output_data",data:n})}),"vii"),this.onDumpNearDataFunction=this.wasmInvoker.addFunction(((t,e)=>{const a=this.wasmInvoker.HEAPU8.subarray(t,t+e),n=new Uint8Array(a);this.node&&this.node.port&&this.node.port.postMessage({type:"dump_near_data",message:"dump_near_data",data:n})}),"vii"),this.onDumpFarDataFunction=this.wasmInvoker.addFunction(((t,e)=>{const a=this.wasmInvoker.HEAPU8.subarray(t,t+e),n=new Uint8Array(a);this.node&&this.node.port&&this.node.port.postMessage({type:"dump_far_data",message:"dump_far_data",data:n})}),"vii"),this.onDumpMetaDataFunction=this.wasmInvoker.addFunction(((t,e)=>{const a=this.wasmInvoker.HEAPU8.subarray(t,t+e),n=new Uint8Array(a);this.node&&this.node.port&&this.node.port.postMessage({type:"dump_meta_data",message:"dump_meta_data",data:n})}),"vii"),this.wasmInvoker.__apm_dump_start(this.handle,this.onDumpOutputDataFunction,this.onDumpNearDataFunction,this.onDumpFarDataFunction,this.onDumpMetaDataFunction)}stopDump(){this.wasmInvoker.__apm_dump_stop(this.handle),this.wasmInvoker&&(this.wasmInvoker.removeFunction(this.onDumpOutputDataFunction),this.wasmInvoker.removeFunction(this.onDumpNearDataFunction),this.wasmInvoker.removeFunction(this.onDumpFarDataFunction),this.wasmInvoker.removeFunction(this.onDumpMetaDataFunction))}process(t,e,a){if(!this.inited||!this.isEnable){for(let e=0;e<this.channelCount;e++){a[e].set(t[e])}return}const n=this.channelCount;let s=0;if(this.handle&&this.isEnable){const i=t[0].length,o=[];for(let a=0;a<n;a++)e[a]&&e[a].length>0&&(s=1),o.push(t[a]||new Float32Array(i).fill(0)),o.push(e[a]||new Float32Array(i).fill(0));if(this._nearAudioBuffer.push(o),this._nearAudioBuffer.framesAvailable>=this.kernelBufferSize){this._nearAudioBuffer.pull(this._nearAudioBuffer.getChannelData()),this.wasmInvoker.__apm_process_new(this.handle,this._nearAudioBuffer.getHeapAddress(),this._outputAudioBuffer.getHeapAddress(),n,s);const t=this._outputAudioBuffer.getChannelData();this._outputAudioBuffer.push(t)}this._outputAudioBuffer.pull(a)}}}class r extends AudioWorkletProcessor{constructor(){super(),this.apm=new o(this),this.port.onmessage=t=>{const e=t.data||{};switch(a.log("onmessage data",e),e.type){case"init":this.apm.init(e);break;case"destroy":this.apm.destory();break;case"enable":this.apm.enable();break;case"disable":this.apm.disable();break;case"start_dump":this.apm.startDump();break;case"stop_dump":this.apm.stopDump();break;case"get_stat_data":this.apm.getStatData();break;default:a.warn("Unknown message type:",e.type)}}}process(t,e){const a=t[0],n=t.length>1?t[1]:[],s=e[0];return this.apm.process(a,n,s),!0}}registerProcessor("aliyun-web-3a-processor",r)}();\n'], { type: "application/javascript" }), h = URL.createObjectURL(c);
|
|
@@ -7999,17 +8006,18 @@ class $a extends Tc {
|
|
|
7999
8006
|
}
|
|
8000
8007
|
}
|
|
8001
8008
|
const ni = "[AliyunAudio3A] ";
|
|
8002
|
-
class Cc extends
|
|
8009
|
+
class Cc extends xt {
|
|
8003
8010
|
constructor(e) {
|
|
8004
|
-
super("AliRtcAudioProcessPlugin",
|
|
8011
|
+
super("AliRtcAudioProcessPlugin", Ne.AliRtcSdkStreamTypeCapture, fi.AUDIO);
|
|
8005
8012
|
g(this, "audioProcessor");
|
|
8006
8013
|
g(this, "slsReporter");
|
|
8007
8014
|
g(this, "enableSoft3ACheck", !1);
|
|
8015
|
+
g(this, "useHardOnly", !1);
|
|
8008
8016
|
g(this, "lastDiffOutputLog", "");
|
|
8009
8017
|
g(this, "audioContext", new AudioContext({ sampleRate: 48e3 }));
|
|
8010
8018
|
g(this, "farNode");
|
|
8011
8019
|
g(this, "createNode", (e) => this.audioContext.createMediaStreamSource(new MediaStream([e])));
|
|
8012
|
-
this.options = e, this.slsReporter = e == null ? void 0 : e.slsReporter, this.enableSoft3ACheck = (e == null ? void 0 : e.enableSoft3ACheck) || !1, this.zIndex = 7, document.addEventListener("click", this.activeAudioContext);
|
|
8020
|
+
this.options = e, this.slsReporter = e == null ? void 0 : e.slsReporter, this.enableSoft3ACheck = (e == null ? void 0 : e.enableSoft3ACheck) || !1, this.useHardOnly = (e == null ? void 0 : e.useHardOnly) || !1, this.zIndex = 7, document.addEventListener("click", this.activeAudioContext);
|
|
8013
8021
|
}
|
|
8014
8022
|
activeAudioContext() {
|
|
8015
8023
|
this.audioContext.resume(), document.removeEventListener("click", this.activeAudioContext);
|
|
@@ -8023,7 +8031,7 @@ class Cc extends Jt {
|
|
|
8023
8031
|
}
|
|
8024
8032
|
setOptions(e) {
|
|
8025
8033
|
var t;
|
|
8026
|
-
!this.farNode && e.farMediaStream && (this.farNode = this.audioContext.createMediaStreamSource(e.farMediaStream), this.audioProcessor && ((t = this.audioProcessor) == null || t.addFarNode(this.farNode)), this.options =
|
|
8034
|
+
!this.farNode && e.farMediaStream && (this.farNode = this.audioContext.createMediaStreamSource(e.farMediaStream), this.audioProcessor && ((t = this.audioProcessor) == null || t.addFarNode(this.farNode)), this.options = $($({}, this.options), e));
|
|
8027
8035
|
}
|
|
8028
8036
|
isSupported() {
|
|
8029
8037
|
return $a.isSupported();
|
|
@@ -8037,7 +8045,7 @@ class Cc extends Jt {
|
|
|
8037
8045
|
if (!e.currentAudioTrack)
|
|
8038
8046
|
return e.updateAudioTrack(), void this.clear(e);
|
|
8039
8047
|
if (!this.audioProcessor) {
|
|
8040
|
-
V.info(ni, "create audio processor this.options:", this.options), this.audioProcessor = new $a({ aecOn: !0, ansOn: !0, agcOn: !0, dumpOn: ((t = this.options) == null ? void 0 : t.dumpAudioData) || !1, aiaecOn: this.options.aiaecOn || !1, wasmCdnPath: this.options.wasmCdnPath || "https://g.alicdn.com/code/npm/@ali/aliyun-audio-3a/0.0.6/" }), this.audioProcessor.on("dumpdata", (s, n) => {
|
|
8048
|
+
V.info(ni, "create audio processor this.options:", this.options), this.audioProcessor = new $a({ aecOn: !0, ansOn: !0, agcOn: !0, dumpOn: ((t = this.options) == null ? void 0 : t.dumpAudioData) || !1, aiaecOn: this.options.aiaecOn || !1, useHardOnly: this.useHardOnly, wasmCdnPath: this.options.wasmCdnPath || "https://g.alicdn.com/code/npm/@ali/aliyun-audio-3a/0.0.6/" }), this.audioProcessor.on("dumpdata", (s, n) => {
|
|
8041
8049
|
let o = 3e3;
|
|
8042
8050
|
n.includes("far") ? o = 5e3 : n.includes("output") ? o = 1e4 : n.includes("meta") && (o = 8e3), setTimeout(() => {
|
|
8043
8051
|
const c = URL.createObjectURL(s), h = document.createElement("a");
|
|
@@ -8049,7 +8057,7 @@ class Cc extends Jt {
|
|
|
8049
8057
|
}), this.audioProcessor.on("loaderror", (s) => {
|
|
8050
8058
|
V.error(ni, "loaderror:", s == null ? void 0 : s.message), this.emit("error", s);
|
|
8051
8059
|
}), this.audioProcessor.on("outputlog", (s) => {
|
|
8052
|
-
|
|
8060
|
+
V.info(ni, "outputlog:", s), s != null && s.includes("diff") && (this.lastDiffOutputLog = s || "");
|
|
8053
8061
|
}), this.audioProcessor.on("statdata", (s) => {
|
|
8054
8062
|
var n;
|
|
8055
8063
|
if (s)
|
|
@@ -8121,7 +8129,7 @@ const Rr = (Nt = class extends He {
|
|
|
8121
8129
|
}
|
|
8122
8130
|
});
|
|
8123
8131
|
g(this, "onDataPublishStateChange", (e, t) => {
|
|
8124
|
-
t ===
|
|
8132
|
+
t === Z.AliRtcStatePublished && (this.hasPubDataChannel = !0, this.trySendReadyMsg());
|
|
8125
8133
|
});
|
|
8126
8134
|
this.self = e, this.self.on("dataPublishStateChanged", this.onDataPublishStateChange);
|
|
8127
8135
|
}
|
|
@@ -8135,7 +8143,7 @@ const Rr = (Nt = class extends He {
|
|
|
8135
8143
|
return I(this, null, function* () {
|
|
8136
8144
|
const t = JSON.stringify({ key: "aliyun_aigc", version: "1.0", type: "ready_req", data: { ready: !0 } });
|
|
8137
8145
|
try {
|
|
8138
|
-
this.self.sendDataChannelMessage(new
|
|
8146
|
+
this.self.sendDataChannelMessage(new $t(new TextEncoder().encode(t).buffer));
|
|
8139
8147
|
} catch (n) {
|
|
8140
8148
|
}
|
|
8141
8149
|
this.startReadyMsgTime || (this.startReadyMsgTime = Date.now());
|
|
@@ -8157,6 +8165,7 @@ class Mc {
|
|
|
8157
8165
|
g(this, "_useAIAEC", !1);
|
|
8158
8166
|
g(this, "_enableSoft3A", !1);
|
|
8159
8167
|
g(this, "_enableSoft3ACheck", !1);
|
|
8168
|
+
g(this, "_useHardOnly", !1);
|
|
8160
8169
|
g(this, "_dumpAudioData", !1);
|
|
8161
8170
|
g(this, "_useAudio3AConfigFromServer", !0);
|
|
8162
8171
|
a && Object.assign(this, a);
|
|
@@ -8197,6 +8206,12 @@ class Mc {
|
|
|
8197
8206
|
set enableSoft3ACheck(a) {
|
|
8198
8207
|
this._enableSoft3ACheck = a;
|
|
8199
8208
|
}
|
|
8209
|
+
get useHardOnly() {
|
|
8210
|
+
return this._useHardOnly;
|
|
8211
|
+
}
|
|
8212
|
+
set useHardOnly(a) {
|
|
8213
|
+
this._useHardOnly = a;
|
|
8214
|
+
}
|
|
8200
8215
|
get dumpAudioData() {
|
|
8201
8216
|
return this._dumpAudioData;
|
|
8202
8217
|
}
|
|
@@ -8210,8 +8225,8 @@ class Mc {
|
|
|
8210
8225
|
this._useAudio3AConfigFromServer = a;
|
|
8211
8226
|
}
|
|
8212
8227
|
loadFromLocalConfig(a) {
|
|
8213
|
-
var e, t, i, s, n, o, c, h;
|
|
8214
|
-
this.useAudio3AConfigFromServer = (e = a.useAudio3AConfigFromServer) != null ? e : this.useAudio3AConfigFromServer, this.useSysEchoCancellation = (t = a.useSysEchoCancellation) != null ? t : this.useSysEchoCancellation, this.useSysNoiseSuppression = (i = a.useSysNoiseSuppression) != null ? i : this.useSysNoiseSuppression, this.useSysAutoGainControl = (s = a.useSysAutoGainControl) != null ? s : this.useSysAutoGainControl, this.useAIAEC = (n = a.useAIAEC) != null ? n : this.useAIAEC, this.enableSoft3A = (o = a.enableSoft3A) != null ? o : this.enableSoft3A, this.dumpAudioData = (c = a.dumpAudioData) != null ? c : this.dumpAudioData, this.enableSoft3ACheck = (h = a.enableSoft3ACheck) != null ? h : this.enableSoft3ACheck;
|
|
8228
|
+
var e, t, i, s, n, o, c, h, l;
|
|
8229
|
+
this.useAudio3AConfigFromServer = (e = a.useAudio3AConfigFromServer) != null ? e : this.useAudio3AConfigFromServer, this.useSysEchoCancellation = (t = a.useSysEchoCancellation) != null ? t : this.useSysEchoCancellation, this.useSysNoiseSuppression = (i = a.useSysNoiseSuppression) != null ? i : this.useSysNoiseSuppression, this.useSysAutoGainControl = (s = a.useSysAutoGainControl) != null ? s : this.useSysAutoGainControl, this.useAIAEC = (n = a.useAIAEC) != null ? n : this.useAIAEC, this.enableSoft3A = (o = a.enableSoft3A) != null ? o : this.enableSoft3A, this.dumpAudioData = (c = a.dumpAudioData) != null ? c : this.dumpAudioData, this.enableSoft3ACheck = (h = a.enableSoft3ACheck) != null ? h : this.enableSoft3ACheck, this.useHardOnly = (l = a.useHardOnly) != null ? l : this.useHardOnly;
|
|
8215
8230
|
}
|
|
8216
8231
|
loadFromServerConfig(a) {
|
|
8217
8232
|
if (a && typeof a == "object") {
|
|
@@ -8246,10 +8261,10 @@ class Mc {
|
|
|
8246
8261
|
}
|
|
8247
8262
|
}
|
|
8248
8263
|
}
|
|
8249
|
-
var
|
|
8250
|
-
for (var i, s = t > 1 ? void 0 : t ?
|
|
8264
|
+
var Lc = Object.defineProperty, Nc = Object.getOwnPropertyDescriptor, et = (r, a, e, t) => {
|
|
8265
|
+
for (var i, s = t > 1 ? void 0 : t ? Nc(a, e) : a, n = r.length - 1; n >= 0; n--)
|
|
8251
8266
|
(i = r[n]) && (s = (t ? i(a, e, s) : i(s)) || s);
|
|
8252
|
-
return t && s &&
|
|
8267
|
+
return t && s && Lc(a, e, s), s;
|
|
8253
8268
|
};
|
|
8254
8269
|
class $e extends He {
|
|
8255
8270
|
constructor(e) {
|
|
@@ -8502,7 +8517,7 @@ class $e extends He {
|
|
|
8502
8517
|
}
|
|
8503
8518
|
executeAddUser(e, t, i) {
|
|
8504
8519
|
const s = new pc({ userId: e, displayName: t, rtsManager: this.rtsManager, signalingManager: this.signalingManager, usersViewMap: this.usersViewMap, slsReporter: this.slsReporter, localUser: this.self, audioVolumeIndicationInterval: this.audioVolumeIndicationInterval, playoutVolume: this.playoutVolume, parameter: this.parameter });
|
|
8505
|
-
return s.on(
|
|
8520
|
+
return s.on(Qe.Remote, this.onRemoteDeviceStatusChange.bind(this)), s.on(we.PullStreamStats, this.onRemoteStatReport.bind(this)), s.on(we.RtsSubscribeExceeds, this.onSubscribeExceeds.bind(this)), s.on("audioSubscribeStateChanged", (n, o, c, h) => {
|
|
8506
8521
|
this.emit("audioSubscribeStateChanged", n, o, c, h, this.channel || "");
|
|
8507
8522
|
}), s.on("videoSubscribeStateChanged", (n, o, c, h) => {
|
|
8508
8523
|
this.emit("videoSubscribeStateChanged", n, o, c, h, this.channel || "");
|
|
@@ -8548,7 +8563,7 @@ class $e extends He {
|
|
|
8548
8563
|
});
|
|
8549
8564
|
const n = Object.keys(this.userMap), o = [];
|
|
8550
8565
|
return n.forEach((c) => {
|
|
8551
|
-
s[c] || o.push({ userid: c, reason: "", leavecode:
|
|
8566
|
+
s[c] || o.push({ userid: c, reason: "", leavecode: Lr.AliRtcUserOfflineQuit });
|
|
8552
8567
|
}), this.userMap = s, { joinList: t, leaveList: o, presentList: i };
|
|
8553
8568
|
}
|
|
8554
8569
|
getRemoteUser(e) {
|
|
@@ -8606,7 +8621,7 @@ class $e extends He {
|
|
|
8606
8621
|
});
|
|
8607
8622
|
}
|
|
8608
8623
|
refreshAuthInfo(e) {
|
|
8609
|
-
this.authInfo && (this.authInfo =
|
|
8624
|
+
this.authInfo && (this.authInfo = $($({}, this.authInfo), e)), e.userId && this.self.refreshUserInfo(e.userId);
|
|
8610
8625
|
}
|
|
8611
8626
|
setEnableMediaExtensionMsg(e) {
|
|
8612
8627
|
this.rtsManager.setEncodedInsertableStreams(e);
|
|
@@ -8619,14 +8634,21 @@ class $e extends He {
|
|
|
8619
8634
|
const t = JSON.parse(e);
|
|
8620
8635
|
Object.keys(t).forEach((c) => {
|
|
8621
8636
|
const h = this.parameter[c], l = t[c];
|
|
8622
|
-
this.parameter[c] = typeof h == "object" && typeof l == "object" ?
|
|
8637
|
+
this.parameter[c] = typeof h == "object" && typeof l == "object" ? $($({}, h), l) : l;
|
|
8623
8638
|
}), t.enableBlankAudio === !0 ? (this.blankAudioPlugin || (this.blankAudioPlugin = new Rc()), this.pluginManager.has((i = this.blankAudioPlugin) == null ? void 0 : i.name) || this.pluginManager.add(this.blankAudioPlugin)) : t.enableBlankAudio === !1 && (this.blankAudioPlugin && this.pluginManager.remove((s = this.blankAudioPlugin) == null ? void 0 : s.name), (n = this.blankAudioPlugin) == null || n.clear(), this.blankAudioPlugin = void 0), t.audio && ((o = this.audio3AConfig) == null || o.loadFromLocalConfig(t.audio));
|
|
8624
8639
|
}
|
|
8625
8640
|
setupAudioProcessingPluginIfNeeded() {
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8641
|
+
if (this.audio3AConfig.enableSoft3A) {
|
|
8642
|
+
let e = 0;
|
|
8643
|
+
this.audio3AConfig.enableSoft3ACheck && (e = 1e4), setTimeout(() => {
|
|
8644
|
+
this.audioProcessorPlugin || (this.audioProcessorPlugin = new Cc({ dumpAudioData: this.audio3AConfig.dumpAudioData, aiaecOn: this.audio3AConfig.useAIAEC, slsReporter: this.slsReporter, enableSoft3ACheck: this.audio3AConfig.enableSoft3ACheck, useHardOnly: this.audio3AConfig.useHardOnly })), this.audioProcessorPlugin && !this.pluginManager.has(this.audioProcessorPlugin.name) && (this.audioProcessorPlugin.on("error", ({ message: t }) => {
|
|
8645
|
+
var i;
|
|
8646
|
+
V.error("audioProcessorPlugin error:", t), (i = this.self.audioTrack) == null || i.applyConstraints({ echoCancellation: !0, noiseSuppression: !0, autoGainControl: !0 });
|
|
8647
|
+
}), this.pluginManager.add(this.audioProcessorPlugin));
|
|
8648
|
+
}, e);
|
|
8649
|
+
} else
|
|
8650
|
+
this.audioProcessorPlugin && (this.pluginManager.remove(this.audioProcessorPlugin.name), this.audioProcessorPlugin = void 0);
|
|
8651
|
+
this.self.setMicrophoneConstraints({ echoCancellation: this.audio3AConfig.useSysEchoCancellation, noiseSuppression: this.audio3AConfig.useSysNoiseSuppression, autoGainControl: this.audio3AConfig.useSysAutoGainControl });
|
|
8630
8652
|
}
|
|
8631
8653
|
getParameter() {
|
|
8632
8654
|
return JSON.stringify(this.parameter);
|
|
@@ -8708,7 +8730,7 @@ class xc {
|
|
|
8708
8730
|
return this.doRequest(e, t);
|
|
8709
8731
|
}
|
|
8710
8732
|
refreshAuthInfo(a) {
|
|
8711
|
-
this.authInfo && this.setAuthInfo(
|
|
8733
|
+
this.authInfo && this.setAuthInfo($($({}, this.authInfo), a));
|
|
8712
8734
|
}
|
|
8713
8735
|
}
|
|
8714
8736
|
class Or {
|
|
@@ -8822,20 +8844,20 @@ class Hc {
|
|
|
8822
8844
|
return this.sourceType && hi[this.sourceType] ? s.sourcetype = hi[this.sourceType] : s.sourcetype = hi[pi.LiveTranscodingCamera], this.segmentType && i === Dr.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = Di.LiveTranscodingNoBody, s;
|
|
8823
8845
|
}
|
|
8824
8846
|
}
|
|
8825
|
-
const
|
|
8847
|
+
const Wt = class Wt {
|
|
8826
8848
|
constructor() {
|
|
8827
8849
|
g(this, "ntpClock");
|
|
8828
8850
|
this.ntpClock = new Se.Clock();
|
|
8829
8851
|
}
|
|
8830
8852
|
static getInstance() {
|
|
8831
|
-
return
|
|
8853
|
+
return Wt.instance || (Wt.instance = new Wt()), Wt.instance;
|
|
8832
8854
|
}
|
|
8833
8855
|
now() {
|
|
8834
8856
|
return this.ntpClock.now();
|
|
8835
8857
|
}
|
|
8836
8858
|
};
|
|
8837
|
-
g(
|
|
8838
|
-
let _r =
|
|
8859
|
+
g(Wt, "instance");
|
|
8860
|
+
let _r = Wt;
|
|
8839
8861
|
const An = () => _r.getInstance(), { BrowserUtil: lr, SystenUtil: Ga } = Se;
|
|
8840
8862
|
class qa {
|
|
8841
8863
|
constructor() {
|
|
@@ -8860,7 +8882,7 @@ class qa {
|
|
|
8860
8882
|
const i = Tr(t);
|
|
8861
8883
|
e.useStsPlugin(i), this.tracker = e, this.msgCacheArr.forEach((s, n) => {
|
|
8862
8884
|
var o, c;
|
|
8863
|
-
(c = this.tracker) == null || c.send(
|
|
8885
|
+
(c = this.tracker) == null || c.send($(ut($({}, this.param), { stat_log_id: `${((o = this.param) == null ? void 0 : o.sesid) || "nosession"}-${n}` }), s));
|
|
8864
8886
|
}), this.index = this.index + this.msgCacheArr.length, this.msgCacheArr = [];
|
|
8865
8887
|
}
|
|
8866
8888
|
}
|
|
@@ -8878,7 +8900,7 @@ class qa {
|
|
|
8878
8900
|
let e;
|
|
8879
8901
|
a.tm = Date.now();
|
|
8880
8902
|
try {
|
|
8881
|
-
e = JSON.parse(JSON.stringify(
|
|
8903
|
+
e = JSON.parse(JSON.stringify($(ut($({ bt: lr.browserName || "unknown", ntptm: this.ntpClock.now(), ntpofs: this.ntpClock.now() - Date.now() }, this.param), { stat_log_id: `${((t = this.param) == null ? void 0 : t.sesid) || "nosession"}-${this.index}` }), a)));
|
|
8882
8904
|
} catch (s) {
|
|
8883
8905
|
}
|
|
8884
8906
|
e && (this.tracker ? ((i = this.tracker) == null || i.send(e), this.index++) : this.msgCacheArr.push(e));
|
|
@@ -8889,7 +8911,7 @@ class qa {
|
|
|
8889
8911
|
e = (localStorage == null ? void 0 : localStorage.getItem("AliRtcUUID")) || "", e || (e = dt(), localStorage == null || localStorage.setItem("AliRtcUUID", e));
|
|
8890
8912
|
} catch (t) {
|
|
8891
8913
|
}
|
|
8892
|
-
this.param || (this.param = { apid: a.appId, usrid: a.userId, statsvrs: "0.6.1", evetid: 0, sesid: a.sessionId, sessionId: a.sessionId, channelid: a.channelId, usrn: a.userId, osn: Ga.systemName, osv: Ga.systemVersion, deb: jo(), den: Bo(), udid: e, sdkvrs:
|
|
8914
|
+
this.param || (this.param = { apid: a.appId, usrid: a.userId, statsvrs: "0.6.1", evetid: 0, sesid: a.sessionId, sessionId: a.sessionId, channelid: a.channelId, usrn: a.userId, osn: Ga.systemName, osv: Ga.systemVersion, deb: jo(), den: Bo(), udid: e, sdkvrs: Ni, acs: "Unknown", cput: rn(), dm: `${window.location.protocol}//${window.location.host}`, bt: lr.browserName, bv: lr.browserVersion, envir: "PRODUCT", args: "", instid: dt() });
|
|
8893
8915
|
}
|
|
8894
8916
|
}
|
|
8895
8917
|
const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
@@ -8900,7 +8922,7 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
8900
8922
|
(!a || a < 0 || a > 1e4) && (i = 1e3);
|
|
8901
8923
|
let s = r;
|
|
8902
8924
|
return s || (s = 0), Math.min(e, Math.max(t, Math.round(s / (i / 1e3))));
|
|
8903
|
-
},
|
|
8925
|
+
}, Ut = (r, a) => {
|
|
8904
8926
|
if (a === 0 || !a)
|
|
8905
8927
|
return "0.00";
|
|
8906
8928
|
let e = r;
|
|
@@ -8909,7 +8931,7 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
8909
8931
|
var t, i, s;
|
|
8910
8932
|
let e = ((t = r._last) == null ? void 0 : t[a]) || 0;
|
|
8911
8933
|
return r.ssrc && ((i = r._last) != null && i.ssrc) && r.ssrc !== ((s = r._last) == null ? void 0 : s.ssrc) && (e = 0), ((r == null ? void 0 : r[a]) || 0) - e;
|
|
8912
|
-
}, Ya = (r, a) => Re(_e(r, a), 1e3, 1e4),
|
|
8934
|
+
}, Ya = (r, a) => Re(_e(r, a), 1e3, 1e4), Bt = (r, a = 2e7) => Re(r, 1, a), di = class di {
|
|
8913
8935
|
constructor(a) {
|
|
8914
8936
|
g(this, "engine");
|
|
8915
8937
|
g(this, "logClient");
|
|
@@ -8925,7 +8947,7 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
8925
8947
|
di.getLogClient().sendReport({ errmsg: `${e}/${a}.log`, errtype: t, evetid: 70017, sesid: a, sessionId: a, stat_log_id: `${a}-70017` });
|
|
8926
8948
|
}
|
|
8927
8949
|
setCustomFields(a) {
|
|
8928
|
-
this.customFields =
|
|
8950
|
+
this.customFields = $($({}, this.customFields), a);
|
|
8929
8951
|
}
|
|
8930
8952
|
getCustomField(a) {
|
|
8931
8953
|
return this.customFields[a];
|
|
@@ -8942,15 +8964,15 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
8942
8964
|
reportPublishAudio3A(a, e, t, i) {
|
|
8943
8965
|
const s = {};
|
|
8944
8966
|
let n = JSON.parse(i);
|
|
8945
|
-
s.publevel = n.capture_audio_cur_level_db || 0, s.eleakrate = n.echo_leak_rate || 0, s.playbw = n.render_bandwidth || -1, s.capbw = n.capture_bandwidth || -1, s.diff = n.diff || 0, s.leak = n.leak || 0, this.log({ evetid: 10070, traceid: t, calid: a, args: this.data2String(
|
|
8967
|
+
s.publevel = n.capture_audio_cur_level_db || 0, s.eleakrate = n.echo_leak_rate || 0, s.playbw = n.render_bandwidth || -1, s.capbw = n.capture_bandwidth || -1, s.diff = n.diff || 0, s.leak = n.leak || 0, this.log({ evetid: 10070, traceid: t, calid: a, args: this.data2String($({ calid: a, tckid: e || "audio3a", traceid: t }, s)) });
|
|
8946
8968
|
}
|
|
8947
8969
|
reportPublishMonitor(a, e, t, i, s) {
|
|
8948
8970
|
if (!t || s.length <= 0)
|
|
8949
8971
|
return;
|
|
8950
|
-
const n = t === k.Audio, o = { ctm: Math.floor(s[0].timestamp || 0), src: s[0].ssrc || "", codec: s[0]._codec || "" }, c = [], h = [], l = [], d = [], b = [], u = [], f = [], p = [], m = [], S = [],
|
|
8972
|
+
const n = t === k.Audio, o = { ctm: Math.floor(s[0].timestamp || 0), src: s[0].ssrc || "", codec: s[0]._codec || "" }, c = [], h = [], l = [], d = [], b = [], u = [], f = [], p = [], m = [], S = [], R = [], _ = [], y = [], v = [], w = [], A = [], E = [], C = [], x = [];
|
|
8951
8973
|
try {
|
|
8952
8974
|
if (s.forEach((P) => {
|
|
8953
|
-
var ce, me, ye,
|
|
8975
|
+
var ce, me, ye, J, le, Pe;
|
|
8954
8976
|
if (!P || !P.timestamp)
|
|
8955
8977
|
return;
|
|
8956
8978
|
const z = (ce = P._last) != null && ce.timestamp ? P.timestamp - P._last.timestamp : 1e3, G = _e(P, "bytesSent"), X = _e(P, "headerBytesSent"), K = ot(Re(G + X, 8, 2e7), z);
|
|
@@ -8961,15 +8983,15 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
8961
8983
|
l.push(Y);
|
|
8962
8984
|
const ee = _e(P, "packetsSent"), M = ot(ee, z);
|
|
8963
8985
|
d.push(M);
|
|
8964
|
-
const
|
|
8986
|
+
const N = _e(P, "packetsLost"), D = ot(N, z);
|
|
8965
8987
|
b.push(D);
|
|
8966
|
-
const
|
|
8967
|
-
if (u.push(
|
|
8988
|
+
const L = Ut(N, ee);
|
|
8989
|
+
if (u.push(L), n)
|
|
8968
8990
|
(me = P._source) != null && me.audioLevel && f.push(Xa(P._source.audioLevel)), p.push(0);
|
|
8969
8991
|
else {
|
|
8970
|
-
m.push(Ya(P, "totalEncodeTime")), S.push(
|
|
8992
|
+
m.push(Ya(P, "totalEncodeTime")), S.push(Bt((ye = P._source) == null ? void 0 : ye.framesPerSecond, 100)), R.push(Bt((J = P._source) == null ? void 0 : J.framesPerSecond, 100)), _.push(Bt(P.framesPerSecond, 100)), y.push(Bt((le = P._source) == null ? void 0 : le.height, 4400)), v.push(Bt((Pe = P._source) == null ? void 0 : Pe.width, 7700)), w.push(Bt(P.frameHeight, 4400)), A.push(Bt(P.frameWidth, 7700));
|
|
8971
8993
|
const be = _e(P, "totalPacketSendDelay");
|
|
8972
|
-
E.push(Re(be, 1 / (
|
|
8994
|
+
E.push(Re(be, 1 / (N || 1), 2e3));
|
|
8973
8995
|
const de = _e(P, "qpSum");
|
|
8974
8996
|
C.push(Re(de, 1 / (P.framesPerSecond || 1), 51)), x.push(0);
|
|
8975
8997
|
}
|
|
@@ -8977,76 +8999,76 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
8977
8999
|
const P = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
|
|
8978
9000
|
o.ailevel = f.join(","), o.arpc = p.join(","), o.arsr = P, o.aesr = P, o.publevel = -90, o.rawlevel = -90;
|
|
8979
9001
|
} else
|
|
8980
|
-
o.em = m.join(","), o.cfps = S.join(","), o.ifps =
|
|
9002
|
+
o.em = m.join(","), o.cfps = S.join(","), o.ifps = R.join(","), o.sfps = _.join(","), o.ih = y.join(","), o.iw = v.join(","), o.sh = w.join(","), o.sw = A.join(","), o.sd = E.join(","), o.aqp = C.join(","), o.caf = x.join(","), o.can = x.join(","), o.cav = h.join(","), o.ifimax = x.join(","), o.ifimin = x.join(","), o.efimax = x.join(","), o.efimin = x.join(","), o.sfimax = x.join(","), o.sfimin = x.join(","), o.apsnr = x.join(",");
|
|
8981
9003
|
} catch (P) {
|
|
8982
9004
|
}
|
|
8983
|
-
this.log({ evetid: 10070, traceid: e, calid: a, args: this.data2String(
|
|
9005
|
+
this.log({ evetid: 10070, traceid: e, calid: a, args: this.data2String($({ calid: a, tckid: t, traceid: e }, o)) });
|
|
8984
9006
|
}
|
|
8985
9007
|
reportSubscribeMonitor(a, e, t, i, s) {
|
|
8986
9008
|
if (!i || !s || s.length <= 0)
|
|
8987
9009
|
return;
|
|
8988
|
-
const n = i === k.Audio, o = { ctm: Math.floor(s[0].timestamp || 0), src: s[0].ssrc || "", codec: s[0]._codec || "" }, c = [], h = [], l = [], d = [], b = [], u = [], f = [], p = [], m = [], S = [],
|
|
9010
|
+
const n = i === k.Audio, o = { ctm: Math.floor(s[0].timestamp || 0), src: s[0].ssrc || "", codec: s[0]._codec || "" }, c = [], h = [], l = [], d = [], b = [], u = [], f = [], p = [], m = [], S = [], R = [], _ = [], y = [], v = [], w = [], A = [], E = [], C = [], x = [], P = [], z = [], G = [], X = [], K = [], H = [], Y = [], ee = [], M = [], N = [], D = [], L = [], ce = [], me = [], ye = [];
|
|
8989
9011
|
try {
|
|
8990
|
-
s.forEach((
|
|
9012
|
+
s.forEach((J) => {
|
|
8991
9013
|
var q, Ee;
|
|
8992
|
-
if (
|
|
9014
|
+
if (!J || !J.timestamp)
|
|
8993
9015
|
return;
|
|
8994
|
-
const le = (q =
|
|
9016
|
+
const le = (q = J._last) != null && q.timestamp ? J.timestamp - J._last.timestamp : 1e3, Pe = _e(J, "bytesReceived"), be = _e(J, "headerBytesReceived"), de = ot(Re(Pe + be, 8, 2e7), le);
|
|
8995
9017
|
c.push(de);
|
|
8996
9018
|
const ge = ot(Re(Pe, 8, 2e7), le);
|
|
8997
9019
|
h.push(ge);
|
|
8998
9020
|
const Fe = ot(Re(be, 8, 2e7), le);
|
|
8999
9021
|
l.push(Fe);
|
|
9000
|
-
const te = _e(
|
|
9022
|
+
const te = _e(J, "packetsReceived"), Ae = ot(te, le);
|
|
9001
9023
|
d.push(Ae);
|
|
9002
|
-
const ke = _e(
|
|
9024
|
+
const ke = _e(J, "packetsLost"), se = ot(ke, le);
|
|
9003
9025
|
b.push(se);
|
|
9004
|
-
const re =
|
|
9026
|
+
const re = Ut(ke, te);
|
|
9005
9027
|
u.push(re);
|
|
9006
|
-
const
|
|
9007
|
-
if (
|
|
9008
|
-
const Je = Re(
|
|
9028
|
+
const Q = _e(J, "jitterBufferDelay"), ue = _e(J, "jitterBufferEmittedCount");
|
|
9029
|
+
if (J.jitterBufferDelay && J.jitterBufferEmittedCount) {
|
|
9030
|
+
const Je = Re(Q, 1e3 / ue, 1e4);
|
|
9009
9031
|
f.push(Je);
|
|
9010
9032
|
} else
|
|
9011
9033
|
f.push(0);
|
|
9012
|
-
const Ie = _e(
|
|
9013
|
-
_.push(
|
|
9014
|
-
const ie = _e(
|
|
9015
|
-
if (m.push(
|
|
9016
|
-
v.push(Xa(
|
|
9017
|
-
const Je = ((Ge,
|
|
9034
|
+
const Ie = _e(J, "fecPacketsReceived");
|
|
9035
|
+
_.push(Ut(Ie, te));
|
|
9036
|
+
const ie = _e(J, "retransmittedPacketsReceived"), je = te + ke - ie;
|
|
9037
|
+
if (m.push(Ut(te - ie, je)), S.push(Ut(ke, je)), p.push(Ut(ie, je)), R.push(je), me.push(0), ye.push(""), n) {
|
|
9038
|
+
v.push(Xa(J.audioLevel));
|
|
9039
|
+
const Je = ((Ge, mt) => {
|
|
9018
9040
|
var qt, nt, wt;
|
|
9019
|
-
return (((qt = Ge == null ? void 0 : Ge._source) == null ? void 0 : qt[
|
|
9020
|
-
})(
|
|
9041
|
+
return (((qt = Ge == null ? void 0 : Ge._source) == null ? void 0 : qt[mt]) || 0) - (((wt = (nt = Ge == null ? void 0 : Ge._last) == null ? void 0 : nt._source) == null ? void 0 : wt[mt]) || 0);
|
|
9042
|
+
})(J, "synthesizedSamplesEvents");
|
|
9021
9043
|
w.push(Je);
|
|
9022
|
-
const Oe = Ya(
|
|
9023
|
-
|
|
9024
|
-
const Gt =
|
|
9044
|
+
const Oe = Ya(J, "synthesizedSamplesDuration");
|
|
9045
|
+
A.push(Oe);
|
|
9046
|
+
const Gt = Ut(Oe, le);
|
|
9025
9047
|
y.push(Gt), E.push(0);
|
|
9026
9048
|
} else {
|
|
9027
|
-
const Je = (Ee =
|
|
9028
|
-
C.push(Re(Je, 1e3 / (
|
|
9029
|
-
const Oe = _e(
|
|
9030
|
-
X.push(Re(Oe, 1e3 / (
|
|
9031
|
-
const Gt = _e(
|
|
9049
|
+
const Je = (Ee = J._last) != null && Ee.totalInterFrameDelay ? J.totalInterFrameDelay - J._last.totalInterFrameDelay : 0;
|
|
9050
|
+
C.push(Re(Je, 1e3 / (J.framesDecoded || 30), 500)), x.push(Re(J.framesPerSecond, 1, 100)), P.push(_e(J, "framesReceived")), ce.push(_e(J, "framesRendered")), z.push(Re(J.frameHeight, 1, 4400)), G.push(Re(J.frameWidth, 1, 7700));
|
|
9051
|
+
const Oe = _e(J, "totalProcessingDelay");
|
|
9052
|
+
X.push(Re(Oe, 1e3 / (J.framesDecoded || 30), 12e4));
|
|
9053
|
+
const Gt = _e(J, "nackCount");
|
|
9032
9054
|
H.push(Gt);
|
|
9033
|
-
const Ge = _e(
|
|
9055
|
+
const Ge = _e(J, "pliCount");
|
|
9034
9056
|
K.push(Ge);
|
|
9035
|
-
const
|
|
9036
|
-
Y.push(Re(
|
|
9037
|
-
const qt = _e(
|
|
9057
|
+
const mt = _e(J, "qpSum");
|
|
9058
|
+
Y.push(Re(mt, 1 / (J.framesPerSecond || 1), 51)), ee.push(Re(J.framesDropped));
|
|
9059
|
+
const qt = _e(J, "totalFreezesDuration");
|
|
9038
9060
|
M.push(Re(qt, 1e3, 3e4));
|
|
9039
|
-
const nt = _e(
|
|
9040
|
-
wt && nt ?
|
|
9041
|
-
const Si = _e(
|
|
9061
|
+
const nt = _e(J, "jitterBufferEmittedCount"), wt = _e(J, "jitterBufferDelay");
|
|
9062
|
+
wt && nt ? N.push(Re(wt, 1e3 / nt, 3e4)) : N.push(0);
|
|
9063
|
+
const Si = _e(J, "jitterBufferTargetDelay");
|
|
9042
9064
|
Si && nt ? D.push(Re(Si, 1e3 / nt, 3e4)) : D.push(0);
|
|
9043
|
-
const bi = _e(
|
|
9044
|
-
bi && nt ?
|
|
9065
|
+
const bi = _e(J, "jitterBufferMinimumDelay");
|
|
9066
|
+
bi && nt ? L.push(Re(bi, 1e3 / nt, 3e4)) : L.push(0);
|
|
9045
9067
|
}
|
|
9046
|
-
}), o.rbr = c.join(","), o.mbrs = h.join(","), o.pbrs = l.join(","), o.pr = d.join(","), o.pl = b.join(","), o.plr = u.join(","), o.jd = f.join(","), o.fecr = _.join(","), o.retransr = p.join(","), o.baser = m.join(","), o.basel = S.join(","), o.recoverr = me.join(","), o.alll = S.join(","), o.totalc =
|
|
9047
|
-
} catch (
|
|
9068
|
+
}), o.rbr = c.join(","), o.mbrs = h.join(","), o.pbrs = l.join(","), o.pr = d.join(","), o.pl = b.join(","), o.plr = u.join(","), o.jd = f.join(","), o.fecr = _.join(","), o.retransr = p.join(","), o.baser = m.join(","), o.basel = S.join(","), o.recoverr = me.join(","), o.alll = S.join(","), o.totalc = R.join(","), n ? (o.er = y.join(","), o.aolevel = v.join(","), o.asrc = E.join(","), o.scnt = w.join(","), o.sdura = A.join(",")) : (o.dm = C.join(","), o.dfps = x.join(","), o.rfps = P.join(","), o.rh = z.join(","), o.rw = G.join(","), o.fpt = ye.join(","), o.ns = H.join(","), o.pliss = K.join(","), o.aqp = Y.join(","), o.ofimax = me.join(","), o.ofimin = me.join(","), o.dfimax = me.join(","), o.dfimin = me.join(","), o.rfimax = me.join(","), o.rfimin = me.join(","), o.vrstutter = M.join(","), o.cdm = N.join(","), o.tdm = D.join(","), o.pdm = L.join(","), o.ofps = ce.join(","), o.dfbd = ee.join(","));
|
|
9069
|
+
} catch (J) {
|
|
9048
9070
|
}
|
|
9049
|
-
this.log({ evetid: 10080, traceid: t, rmtid: e, calid: a, args: this.data2String(
|
|
9071
|
+
this.log({ evetid: 10080, traceid: t, rmtid: e, calid: a, args: this.data2String($({ calid: a, rmtid: e, tckid: i, traceid: t }, o)) });
|
|
9050
9072
|
}
|
|
9051
9073
|
reportNetworkMonitor(a) {
|
|
9052
9074
|
if (a.length <= 0)
|
|
@@ -9060,7 +9082,31 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
9060
9082
|
e.push(Re(u.currentRoundTripTime, 1e3)), t.push(Re(u.availableOutgoingBitrate, 8, 2e8)), i.push(ot(Re(u.bytesSent, 8, 2e7), p, 25e6)), s.push(ot(Re(u.bytesReceived, 8, 2e7), p, 25e6)), n.push(0), o.push(0), f % 5 == 0 && (c.push(""), h.push(""), l.push(""), d.push(""));
|
|
9061
9083
|
});
|
|
9062
9084
|
const b = { ctm: Math.floor(a[0].timestamp || 0), rtt: e.join(","), bsps: i.join(","), brps: s.join(","), cpu: c.join(","), mem: h.join(","), sysmem: l.join(","), systotalmem: d.join(","), audioonly: this.engine.isAudioOnly() ? 1 : 0 };
|
|
9063
|
-
this.log({ evetid: 10071, args: this.data2String(
|
|
9085
|
+
this.log({ evetid: 10071, args: this.data2String($({ asb: t.join(","), abms: n.join(","), vbms: o.join(",") }, b)) }), this.log({ evetid: 10081, args: this.data2String($({}, b)) });
|
|
9086
|
+
}
|
|
9087
|
+
reportLoopAudioDelay(a, e) {
|
|
9088
|
+
var f;
|
|
9089
|
+
const { AIAgent: t = {}, AIGrtn: i = {}, AIPub: s = {}, AISub: n = {}, pub: o = {}, sub: c = {}, grtn: h = {} } = e || {};
|
|
9090
|
+
if (Object.keys(t).length === 0)
|
|
9091
|
+
return;
|
|
9092
|
+
let l = 0;
|
|
9093
|
+
l = Object.keys(h).length ? (o.vTotalCost || 0) + (o.upRTTHalf || 0) + (h.totalCost || 0) + (c.downRTTHalf || 0) + (c.vTotalCost || 0) : (o.vEncPlugCost || 0) + ((o.timestampRecv || 0) - (o.timestamp || 0)) + (c.vJitterBufferDelay || 0) + (c.vDecPlugCost || 0);
|
|
9094
|
+
const d = {};
|
|
9095
|
+
let b = 0;
|
|
9096
|
+
for (let p = 0; p < 10; p++) {
|
|
9097
|
+
const m = `ngxRtcSeiCumulativeDelayKeyInternalRttHalf_${p}`, S = `ngxRtcSeiCumulativeDelayKeyGrtnNodeBefPacer_${p}`, R = `ngxRtcSeiCumulativeDelayKeyGrtnNodePacerCost_${p}`;
|
|
9098
|
+
if (!h.hasOwnProperty(m))
|
|
9099
|
+
break;
|
|
9100
|
+
b += h[m] || 0, b += h[S] || 0, b += h[R] || 0, d[`_gnd${p}`] = `gnd[${p}]: {${this.data2String({ gnirh: h[m] || 0, gnbp: h[S] || 0, gnpc: h[R] || 0 })}}`;
|
|
9101
|
+
}
|
|
9102
|
+
const u = {};
|
|
9103
|
+
for (let p = 0; p < 10; p++) {
|
|
9104
|
+
const m = `aigrtninternalrtthalf_${p}`, S = `aigrtnbeforepacer_${p}`, R = `aigrtnpacercost_${p}`;
|
|
9105
|
+
if (!i.hasOwnProperty(m))
|
|
9106
|
+
break;
|
|
9107
|
+
u[`_lgnd${p}`] = `lgnd[${p}]: {${this.data2String({ gnirh: i[m] || 0, gnbp: i[S] || 0, gnpc: i[R] || 0 })}}`;
|
|
9108
|
+
}
|
|
9109
|
+
this.log({ evetid: 10073, args: this.data2String(ut($({ tdlms: l + (t.aiagenttotalcost || 0), _: `aiqud:{${this.data2String(ut($({ uid: ((f = this.authInfo) == null ? void 0 : f.userId) || "", sid: s.aAIClientScentenceId || 0, quct: 65535 * (s.aAIClientQuestionTimestampHEAD || 0) + (s.aAIClientQuestionTimestampTAIL || 0), anct: 65535 * (s.aAIClientAnswerTimestampHEAD || 0) + (s.aAIClientAnswerTimestampTAIL || 0), casc: s.aAIClientSourceCost || 0, camc: s.aAIClientMixerCost || 0, caec: s.aAIClientEncoderCost || 0, cantc: s.aIClientNetsdkThrCost || 0, caqtc: s.aIClientQosThrCost || 0, capc: s.aIClientPacerCost || 0, cuphr: s.aIClientUpRTTHalf || 0 }, u), { qgac: 0, ldhr: h.ngxRtcSeiCumulativeDelayKeyDownRttHalf_0 || 0, larc: n.aAILinuxReceiveCost || 0, lanqc: n.aAILinuxNeteqCost || 0, larsc: n.aAILinuxRemoteSourceCost || 0, lapmc: n.aAILinuxPlayMixerCost || 0, lapc: n.aAILinuxPlayCost || 0, lsdnc: n.aIClinetSmartDenoise || 0, asrc: t.aiasrcost || 0, llmc: t.aillmcost || 0, ttsc: t.aittscost || 0, aamc: t.aimutecost || 0, aatc: t.aiagenttotalcost || 0 }))}};`, ssrc: a, tpd: 0, scc: s.aAIClientSourceCost || 0, mxc: s.aAIClientMixerCost || 0, encc: s.aAIClientEncoderCost || 0, netc: s.aIClientNetsdkThrCost || 0, qostc: s.aIClientQosThrCost || 0, pacerc: s.aIClientPacerCost || 0, uphr: s.aIClientUpRTTHalf || 0 }, d), { agac: b, dnhr: c.downRTTHalf || 0, tsd: c.vTotalCost || 0, rcc: n.aAILinuxReceiveCost || 0, nqc: n.aAILinuxNeteqCost || 0, rscc: n.aAILinuxRemoteSourceCost || 0, plmxc: n.aAILinuxPlayMixerCost || 0, plc: n.aAILinuxPlayCost || 0, dvd: 0 })) });
|
|
9064
9110
|
}
|
|
9065
9111
|
reportJoin(a, e, t = "") {
|
|
9066
9112
|
var d, b;
|
|
@@ -9071,7 +9117,7 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
9071
9117
|
n && (l = n - s), this.log({ evetid: 10010, args: this.data2String({ sesid: ((d = this.authInfo) == null ? void 0 : d.sessionId) || "", joitm: o, rslt: a, gslbtm: 0, dnstm: 0, avcftm: 0, gslbrslt: 0, dnsrslt: 0, avcfrslt: 0, mode: 2, jrtc: c, usrn: (b = this.authInfo) == null ? void 0 : b.userId, mgt: "cdn", cttc: h, iptc: l, ndn: 1, gslbloc: 1, ccag: 0, ucag: 0, cpg: 0, upg: 0, tid: t }) });
|
|
9072
9118
|
}
|
|
9073
9119
|
reportJoinConnection(a) {
|
|
9074
|
-
this.log({ evetid: 20002, args: this.data2String(
|
|
9120
|
+
this.log({ evetid: 20002, args: this.data2String($({ transretrynum: 0, ldnstc: 0, tcptc: 0, ssltc: 0, url: "" }, a)) });
|
|
9075
9121
|
}
|
|
9076
9122
|
reportLeave(a, e, t) {
|
|
9077
9123
|
this.log({ evetid: 10020, args: this.data2String({ lvetm: a, rslt: e, tid: t }) });
|
|
@@ -9081,20 +9127,20 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
9081
9127
|
}
|
|
9082
9128
|
reportPublishFirstPacket(a, e, t, i, s, n, o, c, h) {
|
|
9083
9129
|
const l = Date.now();
|
|
9084
|
-
this.log({ evetid: a ? 10033 : 10031, calid: e, args: this.data2String({ calid: e, fpst: l - t, tckid: n, est: t, pctid: o, pubtid: c, totaltm: l - s, jorm: h ===
|
|
9130
|
+
this.log({ evetid: a ? 10033 : 10031, calid: e, args: this.data2String({ calid: e, fpst: l - t, tckid: n, est: t, pctid: o, pubtid: c, totaltm: l - s, jorm: h === bt.JOIN_CHANNEL ? 1 : 0, cptc: 0, sptc: i - t, iptc: 0, ipc2fptc: 0, dctc: 0, patc: 0 }) });
|
|
9085
9131
|
}
|
|
9086
9132
|
reportUnpublish(a, e, t, i) {
|
|
9087
9133
|
var s;
|
|
9088
9134
|
this.log({ evetid: 10040, args: this.data2String({ calid: a, unpubtm: e, rslt: t, tid: i, sesid: ((s = this.authInfo) == null ? void 0 : s.sessionId) || "" }) });
|
|
9089
9135
|
}
|
|
9090
9136
|
reportSubscribe(a, e, t, i, s, n, o, c, h, l) {
|
|
9091
|
-
this.log({ evetid: 10050, calid: a, rmtid: e, args: this.data2String(
|
|
9137
|
+
this.log({ evetid: 10050, calid: a, rmtid: e, args: this.data2String($({ calid: a, rmtid: e, isvl: t ? 1 : 0, isvs: i ? 1 : 0, isvss: s ? 1 : 0, isaudio: n ? 1 : 0, rslt: o, tid: c, subtm: h, isvp: 0, isaplaying: 0, isad: 0, isdc: 0, subretry: 0, sbrttimes: 0 }, l)) });
|
|
9092
9138
|
}
|
|
9093
9139
|
reportSubscribeFirstPacket(a, e, t, i, s) {
|
|
9094
|
-
this.log({ evetid: a ? 10054 : 10051, calid: e, rmtid: t, args: this.data2String(
|
|
9140
|
+
this.log({ evetid: a ? 10054 : 10051, calid: e, rmtid: t, args: this.data2String($({ calid: e, rmtid: t, tckid: i, cptc: 0, iptc: 0, ipc2fptc: 0, dctc: 0, patc: 0 }, s)) });
|
|
9095
9141
|
}
|
|
9096
9142
|
reportSubscribeFirstFrame(a, e, t, i, s) {
|
|
9097
|
-
this.log({ evetid: a ? 10055 : 10052, calid: e, rmtid: t, args: this.data2String(
|
|
9143
|
+
this.log({ evetid: a ? 10055 : 10052, calid: e, rmtid: t, args: this.data2String($({ calid: e, rmtid: t, tckid: i }, s)) }), this.log({ evetid: a ? 10058 : 10057, args: this.data2String($({ calid: e, rmtid: t, tckid: i }, s)) });
|
|
9098
9144
|
}
|
|
9099
9145
|
reportUnsubscribe(a, e, t, i, s) {
|
|
9100
9146
|
this.log({ evetid: 10060, calid: a, args: this.data2String({ calid: a, rmtid: e, unsubtm: t, rslt: i, tid: s }) });
|
|
@@ -9146,7 +9192,7 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
9146
9192
|
this.log({ evetid: 90025, args: this.data2String({ rslt: 0, td: a, sesid: ((e = this.authInfo) == null ? void 0 : e.sessionId) || "" }) });
|
|
9147
9193
|
}
|
|
9148
9194
|
reportPublishProfile(a, e) {
|
|
9149
|
-
this.log({ evetid: 10201, args: this.data2String(
|
|
9195
|
+
this.log({ evetid: 10201, args: this.data2String($({ tckid: a }, e)) });
|
|
9150
9196
|
}
|
|
9151
9197
|
reportSDKCreated(a) {
|
|
9152
9198
|
this.log({ evetid: 70011, createtm: Date.now() - a, tm: a });
|
|
@@ -9167,7 +9213,7 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
9167
9213
|
this.log({ evetid: 40301, args: this.data2String({ tm: Date.now(), sei_pt: a, sei_len: e, sei_rep: t, sei_delay: i, sei_key: s }) });
|
|
9168
9214
|
}
|
|
9169
9215
|
reportConnectionLatencyEvent(a, e, t, i, s, n, o = !1) {
|
|
9170
|
-
const c = { ageniid: this.getCustomField("ageniid") }, h =
|
|
9216
|
+
const c = { ageniid: this.getCustomField("ageniid") }, h = $({ tm: s || Date.now(), ntptm: n || this.ntpClock.now(), stage: a, status: e, calid: t, tckid: i, cltp: 1, http: o ? 1 : 0 }, c);
|
|
9171
9217
|
this.log({ evetid: 12001, args: this.data2String(h) });
|
|
9172
9218
|
}
|
|
9173
9219
|
log(a) {
|
|
@@ -9176,16 +9222,161 @@ const Re = (r, a = 1, e = 6e4, t = 0) => {
|
|
|
9176
9222
|
data2String(a) {
|
|
9177
9223
|
let e = "";
|
|
9178
9224
|
for (let t in a)
|
|
9179
|
-
e.length && (e += "&"), e += t
|
|
9225
|
+
e.length && (e += "&"), e += t.startsWith("_") ? a[t] : `${t}=${a[t]}`;
|
|
9180
9226
|
return e;
|
|
9181
9227
|
}
|
|
9182
9228
|
};
|
|
9183
9229
|
g(di, "staticClient");
|
|
9184
9230
|
let wr = di;
|
|
9185
|
-
|
|
9186
|
-
|
|
9231
|
+
class Fc {
|
|
9232
|
+
constructor(a) {
|
|
9233
|
+
g(this, "_updateables");
|
|
9234
|
+
g(this, "_useWebworker");
|
|
9235
|
+
g(this, "_inited");
|
|
9236
|
+
g(this, "_active");
|
|
9237
|
+
g(this, "_previousRAFTime");
|
|
9238
|
+
g(this, "_previousWorkerTime");
|
|
9239
|
+
g(this, "_webWorkerString");
|
|
9240
|
+
g(this, "_webWorker");
|
|
9241
|
+
g(this, "_intervalThreshold");
|
|
9242
|
+
g(this, "_rafId");
|
|
9243
|
+
this._updateables = [], this._useWebworker = !1, this._inited = !1, this._active = !1, this._previousRAFTime = void 0, this._previousWorkerTime = void 0, this._intervalThreshold = a && a > 0 && a <= 60 ? 1 / a : 0.1, this._webWorkerString = `
|
|
9244
|
+
var running = false;
|
|
9245
|
+
function tick(){
|
|
9246
|
+
postMessage(Date.now());
|
|
9247
|
+
if (running){
|
|
9248
|
+
setTimeout(tick, ${Math.floor(1e3 * this._intervalThreshold)});
|
|
9249
|
+
}
|
|
9250
|
+
}
|
|
9251
|
+
self.addEventListener('message',function(msg){
|
|
9252
|
+
var data = msg.data;
|
|
9253
|
+
if (data === 'start'){
|
|
9254
|
+
running = true;
|
|
9255
|
+
tick();
|
|
9256
|
+
}
|
|
9257
|
+
if (data === 'stop') running = false;
|
|
9258
|
+
});`, this._webWorker = void 0;
|
|
9259
|
+
}
|
|
9260
|
+
_initWebWorker() {
|
|
9261
|
+
window.URL = window.URL || window.webkitURL;
|
|
9262
|
+
let a = new Blob([this._webWorkerString], { type: "application/javascript" });
|
|
9263
|
+
this._webWorker = new Worker(URL.createObjectURL(a)), this._webWorker.onmessage = (e) => {
|
|
9264
|
+
let t = e.data;
|
|
9265
|
+
this._updateWorkerTime(t);
|
|
9266
|
+
};
|
|
9267
|
+
}
|
|
9268
|
+
_lostVisibility() {
|
|
9269
|
+
var a;
|
|
9270
|
+
this._previousWorkerTime = Date.now(), this._useWebworker = !0, this._webWorker || this._initWebWorker(), this._active && ((a = this._webWorker) == null || a.postMessage("start"));
|
|
9271
|
+
}
|
|
9272
|
+
_gainedVisibility() {
|
|
9273
|
+
this._useWebworker = !1, this._previousRAFTime = void 0, this._webWorker && this._webWorker.postMessage("stop"), this._active && (this._rafId = requestAnimationFrame(this._updateRAFTime.bind(this)));
|
|
9274
|
+
}
|
|
9275
|
+
_init() {
|
|
9276
|
+
if (window.Worker) {
|
|
9277
|
+
if (document.hidden === void 0)
|
|
9278
|
+
return window.addEventListener("focus", this._gainedVisibility.bind(this)), void window.addEventListener("blur", this._lostVisibility.bind(this));
|
|
9279
|
+
document.addEventListener("visibilitychange", () => {
|
|
9280
|
+
document.hidden === !0 ? this._lostVisibility() : this._gainedVisibility();
|
|
9281
|
+
}, !1);
|
|
9282
|
+
}
|
|
9283
|
+
}
|
|
9284
|
+
_updateWorkerTime(a) {
|
|
9285
|
+
let e = (a - (this._previousWorkerTime || 0)) / 1e3;
|
|
9286
|
+
e > this._intervalThreshold && (this._update(e), this._previousWorkerTime = a);
|
|
9287
|
+
}
|
|
9288
|
+
_updateRAFTime(a) {
|
|
9289
|
+
this._previousRAFTime === void 0 && (this._previousRAFTime = a);
|
|
9290
|
+
let e = (a - this._previousRAFTime) / 1e3;
|
|
9291
|
+
e > this._intervalThreshold && (this._update(e), this._previousRAFTime = a), !this._useWebworker && this._active ? this._rafId = requestAnimationFrame(this._updateRAFTime.bind(this)) : this._rafId = 0;
|
|
9292
|
+
}
|
|
9293
|
+
_update(a) {
|
|
9294
|
+
for (let e = 0; e < this._updateables.length; e++)
|
|
9295
|
+
this._updateables[e]._update(typeof a == "number" ? a : parseFloat(a));
|
|
9296
|
+
}
|
|
9297
|
+
register(a) {
|
|
9298
|
+
this._updateables.push(a), this._inited === !1 && (this._inited = !0, this._init()), this._active === !1 && (this._rafId = requestAnimationFrame(this._updateRAFTime.bind(this)), this._active = !0);
|
|
9299
|
+
}
|
|
9300
|
+
unregister(a) {
|
|
9301
|
+
const e = this._updateables.indexOf(a);
|
|
9302
|
+
e !== -1 && this._updateables.splice(e, 1), this._updateables.length === 0 && (this._active = !1, this._rafId && (cancelAnimationFrame(this._rafId), this._rafId = 0), this._useWebworker && this._webWorker && this._webWorker.postMessage("stop"));
|
|
9303
|
+
}
|
|
9304
|
+
}
|
|
9305
|
+
class jc extends xt {
|
|
9306
|
+
constructor(e, t = 10) {
|
|
9307
|
+
super("AliRtcImageHolder");
|
|
9308
|
+
g(this, "url");
|
|
9309
|
+
g(this, "image");
|
|
9310
|
+
g(this, "canvas");
|
|
9311
|
+
g(this, "mediaStream");
|
|
9312
|
+
g(this, "updateableManager");
|
|
9313
|
+
g(this, "updateable");
|
|
9314
|
+
g(this, "hasVideoTrack", !1);
|
|
9315
|
+
this.url = e, this.canvas = document.createElement("canvas"), this.canvas.width = 1280, this.canvas.height = 720, this.drawImageToCanvas(), this.updateableManager = new Fc(t);
|
|
9316
|
+
}
|
|
9317
|
+
get initOptions() {
|
|
9318
|
+
return { imageUrl: "" };
|
|
9319
|
+
}
|
|
9320
|
+
setOptions(e) {
|
|
9321
|
+
e.imageUrl && (this.options = e, e.imageUrl !== this.url && this.drawImageToCanvas());
|
|
9322
|
+
}
|
|
9323
|
+
drawImageToCanvas() {
|
|
9324
|
+
return I(this, null, function* () {
|
|
9325
|
+
if (!this.url)
|
|
9326
|
+
return;
|
|
9327
|
+
const e = this.canvas.getContext("2d"), t = document.createElement("img");
|
|
9328
|
+
let i;
|
|
9329
|
+
this.image = t, t.crossOrigin = "anonymous", t.src = this.url;
|
|
9330
|
+
const { width: s, height: n } = yield new Promise((o) => {
|
|
9331
|
+
t.onload = () => {
|
|
9332
|
+
i && clearTimeout(i), o({ width: t.width || 16, height: t.height || 16 });
|
|
9333
|
+
}, t.onerror = () => {
|
|
9334
|
+
i && clearTimeout(i), o({ width: 16, height: 16 });
|
|
9335
|
+
}, i = setTimeout(() => {
|
|
9336
|
+
o({ width: 16, height: 16 });
|
|
9337
|
+
}, 5e3);
|
|
9338
|
+
});
|
|
9339
|
+
this.canvas.width = s, this.canvas.height = n, e.drawImage(t, 0, 0, s, n);
|
|
9340
|
+
});
|
|
9341
|
+
}
|
|
9342
|
+
start() {
|
|
9343
|
+
return I(this, null, function* () {
|
|
9344
|
+
var i;
|
|
9345
|
+
if (!this.url)
|
|
9346
|
+
throw new Error("no image url founded");
|
|
9347
|
+
if (!this.canvas)
|
|
9348
|
+
throw new Error("get canvas error");
|
|
9349
|
+
const e = this.canvas.captureStream(25), t = this.canvas.getContext("2d");
|
|
9350
|
+
return this.image && this.image.width && t.drawImage(this.image, 0, 0, this.image.width, this.image.height), this.mediaStream = e, t.fillStyle = "transparent", this.updateable = { _update: () => {
|
|
9351
|
+
t.fillRect(0, 0, 1, 1);
|
|
9352
|
+
} }, this.updateableManager.register(this.updateable), (i = e.getVideoTracks()) == null ? void 0 : i[0];
|
|
9353
|
+
});
|
|
9354
|
+
}
|
|
9355
|
+
stop() {
|
|
9356
|
+
var e, t;
|
|
9357
|
+
this.updateable && (this.updateableManager.unregister(this.updateable), this.updateable = null), (t = (e = this.mediaStream) == null ? void 0 : e.getVideoTracks()[0]) == null || t.stop(), this.mediaStream = void 0;
|
|
9358
|
+
}
|
|
9359
|
+
isSupported() {
|
|
9360
|
+
return !0;
|
|
9361
|
+
}
|
|
9362
|
+
shouldUpdate(e) {
|
|
9363
|
+
return this.hasVideoTrack === !!e.originVideoTrack;
|
|
9364
|
+
}
|
|
9365
|
+
process(e) {
|
|
9366
|
+
return I(this, null, function* () {
|
|
9367
|
+
if (this.hasVideoTrack = !!e.originVideoTrack, e.originVideoTrack) {
|
|
9368
|
+
const i = e.currentVideoTrack;
|
|
9369
|
+
return i && i.id === e.originVideoTrack.id || e.updateVideoTrack(e.originVideoTrack), void this.stop();
|
|
9370
|
+
}
|
|
9371
|
+
const t = yield this.start();
|
|
9372
|
+
e.updateVideoTrack(t);
|
|
9373
|
+
});
|
|
9374
|
+
}
|
|
9375
|
+
}
|
|
9376
|
+
var zc = Object.defineProperty, Wc = Object.getOwnPropertyDescriptor, j = (r, a, e, t) => {
|
|
9377
|
+
for (var i, s = t > 1 ? void 0 : t ? Wc(a, e) : a, n = r.length - 1; n >= 0; n--)
|
|
9187
9378
|
(i = r[n]) && (s = (t ? i(a, e, s) : i(s)) || s);
|
|
9188
|
-
return t && s &&
|
|
9379
|
+
return t && s && zc(a, e, s), s;
|
|
9189
9380
|
}, W;
|
|
9190
9381
|
const F = (W = class extends He {
|
|
9191
9382
|
constructor(e) {
|
|
@@ -9207,10 +9398,10 @@ const F = (W = class extends He {
|
|
|
9207
9398
|
g(this, "_proxyAiTid", null);
|
|
9208
9399
|
g(this, "_agentParam", null);
|
|
9209
9400
|
const t = Date.now();
|
|
9210
|
-
V.init(), this.slsReporter = new wr(this), this.channelProfile =
|
|
9401
|
+
V.init(), this.slsReporter = new wr(this), this.channelProfile = kt.AliRtcSdkCommunication, this.clientRole = Ht.AliRtcSdkLive, this.liveTranscoding = new xc(this.slsReporter), this.signalingManager = new Nr(this.channelProfile, this.clientRole, this.slsReporter, (e == null ? void 0 : e.env) === _t.pre ? _t.pre : _t.prod), this.addSignalingManagerListeners(), this.maxSignalingConnectRetryCount = e == null ? void 0 : e.maxSignalingConnectRetryCount, this.bizControl = new $e({ slsReporter: this.slsReporter, signalingManager: this.signalingManager }), this.addBizControlListeners(), this.addPublisherListeners(), this.slsReporter.reportConnectionLatencyEvent(at.CREATE_ENGINE, ht.START, "", "", t), this.slsReporter.reportConnectionLatencyEvent(at.CREATE_ENGINE, ht.END, "", "", Date.now()), this.slsReporter.reportSDKCreated(t);
|
|
9211
9402
|
}
|
|
9212
9403
|
static getSdkVersion() {
|
|
9213
|
-
return
|
|
9404
|
+
return Ni;
|
|
9214
9405
|
}
|
|
9215
9406
|
static setLogLevel(e) {
|
|
9216
9407
|
V.setLogLevel(e);
|
|
@@ -9244,17 +9435,17 @@ const F = (W = class extends He {
|
|
|
9244
9435
|
return !!e && e.isPublishing;
|
|
9245
9436
|
}
|
|
9246
9437
|
get currentRoleCanPublish() {
|
|
9247
|
-
return this.channelProfile ===
|
|
9438
|
+
return this.channelProfile === kt.AliRtcSdkCommunication || this.clientRole === Ht.AliRtcSdkInteractive;
|
|
9248
9439
|
}
|
|
9249
9440
|
addPublisherListeners() {
|
|
9250
9441
|
var e, t, i, s, n, o, c, h, l, d;
|
|
9251
|
-
(e = this.publisher) == null || e.on(
|
|
9442
|
+
(e = this.publisher) == null || e.on(Qe.Local, (b) => {
|
|
9252
9443
|
V.event("[Publisher] Device Status Change", b), this.onLocalDeviceStatusChange(b);
|
|
9253
|
-
}), (t = this.publisher) == null || t.on(
|
|
9444
|
+
}), (t = this.publisher) == null || t.on(Jt.VideoTrackEnded, () => {
|
|
9254
9445
|
V.event("[Publisher] VideoTrack Ended"), this.emit("localDeviceException", Rt.AliEngineLocalDeviceTypeCamera, xe.AliEngineLocalDeviceExceptionTypeCameraInterrupt, "");
|
|
9255
|
-
}), (i = this.publisher) == null || i.on(
|
|
9446
|
+
}), (i = this.publisher) == null || i.on(Jt.ScreenTrackEnded, () => {
|
|
9256
9447
|
V.event("[Publisher] ScreenTrack Ended"), this.emit("localDeviceException", Rt.AliEngineLocalDeviceTypeDisplay, xe.AliEngineLocalDeviceExceptionTypeDisplayException, "");
|
|
9257
|
-
}), (s = this.publisher) == null || s.on(
|
|
9448
|
+
}), (s = this.publisher) == null || s.on(Jt.AudioTrackEnded, () => {
|
|
9258
9449
|
V.event("[Publisher] AudioTrack Ended"), this.emit("localDeviceException", Rt.AliEngineLocalDeviceTypeMic, xe.AliEngineLocalDeviceExceptionTypeMicInterrupt, "");
|
|
9259
9450
|
}), (n = this.publisher) == null || n.on("localDeviceException", (b, u, f = "") => {
|
|
9260
9451
|
this.emit("localDeviceException", b, u, f);
|
|
@@ -9281,7 +9472,7 @@ const F = (W = class extends He {
|
|
|
9281
9472
|
addBizControlListeners() {
|
|
9282
9473
|
this.bizControl.rtsManager.on("connected", (e) => {
|
|
9283
9474
|
var t;
|
|
9284
|
-
e && ((t = this.publisher) == null || t.publishUpdate(
|
|
9475
|
+
e && ((t = this.publisher) == null || t.publishUpdate(bt.RECONNECT), this.remoteUsers.forEach((i) => {
|
|
9285
9476
|
i.updateSubscribe(fe.Reconnect);
|
|
9286
9477
|
}));
|
|
9287
9478
|
}), this.bizControl.rtsManager.on("disconnected", () => I(this, null, function* () {
|
|
@@ -9291,7 +9482,7 @@ const F = (W = class extends He {
|
|
|
9291
9482
|
})), this.bizControl.rtsManager.on("seimessage", (e, t, i) => {
|
|
9292
9483
|
const s = this.remoteUsers.find((n) => n.streamUrl === e);
|
|
9293
9484
|
s && this.emit("mediaExtensionMsgReceived", s.userId, i, t);
|
|
9294
|
-
}), this.bizControl.on(
|
|
9485
|
+
}), this.bizControl.on(Qe.Remote, (e, t) => {
|
|
9295
9486
|
V.event(`[${W.logName}]`, "RemoteUser Device Status Change", e, t);
|
|
9296
9487
|
}), this.bizControl.on("remoteUserJoin", (e, t) => {
|
|
9297
9488
|
this.emit("remoteUserOnLineNotify", e, t);
|
|
@@ -9390,7 +9581,7 @@ const F = (W = class extends He {
|
|
|
9390
9581
|
});
|
|
9391
9582
|
}
|
|
9392
9583
|
onLocalDeviceStatusChange(e) {
|
|
9393
|
-
V.event(`[${W.logName}]`,
|
|
9584
|
+
V.event(`[${W.logName}]`, Qe.Local, e), this.signalingManager.reportStatus(e).then(() => {
|
|
9394
9585
|
V.debug("[signaling] reportStatus suc");
|
|
9395
9586
|
}).catch((t) => {
|
|
9396
9587
|
V.error("[signaling] reportStatus failed", t);
|
|
@@ -9436,7 +9627,7 @@ const F = (W = class extends He {
|
|
|
9436
9627
|
if (e != null && e.length) {
|
|
9437
9628
|
const { joinList: t, leaveList: i, presentList: s } = this.bizControl.updateUsers(e);
|
|
9438
9629
|
V.info(`[${W.logName}]`, "resumeSubList", { joinList: t, leaveList: i, presentList: s }), this.handleUsersJoin(t), i.forEach((n) => {
|
|
9439
|
-
V.event(W.logName, we.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid,
|
|
9630
|
+
V.event(W.logName, we.UserLeft, n.userid, n.reason), this.emit("remoteUserOffLineNotify", n.userid, Lr.AliRtcUserOfflineQuit);
|
|
9440
9631
|
});
|
|
9441
9632
|
for (let n = 0; n < s.length; n++) {
|
|
9442
9633
|
const o = s[n], c = o.userid, h = this.bizControl.getRemoteUser(c);
|
|
@@ -9480,7 +9671,7 @@ const F = (W = class extends He {
|
|
|
9480
9671
|
setChannelProfile(e) {
|
|
9481
9672
|
if (![ne.AliRtcConnectionStatusInit, ne.AliRtcConnectionStatusDisconnected, ne.AliRtcConnectionStatusFailed].includes(this.connectState))
|
|
9482
9673
|
throw new O(B.ERR_INNER, "cannot set channel profile in call");
|
|
9483
|
-
this.channelProfile = e, this.channelProfile ===
|
|
9674
|
+
this.channelProfile = e, this.channelProfile === kt.AliRtcSdkCommunication && (this.clientRole = Ht.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
|
|
9484
9675
|
}
|
|
9485
9676
|
startDefaultDevices() {
|
|
9486
9677
|
return I(this, null, function* () {
|
|
@@ -9520,13 +9711,13 @@ const F = (W = class extends He {
|
|
|
9520
9711
|
return I(this, null, function* () {
|
|
9521
9712
|
var t, i, s;
|
|
9522
9713
|
try {
|
|
9523
|
-
if (this.channelProfile ===
|
|
9714
|
+
if (this.channelProfile === kt.AliRtcSdkCommunication)
|
|
9524
9715
|
return;
|
|
9525
|
-
if (!Object.values(
|
|
9716
|
+
if (!Object.values(Ht).includes(e))
|
|
9526
9717
|
throw new O(B.ERR_INVALID_ARGUMENTS, `set client role error, role value(${e}) is invalid`);
|
|
9527
9718
|
if (this.clientRole === e)
|
|
9528
9719
|
return;
|
|
9529
|
-
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole ===
|
|
9720
|
+
this.slsReporter.reportRoleUpdate(this.clientRole, e), this.isInCall() ? this.clientRole === Ht.AliRtcSdkInteractive ? ((t = this.publisher) != null && t.isPublishing ? yield (i = this.publisher) == null ? void 0 : i.unPublish() : yield (s = this.publisher) == null ? void 0 : s.clearStream(), yield this.signalingManager.setClientRole(e)) : (yield this.signalingManager.setClientRole(e), yield this.startDefaultDevices(), yield this.startPublish(bt.ROLE_CHANGE)) : yield this.signalingManager.setClientRole(e), this.clientRole = e;
|
|
9530
9721
|
} catch (n) {
|
|
9531
9722
|
throw n.code === 403 && this.emit("authInfoExpired"), n;
|
|
9532
9723
|
}
|
|
@@ -9593,7 +9784,7 @@ const F = (W = class extends He {
|
|
|
9593
9784
|
throw this.connectState = ne.AliRtcConnectionStatusDisconnected, this.emit("connectionStatusChange", ne.AliRtcConnectionStatusDisconnected, yt.AliRtcConnectionSignalingJoinRoomFailure), this.slsReporter.reportJoin(f, c, ""), this.slsReporter.reportJoinResult(u), new O(f, p);
|
|
9594
9785
|
}
|
|
9595
9786
|
});
|
|
9596
|
-
this.currentRoleCanPublish ? (yield Promise.all([d(), this.startDefaultDevices()]), yield this.startPublish(
|
|
9787
|
+
this.currentRoleCanPublish ? (yield Promise.all([d(), this.startDefaultDevices()]), yield this.startPublish(bt.JOIN_CHANNEL)) : yield d(), (l = this.publisher) == null || l.reportSelfDeviceStatus(), this.remoteUsers.forEach((b) => {
|
|
9597
9788
|
b.updateSubscribe(fe.Join);
|
|
9598
9789
|
});
|
|
9599
9790
|
}
|
|
@@ -9743,13 +9934,12 @@ const F = (W = class extends He {
|
|
|
9743
9934
|
}
|
|
9744
9935
|
setScreenShareConfiguration(e) {
|
|
9745
9936
|
return I(this, null, function* () {
|
|
9746
|
-
var
|
|
9747
|
-
const
|
|
9748
|
-
if (
|
|
9937
|
+
var h;
|
|
9938
|
+
const { width: t, height: i } = e;
|
|
9939
|
+
if (t && !isNaN(t) && i && !isNaN(i) && t * i > 9437184)
|
|
9749
9940
|
throw new O(B.ERR_INVALID_ARGUMENTS, "width * height must be less than 9437184");
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
}), yield (n = this.publisher) == null ? void 0 : n.setScreenProfile(t);
|
|
9941
|
+
const c = e, { bitrate: s } = c, n = Et(c, ["bitrate"]), o = $({}, n);
|
|
9942
|
+
s && (o.maxBitrate = e.bitrate), yield (h = this.publisher) == null ? void 0 : h.setScreenProfile(o);
|
|
9753
9943
|
});
|
|
9754
9944
|
}
|
|
9755
9945
|
setScreenShareContentHint(e) {
|
|
@@ -9860,7 +10050,7 @@ const F = (W = class extends He {
|
|
|
9860
10050
|
setCameraCapturerConfiguration(e) {
|
|
9861
10051
|
return I(this, null, function* () {
|
|
9862
10052
|
var l, d, b;
|
|
9863
|
-
const h = e, { cameraDirection: t, deviceId: i, bitrate: s, maxSendFrameRate: n } = h, o =
|
|
10053
|
+
const h = e, { cameraDirection: t, deviceId: i, bitrate: s, maxSendFrameRate: n } = h, o = Et(h, ["cameraDirection", "deviceId", "bitrate", "maxSendFrameRate"]), c = $({}, o);
|
|
9864
10054
|
s && (c.maxBitrate = s), n && (c.maxSendFrameRate = n), Object.keys(c).length > 0 && (yield (l = this.publisher) == null ? void 0 : l.setVideoProfile(c)), t !== void 0 && ((d = this.publisher) == null || d.setCameraDirection(t)), i && ((b = this.publisher) == null || b.setCameraDeviceId(i));
|
|
9865
10055
|
});
|
|
9866
10056
|
}
|
|
@@ -9947,9 +10137,9 @@ const F = (W = class extends He {
|
|
|
9947
10137
|
var n, o, c, h;
|
|
9948
10138
|
const { userId: t, streamType: i } = e;
|
|
9949
10139
|
if (!t)
|
|
9950
|
-
return i ===
|
|
10140
|
+
return i === Ne.AliRtcSdkStreamTypeCapture ? (n = this.publisher) == null ? void 0 : n.cameraTrack : (o = this.publisher) == null ? void 0 : o.screenTrack;
|
|
9951
10141
|
const s = this.bizControl.getRemoteUser(t);
|
|
9952
|
-
return i ===
|
|
10142
|
+
return i === Ne.AliRtcSdkStreamTypeCapture ? (c = s == null ? void 0 : s.getCameraStream) == null ? void 0 : c.videoTrack : (h = s == null ? void 0 : s.getScreenStream) == null ? void 0 : h.videoTrack;
|
|
9953
10143
|
});
|
|
9954
10144
|
}
|
|
9955
10145
|
startPublishLiveStream(e, t) {
|
|
@@ -10013,26 +10203,26 @@ const F = (W = class extends He {
|
|
|
10013
10203
|
isBeautyEnabled() {
|
|
10014
10204
|
const e = this.bizControl.pluginManager.get("AliRtcBeauty");
|
|
10015
10205
|
if (!e)
|
|
10016
|
-
throw new O(
|
|
10206
|
+
throw new O(Mt.AliRtcPluginErrorNoFindPlugin, "you should enable beautyPlugin first");
|
|
10017
10207
|
return !!(e != null && e.isEnable);
|
|
10018
10208
|
}
|
|
10019
10209
|
setBeautyEffect(e, t) {
|
|
10020
10210
|
const i = this.bizControl.pluginManager.get("AliRtcBeauty");
|
|
10021
10211
|
if (!i)
|
|
10022
|
-
throw new O(
|
|
10212
|
+
throw new O(Mt.AliRtcPluginErrorNoFindPlugin, "you should enable beautyPlugin first");
|
|
10023
10213
|
e ? i.enable() : i.disable(), i.setOptions({ basicBeauty: { skinBuffing: Math.max(Math.min(1, +t.smoothnessLevel), 0), whitening: Math.max(Math.min(1, +t.whiteningLevel), 0) } });
|
|
10024
10214
|
}
|
|
10025
10215
|
enableBackgroundExchange(e, t) {
|
|
10026
10216
|
const i = this.bizControl.pluginManager.get("AliRtcBeauty");
|
|
10027
10217
|
if (!i || !i.isEnable)
|
|
10028
|
-
throw new O(
|
|
10218
|
+
throw new O(Mt.AliRtcPluginErrorNoFindPlugin, "you should enable beautyPlugin first");
|
|
10029
10219
|
const s = { setSegmentBackgroundImage: { backgroundImgUrl: e ? t : "" } };
|
|
10030
10220
|
e && (s.segmentBackgroundProcess = { enable: !1 }), i.setOptions(s);
|
|
10031
10221
|
}
|
|
10032
10222
|
enableBackgroundBlur(e) {
|
|
10033
10223
|
const t = this.bizControl.pluginManager.get("AliRtcBeauty");
|
|
10034
10224
|
if (!t || !t.isEnable)
|
|
10035
|
-
throw new O(
|
|
10225
|
+
throw new O(Mt.AliRtcPluginErrorNoFindPlugin, "you should enable beautyPlugin first");
|
|
10036
10226
|
const i = { segmentBackgroundProcess: { type: 0, enable: e } };
|
|
10037
10227
|
e && (i.setSegmentBackgroundImage = { type: 0, backgroundImgUrl: "" }), t.setOptions(i);
|
|
10038
10228
|
}
|
|
@@ -10051,26 +10241,27 @@ const F = (W = class extends He {
|
|
|
10051
10241
|
return (yield Se.getMicList()).filter((e) => e.deviceId);
|
|
10052
10242
|
})), g(W, "getSpeakerList", () => I(W, null, function* () {
|
|
10053
10243
|
return (yield Se.getSpeakerList()).filter((e) => e.deviceId);
|
|
10054
|
-
})), g(W, "_instance"), g(W, "AliRtcSdkChannelProfile",
|
|
10244
|
+
})), g(W, "_instance"), g(W, "AliRtcSdkChannelProfile", kt), g(W, "AliRtcSdkClientRole", Ht), g(W, "AliRtcVideoStreamType", Ke), g(W, "AliRtcVideoTrack", oe), g(W, "AliRtcAudioTrack", ii), g(W, "AliRtcPublishState", Z), g(W, "AliRtcSubscribeState", pe), g(W, "AliRtcRawDataStreamType", Ne), g(W, "AliRtcLogLevel", sn), g(W, "AliRtcEngineLocalDeviceType", Rt), g(W, "AliRtcEngineLocalDeviceExceptionType", xe), g(W, "AliRtcConnectionStatus", ne), g(W, "AliRtcConnectionStatusChangeReason", yt), g(W, "AliRtcPlugin", xt), g(W, "AliRtcPluginTrackType", fi), g(W, "AliRtcImageHolderPlugin", jc), g(W, "AliRtcLiveTranscodingParam", mr), g(W, "AliRtcLiveTranscodingEncodeParam", ln), g(W, "AliRtcLiveTranscodingMixParam", Vc), g(W, "AliRtcLiveTranscodingSingleParam", Oc), g(W, "AliRtcTranscodingClockWidget", Uc), g(W, "AliRtcTranscodingImage", yn), g(W, "AliRtcTranscodingText", Bc), g(W, "AliRtcTranscodingUser", Hc), g(W, "AliRtcLiveTranscodingMixMode", Pi), g(W, "AliRtcLiveTranscodingStreamType", an), g(W, "AliRtcLiveTranscodingSourceType", pi), g(W, "AliRtcLiveTranscodingTaskProfile", nn), g(W, "AliRtcLiveTranscodingAudioSampleRate", Pr), g(W, "AliRtcLiveTranscodingSegmentType", Di), g(W, "AliRtcLiveTranscodingFontType", xi), g(W, "AliRtcLiveTranscodingCropMode", on), g(W, "AliRtcLiveTranscodingMediaProcessMode", Dr), g(W, "AliRtcLiveTranscodingState", cn), g(W, "AliRtcLiveTranscodingErrorCode", At), g(W, "AliRtcTrascodingPublishTaskStatus", hn), g(W, "AliRtcDataChannelMsg", $t), g(W, "AliRtcDataMsgType", fn), g(W, "Plugin", xt), W);
|
|
10055
10245
|
j([T()], F.prototype, "destroy", 1), j([T()], F.prototype, "backToUnpublishStatus", 1), j([T()], F.prototype, "resumePublishForNetworkRecovery", 1), j([T()], F.prototype, "onNetworkRecovery", 1), j([T()], F.prototype, "resumeSubList", 1), j([T(U)], F.prototype, "retrySubscribe", 1), j([T(U)], F.prototype, "setEnableDualVideoStream", 1), j([T(U)], F.prototype, "setChannelProfile", 1), j([T(U)], F.prototype, "setClientRole", 1), j([T(U)], F.prototype, "setAudioOnlyMode", 1), j([T()], F.prototype, "clearCheckAuthInfoTimer", 1), j([T(U)], F.prototype, "joinChannel", 1), j([T(U)], F.prototype, "joinAIChannel", 1), j([T(U)], F.prototype, "leaveChannel", 1), j([T(U)], F.prototype, "refreshAuthInfo", 1), j([T(U)], F.prototype, "publishLocalAudioStream", 1), j([T(U)], F.prototype, "setDefaultSubscribeAllRemoteAudioStreams", 1), j([T(U)], F.prototype, "subscribeAllRemoteAudioStreams", 1), j([T(U)], F.prototype, "subscribeRemoteAudioStream", 1), j([T(U)], F.prototype, "resumeRemoteAudioStream", 1), j([T(U)], F.prototype, "stopRemoteAudioPlay", 1), j([T(U)], F.prototype, "publishLocalVideoStream", 1), j([T(U)], F.prototype, "setRemoteDefaultVideoStreamType", 1), j([T(U)], F.prototype, "setRemoteUserVideoStreamType", 1), j([T(U)], F.prototype, "setDefaultSubscribeAllRemoteVideoStreams", 1), j([T(U)], F.prototype, "subscribeAllRemoteVideoStreams", 1), j([T(U)], F.prototype, "subscribeRemoteMediaStream", 1), j([T(U)], F.prototype, "resumeRemoteMediaStream", 1), j([T(([r]) => [`${r == null ? void 0 : r.audio}`])], F.prototype, "startScreenShare", 1), j([T()], F.prototype, "stopScreenShare", 1), j([T(U)], F.prototype, "setScreenShareConfiguration", 1), j([T(U)], F.prototype, "setScreenShareContentHint", 1), j([T()], F.prototype, "publishLocalScreenShareStream", 1), j([T(U)], F.prototype, "setAudioShareVolume", 1), j([T(U)], F.prototype, "enableAudioVolumeIndication", 1), j([T(U)], F.prototype, "muteLocalMic", 1), j([T(U)], F.prototype, "muteRemoteAudioPlaying", 1), j([T(U)], F.prototype, "muteAllRemoteAudioPlaying", 1), j([T(U)], F.prototype, "startAudioCapture", 1), j([T(U)], F.prototype, "setAudioConstraints", 1), j([T()], F.prototype, "stopAudioCapture", 1), j([T(U)], F.prototype, "switchMicrophone", 1), j([T(U)], F.prototype, "setRecordingVolume", 1), j([T(U)], F.prototype, "setPlayoutVolume", 1), j([T(U)], F.prototype, "setRemoteAudioVolume", 1), j([T(U)], F.prototype, "setAudioProfile", 1), j([T(U)], F.prototype, "getAudioTrack", 1), j([T(U)], F.prototype, "setLocalViewConfig", 1), j([T(U)], F.prototype, "setCameraCapturerConfiguration", 1), j([T(U)], F.prototype, "setCameraCapturerContentHint", 1), j([T(U)], F.prototype, "enableLocalVideo", 1), j([T(U)], F.prototype, "muteLocalCamera", 1), j([T(U)], F.prototype, "muteLocalScreen", 1), j([T(U)], F.prototype, "setRemoteViewConfig", 1), j([T(U)], F.prototype, "switchCamera", 1), j([T()], F.prototype, "startPreview", 1), j([T()], F.prototype, "startPreviewScreen", 1), j([T()], F.prototype, "stopPreview", 1), j([T()], F.prototype, "stopPreviewScreen", 1), j([T()], F.prototype, "startPublishLiveStream", 1), j([T()], F.prototype, "updatePublishLiveStream", 1), j([T()], F.prototype, "updatePublishLiveStreamWithTaskId", 1), j([T()], F.prototype, "stopPublishLiveStream", 1), j([T()], F.prototype, "stopPublishLiveStreamWithTaskId", 1), j([T(U)], F.prototype, "setEnableMediaExtensionMsg", 1), j([T(([r, a, e]) => [r.byteLength, a, e])], F.prototype, "sendMediaExtensionMsgEx", 1), j([T(([r, a]) => [r.name || "", a])], F.prototype, "enablePlugin", 1), j([T(U)], F.prototype, "removePlugin", 1), j([T(U)], F.prototype, "setPluginOption", 1), j([T(U)], F.prototype, "getPluginByName", 1), j([T(U)], F.prototype, "getPluginOption", 1), j([T(U)], F.prototype, "setBeautyEffect", 1), j([T(U)], F.prototype, "enableBackgroundExchange", 1), j([T(U)], F.prototype, "enableBackgroundBlur", 1), j([T(U)], F.prototype, "setParameter", 1), j([T(([r]) => {
|
|
10056
10246
|
var a;
|
|
10057
10247
|
return [(a = r.data) == null ? void 0 : a.byteLength];
|
|
10058
10248
|
})], F.prototype, "sendDataChannelMessage", 1), j([T(U)], F, "setLogLevel", 1);
|
|
10059
10249
|
let Rn = F;
|
|
10060
|
-
var
|
|
10061
|
-
const _n = new Er({ businessName: "imp-web-rtc", version: (
|
|
10250
|
+
var Qa;
|
|
10251
|
+
const _n = new Er({ businessName: "imp-web-rtc", version: (Qa = Rn.getSdkVersion()) != null ? Qa : "unknown", env: "prod", disabled: window.AliRtcOptionsDisableProxy === !0 });
|
|
10062
10252
|
_n.setReady();
|
|
10063
|
-
const
|
|
10253
|
+
const Gc = _n.wrap(Rn);
|
|
10064
10254
|
export {
|
|
10065
10255
|
ii as AliRtcAudioTrack,
|
|
10066
10256
|
Vr as AliRtcCapabilityProfile,
|
|
10067
10257
|
ne as AliRtcConnectionStatus,
|
|
10068
10258
|
yt as AliRtcConnectionStatusChangeReason,
|
|
10069
|
-
|
|
10259
|
+
$t as AliRtcDataChannelMsg,
|
|
10070
10260
|
fn as AliRtcDataMsgType,
|
|
10071
10261
|
xe as AliRtcEngineLocalDeviceExceptionType,
|
|
10072
10262
|
Rt as AliRtcEngineLocalDeviceType,
|
|
10073
10263
|
B as AliRtcErrorCode,
|
|
10264
|
+
jc as AliRtcImageHolderPlugin,
|
|
10074
10265
|
Pr as AliRtcLiveTranscodingAudioSampleRate,
|
|
10075
10266
|
on as AliRtcLiveTranscodingCropMode,
|
|
10076
10267
|
ln as AliRtcLiveTranscodingEncodeParam,
|
|
@@ -10088,14 +10279,14 @@ export {
|
|
|
10088
10279
|
nn as AliRtcLiveTranscodingTaskProfile,
|
|
10089
10280
|
Fa as AliRtcLocalStreamInfo,
|
|
10090
10281
|
sn as AliRtcLogLevel,
|
|
10091
|
-
|
|
10282
|
+
xt as AliRtcPlugin,
|
|
10092
10283
|
fi as AliRtcPluginTrackType,
|
|
10093
10284
|
$o as AliRtcPluginType,
|
|
10094
|
-
|
|
10095
|
-
|
|
10285
|
+
Z as AliRtcPublishState,
|
|
10286
|
+
Ne as AliRtcRawDataStreamType,
|
|
10096
10287
|
lc as AliRtcRemoteUserInfo,
|
|
10097
|
-
|
|
10098
|
-
|
|
10288
|
+
kt as AliRtcSdkChannelProfile,
|
|
10289
|
+
Ht as AliRtcSdkClientRole,
|
|
10099
10290
|
pe as AliRtcSubscribeState,
|
|
10100
10291
|
Uc as AliRtcTranscodingClockWidget,
|
|
10101
10292
|
yn as AliRtcTranscodingImage,
|
|
@@ -10104,5 +10295,5 @@ export {
|
|
|
10104
10295
|
hn as AliRtcTrascodingPublishTaskStatus,
|
|
10105
10296
|
Ke as AliRtcVideoStreamType,
|
|
10106
10297
|
oe as AliRtcVideoTrack,
|
|
10107
|
-
|
|
10298
|
+
Gc as default
|
|
10108
10299
|
};
|