media-av 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mediaAV.js CHANGED
@@ -1,7 +1,7 @@
1
- var qn = Object.defineProperty;
2
- var Kn = (t, e, r) => e in t ? qn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var g = (t, e, r) => (Kn(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- function Qn(t, e) {
1
+ var Zn = Object.defineProperty;
2
+ var ei = (t, e, r) => e in t ? Zn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var g = (t, e, r) => (ei(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ function ti(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const n = e[r];
7
7
  if (typeof n != "string" && !Array.isArray(n)) {
@@ -17,38 +17,38 @@ function Qn(t, e) {
17
17
  }
18
18
  return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
19
19
  }
20
- function _r(t, e) {
20
+ function xr(t, e) {
21
21
  return function() {
22
22
  return t.apply(e, arguments);
23
23
  };
24
24
  }
25
- const { toString: Yn } = Object.prototype, { getPrototypeOf: Dt } = Object, qe = ((t) => (e) => {
26
- const r = Yn.call(e);
25
+ const { toString: ri } = Object.prototype, { getPrototypeOf: kt } = Object, qe = ((t) => (e) => {
26
+ const r = ri.call(e);
27
27
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
28
- })(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), Ke = (t) => (e) => typeof e === t, { isArray: de } = Array, Re = Ke("undefined");
29
- function Xn(t) {
30
- return t !== null && !Re(t) && t.constructor !== null && !Re(t.constructor) && L(t.constructor.isBuffer) && t.constructor.isBuffer(t);
28
+ })(/* @__PURE__ */ Object.create(null)), j = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), Ke = (t) => (e) => typeof e === t, { isArray: he } = Array, Te = Ke("undefined");
29
+ function ni(t) {
30
+ return t !== null && !Te(t) && t.constructor !== null && !Te(t.constructor) && k(t.constructor.isBuffer) && t.constructor.isBuffer(t);
31
31
  }
32
- const xr = B("ArrayBuffer");
33
- function Zn(t) {
32
+ const Lr = j("ArrayBuffer");
33
+ function ii(t) {
34
34
  let e;
35
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && xr(t.buffer), e;
35
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Lr(t.buffer), e;
36
36
  }
37
- const ei = Ke("string"), L = Ke("function"), Dr = Ke("number"), Qe = (t) => t !== null && typeof t == "object", ti = (t) => t === !0 || t === !1, De = (t) => {
37
+ const oi = Ke("string"), k = Ke("function"), kr = Ke("number"), Qe = (t) => t !== null && typeof t == "object", si = (t) => t === !0 || t === !1, Le = (t) => {
38
38
  if (qe(t) !== "object")
39
39
  return !1;
40
- const e = Dt(t);
40
+ const e = kt(t);
41
41
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
42
- }, ri = B("Date"), ni = B("File"), ii = B("Blob"), oi = B("FileList"), si = (t) => Qe(t) && L(t.pipe), ai = (t) => {
42
+ }, ai = j("Date"), ci = j("File"), li = j("Blob"), ui = j("FileList"), fi = (t) => Qe(t) && k(t.pipe), pi = (t) => {
43
43
  let e;
44
- return t && (typeof FormData == "function" && t instanceof FormData || L(t.append) && ((e = qe(t)) === "formdata" || // detect form-data instance
45
- e === "object" && L(t.toString) && t.toString() === "[object FormData]"));
46
- }, ci = B("URLSearchParams"), li = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
47
- function Te(t, e, { allOwnKeys: r = !1 } = {}) {
44
+ return t && (typeof FormData == "function" && t instanceof FormData || k(t.append) && ((e = qe(t)) === "formdata" || // detect form-data instance
45
+ e === "object" && k(t.toString) && t.toString() === "[object FormData]"));
46
+ }, di = j("URLSearchParams"), hi = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
47
+ function Ee(t, e, { allOwnKeys: r = !1 } = {}) {
48
48
  if (t === null || typeof t > "u")
49
49
  return;
50
50
  let n, i;
51
- if (typeof t != "object" && (t = [t]), de(t))
51
+ if (typeof t != "object" && (t = [t]), he(t))
52
52
  for (n = 0, i = t.length; n < i; n++)
53
53
  e.call(null, t[n], n, t);
54
54
  else {
@@ -58,7 +58,7 @@ function Te(t, e, { allOwnKeys: r = !1 } = {}) {
58
58
  a = o[n], e.call(null, t[a], a, t);
59
59
  }
60
60
  }
61
- function Lr(t, e) {
61
+ function Mr(t, e) {
62
62
  e = e.toLowerCase();
63
63
  const r = Object.keys(t);
64
64
  let n = r.length, i;
@@ -67,23 +67,23 @@ function Lr(t, e) {
67
67
  return i;
68
68
  return null;
69
69
  }
70
- const kr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Mr = (t) => !Re(t) && t !== kr;
70
+ const Fr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Nr = (t) => !Te(t) && t !== Fr;
71
71
  function ht() {
72
- const { caseless: t } = Mr(this) && this || {}, e = {}, r = (n, i) => {
73
- const o = t && Lr(e, i) || i;
74
- De(e[o]) && De(n) ? e[o] = ht(e[o], n) : De(n) ? e[o] = ht({}, n) : de(n) ? e[o] = n.slice() : e[o] = n;
72
+ const { caseless: t } = Nr(this) && this || {}, e = {}, r = (n, i) => {
73
+ const o = t && Mr(e, i) || i;
74
+ Le(e[o]) && Le(n) ? e[o] = ht(e[o], n) : Le(n) ? e[o] = ht({}, n) : he(n) ? e[o] = n.slice() : e[o] = n;
75
75
  };
76
76
  for (let n = 0, i = arguments.length; n < i; n++)
77
- arguments[n] && Te(arguments[n], r);
77
+ arguments[n] && Ee(arguments[n], r);
78
78
  return e;
79
79
  }
80
- const ui = (t, e, r, { allOwnKeys: n } = {}) => (Te(e, (i, o) => {
81
- r && L(i) ? t[o] = _r(i, r) : t[o] = i;
82
- }, { allOwnKeys: n }), t), fi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), pi = (t, e, r, n) => {
80
+ const mi = (t, e, r, { allOwnKeys: n } = {}) => (Ee(e, (i, o) => {
81
+ r && k(i) ? t[o] = xr(i, r) : t[o] = i;
82
+ }, { allOwnKeys: n }), t), yi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), gi = (t, e, r, n) => {
83
83
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
84
84
  value: e.prototype
85
85
  }), r && Object.assign(t.prototype, r);
86
- }, di = (t, e, r, n) => {
86
+ }, Si = (t, e, r, n) => {
87
87
  let i, o, s;
88
88
  const a = {};
89
89
  if (e = e || {}, t == null)
@@ -91,54 +91,54 @@ const ui = (t, e, r, { allOwnKeys: n } = {}) => (Te(e, (i, o) => {
91
91
  do {
92
92
  for (i = Object.getOwnPropertyNames(t), o = i.length; o-- > 0; )
93
93
  s = i[o], (!n || n(s, t, e)) && !a[s] && (e[s] = t[s], a[s] = !0);
94
- t = r !== !1 && Dt(t);
94
+ t = r !== !1 && kt(t);
95
95
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
96
96
  return e;
97
- }, hi = (t, e, r) => {
97
+ }, vi = (t, e, r) => {
98
98
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
99
99
  const n = t.indexOf(e, r);
100
100
  return n !== -1 && n === r;
101
- }, mi = (t) => {
101
+ }, Ci = (t) => {
102
102
  if (!t)
103
103
  return null;
104
- if (de(t))
104
+ if (he(t))
105
105
  return t;
106
106
  let e = t.length;
107
- if (!Dr(e))
107
+ if (!kr(e))
108
108
  return null;
109
109
  const r = new Array(e);
110
110
  for (; e-- > 0; )
111
111
  r[e] = t[e];
112
112
  return r;
113
- }, yi = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Dt(Uint8Array)), gi = (t, e) => {
113
+ }, bi = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && kt(Uint8Array)), Ri = (t, e) => {
114
114
  const n = (t && t[Symbol.iterator]).call(t);
115
115
  let i;
116
116
  for (; (i = n.next()) && !i.done; ) {
117
117
  const o = i.value;
118
118
  e.call(t, o[0], o[1]);
119
119
  }
120
- }, Si = (t, e) => {
120
+ }, Ti = (t, e) => {
121
121
  let r;
122
122
  const n = [];
123
123
  for (; (r = t.exec(e)) !== null; )
124
124
  n.push(r);
125
125
  return n;
126
- }, vi = B("HTMLFormElement"), Ci = (t) => t.toLowerCase().replace(
126
+ }, Ei = j("HTMLFormElement"), Pi = (t) => t.toLowerCase().replace(
127
127
  /[-_\s]([a-z\d])(\w*)/g,
128
128
  function(r, n, i) {
129
129
  return n.toUpperCase() + i;
130
130
  }
131
- ), Jt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), bi = B("RegExp"), Fr = (t, e) => {
131
+ ), Kt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Oi = j("RegExp"), Ur = (t, e) => {
132
132
  const r = Object.getOwnPropertyDescriptors(t), n = {};
133
- Te(r, (i, o) => {
133
+ Ee(r, (i, o) => {
134
134
  e(i, o, t) !== !1 && (n[o] = i);
135
135
  }), Object.defineProperties(t, n);
136
- }, Ri = (t) => {
137
- Fr(t, (e, r) => {
138
- if (L(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
136
+ }, Ai = (t) => {
137
+ Ur(t, (e, r) => {
138
+ if (k(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
139
139
  return !1;
140
140
  const n = t[r];
141
- if (L(n)) {
141
+ if (k(n)) {
142
142
  if (e.enumerable = !1, "writable" in e) {
143
143
  e.writable = !1;
144
144
  return;
@@ -148,103 +148,103 @@ const ui = (t, e, r, { allOwnKeys: n } = {}) => (Te(e, (i, o) => {
148
148
  });
149
149
  }
150
150
  });
151
- }, Ti = (t, e) => {
151
+ }, _i = (t, e) => {
152
152
  const r = {}, n = (i) => {
153
153
  i.forEach((o) => {
154
154
  r[o] = !0;
155
155
  });
156
156
  };
157
- return de(t) ? n(t) : n(String(t).split(e)), r;
158
- }, Ei = () => {
159
- }, Pi = (t, e) => (t = +t, Number.isFinite(t) ? t : e), et = "abcdefghijklmnopqrstuvwxyz", qt = "0123456789", Nr = {
160
- DIGIT: qt,
157
+ return he(t) ? n(t) : n(String(t).split(e)), r;
158
+ }, Ii = () => {
159
+ }, Di = (t, e) => (t = +t, Number.isFinite(t) ? t : e), et = "abcdefghijklmnopqrstuvwxyz", Qt = "0123456789", Br = {
160
+ DIGIT: Qt,
161
161
  ALPHA: et,
162
- ALPHA_DIGIT: et + et.toUpperCase() + qt
163
- }, Oi = (t = 16, e = Nr.ALPHA_DIGIT) => {
162
+ ALPHA_DIGIT: et + et.toUpperCase() + Qt
163
+ }, xi = (t = 16, e = Br.ALPHA_DIGIT) => {
164
164
  let r = "";
165
165
  const { length: n } = e;
166
166
  for (; t--; )
167
167
  r += e[Math.random() * n | 0];
168
168
  return r;
169
169
  };
170
- function Ai(t) {
171
- return !!(t && L(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
170
+ function Li(t) {
171
+ return !!(t && k(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
172
172
  }
173
- const Ii = (t) => {
173
+ const ki = (t) => {
174
174
  const e = new Array(10), r = (n, i) => {
175
175
  if (Qe(n)) {
176
176
  if (e.indexOf(n) >= 0)
177
177
  return;
178
178
  if (!("toJSON" in n)) {
179
179
  e[i] = n;
180
- const o = de(n) ? [] : {};
181
- return Te(n, (s, a) => {
180
+ const o = he(n) ? [] : {};
181
+ return Ee(n, (s, a) => {
182
182
  const l = r(s, i + 1);
183
- !Re(l) && (o[a] = l);
183
+ !Te(l) && (o[a] = l);
184
184
  }), e[i] = void 0, o;
185
185
  }
186
186
  }
187
187
  return n;
188
188
  };
189
189
  return r(t, 0);
190
- }, _i = B("AsyncFunction"), xi = (t) => t && (Qe(t) || L(t)) && L(t.then) && L(t.catch), d = {
191
- isArray: de,
192
- isArrayBuffer: xr,
193
- isBuffer: Xn,
194
- isFormData: ai,
195
- isArrayBufferView: Zn,
196
- isString: ei,
197
- isNumber: Dr,
198
- isBoolean: ti,
190
+ }, Mi = j("AsyncFunction"), Fi = (t) => t && (Qe(t) || k(t)) && k(t.then) && k(t.catch), d = {
191
+ isArray: he,
192
+ isArrayBuffer: Lr,
193
+ isBuffer: ni,
194
+ isFormData: pi,
195
+ isArrayBufferView: ii,
196
+ isString: oi,
197
+ isNumber: kr,
198
+ isBoolean: si,
199
199
  isObject: Qe,
200
- isPlainObject: De,
201
- isUndefined: Re,
202
- isDate: ri,
203
- isFile: ni,
204
- isBlob: ii,
205
- isRegExp: bi,
206
- isFunction: L,
207
- isStream: si,
208
- isURLSearchParams: ci,
209
- isTypedArray: yi,
210
- isFileList: oi,
211
- forEach: Te,
200
+ isPlainObject: Le,
201
+ isUndefined: Te,
202
+ isDate: ai,
203
+ isFile: ci,
204
+ isBlob: li,
205
+ isRegExp: Oi,
206
+ isFunction: k,
207
+ isStream: fi,
208
+ isURLSearchParams: di,
209
+ isTypedArray: bi,
210
+ isFileList: ui,
211
+ forEach: Ee,
212
212
  merge: ht,
213
- extend: ui,
214
- trim: li,
215
- stripBOM: fi,
216
- inherits: pi,
217
- toFlatObject: di,
213
+ extend: mi,
214
+ trim: hi,
215
+ stripBOM: yi,
216
+ inherits: gi,
217
+ toFlatObject: Si,
218
218
  kindOf: qe,
219
- kindOfTest: B,
220
- endsWith: hi,
221
- toArray: mi,
222
- forEachEntry: gi,
223
- matchAll: Si,
224
- isHTMLForm: vi,
225
- hasOwnProperty: Jt,
226
- hasOwnProp: Jt,
219
+ kindOfTest: j,
220
+ endsWith: vi,
221
+ toArray: Ci,
222
+ forEachEntry: Ri,
223
+ matchAll: Ti,
224
+ isHTMLForm: Ei,
225
+ hasOwnProperty: Kt,
226
+ hasOwnProp: Kt,
227
227
  // an alias to avoid ESLint no-prototype-builtins detection
228
- reduceDescriptors: Fr,
229
- freezeMethods: Ri,
230
- toObjectSet: Ti,
231
- toCamelCase: Ci,
232
- noop: Ei,
233
- toFiniteNumber: Pi,
234
- findKey: Lr,
235
- global: kr,
236
- isContextDefined: Mr,
237
- ALPHABET: Nr,
238
- generateString: Oi,
239
- isSpecCompliantForm: Ai,
240
- toJSONObject: Ii,
241
- isAsyncFn: _i,
242
- isThenable: xi
228
+ reduceDescriptors: Ur,
229
+ freezeMethods: Ai,
230
+ toObjectSet: _i,
231
+ toCamelCase: Pi,
232
+ noop: Ii,
233
+ toFiniteNumber: Di,
234
+ findKey: Mr,
235
+ global: Fr,
236
+ isContextDefined: Nr,
237
+ ALPHABET: Br,
238
+ generateString: xi,
239
+ isSpecCompliantForm: Li,
240
+ toJSONObject: ki,
241
+ isAsyncFn: Mi,
242
+ isThenable: Fi
243
243
  };
244
- function C(t, e, r, n, i) {
244
+ function b(t, e, r, n, i) {
245
245
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), i && (this.response = i);
246
246
  }
247
- d.inherits(C, Error, {
247
+ d.inherits(b, Error, {
248
248
  toJSON: function() {
249
249
  return {
250
250
  // Standard
@@ -265,7 +265,7 @@ d.inherits(C, Error, {
265
265
  };
266
266
  }
267
267
  });
268
- const Ur = C.prototype, Br = {};
268
+ const jr = b.prototype, $r = {};
269
269
  [
270
270
  "ERR_BAD_OPTION_VALUE",
271
271
  "ERR_BAD_OPTION",
@@ -281,32 +281,32 @@ const Ur = C.prototype, Br = {};
281
281
  "ERR_INVALID_URL"
282
282
  // eslint-disable-next-line func-names
283
283
  ].forEach((t) => {
284
- Br[t] = { value: t };
284
+ $r[t] = { value: t };
285
285
  });
286
- Object.defineProperties(C, Br);
287
- Object.defineProperty(Ur, "isAxiosError", { value: !0 });
288
- C.from = (t, e, r, n, i, o) => {
289
- const s = Object.create(Ur);
286
+ Object.defineProperties(b, $r);
287
+ Object.defineProperty(jr, "isAxiosError", { value: !0 });
288
+ b.from = (t, e, r, n, i, o) => {
289
+ const s = Object.create(jr);
290
290
  return d.toFlatObject(t, s, function(l) {
291
291
  return l !== Error.prototype;
292
- }, (a) => a !== "isAxiosError"), C.call(s, t.message, e, r, n, i), s.cause = t, s.name = t.name, o && Object.assign(s, o), s;
292
+ }, (a) => a !== "isAxiosError"), b.call(s, t.message, e, r, n, i), s.cause = t, s.name = t.name, o && Object.assign(s, o), s;
293
293
  };
294
- const Di = null;
294
+ const Ni = null;
295
295
  function mt(t) {
296
296
  return d.isPlainObject(t) || d.isArray(t);
297
297
  }
298
- function jr(t) {
298
+ function Hr(t) {
299
299
  return d.endsWith(t, "[]") ? t.slice(0, -2) : t;
300
300
  }
301
- function Kt(t, e, r) {
301
+ function Yt(t, e, r) {
302
302
  return t ? t.concat(e).map(function(i, o) {
303
- return i = jr(i), !r && o ? "[" + i + "]" : i;
303
+ return i = Hr(i), !r && o ? "[" + i + "]" : i;
304
304
  }).join(r ? "." : "") : e;
305
305
  }
306
- function Li(t) {
306
+ function Ui(t) {
307
307
  return d.isArray(t) && !t.some(mt);
308
308
  }
309
- const ki = d.toFlatObject(d, {}, null, function(e) {
309
+ const Bi = d.toFlatObject(d, {}, null, function(e) {
310
310
  return /^is[A-Z]/.test(e);
311
311
  });
312
312
  function Ye(t, e, r) {
@@ -328,7 +328,7 @@ function Ye(t, e, r) {
328
328
  if (d.isDate(h))
329
329
  return h.toISOString();
330
330
  if (!l && d.isBlob(h))
331
- throw new C("Blob is not supported. Use a Buffer instead.");
331
+ throw new b("Blob is not supported. Use a Buffer instead.");
332
332
  return d.isArrayBuffer(h) || d.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
333
333
  }
334
334
  function u(h, y, T) {
@@ -336,18 +336,18 @@ function Ye(t, e, r) {
336
336
  if (h && !T && typeof h == "object") {
337
337
  if (d.endsWith(y, "{}"))
338
338
  y = n ? y : y.slice(0, -2), h = JSON.stringify(h);
339
- else if (d.isArray(h) && Li(h) || (d.isFileList(h) || d.endsWith(y, "[]")) && (S = d.toArray(h)))
340
- return y = jr(y), S.forEach(function(x, H) {
339
+ else if (d.isArray(h) && Ui(h) || (d.isFileList(h) || d.endsWith(y, "[]")) && (S = d.toArray(h)))
340
+ return y = Hr(y), S.forEach(function(x, G) {
341
341
  !(d.isUndefined(x) || x === null) && e.append(
342
342
  // eslint-disable-next-line no-nested-ternary
343
- s === !0 ? Kt([y], H, o) : s === null ? y : y + "[]",
343
+ s === !0 ? Yt([y], G, o) : s === null ? y : y + "[]",
344
344
  c(x)
345
345
  );
346
346
  }), !1;
347
347
  }
348
- return mt(h) ? !0 : (e.append(Kt(T, y, o), c(h)), !1);
348
+ return mt(h) ? !0 : (e.append(Yt(T, y, o), c(h)), !1);
349
349
  }
350
- const f = [], p = Object.assign(ki, {
350
+ const f = [], p = Object.assign(Bi, {
351
351
  defaultVisitor: u,
352
352
  convertValue: c,
353
353
  isVisitable: mt
@@ -371,7 +371,7 @@ function Ye(t, e, r) {
371
371
  throw new TypeError("data must be an object");
372
372
  return m(t), e;
373
373
  }
374
- function Qt(t) {
374
+ function Xt(t) {
375
375
  const e = {
376
376
  "!": "%21",
377
377
  "'": "%27",
@@ -385,36 +385,36 @@ function Qt(t) {
385
385
  return e[n];
386
386
  });
387
387
  }
388
- function Lt(t, e) {
388
+ function Mt(t, e) {
389
389
  this._pairs = [], t && Ye(t, this, e);
390
390
  }
391
- const $r = Lt.prototype;
392
- $r.append = function(e, r) {
391
+ const wr = Mt.prototype;
392
+ wr.append = function(e, r) {
393
393
  this._pairs.push([e, r]);
394
394
  };
395
- $r.toString = function(e) {
395
+ wr.toString = function(e) {
396
396
  const r = e ? function(n) {
397
- return e.call(this, n, Qt);
398
- } : Qt;
397
+ return e.call(this, n, Xt);
398
+ } : Xt;
399
399
  return this._pairs.map(function(i) {
400
400
  return r(i[0]) + "=" + r(i[1]);
401
401
  }, "").join("&");
402
402
  };
403
- function Mi(t) {
403
+ function ji(t) {
404
404
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
405
405
  }
406
- function wr(t, e, r) {
406
+ function Gr(t, e, r) {
407
407
  if (!e)
408
408
  return t;
409
- const n = r && r.encode || Mi, i = r && r.serialize;
409
+ const n = r && r.encode || ji, i = r && r.serialize;
410
410
  let o;
411
- if (i ? o = i(e, r) : o = d.isURLSearchParams(e) ? e.toString() : new Lt(e, r).toString(n), o) {
411
+ if (i ? o = i(e, r) : o = d.isURLSearchParams(e) ? e.toString() : new Mt(e, r).toString(n), o) {
412
412
  const s = t.indexOf("#");
413
413
  s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
414
414
  }
415
415
  return t;
416
416
  }
417
- class Fi {
417
+ class $i {
418
418
  constructor() {
419
419
  this.handlers = [];
420
420
  }
@@ -468,36 +468,36 @@ class Fi {
468
468
  });
469
469
  }
470
470
  }
471
- const Yt = Fi, Hr = {
471
+ const Zt = $i, Vr = {
472
472
  silentJSONParsing: !0,
473
473
  forcedJSONParsing: !0,
474
474
  clarifyTimeoutError: !1
475
- }, Ni = typeof URLSearchParams < "u" ? URLSearchParams : Lt, Ui = typeof FormData < "u" ? FormData : null, Bi = typeof Blob < "u" ? Blob : null, ji = (() => {
475
+ }, Hi = typeof URLSearchParams < "u" ? URLSearchParams : Mt, wi = typeof FormData < "u" ? FormData : null, Gi = typeof Blob < "u" ? Blob : null, Vi = (() => {
476
476
  let t;
477
477
  return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
478
- })(), $i = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
479
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), U = {
478
+ })(), zi = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
479
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), B = {
480
480
  isBrowser: !0,
481
481
  classes: {
482
- URLSearchParams: Ni,
483
- FormData: Ui,
484
- Blob: Bi
482
+ URLSearchParams: Hi,
483
+ FormData: wi,
484
+ Blob: Gi
485
485
  },
486
- isStandardBrowserEnv: ji,
487
- isStandardBrowserWebWorkerEnv: $i,
486
+ isStandardBrowserEnv: Vi,
487
+ isStandardBrowserWebWorkerEnv: zi,
488
488
  protocols: ["http", "https", "file", "blob", "url", "data"]
489
489
  };
490
- function wi(t, e) {
491
- return Ye(t, new U.classes.URLSearchParams(), Object.assign({
490
+ function Ji(t, e) {
491
+ return Ye(t, new B.classes.URLSearchParams(), Object.assign({
492
492
  visitor: function(r, n, i, o) {
493
- return U.isNode && d.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
493
+ return B.isNode && d.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
494
494
  }
495
495
  }, e));
496
496
  }
497
- function Hi(t) {
497
+ function Wi(t) {
498
498
  return d.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
499
499
  }
500
- function Gi(t) {
500
+ function qi(t) {
501
501
  const e = {}, r = Object.keys(t);
502
502
  let n;
503
503
  const i = r.length;
@@ -506,24 +506,24 @@ function Gi(t) {
506
506
  o = r[n], e[o] = t[o];
507
507
  return e;
508
508
  }
509
- function Gr(t) {
509
+ function zr(t) {
510
510
  function e(r, n, i, o) {
511
511
  let s = r[o++];
512
512
  const a = Number.isFinite(+s), l = o >= r.length;
513
- return s = !s && d.isArray(i) ? i.length : s, l ? (d.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !a) : ((!i[s] || !d.isObject(i[s])) && (i[s] = []), e(r, n, i[s], o) && d.isArray(i[s]) && (i[s] = Gi(i[s])), !a);
513
+ return s = !s && d.isArray(i) ? i.length : s, l ? (d.hasOwnProp(i, s) ? i[s] = [i[s], n] : i[s] = n, !a) : ((!i[s] || !d.isObject(i[s])) && (i[s] = []), e(r, n, i[s], o) && d.isArray(i[s]) && (i[s] = qi(i[s])), !a);
514
514
  }
515
515
  if (d.isFormData(t) && d.isFunction(t.entries)) {
516
516
  const r = {};
517
517
  return d.forEachEntry(t, (n, i) => {
518
- e(Hi(n), i, r, 0);
518
+ e(Wi(n), i, r, 0);
519
519
  }), r;
520
520
  }
521
521
  return null;
522
522
  }
523
- const zi = {
523
+ const Ki = {
524
524
  "Content-Type": void 0
525
525
  };
526
- function Vi(t, e, r) {
526
+ function Qi(t, e, r) {
527
527
  if (d.isString(t))
528
528
  try {
529
529
  return (e || JSON.parse)(t), d.trim(t);
@@ -534,12 +534,12 @@ function Vi(t, e, r) {
534
534
  return (r || JSON.stringify)(t);
535
535
  }
536
536
  const Xe = {
537
- transitional: Hr,
537
+ transitional: Vr,
538
538
  adapter: ["xhr", "http"],
539
539
  transformRequest: [function(e, r) {
540
540
  const n = r.getContentType() || "", i = n.indexOf("application/json") > -1, o = d.isObject(e);
541
541
  if (o && d.isHTMLForm(e) && (e = new FormData(e)), d.isFormData(e))
542
- return i && i ? JSON.stringify(Gr(e)) : e;
542
+ return i && i ? JSON.stringify(zr(e)) : e;
543
543
  if (d.isArrayBuffer(e) || d.isBuffer(e) || d.isStream(e) || d.isFile(e) || d.isBlob(e))
544
544
  return e;
545
545
  if (d.isArrayBufferView(e))
@@ -549,7 +549,7 @@ const Xe = {
549
549
  let a;
550
550
  if (o) {
551
551
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
552
- return wi(e, this.formSerializer).toString();
552
+ return Ji(e, this.formSerializer).toString();
553
553
  if ((a = d.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
554
554
  const l = this.env && this.env.FormData;
555
555
  return Ye(
@@ -559,7 +559,7 @@ const Xe = {
559
559
  );
560
560
  }
561
561
  }
562
- return o || i ? (r.setContentType("application/json", !1), Vi(e)) : e;
562
+ return o || i ? (r.setContentType("application/json", !1), Qi(e)) : e;
563
563
  }],
564
564
  transformResponse: [function(e) {
565
565
  const r = this.transitional || Xe.transitional, n = r && r.forcedJSONParsing, i = this.responseType === "json";
@@ -569,7 +569,7 @@ const Xe = {
569
569
  return JSON.parse(e);
570
570
  } catch (a) {
571
571
  if (s)
572
- throw a.name === "SyntaxError" ? C.from(a, C.ERR_BAD_RESPONSE, this, null, this.response) : a;
572
+ throw a.name === "SyntaxError" ? b.from(a, b.ERR_BAD_RESPONSE, this, null, this.response) : a;
573
573
  }
574
574
  }
575
575
  return e;
@@ -584,8 +584,8 @@ const Xe = {
584
584
  maxContentLength: -1,
585
585
  maxBodyLength: -1,
586
586
  env: {
587
- FormData: U.classes.FormData,
588
- Blob: U.classes.Blob
587
+ FormData: B.classes.FormData,
588
+ Blob: B.classes.Blob
589
589
  },
590
590
  validateStatus: function(e) {
591
591
  return e >= 200 && e < 300;
@@ -600,9 +600,9 @@ d.forEach(["delete", "get", "head"], function(e) {
600
600
  Xe.headers[e] = {};
601
601
  });
602
602
  d.forEach(["post", "put", "patch"], function(e) {
603
- Xe.headers[e] = d.merge(zi);
603
+ Xe.headers[e] = d.merge(Ki);
604
604
  });
605
- const kt = Xe, Wi = d.toObjectSet([
605
+ const Ft = Xe, Yi = d.toObjectSet([
606
606
  "age",
607
607
  "authorization",
608
608
  "content-length",
@@ -620,28 +620,28 @@ const kt = Xe, Wi = d.toObjectSet([
620
620
  "referer",
621
621
  "retry-after",
622
622
  "user-agent"
623
- ]), Ji = (t) => {
623
+ ]), Xi = (t) => {
624
624
  const e = {};
625
625
  let r, n, i;
626
626
  return t && t.split(`
627
627
  `).forEach(function(s) {
628
- i = s.indexOf(":"), r = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!r || e[r] && Wi[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
628
+ i = s.indexOf(":"), r = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim(), !(!r || e[r] && Yi[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
629
629
  }), e;
630
- }, Xt = Symbol("internals");
631
- function ge(t) {
630
+ }, er = Symbol("internals");
631
+ function Se(t) {
632
632
  return t && String(t).trim().toLowerCase();
633
633
  }
634
- function Le(t) {
635
- return t === !1 || t == null ? t : d.isArray(t) ? t.map(Le) : String(t);
634
+ function ke(t) {
635
+ return t === !1 || t == null ? t : d.isArray(t) ? t.map(ke) : String(t);
636
636
  }
637
- function qi(t) {
637
+ function Zi(t) {
638
638
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
639
639
  let n;
640
640
  for (; n = r.exec(t); )
641
641
  e[n[1]] = n[2];
642
642
  return e;
643
643
  }
644
- const Ki = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
644
+ const eo = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
645
645
  function tt(t, e, r, n, i) {
646
646
  if (d.isFunction(n))
647
647
  return n.call(this, e, r);
@@ -652,10 +652,10 @@ function tt(t, e, r, n, i) {
652
652
  return n.test(e);
653
653
  }
654
654
  }
655
- function Qi(t) {
655
+ function to(t) {
656
656
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
657
657
  }
658
- function Yi(t, e) {
658
+ function ro(t, e) {
659
659
  const r = d.toCamelCase(" " + e);
660
660
  ["get", "set", "has"].forEach((n) => {
661
661
  Object.defineProperty(t, n + r, {
@@ -673,24 +673,24 @@ class Ze {
673
673
  set(e, r, n) {
674
674
  const i = this;
675
675
  function o(a, l, c) {
676
- const u = ge(l);
676
+ const u = Se(l);
677
677
  if (!u)
678
678
  throw new Error("header name must be a non-empty string");
679
679
  const f = d.findKey(i, u);
680
- (!f || i[f] === void 0 || c === !0 || c === void 0 && i[f] !== !1) && (i[f || l] = Le(a));
680
+ (!f || i[f] === void 0 || c === !0 || c === void 0 && i[f] !== !1) && (i[f || l] = ke(a));
681
681
  }
682
682
  const s = (a, l) => d.forEach(a, (c, u) => o(c, u, l));
683
- return d.isPlainObject(e) || e instanceof this.constructor ? s(e, r) : d.isString(e) && (e = e.trim()) && !Ki(e) ? s(Ji(e), r) : e != null && o(r, e, n), this;
683
+ return d.isPlainObject(e) || e instanceof this.constructor ? s(e, r) : d.isString(e) && (e = e.trim()) && !eo(e) ? s(Xi(e), r) : e != null && o(r, e, n), this;
684
684
  }
685
685
  get(e, r) {
686
- if (e = ge(e), e) {
686
+ if (e = Se(e), e) {
687
687
  const n = d.findKey(this, e);
688
688
  if (n) {
689
689
  const i = this[n];
690
690
  if (!r)
691
691
  return i;
692
692
  if (r === !0)
693
- return qi(i);
693
+ return Zi(i);
694
694
  if (d.isFunction(r))
695
695
  return r.call(this, i, n);
696
696
  if (d.isRegExp(r))
@@ -700,7 +700,7 @@ class Ze {
700
700
  }
701
701
  }
702
702
  has(e, r) {
703
- if (e = ge(e), e) {
703
+ if (e = Se(e), e) {
704
704
  const n = d.findKey(this, e);
705
705
  return !!(n && this[n] !== void 0 && (!r || tt(this, this[n], n, r)));
706
706
  }
@@ -710,7 +710,7 @@ class Ze {
710
710
  const n = this;
711
711
  let i = !1;
712
712
  function o(s) {
713
- if (s = ge(s), s) {
713
+ if (s = Se(s), s) {
714
714
  const a = d.findKey(n, s);
715
715
  a && (!r || tt(n, n[a], a, r)) && (delete n[a], i = !0);
716
716
  }
@@ -731,11 +731,11 @@ class Ze {
731
731
  return d.forEach(this, (i, o) => {
732
732
  const s = d.findKey(n, o);
733
733
  if (s) {
734
- r[s] = Le(i), delete r[o];
734
+ r[s] = ke(i), delete r[o];
735
735
  return;
736
736
  }
737
- const a = e ? Qi(o) : String(o).trim();
738
- a !== o && delete r[o], r[a] = Le(i), n[a] = !0;
737
+ const a = e ? to(o) : String(o).trim();
738
+ a !== o && delete r[o], r[a] = ke(i), n[a] = !0;
739
739
  }), this;
740
740
  }
741
741
  concat(...e) {
@@ -765,12 +765,12 @@ class Ze {
765
765
  return r.forEach((i) => n.set(i)), n;
766
766
  }
767
767
  static accessor(e) {
768
- const n = (this[Xt] = this[Xt] = {
768
+ const n = (this[er] = this[er] = {
769
769
  accessors: {}
770
770
  }).accessors, i = this.prototype;
771
771
  function o(s) {
772
- const a = ge(s);
773
- n[a] || (Yi(i, s), n[a] = !0);
772
+ const a = Se(s);
773
+ n[a] || (ro(i, s), n[a] = !0);
774
774
  }
775
775
  return d.isArray(e) ? e.forEach(o) : o(e), this;
776
776
  }
@@ -780,32 +780,32 @@ d.freezeMethods(Ze.prototype);
780
780
  d.freezeMethods(Ze);
781
781
  const w = Ze;
782
782
  function rt(t, e) {
783
- const r = this || kt, n = e || r, i = w.from(n.headers);
783
+ const r = this || Ft, n = e || r, i = w.from(n.headers);
784
784
  let o = n.data;
785
785
  return d.forEach(t, function(a) {
786
786
  o = a.call(r, o, i.normalize(), e ? e.status : void 0);
787
787
  }), i.normalize(), o;
788
788
  }
789
- function zr(t) {
789
+ function Jr(t) {
790
790
  return !!(t && t.__CANCEL__);
791
791
  }
792
- function Ee(t, e, r) {
793
- C.call(this, t ?? "canceled", C.ERR_CANCELED, e, r), this.name = "CanceledError";
792
+ function Pe(t, e, r) {
793
+ b.call(this, t ?? "canceled", b.ERR_CANCELED, e, r), this.name = "CanceledError";
794
794
  }
795
- d.inherits(Ee, C, {
795
+ d.inherits(Pe, b, {
796
796
  __CANCEL__: !0
797
797
  });
798
- function Xi(t, e, r) {
798
+ function no(t, e, r) {
799
799
  const n = r.config.validateStatus;
800
- !r.status || !n || n(r.status) ? t(r) : e(new C(
800
+ !r.status || !n || n(r.status) ? t(r) : e(new b(
801
801
  "Request failed with status code " + r.status,
802
- [C.ERR_BAD_REQUEST, C.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
802
+ [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
803
803
  r.config,
804
804
  r.request,
805
805
  r
806
806
  ));
807
807
  }
808
- const Zi = U.isStandardBrowserEnv ? (
808
+ const io = B.isStandardBrowserEnv ? (
809
809
  // Standard browser envs support document.cookie
810
810
  function() {
811
811
  return {
@@ -836,16 +836,16 @@ const Zi = U.isStandardBrowserEnv ? (
836
836
  };
837
837
  }()
838
838
  );
839
- function eo(t) {
839
+ function oo(t) {
840
840
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
841
841
  }
842
- function to(t, e) {
842
+ function so(t, e) {
843
843
  return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
844
844
  }
845
- function Vr(t, e) {
846
- return t && !eo(e) ? to(t, e) : e;
845
+ function Wr(t, e) {
846
+ return t && !oo(e) ? so(t, e) : e;
847
847
  }
848
- const ro = U.isStandardBrowserEnv ? (
848
+ const ao = B.isStandardBrowserEnv ? (
849
849
  // Standard browser envs have full support of the APIs needed to test
850
850
  // whether the request URL is of the same origin as current location.
851
851
  function() {
@@ -877,11 +877,11 @@ const ro = U.isStandardBrowserEnv ? (
877
877
  };
878
878
  }()
879
879
  );
880
- function no(t) {
880
+ function co(t) {
881
881
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
882
882
  return e && e[1] || "";
883
883
  }
884
- function io(t, e) {
884
+ function lo(t, e) {
885
885
  t = t || 10;
886
886
  const r = new Array(t), n = new Array(t);
887
887
  let i = 0, o = 0, s;
@@ -897,9 +897,9 @@ function io(t, e) {
897
897
  return m ? Math.round(p * 1e3 / m) : void 0;
898
898
  };
899
899
  }
900
- function Zt(t, e) {
900
+ function tr(t, e) {
901
901
  let r = 0;
902
- const n = io(50, 250);
902
+ const n = lo(50, 250);
903
903
  return (i) => {
904
904
  const o = i.loaded, s = i.lengthComputable ? i.total : void 0, a = o - r, l = n(a), c = o <= s;
905
905
  r = o;
@@ -915,7 +915,7 @@ function Zt(t, e) {
915
915
  u[e ? "download" : "upload"] = !0, t(u);
916
916
  };
917
917
  }
918
- const oo = typeof XMLHttpRequest < "u", so = oo && function(t) {
918
+ const uo = typeof XMLHttpRequest < "u", fo = uo && function(t) {
919
919
  return new Promise(function(r, n) {
920
920
  let i = t.data;
921
921
  const o = w.from(t.headers).normalize(), s = t.responseType;
@@ -923,14 +923,14 @@ const oo = typeof XMLHttpRequest < "u", so = oo && function(t) {
923
923
  function l() {
924
924
  t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
925
925
  }
926
- d.isFormData(i) && (U.isStandardBrowserEnv || U.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
926
+ d.isFormData(i) && (B.isStandardBrowserEnv || B.isStandardBrowserWebWorkerEnv ? o.setContentType(!1) : o.setContentType("multipart/form-data;", !1));
927
927
  let c = new XMLHttpRequest();
928
928
  if (t.auth) {
929
929
  const m = t.auth.username || "", h = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
930
930
  o.set("Authorization", "Basic " + btoa(m + ":" + h));
931
931
  }
932
- const u = Vr(t.baseURL, t.url);
933
- c.open(t.method.toUpperCase(), wr(u, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
932
+ const u = Wr(t.baseURL, t.url);
933
+ c.open(t.method.toUpperCase(), Gr(u, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
934
934
  function f() {
935
935
  if (!c)
936
936
  return;
@@ -944,7 +944,7 @@ const oo = typeof XMLHttpRequest < "u", so = oo && function(t) {
944
944
  config: t,
945
945
  request: c
946
946
  };
947
- Xi(function(S) {
947
+ no(function(S) {
948
948
  r(S), l();
949
949
  }, function(S) {
950
950
  n(S), l();
@@ -953,39 +953,39 @@ const oo = typeof XMLHttpRequest < "u", so = oo && function(t) {
953
953
  if ("onloadend" in c ? c.onloadend = f : c.onreadystatechange = function() {
954
954
  !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(f);
955
955
  }, c.onabort = function() {
956
- c && (n(new C("Request aborted", C.ECONNABORTED, t, c)), c = null);
956
+ c && (n(new b("Request aborted", b.ECONNABORTED, t, c)), c = null);
957
957
  }, c.onerror = function() {
958
- n(new C("Network Error", C.ERR_NETWORK, t, c)), c = null;
958
+ n(new b("Network Error", b.ERR_NETWORK, t, c)), c = null;
959
959
  }, c.ontimeout = function() {
960
960
  let h = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
961
- const y = t.transitional || Hr;
962
- t.timeoutErrorMessage && (h = t.timeoutErrorMessage), n(new C(
961
+ const y = t.transitional || Vr;
962
+ t.timeoutErrorMessage && (h = t.timeoutErrorMessage), n(new b(
963
963
  h,
964
- y.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
964
+ y.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
965
965
  t,
966
966
  c
967
967
  )), c = null;
968
- }, U.isStandardBrowserEnv) {
969
- const m = (t.withCredentials || ro(u)) && t.xsrfCookieName && Zi.read(t.xsrfCookieName);
968
+ }, B.isStandardBrowserEnv) {
969
+ const m = (t.withCredentials || ao(u)) && t.xsrfCookieName && io.read(t.xsrfCookieName);
970
970
  m && o.set(t.xsrfHeaderName, m);
971
971
  }
972
972
  i === void 0 && o.setContentType(null), "setRequestHeader" in c && d.forEach(o.toJSON(), function(h, y) {
973
973
  c.setRequestHeader(y, h);
974
- }), d.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), s && s !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", Zt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Zt(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (m) => {
975
- c && (n(!m || m.type ? new Ee(null, t, c) : m), c.abort(), c = null);
974
+ }), d.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), s && s !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", tr(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", tr(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (m) => {
975
+ c && (n(!m || m.type ? new Pe(null, t, c) : m), c.abort(), c = null);
976
976
  }, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
977
- const p = no(u);
978
- if (p && U.protocols.indexOf(p) === -1) {
979
- n(new C("Unsupported protocol " + p + ":", C.ERR_BAD_REQUEST, t));
977
+ const p = co(u);
978
+ if (p && B.protocols.indexOf(p) === -1) {
979
+ n(new b("Unsupported protocol " + p + ":", b.ERR_BAD_REQUEST, t));
980
980
  return;
981
981
  }
982
982
  c.send(i || null);
983
983
  });
984
- }, ke = {
985
- http: Di,
986
- xhr: so
984
+ }, Me = {
985
+ http: Ni,
986
+ xhr: fo
987
987
  };
988
- d.forEach(ke, (t, e) => {
988
+ d.forEach(Me, (t, e) => {
989
989
  if (t) {
990
990
  try {
991
991
  Object.defineProperty(t, "name", { value: e });
@@ -994,50 +994,50 @@ d.forEach(ke, (t, e) => {
994
994
  Object.defineProperty(t, "adapterName", { value: e });
995
995
  }
996
996
  });
997
- const ao = {
997
+ const po = {
998
998
  getAdapter: (t) => {
999
999
  t = d.isArray(t) ? t : [t];
1000
1000
  const { length: e } = t;
1001
1001
  let r, n;
1002
- for (let i = 0; i < e && (r = t[i], !(n = d.isString(r) ? ke[r.toLowerCase()] : r)); i++)
1002
+ for (let i = 0; i < e && (r = t[i], !(n = d.isString(r) ? Me[r.toLowerCase()] : r)); i++)
1003
1003
  ;
1004
1004
  if (!n)
1005
- throw n === !1 ? new C(
1005
+ throw n === !1 ? new b(
1006
1006
  `Adapter ${r} is not supported by the environment`,
1007
1007
  "ERR_NOT_SUPPORT"
1008
1008
  ) : new Error(
1009
- d.hasOwnProp(ke, r) ? `Adapter '${r}' is not available in the build` : `Unknown adapter '${r}'`
1009
+ d.hasOwnProp(Me, r) ? `Adapter '${r}' is not available in the build` : `Unknown adapter '${r}'`
1010
1010
  );
1011
1011
  if (!d.isFunction(n))
1012
1012
  throw new TypeError("adapter is not a function");
1013
1013
  return n;
1014
1014
  },
1015
- adapters: ke
1015
+ adapters: Me
1016
1016
  };
1017
1017
  function nt(t) {
1018
1018
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1019
- throw new Ee(null, t);
1019
+ throw new Pe(null, t);
1020
1020
  }
1021
- function er(t) {
1021
+ function rr(t) {
1022
1022
  return nt(t), t.headers = w.from(t.headers), t.data = rt.call(
1023
1023
  t,
1024
1024
  t.transformRequest
1025
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ao.getAdapter(t.adapter || kt.adapter)(t).then(function(n) {
1025
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), po.getAdapter(t.adapter || Ft.adapter)(t).then(function(n) {
1026
1026
  return nt(t), n.data = rt.call(
1027
1027
  t,
1028
1028
  t.transformResponse,
1029
1029
  n
1030
1030
  ), n.headers = w.from(n.headers), n;
1031
1031
  }, function(n) {
1032
- return zr(n) || (nt(t), n && n.response && (n.response.data = rt.call(
1032
+ return Jr(n) || (nt(t), n && n.response && (n.response.data = rt.call(
1033
1033
  t,
1034
1034
  t.transformResponse,
1035
1035
  n.response
1036
1036
  ), n.response.headers = w.from(n.response.headers))), Promise.reject(n);
1037
1037
  });
1038
1038
  }
1039
- const tr = (t) => t instanceof w ? t.toJSON() : t;
1040
- function le(t, e) {
1039
+ const nr = (t) => t instanceof w ? t.toJSON() : t;
1040
+ function ue(t, e) {
1041
1041
  e = e || {};
1042
1042
  const r = {};
1043
1043
  function n(c, u, f) {
@@ -1095,31 +1095,31 @@ function le(t, e) {
1095
1095
  socketPath: s,
1096
1096
  responseEncoding: s,
1097
1097
  validateStatus: a,
1098
- headers: (c, u) => i(tr(c), tr(u), !0)
1098
+ headers: (c, u) => i(nr(c), nr(u), !0)
1099
1099
  };
1100
1100
  return d.forEach(Object.keys(Object.assign({}, t, e)), function(u) {
1101
1101
  const f = l[u] || i, p = f(t[u], e[u], u);
1102
1102
  d.isUndefined(p) && f !== a || (r[u] = p);
1103
1103
  }), r;
1104
1104
  }
1105
- const Wr = "1.4.0", Mt = {};
1105
+ const qr = "1.4.0", Nt = {};
1106
1106
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1107
- Mt[t] = function(n) {
1107
+ Nt[t] = function(n) {
1108
1108
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1109
1109
  };
1110
1110
  });
1111
- const rr = {};
1112
- Mt.transitional = function(e, r, n) {
1111
+ const ir = {};
1112
+ Nt.transitional = function(e, r, n) {
1113
1113
  function i(o, s) {
1114
- return "[Axios v" + Wr + "] Transitional option '" + o + "'" + s + (n ? ". " + n : "");
1114
+ return "[Axios v" + qr + "] Transitional option '" + o + "'" + s + (n ? ". " + n : "");
1115
1115
  }
1116
1116
  return (o, s, a) => {
1117
1117
  if (e === !1)
1118
- throw new C(
1118
+ throw new b(
1119
1119
  i(s, " has been removed" + (r ? " in " + r : "")),
1120
- C.ERR_DEPRECATED
1120
+ b.ERR_DEPRECATED
1121
1121
  );
1122
- return r && !rr[s] && (rr[s] = !0, console.warn(
1122
+ return r && !ir[s] && (ir[s] = !0, console.warn(
1123
1123
  i(
1124
1124
  s,
1125
1125
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -1127,9 +1127,9 @@ Mt.transitional = function(e, r, n) {
1127
1127
  )), e ? e(o, s, a) : !0;
1128
1128
  };
1129
1129
  };
1130
- function co(t, e, r) {
1130
+ function ho(t, e, r) {
1131
1131
  if (typeof t != "object")
1132
- throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
1132
+ throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
1133
1133
  const n = Object.keys(t);
1134
1134
  let i = n.length;
1135
1135
  for (; i-- > 0; ) {
@@ -1137,22 +1137,22 @@ function co(t, e, r) {
1137
1137
  if (s) {
1138
1138
  const a = t[o], l = a === void 0 || s(a, o, t);
1139
1139
  if (l !== !0)
1140
- throw new C("option " + o + " must be " + l, C.ERR_BAD_OPTION_VALUE);
1140
+ throw new b("option " + o + " must be " + l, b.ERR_BAD_OPTION_VALUE);
1141
1141
  continue;
1142
1142
  }
1143
1143
  if (r !== !0)
1144
- throw new C("Unknown option " + o, C.ERR_BAD_OPTION);
1144
+ throw new b("Unknown option " + o, b.ERR_BAD_OPTION);
1145
1145
  }
1146
1146
  }
1147
1147
  const yt = {
1148
- assertOptions: co,
1149
- validators: Mt
1148
+ assertOptions: ho,
1149
+ validators: Nt
1150
1150
  }, z = yt.validators;
1151
1151
  class Ge {
1152
1152
  constructor(e) {
1153
1153
  this.defaults = e, this.interceptors = {
1154
- request: new Yt(),
1155
- response: new Yt()
1154
+ request: new Zt(),
1155
+ response: new Zt()
1156
1156
  };
1157
1157
  }
1158
1158
  /**
@@ -1164,7 +1164,7 @@ class Ge {
1164
1164
  * @returns {Promise} The Promise to be fulfilled
1165
1165
  */
1166
1166
  request(e, r) {
1167
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = le(this.defaults, r);
1167
+ typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = ue(this.defaults, r);
1168
1168
  const { transitional: n, paramsSerializer: i, headers: o } = r;
1169
1169
  n !== void 0 && yt.assertOptions(n, {
1170
1170
  silentJSONParsing: z.transitional(z.boolean),
@@ -1197,7 +1197,7 @@ class Ge {
1197
1197
  });
1198
1198
  let u, f = 0, p;
1199
1199
  if (!l) {
1200
- const h = [er.bind(this), void 0];
1200
+ const h = [rr.bind(this), void 0];
1201
1201
  for (h.unshift.apply(h, a), h.push.apply(h, c), p = h.length, u = Promise.resolve(r); f < p; )
1202
1202
  u = u.then(h[f++], h[f++]);
1203
1203
  return u;
@@ -1214,7 +1214,7 @@ class Ge {
1214
1214
  }
1215
1215
  }
1216
1216
  try {
1217
- u = er.call(this, m);
1217
+ u = rr.call(this, m);
1218
1218
  } catch (h) {
1219
1219
  return Promise.reject(h);
1220
1220
  }
@@ -1223,14 +1223,14 @@ class Ge {
1223
1223
  return u;
1224
1224
  }
1225
1225
  getUri(e) {
1226
- e = le(this.defaults, e);
1227
- const r = Vr(e.baseURL, e.url);
1228
- return wr(r, e.params, e.paramsSerializer);
1226
+ e = ue(this.defaults, e);
1227
+ const r = Wr(e.baseURL, e.url);
1228
+ return Gr(r, e.params, e.paramsSerializer);
1229
1229
  }
1230
1230
  }
1231
1231
  d.forEach(["delete", "get", "head", "options"], function(e) {
1232
1232
  Ge.prototype[e] = function(r, n) {
1233
- return this.request(le(n || {}, {
1233
+ return this.request(ue(n || {}, {
1234
1234
  method: e,
1235
1235
  url: r,
1236
1236
  data: (n || {}).data
@@ -1240,7 +1240,7 @@ d.forEach(["delete", "get", "head", "options"], function(e) {
1240
1240
  d.forEach(["post", "put", "patch"], function(e) {
1241
1241
  function r(n) {
1242
1242
  return function(o, s, a) {
1243
- return this.request(le(a || {}, {
1243
+ return this.request(ue(a || {}, {
1244
1244
  method: e,
1245
1245
  headers: n ? {
1246
1246
  "Content-Type": "multipart/form-data"
@@ -1252,8 +1252,8 @@ d.forEach(["post", "put", "patch"], function(e) {
1252
1252
  }
1253
1253
  Ge.prototype[e] = r(), Ge.prototype[e + "Form"] = r(!0);
1254
1254
  });
1255
- const Me = Ge;
1256
- class Ft {
1255
+ const Fe = Ge;
1256
+ class Ut {
1257
1257
  constructor(e) {
1258
1258
  if (typeof e != "function")
1259
1259
  throw new TypeError("executor must be a function.");
@@ -1278,7 +1278,7 @@ class Ft {
1278
1278
  n.unsubscribe(o);
1279
1279
  }, s;
1280
1280
  }, e(function(o, s, a) {
1281
- n.reason || (n.reason = new Ee(o, s, a), r(n.reason));
1281
+ n.reason || (n.reason = new Pe(o, s, a), r(n.reason));
1282
1282
  });
1283
1283
  }
1284
1284
  /**
@@ -1314,20 +1314,20 @@ class Ft {
1314
1314
  static source() {
1315
1315
  let e;
1316
1316
  return {
1317
- token: new Ft(function(i) {
1317
+ token: new Ut(function(i) {
1318
1318
  e = i;
1319
1319
  }),
1320
1320
  cancel: e
1321
1321
  };
1322
1322
  }
1323
1323
  }
1324
- const lo = Ft;
1325
- function uo(t) {
1324
+ const mo = Ut;
1325
+ function yo(t) {
1326
1326
  return function(r) {
1327
1327
  return t.apply(null, r);
1328
1328
  };
1329
1329
  }
1330
- function fo(t) {
1330
+ function go(t) {
1331
1331
  return d.isObject(t) && t.isAxiosError === !0;
1332
1332
  }
1333
1333
  const gt = {
@@ -1398,37 +1398,37 @@ const gt = {
1398
1398
  Object.entries(gt).forEach(([t, e]) => {
1399
1399
  gt[e] = t;
1400
1400
  });
1401
- const po = gt;
1402
- function Jr(t) {
1403
- const e = new Me(t), r = _r(Me.prototype.request, e);
1404
- return d.extend(r, Me.prototype, e, { allOwnKeys: !0 }), d.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1405
- return Jr(le(t, i));
1401
+ const So = gt;
1402
+ function Kr(t) {
1403
+ const e = new Fe(t), r = xr(Fe.prototype.request, e);
1404
+ return d.extend(r, Fe.prototype, e, { allOwnKeys: !0 }), d.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1405
+ return Kr(ue(t, i));
1406
1406
  }, r;
1407
1407
  }
1408
- const E = Jr(kt);
1409
- E.Axios = Me;
1410
- E.CanceledError = Ee;
1411
- E.CancelToken = lo;
1412
- E.isCancel = zr;
1413
- E.VERSION = Wr;
1408
+ const E = Kr(Ft);
1409
+ E.Axios = Fe;
1410
+ E.CanceledError = Pe;
1411
+ E.CancelToken = mo;
1412
+ E.isCancel = Jr;
1413
+ E.VERSION = qr;
1414
1414
  E.toFormData = Ye;
1415
- E.AxiosError = C;
1415
+ E.AxiosError = b;
1416
1416
  E.Cancel = E.CanceledError;
1417
1417
  E.all = function(e) {
1418
1418
  return Promise.all(e);
1419
1419
  };
1420
- E.spread = uo;
1421
- E.isAxiosError = fo;
1422
- E.mergeConfig = le;
1420
+ E.spread = yo;
1421
+ E.isAxiosError = go;
1422
+ E.mergeConfig = ue;
1423
1423
  E.AxiosHeaders = w;
1424
- E.formToJSON = (t) => Gr(d.isHTMLForm(t) ? new FormData(t) : t);
1425
- E.HttpStatusCode = po;
1424
+ E.formToJSON = (t) => zr(d.isHTMLForm(t) ? new FormData(t) : t);
1425
+ E.HttpStatusCode = So;
1426
1426
  E.default = E;
1427
- const ho = E;
1428
- function qr(t) {
1427
+ const vo = E;
1428
+ function Qr(t) {
1429
1429
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1430
1430
  }
1431
- function mo(t) {
1431
+ function Co(t) {
1432
1432
  if (t.__esModule)
1433
1433
  return t;
1434
1434
  var e = t.default;
@@ -1449,7 +1449,7 @@ function mo(t) {
1449
1449
  });
1450
1450
  }), r;
1451
1451
  }
1452
- var yo = function() {
1452
+ var bo = function() {
1453
1453
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1454
1454
  return !1;
1455
1455
  if (typeof Symbol.iterator == "symbol")
@@ -1472,16 +1472,16 @@ var yo = function() {
1472
1472
  return !1;
1473
1473
  }
1474
1474
  return !0;
1475
- }, nr = typeof Symbol < "u" && Symbol, go = yo, So = function() {
1476
- return typeof nr != "function" || typeof Symbol != "function" || typeof nr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : go();
1477
- }, ir = {
1475
+ }, or = typeof Symbol < "u" && Symbol, Ro = bo, To = function() {
1476
+ return typeof or != "function" || typeof Symbol != "function" || typeof or("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ro();
1477
+ }, sr = {
1478
1478
  foo: {}
1479
- }, vo = Object, Co = function() {
1480
- return { __proto__: ir }.foo === ir.foo && !({ __proto__: null } instanceof vo);
1481
- }, bo = "Function.prototype.bind called on incompatible ", it = Array.prototype.slice, Ro = Object.prototype.toString, To = "[object Function]", Eo = function(e) {
1479
+ }, Eo = Object, Po = function() {
1480
+ return { __proto__: sr }.foo === sr.foo && !({ __proto__: null } instanceof Eo);
1481
+ }, Oo = "Function.prototype.bind called on incompatible ", it = Array.prototype.slice, Ao = Object.prototype.toString, _o = "[object Function]", Io = function(e) {
1482
1482
  var r = this;
1483
- if (typeof r != "function" || Ro.call(r) !== To)
1484
- throw new TypeError(bo + r);
1483
+ if (typeof r != "function" || Ao.call(r) !== _o)
1484
+ throw new TypeError(Oo + r);
1485
1485
  for (var n = it.call(arguments, 1), i, o = function() {
1486
1486
  if (this instanceof i) {
1487
1487
  var u = r.apply(
@@ -1502,48 +1502,48 @@ var yo = function() {
1502
1502
  c.prototype = r.prototype, i.prototype = new c(), c.prototype = null;
1503
1503
  }
1504
1504
  return i;
1505
- }, Po = Eo, Nt = Function.prototype.bind || Po, Oo = Nt, Ao = Oo.call(Function.call, Object.prototype.hasOwnProperty), v, ue = SyntaxError, Kr = Function, ae = TypeError, ot = function(t) {
1505
+ }, Do = Io, Bt = Function.prototype.bind || Do, xo = Bt, Lo = xo.call(Function.call, Object.prototype.hasOwnProperty), C, fe = SyntaxError, Yr = Function, ce = TypeError, ot = function(t) {
1506
1506
  try {
1507
- return Kr('"use strict"; return (' + t + ").constructor;")();
1507
+ return Yr('"use strict"; return (' + t + ").constructor;")();
1508
1508
  } catch {
1509
1509
  }
1510
- }, X = Object.getOwnPropertyDescriptor;
1511
- if (X)
1510
+ }, Z = Object.getOwnPropertyDescriptor;
1511
+ if (Z)
1512
1512
  try {
1513
- X({}, "");
1513
+ Z({}, "");
1514
1514
  } catch {
1515
- X = null;
1515
+ Z = null;
1516
1516
  }
1517
1517
  var st = function() {
1518
- throw new ae();
1519
- }, Io = X ? function() {
1518
+ throw new ce();
1519
+ }, ko = Z ? function() {
1520
1520
  try {
1521
1521
  return arguments.callee, st;
1522
1522
  } catch {
1523
1523
  try {
1524
- return X(arguments, "callee").get;
1524
+ return Z(arguments, "callee").get;
1525
1525
  } catch {
1526
1526
  return st;
1527
1527
  }
1528
1528
  }
1529
- }() : st, oe = So(), _o = Co(), O = Object.getPrototypeOf || (_o ? function(t) {
1529
+ }() : st, se = To(), Mo = Po(), O = Object.getPrototypeOf || (Mo ? function(t) {
1530
1530
  return t.__proto__;
1531
- } : null), se = {}, xo = typeof Uint8Array > "u" || !O ? v : O(Uint8Array), Z = {
1532
- "%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
1531
+ } : null), ae = {}, Fo = typeof Uint8Array > "u" || !O ? C : O(Uint8Array), ee = {
1532
+ "%AggregateError%": typeof AggregateError > "u" ? C : AggregateError,
1533
1533
  "%Array%": Array,
1534
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
1535
- "%ArrayIteratorPrototype%": oe && O ? O([][Symbol.iterator]()) : v,
1536
- "%AsyncFromSyncIteratorPrototype%": v,
1537
- "%AsyncFunction%": se,
1538
- "%AsyncGenerator%": se,
1539
- "%AsyncGeneratorFunction%": se,
1540
- "%AsyncIteratorPrototype%": se,
1541
- "%Atomics%": typeof Atomics > "u" ? v : Atomics,
1542
- "%BigInt%": typeof BigInt > "u" ? v : BigInt,
1543
- "%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
1544
- "%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
1534
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? C : ArrayBuffer,
1535
+ "%ArrayIteratorPrototype%": se && O ? O([][Symbol.iterator]()) : C,
1536
+ "%AsyncFromSyncIteratorPrototype%": C,
1537
+ "%AsyncFunction%": ae,
1538
+ "%AsyncGenerator%": ae,
1539
+ "%AsyncGeneratorFunction%": ae,
1540
+ "%AsyncIteratorPrototype%": ae,
1541
+ "%Atomics%": typeof Atomics > "u" ? C : Atomics,
1542
+ "%BigInt%": typeof BigInt > "u" ? C : BigInt,
1543
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? C : BigInt64Array,
1544
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? C : BigUint64Array,
1545
1545
  "%Boolean%": Boolean,
1546
- "%DataView%": typeof DataView > "u" ? v : DataView,
1546
+ "%DataView%": typeof DataView > "u" ? C : DataView,
1547
1547
  "%Date%": Date,
1548
1548
  "%decodeURI%": decodeURI,
1549
1549
  "%decodeURIComponent%": decodeURIComponent,
@@ -1553,58 +1553,58 @@ var st = function() {
1553
1553
  "%eval%": eval,
1554
1554
  // eslint-disable-line no-eval
1555
1555
  "%EvalError%": EvalError,
1556
- "%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
1557
- "%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
1558
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
1559
- "%Function%": Kr,
1560
- "%GeneratorFunction%": se,
1561
- "%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
1562
- "%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
1563
- "%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
1556
+ "%Float32Array%": typeof Float32Array > "u" ? C : Float32Array,
1557
+ "%Float64Array%": typeof Float64Array > "u" ? C : Float64Array,
1558
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? C : FinalizationRegistry,
1559
+ "%Function%": Yr,
1560
+ "%GeneratorFunction%": ae,
1561
+ "%Int8Array%": typeof Int8Array > "u" ? C : Int8Array,
1562
+ "%Int16Array%": typeof Int16Array > "u" ? C : Int16Array,
1563
+ "%Int32Array%": typeof Int32Array > "u" ? C : Int32Array,
1564
1564
  "%isFinite%": isFinite,
1565
1565
  "%isNaN%": isNaN,
1566
- "%IteratorPrototype%": oe && O ? O(O([][Symbol.iterator]())) : v,
1567
- "%JSON%": typeof JSON == "object" ? JSON : v,
1568
- "%Map%": typeof Map > "u" ? v : Map,
1569
- "%MapIteratorPrototype%": typeof Map > "u" || !oe || !O ? v : O((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1566
+ "%IteratorPrototype%": se && O ? O(O([][Symbol.iterator]())) : C,
1567
+ "%JSON%": typeof JSON == "object" ? JSON : C,
1568
+ "%Map%": typeof Map > "u" ? C : Map,
1569
+ "%MapIteratorPrototype%": typeof Map > "u" || !se || !O ? C : O((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1570
1570
  "%Math%": Math,
1571
1571
  "%Number%": Number,
1572
1572
  "%Object%": Object,
1573
1573
  "%parseFloat%": parseFloat,
1574
1574
  "%parseInt%": parseInt,
1575
- "%Promise%": typeof Promise > "u" ? v : Promise,
1576
- "%Proxy%": typeof Proxy > "u" ? v : Proxy,
1575
+ "%Promise%": typeof Promise > "u" ? C : Promise,
1576
+ "%Proxy%": typeof Proxy > "u" ? C : Proxy,
1577
1577
  "%RangeError%": RangeError,
1578
1578
  "%ReferenceError%": ReferenceError,
1579
- "%Reflect%": typeof Reflect > "u" ? v : Reflect,
1579
+ "%Reflect%": typeof Reflect > "u" ? C : Reflect,
1580
1580
  "%RegExp%": RegExp,
1581
- "%Set%": typeof Set > "u" ? v : Set,
1582
- "%SetIteratorPrototype%": typeof Set > "u" || !oe || !O ? v : O((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1583
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
1581
+ "%Set%": typeof Set > "u" ? C : Set,
1582
+ "%SetIteratorPrototype%": typeof Set > "u" || !se || !O ? C : O((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1583
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? C : SharedArrayBuffer,
1584
1584
  "%String%": String,
1585
- "%StringIteratorPrototype%": oe && O ? O(""[Symbol.iterator]()) : v,
1586
- "%Symbol%": oe ? Symbol : v,
1587
- "%SyntaxError%": ue,
1588
- "%ThrowTypeError%": Io,
1589
- "%TypedArray%": xo,
1590
- "%TypeError%": ae,
1591
- "%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
1592
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
1593
- "%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
1594
- "%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
1585
+ "%StringIteratorPrototype%": se && O ? O(""[Symbol.iterator]()) : C,
1586
+ "%Symbol%": se ? Symbol : C,
1587
+ "%SyntaxError%": fe,
1588
+ "%ThrowTypeError%": ko,
1589
+ "%TypedArray%": Fo,
1590
+ "%TypeError%": ce,
1591
+ "%Uint8Array%": typeof Uint8Array > "u" ? C : Uint8Array,
1592
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? C : Uint8ClampedArray,
1593
+ "%Uint16Array%": typeof Uint16Array > "u" ? C : Uint16Array,
1594
+ "%Uint32Array%": typeof Uint32Array > "u" ? C : Uint32Array,
1595
1595
  "%URIError%": URIError,
1596
- "%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
1597
- "%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
1598
- "%WeakSet%": typeof WeakSet > "u" ? v : WeakSet
1596
+ "%WeakMap%": typeof WeakMap > "u" ? C : WeakMap,
1597
+ "%WeakRef%": typeof WeakRef > "u" ? C : WeakRef,
1598
+ "%WeakSet%": typeof WeakSet > "u" ? C : WeakSet
1599
1599
  };
1600
1600
  if (O)
1601
1601
  try {
1602
1602
  null.error;
1603
1603
  } catch (t) {
1604
- var Do = O(O(t));
1605
- Z["%Error.prototype%"] = Do;
1604
+ var No = O(O(t));
1605
+ ee["%Error.prototype%"] = No;
1606
1606
  }
1607
- var Lo = function t(e) {
1607
+ var Uo = function t(e) {
1608
1608
  var r;
1609
1609
  if (e === "%AsyncFunction%")
1610
1610
  r = ot("async function () {}");
@@ -1619,8 +1619,8 @@ var Lo = function t(e) {
1619
1619
  var i = t("%AsyncGenerator%");
1620
1620
  i && O && (r = O(i.prototype));
1621
1621
  }
1622
- return Z[e] = r, r;
1623
- }, or = {
1622
+ return ee[e] = r, r;
1623
+ }, ar = {
1624
1624
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1625
1625
  "%ArrayPrototype%": ["Array", "prototype"],
1626
1626
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -1672,62 +1672,62 @@ var Lo = function t(e) {
1672
1672
  "%URIErrorPrototype%": ["URIError", "prototype"],
1673
1673
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1674
1674
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1675
- }, Pe = Nt, ze = Ao, ko = Pe.call(Function.call, Array.prototype.concat), Mo = Pe.call(Function.apply, Array.prototype.splice), sr = Pe.call(Function.call, String.prototype.replace), Ve = Pe.call(Function.call, String.prototype.slice), Fo = Pe.call(Function.call, RegExp.prototype.exec), No = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, Bo = function(e) {
1676
- var r = Ve(e, 0, 1), n = Ve(e, -1);
1675
+ }, Oe = Bt, Ve = Lo, Bo = Oe.call(Function.call, Array.prototype.concat), jo = Oe.call(Function.apply, Array.prototype.splice), cr = Oe.call(Function.call, String.prototype.replace), ze = Oe.call(Function.call, String.prototype.slice), $o = Oe.call(Function.call, RegExp.prototype.exec), Ho = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, wo = /\\(\\)?/g, Go = function(e) {
1676
+ var r = ze(e, 0, 1), n = ze(e, -1);
1677
1677
  if (r === "%" && n !== "%")
1678
- throw new ue("invalid intrinsic syntax, expected closing `%`");
1678
+ throw new fe("invalid intrinsic syntax, expected closing `%`");
1679
1679
  if (n === "%" && r !== "%")
1680
- throw new ue("invalid intrinsic syntax, expected opening `%`");
1680
+ throw new fe("invalid intrinsic syntax, expected opening `%`");
1681
1681
  var i = [];
1682
- return sr(e, No, function(o, s, a, l) {
1683
- i[i.length] = a ? sr(l, Uo, "$1") : s || o;
1682
+ return cr(e, Ho, function(o, s, a, l) {
1683
+ i[i.length] = a ? cr(l, wo, "$1") : s || o;
1684
1684
  }), i;
1685
- }, jo = function(e, r) {
1685
+ }, Vo = function(e, r) {
1686
1686
  var n = e, i;
1687
- if (ze(or, n) && (i = or[n], n = "%" + i[0] + "%"), ze(Z, n)) {
1688
- var o = Z[n];
1689
- if (o === se && (o = Lo(n)), typeof o > "u" && !r)
1690
- throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
1687
+ if (Ve(ar, n) && (i = ar[n], n = "%" + i[0] + "%"), Ve(ee, n)) {
1688
+ var o = ee[n];
1689
+ if (o === ae && (o = Uo(n)), typeof o > "u" && !r)
1690
+ throw new ce("intrinsic " + e + " exists, but is not available. Please file an issue!");
1691
1691
  return {
1692
1692
  alias: i,
1693
1693
  name: n,
1694
1694
  value: o
1695
1695
  };
1696
1696
  }
1697
- throw new ue("intrinsic " + e + " does not exist!");
1698
- }, Ut = function(e, r) {
1697
+ throw new fe("intrinsic " + e + " does not exist!");
1698
+ }, jt = function(e, r) {
1699
1699
  if (typeof e != "string" || e.length === 0)
1700
- throw new ae("intrinsic name must be a non-empty string");
1700
+ throw new ce("intrinsic name must be a non-empty string");
1701
1701
  if (arguments.length > 1 && typeof r != "boolean")
1702
- throw new ae('"allowMissing" argument must be a boolean');
1703
- if (Fo(/^%?[^%]*%?$/, e) === null)
1704
- throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1705
- var n = Bo(e), i = n.length > 0 ? n[0] : "", o = jo("%" + i + "%", r), s = o.name, a = o.value, l = !1, c = o.alias;
1706
- c && (i = c[0], Mo(n, ko([0, 1], c)));
1702
+ throw new ce('"allowMissing" argument must be a boolean');
1703
+ if ($o(/^%?[^%]*%?$/, e) === null)
1704
+ throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1705
+ var n = Go(e), i = n.length > 0 ? n[0] : "", o = Vo("%" + i + "%", r), s = o.name, a = o.value, l = !1, c = o.alias;
1706
+ c && (i = c[0], jo(n, Bo([0, 1], c)));
1707
1707
  for (var u = 1, f = !0; u < n.length; u += 1) {
1708
- var p = n[u], m = Ve(p, 0, 1), h = Ve(p, -1);
1708
+ var p = n[u], m = ze(p, 0, 1), h = ze(p, -1);
1709
1709
  if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
1710
- throw new ue("property names with quotes must have matching quotes");
1711
- if ((p === "constructor" || !f) && (l = !0), i += "." + p, s = "%" + i + "%", ze(Z, s))
1712
- a = Z[s];
1710
+ throw new fe("property names with quotes must have matching quotes");
1711
+ if ((p === "constructor" || !f) && (l = !0), i += "." + p, s = "%" + i + "%", Ve(ee, s))
1712
+ a = ee[s];
1713
1713
  else if (a != null) {
1714
1714
  if (!(p in a)) {
1715
1715
  if (!r)
1716
- throw new ae("base intrinsic for " + e + " exists, but the property is not available.");
1716
+ throw new ce("base intrinsic for " + e + " exists, but the property is not available.");
1717
1717
  return;
1718
1718
  }
1719
- if (X && u + 1 >= n.length) {
1720
- var y = X(a, p);
1719
+ if (Z && u + 1 >= n.length) {
1720
+ var y = Z(a, p);
1721
1721
  f = !!y, f && "get" in y && !("originalValue" in y.get) ? a = y.get : a = a[p];
1722
1722
  } else
1723
- f = ze(a, p), a = a[p];
1724
- f && !l && (Z[s] = a);
1723
+ f = Ve(a, p), a = a[p];
1724
+ f && !l && (ee[s] = a);
1725
1725
  }
1726
1726
  }
1727
1727
  return a;
1728
- }, Qr = { exports: {} };
1728
+ }, Xr = { exports: {} };
1729
1729
  (function(t) {
1730
- var e = Nt, r = Ut, n = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), o = r("%Reflect.apply%", !0) || e.call(i, n), s = r("%Object.getOwnPropertyDescriptor%", !0), a = r("%Object.defineProperty%", !0), l = r("%Math.max%");
1730
+ var e = Bt, r = jt, n = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), o = r("%Reflect.apply%", !0) || e.call(i, n), s = r("%Object.getOwnPropertyDescriptor%", !0), a = r("%Object.defineProperty%", !0), l = r("%Math.max%");
1731
1731
  if (a)
1732
1732
  try {
1733
1733
  a({}, "a", { value: 1 });
@@ -1750,43 +1750,43 @@ var Lo = function t(e) {
1750
1750
  return o(e, n, arguments);
1751
1751
  };
1752
1752
  a ? a(t.exports, "apply", { value: c }) : t.exports.apply = c;
1753
- })(Qr);
1754
- var $o = Qr.exports, Yr = Ut, Xr = $o, wo = Xr(Yr("String.prototype.indexOf")), Ho = function(e, r) {
1755
- var n = Yr(e, !!r);
1756
- return typeof n == "function" && wo(e, ".prototype.") > -1 ? Xr(n) : n;
1753
+ })(Xr);
1754
+ var zo = Xr.exports, Zr = jt, en = zo, Jo = en(Zr("String.prototype.indexOf")), Wo = function(e, r) {
1755
+ var n = Zr(e, !!r);
1756
+ return typeof n == "function" && Jo(e, ".prototype.") > -1 ? en(n) : n;
1757
1757
  };
1758
- const Go = {}, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1758
+ const qo = {}, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1759
1759
  __proto__: null,
1760
- default: Go
1761
- }, Symbol.toStringTag, { value: "Module" })), Vo = /* @__PURE__ */ mo(zo);
1762
- var Bt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && Bt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, We = Bt && at && typeof at.get == "function" ? at.get : null, ar = Bt && Map.prototype.forEach, jt = typeof Set == "function" && Set.prototype, ct = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = jt && ct && typeof ct.get == "function" ? ct.get : null, cr = jt && Set.prototype.forEach, Wo = typeof WeakMap == "function" && WeakMap.prototype, ve = Wo ? WeakMap.prototype.has : null, Jo = typeof WeakSet == "function" && WeakSet.prototype, Ce = Jo ? WeakSet.prototype.has : null, qo = typeof WeakRef == "function" && WeakRef.prototype, lr = qo ? WeakRef.prototype.deref : null, Ko = Boolean.prototype.valueOf, Qo = Object.prototype.toString, Yo = Function.prototype.toString, Xo = String.prototype.match, $t = String.prototype.slice, W = String.prototype.replace, Zo = String.prototype.toUpperCase, ur = String.prototype.toLowerCase, Zr = RegExp.prototype.test, fr = Array.prototype.concat, F = Array.prototype.join, es = Array.prototype.slice, pr = Math.floor, St = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, fe = typeof Symbol == "function" && typeof Symbol.iterator == "object", _ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === fe || "symbol") ? Symbol.toStringTag : null, en = Object.prototype.propertyIsEnumerable, dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1760
+ default: qo
1761
+ }, Symbol.toStringTag, { value: "Module" })), Qo = /* @__PURE__ */ Co(Ko);
1762
+ var $t = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && $t ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Je = $t && at && typeof at.get == "function" ? at.get : null, lr = $t && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, ct = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, We = Ht && ct && typeof ct.get == "function" ? ct.get : null, ur = Ht && Set.prototype.forEach, Yo = typeof WeakMap == "function" && WeakMap.prototype, Ce = Yo ? WeakMap.prototype.has : null, Xo = typeof WeakSet == "function" && WeakSet.prototype, be = Xo ? WeakSet.prototype.has : null, Zo = typeof WeakRef == "function" && WeakRef.prototype, fr = Zo ? WeakRef.prototype.deref : null, es = Boolean.prototype.valueOf, ts = Object.prototype.toString, rs = Function.prototype.toString, ns = String.prototype.match, wt = String.prototype.slice, W = String.prototype.replace, is = String.prototype.toUpperCase, pr = String.prototype.toLowerCase, tn = RegExp.prototype.test, dr = Array.prototype.concat, N = Array.prototype.join, os = Array.prototype.slice, hr = Math.floor, St = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, pe = typeof Symbol == "function" && typeof Symbol.iterator == "object", I = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === pe || "symbol") ? Symbol.toStringTag : null, rn = Object.prototype.propertyIsEnumerable, mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1763
1763
  return t.__proto__;
1764
1764
  } : null);
1765
- function hr(t, e) {
1766
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Zr.call(/e/, e))
1765
+ function yr(t, e) {
1766
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || tn.call(/e/, e))
1767
1767
  return e;
1768
1768
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1769
1769
  if (typeof t == "number") {
1770
- var n = t < 0 ? -pr(-t) : pr(t);
1770
+ var n = t < 0 ? -hr(-t) : hr(t);
1771
1771
  if (n !== t) {
1772
- var i = String(n), o = $t.call(e, i.length + 1);
1772
+ var i = String(n), o = wt.call(e, i.length + 1);
1773
1773
  return W.call(i, r, "$&_") + "." + W.call(W.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
1774
1774
  }
1775
1775
  }
1776
1776
  return W.call(e, r, "$&_");
1777
1777
  }
1778
- var Ct = Vo, mr = Ct.custom, yr = rn(mr) ? mr : null, ts = function t(e, r, n, i) {
1778
+ var Ct = Qo, gr = Ct.custom, Sr = on(gr) ? gr : null, ss = function t(e, r, n, i) {
1779
1779
  var o = r || {};
1780
- if (V(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1780
+ if (J(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1781
1781
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
1782
- if (V(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
1782
+ if (J(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
1783
1783
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1784
- var s = V(o, "customInspect") ? o.customInspect : !0;
1784
+ var s = J(o, "customInspect") ? o.customInspect : !0;
1785
1785
  if (typeof s != "boolean" && s !== "symbol")
1786
1786
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1787
- if (V(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
1787
+ if (J(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
1788
1788
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1789
- if (V(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
1789
+ if (J(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
1790
1790
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1791
1791
  var a = o.numericSeparator;
1792
1792
  if (typeof e > "u")
@@ -1796,125 +1796,125 @@ var Ct = Vo, mr = Ct.custom, yr = rn(mr) ? mr : null, ts = function t(e, r, n, i
1796
1796
  if (typeof e == "boolean")
1797
1797
  return e ? "true" : "false";
1798
1798
  if (typeof e == "string")
1799
- return on(e, o);
1799
+ return an(e, o);
1800
1800
  if (typeof e == "number") {
1801
1801
  if (e === 0)
1802
1802
  return 1 / 0 / e > 0 ? "0" : "-0";
1803
1803
  var l = String(e);
1804
- return a ? hr(e, l) : l;
1804
+ return a ? yr(e, l) : l;
1805
1805
  }
1806
1806
  if (typeof e == "bigint") {
1807
1807
  var c = String(e) + "n";
1808
- return a ? hr(e, c) : c;
1808
+ return a ? yr(e, c) : c;
1809
1809
  }
1810
1810
  var u = typeof o.depth > "u" ? 5 : o.depth;
1811
1811
  if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
1812
1812
  return bt(e) ? "[Array]" : "[Object]";
1813
- var f = vs(o, n);
1813
+ var f = Es(o, n);
1814
1814
  if (typeof i > "u")
1815
1815
  i = [];
1816
- else if (nn(i, e) >= 0)
1816
+ else if (sn(i, e) >= 0)
1817
1817
  return "[Circular]";
1818
- function p(j, ne, Ae) {
1819
- if (ne && (i = es.call(i), i.push(ne)), Ae) {
1820
- var ie = {
1818
+ function p($, ie, _e) {
1819
+ if (ie && (i = os.call(i), i.push(ie)), _e) {
1820
+ var oe = {
1821
1821
  depth: o.depth
1822
1822
  };
1823
- return V(o, "quoteStyle") && (ie.quoteStyle = o.quoteStyle), t(j, ie, n + 1, i);
1823
+ return J(o, "quoteStyle") && (oe.quoteStyle = o.quoteStyle), t($, oe, n + 1, i);
1824
1824
  }
1825
- return t(j, o, n + 1, i);
1825
+ return t($, o, n + 1, i);
1826
1826
  }
1827
- if (typeof e == "function" && !gr(e)) {
1828
- var m = us(e), h = Ie(e, p);
1829
- return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + F.call(h, ", ") + " }" : "");
1827
+ if (typeof e == "function" && !vr(e)) {
1828
+ var m = ms(e), h = Ie(e, p);
1829
+ return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + N.call(h, ", ") + " }" : "");
1830
1830
  }
1831
- if (rn(e)) {
1832
- var y = fe ? W.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
1833
- return typeof e == "object" && !fe ? Se(y) : y;
1831
+ if (on(e)) {
1832
+ var y = pe ? W.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
1833
+ return typeof e == "object" && !pe ? ve(y) : y;
1834
1834
  }
1835
- if (ys(e)) {
1836
- for (var T = "<" + ur.call(String(e.nodeName)), S = e.attributes || [], A = 0; A < S.length; A++)
1837
- T += " " + S[A].name + "=" + tn(rs(S[A].value), "double", o);
1838
- return T += ">", e.childNodes && e.childNodes.length && (T += "..."), T += "</" + ur.call(String(e.nodeName)) + ">", T;
1835
+ if (bs(e)) {
1836
+ for (var T = "<" + pr.call(String(e.nodeName)), S = e.attributes || [], A = 0; A < S.length; A++)
1837
+ T += " " + S[A].name + "=" + nn(as(S[A].value), "double", o);
1838
+ return T += ">", e.childNodes && e.childNodes.length && (T += "..."), T += "</" + pr.call(String(e.nodeName)) + ">", T;
1839
1839
  }
1840
1840
  if (bt(e)) {
1841
1841
  if (e.length === 0)
1842
1842
  return "[]";
1843
1843
  var x = Ie(e, p);
1844
- return f && !Ss(x) ? "[" + Rt(x, f) + "]" : "[ " + F.call(x, ", ") + " ]";
1844
+ return f && !Ts(x) ? "[" + Rt(x, f) + "]" : "[ " + N.call(x, ", ") + " ]";
1845
1845
  }
1846
- if (is(e)) {
1847
- var H = Ie(e, p);
1848
- return !("cause" in Error.prototype) && "cause" in e && !en.call(e, "cause") ? "{ [" + String(e) + "] " + F.call(fr.call("[cause]: " + p(e.cause), H), ", ") + " }" : H.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + F.call(H, ", ") + " }";
1846
+ if (ls(e)) {
1847
+ var G = Ie(e, p);
1848
+ return !("cause" in Error.prototype) && "cause" in e && !rn.call(e, "cause") ? "{ [" + String(e) + "] " + N.call(dr.call("[cause]: " + p(e.cause), G), ", ") + " }" : G.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + N.call(G, ", ") + " }";
1849
1849
  }
1850
1850
  if (typeof e == "object" && s) {
1851
- if (yr && typeof e[yr] == "function" && Ct)
1851
+ if (Sr && typeof e[Sr] == "function" && Ct)
1852
1852
  return Ct(e, { depth: u - n });
1853
1853
  if (s !== "symbol" && typeof e.inspect == "function")
1854
1854
  return e.inspect();
1855
1855
  }
1856
- if (fs(e)) {
1857
- var me = [];
1858
- return ar && ar.call(e, function(j, ne) {
1859
- me.push(p(ne, e, !0) + " => " + p(j, e));
1860
- }), Sr("Map", We.call(e), me, f);
1861
- }
1862
- if (hs(e)) {
1863
- var Oe = [];
1864
- return cr && cr.call(e, function(j) {
1865
- Oe.push(p(j, e));
1866
- }), Sr("Set", Je.call(e), Oe, f);
1867
- }
1868
- if (ps(e))
1856
+ if (ys(e)) {
1857
+ var ye = [];
1858
+ return lr && lr.call(e, function($, ie) {
1859
+ ye.push(p(ie, e, !0) + " => " + p($, e));
1860
+ }), Cr("Map", Je.call(e), ye, f);
1861
+ }
1862
+ if (vs(e)) {
1863
+ var Ae = [];
1864
+ return ur && ur.call(e, function($) {
1865
+ Ae.push(p($, e));
1866
+ }), Cr("Set", We.call(e), Ae, f);
1867
+ }
1868
+ if (gs(e))
1869
1869
  return ut("WeakMap");
1870
- if (ms(e))
1870
+ if (Cs(e))
1871
1871
  return ut("WeakSet");
1872
- if (ds(e))
1872
+ if (Ss(e))
1873
1873
  return ut("WeakRef");
1874
- if (ss(e))
1875
- return Se(p(Number(e)));
1876
- if (cs(e))
1877
- return Se(p(St.call(e)));
1878
- if (as(e))
1879
- return Se(Ko.call(e));
1880
- if (os(e))
1881
- return Se(p(String(e)));
1882
- if (!ns(e) && !gr(e)) {
1883
- var q = Ie(e, p), G = dr ? dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, te = e instanceof Object ? "" : "null prototype", re = !G && _ && Object(e) === e && _ in e ? $t.call(J(e), 8, -1) : te ? "Object" : "", ye = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", k = ye + (re || te ? "[" + F.call(fr.call([], re || [], te || []), ": ") + "] " : "");
1884
- return q.length === 0 ? k + "{}" : f ? k + "{" + Rt(q, f) + "}" : k + "{ " + F.call(q, ", ") + " }";
1874
+ if (fs(e))
1875
+ return ve(p(Number(e)));
1876
+ if (ds(e))
1877
+ return ve(p(St.call(e)));
1878
+ if (ps(e))
1879
+ return ve(es.call(e));
1880
+ if (us(e))
1881
+ return ve(p(String(e)));
1882
+ if (!cs(e) && !vr(e)) {
1883
+ var K = Ie(e, p), V = mr ? mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, re = e instanceof Object ? "" : "null prototype", ne = !V && I && Object(e) === e && I in e ? wt.call(q(e), 8, -1) : re ? "Object" : "", ge = V || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", M = ge + (ne || re ? "[" + N.call(dr.call([], ne || [], re || []), ": ") + "] " : "");
1884
+ return K.length === 0 ? M + "{}" : f ? M + "{" + Rt(K, f) + "}" : M + "{ " + N.call(K, ", ") + " }";
1885
1885
  }
1886
1886
  return String(e);
1887
1887
  };
1888
- function tn(t, e, r) {
1888
+ function nn(t, e, r) {
1889
1889
  var n = (r.quoteStyle || e) === "double" ? '"' : "'";
1890
1890
  return n + t + n;
1891
1891
  }
1892
- function rs(t) {
1892
+ function as(t) {
1893
1893
  return W.call(String(t), /"/g, "&quot;");
1894
1894
  }
1895
1895
  function bt(t) {
1896
- return J(t) === "[object Array]" && (!_ || !(typeof t == "object" && _ in t));
1896
+ return q(t) === "[object Array]" && (!I || !(typeof t == "object" && I in t));
1897
1897
  }
1898
- function ns(t) {
1899
- return J(t) === "[object Date]" && (!_ || !(typeof t == "object" && _ in t));
1898
+ function cs(t) {
1899
+ return q(t) === "[object Date]" && (!I || !(typeof t == "object" && I in t));
1900
1900
  }
1901
- function gr(t) {
1902
- return J(t) === "[object RegExp]" && (!_ || !(typeof t == "object" && _ in t));
1901
+ function vr(t) {
1902
+ return q(t) === "[object RegExp]" && (!I || !(typeof t == "object" && I in t));
1903
1903
  }
1904
- function is(t) {
1905
- return J(t) === "[object Error]" && (!_ || !(typeof t == "object" && _ in t));
1904
+ function ls(t) {
1905
+ return q(t) === "[object Error]" && (!I || !(typeof t == "object" && I in t));
1906
1906
  }
1907
- function os(t) {
1908
- return J(t) === "[object String]" && (!_ || !(typeof t == "object" && _ in t));
1907
+ function us(t) {
1908
+ return q(t) === "[object String]" && (!I || !(typeof t == "object" && I in t));
1909
1909
  }
1910
- function ss(t) {
1911
- return J(t) === "[object Number]" && (!_ || !(typeof t == "object" && _ in t));
1910
+ function fs(t) {
1911
+ return q(t) === "[object Number]" && (!I || !(typeof t == "object" && I in t));
1912
1912
  }
1913
- function as(t) {
1914
- return J(t) === "[object Boolean]" && (!_ || !(typeof t == "object" && _ in t));
1913
+ function ps(t) {
1914
+ return q(t) === "[object Boolean]" && (!I || !(typeof t == "object" && I in t));
1915
1915
  }
1916
- function rn(t) {
1917
- if (fe)
1916
+ function on(t) {
1917
+ if (pe)
1918
1918
  return t && typeof t == "object" && t instanceof Symbol;
1919
1919
  if (typeof t == "symbol")
1920
1920
  return !0;
@@ -1926,7 +1926,7 @@ function rn(t) {
1926
1926
  }
1927
1927
  return !1;
1928
1928
  }
1929
- function cs(t) {
1929
+ function ds(t) {
1930
1930
  if (!t || typeof t != "object" || !St)
1931
1931
  return !1;
1932
1932
  try {
@@ -1935,22 +1935,22 @@ function cs(t) {
1935
1935
  }
1936
1936
  return !1;
1937
1937
  }
1938
- var ls = Object.prototype.hasOwnProperty || function(t) {
1938
+ var hs = Object.prototype.hasOwnProperty || function(t) {
1939
1939
  return t in this;
1940
1940
  };
1941
- function V(t, e) {
1942
- return ls.call(t, e);
1941
+ function J(t, e) {
1942
+ return hs.call(t, e);
1943
1943
  }
1944
- function J(t) {
1945
- return Qo.call(t);
1944
+ function q(t) {
1945
+ return ts.call(t);
1946
1946
  }
1947
- function us(t) {
1947
+ function ms(t) {
1948
1948
  if (t.name)
1949
1949
  return t.name;
1950
- var e = Xo.call(Yo.call(t), /^function\s*([\w$]+)/);
1950
+ var e = ns.call(rs.call(t), /^function\s*([\w$]+)/);
1951
1951
  return e ? e[1] : null;
1952
1952
  }
1953
- function nn(t, e) {
1953
+ function sn(t, e) {
1954
1954
  if (t.indexOf)
1955
1955
  return t.indexOf(e);
1956
1956
  for (var r = 0, n = t.length; r < n; r++)
@@ -1958,13 +1958,13 @@ function nn(t, e) {
1958
1958
  return r;
1959
1959
  return -1;
1960
1960
  }
1961
- function fs(t) {
1962
- if (!We || !t || typeof t != "object")
1961
+ function ys(t) {
1962
+ if (!Je || !t || typeof t != "object")
1963
1963
  return !1;
1964
1964
  try {
1965
- We.call(t);
1965
+ Je.call(t);
1966
1966
  try {
1967
- Je.call(t);
1967
+ We.call(t);
1968
1968
  } catch {
1969
1969
  return !0;
1970
1970
  }
@@ -1973,13 +1973,13 @@ function fs(t) {
1973
1973
  }
1974
1974
  return !1;
1975
1975
  }
1976
- function ps(t) {
1977
- if (!ve || !t || typeof t != "object")
1976
+ function gs(t) {
1977
+ if (!Ce || !t || typeof t != "object")
1978
1978
  return !1;
1979
1979
  try {
1980
- ve.call(t, ve);
1980
+ Ce.call(t, Ce);
1981
1981
  try {
1982
- Ce.call(t, Ce);
1982
+ be.call(t, be);
1983
1983
  } catch {
1984
1984
  return !0;
1985
1985
  }
@@ -1988,22 +1988,22 @@ function ps(t) {
1988
1988
  }
1989
1989
  return !1;
1990
1990
  }
1991
- function ds(t) {
1992
- if (!lr || !t || typeof t != "object")
1991
+ function Ss(t) {
1992
+ if (!fr || !t || typeof t != "object")
1993
1993
  return !1;
1994
1994
  try {
1995
- return lr.call(t), !0;
1995
+ return fr.call(t), !0;
1996
1996
  } catch {
1997
1997
  }
1998
1998
  return !1;
1999
1999
  }
2000
- function hs(t) {
2001
- if (!Je || !t || typeof t != "object")
2000
+ function vs(t) {
2001
+ if (!We || !t || typeof t != "object")
2002
2002
  return !1;
2003
2003
  try {
2004
- Je.call(t);
2004
+ We.call(t);
2005
2005
  try {
2006
- We.call(t);
2006
+ Je.call(t);
2007
2007
  } catch {
2008
2008
  return !0;
2009
2009
  }
@@ -2012,13 +2012,13 @@ function hs(t) {
2012
2012
  }
2013
2013
  return !1;
2014
2014
  }
2015
- function ms(t) {
2016
- if (!Ce || !t || typeof t != "object")
2015
+ function Cs(t) {
2016
+ if (!be || !t || typeof t != "object")
2017
2017
  return !1;
2018
2018
  try {
2019
- Ce.call(t, Ce);
2019
+ be.call(t, be);
2020
2020
  try {
2021
- ve.call(t, ve);
2021
+ Ce.call(t, Ce);
2022
2022
  } catch {
2023
2023
  return !0;
2024
2024
  }
@@ -2027,18 +2027,18 @@ function ms(t) {
2027
2027
  }
2028
2028
  return !1;
2029
2029
  }
2030
- function ys(t) {
2030
+ function bs(t) {
2031
2031
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2032
2032
  }
2033
- function on(t, e) {
2033
+ function an(t, e) {
2034
2034
  if (t.length > e.maxStringLength) {
2035
2035
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
2036
- return on($t.call(t, 0, e.maxStringLength), e) + n;
2036
+ return an(wt.call(t, 0, e.maxStringLength), e) + n;
2037
2037
  }
2038
- var i = W.call(W.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, gs);
2039
- return tn(i, "single", e);
2038
+ var i = W.call(W.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Rs);
2039
+ return nn(i, "single", e);
2040
2040
  }
2041
- function gs(t) {
2041
+ function Rs(t) {
2042
2042
  var e = t.charCodeAt(0), r = {
2043
2043
  8: "b",
2044
2044
  9: "t",
@@ -2046,36 +2046,36 @@ function gs(t) {
2046
2046
  12: "f",
2047
2047
  13: "r"
2048
2048
  }[e];
2049
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Zo.call(e.toString(16));
2049
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + is.call(e.toString(16));
2050
2050
  }
2051
- function Se(t) {
2051
+ function ve(t) {
2052
2052
  return "Object(" + t + ")";
2053
2053
  }
2054
2054
  function ut(t) {
2055
2055
  return t + " { ? }";
2056
2056
  }
2057
- function Sr(t, e, r, n) {
2058
- var i = n ? Rt(r, n) : F.call(r, ", ");
2057
+ function Cr(t, e, r, n) {
2058
+ var i = n ? Rt(r, n) : N.call(r, ", ");
2059
2059
  return t + " (" + e + ") {" + i + "}";
2060
2060
  }
2061
- function Ss(t) {
2061
+ function Ts(t) {
2062
2062
  for (var e = 0; e < t.length; e++)
2063
- if (nn(t[e], `
2063
+ if (sn(t[e], `
2064
2064
  `) >= 0)
2065
2065
  return !1;
2066
2066
  return !0;
2067
2067
  }
2068
- function vs(t, e) {
2068
+ function Es(t, e) {
2069
2069
  var r;
2070
2070
  if (t.indent === " ")
2071
2071
  r = " ";
2072
2072
  else if (typeof t.indent == "number" && t.indent > 0)
2073
- r = F.call(Array(t.indent + 1), " ");
2073
+ r = N.call(Array(t.indent + 1), " ");
2074
2074
  else
2075
2075
  return null;
2076
2076
  return {
2077
2077
  base: r,
2078
- prev: F.call(Array(e + 1), r)
2078
+ prev: N.call(Array(e + 1), r)
2079
2079
  };
2080
2080
  }
2081
2081
  function Rt(t, e) {
@@ -2083,7 +2083,7 @@ function Rt(t, e) {
2083
2083
  return "";
2084
2084
  var r = `
2085
2085
  ` + e.prev + e.base;
2086
- return r + F.call(t, "," + r) + `
2086
+ return r + N.call(t, "," + r) + `
2087
2087
  ` + e.prev;
2088
2088
  }
2089
2089
  function Ie(t, e) {
@@ -2091,78 +2091,78 @@ function Ie(t, e) {
2091
2091
  if (r) {
2092
2092
  n.length = t.length;
2093
2093
  for (var i = 0; i < t.length; i++)
2094
- n[i] = V(t, i) ? e(t[i], t) : "";
2094
+ n[i] = J(t, i) ? e(t[i], t) : "";
2095
2095
  }
2096
2096
  var o = typeof lt == "function" ? lt(t) : [], s;
2097
- if (fe) {
2097
+ if (pe) {
2098
2098
  s = {};
2099
2099
  for (var a = 0; a < o.length; a++)
2100
2100
  s["$" + o[a]] = o[a];
2101
2101
  }
2102
2102
  for (var l in t)
2103
- V(t, l) && (r && String(Number(l)) === l && l < t.length || fe && s["$" + l] instanceof Symbol || (Zr.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
2103
+ J(t, l) && (r && String(Number(l)) === l && l < t.length || pe && s["$" + l] instanceof Symbol || (tn.call(/[^\w$]/, l) ? n.push(e(l, t) + ": " + e(t[l], t)) : n.push(l + ": " + e(t[l], t))));
2104
2104
  if (typeof lt == "function")
2105
2105
  for (var c = 0; c < o.length; c++)
2106
- en.call(t, o[c]) && n.push("[" + e(o[c]) + "]: " + e(t[o[c]], t));
2106
+ rn.call(t, o[c]) && n.push("[" + e(o[c]) + "]: " + e(t[o[c]], t));
2107
2107
  return n;
2108
2108
  }
2109
- var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0), xe = wt("%Map%", !0), Rs = he("WeakMap.prototype.get", !0), Ts = he("WeakMap.prototype.set", !0), Es = he("WeakMap.prototype.has", !0), Ps = he("Map.prototype.get", !0), Os = he("Map.prototype.set", !0), As = he("Map.prototype.has", !0), Ht = function(t, e) {
2109
+ var Gt = jt, me = Wo, Ps = ss, Os = Gt("%TypeError%"), De = Gt("%WeakMap%", !0), xe = Gt("%Map%", !0), As = me("WeakMap.prototype.get", !0), _s = me("WeakMap.prototype.set", !0), Is = me("WeakMap.prototype.has", !0), Ds = me("Map.prototype.get", !0), xs = me("Map.prototype.set", !0), Ls = me("Map.prototype.has", !0), Vt = function(t, e) {
2110
2110
  for (var r = t, n; (n = r.next) !== null; r = n)
2111
2111
  if (n.key === e)
2112
2112
  return r.next = n.next, n.next = t.next, t.next = n, n;
2113
- }, Is = function(t, e) {
2114
- var r = Ht(t, e);
2113
+ }, ks = function(t, e) {
2114
+ var r = Vt(t, e);
2115
2115
  return r && r.value;
2116
- }, _s = function(t, e, r) {
2117
- var n = Ht(t, e);
2116
+ }, Ms = function(t, e, r) {
2117
+ var n = Vt(t, e);
2118
2118
  n ? n.value = r : t.next = {
2119
2119
  // eslint-disable-line no-param-reassign
2120
2120
  key: e,
2121
2121
  next: t.next,
2122
2122
  value: r
2123
2123
  };
2124
- }, xs = function(t, e) {
2125
- return !!Ht(t, e);
2126
- }, Ds = function() {
2124
+ }, Fs = function(t, e) {
2125
+ return !!Vt(t, e);
2126
+ }, Ns = function() {
2127
2127
  var e, r, n, i = {
2128
2128
  assert: function(o) {
2129
2129
  if (!i.has(o))
2130
- throw new bs("Side channel does not contain " + Cs(o));
2130
+ throw new Os("Side channel does not contain " + Ps(o));
2131
2131
  },
2132
2132
  get: function(o) {
2133
- if (_e && o && (typeof o == "object" || typeof o == "function")) {
2133
+ if (De && o && (typeof o == "object" || typeof o == "function")) {
2134
2134
  if (e)
2135
- return Rs(e, o);
2135
+ return As(e, o);
2136
2136
  } else if (xe) {
2137
2137
  if (r)
2138
- return Ps(r, o);
2138
+ return Ds(r, o);
2139
2139
  } else if (n)
2140
- return Is(n, o);
2140
+ return ks(n, o);
2141
2141
  },
2142
2142
  has: function(o) {
2143
- if (_e && o && (typeof o == "object" || typeof o == "function")) {
2143
+ if (De && o && (typeof o == "object" || typeof o == "function")) {
2144
2144
  if (e)
2145
- return Es(e, o);
2145
+ return Is(e, o);
2146
2146
  } else if (xe) {
2147
2147
  if (r)
2148
- return As(r, o);
2148
+ return Ls(r, o);
2149
2149
  } else if (n)
2150
- return xs(n, o);
2150
+ return Fs(n, o);
2151
2151
  return !1;
2152
2152
  },
2153
2153
  set: function(o, s) {
2154
- _e && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new _e()), Ts(e, o, s)) : xe ? (r || (r = new xe()), Os(r, o, s)) : (n || (n = { key: {}, next: null }), _s(n, o, s));
2154
+ De && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new De()), _s(e, o, s)) : xe ? (r || (r = new xe()), xs(r, o, s)) : (n || (n = { key: {}, next: null }), Ms(n, o, s));
2155
2155
  }
2156
2156
  };
2157
2157
  return i;
2158
- }, Ls = String.prototype.replace, ks = /%20/g, ft = {
2158
+ }, Us = String.prototype.replace, Bs = /%20/g, ft = {
2159
2159
  RFC1738: "RFC1738",
2160
2160
  RFC3986: "RFC3986"
2161
- }, Gt = {
2161
+ }, zt = {
2162
2162
  default: ft.RFC3986,
2163
2163
  formatters: {
2164
2164
  RFC1738: function(t) {
2165
- return Ls.call(t, ks, "+");
2165
+ return Us.call(t, Bs, "+");
2166
2166
  },
2167
2167
  RFC3986: function(t) {
2168
2168
  return String(t);
@@ -2170,28 +2170,28 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2170
2170
  },
2171
2171
  RFC1738: ft.RFC1738,
2172
2172
  RFC3986: ft.RFC3986
2173
- }, Ms = Gt, pt = Object.prototype.hasOwnProperty, Y = Array.isArray, M = function() {
2173
+ }, js = zt, pt = Object.prototype.hasOwnProperty, X = Array.isArray, F = function() {
2174
2174
  for (var t = [], e = 0; e < 256; ++e)
2175
2175
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2176
2176
  return t;
2177
- }(), Fs = function(e) {
2177
+ }(), $s = function(e) {
2178
2178
  for (; e.length > 1; ) {
2179
2179
  var r = e.pop(), n = r.obj[r.prop];
2180
- if (Y(n)) {
2180
+ if (X(n)) {
2181
2181
  for (var i = [], o = 0; o < n.length; ++o)
2182
2182
  typeof n[o] < "u" && i.push(n[o]);
2183
2183
  r.obj[r.prop] = i;
2184
2184
  }
2185
2185
  }
2186
- }, sn = function(e, r) {
2186
+ }, cn = function(e, r) {
2187
2187
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < e.length; ++i)
2188
2188
  typeof e[i] < "u" && (n[i] = e[i]);
2189
2189
  return n;
2190
- }, Ns = function t(e, r, n) {
2190
+ }, Hs = function t(e, r, n) {
2191
2191
  if (!r)
2192
2192
  return e;
2193
2193
  if (typeof r != "object") {
2194
- if (Y(e))
2194
+ if (X(e))
2195
2195
  e.push(r);
2196
2196
  else if (e && typeof e == "object")
2197
2197
  (n && (n.plainObjects || n.allowPrototypes) || !pt.call(Object.prototype, r)) && (e[r] = !0);
@@ -2202,7 +2202,7 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2202
2202
  if (!e || typeof e != "object")
2203
2203
  return [e].concat(r);
2204
2204
  var i = e;
2205
- return Y(e) && !Y(r) && (i = sn(e, n)), Y(e) && Y(r) ? (r.forEach(function(o, s) {
2205
+ return X(e) && !X(r) && (i = cn(e, n)), X(e) && X(r) ? (r.forEach(function(o, s) {
2206
2206
  if (pt.call(e, s)) {
2207
2207
  var a = e[s];
2208
2208
  a && typeof a == "object" && o && typeof o == "object" ? e[s] = t(a, o, n) : e.push(o);
@@ -2212,11 +2212,11 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2212
2212
  var a = r[s];
2213
2213
  return pt.call(o, s) ? o[s] = t(o[s], a, n) : o[s] = a, o;
2214
2214
  }, i);
2215
- }, Us = function(e, r) {
2215
+ }, ws = function(e, r) {
2216
2216
  return Object.keys(r).reduce(function(n, i) {
2217
2217
  return n[i] = r[i], n;
2218
2218
  }, e);
2219
- }, Bs = function(t, e, r) {
2219
+ }, Gs = function(t, e, r) {
2220
2220
  var n = t.replace(/\+/g, " ");
2221
2221
  if (r === "iso-8859-1")
2222
2222
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -2225,7 +2225,7 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2225
2225
  } catch {
2226
2226
  return n;
2227
2227
  }
2228
- }, js = function(e, r, n, i, o) {
2228
+ }, Vs = function(e, r, n, i, o) {
2229
2229
  if (e.length === 0)
2230
2230
  return e;
2231
2231
  var s = e;
@@ -2235,57 +2235,57 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2235
2235
  });
2236
2236
  for (var a = "", l = 0; l < s.length; ++l) {
2237
2237
  var c = s.charCodeAt(l);
2238
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || o === Ms.RFC1738 && (c === 40 || c === 41)) {
2238
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || o === js.RFC1738 && (c === 40 || c === 41)) {
2239
2239
  a += s.charAt(l);
2240
2240
  continue;
2241
2241
  }
2242
2242
  if (c < 128) {
2243
- a = a + M[c];
2243
+ a = a + F[c];
2244
2244
  continue;
2245
2245
  }
2246
2246
  if (c < 2048) {
2247
- a = a + (M[192 | c >> 6] + M[128 | c & 63]);
2247
+ a = a + (F[192 | c >> 6] + F[128 | c & 63]);
2248
2248
  continue;
2249
2249
  }
2250
2250
  if (c < 55296 || c >= 57344) {
2251
- a = a + (M[224 | c >> 12] + M[128 | c >> 6 & 63] + M[128 | c & 63]);
2251
+ a = a + (F[224 | c >> 12] + F[128 | c >> 6 & 63] + F[128 | c & 63]);
2252
2252
  continue;
2253
2253
  }
2254
- l += 1, c = 65536 + ((c & 1023) << 10 | s.charCodeAt(l) & 1023), a += M[240 | c >> 18] + M[128 | c >> 12 & 63] + M[128 | c >> 6 & 63] + M[128 | c & 63];
2254
+ l += 1, c = 65536 + ((c & 1023) << 10 | s.charCodeAt(l) & 1023), a += F[240 | c >> 18] + F[128 | c >> 12 & 63] + F[128 | c >> 6 & 63] + F[128 | c & 63];
2255
2255
  }
2256
2256
  return a;
2257
- }, $s = function(e) {
2257
+ }, zs = function(e) {
2258
2258
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], i = 0; i < r.length; ++i)
2259
2259
  for (var o = r[i], s = o.obj[o.prop], a = Object.keys(s), l = 0; l < a.length; ++l) {
2260
2260
  var c = a[l], u = s[c];
2261
2261
  typeof u == "object" && u !== null && n.indexOf(u) === -1 && (r.push({ obj: s, prop: c }), n.push(u));
2262
2262
  }
2263
- return Fs(r), e;
2264
- }, ws = function(e) {
2263
+ return $s(r), e;
2264
+ }, Js = function(e) {
2265
2265
  return Object.prototype.toString.call(e) === "[object RegExp]";
2266
- }, Hs = function(e) {
2266
+ }, Ws = function(e) {
2267
2267
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2268
- }, Gs = function(e, r) {
2268
+ }, qs = function(e, r) {
2269
2269
  return [].concat(e, r);
2270
- }, zs = function(e, r) {
2271
- if (Y(e)) {
2270
+ }, Ks = function(e, r) {
2271
+ if (X(e)) {
2272
2272
  for (var n = [], i = 0; i < e.length; i += 1)
2273
2273
  n.push(r(e[i]));
2274
2274
  return n;
2275
2275
  }
2276
2276
  return r(e);
2277
- }, an = {
2278
- arrayToObject: sn,
2279
- assign: Us,
2280
- combine: Gs,
2281
- compact: $s,
2282
- decode: Bs,
2283
- encode: js,
2284
- isBuffer: Hs,
2285
- isRegExp: ws,
2286
- maybeMap: zs,
2287
- merge: Ns
2288
- }, cn = Ds, Fe = an, be = Gt, Vs = Object.prototype.hasOwnProperty, vr = {
2277
+ }, ln = {
2278
+ arrayToObject: cn,
2279
+ assign: ws,
2280
+ combine: qs,
2281
+ compact: zs,
2282
+ decode: Gs,
2283
+ encode: Vs,
2284
+ isBuffer: Ws,
2285
+ isRegExp: Js,
2286
+ maybeMap: Ks,
2287
+ merge: Hs
2288
+ }, un = Ns, Ne = ln, Re = zt, Qs = Object.prototype.hasOwnProperty, br = {
2289
2289
  brackets: function(e) {
2290
2290
  return e + "[]";
2291
2291
  },
@@ -2296,78 +2296,78 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2296
2296
  repeat: function(e) {
2297
2297
  return e;
2298
2298
  }
2299
- }, $ = Array.isArray, Ws = Array.prototype.push, ln = function(t, e) {
2300
- Ws.apply(t, $(e) ? e : [e]);
2301
- }, Js = Date.prototype.toISOString, Cr = be.default, I = {
2299
+ }, H = Array.isArray, Ys = Array.prototype.push, fn = function(t, e) {
2300
+ Ys.apply(t, H(e) ? e : [e]);
2301
+ }, Xs = Date.prototype.toISOString, Rr = Re.default, _ = {
2302
2302
  addQueryPrefix: !1,
2303
2303
  allowDots: !1,
2304
2304
  charset: "utf-8",
2305
2305
  charsetSentinel: !1,
2306
2306
  delimiter: "&",
2307
2307
  encode: !0,
2308
- encoder: Fe.encode,
2308
+ encoder: Ne.encode,
2309
2309
  encodeValuesOnly: !1,
2310
- format: Cr,
2311
- formatter: be.formatters[Cr],
2310
+ format: Rr,
2311
+ formatter: Re.formatters[Rr],
2312
2312
  // deprecated
2313
2313
  indices: !1,
2314
2314
  serializeDate: function(e) {
2315
- return Js.call(e);
2315
+ return Xs.call(e);
2316
2316
  },
2317
2317
  skipNulls: !1,
2318
2318
  strictNullHandling: !1
2319
- }, qs = function(e) {
2319
+ }, Zs = function(e) {
2320
2320
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2321
- }, dt = {}, Ks = function t(e, r, n, i, o, s, a, l, c, u, f, p, m, h, y, T) {
2322
- for (var S = e, A = T, x = 0, H = !1; (A = A.get(dt)) !== void 0 && !H; ) {
2323
- var me = A.get(e);
2324
- if (x += 1, typeof me < "u") {
2325
- if (me === x)
2321
+ }, dt = {}, ea = function t(e, r, n, i, o, s, a, l, c, u, f, p, m, h, y, T) {
2322
+ for (var S = e, A = T, x = 0, G = !1; (A = A.get(dt)) !== void 0 && !G; ) {
2323
+ var ye = A.get(e);
2324
+ if (x += 1, typeof ye < "u") {
2325
+ if (ye === x)
2326
2326
  throw new RangeError("Cyclic object value");
2327
- H = !0;
2327
+ G = !0;
2328
2328
  }
2329
2329
  typeof A.get(dt) > "u" && (x = 0);
2330
2330
  }
2331
- if (typeof l == "function" ? S = l(r, S) : S instanceof Date ? S = f(S) : n === "comma" && $(S) && (S = Fe.maybeMap(S, function(ie) {
2332
- return ie instanceof Date ? f(ie) : ie;
2331
+ if (typeof l == "function" ? S = l(r, S) : S instanceof Date ? S = f(S) : n === "comma" && H(S) && (S = Ne.maybeMap(S, function(oe) {
2332
+ return oe instanceof Date ? f(oe) : oe;
2333
2333
  })), S === null) {
2334
2334
  if (o)
2335
- return a && !h ? a(r, I.encoder, y, "key", p) : r;
2335
+ return a && !h ? a(r, _.encoder, y, "key", p) : r;
2336
2336
  S = "";
2337
2337
  }
2338
- if (qs(S) || Fe.isBuffer(S)) {
2338
+ if (Zs(S) || Ne.isBuffer(S)) {
2339
2339
  if (a) {
2340
- var Oe = h ? r : a(r, I.encoder, y, "key", p);
2341
- return [m(Oe) + "=" + m(a(S, I.encoder, y, "value", p))];
2340
+ var Ae = h ? r : a(r, _.encoder, y, "key", p);
2341
+ return [m(Ae) + "=" + m(a(S, _.encoder, y, "value", p))];
2342
2342
  }
2343
2343
  return [m(r) + "=" + m(String(S))];
2344
2344
  }
2345
- var q = [];
2345
+ var K = [];
2346
2346
  if (typeof S > "u")
2347
- return q;
2348
- var G;
2349
- if (n === "comma" && $(S))
2350
- h && a && (S = Fe.maybeMap(S, a)), G = [{ value: S.length > 0 ? S.join(",") || null : void 0 }];
2351
- else if ($(l))
2352
- G = l;
2347
+ return K;
2348
+ var V;
2349
+ if (n === "comma" && H(S))
2350
+ h && a && (S = Ne.maybeMap(S, a)), V = [{ value: S.length > 0 ? S.join(",") || null : void 0 }];
2351
+ else if (H(l))
2352
+ V = l;
2353
2353
  else {
2354
- var te = Object.keys(S);
2355
- G = c ? te.sort(c) : te;
2354
+ var re = Object.keys(S);
2355
+ V = c ? re.sort(c) : re;
2356
2356
  }
2357
- for (var re = i && $(S) && S.length === 1 ? r + "[]" : r, ye = 0; ye < G.length; ++ye) {
2358
- var k = G[ye], j = typeof k == "object" && typeof k.value < "u" ? k.value : S[k];
2359
- if (!(s && j === null)) {
2360
- var ne = $(S) ? typeof n == "function" ? n(re, k) : re : re + (u ? "." + k : "[" + k + "]");
2357
+ for (var ne = i && H(S) && S.length === 1 ? r + "[]" : r, ge = 0; ge < V.length; ++ge) {
2358
+ var M = V[ge], $ = typeof M == "object" && typeof M.value < "u" ? M.value : S[M];
2359
+ if (!(s && $ === null)) {
2360
+ var ie = H(S) ? typeof n == "function" ? n(ne, M) : ne : ne + (u ? "." + M : "[" + M + "]");
2361
2361
  T.set(e, x);
2362
- var Ae = cn();
2363
- Ae.set(dt, T), ln(q, t(
2364
- j,
2365
- ne,
2362
+ var _e = un();
2363
+ _e.set(dt, T), fn(K, t(
2364
+ $,
2365
+ ie,
2366
2366
  n,
2367
2367
  i,
2368
2368
  o,
2369
2369
  s,
2370
- n === "comma" && h && $(S) ? null : a,
2370
+ n === "comma" && h && H(S) ? null : a,
2371
2371
  l,
2372
2372
  c,
2373
2373
  u,
@@ -2376,59 +2376,59 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2376
2376
  m,
2377
2377
  h,
2378
2378
  y,
2379
- Ae
2379
+ _e
2380
2380
  ));
2381
2381
  }
2382
2382
  }
2383
- return q;
2384
- }, Qs = function(e) {
2383
+ return K;
2384
+ }, ta = function(e) {
2385
2385
  if (!e)
2386
- return I;
2386
+ return _;
2387
2387
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2388
2388
  throw new TypeError("Encoder has to be a function.");
2389
- var r = e.charset || I.charset;
2389
+ var r = e.charset || _.charset;
2390
2390
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2391
2391
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2392
- var n = be.default;
2392
+ var n = Re.default;
2393
2393
  if (typeof e.format < "u") {
2394
- if (!Vs.call(be.formatters, e.format))
2394
+ if (!Qs.call(Re.formatters, e.format))
2395
2395
  throw new TypeError("Unknown format option provided.");
2396
2396
  n = e.format;
2397
2397
  }
2398
- var i = be.formatters[n], o = I.filter;
2399
- return (typeof e.filter == "function" || $(e.filter)) && (o = e.filter), {
2400
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : I.addQueryPrefix,
2401
- allowDots: typeof e.allowDots > "u" ? I.allowDots : !!e.allowDots,
2398
+ var i = Re.formatters[n], o = _.filter;
2399
+ return (typeof e.filter == "function" || H(e.filter)) && (o = e.filter), {
2400
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
2401
+ allowDots: typeof e.allowDots > "u" ? _.allowDots : !!e.allowDots,
2402
2402
  charset: r,
2403
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : I.charsetSentinel,
2404
- delimiter: typeof e.delimiter > "u" ? I.delimiter : e.delimiter,
2405
- encode: typeof e.encode == "boolean" ? e.encode : I.encode,
2406
- encoder: typeof e.encoder == "function" ? e.encoder : I.encoder,
2407
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : I.encodeValuesOnly,
2403
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
2404
+ delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
2405
+ encode: typeof e.encode == "boolean" ? e.encode : _.encode,
2406
+ encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
2407
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
2408
2408
  filter: o,
2409
2409
  format: n,
2410
2410
  formatter: i,
2411
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : I.serializeDate,
2412
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : I.skipNulls,
2411
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
2412
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
2413
2413
  sort: typeof e.sort == "function" ? e.sort : null,
2414
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : I.strictNullHandling
2414
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
2415
2415
  };
2416
- }, Ys = function(t, e) {
2417
- var r = t, n = Qs(e), i, o;
2418
- typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : $(n.filter) && (o = n.filter, i = o);
2416
+ }, ra = function(t, e) {
2417
+ var r = t, n = ta(e), i, o;
2418
+ typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : H(n.filter) && (o = n.filter, i = o);
2419
2419
  var s = [];
2420
2420
  if (typeof r != "object" || r === null)
2421
2421
  return "";
2422
2422
  var a;
2423
- e && e.arrayFormat in vr ? a = e.arrayFormat : e && "indices" in e ? a = e.indices ? "indices" : "repeat" : a = "indices";
2424
- var l = vr[a];
2423
+ e && e.arrayFormat in br ? a = e.arrayFormat : e && "indices" in e ? a = e.indices ? "indices" : "repeat" : a = "indices";
2424
+ var l = br[a];
2425
2425
  if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2426
2426
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2427
2427
  var c = l === "comma" && e && e.commaRoundTrip;
2428
2428
  i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
2429
- for (var u = cn(), f = 0; f < i.length; ++f) {
2429
+ for (var u = un(), f = 0; f < i.length; ++f) {
2430
2430
  var p = i[f];
2431
- n.skipNulls && r[p] === null || ln(s, Ks(
2431
+ n.skipNulls && r[p] === null || fn(s, ea(
2432
2432
  r[p],
2433
2433
  p,
2434
2434
  l,
@@ -2449,7 +2449,7 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2449
2449
  }
2450
2450
  var m = s.join(n.delimiter), h = n.addQueryPrefix === !0 ? "?" : "";
2451
2451
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), m.length > 0 ? h + m : "";
2452
- }, pe = an, Tt = Object.prototype.hasOwnProperty, Xs = Array.isArray, P = {
2452
+ }, de = ln, Tt = Object.prototype.hasOwnProperty, na = Array.isArray, P = {
2453
2453
  allowDots: !1,
2454
2454
  allowPrototypes: !1,
2455
2455
  allowSparse: !1,
@@ -2457,7 +2457,7 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2457
2457
  charset: "utf-8",
2458
2458
  charsetSentinel: !1,
2459
2459
  comma: !1,
2460
- decoder: pe.decode,
2460
+ decoder: de.decode,
2461
2461
  delimiter: "&",
2462
2462
  depth: 5,
2463
2463
  ignoreQueryPrefix: !1,
@@ -2466,30 +2466,30 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2466
2466
  parseArrays: !0,
2467
2467
  plainObjects: !1,
2468
2468
  strictNullHandling: !1
2469
- }, Zs = function(t) {
2469
+ }, ia = function(t) {
2470
2470
  return t.replace(/&#(\d+);/g, function(e, r) {
2471
2471
  return String.fromCharCode(parseInt(r, 10));
2472
2472
  });
2473
- }, un = function(t, e) {
2473
+ }, pn = function(t, e) {
2474
2474
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2475
- }, ea = "utf8=%26%2310003%3B", ta = "utf8=%E2%9C%93", ra = function(e, r) {
2475
+ }, oa = "utf8=%26%2310003%3B", sa = "utf8=%E2%9C%93", aa = function(e, r) {
2476
2476
  var n = { __proto__: null }, i = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, s = i.split(r.delimiter, o), a = -1, l, c = r.charset;
2477
2477
  if (r.charsetSentinel)
2478
2478
  for (l = 0; l < s.length; ++l)
2479
- s[l].indexOf("utf8=") === 0 && (s[l] === ta ? c = "utf-8" : s[l] === ea && (c = "iso-8859-1"), a = l, l = s.length);
2479
+ s[l].indexOf("utf8=") === 0 && (s[l] === sa ? c = "utf-8" : s[l] === oa && (c = "iso-8859-1"), a = l, l = s.length);
2480
2480
  for (l = 0; l < s.length; ++l)
2481
2481
  if (l !== a) {
2482
2482
  var u = s[l], f = u.indexOf("]="), p = f === -1 ? u.indexOf("=") : f + 1, m, h;
2483
- p === -1 ? (m = r.decoder(u, P.decoder, c, "key"), h = r.strictNullHandling ? null : "") : (m = r.decoder(u.slice(0, p), P.decoder, c, "key"), h = pe.maybeMap(
2484
- un(u.slice(p + 1), r),
2483
+ p === -1 ? (m = r.decoder(u, P.decoder, c, "key"), h = r.strictNullHandling ? null : "") : (m = r.decoder(u.slice(0, p), P.decoder, c, "key"), h = de.maybeMap(
2484
+ pn(u.slice(p + 1), r),
2485
2485
  function(y) {
2486
2486
  return r.decoder(y, P.decoder, c, "value");
2487
2487
  }
2488
- )), h && r.interpretNumericEntities && c === "iso-8859-1" && (h = Zs(h)), u.indexOf("[]=") > -1 && (h = Xs(h) ? [h] : h), Tt.call(n, m) ? n[m] = pe.combine(n[m], h) : n[m] = h;
2488
+ )), h && r.interpretNumericEntities && c === "iso-8859-1" && (h = ia(h)), u.indexOf("[]=") > -1 && (h = na(h) ? [h] : h), Tt.call(n, m) ? n[m] = de.combine(n[m], h) : n[m] = h;
2489
2489
  }
2490
2490
  return n;
2491
- }, na = function(t, e, r, n) {
2492
- for (var i = n ? e : un(e, r), o = t.length - 1; o >= 0; --o) {
2491
+ }, ca = function(t, e, r, n) {
2492
+ for (var i = n ? e : pn(e, r), o = t.length - 1; o >= 0; --o) {
2493
2493
  var s, a = t[o];
2494
2494
  if (a === "[]" && r.parseArrays)
2495
2495
  s = [].concat(i);
@@ -2501,7 +2501,7 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2501
2501
  i = s;
2502
2502
  }
2503
2503
  return i;
2504
- }, ia = function(e, r, n, i) {
2504
+ }, la = function(e, r, n, i) {
2505
2505
  if (e) {
2506
2506
  var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, s = /(\[[^[\]]*])/, a = /(\[[^[\]]*])/g, l = n.depth > 0 && s.exec(o), c = l ? o.slice(0, l.index) : o, u = [];
2507
2507
  if (c) {
@@ -2514,9 +2514,9 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2514
2514
  return;
2515
2515
  u.push(l[1]);
2516
2516
  }
2517
- return l && u.push("[" + o.slice(l.index) + "]"), na(u, r, n, i);
2517
+ return l && u.push("[" + o.slice(l.index) + "]"), ca(u, r, n, i);
2518
2518
  }
2519
- }, oa = function(e) {
2519
+ }, ua = function(e) {
2520
2520
  if (!e)
2521
2521
  return P;
2522
2522
  if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
@@ -2533,7 +2533,7 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2533
2533
  charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : P.charsetSentinel,
2534
2534
  comma: typeof e.comma == "boolean" ? e.comma : P.comma,
2535
2535
  decoder: typeof e.decoder == "function" ? e.decoder : P.decoder,
2536
- delimiter: typeof e.delimiter == "string" || pe.isRegExp(e.delimiter) ? e.delimiter : P.delimiter,
2536
+ delimiter: typeof e.delimiter == "string" || de.isRegExp(e.delimiter) ? e.delimiter : P.delimiter,
2537
2537
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2538
2538
  depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : P.depth,
2539
2539
  ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
@@ -2543,25 +2543,25 @@ var wt = Ut, he = Ho, Cs = ts, bs = wt("%TypeError%"), _e = wt("%WeakMap%", !0),
2543
2543
  plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : P.plainObjects,
2544
2544
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : P.strictNullHandling
2545
2545
  };
2546
- }, sa = function(t, e) {
2547
- var r = oa(e);
2546
+ }, fa = function(t, e) {
2547
+ var r = ua(e);
2548
2548
  if (t === "" || t === null || typeof t > "u")
2549
2549
  return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2550
- for (var n = typeof t == "string" ? ra(t, r) : t, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), s = 0; s < o.length; ++s) {
2551
- var a = o[s], l = ia(a, n[a], r, typeof t == "string");
2552
- i = pe.merge(i, l, r);
2553
- }
2554
- return r.allowSparse === !0 ? i : pe.compact(i);
2555
- }, aa = Ys, ca = sa, la = Gt, ua = {
2556
- formats: la,
2557
- parse: ca,
2558
- stringify: aa
2550
+ for (var n = typeof t == "string" ? aa(t, r) : t, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), s = 0; s < o.length; ++s) {
2551
+ var a = o[s], l = la(a, n[a], r, typeof t == "string");
2552
+ i = de.merge(i, l, r);
2553
+ }
2554
+ return r.allowSparse === !0 ? i : de.compact(i);
2555
+ }, pa = ra, da = fa, ha = zt, ma = {
2556
+ formats: ha,
2557
+ parse: da,
2558
+ stringify: pa
2559
2559
  };
2560
- const fa = /* @__PURE__ */ qr(ua);
2561
- class fn {
2560
+ const ya = /* @__PURE__ */ Qr(ma);
2561
+ class dn {
2562
2562
  constructor(e) {
2563
2563
  g(this, "axiosInstance");
2564
- this.axiosInstance = ho.create({
2564
+ this.axiosInstance = vo.create({
2565
2565
  baseURL: e,
2566
2566
  timeout: 12e4
2567
2567
  });
@@ -2575,7 +2575,7 @@ class fn {
2575
2575
  return new Promise((i, o) => {
2576
2576
  r && (n ? n.params = r : n = {
2577
2577
  params: r
2578
- }), n && (n.paramsSerializer = { serialize: (s, a) => fa.stringify(s, { indices: !1 }) }), this.axiosInstance.get(e, n ?? {}).then(({ data: s }) => i(s)).catch((s) => o(s));
2578
+ }), n && (n.paramsSerializer = { serialize: (s, a) => ya.stringify(s, { indices: !1 }) }), this.axiosInstance.get(e, n ?? {}).then(({ data: s }) => i(s)).catch((s) => o(s));
2579
2579
  });
2580
2580
  }
2581
2581
  Post(e, r, n) {
@@ -2596,7 +2596,7 @@ class fn {
2596
2596
  });
2597
2597
  }
2598
2598
  }
2599
- class pa {
2599
+ class ga {
2600
2600
  onAddLocalStream(e) {
2601
2601
  console.debug("onAddLocalStream:", e);
2602
2602
  }
@@ -2609,14 +2609,17 @@ class pa {
2609
2609
  onStartSuccess(e) {
2610
2610
  console.debug("onStartSuccess:", e);
2611
2611
  }
2612
+ onDataChannelMessage(e) {
2613
+ console.debug("onDataChannelMessage:", e);
2614
+ }
2612
2615
  }
2613
- var b = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.AUDIO = 1] = "AUDIO", t[t.VIDEO = 2] = "VIDEO", t[t.RTSP_PULL = 3] = "RTSP_PULL", t[t.AUDIO_PUSH = 4] = "AUDIO_PUSH", t[t.VIDEO_PUSH = 5] = "VIDEO_PUSH", t))(b || {}), K = /* @__PURE__ */ ((t) => (t.FRONT_FACING = "user", t.BACK_FACING = "environment", t))(K || {});
2614
- let pn = !0, dn = !0;
2615
- function Ne(t, e, r) {
2616
+ var v = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.AUDIO = 1] = "AUDIO", t[t.VIDEO = 2] = "VIDEO", t[t.RTSP_PULL = 3] = "RTSP_PULL", t[t.AUDIO_PUSH = 4] = "AUDIO_PUSH", t[t.VIDEO_PUSH = 5] = "VIDEO_PUSH", t[t.AUDIO_HALF = 6] = "AUDIO_HALF", t[t.VIDEO_HALF = 7] = "VIDEO_HALF", t))(v || {}), Q = /* @__PURE__ */ ((t) => (t.FRONT_FACING = "user", t.BACK_FACING = "environment", t))(Q || {});
2617
+ let hn = !0, mn = !0;
2618
+ function Ue(t, e, r) {
2616
2619
  const n = t.match(e);
2617
2620
  return n && n.length >= r && parseInt(n[r], 10);
2618
2621
  }
2619
- function ee(t, e, r) {
2622
+ function te(t, e, r) {
2620
2623
  if (!t.RTCPeerConnection)
2621
2624
  return;
2622
2625
  const n = t.RTCPeerConnection.prototype, i = n.addEventListener;
@@ -2660,41 +2663,41 @@ function ee(t, e, r) {
2660
2663
  configurable: !0
2661
2664
  });
2662
2665
  }
2663
- function da(t) {
2664
- return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (pn = t, t ? "adapter.js logging disabled" : "adapter.js logging enabled");
2666
+ function Sa(t) {
2667
+ return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (hn = t, t ? "adapter.js logging disabled" : "adapter.js logging enabled");
2665
2668
  }
2666
- function ha(t) {
2667
- return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (dn = !t, "adapter.js deprecation warnings " + (t ? "disabled" : "enabled"));
2669
+ function va(t) {
2670
+ return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (mn = !t, "adapter.js deprecation warnings " + (t ? "disabled" : "enabled"));
2668
2671
  }
2669
- function hn() {
2672
+ function yn() {
2670
2673
  if (typeof window == "object") {
2671
- if (pn)
2674
+ if (hn)
2672
2675
  return;
2673
2676
  typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
2674
2677
  }
2675
2678
  }
2676
- function zt(t, e) {
2677
- dn && console.warn(t + " is deprecated, please use " + e + " instead.");
2679
+ function Jt(t, e) {
2680
+ mn && console.warn(t + " is deprecated, please use " + e + " instead.");
2678
2681
  }
2679
- function ma(t) {
2682
+ function Ca(t) {
2680
2683
  const e = { browser: null, version: null };
2681
2684
  if (typeof t > "u" || !t.navigator || !t.navigator.userAgent)
2682
2685
  return e.browser = "Not a browser.", e;
2683
2686
  const { navigator: r } = t;
2684
2687
  if (r.mozGetUserMedia)
2685
- e.browser = "firefox", e.version = Ne(
2688
+ e.browser = "firefox", e.version = Ue(
2686
2689
  r.userAgent,
2687
2690
  /Firefox\/(\d+)\./,
2688
2691
  1
2689
2692
  );
2690
2693
  else if (r.webkitGetUserMedia || t.isSecureContext === !1 && t.webkitRTCPeerConnection)
2691
- e.browser = "chrome", e.version = Ne(
2694
+ e.browser = "chrome", e.version = Ue(
2692
2695
  r.userAgent,
2693
2696
  /Chrom(e|ium)\/(\d+)\./,
2694
2697
  2
2695
2698
  );
2696
2699
  else if (t.RTCPeerConnection && r.userAgent.match(/AppleWebKit\/(\d+)\./))
2697
- e.browser = "safari", e.version = Ne(
2700
+ e.browser = "safari", e.version = Ue(
2698
2701
  r.userAgent,
2699
2702
  /AppleWebKit\/(\d+)\./,
2700
2703
  1
@@ -2703,12 +2706,12 @@ function ma(t) {
2703
2706
  return e.browser = "Not a supported browser.", e;
2704
2707
  return e;
2705
2708
  }
2706
- function br(t) {
2709
+ function Tr(t) {
2707
2710
  return Object.prototype.toString.call(t) === "[object Object]";
2708
2711
  }
2709
- function mn(t) {
2710
- return br(t) ? Object.keys(t).reduce(function(e, r) {
2711
- const n = br(t[r]), i = n ? mn(t[r]) : t[r], o = n && !Object.keys(i).length;
2712
+ function gn(t) {
2713
+ return Tr(t) ? Object.keys(t).reduce(function(e, r) {
2714
+ const n = Tr(t[r]), i = n ? gn(t[r]) : t[r], o = n && !Object.keys(i).length;
2712
2715
  return i === void 0 || o ? e : Object.assign(e, { [r]: i });
2713
2716
  }, {}) : t;
2714
2717
  }
@@ -2719,7 +2722,7 @@ function Et(t, e, r) {
2719
2722
  });
2720
2723
  }));
2721
2724
  }
2722
- function Rr(t, e, r) {
2725
+ function Er(t, e, r) {
2723
2726
  const n = r ? "outbound-rtp" : "inbound-rtp", i = /* @__PURE__ */ new Map();
2724
2727
  if (e === null)
2725
2728
  return i;
@@ -2732,8 +2735,8 @@ function Rr(t, e, r) {
2732
2735
  });
2733
2736
  }), i;
2734
2737
  }
2735
- const Tr = hn;
2736
- function yn(t, e) {
2738
+ const Pr = yn;
2739
+ function Sn(t, e) {
2737
2740
  const r = t && t.navigator;
2738
2741
  if (!r.mediaDevices)
2739
2742
  return;
@@ -2778,12 +2781,12 @@ function yn(t, e) {
2778
2781
  return r.mediaDevices.enumerateDevices().then((p) => {
2779
2782
  p = p.filter((h) => h.kind === "videoinput");
2780
2783
  let m = p.find((h) => f.some((y) => h.label.toLowerCase().includes(y)));
2781
- return !m && p.length && f.includes("back") && (m = p[p.length - 1]), m && (a.video.deviceId = c.exact ? { exact: m.deviceId } : { ideal: m.deviceId }), a.video = n(a.video), Tr("chrome: " + JSON.stringify(a)), l(a);
2784
+ return !m && p.length && f.includes("back") && (m = p[p.length - 1]), m && (a.video.deviceId = c.exact ? { exact: m.deviceId } : { ideal: m.deviceId }), a.video = n(a.video), Pr("chrome: " + JSON.stringify(a)), l(a);
2782
2785
  });
2783
2786
  }
2784
2787
  a.video = n(a.video);
2785
2788
  }
2786
- return Tr("chrome: " + JSON.stringify(a)), l(a);
2789
+ return Pr("chrome: " + JSON.stringify(a)), l(a);
2787
2790
  }, o = function(a) {
2788
2791
  return e.version >= 64 ? a : {
2789
2792
  name: {
@@ -2825,7 +2828,7 @@ function yn(t, e) {
2825
2828
  };
2826
2829
  }
2827
2830
  }
2828
- function ya(t, e) {
2831
+ function ba(t, e) {
2829
2832
  if (!(t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices) && t.navigator.mediaDevices) {
2830
2833
  if (typeof e != "function") {
2831
2834
  console.error("shimGetDisplayMedia: getSourceId argument is not a function");
@@ -2845,10 +2848,10 @@ function ya(t, e) {
2845
2848
  };
2846
2849
  }
2847
2850
  }
2848
- function gn(t) {
2851
+ function vn(t) {
2849
2852
  t.MediaStream = t.MediaStream || t.webkitMediaStream;
2850
2853
  }
2851
- function Sn(t) {
2854
+ function Cn(t) {
2852
2855
  if (typeof t == "object" && t.RTCPeerConnection && !("ontrack" in t.RTCPeerConnection.prototype)) {
2853
2856
  Object.defineProperty(t.RTCPeerConnection.prototype, "ontrack", {
2854
2857
  get() {
@@ -2877,13 +2880,13 @@ function Sn(t) {
2877
2880
  }, this.addEventListener("addstream", this._ontrackpoly)), e.apply(this, arguments);
2878
2881
  };
2879
2882
  } else
2880
- ee(t, "track", (e) => (e.transceiver || Object.defineProperty(
2883
+ te(t, "track", (e) => (e.transceiver || Object.defineProperty(
2881
2884
  e,
2882
2885
  "transceiver",
2883
2886
  { value: { receiver: e.receiver } }
2884
2887
  ), e));
2885
2888
  }
2886
- function vn(t) {
2889
+ function bn(t) {
2887
2890
  if (typeof t == "object" && t.RTCPeerConnection && !("getSenders" in t.RTCPeerConnection.prototype) && "createDTMFSender" in t.RTCPeerConnection.prototype) {
2888
2891
  const e = function(i, o) {
2889
2892
  return {
@@ -2935,7 +2938,7 @@ function vn(t) {
2935
2938
  });
2936
2939
  }
2937
2940
  }
2938
- function Cn(t) {
2941
+ function Rn(t) {
2939
2942
  if (!t.RTCPeerConnection)
2940
2943
  return;
2941
2944
  const e = t.RTCPeerConnection.prototype.getStats;
@@ -2982,7 +2985,7 @@ function Cn(t) {
2982
2985
  }).then(i, o);
2983
2986
  };
2984
2987
  }
2985
- function bn(t) {
2988
+ function Tn(t) {
2986
2989
  if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender && t.RTCRtpReceiver))
2987
2990
  return;
2988
2991
  if (!("getStats" in t.RTCRtpSender.prototype)) {
@@ -3002,7 +3005,7 @@ function bn(t) {
3002
3005
  * send a track with the same id as sender.track as
3003
3006
  * it is not possible to identify the RTCRtpSender.
3004
3007
  */
3005
- Rr(s, o.track, !0)
3008
+ Er(s, o.track, !0)
3006
3009
  ));
3007
3010
  };
3008
3011
  }
@@ -3011,9 +3014,9 @@ function bn(t) {
3011
3014
  r && (t.RTCPeerConnection.prototype.getReceivers = function() {
3012
3015
  const i = r.apply(this, []);
3013
3016
  return i.forEach((o) => o._pc = this), i;
3014
- }), ee(t, "track", (n) => (n.receiver._pc = n.srcElement, n)), t.RTCRtpReceiver.prototype.getStats = function() {
3017
+ }), te(t, "track", (n) => (n.receiver._pc = n.srcElement, n)), t.RTCRtpReceiver.prototype.getStats = function() {
3015
3018
  const i = this;
3016
- return this._pc.getStats().then((o) => Rr(o, i.track, !1));
3019
+ return this._pc.getStats().then((o) => Er(o, i.track, !1));
3017
3020
  };
3018
3021
  }
3019
3022
  if (!("getStats" in t.RTCRtpSender.prototype && "getStats" in t.RTCRtpReceiver.prototype))
@@ -3036,7 +3039,7 @@ function bn(t) {
3036
3039
  return e.apply(this, arguments);
3037
3040
  };
3038
3041
  }
3039
- function Rn(t) {
3042
+ function En(t) {
3040
3043
  t.RTCPeerConnection.prototype.getLocalStreams = function() {
3041
3044
  return this._shimmedLocalStreams = this._shimmedLocalStreams || {}, Object.keys(this._shimmedLocalStreams).map((s) => this._shimmedLocalStreams[s][0]);
3042
3045
  };
@@ -3074,11 +3077,11 @@ function Rn(t) {
3074
3077
  }), i.apply(this, arguments);
3075
3078
  };
3076
3079
  }
3077
- function Tn(t, e) {
3080
+ function Pn(t, e) {
3078
3081
  if (!t.RTCPeerConnection)
3079
3082
  return;
3080
3083
  if (t.RTCPeerConnection.prototype.addTrack && e.version >= 65)
3081
- return Rn(t);
3084
+ return En(t);
3082
3085
  const r = t.RTCPeerConnection.prototype.getLocalStreams;
3083
3086
  t.RTCPeerConnection.prototype.getLocalStreams = function() {
3084
3087
  const u = r.apply(this);
@@ -3217,31 +3220,31 @@ function Pt(t, e) {
3217
3220
  t.RTCPeerConnection.prototype[r] = i[r];
3218
3221
  });
3219
3222
  }
3220
- function En(t, e) {
3221
- ee(t, "negotiationneeded", (r) => {
3223
+ function On(t, e) {
3224
+ te(t, "negotiationneeded", (r) => {
3222
3225
  const n = r.target;
3223
3226
  if (!((e.version < 72 || n.getConfiguration && n.getConfiguration().sdpSemantics === "plan-b") && n.signalingState !== "stable"))
3224
3227
  return r;
3225
3228
  });
3226
3229
  }
3227
- const Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3230
+ const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3228
3231
  __proto__: null,
3229
- fixNegotiationNeeded: En,
3230
- shimAddTrackRemoveTrack: Tn,
3231
- shimAddTrackRemoveTrackWithNative: Rn,
3232
- shimGetDisplayMedia: ya,
3233
- shimGetSendersWithDtmf: vn,
3234
- shimGetStats: Cn,
3235
- shimGetUserMedia: yn,
3236
- shimMediaStream: gn,
3237
- shimOnTrack: Sn,
3232
+ fixNegotiationNeeded: On,
3233
+ shimAddTrackRemoveTrack: Pn,
3234
+ shimAddTrackRemoveTrackWithNative: En,
3235
+ shimGetDisplayMedia: ba,
3236
+ shimGetSendersWithDtmf: bn,
3237
+ shimGetStats: Rn,
3238
+ shimGetUserMedia: Sn,
3239
+ shimMediaStream: vn,
3240
+ shimOnTrack: Cn,
3238
3241
  shimPeerConnection: Pt,
3239
- shimSenderReceiverGetStats: bn
3242
+ shimSenderReceiverGetStats: Tn
3240
3243
  }, Symbol.toStringTag, { value: "Module" }));
3241
- function Pn(t, e) {
3244
+ function An(t, e) {
3242
3245
  const r = t && t.navigator, n = t && t.MediaStreamTrack;
3243
3246
  if (r.getUserMedia = function(i, o, s) {
3244
- zt(
3247
+ Jt(
3245
3248
  "navigator.getUserMedia",
3246
3249
  "navigator.mediaDevices.getUserMedia"
3247
3250
  ), r.mediaDevices.getUserMedia(i).then(o, s);
@@ -3266,7 +3269,7 @@ function Pn(t, e) {
3266
3269
  }
3267
3270
  }
3268
3271
  }
3269
- function ga(t, e) {
3272
+ function Ra(t, e) {
3270
3273
  t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices || t.navigator.mediaDevices && (t.navigator.mediaDevices.getDisplayMedia = function(n) {
3271
3274
  if (!(n && n.video)) {
3272
3275
  const i = new DOMException("getDisplayMedia without video constraints is undefined");
@@ -3275,7 +3278,7 @@ function ga(t, e) {
3275
3278
  return n.video === !0 ? n.video = { mediaSource: e } : n.video.mediaSource = e, t.navigator.mediaDevices.getUserMedia(n);
3276
3279
  });
3277
3280
  }
3278
- function On(t) {
3281
+ function _n(t) {
3279
3282
  typeof t == "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", {
3280
3283
  get() {
3281
3284
  return { receiver: this.receiver };
@@ -3319,7 +3322,7 @@ function Ot(t, e) {
3319
3322
  }).then(s, a);
3320
3323
  };
3321
3324
  }
3322
- function An(t) {
3325
+ function In(t) {
3323
3326
  if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender) || t.RTCRtpSender && "getStats" in t.RTCRtpSender.prototype)
3324
3327
  return;
3325
3328
  const e = t.RTCPeerConnection.prototype.getSenders;
@@ -3335,28 +3338,28 @@ function An(t) {
3335
3338
  return this.track ? this._pc.getStats(this.track) : Promise.resolve(/* @__PURE__ */ new Map());
3336
3339
  };
3337
3340
  }
3338
- function In(t) {
3341
+ function Dn(t) {
3339
3342
  if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender) || t.RTCRtpSender && "getStats" in t.RTCRtpReceiver.prototype)
3340
3343
  return;
3341
3344
  const e = t.RTCPeerConnection.prototype.getReceivers;
3342
3345
  e && (t.RTCPeerConnection.prototype.getReceivers = function() {
3343
3346
  const n = e.apply(this, []);
3344
3347
  return n.forEach((i) => i._pc = this), n;
3345
- }), ee(t, "track", (r) => (r.receiver._pc = r.srcElement, r)), t.RTCRtpReceiver.prototype.getStats = function() {
3348
+ }), te(t, "track", (r) => (r.receiver._pc = r.srcElement, r)), t.RTCRtpReceiver.prototype.getStats = function() {
3346
3349
  return this._pc.getStats(this.track);
3347
3350
  };
3348
3351
  }
3349
- function _n(t) {
3352
+ function xn(t) {
3350
3353
  !t.RTCPeerConnection || "removeStream" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.removeStream = function(r) {
3351
- zt("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
3354
+ Jt("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
3352
3355
  n.track && r.getTracks().includes(n.track) && this.removeTrack(n);
3353
3356
  });
3354
3357
  });
3355
3358
  }
3356
- function xn(t) {
3359
+ function Ln(t) {
3357
3360
  t.DataChannel && !t.RTCDataChannel && (t.RTCDataChannel = t.DataChannel);
3358
3361
  }
3359
- function Dn(t) {
3362
+ function kn(t) {
3360
3363
  if (!(typeof t == "object" && t.RTCPeerConnection))
3361
3364
  return;
3362
3365
  const e = t.RTCPeerConnection.prototype.addTransceiver;
@@ -3388,7 +3391,7 @@ function Dn(t) {
3388
3391
  return o;
3389
3392
  });
3390
3393
  }
3391
- function Ln(t) {
3394
+ function Mn(t) {
3392
3395
  if (!(typeof t == "object" && t.RTCRtpSender))
3393
3396
  return;
3394
3397
  const e = t.RTCRtpSender.prototype.getParameters;
@@ -3397,7 +3400,7 @@ function Ln(t) {
3397
3400
  return "encodings" in n || (n.encodings = [].concat(this.sendEncodings || [{}])), n;
3398
3401
  });
3399
3402
  }
3400
- function kn(t) {
3403
+ function Fn(t) {
3401
3404
  if (!(typeof t == "object" && t.RTCPeerConnection))
3402
3405
  return;
3403
3406
  const e = t.RTCPeerConnection.prototype.createOffer;
@@ -3407,7 +3410,7 @@ function kn(t) {
3407
3410
  }) : e.apply(this, arguments);
3408
3411
  };
3409
3412
  }
3410
- function Mn(t) {
3413
+ function Nn(t) {
3411
3414
  if (!(typeof t == "object" && t.RTCPeerConnection))
3412
3415
  return;
3413
3416
  const e = t.RTCPeerConnection.prototype.createAnswer;
@@ -3417,22 +3420,22 @@ function Mn(t) {
3417
3420
  }) : e.apply(this, arguments);
3418
3421
  };
3419
3422
  }
3420
- const Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3423
+ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3421
3424
  __proto__: null,
3422
- shimAddTransceiver: Dn,
3423
- shimCreateAnswer: Mn,
3424
- shimCreateOffer: kn,
3425
- shimGetDisplayMedia: ga,
3426
- shimGetParameters: Ln,
3427
- shimGetUserMedia: Pn,
3428
- shimOnTrack: On,
3425
+ shimAddTransceiver: kn,
3426
+ shimCreateAnswer: Nn,
3427
+ shimCreateOffer: Fn,
3428
+ shimGetDisplayMedia: Ra,
3429
+ shimGetParameters: Mn,
3430
+ shimGetUserMedia: An,
3431
+ shimOnTrack: _n,
3429
3432
  shimPeerConnection: Ot,
3430
- shimRTCDataChannel: xn,
3431
- shimReceiverGetStats: In,
3432
- shimRemoveStream: _n,
3433
- shimSenderGetStats: An
3433
+ shimRTCDataChannel: Ln,
3434
+ shimReceiverGetStats: Dn,
3435
+ shimRemoveStream: xn,
3436
+ shimSenderGetStats: In
3434
3437
  }, Symbol.toStringTag, { value: "Module" }));
3435
- function Fn(t) {
3438
+ function Un(t) {
3436
3439
  if (!(typeof t != "object" || !t.RTCPeerConnection)) {
3437
3440
  if ("getLocalStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getLocalStreams = function() {
3438
3441
  return this._localStreams || (this._localStreams = []), this._localStreams;
@@ -3467,7 +3470,7 @@ function Fn(t) {
3467
3470
  });
3468
3471
  }
3469
3472
  }
3470
- function Nn(t) {
3473
+ function Bn(t) {
3471
3474
  if (!(typeof t != "object" || !t.RTCPeerConnection) && ("getRemoteStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getRemoteStreams = function() {
3472
3475
  return this._remoteStreams ? this._remoteStreams : [];
3473
3476
  }), !("onaddstream" in t.RTCPeerConnection.prototype))) {
@@ -3502,7 +3505,7 @@ function Nn(t) {
3502
3505
  };
3503
3506
  }
3504
3507
  }
3505
- function Un(t) {
3508
+ function jn(t) {
3506
3509
  if (typeof t != "object" || !t.RTCPeerConnection)
3507
3510
  return;
3508
3511
  const e = t.RTCPeerConnection.prototype, r = e.createOffer, n = e.createAnswer, i = e.setLocalDescription, o = e.setRemoteDescription, s = e.addIceCandidate;
@@ -3525,24 +3528,24 @@ function Un(t) {
3525
3528
  return u ? (f.then(c, u), Promise.resolve()) : f;
3526
3529
  }, e.addIceCandidate = a;
3527
3530
  }
3528
- function Bn(t) {
3531
+ function $n(t) {
3529
3532
  const e = t && t.navigator;
3530
3533
  if (e.mediaDevices && e.mediaDevices.getUserMedia) {
3531
3534
  const r = e.mediaDevices, n = r.getUserMedia.bind(r);
3532
- e.mediaDevices.getUserMedia = (i) => n(jn(i));
3535
+ e.mediaDevices.getUserMedia = (i) => n(Hn(i));
3533
3536
  }
3534
3537
  !e.getUserMedia && e.mediaDevices && e.mediaDevices.getUserMedia && (e.getUserMedia = (function(n, i, o) {
3535
3538
  e.mediaDevices.getUserMedia(n).then(i, o);
3536
3539
  }).bind(e));
3537
3540
  }
3538
- function jn(t) {
3541
+ function Hn(t) {
3539
3542
  return t && t.video !== void 0 ? Object.assign(
3540
3543
  {},
3541
3544
  t,
3542
- { video: mn(t.video) }
3545
+ { video: gn(t.video) }
3543
3546
  ) : t;
3544
3547
  }
3545
- function $n(t) {
3548
+ function wn(t) {
3546
3549
  if (!t.RTCPeerConnection)
3547
3550
  return;
3548
3551
  const e = t.RTCPeerConnection;
@@ -3551,7 +3554,7 @@ function $n(t) {
3551
3554
  const o = [];
3552
3555
  for (let s = 0; s < n.iceServers.length; s++) {
3553
3556
  let a = n.iceServers[s];
3554
- a.urls === void 0 && a.url ? (zt("RTCIceServer.url", "RTCIceServer.urls"), a = JSON.parse(JSON.stringify(a)), a.urls = a.url, delete a.url, o.push(a)) : o.push(n.iceServers[s]);
3557
+ a.urls === void 0 && a.url ? (Jt("RTCIceServer.url", "RTCIceServer.urls"), a = JSON.parse(JSON.stringify(a)), a.urls = a.url, delete a.url, o.push(a)) : o.push(n.iceServers[s]);
3555
3558
  }
3556
3559
  n.iceServers = o;
3557
3560
  }
@@ -3562,14 +3565,14 @@ function $n(t) {
3562
3565
  }
3563
3566
  });
3564
3567
  }
3565
- function wn(t) {
3568
+ function Gn(t) {
3566
3569
  typeof t == "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", {
3567
3570
  get() {
3568
3571
  return { receiver: this.receiver };
3569
3572
  }
3570
3573
  });
3571
3574
  }
3572
- function Hn(t) {
3575
+ function Vn(t) {
3573
3576
  const e = t.RTCPeerConnection.prototype.createOffer;
3574
3577
  t.RTCPeerConnection.prototype.createOffer = function(n) {
3575
3578
  if (n) {
@@ -3582,22 +3585,22 @@ function Hn(t) {
3582
3585
  return e.apply(this, arguments);
3583
3586
  };
3584
3587
  }
3585
- function Gn(t) {
3588
+ function zn(t) {
3586
3589
  typeof t != "object" || t.AudioContext || (t.AudioContext = t.webkitAudioContext);
3587
3590
  }
3588
- const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3591
+ const _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3589
3592
  __proto__: null,
3590
- shimAudioContext: Gn,
3591
- shimCallbacksAPI: Un,
3592
- shimConstraints: jn,
3593
- shimCreateOfferLegacy: Hn,
3594
- shimGetUserMedia: Bn,
3595
- shimLocalStreamsAPI: Fn,
3596
- shimRTCIceServerUrls: $n,
3597
- shimRemoteStreamsAPI: Nn,
3598
- shimTrackEventTransceiver: wn
3593
+ shimAudioContext: zn,
3594
+ shimCallbacksAPI: jn,
3595
+ shimConstraints: Hn,
3596
+ shimCreateOfferLegacy: Vn,
3597
+ shimGetUserMedia: $n,
3598
+ shimLocalStreamsAPI: Un,
3599
+ shimRTCIceServerUrls: wn,
3600
+ shimRemoteStreamsAPI: Bn,
3601
+ shimTrackEventTransceiver: Gn
3599
3602
  }, Symbol.toStringTag, { value: "Module" }));
3600
- var zn = { exports: {} };
3603
+ var Jn = { exports: {} };
3601
3604
  (function(t) {
3602
3605
  const e = {};
3603
3606
  e.generateIdentifier = function() {
@@ -3984,19 +3987,19 @@ t=0 0\r
3984
3987
  return !1;
3985
3988
  return !0;
3986
3989
  }, t.exports = e;
3987
- })(zn);
3988
- var Vn = zn.exports;
3989
- const ce = /* @__PURE__ */ qr(Vn), Sa = /* @__PURE__ */ Qn({
3990
+ })(Jn);
3991
+ var Wn = Jn.exports;
3992
+ const le = /* @__PURE__ */ Qr(Wn), Ta = /* @__PURE__ */ ti({
3990
3993
  __proto__: null,
3991
- default: ce
3992
- }, [Vn]);
3993
- function Ue(t) {
3994
+ default: le
3995
+ }, [Wn]);
3996
+ function Be(t) {
3994
3997
  if (!t.RTCIceCandidate || t.RTCIceCandidate && "foundation" in t.RTCIceCandidate.prototype)
3995
3998
  return;
3996
3999
  const e = t.RTCIceCandidate;
3997
4000
  t.RTCIceCandidate = function(n) {
3998
4001
  if (typeof n == "object" && n.candidate && n.candidate.indexOf("a=") === 0 && (n = JSON.parse(JSON.stringify(n)), n.candidate = n.candidate.substring(2)), n.candidate && n.candidate.length) {
3999
- const i = new e(n), o = ce.parseCandidate(n.candidate);
4002
+ const i = new e(n), o = le.parseCandidate(n.candidate);
4000
4003
  for (const s in o)
4001
4004
  s in i || Object.defineProperty(
4002
4005
  i,
@@ -4013,15 +4016,15 @@ function Ue(t) {
4013
4016
  }, i;
4014
4017
  }
4015
4018
  return new e(n);
4016
- }, t.RTCIceCandidate.prototype = e.prototype, ee(t, "icecandidate", (r) => (r.candidate && Object.defineProperty(r, "candidate", {
4019
+ }, t.RTCIceCandidate.prototype = e.prototype, te(t, "icecandidate", (r) => (r.candidate && Object.defineProperty(r, "candidate", {
4017
4020
  value: new t.RTCIceCandidate(r.candidate),
4018
4021
  writable: "false"
4019
4022
  }), r));
4020
4023
  }
4021
4024
  function At(t) {
4022
- !t.RTCIceCandidate || t.RTCIceCandidate && "relayProtocol" in t.RTCIceCandidate.prototype || ee(t, "icecandidate", (e) => {
4025
+ !t.RTCIceCandidate || t.RTCIceCandidate && "relayProtocol" in t.RTCIceCandidate.prototype || te(t, "icecandidate", (e) => {
4023
4026
  if (e.candidate) {
4024
- const r = ce.parseCandidate(e.candidate.candidate);
4027
+ const r = le.parseCandidate(e.candidate.candidate);
4025
4028
  r.type === "relay" && (e.candidate.relayProtocol = {
4026
4029
  0: "tls",
4027
4030
  1: "tcp",
@@ -4031,7 +4034,7 @@ function At(t) {
4031
4034
  return e;
4032
4035
  });
4033
4036
  }
4034
- function Be(t, e) {
4037
+ function je(t, e) {
4035
4038
  if (!t.RTCPeerConnection)
4036
4039
  return;
4037
4040
  "sctp" in t.RTCPeerConnection.prototype || Object.defineProperty(t.RTCPeerConnection.prototype, "sctp", {
@@ -4042,9 +4045,9 @@ function Be(t, e) {
4042
4045
  const r = function(a) {
4043
4046
  if (!a || !a.sdp)
4044
4047
  return !1;
4045
- const l = ce.splitSections(a.sdp);
4048
+ const l = le.splitSections(a.sdp);
4046
4049
  return l.shift(), l.some((c) => {
4047
- const u = ce.parseMLine(c);
4050
+ const u = le.parseMLine(c);
4048
4051
  return u && u.kind === "application" && u.protocol.indexOf("SCTP") !== -1;
4049
4052
  });
4050
4053
  }, n = function(a) {
@@ -4059,7 +4062,7 @@ function Be(t, e) {
4059
4062
  }, o = function(a, l) {
4060
4063
  let c = 65536;
4061
4064
  e.browser === "firefox" && e.version === 57 && (c = 65535);
4062
- const u = ce.matchPrefix(
4065
+ const u = le.matchPrefix(
4063
4066
  a.sdp,
4064
4067
  "a=max-message-size:"
4065
4068
  );
@@ -4090,7 +4093,7 @@ function Be(t, e) {
4090
4093
  return s.apply(this, arguments);
4091
4094
  };
4092
4095
  }
4093
- function je(t) {
4096
+ function $e(t) {
4094
4097
  if (!(t.RTCPeerConnection && "createDataChannel" in t.RTCPeerConnection.prototype))
4095
4098
  return;
4096
4099
  function e(n, i) {
@@ -4106,9 +4109,9 @@ function je(t) {
4106
4109
  t.RTCPeerConnection.prototype.createDataChannel = function() {
4107
4110
  const i = r.apply(this, arguments);
4108
4111
  return e(i, this), i;
4109
- }, ee(t, "datachannel", (n) => (e(n.channel, n.target), n));
4112
+ }, te(t, "datachannel", (n) => (e(n.channel, n.target), n));
4110
4113
  }
4111
- function It(t) {
4114
+ function _t(t) {
4112
4115
  if (!t.RTCPeerConnection || "connectionState" in t.RTCPeerConnection.prototype)
4113
4116
  return;
4114
4117
  const e = t.RTCPeerConnection.prototype;
@@ -4154,7 +4157,7 @@ function It(t) {
4154
4157
  };
4155
4158
  });
4156
4159
  }
4157
- function _t(t, e) {
4160
+ function It(t, e) {
4158
4161
  if (!t.RTCPeerConnection || e.browser === "chrome" && e.version >= 71 || e.browser === "safari" && e.version >= 605)
4159
4162
  return;
4160
4163
  const r = t.RTCPeerConnection.prototype.setRemoteDescription;
@@ -4172,7 +4175,7 @@ a=extmap-allow-mixed`) !== -1) {
4172
4175
  return r.apply(this, arguments);
4173
4176
  };
4174
4177
  }
4175
- function $e(t, e) {
4178
+ function He(t, e) {
4176
4179
  if (!(t.RTCPeerConnection && t.RTCPeerConnection.prototype))
4177
4180
  return;
4178
4181
  const r = t.RTCPeerConnection.prototype.addIceCandidate;
@@ -4202,48 +4205,48 @@ function we(t, e) {
4202
4205
  return i.sdp || i.type !== "offer" && i.type !== "answer" ? r.apply(this, [i]) : (i.type === "offer" ? this.createOffer : this.createAnswer).apply(this).then((s) => r.apply(this, [s]));
4203
4206
  });
4204
4207
  }
4205
- const va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4208
+ const Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4206
4209
  __proto__: null,
4207
- removeExtmapAllowMixed: _t,
4208
- shimAddIceCandidateNullOrEmpty: $e,
4209
- shimConnectionState: It,
4210
- shimMaxMessageSize: Be,
4210
+ removeExtmapAllowMixed: It,
4211
+ shimAddIceCandidateNullOrEmpty: He,
4212
+ shimConnectionState: _t,
4213
+ shimMaxMessageSize: je,
4211
4214
  shimParameterlessSetLocalDescription: we,
4212
- shimRTCIceCandidate: Ue,
4215
+ shimRTCIceCandidate: Be,
4213
4216
  shimRTCIceCandidateRelayProtocol: At,
4214
- shimSendThrowTypeError: je
4217
+ shimSendThrowTypeError: $e
4215
4218
  }, Symbol.toStringTag, { value: "Module" }));
4216
- function Ca({ window: t } = {}, e = {
4219
+ function Pa({ window: t } = {}, e = {
4217
4220
  shimChrome: !0,
4218
4221
  shimFirefox: !0,
4219
4222
  shimSafari: !0
4220
4223
  }) {
4221
- const r = hn, n = ma(t), i = {
4224
+ const r = yn, n = Ca(t), i = {
4222
4225
  browserDetails: n,
4223
- commonShim: va,
4224
- extractVersion: Ne,
4225
- disableLog: da,
4226
- disableWarnings: ha,
4226
+ commonShim: Ea,
4227
+ extractVersion: Ue,
4228
+ disableLog: Sa,
4229
+ disableWarnings: va,
4227
4230
  // Expose sdp as a convenience. For production apps include directly.
4228
- sdp: Sa
4231
+ sdp: Ta
4229
4232
  };
4230
4233
  switch (n.browser) {
4231
4234
  case "chrome":
4232
- if (!Er || !Pt || !e.shimChrome)
4235
+ if (!Or || !Pt || !e.shimChrome)
4233
4236
  return r("Chrome shim is not included in this adapter release."), i;
4234
4237
  if (n.version === null)
4235
4238
  return r("Chrome shim can not determine version, not shimming."), i;
4236
- r("adapter.js shimming chrome."), i.browserShim = Er, $e(t, n), we(t), yn(t, n), gn(t), Pt(t, n), Sn(t), Tn(t, n), vn(t), Cn(t), bn(t), En(t, n), Ue(t), At(t), It(t), Be(t, n), je(t), _t(t, n);
4239
+ r("adapter.js shimming chrome."), i.browserShim = Or, He(t, n), we(t), Sn(t, n), vn(t), Pt(t, n), Cn(t), Pn(t, n), bn(t), Rn(t), Tn(t), On(t, n), Be(t), At(t), _t(t), je(t, n), $e(t), It(t, n);
4237
4240
  break;
4238
4241
  case "firefox":
4239
- if (!Pr || !Ot || !e.shimFirefox)
4242
+ if (!Ar || !Ot || !e.shimFirefox)
4240
4243
  return r("Firefox shim is not included in this adapter release."), i;
4241
- r("adapter.js shimming firefox."), i.browserShim = Pr, $e(t, n), we(t), Pn(t, n), Ot(t, n), On(t), _n(t), An(t), In(t), xn(t), Dn(t), Ln(t), kn(t), Mn(t), Ue(t), It(t), Be(t, n), je(t);
4244
+ r("adapter.js shimming firefox."), i.browserShim = Ar, He(t, n), we(t), An(t, n), Ot(t, n), _n(t), xn(t), In(t), Dn(t), Ln(t), kn(t), Mn(t), Fn(t), Nn(t), Be(t), _t(t), je(t, n), $e(t);
4242
4245
  break;
4243
4246
  case "safari":
4244
- if (!Or || !e.shimSafari)
4247
+ if (!_r || !e.shimSafari)
4245
4248
  return r("Safari shim is not included in this adapter release."), i;
4246
- r("adapter.js shimming safari."), i.browserShim = Or, $e(t, n), we(t), $n(t), Hn(t), Un(t), Fn(t), Nn(t), wn(t), Bn(t), Gn(t), Ue(t), At(t), Be(t, n), je(t), _t(t, n);
4249
+ r("adapter.js shimming safari."), i.browserShim = _r, He(t, n), we(t), wn(t), Vn(t), jn(t), Un(t), Bn(t), Gn(t), $n(t), zn(t), Be(t), At(t), je(t, n), $e(t), It(t, n);
4247
4250
  break;
4248
4251
  default:
4249
4252
  r("Unsupported browser!");
@@ -4251,35 +4254,35 @@ function Ca({ window: t } = {}, e = {
4251
4254
  }
4252
4255
  return i;
4253
4256
  }
4254
- const Ar = Ca({ window: typeof window > "u" ? void 0 : window });
4255
- class Vt {
4257
+ const Ir = Pa({ window: typeof window > "u" ? void 0 : window });
4258
+ class Wt {
4256
4259
  constructor(e) {
4257
4260
  // private config: RTCConfiguration = { iceServers: [] }
4258
4261
  g(this, "peerConnection");
4259
4262
  // 定时发送数据,和后台保活的定时句柄
4260
4263
  // private interval ?: number
4261
- g(this, "sessionListener", new pa());
4264
+ g(this, "sessionListener", new ga());
4262
4265
  // 呼叫方向
4263
4266
  g(this, "isCallOut", !1);
4264
4267
  // 会话类型
4265
- g(this, "sessionType", b.UNKNOWN);
4268
+ g(this, "sessionType", v.UNKNOWN);
4266
4269
  // 本地媒体流
4267
4270
  g(this, "localStream");
4268
4271
  // 对端媒体流
4269
4272
  g(this, "remoteStream");
4270
4273
  // 数据通道
4271
- // private dataChannel ?: RTCDataChannel
4274
+ g(this, "dataChannel");
4272
4275
  // 是否设置了对端sdp
4273
4276
  g(this, "hasSetRemoteSdp", !1);
4274
4277
  // 前置摄像头 "user", 后置摄像头 "environment"
4275
- g(this, "facingMode", K.FRONT_FACING);
4278
+ g(this, "facingMode", Q.FRONT_FACING);
4276
4279
  // 摄像头切换中
4277
4280
  g(this, "facingChanging", !1);
4278
4281
  // 是否闭麦
4279
4282
  g(this, "muted", !1);
4280
4283
  // 是否打开本地摄像头
4281
4284
  g(this, "openCamera", !1);
4282
- this.sessionType = e, console.debug(Ar.browserDetails.browser + " " + Ar.browserDetails.version);
4285
+ this.sessionType = e, console.debug(Ir.browserDetails.browser + " " + Ir.browserDetails.version);
4283
4286
  }
4284
4287
  /**
4285
4288
  * 设置监听
@@ -4299,8 +4302,15 @@ class Vt {
4299
4302
  this.error(new Error("start failed, remoteSdp is null."));
4300
4303
  return;
4301
4304
  }
4302
- switch (this.isCallOut = e, this.hasSetRemoteSdp = !1, this.facingMode = K.FRONT_FACING, this.facingChanging = !1, this.muted = !1, this.peerConnection = new RTCPeerConnection({ iceServers: [] }), this.peerConnection.onnegotiationneeded = () => {
4303
- e ? this.peerConnection.createOffer().then((n) => {
4305
+ switch (this.isCallOut = e, this.hasSetRemoteSdp = !1, this.facingMode = Q.FRONT_FACING, this.facingChanging = !1, this.muted = !1, this.peerConnection = new RTCPeerConnection({ iceServers: [] }), this.peerConnection.onnegotiationneeded = () => {
4306
+ switch (this.sessionType) {
4307
+ case v.AUDIO_PUSH:
4308
+ case v.VIDEO_PUSH:
4309
+ case v.AUDIO_HALF:
4310
+ case v.VIDEO_HALF:
4311
+ this.createDataChannel();
4312
+ }
4313
+ e ? (console.debug("webrtc call out"), this.peerConnection.createOffer().then((n) => {
4304
4314
  console.debug("webrtc createOffer success"), this.peerConnection.setLocalDescription(n).then(() => {
4305
4315
  console.debug("webrtc setLocalDescription success");
4306
4316
  }).catch((i) => {
@@ -4308,7 +4318,7 @@ class Vt {
4308
4318
  });
4309
4319
  }).catch((n) => {
4310
4320
  this.error(n);
4311
- }) : (console.debug("webrtc call in: ", r), this.peerConnection.setRemoteDescription(
4321
+ })) : (console.debug("webrtc call in: ", r), this.peerConnection.setRemoteDescription(
4312
4322
  new RTCSessionDescription({ type: "offer", sdp: r })
4313
4323
  ).then(() => {
4314
4324
  console.debug("webrtc setRemoteDescription success"), this.peerConnection.createAnswer().then((n) => {
@@ -4323,8 +4333,6 @@ class Vt {
4323
4333
  }).catch((n) => {
4324
4334
  this.error(n);
4325
4335
  }));
4326
- }, this.peerConnection.onicecandidate = (n) => {
4327
- console.debug("webrtc onicecandidate", n.candidate);
4328
4336
  }, this.peerConnection.onicegatheringstatechange = () => {
4329
4337
  var n;
4330
4338
  console.debug("webrtc onicegatheringstatechange", (n = this.peerConnection) == null ? void 0 : n.iceGatheringState), this.peerConnection && this.peerConnection.iceGatheringState == "complete" && this.peerConnection.localDescription && this.sessionListener.onStartSuccess(this.peerConnection.localDescription);
@@ -4340,13 +4348,15 @@ class Vt {
4340
4348
  var i, o, s, a, l;
4341
4349
  console.debug("oniceconnectionstatechange", (i = this.peerConnection) == null ? void 0 : i.iceConnectionState), (((o = this.peerConnection) == null ? void 0 : o.iceConnectionState) == "completed" || ((s = this.peerConnection) == null ? void 0 : s.iceConnectionState) == "disconnected" || ((a = this.peerConnection) == null ? void 0 : a.iceConnectionState) == "failed" || ((l = this.peerConnection) == null ? void 0 : l.iceConnectionState) == "closed") && (this.stop(), this.sessionListener.onError(new Error("session closed.")));
4342
4350
  }, this.sessionType) {
4343
- case b.RTSP_PULL:
4344
- this.addTransceivers();
4351
+ case v.RTSP_PULL:
4352
+ this.addTransceivers(), this.createDataChannel();
4345
4353
  break;
4346
- case b.VIDEO:
4347
- case b.AUDIO:
4348
- case b.AUDIO_PUSH:
4349
- case b.VIDEO_PUSH:
4354
+ case v.AUDIO_PUSH:
4355
+ case v.VIDEO_PUSH:
4356
+ case v.AUDIO_HALF:
4357
+ case v.VIDEO_HALF:
4358
+ case v.VIDEO:
4359
+ case v.AUDIO:
4350
4360
  this.gotLocalMedia();
4351
4361
  break;
4352
4362
  default:
@@ -4359,15 +4369,11 @@ class Vt {
4359
4369
  * @param remoteSdp{string}
4360
4370
  */
4361
4371
  setRemoteSdp(e) {
4362
- if (this.peerConnection && this.isCallOut) {
4363
- if (this.hasSetRemoteSdp)
4364
- return;
4365
- this.hasSetRemoteSdp = !0, this.peerConnection.setRemoteDescription(new RTCSessionDescription({ type: "answer", sdp: e })).then(() => {
4366
- console.debug("webrtc setRemoteDescription success");
4367
- }).catch((r) => {
4368
- this.error(r);
4369
- });
4370
- }
4372
+ e && e !== "" && this.peerConnection && this.isCallOut && !this.hasSetRemoteSdp && (this.hasSetRemoteSdp = !0, this.peerConnection.setRemoteDescription(new RTCSessionDescription({ type: "answer", sdp: e })).then(() => {
4373
+ console.debug("webrtc setRemoteDescription success");
4374
+ }).catch((r) => {
4375
+ this.error(r), this.hasSetRemoteSdp = !1;
4376
+ }));
4371
4377
  }
4372
4378
  addRemoteCandidate(e) {
4373
4379
  this.peerConnection && e.forEach((r) => {
@@ -4376,12 +4382,20 @@ class Vt {
4376
4382
  }).catch((n) => console.log(n));
4377
4383
  });
4378
4384
  }
4385
+ /**
4386
+ * 通过数据通道发送数据
4387
+ * @param data
4388
+ */
4389
+ sendStringData(e) {
4390
+ this.dataChannel && this.dataChannel.send(e);
4391
+ }
4379
4392
  /**
4380
4393
  * 关闭会话
4381
4394
  */
4382
4395
  stop() {
4383
- console.debug("webrtc stop"), this.peerConnection && (this.peerConnection.close(), this.peerConnection = void 0), this.localStream && (this.localStream.getTracks().forEach((e) => {
4384
- this.localStream.removeTrack(e), e.stop();
4396
+ var e;
4397
+ console.debug("webrtc stop"), (this.sessionType == v.VIDEO_PUSH || this.sessionType == v.AUDIO_PUSH || this.sessionType == v.RTSP_PULL) && this.sendStringData("close"), (e = this.peerConnection) == null || e.close(), this.peerConnection = void 0, this.localStream && (this.localStream.getTracks().forEach((r) => {
4398
+ this.localStream.removeTrack(r), r.stop();
4385
4399
  }), this.localStream = void 0), this.remoteStream = void 0;
4386
4400
  }
4387
4401
  /**
@@ -4391,7 +4405,7 @@ class Vt {
4391
4405
  */
4392
4406
  changeFacing() {
4393
4407
  return new Promise((e, r) => {
4394
- if (this.sessionType !== b.VIDEO && this.sessionType !== b.VIDEO_PUSH) {
4408
+ if (this.sessionType !== v.VIDEO && this.sessionType !== v.VIDEO_PUSH) {
4395
4409
  r(new Error("not video call"));
4396
4410
  return;
4397
4411
  }
@@ -4445,25 +4459,15 @@ class Vt {
4445
4459
  });
4446
4460
  }
4447
4461
  gotLocalMedia() {
4448
- let e;
4462
+ let e = {
4463
+ audio: { echoCancellation: !0, noiseSuppression: !0 }
4464
+ };
4449
4465
  switch (this.sessionType) {
4450
- case b.AUDIO:
4451
- case b.AUDIO_PUSH:
4452
- e = {
4453
- audio: { echoCancellation: !0, noiseSuppression: !0 },
4454
- video: !1
4455
- };
4456
- break;
4457
- case b.VIDEO:
4458
- case b.VIDEO_PUSH:
4459
- e = {
4460
- audio: { echoCancellation: !0, noiseSuppression: !0 },
4461
- video: { height: { exact: 720 }, width: { exact: 1280 } }
4462
- };
4466
+ case v.VIDEO:
4467
+ case v.VIDEO_PUSH:
4468
+ case v.VIDEO_HALF:
4469
+ e.video = { height: { exact: 720 }, width: { exact: 1280 } };
4463
4470
  break;
4464
- default:
4465
- this.error(new Error("session type unknown."));
4466
- return;
4467
4471
  }
4468
4472
  navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? navigator.mediaDevices.getUserMedia(e).then((r) => {
4469
4473
  this.getMediaSuccess(r);
@@ -4472,62 +4476,47 @@ class Vt {
4472
4476
  }) : this.error(new Error("Browser does not support WebRTC"));
4473
4477
  }
4474
4478
  getMediaSuccess(e) {
4475
- console.debug("webrtc getMediaSuccess"), this.localStream = e, (this.sessionType === b.VIDEO || this.sessionType === b.VIDEO_PUSH) && this.sessionListener.onAddLocalStream(e), e.getTracks().forEach((r) => {
4479
+ console.debug("webrtc getMediaSuccess"), this.localStream = e, (this.sessionType === v.VIDEO || this.sessionType === v.VIDEO_PUSH) && this.sessionListener.onAddLocalStream(e), e.getTracks().forEach((r) => {
4476
4480
  switch (this.sessionType) {
4477
- case b.VIDEO:
4478
- case b.AUDIO:
4479
- this.peerConnection.addTrack(r, e);
4480
- break;
4481
- case b.AUDIO_PUSH:
4482
- case b.VIDEO_PUSH:
4481
+ case v.AUDIO_PUSH:
4482
+ case v.VIDEO_PUSH:
4483
4483
  this.peerConnection.addTransceiver(r, { direction: "sendonly", streams: [e] });
4484
4484
  break;
4485
+ default:
4486
+ this.peerConnection.addTrack(r, e);
4485
4487
  }
4486
4488
  }), this.muted = !1;
4487
4489
  }
4488
4490
  getMediaFailed(e) {
4489
- if (console.debug("webrtc getMediaFailed failed"), this.sessionType === b.VIDEO) {
4490
- console.error("get video media failed. maybe not found camera.", e), this.sessionType = b.AUDIO, this.gotLocalMedia();
4491
+ if (console.debug("webrtc getMediaFailed failed"), this.sessionType === v.VIDEO) {
4492
+ console.error("get video media failed. maybe not found camera.", e), this.sessionType = v.AUDIO, this.gotLocalMedia();
4491
4493
  return;
4492
- } else if (this.sessionType === b.VIDEO_PUSH) {
4493
- console.error("get video media failed. maybe not found camera.", e), this.sessionType = b.AUDIO_PUSH, this.gotLocalMedia();
4494
+ } else if (this.sessionType === v.VIDEO_PUSH) {
4495
+ console.error("get video media failed. maybe not found camera.", e), this.sessionType = v.AUDIO_PUSH, this.gotLocalMedia();
4494
4496
  return;
4495
4497
  }
4496
4498
  this.error(e);
4497
4499
  }
4498
- // private createDataChannel(){
4499
- // if(!this.peerConnection) {
4500
- // return
4501
- // }
4502
- // this.dataChannel = this.peerConnection.createDataChannel('command_channel');
4503
- //
4504
- // this.dataChannel.onclose = () => {
4505
- // if(this.interval) {
4506
- // clearInterval(this.interval);
4507
- // this.interval = undefined;
4508
- // }
4509
- // };
4510
- //
4511
- // this.dataChannel.onopen = () => {
4512
- // this.sendStringData('hello');
4513
- // this.interval = window.setInterval(() => {
4514
- // this.sendStringData('hello');
4515
- // }, 3000)
4516
- // };
4517
- //
4518
- // this.dataChannel.onmessage = e => {
4519
- // console.log("Message from DataChannel: ", e.data)
4520
- // };
4521
- // }
4522
- // private sendStringData(data: string) {
4523
- // if(this.dataChannel) {
4524
- // this.dataChannel!.send(data)
4525
- // }
4526
- // }
4500
+ createDataChannel() {
4501
+ this.peerConnection && (this.isCallOut ? (this.dataChannel = this.peerConnection.createDataChannel("command_channel"), this.dataChannel.onmessage = (e) => {
4502
+ this.onDataChannelReceive(e.data);
4503
+ }) : this.peerConnection.ondatachannel = (e) => {
4504
+ this.dataChannel = e.channel, this.dataChannel.onmessage = (r) => {
4505
+ this.onDataChannelReceive(r.data);
4506
+ };
4507
+ });
4508
+ }
4509
+ onDataChannelReceive(e) {
4510
+ if (e === "close") {
4511
+ console.debug("data channel receive from server: close"), this.dataChannel = void 0, this.stop();
4512
+ return;
4513
+ }
4514
+ (this.sessionType == v.VIDEO_HALF || this.sessionType == v.AUDIO_HALF) && this.sessionListener.onDataChannelMessage(e);
4515
+ }
4527
4516
  changeCameraLocalMedia() {
4528
4517
  return new Promise((e, r) => {
4529
4518
  let n;
4530
- if (this.facingMode === K.FRONT_FACING ? n = {
4519
+ if (this.facingMode === Q.FRONT_FACING ? n = {
4531
4520
  audio: { echoCancellation: !0, noiseSuppression: !0 },
4532
4521
  video: { height: { exact: 1280 }, width: { exact: 720 }, facingMode: "environment" }
4533
4522
  } : n = {
@@ -4561,13 +4550,13 @@ class Vt {
4561
4550
  }).catch((n) => {
4562
4551
  console.log(n);
4563
4552
  });
4564
- }), this.facingMode === K.FRONT_FACING ? this.facingMode = K.BACK_FACING : this.facingMode = K.FRONT_FACING, this.facingChanging = !1;
4553
+ }), this.facingMode === Q.FRONT_FACING ? this.facingMode = Q.BACK_FACING : this.facingMode = Q.FRONT_FACING, this.facingChanging = !1;
4565
4554
  }
4566
4555
  changeCameraFailed(e) {
4567
4556
  console.log(e), this.facingChanging = !1;
4568
4557
  }
4569
4558
  }
4570
- class ba {
4559
+ class Oa {
4571
4560
  onAddRemoteStream(e) {
4572
4561
  console.debug("onAddRemoteStream:", e);
4573
4562
  }
@@ -4575,15 +4564,15 @@ class ba {
4575
4564
  console.debug("onError:", e);
4576
4565
  }
4577
4566
  }
4578
- class Wn {
4567
+ class qn {
4579
4568
  constructor(e, r) {
4580
4569
  g(this, "url");
4581
4570
  g(this, "offerSdp");
4582
4571
  this.url = e, this.offerSdp = r;
4583
4572
  }
4584
4573
  }
4585
- const Ra = "/media-server/video-play/webrtc";
4586
- class Ta {
4574
+ const Aa = "/media-server/video-play/webrtc";
4575
+ class _a {
4587
4576
  /**
4588
4577
  *
4589
4578
  * @param rtsp_url{string} rtsp://[username]:[password]@[ip]:[port]/[path]
@@ -4591,8 +4580,8 @@ class Ta {
4591
4580
  */
4592
4581
  constructor(e, r) {
4593
4582
  g(this, "rtspUrl");
4594
- g(this, "webrtcSession", new Vt(b.RTSP_PULL));
4595
- g(this, "sessionListener", new ba());
4583
+ g(this, "webrtcSession", new Wt(v.RTSP_PULL));
4584
+ g(this, "sessionListener", new Oa());
4596
4585
  g(this, "httpClient");
4597
4586
  this.rtspUrl = e, this.httpClient = r, this.webrtcSession.setListener(this);
4598
4587
  }
@@ -4615,7 +4604,7 @@ class Ta {
4615
4604
  this.sessionListener.onError(e);
4616
4605
  }
4617
4606
  onStartSuccess(e) {
4618
- console.debug("rtsp offer:", e.sdp), this.httpClient.Post(Ra, new Wn(this.rtspUrl, e.sdp ?? "")).then((r) => {
4607
+ console.debug("rtsp offer:", e.sdp), this.httpClient.Post(Aa, new qn(this.rtspUrl, e.sdp ?? "")).then((r) => {
4619
4608
  var n, i, o, s;
4620
4609
  if (r.code != 200) {
4621
4610
  this.stop(), this.sessionListener.onError(new Error(r.message));
@@ -4626,23 +4615,25 @@ class Ta {
4626
4615
  this.stop(), this.sessionListener.onError(r);
4627
4616
  });
4628
4617
  }
4618
+ onDataChannelMessage(e) {
4619
+ }
4629
4620
  }
4630
- var R = /* @__PURE__ */ ((t) => (t[t.OFFLINE = -1] = "OFFLINE", t[t.IDLE = 0] = "IDLE", t[t.TRY = 1] = "TRY", t[t.RING = 2] = "RING", t[t.TALK = 3] = "TALK", t))(R || {}), N = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(N || {}), He = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(He || {}), Q = /* @__PURE__ */ ((t) => (t.IN = "in", t.OUT = "out", t))(Q || {}), D = /* @__PURE__ */ ((t) => (t.LOGIN = "login", t.LOGOUT = "logout", t.Invite = "invite", t.RING = "ring", t.ANSWER = "answer", t.HANGUP = "hangup", t.DTMF = "dtmf", t))(D || {});
4631
- function Ir() {
4621
+ var R = /* @__PURE__ */ ((t) => (t[t.OFFLINE = -1] = "OFFLINE", t[t.IDLE = 0] = "IDLE", t[t.TRY = 1] = "TRY", t[t.RING = 2] = "RING", t[t.TALK = 3] = "TALK", t))(R || {}), D = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(D || {}), U = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(U || {}), Y = /* @__PURE__ */ ((t) => (t.IN = "in", t.OUT = "out", t))(Y || {}), L = /* @__PURE__ */ ((t) => (t.LOGIN = "login", t.LOGOUT = "logout", t.Invite = "invite", t.RING = "ring", t.ANSWER = "answer", t.HANGUP = "hangup", t.DTMF = "dtmf", t))(L || {});
4622
+ function Dr() {
4632
4623
  try {
4633
4624
  return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
4634
4625
  } catch {
4635
4626
  return !1;
4636
4627
  }
4637
4628
  }
4638
- function Ea() {
4639
- return "browser-" + Pa() + Oa(6);
4629
+ function Ia() {
4630
+ return "browser-" + Da() + xa(6);
4640
4631
  }
4641
- function Pa() {
4632
+ function Da() {
4642
4633
  let t = /* @__PURE__ */ new Date();
4643
4634
  return `${t.getFullYear()}${t.getMonth()}${t.getDate()}${t.getHours()}${t.getMinutes()}${t.getSeconds()}`;
4644
4635
  }
4645
- function Oa(t) {
4636
+ function xa(t) {
4646
4637
  let e = "", r = [
4647
4638
  "0",
4648
4639
  "1",
@@ -4686,7 +4677,7 @@ function Oa(t) {
4686
4677
  e += r[Math.floor(Math.random() * (r.length - 1))];
4687
4678
  return e;
4688
4679
  }
4689
- class Aa {
4680
+ class La {
4690
4681
  constructor(e, r, n) {
4691
4682
  g(this, "tel");
4692
4683
  g(this, "mediaType");
@@ -4694,7 +4685,7 @@ class Aa {
4694
4685
  this.tel = e, this.callMode = n, this.mediaType = r;
4695
4686
  }
4696
4687
  }
4697
- class Ia {
4688
+ class Kn {
4698
4689
  onAddLocalStream(e) {
4699
4690
  console.debug("onAddLocalStream:", e);
4700
4691
  }
@@ -4723,13 +4714,13 @@ class Ia {
4723
4714
  console.debug("onInitResult: ", e);
4724
4715
  }
4725
4716
  }
4726
- class _a {
4727
- constructor(e, r) {
4717
+ class Qn {
4718
+ constructor(e, r, n) {
4728
4719
  g(this, "tel", "");
4729
4720
  g(this, "status", R.OFFLINE);
4730
- g(this, "mediaType", N.AUDIO);
4731
- g(this, "callMode", He.FULL);
4732
- g(this, "callDirect", Q.OUT);
4721
+ g(this, "mediaType", D.AUDIO);
4722
+ g(this, "callMode", U.FULL);
4723
+ g(this, "callDirect", Y.OUT);
4733
4724
  g(this, "called", "");
4734
4725
  g(this, "callId");
4735
4726
  g(this, "remoteSdp");
@@ -4741,9 +4732,10 @@ class _a {
4741
4732
  g(this, "wsConnected", !1);
4742
4733
  g(this, "closeBySelf", !1);
4743
4734
  g(this, "webrtcSession");
4744
- g(this, "sessionListener", new Ia());
4735
+ g(this, "sessionListener", new Kn());
4745
4736
  g(this, "wsUrl");
4746
- this.tel = r ?? "", this.wsUrl = e, this.ringBackTone.loop = !0, this.ringtone.loop = !0;
4737
+ g(this, "accountId");
4738
+ this.tel = r ?? "", this.wsUrl = e, this.accountId = n, this.ringBackTone.loop = !0, this.ringtone.loop = !0;
4747
4739
  }
4748
4740
  setCallSessionListener(e) {
4749
4741
  this.sessionListener = e;
@@ -4751,40 +4743,27 @@ class _a {
4751
4743
  init() {
4752
4744
  this.websocketInit(this.wsUrl);
4753
4745
  }
4754
- makeCall(e, r = N.AUDIO, n = He.FULL) {
4755
- var i;
4756
- try {
4757
- if (this.status == R.OFFLINE) {
4758
- console.debug("The initialization has not been completed yet. Please try again later"), this.sessionListener.onError(new Error("The initialization has not been completed yet. Please try again later"));
4759
- return;
4760
- }
4761
- if (this.status > R.IDLE) {
4762
- console.debug("Another call is currently in progress"), this.sessionListener.onError(new Error("Another call is currently in progress"));
4763
- return;
4764
- }
4765
- if (!Ir()) {
4766
- console.debug("Browser does not support WEBRTC"), this.sessionListener.onError(new Error("Browser does not support WEBRTC"));
4767
- return;
4768
- }
4769
- this.mediaType = r, this.callMode = n, this.called = e, this.callDirect = Q.OUT, this.callId = Ea(), this.webrtcCreate(N.VIDEO == r ? b.VIDEO : b.AUDIO), (i = this.webrtcSession) == null || i.start(!0), this.status = R.TRY;
4770
- } catch (o) {
4771
- this.status = R.IDLE, this.sessionListener.onError(new Error("" + o));
4772
- }
4746
+ audioCall(e) {
4747
+ this.makeCall(e);
4748
+ }
4749
+ videoCall(e) {
4750
+ this.makeCall(e, D.VIDEO);
4773
4751
  }
4774
4752
  answer() {
4775
- var e;
4753
+ var r;
4776
4754
  if (this.status != R.RING) {
4777
4755
  console.debug("session is not ring state");
4778
4756
  return;
4779
4757
  }
4780
- if (this.callDirect != Q.IN) {
4758
+ if (this.callDirect != Y.IN) {
4781
4759
  console.debug("session is call out, not allow answer");
4782
4760
  return;
4783
4761
  }
4784
- this.webrtcCreate(N.VIDEO == this.mediaType ? b.VIDEO : b.AUDIO), (e = this.webrtcSession) == null || e.start(!1, this.remoteSdp);
4762
+ let e;
4763
+ this.callMode == U.HALF ? e = D.VIDEO == this.mediaType ? v.VIDEO_HALF : v.AUDIO_HALF : e = D.VIDEO == this.mediaType ? v.VIDEO : v.AUDIO, this.webrtcCreate(e), (r = this.webrtcSession) == null || r.start(!1, this.remoteSdp);
4785
4764
  }
4786
4765
  hangup() {
4787
- this.status <= R.IDLE || (this.status == R.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect == Q.IN ? this.sendHangup(this.callId ?? "", 488) : this.sendHangup(this.callId ?? "", 801), this.close());
4766
+ this.status <= R.IDLE || (this.status == R.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect == Y.IN ? this.sendHangup(this.callId ?? "", 488) : this.sendHangup(this.callId ?? "", 801), this.close());
4788
4767
  }
4789
4768
  dtmf(e) {
4790
4769
  return this.status !== R.TALK ? !1 : (this.sendDtmf(e), !0);
@@ -4824,6 +4803,24 @@ class _a {
4824
4803
  var e;
4825
4804
  this.closeBySelf = !0, this.hangup(), this.close(), (e = this.ws) == null || e.close();
4826
4805
  }
4806
+ makeCall(e, r = D.AUDIO, n = U.FULL) {
4807
+ var i;
4808
+ try {
4809
+ if (!Dr()) {
4810
+ console.debug("Browser does not support WEBRTC"), this.sessionListener.onError(new Error("Browser does not support WEBRTC"));
4811
+ return;
4812
+ }
4813
+ if (this.status == R.OFFLINE) {
4814
+ console.debug("The initialization has not been completed yet. Please try again later"), this.sessionListener.onError(new Error("The initialization has not been completed yet. Please try again later"));
4815
+ return;
4816
+ }
4817
+ this.status > R.IDLE && (console.debug("Another call is currently in progress, hangup it"), this.hangup()), this.mediaType = r, this.callMode = n, this.called = e, this.callDirect = Y.OUT, this.callId = Ia();
4818
+ let o;
4819
+ this.callMode == U.HALF ? o = D.VIDEO == r ? v.VIDEO_HALF : v.AUDIO_HALF : o = D.VIDEO == r ? v.VIDEO : v.AUDIO, this.webrtcCreate(o), (i = this.webrtcSession) == null || i.start(!0), this.status = R.TRY;
4820
+ } catch (o) {
4821
+ this.status = R.IDLE, this.sessionListener.onError(new Error("" + o));
4822
+ }
4823
+ }
4827
4824
  close() {
4828
4825
  this.webrtcClose();
4829
4826
  try {
@@ -4843,19 +4840,19 @@ class _a {
4843
4840
  try {
4844
4841
  let n = JSON.parse(r.data);
4845
4842
  switch (console.debug("receive msg from server <<<<<<<<<<<<<<<", n), n.type) {
4846
- case D.Invite:
4843
+ case L.Invite:
4847
4844
  this.inviteHandler(n);
4848
4845
  break;
4849
- case D.ANSWER:
4846
+ case L.ANSWER:
4850
4847
  this.answerHandler(n);
4851
4848
  break;
4852
- case D.RING:
4849
+ case L.RING:
4853
4850
  this.ringHandler(n);
4854
4851
  break;
4855
- case D.HANGUP:
4852
+ case L.HANGUP:
4856
4853
  this.hangupHandler(n);
4857
4854
  break;
4858
- case D.LOGIN:
4855
+ case L.LOGIN:
4859
4856
  this.loginHandler(n);
4860
4857
  break;
4861
4858
  }
@@ -4876,21 +4873,22 @@ class _a {
4876
4873
  }
4877
4874
  sendLogin() {
4878
4875
  this.sendTo({
4879
- type: D.LOGIN,
4876
+ type: L.LOGIN,
4880
4877
  username: this.tel,
4881
- userAgent: this.getUserAgent()
4878
+ userAgent: this.getUserAgent(),
4879
+ accountId: this.accountId
4882
4880
  });
4883
4881
  }
4884
4882
  sendLogout() {
4885
4883
  this.sendTo({
4886
- type: D.LOGOUT,
4884
+ type: L.LOGOUT,
4887
4885
  username: this.tel
4888
4886
  }), this.status = R.OFFLINE;
4889
4887
  }
4890
4888
  sendInvite(e) {
4891
4889
  this.sendTo({
4892
4890
  callId: this.callId,
4893
- type: D.Invite,
4891
+ type: L.Invite,
4894
4892
  from: this.tel,
4895
4893
  to: this.called,
4896
4894
  callMode: this.callMode,
@@ -4900,14 +4898,14 @@ class _a {
4900
4898
  }
4901
4899
  sendRing() {
4902
4900
  this.sendTo({
4903
- type: D.RING,
4901
+ type: L.RING,
4904
4902
  callId: this.callId,
4905
4903
  code: 180
4906
4904
  }), this.status = R.RING;
4907
4905
  }
4908
4906
  sendAnswer(e) {
4909
4907
  this.sendTo({
4910
- type: D.ANSWER,
4908
+ type: L.ANSWER,
4911
4909
  callId: this.callId,
4912
4910
  mediaType: this.mediaType,
4913
4911
  sdp: e
@@ -4915,7 +4913,7 @@ class _a {
4915
4913
  }
4916
4914
  sendDtmf(e) {
4917
4915
  this.sendTo({
4918
- type: D.DTMF,
4916
+ type: L.DTMF,
4919
4917
  callId: this.callId,
4920
4918
  callInfo: "dtmf=" + e
4921
4919
  }), this.dtmfAudio.play().then(() => {
@@ -4923,7 +4921,7 @@ class _a {
4923
4921
  }
4924
4922
  sendHangup(e, r = 800) {
4925
4923
  this.sendTo({
4926
- type: D.HANGUP,
4924
+ type: L.HANGUP,
4927
4925
  callId: e,
4928
4926
  code: r
4929
4927
  }), e == this.callId && (this.status = R.IDLE, this.callId = void 0);
@@ -4941,21 +4939,21 @@ class _a {
4941
4939
  console.debug("receive invite, but callId is null.");
4942
4940
  return;
4943
4941
  }
4944
- if (!Ir()) {
4942
+ if (!Dr()) {
4945
4943
  console.debug("receive invite, but unsupported webrtc."), this.sendHangup(e.callId, 803);
4946
4944
  return;
4947
4945
  }
4948
4946
  if (this.status > R.IDLE) {
4949
- e.callId != this.callId && (console.debug("receive invite, but busy."), this.sendHangup(e.callId, 486));
4947
+ e.callId != this.callId ? (console.debug("receive invite, but busy."), this.sendHangup(e.callId, 486)) : console.debug("receive re invite. not process");
4950
4948
  return;
4951
4949
  }
4952
- this.callId = e.callId, this.mediaType = e.mediaType ?? N.AUDIO, this.callMode = e.callMode ?? He.FULL, this.called = e.from ?? "", this.callDirect = Q.IN, this.remoteSdp = e.sdp, this.candidate = e.candidate, this.sendRing(), this.ringtone.currentTime = 0, this.ringtone.play().then(() => {
4950
+ this.callId = e.callId, this.mediaType = e.mediaType ?? D.AUDIO, this.callMode = e.callMode ?? U.FULL, this.called = e.from ?? "", this.callDirect = Y.IN, this.remoteSdp = e.sdp, this.candidate = e.candidate, this.sendRing(), this.ringtone.currentTime = 0, this.ringtone.play().then(() => {
4953
4951
  }).catch(() => {
4954
- }), this.sessionListener.onNewCall(new Aa(this.called, this.mediaType, this.callMode));
4952
+ }), this.sessionListener.onNewCall(new La(this.called, this.mediaType, this.callMode));
4955
4953
  }
4956
4954
  ringHandler(e) {
4957
- var r;
4958
- !e.callId || e.callId != this.callId || (e.code == 183 ? ((r = this.webrtcSession) == null || r.setRemoteSdp(e.sdp ?? ""), this.ringBackTone.pause()) : (this.ringBackTone.currentTime = 0, this.ringBackTone.play().then(() => {
4955
+ var r, n;
4956
+ !e.callId || e.callId != this.callId || (e.code == 183 ? (this.ringBackTone.pause(), (r = this.webrtcSession) == null || r.setRemoteSdp(e.sdp ?? ""), (n = this.webrtcSession) == null || n.addRemoteCandidate(e.candidate ?? [])) : (this.ringBackTone.currentTime = 0, this.ringBackTone.play().then(() => {
4959
4957
  }).catch(() => {
4960
4958
  })), this.sessionListener.onRing(), this.status = R.RING);
4961
4959
  }
@@ -4971,7 +4969,7 @@ class _a {
4971
4969
  }
4972
4970
  /************************ WebrtcSession ***********************************/
4973
4971
  webrtcCreate(e) {
4974
- this.webrtcClose(), this.webrtcSession = new Vt(e), this.webrtcSession.setListener(this);
4972
+ this.webrtcClose(), this.webrtcSession = new Wt(e), this.webrtcSession.setListener(this);
4975
4973
  }
4976
4974
  webrtcClose() {
4977
4975
  var e;
@@ -4985,14 +4983,16 @@ class _a {
4985
4983
  this.sessionListener.onAddRemoteStream(e);
4986
4984
  }
4987
4985
  onError(e) {
4988
- this.close(), this.callDirect == Q.OUT && this.hangup(), this.sessionListener.onError(e);
4986
+ this.close(), this.callDirect == Y.OUT && this.hangup(), this.sessionListener.onError(e);
4989
4987
  }
4990
4988
  onStartSuccess(e) {
4991
4989
  var r;
4992
4990
  e.type == "answer" ? (this.sendAnswer(e.sdp ?? ""), (r = this.webrtcSession) == null || r.addRemoteCandidate(this.candidate ?? [])) : e.type == "offer" && this.sendInvite(e.sdp ?? "");
4993
4991
  }
4992
+ onDataChannelMessage(e) {
4993
+ }
4994
4994
  }
4995
- class xa {
4995
+ class ka {
4996
4996
  onError(e) {
4997
4997
  console.debug("onError:", e);
4998
4998
  }
@@ -5000,8 +5000,8 @@ class xa {
5000
5000
  console.debug("onAddLocalStream:", e);
5001
5001
  }
5002
5002
  }
5003
- const Da = "/media-server/broadcast/webrtc";
5004
- class La {
5003
+ const Ma = "/media-server/broadcast/webrtc";
5004
+ class Fa {
5005
5005
  /**
5006
5006
  *
5007
5007
  * @param tel{string} 广播的号码
@@ -5012,9 +5012,9 @@ class La {
5012
5012
  g(this, "tel");
5013
5013
  g(this, "mediaType");
5014
5014
  g(this, "webrtcSession");
5015
- g(this, "sessionListener", new xa());
5015
+ g(this, "sessionListener", new ka());
5016
5016
  g(this, "httpClient");
5017
- this.tel = e, this.httpClient = r, this.mediaType = n === N.VIDEO ? N.VIDEO : N.AUDIO, this.webrtcSession = new Vt(n == N.VIDEO ? b.VIDEO_PUSH : b.AUDIO_PUSH), this.webrtcSession.setListener(this);
5017
+ this.tel = e, this.httpClient = r, this.mediaType = n === D.VIDEO ? D.VIDEO : D.AUDIO, this.webrtcSession = new Wt(n == D.VIDEO ? v.VIDEO_PUSH : v.AUDIO_PUSH), this.webrtcSession.setListener(this);
5018
5018
  }
5019
5019
  setBroadcastSessionListener(e) {
5020
5020
  this.sessionListener = e;
@@ -5035,7 +5035,7 @@ class La {
5035
5035
  this.sessionListener.onError(e);
5036
5036
  }
5037
5037
  onStartSuccess(e) {
5038
- console.debug("offer:", e.sdp), this.httpClient.Post(Da, new Wn(this.tel, e.sdp ?? "")).then((r) => {
5038
+ console.debug("offer:", e.sdp), this.httpClient.Post(Ma, new qn(this.tel, e.sdp ?? "")).then((r) => {
5039
5039
  var n, i, o;
5040
5040
  if (r.code != 200) {
5041
5041
  this.stop(), this.sessionListener.onError(new Error(r.message));
@@ -5046,27 +5046,73 @@ class La {
5046
5046
  this.stop(), this.sessionListener.onError(r);
5047
5047
  });
5048
5048
  }
5049
+ onDataChannelMessage(e) {
5050
+ }
5051
+ }
5052
+ var Dt = /* @__PURE__ */ ((t) => (t.TB_REQUEST = "tb_request", t.TB_GRANTED = "tb_granted", t.TB_TAKEN = "tb_taken", t.TB_DENY = "tb_deny", t.TB_RELEASE = "tb_release", t.TB_IDLE = "tb_idle", t.TB_REVOKE = "tb_revoke", t))(Dt || {});
5053
+ class Na extends Kn {
5054
+ onTbcpMessage(e) {
5055
+ console.debug("onTbcpMessage:", e);
5056
+ }
5057
+ }
5058
+ class Ua extends Qn {
5059
+ constructor(r, n, i) {
5060
+ super(r, n, i);
5061
+ g(this, "sessionListener", new Na());
5062
+ }
5063
+ setCallSessionListener(r) {
5064
+ this.sessionListener = r;
5065
+ }
5066
+ audioHalfCall(r) {
5067
+ this.makeCall(r, D.AUDIO, U.HALF);
5068
+ }
5069
+ videoHalfCall(r) {
5070
+ this.makeCall(r, D.VIDEO, U.HALF);
5071
+ }
5072
+ tbcpRequest() {
5073
+ var r;
5074
+ this.callMode == U.HALF && this.status == R.TALK && ((r = this.webrtcSession) == null || r.sendStringData(JSON.stringify({
5075
+ type: Dt.TB_REQUEST
5076
+ })));
5077
+ }
5078
+ tbcpRelease() {
5079
+ var r;
5080
+ this.callMode == U.HALF && this.status == R.TALK && ((r = this.webrtcSession) == null || r.sendStringData(JSON.stringify({
5081
+ type: Dt.TB_RELEASE
5082
+ })));
5083
+ }
5084
+ onDataChannelMessage(r) {
5085
+ try {
5086
+ this.sessionListener.onTbcpMessage(JSON.parse(r));
5087
+ } catch (n) {
5088
+ console.debug("onDataChannelMessage err: ", n, r);
5089
+ }
5090
+ }
5091
+ }
5092
+ let qt = new dn("/"), Yn = "/media-server/ws/voip", Xn = "/media-server/ws/b-trun-c", xt = new URL((location.protocol == "https:" ? "wss://" : "ws://") + location.host + Yn), Lt = new URL((location.protocol == "https:" ? "wss://" : "ws://") + location.host + Xn);
5093
+ function ja(t) {
5094
+ qt = new dn(t);
5049
5095
  }
5050
- let Wt = new fn("/"), Jn = "/media-server/ws/voip", xt = new URL((location.protocol == "https:" ? "wss://" : "ws://") + location.host + Jn);
5051
- function Ma(t) {
5052
- Wt = new fn(t);
5096
+ function $a(t) {
5097
+ return new _a(t, qt);
5053
5098
  }
5054
- function Fa(t) {
5055
- return new Ta(t, Wt);
5099
+ function Ha(t, e) {
5100
+ return new Fa(t, qt, e);
5056
5101
  }
5057
- function Na(t, e) {
5058
- return new La(t, Wt, e);
5102
+ function wa(t) {
5103
+ xt = new URL(t), xt.pathname = Yn, Lt = new URL(t), Lt.pathname = Xn;
5059
5104
  }
5060
- function Ua(t) {
5061
- xt = new URL(t), xt.pathname = Jn;
5105
+ function Ga(t) {
5106
+ return new Qn(xt.toString(), t);
5062
5107
  }
5063
- function Ba(t) {
5064
- return new _a(xt.toString(), t);
5108
+ function Va(t, e) {
5109
+ return new Ua(Lt.toString(), t, e);
5065
5110
  }
5066
5111
  export {
5067
- Na as createBroadcastSession,
5068
- Ba as createCallSession,
5069
- Fa as createRtspPullSession,
5070
- Ma as videoModuleInit,
5071
- Ua as voipModuleInit
5112
+ Va as createAppCallSession,
5113
+ Ha as createBroadcastSession,
5114
+ Ga as createCallSession,
5115
+ $a as createRtspPullSession,
5116
+ ja as videoModuleInit,
5117
+ wa as voipModuleInit
5072
5118
  };