@voicenter-team/opensips-js 1.0.117 → 1.0.119

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.
@@ -673,7 +673,7 @@ function Wa() {
673
673
  tag_param: jl,
674
674
  Max_Forwards: vd,
675
675
  Min_Expires: Ya,
676
- Name_Addr_Header: sc,
676
+ Name_Addr_Header: nc,
677
677
  Proxy_Authenticate: Go,
678
678
  challenge: Wo,
679
679
  other_challenge: Aa,
@@ -695,11 +695,11 @@ function Wa() {
695
695
  rec_route: Na,
696
696
  Reason: Jl,
697
697
  reason_param: Ko,
698
- reason_cause: rc,
698
+ reason_cause: sc,
699
699
  Require: Xo,
700
700
  Route: Yo,
701
701
  route_param: Jo,
702
- Subscription_State: ic,
702
+ Subscription_State: rc,
703
703
  substate_value: no,
704
704
  subexp_params: so,
705
705
  event_reason_value: C,
@@ -727,9 +727,9 @@ function Wa() {
727
727
  Session_Expires: Kn,
728
728
  s_e_expires: Rr,
729
729
  s_e_params: Qo,
730
- s_e_refresher: ac,
731
- extension_header: oc,
732
- header_value: lc,
730
+ s_e_refresher: ic,
731
+ extension_header: ac,
732
+ header_value: oc,
733
733
  message_body: Td,
734
734
  uuid_URI: ro,
735
735
  uuid: Ci,
@@ -738,8 +738,8 @@ function Wa() {
738
738
  hex12: Ep,
739
739
  Refer_To: jy,
740
740
  Replaces: xp,
741
- call_id: uc,
742
- replaces_param: cc,
741
+ call_id: lc,
742
+ replaces_param: uc,
743
743
  to_tag: wd,
744
744
  from_tag: Cd,
745
745
  early_flag: Ip
@@ -1808,7 +1808,7 @@ function Wa() {
1808
1808
  le = v;
1809
1809
  }(f, l)), l === null && (a = f), l;
1810
1810
  }
1811
- function sc() {
1811
+ function nc() {
1812
1812
  var l, f, g, v, S, A, M, X, he, Qe;
1813
1813
  for (X = a, he = a, l = [], f = ai(); f !== null; )
1814
1814
  l.push(f), f = ai();
@@ -2047,9 +2047,9 @@ function Wa() {
2047
2047
  }
2048
2048
  function Ko() {
2049
2049
  var l;
2050
- return l = rc(), l === null && (l = Xt()), l;
2050
+ return l = sc(), l === null && (l = Xt()), l;
2051
2051
  }
2052
- function rc() {
2052
+ function sc() {
2053
2053
  var l, f, g, v, S, A;
2054
2054
  if (S = a, A = a, n.substr(a, 5).toLowerCase() === "cause" ? (l = n.substr(a, 5), a += 5) : (l = null, c('"cause"')), l !== null)
2055
2055
  if (f = be(), f !== null) {
@@ -2097,7 +2097,7 @@ function Wa() {
2097
2097
  l = null, a = S;
2098
2098
  return l;
2099
2099
  }
2100
- function ic() {
2100
+ function rc() {
2101
2101
  var l, f, g, v, S, A;
2102
2102
  if (S = a, l = no(), l !== null) {
2103
2103
  for (f = [], A = a, g = ue(), g !== null ? (v = so(), v !== null ? g = [g, v] : (g = null, a = A)) : (g = null, a = A); g !== null; )
@@ -2286,19 +2286,19 @@ function Wa() {
2286
2286
  }
2287
2287
  function Qo() {
2288
2288
  var l;
2289
- return l = ac(), l === null && (l = Xt()), l;
2289
+ return l = ic(), l === null && (l = Xt()), l;
2290
2290
  }
2291
- function ac() {
2291
+ function ic() {
2292
2292
  var l, f, g, v, S;
2293
2293
  return v = a, S = a, n.substr(a, 9).toLowerCase() === "refresher" ? (l = n.substr(a, 9), a += 9) : (l = null, c('"refresher"')), l !== null ? (f = be(), f !== null ? (n.substr(a, 3).toLowerCase() === "uac" ? (g = n.substr(a, 3), a += 3) : (g = null, c('"uac"')), g === null && (n.substr(a, 3).toLowerCase() === "uas" ? (g = n.substr(a, 3), a += 3) : (g = null, c('"uas"'))), g !== null ? l = [l, f, g] : (l = null, a = S)) : (l = null, a = S)) : (l = null, a = S), l !== null && (l = function(A, M) {
2294
2294
  le.refresher = M.toLowerCase();
2295
2295
  }(v, l[2])), l === null && (a = v), l;
2296
2296
  }
2297
- function oc() {
2297
+ function ac() {
2298
2298
  var l, f, g, v;
2299
- return v = a, l = Q(), l !== null ? (f = D(), f !== null ? (g = lc(), g !== null ? l = [l, f, g] : (l = null, a = v)) : (l = null, a = v)) : (l = null, a = v), l;
2299
+ return v = a, l = Q(), l !== null ? (f = D(), f !== null ? (g = oc(), g !== null ? l = [l, f, g] : (l = null, a = v)) : (l = null, a = v)) : (l = null, a = v), l;
2300
2300
  }
2301
- function lc() {
2301
+ function oc() {
2302
2302
  var l, f;
2303
2303
  for (l = [], f = G(), f === null && (f = te(), f === null && (f = O())); f !== null; )
2304
2304
  l.push(f), f = G(), f === null && (f = te(), f === null && (f = O()));
@@ -2350,21 +2350,21 @@ function Wa() {
2350
2350
  }
2351
2351
  function xp() {
2352
2352
  var l, f, g, v, S, A;
2353
- if (S = a, l = uc(), l !== null) {
2354
- for (f = [], A = a, g = ue(), g !== null ? (v = cc(), v !== null ? g = [g, v] : (g = null, a = A)) : (g = null, a = A); g !== null; )
2355
- f.push(g), A = a, g = ue(), g !== null ? (v = cc(), v !== null ? g = [g, v] : (g = null, a = A)) : (g = null, a = A);
2353
+ if (S = a, l = lc(), l !== null) {
2354
+ for (f = [], A = a, g = ue(), g !== null ? (v = uc(), v !== null ? g = [g, v] : (g = null, a = A)) : (g = null, a = A); g !== null; )
2355
+ f.push(g), A = a, g = ue(), g !== null ? (v = uc(), v !== null ? g = [g, v] : (g = null, a = A)) : (g = null, a = A);
2356
2356
  f !== null ? l = [l, f] : (l = null, a = S);
2357
2357
  } else
2358
2358
  l = null, a = S;
2359
2359
  return l;
2360
2360
  }
2361
- function uc() {
2361
+ function lc() {
2362
2362
  var l, f, g, v, S, A;
2363
2363
  return v = a, S = a, l = fe(), l !== null ? (A = a, n.charCodeAt(a) === 64 ? (f = "@", a++) : (f = null, c('"@"')), f !== null ? (g = fe(), g !== null ? f = [f, g] : (f = null, a = A)) : (f = null, a = A), f = f !== null ? f : "", f !== null ? l = [l, f] : (l = null, a = S)) : (l = null, a = S), l !== null && (l = function(M) {
2364
2364
  le.call_id = n.substring(a, M);
2365
2365
  }(v)), l === null && (a = v), l;
2366
2366
  }
2367
- function cc() {
2367
+ function uc() {
2368
2368
  var l;
2369
2369
  return l = wd(), l === null && (l = Cd(), l === null && (l = Ip(), l === null && (l = Xt()))), l;
2370
2370
  }
@@ -2916,10 +2916,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2916
2916
  return d && Object.assign({}, d) || p;
2917
2917
  }, es;
2918
2918
  }
2919
- var Wb = { exports: {} }, Ac = typeof Reflect == "object" ? Reflect : null, n2 = Ac && typeof Ac.apply == "function" ? Ac.apply : function(e, t, n) {
2919
+ var Wb = { exports: {} }, Ic = typeof Reflect == "object" ? Reflect : null, n2 = Ic && typeof Ic.apply == "function" ? Ic.apply : function(e, t, n) {
2920
2920
  return Function.prototype.apply.call(e, t, n);
2921
2921
  }, Om;
2922
- Ac && typeof Ac.ownKeys == "function" ? Om = Ac.ownKeys : Object.getOwnPropertySymbols ? Om = function(e) {
2922
+ Ic && typeof Ic.ownKeys == "function" ? Om = Ic.ownKeys : Object.getOwnPropertySymbols ? Om = function(e) {
2923
2923
  return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
2924
2924
  } : Om = function(e) {
2925
2925
  return Object.getOwnPropertyNames(e);
@@ -3452,9 +3452,9 @@ function i2(r, e) {
3452
3452
  function mD(r, e, t) {
3453
3453
  return e && i2(r.prototype, e), t && i2(r, t), r;
3454
3454
  }
3455
- var dc = Jc, hc = "JsSIP", Ps = /* @__PURE__ */ function() {
3455
+ var cc = Jc, dc = "JsSIP", Ps = /* @__PURE__ */ function() {
3456
3456
  function r(e) {
3457
- pD(this, r), e ? (this._debug = dc.default("".concat(hc, ":").concat(e)), this._warn = dc.default("".concat(hc, ":WARN:").concat(e)), this._error = dc.default("".concat(hc, ":ERROR:").concat(e))) : (this._debug = dc.default(hc), this._warn = dc.default("".concat(hc, ":WARN")), this._error = dc.default("".concat(hc, ":ERROR"))), this._debug.log = console.info.bind(console), this._warn.log = console.warn.bind(console), this._error.log = console.error.bind(console);
3457
+ pD(this, r), e ? (this._debug = cc.default("".concat(dc, ":").concat(e)), this._warn = cc.default("".concat(dc, ":WARN:").concat(e)), this._error = cc.default("".concat(dc, ":ERROR:").concat(e))) : (this._debug = cc.default(dc), this._warn = cc.default("".concat(dc, ":WARN")), this._error = cc.default("".concat(dc, ":ERROR"))), this._debug.log = console.info.bind(console), this._warn.log = console.warn.bind(console), this._error.log = console.error.bind(console);
3458
3458
  }
3459
3459
  return mD(r, [{
3460
3460
  key: "debug",
@@ -4038,15 +4038,15 @@ var Qy = gI, gD = /%[sdv%]/g, _D = function(r) {
4038
4038
  }), i.join(`\r
4039
4039
  `) + `\r
4040
4040
  `;
4041
- }, Lu = pI, TD = bD;
4041
+ }, Mu = pI, TD = bD;
4042
4042
  Zr.write = TD;
4043
- Zr.parse = Lu.parse;
4044
- Zr.parseParams = Lu.parseParams;
4045
- Zr.parseFmtpConfig = Lu.parseFmtpConfig;
4046
- Zr.parsePayloads = Lu.parsePayloads;
4047
- Zr.parseRemoteCandidates = Lu.parseRemoteCandidates;
4048
- Zr.parseImageAttributes = Lu.parseImageAttributes;
4049
- Zr.parseSimulcastStreamList = Lu.parseSimulcastStreamList;
4043
+ Zr.parse = Mu.parse;
4044
+ Zr.parseParams = Mu.parseParams;
4045
+ Zr.parseFmtpConfig = Mu.parseFmtpConfig;
4046
+ Zr.parsePayloads = Mu.parsePayloads;
4047
+ Zr.parseRemoteCandidates = Mu.parseRemoteCandidates;
4048
+ Zr.parseImageAttributes = Mu.parseImageAttributes;
4049
+ Zr.parseSimulcastStreamList = Mu.parseSimulcastStreamList;
4050
4050
  function $m(r) {
4051
4051
  "@babel/helpers - typeof";
4052
4052
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? $m = function(t) {
@@ -9079,7 +9079,7 @@ function Y2(r, e) {
9079
9079
  n[t] = r[t];
9080
9080
  return n;
9081
9081
  }
9082
- var Cc = Tr(), fu = hs, d1 = Wa(), J2 = Nl(), h1 = Kb, f1 = Rl;
9082
+ var wc = Tr(), fu = hs, d1 = Wa(), J2 = Nl(), h1 = Kb, f1 = Rl;
9083
9083
  Jb.settings = {
9084
9084
  // SIP authentication.
9085
9085
  authorization_user: null,
@@ -9114,7 +9114,7 @@ Jb.settings = {
9114
9114
  * Host address.
9115
9115
  * Value to be set in Via sent_by and host part of Contact FQDN.
9116
9116
  */
9117
- via_host: "".concat(Cc.createRandomToken(12), ".invalid")
9117
+ via_host: "".concat(wc.createRandomToken(12), ".invalid")
9118
9118
  };
9119
9119
  var Up = {
9120
9120
  mandatory: {
@@ -9163,14 +9163,14 @@ var Up = {
9163
9163
  return e;
9164
9164
  },
9165
9165
  connection_recovery_max_interval: function(e) {
9166
- if (Cc.isDecimal(e)) {
9166
+ if (wc.isDecimal(e)) {
9167
9167
  var t = Number(e);
9168
9168
  if (t > 0)
9169
9169
  return t;
9170
9170
  }
9171
9171
  },
9172
9172
  connection_recovery_min_interval: function(e) {
9173
- if (Cc.isDecimal(e)) {
9173
+ if (wc.isDecimal(e)) {
9174
9174
  var t = Number(e);
9175
9175
  if (t > 0)
9176
9176
  return t;
@@ -9191,7 +9191,7 @@ var Up = {
9191
9191
  return e;
9192
9192
  },
9193
9193
  no_answer_timeout: function(e) {
9194
- if (Cc.isDecimal(e)) {
9194
+ if (wc.isDecimal(e)) {
9195
9195
  var t = Number(e);
9196
9196
  if (t > 0)
9197
9197
  return t;
@@ -9223,7 +9223,7 @@ var Up = {
9223
9223
  return e;
9224
9224
  },
9225
9225
  register_expires: function(e) {
9226
- if (Cc.isDecimal(e)) {
9226
+ if (wc.isDecimal(e)) {
9227
9227
  var t = Number(e);
9228
9228
  if (t > 0)
9229
9229
  return t;
@@ -9272,7 +9272,7 @@ Jb.load = function(r, e) {
9272
9272
  for (var s in Up.optional)
9273
9273
  if (e.hasOwnProperty(s)) {
9274
9274
  var a = e[s];
9275
- if (Cc.isEmpty(a))
9275
+ if (wc.isEmpty(a))
9276
9276
  continue;
9277
9277
  var o = Up.optional[s](a);
9278
9278
  if (o !== void 0)
@@ -10045,10 +10045,10 @@ var rC = {
10045
10045
  return Fv.version;
10046
10046
  }
10047
10047
  };
10048
- const fc = Jc, pc = "JsSIP";
10048
+ const hc = Jc, fc = "JsSIP";
10049
10049
  var Ss = class {
10050
10050
  constructor(e) {
10051
- e ? (this._debug = fc.default(`${pc}:${e}`), this._warn = fc.default(`${pc}:WARN:${e}`), this._error = fc.default(`${pc}:ERROR:${e}`)) : (this._debug = fc.default(pc), this._warn = fc.default(`${pc}:WARN`), this._error = fc.default(`${pc}:ERROR`)), this._debug.log = console.info.bind(console), this._warn.log = console.warn.bind(console), this._error.log = console.error.bind(console);
10051
+ e ? (this._debug = hc.default(`${fc}:${e}`), this._warn = hc.default(`${fc}:WARN:${e}`), this._error = hc.default(`${fc}:ERROR:${e}`)) : (this._debug = hc.default(fc), this._warn = hc.default(`${fc}:WARN`), this._error = hc.default(`${fc}:ERROR`)), this._debug.log = console.info.bind(console), this._warn.log = console.warn.bind(console), this._error.log = console.error.bind(console);
10052
10052
  }
10053
10053
  get debug() {
10054
10054
  return this._debug;
@@ -10474,7 +10474,7 @@ function va() {
10474
10474
  Max_Forwards: jl,
10475
10475
  Min_Expires: vd,
10476
10476
  Name_Addr_Header: Ya,
10477
- Proxy_Authenticate: sc,
10477
+ Proxy_Authenticate: nc,
10478
10478
  challenge: Go,
10479
10479
  other_challenge: Wo,
10480
10480
  auth_param: Aa,
@@ -10496,11 +10496,11 @@ function va() {
10496
10496
  Reason: Na,
10497
10497
  reason_param: Jl,
10498
10498
  reason_cause: Ko,
10499
- Require: rc,
10499
+ Require: sc,
10500
10500
  Route: Xo,
10501
10501
  route_param: Yo,
10502
10502
  Subscription_State: Jo,
10503
- substate_value: ic,
10503
+ substate_value: rc,
10504
10504
  subexp_params: no,
10505
10505
  event_reason_value: so,
10506
10506
  Subject: C,
@@ -10528,9 +10528,9 @@ function va() {
10528
10528
  s_e_expires: Kn,
10529
10529
  s_e_params: Rr,
10530
10530
  s_e_refresher: Qo,
10531
- extension_header: ac,
10532
- header_value: oc,
10533
- message_body: lc,
10531
+ extension_header: ic,
10532
+ header_value: ac,
10533
+ message_body: oc,
10534
10534
  uuid_URI: Td,
10535
10535
  uuid: ro,
10536
10536
  hex4: Ci,
@@ -10539,8 +10539,8 @@ function va() {
10539
10539
  Refer_To: Ep,
10540
10540
  Replaces: jy,
10541
10541
  call_id: xp,
10542
- replaces_param: uc,
10543
- to_tag: cc,
10542
+ replaces_param: lc,
10543
+ to_tag: uc,
10544
10544
  from_tag: wd,
10545
10545
  early_flag: Cd
10546
10546
  };
@@ -11635,7 +11635,7 @@ function va() {
11635
11635
  }
11636
11636
  }()), h === null && (s = M), h;
11637
11637
  }
11638
- function sc() {
11638
+ function nc() {
11639
11639
  var h;
11640
11640
  return h = Go(), h;
11641
11641
  }
@@ -11867,7 +11867,7 @@ function va() {
11867
11867
  ie.cause = parseInt(M.join(""));
11868
11868
  }(v, h[2])), h === null && (s = v), h;
11869
11869
  }
11870
- function rc() {
11870
+ function sc() {
11871
11871
  var h, l, f, g, v, S;
11872
11872
  if (v = s, h = W(), h !== null) {
11873
11873
  for (l = [], S = s, f = Ve(), f !== null ? (g = W(), g !== null ? f = [f, g] : (f = null, s = S)) : (f = null, s = S); f !== null; )
@@ -11899,7 +11899,7 @@ function va() {
11899
11899
  }
11900
11900
  function Jo() {
11901
11901
  var h, l, f, g, v, S;
11902
- if (v = s, h = ic(), h !== null) {
11902
+ if (v = s, h = rc(), h !== null) {
11903
11903
  for (l = [], S = s, f = q(), f !== null ? (g = no(), g !== null ? f = [f, g] : (f = null, s = S)) : (f = null, s = S); f !== null; )
11904
11904
  l.push(f), S = s, f = q(), f !== null ? (g = no(), g !== null ? f = [f, g] : (f = null, s = S)) : (f = null, s = S);
11905
11905
  l !== null ? h = [h, l] : (h = null, s = v);
@@ -11907,7 +11907,7 @@ function va() {
11907
11907
  h = null, s = v;
11908
11908
  return h;
11909
11909
  }
11910
- function ic() {
11910
+ function rc() {
11911
11911
  var h, l;
11912
11912
  return l = s, t.substr(s, 6).toLowerCase() === "active" ? (h = t.substr(s, 6), s += 6) : (h = null, u('"active"')), h === null && (t.substr(s, 7).toLowerCase() === "pending" ? (h = t.substr(s, 7), s += 7) : (h = null, u('"pending"')), h === null && (t.substr(s, 10).toLowerCase() === "terminated" ? (h = t.substr(s, 10), s += 10) : (h = null, u('"terminated"')), h === null && (h = W()))), h !== null && (h = function(f) {
11913
11913
  ie.state = t.substring(s, f);
@@ -12094,17 +12094,17 @@ function va() {
12094
12094
  ie.refresher = A.toLowerCase();
12095
12095
  }(g, h[2])), h === null && (s = g), h;
12096
12096
  }
12097
- function ac() {
12097
+ function ic() {
12098
12098
  var h, l, f, g;
12099
- return g = s, h = W(), h !== null ? (l = F(), l !== null ? (f = oc(), f !== null ? h = [h, l, f] : (h = null, s = g)) : (h = null, s = g)) : (h = null, s = g), h;
12099
+ return g = s, h = W(), h !== null ? (l = F(), l !== null ? (f = ac(), f !== null ? h = [h, l, f] : (h = null, s = g)) : (h = null, s = g)) : (h = null, s = g), h;
12100
12100
  }
12101
- function oc() {
12101
+ function ac() {
12102
12102
  var h, l;
12103
12103
  for (h = [], l = L(), l === null && (l = j(), l === null && (l = B())); l !== null; )
12104
12104
  h.push(l), l = L(), l === null && (l = j(), l === null && (l = B()));
12105
12105
  return h;
12106
12106
  }
12107
- function lc() {
12107
+ function oc() {
12108
12108
  var h, l;
12109
12109
  for (h = [], l = y(); l !== null; )
12110
12110
  h.push(l), l = y();
@@ -12151,8 +12151,8 @@ function va() {
12151
12151
  function jy() {
12152
12152
  var h, l, f, g, v, S;
12153
12153
  if (v = s, h = xp(), h !== null) {
12154
- for (l = [], S = s, f = q(), f !== null ? (g = uc(), g !== null ? f = [f, g] : (f = null, s = S)) : (f = null, s = S); f !== null; )
12155
- l.push(f), S = s, f = q(), f !== null ? (g = uc(), g !== null ? f = [f, g] : (f = null, s = S)) : (f = null, s = S);
12154
+ for (l = [], S = s, f = q(), f !== null ? (g = lc(), g !== null ? f = [f, g] : (f = null, s = S)) : (f = null, s = S); f !== null; )
12155
+ l.push(f), S = s, f = q(), f !== null ? (g = lc(), g !== null ? f = [f, g] : (f = null, s = S)) : (f = null, s = S);
12156
12156
  l !== null ? h = [h, l] : (h = null, s = v);
12157
12157
  } else
12158
12158
  h = null, s = v;
@@ -12164,11 +12164,11 @@ function va() {
12164
12164
  ie.call_id = t.substring(s, A);
12165
12165
  }(g)), h === null && (s = g), h;
12166
12166
  }
12167
- function uc() {
12167
+ function lc() {
12168
12168
  var h;
12169
- return h = cc(), h === null && (h = wd(), h === null && (h = Cd(), h === null && (h = ln()))), h;
12169
+ return h = uc(), h === null && (h = wd(), h === null && (h = Cd(), h === null && (h = ln()))), h;
12170
12170
  }
12171
- function cc() {
12171
+ function uc() {
12172
12172
  var h, l, f, g, v;
12173
12173
  return g = s, v = s, t.substr(s, 6) === "to-tag" ? (h = "to-tag", s += 6) : (h = null, u('"to-tag"')), h !== null ? (l = ae(), l !== null ? (f = W(), f !== null ? h = [h, l, f] : (h = null, s = v)) : (h = null, s = v)) : (h = null, s = v), h !== null && (h = function(S, A) {
12174
12174
  ie.to_tag = A;
@@ -12870,7 +12870,7 @@ var $s = {
12870
12870
  IncomingRequest: U6,
12871
12871
  IncomingResponse: B6
12872
12872
  };
12873
- const pu = /* @__PURE__ */ yn($s), H6 = Ss, uo = tr(), aa = new H6("DigestAuthentication");
12873
+ const Ac = /* @__PURE__ */ yn($s), H6 = Ss, uo = tr(), aa = new H6("DigestAuthentication");
12874
12874
  var NI = class {
12875
12875
  constructor(e) {
12876
12876
  this._credentials = e, this._cnonce = null, this._nc = 0, this._ncHex = "00000000", this._algorithm = null, this._realm = null, this._nonce = null, this._opaque = null, this._stale = null, this._qop = null, this._method = null, this._uri = null, this._ha1 = null, this._response = null;
@@ -15945,7 +15945,7 @@ function ph(r) {
15945
15945
  }
15946
15946
  const c8 = /* @__PURE__ */ yn(GI);
15947
15947
  var mh = {};
15948
- const Ec = tr(), mu = $t, O1 = va(), NC = ko(), $1 = nT, D1 = Oo;
15948
+ const Cc = tr(), pu = $t, O1 = va(), NC = ko(), $1 = nT, D1 = Oo;
15949
15949
  mh.settings = {
15950
15950
  // SIP authentication.
15951
15951
  authorization_user: null,
@@ -15963,7 +15963,7 @@ mh.settings = {
15963
15963
  use_preloaded_route: !1,
15964
15964
  // Session parameters.
15965
15965
  session_timers: !0,
15966
- session_timers_refresh_method: mu.UPDATE,
15966
+ session_timers_refresh_method: pu.UPDATE,
15967
15967
  session_timers_force_refresher: !1,
15968
15968
  no_answer_timeout: 60,
15969
15969
  // Registration parameters.
@@ -15972,15 +15972,15 @@ mh.settings = {
15972
15972
  registrar_server: null,
15973
15973
  // Connection options.
15974
15974
  sockets: null,
15975
- connection_recovery_max_interval: mu.CONNECTION_RECOVERY_MAX_INTERVAL,
15976
- connection_recovery_min_interval: mu.CONNECTION_RECOVERY_MIN_INTERVAL,
15975
+ connection_recovery_max_interval: pu.CONNECTION_RECOVERY_MAX_INTERVAL,
15976
+ connection_recovery_min_interval: pu.CONNECTION_RECOVERY_MIN_INTERVAL,
15977
15977
  // Global extra headers, to be added to every request and response
15978
15978
  extra_headers: null,
15979
15979
  /*
15980
15980
  * Host address.
15981
15981
  * Value to be set in Via sent_by and host part of Contact FQDN.
15982
15982
  */
15983
- via_host: `${Ec.createRandomToken(12)}.invalid`
15983
+ via_host: `${Cc.createRandomToken(12)}.invalid`
15984
15984
  };
15985
15985
  const Jp = {
15986
15986
  mandatory: {
@@ -15996,7 +15996,7 @@ const Jp = {
15996
15996
  return e;
15997
15997
  },
15998
15998
  uri(r) {
15999
- /^sip:/i.test(r) || (r = `${mu.SIP}:${r}`);
15999
+ /^sip:/i.test(r) || (r = `${pu.SIP}:${r}`);
16000
16000
  const e = NC.parse(r);
16001
16001
  if (e)
16002
16002
  return e.user ? e : void 0;
@@ -16016,14 +16016,14 @@ const Jp = {
16016
16016
  return r;
16017
16017
  },
16018
16018
  connection_recovery_max_interval(r) {
16019
- if (Ec.isDecimal(r)) {
16019
+ if (Cc.isDecimal(r)) {
16020
16020
  const e = Number(r);
16021
16021
  if (e > 0)
16022
16022
  return e;
16023
16023
  }
16024
16024
  },
16025
16025
  connection_recovery_min_interval(r) {
16026
- if (Ec.isDecimal(r)) {
16026
+ if (Cc.isDecimal(r)) {
16027
16027
  const e = Number(r);
16028
16028
  if (e > 0)
16029
16029
  return e;
@@ -16044,7 +16044,7 @@ const Jp = {
16044
16044
  return r;
16045
16045
  },
16046
16046
  no_answer_timeout(r) {
16047
- if (Ec.isDecimal(r)) {
16047
+ if (Cc.isDecimal(r)) {
16048
16048
  const e = Number(r);
16049
16049
  if (e > 0)
16050
16050
  return e;
@@ -16055,7 +16055,7 @@ const Jp = {
16055
16055
  return r;
16056
16056
  },
16057
16057
  session_timers_refresh_method(r) {
16058
- if (typeof r == "string" && (r = r.toUpperCase(), r === mu.INVITE || r === mu.UPDATE))
16058
+ if (typeof r == "string" && (r = r.toUpperCase(), r === pu.INVITE || r === pu.UPDATE))
16059
16059
  return r;
16060
16060
  },
16061
16061
  session_timers_force_refresher(r) {
@@ -16076,14 +16076,14 @@ const Jp = {
16076
16076
  return r;
16077
16077
  },
16078
16078
  register_expires(r) {
16079
- if (Ec.isDecimal(r)) {
16079
+ if (Cc.isDecimal(r)) {
16080
16080
  const e = Number(r);
16081
16081
  if (e > 0)
16082
16082
  return e;
16083
16083
  }
16084
16084
  },
16085
16085
  registrar_server(r) {
16086
- /^sip:/i.test(r) || (r = `${mu.SIP}:${r}`);
16086
+ /^sip:/i.test(r) || (r = `${pu.SIP}:${r}`);
16087
16087
  const e = NC.parse(r);
16088
16088
  if (e)
16089
16089
  return e.user ? void 0 : e;
@@ -16116,7 +16116,7 @@ mh.load = (r, e) => {
16116
16116
  for (const t in Jp.optional)
16117
16117
  if (e.hasOwnProperty(t)) {
16118
16118
  const n = e[t];
16119
- if (Ec.isEmpty(n))
16119
+ if (Cc.isEmpty(n))
16120
16120
  continue;
16121
16121
  const i = Jp.optional[t](n);
16122
16122
  if (i !== void 0)
@@ -17276,7 +17276,7 @@ function V(r, e) {
17276
17276
  function Fs(r, e, t = "") {
17277
17277
  V(xn(r, e), () => t + ` Shapes ${r} and ${e} must match`);
17278
17278
  }
17279
- function Uu(r) {
17279
+ function Lu(r) {
17280
17280
  V(r != null, () => "The input to the tensor constructor must be a non-null value.");
17281
17281
  }
17282
17282
  function ge(r) {
@@ -17310,7 +17310,7 @@ function xn(r, e) {
17310
17310
  return !1;
17311
17311
  return !0;
17312
17312
  }
17313
- function Eu(r) {
17313
+ function Cu(r) {
17314
17314
  return r % 1 === 0;
17315
17315
  }
17316
17316
  function M8(r) {
@@ -17335,7 +17335,7 @@ function L8(r) {
17335
17335
  e[t] = t;
17336
17336
  return zI(e), e;
17337
17337
  }
17338
- function bu(r, e) {
17338
+ function vu(r, e) {
17339
17339
  return e <= r.length ? r : r + " ".repeat(e - r.length);
17340
17340
  }
17341
17341
  function Hv(r, e = (i) => 0, t, n) {
@@ -17382,7 +17382,7 @@ function aT(r, e) {
17382
17382
  }
17383
17383
  function On(r, e) {
17384
17384
  const t = e.length;
17385
- return r = r == null ? e.map((n, i) => i) : [].concat(r), V(r.every((n) => n >= -t && n < t), () => `All values in axis param must be in range [-${t}, ${t}) but got axis ${r}`), V(r.every((n) => Eu(n)), () => `All values in axis param must be integers but got axis ${r}`), r.map((n) => n < 0 ? t + n : n);
17385
+ return r = r == null ? e.map((n, i) => i) : [].concat(r), V(r.every((n) => n >= -t && n < t), () => `All values in axis param must be in range [-${t}, ${t}) but got axis ${r}`), V(r.every((n) => Cu(n)), () => `All values in axis param must be integers but got axis ${r}`), r.map((n) => n < 0 ? t + n : n);
17386
17386
  }
17387
17387
  function $o(r, e) {
17388
17388
  const t = [], n = [], i = e != null && Array.isArray(e) && e.length === 0, s = e == null || i ? null : On(e, r).sort();
@@ -17427,7 +17427,7 @@ function XI(r) {
17427
17427
  function YI(r, e) {
17428
17428
  return !(e === "complex64" || e === "float32" && r !== "complex64" || e === "int32" && r !== "float32" && r !== "complex64" || e === "bool" && r === "bool");
17429
17429
  }
17430
- function xu(r) {
17430
+ function Eu(r) {
17431
17431
  if (r === "float32" || r === "int32")
17432
17432
  return 4;
17433
17433
  if (r === "complex64")
@@ -17451,8 +17451,8 @@ function QI(r) {
17451
17451
  function ZI(r) {
17452
17452
  return typeof r == "number";
17453
17453
  }
17454
- function Bu(r) {
17455
- return Array.isArray(r) ? Bu(r[0]) : r instanceof Float32Array ? "float32" : r instanceof Int32Array || r instanceof Uint8Array || r instanceof Uint8ClampedArray ? "int32" : ZI(r) ? "float32" : vo(r) ? "string" : QI(r) ? "bool" : "float32";
17454
+ function Uu(r) {
17455
+ return Array.isArray(r) ? Uu(r[0]) : r instanceof Float32Array ? "float32" : r instanceof Int32Array || r instanceof Uint8Array || r instanceof Uint8ClampedArray ? "int32" : ZI(r) ? "float32" : vo(r) ? "string" : QI(r) ? "bool" : "float32";
17456
17456
  }
17457
17457
  function vl(r) {
17458
17458
  return !!(r && r.constructor && r.call && r.apply);
@@ -17486,7 +17486,7 @@ function eA(r, e, t, n = !1) {
17486
17486
  }
17487
17487
  return i;
17488
17488
  }
17489
- function Tu(r, e, t = !1) {
17489
+ function bu(r, e, t = !1) {
17490
17490
  if (r.length === 0)
17491
17491
  return e[0];
17492
17492
  const n = r.reduce((i, s) => i * s) * (t ? 2 : 1);
@@ -17525,11 +17525,11 @@ function xo(r, e) {
17525
17525
  function B8(r, e) {
17526
17526
  const t = r.reduce((n, i) => n * i, 1);
17527
17527
  if (e == null || e === "float32")
17528
- return Tu(r, new Float32Array(t));
17528
+ return bu(r, new Float32Array(t));
17529
17529
  if (e === "int32")
17530
- return Tu(r, new Int32Array(t));
17530
+ return bu(r, new Int32Array(t));
17531
17531
  if (e === "bool")
17532
- return Tu(r, new Uint8Array(t));
17532
+ return bu(r, new Uint8Array(t));
17533
17533
  throw new Error(`Unknown data type ${e}`);
17534
17534
  }
17535
17535
  function ti(r) {
@@ -17709,7 +17709,7 @@ function uT(r, e) {
17709
17709
  return t.set(r, n), t.get(r);
17710
17710
  }
17711
17711
  }
17712
- const Bg = "Abs", Hg = "Acos", Vg = "Acosh", Jh = "Add", Qh = "AddN", Zh = "All", ef = "Any", Gg = "ArgMax", Wg = "ArgMin", zg = "Asin", jg = "Asinh", qg = "Atan", Kg = "Atanh", Xg = "Atan2", tf = "AvgPool", cT = "AvgPoolGrad", Yg = "AvgPool3D", dT = "AvgPool3DGrad", nf = "BatchMatMul", Jg = "BatchToSpaceND", sf = "Bincount", Qg = "BitwiseAnd", j8 = "BroadcastTo", Zg = "BroadcastArgs", rf = "Cast", e_ = "Ceil", af = "ClipByValue", hT = "Complex", fT = "ComplexAbs", t_ = "Concat", of = "Conv2D", pT = "Conv2DBackpropFilter", lf = "Conv2DBackpropInput", uf = "Conv3D", n_ = "Conv3DBackpropFilterV2", cf = "Conv3DBackpropInputV2", s_ = "Cos", r_ = "Cosh", df = "Cumprod", hf = "Cumsum", ff = "CropAndResize", i_ = "DenseBincount", pf = "DepthToSpace", mf = "DepthwiseConv2dNative", mT = "DepthwiseConv2dNativeBackpropFilter", gT = "DepthwiseConv2dNativeBackpropInput", a_ = "Diag", gf = "Dilation2D", _T = "Dilation2DBackpropInput", yT = "Dilation2DBackpropFilter", vT = "Draw", o_ = "RealDiv", bT = "Einsum", l_ = "Elu", u_ = "EluGrad", c_ = "Erf", d_ = "Equal", h_ = "Exp", f_ = "ExpandDims", p_ = "Expm1", TT = "FFT", m_ = "Fill", _f = "FlipLeftRight", g_ = "Floor", __ = "FloorDiv", yf = "FusedBatchNorm", y_ = "GatherV2", vf = "GatherNd", v_ = "Greater", b_ = "GreaterEqual", bf = "Identity", ST = "IFFT", wT = "Imag", T_ = "IsFinite", S_ = "IsInf", w_ = "IsNan", Tf = "LeakyRelu", C_ = "Less", E_ = "LessEqual", Sf = "LinSpace", x_ = "Log", I_ = "Log1p", A_ = "LogicalAnd", R_ = "LogicalNot", N_ = "LogicalOr", sA = "LogicalXor", q8 = "LogSoftmax", K8 = "LowerBound", wf = "LRN", k_ = "LRNGrad", X8 = "MatrixBandPart", Cf = "Max", O_ = "Maximum", Ef = "MaxPool", CT = "MaxPoolGrad", $_ = "MaxPool3D", ET = "MaxPool3DGrad", D_ = "MaxPoolWithArgmax", xf = "Mean", If = "Min", P_ = "Minimum", Af = "MirrorPad", F_ = "Mod", Rf = "Multinomial", M_ = "Multiply", L_ = "Neg", U_ = "NotEqual", Nf = "NonMaxSuppressionV3", kf = "NonMaxSuppressionV4", Of = "NonMaxSuppressionV5", B_ = "OnesLike", $f = "OneHot", H_ = "Pack", Df = "PadV2", Y8 = "Pool", V_ = "Pow", Pf = "Prelu", Ff = "Prod", xT = "RaggedGather", IT = "RaggedRange", AT = "RaggedTensorToTensor", G_ = "Range", RT = "Real", W_ = "Reciprocal", z_ = "Relu", j_ = "Reshape", Mf = "ResizeNearestNeighbor", q_ = "ResizeNearestNeighborGrad", Lf = "ResizeBilinear", K_ = "ResizeBilinearGrad", X_ = "Relu6", Uf = "Reverse", Y_ = "Round", J_ = "Rsqrt", Bf = "ScatterNd", Hf = "TensorScatterUpdate", Vf = "SearchSorted", Q_ = "Select", Z_ = "Selu", e0 = "Slice", t0 = "Sin", n0 = "Sinh", s0 = "Sign", r0 = "Sigmoid", i0 = "Softplus", a0 = "Sqrt", Gf = "Sum", o0 = "SpaceToBatchND", l0 = "SplitV", Wf = "Softmax", u0 = "SparseFillEmptyRows", zf = "SparseReshape", c0 = "SparseSegmentMean", d0 = "SparseSegmentSum", jf = "SparseToDense", h0 = "SquaredDifference", NT = "Square", kT = "StaticRegexReplace", qf = "StridedSlice", f0 = "StringNGrams", p0 = "StringSplit", m0 = "StringToHashBucketFast", g0 = "Sub", _0 = "Tan", y0 = "Tanh", ed = "Tile", Kf = "TopK", Xf = "Transform", Su = "Transpose", v0 = "Unique", b0 = "Unpack", OT = "UnsortedSegmentSum", J8 = "UpperBound", T0 = "ZerosLike", Yf = "Step", ug = "FromPixels", Jf = "RotateWithOffset", Pc = "_FusedMatMul", Fc = "FusedConv2D", Mc = "FusedDepthwiseConv2D";
17712
+ const Bg = "Abs", Hg = "Acos", Vg = "Acosh", Jh = "Add", Qh = "AddN", Zh = "All", ef = "Any", Gg = "ArgMax", Wg = "ArgMin", zg = "Asin", jg = "Asinh", qg = "Atan", Kg = "Atanh", Xg = "Atan2", tf = "AvgPool", cT = "AvgPoolGrad", Yg = "AvgPool3D", dT = "AvgPool3DGrad", nf = "BatchMatMul", Jg = "BatchToSpaceND", sf = "Bincount", Qg = "BitwiseAnd", j8 = "BroadcastTo", Zg = "BroadcastArgs", rf = "Cast", e_ = "Ceil", af = "ClipByValue", hT = "Complex", fT = "ComplexAbs", t_ = "Concat", of = "Conv2D", pT = "Conv2DBackpropFilter", lf = "Conv2DBackpropInput", uf = "Conv3D", n_ = "Conv3DBackpropFilterV2", cf = "Conv3DBackpropInputV2", s_ = "Cos", r_ = "Cosh", df = "Cumprod", hf = "Cumsum", ff = "CropAndResize", i_ = "DenseBincount", pf = "DepthToSpace", mf = "DepthwiseConv2dNative", mT = "DepthwiseConv2dNativeBackpropFilter", gT = "DepthwiseConv2dNativeBackpropInput", a_ = "Diag", gf = "Dilation2D", _T = "Dilation2DBackpropInput", yT = "Dilation2DBackpropFilter", vT = "Draw", o_ = "RealDiv", bT = "Einsum", l_ = "Elu", u_ = "EluGrad", c_ = "Erf", d_ = "Equal", h_ = "Exp", f_ = "ExpandDims", p_ = "Expm1", TT = "FFT", m_ = "Fill", _f = "FlipLeftRight", g_ = "Floor", __ = "FloorDiv", yf = "FusedBatchNorm", y_ = "GatherV2", vf = "GatherNd", v_ = "Greater", b_ = "GreaterEqual", bf = "Identity", ST = "IFFT", wT = "Imag", T_ = "IsFinite", S_ = "IsInf", w_ = "IsNan", Tf = "LeakyRelu", C_ = "Less", E_ = "LessEqual", Sf = "LinSpace", x_ = "Log", I_ = "Log1p", A_ = "LogicalAnd", R_ = "LogicalNot", N_ = "LogicalOr", sA = "LogicalXor", q8 = "LogSoftmax", K8 = "LowerBound", wf = "LRN", k_ = "LRNGrad", X8 = "MatrixBandPart", Cf = "Max", O_ = "Maximum", Ef = "MaxPool", CT = "MaxPoolGrad", $_ = "MaxPool3D", ET = "MaxPool3DGrad", D_ = "MaxPoolWithArgmax", xf = "Mean", If = "Min", P_ = "Minimum", Af = "MirrorPad", F_ = "Mod", Rf = "Multinomial", M_ = "Multiply", L_ = "Neg", U_ = "NotEqual", Nf = "NonMaxSuppressionV3", kf = "NonMaxSuppressionV4", Of = "NonMaxSuppressionV5", B_ = "OnesLike", $f = "OneHot", H_ = "Pack", Df = "PadV2", Y8 = "Pool", V_ = "Pow", Pf = "Prelu", Ff = "Prod", xT = "RaggedGather", IT = "RaggedRange", AT = "RaggedTensorToTensor", G_ = "Range", RT = "Real", W_ = "Reciprocal", z_ = "Relu", j_ = "Reshape", Mf = "ResizeNearestNeighbor", q_ = "ResizeNearestNeighborGrad", Lf = "ResizeBilinear", K_ = "ResizeBilinearGrad", X_ = "Relu6", Uf = "Reverse", Y_ = "Round", J_ = "Rsqrt", Bf = "ScatterNd", Hf = "TensorScatterUpdate", Vf = "SearchSorted", Q_ = "Select", Z_ = "Selu", e0 = "Slice", t0 = "Sin", n0 = "Sinh", s0 = "Sign", r0 = "Sigmoid", i0 = "Softplus", a0 = "Sqrt", Gf = "Sum", o0 = "SpaceToBatchND", l0 = "SplitV", Wf = "Softmax", u0 = "SparseFillEmptyRows", zf = "SparseReshape", c0 = "SparseSegmentMean", d0 = "SparseSegmentSum", jf = "SparseToDense", h0 = "SquaredDifference", NT = "Square", kT = "StaticRegexReplace", qf = "StridedSlice", f0 = "StringNGrams", p0 = "StringSplit", m0 = "StringToHashBucketFast", g0 = "Sub", _0 = "Tan", y0 = "Tanh", ed = "Tile", Kf = "TopK", Xf = "Transform", Tu = "Transpose", v0 = "Unique", b0 = "Unpack", OT = "UnsortedSegmentSum", J8 = "UpperBound", T0 = "ZerosLike", Yf = "Step", ug = "FromPixels", Jf = "RotateWithOffset", Pc = "_FusedMatMul", Fc = "FusedConv2D", Mc = "FusedDepthwiseConv2D";
17713
17713
  /**
17714
17714
  * @license
17715
17715
  * Copyright 2018 Google LLC. All Rights Reserved.
@@ -18116,17 +18116,17 @@ function ni(r) {
18116
18116
  }
18117
18117
  Cn.isLong = ni;
18118
18118
  var MC = {}, LC = {};
18119
- function Hu(r, e) {
18119
+ function Bu(r, e) {
18120
18120
  var t, n, i;
18121
18121
  return e ? (r >>>= 0, (i = 0 <= r && r < 256) && (n = LC[r], n) ? n : (t = En(r, (r | 0) < 0 ? -1 : 0, !0), i && (LC[r] = t), t)) : (r |= 0, (i = -128 <= r && r < 128) && (n = MC[r], n) ? n : (t = En(r, r < 0 ? -1 : 0, !1), i && (MC[r] = t), t));
18122
18122
  }
18123
- Cn.fromInt = Hu;
18123
+ Cn.fromInt = Bu;
18124
18124
  function Fi(r, e) {
18125
18125
  if (isNaN(r))
18126
- return e ? gu : Mi;
18126
+ return e ? mu : Mi;
18127
18127
  if (e) {
18128
18128
  if (r < 0)
18129
- return gu;
18129
+ return mu;
18130
18130
  if (r >= aA)
18131
18131
  return uA;
18132
18132
  } else {
@@ -18170,15 +18170,15 @@ function ba(r, e) {
18170
18170
  return typeof r == "number" ? Fi(r, e) : typeof r == "string" ? DT(r, e) : En(r.low, r.high, typeof e == "boolean" ? e : r.unsigned);
18171
18171
  }
18172
18172
  Cn.fromValue = ba;
18173
- var UC = 65536, sM = 1 << 24, Uc = UC * UC, aA = Uc * Uc, BC = aA / 2, HC = Hu(sM), Mi = Hu(0);
18173
+ var UC = 65536, sM = 1 << 24, Uc = UC * UC, aA = Uc * Uc, BC = aA / 2, HC = Bu(sM), Mi = Bu(0);
18174
18174
  Cn.ZERO = Mi;
18175
- var gu = Hu(0, !0);
18176
- Cn.UZERO = gu;
18177
- var xc = Hu(1);
18178
- Cn.ONE = xc;
18179
- var oA = Hu(1, !0);
18175
+ var mu = Bu(0, !0);
18176
+ Cn.UZERO = mu;
18177
+ var Ec = Bu(1);
18178
+ Cn.ONE = Ec;
18179
+ var oA = Bu(1, !0);
18180
18180
  Cn.UONE = oA;
18181
- var Gv = Hu(-1);
18181
+ var Gv = Bu(-1);
18182
18182
  Cn.NEG_ONE = Gv;
18183
18183
  var lA = En(-1, 2147483647, !1);
18184
18184
  Cn.MAX_VALUE = lA;
@@ -18298,7 +18298,7 @@ Je.compare = function(e) {
18298
18298
  };
18299
18299
  Je.comp = Je.compare;
18300
18300
  Je.negate = function() {
18301
- return !this.unsigned && this.eq(Jr) ? Jr : this.not().add(xc);
18301
+ return !this.unsigned && this.eq(Jr) ? Jr : this.not().add(Ec);
18302
18302
  };
18303
18303
  Je.neg = Je.negate;
18304
18304
  Je.add = function(e) {
@@ -18353,24 +18353,24 @@ Je.divide = function(e) {
18353
18353
  return En(t, Pi.get_high(), this.unsigned);
18354
18354
  }
18355
18355
  if (this.isZero())
18356
- return this.unsigned ? gu : Mi;
18356
+ return this.unsigned ? mu : Mi;
18357
18357
  var n, i, s;
18358
18358
  if (this.unsigned) {
18359
18359
  if (e.unsigned || (e = e.toUnsigned()), e.gt(this))
18360
- return gu;
18360
+ return mu;
18361
18361
  if (e.gt(this.shru(1)))
18362
18362
  return oA;
18363
- s = gu;
18363
+ s = mu;
18364
18364
  } else {
18365
18365
  if (this.eq(Jr)) {
18366
- if (e.eq(xc) || e.eq(Gv))
18366
+ if (e.eq(Ec) || e.eq(Gv))
18367
18367
  return Jr;
18368
18368
  if (e.eq(Jr))
18369
- return xc;
18369
+ return Ec;
18370
18370
  var a = this.shr(1);
18371
- return n = a.div(e).shl(1), n.eq(Mi) ? e.isNegative() ? xc : Gv : (i = this.sub(e.mul(n)), s = n.add(i.div(e)), s);
18371
+ return n = a.div(e).shl(1), n.eq(Mi) ? e.isNegative() ? Ec : Gv : (i = this.sub(e.mul(n)), s = n.add(i.div(e)), s);
18372
18372
  } else if (e.eq(Jr))
18373
- return this.unsigned ? gu : Mi;
18373
+ return this.unsigned ? mu : Mi;
18374
18374
  if (this.isNegative())
18375
18375
  return e.isNegative() ? this.neg().div(e.neg()) : this.neg().div(e).neg();
18376
18376
  if (e.isNegative())
@@ -18381,7 +18381,7 @@ Je.divide = function(e) {
18381
18381
  n = Math.max(1, Math.floor(i.toNumber() / e.toNumber()));
18382
18382
  for (var o = Math.ceil(Math.log(n) / Math.LN2), u = o <= 48 ? 1 : dg(2, o - 48), c = Fi(n), d = c.mul(e); d.isNegative() || d.gt(i); )
18383
18383
  n -= u, c = Fi(n, this.unsigned), d = c.mul(e);
18384
- c.isZero() && (c = xc), s = s.add(c), i = i.sub(d);
18384
+ c.isZero() && (c = Ec), s = s.add(c), i = i.sub(d);
18385
18385
  }
18386
18386
  return s;
18387
18387
  };
@@ -18597,7 +18597,7 @@ function fA(r, e = r.length) {
18597
18597
  * limitations under the License.
18598
18598
  * =============================================================================
18599
18599
  */
18600
- function Vu(r, e) {
18600
+ function Hu(r, e) {
18601
18601
  return e === "string" ? To(r) : Zf([r], e);
18602
18602
  }
18603
18603
  function uM(r, e) {
@@ -18629,7 +18629,7 @@ function pA(r, e) {
18629
18629
  function To(r, e = "utf-8") {
18630
18630
  return e = e || "utf-8", de().platform.encode(r, e);
18631
18631
  }
18632
- function Iu(r, e = "utf-8") {
18632
+ function xu(r, e = "utf-8") {
18633
18633
  return e = e || "utf-8", de().platform.decode(r, e);
18634
18634
  }
18635
18635
  function Ts(r) {
@@ -18656,17 +18656,17 @@ const cM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18656
18656
  arraysEqualWithNull: qI,
18657
18657
  assert: V,
18658
18658
  assertNonNegativeIntegerDimensions: ti,
18659
- assertNonNull: Uu,
18659
+ assertNonNull: Lu,
18660
18660
  assertShapesMatch: Fs,
18661
18661
  bytesFromStringArray: JI,
18662
- bytesPerElement: xu,
18662
+ bytesPerElement: Eu,
18663
18663
  checkConversionForErrors: KI,
18664
18664
  clamp: gh,
18665
18665
  computeStrides: an,
18666
18666
  convertBackendValuesAndArrayBuffer: U8,
18667
- createScalarValue: Vu,
18667
+ createScalarValue: Hu,
18668
18668
  createShuffledIndices: L8,
18669
- decodeString: Iu,
18669
+ decodeString: xu,
18670
18670
  distSquared: P8,
18671
18671
  encodeString: To,
18672
18672
  fetch: pA,
@@ -18677,11 +18677,11 @@ const cM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18677
18677
  hasEncodingLoss: YI,
18678
18678
  hexToLong: Qf,
18679
18679
  indexToLoc: Ug,
18680
- inferDtype: Bu,
18680
+ inferDtype: Uu,
18681
18681
  inferFromImplicitShape: aT,
18682
18682
  isBoolean: QI,
18683
18683
  isFunction: vl,
18684
- isInt: Eu,
18684
+ isInt: Cu,
18685
18685
  isNumber: ZI,
18686
18686
  isPromise: bl,
18687
18687
  isScalarShape: F8,
@@ -18698,7 +18698,7 @@ const cM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18698
18698
  parseAxisParam: On,
18699
18699
  randUniform: D8,
18700
18700
  repeatedTry: Hv,
18701
- rightPad: bu,
18701
+ rightPad: vu,
18702
18702
  shuffle: zI,
18703
18703
  shuffleCombo: $8,
18704
18704
  sizeFromShape: ge,
@@ -18707,7 +18707,7 @@ const cM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18707
18707
  sum: jI,
18708
18708
  swap: _o,
18709
18709
  tanh: M8,
18710
- toNestedArray: Tu,
18710
+ toNestedArray: bu,
18711
18711
  toTypedArray: Zf
18712
18712
  }, Symbol.toStringTag, { value: "Module" }));
18713
18713
  /**
@@ -18781,7 +18781,7 @@ function hM(r, e, t) {
18781
18781
  }
18782
18782
  let fM = class {
18783
18783
  logKernelProfile(e, t, n, i, s, a) {
18784
- const o = typeof i == "number" ? bu(`${i}ms`, 9) : i.error, u = bu(e, 25), c = t.rank, d = t.size, p = bu(t.shape.toString(), 14);
18784
+ const o = typeof i == "number" ? vu(`${i}ms`, 9) : i.error, u = vu(e, 25), c = t.rank, d = t.size, p = vu(t.shape.toString(), 14);
18785
18785
  let m = "";
18786
18786
  for (const _ in s) {
18787
18787
  const y = s[_];
@@ -18916,7 +18916,7 @@ function _M(r, e, t, n) {
18916
18916
  }
18917
18917
  function eh(r, e, t) {
18918
18918
  let n;
18919
- return Array.isArray(r) ? n = `${parseFloat(r[0].toFixed(H1))} + ${parseFloat(r[1].toFixed(H1))}j` : vo(r) ? n = `'${r}'` : t === "bool" ? n = mA(r) : n = parseFloat(r.toFixed(H1)).toString(), bu(n, e);
18919
+ return Array.isArray(r) ? n = `${parseFloat(r[0].toFixed(H1))} + ${parseFloat(r[1].toFixed(H1))}j` : vo(r) ? n = `'${r}'` : t === "bool" ? n = mA(r) : n = parseFloat(r.toFixed(H1)).toString(), vu(n, e);
18920
18920
  }
18921
18921
  function mA(r) {
18922
18922
  return r === 0 ? "false" : "true";
@@ -19015,7 +19015,7 @@ function th(r) {
19015
19015
  * limitations under the License.
19016
19016
  * =============================================================================
19017
19017
  */
19018
- class Au {
19018
+ class Iu {
19019
19019
  constructor(e, t, n) {
19020
19020
  if (this.dtype = t, this.shape = e.slice(), this.size = ge(e), n != null) {
19021
19021
  const i = n.length;
@@ -19092,12 +19092,12 @@ class Au {
19092
19092
  return ca().makeTensor(this.values, this.shape, this.dtype);
19093
19093
  }
19094
19094
  }
19095
- let ca = null, Sc = null;
19095
+ let ca = null, Tc = null;
19096
19096
  function yM(r) {
19097
19097
  ca = r;
19098
19098
  }
19099
19099
  function vM(r) {
19100
- Sc = r;
19100
+ Tc = r;
19101
19101
  }
19102
19102
  class nn {
19103
19103
  constructor(e, t, n, i) {
@@ -19113,14 +19113,14 @@ class nn {
19113
19113
  */
19114
19114
  async buffer() {
19115
19115
  const e = await this.data();
19116
- return Sc.buffer(this.shape, this.dtype, e);
19116
+ return Tc.buffer(this.shape, this.dtype, e);
19117
19117
  }
19118
19118
  /**
19119
19119
  * Returns a `tf.TensorBuffer` that holds the underlying data.
19120
19120
  * @doc {heading: 'Tensors', subheading: 'Classes'}
19121
19121
  */
19122
19122
  bufferSync() {
19123
- return Sc.buffer(this.shape, this.dtype, this.dataSync());
19123
+ return Tc.buffer(this.shape, this.dtype, this.dataSync());
19124
19124
  }
19125
19125
  /**
19126
19126
  * Returns the tensor data as a nested array. The transfer of data is done
@@ -19130,7 +19130,7 @@ class nn {
19130
19130
  */
19131
19131
  async array() {
19132
19132
  const e = await this.data();
19133
- return Tu(this.shape, e, this.dtype === "complex64");
19133
+ return bu(this.shape, e, this.dtype === "complex64");
19134
19134
  }
19135
19135
  /**
19136
19136
  * Returns the tensor data as a nested array. The transfer of data is done
@@ -19139,7 +19139,7 @@ class nn {
19139
19139
  * @doc {heading: 'Tensors', subheading: 'Classes'}
19140
19140
  */
19141
19141
  arraySync() {
19142
- return Tu(this.shape, this.dataSync(), this.dtype === "complex64");
19142
+ return bu(this.shape, this.dataSync(), this.dtype === "complex64");
19143
19143
  }
19144
19144
  /**
19145
19145
  * Asynchronously downloads the values from the `tf.Tensor`. Returns a
@@ -19153,7 +19153,7 @@ class nn {
19153
19153
  if (this.dtype === "string") {
19154
19154
  const t = await e;
19155
19155
  try {
19156
- return t.map((n) => Iu(n));
19156
+ return t.map((n) => xu(n));
19157
19157
  } catch {
19158
19158
  throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().");
19159
19159
  }
@@ -19208,7 +19208,7 @@ class nn {
19208
19208
  const e = ca().readSync(this.dataId);
19209
19209
  if (this.dtype === "string")
19210
19210
  try {
19211
- return e.map((t) => Iu(t));
19211
+ return e.map((t) => xu(t));
19212
19212
  } catch {
19213
19213
  throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().");
19214
19214
  }
@@ -19244,14 +19244,14 @@ class nn {
19244
19244
  * @doc {heading: 'Tensors', subheading: 'Classes'}
19245
19245
  */
19246
19246
  print(e = !1) {
19247
- return Sc.print(this, e);
19247
+ return Tc.print(this, e);
19248
19248
  }
19249
19249
  /**
19250
19250
  * Returns a copy of the tensor. See `tf.clone` for details.
19251
19251
  * @doc {heading: 'Tensors', subheading: 'Classes'}
19252
19252
  */
19253
19253
  clone() {
19254
- return this.throwIfDisposed(), Sc.clone(this);
19254
+ return this.throwIfDisposed(), Tc.clone(this);
19255
19255
  }
19256
19256
  /**
19257
19257
  * Returns a human-readable description of the tensor. Useful for logging.
@@ -19263,7 +19263,7 @@ class nn {
19263
19263
  return gM(t, this.shape, this.dtype, e);
19264
19264
  }
19265
19265
  cast(e) {
19266
- return this.throwIfDisposed(), Sc.cast(this, e);
19266
+ return this.throwIfDisposed(), Tc.cast(this, e);
19267
19267
  }
19268
19268
  variable(e = !0, t, n) {
19269
19269
  return this.throwIfDisposed(), ca().makeVariable(this, e, t, n);
@@ -19791,7 +19791,7 @@ class Bc {
19791
19791
  trackTensor(e, t) {
19792
19792
  this.state.numTensors++, e.dtype === "string" && this.state.numStringTensors++;
19793
19793
  let n = 0;
19794
- e.dtype !== "complex64" && e.dtype !== "string" && (n = e.size * xu(e.dtype)), this.state.numBytes += n, this.state.tensorInfo.has(e.dataId) || (this.state.numDataBuffers++, this.state.tensorInfo.set(e.dataId, {
19794
+ e.dtype !== "complex64" && e.dtype !== "string" && (n = e.size * Eu(e.dtype)), this.state.numBytes += n, this.state.tensorInfo.has(e.dataId) || (this.state.numDataBuffers++, this.state.tensorInfo.set(e.dataId, {
19795
19795
  backend: t || this.backend,
19796
19796
  dtype: e.dtype,
19797
19797
  shape: e.shape,
@@ -19814,7 +19814,7 @@ class Bc {
19814
19814
  return;
19815
19815
  const t = this.state.tensorInfo.get(e.dataId);
19816
19816
  if (this.state.numTensors--, e.dtype === "string" && (this.state.numStringTensors--, this.state.numBytes -= t.bytes), e.dtype !== "complex64" && e.dtype !== "string") {
19817
- const n = e.size * xu(e.dtype);
19817
+ const n = e.size * Eu(e.dtype);
19818
19818
  this.state.numBytes -= n;
19819
19819
  }
19820
19820
  t.backend.disposeData(e.dataId) && this.removeDataId(e.dataId, t.backend);
@@ -20104,7 +20104,7 @@ function Ba(r, e) {
20104
20104
  const i = r.channels || "RGBA";
20105
20105
  return [r.height, r.width * i.length];
20106
20106
  } else if (yA(r))
20107
- return [r.buffer.size / (e == null ? 4 : xu(e))];
20107
+ return [r.buffer.size / (e == null ? 4 : Eu(e))];
20108
20108
  if (!Array.isArray(r))
20109
20109
  return [];
20110
20110
  const n = [];
@@ -20133,7 +20133,7 @@ function zC(r, e, t, n) {
20133
20133
  function H(r, e, t, n = "numeric") {
20134
20134
  if (r instanceof gA())
20135
20135
  return zC(n, r.dtype, e, t), r;
20136
- let i = Bu(r);
20136
+ let i = Uu(r);
20137
20137
  if (i !== "string" && ["bool", "int32", "float32"].indexOf(n) >= 0 && (i = n), zC(n, i, e, t), r == null || !Ts(r) && !Array.isArray(r) && typeof r != "number" && typeof r != "boolean" && typeof r != "string") {
20138
20138
  const u = r == null ? "null" : r.constructor.name;
20139
20139
  throw new Error(`Argument '${e}' passed to '${t}' must be a Tensor or TensorLike, but got '${u}'`);
@@ -20224,7 +20224,7 @@ const Io = /* @__PURE__ */ Z({ complex_: RM });
20224
20224
  */
20225
20225
  function kl(r, e, t, n) {
20226
20226
  if (n == null)
20227
- n = Bu(r);
20227
+ n = Uu(r);
20228
20228
  else if (n === "complex64")
20229
20229
  throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
20230
20230
  if (yA(r) || _A(r)) {
@@ -20281,7 +20281,7 @@ function fi(r, e, t) {
20281
20281
  * limitations under the License.
20282
20282
  * =============================================================================
20283
20283
  */
20284
- const Ru = {
20284
+ const Au = {
20285
20285
  float32: 4,
20286
20286
  float16: 2,
20287
20287
  int32: 4,
@@ -20493,14 +20493,14 @@ function jM(r, e) {
20493
20493
  let n;
20494
20494
  if ("quantization" in r) {
20495
20495
  const i = r.quantization;
20496
- n = Ru[i.dtype];
20496
+ n = Au[i.dtype];
20497
20497
  } else if (r.dtype === "string") {
20498
20498
  let i = 0;
20499
20499
  for (let s = 0; s < t; s++)
20500
20500
  i += Tl + new Uint32Array(e(i, i + Tl))[0];
20501
20501
  return i;
20502
20502
  } else
20503
- n = Ru[r.dtype];
20503
+ n = Au[r.dtype];
20504
20504
  return t * n;
20505
20505
  }
20506
20506
  async function qM(r, e) {
@@ -20508,14 +20508,14 @@ async function qM(r, e) {
20508
20508
  let n;
20509
20509
  if ("quantization" in r) {
20510
20510
  const i = r.quantization;
20511
- n = Ru[i.dtype];
20511
+ n = Au[i.dtype];
20512
20512
  } else if (r.dtype === "string") {
20513
20513
  let i = 0;
20514
20514
  for (let s = 0; s < t; s++)
20515
20515
  i += Tl + new Uint32Array(await e(i, i + Tl))[0];
20516
20516
  return i;
20517
20517
  } else
20518
- n = Ru[r.dtype];
20518
+ n = Au[r.dtype];
20519
20519
  return t * n;
20520
20520
  }
20521
20521
  function CA(r, e) {
@@ -20531,7 +20531,7 @@ function CA(r, e) {
20531
20531
  throw new Error(`Weight ${r.name} is quantized with ${u.dtype} which only supports weights of type float32 not ${n}.`);
20532
20532
  } else
20533
20533
  throw new Error(`Weight ${r.name} has unknown quantization dtype ${u.dtype}. Supported quantization dtypes are: 'uint8', 'uint16', and 'float16'.`);
20534
- const c = Ru[u.dtype], d = u.dtype === "uint8" ? new Uint8Array(e) : new Uint16Array(e);
20534
+ const c = Au[u.dtype], d = u.dtype === "uint8" ? new Uint8Array(e) : new Uint16Array(e);
20535
20535
  if (n === "float32")
20536
20536
  if (u.dtype === "uint8" || u.dtype === "uint16") {
20537
20537
  a = new Float32Array(d.length);
@@ -20564,7 +20564,7 @@ function CA(r, e) {
20564
20564
  a.push(p), o += d;
20565
20565
  }
20566
20566
  } else {
20567
- const u = Ru[n];
20567
+ const u = Au[n];
20568
20568
  if (n === "float32")
20569
20569
  a = new Float32Array(e);
20570
20570
  else if (n === "int32")
@@ -20836,7 +20836,7 @@ const nL = (r) => Fn.registerSaveRouter(r), sL = (r) => Fn.registerLoadRouter(r)
20836
20836
  * limitations under the License.
20837
20837
  * =============================================================================
20838
20838
  */
20839
- const Qv = "tensorflowjs", Zv = 1, _u = "models_store", hl = "model_info_store";
20839
+ const Qv = "tensorflowjs", Zv = 1, gu = "models_store", hl = "model_info_store";
20840
20840
  function AA() {
20841
20841
  if (!de().getBool("IS_BROWSER"))
20842
20842
  throw new Error("Failed to obtain IndexedDB factory because the current environmentis not a web browser.");
@@ -20847,9 +20847,9 @@ function AA() {
20847
20847
  }
20848
20848
  function eb(r) {
20849
20849
  const e = r.result;
20850
- e.createObjectStore(_u, { keyPath: "modelPath" }), e.createObjectStore(hl, { keyPath: "modelPath" });
20850
+ e.createObjectStore(gu, { keyPath: "modelPath" }), e.createObjectStore(hl, { keyPath: "modelPath" });
20851
20851
  }
20852
- class Nu {
20852
+ class Ru {
20853
20853
  constructor(e) {
20854
20854
  if (this.indexedDB = AA(), e == null || !e)
20855
20855
  throw new Error("For IndexedDB, modelPath must not be null, undefined or empty.");
@@ -20883,7 +20883,7 @@ class Nu {
20883
20883
  s.onupgradeneeded = () => eb(s), s.onsuccess = () => {
20884
20884
  const a = s.result;
20885
20885
  if (t == null) {
20886
- const o = a.transaction(_u, "readonly"), c = o.objectStore(_u).get(this.modelPath);
20886
+ const o = a.transaction(gu, "readonly"), c = o.objectStore(gu).get(this.modelPath);
20887
20887
  c.onsuccess = () => {
20888
20888
  if (c.result == null)
20889
20889
  return a.close(), i(new Error(`Cannot find model with path '${this.modelPath}' in IndexedDB.`));
@@ -20900,8 +20900,8 @@ class Nu {
20900
20900
  }
20901
20901
  let p;
20902
20902
  d.onsuccess = () => {
20903
- p = a.transaction(_u, "readwrite");
20904
- const m = p.objectStore(_u);
20903
+ p = a.transaction(gu, "readwrite");
20904
+ const m = p.objectStore(gu);
20905
20905
  let _;
20906
20906
  try {
20907
20907
  _ = m.put({
@@ -20925,15 +20925,15 @@ class Nu {
20925
20925
  });
20926
20926
  }
20927
20927
  }
20928
- Nu.URL_SCHEME = "indexeddb://";
20929
- const RA = (r) => de().getBool("IS_BROWSER") && !Array.isArray(r) && r.startsWith(Nu.URL_SCHEME) ? aL(r.slice(Nu.URL_SCHEME.length)) : null;
20928
+ Ru.URL_SCHEME = "indexeddb://";
20929
+ const RA = (r) => de().getBool("IS_BROWSER") && !Array.isArray(r) && r.startsWith(Ru.URL_SCHEME) ? aL(r.slice(Ru.URL_SCHEME.length)) : null;
20930
20930
  Fn.registerSaveRouter(RA);
20931
20931
  Fn.registerLoadRouter(RA);
20932
20932
  function aL(r) {
20933
- return new Nu(r);
20933
+ return new Ru(r);
20934
20934
  }
20935
20935
  function oL(r) {
20936
- return r.startsWith(Nu.URL_SCHEME) ? r.slice(Nu.URL_SCHEME.length) : r;
20936
+ return r.startsWith(Ru.URL_SCHEME) ? r.slice(Ru.URL_SCHEME.length) : r;
20937
20937
  }
20938
20938
  class lL {
20939
20939
  constructor() {
@@ -20964,8 +20964,8 @@ class lL {
20964
20964
  return s.close(), n(new Error(`Cannot find model with path '${e}' in IndexedDB.`));
20965
20965
  {
20966
20966
  const d = o.delete(e), p = () => {
20967
- c = s.transaction(_u, "readwrite");
20968
- const _ = c.objectStore(_u).delete(e);
20967
+ c = s.transaction(gu, "readwrite");
20968
+ const _ = c.objectStore(gu).delete(e);
20969
20969
  _.onsuccess = () => t(u.result.modelArtifactsInfo), _.onerror = (y) => n(u.error);
20970
20970
  };
20971
20971
  d.onsuccess = p, d.onerror = (m) => (p(), s.close(), n(u.error));
@@ -20993,14 +20993,14 @@ class lL {
20993
20993
  * limitations under the License.
20994
20994
  * =============================================================================
20995
20995
  */
20996
- const yo = "/", wc = "tensorflowjs_models", NA = "info", uL = "model_topology", cL = "weight_specs", dL = "weight_data", hL = "model_metadata";
20996
+ const yo = "/", Sc = "tensorflowjs_models", NA = "info", uL = "model_topology", cL = "weight_specs", dL = "weight_data", hL = "model_metadata";
20997
20997
  function kA(r) {
20998
20998
  return {
20999
- info: [wc, r, NA].join(yo),
21000
- topology: [wc, r, uL].join(yo),
21001
- weightSpecs: [wc, r, cL].join(yo),
21002
- weightData: [wc, r, dL].join(yo),
21003
- modelMetadata: [wc, r, hL].join(yo)
20999
+ info: [Sc, r, NA].join(yo),
21000
+ topology: [Sc, r, uL].join(yo),
21001
+ weightSpecs: [Sc, r, cL].join(yo),
21002
+ weightData: [Sc, r, dL].join(yo),
21003
+ modelMetadata: [Sc, r, hL].join(yo)
21004
21004
  };
21005
21005
  }
21006
21006
  function OA(r) {
@@ -21014,9 +21014,9 @@ function fL(r) {
21014
21014
  return e.slice(1, e.length - 1).join(yo);
21015
21015
  }
21016
21016
  function pL(r) {
21017
- return r.startsWith(ku.URL_SCHEME) ? r.slice(ku.URL_SCHEME.length) : r;
21017
+ return r.startsWith(Nu.URL_SCHEME) ? r.slice(Nu.URL_SCHEME.length) : r;
21018
21018
  }
21019
- class ku {
21019
+ class Nu {
21020
21020
  constructor(e) {
21021
21021
  if (!de().getBool("IS_BROWSER") || typeof window > "u" || typeof window.localStorage > "u")
21022
21022
  throw new Error("The current environment does not support local storage.");
@@ -21089,19 +21089,19 @@ class ku {
21089
21089
  return t.weightData = YM(a), t;
21090
21090
  }
21091
21091
  }
21092
- ku.URL_SCHEME = "localstorage://";
21093
- const $A = (r) => de().getBool("IS_BROWSER") && !Array.isArray(r) && r.startsWith(ku.URL_SCHEME) ? mL(r.slice(ku.URL_SCHEME.length)) : null;
21092
+ Nu.URL_SCHEME = "localstorage://";
21093
+ const $A = (r) => de().getBool("IS_BROWSER") && !Array.isArray(r) && r.startsWith(Nu.URL_SCHEME) ? mL(r.slice(Nu.URL_SCHEME.length)) : null;
21094
21094
  Fn.registerSaveRouter($A);
21095
21095
  Fn.registerLoadRouter($A);
21096
21096
  function mL(r) {
21097
- return new ku(r);
21097
+ return new Nu(r);
21098
21098
  }
21099
21099
  class gL {
21100
21100
  constructor() {
21101
21101
  V(de().getBool("IS_BROWSER"), () => "Current environment is not a web browser"), V(typeof window > "u" || typeof window.localStorage < "u", () => "Current browser does not appear to support localStorage"), this.LS = window.localStorage;
21102
21102
  }
21103
21103
  async listModels() {
21104
- const e = {}, t = wc + yo, n = yo + NA;
21104
+ const e = {}, t = Sc + yo, n = yo + NA;
21105
21105
  for (let i = 0; i < this.LS.length; ++i) {
21106
21106
  const s = this.LS.key(i);
21107
21107
  if (s.startsWith(t) && s.endsWith(n)) {
@@ -21265,11 +21265,11 @@ class TL {
21265
21265
  if (de().get("IS_BROWSER")) {
21266
21266
  de().setPlatform("browser", new TL());
21267
21267
  try {
21268
- pr.registerManager(ku.URL_SCHEME, new gL());
21268
+ pr.registerManager(Nu.URL_SCHEME, new gL());
21269
21269
  } catch {
21270
21270
  }
21271
21271
  try {
21272
- pr.registerManager(Nu.URL_SCHEME, new lL());
21272
+ pr.registerManager(Ru.URL_SCHEME, new lL());
21273
21273
  } catch {
21274
21274
  }
21275
21275
  }
@@ -21335,7 +21335,7 @@ de().get("IS_NODE") && !de().get("IS_BROWSER") && de().setPlatform("node", new w
21335
21335
  * =============================================================================
21336
21336
  */
21337
21337
  function kn(r, e = "float32", t) {
21338
- return e = e || "float32", ti(r), new Au(r, e, t);
21338
+ return e = e || "float32", ti(r), new Iu(r, e, t);
21339
21339
  }
21340
21340
  /**
21341
21341
  * @license
@@ -22011,7 +22011,7 @@ function wh(r) {
22011
22011
  function Mr(r, e) {
22012
22012
  return wh(r) || wh(e);
22013
22013
  }
22014
- function Ou(r) {
22014
+ function ku(r) {
22015
22015
  return Th(r).every((e) => e > 0);
22016
22016
  }
22017
22017
  function $l(r) {
@@ -22026,11 +22026,11 @@ function Vi(r, e, t) {
22026
22026
  if (typeof e == "string")
22027
22027
  throw Error(`Error in ${r}: pad must be an integer when using dimRoundingMode ${t} but got pad ${e}.`);
22028
22028
  if (typeof e == "number")
22029
- V(Eu(e), () => `Error in ${r}: pad must be an integer when using dimRoundingMode ${t} but got pad ${e}.`);
22029
+ V(Cu(e), () => `Error in ${r}: pad must be an integer when using dimRoundingMode ${t} but got pad ${e}.`);
22030
22030
  else if (typeof e == "object")
22031
22031
  e.forEach((n) => {
22032
22032
  n.forEach((i) => {
22033
- V(Eu(i), () => `Error in ${r}: pad must be an integer when using dimRoundingMode ${t} but got pad ${i}.`);
22033
+ V(Cu(i), () => `Error in ${r}: pad must be an integer when using dimRoundingMode ${t} but got pad ${i}.`);
22034
22034
  });
22035
22035
  });
22036
22036
  else
@@ -22484,7 +22484,7 @@ const ZA = /* @__PURE__ */ Z({ ceil_: fU });
22484
22484
  * =============================================================================
22485
22485
  */
22486
22486
  function td(r, e, t) {
22487
- ti(r), t = t || Bu(e);
22487
+ ti(r), t = t || Uu(e);
22488
22488
  const n = { shape: r, value: e, dtype: t };
22489
22489
  return ee.runKernel(m_, {}, n);
22490
22490
  }
@@ -22553,7 +22553,7 @@ function vU(r, e, t, n, i = "NHWC", s = [1, 1], a) {
22553
22553
  let c = o, d = !1;
22554
22554
  o.rank === 3 && (d = !0, c = Se(o, [1, o.shape[0], o.shape[1], o.shape[2]])), V(c.rank === 4, () => `Error in conv2d: input must be rank 4, but got rank ${c.rank}.`), V(u.rank === 4, () => `Error in conv2d: filter must be rank 4, but got rank ${u.rank}.`), Vi("conv2d", n, a);
22555
22555
  const p = i === "NHWC" ? c.shape[3] : c.shape[1];
22556
- V(p === u.shape[2], () => `Error in conv2d: depth of input (${p}) must match input depth for filter ${u.shape[2]}.`), V(Mr(t, s), () => `Error in conv2D: Either strides or dilations must be 1. Got strides ${t} and dilations '${s}'`), V(Ou(s), () => "Error in conv2D: Dilated rates should be larger than 0."), V(Ou(t), () => "Error in conv2D: Strides should be larger than 0.");
22556
+ V(p === u.shape[2], () => `Error in conv2d: depth of input (${p}) must match input depth for filter ${u.shape[2]}.`), V(Mr(t, s), () => `Error in conv2D: Either strides or dilations must be 1. Got strides ${t} and dilations '${s}'`), V(ku(s), () => "Error in conv2D: Dilated rates should be larger than 0."), V(ku(t), () => "Error in conv2D: Strides should be larger than 0.");
22557
22557
  const m = { x: c, filter: u }, _ = { strides: t, pad: n, dataFormat: i, dilations: s, dimRoundingMode: a }, y = ee.runKernel(of, m, _);
22558
22558
  return d ? Se(y, [y.shape[1], y.shape[2], y.shape[3]]) : y;
22559
22559
  }
@@ -22561,7 +22561,7 @@ const sp = /* @__PURE__ */ Z({ conv2d_: vU });
22561
22561
  function bU(r, e, t, n, i = "NWC", s = 1, a) {
22562
22562
  const o = H(r, "x", "conv1d"), u = H(e, "filter", "conv1d");
22563
22563
  let c = o, d = !1;
22564
- o.rank === 2 && (d = !0, c = Se(o, [1, o.shape[0], o.shape[1]])), V(c.rank === 3, () => `Error in conv1d: input must be rank 3, but got rank ${c.rank}.`), V(u.rank === 3, () => `Error in conv1d: filter must be rank 3, but got rank ${u.rank}.`), Vi("conv1d", n, a), V(c.shape[2] === u.shape[1], () => `Error in conv1d: depth of input (${c.shape[2]}) must match input depth for filter ${u.shape[1]}.`), V(Mr(t, s), () => `Error in conv1D: Either stride or dilation must be 1. Got stride ${t} and dilation '${s}'`), V(Ou(s), () => "Error in conv1D: Dilated rates should be larger than 0."), V(Ou(t), () => "Error in conv1D: Stride should be larger than 0."), V(i === "NWC", () => `Error in conv1d: got dataFormat of ${i} but only NWC is currently supported.`);
22564
+ o.rank === 2 && (d = !0, c = Se(o, [1, o.shape[0], o.shape[1]])), V(c.rank === 3, () => `Error in conv1d: input must be rank 3, but got rank ${c.rank}.`), V(u.rank === 3, () => `Error in conv1d: filter must be rank 3, but got rank ${u.rank}.`), Vi("conv1d", n, a), V(c.shape[2] === u.shape[1], () => `Error in conv1d: depth of input (${c.shape[2]}) must match input depth for filter ${u.shape[1]}.`), V(Mr(t, s), () => `Error in conv1D: Either stride or dilation must be 1. Got stride ${t} and dilation '${s}'`), V(ku(s), () => "Error in conv1D: Dilated rates should be larger than 0."), V(ku(t), () => "Error in conv1D: Stride should be larger than 0."), V(i === "NWC", () => `Error in conv1d: got dataFormat of ${i} but only NWC is currently supported.`);
22565
22565
  const p = Se(u, [1, u.shape[0], u.shape[1], u.shape[2]]), m = Se(c, [c.shape[0], 1, c.shape[1], c.shape[2]]), T = sp(m, p, [1, t], n, "NHWC", [1, s], a);
22566
22566
  return d ? Se(T, [T.shape[2], T.shape[3]]) : Se(T, [T.shape[0], T.shape[2], T.shape[3]]);
22567
22567
  }
@@ -22616,7 +22616,7 @@ const oR = /* @__PURE__ */ Z({ conv2dTranspose_: SU });
22616
22616
  function wU(r, e, t, n, i = "NDHWC", s = [1, 1, 1]) {
22617
22617
  const a = H(r, "x", "conv3d"), o = H(e, "filter", "conv3d");
22618
22618
  let u = a, c = !1;
22619
- a.rank === 4 && (c = !0, u = Se(a, [1, a.shape[0], a.shape[1], a.shape[2], a.shape[3]])), V(u.rank === 5, () => `Error in conv3d: input must be rank 5, but got rank ${u.rank}.`), V(o.rank === 5, () => `Error in conv3d: filter must be rank 5, but got rank ${o.rank}.`), V(u.shape[4] === o.shape[3], () => `Error in conv3d: depth of input (${u.shape[4]}) must match input depth for filter ${o.shape[3]}.`), V(Mr(t, s), () => `Error in conv3D: Either strides or dilations must be 1. Got strides ${t} and dilations '${s}'`), V(i === "NDHWC", () => `Error in conv3d: got dataFormat of ${i} but only NDHWC is currently supported.`), V(Ou(s), () => "Error in conv3D: Dilated rates should be larger than 0."), V(Ou(t), () => "Error in conv3D: Strides should be larger than 0.");
22619
+ a.rank === 4 && (c = !0, u = Se(a, [1, a.shape[0], a.shape[1], a.shape[2], a.shape[3]])), V(u.rank === 5, () => `Error in conv3d: input must be rank 5, but got rank ${u.rank}.`), V(o.rank === 5, () => `Error in conv3d: filter must be rank 5, but got rank ${o.rank}.`), V(u.shape[4] === o.shape[3], () => `Error in conv3d: depth of input (${u.shape[4]}) must match input depth for filter ${o.shape[3]}.`), V(Mr(t, s), () => `Error in conv3D: Either strides or dilations must be 1. Got strides ${t} and dilations '${s}'`), V(i === "NDHWC", () => `Error in conv3d: got dataFormat of ${i} but only NDHWC is currently supported.`), V(ku(s), () => "Error in conv3D: Dilated rates should be larger than 0."), V(ku(t), () => "Error in conv3D: Strides should be larger than 0.");
22620
22620
  const d = { x: u, filter: o }, p = { strides: t, pad: n, dataFormat: i, dilations: s }, m = ee.runKernel(uf, d, p);
22621
22621
  return c ? Se(m, [m.shape[1], m.shape[2], m.shape[3], m.shape[4]]) : m;
22622
22622
  }
@@ -23209,7 +23209,7 @@ function jU(r, e = null, t = !1) {
23209
23209
  const i = { x: H(r, "x", "max") }, s = { reductionIndices: e, keepDims: t };
23210
23210
  return ee.runKernel(Cf, i, s);
23211
23211
  }
23212
- const wu = /* @__PURE__ */ Z({ max_: jU });
23212
+ const Su = /* @__PURE__ */ Z({ max_: jU });
23213
23213
  /**
23214
23214
  * @license
23215
23215
  * Copyright 2020 Google Inc. All Rights Reserved.
@@ -23377,7 +23377,7 @@ function wR(r, e, t = null) {
23377
23377
  if (e === 1)
23378
23378
  return gn(Xr(r), t);
23379
23379
  if (e === 1 / 0)
23380
- return wu(Xr(r), t);
23380
+ return Su(Xr(r), t);
23381
23381
  if (e === -1 / 0)
23382
23382
  return fg(Xr(r), t);
23383
23383
  if (e === "euclidean" || e === 2)
@@ -23386,9 +23386,9 @@ function wR(r, e, t = null) {
23386
23386
  }
23387
23387
  if (Array.isArray(t) && t.length === 2) {
23388
23388
  if (e === 1)
23389
- return wu(gn(Xr(r), t[0]), t[1] - 1);
23389
+ return Su(gn(Xr(r), t[0]), t[1] - 1);
23390
23390
  if (e === 1 / 0)
23391
- return wu(gn(Xr(r), t[1]), t[0]);
23391
+ return Su(gn(Xr(r), t[1]), t[0]);
23392
23392
  if (e === -1 / 0)
23393
23393
  return fg(gn(Xr(r), t[1]), t[0]);
23394
23394
  if (e === "fro" || e === "euclidean")
@@ -23825,7 +23825,7 @@ function RR(r, e, t) {
23825
23825
  function g9(r, e = 5, t = 1, n = 1, i = 0.5) {
23826
23826
  const s = H(r, "x", "localResponseNormalization");
23827
23827
  V(s.rank === 4 || s.rank === 3, () => `Error in localResponseNormalization: x must be rank 3 or 4 but got
23828
- rank ${s.rank}.`), V(Eu(e), () => `Error in localResponseNormalization: depthRadius must be an integer but got depthRadius ${e}.`);
23828
+ rank ${s.rank}.`), V(Cu(e), () => `Error in localResponseNormalization: depthRadius must be an integer but got depthRadius ${e}.`);
23829
23829
  let a = s, o = !1;
23830
23830
  s.rank === 3 && (o = !0, a = Se(s, [1, s.shape[0], s.shape[1], s.shape[2]]));
23831
23831
  const u = { x: a }, c = { depthRadius: e, bias: t, alpha: n, beta: i }, d = ee.runKernel(wf, u, c);
@@ -24055,7 +24055,7 @@ function I9(r, e = -1) {
24055
24055
  if (e === -1 && (e = t.rank - 1), e !== t.rank - 1)
24056
24056
  throw Error(`Log Softmax along a non-last dimension is not yet supported. Logits was rank ${t.rank} and axis was ${e}`);
24057
24057
  return Va((i, s) => {
24058
- const o = wu(i, e, !0), u = Rt(i, o), c = Rt(Qt(u, "float32"), Vc(gn(Sl(u), e, !0)));
24058
+ const o = Su(i, e, !0), u = Rt(i, o), c = Rt(Qt(u, "float32"), Vc(gn(Sl(u), e, !0)));
24059
24059
  return s([c]), { value: c, gradFunc: (p, m) => {
24060
24060
  const [_] = m, y = !0, b = Sl(_);
24061
24061
  return Rt(p, Ye(gn(p, e, y), b));
@@ -24080,7 +24080,7 @@ const $R = /* @__PURE__ */ Z({ logSoftmax_: I9 });
24080
24080
  * =============================================================================
24081
24081
  */
24082
24082
  function A9(r, e = null, t = !1) {
24083
- const n = H(r, "x", "logSumExp"), i = On(e, n.shape), s = wu(
24083
+ const n = H(r, "x", "logSumExp"), i = On(e, n.shape), s = Su(
24084
24084
  n,
24085
24085
  i,
24086
24086
  !0
@@ -24667,21 +24667,21 @@ function X9(r, e, t = 0) {
24667
24667
  const i = { paddings: e, constantValue: t }, s = { x: n };
24668
24668
  return ee.runKernel(Df, s, i);
24669
24669
  }
24670
- const Gu = /* @__PURE__ */ Z({ pad_: X9 });
24670
+ const Vu = /* @__PURE__ */ Z({ pad_: X9 });
24671
24671
  function Y9(r, e, t = 0) {
24672
- return V(e.length === 2, () => "Invalid number of paddings. Must be length of 2."), Gu(r, [e], t);
24672
+ return V(e.length === 2, () => "Invalid number of paddings. Must be length of 2."), Vu(r, [e], t);
24673
24673
  }
24674
24674
  const zR = /* @__PURE__ */ Z({ pad1d_: Y9 });
24675
24675
  function J9(r, e, t = 0) {
24676
- return V(e.length === 2 && e[0].length === 2 && e[1].length === 2, () => "Invalid number of paddings. Must be length of 2 each."), Gu(r, e, t);
24676
+ return V(e.length === 2 && e[0].length === 2 && e[1].length === 2, () => "Invalid number of paddings. Must be length of 2 each."), Vu(r, e, t);
24677
24677
  }
24678
24678
  const jR = /* @__PURE__ */ Z({ pad2d_: J9 });
24679
24679
  function Q9(r, e, t = 0) {
24680
- return V(e.length === 3 && e[0].length === 2 && e[1].length === 2 && e[2].length === 2, () => "Invalid number of paddings. Must be length of 2 each."), Gu(r, e, t);
24680
+ return V(e.length === 3 && e[0].length === 2 && e[1].length === 2 && e[2].length === 2, () => "Invalid number of paddings. Must be length of 2 each."), Vu(r, e, t);
24681
24681
  }
24682
24682
  const pS = /* @__PURE__ */ Z({ pad3d_: Q9 });
24683
24683
  function Z9(r, e, t = 0) {
24684
- return V(e.length === 4 && e[0].length === 2 && e[1].length === 2 && e[2].length === 2 && e[3].length === 2, () => "Invalid number of paddings. Must be length of 2 each."), Gu(r, e, t);
24684
+ return V(e.length === 4 && e[0].length === 2 && e[1].length === 2 && e[2].length === 2 && e[3].length === 2, () => "Invalid number of paddings. Must be length of 2 each."), Vu(r, e, t);
24685
24685
  }
24686
24686
  const qR = /* @__PURE__ */ Z({ pad4d_: Z9 });
24687
24687
  /**
@@ -25268,14 +25268,14 @@ const g7 = {}, _7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
25268
25268
  // math: package containing random, pow, and seedrandom
25269
25269
  );
25270
25270
  })(eN);
25271
- var y7 = eN.exports, v7 = c7, b7 = d7, T7 = h7, S7 = f7, w7 = p7, C7 = m7, Wu = y7;
25272
- Wu.alea = v7;
25273
- Wu.xor128 = b7;
25274
- Wu.xorwow = T7;
25275
- Wu.xorshift7 = S7;
25276
- Wu.xor4096 = w7;
25277
- Wu.tychei = C7;
25278
- var wS = Wu;
25271
+ var y7 = eN.exports, v7 = c7, b7 = d7, T7 = h7, S7 = f7, w7 = p7, C7 = m7, Gu = y7;
25272
+ Gu.alea = v7;
25273
+ Gu.xor128 = b7;
25274
+ Gu.xorwow = T7;
25275
+ Gu.xorshift7 = S7;
25276
+ Gu.xor4096 = w7;
25277
+ Gu.tychei = C7;
25278
+ var wS = Gu;
25279
25279
  /**
25280
25280
  * @license
25281
25281
  * Copyright 2017 Google LLC. All Rights Reserved.
@@ -25894,7 +25894,7 @@ async function tB(r, e) {
25894
25894
  let o = 0;
25895
25895
  for (let d = 0; d < i.length; d++)
25896
25896
  a.has(i[d]) || o++;
25897
- const u = new Au([o], t.dtype), c = new Au([o], "int32");
25897
+ const u = new Iu([o], t.dtype), c = new Iu([o], "int32");
25898
25898
  for (let d = 0, p = 0; d < i.length; d++)
25899
25899
  a.has(i[d]) || (u.values[p] = i[d], c.values[p] = d, p++);
25900
25900
  return [u.toTensor(), c.toTensor()];
@@ -26358,7 +26358,7 @@ const CN = /* @__PURE__ */ Z({ tan_: bB });
26358
26358
  * =============================================================================
26359
26359
  */
26360
26360
  function di(r, e) {
26361
- Uu(r);
26361
+ Lu(r);
26362
26362
  const t = Ba(r, e);
26363
26363
  if (t.length !== 1)
26364
26364
  throw new Error("tensor1d() requires values to be a flat/TypedArray");
@@ -26380,8 +26380,8 @@ function di(r, e) {
26380
26380
  * limitations under the License.
26381
26381
  * =============================================================================
26382
26382
  */
26383
- function Cu(r, e, t) {
26384
- if (Uu(r), e != null && e.length !== 2)
26383
+ function wu(r, e, t) {
26384
+ if (Lu(r), e != null && e.length !== 2)
26385
26385
  throw new Error("tensor2d() requires shape to have two numbers");
26386
26386
  const n = Ba(r, t);
26387
26387
  if (n.length !== 2 && n.length !== 1)
@@ -26407,7 +26407,7 @@ function Cu(r, e, t) {
26407
26407
  * =============================================================================
26408
26408
  */
26409
26409
  function $S(r, e, t) {
26410
- if (Uu(r), e != null && e.length !== 3)
26410
+ if (Lu(r), e != null && e.length !== 3)
26411
26411
  throw new Error("tensor3d() requires shape to have three numbers");
26412
26412
  const n = Ba(r, t);
26413
26413
  if (n.length !== 3 && n.length !== 1)
@@ -26433,7 +26433,7 @@ function $S(r, e, t) {
26433
26433
  * =============================================================================
26434
26434
  */
26435
26435
  function EN(r, e, t) {
26436
- if (Uu(r), e != null && e.length !== 4)
26436
+ if (Lu(r), e != null && e.length !== 4)
26437
26437
  throw new Error("tensor4d() requires shape to have four numbers");
26438
26438
  const n = Ba(r, t);
26439
26439
  if (n.length !== 4 && n.length !== 1)
@@ -26459,7 +26459,7 @@ function EN(r, e, t) {
26459
26459
  * =============================================================================
26460
26460
  */
26461
26461
  function xN(r, e, t) {
26462
- if (Uu(r), e != null && e.length !== 5)
26462
+ if (Lu(r), e != null && e.length !== 5)
26463
26463
  throw new Error("tensor5d() requires shape to have five numbers");
26464
26464
  const n = Ba(r, t);
26465
26465
  if (n.length !== 5 && n.length !== 1)
@@ -26485,7 +26485,7 @@ function xN(r, e, t) {
26485
26485
  * =============================================================================
26486
26486
  */
26487
26487
  function IN(r, e, t) {
26488
- if (Uu(r), e != null && e.length !== 6)
26488
+ if (Lu(r), e != null && e.length !== 6)
26489
26489
  throw new Error("tensor6d() requires shape to have six numbers");
26490
26490
  const n = Ba(r, t);
26491
26491
  if (n.length !== 6 && n.length !== 1)
@@ -26663,7 +26663,7 @@ const kN = /* @__PURE__ */ Z({ unique_: EB });
26663
26663
  */
26664
26664
  function xB(r, e, t) {
26665
26665
  const n = H(r, "x", "unsortedSegmentSum"), i = H(e, "segmentIds", "unsortedSegmentSum", "int32");
26666
- V(Eu(t), () => "numSegments must be of dtype int");
26666
+ V(Cu(t), () => "numSegments must be of dtype int");
26667
26667
  const s = { x: n, segmentIds: i }, a = { numSegments: t };
26668
26668
  return ee.runKernel(OT, s, a);
26669
26669
  }
@@ -26828,8 +26828,8 @@ function NB(r, e, t) {
26828
26828
  const i = { x: n }, s = { perm: e };
26829
26829
  return n.dtype === "complex64" ? Tt(() => {
26830
26830
  let a = Gc(n), o = op(n);
26831
- return a = ee.runKernel(Su, { x: a }, s), o = ee.runKernel(Su, { x: o }, s), t && (o = ma(o)), Io(a, o);
26832
- }) : ee.runKernel(Su, i, s);
26831
+ return a = ee.runKernel(Tu, { x: a }, s), o = ee.runKernel(Tu, { x: o }, s), t && (o = ma(o)), Io(a, o);
26832
+ }) : ee.runKernel(Tu, i, s);
26833
26833
  }
26834
26834
  const Nh = /* @__PURE__ */ Z({ transpose_: NB });
26835
26835
  /**
@@ -27487,7 +27487,7 @@ function eH(r, e, t, n = !1, i = 0) {
27487
27487
  ]);
27488
27488
  a.push(u), s += t;
27489
27489
  }
27490
- return a.length === 0 ? Cu([], [0, e]) : Se(er(a), [a.length, e]);
27490
+ return a.length === 0 ? wu([], [0, e]) : Se(er(a), [a.length, e]);
27491
27491
  }
27492
27492
  const WN = /* @__PURE__ */ Z({ frame_: eH });
27493
27493
  /**
@@ -28183,13 +28183,13 @@ function YC(r, e = !1) {
28183
28183
  V(r.shape.length === 2, () => `qr2d() requires a 2D Tensor, but got a ${r.shape.length}D Tensor.`);
28184
28184
  const t = r.shape[0], n = r.shape[1];
28185
28185
  let i = eS(t), s = So(r);
28186
- const a = Cu([[1]], [1, 1]);
28186
+ const a = wu([[1]], [1, 1]);
28187
28187
  let o = So(a);
28188
28188
  const u = t >= n ? n : t;
28189
28189
  for (let c = 0; c < u; ++c) {
28190
28190
  const d = s, p = o, m = i;
28191
28191
  [o, s, i] = ee.tidy(() => {
28192
- const _ = cn(s, [c, c], [t - c, 1]), y = ap(_), b = cn(s, [c, c], [1, 1]), T = wo(nd(b, 0), Cu([[-1]]), Cu([[1]])), w = Rt(b, Ye(T, y)), x = fn(_, w);
28192
+ const _ = cn(s, [c, c], [t - c, 1]), y = ap(_), b = cn(s, [c, c], [1, 1]), T = wo(nd(b, 0), wu([[-1]]), wu([[1]])), w = Rt(b, Ye(T, y)), x = fn(_, w);
28193
28193
  x.shape[0] === 1 ? o = So(a) : o = er([
28194
28194
  a,
28195
28195
  cn(x, [1, 0], [x.shape[0] - 1, x.shape[1]])
@@ -28731,7 +28731,7 @@ const zN = {
28731
28731
  hannWindow: GN,
28732
28732
  frame: WN,
28733
28733
  stft: nH
28734
- }, $u = {
28734
+ }, Ou = {
28735
28735
  flipLeftRight: aH,
28736
28736
  grayscaleToRGB: lH,
28737
28737
  resizeNearestNeighbor: DH,
@@ -29515,11 +29515,11 @@ const OV = "model", $V = ".json", DV = ".weights.bin";
29515
29515
  function JC(r) {
29516
29516
  return new Promise((e) => setTimeout(e)).then(r);
29517
29517
  }
29518
- class Du {
29518
+ class $u {
29519
29519
  constructor(e) {
29520
29520
  if (!de().getBool("IS_BROWSER"))
29521
29521
  throw new Error("browserDownloads() cannot proceed because the current environment is not a browser.");
29522
- e.startsWith(Du.URL_SCHEME) && (e = e.slice(Du.URL_SCHEME.length)), (e == null || e.length === 0) && (e = OV), this.modelJsonFileName = e + $V, this.weightDataFileName = e + DV;
29522
+ e.startsWith($u.URL_SCHEME) && (e = e.slice($u.URL_SCHEME.length)), (e == null || e.length === 0) && (e = OV), this.modelJsonFileName = e + $V, this.weightDataFileName = e + DV;
29523
29523
  }
29524
29524
  async save(e) {
29525
29525
  if (typeof document > "u")
@@ -29540,7 +29540,7 @@ class Du {
29540
29540
  }
29541
29541
  }
29542
29542
  }
29543
- Du.URL_SCHEME = "downloads://";
29543
+ $u.URL_SCHEME = "downloads://";
29544
29544
  class PV {
29545
29545
  constructor(e) {
29546
29546
  if (e == null || e.length < 1)
@@ -29604,10 +29604,10 @@ class PV {
29604
29604
  return i;
29605
29605
  }
29606
29606
  }
29607
- const FV = (r) => de().getBool("IS_BROWSER") && !Array.isArray(r) && r.startsWith(Du.URL_SCHEME) ? MV(r.slice(Du.URL_SCHEME.length)) : null;
29607
+ const FV = (r) => de().getBool("IS_BROWSER") && !Array.isArray(r) && r.startsWith($u.URL_SCHEME) ? MV(r.slice($u.URL_SCHEME.length)) : null;
29608
29608
  Fn.registerSaveRouter(FV);
29609
29609
  function MV(r = "model") {
29610
- return new Du(r);
29610
+ return new $u(r);
29611
29611
  }
29612
29612
  function LV(r) {
29613
29613
  return new PV(r);
@@ -29693,7 +29693,7 @@ function e3(r) {
29693
29693
  if (e.forEach((_, y) => {
29694
29694
  let b = 0;
29695
29695
  _.weights.forEach((T) => {
29696
- const w = "quantization" in T ? T.quantization.dtype : T.dtype, x = Ru[w] * ge(T.shape), E = () => {
29696
+ const w = "quantization" in T ? T.quantization.dtype : T.dtype, x = Au[w] * ge(T.shape), E = () => {
29697
29697
  i[y] = !0, s[y] == null && (s[y] = []), s[y].push({
29698
29698
  manifestEntry: T,
29699
29699
  groupOffset: b,
@@ -31230,7 +31230,7 @@ const wG = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31230
31230
  */
31231
31231
  function zc(r) {
31232
31232
  try {
31233
- return r.map((e) => Iu(e));
31233
+ return r.map((e) => xu(e));
31234
31234
  } catch (e) {
31235
31235
  throw new Error(`Failed to decode encoded string bytes into utf-8, error: ${e}`);
31236
31236
  }
@@ -31321,7 +31321,7 @@ const M3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31321
31321
  shouldFuse: F0,
31322
31322
  slice_util: m3,
31323
31323
  splitRealAndImagArrays: pG,
31324
- stridesOrDilationsArePositive: Ou,
31324
+ stridesOrDilationsArePositive: ku,
31325
31325
  tupleValuesAreOne: wh,
31326
31326
  upcastType: _a,
31327
31327
  validateDefaultValueShape: T3,
@@ -31563,12 +31563,12 @@ const L3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31563
31563
  Tan: _0,
31564
31564
  Tanh: y0,
31565
31565
  Tensor: nn,
31566
- TensorBuffer: Au,
31566
+ TensorBuffer: Iu,
31567
31567
  TensorScatterUpdate: Hf,
31568
31568
  Tile: ed,
31569
31569
  TopK: Kf,
31570
31570
  Transform: Xf,
31571
- Transpose: Su,
31571
+ Transpose: Tu,
31572
31572
  Unique: v0,
31573
31573
  Unpack: b0,
31574
31574
  UnsortedSegmentSum: OT,
@@ -31679,7 +31679,7 @@ const L3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31679
31679
  greaterEqual: sS,
31680
31680
  ifft: Rh,
31681
31681
  imag: op,
31682
- image: $u,
31682
+ image: Ou,
31683
31683
  inTopKAsync: HN,
31684
31684
  io: YS,
31685
31685
  irfft: NS,
@@ -31707,7 +31707,7 @@ const L3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31707
31707
  lowerBound: PR,
31708
31708
  matMul: en,
31709
31709
  math: JV,
31710
- max: wu,
31710
+ max: Su,
31711
31711
  maxPool: cS,
31712
31712
  maxPool3d: FR,
31713
31713
  maxPoolWithArgmax: MR,
@@ -31733,7 +31733,7 @@ const L3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31733
31733
  onesLike: GR,
31734
31734
  op: Z,
31735
31735
  outerProduct: WR,
31736
- pad: Gu,
31736
+ pad: Vu,
31737
31737
  pad1d: zR,
31738
31738
  pad2d: jR,
31739
31739
  pad3d: pS,
@@ -31815,7 +31815,7 @@ const L3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31815
31815
  tanh: hg,
31816
31816
  tensor: fi,
31817
31817
  tensor1d: di,
31818
- tensor2d: Cu,
31818
+ tensor2d: wu,
31819
31819
  tensor3d: $S,
31820
31820
  tensor4d: EN,
31821
31821
  tensor5d: xN,
@@ -32043,14 +32043,14 @@ function U3(r, e) {
32043
32043
  return;
32044
32044
  }
32045
32045
  const n = +t[1], i = r.split(`
32046
- `), s = i.length.toString().length + 2, a = i.map((p, m) => bu((m + 1).toString(), s) + p);
32046
+ `), s = i.length.toString().length + 2, a = i.map((p, m) => vu((m + 1).toString(), s) + p);
32047
32047
  let o = 0;
32048
32048
  for (let p = 0; p < a.length; p++)
32049
32049
  o = Math.max(a[p].length, o);
32050
32050
  const u = a.slice(0, n - 1), c = a.slice(n - 1, n), d = a.slice(n);
32051
32051
  console.log(u.join(`
32052
32052
  `)), console.log(e.split(`
32053
- `)[0]), console.log(`%c ${bu(c[0], o)}`, "border:1px solid red; background-color:#e3d2d2; color:#a61717"), console.log(d.join(`
32053
+ `)[0]), console.log(`%c ${vu(c[0], o)}`, "border:1px solid red; background-color:#e3d2d2; color:#a61717"), console.log(d.join(`
32054
32054
  `));
32055
32055
  }
32056
32056
  function LG(r) {
@@ -32440,7 +32440,7 @@ function Sr() {
32440
32440
  * limitations under the License.
32441
32441
  * =============================================================================
32442
32442
  */
32443
- function zu(r, e, t = "index") {
32443
+ function Wu(r, e, t = "index") {
32444
32444
  const n = an(e);
32445
32445
  return n.map((i, s) => {
32446
32446
  const a = `int ${r[s]} = ${t} / ${i}`, o = s === n.length - 1 ? `int ${r[s + 1]} = ${t} - ${r[s]} * ${i}` : `index -= ${r[s]} * ${i}`;
@@ -32914,7 +32914,7 @@ function SW(r, e, t) {
32914
32914
  return ivec3(r, c, d);
32915
32915
  }
32916
32916
  `;
32917
- const n = zu(["r", "c", "d"], r);
32917
+ const n = Wu(["r", "c", "d"], r);
32918
32918
  return `
32919
32919
  ivec3 getOutputCoords() {
32920
32920
  ivec2 resTexRC = ivec2(resultUV.yx *
@@ -32986,7 +32986,7 @@ function CW(r, e, t) {
32986
32986
  return ivec4(r, c, d, d2);
32987
32987
  }
32988
32988
  `;
32989
- const n = zu(["r", "c", "d", "d2"], r);
32989
+ const n = Wu(["r", "c", "d", "d2"], r);
32990
32990
  return `
32991
32991
  ivec4 getOutputCoords() {
32992
32992
  ivec2 resTexRC = ivec2(resultUV.yx *
@@ -32998,7 +32998,7 @@ function CW(r, e, t) {
32998
32998
  `;
32999
32999
  }
33000
33000
  function EW(r, e) {
33001
- const t = zu(["r", "c", "d", "d2", "d3"], r);
33001
+ const t = Wu(["r", "c", "d", "d2", "d3"], r);
33002
33002
  return `
33003
33003
  ivec5 getOutputCoords() {
33004
33004
  ivec2 resTexRC = ivec2(resultUV.yx * vec2(${e[0]},
@@ -33014,7 +33014,7 @@ function EW(r, e) {
33014
33014
  `;
33015
33015
  }
33016
33016
  function xW(r, e) {
33017
- const t = zu(["r", "c", "d", "d2", "d3", "d4"], r);
33017
+ const t = Wu(["r", "c", "d", "d2", "d3", "d4"], r);
33018
33018
  return `
33019
33019
  ivec6 getOutputCoords() {
33020
33020
  ivec2 resTexRC = ivec2(resultUV.yx *
@@ -33125,7 +33125,7 @@ function AW(r, e, t) {
33125
33125
  }
33126
33126
  `;
33127
33127
  }
33128
- function ju(r) {
33128
+ function zu(r) {
33129
33129
  return `offset${r}`;
33130
33130
  }
33131
33131
  function RW(r) {
@@ -33147,7 +33147,7 @@ function NW(r, e) {
33147
33147
  return sampleTexture(${t}, halfCR);
33148
33148
  }
33149
33149
  `;
33150
- const a = ju(t);
33150
+ const a = zu(t);
33151
33151
  if (e)
33152
33152
  return `
33153
33153
  float ${n}() {
@@ -33198,7 +33198,7 @@ function OW(r, e) {
33198
33198
  return sampleTexture(${t}, halfCR);
33199
33199
  }
33200
33200
  `;
33201
- const o = ju(t);
33201
+ const o = zu(t);
33202
33202
  return a === 1 ? e ? `
33203
33203
  float ${n}(int index) {
33204
33204
  vec2 uv = vec2(0.5, (float(index + ${o}) + 0.5) / float(${t}TexShape[0]));
@@ -33299,7 +33299,7 @@ function DW(r, e) {
33299
33299
  ${ad(r)}
33300
33300
  }
33301
33301
  `;
33302
- const c = s[0], d = s[1], p = ju(n);
33302
+ const c = s[0], d = s[1], p = zu(n);
33303
33303
  return d === 1 ? e ? `
33304
33304
  float ${i}(int row, int col) {
33305
33305
  float index = dot(vec3(row, col, ${p}), vec3(${n}Shape[1], 1, 1));
@@ -33427,7 +33427,7 @@ function FW(r, e) {
33427
33427
  return sampleTexture(${n}, uv);
33428
33428
  }
33429
33429
  `;
33430
- const y = ju(n);
33430
+ const y = zu(n);
33431
33431
  return e ? `
33432
33432
  float ${i}(int row, int col, int depth) {
33433
33433
  // Explicitly use integer operations as dot() only works on floats.
@@ -33540,7 +33540,7 @@ function LW(r, e) {
33540
33540
  return sampleTexture(${n}, uv);
33541
33541
  }
33542
33542
  `;
33543
- const w = ju(n);
33543
+ const w = zu(n);
33544
33544
  return e ? `
33545
33545
  float ${i}(int row, int col, int depth, int depth2) {
33546
33546
  // Explicitly use integer operations as dot() only works on floats.
@@ -33608,7 +33608,7 @@ function UW(r) {
33608
33608
  return sampleTexture(${t}, uv);
33609
33609
  }
33610
33610
  `;
33611
- const y = ju(t);
33611
+ const y = zu(t);
33612
33612
  return `
33613
33613
  float ${n}(int row, int col, int depth, int depth2, int depth3) {
33614
33614
  // Explicitly use integer operations as dot() only works on floats.
@@ -33674,7 +33674,7 @@ function BW(r) {
33674
33674
  return sampleTexture(${t}, uv);
33675
33675
  }
33676
33676
  `;
33677
- const b = ju(t);
33677
+ const b = zu(t);
33678
33678
  return `
33679
33679
  float ${n}(int row, int col, int depth,
33680
33680
  int depth2, int depth3, int depth4) {
@@ -34015,7 +34015,7 @@ class jW {
34015
34015
  const t = Sr();
34016
34016
  this.outputShape = e, this.enableShapeUniforms = sr(this.outputShape.length), this.userCode = `
34017
34017
  ivec3 outCoordsFromFlatIndex(int index) {
34018
- ${this.enableShapeUniforms ? G0(["r", "c", "d"], e) : zu(["r", "c", "d"], e)}
34018
+ ${this.enableShapeUniforms ? G0(["r", "c", "d"], e) : Wu(["r", "c", "d"], e)}
34019
34019
  return ivec3(r, c, d);
34020
34020
  }
34021
34021
 
@@ -34058,7 +34058,7 @@ class qW {
34058
34058
  const t = Sr();
34059
34059
  this.outputShape = e, this.enableShapeUniforms = sr(this.outputShape.length), this.userCode = `
34060
34060
  ivec3 outCoordsFromFlatIndex(int index) {
34061
- ${this.enableShapeUniforms ? G0(["r", "c", "d"], e) : zu(["r", "c", "d"], e)}
34061
+ ${this.enableShapeUniforms ? G0(["r", "c", "d"], e) : Wu(["r", "c", "d"], e)}
34062
34062
  return ivec3(r, c, d);
34063
34063
  }
34064
34064
 
@@ -35251,7 +35251,7 @@ const J3 = Ur((r, e) => r * e);
35251
35251
  * =============================================================================
35252
35252
  */
35253
35253
  function Lz(r, e, t) {
35254
- const n = Vu(-1, t);
35254
+ const n = Hu(-1, t);
35255
35255
  return J3([], e, n, r, t);
35256
35256
  }
35257
35257
  /**
@@ -35814,7 +35814,7 @@ function Qz(r, e, t, n, i, s, a, o, u, c) {
35814
35814
  const d = [n / i, i], p = r.values, m = e.values;
35815
35815
  if (n === 0)
35816
35816
  return kn(t, e.dtype);
35817
- const _ = u instanceof Au ? u : kn(d, e.dtype);
35817
+ const _ = u instanceof Iu ? u : kn(d, e.dtype);
35818
35818
  typeof u == "string" || typeof u == "number" ? _.values.fill(u) : typeof u == "boolean" && _.values.fill(+u);
35819
35819
  for (let y = 0; y < s; y++) {
35820
35820
  const b = [];
@@ -36472,7 +36472,7 @@ function sk(r, e, t, n) {
36472
36472
  s[1] = t[i];
36473
36473
  for (let y = i + 1; y < t.length; y++)
36474
36474
  s[2] *= t[y];
36475
- const a = /* @__PURE__ */ new Map(), o = new Int32Array(t[i]), u = new Au(s, n, r), c = [], d = s[0] === 1 && s[2] === 1;
36475
+ const a = /* @__PURE__ */ new Map(), o = new Int32Array(t[i]), u = new Iu(s, n, r), c = [], d = s[0] === 1 && s[2] === 1;
36476
36476
  for (let y = 0; y < t[i]; y++) {
36477
36477
  let b;
36478
36478
  if (d)
@@ -36494,7 +36494,7 @@ function sk(r, e, t, n) {
36494
36494
  }
36495
36495
  const p = s.slice();
36496
36496
  p[1] = a.size;
36497
- const m = new Au(p, n);
36497
+ const m = new Iu(p, n);
36498
36498
  c.forEach((y, b) => {
36499
36499
  for (let T = 0; T < s[0]; T++)
36500
36500
  for (let w = 0; w < s[2]; w++)
@@ -36764,7 +36764,7 @@ class lk {
36764
36764
  function aq(r, e) {
36765
36765
  return `
36766
36766
  ivec3 inputCoordsFromReshapedOutCoords(int index) {
36767
- ${e ? aW(["r", "c", "d"], "inputShape") : zu(["r", "c", "d"], r)}
36767
+ ${e ? aW(["r", "c", "d"], "inputShape") : Wu(["r", "c", "d"], r)}
36768
36768
  return ivec3(r, c, d);
36769
36769
  }
36770
36770
  `;
@@ -37215,7 +37215,7 @@ class W0 extends Mg {
37215
37215
  const t = this.readSync(e.dataId);
37216
37216
  if (e.dtype === "string")
37217
37217
  try {
37218
- const n = t.map((i) => Iu(i));
37218
+ const n = t.map((i) => xu(i));
37219
37219
  return kn(e.shape, e.dtype, n);
37220
37220
  } catch {
37221
37221
  throw new Error("Failed to decode encoded string bytes into utf-8");
@@ -37515,7 +37515,7 @@ class W0 extends Mg {
37515
37515
  return this.textureManager.acquireTexture(e, t, i);
37516
37516
  }
37517
37517
  computeBytes(e, t) {
37518
- return e[0] * e[1] * xu(t);
37518
+ return e[0] * e[1] * Eu(t);
37519
37519
  }
37520
37520
  checkCompileCompletion() {
37521
37521
  for (const [, e] of Object.entries(this.binaryCache))
@@ -37623,7 +37623,7 @@ const Cw = `
37623
37623
  if (isnan(a)) return a;
37624
37624
  if (isnan(b)) return b;
37625
37625
  `;
37626
- class Pu {
37626
+ class Du {
37627
37627
  constructor(e, t, n) {
37628
37628
  this.variableNames = ["A", "B"], this.outputShape = Dt(t, n), this.enableShapeUniforms = sr(this.outputShape.length), this.userCode = `
37629
37629
  float binaryOperation(float a, float b) {
@@ -37654,7 +37654,7 @@ class Pu {
37654
37654
  * limitations under the License.
37655
37655
  * =============================================================================
37656
37656
  */
37657
- const qu = `
37657
+ const ju = `
37658
37658
  result.r = isNaN.r ? NAN : result.r;
37659
37659
  result.g = isNaN.g ? NAN : result.g;
37660
37660
  result.b = isNaN.b ? NAN : result.b;
@@ -37793,7 +37793,7 @@ const uk = "return (a < 0.) ? b * a : a;", ck = `
37793
37793
  return (aLessThanZero * (b * a)) + ((vec4(1.0) - aLessThanZero) * a);
37794
37794
  `;
37795
37795
  function Oq(r) {
37796
- const { inputs: e, backend: t, attrs: n } = r, { x: i } = e, { alpha: s } = n, a = t.makeTensorInfo([], "float32", Vu(s, "float32")), o = de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new ud(ck, i.shape, a.shape) : new Pu(uk, i.shape, a.shape), u = t.runWebGLProgram(o, [i, a], "float32");
37796
+ const { inputs: e, backend: t, attrs: n } = r, { x: i } = e, { alpha: s } = n, a = t.makeTensorInfo([], "float32", Hu(s, "float32")), o = de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new ud(ck, i.shape, a.shape) : new Du(uk, i.shape, a.shape), u = t.runWebGLProgram(o, [i, a], "float32");
37797
37797
  return t.disposeIntermediateTensorInfo(a), u;
37798
37798
  }
37799
37799
  const $q = {
@@ -37822,7 +37822,7 @@ const dk = "return (a < 0.) ? b * a : a;", hk = `
37822
37822
  return (aLessThanZero * (b * a)) + ((vec4(1.0) - aLessThanZero) * a);
37823
37823
  `;
37824
37824
  function Dq(r) {
37825
- const { inputs: e, backend: t } = r, { x: n, alpha: i } = e, s = de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new ud(hk, n.shape, i.shape) : new Pu(dk, n.shape, i.shape);
37825
+ const { inputs: e, backend: t } = r, { x: n, alpha: i } = e, s = de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new ud(hk, n.shape, i.shape) : new Du(dk, n.shape, i.shape);
37826
37826
  return t.runWebGLProgram(s, [n, i], "float32");
37827
37827
  }
37828
37828
  const Pq = {
@@ -37875,7 +37875,7 @@ function Us({ opSnippet: r, packedOpSnippet: e, checkOutOfBounds: t = !1, suppor
37875
37875
  dataId: R.dataId,
37876
37876
  dtype: R.dtype,
37877
37877
  shape: c.shape
37878
- }, O = new Pu(r, u.shape, c.shape);
37878
+ }, O = new Du(r, u.shape, c.shape);
37879
37879
  return d.runWebGLProgram(O, [P, B], _a(I.dtype, R.dtype));
37880
37880
  }), x = Ml({ inputs: { real: T, imag: w }, backend: d });
37881
37881
  return d.disposeIntermediateTensorInfo(T), d.disposeIntermediateTensorInfo(w), x;
@@ -37893,7 +37893,7 @@ function Us({ opSnippet: r, packedOpSnippet: e, checkOutOfBounds: t = !1, suppor
37893
37893
  }
37894
37894
  const m = de().getBool("WEBGL_PACK_BINARY_OPERATIONS") && e != null;
37895
37895
  let _;
37896
- return m ? _ = new ud(e, u.shape, c.shape, t) : _ = new Pu(r, u.shape, c.shape), d.runWebGLProgram(_, [u, c], p);
37896
+ return m ? _ = new ud(e, u.shape, c.shape, t) : _ = new Du(r, u.shape, c.shape), d.runWebGLProgram(_, [u, c], p);
37897
37897
  };
37898
37898
  }
37899
37899
  function $h(r, e = !1) {
@@ -38067,7 +38067,7 @@ function Ew(r) {
38067
38067
  return m.values = c, p;
38068
38068
  }
38069
38069
  let a;
38070
- return de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? a = new ud(yE, n.shape, i.shape) : a = new Pu(yE, n.shape, i.shape), t.runWebGLProgram(a, [n, i], s);
38070
+ return de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? a = new ud(yE, n.shape, i.shape) : a = new Du(yE, n.shape, i.shape), t.runWebGLProgram(a, [n, i], s);
38071
38071
  }
38072
38072
  const Fq = {
38073
38073
  kernelName: M_,
@@ -38156,7 +38156,7 @@ class vE {
38156
38156
  let c = "sumValue += dot(values, ones);";
38157
38157
  if (t != null) {
38158
38158
  const p = 1 / t;
38159
- c = `sumValue += dot(values * ${Eu(p) ? p.toPrecision(2) : p}, ones);`;
38159
+ c = `sumValue += dot(values * ${Cu(p) ? p.toPrecision(2) : p}, ones);`;
38160
38160
  }
38161
38161
  let d = "";
38162
38162
  s % n > 0 && (d = `
@@ -38367,7 +38367,7 @@ function Bq(r) {
38367
38367
  }
38368
38368
  return e;
38369
38369
  }
38370
- function Ku(r, e, t, n) {
38370
+ function qu(r, e, t, n) {
38371
38371
  const i = Bq(r.shape);
38372
38372
  let s = r;
38373
38373
  for (let a = 0; a < i.length; a++) {
@@ -38511,7 +38511,7 @@ function Wq(r, e, t, n) {
38511
38511
  const [p, m] = nr(d.shape, o);
38512
38512
  let _ = p;
38513
38513
  t && (_ = fs(p, a));
38514
- const y = ge(m), T = ge(r.shape) / y, w = Ke({ inputs: { x: d }, attrs: { shape: [T, y] }, backend: n }), x = w0(r.dtype), E = Ku(w, x, "sum", n), I = Ke({ inputs: { x: E }, attrs: { shape: _ }, backend: n });
38514
+ const y = ge(m), T = ge(r.shape) / y, w = Ke({ inputs: { x: d }, attrs: { shape: [T, y] }, backend: n }), x = w0(r.dtype), E = qu(w, x, "sum", n), I = Ke({ inputs: { x: E }, attrs: { shape: _ }, backend: n });
38515
38515
  return n.disposeIntermediateTensorInfo(w), n.disposeIntermediateTensorInfo(E), c && n.disposeIntermediateTensorInfo(d), I;
38516
38516
  }
38517
38517
  /**
@@ -38570,7 +38570,7 @@ function br(r) {
38570
38570
  return c;
38571
38571
  }
38572
38572
  const jq = {
38573
- kernelName: Su,
38573
+ kernelName: Tu,
38574
38574
  backendName: "webgl",
38575
38575
  kernelFunc: br
38576
38576
  };
@@ -38618,7 +38618,7 @@ function _g({ a: r, b: e, transposeA: t, transposeB: n, backend: i, bias: s = nu
38618
38618
  } else {
38619
38619
  const fe = _a(r.dtype, e.dtype), ne = new fk(R, P, [D, _, y], t, n, G, W, j, te), ae = [B, O];
38620
38620
  if (s != null && ae.push(s), j && ae.push(a), te) {
38621
- const be = i.makeTensorInfo([], "float32", Vu(o, "float32"));
38621
+ const be = i.makeTensorInfo([], "float32", Hu(o, "float32"));
38622
38622
  ae.push(be), F.push(be);
38623
38623
  }
38624
38624
  oe = i.runWebGLProgram(ne, ae, fe);
@@ -38894,7 +38894,7 @@ function lK(r) {
38894
38894
  const d = Lr(c, o);
38895
38895
  let p = i;
38896
38896
  d != null && (p = br({ inputs: { x: i }, backend: t, attrs: { perm: d } }), c = Ls(c.length, o)), ps("all", c, o);
38897
- const [m, _] = nr(p.shape, c), y = ge(_), b = Ke({ inputs: { x: p }, backend: t, attrs: { shape: [-1, y] } }), T = Ku(b, b.dtype, "all", t);
38897
+ const [m, _] = nr(p.shape, c), y = ge(_), b = Ke({ inputs: { x: p }, backend: t, attrs: { shape: [-1, y] } }), T = qu(b, b.dtype, "all", t);
38898
38898
  let w;
38899
38899
  if (a) {
38900
38900
  const x = fs(m, u);
@@ -38930,7 +38930,7 @@ function cK(r) {
38930
38930
  const d = Lr(c, o);
38931
38931
  let p = i;
38932
38932
  d != null && (p = br({ inputs: { x: i }, backend: t, attrs: { perm: d } }), c = Ls(c.length, o)), ps("any", c, o);
38933
- const [m, _] = nr(p.shape, c), y = ge(_), b = Ke({ inputs: { x: p }, backend: t, attrs: { shape: [-1, y] } }), T = Ku(b, b.dtype, "any", t);
38933
+ const [m, _] = nr(p.shape, c), y = ge(_), b = Ke({ inputs: { x: p }, backend: t, attrs: { shape: [-1, y] } }), T = qu(b, b.dtype, "any", t);
38934
38934
  let w;
38935
38935
  if (a) {
38936
38936
  const x = fs(m, u);
@@ -39289,7 +39289,7 @@ const IK = Cw + `
39289
39289
  bvec4 isNaNA = isnan(a);
39290
39290
  bvec4 isNaNB = isnan(b);
39291
39291
  bvec4 isNaN = bvec4(isNaNA.x || isNaNB.x, isNaNA.y || isNaNB.y, isNaNA.z || isNaNB.z, isNaNA.w || isNaNB.w);
39292
- ` + qu + `
39292
+ ` + ju + `
39293
39293
  return result;
39294
39294
  `, RK = Us({ opSnippet: IK, packedOpSnippet: AK }), NK = {
39295
39295
  kernelName: Xg,
@@ -40283,7 +40283,7 @@ function oX(r) {
40283
40283
  return _.values = d, m;
40284
40284
  }
40285
40285
  let o;
40286
- return s ? o = new ud(iX, n.shape, i.shape, !1) : o = new Pu(aX, n.shape, i.shape), t.runWebGLProgram(o, [n, i], n.dtype);
40286
+ return s ? o = new ud(iX, n.shape, i.shape, !1) : o = new Du(aX, n.shape, i.shape), t.runWebGLProgram(o, [n, i], n.dtype);
40287
40287
  }
40288
40288
  const lX = {
40289
40289
  kernelName: Qg,
@@ -41578,7 +41578,7 @@ function wk({ x: r, filter: e, convInfo: t, backend: n, bias: i = null, preluAct
41578
41578
  I.push(O), I.push(F);
41579
41579
  const D = i != null, L = s != null, G = o === "leakyrelu", j = o ? $h(o, !0) : null, te = new fk(y ? F.shape : R.shape, y ? R.shape : F.shape, y ? [t.batchSize, T, t.outChannels] : [t.batchSize, t.outChannels, T], x, E, D, j, L, G), W = y ? [F, R] : [R, F];
41580
41580
  if (i && W.push(i), L && W.push(s), G) {
41581
- const Ce = n.makeTensorInfo([], "float32", Vu(a, "float32"));
41581
+ const Ce = n.makeTensorInfo([], "float32", Hu(a, "float32"));
41582
41582
  W.push(Ce), I.push(Ce);
41583
41583
  }
41584
41584
  const Q = n.runWebGLProgram(te, W, "float32"), oe = Ke({ inputs: { x: Q }, backend: n, attrs: { shape: t.outShape } });
@@ -42116,7 +42116,7 @@ const YX = cd + `
42116
42116
  `, JX = `
42117
42117
  vec4 result = cos(x);
42118
42118
  bvec4 isNaN = isnan(x);
42119
- ${qu}
42119
+ ${ju}
42120
42120
  return result;
42121
42121
  `, QX = qt({ opSnippet: YX, packedOpSnippet: JX }), ZX = {
42122
42122
  kernelName: s_,
@@ -43309,7 +43309,7 @@ const PY = "return (b >= 0.0) ? a : a * (b + 1.0);", FY = `
43309
43309
  vec4 bGTEZero = vec4(greaterThanEqual(b, vec4(0.)));
43310
43310
  return (bGTEZero * a) + ((vec4(1.0) - bGTEZero) * (a * (b + vec4(1.0))));
43311
43311
  `, MY = (r) => {
43312
- const { inputs: e, backend: t } = r, { dy: n, y: i } = e, s = de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new ud(FY, n.shape, i.shape) : new Pu(PY, n.shape, i.shape);
43312
+ const { inputs: e, backend: t } = r, { dy: n, y: i } = e, s = de().getBool("WEBGL_PACK_BINARY_OPERATIONS") ? new ud(FY, n.shape, i.shape) : new Du(PY, n.shape, i.shape);
43313
43313
  return t.runWebGLProgram(s, [n, i], n.dtype);
43314
43314
  }, LY = {
43315
43315
  kernelName: u_,
@@ -43632,7 +43632,7 @@ class eJ {
43632
43632
  function _p(r) {
43633
43633
  const { backend: e, attrs: t } = r, { shape: n, value: i } = t;
43634
43634
  let { dtype: s } = t;
43635
- if (s = s || Bu(i), s === "string") {
43635
+ if (s = s || Uu(i), s === "string") {
43636
43636
  const a = ds(s, ge(n));
43637
43637
  return a.fill(i), e.makeTensorInfo(n, s, a);
43638
43638
  } else {
@@ -43902,7 +43902,7 @@ const hJ = {
43902
43902
  backendName: "webgl",
43903
43903
  kernelFunc: fJ
43904
43904
  };
43905
- let mc, J1 = de().getBool("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU");
43905
+ let pc, J1 = de().getBool("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU");
43906
43906
  function fJ(r) {
43907
43907
  const { inputs: e, backend: t, attrs: n } = r;
43908
43908
  let { pixels: i } = e;
@@ -43912,7 +43912,7 @@ function fJ(r) {
43912
43912
  ] : [i.width, i.height], d = [c, u], p = [c, u, s];
43913
43913
  if (o || a) {
43914
43914
  const b = de().getBool("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU");
43915
- (mc == null || b !== J1) && (J1 = b, mc = document.createElement("canvas").getContext("2d", { willReadFrequently: J1 })), mc.canvas.width = u, mc.canvas.height = c, mc.drawImage(i, 0, 0, u, c), i = mc.canvas;
43915
+ (pc == null || b !== J1) && (J1 = b, pc = document.createElement("canvas").getContext("2d", { willReadFrequently: J1 })), pc.canvas.width = u, pc.canvas.height = c, pc.drawImage(i, 0, 0, u, c), i = pc.canvas;
43916
43916
  }
43917
43917
  const m = t.makeTensorInfo(d, "int32");
43918
43918
  t.texData.get(m.dataId).usage = hi.PIXELS, t.gpgpu.uploadPixelDataToTexture(t.getTexture(m.dataId), i);
@@ -43951,7 +43951,7 @@ function pJ(r) {
43951
43951
  return D;
43952
43952
  };
43953
43953
  if (E && O.push(F(a, d)), I && O.push(F(o, d)), R) {
43954
- const D = t.makeTensorInfo([], "float32", Vu(y, "float32"));
43954
+ const D = t.makeTensorInfo([], "float32", Hu(y, "float32"));
43955
43955
  O.push(D), x.push(D);
43956
43956
  }
43957
43957
  return O;
@@ -44029,7 +44029,7 @@ function gJ(r) {
44029
44029
  /* depthwise */
44030
44030
  ), w = de().getBool("WEBGL_PACK_DEPTHWISECONV") && T.strideWidth <= 2 && T.outChannels / T.inChannels === 1, x = m ? $h(m, w) : null, E = [i, s], I = a != null, R = o != null, P = m === "leakyrelu";
44031
44031
  if (I && E.push(a), R && E.push(o), P) {
44032
- const D = t.makeTensorInfo([], "float32", Vu(_, "float32"));
44032
+ const D = t.makeTensorInfo([], "float32", Hu(_, "float32"));
44033
44033
  E.push(D), y.push(D);
44034
44034
  }
44035
44035
  let B;
@@ -44833,7 +44833,7 @@ const SQ = (r) => {
44833
44833
  * =============================================================================
44834
44834
  */
44835
44835
  function CQ(r, e, t, n) {
44836
- const i = ge(e), a = ge(r.shape) / i, o = Ke({ inputs: { x: r }, attrs: { shape: [a, i] }, backend: n }), u = Ku(o, r.dtype, "max", n), c = Ke({ inputs: { x: u }, attrs: { shape: t }, backend: n });
44836
+ const i = ge(e), a = ge(r.shape) / i, o = Ke({ inputs: { x: r }, attrs: { shape: [a, i] }, backend: n }), u = qu(o, r.dtype, "max", n), c = Ke({ inputs: { x: u }, attrs: { shape: t }, backend: n });
44837
44837
  return n.disposeIntermediateTensorInfo(o), n.disposeIntermediateTensorInfo(u), c;
44838
44838
  }
44839
44839
  /**
@@ -44912,7 +44912,7 @@ const xQ = Cw + `
44912
44912
  bvec4 isNaNA = isnan(a);
44913
44913
  bvec4 isNaNB = isnan(b);
44914
44914
  bvec4 isNaN = bvec4(isNaNA.x || isNaNB.x, isNaNA.y || isNaNB.y, isNaNA.z || isNaNB.z, isNaNA.w || isNaNB.w);
44915
- ` + qu + `
44915
+ ` + ju + `
44916
44916
  return result;
44917
44917
  `, AQ = Us({
44918
44918
  opSnippet: xQ,
@@ -45245,7 +45245,7 @@ const HQ = {
45245
45245
  * =============================================================================
45246
45246
  */
45247
45247
  function VQ(r, e, t, n) {
45248
- const i = ge(e), a = ge(r.shape) / i, o = Ke({ inputs: { x: r }, attrs: { shape: [a, i] }, backend: n }), u = Ku(o, "float32", "mean", n), c = Ke({ inputs: { x: u }, attrs: { shape: t }, backend: n });
45248
+ const i = ge(e), a = ge(r.shape) / i, o = Ke({ inputs: { x: r }, attrs: { shape: [a, i] }, backend: n }), u = qu(o, "float32", "mean", n), c = Ke({ inputs: { x: u }, attrs: { shape: t }, backend: n });
45249
45249
  return n.disposeIntermediateTensorInfo(o), n.disposeIntermediateTensorInfo(u), c;
45250
45250
  }
45251
45251
  /**
@@ -45317,7 +45317,7 @@ function WQ(r) {
45317
45317
  const d = Lr(c, o);
45318
45318
  let p = i;
45319
45319
  d != null && (p = br({ inputs: { x: i }, backend: t, attrs: { perm: d } }), c = Ls(c.length, i.shape.length)), ps("min", c, o);
45320
- const [m, _] = nr(p.shape, c), y = ge(_), b = Ke({ inputs: { x: p }, backend: t, attrs: { shape: [-1, y] } }), T = Ku(b, b.dtype, "min", t);
45320
+ const [m, _] = nr(p.shape, c), y = ge(_), b = Ke({ inputs: { x: p }, backend: t, attrs: { shape: [-1, y] } }), T = qu(b, b.dtype, "min", t);
45321
45321
  let w;
45322
45322
  if (a) {
45323
45323
  const x = fs(m, u);
@@ -45354,7 +45354,7 @@ const jQ = Cw + `
45354
45354
  bvec4 isNaNA = isnan(a);
45355
45355
  bvec4 isNaNB = isnan(b);
45356
45356
  bvec4 isNaN = bvec4(isNaNA.x || isNaNB.x, isNaNA.y || isNaNB.y, isNaNA.z || isNaNB.z, isNaNA.w || isNaNB.w);
45357
- ` + qu + `
45357
+ ` + ju + `
45358
45358
  return result;
45359
45359
  `, KQ = Us({
45360
45360
  opSnippet: jQ,
@@ -45558,7 +45558,7 @@ const eZ = `if (b == 0.0) return NAN;
45558
45558
  return mod(a, b);`, tZ = `
45559
45559
  vec4 result = mod(a, b);
45560
45560
  bvec4 isNaN = equal(b, vec4(0.0));
45561
- ` + qu + `
45561
+ ` + ju + `
45562
45562
  return result;
45563
45563
  `, nZ = Us({
45564
45564
  opSnippet: eZ,
@@ -46207,7 +46207,7 @@ const PZ = `
46207
46207
  bvec4 isNaN1 = lessThan(a, vec4(0.0));
46208
46208
  bvec4 isNaN2 = lessThan(floor(b), b);
46209
46209
  bvec4 isNaN = bvec4(isNaN1.x && isNaN2.x, isNaN1.y && isNaN2.y, isNaN1.z && isNaN2.z, isNaN1.w && isNaN2.w);
46210
- ` + qu + `
46210
+ ` + ju + `
46211
46211
  return result;
46212
46212
  `, MZ = Us({ opSnippet: PZ, packedOpSnippet: FZ }), LZ = {
46213
46213
  kernelName: V_,
@@ -46241,7 +46241,7 @@ function UZ(r) {
46241
46241
  const y = t.texData.get(m.dataId).values, { outVals: b, outShape: T, outDtype: w } = Mj(m.shape, m.dtype, y, d);
46242
46242
  _ = t.makeTensorInfo(T, w, b);
46243
46243
  } else {
46244
- const [y, b] = nr(m.shape, d), T = ge(b), w = Ke({ inputs: { x: m }, backend: t, attrs: { shape: [-1, T] } }), x = w0(i.dtype), E = Ku(w, x, "prod", t);
46244
+ const [y, b] = nr(m.shape, d), T = ge(b), w = Ke({ inputs: { x: m }, backend: t, attrs: { shape: [-1, T] } }), x = w0(i.dtype), E = qu(w, x, "prod", t);
46245
46245
  _ = Ke({ inputs: { x: E }, backend: t, attrs: { shape: y } }), u.push(w), u.push(E);
46246
46246
  }
46247
46247
  if (a) {
@@ -47722,7 +47722,7 @@ const Yee = cd + `
47722
47722
  `, Jee = `
47723
47723
  vec4 result = sin(x);
47724
47724
  bvec4 isNaN = isnan(x);
47725
- ${qu}
47725
+ ${ju}
47726
47726
  return result;
47727
47727
  `, Qee = qt({ opSnippet: Yee, packedOpSnippet: Jee }), Zee = {
47728
47728
  kernelName: t0,
@@ -47997,7 +47997,7 @@ const mte = {
47997
47997
  function gte(r) {
47998
47998
  const { inputs: e, backend: t, attrs: n } = r, { sparseIndices: i, sparseValues: s, defaultValue: a } = e, { outputShape: o } = n, { sliceRank: u, numUpdates: c, sliceSize: d, strides: p, outputSize: m } = Dl(s, i, o), _ = !1;
47999
47999
  if (s.dtype === "string") {
48000
- const w = t.bufferSync(i), x = t.bufferSync(s), E = Iu(t.readSync(a.dataId)[0]), I = Gj(w, x, o, m, d, c, u, p, E, _);
48000
+ const w = t.bufferSync(i), x = t.bufferSync(s), E = xu(t.readSync(a.dataId)[0]), I = Gj(w, x, o, m, d, c, u, p, E, _);
48001
48001
  return t.makeTensorInfo(o, I.dtype, I.values);
48002
48002
  }
48003
48003
  const y = new Iw(c, u, i.shape.length, s.shape.length, p, [m, 1], _), b = t.runWebGLProgram(y, [s, i, a], s.dtype), T = Ke({ inputs: { x: b }, backend: t, attrs: { shape: o } });
@@ -48463,7 +48463,7 @@ function Xte(r) {
48463
48463
  function Mk(r) {
48464
48464
  const { inputs: e, backend: t, attrs: n } = r, { x: i } = e, { reps: s } = n;
48465
48465
  if (i.dtype === "string" || i.shape.length > 5) {
48466
- const u = t.readSync(i.dataId), c = i.dtype === "string" ? u.map((m) => Iu(m)) : u, d = kn(i.shape, i.dtype, c), p = tq(d, s);
48466
+ const u = t.readSync(i.dataId), c = i.dtype === "string" ? u.map((m) => xu(m)) : u, d = kn(i.shape, i.dtype, c), p = tq(d, s);
48467
48467
  return t.makeTensorInfo(p.shape, p.dtype, p.values);
48468
48468
  }
48469
48469
  const a = new Kte(i.shape, s);
@@ -49588,7 +49588,7 @@ const Sne = {
49588
49588
  */
49589
49589
  let Bk;
49590
49590
  function wne(r) {
49591
- Bk = r.wasm.cwrap(Su, null, [
49591
+ Bk = r.wasm.cwrap(Tu, null, [
49592
49592
  "number",
49593
49593
  "array",
49594
49594
  "number",
@@ -49635,7 +49635,7 @@ function Ene(r, e) {
49635
49635
  return [t, n];
49636
49636
  }
49637
49637
  const xne = {
49638
- kernelName: Su,
49638
+ kernelName: Tu,
49639
49639
  backendName: "wasm",
49640
49640
  kernelFunc: xl,
49641
49641
  setupFunc: wne
@@ -50330,7 +50330,7 @@ const tse = {
50330
50330
  * limitations under the License.
50331
50331
  * =============================================================================
50332
50332
  */
50333
- function Fu(r) {
50333
+ function Pu(r) {
50334
50334
  const { inputs: { x: e }, attrs: { begin: t, size: n }, backend: i } = r, [s, a] = QS(e, t, n), o = B0(e.shape, s, a), u = i.readSync(e.dataId), c = i.makeOutput(a, e.dtype), d = an(e.shape), p = i.dataIdMap.get(c.dataId);
50335
50335
  if (o) {
50336
50336
  const y = H0(s, d);
@@ -50383,7 +50383,7 @@ function rse(r, e, t, n, i, s, a) {
50383
50383
  const ise = {
50384
50384
  kernelName: e0,
50385
50385
  backendName: "wasm",
50386
- kernelFunc: Fu
50386
+ kernelFunc: Pu
50387
50387
  };
50388
50388
  /**
50389
50389
  * @license
@@ -50402,7 +50402,7 @@ const ise = {
50402
50402
  * =============================================================================
50403
50403
  */
50404
50404
  function ase(r) {
50405
- const { inputs: e, backend: t, attrs: n } = r, { x: i } = e, { blockShape: s, crops: a } = n, o = s.reduce((w, x) => w * x), u = cp(i.shape, s, o), c = dp(u.length, s.length), d = hp(i.shape, s, o), p = sw(a, s.length), m = rw(d, a, s.length), _ = Pr({ inputs: { x: i }, backend: t, attrs: { shape: u } }), y = xl({ inputs: { x: _ }, backend: t, attrs: { perm: c } }), b = Pr({ inputs: { x: y }, backend: t, attrs: { shape: d } }), T = Fu({
50405
+ const { inputs: e, backend: t, attrs: n } = r, { x: i } = e, { blockShape: s, crops: a } = n, o = s.reduce((w, x) => w * x), u = cp(i.shape, s, o), c = dp(u.length, s.length), d = hp(i.shape, s, o), p = sw(a, s.length), m = rw(d, a, s.length), _ = Pr({ inputs: { x: i }, backend: t, attrs: { shape: u } }), y = xl({ inputs: { x: _ }, backend: t, attrs: { perm: c } }), b = Pr({ inputs: { x: y }, backend: t, attrs: { shape: d } }), T = Pu({
50406
50406
  inputs: { x: b },
50407
50407
  backend: t,
50408
50408
  attrs: { begin: p, size: m }
@@ -51734,7 +51734,7 @@ const Sre = zt(p_, "float32");
51734
51734
  function pO(r) {
51735
51735
  const { attrs: { shape: e, value: t }, backend: n } = r;
51736
51736
  let { attrs: { dtype: i } } = r;
51737
- i = i || Bu(t);
51737
+ i = i || Uu(t);
51738
51738
  const s = n.makeOutput(e, i);
51739
51739
  return n.typedArrayFromHeap(s).fill(t), s;
51740
51740
  }
@@ -54413,11 +54413,11 @@ function Coe(r) {
54413
54413
  if (e.disposeData(P.dataId), D)
54414
54414
  throw e.disposeData(y.dataId), e.disposeData(T.dataId), e.disposeData(x.dataId), e.disposeData(I.dataId), new Error(D);
54415
54415
  let L = y, G = T;
54416
- return O !== d[0] && (L = Fu({
54416
+ return O !== d[0] && (L = Pu({
54417
54417
  inputs: { x: y },
54418
54418
  attrs: { begin: 0, size: [O, u] },
54419
54419
  backend: e
54420
- }), G = Fu({
54420
+ }), G = Pu({
54421
54421
  inputs: { x: T },
54422
54422
  attrs: { begin: 0, size: O },
54423
54423
  backend: e
@@ -54687,7 +54687,7 @@ function Foe(r) {
54687
54687
  return u.map((p) => {
54688
54688
  const m = [...d];
54689
54689
  m[o] = p;
54690
- const _ = Fu({ inputs: { x: i }, attrs: { begin: c, size: m }, backend: n });
54690
+ const _ = Pu({ inputs: { x: i }, attrs: { begin: c, size: m }, backend: n });
54691
54691
  return c[o] += p, _;
54692
54692
  });
54693
54693
  }
@@ -54822,7 +54822,7 @@ function zoe(r) {
54822
54822
  R = Pr({ inputs: { x: i }, backend: e, attrs: { shape: y } });
54823
54823
  else if (T || w) {
54824
54824
  V(i.shape.length >= 1, () => `Input must have rank at least 1, got: ${i.shape.length}`);
54825
- const P = JS(x, E, I), B = Fu({ inputs: { x: i }, backend: e, attrs: { begin: x, size: P } });
54825
+ const P = JS(x, E, I), B = Pu({ inputs: { x: i }, backend: e, attrs: { begin: x, size: P } });
54826
54826
  R = Pr({ inputs: { x: B }, backend: e, attrs: { shape: y } }), e.disposeData(B.dataId);
54827
54827
  } else {
54828
54828
  const P = e.makeOutput(_, "float32"), B = e.dataIdMap.get(i.dataId).id, O = new Uint8Array(new Int32Array(an(i.shape)).buffer), F = new Uint8Array(new Int32Array(x).buffer), D = new Uint8Array(new Int32Array(E).buffer), L = new Uint8Array(new Int32Array(I).buffer), G = new Uint8Array(new Int32Array(_).buffer), j = new Uint8Array(new Int32Array(an(_)).buffer), te = e.dataIdMap.get(P.dataId).id;
@@ -55287,7 +55287,7 @@ function vle(r) {
55287
55287
  const d = new Array(a), p = new Array(o).fill(0), m = i.shape.slice();
55288
55288
  m[s] = 1;
55289
55289
  for (let _ = 0; _ < d.length; _++)
55290
- p[s] = _, d[_] = Fu({ inputs: { x: i }, attrs: { begin: p, size: m }, backend: t });
55290
+ p[s] = _, d[_] = Pu({ inputs: { x: i }, attrs: { begin: p, size: m }, backend: t });
55291
55291
  return d.map(({ dataId: _, dtype: y }) => ({ dataId: _, dtype: y, shape: u }));
55292
55292
  }
55293
55293
  const ble = {
@@ -57349,7 +57349,7 @@ class Ale extends Mg {
57349
57349
  this.dataIdMap.set(e, { id: a, stringBytes: d, shape: n, dtype: i, memoryOffset: null, refCount: s });
57350
57350
  return;
57351
57351
  }
57352
- const o = ge(n), u = o * xu(i), c = this.wasm._malloc(u) >>> 0;
57352
+ const o = ge(n), u = o * Eu(i), c = this.wasm._malloc(u) >>> 0;
57353
57353
  this.dataIdMap.set(e, { id: a, memoryOffset: c, shape: n, dtype: i, refCount: s }), this.wasm.tfjs.registerTensor(a, o, c), t != null && this.wasm.HEAPU8.set(new Uint8Array(t.buffer, t.byteOffset, u), c);
57354
57354
  }
57355
57355
  async read(e) {
@@ -57360,7 +57360,7 @@ class Ale extends Mg {
57360
57360
  if (s === "string")
57361
57361
  return (t == null || t === 0) && (n == null || n >= o.length) ? o : o.slice(t, n);
57362
57362
  t = t || 0, n = n || ge(a);
57363
- const u = xu(s), c = this.wasm.HEAPU8.slice(i + t * u, i + n * u);
57363
+ const u = Eu(s), c = this.wasm.HEAPU8.slice(i + t * u, i + n * u);
57364
57364
  return kle(c.buffer, s);
57365
57365
  }
57366
57366
  /**
@@ -57637,7 +57637,7 @@ function k(r, e, t, n, i) {
57637
57637
  }).map((y) => Os(y, t, n, i));
57638
57638
  }
57639
57639
  const d = Os(e.inputNames[c], t, n, i), p = d.dataSync();
57640
- return s.type === "number" ? p[0] : Tu(d.shape, p);
57640
+ return s.type === "number" ? p[0] : bu(d.shape, p);
57641
57641
  }
57642
57642
  const a = e.attrParams[r];
57643
57643
  return a && a.value;
@@ -64626,7 +64626,7 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64626
64626
  greaterEqual: sS,
64627
64627
  ifft: Rh,
64628
64628
  imag: op,
64629
- image: $u,
64629
+ image: Ou,
64630
64630
  inTopKAsync: HN,
64631
64631
  irfft: NS,
64632
64632
  isFinite: xR,
@@ -64650,7 +64650,7 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64650
64650
  losses: KN,
64651
64651
  lowerBound: PR,
64652
64652
  matMul: en,
64653
- max: wu,
64653
+ max: Su,
64654
64654
  maxPool: cS,
64655
64655
  maxPool3d: FR,
64656
64656
  maxPoolWithArgmax: MR,
@@ -64674,7 +64674,7 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64674
64674
  onesLike: GR,
64675
64675
  op: Z,
64676
64676
  outerProduct: WR,
64677
- pad: Gu,
64677
+ pad: Vu,
64678
64678
  pad1d: zR,
64679
64679
  pad2d: jR,
64680
64680
  pad3d: pS,
@@ -64744,7 +64744,7 @@ const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64744
64744
  tanh: hg,
64745
64745
  tensor: fi,
64746
64746
  tensor1d: di,
64747
- tensor2d: Cu,
64747
+ tensor2d: wu,
64748
64748
  tensor3d: $S,
64749
64749
  tensor4d: EN,
64750
64750
  tensor5d: xN,
@@ -65164,7 +65164,7 @@ class Aue {
65164
65164
  * limitations under the License.
65165
65165
  * =============================================================================
65166
65166
  */
65167
- class Mu {
65167
+ class Fu {
65168
65168
  get id() {
65169
65169
  return this.idTensor.id;
65170
65170
  }
@@ -65188,7 +65188,7 @@ class Mu {
65188
65188
  * Get a new TensorList containing a copy of the underlying tensor container.
65189
65189
  */
65190
65190
  copy() {
65191
- return new Mu([...this.tensors], this.elementShape, this.elementDtype);
65191
+ return new Fu([...this.tensors], this.elementShape, this.elementDtype);
65192
65192
  }
65193
65193
  /**
65194
65194
  * Dispose the tensors and idTensor and clear the tensor list.
@@ -65256,7 +65256,7 @@ class Mu {
65256
65256
  throw new Error(`TensorListResize expects size to be non-negative. Got: ${e}`);
65257
65257
  if (this.maxNumElements !== -1 && e > this.maxNumElements)
65258
65258
  throw new Error(`TensorListResize input size ${e} is greater maxNumElement ${this.maxNumElements}.`);
65259
- const t = new Mu([], this.elementShape, this.elementDtype, this.maxNumElements);
65259
+ const t = new Fu([], this.elementShape, this.elementDtype, this.maxNumElements);
65260
65260
  t.tensors.length = e;
65261
65261
  for (let n = 0; n < Math.min(this.tensors.length, e); ++n)
65262
65262
  t.tensors[n] = this.tensors[n];
@@ -65333,10 +65333,10 @@ function Rue(r, e, t) {
65333
65333
  const i = r.shape.slice(1);
65334
65334
  ki(i, e, "TensorList shape mismatch: ");
65335
65335
  const s = Pl(r);
65336
- return new Mu(s, e, n);
65336
+ return new Fu(s, e, n);
65337
65337
  }
65338
65338
  function Nue(r, e, t, n) {
65339
- return new Mu([], r, e, n);
65339
+ return new Fu([], r, e, n);
65340
65340
  }
65341
65341
  function kue(r, e, t, n) {
65342
65342
  if (e.length !== r.shape[0])
@@ -65344,7 +65344,7 @@ function kue(r, e, t, n) {
65344
65344
  const i = Math.max(...e);
65345
65345
  if (n != null && n !== -1 && i >= n)
65346
65346
  throw new Error(`Max index must be < array size (${i} vs. ${n})`);
65347
- const s = new Mu([], t, r.dtype, n), a = Pl(r, 0);
65347
+ const s = new Fu([], t, r.dtype, n), a = Pl(r, 0);
65348
65348
  return e.forEach((o, u) => {
65349
65349
  s.setItem(o, a[u]);
65350
65350
  }), s;
@@ -65364,7 +65364,7 @@ function Oue(r, e, t) {
65364
65364
  d[p] = Se(cn(r, _, y), a);
65365
65365
  }
65366
65366
  return r.dispose(), d;
65367
- }), c = new Mu([], t, r.dtype, e.length);
65367
+ }), c = new Fu([], t, r.dtype, e.length);
65368
65368
  for (let d = 0; d < u.length; d++)
65369
65369
  c.setItem(d, u[d]);
65370
65370
  return c;
@@ -69094,13 +69094,13 @@ var hce = {};
69094
69094
  jn.call(this, C);
69095
69095
  }
69096
69096
  T(Ya, jn);
69097
- var sc = [Ya, 1, At, 2, At, 3, At, 4, At, 5, At];
69098
- Ya.prototype.l = Tn(sc);
69097
+ var nc = [Ya, 1, At, 2, At, 3, At, 4, At, 5, At];
69098
+ Ya.prototype.l = Tn(nc);
69099
69099
  function Go(C) {
69100
69100
  jn.call(this, C, -1, Wo);
69101
69101
  }
69102
69102
  T(Go, jn);
69103
- var Wo = [1], Aa = Xa([Go, 1, ta, sc]);
69103
+ var Wo = [1], Aa = Xa([Go, 1, ta, nc]);
69104
69104
  function Ar(C) {
69105
69105
  jn.call(this, C);
69106
69106
  }
@@ -69308,7 +69308,7 @@ var hce = {};
69308
69308
  z = U.value, C.j.overrideFile(z, C.D[z]);
69309
69309
  if (C.D = {}, C.h.listeners)
69310
69310
  for (J = o(C.h.listeners), K = J.next(); !K.done; K = J.next())
69311
- se = K.value, ic(C, se);
69311
+ se = K.value, rc(C, se);
69312
69312
  pe = C.l, C.l = {}, C.setOptions(pe), ke.h = 0;
69313
69313
  });
69314
69314
  }
@@ -69353,7 +69353,7 @@ var hce = {};
69353
69353
  (U.length !== 0 || z.length !== 0) && (this.u = !0, this.H = (this.H === void 0 ? [] : this.H).concat(z), this.F = (this.F === void 0 ? [] : this.F).concat(U));
69354
69354
  }
69355
69355
  };
69356
- function rc(C) {
69356
+ function sc(C) {
69357
69357
  var N, $, U, z, J, K, se;
69358
69358
  return L(function(pe) {
69359
69359
  switch (pe.h) {
@@ -69389,7 +69389,7 @@ var hce = {};
69389
69389
  r.initialize = function() {
69390
69390
  var C = this;
69391
69391
  return L(function(N) {
69392
- return N.h == 1 ? I(N, Jl(C), 2) : N.h != 3 ? I(N, Ko(C), 3) : I(N, rc(C), 0);
69392
+ return N.h == 1 ? I(N, Jl(C), 2) : N.h != 3 ? I(N, Ko(C), 3) : I(N, sc(C), 0);
69393
69393
  });
69394
69394
  };
69395
69395
  function Xo(C, N) {
@@ -69487,9 +69487,9 @@ var hce = {};
69487
69487
  if (dt = N[yt.stream], yt.type === "detection_list") {
69488
69488
  if (dt) {
69489
69489
  for (var Un = dt.getRectList(), ys = dt.getLandmarksList(), ls = dt.getClassificationsList(), Vt = [], Kn = 0; Kn < Un.size(); ++Kn) {
69490
- var Rr = ql(Un.get(Kn)), Qo = as(Rr, 1), ac = as(Rr, 2), oc = as(Rr, 3), lc = as(Rr, 4), Td = as(Rr, 5, 0), ro = void 0;
69490
+ var Rr = ql(Un.get(Kn)), Qo = as(Rr, 1), ic = as(Rr, 2), ac = as(Rr, 3), oc = as(Rr, 4), Td = as(Rr, 5, 0), ro = void 0;
69491
69491
  ro = ro === void 0 ? 0 : ro, Rr = {
69492
- la: { sa: Qo, ta: ac, height: oc, width: lc, rotation: Td, pa: Ws(bn(Rr, 6), ro) },
69492
+ la: { sa: Qo, ta: ic, height: ac, width: oc, rotation: Td, pa: Ws(bn(Rr, 6), ro) },
69493
69493
  ea: ji(Aa(ys.get(Kn)), Ya, 1).map(Qa),
69494
69494
  ba: Ja(vd(ls.get(Kn)))
69495
69495
  }, Vt.push(Rr);
@@ -69546,7 +69546,7 @@ var hce = {};
69546
69546
  return typeof $ == "number" || $ instanceof Uint8Array || $ instanceof C.i.Uint8BlobList ? z.return($) : $ instanceof C.i.Texture2dDataOut ? (U = C.v[N], U || (U = new Za(C.i, C.K), C.v[N] = U), z.return(jo(U, $, C.M))) : z.return(void 0);
69547
69547
  });
69548
69548
  }
69549
- function ic(C, N) {
69549
+ function rc(C, N) {
69550
69550
  for (var $ = N.name || "$", U = [].concat(u(N.wants)), z = new C.i.StringList(), J = o(N.wants), K = J.next(); !K.done; K = J.next())
69551
69551
  z.push_back(K.value);
69552
69552
  J = C.i.PacketListener.implement({
@@ -70323,15 +70323,15 @@ function pm(r, e, t) {
70323
70323
  }(r);
70324
70324
  return [JE(n * s, e), JE(i * s, e)];
70325
70325
  }
70326
- function gc(r, e, t, n, i) {
70326
+ function mc(r, e, t, n, i) {
70327
70327
  var s = e[0], a = e[1], o = t[0], u = t[1], c = n[0], d = c[0], p = c[1], m = n[1], _ = m[0], y = m[1];
70328
70328
  return i === void 0 && (i = !1), Tt(function() {
70329
- var b = $u.resizeBilinear(r, [o, u], !0);
70329
+ var b = Ou.resizeBilinear(r, [o, u], !0);
70330
70330
  return i && (b = Ma(b)), function(T, w, x) {
70331
70331
  var E = w[0], I = w[1], R = x[0], P = R[0], B = R[1], O = x[1], F = O[0], D = O[1];
70332
70332
  return Tt(function() {
70333
70333
  var L = $r(T);
70334
- return Li($u.cropAndResize(L, [[P / (E + P + B - 1), F / (I + F + D - 1), (P + E - 1) / (E + P + B - 1), (F + I - 1) / (I + F + D - 1)]], [0], [E, I]), [0]);
70334
+ return Li(Ou.cropAndResize(L, [[P / (E + P + B - 1), F / (I + F + D - 1), (P + E - 1) / (E + P + B - 1), (F + I - 1) / (I + F + D - 1)]], [0], [E, I]), [0]);
70335
70335
  });
70336
70336
  }(b, [s, a], [[d, p], [_, y]]);
70337
70337
  });
@@ -70343,7 +70343,7 @@ function mm(r, e) {
70343
70343
  var y = function(b) {
70344
70344
  return b instanceof nn ? b : L0(b);
70345
70345
  }(r);
70346
- return y = pS(y, [[c, d], [p, m], [0, 0]]), $u.resizeBilinear(y, [t, n]);
70346
+ return y = pS(y, [[c, d], [p, m], [0, 0]]), Ou.resizeBilinear(y, [t, n]);
70347
70347
  });
70348
70348
  return { resized: _, padding: { top: c, left: p, right: m, bottom: d } };
70349
70349
  }
@@ -70422,7 +70422,7 @@ var M$ = function() {
70422
70422
  var i = this;
70423
70423
  n === void 0 && (n = 0.5);
70424
70424
  var s = ih(e), a = s[0], o = s[1], u = pm(t, this.baseModel.outputStride, [a, o]), c = mm(e, u), d = c.resized, p = c.padding, m = Tt(function() {
70425
- var x = i.predictForPersonSegmentation(d), E = x.segmentLogits, I = x.heatmapScores, R = x.offsets, P = x.displacementFwd, B = x.displacementBwd, O = d.shape, F = O[0], D = O[1], L = gc(E, [a, o], [F, D], [[p.top, p.bottom], [p.left, p.right]], !0);
70425
+ var x = i.predictForPersonSegmentation(d), E = x.segmentLogits, I = x.heatmapScores, R = x.offsets, P = x.displacementFwd, B = x.displacementBwd, O = d.shape, F = O[0], D = O[1], L = mc(E, [a, o], [F, D], [[p.top, p.bottom], [p.left, p.right]], !0);
70426
70426
  return { segmentation: hm(Li(L), n), heatmapScores: I, offsets: R, displacementFwd: P, displacementBwd: B };
70427
70427
  }), _ = m.segmentation, y = m.heatmapScores, b = m.offsets, T = m.displacementFwd, w = m.displacementBwd;
70428
70428
  return d.dispose(), { segmentation: _, heatmapScores: y, offsets: b, displacementFwd: T, displacementBwd: w, padding: p, internalResolutionHeightAndWidth: u };
@@ -70447,7 +70447,7 @@ var M$ = function() {
70447
70447
  switch (F.label) {
70448
70448
  case 0:
70449
70449
  return rx(t = fr(fr({}, vm), t)), n = ih(e), i = n[0], s = n[1], a = pm(t.internalResolution, this.baseModel.outputStride, [i, s]), o = mm(e, a), u = o.resized, c = o.padding, d = Tt(function() {
70450
- var D, L = O.predictForMultiPersonInstanceSegmentationAndPart(u), G = L.segmentLogits, j = L.longOffsets, te = L.heatmapScores, W = L.offsets, Q = L.displacementFwd, oe = L.displacementBwd, Ce = gc(G, [i, s], a, [[c.top, c.bottom], [c.left, c.right]], !0);
70450
+ var D, L = O.predictForMultiPersonInstanceSegmentationAndPart(u), G = L.segmentLogits, j = L.longOffsets, te = L.heatmapScores, W = L.offsets, Q = L.displacementFwd, oe = L.displacementBwd, Ce = mc(G, [i, s], a, [[c.top, c.bottom], [c.left, c.right]], !0);
70451
70451
  return D = j, { segmentation: hm(Li(Ce), t.segmentationThreshold), longOffsets: D, heatmapScoresRaw: te, offsetsRaw: W, displacementFwdRaw: Q, displacementBwdRaw: oe };
70452
70452
  }), p = d.segmentation, m = d.longOffsets, _ = d.heatmapScoresRaw, y = d.offsetsRaw, b = d.displacementFwdRaw, T = d.displacementBwdRaw, [4, gm([_, y, b, T])];
70453
70453
  case 1:
@@ -70461,7 +70461,7 @@ var M$ = function() {
70461
70461
  var i = this;
70462
70462
  n === void 0 && (n = 0.5);
70463
70463
  var s = ih(e), a = s[0], o = s[1], u = pm(t, this.baseModel.outputStride, [a, o]), c = mm(e, u), d = c.resized, p = c.padding, m = Tt(function() {
70464
- var x = i.predictForPersonSegmentationAndPart(d), E = x.segmentLogits, I = x.partHeatmapLogits, R = x.heatmapScores, P = x.offsets, B = x.displacementFwd, O = x.displacementBwd, F = d.shape, D = F[0], L = F[1], G = gc(E, [a, o], [D, L], [[p.top, p.bottom], [p.left, p.right]], !0), j = gc(I, [a, o], [D, L], [[p.top, p.bottom], [p.left, p.right]], !0);
70464
+ var x = i.predictForPersonSegmentationAndPart(d), E = x.segmentLogits, I = x.partHeatmapLogits, R = x.heatmapScores, P = x.offsets, B = x.displacementFwd, O = x.displacementBwd, F = d.shape, D = F[0], L = F[1], G = mc(E, [a, o], [D, L], [[p.top, p.bottom], [p.left, p.right]], !0), j = mc(I, [a, o], [D, L], [[p.top, p.bottom], [p.left, p.right]], !0);
70465
70465
  return { partSegmentation: fce(hm(Li(G), n), j), heatmapScores: R, offsets: P, displacementFwd: B, displacementBwd: O };
70466
70466
  }), _ = m.partSegmentation, y = m.heatmapScores, b = m.offsets, T = m.displacementFwd, w = m.displacementBwd;
70467
70467
  return d.dispose(), { partSegmentation: _, heatmapScores: y, offsets: b, displacementFwd: T, displacementBwd: w, padding: p, internalResolutionHeightAndWidth: u };
@@ -70486,7 +70486,7 @@ var M$ = function() {
70486
70486
  switch (D.label) {
70487
70487
  case 0:
70488
70488
  return rx(t = fr(fr({}, vm), t)), n = ih(e), i = n[0], s = n[1], a = pm(t.internalResolution, this.baseModel.outputStride, [i, s]), o = mm(e, a), u = o.resized, c = o.padding, d = Tt(function() {
70489
- var L = F.predictForMultiPersonInstanceSegmentationAndPart(u), G = L.segmentLogits, j = L.longOffsets, te = L.heatmapScores, W = L.offsets, Q = L.displacementFwd, oe = L.displacementBwd, Ce = L.partHeatmaps, fe = gc(G, [i, s], a, [[c.top, c.bottom], [c.left, c.right]], !0), ne = gc(Ce, [i, s], a, [[c.top, c.bottom], [c.left, c.right]], !0), ae = j, be = hm(Li(fe), t.segmentationThreshold), Te = function(Me) {
70489
+ var L = F.predictForMultiPersonInstanceSegmentationAndPart(u), G = L.segmentLogits, j = L.longOffsets, te = L.heatmapScores, W = L.offsets, Q = L.displacementFwd, oe = L.displacementBwd, Ce = L.partHeatmaps, fe = mc(G, [i, s], a, [[c.top, c.bottom], [c.left, c.right]], !0), ne = mc(Ce, [i, s], a, [[c.top, c.bottom], [c.left, c.right]], !0), ae = j, be = hm(Li(fe), t.segmentationThreshold), Te = function(Me) {
70490
70490
  var ot = Me.shape, Ve = ot[0], q = ot[1], ue = ot[2];
70491
70491
  return Tt(function() {
70492
70492
  var Le = I$(Me), mt = $r(Cl(0, ue, 1, "int32"), 1), Oe = Qt(en(Le, mt), "int32");
@@ -70780,9 +70780,9 @@ function Uce(r, e, t) {
70780
70780
  var w, x, E = b / T, I = m.height / m.width, R = 0, P = 0;
70781
70781
  return E > I ? (w = m.width, x = m.width * E, P = (1 - I / E) / 2) : (w = m.height / E, x = m.height, R = (1 - E / I) / 2), m.width = w, m.height = x, { top: P, left: R, right: R, bottom: P };
70782
70782
  }(u, n, i), d = Mce(u, o.width, o.height, !1), p = Tt(function() {
70783
- var m, _ = (m = r) instanceof nn ? m : L0(m), y = Cu(function(w, x, E) {
70783
+ var m, _ = (m = r) instanceof nn ? m : L0(m), y = wu(function(w, x, E) {
70784
70784
  return nv(E, "inputResolution"), [1 / E.width * w[0][0] * x.width, 1 / E.height * w[0][1] * x.width, w[0][3] * x.width, 1 / E.width * w[1][0] * x.height, 1 / E.height * w[1][1] * x.height, w[1][3] * x.height, 0, 0];
70785
- }(d, o, n), [1, 8]), b = s === "zero" ? "constant" : "nearest", T = $u.transform($r(Qt(_, "float32")), y, "bilinear", b, 0, [n.height, n.width]);
70785
+ }(d, o, n), [1, 8]), b = s === "zero" ? "constant" : "nearest", T = Ou.transform($r(Qt(_, "float32")), y, "bilinear", b, 0, [n.height, n.width]);
70786
70786
  return a != null ? Lce(T, a) : T;
70787
70787
  });
70788
70788
  return { imageTensor: p, padding: c, transformationMatrix: d };
@@ -70803,7 +70803,7 @@ function Bce(r, e, t) {
70803
70803
  default:
70804
70804
  throw new Error("Activation not supported (" + e.activation + ")");
70805
70805
  }
70806
- var a = t ? $u.resizeBilinear(s, [t.height, t.width]) : s;
70806
+ var a = t ? Ou.resizeBilinear(s, [t.height, t.width]) : s;
70807
70807
  return Li(a, [2]);
70808
70808
  }
70809
70809
  throw new Error("Unsupported number of tensor channels " + i);
@@ -70852,7 +70852,7 @@ var Mh, jce = function() {
70852
70852
  var o = fr({}, a);
70853
70853
  return o.flipHorizontal == null && (o.flipHorizontal = lx.flipHorizontal), o;
70854
70854
  }(t), e == null ? (this.reset(), [2, []]) : (n = Tt(function() {
70855
- var a = Uce(e, i.modelType === "general" ? Hce : Vce).imageTensor, o = cn(i.model.predict(a), [0, 0, 0, 1], -1), u = L$(e), c = Bce(o, Gce, u), d = $r(c, 2), p = Gu(d, [[0, 0], [0, 0], [0, 1]]);
70855
+ var a = Uce(e, i.modelType === "general" ? Hce : Vce).imageTensor, o = cn(i.model.predict(a), [0, 0, 0, 1], -1), u = L$(e), c = Bce(o, Gce, u), d = $r(c, 2), p = Vu(d, [[0, 0], [0, 0], [0, 1]]);
70856
70856
  return hS(p, [[0, 0], [0, 0], [0, 2]], "symmetric");
70857
70857
  }), [2, [{ maskValueToLabel: zce, mask: new Wce(n) }]]);
70858
70858
  });
@@ -71856,10 +71856,10 @@ class Cg extends Ds.EventEmitter {
71856
71856
  });
71857
71857
  }
71858
71858
  startAudio() {
71859
- fa.toggleAudioMute(this.stream), this.enableAudio(!0), this.isAudioOn = !0;
71859
+ fa.toggleAudioMute(this.stream), this._toggleMuteAudio(!1), this.enableAudio(!0), this.isAudioOn = !0;
71860
71860
  }
71861
71861
  stopAudio() {
71862
- fa.toggleAudioMute(this.stream), this.enableAudio(!1), this.isAudioOn = !1;
71862
+ fa.toggleAudioMute(this.stream), this._toggleMuteAudio(!0), this.enableAudio(!1), this.isAudioOn = !1;
71863
71863
  }
71864
71864
  enableVideo(e) {
71865
71865
  const t = {
@@ -71886,10 +71886,10 @@ class Cg extends Ds.EventEmitter {
71886
71886
  });
71887
71887
  }
71888
71888
  startVideo() {
71889
- fa.toggleVideoMute(this.stream), this.enableVideo(!0), this.isVideoOn = !0;
71889
+ fa.toggleVideoMute(this.stream), this._toggleMuteVideo(!1), this.enableVideo(!0), this.isVideoOn = !0;
71890
71890
  }
71891
71891
  stopVideo() {
71892
- fa.toggleVideoMute(this.stream), this.enableVideo(!1), this.isVideoOn = !1;
71892
+ fa.toggleVideoMute(this.stream), this._toggleMuteVideo(!0), this.enableVideo(!1), this.isVideoOn = !1;
71893
71893
  }
71894
71894
  sendStateMessage(e) {
71895
71895
  const t = {
@@ -73403,7 +73403,7 @@ class Cg extends Ds.EventEmitter {
73403
73403
  });
73404
73404
  }
73405
73405
  }
73406
- class _c {
73406
+ class gc {
73407
73407
  constructor(e) {
73408
73408
  if (this.headers = {}, e.length > 0) {
73409
73409
  let t = !1;
@@ -73508,7 +73508,7 @@ class av extends Ds.EventEmitter {
73508
73508
  };
73509
73509
  }
73510
73510
  _sendKeepAlive() {
73511
- const e = new _c("");
73511
+ const e = new gc("");
73512
73512
  e.method = "SEND", e.addHeader("To-Path", `${this.my_addr[1]}`), e.addHeader("From-Path", `${this.my_addr[0]}`), e.addHeader("Message-ID", Yt.createRandomToken(10)), this._connection.send(e.toString());
73513
73513
  }
73514
73514
  answer() {
@@ -73610,7 +73610,7 @@ a=path:${e.getHeader("Use-Path")} msrp://${this._ua._configuration.authorization
73610
73610
  }
73611
73611
  authenticate(e) {
73612
73612
  this.status = "auth";
73613
- let t = new _c("");
73613
+ let t = new gc("");
73614
73614
  t.method = "AUTH", t.addHeader("To-Path", `msrp://${this._ua._configuration.realm}:2856;ws`), t.addHeader(
73615
73615
  "From-Path",
73616
73616
  `msrp://${this.credentials.username}.${this.credentials.realm}:2856/${this.auth_id};ws`
@@ -73624,7 +73624,7 @@ a=path:${e.getHeader("Use-Path")} msrp://${this._ua._configuration.authorization
73624
73624
  }
73625
73625
  onmessage(e) {
73626
73626
  console.log("onmessage", e);
73627
- const t = new _c(e.data);
73627
+ const t = new gc(e.data);
73628
73628
  if (this.status === "auth" && t.code === 401) {
73629
73629
  const n = this.parseAuth(t.getHeader("WWW-Authenticate")), i = new V6(this.credentials);
73630
73630
  i.authenticate({
@@ -73732,7 +73732,7 @@ a=path:${e.getHeader("Use-Path")} msrp://${this._ua._configuration.authorization
73732
73732
  }
73733
73733
  }
73734
73734
  sendMSRP(e) {
73735
- const t = new _c("");
73735
+ const t = new gc("");
73736
73736
  t.method = "SEND", t.addHeader("To-Path", `${this.my_addr[1]} ${this.target_addr[1]} ${this.target_addr[0]}`), t.addHeader("From-Path", `${this.my_addr[0]}`), t.addHeader("Message-ID", Yt.createRandomToken(10)), t.addHeader("Byte-Range", "1-25/25"), t.addHeader("Content-Type", "text/plain"), t.addHeader("Success-Report", "yes"), t.addHeader("Failure-Report", "yes"), t.body = e;
73737
73737
  let n = t.toString();
73738
73738
  console.log(n);
@@ -73742,7 +73742,7 @@ a=path:${e.getHeader("Use-Path")} msrp://${this._ua._configuration.authorization
73742
73742
  console.log(i), this._connection.send(t.toString()), t.direction = "outgoing", this.emit("newMessage", t), this._msgHistory.push(t), this.emit("msgHistoryUpdate", this._msgHistory);
73743
73743
  }
73744
73744
  _sendOk(e) {
73745
- let t = e.ident, n = e.getHeader("Message-ID"), i = new _c("");
73745
+ let t = e.ident, n = e.getHeader("Message-ID"), i = new gc("");
73746
73746
  i.method = "200 OK", i.addHeader("To-Path", `${this.my_addr[1]}`), i.addHeader("From-Path", `${this.my_addr[0]}`), i.addHeader("Message-ID", n), i.ident = t;
73747
73747
  let s = i.toString();
73748
73748
  console.log(s);
@@ -73752,7 +73752,7 @@ a=path:${e.getHeader("Use-Path")} msrp://${this._ua._configuration.authorization
73752
73752
  console.log(a), this._connection.send(i.toString());
73753
73753
  }
73754
73754
  _sendReport(e) {
73755
- let t = e.ident, n = e.getHeader("Message-ID"), i = new _c("");
73755
+ let t = e.ident, n = e.getHeader("Message-ID"), i = new gc("");
73756
73756
  i.method = "REPORT", i.addHeader("To-Path", `${e.getHeader("From-Path")}`), i.addHeader("From-Path", `${this.my_addr[0]}`), i.addHeader("Message-ID", n), i.addHeader("Byte-Range", "1-25/25"), i.addHeader("Status", "000 200 OK"), i.ident = t;
73757
73757
  let s = i.toString();
73758
73758
  console.log(s);
@@ -73975,7 +73975,7 @@ const Rb = /* @__PURE__ */ yn(pde), Tm = new Pg("Parser"), mde = (r, e) => {
73975
73975
  Tm.warn(`parseMessage() | error parsing first line of SIP message: "${s}"`);
73976
73976
  return;
73977
73977
  } else
73978
- a.status_code ? (t = new pu.IncomingResponse(), t.status_code = a.status_code, t.reason_phrase = a.reason_phrase) : (t = new pu.IncomingRequest(e), t.method = a.method, t.ruri = a.uri);
73978
+ a.status_code ? (t = new Ac.IncomingResponse(), t.status_code = a.status_code, t.reason_phrase = a.reason_phrase) : (t = new Ac.IncomingRequest(e), t.method = a.method, t.ruri = a.uri);
73979
73979
  t.data = r;
73980
73980
  let o = i + 2;
73981
73981
  for (; ; ) {
@@ -74055,7 +74055,7 @@ function _de(r, e, t, n) {
74055
74055
  r.setHeader("content-type", o), i = r.parseHeader("content-type");
74056
74056
  break;
74057
74057
  case "cseq":
74058
- r.setHeader("cseq", o), i = r.parseHeader("cseq"), i && (r.cseq = i.value), r instanceof pu.IncomingResponse && (r.method = i.method);
74058
+ r.setHeader("cseq", o), i = r.parseHeader("cseq"), i && (r.cseq = i.value), r instanceof Ac.IncomingResponse && (r.method = i.method);
74059
74059
  break;
74060
74060
  case "max-forwards":
74061
74061
  r.setHeader("max-forwards", o), i = r.parseHeader("max-forwards");
@@ -74585,14 +74585,13 @@ function Cde(r) {
74585
74585
  this.emit("disconnected", r), this._registrator.onTransportClosed(), this._status !== _l.STATUS_USER_CLOSED && (this._status = _l.STATUS_NOT_READY, this._error = _l.NETWORK_ERROR);
74586
74586
  }
74587
74587
  function Ede(r) {
74588
- console.log("onTransportData", r);
74589
74588
  const e = r.transport;
74590
74589
  let t = r.message;
74591
74590
  if (t = yde.parseMessage(t, this), !t) {
74592
74591
  console.log("if 1 return");
74593
74592
  return;
74594
74593
  }
74595
- if (this._status === _l.STATUS_USER_CLOSED && t instanceof pu.IncomingRequest) {
74594
+ if (this._status === _l.STATUS_USER_CLOSED && t instanceof Ac.IncomingRequest) {
74596
74595
  console.log("if 2 return");
74597
74596
  return;
74598
74597
  }
@@ -74600,9 +74599,9 @@ function Ede(r) {
74600
74599
  console.log("if 3 return");
74601
74600
  return;
74602
74601
  }
74603
- if (console.log("onTransportData message", t), console.log("onTransportData instanceof", t instanceof pu.IncomingRequest), t instanceof pu.IncomingRequest)
74604
- t.transport = e, console.log("onTransportData receiveRequest"), this.receiveRequest(t);
74605
- else if (t instanceof pu.IncomingResponse) {
74602
+ if (t instanceof Ac.IncomingRequest)
74603
+ t.transport = e, this.receiveRequest(t);
74604
+ else if (t instanceof Ac.IncomingResponse) {
74606
74605
  let n;
74607
74606
  switch (t.method) {
74608
74607
  case $t.INVITE:
@@ -77006,11 +77005,11 @@ vp.Factory.backCompat(Et, {
77006
77005
  setRotationDeg: "setRotation",
77007
77006
  getRotationDeg: "getRotation"
77008
77007
  });
77009
- var Xu = {};
77010
- Object.defineProperty(Xu, "__esModule", { value: !0 });
77011
- Xu.Container = void 0;
77008
+ var Ku = {};
77009
+ Object.defineProperty(Ku, "__esModule", { value: !0 });
77010
+ Ku.Container = void 0;
77012
77011
  const hd = Ft, ov = Ln, ny = Ct;
77013
- class Yu extends ov.Node {
77012
+ class Xu extends ov.Node {
77014
77013
  constructor() {
77015
77014
  super(...arguments), this.children = [];
77016
77015
  }
@@ -77201,18 +77200,18 @@ class Yu extends ov.Node {
77201
77200
  }, n ? c : this._transformedRect(c, i);
77202
77201
  }
77203
77202
  }
77204
- Xu.Container = Yu;
77205
- hd.Factory.addComponentsGetterSetter(Yu, "clip", [
77203
+ Ku.Container = Xu;
77204
+ hd.Factory.addComponentsGetterSetter(Xu, "clip", [
77206
77205
  "x",
77207
77206
  "y",
77208
77207
  "width",
77209
77208
  "height"
77210
77209
  ]);
77211
- hd.Factory.addGetterSetter(Yu, "clipX", void 0, (0, ny.getNumberValidator)());
77212
- hd.Factory.addGetterSetter(Yu, "clipY", void 0, (0, ny.getNumberValidator)());
77213
- hd.Factory.addGetterSetter(Yu, "clipWidth", void 0, (0, ny.getNumberValidator)());
77214
- hd.Factory.addGetterSetter(Yu, "clipHeight", void 0, (0, ny.getNumberValidator)());
77215
- hd.Factory.addGetterSetter(Yu, "clipFunc");
77210
+ hd.Factory.addGetterSetter(Xu, "clipX", void 0, (0, ny.getNumberValidator)());
77211
+ hd.Factory.addGetterSetter(Xu, "clipY", void 0, (0, ny.getNumberValidator)());
77212
+ hd.Factory.addGetterSetter(Xu, "clipWidth", void 0, (0, ny.getNumberValidator)());
77213
+ hd.Factory.addGetterSetter(Xu, "clipHeight", void 0, (0, ny.getNumberValidator)());
77214
+ hd.Factory.addGetterSetter(Xu, "clipFunc");
77216
77215
  var X$ = {}, Bl = {};
77217
77216
  Object.defineProperty(Bl, "__esModule", { value: !0 });
77218
77217
  Bl.getCapturedShape = hhe;
@@ -77245,7 +77244,7 @@ function J$(r, e) {
77245
77244
  }
77246
77245
  (function(r) {
77247
77246
  Object.defineProperty(r, "__esModule", { value: !0 }), r.Stage = r.stages = void 0;
77248
- const e = Gn, t = Ft, n = Xu, i = Pt, s = ga, a = ty, o = Pt, u = Bl, c = "Stage", d = "string", p = "px", m = "mouseout", _ = "mouseleave", y = "mouseover", b = "mouseenter", T = "mousemove", w = "mousedown", x = "mouseup", E = "pointermove", I = "pointerdown", R = "pointerup", P = "pointercancel", B = "lostpointercapture", O = "pointerout", F = "pointerleave", D = "pointerover", L = "pointerenter", G = "contextmenu", j = "touchstart", te = "touchend", W = "touchmove", Q = "touchcancel", oe = "wheel", Ce = 5, fe = [
77247
+ const e = Gn, t = Ft, n = Ku, i = Pt, s = ga, a = ty, o = Pt, u = Bl, c = "Stage", d = "string", p = "px", m = "mouseout", _ = "mouseleave", y = "mouseover", b = "mouseenter", T = "mousemove", w = "mousedown", x = "mouseup", E = "pointermove", I = "pointerdown", R = "pointerup", P = "pointercancel", B = "lostpointercapture", O = "pointerout", F = "pointerleave", D = "pointerover", L = "pointerenter", G = "contextmenu", j = "touchstart", te = "touchend", W = "touchmove", Q = "touchcancel", oe = "wheel", Ce = 5, fe = [
77249
77248
  [b, "_pointerenter"],
77250
77249
  [w, "_pointerdown"],
77251
77250
  [T, "_pointermove"],
@@ -77971,7 +77970,7 @@ var bp = {}, ws = {};
77971
77970
  })(ws);
77972
77971
  Object.defineProperty(bp, "__esModule", { value: !0 });
77973
77972
  bp.Layer = void 0;
77974
- const ho = Gn, lv = Xu, yc = Ln, Lw = Ft, wx = ga, mhe = Ct, ghe = ws, _he = Pt, yhe = "#", vhe = "beforeDraw", bhe = "draw", Q$ = [
77973
+ const ho = Gn, lv = Ku, _c = Ln, Lw = Ft, wx = ga, mhe = Ct, ghe = ws, _he = Pt, yhe = "#", vhe = "beforeDraw", bhe = "draw", Q$ = [
77975
77974
  { x: 0, y: 0 },
77976
77975
  { x: -1, y: -1 },
77977
77976
  { x: 1, y: -1 },
@@ -78008,18 +78007,18 @@ class fd extends lv.Container {
78008
78007
  return t && t.content && (t.content.removeChild(this.getNativeCanvasElement()), e < t.children.length - 1 ? t.content.insertBefore(this.getNativeCanvasElement(), t.children[e + 1].getCanvas()._canvas) : t.content.appendChild(this.getNativeCanvasElement())), this;
78009
78008
  }
78010
78009
  moveToTop() {
78011
- yc.Node.prototype.moveToTop.call(this);
78010
+ _c.Node.prototype.moveToTop.call(this);
78012
78011
  const e = this.getStage();
78013
78012
  return e && e.content && (e.content.removeChild(this.getNativeCanvasElement()), e.content.appendChild(this.getNativeCanvasElement())), !0;
78014
78013
  }
78015
78014
  moveUp() {
78016
- if (!yc.Node.prototype.moveUp.call(this))
78015
+ if (!_c.Node.prototype.moveUp.call(this))
78017
78016
  return !1;
78018
78017
  const t = this.getStage();
78019
78018
  return !t || !t.content ? !1 : (t.content.removeChild(this.getNativeCanvasElement()), this.index < t.children.length - 1 ? t.content.insertBefore(this.getNativeCanvasElement(), t.children[this.index + 1].getCanvas()._canvas) : t.content.appendChild(this.getNativeCanvasElement()), !0);
78020
78019
  }
78021
78020
  moveDown() {
78022
- if (yc.Node.prototype.moveDown.call(this)) {
78021
+ if (_c.Node.prototype.moveDown.call(this)) {
78023
78022
  const e = this.getStage();
78024
78023
  if (e) {
78025
78024
  const t = e.children;
@@ -78030,7 +78029,7 @@ class fd extends lv.Container {
78030
78029
  return !1;
78031
78030
  }
78032
78031
  moveToBottom() {
78033
- if (yc.Node.prototype.moveToBottom.call(this)) {
78032
+ if (_c.Node.prototype.moveToBottom.call(this)) {
78034
78033
  const e = this.getStage();
78035
78034
  if (e) {
78036
78035
  const t = e.children;
@@ -78045,7 +78044,7 @@ class fd extends lv.Container {
78045
78044
  }
78046
78045
  remove() {
78047
78046
  const e = this.getNativeCanvasElement();
78048
- return yc.Node.prototype.remove.call(this), e && e.parentNode && ho.Util._isInDocument(e) && e.parentNode.removeChild(e), this;
78047
+ return _c.Node.prototype.remove.call(this), e && e.parentNode && ho.Util._isInDocument(e) && e.parentNode.removeChild(e), this;
78049
78048
  }
78050
78049
  getStage() {
78051
78050
  return this.parent;
@@ -78058,7 +78057,7 @@ class fd extends lv.Container {
78058
78057
  t !== "Group" && t !== "Shape" && ho.Util.throw("You may only add groups and shapes to a layer.");
78059
78058
  }
78060
78059
  _toKonvaCanvas(e) {
78061
- return e = e || {}, e.width = e.width || this.getWidth(), e.height = e.height || this.getHeight(), e.x = e.x !== void 0 ? e.x : this.x(), e.y = e.y !== void 0 ? e.y : this.y(), yc.Node.prototype._toKonvaCanvas.call(this, e);
78060
+ return e = e || {}, e.width = e.width || this.getWidth(), e.height = e.height || this.getHeight(), e.x = e.x !== void 0 ? e.x : this.x(), e.y = e.y !== void 0 ? e.y : this.y(), _c.Node.prototype._toKonvaCanvas.call(this, e);
78062
78061
  }
78063
78062
  _checkVisibility() {
78064
78063
  this.visible() ? this.canvas._canvas.style.display = "block" : this.canvas._canvas.style.display = "none";
@@ -78176,7 +78175,7 @@ Uw.prototype.nodeType = "FastLayer";
78176
78175
  var pd = {};
78177
78176
  Object.defineProperty(pd, "__esModule", { value: !0 });
78178
78177
  pd.Group = void 0;
78179
- const Ehe = Gn, xhe = Xu, Ihe = Pt;
78178
+ const Ehe = Gn, xhe = Ku, Ihe = Pt;
78180
78179
  class Bw extends xhe.Container {
78181
78180
  _validateAdd(e) {
78182
78181
  const t = e.getType();
@@ -78502,7 +78501,7 @@ var Z$ = {};
78502
78501
  })(Z$);
78503
78502
  (function(r) {
78504
78503
  Object.defineProperty(r, "__esModule", { value: !0 }), r.Konva = void 0;
78505
- const e = Pt, t = Gn, n = Ln, i = Xu, s = X$, a = bp, o = sy, u = pd, c = ty, d = ws, p = md, m = Z$, _ = Co, y = ga;
78504
+ const e = Pt, t = Gn, n = Ln, i = Ku, s = X$, a = bp, o = sy, u = pd, c = ty, d = ws, p = md, m = Z$, _ = Co, y = ga;
78506
78505
  r.Konva = t.Util._assign(e.Konva, {
78507
78506
  Util: t.Util,
78508
78507
  Transform: t.Transform,
@@ -79416,7 +79415,7 @@ var gd = {}, t4 = {};
79416
79415
  })(t4);
79417
79416
  Object.defineProperty(gd, "__esModule", { value: !0 });
79418
79417
  gd.Path = void 0;
79419
- const Ohe = Ft, $he = ws, Dhe = Pt, vc = t4;
79418
+ const Ohe = Ft, $he = ws, Dhe = Pt, yc = t4;
79420
79419
  class vs extends $he.Shape {
79421
79420
  constructor(e) {
79422
79421
  super(e), this.dataArray = [], this.pathLength = 0, this._readDataAttribute(), this.on("dataChange.konva", function() {
@@ -79526,9 +79525,9 @@ class vs extends $he.Shape {
79526
79525
  case "L":
79527
79526
  return vs.getPointOnLine(e, a.start.x, a.start.y, o[0], o[1]);
79528
79527
  case "C":
79529
- return vs.getPointOnCubicBezier((0, vc.t2length)(e, vs.getPathLength(t), (b) => (0, vc.getCubicArcLength)([a.start.x, o[0], o[2], o[4]], [a.start.y, o[1], o[3], o[5]], b)), a.start.x, a.start.y, o[0], o[1], o[2], o[3], o[4], o[5]);
79528
+ return vs.getPointOnCubicBezier((0, yc.t2length)(e, vs.getPathLength(t), (b) => (0, yc.getCubicArcLength)([a.start.x, o[0], o[2], o[4]], [a.start.y, o[1], o[3], o[5]], b)), a.start.x, a.start.y, o[0], o[1], o[2], o[3], o[4], o[5]);
79530
79529
  case "Q":
79531
- return vs.getPointOnQuadraticBezier((0, vc.t2length)(e, vs.getPathLength(t), (b) => (0, vc.getQuadraticArcLength)([a.start.x, o[0], o[2]], [a.start.y, o[1], o[3]], b)), a.start.x, a.start.y, o[0], o[1], o[2], o[3]);
79530
+ return vs.getPointOnQuadraticBezier((0, yc.t2length)(e, vs.getPathLength(t), (b) => (0, yc.getQuadraticArcLength)([a.start.x, o[0], o[2]], [a.start.y, o[1], o[3]], b)), a.start.x, a.start.y, o[0], o[1], o[2], o[3]);
79532
79531
  case "A":
79533
79532
  var u = o[0], c = o[1], d = o[2], p = o[3], m = o[4], _ = o[5], y = o[6];
79534
79533
  return m += _ * e / a.pathLength, vs.getPointOnEllipticalArc(u, c, d, p, m, y);
@@ -79733,9 +79732,9 @@ class vs extends $he.Shape {
79733
79732
  case "L":
79734
79733
  return c.getLineLength(e, t, i[0], i[1]);
79735
79734
  case "C":
79736
- return (0, vc.getCubicArcLength)([e, i[0], i[2], i[4]], [t, i[1], i[3], i[5]], 1);
79735
+ return (0, yc.getCubicArcLength)([e, i[0], i[2], i[4]], [t, i[1], i[3], i[5]], 1);
79737
79736
  case "Q":
79738
- return (0, vc.getQuadraticArcLength)([e, i[0], i[2]], [t, i[1], i[3]], 1);
79737
+ return (0, yc.getQuadraticArcLength)([e, i[0], i[2]], [t, i[1], i[3]], 1);
79739
79738
  case "A":
79740
79739
  s = 0;
79741
79740
  var d = i[4], p = i[5], m = i[4] + p, _ = Math.PI / 180;
@@ -79773,7 +79772,7 @@ Ohe.Factory.addGetterSetter(vs, "data");
79773
79772
  Object.defineProperty(oy, "__esModule", { value: !0 });
79774
79773
  oy.Arrow = void 0;
79775
79774
  const uy = Ft, Phe = Tp, n4 = Ct, Fhe = Pt, Ix = gd;
79776
- class Ju extends Phe.Line {
79775
+ class Yu extends Phe.Line {
79777
79776
  _sceneFunc(e) {
79778
79777
  super._sceneFunc(e);
79779
79778
  const t = Math.PI * 2, n = this.points();
@@ -79811,13 +79810,13 @@ class Ju extends Phe.Line {
79811
79810
  };
79812
79811
  }
79813
79812
  }
79814
- oy.Arrow = Ju;
79815
- Ju.prototype.className = "Arrow";
79816
- (0, Fhe._registerNode)(Ju);
79817
- uy.Factory.addGetterSetter(Ju, "pointerLength", 10, (0, n4.getNumberValidator)());
79818
- uy.Factory.addGetterSetter(Ju, "pointerWidth", 10, (0, n4.getNumberValidator)());
79819
- uy.Factory.addGetterSetter(Ju, "pointerAtBeginning", !1);
79820
- uy.Factory.addGetterSetter(Ju, "pointerAtEnding", !0);
79813
+ oy.Arrow = Yu;
79814
+ Yu.prototype.className = "Arrow";
79815
+ (0, Fhe._registerNode)(Yu);
79816
+ uy.Factory.addGetterSetter(Yu, "pointerLength", 10, (0, n4.getNumberValidator)());
79817
+ uy.Factory.addGetterSetter(Yu, "pointerWidth", 10, (0, n4.getNumberValidator)());
79818
+ uy.Factory.addGetterSetter(Yu, "pointerAtBeginning", !1);
79819
+ uy.Factory.addGetterSetter(Yu, "pointerAtEnding", !0);
79821
79820
  var cy = {};
79822
79821
  Object.defineProperty(cy, "__esModule", { value: !0 });
79823
79822
  cy.Circle = void 0;
@@ -79878,7 +79877,7 @@ Hw.Factory.addGetterSetter(Vl, "radiusY", 0, (0, s4.getNumberValidator)());
79878
79877
  var hy = {};
79879
79878
  Object.defineProperty(hy, "__esModule", { value: !0 });
79880
79879
  hy.Image = void 0;
79881
- const dv = Gn, Qu = Ft, Ghe = ws, Whe = Pt, Sp = Ct;
79880
+ const dv = Gn, Ju = Ft, Ghe = ws, Whe = Pt, Sp = Ct;
79882
79881
  let za = class r4 extends Ghe.Shape {
79883
79882
  constructor(e) {
79884
79883
  super(e), this.on("imageChange.konva", () => {
@@ -79939,13 +79938,13 @@ let za = class r4 extends Ghe.Shape {
79939
79938
  hy.Image = za;
79940
79939
  za.prototype.className = "Image";
79941
79940
  (0, Whe._registerNode)(za);
79942
- Qu.Factory.addGetterSetter(za, "cornerRadius", 0, (0, Sp.getNumberOrArrayOfNumbersValidator)(4));
79943
- Qu.Factory.addGetterSetter(za, "image");
79944
- Qu.Factory.addComponentsGetterSetter(za, "crop", ["x", "y", "width", "height"]);
79945
- Qu.Factory.addGetterSetter(za, "cropX", 0, (0, Sp.getNumberValidator)());
79946
- Qu.Factory.addGetterSetter(za, "cropY", 0, (0, Sp.getNumberValidator)());
79947
- Qu.Factory.addGetterSetter(za, "cropWidth", 0, (0, Sp.getNumberValidator)());
79948
- Qu.Factory.addGetterSetter(za, "cropHeight", 0, (0, Sp.getNumberValidator)());
79941
+ Ju.Factory.addGetterSetter(za, "cornerRadius", 0, (0, Sp.getNumberOrArrayOfNumbersValidator)(4));
79942
+ Ju.Factory.addGetterSetter(za, "image");
79943
+ Ju.Factory.addComponentsGetterSetter(za, "crop", ["x", "y", "width", "height"]);
79944
+ Ju.Factory.addGetterSetter(za, "cropX", 0, (0, Sp.getNumberValidator)());
79945
+ Ju.Factory.addGetterSetter(za, "cropY", 0, (0, Sp.getNumberValidator)());
79946
+ Ju.Factory.addGetterSetter(za, "cropWidth", 0, (0, Sp.getNumberValidator)());
79947
+ Ju.Factory.addGetterSetter(za, "cropHeight", 0, (0, Sp.getNumberValidator)());
79949
79948
  var Kc = {};
79950
79949
  Object.defineProperty(Kc, "__esModule", { value: !0 });
79951
79950
  Kc.Tag = Kc.Label = void 0;
@@ -80020,7 +80019,7 @@ class Gw extends jhe.Group {
80020
80019
  Kc.Label = Gw;
80021
80020
  Gw.prototype.className = "Label";
80022
80021
  (0, i4._registerNode)(Gw);
80023
- class Zu extends zhe.Shape {
80022
+ class Qu extends zhe.Shape {
80024
80023
  _sceneFunc(e) {
80025
80024
  const t = this.width(), n = this.height(), i = this.pointerDirection(), s = this.pointerWidth(), a = this.pointerHeight(), o = this.cornerRadius();
80026
80025
  let u = 0, c = 0, d = 0, p = 0;
@@ -80036,13 +80035,13 @@ class Zu extends zhe.Shape {
80036
80035
  };
80037
80036
  }
80038
80037
  }
80039
- Kc.Tag = Zu;
80040
- Zu.prototype.className = "Tag";
80041
- (0, i4._registerNode)(Zu);
80042
- fy.Factory.addGetterSetter(Zu, "pointerDirection", Khe);
80043
- fy.Factory.addGetterSetter(Zu, "pointerWidth", 0, (0, Vw.getNumberValidator)());
80044
- fy.Factory.addGetterSetter(Zu, "pointerHeight", 0, (0, Vw.getNumberValidator)());
80045
- fy.Factory.addGetterSetter(Zu, "cornerRadius", 0, (0, Vw.getNumberOrArrayOfNumbersValidator)(4));
80038
+ Kc.Tag = Qu;
80039
+ Qu.prototype.className = "Tag";
80040
+ (0, i4._registerNode)(Qu);
80041
+ fy.Factory.addGetterSetter(Qu, "pointerDirection", Khe);
80042
+ fy.Factory.addGetterSetter(Qu, "pointerWidth", 0, (0, Vw.getNumberValidator)());
80043
+ fy.Factory.addGetterSetter(Qu, "pointerHeight", 0, (0, Vw.getNumberValidator)());
80044
+ fy.Factory.addGetterSetter(Qu, "cornerRadius", 0, (0, Vw.getNumberOrArrayOfNumbersValidator)(4));
80046
80045
  var wp = {};
80047
80046
  Object.defineProperty(wp, "__esModule", { value: !0 });
80048
80047
  wp.Rect = void 0;
@@ -80061,7 +80060,7 @@ var my = {};
80061
80060
  Object.defineProperty(my, "__esModule", { value: !0 });
80062
80061
  my.RegularPolygon = void 0;
80063
80062
  const o4 = Ft, tfe = ws, l4 = Ct, nfe = Pt;
80064
- class ec extends tfe.Shape {
80063
+ class Zu extends tfe.Shape {
80065
80064
  _sceneFunc(e) {
80066
80065
  const t = this._getPoints();
80067
80066
  e.beginPath(), e.moveTo(t[0].x, t[0].y);
@@ -80103,18 +80102,18 @@ class ec extends tfe.Shape {
80103
80102
  this.radius(e / 2);
80104
80103
  }
80105
80104
  }
80106
- my.RegularPolygon = ec;
80107
- ec.prototype.className = "RegularPolygon";
80108
- ec.prototype._centroid = !0;
80109
- ec.prototype._attrsAffectingSize = ["radius"];
80110
- (0, nfe._registerNode)(ec);
80111
- o4.Factory.addGetterSetter(ec, "radius", 0, (0, l4.getNumberValidator)());
80112
- o4.Factory.addGetterSetter(ec, "sides", 0, (0, l4.getNumberValidator)());
80105
+ my.RegularPolygon = Zu;
80106
+ Zu.prototype.className = "RegularPolygon";
80107
+ Zu.prototype._centroid = !0;
80108
+ Zu.prototype._attrsAffectingSize = ["radius"];
80109
+ (0, nfe._registerNode)(Zu);
80110
+ o4.Factory.addGetterSetter(Zu, "radius", 0, (0, l4.getNumberValidator)());
80111
+ o4.Factory.addGetterSetter(Zu, "sides", 0, (0, l4.getNumberValidator)());
80113
80112
  var gy = {};
80114
80113
  Object.defineProperty(gy, "__esModule", { value: !0 });
80115
80114
  gy.Ring = void 0;
80116
80115
  const u4 = Ft, sfe = ws, c4 = Ct, rfe = Pt, Ax = Math.PI * 2;
80117
- class tc extends sfe.Shape {
80116
+ class ec extends sfe.Shape {
80118
80117
  _sceneFunc(e) {
80119
80118
  e.beginPath(), e.arc(0, 0, this.innerRadius(), 0, Ax, !1), e.moveTo(this.outerRadius(), 0), e.arc(0, 0, this.outerRadius(), Ax, 0, !0), e.closePath(), e.fillStrokeShape(this);
80120
80119
  }
@@ -80131,17 +80130,17 @@ class tc extends sfe.Shape {
80131
80130
  this.outerRadius(e / 2);
80132
80131
  }
80133
80132
  }
80134
- gy.Ring = tc;
80135
- tc.prototype.className = "Ring";
80136
- tc.prototype._centroid = !0;
80137
- tc.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"];
80138
- (0, rfe._registerNode)(tc);
80139
- u4.Factory.addGetterSetter(tc, "innerRadius", 0, (0, c4.getNumberValidator)());
80140
- u4.Factory.addGetterSetter(tc, "outerRadius", 0, (0, c4.getNumberValidator)());
80133
+ gy.Ring = ec;
80134
+ ec.prototype.className = "Ring";
80135
+ ec.prototype._centroid = !0;
80136
+ ec.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"];
80137
+ (0, rfe._registerNode)(ec);
80138
+ u4.Factory.addGetterSetter(ec, "innerRadius", 0, (0, c4.getNumberValidator)());
80139
+ u4.Factory.addGetterSetter(ec, "outerRadius", 0, (0, c4.getNumberValidator)());
80141
80140
  var _y = {};
80142
80141
  Object.defineProperty(_y, "__esModule", { value: !0 });
80143
80142
  _y.Sprite = void 0;
80144
- const nc = Ft, ife = ws, afe = md, d4 = Ct, ofe = Pt;
80143
+ const tc = Ft, ife = ws, afe = md, d4 = Ct, ofe = Pt;
80145
80144
  class ja extends ife.Shape {
80146
80145
  constructor(e) {
80147
80146
  super(e), this._updated = !0, this.anim = new afe.Animation(() => {
@@ -80202,13 +80201,13 @@ class ja extends ife.Shape {
80202
80201
  _y.Sprite = ja;
80203
80202
  ja.prototype.className = "Sprite";
80204
80203
  (0, ofe._registerNode)(ja);
80205
- nc.Factory.addGetterSetter(ja, "animation");
80206
- nc.Factory.addGetterSetter(ja, "animations");
80207
- nc.Factory.addGetterSetter(ja, "frameOffsets");
80208
- nc.Factory.addGetterSetter(ja, "image");
80209
- nc.Factory.addGetterSetter(ja, "frameIndex", 0, (0, d4.getNumberValidator)());
80210
- nc.Factory.addGetterSetter(ja, "frameRate", 17, (0, d4.getNumberValidator)());
80211
- nc.Factory.backCompat(ja, {
80204
+ tc.Factory.addGetterSetter(ja, "animation");
80205
+ tc.Factory.addGetterSetter(ja, "animations");
80206
+ tc.Factory.addGetterSetter(ja, "frameOffsets");
80207
+ tc.Factory.addGetterSetter(ja, "image");
80208
+ tc.Factory.addGetterSetter(ja, "frameIndex", 0, (0, d4.getNumberValidator)());
80209
+ tc.Factory.addGetterSetter(ja, "frameRate", 17, (0, d4.getNumberValidator)());
80210
+ tc.Factory.backCompat(ja, {
80212
80211
  index: "frameIndex",
80213
80212
  getIndex: "getFrameIndex",
80214
80213
  setIndex: "setFrameIndex"
@@ -80256,7 +80255,7 @@ const Mb = Gn, wr = Ft, cfe = ws, hv = Pt, Wl = Ct, dfe = Pt;
80256
80255
  function h4(r) {
80257
80256
  return [...r].reduce((e, t, n, i) => (/\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?(?:\u200D\p{Emoji_Presentation})+/u.test(t) ? e.push(t) : /\p{Regional_Indicator}{2}/u.test(t + (i[n + 1] || "")) ? e.push(t + i[n + 1]) : n > 0 && /\p{Mn}|\p{Me}|\p{Mc}/u.test(t) ? e[e.length - 1] += t : e.push(t), e), []);
80258
80257
  }
80259
- const bc = "auto", hfe = "center", f4 = "inherit", Kd = "justify", ffe = "Change.konva", pfe = "2d", Rx = "-", p4 = "left", mfe = "text", gfe = "Text", _fe = "top", yfe = "bottom", Nx = "middle", m4 = "normal", vfe = "px ", Em = " ", bfe = "right", kx = "rtl", Tfe = "word", Sfe = "char", Ox = "none", fv = "…", g4 = [
80258
+ const vc = "auto", hfe = "center", f4 = "inherit", Kd = "justify", ffe = "Change.konva", pfe = "2d", Rx = "-", p4 = "left", mfe = "text", gfe = "Text", _fe = "top", yfe = "bottom", Nx = "middle", m4 = "normal", vfe = "px ", Em = " ", bfe = "right", kx = "rtl", Tfe = "word", Sfe = "char", Ox = "none", fv = "…", g4 = [
80260
80259
  "direction",
80261
80260
  "fontFamily",
80262
80261
  "fontSize",
@@ -80349,10 +80348,10 @@ class Jn extends cfe.Shape {
80349
80348
  return this._setAttr(mfe, t), this;
80350
80349
  }
80351
80350
  getWidth() {
80352
- return this.attrs.width === bc || this.attrs.width === void 0 ? this.getTextWidth() + this.padding() * 2 : this.attrs.width;
80351
+ return this.attrs.width === vc || this.attrs.width === void 0 ? this.getTextWidth() + this.padding() * 2 : this.attrs.width;
80353
80352
  }
80354
80353
  getHeight() {
80355
- return this.attrs.height === bc || this.attrs.height === void 0 ? this.fontSize() * this.textArr.length * this.lineHeight() + this.padding() * 2 : this.attrs.height;
80354
+ return this.attrs.height === vc || this.attrs.height === void 0 ? this.fontSize() * this.textArr.length * this.lineHeight() + this.padding() * 2 : this.attrs.height;
80356
80355
  }
80357
80356
  getTextWidth() {
80358
80357
  return this.textWidth;
@@ -80399,7 +80398,7 @@ class Jn extends cfe.Shape {
80399
80398
  }
80400
80399
  _setTextData() {
80401
80400
  let e = this.text().split(`
80402
- `), t = +this.fontSize(), n = 0, i = this.lineHeight() * t, s = this.attrs.width, a = this.attrs.height, o = s !== bc && s !== void 0, u = a !== bc && a !== void 0, c = this.padding(), d = s - c * 2, p = a - c * 2, m = 0, _ = this.wrap(), y = _ !== Ox, b = _ !== Sfe && y, T = this.ellipsis();
80401
+ `), t = +this.fontSize(), n = 0, i = this.lineHeight() * t, s = this.attrs.width, a = this.attrs.height, o = s !== vc && s !== void 0, u = a !== vc && a !== void 0, c = this.padding(), d = s - c * 2, p = a - c * 2, m = 0, _ = this.wrap(), y = _ !== Ox, b = _ !== Sfe && y, T = this.ellipsis();
80403
80402
  this.textArr = [], pv().font = this._getContextFont();
80404
80403
  const w = T ? this._getTextWidth(fv) : 0;
80405
80404
  for (let E = 0, I = e.length; E < I; ++E) {
@@ -80436,11 +80435,11 @@ class Jn extends cfe.Shape {
80436
80435
  this.textHeight = t, this.textWidth = n;
80437
80436
  }
80438
80437
  _shouldHandleEllipsis(e) {
80439
- const t = +this.fontSize(), n = this.lineHeight() * t, i = this.attrs.height, s = i !== bc && i !== void 0, a = this.padding(), o = i - a * 2;
80438
+ const t = +this.fontSize(), n = this.lineHeight() * t, i = this.attrs.height, s = i !== vc && i !== void 0, a = this.padding(), o = i - a * 2;
80440
80439
  return !(this.wrap() !== Ox) || s && e + n > o;
80441
80440
  }
80442
80441
  _tryToAddEllipsisToLastLine() {
80443
- const e = this.attrs.width, t = e !== bc && e !== void 0, n = this.padding(), i = e - n * 2, s = this.ellipsis(), a = this.textArr[this.textArr.length - 1];
80442
+ const e = this.attrs.width, t = e !== vc && e !== void 0, n = this.padding(), i = e - n * 2, s = this.ellipsis(), a = this.textArr[this.textArr.length - 1];
80444
80443
  !a || !s || (t && (this._getTextWidth(a.text + fv) < i || (a.text = a.text.slice(0, a.text.length - 3))), this.textArr.splice(this.textArr.length - 1, 1), this._addTextLine(a.text + fv));
80445
80444
  }
80446
80445
  getStrokeScaleEnabled() {
@@ -82313,7 +82312,7 @@ Object.defineProperty(Eme, "__esModule", { value: !0 });
82313
82312
  const xme = Q0;
82314
82313
  Fw.exports = xme.Konva;
82315
82314
  var Ime = Fw.exports;
82316
- const Tc = /* @__PURE__ */ yn(Ime), yv = {
82315
+ const bc = /* @__PURE__ */ yn(Ime), yv = {
82317
82316
  STROKE_WIDTH: 5,
82318
82317
  STROKE_COLOR: "#f32",
82319
82318
  EMPTY_DRAWER_RECT_COLOR: "#fff"
@@ -82321,7 +82320,7 @@ const Tc = /* @__PURE__ */ yn(Ime), yv = {
82321
82320
  class Ub {
82322
82321
  constructor(e) {
82323
82322
  this.stage = null, this.strokeWidth = yv.STROKE_WIDTH, this.strokeColor = yv.STROKE_COLOR, this.emptyDrawerRectColor = yv.EMPTY_DRAWER_RECT_COLOR, this.emptyDrawerRect = null;
82324
- const { container: t, width: n, height: i } = e, s = new Tc.Stage({
82323
+ const { container: t, width: n, height: i } = e, s = new bc.Stage({
82325
82324
  container: t,
82326
82325
  width: n,
82327
82326
  height: i
@@ -82336,7 +82335,7 @@ class Ub {
82336
82335
  * @param cameraParam From app `STATE.camera`.
82337
82336
  */
82338
82337
  addLayer() {
82339
- const e = new Tc.Layer();
82338
+ const e = new bc.Layer();
82340
82339
  return this.stage.add(e), e;
82341
82340
  }
82342
82341
  initFreeDrawing(e) {
@@ -82344,7 +82343,7 @@ class Ub {
82344
82343
  this.stage.on("mousedown touchstart", (i) => {
82345
82344
  t = !0;
82346
82345
  const s = this.stage.getPointerPosition();
82347
- n = new Tc.Line({
82346
+ n = new bc.Line({
82348
82347
  stroke: this.strokeColor,
82349
82348
  strokeWidth: this.strokeWidth,
82350
82349
  globalCompositeOperation: "source-over",
@@ -82365,7 +82364,7 @@ class Ub {
82365
82364
  });
82366
82365
  }
82367
82366
  addRect(e, t, n) {
82368
- const i = new Tc.Rect({
82367
+ const i = new bc.Rect({
82369
82368
  width: t,
82370
82369
  height: n,
82371
82370
  fill: this.emptyDrawerRectColor
@@ -82378,7 +82377,7 @@ class Ub {
82378
82377
  let n, i;
82379
82378
  const s = t.width / t.height;
82380
82379
  this.stage.width() < t.width ? (n = this.stage.width(), i = this.stage.width() / s) : (n = t.width, i = t.width / s), console.log("imageWidth", n), console.log("imageHeight", i);
82381
- const a = new Tc.Image({
82380
+ const a = new bc.Image({
82382
82381
  image: t,
82383
82382
  x: (this.stage.width() - n) / 2,
82384
82383
  //(this.stage.width() - imageObj.width) / 2, // Center horizontally
@@ -82391,7 +82390,7 @@ class Ub {
82391
82390
  }
82392
82391
  // Hack to make the drawings visible after canvas resize
82393
82392
  addWakeupLine(e) {
82394
- const t = new Tc.Line({
82393
+ const t = new bc.Line({
82395
82394
  stroke: "#ffffff",
82396
82395
  strokeWidth: 1,
82397
82396
  globalCompositeOperation: "source-over",
@@ -82420,13 +82419,13 @@ class Wy extends Dw {
82420
82419
  super("ScreenShareWhiteboard", "screen"), this.imageSrc = null, this.konvaDrawer = null, this.mode = void 0, this.screenSharePlugin = null, this.selectors = {}, this.screenSharePlugin = e, this.selectors = {
82421
82420
  ...Ame,
82422
82421
  ...t.selectors || {}
82423
- };
82422
+ }, this.selectors.document || (this.selectors.document = document);
82424
82423
  }
82425
82424
  createVideoElement() {
82426
- const e = document.createElement("video");
82425
+ const e = this.selectors.document.createElement("video");
82427
82426
  e.setAttribute("id", this.selectors.videoElement), e.setAttribute("autoplay", ""), e.style.setProperty("visibility", "hidden"), e.style.setProperty("width", "auto"), e.style.setProperty("height", "auto"), this.video = e;
82428
- const t = document.createElement("div");
82429
- t.classList.add(this.selectors.videoElementContainer), t.style.setProperty("display", "none"), t.appendChild(e), this.wrapperEl = t, document.body.appendChild(t);
82427
+ const t = this.selectors.document.createElement("div");
82428
+ t.classList.add(this.selectors.videoElementContainer), t.style.setProperty("display", "none"), t.appendChild(e), this.wrapperEl = t, this.selectors.document.body ? this.selectors.document.body.appendChild(t) : this.selectors.document.appendChild(t);
82430
82429
  }
82431
82430
  getAspectRatioDimensions(e, t) {
82432
82431
  const n = e.getTracks()[0].getSettings(), i = t.clientWidth, s = t.clientHeight, a = n.width, o = n.height, u = a / o, c = i / s;
@@ -82445,9 +82444,9 @@ class Wy extends Dw {
82445
82444
  */
82446
82445
  async start(e) {
82447
82446
  this.createVideoElement(), this.initialStream = e, this.video.srcObject = e;
82448
- const t = document.getElementById(this.selectors.container);
82447
+ const t = this.selectors.document.getElementById(this.selectors.container);
82449
82448
  t.style.setProperty("position", "relative"), t.style.setProperty("min-width", "100%"), t.style.setProperty("height", "100%"), t.style.setProperty("display", "flex"), t.style.setProperty("justify-content", "center");
82450
- const n = document.getElementById(this.selectors.compositeCanvasContainer);
82449
+ const n = this.selectors.document.getElementById(this.selectors.compositeCanvasContainer);
82451
82450
  n.style.setProperty("position", "relative"), n.style.setProperty("margin", "auto 0");
82452
82451
  const { width: i, height: s } = this.getAspectRatioDimensions(e, t);
82453
82452
  let a = i, o = s;
@@ -82458,7 +82457,7 @@ class Wy extends Dw {
82458
82457
  });
82459
82458
  const u = this.screenShareKonvaDrawer.addLayer();
82460
82459
  this.screenShareKonvaDrawer.initFreeDrawing(u);
82461
- const c = document.getElementById(this.selectors.drawerContainer), d = c.querySelector("canvas"), p = c.querySelector(".konvajs-content"), m = document.getElementById(this.selectors.compositeCanvas);
82460
+ const c = this.selectors.document.getElementById(this.selectors.drawerContainer), d = c.querySelector("canvas"), p = c.querySelector(".konvajs-content"), m = this.selectors.document.getElementById(this.selectors.compositeCanvas);
82462
82461
  m.style.setProperty("position", "absolute"), m.style.setProperty("top", "0"), m.style.setProperty("left", "0");
82463
82462
  const _ = m.getContext("2d"), y = () => {
82464
82463
  const { width: w, height: x } = this.getAspectRatioDimensions(e, t);
@@ -82795,7 +82794,7 @@ var I4 = {};
82795
82794
  })(I4);
82796
82795
  const zme = rr, jme = I4;
82797
82796
  var qme = Object.assign(zme, { instanceMethods: jme });
82798
- const yu = new AudioContext(), ua = {
82797
+ const _u = new AudioContext(), ua = {
82799
82798
  NEW_CALL: "new_call",
82800
82799
  CALL_CONFIRMED: "confirmed",
82801
82800
  CALL_FAILED: "failed",
@@ -83301,11 +83300,11 @@ const Xme = (r) => {
83301
83300
  t ? yr.debug(Ro(Ao(), r, e), t) : yr.debug(Ro(Ao(), r, e));
83302
83301
  }, bv = (r, e) => {
83303
83302
  yr.info(Ro(Ao(), r, e));
83304
- }, vu = (r, e) => {
83303
+ }, yu = (r, e) => {
83305
83304
  yr.info(Ro(Ao(), r, e));
83306
83305
  }, Ym = (r, e) => {
83307
83306
  yr.warn(Ro(Ao(), r, e));
83308
- }, Ic = (r, e) => {
83307
+ }, xc = (r, e) => {
83309
83308
  yr.error(Ro(Ao(), r, e));
83310
83309
  };
83311
83310
  function Jme(r) {
@@ -85299,7 +85298,7 @@ class $ge {
85299
85298
  this._callbacks = {
85300
85299
  onreport: null,
85301
85300
  onticket: null
85302
- }, this._id = uge(), this._moduleName = this._id, this._probeId = t, this._config = e, this._exporter = new mge(e), this._state = go.IDLE, this.registerToPCEvents(), vu(this._moduleName, `new collector created for probe ${this._probeId}`);
85301
+ }, this._id = uge(), this._moduleName = this._id, this._probeId = t, this._config = e, this._exporter = new mge(e), this._state = go.IDLE, this.registerToPCEvents(), yu(this._moduleName, `new collector created for probe ${this._probeId}`);
85303
85302
  }
85304
85303
  analyze(e, t, n, i) {
85305
85304
  const s = (u, c) => u === _e.AUDIO ? c === la.INBOUND_RTP ? { ...R4 } : { ...N4 } : c === la.INBOUND_RTP ? { ...k4 } : { ...O4 }, a = rge(t);
@@ -85381,7 +85380,7 @@ class $ge {
85381
85380
  `got report for probe ${this._probeId}#${this._exporter.getReportsNumber() + 1}`
85382
85381
  ), this.fireOnReport(n), n;
85383
85382
  } catch (e) {
85384
- return Ic(this._moduleName, `got error ${e}`), null;
85383
+ return xc(this._moduleName, `got error ${e}`), null;
85385
85384
  }
85386
85385
  }
85387
85386
  async start() {
@@ -85404,13 +85403,13 @@ class $ge {
85404
85403
  e in this._callbacks ? (this._callbacks[e] = {
85405
85404
  callback: t,
85406
85405
  context: n
85407
- }, Jt(this._moduleName, `registered callback '${e}'`)) : Ic(
85406
+ }, Jt(this._moduleName, `registered callback '${e}'`)) : xc(
85408
85407
  this._moduleName,
85409
85408
  `can't register callback for '${e}' - not found`
85410
85409
  );
85411
85410
  }
85412
85411
  unregisterCallback(e) {
85413
- e in this._callbacks ? (this._callbacks[e] = null, delete this._callbacks[e], Jt(this._moduleName, `unregistered callback '${e}'`)) : Ic(
85412
+ e in this._callbacks ? (this._callbacks[e] = null, delete this._callbacks[e], Jt(this._moduleName, `unregistered callback '${e}'`)) : xc(
85414
85413
  this._moduleName,
85415
85414
  `can't unregister callback for '${e}' - not found`
85416
85415
  );
@@ -85458,7 +85457,7 @@ class $ge {
85458
85457
  "Media Devices state"
85459
85458
  );
85460
85459
  } catch {
85461
- Ic(this._moduleName, "can't get devices");
85460
+ xc(this._moduleName, "can't get devices");
85462
85461
  }
85463
85462
  }, e) {
85464
85463
  e.oniceconnectionstatechange = () => {
@@ -85522,7 +85521,7 @@ class $ge {
85522
85521
  }
85523
85522
  class Dge {
85524
85523
  constructor(e) {
85525
- this._id = e.pname && e.pname.substr(0, 12).padEnd(12, " ") || lge(), this._moduleName = this._id, vu(this._moduleName, "probe created"), this._config = e, this._collector = new $ge(this._config, this._id);
85524
+ this._id = e.pname && e.pname.substr(0, 12).padEnd(12, " ") || lge(), this._moduleName = this._id, yu(this._moduleName, "probe created"), this._config = e, this._collector = new $ge(this._config, this._id);
85526
85525
  }
85527
85526
  /**
85528
85527
  * Register a callback to 'onreport'
@@ -85636,7 +85635,7 @@ class Pge {
85636
85635
  constructor(e) {
85637
85636
  this._config = e, this._probes = [], this._startedTime = null, this._callbacks = {
85638
85637
  onresult: null
85639
- }, vu(dr, `configured for probing every ${this._config.refreshEvery}ms`), vu(dr, `configured for starting after ${this._config.startAfter}ms`), vu(dr, `${!this._config.stopAfter || this._config.stopAfter !== -1 ? `configured for stopped after ${this._config.stopAfter}ms` : "configured for never stopped"}`), Jt(dr, "engine initialized");
85638
+ }, yu(dr, `configured for probing every ${this._config.refreshEvery}ms`), yu(dr, `configured for starting after ${this._config.startAfter}ms`), yu(dr, `${!this._config.stopAfter || this._config.stopAfter !== -1 ? `configured for stopped after ${this._config.stopAfter}ms` : "configured for never stopped"}`), Jt(dr, "engine initialized");
85640
85639
  }
85641
85640
  get probes() {
85642
85641
  return this._probes;
@@ -85685,13 +85684,13 @@ class Pge {
85685
85684
  i.stop(n);
85686
85685
  });
85687
85686
  };
85688
- vu(dr, "stop collecting"), t(e);
85687
+ yu(dr, "stop collecting"), t(e);
85689
85688
  }
85690
85689
  registerCallback(e, t, n) {
85691
- e in this._callbacks ? (this._callbacks[e] = { callback: t, context: n }, Jt(dr, `registered callback '${e}'`)) : Ic(dr, `can't register callback for '${e}' - not found`);
85690
+ e in this._callbacks ? (this._callbacks[e] = { callback: t, context: n }, Jt(dr, `registered callback '${e}'`)) : xc(dr, `can't register callback for '${e}' - not found`);
85692
85691
  }
85693
85692
  unregisterCallback(e) {
85694
- e in this._callbacks ? (this._callbacks[e] = null, delete this._callbacks[e], Jt(this._moduleName, `unregistered callback '${e}'`)) : Ic(this._moduleName, `can't unregister callback for '${e}' - not found`);
85693
+ e in this._callbacks ? (this._callbacks[e] = null, delete this._callbacks[e], Jt(this._moduleName, `unregistered callback '${e}'`)) : xc(this._moduleName, `can't unregister callback for '${e}' - not found`);
85695
85694
  }
85696
85695
  fireOnReports(e) {
85697
85696
  this._callbacks.onresult && e.probes.length > 0 && Hb(this._callbacks.onresult.callback, this._callbacks.onresult.context, e);
@@ -85700,7 +85699,7 @@ class Pge {
85700
85699
  const Fge = "interface ";
85701
85700
  class Mge {
85702
85701
  constructor(e) {
85703
- this._config = oge(e), vu(Fge, `welcome to ${this._config.name} version ${this._config.version}`), Xme(this._config.verbose || !1), this._engine = new Pge(this._config);
85702
+ this._config = oge(e), yu(Fge, `welcome to ${this._config.name} version ${this._config.version}`), Xme(this._config.verbose || !1), this._engine = new Pge(this._config);
85704
85703
  }
85705
85704
  /**
85706
85705
  * Change log level manually
@@ -85802,8 +85801,8 @@ class Bge {
85802
85801
  }
85803
85802
  beginCalculation(e, t) {
85804
85803
  this.clearVolumeInterval(t);
85805
- const n = yu.createAnalyser(), i = yu.createMediaStreamSource(e), s = yu.createScriptProcessor(2048, 1, 1);
85806
- n.smoothingTimeConstant = 0.8, n.fftSize = 1024, i.connect(n), n.connect(s), s.connect(yu.destination), this.intervals[t] = setInterval(() => {
85804
+ const n = _u.createAnalyser(), i = _u.createMediaStreamSource(e), s = _u.createScriptProcessor(2048, 1, 1);
85805
+ n.smoothingTimeConstant = 0.8, n.fftSize = 1024, i.connect(n), n.connect(s), s.connect(_u.destination), this.intervals[t] = setInterval(() => {
85807
85806
  const a = new Uint8Array(n.frequencyBinCount);
85808
85807
  n.getByteFrequencyData(a);
85809
85808
  let o = 0;
@@ -86239,14 +86238,14 @@ class Vge {
86239
86238
  var a;
86240
86239
  if (n == null)
86241
86240
  return;
86242
- const i = new MediaStream(), s = yu.createMediaStreamDestination();
86241
+ const i = new MediaStream(), s = _u.createMediaStreamDestination();
86243
86242
  if (n.connection.getReceivers().forEach((o) => {
86244
86243
  t.forEach((u) => {
86245
- i.addTrack(o.track), o.track.id !== u.id && yu.createMediaStreamSource(new MediaStream([u])).connect(s);
86244
+ i.addTrack(o.track), o.track.id !== u.id && _u.createMediaStreamSource(new MediaStream([u])).connect(s);
86246
86245
  });
86247
86246
  }), e[0].roomId === this.currentActiveRoomId) {
86248
86247
  const o = this.getActiveStream();
86249
- yu.createMediaStreamSource(o).connect(s);
86248
+ _u.createMediaStreamSource(o).connect(s);
86250
86249
  }
86251
86250
  (a = n.connection) != null && a.getSenders()[0] && (await n.connection.getSenders()[0].replaceTrack(s.stream.getTracks()[0]), this.muteReconfigure(n));
86252
86251
  });