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