@regulaforensics/facesdk-webclient 7.2.360-rc → 7.2.361-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.js +874 -876
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
function ve(
|
|
1
|
+
function ve(t, e) {
|
|
2
2
|
return function() {
|
|
3
|
-
return
|
|
3
|
+
return t.apply(e, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString: ft } = Object.prototype, { getPrototypeOf:
|
|
7
|
-
const
|
|
8
|
-
return s
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
-
function X(
|
|
11
|
-
return
|
|
6
|
+
const { toString: ft } = Object.prototype, { getPrototypeOf: Te } = Object, { iterator: ce, toStringTag: qe } = Symbol, le = /* @__PURE__ */ ((t) => (e) => {
|
|
7
|
+
const s = ft.call(e);
|
|
8
|
+
return t[s] || (t[s] = s.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), U = (t) => (t = t.toLowerCase(), (e) => le(e) === t), ue = (t) => (e) => typeof e === t, { isArray: $ } = Array, K = ue("undefined");
|
|
10
|
+
function X(t) {
|
|
11
|
+
return t !== null && !K(t) && t.constructor !== null && !K(t.constructor) && N(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function mt(
|
|
13
|
+
const ze = U("ArrayBuffer");
|
|
14
|
+
function mt(t) {
|
|
15
15
|
let e;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ze(t.buffer), e;
|
|
17
17
|
}
|
|
18
|
-
const Et = ue("string"), N = ue("function"), $e = ue("number"), J = (
|
|
19
|
-
if (le(
|
|
18
|
+
const Et = ue("string"), N = ue("function"), $e = ue("number"), J = (t) => t !== null && typeof t == "object", At = (t) => t === !0 || t === !1, se = (t) => {
|
|
19
|
+
if (le(t) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const e =
|
|
22
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
23
|
-
}, Ot = (
|
|
24
|
-
if (!J(
|
|
21
|
+
const e = Te(t);
|
|
22
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(qe in t) && !(ce in t);
|
|
23
|
+
}, Ot = (t) => {
|
|
24
|
+
if (!J(t) || X(t))
|
|
25
25
|
return !1;
|
|
26
26
|
try {
|
|
27
|
-
return Object.keys(
|
|
27
|
+
return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
}, yt =
|
|
31
|
+
}, yt = U("Date"), Rt = U("File"), St = U("Blob"), gt = U("FileList"), Pt = (t) => J(t) && N(t.pipe), Tt = (t) => {
|
|
32
32
|
let e;
|
|
33
|
-
return
|
|
34
|
-
e === "object" && N(
|
|
35
|
-
}, Ct =
|
|
36
|
-
function Y(
|
|
37
|
-
if (
|
|
33
|
+
return t && (typeof FormData == "function" && t instanceof FormData || N(t.append) && ((e = le(t)) === "formdata" || // detect form-data instance
|
|
34
|
+
e === "object" && N(t.toString) && t.toString() === "[object FormData]"));
|
|
35
|
+
}, Ct = U("URLSearchParams"), [bt, _t, wt, It] = ["ReadableStream", "Request", "Response", "Headers"].map(U), Lt = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
+
function Y(t, e, { allOwnKeys: s = !1 } = {}) {
|
|
37
|
+
if (t === null || typeof t > "u")
|
|
38
38
|
return;
|
|
39
39
|
let r, n;
|
|
40
|
-
if (typeof
|
|
41
|
-
for (r = 0, n =
|
|
42
|
-
e.call(null,
|
|
40
|
+
if (typeof t != "object" && (t = [t]), $(t))
|
|
41
|
+
for (r = 0, n = t.length; r < n; r++)
|
|
42
|
+
e.call(null, t[r], r, t);
|
|
43
43
|
else {
|
|
44
|
-
if (X(
|
|
44
|
+
if (X(t))
|
|
45
45
|
return;
|
|
46
|
-
const o =
|
|
46
|
+
const o = s ? Object.getOwnPropertyNames(t) : Object.keys(t), a = o.length;
|
|
47
47
|
let i;
|
|
48
48
|
for (r = 0; r < a; r++)
|
|
49
|
-
i = o[r], e.call(null,
|
|
49
|
+
i = o[r], e.call(null, t[i], i, t);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function Qe(
|
|
53
|
-
if (X(
|
|
52
|
+
function Qe(t, e) {
|
|
53
|
+
if (X(t))
|
|
54
54
|
return null;
|
|
55
55
|
e = e.toLowerCase();
|
|
56
|
-
const
|
|
57
|
-
let r =
|
|
56
|
+
const s = Object.keys(t);
|
|
57
|
+
let r = s.length, n;
|
|
58
58
|
for (; r-- > 0; )
|
|
59
|
-
if (n =
|
|
59
|
+
if (n = s[r], e === n.toLowerCase())
|
|
60
60
|
return n;
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, We = (
|
|
63
|
+
const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, We = (t) => !K(t) && t !== j;
|
|
64
64
|
function Oe() {
|
|
65
|
-
const { caseless:
|
|
66
|
-
const o =
|
|
65
|
+
const { caseless: t } = We(this) && this || {}, e = {}, s = (r, n) => {
|
|
66
|
+
const o = t && Qe(e, n) || n;
|
|
67
67
|
se(e[o]) && se(r) ? e[o] = Oe(e[o], r) : se(r) ? e[o] = Oe({}, r) : $(r) ? e[o] = r.slice() : e[o] = r;
|
|
68
68
|
};
|
|
69
69
|
for (let r = 0, n = arguments.length; r < n; r++)
|
|
70
|
-
arguments[r] && Y(arguments[r],
|
|
70
|
+
arguments[r] && Y(arguments[r], s);
|
|
71
71
|
return e;
|
|
72
72
|
}
|
|
73
|
-
const Nt = (
|
|
74
|
-
|
|
75
|
-
}, { allOwnKeys: r }),
|
|
76
|
-
|
|
73
|
+
const Nt = (t, e, s, { allOwnKeys: r } = {}) => (Y(e, (n, o) => {
|
|
74
|
+
s && N(n) ? t[o] = ve(n, s) : t[o] = n;
|
|
75
|
+
}, { allOwnKeys: r }), t), Ft = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ut = (t, e, s, r) => {
|
|
76
|
+
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
77
77
|
value: e.prototype
|
|
78
|
-
}),
|
|
79
|
-
}, Vt = (
|
|
78
|
+
}), s && Object.assign(t.prototype, s);
|
|
79
|
+
}, Vt = (t, e, s, r) => {
|
|
80
80
|
let n, o, a;
|
|
81
81
|
const i = {};
|
|
82
|
-
if (e = e || {},
|
|
82
|
+
if (e = e || {}, t == null) return e;
|
|
83
83
|
do {
|
|
84
|
-
for (n = Object.getOwnPropertyNames(
|
|
85
|
-
a = n[o], (!r || r(a,
|
|
86
|
-
|
|
87
|
-
} while (
|
|
84
|
+
for (n = Object.getOwnPropertyNames(t), o = n.length; o-- > 0; )
|
|
85
|
+
a = n[o], (!r || r(a, t, e)) && !i[a] && (e[a] = t[a], i[a] = !0);
|
|
86
|
+
t = s !== !1 && Te(t);
|
|
87
|
+
} while (t && (!s || s(t, e)) && t !== Object.prototype);
|
|
88
88
|
return e;
|
|
89
|
-
}, Dt = (
|
|
90
|
-
|
|
91
|
-
const r =
|
|
92
|
-
return r !== -1 && r ===
|
|
93
|
-
}, Gt = (
|
|
94
|
-
if (!
|
|
95
|
-
if ($(
|
|
96
|
-
let e =
|
|
89
|
+
}, Dt = (t, e, s) => {
|
|
90
|
+
t = String(t), (s === void 0 || s > t.length) && (s = t.length), s -= e.length;
|
|
91
|
+
const r = t.indexOf(e, s);
|
|
92
|
+
return r !== -1 && r === s;
|
|
93
|
+
}, Gt = (t) => {
|
|
94
|
+
if (!t) return null;
|
|
95
|
+
if ($(t)) return t;
|
|
96
|
+
let e = t.length;
|
|
97
97
|
if (!$e(e)) return null;
|
|
98
|
-
const
|
|
98
|
+
const s = new Array(e);
|
|
99
99
|
for (; e-- > 0; )
|
|
100
|
-
|
|
101
|
-
return
|
|
102
|
-
}, Ht = /* @__PURE__ */ ((
|
|
103
|
-
const r = (
|
|
100
|
+
s[e] = t[e];
|
|
101
|
+
return s;
|
|
102
|
+
}, Ht = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Te(Uint8Array)), xt = (t, e) => {
|
|
103
|
+
const r = (t && t[ce]).call(t);
|
|
104
104
|
let n;
|
|
105
105
|
for (; (n = r.next()) && !n.done; ) {
|
|
106
106
|
const o = n.value;
|
|
107
|
-
e.call(
|
|
107
|
+
e.call(t, o[0], o[1]);
|
|
108
108
|
}
|
|
109
|
-
}, Bt = (
|
|
110
|
-
let
|
|
109
|
+
}, Bt = (t, e) => {
|
|
110
|
+
let s;
|
|
111
111
|
const r = [];
|
|
112
|
-
for (; (
|
|
113
|
-
r.push(
|
|
112
|
+
for (; (s = t.exec(e)) !== null; )
|
|
113
|
+
r.push(s);
|
|
114
114
|
return r;
|
|
115
|
-
}, Mt =
|
|
115
|
+
}, Mt = U("HTMLFormElement"), jt = (t) => t.toLowerCase().replace(
|
|
116
116
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
117
|
-
function(
|
|
117
|
+
function(s, r, n) {
|
|
118
118
|
return r.toUpperCase() + n;
|
|
119
119
|
}
|
|
120
|
-
), we = (({ hasOwnProperty:
|
|
121
|
-
const
|
|
122
|
-
Y(
|
|
120
|
+
), we = (({ hasOwnProperty: t }) => (e, s) => t.call(e, s))(Object.prototype), kt = U("RegExp"), Ke = (t, e) => {
|
|
121
|
+
const s = Object.getOwnPropertyDescriptors(t), r = {};
|
|
122
|
+
Y(s, (n, o) => {
|
|
123
123
|
let a;
|
|
124
|
-
(a = e(n, o,
|
|
125
|
-
}), Object.defineProperties(
|
|
126
|
-
}, vt = (
|
|
127
|
-
Ke(
|
|
128
|
-
if (N(
|
|
124
|
+
(a = e(n, o, t)) !== !1 && (r[o] = a || n);
|
|
125
|
+
}), Object.defineProperties(t, r);
|
|
126
|
+
}, vt = (t) => {
|
|
127
|
+
Ke(t, (e, s) => {
|
|
128
|
+
if (N(t) && ["arguments", "caller", "callee"].indexOf(s) !== -1)
|
|
129
129
|
return !1;
|
|
130
|
-
const r = s
|
|
130
|
+
const r = t[s];
|
|
131
131
|
if (N(r)) {
|
|
132
132
|
if (e.enumerable = !1, "writable" in e) {
|
|
133
133
|
e.writable = !1;
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
136
|
e.set || (e.set = () => {
|
|
137
|
-
throw Error("Can not rewrite read-only method '" +
|
|
137
|
+
throw Error("Can not rewrite read-only method '" + s + "'");
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
},
|
|
142
|
-
const
|
|
141
|
+
}, qt = (t, e) => {
|
|
142
|
+
const s = {}, r = (n) => {
|
|
143
143
|
n.forEach((o) => {
|
|
144
|
-
|
|
144
|
+
s[o] = !0;
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
|
-
return $(
|
|
148
|
-
},
|
|
149
|
-
}, $t = (
|
|
150
|
-
function Qt(
|
|
151
|
-
return !!(
|
|
147
|
+
return $(t) ? r(t) : r(String(t).split(e)), s;
|
|
148
|
+
}, zt = () => {
|
|
149
|
+
}, $t = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
150
|
+
function Qt(t) {
|
|
151
|
+
return !!(t && N(t.append) && t[qe] === "FormData" && t[ce]);
|
|
152
152
|
}
|
|
153
|
-
const Wt = (
|
|
154
|
-
const e = new Array(10),
|
|
153
|
+
const Wt = (t) => {
|
|
154
|
+
const e = new Array(10), s = (r, n) => {
|
|
155
155
|
if (J(r)) {
|
|
156
156
|
if (e.indexOf(r) >= 0)
|
|
157
157
|
return;
|
|
@@ -161,26 +161,26 @@ const Wt = (s) => {
|
|
|
161
161
|
e[n] = r;
|
|
162
162
|
const o = $(r) ? [] : {};
|
|
163
163
|
return Y(r, (a, i) => {
|
|
164
|
-
const c =
|
|
164
|
+
const c = s(a, n + 1);
|
|
165
165
|
!K(c) && (o[i] = c);
|
|
166
166
|
}), e[n] = void 0, o;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return r;
|
|
170
170
|
};
|
|
171
|
-
return t
|
|
172
|
-
}, Kt =
|
|
173
|
-
n === j && o ===
|
|
171
|
+
return s(t, 0);
|
|
172
|
+
}, Kt = U("AsyncFunction"), Xt = (t) => t && (J(t) || N(t)) && N(t.then) && N(t.catch), Xe = ((t, e) => t ? setImmediate : e ? ((s, r) => (j.addEventListener("message", ({ source: n, data: o }) => {
|
|
173
|
+
n === j && o === s && r.length && r.shift()();
|
|
174
174
|
}, !1), (n) => {
|
|
175
|
-
r.push(n), j.postMessage(
|
|
176
|
-
}))(`axios@${Math.random()}`, []) : (
|
|
175
|
+
r.push(n), j.postMessage(s, "*");
|
|
176
|
+
}))(`axios@${Math.random()}`, []) : (s) => setTimeout(s))(
|
|
177
177
|
typeof setImmediate == "function",
|
|
178
178
|
N(j.postMessage)
|
|
179
|
-
), Jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || Xe, Yt = (
|
|
179
|
+
), Jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || Xe, Yt = (t) => t != null && N(t[ce]), u = {
|
|
180
180
|
isArray: $,
|
|
181
|
-
isArrayBuffer:
|
|
181
|
+
isArrayBuffer: ze,
|
|
182
182
|
isBuffer: X,
|
|
183
|
-
isFormData:
|
|
183
|
+
isFormData: Tt,
|
|
184
184
|
isArrayBufferView: mt,
|
|
185
185
|
isString: Et,
|
|
186
186
|
isNumber: $e,
|
|
@@ -194,23 +194,23 @@ const Wt = (s) => {
|
|
|
194
194
|
isHeaders: It,
|
|
195
195
|
isUndefined: K,
|
|
196
196
|
isDate: yt,
|
|
197
|
-
isFile:
|
|
198
|
-
isBlob:
|
|
197
|
+
isFile: Rt,
|
|
198
|
+
isBlob: St,
|
|
199
199
|
isRegExp: kt,
|
|
200
200
|
isFunction: N,
|
|
201
|
-
isStream:
|
|
201
|
+
isStream: Pt,
|
|
202
202
|
isURLSearchParams: Ct,
|
|
203
203
|
isTypedArray: Ht,
|
|
204
|
-
isFileList:
|
|
204
|
+
isFileList: gt,
|
|
205
205
|
forEach: Y,
|
|
206
206
|
merge: Oe,
|
|
207
207
|
extend: Nt,
|
|
208
208
|
trim: Lt,
|
|
209
|
-
stripBOM:
|
|
210
|
-
inherits:
|
|
209
|
+
stripBOM: Ft,
|
|
210
|
+
inherits: Ut,
|
|
211
211
|
toFlatObject: Vt,
|
|
212
212
|
kindOf: le,
|
|
213
|
-
kindOfTest:
|
|
213
|
+
kindOfTest: U,
|
|
214
214
|
endsWith: Dt,
|
|
215
215
|
toArray: Gt,
|
|
216
216
|
forEachEntry: xt,
|
|
@@ -221,9 +221,9 @@ const Wt = (s) => {
|
|
|
221
221
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
222
222
|
reduceDescriptors: Ke,
|
|
223
223
|
freezeMethods: vt,
|
|
224
|
-
toObjectSet:
|
|
224
|
+
toObjectSet: qt,
|
|
225
225
|
toCamelCase: jt,
|
|
226
|
-
noop:
|
|
226
|
+
noop: zt,
|
|
227
227
|
toFiniteNumber: $t,
|
|
228
228
|
findKey: Qe,
|
|
229
229
|
global: j,
|
|
@@ -236,8 +236,8 @@ const Wt = (s) => {
|
|
|
236
236
|
asap: Jt,
|
|
237
237
|
isIterable: Yt
|
|
238
238
|
};
|
|
239
|
-
function E(
|
|
240
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message =
|
|
239
|
+
function E(t, e, s, r, n) {
|
|
240
|
+
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), s && (this.config = s), r && (this.request = r), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
241
241
|
}
|
|
242
242
|
u.inherits(E, Error, {
|
|
243
243
|
toJSON: function() {
|
|
@@ -275,46 +275,46 @@ const Je = E.prototype, Ye = {};
|
|
|
275
275
|
"ERR_NOT_SUPPORT",
|
|
276
276
|
"ERR_INVALID_URL"
|
|
277
277
|
// eslint-disable-next-line func-names
|
|
278
|
-
].forEach((
|
|
279
|
-
Ye[
|
|
278
|
+
].forEach((t) => {
|
|
279
|
+
Ye[t] = { value: t };
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperties(E, Ye);
|
|
282
282
|
Object.defineProperty(Je, "isAxiosError", { value: !0 });
|
|
283
|
-
E.from = (
|
|
283
|
+
E.from = (t, e, s, r, n, o) => {
|
|
284
284
|
const a = Object.create(Je);
|
|
285
|
-
return u.toFlatObject(
|
|
285
|
+
return u.toFlatObject(t, a, function(c) {
|
|
286
286
|
return c !== Error.prototype;
|
|
287
|
-
}, (i) => i !== "isAxiosError"), E.call(a,
|
|
287
|
+
}, (i) => i !== "isAxiosError"), E.call(a, t.message, e, s, r, n), a.cause = t, a.name = t.name, o && Object.assign(a, o), a;
|
|
288
288
|
};
|
|
289
289
|
const Zt = null;
|
|
290
|
-
function ye(
|
|
291
|
-
return u.isPlainObject(
|
|
290
|
+
function ye(t) {
|
|
291
|
+
return u.isPlainObject(t) || u.isArray(t);
|
|
292
292
|
}
|
|
293
|
-
function Ze(
|
|
294
|
-
return u.endsWith(
|
|
293
|
+
function Ze(t) {
|
|
294
|
+
return u.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
295
295
|
}
|
|
296
|
-
function Ie(
|
|
297
|
-
return
|
|
298
|
-
return n = Ze(n), !
|
|
299
|
-
}).join(
|
|
296
|
+
function Ie(t, e, s) {
|
|
297
|
+
return t ? t.concat(e).map(function(n, o) {
|
|
298
|
+
return n = Ze(n), !s && o ? "[" + n + "]" : n;
|
|
299
|
+
}).join(s ? "." : "") : e;
|
|
300
300
|
}
|
|
301
|
-
function es(
|
|
302
|
-
return u.isArray(
|
|
301
|
+
function es(t) {
|
|
302
|
+
return u.isArray(t) && !t.some(ye);
|
|
303
303
|
}
|
|
304
304
|
const ts = u.toFlatObject(u, {}, null, function(e) {
|
|
305
305
|
return /^is[A-Z]/.test(e);
|
|
306
306
|
});
|
|
307
|
-
function de(
|
|
308
|
-
if (!u.isObject(
|
|
307
|
+
function de(t, e, s) {
|
|
308
|
+
if (!u.isObject(t))
|
|
309
309
|
throw new TypeError("target must be an object");
|
|
310
|
-
e = e || new FormData(),
|
|
310
|
+
e = e || new FormData(), s = u.toFlatObject(s, {
|
|
311
311
|
metaTokens: !0,
|
|
312
312
|
dots: !1,
|
|
313
313
|
indexes: !1
|
|
314
314
|
}, !1, function(A, f) {
|
|
315
315
|
return !u.isUndefined(f[A]);
|
|
316
316
|
});
|
|
317
|
-
const r =
|
|
317
|
+
const r = s.metaTokens, n = s.visitor || d, o = s.dots, a = s.indexes, c = (s.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(e);
|
|
318
318
|
if (!u.isFunction(n))
|
|
319
319
|
throw new TypeError("visitor must be a function");
|
|
320
320
|
function l(h) {
|
|
@@ -363,11 +363,11 @@ function de(s, e, t) {
|
|
|
363
363
|
}), p.pop();
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
if (!u.isObject(
|
|
366
|
+
if (!u.isObject(t))
|
|
367
367
|
throw new TypeError("data must be an object");
|
|
368
|
-
return b(
|
|
368
|
+
return b(t), e;
|
|
369
369
|
}
|
|
370
|
-
function Le(
|
|
370
|
+
function Le(t) {
|
|
371
371
|
const e = {
|
|
372
372
|
"!": "%21",
|
|
373
373
|
"'": "%27",
|
|
@@ -377,42 +377,42 @@ function Le(s) {
|
|
|
377
377
|
"%20": "+",
|
|
378
378
|
"%00": "\0"
|
|
379
379
|
};
|
|
380
|
-
return encodeURIComponent(
|
|
380
|
+
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
381
381
|
return e[r];
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function Ce(
|
|
385
|
-
this._pairs = [],
|
|
384
|
+
function Ce(t, e) {
|
|
385
|
+
this._pairs = [], t && de(t, this, e);
|
|
386
386
|
}
|
|
387
387
|
const et = Ce.prototype;
|
|
388
|
-
et.append = function(e,
|
|
389
|
-
this._pairs.push([e,
|
|
388
|
+
et.append = function(e, s) {
|
|
389
|
+
this._pairs.push([e, s]);
|
|
390
390
|
};
|
|
391
391
|
et.toString = function(e) {
|
|
392
|
-
const
|
|
392
|
+
const s = e ? function(r) {
|
|
393
393
|
return e.call(this, r, Le);
|
|
394
394
|
} : Le;
|
|
395
395
|
return this._pairs.map(function(n) {
|
|
396
|
-
return
|
|
396
|
+
return s(n[0]) + "=" + s(n[1]);
|
|
397
397
|
}, "").join("&");
|
|
398
398
|
};
|
|
399
|
-
function ss(
|
|
400
|
-
return encodeURIComponent(
|
|
399
|
+
function ss(t) {
|
|
400
|
+
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
401
401
|
}
|
|
402
|
-
function tt(
|
|
402
|
+
function tt(t, e, s) {
|
|
403
403
|
if (!e)
|
|
404
|
-
return
|
|
405
|
-
const r =
|
|
406
|
-
u.isFunction(
|
|
407
|
-
serialize:
|
|
404
|
+
return t;
|
|
405
|
+
const r = s && s.encode || ss;
|
|
406
|
+
u.isFunction(s) && (s = {
|
|
407
|
+
serialize: s
|
|
408
408
|
});
|
|
409
|
-
const n =
|
|
409
|
+
const n = s && s.serialize;
|
|
410
410
|
let o;
|
|
411
|
-
if (n ? o = n(e,
|
|
412
|
-
const a =
|
|
413
|
-
a !== -1 && (
|
|
411
|
+
if (n ? o = n(e, s) : o = u.isURLSearchParams(e) ? e.toString() : new Ce(e, s).toString(r), o) {
|
|
412
|
+
const a = t.indexOf("#");
|
|
413
|
+
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
414
414
|
}
|
|
415
|
-
return
|
|
415
|
+
return t;
|
|
416
416
|
}
|
|
417
417
|
class Ne {
|
|
418
418
|
constructor() {
|
|
@@ -426,10 +426,10 @@ class Ne {
|
|
|
426
426
|
*
|
|
427
427
|
* @return {Number} An ID used to remove interceptor later
|
|
428
428
|
*/
|
|
429
|
-
use(e,
|
|
429
|
+
use(e, s, r) {
|
|
430
430
|
return this.handlers.push({
|
|
431
431
|
fulfilled: e,
|
|
432
|
-
rejected:
|
|
432
|
+
rejected: s,
|
|
433
433
|
synchronous: r ? r.synchronous : !1,
|
|
434
434
|
runWhen: r ? r.runWhen : null
|
|
435
435
|
}), this.handlers.length - 1;
|
|
@@ -480,68 +480,68 @@ const st = {
|
|
|
480
480
|
Blob: os
|
|
481
481
|
},
|
|
482
482
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
483
|
-
}, be = typeof window < "u" && typeof document < "u",
|
|
483
|
+
}, be = typeof window < "u" && typeof document < "u", Re = typeof navigator == "object" && navigator || void 0, is = be && (!Re || ["ReactNative", "NativeScript", "NS"].indexOf(Re.product) < 0), cs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
484
484
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ls = be && window.location.href || "http://localhost", us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
485
485
|
__proto__: null,
|
|
486
486
|
hasBrowserEnv: be,
|
|
487
487
|
hasStandardBrowserEnv: is,
|
|
488
488
|
hasStandardBrowserWebWorkerEnv: cs,
|
|
489
|
-
navigator:
|
|
489
|
+
navigator: Re,
|
|
490
490
|
origin: ls
|
|
491
491
|
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
492
492
|
...us,
|
|
493
493
|
...as
|
|
494
494
|
};
|
|
495
|
-
function ds(
|
|
496
|
-
return de(
|
|
497
|
-
visitor: function(
|
|
498
|
-
return I.isNode && u.isBuffer(
|
|
495
|
+
function ds(t, e) {
|
|
496
|
+
return de(t, new I.classes.URLSearchParams(), {
|
|
497
|
+
visitor: function(s, r, n, o) {
|
|
498
|
+
return I.isNode && u.isBuffer(s) ? (this.append(r, s.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
499
499
|
},
|
|
500
500
|
...e
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
function ps(
|
|
504
|
-
return u.matchAll(/\w+|\[(\w*)]/g,
|
|
503
|
+
function ps(t) {
|
|
504
|
+
return u.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
505
505
|
}
|
|
506
|
-
function hs(
|
|
507
|
-
const e = {},
|
|
506
|
+
function hs(t) {
|
|
507
|
+
const e = {}, s = Object.keys(t);
|
|
508
508
|
let r;
|
|
509
|
-
const n =
|
|
509
|
+
const n = s.length;
|
|
510
510
|
let o;
|
|
511
511
|
for (r = 0; r < n; r++)
|
|
512
|
-
o =
|
|
512
|
+
o = s[r], e[o] = t[o];
|
|
513
513
|
return e;
|
|
514
514
|
}
|
|
515
|
-
function rt(
|
|
516
|
-
function e(
|
|
517
|
-
let a =
|
|
515
|
+
function rt(t) {
|
|
516
|
+
function e(s, r, n, o) {
|
|
517
|
+
let a = s[o++];
|
|
518
518
|
if (a === "__proto__") return !0;
|
|
519
|
-
const i = Number.isFinite(+a), c = o >=
|
|
520
|
-
return a = !a && u.isArray(n) ? n.length : a, c ? (u.hasOwnProp(n, a) ? n[a] = [n[a], r] : n[a] = r, !i) : ((!n[a] || !u.isObject(n[a])) && (n[a] = []), e(
|
|
519
|
+
const i = Number.isFinite(+a), c = o >= s.length;
|
|
520
|
+
return a = !a && u.isArray(n) ? n.length : a, c ? (u.hasOwnProp(n, a) ? n[a] = [n[a], r] : n[a] = r, !i) : ((!n[a] || !u.isObject(n[a])) && (n[a] = []), e(s, r, n[a], o) && u.isArray(n[a]) && (n[a] = hs(n[a])), !i);
|
|
521
521
|
}
|
|
522
|
-
if (u.isFormData(
|
|
523
|
-
const
|
|
524
|
-
return u.forEachEntry(
|
|
525
|
-
e(ps(r), n,
|
|
526
|
-
}),
|
|
522
|
+
if (u.isFormData(t) && u.isFunction(t.entries)) {
|
|
523
|
+
const s = {};
|
|
524
|
+
return u.forEachEntry(t, (r, n) => {
|
|
525
|
+
e(ps(r), n, s, 0);
|
|
526
|
+
}), s;
|
|
527
527
|
}
|
|
528
528
|
return null;
|
|
529
529
|
}
|
|
530
|
-
function fs(
|
|
531
|
-
if (u.isString(
|
|
530
|
+
function fs(t, e, s) {
|
|
531
|
+
if (u.isString(t))
|
|
532
532
|
try {
|
|
533
|
-
return (e || JSON.parse)(
|
|
533
|
+
return (e || JSON.parse)(t), u.trim(t);
|
|
534
534
|
} catch (r) {
|
|
535
535
|
if (r.name !== "SyntaxError")
|
|
536
536
|
throw r;
|
|
537
537
|
}
|
|
538
|
-
return (
|
|
538
|
+
return (s || JSON.stringify)(t);
|
|
539
539
|
}
|
|
540
540
|
const Z = {
|
|
541
541
|
transitional: st,
|
|
542
542
|
adapter: ["xhr", "http", "fetch"],
|
|
543
|
-
transformRequest: [function(e,
|
|
544
|
-
const r =
|
|
543
|
+
transformRequest: [function(e, s) {
|
|
544
|
+
const r = s.getContentType() || "", n = r.indexOf("application/json") > -1, o = u.isObject(e);
|
|
545
545
|
if (o && u.isHTMLForm(e) && (e = new FormData(e)), u.isFormData(e))
|
|
546
546
|
return n ? JSON.stringify(rt(e)) : e;
|
|
547
547
|
if (u.isArrayBuffer(e) || u.isBuffer(e) || u.isStream(e) || u.isFile(e) || u.isBlob(e) || u.isReadableStream(e))
|
|
@@ -549,7 +549,7 @@ const Z = {
|
|
|
549
549
|
if (u.isArrayBufferView(e))
|
|
550
550
|
return e.buffer;
|
|
551
551
|
if (u.isURLSearchParams(e))
|
|
552
|
-
return
|
|
552
|
+
return s.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
553
553
|
let i;
|
|
554
554
|
if (o) {
|
|
555
555
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
@@ -563,14 +563,14 @@ const Z = {
|
|
|
563
563
|
);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
return o || n ? (
|
|
566
|
+
return o || n ? (s.setContentType("application/json", !1), fs(e)) : e;
|
|
567
567
|
}],
|
|
568
568
|
transformResponse: [function(e) {
|
|
569
|
-
const
|
|
569
|
+
const s = this.transitional || Z.transitional, r = s && s.forcedJSONParsing, n = this.responseType === "json";
|
|
570
570
|
if (u.isResponse(e) || u.isReadableStream(e))
|
|
571
571
|
return e;
|
|
572
572
|
if (e && u.isString(e) && (r && !this.responseType || n)) {
|
|
573
|
-
const a = !(
|
|
573
|
+
const a = !(s && s.silentJSONParsing) && n;
|
|
574
574
|
try {
|
|
575
575
|
return JSON.parse(e);
|
|
576
576
|
} catch (i) {
|
|
@@ -603,8 +603,8 @@ const Z = {
|
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
|
-
u.forEach(["delete", "get", "head", "post", "put", "patch"], (
|
|
607
|
-
Z.headers[
|
|
606
|
+
u.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
607
|
+
Z.headers[t] = {};
|
|
608
608
|
});
|
|
609
609
|
const ms = u.toObjectSet([
|
|
610
610
|
"age",
|
|
@@ -624,45 +624,45 @@ const ms = u.toObjectSet([
|
|
|
624
624
|
"referer",
|
|
625
625
|
"retry-after",
|
|
626
626
|
"user-agent"
|
|
627
|
-
]), Es = (
|
|
627
|
+
]), Es = (t) => {
|
|
628
628
|
const e = {};
|
|
629
|
-
let
|
|
630
|
-
return
|
|
629
|
+
let s, r, n;
|
|
630
|
+
return t && t.split(`
|
|
631
631
|
`).forEach(function(a) {
|
|
632
|
-
n = a.indexOf(":"),
|
|
632
|
+
n = a.indexOf(":"), s = a.substring(0, n).trim().toLowerCase(), r = a.substring(n + 1).trim(), !(!s || e[s] && ms[s]) && (s === "set-cookie" ? e[s] ? e[s].push(r) : e[s] = [r] : e[s] = e[s] ? e[s] + ", " + r : r);
|
|
633
633
|
}), e;
|
|
634
|
-
},
|
|
635
|
-
function W(
|
|
636
|
-
return
|
|
634
|
+
}, Fe = Symbol("internals");
|
|
635
|
+
function W(t) {
|
|
636
|
+
return t && String(t).trim().toLowerCase();
|
|
637
637
|
}
|
|
638
|
-
function re(
|
|
639
|
-
return
|
|
638
|
+
function re(t) {
|
|
639
|
+
return t === !1 || t == null ? t : u.isArray(t) ? t.map(re) : String(t);
|
|
640
640
|
}
|
|
641
|
-
function As(
|
|
642
|
-
const e = /* @__PURE__ */ Object.create(null),
|
|
641
|
+
function As(t) {
|
|
642
|
+
const e = /* @__PURE__ */ Object.create(null), s = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
643
643
|
let r;
|
|
644
|
-
for (; r =
|
|
644
|
+
for (; r = s.exec(t); )
|
|
645
645
|
e[r[1]] = r[2];
|
|
646
646
|
return e;
|
|
647
647
|
}
|
|
648
|
-
const Os = (
|
|
649
|
-
function fe(
|
|
648
|
+
const Os = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
649
|
+
function fe(t, e, s, r, n) {
|
|
650
650
|
if (u.isFunction(r))
|
|
651
|
-
return r.call(this, e,
|
|
652
|
-
if (n && (e =
|
|
651
|
+
return r.call(this, e, s);
|
|
652
|
+
if (n && (e = s), !!u.isString(e)) {
|
|
653
653
|
if (u.isString(r))
|
|
654
654
|
return e.indexOf(r) !== -1;
|
|
655
655
|
if (u.isRegExp(r))
|
|
656
656
|
return r.test(e);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function ys(
|
|
660
|
-
return
|
|
659
|
+
function ys(t) {
|
|
660
|
+
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, s, r) => s.toUpperCase() + r);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const
|
|
662
|
+
function Rs(t, e) {
|
|
663
|
+
const s = u.toCamelCase(" " + e);
|
|
664
664
|
["get", "set", "has"].forEach((r) => {
|
|
665
|
-
Object.defineProperty(
|
|
665
|
+
Object.defineProperty(t, r + s, {
|
|
666
666
|
value: function(n, o, a) {
|
|
667
667
|
return this[r].call(this, e, n, o, a);
|
|
668
668
|
},
|
|
@@ -670,11 +670,11 @@ function Ss(s, e) {
|
|
|
670
670
|
});
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
let
|
|
673
|
+
let F = class {
|
|
674
674
|
constructor(e) {
|
|
675
675
|
e && this.set(e);
|
|
676
676
|
}
|
|
677
|
-
set(e,
|
|
677
|
+
set(e, s, r) {
|
|
678
678
|
const n = this;
|
|
679
679
|
function o(i, c, l) {
|
|
680
680
|
const d = W(c);
|
|
@@ -685,9 +685,9 @@ let U = class {
|
|
|
685
685
|
}
|
|
686
686
|
const a = (i, c) => u.forEach(i, (l, d) => o(l, d, c));
|
|
687
687
|
if (u.isPlainObject(e) || e instanceof this.constructor)
|
|
688
|
-
a(e,
|
|
688
|
+
a(e, s);
|
|
689
689
|
else if (u.isString(e) && (e = e.trim()) && !Os(e))
|
|
690
|
-
a(Es(e),
|
|
690
|
+
a(Es(e), s);
|
|
691
691
|
else if (u.isObject(e) && u.isIterable(e)) {
|
|
692
692
|
let i = {}, c, l;
|
|
693
693
|
for (const d of e) {
|
|
@@ -695,81 +695,81 @@ let U = class {
|
|
|
695
695
|
throw TypeError("Object iterator must return a key-value pair");
|
|
696
696
|
i[l = d[0]] = (c = i[l]) ? u.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
|
|
697
697
|
}
|
|
698
|
-
a(i,
|
|
698
|
+
a(i, s);
|
|
699
699
|
} else
|
|
700
|
-
e != null && o(
|
|
700
|
+
e != null && o(s, e, r);
|
|
701
701
|
return this;
|
|
702
702
|
}
|
|
703
|
-
get(e,
|
|
703
|
+
get(e, s) {
|
|
704
704
|
if (e = W(e), e) {
|
|
705
705
|
const r = u.findKey(this, e);
|
|
706
706
|
if (r) {
|
|
707
707
|
const n = this[r];
|
|
708
|
-
if (!
|
|
708
|
+
if (!s)
|
|
709
709
|
return n;
|
|
710
|
-
if (
|
|
710
|
+
if (s === !0)
|
|
711
711
|
return As(n);
|
|
712
|
-
if (u.isFunction(
|
|
713
|
-
return
|
|
714
|
-
if (u.isRegExp(
|
|
715
|
-
return
|
|
712
|
+
if (u.isFunction(s))
|
|
713
|
+
return s.call(this, n, r);
|
|
714
|
+
if (u.isRegExp(s))
|
|
715
|
+
return s.exec(n);
|
|
716
716
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
|
-
has(e,
|
|
720
|
+
has(e, s) {
|
|
721
721
|
if (e = W(e), e) {
|
|
722
722
|
const r = u.findKey(this, e);
|
|
723
|
-
return !!(r && this[r] !== void 0 && (!
|
|
723
|
+
return !!(r && this[r] !== void 0 && (!s || fe(this, this[r], r, s)));
|
|
724
724
|
}
|
|
725
725
|
return !1;
|
|
726
726
|
}
|
|
727
|
-
delete(e,
|
|
727
|
+
delete(e, s) {
|
|
728
728
|
const r = this;
|
|
729
729
|
let n = !1;
|
|
730
730
|
function o(a) {
|
|
731
731
|
if (a = W(a), a) {
|
|
732
732
|
const i = u.findKey(r, a);
|
|
733
|
-
i && (!
|
|
733
|
+
i && (!s || fe(r, r[i], i, s)) && (delete r[i], n = !0);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
return u.isArray(e) ? e.forEach(o) : o(e), n;
|
|
737
737
|
}
|
|
738
738
|
clear(e) {
|
|
739
|
-
const
|
|
740
|
-
let r =
|
|
739
|
+
const s = Object.keys(this);
|
|
740
|
+
let r = s.length, n = !1;
|
|
741
741
|
for (; r--; ) {
|
|
742
|
-
const o =
|
|
742
|
+
const o = s[r];
|
|
743
743
|
(!e || fe(this, this[o], o, e, !0)) && (delete this[o], n = !0);
|
|
744
744
|
}
|
|
745
745
|
return n;
|
|
746
746
|
}
|
|
747
747
|
normalize(e) {
|
|
748
|
-
const
|
|
748
|
+
const s = this, r = {};
|
|
749
749
|
return u.forEach(this, (n, o) => {
|
|
750
750
|
const a = u.findKey(r, o);
|
|
751
751
|
if (a) {
|
|
752
|
-
|
|
752
|
+
s[a] = re(n), delete s[o];
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
755
|
const i = e ? ys(o) : String(o).trim();
|
|
756
|
-
i !== o && delete
|
|
756
|
+
i !== o && delete s[o], s[i] = re(n), r[i] = !0;
|
|
757
757
|
}), this;
|
|
758
758
|
}
|
|
759
759
|
concat(...e) {
|
|
760
760
|
return this.constructor.concat(this, ...e);
|
|
761
761
|
}
|
|
762
762
|
toJSON(e) {
|
|
763
|
-
const
|
|
763
|
+
const s = /* @__PURE__ */ Object.create(null);
|
|
764
764
|
return u.forEach(this, (r, n) => {
|
|
765
|
-
r != null && r !== !1 && (
|
|
766
|
-
}),
|
|
765
|
+
r != null && r !== !1 && (s[n] = e && u.isArray(r) ? r.join(", ") : r);
|
|
766
|
+
}), s;
|
|
767
767
|
}
|
|
768
768
|
[Symbol.iterator]() {
|
|
769
769
|
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
770
770
|
}
|
|
771
771
|
toString() {
|
|
772
|
-
return Object.entries(this.toJSON()).map(([e,
|
|
772
|
+
return Object.entries(this.toJSON()).map(([e, s]) => e + ": " + s).join(`
|
|
773
773
|
`);
|
|
774
774
|
}
|
|
775
775
|
getSetCookie() {
|
|
@@ -781,94 +781,94 @@ let U = class {
|
|
|
781
781
|
static from(e) {
|
|
782
782
|
return e instanceof this ? e : new this(e);
|
|
783
783
|
}
|
|
784
|
-
static concat(e, ...
|
|
784
|
+
static concat(e, ...s) {
|
|
785
785
|
const r = new this(e);
|
|
786
|
-
return
|
|
786
|
+
return s.forEach((n) => r.set(n)), r;
|
|
787
787
|
}
|
|
788
788
|
static accessor(e) {
|
|
789
|
-
const r = (this[
|
|
789
|
+
const r = (this[Fe] = this[Fe] = {
|
|
790
790
|
accessors: {}
|
|
791
791
|
}).accessors, n = this.prototype;
|
|
792
792
|
function o(a) {
|
|
793
793
|
const i = W(a);
|
|
794
|
-
r[i] || (
|
|
794
|
+
r[i] || (Rs(n, a), r[i] = !0);
|
|
795
795
|
}
|
|
796
796
|
return u.isArray(e) ? e.forEach(o) : o(e), this;
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
|
-
|
|
800
|
-
u.reduceDescriptors(
|
|
801
|
-
let
|
|
799
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
800
|
+
u.reduceDescriptors(F.prototype, ({ value: t }, e) => {
|
|
801
|
+
let s = e[0].toUpperCase() + e.slice(1);
|
|
802
802
|
return {
|
|
803
|
-
get: () =>
|
|
803
|
+
get: () => t,
|
|
804
804
|
set(r) {
|
|
805
|
-
this[
|
|
805
|
+
this[s] = r;
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
808
|
});
|
|
809
|
-
u.freezeMethods(
|
|
810
|
-
function me(
|
|
811
|
-
const
|
|
809
|
+
u.freezeMethods(F);
|
|
810
|
+
function me(t, e) {
|
|
811
|
+
const s = this || Z, r = e || s, n = F.from(r.headers);
|
|
812
812
|
let o = r.data;
|
|
813
|
-
return u.forEach(
|
|
814
|
-
o = i.call(
|
|
813
|
+
return u.forEach(t, function(i) {
|
|
814
|
+
o = i.call(s, o, n.normalize(), e ? e.status : void 0);
|
|
815
815
|
}), n.normalize(), o;
|
|
816
816
|
}
|
|
817
|
-
function nt(
|
|
818
|
-
return !!(
|
|
817
|
+
function nt(t) {
|
|
818
|
+
return !!(t && t.__CANCEL__);
|
|
819
819
|
}
|
|
820
|
-
function Q(
|
|
821
|
-
E.call(this,
|
|
820
|
+
function Q(t, e, s) {
|
|
821
|
+
E.call(this, t ?? "canceled", E.ERR_CANCELED, e, s), this.name = "CanceledError";
|
|
822
822
|
}
|
|
823
823
|
u.inherits(Q, E, {
|
|
824
824
|
__CANCEL__: !0
|
|
825
825
|
});
|
|
826
|
-
function ot(
|
|
827
|
-
const r =
|
|
828
|
-
!
|
|
829
|
-
"Request failed with status code " +
|
|
830
|
-
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
826
|
+
function ot(t, e, s) {
|
|
827
|
+
const r = s.config.validateStatus;
|
|
828
|
+
!s.status || !r || r(s.status) ? t(s) : e(new E(
|
|
829
|
+
"Request failed with status code " + s.status,
|
|
830
|
+
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(s.status / 100) - 4],
|
|
831
|
+
s.config,
|
|
832
|
+
s.request,
|
|
833
|
+
s
|
|
834
834
|
));
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(
|
|
836
|
+
function Ss(t) {
|
|
837
|
+
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
838
838
|
return e && e[1] || "";
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
|
|
842
|
-
const
|
|
840
|
+
function gs(t, e) {
|
|
841
|
+
t = t || 10;
|
|
842
|
+
const s = new Array(t), r = new Array(t);
|
|
843
843
|
let n = 0, o = 0, a;
|
|
844
844
|
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
845
845
|
const l = Date.now(), d = r[o];
|
|
846
|
-
a || (a = l),
|
|
846
|
+
a || (a = l), s[n] = c, r[n] = l;
|
|
847
847
|
let p = o, O = 0;
|
|
848
848
|
for (; p !== n; )
|
|
849
|
-
O +=
|
|
850
|
-
if (n = (n + 1) %
|
|
849
|
+
O += s[p++], p = p % t;
|
|
850
|
+
if (n = (n + 1) % t, n === o && (o = (o + 1) % t), l - a < e)
|
|
851
851
|
return;
|
|
852
852
|
const b = d && l - d;
|
|
853
853
|
return b ? Math.round(O * 1e3 / b) : void 0;
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
let
|
|
856
|
+
function Ps(t, e) {
|
|
857
|
+
let s = 0, r = 1e3 / e, n, o;
|
|
858
858
|
const a = (l, d = Date.now()) => {
|
|
859
|
-
|
|
859
|
+
s = d, n = null, o && (clearTimeout(o), o = null), t(...l);
|
|
860
860
|
};
|
|
861
861
|
return [(...l) => {
|
|
862
|
-
const d = Date.now(), p = d -
|
|
862
|
+
const d = Date.now(), p = d - s;
|
|
863
863
|
p >= r ? a(l, d) : (n = l, o || (o = setTimeout(() => {
|
|
864
864
|
o = null, a(n);
|
|
865
865
|
}, r - p)));
|
|
866
866
|
}, () => n && a(n)];
|
|
867
867
|
}
|
|
868
|
-
const oe = (
|
|
868
|
+
const oe = (t, e, s = 3) => {
|
|
869
869
|
let r = 0;
|
|
870
|
-
const n =
|
|
871
|
-
return
|
|
870
|
+
const n = gs(50, 250);
|
|
871
|
+
return Ps((o) => {
|
|
872
872
|
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, c = a - r, l = n(c), d = a <= i;
|
|
873
873
|
r = a;
|
|
874
874
|
const p = {
|
|
@@ -882,31 +882,31 @@ const oe = (s, e, t = 3) => {
|
|
|
882
882
|
lengthComputable: i != null,
|
|
883
883
|
[e ? "download" : "upload"]: !0
|
|
884
884
|
};
|
|
885
|
-
|
|
886
|
-
},
|
|
887
|
-
},
|
|
888
|
-
const
|
|
885
|
+
t(p);
|
|
886
|
+
}, s);
|
|
887
|
+
}, Ue = (t, e) => {
|
|
888
|
+
const s = t != null;
|
|
889
889
|
return [(r) => e[0]({
|
|
890
|
-
lengthComputable:
|
|
891
|
-
total:
|
|
890
|
+
lengthComputable: s,
|
|
891
|
+
total: t,
|
|
892
892
|
loaded: r
|
|
893
893
|
}), e[1]];
|
|
894
|
-
}, Ve = (
|
|
894
|
+
}, Ve = (t) => (...e) => u.asap(() => t(...e)), Ts = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (s) => (s = new URL(s, I.origin), t.protocol === s.protocol && t.host === s.host && (e || t.port === s.port)))(
|
|
895
895
|
new URL(I.origin),
|
|
896
896
|
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
897
897
|
) : () => !0, Cs = I.hasStandardBrowserEnv ? (
|
|
898
898
|
// Standard browser envs support document.cookie
|
|
899
899
|
{
|
|
900
|
-
write(
|
|
901
|
-
const a = [
|
|
902
|
-
u.isNumber(
|
|
900
|
+
write(t, e, s, r, n, o) {
|
|
901
|
+
const a = [t + "=" + encodeURIComponent(e)];
|
|
902
|
+
u.isNumber(s) && a.push("expires=" + new Date(s).toGMTString()), u.isString(r) && a.push("path=" + r), u.isString(n) && a.push("domain=" + n), o === !0 && a.push("secure"), document.cookie = a.join("; ");
|
|
903
903
|
},
|
|
904
|
-
read(
|
|
905
|
-
const e = document.cookie.match(new RegExp("(^|;\\s*)(" +
|
|
904
|
+
read(t) {
|
|
905
|
+
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
906
906
|
return e ? decodeURIComponent(e[3]) : null;
|
|
907
907
|
},
|
|
908
|
-
remove(
|
|
909
|
-
this.write(
|
|
908
|
+
remove(t) {
|
|
909
|
+
this.write(t, "", Date.now() - 864e5);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
) : (
|
|
@@ -921,20 +921,20 @@ const oe = (s, e, t = 3) => {
|
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
);
|
|
924
|
-
function bs(
|
|
925
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(
|
|
924
|
+
function bs(t) {
|
|
925
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
926
926
|
}
|
|
927
|
-
function _s(
|
|
928
|
-
return e ?
|
|
927
|
+
function _s(t, e) {
|
|
928
|
+
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
929
929
|
}
|
|
930
|
-
function at(
|
|
930
|
+
function at(t, e, s) {
|
|
931
931
|
let r = !bs(e);
|
|
932
|
-
return
|
|
932
|
+
return t && (r || s == !1) ? _s(t, e) : e;
|
|
933
933
|
}
|
|
934
|
-
const De = (
|
|
935
|
-
function v(
|
|
934
|
+
const De = (t) => t instanceof F ? { ...t } : t;
|
|
935
|
+
function v(t, e) {
|
|
936
936
|
e = e || {};
|
|
937
|
-
const
|
|
937
|
+
const s = {};
|
|
938
938
|
function r(l, d, p, O) {
|
|
939
939
|
return u.isPlainObject(l) && u.isPlainObject(d) ? u.merge.call({ caseless: O }, l, d) : u.isPlainObject(d) ? u.merge({}, d) : u.isArray(d) ? d.slice() : d;
|
|
940
940
|
}
|
|
@@ -957,7 +957,7 @@ function v(s, e) {
|
|
|
957
957
|
function i(l, d, p) {
|
|
958
958
|
if (p in e)
|
|
959
959
|
return r(l, d);
|
|
960
|
-
if (p in
|
|
960
|
+
if (p in t)
|
|
961
961
|
return r(void 0, l);
|
|
962
962
|
}
|
|
963
963
|
const c = {
|
|
@@ -991,20 +991,20 @@ function v(s, e) {
|
|
|
991
991
|
validateStatus: i,
|
|
992
992
|
headers: (l, d, p) => n(De(l), De(d), p, !0)
|
|
993
993
|
};
|
|
994
|
-
return u.forEach(Object.keys({ ...
|
|
995
|
-
const p = c[d] || n, O = p(
|
|
996
|
-
u.isUndefined(O) && p !== i || (
|
|
997
|
-
}),
|
|
994
|
+
return u.forEach(Object.keys({ ...t, ...e }), function(d) {
|
|
995
|
+
const p = c[d] || n, O = p(t[d], e[d], d);
|
|
996
|
+
u.isUndefined(O) && p !== i || (s[d] = O);
|
|
997
|
+
}), s;
|
|
998
998
|
}
|
|
999
|
-
const it = (
|
|
1000
|
-
const e = v({},
|
|
1001
|
-
let { data:
|
|
1002
|
-
e.headers = a =
|
|
999
|
+
const it = (t) => {
|
|
1000
|
+
const e = v({}, t);
|
|
1001
|
+
let { data: s, withXSRFToken: r, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = e;
|
|
1002
|
+
e.headers = a = F.from(a), e.url = tt(at(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), i && a.set(
|
|
1003
1003
|
"Authorization",
|
|
1004
1004
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
1005
1005
|
);
|
|
1006
1006
|
let c;
|
|
1007
|
-
if (u.isFormData(
|
|
1007
|
+
if (u.isFormData(s)) {
|
|
1008
1008
|
if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
|
|
1009
1009
|
a.setContentType(void 0);
|
|
1010
1010
|
else if ((c = a.getContentType()) !== !1) {
|
|
@@ -1012,16 +1012,16 @@ const it = (s) => {
|
|
|
1012
1012
|
a.setContentType([l || "multipart/form-data", ...d].join("; "));
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
if (I.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(e)), r || r !== !1 &&
|
|
1015
|
+
if (I.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(e)), r || r !== !1 && Ts(e.url))) {
|
|
1016
1016
|
const l = n && o && Cs.read(o);
|
|
1017
1017
|
l && a.set(n, l);
|
|
1018
1018
|
}
|
|
1019
1019
|
return e;
|
|
1020
|
-
}, ws = typeof XMLHttpRequest < "u", Is = ws && function(
|
|
1021
|
-
return new Promise(function(
|
|
1022
|
-
const n = it(
|
|
1020
|
+
}, ws = typeof XMLHttpRequest < "u", Is = ws && function(t) {
|
|
1021
|
+
return new Promise(function(s, r) {
|
|
1022
|
+
const n = it(t);
|
|
1023
1023
|
let o = n.data;
|
|
1024
|
-
const a =
|
|
1024
|
+
const a = F.from(n.headers).normalize();
|
|
1025
1025
|
let { responseType: i, onUploadProgress: c, onDownloadProgress: l } = n, d, p, O, b, h;
|
|
1026
1026
|
function A() {
|
|
1027
1027
|
b && b(), h && h(), n.cancelToken && n.cancelToken.unsubscribe(d), n.signal && n.signal.removeEventListener("abort", d);
|
|
@@ -1031,18 +1031,18 @@ const it = (s) => {
|
|
|
1031
1031
|
function C() {
|
|
1032
1032
|
if (!f)
|
|
1033
1033
|
return;
|
|
1034
|
-
const w =
|
|
1034
|
+
const w = F.from(
|
|
1035
1035
|
"getAllResponseHeaders" in f && f.getAllResponseHeaders()
|
|
1036
1036
|
), L = {
|
|
1037
1037
|
data: !i || i === "text" || i === "json" ? f.responseText : f.response,
|
|
1038
1038
|
status: f.status,
|
|
1039
1039
|
statusText: f.statusText,
|
|
1040
1040
|
headers: w,
|
|
1041
|
-
config:
|
|
1041
|
+
config: t,
|
|
1042
1042
|
request: f
|
|
1043
1043
|
};
|
|
1044
1044
|
ot(function(B) {
|
|
1045
|
-
|
|
1045
|
+
s(B), A();
|
|
1046
1046
|
}, function(B) {
|
|
1047
1047
|
r(B), A();
|
|
1048
1048
|
}, L), f = null;
|
|
@@ -1050,33 +1050,33 @@ const it = (s) => {
|
|
|
1050
1050
|
"onloadend" in f ? f.onloadend = C : f.onreadystatechange = function() {
|
|
1051
1051
|
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
1052
1052
|
}, f.onabort = function() {
|
|
1053
|
-
f && (r(new E("Request aborted", E.ECONNABORTED,
|
|
1053
|
+
f && (r(new E("Request aborted", E.ECONNABORTED, t, f)), f = null);
|
|
1054
1054
|
}, f.onerror = function() {
|
|
1055
|
-
r(new E("Network Error", E.ERR_NETWORK,
|
|
1055
|
+
r(new E("Network Error", E.ERR_NETWORK, t, f)), f = null;
|
|
1056
1056
|
}, f.ontimeout = function() {
|
|
1057
1057
|
let G = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1058
1058
|
const L = n.transitional || st;
|
|
1059
1059
|
n.timeoutErrorMessage && (G = n.timeoutErrorMessage), r(new E(
|
|
1060
1060
|
G,
|
|
1061
1061
|
L.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1062
|
-
|
|
1062
|
+
t,
|
|
1063
1063
|
f
|
|
1064
1064
|
)), f = null;
|
|
1065
1065
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(G, L) {
|
|
1066
1066
|
f.setRequestHeader(L, G);
|
|
1067
1067
|
}), u.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), i && i !== "json" && (f.responseType = n.responseType), l && ([O, h] = oe(l, !0), f.addEventListener("progress", O)), c && f.upload && ([p, b] = oe(c), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", b)), (n.cancelToken || n.signal) && (d = (w) => {
|
|
1068
|
-
f && (r(!w || w.type ? new Q(null,
|
|
1068
|
+
f && (r(!w || w.type ? new Q(null, t, f) : w), f.abort(), f = null);
|
|
1069
1069
|
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
1070
|
-
const _ =
|
|
1070
|
+
const _ = Ss(n.url);
|
|
1071
1071
|
if (_ && I.protocols.indexOf(_) === -1) {
|
|
1072
|
-
r(new E("Unsupported protocol " + _ + ":", E.ERR_BAD_REQUEST,
|
|
1072
|
+
r(new E("Unsupported protocol " + _ + ":", E.ERR_BAD_REQUEST, t));
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
1075
|
f.send(o || null);
|
|
1076
1076
|
});
|
|
1077
|
-
}, Ls = (
|
|
1078
|
-
const { length:
|
|
1079
|
-
if (e ||
|
|
1077
|
+
}, Ls = (t, e) => {
|
|
1078
|
+
const { length: s } = t = t ? t.filter(Boolean) : [];
|
|
1079
|
+
if (e || s) {
|
|
1080
1080
|
let r = new AbortController(), n;
|
|
1081
1081
|
const o = function(l) {
|
|
1082
1082
|
if (!n) {
|
|
@@ -1089,44 +1089,44 @@ const it = (s) => {
|
|
|
1089
1089
|
a = null, o(new E(`timeout ${e} of ms exceeded`, E.ETIMEDOUT));
|
|
1090
1090
|
}, e);
|
|
1091
1091
|
const i = () => {
|
|
1092
|
-
|
|
1092
|
+
t && (a && clearTimeout(a), a = null, t.forEach((l) => {
|
|
1093
1093
|
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1094
|
-
}),
|
|
1094
|
+
}), t = null);
|
|
1095
1095
|
};
|
|
1096
|
-
|
|
1096
|
+
t.forEach((l) => l.addEventListener("abort", o));
|
|
1097
1097
|
const { signal: c } = r;
|
|
1098
1098
|
return c.unsubscribe = () => u.asap(i), c;
|
|
1099
1099
|
}
|
|
1100
|
-
}, Ns = function* (
|
|
1101
|
-
let
|
|
1102
|
-
if (
|
|
1103
|
-
yield
|
|
1100
|
+
}, Ns = function* (t, e) {
|
|
1101
|
+
let s = t.byteLength;
|
|
1102
|
+
if (s < e) {
|
|
1103
|
+
yield t;
|
|
1104
1104
|
return;
|
|
1105
1105
|
}
|
|
1106
1106
|
let r = 0, n;
|
|
1107
|
-
for (; r <
|
|
1108
|
-
n = r + e, yield
|
|
1109
|
-
},
|
|
1110
|
-
for await (const
|
|
1111
|
-
yield* Ns(
|
|
1112
|
-
},
|
|
1113
|
-
if (
|
|
1114
|
-
yield*
|
|
1107
|
+
for (; r < s; )
|
|
1108
|
+
n = r + e, yield t.slice(r, n), r = n;
|
|
1109
|
+
}, Fs = async function* (t, e) {
|
|
1110
|
+
for await (const s of Us(t))
|
|
1111
|
+
yield* Ns(s, e);
|
|
1112
|
+
}, Us = async function* (t) {
|
|
1113
|
+
if (t[Symbol.asyncIterator]) {
|
|
1114
|
+
yield* t;
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
|
-
const e =
|
|
1117
|
+
const e = t.getReader();
|
|
1118
1118
|
try {
|
|
1119
1119
|
for (; ; ) {
|
|
1120
|
-
const { done:
|
|
1121
|
-
if (
|
|
1120
|
+
const { done: s, value: r } = await e.read();
|
|
1121
|
+
if (s)
|
|
1122
1122
|
break;
|
|
1123
1123
|
yield r;
|
|
1124
1124
|
}
|
|
1125
1125
|
} finally {
|
|
1126
1126
|
await e.cancel();
|
|
1127
1127
|
}
|
|
1128
|
-
}, Ge = (
|
|
1129
|
-
const n =
|
|
1128
|
+
}, Ge = (t, e, s, r) => {
|
|
1129
|
+
const n = Fs(t, e);
|
|
1130
1130
|
let o = 0, a, i = (c) => {
|
|
1131
1131
|
a || (a = !0, r && r(c));
|
|
1132
1132
|
};
|
|
@@ -1139,9 +1139,9 @@ const it = (s) => {
|
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
1141
|
let p = d.byteLength;
|
|
1142
|
-
if (
|
|
1142
|
+
if (s) {
|
|
1143
1143
|
let O = o += p;
|
|
1144
|
-
|
|
1144
|
+
s(O);
|
|
1145
1145
|
}
|
|
1146
1146
|
c.enqueue(new Uint8Array(d));
|
|
1147
1147
|
} catch (l) {
|
|
@@ -1154,53 +1154,53 @@ const it = (s) => {
|
|
|
1154
1154
|
}, {
|
|
1155
1155
|
highWaterMark: 2
|
|
1156
1156
|
});
|
|
1157
|
-
}, pe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ct = pe && typeof ReadableStream == "function", Vs = pe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((
|
|
1157
|
+
}, pe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ct = pe && typeof ReadableStream == "function", Vs = pe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), lt = (t, ...e) => {
|
|
1158
1158
|
try {
|
|
1159
|
-
return !!
|
|
1159
|
+
return !!t(...e);
|
|
1160
1160
|
} catch {
|
|
1161
1161
|
return !1;
|
|
1162
1162
|
}
|
|
1163
1163
|
}, Ds = ct && lt(() => {
|
|
1164
|
-
let
|
|
1164
|
+
let t = !1;
|
|
1165
1165
|
const e = new Request(I.origin, {
|
|
1166
1166
|
body: new ReadableStream(),
|
|
1167
1167
|
method: "POST",
|
|
1168
1168
|
get duplex() {
|
|
1169
|
-
return
|
|
1169
|
+
return t = !0, "half";
|
|
1170
1170
|
}
|
|
1171
1171
|
}).headers.has("Content-Type");
|
|
1172
|
-
return
|
|
1173
|
-
}), He = 64 * 1024,
|
|
1174
|
-
stream:
|
|
1172
|
+
return t && !e;
|
|
1173
|
+
}), He = 64 * 1024, Se = ct && lt(() => u.isReadableStream(new Response("").body)), ae = {
|
|
1174
|
+
stream: Se && ((t) => t.body)
|
|
1175
1175
|
};
|
|
1176
|
-
pe && ((
|
|
1176
|
+
pe && ((t) => {
|
|
1177
1177
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1178
|
-
!ae[e] && (ae[e] = u.isFunction(
|
|
1178
|
+
!ae[e] && (ae[e] = u.isFunction(t[e]) ? (s) => s[e]() : (s, r) => {
|
|
1179
1179
|
throw new E(`Response type '${e}' is not supported`, E.ERR_NOT_SUPPORT, r);
|
|
1180
1180
|
});
|
|
1181
1181
|
});
|
|
1182
1182
|
})(new Response());
|
|
1183
|
-
const Gs = async (
|
|
1184
|
-
if (
|
|
1183
|
+
const Gs = async (t) => {
|
|
1184
|
+
if (t == null)
|
|
1185
1185
|
return 0;
|
|
1186
|
-
if (u.isBlob(
|
|
1187
|
-
return
|
|
1188
|
-
if (u.isSpecCompliantForm(
|
|
1186
|
+
if (u.isBlob(t))
|
|
1187
|
+
return t.size;
|
|
1188
|
+
if (u.isSpecCompliantForm(t))
|
|
1189
1189
|
return (await new Request(I.origin, {
|
|
1190
1190
|
method: "POST",
|
|
1191
|
-
body:
|
|
1191
|
+
body: t
|
|
1192
1192
|
}).arrayBuffer()).byteLength;
|
|
1193
|
-
if (u.isArrayBufferView(
|
|
1194
|
-
return
|
|
1195
|
-
if (u.isURLSearchParams(
|
|
1196
|
-
return (await Vs(
|
|
1197
|
-
}, Hs = async (
|
|
1198
|
-
const
|
|
1199
|
-
return
|
|
1200
|
-
}, xs = pe && (async (
|
|
1193
|
+
if (u.isArrayBufferView(t) || u.isArrayBuffer(t))
|
|
1194
|
+
return t.byteLength;
|
|
1195
|
+
if (u.isURLSearchParams(t) && (t = t + ""), u.isString(t))
|
|
1196
|
+
return (await Vs(t)).byteLength;
|
|
1197
|
+
}, Hs = async (t, e) => {
|
|
1198
|
+
const s = u.toFiniteNumber(t.getContentLength());
|
|
1199
|
+
return s ?? Gs(e);
|
|
1200
|
+
}, xs = pe && (async (t) => {
|
|
1201
1201
|
let {
|
|
1202
1202
|
url: e,
|
|
1203
|
-
method:
|
|
1203
|
+
method: s,
|
|
1204
1204
|
data: r,
|
|
1205
1205
|
signal: n,
|
|
1206
1206
|
cancelToken: o,
|
|
@@ -1211,7 +1211,7 @@ const Gs = async (s) => {
|
|
|
1211
1211
|
headers: d,
|
|
1212
1212
|
withCredentials: p = "same-origin",
|
|
1213
1213
|
fetchOptions: O
|
|
1214
|
-
} = it(
|
|
1214
|
+
} = it(t);
|
|
1215
1215
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1216
1216
|
let b = Ls([n, o && o.toAbortSignal()], a), h;
|
|
1217
1217
|
const A = b && b.unsubscribe && (() => {
|
|
@@ -1219,14 +1219,14 @@ const Gs = async (s) => {
|
|
|
1219
1219
|
});
|
|
1220
1220
|
let f;
|
|
1221
1221
|
try {
|
|
1222
|
-
if (c && Ds &&
|
|
1222
|
+
if (c && Ds && s !== "get" && s !== "head" && (f = await Hs(d, r)) !== 0) {
|
|
1223
1223
|
let L = new Request(e, {
|
|
1224
1224
|
method: "POST",
|
|
1225
1225
|
body: r,
|
|
1226
1226
|
duplex: "half"
|
|
1227
1227
|
}), x;
|
|
1228
1228
|
if (u.isFormData(r) && (x = L.headers.get("content-type")) && d.setContentType(x), L.body) {
|
|
1229
|
-
const [B, ee] =
|
|
1229
|
+
const [B, ee] = Ue(
|
|
1230
1230
|
f,
|
|
1231
1231
|
oe(Ve(c))
|
|
1232
1232
|
);
|
|
@@ -1238,20 +1238,20 @@ const Gs = async (s) => {
|
|
|
1238
1238
|
h = new Request(e, {
|
|
1239
1239
|
...O,
|
|
1240
1240
|
signal: b,
|
|
1241
|
-
method:
|
|
1241
|
+
method: s.toUpperCase(),
|
|
1242
1242
|
headers: d.normalize().toJSON(),
|
|
1243
1243
|
body: r,
|
|
1244
1244
|
duplex: "half",
|
|
1245
1245
|
credentials: C ? p : void 0
|
|
1246
1246
|
});
|
|
1247
1247
|
let _ = await fetch(h, O);
|
|
1248
|
-
const w =
|
|
1249
|
-
if (
|
|
1248
|
+
const w = Se && (l === "stream" || l === "response");
|
|
1249
|
+
if (Se && (i || w && A)) {
|
|
1250
1250
|
const L = {};
|
|
1251
1251
|
["status", "statusText", "headers"].forEach((_e) => {
|
|
1252
1252
|
L[_e] = _[_e];
|
|
1253
1253
|
});
|
|
1254
|
-
const x = u.toFiniteNumber(_.headers.get("content-length")), [B, ee] = i &&
|
|
1254
|
+
const x = u.toFiniteNumber(_.headers.get("content-length")), [B, ee] = i && Ue(
|
|
1255
1255
|
x,
|
|
1256
1256
|
oe(Ve(i), !0)
|
|
1257
1257
|
) || [];
|
|
@@ -1263,49 +1263,49 @@ const Gs = async (s) => {
|
|
|
1263
1263
|
);
|
|
1264
1264
|
}
|
|
1265
1265
|
l = l || "text";
|
|
1266
|
-
let G = await ae[u.findKey(ae, l) || "text"](_,
|
|
1266
|
+
let G = await ae[u.findKey(ae, l) || "text"](_, t);
|
|
1267
1267
|
return !w && A && A(), await new Promise((L, x) => {
|
|
1268
1268
|
ot(L, x, {
|
|
1269
1269
|
data: G,
|
|
1270
|
-
headers:
|
|
1270
|
+
headers: F.from(_.headers),
|
|
1271
1271
|
status: _.status,
|
|
1272
1272
|
statusText: _.statusText,
|
|
1273
|
-
config:
|
|
1273
|
+
config: t,
|
|
1274
1274
|
request: h
|
|
1275
1275
|
});
|
|
1276
1276
|
});
|
|
1277
1277
|
} catch (C) {
|
|
1278
1278
|
throw A && A(), C && C.name === "TypeError" && /Load failed|fetch/i.test(C.message) ? Object.assign(
|
|
1279
|
-
new E("Network Error", E.ERR_NETWORK,
|
|
1279
|
+
new E("Network Error", E.ERR_NETWORK, t, h),
|
|
1280
1280
|
{
|
|
1281
1281
|
cause: C.cause || C
|
|
1282
1282
|
}
|
|
1283
|
-
) : E.from(C, C && C.code,
|
|
1283
|
+
) : E.from(C, C && C.code, t, h);
|
|
1284
1284
|
}
|
|
1285
|
-
}),
|
|
1285
|
+
}), ge = {
|
|
1286
1286
|
http: Zt,
|
|
1287
1287
|
xhr: Is,
|
|
1288
1288
|
fetch: xs
|
|
1289
1289
|
};
|
|
1290
|
-
u.forEach(
|
|
1291
|
-
if (
|
|
1290
|
+
u.forEach(ge, (t, e) => {
|
|
1291
|
+
if (t) {
|
|
1292
1292
|
try {
|
|
1293
|
-
Object.defineProperty(
|
|
1293
|
+
Object.defineProperty(t, "name", { value: e });
|
|
1294
1294
|
} catch {
|
|
1295
1295
|
}
|
|
1296
|
-
Object.defineProperty(
|
|
1296
|
+
Object.defineProperty(t, "adapterName", { value: e });
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
|
-
const xe = (
|
|
1300
|
-
getAdapter: (
|
|
1301
|
-
|
|
1302
|
-
const { length: e } =
|
|
1303
|
-
let
|
|
1299
|
+
const xe = (t) => `- ${t}`, Bs = (t) => u.isFunction(t) || t === null || t === !1, ut = {
|
|
1300
|
+
getAdapter: (t) => {
|
|
1301
|
+
t = u.isArray(t) ? t : [t];
|
|
1302
|
+
const { length: e } = t;
|
|
1303
|
+
let s, r;
|
|
1304
1304
|
const n = {};
|
|
1305
1305
|
for (let o = 0; o < e; o++) {
|
|
1306
|
-
|
|
1306
|
+
s = t[o];
|
|
1307
1307
|
let a;
|
|
1308
|
-
if (r =
|
|
1308
|
+
if (r = s, !Bs(s) && (r = ge[(a = String(s)).toLowerCase()], r === void 0))
|
|
1309
1309
|
throw new E(`Unknown adapter '${a}'`);
|
|
1310
1310
|
if (r)
|
|
1311
1311
|
break;
|
|
@@ -1325,72 +1325,72 @@ const xe = (s) => `- ${s}`, Bs = (s) => u.isFunction(s) || s === null || s === !
|
|
|
1325
1325
|
}
|
|
1326
1326
|
return r;
|
|
1327
1327
|
},
|
|
1328
|
-
adapters:
|
|
1328
|
+
adapters: ge
|
|
1329
1329
|
};
|
|
1330
|
-
function Ee(
|
|
1331
|
-
if (
|
|
1332
|
-
throw new Q(null,
|
|
1330
|
+
function Ee(t) {
|
|
1331
|
+
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1332
|
+
throw new Q(null, t);
|
|
1333
1333
|
}
|
|
1334
|
-
function Be(
|
|
1335
|
-
return Ee(
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
), ["post", "put", "patch"].indexOf(
|
|
1339
|
-
return Ee(
|
|
1340
|
-
|
|
1341
|
-
|
|
1334
|
+
function Be(t) {
|
|
1335
|
+
return Ee(t), t.headers = F.from(t.headers), t.data = me.call(
|
|
1336
|
+
t,
|
|
1337
|
+
t.transformRequest
|
|
1338
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ut.getAdapter(t.adapter || Z.adapter)(t).then(function(r) {
|
|
1339
|
+
return Ee(t), r.data = me.call(
|
|
1340
|
+
t,
|
|
1341
|
+
t.transformResponse,
|
|
1342
1342
|
r
|
|
1343
|
-
), r.headers =
|
|
1343
|
+
), r.headers = F.from(r.headers), r;
|
|
1344
1344
|
}, function(r) {
|
|
1345
|
-
return nt(r) || (Ee(
|
|
1346
|
-
|
|
1347
|
-
|
|
1345
|
+
return nt(r) || (Ee(t), r && r.response && (r.response.data = me.call(
|
|
1346
|
+
t,
|
|
1347
|
+
t.transformResponse,
|
|
1348
1348
|
r.response
|
|
1349
|
-
), r.response.headers =
|
|
1349
|
+
), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
1352
|
const dt = "1.11.0", he = {};
|
|
1353
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((
|
|
1354
|
-
he[
|
|
1355
|
-
return typeof r ===
|
|
1353
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1354
|
+
he[t] = function(r) {
|
|
1355
|
+
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1356
1356
|
};
|
|
1357
1357
|
});
|
|
1358
1358
|
const Me = {};
|
|
1359
|
-
he.transitional = function(e,
|
|
1359
|
+
he.transitional = function(e, s, r) {
|
|
1360
1360
|
function n(o, a) {
|
|
1361
1361
|
return "[Axios v" + dt + "] Transitional option '" + o + "'" + a + (r ? ". " + r : "");
|
|
1362
1362
|
}
|
|
1363
1363
|
return (o, a, i) => {
|
|
1364
1364
|
if (e === !1)
|
|
1365
1365
|
throw new E(
|
|
1366
|
-
n(a, " has been removed" + (
|
|
1366
|
+
n(a, " has been removed" + (s ? " in " + s : "")),
|
|
1367
1367
|
E.ERR_DEPRECATED
|
|
1368
1368
|
);
|
|
1369
|
-
return
|
|
1369
|
+
return s && !Me[a] && (Me[a] = !0, console.warn(
|
|
1370
1370
|
n(
|
|
1371
1371
|
a,
|
|
1372
|
-
" has been deprecated since v" +
|
|
1372
|
+
" has been deprecated since v" + s + " and will be removed in the near future"
|
|
1373
1373
|
)
|
|
1374
1374
|
)), e ? e(o, a, i) : !0;
|
|
1375
1375
|
};
|
|
1376
1376
|
};
|
|
1377
1377
|
he.spelling = function(e) {
|
|
1378
|
-
return (
|
|
1378
|
+
return (s, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
1379
1379
|
};
|
|
1380
|
-
function Ms(
|
|
1381
|
-
if (typeof
|
|
1380
|
+
function Ms(t, e, s) {
|
|
1381
|
+
if (typeof t != "object")
|
|
1382
1382
|
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
1383
|
-
const r = Object.keys(
|
|
1383
|
+
const r = Object.keys(t);
|
|
1384
1384
|
let n = r.length;
|
|
1385
1385
|
for (; n-- > 0; ) {
|
|
1386
1386
|
const o = r[n], a = e[o];
|
|
1387
1387
|
if (a) {
|
|
1388
|
-
const i =
|
|
1388
|
+
const i = t[o], c = i === void 0 || a(i, o, t);
|
|
1389
1389
|
if (c !== !0)
|
|
1390
1390
|
throw new E("option " + o + " must be " + c, E.ERR_BAD_OPTION_VALUE);
|
|
1391
1391
|
continue;
|
|
1392
1392
|
}
|
|
1393
|
-
if (
|
|
1393
|
+
if (s !== !0)
|
|
1394
1394
|
throw new E("Unknown option " + o, E.ERR_BAD_OPTION);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
@@ -1413,9 +1413,9 @@ let k = class {
|
|
|
1413
1413
|
*
|
|
1414
1414
|
* @returns {Promise} The Promise to be fulfilled
|
|
1415
1415
|
*/
|
|
1416
|
-
async request(e,
|
|
1416
|
+
async request(e, s) {
|
|
1417
1417
|
try {
|
|
1418
|
-
return await this._request(e,
|
|
1418
|
+
return await this._request(e, s);
|
|
1419
1419
|
} catch (r) {
|
|
1420
1420
|
if (r instanceof Error) {
|
|
1421
1421
|
let n = {};
|
|
@@ -1430,36 +1430,36 @@ let k = class {
|
|
|
1430
1430
|
throw r;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
_request(e,
|
|
1434
|
-
typeof e == "string" ? (
|
|
1435
|
-
const { transitional: r, paramsSerializer: n, headers: o } =
|
|
1433
|
+
_request(e, s) {
|
|
1434
|
+
typeof e == "string" ? (s = s || {}, s.url = e) : s = e || {}, s = v(this.defaults, s);
|
|
1435
|
+
const { transitional: r, paramsSerializer: n, headers: o } = s;
|
|
1436
1436
|
r !== void 0 && ne.assertOptions(r, {
|
|
1437
1437
|
silentJSONParsing: V.transitional(V.boolean),
|
|
1438
1438
|
forcedJSONParsing: V.transitional(V.boolean),
|
|
1439
1439
|
clarifyTimeoutError: V.transitional(V.boolean)
|
|
1440
|
-
}, !1), n != null && (u.isFunction(n) ?
|
|
1440
|
+
}, !1), n != null && (u.isFunction(n) ? s.paramsSerializer = {
|
|
1441
1441
|
serialize: n
|
|
1442
1442
|
} : ne.assertOptions(n, {
|
|
1443
1443
|
encode: V.function,
|
|
1444
1444
|
serialize: V.function
|
|
1445
|
-
}, !0)),
|
|
1445
|
+
}, !0)), s.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? s.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : s.allowAbsoluteUrls = !0), ne.assertOptions(s, {
|
|
1446
1446
|
baseUrl: V.spelling("baseURL"),
|
|
1447
1447
|
withXsrfToken: V.spelling("withXSRFToken")
|
|
1448
|
-
}, !0),
|
|
1448
|
+
}, !0), s.method = (s.method || this.defaults.method || "get").toLowerCase();
|
|
1449
1449
|
let a = o && u.merge(
|
|
1450
1450
|
o.common,
|
|
1451
|
-
o[
|
|
1451
|
+
o[s.method]
|
|
1452
1452
|
);
|
|
1453
1453
|
o && u.forEach(
|
|
1454
1454
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1455
1455
|
(h) => {
|
|
1456
1456
|
delete o[h];
|
|
1457
1457
|
}
|
|
1458
|
-
),
|
|
1458
|
+
), s.headers = F.concat(a, o);
|
|
1459
1459
|
const i = [];
|
|
1460
1460
|
let c = !0;
|
|
1461
1461
|
this.interceptors.request.forEach(function(A) {
|
|
1462
|
-
typeof A.runWhen == "function" && A.runWhen(
|
|
1462
|
+
typeof A.runWhen == "function" && A.runWhen(s) === !1 || (c = c && A.synchronous, i.unshift(A.fulfilled, A.rejected));
|
|
1463
1463
|
});
|
|
1464
1464
|
const l = [];
|
|
1465
1465
|
this.interceptors.response.forEach(function(A) {
|
|
@@ -1468,12 +1468,12 @@ let k = class {
|
|
|
1468
1468
|
let d, p = 0, O;
|
|
1469
1469
|
if (!c) {
|
|
1470
1470
|
const h = [Be.bind(this), void 0];
|
|
1471
|
-
for (h.unshift(...i), h.push(...l), O = h.length, d = Promise.resolve(
|
|
1471
|
+
for (h.unshift(...i), h.push(...l), O = h.length, d = Promise.resolve(s); p < O; )
|
|
1472
1472
|
d = d.then(h[p++], h[p++]);
|
|
1473
1473
|
return d;
|
|
1474
1474
|
}
|
|
1475
1475
|
O = i.length;
|
|
1476
|
-
let b =
|
|
1476
|
+
let b = s;
|
|
1477
1477
|
for (p = 0; p < O; ) {
|
|
1478
1478
|
const h = i[p++], A = i[p++];
|
|
1479
1479
|
try {
|
|
@@ -1494,21 +1494,21 @@ let k = class {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
getUri(e) {
|
|
1496
1496
|
e = v(this.defaults, e);
|
|
1497
|
-
const
|
|
1498
|
-
return tt(
|
|
1497
|
+
const s = at(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1498
|
+
return tt(s, e.params, e.paramsSerializer);
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
1501
|
u.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1502
|
-
k.prototype[e] = function(
|
|
1502
|
+
k.prototype[e] = function(s, r) {
|
|
1503
1503
|
return this.request(v(r || {}, {
|
|
1504
1504
|
method: e,
|
|
1505
|
-
url:
|
|
1505
|
+
url: s,
|
|
1506
1506
|
data: (r || {}).data
|
|
1507
1507
|
}));
|
|
1508
1508
|
};
|
|
1509
1509
|
});
|
|
1510
1510
|
u.forEach(["post", "put", "patch"], function(e) {
|
|
1511
|
-
function
|
|
1511
|
+
function s(r) {
|
|
1512
1512
|
return function(o, a, i) {
|
|
1513
1513
|
return this.request(v(i || {}, {
|
|
1514
1514
|
method: e,
|
|
@@ -1520,15 +1520,15 @@ u.forEach(["post", "put", "patch"], function(e) {
|
|
|
1520
1520
|
}));
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
k.prototype[e] =
|
|
1523
|
+
k.prototype[e] = s(), k.prototype[e + "Form"] = s(!0);
|
|
1524
1524
|
});
|
|
1525
1525
|
let js = class pt {
|
|
1526
1526
|
constructor(e) {
|
|
1527
1527
|
if (typeof e != "function")
|
|
1528
1528
|
throw new TypeError("executor must be a function.");
|
|
1529
|
-
let
|
|
1529
|
+
let s;
|
|
1530
1530
|
this.promise = new Promise(function(o) {
|
|
1531
|
-
|
|
1531
|
+
s = o;
|
|
1532
1532
|
});
|
|
1533
1533
|
const r = this;
|
|
1534
1534
|
this.promise.then((n) => {
|
|
@@ -1546,7 +1546,7 @@ let js = class pt {
|
|
|
1546
1546
|
r.unsubscribe(o);
|
|
1547
1547
|
}, a;
|
|
1548
1548
|
}, e(function(o, a, i) {
|
|
1549
|
-
r.reason || (r.reason = new Q(o, a, i),
|
|
1549
|
+
r.reason || (r.reason = new Q(o, a, i), s(r.reason));
|
|
1550
1550
|
});
|
|
1551
1551
|
}
|
|
1552
1552
|
/**
|
|
@@ -1572,14 +1572,14 @@ let js = class pt {
|
|
|
1572
1572
|
unsubscribe(e) {
|
|
1573
1573
|
if (!this._listeners)
|
|
1574
1574
|
return;
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1575
|
+
const s = this._listeners.indexOf(e);
|
|
1576
|
+
s !== -1 && this._listeners.splice(s, 1);
|
|
1577
1577
|
}
|
|
1578
1578
|
toAbortSignal() {
|
|
1579
|
-
const e = new AbortController(),
|
|
1579
|
+
const e = new AbortController(), s = (r) => {
|
|
1580
1580
|
e.abort(r);
|
|
1581
1581
|
};
|
|
1582
|
-
return this.subscribe(
|
|
1582
|
+
return this.subscribe(s), e.signal.unsubscribe = () => this.unsubscribe(s), e.signal;
|
|
1583
1583
|
}
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
@@ -1595,15 +1595,15 @@ let js = class pt {
|
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
|
-
function ks(
|
|
1599
|
-
return function(
|
|
1600
|
-
return
|
|
1598
|
+
function ks(t) {
|
|
1599
|
+
return function(s) {
|
|
1600
|
+
return t.apply(null, s);
|
|
1601
1601
|
};
|
|
1602
1602
|
}
|
|
1603
|
-
function vs(
|
|
1604
|
-
return u.isObject(
|
|
1603
|
+
function vs(t) {
|
|
1604
|
+
return u.isObject(t) && t.isAxiosError === !0;
|
|
1605
1605
|
}
|
|
1606
|
-
const
|
|
1606
|
+
const Pe = {
|
|
1607
1607
|
Continue: 100,
|
|
1608
1608
|
SwitchingProtocols: 101,
|
|
1609
1609
|
Processing: 102,
|
|
@@ -1668,14 +1668,14 @@ const Te = {
|
|
|
1668
1668
|
NotExtended: 510,
|
|
1669
1669
|
NetworkAuthenticationRequired: 511
|
|
1670
1670
|
};
|
|
1671
|
-
Object.entries(
|
|
1672
|
-
|
|
1671
|
+
Object.entries(Pe).forEach(([t, e]) => {
|
|
1672
|
+
Pe[e] = t;
|
|
1673
1673
|
});
|
|
1674
|
-
function ht(
|
|
1675
|
-
const e = new k(
|
|
1676
|
-
return u.extend(
|
|
1677
|
-
return ht(v(
|
|
1678
|
-
},
|
|
1674
|
+
function ht(t) {
|
|
1675
|
+
const e = new k(t), s = ve(k.prototype.request, e);
|
|
1676
|
+
return u.extend(s, k.prototype, e, { allOwnKeys: !0 }), u.extend(s, e, null, { allOwnKeys: !0 }), s.create = function(n) {
|
|
1677
|
+
return ht(v(t, n));
|
|
1678
|
+
}, s;
|
|
1679
1679
|
}
|
|
1680
1680
|
const m = ht(Z);
|
|
1681
1681
|
m.Axios = k;
|
|
@@ -1692,20 +1692,20 @@ m.all = function(e) {
|
|
|
1692
1692
|
m.spread = ks;
|
|
1693
1693
|
m.isAxiosError = vs;
|
|
1694
1694
|
m.mergeConfig = v;
|
|
1695
|
-
m.AxiosHeaders =
|
|
1696
|
-
m.formToJSON = (
|
|
1695
|
+
m.AxiosHeaders = F;
|
|
1696
|
+
m.formToJSON = (t) => rt(u.isHTMLForm(t) ? new FormData(t) : t);
|
|
1697
1697
|
m.getAdapter = ut.getAdapter;
|
|
1698
|
-
m.HttpStatusCode =
|
|
1698
|
+
m.HttpStatusCode = Pe;
|
|
1699
1699
|
m.default = m;
|
|
1700
1700
|
const {
|
|
1701
1701
|
Axios: Ar,
|
|
1702
1702
|
AxiosError: Or,
|
|
1703
1703
|
CanceledError: yr,
|
|
1704
|
-
isCancel:
|
|
1705
|
-
CancelToken:
|
|
1706
|
-
VERSION:
|
|
1707
|
-
all:
|
|
1708
|
-
Cancel:
|
|
1704
|
+
isCancel: Rr,
|
|
1705
|
+
CancelToken: Sr,
|
|
1706
|
+
VERSION: gr,
|
|
1707
|
+
all: Pr,
|
|
1708
|
+
Cancel: Tr,
|
|
1709
1709
|
isAxiosError: Cr,
|
|
1710
1710
|
spread: br,
|
|
1711
1711
|
toFormData: _r,
|
|
@@ -1713,43 +1713,43 @@ const {
|
|
|
1713
1713
|
HttpStatusCode: Ir,
|
|
1714
1714
|
formToJSON: Lr,
|
|
1715
1715
|
getAdapter: Nr,
|
|
1716
|
-
mergeConfig:
|
|
1717
|
-
} = m,
|
|
1718
|
-
class
|
|
1719
|
-
constructor(e,
|
|
1720
|
-
this.basePath =
|
|
1716
|
+
mergeConfig: Fr
|
|
1717
|
+
} = m, R = "http://localhost:41101".replace(/\/+$/, "");
|
|
1718
|
+
class q {
|
|
1719
|
+
constructor(e, s = R, r = m) {
|
|
1720
|
+
this.basePath = s, this.axios = r, e && (this.configuration = e, this.basePath = e.basePath || this.basePath);
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
class
|
|
1724
|
-
constructor(e,
|
|
1725
|
-
super(
|
|
1723
|
+
class qs extends Error {
|
|
1724
|
+
constructor(e, s) {
|
|
1725
|
+
super(s), this.field = e, this.name = "RequiredError";
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
|
-
const
|
|
1729
|
-
if (
|
|
1730
|
-
throw new
|
|
1731
|
-
},
|
|
1732
|
-
const
|
|
1728
|
+
const S = "https://example.com", y = function(t, e, s) {
|
|
1729
|
+
if (s == null)
|
|
1730
|
+
throw new qs(e, `Required parameter ${e} was null or undefined when calling ${t}.`);
|
|
1731
|
+
}, g = function(t, ...e) {
|
|
1732
|
+
const s = new URLSearchParams(t.search);
|
|
1733
1733
|
for (const r of e)
|
|
1734
1734
|
for (const n in r)
|
|
1735
1735
|
if (Array.isArray(r[n])) {
|
|
1736
|
-
|
|
1736
|
+
s.delete(n);
|
|
1737
1737
|
for (const o of r[n])
|
|
1738
|
-
|
|
1738
|
+
s.append(n, o);
|
|
1739
1739
|
} else
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
}, D = function(
|
|
1743
|
-
const r = typeof
|
|
1744
|
-
return (r &&
|
|
1745
|
-
},
|
|
1746
|
-
return
|
|
1747
|
-
},
|
|
1748
|
-
return (n = e, o =
|
|
1749
|
-
const a = { ...
|
|
1740
|
+
s.set(n, r[n]);
|
|
1741
|
+
t.search = s.toString();
|
|
1742
|
+
}, D = function(t, e, s) {
|
|
1743
|
+
const r = typeof t != "string";
|
|
1744
|
+
return (r && s && s.isJsonMime ? s.isJsonMime(e.headers["Content-Type"]) : r) ? JSON.stringify(t !== void 0 ? t : {}) : t || "";
|
|
1745
|
+
}, P = function(t) {
|
|
1746
|
+
return t.pathname + t.search + t.hash;
|
|
1747
|
+
}, T = function(t, e, s, r) {
|
|
1748
|
+
return (n = e, o = s) => {
|
|
1749
|
+
const a = { ...t.options, url: (r?.basePath || o) + t.url };
|
|
1750
1750
|
return n.request(a);
|
|
1751
1751
|
};
|
|
1752
|
-
},
|
|
1752
|
+
}, zs = function(t) {
|
|
1753
1753
|
return {
|
|
1754
1754
|
/**
|
|
1755
1755
|
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
|
|
@@ -1759,16 +1759,16 @@ const R = "https://example.com", y = function(s, e, t) {
|
|
|
1759
1759
|
* @param {*} [options] Override http request option.
|
|
1760
1760
|
* @throws {RequiredError}
|
|
1761
1761
|
*/
|
|
1762
|
-
detect: async (e,
|
|
1762
|
+
detect: async (e, s, r = {}) => {
|
|
1763
1763
|
y("detect", "detectRequest", e);
|
|
1764
|
-
const n = "/api/detect", o = new URL(n,
|
|
1764
|
+
const n = "/api/detect", o = new URL(n, S);
|
|
1765
1765
|
let a;
|
|
1766
|
-
|
|
1766
|
+
t && (a = t.baseOptions);
|
|
1767
1767
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1768
|
-
|
|
1768
|
+
s != null && (c["X-RequestID"] = String(s)), c["Content-Type"] = "application/json", g(o, l);
|
|
1769
1769
|
let d = a && a.headers ? a.headers : {};
|
|
1770
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
1771
|
-
url:
|
|
1770
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, t), {
|
|
1771
|
+
url: P(o),
|
|
1772
1772
|
options: i
|
|
1773
1773
|
};
|
|
1774
1774
|
},
|
|
@@ -1780,16 +1780,16 @@ const R = "https://example.com", y = function(s, e, t) {
|
|
|
1780
1780
|
* @param {*} [options] Override http request option.
|
|
1781
1781
|
* @throws {RequiredError}
|
|
1782
1782
|
*/
|
|
1783
|
-
match: async (e,
|
|
1783
|
+
match: async (e, s, r = {}) => {
|
|
1784
1784
|
y("match", "matchRequest", e);
|
|
1785
|
-
const n = "/api/match", o = new URL(n,
|
|
1785
|
+
const n = "/api/match", o = new URL(n, S);
|
|
1786
1786
|
let a;
|
|
1787
|
-
|
|
1787
|
+
t && (a = t.baseOptions);
|
|
1788
1788
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1789
|
-
|
|
1789
|
+
s != null && (c["X-RequestID"] = String(s)), c["Content-Type"] = "application/json", g(o, l);
|
|
1790
1790
|
let d = a && a.headers ? a.headers : {};
|
|
1791
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
1792
|
-
url:
|
|
1791
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, t), {
|
|
1792
|
+
url: P(o),
|
|
1793
1793
|
options: i
|
|
1794
1794
|
};
|
|
1795
1795
|
},
|
|
@@ -1801,22 +1801,22 @@ const R = "https://example.com", y = function(s, e, t) {
|
|
|
1801
1801
|
* @param {*} [options] Override http request option.
|
|
1802
1802
|
* @throws {RequiredError}
|
|
1803
1803
|
*/
|
|
1804
|
-
matchAndSearch: async (e,
|
|
1804
|
+
matchAndSearch: async (e, s, r = {}) => {
|
|
1805
1805
|
y("matchAndSearch", "matchAndSearchRequest", e);
|
|
1806
|
-
const n = "/api/match_and_search", o = new URL(n,
|
|
1806
|
+
const n = "/api/match_and_search", o = new URL(n, S);
|
|
1807
1807
|
let a;
|
|
1808
|
-
|
|
1808
|
+
t && (a = t.baseOptions);
|
|
1809
1809
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1810
|
-
|
|
1810
|
+
s != null && (c["X-RequestID"] = String(s)), c["Content-Type"] = "application/json", g(o, l);
|
|
1811
1811
|
let d = a && a.headers ? a.headers : {};
|
|
1812
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
1813
|
-
url:
|
|
1812
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, t), {
|
|
1813
|
+
url: P(o),
|
|
1814
1814
|
options: i
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
1817
|
};
|
|
1818
|
-
}, Ae = function(
|
|
1819
|
-
const e =
|
|
1818
|
+
}, Ae = function(t) {
|
|
1819
|
+
const e = zs(t);
|
|
1820
1820
|
return {
|
|
1821
1821
|
/**
|
|
1822
1822
|
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
|
|
@@ -1826,9 +1826,9 @@ const R = "https://example.com", y = function(s, e, t) {
|
|
|
1826
1826
|
* @param {*} [options] Override http request option.
|
|
1827
1827
|
* @throws {RequiredError}
|
|
1828
1828
|
*/
|
|
1829
|
-
async detect(
|
|
1830
|
-
const o = await e.detect(
|
|
1831
|
-
return
|
|
1829
|
+
async detect(s, r, n) {
|
|
1830
|
+
const o = await e.detect(s, r, n);
|
|
1831
|
+
return T(o, m, R, t);
|
|
1832
1832
|
},
|
|
1833
1833
|
/**
|
|
1834
1834
|
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
@@ -1838,9 +1838,9 @@ const R = "https://example.com", y = function(s, e, t) {
|
|
|
1838
1838
|
* @param {*} [options] Override http request option.
|
|
1839
1839
|
* @throws {RequiredError}
|
|
1840
1840
|
*/
|
|
1841
|
-
async match(
|
|
1842
|
-
const o = await e.match(
|
|
1843
|
-
return
|
|
1841
|
+
async match(s, r, n) {
|
|
1842
|
+
const o = await e.match(s, r, n);
|
|
1843
|
+
return T(o, m, R, t);
|
|
1844
1844
|
},
|
|
1845
1845
|
/**
|
|
1846
1846
|
* To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
|
|
@@ -1850,13 +1850,13 @@ const R = "https://example.com", y = function(s, e, t) {
|
|
|
1850
1850
|
* @param {*} [options] Override http request option.
|
|
1851
1851
|
* @throws {RequiredError}
|
|
1852
1852
|
*/
|
|
1853
|
-
async matchAndSearch(
|
|
1854
|
-
const o = await e.matchAndSearch(
|
|
1855
|
-
return
|
|
1853
|
+
async matchAndSearch(s, r, n) {
|
|
1854
|
+
const o = await e.matchAndSearch(s, r, n);
|
|
1855
|
+
return T(o, m, R, t);
|
|
1856
1856
|
}
|
|
1857
1857
|
};
|
|
1858
1858
|
};
|
|
1859
|
-
let $s = class extends
|
|
1859
|
+
let $s = class extends q {
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
|
|
1862
1862
|
* @summary detect and check quality
|
|
@@ -1866,8 +1866,8 @@ let $s = class extends z {
|
|
|
1866
1866
|
* @throws {RequiredError}
|
|
1867
1867
|
* @memberof MatchApi
|
|
1868
1868
|
*/
|
|
1869
|
-
detect(e,
|
|
1870
|
-
return Ae(this.configuration).detect(e,
|
|
1869
|
+
detect(e, s, r) {
|
|
1870
|
+
return Ae(this.configuration).detect(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
1871
1871
|
}
|
|
1872
1872
|
/**
|
|
1873
1873
|
* To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It\'s possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
|
|
@@ -1878,8 +1878,8 @@ let $s = class extends z {
|
|
|
1878
1878
|
* @throws {RequiredError}
|
|
1879
1879
|
* @memberof MatchApi
|
|
1880
1880
|
*/
|
|
1881
|
-
match(e,
|
|
1882
|
-
return Ae(this.configuration).match(e,
|
|
1881
|
+
match(e, s, r) {
|
|
1882
|
+
return Ae(this.configuration).match(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
1883
1883
|
}
|
|
1884
1884
|
/**
|
|
1885
1885
|
* To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
|
|
@@ -1890,8 +1890,8 @@ let $s = class extends z {
|
|
|
1890
1890
|
* @throws {RequiredError}
|
|
1891
1891
|
* @memberof MatchApi
|
|
1892
1892
|
*/
|
|
1893
|
-
matchAndSearch(e,
|
|
1894
|
-
return Ae(this.configuration).matchAndSearch(e,
|
|
1893
|
+
matchAndSearch(e, s, r) {
|
|
1894
|
+
return Ae(this.configuration).matchAndSearch(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
1895
1895
|
}
|
|
1896
1896
|
};
|
|
1897
1897
|
const Vr = {
|
|
@@ -2053,29 +2053,29 @@ const Vr = {
|
|
|
2053
2053
|
ACTIVE: 0,
|
|
2054
2054
|
PASSIVE: 1
|
|
2055
2055
|
};
|
|
2056
|
-
var
|
|
2057
|
-
for (var te = 0; te <
|
|
2058
|
-
Ws[
|
|
2059
|
-
var ie = function(
|
|
2060
|
-
var e = new Uint8Array(
|
|
2061
|
-
for (
|
|
2062
|
-
n +=
|
|
2056
|
+
var z = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ws = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
2057
|
+
for (var te = 0; te < z.length; te++)
|
|
2058
|
+
Ws[z.charCodeAt(te)] = te;
|
|
2059
|
+
var ie = function(t) {
|
|
2060
|
+
var e = new Uint8Array(t), s, r = e.length, n = "";
|
|
2061
|
+
for (s = 0; s < r; s += 3)
|
|
2062
|
+
n += z[e[s] >> 2], n += z[(e[s] & 3) << 4 | e[s + 1] >> 4], n += z[(e[s + 1] & 15) << 2 | e[s + 2] >> 6], n += z[e[s + 2] & 63];
|
|
2063
2063
|
return r % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : r % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
2064
2064
|
};
|
|
2065
2065
|
class Ks {
|
|
2066
|
-
constructor(e,
|
|
2067
|
-
this.superClass = new $s(e,
|
|
2066
|
+
constructor(e, s, r) {
|
|
2067
|
+
this.superClass = new $s(e, s, r);
|
|
2068
2068
|
}
|
|
2069
|
-
async match(e,
|
|
2069
|
+
async match(e, s, r) {
|
|
2070
2070
|
for (const o of e.images)
|
|
2071
2071
|
o.type || (o.type = Qs.LIVE), typeof o.data != "string" && (o.data = ie(o.data));
|
|
2072
|
-
return (await this.superClass.match(e,
|
|
2072
|
+
return (await this.superClass.match(e, s, r)).data;
|
|
2073
2073
|
}
|
|
2074
|
-
async detect(e,
|
|
2075
|
-
return e.image && typeof e.image != "string" && (e.image = ie(e.image)), (await this.superClass.detect(e,
|
|
2074
|
+
async detect(e, s, r) {
|
|
2075
|
+
return e.image && typeof e.image != "string" && (e.image = ie(e.image)), (await this.superClass.detect(e, s, r)).data;
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
2078
|
-
const Xs = function(
|
|
2078
|
+
const Xs = function(t) {
|
|
2079
2079
|
return {
|
|
2080
2080
|
/**
|
|
2081
2081
|
*
|
|
@@ -2085,16 +2085,16 @@ const Xs = function(s) {
|
|
|
2085
2085
|
* @param {*} [options] Override http request option.
|
|
2086
2086
|
* @throws {RequiredError}
|
|
2087
2087
|
*/
|
|
2088
|
-
createGroup: async (e,
|
|
2088
|
+
createGroup: async (e, s, r = {}) => {
|
|
2089
2089
|
y("createGroup", "groupToCreate", e);
|
|
2090
|
-
const n = "/api/groups", o = new URL(n,
|
|
2090
|
+
const n = "/api/groups", o = new URL(n, S);
|
|
2091
2091
|
let a;
|
|
2092
|
-
|
|
2092
|
+
t && (a = t.baseOptions);
|
|
2093
2093
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
2094
|
-
|
|
2094
|
+
s != null && (c["X-RequestID"] = String(s)), c["Content-Type"] = "application/json", g(o, l);
|
|
2095
2095
|
let d = a && a.headers ? a.headers : {};
|
|
2096
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
2097
|
-
url:
|
|
2096
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, t), {
|
|
2097
|
+
url: P(o),
|
|
2098
2098
|
options: i
|
|
2099
2099
|
};
|
|
2100
2100
|
},
|
|
@@ -2106,16 +2106,16 @@ const Xs = function(s) {
|
|
|
2106
2106
|
* @param {*} [options] Override http request option.
|
|
2107
2107
|
* @throws {RequiredError}
|
|
2108
2108
|
*/
|
|
2109
|
-
deleteGroup: async (e,
|
|
2109
|
+
deleteGroup: async (e, s, r = {}) => {
|
|
2110
2110
|
y("deleteGroup", "groupId", e);
|
|
2111
|
-
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2111
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, S);
|
|
2112
2112
|
let a;
|
|
2113
|
-
|
|
2113
|
+
t && (a = t.baseOptions);
|
|
2114
2114
|
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
2115
|
-
|
|
2115
|
+
s != null && (c["X-RequestID"] = String(s)), g(o, l);
|
|
2116
2116
|
let d = a && a.headers ? a.headers : {};
|
|
2117
2117
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2118
|
-
url:
|
|
2118
|
+
url: P(o),
|
|
2119
2119
|
options: i
|
|
2120
2120
|
};
|
|
2121
2121
|
},
|
|
@@ -2128,15 +2128,15 @@ const Xs = function(s) {
|
|
|
2128
2128
|
* @param {*} [options] Override http request option.
|
|
2129
2129
|
* @throws {RequiredError}
|
|
2130
2130
|
*/
|
|
2131
|
-
getAllGroups: async (e,
|
|
2132
|
-
const o = "/api/groups", a = new URL(o,
|
|
2131
|
+
getAllGroups: async (e, s, r, n = {}) => {
|
|
2132
|
+
const o = "/api/groups", a = new URL(o, S);
|
|
2133
2133
|
let i;
|
|
2134
|
-
|
|
2134
|
+
t && (i = t.baseOptions);
|
|
2135
2135
|
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2136
|
-
e !== void 0 && (d.page = e),
|
|
2136
|
+
e !== void 0 && (d.page = e), s !== void 0 && (d.size = s), r != null && (l["X-RequestID"] = String(r)), g(a, d);
|
|
2137
2137
|
let p = i && i.headers ? i.headers : {};
|
|
2138
2138
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2139
|
-
url:
|
|
2139
|
+
url: P(a),
|
|
2140
2140
|
options: c
|
|
2141
2141
|
};
|
|
2142
2142
|
},
|
|
@@ -2150,16 +2150,16 @@ const Xs = function(s) {
|
|
|
2150
2150
|
* @param {*} [options] Override http request option.
|
|
2151
2151
|
* @throws {RequiredError}
|
|
2152
2152
|
*/
|
|
2153
|
-
getAllPersonsByGroupId: async (e,
|
|
2153
|
+
getAllPersonsByGroupId: async (e, s, r, n, o = {}) => {
|
|
2154
2154
|
y("getAllPersonsByGroupId", "groupId", e);
|
|
2155
|
-
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), i = new URL(a,
|
|
2155
|
+
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), i = new URL(a, S);
|
|
2156
2156
|
let c;
|
|
2157
|
-
|
|
2157
|
+
t && (c = t.baseOptions);
|
|
2158
2158
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2159
|
-
|
|
2159
|
+
s !== void 0 && (p.page = s), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), g(i, p);
|
|
2160
2160
|
let O = c && c.headers ? c.headers : {};
|
|
2161
2161
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2162
|
-
url:
|
|
2162
|
+
url: P(i),
|
|
2163
2163
|
options: l
|
|
2164
2164
|
};
|
|
2165
2165
|
},
|
|
@@ -2171,16 +2171,16 @@ const Xs = function(s) {
|
|
|
2171
2171
|
* @param {*} [options] Override http request option.
|
|
2172
2172
|
* @throws {RequiredError}
|
|
2173
2173
|
*/
|
|
2174
|
-
getGroup: async (e,
|
|
2174
|
+
getGroup: async (e, s, r = {}) => {
|
|
2175
2175
|
y("getGroup", "groupId", e);
|
|
2176
|
-
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2176
|
+
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, S);
|
|
2177
2177
|
let a;
|
|
2178
|
-
|
|
2178
|
+
t && (a = t.baseOptions);
|
|
2179
2179
|
const i = { method: "GET", ...a, ...r }, c = {}, l = {};
|
|
2180
|
-
|
|
2180
|
+
s != null && (c["X-RequestID"] = String(s)), g(o, l);
|
|
2181
2181
|
let d = a && a.headers ? a.headers : {};
|
|
2182
2182
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2183
|
-
url:
|
|
2183
|
+
url: P(o),
|
|
2184
2184
|
options: i
|
|
2185
2185
|
};
|
|
2186
2186
|
},
|
|
@@ -2193,16 +2193,16 @@ const Xs = function(s) {
|
|
|
2193
2193
|
* @param {*} [options] Override http request option.
|
|
2194
2194
|
* @throws {RequiredError}
|
|
2195
2195
|
*/
|
|
2196
|
-
updateGroup: async (e,
|
|
2197
|
-
y("updateGroup", "groupId", e), y("updateGroup", "groupToCreate",
|
|
2198
|
-
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o,
|
|
2196
|
+
updateGroup: async (e, s, r, n = {}) => {
|
|
2197
|
+
y("updateGroup", "groupId", e), y("updateGroup", "groupToCreate", s);
|
|
2198
|
+
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, S);
|
|
2199
2199
|
let i;
|
|
2200
|
-
|
|
2200
|
+
t && (i = t.baseOptions);
|
|
2201
2201
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2202
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2202
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", g(a, d);
|
|
2203
2203
|
let p = i && i.headers ? i.headers : {};
|
|
2204
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2205
|
-
url:
|
|
2204
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(s, c, t), {
|
|
2205
|
+
url: P(a),
|
|
2206
2206
|
options: c
|
|
2207
2207
|
};
|
|
2208
2208
|
},
|
|
@@ -2215,22 +2215,22 @@ const Xs = function(s) {
|
|
|
2215
2215
|
* @param {*} [options] Override http request option.
|
|
2216
2216
|
* @throws {RequiredError}
|
|
2217
2217
|
*/
|
|
2218
|
-
updatePersonsInGroup: async (e,
|
|
2219
|
-
y("updatePersonsInGroup", "groupId", e), y("updatePersonsInGroup", "updateGroup",
|
|
2220
|
-
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o,
|
|
2218
|
+
updatePersonsInGroup: async (e, s, r, n = {}) => {
|
|
2219
|
+
y("updatePersonsInGroup", "groupId", e), y("updatePersonsInGroup", "updateGroup", s);
|
|
2220
|
+
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, S);
|
|
2221
2221
|
let i;
|
|
2222
|
-
|
|
2222
|
+
t && (i = t.baseOptions);
|
|
2223
2223
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2224
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2224
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", g(a, d);
|
|
2225
2225
|
let p = i && i.headers ? i.headers : {};
|
|
2226
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2227
|
-
url:
|
|
2226
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(s, c, t), {
|
|
2227
|
+
url: P(a),
|
|
2228
2228
|
options: c
|
|
2229
2229
|
};
|
|
2230
2230
|
}
|
|
2231
2231
|
};
|
|
2232
|
-
}, M = function(
|
|
2233
|
-
const e = Xs(
|
|
2232
|
+
}, M = function(t) {
|
|
2233
|
+
const e = Xs(t);
|
|
2234
2234
|
return {
|
|
2235
2235
|
/**
|
|
2236
2236
|
*
|
|
@@ -2240,9 +2240,9 @@ const Xs = function(s) {
|
|
|
2240
2240
|
* @param {*} [options] Override http request option.
|
|
2241
2241
|
* @throws {RequiredError}
|
|
2242
2242
|
*/
|
|
2243
|
-
async createGroup(
|
|
2244
|
-
const o = await e.createGroup(
|
|
2245
|
-
return
|
|
2243
|
+
async createGroup(s, r, n) {
|
|
2244
|
+
const o = await e.createGroup(s, r, n);
|
|
2245
|
+
return T(o, m, R, t);
|
|
2246
2246
|
},
|
|
2247
2247
|
/**
|
|
2248
2248
|
*
|
|
@@ -2252,9 +2252,9 @@ const Xs = function(s) {
|
|
|
2252
2252
|
* @param {*} [options] Override http request option.
|
|
2253
2253
|
* @throws {RequiredError}
|
|
2254
2254
|
*/
|
|
2255
|
-
async deleteGroup(
|
|
2256
|
-
const o = await e.deleteGroup(
|
|
2257
|
-
return
|
|
2255
|
+
async deleteGroup(s, r, n) {
|
|
2256
|
+
const o = await e.deleteGroup(s, r, n);
|
|
2257
|
+
return T(o, m, R, t);
|
|
2258
2258
|
},
|
|
2259
2259
|
/**
|
|
2260
2260
|
*
|
|
@@ -2265,9 +2265,9 @@ const Xs = function(s) {
|
|
|
2265
2265
|
* @param {*} [options] Override http request option.
|
|
2266
2266
|
* @throws {RequiredError}
|
|
2267
2267
|
*/
|
|
2268
|
-
async getAllGroups(
|
|
2269
|
-
const a = await e.getAllGroups(
|
|
2270
|
-
return
|
|
2268
|
+
async getAllGroups(s, r, n, o) {
|
|
2269
|
+
const a = await e.getAllGroups(s, r, n, o);
|
|
2270
|
+
return T(a, m, R, t);
|
|
2271
2271
|
},
|
|
2272
2272
|
/**
|
|
2273
2273
|
*
|
|
@@ -2279,9 +2279,9 @@ const Xs = function(s) {
|
|
|
2279
2279
|
* @param {*} [options] Override http request option.
|
|
2280
2280
|
* @throws {RequiredError}
|
|
2281
2281
|
*/
|
|
2282
|
-
async getAllPersonsByGroupId(
|
|
2283
|
-
const i = await e.getAllPersonsByGroupId(
|
|
2284
|
-
return
|
|
2282
|
+
async getAllPersonsByGroupId(s, r, n, o, a) {
|
|
2283
|
+
const i = await e.getAllPersonsByGroupId(s, r, n, o, a);
|
|
2284
|
+
return T(i, m, R, t);
|
|
2285
2285
|
},
|
|
2286
2286
|
/**
|
|
2287
2287
|
*
|
|
@@ -2291,9 +2291,9 @@ const Xs = function(s) {
|
|
|
2291
2291
|
* @param {*} [options] Override http request option.
|
|
2292
2292
|
* @throws {RequiredError}
|
|
2293
2293
|
*/
|
|
2294
|
-
async getGroup(
|
|
2295
|
-
const o = await e.getGroup(
|
|
2296
|
-
return
|
|
2294
|
+
async getGroup(s, r, n) {
|
|
2295
|
+
const o = await e.getGroup(s, r, n);
|
|
2296
|
+
return T(o, m, R, t);
|
|
2297
2297
|
},
|
|
2298
2298
|
/**
|
|
2299
2299
|
*
|
|
@@ -2304,9 +2304,9 @@ const Xs = function(s) {
|
|
|
2304
2304
|
* @param {*} [options] Override http request option.
|
|
2305
2305
|
* @throws {RequiredError}
|
|
2306
2306
|
*/
|
|
2307
|
-
async updateGroup(
|
|
2308
|
-
const a = await e.updateGroup(
|
|
2309
|
-
return
|
|
2307
|
+
async updateGroup(s, r, n, o) {
|
|
2308
|
+
const a = await e.updateGroup(s, r, n, o);
|
|
2309
|
+
return T(a, m, R, t);
|
|
2310
2310
|
},
|
|
2311
2311
|
/**
|
|
2312
2312
|
*
|
|
@@ -2317,13 +2317,13 @@ const Xs = function(s) {
|
|
|
2317
2317
|
* @param {*} [options] Override http request option.
|
|
2318
2318
|
* @throws {RequiredError}
|
|
2319
2319
|
*/
|
|
2320
|
-
async updatePersonsInGroup(
|
|
2321
|
-
const a = await e.updatePersonsInGroup(
|
|
2322
|
-
return
|
|
2320
|
+
async updatePersonsInGroup(s, r, n, o) {
|
|
2321
|
+
const a = await e.updatePersonsInGroup(s, r, n, o);
|
|
2322
|
+
return T(a, m, R, t);
|
|
2323
2323
|
}
|
|
2324
2324
|
};
|
|
2325
2325
|
};
|
|
2326
|
-
let Js = class extends
|
|
2326
|
+
let Js = class extends q {
|
|
2327
2327
|
/**
|
|
2328
2328
|
*
|
|
2329
2329
|
* @summary Create group
|
|
@@ -2333,8 +2333,8 @@ let Js = class extends z {
|
|
|
2333
2333
|
* @throws {RequiredError}
|
|
2334
2334
|
* @memberof GroupApi
|
|
2335
2335
|
*/
|
|
2336
|
-
createGroup(e,
|
|
2337
|
-
return M(this.configuration).createGroup(e,
|
|
2336
|
+
createGroup(e, s, r) {
|
|
2337
|
+
return M(this.configuration).createGroup(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
2338
2338
|
}
|
|
2339
2339
|
/**
|
|
2340
2340
|
*
|
|
@@ -2345,8 +2345,8 @@ let Js = class extends z {
|
|
|
2345
2345
|
* @throws {RequiredError}
|
|
2346
2346
|
* @memberof GroupApi
|
|
2347
2347
|
*/
|
|
2348
|
-
deleteGroup(e,
|
|
2349
|
-
return M(this.configuration).deleteGroup(e,
|
|
2348
|
+
deleteGroup(e, s, r) {
|
|
2349
|
+
return M(this.configuration).deleteGroup(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
2350
2350
|
}
|
|
2351
2351
|
/**
|
|
2352
2352
|
*
|
|
@@ -2358,8 +2358,8 @@ let Js = class extends z {
|
|
|
2358
2358
|
* @throws {RequiredError}
|
|
2359
2359
|
* @memberof GroupApi
|
|
2360
2360
|
*/
|
|
2361
|
-
getAllGroups(e,
|
|
2362
|
-
return M(this.configuration).getAllGroups(e,
|
|
2361
|
+
getAllGroups(e, s, r, n) {
|
|
2362
|
+
return M(this.configuration).getAllGroups(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2363
2363
|
}
|
|
2364
2364
|
/**
|
|
2365
2365
|
*
|
|
@@ -2372,8 +2372,8 @@ let Js = class extends z {
|
|
|
2372
2372
|
* @throws {RequiredError}
|
|
2373
2373
|
* @memberof GroupApi
|
|
2374
2374
|
*/
|
|
2375
|
-
getAllPersonsByGroupId(e,
|
|
2376
|
-
return M(this.configuration).getAllPersonsByGroupId(e,
|
|
2375
|
+
getAllPersonsByGroupId(e, s, r, n, o) {
|
|
2376
|
+
return M(this.configuration).getAllPersonsByGroupId(e, s, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2377
2377
|
}
|
|
2378
2378
|
/**
|
|
2379
2379
|
*
|
|
@@ -2384,8 +2384,8 @@ let Js = class extends z {
|
|
|
2384
2384
|
* @throws {RequiredError}
|
|
2385
2385
|
* @memberof GroupApi
|
|
2386
2386
|
*/
|
|
2387
|
-
getGroup(e,
|
|
2388
|
-
return M(this.configuration).getGroup(e,
|
|
2387
|
+
getGroup(e, s, r) {
|
|
2388
|
+
return M(this.configuration).getGroup(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
2389
2389
|
}
|
|
2390
2390
|
/**
|
|
2391
2391
|
*
|
|
@@ -2397,8 +2397,8 @@ let Js = class extends z {
|
|
|
2397
2397
|
* @throws {RequiredError}
|
|
2398
2398
|
* @memberof GroupApi
|
|
2399
2399
|
*/
|
|
2400
|
-
updateGroup(e,
|
|
2401
|
-
return M(this.configuration).updateGroup(e,
|
|
2400
|
+
updateGroup(e, s, r, n) {
|
|
2401
|
+
return M(this.configuration).updateGroup(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2402
2402
|
}
|
|
2403
2403
|
/**
|
|
2404
2404
|
*
|
|
@@ -2410,41 +2410,41 @@ let Js = class extends z {
|
|
|
2410
2410
|
* @throws {RequiredError}
|
|
2411
2411
|
* @memberof GroupApi
|
|
2412
2412
|
*/
|
|
2413
|
-
updatePersonsInGroup(e,
|
|
2414
|
-
return M(this.configuration).updatePersonsInGroup(e,
|
|
2413
|
+
updatePersonsInGroup(e, s, r, n) {
|
|
2414
|
+
return M(this.configuration).updatePersonsInGroup(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2415
2415
|
}
|
|
2416
2416
|
};
|
|
2417
2417
|
class Ys {
|
|
2418
|
-
constructor(e,
|
|
2419
|
-
this.superClass = new Js(e,
|
|
2418
|
+
constructor(e, s, r) {
|
|
2419
|
+
this.superClass = new Js(e, s, r);
|
|
2420
2420
|
}
|
|
2421
|
-
async createGroup(e,
|
|
2421
|
+
async createGroup(e, s, r) {
|
|
2422
2422
|
const n = {
|
|
2423
2423
|
...e,
|
|
2424
|
-
metadata: e
|
|
2424
|
+
metadata: e?.metadata ? e.metadata : {}
|
|
2425
2425
|
};
|
|
2426
|
-
return (await this.superClass.createGroup(n,
|
|
2426
|
+
return (await this.superClass.createGroup(n, s, r)).data;
|
|
2427
2427
|
}
|
|
2428
|
-
async deleteGroup(e,
|
|
2429
|
-
await this.superClass.deleteGroup(e,
|
|
2428
|
+
async deleteGroup(e, s, r) {
|
|
2429
|
+
await this.superClass.deleteGroup(e, s, r);
|
|
2430
2430
|
}
|
|
2431
|
-
async getAllGroups(e,
|
|
2432
|
-
return (await this.superClass.getAllGroups(e,
|
|
2431
|
+
async getAllGroups(e, s, r, n) {
|
|
2432
|
+
return (await this.superClass.getAllGroups(e, s, r, n)).data;
|
|
2433
2433
|
}
|
|
2434
|
-
async getAllPersonsByGroupId(e,
|
|
2435
|
-
return (await this.superClass.getAllPersonsByGroupId(r, e,
|
|
2434
|
+
async getAllPersonsByGroupId(e, s, r, n, o) {
|
|
2435
|
+
return (await this.superClass.getAllPersonsByGroupId(r, e, s, n, o)).data;
|
|
2436
2436
|
}
|
|
2437
|
-
async getGroup(e,
|
|
2438
|
-
return (await this.superClass.getGroup(e,
|
|
2437
|
+
async getGroup(e, s, r) {
|
|
2438
|
+
return (await this.superClass.getGroup(e, s, r)).data;
|
|
2439
2439
|
}
|
|
2440
|
-
async updateGroup(e,
|
|
2441
|
-
await this.superClass.updateGroup(e,
|
|
2440
|
+
async updateGroup(e, s, r, n) {
|
|
2441
|
+
await this.superClass.updateGroup(e, s, r, n);
|
|
2442
2442
|
}
|
|
2443
|
-
async updatePersonsInGroup(e,
|
|
2444
|
-
await this.superClass.updatePersonsInGroup(e,
|
|
2443
|
+
async updatePersonsInGroup(e, s, r, n) {
|
|
2444
|
+
await this.superClass.updatePersonsInGroup(e, s, r, n);
|
|
2445
2445
|
}
|
|
2446
2446
|
}
|
|
2447
|
-
const Zs = function(
|
|
2447
|
+
const Zs = function(t) {
|
|
2448
2448
|
return {
|
|
2449
2449
|
/**
|
|
2450
2450
|
*
|
|
@@ -2455,16 +2455,16 @@ const Zs = function(s) {
|
|
|
2455
2455
|
* @param {*} [options] Override http request option.
|
|
2456
2456
|
* @throws {RequiredError}
|
|
2457
2457
|
*/
|
|
2458
|
-
addImageToPerson: async (e,
|
|
2459
|
-
y("addImageToPerson", "personId", e), y("addImageToPerson", "addImageToPersonRequest",
|
|
2460
|
-
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o,
|
|
2458
|
+
addImageToPerson: async (e, s, r, n = {}) => {
|
|
2459
|
+
y("addImageToPerson", "personId", e), y("addImageToPerson", "addImageToPersonRequest", s);
|
|
2460
|
+
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, S);
|
|
2461
2461
|
let i;
|
|
2462
|
-
|
|
2462
|
+
t && (i = t.baseOptions);
|
|
2463
2463
|
const c = { method: "POST", ...i, ...n }, l = {}, d = {};
|
|
2464
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2464
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", g(a, d);
|
|
2465
2465
|
let p = i && i.headers ? i.headers : {};
|
|
2466
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2467
|
-
url:
|
|
2466
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(s, c, t), {
|
|
2467
|
+
url: P(a),
|
|
2468
2468
|
options: c
|
|
2469
2469
|
};
|
|
2470
2470
|
},
|
|
@@ -2476,16 +2476,16 @@ const Zs = function(s) {
|
|
|
2476
2476
|
* @param {*} [options] Override http request option.
|
|
2477
2477
|
* @throws {RequiredError}
|
|
2478
2478
|
*/
|
|
2479
|
-
createPerson: async (e,
|
|
2479
|
+
createPerson: async (e, s, r = {}) => {
|
|
2480
2480
|
y("createPerson", "personFields", e);
|
|
2481
|
-
const n = "/api/persons", o = new URL(n,
|
|
2481
|
+
const n = "/api/persons", o = new URL(n, S);
|
|
2482
2482
|
let a;
|
|
2483
|
-
|
|
2483
|
+
t && (a = t.baseOptions);
|
|
2484
2484
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
2485
|
-
|
|
2485
|
+
s != null && (c["X-RequestID"] = String(s)), c["Content-Type"] = "application/json", g(o, l);
|
|
2486
2486
|
let d = a && a.headers ? a.headers : {};
|
|
2487
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
2488
|
-
url:
|
|
2487
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, t), {
|
|
2488
|
+
url: P(o),
|
|
2489
2489
|
options: i
|
|
2490
2490
|
};
|
|
2491
2491
|
},
|
|
@@ -2498,16 +2498,16 @@ const Zs = function(s) {
|
|
|
2498
2498
|
* @param {*} [options] Override http request option.
|
|
2499
2499
|
* @throws {RequiredError}
|
|
2500
2500
|
*/
|
|
2501
|
-
deleteImageOfPerson: async (e,
|
|
2502
|
-
y("deleteImageOfPerson", "imageId", e), y("deleteImageOfPerson", "personId",
|
|
2503
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(
|
|
2501
|
+
deleteImageOfPerson: async (e, s, r, n = {}) => {
|
|
2502
|
+
y("deleteImageOfPerson", "imageId", e), y("deleteImageOfPerson", "personId", s);
|
|
2503
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(s))), a = new URL(o, S);
|
|
2504
2504
|
let i;
|
|
2505
|
-
|
|
2505
|
+
t && (i = t.baseOptions);
|
|
2506
2506
|
const c = { method: "DELETE", ...i, ...n }, l = {}, d = {};
|
|
2507
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2507
|
+
r != null && (l["X-RequestID"] = String(r)), g(a, d);
|
|
2508
2508
|
let p = i && i.headers ? i.headers : {};
|
|
2509
2509
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2510
|
-
url:
|
|
2510
|
+
url: P(a),
|
|
2511
2511
|
options: c
|
|
2512
2512
|
};
|
|
2513
2513
|
},
|
|
@@ -2519,16 +2519,16 @@ const Zs = function(s) {
|
|
|
2519
2519
|
* @param {*} [options] Override http request option.
|
|
2520
2520
|
* @throws {RequiredError}
|
|
2521
2521
|
*/
|
|
2522
|
-
deletePerson: async (e,
|
|
2522
|
+
deletePerson: async (e, s, r = {}) => {
|
|
2523
2523
|
y("deletePerson", "personId", e);
|
|
2524
|
-
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2524
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, S);
|
|
2525
2525
|
let a;
|
|
2526
|
-
|
|
2526
|
+
t && (a = t.baseOptions);
|
|
2527
2527
|
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
2528
|
-
|
|
2528
|
+
s != null && (c["X-RequestID"] = String(s)), g(o, l);
|
|
2529
2529
|
let d = a && a.headers ? a.headers : {};
|
|
2530
2530
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2531
|
-
url:
|
|
2531
|
+
url: P(o),
|
|
2532
2532
|
options: i
|
|
2533
2533
|
};
|
|
2534
2534
|
},
|
|
@@ -2542,16 +2542,16 @@ const Zs = function(s) {
|
|
|
2542
2542
|
* @param {*} [options] Override http request option.
|
|
2543
2543
|
* @throws {RequiredError}
|
|
2544
2544
|
*/
|
|
2545
|
-
getAllGroupsByPersonId: async (e,
|
|
2545
|
+
getAllGroupsByPersonId: async (e, s, r, n, o = {}) => {
|
|
2546
2546
|
y("getAllGroupsByPersonId", "personId", e);
|
|
2547
|
-
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a,
|
|
2547
|
+
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, S);
|
|
2548
2548
|
let c;
|
|
2549
|
-
|
|
2549
|
+
t && (c = t.baseOptions);
|
|
2550
2550
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2551
|
-
|
|
2551
|
+
s !== void 0 && (p.page = s), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), g(i, p);
|
|
2552
2552
|
let O = c && c.headers ? c.headers : {};
|
|
2553
2553
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2554
|
-
url:
|
|
2554
|
+
url: P(i),
|
|
2555
2555
|
options: l
|
|
2556
2556
|
};
|
|
2557
2557
|
},
|
|
@@ -2565,16 +2565,16 @@ const Zs = function(s) {
|
|
|
2565
2565
|
* @param {*} [options] Override http request option.
|
|
2566
2566
|
* @throws {RequiredError}
|
|
2567
2567
|
*/
|
|
2568
|
-
getAllImagesByPersonId: async (e,
|
|
2568
|
+
getAllImagesByPersonId: async (e, s, r, n, o = {}) => {
|
|
2569
2569
|
y("getAllImagesByPersonId", "personId", e);
|
|
2570
|
-
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a,
|
|
2570
|
+
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, S);
|
|
2571
2571
|
let c;
|
|
2572
|
-
|
|
2572
|
+
t && (c = t.baseOptions);
|
|
2573
2573
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2574
|
-
|
|
2574
|
+
s !== void 0 && (p.page = s), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), g(i, p);
|
|
2575
2575
|
let O = c && c.headers ? c.headers : {};
|
|
2576
2576
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2577
|
-
url:
|
|
2577
|
+
url: P(i),
|
|
2578
2578
|
options: l
|
|
2579
2579
|
};
|
|
2580
2580
|
},
|
|
@@ -2587,16 +2587,16 @@ const Zs = function(s) {
|
|
|
2587
2587
|
* @param {*} [options] Override http request option.
|
|
2588
2588
|
* @throws {RequiredError}
|
|
2589
2589
|
*/
|
|
2590
|
-
getImageOfPerson: async (e,
|
|
2591
|
-
y("getImageOfPerson", "imageId", e), y("getImageOfPerson", "personId",
|
|
2592
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(
|
|
2590
|
+
getImageOfPerson: async (e, s, r, n = {}) => {
|
|
2591
|
+
y("getImageOfPerson", "imageId", e), y("getImageOfPerson", "personId", s);
|
|
2592
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(s))), a = new URL(o, S);
|
|
2593
2593
|
let i;
|
|
2594
|
-
|
|
2594
|
+
t && (i = t.baseOptions);
|
|
2595
2595
|
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2596
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2596
|
+
r != null && (l["X-RequestID"] = String(r)), g(a, d);
|
|
2597
2597
|
let p = i && i.headers ? i.headers : {};
|
|
2598
2598
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2599
|
-
url:
|
|
2599
|
+
url: P(a),
|
|
2600
2600
|
options: c
|
|
2601
2601
|
};
|
|
2602
2602
|
},
|
|
@@ -2608,16 +2608,16 @@ const Zs = function(s) {
|
|
|
2608
2608
|
* @param {*} [options] Override http request option.
|
|
2609
2609
|
* @throws {RequiredError}
|
|
2610
2610
|
*/
|
|
2611
|
-
getPerson: async (e,
|
|
2611
|
+
getPerson: async (e, s, r = {}) => {
|
|
2612
2612
|
y("getPerson", "personId", e);
|
|
2613
|
-
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n,
|
|
2613
|
+
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, S);
|
|
2614
2614
|
let a;
|
|
2615
|
-
|
|
2615
|
+
t && (a = t.baseOptions);
|
|
2616
2616
|
const i = { method: "GET", ...a, ...r }, c = {}, l = {};
|
|
2617
|
-
|
|
2617
|
+
s != null && (c["X-RequestID"] = String(s)), g(o, l);
|
|
2618
2618
|
let d = a && a.headers ? a.headers : {};
|
|
2619
2619
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2620
|
-
url:
|
|
2620
|
+
url: P(o),
|
|
2621
2621
|
options: i
|
|
2622
2622
|
};
|
|
2623
2623
|
},
|
|
@@ -2630,22 +2630,22 @@ const Zs = function(s) {
|
|
|
2630
2630
|
* @param {*} [options] Override http request option.
|
|
2631
2631
|
* @throws {RequiredError}
|
|
2632
2632
|
*/
|
|
2633
|
-
updatePerson: async (e,
|
|
2634
|
-
y("updatePerson", "personId", e), y("updatePerson", "personToUpdateFields",
|
|
2635
|
-
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o,
|
|
2633
|
+
updatePerson: async (e, s, r, n = {}) => {
|
|
2634
|
+
y("updatePerson", "personId", e), y("updatePerson", "personToUpdateFields", s);
|
|
2635
|
+
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, S);
|
|
2636
2636
|
let i;
|
|
2637
|
-
|
|
2637
|
+
t && (i = t.baseOptions);
|
|
2638
2638
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2639
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2639
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", g(a, d);
|
|
2640
2640
|
let p = i && i.headers ? i.headers : {};
|
|
2641
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2642
|
-
url:
|
|
2641
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(s, c, t), {
|
|
2642
|
+
url: P(a),
|
|
2643
2643
|
options: c
|
|
2644
2644
|
};
|
|
2645
2645
|
}
|
|
2646
2646
|
};
|
|
2647
|
-
}, H = function(
|
|
2648
|
-
const e = Zs(
|
|
2647
|
+
}, H = function(t) {
|
|
2648
|
+
const e = Zs(t);
|
|
2649
2649
|
return {
|
|
2650
2650
|
/**
|
|
2651
2651
|
*
|
|
@@ -2656,9 +2656,9 @@ const Zs = function(s) {
|
|
|
2656
2656
|
* @param {*} [options] Override http request option.
|
|
2657
2657
|
* @throws {RequiredError}
|
|
2658
2658
|
*/
|
|
2659
|
-
async addImageToPerson(
|
|
2660
|
-
const a = await e.addImageToPerson(
|
|
2661
|
-
return
|
|
2659
|
+
async addImageToPerson(s, r, n, o) {
|
|
2660
|
+
const a = await e.addImageToPerson(s, r, n, o);
|
|
2661
|
+
return T(a, m, R, t);
|
|
2662
2662
|
},
|
|
2663
2663
|
/**
|
|
2664
2664
|
*
|
|
@@ -2668,9 +2668,9 @@ const Zs = function(s) {
|
|
|
2668
2668
|
* @param {*} [options] Override http request option.
|
|
2669
2669
|
* @throws {RequiredError}
|
|
2670
2670
|
*/
|
|
2671
|
-
async createPerson(
|
|
2672
|
-
const o = await e.createPerson(
|
|
2673
|
-
return
|
|
2671
|
+
async createPerson(s, r, n) {
|
|
2672
|
+
const o = await e.createPerson(s, r, n);
|
|
2673
|
+
return T(o, m, R, t);
|
|
2674
2674
|
},
|
|
2675
2675
|
/**
|
|
2676
2676
|
*
|
|
@@ -2681,9 +2681,9 @@ const Zs = function(s) {
|
|
|
2681
2681
|
* @param {*} [options] Override http request option.
|
|
2682
2682
|
* @throws {RequiredError}
|
|
2683
2683
|
*/
|
|
2684
|
-
async deleteImageOfPerson(
|
|
2685
|
-
const a = await e.deleteImageOfPerson(
|
|
2686
|
-
return
|
|
2684
|
+
async deleteImageOfPerson(s, r, n, o) {
|
|
2685
|
+
const a = await e.deleteImageOfPerson(s, r, n, o);
|
|
2686
|
+
return T(a, m, R, t);
|
|
2687
2687
|
},
|
|
2688
2688
|
/**
|
|
2689
2689
|
*
|
|
@@ -2693,9 +2693,9 @@ const Zs = function(s) {
|
|
|
2693
2693
|
* @param {*} [options] Override http request option.
|
|
2694
2694
|
* @throws {RequiredError}
|
|
2695
2695
|
*/
|
|
2696
|
-
async deletePerson(
|
|
2697
|
-
const o = await e.deletePerson(
|
|
2698
|
-
return
|
|
2696
|
+
async deletePerson(s, r, n) {
|
|
2697
|
+
const o = await e.deletePerson(s, r, n);
|
|
2698
|
+
return T(o, m, R, t);
|
|
2699
2699
|
},
|
|
2700
2700
|
/**
|
|
2701
2701
|
*
|
|
@@ -2707,9 +2707,9 @@ const Zs = function(s) {
|
|
|
2707
2707
|
* @param {*} [options] Override http request option.
|
|
2708
2708
|
* @throws {RequiredError}
|
|
2709
2709
|
*/
|
|
2710
|
-
async getAllGroupsByPersonId(
|
|
2711
|
-
const i = await e.getAllGroupsByPersonId(
|
|
2712
|
-
return
|
|
2710
|
+
async getAllGroupsByPersonId(s, r, n, o, a) {
|
|
2711
|
+
const i = await e.getAllGroupsByPersonId(s, r, n, o, a);
|
|
2712
|
+
return T(i, m, R, t);
|
|
2713
2713
|
},
|
|
2714
2714
|
/**
|
|
2715
2715
|
*
|
|
@@ -2721,9 +2721,9 @@ const Zs = function(s) {
|
|
|
2721
2721
|
* @param {*} [options] Override http request option.
|
|
2722
2722
|
* @throws {RequiredError}
|
|
2723
2723
|
*/
|
|
2724
|
-
async getAllImagesByPersonId(
|
|
2725
|
-
const i = await e.getAllImagesByPersonId(
|
|
2726
|
-
return
|
|
2724
|
+
async getAllImagesByPersonId(s, r, n, o, a) {
|
|
2725
|
+
const i = await e.getAllImagesByPersonId(s, r, n, o, a);
|
|
2726
|
+
return T(i, m, R, t);
|
|
2727
2727
|
},
|
|
2728
2728
|
/**
|
|
2729
2729
|
*
|
|
@@ -2734,9 +2734,9 @@ const Zs = function(s) {
|
|
|
2734
2734
|
* @param {*} [options] Override http request option.
|
|
2735
2735
|
* @throws {RequiredError}
|
|
2736
2736
|
*/
|
|
2737
|
-
async getImageOfPerson(
|
|
2738
|
-
const a = await e.getImageOfPerson(
|
|
2739
|
-
return
|
|
2737
|
+
async getImageOfPerson(s, r, n, o) {
|
|
2738
|
+
const a = await e.getImageOfPerson(s, r, n, o);
|
|
2739
|
+
return T(a, m, R, t);
|
|
2740
2740
|
},
|
|
2741
2741
|
/**
|
|
2742
2742
|
*
|
|
@@ -2746,9 +2746,9 @@ const Zs = function(s) {
|
|
|
2746
2746
|
* @param {*} [options] Override http request option.
|
|
2747
2747
|
* @throws {RequiredError}
|
|
2748
2748
|
*/
|
|
2749
|
-
async getPerson(
|
|
2750
|
-
const o = await e.getPerson(
|
|
2751
|
-
return
|
|
2749
|
+
async getPerson(s, r, n) {
|
|
2750
|
+
const o = await e.getPerson(s, r, n);
|
|
2751
|
+
return T(o, m, R, t);
|
|
2752
2752
|
},
|
|
2753
2753
|
/**
|
|
2754
2754
|
*
|
|
@@ -2759,13 +2759,13 @@ const Zs = function(s) {
|
|
|
2759
2759
|
* @param {*} [options] Override http request option.
|
|
2760
2760
|
* @throws {RequiredError}
|
|
2761
2761
|
*/
|
|
2762
|
-
async updatePerson(
|
|
2763
|
-
const a = await e.updatePerson(
|
|
2764
|
-
return
|
|
2762
|
+
async updatePerson(s, r, n, o) {
|
|
2763
|
+
const a = await e.updatePerson(s, r, n, o);
|
|
2764
|
+
return T(a, m, R, t);
|
|
2765
2765
|
}
|
|
2766
2766
|
};
|
|
2767
2767
|
};
|
|
2768
|
-
let er = class extends
|
|
2768
|
+
let er = class extends q {
|
|
2769
2769
|
/**
|
|
2770
2770
|
*
|
|
2771
2771
|
* @summary Add person image
|
|
@@ -2776,8 +2776,8 @@ let er = class extends z {
|
|
|
2776
2776
|
* @throws {RequiredError}
|
|
2777
2777
|
* @memberof PersonApi
|
|
2778
2778
|
*/
|
|
2779
|
-
addImageToPerson(e,
|
|
2780
|
-
return H(this.configuration).addImageToPerson(e,
|
|
2779
|
+
addImageToPerson(e, s, r, n) {
|
|
2780
|
+
return H(this.configuration).addImageToPerson(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2781
2781
|
}
|
|
2782
2782
|
/**
|
|
2783
2783
|
*
|
|
@@ -2788,8 +2788,8 @@ let er = class extends z {
|
|
|
2788
2788
|
* @throws {RequiredError}
|
|
2789
2789
|
* @memberof PersonApi
|
|
2790
2790
|
*/
|
|
2791
|
-
createPerson(e,
|
|
2792
|
-
return H(this.configuration).createPerson(e,
|
|
2791
|
+
createPerson(e, s, r) {
|
|
2792
|
+
return H(this.configuration).createPerson(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
2793
2793
|
}
|
|
2794
2794
|
/**
|
|
2795
2795
|
*
|
|
@@ -2801,8 +2801,8 @@ let er = class extends z {
|
|
|
2801
2801
|
* @throws {RequiredError}
|
|
2802
2802
|
* @memberof PersonApi
|
|
2803
2803
|
*/
|
|
2804
|
-
deleteImageOfPerson(e,
|
|
2805
|
-
return H(this.configuration).deleteImageOfPerson(e,
|
|
2804
|
+
deleteImageOfPerson(e, s, r, n) {
|
|
2805
|
+
return H(this.configuration).deleteImageOfPerson(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2806
2806
|
}
|
|
2807
2807
|
/**
|
|
2808
2808
|
*
|
|
@@ -2813,8 +2813,8 @@ let er = class extends z {
|
|
|
2813
2813
|
* @throws {RequiredError}
|
|
2814
2814
|
* @memberof PersonApi
|
|
2815
2815
|
*/
|
|
2816
|
-
deletePerson(e,
|
|
2817
|
-
return H(this.configuration).deletePerson(e,
|
|
2816
|
+
deletePerson(e, s, r) {
|
|
2817
|
+
return H(this.configuration).deletePerson(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
2818
2818
|
}
|
|
2819
2819
|
/**
|
|
2820
2820
|
*
|
|
@@ -2827,8 +2827,8 @@ let er = class extends z {
|
|
|
2827
2827
|
* @throws {RequiredError}
|
|
2828
2828
|
* @memberof PersonApi
|
|
2829
2829
|
*/
|
|
2830
|
-
getAllGroupsByPersonId(e,
|
|
2831
|
-
return H(this.configuration).getAllGroupsByPersonId(e,
|
|
2830
|
+
getAllGroupsByPersonId(e, s, r, n, o) {
|
|
2831
|
+
return H(this.configuration).getAllGroupsByPersonId(e, s, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2832
2832
|
}
|
|
2833
2833
|
/**
|
|
2834
2834
|
*
|
|
@@ -2841,8 +2841,8 @@ let er = class extends z {
|
|
|
2841
2841
|
* @throws {RequiredError}
|
|
2842
2842
|
* @memberof PersonApi
|
|
2843
2843
|
*/
|
|
2844
|
-
getAllImagesByPersonId(e,
|
|
2845
|
-
return H(this.configuration).getAllImagesByPersonId(e,
|
|
2844
|
+
getAllImagesByPersonId(e, s, r, n, o) {
|
|
2845
|
+
return H(this.configuration).getAllImagesByPersonId(e, s, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2846
2846
|
}
|
|
2847
2847
|
/**
|
|
2848
2848
|
*
|
|
@@ -2854,8 +2854,8 @@ let er = class extends z {
|
|
|
2854
2854
|
* @throws {RequiredError}
|
|
2855
2855
|
* @memberof PersonApi
|
|
2856
2856
|
*/
|
|
2857
|
-
getImageOfPerson(e,
|
|
2858
|
-
return H(this.configuration).getImageOfPerson(e,
|
|
2857
|
+
getImageOfPerson(e, s, r, n) {
|
|
2858
|
+
return H(this.configuration).getImageOfPerson(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2859
2859
|
}
|
|
2860
2860
|
/**
|
|
2861
2861
|
*
|
|
@@ -2866,8 +2866,8 @@ let er = class extends z {
|
|
|
2866
2866
|
* @throws {RequiredError}
|
|
2867
2867
|
* @memberof PersonApi
|
|
2868
2868
|
*/
|
|
2869
|
-
getPerson(e,
|
|
2870
|
-
return H(this.configuration).getPerson(e,
|
|
2869
|
+
getPerson(e, s, r) {
|
|
2870
|
+
return H(this.configuration).getPerson(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
2871
2871
|
}
|
|
2872
2872
|
/**
|
|
2873
2873
|
*
|
|
@@ -2879,48 +2879,47 @@ let er = class extends z {
|
|
|
2879
2879
|
* @throws {RequiredError}
|
|
2880
2880
|
* @memberof PersonApi
|
|
2881
2881
|
*/
|
|
2882
|
-
updatePerson(e,
|
|
2883
|
-
return H(this.configuration).updatePerson(e,
|
|
2882
|
+
updatePerson(e, s, r, n) {
|
|
2883
|
+
return H(this.configuration).updatePerson(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2884
2884
|
}
|
|
2885
2885
|
};
|
|
2886
2886
|
class tr {
|
|
2887
|
-
constructor(e,
|
|
2888
|
-
this.superClass = new er(e,
|
|
2887
|
+
constructor(e, s, r) {
|
|
2888
|
+
this.superClass = new er(e, s, r);
|
|
2889
2889
|
}
|
|
2890
|
-
async createPerson(e,
|
|
2890
|
+
async createPerson(e, s, r) {
|
|
2891
2891
|
const n = {
|
|
2892
2892
|
...e,
|
|
2893
|
-
metadata: e
|
|
2893
|
+
metadata: e?.metadata ? e.metadata : {}
|
|
2894
2894
|
};
|
|
2895
|
-
return (await this.superClass.createPerson(n,
|
|
2895
|
+
return (await this.superClass.createPerson(n, s, r)).data;
|
|
2896
2896
|
}
|
|
2897
|
-
async addImageToPerson(e,
|
|
2898
|
-
|
|
2899
|
-
return (a = t == null ? void 0 : t.image) != null && a.content && typeof t.image.content != "string" && (t.image.content = ie(t.image.content)), (await this.superClass.addImageToPerson(e, t, r, n)).data;
|
|
2897
|
+
async addImageToPerson(e, s, r, n) {
|
|
2898
|
+
return s?.image?.content && typeof s.image.content != "string" && (s.image.content = ie(s.image.content)), (await this.superClass.addImageToPerson(e, s, r, n)).data;
|
|
2900
2899
|
}
|
|
2901
|
-
async deleteImageOfPerson(e,
|
|
2902
|
-
await this.superClass.deleteImageOfPerson(e,
|
|
2900
|
+
async deleteImageOfPerson(e, s, r, n) {
|
|
2901
|
+
await this.superClass.deleteImageOfPerson(e, s, r, n);
|
|
2903
2902
|
}
|
|
2904
|
-
async deletePerson(e,
|
|
2905
|
-
await this.superClass.deletePerson(e,
|
|
2903
|
+
async deletePerson(e, s, r) {
|
|
2904
|
+
await this.superClass.deletePerson(e, s, r);
|
|
2906
2905
|
}
|
|
2907
|
-
async getAllGroupsByPersonId(e,
|
|
2908
|
-
return (await this.superClass.getAllGroupsByPersonId(r, e,
|
|
2906
|
+
async getAllGroupsByPersonId(e, s, r, n, o) {
|
|
2907
|
+
return (await this.superClass.getAllGroupsByPersonId(r, e, s, n, o)).data;
|
|
2909
2908
|
}
|
|
2910
|
-
async getAllImagesByPersonId(e,
|
|
2911
|
-
return (await this.superClass.getAllImagesByPersonId(r, e,
|
|
2909
|
+
async getAllImagesByPersonId(e, s, r, n, o) {
|
|
2910
|
+
return (await this.superClass.getAllImagesByPersonId(r, e, s, n, o)).data;
|
|
2912
2911
|
}
|
|
2913
|
-
async getImageOfPerson(e,
|
|
2914
|
-
return (await this.superClass.getImageOfPerson(e,
|
|
2912
|
+
async getImageOfPerson(e, s, r, n) {
|
|
2913
|
+
return (await this.superClass.getImageOfPerson(e, s, r, n)).data;
|
|
2915
2914
|
}
|
|
2916
|
-
async getPerson(e,
|
|
2917
|
-
return (await this.superClass.getPerson(e,
|
|
2915
|
+
async getPerson(e, s, r) {
|
|
2916
|
+
return (await this.superClass.getPerson(e, s, r)).data;
|
|
2918
2917
|
}
|
|
2919
|
-
async updatePerson(e,
|
|
2920
|
-
await this.superClass.updatePerson(e,
|
|
2918
|
+
async updatePerson(e, s, r, n) {
|
|
2919
|
+
await this.superClass.updatePerson(e, s, r, n);
|
|
2921
2920
|
}
|
|
2922
2921
|
}
|
|
2923
|
-
const sr = function(
|
|
2922
|
+
const sr = function(t) {
|
|
2924
2923
|
return {
|
|
2925
2924
|
/**
|
|
2926
2925
|
*
|
|
@@ -2931,22 +2930,22 @@ const sr = function(s) {
|
|
|
2931
2930
|
* @param {*} [options] Override http request option.
|
|
2932
2931
|
* @throws {RequiredError}
|
|
2933
2932
|
*/
|
|
2934
|
-
search: async (e,
|
|
2933
|
+
search: async (e, s, r, n = {}) => {
|
|
2935
2934
|
y("search", "searchRequest", e);
|
|
2936
|
-
const o = "/api/search", a = new URL(o,
|
|
2935
|
+
const o = "/api/search", a = new URL(o, S);
|
|
2937
2936
|
let i;
|
|
2938
|
-
|
|
2937
|
+
t && (i = t.baseOptions);
|
|
2939
2938
|
const c = { method: "POST", ...i, ...n }, l = {}, d = {};
|
|
2940
|
-
r !== void 0 && (d.withImages = r),
|
|
2939
|
+
r !== void 0 && (d.withImages = r), s != null && (l["X-RequestID"] = String(s)), l["Content-Type"] = "application/json", g(a, d);
|
|
2941
2940
|
let p = i && i.headers ? i.headers : {};
|
|
2942
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(e, c,
|
|
2943
|
-
url:
|
|
2941
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(e, c, t), {
|
|
2942
|
+
url: P(a),
|
|
2944
2943
|
options: c
|
|
2945
2944
|
};
|
|
2946
2945
|
}
|
|
2947
2946
|
};
|
|
2948
|
-
}, rr = function(
|
|
2949
|
-
const e = sr(
|
|
2947
|
+
}, rr = function(t) {
|
|
2948
|
+
const e = sr(t);
|
|
2950
2949
|
return {
|
|
2951
2950
|
/**
|
|
2952
2951
|
*
|
|
@@ -2957,13 +2956,13 @@ const sr = function(s) {
|
|
|
2957
2956
|
* @param {*} [options] Override http request option.
|
|
2958
2957
|
* @throws {RequiredError}
|
|
2959
2958
|
*/
|
|
2960
|
-
async search(
|
|
2961
|
-
const a = await e.search(
|
|
2962
|
-
return
|
|
2959
|
+
async search(s, r, n, o) {
|
|
2960
|
+
const a = await e.search(s, r, n, o);
|
|
2961
|
+
return T(a, m, R, t);
|
|
2963
2962
|
}
|
|
2964
2963
|
};
|
|
2965
2964
|
};
|
|
2966
|
-
let nr = class extends
|
|
2965
|
+
let nr = class extends q {
|
|
2967
2966
|
/**
|
|
2968
2967
|
*
|
|
2969
2968
|
* @summary Find person by image in groups
|
|
@@ -2974,20 +2973,19 @@ let nr = class extends z {
|
|
|
2974
2973
|
* @throws {RequiredError}
|
|
2975
2974
|
* @memberof SearchApi
|
|
2976
2975
|
*/
|
|
2977
|
-
search(e,
|
|
2978
|
-
return rr(this.configuration).search(e,
|
|
2976
|
+
search(e, s, r, n) {
|
|
2977
|
+
return rr(this.configuration).search(e, s, r, n).then((o) => o(this.axios, this.basePath));
|
|
2979
2978
|
}
|
|
2980
2979
|
};
|
|
2981
2980
|
class or {
|
|
2982
|
-
constructor(e,
|
|
2983
|
-
this.superClass = new nr(e,
|
|
2981
|
+
constructor(e, s, r) {
|
|
2982
|
+
this.superClass = new nr(e, s, r);
|
|
2984
2983
|
}
|
|
2985
|
-
async search(e,
|
|
2986
|
-
|
|
2987
|
-
return (a = e == null ? void 0 : e.image) != null && a.content && typeof e.image.content != "string" && (e.image.content = ie(e.image.content)), (await this.superClass.search(e, t, r, n)).data;
|
|
2984
|
+
async search(e, s, r, n) {
|
|
2985
|
+
return e?.image?.content && typeof e.image.content != "string" && (e.image.content = ie(e.image.content)), (await this.superClass.search(e, s, r, n)).data;
|
|
2988
2986
|
}
|
|
2989
2987
|
}
|
|
2990
|
-
const ar = function(
|
|
2988
|
+
const ar = function(t) {
|
|
2991
2989
|
return {
|
|
2992
2990
|
/**
|
|
2993
2991
|
*
|
|
@@ -2996,21 +2994,21 @@ const ar = function(s) {
|
|
|
2996
2994
|
* @param {*} [options] Override http request option.
|
|
2997
2995
|
* @throws {RequiredError}
|
|
2998
2996
|
*/
|
|
2999
|
-
readiness: async (e,
|
|
3000
|
-
const r = "/api/readiness", n = new URL(r,
|
|
2997
|
+
readiness: async (e, s = {}) => {
|
|
2998
|
+
const r = "/api/readiness", n = new URL(r, S);
|
|
3001
2999
|
let o;
|
|
3002
|
-
|
|
3003
|
-
const a = { method: "GET", ...o, ...
|
|
3004
|
-
e != null && (i["X-RequestID"] = String(e)),
|
|
3000
|
+
t && (o = t.baseOptions);
|
|
3001
|
+
const a = { method: "GET", ...o, ...s }, i = {}, c = {};
|
|
3002
|
+
e != null && (i["X-RequestID"] = String(e)), g(n, c);
|
|
3005
3003
|
let l = o && o.headers ? o.headers : {};
|
|
3006
|
-
return a.headers = { ...i, ...l, ...
|
|
3007
|
-
url:
|
|
3004
|
+
return a.headers = { ...i, ...l, ...s.headers }, {
|
|
3005
|
+
url: P(n),
|
|
3008
3006
|
options: a
|
|
3009
3007
|
};
|
|
3010
3008
|
}
|
|
3011
3009
|
};
|
|
3012
|
-
}, ir = function(
|
|
3013
|
-
const e = ar(
|
|
3010
|
+
}, ir = function(t) {
|
|
3011
|
+
const e = ar(t);
|
|
3014
3012
|
return {
|
|
3015
3013
|
/**
|
|
3016
3014
|
*
|
|
@@ -3019,13 +3017,13 @@ const ar = function(s) {
|
|
|
3019
3017
|
* @param {*} [options] Override http request option.
|
|
3020
3018
|
* @throws {RequiredError}
|
|
3021
3019
|
*/
|
|
3022
|
-
async readiness(
|
|
3023
|
-
const n = await e.readiness(
|
|
3024
|
-
return
|
|
3020
|
+
async readiness(s, r) {
|
|
3021
|
+
const n = await e.readiness(s, r);
|
|
3022
|
+
return T(n, m, R, t);
|
|
3025
3023
|
}
|
|
3026
3024
|
};
|
|
3027
3025
|
};
|
|
3028
|
-
let cr = class extends
|
|
3026
|
+
let cr = class extends q {
|
|
3029
3027
|
/**
|
|
3030
3028
|
*
|
|
3031
3029
|
* @summary Checking the license status
|
|
@@ -3034,19 +3032,19 @@ let cr = class extends z {
|
|
|
3034
3032
|
* @throws {RequiredError}
|
|
3035
3033
|
* @memberof DiagnosticsApi
|
|
3036
3034
|
*/
|
|
3037
|
-
readiness(e,
|
|
3038
|
-
return ir(this.configuration).readiness(e,
|
|
3035
|
+
readiness(e, s) {
|
|
3036
|
+
return ir(this.configuration).readiness(e, s).then((r) => r(this.axios, this.basePath));
|
|
3039
3037
|
}
|
|
3040
3038
|
};
|
|
3041
3039
|
class lr {
|
|
3042
|
-
constructor(e,
|
|
3043
|
-
this.superClass = new cr(e,
|
|
3040
|
+
constructor(e, s, r) {
|
|
3041
|
+
this.superClass = new cr(e, s, r);
|
|
3044
3042
|
}
|
|
3045
|
-
async readiness(e,
|
|
3046
|
-
return (await this.superClass.readiness(e,
|
|
3043
|
+
async readiness(e, s) {
|
|
3044
|
+
return (await this.superClass.readiness(e, s)).data;
|
|
3047
3045
|
}
|
|
3048
3046
|
}
|
|
3049
|
-
const ur = function(
|
|
3047
|
+
const ur = function(t) {
|
|
3050
3048
|
return {
|
|
3051
3049
|
/**
|
|
3052
3050
|
* This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
|
|
@@ -3056,16 +3054,16 @@ const ur = function(s) {
|
|
|
3056
3054
|
* @param {*} [options] Override http request option.
|
|
3057
3055
|
* @throws {RequiredError}
|
|
3058
3056
|
*/
|
|
3059
|
-
deleteLivenessTransaction: async (e,
|
|
3060
|
-
y("deleteLivenessTransaction", "transactionId", e), y("deleteLivenessTransaction", "tag",
|
|
3061
|
-
const n = "/api/v2/liveness", o = new URL(n,
|
|
3057
|
+
deleteLivenessTransaction: async (e, s, r = {}) => {
|
|
3058
|
+
y("deleteLivenessTransaction", "transactionId", e), y("deleteLivenessTransaction", "tag", s);
|
|
3059
|
+
const n = "/api/v2/liveness", o = new URL(n, S);
|
|
3062
3060
|
let a;
|
|
3063
|
-
|
|
3061
|
+
t && (a = t.baseOptions);
|
|
3064
3062
|
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
3065
|
-
e !== void 0 && (l.transactionId = e),
|
|
3063
|
+
e !== void 0 && (l.transactionId = e), s !== void 0 && (l.tag = s), g(o, l);
|
|
3066
3064
|
let d = a && a.headers ? a.headers : {};
|
|
3067
3065
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
3068
|
-
url:
|
|
3066
|
+
url: P(o),
|
|
3069
3067
|
options: i
|
|
3070
3068
|
};
|
|
3071
3069
|
},
|
|
@@ -3076,22 +3074,22 @@ const ur = function(s) {
|
|
|
3076
3074
|
* @param {*} [options] Override http request option.
|
|
3077
3075
|
* @throws {RequiredError}
|
|
3078
3076
|
*/
|
|
3079
|
-
getLivenessTransactionInfo: async (e,
|
|
3077
|
+
getLivenessTransactionInfo: async (e, s = {}) => {
|
|
3080
3078
|
y("getLivenessTransactionInfo", "transactionId", e);
|
|
3081
|
-
const r = "/api/v2/liveness", n = new URL(r,
|
|
3079
|
+
const r = "/api/v2/liveness", n = new URL(r, S);
|
|
3082
3080
|
let o;
|
|
3083
|
-
|
|
3084
|
-
const a = { method: "GET", ...o, ...
|
|
3085
|
-
e !== void 0 && (c.transactionId = e),
|
|
3081
|
+
t && (o = t.baseOptions);
|
|
3082
|
+
const a = { method: "GET", ...o, ...s }, i = {}, c = {};
|
|
3083
|
+
e !== void 0 && (c.transactionId = e), g(n, c);
|
|
3086
3084
|
let l = o && o.headers ? o.headers : {};
|
|
3087
|
-
return a.headers = { ...i, ...l, ...
|
|
3088
|
-
url:
|
|
3085
|
+
return a.headers = { ...i, ...l, ...s.headers }, {
|
|
3086
|
+
url: P(n),
|
|
3089
3087
|
options: a
|
|
3090
3088
|
};
|
|
3091
3089
|
}
|
|
3092
3090
|
};
|
|
3093
|
-
}, je = function(
|
|
3094
|
-
const e = ur(
|
|
3091
|
+
}, je = function(t) {
|
|
3092
|
+
const e = ur(t);
|
|
3095
3093
|
return {
|
|
3096
3094
|
/**
|
|
3097
3095
|
* This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
|
|
@@ -3101,9 +3099,9 @@ const ur = function(s) {
|
|
|
3101
3099
|
* @param {*} [options] Override http request option.
|
|
3102
3100
|
* @throws {RequiredError}
|
|
3103
3101
|
*/
|
|
3104
|
-
async deleteLivenessTransaction(
|
|
3105
|
-
const o = await e.deleteLivenessTransaction(
|
|
3106
|
-
return
|
|
3102
|
+
async deleteLivenessTransaction(s, r, n) {
|
|
3103
|
+
const o = await e.deleteLivenessTransaction(s, r, n);
|
|
3104
|
+
return T(o, m, R, t);
|
|
3107
3105
|
},
|
|
3108
3106
|
/**
|
|
3109
3107
|
* To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to. When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127. The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person\'s selfie and video of the liveness detection session are stored on the backend at: `faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId` By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn\'t meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details. To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
|
|
@@ -3112,13 +3110,13 @@ const ur = function(s) {
|
|
|
3112
3110
|
* @param {*} [options] Override http request option.
|
|
3113
3111
|
* @throws {RequiredError}
|
|
3114
3112
|
*/
|
|
3115
|
-
async getLivenessTransactionInfo(
|
|
3116
|
-
const n = await e.getLivenessTransactionInfo(
|
|
3117
|
-
return
|
|
3113
|
+
async getLivenessTransactionInfo(s, r) {
|
|
3114
|
+
const n = await e.getLivenessTransactionInfo(s, r);
|
|
3115
|
+
return T(n, m, R, t);
|
|
3118
3116
|
}
|
|
3119
3117
|
};
|
|
3120
3118
|
};
|
|
3121
|
-
let dr = class extends
|
|
3119
|
+
let dr = class extends q {
|
|
3122
3120
|
/**
|
|
3123
3121
|
* This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
|
|
3124
3122
|
* @summary delete liveness transaction
|
|
@@ -3128,8 +3126,8 @@ let dr = class extends z {
|
|
|
3128
3126
|
* @throws {RequiredError}
|
|
3129
3127
|
* @memberof Liveness20Api
|
|
3130
3128
|
*/
|
|
3131
|
-
deleteLivenessTransaction(e,
|
|
3132
|
-
return je(this.configuration).deleteLivenessTransaction(e,
|
|
3129
|
+
deleteLivenessTransaction(e, s, r) {
|
|
3130
|
+
return je(this.configuration).deleteLivenessTransaction(e, s, r).then((n) => n(this.axios, this.basePath));
|
|
3133
3131
|
}
|
|
3134
3132
|
/**
|
|
3135
3133
|
* To verify the presence of a real person in front of a camera, use the GET `/api/v2/liveness` endpoint. When starting, you can specify `tag` which all attempts to read liveness will be bound to. If left unspecified, the application automatically generates one. The calling application returns `tag` and `transactionId`. One session may include many transactions, and from a transaction ID it is clear which session it belongs to. When specifying `tag`, note that only Latin uppercase and lowercase letters, digits, and symbols `-` and `_` are allowed. The maximum supported number of characters is 127. The metadata (device model, screen data, frame size, app ID and version, OS version, platform, SDK version, etc.), a person\'s selfie and video of the liveness detection session are stored on the backend at: `faceapi-session/year={year}/month={month}/day={day}/hour={hour}/minute={minute}/{tag}/transactionId` By default, liveness checks operate with eventual consistency. This means that when you submit a request and receive a response, the associated data (like the selfie and session video) may be saved after the response is sent. If this doesn\'t meet your requirements, you can switch to strong consistency; refer to the [Architecture page](https://docs.regulaforensics.com/develop/face-sdk/overview/architecture/#consistency-models) for details. To access the liveness transaction data, use GET `/api/v2/liveness?transactionId={transactionId}`.
|
|
@@ -3139,24 +3137,24 @@ let dr = class extends z {
|
|
|
3139
3137
|
* @throws {RequiredError}
|
|
3140
3138
|
* @memberof Liveness20Api
|
|
3141
3139
|
*/
|
|
3142
|
-
getLivenessTransactionInfo(e,
|
|
3143
|
-
return je(this.configuration).getLivenessTransactionInfo(e,
|
|
3140
|
+
getLivenessTransactionInfo(e, s) {
|
|
3141
|
+
return je(this.configuration).getLivenessTransactionInfo(e, s).then((r) => r(this.axios, this.basePath));
|
|
3144
3142
|
}
|
|
3145
3143
|
};
|
|
3146
3144
|
class pr {
|
|
3147
|
-
constructor(e,
|
|
3148
|
-
this.superClass = new dr(e,
|
|
3145
|
+
constructor(e, s, r) {
|
|
3146
|
+
this.superClass = new dr(e, s, r);
|
|
3149
3147
|
}
|
|
3150
|
-
async getLivenessTransactionInfo(e,
|
|
3151
|
-
return (await this.superClass.getLivenessTransactionInfo(e,
|
|
3148
|
+
async getLivenessTransactionInfo(e, s) {
|
|
3149
|
+
return (await this.superClass.getLivenessTransactionInfo(e, s)).data;
|
|
3152
3150
|
}
|
|
3153
3151
|
}
|
|
3154
3152
|
class Kr {
|
|
3155
|
-
constructor(e,
|
|
3156
|
-
this.basePath =
|
|
3153
|
+
constructor(e, s = R, r = m) {
|
|
3154
|
+
this.basePath = s, this.axios = r, this.matchApi = new Ks(e, s, r), this.groupApi = new Ys(e, s, r), this.personApi = new tr(e, s, r), this.searchApi = new or(e, s, r), this.diagnosticsApi = new lr(e, s, r), this.livenessApi = new pr(e, s, r);
|
|
3157
3155
|
}
|
|
3158
3156
|
}
|
|
3159
|
-
const hr = function(
|
|
3157
|
+
const hr = function(t) {
|
|
3160
3158
|
return {
|
|
3161
3159
|
/**
|
|
3162
3160
|
* The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
|
|
@@ -3165,15 +3163,15 @@ const hr = function(s) {
|
|
|
3165
3163
|
* @param {*} [options] Override http request option.
|
|
3166
3164
|
* @throws {RequiredError}
|
|
3167
3165
|
*/
|
|
3168
|
-
healthz: async (e,
|
|
3169
|
-
const r = "/api/healthz", n = new URL(r,
|
|
3166
|
+
healthz: async (e, s = {}) => {
|
|
3167
|
+
const r = "/api/healthz", n = new URL(r, S);
|
|
3170
3168
|
let o;
|
|
3171
|
-
|
|
3172
|
-
const a = { method: "GET", ...o, ...
|
|
3173
|
-
e != null && (i["X-RequestID"] = String(e)),
|
|
3169
|
+
t && (o = t.baseOptions);
|
|
3170
|
+
const a = { method: "GET", ...o, ...s }, i = {}, c = {};
|
|
3171
|
+
e != null && (i["X-RequestID"] = String(e)), g(n, c);
|
|
3174
3172
|
let l = o && o.headers ? o.headers : {};
|
|
3175
|
-
return a.headers = { ...i, ...l, ...
|
|
3176
|
-
url:
|
|
3173
|
+
return a.headers = { ...i, ...l, ...s.headers }, {
|
|
3174
|
+
url: P(n),
|
|
3177
3175
|
options: a
|
|
3178
3176
|
};
|
|
3179
3177
|
},
|
|
@@ -3184,21 +3182,21 @@ const hr = function(s) {
|
|
|
3184
3182
|
* @param {*} [options] Override http request option.
|
|
3185
3183
|
* @throws {RequiredError}
|
|
3186
3184
|
*/
|
|
3187
|
-
readyz: async (e,
|
|
3188
|
-
const r = "/api/readyz", n = new URL(r,
|
|
3185
|
+
readyz: async (e, s = {}) => {
|
|
3186
|
+
const r = "/api/readyz", n = new URL(r, S);
|
|
3189
3187
|
let o;
|
|
3190
|
-
|
|
3191
|
-
const a = { method: "GET", ...o, ...
|
|
3192
|
-
e != null && (i["X-RequestID"] = String(e)),
|
|
3188
|
+
t && (o = t.baseOptions);
|
|
3189
|
+
const a = { method: "GET", ...o, ...s }, i = {}, c = {};
|
|
3190
|
+
e != null && (i["X-RequestID"] = String(e)), g(n, c);
|
|
3193
3191
|
let l = o && o.headers ? o.headers : {};
|
|
3194
|
-
return a.headers = { ...i, ...l, ...
|
|
3195
|
-
url:
|
|
3192
|
+
return a.headers = { ...i, ...l, ...s.headers }, {
|
|
3193
|
+
url: P(n),
|
|
3196
3194
|
options: a
|
|
3197
3195
|
};
|
|
3198
3196
|
}
|
|
3199
3197
|
};
|
|
3200
|
-
}, ke = function(
|
|
3201
|
-
const e = hr(
|
|
3198
|
+
}, ke = function(t) {
|
|
3199
|
+
const e = hr(t);
|
|
3202
3200
|
return {
|
|
3203
3201
|
/**
|
|
3204
3202
|
* The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
|
|
@@ -3207,9 +3205,9 @@ const hr = function(s) {
|
|
|
3207
3205
|
* @param {*} [options] Override http request option.
|
|
3208
3206
|
* @throws {RequiredError}
|
|
3209
3207
|
*/
|
|
3210
|
-
async healthz(
|
|
3211
|
-
const n = await e.healthz(
|
|
3212
|
-
return
|
|
3208
|
+
async healthz(s, r) {
|
|
3209
|
+
const n = await e.healthz(s, r);
|
|
3210
|
+
return T(n, m, R, t);
|
|
3213
3211
|
},
|
|
3214
3212
|
/**
|
|
3215
3213
|
* The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
|
|
@@ -3218,13 +3216,13 @@ const hr = function(s) {
|
|
|
3218
3216
|
* @param {*} [options] Override http request option.
|
|
3219
3217
|
* @throws {RequiredError}
|
|
3220
3218
|
*/
|
|
3221
|
-
async readyz(
|
|
3222
|
-
const n = await e.readyz(
|
|
3223
|
-
return
|
|
3219
|
+
async readyz(s, r) {
|
|
3220
|
+
const n = await e.readyz(s, r);
|
|
3221
|
+
return T(n, m, R, t);
|
|
3224
3222
|
}
|
|
3225
3223
|
};
|
|
3226
3224
|
};
|
|
3227
|
-
let fr = class extends
|
|
3225
|
+
let fr = class extends q {
|
|
3228
3226
|
/**
|
|
3229
3227
|
* The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
|
|
3230
3228
|
* @summary Server healthcheck
|
|
@@ -3233,8 +3231,8 @@ let fr = class extends z {
|
|
|
3233
3231
|
* @throws {RequiredError}
|
|
3234
3232
|
* @memberof HealthcheckApi
|
|
3235
3233
|
*/
|
|
3236
|
-
healthz(e,
|
|
3237
|
-
return ke(this.configuration).healthz(e,
|
|
3234
|
+
healthz(e, s) {
|
|
3235
|
+
return ke(this.configuration).healthz(e, s).then((r) => r(this.axios, this.basePath));
|
|
3238
3236
|
}
|
|
3239
3237
|
/**
|
|
3240
3238
|
* The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
|
|
@@ -3244,19 +3242,19 @@ let fr = class extends z {
|
|
|
3244
3242
|
* @throws {RequiredError}
|
|
3245
3243
|
* @memberof HealthcheckApi
|
|
3246
3244
|
*/
|
|
3247
|
-
readyz(e,
|
|
3248
|
-
return ke(this.configuration).readyz(e,
|
|
3245
|
+
readyz(e, s) {
|
|
3246
|
+
return ke(this.configuration).readyz(e, s).then((r) => r(this.axios, this.basePath));
|
|
3249
3247
|
}
|
|
3250
3248
|
};
|
|
3251
3249
|
class Jr {
|
|
3252
|
-
constructor(e,
|
|
3253
|
-
this.superClass = new fr(e,
|
|
3250
|
+
constructor(e, s, r) {
|
|
3251
|
+
this.superClass = new fr(e, s, r);
|
|
3254
3252
|
}
|
|
3255
|
-
async healthz(e,
|
|
3256
|
-
return (await this.superClass.healthz(e,
|
|
3253
|
+
async healthz(e, s) {
|
|
3254
|
+
return (await this.superClass.healthz(e, s)).data;
|
|
3257
3255
|
}
|
|
3258
|
-
async readyz(e,
|
|
3259
|
-
return (await this.superClass.readyz(e,
|
|
3256
|
+
async readyz(e, s) {
|
|
3257
|
+
return (await this.superClass.readyz(e, s)).data;
|
|
3260
3258
|
}
|
|
3261
3259
|
}
|
|
3262
3260
|
class Yr {
|
|
@@ -3274,8 +3272,8 @@ class Yr {
|
|
|
3274
3272
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3275
3273
|
*/
|
|
3276
3274
|
isJsonMime(e) {
|
|
3277
|
-
const
|
|
3278
|
-
return e !== null && (
|
|
3275
|
+
const s = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3276
|
+
return e !== null && (s.test(e) || e.toLowerCase() === "application/json-patch+json");
|
|
3279
3277
|
}
|
|
3280
3278
|
}
|
|
3281
3279
|
export {
|