media-av 0.0.27 → 0.0.28
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 +973 -973
- package/dist/mediaAV.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/mediaAV.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var y = (t, e, r) =>
|
|
4
|
-
function
|
|
1
|
+
var gs = Object.defineProperty;
|
|
2
|
+
var Ss = (t, e, r) => e in t ? gs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var y = (t, e, r) => Ss(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
function vs(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,17 +17,17 @@ function gs(t, e) {
|
|
|
17
17
|
}
|
|
18
18
|
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function vi(t, e) {
|
|
21
21
|
return function() {
|
|
22
22
|
return t.apply(e, arguments);
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
const { toString:
|
|
25
|
+
const { toString: bs } = Object.prototype, { getPrototypeOf: ge } = Object, { iterator: ct, toStringTag: bi } = Symbol, ot = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ci = (t) => typeof t == "string" && (t === "__proto__" || t === "constructor" || t === "prototype"), Ri = (t, e, r) => t === Object.prototype || !r && e === null, Cs = (t) => {
|
|
26
26
|
if (!Object.isExtensible(t))
|
|
27
27
|
return !1;
|
|
28
28
|
const e = Object.getOwnPropertyNames(t);
|
|
29
29
|
return Object.getOwnPropertySymbols && e.push(...Object.getOwnPropertySymbols(t)), e.every((r) => {
|
|
30
|
-
if (
|
|
30
|
+
if (Ci(r))
|
|
31
31
|
return !1;
|
|
32
32
|
const n = Object.getOwnPropertyDescriptor(t, r);
|
|
33
33
|
return !!n && n.configurable && n.writable === !0;
|
|
@@ -40,54 +40,54 @@ const { toString: Ss } = Object.prototype, { getPrototypeOf: ge } = Object, { it
|
|
|
40
40
|
return !1;
|
|
41
41
|
n.push(r);
|
|
42
42
|
const i = ge(r);
|
|
43
|
-
if (
|
|
43
|
+
if (Ri(r, i, r === t))
|
|
44
44
|
return !1;
|
|
45
45
|
if (ot(r, e))
|
|
46
46
|
return !0;
|
|
47
47
|
r = i;
|
|
48
48
|
}
|
|
49
49
|
return !1;
|
|
50
|
-
},
|
|
50
|
+
}, Rs = (t, e) => t != null && st(t, e) ? t[e] : void 0, Es = (t) => {
|
|
51
51
|
if (t == null || typeof t != "object" && typeof t != "function")
|
|
52
52
|
return t;
|
|
53
53
|
const e = ge(t);
|
|
54
|
-
if (e === null &&
|
|
54
|
+
if (e === null && Cs(t))
|
|
55
55
|
return t;
|
|
56
56
|
const r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = [];
|
|
57
57
|
let o = t;
|
|
58
58
|
for (; o != null && i.indexOf(o) === -1; ) {
|
|
59
59
|
i.push(o);
|
|
60
60
|
const s = o === t ? e : ge(o);
|
|
61
|
-
if (
|
|
61
|
+
if (Ri(o, s, o === t))
|
|
62
62
|
break;
|
|
63
63
|
const a = Object.getOwnPropertyNames(o);
|
|
64
64
|
Object.getOwnPropertySymbols && a.push(...Object.getOwnPropertySymbols(o));
|
|
65
65
|
for (const c of a)
|
|
66
|
-
|
|
66
|
+
Ci(c) || ot(n, c) || (r[c] = t[c], n[c] = !0);
|
|
67
67
|
o = s;
|
|
68
68
|
}
|
|
69
69
|
return r;
|
|
70
|
-
},
|
|
71
|
-
const r =
|
|
70
|
+
}, Vr = /* @__PURE__ */ ((t) => (e) => {
|
|
71
|
+
const r = bs.call(e);
|
|
72
72
|
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
73
|
-
})(/* @__PURE__ */ Object.create(null)), ee = (t) => (t = t.toLowerCase(), (e) =>
|
|
73
|
+
})(/* @__PURE__ */ Object.create(null)), ee = (t) => (t = t.toLowerCase(), (e) => Vr(e) === t), Ht = (t) => (e) => typeof e === t, { isArray: Oe } = Array, we = Ht("undefined");
|
|
74
74
|
function qe(t) {
|
|
75
75
|
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && K(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
function
|
|
77
|
+
const Ei = ee("ArrayBuffer");
|
|
78
|
+
function Ts(t) {
|
|
79
79
|
let e;
|
|
80
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
80
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Ei(t.buffer), e;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const Ps = Ht("string"), K = Ht("function"), Ti = Ht("number"), ze = (t) => t !== null && typeof t == "object", Os = (t) => t === !0 || t === !1, Rt = (t) => {
|
|
83
83
|
if (!ze(t))
|
|
84
84
|
return !1;
|
|
85
85
|
const e = ge(t);
|
|
86
86
|
return (e === null || e === Object.prototype || ge(e) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
87
87
|
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
88
88
|
// only through shared or terminal prototype boundaries.
|
|
89
|
-
!st(t,
|
|
90
|
-
},
|
|
89
|
+
!st(t, bi) && !st(t, ct);
|
|
90
|
+
}, ws = (t) => {
|
|
91
91
|
if (!ze(t) || qe(t))
|
|
92
92
|
return !1;
|
|
93
93
|
try {
|
|
@@ -95,24 +95,24 @@ const Es = Ht("string"), K = Ht("function"), Ri = Ht("number"), ze = (t) => t !=
|
|
|
95
95
|
} catch {
|
|
96
96
|
return !1;
|
|
97
97
|
}
|
|
98
|
-
},
|
|
99
|
-
function
|
|
98
|
+
}, As = ee("Date"), _s = ee("File"), Ds = (t) => !!(t && typeof t.uri < "u"), Ls = (t) => t && typeof t.getParts < "u", xs = ee("Blob"), Is = ee("FileList"), ks = ee("Set"), Fs = (t) => ze(t) && K(t.pipe);
|
|
99
|
+
function Ms() {
|
|
100
100
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const un = Ms(), fn = typeof un.FormData < "u" ? un.FormData : void 0, Us = (t) => {
|
|
103
103
|
if (!t) return !1;
|
|
104
|
-
if (
|
|
104
|
+
if (fn && t instanceof fn) return !0;
|
|
105
105
|
const e = ge(t);
|
|
106
106
|
if (!e || e === Object.prototype || !K(t.append)) return !1;
|
|
107
|
-
const r =
|
|
107
|
+
const r = Vr(t);
|
|
108
108
|
return r === "formdata" || // detect form-data instance
|
|
109
109
|
r === "object" && K(t.toString) && t.toString() === "[object FormData]";
|
|
110
|
-
},
|
|
110
|
+
}, Ns = ee("URLSearchParams"), [Bs, $s, js, Hs] = [
|
|
111
111
|
"ReadableStream",
|
|
112
112
|
"Request",
|
|
113
113
|
"Response",
|
|
114
114
|
"Headers"
|
|
115
|
-
].map(ee),
|
|
115
|
+
].map(ee), Vs = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
116
116
|
function lt(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
117
117
|
if (t === null || typeof t > "u")
|
|
118
118
|
return;
|
|
@@ -129,7 +129,7 @@ function lt(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
|
129
129
|
a = o[n], e.call(null, t[a], a, t);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Pi(t, e) {
|
|
133
133
|
if (qe(t))
|
|
134
134
|
return null;
|
|
135
135
|
e = e.toLowerCase();
|
|
@@ -140,13 +140,13 @@ function Ei(t, e) {
|
|
|
140
140
|
return i;
|
|
141
141
|
return null;
|
|
142
142
|
}
|
|
143
|
-
const Ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
144
|
-
function
|
|
145
|
-
const { caseless: e, skipUndefined: r } =
|
|
143
|
+
const Ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Oi = (t) => !we(t) && t !== Ee;
|
|
144
|
+
function Er(...t) {
|
|
145
|
+
const { caseless: e, skipUndefined: r } = Oi(this) && this || {}, n = {}, i = (o, s) => {
|
|
146
146
|
if (s === "__proto__" || s === "constructor" || s === "prototype")
|
|
147
147
|
return;
|
|
148
|
-
const a = e && typeof s == "string" &&
|
|
149
|
-
Rt(c) && Rt(o) ? n[a] =
|
|
148
|
+
const a = e && typeof s == "string" && Pi(n, s) || s, c = ot(n, a) ? n[a] : void 0;
|
|
149
|
+
Rt(c) && Rt(o) ? n[a] = Er(c, o) : Rt(o) ? n[a] = Er({}, o) : Oe(o) ? n[a] = o.slice() : (!r || !we(o)) && (n[a] = o);
|
|
150
150
|
};
|
|
151
151
|
for (let o = 0, s = t.length; o < s; o++) {
|
|
152
152
|
const a = t[o];
|
|
@@ -155,19 +155,19 @@ function Rr(...t) {
|
|
|
155
155
|
const c = Object.getOwnPropertySymbols(a);
|
|
156
156
|
for (let l = 0; l < c.length; l++) {
|
|
157
157
|
const u = c[l];
|
|
158
|
-
|
|
158
|
+
ta.call(a, u) && i(a[u], u);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
return n;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const qs = (t, e, r, { allOwnKeys: n } = {}) => (lt(
|
|
164
164
|
e,
|
|
165
165
|
(i, o) => {
|
|
166
166
|
r && K(i) ? Object.defineProperty(t, o, {
|
|
167
167
|
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
168
168
|
// hijack defineProperty's accessor-vs-data resolution.
|
|
169
169
|
__proto__: null,
|
|
170
|
-
value:
|
|
170
|
+
value: vi(i, r),
|
|
171
171
|
writable: !0,
|
|
172
172
|
enumerable: !0,
|
|
173
173
|
configurable: !0
|
|
@@ -180,7 +180,7 @@ const Hs = (t, e, r, { allOwnKeys: n } = {}) => (lt(
|
|
|
180
180
|
});
|
|
181
181
|
},
|
|
182
182
|
{ allOwnKeys: n }
|
|
183
|
-
), t),
|
|
183
|
+
), t), zs = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Gs = (t, e, r, n) => {
|
|
184
184
|
t.prototype = Object.create(e.prototype, n), Object.defineProperty(t.prototype, "constructor", {
|
|
185
185
|
__proto__: null,
|
|
186
186
|
value: t,
|
|
@@ -191,7 +191,7 @@ const Hs = (t, e, r, { allOwnKeys: n } = {}) => (lt(
|
|
|
191
191
|
__proto__: null,
|
|
192
192
|
value: e.prototype
|
|
193
193
|
}), r && Object.assign(t.prototype, r);
|
|
194
|
-
},
|
|
194
|
+
}, Ws = (t, e, r, n) => {
|
|
195
195
|
let i, o, s;
|
|
196
196
|
const a = {};
|
|
197
197
|
if (e = e || {}, t == null) return e;
|
|
@@ -201,42 +201,42 @@ const Hs = (t, e, r, { allOwnKeys: n } = {}) => (lt(
|
|
|
201
201
|
t = r !== !1 && ge(t);
|
|
202
202
|
} while (t && (!r || r(t, e)) && t !== Object.prototype);
|
|
203
203
|
return e;
|
|
204
|
-
},
|
|
204
|
+
}, Ks = (t, e, r) => {
|
|
205
205
|
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
|
|
206
206
|
const n = t.indexOf(e, r);
|
|
207
207
|
return n !== -1 && n === r;
|
|
208
|
-
},
|
|
208
|
+
}, Js = (t) => {
|
|
209
209
|
if (!t) return null;
|
|
210
210
|
if (Oe(t)) return t;
|
|
211
211
|
let e = t.length;
|
|
212
|
-
if (!
|
|
212
|
+
if (!Ti(e)) return null;
|
|
213
213
|
const r = new Array(e);
|
|
214
214
|
for (; e-- > 0; )
|
|
215
215
|
r[e] = t[e];
|
|
216
216
|
return r;
|
|
217
|
-
},
|
|
217
|
+
}, Qs = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ge(Uint8Array)), Xs = (t, e) => {
|
|
218
218
|
const n = (t && t[ct]).call(t);
|
|
219
219
|
let i;
|
|
220
220
|
for (; (i = n.next()) && !i.done; ) {
|
|
221
221
|
const o = i.value;
|
|
222
222
|
e.call(t, o[0], o[1]);
|
|
223
223
|
}
|
|
224
|
-
},
|
|
224
|
+
}, Ys = (t, e) => {
|
|
225
225
|
let r;
|
|
226
226
|
const n = [];
|
|
227
227
|
for (; (r = t.exec(e)) !== null; )
|
|
228
228
|
n.push(r);
|
|
229
229
|
return n;
|
|
230
|
-
},
|
|
230
|
+
}, Zs = ee("HTMLFormElement"), ea = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, i) {
|
|
231
231
|
return n.toUpperCase() + i;
|
|
232
|
-
}), { propertyIsEnumerable:
|
|
232
|
+
}), { propertyIsEnumerable: ta } = Object.prototype, ra = ee("RegExp"), wi = (t, e) => {
|
|
233
233
|
const r = Object.getOwnPropertyDescriptors(t), n = {};
|
|
234
234
|
lt(r, (i, o) => {
|
|
235
235
|
let s;
|
|
236
236
|
(s = e(i, o, t)) !== !1 && (n[o] = s || i);
|
|
237
237
|
}), Object.defineProperties(t, n);
|
|
238
|
-
},
|
|
239
|
-
|
|
238
|
+
}, na = (t) => {
|
|
239
|
+
wi(t, (e, r) => {
|
|
240
240
|
if (K(t) && ["arguments", "caller", "callee"].includes(r))
|
|
241
241
|
return !1;
|
|
242
242
|
const n = t[r];
|
|
@@ -250,19 +250,19 @@ const Hs = (t, e, r, { allOwnKeys: n } = {}) => (lt(
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
|
-
},
|
|
253
|
+
}, ia = (t, e) => {
|
|
254
254
|
const r = {}, n = (i) => {
|
|
255
255
|
i.forEach((o) => {
|
|
256
256
|
r[o] = !0;
|
|
257
257
|
});
|
|
258
258
|
};
|
|
259
259
|
return Oe(t) ? n(t) : n(String(t).split(e)), r;
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
function
|
|
263
|
-
return !!(t && K(t.append) && t[
|
|
260
|
+
}, oa = () => {
|
|
261
|
+
}, sa = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
262
|
+
function aa(t) {
|
|
263
|
+
return !!(t && K(t.append) && t[bi] === "FormData" && t[ct]);
|
|
264
264
|
}
|
|
265
|
-
const
|
|
265
|
+
const ca = (t) => {
|
|
266
266
|
const e = /* @__PURE__ */ new WeakSet(), r = (n) => {
|
|
267
267
|
if (ze(n)) {
|
|
268
268
|
if (e.has(n))
|
|
@@ -272,7 +272,7 @@ const sa = (t) => {
|
|
|
272
272
|
if (!("toJSON" in n)) {
|
|
273
273
|
e.add(n);
|
|
274
274
|
let i;
|
|
275
|
-
if (
|
|
275
|
+
if (ks(n)) {
|
|
276
276
|
i = [];
|
|
277
277
|
for (const o of n) {
|
|
278
278
|
const s = r(o);
|
|
@@ -289,7 +289,7 @@ const sa = (t) => {
|
|
|
289
289
|
return n;
|
|
290
290
|
};
|
|
291
291
|
return r(t);
|
|
292
|
-
},
|
|
292
|
+
}, la = ee("AsyncFunction"), ua = (t) => t && (ze(t) || K(t)) && K(t.then) && K(t.catch), Ai = ((t, e) => t ? setImmediate : e ? ((r, n) => (Ee.addEventListener(
|
|
293
293
|
"message",
|
|
294
294
|
({ source: i, data: o }) => {
|
|
295
295
|
i === Ee && o === r && n.length && n.shift()();
|
|
@@ -297,72 +297,72 @@ const sa = (t) => {
|
|
|
297
297
|
!1
|
|
298
298
|
), (i) => {
|
|
299
299
|
n.push(i), Ee.postMessage(r, "*");
|
|
300
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", K(Ee.postMessage)),
|
|
300
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", K(Ee.postMessage)), fa = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ee) : typeof process < "u" && process.nextTick || Ai, _i = (t) => t != null && K(t[ct]), da = (t) => t != null && st(t, ct) && _i(t), d = {
|
|
301
301
|
isArray: Oe,
|
|
302
|
-
isArrayBuffer:
|
|
302
|
+
isArrayBuffer: Ei,
|
|
303
303
|
isBuffer: qe,
|
|
304
|
-
isFormData:
|
|
305
|
-
isArrayBufferView:
|
|
306
|
-
isString:
|
|
307
|
-
isNumber:
|
|
308
|
-
isBoolean:
|
|
304
|
+
isFormData: Us,
|
|
305
|
+
isArrayBufferView: Ts,
|
|
306
|
+
isString: Ps,
|
|
307
|
+
isNumber: Ti,
|
|
308
|
+
isBoolean: Os,
|
|
309
309
|
isObject: ze,
|
|
310
310
|
isPlainObject: Rt,
|
|
311
|
-
isEmptyObject:
|
|
312
|
-
isReadableStream:
|
|
313
|
-
isRequest:
|
|
314
|
-
isResponse:
|
|
315
|
-
isHeaders:
|
|
311
|
+
isEmptyObject: ws,
|
|
312
|
+
isReadableStream: Bs,
|
|
313
|
+
isRequest: $s,
|
|
314
|
+
isResponse: js,
|
|
315
|
+
isHeaders: Hs,
|
|
316
316
|
isUndefined: we,
|
|
317
|
-
isDate:
|
|
318
|
-
isFile:
|
|
319
|
-
isReactNativeBlob:
|
|
320
|
-
isReactNative:
|
|
321
|
-
isBlob:
|
|
322
|
-
isRegExp:
|
|
317
|
+
isDate: As,
|
|
318
|
+
isFile: _s,
|
|
319
|
+
isReactNativeBlob: Ds,
|
|
320
|
+
isReactNative: Ls,
|
|
321
|
+
isBlob: xs,
|
|
322
|
+
isRegExp: ra,
|
|
323
323
|
isFunction: K,
|
|
324
|
-
isStream:
|
|
325
|
-
isURLSearchParams:
|
|
326
|
-
isTypedArray:
|
|
327
|
-
isFileList:
|
|
324
|
+
isStream: Fs,
|
|
325
|
+
isURLSearchParams: Ns,
|
|
326
|
+
isTypedArray: Qs,
|
|
327
|
+
isFileList: Is,
|
|
328
328
|
forEach: lt,
|
|
329
|
-
merge:
|
|
330
|
-
extend:
|
|
331
|
-
trim:
|
|
332
|
-
stripBOM:
|
|
333
|
-
inherits:
|
|
334
|
-
toFlatObject:
|
|
335
|
-
kindOf:
|
|
329
|
+
merge: Er,
|
|
330
|
+
extend: qs,
|
|
331
|
+
trim: Vs,
|
|
332
|
+
stripBOM: zs,
|
|
333
|
+
inherits: Gs,
|
|
334
|
+
toFlatObject: Ws,
|
|
335
|
+
kindOf: Vr,
|
|
336
336
|
kindOfTest: ee,
|
|
337
|
-
endsWith:
|
|
338
|
-
toArray:
|
|
339
|
-
forEachEntry:
|
|
340
|
-
matchAll:
|
|
341
|
-
isHTMLForm:
|
|
337
|
+
endsWith: Ks,
|
|
338
|
+
toArray: Js,
|
|
339
|
+
forEachEntry: Xs,
|
|
340
|
+
matchAll: Ys,
|
|
341
|
+
isHTMLForm: Zs,
|
|
342
342
|
hasOwnProperty: ot,
|
|
343
343
|
hasOwnProp: ot,
|
|
344
344
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
345
345
|
hasOwnInPrototypeChain: st,
|
|
346
|
-
getSafeProp:
|
|
347
|
-
toSafeFlatObject:
|
|
348
|
-
reduceDescriptors:
|
|
349
|
-
freezeMethods:
|
|
350
|
-
toObjectSet:
|
|
351
|
-
toCamelCase:
|
|
352
|
-
noop:
|
|
353
|
-
toFiniteNumber:
|
|
354
|
-
findKey:
|
|
346
|
+
getSafeProp: Rs,
|
|
347
|
+
toSafeFlatObject: Es,
|
|
348
|
+
reduceDescriptors: wi,
|
|
349
|
+
freezeMethods: na,
|
|
350
|
+
toObjectSet: ia,
|
|
351
|
+
toCamelCase: ea,
|
|
352
|
+
noop: oa,
|
|
353
|
+
toFiniteNumber: sa,
|
|
354
|
+
findKey: Pi,
|
|
355
355
|
global: Ee,
|
|
356
|
-
isContextDefined:
|
|
357
|
-
isSpecCompliantForm:
|
|
358
|
-
toJSONObject:
|
|
359
|
-
isAsyncFn:
|
|
360
|
-
isThenable:
|
|
361
|
-
setImmediate:
|
|
362
|
-
asap:
|
|
363
|
-
isIterable:
|
|
364
|
-
isSafeIterable:
|
|
365
|
-
},
|
|
356
|
+
isContextDefined: Oi,
|
|
357
|
+
isSpecCompliantForm: aa,
|
|
358
|
+
toJSONObject: ca,
|
|
359
|
+
isAsyncFn: la,
|
|
360
|
+
isThenable: ua,
|
|
361
|
+
setImmediate: Ai,
|
|
362
|
+
asap: fa,
|
|
363
|
+
isIterable: _i,
|
|
364
|
+
isSafeIterable: da
|
|
365
|
+
}, pa = d.toObjectSet([
|
|
366
366
|
"age",
|
|
367
367
|
"authorization",
|
|
368
368
|
"content-length",
|
|
@@ -380,17 +380,17 @@ const sa = (t) => {
|
|
|
380
380
|
"referer",
|
|
381
381
|
"retry-after",
|
|
382
382
|
"user-agent"
|
|
383
|
-
]),
|
|
383
|
+
]), ha = (t) => {
|
|
384
384
|
const e = {};
|
|
385
385
|
let r, n, i;
|
|
386
386
|
return t && t.split(`
|
|
387
387
|
`).forEach(function(s) {
|
|
388
388
|
i = s.indexOf(":"), r = s.substring(0, i).trim().toLowerCase(), n = s.substring(i + 1).trim();
|
|
389
389
|
const a = d.hasOwnProp(e, r);
|
|
390
|
-
!r || a && d.hasOwnProp(
|
|
390
|
+
!r || a && d.hasOwnProp(pa, r) || (r === "set-cookie" ? a ? e[r].push(n) : e[r] = [n] : e[r] = a ? e[r] + ", " + n : n);
|
|
391
391
|
}), e;
|
|
392
392
|
};
|
|
393
|
-
function
|
|
393
|
+
function ma(t) {
|
|
394
394
|
let e = 0, r = t.length;
|
|
395
395
|
for (; e < r; ) {
|
|
396
396
|
const n = t.charCodeAt(e);
|
|
@@ -406,32 +406,32 @@ function pa(t) {
|
|
|
406
406
|
}
|
|
407
407
|
return e === 0 && r === t.length ? t : t.slice(e, r);
|
|
408
408
|
}
|
|
409
|
-
const
|
|
410
|
-
function
|
|
411
|
-
return d.isArray(t) ? t.map((r) =>
|
|
409
|
+
const ya = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), ga = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
410
|
+
function qr(t, e) {
|
|
411
|
+
return d.isArray(t) ? t.map((r) => qr(r, e)) : ma(String(t).replace(e, ""));
|
|
412
412
|
}
|
|
413
|
-
const
|
|
414
|
-
function
|
|
413
|
+
const Sa = (t) => qr(t, ya), va = (t) => qr(t, ga);
|
|
414
|
+
function Di(t) {
|
|
415
415
|
const e = /* @__PURE__ */ Object.create(null);
|
|
416
416
|
return d.forEach(t.toJSON(), (r, n) => {
|
|
417
|
-
e[n] =
|
|
417
|
+
e[n] = va(r);
|
|
418
418
|
}), e;
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const dn = Symbol("internals");
|
|
421
421
|
function Qe(t) {
|
|
422
422
|
return t && String(t).trim().toLowerCase();
|
|
423
423
|
}
|
|
424
424
|
function Et(t) {
|
|
425
|
-
return t === !1 || t == null ? t : d.isArray(t) ? t.map(Et) :
|
|
425
|
+
return t === !1 || t == null ? t : d.isArray(t) ? t.map(Et) : Sa(String(t));
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function ba(t) {
|
|
428
428
|
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
429
429
|
let n;
|
|
430
430
|
for (; n = r.exec(t); )
|
|
431
431
|
e[n[1]] = n[2];
|
|
432
432
|
return e;
|
|
433
433
|
}
|
|
434
|
-
const
|
|
434
|
+
const Ca = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
435
435
|
function Xt(t) {
|
|
436
436
|
let e = 0, r = t.length;
|
|
437
437
|
for (; e < r; ) {
|
|
@@ -448,7 +448,7 @@ function Xt(t) {
|
|
|
448
448
|
}
|
|
449
449
|
return e === 0 && r === t.length ? t : t.slice(e, r);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Ra(t) {
|
|
452
452
|
const e = t.length - 1;
|
|
453
453
|
if (e < 1 || t.charCodeAt(0) !== 34 || t.charCodeAt(e) !== 34)
|
|
454
454
|
return t;
|
|
@@ -461,7 +461,7 @@ function ba(t) {
|
|
|
461
461
|
}
|
|
462
462
|
return r;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Ea(t) {
|
|
465
465
|
const e = /* @__PURE__ */ Object.create(null), r = String(t);
|
|
466
466
|
let n = 0, i = !1, o = !1;
|
|
467
467
|
function s(a) {
|
|
@@ -469,13 +469,13 @@ function Ca(t) {
|
|
|
469
469
|
if (l < 1)
|
|
470
470
|
return;
|
|
471
471
|
const u = Xt(c.slice(0, l));
|
|
472
|
-
if (!
|
|
472
|
+
if (!Ca.test(u))
|
|
473
473
|
return;
|
|
474
474
|
const f = u.toLowerCase();
|
|
475
475
|
if (f === "__proto__" || f === "constructor" || f === "prototype")
|
|
476
476
|
return;
|
|
477
477
|
const p = Xt(c.slice(l + 1));
|
|
478
|
-
e[f] =
|
|
478
|
+
e[f] = Ra(p);
|
|
479
479
|
}
|
|
480
480
|
for (let a = 0; a < r.length; a++) {
|
|
481
481
|
const c = r.charCodeAt(a);
|
|
@@ -483,7 +483,7 @@ function Ca(t) {
|
|
|
483
483
|
}
|
|
484
484
|
return s(r.length), e;
|
|
485
485
|
}
|
|
486
|
-
const
|
|
486
|
+
const Ta = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
487
487
|
function Yt(t, e, r, n, i) {
|
|
488
488
|
if (d.isFunction(n))
|
|
489
489
|
return n.call(this, e, r);
|
|
@@ -494,10 +494,10 @@ function Yt(t, e, r, n, i) {
|
|
|
494
494
|
return n.test(e);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Pa(t) {
|
|
498
498
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Oa(t, e) {
|
|
501
501
|
const r = d.toCamelCase(" " + e);
|
|
502
502
|
["get", "set", "has"].forEach((n) => {
|
|
503
503
|
Object.defineProperty(t, n + r, {
|
|
@@ -527,8 +527,8 @@ let H = class {
|
|
|
527
527
|
const s = (a, c) => d.forEach(a, (l, u) => o(l, u, c));
|
|
528
528
|
if (d.isPlainObject(e) || e instanceof this.constructor)
|
|
529
529
|
s(e, r);
|
|
530
|
-
else if (d.isString(e) && (e = e.trim()) && !
|
|
531
|
-
s(
|
|
530
|
+
else if (d.isString(e) && (e = e.trim()) && !Ta(e))
|
|
531
|
+
s(ha(e), r);
|
|
532
532
|
else if (d.isObject(e) && d.isSafeIterable(e)) {
|
|
533
533
|
let a = /* @__PURE__ */ Object.create(null), c, l;
|
|
534
534
|
for (const u of e) {
|
|
@@ -549,7 +549,7 @@ let H = class {
|
|
|
549
549
|
if (!r)
|
|
550
550
|
return i;
|
|
551
551
|
if (r === !0)
|
|
552
|
-
return
|
|
552
|
+
return ba(i);
|
|
553
553
|
if (d.isFunction(r))
|
|
554
554
|
return r.call(this, i, n);
|
|
555
555
|
if (d.isRegExp(r))
|
|
@@ -593,7 +593,7 @@ let H = class {
|
|
|
593
593
|
r[s] = Et(i), delete r[o];
|
|
594
594
|
return;
|
|
595
595
|
}
|
|
596
|
-
const a = e ?
|
|
596
|
+
const a = e ? Pa(o) : String(o).trim();
|
|
597
597
|
a !== o && delete r[o], r[a] = Et(i), n[a] = !0;
|
|
598
598
|
}), this;
|
|
599
599
|
}
|
|
@@ -624,19 +624,19 @@ let H = class {
|
|
|
624
624
|
return e instanceof this ? e : new this(e);
|
|
625
625
|
}
|
|
626
626
|
static parseParameters(e) {
|
|
627
|
-
return
|
|
627
|
+
return Ea(e);
|
|
628
628
|
}
|
|
629
629
|
static concat(e, ...r) {
|
|
630
630
|
const n = new this(e);
|
|
631
631
|
return r.forEach((i) => n.set(i)), n;
|
|
632
632
|
}
|
|
633
633
|
static accessor(e) {
|
|
634
|
-
const n = (this[
|
|
634
|
+
const n = (this[dn] = this[dn] = {
|
|
635
635
|
accessors: {}
|
|
636
636
|
}).accessors, i = this.prototype;
|
|
637
637
|
function o(s) {
|
|
638
638
|
const a = Qe(s);
|
|
639
|
-
n[a] || (
|
|
639
|
+
n[a] || (Oa(i, s), n[a] = !0);
|
|
640
640
|
}
|
|
641
641
|
return d.isArray(e) ? e.forEach(o) : o(e), this;
|
|
642
642
|
}
|
|
@@ -659,8 +659,8 @@ d.reduceDescriptors(H.prototype, ({ value: t }, e) => {
|
|
|
659
659
|
};
|
|
660
660
|
});
|
|
661
661
|
d.freezeMethods(H);
|
|
662
|
-
const
|
|
663
|
-
function
|
|
662
|
+
const Mt = "[REDACTED ****]";
|
|
663
|
+
function wa(t) {
|
|
664
664
|
if (d.hasOwnProp(t, "toJSON"))
|
|
665
665
|
return !0;
|
|
666
666
|
let e = Object.getPrototypeOf(t);
|
|
@@ -671,7 +671,7 @@ function Pa(t) {
|
|
|
671
671
|
}
|
|
672
672
|
return !1;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Aa(t, e) {
|
|
675
675
|
const r = new Set(e.map((o) => String(o).toLowerCase())), n = [], i = (o) => {
|
|
676
676
|
if (o === null || typeof o != "object" || d.isBuffer(o)) return o;
|
|
677
677
|
if (n.indexOf(o) !== -1) return;
|
|
@@ -683,11 +683,11 @@ function Oa(t, e) {
|
|
|
683
683
|
d.isUndefined(l) || (s[c] = l);
|
|
684
684
|
});
|
|
685
685
|
else {
|
|
686
|
-
if (!d.isPlainObject(o) &&
|
|
686
|
+
if (!d.isPlainObject(o) && wa(o))
|
|
687
687
|
return n.pop(), o;
|
|
688
688
|
s = /* @__PURE__ */ Object.create(null);
|
|
689
689
|
for (const [a, c] of Object.entries(o)) {
|
|
690
|
-
const l = r.has(a.toLowerCase()) ?
|
|
690
|
+
const l = r.has(a.toLowerCase()) ? Mt : i(c);
|
|
691
691
|
d.isUndefined(l) || (s[a] = l);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
@@ -695,27 +695,27 @@ function Oa(t, e) {
|
|
|
695
695
|
};
|
|
696
696
|
return i(t);
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function pn(t) {
|
|
699
699
|
try {
|
|
700
700
|
return String(t);
|
|
701
701
|
} catch {
|
|
702
702
|
return "";
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function _a(t) {
|
|
706
706
|
return t.errors.map((r) => {
|
|
707
707
|
try {
|
|
708
|
-
return r && r.message ?
|
|
708
|
+
return r && r.message ? pn(r.message) : pn(r);
|
|
709
709
|
} catch {
|
|
710
710
|
return "";
|
|
711
711
|
}
|
|
712
712
|
}).filter(Boolean).join("; ") || t.name || "AggregateError";
|
|
713
713
|
}
|
|
714
|
-
let S = class
|
|
714
|
+
let S = class Li extends Error {
|
|
715
715
|
static from(e, r, n, i, o, s) {
|
|
716
716
|
let a = e.message;
|
|
717
|
-
!a && d.isArray(e.errors) && e.errors.length && (a =
|
|
718
|
-
const c = new
|
|
717
|
+
!a && d.isArray(e.errors) && e.errors.length && (a = _a(e));
|
|
718
|
+
const c = new Li(a, r || e.code, n, i, o);
|
|
719
719
|
return Object.defineProperty(c, "cause", {
|
|
720
720
|
__proto__: null,
|
|
721
721
|
value: e,
|
|
@@ -747,7 +747,7 @@ let S = class _i extends Error {
|
|
|
747
747
|
}), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), n && (this.config = n), i && (this.request = i), o && (this.response = o, this.status = o.status);
|
|
748
748
|
}
|
|
749
749
|
toJSON() {
|
|
750
|
-
const e = this.config, r = e && d.hasOwnProp(e, "redact") ? e.redact : void 0, n = d.isArray(r) && r.length > 0 ?
|
|
750
|
+
const e = this.config, r = e && d.hasOwnProp(e, "redact") ? e.redact : void 0, n = d.isArray(r) && r.length > 0 ? Aa(e, r) : d.toJSONObject(e);
|
|
751
751
|
return {
|
|
752
752
|
// Standard
|
|
753
753
|
message: this.message,
|
|
@@ -781,22 +781,22 @@ S.ERR_CANCELED = "ERR_CANCELED";
|
|
|
781
781
|
S.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
782
782
|
S.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
783
783
|
S.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
784
|
-
const
|
|
785
|
-
function
|
|
784
|
+
const Da = null, xi = 100;
|
|
785
|
+
function Tr(t) {
|
|
786
786
|
return d.isPlainObject(t) || d.isArray(t);
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Ii(t) {
|
|
789
789
|
return d.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
790
790
|
}
|
|
791
791
|
function Zt(t, e, r) {
|
|
792
792
|
return t ? t.concat(e).map(function(i, o) {
|
|
793
|
-
return i =
|
|
793
|
+
return i = Ii(i), !r && o ? "[" + i + "]" : i;
|
|
794
794
|
}).join(r ? "." : "") : e;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
return d.isArray(t) && !t.some(
|
|
796
|
+
function La(t) {
|
|
797
|
+
return d.isArray(t) && !t.some(Tr);
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const xa = d.toFlatObject(d, {}, null, function(e) {
|
|
800
800
|
return /^is[A-Z]/.test(e);
|
|
801
801
|
});
|
|
802
802
|
function Vt(t, e, r) {
|
|
@@ -806,7 +806,7 @@ function Vt(t, e, r) {
|
|
|
806
806
|
const n = (b, R) => {
|
|
807
807
|
const E = d.getSafeProp(r, b);
|
|
808
808
|
return d.isUndefined(E) ? R : E;
|
|
809
|
-
}, i = n("metaTokens", !0), o = n("visitor") || v, s = n("dots", !1), a = n("indexes", !1), c = n("Blob") || typeof Blob < "u" && Blob, l = n("maxDepth",
|
|
809
|
+
}, i = n("metaTokens", !0), o = n("visitor") || v, s = n("dots", !1), a = n("indexes", !1), c = n("Blob") || typeof Blob < "u" && Blob, l = n("maxDepth", xi), u = c && d.isSpecCompliantForm(e), f = [];
|
|
810
810
|
if (!d.isFunction(o))
|
|
811
811
|
throw new TypeError("visitor must be a function");
|
|
812
812
|
function p(b) {
|
|
@@ -853,8 +853,8 @@ function Vt(t, e, r) {
|
|
|
853
853
|
if (b && !E && typeof b == "object") {
|
|
854
854
|
if (d.endsWith(R, "{}"))
|
|
855
855
|
R = i ? R : R.slice(0, -2), b = g(b, 1);
|
|
856
|
-
else if (d.isArray(b) &&
|
|
857
|
-
return R =
|
|
856
|
+
else if (d.isArray(b) && La(b) || (d.isFileList(b) || d.endsWith(R, "[]")) && (C = d.toArray(b)))
|
|
857
|
+
return R = Ii(R), C.forEach(function(A, B) {
|
|
858
858
|
!(d.isUndefined(A) || A === null) && e.append(
|
|
859
859
|
// eslint-disable-next-line no-nested-ternary
|
|
860
860
|
a === !0 ? Zt([R], B, s) : a === null ? R : R + "[]",
|
|
@@ -862,12 +862,12 @@ function Vt(t, e, r) {
|
|
|
862
862
|
);
|
|
863
863
|
}), !1;
|
|
864
864
|
}
|
|
865
|
-
return
|
|
865
|
+
return Tr(b) ? !0 : (e.append(Zt(E, R, s), p(b)), !1);
|
|
866
866
|
}
|
|
867
|
-
const O = Object.assign(
|
|
867
|
+
const O = Object.assign(xa, {
|
|
868
868
|
defaultVisitor: v,
|
|
869
869
|
convertValue: p,
|
|
870
|
-
isVisitable:
|
|
870
|
+
isVisitable: Tr
|
|
871
871
|
});
|
|
872
872
|
function m(b, R, E = 0) {
|
|
873
873
|
if (!d.isUndefined(b)) {
|
|
@@ -882,7 +882,7 @@ function Vt(t, e, r) {
|
|
|
882
882
|
throw new TypeError("data must be an object");
|
|
883
883
|
return m(t), e;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function hn(t) {
|
|
886
886
|
const e = {
|
|
887
887
|
"!": "%21",
|
|
888
888
|
"'": "%27",
|
|
@@ -895,52 +895,52 @@ function pn(t) {
|
|
|
895
895
|
return e[n];
|
|
896
896
|
});
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function zr(t, e) {
|
|
899
899
|
this._pairs = [], t && Vt(t, this, e);
|
|
900
900
|
}
|
|
901
|
-
const
|
|
902
|
-
|
|
901
|
+
const ki = zr.prototype;
|
|
902
|
+
ki.append = function(e, r) {
|
|
903
903
|
this._pairs.push([e, r]);
|
|
904
904
|
};
|
|
905
|
-
|
|
906
|
-
const r = e ? (n) => e.call(this, n,
|
|
905
|
+
ki.toString = function(e) {
|
|
906
|
+
const r = e ? (n) => e.call(this, n, hn) : hn;
|
|
907
907
|
return this._pairs.map(function(i) {
|
|
908
908
|
return r(i[0]) + "=" + r(i[1]);
|
|
909
909
|
}, "").join("&");
|
|
910
910
|
};
|
|
911
|
-
function
|
|
911
|
+
function Ia(t) {
|
|
912
912
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function Fi(t, e, r) {
|
|
915
915
|
if (!e)
|
|
916
916
|
return t;
|
|
917
917
|
t = t || "";
|
|
918
918
|
const n = d.isFunction(r) ? {
|
|
919
919
|
serialize: r
|
|
920
|
-
} : r, i = d.getSafeProp(n, "encode") ||
|
|
920
|
+
} : r, i = d.getSafeProp(n, "encode") || Ia, o = d.getSafeProp(n, "serialize");
|
|
921
921
|
let s;
|
|
922
|
-
if (o ? s = o(e, n) : s = d.isURLSearchParams(e) ? e.toString() : new
|
|
922
|
+
if (o ? s = o(e, n) : s = d.isURLSearchParams(e) ? e.toString() : new zr(e, n).toString(i), s) {
|
|
923
923
|
const a = t.indexOf("#");
|
|
924
924
|
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
|
|
925
925
|
}
|
|
926
926
|
return t;
|
|
927
927
|
}
|
|
928
928
|
const Xe = Symbol("internals");
|
|
929
|
-
function
|
|
929
|
+
function Mi(t) {
|
|
930
930
|
return t ? t.length : 0;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function mn(t) {
|
|
933
933
|
if (t)
|
|
934
934
|
for (; t.length && t[t.length - 1] === null; )
|
|
935
935
|
t.pop();
|
|
936
936
|
}
|
|
937
937
|
function Ye(t, e) {
|
|
938
|
-
const r = t.handlers, n =
|
|
938
|
+
const r = t.handlers, n = Mi(r);
|
|
939
939
|
r !== e.handlersRef ? (e.handlersRef = r, e.handlerEntries.clear()) : n !== e.handlersLength && (n ? e.handlerEntries.forEach(function(o, s) {
|
|
940
940
|
r[o.index] !== o.handler && e.handlerEntries.delete(s);
|
|
941
941
|
}) : e.handlerEntries.clear()), e.handlersLength = n;
|
|
942
942
|
}
|
|
943
|
-
class
|
|
943
|
+
class yn {
|
|
944
944
|
constructor() {
|
|
945
945
|
this.handlers = [], this[Xe] = {
|
|
946
946
|
handlersRef: this.handlers,
|
|
@@ -987,7 +987,7 @@ class mn {
|
|
|
987
987
|
if (n) {
|
|
988
988
|
if (r.handlerEntries.delete(e), this.handlers[n.index] !== n.handler)
|
|
989
989
|
return;
|
|
990
|
-
this.handlers[n.index] = null, r.iterationDepth || (
|
|
990
|
+
this.handlers[n.index] = null, r.iterationDepth || (mn(this.handlers), r.handlersLength = this.handlers.length);
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
/**
|
|
@@ -1016,38 +1016,38 @@ class mn {
|
|
|
1016
1016
|
i !== null && e(i);
|
|
1017
1017
|
});
|
|
1018
1018
|
} finally {
|
|
1019
|
-
--r.iterationDepth || (Ye(this, r),
|
|
1019
|
+
--r.iterationDepth || (Ye(this, r), mn(this.handlers), r.handlersLength = Mi(this.handlers));
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
const
|
|
1023
|
+
const Gr = {
|
|
1024
1024
|
silentJSONParsing: !0,
|
|
1025
1025
|
forcedJSONParsing: !0,
|
|
1026
1026
|
clarifyTimeoutError: !1,
|
|
1027
1027
|
legacyInterceptorReqResOrdering: !0,
|
|
1028
1028
|
advertiseZstdAcceptEncoding: !1,
|
|
1029
1029
|
validateStatusUndefinedResolves: !0
|
|
1030
|
-
},
|
|
1030
|
+
}, ka = typeof URLSearchParams < "u" ? URLSearchParams : zr, Fa = typeof FormData < "u" ? FormData : null, Ma = typeof Blob < "u" ? Blob : null, Ua = {
|
|
1031
1031
|
isBrowser: !0,
|
|
1032
1032
|
classes: {
|
|
1033
|
-
URLSearchParams:
|
|
1034
|
-
FormData:
|
|
1035
|
-
Blob:
|
|
1033
|
+
URLSearchParams: ka,
|
|
1034
|
+
FormData: Fa,
|
|
1035
|
+
Blob: Ma
|
|
1036
1036
|
},
|
|
1037
1037
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1038
|
-
},
|
|
1039
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
1038
|
+
}, Wr = typeof window < "u" && typeof document < "u", Pr = typeof navigator == "object" && navigator || void 0, Na = Wr && (!Pr || ["ReactNative", "NativeScript", "NS"].indexOf(Pr.product) < 0), Ba = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1039
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $a = Wr && window.location.href || "http://localhost", ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1040
1040
|
__proto__: null,
|
|
1041
|
-
hasBrowserEnv:
|
|
1042
|
-
hasStandardBrowserEnv:
|
|
1043
|
-
hasStandardBrowserWebWorkerEnv:
|
|
1044
|
-
navigator:
|
|
1045
|
-
origin:
|
|
1041
|
+
hasBrowserEnv: Wr,
|
|
1042
|
+
hasStandardBrowserEnv: Na,
|
|
1043
|
+
hasStandardBrowserWebWorkerEnv: Ba,
|
|
1044
|
+
navigator: Pr,
|
|
1045
|
+
origin: $a
|
|
1046
1046
|
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
1047
|
-
...
|
|
1048
|
-
...
|
|
1047
|
+
...ja,
|
|
1048
|
+
...Ua
|
|
1049
1049
|
};
|
|
1050
|
-
function
|
|
1050
|
+
function Ha(t, e) {
|
|
1051
1051
|
return Vt(t, new N.classes.URLSearchParams(), {
|
|
1052
1052
|
visitor: function(r, n, i, o) {
|
|
1053
1053
|
return N.isNode && d.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
@@ -1055,22 +1055,22 @@ function $a(t, e) {
|
|
|
1055
1055
|
...e
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
|
-
const
|
|
1059
|
-
function
|
|
1060
|
-
if (t >
|
|
1058
|
+
const gn = xi;
|
|
1059
|
+
function Ui(t) {
|
|
1060
|
+
if (t > gn)
|
|
1061
1061
|
throw new S(
|
|
1062
|
-
"FormData field is too deeply nested (" + t + " levels). Max depth: " +
|
|
1062
|
+
"FormData field is too deeply nested (" + t + " levels). Max depth: " + gn,
|
|
1063
1063
|
S.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
1064
1064
|
);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Va(t) {
|
|
1067
1067
|
const e = [], r = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
1068
1068
|
let n;
|
|
1069
1069
|
for (; (n = r.exec(t)) !== null; )
|
|
1070
|
-
|
|
1070
|
+
Ui(e.length), e.push(n[0] === "[]" ? "" : n[1] || n[0]);
|
|
1071
1071
|
return e;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function qa(t) {
|
|
1074
1074
|
const e = {}, r = Object.keys(t);
|
|
1075
1075
|
let n;
|
|
1076
1076
|
const i = r.length;
|
|
@@ -1079,23 +1079,23 @@ function Ha(t) {
|
|
|
1079
1079
|
o = r[n], e[o] = t[o];
|
|
1080
1080
|
return e;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Ni(t) {
|
|
1083
1083
|
function e(r, n, i, o) {
|
|
1084
|
-
|
|
1084
|
+
Ui(o);
|
|
1085
1085
|
let s = r[o++];
|
|
1086
1086
|
if (s === "__proto__") return !0;
|
|
1087
1087
|
const a = Number.isFinite(+s), c = o >= r.length;
|
|
1088
|
-
return s = !s && d.isArray(i) ? i.length : s, c ? (d.hasOwnProp(i, s) ? i[s] = d.isArray(i[s]) ? i[s].concat(n) : [i[s], n] : i[s] = n, !a) : ((!d.hasOwnProp(i, s) || !d.isObject(i[s])) && (i[s] = []), e(r, n, i[s], o) && d.isArray(i[s]) && (i[s] =
|
|
1088
|
+
return s = !s && d.isArray(i) ? i.length : s, c ? (d.hasOwnProp(i, s) ? i[s] = d.isArray(i[s]) ? i[s].concat(n) : [i[s], n] : i[s] = n, !a) : ((!d.hasOwnProp(i, s) || !d.isObject(i[s])) && (i[s] = []), e(r, n, i[s], o) && d.isArray(i[s]) && (i[s] = qa(i[s])), !a);
|
|
1089
1089
|
}
|
|
1090
1090
|
if (d.isFormData(t) && d.isFunction(t.entries)) {
|
|
1091
1091
|
const r = {};
|
|
1092
1092
|
return d.forEachEntry(t, (n, i) => {
|
|
1093
|
-
e(
|
|
1093
|
+
e(Va(n), i, r, 0);
|
|
1094
1094
|
}), r;
|
|
1095
1095
|
}
|
|
1096
1096
|
return null;
|
|
1097
1097
|
}
|
|
1098
|
-
const
|
|
1098
|
+
const Bi = Object.freeze([
|
|
1099
1099
|
"get",
|
|
1100
1100
|
"delete",
|
|
1101
1101
|
"head",
|
|
@@ -1108,7 +1108,7 @@ const Mi = Object.freeze([
|
|
|
1108
1108
|
"unlink",
|
|
1109
1109
|
"query"
|
|
1110
1110
|
]), Ie = (t, e) => t != null && d.hasOwnProp(t, e) ? t[e] : void 0;
|
|
1111
|
-
function
|
|
1111
|
+
function za(t, e, r) {
|
|
1112
1112
|
if (d.isString(t))
|
|
1113
1113
|
try {
|
|
1114
1114
|
return (e || JSON.parse)(t), d.trim(t);
|
|
@@ -1119,13 +1119,13 @@ function Va(t, e, r) {
|
|
|
1119
1119
|
return (r || JSON.stringify)(t);
|
|
1120
1120
|
}
|
|
1121
1121
|
const ut = {
|
|
1122
|
-
transitional:
|
|
1122
|
+
transitional: Gr,
|
|
1123
1123
|
adapter: ["xhr", "http", "fetch"],
|
|
1124
1124
|
transformRequest: [
|
|
1125
1125
|
function(e, r) {
|
|
1126
1126
|
const n = r.getContentType() || "", i = n.indexOf("application/json") > -1, o = d.isObject(e);
|
|
1127
1127
|
if (o && d.isHTMLForm(e) && (e = new FormData(e)), d.isFormData(e))
|
|
1128
|
-
return i ? JSON.stringify(
|
|
1128
|
+
return i ? JSON.stringify(Ni(e)) : e;
|
|
1129
1129
|
if (d.isArrayBuffer(e) || d.isBuffer(e) || d.isStream(e) || d.isFile(e) || d.isBlob(e) || d.isReadableStream(e))
|
|
1130
1130
|
return e;
|
|
1131
1131
|
if (d.isArrayBufferView(e))
|
|
@@ -1136,7 +1136,7 @@ const ut = {
|
|
|
1136
1136
|
if (o) {
|
|
1137
1137
|
const c = Ie(this, "formSerializer");
|
|
1138
1138
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1139
|
-
return
|
|
1139
|
+
return Ha(e, c).toString();
|
|
1140
1140
|
if ((a = d.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
1141
1141
|
const l = Ie(this, "env"), u = l && l.FormData;
|
|
1142
1142
|
return Vt(
|
|
@@ -1146,7 +1146,7 @@ const ut = {
|
|
|
1146
1146
|
);
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
|
-
return o || i ? (r.setContentType("application/json", !1),
|
|
1149
|
+
return o || i ? (r.setContentType("application/json", !1), za(e)) : e;
|
|
1150
1150
|
}
|
|
1151
1151
|
],
|
|
1152
1152
|
transformResponse: [
|
|
@@ -1189,7 +1189,7 @@ const ut = {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
|
-
d.forEach(
|
|
1192
|
+
d.forEach(Bi, (t) => {
|
|
1193
1193
|
ut.headers[t] = {};
|
|
1194
1194
|
});
|
|
1195
1195
|
function er(t, e) {
|
|
@@ -1199,7 +1199,7 @@ function er(t, e) {
|
|
|
1199
1199
|
o = a.call(r, o, i.normalize(), e ? e.status : void 0);
|
|
1200
1200
|
}), i.normalize(), o;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function $i(t) {
|
|
1203
1203
|
return !!(t && t.__CANCEL__);
|
|
1204
1204
|
}
|
|
1205
1205
|
let ft = class extends S {
|
|
@@ -1216,7 +1216,7 @@ let ft = class extends S {
|
|
|
1216
1216
|
super(e ?? "canceled", S.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
1217
1217
|
}
|
|
1218
1218
|
};
|
|
1219
|
-
function
|
|
1219
|
+
function ji(t, e, r) {
|
|
1220
1220
|
const n = r.config.validateStatus;
|
|
1221
1221
|
!r.status || !n || n(r.status) ? t(r) : e(new S(
|
|
1222
1222
|
"Request failed with status code " + r.status,
|
|
@@ -1226,20 +1226,20 @@ function Bi(t, e, r) {
|
|
|
1226
1226
|
r
|
|
1227
1227
|
));
|
|
1228
1228
|
}
|
|
1229
|
-
const
|
|
1230
|
-
function
|
|
1229
|
+
const Ga = /[\t\n\r]/g;
|
|
1230
|
+
function Hi(t) {
|
|
1231
1231
|
if (typeof t != "string")
|
|
1232
1232
|
return t;
|
|
1233
1233
|
let e = 0;
|
|
1234
1234
|
for (; e < t.length && t.charCodeAt(e) <= 32; )
|
|
1235
1235
|
e++;
|
|
1236
|
-
return t.slice(e).replace(
|
|
1236
|
+
return t.slice(e).replace(Ga, "");
|
|
1237
1237
|
}
|
|
1238
1238
|
function tr(t) {
|
|
1239
1239
|
const e = /^([-+\w]{1,25}):(?:\/\/)?/.exec(t);
|
|
1240
1240
|
return e && e[1] || "";
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Wa(t, e) {
|
|
1243
1243
|
t = t || 10;
|
|
1244
1244
|
const r = new Array(t), n = new Array(t);
|
|
1245
1245
|
let i = 0, o = 0, s;
|
|
@@ -1255,7 +1255,7 @@ function za(t, e) {
|
|
|
1255
1255
|
return h ? Math.round(p * 1e3 / h) : void 0;
|
|
1256
1256
|
};
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function Ka(t, e) {
|
|
1259
1259
|
let r = 0, n = 1e3 / e, i, o;
|
|
1260
1260
|
const s = (u, f = Date.now()) => {
|
|
1261
1261
|
r = f, i = null, o && (clearTimeout(o), o = null), t(...u);
|
|
@@ -1267,10 +1267,10 @@ function Ga(t, e) {
|
|
|
1267
1267
|
}, n - p)));
|
|
1268
1268
|
}, () => i && s(i), (...u) => s(u)];
|
|
1269
1269
|
}
|
|
1270
|
-
const
|
|
1270
|
+
const Ut = (t, e, r = 3) => {
|
|
1271
1271
|
let n = 0;
|
|
1272
|
-
const i =
|
|
1273
|
-
return
|
|
1272
|
+
const i = Wa(50, 250);
|
|
1273
|
+
return Ka((o) => {
|
|
1274
1274
|
if (!o || !d.isNumber(o.loaded))
|
|
1275
1275
|
return;
|
|
1276
1276
|
const s = o.loaded, a = o.lengthComputable ? o.total : void 0, c = Math.max(0, a != null ? Math.min(s, a) : s), l = Math.max(0, c - n), u = i(l);
|
|
@@ -1288,7 +1288,7 @@ const Mt = (t, e, r = 3) => {
|
|
|
1288
1288
|
};
|
|
1289
1289
|
t(f);
|
|
1290
1290
|
}, r);
|
|
1291
|
-
},
|
|
1291
|
+
}, Sn = (t, e) => {
|
|
1292
1292
|
const r = t != null;
|
|
1293
1293
|
return [
|
|
1294
1294
|
(n) => e[0]({
|
|
@@ -1298,10 +1298,10 @@ const Mt = (t, e, r = 3) => {
|
|
|
1298
1298
|
}),
|
|
1299
1299
|
e[1]
|
|
1300
1300
|
];
|
|
1301
|
-
},
|
|
1301
|
+
}, vn = (t, e = d.asap) => (...r) => e(() => t(...r)), Ja = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, N.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
1302
1302
|
new URL(N.origin),
|
|
1303
1303
|
N.navigator && /(msie|trident)/i.test(N.navigator.userAgent)
|
|
1304
|
-
) : () => !0,
|
|
1304
|
+
) : () => !0, Qa = N.hasStandardBrowserEnv ? (
|
|
1305
1305
|
// Standard browser envs support document.cookie
|
|
1306
1306
|
{
|
|
1307
1307
|
write(t, e, r, n, i, o, s) {
|
|
@@ -1339,10 +1339,10 @@ const Mt = (t, e, r = 3) => {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
);
|
|
1342
|
-
function
|
|
1342
|
+
function Xa(t) {
|
|
1343
1343
|
return typeof t != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function Ya(t, e) {
|
|
1346
1346
|
if (!e)
|
|
1347
1347
|
return t;
|
|
1348
1348
|
let r = t.length;
|
|
@@ -1350,34 +1350,34 @@ function Qa(t, e) {
|
|
|
1350
1350
|
r--;
|
|
1351
1351
|
return t.slice(0, r) + "/" + e.replace(/^\/+/, "");
|
|
1352
1352
|
}
|
|
1353
|
-
const
|
|
1354
|
-
function
|
|
1355
|
-
return t && t.replace(/(^|&)([^=&]*=)?[^&]+/g, (e, r, n = "") => `${r}${n}${
|
|
1353
|
+
const Za = /^https?:(?!\/\/)/i;
|
|
1354
|
+
function ec(t) {
|
|
1355
|
+
return t && t.replace(/(^|&)([^=&]*=)?[^&]+/g, (e, r, n = "") => `${r}${n}${Mt}`);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const e = t.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${
|
|
1357
|
+
function tc(t) {
|
|
1358
|
+
const e = t.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Mt}@`), r = e.indexOf("#"), i = (r === -1 ? e : e.slice(0, r)).replace(
|
|
1359
1359
|
/([?&][^=&#]*=)[^&#]*/g,
|
|
1360
|
-
`$1${
|
|
1360
|
+
`$1${Mt}`
|
|
1361
1361
|
);
|
|
1362
|
-
return r === -1 ? i : `${i}#${
|
|
1362
|
+
return r === -1 ? i : `${i}#${ec(e.slice(r + 1))}`;
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function bn(t, e) {
|
|
1365
1365
|
if (typeof t == "string") {
|
|
1366
|
-
const r =
|
|
1367
|
-
if (
|
|
1366
|
+
const r = Hi(t);
|
|
1367
|
+
if (Za.test(r))
|
|
1368
1368
|
throw new S(
|
|
1369
|
-
`Invalid URL ${JSON.stringify(
|
|
1369
|
+
`Invalid URL ${JSON.stringify(tc(r))}: missing "//" after protocol`,
|
|
1370
1370
|
S.ERR_INVALID_URL,
|
|
1371
1371
|
e
|
|
1372
1372
|
);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1377
|
-
let i = !
|
|
1378
|
-
return t && (i || r === !1) ? (
|
|
1375
|
+
function Vi(t, e, r, n) {
|
|
1376
|
+
bn(e, n);
|
|
1377
|
+
let i = !Xa(e);
|
|
1378
|
+
return t && (i || r === !1) ? (bn(t, n), Ya(t, e)) : e;
|
|
1379
1379
|
}
|
|
1380
|
-
const
|
|
1380
|
+
const Cn = (t) => t instanceof H ? { ...t } : t, rc = (t) => Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor ? Object.keys(t).concat(
|
|
1381
1381
|
Object.getOwnPropertySymbols(t).filter(
|
|
1382
1382
|
(e) => Object.getOwnPropertyDescriptor(t, e).enumerable
|
|
1383
1383
|
)
|
|
@@ -1461,36 +1461,36 @@ function Ae(t, e) {
|
|
|
1461
1461
|
allowedSocketPaths: s,
|
|
1462
1462
|
responseEncoding: s,
|
|
1463
1463
|
validateStatus: c,
|
|
1464
|
-
headers: (u, f, p) => i(
|
|
1464
|
+
headers: (u, f, p) => i(Cn(u), Cn(f), p, !0)
|
|
1465
1465
|
};
|
|
1466
|
-
return d.forEach(
|
|
1466
|
+
return d.forEach(rc({ ...t, ...e }), function(f) {
|
|
1467
1467
|
if (f === "__proto__" || f === "constructor" || f === "prototype") return;
|
|
1468
1468
|
const p = d.hasOwnProp(l, f) ? l[f] : i, h = d.hasOwnProp(t, f) ? t[f] : void 0, g = d.hasOwnProp(e, f) ? e[f] : void 0, v = p(h, g, f);
|
|
1469
1469
|
d.isUndefined(v) && p !== c || (r[f] = v);
|
|
1470
1470
|
}), d.hasOwnProp(e, "validateStatus") && d.isUndefined(e.validateStatus) && a("validateStatusUndefinedResolves") === !1 && (d.hasOwnProp(t, "validateStatus") ? r.validateStatus = n(void 0, t.validateStatus) : delete r.validateStatus), r;
|
|
1471
1471
|
}
|
|
1472
|
-
const
|
|
1473
|
-
function
|
|
1472
|
+
const nc = ["content-type", "content-length"];
|
|
1473
|
+
function ic(t, e, r) {
|
|
1474
1474
|
if (r !== "content-only") {
|
|
1475
1475
|
t.set(e);
|
|
1476
1476
|
return;
|
|
1477
1477
|
}
|
|
1478
1478
|
Object.entries(e || {}).forEach(([n, i]) => {
|
|
1479
|
-
|
|
1479
|
+
nc.includes(n.toLowerCase()) && t.set(n, i);
|
|
1480
1480
|
});
|
|
1481
1481
|
}
|
|
1482
|
-
const
|
|
1482
|
+
const oc = (t) => encodeURIComponent(t).replace(
|
|
1483
1483
|
/%([0-9A-F]{2})/gi,
|
|
1484
1484
|
(e, r) => String.fromCharCode(parseInt(r, 16))
|
|
1485
1485
|
);
|
|
1486
|
-
function
|
|
1486
|
+
function qi(t) {
|
|
1487
1487
|
const e = Ae({}, t), r = (p) => d.hasOwnProp(e, p) ? e[p] : void 0, n = r("data");
|
|
1488
1488
|
let i = r("withXSRFToken");
|
|
1489
1489
|
const o = r("xsrfHeaderName"), s = r("xsrfCookieName");
|
|
1490
1490
|
let a = r("headers");
|
|
1491
1491
|
const c = r("auth"), l = r("baseURL"), u = r("allowAbsoluteUrls"), f = r("url");
|
|
1492
|
-
if (e.headers = a = H.from(a), e.url =
|
|
1493
|
-
|
|
1492
|
+
if (e.headers = a = H.from(a), e.url = Fi(
|
|
1493
|
+
Vi(l, f, u, e),
|
|
1494
1494
|
r("params"),
|
|
1495
1495
|
r("paramsSerializer")
|
|
1496
1496
|
), c) {
|
|
@@ -1498,7 +1498,7 @@ function Hi(t) {
|
|
|
1498
1498
|
try {
|
|
1499
1499
|
a.set(
|
|
1500
1500
|
"Authorization",
|
|
1501
|
-
"Basic " + btoa(p + ":" + (h ?
|
|
1501
|
+
"Basic " + btoa(p + ":" + (h ? oc(h) : ""))
|
|
1502
1502
|
);
|
|
1503
1503
|
} catch (g) {
|
|
1504
1504
|
throw S.from(g, S.ERR_BAD_OPTION_VALUE, t);
|
|
@@ -1506,17 +1506,17 @@ function Hi(t) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
if (d.isFormData(n)) {
|
|
1508
1508
|
const p = d.getSafeProp(n, "getHeaders");
|
|
1509
|
-
N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv || d.isReactNative(n) ? a.setContentType(void 0) : d.isFunction(p) &&
|
|
1509
|
+
N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv || d.isReactNative(n) ? a.setContentType(void 0) : d.isFunction(p) && ic(a, p.call(n), r("formDataHeaderPolicy"));
|
|
1510
1510
|
}
|
|
1511
|
-
if (N.hasStandardBrowserEnv && (d.isFunction(i) && (i = i(e)), i === !0 || i == null &&
|
|
1512
|
-
const h = o && s &&
|
|
1511
|
+
if (N.hasStandardBrowserEnv && (d.isFunction(i) && (i = i(e)), i === !0 || i == null && Ja(e.url))) {
|
|
1512
|
+
const h = o && s && Qa.read(s);
|
|
1513
1513
|
h && a.set(o, h);
|
|
1514
1514
|
}
|
|
1515
1515
|
return e;
|
|
1516
1516
|
}
|
|
1517
|
-
const
|
|
1517
|
+
const sc = typeof XMLHttpRequest < "u", ac = sc && function(t) {
|
|
1518
1518
|
return new Promise(function(r, n) {
|
|
1519
|
-
const i =
|
|
1519
|
+
const i = qi(t);
|
|
1520
1520
|
let o = i.data;
|
|
1521
1521
|
const s = H.from(i.headers).normalize();
|
|
1522
1522
|
let { responseType: a, onUploadProgress: c, onDownloadProgress: l } = i, u, f, p, h, g, v;
|
|
@@ -1528,7 +1528,7 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1528
1528
|
function b(E) {
|
|
1529
1529
|
if (!m)
|
|
1530
1530
|
return;
|
|
1531
|
-
if (m.status === 0 && (tr(
|
|
1531
|
+
if (m.status === 0 && (tr(Hi(i.url)) || tr(N.origin)) !== "file" && !(m.responseURL && m.responseURL.startsWith("file:"))) {
|
|
1532
1532
|
n(new S("Request aborted", S.ECONNABORTED, t, m)), O(), m = null;
|
|
1533
1533
|
return;
|
|
1534
1534
|
}
|
|
@@ -1551,7 +1551,7 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1551
1551
|
config: t,
|
|
1552
1552
|
request: m
|
|
1553
1553
|
};
|
|
1554
|
-
|
|
1554
|
+
ji(
|
|
1555
1555
|
function(z) {
|
|
1556
1556
|
r(z), O();
|
|
1557
1557
|
},
|
|
@@ -1570,7 +1570,7 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1570
1570
|
A.event = C || null, n(A), O(), m = null;
|
|
1571
1571
|
}, m.ontimeout = function() {
|
|
1572
1572
|
let C = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
1573
|
-
const x = i.transitional ||
|
|
1573
|
+
const x = i.transitional || Gr;
|
|
1574
1574
|
i.timeoutErrorMessage && (C = i.timeoutErrorMessage), n(
|
|
1575
1575
|
new S(
|
|
1576
1576
|
C,
|
|
@@ -1579,12 +1579,12 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1579
1579
|
m
|
|
1580
1580
|
)
|
|
1581
1581
|
), O(), m = null;
|
|
1582
|
-
}, o === void 0 && s.setContentType(null), "setRequestHeader" in m && d.forEach(
|
|
1582
|
+
}, o === void 0 && s.setContentType(null), "setRequestHeader" in m && d.forEach(Di(s), function(C, x) {
|
|
1583
1583
|
m.setRequestHeader(x, C);
|
|
1584
|
-
}), d.isUndefined(i.withCredentials) || (m.withCredentials = !!i.withCredentials), a && a !== "json" && (m.responseType = i.responseType), l && ([p, g, v] =
|
|
1584
|
+
}), d.isUndefined(i.withCredentials) || (m.withCredentials = !!i.withCredentials), a && a !== "json" && (m.responseType = i.responseType), l && ([p, g, v] = Ut(
|
|
1585
1585
|
l,
|
|
1586
1586
|
!0
|
|
1587
|
-
), m.addEventListener("progress", p)), c && m.upload && ([f, h] =
|
|
1587
|
+
), m.addEventListener("progress", p)), c && m.upload && ([f, h] = Ut(c), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (u = (E) => {
|
|
1588
1588
|
m && (n(!E || E.type ? new ft(null, t, m) : E), m.abort(), O(), m = null);
|
|
1589
1589
|
}, i.cancelToken && i.cancelToken.subscribe(u), i.signal && (i.signal.aborted ? u() : i.signal.addEventListener("abort", u)));
|
|
1590
1590
|
const R = tr(i.url);
|
|
@@ -1600,7 +1600,7 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
m.send(o || null);
|
|
1602
1602
|
});
|
|
1603
|
-
},
|
|
1603
|
+
}, cc = (t, e) => {
|
|
1604
1604
|
if (t = t ? t.filter(Boolean) : [], !e && !t.length)
|
|
1605
1605
|
return;
|
|
1606
1606
|
const r = new AbortController();
|
|
@@ -1633,7 +1633,7 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1633
1633
|
});
|
|
1634
1634
|
const { signal: a } = r;
|
|
1635
1635
|
return a.unsubscribe = () => d.asap(s), a;
|
|
1636
|
-
},
|
|
1636
|
+
}, lc = function* (t, e) {
|
|
1637
1637
|
let r = t.byteLength;
|
|
1638
1638
|
if (r < e) {
|
|
1639
1639
|
yield t;
|
|
@@ -1642,10 +1642,10 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1642
1642
|
let n = 0, i;
|
|
1643
1643
|
for (; n < r; )
|
|
1644
1644
|
i = n + e, yield t.slice(n, i), n = i;
|
|
1645
|
-
},
|
|
1646
|
-
for await (const r of
|
|
1647
|
-
yield*
|
|
1648
|
-
},
|
|
1645
|
+
}, uc = async function* (t, e) {
|
|
1646
|
+
for await (const r of fc(t))
|
|
1647
|
+
yield* lc(r, e);
|
|
1648
|
+
}, fc = async function* (t) {
|
|
1649
1649
|
if (t[Symbol.asyncIterator]) {
|
|
1650
1650
|
yield* t;
|
|
1651
1651
|
return;
|
|
@@ -1661,8 +1661,8 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1661
1661
|
} finally {
|
|
1662
1662
|
await e.cancel();
|
|
1663
1663
|
}
|
|
1664
|
-
},
|
|
1665
|
-
const i =
|
|
1664
|
+
}, Rn = (t, e, r, n) => {
|
|
1665
|
+
const i = uc(t, e);
|
|
1666
1666
|
let o = 0, s, a = (c) => {
|
|
1667
1667
|
s || (s = !0, n && n(c));
|
|
1668
1668
|
};
|
|
@@ -1693,38 +1693,38 @@ const ic = typeof XMLHttpRequest < "u", oc = ic && function(t) {
|
|
|
1693
1693
|
highWaterMark: 2
|
|
1694
1694
|
}
|
|
1695
1695
|
);
|
|
1696
|
-
},
|
|
1696
|
+
}, En = (t) => t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102, zi = (t, e, r) => e + 2 < r && En(t.charCodeAt(e + 1)) && En(t.charCodeAt(e + 2)), Tn = (t) => t <= 57 ? t - 48 : (t & 223) - 55, dc = (t) => t >= 65 && t <= 90 || // A-Z
|
|
1697
1697
|
t >= 97 && t <= 122 || // a-z
|
|
1698
1698
|
t >= 48 && t <= 57 || // 0-9
|
|
1699
1699
|
t === 43 || // +
|
|
1700
1700
|
t === 47 || // /
|
|
1701
1701
|
t === 45 || // - (base64url)
|
|
1702
|
-
t === 95,
|
|
1702
|
+
t === 95, pc = (t) => t === 9 || t === 10 || t === 12 || t === 13 || t === 32, hc = (t) => {
|
|
1703
1703
|
const e = Math.floor(t / 4), r = t % 4;
|
|
1704
1704
|
return e * 3 + (r === 2 ? 1 : r === 3 ? 2 : 0);
|
|
1705
|
-
},
|
|
1705
|
+
}, mc = (t) => {
|
|
1706
1706
|
const e = t.length;
|
|
1707
1707
|
let r = 0;
|
|
1708
1708
|
return e > 0 && t.charCodeAt(e - 1) === 61 && (r++, e > 1 && t.charCodeAt(e - 2) === 61 && r++), Math.floor((e - r) * 3 / 4);
|
|
1709
|
-
},
|
|
1709
|
+
}, yc = (t) => {
|
|
1710
1710
|
const e = t.length;
|
|
1711
1711
|
let r = 0, n = 0, i = !1;
|
|
1712
1712
|
for (let o = 0; o < e; o++) {
|
|
1713
1713
|
let s = t.charCodeAt(o);
|
|
1714
|
-
if (s === 37 &&
|
|
1714
|
+
if (s === 37 && zi(t, o, e) && (s = Tn(t.charCodeAt(o + 1)) * 16 + Tn(t.charCodeAt(o + 2)), o += 2), !pc(s)) {
|
|
1715
1715
|
if (s === 61) {
|
|
1716
1716
|
n++;
|
|
1717
1717
|
continue;
|
|
1718
1718
|
}
|
|
1719
|
-
if (!
|
|
1719
|
+
if (!dc(s) || n > 0) {
|
|
1720
1720
|
i = !0;
|
|
1721
1721
|
continue;
|
|
1722
1722
|
}
|
|
1723
1723
|
r++;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
return i || n > 2 || n > 0 && (r + n) % 4 !== 0 || r % 4 === 1 ?
|
|
1727
|
-
},
|
|
1726
|
+
return i || n > 2 || n > 0 && (r + n) % 4 !== 0 || r % 4 === 1 ? mc(t) : hc(r);
|
|
1727
|
+
}, gc = (t, e) => {
|
|
1728
1728
|
if (!t || typeof t != "string" || !t.startsWith("data:")) return 0;
|
|
1729
1729
|
const r = t.indexOf(",");
|
|
1730
1730
|
if (r < 0) return 0;
|
|
@@ -1734,7 +1734,7 @@ t === 95, fc = (t) => t === 9 || t === 10 || t === 12 || t === 13 || t === 32, d
|
|
|
1734
1734
|
let s = 0;
|
|
1735
1735
|
for (let a = 0, c = i.length; a < c; a++) {
|
|
1736
1736
|
const l = i.charCodeAt(a);
|
|
1737
|
-
if (l === 37 &&
|
|
1737
|
+
if (l === 37 && zi(i, a, c))
|
|
1738
1738
|
s += 1, a += 2;
|
|
1739
1739
|
else if (l < 128)
|
|
1740
1740
|
s += 1;
|
|
@@ -1748,14 +1748,14 @@ t === 95, fc = (t) => t === 9 || t === 10 || t === 12 || t === 13 || t === 32, d
|
|
|
1748
1748
|
}
|
|
1749
1749
|
return s;
|
|
1750
1750
|
};
|
|
1751
|
-
function
|
|
1751
|
+
function Sc(t) {
|
|
1752
1752
|
const e = typeof t == "string" ? t.indexOf("#") : -1;
|
|
1753
|
-
return
|
|
1753
|
+
return gc(
|
|
1754
1754
|
e === -1 ? t : t.slice(0, e),
|
|
1755
|
-
|
|
1755
|
+
yc
|
|
1756
1756
|
);
|
|
1757
1757
|
}
|
|
1758
|
-
const
|
|
1758
|
+
const Kr = "1.20.0", Pn = 64 * 1024, vc = {
|
|
1759
1759
|
cache: "default",
|
|
1760
1760
|
redirect: "follow",
|
|
1761
1761
|
referrer: "about:client",
|
|
@@ -1765,10 +1765,10 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1765
1765
|
keepalive: !1,
|
|
1766
1766
|
priority: "auto",
|
|
1767
1767
|
window: null
|
|
1768
|
-
}, { isFunction: gt } = d,
|
|
1768
|
+
}, { isFunction: gt } = d, bc = (t) => encodeURIComponent(t).replace(
|
|
1769
1769
|
/%([0-9A-F]{2})/gi,
|
|
1770
1770
|
(e, r) => String.fromCharCode(parseInt(r, 16))
|
|
1771
|
-
),
|
|
1771
|
+
), On = (t) => {
|
|
1772
1772
|
if (!d.isString(t))
|
|
1773
1773
|
return t;
|
|
1774
1774
|
try {
|
|
@@ -1776,17 +1776,17 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1776
1776
|
} catch {
|
|
1777
1777
|
return t;
|
|
1778
1778
|
}
|
|
1779
|
-
},
|
|
1779
|
+
}, wn = (t, ...e) => {
|
|
1780
1780
|
try {
|
|
1781
1781
|
return !!t(...e);
|
|
1782
1782
|
} catch {
|
|
1783
1783
|
return !1;
|
|
1784
1784
|
}
|
|
1785
|
-
},
|
|
1785
|
+
}, Cc = (t) => {
|
|
1786
1786
|
const e = t.indexOf("://");
|
|
1787
1787
|
let r = t;
|
|
1788
1788
|
return e !== -1 && (r = r.slice(e + 3)), r.includes("@") || r.includes(":");
|
|
1789
|
-
},
|
|
1789
|
+
}, Rc = (t) => {
|
|
1790
1790
|
const e = d.global !== void 0 && d.global !== null ? d.global : globalThis, { ReadableStream: r, TextEncoder: n } = e;
|
|
1791
1791
|
t = d.merge.call(
|
|
1792
1792
|
{
|
|
@@ -1801,7 +1801,7 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1801
1801
|
const { fetch: i, Request: o, Response: s } = t, a = i ? gt(i) : typeof fetch == "function", c = gt(o), l = gt(s);
|
|
1802
1802
|
if (!a)
|
|
1803
1803
|
return !1;
|
|
1804
|
-
const u = a && gt(r), f = a && (typeof n == "function" ? /* @__PURE__ */ ((m) => (b) => m.encode(b))(new n()) : async (m) => new Uint8Array(await new o(m).arrayBuffer())), p = c && u &&
|
|
1804
|
+
const u = a && gt(r), f = a && (typeof n == "function" ? /* @__PURE__ */ ((m) => (b) => m.encode(b))(new n()) : async (m) => new Uint8Array(await new o(m).arrayBuffer())), p = c && u && wn(() => {
|
|
1805
1805
|
let m = !1;
|
|
1806
1806
|
const b = new o(N.origin, {
|
|
1807
1807
|
body: new r(),
|
|
@@ -1811,7 +1811,7 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
}), R = b.headers.has("Content-Type");
|
|
1813
1813
|
return b.body != null && b.body.cancel(), m && !R;
|
|
1814
|
-
}), h = l && u &&
|
|
1814
|
+
}), h = l && u && wn(() => d.isReadableStream(new s("").body)), g = {
|
|
1815
1815
|
stream: h && ((m) => m.body)
|
|
1816
1816
|
};
|
|
1817
1817
|
a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((m) => {
|
|
@@ -1858,14 +1858,14 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1858
1858
|
headers: G,
|
|
1859
1859
|
withCredentials: W = "same-origin",
|
|
1860
1860
|
fetchOptions: Q,
|
|
1861
|
-
maxContentLength:
|
|
1861
|
+
maxContentLength: M,
|
|
1862
1862
|
maxBodyLength: te,
|
|
1863
1863
|
maxRedirects: pe
|
|
1864
|
-
} =
|
|
1865
|
-
const X = d.isNumber(
|
|
1864
|
+
} = qi(m);
|
|
1865
|
+
const X = d.isNumber(M) && M > -1, Le = d.isNumber(te) && te > -1, We = (_) => d.hasOwnProp(m, _) ? m[_] : void 0;
|
|
1866
1866
|
let mt = i || fetch;
|
|
1867
1867
|
J = J ? (J + "").toLowerCase() : "text";
|
|
1868
|
-
let re =
|
|
1868
|
+
let re = cc(
|
|
1869
1869
|
[C, x && x.toAbortSignal()],
|
|
1870
1870
|
A
|
|
1871
1871
|
), L = null;
|
|
@@ -1873,7 +1873,7 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1873
1873
|
re.unsubscribe();
|
|
1874
1874
|
});
|
|
1875
1875
|
let xe, Ke = null;
|
|
1876
|
-
const
|
|
1876
|
+
const sn = () => new S(
|
|
1877
1877
|
"Request body larger than maxBodyLength limit",
|
|
1878
1878
|
S.ERR_BAD_REQUEST,
|
|
1879
1879
|
m,
|
|
@@ -1889,10 +1889,10 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1889
1889
|
password: $
|
|
1890
1890
|
};
|
|
1891
1891
|
}
|
|
1892
|
-
if (
|
|
1892
|
+
if (Cc(b)) {
|
|
1893
1893
|
const P = new URL(b, N.origin);
|
|
1894
1894
|
if (!_ && (P.username || P.password)) {
|
|
1895
|
-
const $ =
|
|
1895
|
+
const $ = On(P.username), he = On(P.password);
|
|
1896
1896
|
_ = {
|
|
1897
1897
|
username: $,
|
|
1898
1898
|
password: he
|
|
@@ -1902,10 +1902,10 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
if (_ && (G.delete("authorization"), G.set(
|
|
1904
1904
|
"Authorization",
|
|
1905
|
-
"Basic " + btoa(
|
|
1906
|
-
)), X && typeof b == "string" && b.startsWith("data:") &&
|
|
1905
|
+
"Basic " + btoa(bc((_.username || "") + ":" + (_.password || "")))
|
|
1906
|
+
)), X && typeof b == "string" && b.startsWith("data:") && Sc(b) > M)
|
|
1907
1907
|
throw new S(
|
|
1908
|
-
"maxContentLength size of " +
|
|
1908
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1909
1909
|
S.ERR_BAD_RESPONSE,
|
|
1910
1910
|
m,
|
|
1911
1911
|
L
|
|
@@ -1913,14 +1913,14 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1913
1913
|
if (Le && R !== "get" && R !== "head") {
|
|
1914
1914
|
const P = await v(E);
|
|
1915
1915
|
if (typeof P == "number" && isFinite(P) && (xe = P, P > te))
|
|
1916
|
-
throw
|
|
1916
|
+
throw sn();
|
|
1917
1917
|
}
|
|
1918
|
-
const yt = Le && (d.isReadableStream(E) || d.isStream(E)),
|
|
1918
|
+
const yt = Le && (d.isReadableStream(E) || d.isStream(E)), an = (P, $, he) => Rn(
|
|
1919
1919
|
P,
|
|
1920
|
-
|
|
1920
|
+
Pn,
|
|
1921
1921
|
(be) => {
|
|
1922
1922
|
if (Le && be > te)
|
|
1923
|
-
throw Ke =
|
|
1923
|
+
throw Ke = sn();
|
|
1924
1924
|
$ && $(be);
|
|
1925
1925
|
},
|
|
1926
1926
|
he
|
|
@@ -1933,15 +1933,15 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1933
1933
|
duplex: "half"
|
|
1934
1934
|
}), $;
|
|
1935
1935
|
if (d.isFormData(E) && ($ = P.headers.get("content-type")) && G.setContentType($), P.body) {
|
|
1936
|
-
const [he, be] = z &&
|
|
1936
|
+
const [he, be] = z && Sn(
|
|
1937
1937
|
xe,
|
|
1938
|
-
|
|
1938
|
+
Ut(vn(z))
|
|
1939
1939
|
) || [];
|
|
1940
|
-
E =
|
|
1940
|
+
E = an(P.body, he, be);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
1943
|
} else if (yt && !c && u && R !== "get" && R !== "head")
|
|
1944
|
-
E =
|
|
1944
|
+
E = an(E);
|
|
1945
1945
|
else if (yt && c && !p && R !== "get" && R !== "head")
|
|
1946
1946
|
throw new S(
|
|
1947
1947
|
"Stream request bodies are not supported by the current fetch implementation",
|
|
@@ -1950,32 +1950,32 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1950
1950
|
L
|
|
1951
1951
|
);
|
|
1952
1952
|
d.isString(W) || (W = W ? "include" : "omit");
|
|
1953
|
-
const
|
|
1953
|
+
const ms = c && "credentials" in o.prototype;
|
|
1954
1954
|
if (d.isFormData(E)) {
|
|
1955
1955
|
const P = G.getContentType();
|
|
1956
1956
|
P && /^multipart\/form-data/i.test(P) && !/boundary=/i.test(P) && G.delete("content-type");
|
|
1957
1957
|
}
|
|
1958
|
-
G.set("User-Agent", "axios/" +
|
|
1958
|
+
G.set("User-Agent", "axios/" + Kr, !1);
|
|
1959
1959
|
const ne = Q == null ? Q : Object.assign(/* @__PURE__ */ Object.create(null), Q);
|
|
1960
1960
|
ne && (delete ne.body, delete ne.headers, delete ne.method, delete ne.signal, delete ne.duplex, delete ne.credentials);
|
|
1961
1961
|
const le = Object.assign(/* @__PURE__ */ Object.create(null), ne, {
|
|
1962
1962
|
signal: re,
|
|
1963
1963
|
method: R.toUpperCase(),
|
|
1964
|
-
headers:
|
|
1964
|
+
headers: Di(G.normalize()),
|
|
1965
1965
|
body: E,
|
|
1966
1966
|
duplex: "half",
|
|
1967
|
-
credentials:
|
|
1967
|
+
credentials: ms ? W : void 0
|
|
1968
1968
|
});
|
|
1969
|
-
c && (d.forEach(
|
|
1969
|
+
c && (d.forEach(vc, (P, $) => {
|
|
1970
1970
|
le[$] === void 0 && (le[$] = P);
|
|
1971
1971
|
}), le.signal === void 0 && (le.signal = null), le.body === void 0 && (le.body = null)), pe === 0 && (le.redirect = "manual", ne && (ne.redirect = "manual")), L = c && new o(b, le);
|
|
1972
1972
|
let ue = await (c ? mt(L, ne) : mt(b, le));
|
|
1973
|
-
const
|
|
1973
|
+
const cn = H.from(ue.headers);
|
|
1974
1974
|
if (X) {
|
|
1975
|
-
const P = d.toFiniteNumber(
|
|
1976
|
-
if (P != null && P >
|
|
1975
|
+
const P = d.toFiniteNumber(cn.getContentLength());
|
|
1976
|
+
if (P != null && P > M)
|
|
1977
1977
|
throw new S(
|
|
1978
|
-
"maxContentLength size of " +
|
|
1978
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1979
1979
|
S.ERR_BAD_RESPONSE,
|
|
1980
1980
|
m,
|
|
1981
1981
|
L
|
|
@@ -1987,15 +1987,15 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
1987
1987
|
["status", "statusText", "headers"].forEach((Je) => {
|
|
1988
1988
|
P[Je] = ue[Je];
|
|
1989
1989
|
});
|
|
1990
|
-
const $ = d.toFiniteNumber(
|
|
1990
|
+
const $ = d.toFiniteNumber(cn.getContentLength()), [he, be] = B && Sn(
|
|
1991
1991
|
$,
|
|
1992
|
-
|
|
1992
|
+
Ut(vn(B), !0)
|
|
1993
1993
|
) || [];
|
|
1994
|
-
let
|
|
1995
|
-
const
|
|
1996
|
-
if (X && (
|
|
1994
|
+
let ln = 0;
|
|
1995
|
+
const ys = (Je) => {
|
|
1996
|
+
if (X && (ln = Je, ln > M))
|
|
1997
1997
|
throw new S(
|
|
1998
|
-
"maxContentLength size of " +
|
|
1998
|
+
"maxContentLength size of " + M + " exceeded",
|
|
1999
1999
|
S.ERR_BAD_RESPONSE,
|
|
2000
2000
|
m,
|
|
2001
2001
|
L
|
|
@@ -2003,7 +2003,7 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
2003
2003
|
he && he(Je);
|
|
2004
2004
|
};
|
|
2005
2005
|
ue = new s(
|
|
2006
|
-
|
|
2006
|
+
Rn(ue.body, Pn, ys, () => {
|
|
2007
2007
|
be && be(), ve && ve();
|
|
2008
2008
|
}),
|
|
2009
2009
|
P
|
|
@@ -2016,16 +2016,16 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
2016
2016
|
);
|
|
2017
2017
|
if (X && !h && !Qt) {
|
|
2018
2018
|
let P;
|
|
2019
|
-
if (fe != null && (typeof fe.byteLength == "number" ? P = fe.byteLength : typeof fe.size == "number" ? P = fe.size : typeof fe == "string" && (P = typeof n == "function" ? new n().encode(fe).byteLength : fe.length)), typeof P == "number" && P >
|
|
2019
|
+
if (fe != null && (typeof fe.byteLength == "number" ? P = fe.byteLength : typeof fe.size == "number" ? P = fe.size : typeof fe == "string" && (P = typeof n == "function" ? new n().encode(fe).byteLength : fe.length)), typeof P == "number" && P > M)
|
|
2020
2020
|
throw new S(
|
|
2021
|
-
"maxContentLength size of " +
|
|
2021
|
+
"maxContentLength size of " + M + " exceeded",
|
|
2022
2022
|
S.ERR_BAD_RESPONSE,
|
|
2023
2023
|
m,
|
|
2024
2024
|
L
|
|
2025
2025
|
);
|
|
2026
2026
|
}
|
|
2027
2027
|
return !Qt && ve && ve(), await new Promise((P, $) => {
|
|
2028
|
-
|
|
2028
|
+
ji(P, $, {
|
|
2029
2029
|
data: fe,
|
|
2030
2030
|
headers: H.from(ue.headers),
|
|
2031
2031
|
status: ue.status,
|
|
@@ -2068,23 +2068,23 @@ const Wr = "1.20.0", Tn = 64 * 1024, gc = {
|
|
|
2068
2068
|
throw S.from(_, _ && _.code, m, L, _ && _.response);
|
|
2069
2069
|
}
|
|
2070
2070
|
};
|
|
2071
|
-
},
|
|
2071
|
+
}, Ec = /* @__PURE__ */ new Map(), Gi = (t) => {
|
|
2072
2072
|
let e = t && t.env || {};
|
|
2073
2073
|
const { fetch: r, Request: n, Response: i } = e, o = [n, i, r];
|
|
2074
|
-
let s = o.length, a = s, c, l, u =
|
|
2074
|
+
let s = o.length, a = s, c, l, u = Ec;
|
|
2075
2075
|
for (; a--; )
|
|
2076
|
-
c = o[a], l = u.get(c), l === void 0 && u.set(c, l = a ? /* @__PURE__ */ new Map() :
|
|
2076
|
+
c = o[a], l = u.get(c), l === void 0 && u.set(c, l = a ? /* @__PURE__ */ new Map() : Rc(e)), u = l;
|
|
2077
2077
|
return l;
|
|
2078
2078
|
};
|
|
2079
|
-
|
|
2080
|
-
const
|
|
2081
|
-
http:
|
|
2082
|
-
xhr:
|
|
2079
|
+
Gi();
|
|
2080
|
+
const Jr = {
|
|
2081
|
+
http: Da,
|
|
2082
|
+
xhr: ac,
|
|
2083
2083
|
fetch: {
|
|
2084
|
-
get:
|
|
2084
|
+
get: Gi
|
|
2085
2085
|
}
|
|
2086
2086
|
};
|
|
2087
|
-
d.forEach(
|
|
2087
|
+
d.forEach(Jr, (t, e) => {
|
|
2088
2088
|
if (t) {
|
|
2089
2089
|
try {
|
|
2090
2090
|
Object.defineProperty(t, "name", { __proto__: null, value: e });
|
|
@@ -2093,8 +2093,8 @@ d.forEach(Kr, (t, e) => {
|
|
|
2093
2093
|
Object.defineProperty(t, "adapterName", { __proto__: null, value: e });
|
|
2094
2094
|
}
|
|
2095
2095
|
});
|
|
2096
|
-
const
|
|
2097
|
-
function
|
|
2096
|
+
const An = (t) => `- ${t}`, Tc = (t) => d.isFunction(t) || t === null || t === !1;
|
|
2097
|
+
function Pc(t, e) {
|
|
2098
2098
|
t = d.isArray(t) ? t : [t];
|
|
2099
2099
|
const { length: r } = t;
|
|
2100
2100
|
let n, i;
|
|
@@ -2102,7 +2102,7 @@ function Ec(t, e) {
|
|
|
2102
2102
|
for (let s = 0; s < r; s++) {
|
|
2103
2103
|
n = t[s];
|
|
2104
2104
|
let a;
|
|
2105
|
-
if (i = n, !
|
|
2105
|
+
if (i = n, !Tc(n) && (i = Jr[(a = String(n)).toLowerCase()], i === void 0))
|
|
2106
2106
|
throw new S(`Unknown adapter '${a}'`);
|
|
2107
2107
|
if (i && (d.isFunction(i) || (i = i.get(e))))
|
|
2108
2108
|
break;
|
|
@@ -2113,8 +2113,8 @@ function Ec(t, e) {
|
|
|
2113
2113
|
([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2114
2114
|
);
|
|
2115
2115
|
let a = r ? s.length > 1 ? `since :
|
|
2116
|
-
` + s.map(
|
|
2117
|
-
`) : " " +
|
|
2116
|
+
` + s.map(An).join(`
|
|
2117
|
+
`) : " " + An(s[0]) : "as no adapter specified";
|
|
2118
2118
|
throw new S(
|
|
2119
2119
|
"There is no suitable adapter to dispatch the request " + a,
|
|
2120
2120
|
S.ERR_NOT_SUPPORT
|
|
@@ -2122,17 +2122,17 @@ function Ec(t, e) {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
return i;
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2125
|
+
const Wi = {
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Resolve an adapter from a list of adapter names or functions.
|
|
2128
2128
|
* @type {Function}
|
|
2129
2129
|
*/
|
|
2130
|
-
getAdapter:
|
|
2130
|
+
getAdapter: Pc,
|
|
2131
2131
|
/**
|
|
2132
2132
|
* Exposes all known adapters
|
|
2133
2133
|
* @type {Object<string, Function|Object>}
|
|
2134
2134
|
*/
|
|
2135
|
-
adapters:
|
|
2135
|
+
adapters: Jr
|
|
2136
2136
|
};
|
|
2137
2137
|
function rr(t) {
|
|
2138
2138
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
@@ -2140,7 +2140,7 @@ function rr(t) {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
function nr(t) {
|
|
2142
2142
|
const e = d.toSafeFlatObject(t);
|
|
2143
|
-
return rr(e), e.headers = H.from(d.getSafeProp(e, "headers")), e.data = er.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
2143
|
+
return rr(e), e.headers = H.from(d.getSafeProp(e, "headers")), e.data = er.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Wi.getAdapter(e.adapter || ut.adapter, e)(e).then(
|
|
2144
2144
|
function(i) {
|
|
2145
2145
|
rr(e), e.response = i;
|
|
2146
2146
|
try {
|
|
@@ -2151,7 +2151,7 @@ function nr(t) {
|
|
|
2151
2151
|
return i.headers = H.from(i.headers), i;
|
|
2152
2152
|
},
|
|
2153
2153
|
function(i) {
|
|
2154
|
-
if (
|
|
2154
|
+
if (!$i(i) && (rr(e), i && i.response)) {
|
|
2155
2155
|
e.response = i.response;
|
|
2156
2156
|
try {
|
|
2157
2157
|
i.response.data = er.call(
|
|
@@ -2174,10 +2174,10 @@ const qt = {};
|
|
|
2174
2174
|
return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
2175
2175
|
};
|
|
2176
2176
|
});
|
|
2177
|
-
const
|
|
2177
|
+
const _n = {};
|
|
2178
2178
|
qt.transitional = function(e, r, n) {
|
|
2179
2179
|
function i(o, s) {
|
|
2180
|
-
return "[Axios v" +
|
|
2180
|
+
return "[Axios v" + Kr + "] Transitional option '" + o + "'" + s + (n ? ". " + n : "");
|
|
2181
2181
|
}
|
|
2182
2182
|
return (o, s, a) => {
|
|
2183
2183
|
if (e === !1)
|
|
@@ -2185,7 +2185,7 @@ qt.transitional = function(e, r, n) {
|
|
|
2185
2185
|
i(s, " has been removed" + (r ? " in " + r : "")),
|
|
2186
2186
|
S.ERR_DEPRECATED
|
|
2187
2187
|
);
|
|
2188
|
-
return r && !
|
|
2188
|
+
return r && !_n[s] && (_n[s] = !0, console.warn(
|
|
2189
2189
|
i(
|
|
2190
2190
|
s,
|
|
2191
2191
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
@@ -2196,7 +2196,7 @@ qt.transitional = function(e, r, n) {
|
|
|
2196
2196
|
qt.spelling = function(e) {
|
|
2197
2197
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
2198
2198
|
};
|
|
2199
|
-
function
|
|
2199
|
+
function Oc(t, e, r) {
|
|
2200
2200
|
if (typeof t != "object" || t === null)
|
|
2201
2201
|
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
2202
2202
|
const n = Object.keys(t);
|
|
@@ -2217,14 +2217,14 @@ function Tc(t, e, r) {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
2219
2219
|
const Tt = {
|
|
2220
|
-
assertOptions:
|
|
2220
|
+
assertOptions: Oc,
|
|
2221
2221
|
validators: qt
|
|
2222
2222
|
}, j = Tt.validators;
|
|
2223
2223
|
let Te = class {
|
|
2224
2224
|
constructor(e) {
|
|
2225
2225
|
this.defaults = e || {}, this.interceptors = {
|
|
2226
|
-
request: new
|
|
2227
|
-
response: new
|
|
2226
|
+
request: new yn(),
|
|
2227
|
+
response: new yn()
|
|
2228
2228
|
};
|
|
2229
2229
|
}
|
|
2230
2230
|
/**
|
|
@@ -2296,7 +2296,7 @@ let Te = class {
|
|
|
2296
2296
|
!0
|
|
2297
2297
|
), r.method = (d.getSafeProp(r, "method") || d.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
2298
2298
|
let s = o && d.merge(o.common, o[r.method]);
|
|
2299
|
-
o && d.forEach(
|
|
2299
|
+
o && d.forEach(Bi.concat("common"), (g) => {
|
|
2300
2300
|
delete o[g];
|
|
2301
2301
|
}), r.headers = H.concat(s, o);
|
|
2302
2302
|
const a = [];
|
|
@@ -2305,7 +2305,7 @@ let Te = class {
|
|
|
2305
2305
|
if (typeof v.runWhen == "function" && v.runWhen(r) === !1)
|
|
2306
2306
|
return;
|
|
2307
2307
|
c = c && v.synchronous;
|
|
2308
|
-
const O = r.transitional ||
|
|
2308
|
+
const O = r.transitional || Gr;
|
|
2309
2309
|
O && O.legacyInterceptorReqResOrdering ? a.unshift(v.fulfilled, v.rejected) : a.push(v.fulfilled, v.rejected);
|
|
2310
2310
|
});
|
|
2311
2311
|
const l = [];
|
|
@@ -2353,8 +2353,8 @@ let Te = class {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
getUri(e) {
|
|
2355
2355
|
e = Ae(this.defaults, e);
|
|
2356
|
-
const r =
|
|
2357
|
-
return
|
|
2356
|
+
const r = Vi(e.baseURL, e.url, e.allowAbsoluteUrls, e);
|
|
2357
|
+
return Fi(r, e.params, e.paramsSerializer);
|
|
2358
2358
|
}
|
|
2359
2359
|
};
|
|
2360
2360
|
d.forEach(["delete", "get", "head", "options"], function(e) {
|
|
@@ -2385,7 +2385,7 @@ d.forEach(["post", "put", "patch", "query"], function(e) {
|
|
|
2385
2385
|
}
|
|
2386
2386
|
Te.prototype[e] = r(), e !== "query" && (Te.prototype[e + "Form"] = r(!0));
|
|
2387
2387
|
});
|
|
2388
|
-
let
|
|
2388
|
+
let wc = class Ki {
|
|
2389
2389
|
constructor(e) {
|
|
2390
2390
|
if (typeof e != "function")
|
|
2391
2391
|
throw new TypeError("executor must be a function.");
|
|
@@ -2451,19 +2451,19 @@ let Pc = class Gi {
|
|
|
2451
2451
|
static source() {
|
|
2452
2452
|
let e;
|
|
2453
2453
|
return {
|
|
2454
|
-
token: new
|
|
2454
|
+
token: new Ki(function(i) {
|
|
2455
2455
|
e = i;
|
|
2456
2456
|
}),
|
|
2457
2457
|
cancel: e
|
|
2458
2458
|
};
|
|
2459
2459
|
}
|
|
2460
2460
|
};
|
|
2461
|
-
function
|
|
2461
|
+
function Ac(t) {
|
|
2462
2462
|
return function(r) {
|
|
2463
2463
|
return t.apply(null, r);
|
|
2464
2464
|
};
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2466
|
+
function _c(t) {
|
|
2467
2467
|
return d.isObject(t) && t.isAxiosError === !0;
|
|
2468
2468
|
}
|
|
2469
2469
|
const Pt = {
|
|
@@ -2549,56 +2549,56 @@ const Pt = {
|
|
|
2549
2549
|
Object.entries(Pt).forEach(([t, e]) => {
|
|
2550
2550
|
Pt[e] === void 0 && (Pt[e] = t);
|
|
2551
2551
|
});
|
|
2552
|
-
function
|
|
2553
|
-
const e = new Te(t), r =
|
|
2552
|
+
function Ji(t) {
|
|
2553
|
+
const e = new Te(t), r = vi(Te.prototype.request, e);
|
|
2554
2554
|
return d.extend(r, Te.prototype, e, { allOwnKeys: !0 }), d.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
|
|
2555
|
-
return
|
|
2555
|
+
return Ji(Ae(t, i));
|
|
2556
2556
|
}, r;
|
|
2557
2557
|
}
|
|
2558
|
-
const k =
|
|
2558
|
+
const k = Ji(ut);
|
|
2559
2559
|
k.Axios = Te;
|
|
2560
2560
|
k.CanceledError = ft;
|
|
2561
|
-
k.CancelToken =
|
|
2562
|
-
k.isCancel =
|
|
2563
|
-
k.VERSION =
|
|
2561
|
+
k.CancelToken = wc;
|
|
2562
|
+
k.isCancel = $i;
|
|
2563
|
+
k.VERSION = Kr;
|
|
2564
2564
|
k.toFormData = Vt;
|
|
2565
2565
|
k.AxiosError = S;
|
|
2566
2566
|
k.Cancel = k.CanceledError;
|
|
2567
2567
|
k.all = function(e) {
|
|
2568
2568
|
return Promise.all(e);
|
|
2569
2569
|
};
|
|
2570
|
-
k.spread =
|
|
2571
|
-
k.isAxiosError =
|
|
2570
|
+
k.spread = Ac;
|
|
2571
|
+
k.isAxiosError = _c;
|
|
2572
2572
|
k.mergeConfig = Ae;
|
|
2573
2573
|
k.AxiosHeaders = H;
|
|
2574
|
-
k.formToJSON = (t) =>
|
|
2575
|
-
k.getAdapter =
|
|
2574
|
+
k.formToJSON = (t) => Ni(d.isHTMLForm(t) ? new FormData(t) : t);
|
|
2575
|
+
k.getAdapter = Wi.getAdapter;
|
|
2576
2576
|
k.HttpStatusCode = Pt;
|
|
2577
2577
|
k.default = k;
|
|
2578
2578
|
const {
|
|
2579
|
-
Axios:
|
|
2580
|
-
AxiosError:
|
|
2581
|
-
CanceledError:
|
|
2582
|
-
isCancel:
|
|
2583
|
-
CancelToken:
|
|
2584
|
-
VERSION:
|
|
2585
|
-
all:
|
|
2586
|
-
Cancel:
|
|
2587
|
-
isAxiosError:
|
|
2588
|
-
spread:
|
|
2589
|
-
toFormData:
|
|
2590
|
-
AxiosHeaders:
|
|
2591
|
-
HttpStatusCode:
|
|
2592
|
-
formToJSON:
|
|
2593
|
-
getAdapter:
|
|
2594
|
-
mergeConfig:
|
|
2595
|
-
create:
|
|
2579
|
+
Axios: Ed,
|
|
2580
|
+
AxiosError: Td,
|
|
2581
|
+
CanceledError: Pd,
|
|
2582
|
+
isCancel: Od,
|
|
2583
|
+
CancelToken: wd,
|
|
2584
|
+
VERSION: Ad,
|
|
2585
|
+
all: _d,
|
|
2586
|
+
Cancel: Dd,
|
|
2587
|
+
isAxiosError: Ld,
|
|
2588
|
+
spread: xd,
|
|
2589
|
+
toFormData: Id,
|
|
2590
|
+
AxiosHeaders: kd,
|
|
2591
|
+
HttpStatusCode: Fd,
|
|
2592
|
+
formToJSON: Md,
|
|
2593
|
+
getAdapter: Ud,
|
|
2594
|
+
mergeConfig: Nd,
|
|
2595
|
+
create: Bd
|
|
2596
2596
|
} = k;
|
|
2597
|
-
var
|
|
2598
|
-
function
|
|
2597
|
+
var Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2598
|
+
function Qi(t) {
|
|
2599
2599
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function Dc(t) {
|
|
2602
2602
|
if (t.__esModule) return t;
|
|
2603
2603
|
var e = t.default;
|
|
2604
2604
|
if (typeof e == "function") {
|
|
@@ -2618,37 +2618,37 @@ function Ac(t) {
|
|
|
2618
2618
|
}), r;
|
|
2619
2619
|
}
|
|
2620
2620
|
var Ge = TypeError;
|
|
2621
|
-
const
|
|
2621
|
+
const Lc = {}, xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2622
2622
|
__proto__: null,
|
|
2623
|
-
default:
|
|
2624
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2625
|
-
var
|
|
2623
|
+
default: Lc
|
|
2624
|
+
}, Symbol.toStringTag, { value: "Module" })), Ic = /* @__PURE__ */ Dc(xc);
|
|
2625
|
+
var Qr = typeof Map == "function" && Map.prototype, ir = Object.getOwnPropertyDescriptor && Qr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Nt = Qr && ir && typeof ir.get == "function" ? ir.get : null, Ln = Qr && Map.prototype.forEach, Xr = typeof Set == "function" && Set.prototype, or = Object.getOwnPropertyDescriptor && Xr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = Xr && or && typeof or.get == "function" ? or.get : null, xn = Xr && Set.prototype.forEach, kc = typeof WeakMap == "function" && WeakMap.prototype, tt = kc ? WeakMap.prototype.has : null, Fc = typeof WeakSet == "function" && WeakSet.prototype, rt = Fc ? WeakSet.prototype.has : null, Mc = typeof WeakRef == "function" && WeakRef.prototype, In = Mc ? WeakRef.prototype.deref : null, Uc = Boolean.prototype.valueOf, Nc = Object.prototype.toString, Bc = Function.prototype.toString, $c = String.prototype.match, Yr = String.prototype.slice, ye = String.prototype.replace, jc = String.prototype.toUpperCase, kn = String.prototype.toLowerCase, Xi = RegExp.prototype.test, Fn = Array.prototype.concat, se = Array.prototype.join, Hc = Array.prototype.slice, Mn = Math.floor, Or = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, sr = Object.getOwnPropertySymbols, wr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, He = typeof Symbol == "function" && typeof Symbol.iterator == "object", nt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === He || !0) ? Symbol.toStringTag : null, Yi = Object.prototype.propertyIsEnumerable, Un = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2626
2626
|
return t.__proto__;
|
|
2627
2627
|
} : null);
|
|
2628
|
-
function
|
|
2629
|
-
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 ||
|
|
2628
|
+
function Nn(t, e) {
|
|
2629
|
+
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Xi.call(/e/, e))
|
|
2630
2630
|
return e;
|
|
2631
2631
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2632
2632
|
if (typeof t == "number") {
|
|
2633
|
-
var n = t < 0 ? -
|
|
2633
|
+
var n = t < 0 ? -Mn(-t) : Mn(t);
|
|
2634
2634
|
if (n !== t) {
|
|
2635
|
-
var i = String(n), o =
|
|
2635
|
+
var i = String(n), o = Yr.call(e, i.length + 1);
|
|
2636
2636
|
return ye.call(i, r, "$&_") + "." + ye.call(ye.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2637
2637
|
}
|
|
2638
2638
|
}
|
|
2639
2639
|
return ye.call(e, r, "$&_");
|
|
2640
2640
|
}
|
|
2641
|
-
var
|
|
2641
|
+
var Ar = Ic, Bn = Ar.custom, $n = to(Bn) ? Bn : null, Zi = {
|
|
2642
2642
|
__proto__: null,
|
|
2643
2643
|
double: '"',
|
|
2644
2644
|
single: "'"
|
|
2645
|
-
},
|
|
2645
|
+
}, Vc = {
|
|
2646
2646
|
__proto__: null,
|
|
2647
2647
|
double: /(["\\])/g,
|
|
2648
2648
|
single: /(['\\])/g
|
|
2649
2649
|
}, zt = function t(e, r, n, i) {
|
|
2650
2650
|
var o = r || {};
|
|
2651
|
-
if (de(o, "quoteStyle") && !de(
|
|
2651
|
+
if (de(o, "quoteStyle") && !de(Zi, o.quoteStyle))
|
|
2652
2652
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
2653
2653
|
if (de(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
|
|
2654
2654
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -2667,27 +2667,27 @@ var wr = Lc, Nn = wr.custom, Bn = Zi(Nn) ? Nn : null, Xi = {
|
|
|
2667
2667
|
if (typeof e == "boolean")
|
|
2668
2668
|
return e ? "true" : "false";
|
|
2669
2669
|
if (typeof e == "string")
|
|
2670
|
-
return
|
|
2670
|
+
return no(e, o);
|
|
2671
2671
|
if (typeof e == "number") {
|
|
2672
2672
|
if (e === 0)
|
|
2673
2673
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
2674
2674
|
var c = String(e);
|
|
2675
|
-
return a ?
|
|
2675
|
+
return a ? Nn(e, c) : c;
|
|
2676
2676
|
}
|
|
2677
2677
|
if (typeof e == "bigint") {
|
|
2678
2678
|
var l = String(e) + "n";
|
|
2679
|
-
return a ?
|
|
2679
|
+
return a ? Nn(e, l) : l;
|
|
2680
2680
|
}
|
|
2681
2681
|
var u = typeof o.depth > "u" ? 5 : o.depth;
|
|
2682
2682
|
if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
|
|
2683
|
-
return
|
|
2684
|
-
var f =
|
|
2683
|
+
return _r(e) ? "[Array]" : "[Object]";
|
|
2684
|
+
var f = al(o, n);
|
|
2685
2685
|
if (typeof i > "u")
|
|
2686
2686
|
i = [];
|
|
2687
|
-
else if (
|
|
2687
|
+
else if (ro(i, e) >= 0)
|
|
2688
2688
|
return "[Circular]";
|
|
2689
|
-
function p(Q,
|
|
2690
|
-
if (
|
|
2689
|
+
function p(Q, M, te) {
|
|
2690
|
+
if (M && (i = Hc.call(i), i.push(M)), te) {
|
|
2691
2691
|
var pe = {
|
|
2692
2692
|
depth: o.depth
|
|
2693
2693
|
};
|
|
@@ -2695,140 +2695,140 @@ var wr = Lc, Nn = wr.custom, Bn = Zi(Nn) ? Nn : null, Xi = {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
return t(Q, o, n + 1, i);
|
|
2697
2697
|
}
|
|
2698
|
-
if (typeof e == "function" &&
|
|
2699
|
-
var h =
|
|
2698
|
+
if (typeof e == "function" && !jn(e)) {
|
|
2699
|
+
var h = Yc(e), g = St(e, p);
|
|
2700
2700
|
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (g.length > 0 ? " { " + se.call(g, ", ") + " }" : "");
|
|
2701
2701
|
}
|
|
2702
|
-
if (
|
|
2703
|
-
var v = He ? ye.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
2702
|
+
if (to(e)) {
|
|
2703
|
+
var v = He ? ye.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : wr.call(e);
|
|
2704
2704
|
return typeof e == "object" && !He ? Ze(v) : v;
|
|
2705
2705
|
}
|
|
2706
|
-
if (
|
|
2707
|
-
for (var O = "<" +
|
|
2708
|
-
O += " " + m[b].name + "=" +
|
|
2709
|
-
return O += ">", e.childNodes && e.childNodes.length && (O += "..."), O += "</" +
|
|
2706
|
+
if (il(e)) {
|
|
2707
|
+
for (var O = "<" + kn.call(String(e.nodeName)), m = e.attributes || [], b = 0; b < m.length; b++)
|
|
2708
|
+
O += " " + m[b].name + "=" + eo(qc(m[b].value), "double", o);
|
|
2709
|
+
return O += ">", e.childNodes && e.childNodes.length && (O += "..."), O += "</" + kn.call(String(e.nodeName)) + ">", O;
|
|
2710
2710
|
}
|
|
2711
|
-
if (
|
|
2711
|
+
if (_r(e)) {
|
|
2712
2712
|
if (e.length === 0)
|
|
2713
2713
|
return "[]";
|
|
2714
2714
|
var R = St(e, p);
|
|
2715
|
-
return f && !
|
|
2715
|
+
return f && !sl(R) ? "[" + Dr(R, f) + "]" : "[ " + se.call(R, ", ") + " ]";
|
|
2716
2716
|
}
|
|
2717
|
-
if (
|
|
2717
|
+
if (Gc(e)) {
|
|
2718
2718
|
var E = St(e, p);
|
|
2719
|
-
return !("cause" in Error.prototype) && "cause" in e && !
|
|
2719
|
+
return !("cause" in Error.prototype) && "cause" in e && !Yi.call(e, "cause") ? "{ [" + String(e) + "] " + se.call(Fn.call("[cause]: " + p(e.cause), E), ", ") + " }" : E.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + se.call(E, ", ") + " }";
|
|
2720
2720
|
}
|
|
2721
2721
|
if (typeof e == "object" && s) {
|
|
2722
|
-
if (
|
|
2723
|
-
return
|
|
2722
|
+
if ($n && typeof e[$n] == "function" && Ar)
|
|
2723
|
+
return Ar(e, { depth: u - n });
|
|
2724
2724
|
if (s !== "symbol" && typeof e.inspect == "function")
|
|
2725
2725
|
return e.inspect();
|
|
2726
2726
|
}
|
|
2727
|
-
if (
|
|
2727
|
+
if (Zc(e)) {
|
|
2728
2728
|
var C = [];
|
|
2729
|
-
return
|
|
2730
|
-
C.push(p(
|
|
2731
|
-
}),
|
|
2729
|
+
return Ln && Ln.call(e, function(Q, M) {
|
|
2730
|
+
C.push(p(M, e, !0) + " => " + p(Q, e));
|
|
2731
|
+
}), Hn("Map", Nt.call(e), C, f);
|
|
2732
2732
|
}
|
|
2733
|
-
if (
|
|
2733
|
+
if (rl(e)) {
|
|
2734
2734
|
var x = [];
|
|
2735
|
-
return
|
|
2735
|
+
return xn && xn.call(e, function(Q) {
|
|
2736
2736
|
x.push(p(Q, e));
|
|
2737
|
-
}),
|
|
2737
|
+
}), Hn("Set", Bt.call(e), x, f);
|
|
2738
2738
|
}
|
|
2739
|
-
if (
|
|
2739
|
+
if (el(e))
|
|
2740
2740
|
return ar("WeakMap");
|
|
2741
|
-
if (
|
|
2741
|
+
if (nl(e))
|
|
2742
2742
|
return ar("WeakSet");
|
|
2743
|
-
if (
|
|
2743
|
+
if (tl(e))
|
|
2744
2744
|
return ar("WeakRef");
|
|
2745
|
-
if (Gc(e))
|
|
2746
|
-
return Ze(p(Number(e)));
|
|
2747
2745
|
if (Kc(e))
|
|
2748
|
-
return Ze(p(
|
|
2746
|
+
return Ze(p(Number(e)));
|
|
2747
|
+
if (Qc(e))
|
|
2748
|
+
return Ze(p(Or.call(e)));
|
|
2749
|
+
if (Jc(e))
|
|
2750
|
+
return Ze(Uc.call(e));
|
|
2749
2751
|
if (Wc(e))
|
|
2750
|
-
return Ze(Fc.call(e));
|
|
2751
|
-
if (zc(e))
|
|
2752
2752
|
return Ze(p(String(e)));
|
|
2753
2753
|
if (typeof window < "u" && e === window)
|
|
2754
2754
|
return "{ [object Window] }";
|
|
2755
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
2755
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Dn < "u" && e === Dn)
|
|
2756
2756
|
return "{ [object globalThis] }";
|
|
2757
|
-
if (!
|
|
2758
|
-
var A = St(e, p), B = Un ? Un(e) === Object.prototype : e instanceof Object || e.constructor === Object, z = e instanceof Object ? "" : "null prototype", J = !B && nt && Object(e) === e && nt in e ?
|
|
2759
|
-
return A.length === 0 ? W + "{}" : f ? W + "{" +
|
|
2757
|
+
if (!zc(e) && !jn(e)) {
|
|
2758
|
+
var A = St(e, p), B = Un ? Un(e) === Object.prototype : e instanceof Object || e.constructor === Object, z = e instanceof Object ? "" : "null prototype", J = !B && nt && Object(e) === e && nt in e ? Yr.call(Se(e), 8, -1) : z ? "Object" : "", G = B || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", W = G + (J || z ? "[" + se.call(Fn.call([], J || [], z || []), ": ") + "] " : "");
|
|
2759
|
+
return A.length === 0 ? W + "{}" : f ? W + "{" + Dr(A, f) + "}" : W + "{ " + se.call(A, ", ") + " }";
|
|
2760
2760
|
}
|
|
2761
2761
|
return String(e);
|
|
2762
2762
|
};
|
|
2763
|
-
function
|
|
2764
|
-
var n = r.quoteStyle || e, i =
|
|
2763
|
+
function eo(t, e, r) {
|
|
2764
|
+
var n = r.quoteStyle || e, i = Zi[n];
|
|
2765
2765
|
return i + t + i;
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function qc(t) {
|
|
2768
2768
|
return ye.call(String(t), /"/g, """);
|
|
2769
2769
|
}
|
|
2770
2770
|
function _e(t) {
|
|
2771
2771
|
return !nt || !(typeof t == "object" && (nt in t || typeof t[nt] < "u"));
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function _r(t) {
|
|
2774
2774
|
return Se(t) === "[object Array]" && _e(t);
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2776
|
+
function zc(t) {
|
|
2777
2777
|
return Se(t) === "[object Date]" && _e(t);
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function jn(t) {
|
|
2780
2780
|
return Se(t) === "[object RegExp]" && _e(t);
|
|
2781
2781
|
}
|
|
2782
|
-
function
|
|
2782
|
+
function Gc(t) {
|
|
2783
2783
|
return Se(t) === "[object Error]" && _e(t);
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function Wc(t) {
|
|
2786
2786
|
return Se(t) === "[object String]" && _e(t);
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function Kc(t) {
|
|
2789
2789
|
return Se(t) === "[object Number]" && _e(t);
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function Jc(t) {
|
|
2792
2792
|
return Se(t) === "[object Boolean]" && _e(t);
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function to(t) {
|
|
2795
2795
|
if (He)
|
|
2796
2796
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
2797
2797
|
if (typeof t == "symbol")
|
|
2798
2798
|
return !0;
|
|
2799
|
-
if (!t || typeof t != "object" || !
|
|
2799
|
+
if (!t || typeof t != "object" || !wr)
|
|
2800
2800
|
return !1;
|
|
2801
2801
|
try {
|
|
2802
|
-
return
|
|
2802
|
+
return wr.call(t), !0;
|
|
2803
2803
|
} catch {
|
|
2804
2804
|
}
|
|
2805
2805
|
return !1;
|
|
2806
2806
|
}
|
|
2807
|
-
function
|
|
2808
|
-
if (!t || typeof t != "object" || !
|
|
2807
|
+
function Qc(t) {
|
|
2808
|
+
if (!t || typeof t != "object" || !Or)
|
|
2809
2809
|
return !1;
|
|
2810
2810
|
try {
|
|
2811
|
-
return
|
|
2811
|
+
return Or.call(t), !0;
|
|
2812
2812
|
} catch {
|
|
2813
2813
|
}
|
|
2814
2814
|
return !1;
|
|
2815
2815
|
}
|
|
2816
|
-
var
|
|
2816
|
+
var Xc = Object.prototype.hasOwnProperty || function(t) {
|
|
2817
2817
|
return t in this;
|
|
2818
2818
|
};
|
|
2819
2819
|
function de(t, e) {
|
|
2820
|
-
return
|
|
2820
|
+
return Xc.call(t, e);
|
|
2821
2821
|
}
|
|
2822
2822
|
function Se(t) {
|
|
2823
|
-
return
|
|
2823
|
+
return Nc.call(t);
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2825
|
+
function Yc(t) {
|
|
2826
2826
|
if (t.name)
|
|
2827
2827
|
return t.name;
|
|
2828
|
-
var e =
|
|
2828
|
+
var e = $c.call(Bc.call(t), /^function\s*([\w$]+)/);
|
|
2829
2829
|
return e ? e[1] : null;
|
|
2830
2830
|
}
|
|
2831
|
-
function
|
|
2831
|
+
function ro(t, e) {
|
|
2832
2832
|
if (t.indexOf)
|
|
2833
2833
|
return t.indexOf(e);
|
|
2834
2834
|
for (var r = 0, n = t.length; r < n; r++)
|
|
@@ -2836,7 +2836,7 @@ function eo(t, e) {
|
|
|
2836
2836
|
return r;
|
|
2837
2837
|
return -1;
|
|
2838
2838
|
}
|
|
2839
|
-
function
|
|
2839
|
+
function Zc(t) {
|
|
2840
2840
|
if (!Nt || !t || typeof t != "object")
|
|
2841
2841
|
return !1;
|
|
2842
2842
|
try {
|
|
@@ -2851,7 +2851,7 @@ function Xc(t) {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
return !1;
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2854
|
+
function el(t) {
|
|
2855
2855
|
if (!tt || !t || typeof t != "object")
|
|
2856
2856
|
return !1;
|
|
2857
2857
|
try {
|
|
@@ -2866,16 +2866,16 @@ function Yc(t) {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
return !1;
|
|
2868
2868
|
}
|
|
2869
|
-
function
|
|
2870
|
-
if (!
|
|
2869
|
+
function tl(t) {
|
|
2870
|
+
if (!In || !t || typeof t != "object")
|
|
2871
2871
|
return !1;
|
|
2872
2872
|
try {
|
|
2873
|
-
return
|
|
2873
|
+
return In.call(t), !0;
|
|
2874
2874
|
} catch {
|
|
2875
2875
|
}
|
|
2876
2876
|
return !1;
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function rl(t) {
|
|
2879
2879
|
if (!Bt || !t || typeof t != "object")
|
|
2880
2880
|
return !1;
|
|
2881
2881
|
try {
|
|
@@ -2890,7 +2890,7 @@ function el(t) {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
return !1;
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function nl(t) {
|
|
2894
2894
|
if (!rt || !t || typeof t != "object")
|
|
2895
2895
|
return !1;
|
|
2896
2896
|
try {
|
|
@@ -2905,20 +2905,20 @@ function tl(t) {
|
|
|
2905
2905
|
}
|
|
2906
2906
|
return !1;
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function il(t) {
|
|
2909
2909
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function no(t, e) {
|
|
2912
2912
|
if (t.length > e.maxStringLength) {
|
|
2913
2913
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
2914
|
-
return
|
|
2914
|
+
return no(Yr.call(t, 0, e.maxStringLength), e) + n;
|
|
2915
2915
|
}
|
|
2916
|
-
var i =
|
|
2916
|
+
var i = Vc[e.quoteStyle || "single"];
|
|
2917
2917
|
i.lastIndex = 0;
|
|
2918
|
-
var o = ye.call(ye.call(t, i, "\\$1"), /[\x00-\x1f]/g,
|
|
2919
|
-
return
|
|
2918
|
+
var o = ye.call(ye.call(t, i, "\\$1"), /[\x00-\x1f]/g, ol);
|
|
2919
|
+
return eo(o, "single", e);
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2921
|
+
function ol(t) {
|
|
2922
2922
|
var e = t.charCodeAt(0), r = {
|
|
2923
2923
|
8: "b",
|
|
2924
2924
|
9: "t",
|
|
@@ -2926,7 +2926,7 @@ function nl(t) {
|
|
|
2926
2926
|
12: "f",
|
|
2927
2927
|
13: "r"
|
|
2928
2928
|
}[e];
|
|
2929
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") +
|
|
2929
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + jc.call(e.toString(16));
|
|
2930
2930
|
}
|
|
2931
2931
|
function Ze(t) {
|
|
2932
2932
|
return "Object(" + t + ")";
|
|
@@ -2934,18 +2934,18 @@ function Ze(t) {
|
|
|
2934
2934
|
function ar(t) {
|
|
2935
2935
|
return t + " { ? }";
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2938
|
-
var i = n ?
|
|
2937
|
+
function Hn(t, e, r, n) {
|
|
2938
|
+
var i = n ? Dr(r, n) : se.call(r, ", ");
|
|
2939
2939
|
return t + " (" + e + ") {" + i + "}";
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function sl(t) {
|
|
2942
2942
|
for (var e = 0; e < t.length; e++)
|
|
2943
|
-
if (
|
|
2943
|
+
if (ro(t[e], `
|
|
2944
2944
|
`) >= 0)
|
|
2945
2945
|
return !1;
|
|
2946
2946
|
return !0;
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2948
|
+
function al(t, e) {
|
|
2949
2949
|
var r;
|
|
2950
2950
|
if (t.indent === " ")
|
|
2951
2951
|
r = " ";
|
|
@@ -2958,7 +2958,7 @@ function ol(t, e) {
|
|
|
2958
2958
|
prev: se.call(Array(e + 1), r)
|
|
2959
2959
|
};
|
|
2960
2960
|
}
|
|
2961
|
-
function
|
|
2961
|
+
function Dr(t, e) {
|
|
2962
2962
|
if (t.length === 0)
|
|
2963
2963
|
return "";
|
|
2964
2964
|
var r = `
|
|
@@ -2967,7 +2967,7 @@ function _r(t, e) {
|
|
|
2967
2967
|
` + e.prev;
|
|
2968
2968
|
}
|
|
2969
2969
|
function St(t, e) {
|
|
2970
|
-
var r =
|
|
2970
|
+
var r = _r(t), n = [];
|
|
2971
2971
|
if (r) {
|
|
2972
2972
|
n.length = t.length;
|
|
2973
2973
|
for (var i = 0; i < t.length; i++)
|
|
@@ -2980,23 +2980,23 @@ function St(t, e) {
|
|
|
2980
2980
|
s["$" + o[a]] = o[a];
|
|
2981
2981
|
}
|
|
2982
2982
|
for (var c in t)
|
|
2983
|
-
de(t, c) && (r && String(Number(c)) === c && c < t.length || He && s["$" + c] instanceof Symbol || (
|
|
2983
|
+
de(t, c) && (r && String(Number(c)) === c && c < t.length || He && s["$" + c] instanceof Symbol || (Xi.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
|
|
2984
2984
|
if (typeof sr == "function")
|
|
2985
2985
|
for (var l = 0; l < o.length; l++)
|
|
2986
|
-
|
|
2986
|
+
Yi.call(t, o[l]) && n.push("[" + e(o[l]) + "]: " + e(t[o[l]], t));
|
|
2987
2987
|
return n;
|
|
2988
2988
|
}
|
|
2989
|
-
var
|
|
2989
|
+
var cl = zt, ll = Ge, Gt = function(t, e, r) {
|
|
2990
2990
|
for (var n = t, i; (i = n.next) != null; n = i)
|
|
2991
2991
|
if (i.key === e)
|
|
2992
2992
|
return n.next = i.next, r || (i.next = /** @type {NonNullable<typeof list.next>} */
|
|
2993
2993
|
t.next, t.next = i), i;
|
|
2994
|
-
},
|
|
2994
|
+
}, ul = function(t, e) {
|
|
2995
2995
|
if (t) {
|
|
2996
2996
|
var r = Gt(t, e);
|
|
2997
2997
|
return r && r.value;
|
|
2998
2998
|
}
|
|
2999
|
-
},
|
|
2999
|
+
}, fl = function(t, e, r) {
|
|
3000
3000
|
var n = Gt(t, e);
|
|
3001
3001
|
n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
3002
3002
|
{
|
|
@@ -3005,31 +3005,31 @@ var sl = zt, al = Ge, Gt = function(t, e, r) {
|
|
|
3005
3005
|
next: t.next,
|
|
3006
3006
|
value: r
|
|
3007
3007
|
};
|
|
3008
|
-
},
|
|
3008
|
+
}, dl = function(t, e) {
|
|
3009
3009
|
return t ? !!Gt(t, e) : !1;
|
|
3010
|
-
},
|
|
3010
|
+
}, pl = function(t, e) {
|
|
3011
3011
|
if (t)
|
|
3012
3012
|
return Gt(t, e, !0);
|
|
3013
|
-
},
|
|
3013
|
+
}, hl = function() {
|
|
3014
3014
|
var e, r = {
|
|
3015
3015
|
assert: function(n) {
|
|
3016
3016
|
if (!r.has(n))
|
|
3017
|
-
throw new
|
|
3017
|
+
throw new ll("Side channel does not contain " + cl(n));
|
|
3018
3018
|
},
|
|
3019
3019
|
delete: function(n) {
|
|
3020
|
-
var i =
|
|
3020
|
+
var i = pl(e, n);
|
|
3021
3021
|
return i && e && !e.next && (e = void 0), !!i;
|
|
3022
3022
|
},
|
|
3023
3023
|
get: function(n) {
|
|
3024
|
-
return
|
|
3024
|
+
return ul(e, n);
|
|
3025
3025
|
},
|
|
3026
3026
|
has: function(n) {
|
|
3027
|
-
return
|
|
3027
|
+
return dl(e, n);
|
|
3028
3028
|
},
|
|
3029
3029
|
set: function(n, i) {
|
|
3030
3030
|
e || (e = {
|
|
3031
3031
|
next: void 0
|
|
3032
|
-
}),
|
|
3032
|
+
}), fl(
|
|
3033
3033
|
/** @type {NonNullable<typeof $o>} */
|
|
3034
3034
|
e,
|
|
3035
3035
|
n,
|
|
@@ -3038,27 +3038,27 @@ var sl = zt, al = Ge, Gt = function(t, e, r) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
};
|
|
3040
3040
|
return r;
|
|
3041
|
-
},
|
|
3041
|
+
}, io = Object, ml = Error, yl = EvalError, gl = RangeError, Sl = ReferenceError, vl = SyntaxError, bl = URIError, Cl = Math.abs, Rl = Math.floor, El = Math.max, Tl = Math.min, Pl = Math.pow, Ol = Math.round, wl = Number.isNaN || function(e) {
|
|
3042
3042
|
return e !== e;
|
|
3043
|
-
},
|
|
3044
|
-
return
|
|
3045
|
-
},
|
|
3043
|
+
}, Al = wl, _l = function(e) {
|
|
3044
|
+
return Al(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
3045
|
+
}, Dl = Object.getOwnPropertyDescriptor, Ot = Dl;
|
|
3046
3046
|
if (Ot)
|
|
3047
3047
|
try {
|
|
3048
3048
|
Ot([], "length");
|
|
3049
3049
|
} catch {
|
|
3050
3050
|
Ot = null;
|
|
3051
3051
|
}
|
|
3052
|
-
var
|
|
3052
|
+
var oo = Ot, wt = Object.defineProperty || !1;
|
|
3053
3053
|
if (wt)
|
|
3054
3054
|
try {
|
|
3055
3055
|
wt({}, "a", { value: 1 });
|
|
3056
3056
|
} catch {
|
|
3057
3057
|
wt = !1;
|
|
3058
3058
|
}
|
|
3059
|
-
var
|
|
3060
|
-
function
|
|
3061
|
-
return
|
|
3059
|
+
var so = wt, cr, Vn;
|
|
3060
|
+
function Ll() {
|
|
3061
|
+
return Vn || (Vn = 1, cr = function() {
|
|
3062
3062
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3063
3063
|
return !1;
|
|
3064
3064
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3086,77 +3086,81 @@ function _l() {
|
|
|
3086
3086
|
return !0;
|
|
3087
3087
|
}), cr;
|
|
3088
3088
|
}
|
|
3089
|
-
var lr,
|
|
3090
|
-
function
|
|
3091
|
-
if (
|
|
3092
|
-
|
|
3093
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
3089
|
+
var lr, qn;
|
|
3090
|
+
function xl() {
|
|
3091
|
+
if (qn) return lr;
|
|
3092
|
+
qn = 1;
|
|
3093
|
+
var t = typeof Symbol < "u" && Symbol, e = Ll();
|
|
3094
3094
|
return lr = function() {
|
|
3095
3095
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
3096
3096
|
}, lr;
|
|
3097
3097
|
}
|
|
3098
|
-
var ur,
|
|
3099
|
-
function
|
|
3100
|
-
return
|
|
3098
|
+
var ur, zn;
|
|
3099
|
+
function ao() {
|
|
3100
|
+
return zn || (zn = 1, ur = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ur;
|
|
3101
3101
|
}
|
|
3102
|
-
var fr,
|
|
3103
|
-
function
|
|
3104
|
-
if (
|
|
3105
|
-
|
|
3106
|
-
var t =
|
|
3102
|
+
var fr, Gn;
|
|
3103
|
+
function co() {
|
|
3104
|
+
if (Gn) return fr;
|
|
3105
|
+
Gn = 1;
|
|
3106
|
+
var t = io;
|
|
3107
3107
|
return fr = t.getPrototypeOf || null, fr;
|
|
3108
3108
|
}
|
|
3109
|
-
var
|
|
3109
|
+
var Il = "Function.prototype.bind called on incompatible ", kl = Object.prototype.toString, Fl = Math.max, Ml = "[object Function]", Wn = function(e, r) {
|
|
3110
3110
|
for (var n = [], i = 0; i < e.length; i += 1)
|
|
3111
3111
|
n[i] = e[i];
|
|
3112
3112
|
for (var o = 0; o < r.length; o += 1)
|
|
3113
3113
|
n[o + e.length] = r[o];
|
|
3114
3114
|
return n;
|
|
3115
|
-
},
|
|
3115
|
+
}, Ul = function(e, r) {
|
|
3116
3116
|
for (var n = [], i = r, o = 0; i < e.length; i += 1, o += 1)
|
|
3117
3117
|
n[o] = e[i];
|
|
3118
3118
|
return n;
|
|
3119
|
-
},
|
|
3119
|
+
}, Nl = function(t, e) {
|
|
3120
3120
|
for (var r = "", n = 0; n < t.length; n += 1)
|
|
3121
3121
|
r += t[n], n + 1 < t.length && (r += e);
|
|
3122
3122
|
return r;
|
|
3123
|
-
},
|
|
3123
|
+
}, Bl = function(e) {
|
|
3124
3124
|
var r = this;
|
|
3125
|
-
if (typeof r != "function" ||
|
|
3126
|
-
throw new TypeError(
|
|
3127
|
-
for (var n =
|
|
3125
|
+
if (typeof r != "function" || kl.apply(r) !== Ml)
|
|
3126
|
+
throw new TypeError(Il + r);
|
|
3127
|
+
for (var n = Ul(arguments, 1), i, o = function() {
|
|
3128
3128
|
if (this instanceof i) {
|
|
3129
3129
|
var u = r.apply(
|
|
3130
3130
|
this,
|
|
3131
|
-
|
|
3131
|
+
Wn(n, arguments)
|
|
3132
3132
|
);
|
|
3133
3133
|
return Object(u) === u ? u : this;
|
|
3134
3134
|
}
|
|
3135
3135
|
return r.apply(
|
|
3136
3136
|
e,
|
|
3137
|
-
|
|
3137
|
+
Wn(n, arguments)
|
|
3138
3138
|
);
|
|
3139
|
-
}, s =
|
|
3139
|
+
}, s = Fl(0, r.length - n.length), a = [], c = 0; c < s; c++)
|
|
3140
3140
|
a[c] = "$" + c;
|
|
3141
|
-
if (i = Function("binder", "return function (" +
|
|
3141
|
+
if (i = Function("binder", "return function (" + Nl(a, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
3142
3142
|
var l = function() {
|
|
3143
3143
|
};
|
|
3144
3144
|
l.prototype = r.prototype, i.prototype = new l(), l.prototype = null;
|
|
3145
3145
|
}
|
|
3146
3146
|
return i;
|
|
3147
|
-
},
|
|
3148
|
-
function
|
|
3149
|
-
return
|
|
3147
|
+
}, $l = Bl, Wt = Function.prototype.bind || $l, dr, Kn;
|
|
3148
|
+
function Zr() {
|
|
3149
|
+
return Kn || (Kn = 1, dr = Function.prototype.call), dr;
|
|
3150
3150
|
}
|
|
3151
|
-
var
|
|
3151
|
+
var pr, Jn;
|
|
3152
|
+
function lo() {
|
|
3153
|
+
return Jn || (Jn = 1, pr = Function.prototype.apply), pr;
|
|
3154
|
+
}
|
|
3155
|
+
var jl = typeof Reflect < "u" && Reflect && Reflect.apply, Hl = Wt, Vl = lo(), ql = Zr(), zl = jl, Gl = zl || Hl.call(ql, Vl), Wl = Wt, Kl = Ge, Jl = Zr(), Ql = Gl, uo = function(e) {
|
|
3152
3156
|
if (e.length < 1 || typeof e[0] != "function")
|
|
3153
|
-
throw new
|
|
3154
|
-
return
|
|
3155
|
-
},
|
|
3156
|
-
function
|
|
3157
|
-
if (
|
|
3158
|
-
|
|
3159
|
-
var t =
|
|
3157
|
+
throw new Kl("a function is required");
|
|
3158
|
+
return Ql(Wl, Jl, e);
|
|
3159
|
+
}, hr, Qn;
|
|
3160
|
+
function Xl() {
|
|
3161
|
+
if (Qn) return hr;
|
|
3162
|
+
Qn = 1;
|
|
3163
|
+
var t = uo, e = oo, r;
|
|
3160
3164
|
try {
|
|
3161
3165
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
3162
3166
|
[].__proto__ === Array.prototype;
|
|
@@ -3169,19 +3173,19 @@ function Jl() {
|
|
|
3169
3173
|
/** @type {keyof typeof Object.prototype} */
|
|
3170
3174
|
"__proto__"
|
|
3171
3175
|
), i = Object, o = i.getPrototypeOf;
|
|
3172
|
-
return
|
|
3176
|
+
return hr = n && typeof n.get == "function" ? t([n.get]) : typeof o == "function" ? (
|
|
3173
3177
|
/** @type {import('./get')} */
|
|
3174
3178
|
function(a) {
|
|
3175
3179
|
return o(a == null ? a : i(a));
|
|
3176
3180
|
}
|
|
3177
|
-
) : !1,
|
|
3181
|
+
) : !1, hr;
|
|
3178
3182
|
}
|
|
3179
|
-
var
|
|
3180
|
-
function
|
|
3181
|
-
if (
|
|
3182
|
-
|
|
3183
|
-
var t =
|
|
3184
|
-
return
|
|
3183
|
+
var mr, Xn;
|
|
3184
|
+
function Yl() {
|
|
3185
|
+
if (Xn) return mr;
|
|
3186
|
+
Xn = 1;
|
|
3187
|
+
var t = ao(), e = co(), r = Xl();
|
|
3188
|
+
return mr = t ? function(i) {
|
|
3185
3189
|
return t(i);
|
|
3186
3190
|
} : e ? function(i) {
|
|
3187
3191
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
@@ -3189,43 +3193,43 @@ function Ql() {
|
|
|
3189
3193
|
return e(i);
|
|
3190
3194
|
} : r ? function(i) {
|
|
3191
3195
|
return r(i);
|
|
3192
|
-
} : null,
|
|
3196
|
+
} : null, mr;
|
|
3193
3197
|
}
|
|
3194
|
-
var
|
|
3195
|
-
function
|
|
3196
|
-
if (
|
|
3197
|
-
|
|
3198
|
+
var yr, Yn;
|
|
3199
|
+
function Zl() {
|
|
3200
|
+
if (Yn) return yr;
|
|
3201
|
+
Yn = 1;
|
|
3198
3202
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = Wt;
|
|
3199
|
-
return
|
|
3203
|
+
return yr = r.call(t, e), yr;
|
|
3200
3204
|
}
|
|
3201
|
-
var w,
|
|
3205
|
+
var w, eu = io, tu = ml, ru = yl, nu = gl, iu = Sl, Ve = vl, $e = Ge, ou = bl, su = Cl, au = Rl, cu = El, lu = Tl, uu = Pl, fu = Ol, du = _l, fo = Function, gr = function(t) {
|
|
3202
3206
|
try {
|
|
3203
|
-
return
|
|
3207
|
+
return fo('"use strict"; return (' + t + ").constructor;")();
|
|
3204
3208
|
} catch {
|
|
3205
3209
|
}
|
|
3206
|
-
}, at =
|
|
3210
|
+
}, at = oo, pu = so, Sr = function() {
|
|
3207
3211
|
throw new $e();
|
|
3208
|
-
},
|
|
3212
|
+
}, hu = at ? function() {
|
|
3209
3213
|
try {
|
|
3210
|
-
return arguments.callee,
|
|
3214
|
+
return arguments.callee, Sr;
|
|
3211
3215
|
} catch {
|
|
3212
3216
|
try {
|
|
3213
3217
|
return at(arguments, "callee").get;
|
|
3214
3218
|
} catch {
|
|
3215
|
-
return
|
|
3219
|
+
return Sr;
|
|
3216
3220
|
}
|
|
3217
3221
|
}
|
|
3218
|
-
}() :
|
|
3222
|
+
}() : Sr, ke = xl()(), U = Yl(), mu = co(), yu = ao(), po = lo(), dt = Zr(), Me = {}, gu = typeof Uint8Array > "u" || !U ? w : U(Uint8Array), Pe = {
|
|
3219
3223
|
__proto__: null,
|
|
3220
3224
|
"%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
|
|
3221
3225
|
"%Array%": Array,
|
|
3222
3226
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? w : ArrayBuffer,
|
|
3223
|
-
"%ArrayIteratorPrototype%": ke &&
|
|
3227
|
+
"%ArrayIteratorPrototype%": ke && U ? U([][Symbol.iterator]()) : w,
|
|
3224
3228
|
"%AsyncFromSyncIteratorPrototype%": w,
|
|
3225
|
-
"%AsyncFunction%":
|
|
3226
|
-
"%AsyncGenerator%":
|
|
3227
|
-
"%AsyncGeneratorFunction%":
|
|
3228
|
-
"%AsyncIteratorPrototype%":
|
|
3229
|
+
"%AsyncFunction%": Me,
|
|
3230
|
+
"%AsyncGenerator%": Me,
|
|
3231
|
+
"%AsyncGeneratorFunction%": Me,
|
|
3232
|
+
"%AsyncIteratorPrototype%": Me,
|
|
3229
3233
|
"%Atomics%": typeof Atomics > "u" ? w : Atomics,
|
|
3230
3234
|
"%BigInt%": typeof BigInt > "u" ? w : BigInt,
|
|
3231
3235
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? w : BigInt64Array,
|
|
@@ -3237,92 +3241,92 @@ var w, Yl = ro, Zl = pl, eu = hl, tu = ml, ru = yl, Ve = gl, $e = Ge, nu = Sl, i
|
|
|
3237
3241
|
"%decodeURIComponent%": decodeURIComponent,
|
|
3238
3242
|
"%encodeURI%": encodeURI,
|
|
3239
3243
|
"%encodeURIComponent%": encodeURIComponent,
|
|
3240
|
-
"%Error%":
|
|
3244
|
+
"%Error%": tu,
|
|
3241
3245
|
"%eval%": eval,
|
|
3242
3246
|
// eslint-disable-line no-eval
|
|
3243
|
-
"%EvalError%":
|
|
3247
|
+
"%EvalError%": ru,
|
|
3244
3248
|
"%Float16Array%": typeof Float16Array > "u" ? w : Float16Array,
|
|
3245
3249
|
"%Float32Array%": typeof Float32Array > "u" ? w : Float32Array,
|
|
3246
3250
|
"%Float64Array%": typeof Float64Array > "u" ? w : Float64Array,
|
|
3247
3251
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? w : FinalizationRegistry,
|
|
3248
|
-
"%Function%":
|
|
3249
|
-
"%GeneratorFunction%":
|
|
3252
|
+
"%Function%": fo,
|
|
3253
|
+
"%GeneratorFunction%": Me,
|
|
3250
3254
|
"%Int8Array%": typeof Int8Array > "u" ? w : Int8Array,
|
|
3251
3255
|
"%Int16Array%": typeof Int16Array > "u" ? w : Int16Array,
|
|
3252
3256
|
"%Int32Array%": typeof Int32Array > "u" ? w : Int32Array,
|
|
3253
3257
|
"%isFinite%": isFinite,
|
|
3254
3258
|
"%isNaN%": isNaN,
|
|
3255
|
-
"%IteratorPrototype%": ke &&
|
|
3259
|
+
"%IteratorPrototype%": ke && U ? U(U([][Symbol.iterator]())) : w,
|
|
3256
3260
|
"%JSON%": typeof JSON == "object" ? JSON : w,
|
|
3257
3261
|
"%Map%": typeof Map > "u" ? w : Map,
|
|
3258
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ke || !
|
|
3262
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ke || !U ? w : U((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
3259
3263
|
"%Math%": Math,
|
|
3260
3264
|
"%Number%": Number,
|
|
3261
|
-
"%Object%":
|
|
3265
|
+
"%Object%": eu,
|
|
3262
3266
|
"%Object.getOwnPropertyDescriptor%": at,
|
|
3263
3267
|
"%parseFloat%": parseFloat,
|
|
3264
3268
|
"%parseInt%": parseInt,
|
|
3265
3269
|
"%Promise%": typeof Promise > "u" ? w : Promise,
|
|
3266
3270
|
"%Proxy%": typeof Proxy > "u" ? w : Proxy,
|
|
3267
|
-
"%RangeError%":
|
|
3268
|
-
"%ReferenceError%":
|
|
3271
|
+
"%RangeError%": nu,
|
|
3272
|
+
"%ReferenceError%": iu,
|
|
3269
3273
|
"%Reflect%": typeof Reflect > "u" ? w : Reflect,
|
|
3270
3274
|
"%RegExp%": RegExp,
|
|
3271
3275
|
"%Set%": typeof Set > "u" ? w : Set,
|
|
3272
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ke || !
|
|
3276
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ke || !U ? w : U((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
3273
3277
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? w : SharedArrayBuffer,
|
|
3274
3278
|
"%String%": String,
|
|
3275
|
-
"%StringIteratorPrototype%": ke &&
|
|
3279
|
+
"%StringIteratorPrototype%": ke && U ? U(""[Symbol.iterator]()) : w,
|
|
3276
3280
|
"%Symbol%": ke ? Symbol : w,
|
|
3277
3281
|
"%SyntaxError%": Ve,
|
|
3278
|
-
"%ThrowTypeError%":
|
|
3279
|
-
"%TypedArray%":
|
|
3282
|
+
"%ThrowTypeError%": hu,
|
|
3283
|
+
"%TypedArray%": gu,
|
|
3280
3284
|
"%TypeError%": $e,
|
|
3281
3285
|
"%Uint8Array%": typeof Uint8Array > "u" ? w : Uint8Array,
|
|
3282
3286
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? w : Uint8ClampedArray,
|
|
3283
3287
|
"%Uint16Array%": typeof Uint16Array > "u" ? w : Uint16Array,
|
|
3284
3288
|
"%Uint32Array%": typeof Uint32Array > "u" ? w : Uint32Array,
|
|
3285
|
-
"%URIError%":
|
|
3289
|
+
"%URIError%": ou,
|
|
3286
3290
|
"%WeakMap%": typeof WeakMap > "u" ? w : WeakMap,
|
|
3287
3291
|
"%WeakRef%": typeof WeakRef > "u" ? w : WeakRef,
|
|
3288
3292
|
"%WeakSet%": typeof WeakSet > "u" ? w : WeakSet,
|
|
3289
3293
|
"%Function.prototype.call%": dt,
|
|
3290
|
-
"%Function.prototype.apply%":
|
|
3291
|
-
"%Object.defineProperty%":
|
|
3292
|
-
"%Object.getPrototypeOf%":
|
|
3293
|
-
"%Math.abs%":
|
|
3294
|
-
"%Math.floor%":
|
|
3295
|
-
"%Math.max%":
|
|
3296
|
-
"%Math.min%":
|
|
3297
|
-
"%Math.pow%":
|
|
3298
|
-
"%Math.round%":
|
|
3299
|
-
"%Math.sign%":
|
|
3300
|
-
"%Reflect.getPrototypeOf%":
|
|
3294
|
+
"%Function.prototype.apply%": po,
|
|
3295
|
+
"%Object.defineProperty%": pu,
|
|
3296
|
+
"%Object.getPrototypeOf%": mu,
|
|
3297
|
+
"%Math.abs%": su,
|
|
3298
|
+
"%Math.floor%": au,
|
|
3299
|
+
"%Math.max%": cu,
|
|
3300
|
+
"%Math.min%": lu,
|
|
3301
|
+
"%Math.pow%": uu,
|
|
3302
|
+
"%Math.round%": fu,
|
|
3303
|
+
"%Math.sign%": du,
|
|
3304
|
+
"%Reflect.getPrototypeOf%": yu
|
|
3301
3305
|
};
|
|
3302
|
-
if (
|
|
3306
|
+
if (U)
|
|
3303
3307
|
try {
|
|
3304
3308
|
null.error;
|
|
3305
3309
|
} catch (t) {
|
|
3306
|
-
var
|
|
3307
|
-
Pe["%Error.prototype%"] =
|
|
3310
|
+
var Su = U(U(t));
|
|
3311
|
+
Pe["%Error.prototype%"] = Su;
|
|
3308
3312
|
}
|
|
3309
|
-
var
|
|
3313
|
+
var vu = function t(e) {
|
|
3310
3314
|
var r;
|
|
3311
3315
|
if (e === "%AsyncFunction%")
|
|
3312
|
-
r =
|
|
3316
|
+
r = gr("async function () {}");
|
|
3313
3317
|
else if (e === "%GeneratorFunction%")
|
|
3314
|
-
r =
|
|
3318
|
+
r = gr("function* () {}");
|
|
3315
3319
|
else if (e === "%AsyncGeneratorFunction%")
|
|
3316
|
-
r =
|
|
3320
|
+
r = gr("async function* () {}");
|
|
3317
3321
|
else if (e === "%AsyncGenerator%") {
|
|
3318
3322
|
var n = t("%AsyncGeneratorFunction%");
|
|
3319
3323
|
n && (r = n.prototype);
|
|
3320
3324
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
3321
3325
|
var i = t("%AsyncGenerator%");
|
|
3322
|
-
i &&
|
|
3326
|
+
i && U && (r = U(i.prototype));
|
|
3323
3327
|
}
|
|
3324
3328
|
return Pe[e] = r, r;
|
|
3325
|
-
},
|
|
3329
|
+
}, Zn = {
|
|
3326
3330
|
__proto__: null,
|
|
3327
3331
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
3328
3332
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -3375,21 +3379,21 @@ var gu = function t(e) {
|
|
|
3375
3379
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3376
3380
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3377
3381
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3378
|
-
}, pt = Wt, $t =
|
|
3382
|
+
}, pt = Wt, $t = Zl(), bu = pt.call(dt, Array.prototype.concat), Cu = pt.call(po, Array.prototype.splice), ei = pt.call(dt, String.prototype.replace), jt = pt.call(dt, String.prototype.slice), Ru = pt.call(dt, RegExp.prototype.exec), Eu = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Tu = /\\(\\)?/g, Pu = function(e) {
|
|
3379
3383
|
var r = jt(e, 0, 1), n = jt(e, -1);
|
|
3380
3384
|
if (r === "%" && n !== "%")
|
|
3381
3385
|
throw new Ve("invalid intrinsic syntax, expected closing `%`");
|
|
3382
3386
|
if (n === "%" && r !== "%")
|
|
3383
3387
|
throw new Ve("invalid intrinsic syntax, expected opening `%`");
|
|
3384
3388
|
var i = [];
|
|
3385
|
-
return
|
|
3386
|
-
i[i.length] = a ?
|
|
3389
|
+
return ei(e, Eu, function(o, s, a, c) {
|
|
3390
|
+
i[i.length] = a ? ei(c, Tu, "$1") : s || o;
|
|
3387
3391
|
}), i;
|
|
3388
|
-
},
|
|
3392
|
+
}, Ou = function(e, r) {
|
|
3389
3393
|
var n = e, i;
|
|
3390
|
-
if ($t(
|
|
3394
|
+
if ($t(Zn, n) && (i = Zn[n], n = "%" + i[0] + "%"), $t(Pe, n)) {
|
|
3391
3395
|
var o = Pe[n];
|
|
3392
|
-
if (o ===
|
|
3396
|
+
if (o === Me && (o = vu(n)), typeof o > "u" && !r)
|
|
3393
3397
|
throw new $e("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
3394
3398
|
return {
|
|
3395
3399
|
alias: i,
|
|
@@ -3398,15 +3402,15 @@ var gu = function t(e) {
|
|
|
3398
3402
|
};
|
|
3399
3403
|
}
|
|
3400
3404
|
throw new Ve("intrinsic " + e + " does not exist!");
|
|
3401
|
-
},
|
|
3405
|
+
}, en = function(e, r) {
|
|
3402
3406
|
if (typeof e != "string" || e.length === 0)
|
|
3403
3407
|
throw new $e("intrinsic name must be a non-empty string");
|
|
3404
3408
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
3405
3409
|
throw new $e('"allowMissing" argument must be a boolean');
|
|
3406
|
-
if (
|
|
3410
|
+
if (Ru(/^%?[^%]*%?$/, e) === null)
|
|
3407
3411
|
throw new Ve("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3408
|
-
var n =
|
|
3409
|
-
l && (i = l[0],
|
|
3412
|
+
var n = Pu(e), i = n.length > 0 ? n[0] : "", o = Ou("%" + i + "%", r), s = o.name, a = o.value, c = !1, l = o.alias;
|
|
3413
|
+
l && (i = l[0], Cu(n, bu([0, 1], l)));
|
|
3410
3414
|
for (var u = 1, f = !0; u < n.length; u += 1) {
|
|
3411
3415
|
var p = n[u], h = jt(p, 0, 1), g = jt(p, -1);
|
|
3412
3416
|
if ((h === '"' || h === "'" || h === "`" || g === '"' || g === "'" || g === "`") && h !== g)
|
|
@@ -3428,75 +3432,75 @@ var gu = function t(e) {
|
|
|
3428
3432
|
}
|
|
3429
3433
|
}
|
|
3430
3434
|
return a;
|
|
3431
|
-
},
|
|
3435
|
+
}, ho = en, mo = uo, wu = mo([ho("%String.prototype.indexOf%")]), yo = function(e, r) {
|
|
3432
3436
|
var n = (
|
|
3433
3437
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
3434
|
-
|
|
3438
|
+
ho(e, !!r)
|
|
3435
3439
|
);
|
|
3436
|
-
return typeof n == "function" &&
|
|
3440
|
+
return typeof n == "function" && wu(e, ".prototype.") > -1 ? mo(
|
|
3437
3441
|
/** @type {const} */
|
|
3438
3442
|
[n]
|
|
3439
3443
|
) : n;
|
|
3440
|
-
},
|
|
3444
|
+
}, Au = en, ht = yo, _u = zt, Du = Ge, ti = Au("%Map%", !0), Lu = ht("Map.prototype.get", !0), xu = ht("Map.prototype.set", !0), Iu = ht("Map.prototype.has", !0), ku = ht("Map.prototype.delete", !0), Fu = ht("Map.prototype.size", !0), go = !!ti && /** @type {Exclude<import('.'), false>} */
|
|
3441
3445
|
function() {
|
|
3442
3446
|
var e, r = {
|
|
3443
3447
|
assert: function(n) {
|
|
3444
3448
|
if (!r.has(n))
|
|
3445
|
-
throw new
|
|
3449
|
+
throw new Du("Side channel does not contain " + _u(n));
|
|
3446
3450
|
},
|
|
3447
3451
|
delete: function(n) {
|
|
3448
3452
|
if (e) {
|
|
3449
|
-
var i =
|
|
3450
|
-
return
|
|
3453
|
+
var i = ku(e, n);
|
|
3454
|
+
return Fu(e) === 0 && (e = void 0), i;
|
|
3451
3455
|
}
|
|
3452
3456
|
return !1;
|
|
3453
3457
|
},
|
|
3454
3458
|
get: function(n) {
|
|
3455
3459
|
if (e)
|
|
3456
|
-
return
|
|
3460
|
+
return Lu(e, n);
|
|
3457
3461
|
},
|
|
3458
3462
|
has: function(n) {
|
|
3459
|
-
return e ?
|
|
3463
|
+
return e ? Iu(e, n) : !1;
|
|
3460
3464
|
},
|
|
3461
3465
|
set: function(n, i) {
|
|
3462
|
-
e || (e = new
|
|
3466
|
+
e || (e = new ti()), xu(e, n, i);
|
|
3463
3467
|
}
|
|
3464
3468
|
};
|
|
3465
3469
|
return r;
|
|
3466
|
-
},
|
|
3470
|
+
}, Mu = en, Kt = yo, Uu = zt, vt = go, Nu = Ge, Fe = Mu("%WeakMap%", !0), Bu = Kt("WeakMap.prototype.get", !0), $u = Kt("WeakMap.prototype.set", !0), ju = Kt("WeakMap.prototype.has", !0), Hu = Kt("WeakMap.prototype.delete", !0), Vu = Fe ? (
|
|
3467
3471
|
/** @type {Exclude<import('.'), false>} */
|
|
3468
3472
|
function() {
|
|
3469
3473
|
var e, r, n = {
|
|
3470
3474
|
assert: function(i) {
|
|
3471
3475
|
if (!n.has(i))
|
|
3472
|
-
throw new
|
|
3476
|
+
throw new Nu("Side channel does not contain " + Uu(i));
|
|
3473
3477
|
},
|
|
3474
3478
|
delete: function(i) {
|
|
3475
3479
|
if (Fe && i && (typeof i == "object" || typeof i == "function")) {
|
|
3476
3480
|
if (e)
|
|
3477
|
-
return
|
|
3481
|
+
return Hu(e, i);
|
|
3478
3482
|
} else if (vt && r)
|
|
3479
3483
|
return r.delete(i);
|
|
3480
3484
|
return !1;
|
|
3481
3485
|
},
|
|
3482
3486
|
get: function(i) {
|
|
3483
|
-
return Fe && i && (typeof i == "object" || typeof i == "function") && e ?
|
|
3487
|
+
return Fe && i && (typeof i == "object" || typeof i == "function") && e ? Bu(e, i) : r && r.get(i);
|
|
3484
3488
|
},
|
|
3485
3489
|
has: function(i) {
|
|
3486
|
-
return Fe && i && (typeof i == "object" || typeof i == "function") && e ?
|
|
3490
|
+
return Fe && i && (typeof i == "object" || typeof i == "function") && e ? ju(e, i) : !!r && r.has(i);
|
|
3487
3491
|
},
|
|
3488
3492
|
set: function(i, o) {
|
|
3489
|
-
Fe && i && (typeof i == "object" || typeof i == "function") ? (e || (e = new Fe()),
|
|
3493
|
+
Fe && i && (typeof i == "object" || typeof i == "function") ? (e || (e = new Fe()), $u(e, i, o)) : vt && (r || (r = vt()), r.set(i, o));
|
|
3490
3494
|
}
|
|
3491
3495
|
};
|
|
3492
3496
|
return n;
|
|
3493
3497
|
}
|
|
3494
|
-
) : vt,
|
|
3498
|
+
) : vt, qu = Ge, zu = zt, Gu = hl, Wu = go, Ku = Vu, Ju = Ku || Wu || Gu, So = function() {
|
|
3495
3499
|
var e, r = {
|
|
3496
3500
|
assert: function(n) {
|
|
3497
3501
|
if (!r.has(n)) {
|
|
3498
|
-
var i = n && Object(n) === n ? "the given object key" :
|
|
3499
|
-
throw new
|
|
3502
|
+
var i = n && Object(n) === n ? "the given object key" : zu(n);
|
|
3503
|
+
throw new qu("Side channel does not contain " + i);
|
|
3500
3504
|
}
|
|
3501
3505
|
},
|
|
3502
3506
|
delete: function(n) {
|
|
@@ -3509,38 +3513,38 @@ function() {
|
|
|
3509
3513
|
return !!e && e.has(n);
|
|
3510
3514
|
},
|
|
3511
3515
|
set: function(n, i) {
|
|
3512
|
-
e || (e =
|
|
3516
|
+
e || (e = Ju()), e.set(n, i);
|
|
3513
3517
|
}
|
|
3514
3518
|
};
|
|
3515
3519
|
return r;
|
|
3516
|
-
},
|
|
3520
|
+
}, Qu = String.prototype.replace, Xu = /%20/g, vr = {
|
|
3517
3521
|
RFC1738: "RFC1738",
|
|
3518
3522
|
RFC3986: "RFC3986"
|
|
3519
|
-
},
|
|
3520
|
-
default:
|
|
3523
|
+
}, tn = {
|
|
3524
|
+
default: vr.RFC3986,
|
|
3521
3525
|
formatters: {
|
|
3522
3526
|
RFC1738: function(t) {
|
|
3523
|
-
return
|
|
3527
|
+
return Qu.call(t, Xu, "+");
|
|
3524
3528
|
},
|
|
3525
3529
|
RFC3986: function(t) {
|
|
3526
3530
|
return String(t);
|
|
3527
3531
|
}
|
|
3528
3532
|
},
|
|
3529
|
-
RFC1738:
|
|
3530
|
-
RFC3986:
|
|
3531
|
-
},
|
|
3533
|
+
RFC1738: vr.RFC1738,
|
|
3534
|
+
RFC3986: vr.RFC3986
|
|
3535
|
+
}, Yu = tn, vo = So, ri = so, br = Object.prototype.hasOwnProperty, me = Array.isArray, Jt = vo(), Ce = function(e, r) {
|
|
3532
3536
|
return Jt.set(e, r), e;
|
|
3533
3537
|
}, Re = function(e) {
|
|
3534
3538
|
return Jt.has(e);
|
|
3535
3539
|
}, et = function(e) {
|
|
3536
3540
|
return Jt.get(e);
|
|
3537
|
-
},
|
|
3541
|
+
}, Lr = function(e, r) {
|
|
3538
3542
|
Jt.set(e, r);
|
|
3539
3543
|
}, ie = function() {
|
|
3540
3544
|
for (var t = [], e = 0; e < 256; ++e)
|
|
3541
3545
|
t[t.length] = "%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase();
|
|
3542
3546
|
return t;
|
|
3543
|
-
}(),
|
|
3547
|
+
}(), Zu = function(e) {
|
|
3544
3548
|
for (; e.length > 1; ) {
|
|
3545
3549
|
var r = e.pop(), n = r.obj[r.prop];
|
|
3546
3550
|
if (me(n)) {
|
|
@@ -3553,14 +3557,14 @@ function() {
|
|
|
3553
3557
|
for (var n = r && r.plainObjects ? { __proto__: null } : {}, i = 0; i < e.length; ++i)
|
|
3554
3558
|
typeof e[i] < "u" && (n[i] = e[i]);
|
|
3555
3559
|
return n;
|
|
3556
|
-
},
|
|
3557
|
-
r === "__proto__" &&
|
|
3560
|
+
}, xr = function(e, r, n) {
|
|
3561
|
+
r === "__proto__" && ri ? ri(e, r, {
|
|
3558
3562
|
configurable: !0,
|
|
3559
3563
|
enumerable: !0,
|
|
3560
3564
|
value: n,
|
|
3561
3565
|
writable: !0
|
|
3562
3566
|
}) : e[r] = n;
|
|
3563
|
-
},
|
|
3567
|
+
}, ef = function t(e, r, n) {
|
|
3564
3568
|
if (!r)
|
|
3565
3569
|
return e;
|
|
3566
3570
|
if (typeof r != "object" && typeof r != "function") {
|
|
@@ -3575,11 +3579,11 @@ function() {
|
|
|
3575
3579
|
} else if (e && typeof e == "object")
|
|
3576
3580
|
if (Re(e)) {
|
|
3577
3581
|
var o = et(e) + 1;
|
|
3578
|
-
e[o] = r,
|
|
3582
|
+
e[o] = r, Lr(e, o);
|
|
3579
3583
|
} else {
|
|
3580
3584
|
if (n && n.strictMerge)
|
|
3581
3585
|
return [e, r];
|
|
3582
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
3586
|
+
(n && (n.plainObjects || n.allowPrototypes) || !br.call(Object.prototype, r)) && (e[r] = !0);
|
|
3583
3587
|
}
|
|
3584
3588
|
else
|
|
3585
3589
|
return [e, r];
|
|
@@ -3604,7 +3608,7 @@ function() {
|
|
|
3604
3608
|
var f = e;
|
|
3605
3609
|
if (me(e) && !me(r) && (f = Be(e, n)), me(e) && me(r)) {
|
|
3606
3610
|
if (r.forEach(function(p, h) {
|
|
3607
|
-
if (
|
|
3611
|
+
if (br.call(e, h)) {
|
|
3608
3612
|
var g = e[h];
|
|
3609
3613
|
g && typeof g == "object" && p && typeof p == "object" ? e[h] = t(g, p, n) : e[e.length] = p;
|
|
3610
3614
|
} else
|
|
@@ -3618,17 +3622,17 @@ function() {
|
|
|
3618
3622
|
}
|
|
3619
3623
|
return Object.keys(r).reduce(function(p, h) {
|
|
3620
3624
|
var g = r[h];
|
|
3621
|
-
if (
|
|
3625
|
+
if (br.call(p, h) ? xr(p, h, t(p[h], g, n)) : xr(p, h, g), Re(r) && !Re(p) && Ce(p, et(r)), Re(p)) {
|
|
3622
3626
|
var v = parseInt(h, 10);
|
|
3623
|
-
String(v) === h && v >= 0 && v > et(p) &&
|
|
3627
|
+
String(v) === h && v >= 0 && v > et(p) && Lr(p, v);
|
|
3624
3628
|
}
|
|
3625
3629
|
return p;
|
|
3626
3630
|
}, f);
|
|
3627
|
-
},
|
|
3631
|
+
}, tf = function(e, r) {
|
|
3628
3632
|
return Object.keys(r).reduce(function(n, i) {
|
|
3629
|
-
return
|
|
3633
|
+
return xr(n, i, r[i]), n;
|
|
3630
3634
|
}, e);
|
|
3631
|
-
},
|
|
3635
|
+
}, rf = function(t, e, r) {
|
|
3632
3636
|
var n = t.replace(/\+/g, " ");
|
|
3633
3637
|
if (r === "iso-8859-1")
|
|
3634
3638
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -3637,7 +3641,7 @@ function() {
|
|
|
3637
3641
|
} catch {
|
|
3638
3642
|
return n;
|
|
3639
3643
|
}
|
|
3640
|
-
}, bt = 1024,
|
|
3644
|
+
}, bt = 1024, nf = function(e, r, n, i, o) {
|
|
3641
3645
|
if (e.length === 0)
|
|
3642
3646
|
return e;
|
|
3643
3647
|
var s = e;
|
|
@@ -3653,7 +3657,7 @@ function() {
|
|
|
3653
3657
|
}
|
|
3654
3658
|
for (var f = [], p = 0; p < l.length; ++p) {
|
|
3655
3659
|
var h = l.charCodeAt(p);
|
|
3656
|
-
if (h === 45 || h === 46 || h === 95 || h === 126 || h >= 48 && h <= 57 || h >= 65 && h <= 90 || h >= 97 && h <= 122 || o ===
|
|
3660
|
+
if (h === 45 || h === 46 || h === 95 || h === 126 || h >= 48 && h <= 57 || h >= 65 && h <= 90 || h >= 97 && h <= 122 || o === Yu.RFC1738 && (h === 40 || h === 41)) {
|
|
3657
3661
|
f[f.length] = l.charAt(p);
|
|
3658
3662
|
continue;
|
|
3659
3663
|
}
|
|
@@ -3674,24 +3678,24 @@ function() {
|
|
|
3674
3678
|
a += f.join("");
|
|
3675
3679
|
}
|
|
3676
3680
|
return a;
|
|
3677
|
-
},
|
|
3678
|
-
for (var r = [{ obj: { o: e }, prop: "o" }], n =
|
|
3681
|
+
}, of = function(e) {
|
|
3682
|
+
for (var r = [{ obj: { o: e }, prop: "o" }], n = vo(), i = 0; i < r.length; ++i)
|
|
3679
3683
|
for (var o = r[i], s = o.obj[o.prop], a = Object.keys(s), c = 0; c < a.length; ++c) {
|
|
3680
3684
|
var l = a[c], u = s[l];
|
|
3681
3685
|
typeof u == "object" && u !== null && !n.has(u) && (r[r.length] = { obj: s, prop: l }, n.set(u, !0));
|
|
3682
3686
|
}
|
|
3683
|
-
return
|
|
3684
|
-
},
|
|
3687
|
+
return Zu(r), e;
|
|
3688
|
+
}, sf = function(e) {
|
|
3685
3689
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
3686
|
-
},
|
|
3690
|
+
}, af = function(e) {
|
|
3687
3691
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
|
|
3688
|
-
},
|
|
3692
|
+
}, cf = function(e, r, n, i, o) {
|
|
3689
3693
|
if (Re(e)) {
|
|
3690
3694
|
if (o)
|
|
3691
3695
|
throw new RangeError("Array limit exceeded. Only " + n + " element" + (n === 1 ? "" : "s") + " allowed in an array.");
|
|
3692
3696
|
for (var s = me(r) ? r : [r], a = et(e), c = 0; c < s.length; ++c)
|
|
3693
3697
|
a += 1, e[a] = s[c];
|
|
3694
|
-
return
|
|
3698
|
+
return Lr(e, a), e;
|
|
3695
3699
|
}
|
|
3696
3700
|
var l = [].concat(e, r);
|
|
3697
3701
|
if (l.length > n) {
|
|
@@ -3700,27 +3704,27 @@ function() {
|
|
|
3700
3704
|
return Ce(Be(l, { plainObjects: i }), l.length - 1);
|
|
3701
3705
|
}
|
|
3702
3706
|
return l;
|
|
3703
|
-
},
|
|
3707
|
+
}, lf = function(e, r) {
|
|
3704
3708
|
if (me(e)) {
|
|
3705
3709
|
for (var n = [], i = 0; i < e.length; i += 1)
|
|
3706
3710
|
n[n.length] = r(e[i]);
|
|
3707
3711
|
return n;
|
|
3708
3712
|
}
|
|
3709
3713
|
return r(e);
|
|
3710
|
-
},
|
|
3714
|
+
}, bo = {
|
|
3711
3715
|
arrayToObject: Be,
|
|
3712
|
-
assign:
|
|
3713
|
-
combine:
|
|
3714
|
-
compact:
|
|
3715
|
-
decode:
|
|
3716
|
-
encode:
|
|
3717
|
-
isBuffer:
|
|
3716
|
+
assign: tf,
|
|
3717
|
+
combine: cf,
|
|
3718
|
+
compact: of,
|
|
3719
|
+
decode: rf,
|
|
3720
|
+
encode: nf,
|
|
3721
|
+
isBuffer: af,
|
|
3718
3722
|
isOverflow: Re,
|
|
3719
|
-
isRegExp:
|
|
3723
|
+
isRegExp: sf,
|
|
3720
3724
|
markOverflow: Ce,
|
|
3721
|
-
maybeMap:
|
|
3722
|
-
merge:
|
|
3723
|
-
},
|
|
3725
|
+
maybeMap: lf,
|
|
3726
|
+
merge: ef
|
|
3727
|
+
}, Co = So, At = bo, it = tn, uf = Object.prototype.hasOwnProperty, Ro = {
|
|
3724
3728
|
brackets: function(e) {
|
|
3725
3729
|
return e + "[]";
|
|
3726
3730
|
},
|
|
@@ -3731,9 +3735,9 @@ function() {
|
|
|
3731
3735
|
repeat: function(e) {
|
|
3732
3736
|
return e;
|
|
3733
3737
|
}
|
|
3734
|
-
}, oe = Array.isArray,
|
|
3735
|
-
|
|
3736
|
-
},
|
|
3738
|
+
}, oe = Array.isArray, ff = Array.prototype.push, Eo = function(t, e) {
|
|
3739
|
+
ff.apply(t, oe(e) ? e : [e]);
|
|
3740
|
+
}, df = Date.prototype.toISOString, ni = it.default, F = {
|
|
3737
3741
|
addQueryPrefix: !1,
|
|
3738
3742
|
allowDots: !1,
|
|
3739
3743
|
allowEmptyArrays: !1,
|
|
@@ -3748,29 +3752,29 @@ function() {
|
|
|
3748
3752
|
encoder: At.encode,
|
|
3749
3753
|
encodeValuesOnly: !1,
|
|
3750
3754
|
filter: void 0,
|
|
3751
|
-
format:
|
|
3752
|
-
formatter: it.formatters[
|
|
3755
|
+
format: ni,
|
|
3756
|
+
formatter: it.formatters[ni],
|
|
3753
3757
|
// deprecated
|
|
3754
3758
|
indices: !1,
|
|
3755
3759
|
serializeDate: function(e) {
|
|
3756
|
-
return
|
|
3760
|
+
return df.call(e);
|
|
3757
3761
|
},
|
|
3758
3762
|
skipNulls: !1,
|
|
3759
3763
|
strictNullHandling: !1
|
|
3760
|
-
},
|
|
3764
|
+
}, pf = function(e) {
|
|
3761
3765
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
3762
|
-
},
|
|
3766
|
+
}, Cr = {}, hf = function t(e, r, n, i, o, s, a, c, l, u, f, p, h, g, v, O, m, b, R, E) {
|
|
3763
3767
|
var C = e;
|
|
3764
3768
|
if (E > R)
|
|
3765
3769
|
throw new RangeError("Input depth exceeded depth option of " + R);
|
|
3766
|
-
for (var x = b, A = 0, B = !1; (x = x.get(
|
|
3770
|
+
for (var x = b, A = 0, B = !1; (x = x.get(Cr)) !== void 0 && !B; ) {
|
|
3767
3771
|
var z = x.get(e);
|
|
3768
3772
|
if (A += 1, typeof z < "u") {
|
|
3769
3773
|
if (z === A)
|
|
3770
3774
|
throw new RangeError("Cyclic object value");
|
|
3771
3775
|
B = !0;
|
|
3772
3776
|
}
|
|
3773
|
-
typeof x.get(
|
|
3777
|
+
typeof x.get(Cr) > "u" && (A = 0);
|
|
3774
3778
|
}
|
|
3775
3779
|
if (C = typeof u == "function" ? u(r, C) : C, C instanceof Date ? C = h(C) : n === "comma" && oe(C) && (C = At.maybeMap(C, function(L) {
|
|
3776
3780
|
return L instanceof Date ? h(L) : L;
|
|
@@ -3779,7 +3783,7 @@ function() {
|
|
|
3779
3783
|
return v(l && !O ? l(r, F.encoder, m, "key", g) : r);
|
|
3780
3784
|
C = "";
|
|
3781
3785
|
}
|
|
3782
|
-
if (
|
|
3786
|
+
if (pf(C) || At.isBuffer(C)) {
|
|
3783
3787
|
if (l) {
|
|
3784
3788
|
var J = O ? r : l(r, F.encoder, m, "key", g);
|
|
3785
3789
|
return [v(J) + "=" + v(l(C, F.encoder, m, "value", g))];
|
|
@@ -3800,7 +3804,7 @@ function() {
|
|
|
3800
3804
|
var Q = Object.keys(C);
|
|
3801
3805
|
W = f ? Q.sort(f) : Q;
|
|
3802
3806
|
}
|
|
3803
|
-
var
|
|
3807
|
+
var M = c ? String(r).replace(/\./g, "%2E") : String(r), te = i && oe(C) && C.length === 1 ? M + "[]" : M;
|
|
3804
3808
|
if (o && oe(C) && C.length === 0 && Object.keys(C).length === 0)
|
|
3805
3809
|
return te + "[]";
|
|
3806
3810
|
for (var pe = 0; pe < W.length; ++pe) {
|
|
@@ -3808,8 +3812,8 @@ function() {
|
|
|
3808
3812
|
if (!(a && Le === null)) {
|
|
3809
3813
|
var We = p && c ? String(X).replace(/\./g, "%2E") : String(X), mt = oe(C) ? typeof n == "function" ? n(te, We) : te : te + (p ? "." + We : "[" + We + "]");
|
|
3810
3814
|
b.set(e, A);
|
|
3811
|
-
var re =
|
|
3812
|
-
re.set(
|
|
3815
|
+
var re = Co();
|
|
3816
|
+
re.set(Cr, b), Eo(G, t(
|
|
3813
3817
|
Le,
|
|
3814
3818
|
mt,
|
|
3815
3819
|
n,
|
|
@@ -3834,7 +3838,7 @@ function() {
|
|
|
3834
3838
|
}
|
|
3835
3839
|
}
|
|
3836
3840
|
return G;
|
|
3837
|
-
},
|
|
3841
|
+
}, mf = function(e) {
|
|
3838
3842
|
if (!e)
|
|
3839
3843
|
return F;
|
|
3840
3844
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -3848,14 +3852,14 @@ function() {
|
|
|
3848
3852
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3849
3853
|
var n = it.default;
|
|
3850
3854
|
if (typeof e.format < "u") {
|
|
3851
|
-
if (!
|
|
3855
|
+
if (!uf.call(it.formatters, e.format))
|
|
3852
3856
|
throw new TypeError("Unknown format option provided.");
|
|
3853
3857
|
n = e.format;
|
|
3854
3858
|
}
|
|
3855
3859
|
var i = it.formatters[n], o = F.filter;
|
|
3856
3860
|
(typeof e.filter == "function" || oe(e.filter)) && (o = e.filter);
|
|
3857
3861
|
var s;
|
|
3858
|
-
if (e.arrayFormat in
|
|
3862
|
+
if (e.arrayFormat in Ro ? s = e.arrayFormat : "indices" in e ? s = e.indices ? "indices" : "repeat" : s = F.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
3859
3863
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3860
3864
|
var a = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : F.allowDots : !!e.allowDots;
|
|
3861
3865
|
return {
|
|
@@ -3880,21 +3884,21 @@ function() {
|
|
|
3880
3884
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
3881
3885
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : F.strictNullHandling
|
|
3882
3886
|
};
|
|
3883
|
-
},
|
|
3884
|
-
var r = t, n =
|
|
3887
|
+
}, yf = function(t, e) {
|
|
3888
|
+
var r = t, n = mf(e), i, o;
|
|
3885
3889
|
typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : oe(n.filter) && (o = n.filter, i = o);
|
|
3886
3890
|
var s = [];
|
|
3887
3891
|
if (typeof r != "object" || r === null)
|
|
3888
3892
|
return "";
|
|
3889
|
-
var a =
|
|
3893
|
+
var a = Ro[n.arrayFormat], c = a === "comma" && n.commaRoundTrip;
|
|
3890
3894
|
i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
|
|
3891
|
-
for (var l =
|
|
3895
|
+
for (var l = Co(), u = 0; u < i.length; ++u) {
|
|
3892
3896
|
var f = i[u];
|
|
3893
3897
|
if (!(typeof f > "u" || f === null)) {
|
|
3894
3898
|
var p = r[f];
|
|
3895
3899
|
if (!(n.skipNulls && p === null)) {
|
|
3896
3900
|
var h = n.encodeDotInKeys ? String(f).replace(/\./g, "%2E") : String(f);
|
|
3897
|
-
|
|
3901
|
+
Eo(s, hf(
|
|
3898
3902
|
p,
|
|
3899
3903
|
h,
|
|
3900
3904
|
a,
|
|
@@ -3921,7 +3925,7 @@ function() {
|
|
|
3921
3925
|
}
|
|
3922
3926
|
var g = s.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
|
|
3923
3927
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B" + n.delimiter : v += "utf8=%E2%9C%93" + n.delimiter), g.length > 0 ? v + g : "";
|
|
3924
|
-
}, ce =
|
|
3928
|
+
}, ce = bo, _t = Object.prototype.hasOwnProperty, Rr = Array.isArray, I = {
|
|
3925
3929
|
allowDots: !1,
|
|
3926
3930
|
allowEmptyArrays: !1,
|
|
3927
3931
|
allowPrototypes: !1,
|
|
@@ -3944,11 +3948,11 @@ function() {
|
|
|
3944
3948
|
strictMerge: !0,
|
|
3945
3949
|
strictNullHandling: !1,
|
|
3946
3950
|
throwOnLimitExceeded: !1
|
|
3947
|
-
},
|
|
3951
|
+
}, gf = function(t) {
|
|
3948
3952
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
3949
3953
|
return String.fromCharCode(parseInt(r, 10));
|
|
3950
3954
|
});
|
|
3951
|
-
},
|
|
3955
|
+
}, To = function(t, e, r) {
|
|
3952
3956
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1) {
|
|
3953
3957
|
if (e.throwOnLimitExceeded)
|
|
3954
3958
|
for (var n = 0, i = t.indexOf(","); i > -1; ) {
|
|
@@ -3961,7 +3965,7 @@ function() {
|
|
|
3961
3965
|
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
3962
3966
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3963
3967
|
return t;
|
|
3964
|
-
},
|
|
3968
|
+
}, Sf = "utf8=%26%2310003%3B", vf = "utf8=%E2%9C%93", bf = function(e, r) {
|
|
3965
3969
|
var n = { __proto__: null }, i = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
3966
3970
|
i = i.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3967
3971
|
var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, s = i.split(
|
|
@@ -3973,20 +3977,20 @@ function() {
|
|
|
3973
3977
|
var a = -1, c, l = r.charset;
|
|
3974
3978
|
if (r.charsetSentinel)
|
|
3975
3979
|
for (c = 0; c < s.length; ++c)
|
|
3976
|
-
s[c].indexOf("utf8=") === 0 && (s[c] ===
|
|
3980
|
+
s[c].indexOf("utf8=") === 0 && (s[c] === vf ? l = "utf-8" : s[c] === Sf && (l = "iso-8859-1"), a = c, c = s.length);
|
|
3977
3981
|
for (c = 0; c < s.length; ++c)
|
|
3978
3982
|
if (c !== a) {
|
|
3979
3983
|
var u = s[c], f = u.indexOf("]="), p = f === -1 ? u.indexOf("=") : f + 1, h, g;
|
|
3980
3984
|
if (p === -1 ? (h = r.decoder(u, I.decoder, l, "key"), g = r.strictNullHandling ? null : "") : (h = r.decoder(u.slice(0, p), I.decoder, l, "key"), h !== null && (g = ce.maybeMap(
|
|
3981
|
-
|
|
3985
|
+
To(
|
|
3982
3986
|
u.slice(p + 1),
|
|
3983
3987
|
r,
|
|
3984
|
-
|
|
3988
|
+
Rr(n[h]) ? n[h].length : 0
|
|
3985
3989
|
),
|
|
3986
3990
|
function(O) {
|
|
3987
3991
|
return r.decoder(O, I.decoder, l, "value");
|
|
3988
3992
|
}
|
|
3989
|
-
))), g && r.interpretNumericEntities && l === "iso-8859-1" && (g =
|
|
3993
|
+
))), g && r.interpretNumericEntities && l === "iso-8859-1" && (g = gf(String(g))), u.indexOf("[]=") > -1 && (g = Rr(g) ? [g] : g), r.comma && Rr(g) && g.length > r.arrayLimit && (g = ce.combine([], g, r.arrayLimit, r.plainObjects, r.throwOnLimitExceeded)), h !== null) {
|
|
3990
3994
|
var v = _t.call(n, h);
|
|
3991
3995
|
v && (r.duplicates === "combine" || u.indexOf("[]=") > -1) ? n[h] = ce.combine(
|
|
3992
3996
|
n[h],
|
|
@@ -3998,13 +4002,13 @@ function() {
|
|
|
3998
4002
|
}
|
|
3999
4003
|
}
|
|
4000
4004
|
return n;
|
|
4001
|
-
},
|
|
4005
|
+
}, Cf = function(t, e, r, n) {
|
|
4002
4006
|
var i = 0;
|
|
4003
4007
|
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
4004
4008
|
var o = t.slice(0, -1).join("");
|
|
4005
4009
|
i = Array.isArray(e) && e[o] ? e[o].length : 0;
|
|
4006
4010
|
}
|
|
4007
|
-
for (var s = n ? e :
|
|
4011
|
+
for (var s = n ? e : To(e, r, i), a = t.length - 1; a >= 0; --a) {
|
|
4008
4012
|
var c, l = t[a];
|
|
4009
4013
|
if (l === "[]" && r.parseArrays)
|
|
4010
4014
|
ce.isOverflow(s) ? c = s : c = r.allowEmptyArrays && (s === "" || r.strictNullHandling && s === null) ? [] : ce.combine(
|
|
@@ -4030,7 +4034,7 @@ function() {
|
|
|
4030
4034
|
s = c;
|
|
4031
4035
|
}
|
|
4032
4036
|
return s;
|
|
4033
|
-
},
|
|
4037
|
+
}, Rf = function(e, r) {
|
|
4034
4038
|
var n = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
|
|
4035
4039
|
if (r.depth <= 0)
|
|
4036
4040
|
return !r.plainObjects && _t.call(Object.prototype, n) && !r.allowPrototypes ? void 0 : [n];
|
|
@@ -4058,13 +4062,13 @@ function() {
|
|
|
4058
4062
|
i[i.length] = "[" + n.slice(c) + "]";
|
|
4059
4063
|
}
|
|
4060
4064
|
return i;
|
|
4061
|
-
},
|
|
4065
|
+
}, Ef = function(e, r, n, i) {
|
|
4062
4066
|
if (e) {
|
|
4063
|
-
var o =
|
|
4067
|
+
var o = Rf(e, n);
|
|
4064
4068
|
if (o)
|
|
4065
|
-
return
|
|
4069
|
+
return Cf(o, r, n, i);
|
|
4066
4070
|
}
|
|
4067
|
-
},
|
|
4071
|
+
}, Tf = function(e) {
|
|
4068
4072
|
if (!e)
|
|
4069
4073
|
return I;
|
|
4070
4074
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -4106,22 +4110,22 @@ function() {
|
|
|
4106
4110
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : I.strictNullHandling,
|
|
4107
4111
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
4108
4112
|
};
|
|
4109
|
-
},
|
|
4110
|
-
var r =
|
|
4113
|
+
}, Pf = function(t, e) {
|
|
4114
|
+
var r = Tf(e);
|
|
4111
4115
|
if (t === "" || t === null || typeof t > "u")
|
|
4112
4116
|
return r.plainObjects ? { __proto__: null } : {};
|
|
4113
|
-
for (var n = typeof t == "string" ?
|
|
4114
|
-
var a = o[s], c =
|
|
4117
|
+
for (var n = typeof t == "string" ? bf(t, r) : t, i = r.plainObjects ? { __proto__: null } : {}, o = Object.keys(n), s = 0; s < o.length; ++s) {
|
|
4118
|
+
var a = o[s], c = Ef(a, n[a], r, typeof t == "string");
|
|
4115
4119
|
i = ce.merge(i, c, r);
|
|
4116
4120
|
}
|
|
4117
4121
|
return r.allowSparse === !0 ? i : ce.compact(i);
|
|
4118
|
-
},
|
|
4119
|
-
formats:
|
|
4120
|
-
parse:
|
|
4121
|
-
stringify:
|
|
4122
|
+
}, Of = yf, wf = Pf, Af = tn, _f = {
|
|
4123
|
+
formats: Af,
|
|
4124
|
+
parse: wf,
|
|
4125
|
+
stringify: Of
|
|
4122
4126
|
};
|
|
4123
|
-
const
|
|
4124
|
-
class
|
|
4127
|
+
const Df = /* @__PURE__ */ Qi(_f);
|
|
4128
|
+
class Po {
|
|
4125
4129
|
constructor(e) {
|
|
4126
4130
|
y(this, "axiosInstance");
|
|
4127
4131
|
this.axiosInstance = k.create({
|
|
@@ -4138,7 +4142,7 @@ class Eo {
|
|
|
4138
4142
|
return new Promise((i, o) => {
|
|
4139
4143
|
r && (n ? n.params = r : n = {
|
|
4140
4144
|
params: r
|
|
4141
|
-
}), n && (n.paramsSerializer = { serialize: (s, a) =>
|
|
4145
|
+
}), n && (n.paramsSerializer = { serialize: (s, a) => Df.stringify(s, { indices: !1 }) }), this.axiosInstance.get(e, n ?? {}).then(({ data: s }) => i(s)).catch((s) => o(s));
|
|
4142
4146
|
});
|
|
4143
4147
|
}
|
|
4144
4148
|
Post(e, r, n) {
|
|
@@ -4159,7 +4163,7 @@ class Eo {
|
|
|
4159
4163
|
});
|
|
4160
4164
|
}
|
|
4161
4165
|
}
|
|
4162
|
-
class
|
|
4166
|
+
class Lf {
|
|
4163
4167
|
onAddLocalStream(e) {
|
|
4164
4168
|
console.debug("onAddLocalStream:", e);
|
|
4165
4169
|
}
|
|
@@ -4180,7 +4184,7 @@ class _f {
|
|
|
4180
4184
|
}
|
|
4181
4185
|
}
|
|
4182
4186
|
var T = /* @__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))(T || {}), V = /* @__PURE__ */ ((t) => (t.FRONT_FACING = "user", t.BACK_FACING = "environment", t))(V || {});
|
|
4183
|
-
let
|
|
4187
|
+
let Oo = !0, wo = !0;
|
|
4184
4188
|
function Dt(t, e, r) {
|
|
4185
4189
|
const n = t.match(e);
|
|
4186
4190
|
return n && n.length >= r && parseInt(n[r], 10);
|
|
@@ -4229,23 +4233,23 @@ function De(t, e, r) {
|
|
|
4229
4233
|
configurable: !0
|
|
4230
4234
|
});
|
|
4231
4235
|
}
|
|
4232
|
-
function
|
|
4233
|
-
return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (
|
|
4236
|
+
function xf(t) {
|
|
4237
|
+
return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (Oo = t, t ? "adapter.js logging disabled" : "adapter.js logging enabled");
|
|
4234
4238
|
}
|
|
4235
|
-
function
|
|
4236
|
-
return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (
|
|
4239
|
+
function If(t) {
|
|
4240
|
+
return typeof t != "boolean" ? new Error("Argument type: " + typeof t + ". Please use a boolean.") : (wo = !t, "adapter.js deprecation warnings " + (t ? "disabled" : "enabled"));
|
|
4237
4241
|
}
|
|
4238
|
-
function
|
|
4242
|
+
function Ao() {
|
|
4239
4243
|
if (typeof window == "object") {
|
|
4240
|
-
if (
|
|
4244
|
+
if (Oo)
|
|
4241
4245
|
return;
|
|
4242
4246
|
typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
|
|
4243
4247
|
}
|
|
4244
4248
|
}
|
|
4245
|
-
function
|
|
4246
|
-
|
|
4249
|
+
function rn(t, e) {
|
|
4250
|
+
wo && console.warn(t + " is deprecated, please use " + e + " instead.");
|
|
4247
4251
|
}
|
|
4248
|
-
function
|
|
4252
|
+
function kf(t) {
|
|
4249
4253
|
const e = { browser: null, version: null };
|
|
4250
4254
|
if (typeof t > "u" || !t.navigator || !t.navigator.userAgent)
|
|
4251
4255
|
return e.browser = "Not a browser.", e;
|
|
@@ -4272,23 +4276,23 @@ function xf(t) {
|
|
|
4272
4276
|
return e.browser = "Not a supported browser.", e;
|
|
4273
4277
|
return e;
|
|
4274
4278
|
}
|
|
4275
|
-
function
|
|
4279
|
+
function ii(t) {
|
|
4276
4280
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
4277
4281
|
}
|
|
4278
|
-
function
|
|
4279
|
-
return
|
|
4280
|
-
const n =
|
|
4282
|
+
function _o(t) {
|
|
4283
|
+
return ii(t) ? Object.keys(t).reduce(function(e, r) {
|
|
4284
|
+
const n = ii(t[r]), i = n ? _o(t[r]) : t[r], o = n && !Object.keys(i).length;
|
|
4281
4285
|
return i === void 0 || o ? e : Object.assign(e, { [r]: i });
|
|
4282
4286
|
}, {}) : t;
|
|
4283
4287
|
}
|
|
4284
|
-
function
|
|
4288
|
+
function Ir(t, e, r) {
|
|
4285
4289
|
!e || r.has(e.id) || (r.set(e.id, e), Object.keys(e).forEach((n) => {
|
|
4286
|
-
n.endsWith("Id") ?
|
|
4287
|
-
|
|
4290
|
+
n.endsWith("Id") ? Ir(t, t.get(e[n]), r) : n.endsWith("Ids") && e[n].forEach((i) => {
|
|
4291
|
+
Ir(t, t.get(i), r);
|
|
4288
4292
|
});
|
|
4289
4293
|
}));
|
|
4290
4294
|
}
|
|
4291
|
-
function
|
|
4295
|
+
function oi(t, e, r) {
|
|
4292
4296
|
const n = r ? "outbound-rtp" : "inbound-rtp", i = /* @__PURE__ */ new Map();
|
|
4293
4297
|
if (e === null)
|
|
4294
4298
|
return i;
|
|
@@ -4297,12 +4301,12 @@ function ni(t, e, r) {
|
|
|
4297
4301
|
s.type === "track" && s.trackIdentifier === e.id && o.push(s);
|
|
4298
4302
|
}), o.forEach((s) => {
|
|
4299
4303
|
t.forEach((a) => {
|
|
4300
|
-
a.type === n && a.trackId === s.id &&
|
|
4304
|
+
a.type === n && a.trackId === s.id && Ir(t, a, i);
|
|
4301
4305
|
});
|
|
4302
4306
|
}), i;
|
|
4303
4307
|
}
|
|
4304
|
-
const
|
|
4305
|
-
function
|
|
4308
|
+
const si = Ao;
|
|
4309
|
+
function Do(t, e) {
|
|
4306
4310
|
const r = t && t.navigator;
|
|
4307
4311
|
if (!r.mediaDevices)
|
|
4308
4312
|
return;
|
|
@@ -4347,12 +4351,12 @@ function Ao(t, e) {
|
|
|
4347
4351
|
return r.mediaDevices.enumerateDevices().then((p) => {
|
|
4348
4352
|
p = p.filter((g) => g.kind === "videoinput");
|
|
4349
4353
|
let h = p.find((g) => f.some((v) => g.label.toLowerCase().includes(v)));
|
|
4350
|
-
return !h && p.length && f.includes("back") && (h = p[p.length - 1]), h && (a.video.deviceId = l.exact ? { exact: h.deviceId } : { ideal: h.deviceId }), a.video = n(a.video),
|
|
4354
|
+
return !h && p.length && f.includes("back") && (h = p[p.length - 1]), h && (a.video.deviceId = l.exact ? { exact: h.deviceId } : { ideal: h.deviceId }), a.video = n(a.video), si("chrome: " + JSON.stringify(a)), c(a);
|
|
4351
4355
|
});
|
|
4352
4356
|
}
|
|
4353
4357
|
a.video = n(a.video);
|
|
4354
4358
|
}
|
|
4355
|
-
return
|
|
4359
|
+
return si("chrome: " + JSON.stringify(a)), c(a);
|
|
4356
4360
|
}, o = function(a) {
|
|
4357
4361
|
return e.version >= 64 ? a : {
|
|
4358
4362
|
name: {
|
|
@@ -4394,7 +4398,7 @@ function Ao(t, e) {
|
|
|
4394
4398
|
};
|
|
4395
4399
|
}
|
|
4396
4400
|
}
|
|
4397
|
-
function
|
|
4401
|
+
function Ff(t, e) {
|
|
4398
4402
|
if (!(t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices) && t.navigator.mediaDevices) {
|
|
4399
4403
|
if (typeof e != "function") {
|
|
4400
4404
|
console.error("shimGetDisplayMedia: getSourceId argument is not a function");
|
|
@@ -4414,10 +4418,10 @@ function If(t, e) {
|
|
|
4414
4418
|
};
|
|
4415
4419
|
}
|
|
4416
4420
|
}
|
|
4417
|
-
function
|
|
4421
|
+
function Lo(t) {
|
|
4418
4422
|
t.MediaStream = t.MediaStream || t.webkitMediaStream;
|
|
4419
4423
|
}
|
|
4420
|
-
function
|
|
4424
|
+
function xo(t) {
|
|
4421
4425
|
if (typeof t == "object" && t.RTCPeerConnection && !("ontrack" in t.RTCPeerConnection.prototype)) {
|
|
4422
4426
|
Object.defineProperty(t.RTCPeerConnection.prototype, "ontrack", {
|
|
4423
4427
|
get() {
|
|
@@ -4452,7 +4456,7 @@ function Do(t) {
|
|
|
4452
4456
|
{ value: { receiver: e.receiver } }
|
|
4453
4457
|
), e));
|
|
4454
4458
|
}
|
|
4455
|
-
function
|
|
4459
|
+
function Io(t) {
|
|
4456
4460
|
if (typeof t == "object" && t.RTCPeerConnection && !("getSenders" in t.RTCPeerConnection.prototype) && "createDTMFSender" in t.RTCPeerConnection.prototype) {
|
|
4457
4461
|
const e = function(i, o) {
|
|
4458
4462
|
return {
|
|
@@ -4504,7 +4508,7 @@ function Lo(t) {
|
|
|
4504
4508
|
});
|
|
4505
4509
|
}
|
|
4506
4510
|
}
|
|
4507
|
-
function
|
|
4511
|
+
function ko(t) {
|
|
4508
4512
|
if (!t.RTCPeerConnection)
|
|
4509
4513
|
return;
|
|
4510
4514
|
const e = t.RTCPeerConnection.prototype.getStats;
|
|
@@ -4551,7 +4555,7 @@ function xo(t) {
|
|
|
4551
4555
|
}).then(i, o);
|
|
4552
4556
|
};
|
|
4553
4557
|
}
|
|
4554
|
-
function
|
|
4558
|
+
function Fo(t) {
|
|
4555
4559
|
if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender && t.RTCRtpReceiver))
|
|
4556
4560
|
return;
|
|
4557
4561
|
if (!("getStats" in t.RTCRtpSender.prototype)) {
|
|
@@ -4571,7 +4575,7 @@ function Io(t) {
|
|
|
4571
4575
|
* send a track with the same id as sender.track as
|
|
4572
4576
|
* it is not possible to identify the RTCRtpSender.
|
|
4573
4577
|
*/
|
|
4574
|
-
|
|
4578
|
+
oi(s, o.track, !0)
|
|
4575
4579
|
));
|
|
4576
4580
|
};
|
|
4577
4581
|
}
|
|
@@ -4582,7 +4586,7 @@ function Io(t) {
|
|
|
4582
4586
|
return i.forEach((o) => o._pc = this), i;
|
|
4583
4587
|
}), De(t, "track", (n) => (n.receiver._pc = n.srcElement, n)), t.RTCRtpReceiver.prototype.getStats = function() {
|
|
4584
4588
|
const i = this;
|
|
4585
|
-
return this._pc.getStats().then((o) =>
|
|
4589
|
+
return this._pc.getStats().then((o) => oi(o, i.track, !1));
|
|
4586
4590
|
};
|
|
4587
4591
|
}
|
|
4588
4592
|
if (!("getStats" in t.RTCRtpSender.prototype && "getStats" in t.RTCRtpReceiver.prototype))
|
|
@@ -4605,7 +4609,7 @@ function Io(t) {
|
|
|
4605
4609
|
return e.apply(this, arguments);
|
|
4606
4610
|
};
|
|
4607
4611
|
}
|
|
4608
|
-
function
|
|
4612
|
+
function Mo(t) {
|
|
4609
4613
|
t.RTCPeerConnection.prototype.getLocalStreams = function() {
|
|
4610
4614
|
return this._shimmedLocalStreams = this._shimmedLocalStreams || {}, Object.keys(this._shimmedLocalStreams).map((s) => this._shimmedLocalStreams[s][0]);
|
|
4611
4615
|
};
|
|
@@ -4643,11 +4647,11 @@ function ko(t) {
|
|
|
4643
4647
|
}), i.apply(this, arguments);
|
|
4644
4648
|
};
|
|
4645
4649
|
}
|
|
4646
|
-
function
|
|
4650
|
+
function Uo(t, e) {
|
|
4647
4651
|
if (!t.RTCPeerConnection)
|
|
4648
4652
|
return;
|
|
4649
4653
|
if (t.RTCPeerConnection.prototype.addTrack && e.version >= 65)
|
|
4650
|
-
return
|
|
4654
|
+
return Mo(t);
|
|
4651
4655
|
const r = t.RTCPeerConnection.prototype.getLocalStreams;
|
|
4652
4656
|
t.RTCPeerConnection.prototype.getLocalStreams = function() {
|
|
4653
4657
|
const u = r.apply(this);
|
|
@@ -4778,7 +4782,7 @@ function Fo(t, e) {
|
|
|
4778
4782
|
}), p && (p.getTracks().length === 1 ? this.removeStream(this._reverseStreams[p.id]) : p.removeTrack(u.track), this.dispatchEvent(new Event("negotiationneeded")));
|
|
4779
4783
|
};
|
|
4780
4784
|
}
|
|
4781
|
-
function
|
|
4785
|
+
function kr(t, e) {
|
|
4782
4786
|
!t.RTCPeerConnection && t.webkitRTCPeerConnection && (t.RTCPeerConnection = t.webkitRTCPeerConnection), t.RTCPeerConnection && e.version < 53 && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function(r) {
|
|
4783
4787
|
const n = t.RTCPeerConnection.prototype[r], i = { [r]() {
|
|
4784
4788
|
return arguments[0] = new (r === "addIceCandidate" ? t.RTCIceCandidate : t.RTCSessionDescription)(arguments[0]), n.apply(this, arguments);
|
|
@@ -4786,31 +4790,31 @@ function Ir(t, e) {
|
|
|
4786
4790
|
t.RTCPeerConnection.prototype[r] = i[r];
|
|
4787
4791
|
});
|
|
4788
4792
|
}
|
|
4789
|
-
function
|
|
4793
|
+
function No(t, e) {
|
|
4790
4794
|
De(t, "negotiationneeded", (r) => {
|
|
4791
4795
|
const n = r.target;
|
|
4792
4796
|
if (!((e.version < 72 || n.getConfiguration && n.getConfiguration().sdpSemantics === "plan-b") && n.signalingState !== "stable"))
|
|
4793
4797
|
return r;
|
|
4794
4798
|
});
|
|
4795
4799
|
}
|
|
4796
|
-
const
|
|
4800
|
+
const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4797
4801
|
__proto__: null,
|
|
4798
|
-
fixNegotiationNeeded:
|
|
4799
|
-
shimAddTrackRemoveTrack:
|
|
4800
|
-
shimAddTrackRemoveTrackWithNative:
|
|
4801
|
-
shimGetDisplayMedia:
|
|
4802
|
-
shimGetSendersWithDtmf:
|
|
4803
|
-
shimGetStats:
|
|
4804
|
-
shimGetUserMedia:
|
|
4805
|
-
shimMediaStream:
|
|
4806
|
-
shimOnTrack:
|
|
4807
|
-
shimPeerConnection:
|
|
4808
|
-
shimSenderReceiverGetStats:
|
|
4802
|
+
fixNegotiationNeeded: No,
|
|
4803
|
+
shimAddTrackRemoveTrack: Uo,
|
|
4804
|
+
shimAddTrackRemoveTrackWithNative: Mo,
|
|
4805
|
+
shimGetDisplayMedia: Ff,
|
|
4806
|
+
shimGetSendersWithDtmf: Io,
|
|
4807
|
+
shimGetStats: ko,
|
|
4808
|
+
shimGetUserMedia: Do,
|
|
4809
|
+
shimMediaStream: Lo,
|
|
4810
|
+
shimOnTrack: xo,
|
|
4811
|
+
shimPeerConnection: kr,
|
|
4812
|
+
shimSenderReceiverGetStats: Fo
|
|
4809
4813
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4810
|
-
function
|
|
4814
|
+
function Bo(t, e) {
|
|
4811
4815
|
const r = t && t.navigator, n = t && t.MediaStreamTrack;
|
|
4812
4816
|
if (r.getUserMedia = function(i, o, s) {
|
|
4813
|
-
|
|
4817
|
+
rn(
|
|
4814
4818
|
"navigator.getUserMedia",
|
|
4815
4819
|
"navigator.mediaDevices.getUserMedia"
|
|
4816
4820
|
), r.mediaDevices.getUserMedia(i).then(o, s);
|
|
@@ -4835,7 +4839,7 @@ function Mo(t, e) {
|
|
|
4835
4839
|
}
|
|
4836
4840
|
}
|
|
4837
4841
|
}
|
|
4838
|
-
function
|
|
4842
|
+
function Mf(t, e) {
|
|
4839
4843
|
t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices || t.navigator.mediaDevices && (t.navigator.mediaDevices.getDisplayMedia = function(n) {
|
|
4840
4844
|
if (!(n && n.video)) {
|
|
4841
4845
|
const i = new DOMException("getDisplayMedia without video constraints is undefined");
|
|
@@ -4844,14 +4848,14 @@ function kf(t, e) {
|
|
|
4844
4848
|
return n.video === !0 ? n.video = { mediaSource: e } : n.video.mediaSource = e, t.navigator.mediaDevices.getUserMedia(n);
|
|
4845
4849
|
});
|
|
4846
4850
|
}
|
|
4847
|
-
function
|
|
4851
|
+
function $o(t) {
|
|
4848
4852
|
typeof t == "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", {
|
|
4849
4853
|
get() {
|
|
4850
4854
|
return { receiver: this.receiver };
|
|
4851
4855
|
}
|
|
4852
4856
|
});
|
|
4853
4857
|
}
|
|
4854
|
-
function
|
|
4858
|
+
function Fr(t, e) {
|
|
4855
4859
|
if (typeof t != "object" || !(t.RTCPeerConnection || t.mozRTCPeerConnection))
|
|
4856
4860
|
return;
|
|
4857
4861
|
!t.RTCPeerConnection && t.mozRTCPeerConnection && (t.RTCPeerConnection = t.mozRTCPeerConnection), e.version < 53 && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function(i) {
|
|
@@ -4888,7 +4892,7 @@ function kr(t, e) {
|
|
|
4888
4892
|
}).then(s, a);
|
|
4889
4893
|
};
|
|
4890
4894
|
}
|
|
4891
|
-
function
|
|
4895
|
+
function jo(t) {
|
|
4892
4896
|
if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender) || t.RTCRtpSender && "getStats" in t.RTCRtpSender.prototype)
|
|
4893
4897
|
return;
|
|
4894
4898
|
const e = t.RTCPeerConnection.prototype.getSenders;
|
|
@@ -4904,7 +4908,7 @@ function Bo(t) {
|
|
|
4904
4908
|
return this.track ? this._pc.getStats(this.track) : Promise.resolve(/* @__PURE__ */ new Map());
|
|
4905
4909
|
};
|
|
4906
4910
|
}
|
|
4907
|
-
function
|
|
4911
|
+
function Ho(t) {
|
|
4908
4912
|
if (!(typeof t == "object" && t.RTCPeerConnection && t.RTCRtpSender) || t.RTCRtpSender && "getStats" in t.RTCRtpReceiver.prototype)
|
|
4909
4913
|
return;
|
|
4910
4914
|
const e = t.RTCPeerConnection.prototype.getReceivers;
|
|
@@ -4915,17 +4919,17 @@ function $o(t) {
|
|
|
4915
4919
|
return this._pc.getStats(this.track);
|
|
4916
4920
|
};
|
|
4917
4921
|
}
|
|
4918
|
-
function
|
|
4922
|
+
function Vo(t) {
|
|
4919
4923
|
!t.RTCPeerConnection || "removeStream" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.removeStream = function(r) {
|
|
4920
|
-
|
|
4924
|
+
rn("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
|
|
4921
4925
|
n.track && r.getTracks().includes(n.track) && this.removeTrack(n);
|
|
4922
4926
|
});
|
|
4923
4927
|
});
|
|
4924
4928
|
}
|
|
4925
|
-
function
|
|
4929
|
+
function qo(t) {
|
|
4926
4930
|
t.DataChannel && !t.RTCDataChannel && (t.RTCDataChannel = t.DataChannel);
|
|
4927
4931
|
}
|
|
4928
|
-
function
|
|
4932
|
+
function zo(t) {
|
|
4929
4933
|
if (!(typeof t == "object" && t.RTCPeerConnection))
|
|
4930
4934
|
return;
|
|
4931
4935
|
const e = t.RTCPeerConnection.prototype.addTransceiver;
|
|
@@ -4957,7 +4961,7 @@ function Vo(t) {
|
|
|
4957
4961
|
return o;
|
|
4958
4962
|
});
|
|
4959
4963
|
}
|
|
4960
|
-
function
|
|
4964
|
+
function Go(t) {
|
|
4961
4965
|
if (!(typeof t == "object" && t.RTCRtpSender))
|
|
4962
4966
|
return;
|
|
4963
4967
|
const e = t.RTCRtpSender.prototype.getParameters;
|
|
@@ -4966,7 +4970,7 @@ function qo(t) {
|
|
|
4966
4970
|
return "encodings" in n || (n.encodings = [].concat(this.sendEncodings || [{}])), n;
|
|
4967
4971
|
});
|
|
4968
4972
|
}
|
|
4969
|
-
function
|
|
4973
|
+
function Wo(t) {
|
|
4970
4974
|
if (!(typeof t == "object" && t.RTCPeerConnection))
|
|
4971
4975
|
return;
|
|
4972
4976
|
const e = t.RTCPeerConnection.prototype.createOffer;
|
|
@@ -4976,7 +4980,7 @@ function zo(t) {
|
|
|
4976
4980
|
}) : e.apply(this, arguments);
|
|
4977
4981
|
};
|
|
4978
4982
|
}
|
|
4979
|
-
function
|
|
4983
|
+
function Ko(t) {
|
|
4980
4984
|
if (!(typeof t == "object" && t.RTCPeerConnection))
|
|
4981
4985
|
return;
|
|
4982
4986
|
const e = t.RTCPeerConnection.prototype.createAnswer;
|
|
@@ -4986,22 +4990,22 @@ function Go(t) {
|
|
|
4986
4990
|
}) : e.apply(this, arguments);
|
|
4987
4991
|
};
|
|
4988
4992
|
}
|
|
4989
|
-
const
|
|
4993
|
+
const ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4990
4994
|
__proto__: null,
|
|
4991
|
-
shimAddTransceiver:
|
|
4992
|
-
shimCreateAnswer:
|
|
4993
|
-
shimCreateOffer:
|
|
4994
|
-
shimGetDisplayMedia:
|
|
4995
|
-
shimGetParameters:
|
|
4996
|
-
shimGetUserMedia:
|
|
4997
|
-
shimOnTrack:
|
|
4998
|
-
shimPeerConnection:
|
|
4999
|
-
shimRTCDataChannel:
|
|
5000
|
-
shimReceiverGetStats:
|
|
5001
|
-
shimRemoveStream:
|
|
5002
|
-
shimSenderGetStats:
|
|
4995
|
+
shimAddTransceiver: zo,
|
|
4996
|
+
shimCreateAnswer: Ko,
|
|
4997
|
+
shimCreateOffer: Wo,
|
|
4998
|
+
shimGetDisplayMedia: Mf,
|
|
4999
|
+
shimGetParameters: Go,
|
|
5000
|
+
shimGetUserMedia: Bo,
|
|
5001
|
+
shimOnTrack: $o,
|
|
5002
|
+
shimPeerConnection: Fr,
|
|
5003
|
+
shimRTCDataChannel: qo,
|
|
5004
|
+
shimReceiverGetStats: Ho,
|
|
5005
|
+
shimRemoveStream: Vo,
|
|
5006
|
+
shimSenderGetStats: jo
|
|
5003
5007
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5004
|
-
function
|
|
5008
|
+
function Jo(t) {
|
|
5005
5009
|
if (!(typeof t != "object" || !t.RTCPeerConnection)) {
|
|
5006
5010
|
if ("getLocalStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getLocalStreams = function() {
|
|
5007
5011
|
return this._localStreams || (this._localStreams = []), this._localStreams;
|
|
@@ -5036,7 +5040,7 @@ function Wo(t) {
|
|
|
5036
5040
|
});
|
|
5037
5041
|
}
|
|
5038
5042
|
}
|
|
5039
|
-
function
|
|
5043
|
+
function Qo(t) {
|
|
5040
5044
|
if (!(typeof t != "object" || !t.RTCPeerConnection) && ("getRemoteStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getRemoteStreams = function() {
|
|
5041
5045
|
return this._remoteStreams ? this._remoteStreams : [];
|
|
5042
5046
|
}), !("onaddstream" in t.RTCPeerConnection.prototype))) {
|
|
@@ -5071,7 +5075,7 @@ function Ko(t) {
|
|
|
5071
5075
|
};
|
|
5072
5076
|
}
|
|
5073
5077
|
}
|
|
5074
|
-
function
|
|
5078
|
+
function Xo(t) {
|
|
5075
5079
|
if (typeof t != "object" || !t.RTCPeerConnection)
|
|
5076
5080
|
return;
|
|
5077
5081
|
const e = t.RTCPeerConnection.prototype, r = e.createOffer, n = e.createAnswer, i = e.setLocalDescription, o = e.setRemoteDescription, s = e.addIceCandidate;
|
|
@@ -5094,24 +5098,24 @@ function Jo(t) {
|
|
|
5094
5098
|
return u ? (f.then(l, u), Promise.resolve()) : f;
|
|
5095
5099
|
}, e.addIceCandidate = a;
|
|
5096
5100
|
}
|
|
5097
|
-
function
|
|
5101
|
+
function Yo(t) {
|
|
5098
5102
|
const e = t && t.navigator;
|
|
5099
5103
|
if (e.mediaDevices && e.mediaDevices.getUserMedia) {
|
|
5100
5104
|
const r = e.mediaDevices, n = r.getUserMedia.bind(r);
|
|
5101
|
-
e.mediaDevices.getUserMedia = (i) => n(
|
|
5105
|
+
e.mediaDevices.getUserMedia = (i) => n(Zo(i));
|
|
5102
5106
|
}
|
|
5103
5107
|
!e.getUserMedia && e.mediaDevices && e.mediaDevices.getUserMedia && (e.getUserMedia = (function(n, i, o) {
|
|
5104
5108
|
e.mediaDevices.getUserMedia(n).then(i, o);
|
|
5105
5109
|
}).bind(e));
|
|
5106
5110
|
}
|
|
5107
|
-
function
|
|
5111
|
+
function Zo(t) {
|
|
5108
5112
|
return t && t.video !== void 0 ? Object.assign(
|
|
5109
5113
|
{},
|
|
5110
5114
|
t,
|
|
5111
|
-
{ video:
|
|
5115
|
+
{ video: _o(t.video) }
|
|
5112
5116
|
) : t;
|
|
5113
5117
|
}
|
|
5114
|
-
function
|
|
5118
|
+
function es(t) {
|
|
5115
5119
|
if (!t.RTCPeerConnection)
|
|
5116
5120
|
return;
|
|
5117
5121
|
const e = t.RTCPeerConnection;
|
|
@@ -5120,7 +5124,7 @@ function Yo(t) {
|
|
|
5120
5124
|
const o = [];
|
|
5121
5125
|
for (let s = 0; s < n.iceServers.length; s++) {
|
|
5122
5126
|
let a = n.iceServers[s];
|
|
5123
|
-
a.urls === void 0 && a.url ? (
|
|
5127
|
+
a.urls === void 0 && a.url ? (rn("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]);
|
|
5124
5128
|
}
|
|
5125
5129
|
n.iceServers = o;
|
|
5126
5130
|
}
|
|
@@ -5131,14 +5135,14 @@ function Yo(t) {
|
|
|
5131
5135
|
}
|
|
5132
5136
|
});
|
|
5133
5137
|
}
|
|
5134
|
-
function
|
|
5138
|
+
function ts(t) {
|
|
5135
5139
|
typeof t == "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", {
|
|
5136
5140
|
get() {
|
|
5137
5141
|
return { receiver: this.receiver };
|
|
5138
5142
|
}
|
|
5139
5143
|
});
|
|
5140
5144
|
}
|
|
5141
|
-
function
|
|
5145
|
+
function rs(t) {
|
|
5142
5146
|
const e = t.RTCPeerConnection.prototype.createOffer;
|
|
5143
5147
|
t.RTCPeerConnection.prototype.createOffer = function(n) {
|
|
5144
5148
|
if (n) {
|
|
@@ -5151,22 +5155,22 @@ function es(t) {
|
|
|
5151
5155
|
return e.apply(this, arguments);
|
|
5152
5156
|
};
|
|
5153
5157
|
}
|
|
5154
|
-
function
|
|
5158
|
+
function ns(t) {
|
|
5155
5159
|
typeof t != "object" || t.AudioContext || (t.AudioContext = t.webkitAudioContext);
|
|
5156
5160
|
}
|
|
5157
|
-
const
|
|
5161
|
+
const li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5158
5162
|
__proto__: null,
|
|
5159
|
-
shimAudioContext:
|
|
5160
|
-
shimCallbacksAPI:
|
|
5161
|
-
shimConstraints:
|
|
5162
|
-
shimCreateOfferLegacy:
|
|
5163
|
-
shimGetUserMedia:
|
|
5164
|
-
shimLocalStreamsAPI:
|
|
5165
|
-
shimRTCIceServerUrls:
|
|
5166
|
-
shimRemoteStreamsAPI:
|
|
5167
|
-
shimTrackEventTransceiver:
|
|
5163
|
+
shimAudioContext: ns,
|
|
5164
|
+
shimCallbacksAPI: Xo,
|
|
5165
|
+
shimConstraints: Zo,
|
|
5166
|
+
shimCreateOfferLegacy: rs,
|
|
5167
|
+
shimGetUserMedia: Yo,
|
|
5168
|
+
shimLocalStreamsAPI: Jo,
|
|
5169
|
+
shimRTCIceServerUrls: es,
|
|
5170
|
+
shimRemoteStreamsAPI: Qo,
|
|
5171
|
+
shimTrackEventTransceiver: ts
|
|
5168
5172
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5169
|
-
var
|
|
5173
|
+
var is = { exports: {} };
|
|
5170
5174
|
(function(t) {
|
|
5171
5175
|
const e = {};
|
|
5172
5176
|
e.generateIdentifier = function() {
|
|
@@ -5553,12 +5557,12 @@ t=0 0\r
|
|
|
5553
5557
|
return !1;
|
|
5554
5558
|
return !0;
|
|
5555
5559
|
}, t.exports = e;
|
|
5556
|
-
})(
|
|
5557
|
-
var
|
|
5558
|
-
const je = /* @__PURE__ */
|
|
5560
|
+
})(is);
|
|
5561
|
+
var os = is.exports;
|
|
5562
|
+
const je = /* @__PURE__ */ Qi(os), Uf = /* @__PURE__ */ vs({
|
|
5559
5563
|
__proto__: null,
|
|
5560
5564
|
default: je
|
|
5561
|
-
}, [
|
|
5565
|
+
}, [os]);
|
|
5562
5566
|
function Lt(t) {
|
|
5563
5567
|
if (!t.RTCIceCandidate || t.RTCIceCandidate && "foundation" in t.RTCIceCandidate.prototype)
|
|
5564
5568
|
return;
|
|
@@ -5587,7 +5591,7 @@ function Lt(t) {
|
|
|
5587
5591
|
writable: "false"
|
|
5588
5592
|
}), r));
|
|
5589
5593
|
}
|
|
5590
|
-
function
|
|
5594
|
+
function Mr(t) {
|
|
5591
5595
|
!t.RTCIceCandidate || t.RTCIceCandidate && "relayProtocol" in t.RTCIceCandidate.prototype || De(t, "icecandidate", (e) => {
|
|
5592
5596
|
if (e.candidate) {
|
|
5593
5597
|
const r = je.parseCandidate(e.candidate.candidate);
|
|
@@ -5723,7 +5727,7 @@ function Ur(t) {
|
|
|
5723
5727
|
};
|
|
5724
5728
|
});
|
|
5725
5729
|
}
|
|
5726
|
-
function
|
|
5730
|
+
function Nr(t, e) {
|
|
5727
5731
|
if (!t.RTCPeerConnection || e.browser === "chrome" && e.version >= 71 || e.browser === "safari" && e.version >= 605)
|
|
5728
5732
|
return;
|
|
5729
5733
|
const r = t.RTCPeerConnection.prototype.setRemoteDescription;
|
|
@@ -5771,48 +5775,48 @@ function Ft(t, e) {
|
|
|
5771
5775
|
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]));
|
|
5772
5776
|
});
|
|
5773
5777
|
}
|
|
5774
|
-
const
|
|
5778
|
+
const Nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5775
5779
|
__proto__: null,
|
|
5776
|
-
removeExtmapAllowMixed:
|
|
5780
|
+
removeExtmapAllowMixed: Nr,
|
|
5777
5781
|
shimAddIceCandidateNullOrEmpty: kt,
|
|
5778
5782
|
shimConnectionState: Ur,
|
|
5779
5783
|
shimMaxMessageSize: xt,
|
|
5780
5784
|
shimParameterlessSetLocalDescription: Ft,
|
|
5781
5785
|
shimRTCIceCandidate: Lt,
|
|
5782
|
-
shimRTCIceCandidateRelayProtocol:
|
|
5786
|
+
shimRTCIceCandidateRelayProtocol: Mr,
|
|
5783
5787
|
shimSendThrowTypeError: It
|
|
5784
5788
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5785
|
-
function
|
|
5789
|
+
function Bf({ window: t } = {}, e = {
|
|
5786
5790
|
shimChrome: !0,
|
|
5787
5791
|
shimFirefox: !0,
|
|
5788
5792
|
shimSafari: !0
|
|
5789
5793
|
}) {
|
|
5790
|
-
const r =
|
|
5794
|
+
const r = Ao, n = kf(t), i = {
|
|
5791
5795
|
browserDetails: n,
|
|
5792
|
-
commonShim:
|
|
5796
|
+
commonShim: Nf,
|
|
5793
5797
|
extractVersion: Dt,
|
|
5794
|
-
disableLog:
|
|
5795
|
-
disableWarnings:
|
|
5798
|
+
disableLog: xf,
|
|
5799
|
+
disableWarnings: If,
|
|
5796
5800
|
// Expose sdp as a convenience. For production apps include directly.
|
|
5797
|
-
sdp:
|
|
5801
|
+
sdp: Uf
|
|
5798
5802
|
};
|
|
5799
5803
|
switch (n.browser) {
|
|
5800
5804
|
case "chrome":
|
|
5801
|
-
if (!
|
|
5805
|
+
if (!ai || !kr || !e.shimChrome)
|
|
5802
5806
|
return r("Chrome shim is not included in this adapter release."), i;
|
|
5803
5807
|
if (n.version === null)
|
|
5804
5808
|
return r("Chrome shim can not determine version, not shimming."), i;
|
|
5805
|
-
r("adapter.js shimming chrome."), i.browserShim =
|
|
5809
|
+
r("adapter.js shimming chrome."), i.browserShim = ai, kt(t, n), Ft(t), Do(t, n), Lo(t), kr(t, n), xo(t), Uo(t, n), Io(t), ko(t), Fo(t), No(t, n), Lt(t), Mr(t), Ur(t), xt(t, n), It(t), Nr(t, n);
|
|
5806
5810
|
break;
|
|
5807
5811
|
case "firefox":
|
|
5808
|
-
if (!
|
|
5812
|
+
if (!ci || !Fr || !e.shimFirefox)
|
|
5809
5813
|
return r("Firefox shim is not included in this adapter release."), i;
|
|
5810
|
-
r("adapter.js shimming firefox."), i.browserShim =
|
|
5814
|
+
r("adapter.js shimming firefox."), i.browserShim = ci, kt(t, n), Ft(t), Bo(t, n), Fr(t, n), $o(t), Vo(t), jo(t), Ho(t), qo(t), zo(t), Go(t), Wo(t), Ko(t), Lt(t), Ur(t), xt(t, n), It(t);
|
|
5811
5815
|
break;
|
|
5812
5816
|
case "safari":
|
|
5813
|
-
if (!
|
|
5817
|
+
if (!li || !e.shimSafari)
|
|
5814
5818
|
return r("Safari shim is not included in this adapter release."), i;
|
|
5815
|
-
r("adapter.js shimming safari."), i.browserShim =
|
|
5819
|
+
r("adapter.js shimming safari."), i.browserShim = li, kt(t, n), Ft(t), es(t), rs(t), Xo(t), Jo(t), Qo(t), ts(t), Yo(t), ns(t), Lt(t), Mr(t), xt(t, n), It(t), Nr(t, n);
|
|
5816
5820
|
break;
|
|
5817
5821
|
default:
|
|
5818
5822
|
r("Unsupported browser!");
|
|
@@ -5820,14 +5824,14 @@ function Mf({ window: t } = {}, e = {
|
|
|
5820
5824
|
}
|
|
5821
5825
|
return i;
|
|
5822
5826
|
}
|
|
5823
|
-
const
|
|
5824
|
-
class
|
|
5827
|
+
const ui = Bf({ window: typeof window > "u" ? void 0 : window });
|
|
5828
|
+
class nn {
|
|
5825
5829
|
constructor(e) {
|
|
5826
5830
|
// private config: RTCConfiguration = { iceServers: [] }
|
|
5827
5831
|
y(this, "peerConnection");
|
|
5828
5832
|
// 定时发送数据,和后台保活的定时句柄
|
|
5829
5833
|
// private interval ?: number
|
|
5830
|
-
y(this, "sessionListener", new
|
|
5834
|
+
y(this, "sessionListener", new Lf());
|
|
5831
5835
|
// 呼叫方向
|
|
5832
5836
|
y(this, "isCallOut", !1);
|
|
5833
5837
|
// 会话类型
|
|
@@ -5850,7 +5854,7 @@ class rn {
|
|
|
5850
5854
|
y(this, "openCamera", !1);
|
|
5851
5855
|
// 是否桌面共享
|
|
5852
5856
|
y(this, "desktopSharing", !1);
|
|
5853
|
-
this.sessionType = e, console.debug(
|
|
5857
|
+
this.sessionType = e, console.debug(ui.browserDetails.browser + " " + ui.browserDetails.version);
|
|
5854
5858
|
}
|
|
5855
5859
|
/**
|
|
5856
5860
|
* 设置监听
|
|
@@ -6206,7 +6210,7 @@ class rn {
|
|
|
6206
6210
|
console.log(e), this.facingChanging = !1;
|
|
6207
6211
|
}
|
|
6208
6212
|
}
|
|
6209
|
-
class
|
|
6213
|
+
class $f {
|
|
6210
6214
|
onAddRemoteStream(e) {
|
|
6211
6215
|
console.debug("onAddRemoteStream:", e);
|
|
6212
6216
|
}
|
|
@@ -6214,15 +6218,15 @@ class Nf {
|
|
|
6214
6218
|
console.debug("onError:", e);
|
|
6215
6219
|
}
|
|
6216
6220
|
}
|
|
6217
|
-
class
|
|
6221
|
+
class ss {
|
|
6218
6222
|
constructor(e, r) {
|
|
6219
6223
|
y(this, "url");
|
|
6220
6224
|
y(this, "offerSdp");
|
|
6221
6225
|
this.url = e, this.offerSdp = r;
|
|
6222
6226
|
}
|
|
6223
6227
|
}
|
|
6224
|
-
const
|
|
6225
|
-
class
|
|
6228
|
+
const jf = "/media-server/video-play/webrtc";
|
|
6229
|
+
class Hf {
|
|
6226
6230
|
/**
|
|
6227
6231
|
*
|
|
6228
6232
|
* @param rtsp_url{string} rtsp://[username]:[password]@[ip]:[port]/[path]
|
|
@@ -6230,8 +6234,8 @@ class $f {
|
|
|
6230
6234
|
*/
|
|
6231
6235
|
constructor(e, r) {
|
|
6232
6236
|
y(this, "rtspUrl");
|
|
6233
|
-
y(this, "webrtcSession", new
|
|
6234
|
-
y(this, "sessionListener", new
|
|
6237
|
+
y(this, "webrtcSession", new nn(T.RTSP_PULL));
|
|
6238
|
+
y(this, "sessionListener", new $f());
|
|
6235
6239
|
y(this, "httpClient");
|
|
6236
6240
|
this.rtspUrl = e, this.httpClient = r, this.webrtcSession.setListener(this);
|
|
6237
6241
|
}
|
|
@@ -6254,7 +6258,7 @@ class $f {
|
|
|
6254
6258
|
this.sessionListener.onError(e);
|
|
6255
6259
|
}
|
|
6256
6260
|
onStartSuccess(e) {
|
|
6257
|
-
console.debug("rtsp offer:", e.sdp), this.httpClient.Post(
|
|
6261
|
+
console.debug("rtsp offer:", e.sdp), this.httpClient.Post(jf, new ss(this.rtspUrl, e.sdp ?? "")).then((r) => {
|
|
6258
6262
|
var n, i, o, s;
|
|
6259
6263
|
if (r.code != 200) {
|
|
6260
6264
|
this.stop(), this.sessionListener.onError(new Error(r.message));
|
|
@@ -6270,27 +6274,27 @@ class $f {
|
|
|
6270
6274
|
onStopDesktopShare() {
|
|
6271
6275
|
}
|
|
6272
6276
|
}
|
|
6273
|
-
var D = /* @__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))(D || {}), q = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(q || {}), ae = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(ae || {}),
|
|
6274
|
-
let
|
|
6275
|
-
function
|
|
6276
|
-
return
|
|
6277
|
+
var D = /* @__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))(D || {}), q = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(q || {}), ae = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(ae || {}), Ue = /* @__PURE__ */ ((t) => (t.IN = "in", t.OUT = "out", t))(Ue || {}), Y = /* @__PURE__ */ ((t) => (t.LOGIN = "login", t.LOGOUT = "logout", t.Invite = "invite", t.RING = "ring", t.ANSWER = "answer", t.HANGUP = "hangup", t.DTMF = "dtmf", t))(Y || {});
|
|
6278
|
+
let as, cs = !0, Br = "/decoder-assets/";
|
|
6279
|
+
function Vf() {
|
|
6280
|
+
return Br;
|
|
6277
6281
|
}
|
|
6278
|
-
function
|
|
6279
|
-
t.endsWith("/") ?
|
|
6282
|
+
function $d(t) {
|
|
6283
|
+
t.endsWith("/") ? Br = t + "/" : Br = t;
|
|
6280
6284
|
}
|
|
6281
|
-
function
|
|
6282
|
-
|
|
6285
|
+
function jd(t) {
|
|
6286
|
+
cs = t;
|
|
6283
6287
|
}
|
|
6284
|
-
function
|
|
6285
|
-
return
|
|
6288
|
+
function qf() {
|
|
6289
|
+
return cs;
|
|
6286
6290
|
}
|
|
6287
|
-
function
|
|
6288
|
-
|
|
6291
|
+
function Hd() {
|
|
6292
|
+
as = "true";
|
|
6289
6293
|
}
|
|
6290
|
-
function
|
|
6291
|
-
return
|
|
6294
|
+
function zf() {
|
|
6295
|
+
return as;
|
|
6292
6296
|
}
|
|
6293
|
-
function
|
|
6297
|
+
function Gf() {
|
|
6294
6298
|
let t = !1;
|
|
6295
6299
|
try {
|
|
6296
6300
|
const e = RTCRtpSender.getCapabilities("video");
|
|
@@ -6300,21 +6304,21 @@ function qf() {
|
|
|
6300
6304
|
}
|
|
6301
6305
|
return t;
|
|
6302
6306
|
}
|
|
6303
|
-
function
|
|
6307
|
+
function fi() {
|
|
6304
6308
|
try {
|
|
6305
6309
|
return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
|
|
6306
6310
|
} catch {
|
|
6307
6311
|
return !1;
|
|
6308
6312
|
}
|
|
6309
6313
|
}
|
|
6310
|
-
function
|
|
6311
|
-
return "browser-" +
|
|
6314
|
+
function Wf() {
|
|
6315
|
+
return "browser-" + Kf() + Jf(6);
|
|
6312
6316
|
}
|
|
6313
|
-
function
|
|
6317
|
+
function Kf() {
|
|
6314
6318
|
let t = /* @__PURE__ */ new Date();
|
|
6315
6319
|
return `${t.getFullYear()}${t.getMonth()}${t.getDate()}${t.getHours()}${t.getMinutes()}${t.getSeconds()}`;
|
|
6316
6320
|
}
|
|
6317
|
-
function
|
|
6321
|
+
function Jf(t) {
|
|
6318
6322
|
let e = "", r = [
|
|
6319
6323
|
"0",
|
|
6320
6324
|
"1",
|
|
@@ -6358,7 +6362,7 @@ function Wf(t) {
|
|
|
6358
6362
|
e += r[Math.floor(Math.random() * (r.length - 1))];
|
|
6359
6363
|
return e;
|
|
6360
6364
|
}
|
|
6361
|
-
class
|
|
6365
|
+
class Qf {
|
|
6362
6366
|
constructor(e, r, n) {
|
|
6363
6367
|
y(this, "tel");
|
|
6364
6368
|
y(this, "mediaType");
|
|
@@ -6366,7 +6370,7 @@ class Kf {
|
|
|
6366
6370
|
this.tel = e, this.callMode = n, this.mediaType = r;
|
|
6367
6371
|
}
|
|
6368
6372
|
}
|
|
6369
|
-
class
|
|
6373
|
+
class ls {
|
|
6370
6374
|
onAddLocalStream(e) {
|
|
6371
6375
|
console.debug("onAddLocalStream:", e);
|
|
6372
6376
|
}
|
|
@@ -6398,13 +6402,13 @@ class as {
|
|
|
6398
6402
|
console.debug("onStopDesktopShare");
|
|
6399
6403
|
}
|
|
6400
6404
|
}
|
|
6401
|
-
class
|
|
6405
|
+
class us {
|
|
6402
6406
|
constructor(e, r, n) {
|
|
6403
6407
|
y(this, "tel", "");
|
|
6404
6408
|
y(this, "status", D.OFFLINE);
|
|
6405
6409
|
y(this, "mediaType", q.AUDIO);
|
|
6406
6410
|
y(this, "callMode", ae.FULL);
|
|
6407
|
-
y(this, "callDirect",
|
|
6411
|
+
y(this, "callDirect", Ue.OUT);
|
|
6408
6412
|
y(this, "called", "");
|
|
6409
6413
|
y(this, "callId");
|
|
6410
6414
|
y(this, "remoteSdp");
|
|
@@ -6416,7 +6420,7 @@ class cs {
|
|
|
6416
6420
|
y(this, "wsConnected", !1);
|
|
6417
6421
|
y(this, "closeBySelf", !1);
|
|
6418
6422
|
y(this, "webrtcSession");
|
|
6419
|
-
y(this, "sessionListener", new
|
|
6423
|
+
y(this, "sessionListener", new ls());
|
|
6420
6424
|
y(this, "wsUrl");
|
|
6421
6425
|
y(this, "accountId");
|
|
6422
6426
|
this.tel = r ?? "", this.wsUrl = e, this.accountId = n, this.ringBackTone.loop = !0, this.ringtone.loop = !0;
|
|
@@ -6439,7 +6443,7 @@ class cs {
|
|
|
6439
6443
|
console.debug("session is not ring state");
|
|
6440
6444
|
return;
|
|
6441
6445
|
}
|
|
6442
|
-
if (this.callDirect !=
|
|
6446
|
+
if (this.callDirect != Ue.IN) {
|
|
6443
6447
|
console.debug("session is call out, not allow answer");
|
|
6444
6448
|
return;
|
|
6445
6449
|
}
|
|
@@ -6447,7 +6451,7 @@ class cs {
|
|
|
6447
6451
|
this.callMode == ae.HALF ? e = q.VIDEO == this.mediaType ? T.VIDEO_HALF : T.AUDIO_HALF : e = q.VIDEO == this.mediaType ? T.VIDEO : T.AUDIO, this.webrtcCreate(e), (r = this.webrtcSession) == null || r.start(!1, this.remoteSdp);
|
|
6448
6452
|
}
|
|
6449
6453
|
hangup() {
|
|
6450
|
-
this.status <= D.IDLE || (this.status == D.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect ==
|
|
6454
|
+
this.status <= D.IDLE || (this.status == D.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect == Ue.IN ? this.sendHangup(this.callId ?? "", 488) : this.sendHangup(this.callId ?? "", 801), this.close());
|
|
6451
6455
|
}
|
|
6452
6456
|
dtmf(e) {
|
|
6453
6457
|
return this.status !== D.TALK ? !1 : (this.sendDtmf(e), !0);
|
|
@@ -6498,7 +6502,7 @@ class cs {
|
|
|
6498
6502
|
makeCall(e, r = q.AUDIO, n = ae.FULL) {
|
|
6499
6503
|
var i;
|
|
6500
6504
|
try {
|
|
6501
|
-
if (!
|
|
6505
|
+
if (!fi()) {
|
|
6502
6506
|
console.debug("Browser does not support WEBRTC"), this.sessionListener.onError(new Error("Browser does not support WEBRTC"));
|
|
6503
6507
|
return;
|
|
6504
6508
|
}
|
|
@@ -6506,7 +6510,7 @@ class cs {
|
|
|
6506
6510
|
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"));
|
|
6507
6511
|
return;
|
|
6508
6512
|
}
|
|
6509
|
-
this.status > D.IDLE && (console.debug("Another call is currently in progress, hangup it"), this.hangup()), this.mediaType = r, this.callMode = n, this.called = e, this.callDirect =
|
|
6513
|
+
this.status > D.IDLE && (console.debug("Another call is currently in progress, hangup it"), this.hangup()), this.mediaType = r, this.callMode = n, this.called = e, this.callDirect = Ue.OUT, this.callId = Wf();
|
|
6510
6514
|
let o;
|
|
6511
6515
|
this.callMode == ae.HALF ? o = q.VIDEO == r ? T.VIDEO_HALF : T.AUDIO_HALF : o = q.VIDEO == r ? T.VIDEO : T.AUDIO, this.webrtcCreate(o), (i = this.webrtcSession) == null || i.start(!0), this.status = D.TRY;
|
|
6512
6516
|
} catch (o) {
|
|
@@ -6567,7 +6571,7 @@ class cs {
|
|
|
6567
6571
|
this.sendTo({
|
|
6568
6572
|
type: Y.LOGIN,
|
|
6569
6573
|
username: this.tel,
|
|
6570
|
-
allowEmpty: this.tel === "" ?
|
|
6574
|
+
allowEmpty: this.tel === "" ? zf() : void 0,
|
|
6571
6575
|
userAgent: this.getUserAgent(),
|
|
6572
6576
|
accountId: this.accountId
|
|
6573
6577
|
});
|
|
@@ -6632,7 +6636,7 @@ class cs {
|
|
|
6632
6636
|
console.debug("receive invite, but callId is null.");
|
|
6633
6637
|
return;
|
|
6634
6638
|
}
|
|
6635
|
-
if (!
|
|
6639
|
+
if (!fi()) {
|
|
6636
6640
|
console.debug("receive invite, but unsupported webrtc."), this.sendHangup(e.callId, 803);
|
|
6637
6641
|
return;
|
|
6638
6642
|
}
|
|
@@ -6640,9 +6644,9 @@ class cs {
|
|
|
6640
6644
|
e.callId != this.callId ? (console.debug("receive invite, but busy."), this.sendHangup(e.callId, 486)) : console.debug("receive re invite. not process");
|
|
6641
6645
|
return;
|
|
6642
6646
|
}
|
|
6643
|
-
this.callId = e.callId, this.mediaType = e.mediaType ?? q.AUDIO, this.callMode = e.callMode ?? ae.FULL, this.called = e.from ?? "", this.callDirect =
|
|
6647
|
+
this.callId = e.callId, this.mediaType = e.mediaType ?? q.AUDIO, this.callMode = e.callMode ?? ae.FULL, this.called = e.from ?? "", this.callDirect = Ue.IN, this.remoteSdp = e.sdp, this.candidate = e.candidate, this.sendRing(), this.ringtone.currentTime = 0, this.ringtone.play().then(() => {
|
|
6644
6648
|
}).catch(() => {
|
|
6645
|
-
}), this.sessionListener.onNewCall(new
|
|
6649
|
+
}), this.sessionListener.onNewCall(new Qf(this.called, this.mediaType, this.callMode));
|
|
6646
6650
|
}
|
|
6647
6651
|
ringHandler(e) {
|
|
6648
6652
|
var r, n;
|
|
@@ -6658,11 +6662,11 @@ class cs {
|
|
|
6658
6662
|
!e.callId || e.callId != this.callId || (this.close(), this.sessionListener.onHangup(e.code));
|
|
6659
6663
|
}
|
|
6660
6664
|
getUserAgent() {
|
|
6661
|
-
return
|
|
6665
|
+
return Gf() ? "windows" : "phone";
|
|
6662
6666
|
}
|
|
6663
6667
|
/************************ WebrtcSession ***********************************/
|
|
6664
6668
|
webrtcCreate(e) {
|
|
6665
|
-
this.webrtcClose(), this.webrtcSession = new
|
|
6669
|
+
this.webrtcClose(), this.webrtcSession = new nn(e), this.webrtcSession.setListener(this);
|
|
6666
6670
|
}
|
|
6667
6671
|
webrtcClose() {
|
|
6668
6672
|
var e;
|
|
@@ -6688,7 +6692,7 @@ class cs {
|
|
|
6688
6692
|
this.sessionListener.onStopDesktopShare();
|
|
6689
6693
|
}
|
|
6690
6694
|
}
|
|
6691
|
-
class
|
|
6695
|
+
class Xf {
|
|
6692
6696
|
onError(e) {
|
|
6693
6697
|
console.debug("onError:", e);
|
|
6694
6698
|
}
|
|
@@ -6699,8 +6703,8 @@ class Jf {
|
|
|
6699
6703
|
console.debug("onStopDesktopShare");
|
|
6700
6704
|
}
|
|
6701
6705
|
}
|
|
6702
|
-
const
|
|
6703
|
-
class
|
|
6706
|
+
const Yf = "/media-server/broadcast/webrtc";
|
|
6707
|
+
class Zf {
|
|
6704
6708
|
/**
|
|
6705
6709
|
*
|
|
6706
6710
|
* @param tel{string} 广播的号码
|
|
@@ -6711,9 +6715,9 @@ class Xf {
|
|
|
6711
6715
|
y(this, "tel");
|
|
6712
6716
|
y(this, "mediaType");
|
|
6713
6717
|
y(this, "webrtcSession");
|
|
6714
|
-
y(this, "sessionListener", new
|
|
6718
|
+
y(this, "sessionListener", new Xf());
|
|
6715
6719
|
y(this, "httpClient");
|
|
6716
|
-
this.tel = e, this.httpClient = r, this.mediaType = n === q.VIDEO ? q.VIDEO : q.AUDIO, this.webrtcSession = new
|
|
6720
|
+
this.tel = e, this.httpClient = r, this.mediaType = n === q.VIDEO ? q.VIDEO : q.AUDIO, this.webrtcSession = new nn(n == q.VIDEO ? T.VIDEO_PUSH : T.AUDIO_PUSH), this.webrtcSession.setListener(this);
|
|
6717
6721
|
}
|
|
6718
6722
|
setBroadcastSessionListener(e) {
|
|
6719
6723
|
this.sessionListener = e;
|
|
@@ -6742,7 +6746,7 @@ class Xf {
|
|
|
6742
6746
|
this.sessionListener.onError(e);
|
|
6743
6747
|
}
|
|
6744
6748
|
onStartSuccess(e) {
|
|
6745
|
-
console.debug("offer:", e.sdp), this.httpClient.Post(
|
|
6749
|
+
console.debug("offer:", e.sdp), this.httpClient.Post(Yf, new ss(this.tel, e.sdp ?? "")).then((r) => {
|
|
6746
6750
|
var n, i, o;
|
|
6747
6751
|
if (r.code != 200) {
|
|
6748
6752
|
this.stop(), this.sessionListener.onError(new Error(r.message));
|
|
@@ -6759,16 +6763,16 @@ class Xf {
|
|
|
6759
6763
|
this.sessionListener.onStopDesktopShare();
|
|
6760
6764
|
}
|
|
6761
6765
|
}
|
|
6762
|
-
var
|
|
6763
|
-
class
|
|
6766
|
+
var $r = /* @__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))($r || {});
|
|
6767
|
+
class ed extends ls {
|
|
6764
6768
|
onTbcpMessage(e) {
|
|
6765
6769
|
console.debug("onTbcpMessage:", e);
|
|
6766
6770
|
}
|
|
6767
6771
|
}
|
|
6768
|
-
class
|
|
6772
|
+
class td extends us {
|
|
6769
6773
|
constructor(r, n, i) {
|
|
6770
6774
|
super(r, n, i);
|
|
6771
|
-
y(this, "sessionListener", new
|
|
6775
|
+
y(this, "sessionListener", new ed());
|
|
6772
6776
|
}
|
|
6773
6777
|
setCallSessionListener(r) {
|
|
6774
6778
|
this.sessionListener = r;
|
|
@@ -6782,13 +6786,13 @@ class Zf extends cs {
|
|
|
6782
6786
|
tbcpRequest() {
|
|
6783
6787
|
var r;
|
|
6784
6788
|
this.callMode == ae.HALF && this.status == D.TALK && ((r = this.webrtcSession) == null || r.sendStringData(JSON.stringify({
|
|
6785
|
-
type:
|
|
6789
|
+
type: $r.TB_REQUEST
|
|
6786
6790
|
})));
|
|
6787
6791
|
}
|
|
6788
6792
|
tbcpRelease() {
|
|
6789
6793
|
var r;
|
|
6790
6794
|
this.callMode == ae.HALF && this.status == D.TALK && ((r = this.webrtcSession) == null || r.sendStringData(JSON.stringify({
|
|
6791
|
-
type:
|
|
6795
|
+
type: $r.TB_RELEASE
|
|
6792
6796
|
})));
|
|
6793
6797
|
}
|
|
6794
6798
|
onDataChannelMessage(r) {
|
|
@@ -6799,18 +6803,18 @@ class Zf extends cs {
|
|
|
6799
6803
|
}
|
|
6800
6804
|
}
|
|
6801
6805
|
}
|
|
6802
|
-
function
|
|
6806
|
+
function rd(t) {
|
|
6803
6807
|
const e = t ^ 85;
|
|
6804
6808
|
let r = (e & 15) << 4;
|
|
6805
6809
|
const n = (e & 112) >> 4;
|
|
6806
6810
|
return n === 0 ? r += 8 : n === 1 ? r += 264 : r = r + 264 << n - 1, e & 128 ? r : -r;
|
|
6807
6811
|
}
|
|
6808
|
-
function
|
|
6812
|
+
function nd(t) {
|
|
6809
6813
|
const e = new Int16Array(t.length);
|
|
6810
|
-
for (let r = 0; r < t.length; r++) e[r] =
|
|
6814
|
+
for (let r = 0; r < t.length; r++) e[r] = rd(t[r]);
|
|
6811
6815
|
return e;
|
|
6812
6816
|
}
|
|
6813
|
-
function
|
|
6817
|
+
function id(t) {
|
|
6814
6818
|
const e = t instanceof ArrayBuffer ? new Uint8Array(t) : new Uint8Array(t.buffer, t.byteOffset, t.byteLength);
|
|
6815
6819
|
if (e.byteLength < 12) throw new Error("RTP packet is shorter than its fixed header");
|
|
6816
6820
|
if (e[0] >>> 6 !== 2) throw new Error("Unsupported RTP version");
|
|
@@ -6838,15 +6842,15 @@ function rd(t) {
|
|
|
6838
6842
|
payload: e.subarray(o, s)
|
|
6839
6843
|
};
|
|
6840
6844
|
}
|
|
6841
|
-
const
|
|
6842
|
-
function
|
|
6845
|
+
const od = new Uint8Array([0, 0, 0, 1]), di = 24, pi = 28;
|
|
6846
|
+
function hi(t) {
|
|
6843
6847
|
const e = new Uint8Array(t.reduce((n, i) => n + i.length, 0));
|
|
6844
6848
|
let r = 0;
|
|
6845
6849
|
for (const n of t)
|
|
6846
6850
|
e.set(n, r), r += n.length;
|
|
6847
6851
|
return e;
|
|
6848
6852
|
}
|
|
6849
|
-
class
|
|
6853
|
+
class sd {
|
|
6850
6854
|
constructor() {
|
|
6851
6855
|
y(this, "timestamp");
|
|
6852
6856
|
y(this, "nals", []);
|
|
@@ -6870,7 +6874,7 @@ class id {
|
|
|
6870
6874
|
const i = r.map((o) => o[0] & 31);
|
|
6871
6875
|
return {
|
|
6872
6876
|
timestamp: n,
|
|
6873
|
-
data:
|
|
6877
|
+
data: hi(r.flatMap((o) => [od, o])),
|
|
6874
6878
|
keyFrame: i.includes(5),
|
|
6875
6879
|
nalTypes: i
|
|
6876
6880
|
};
|
|
@@ -6881,11 +6885,11 @@ class id {
|
|
|
6881
6885
|
consume(e) {
|
|
6882
6886
|
if (e.length < 1) throw new Error("Empty H.264 RTP payload");
|
|
6883
6887
|
const r = e[0] & 31;
|
|
6884
|
-
if (r ===
|
|
6888
|
+
if (r === di) {
|
|
6885
6889
|
this.consumeStapA(e);
|
|
6886
6890
|
return;
|
|
6887
6891
|
}
|
|
6888
|
-
if (r ===
|
|
6892
|
+
if (r === pi) {
|
|
6889
6893
|
this.consumeFuA(e);
|
|
6890
6894
|
return;
|
|
6891
6895
|
}
|
|
@@ -6900,7 +6904,7 @@ class id {
|
|
|
6900
6904
|
const n = e[r] << 8 | e[r + 1];
|
|
6901
6905
|
if (r += 2, n < 1 || r + n > e.length) throw new Error("Invalid H.264 STAP-A NAL length");
|
|
6902
6906
|
const i = e.slice(r, r + n), o = i[0] & 31;
|
|
6903
|
-
if (o ===
|
|
6907
|
+
if (o === di || o === pi || o === 0) throw new Error("Invalid NAL in H.264 STAP-A");
|
|
6904
6908
|
this.nals.push(i), r += n;
|
|
6905
6909
|
}
|
|
6906
6910
|
if (r !== e.length) throw new Error("Trailing bytes in H.264 STAP-A");
|
|
@@ -6915,22 +6919,22 @@ class id {
|
|
|
6915
6919
|
if (!this.fu || this.fuType !== o) throw new Error("H.264 FU-A continuation without matching start");
|
|
6916
6920
|
this.fu.push(e.slice(2));
|
|
6917
6921
|
}
|
|
6918
|
-
i && this.fu && (this.nals.push(
|
|
6922
|
+
i && this.fu && (this.nals.push(hi(this.fu)), this.fu = void 0);
|
|
6919
6923
|
}
|
|
6920
6924
|
}
|
|
6921
|
-
const
|
|
6925
|
+
const ad = new Uint8Array([0, 0, 0, 1]), mi = 48, yi = 49;
|
|
6922
6926
|
function Ct(t) {
|
|
6923
6927
|
if (t.length < 2) throw new Error("Truncated HEVC NAL unit");
|
|
6924
6928
|
return t[0] >>> 1 & 63;
|
|
6925
6929
|
}
|
|
6926
|
-
function
|
|
6930
|
+
function gi(t) {
|
|
6927
6931
|
const e = t.reduce((i, o) => i + o.byteLength, 0), r = new Uint8Array(e);
|
|
6928
6932
|
let n = 0;
|
|
6929
6933
|
for (const i of t)
|
|
6930
6934
|
r.set(i, n), n += i.byteLength;
|
|
6931
6935
|
return r;
|
|
6932
6936
|
}
|
|
6933
|
-
class
|
|
6937
|
+
class cd {
|
|
6934
6938
|
constructor() {
|
|
6935
6939
|
y(this, "timestamp");
|
|
6936
6940
|
y(this, "nals", []);
|
|
@@ -6958,7 +6962,7 @@ class sd {
|
|
|
6958
6962
|
const i = r.map(Ct);
|
|
6959
6963
|
return {
|
|
6960
6964
|
timestamp: n,
|
|
6961
|
-
data:
|
|
6965
|
+
data: gi(r.flatMap((o) => [ad, o])),
|
|
6962
6966
|
keyFrame: i.some((o) => o >= 16 && o <= 21),
|
|
6963
6967
|
nalTypes: i
|
|
6964
6968
|
};
|
|
@@ -6969,11 +6973,11 @@ class sd {
|
|
|
6969
6973
|
consumePayload(e) {
|
|
6970
6974
|
if (e.length < 2) throw new Error("Truncated HEVC RTP payload");
|
|
6971
6975
|
const r = Ct(e);
|
|
6972
|
-
if (r ===
|
|
6976
|
+
if (r === mi) {
|
|
6973
6977
|
this.consumeAggregationPacket(e);
|
|
6974
6978
|
return;
|
|
6975
6979
|
}
|
|
6976
|
-
if (r ===
|
|
6980
|
+
if (r === yi) {
|
|
6977
6981
|
this.consumeFragmentationUnit(e);
|
|
6978
6982
|
return;
|
|
6979
6983
|
}
|
|
@@ -6987,7 +6991,7 @@ class sd {
|
|
|
6987
6991
|
const n = e[r] << 8 | e[r + 1];
|
|
6988
6992
|
if (r += 2, n < 2 || r + n > e.length) throw new Error("Invalid HEVC AP NAL length");
|
|
6989
6993
|
const i = e.slice(r, r + n);
|
|
6990
|
-
if (Ct(i) ===
|
|
6994
|
+
if (Ct(i) === mi || Ct(i) === yi) throw new Error("Nested HEVC packetization unit");
|
|
6991
6995
|
this.nals.push(i), r += n;
|
|
6992
6996
|
}
|
|
6993
6997
|
if (r !== e.length) throw new Error("Trailing bytes in HEVC AP");
|
|
@@ -7006,10 +7010,10 @@ class sd {
|
|
|
7006
7010
|
if (!this.fu || this.fuHeader !== o) throw new Error("HEVC FU continuation without matching start");
|
|
7007
7011
|
this.fu.push(e.slice(3));
|
|
7008
7012
|
}
|
|
7009
|
-
i && this.fu && (this.nals.push(
|
|
7013
|
+
i && this.fu && (this.nals.push(gi(this.fu)), this.fu = void 0);
|
|
7010
7014
|
}
|
|
7011
7015
|
}
|
|
7012
|
-
function
|
|
7016
|
+
function ld(t, e = "hev1") {
|
|
7013
7017
|
if (t.length < 4 || (t[0] >>> 1 & 63) !== 33) return;
|
|
7014
7018
|
const r = [];
|
|
7015
7019
|
let n = 0;
|
|
@@ -7020,12 +7024,12 @@ function ad(t, e = "hev1") {
|
|
|
7020
7024
|
}
|
|
7021
7025
|
r.push(o), n = o === 0 ? n + 1 : 0;
|
|
7022
7026
|
}
|
|
7023
|
-
const i = new
|
|
7027
|
+
const i = new ud(Uint8Array.from(r));
|
|
7024
7028
|
try {
|
|
7025
7029
|
i.skip(4);
|
|
7026
7030
|
const o = i.read(3);
|
|
7027
7031
|
i.skip(1);
|
|
7028
|
-
const s = i.read(2), a = i.read(1) ? "H" : "L", c = i.read(5), l =
|
|
7032
|
+
const s = i.read(2), a = i.read(1) ? "H" : "L", c = i.read(5), l = fd(i.read32()), u = Array.from({ length: 6 }, () => i.read(8)), f = i.read(8), p = [], h = [];
|
|
7029
7033
|
for (let O = 0; O < o; O++)
|
|
7030
7034
|
p.push(i.read(1) !== 0), h.push(i.read(1) !== 0);
|
|
7031
7035
|
o > 0 && i.skip((8 - o) * 2);
|
|
@@ -7042,7 +7046,7 @@ function ad(t, e = "hev1") {
|
|
|
7042
7046
|
return;
|
|
7043
7047
|
}
|
|
7044
7048
|
}
|
|
7045
|
-
class
|
|
7049
|
+
class ud {
|
|
7046
7050
|
constructor(e) {
|
|
7047
7051
|
y(this, "offset", 0);
|
|
7048
7052
|
this.data = e;
|
|
@@ -7062,13 +7066,13 @@ class cd {
|
|
|
7062
7066
|
this.offset += e;
|
|
7063
7067
|
}
|
|
7064
7068
|
}
|
|
7065
|
-
function
|
|
7069
|
+
function fd(t) {
|
|
7066
7070
|
let e = 0;
|
|
7067
7071
|
for (let r = 0; r < 32; r++) e = e * 2 + (t >>> r & 1) >>> 0;
|
|
7068
7072
|
return e;
|
|
7069
7073
|
}
|
|
7070
|
-
const
|
|
7071
|
-
class
|
|
7074
|
+
const dd = "hev1.1.6.L120.B0", pd = "avc1.42E01E";
|
|
7075
|
+
class hd {
|
|
7072
7076
|
constructor(e) {
|
|
7073
7077
|
y(this, "options");
|
|
7074
7078
|
y(this, "videoCodec");
|
|
@@ -7107,7 +7111,7 @@ class dd {
|
|
|
7107
7111
|
if (e.videoPayloadType < 0 || e.videoPayloadType > 127) throw new Error("Invalid video RTP payload type");
|
|
7108
7112
|
if (e.audioPayloadType !== void 0 && (e.audioPayloadType < 0 || e.audioPayloadType > 127)) throw new Error("Invalid audio RTP payload type");
|
|
7109
7113
|
if (e.audioPayloadType === e.videoPayloadType) throw new Error("Audio and video payload types must be different");
|
|
7110
|
-
if (this.options = e, this.videoCodec = e.videoCodec, this.videoPayloadType = e.videoPayloadType, this.audioPayloadType = e.audioPayloadType, this.audioClockRate = e.audioClockRate ?? 8e3, this.audioChannels = e.audioChannels ?? 1, this.codecStringPinned = e.videoCodecString !== void 0, this.codecString = e.videoCodecString ?? (e.videoCodec === "h265" ?
|
|
7114
|
+
if (this.options = e, this.videoCodec = e.videoCodec, this.videoPayloadType = e.videoPayloadType, this.audioPayloadType = e.audioPayloadType, this.audioClockRate = e.audioClockRate ?? 8e3, this.audioChannels = e.audioChannels ?? 1, this.codecStringPinned = e.videoCodecString !== void 0, this.codecString = e.videoCodecString ?? (e.videoCodec === "h265" ? dd : pd), this.depacketizer = e.videoCodec === "h265" ? new cd() : new sd(), this.audioChannels < 1 || this.audioChannels > 2) throw new Error("G.711 A-law supports one or two configured channels");
|
|
7111
7115
|
try {
|
|
7112
7116
|
const r = globalThis;
|
|
7113
7117
|
let n, i;
|
|
@@ -7132,7 +7136,7 @@ class dd {
|
|
|
7132
7136
|
if (this.closed) throw new Error("Player is closed");
|
|
7133
7137
|
let r;
|
|
7134
7138
|
try {
|
|
7135
|
-
r =
|
|
7139
|
+
r = id(e);
|
|
7136
7140
|
} catch (n) {
|
|
7137
7141
|
this.report(n);
|
|
7138
7142
|
return;
|
|
@@ -7192,7 +7196,7 @@ class dd {
|
|
|
7192
7196
|
this.audioRtpBase = void 0, this.audioTimeBase = void 0, this.audioScheduledUntil = r.currentTime;
|
|
7193
7197
|
return;
|
|
7194
7198
|
}
|
|
7195
|
-
const i =
|
|
7199
|
+
const i = nd(e.payload), o = Math.floor(i.length / this.audioChannels);
|
|
7196
7200
|
if (o === 0) return;
|
|
7197
7201
|
const s = r.createBuffer(this.audioChannels, o, this.audioClockRate);
|
|
7198
7202
|
for (let f = 0; f < this.audioChannels; f++) {
|
|
@@ -7264,7 +7268,7 @@ class dd {
|
|
|
7264
7268
|
const c = this.videoCodec === "h265" ? n[s] >>> 1 & 63 : n[s] & 31;
|
|
7265
7269
|
if (r.includes(c)) {
|
|
7266
7270
|
const l = n.slice(s, a);
|
|
7267
|
-
this.parameterSets.set(c, l), this.videoCodec === "h265" && c === 33 && !this.codecStringPinned && (this.codecString =
|
|
7271
|
+
this.parameterSets.set(c, l), this.videoCodec === "h265" && c === 33 && !this.codecStringPinned && (this.codecString = ld(l) ?? this.codecString), this.videoCodec === "h264" && c === 7 && !this.codecStringPinned && l.length >= 4 && (this.codecString = `avc1.${[l[1], l[2], l[3]].map((u) => u.toString(16).padStart(2, "0")).join("").toUpperCase()}`);
|
|
7268
7272
|
}
|
|
7269
7273
|
}
|
|
7270
7274
|
if (i = a, a === n.length) break;
|
|
@@ -7313,11 +7317,7 @@ class dd {
|
|
|
7313
7317
|
}
|
|
7314
7318
|
async useSoftware() {
|
|
7315
7319
|
if (this.closed || this.softwareWorker || this.videoCodec !== "h265") return;
|
|
7316
|
-
const e = this.options.decoderAssetsBaseUrl
|
|
7317
|
-
/* @vite-ignore */
|
|
7318
|
-
"./decoder-assets/",
|
|
7319
|
-
import.meta.url
|
|
7320
|
-
).href, r = new Worker(`${e}software-worker.js`, { type: "module" });
|
|
7320
|
+
const e = this.options.decoderAssetsBaseUrl, r = new Worker(`${e}software-worker.js`, { type: "module" });
|
|
7321
7321
|
this.softwareWorker = r, r.onmessage = (n) => {
|
|
7322
7322
|
var i, o, s, a;
|
|
7323
7323
|
if (n.data.type === "ready")
|
|
@@ -7425,15 +7425,15 @@ class dd {
|
|
|
7425
7425
|
(n = (r = this.options).onError) == null || n.call(r, e instanceof Error ? e : new Error(String(e)));
|
|
7426
7426
|
}
|
|
7427
7427
|
}
|
|
7428
|
-
function
|
|
7428
|
+
function md(t) {
|
|
7429
7429
|
let e;
|
|
7430
7430
|
try {
|
|
7431
7431
|
e = JSON.parse(t);
|
|
7432
7432
|
} catch {
|
|
7433
7433
|
throw new Error("Invalid stream description: expected a JSON object");
|
|
7434
7434
|
}
|
|
7435
|
-
if (!
|
|
7436
|
-
const r =
|
|
7435
|
+
if (!fs(e)) throw new Error("Invalid stream description: expected a JSON object");
|
|
7436
|
+
const r = Si(e.video, "video"), n = r.media.trim().toLowerCase();
|
|
7437
7437
|
if (n !== "h264" && n !== "h265")
|
|
7438
7438
|
throw new Error(`Unsupported video media "${r.media}"; expected h264 or h265`);
|
|
7439
7439
|
const i = {
|
|
@@ -7442,7 +7442,7 @@ function pd(t) {
|
|
|
7442
7442
|
videoChannel: r.channel
|
|
7443
7443
|
};
|
|
7444
7444
|
if (e.audio !== void 0 && e.audio !== null) {
|
|
7445
|
-
const o =
|
|
7445
|
+
const o = Si(e.audio, "audio");
|
|
7446
7446
|
if (o.media.trim().toLowerCase() !== "pcma")
|
|
7447
7447
|
throw new Error(`Unsupported audio media "${o.media}"; expected pcma`);
|
|
7448
7448
|
i.audioPayloadType = o.payloadType, i.audioChannel = o.channel;
|
|
@@ -7451,18 +7451,18 @@ function pd(t) {
|
|
|
7451
7451
|
throw new Error("Audio and video payload types must be different");
|
|
7452
7452
|
return i;
|
|
7453
7453
|
}
|
|
7454
|
-
function
|
|
7455
|
-
if (!
|
|
7454
|
+
function Si(t, e) {
|
|
7455
|
+
if (!fs(t)) throw new Error(`Stream description is missing ${e} media`);
|
|
7456
7456
|
if (typeof t.media != "string" || t.media.trim() === "") throw new Error(`Invalid ${e}.media`);
|
|
7457
7457
|
if (!Number.isInteger(t.channel) || t.channel < 0) throw new Error(`Invalid ${e}.channel`);
|
|
7458
7458
|
if (!Number.isInteger(t.payloadType) || t.payloadType < 0 || t.payloadType > 127)
|
|
7459
7459
|
throw new Error(`Invalid ${e}.payloadType; expected an integer from 0 to 127`);
|
|
7460
7460
|
return { media: t.media, channel: t.channel, payloadType: t.payloadType };
|
|
7461
7461
|
}
|
|
7462
|
-
function
|
|
7462
|
+
function fs(t) {
|
|
7463
7463
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
7464
7464
|
}
|
|
7465
|
-
class
|
|
7465
|
+
class yd {
|
|
7466
7466
|
constructor(e) {
|
|
7467
7467
|
y(this, "listener");
|
|
7468
7468
|
y(this, "socket");
|
|
@@ -7519,9 +7519,9 @@ class hd {
|
|
|
7519
7519
|
}
|
|
7520
7520
|
handleDescription(e, r, n) {
|
|
7521
7521
|
var s, a;
|
|
7522
|
-
const i =
|
|
7522
|
+
const i = md(e);
|
|
7523
7523
|
(a = (s = this.options).onStreamConfig) == null || a.call(s, i), this.disposePlayer();
|
|
7524
|
-
const o = new
|
|
7524
|
+
const o = new hd({
|
|
7525
7525
|
videoPayloadType: i.videoPayloadType,
|
|
7526
7526
|
videoCodec: i.videoCodec,
|
|
7527
7527
|
audioPayloadType: i.audioPayloadType,
|
|
@@ -7563,57 +7563,57 @@ class hd {
|
|
|
7563
7563
|
(r = this.listener) == null || r.onError(e instanceof Error ? e : new Error(String(e)));
|
|
7564
7564
|
}
|
|
7565
7565
|
}
|
|
7566
|
-
let
|
|
7567
|
-
function
|
|
7566
|
+
let on = new Po("/"), ds = "/media-server/ws/voip", ps = "/media-server/ws/b-trun-c", hs = "/media-server/ws/video-play", jr = new URL((window.location.protocol == "https:" ? "wss://" : "ws://") + window.location.host + ds), Hr = new URL((window.location.protocol == "https:" ? "wss://" : "ws://") + window.location.host + ps), Ne = new URL((window.location.protocol == "https:" ? "wss://" : "ws://") + window.location.host + hs);
|
|
7567
|
+
function Vd(t) {
|
|
7568
7568
|
let e = new URL(t);
|
|
7569
7569
|
const r = e.protocol;
|
|
7570
7570
|
if (r != "http:" && r != "https:" && r != "wss:" && r != "ws:") {
|
|
7571
7571
|
console.debug("moduleInit protocol error, init failed", r);
|
|
7572
7572
|
return;
|
|
7573
7573
|
}
|
|
7574
|
-
e.protocol == "https:" ? e.protocol = "wss:" : e.protocol == "http:" && (e.protocol = "ws:"),
|
|
7574
|
+
e.protocol == "https:" ? e.protocol = "wss:" : e.protocol == "http:" && (e.protocol = "ws:"), Sd(e.toString()), e.protocol == "wss:" ? e.protocol = "https:" : e.protocol == "ws:" && (e.protocol = "http:"), gd(e.toString());
|
|
7575
7575
|
}
|
|
7576
|
-
function
|
|
7576
|
+
function gd(t) {
|
|
7577
7577
|
const e = new URL(t).protocol;
|
|
7578
7578
|
if (e != "http:" && e != "https:") {
|
|
7579
7579
|
console.debug("videoModuleInit protocol error, init failed", e);
|
|
7580
7580
|
return;
|
|
7581
7581
|
}
|
|
7582
|
-
|
|
7582
|
+
on = new Po(t), Ne = new URL(t), Ne.protocol == "https:" ? Ne.protocol = "wss:" : Ne.protocol = "ws:", Ne.pathname = hs;
|
|
7583
7583
|
}
|
|
7584
|
-
function
|
|
7585
|
-
return
|
|
7584
|
+
function qd(t) {
|
|
7585
|
+
return qf() ? new Hf(t, on) : new yd({
|
|
7586
7586
|
url: Ne.toString(),
|
|
7587
7587
|
rtspUrl: t,
|
|
7588
|
-
decoderAssetsBaseUrl:
|
|
7588
|
+
decoderAssetsBaseUrl: Vf()
|
|
7589
7589
|
});
|
|
7590
7590
|
}
|
|
7591
|
-
function
|
|
7592
|
-
return new
|
|
7591
|
+
function zd(t, e) {
|
|
7592
|
+
return new Zf(t, on, e);
|
|
7593
7593
|
}
|
|
7594
|
-
function
|
|
7594
|
+
function Sd(t) {
|
|
7595
7595
|
const e = new URL(t).protocol;
|
|
7596
7596
|
if (e != "ws:" && e != "wss:") {
|
|
7597
7597
|
console.debug("voipModuleInit protocol error, init failed", e);
|
|
7598
7598
|
return;
|
|
7599
7599
|
}
|
|
7600
|
-
|
|
7600
|
+
jr = new URL(t), jr.pathname = ds, Hr = new URL(t), Hr.pathname = ps;
|
|
7601
7601
|
}
|
|
7602
|
-
function
|
|
7603
|
-
return new
|
|
7602
|
+
function Gd(t) {
|
|
7603
|
+
return new us(jr.toString(), t);
|
|
7604
7604
|
}
|
|
7605
|
-
function
|
|
7606
|
-
return new
|
|
7605
|
+
function Wd(t, e) {
|
|
7606
|
+
return new td(Hr.toString(), t, e);
|
|
7607
7607
|
}
|
|
7608
7608
|
export {
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7609
|
+
Wd as createAppCallSession,
|
|
7610
|
+
zd as createBroadcastSession,
|
|
7611
|
+
Gd as createCallSession,
|
|
7612
|
+
qd as createRtspPullSession,
|
|
7613
|
+
Vd as moduleInit,
|
|
7614
|
+
Hd as setAllowEmpty,
|
|
7615
|
+
$d as setDecoderAssets,
|
|
7616
|
+
jd as setTranscode,
|
|
7617
|
+
gd as videoModuleInit,
|
|
7618
|
+
Sd as voipModuleInit
|
|
7619
7619
|
};
|