aliyun-rtc-sdk 7.0.0-beta.2 → 7.0.0-beta.3

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.
@@ -36,13 +36,13 @@ var w = (r, n, e) => new Promise((t, i) => {
36
36
  }, c = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, a);
37
37
  c((e = e.apply(r, n)).next());
38
38
  });
39
- import { AliRTS as de, EConnectStatus as Li, EDatachannelStatus as _s } from "aliyun-rts-sdk";
39
+ import { AliRTS as de, EConnectStatus as Li, EDatachannelStatus as ys } from "aliyun-rts-sdk";
40
40
  import Ae from "eventemitter3";
41
- var eo = Object.defineProperty, to = (r, n, e) => n in r ? eo(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e, Pt = (r, n, e) => (to(r, typeof n != "symbol" ? n + "" : n, e), e), Fi = { exports: {} }, Vi = { exports: {} }, Oi, ys;
41
+ var eo = Object.defineProperty, to = (r, n, e) => n in r ? eo(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e, Pt = (r, n, e) => (to(r, typeof n != "symbol" ? n + "" : n, e), e), Fi = { exports: {} }, Vi = { exports: {} }, Oi, _s;
42
42
  function Fe() {
43
- if (ys)
43
+ if (_s)
44
44
  return Oi;
45
- ys = 1, Date.now = Date.now || function() {
45
+ _s = 1, Date.now = Date.now || function() {
46
46
  return (/* @__PURE__ */ new Date()).getTime();
47
47
  };
48
48
  var r = Date.now(), n = function() {
@@ -864,8 +864,8 @@ function so() {
864
864
  } : r.sub(s, e), !r.checkAPI(s.api, !0))
865
865
  return this;
866
866
  s.code = s.code || "";
867
- var _ = s.msg || "";
868
- if (_ = typeof _ == "string" ? _.substring(0, 1e3) : _, s.msg = _, s.success = s.success ? 1 : 0, s.time = +s.time, s.begin = s.begin, s.traceId = s.traceId || "", s.pv_id = s.pv_id || "", s.domain = s.domain || "", s.flag = s.flag, s.dl = typeof location == "object" && typeof location.href == "string" && location.href.substring(0, 500) || "", s.apiSnapshot && (typeof s.apiSnapshot == "object" && (s.apiSnapshot = JSON.stringify(s.apiSnapshot)), typeof s.apiSnapshot != "string" && delete s.apiSnapshot, s.apiSnapshot.length > 2e3 && (s.apiSnapshot = s.apiSnapshot.substring(0, 2e3))), l && (s.traceOrigin = l), !s.api || isNaN(s.time))
867
+ var y = s.msg || "";
868
+ if (y = typeof y == "string" ? y.substring(0, 1e3) : y, s.msg = y, s.success = s.success ? 1 : 0, s.time = +s.time, s.begin = s.begin, s.traceId = s.traceId || "", s.pv_id = s.pv_id || "", s.domain = s.domain || "", s.flag = s.flag, s.dl = typeof location == "object" && typeof location.href == "string" && location.href.substring(0, 500) || "", s.apiSnapshot && (typeof s.apiSnapshot == "object" && (s.apiSnapshot = JSON.stringify(s.apiSnapshot)), typeof s.apiSnapshot != "string" && delete s.apiSnapshot, s.apiSnapshot.length > 2e3 && (s.apiSnapshot = s.apiSnapshot.substring(0, 2e3))), l && (s.traceOrigin = l), !s.api || isNaN(s.time))
869
869
  return r.warn("[retcode] invalid time or api"), this;
870
870
  var A = (this.getConfig("ignore") || {}).ignoreApis;
871
871
  return r.ignoreByRule(s.api, A) || r.ignoreByRule(r.decode(s.api), A) ? this : s.time < 0 ? this : (this.beforeSend && this.beforeSend("api", s), this._lg("api", s, s.success && this.getConfig("sample"), s.flag));
@@ -999,8 +999,8 @@ function oo() {
999
999
  message: function(v) {
1000
1000
  if (!v || v.nodeType !== 1)
1001
1001
  return "";
1002
- for (var x = v || null, b = [], E = 0, _ = 0, A = 3, y = ""; x && E++ < 5 && !((y = u(x)) === "html" || E > 1 && _ + b.length * A + y.length >= 80); )
1003
- b.push(y), _ += y.length, x = x.parentNode;
1002
+ for (var x = v || null, b = [], E = 0, y = 0, A = 3, _ = ""; x && E++ < 5 && !((_ = u(x)) === "html" || E > 1 && y + b.length * A + _.length >= 80); )
1003
+ b.push(_), y += _.length, x = x.parentNode;
1004
1004
  return b.reverse().join(" > ");
1005
1005
  }(l)
1006
1006
  },
@@ -1106,8 +1106,8 @@ function oo() {
1106
1106
  S && r.isString(S) && e.console[S] && typeof e.console[S] == "function" && o(e.console, S, function(v) {
1107
1107
  var x = S;
1108
1108
  return function() {
1109
- for (var b = arguments.length, E = new Array(b), _ = 0; _ < b; _++)
1110
- E[_] = arguments[_];
1109
+ for (var b = arguments.length, E = new Array(b), y = 0; y < b; y++)
1110
+ E[y] = arguments[y];
1111
1111
  var A = {
1112
1112
  type: "console",
1113
1113
  data: {
@@ -1116,8 +1116,8 @@ function oo() {
1116
1116
  }
1117
1117
  };
1118
1118
  if (i && i.addBehavior(A), x === "error")
1119
- for (var y = 0; y < E.length; y++) {
1120
- var R = E[y];
1119
+ for (var _ = 0; _ < E.length; _++) {
1120
+ var R = E[_];
1121
1121
  R && R.message && R.stack && i && i.errorHandler(new ErrorEvent("error", {
1122
1122
  error: R,
1123
1123
  message: R.message
@@ -1224,15 +1224,15 @@ function ho() {
1224
1224
  ct: h ? h.effectiveType || h.type : ""
1225
1225
  }, d = {}, f = function(l, S, v, x, b) {
1226
1226
  if (S === void 0) {
1227
- var E, _;
1227
+ var E, y;
1228
1228
  if (!d[l]) {
1229
1229
  E = new RegExp(l + "=([^;]+)");
1230
1230
  try {
1231
- _ = E.exec(e.cookie);
1232
- } catch (y) {
1233
- return t.warn("[retcode] can not get cookie:", y), null;
1231
+ y = E.exec(e.cookie);
1232
+ } catch (_) {
1233
+ return t.warn("[retcode] can not get cookie:", _), null;
1234
1234
  }
1235
- _ && (d[l] = _[1]);
1235
+ y && (d[l] = y[1]);
1236
1236
  }
1237
1237
  return d[l];
1238
1238
  }
@@ -1240,8 +1240,8 @@ function ho() {
1240
1240
  A += "; path=/", v && (A += "; max-age=" + v);
1241
1241
  try {
1242
1242
  return e.cookie = A, !!e.cookie;
1243
- } catch (y) {
1244
- return t.warn("[retcode] can not set cookie: ", y), !1;
1243
+ } catch (_) {
1244
+ return t.warn("[retcode] can not set cookie: ", _), !1;
1245
1245
  }
1246
1246
  }, m = function(l) {
1247
1247
  var S = l._conf.uid || f("_nk_") || f("_bl_uid");
@@ -1271,23 +1271,23 @@ function ho() {
1271
1271
  resourceErrorHandler: function(l) {
1272
1272
  var S = this, v = l.target || l.srcElement;
1273
1273
  try {
1274
- var x = S.getSrc(v), b = typeof v.tagName == "string" ? v.tagName.toLowerCase() : "", E = S.getXPath(v, 5), _ = t.getURL(x), A = {
1274
+ var x = S.getSrc(v), b = typeof v.tagName == "string" ? v.tagName.toLowerCase() : "", E = S.getXPath(v, 5), y = t.getURL(x), A = {
1275
1275
  src: x && x.substring(0, 1e3),
1276
1276
  node_name: b,
1277
1277
  xpath: E,
1278
1278
  res_type: t.getResType(b, x),
1279
- res_name: _.path,
1280
- domain: _.domain
1279
+ res_name: y.path,
1280
+ domain: y.domain
1281
1281
  };
1282
1282
  return S._conf.enableResource && S.fixResourceStatus && l.timeStamp && S.fixResourceStatus({
1283
1283
  src: x,
1284
1284
  node_name: b,
1285
1285
  res_type: t.getResType(b, x),
1286
1286
  timeStamp: l.timeStamp,
1287
- domain: _.domain
1287
+ domain: y.domain
1288
1288
  }), S._lg("resourceError", A), S;
1289
- } catch (y) {
1290
- return t.warn("[ARMS] resourceErrorHandler error :", y), S;
1289
+ } catch (_) {
1290
+ return t.warn("[ARMS] resourceErrorHandler error :", _), S;
1291
1291
  }
1292
1292
  },
1293
1293
  getSrc: function(l) {
@@ -1477,12 +1477,12 @@ function lo() {
1477
1477
  var Fs, Vs;
1478
1478
  function fo() {
1479
1479
  return Vs || (Vs = 1, Fs = function(r, n) {
1480
- var e = Fe(), t = null, i = e.getCurDomain(), s = function(h, g, d, f, m, l, S, v, x, b, E, _, A) {
1481
- var y = e.J(m) || null, R = e.safetyCall(g, [y, f], null);
1480
+ var e = Fe(), t = null, i = e.getCurDomain(), s = function(h, g, d, f, m, l, S, v, x, b, E, y, A) {
1481
+ var _ = e.J(m) || null, R = e.safetyCall(g, [_, f], null);
1482
1482
  if (!R)
1483
1483
  return !1;
1484
1484
  var M = R.code || l, C = !("success" in R) || R.success;
1485
- h.api(d, C, S, M, R.msg, v, x, b, C ? {} : E, i, _, A);
1485
+ h.api(d, C, S, M, R.msg, v, x, b, C ? {} : E, i, y, A);
1486
1486
  }, a = "fetch", c = "__oFetch_", o = "__oXMLHttpRequest_", u = "XMLHttpRequest";
1487
1487
  return e.ext(r.prototype, {
1488
1488
  removeHook: function(h, g) {
@@ -1499,12 +1499,12 @@ function fo() {
1499
1499
  f || (f = {});
1500
1500
  var S = Date.now(), v = l._conf, x = e.duration(), b = (d && typeof d != "string" ? d.url : d) || "", E = b;
1501
1501
  b = e.cutUrlSearch(b);
1502
- var _ = (v.ignore || {}).ignoreApis, A = v.parseTraceId;
1503
- if (!e.checkAPI(b, !0) || e.ignoreByRule(b, _))
1502
+ var y = (v.ignore || {}).ignoreApis, A = v.parseTraceId;
1503
+ if (!e.checkAPI(b, !0) || e.ignoreByRule(b, y))
1504
1504
  return g.apply(n, m);
1505
1505
  b = e.filterByRule(b, E, v.ignoreApiPath ? v.ignoreApiPath : v.apiHelper);
1506
- var y = v.enableLinkTrace, R = "", M = "", C = l.getConfig("pid"), I = null, P = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
1507
- if (P && !l.sampling(P) && ($ = 0), y) {
1506
+ var _ = v.enableLinkTrace, R = "", M = "", C = l.getConfig("pid"), I = null, P = l.getConfig("sample"), B = l.getConfig("linkType"), $ = 1;
1507
+ if (P && !l.sampling(P) && ($ = 0), _) {
1508
1508
  var q = "";
1509
1509
  try {
1510
1510
  q = location.origin ? location.origin : location.protocol + "//" + location.hostname + (location.port ? ":" + location.port : "");
@@ -1615,7 +1615,7 @@ function fo() {
1615
1615
  var l = new d(m), S = t;
1616
1616
  if (!S || !S.api || !l.addEventListener)
1617
1617
  return l;
1618
- var v, x, b, E, _ = l.send, A = l.open, y = l.setRequestHeader, R = S._conf, M = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = S.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, Y = S.getConfig("sample"), ae = S.getConfig("linkType"), Q = 1;
1618
+ var v, x, b, E, y = l.send, A = l.open, _ = l.setRequestHeader, R = S._conf, M = (R.ignore || {}).ignoreApis, C = R.parseTraceId, I = S.getConfig("enableLinkTrace"), P = "", B = "", $ = "", q = null, Y = S.getConfig("sample"), ae = S.getConfig("linkType"), Q = 1;
1619
1619
  return Y && !S.sampling(Y) && (Q = 0), l.open = function(te, ee) {
1620
1620
  g = te;
1621
1621
  var k = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
@@ -1629,25 +1629,25 @@ function fo() {
1629
1629
  F = "";
1630
1630
  }
1631
1631
  var N = e.checkSameOrigin(E, F);
1632
- if ((S.getConfig("enableApiCors") || N) && y && typeof y == "function")
1632
+ if ((S.getConfig("enableApiCors") || N) && _ && typeof _ == "function")
1633
1633
  switch (ae) {
1634
1634
  case "arms":
1635
- P = S.getTraceId()["EagleEye-TraceID"], y.apply(l, ["EagleEye-TraceID", P]), B = S.getPageviewId()["EagleEye-SessionID"], y.apply(l, ["EagleEye-SessionID", B]), $ = S.getConfig("pid"), y.apply(l, ["EagleEye-pAppName", $]);
1635
+ P = S.getTraceId()["EagleEye-TraceID"], _.apply(l, ["EagleEye-TraceID", P]), B = S.getPageviewId()["EagleEye-SessionID"], _.apply(l, ["EagleEye-SessionID", B]), $ = S.getConfig("pid"), _.apply(l, ["EagleEye-pAppName", $]);
1636
1636
  break;
1637
1637
  case "b3":
1638
1638
  var G = S.getB3TraceId(Q);
1639
- y.apply(l, ["X-B3-TraceId", G["X-B3-TraceId"]]), y.apply(l, ["X-B3-ParentSpanId", G["X-B3-ParentSpanId"]]), y.apply(l, ["X-B3-SpanId", G["X-B3-SpanId"]]), y.apply(l, ["X-B3-Sampled", G["X-B3-Sampled"]]), y.apply(l, ["X-Request-ID", e.guid()]), P = G["X-B3-TraceId"], B = S.getPageviewId()["EagleEye-SessionID"];
1639
+ _.apply(l, ["X-B3-TraceId", G["X-B3-TraceId"]]), _.apply(l, ["X-B3-ParentSpanId", G["X-B3-ParentSpanId"]]), _.apply(l, ["X-B3-SpanId", G["X-B3-SpanId"]]), _.apply(l, ["X-B3-Sampled", G["X-B3-Sampled"]]), _.apply(l, ["X-Request-ID", e.guid()]), P = G["X-B3-TraceId"], B = S.getPageviewId()["EagleEye-SessionID"];
1640
1640
  break;
1641
1641
  case "tracing":
1642
1642
  default:
1643
1643
  var j = S.getUberTraceId(Q);
1644
- y.apply(l, ["uber-trace-id", j["uber-trace-id"]]), P = j.traceId, B = S.getPageviewId()["EagleEye-SessionID"];
1644
+ _.apply(l, ["uber-trace-id", j["uber-trace-id"]]), P = j.traceId, B = S.getPageviewId()["EagleEye-SessionID"];
1645
1645
  }
1646
1646
  }
1647
1647
  }, l.send = function() {
1648
1648
  v = Date.now(), x = e.duration();
1649
1649
  var te = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
1650
- _.apply(l, te);
1650
+ y.apply(l, te);
1651
1651
  }, e.on(l, "readystatechange", function() {
1652
1652
  if (b && l.readyState === 4) {
1653
1653
  var te = x(), ee = e.getXhrSnapshot(E, g, l);
@@ -1704,8 +1704,8 @@ function po() {
1704
1704
  try {
1705
1705
  var l = f.split("#"), S = g.split("#"), v = e.cutUrlSearch(l[0]), x = e.cutUrlSearch(S[0]), b = l[1] && l[1].replace(/^\/?(.*)/, "$1"), E = S[1] && S[1].replace(/^\/?(.*)/, "$1");
1706
1706
  b !== E ? s("historystatechange", E) : v !== x && s("historystatechange", x);
1707
- } catch (_) {
1708
- e.warn("[retcode] error in " + c + ": " + _);
1707
+ } catch (y) {
1708
+ e.warn("[retcode] error in " + c + ": " + y);
1709
1709
  }
1710
1710
  return m;
1711
1711
  }, t[c].toString = e.createFakeToString(c));
@@ -1728,10 +1728,10 @@ function go() {
1728
1728
  if (o instanceof i.PerformanceResourceTiming && o.initiatorType) {
1729
1729
  var g = r.getResType(o.initiatorType, o.name), d = u.resourceTypes || [], f = (u.ignore || {}).ignoreResources;
1730
1730
  if (g && d.includes(g) && !r.ignoreByRule(o.name, f) && !r.ignoreByRule(r.decode(o.name), f)) {
1731
- var m = o[e[0]], l = o[e[1]], S = o[e[2]], v = o[e[3]], x = o[e[4]], b = o[e[5]], E = o[e[6]], _ = o[e[7]], A = o[e[8]], y = o[e[18]], R = o[e[19]];
1732
- if (!h.has(o) && (!r.areInOrder(m, l, S, v, x, b, E, _, A) || m > _))
1731
+ var m = o[e[0]], l = o[e[1]], S = o[e[2]], v = o[e[3]], x = o[e[4]], b = o[e[5]], E = o[e[6]], y = o[e[7]], A = o[e[8]], _ = o[e[18]], R = o[e[19]];
1732
+ if (!h.has(o) && (!r.areInOrder(m, l, S, v, x, b, E, y, A) || m > y))
1733
1733
  return;
1734
- if (y < m && (y = m), R < m && (R = l), r.areInOrder(m, y, R, l))
1734
+ if (_ < m && (_ = m), R < m && (R = l), r.areInOrder(m, _, R, l))
1735
1735
  return {
1736
1736
  domain: r.getURL(o.name).domain,
1737
1737
  res_type: g,
@@ -1816,11 +1816,11 @@ function go() {
1816
1816
  timings: []
1817
1817
  };
1818
1818
  r.each(v, function(b) {
1819
- var E = b.timing || {}, _ = h.get(b.timing), A = _ ? _.success : 1, y = b.duration > u ? 1 : 0;
1820
- x.domain = b.domain, x.res_type = b.res_type, x.src_type = b.src_type, x.count += 1, x.duration += b.duration, x.size += b.size, A || (x.err_count += 1, x.err_duration += b.duration), y && (x.slow_count += 1, x.slow_duration += b.duration);
1819
+ var E = b.timing || {}, y = h.get(b.timing), A = y ? y.success : 1, _ = b.duration > u ? 1 : 0;
1820
+ x.domain = b.domain, x.res_type = b.res_type, x.src_type = b.src_type, x.count += 1, x.duration += b.duration, x.size += b.size, A || (x.err_count += 1, x.err_duration += b.duration), _ && (x.slow_count += 1, x.slow_duration += b.duration);
1821
1821
  try {
1822
1822
  var R = JSON.parse(JSON.stringify(E));
1823
- R.success = A, R.resourceSlow = u, R.isSlow = y, x.timings.push(R);
1823
+ R.success = A, R.resourceSlow = u, R.isSlow = _, x.timings.push(R);
1824
1824
  } catch (M) {
1825
1825
  }
1826
1826
  }), x.count && (x.size = Math.round(x.size / x.count), x.duration = Math.round(x.duration / x.count)), x.slow_count && (x.slow_duration = Math.round(x.slow_duration / x.slow_count)), x.err_count && (x.err_duration = Math.round(x.err_duration / x.err_count)), x.timings.length > 20 && (x.timings.sort(function(b, E) {
@@ -2041,8 +2041,8 @@ const Ws = "https://arms-retcode.aliyuncs.com/r.png?", $s = "https://arms-retcod
2041
2041
  reportUrl: Ks,
2042
2042
  pid: Gs
2043
2043
  }
2044
- }, bo = (r) => r !== null && typeof r == "object", Eo = (r) => Object.prototype.toString.call(r).slice(8, -1), _o = (r) => Object.isExtensible(r) ? Eo(r) === "Object" : !1;
2045
- function yo(r, n, e) {
2044
+ }, bo = (r) => r !== null && typeof r == "object", Eo = (r) => Object.prototype.toString.call(r).slice(8, -1), yo = (r) => Object.isExtensible(r) ? Eo(r) === "Object" : !1;
2045
+ function _o(r, n, e) {
2046
2046
  var a;
2047
2047
  if (Reflect.get(r, "__v_skip") === !0)
2048
2048
  return r;
@@ -2129,7 +2129,7 @@ function dn(r, n) {
2129
2129
  function ft(r, n, e) {
2130
2130
  return typeof r == "function" ? Ao(r, n + 1, e) : r instanceof Promise ? r.then((t) => ft(t, n + 1, e)).catch((t) => (e(t), Promise.reject(t))) : Array.isArray(r) ? (r.forEach((t, i) => {
2131
2131
  r[i] = ft(t, n + 1, e);
2132
- }), r) : bo(r) && _o(r) ? yo(r, n + 1, e) : r;
2132
+ }), r) : bo(r) && yo(r) ? _o(r, n + 1, e) : r;
2133
2133
  }
2134
2134
  function Ro(r) {
2135
2135
  return typeof r != "string" ? !1 : r.indexOf("g.alicdn.com/apsara-media-") > -1 || r.indexOf("g.alicdn.com/thor-server") > -1;
@@ -2264,7 +2264,7 @@ function Ze(r, n, e) {
2264
2264
  return wo(t);
2265
2265
  }
2266
2266
  var pe = /* @__PURE__ */ ((r) => (r.PullStreamStats = "remoteStat", r.RtsSubscribeExceeds = "rtsSubscribeExceeds", r.UserJoined = "userJoined", r.UserLeft = "userLeft", r.Bye = "bye", r.MuteAudio = "muteAudio", r.UnmuteAudio = "unmuteAudio", r.MuteVideo = "muteVideo", r.UnmuteVideo = "unmuteVideo", r.MuteScreen = "muteScreen", r.UnmuteScreen = "unmuteScreen", r.Error = "error", r))(pe || {}), Le = /* @__PURE__ */ ((r) => (r.Local = "local-device-status-change", r.Remote = "remote-device-status-change", r))(Le || {}), T = /* @__PURE__ */ ((r) => (r.Audio = "sophon_audio", r.VideoLarge = "sophon_video_camera_large", r.VideoSmall = "sophon_video_camera_small", r.Screen = "sophon_video_screen_share", r.Data = "sophon_data", r))(T || {}), Gr = /* @__PURE__ */ ((r) => (r.Audio = "rts audio", r.VideoLarge = "rts video", r))(Gr || {}), xt = /* @__PURE__ */ ((r) => (r.Add = "add", r.Delete = "delete", r.Replace = "replace", r.Stop = "stop", r.UnPublish = "unpublish", r))(xt || {}), Gt = /* @__PURE__ */ ((r) => (r[r.Camera = 0] = "Camera", r[r.Screen = 1] = "Screen", r[r.Image = 2] = "Image", r))(Gt || {}), vi = /* @__PURE__ */ ((r) => (r[r.Microphone = 0] = "Microphone", r[r.Screen = 1] = "Screen", r[r.Mixed = 2] = "Mixed", r))(vi || {}), he = /* @__PURE__ */ ((r) => (r.InRoom = "inRoom", r.Join = "join", r.Publish = "publish", r.User = "user", r.Resume = "resume", r.Retry = "retry", r.Reconnect = "reconnect", r))(he || {}), nt = /* @__PURE__ */ ((r) => (r[r.MANUAL = 0] = "MANUAL", r[r.JOIN_CHANNEL = 1] = "JOIN_CHANNEL", r[r.ROLE_CHANGE = 2] = "ROLE_CHANGE", r[r.RECONNECT = 3] = "RECONNECT", r))(nt || {}), bi = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(bi || {});
2267
- const Ci = "7.0.0-beta.2", Qs = "web";
2267
+ const Ci = "7.0.0-beta.3", Qs = "web";
2268
2268
  class He {
2269
2269
  /**
2270
2270
  * 将版本号转换为number
@@ -2718,15 +2718,15 @@ function ne() {
2718
2718
  * wordArray1.concat(wordArray2);
2719
2719
  */
2720
2720
  concat: function(x) {
2721
- var b = this.words, E = x.words, _ = this.sigBytes, A = x.sigBytes;
2722
- if (this.clamp(), _ % 4)
2723
- for (var y = 0; y < A; y++) {
2724
- var R = E[y >>> 2] >>> 24 - y % 4 * 8 & 255;
2725
- b[_ + y >>> 2] |= R << 24 - (_ + y) % 4 * 8;
2721
+ var b = this.words, E = x.words, y = this.sigBytes, A = x.sigBytes;
2722
+ if (this.clamp(), y % 4)
2723
+ for (var _ = 0; _ < A; _++) {
2724
+ var R = E[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
2725
+ b[y + _ >>> 2] |= R << 24 - (y + _) % 4 * 8;
2726
2726
  }
2727
2727
  else
2728
2728
  for (var M = 0; M < A; M += 4)
2729
- b[_ + M >>> 2] = E[M >>> 2];
2729
+ b[y + M >>> 2] = E[M >>> 2];
2730
2730
  return this.sigBytes += A, this;
2731
2731
  },
2732
2732
  /**
@@ -2786,11 +2786,11 @@ function ne() {
2786
2786
  * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
2787
2787
  */
2788
2788
  stringify: function(x) {
2789
- for (var b = x.words, E = x.sigBytes, _ = [], A = 0; A < E; A++) {
2790
- var y = b[A >>> 2] >>> 24 - A % 4 * 8 & 255;
2791
- _.push((y >>> 4).toString(16)), _.push((y & 15).toString(16));
2789
+ for (var b = x.words, E = x.sigBytes, y = [], A = 0; A < E; A++) {
2790
+ var _ = b[A >>> 2] >>> 24 - A % 4 * 8 & 255;
2791
+ y.push((_ >>> 4).toString(16)), y.push((_ & 15).toString(16));
2792
2792
  }
2793
- return _.join("");
2793
+ return y.join("");
2794
2794
  },
2795
2795
  /**
2796
2796
  * Converts a hex string to a word array.
@@ -2806,8 +2806,8 @@ function ne() {
2806
2806
  * var wordArray = CryptoJS.enc.Hex.parse(hexString);
2807
2807
  */
2808
2808
  parse: function(x) {
2809
- for (var b = x.length, E = [], _ = 0; _ < b; _ += 2)
2810
- E[_ >>> 3] |= parseInt(x.substr(_, 2), 16) << 24 - _ % 8 * 4;
2809
+ for (var b = x.length, E = [], y = 0; y < b; y += 2)
2810
+ E[y >>> 3] |= parseInt(x.substr(y, 2), 16) << 24 - y % 8 * 4;
2811
2811
  return new g.init(E, b / 2);
2812
2812
  }
2813
2813
  }, m = d.Latin1 = {
@@ -2825,11 +2825,11 @@ function ne() {
2825
2825
  * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
2826
2826
  */
2827
2827
  stringify: function(x) {
2828
- for (var b = x.words, E = x.sigBytes, _ = [], A = 0; A < E; A++) {
2829
- var y = b[A >>> 2] >>> 24 - A % 4 * 8 & 255;
2830
- _.push(String.fromCharCode(y));
2828
+ for (var b = x.words, E = x.sigBytes, y = [], A = 0; A < E; A++) {
2829
+ var _ = b[A >>> 2] >>> 24 - A % 4 * 8 & 255;
2830
+ y.push(String.fromCharCode(_));
2831
2831
  }
2832
- return _.join("");
2832
+ return y.join("");
2833
2833
  },
2834
2834
  /**
2835
2835
  * Converts a Latin1 string to a word array.
@@ -2845,8 +2845,8 @@ function ne() {
2845
2845
  * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
2846
2846
  */
2847
2847
  parse: function(x) {
2848
- for (var b = x.length, E = [], _ = 0; _ < b; _++)
2849
- E[_ >>> 2] |= (x.charCodeAt(_) & 255) << 24 - _ % 4 * 8;
2848
+ for (var b = x.length, E = [], y = 0; y < b; y++)
2849
+ E[y >>> 2] |= (x.charCodeAt(y) & 255) << 24 - y % 4 * 8;
2850
2850
  return new g.init(E, b);
2851
2851
  }
2852
2852
  }, l = d.Utf8 = {
@@ -2925,13 +2925,13 @@ function ne() {
2925
2925
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
2926
2926
  */
2927
2927
  _process: function(x) {
2928
- var b, E = this._data, _ = E.words, A = E.sigBytes, y = this.blockSize, R = y * 4, M = A / R;
2928
+ var b, E = this._data, y = E.words, A = E.sigBytes, _ = this.blockSize, R = _ * 4, M = A / R;
2929
2929
  x ? M = t.ceil(M) : M = t.max((M | 0) - this._minBufferSize, 0);
2930
- var C = M * y, I = t.min(C * 4, A);
2930
+ var C = M * _, I = t.min(C * 4, A);
2931
2931
  if (C) {
2932
- for (var P = 0; P < C; P += y)
2933
- this._doProcessBlock(_, P);
2934
- b = _.splice(0, C), E.sigBytes -= I;
2932
+ for (var P = 0; P < C; P += _)
2933
+ this._doProcessBlock(y, P);
2934
+ b = y.splice(0, C), E.sigBytes -= I;
2935
2935
  }
2936
2936
  return new g.init(b, I);
2937
2937
  },
@@ -3585,39 +3585,39 @@ function jt() {
3585
3585
  var x = S + v, b = l[x];
3586
3586
  l[x] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
3587
3587
  }
3588
- var E = this._hash.words, _ = l[S + 0], A = l[S + 1], y = l[S + 2], R = l[S + 3], M = l[S + 4], C = l[S + 5], I = l[S + 6], P = l[S + 7], B = l[S + 8], $ = l[S + 9], q = l[S + 10], Y = l[S + 11], ae = l[S + 12], Q = l[S + 13], te = l[S + 14], ee = l[S + 15], k = E[0], L = E[1], F = E[2], N = E[3];
3589
- k = g(k, L, F, N, _, 7, u[0]), N = g(N, k, L, F, A, 12, u[1]), F = g(F, N, k, L, y, 17, u[2]), L = g(L, F, N, k, R, 22, u[3]), k = g(k, L, F, N, M, 7, u[4]), N = g(N, k, L, F, C, 12, u[5]), F = g(F, N, k, L, I, 17, u[6]), L = g(L, F, N, k, P, 22, u[7]), k = g(k, L, F, N, B, 7, u[8]), N = g(N, k, L, F, $, 12, u[9]), F = g(F, N, k, L, q, 17, u[10]), L = g(L, F, N, k, Y, 22, u[11]), k = g(k, L, F, N, ae, 7, u[12]), N = g(N, k, L, F, Q, 12, u[13]), F = g(F, N, k, L, te, 17, u[14]), L = g(L, F, N, k, ee, 22, u[15]), k = d(k, L, F, N, A, 5, u[16]), N = d(N, k, L, F, I, 9, u[17]), F = d(F, N, k, L, Y, 14, u[18]), L = d(L, F, N, k, _, 20, u[19]), k = d(k, L, F, N, C, 5, u[20]), N = d(N, k, L, F, q, 9, u[21]), F = d(F, N, k, L, ee, 14, u[22]), L = d(L, F, N, k, M, 20, u[23]), k = d(k, L, F, N, $, 5, u[24]), N = d(N, k, L, F, te, 9, u[25]), F = d(F, N, k, L, R, 14, u[26]), L = d(L, F, N, k, B, 20, u[27]), k = d(k, L, F, N, Q, 5, u[28]), N = d(N, k, L, F, y, 9, u[29]), F = d(F, N, k, L, P, 14, u[30]), L = d(L, F, N, k, ae, 20, u[31]), k = f(k, L, F, N, C, 4, u[32]), N = f(N, k, L, F, B, 11, u[33]), F = f(F, N, k, L, Y, 16, u[34]), L = f(L, F, N, k, te, 23, u[35]), k = f(k, L, F, N, A, 4, u[36]), N = f(N, k, L, F, M, 11, u[37]), F = f(F, N, k, L, P, 16, u[38]), L = f(L, F, N, k, q, 23, u[39]), k = f(k, L, F, N, Q, 4, u[40]), N = f(N, k, L, F, _, 11, u[41]), F = f(F, N, k, L, R, 16, u[42]), L = f(L, F, N, k, I, 23, u[43]), k = f(k, L, F, N, $, 4, u[44]), N = f(N, k, L, F, ae, 11, u[45]), F = f(F, N, k, L, ee, 16, u[46]), L = f(L, F, N, k, y, 23, u[47]), k = m(k, L, F, N, _, 6, u[48]), N = m(N, k, L, F, P, 10, u[49]), F = m(F, N, k, L, te, 15, u[50]), L = m(L, F, N, k, C, 21, u[51]), k = m(k, L, F, N, ae, 6, u[52]), N = m(N, k, L, F, R, 10, u[53]), F = m(F, N, k, L, q, 15, u[54]), L = m(L, F, N, k, A, 21, u[55]), k = m(k, L, F, N, B, 6, u[56]), N = m(N, k, L, F, ee, 10, u[57]), F = m(F, N, k, L, I, 15, u[58]), L = m(L, F, N, k, Q, 21, u[59]), k = m(k, L, F, N, M, 6, u[60]), N = m(N, k, L, F, Y, 10, u[61]), F = m(F, N, k, L, y, 15, u[62]), L = m(L, F, N, k, $, 21, u[63]), E[0] = E[0] + k | 0, E[1] = E[1] + L | 0, E[2] = E[2] + F | 0, E[3] = E[3] + N | 0;
3588
+ var E = this._hash.words, y = l[S + 0], A = l[S + 1], _ = l[S + 2], R = l[S + 3], M = l[S + 4], C = l[S + 5], I = l[S + 6], P = l[S + 7], B = l[S + 8], $ = l[S + 9], q = l[S + 10], Y = l[S + 11], ae = l[S + 12], Q = l[S + 13], te = l[S + 14], ee = l[S + 15], k = E[0], L = E[1], F = E[2], N = E[3];
3589
+ k = g(k, L, F, N, y, 7, u[0]), N = g(N, k, L, F, A, 12, u[1]), F = g(F, N, k, L, _, 17, u[2]), L = g(L, F, N, k, R, 22, u[3]), k = g(k, L, F, N, M, 7, u[4]), N = g(N, k, L, F, C, 12, u[5]), F = g(F, N, k, L, I, 17, u[6]), L = g(L, F, N, k, P, 22, u[7]), k = g(k, L, F, N, B, 7, u[8]), N = g(N, k, L, F, $, 12, u[9]), F = g(F, N, k, L, q, 17, u[10]), L = g(L, F, N, k, Y, 22, u[11]), k = g(k, L, F, N, ae, 7, u[12]), N = g(N, k, L, F, Q, 12, u[13]), F = g(F, N, k, L, te, 17, u[14]), L = g(L, F, N, k, ee, 22, u[15]), k = d(k, L, F, N, A, 5, u[16]), N = d(N, k, L, F, I, 9, u[17]), F = d(F, N, k, L, Y, 14, u[18]), L = d(L, F, N, k, y, 20, u[19]), k = d(k, L, F, N, C, 5, u[20]), N = d(N, k, L, F, q, 9, u[21]), F = d(F, N, k, L, ee, 14, u[22]), L = d(L, F, N, k, M, 20, u[23]), k = d(k, L, F, N, $, 5, u[24]), N = d(N, k, L, F, te, 9, u[25]), F = d(F, N, k, L, R, 14, u[26]), L = d(L, F, N, k, B, 20, u[27]), k = d(k, L, F, N, Q, 5, u[28]), N = d(N, k, L, F, _, 9, u[29]), F = d(F, N, k, L, P, 14, u[30]), L = d(L, F, N, k, ae, 20, u[31]), k = f(k, L, F, N, C, 4, u[32]), N = f(N, k, L, F, B, 11, u[33]), F = f(F, N, k, L, Y, 16, u[34]), L = f(L, F, N, k, te, 23, u[35]), k = f(k, L, F, N, A, 4, u[36]), N = f(N, k, L, F, M, 11, u[37]), F = f(F, N, k, L, P, 16, u[38]), L = f(L, F, N, k, q, 23, u[39]), k = f(k, L, F, N, Q, 4, u[40]), N = f(N, k, L, F, y, 11, u[41]), F = f(F, N, k, L, R, 16, u[42]), L = f(L, F, N, k, I, 23, u[43]), k = f(k, L, F, N, $, 4, u[44]), N = f(N, k, L, F, ae, 11, u[45]), F = f(F, N, k, L, ee, 16, u[46]), L = f(L, F, N, k, _, 23, u[47]), k = m(k, L, F, N, y, 6, u[48]), N = m(N, k, L, F, P, 10, u[49]), F = m(F, N, k, L, te, 15, u[50]), L = m(L, F, N, k, C, 21, u[51]), k = m(k, L, F, N, ae, 6, u[52]), N = m(N, k, L, F, R, 10, u[53]), F = m(F, N, k, L, q, 15, u[54]), L = m(L, F, N, k, A, 21, u[55]), k = m(k, L, F, N, B, 6, u[56]), N = m(N, k, L, F, ee, 10, u[57]), F = m(F, N, k, L, I, 15, u[58]), L = m(L, F, N, k, Q, 21, u[59]), k = m(k, L, F, N, M, 6, u[60]), N = m(N, k, L, F, Y, 10, u[61]), F = m(F, N, k, L, _, 15, u[62]), L = m(L, F, N, k, $, 21, u[63]), E[0] = E[0] + k | 0, E[1] = E[1] + L | 0, E[2] = E[2] + F | 0, E[3] = E[3] + N | 0;
3590
3590
  },
3591
3591
  _doFinalize: function() {
3592
3592
  var l = this._data, S = l.words, v = this._nDataBytes * 8, x = l.sigBytes * 8;
3593
3593
  S[x >>> 5] |= 128 << 24 - x % 32;
3594
3594
  var b = t.floor(v / 4294967296), E = v;
3595
3595
  S[(x + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, S[(x + 64 >>> 9 << 4) + 14] = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360, l.sigBytes = (S.length + 1) * 4, this._process();
3596
- for (var _ = this._hash, A = _.words, y = 0; y < 4; y++) {
3597
- var R = A[y];
3598
- A[y] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
3596
+ for (var y = this._hash, A = y.words, _ = 0; _ < 4; _++) {
3597
+ var R = A[_];
3598
+ A[_] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
3599
3599
  }
3600
- return _;
3600
+ return y;
3601
3601
  },
3602
3602
  clone: function() {
3603
3603
  var l = c.clone.call(this);
3604
3604
  return l._hash = this._hash.clone(), l;
3605
3605
  }
3606
3606
  });
3607
- function g(l, S, v, x, b, E, _) {
3608
- var A = l + (S & v | ~S & x) + b + _;
3607
+ function g(l, S, v, x, b, E, y) {
3608
+ var A = l + (S & v | ~S & x) + b + y;
3609
3609
  return (A << E | A >>> 32 - E) + S;
3610
3610
  }
3611
- function d(l, S, v, x, b, E, _) {
3612
- var A = l + (S & x | v & ~x) + b + _;
3611
+ function d(l, S, v, x, b, E, y) {
3612
+ var A = l + (S & x | v & ~x) + b + y;
3613
3613
  return (A << E | A >>> 32 - E) + S;
3614
3614
  }
3615
- function f(l, S, v, x, b, E, _) {
3616
- var A = l + (S ^ v ^ x) + b + _;
3615
+ function f(l, S, v, x, b, E, y) {
3616
+ var A = l + (S ^ v ^ x) + b + y;
3617
3617
  return (A << E | A >>> 32 - E) + S;
3618
3618
  }
3619
- function m(l, S, v, x, b, E, _) {
3620
- var A = l + (v ^ (S | ~x)) + b + _;
3619
+ function m(l, S, v, x, b, E, y) {
3620
+ var A = l + (v ^ (S | ~x)) + b + y;
3621
3621
  return (A << E | A >>> 32 - E) + S;
3622
3622
  }
3623
3623
  i.MD5 = c._createHelper(h), i.HmacMD5 = c._createHmacHelper(h);
@@ -3695,17 +3695,17 @@ function Yr() {
3695
3695
  this._hash = new a.init(u.slice(0));
3696
3696
  },
3697
3697
  _doProcessBlock: function(f, m) {
3698
- for (var l = this._hash.words, S = l[0], v = l[1], x = l[2], b = l[3], E = l[4], _ = l[5], A = l[6], y = l[7], R = 0; R < 64; R++) {
3698
+ for (var l = this._hash.words, S = l[0], v = l[1], x = l[2], b = l[3], E = l[4], y = l[5], A = l[6], _ = l[7], R = 0; R < 64; R++) {
3699
3699
  if (R < 16)
3700
3700
  g[R] = f[m + R] | 0;
3701
3701
  else {
3702
3702
  var M = g[R - 15], C = (M << 25 | M >>> 7) ^ (M << 14 | M >>> 18) ^ M >>> 3, I = g[R - 2], P = (I << 15 | I >>> 17) ^ (I << 13 | I >>> 19) ^ I >>> 10;
3703
3703
  g[R] = C + g[R - 7] + P + g[R - 16];
3704
3704
  }
3705
- var B = E & _ ^ ~E & A, $ = S & v ^ S & x ^ v & x, q = (S << 30 | S >>> 2) ^ (S << 19 | S >>> 13) ^ (S << 10 | S >>> 22), Y = (E << 26 | E >>> 6) ^ (E << 21 | E >>> 11) ^ (E << 7 | E >>> 25), ae = y + Y + B + h[R] + g[R], Q = q + $;
3706
- y = A, A = _, _ = E, E = b + ae | 0, b = x, x = v, v = S, S = ae + Q | 0;
3705
+ var B = E & y ^ ~E & A, $ = S & v ^ S & x ^ v & x, q = (S << 30 | S >>> 2) ^ (S << 19 | S >>> 13) ^ (S << 10 | S >>> 22), Y = (E << 26 | E >>> 6) ^ (E << 21 | E >>> 11) ^ (E << 7 | E >>> 25), ae = _ + Y + B + h[R] + g[R], Q = q + $;
3706
+ _ = A, A = y, y = E, E = b + ae | 0, b = x, x = v, v = S, S = ae + Q | 0;
3707
3707
  }
3708
- l[0] = l[0] + S | 0, l[1] = l[1] + v | 0, l[2] = l[2] + x | 0, l[3] = l[3] + b | 0, l[4] = l[4] + E | 0, l[5] = l[5] + _ | 0, l[6] = l[6] + A | 0, l[7] = l[7] + y | 0;
3708
+ l[0] = l[0] + S | 0, l[1] = l[1] + v | 0, l[2] = l[2] + x | 0, l[3] = l[3] + b | 0, l[4] = l[4] + E | 0, l[5] = l[5] + y | 0, l[6] = l[6] + A | 0, l[7] = l[7] + _ | 0;
3709
3709
  },
3710
3710
  _doFinalize: function() {
3711
3711
  var f = this._data, m = f.words, l = this._nDataBytes * 8, S = f.sigBytes * 8;
@@ -3862,7 +3862,7 @@ function gn() {
3862
3862
  ]);
3863
3863
  },
3864
3864
  _doProcessBlock: function(m, l) {
3865
- for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], E = S[3], _ = S[4], A = S[5], y = S[6], R = S[7], M = v.high, C = v.low, I = x.high, P = x.low, B = b.high, $ = b.low, q = E.high, Y = E.low, ae = _.high, Q = _.low, te = A.high, ee = A.low, k = y.high, L = y.low, F = R.high, N = R.low, G = M, j = C, ce = I, Z = P, Ve = B, ze = $, et = q, tt = Y, xe = ae, ke = Q, ot = te, Rt = ee, zt = k, It = L, Zt = F, wt = N, Be = 0; Be < 80; Be++) {
3865
+ for (var S = this._hash.words, v = S[0], x = S[1], b = S[2], E = S[3], y = S[4], A = S[5], _ = S[6], R = S[7], M = v.high, C = v.low, I = x.high, P = x.low, B = b.high, $ = b.low, q = E.high, Y = E.low, ae = y.high, Q = y.low, te = A.high, ee = A.low, k = _.high, L = _.low, F = R.high, N = R.low, G = M, j = C, ce = I, Z = P, Ve = B, ze = $, et = q, tt = Y, xe = ae, ke = Q, ot = te, Rt = ee, zt = k, It = L, Zt = F, wt = N, Be = 0; Be < 80; Be++) {
3866
3866
  var Ie, it, Dt = d[Be];
3867
3867
  if (Be < 16)
3868
3868
  it = Dt.high = m[l + Be * 2] | 0, Ie = Dt.low = m[l + Be * 2 + 1] | 0;
@@ -3873,7 +3873,7 @@ function gn() {
3873
3873
  var Hn = xe & ot ^ ~xe & zt, gs = ke & Rt ^ ~ke & It, jn = G & ce ^ G & Ve ^ ce & Ve, zn = j & Z ^ j & ze ^ Z & ze, Wn = (G >>> 28 | j << 4) ^ (G << 30 | j >>> 2) ^ (G << 25 | j >>> 7), ms = (j >>> 28 | G << 4) ^ (j << 30 | G >>> 2) ^ (j << 25 | G >>> 7), $n = (xe >>> 14 | ke << 18) ^ (xe >>> 18 | ke << 14) ^ (xe << 23 | ke >>> 9), Kn = (ke >>> 14 | xe << 18) ^ (ke >>> 18 | xe << 14) ^ (ke << 23 | xe >>> 9), Ss = g[Be], qn = Ss.high, xs = Ss.low, $e = wt + Kn, St = Zt + $n + ($e >>> 0 < wt >>> 0 ? 1 : 0), $e = $e + gs, St = St + Hn + ($e >>> 0 < gs >>> 0 ? 1 : 0), $e = $e + xs, St = St + qn + ($e >>> 0 < xs >>> 0 ? 1 : 0), $e = $e + Ie, St = St + it + ($e >>> 0 < Ie >>> 0 ? 1 : 0), vs = ms + zn, Jn = Wn + jn + (vs >>> 0 < ms >>> 0 ? 1 : 0);
3874
3874
  Zt = zt, wt = It, zt = ot, It = Rt, ot = xe, Rt = ke, ke = tt + $e | 0, xe = et + St + (ke >>> 0 < tt >>> 0 ? 1 : 0) | 0, et = Ve, tt = ze, Ve = ce, ze = Z, ce = G, Z = j, j = $e + vs | 0, G = St + Jn + (j >>> 0 < $e >>> 0 ? 1 : 0) | 0;
3875
3875
  }
3876
- C = v.low = C + j, v.high = M + G + (C >>> 0 < j >>> 0 ? 1 : 0), P = x.low = P + Z, x.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Ve + ($ >>> 0 < ze >>> 0 ? 1 : 0), Y = E.low = Y + tt, E.high = q + et + (Y >>> 0 < tt >>> 0 ? 1 : 0), Q = _.low = Q + ke, _.high = ae + xe + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = A.low = ee + Rt, A.high = te + ot + (ee >>> 0 < Rt >>> 0 ? 1 : 0), L = y.low = L + It, y.high = k + zt + (L >>> 0 < It >>> 0 ? 1 : 0), N = R.low = N + wt, R.high = F + Zt + (N >>> 0 < wt >>> 0 ? 1 : 0);
3876
+ C = v.low = C + j, v.high = M + G + (C >>> 0 < j >>> 0 ? 1 : 0), P = x.low = P + Z, x.high = I + ce + (P >>> 0 < Z >>> 0 ? 1 : 0), $ = b.low = $ + ze, b.high = B + Ve + ($ >>> 0 < ze >>> 0 ? 1 : 0), Y = E.low = Y + tt, E.high = q + et + (Y >>> 0 < tt >>> 0 ? 1 : 0), Q = y.low = Q + ke, y.high = ae + xe + (Q >>> 0 < ke >>> 0 ? 1 : 0), ee = A.low = ee + Rt, A.high = te + ot + (ee >>> 0 < Rt >>> 0 ? 1 : 0), L = _.low = L + It, _.high = k + zt + (L >>> 0 < It >>> 0 ? 1 : 0), N = R.low = N + wt, R.high = F + Zt + (N >>> 0 < wt >>> 0 ? 1 : 0);
3877
3877
  },
3878
3878
  _doFinalize: function() {
3879
3879
  var m = this._data, l = m.words, S = this._nDataBytes * 8, v = m.sigBytes * 8;
@@ -3939,15 +3939,15 @@ function Jo() {
3939
3939
  for (var S = 0; S < 5; S++)
3940
3940
  for (var v = 0; v < 5; v++)
3941
3941
  d[S + 5 * v] = v + (2 * S + 3 * v) % 5 * 5;
3942
- for (var _ = 1, A = 0; A < 24; A++) {
3943
- for (var y = 0, R = 0, M = 0; M < 7; M++) {
3944
- if (_ & 1) {
3942
+ for (var y = 1, A = 0; A < 24; A++) {
3943
+ for (var _ = 0, R = 0, M = 0; M < 7; M++) {
3944
+ if (y & 1) {
3945
3945
  var C = (1 << M) - 1;
3946
- C < 32 ? R ^= 1 << C : y ^= 1 << C - 32;
3946
+ C < 32 ? R ^= 1 << C : _ ^= 1 << C - 32;
3947
3947
  }
3948
- _ & 128 ? _ = _ << 1 ^ 113 : _ <<= 1;
3948
+ y & 128 ? y = y << 1 ^ 113 : y <<= 1;
3949
3949
  }
3950
- f[A] = u.create(y, R);
3950
+ f[A] = u.create(_, R);
3951
3951
  }
3952
3952
  })();
3953
3953
  var m = [];
@@ -3974,27 +3974,27 @@ function Jo() {
3974
3974
  },
3975
3975
  _doProcessBlock: function(S, v) {
3976
3976
  for (var x = this._state, b = this.blockSize / 2, E = 0; E < b; E++) {
3977
- var _ = S[v + 2 * E], A = S[v + 2 * E + 1];
3978
- _ = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
3979
- var y = x[E];
3980
- y.high ^= A, y.low ^= _;
3977
+ var y = S[v + 2 * E], A = S[v + 2 * E + 1];
3978
+ y = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
3979
+ var _ = x[E];
3980
+ _.high ^= A, _.low ^= y;
3981
3981
  }
3982
3982
  for (var R = 0; R < 24; R++) {
3983
3983
  for (var M = 0; M < 5; M++) {
3984
3984
  for (var C = 0, I = 0, P = 0; P < 5; P++) {
3985
- var y = x[M + 5 * P];
3986
- C ^= y.high, I ^= y.low;
3985
+ var _ = x[M + 5 * P];
3986
+ C ^= _.high, I ^= _.low;
3987
3987
  }
3988
3988
  var B = m[M];
3989
3989
  B.high = C, B.low = I;
3990
3990
  }
3991
3991
  for (var M = 0; M < 5; M++)
3992
3992
  for (var $ = m[(M + 4) % 5], q = m[(M + 1) % 5], Y = q.high, ae = q.low, C = $.high ^ (Y << 1 | ae >>> 31), I = $.low ^ (ae << 1 | Y >>> 31), P = 0; P < 5; P++) {
3993
- var y = x[M + 5 * P];
3994
- y.high ^= C, y.low ^= I;
3993
+ var _ = x[M + 5 * P];
3994
+ _.high ^= C, _.low ^= I;
3995
3995
  }
3996
3996
  for (var Q = 1; Q < 25; Q++) {
3997
- var C, I, y = x[Q], te = y.high, ee = y.low, k = g[Q];
3997
+ var C, I, _ = x[Q], te = _.high, ee = _.low, k = g[Q];
3998
3998
  k < 32 ? (C = te << k | ee >>> 32 - k, I = ee << k | te >>> 32 - k) : (C = ee << k - 32 | te >>> 64 - k, I = te << k - 32 | ee >>> 64 - k);
3999
3999
  var L = m[d[Q]];
4000
4000
  L.high = C, L.low = I;
@@ -4003,11 +4003,11 @@ function Jo() {
4003
4003
  F.high = N.high, F.low = N.low;
4004
4004
  for (var M = 0; M < 5; M++)
4005
4005
  for (var P = 0; P < 5; P++) {
4006
- var Q = M + 5 * P, y = x[Q], G = m[Q], j = m[(M + 1) % 5 + 5 * P], ce = m[(M + 2) % 5 + 5 * P];
4007
- y.high = G.high ^ ~j.high & ce.high, y.low = G.low ^ ~j.low & ce.low;
4006
+ var Q = M + 5 * P, _ = x[Q], G = m[Q], j = m[(M + 1) % 5 + 5 * P], ce = m[(M + 2) % 5 + 5 * P];
4007
+ _.high = G.high ^ ~j.high & ce.high, _.low = G.low ^ ~j.low & ce.low;
4008
4008
  }
4009
- var y = x[0], Z = f[R];
4010
- y.high ^= Z.high, y.low ^= Z.low;
4009
+ var _ = x[0], Z = f[R];
4010
+ _.high ^= Z.high, _.low ^= Z.low;
4011
4011
  }
4012
4012
  },
4013
4013
  _doFinalize: function() {
@@ -4015,11 +4015,11 @@ function Jo() {
4015
4015
  this._nDataBytes * 8;
4016
4016
  var x = S.sigBytes * 8, b = this.blockSize * 32;
4017
4017
  v[x >>> 5] |= 1 << 24 - x % 32, v[(t.ceil((x + 1) / b) * b >>> 5) - 1] |= 128, S.sigBytes = v.length * 4, this._process();
4018
- for (var E = this._state, _ = this.cfg.outputLength / 8, A = _ / 8, y = [], R = 0; R < A; R++) {
4018
+ for (var E = this._state, y = this.cfg.outputLength / 8, A = y / 8, _ = [], R = 0; R < A; R++) {
4019
4019
  var M = E[R], C = M.high, I = M.low;
4020
- C = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360, y.push(I), y.push(C);
4020
+ C = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360, I = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360, _.push(I), _.push(C);
4021
4021
  }
4022
- return new a.init(y, _);
4022
+ return new a.init(_, y);
4023
4023
  },
4024
4024
  clone: function() {
4025
4025
  for (var S = c.clone.call(this), v = S._state = this._state.slice(0), x = 0; x < 25; x++)
@@ -4377,20 +4377,20 @@ function Go() {
4377
4377
  _doReset: function() {
4378
4378
  this._hash = a.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
4379
4379
  },
4380
- _doProcessBlock: function(A, y) {
4380
+ _doProcessBlock: function(A, _) {
4381
4381
  for (var R = 0; R < 16; R++) {
4382
- var M = y + R, C = A[M];
4382
+ var M = _ + R, C = A[M];
4383
4383
  A[M] = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360;
4384
4384
  }
4385
4385
  var I = this._hash.words, P = f.words, B = m.words, $ = u.words, q = h.words, Y = g.words, ae = d.words, Q, te, ee, k, L, F, N, G, j, ce;
4386
4386
  F = Q = I[0], N = te = I[1], G = ee = I[2], j = k = I[3], ce = L = I[4];
4387
4387
  for (var Z, R = 0; R < 80; R += 1)
4388
- Z = Q + A[y + $[R]] | 0, R < 16 ? Z += S(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += x(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = _(Z, Y[R]), Z = Z + L | 0, Q = L, L = k, k = _(ee, 10), ee = te, te = Z, Z = F + A[y + q[R]] | 0, R < 16 ? Z += E(N, G, j) + B[0] : R < 32 ? Z += b(N, G, j) + B[1] : R < 48 ? Z += x(N, G, j) + B[2] : R < 64 ? Z += v(N, G, j) + B[3] : Z += S(N, G, j) + B[4], Z = Z | 0, Z = _(Z, ae[R]), Z = Z + ce | 0, F = ce, ce = j, j = _(G, 10), G = N, N = Z;
4388
+ Z = Q + A[_ + $[R]] | 0, R < 16 ? Z += S(te, ee, k) + P[0] : R < 32 ? Z += v(te, ee, k) + P[1] : R < 48 ? Z += x(te, ee, k) + P[2] : R < 64 ? Z += b(te, ee, k) + P[3] : Z += E(te, ee, k) + P[4], Z = Z | 0, Z = y(Z, Y[R]), Z = Z + L | 0, Q = L, L = k, k = y(ee, 10), ee = te, te = Z, Z = F + A[_ + q[R]] | 0, R < 16 ? Z += E(N, G, j) + B[0] : R < 32 ? Z += b(N, G, j) + B[1] : R < 48 ? Z += x(N, G, j) + B[2] : R < 64 ? Z += v(N, G, j) + B[3] : Z += S(N, G, j) + B[4], Z = Z | 0, Z = y(Z, ae[R]), Z = Z + ce | 0, F = ce, ce = j, j = y(G, 10), G = N, N = Z;
4389
4389
  Z = I[1] + ee + j | 0, I[1] = I[2] + k + ce | 0, I[2] = I[3] + L + F | 0, I[3] = I[4] + Q + N | 0, I[4] = I[0] + te + G | 0, I[0] = Z;
4390
4390
  },
4391
4391
  _doFinalize: function() {
4392
- var A = this._data, y = A.words, R = this._nDataBytes * 8, M = A.sigBytes * 8;
4393
- y[M >>> 5] |= 128 << 24 - M % 32, y[(M + 64 >>> 9 << 4) + 14] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, A.sigBytes = (y.length + 1) * 4, this._process();
4392
+ var A = this._data, _ = A.words, R = this._nDataBytes * 8, M = A.sigBytes * 8;
4393
+ _[M >>> 5] |= 128 << 24 - M % 32, _[(M + 64 >>> 9 << 4) + 14] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360, A.sigBytes = (_.length + 1) * 4, this._process();
4394
4394
  for (var C = this._hash, I = C.words, P = 0; P < 5; P++) {
4395
4395
  var B = I[P];
4396
4396
  I[P] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
@@ -4402,23 +4402,23 @@ function Go() {
4402
4402
  return A._hash = this._hash.clone(), A;
4403
4403
  }
4404
4404
  });
4405
- function S(A, y, R) {
4406
- return A ^ y ^ R;
4405
+ function S(A, _, R) {
4406
+ return A ^ _ ^ R;
4407
4407
  }
4408
- function v(A, y, R) {
4409
- return A & y | ~A & R;
4408
+ function v(A, _, R) {
4409
+ return A & _ | ~A & R;
4410
4410
  }
4411
- function x(A, y, R) {
4412
- return (A | ~y) ^ R;
4411
+ function x(A, _, R) {
4412
+ return (A | ~_) ^ R;
4413
4413
  }
4414
- function b(A, y, R) {
4415
- return A & R | y & ~R;
4414
+ function b(A, _, R) {
4415
+ return A & R | _ & ~R;
4416
4416
  }
4417
- function E(A, y, R) {
4418
- return A ^ (y | ~R);
4417
+ function E(A, _, R) {
4418
+ return A ^ (_ | ~R);
4419
4419
  }
4420
- function _(A, y) {
4421
- return A << y | A >>> 32 - y;
4420
+ function y(A, _) {
4421
+ return A << _ | A >>> 32 - _;
4422
4422
  }
4423
4423
  i.RIPEMD160 = c._createHelper(l), i.HmacRIPEMD160 = c._createHmacHelper(l);
4424
4424
  }(), e.RIPEMD160;
@@ -4551,14 +4551,14 @@ function Xo() {
4551
4551
  */
4552
4552
  compute: function(g, d) {
4553
4553
  for (var f = this.cfg, m = u.create(f.hasher, g), l = a.create(), S = a.create([1]), v = l.words, x = S.words, b = f.keySize, E = f.iterations; v.length < b; ) {
4554
- var _ = m.update(d).finalize(S);
4554
+ var y = m.update(d).finalize(S);
4555
4555
  m.reset();
4556
- for (var A = _.words, y = A.length, R = _, M = 1; M < E; M++) {
4556
+ for (var A = y.words, _ = A.length, R = y, M = 1; M < E; M++) {
4557
4557
  R = m.finalize(R), m.reset();
4558
- for (var C = R.words, I = 0; I < y; I++)
4558
+ for (var C = R.words, I = 0; I < _; I++)
4559
4559
  A[I] ^= C[I];
4560
4560
  }
4561
- l.concat(_), x[0]++;
4561
+ l.concat(y), x[0]++;
4562
4562
  }
4563
4563
  return l.sigBytes = b * 4, l;
4564
4564
  }
@@ -4967,7 +4967,7 @@ function Ce() {
4967
4967
  toString: function(C) {
4968
4968
  return (C || this.formatter).stringify(this);
4969
4969
  }
4970
- }), E = i.format = {}, _ = E.OpenSSL = {
4970
+ }), E = i.format = {}, y = E.OpenSSL = {
4971
4971
  /**
4972
4972
  * Converts a cipher params object to an OpenSSL-compatible string.
4973
4973
  *
@@ -5009,7 +5009,7 @@ function Ce() {
5009
5009
  * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
5010
5010
  */
5011
5011
  cfg: a.extend({
5012
- format: _
5012
+ format: y
5013
5013
  }),
5014
5014
  /**
5015
5015
  * Encrypts a message.
@@ -5083,7 +5083,7 @@ function Ce() {
5083
5083
  _parse: function(C, I) {
5084
5084
  return typeof C == "string" ? I.parse(C, this) : C;
5085
5085
  }
5086
- }), y = i.kdf = {}, R = y.OpenSSL = {
5086
+ }), _ = i.kdf = {}, R = _.OpenSSL = {
5087
5087
  /**
5088
5088
  * Derives a key and IV from a password.
5089
5089
  *
@@ -5223,9 +5223,9 @@ function Zo() {
5223
5223
  });
5224
5224
  }(Sr)), Sr.exports;
5225
5225
  }
5226
- var xr = { exports: {} }, _a;
5226
+ var xr = { exports: {} }, ya;
5227
5227
  function Qo() {
5228
- return _a || (_a = 1, function(r, n) {
5228
+ return ya || (ya = 1, function(r, n) {
5229
5229
  (function(e, t, i) {
5230
5230
  r.exports = t(ne(), Ce());
5231
5231
  })(ie, function(e) {
@@ -5262,9 +5262,9 @@ function Qo() {
5262
5262
  });
5263
5263
  }(xr)), xr.exports;
5264
5264
  }
5265
- var vr = { exports: {} }, ya;
5265
+ var vr = { exports: {} }, _a;
5266
5266
  function e0() {
5267
- return ya || (ya = 1, function(r, n) {
5267
+ return _a || (_a = 1, function(r, n) {
5268
5268
  (function(e, t, i) {
5269
5269
  r.exports = t(ne(), Ce());
5270
5270
  })(ie, function(e) {
@@ -5322,7 +5322,7 @@ function i0() {
5322
5322
  });
5323
5323
  }(Er)), Er.exports;
5324
5324
  }
5325
- var _r = { exports: {} }, Ra;
5325
+ var yr = { exports: {} }, Ra;
5326
5326
  function r0() {
5327
5327
  return Ra || (Ra = 1, function(r, n) {
5328
5328
  (function(e, t, i) {
@@ -5339,9 +5339,9 @@ function r0() {
5339
5339
  }
5340
5340
  }, e.pad.Iso10126;
5341
5341
  });
5342
- }(_r)), _r.exports;
5342
+ }(yr)), yr.exports;
5343
5343
  }
5344
- var yr = { exports: {} }, Ia;
5344
+ var _r = { exports: {} }, Ia;
5345
5345
  function s0() {
5346
5346
  return Ia || (Ia = 1, function(r, n) {
5347
5347
  (function(e, t, i) {
@@ -5356,7 +5356,7 @@ function s0() {
5356
5356
  }
5357
5357
  }, e.pad.Iso97971;
5358
5358
  });
5359
- }(yr)), yr.exports;
5359
+ }(_r)), _r.exports;
5360
5360
  }
5361
5361
  var Ar = { exports: {} }, wa;
5362
5362
  function a0() {
@@ -5453,21 +5453,21 @@ function c0() {
5453
5453
  (function() {
5454
5454
  for (var b = [], E = 0; E < 256; E++)
5455
5455
  E < 128 ? b[E] = E << 1 : b[E] = E << 1 ^ 283;
5456
- for (var _ = 0, A = 0, E = 0; E < 256; E++) {
5457
- var y = A ^ A << 1 ^ A << 2 ^ A << 3 ^ A << 4;
5458
- y = y >>> 8 ^ y & 255 ^ 99, c[_] = y, o[y] = _;
5459
- var R = b[_], M = b[R], C = b[M], I = b[y] * 257 ^ y * 16843008;
5460
- u[_] = I << 24 | I >>> 8, h[_] = I << 16 | I >>> 16, g[_] = I << 8 | I >>> 24, d[_] = I;
5461
- var I = C * 16843009 ^ M * 65537 ^ R * 257 ^ _ * 16843008;
5462
- f[y] = I << 24 | I >>> 8, m[y] = I << 16 | I >>> 16, l[y] = I << 8 | I >>> 24, S[y] = I, _ ? (_ = R ^ b[b[b[C ^ R]]], A ^= b[b[A]]) : _ = A = 1;
5456
+ for (var y = 0, A = 0, E = 0; E < 256; E++) {
5457
+ var _ = A ^ A << 1 ^ A << 2 ^ A << 3 ^ A << 4;
5458
+ _ = _ >>> 8 ^ _ & 255 ^ 99, c[y] = _, o[_] = y;
5459
+ var R = b[y], M = b[R], C = b[M], I = b[_] * 257 ^ _ * 16843008;
5460
+ u[y] = I << 24 | I >>> 8, h[y] = I << 16 | I >>> 16, g[y] = I << 8 | I >>> 24, d[y] = I;
5461
+ var I = C * 16843009 ^ M * 65537 ^ R * 257 ^ y * 16843008;
5462
+ f[_] = I << 24 | I >>> 8, m[_] = I << 16 | I >>> 16, l[_] = I << 8 | I >>> 24, S[_] = I, y ? (y = R ^ b[b[b[C ^ R]]], A ^= b[b[A]]) : y = A = 1;
5463
5463
  }
5464
5464
  })();
5465
5465
  var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], x = a.AES = s.extend({
5466
5466
  _doReset: function() {
5467
5467
  var b;
5468
5468
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
5469
- for (var E = this._keyPriorReset = this._key, _ = E.words, A = E.sigBytes / 4, y = this._nRounds = A + 6, R = (y + 1) * 4, M = this._keySchedule = [], C = 0; C < R; C++)
5470
- C < A ? M[C] = _[C] : (b = M[C - 1], C % A ? A > 6 && C % A == 4 && (b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255]) : (b = b << 8 | b >>> 24, b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255], b ^= v[C / A | 0] << 24), M[C] = M[C - A] ^ b);
5469
+ for (var E = this._keyPriorReset = this._key, y = E.words, A = E.sigBytes / 4, _ = this._nRounds = A + 6, R = (_ + 1) * 4, M = this._keySchedule = [], C = 0; C < R; C++)
5470
+ C < A ? M[C] = y[C] : (b = M[C - 1], C % A ? A > 6 && C % A == 4 && (b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255]) : (b = b << 8 | b >>> 24, b = c[b >>> 24] << 24 | c[b >>> 16 & 255] << 16 | c[b >>> 8 & 255] << 8 | c[b & 255], b ^= v[C / A | 0] << 24), M[C] = M[C - A] ^ b);
5471
5471
  for (var I = this._invKeySchedule = [], P = 0; P < R; P++) {
5472
5472
  var C = R - P;
5473
5473
  if (P % 4)
@@ -5482,17 +5482,17 @@ function c0() {
5482
5482
  this._doCryptBlock(b, E, this._keySchedule, u, h, g, d, c);
5483
5483
  },
5484
5484
  decryptBlock: function(b, E) {
5485
- var _ = b[E + 1];
5486
- b[E + 1] = b[E + 3], b[E + 3] = _, this._doCryptBlock(b, E, this._invKeySchedule, f, m, l, S, o);
5487
- var _ = b[E + 1];
5488
- b[E + 1] = b[E + 3], b[E + 3] = _;
5485
+ var y = b[E + 1];
5486
+ b[E + 1] = b[E + 3], b[E + 3] = y, this._doCryptBlock(b, E, this._invKeySchedule, f, m, l, S, o);
5487
+ var y = b[E + 1];
5488
+ b[E + 1] = b[E + 3], b[E + 3] = y;
5489
5489
  },
5490
- _doCryptBlock: function(b, E, _, A, y, R, M, C) {
5491
- for (var I = this._nRounds, P = b[E] ^ _[0], B = b[E + 1] ^ _[1], $ = b[E + 2] ^ _[2], q = b[E + 3] ^ _[3], Y = 4, ae = 1; ae < I; ae++) {
5492
- var Q = A[P >>> 24] ^ y[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^ M[q & 255] ^ _[Y++], te = A[B >>> 24] ^ y[$ >>> 16 & 255] ^ R[q >>> 8 & 255] ^ M[P & 255] ^ _[Y++], ee = A[$ >>> 24] ^ y[q >>> 16 & 255] ^ R[P >>> 8 & 255] ^ M[B & 255] ^ _[Y++], k = A[q >>> 24] ^ y[P >>> 16 & 255] ^ R[B >>> 8 & 255] ^ M[$ & 255] ^ _[Y++];
5490
+ _doCryptBlock: function(b, E, y, A, _, R, M, C) {
5491
+ for (var I = this._nRounds, P = b[E] ^ y[0], B = b[E + 1] ^ y[1], $ = b[E + 2] ^ y[2], q = b[E + 3] ^ y[3], Y = 4, ae = 1; ae < I; ae++) {
5492
+ var Q = A[P >>> 24] ^ _[B >>> 16 & 255] ^ R[$ >>> 8 & 255] ^ M[q & 255] ^ y[Y++], te = A[B >>> 24] ^ _[$ >>> 16 & 255] ^ R[q >>> 8 & 255] ^ M[P & 255] ^ y[Y++], ee = A[$ >>> 24] ^ _[q >>> 16 & 255] ^ R[P >>> 8 & 255] ^ M[B & 255] ^ y[Y++], k = A[q >>> 24] ^ _[P >>> 16 & 255] ^ R[B >>> 8 & 255] ^ M[$ & 255] ^ y[Y++];
5493
5493
  P = Q, B = te, $ = ee, q = k;
5494
5494
  }
5495
- var Q = (C[P >>> 24] << 24 | C[B >>> 16 & 255] << 16 | C[$ >>> 8 & 255] << 8 | C[q & 255]) ^ _[Y++], te = (C[B >>> 24] << 24 | C[$ >>> 16 & 255] << 16 | C[q >>> 8 & 255] << 8 | C[P & 255]) ^ _[Y++], ee = (C[$ >>> 24] << 24 | C[q >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[B & 255]) ^ _[Y++], k = (C[q >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[B >>> 8 & 255] << 8 | C[$ & 255]) ^ _[Y++];
5495
+ var Q = (C[P >>> 24] << 24 | C[B >>> 16 & 255] << 16 | C[$ >>> 8 & 255] << 8 | C[q & 255]) ^ y[Y++], te = (C[B >>> 24] << 24 | C[$ >>> 16 & 255] << 16 | C[q >>> 8 & 255] << 8 | C[P & 255]) ^ y[Y++], ee = (C[$ >>> 24] << 24 | C[q >>> 16 & 255] << 16 | C[P >>> 8 & 255] << 8 | C[B & 255]) ^ y[Y++], k = (C[q >>> 24] << 24 | C[P >>> 16 & 255] << 16 | C[B >>> 8 & 255] << 8 | C[$ & 255]) ^ y[Y++];
5496
5496
  b[E] = Q, b[E + 1] = te, b[E + 2] = ee, b[E + 3] = k;
5497
5497
  },
5498
5498
  keySize: 256 / 32
@@ -6156,11 +6156,11 @@ function u0() {
6156
6156
  ], f = c.DES = a.extend({
6157
6157
  _doReset: function() {
6158
6158
  for (var v = this._key, x = v.words, b = [], E = 0; E < 56; E++) {
6159
- var _ = o[E] - 1;
6160
- b[E] = x[_ >>> 5] >>> 31 - _ % 32 & 1;
6159
+ var y = o[E] - 1;
6160
+ b[E] = x[y >>> 5] >>> 31 - y % 32 & 1;
6161
6161
  }
6162
- for (var A = this._subKeys = [], y = 0; y < 16; y++) {
6163
- for (var R = A[y] = [], M = h[y], E = 0; E < 24; E++)
6162
+ for (var A = this._subKeys = [], _ = 0; _ < 16; _++) {
6163
+ for (var R = A[_] = [], M = h[_], E = 0; E < 24; E++)
6164
6164
  R[E / 6 | 0] |= b[(u[E] - 1 + M) % 28] << 31 - E % 6, R[4 + (E / 6 | 0)] |= b[28 + (u[E + 24] - 1 + M) % 28] << 31 - E % 6;
6165
6165
  R[0] = R[0] << 1 | R[0] >>> 31;
6166
6166
  for (var E = 1; E < 7; E++)
@@ -6179,9 +6179,9 @@ function u0() {
6179
6179
  _doCryptBlock: function(v, x, b) {
6180
6180
  this._lBlock = v[x], this._rBlock = v[x + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), m.call(this, 1, 1431655765);
6181
6181
  for (var E = 0; E < 16; E++) {
6182
- for (var _ = b[E], A = this._lBlock, y = this._rBlock, R = 0, M = 0; M < 8; M++)
6183
- R |= g[M][((y ^ _[M]) & d[M]) >>> 0];
6184
- this._lBlock = y, this._rBlock = A ^ R;
6182
+ for (var y = b[E], A = this._lBlock, _ = this._rBlock, R = 0, M = 0; M < 8; M++)
6183
+ R |= g[M][((_ ^ y[M]) & d[M]) >>> 0];
6184
+ this._lBlock = _, this._rBlock = A ^ R;
6185
6185
  }
6186
6186
  var C = this._lBlock;
6187
6187
  this._lBlock = this._rBlock, this._rBlock = C, m.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), m.call(this, 16, 65535), m.call(this, 4, 252645135), v[x] = this._lBlock, v[x + 1] = this._rBlock;
@@ -6204,8 +6204,8 @@ function u0() {
6204
6204
  var v = this._key, x = v.words;
6205
6205
  if (x.length !== 2 && x.length !== 4 && x.length < 6)
6206
6206
  throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
6207
- var b = x.slice(0, 2), E = x.length < 4 ? x.slice(0, 2) : x.slice(2, 4), _ = x.length < 6 ? x.slice(0, 2) : x.slice(4, 6);
6208
- this._des1 = f.createEncryptor(s.create(b)), this._des2 = f.createEncryptor(s.create(E)), this._des3 = f.createEncryptor(s.create(_));
6207
+ var b = x.slice(0, 2), E = x.length < 4 ? x.slice(0, 2) : x.slice(2, 4), y = x.length < 6 ? x.slice(0, 2) : x.slice(4, 6);
6208
+ this._des1 = f.createEncryptor(s.create(b)), this._des2 = f.createEncryptor(s.create(E)), this._des3 = f.createEncryptor(s.create(y));
6209
6209
  },
6210
6210
  encryptBlock: function(v, x) {
6211
6211
  this._des1.encryptBlock(v, x), this._des2.decryptBlock(v, x), this._des3.encryptBlock(v, x);
@@ -6312,8 +6312,8 @@ function d0() {
6312
6312
  for (var m = 0; m < 8; m++)
6313
6313
  S[m] ^= l[m + 4 & 7];
6314
6314
  if (f) {
6315
- var v = f.words, x = v[0], b = v[1], E = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, _ = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, A = E >>> 16 | _ & 4294901760, y = _ << 16 | E & 65535;
6316
- S[0] ^= E, S[1] ^= A, S[2] ^= _, S[3] ^= y, S[4] ^= E, S[5] ^= A, S[6] ^= _, S[7] ^= y;
6315
+ var v = f.words, x = v[0], b = v[1], E = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, y = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, A = E >>> 16 | y & 4294901760, _ = y << 16 | E & 65535;
6316
+ S[0] ^= E, S[1] ^= A, S[2] ^= y, S[3] ^= _, S[4] ^= E, S[5] ^= A, S[6] ^= y, S[7] ^= _;
6317
6317
  for (var m = 0; m < 4; m++)
6318
6318
  g.call(this);
6319
6319
  }
@@ -6376,8 +6376,8 @@ function l0() {
6376
6376
  for (var S = 0; S < 8; S++)
6377
6377
  l[S] ^= m[S + 4 & 7];
6378
6378
  if (f) {
6379
- var v = f.words, x = v[0], b = v[1], E = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, _ = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, A = E >>> 16 | _ & 4294901760, y = _ << 16 | E & 65535;
6380
- l[0] ^= E, l[1] ^= A, l[2] ^= _, l[3] ^= y, l[4] ^= E, l[5] ^= A, l[6] ^= _, l[7] ^= y;
6379
+ var v = f.words, x = v[0], b = v[1], E = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, y = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, A = E >>> 16 | y & 4294901760, _ = y << 16 | E & 65535;
6380
+ l[0] ^= E, l[1] ^= A, l[2] ^= y, l[3] ^= _, l[4] ^= E, l[5] ^= A, l[6] ^= y, l[7] ^= _;
6381
6381
  for (var S = 0; S < 4; S++)
6382
6382
  g.call(this);
6383
6383
  }
@@ -7472,36 +7472,36 @@ function f0() {
7472
7472
  sbox: []
7473
7473
  };
7474
7474
  function g(S, v) {
7475
- let x = v >> 24 & 255, b = v >> 16 & 255, E = v >> 8 & 255, _ = v & 255, A = S.sbox[0][x] + S.sbox[1][b];
7476
- return A = A ^ S.sbox[2][E], A = A + S.sbox[3][_], A;
7475
+ let x = v >> 24 & 255, b = v >> 16 & 255, E = v >> 8 & 255, y = v & 255, A = S.sbox[0][x] + S.sbox[1][b];
7476
+ return A = A ^ S.sbox[2][E], A = A + S.sbox[3][y], A;
7477
7477
  }
7478
7478
  function d(S, v, x) {
7479
- let b = v, E = x, _;
7479
+ let b = v, E = x, y;
7480
7480
  for (let A = 0; A < c; ++A)
7481
- b = b ^ S.pbox[A], E = g(S, b) ^ E, _ = b, b = E, E = _;
7482
- return _ = b, b = E, E = _, E = E ^ S.pbox[c], b = b ^ S.pbox[c + 1], { left: b, right: E };
7481
+ b = b ^ S.pbox[A], E = g(S, b) ^ E, y = b, b = E, E = y;
7482
+ return y = b, b = E, E = y, E = E ^ S.pbox[c], b = b ^ S.pbox[c + 1], { left: b, right: E };
7483
7483
  }
7484
7484
  function f(S, v, x) {
7485
- let b = v, E = x, _;
7485
+ let b = v, E = x, y;
7486
7486
  for (let A = c + 1; A > 1; --A)
7487
- b = b ^ S.pbox[A], E = g(S, b) ^ E, _ = b, b = E, E = _;
7488
- return _ = b, b = E, E = _, E = E ^ S.pbox[1], b = b ^ S.pbox[0], { left: b, right: E };
7487
+ b = b ^ S.pbox[A], E = g(S, b) ^ E, y = b, b = E, E = y;
7488
+ return y = b, b = E, E = y, E = E ^ S.pbox[1], b = b ^ S.pbox[0], { left: b, right: E };
7489
7489
  }
7490
7490
  function m(S, v, x) {
7491
- for (let y = 0; y < 4; y++) {
7492
- S.sbox[y] = [];
7491
+ for (let _ = 0; _ < 4; _++) {
7492
+ S.sbox[_] = [];
7493
7493
  for (let R = 0; R < 256; R++)
7494
- S.sbox[y][R] = u[y][R];
7494
+ S.sbox[_][R] = u[_][R];
7495
7495
  }
7496
7496
  let b = 0;
7497
- for (let y = 0; y < c + 2; y++)
7498
- S.pbox[y] = o[y] ^ v[b], b++, b >= x && (b = 0);
7499
- let E = 0, _ = 0, A = 0;
7500
- for (let y = 0; y < c + 2; y += 2)
7501
- A = d(S, E, _), E = A.left, _ = A.right, S.pbox[y] = E, S.pbox[y + 1] = _;
7502
- for (let y = 0; y < 4; y++)
7497
+ for (let _ = 0; _ < c + 2; _++)
7498
+ S.pbox[_] = o[_] ^ v[b], b++, b >= x && (b = 0);
7499
+ let E = 0, y = 0, A = 0;
7500
+ for (let _ = 0; _ < c + 2; _ += 2)
7501
+ A = d(S, E, y), E = A.left, y = A.right, S.pbox[_] = E, S.pbox[_ + 1] = y;
7502
+ for (let _ = 0; _ < 4; _++)
7503
7503
  for (let R = 0; R < 256; R += 2)
7504
- A = d(S, E, _), E = A.left, _ = A.right, S.sbox[y][R] = E, S.sbox[y][R + 1] = _;
7504
+ A = d(S, E, y), E = A.left, y = A.right, S.sbox[_][R] = E, S.sbox[_][R + 1] = y;
7505
7505
  return !0;
7506
7506
  }
7507
7507
  var l = a.Blowfish = s.extend({
@@ -7642,7 +7642,7 @@ function Qr(r) {
7642
7642
  };
7643
7643
  }
7644
7644
  typeof window != "undefined" && ln(window, "stsPlugin", Qr);
7645
- var b0 = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, E0 = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, _0 = /[^-+\dA-Z]/g;
7645
+ var b0 = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, E0 = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, y0 = /[^-+\dA-Z]/g;
7646
7646
  function es(r, n, e, t) {
7647
7647
  if (arguments.length === 1 && typeof r == "string" && !/\d/.test(r) && (n = r, r = void 0), r = r || r === 0 ? r : /* @__PURE__ */ new Date(), r instanceof Date || (r = new Date(r)), isNaN(r))
7648
7648
  throw TypeError("Invalid date");
@@ -7670,7 +7670,7 @@ function es(r, n, e, t) {
7670
7670
  }, m = function() {
7671
7671
  return e ? 0 : r.getTimezoneOffset();
7672
7672
  }, l = function() {
7673
- return y0(r);
7673
+ return _0(r);
7674
7674
  }, S = function() {
7675
7675
  return A0(r);
7676
7676
  }, v = { d: function() {
@@ -7772,7 +7772,7 @@ var Fa = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7772
7772
  return g[s + "FullYear"]();
7773
7773
  };
7774
7774
  return m() === e && f() === t && d() === i ? o ? "Tdy" : "Today" : v() === e && S() === t && l() === i ? o ? "Ysd" : "Yesterday" : E() === e && b() === t && x() === i ? o ? "Tmw" : "Tomorrow" : a;
7775
- }, y0 = function(n) {
7775
+ }, _0 = function(n) {
7776
7776
  var e = new Date(n.getFullYear(), n.getMonth(), n.getDate());
7777
7777
  e.setDate(e.getDate() - (e.getDay() + 6) % 7 + 3);
7778
7778
  var t = new Date(e.getFullYear(), 0, 4);
@@ -7785,7 +7785,7 @@ var Fa = { default: "ddd mmm dd yyyy HH:MM:ss", shortDate: "m/d/yy", paddedShort
7785
7785
  var e = n.getDay();
7786
7786
  return e === 0 && (e = 7), e;
7787
7787
  }, C0 = function(n) {
7788
- return (String(n).match(E0) || [""]).pop().replace(_0, "").replace(/GMT\+0000/g, "UTC");
7788
+ return (String(n).match(E0) || [""]).pop().replace(y0, "").replace(/GMT\+0000/g, "UTC");
7789
7789
  };
7790
7790
  const { BrowserUtil: R0 } = de, Wt = {
7791
7791
  EdgeHTML: "EdgeHTML",
@@ -8416,7 +8416,7 @@ const O0 = {
8416
8416
  17: "16IN_360P",
8417
8417
  9999: "Mixed_Audio"
8418
8418
  };
8419
- var is = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(is || {}), _i = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(_i || {}), wi = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(wi || {}), bn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(bn || {}), rs = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(rs || {}), En = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(En || {}), ht = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ht || {}), _n = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(_n || {}), Ue = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Ue || {});
8419
+ var is = /* @__PURE__ */ ((r) => (r[r.LiveTranscoding_HZ_48000 = 48e3] = "LiveTranscoding_HZ_48000", r[r.LiveTranscoding_HZ_44100 = 44100] = "LiveTranscoding_HZ_44100", r[r.LiveTranscoding_HZ_32000 = 32e3] = "LiveTranscoding_HZ_32000", r[r.LiveTranscoding_HZ_16000 = 16e3] = "LiveTranscoding_HZ_16000", r[r.LiveTranscoding_HZ_8000 = 8e3] = "LiveTranscoding_HZ_8000", r))(is || {}), yi = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNoBody = 0] = "LiveTranscodingNoBody", r[r.LiveTranscodingBody = 1] = "LiveTranscodingBody", r))(yi || {}), wi = /* @__PURE__ */ ((r) => (r[r.NOTO_SERIF_CJKSC_REGULAR = 0] = "NOTO_SERIF_CJKSC_REGULAR", r[r.ALIBABA_PUHUITI_REGULAR = 1] = "ALIBABA_PUHUITI_REGULAR", r[r.ALIBABA_PUHUITI_BOLD = 2] = "ALIBABA_PUHUITI_BOLD", r[r.ALIBABA_PUHUITI_Heavy = 3] = "ALIBABA_PUHUITI_Heavy", r[r.ALIBABA_PUHUITI_LIGHT = 4] = "ALIBABA_PUHUITI_LIGHT", r[r.ALIBABA_PUHUITI_MEDIUM = 5] = "ALIBABA_PUHUITI_MEDIUM", r))(wi || {}), bn = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingOrigin = 0] = "LiveTranscodingOrigin", r[r.LiveTranscodingCrop = 1] = "LiveTranscodingCrop", r[r.LiveTranscodingFill = 2] = "LiveTranscodingFill", r))(bn || {}), rs = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingNormal = 0] = "LiveTranscodingNormal", r[r.LiveTranscodingVirtualBackground = 1] = "LiveTranscodingVirtualBackground", r))(rs || {}), En = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingState_IDLE = 0] = "LiveTranscodingState_IDLE", r[r.LiveTranscodingState_CONNNECT = 1] = "LiveTranscodingState_CONNNECT", r[r.LiveTranscodingState_RUNNING = 2] = "LiveTranscodingState_RUNNING", r[r.LiveTranscodingState_RECOVERING = 3] = "LiveTranscodingState_RECOVERING", r[r.LiveTranscodingState_FAILURE = 4] = "LiveTranscodingState_FAILURE", r[r.LiveTranscodingState_END = 5] = "LiveTranscodingState_END", r))(En || {}), ht = /* @__PURE__ */ ((r) => (r[r.LiveTranscodingErrorPublishOk = 0] = "LiveTranscodingErrorPublishOk", r[r.LiveTranscodingErrorStreamNotFound = 17825793] = "LiveTranscodingErrorStreamNotFound", r[r.LiveTranscodingErrorStreamAlreadyExist = 17825794] = "LiveTranscodingErrorStreamAlreadyExist", r[r.LiveTranscodingErrorInvalidParam = 17825795] = "LiveTranscodingErrorInvalidParam", r[r.LiveTranscodingErrorInternalError = 17825796] = "LiveTranscodingErrorInternalError", r[r.LiveTranscodingErrorRtmpServerError = 17825797] = "LiveTranscodingErrorRtmpServerError", r[r.LiveTranscodingErrorRtmpStreamUrlError = 17825798] = "LiveTranscodingErrorRtmpStreamUrlError", r[r.LiveTranscodingErrorPublishTimeout = 17825799] = "LiveTranscodingErrorPublishTimeout", r[r.LiveTranscodingErrorNotAuthorized = 17825800] = "LiveTranscodingErrorNotAuthorized", r))(ht || {}), yn = /* @__PURE__ */ ((r) => (r[r.TrascodingPublishTaskStatusStart = 0] = "TrascodingPublishTaskStatusStart", r[r.TrascodingPublishTaskStatusUpdate = 1] = "TrascodingPublishTaskStatusUpdate", r[r.TrascodingPublishTaskStatusStop = 2] = "TrascodingPublishTaskStatusStop", r))(yn || {}), Ue = /* @__PURE__ */ ((r) => (r[r.MPU_TASK_TRANSACTION_START = 0] = "MPU_TASK_TRANSACTION_START", r[r.MPU_TASK_TRANSACTION_UPDATE = 1] = "MPU_TASK_TRANSACTION_UPDATE", r[r.MPU_TASK_TRANSACTION_STOP = 2] = "MPU_TASK_TRANSACTION_STOP", r[r.MPU_TASK_TRANSACTION_LIST = 3] = "MPU_TASK_TRANSACTION_LIST", r[r.MPU_TASK_TRANSACTION_POLLING = 4] = "MPU_TASK_TRANSACTION_POLLING", r[r.MPU_TASK_TRANSACTION_ACKNOWLEDGE = 5] = "MPU_TASK_TRANSACTION_ACKNOWLEDGE", r[r.MPU_TASK_TRANSACTION_END = 6] = "MPU_TASK_TRANSACTION_END", r))(Ue || {});
8420
8420
  const U0 = {
8421
8421
  0: "/libra/v1/sdk/start-task",
8422
8422
  1: "/libra/v1/sdk/update-task",
@@ -8426,7 +8426,7 @@ const U0 = {
8426
8426
  5: "/libra/v1/sdk/acknowledge",
8427
8427
  6: "/"
8428
8428
  };
8429
- class yn {
8429
+ class _n {
8430
8430
  //[1,2]
8431
8431
  constructor(n, e, t, i, s, a, c, o) {
8432
8432
  p(this, "videoWidth");
@@ -8481,7 +8481,7 @@ class Vr {
8481
8481
  const c = this.mixParam;
8482
8482
  if (c) {
8483
8483
  c.taskProfile && (a.taskprofile = O0[c.taskProfile]);
8484
- const o = c.encodeParam || new yn(1280, 720);
8484
+ const o = c.encodeParam || new _n(1280, 720);
8485
8485
  let u = o.videoWidth, h = o.videoHeight;
8486
8486
  const g = {};
8487
8487
  Object.keys(o).forEach((f) => {
@@ -8503,7 +8503,7 @@ class Vr {
8503
8503
  return a;
8504
8504
  }
8505
8505
  }
8506
- var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Mt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Mt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), _e = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(_e || {}), oe = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(oe || {}), Kt = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Kt || {}), as = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(as || {}), Yt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(Yt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), X = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(X || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(ue || {}), De = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(De || {}), ci = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ci || {});
8506
+ var pt = /* @__PURE__ */ ((r) => (r.pre = "pre", r.prod = "prod", r))(pt || {}), bt = /* @__PURE__ */ ((r) => (r.AliRtcSdkCommunication = "communication", r.AliRtcSdkInteractiveLive = "interactive_live", r.AliRtcSdkInteractiveWithLowLatencyLive = "cdn_live", r))(bt || {}), Mt = /* @__PURE__ */ ((r) => (r.AliRtcSdkInteractive = "interactive", r.AliRtcSdkLive = "live", r))(Mt || {}), dt = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceTypeUnknown = 0] = "AliEngineLocalDeviceTypeUnknown", r[r.AliEngineLocalDeviceTypeMic = 1] = "AliEngineLocalDeviceTypeMic", r[r.AliEngineLocalDeviceTypeSpeaker = 2] = "AliEngineLocalDeviceTypeSpeaker", r[r.AliEngineLocalDeviceTypeAudioDevice = 3] = "AliEngineLocalDeviceTypeAudioDevice", r[r.AliEngineLocalDeviceTypeCamera = 4] = "AliEngineLocalDeviceTypeCamera", r[r.AliEngineLocalDeviceTypeDisplay = 5] = "AliEngineLocalDeviceTypeDisplay", r[r.AliEngineLocalDeviceTypeVideoDevice = 6] = "AliEngineLocalDeviceTypeVideoDevice", r))(dt || {}), ye = /* @__PURE__ */ ((r) => (r[r.AliEngineLocalDeviceExceptionTypeUnknown = 0] = "AliEngineLocalDeviceExceptionTypeUnknown", r[r.AliEngineLocalDeviceExceptionTypeMicOpenFail = 1] = "AliEngineLocalDeviceExceptionTypeMicOpenFail", r[r.AliEngineLocalDeviceExceptionTypeMicInterrupt = 2] = "AliEngineLocalDeviceExceptionTypeMicInterrupt", r[r.AliEngineLocalDeviceExceptionTypeMicAuthFail = 3] = "AliEngineLocalDeviceExceptionTypeMicAuthFail", r[r.AliEngineLocalDeviceExceptionTypeMicNotAvailable = 4] = "AliEngineLocalDeviceExceptionTypeMicNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeSpeakerOpenFail = 5] = "AliEngineLocalDeviceExceptionTypeSpeakerOpenFail", r[r.AliEngineLocalDeviceExceptionTypeSpeakerInterrupt = 6] = "AliEngineLocalDeviceExceptionTypeSpeakerInterrupt", r[r.AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable = 7] = "AliEngineLocalDeviceExceptionTypeSpeakerNotAvailable", r[r.AliEngineLocalDeviceExceptionTypeAudioDeviceException = 8] = "AliEngineLocalDeviceExceptionTypeAudioDeviceException", r[r.AliEngineLocalDeviceExceptionTypeCameraOpenFail = 9] = "AliEngineLocalDeviceExceptionTypeCameraOpenFail", r[r.AliEngineLocalDeviceExceptionTypeCameraInterrupt = 10] = "AliEngineLocalDeviceExceptionTypeCameraInterrupt", r[r.AliEngineLocalDeviceExceptionTypeCameraAuthFail = 11] = "AliEngineLocalDeviceExceptionTypeCameraAuthFail", r[r.AliEngineLocalDeviceExceptionTypeDisplayException = 12] = "AliEngineLocalDeviceExceptionTypeDisplayException", r[r.AliEngineLocalDeviceExceptionTypeVideoDeviceException = 13] = "AliEngineLocalDeviceExceptionTypeVideoDeviceException", r))(ye || {}), oe = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionStatusInit = 0] = "AliRtcConnectionStatusInit", r[r.AliRtcConnectionStatusDisconnected = 1] = "AliRtcConnectionStatusDisconnected", r[r.AliRtcConnectionStatusConnecting = 2] = "AliRtcConnectionStatusConnecting", r[r.AliRtcConnectionStatusConnected = 3] = "AliRtcConnectionStatusConnected", r[r.AliRtcConnectionStatusReconnecting = 4] = "AliRtcConnectionStatusReconnecting", r[r.AliRtcConnectionStatusFailed = 5] = "AliRtcConnectionStatusFailed", r))(oe || {}), Kt = /* @__PURE__ */ ((r) => (r[r.AliRtcConnectionChangedDummyReason = 0] = "AliRtcConnectionChangedDummyReason", r[r.AliRtcConnectionMediaPathChanged = 1] = "AliRtcConnectionMediaPathChanged", r[r.AliRtcConnectionSignalingHeartbeatTimeout = 2] = "AliRtcConnectionSignalingHeartbeatTimeout", r[r.AliRtcConnectionSignalingHeartbeatAlive = 3] = "AliRtcConnectionSignalingHeartbeatAlive", r[r.AliRtcConnectionSignalingHttpDnsResolved = 4] = "AliRtcConnectionSignalingHttpDnsResolved", r[r.AliRtcConnectionSignalingHttpDnsFailure = 5] = "AliRtcConnectionSignalingHttpDnsFailure", r[r.AliRtcConnectionSignalingGslbFailure = 6] = "AliRtcConnectionSignalingGslbFailure", r[r.AliRtcConnectionSignalingGslbSuccess = 7] = "AliRtcConnectionSignalingGslbSuccess", r[r.AliRtcConnectionSignalingJoinRoomFailure = 8] = "AliRtcConnectionSignalingJoinRoomFailure", r[r.AliRtcConnectionSignalingJoinRoomSuccess = 9] = "AliRtcConnectionSignalingJoinRoomSuccess", r[r.AliRtcConnectionSignalingLeaveRoom = 10] = "AliRtcConnectionSignalingLeaveRoom", r[r.AliRtcConnectionSignalingConnecting = 11] = "AliRtcConnectionSignalingConnecting", r[r.AliRtcConnectionChangedNetworkInterrupted = 12] = "AliRtcConnectionChangedNetworkInterrupted", r))(Kt || {}), as = /* @__PURE__ */ ((r) => (r[r.AliRtcUserOfflineQuit = 0] = "AliRtcUserOfflineQuit", r[r.AliRtcUserOfflineDropped = 1] = "AliRtcUserOfflineDropped", r[r.AliRtcUserOfflineBecomeAudience = 2] = "AliRtcUserOfflineBecomeAudience", r))(as || {}), Yt = /* @__PURE__ */ ((r) => (r[r.AliRtcAudioTrackNo = 0] = "AliRtcAudioTrackNo", r[r.AliRtcAudioTrackMic = 1] = "AliRtcAudioTrackMic", r[r.AliRtcAudioTrackDual = 2] = "AliRtcAudioTrackDual", r))(Yt || {}), se = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoTrackNo = 0] = "AliRtcVideoTrackNo", r[r.AliRtcVideoTrackCamera = 1] = "AliRtcVideoTrackCamera", r[r.AliRtcVideoTrackScreen = 2] = "AliRtcVideoTrackScreen", r[r.AliRtcVideoTrackBoth = 3] = "AliRtcVideoTrackBoth", r))(se || {}), X = /* @__PURE__ */ ((r) => (r[r.AliRtcStatePublishIdle = 0] = "AliRtcStatePublishIdle", r[r.AliRtcStateNoPublish = 1] = "AliRtcStateNoPublish", r[r.AliRtcStatePublishing = 2] = "AliRtcStatePublishing", r[r.AliRtcStatePublished = 3] = "AliRtcStatePublished", r))(X || {}), ue = /* @__PURE__ */ ((r) => (r[r.AliRtcStateSubscribeIdle = 0] = "AliRtcStateSubscribeIdle", r[r.AliRtcStateNoSubscribe = 1] = "AliRtcStateNoSubscribe", r[r.AliRtcStateSubscribing = 2] = "AliRtcStateSubscribing", r[r.AliRtcStateSubscribed = 3] = "AliRtcStateSubscribed", r))(ue || {}), De = /* @__PURE__ */ ((r) => (r[r.AliRtcVideoStreamTypeNone = 0] = "AliRtcVideoStreamTypeNone", r[r.AliRtcVideoStreamTypeHigh = 1] = "AliRtcVideoStreamTypeHigh", r[r.AliRtcVideoStreamTypeLow = 2] = "AliRtcVideoStreamTypeLow", r))(De || {}), ci = /* @__PURE__ */ ((r) => (r[r.CAMERA_INVALID = -1] = "CAMERA_INVALID", r[r.CAMERA_REAR = 0] = "CAMERA_REAR", r[r.CAMERA_FRONT = 1] = "CAMERA_FRONT", r))(ci || {});
8507
8507
  const ja = 12, za = 5e3, qt = class qt extends Ae {
8508
8508
  constructor(e) {
8509
8509
  super();
@@ -8749,7 +8749,7 @@ class H0 {
8749
8749
  };
8750
8750
  }
8751
8751
  }
8752
- var U = /* @__PURE__ */ ((r) => (r[r.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", r[r.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", r[r.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", r[r.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", r[r.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", r[r.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", r[r.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", r[r.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", r[r.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", r[r.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", r[r.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", r[r.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", r[r.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", r[r.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", r[r.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", r[r.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", r[r.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", r[r.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", r[r.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", r[r.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", r[r.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", r[r.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", r[r.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", r[r.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", r[r.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", r[r.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", r[r.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", r[r.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", r[r.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", r[r.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", r[r.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", r[r.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", r[r.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", r[r.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", r[r.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", r[r.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", r[r.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", r[r.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", r[r.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", r[r.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", r[r.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", r[r.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", r[r.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", r[r.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", r[r.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", r[r.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", r[r.ERR_INNER = -1] = "ERR_INNER", r[r.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", r[r.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", r[r.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", r[r.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", r[r.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", r[r.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", r[r.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", r[r.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", r[r.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", r[r.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", r[r.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", r[r.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", r))(U || {});
8752
+ var H = /* @__PURE__ */ ((r) => (r[r.ERR_JOIN_ALREADY_JOINED = 16843521] = "ERR_JOIN_ALREADY_JOINED", r[r.ERR_JOIN_BAD_APPID = 33620481] = "ERR_JOIN_BAD_APPID", r[r.ERR_JOIN_INVALID_APPID = 33620482] = "ERR_JOIN_INVALID_APPID", r[r.ERR_JOIN_BAD_CHANNEL = 33620484] = "ERR_JOIN_BAD_CHANNEL", r[r.ERR_JOIN_INVALID_CHANNEL = 33620483] = "ERR_JOIN_INVALID_CHANNEL", r[r.ERR_JOIN_BAD_TOKEN = 33620485] = "ERR_JOIN_BAD_TOKEN", r[r.ERR_JOIN_TIMEOUT = 16908804] = "ERR_JOIN_TIMEOUT", r[r.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD = 16974081] = "ERR_JOIN_ERR_JOIN_BAD_PARAMBAD", r[r.ERR_JOIN_CHANNEL_FAILED = 16974338] = "ERR_JOIN_CHANNEL_FAILED", r[r.ERR_LOG_ALREADY_INIT = 16974085] = "ERR_LOG_ALREADY_INIT", r[r.ERR_LOG_ROOT_PATH_ERROR = 16974086] = "ERR_LOG_ROOT_PATH_ERROR", r[r.ERR_MIC_OPEN_FAIL = 17040388] = "ERR_MIC_OPEN_FAIL", r[r.ERR_SPEAKER_OPEN_FAIL = 17040389] = "ERR_SPEAKER_OPEN_FAIL", r[r.ERR_MIC_INTERRUPT = 17040390] = "ERR_MIC_INTERRUPT", r[r.ERR_SPEAKER_INTERRUPT = 17040391] = "ERR_SPEAKER_INTERRUPT", r[r.ERR_MIC_AUTH_FAIL = 17040392] = "ERR_MIC_AUTH_FAIL", r[r.ERR_MIC_NOT_AVAILABLE = 17040393] = "ERR_MIC_NOT_AVAILABLE", r[r.ERR_SPEAKER_NOT_AVAILABLE = 17040400] = "ERR_SPEAKER_NOT_AVAILABLE", r[r.ERR_CAMERA_OPEN_FAIL = 17039620] = "ERR_CAMERA_OPEN_FAIL", r[r.ERR_CAMERA_AUTH_FAIL = 17039621] = "ERR_CAMERA_AUTH_FAIL", r[r.ERR_CAMERA_INTERRUPT = 17039622] = "ERR_CAMERA_INTERRUPT", r[r.ERR_CAMERA_NOT_AVAILABLE = 17039623] = "ERR_CAMERA_NOT_AVAILABLE", r[r.ERR_VIDEO_DISPLAY_OPEN_FAIL = 17039873] = "ERR_VIDEO_DISPLAY_OPEN_FAIL", r[r.ERR_VIDEO_DISPLAY_INTERRUPT = 1064992] = "ERR_VIDEO_DISPLAY_INTERRUPT", r[r.ERR_ICE_CONNECTION_CONNECT_FAIL = 17105409] = "ERR_ICE_CONNECTION_CONNECT_FAIL", r[r.ERR_ICE_CONNECTION_RECONNECT_FAI = 17105410] = "ERR_ICE_CONNECTION_RECONNECT_FAI", r[r.ERR_ICE_CONNECTION_MOBILITY_FAIL = 17105411] = "ERR_ICE_CONNECTION_MOBILITY_FAIL", r[r.ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT = 16908812] = "ERR_ICE_CONNECTION_HEARTBEAT_TIMEOUT", r[r.ERR_LATENCY_LIVE_COMMUNICATION_FAILED = 17235971] = "ERR_LATENCY_LIVE_COMMUNICATION_FAILED", r[r.ERR_LATENCY_LIVE_MEIDASETTING_FAILED = 17235972] = "ERR_LATENCY_LIVE_MEIDASETTING_FAILED", r[r.ERR_LATENCY_LIVE_NONE_BROADCASTER = 17235973] = "ERR_LATENCY_LIVE_NONE_BROADCASTER", r[r.ERR_LATENCY_LIVE_NEED_RESTART = 17235974] = "ERR_LATENCY_LIVE_NEED_RESTART", r[r.ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER = 17235975] = "ERR_LATENCY_LIVE_NEED_RESTART_AGAIN_LATER", r[r.ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE = 17235976] = "ERR_LATENCY_LIVE_SERVICE_UNAVAILABLE", r[r.ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION = 17235977] = "ERR_LATENCY_LIVE_MEDIACONNECTION_INTERRUPTION", r[r.ERR_SDK_PUBLISH_INVAILD = 16974597] = "ERR_SDK_PUBLISH_INVAILD", r[r.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL = 16843782] = "ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL", r[r.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED = 16843856] = "ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED = 16843857] = "ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED = 16843858] = "ERR_SDK_PUBLISH_DUAL_STREAM_FAILED", r[r.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED = 16843859] = "ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED", r[r.ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR = 16843860] = "ERR_SDK_PUBLISH_SCREEN_SHARE_CONFIG_ERROR", r[r.ERR_SDK_SUBSCRIBE_INVAILD = 16974852] = "ERR_SDK_SUBSCRIBE_INVAILD", r[r.ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL = 16844112] = "ERR_SDK_SUBSCRIBE_NOT_JOIN_CHANNEL", r[r.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED = 16844113] = "ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED = 16844114] = "ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED = 16844115] = "ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED", r[r.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED = 16844116] = "ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_FAILED = 16844117] = "ERR_SDK_SUBSCRIBE_DATA_FAILED", r[r.ERR_SDK_SUBSCRIBE_DATA_ERROR = 16844118] = "ERR_SDK_SUBSCRIBE_DATA_ERROR", r[r.ERR_SDK_INVALID_STATE = 16974340] = "ERR_SDK_INVALID_STATE", r[r.ERR_INVALID_ARGUMENTS = 16974083] = "ERR_INVALID_ARGUMENTS", r[r.ERR_SESSION_REMOVED = 33620229] = "ERR_SESSION_REMOVED", r[r.ERR_SDK_UPDATE_ROLE_CHANNEL = 16908801] = "ERR_SDK_UPDATE_ROLE_CHANNEL", r[r.ERR_INNER = -1] = "ERR_INNER", r[r.ERR_SDK_MPU_TASK_PUBLISH_OK = 0] = "ERR_SDK_MPU_TASK_PUBLISH_OK", r[r.ERR_SDK_MPU_TASK_STREAM_NOT_FOUND = 17825793] = "ERR_SDK_MPU_TASK_STREAM_NOT_FOUND", r[r.ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST = 17825794] = "ERR_SDK_MPU_TASK_STREAM_ALREADY_EXIST", r[r.ERR_SDK_MPU_TASK_INVALID_PARAM = 17825795] = "ERR_SDK_MPU_TASK_INVALID_PARAM", r[r.ERR_SDK_MPU_TASK_INTERNAL_ERROR = 17825796] = "ERR_SDK_MPU_TASK_INTERNAL_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR = 17825797] = "ERR_SDK_MPU_TASK_RTMP_SERVER_ERROR", r[r.ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR = 17825798] = "ERR_SDK_MPU_TASK_RTMP_STREAM_URL_ERROR", r[r.ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT = 17825799] = "ERR_SDK_MPU_TASK_PUBLISH_TIMEOUT", r[r.ERR_SDK_MPU_TASK_NOT_AUTHORIZED = 17825800] = "ERR_SDK_MPU_TASK_NOT_AUTHORIZED", r[r.ERR_SDK_CHANNEL_RELAY_STATE_ERROR = 18874369] = "ERR_SDK_CHANNEL_RELAY_STATE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW = 18874370] = "ERR_SDK_CHANNEL_RELAY_SRC_NOT_ALLOW", r[r.ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED = 18874371] = "ERR_SDK_CHANNEL_RELAY_JOIN_DEST_FAILED", r[r.ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID = 18874372] = "ERR_SDK_CHANNEL_RELAY_TOKEN_INVALID", r[r.ERR_SDK_CHANNEL_RELAY_ROLE_ERROR = 18874373] = "ERR_SDK_CHANNEL_RELAY_ROLE_ERROR", r[r.ERR_SDK_CHANNEL_RELAY_INVALID_PARAM = 18874374] = "ERR_SDK_CHANNEL_RELAY_INVALID_PARAM", r[r.ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR = 18874375] = "ERR_SDK_CHANNEL_RELAY_TO_SELF_ERROR", r))(H || {});
8753
8753
  class V extends Error {
8754
8754
  constructor(e, t, i) {
8755
8755
  super(t);
@@ -8860,7 +8860,7 @@ const j0 = 3e4, qe = class qe extends Ae {
8860
8860
  let s = this.packageCreater.createPublishPackage();
8861
8861
  s.data.users = [], s.data.l1ip = t, i.subscribe.signal = this.wsClient.connectUrl;
8862
8862
  const { tracks: a, resume: c } = i;
8863
- let o = "7.0.0-beta.2";
8863
+ let o = "7.0.0-beta.3";
8864
8864
  o && (o = o.split("-")[0]), a.forEach((h) => {
8865
8865
  const { codec: g, ssrc: d } = h;
8866
8866
  h.userdata = JSON.stringify({
@@ -8953,7 +8953,7 @@ const j0 = 3e4, qe = class qe extends Ae {
8953
8953
  */
8954
8954
  onConnectFail() {
8955
8955
  O.warn(`[${qe.logName}] onConnectFail`);
8956
- const e = new V(U.ERR_INNER, "Signaling connect failed.");
8956
+ const e = new V(H.ERR_INNER, "Signaling connect failed.");
8957
8957
  this.isFirstConnect ? this.emit("onJoinChannelResult", e) : this.emit("onConnectFail", e);
8958
8958
  }
8959
8959
  /**
@@ -8967,7 +8967,7 @@ const j0 = 3e4, qe = class qe extends Ae {
8967
8967
  */
8968
8968
  onNetworkError() {
8969
8969
  O.warn(`[${qe.logName}] onNetworkError`);
8970
- const e = new V(U.ERR_INNER, "Network error, signaling connect failed.");
8970
+ const e = new V(H.ERR_INNER, "Network error, signaling connect failed.");
8971
8971
  this.emit("onNetworkError", e);
8972
8972
  }
8973
8973
  /**
@@ -8984,7 +8984,7 @@ const j0 = 3e4, qe = class qe extends Ae {
8984
8984
  this.emit("onReconnectStart");
8985
8985
  }
8986
8986
  onReconnectFail() {
8987
- this.emit("onReconnectFail", new V(U.ERR_INNER, "signaling reconnect failed."));
8987
+ this.emit("onReconnectFail", new V(H.ERR_INNER, "signaling reconnect failed."));
8988
8988
  }
8989
8989
  /**
8990
8990
  * 处理 Keepalive 心跳,加速判断网络异常
@@ -9088,7 +9088,7 @@ const j0 = 3e4, qe = class qe extends Ae {
9088
9088
  this.sendPkgCache(), this.startKeepAlive(), this.emit("onReconnectSuccess", e.data.users);
9089
9089
  else {
9090
9090
  const t = new V(
9091
- U.ERR_INNER,
9091
+ H.ERR_INNER,
9092
9092
  `reconnect failed, code: ${e.code};description: ${e.description}`
9093
9093
  );
9094
9094
  e.code === 403 && (t.code = 403), this.emit("onReconnectFail", t), this.close();
@@ -9188,7 +9188,7 @@ const D = (r, n) => (e, t, i) => {
9188
9188
  }
9189
9189
  }), h;
9190
9190
  }, i;
9191
- }, H = (r) => r;
9191
+ }, U = (r) => r;
9192
9192
  var z0 = Object.defineProperty, W0 = Object.getOwnPropertyDescriptor, ns = (r, n, e, t) => {
9193
9193
  for (var i = t > 1 ? void 0 : t ? W0(n, e) : n, s = r.length - 1, a; s >= 0; s--)
9194
9194
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
@@ -9247,9 +9247,9 @@ const Di = (Ne = class extends Ae {
9247
9247
  let m = h.data;
9248
9248
  m.tid = h.tid, m.users = h.data.users, m.timestamp = h.timestamp, o.est && (o.joinconnecttc = Date.now() - o.est), this.slsReporter.reportJoinConnection(o), a(m);
9249
9249
  } else
9250
- this.reset(), c(this.handleSignalError(h.code, h.reason, U.ERR_JOIN_CHANNEL_FAILED));
9250
+ this.reset(), c(this.handleSignalError(h.code, h.reason, H.ERR_JOIN_CHANNEL_FAILED));
9251
9251
  }), this.messageCenter.once("onAuthInvalid", () => {
9252
- this.reset(), c(new V(U.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
9252
+ this.reset(), c(new V(H.ERR_JOIN_BAD_TOKEN, "join failed because authentication failed"));
9253
9253
  }), O.info(
9254
9254
  `[${Ne.logName}]`,
9255
9255
  "start ws connecting roomserver and auto join when connected"
@@ -9336,7 +9336,7 @@ const Di = (Ne = class extends Ae {
9336
9336
  }), this.messageCenter.reportStatus(e)) : i(new V(-1, "No messageCenter"));
9337
9337
  });
9338
9338
  }
9339
- handleSignalError(e, t, i = U.ERR_INNER) {
9339
+ handleSignalError(e, t, i = H.ERR_INNER) {
9340
9340
  const s = `signal error: code - ${e}; description - ${t}`;
9341
9341
  return new V(i, s);
9342
9342
  }
@@ -9471,7 +9471,7 @@ class os extends Ae {
9471
9471
  */
9472
9472
  join(e, t = e.userId, i, s, a) {
9473
9473
  return this.maxConnectRetryCount = i, this.userName = t, new Promise((c, o) => {
9474
- this.signaling ? o(new V(U.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new $0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i, a).then((u) => {
9474
+ this.signaling ? o(new V(H.ERR_JOIN_ALREADY_JOINED, "already joined")) : (O.info("[signalingmanager] create signaling"), this.signaling = new $0(this.channelProfile, this.clientRole, this.slsReporter, this.env), this.initSignaling(), s && (s.rs = Date.now()), this.signaling.join(e, t, i, a).then((u) => {
9475
9475
  this.authInfo = e, s && (s.re = Date.now()), c(u);
9476
9476
  }).catch((u) => {
9477
9477
  this.reset(), o(u);
@@ -9502,7 +9502,7 @@ class os extends Ae {
9502
9502
  t(a);
9503
9503
  }).catch((a) => {
9504
9504
  i(a);
9505
- })) : i(new V(U.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
9505
+ })) : i(new V(H.ERR_SDK_PUBLISH_NOT_JOIN_CHANNEL, "no signaling"));
9506
9506
  });
9507
9507
  }
9508
9508
  /**
@@ -9553,7 +9553,7 @@ class os extends Ae {
9553
9553
  * @returns
9554
9554
  */
9555
9555
  refreshUrl(e) {
9556
- return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new V(U.ERR_SDK_INVALID_STATE, "should join first"));
9556
+ return this.signaling ? this.signaling.refreshUrl(e) : Promise.reject(new V(H.ERR_SDK_INVALID_STATE, "should join first"));
9557
9557
  }
9558
9558
  refreshAuthInfo(e) {
9559
9559
  return w(this, null, function* () {
@@ -9666,7 +9666,7 @@ class os extends Ae {
9666
9666
  */
9667
9667
  p(os, "logName", "SignalingManager");
9668
9668
  Y0([
9669
- D(H)
9669
+ D(U)
9670
9670
  ], os.prototype, "publish", 1);
9671
9671
  function Jt() {
9672
9672
  }
@@ -9678,13 +9678,13 @@ const Lt = class Lt {
9678
9678
  };
9679
9679
  p(Lt, "instance");
9680
9680
  let Vt = Lt;
9681
- const yi = () => {
9681
+ const _i = () => {
9682
9682
  var n;
9683
9683
  const r = Vt.getInstance();
9684
- r.state !== "running" && r.state !== "closed" && ((n = r.resume()) == null || n.then(Jt, Jt).catch(Jt)), window.removeEventListener("mousedown", yi), window.removeEventListener("touchstart", yi);
9684
+ r.state !== "running" && r.state !== "closed" && ((n = r.resume()) == null || n.then(Jt, Jt).catch(Jt)), window.removeEventListener("mousedown", _i), window.removeEventListener("touchstart", _i);
9685
9685
  };
9686
- window.addEventListener("mousedown", yi);
9687
- window.addEventListener("touchstart", yi);
9686
+ window.addEventListener("mousedown", _i);
9687
+ window.addEventListener("touchstart", _i);
9688
9688
  function Z0(r, n, e, t, i) {
9689
9689
  let s = t, a = 0, c;
9690
9690
  const o = r.createAnalyser();
@@ -9833,20 +9833,20 @@ const Rn = "customVideoProfile", In = "customScreenProfile", jr = {
9833
9833
  };
9834
9834
  var ii = /* @__PURE__ */ ((r) => (r[r.ERROR_DEVICE_UNKNOWNERROR = 1e4] = "ERROR_DEVICE_UNKNOWNERROR", r[r.ERROR_DEVICE_AUDIODEVICE_NOTFOUND = 10001] = "ERROR_DEVICE_AUDIODEVICE_NOTFOUND", r[r.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED = 10002] = "ERROR_DEVICE_AUDIODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_AUDIODEVICE_NOTREADABLE = 10003] = "ERROR_DEVICE_AUDIODEVICE_NOTREADABLE", r[r.ERROR_DEVICE_VIDEODEVICE_NOTFOUND = 10004] = "ERROR_DEVICE_VIDEODEVICE_NOTFOUND", r[r.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED = 10005] = "ERROR_DEVICE_VIDEODEVICE_NOTALLOWED", r[r.ERROR_DEVICE_VIDEODEVICE_NOTREADABLE = 10006] = "ERROR_DEVICE_VIDEODEVICE_NOTREADABLE", r[r.ERROR_SCREENSHARE_NOTSUPPORT = 10010] = "ERROR_SCREENSHARE_NOTSUPPORT", r[r.ERROR_SCREENSHARE_NOTALLOWED = 10011] = "ERROR_SCREENSHARE_NOTALLOWED", r[r.ERROR_SCREENSHARE_ENDED = 10012] = "ERROR_SCREENSHARE_ENDED", r[r.ERROR_SCREENSHARE_NOPERMISSION = 10013] = "ERROR_SCREENSHARE_NOPERMISSION", r[r.ERROR_SCREENSHARE_SAFARI_INVALIDACCESS = 10014] = "ERROR_SCREENSHARE_SAFARI_INVALIDACCESS", r[r.ERROR_SCREENSHARE_UNKNOWNERRO = 10019] = "ERROR_SCREENSHARE_UNKNOWNERRO", r[r.ERROR_DEVICE_NOTSUPPORT = 2e4] = "ERROR_DEVICE_NOTSUPPORT", r))(ii || {});
9835
9835
  const ec = {
9836
- 1e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
9837
- 2e4: _e.AliEngineLocalDeviceExceptionTypeUnknown,
9838
- 10001: _e.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
9839
- 10002: _e.AliEngineLocalDeviceExceptionTypeMicAuthFail,
9840
- 10003: _e.AliEngineLocalDeviceExceptionTypeMicOpenFail,
9841
- 10005: _e.AliEngineLocalDeviceExceptionTypeCameraAuthFail,
9842
- 10004: _e.AliEngineLocalDeviceExceptionTypeVideoDeviceException,
9843
- 10006: _e.AliEngineLocalDeviceExceptionTypeCameraOpenFail,
9844
- 10010: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
9845
- 10011: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
9846
- 10012: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
9847
- 10013: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
9848
- 10014: _e.AliEngineLocalDeviceExceptionTypeDisplayException,
9849
- 10019: _e.AliEngineLocalDeviceExceptionTypeDisplayException
9836
+ 1e4: ye.AliEngineLocalDeviceExceptionTypeUnknown,
9837
+ 2e4: ye.AliEngineLocalDeviceExceptionTypeUnknown,
9838
+ 10001: ye.AliEngineLocalDeviceExceptionTypeMicNotAvailable,
9839
+ 10002: ye.AliEngineLocalDeviceExceptionTypeMicAuthFail,
9840
+ 10003: ye.AliEngineLocalDeviceExceptionTypeMicOpenFail,
9841
+ 10005: ye.AliEngineLocalDeviceExceptionTypeCameraAuthFail,
9842
+ 10004: ye.AliEngineLocalDeviceExceptionTypeVideoDeviceException,
9843
+ 10006: ye.AliEngineLocalDeviceExceptionTypeCameraOpenFail,
9844
+ 10010: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9845
+ 10011: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9846
+ 10012: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9847
+ 10013: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9848
+ 10014: ye.AliEngineLocalDeviceExceptionTypeDisplayException,
9849
+ 10019: ye.AliEngineLocalDeviceExceptionTypeDisplayException
9850
9850
  };
9851
9851
  var Je = /* @__PURE__ */ ((r) => (r.CREATE_ENGINE = "create_engine", r.JOIN = "join", r.WANT_INSERT_PUB_TASK = "wantInsertPubTask", r.INSERT_PUB_TASK = "InsertPubTask", r.HANDLE_PUB_TASK = "HandlePubTask", r.RECV_NOTIFY_PUBLISH = "RecvNotifyPublish", r.INSERT_SUB_TASK = "InsertSubTask", r.HANDLE_SUB_TASK = "HandleSubTask", r.FIRST_REMOTE = "first_remote", r))(Je || {}), Xe = /* @__PURE__ */ ((r) => (r.START = "start", r.SEND_SIG = "send_sig", r.RECV_RST = "recv_rst", r.END = "end", r.RECEIVED = "received", r.DECODED = "decoded", r.PLAYED = "played", r))(Xe || {});
9852
9852
  const tc = (r) => r.getAudioTracks()[0];
@@ -9859,11 +9859,11 @@ function Ka(r) {
9859
9859
  if (e) {
9860
9860
  if (e.nodeName.toLocaleLowerCase() === "video")
9861
9861
  return e.setAttribute("playsinline", ""), e;
9862
- throw new V(U.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
9862
+ throw new V(H.ERR_INVALID_ARGUMENTS, "element should be HtmlVideoElement");
9863
9863
  } else
9864
- throw new V(U.ERR_INVALID_ARGUMENTS, "element not founded");
9864
+ throw new V(H.ERR_INVALID_ARGUMENTS, "element not founded");
9865
9865
  } else
9866
- throw new V(U.ERR_INVALID_ARGUMENTS, "element id should be string");
9866
+ throw new V(H.ERR_INVALID_ARGUMENTS, "element id should be string");
9867
9867
  }
9868
9868
  function zr(r) {
9869
9869
  var e;
@@ -10176,7 +10176,6 @@ const ge = (lt = class extends An {
10176
10176
  super("", "", t, c);
10177
10177
  p(this, "_url", "");
10178
10178
  p(this, "joinTime", 0);
10179
- p(this, "_isPublishing", !1);
10180
10179
  p(this, "publishPromise", Promise.resolve({
10181
10180
  traceId: "",
10182
10181
  l1ip: void 0
@@ -10234,7 +10233,7 @@ const ge = (lt = class extends An {
10234
10233
  return !!this.uid;
10235
10234
  }
10236
10235
  get isPublishing() {
10237
- return this._isPublishing;
10236
+ return this.rtsManager.publishingTracks.length > 0;
10238
10237
  }
10239
10238
  get publishStreams() {
10240
10239
  return this.streamManager.publishStreams;
@@ -10342,7 +10341,7 @@ const ge = (lt = class extends An {
10342
10341
  facingMode: "environment"
10343
10342
  });
10344
10343
  else
10345
- throw new V(U.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
10344
+ throw new V(H.ERR_CAMERA_OPEN_FAIL, `camera direction set to ${e} failed`);
10346
10345
  }
10347
10346
  setCameraDeviceId(e) {
10348
10347
  this.streamManager.setCameraVideoConstraints({
@@ -10375,7 +10374,7 @@ const ge = (lt = class extends An {
10375
10374
  // 离会,对于本地用户来说核心是停止推流
10376
10375
  leave() {
10377
10376
  return w(this, null, function* () {
10378
- this._isPublishing && (this._isPublishing = !1, yield this.unPublish()), this.joinTime = 0, this.dc = void 0;
10377
+ this.isPublishing && (yield this.unPublish()), this.joinTime = 0, this.dc = void 0;
10379
10378
  });
10380
10379
  }
10381
10380
  clear() {
@@ -10398,8 +10397,8 @@ const ge = (lt = class extends An {
10398
10397
  yield this.startCameraCapture();
10399
10398
  } catch (a) {
10400
10399
  const c = a.errorCode;
10401
- let o = U.ERR_CAMERA_OPEN_FAIL;
10402
- throw c === ii.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? o = U.ERR_CAMERA_NOT_AVAILABLE : c === ii.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (o = U.ERR_CAMERA_AUTH_FAIL), new V(o, `camera open fail: ${a.message}`);
10400
+ let o = H.ERR_CAMERA_OPEN_FAIL;
10401
+ throw c === ii.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? o = H.ERR_CAMERA_NOT_AVAILABLE : c === ii.ERROR_DEVICE_VIDEODEVICE_NOTALLOWED && (o = H.ERR_CAMERA_AUTH_FAIL), new V(o, `camera open fail: ${a.message}`);
10403
10402
  }
10404
10403
  });
10405
10404
  }
@@ -10411,8 +10410,8 @@ const ge = (lt = class extends An {
10411
10410
  yield this.startAudioCapture();
10412
10411
  } catch (s) {
10413
10412
  const a = s.errorCode;
10414
- let c = U.ERR_MIC_OPEN_FAIL;
10415
- throw a === ii.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? c = U.ERR_MIC_NOT_AVAILABLE : a === ii.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED && (c = U.ERR_MIC_AUTH_FAIL), new V(c, `mic open fail: ${s.message}`);
10413
+ let c = H.ERR_MIC_OPEN_FAIL;
10414
+ throw a === ii.ERROR_DEVICE_AUDIODEVICE_NOTFOUND ? c = H.ERR_MIC_NOT_AVAILABLE : a === ii.ERROR_DEVICE_AUDIODEVICE_NOTALLOWED && (c = H.ERR_MIC_AUTH_FAIL), new V(c, `mic open fail: ${s.message}`);
10416
10415
  }
10417
10416
  });
10418
10417
  }
@@ -10428,7 +10427,7 @@ const ge = (lt = class extends An {
10428
10427
  return;
10429
10428
  }
10430
10429
  if (![se.AliRtcVideoTrackCamera, se.AliRtcVideoTrackScreen].includes(t))
10431
- throw new V(U.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
10430
+ throw new V(H.ERR_INVALID_ARGUMENTS, "set view config invalid track", { track: t });
10432
10431
  e.forEach((i) => {
10433
10432
  this.setPreviewElement({
10434
10433
  videoElement: i,
@@ -10475,7 +10474,7 @@ const ge = (lt = class extends An {
10475
10474
  try {
10476
10475
  let s = i ? this.streamManager.screenStreamInfo.previewStream : this.streamManager.cameraStreamInfo.previewStream;
10477
10476
  if (!t)
10478
- throw new V(U.ERR_INVALID_ARGUMENTS, "no video element found", {
10477
+ throw new V(H.ERR_INVALID_ARGUMENTS, "no video element found", {
10479
10478
  videoElement: t
10480
10479
  });
10481
10480
  if (!s) {
@@ -10484,7 +10483,7 @@ const ge = (lt = class extends An {
10484
10483
  }
10485
10484
  return wn(t, s.mediaStream), this.setPreviewElement(e), s.mediaStream;
10486
10485
  } catch (s) {
10487
- const a = U.ERR_INNER;
10486
+ const a = H.ERR_INNER;
10488
10487
  throw V.fromError(s, a, "preview failed");
10489
10488
  }
10490
10489
  });
@@ -10528,7 +10527,7 @@ const ge = (lt = class extends An {
10528
10527
  }
10529
10528
  resumePublish() {
10530
10529
  return w(this, null, function* () {
10531
- this._isPublishing = !1, yield this.startPublish(!0);
10530
+ yield this.startPublish(!0);
10532
10531
  });
10533
10532
  }
10534
10533
  createLocalStream(e) {
@@ -10634,7 +10633,7 @@ const ge = (lt = class extends An {
10634
10633
  this.dataPubState.setState(X.AliRtcStatePublishing);
10635
10634
  try {
10636
10635
  const e = yield this.rtsManager.publishAddDataChannel(this.url);
10637
- e ? (this.updateDataChannel(e), this.dataPubState.setState(X.AliRtcStatePublished)) : (this.dataPubState.setState(X.AliRtcStateNoPublish), this.emit("publishDataError", new V(U.ERR_INNER, "publishDataError")));
10636
+ e ? (this.updateDataChannel(e), this.dataPubState.setState(X.AliRtcStatePublished)) : (this.dataPubState.setState(X.AliRtcStateNoPublish), this.emit("publishDataError", new V(H.ERR_INNER, "publishDataError")));
10638
10637
  } catch (e) {
10639
10638
  this.dataPubState.setState(X.AliRtcStateNoPublish);
10640
10639
  }
@@ -10656,7 +10655,7 @@ const ge = (lt = class extends An {
10656
10655
  const h = (/* @__PURE__ */ new Date()).getTime();
10657
10656
  s && this.audioPubState.setState(X.AliRtcStatePublishing), a && this.videoPubState.setState(X.AliRtcStatePublishing), c && this.videoSmallPubState.setState(X.AliRtcStatePublishing), o && this.screenPubState.setState(X.AliRtcStatePublishing), this.publishPromise = this.rtsManager.publish(this.url, this.callId, e, t);
10658
10657
  const { traceId: g, l1ip: d } = yield this.publishPromise;
10659
- this._isPublishing = !0, this.streamTracks = this.rtsManager.publishingTracks, this.traceId = g, (u = this.parameter.data) != null && u.enablePubDataChannel && (yield this.publishDataChannel()), s && (this.trackTraceIdMap[T.Audio] = g, this.reportAudioProfile()), c && (this.trackTraceIdMap[T.VideoSmall] = g), a && (this.trackTraceIdMap[T.VideoLarge] = g, this.reportVideoProfile()), o && (this.trackTraceIdMap[T.Screen] = g, this.reportScreenProfile());
10658
+ this.streamTracks = this.rtsManager.publishingTracks, this.traceId = g, (u = this.parameter.data) != null && u.enablePubDataChannel && (yield this.publishDataChannel()), s && (this.trackTraceIdMap[T.Audio] = g, this.reportAudioProfile()), c && (this.trackTraceIdMap[T.VideoSmall] = g), a && (this.trackTraceIdMap[T.VideoLarge] = g, this.reportVideoProfile()), o && (this.trackTraceIdMap[T.Screen] = g, this.reportScreenProfile());
10660
10659
  const f = {
10661
10660
  type: xt.Add,
10662
10661
  userid: this.userId,
@@ -10687,7 +10686,7 @@ const ge = (lt = class extends An {
10687
10686
  publishUpdate(e) {
10688
10687
  return w(this, null, function* () {
10689
10688
  var a, c, o, u, h, g;
10690
- if (!this._isPublishing)
10689
+ if (!this.rtsManager.isConnecting && !this.rtsManager.isConnected)
10691
10690
  return;
10692
10691
  yield this.publishPromise;
10693
10692
  const t = this.streamManager.publishStreams;
@@ -10695,15 +10694,15 @@ const ge = (lt = class extends An {
10695
10694
  const s = (/* @__PURE__ */ new Date()).getTime();
10696
10695
  try {
10697
10696
  const d = (a = this.streamTracks) == null ? void 0 : a.find(
10698
- ({ ssrc: E, type: _, msid: A }) => _ === "audio" && E && A === T.Audio
10697
+ ({ ssrc: E, type: y, msid: A }) => y === "audio" && E && A === T.Audio
10699
10698
  ), f = yield this.compareAndPublish(d, t.audio, T.Audio);
10700
10699
  f && (i = f);
10701
10700
  const m = (c = this.streamTracks) == null ? void 0 : c.find(
10702
- ({ ssrc: E, type: _, msid: A }) => _ === "video" && E && A === T.VideoLarge
10701
+ ({ ssrc: E, type: y, msid: A }) => y === "video" && E && A === T.VideoLarge
10703
10702
  ), l = yield this.compareAndPublish(m, t.video, T.VideoLarge);
10704
10703
  l && (i = l);
10705
10704
  const S = (o = this.streamTracks) == null ? void 0 : o.find(
10706
- ({ ssrc: E, type: _, msid: A }) => _ === "video" && E && A === T.VideoSmall
10705
+ ({ ssrc: E, type: y, msid: A }) => y === "video" && E && A === T.VideoSmall
10707
10706
  ), v = yield this.compareAndPublish(
10708
10707
  S,
10709
10708
  t.videoSmall,
@@ -10711,7 +10710,7 @@ const ge = (lt = class extends An {
10711
10710
  );
10712
10711
  v && (i = v);
10713
10712
  const x = (u = this.streamTracks) == null ? void 0 : u.find(
10714
- ({ ssrc: E, type: _, msid: A }) => _ === "video" && E && A === T.Screen
10713
+ ({ ssrc: E, type: y, msid: A }) => y === "video" && E && A === T.Screen
10715
10714
  ), b = yield this.compareAndPublish(x, t.screen, T.Screen);
10716
10715
  if (b && (i = b), !i)
10717
10716
  if (e === nt.RECONNECT && this.rtsManager.publishingTracks.length > 0) {
@@ -10722,11 +10721,11 @@ const ge = (lt = class extends An {
10722
10721
  });
10723
10722
  this.updateDataChannel(A);
10724
10723
  }
10725
- const E = this.rtsManager.publishingTracks.find(({ type: A }) => A === "video"), _ = this.rtsManager.publishingTracks.find(({ type: A }) => A === "audio");
10726
- (E || _) && (yield this.rtsManager.waitPublishSender(
10724
+ const E = this.rtsManager.publishingTracks.find(({ type: A }) => A === "video"), y = this.rtsManager.publishingTracks.find(({ type: A }) => A === "audio");
10725
+ (E || y) && (yield this.rtsManager.waitPublishSender(
10727
10726
  this.url,
10728
10727
  !E,
10729
- E ? E.msid : _ == null ? void 0 : _.msid
10728
+ E ? E.msid : y == null ? void 0 : y.msid
10730
10729
  )), i = {
10731
10730
  type: xt.Add,
10732
10731
  userid: this.userId,
@@ -10756,7 +10755,7 @@ const ge = (lt = class extends An {
10756
10755
  return w(this, null, function* () {
10757
10756
  var o;
10758
10757
  if (!e)
10759
- throw new V(U.ERR_INNER, "sync publish to room server failed because no publishInfo");
10758
+ throw new V(H.ERR_INNER, "sync publish to room server failed because no publishInfo");
10760
10759
  let s = e;
10761
10760
  if (this.dc) {
10762
10761
  const c = e, { tracks: u } = c, h = Tt(c, ["tracks"]);
@@ -10778,7 +10777,7 @@ const ge = (lt = class extends An {
10778
10777
  }
10779
10778
  refreshPushStreamUrl() {
10780
10779
  return w(this, null, function* () {
10781
- const e = new V(U.ERR_INNER, "refresh push stream url error"), t = this.url;
10780
+ const e = new V(H.ERR_INNER, "refresh push stream url error"), t = this.url;
10782
10781
  if (!t)
10783
10782
  throw e;
10784
10783
  const i = yield this.signalingManager.refreshUrl({
@@ -10814,8 +10813,8 @@ const ge = (lt = class extends An {
10814
10813
  };
10815
10814
  return this.reportSelfDeviceStatus(), this.monitorTimerId || this.startStreamMonitor(), g;
10816
10815
  } catch (h) {
10817
- let g = U.ERR_SDK_PUBLISH_INVAILD;
10818
- if (a && (this.audioPubState.setState(X.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(X.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(X.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(X.AliRtcStateNoPublish), g = U.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10816
+ let g = H.ERR_SDK_PUBLISH_INVAILD;
10817
+ if (a && (this.audioPubState.setState(X.AliRtcStateNoPublish), g = H.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), c && (this.videoPubState.setState(X.AliRtcStateNoPublish), g = H.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), o && (this.videoSmallPubState.setState(X.AliRtcStateNoPublish), g = H.ERR_SDK_PUBLISH_DUAL_STREAM_FAILED), u && (this.screenPubState.setState(X.AliRtcStateNoPublish), g = H.ERR_SDK_PUBLISH_SCEEN_SHARE_FAILED), h.errorCode === 15006 && s < 3)
10819
10818
  return this.publishAdd(e, t, i, s + 1);
10820
10819
  throw V.fromError(h, g, "publish add failed");
10821
10820
  }
@@ -10844,7 +10843,7 @@ const ge = (lt = class extends An {
10844
10843
  } catch (i) {
10845
10844
  throw V.fromError(
10846
10845
  i,
10847
- U.ERR_INNER,
10846
+ H.ERR_INNER,
10848
10847
  `publish replace failed, vMsid: ${t == null ? void 0 : t.vMsid} aMsid: ${t == null ? void 0 : t.aMsid}`
10849
10848
  );
10850
10849
  }
@@ -10868,17 +10867,12 @@ const ge = (lt = class extends An {
10868
10867
  try {
10869
10868
  return yield this.rtsManager.publishDelete(this.url, e), this.streamTracks = this.rtsManager.publishingTracks, e.audio && this.audioPubState.setState(X.AliRtcStateNoPublish), e.video && (e.vMsid === T.VideoSmall ? this.videoSmallPubState.setState(X.AliRtcStateNoPublish) : this.videoPubState.setState(X.AliRtcStateNoPublish)), e.screen && this.screenPubState.setState(X.AliRtcStateNoPublish), t.tracks = this.streamTracks, this.reportSelfDeviceStatus(), t;
10870
10869
  } catch (i) {
10871
- throw V.fromError(i, U.ERR_INNER, "publish delete tracks failed");
10870
+ throw V.fromError(i, H.ERR_INNER, "publish delete tracks failed");
10872
10871
  }
10873
10872
  });
10874
10873
  }
10875
10874
  publishStop() {
10876
10875
  return w(this, null, function* () {
10877
- if (!this._isPublishing)
10878
- throw new V(
10879
- U.ERR_INNER,
10880
- "publish stop failed, previous localStream is required for publishing stopping"
10881
- );
10882
10876
  O.info(`[${lt.logName}]`, "publishStop", { url: this.url });
10883
10877
  const e = (/* @__PURE__ */ new Date()).getTime();
10884
10878
  try {
@@ -10901,7 +10895,7 @@ const ge = (lt = class extends An {
10901
10895
  };
10902
10896
  return this.syncPublishToRoomServer(c, {}, e), c;
10903
10897
  } catch (t) {
10904
- throw V.fromError(t, U.ERR_INNER, "publish stop failed");
10898
+ throw V.fromError(t, H.ERR_INNER, "publish stop failed");
10905
10899
  }
10906
10900
  });
10907
10901
  }
@@ -10922,13 +10916,13 @@ const ge = (lt = class extends An {
10922
10916
  tracks: []
10923
10917
  };
10924
10918
  try {
10925
- if (this._isPublishing) {
10919
+ if (this.isPublishing) {
10926
10920
  const i = this.hasAudioTrackInMS, s = this.hasCameraTrackInMS, a = this.hasCameraDualTrackInMS, c = this.hasScreenTrackInMS;
10927
- yield this.rtsManager.unpublish(), this.streamTracks = [], this.stopStreamMonitor(), i && this.audioPubState.setState(X.AliRtcStateNoPublish), s && this.videoPubState.setState(X.AliRtcStateNoPublish), a && this.videoSmallPubState.setState(X.AliRtcStateNoPublish), c && this.screenPubState.setState(X.AliRtcStateNoPublish), this._isPublishing = !1, this.traceId = "", this.clearStream();
10921
+ yield this.rtsManager.unpublish(), this.streamTracks = [], this.stopStreamMonitor(), i && this.audioPubState.setState(X.AliRtcStateNoPublish), s && this.videoPubState.setState(X.AliRtcStateNoPublish), a && this.videoSmallPubState.setState(X.AliRtcStateNoPublish), c && this.screenPubState.setState(X.AliRtcStateNoPublish), this.traceId = "", this.clearStream();
10928
10922
  }
10929
10923
  return this.dc && (this.rtsManager.publishStopDataChannel(this.url, this.dc), this.dataPubState.setState(X.AliRtcStateNoPublish), this.dc = void 0), this.slsReporter.reportUnpublish(this.callId || "", e, 0, ""), t;
10930
10924
  } catch (i) {
10931
- throw V.fromError(i, U.ERR_INNER, "unpublish failed");
10925
+ throw V.fromError(i, H.ERR_INNER, "unpublish failed");
10932
10926
  }
10933
10927
  });
10934
10928
  }
@@ -10955,7 +10949,7 @@ const ge = (lt = class extends An {
10955
10949
  backgroundMode: !1,
10956
10950
  accompanyPlaying: !1
10957
10951
  };
10958
- return e.cameraOpen = this.hasCamera, e.micOpen = this.hasMicrophone, e.screenShare = this.hasScreenShare, e.audioDisable = !((t = this.streamManager.cameraStreamInfo.originAudioTrack) != null && t.enabled), e.videoDisable = !((i = this.streamManager.cameraStreamInfo.originVideoTrack) != null && i.enabled), e.screenDisable = !this.hasScreenShare || !((a = (s = this.streamManager.screenStreamInfo) == null ? void 0 : s.originVideoTrack) != null && a.enabled), Cn.getCurrentStatus(e);
10952
+ return e.cameraOpen = this.hasCameraTrackInMS, e.videoDisable = this.hasCamera && !((t = this.streamManager.cameraStreamInfo.originVideoTrack) != null && t.enabled), e.micOpen = this.hasAudioTrackInMS, e.audioDisable = this.hasMicrophone && !((i = this.streamManager.cameraStreamInfo.originAudioTrack) != null && i.enabled), e.screenShare = this.hasScreenTrackInMS, e.screenDisable = this.hasScreenShare && !((a = (s = this.streamManager.screenStreamInfo) == null ? void 0 : s.originVideoTrack) != null && a.enabled), Cn.getCurrentStatus(e);
10959
10953
  }
10960
10954
  resetPreviewElements() {
10961
10955
  this.previewElements.forEach((e) => {
@@ -11086,9 +11080,9 @@ const ge = (lt = class extends An {
11086
11080
  sendDataChannelMessage(e) {
11087
11081
  var s;
11088
11082
  if (!((s = this.parameter.data) != null && s.enablePubDataChannel))
11089
- throw new V(U.ERR_INNER, "data channel publish is not enabled");
11083
+ throw new V(H.ERR_INNER, "data channel publish is not enabled");
11090
11084
  if (!this.dc)
11091
- throw new V(U.ERR_INNER, "data channel is not ready");
11085
+ throw new V(H.ERR_INNER, "data channel is not ready");
11092
11086
  const t = e.toBuffer(), i = ic(t, 1156);
11093
11087
  i.forEach((a, c) => {
11094
11088
  const o = new Pi(
@@ -11147,10 +11141,10 @@ me([
11147
11141
  D()
11148
11142
  ], ge.prototype, "clear", 1);
11149
11143
  me([
11150
- D(H)
11144
+ D(U)
11151
11145
  ], ge.prototype, "startDefaultCamera", 1);
11152
11146
  me([
11153
- D(H)
11147
+ D(U)
11154
11148
  ], ge.prototype, "startDefaultAudio", 1);
11155
11149
  me([
11156
11150
  D()
@@ -11180,13 +11174,13 @@ me([
11180
11174
  D()
11181
11175
  ], ge.prototype, "stopLocalStream", 1);
11182
11176
  me([
11183
- D(H)
11177
+ D(U)
11184
11178
  ], ge.prototype, "startPublish", 1);
11185
11179
  me([
11186
11180
  D()
11187
11181
  ], ge.prototype, "updateStreams", 1);
11188
11182
  me([
11189
- D(H)
11183
+ D(U)
11190
11184
  ], ge.prototype, "publishUpdate", 1);
11191
11185
  me([
11192
11186
  D(([r]) => [r])
@@ -11201,7 +11195,7 @@ me([
11201
11195
  D(([r, n]) => [JSON.stringify(n)])
11202
11196
  ], ge.prototype, "publishReplace", 1);
11203
11197
  me([
11204
- D(H)
11198
+ D(U)
11205
11199
  ], ge.prototype, "publishDeleteTracks", 1);
11206
11200
  me([
11207
11201
  D()
@@ -11228,7 +11222,7 @@ const oc = (r) => {
11228
11222
  }), cc = (r) => {
11229
11223
  const { audio: n, video: e, screen: t } = r;
11230
11224
  if (e && t)
11231
- throw new V(U.ERR_INNER, "create stream error, cannot create video && screen together");
11225
+ throw new V(H.ERR_INNER, "create stream error, cannot create video && screen together");
11232
11226
  return !(!e && !n && !t);
11233
11227
  }, uc = (r) => r === T.Audio || r === Gr.Audio, hc = (r) => r === T.VideoLarge || r === Gr.VideoLarge, dc = (r) => r === T.VideoSmall, lc = (r) => r === T.Screen, fc = (r) => r === T.Data;
11234
11228
  var pc = Object.defineProperty, gc = Object.getOwnPropertyDescriptor, mc = (r, n, e, t) => {
@@ -11654,7 +11648,7 @@ const Re = (Me = class extends An {
11654
11648
  ), this.emit("remoteDataChannelMessage", this.uid, i));
11655
11649
  });
11656
11650
  p(this, "onDataChannelError", (e) => {
11657
- this.emit("occurError", V.fromError(e, U.ERR_SDK_SUBSCRIBE_DATA_ERROR));
11651
+ this.emit("occurError", V.fromError(e, H.ERR_SDK_SUBSCRIBE_DATA_ERROR));
11658
11652
  });
11659
11653
  p(this, "dataChannelConnected", (e) => {
11660
11654
  e && (this.dc = e, this.dc.datachannel && (this.dc.datachannel.binaryType = "arraybuffer"), this.dc.off("message", this.onDataChannelMessage), this.dc.off("error", this.onDataChannelError), this.dc.on("message", this.onDataChannelMessage), this.dc.on("error", this.onDataChannelError));
@@ -11795,7 +11789,7 @@ const Re = (Me = class extends An {
11795
11789
  setViewConfig(e, t) {
11796
11790
  if (t !== se.AliRtcVideoTrackScreen && t !== se.AliRtcVideoTrackCamera)
11797
11791
  throw new V(
11798
- U.ERR_INVALID_ARGUMENTS,
11792
+ H.ERR_INVALID_ARGUMENTS,
11799
11793
  "track is not AliRtcVideoTrackScreen or AliRtcVideoTrackCamera"
11800
11794
  );
11801
11795
  e ? zr(e).forEach((s) => {
@@ -11888,8 +11882,8 @@ const Re = (Me = class extends An {
11888
11882
  } catch (g) {
11889
11883
  const d = (/* @__PURE__ */ new Date()).getTime() - s;
11890
11884
  e.audio && this.audioSubState.setState(ue.AliRtcStateNoSubscribe), e.video && this.videoSubState.setState(ue.AliRtcStateNoSubscribe), e.screen && this.screenSubState.setState(ue.AliRtcStateNoSubscribe), g && (g.message = `user(${this.uid}) subscribe error, ${(g == null ? void 0 : g.message) || ""}`);
11891
- let f = U.ERR_INNER;
11892
- e.audio && (f = U.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === T.VideoSmall ? f = U.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = U.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = U.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
11885
+ let f = H.ERR_INNER;
11886
+ e.audio && (f = H.ERR_SDK_SUBSCRIBE_AUDIO_STREAM_FAILED), e.video && (e.vMsid === T.VideoSmall ? f = H.ERR_SDK_SUBSCRIBE_DUAL_STREAM_FAILED : f = H.ERR_SDK_SUBSCRIBE_VIDEO_STREAM_FAILED), e.screen && (f = H.ERR_SDK_SUBSCRIBE_SCREEN_SHARE_FAILED), this.slsReporter.reportSubscribe(
11893
11887
  ((h = this.localUser) == null ? void 0 : h.callId) || "",
11894
11888
  this.callId,
11895
11889
  !!e.video && e.vMsid === T.VideoLarge,
@@ -11949,7 +11943,7 @@ const Re = (Me = class extends An {
11949
11943
  vMsid: e.vMsid
11950
11944
  }), o;
11951
11945
  } catch (t) {
11952
- throw V.fromError(t, U.ERR_INNER, "subscribe delete failed");
11946
+ throw V.fromError(t, H.ERR_INNER, "subscribe delete failed");
11953
11947
  }
11954
11948
  });
11955
11949
  }
@@ -12011,7 +12005,7 @@ const Re = (Me = class extends An {
12011
12005
  return this.callId = "", u;
12012
12006
  } catch (u) {
12013
12007
  if (((o = (c = (a = (s = u == null ? void 0 : u.extraInfo) == null ? void 0 : s.parsedData) == null ? void 0 : a.streams) == null ? void 0 : c[0]) == null ? void 0 : o.res_code) !== 404)
12014
- throw V.fromError(u, U.ERR_INNER, "subscribe stop failed");
12008
+ throw V.fromError(u, H.ERR_INNER, "subscribe stop failed");
12015
12009
  }
12016
12010
  });
12017
12011
  }
@@ -12061,7 +12055,7 @@ const Re = (Me = class extends An {
12061
12055
  } else
12062
12056
  throw new Error("no dc founded");
12063
12057
  }).catch((e) => {
12064
- const t = V.fromError(e, U.ERR_INNER, "subscribe data failed");
12058
+ const t = V.fromError(e, H.ERR_INNER, "subscribe data failed");
12065
12059
  this.emit("remoteSubscribeError", t), this.dataSubState.setState(ue.AliRtcStateNoSubscribe);
12066
12060
  }));
12067
12061
  }
@@ -12103,36 +12097,36 @@ const Re = (Me = class extends An {
12103
12097
  };
12104
12098
  }
12105
12099
  updateSubscribe(e) {
12106
- var a, c, o, u, h, g, d, f, m, l, S, v, x, b, E, _, A;
12100
+ var a, c, o, u, h, g, d, f, m, l, S, v, x, b, E, y, A;
12107
12101
  const t = Date.now(), i = {}, s = {};
12108
- if (this.wantSubAudio && !this.isAudioSubscribing && ((a = this.streamInfo) != null && a.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || T.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || T.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === De.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((g = this.streamInfo) != null && g.hasVideoSmall) ? (i.video = !0, i.vMsid = T.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === De.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || T.VideoLarge), this.defaultVideoStreamType === De.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = T.VideoLarge) : this.defaultVideoStreamType === De.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = T.VideoSmall)) : (!this.wantSubVideo || !((m = this.streamInfo) != null && m.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? T.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || T.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((E = this.parameter.data) != null && E.enableSubDataChannel) || !((_ = this.streamInfo) != null && _.hasData)) && this.isDataSubscribing && (s.data = !0), (i.audio || i.video || i.screen || i.data) && (this.createCallId(), this.subscribe(i, e, t)), (s.audio || s.video || s.screen) && this.subscribeDeleteTracks(s), e === he.Reconnect) {
12102
+ if (this.wantSubAudio && !this.isAudioSubscribing && ((a = this.streamInfo) != null && a.hasAudio) ? (i.audio = !0, i.aMsid = ((c = this.streamInfo.getAudioInfo()) == null ? void 0 : c.msid) || T.Audio) : (!this.wantSubAudio || !((o = this.streamInfo) != null && o.hasAudio)) && this.isAudioSubscribing && (s.audio = !0, s.aMsid = ((u = this.streamInfo.getAudioInfo()) == null ? void 0 : u.msid) || T.Audio), this.wantSubVideo && ((h = this.streamInfo) != null && h.hasVideo) ? (this.defaultVideoStreamType === De.AliRtcVideoStreamTypeLow && !this.isVideoSmallSubscribing && ((g = this.streamInfo) != null && g.hasVideoSmall) ? (i.video = !0, i.vMsid = T.VideoSmall) : !this.isVideoLargeSubscribing && ((d = this.streamInfo) != null && d.hasVideoLarge) && !(this.defaultVideoStreamType === De.AliRtcVideoStreamTypeLow && this.isVideoSmallSubscribing) && (i.video = !0, i.vMsid = ((f = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : f.msid) || T.VideoLarge), this.defaultVideoStreamType === De.AliRtcVideoStreamTypeLow && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && this.streamInfo.hasVideoSmall ? (s.video = !0, s.vMsid = T.VideoLarge) : this.defaultVideoStreamType === De.AliRtcVideoStreamTypeHigh && this.isVideoLargeSubscribing && this.isVideoSmallSubscribing && (s.video = !0, s.vMsid = T.VideoSmall)) : (!this.wantSubVideo || !((m = this.streamInfo) != null && m.hasVideo)) && this.isVideoSubscribing && (s.video = !0, s.vMsid = this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? T.VideoSmall : ((l = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : l.msid) || T.VideoLarge), this.wantSubScreen && !this.isScreenSubscribing && ((S = this.streamInfo) != null && S.hasScreen) ? i.screen = !0 : (!this.wantSubScreen || !((v = this.streamInfo) != null && v.hasScreen)) && this.isScreenSubscribing && (s.screen = !0), (x = this.parameter.data) != null && x.enableSubDataChannel && !this.isDataSubscribing && ((b = this.streamInfo) != null && b.hasData) ? i.data = !0 : (!((E = this.parameter.data) != null && E.enableSubDataChannel) || !((y = this.streamInfo) != null && y.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 === he.Reconnect) {
12109
12103
  if (O.event(`[${Me.logName}]`, "reconnect, try to resume"), this.streamInfo.hasData && !i.data) {
12110
- const y = this.rtsManager.getDatachannelByMsid({
12104
+ const _ = this.rtsManager.getDatachannelByMsid({
12111
12105
  url: this.streamUrl,
12112
12106
  msid: this.streamInfo.getDataInfo().msid || T.Data
12113
12107
  });
12114
- this.dataChannelConnected(y);
12108
+ this.dataChannelConnected(_);
12115
12109
  }
12116
12110
  if (this.streamInfo.hasAudio && !i.audio) {
12117
- const y = this.rtsManager.getStreamByMsid({
12111
+ const _ = this.rtsManager.getStreamByMsid({
12118
12112
  url: this.streamUrl,
12119
12113
  aMsid: this.streamInfo.getAudioInfo().msid || T.Audio
12120
12114
  });
12121
- y && y.audioTrack && (this.audioTrack = y.audioTrack, this.playAudio());
12115
+ _ && _.audioTrack && (this.audioTrack = _.audioTrack, this.playAudio());
12122
12116
  }
12123
12117
  if (this.streamInfo.hasVideo && !i.video) {
12124
- const y = this.rtsManager.getStreamByMsid({
12118
+ const _ = this.rtsManager.getStreamByMsid({
12125
12119
  url: this.streamUrl,
12126
12120
  vMsid: this.streamInfo.isVideoSmallSubscribed || this.streamInfo.isVideoSmallSubscribing ? T.VideoSmall : ((A = this.streamInfo.getVideoLargeInfo()) == null ? void 0 : A.msid) || T.VideoLarge
12127
12121
  });
12128
- y && y.mediaStream && (this.stream = y, this.playAll(!1));
12122
+ _ && _.mediaStream && (this.stream = _, this.playAll(!1));
12129
12123
  }
12130
12124
  if (this.streamInfo.hasScreen && !i.screen) {
12131
- const y = this.rtsManager.getStreamByMsid({
12125
+ const _ = this.rtsManager.getStreamByMsid({
12132
12126
  url: this.streamUrl,
12133
12127
  sMsid: this.streamInfo.getScreenInfo().msid || T.Screen
12134
12128
  });
12135
- y && y.mediaStream && (this.screenStream = y, this.playAll(!0));
12129
+ _ && _.mediaStream && (this.screenStream = _, this.playAll(!0));
12136
12130
  }
12137
12131
  }
12138
12132
  return {
@@ -12366,25 +12360,25 @@ Te([
12366
12360
  D()
12367
12361
  ], Re.prototype, "updateRemoteTracks", 1);
12368
12362
  Te([
12369
- D(H)
12363
+ D(U)
12370
12364
  ], Re.prototype, "subscribe", 1);
12371
12365
  Te([
12372
12366
  D()
12373
12367
  ], Re.prototype, "subscribeProxy", 1);
12374
12368
  Te([
12375
- D(H)
12369
+ D(U)
12376
12370
  ], Re.prototype, "subscribeDeleteProxy", 1);
12377
12371
  Te([
12378
12372
  D()
12379
12373
  ], Re.prototype, "restore", 1);
12380
12374
  Te([
12381
- D(H)
12375
+ D(U)
12382
12376
  ], Re.prototype, "resumeAudio", 1);
12383
12377
  Te([
12384
- D(H)
12378
+ D(U)
12385
12379
  ], Re.prototype, "stopSubscribe", 1);
12386
12380
  Te([
12387
- D(H)
12381
+ D(U)
12388
12382
  ], Re.prototype, "doStopSubscribe", 1);
12389
12383
  Te([
12390
12384
  D()
@@ -12412,21 +12406,21 @@ Te([
12412
12406
  D()
12413
12407
  ], Re.prototype, "stopPlayAll", 1);
12414
12408
  let Ec = Re;
12415
- var _t = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(_t || {});
12416
- class _c extends Ae {
12409
+ var yt = /* @__PURE__ */ ((r) => (r[r.AliRtcPluginErrorCodeSuccess = 0] = "AliRtcPluginErrorCodeSuccess", r[r.AliRtcPluginErrorCodeFailed = -1] = "AliRtcPluginErrorCodeFailed", r[r.AliRtcPluginErrorNoFindPlugin = -2] = "AliRtcPluginErrorNoFindPlugin", r[r.AliRtcPluginErrorParameterError = -3] = "AliRtcPluginErrorParameterError", r[r.AliRtcPluginErrorLoadError = -4] = "AliRtcPluginErrorLoadError", r[r.AliRtcPluginErrorCreateError = -5] = "AliRtcPluginErrorCreateError", r[r.AliRtcPluginErrorInitError = -6] = "AliRtcPluginErrorInitError", r[r.AliRtcPluginErrorInitTokenError = -7] = "AliRtcPluginErrorInitTokenError", r))(yt || {});
12410
+ class yc extends Ae {
12417
12411
  constructor() {
12418
12412
  super(...arguments);
12419
12413
  p(this, "plugins", /* @__PURE__ */ new Map());
12420
12414
  }
12421
12415
  add(e, t) {
12422
12416
  if (this.plugins.has(e.name))
12423
- throw new V(_t.AliRtcPluginErrorCreateError, `Plugin ${e.name} already exists`);
12417
+ throw new V(yt.AliRtcPluginErrorCreateError, `Plugin ${e.name} already exists`);
12424
12418
  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));
12425
12419
  }
12426
12420
  remove(e) {
12427
12421
  const t = this.plugins.get(e);
12428
12422
  if (!t)
12429
- throw new V(_t.AliRtcPluginErrorNoFindPlugin, `Plugin ${e} not founded`);
12423
+ throw new V(yt.AliRtcPluginErrorNoFindPlugin, `Plugin ${e} not founded`);
12430
12424
  this.plugins.delete(e), t.removeAllListeners(), this.emit("removed", t);
12431
12425
  }
12432
12426
  removeAll() {
@@ -12444,17 +12438,17 @@ class _c extends Ae {
12444
12438
  return Array.from(this.plugins.values());
12445
12439
  }
12446
12440
  }
12447
- var yc = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, Ee = (r, n, e, t) => {
12441
+ var _c = Object.defineProperty, Ac = Object.getOwnPropertyDescriptor, Ee = (r, n, e, t) => {
12448
12442
  for (var i = t > 1 ? void 0 : t ? Ac(n, e) : n, s = r.length - 1, a; s >= 0; s--)
12449
12443
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
12450
- return t && i && yc(n, e, i), i;
12444
+ return t && i && _c(n, e, i), i;
12451
12445
  };
12452
12446
  const ki = ([r]) => {
12453
12447
  const { remoteUser: n, options: e } = r;
12454
12448
  return [`user(${n.userId})`, e];
12455
12449
  }, Ya = 5, Za = 17, Qa = 5e3;
12456
- var ye;
12457
- const Se = (ye = class extends Ae {
12450
+ var _e;
12451
+ const Se = (_e = class extends Ae {
12458
12452
  constructor(e, t, i) {
12459
12453
  super();
12460
12454
  p(this, "rts");
@@ -12484,31 +12478,31 @@ const Se = (ye = class extends Ae {
12484
12478
  addRTSListener() {
12485
12479
  this.rts.on("connectStatusChange", (e) => {
12486
12480
  var t, i, s, a;
12487
- if (O.event(`[${ye.logName}]`, "rts connectStatusChange to:", e.status), e.status === Li.CONNECT_STATUS_DISCONNECTED)
12481
+ if (O.event(`[${_e.logName}]`, "rts connectStatusChange to:", e.status), e.status === Li.CONNECT_STATUS_DISCONNECTED)
12488
12482
  this.dcReject && this.dcReject(), this.setConnected(!1), this.slsReporter.reportWarning("rts disconnected"), this.emit("disconnected");
12489
12483
  else if (e.status === Li.CONNECT_STATUS_RECONNECTING)
12490
12484
  this._rtsReconnecting = !0;
12491
12485
  else if (e.status === Li.CONNECT_STATUS_CONNECTED) {
12492
12486
  const c = (a = (s = (i = (t = this.rts.commonController) == null ? void 0 : t.peerCore) == null ? void 0 : i.getSignal()) == null ? void 0 : s.getDatachannelCore()) == null ? void 0 : a.readyState;
12493
- O.event(`[${ye.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList()), this.setConnected(!0);
12487
+ O.event(`[${_e.logName}]`, "dcReadyState:", c), c === "open" && this.dcResolve && this.dcResolve(!0), this._rtsReconnecting && this._rtsPeerConnectionType === "publish" && (this._publishingTracks = this.rts.getPublishTrackInfoList()), this.setConnected(!0);
12494
12488
  }
12495
12489
  }), this.rts.on("reconnectFinish", () => {
12496
- O.event(`[${ye.logName}]`, "rts reconnectFinish");
12490
+ O.event(`[${_e.logName}]`, "rts reconnectFinish");
12497
12491
  try {
12498
12492
  this.emit("connected", !0, this._rtsPeerConnectionType);
12499
12493
  } catch (e) {
12500
- O.error(`[${ye.logName}]`, "emit connected error:", e);
12494
+ O.error(`[${_e.logName}]`, "emit connected error:", e);
12501
12495
  }
12502
12496
  }), this.rts.on("datachannelStatusChange", (e) => {
12503
- O.event(`[${ye.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === _s.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === _s.DATACHANNEL_STATUS_CLOSE && (this.dcReject && this.dcReject(), this.dcConnectingPromise = new Promise((t, i) => {
12497
+ O.event(`[${_e.logName}]`, "rts datachannelStatusChange to:", e.status), e.status === ys.DATACHANNEL_STATUS_OPEN ? this.dcResolve && this.dcResolve(!0) : e.status === ys.DATACHANNEL_STATUS_CLOSE && (this.dcReject && this.dcReject(), this.dcConnectingPromise = new Promise((t, i) => {
12504
12498
  this.dcResolve = t, this.dcReject = i;
12505
12499
  }));
12506
12500
  }), this.rts.on("receivedSEI", (e) => {
12507
12501
  this.emit("seimessage", e.url, e.sei.payloadType, e.sei.data);
12508
12502
  }), this.rts.on("onError", (e) => {
12509
- O.event(`[${ye.logName}]`, "rts onError event:", e);
12503
+ O.event(`[${_e.logName}]`, "rts onError event:", e);
12510
12504
  }), this.rts.on("reconnect", (e) => {
12511
- O.event(`[${ye.logName}]`, "rts reconnect event:", e);
12505
+ O.event(`[${_e.logName}]`, "rts reconnect event:", e);
12512
12506
  });
12513
12507
  }
12514
12508
  /**
@@ -12552,7 +12546,7 @@ const Se = (ye = class extends Ae {
12552
12546
  }
12553
12547
  }
12554
12548
  clear() {
12555
- this.setConnected(!1);
12549
+ this.setConnected(!1), this._publishingTracks = [];
12556
12550
  try {
12557
12551
  this.rts.unpublish();
12558
12552
  } catch (e) {
@@ -12599,23 +12593,23 @@ const Se = (ye = class extends Ae {
12599
12593
  let o;
12600
12594
  const u = Date.now(), { publishStream: h, videoSmallStream: g, screenStream: d, vMsid: f } = yield this.localStreamManager.createHTTPPublishStream();
12601
12595
  if (!h)
12602
- return O.warn(`[${ye.logName}]`, "publishStream is null"), {
12596
+ return O.warn(`[${_e.logName}]`, "publishStream is null"), {
12603
12597
  traceId: "",
12604
12598
  l1ip: o
12605
12599
  };
12606
12600
  const m = this.getPubMsid(h, {
12607
12601
  vMsid: f
12608
12602
  });
12609
- this.encodedInsertableStreams && (m.encodedInsertableStreams = !0), m.answerSdpHook = (_) => {
12610
- const A = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(_);
12611
- return A != null && A[0] && (o = A[0]), _;
12603
+ this.encodedInsertableStreams && (m.encodedInsertableStreams = !0), m.answerSdpHook = (y) => {
12604
+ const A = /\d+\.\d+\.\d+\.\d+(?=\s+1106|\s+8000)/.exec(y);
12605
+ return A != null && A[0] && (o = A[0]), y;
12612
12606
  }, (E = (b = this.parameter) == null ? void 0 : b.net) != null && E.useTCP && (m.tcpOnly = !0), m.retryTimes = Za, m.retryInterval = Qa, this._rtsPeerConnectionType = "publish";
12613
12607
  let l = !h.hasVideo, S = f, v = "";
12614
12608
  this.startConnect();
12615
12609
  const x = Date.now();
12616
12610
  try {
12617
12611
  v = yield this.rts.publish(Ja(e), h, m);
12618
- } catch (_) {
12612
+ } catch (y) {
12619
12613
  this.setConnected(!1);
12620
12614
  const A = 2e3 - (Date.now() - x);
12621
12615
  throw A <= 0 ? this.emit("disconnected") : setTimeout(() => {
@@ -12628,13 +12622,13 @@ const Se = (ye = class extends Ae {
12628
12622
  h.hasVideo && f === T.VideoSmall,
12629
12623
  h.hasVideo && f === T.Screen,
12630
12624
  h.hasAudio,
12631
- (_ == null ? void 0 : _.errorCode) || -1,
12625
+ (y == null ? void 0 : y.errorCode) || -1,
12632
12626
  this.pcTraceId,
12633
12627
  "",
12634
12628
  x
12635
- ), V.fromRtsError(_);
12629
+ ), V.fromRtsError(y);
12636
12630
  }
12637
- O.event(`[${ye.logName}]`, "rts publish success", v), this.slsReporter.reportPublish(
12631
+ O.event(`[${_e.logName}]`, "rts publish success", v), this.slsReporter.reportPublish(
12638
12632
  i,
12639
12633
  e,
12640
12634
  t,
@@ -12660,7 +12654,7 @@ const Se = (ye = class extends Ae {
12660
12654
  Date.now()
12661
12655
  );
12662
12656
  try {
12663
- const _ = Date.now();
12657
+ const y = Date.now();
12664
12658
  return this._pcTraceId = v, this.setConnected(!0), this._publishingTracks = this.rts.getPublishTrackInfoList(), g && (yield this.publishAdd(
12665
12659
  e,
12666
12660
  g,
@@ -12681,7 +12675,7 @@ const Se = (ye = class extends Ae {
12681
12675
  i,
12682
12676
  t,
12683
12677
  x,
12684
- _,
12678
+ y,
12685
12679
  this._localJoinTime,
12686
12680
  l ? T.Audio : m.vMsid,
12687
12681
  v || "",
@@ -12691,8 +12685,8 @@ const Se = (ye = class extends Ae {
12691
12685
  traceId: v,
12692
12686
  l1ip: o
12693
12687
  };
12694
- } catch (_) {
12695
- throw this.setConnected(!1), V.fromError(_);
12688
+ } catch (y) {
12689
+ throw this.setConnected(!1), V.fromError(y);
12696
12690
  }
12697
12691
  });
12698
12692
  }
@@ -12719,26 +12713,26 @@ const Se = (ye = class extends Ae {
12719
12713
  }
12720
12714
  publishAdd(u, h, g, d) {
12721
12715
  return w(this, arguments, function* (e, t, i, s, a = !1, c = !1, o = nt.MANUAL) {
12722
- var l, S, v, x, b, E, _, A;
12716
+ var l, S, v, x, b, E, y, A;
12723
12717
  yield this.dcConnectingPromise;
12724
12718
  const f = Date.now(), m = this.getPubMsid(t, s);
12725
12719
  try {
12726
- const y = yield qa(
12720
+ const _ = yield qa(
12727
12721
  (R) => w(this, null, function* () {
12728
- return R > 0 && O.event(`[${ye.logName}]`, `publishAdd retry times: ${R}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
12722
+ return R > 0 && O.event(`[${_e.logName}]`, `publishAdd retry times: ${R}`), this.isConnected ? (yield this.dcConnectingPromise, this.rts.publishAdd([
12729
12723
  J({
12730
12724
  url: e,
12731
12725
  stream: t,
12732
12726
  updateSourceStream: !1
12733
12727
  }, m)
12734
- ])) : Promise.reject(new V(U.ERR_INNER, "rts not connected"));
12728
+ ])) : Promise.reject(new V(H.ERR_INNER, "rts not connected"));
12735
12729
  }),
12736
12730
  Ya,
12737
12731
  0,
12738
12732
  (R) => (R == null ? void 0 : R.errorCode) === 15006
12739
12733
  );
12740
- if (y) {
12741
- const R = Date.now(), [M] = y;
12734
+ if (_) {
12735
+ const R = Date.now(), [M] = _;
12742
12736
  return this.slsReporter.reportPublish(
12743
12737
  !1,
12744
12738
  e,
@@ -12763,20 +12757,20 @@ const Se = (ye = class extends Ae {
12763
12757
  o
12764
12758
  ), M.traceId || "";
12765
12759
  }
12766
- } catch (y) {
12760
+ } catch (_) {
12767
12761
  throw this.slsReporter.reportPublish(
12768
12762
  !1,
12769
12763
  e,
12770
12764
  i,
12771
12765
  ((b = m.vMsid) == null ? void 0 : b[0]) === T.VideoLarge,
12772
12766
  ((E = m.vMsid) == null ? void 0 : E[0]) === T.VideoSmall,
12773
- ((_ = m.vMsid) == null ? void 0 : _[0]) === T.Screen,
12767
+ ((y = m.vMsid) == null ? void 0 : y[0]) === T.Screen,
12774
12768
  ((A = m.aMsid) == null ? void 0 : A[0]) === T.Audio,
12775
- (y == null ? void 0 : y.errorCode) || -1,
12769
+ (_ == null ? void 0 : _.errorCode) || -1,
12776
12770
  this.pcTraceId,
12777
12771
  "",
12778
12772
  f
12779
- ), y != null && y.errorCode ? V.fromRtsError(y) : V.fromError(y);
12773
+ ), _ != null && _.errorCode ? V.fromRtsError(_) : V.fromError(_);
12780
12774
  }
12781
12775
  return "";
12782
12776
  });
@@ -12788,7 +12782,7 @@ const Se = (ye = class extends Ae {
12788
12782
  const i = (h = (u = this.publishingTracks) == null ? void 0 : u.find(({ msid: v }) => v === T.Audio)) == null ? void 0 : h.msid, s = (d = (g = this.publishingTracks) == null ? void 0 : g.find(({ msid: v }) => v === T.VideoLarge)) == null ? void 0 : d.msid, a = (m = (f = this.publishingTracks) == null ? void 0 : f.find(({ msid: v }) => v === T.Screen)) == null ? void 0 : m.msid, c = [];
12789
12783
  t.screen && a ? c.push(a) : t.video && c.push(t.vMsid || s);
12790
12784
  const o = [];
12791
- t.audio && i && o.push(i), O.event(ye.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
12785
+ t.audio && i && o.push(i), O.event(_e.logName, "publishDelete", { streamUrl: e, aMsid: o, vMsid: c });
12792
12786
  try {
12793
12787
  const [v] = (yield this.rts.publishDeleteTracks([
12794
12788
  {
@@ -12797,7 +12791,7 @@ const Se = (ye = class extends Ae {
12797
12791
  vMsid: c
12798
12792
  }
12799
12793
  ])) || [];
12800
- return O.event(ye.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
12794
+ return O.event(_e.logName, "publishDelete", { result: v }), v && this.updatePublishingTracks(v.trackInfoList), ((S = (l = v == null ? void 0 : v.trackInfoList) == null ? void 0 : l[0]) == null ? void 0 : S.trackId) || "";
12801
12795
  } catch (v) {
12802
12796
  throw V.fromRtsError(v);
12803
12797
  }
@@ -12858,7 +12852,7 @@ const Se = (ye = class extends Ae {
12858
12852
  }
12859
12853
  unpublish() {
12860
12854
  return w(this, null, function* () {
12861
- yield this.rts.unpublish(), this.connecting = !1, this.connected = !1;
12855
+ yield this.rts.unpublish(), this._publishingTracks = [], this.connecting = !1, this.connected = !1;
12862
12856
  });
12863
12857
  }
12864
12858
  /**
@@ -12914,7 +12908,7 @@ const Se = (ye = class extends Ae {
12914
12908
  try {
12915
12909
  return (yield qa(
12916
12910
  (g) => w(this, null, function* () {
12917
- return yield this.dcConnectingPromise, g > 0 && O.event(`[${ye.logName}]`, `subscribeAdd retry times: ${g}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12911
+ return yield this.dcConnectingPromise, g > 0 && O.event(`[${_e.logName}]`, `subscribeAdd retry times: ${g}`), this.isConnected ? this.rts.subscribeAdd([s]) : Promise.reject();
12918
12912
  }),
12919
12913
  Ya,
12920
12914
  0,
@@ -13072,7 +13066,7 @@ const Se = (ye = class extends Ae {
13072
13066
  const { options: o, remoteUser: u } = e;
13073
13067
  if (o.video && o.screen)
13074
13068
  throw new V(
13075
- U.ERR_INNER,
13069
+ H.ERR_INNER,
13076
13070
  "subscribe error, video and screen cannot be subscribed at the same time"
13077
13071
  );
13078
13072
  this.connecting && (yield this.connectingPromise);
@@ -13082,21 +13076,21 @@ const Se = (ye = class extends Ae {
13082
13076
  let f = T.VideoLarge, m = o.video || o.screen, l = o.audio;
13083
13077
  o.video && o.vMsid ? f = o.vMsid : o.screen && (f = T.Screen);
13084
13078
  let S = 0, v = 0, x = 0;
13085
- const E = ((_, A) => {
13086
- let y = 0;
13079
+ const E = ((y, A) => {
13080
+ let _ = 0;
13087
13081
  const R = () => {
13088
13082
  let M;
13089
13083
  return l && !S && (M = this.rts.getSubscribeAudioStats(u.streamUrl).then((C) => {
13090
13084
  if (C.packetsReceived > 0)
13091
13085
  S = Date.now();
13092
13086
  else if (!m)
13093
- return y < _ ? (y++, new Promise((I) => setTimeout(() => I(R()), A))) : !1;
13087
+ return _ < y ? (_++, new Promise((I) => setTimeout(() => I(R()), A))) : !1;
13094
13088
  return !0;
13095
13089
  })), m && !x && (M = this.rts.getSubscribeVideoStats(u.streamUrl, f).then((C) => {
13096
13090
  if (C.packetsReceived > 0 && (v = Date.now()), C.framesDecoded > 0)
13097
13091
  x = Date.now();
13098
13092
  else
13099
- return y < _ ? (y++, new Promise((I) => setTimeout(() => I(R()), A))) : (O.event(`[${ye.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
13093
+ return _ < y ? (_++, new Promise((I) => setTimeout(() => I(R()), A))) : (O.event(`[${_e.logName}]`, u.userId, "尝试获取首帧数据失败"), !1);
13100
13094
  return !0;
13101
13095
  })), Promise.resolve(M);
13102
13096
  };
@@ -13189,36 +13183,36 @@ const Se = (ye = class extends Ae {
13189
13183
  }, /**
13190
13184
  * @ignore
13191
13185
  */
13192
- p(ye, "logName", "RtsManager"), ye);
13186
+ p(_e, "logName", "RtsManager"), _e);
13193
13187
  Ee([
13194
- D(H)
13188
+ D(U)
13195
13189
  ], Se.prototype, "startConnect", 1);
13196
13190
  Ee([
13197
13191
  D()
13198
13192
  ], Se.prototype, "updatePublishingTracks", 1);
13199
13193
  Ee([
13200
- D(H, H)
13194
+ D(U, U)
13201
13195
  ], Se.prototype, "httpPublish", 1);
13202
13196
  Ee([
13203
- D(H, H)
13197
+ D(U, U)
13204
13198
  ], Se.prototype, "waitPublishSender", 1);
13205
13199
  Ee([
13206
- D(([r, n, e]) => [r, JSON.stringify(e)], H)
13200
+ D(([r, n, e]) => [r, JSON.stringify(e)], U)
13207
13201
  ], Se.prototype, "publishAdd", 1);
13208
13202
  Ee([
13209
- D(H, H)
13203
+ D(U, U)
13210
13204
  ], Se.prototype, "publishDelete", 1);
13211
13205
  Ee([
13212
13206
  D(([r, n, e]) => [r, JSON.stringify(e)])
13213
13207
  ], Se.prototype, "publishReplace", 1);
13214
13208
  Ee([
13215
- D(H)
13209
+ D(U)
13216
13210
  ], Se.prototype, "publishStop", 1);
13217
13211
  Ee([
13218
- D(H)
13212
+ D(U)
13219
13213
  ], Se.prototype, "publishAddDataChannel", 1);
13220
13214
  Ee([
13221
- D(H)
13215
+ D(U)
13222
13216
  ], Se.prototype, "publishStopDataChannel", 1);
13223
13217
  Ee([
13224
13218
  D()
@@ -13233,16 +13227,16 @@ Ee([
13233
13227
  D(ki)
13234
13228
  ], Se.prototype, "subscribeDelete", 1);
13235
13229
  Ee([
13236
- D(H)
13230
+ D(U)
13237
13231
  ], Se.prototype, "subscibeStop", 1);
13238
13232
  Ee([
13239
- D(H)
13233
+ D(U)
13240
13234
  ], Se.prototype, "subscribeAddDataChannel", 1);
13241
13235
  Ee([
13242
- D(H)
13236
+ D(U)
13243
13237
  ], Se.prototype, "subscribeStopDatachannel", 1);
13244
13238
  Ee([
13245
- D(H)
13239
+ D(U)
13246
13240
  ], Se.prototype, "publish", 1);
13247
13241
  Ee([
13248
13242
  D(ki)
@@ -13518,8 +13512,8 @@ var Rc = Object.defineProperty, Ic = Object.getOwnPropertyDescriptor, st = (r, n
13518
13512
  for (var i = t > 1 ? void 0 : t ? Ic(n, e) : n, s = r.length - 1, a; s >= 0; s--)
13519
13513
  (a = r[s]) && (i = (t ? a(n, e, i) : a(i)) || i);
13520
13514
  return t && i && Rc(n, e, i), i;
13521
- }, yt;
13522
- const Qe = (yt = class extends Ae {
13515
+ }, _t;
13516
+ const Qe = (_t = class extends Ae {
13523
13517
  // 设置是否发布屏幕流
13524
13518
  constructor(e, t) {
13525
13519
  super();
@@ -13542,14 +13536,14 @@ const Qe = (yt = class extends Ae {
13542
13536
  p(this, "_publishLocalScreenStreamEnabled", !0);
13543
13537
  this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
13544
13538
  const i = (s) => w(this, null, function* () {
13545
- if (O.info(`[${yt.logName}]`, "plugin added", s.name), !s.isSupported("7.0.0-beta.2")) {
13539
+ if (O.info(`[${_t.logName}]`, "plugin added", s.name), !s.isSupported("7.0.0-beta.3")) {
13546
13540
  console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
13547
13541
  return;
13548
13542
  }
13549
13543
  try {
13550
13544
  yield s.init();
13551
13545
  } catch (a) {
13552
- s.emit("error", V.fromError(a, _t.AliRtcPluginErrorInitError));
13546
+ s.emit("error", V.fromError(a, yt.AliRtcPluginErrorInitError));
13553
13547
  }
13554
13548
  s.streamType === be.AliRtcSdkStreamTypeCapture && (this.cameraStreamInfo.addPlugin(s), yield this.cameraStreamInfo.process(this.streamInfos)), s.streamType === be.AliRtcSdkStreamTypeScreen && (this.screenStreamInfo.addPlugin(s), yield this.screenStreamInfo.process(this.streamInfos)), this.emit("publishupdate");
13555
13549
  });
@@ -13667,7 +13661,7 @@ const Qe = (yt = class extends Ae {
13667
13661
  custom: !!i,
13668
13662
  mediaStream: i,
13669
13663
  skipProfile: !0
13670
- }), O.info(`[${yt.logName}]`, "createLocalStream", {
13664
+ }), O.info(`[${_t.logName}]`, "createLocalStream", {
13671
13665
  audio: o,
13672
13666
  video: c,
13673
13667
  screen: t,
@@ -13714,7 +13708,7 @@ const Qe = (yt = class extends Ae {
13714
13708
  const c = this.publishStreams;
13715
13709
  try {
13716
13710
  if (!c.audio && !c.video && !c.videoSmall && !c.screen)
13717
- throw O.error(`[${yt.logName}]`, "no tracks founded"), new V(U.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13711
+ throw O.error(`[${_t.logName}]`, "no tracks founded"), new V(H.ERR_SDK_PUBLISH_INVAILD, "no tracks founded");
13718
13712
  const d = new MediaStream();
13719
13713
  (o = c.audio) != null && o.audioTrack && d.addTrack(c.audio.audioTrack), (u = c.video) != null && u.videoTrack ? (d.addTrack(c.video.videoTrack), s = c.videoSmall, a = c.screen) : (h = c.screen) != null && h.videoTrack && (i = T.Screen, d.addTrack((g = c.screen) == null ? void 0 : g.videoTrack), t = !0), e = yield Tn(d), t ? (this.screenStreamInfo.cloneVideoProfile(e), this.publishingScreenVideoStream = e) : (this.cameraStreamInfo.cloneVideoProfile(e), this.publishingCameraVideoStream = e);
13720
13714
  } catch (d) {
@@ -13758,7 +13752,7 @@ const Qe = (yt = class extends Ae {
13758
13752
  }, /**
13759
13753
  * @ignore
13760
13754
  */
13761
- p(yt, "logName", "LocalStreamManager"), yt);
13755
+ p(_t, "logName", "LocalStreamManager"), _t);
13762
13756
  st([
13763
13757
  D(([r]) => {
13764
13758
  const { audio: n, video: e, screen: t, custom: i, skipProfile: s, videoProfile: a, screenProfile: c } = r;
@@ -13776,7 +13770,7 @@ st([
13776
13770
  })
13777
13771
  ], Qe.prototype, "createLocalStream", 1);
13778
13772
  st([
13779
- D(H)
13773
+ D(U)
13780
13774
  ], Qe.prototype, "stopLocalStream", 1);
13781
13775
  st([
13782
13776
  D()
@@ -13785,25 +13779,25 @@ st([
13785
13779
  D()
13786
13780
  ], Qe.prototype, "stop", 1);
13787
13781
  st([
13788
- D(H)
13782
+ D(U)
13789
13783
  ], Qe.prototype, "setVideoProfile", 1);
13790
13784
  st([
13791
- D(H)
13785
+ D(U)
13792
13786
  ], Qe.prototype, "setVideoContentHint", 1);
13793
13787
  st([
13794
- D(H)
13788
+ D(U)
13795
13789
  ], Qe.prototype, "setAudioProfile", 1);
13796
13790
  st([
13797
- D(H)
13791
+ D(U)
13798
13792
  ], Qe.prototype, "setScreenProfile", 1);
13799
13793
  st([
13800
- D(H)
13794
+ D(U)
13801
13795
  ], Qe.prototype, "setScreenContentHint", 1);
13802
13796
  st([
13803
- D(H)
13797
+ D(U)
13804
13798
  ], Qe.prototype, "setCameraVideoConstraints", 1);
13805
13799
  st([
13806
- D(H)
13800
+ D(U)
13807
13801
  ], Qe.prototype, "setMicAudioConstraints", 1);
13808
13802
  let wc = Qe;
13809
13803
  class Dc extends Xt {
@@ -14587,7 +14581,7 @@ class Pe extends Ae {
14587
14581
  p(this, "parameter", {});
14588
14582
  p(this, "dcReadyHelper");
14589
14583
  const { signalingManager: t, slsReporter: i } = e;
14590
- this.signalingManager = t, this.addSignalingManagerListener(), this.slsReporter = i, this.pluginManager = new _c(), this.localStreamManager = new wc(this.pluginManager, this.slsReporter), this.rtsManager = new Cc(this.localStreamManager, this.slsReporter, this.parameter), this.self = new nc({
14584
+ this.signalingManager = t, this.addSignalingManagerListener(), this.slsReporter = i, this.pluginManager = new yc(), this.localStreamManager = new wc(this.pluginManager, this.slsReporter), this.rtsManager = new Cc(this.localStreamManager, this.slsReporter, this.parameter), this.self = new nc({
14591
14585
  rtsManager: this.rtsManager,
14592
14586
  localStreamManager: this.localStreamManager,
14593
14587
  slsReporter: this.slsReporter,
@@ -14939,19 +14933,19 @@ class Pe extends Ae {
14939
14933
  updateAudioWant(e, t) {
14940
14934
  const i = this.userMap[e];
14941
14935
  if (!i)
14942
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14936
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
14943
14937
  i.setWantSubAudio(t), t ? i.updateSubscribe(he.User) : i.stopSubscribe({ audio: !0 });
14944
14938
  }
14945
14939
  updateVideoWant(e, t) {
14946
14940
  const i = this.userMap[e];
14947
14941
  if (!i)
14948
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14942
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
14949
14943
  i.setWantSubVideo(t), t ? i.updateSubscribe(he.User) : i.stopSubscribe({ video: !0 });
14950
14944
  }
14951
14945
  updateScreenWant(e, t) {
14952
14946
  const i = this.userMap[e];
14953
14947
  if (!i)
14954
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
14948
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
14955
14949
  i.setWantSubScreen(t), t ? i.updateSubscribe(he.User) : i.stopSubscribe({ screen: !0 });
14956
14950
  }
14957
14951
  stopIndication() {
@@ -15029,7 +15023,7 @@ je([
15029
15023
  D()
15030
15024
  ], Pe.prototype, "clear", 1);
15031
15025
  je([
15032
- D(H)
15026
+ D(U)
15033
15027
  ], Pe.prototype, "addUser", 1);
15034
15028
  je([
15035
15029
  D()
@@ -15038,13 +15032,13 @@ je([
15038
15032
  D()
15039
15033
  ], Pe.prototype, "updateUsers", 1);
15040
15034
  je([
15041
- D(H)
15035
+ D(U)
15042
15036
  ], Pe.prototype, "updateAudioWant", 1);
15043
15037
  je([
15044
- D(H)
15038
+ D(U)
15045
15039
  ], Pe.prototype, "updateVideoWant", 1);
15046
15040
  je([
15047
- D(H)
15041
+ D(U)
15048
15042
  ], Pe.prototype, "updateScreenWant", 1);
15049
15043
  je([
15050
15044
  D()
@@ -15053,10 +15047,10 @@ je([
15053
15047
  D()
15054
15048
  ], Pe.prototype, "startIndication", 1);
15055
15049
  je([
15056
- D(H)
15050
+ D(U)
15057
15051
  ], Pe.prototype, "setEnableDualVideoStream", 1);
15058
15052
  je([
15059
- D(H)
15053
+ D(U)
15060
15054
  ], Pe.prototype, "setAudioVolume", 1);
15061
15055
  je([
15062
15056
  D()
@@ -15110,9 +15104,9 @@ class Jc {
15110
15104
  },
15111
15105
  body: JSON.stringify(e)
15112
15106
  }).then((h) => h.status !== 200 ? (this.slsReporter.reportTranscodingError(h.status, e.taskid || ""), Promise.reject(
15113
- new V(U.ERR_INNER, `transcoding request failed, status: ${h.status}`)
15107
+ new V(H.ERR_INNER, `transcoding request failed, status: ${h.status}`)
15114
15108
  )) : h).catch((h) => Promise.reject(
15115
- new V(U.ERR_INNER, `transcoding request failed, err: ${h.message}`)
15109
+ new V(H.ERR_INNER, `transcoding request failed, err: ${h.message}`)
15116
15110
  ));
15117
15111
  }
15118
15112
  setAuthInfo(n) {
@@ -15211,19 +15205,19 @@ class ds {
15211
15205
  */
15212
15206
  static checkAuthInfo(n) {
15213
15207
  if (!n)
15214
- return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
15208
+ return new V(H.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no authInfo founded");
15215
15209
  if (!n.appId)
15216
- return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
15210
+ return new V(H.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no appId founded");
15217
15211
  if (!n.channelId)
15218
- return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
15212
+ return new V(H.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no channelId founded");
15219
15213
  if (!n.userId)
15220
- return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
15214
+ return new V(H.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no userId founded");
15221
15215
  if (n.timestamp) {
15222
15216
  if (!ds.checkNumber(n.timestamp))
15223
- return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
15217
+ return new V(H.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "timestamp is not number");
15224
15218
  } else
15225
- return new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
15226
- return n.token ? null : new V(U.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
15219
+ return new V(H.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no timestamp founded");
15220
+ return n.token ? null : new V(H.ERR_JOIN_ERR_JOIN_BAD_PARAMBAD, "no token founded");
15227
15221
  }
15228
15222
  /**
15229
15223
  * 检测是否是MediaStreamTrack类型
@@ -15344,7 +15338,7 @@ class Qc {
15344
15338
  p(this, "height");
15345
15339
  p(this, "zOrder");
15346
15340
  p(this, "sourceType");
15347
- p(this, "segmentType", _i.LiveTranscodingNoBody);
15341
+ p(this, "segmentType", yi.LiveTranscodingNoBody);
15348
15342
  p(this, "images", []);
15349
15343
  p(this, "texts", []);
15350
15344
  typeof n == "number" ? this.userId = n.toString() : this.userId = n, this.x = e, this.y = t, this.width = i, this.height = s, this.zOrder = a, c && (this.sourceType = c);
@@ -15362,7 +15356,7 @@ class Qc {
15362
15356
  images: this.images.map((a) => a.toJson(e, t)),
15363
15357
  texts: this.texts.map((a) => a.toJson(e, t))
15364
15358
  };
15365
- return this.sourceType && ri[this.sourceType] ? s.sourcetype = ri[this.sourceType] : s.sourcetype = ri[oi.LiveTranscodingCamera], this.segmentType && i === rs.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = _i.LiveTranscodingNoBody, s;
15359
+ return this.sourceType && ri[this.sourceType] ? s.sourcetype = ri[this.sourceType] : s.sourcetype = ri[oi.LiveTranscodingCamera], this.segmentType && i === rs.LiveTranscodingVirtualBackground ? s.segmenttype = this.segmentType : s.segmenttype = yi.LiveTranscodingNoBody, s;
15366
15360
  }
15367
15361
  }
15368
15362
  const Ft = class Ft {
@@ -15576,7 +15570,7 @@ const le = (r, n = 1, e = 6e4, t = 0) => {
15576
15570
  ctm: Math.floor(s[0].timestamp || 0),
15577
15571
  src: s[0].ssrc || "",
15578
15572
  codec: s[0]._codec || ""
15579
- }, o = [], u = [], h = [], g = [], d = [], f = [], m = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], A = [], y = [], R = [], M = [], C = [];
15573
+ }, o = [], u = [], h = [], g = [], d = [], f = [], m = [], l = [], S = [], v = [], x = [], b = [], E = [], y = [], A = [], _ = [], R = [], M = [], C = [];
15580
15574
  try {
15581
15575
  if (s.forEach((I) => {
15582
15576
  var F, N, G, j, ce, Z;
@@ -15596,7 +15590,7 @@ const le = (r, n = 1, e = 6e4, t = 0) => {
15596
15590
  if (f.push(L), a)
15597
15591
  (N = I._source) != null && N.audioLevel && m.push(cn(I._source.audioLevel)), l.push(0);
15598
15592
  else {
15599
- S.push(un(I, "totalEncodeTime")), v.push(Nt((G = I._source) == null ? void 0 : G.framesPerSecond, 100)), x.push(Nt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(Nt(I.framesPerSecond, 100)), E.push(Nt((ce = I._source) == null ? void 0 : ce.height, 4400)), _.push(Nt((Z = I._source) == null ? void 0 : Z.width, 7700)), A.push(Nt(I.frameHeight, 4400)), y.push(Nt(I.frameWidth, 7700));
15593
+ S.push(un(I, "totalEncodeTime")), v.push(Nt((G = I._source) == null ? void 0 : G.framesPerSecond, 100)), x.push(Nt((j = I._source) == null ? void 0 : j.framesPerSecond, 100)), b.push(Nt(I.framesPerSecond, 100)), E.push(Nt((ce = I._source) == null ? void 0 : ce.height, 4400)), y.push(Nt((Z = I._source) == null ? void 0 : Z.width, 7700)), A.push(Nt(I.frameHeight, 4400)), _.push(Nt(I.frameWidth, 7700));
15600
15594
  const Ve = fe(I, "totalPacketSendDelay");
15601
15595
  R.push(le(Ve, 1 / (ee || 1), 2e3));
15602
15596
  const ze = fe(I, "qpSum");
@@ -15606,7 +15600,7 @@ const le = (r, n = 1, e = 6e4, t = 0) => {
15606
15600
  const I = (i == null ? void 0 : i.getSettings().sampleRate) || 0;
15607
15601
  c.ailevel = m.join(","), c.arpc = l.join(","), c.arsr = I, c.aesr = I, c.publevel = -90, c.rawlevel = -90;
15608
15602
  } else
15609
- c.em = S.join(","), c.cfps = v.join(","), c.ifps = x.join(","), c.sfps = b.join(","), c.ih = E.join(","), c.iw = _.join(","), c.sh = A.join(","), c.sw = y.join(","), c.sd = R.join(","), c.aqp = M.join(","), c.caf = C.join(","), c.can = C.join(","), c.cav = u.join(","), c.ifimax = C.join(","), c.ifimin = C.join(","), c.efimax = C.join(","), c.efimin = C.join(","), c.sfimax = C.join(","), c.sfimin = C.join(","), c.apsnr = C.join(",");
15603
+ c.em = S.join(","), c.cfps = v.join(","), c.ifps = x.join(","), c.sfps = b.join(","), c.ih = E.join(","), c.iw = y.join(","), c.sh = A.join(","), c.sw = _.join(","), c.sd = R.join(","), c.aqp = M.join(","), c.caf = C.join(","), c.can = C.join(","), c.cav = u.join(","), c.ifimax = C.join(","), c.ifimin = C.join(","), c.efimax = C.join(","), c.efimin = C.join(","), c.sfimax = C.join(","), c.sfimin = C.join(","), c.apsnr = C.join(",");
15610
15604
  } catch (I) {
15611
15605
  }
15612
15606
  this.log({
@@ -15627,7 +15621,7 @@ const le = (r, n = 1, e = 6e4, t = 0) => {
15627
15621
  ctm: Math.floor(s[0].timestamp || 0),
15628
15622
  src: s[0].ssrc || "",
15629
15623
  codec: s[0]._codec || ""
15630
- }, o = [], u = [], h = [], g = [], d = [], f = [], m = [], l = [], S = [], v = [], x = [], b = [], E = [], _ = [], A = [], y = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [], Y = [], ae = [], Q = [], te = [], ee = [], k = [], L = [], F = [], N = [], G = [];
15624
+ }, o = [], u = [], h = [], g = [], d = [], f = [], m = [], l = [], S = [], v = [], x = [], b = [], E = [], y = [], A = [], _ = [], R = [], M = [], C = [], I = [], P = [], B = [], $ = [], q = [], Y = [], ae = [], Q = [], te = [], ee = [], k = [], L = [], F = [], N = [], G = [];
15631
15625
  try {
15632
15626
  s.forEach((j) => {
15633
15627
  var it, Dt;
@@ -15655,11 +15649,11 @@ const le = (r, n = 1, e = 6e4, t = 0) => {
15655
15649
  b.push(Bt(wt, xe));
15656
15650
  const Be = fe(j, "retransmittedPacketsReceived"), Ie = xe + ot - Be;
15657
15651
  if (S.push(Bt(xe - Be, Ie)), v.push(Bt(ot, Ie)), l.push(Bt(Be, Ie)), x.push(Ie), N.push(0), G.push(""), a) {
15658
- _.push(cn(j.audioLevel));
15652
+ y.push(cn(j.audioLevel));
15659
15653
  const gt = eu(j, "synthesizedSamplesEvents");
15660
15654
  A.push(gt);
15661
15655
  const rt = un(j, "synthesizedSamplesDuration");
15662
- y.push(rt);
15656
+ _.push(rt);
15663
15657
  const ct = Bt(rt, ce);
15664
15658
  E.push(ct), R.push(0);
15665
15659
  } else {
@@ -15682,7 +15676,7 @@ const le = (r, n = 1, e = 6e4, t = 0) => {
15682
15676
  const Qt = fe(j, "jitterBufferMinimumDelay");
15683
15677
  Qt && We ? L.push(le(Qt, 1e3 / We, 3e4)) : L.push(0);
15684
15678
  }
15685
- }), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = g.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = x.join(","), a ? (c.er = E.join(","), c.aolevel = _.join(","), c.asrc = R.join(","), c.scnt = A.join(","), c.sdura = y.join(",")) : (c.dm = M.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = G.join(","), c.ns = Y.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = N.join(","), c.ofimin = N.join(","), c.dfimax = N.join(","), c.dfimin = N.join(","), c.rfimax = N.join(","), c.rfimin = N.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = k.join(","), c.pdm = L.join(","), c.ofps = F.join(","), c.dfbd = Q.join(","));
15679
+ }), c.rbr = o.join(","), c.mbrs = u.join(","), c.pbrs = h.join(","), c.pr = g.join(","), c.pl = d.join(","), c.plr = f.join(","), c.jd = m.join(","), c.fecr = b.join(","), c.retransr = l.join(","), c.baser = S.join(","), c.basel = v.join(","), c.recoverr = N.join(","), c.alll = v.join(","), c.totalc = x.join(","), a ? (c.er = E.join(","), c.aolevel = y.join(","), c.asrc = R.join(","), c.scnt = A.join(","), c.sdura = _.join(",")) : (c.dm = M.join(","), c.dfps = C.join(","), c.rfps = I.join(","), c.rh = P.join(","), c.rw = B.join(","), c.fpt = G.join(","), c.ns = Y.join(","), c.pliss = q.join(","), c.aqp = ae.join(","), c.ofimax = N.join(","), c.ofimin = N.join(","), c.dfimax = N.join(","), c.dfimin = N.join(","), c.rfimax = N.join(","), c.rfimin = N.join(","), c.vrstutter = te.join(","), c.cdm = ee.join(","), c.tdm = k.join(","), c.pdm = L.join(","), c.ofps = F.join(","), c.dfbd = Q.join(","));
15686
15680
  } catch (j) {
15687
15681
  }
15688
15682
  this.log({
@@ -16397,21 +16391,21 @@ const z = (K = class extends Ae {
16397
16391
  O.event("[Publisher] VideoTrack Ended"), this.emit(
16398
16392
  "localDeviceException",
16399
16393
  dt.AliEngineLocalDeviceTypeCamera,
16400
- _e.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16394
+ ye.AliEngineLocalDeviceExceptionTypeCameraInterrupt,
16401
16395
  ""
16402
16396
  );
16403
16397
  }), (i = this.publisher) == null || i.on(Ut.ScreenTrackEnded, () => {
16404
16398
  O.event("[Publisher] ScreenTrack Ended"), this.emit(
16405
16399
  "localDeviceException",
16406
16400
  dt.AliEngineLocalDeviceTypeDisplay,
16407
- _e.AliEngineLocalDeviceExceptionTypeDisplayException,
16401
+ ye.AliEngineLocalDeviceExceptionTypeDisplayException,
16408
16402
  ""
16409
16403
  );
16410
16404
  }), (s = this.publisher) == null || s.on(Ut.AudioTrackEnded, () => {
16411
16405
  O.event("[Publisher] AudioTrack Ended"), this.emit(
16412
16406
  "localDeviceException",
16413
16407
  dt.AliEngineLocalDeviceTypeMic,
16414
- _e.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16408
+ ye.AliEngineLocalDeviceExceptionTypeMicInterrupt,
16415
16409
  ""
16416
16410
  );
16417
16411
  }), (a = this.publisher) == null || a.on(
@@ -16658,7 +16652,7 @@ const z = (K = class extends Ae {
16658
16652
  return w(this, null, function* () {
16659
16653
  const t = this.bizControl.getRemoteUser(e);
16660
16654
  if (!t)
16661
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16655
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
16662
16656
  t.restore(), t.updateSubscribe(he.Retry);
16663
16657
  });
16664
16658
  }
@@ -16691,7 +16685,7 @@ const z = (K = class extends Ae {
16691
16685
  // @ts-ignore
16692
16686
  hadPushStream(e) {
16693
16687
  if (!(this.publisher && e))
16694
- throw new V(U.ERR_INNER, "stream is not publishing");
16688
+ throw new V(H.ERR_INNER, "stream is not publishing");
16695
16689
  }
16696
16690
  /**
16697
16691
  * 获取当前使用的麦克风 deviceId
@@ -16707,7 +16701,7 @@ const z = (K = class extends Ae {
16707
16701
  oe.AliRtcConnectionStatusDisconnected,
16708
16702
  oe.AliRtcConnectionStatusFailed
16709
16703
  ].includes(this.connectState))
16710
- throw new V(U.ERR_INNER, "cannot set channel profile in call");
16704
+ throw new V(H.ERR_INNER, "cannot set channel profile in call");
16711
16705
  this.channelProfile = e, this.channelProfile === bt.AliRtcSdkCommunication && (this.clientRole = Mt.AliRtcSdkLive), this.signalingManager.setChannelProfile(e);
16712
16706
  }
16713
16707
  startAndPublishDefaultDevices(e) {
@@ -16722,7 +16716,7 @@ const z = (K = class extends Ae {
16722
16716
  } catch (d) {
16723
16717
  O.warn(`[${K.logName}]`, "startDefaultCamera failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16724
16718
  new V(
16725
- U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
16719
+ H.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED,
16726
16720
  `auto start video failed, ${d.message || ""}`
16727
16721
  )
16728
16722
  );
@@ -16732,7 +16726,7 @@ const z = (K = class extends Ae {
16732
16726
  } catch (d) {
16733
16727
  O.warn(`[${K.logName}]`, "startDefaultAUdio failed", d.code, d.message), d instanceof V && this.occurError(d), this.occurError(
16734
16728
  new V(
16735
- U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
16729
+ H.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED,
16736
16730
  `auto start audio failed, ${d.message || ""}`
16737
16731
  )
16738
16732
  );
@@ -16745,7 +16739,7 @@ const z = (K = class extends Ae {
16745
16739
  yield (g = this.publisher) == null ? void 0 : g.startPublish(!1, e);
16746
16740
  } catch (d) {
16747
16741
  const f = [];
16748
- a != null && a.audio && f.push(U.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(U.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((m) => {
16742
+ a != null && a.audio && f.push(H.ERR_SDK_PUBLISH_AUDIO_STREAM_FAILED), a != null && a.video && f.push(H.ERR_SDK_PUBLISH_VIDEO_STREAM_FAILED), f.forEach((m) => {
16749
16743
  this.occurError(new V(m, `auto publish stream failed, ${d.message || ""}`));
16750
16744
  });
16751
16745
  }
@@ -16759,7 +16753,7 @@ const z = (K = class extends Ae {
16759
16753
  return;
16760
16754
  if (!Object.values(Mt).includes(e))
16761
16755
  throw new V(
16762
- U.ERR_INVALID_ARGUMENTS,
16756
+ H.ERR_INVALID_ARGUMENTS,
16763
16757
  `set client role error, role value(${e}) is invalid`
16764
16758
  );
16765
16759
  if (this.clientRole === e)
@@ -16779,12 +16773,12 @@ const z = (K = class extends Ae {
16779
16773
  }
16780
16774
  setAudioOnlyMode(e) {
16781
16775
  if (this.isInCall())
16782
- throw new V(U.ERR_INNER, "can not change audioOnly mode in call");
16776
+ throw new V(H.ERR_INNER, "can not change audioOnly mode in call");
16783
16777
  this._audioOnlyMode = e;
16784
16778
  }
16785
16779
  setAudioRedEnabled(e) {
16786
16780
  if (this.isInCall())
16787
- throw new V(U.ERR_INNER, "can not change audioRedEnabled in call");
16781
+ throw new V(H.ERR_INNER, "can not change audioRedEnabled in call");
16788
16782
  this.bizControl.setAudioRedEnabled(e);
16789
16783
  }
16790
16784
  /**
@@ -16820,7 +16814,7 @@ const z = (K = class extends Ae {
16820
16814
  token: d.token
16821
16815
  };
16822
16816
  } catch (d) {
16823
- throw new V(U.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${d.message || ""}`);
16817
+ throw new V(H.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${d.message || ""}`);
16824
16818
  }
16825
16819
  else
16826
16820
  a = e;
@@ -16847,7 +16841,7 @@ const z = (K = class extends Ae {
16847
16841
  o,
16848
16842
  i
16849
16843
  ), m = Date.now();
16850
- this.connectState = oe.AliRtcConnectionStatusConnected, (h = this.publisher) == null || h.reportSelfDeviceStatus(), this.bizControl.init(a, f, {
16844
+ this.connectState = oe.AliRtcConnectionStatusConnected, this.bizControl.init(a, f, {
16851
16845
  capabilityProfile: typeof t == "object" ? t.capabilityProfile : us.Default
16852
16846
  }), this.setCheckAuthInfoTimer(a.timestamp, f.timestamp), this.liveTranscoding.setAuthInfo(a), this.slsReporter.reportJoin(0, o, f.tid), this.slsReporter.reportJoinResult(null), this.slsReporter.reportConnectionLatencyEvent(
16853
16847
  Je.JOIN,
@@ -16863,14 +16857,14 @@ const z = (K = class extends Ae {
16863
16857
  m
16864
16858
  ), this.slsReporter.reportConnectionLatencyEvent(Je.JOIN, Xe.END, "", "");
16865
16859
  } catch (d) {
16866
- const f = (g = d.code) != null ? g : -1, m = d.reason || d.message || "";
16860
+ const f = (h = d.code) != null ? h : -1, m = d.reason || d.message || "";
16867
16861
  throw this.connectState = oe.AliRtcConnectionStatusDisconnected, this.slsReporter.reportJoin(f, o, ""), this.slsReporter.reportJoinResult(d), new V(f, m);
16868
16862
  }
16869
- this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(nt.JOIN_CHANNEL)), this.remoteUsers.forEach((d) => {
16863
+ this.currentRoleCanPublish && (yield this.startAndPublishDefaultDevices(nt.JOIN_CHANNEL)), (g = this.publisher) == null || g.reportSelfDeviceStatus(), this.remoteUsers.forEach((d) => {
16870
16864
  d.updateSubscribe(he.Join);
16871
16865
  });
16872
16866
  } else {
16873
- const d = new V(U.ERR_JOIN_ALREADY_JOINED, "already joined");
16867
+ const d = new V(H.ERR_JOIN_ALREADY_JOINED, "already joined");
16874
16868
  throw this.connectState === oe.AliRtcConnectionStatusConnecting && (d.message = "Repeated operation during login"), this.slsReporter.reportJoin(d.code, o, ""), d;
16875
16869
  }
16876
16870
  });
@@ -16933,7 +16927,7 @@ const z = (K = class extends Ae {
16933
16927
  token: h.token
16934
16928
  };
16935
16929
  } catch (h) {
16936
- throw new V(U.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16930
+ throw new V(H.ERR_INVALID_ARGUMENTS, `authInfo is invalid: ${h.message || ""}`);
16937
16931
  }
16938
16932
  else
16939
16933
  t = e;
@@ -16983,7 +16977,7 @@ const z = (K = class extends Ae {
16983
16977
  subscribeRemoteAudioStream(e, t) {
16984
16978
  if (t && !this.bizControl.isWantSubAudio)
16985
16979
  throw new V(
16986
- U.ERR_INVALID_ARGUMENTS,
16980
+ H.ERR_INVALID_ARGUMENTS,
16987
16981
  "subscribeAllRemoteAudioStreams(true) must be called first"
16988
16982
  );
16989
16983
  this.bizControl.updateAudioWant(e, t);
@@ -16991,13 +16985,13 @@ const z = (K = class extends Ae {
16991
16985
  resumeRemoteAudioStream(e) {
16992
16986
  const t = this.bizControl.getRemoteUser(e);
16993
16987
  if (!t)
16994
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16988
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
16995
16989
  t.resumeAudio();
16996
16990
  }
16997
16991
  stopRemoteAudioPlay(e) {
16998
16992
  const t = this.bizControl.getRemoteUser(e);
16999
16993
  if (!t)
17000
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
16994
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
17001
16995
  t.stopPlayAudio();
17002
16996
  }
17003
16997
  publishLocalVideoStream(e) {
@@ -17032,7 +17026,7 @@ const z = (K = class extends Ae {
17032
17026
  subscribeRemoteMediaStream(e, t, i, s) {
17033
17027
  const a = this.bizControl.getRemoteUser(e);
17034
17028
  if (!a)
17035
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
17029
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
17036
17030
  i && (t === se.AliRtcVideoTrackScreen || t === se.AliRtcVideoTrackBoth) ? a.setWantSubScreen(!0) : a.setWantSubScreen(!1), i && (t === se.AliRtcVideoTrackCamera || t === se.AliRtcVideoTrackBoth) ? a.setWantSubVideo(!0) : a.setWantSubVideo(!1), a.setWantSubAudio(s), a.updateSubscribe(he.User);
17037
17031
  }
17038
17032
  resumeRemoteMediaStream(e, t) {
@@ -17147,7 +17141,7 @@ const z = (K = class extends Ae {
17147
17141
  }
17148
17142
  setAudioShareVolume(e) {
17149
17143
  if (typeof e != "number")
17150
- throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
17144
+ throw new V(H.ERR_INVALID_ARGUMENTS, "volume must be a number");
17151
17145
  this.bizControl.setAudioVolume({
17152
17146
  screen: Math.max(0, Math.min(e, 400)) / 100
17153
17147
  });
@@ -17162,7 +17156,7 @@ const z = (K = class extends Ae {
17162
17156
  muteRemoteAudioPlaying(e, t = !1) {
17163
17157
  const i = this.bizControl.getRemoteUser(e);
17164
17158
  if (!i)
17165
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
17159
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
17166
17160
  i.setAudioMuted(t);
17167
17161
  }
17168
17162
  muteAllRemoteAudioPlaying(e = !1) {
@@ -17208,22 +17202,22 @@ const z = (K = class extends Ae {
17208
17202
  }
17209
17203
  setRecordingVolume(e) {
17210
17204
  if (typeof e != "number")
17211
- throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
17205
+ throw new V(H.ERR_INVALID_ARGUMENTS, "volume must be a number");
17212
17206
  this.bizControl.setAudioVolume({
17213
17207
  audio: Math.max(0, Math.min(e, 400)) / 100
17214
17208
  });
17215
17209
  }
17216
17210
  setPlayoutVolume(e) {
17217
17211
  if (typeof e != "number")
17218
- throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
17212
+ throw new V(H.ERR_INVALID_ARGUMENTS, "volume must be a number");
17219
17213
  this.bizControl.setPlayoutVolume(Math.max(0, Math.min(e, 100)) / 100);
17220
17214
  }
17221
17215
  setRemoteAudioVolume(e, t) {
17222
17216
  const i = this.bizControl.getRemoteUser(e);
17223
17217
  if (!i)
17224
- throw new V(U.ERR_INNER, `no remote user(${e}) founded`);
17218
+ throw new V(H.ERR_INNER, `no remote user(${e}) founded`);
17225
17219
  if (typeof t != "number")
17226
- throw new V(U.ERR_INVALID_ARGUMENTS, "volume must be a number");
17220
+ throw new V(H.ERR_INVALID_ARGUMENTS, "volume must be a number");
17227
17221
  i.setPlayoutVolume(Math.max(0, Math.min(t, 100)) / 100);
17228
17222
  }
17229
17223
  setAudioProfile(e) {
@@ -17245,7 +17239,7 @@ const z = (K = class extends Ae {
17245
17239
  return w(this, null, function* () {
17246
17240
  var i, s, a;
17247
17241
  if (this._audioOnlyMode)
17248
- throw new V(U.ERR_INNER, "Cannot set local view in audio only mode");
17242
+ throw new V(H.ERR_INNER, "Cannot set local view in audio only mode");
17249
17243
  (i = this.bizControl) == null || i.setLocalViewConfig(e, t), t === se.AliRtcVideoTrackCamera && ((s = this.publisher) != null && s.hasCamera) ? yield this.startPreview() : t === se.AliRtcVideoTrackScreen && ((a = this.publisher) != null && a.hasScreenShare) && (yield this.startPreviewScreen());
17250
17244
  });
17251
17245
  }
@@ -17266,7 +17260,7 @@ const z = (K = class extends Ae {
17266
17260
  return w(this, null, function* () {
17267
17261
  var t, i, s, a, c, o, u, h, g, d, f;
17268
17262
  if (this._audioOnlyMode)
17269
- throw new V(U.ERR_INNER, "Cannot enable local video in audio only mode");
17263
+ throw new V(H.ERR_INNER, "Cannot enable local video in audio only mode");
17270
17264
  e ? ((i = (t = this.publisher) == null ? void 0 : t.publishStreams) != null && i.video && ((c = (a = (s = this.publisher) == null ? void 0 : s.publishStreams) == null ? void 0 : a.video) == null || c.disableVideo(), (g = (h = (u = (o = this.publisher) == null ? void 0 : o.publishStreams) == null ? void 0 : u.video) == null ? void 0 : h.videoTrack) == null || g.stop()), yield (d = this.publisher) == null ? void 0 : d.startCameraCapture()) : yield (f = this.publisher) == null ? void 0 : f.stopCameraCapture();
17271
17265
  });
17272
17266
  }
@@ -17300,7 +17294,7 @@ const z = (K = class extends Ae {
17300
17294
  return w(this, null, function* () {
17301
17295
  var s, a, c, o, u, h;
17302
17296
  if (this._audioOnlyMode)
17303
- throw new V(U.ERR_INNER, "Cannot switch camera in audio only mode");
17297
+ throw new V(H.ERR_INNER, "Cannot switch camera in audio only mode");
17304
17298
  const i = {};
17305
17299
  if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : t || (i.cameraDirection = ((s = this.publisher) == null ? void 0 : s.cameraDirection) === "environment" ? ci.CAMERA_FRONT : ci.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((a = this.publisher) == null ? void 0 : a.cameraDirection) || "")), yield this.setCameraCapturerConfiguration(i), !((c = this.publisher) != null && c.cameraCaptureDisabled)) {
17306
17300
  (u = (o = this.publisher) == null ? void 0 : o.cameraTrack) == null || u.stop();
@@ -17323,7 +17317,7 @@ const z = (K = class extends Ae {
17323
17317
  return w(this, null, function* () {
17324
17318
  var e, t;
17325
17319
  if (this._audioOnlyMode)
17326
- throw new V(U.ERR_INNER, "Cannot start preview camera in audio only mode");
17320
+ throw new V(H.ERR_INNER, "Cannot start preview camera in audio only mode");
17327
17321
  (e = this.publisher) != null && e.hasCamera || (yield this.enableLocalVideo(!0)), yield (t = this.publisher) == null ? void 0 : t.previewAll({
17328
17322
  screen: !1
17329
17323
  });
@@ -17333,7 +17327,7 @@ const z = (K = class extends Ae {
17333
17327
  return w(this, null, function* () {
17334
17328
  var t, i;
17335
17329
  if (this._audioOnlyMode)
17336
- throw new V(U.ERR_INNER, "Cannot start preview screen share in audio only mode");
17330
+ throw new V(H.ERR_INNER, "Cannot start preview screen share in audio only mode");
17337
17331
  (t = this.publisher) != null && t.hasScreenShare || (yield this.startScreenShare(e)), yield (i = this.publisher) == null ? void 0 : i.previewAll({
17338
17332
  primary: !1
17339
17333
  });
@@ -17426,7 +17420,7 @@ const z = (K = class extends Ae {
17426
17420
  return w(this, null, function* () {
17427
17421
  var s;
17428
17422
  if (!this.publisher || !this.isPublishing)
17429
- throw new V(U.ERR_INNER, "you should publish first");
17423
+ throw new V(H.ERR_INNER, "you should publish first");
17430
17424
  return this.slsReporter.reportSEIMessage(i, e.byteLength, t, 0, !1), (s = this.publisher) == null ? void 0 : s.sendSEI(e, t, i);
17431
17425
  });
17432
17426
  }
@@ -17463,7 +17457,7 @@ const z = (K = class extends Ae {
17463
17457
  const e = this.bizControl.pluginManager.get("AliRtcBeauty");
17464
17458
  if (!e)
17465
17459
  throw new V(
17466
- _t.AliRtcPluginErrorNoFindPlugin,
17460
+ yt.AliRtcPluginErrorNoFindPlugin,
17467
17461
  "you should enable beautyPlugin first"
17468
17462
  );
17469
17463
  return !!(e != null && e.isEnable);
@@ -17472,7 +17466,7 @@ const z = (K = class extends Ae {
17472
17466
  const i = this.bizControl.pluginManager.get("AliRtcBeauty");
17473
17467
  if (!i)
17474
17468
  throw new V(
17475
- _t.AliRtcPluginErrorNoFindPlugin,
17469
+ yt.AliRtcPluginErrorNoFindPlugin,
17476
17470
  "you should enable beautyPlugin first"
17477
17471
  );
17478
17472
  e ? i.enable() : i.disable(), i.setOptions({
@@ -17486,7 +17480,7 @@ const z = (K = class extends Ae {
17486
17480
  const i = this.bizControl.pluginManager.get("AliRtcBeauty");
17487
17481
  if (!i || !i.isEnable)
17488
17482
  throw new V(
17489
- _t.AliRtcPluginErrorNoFindPlugin,
17483
+ yt.AliRtcPluginErrorNoFindPlugin,
17490
17484
  "you should enable beautyPlugin first"
17491
17485
  );
17492
17486
  const s = {
@@ -17502,7 +17496,7 @@ const z = (K = class extends Ae {
17502
17496
  const t = this.bizControl.pluginManager.get("AliRtcBeauty");
17503
17497
  if (!t || !t.isEnable)
17504
17498
  throw new V(
17505
- _t.AliRtcPluginErrorNoFindPlugin,
17499
+ yt.AliRtcPluginErrorNoFindPlugin,
17506
17500
  "you should enable beautyPlugin first"
17507
17501
  );
17508
17502
  const i = {
@@ -17550,7 +17544,7 @@ p(K, "getCameraList", () => w(K, null, function* () {
17550
17544
  return (yield de.getMicList()).filter((t) => t.deviceId);
17551
17545
  })), p(K, "getSpeakerList", () => w(K, null, function* () {
17552
17546
  return (yield de.getSpeakerList()).filter((t) => t.deviceId);
17553
- })), p(K, "_instance"), p(K, "AliRtcSdkChannelProfile", bt), p(K, "AliRtcSdkClientRole", Mt), p(K, "AliRtcVideoStreamType", De), p(K, "AliRtcVideoTrack", se), p(K, "AliRtcAudioTrack", Yt), p(K, "AliRtcPublishState", X), p(K, "AliRtcSubscribeState", ue), p(K, "AliRtcRawDataStreamType", be), p(K, "AliRtcLogLevel", Sn), p(K, "AliRtcEngineLocalDeviceType", dt), p(K, "AliRtcEngineLocalDeviceExceptionType", _e), p(K, "AliRtcConnectionStatus", oe), p(K, "AliRtcConnectionStatusChangeReason", Kt), p(K, "AliRtcPlugin", Xt), p(K, "AliRtcPluginTrackType", Ii), p(K, "AliRtcLiveTranscodingParam", Vr), p(K, "AliRtcLiveTranscodingEncodeParam", yn), p(K, "AliRtcLiveTranscodingMixParam", Gc), p(K, "AliRtcLiveTranscodingSingleParam", Xc), p(K, "AliRtcTranscodingClockWidget", Yc), p(K, "AliRtcTranscodingImage", Nn), p(K, "AliRtcTranscodingText", Zc), p(K, "AliRtcTranscodingUser", Qc), p(K, "AliRtcLiveTranscodingMixMode", Ei), p(K, "AliRtcLiveTranscodingStreamType", xn), p(K, "AliRtcLiveTranscodingSourceType", oi), p(K, "AliRtcLiveTranscodingTaskProfile", vn), p(K, "AliRtcLiveTranscodingAudioSampleRate", is), p(K, "AliRtcLiveTranscodingSegmentType", _i), p(K, "AliRtcLiveTranscodingFontType", wi), p(K, "AliRtcLiveTranscodingCropMode", bn), p(K, "AliRtcLiveTranscodingMediaProcessMode", rs), p(K, "AliRtcLiveTranscodingState", En), p(K, "AliRtcLiveTranscodingErrorCode", ht), p(K, "AliRtcTrascodingPublishTaskStatus", _n), p(K, "AliRtcDataChannelMsg", Ot), p(K, "AliRtcDataMsgType", Dn), p(K, "Plugin", Xt), K);
17547
+ })), p(K, "_instance"), p(K, "AliRtcSdkChannelProfile", bt), p(K, "AliRtcSdkClientRole", Mt), p(K, "AliRtcVideoStreamType", De), p(K, "AliRtcVideoTrack", se), p(K, "AliRtcAudioTrack", Yt), p(K, "AliRtcPublishState", X), p(K, "AliRtcSubscribeState", ue), p(K, "AliRtcRawDataStreamType", be), p(K, "AliRtcLogLevel", Sn), p(K, "AliRtcEngineLocalDeviceType", dt), p(K, "AliRtcEngineLocalDeviceExceptionType", ye), p(K, "AliRtcConnectionStatus", oe), p(K, "AliRtcConnectionStatusChangeReason", Kt), p(K, "AliRtcPlugin", Xt), p(K, "AliRtcPluginTrackType", Ii), p(K, "AliRtcLiveTranscodingParam", Vr), p(K, "AliRtcLiveTranscodingEncodeParam", _n), p(K, "AliRtcLiveTranscodingMixParam", Gc), p(K, "AliRtcLiveTranscodingSingleParam", Xc), p(K, "AliRtcTranscodingClockWidget", Yc), p(K, "AliRtcTranscodingImage", Nn), p(K, "AliRtcTranscodingText", Zc), p(K, "AliRtcTranscodingUser", Qc), p(K, "AliRtcLiveTranscodingMixMode", Ei), p(K, "AliRtcLiveTranscodingStreamType", xn), p(K, "AliRtcLiveTranscodingSourceType", oi), p(K, "AliRtcLiveTranscodingTaskProfile", vn), p(K, "AliRtcLiveTranscodingAudioSampleRate", is), p(K, "AliRtcLiveTranscodingSegmentType", yi), p(K, "AliRtcLiveTranscodingFontType", wi), p(K, "AliRtcLiveTranscodingCropMode", bn), p(K, "AliRtcLiveTranscodingMediaProcessMode", rs), p(K, "AliRtcLiveTranscodingState", En), p(K, "AliRtcLiveTranscodingErrorCode", ht), p(K, "AliRtcTrascodingPublishTaskStatus", yn), p(K, "AliRtcDataChannelMsg", Ot), p(K, "AliRtcDataMsgType", Dn), p(K, "Plugin", Xt), K);
17554
17548
  W([
17555
17549
  D()
17556
17550
  ], z.prototype, "destroy", 1);
@@ -17567,73 +17561,73 @@ W([
17567
17561
  D()
17568
17562
  ], z.prototype, "resumeSubList", 1);
17569
17563
  W([
17570
- D(H)
17564
+ D(U)
17571
17565
  ], z.prototype, "retrySubscribe", 1);
17572
17566
  W([
17573
- D(H)
17567
+ D(U)
17574
17568
  ], z.prototype, "setEnableDualVideoStream", 1);
17575
17569
  W([
17576
- D(H)
17570
+ D(U)
17577
17571
  ], z.prototype, "setChannelProfile", 1);
17578
17572
  W([
17579
- D(H)
17573
+ D(U)
17580
17574
  ], z.prototype, "setClientRole", 1);
17581
17575
  W([
17582
- D(H)
17576
+ D(U)
17583
17577
  ], z.prototype, "setAudioOnlyMode", 1);
17584
17578
  W([
17585
17579
  D()
17586
17580
  ], z.prototype, "clearCheckAuthInfoTimer", 1);
17587
17581
  W([
17588
- D(H)
17582
+ D(U)
17589
17583
  ], z.prototype, "joinChannel", 1);
17590
17584
  W([
17591
- D(H)
17585
+ D(U)
17592
17586
  ], z.prototype, "joinAIChannel", 1);
17593
17587
  W([
17594
- D(H)
17588
+ D(U)
17595
17589
  ], z.prototype, "leaveChannel", 1);
17596
17590
  W([
17597
- D(H)
17591
+ D(U)
17598
17592
  ], z.prototype, "refreshAuthInfo", 1);
17599
17593
  W([
17600
- D(H)
17594
+ D(U)
17601
17595
  ], z.prototype, "publishLocalAudioStream", 1);
17602
17596
  W([
17603
- D(H)
17597
+ D(U)
17604
17598
  ], z.prototype, "setDefaultSubscribeAllRemoteAudioStreams", 1);
17605
17599
  W([
17606
- D(H)
17600
+ D(U)
17607
17601
  ], z.prototype, "subscribeAllRemoteAudioStreams", 1);
17608
17602
  W([
17609
- D(H)
17603
+ D(U)
17610
17604
  ], z.prototype, "subscribeRemoteAudioStream", 1);
17611
17605
  W([
17612
- D(H)
17606
+ D(U)
17613
17607
  ], z.prototype, "resumeRemoteAudioStream", 1);
17614
17608
  W([
17615
- D(H)
17609
+ D(U)
17616
17610
  ], z.prototype, "stopRemoteAudioPlay", 1);
17617
17611
  W([
17618
- D(H)
17612
+ D(U)
17619
17613
  ], z.prototype, "publishLocalVideoStream", 1);
17620
17614
  W([
17621
- D(H)
17615
+ D(U)
17622
17616
  ], z.prototype, "setRemoteDefaultVideoStreamType", 1);
17623
17617
  W([
17624
- D(H)
17618
+ D(U)
17625
17619
  ], z.prototype, "setRemoteUserVideoStreamType", 1);
17626
17620
  W([
17627
- D(H)
17621
+ D(U)
17628
17622
  ], z.prototype, "setDefaultSubscribeAllRemoteVideoStreams", 1);
17629
17623
  W([
17630
- D(H)
17624
+ D(U)
17631
17625
  ], z.prototype, "subscribeAllRemoteVideoStreams", 1);
17632
17626
  W([
17633
- D(H)
17627
+ D(U)
17634
17628
  ], z.prototype, "subscribeRemoteMediaStream", 1);
17635
17629
  W([
17636
- D(H)
17630
+ D(U)
17637
17631
  ], z.prototype, "resumeRemoteMediaStream", 1);
17638
17632
  W([
17639
17633
  D(([r]) => [`${r == null ? void 0 : r.audio}`])
@@ -17642,79 +17636,79 @@ W([
17642
17636
  D()
17643
17637
  ], z.prototype, "stopScreenShare", 1);
17644
17638
  W([
17645
- D(H)
17639
+ D(U)
17646
17640
  ], z.prototype, "setScreenShareConfiguration", 1);
17647
17641
  W([
17648
- D(H)
17642
+ D(U)
17649
17643
  ], z.prototype, "setScreenShareContentHint", 1);
17650
17644
  W([
17651
17645
  D()
17652
17646
  ], z.prototype, "publishLocalScreenShareStream", 1);
17653
17647
  W([
17654
- D(H)
17648
+ D(U)
17655
17649
  ], z.prototype, "setAudioShareVolume", 1);
17656
17650
  W([
17657
- D(H)
17651
+ D(U)
17658
17652
  ], z.prototype, "enableAudioVolumeIndication", 1);
17659
17653
  W([
17660
- D(H)
17654
+ D(U)
17661
17655
  ], z.prototype, "muteLocalMic", 1);
17662
17656
  W([
17663
- D(H)
17657
+ D(U)
17664
17658
  ], z.prototype, "muteRemoteAudioPlaying", 1);
17665
17659
  W([
17666
- D(H)
17660
+ D(U)
17667
17661
  ], z.prototype, "muteAllRemoteAudioPlaying", 1);
17668
17662
  W([
17669
- D(H)
17663
+ D(U)
17670
17664
  ], z.prototype, "startAudioCapture", 1);
17671
17665
  W([
17672
- D(H)
17666
+ D(U)
17673
17667
  ], z.prototype, "setAudioConstraints", 1);
17674
17668
  W([
17675
17669
  D()
17676
17670
  ], z.prototype, "stopAudioCapture", 1);
17677
17671
  W([
17678
- D(H)
17672
+ D(U)
17679
17673
  ], z.prototype, "switchMicrophone", 1);
17680
17674
  W([
17681
- D(H)
17675
+ D(U)
17682
17676
  ], z.prototype, "setRecordingVolume", 1);
17683
17677
  W([
17684
- D(H)
17678
+ D(U)
17685
17679
  ], z.prototype, "setPlayoutVolume", 1);
17686
17680
  W([
17687
- D(H)
17681
+ D(U)
17688
17682
  ], z.prototype, "setRemoteAudioVolume", 1);
17689
17683
  W([
17690
- D(H)
17684
+ D(U)
17691
17685
  ], z.prototype, "setAudioProfile", 1);
17692
17686
  W([
17693
- D(H)
17687
+ D(U)
17694
17688
  ], z.prototype, "getAudioTrack", 1);
17695
17689
  W([
17696
- D(H)
17690
+ D(U)
17697
17691
  ], z.prototype, "setLocalViewConfig", 1);
17698
17692
  W([
17699
- D(H)
17693
+ D(U)
17700
17694
  ], z.prototype, "setCameraCapturerConfiguration", 1);
17701
17695
  W([
17702
- D(H)
17696
+ D(U)
17703
17697
  ], z.prototype, "setCameraCapturerContentHint", 1);
17704
17698
  W([
17705
- D(H)
17699
+ D(U)
17706
17700
  ], z.prototype, "enableLocalVideo", 1);
17707
17701
  W([
17708
- D(H)
17702
+ D(U)
17709
17703
  ], z.prototype, "muteLocalCamera", 1);
17710
17704
  W([
17711
- D(H)
17705
+ D(U)
17712
17706
  ], z.prototype, "muteLocalScreen", 1);
17713
17707
  W([
17714
- D(H)
17708
+ D(U)
17715
17709
  ], z.prototype, "setRemoteViewConfig", 1);
17716
17710
  W([
17717
- D(H)
17711
+ D(U)
17718
17712
  ], z.prototype, "switchCamera", 1);
17719
17713
  W([
17720
17714
  D()
@@ -17744,7 +17738,7 @@ W([
17744
17738
  D()
17745
17739
  ], z.prototype, "stopPublishLiveStreamWithTaskId", 1);
17746
17740
  W([
17747
- D(H)
17741
+ D(U)
17748
17742
  ], z.prototype, "setEnableMediaExtensionMsg", 1);
17749
17743
  W([
17750
17744
  D(([r, n, e]) => [r.byteLength, n, e])
@@ -17753,25 +17747,25 @@ W([
17753
17747
  D(([r, n]) => [r.name || "", n])
17754
17748
  ], z.prototype, "enablePlugin", 1);
17755
17749
  W([
17756
- D(H)
17750
+ D(U)
17757
17751
  ], z.prototype, "removePlugin", 1);
17758
17752
  W([
17759
- D(H)
17753
+ D(U)
17760
17754
  ], z.prototype, "setPluginOption", 1);
17761
17755
  W([
17762
- D(H)
17756
+ D(U)
17763
17757
  ], z.prototype, "getPluginOption", 1);
17764
17758
  W([
17765
- D(H)
17759
+ D(U)
17766
17760
  ], z.prototype, "setBeautyEffect", 1);
17767
17761
  W([
17768
- D(H)
17762
+ D(U)
17769
17763
  ], z.prototype, "enableBackgroundExchange", 1);
17770
17764
  W([
17771
- D(H)
17765
+ D(U)
17772
17766
  ], z.prototype, "enableBackgroundBlur", 1);
17773
17767
  W([
17774
- D(H)
17768
+ D(U)
17775
17769
  ], z.prototype, "setParameter", 1);
17776
17770
  W([
17777
17771
  D(([r]) => {
@@ -17780,7 +17774,7 @@ W([
17780
17774
  })
17781
17775
  ], z.prototype, "sendDataChannelMessage", 1);
17782
17776
  W([
17783
- D(H)
17777
+ D(U)
17784
17778
  ], z, "setLogLevel", 1);
17785
17779
  let Ln = z;
17786
17780
  var hn;
@@ -17798,19 +17792,19 @@ export {
17798
17792
  Kt as AliRtcConnectionStatusChangeReason,
17799
17793
  Ot as AliRtcDataChannelMsg,
17800
17794
  Dn as AliRtcDataMsgType,
17801
- _e as AliRtcEngineLocalDeviceExceptionType,
17795
+ ye as AliRtcEngineLocalDeviceExceptionType,
17802
17796
  dt as AliRtcEngineLocalDeviceType,
17803
- U as AliRtcErrorCode,
17797
+ H as AliRtcErrorCode,
17804
17798
  is as AliRtcLiveTranscodingAudioSampleRate,
17805
17799
  bn as AliRtcLiveTranscodingCropMode,
17806
- yn as AliRtcLiveTranscodingEncodeParam,
17800
+ _n as AliRtcLiveTranscodingEncodeParam,
17807
17801
  ht as AliRtcLiveTranscodingErrorCode,
17808
17802
  wi as AliRtcLiveTranscodingFontType,
17809
17803
  rs as AliRtcLiveTranscodingMediaProcessMode,
17810
17804
  Ei as AliRtcLiveTranscodingMixMode,
17811
17805
  Gc as AliRtcLiveTranscodingMixParam,
17812
17806
  Vr as AliRtcLiveTranscodingParam,
17813
- _i as AliRtcLiveTranscodingSegmentType,
17807
+ yi as AliRtcLiveTranscodingSegmentType,
17814
17808
  Xc as AliRtcLiveTranscodingSingleParam,
17815
17809
  oi as AliRtcLiveTranscodingSourceType,
17816
17810
  En as AliRtcLiveTranscodingState,
@@ -17831,7 +17825,7 @@ export {
17831
17825
  Nn as AliRtcTranscodingImage,
17832
17826
  Zc as AliRtcTranscodingText,
17833
17827
  Qc as AliRtcTranscodingUser,
17834
- _n as AliRtcTrascodingPublishTaskStatus,
17828
+ yn as AliRtcTrascodingPublishTaskStatus,
17835
17829
  De as AliRtcVideoStreamType,
17836
17830
  se as AliRtcVideoTrack,
17837
17831
  nu as default