@voicenter-team/opensips-js 1.0.82 → 1.0.83

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,29 +1,29 @@
1
- var S_ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1
+ var y_ = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
2
  function ot(c) {
3
3
  return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
4
4
  }
5
- const y_ = "jssip", A_ = "JsSIP", C_ = "the Javascript SIP library", R_ = "3.10.0", I_ = "https://jssip.net", b_ = [
5
+ const A_ = "jssip", C_ = "JsSIP", R_ = "the Javascript SIP library", I_ = "3.10.0", b_ = "https://jssip.net", w_ = [
6
6
  "José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)",
7
7
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)"
8
- ], w_ = "lib/JsSIP.d.ts", O_ = "lib-es5/JsSIP.js", D_ = [
8
+ ], O_ = "lib/JsSIP.d.ts", D_ = "lib-es5/JsSIP.js", N_ = [
9
9
  "sip",
10
10
  "websocket",
11
11
  "webrtc",
12
12
  "node",
13
13
  "browser",
14
14
  "library"
15
- ], N_ = "MIT", U_ = {
15
+ ], U_ = "MIT", P_ = {
16
16
  type: "git",
17
17
  url: "https://github.com/versatica/JsSIP.git"
18
- }, P_ = {
19
- url: "https://github.com/versatica/JsSIP/issues"
20
18
  }, x_ = {
19
+ url: "https://github.com/versatica/JsSIP/issues"
20
+ }, M_ = {
21
21
  "@types/events": "^3.0.0",
22
22
  "@types/debug": "^4.1.7",
23
23
  debug: "^4.3.1",
24
24
  events: "^3.3.0",
25
25
  "sdp-transform": "^2.14.1"
26
- }, M_ = {
26
+ }, k_ = {
27
27
  "@babel/core": "^7.19.6",
28
28
  "@babel/preset-env": "^7.19.4",
29
29
  "ansi-colors": "^3.2.4",
@@ -42,27 +42,27 @@ const y_ = "jssip", A_ = "JsSIP", C_ = "the Javascript SIP library", R_ = "3.10.
42
42
  pegjs: "^0.7.0",
43
43
  "vinyl-buffer": "^1.0.1",
44
44
  "vinyl-source-stream": "^2.0.0"
45
- }, k_ = {
45
+ }, L_ = {
46
46
  lint: "node npm-scripts.js lint",
47
47
  test: "node npm-scripts.js test",
48
48
  prepublish: "node npm-scripts.js prepublish",
49
49
  release: "node npm-scripts.js release"
50
50
  }, bo = {
51
- name: y_,
52
- title: A_,
53
- description: C_,
54
- version: R_,
55
- homepage: I_,
56
- contributors: b_,
57
- types: w_,
58
- main: O_,
59
- keywords: D_,
60
- license: N_,
61
- repository: U_,
62
- bugs: P_,
63
- dependencies: x_,
64
- devDependencies: M_,
65
- scripts: k_
51
+ name: A_,
52
+ title: C_,
53
+ description: R_,
54
+ version: I_,
55
+ homepage: b_,
56
+ contributors: w_,
57
+ types: O_,
58
+ main: D_,
59
+ keywords: N_,
60
+ license: U_,
61
+ repository: P_,
62
+ bugs: x_,
63
+ dependencies: M_,
64
+ devDependencies: k_,
65
+ scripts: L_
66
66
  };
67
67
  var Nu = bo, rt = {
68
68
  USER_AGENT: "".concat(Nu.title, " ").concat(Nu.version),
@@ -260,13 +260,13 @@ function Do(c) {
260
260
  a = Reflect.construct(o, arguments, t);
261
261
  } else
262
262
  a = o.apply(this, arguments);
263
- return L_(this, a);
263
+ return $_(this, a);
264
264
  };
265
265
  }
266
- function L_(c, n) {
267
- return n && (so(n) === "object" || typeof n == "function") ? n : $_(c);
266
+ function $_(c, n) {
267
+ return n && (so(n) === "object" || typeof n == "function") ? n : H_(c);
268
268
  }
269
- function $_(c) {
269
+ function H_(c) {
270
270
  if (c === void 0)
271
271
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
272
272
  return c;
@@ -274,7 +274,7 @@ function $_(c) {
274
274
  function ar(c) {
275
275
  var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
276
276
  return ar = function(o) {
277
- if (o === null || !H_(o))
277
+ if (o === null || !F_(o))
278
278
  return o;
279
279
  if (typeof o != "function")
280
280
  throw new TypeError("Super expression must either be null or a function");
@@ -309,7 +309,7 @@ function wf() {
309
309
  return !1;
310
310
  }
311
311
  }
312
- function H_(c) {
312
+ function F_(c) {
313
313
  return Function.toString.call(c).indexOf("[native code]") !== -1;
314
314
  }
315
315
  function Gi(c, n) {
@@ -322,7 +322,7 @@ function Wi(c) {
322
322
  return r.__proto__ || Object.getPrototypeOf(r);
323
323
  }, Wi(c);
324
324
  }
325
- var F_ = /* @__PURE__ */ function(c) {
325
+ var V_ = /* @__PURE__ */ function(c) {
326
326
  Oo(r, c);
327
327
  var n = Do(r);
328
328
  function r(o, a) {
@@ -330,7 +330,7 @@ var F_ = /* @__PURE__ */ function(c) {
330
330
  return wo(this, r), t = n.call(this), t.code = 1, t.name = "CONFIGURATION_ERROR", t.parameter = o, t.value = a, t.message = t.value ? "Invalid value ".concat(JSON.stringify(t.value), ' for parameter "').concat(t.parameter, '"') : "Missing parameter: ".concat(t.parameter), t;
331
331
  }
332
332
  return r;
333
- }(/* @__PURE__ */ ar(Error)), V_ = /* @__PURE__ */ function(c) {
333
+ }(/* @__PURE__ */ ar(Error)), j_ = /* @__PURE__ */ function(c) {
334
334
  Oo(r, c);
335
335
  var n = Do(r);
336
336
  function r(o) {
@@ -338,7 +338,7 @@ var F_ = /* @__PURE__ */ function(c) {
338
338
  return wo(this, r), a = n.call(this), a.code = 2, a.name = "INVALID_STATE_ERROR", a.status = o, a.message = "Invalid status: ".concat(o), a;
339
339
  }
340
340
  return r;
341
- }(/* @__PURE__ */ ar(Error)), j_ = /* @__PURE__ */ function(c) {
341
+ }(/* @__PURE__ */ ar(Error)), q_ = /* @__PURE__ */ function(c) {
342
342
  Oo(r, c);
343
343
  var n = Do(r);
344
344
  function r(o) {
@@ -346,7 +346,7 @@ var F_ = /* @__PURE__ */ function(c) {
346
346
  return wo(this, r), a = n.call(this), a.code = 3, a.name = "NOT_SUPPORTED_ERROR", a.message = o, a;
347
347
  }
348
348
  return r;
349
- }(/* @__PURE__ */ ar(Error)), q_ = /* @__PURE__ */ function(c) {
349
+ }(/* @__PURE__ */ ar(Error)), B_ = /* @__PURE__ */ function(c) {
350
350
  Oo(r, c);
351
351
  var n = Do(r);
352
352
  function r(o) {
@@ -355,10 +355,10 @@ var F_ = /* @__PURE__ */ function(c) {
355
355
  }
356
356
  return r;
357
357
  }(/* @__PURE__ */ ar(Error)), Hs = {
358
- ConfigurationError: F_,
359
- InvalidStateError: V_,
360
- NotSupportedError: j_,
361
- NotReadyError: q_
358
+ ConfigurationError: V_,
359
+ InvalidStateError: j_,
360
+ NotSupportedError: q_,
361
+ NotReadyError: B_
362
362
  }, Qe = {}, Xo, Uu;
363
363
  function du() {
364
364
  if (Uu)
@@ -1111,8 +1111,8 @@ function ns() {
1111
1111
  }
1112
1112
  function me() {
1113
1113
  var e, l, u, f, h, m, v, S, O, ie, Ne, Rt, Ds, k, C, Te;
1114
- return k = s, C = s, e = oe(), e !== null ? (o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? (o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? (o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? (o.charCodeAt(s) === 58 ? (S = ":", s++) : (S = null, d('":"')), S !== null ? (O = oe(), O !== null ? (o.charCodeAt(s) === 58 ? (ie = ":", s++) : (ie = null, d('":"')), ie !== null ? (Ne = oe(), Ne !== null ? (o.charCodeAt(s) === 58 ? (Rt = ":", s++) : (Rt = null, d('":"')), Rt !== null ? (Ds = lt(), Ds !== null ? e = [e, l, u, f, h, m, v, S, O, ie, Ne, Rt, Ds] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? (o.charCodeAt(s) === 58 ? (O = ":", s++) : (O = null, d('":"')), O !== null ? (ie = oe(), ie !== null ? (o.charCodeAt(s) === 58 ? (Ne = ":", s++) : (Ne = null, d('":"')), Ne !== null ? (Rt = lt(), Rt !== null ? e = [e, l, u, f, h, m, v, S, O, ie, Ne, Rt] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? (o.charCodeAt(s) === 58 ? (O = ":", s++) : (O = null, d('":"')), O !== null ? (ie = lt(), ie !== null ? e = [e, l, u, f, h, m, v, S, O, ie] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = lt(), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = lt(), m !== null ? e = [e, l, u, f, h, m] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = lt(), f !== null ? e = [e, l, u, f] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = lt(), l !== null ? e = [e, l] : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? e = [e, l] : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (o.substr(s, 2) === "::" ? (l = "::", s += 2) : (l = null, d('"::"')), l !== null ? (u = oe(), u !== null ? (o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? (o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? (o.charCodeAt(s) === 58 ? (S = ":", s++) : (S = null, d('":"')), S !== null ? (O = oe(), O !== null ? (o.charCodeAt(s) === 58 ? (ie = ":", s++) : (ie = null, d('":"')), ie !== null ? (Ne = lt(), Ne !== null ? e = [e, l, u, f, h, m, v, S, O, ie, Ne] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (o.substr(s, 2) === "::" ? (u = "::", s += 2) : (u = null, d('"::"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? (o.charCodeAt(s) === 58 ? (O = ":", s++) : (O = null, d('":"')), O !== null ? (ie = lt(), ie !== null ? e = [e, l, u, f, h, m, v, S, O, ie] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (o.substr(s, 2) === "::" ? (f = "::", s += 2) : (f = null, d('"::"')), f !== null ? (h = oe(), h !== null ? (o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? (o.charCodeAt(s) === 58 ? (S = ":", s++) : (S = null, d('":"')), S !== null ? (O = lt(), O !== null ? e = [e, l, u, f, h, m, v, S, O] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (o.substr(s, 2) === "::" ? (h = "::", s += 2) : (h = null, d('"::"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = lt(), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (Te = s, o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? h = [h, m] : (h = null, s = Te)) : (h = null, s = Te), h = h !== null ? h : "", h !== null ? (o.substr(s, 2) === "::" ? (m = "::", s += 2) : (m = null, d('"::"')), m !== null ? (v = lt(), v !== null ? e = [e, l, u, f, h, m, v] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (Te = s, o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? h = [h, m] : (h = null, s = Te)) : (h = null, s = Te), h = h !== null ? h : "", h !== null ? (Te = s, o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? m = [m, v] : (m = null, s = Te)) : (m = null, s = Te), m = m !== null ? m : "", m !== null ? (o.substr(s, 2) === "::" ? (v = "::", s += 2) : (v = null, d('"::"')), v !== null ? (S = oe(), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (Te = s, o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? h = [h, m] : (h = null, s = Te)) : (h = null, s = Te), h = h !== null ? h : "", h !== null ? (Te = s, o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? m = [m, v] : (m = null, s = Te)) : (m = null, s = Te), m = m !== null ? m : "", m !== null ? (Te = s, o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? v = [v, S] : (v = null, s = Te)) : (v = null, s = Te), v = v !== null ? v : "", v !== null ? (o.substr(s, 2) === "::" ? (S = "::", s += 2) : (S = null, d('"::"')), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C))))))))))))))), e !== null && (e = function(E_) {
1115
- return w.host_type = "IPv6", o.substring(s, E_);
1114
+ return k = s, C = s, e = oe(), e !== null ? (o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? (o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? (o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? (o.charCodeAt(s) === 58 ? (S = ":", s++) : (S = null, d('":"')), S !== null ? (O = oe(), O !== null ? (o.charCodeAt(s) === 58 ? (ie = ":", s++) : (ie = null, d('":"')), ie !== null ? (Ne = oe(), Ne !== null ? (o.charCodeAt(s) === 58 ? (Rt = ":", s++) : (Rt = null, d('":"')), Rt !== null ? (Ds = lt(), Ds !== null ? e = [e, l, u, f, h, m, v, S, O, ie, Ne, Rt, Ds] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? (o.charCodeAt(s) === 58 ? (O = ":", s++) : (O = null, d('":"')), O !== null ? (ie = oe(), ie !== null ? (o.charCodeAt(s) === 58 ? (Ne = ":", s++) : (Ne = null, d('":"')), Ne !== null ? (Rt = lt(), Rt !== null ? e = [e, l, u, f, h, m, v, S, O, ie, Ne, Rt] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? (o.charCodeAt(s) === 58 ? (O = ":", s++) : (O = null, d('":"')), O !== null ? (ie = lt(), ie !== null ? e = [e, l, u, f, h, m, v, S, O, ie] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = lt(), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = lt(), m !== null ? e = [e, l, u, f, h, m] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? (o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = lt(), f !== null ? e = [e, l, u, f] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = lt(), l !== null ? e = [e, l] : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, o.substr(s, 2) === "::" ? (e = "::", s += 2) : (e = null, d('"::"')), e !== null ? (l = oe(), l !== null ? e = [e, l] : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (o.substr(s, 2) === "::" ? (l = "::", s += 2) : (l = null, d('"::"')), l !== null ? (u = oe(), u !== null ? (o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? (o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? (o.charCodeAt(s) === 58 ? (S = ":", s++) : (S = null, d('":"')), S !== null ? (O = oe(), O !== null ? (o.charCodeAt(s) === 58 ? (ie = ":", s++) : (ie = null, d('":"')), ie !== null ? (Ne = lt(), Ne !== null ? e = [e, l, u, f, h, m, v, S, O, ie, Ne] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (o.substr(s, 2) === "::" ? (u = "::", s += 2) : (u = null, d('"::"')), u !== null ? (f = oe(), f !== null ? (o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? (o.charCodeAt(s) === 58 ? (O = ":", s++) : (O = null, d('":"')), O !== null ? (ie = lt(), ie !== null ? e = [e, l, u, f, h, m, v, S, O, ie] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (o.substr(s, 2) === "::" ? (f = "::", s += 2) : (f = null, d('"::"')), f !== null ? (h = oe(), h !== null ? (o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? (o.charCodeAt(s) === 58 ? (S = ":", s++) : (S = null, d('":"')), S !== null ? (O = lt(), O !== null ? e = [e, l, u, f, h, m, v, S, O] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (o.substr(s, 2) === "::" ? (h = "::", s += 2) : (h = null, d('"::"')), h !== null ? (m = oe(), m !== null ? (o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = lt(), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (Te = s, o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? h = [h, m] : (h = null, s = Te)) : (h = null, s = Te), h = h !== null ? h : "", h !== null ? (o.substr(s, 2) === "::" ? (m = "::", s += 2) : (m = null, d('"::"')), m !== null ? (v = lt(), v !== null ? e = [e, l, u, f, h, m, v] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (Te = s, o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? h = [h, m] : (h = null, s = Te)) : (h = null, s = Te), h = h !== null ? h : "", h !== null ? (Te = s, o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? m = [m, v] : (m = null, s = Te)) : (m = null, s = Te), m = m !== null ? m : "", m !== null ? (o.substr(s, 2) === "::" ? (v = "::", s += 2) : (v = null, d('"::"')), v !== null ? (S = oe(), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C), e === null && (C = s, e = oe(), e !== null ? (Te = s, o.charCodeAt(s) === 58 ? (l = ":", s++) : (l = null, d('":"')), l !== null ? (u = oe(), u !== null ? l = [l, u] : (l = null, s = Te)) : (l = null, s = Te), l = l !== null ? l : "", l !== null ? (Te = s, o.charCodeAt(s) === 58 ? (u = ":", s++) : (u = null, d('":"')), u !== null ? (f = oe(), f !== null ? u = [u, f] : (u = null, s = Te)) : (u = null, s = Te), u = u !== null ? u : "", u !== null ? (Te = s, o.charCodeAt(s) === 58 ? (f = ":", s++) : (f = null, d('":"')), f !== null ? (h = oe(), h !== null ? f = [f, h] : (f = null, s = Te)) : (f = null, s = Te), f = f !== null ? f : "", f !== null ? (Te = s, o.charCodeAt(s) === 58 ? (h = ":", s++) : (h = null, d('":"')), h !== null ? (m = oe(), m !== null ? h = [h, m] : (h = null, s = Te)) : (h = null, s = Te), h = h !== null ? h : "", h !== null ? (Te = s, o.charCodeAt(s) === 58 ? (m = ":", s++) : (m = null, d('":"')), m !== null ? (v = oe(), v !== null ? m = [m, v] : (m = null, s = Te)) : (m = null, s = Te), m = m !== null ? m : "", m !== null ? (Te = s, o.charCodeAt(s) === 58 ? (v = ":", s++) : (v = null, d('":"')), v !== null ? (S = oe(), S !== null ? v = [v, S] : (v = null, s = Te)) : (v = null, s = Te), v = v !== null ? v : "", v !== null ? (o.substr(s, 2) === "::" ? (S = "::", s += 2) : (S = null, d('"::"')), S !== null ? e = [e, l, u, f, h, m, v, S] : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C)) : (e = null, s = C))))))))))))))), e !== null && (e = function(S_) {
1115
+ return w.host_type = "IPv6", o.substring(s, S_);
1116
1116
  }(k)), e === null && (s = k), e;
1117
1117
  }
1118
1118
  function oe() {
@@ -2884,7 +2884,7 @@ or && typeof or.ownKeys == "function" ? ro = or.ownKeys : Object.getOwnPropertyS
2884
2884
  } : ro = function(n) {
2885
2885
  return Object.getOwnPropertyNames(n);
2886
2886
  };
2887
- function B_(c) {
2887
+ function G_(c) {
2888
2888
  console && console.warn && console.warn(c);
2889
2889
  }
2890
2890
  var Of = Number.isNaN || function(n) {
@@ -2894,7 +2894,7 @@ function ke() {
2894
2894
  ke.init.call(this);
2895
2895
  }
2896
2896
  pu.exports = ke;
2897
- pu.exports.once = Y_;
2897
+ pu.exports.once = z_;
2898
2898
  ke.EventEmitter = ke;
2899
2899
  ke.prototype._events = void 0;
2900
2900
  ke.prototype._eventsCount = 0;
@@ -2965,7 +2965,7 @@ function Nf(c, n, r, o) {
2965
2965
  else if (typeof s == "function" ? s = t[n] = o ? [r, s] : [s, r] : o ? s.unshift(r) : s.push(r), a = Df(c), a > 0 && s.length > a && !s.warned) {
2966
2966
  s.warned = !0;
2967
2967
  var p = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(n) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2968
- p.name = "MaxListenersExceededWarning", p.emitter = c, p.type = n, p.count = s.length, B_(p);
2968
+ p.name = "MaxListenersExceededWarning", p.emitter = c, p.type = n, p.count = s.length, G_(p);
2969
2969
  }
2970
2970
  return c;
2971
2971
  }
@@ -2976,12 +2976,12 @@ ke.prototype.on = ke.prototype.addListener;
2976
2976
  ke.prototype.prependListener = function(n, r) {
2977
2977
  return Nf(this, n, r, !0);
2978
2978
  };
2979
- function G_() {
2979
+ function W_() {
2980
2980
  if (!this.fired)
2981
2981
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
2982
2982
  }
2983
2983
  function Uf(c, n, r) {
2984
- var o = { fired: !1, wrapFn: void 0, target: c, type: n, listener: r }, a = G_.bind(o);
2984
+ var o = { fired: !1, wrapFn: void 0, target: c, type: n, listener: r }, a = W_.bind(o);
2985
2985
  return a.listener = r, o.wrapFn = a, a;
2986
2986
  }
2987
2987
  ke.prototype.once = function(n, r) {
@@ -3006,7 +3006,7 @@ ke.prototype.removeListener = function(n, r) {
3006
3006
  }
3007
3007
  if (t < 0)
3008
3008
  return this;
3009
- t === 0 ? o.shift() : W_(o, t), o.length === 1 && (a[n] = o[0]), a.removeListener !== void 0 && this.emit("removeListener", n, p || r);
3009
+ t === 0 ? o.shift() : K_(o, t), o.length === 1 && (a[n] = o[0]), a.removeListener !== void 0 && this.emit("removeListener", n, p || r);
3010
3010
  }
3011
3011
  return this;
3012
3012
  };
@@ -3035,7 +3035,7 @@ function Pf(c, n, r) {
3035
3035
  if (o === void 0)
3036
3036
  return [];
3037
3037
  var a = o[n];
3038
- return a === void 0 ? [] : typeof a == "function" ? r ? [a.listener || a] : [a] : r ? K_(a) : Mf(a, a.length);
3038
+ return a === void 0 ? [] : typeof a == "function" ? r ? [a.listener || a] : [a] : r ? Y_(a) : Mf(a, a.length);
3039
3039
  }
3040
3040
  ke.prototype.listeners = function(n) {
3041
3041
  return Pf(this, n, !0);
@@ -3066,17 +3066,17 @@ function Mf(c, n) {
3066
3066
  r[o] = c[o];
3067
3067
  return r;
3068
3068
  }
3069
- function W_(c, n) {
3069
+ function K_(c, n) {
3070
3070
  for (; n + 1 < c.length; n++)
3071
3071
  c[n] = c[n + 1];
3072
3072
  c.pop();
3073
3073
  }
3074
- function K_(c) {
3074
+ function Y_(c) {
3075
3075
  for (var n = new Array(c.length), r = 0; r < n.length; ++r)
3076
3076
  n[r] = c[r].listener || c[r];
3077
3077
  return n;
3078
3078
  }
3079
- function Y_(c, n) {
3079
+ function z_(c, n) {
3080
3080
  return new Promise(function(r, o) {
3081
3081
  function a(s) {
3082
3082
  c.removeListener(n, t), o(s);
@@ -3084,10 +3084,10 @@ function Y_(c, n) {
3084
3084
  function t() {
3085
3085
  typeof c.removeListener == "function" && c.removeListener("error", a), r([].slice.call(arguments));
3086
3086
  }
3087
- kf(c, n, t, { once: !0 }), n !== "error" && z_(c, a, { once: !0 });
3087
+ kf(c, n, t, { once: !0 }), n !== "error" && J_(c, a, { once: !0 });
3088
3088
  });
3089
3089
  }
3090
- function z_(c, n, r) {
3090
+ function J_(c, n, r) {
3091
3091
  typeof c.on == "function" && kf(c, "error", n, r);
3092
3092
  }
3093
3093
  function kf(c, n, r, o) {
@@ -3101,7 +3101,7 @@ function kf(c, n, r, o) {
3101
3101
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof c);
3102
3102
  }
3103
3103
  var ct = pu.exports, za = { exports: {} }, ea, $u;
3104
- function J_() {
3104
+ function X_() {
3105
3105
  if ($u)
3106
3106
  return ea;
3107
3107
  $u = 1;
@@ -3183,8 +3183,8 @@ function J_() {
3183
3183
  }
3184
3184
  return ea;
3185
3185
  }
3186
- function X_(c) {
3187
- r.debug = r, r.default = r, r.coerce = _, r.disable = t, r.enable = a, r.enabled = s, r.humanize = J_(), r.destroy = d, Object.keys(c).forEach((g) => {
3186
+ function Q_(c) {
3187
+ r.debug = r, r.default = r, r.coerce = _, r.disable = t, r.enable = a, r.enabled = s, r.humanize = X_(), r.destroy = d, Object.keys(c).forEach((g) => {
3188
3188
  r[g] = c[g];
3189
3189
  }), r.names = [], r.skips = [], r.formatters = {};
3190
3190
  function n(g) {
@@ -3264,7 +3264,7 @@ function X_(c) {
3264
3264
  }
3265
3265
  return r.enable(r.load()), r;
3266
3266
  }
3267
- var Q_ = X_;
3267
+ var Z_ = Q_;
3268
3268
  (function(c, n) {
3269
3269
  n.formatArgs = o, n.save = a, n.load = t, n.useColors = r, n.storage = s(), n.destroy = (() => {
3270
3270
  let _ = !1;
@@ -3388,7 +3388,7 @@ var Q_ = X_;
3388
3388
  } catch {
3389
3389
  }
3390
3390
  }
3391
- c.exports = Q_(n);
3391
+ c.exports = Z_(n);
3392
3392
  const { formatters: p } = c.exports;
3393
3393
  p.j = function(_) {
3394
3394
  try {
@@ -3399,7 +3399,7 @@ var Q_ = X_;
3399
3399
  };
3400
3400
  })(za, za.exports);
3401
3401
  var ur = za.exports;
3402
- function Z_(c, n) {
3402
+ function eh(c, n) {
3403
3403
  if (!(c instanceof n))
3404
3404
  throw new TypeError("Cannot call a class as a function");
3405
3405
  }
@@ -3409,14 +3409,14 @@ function Hu(c, n) {
3409
3409
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
3410
3410
  }
3411
3411
  }
3412
- function eh(c, n, r) {
3412
+ function th(c, n, r) {
3413
3413
  return n && Hu(c.prototype, n), r && Hu(c, r), c;
3414
3414
  }
3415
3415
  var Zn = ur, er = "JsSIP", ft = /* @__PURE__ */ function() {
3416
3416
  function c(n) {
3417
- Z_(this, c), n ? (this._debug = Zn.default("".concat(er, ":").concat(n)), this._warn = Zn.default("".concat(er, ":WARN:").concat(n)), this._error = Zn.default("".concat(er, ":ERROR:").concat(n))) : (this._debug = Zn.default(er), this._warn = Zn.default("".concat(er, ":WARN")), this._error = Zn.default("".concat(er, ":ERROR"))), this._debug.log = console.info.bind(console), this._warn.log = console.warn.bind(console), this._error.log = console.error.bind(console);
3417
+ eh(this, c), n ? (this._debug = Zn.default("".concat(er, ":").concat(n)), this._warn = Zn.default("".concat(er, ":WARN:").concat(n)), this._error = Zn.default("".concat(er, ":ERROR:").concat(n))) : (this._debug = Zn.default(er), this._warn = Zn.default("".concat(er, ":WARN")), this._error = Zn.default("".concat(er, ":ERROR"))), this._debug.log = console.info.bind(console), this._warn.log = console.warn.bind(console), this._error.log = console.error.bind(console);
3418
3418
  }
3419
- return eh(c, [{
3419
+ return th(c, [{
3420
3420
  key: "debug",
3421
3421
  get: function() {
3422
3422
  return this._debug;
@@ -3935,9 +3935,9 @@ var Hf = $f.exports;
3935
3935
  });
3936
3936
  };
3937
3937
  })(Lf);
3938
- var ta = Hf, th = /%[sdv%]/g, sh = function(c) {
3938
+ var ta = Hf, sh = /%[sdv%]/g, nh = function(c) {
3939
3939
  var n = 1, r = arguments, o = r.length;
3940
- return c.replace(th, function(a) {
3940
+ return c.replace(sh, function(a) {
3941
3941
  if (n >= o)
3942
3942
  return a;
3943
3943
  var t = r[n];
@@ -3961,8 +3961,8 @@ var ta = Hf, th = /%[sdv%]/g, sh = function(c) {
3961
3961
  }
3962
3962
  else
3963
3963
  a.push(r[n.name]);
3964
- return sh.apply(null, a);
3965
- }, nh = [
3964
+ return nh.apply(null, a);
3965
+ }, rh = [
3966
3966
  "v",
3967
3967
  "o",
3968
3968
  "s",
@@ -3976,11 +3976,11 @@ var ta = Hf, th = /%[sdv%]/g, sh = function(c) {
3976
3976
  "r",
3977
3977
  "z",
3978
3978
  "a"
3979
- ], rh = ["i", "c", "b", "a"], ih = function(c, n) {
3979
+ ], ih = ["i", "c", "b", "a"], lh = function(c, n) {
3980
3980
  n = n || {}, c.version == null && (c.version = 0), c.name == null && (c.name = " "), c.media.forEach(function(t) {
3981
3981
  t.payloads == null && (t.payloads = "");
3982
3982
  });
3983
- var r = n.outerOrder || nh, o = n.innerOrder || rh, a = [];
3983
+ var r = n.outerOrder || rh, o = n.innerOrder || ih, a = [];
3984
3984
  return r.forEach(function(t) {
3985
3985
  ta[t].forEach(function(s) {
3986
3986
  s.name in c && c[s.name] != null ? a.push(yi(t, s, c)) : s.push in c && c[s.push] != null && c[s.push].forEach(function(p) {
@@ -3998,8 +3998,8 @@ var ta = Hf, th = /%[sdv%]/g, sh = function(c) {
3998
3998
  }), a.join(`\r
3999
3999
  `) + `\r
4000
4000
  `;
4001
- }, En = Lf, lh = ih;
4002
- Nt.write = lh;
4001
+ }, En = Lf, oh = lh;
4002
+ Nt.write = oh;
4003
4003
  Nt.parse = En.parse;
4004
4004
  Nt.parseParams = En.parseParams;
4005
4005
  Nt.parseFmtpConfig = En.parseFmtpConfig;
@@ -4026,7 +4026,7 @@ function Ja(c, n) {
4026
4026
  }, Ja(c, n);
4027
4027
  }
4028
4028
  function gu(c) {
4029
- var n = uh();
4029
+ var n = ch();
4030
4030
  return function() {
4031
4031
  var o = go(c), a;
4032
4032
  if (n) {
@@ -4034,18 +4034,18 @@ function gu(c) {
4034
4034
  a = Reflect.construct(o, arguments, t);
4035
4035
  } else
4036
4036
  a = o.apply(this, arguments);
4037
- return oh(this, a);
4037
+ return ah(this, a);
4038
4038
  };
4039
4039
  }
4040
- function oh(c, n) {
4041
- return n && (io(n) === "object" || typeof n == "function") ? n : ah(c);
4040
+ function ah(c, n) {
4041
+ return n && (io(n) === "object" || typeof n == "function") ? n : uh(c);
4042
4042
  }
4043
- function ah(c) {
4043
+ function uh(c) {
4044
4044
  if (c === void 0)
4045
4045
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4046
4046
  return c;
4047
4047
  }
4048
- function uh() {
4048
+ function ch() {
4049
4049
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
4050
4050
  return !1;
4051
4051
  if (typeof Proxy == "function")
@@ -4065,7 +4065,7 @@ function go(c) {
4065
4065
  function jt(c, n) {
4066
4066
  var r;
4067
4067
  if (typeof Symbol > "u" || c[Symbol.iterator] == null) {
4068
- if (Array.isArray(c) || (r = ch(c)) || n && c && typeof c.length == "number") {
4068
+ if (Array.isArray(c) || (r = fh(c)) || n && c && typeof c.length == "number") {
4069
4069
  r && (c = r);
4070
4070
  var o = 0, a = function() {
4071
4071
  };
@@ -4095,7 +4095,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4095
4095
  }
4096
4096
  } };
4097
4097
  }
4098
- function ch(c, n) {
4098
+ function fh(c, n) {
4099
4099
  if (c) {
4100
4100
  if (typeof c == "string")
4101
4101
  return Vu(c, n);
@@ -4125,7 +4125,7 @@ function ju(c, n) {
4125
4125
  function Uo(c, n, r) {
4126
4126
  return n && ju(c.prototype, n), r && ju(c, r), c;
4127
4127
  }
4128
- var Ff = Nt, fh = ft, Tt = rt, st = Ct(), qu = du(), _h = ns(), sa = new fh("SIPMessage"), Vf = /* @__PURE__ */ function() {
4128
+ var Ff = Nt, _h = ft, Tt = rt, st = Ct(), qu = du(), hh = ns(), sa = new _h("SIPMessage"), Vf = /* @__PURE__ */ function() {
4129
4129
  function c(n, r, o, a, t, s) {
4130
4130
  if (zi(this, c), !n || !r || !o)
4131
4131
  return null;
@@ -4319,7 +4319,7 @@ var Ff = Nt, fh = ft, Tt = rt, st = Ct(), qu = du(), _h = ns(), sa = new fh("SIP
4319
4319
  }, this), r.body = this.body, r.extraHeaders = st.cloneArray(this.extraHeaders), r.to = this.to, r.from = this.from, r.call_id = this.call_id, r.cseq = this.cseq, r;
4320
4320
  }
4321
4321
  }]), c;
4322
- }(), hh = /* @__PURE__ */ function(c) {
4322
+ }(), dh = /* @__PURE__ */ function(c) {
4323
4323
  mu(r, c);
4324
4324
  var n = gu(r);
4325
4325
  function r(o, a, t, s, p) {
@@ -4418,7 +4418,7 @@ var Ff = Nt, fh = ft, Tt = rt, st = Ct(), qu = du(), _h = ns(), sa = new fh("SIP
4418
4418
  var a = this.headers[r][o], t = a.raw;
4419
4419
  if (a.parsed)
4420
4420
  return a.parsed;
4421
- var s = _h.parse(t, r.replace(/-/g, "_"));
4421
+ var s = hh.parse(t, r.replace(/-/g, "_"));
4422
4422
  if (s === -1) {
4423
4423
  this.headers[r].splice(o, 1), sa.debug('error parsing "'.concat(r, '" header field with value "').concat(t, '"'));
4424
4424
  return;
@@ -4471,7 +4471,7 @@ var Ff = Nt, fh = ft, Tt = rt, st = Ct(), qu = du(), _h = ns(), sa = new fh("SIP
4471
4471
  return this.data;
4472
4472
  }
4473
4473
  }]), c;
4474
- }(), dh = /* @__PURE__ */ function(c) {
4474
+ }(), ph = /* @__PURE__ */ function(c) {
4475
4475
  mu(r, c);
4476
4476
  var n = gu(r);
4477
4477
  function r(o) {
@@ -4607,7 +4607,7 @@ var Ff = Nt, fh = ft, Tt = rt, st = Ct(), qu = du(), _h = ns(), sa = new fh("SIP
4607
4607
  `), this.transport.send(p);
4608
4608
  }
4609
4609
  }]), r;
4610
- }(jf), ph = /* @__PURE__ */ function(c) {
4610
+ }(jf), mh = /* @__PURE__ */ function(c) {
4611
4611
  mu(r, c);
4612
4612
  var n = gu(r);
4613
4613
  function r() {
@@ -4617,11 +4617,11 @@ var Ff = Nt, fh = ft, Tt = rt, st = Ct(), qu = du(), _h = ns(), sa = new fh("SIP
4617
4617
  return r;
4618
4618
  }(jf), ms = {
4619
4619
  OutgoingRequest: Vf,
4620
- InitialOutgoingInviteRequest: hh,
4621
- IncomingRequest: dh,
4622
- IncomingResponse: ph
4620
+ InitialOutgoingInviteRequest: dh,
4621
+ IncomingRequest: ph,
4622
+ IncomingResponse: mh
4623
4623
  };
4624
- function mh(c, n) {
4624
+ function gh(c, n) {
4625
4625
  if (!(c instanceof n))
4626
4626
  throw new TypeError("Cannot call a class as a function");
4627
4627
  }
@@ -4631,14 +4631,14 @@ function Bu(c, n) {
4631
4631
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
4632
4632
  }
4633
4633
  }
4634
- function gh(c, n, r) {
4634
+ function Th(c, n, r) {
4635
4635
  return n && Bu(c.prototype, n), r && Bu(c, r), c;
4636
4636
  }
4637
- var Th = ft, as = Ct(), Gt = new Th("DigestAuthentication"), vh = /* @__PURE__ */ function() {
4637
+ var vh = ft, as = Ct(), Gt = new vh("DigestAuthentication"), Eh = /* @__PURE__ */ function() {
4638
4638
  function c(n) {
4639
- mh(this, c), this._credentials = n, 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;
4639
+ gh(this, c), this._credentials = n, 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;
4640
4640
  }
4641
- return gh(c, [{
4641
+ return Th(c, [{
4642
4642
  key: "get",
4643
4643
  value: function(r) {
4644
4644
  switch (r) {
@@ -4702,9 +4702,9 @@ var Th = ft, as = Ct(), Gt = new Th("DigestAuthentication"), vh = /* @__PURE__ *
4702
4702
  return r.push("algorithm=".concat(this._algorithm)), r.push('username="'.concat(this._credentials.username, '"')), r.push('realm="'.concat(this._realm, '"')), r.push('nonce="'.concat(this._nonce, '"')), r.push('uri="'.concat(this._uri, '"')), r.push('response="'.concat(this._response, '"')), this._opaque && r.push('opaque="'.concat(this._opaque, '"')), this._qop && (r.push("qop=".concat(this._qop)), r.push('cnonce="'.concat(this._cnonce, '"')), r.push("nc=".concat(this._ncHex))), "Digest ".concat(r.join(", "));
4703
4703
  }
4704
4704
  }]), c;
4705
- }(), us = 500, Eh = 4e3, Gu = 5e3, qf = {
4705
+ }(), us = 500, Sh = 4e3, Gu = 5e3, qf = {
4706
4706
  T1: us,
4707
- T2: Eh,
4707
+ T2: Sh,
4708
4708
  T4: Gu,
4709
4709
  TIMER_B: 64 * us,
4710
4710
  TIMER_D: 0 * us,
@@ -4750,7 +4750,7 @@ function Xa(c, n) {
4750
4750
  }, Xa(c, n);
4751
4751
  }
4752
4752
  function Zi(c) {
4753
- var n = yh();
4753
+ var n = Ah();
4754
4754
  return function() {
4755
4755
  var o = To(c), a;
4756
4756
  if (n) {
@@ -4758,10 +4758,10 @@ function Zi(c) {
4758
4758
  a = Reflect.construct(o, arguments, t);
4759
4759
  } else
4760
4760
  a = o.apply(this, arguments);
4761
- return Sh(this, a);
4761
+ return yh(this, a);
4762
4762
  };
4763
4763
  }
4764
- function Sh(c, n) {
4764
+ function yh(c, n) {
4765
4765
  return n && (lo(n) === "object" || typeof n == "function") ? n : Ls(c);
4766
4766
  }
4767
4767
  function Ls(c) {
@@ -4769,7 +4769,7 @@ function Ls(c) {
4769
4769
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4770
4770
  return c;
4771
4771
  }
4772
- function yh() {
4772
+ function Ah() {
4773
4773
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
4774
4774
  return !1;
4775
4775
  if (typeof Proxy == "function")
@@ -4786,7 +4786,7 @@ function To(c) {
4786
4786
  return r.__proto__ || Object.getPrototypeOf(r);
4787
4787
  }, To(c);
4788
4788
  }
4789
- var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonInviteClientTransaction"), Ol = new tl("InviteClientTransaction"), Ah = new tl("AckClientTransaction"), zu = new tl("NonInviteServerTransaction"), Dl = new tl("InviteServerTransaction"), _e = {
4789
+ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonInviteClientTransaction"), Ol = new tl("InviteClientTransaction"), Ch = new tl("AckClientTransaction"), zu = new tl("NonInviteServerTransaction"), Dl = new tl("InviteServerTransaction"), _e = {
4790
4790
  // Transaction states.
4791
4791
  STATUS_TRYING: 1,
4792
4792
  STATUS_PROCEEDING: 2,
@@ -4800,7 +4800,7 @@ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonIn
4800
4800
  NON_INVITE_SERVER: "nist",
4801
4801
  INVITE_CLIENT: "ict",
4802
4802
  INVITE_SERVER: "ist"
4803
- }, Ch = /* @__PURE__ */ function(c) {
4803
+ }, Rh = /* @__PURE__ */ function(c) {
4804
4804
  Qi(r, c);
4805
4805
  var n = Zi(r);
4806
4806
  function r(o, a, t, s) {
@@ -4866,7 +4866,7 @@ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonIn
4866
4866
  return _e;
4867
4867
  }
4868
4868
  }]), r;
4869
- }(el), Rh = /* @__PURE__ */ function(c) {
4869
+ }(el), Ih = /* @__PURE__ */ function(c) {
4870
4870
  Qi(r, c);
4871
4871
  var n = Zi(r);
4872
4872
  function r(o, a, t, s) {
@@ -4976,7 +4976,7 @@ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonIn
4976
4976
  return _e;
4977
4977
  }
4978
4978
  }]), r;
4979
- }(el), Ih = /* @__PURE__ */ function(c) {
4979
+ }(el), bh = /* @__PURE__ */ function(c) {
4980
4980
  Qi(r, c);
4981
4981
  var n = Zi(r);
4982
4982
  function r(o, a, t, s) {
@@ -4993,7 +4993,7 @@ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonIn
4993
4993
  }, {
4994
4994
  key: "onTransportError",
4995
4995
  value: function() {
4996
- Ah.debug("transport error occurred for transaction ".concat(this.id)), this.eventHandlers.onTransportError();
4996
+ Ch.debug("transport error occurred for transaction ".concat(this.id)), this.eventHandlers.onTransportError();
4997
4997
  }
4998
4998
  }, {
4999
4999
  key: "C",
@@ -5001,7 +5001,7 @@ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonIn
5001
5001
  return _e;
5002
5002
  }
5003
5003
  }]), r;
5004
- }(el), bh = /* @__PURE__ */ function(c) {
5004
+ }(el), wh = /* @__PURE__ */ function(c) {
5005
5005
  Qi(r, c);
5006
5006
  var n = Zi(r);
5007
5007
  function r(o, a, t) {
@@ -5054,7 +5054,7 @@ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonIn
5054
5054
  return _e;
5055
5055
  }
5056
5056
  }]), r;
5057
- }(el), wh = /* @__PURE__ */ function(c) {
5057
+ }(el), Oh = /* @__PURE__ */ function(c) {
5058
5058
  Qi(r, c);
5059
5059
  var n = Zi(r);
5060
5060
  function r(o, a, t) {
@@ -5133,7 +5133,7 @@ var el = ct.EventEmitter, tl = ft, Vi = rt, Ku = ms, ts = qf, Yu = new tl("NonIn
5133
5133
  }
5134
5134
  }]), r;
5135
5135
  }(el);
5136
- function Oh(c, n) {
5136
+ function Dh(c, n) {
5137
5137
  var r = c._transactions, o;
5138
5138
  switch (n.method) {
5139
5139
  case Vi.INVITE:
@@ -5178,14 +5178,14 @@ function Oh(c, n) {
5178
5178
  }
5179
5179
  var sl = {
5180
5180
  C: _e,
5181
- NonInviteClientTransaction: Ch,
5182
- InviteClientTransaction: Rh,
5183
- AckClientTransaction: Ih,
5184
- NonInviteServerTransaction: bh,
5185
- InviteServerTransaction: wh,
5186
- checkTransaction: Oh
5181
+ NonInviteClientTransaction: Rh,
5182
+ InviteClientTransaction: Ih,
5183
+ AckClientTransaction: bh,
5184
+ NonInviteServerTransaction: wh,
5185
+ InviteServerTransaction: Oh,
5186
+ checkTransaction: Dh
5187
5187
  };
5188
- function Dh(c, n) {
5188
+ function Nh(c, n) {
5189
5189
  if (!(c instanceof n))
5190
5190
  throw new TypeError("Cannot call a class as a function");
5191
5191
  }
@@ -5195,10 +5195,10 @@ function Ju(c, n) {
5195
5195
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
5196
5196
  }
5197
5197
  }
5198
- function Nh(c, n, r) {
5198
+ function Uh(c, n, r) {
5199
5199
  return n && Ju(c.prototype, n), r && Ju(c, r), c;
5200
5200
  }
5201
- var Uh = ft, Xu = rt, Ph = vh, na = sl, xh = new Uh("RequestSender"), ra = {
5201
+ var Ph = ft, Xu = rt, xh = Eh, na = sl, Mh = new Ph("RequestSender"), ra = {
5202
5202
  onRequestTimeout: function() {
5203
5203
  },
5204
5204
  onTransportError: function() {
@@ -5209,12 +5209,12 @@ var Uh = ft, Xu = rt, Ph = vh, na = sl, xh = new Uh("RequestSender"), ra = {
5209
5209
  }
5210
5210
  }, nl = /* @__PURE__ */ function() {
5211
5211
  function c(n, r, o) {
5212
- Dh(this, c), this._ua = n, this._eventHandlers = o, this._method = r.method, this._request = r, this._auth = null, this._challenged = !1, this._staled = !1;
5212
+ Nh(this, c), this._ua = n, this._eventHandlers = o, this._method = r.method, this._request = r, this._auth = null, this._challenged = !1, this._staled = !1;
5213
5213
  for (var a in ra)
5214
5214
  Object.prototype.hasOwnProperty.call(ra, a) && (this._eventHandlers[a] || (this._eventHandlers[a] = ra[a]));
5215
5215
  n.status === n.C.STATUS_USER_CLOSED && (this._method !== Xu.BYE || this._method !== Xu.ACK) && this._eventHandlers.onTransportError();
5216
5216
  }
5217
- return Nh(c, [{
5217
+ return Uh(c, [{
5218
5218
  key: "send",
5219
5219
  value: function() {
5220
5220
  var r = this, o = {
@@ -5250,11 +5250,11 @@ var Uh = ft, Xu = rt, Ph = vh, na = sl, xh = new Uh("RequestSender"), ra = {
5250
5250
  var o, a, t = r.status_code;
5251
5251
  if ((t === 401 || t === 407) && (this._ua.configuration.password !== null || this._ua.configuration.ha1 !== null)) {
5252
5252
  if (r.status_code === 401 ? (o = r.parseHeader("www-authenticate"), a = "authorization") : (o = r.parseHeader("proxy-authenticate"), a = "proxy-authorization"), !o) {
5253
- xh.debug("".concat(r.status_code, " with wrong or missing challenge, cannot authenticate")), this._eventHandlers.onReceiveResponse(r);
5253
+ Mh.debug("".concat(r.status_code, " with wrong or missing challenge, cannot authenticate")), this._eventHandlers.onReceiveResponse(r);
5254
5254
  return;
5255
5255
  }
5256
5256
  if (!this._challenged || !this._staled && o.stale === !0) {
5257
- if (this._auth || (this._auth = new Ph({
5257
+ if (this._auth || (this._auth = new xh({
5258
5258
  username: this._ua.configuration.authorization_user,
5259
5259
  password: this._ua.configuration.password,
5260
5260
  realm: this._ua.configuration.realm,
@@ -5271,7 +5271,7 @@ var Uh = ft, Xu = rt, Ph = vh, na = sl, xh = new Uh("RequestSender"), ra = {
5271
5271
  }
5272
5272
  }]), c;
5273
5273
  }();
5274
- function Mh(c, n) {
5274
+ function kh(c, n) {
5275
5275
  if (!(c instanceof n))
5276
5276
  throw new TypeError("Cannot call a class as a function");
5277
5277
  }
@@ -5281,14 +5281,14 @@ function Qu(c, n) {
5281
5281
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
5282
5282
  }
5283
5283
  }
5284
- function kh(c, n, r) {
5284
+ function Lh(c, n, r) {
5285
5285
  return n && Qu(c.prototype, n), r && Qu(c, r), c;
5286
5286
  }
5287
- var Lh = ft, ia = Ct(), an = rt, Zu = ms, ec = nl, Ai = new Lh("Registrator"), Nl = 10, $h = /* @__PURE__ */ function() {
5287
+ var $h = ft, ia = Ct(), an = rt, Zu = ms, ec = nl, Ai = new $h("Registrator"), Nl = 10, Hh = /* @__PURE__ */ function() {
5288
5288
  function c(n, r) {
5289
- Mh(this, c), this._reg_id = 1, this._ua = n, this._transport = r, this._registrar = n.configuration.registrar_server, this._expires = n.configuration.register_expires, this._call_id = ia.createRandomToken(22), this._cseq = 0, this._to_uri = n.configuration.uri, this._registrationTimer = null, this._registering = !1, this._registered = !1, this._contact = this._ua.contact.toString(), this._contact += ";+sip.ice", this._extraHeaders = [], this._extraContactParams = "", this._sipInstance = '"<urn:uuid:'.concat(this._ua.configuration.instance_id, '>"'), this._contact += ";reg-id=".concat(this._reg_id), this._contact += ";+sip.instance=".concat(this._sipInstance);
5289
+ kh(this, c), this._reg_id = 1, this._ua = n, this._transport = r, this._registrar = n.configuration.registrar_server, this._expires = n.configuration.register_expires, this._call_id = ia.createRandomToken(22), this._cseq = 0, this._to_uri = n.configuration.uri, this._registrationTimer = null, this._registering = !1, this._registered = !1, this._contact = this._ua.contact.toString(), this._contact += ";+sip.ice", this._extraHeaders = [], this._extraContactParams = "", this._sipInstance = '"<urn:uuid:'.concat(this._ua.configuration.instance_id, '>"'), this._contact += ";reg-id=".concat(this._reg_id), this._contact += ";+sip.instance=".concat(this._sipInstance);
5290
5290
  }
5291
- return kh(c, [{
5291
+ return Lh(c, [{
5292
5292
  key: "setExtraHeaders",
5293
5293
  value: function(r) {
5294
5294
  Array.isArray(r) || (r = []), this._extraHeaders = r.slice();
@@ -5450,7 +5450,7 @@ var Lh = ft, ia = Ct(), an = rt, Zu = ms, ec = nl, Ai = new Lh("Registrator"), N
5450
5450
  }
5451
5451
  }]), c;
5452
5452
  }();
5453
- function Hh(c, n) {
5453
+ function Fh(c, n) {
5454
5454
  if (!(c instanceof n))
5455
5455
  throw new TypeError("Cannot call a class as a function");
5456
5456
  }
@@ -5460,10 +5460,10 @@ function tc(c, n) {
5460
5460
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
5461
5461
  }
5462
5462
  }
5463
- function Fh(c, n, r) {
5463
+ function Vh(c, n, r) {
5464
5464
  return n && tc(c.prototype, n), r && tc(c, r), c;
5465
5465
  }
5466
- var la = rt, Ul = sl, Vh = nl, oa = {
5466
+ var la = rt, Ul = sl, jh = nl, oa = {
5467
5467
  onRequestTimeout: function() {
5468
5468
  },
5469
5469
  onTransportError: function() {
@@ -5476,16 +5476,16 @@ var la = rt, Ul = sl, Vh = nl, oa = {
5476
5476
  },
5477
5477
  onDialogError: function() {
5478
5478
  }
5479
- }, jh = /* @__PURE__ */ function() {
5479
+ }, qh = /* @__PURE__ */ function() {
5480
5480
  function c(n, r, o) {
5481
- Hh(this, c), this._dialog = n, this._ua = n._ua, this._request = r, this._eventHandlers = o, this._reattempt = !1, this._reattemptTimer = null;
5481
+ Fh(this, c), this._dialog = n, this._ua = n._ua, this._request = r, this._eventHandlers = o, this._reattempt = !1, this._reattemptTimer = null;
5482
5482
  for (var a in oa)
5483
5483
  Object.prototype.hasOwnProperty.call(oa, a) && (this._eventHandlers[a] || (this._eventHandlers[a] = oa[a]));
5484
5484
  }
5485
- return Fh(c, [{
5485
+ return Vh(c, [{
5486
5486
  key: "send",
5487
5487
  value: function() {
5488
- var r = this, o = new Vh(this._ua, this._request, {
5488
+ var r = this, o = new jh(this._ua, this._request, {
5489
5489
  onRequestTimeout: function() {
5490
5490
  r._eventHandlers.onRequestTimeout();
5491
5491
  },
@@ -5522,7 +5522,7 @@ var la = rt, Ul = sl, Vh = nl, oa = {
5522
5522
  }
5523
5523
  }]), c;
5524
5524
  }();
5525
- function qh(c, n) {
5525
+ function Bh(c, n) {
5526
5526
  if (!(c instanceof n))
5527
5527
  throw new TypeError("Cannot call a class as a function");
5528
5528
  }
@@ -5535,12 +5535,12 @@ function sc(c, n) {
5535
5535
  function nc(c, n, r) {
5536
5536
  return n && sc(c.prototype, n), r && sc(c, r), c;
5537
5537
  }
5538
- var Bh = ft, rc = ms, Ns = rt, Ci = sl, Gh = jh, aa = Ct(), ua = new Bh("Dialog"), Us = {
5538
+ var Gh = ft, rc = ms, Ns = rt, Ci = sl, Wh = qh, aa = Ct(), ua = new Gh("Dialog"), Us = {
5539
5539
  // Dialog states.
5540
5540
  STATUS_EARLY: 1,
5541
5541
  STATUS_CONFIRMED: 2,
5542
5542
  STATUS_TERMINATED: 3
5543
- }, Wh = /* @__PURE__ */ function() {
5543
+ }, Kh = /* @__PURE__ */ function() {
5544
5544
  nc(c, null, [{
5545
5545
  key: "C",
5546
5546
  // Expose C object.
@@ -5550,7 +5550,7 @@ var Bh = ft, rc = ms, Ns = rt, Ci = sl, Gh = jh, aa = Ct(), ua = new Bh("Dialog"
5550
5550
  }]);
5551
5551
  function c(n, r, o) {
5552
5552
  var a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Us.STATUS_CONFIRMED;
5553
- if (qh(this, c), this._owner = n, this._ua = n._ua, this._uac_pending_reply = !1, this._uas_pending_reply = !1, !r.hasHeader("contact"))
5553
+ if (Bh(this, c), this._owner = n, this._ua = n._ua, this._uac_pending_reply = !1, this._uas_pending_reply = !1, !r.hasHeader("contact"))
5554
5554
  return {
5555
5555
  error: "unable to create a Dialog without Contact header field"
5556
5556
  };
@@ -5594,7 +5594,7 @@ var Bh = ft, rc = ms, Ns = rt, Ci = sl, Gh = jh, aa = Ct(), ua = new Bh("Dialog"
5594
5594
  s.onAuthenticated = function() {
5595
5595
  o._local_seqnum += 1;
5596
5596
  };
5597
- var d = new Gh(this, _, s);
5597
+ var d = new Wh(this, _, s);
5598
5598
  return d.send(), _;
5599
5599
  }
5600
5600
  }, {
@@ -5696,7 +5696,7 @@ function oo(c) {
5696
5696
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
5697
5697
  }, oo(c);
5698
5698
  }
5699
- function Kh(c, n) {
5699
+ function Yh(c, n) {
5700
5700
  if (!(c instanceof n))
5701
5701
  throw new TypeError("Cannot call a class as a function");
5702
5702
  }
@@ -5706,10 +5706,10 @@ function ic(c, n) {
5706
5706
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
5707
5707
  }
5708
5708
  }
5709
- function Yh(c, n, r) {
5709
+ function zh(c, n, r) {
5710
5710
  return n && ic(c.prototype, n), r && ic(c, r), c;
5711
5711
  }
5712
- function zh(c, n) {
5712
+ function Jh(c, n) {
5713
5713
  if (typeof n != "function" && n !== null)
5714
5714
  throw new TypeError("Super expression must either be null or a function");
5715
5715
  c.prototype = Object.create(n && n.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), n && Qa(c, n);
@@ -5719,8 +5719,8 @@ function Qa(c, n) {
5719
5719
  return o.__proto__ = a, o;
5720
5720
  }, Qa(c, n);
5721
5721
  }
5722
- function Jh(c) {
5723
- var n = Zh();
5722
+ function Xh(c) {
5723
+ var n = ed();
5724
5724
  return function() {
5725
5725
  var o = vo(c), a;
5726
5726
  if (n) {
@@ -5728,18 +5728,18 @@ function Jh(c) {
5728
5728
  a = Reflect.construct(o, arguments, t);
5729
5729
  } else
5730
5730
  a = o.apply(this, arguments);
5731
- return Xh(this, a);
5731
+ return Qh(this, a);
5732
5732
  };
5733
5733
  }
5734
- function Xh(c, n) {
5735
- return n && (oo(n) === "object" || typeof n == "function") ? n : Qh(c);
5734
+ function Qh(c, n) {
5735
+ return n && (oo(n) === "object" || typeof n == "function") ? n : Zh(c);
5736
5736
  }
5737
- function Qh(c) {
5737
+ function Zh(c) {
5738
5738
  if (c === void 0)
5739
5739
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5740
5740
  return c;
5741
5741
  }
5742
- function Zh() {
5742
+ function ed() {
5743
5743
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
5744
5744
  return !1;
5745
5745
  if (typeof Proxy == "function")
@@ -5756,7 +5756,7 @@ function vo(c) {
5756
5756
  return r.__proto__ || Object.getPrototypeOf(r);
5757
5757
  }, vo(c);
5758
5758
  }
5759
- var ed = ct.EventEmitter, td = ft, sd = rt, nd = Hs, lc = Ct(), rd = new td("RTCSession:DTMF"), Bf = {
5759
+ var td = ct.EventEmitter, sd = ft, nd = rt, rd = Hs, lc = Ct(), id = new sd("RTCSession:DTMF"), Bf = {
5760
5760
  MIN_DURATION: 70,
5761
5761
  MAX_DURATION: 6e3,
5762
5762
  DEFAULT_DURATION: 100,
@@ -5764,20 +5764,20 @@ var ed = ct.EventEmitter, td = ft, sd = rt, nd = Hs, lc = Ct(), rd = new td("RTC
5764
5764
  DEFAULT_INTER_TONE_GAP: 500
5765
5765
  };
5766
5766
  Tu.exports = /* @__PURE__ */ function(c) {
5767
- zh(r, c);
5768
- var n = Jh(r);
5767
+ Jh(r, c);
5768
+ var n = Xh(r);
5769
5769
  function r(o) {
5770
5770
  var a;
5771
- return Kh(this, r), a = n.call(this), a._session = o, a._direction = null, a._tone = null, a._duration = null, a._request = null, a;
5771
+ return Yh(this, r), a = n.call(this), a._session = o, a._direction = null, a._tone = null, a._duration = null, a._request = null, a;
5772
5772
  }
5773
- return Yh(r, [{
5773
+ return zh(r, [{
5774
5774
  key: "send",
5775
5775
  value: function(a) {
5776
5776
  var t = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5777
5777
  if (a === void 0)
5778
5778
  throw new TypeError("Not enough arguments");
5779
5779
  if (this._direction = "outgoing", this._session.status !== this._session.C.STATUS_CONFIRMED && this._session.status !== this._session.C.STATUS_WAITING_FOR_ACK)
5780
- throw new nd.InvalidStateError(this._session.status);
5780
+ throw new rd.InvalidStateError(this._session.status);
5781
5781
  var p = lc.cloneArray(s.extraHeaders);
5782
5782
  if (this.eventHandlers = lc.cloneObject(s.eventHandlers), typeof a == "string")
5783
5783
  a = a.toUpperCase();
@@ -5796,7 +5796,7 @@ Tu.exports = /* @__PURE__ */ function(c) {
5796
5796
  originator: "local",
5797
5797
  dtmf: this,
5798
5798
  request: this._request
5799
- }), this._session.sendRequest(sd.INFO, {
5799
+ }), this._session.sendRequest(nd.INFO, {
5800
5800
  extraHeaders: p,
5801
5801
  eventHandlers: {
5802
5802
  onSuccessResponse: function(g) {
@@ -5837,7 +5837,7 @@ Tu.exports = /* @__PURE__ */ function(c) {
5837
5837
  originator: "remote",
5838
5838
  dtmf: this,
5839
5839
  request: a
5840
- }) : rd.debug("invalid INFO DTMF received, discarded");
5840
+ }) : id.debug("invalid INFO DTMF received, discarded");
5841
5841
  }
5842
5842
  }, {
5843
5843
  key: "tone",
@@ -5850,9 +5850,9 @@ Tu.exports = /* @__PURE__ */ function(c) {
5850
5850
  return this._duration;
5851
5851
  }
5852
5852
  }]), r;
5853
- }(ed);
5853
+ }(td);
5854
5854
  Tu.exports.C = Bf;
5855
- var id = Tu.exports;
5855
+ var ld = Tu.exports;
5856
5856
  function ao(c) {
5857
5857
  "@babel/helpers - typeof";
5858
5858
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ao = function(r) {
@@ -5861,7 +5861,7 @@ function ao(c) {
5861
5861
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
5862
5862
  }, ao(c);
5863
5863
  }
5864
- function ld(c, n) {
5864
+ function od(c, n) {
5865
5865
  if (!(c instanceof n))
5866
5866
  throw new TypeError("Cannot call a class as a function");
5867
5867
  }
@@ -5871,10 +5871,10 @@ function oc(c, n) {
5871
5871
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
5872
5872
  }
5873
5873
  }
5874
- function od(c, n, r) {
5874
+ function ad(c, n, r) {
5875
5875
  return n && oc(c.prototype, n), r && oc(c, r), c;
5876
5876
  }
5877
- function ad(c, n) {
5877
+ function ud(c, n) {
5878
5878
  if (typeof n != "function" && n !== null)
5879
5879
  throw new TypeError("Super expression must either be null or a function");
5880
5880
  c.prototype = Object.create(n && n.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), n && Za(c, n);
@@ -5884,8 +5884,8 @@ function Za(c, n) {
5884
5884
  return o.__proto__ = a, o;
5885
5885
  }, Za(c, n);
5886
5886
  }
5887
- function ud(c) {
5888
- var n = _d();
5887
+ function cd(c) {
5888
+ var n = hd();
5889
5889
  return function() {
5890
5890
  var o = Eo(c), a;
5891
5891
  if (n) {
@@ -5893,18 +5893,18 @@ function ud(c) {
5893
5893
  a = Reflect.construct(o, arguments, t);
5894
5894
  } else
5895
5895
  a = o.apply(this, arguments);
5896
- return cd(this, a);
5896
+ return fd(this, a);
5897
5897
  };
5898
5898
  }
5899
- function cd(c, n) {
5900
- return n && (ao(n) === "object" || typeof n == "function") ? n : fd(c);
5899
+ function fd(c, n) {
5900
+ return n && (ao(n) === "object" || typeof n == "function") ? n : _d(c);
5901
5901
  }
5902
- function fd(c) {
5902
+ function _d(c) {
5903
5903
  if (c === void 0)
5904
5904
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5905
5905
  return c;
5906
5906
  }
5907
- function _d() {
5907
+ function hd() {
5908
5908
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
5909
5909
  return !1;
5910
5910
  if (typeof Proxy == "function")
@@ -5921,28 +5921,28 @@ function Eo(c) {
5921
5921
  return r.__proto__ || Object.getPrototypeOf(r);
5922
5922
  }, Eo(c);
5923
5923
  }
5924
- var hd = ct.EventEmitter, dd = rt, pd = Hs, md = Ct(), gd = /* @__PURE__ */ function(c) {
5925
- ad(r, c);
5926
- var n = ud(r);
5924
+ var dd = ct.EventEmitter, pd = rt, md = Hs, gd = Ct(), Td = /* @__PURE__ */ function(c) {
5925
+ ud(r, c);
5926
+ var n = cd(r);
5927
5927
  function r(o) {
5928
5928
  var a;
5929
- return ld(this, r), a = n.call(this), a._session = o, a._direction = null, a._contentType = null, a._body = null, a;
5929
+ return od(this, r), a = n.call(this), a._session = o, a._direction = null, a._contentType = null, a._body = null, a;
5930
5930
  }
5931
- return od(r, [{
5931
+ return ad(r, [{
5932
5932
  key: "send",
5933
5933
  value: function(a, t) {
5934
5934
  var s = this, p = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5935
5935
  if (this._direction = "outgoing", a === void 0)
5936
5936
  throw new TypeError("Not enough arguments");
5937
5937
  if (this._session.status !== this._session.C.STATUS_CONFIRMED && this._session.status !== this._session.C.STATUS_WAITING_FOR_ACK)
5938
- throw new pd.InvalidStateError(this._session.status);
5938
+ throw new md.InvalidStateError(this._session.status);
5939
5939
  this._contentType = a, this._body = t;
5940
- var _ = md.cloneArray(p.extraHeaders);
5940
+ var _ = gd.cloneArray(p.extraHeaders);
5941
5941
  _.push("Content-Type: ".concat(a)), this._session.newInfo({
5942
5942
  originator: "local",
5943
5943
  info: this,
5944
5944
  request: this.request
5945
- }), this._session.sendRequest(dd.INFO, {
5945
+ }), this._session.sendRequest(pd.INFO, {
5946
5946
  extraHeaders: _,
5947
5947
  eventHandlers: {
5948
5948
  onSuccessResponse: function(g) {
@@ -5990,8 +5990,8 @@ var hd = ct.EventEmitter, dd = rt, pd = Hs, md = Ct(), gd = /* @__PURE__ */ func
5990
5990
  return this._body;
5991
5991
  }
5992
5992
  }]), r;
5993
- }(hd);
5994
- function Td(c, n) {
5993
+ }(dd);
5994
+ function vd(c, n) {
5995
5995
  if (!(c instanceof n))
5996
5996
  throw new TypeError("Cannot call a class as a function");
5997
5997
  }
@@ -6001,21 +6001,21 @@ function ac(c, n) {
6001
6001
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
6002
6002
  }
6003
6003
  }
6004
- function vd(c, n, r) {
6004
+ function Ed(c, n, r) {
6005
6005
  return n && ac(c.prototype, n), r && ac(c, r), c;
6006
6006
  }
6007
- var Ed = ft, uc = rt, Sd = new Ed("RTCSession:ReferNotifier"), ca = {
6007
+ var Sd = ft, uc = rt, yd = new Sd("RTCSession:ReferNotifier"), ca = {
6008
6008
  event_type: "refer",
6009
6009
  body_type: "message/sipfrag;version=2.0",
6010
6010
  expires: 300
6011
- }, yd = /* @__PURE__ */ function() {
6011
+ }, Ad = /* @__PURE__ */ function() {
6012
6012
  function c(n, r, o) {
6013
- Td(this, c), this._session = n, this._id = r, this._expires = o || ca.expires, this._active = !0, this.notify(100);
6013
+ vd(this, c), this._session = n, this._id = r, this._expires = o || ca.expires, this._active = !0, this.notify(100);
6014
6014
  }
6015
- return vd(c, [{
6015
+ return Ed(c, [{
6016
6016
  key: "notify",
6017
6017
  value: function(r, o) {
6018
- if (Sd.debug("notify()"), this._active !== !1) {
6018
+ if (yd.debug("notify()"), this._active !== !1) {
6019
6019
  o = o || uc.REASON_PHRASE[r] || "";
6020
6020
  var a;
6021
6021
  r >= 200 ? a = "terminated;reason=noresource" : a = "active;expires=".concat(this._expires), this._session.sendRequest(uc.NOTIFY, {
@@ -6040,7 +6040,7 @@ function uo(c) {
6040
6040
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
6041
6041
  }, uo(c);
6042
6042
  }
6043
- function Ad(c, n) {
6043
+ function Cd(c, n) {
6044
6044
  if (!(c instanceof n))
6045
6045
  throw new TypeError("Cannot call a class as a function");
6046
6046
  }
@@ -6050,10 +6050,10 @@ function cc(c, n) {
6050
6050
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
6051
6051
  }
6052
6052
  }
6053
- function Cd(c, n, r) {
6053
+ function Rd(c, n, r) {
6054
6054
  return n && cc(c.prototype, n), r && cc(c, r), c;
6055
6055
  }
6056
- function Rd(c, n) {
6056
+ function Id(c, n) {
6057
6057
  if (typeof n != "function" && n !== null)
6058
6058
  throw new TypeError("Super expression must either be null or a function");
6059
6059
  c.prototype = Object.create(n && n.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), n && eu(c, n);
@@ -6063,8 +6063,8 @@ function eu(c, n) {
6063
6063
  return o.__proto__ = a, o;
6064
6064
  }, eu(c, n);
6065
6065
  }
6066
- function Id(c) {
6067
- var n = Od();
6066
+ function bd(c) {
6067
+ var n = Dd();
6068
6068
  return function() {
6069
6069
  var o = So(c), a;
6070
6070
  if (n) {
@@ -6072,18 +6072,18 @@ function Id(c) {
6072
6072
  a = Reflect.construct(o, arguments, t);
6073
6073
  } else
6074
6074
  a = o.apply(this, arguments);
6075
- return bd(this, a);
6075
+ return wd(this, a);
6076
6076
  };
6077
6077
  }
6078
- function bd(c, n) {
6079
- return n && (uo(n) === "object" || typeof n == "function") ? n : wd(c);
6078
+ function wd(c, n) {
6079
+ return n && (uo(n) === "object" || typeof n == "function") ? n : Od(c);
6080
6080
  }
6081
- function wd(c) {
6081
+ function Od(c) {
6082
6082
  if (c === void 0)
6083
6083
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6084
6084
  return c;
6085
6085
  }
6086
- function Od() {
6086
+ function Dd() {
6087
6087
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
6088
6088
  return !1;
6089
6089
  if (typeof Proxy == "function")
@@ -6100,14 +6100,14 @@ function So(c) {
6100
6100
  return r.__proto__ || Object.getPrototypeOf(r);
6101
6101
  }, So(c);
6102
6102
  }
6103
- var Dd = ct.EventEmitter, Nd = ft, Ri = rt, Ud = ns(), fc = Ct(), un = new Nd("RTCSession:ReferSubscriber"), Pd = /* @__PURE__ */ function(c) {
6104
- Rd(r, c);
6105
- var n = Id(r);
6103
+ var Nd = ct.EventEmitter, Ud = ft, Ri = rt, Pd = ns(), fc = Ct(), un = new Ud("RTCSession:ReferSubscriber"), xd = /* @__PURE__ */ function(c) {
6104
+ Id(r, c);
6105
+ var n = bd(r);
6106
6106
  function r(o) {
6107
6107
  var a;
6108
- return Ad(this, r), a = n.call(this), a._id = null, a._session = o, a;
6108
+ return Cd(this, r), a = n.call(this), a._id = null, a._session = o, a;
6109
6109
  }
6110
- return Cd(r, [{
6110
+ return Rd(r, [{
6111
6111
  key: "sendRefer",
6112
6112
  value: function(a) {
6113
6113
  var t = this, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -6151,7 +6151,7 @@ var Dd = ct.EventEmitter, Nd = ft, Ri = rt, Ud = ns(), fc = Ct(), un = new Nd("R
6151
6151
  key: "receiveNotify",
6152
6152
  value: function(a) {
6153
6153
  if (un.debug("receiveNotify()"), !!a.body) {
6154
- var t = Ud.parse(a.body.trim().split(`\r
6154
+ var t = Pd.parse(a.body.trim().split(`\r
6155
6155
  `, 1)[0], "Status_Line");
6156
6156
  if (t === -1) {
6157
6157
  un.debug('receiveNotify() | error parsing NOTIFY body: "'.concat(a.body, '"'));
@@ -6206,7 +6206,7 @@ var Dd = ct.EventEmitter, Nd = ft, Ri = rt, Ud = ns(), fc = Ct(), un = new Nd("R
6206
6206
  return this._id;
6207
6207
  }
6208
6208
  }]), r;
6209
- }(Dd);
6209
+ }(Nd);
6210
6210
  function co(c) {
6211
6211
  "@babel/helpers - typeof";
6212
6212
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? co = function(r) {
@@ -6218,7 +6218,7 @@ function co(c) {
6218
6218
  function cs(c, n) {
6219
6219
  var r;
6220
6220
  if (typeof Symbol > "u" || c[Symbol.iterator] == null) {
6221
- if (Array.isArray(c) || (r = xd(c)) || n && c && typeof c.length == "number") {
6221
+ if (Array.isArray(c) || (r = Md(c)) || n && c && typeof c.length == "number") {
6222
6222
  r && (c = r);
6223
6223
  var o = 0, a = function() {
6224
6224
  };
@@ -6248,7 +6248,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6248
6248
  }
6249
6249
  } };
6250
6250
  }
6251
- function xd(c, n) {
6251
+ function Md(c, n) {
6252
6252
  if (c) {
6253
6253
  if (typeof c == "string")
6254
6254
  return _c(c, n);
@@ -6265,7 +6265,7 @@ function _c(c, n) {
6265
6265
  o[r] = c[r];
6266
6266
  return o;
6267
6267
  }
6268
- function Md(c, n) {
6268
+ function kd(c, n) {
6269
6269
  if (!(c instanceof n))
6270
6270
  throw new TypeError("Cannot call a class as a function");
6271
6271
  }
@@ -6278,7 +6278,7 @@ function hc(c, n) {
6278
6278
  function dc(c, n, r) {
6279
6279
  return n && hc(c.prototype, n), r && hc(c, r), c;
6280
6280
  }
6281
- function kd(c, n) {
6281
+ function Ld(c, n) {
6282
6282
  if (typeof n != "function" && n !== null)
6283
6283
  throw new TypeError("Super expression must either be null or a function");
6284
6284
  c.prototype = Object.create(n && n.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), n && tu(c, n);
@@ -6288,8 +6288,8 @@ function tu(c, n) {
6288
6288
  return o.__proto__ = a, o;
6289
6289
  }, tu(c, n);
6290
6290
  }
6291
- function Ld(c) {
6292
- var n = Fd();
6291
+ function $d(c) {
6292
+ var n = Vd();
6293
6293
  return function() {
6294
6294
  var o = yo(c), a;
6295
6295
  if (n) {
@@ -6297,18 +6297,18 @@ function Ld(c) {
6297
6297
  a = Reflect.construct(o, arguments, t);
6298
6298
  } else
6299
6299
  a = o.apply(this, arguments);
6300
- return $d(this, a);
6300
+ return Hd(this, a);
6301
6301
  };
6302
6302
  }
6303
- function $d(c, n) {
6304
- return n && (co(n) === "object" || typeof n == "function") ? n : Hd(c);
6303
+ function Hd(c, n) {
6304
+ return n && (co(n) === "object" || typeof n == "function") ? n : Fd(c);
6305
6305
  }
6306
- function Hd(c) {
6306
+ function Fd(c) {
6307
6307
  if (c === void 0)
6308
6308
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6309
6309
  return c;
6310
6310
  }
6311
- function Fd() {
6311
+ function Vd() {
6312
6312
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
6313
6313
  return !1;
6314
6314
  if (typeof Proxy == "function")
@@ -6325,7 +6325,7 @@ function yo(c) {
6325
6325
  return r.__proto__ || Object.getPrototypeOf(r);
6326
6326
  }, yo(c);
6327
6327
  }
6328
- var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct(), Ii = qf, qd = ms, Pl = Wh, Bd = nl, Ut = id, gc = gd, Gd = yd, Wd = Pd, Tc = Fs(), K = new jd("RTCSession"), X = {
6328
+ var jd = ct.EventEmitter, pc = Nt, qd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct(), Ii = qf, Bd = ms, Pl = Kh, Gd = nl, Ut = ld, gc = Td, Wd = Ad, Kd = xd, Tc = Fs(), K = new qd("RTCSession"), X = {
6329
6329
  // RTCSession states.
6330
6330
  STATUS_NULL: 0,
6331
6331
  STATUS_INVITE_SENT: 1,
@@ -6337,9 +6337,9 @@ var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct()
6337
6337
  STATUS_CANCELED: 7,
6338
6338
  STATUS_TERMINATED: 8,
6339
6339
  STATUS_CONFIRMED: 9
6340
- }, xl = ["audio", "video"], Kd = /* @__PURE__ */ function(c) {
6341
- kd(r, c);
6342
- var n = Ld(r);
6340
+ }, xl = ["audio", "video"], Yd = /* @__PURE__ */ function(c) {
6341
+ Ld(r, c);
6342
+ var n = $d(r);
6343
6343
  dc(r, null, [{
6344
6344
  key: "C",
6345
6345
  /**
@@ -6351,7 +6351,7 @@ var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct()
6351
6351
  }]);
6352
6352
  function r(o) {
6353
6353
  var a;
6354
- return Md(this, r), K.debug("new"), a = n.call(this), a._id = null, a._ua = o, a._status = X.STATUS_NULL, a._dialog = null, a._earlyDialogs = {}, a._contact = null, a._from_tag = null, a._to_tag = null, a._connection = null, a._connectionPromiseQueue = Promise.resolve(), a._request = null, a._is_canceled = !1, a._cancel_reason = "", a._is_confirmed = !1, a._late_sdp = !1, a._rtcOfferConstraints = null, a._rtcAnswerConstraints = null, a._localMediaStream = null, a._localMediaStreamLocallyGenerated = !1, a._rtcReady = !0, a._iceReady = !1, a._timers = {
6354
+ return kd(this, r), K.debug("new"), a = n.call(this), a._id = null, a._ua = o, a._status = X.STATUS_NULL, a._dialog = null, a._earlyDialogs = {}, a._contact = null, a._from_tag = null, a._to_tag = null, a._connection = null, a._connectionPromiseQueue = Promise.resolve(), a._request = null, a._is_canceled = !1, a._cancel_reason = "", a._is_confirmed = !1, a._late_sdp = !1, a._rtcOfferConstraints = null, a._rtcAnswerConstraints = null, a._localMediaStream = null, a._localMediaStreamLocallyGenerated = !1, a._rtcReady = !0, a._iceReady = !1, a._timers = {
6355
6355
  ackTimer: null,
6356
6356
  expiresTimer: null,
6357
6357
  invite2xxTimer: null,
@@ -6450,7 +6450,7 @@ var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct()
6450
6450
  this._contact = this._ua.contact.toString({
6451
6451
  anonymous: I,
6452
6452
  outbound: !0
6453
- }), I ? ($.from_display_name = "Anonymous", $.from_uri = new Tc("sip", "anonymous", "anonymous.invalid"), d.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())), d.push("Privacy: id")) : t.fromUserName && ($.from_uri = new Tc("sip", t.fromUserName, this._ua.configuration.uri.host), d.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), t.fromDisplayName && ($.from_display_name = t.fromDisplayName), d.push("Contact: ".concat(this._contact)), d.push("Content-Type: application/sdp"), this._sessionTimers.enabled && d.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : "")), this._request = new qd.InitialOutgoingInviteRequest(a, this._ua, $, d), this._id = this._request.call_id + this._from_tag, this._createRTCConnection(E, y), this._direction = "outgoing", this._local_identity = this._request.from, this._remote_identity = this._request.to, s && s(this), this._newRTCSession("local", this._request), this._sendInitialRequest(g, A, T);
6453
+ }), I ? ($.from_display_name = "Anonymous", $.from_uri = new Tc("sip", "anonymous", "anonymous.invalid"), d.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString())), d.push("Privacy: id")) : t.fromUserName && ($.from_uri = new Tc("sip", t.fromUserName, this._ua.configuration.uri.host), d.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), t.fromDisplayName && ($.from_display_name = t.fromDisplayName), d.push("Contact: ".concat(this._contact)), d.push("Content-Type: application/sdp"), this._sessionTimers.enabled && d.push("Session-Expires: ".concat(this._sessionTimers.defaultExpires).concat(this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : "")), this._request = new Bd.InitialOutgoingInviteRequest(a, this._ua, $, d), this._id = this._request.call_id + this._from_tag, this._createRTCConnection(E, y), this._direction = "outgoing", this._local_identity = this._request.from, this._remote_identity = this._request.to, s && s(this), this._newRTCSession("local", this._request), this._sendInitialRequest(g, A, T);
6454
6454
  }
6455
6455
  }, {
6456
6456
  key: "init_incoming",
@@ -6828,7 +6828,7 @@ var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct()
6828
6828
  return !1;
6829
6829
  if (a = this._ua.normalizeTarget(a), !a)
6830
6830
  throw new TypeError("Invalid target: ".concat(p));
6831
- var _ = new Wd(this);
6831
+ var _ = new Kd(this);
6832
6832
  _.sendRefer(a, t);
6833
6833
  var d = _.id;
6834
6834
  return this._referSubscribers[d] = _, _.on("requestFailed", function() {
@@ -7263,7 +7263,7 @@ var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct()
7263
7263
  return;
7264
7264
  }
7265
7265
  a.reply(202);
7266
- var s = new Gd(this, a.cseq);
7266
+ var s = new Wd(this, a.cseq);
7267
7267
  K.debug('emit "refer"'), this.emit("refer", {
7268
7268
  request: a,
7269
7269
  accept: function(g, T) {
@@ -7363,7 +7363,7 @@ var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct()
7363
7363
  value: function(a, t, s) {
7364
7364
  var p = this;
7365
7365
  console.log("rtcOfferConstraints", t);
7366
- var _ = new Bd(this._ua, this._request, {
7366
+ var _ = new Gd(this._ua, this._request, {
7367
7367
  onRequestTimeout: function() {
7368
7368
  p.onRequestTimeout();
7369
7369
  },
@@ -7988,7 +7988,7 @@ var Vd = ct.EventEmitter, pc = Nt, jd = ft, ce = rt, cn = Hs, mc = sl, qe = Ct()
7988
7988
  return this._status;
7989
7989
  }
7990
7990
  }]), r;
7991
- }(Vd);
7991
+ }(jd);
7992
7992
  function fo(c) {
7993
7993
  "@babel/helpers - typeof";
7994
7994
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fo = function(r) {
@@ -7997,7 +7997,7 @@ function fo(c) {
7997
7997
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
7998
7998
  }, fo(c);
7999
7999
  }
8000
- function Yd(c, n) {
8000
+ function zd(c, n) {
8001
8001
  if (!(c instanceof n))
8002
8002
  throw new TypeError("Cannot call a class as a function");
8003
8003
  }
@@ -8007,10 +8007,10 @@ function vc(c, n) {
8007
8007
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
8008
8008
  }
8009
8009
  }
8010
- function zd(c, n, r) {
8010
+ function Jd(c, n, r) {
8011
8011
  return n && vc(c.prototype, n), r && vc(c, r), c;
8012
8012
  }
8013
- function Jd(c, n) {
8013
+ function Xd(c, n) {
8014
8014
  if (typeof n != "function" && n !== null)
8015
8015
  throw new TypeError("Super expression must either be null or a function");
8016
8016
  c.prototype = Object.create(n && n.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), n && su(c, n);
@@ -8020,8 +8020,8 @@ function su(c, n) {
8020
8020
  return o.__proto__ = a, o;
8021
8021
  }, su(c, n);
8022
8022
  }
8023
- function Xd(c) {
8024
- var n = ep();
8023
+ function Qd(c) {
8024
+ var n = tp();
8025
8025
  return function() {
8026
8026
  var o = Ao(c), a;
8027
8027
  if (n) {
@@ -8029,18 +8029,18 @@ function Xd(c) {
8029
8029
  a = Reflect.construct(o, arguments, t);
8030
8030
  } else
8031
8031
  a = o.apply(this, arguments);
8032
- return Qd(this, a);
8032
+ return Zd(this, a);
8033
8033
  };
8034
8034
  }
8035
- function Qd(c, n) {
8036
- return n && (fo(n) === "object" || typeof n == "function") ? n : Zd(c);
8035
+ function Zd(c, n) {
8036
+ return n && (fo(n) === "object" || typeof n == "function") ? n : ep(c);
8037
8037
  }
8038
- function Zd(c) {
8038
+ function ep(c) {
8039
8039
  if (c === void 0)
8040
8040
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8041
8041
  return c;
8042
8042
  }
8043
- function ep() {
8043
+ function tp() {
8044
8044
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
8045
8045
  return !1;
8046
8046
  if (typeof Proxy == "function")
@@ -8057,14 +8057,14 @@ function Ao(c) {
8057
8057
  return r.__proto__ || Object.getPrototypeOf(r);
8058
8058
  }, Ao(c);
8059
8059
  }
8060
- var tp = ct.EventEmitter, sp = ft, fa = rt, np = ms, bi = Ct(), rp = nl, Ec = Hs, ip = Fs(), Ml = new sp("Message"), lp = /* @__PURE__ */ function(c) {
8061
- Jd(r, c);
8062
- var n = Xd(r);
8060
+ var sp = ct.EventEmitter, np = ft, fa = rt, rp = ms, bi = Ct(), ip = nl, Ec = Hs, lp = Fs(), Ml = new np("Message"), op = /* @__PURE__ */ function(c) {
8061
+ Xd(r, c);
8062
+ var n = Qd(r);
8063
8063
  function r(o) {
8064
8064
  var a;
8065
- return Yd(this, r), a = n.call(this), a._ua = o, a._request = null, a._closed = !1, a._direction = null, a._local_identity = null, a._remote_identity = null, a._is_replied = !1, a._data = {}, a;
8065
+ return zd(this, r), a = n.call(this), a._ua = o, a._request = null, a._closed = !1, a._direction = null, a._local_identity = null, a._remote_identity = null, a._is_replied = !1, a._data = {}, a;
8066
8066
  }
8067
- return zd(r, [{
8067
+ return Jd(r, [{
8068
8068
  key: "send",
8069
8069
  value: function(a, t) {
8070
8070
  var s = this, p = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, _ = a;
@@ -8073,11 +8073,11 @@ var tp = ct.EventEmitter, sp = ft, fa = rt, np = ms, bi = Ct(), rp = nl, Ec = Hs
8073
8073
  if (a = this._ua.normalizeTarget(a), !a)
8074
8074
  throw new TypeError("Invalid target: ".concat(_));
8075
8075
  var d = bi.cloneArray(p.extraHeaders), g = bi.cloneObject(p.eventHandlers), T = p.contentType || "text/plain", E = {};
8076
- p.fromUserName && (E.from_uri = new ip("sip", p.fromUserName, this._ua.configuration.uri.host), d.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), p.fromDisplayName && (E.from_display_name = p.fromDisplayName);
8076
+ p.fromUserName && (E.from_uri = new lp("sip", p.fromUserName, this._ua.configuration.uri.host), d.push("P-Preferred-Identity: ".concat(this._ua.configuration.uri.toString()))), p.fromDisplayName && (E.from_display_name = p.fromDisplayName);
8077
8077
  for (var y in g)
8078
8078
  Object.prototype.hasOwnProperty.call(g, y) && this.on(y, g[y]);
8079
- d.push("Content-Type: ".concat(T)), this._request = new np.OutgoingRequest(fa.MESSAGE, a, this._ua, E, d), t && (this._request.body = t);
8080
- var A = new rp(this._ua, this._request, {
8079
+ d.push("Content-Type: ".concat(T)), this._request = new rp.OutgoingRequest(fa.MESSAGE, a, this._ua, E, d), t && (this._request.body = t);
8080
+ var A = new ip(this._ua, this._request, {
8081
8081
  onRequestTimeout: function() {
8082
8082
  s._onRequestTimeout();
8083
8083
  },
@@ -8202,7 +8202,7 @@ var tp = ct.EventEmitter, sp = ft, fa = rt, np = ms, bi = Ct(), rp = nl, Ec = Hs
8202
8202
  return this._remote_identity;
8203
8203
  }
8204
8204
  }]), r;
8205
- }(tp);
8205
+ }(sp);
8206
8206
  function _o(c) {
8207
8207
  "@babel/helpers - typeof";
8208
8208
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _o = function(r) {
@@ -8211,7 +8211,7 @@ function _o(c) {
8211
8211
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
8212
8212
  }, _o(c);
8213
8213
  }
8214
- function op(c, n) {
8214
+ function ap(c, n) {
8215
8215
  if (!(c instanceof n))
8216
8216
  throw new TypeError("Cannot call a class as a function");
8217
8217
  }
@@ -8221,10 +8221,10 @@ function Sc(c, n) {
8221
8221
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
8222
8222
  }
8223
8223
  }
8224
- function ap(c, n, r) {
8224
+ function up(c, n, r) {
8225
8225
  return n && Sc(c.prototype, n), r && Sc(c, r), c;
8226
8226
  }
8227
- function up(c, n) {
8227
+ function cp(c, n) {
8228
8228
  if (typeof n != "function" && n !== null)
8229
8229
  throw new TypeError("Super expression must either be null or a function");
8230
8230
  c.prototype = Object.create(n && n.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), n && nu(c, n);
@@ -8234,8 +8234,8 @@ function nu(c, n) {
8234
8234
  return o.__proto__ = a, o;
8235
8235
  }, nu(c, n);
8236
8236
  }
8237
- function cp(c) {
8238
- var n = hp();
8237
+ function fp(c) {
8238
+ var n = dp();
8239
8239
  return function() {
8240
8240
  var o = Co(c), a;
8241
8241
  if (n) {
@@ -8243,18 +8243,18 @@ function cp(c) {
8243
8243
  a = Reflect.construct(o, arguments, t);
8244
8244
  } else
8245
8245
  a = o.apply(this, arguments);
8246
- return fp(this, a);
8246
+ return _p(this, a);
8247
8247
  };
8248
8248
  }
8249
- function fp(c, n) {
8250
- return n && (_o(n) === "object" || typeof n == "function") ? n : _p(c);
8249
+ function _p(c, n) {
8250
+ return n && (_o(n) === "object" || typeof n == "function") ? n : hp(c);
8251
8251
  }
8252
- function _p(c) {
8252
+ function hp(c) {
8253
8253
  if (c === void 0)
8254
8254
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8255
8255
  return c;
8256
8256
  }
8257
- function hp() {
8257
+ function dp() {
8258
8258
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
8259
8259
  return !1;
8260
8260
  if (typeof Proxy == "function")
@@ -8271,14 +8271,14 @@ function Co(c) {
8271
8271
  return r.__proto__ || Object.getPrototypeOf(r);
8272
8272
  }, Co(c);
8273
8273
  }
8274
- var dp = ct.EventEmitter, pp = ft, _a = rt, mp = ms, wi = Ct(), gp = nl, yc = Hs, kl = new pp("Options"), Tp = /* @__PURE__ */ function(c) {
8275
- up(r, c);
8276
- var n = cp(r);
8274
+ var pp = ct.EventEmitter, mp = ft, _a = rt, gp = ms, wi = Ct(), Tp = nl, yc = Hs, kl = new mp("Options"), vp = /* @__PURE__ */ function(c) {
8275
+ cp(r, c);
8276
+ var n = fp(r);
8277
8277
  function r(o) {
8278
8278
  var a;
8279
- return op(this, r), a = n.call(this), a._ua = o, a._request = null, a._closed = !1, a._direction = null, a._local_identity = null, a._remote_identity = null, a._is_replied = !1, a._data = {}, a;
8279
+ return ap(this, r), a = n.call(this), a._ua = o, a._request = null, a._closed = !1, a._direction = null, a._local_identity = null, a._remote_identity = null, a._is_replied = !1, a._data = {}, a;
8280
8280
  }
8281
- return ap(r, [{
8281
+ return up(r, [{
8282
8282
  key: "send",
8283
8283
  value: function(a, t) {
8284
8284
  var s = this, p = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, _ = a;
@@ -8289,8 +8289,8 @@ var dp = ct.EventEmitter, pp = ft, _a = rt, mp = ms, wi = Ct(), gp = nl, yc = Hs
8289
8289
  var d = wi.cloneArray(p.extraHeaders), g = wi.cloneObject(p.eventHandlers), T = p.contentType || "application/sdp";
8290
8290
  for (var E in g)
8291
8291
  Object.prototype.hasOwnProperty.call(g, E) && this.on(E, g[E]);
8292
- d.push("Content-Type: ".concat(T)), this._request = new mp.OutgoingRequest(_a.OPTIONS, a, this._ua, null, d), t && (this._request.body = t);
8293
- var y = new gp(this._ua, this._request, {
8292
+ d.push("Content-Type: ".concat(T)), this._request = new gp.OutgoingRequest(_a.OPTIONS, a, this._ua, null, d), t && (this._request.body = t);
8293
+ var y = new Tp(this._ua, this._request, {
8294
8294
  onRequestTimeout: function() {
8295
8295
  s._onRequestTimeout();
8296
8296
  },
@@ -8415,7 +8415,7 @@ var dp = ct.EventEmitter, pp = ft, _a = rt, mp = ms, wi = Ct(), gp = nl, yc = Hs
8415
8415
  return this._remote_identity;
8416
8416
  }
8417
8417
  }]), r;
8418
- }(dp), vu = {}, vp = ft, ha = Ct(), Ep = ns(), Oi = new vp("Socket");
8418
+ }(pp), vu = {}, Ep = ft, ha = Ct(), Sp = ns(), Oi = new Ep("Socket");
8419
8419
  vu.isSocket = function(c) {
8420
8420
  if (Array.isArray(c))
8421
8421
  return !1;
@@ -8426,7 +8426,7 @@ vu.isSocket = function(c) {
8426
8426
  throw Oi.warn("missing or invalid JsSIP.Socket url property"), new Error("Missing or invalid JsSIP.Socket url property");
8427
8427
  if (!ha.isString(c.via_transport))
8428
8428
  throw Oi.warn("missing or invalid JsSIP.Socket via_transport property"), new Error("Missing or invalid JsSIP.Socket via_transport property");
8429
- if (Ep.parse(c.sip_uri, "SIP_URI") === -1)
8429
+ if (Sp.parse(c.sip_uri, "SIP_URI") === -1)
8430
8430
  throw Oi.warn("missing or invalid JsSIP.Socket sip_uri property"), new Error("missing or invalid JsSIP.Socket sip_uri property");
8431
8431
  } catch {
8432
8432
  return !1;
@@ -8441,7 +8441,7 @@ vu.isSocket = function(c) {
8441
8441
  }
8442
8442
  return !0;
8443
8443
  };
8444
- function Sp(c, n) {
8444
+ function yp(c, n) {
8445
8445
  if (!(c instanceof n))
8446
8446
  throw new TypeError("Cannot call a class as a function");
8447
8447
  }
@@ -8451,10 +8451,10 @@ function Ac(c, n) {
8451
8451
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
8452
8452
  }
8453
8453
  }
8454
- function yp(c, n, r) {
8454
+ function Ap(c, n, r) {
8455
8455
  return n && Ac(c.prototype, n), r && Ac(c, r), c;
8456
8456
  }
8457
- var Ap = ft, Cp = vu, Cc = rt, wt = new Ap("Transport"), Ft = {
8457
+ var Cp = ft, Rp = vu, Cc = rt, wt = new Cp("Transport"), Ft = {
8458
8458
  // Transport status.
8459
8459
  STATUS_CONNECTED: 0,
8460
8460
  STATUS_CONNECTING: 1,
@@ -8469,10 +8469,10 @@ var Ap = ft, Cp = vu, Cc = rt, wt = new Ap("Transport"), Ft = {
8469
8469
  // maximum interval in seconds between recover attempts.
8470
8470
  max_interval: Cc.CONNECTION_RECOVERY_MAX_INTERVAL
8471
8471
  }
8472
- }, Rp = /* @__PURE__ */ function() {
8472
+ }, Ip = /* @__PURE__ */ function() {
8473
8473
  function c(n) {
8474
8474
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ft.recovery_options;
8475
- Sp(this, c), wt.debug("new()"), this.status = Ft.STATUS_DISCONNECTED, this.socket = null, this.sockets = [], this.recovery_options = r, this.recover_attempts = 0, this.recovery_timer = null, this.close_requested = !1;
8475
+ yp(this, c), wt.debug("new()"), this.status = Ft.STATUS_DISCONNECTED, this.socket = null, this.sockets = [], this.recovery_options = r, this.recover_attempts = 0, this.recovery_timer = null, this.close_requested = !1;
8476
8476
  try {
8477
8477
  this.textDecoder = new TextDecoder("utf8");
8478
8478
  } catch (o) {
@@ -8481,7 +8481,7 @@ var Ap = ft, Cp = vu, Cc = rt, wt = new Ap("Transport"), Ft = {
8481
8481
  if (typeof n > "u")
8482
8482
  throw new TypeError("Invalid argument. undefined 'sockets' argument");
8483
8483
  n instanceof Array || (n = [n]), n.forEach(function(o) {
8484
- if (!Cp.isSocket(o.socket))
8484
+ if (!Rp.isSocket(o.socket))
8485
8485
  throw new TypeError("Invalid argument. invalid 'JsSIP.Socket' instance");
8486
8486
  if (o.weight && !Number(o.weight))
8487
8487
  throw new TypeError("Invalid argument. 'weight' attribute is not a number");
@@ -8492,7 +8492,7 @@ var Ap = ft, Cp = vu, Cc = rt, wt = new Ap("Transport"), Ft = {
8492
8492
  });
8493
8493
  }, this), this._getSocket();
8494
8494
  }
8495
- return yp(c, [{
8495
+ return Ap(c, [{
8496
8496
  key: "connect",
8497
8497
  value: function() {
8498
8498
  if (wt.debug("connect()"), this.isConnected()) {
@@ -8640,7 +8640,7 @@ var Ap = ft, Cp = vu, Cc = rt, wt = new Ap("Transport"), Ft = {
8640
8640
  function Rc(c, n) {
8641
8641
  var r;
8642
8642
  if (typeof Symbol > "u" || c[Symbol.iterator] == null) {
8643
- if (Array.isArray(c) || (r = Ip(c)) || n && c && typeof c.length == "number") {
8643
+ if (Array.isArray(c) || (r = bp(c)) || n && c && typeof c.length == "number") {
8644
8644
  r && (c = r);
8645
8645
  var o = 0, a = function() {
8646
8646
  };
@@ -8670,7 +8670,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8670
8670
  }
8671
8671
  } };
8672
8672
  }
8673
- function Ip(c, n) {
8673
+ function bp(c, n) {
8674
8674
  if (c) {
8675
8675
  if (typeof c == "string")
8676
8676
  return Ic(c, n);
@@ -8687,7 +8687,7 @@ function Ic(c, n) {
8687
8687
  o[r] = c[r];
8688
8688
  return o;
8689
8689
  }
8690
- var bp = ft, ru = ns(), iu = ms, Ll = new bp("Parser");
8690
+ var wp = ft, ru = ns(), iu = ms, Ll = new wp("Parser");
8691
8691
  Gf.parseMessage = function(c, n) {
8692
8692
  var r, o, a = c.indexOf(`\r
8693
8693
  `);
@@ -8703,14 +8703,14 @@ Gf.parseMessage = function(c, n) {
8703
8703
  s.status_code ? (r = new iu.IncomingResponse(), r.status_code = s.status_code, r.reason_phrase = s.reason_phrase) : (r = new iu.IncomingRequest(n), r.method = s.method, r.ruri = s.uri);
8704
8704
  r.data = c;
8705
8705
  for (var p = a + 2; ; ) {
8706
- if (a = wp(c, p), a === -2) {
8706
+ if (a = Op(c, p), a === -2) {
8707
8707
  o = p + 2;
8708
8708
  break;
8709
8709
  } else if (a === -1) {
8710
8710
  Ll.warn("parseMessage() | malformed message");
8711
8711
  return;
8712
8712
  }
8713
- if (s = Op(r, c, p, a), s !== !0) {
8713
+ if (s = Dp(r, c, p, a), s !== !0) {
8714
8714
  Ll.warn("parseMessage() |", s.error);
8715
8715
  return;
8716
8716
  }
@@ -8723,7 +8723,7 @@ Gf.parseMessage = function(c, n) {
8723
8723
  r.body = c.substring(o);
8724
8724
  return r;
8725
8725
  };
8726
- function wp(c, n) {
8726
+ function Op(c, n) {
8727
8727
  var r = n, o = 0, a = 0;
8728
8728
  if (c.substring(r, r + 2).match(/(^\r\n)/))
8729
8729
  return -2;
@@ -8735,7 +8735,7 @@ function wp(c, n) {
8735
8735
  }
8736
8736
  return o;
8737
8737
  }
8738
- function Op(c, n, r, o) {
8738
+ function Dp(c, n, r, o) {
8739
8739
  var a, t = n.indexOf(":", r), s = n.substring(r, t).trim(), p = n.substring(t + 1, o).trim();
8740
8740
  switch (s.toLowerCase()) {
8741
8741
  case "via":
@@ -8834,7 +8834,7 @@ function Op(c, n, r, o) {
8834
8834
  function ho(c, n) {
8835
8835
  var r;
8836
8836
  if (typeof Symbol > "u" || c[Symbol.iterator] == null) {
8837
- if (Array.isArray(c) || (r = Dp(c)) || n && c && typeof c.length == "number") {
8837
+ if (Array.isArray(c) || (r = Np(c)) || n && c && typeof c.length == "number") {
8838
8838
  r && (c = r);
8839
8839
  var o = 0, a = function() {
8840
8840
  };
@@ -8864,7 +8864,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8864
8864
  }
8865
8865
  } };
8866
8866
  }
8867
- function Dp(c, n) {
8867
+ function Np(c, n) {
8868
8868
  if (c) {
8869
8869
  if (typeof c == "string")
8870
8870
  return bc(c, n);
@@ -8881,9 +8881,9 @@ function bc(c, n) {
8881
8881
  o[r] = c[r];
8882
8882
  return o;
8883
8883
  }
8884
- var Np = ft, Wf = rt, wc = ms, Eu = Ct(), Su = new Np("sanityCheck"), Up = [jp], Pp = [kp, Lp, $p, Hp], xp = [Fp, Vp], He, Qt, Kf, Mp = function(c, n, r) {
8884
+ var Up = ft, Wf = rt, wc = ms, Eu = Ct(), Su = new Up("sanityCheck"), Pp = [qp], xp = [Lp, $p, Hp, Fp], Mp = [Vp, jp], He, Qt, Kf, kp = function(c, n, r) {
8885
8885
  He = c, Qt = n, Kf = r;
8886
- var o = ho(Up), a;
8886
+ var o = ho(Pp), a;
8887
8887
  try {
8888
8888
  for (o.s(); !(a = o.n()).done; ) {
8889
8889
  var t = a.value;
@@ -8896,7 +8896,7 @@ var Np = ft, Wf = rt, wc = ms, Eu = Ct(), Su = new Np("sanityCheck"), Up = [jp],
8896
8896
  o.f();
8897
8897
  }
8898
8898
  if (He instanceof wc.IncomingRequest) {
8899
- var s = ho(Pp), p;
8899
+ var s = ho(xp), p;
8900
8900
  try {
8901
8901
  for (s.s(); !(p = s.n()).done; ) {
8902
8902
  var _ = p.value;
@@ -8909,7 +8909,7 @@ var Np = ft, Wf = rt, wc = ms, Eu = Ct(), Su = new Np("sanityCheck"), Up = [jp],
8909
8909
  s.f();
8910
8910
  }
8911
8911
  } else if (He instanceof wc.IncomingResponse) {
8912
- var d = ho(xp), g;
8912
+ var d = ho(Mp), g;
8913
8913
  try {
8914
8914
  for (d.s(); !(g = d.n()).done; ) {
8915
8915
  var T = g.value;
@@ -8924,20 +8924,20 @@ var Np = ft, Wf = rt, wc = ms, Eu = Ct(), Su = new Np("sanityCheck"), Up = [jp],
8924
8924
  }
8925
8925
  return !0;
8926
8926
  };
8927
- function kp() {
8927
+ function Lp() {
8928
8928
  if (He.s("to").uri.scheme !== "sip")
8929
8929
  return Ki(416), !1;
8930
8930
  }
8931
- function Lp() {
8931
+ function $p() {
8932
8932
  if (!He.to_tag && He.call_id.substr(0, 5) === Qt.configuration.jssip_id)
8933
8933
  return Ki(482), !1;
8934
8934
  }
8935
- function $p() {
8935
+ function Hp() {
8936
8936
  var c = Eu.str_utf8_length(He.body), n = He.getHeader("content-length");
8937
8937
  if (c < n)
8938
8938
  return Ki(400), !1;
8939
8939
  }
8940
- function Hp() {
8940
+ function Fp() {
8941
8941
  var c = He.from_tag, n = He.call_id, r = He.cseq, o;
8942
8942
  if (!He.to_tag)
8943
8943
  if (He.method === Wf.INVITE) {
@@ -8954,16 +8954,16 @@ function Hp() {
8954
8954
  return Ki(482), !1;
8955
8955
  }
8956
8956
  }
8957
- function Fp() {
8957
+ function Vp() {
8958
8958
  if (He.getHeaders("via").length > 1)
8959
8959
  return Su.debug("more than one Via header field present in the response, dropping the response"), !1;
8960
8960
  }
8961
- function Vp() {
8961
+ function jp() {
8962
8962
  var c = Eu.str_utf8_length(He.body), n = He.getHeader("content-length");
8963
8963
  if (c < n)
8964
8964
  return Su.debug("message body length is lower than the value in Content-Length header field, dropping the response"), !1;
8965
8965
  }
8966
- function jp() {
8966
+ function qp() {
8967
8967
  for (var c = ["from", "to", "call_id", "cseq", "via"], n = 0, r = c; n < r.length; n++) {
8968
8968
  var o = r[n];
8969
8969
  if (!He.hasHeader(o))
@@ -8995,7 +8995,7 @@ var yu = {};
8995
8995
  function Oc(c, n) {
8996
8996
  var r;
8997
8997
  if (typeof Symbol > "u" || c[Symbol.iterator] == null) {
8998
- if (Array.isArray(c) || (r = qp(c)) || n && c && typeof c.length == "number") {
8998
+ if (Array.isArray(c) || (r = Bp(c)) || n && c && typeof c.length == "number") {
8999
8999
  r && (c = r);
9000
9000
  var o = 0, a = function() {
9001
9001
  };
@@ -9025,7 +9025,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
9025
9025
  }
9026
9026
  } };
9027
9027
  }
9028
- function qp(c, n) {
9028
+ function Bp(c, n) {
9029
9029
  if (c) {
9030
9030
  if (typeof c == "string")
9031
9031
  return Dc(c, n);
@@ -9252,7 +9252,7 @@ function po(c) {
9252
9252
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
9253
9253
  }, po(c);
9254
9254
  }
9255
- function Bp(c, n) {
9255
+ function Gp(c, n) {
9256
9256
  if (!(c instanceof n))
9257
9257
  throw new TypeError("Cannot call a class as a function");
9258
9258
  }
@@ -9265,7 +9265,7 @@ function Uc(c, n) {
9265
9265
  function Pc(c, n, r) {
9266
9266
  return n && Uc(c.prototype, n), r && Uc(c, r), c;
9267
9267
  }
9268
- function Gp(c, n) {
9268
+ function Wp(c, n) {
9269
9269
  if (typeof n != "function" && n !== null)
9270
9270
  throw new TypeError("Super expression must either be null or a function");
9271
9271
  c.prototype = Object.create(n && n.prototype, { constructor: { value: c, writable: !0, configurable: !0 } }), n && lu(c, n);
@@ -9275,8 +9275,8 @@ function lu(c, n) {
9275
9275
  return o.__proto__ = a, o;
9276
9276
  }, lu(c, n);
9277
9277
  }
9278
- function Wp(c) {
9279
- var n = Yp();
9278
+ function Kp(c) {
9279
+ var n = zp();
9280
9280
  return function() {
9281
9281
  var o = Ro(c), a;
9282
9282
  if (n) {
@@ -9284,10 +9284,10 @@ function Wp(c) {
9284
9284
  a = Reflect.construct(o, arguments, t);
9285
9285
  } else
9286
9286
  a = o.apply(this, arguments);
9287
- return Kp(this, a);
9287
+ return Yp(this, a);
9288
9288
  };
9289
9289
  }
9290
- function Kp(c, n) {
9290
+ function Yp(c, n) {
9291
9291
  return n && (po(n) === "object" || typeof n == "function") ? n : Yf(c);
9292
9292
  }
9293
9293
  function Yf(c) {
@@ -9295,7 +9295,7 @@ function Yf(c) {
9295
9295
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9296
9296
  return c;
9297
9297
  }
9298
- function Yp() {
9298
+ function zp() {
9299
9299
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
9300
9300
  return !1;
9301
9301
  if (typeof Proxy == "function")
@@ -9312,7 +9312,7 @@ function Ro(c) {
9312
9312
  return r.__proto__ || Object.getPrototypeOf(r);
9313
9313
  }, Ro(c);
9314
9314
  }
9315
- var zp = ct.EventEmitter, Jp = ft, ht = rt, Xp = $h, xc = Kd, Mc = lp, kc = Tp, ga = sl, Qp = Rp, Hl = Ct(), Zp = Hs, em = Fs(), tm = Gf, Ta = ms, sm = Mp, va = yu, Ve = new Jp("UA"), mt = {
9315
+ var Jp = ct.EventEmitter, Xp = ft, ht = rt, Qp = Hh, xc = Yd, Mc = op, kc = vp, ga = sl, Zp = Ip, Hl = Ct(), em = Hs, tm = Fs(), sm = Gf, Ta = ms, nm = kp, va = yu, Ve = new Xp("UA"), mt = {
9316
9316
  // UA status codes.
9317
9317
  STATUS_INIT: 0,
9318
9318
  STATUS_READY: 1,
@@ -9321,9 +9321,9 @@ var zp = ct.EventEmitter, Jp = ft, ht = rt, Xp = $h, xc = Kd, Mc = lp, kc = Tp,
9321
9321
  // UA error codes.
9322
9322
  CONFIGURATION_ERROR: 1,
9323
9323
  NETWORK_ERROR: 2
9324
- }, nm = /* @__PURE__ */ function(c) {
9325
- Gp(r, c);
9326
- var n = Wp(r);
9324
+ }, rm = /* @__PURE__ */ function(c) {
9325
+ Wp(r, c);
9326
+ var n = Kp(r);
9327
9327
  Pc(r, null, [{
9328
9328
  key: "C",
9329
9329
  // Expose C object.
@@ -9333,7 +9333,7 @@ var zp = ct.EventEmitter, Jp = ft, ht = rt, Xp = $h, xc = Kd, Mc = lp, kc = Tp,
9333
9333
  }]);
9334
9334
  function r(o) {
9335
9335
  var a;
9336
- if (Bp(this, r), Ve.debug("new() [configuration:%o]", o), a = n.call(this), a._cache = {
9336
+ if (Gp(this, r), Ve.debug("new() [configuration:%o]", o), a = n.call(this), a._cache = {
9337
9337
  credentials: {}
9338
9338
  }, a._configuration = Object.assign({}, va.settings), a._dynConfiguration = {}, a._dialogs = {}, a._applicants = {}, a._sessions = {}, a._transport = null, a._contact = null, a._status = mt.STATUS_INIT, a._error = null, a._transactions = {
9339
9339
  nist: {},
@@ -9347,7 +9347,7 @@ var zp = ct.EventEmitter, Jp = ft, ht = rt, Xp = $h, xc = Kd, Mc = lp, kc = Tp,
9347
9347
  } catch (t) {
9348
9348
  throw a._status = mt.STATUS_NOT_READY, a._error = mt.CONFIGURATION_ERROR, t;
9349
9349
  }
9350
- return a._registrator = new Xp(Yf(a)), a;
9350
+ return a._registrator = new Qp(Yf(a)), a;
9351
9351
  }
9352
9352
  return Pc(r, [{
9353
9353
  key: "start",
@@ -9770,19 +9770,19 @@ var zp = ct.EventEmitter, Jp = ft, ht = rt, Xp = $h, xc = Kd, Mc = lp, kc = Tp,
9770
9770
  var t = this._configuration.uri.clone();
9771
9771
  t.user = null, this._configuration.hostport_params = t.toString().replace(/^sip:/i, "");
9772
9772
  try {
9773
- this._transport = new Qp(this._configuration.sockets, {
9773
+ this._transport = new Zp(this._configuration.sockets, {
9774
9774
  // Recovery options.
9775
9775
  max_interval: this._configuration.connection_recovery_max_interval,
9776
9776
  min_interval: this._configuration.connection_recovery_min_interval
9777
- }), this._transport.onconnecting = rm.bind(this), this._transport.onconnect = im.bind(this), this._transport.ondisconnect = lm.bind(this), this._transport.ondata = om.bind(this);
9777
+ }), this._transport.onconnecting = im.bind(this), this._transport.onconnect = lm.bind(this), this._transport.ondisconnect = om.bind(this), this._transport.ondata = am.bind(this);
9778
9778
  } catch (g) {
9779
- throw Ve.warn(g), new Zp.ConfigurationError("sockets", this._configuration.sockets);
9779
+ throw Ve.warn(g), new em.ConfigurationError("sockets", this._configuration.sockets);
9780
9780
  }
9781
9781
  if (delete this._configuration.sockets, this._configuration.authorization_user || (this._configuration.authorization_user = this._configuration.uri.user), !this._configuration.registrar_server) {
9782
9782
  var s = this._configuration.uri.clone();
9783
9783
  s.user = null, s.clearParams(), s.clearHeaders(), this._configuration.registrar_server = s;
9784
9784
  }
9785
- this._configuration.no_answer_timeout *= 1e3, this._configuration.contact_uri ? this._configuration.via_host = this._configuration.contact_uri.host : this._configuration.contact_uri = new em("sip", Hl.createRandomToken(8), this._configuration.via_host, null, {
9785
+ this._configuration.no_answer_timeout *= 1e3, this._configuration.contact_uri ? this._configuration.via_host = this._configuration.contact_uri.host : this._configuration.contact_uri = new tm("sip", Hl.createRandomToken(8), this._configuration.via_host, null, {
9786
9786
  transport: "ws"
9787
9787
  }), this._contact = {
9788
9788
  pub_gruu: null,
@@ -9845,14 +9845,14 @@ var zp = ct.EventEmitter, Jp = ft, ht = rt, Xp = $h, xc = Kd, Mc = lp, kc = Tp,
9845
9845
  return this._transport;
9846
9846
  }
9847
9847
  }]), r;
9848
- }(zp);
9849
- function rm(c) {
9848
+ }(Jp);
9849
+ function im(c) {
9850
9850
  this.emit("connecting", c);
9851
9851
  }
9852
- function im(c) {
9852
+ function lm(c) {
9853
9853
  this._status !== mt.STATUS_USER_CLOSED && (this._status = mt.STATUS_READY, this._error = null, this.emit("connected", c), this._dynConfiguration.register && this._registrator.register());
9854
9854
  }
9855
- function lm(c) {
9855
+ function om(c) {
9856
9856
  for (var n = ["nict", "ict", "nist", "ist"], r = 0, o = n; r < o.length; r++) {
9857
9857
  var a = o[r];
9858
9858
  for (var t in this._transactions[a])
@@ -9860,9 +9860,9 @@ function lm(c) {
9860
9860
  }
9861
9861
  this.emit("disconnected", c), this._registrator.onTransportClosed(), this._status !== mt.STATUS_USER_CLOSED && (this._status = mt.STATUS_NOT_READY, this._error = mt.NETWORK_ERROR);
9862
9862
  }
9863
- function om(c) {
9863
+ function am(c) {
9864
9864
  var n = c.transport, r = c.message;
9865
- if (r = tm.parseMessage(r, this), !!r && !(this._status === mt.STATUS_USER_CLOSED && r instanceof Ta.IncomingRequest) && sm(r, this, n)) {
9865
+ if (r = sm.parseMessage(r, this), !!r && !(this._status === mt.STATUS_USER_CLOSED && r instanceof Ta.IncomingRequest) && nm(r, this, n)) {
9866
9866
  if (r instanceof Ta.IncomingRequest)
9867
9867
  r.transport = n, this.receiveRequest(r);
9868
9868
  else if (r instanceof Ta.IncomingResponse) {
@@ -9880,7 +9880,7 @@ function om(c) {
9880
9880
  }
9881
9881
  }
9882
9882
  }
9883
- function am(c, n) {
9883
+ function um(c, n) {
9884
9884
  if (!(c instanceof n))
9885
9885
  throw new TypeError("Cannot call a class as a function");
9886
9886
  }
@@ -9890,20 +9890,20 @@ function Lc(c, n) {
9890
9890
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(c, o.key, o);
9891
9891
  }
9892
9892
  }
9893
- function um(c, n, r) {
9893
+ function cm(c, n, r) {
9894
9894
  return n && Lc(c.prototype, n), r && Lc(c, r), c;
9895
9895
  }
9896
- var cm = ft, fm = ns(), It = new cm("WebSocketInterface"), _m = /* @__PURE__ */ function() {
9896
+ var fm = ft, _m = ns(), It = new fm("WebSocketInterface"), hm = /* @__PURE__ */ function() {
9897
9897
  function c(n) {
9898
- am(this, c), It.debug('new() [url:"%s"]', n), this._url = n, this._sip_uri = null, this._via_transport = null, this._ws = null;
9899
- var r = fm.parse(n, "absoluteURI");
9898
+ um(this, c), It.debug('new() [url:"%s"]', n), this._url = n, this._sip_uri = null, this._via_transport = null, this._ws = null;
9899
+ var r = _m.parse(n, "absoluteURI");
9900
9900
  if (r === -1)
9901
9901
  throw It.warn("invalid WebSocket URI: ".concat(n)), new TypeError("Invalid argument: ".concat(n));
9902
9902
  if (r.scheme !== "wss" && r.scheme !== "ws")
9903
9903
  throw It.warn("invalid WebSocket URI scheme: ".concat(r.scheme)), new TypeError("Invalid argument: ".concat(n));
9904
9904
  this._sip_uri = "sip:".concat(r.host).concat(r.port ? ":".concat(r.port) : "", ";transport=ws"), this._via_transport = r.scheme.toUpperCase();
9905
9905
  }
9906
- return um(c, [{
9906
+ return cm(c, [{
9907
9907
  key: "connect",
9908
9908
  value: function() {
9909
9909
  if (It.debug("connect()"), this.isConnected()) {
@@ -9988,17 +9988,17 @@ var cm = ft, fm = ns(), It = new cm("WebSocketInterface"), _m = /* @__PURE__ */
9988
9988
  return this._url;
9989
9989
  }
9990
9990
  }]), c;
9991
- }(), ou = bo, hm = rt, dm = Hs, pm = Ct(), mm = nm, gm = Fs(), Tm = du(), vm = ns(), Em = _m, Sm = ur("JsSIP");
9992
- Sm("version %s", ou.version);
9991
+ }(), ou = bo, dm = rt, pm = Hs, mm = Ct(), gm = rm, Tm = Fs(), vm = du(), Em = ns(), Sm = hm, ym = ur("JsSIP");
9992
+ ym("version %s", ou.version);
9993
9993
  var $c = {
9994
- C: hm,
9995
- Exceptions: dm,
9996
- Utils: pm,
9997
- UA: mm,
9998
- URI: gm,
9999
- NameAddrHeader: Tm,
10000
- WebSocketInterface: Em,
10001
- Grammar: vm,
9994
+ C: dm,
9995
+ Exceptions: pm,
9996
+ Utils: mm,
9997
+ UA: gm,
9998
+ URI: Tm,
9999
+ NameAddrHeader: vm,
10000
+ WebSocketInterface: Sm,
10001
+ Grammar: Em,
10002
10002
  // Expose the debug module.
10003
10003
  debug: ur,
10004
10004
  get name() {
@@ -12475,7 +12475,7 @@ function Et() {
12475
12475
  }
12476
12476
  }, Ze.cloneArray = (s) => s && s.slice() || [], Ze.cloneObject = (s, p = {}) => s && Object.assign({}, s) || p, Ze;
12477
12477
  }
12478
- const Qf = Nt, ym = at, vt = Ue, nt = Et(), Bc = Au(), Am = rs(), Aa = new ym("SIPMessage");
12478
+ const Qf = Nt, Am = at, vt = Ue, nt = Et(), Bc = Au(), Cm = rs(), Aa = new Am("SIPMessage");
12479
12479
  class Po {
12480
12480
  constructor(n, r, o, a, t, s) {
12481
12481
  if (!n || !r || !o)
@@ -12683,7 +12683,7 @@ class Zf {
12683
12683
  const o = this.headers[n][r], a = o.raw;
12684
12684
  if (o.parsed)
12685
12685
  return o.parsed;
12686
- const t = Am.parse(a, n.replace(/-/g, "_"));
12686
+ const t = Cm.parse(a, n.replace(/-/g, "_"));
12687
12687
  if (t === -1) {
12688
12688
  this.headers[n].splice(r, 1), Aa.debug(`error parsing "${n}" header field with value "${a}"`);
12689
12689
  return;
@@ -12726,7 +12726,7 @@ class Zf {
12726
12726
  return this.data;
12727
12727
  }
12728
12728
  }
12729
- class Cm extends Zf {
12729
+ class Rm extends Zf {
12730
12730
  constructor(n) {
12731
12731
  super(), this.ua = n, this.headers = {}, this.ruri = null, this.transport = null, this.server_transaction = null;
12732
12732
  }
@@ -12822,7 +12822,7 @@ class Cm extends Zf {
12822
12822
  `, this.transport.send(a);
12823
12823
  }
12824
12824
  }
12825
- class Rm extends Zf {
12825
+ class Im extends Zf {
12826
12826
  constructor() {
12827
12827
  super(), this.headers = {}, this.status_code = null, this.reason_phrase = null;
12828
12828
  }
@@ -12830,10 +12830,10 @@ class Rm extends Zf {
12830
12830
  var xt = {
12831
12831
  OutgoingRequest: Po,
12832
12832
  InitialOutgoingInviteRequest: Cu,
12833
- IncomingRequest: Cm,
12834
- IncomingResponse: Rm
12833
+ IncomingRequest: Rm,
12834
+ IncomingResponse: Im
12835
12835
  };
12836
- const Im = at, fs = Et(), Wt = new Im("DigestAuthentication");
12836
+ const bm = at, fs = Et(), Wt = new bm("DigestAuthentication");
12837
12837
  var e_ = class {
12838
12838
  constructor(n) {
12839
12839
  this._credentials = n, 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;
@@ -12895,10 +12895,10 @@ var e_ = class {
12895
12895
  return n.push(`algorithm=${this._algorithm}`), n.push(`username="${this._credentials.username}"`), n.push(`realm="${this._realm}"`), n.push(`nonce="${this._nonce}"`), n.push(`uri="${this._uri}"`), n.push(`response="${this._response}"`), this._opaque && n.push(`opaque="${this._opaque}"`), this._qop && (n.push(`qop=${this._qop}`), n.push(`cnonce="${this._cnonce}"`), n.push(`nc=${this._ncHex}`)), `Digest ${n.join(", ")}`;
12896
12896
  }
12897
12897
  };
12898
- const bm = /* @__PURE__ */ ot(e_), _s = 500, wm = 4e3, Gc = 5e3;
12898
+ const wm = /* @__PURE__ */ ot(e_), _s = 500, Om = 4e3, Gc = 5e3;
12899
12899
  var Ru = {
12900
12900
  T1: _s,
12901
- T2: wm,
12901
+ T2: Om,
12902
12902
  T4: Gc,
12903
12903
  TIMER_B: 64 * _s,
12904
12904
  TIMER_D: 0 * _s,
@@ -12912,7 +12912,7 @@ var Ru = {
12912
12912
  PROVISIONAL_RESPONSE_INTERVAL: 6e4
12913
12913
  // See RFC 3261 Section 13.3.1.1
12914
12914
  };
12915
- const Di = /* @__PURE__ */ ot(Ru), rl = ct.EventEmitter, il = at, ji = Ue, Wc = xt, ss = Ru, Kc = new il("NonInviteClientTransaction"), Fl = new il("InviteClientTransaction"), Om = new il("AckClientTransaction"), Yc = new il("NonInviteServerTransaction"), Vl = new il("InviteServerTransaction"), he = {
12915
+ const Di = /* @__PURE__ */ ot(Ru), rl = ct.EventEmitter, il = at, ji = Ue, Wc = xt, ss = Ru, Kc = new il("NonInviteClientTransaction"), Fl = new il("InviteClientTransaction"), Dm = new il("AckClientTransaction"), Yc = new il("NonInviteServerTransaction"), Vl = new il("InviteServerTransaction"), he = {
12916
12916
  // Transaction states.
12917
12917
  STATUS_TRYING: 1,
12918
12918
  STATUS_PROCEEDING: 2,
@@ -12927,7 +12927,7 @@ const Di = /* @__PURE__ */ ot(Ru), rl = ct.EventEmitter, il = at, ji = Ue, Wc =
12927
12927
  INVITE_CLIENT: "ict",
12928
12928
  INVITE_SERVER: "ist"
12929
12929
  };
12930
- class Dm extends rl {
12930
+ class Nm extends rl {
12931
12931
  constructor(n, r, o, a) {
12932
12932
  super(), this.type = he.NON_INVITE_CLIENT, this.id = `z9hG4bK${Math.floor(Math.random() * 1e7)}`, this.ua = n, this.transport = r, this.request = o, this.eventHandlers = a;
12933
12933
  let t = `SIP/2.0/${r.via_transport}`;
@@ -12975,7 +12975,7 @@ class Dm extends rl {
12975
12975
  }
12976
12976
  }
12977
12977
  }
12978
- class Nm extends rl {
12978
+ class Um extends rl {
12979
12979
  constructor(n, r, o, a) {
12980
12980
  super(), this.type = he.INVITE_CLIENT, this.id = `z9hG4bK${Math.floor(Math.random() * 1e7)}`, this.ua = n, this.transport = r, this.request = o, this.eventHandlers = a, o.transaction = this;
12981
12981
  let t = `SIP/2.0/${r.via_transport}`;
@@ -13071,7 +13071,7 @@ class Nm extends rl {
13071
13071
  }
13072
13072
  }
13073
13073
  }
13074
- class Um extends rl {
13074
+ class Pm extends rl {
13075
13075
  constructor(n, r, o, a) {
13076
13076
  super(), this.id = `z9hG4bK${Math.floor(Math.random() * 1e7)}`, this.transport = r, this.request = o, this.eventHandlers = a;
13077
13077
  let t = `SIP/2.0/${r.via_transport}`;
@@ -13084,10 +13084,10 @@ class Um extends rl {
13084
13084
  this.transport.send(this.request) || this.onTransportError();
13085
13085
  }
13086
13086
  onTransportError() {
13087
- Om.debug(`transport error occurred for transaction ${this.id}`), this.eventHandlers.onTransportError();
13087
+ Dm.debug(`transport error occurred for transaction ${this.id}`), this.eventHandlers.onTransportError();
13088
13088
  }
13089
13089
  }
13090
- class Pm extends rl {
13090
+ class xm extends rl {
13091
13091
  constructor(n, r, o) {
13092
13092
  super(), this.type = he.NON_INVITE_SERVER, this.id = o.via_branch, this.ua = n, this.transport = r, this.request = o, this.last_response = "", o.server_transaction = this, this.state = he.STATUS_TRYING, n.newTransaction(this);
13093
13093
  }
@@ -13126,7 +13126,7 @@ class Pm extends rl {
13126
13126
  }
13127
13127
  }
13128
13128
  }
13129
- class xm extends rl {
13129
+ class Mm extends rl {
13130
13130
  constructor(n, r, o) {
13131
13131
  super(), this.type = he.INVITE_SERVER, this.id = o.via_branch, this.ua = n, this.transport = r, this.request = o, this.last_response = "", o.server_transaction = this, this.state = he.STATUS_PROCEEDING, n.newTransaction(this), this.resendProvisionalTimer = null, o.reply(100);
13132
13132
  }
@@ -13184,7 +13184,7 @@ class xm extends rl {
13184
13184
  }
13185
13185
  }
13186
13186
  }
13187
- function Mm({ _transactions: c }, n) {
13187
+ function km({ _transactions: c }, n) {
13188
13188
  let r;
13189
13189
  switch (n.method) {
13190
13190
  case ji.INVITE:
@@ -13229,14 +13229,14 @@ function Mm({ _transactions: c }, n) {
13229
13229
  }
13230
13230
  var cr = {
13231
13231
  C: he,
13232
- NonInviteClientTransaction: Dm,
13233
- InviteClientTransaction: Nm,
13234
- AckClientTransaction: Um,
13235
- NonInviteServerTransaction: Pm,
13236
- InviteServerTransaction: xm,
13237
- checkTransaction: Mm
13232
+ NonInviteClientTransaction: Nm,
13233
+ InviteClientTransaction: Um,
13234
+ AckClientTransaction: Pm,
13235
+ NonInviteServerTransaction: xm,
13236
+ InviteServerTransaction: Mm,
13237
+ checkTransaction: km
13238
13238
  };
13239
- const qt = /* @__PURE__ */ ot(cr), km = at, zc = Ue, Lm = e_, Ca = cr, $m = new km("RequestSender"), Ra = {
13239
+ const qt = /* @__PURE__ */ ot(cr), Lm = at, zc = Ue, $m = e_, Ca = cr, Hm = new Lm("RequestSender"), Ra = {
13240
13240
  onRequestTimeout: () => {
13241
13241
  },
13242
13242
  onTransportError: () => {
@@ -13304,11 +13304,11 @@ var fr = class {
13304
13304
  const a = n.status_code;
13305
13305
  if ((a === 401 || a === 407) && (this._ua.configuration.password !== null || this._ua.configuration.ha1 !== null)) {
13306
13306
  if (n.status_code === 401 ? (r = n.parseHeader("www-authenticate"), o = "authorization") : (r = n.parseHeader("proxy-authenticate"), o = "proxy-authorization"), !r) {
13307
- $m.debug(`${n.status_code} with wrong or missing challenge, cannot authenticate`), this._eventHandlers.onReceiveResponse(n);
13307
+ Hm.debug(`${n.status_code} with wrong or missing challenge, cannot authenticate`), this._eventHandlers.onReceiveResponse(n);
13308
13308
  return;
13309
13309
  }
13310
13310
  if (!this._challenged || !this._staled && r.stale === !0) {
13311
- if (this._auth || (this._auth = new Lm({
13311
+ if (this._auth || (this._auth = new $m({
13312
13312
  username: this._ua.configuration.authorization_user,
13313
13313
  password: this._ua.configuration.password,
13314
13314
  realm: this._ua.configuration.realm,
@@ -13324,8 +13324,8 @@ var fr = class {
13324
13324
  this._eventHandlers.onReceiveResponse(n);
13325
13325
  }
13326
13326
  };
13327
- const t_ = /* @__PURE__ */ ot(fr), Hm = at, Ia = Et(), fn = Ue, Jc = xt, Xc = fr, Ni = new Hm("Registrator"), jl = 10;
13328
- var Fm = class {
13327
+ const t_ = /* @__PURE__ */ ot(fr), Fm = at, Ia = Et(), fn = Ue, Jc = xt, Xc = fr, Ni = new Fm("Registrator"), jl = 10;
13328
+ var Vm = class {
13329
13329
  constructor(n, r) {
13330
13330
  this._reg_id = 1, this._ua = n, this._transport = r, this._registrar = n.configuration.registrar_server, this._expires = n.configuration.register_expires, this._call_id = Ia.createRandomToken(22), this._cseq = 0, this._to_uri = n.configuration.uri, this._registrationTimer = null, this._registering = !1, this._registered = !1, this._contact = this._ua.contact.toString(), this._contact += ";+sip.ice", this._extraHeaders = [], this._extraContactParams = "", this._sipInstance = `"<urn:uuid:${this._ua.configuration.instance_id}>"`, this._contact += `;reg-id=${this._reg_id}`, this._contact += `;+sip.instance=${this._sipInstance}`;
13331
13331
  }
@@ -13475,33 +13475,33 @@ var Fm = class {
13475
13475
  });
13476
13476
  }
13477
13477
  };
13478
- class Vm extends Error {
13478
+ class jm extends Error {
13479
13479
  constructor(n, r) {
13480
13480
  super(), this.code = 1, this.name = "CONFIGURATION_ERROR", this.parameter = n, this.value = r, this.message = this.value ? `Invalid value ${JSON.stringify(this.value)} for parameter "${this.parameter}"` : `Missing parameter: ${this.parameter}`;
13481
13481
  }
13482
13482
  }
13483
- class jm extends Error {
13483
+ class qm extends Error {
13484
13484
  constructor(n) {
13485
13485
  super(), this.code = 2, this.name = "INVALID_STATE_ERROR", this.status = n, this.message = `Invalid status: ${n}`;
13486
13486
  }
13487
13487
  }
13488
- class qm extends Error {
13488
+ class Bm extends Error {
13489
13489
  constructor(n) {
13490
13490
  super(), this.code = 3, this.name = "NOT_SUPPORTED_ERROR", this.message = n;
13491
13491
  }
13492
13492
  }
13493
- class Bm extends Error {
13493
+ class Gm extends Error {
13494
13494
  constructor(n) {
13495
13495
  super(), this.code = 4, this.name = "NOT_READY_ERROR", this.message = n;
13496
13496
  }
13497
13497
  }
13498
13498
  var Ts = {
13499
- ConfigurationError: Vm,
13500
- InvalidStateError: jm,
13501
- NotSupportedError: qm,
13502
- NotReadyError: Bm
13499
+ ConfigurationError: jm,
13500
+ InvalidStateError: qm,
13501
+ NotSupportedError: Bm,
13502
+ NotReadyError: Gm
13503
13503
  };
13504
- const pn = /* @__PURE__ */ ot(Ts), ba = Ue, ql = cr, Gm = fr, wa = {
13504
+ const pn = /* @__PURE__ */ ot(Ts), ba = Ue, ql = cr, Wm = fr, wa = {
13505
13505
  onRequestTimeout: () => {
13506
13506
  },
13507
13507
  onTransportError: () => {
@@ -13525,7 +13525,7 @@ var s_ = class {
13525
13525
  return this._request;
13526
13526
  }
13527
13527
  send() {
13528
- const n = new Gm(this._ua, this._request, {
13528
+ const n = new Wm(this._ua, this._request, {
13529
13529
  onRequestTimeout: () => {
13530
13530
  this._eventHandlers.onRequestTimeout();
13531
13531
  },
@@ -13553,7 +13553,7 @@ var s_ = class {
13553
13553
  }, 1e3)) : n.status_code >= 200 && n.status_code < 300 ? this._eventHandlers.onSuccessResponse(n) : n.status_code >= 300 && this._eventHandlers.onErrorResponse(n);
13554
13554
  }
13555
13555
  };
13556
- const Wm = /* @__PURE__ */ ot(s_), Km = at, Qc = xt, Ps = Ue, Ui = cr, Ym = s_, Oa = Et(), Da = new Km("Dialog"), xs = {
13556
+ const Km = /* @__PURE__ */ ot(s_), Ym = at, Qc = xt, Ps = Ue, Ui = cr, zm = s_, Oa = Et(), Da = new Ym("Dialog"), xs = {
13557
13557
  // Dialog states.
13558
13558
  STATUS_EARLY: 1,
13559
13559
  STATUS_CONFIRMED: 2,
@@ -13621,7 +13621,7 @@ var n_ = class {
13621
13621
  const o = Oa.cloneArray(r.extraHeaders), a = Oa.cloneObject(r.eventHandlers), t = r.body || null, s = this._createRequest(n, o, t);
13622
13622
  return a.onAuthenticated = () => {
13623
13623
  this._local_seqnum += 1;
13624
- }, new Ym(this, s, a).send(), s;
13624
+ }, new zm(this, s, a).send(), s;
13625
13625
  }
13626
13626
  receiveRequest(n) {
13627
13627
  this._checkInDialogRequest(n) && (n.method === Ps.ACK && this._ack_seqnum !== null ? this._ack_seqnum = null : n.method === Ps.INVITE && (this._ack_seqnum = n.cseq), this._owner.receiveRequest(n));
@@ -13684,14 +13684,14 @@ var n_ = class {
13684
13684
  };
13685
13685
  const Bl = /* @__PURE__ */ ot(n_);
13686
13686
  var Iu = { exports: {} };
13687
- const zm = ct.EventEmitter, Jm = at, Xm = Ue, Qm = Ts, Zc = Et(), Zm = new Jm("RTCSession:DTMF"), r_ = {
13687
+ const Jm = ct.EventEmitter, Xm = at, Qm = Ue, Zm = Ts, Zc = Et(), eg = new Xm("RTCSession:DTMF"), r_ = {
13688
13688
  MIN_DURATION: 70,
13689
13689
  MAX_DURATION: 6e3,
13690
13690
  DEFAULT_DURATION: 100,
13691
13691
  MIN_INTER_TONE_GAP: 50,
13692
13692
  DEFAULT_INTER_TONE_GAP: 500
13693
13693
  };
13694
- Iu.exports = class extends zm {
13694
+ Iu.exports = class extends Jm {
13695
13695
  constructor(n) {
13696
13696
  super(), this._session = n, this._direction = null, this._tone = null, this._duration = null, this._request = null;
13697
13697
  }
@@ -13705,7 +13705,7 @@ Iu.exports = class extends zm {
13705
13705
  if (n === void 0)
13706
13706
  throw new TypeError("Not enough arguments");
13707
13707
  if (this._direction = "outgoing", this._session.status !== this._session.C.STATUS_CONFIRMED && this._session.status !== this._session.C.STATUS_WAITING_FOR_ACK)
13708
- throw new Qm.InvalidStateError(this._session.status);
13708
+ throw new Zm.InvalidStateError(this._session.status);
13709
13709
  const o = Zc.cloneArray(r.extraHeaders);
13710
13710
  if (this.eventHandlers = Zc.cloneObject(r.eventHandlers), typeof n == "string")
13711
13711
  n = n.toUpperCase();
@@ -13724,7 +13724,7 @@ Iu.exports = class extends zm {
13724
13724
  originator: "local",
13725
13725
  dtmf: this,
13726
13726
  request: this._request
13727
- }), this._session.sendRequest(Xm.INFO, {
13727
+ }), this._session.sendRequest(Qm.INFO, {
13728
13728
  extraHeaders: o,
13729
13729
  eventHandlers: {
13730
13730
  onSuccessResponse: (t) => {
@@ -13763,13 +13763,13 @@ Iu.exports = class extends zm {
13763
13763
  originator: "remote",
13764
13764
  dtmf: this,
13765
13765
  request: n
13766
- }) : Zm.debug("invalid INFO DTMF received, discarded");
13766
+ }) : eg.debug("invalid INFO DTMF received, discarded");
13767
13767
  }
13768
13768
  };
13769
13769
  Iu.exports.C = r_;
13770
13770
  var i_ = Iu.exports;
13771
- const eg = /* @__PURE__ */ ot(i_), tg = ct.EventEmitter, sg = Ue, ng = Ts, rg = Et();
13772
- var l_ = class extends tg {
13771
+ const tg = /* @__PURE__ */ ot(i_), sg = ct.EventEmitter, ng = Ue, rg = Ts, ig = Et();
13772
+ var l_ = class extends sg {
13773
13773
  constructor(n) {
13774
13774
  super(), this._session = n, this._direction = null, this._contentType = null, this._body = null;
13775
13775
  }
@@ -13783,14 +13783,14 @@ var l_ = class extends tg {
13783
13783
  if (this._direction = "outgoing", n === void 0)
13784
13784
  throw new TypeError("Not enough arguments");
13785
13785
  if (this._session.status !== this._session.C.STATUS_CONFIRMED && this._session.status !== this._session.C.STATUS_WAITING_FOR_ACK)
13786
- throw new ng.InvalidStateError(this._session.status);
13786
+ throw new rg.InvalidStateError(this._session.status);
13787
13787
  this._contentType = n, this._body = r;
13788
- const a = rg.cloneArray(o.extraHeaders);
13788
+ const a = ig.cloneArray(o.extraHeaders);
13789
13789
  a.push(`Content-Type: ${n}`), this._session.newInfo({
13790
13790
  originator: "local",
13791
13791
  info: this,
13792
13792
  request: this.request
13793
- }), this._session.sendRequest(sg.INFO, {
13793
+ }), this._session.sendRequest(ng.INFO, {
13794
13794
  extraHeaders: a,
13795
13795
  eventHandlers: {
13796
13796
  onSuccessResponse: (t) => {
@@ -13826,7 +13826,7 @@ var l_ = class extends tg {
13826
13826
  });
13827
13827
  }
13828
13828
  };
13829
- const au = /* @__PURE__ */ ot(l_), ig = at, ef = Ue, lg = new ig("RTCSession:ReferNotifier"), Na = {
13829
+ const au = /* @__PURE__ */ ot(l_), lg = at, ef = Ue, og = new lg("RTCSession:ReferNotifier"), Na = {
13830
13830
  event_type: "refer",
13831
13831
  body_type: "message/sipfrag;version=2.0",
13832
13832
  expires: 300
@@ -13836,7 +13836,7 @@ var o_ = class {
13836
13836
  this._session = n, this._id = r, this._expires = o || Na.expires, this._active = !0, this.notify(100);
13837
13837
  }
13838
13838
  notify(n, r) {
13839
- if (lg.debug("notify()"), this._active === !1)
13839
+ if (og.debug("notify()"), this._active === !1)
13840
13840
  return;
13841
13841
  r = r || ef.REASON_PHRASE[n] || "";
13842
13842
  let o;
@@ -13856,8 +13856,8 @@ var o_ = class {
13856
13856
  });
13857
13857
  }
13858
13858
  };
13859
- const og = /* @__PURE__ */ ot(o_), ag = ct.EventEmitter, ug = at, Pi = Ue, cg = rs(), tf = Et(), _n = new ug("RTCSession:ReferSubscriber");
13860
- var a_ = class extends ag {
13859
+ const ag = /* @__PURE__ */ ot(o_), ug = ct.EventEmitter, cg = at, Pi = Ue, fg = rs(), tf = Et(), _n = new cg("RTCSession:ReferSubscriber");
13860
+ var a_ = class extends ug {
13861
13861
  constructor(n) {
13862
13862
  super(), this._id = null, this._session = n;
13863
13863
  }
@@ -13902,7 +13902,7 @@ var a_ = class extends ag {
13902
13902
  receiveNotify(n) {
13903
13903
  if (_n.debug("receiveNotify()"), !n.body)
13904
13904
  return;
13905
- const r = cg.parse(n.body.trim().split(`\r
13905
+ const r = fg.parse(n.body.trim().split(`\r
13906
13906
  `, 1)[0], "Status_Line");
13907
13907
  if (r === -1) {
13908
13908
  _n.debug(`receiveNotify() | error parsing NOTIFY body: "${n.body}"`);
@@ -13947,7 +13947,7 @@ var a_ = class extends ag {
13947
13947
  });
13948
13948
  }
13949
13949
  };
13950
- const fg = /* @__PURE__ */ ot(a_), _g = ct.EventEmitter, sf = Nt, hg = at, fe = Ue, hn = Ts, nf = cr, Be = Et(), xi = Ru, dg = xt, Gl = n_, pg = fr, Pt = i_, rf = l_, mg = o_, gg = a_, lf = gs(), Y = new hg("RTCSession"), Q = {
13950
+ const _g = /* @__PURE__ */ ot(a_), hg = ct.EventEmitter, sf = Nt, dg = at, fe = Ue, hn = Ts, nf = cr, Be = Et(), xi = Ru, pg = xt, Gl = n_, mg = fr, Pt = i_, rf = l_, gg = o_, Tg = a_, lf = gs(), Y = new dg("RTCSession"), Q = {
13951
13951
  // RTCSession states.
13952
13952
  STATUS_NULL: 0,
13953
13953
  STATUS_INVITE_SENT: 1,
@@ -13960,7 +13960,7 @@ const fg = /* @__PURE__ */ ot(a_), _g = ct.EventEmitter, sf = Nt, hg = at, fe =
13960
13960
  STATUS_TERMINATED: 8,
13961
13961
  STATUS_CONFIRMED: 9
13962
13962
  }, Wl = ["audio", "video"];
13963
- var u_ = class uu extends _g {
13963
+ var u_ = class uu extends hg {
13964
13964
  /**
13965
13965
  * Expose C object.
13966
13966
  */
@@ -14093,7 +14093,7 @@ var u_ = class uu extends _g {
14093
14093
  this._contact = this._ua.contact.toString({
14094
14094
  anonymous: E,
14095
14095
  outbound: !0
14096
- }), E ? (y.from_display_name = "Anonymous", y.from_uri = new lf("sip", "anonymous", "anonymous.invalid"), s.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`), s.push("Privacy: id")) : r.fromUserName && (y.from_uri = new lf("sip", r.fromUserName, this._ua.configuration.uri.host), s.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), r.fromDisplayName && (y.from_display_name = r.fromDisplayName), s.push(`Contact: ${this._contact}`), s.push("Content-Type: application/sdp"), this._sessionTimers.enabled && s.push(`Session-Expires: ${this._sessionTimers.defaultExpires}${this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : ""}`), this._request = new dg.InitialOutgoingInviteRequest(
14096
+ }), E ? (y.from_display_name = "Anonymous", y.from_uri = new lf("sip", "anonymous", "anonymous.invalid"), s.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`), s.push("Privacy: id")) : r.fromUserName && (y.from_uri = new lf("sip", r.fromUserName, this._ua.configuration.uri.host), s.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), r.fromDisplayName && (y.from_display_name = r.fromDisplayName), s.push(`Contact: ${this._contact}`), s.push("Content-Type: application/sdp"), this._sessionTimers.enabled && s.push(`Session-Expires: ${this._sessionTimers.defaultExpires}${this._ua.configuration.session_timers_force_refresher ? ";refresher=uac" : ""}`), this._request = new pg.InitialOutgoingInviteRequest(
14097
14097
  n,
14098
14098
  this._ua,
14099
14099
  y,
@@ -14414,7 +14414,7 @@ var u_ = class uu extends _g {
14414
14414
  return !1;
14415
14415
  if (n = this._ua.normalizeTarget(n), !n)
14416
14416
  throw new TypeError(`Invalid target: ${o}`);
14417
- const a = new gg(this);
14417
+ const a = new Tg(this);
14418
14418
  a.sendRefer(n, r);
14419
14419
  const t = a.id;
14420
14420
  return this._referSubscribers[t] = a, a.on("requestFailed", () => {
@@ -14777,7 +14777,7 @@ var u_ = class uu extends _g {
14777
14777
  return;
14778
14778
  }
14779
14779
  n.reply(202);
14780
- const r = new mg(this, n.cseq);
14780
+ const r = new gg(this, n.cseq);
14781
14781
  Y.debug('emit "refer"'), this.emit("refer", {
14782
14782
  request: n,
14783
14783
  accept: (t, s) => {
@@ -14863,7 +14863,7 @@ var u_ = class uu extends _g {
14863
14863
  * Initial Request Sender
14864
14864
  */
14865
14865
  _sendInitialRequest(n, r, o) {
14866
- const a = new pg(this._ua, this._request, {
14866
+ const a = new mg(this._ua, this._request, {
14867
14867
  onRequestTimeout: () => {
14868
14868
  this.onRequestTimeout();
14869
14869
  },
@@ -15274,8 +15274,8 @@ var u_ = class uu extends _g {
15274
15274
  });
15275
15275
  }
15276
15276
  };
15277
- const Tg = /* @__PURE__ */ ot(u_), vg = ct.EventEmitter, Eg = at, Ua = Ue, Sg = xt, Mi = Et(), yg = fr, of = Ts, Ag = gs(), Kl = new Eg("Message");
15278
- var Cg = class extends vg {
15277
+ const vg = /* @__PURE__ */ ot(u_), Eg = ct.EventEmitter, Sg = at, Ua = Ue, yg = xt, Mi = Et(), Ag = fr, of = Ts, Cg = gs(), Kl = new Sg("Message");
15278
+ var Rg = class extends Eg {
15279
15279
  constructor(n) {
15280
15280
  super(), this._ua = n, this._request = null, this._closed = !1, this._direction = null, this._local_identity = null, this._remote_identity = null, this._is_replied = !1, this._data = {};
15281
15281
  }
@@ -15295,17 +15295,17 @@ var Cg = class extends vg {
15295
15295
  if (n = this._ua.normalizeTarget(n), !n)
15296
15296
  throw new TypeError(`Invalid target: ${a}`);
15297
15297
  const t = Mi.cloneArray(o.extraHeaders), s = Mi.cloneObject(o.eventHandlers), p = o.contentType || "text/plain", _ = {};
15298
- o.fromUserName && (_.from_uri = new Ag("sip", o.fromUserName, this._ua.configuration.uri.host), t.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), o.fromDisplayName && (_.from_display_name = o.fromDisplayName);
15298
+ o.fromUserName && (_.from_uri = new Cg("sip", o.fromUserName, this._ua.configuration.uri.host), t.push(`P-Preferred-Identity: ${this._ua.configuration.uri.toString()}`)), o.fromDisplayName && (_.from_display_name = o.fromDisplayName);
15299
15299
  for (const g in s)
15300
15300
  Object.prototype.hasOwnProperty.call(s, g) && this.on(g, s[g]);
15301
- t.push(`Content-Type: ${p}`), this._request = new Sg.OutgoingRequest(
15301
+ t.push(`Content-Type: ${p}`), this._request = new yg.OutgoingRequest(
15302
15302
  Ua.MESSAGE,
15303
15303
  n,
15304
15304
  this._ua,
15305
15305
  _,
15306
15306
  t
15307
15307
  ), r && (this._request.body = r);
15308
- const d = new yg(this._ua, this._request, {
15308
+ const d = new Ag(this._ua, this._request, {
15309
15309
  onRequestTimeout: () => {
15310
15310
  this._onRequestTimeout();
15311
15311
  },
@@ -15395,8 +15395,8 @@ var Cg = class extends vg {
15395
15395
  });
15396
15396
  }
15397
15397
  };
15398
- const Rg = ct.EventEmitter, Ig = at, Pa = Ue, bg = xt, ki = Et(), wg = fr, af = Ts, Yl = new Ig("Options");
15399
- var Og = class extends Rg {
15398
+ const Ig = ct.EventEmitter, bg = at, Pa = Ue, wg = xt, ki = Et(), Og = fr, af = Ts, Yl = new bg("Options");
15399
+ var Dg = class extends Ig {
15400
15400
  constructor(n) {
15401
15401
  super(), this._ua = n, this._request = null, this._closed = !1, this._direction = null, this._local_identity = null, this._remote_identity = null, this._is_replied = !1, this._data = {};
15402
15402
  }
@@ -15418,14 +15418,14 @@ var Og = class extends Rg {
15418
15418
  const t = ki.cloneArray(o.extraHeaders), s = ki.cloneObject(o.eventHandlers), p = o.contentType || "application/sdp";
15419
15419
  for (const d in s)
15420
15420
  Object.prototype.hasOwnProperty.call(s, d) && this.on(d, s[d]);
15421
- t.push(`Content-Type: ${p}`), this._request = new bg.OutgoingRequest(
15421
+ t.push(`Content-Type: ${p}`), this._request = new wg.OutgoingRequest(
15422
15422
  Pa.OPTIONS,
15423
15423
  n,
15424
15424
  this._ua,
15425
15425
  null,
15426
15426
  t
15427
15427
  ), r && (this._request.body = r);
15428
- const _ = new wg(this._ua, this._request, {
15428
+ const _ = new Og(this._ua, this._request, {
15429
15429
  onRequestTimeout: () => {
15430
15430
  this._onRequestTimeout();
15431
15431
  },
@@ -15515,7 +15515,7 @@ var Og = class extends Rg {
15515
15515
  });
15516
15516
  }
15517
15517
  }, bu = {};
15518
- const Dg = at, xa = Et(), Ng = rs(), Li = new Dg("Socket");
15518
+ const Ng = at, xa = Et(), Ug = rs(), Li = new Ng("Socket");
15519
15519
  bu.isSocket = (c) => {
15520
15520
  if (Array.isArray(c))
15521
15521
  return !1;
@@ -15526,7 +15526,7 @@ bu.isSocket = (c) => {
15526
15526
  throw Li.warn("missing or invalid JsSIP.Socket url property"), new Error("Missing or invalid JsSIP.Socket url property");
15527
15527
  if (!xa.isString(c.via_transport))
15528
15528
  throw Li.warn("missing or invalid JsSIP.Socket via_transport property"), new Error("Missing or invalid JsSIP.Socket via_transport property");
15529
- if (Ng.parse(c.sip_uri, "SIP_URI") === -1)
15529
+ if (Ug.parse(c.sip_uri, "SIP_URI") === -1)
15530
15530
  throw Li.warn("missing or invalid JsSIP.Socket sip_uri property"), new Error("missing or invalid JsSIP.Socket sip_uri property");
15531
15531
  } catch {
15532
15532
  return !1;
@@ -15541,7 +15541,7 @@ bu.isSocket = (c) => {
15541
15541
  }
15542
15542
  return !0;
15543
15543
  };
15544
- const Ug = at, Pg = bu, uf = Ue, Ot = new Ug("Transport"), Vt = {
15544
+ const Pg = at, xg = bu, uf = Ue, Ot = new Pg("Transport"), Vt = {
15545
15545
  // Transport status.
15546
15546
  STATUS_CONNECTED: 0,
15547
15547
  STATUS_CONNECTING: 1,
@@ -15557,7 +15557,7 @@ const Ug = at, Pg = bu, uf = Ue, Ot = new Ug("Transport"), Vt = {
15557
15557
  max_interval: uf.CONNECTION_RECOVERY_MAX_INTERVAL
15558
15558
  }
15559
15559
  };
15560
- var xg = class {
15560
+ var Mg = class {
15561
15561
  constructor(n, r = Vt.recovery_options) {
15562
15562
  Ot.debug("new()"), this.status = Vt.STATUS_DISCONNECTED, this.socket = null, this.sockets = [], this.recovery_options = r, this.recover_attempts = 0, this.recovery_timer = null, this.close_requested = !1;
15563
15563
  try {
@@ -15568,7 +15568,7 @@ var xg = class {
15568
15568
  if (typeof n > "u")
15569
15569
  throw new TypeError("Invalid argument. undefined 'sockets' argument");
15570
15570
  n instanceof Array || (n = [n]), n.forEach(function(o) {
15571
- if (!Pg.isSocket(o.socket))
15571
+ if (!xg.isSocket(o.socket))
15572
15572
  throw new TypeError("Invalid argument. invalid 'JsSIP.Socket' instance");
15573
15573
  if (o.weight && !Number(o.weight))
15574
15574
  throw new TypeError("Invalid argument. 'weight' attribute is not a number");
@@ -15691,7 +15691,7 @@ ${n}
15691
15691
  this.ondata({ transport: this, message: n });
15692
15692
  }
15693
15693
  }, c_ = {};
15694
- const Mg = at, cu = rs(), fu = xt, zl = new Mg("Parser");
15694
+ const kg = at, cu = rs(), fu = xt, zl = new kg("Parser");
15695
15695
  c_.parseMessage = (c, n) => {
15696
15696
  let r, o, a = c.indexOf(`\r
15697
15697
  `);
@@ -15709,14 +15709,14 @@ c_.parseMessage = (c, n) => {
15709
15709
  r.data = c;
15710
15710
  let p = a + 2;
15711
15711
  for (; ; ) {
15712
- if (a = kg(c, p), a === -2) {
15712
+ if (a = Lg(c, p), a === -2) {
15713
15713
  o = p + 2;
15714
15714
  break;
15715
15715
  } else if (a === -1) {
15716
15716
  zl.warn("parseMessage() | malformed message");
15717
15717
  return;
15718
15718
  }
15719
- if (s = Lg(r, c, p, a), s !== !0) {
15719
+ if (s = $g(r, c, p, a), s !== !0) {
15720
15720
  zl.warn("parseMessage() |", s.error);
15721
15721
  return;
15722
15722
  }
@@ -15729,7 +15729,7 @@ c_.parseMessage = (c, n) => {
15729
15729
  r.body = c.substring(o);
15730
15730
  return r;
15731
15731
  };
15732
- function kg(c, n) {
15732
+ function Lg(c, n) {
15733
15733
  let r = n, o = 0, a = 0;
15734
15734
  if (c.substring(r, r + 2).match(/(^\r\n)/))
15735
15735
  return -2;
@@ -15741,7 +15741,7 @@ function kg(c, n) {
15741
15741
  }
15742
15742
  return o;
15743
15743
  }
15744
- function Lg(c, n, r, o) {
15744
+ function $g(c, n, r, o) {
15745
15745
  let a;
15746
15746
  const t = n.indexOf(":", r), s = n.substring(r, t).trim(), p = n.substring(t + 1, o).trim();
15747
15747
  switch (s.toLowerCase()) {
@@ -15818,46 +15818,46 @@ function Lg(c, n, r, o) {
15818
15818
  error: `error parsing header "${s}"`
15819
15819
  } : !0;
15820
15820
  }
15821
- const $g = at, f_ = Ue, cf = xt, wu = Et(), Ou = new $g("sanityCheck"), Hg = [zg], Fg = [
15822
- qg,
15821
+ const Hg = at, f_ = Ue, cf = xt, wu = Et(), Ou = new Hg("sanityCheck"), Fg = [Jg], Vg = [
15823
15822
  Bg,
15824
15823
  Gg,
15825
- Wg
15826
- ], Vg = [
15827
- Kg,
15828
- Yg
15824
+ Wg,
15825
+ Kg
15826
+ ], jg = [
15827
+ Yg,
15828
+ zg
15829
15829
  ];
15830
15830
  let Fe, Zt, __;
15831
- var jg = (c, n, r) => {
15831
+ var qg = (c, n, r) => {
15832
15832
  Fe = c, Zt = n, __ = r;
15833
- for (const o of Hg)
15833
+ for (const o of Fg)
15834
15834
  if (o() === !1)
15835
15835
  return !1;
15836
15836
  if (Fe instanceof cf.IncomingRequest) {
15837
- for (const o of Fg)
15837
+ for (const o of Vg)
15838
15838
  if (o() === !1)
15839
15839
  return !1;
15840
15840
  } else if (Fe instanceof cf.IncomingResponse) {
15841
- for (const o of Vg)
15841
+ for (const o of jg)
15842
15842
  if (o() === !1)
15843
15843
  return !1;
15844
15844
  }
15845
15845
  return !0;
15846
15846
  };
15847
- function qg() {
15847
+ function Bg() {
15848
15848
  if (Fe.s("to").uri.scheme !== "sip")
15849
15849
  return Yi(416), !1;
15850
15850
  }
15851
- function Bg() {
15851
+ function Gg() {
15852
15852
  if (!Fe.to_tag && Fe.call_id.substr(0, 5) === Zt.configuration.jssip_id)
15853
15853
  return Yi(482), !1;
15854
15854
  }
15855
- function Gg() {
15855
+ function Wg() {
15856
15856
  const c = wu.str_utf8_length(Fe.body), n = Fe.getHeader("content-length");
15857
15857
  if (c < n)
15858
15858
  return Yi(400), !1;
15859
15859
  }
15860
- function Wg() {
15860
+ function Kg() {
15861
15861
  const c = Fe.from_tag, n = Fe.call_id, r = Fe.cseq;
15862
15862
  let o;
15863
15863
  if (!Fe.to_tag)
@@ -15875,16 +15875,16 @@ function Wg() {
15875
15875
  return Yi(482), !1;
15876
15876
  }
15877
15877
  }
15878
- function Kg() {
15878
+ function Yg() {
15879
15879
  if (Fe.getHeaders("via").length > 1)
15880
15880
  return Ou.debug("more than one Via header field present in the response, dropping the response"), !1;
15881
15881
  }
15882
- function Yg() {
15882
+ function zg() {
15883
15883
  const c = wu.str_utf8_length(Fe.body), n = Fe.getHeader("content-length");
15884
15884
  if (c < n)
15885
15885
  return Ou.debug("message body length is lower than the value in Content-Length header field, dropping the response"), !1;
15886
15886
  }
15887
- function zg() {
15887
+ function Jg() {
15888
15888
  const c = ["from", "to", "call_id", "cseq", "via"];
15889
15889
  for (const n of c)
15890
15890
  if (!Fe.hasHeader(n))
@@ -16085,7 +16085,7 @@ Du.load = (c, n) => {
16085
16085
  throw new La.ConfigurationError(r, o);
16086
16086
  }
16087
16087
  };
16088
- const Jg = ct.EventEmitter, Xg = at, dt = Ue, Qg = Fm, _f = u_, hf = Cg, df = Og, $a = cr, Zg = xg, Xl = Et(), eT = Ts, tT = gs(), sT = c_, Ha = xt, nT = jg, Fa = Du, je = new Xg("UA"), gt = {
16088
+ const Xg = ct.EventEmitter, Qg = at, dt = Ue, Zg = Vm, _f = u_, hf = Rg, df = Dg, $a = cr, eT = Mg, Xl = Et(), tT = Ts, sT = gs(), nT = c_, Ha = xt, rT = qg, Fa = Du, je = new Qg("UA"), gt = {
16089
16089
  // UA status codes.
16090
16090
  STATUS_INIT: 0,
16091
16091
  STATUS_READY: 1,
@@ -16095,7 +16095,7 @@ const Jg = ct.EventEmitter, Xg = at, dt = Ue, Qg = Fm, _f = u_, hf = Cg, df = Og
16095
16095
  CONFIGURATION_ERROR: 1,
16096
16096
  NETWORK_ERROR: 2
16097
16097
  };
16098
- var h_ = class extends Jg {
16098
+ var h_ = class extends Xg {
16099
16099
  // Expose C object.
16100
16100
  static get C() {
16101
16101
  return gt;
@@ -16115,7 +16115,7 @@ var h_ = class extends Jg {
16115
16115
  } catch (r) {
16116
16116
  throw this._status = gt.STATUS_NOT_READY, this._error = gt.CONFIGURATION_ERROR, r;
16117
16117
  }
16118
- this._registrator = new Qg(this);
16118
+ this._registrator = new Zg(this);
16119
16119
  }
16120
16120
  get C() {
16121
16121
  return gt;
@@ -16492,19 +16492,19 @@ var h_ = class extends Jg {
16492
16492
  const r = this._configuration.uri.clone();
16493
16493
  r.user = null, this._configuration.hostport_params = r.toString().replace(/^sip:/i, "");
16494
16494
  try {
16495
- this._transport = new Zg(this._configuration.sockets, {
16495
+ this._transport = new eT(this._configuration.sockets, {
16496
16496
  // Recovery options.
16497
16497
  max_interval: this._configuration.connection_recovery_max_interval,
16498
16498
  min_interval: this._configuration.connection_recovery_min_interval
16499
- }), this._transport.onconnecting = rT.bind(this), this._transport.onconnect = iT.bind(this), this._transport.ondisconnect = lT.bind(this), this._transport.ondata = oT.bind(this);
16499
+ }), this._transport.onconnecting = iT.bind(this), this._transport.onconnect = lT.bind(this), this._transport.ondisconnect = oT.bind(this), this._transport.ondata = aT.bind(this);
16500
16500
  } catch (a) {
16501
- throw je.warn(a), new eT.ConfigurationError("sockets", this._configuration.sockets);
16501
+ throw je.warn(a), new tT.ConfigurationError("sockets", this._configuration.sockets);
16502
16502
  }
16503
16503
  if (delete this._configuration.sockets, this._configuration.authorization_user || (this._configuration.authorization_user = this._configuration.uri.user), !this._configuration.registrar_server) {
16504
16504
  const a = this._configuration.uri.clone();
16505
16505
  a.user = null, a.clearParams(), a.clearHeaders(), this._configuration.registrar_server = a;
16506
16506
  }
16507
- this._configuration.no_answer_timeout *= 1e3, this._configuration.contact_uri ? this._configuration.via_host = this._configuration.contact_uri.host : this._configuration.contact_uri = new tT("sip", Xl.createRandomToken(8), this._configuration.via_host, null, { transport: "ws" }), this._contact = {
16507
+ this._configuration.no_answer_timeout *= 1e3, this._configuration.contact_uri ? this._configuration.via_host = this._configuration.contact_uri.host : this._configuration.contact_uri = new sT("sip", Xl.createRandomToken(8), this._configuration.via_host, null, { transport: "ws" }), this._contact = {
16508
16508
  pub_gruu: null,
16509
16509
  temp_gruu: null,
16510
16510
  uri: this._configuration.contact_uri,
@@ -16549,23 +16549,23 @@ var h_ = class extends Jg {
16549
16549
  }
16550
16550
  }
16551
16551
  };
16552
- function rT(c) {
16552
+ function iT(c) {
16553
16553
  this.emit("connecting", c);
16554
16554
  }
16555
- function iT(c) {
16555
+ function lT(c) {
16556
16556
  this._status !== gt.STATUS_USER_CLOSED && (this._status = gt.STATUS_READY, this._error = null, this.emit("connected", c), this._dynConfiguration.register && this._registrator.register());
16557
16557
  }
16558
- function lT(c) {
16558
+ function oT(c) {
16559
16559
  const n = ["nict", "ict", "nist", "ist"];
16560
16560
  for (const r of n)
16561
16561
  for (const o in this._transactions[r])
16562
16562
  Object.prototype.hasOwnProperty.call(this._transactions[r], o) && this._transactions[r][o].onTransportError();
16563
16563
  this.emit("disconnected", c), this._registrator.onTransportClosed(), this._status !== gt.STATUS_USER_CLOSED && (this._status = gt.STATUS_NOT_READY, this._error = gt.NETWORK_ERROR);
16564
16564
  }
16565
- function oT(c) {
16565
+ function aT(c) {
16566
16566
  const n = c.transport;
16567
16567
  let r = c.message;
16568
- if (r = sT.parseMessage(r, this), !!r && !(this._status === gt.STATUS_USER_CLOSED && r instanceof Ha.IncomingRequest) && nT(r, this, n)) {
16568
+ if (r = nT.parseMessage(r, this), !!r && !(this._status === gt.STATUS_USER_CLOSED && r instanceof Ha.IncomingRequest) && rT(r, this, n)) {
16569
16569
  if (r instanceof Ha.IncomingRequest)
16570
16570
  r.transport = n, this.receiveRequest(r);
16571
16571
  else if (r instanceof Ha.IncomingResponse) {
@@ -16583,7 +16583,7 @@ function oT(c) {
16583
16583
  }
16584
16584
  }
16585
16585
  }
16586
- const aT = /* @__PURE__ */ ot(h_);
16586
+ const uT = /* @__PURE__ */ ot(h_);
16587
16587
  var Me = Et();
16588
16588
  const Va = /* @__PURE__ */ ot(Me), ja = new zf("Dialog"), Ms = {
16589
16589
  // Dialog states.
@@ -16656,7 +16656,7 @@ class Ql {
16656
16656
  const o = Va.cloneArray(r.extraHeaders), a = Va.cloneObject(r.eventHandlers), t = r.body || null, s = this._createRequest(n, o, t);
16657
16657
  return a.onAuthenticated = () => {
16658
16658
  this._local_seqnum += 1;
16659
- }, new Wm(this, s, a).send(), s;
16659
+ }, new Km(this, s, a).send(), s;
16660
16660
  }
16661
16661
  receiveRequest(n) {
16662
16662
  this._checkInDialogRequest(n) && (n.method === G.ACK && this._ack_seqnum !== null ? this._ack_seqnum = null : n.method === G.INVITE && (this._ack_seqnum = n.cseq), this._owner.receiveRequest(n));
@@ -16717,9 +16717,9 @@ class Ql {
16717
16717
  return !0;
16718
16718
  }
16719
16719
  }
16720
- var uT = gs();
16721
- const qi = /* @__PURE__ */ ot(uT);
16722
- function cT(c) {
16720
+ var cT = gs();
16721
+ const qi = /* @__PURE__ */ ot(cT);
16722
+ function fT(c) {
16723
16723
  const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
16724
16724
  let r = "";
16725
16725
  for (let o = 0; o < c; o++) {
@@ -17288,7 +17288,7 @@ class Io extends ct.EventEmitter {
17288
17288
  return !1;
17289
17289
  if (n = this._ua.normalizeTarget(n), !n)
17290
17290
  throw new TypeError(`Invalid target: ${o}`);
17291
- const a = new fg(this);
17291
+ const a = new _g(this);
17292
17292
  a.sendRefer(n, r);
17293
17293
  const t = a.id;
17294
17294
  return this._referSubscribers[t] = a, a.on("requestFailed", () => {
@@ -17354,7 +17354,7 @@ class Io extends ct.EventEmitter {
17354
17354
  case G.INFO:
17355
17355
  if (this._status === te.STATUS_1XX_RECEIVED || this._status === te.STATUS_WAITING_FOR_ANSWER || this._status === te.STATUS_ANSWERED || this._status === te.STATUS_WAITING_FOR_ACK || this._status === te.STATUS_CONFIRMED) {
17356
17356
  const r = n.hasHeader("Content-Type") ? n.getHeader("Content-Type").toLowerCase() : void 0;
17357
- r && r.match(/^application\/dtmf-relay/i) ? new eg(this).init_incoming(n) : r !== void 0 ? new au(this).init_incoming(n) : n.reply(415);
17357
+ r && r.match(/^application\/dtmf-relay/i) ? new tg(this).init_incoming(n) : r !== void 0 ? new au(this).init_incoming(n) : n.reply(415);
17358
17358
  } else
17359
17359
  n.reply(403, "Wrong Status");
17360
17360
  break;
@@ -17675,7 +17675,7 @@ class Io extends ct.EventEmitter {
17675
17675
  return;
17676
17676
  }
17677
17677
  n.reply(202);
17678
- const r = new og(this, n.cseq);
17678
+ const r = new ag(this, n.cseq);
17679
17679
  Z.debug('emit "refer"'), this.emit("refer", {
17680
17680
  request: n,
17681
17681
  accept: (t, s) => {
@@ -17856,7 +17856,7 @@ class Io extends ct.EventEmitter {
17856
17856
  ptype: "publisher",
17857
17857
  display: "User1",
17858
17858
  clientID: "dufgjb023gh4vr872v238ugf2y82g4",
17859
- opaque_id: `videoroomtest-${cT(12)}`
17859
+ opaque_id: `videoroomtest-${fT(12)}`
17860
17860
  },
17861
17861
  handle_id: this.handle_id
17862
17862
  }, t = ["PTYPE: Publisher"];
@@ -18451,7 +18451,7 @@ a=path:${n.getHeader("Use-Path")} msrp://${this._ua._configuration.authorization
18451
18451
  console.log("onmessage", n);
18452
18452
  const r = new nr(n.data);
18453
18453
  if (this.status === "auth" && r.code === 401) {
18454
- const o = this.parseAuth(r.getHeader("WWW-Authenticate")), a = new bm(this.credentials);
18454
+ const o = this.parseAuth(r.getHeader("WWW-Authenticate")), a = new wm(this.credentials);
18455
18455
  a.authenticate({
18456
18456
  method: "AUTH",
18457
18457
  ruri: `msrp://${this._ua._configuration.realm}:2856;ws`,
@@ -18795,8 +18795,8 @@ const Dt = console, pf = {
18795
18795
  // UA error codes.
18796
18796
  CONFIGURATION_ERROR: 1,
18797
18797
  NETWORK_ERROR: 2
18798
- }, fT = aT;
18799
- class _T extends fT {
18798
+ }, _T = uT;
18799
+ class hT extends _T {
18800
18800
  //_janus_session: any = null
18801
18801
  constructor(n) {
18802
18802
  super(n), this._msrp_sessions = [], this._transactions = {
@@ -18886,7 +18886,7 @@ class _T extends fT {
18886
18886
  t.to_tag
18887
18887
  ), o ? (a = o.owner, a.isEnded() ? n.reply(603) : a.receiveRequest(n)) : n.reply(481);
18888
18888
  } else
18889
- n.body.search(/MSRP/ig) > -1 ? (a = new qa(this), a.init_incoming(n)) : n.body.search(/JANUS/ig) > -1 || (a = new Tg(this), a.init_incoming(n));
18889
+ n.body.search(/MSRP/ig) > -1 ? (a = new qa(this), a.init_incoming(n)) : n.body.search(/JANUS/ig) > -1 || (a = new vg(this), a.init_incoming(n));
18890
18890
  else
18891
18891
  Dt.warn("INVITE received but WebRTC is not supported"), n.reply(488);
18892
18892
  break;
@@ -18985,7 +18985,7 @@ class _T extends fT {
18985
18985
  // return session
18986
18986
  // }
18987
18987
  }
18988
- const hT = [
18988
+ const dT = [
18989
18989
  "roomId",
18990
18990
  "_audioMuted",
18991
18991
  "_cancel_reason",
@@ -19009,7 +19009,7 @@ const hT = [
19009
19009
  //'originalStream',
19010
19010
  "localMuted",
19011
19011
  "autoAnswer"
19012
- ], dT = [
19012
+ ], pT = [
19013
19013
  //'roomId',
19014
19014
  "_cancel_reason",
19015
19015
  "_contact",
@@ -19028,13 +19028,13 @@ const hT = [
19028
19028
  ];
19029
19029
  function mf(c) {
19030
19030
  const n = {};
19031
- return hT.forEach((r) => {
19031
+ return dT.forEach((r) => {
19032
19032
  c[r] !== void 0 && (n[r] = c[r]);
19033
19033
  }), n.localHold = c._localHold, n;
19034
19034
  }
19035
19035
  function gf(c) {
19036
19036
  const n = {};
19037
- return dT.forEach((r) => {
19037
+ return pT.forEach((r) => {
19038
19038
  c[r] !== void 0 && (n[r] = c[r]);
19039
19039
  }), n;
19040
19040
  }
@@ -19042,19 +19042,22 @@ function Tf(c, n) {
19042
19042
  const r = new AudioContext(), o = r.createMediaStreamSource(c), a = r.createMediaStreamDestination(), t = r.createGain();
19043
19043
  return o.connect(t), t.connect(a), t.gain.value = n, a.stream;
19044
19044
  }
19045
- function pT(c, n, r, o) {
19045
+ function mT(c, n, r, o) {
19046
19046
  const a = document.createElement("audio");
19047
- a.id = n._id, a.className = "audioTag", a.srcObject = c, a.setSinkId(r), a.volume = o, a.play(), n.audioTag = a;
19047
+ a.id = n._id, a.className = "audioTag", a.srcObject = c, d_() || (a.setSinkId(r), a.volume = o), a.play(), n.audioTag = a;
19048
19048
  }
19049
- function mT(c) {
19049
+ function gT(c) {
19050
19050
  if (c && typeof c.log == "function" && typeof c.warn == "function" && typeof c.error == "function")
19051
19051
  return !0;
19052
19052
  }
19053
- const gT = at, TT = rs(), bt = new gT("WebSocketInterface");
19054
- var vT = class {
19053
+ function d_() {
19054
+ return /Mobi|Android|iPhone/i.test(navigator.userAgent);
19055
+ }
19056
+ const TT = at, vT = rs(), bt = new TT("WebSocketInterface");
19057
+ var ET = class {
19055
19058
  constructor(n) {
19056
19059
  bt.debug('new() [url:"%s"]', n), this._url = n, this._sip_uri = null, this._via_transport = null, this._ws = null;
19057
- const r = TT.parse(n, "absoluteURI");
19060
+ const r = vT.parse(n, "absoluteURI");
19058
19061
  if (r === -1)
19059
19062
  throw bt.warn(`invalid WebSocket URI: ${n}`), new TypeError(`Invalid argument: ${n}`);
19060
19063
  if (r.scheme !== "wss" && r.scheme !== "ws")
@@ -19120,17 +19123,17 @@ var vT = class {
19120
19123
  bt.warn(`WebSocket ${this._url} error: `, n);
19121
19124
  }
19122
19125
  };
19123
- const _u = bo, ET = Ue, ST = Ts, yT = Et(), AT = h_, CT = gs(), RT = Au(), IT = rs(), bT = vT, wT = ur("JsSIP");
19124
- wT("version %s", _u.version);
19125
- var OT = {
19126
- C: ET,
19127
- Exceptions: ST,
19128
- Utils: yT,
19129
- UA: AT,
19130
- URI: CT,
19131
- NameAddrHeader: RT,
19132
- WebSocketInterface: bT,
19133
- Grammar: IT,
19126
+ const _u = bo, ST = Ue, yT = Ts, AT = Et(), CT = h_, RT = gs(), IT = Au(), bT = rs(), wT = ET, OT = ur("JsSIP");
19127
+ OT("version %s", _u.version);
19128
+ var DT = {
19129
+ C: ST,
19130
+ Exceptions: yT,
19131
+ Utils: AT,
19132
+ UA: CT,
19133
+ URI: RT,
19134
+ NameAddrHeader: IT,
19135
+ WebSocketInterface: wT,
19136
+ Grammar: bT,
19134
19137
  // Expose the debug module.
19135
19138
  debug: ur,
19136
19139
  get name() {
@@ -19140,11 +19143,11 @@ var OT = {
19140
19143
  return _u.version;
19141
19144
  }
19142
19145
  };
19143
- const DT = /* @__PURE__ */ ot(OT);
19146
+ const NT = /* @__PURE__ */ ot(DT);
19144
19147
  function Ba(c) {
19145
19148
  return c < 10 ? `0${c}` : `${c}`;
19146
19149
  }
19147
- function NT(c) {
19150
+ function UT(c) {
19148
19151
  let n = c.hours || 0, r = c.minutes || 0, o = c.seconds || 0;
19149
19152
  o++, o === 60 && (o = 0, r++, r === 60 && (r = 0, n++));
19150
19153
  const a = `${Ba(n)}:${Ba(r)}:${Ba(o)}`;
@@ -19278,7 +19281,7 @@ St.reduce = async (c, n, r) => {
19278
19281
  o in c && (a = await n(await a, await c[o], o, c));
19279
19282
  return a;
19280
19283
  };
19281
- var d_ = {};
19284
+ var p_ = {};
19282
19285
  (function(c) {
19283
19286
  const n = St;
19284
19287
  Object.keys(n).forEach((r) => {
@@ -19287,9 +19290,9 @@ var d_ = {};
19287
19290
  return n[r](this, ...a);
19288
19291
  };
19289
19292
  });
19290
- })(d_);
19291
- const UT = St, PT = d_;
19292
- var vf = Object.assign(UT, { instanceMethods: PT });
19293
+ })(p_);
19294
+ const PT = St, xT = p_;
19295
+ var vf = Object.assign(PT, { instanceMethods: xT });
19293
19296
  const Tn = new AudioContext(), es = {
19294
19297
  NEW_CALL: "new_call",
19295
19298
  CALL_CONFIRMED: "confirmed",
@@ -19297,7 +19300,7 @@ const Tn = new AudioContext(), es = {
19297
19300
  CALL_PROGRESS: "progress",
19298
19301
  CALL_ENDED: "ended"
19299
19302
  };
19300
- var xT = { exports: {} };
19303
+ var MT = { exports: {} };
19301
19304
  (function(c) {
19302
19305
  var n = function(r) {
19303
19306
  var o = Object.prototype, a = o.hasOwnProperty, t = Object.defineProperty || function(ee, W, B) {
@@ -19641,12 +19644,12 @@ var xT = { exports: {} };
19641
19644
  } catch {
19642
19645
  typeof globalThis == "object" ? globalThis.regeneratorRuntime = n : Function("r", "regeneratorRuntime = r")(n);
19643
19646
  }
19644
- })(xT);
19645
- var p_ = { exports: {} };
19647
+ })(MT);
19648
+ var m_ = { exports: {} };
19646
19649
  (function(c) {
19647
19650
  (function(n, r) {
19648
19651
  c.exports ? c.exports = r() : n.log = r();
19649
- })(S_, function() {
19652
+ })(y_, function() {
19650
19653
  var n = function() {
19651
19654
  }, r = "undefined", o = typeof window !== r && typeof window.navigator !== r && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
19652
19655
  "trace",
@@ -19783,13 +19786,13 @@ var p_ = { exports: {} };
19783
19786
  return y;
19784
19787
  }, E.default = E, E;
19785
19788
  });
19786
- })(p_);
19787
- var At = p_.exports;
19789
+ })(m_);
19790
+ var At = m_.exports;
19788
19791
  const ds = () => `${(/* @__PURE__ */ new Date()).toISOString()} | metrics`, ps = (c, n, r) => `${c} | ${n} | ${r}`;
19789
19792
  At.setDefaultLevel(At.levels.TRACE);
19790
- const MT = (c) => {
19793
+ const kT = (c) => {
19791
19794
  At.info(ps(ds(), "log ", `set log level to ${c ? "verbose" : "info"}`)), At.setLevel(c ? At.levels.TRACE : At.levels.INFO);
19792
- }, kT = (c) => {
19795
+ }, LT = (c) => {
19793
19796
  const n = [...Object.keys(At.levels)];
19794
19797
  n.includes(c) ? (At.info(ps(ds(), "log ", `update log level to ${c.toLowerCase()}`)), At.setLevel(c)) : At.warn(ps(ds(), "log ", "Incorrect log level please choose one of "), n);
19795
19798
  }, Pe = (c, n, r) => {
@@ -19803,7 +19806,7 @@ const MT = (c) => {
19803
19806
  }, lr = (c, n) => {
19804
19807
  At.error(ps(ds(), c, n));
19805
19808
  };
19806
- function LT(c) {
19809
+ function $T(c) {
19807
19810
  return Math.floor(Math.random() * c).toString();
19808
19811
  }
19809
19812
  function Ef(c, n) {
@@ -19812,13 +19815,13 @@ function Ef(c, n) {
19812
19815
  r = r.replace(o, "");
19813
19816
  }), r;
19814
19817
  }
19815
- function $T(c, n) {
19818
+ function HT(c, n) {
19816
19819
  let r = "";
19817
19820
  for (let o = 0; o < n; o += 1)
19818
- r += c[LT(c.length)];
19821
+ r += c[$T(c.length)];
19819
19822
  return r;
19820
19823
  }
19821
- function HT({
19824
+ function FT({
19822
19825
  length: c = 20,
19823
19826
  useLetters: n = !0,
19824
19827
  useNumbers: r = !0,
@@ -19826,10 +19829,10 @@ function HT({
19826
19829
  excludeSymbols: a = []
19827
19830
  } = {}) {
19828
19831
  let t = "abcdefghijklmnopqrstuvwxyz", s = "0123456789", p = [], _ = [], d = [];
19829
- return n && (a.length && (t = Ef(a, t)), _ = t.split("")), r && (a.length && (s = Ef(a, s)), d = s.split("")), p = [..._, ...d, ...o], $T(p, c);
19832
+ return n && (a.length && (t = Ef(a, t)), _ = t.split("")), r && (a.length && (s = Ef(a, s)), d = s.split("")), p = [..._, ...d, ...o], HT(p, c);
19830
19833
  }
19831
- var FT = HT;
19832
- const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3", $e = {
19834
+ var VT = FT;
19835
+ const Bi = /* @__PURE__ */ ot(VT), jT = () => "WebRTCMetrics", qT = () => "5.0.3", $e = {
19833
19836
  INBOUND: "inbound",
19834
19837
  OUTBOUND: "outbound"
19835
19838
  }, hs = {
@@ -19844,7 +19847,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
19844
19847
  DISCONNECTED: "disconnected",
19845
19848
  FAILED: "failed",
19846
19849
  CLOSED: "closed"
19847
- }, qT = () => ({
19850
+ }, BT = () => ({
19848
19851
  ...{
19849
19852
  delta_time_to_measure_probes_ms: 0,
19850
19853
  // Total time to measure all probes
@@ -19858,7 +19861,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
19858
19861
  total_time_encoded_out: 0,
19859
19862
  probes: []
19860
19863
  }
19861
- }), m_ = {
19864
+ }), g_ = {
19862
19865
  level_in: 0,
19863
19866
  codec_id_in: "",
19864
19867
  codec_in: { mime_type: null, clock_rate: null, sdp_fmtp_line: null },
@@ -19875,7 +19878,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
19875
19878
  mos_emodel_in: 0,
19876
19879
  ssrc: "",
19877
19880
  direction: $e.INBOUND
19878
- }, g_ = {
19881
+ }, T_ = {
19879
19882
  level_out: 0,
19880
19883
  codec_id_out: "",
19881
19884
  codec_out: { mime_type: null, clock_rate: null, sdp_fmtp_line: null },
@@ -19896,7 +19899,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
19896
19899
  mos_emodel_out: 0,
19897
19900
  ssrc: "",
19898
19901
  direction: $e.OUTBOUND
19899
- }, T_ = {
19902
+ }, v_ = {
19900
19903
  codec_id_in: "",
19901
19904
  size_in: { width: null, height: null, framerate: null },
19902
19905
  codec_in: { mime_type: null, clock_rate: null },
@@ -19919,7 +19922,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
19919
19922
  total_pli_sent_in: 0,
19920
19923
  ssrc: "",
19921
19924
  direction: $e.INBOUND
19922
- }, v_ = {
19925
+ }, E_ = {
19923
19926
  codec_id_out: "",
19924
19927
  size_out: { width: null, height: null, framerate: null },
19925
19928
  codec_out: { mime_type: null, clock_rate: null },
@@ -19947,7 +19950,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
19947
19950
  timestamp_out: null,
19948
19951
  ssrc: "",
19949
19952
  direction: $e.OUTBOUND
19950
- }, BT = (c) => {
19953
+ }, GT = (c) => {
19951
19954
  const n = {
19952
19955
  pname: "",
19953
19956
  call_id: "",
@@ -20006,7 +20009,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20006
20009
  network: { ...n.network },
20007
20010
  experimental: { ...n.experimental }
20008
20011
  };
20009
- }, GT = {
20012
+ }, WT = {
20010
20013
  refreshEvery: 2e3,
20011
20014
  // Default - generate a report every 2s (in ms). Min 1s.
20012
20015
  startAfter: 0,
@@ -20109,12 +20112,12 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20109
20112
  VIDEO: "video",
20110
20113
  NETWORK: "network",
20111
20114
  DATA: "data"
20112
- }, Ka = "config ", WT = (c, n = {}, r) => {
20115
+ }, Ka = "config ", KT = (c, n = {}, r) => {
20113
20116
  const o = { ...r, ...n };
20114
20117
  return n.pname || mo(Ka, `Argument [String] 'cfg.pname' for the peerConnection name or id is missing - use generated '${r.pname}'`), n.cid || mo(Ka, `Argument [String] 'cfg.cid' for the call name or id is missing - use generated '${r.cid}'`), n.uid || mo(Ka, `Argument [String] 'cfg.uid' for the user name or id is missing - use generated '${r.uid}'`), o.pc = c, o;
20115
- }, KT = (c = {}) => {
20116
- const n = { ...GT, ...c };
20117
- return n.name = VT(), n.version = jT(), n;
20118
+ }, YT = (c = {}) => {
20119
+ const n = { ...WT, ...c };
20120
+ return n.name = jT(), n.version = qT(), n;
20118
20121
  }, ll = (c, n, r, o = !1, a) => {
20119
20122
  let t = c.map((s) => {
20120
20123
  if (!r)
@@ -20125,7 +20128,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20125
20128
  return p ? p[r] : null;
20126
20129
  });
20127
20130
  return t = t.filter((s) => o ? Number.isFinite(s) && s > 0 : Number.isFinite(s)), t.length === 0 ? [] : t;
20128
- }, $s = (c) => c.reduce((n, r) => n + r, 0) / c.length, YT = () => `probe-${Bi()}`, zT = () => `coltr-${Bi()}`, Sf = (c) => new Promise((n) => setTimeout(n, c)), hu = (c, n, r) => {
20131
+ }, $s = (c) => c.reduce((n, r) => n + r, 0) / c.length, zT = () => `probe-${Bi()}`, JT = () => `coltr-${Bi()}`, Sf = (c) => new Promise((n) => setTimeout(n, c)), hu = (c, n, r) => {
20129
20132
  n ? c.call(n, r) : c(r);
20130
20133
  }, Ke = (c, n, r, o) => {
20131
20134
  const a = ll(c, n, r, !0, o);
@@ -20152,15 +20155,15 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20152
20155
  return a[n][r];
20153
20156
  const t = a[n][o];
20154
20157
  return t ? t[r] : null;
20155
- }, JT = (c) => c.slice().pop(), ut = (c, n, r) => {
20158
+ }, XT = (c) => c.slice().pop(), ut = (c, n, r) => {
20156
20159
  if (!n)
20157
20160
  return null;
20158
20161
  const o = {};
20159
20162
  let a = n[x.AUDIO][c];
20160
- a || (a = r === $e.INBOUND ? { ...m_ } : { ...g_ }), o[x.AUDIO] = a;
20163
+ a || (a = r === $e.INBOUND ? { ...g_ } : { ...T_ }), o[x.AUDIO] = a;
20161
20164
  let t = n[x.VIDEO][c];
20162
- return t || (t = r === $e.INBOUND ? { ...T_ } : { ...v_ }), o[x.VIDEO] = t, o;
20163
- }, Fi = "exporter ", XT = "2.0", yf = (c, n, r) => {
20165
+ return t || (t = r === $e.INBOUND ? { ...v_ } : { ...E_ }), o[x.VIDEO] = t, o;
20166
+ }, Fi = "exporter ", QT = "2.0", yf = (c, n, r) => {
20164
20167
  if (!c || c.length === 0)
20165
20168
  return 0;
20166
20169
  const o = c[c.length - 1];
@@ -20172,7 +20175,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20172
20175
  return !s || !t ? Je(c, n, "delta_rtt_ms_out", !1, r) : Number(t / s);
20173
20176
  }
20174
20177
  return null;
20175
- }, QT = (c, n) => {
20178
+ }, ZT = (c, n) => {
20176
20179
  if (!c || c.length === 0)
20177
20180
  return 0;
20178
20181
  const r = c[c.length - 1];
@@ -20184,7 +20187,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20184
20187
  n,
20185
20188
  "delta_rtt_connectivity_ms"
20186
20189
  ) : Number(o / a);
20187
- }, ZT = (c) => pt(
20190
+ }, ev = (c) => pt(
20188
20191
  c,
20189
20192
  "network",
20190
20193
  "local_candidate_type"
@@ -20196,7 +20199,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20196
20199
  c,
20197
20200
  "network",
20198
20201
  "local_candidate_relay_protocol"
20199
- )}`, ev = (c) => {
20202
+ )}`, tv = (c) => {
20200
20203
  const n = pt(
20201
20204
  c,
20202
20205
  "network",
@@ -20208,7 +20211,7 @@ const Bi = /* @__PURE__ */ ot(FT), VT = () => "WebRTCMetrics", jT = () => "5.0.3
20208
20211
  );
20209
20212
  return n !== "relay" ? `direct/${r}` : `turn/${r}`;
20210
20213
  };
20211
- class tv {
20214
+ class sv {
20212
20215
  constructor(n) {
20213
20216
  this._start = null, this._end = null, this._cfg = n, this._referenceReport = null, this._reports = [], this._events = [];
20214
20217
  }
@@ -20258,7 +20261,7 @@ class tv {
20258
20261
  this._reports,
20259
20262
  "video",
20260
20263
  "total_packets_in"
20261
- ), t = {}, s = JT(this._reports);
20264
+ ), t = {}, s = XT(this._reports);
20262
20265
  return s && (Object.keys(s[x.AUDIO]).forEach((p) => {
20263
20266
  const _ = s[x.AUDIO][p];
20264
20267
  if (t[_.ssrc] = {
@@ -20835,7 +20838,7 @@ class tv {
20835
20838
  t[p].jitter = d, t[p].rtt = E, t[p].traffic = T, t[p].bitrate = g, t[p].loss = R;
20836
20839
  }
20837
20840
  })), {
20838
- version: XT,
20841
+ version: QT,
20839
20842
  configuration: {
20840
20843
  frequency: this._cfg.refreshEvery
20841
20844
  },
@@ -20858,7 +20861,7 @@ class tv {
20858
20861
  ssrc: t,
20859
20862
  data: {
20860
20863
  rtt: {
20861
- avg: QT(this._reports, "data"),
20864
+ avg: ZT(this._reports, "data"),
20862
20865
  min: Ye(
20863
20866
  this._reports,
20864
20867
  "data",
@@ -20961,8 +20964,8 @@ class tv {
20961
20964
  }
20962
20965
  },
20963
20966
  network: {
20964
- localConnection: ZT(this._reports),
20965
- remoteConnection: ev(this._reports)
20967
+ localConnection: ev(this._reports),
20968
+ remoteConnection: tv(this._reports)
20966
20969
  }
20967
20970
  }
20968
20971
  };
@@ -21000,7 +21003,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21000
21003
  totalRTT: T,
21001
21004
  totalRTTMeasurements: E
21002
21005
  };
21003
- }, sv = (c, n, r, o) => {
21006
+ }, nv = (c, n, r, o) => {
21004
21007
  if (!Object.prototype.hasOwnProperty.call(
21005
21008
  c,
21006
21009
  V.CURRENT_ROUND_TRIP_TIME
@@ -21017,7 +21020,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21017
21020
  totalRTT: t,
21018
21021
  totalRTTMeasurements: s
21019
21022
  };
21020
- }, eo = (c, n, r) => c[V.TIMESTAMP] === r[n].timestamp_out || !Object.prototype.hasOwnProperty.call(c, V.JITTER) ? null : 1e3 * (Number(c[V.JITTER]) || 0), nv = (c, n) => {
21023
+ }, eo = (c, n, r) => c[V.TIMESTAMP] === r[n].timestamp_out || !Object.prototype.hasOwnProperty.call(c, V.JITTER) ? null : 1e3 * (Number(c[V.JITTER]) || 0), rv = (c, n) => {
21021
21024
  if (!Object.prototype.hasOwnProperty.call(c, V.FRAMES_DECODED) || !Object.prototype.hasOwnProperty.call(c, V.TOTAL_DECODE_TIME))
21022
21025
  return {
21023
21026
  delta_ms_decode_frame: n[x.VIDEO].delta_ms_decode_frame_in,
@@ -21030,7 +21033,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21030
21033
  frames_decoded: r,
21031
21034
  total_decode_time: o
21032
21035
  };
21033
- }, rv = (c, n) => {
21036
+ }, iv = (c, n) => {
21034
21037
  if (!Object.prototype.hasOwnProperty.call(c, V.FRAMES_ENCODED) || !Object.prototype.hasOwnProperty.call(c, V.TOTAL_ENCODE_TIME))
21035
21038
  return {
21036
21039
  delta_ms_encode_frame: n[x.VIDEO].delta_ms_encode_frame_out,
@@ -21090,7 +21093,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21090
21093
  deltaKBytesReceived: g,
21091
21094
  kbsReceived: R
21092
21095
  };
21093
- }, iv = (c) => c[V.CANDIDATE_TYPE] !== "relay" ? "" : c[V.RELAY_PROTOCOL] || "", lv = (c) => {
21096
+ }, lv = (c) => c[V.CANDIDATE_TYPE] !== "relay" ? "" : c[V.RELAY_PROTOCOL] || "", ov = (c) => {
21094
21097
  if (!Object.prototype.hasOwnProperty.call(c, V.NETWORK_TYPE))
21095
21098
  return Hi.WIFI;
21096
21099
  switch (c[V.NETWORK_TYPE]) {
@@ -21107,7 +21110,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21107
21110
  width: c[V.FRAME_WIDTH] || null,
21108
21111
  height: c[V.FRAME_HEIGHT] || null,
21109
21112
  framerate: c[V.FRAMES_PER_SECOND]
21110
- }, ov = (c) => {
21113
+ }, av = (c) => {
21111
21114
  const n = Object.prototype.hasOwnProperty.call(
21112
21115
  c,
21113
21116
  V.QUALITY_LIMITATION_REASON
@@ -21121,7 +21124,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21121
21124
  return o && Object.keys(o).forEach((a) => {
21122
21125
  o[a] > 1e3 && (o[a] = Number(o[a] / 1e3));
21123
21126
  }), { reason: n, durations: o, resolutionChanges: r };
21124
- }, av = (c, n, r) => {
21127
+ }, uv = (c, n, r) => {
21125
21128
  if (!Object.prototype.hasOwnProperty.call(c, V.PLI) || !Object.prototype.hasOwnProperty.call(c, V.NACK))
21126
21129
  return {
21127
21130
  pliCount: n.total_pli_sent_in,
@@ -21136,7 +21139,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21136
21139
  deltaPliCount: o - n[x.VIDEO].total_pli_sent_in,
21137
21140
  deltaNackCount: a - n[x.VIDEO].total_nack_sent_in
21138
21141
  };
21139
- }, uv = (c, n, r) => {
21142
+ }, cv = (c, n, r) => {
21140
21143
  if (!Object.prototype.hasOwnProperty.call(c, V.PLI) || !Object.prototype.hasOwnProperty.call(c, V.NACK))
21141
21144
  return {
21142
21145
  pliCount: n.total_pli_received_out,
@@ -21151,15 +21154,15 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21151
21154
  deltaPliCount: o - n[x.VIDEO].total_pli_received_out,
21152
21155
  deltaNackCount: a - n[x.VIDEO].total_nack_received_out
21153
21156
  };
21154
- }, cv = (c) => ({
21157
+ }, fv = (c) => ({
21155
21158
  channels: c[V.CHANNELS] || null,
21156
21159
  clock_rate: c[V.CLOCK_RATE] || null,
21157
21160
  mime_type: c[V.MIME_TYPE] || null,
21158
21161
  sdp_fmtp_line: c[V.SDP_FMTP_LINE] || null
21159
- }), fv = (c) => ({
21162
+ }), _v = (c) => ({
21160
21163
  clock_rate: c[V.CLOCK_RATE] || null,
21161
21164
  mime_type: c[V.MIME_TYPE] || null
21162
- }), _v = (c, n, r) => {
21165
+ }), hv = (c, n, r) => {
21163
21166
  const o = (c[V.BYTES_RECEIVED] || 0) / 1024 - (r ? r.data.total_KBytes_in : 0), a = (c[V.BYTES_SENT] || 0) / 1024 - (r ? r.data.total_KBytes_out : 0), t = c[V.TIMESTAMP] || Date.now(), s = o - n.data.total_KBytes_in, p = a - n.data.total_KBytes_out, _ = r ? r.timestamp : null;
21164
21167
  let d = n.timestamp;
21165
21168
  !d && _ && (d = _);
@@ -21172,13 +21175,13 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21172
21175
  kbs_speed_received: T,
21173
21176
  kbs_speed_sent: E
21174
21177
  };
21175
- }, hv = (c) => {
21178
+ }, dv = (c) => {
21176
21179
  const n = c[V.AVAILABLE_INCOMING_BITRATE] / 1024 || 0, r = c[V.AVAILABLE_OUTGOING_BITRATE] / 1024 || 0;
21177
21180
  return {
21178
21181
  kbs_incoming_bandwidth: n,
21179
21182
  kbs_outgoing_bandwidth: r
21180
21183
  };
21181
- }, dv = (c, n, r, o) => {
21184
+ }, pv = (c, n, r, o) => {
21182
21185
  if (!c)
21183
21186
  return [];
21184
21187
  switch (c[V.TYPE]) {
@@ -21189,11 +21192,11 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21189
21192
  `analyze() - got stats ${c[V.TYPE]} for ${r}`,
21190
21193
  c
21191
21194
  ), V.SELECTED in c && !c[V.SELECTED] && (a = !1)), a) {
21192
- const s = c[V.LOCAL_CANDIDATE_ID], p = c[V.REMOTE_CANDIDATE_ID], _ = _v(
21195
+ const s = c[V.LOCAL_CANDIDATE_ID], p = c[V.REMOTE_CANDIDATE_ID], _ = hv(
21193
21196
  c,
21194
21197
  n,
21195
21198
  o
21196
- ), d = hv(c), g = sv(
21199
+ ), d = dv(c), g = nv(
21197
21200
  c,
21198
21201
  "data",
21199
21202
  o,
@@ -21264,7 +21267,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21264
21267
  return [
21265
21268
  {
21266
21269
  type: ne.NETWORK,
21267
- value: { infrastructure: lv(c) }
21270
+ value: { infrastructure: ov(c) }
21268
21271
  },
21269
21272
  {
21270
21273
  type: ne.NETWORK,
@@ -21279,7 +21282,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21279
21282
  {
21280
21283
  type: ne.NETWORK,
21281
21284
  value: {
21282
- local_candidate_relay_protocol: iv(c)
21285
+ local_candidate_relay_protocol: lv(c)
21283
21286
  }
21284
21287
  }
21285
21288
  ];
@@ -21371,12 +21374,12 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21371
21374
  ];
21372
21375
  }
21373
21376
  if (c[V.MEDIA_TYPE] === x.VIDEO) {
21374
- const d = nv(c, p), g = If(
21377
+ const d = rv(c, p), g = If(
21375
21378
  c,
21376
21379
  x.VIDEO,
21377
21380
  p,
21378
21381
  _
21379
- ), T = eo(c, x.VIDEO, p), E = c[V.DECODER_IMPLEMENTATION] || null, y = c[V.CODEC_ID] || null, A = bf(c), R = av(
21382
+ ), T = eo(c, x.VIDEO, p), E = c[V.DECODER_IMPLEMENTATION] || null, y = c[V.CODEC_ID] || null, A = bf(c), R = uv(
21380
21383
  c,
21381
21384
  p,
21382
21385
  _
@@ -21526,7 +21529,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21526
21529
  ];
21527
21530
  }
21528
21531
  if (c[V.MEDIA_TYPE] === x.VIDEO) {
21529
- const d = c[V.ENCODER_IMPLEMENTATION] || null, g = c[V.CODEC_ID] || null, T = rv(c, p), E = bf(c), y = ov(c), A = uv(
21532
+ const d = c[V.ENCODER_IMPLEMENTATION] || null, g = c[V.CODEC_ID] || null, T = iv(c, p), E = bf(c), y = av(c), A = cv(
21530
21533
  c,
21531
21534
  p,
21532
21535
  _
@@ -21642,7 +21645,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21642
21645
  `analyze() - got stats ${c[V.TYPE]} for ${r}`,
21643
21646
  c
21644
21647
  );
21645
- const _ = cv(c);
21648
+ const _ = fv(c);
21646
21649
  c[V.ID] === p.codec_id_in ? t.push({ ssrc: p.ssrc, type: ne.AUDIO, value: { codec_in: _ } }) : t.push({ ssrc: p.ssrc, type: ne.AUDIO, value: { codec_out: _ } });
21647
21650
  }
21648
21651
  }), Object.keys(n[x.VIDEO]).forEach((s) => {
@@ -21653,7 +21656,7 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21653
21656
  `analyze() - got stats ${c[V.TYPE]} for ${r}`,
21654
21657
  c
21655
21658
  );
21656
- const _ = fv(c);
21659
+ const _ = _v(c);
21657
21660
  c[V.ID] === p.codec_id_in ? t.push({ ssrc: p.ssrc, type: ne.VIDEO, value: { codec_in: _ } }) : t.push({ ssrc: p.ssrc, type: ne.VIDEO, value: { codec_out: _ } });
21658
21661
  }
21659
21662
  }), t;
@@ -21768,40 +21771,40 @@ const ks = "extractor ", Af = (c, n, r, o) => {
21768
21771
  }
21769
21772
  }
21770
21773
  return [];
21771
- }, xo = (c) => c < 0 ? 1 : c > 100 ? 4.5 : 1 + 0.035 * c + 7 / 1e6 * c * (c - 60) * (100 - c), pv = (c, n = x.AUDIO, r, o, a) => {
21774
+ }, xo = (c) => c < 0 ? 1 : c > 100 ? 4.5 : 1 + 0.035 * c + 7 / 1e6 * c * (c - 60) * (100 - c), mv = (c, n = x.AUDIO, r, o, a) => {
21772
21775
  const t = ut(a, c, $e.INBOUND), s = ut(a, r, $e.INBOUND), p = ut(a, o, $e.INBOUND), _ = [], d = [], g = t[n].percent_packets_lost_in, T = t[n].delta_jitter_ms_in, E = s && s[n].delta_jitter_ms_in || null, y = p && p[n].delta_jitter_ms_in || null, A = c.data.delta_rtt_connectivity_ms, R = r && r.data.delta_rtt_connectivity_ms || null, I = o && o.data.delta_rtt_connectivity_ms || null;
21773
21776
  A && _.push(A), R && _.push(R), I && _.push(I), T && d.push(T), r && E && d.push(E), o && y && d.push(y);
21774
21777
  const $ = _.length > 0 ? $s(_) : 100, L = d.length > 0 ? $s(d) : 10, ae = 93.2 - g, N = 0.18 * ae * ae - 27.9 * ae + 1126.62, F = ($ + L) / 2, Se = F - 177.3 < 0 ? 0 : 1, ve = 0.024 * F + 0.11 * (F - 177.3) * Se, M = N - ve;
21775
21778
  return xo(M);
21776
- }, mv = (c, n = x.AUDIO, r, o, a) => {
21779
+ }, gv = (c, n = x.AUDIO, r, o, a) => {
21777
21780
  const t = ut(a, c, $e.OUTBOUND), s = ut(a, r, $e.OUTBOUND), p = ut(a, o, $e.OUTBOUND), _ = [], d = [], g = t[n].percent_packets_lost_out, T = t[n].delta_rtt_ms_out, E = s && s[n].delta_rtt_ms_out || null, y = p && p[n].delta_rtt_ms_out || null, A = t[n].delta_jitter_ms_out, R = s && s[n].delta_jitter_ms_out || null, I = p && p[n].delta_jitter_ms_out || null, $ = c.data.delta_rtt_connectivity_ms, L = r && r.data.delta_rtt_connectivity_ms || null, ae = o && o.data.delta_rtt_connectivity_ms || null;
21778
21781
  T ? _.push(T) : $ && _.push($), E ? _.push(E) : L && _.push(L), y ? _.push(y) : ae && _.push(ae), A && d.push(A), r && R && d.push(R), o && I && d.push(I);
21779
21782
  const N = _.length > 0 ? $s(_) : 100, F = d.length > 0 ? $s(d) : 10, Se = 93.2 - g, ve = 0.18 * Se * Se - 27.9 * Se + 1126.62, M = (N + F) / 2, D = M - 177.3 < 0 ? 0 : 1, q = 0.024 * M + 0.11 * (M - 177.3) * D, j = ve - q;
21780
21783
  return xo(j);
21781
- }, gv = (c, n = x.AUDIO, r, o, a) => {
21784
+ }, Tv = (c, n = x.AUDIO, r, o, a) => {
21782
21785
  const t = ut(a, c, $e.INBOUND), s = ut(a, r, $e.INBOUND), p = ut(a, o, $e.INBOUND), _ = [], d = [], g = t[n].percent_packets_lost_in / 100, T = t[n].delta_jitter_ms_in, E = s && s[n].delta_jitter_ms_in || null, y = p && p[n].delta_jitter_ms_in || null, A = c.data.delta_rtt_connectivity_ms, R = r && r.data.delta_rtt_connectivity_ms || null, I = o && o.data.delta_rtt_connectivity_ms || null;
21783
21786
  A && _.push(A), R && _.push(R), I && _.push(I), T && d.push(T), s && E && d.push(E), p && y && d.push(y);
21784
21787
  const $ = _.length > 0 ? $s(_) : 100, L = d.length > 0 ? $s(d) : 10, ae = 0, N = 19.8, F = 29.7, Se = 30, ve = ($ + L) / 2 + Se, M = ve - 177.3 < 0 ? 0 : 1, D = 0.024 * ve + 0.11 * (ve - 177.3) * M, j = 93.2 - (ae + N * Math.log(1 + F * g) + D);
21785
21788
  return xo(j);
21786
- }, Tv = (c, n = x.AUDIO, r, o, a) => {
21789
+ }, vv = (c, n = x.AUDIO, r, o, a) => {
21787
21790
  const t = ut(a, c, $e.OUTBOUND), s = ut(a, r, $e.OUTBOUND), p = ut(a, o, $e.OUTBOUND), _ = [], d = [], g = t[n].percent_packets_lost_out / 100, T = t[n].delta_rtt_ms_out, E = s && s[n].delta_rtt_ms_out || null, y = p && p[n].delta_rtt_ms_out || null, A = t[n].delta_jitter_ms_out, R = s && s[n].delta_jitter_ms_out || null, I = p && p[n].delta_jitter_ms_out || null, $ = c.data.delta_rtt_connectivity_ms, L = r && r.data.delta_rtt_connectivity_ms || null, ae = o && o.data.delta_rtt_connectivity_ms || null;
21788
21791
  T ? _.push(T) : $ && _.push($), E ? _.push(E) : L && _.push(L), y ? _.push(y) : ae && _.push(ae), A && d.push(A), s && R && d.push(R), p && I && d.push(I);
21789
21792
  const N = _.length > 0 ? $s(_) : 100, F = d.length > 0 ? $s(d) : 10, Se = 0, ve = 19.8, M = 29.7, D = 30, q = (N + F) / 2 + D, j = q - 177.3 < 0 ? 0 : 1, z = 0.024 * q + 0.11 * (q - 177.3) * j, J = 93.2 - (Se + ve * Math.log(1 + M * g) + z);
21790
21793
  return xo(J);
21791
21794
  };
21792
- class vv {
21795
+ class Ev {
21793
21796
  constructor(n, r) {
21794
21797
  this._callbacks = {
21795
21798
  onreport: null,
21796
21799
  onticket: null
21797
- }, this._id = zT(), this._moduleName = this._id, this._probeId = r, this._config = n, this._exporter = new tv(n), this._state = hs.IDLE, this.registerToPCEvents(), vn(this._moduleName, `new collector created for probe ${this._probeId}`);
21800
+ }, this._id = JT(), this._moduleName = this._id, this._probeId = r, this._config = n, this._exporter = new sv(n), this._state = hs.IDLE, this.registerToPCEvents(), vn(this._moduleName, `new collector created for probe ${this._probeId}`);
21798
21801
  }
21799
21802
  analyze(n, r, o, a) {
21800
- const t = (_, d) => _ === x.AUDIO ? d === Kt.INBOUND_RTP ? { ...m_ } : { ...g_ } : d === Kt.INBOUND_RTP ? { ...T_ } : { ...v_ }, s = BT(r);
21803
+ const t = (_, d) => _ === x.AUDIO ? d === Kt.INBOUND_RTP ? { ...g_ } : { ...T_ } : d === Kt.INBOUND_RTP ? { ...v_ } : { ...E_ }, s = GT(r);
21801
21804
  s.pname = this._config.pname, s.call_id = this._config.cid, s.user_id = this._config.uid, s.count = r ? r.count + 1 : 1;
21802
21805
  let p = null;
21803
21806
  return n.forEach((_) => {
21804
- !p && _.timestamp && (p = _.timestamp), dv(_, s, s.pname, a).forEach((g) => {
21807
+ !p && _.timestamp && (p = _.timestamp), pv(_, s, s.pname, a).forEach((g) => {
21805
21808
  if (g.value && g.type)
21806
21809
  if (g.ssrc) {
21807
21810
  let T = s[g.type][g.ssrc];
@@ -21815,25 +21818,25 @@ class vv {
21815
21818
  });
21816
21819
  }), s.timestamp = p, Object.keys(s[x.AUDIO]).forEach((_) => {
21817
21820
  const d = s[x.AUDIO][_];
21818
- d.direction === $e.INBOUND ? (d.mos_emodel_in = pv(
21821
+ d.direction === $e.INBOUND ? (d.mos_emodel_in = mv(
21819
21822
  s,
21820
21823
  x.AUDIO,
21821
21824
  r,
21822
21825
  o,
21823
21826
  d.ssrc
21824
- ), d.mos_in = gv(
21827
+ ), d.mos_in = Tv(
21825
21828
  s,
21826
21829
  x.AUDIO,
21827
21830
  r,
21828
21831
  o,
21829
21832
  d.ssrc
21830
- )) : (d.mos_emodel_out = mv(
21833
+ )) : (d.mos_emodel_out = gv(
21831
21834
  s,
21832
21835
  x.AUDIO,
21833
21836
  r,
21834
21837
  o,
21835
21838
  d.ssrc
21836
- ), d.mos_out = Tv(
21839
+ ), d.mos_out = vv(
21837
21840
  s,
21838
21841
  x.AUDIO,
21839
21842
  r,
@@ -22015,9 +22018,9 @@ class vv {
22015
22018
  }
22016
22019
  }
22017
22020
  }
22018
- class Ev {
22021
+ class Sv {
22019
22022
  constructor(n) {
22020
- this._id = n.pname && n.pname.substr(0, 12).padEnd(12, " ") || YT(), this._moduleName = this._id, vn(this._moduleName, "probe created"), this._config = n, this._collector = new vv(this._config, this._id);
22023
+ this._id = n.pname && n.pname.substr(0, 12).padEnd(12, " ") || zT(), this._moduleName = this._id, vn(this._moduleName, "probe created"), this._config = n, this._collector = new Ev(this._config, this._id);
22021
22024
  }
22022
22025
  /**
22023
22026
  * Register a callback to 'onreport'
@@ -22127,7 +22130,7 @@ class Ev {
22127
22130
  }
22128
22131
  }
22129
22132
  const yt = "engine ";
22130
- class Sv {
22133
+ class yv {
22131
22134
  constructor(n) {
22132
22135
  this._config = n, this._probes = [], this._startedTime = null, this._callbacks = {
22133
22136
  onresult: null
@@ -22145,7 +22148,7 @@ class Sv {
22145
22148
  addNewProbe(n, r) {
22146
22149
  if (!n)
22147
22150
  throw new Error("undefined peer connection");
22148
- const o = WT(n, r, this._config), a = new Ev(o);
22151
+ const o = KT(n, r, this._config), a = new Sv(o);
22149
22152
  return this._probes.push(a), Pe(yt, `${this._probes.length} probes registered`), a;
22150
22153
  }
22151
22154
  removeExistingProbe(n) {
@@ -22157,7 +22160,7 @@ class Sv {
22157
22160
  const n = () => {
22158
22161
  this._probes.forEach((t) => t.start());
22159
22162
  }, r = async () => Promise.all(this._probes.map((t) => t.takeReferenceStats())), o = () => this.isIdle ? !1 : !this._config.stopAfter || this._config.stopAfter < 0 ? !0 : Date.now() < this._startedTime + this._config.stopAfter, a = async () => {
22160
- const t = qT(), s = this._probes.filter((p) => p.isRunning);
22163
+ const t = BT(), s = this._probes.filter((p) => p.isRunning);
22161
22164
  for (const p of s) {
22162
22165
  const _ = await p.collectStats();
22163
22166
  _ && t.probes.push(_), Pe(yt, `got probe ${p.id}`), await Sf(0);
@@ -22192,17 +22195,17 @@ class Sv {
22192
22195
  this._callbacks.onresult && n.probes.length > 0 && hu(this._callbacks.onresult.callback, this._callbacks.onresult.context, n);
22193
22196
  }
22194
22197
  }
22195
- const yv = "interface ";
22196
- class Av {
22198
+ const Av = "interface ";
22199
+ class Cv {
22197
22200
  constructor(n) {
22198
- this._config = KT(n), vn(yv, `welcome to ${this._config.name} version ${this._config.version}`), MT(this._config.verbose || !1), this._engine = new Sv(this._config);
22201
+ this._config = YT(n), vn(Av, `welcome to ${this._config.name} version ${this._config.version}`), kT(this._config.verbose || !1), this._engine = new yv(this._config);
22199
22202
  }
22200
22203
  /**
22201
22204
  * Change log level manually
22202
22205
  * @param {string} level - The level of logs. Can be one of 'TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'SILENT'
22203
22206
  */
22204
22207
  setupLogLevel(n) {
22205
- kT(n);
22208
+ LT(n);
22206
22209
  }
22207
22210
  /**
22208
22211
  * Get the version
@@ -22267,7 +22270,7 @@ class Av {
22267
22270
  n ? this._engine.registerCallback("onresult", n) : this._engine.unregisterCallback("onresult");
22268
22271
  }
22269
22272
  }
22270
- function Cv(c, n) {
22273
+ function Rv(c, n) {
22271
22274
  return Object.keys(c).filter((r) => n.includes(r)).reduce((r, o) => {
22272
22275
  const a = o;
22273
22276
  return {
@@ -22276,8 +22279,8 @@ function Cv(c, n) {
22276
22279
  };
22277
22280
  }, {});
22278
22281
  }
22279
- const Rv = ["mos_in", "codec_in", "delta_KBytes_in", "delta_kbs_in", "delta_jitter_ms_in", "delta_packets_lost_in"];
22280
- class Iv {
22282
+ const Iv = ["mos_in", "codec_in", "delta_KBytes_in", "delta_kbs_in", "delta_jitter_ms_in", "delta_packets_lost_in"];
22283
+ class bv {
22281
22284
  constructor(n) {
22282
22285
  this.intervals = {}, this.emitInterval = n.emitInterval || 200, this.onChangeFunction = n.onChangeFunction;
22283
22286
  }
@@ -22313,8 +22316,8 @@ class Iv {
22313
22316
  const to = {
22314
22317
  SELECTED_INPUT_DEVICE: "OpensipsJSInputDevice",
22315
22318
  SELECTED_OUTPUT_DEVICE: "OpensipsJSOutputDevice"
22316
- }, bv = 0;
22317
- class wv {
22319
+ }, wv = 0;
22320
+ class Ov {
22318
22321
  constructor(n) {
22319
22322
  this.isAutoAnswer = !1, this.muteWhenJoinEnabled = !1, this.isDNDEnabled = !1, this.muted = !1, this.microphoneInputLevelValue = 1, this.speakerVolumeValue = 1, this.activeRooms = {}, this.activeCalls = {}, this.extendedCalls = {}, this.availableMediaDevices = [], this.selectedMediaDevices = {
22320
22323
  input: "default",
@@ -22324,7 +22327,7 @@ class wv {
22324
22327
  }, this.activeStreamValue = null, this.initialStreamValue = null, this.context = n, this.context.on(
22325
22328
  this.context.newRTCSessionEventName,
22326
22329
  this.newRTCSessionCallback.bind(this)
22327
- ), this.VUMeter = new Iv({
22330
+ ), this.VUMeter = new bv({
22328
22331
  onChangeFunction: this.emitVolumeChange.bind(this)
22329
22332
  }), this.initializeMediaDevices();
22330
22333
  }
@@ -22442,7 +22445,7 @@ class wv {
22442
22445
  return this.availableMediaDevices.filter((n) => n.kind === "audiooutput");
22443
22446
  }
22444
22447
  get getUserMediaConstraints() {
22445
- return /Mobi|Android|iPhone/i.test(navigator.userAgent) ? {
22448
+ return d_() ? {
22446
22449
  video: !1,
22447
22450
  audio: !0
22448
22451
  } : {
@@ -22568,7 +22571,7 @@ class wv {
22568
22571
  });
22569
22572
  }
22570
22573
  cancelAllOutgoingUnanswered() {
22571
- Object.values(this.getActiveCalls).filter((n) => n.direction === "outgoing" && n.status === bv).forEach((n) => this.terminateCall(n._id));
22574
+ Object.values(this.getActiveCalls).filter((n) => n.direction === "outgoing" && n.status === wv).forEach((n) => this.terminateCall(n._id));
22572
22575
  }
22573
22576
  answerCall(n) {
22574
22577
  const r = this.extendedCalls[n];
@@ -22807,7 +22810,7 @@ class wv {
22807
22810
  };
22808
22811
  this.setCallTime(r);
22809
22812
  const o = setInterval(() => {
22810
- const a = { ...this.callTime[n] }, t = NT(a);
22813
+ const a = { ...this.callTime[n] }, t = UT(a);
22811
22814
  this.setCallTime({
22812
22815
  callId: n,
22813
22816
  ...t
@@ -22949,7 +22952,7 @@ class wv {
22949
22952
  }, this.context.emit("changeCallMetrics", this.callMetrics);
22950
22953
  }
22951
22954
  getCallQuality(n) {
22952
- const r = new Av(this.metricConfig), o = r.createProbe(n.connection, {
22955
+ const r = new Cv(this.metricConfig), o = r.createProbe(n.connection, {
22953
22956
  cid: n._id
22954
22957
  }), a = [];
22955
22958
  let t;
@@ -22957,7 +22960,7 @@ class wv {
22957
22960
  Object.entries(s.audio).forEach(([d, g]) => {
22958
22961
  g.direction === "inbound" && !a.includes(d) && (a.push(d), t = d);
22959
22962
  });
22960
- const p = s.audio[t], _ = Cv(p, Rv);
22963
+ const p = s.audio[t], _ = Rv(p, Iv);
22961
22964
  _.callId = n._id, this.setCallMetrics(r);
22962
22965
  }, this.context.subscribe(es.CALL_ENDED, (s) => {
22963
22966
  s._id === n._id && r.stopAllProbes();
@@ -22978,7 +22981,7 @@ class wv {
22978
22981
  const o = Tf(this.initialStreamValue, this.microphoneInputLevel * 2), a = this.isMuted || this.muteWhenJoin;
22979
22982
  o.getTracks().forEach((s) => s.enabled = !a), this.setActiveStream(o), await r.connection.getSenders()[0].replaceTrack(o.getTracks()[0]);
22980
22983
  const t = new MediaStream([n.track]);
22981
- pT(t, r, this.selectedOutputDevice, this.speakerVolume), this.setupVUMeter(t, r._id), this.getCallQuality(r), this.updateCall(r);
22984
+ mT(t, r, this.selectedOutputDevice, this.speakerVolume), this.setupVUMeter(t, r._id), this.getCallQuality(r), this.updateCall(r);
22982
22985
  }
22983
22986
  //@requireInitialization()
22984
22987
  initCall(n, r) {
@@ -23008,7 +23011,7 @@ class wv {
23008
23011
  });
23009
23012
  }
23010
23013
  }
23011
- class Ov {
23014
+ class Dv {
23012
23015
  constructor(n) {
23013
23016
  this.context = n;
23014
23017
  }
@@ -23038,7 +23041,7 @@ class Ov {
23038
23041
  })
23039
23042
  }*/
23040
23043
  }
23041
- class Dv {
23044
+ class Nv {
23042
23045
  constructor(n) {
23043
23046
  this.activeMessages = {}, this.extendedMessages = {}, this.msrpHistory = {}, this.context = n, this.context.on(
23044
23047
  this.context.newMSRPSessionEventName,
@@ -23209,15 +23212,15 @@ const Ya = {
23209
23212
  VIDEO: "video",
23210
23213
  MSRP: "msrp"
23211
23214
  };
23212
- class Wv extends _T {
23215
+ class Kv extends hT {
23213
23216
  constructor(n, r) {
23214
23217
  if (!n.modules.length)
23215
23218
  throw new Error("options.modules should include at least 1 module");
23216
23219
  const o = {
23217
23220
  ...n.configuration,
23218
- sockets: n.socketInterfaces.map((a) => new DT.WebSocketInterface(a))
23221
+ sockets: n.socketInterfaces.map((a) => new NT.WebSocketInterface(a))
23219
23222
  };
23220
- super(o), this.initialized = !1, this.logger = console, this.newRTCSessionEventName = "newRTCSession", this.registeredEventName = "registered", this.unregisteredEventName = "unregistered", this.disconnectedEventName = "disconnected", this.connectedEventName = "connected", this.newMSRPSessionEventName = "newMSRPSession", this.isReconnecting = !1, this.audio = null, this.msrp = null, this.video = null, this.listenersList = {}, this.modules = [], n.pnExtraHeaders && Object.keys(n.pnExtraHeaders).length && this.registrator().setExtraContactParams(n.pnExtraHeaders), this.options = n, this.modules = n.modules, r && mT(r) && (this.logger = r);
23223
+ super(o), this.initialized = !1, this.logger = console, this.newRTCSessionEventName = "newRTCSession", this.registeredEventName = "registered", this.unregisteredEventName = "unregistered", this.disconnectedEventName = "disconnected", this.connectedEventName = "connected", this.newMSRPSessionEventName = "newMSRPSession", this.isReconnecting = !1, this.audio = null, this.msrp = null, this.video = null, this.listenersList = {}, this.modules = [], n.pnExtraHeaders && Object.keys(n.pnExtraHeaders).length && this.registrator().setExtraContactParams(n.pnExtraHeaders), this.options = n, this.modules = n.modules, r && gT(r) && (this.logger = r);
23221
23224
  }
23222
23225
  on(n, r) {
23223
23226
  return super.on(n, r);
@@ -23236,7 +23239,7 @@ class Wv extends _T {
23236
23239
  console.error("Connection is already established");
23237
23240
  return;
23238
23241
  }
23239
- return this.modules.includes(Ya.AUDIO) && (this.audio = new wv(this)), this.modules.includes(Ya.MSRP) && (this.msrp = new Dv(this)), this.modules.includes(Ya.VIDEO) && (this.video = new Ov(this)), this.on(
23242
+ return this.modules.includes(Ya.AUDIO) && (this.audio = new Ov(this)), this.modules.includes(Ya.MSRP) && (this.msrp = new Nv(this)), this.modules.includes(Ya.VIDEO) && (this.video = new Dv(this)), this.on(
23240
23243
  this.registeredEventName,
23241
23244
  () => {
23242
23245
  this.logger.log("Successfully registered to", this.options.socketInterfaces[0]), this.setInitialized(!0);
@@ -24410,5 +24413,5 @@ class Wv extends _T {
24410
24413
  }*/
24411
24414
  }
24412
24415
  export {
24413
- Wv as default
24416
+ Kv as default
24414
24417
  };