@regulaforensics/facesdk-webclient 7.2.313-nightly → 7.2.315-nightly
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.d.ts +252 -152
- package/dist/index.js +1164 -1115
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,243 +1,243 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ve(s, e) {
|
|
2
2
|
return function() {
|
|
3
|
-
return
|
|
3
|
+
return s.apply(e, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString:
|
|
7
|
-
const
|
|
8
|
-
return t
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
-
function X(
|
|
11
|
-
return
|
|
6
|
+
const { toString: ft } = Object.prototype, { getPrototypeOf: ge } = Object, { iterator: ce, toStringTag: ze } = Symbol, le = /* @__PURE__ */ ((s) => (e) => {
|
|
7
|
+
const t = ft.call(e);
|
|
8
|
+
return s[t] || (s[t] = t.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), F = (s) => (s = s.toLowerCase(), (e) => le(e) === s), ue = (s) => (e) => typeof e === s, { isArray: $ } = Array, K = ue("undefined");
|
|
10
|
+
function X(s) {
|
|
11
|
+
return s !== null && !K(s) && s.constructor !== null && !K(s.constructor) && N(s.constructor.isBuffer) && s.constructor.isBuffer(s);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const qe = F("ArrayBuffer");
|
|
14
|
+
function mt(s) {
|
|
15
15
|
let e;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(s) : e = s && s.buffer && qe(s.buffer), e;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
if (le(
|
|
18
|
+
const Et = ue("string"), N = ue("function"), $e = ue("number"), J = (s) => s !== null && typeof s == "object", At = (s) => s === !0 || s === !1, se = (s) => {
|
|
19
|
+
if (le(s) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const e =
|
|
22
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
23
|
-
},
|
|
24
|
-
if (!J(
|
|
21
|
+
const e = ge(s);
|
|
22
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ze in s) && !(ce in s);
|
|
23
|
+
}, Ot = (s) => {
|
|
24
|
+
if (!J(s) || X(s))
|
|
25
25
|
return !1;
|
|
26
26
|
try {
|
|
27
|
-
return Object.keys(
|
|
27
|
+
return Object.keys(s).length === 0 && Object.getPrototypeOf(s) === Object.prototype;
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
},
|
|
31
|
+
}, yt = F("Date"), St = F("File"), Rt = F("Blob"), Pt = F("FileList"), Tt = (s) => J(s) && N(s.pipe), gt = (s) => {
|
|
32
32
|
let e;
|
|
33
|
-
return
|
|
34
|
-
e === "object" && N(
|
|
35
|
-
},
|
|
36
|
-
function Y(
|
|
37
|
-
if (
|
|
33
|
+
return s && (typeof FormData == "function" && s instanceof FormData || N(s.append) && ((e = le(s)) === "formdata" || // detect form-data instance
|
|
34
|
+
e === "object" && N(s.toString) && s.toString() === "[object FormData]"));
|
|
35
|
+
}, Ct = F("URLSearchParams"), [bt, _t, wt, It] = ["ReadableStream", "Request", "Response", "Headers"].map(F), Lt = (s) => s.trim ? s.trim() : s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
|
+
function Y(s, e, { allOwnKeys: t = !1 } = {}) {
|
|
37
|
+
if (s === null || typeof s > "u")
|
|
38
38
|
return;
|
|
39
|
-
let
|
|
40
|
-
if (typeof
|
|
41
|
-
for (
|
|
42
|
-
e.call(null,
|
|
39
|
+
let r, n;
|
|
40
|
+
if (typeof s != "object" && (s = [s]), $(s))
|
|
41
|
+
for (r = 0, n = s.length; r < n; r++)
|
|
42
|
+
e.call(null, s[r], r, s);
|
|
43
43
|
else {
|
|
44
|
-
if (X(
|
|
44
|
+
if (X(s))
|
|
45
45
|
return;
|
|
46
|
-
const o =
|
|
46
|
+
const o = t ? Object.getOwnPropertyNames(s) : Object.keys(s), a = o.length;
|
|
47
47
|
let i;
|
|
48
|
-
for (
|
|
49
|
-
i = o[
|
|
48
|
+
for (r = 0; r < a; r++)
|
|
49
|
+
i = o[r], e.call(null, s[i], i, s);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
if (X(
|
|
52
|
+
function Qe(s, e) {
|
|
53
|
+
if (X(s))
|
|
54
54
|
return null;
|
|
55
55
|
e = e.toLowerCase();
|
|
56
|
-
const
|
|
57
|
-
let
|
|
58
|
-
for (;
|
|
59
|
-
if (n = r
|
|
56
|
+
const t = Object.keys(s);
|
|
57
|
+
let r = t.length, n;
|
|
58
|
+
for (; r-- > 0; )
|
|
59
|
+
if (n = t[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,
|
|
63
|
+
const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, We = (s) => !K(s) && s !== j;
|
|
64
64
|
function Oe() {
|
|
65
|
-
const { caseless:
|
|
66
|
-
const o =
|
|
67
|
-
|
|
65
|
+
const { caseless: s } = We(this) && this || {}, e = {}, t = (r, n) => {
|
|
66
|
+
const o = s && Qe(e, n) || n;
|
|
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
|
-
for (let
|
|
70
|
-
arguments[
|
|
69
|
+
for (let r = 0, n = arguments.length; r < n; r++)
|
|
70
|
+
arguments[r] && Y(arguments[r], t);
|
|
71
71
|
return e;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
}, { allOwnKeys:
|
|
76
|
-
|
|
73
|
+
const Nt = (s, e, t, { allOwnKeys: r } = {}) => (Y(e, (n, o) => {
|
|
74
|
+
t && N(n) ? s[o] = ve(n, t) : s[o] = n;
|
|
75
|
+
}, { allOwnKeys: r }), s), Ut = (s) => (s.charCodeAt(0) === 65279 && (s = s.slice(1)), s), Ft = (s, e, t, r) => {
|
|
76
|
+
s.prototype = Object.create(e.prototype, r), s.prototype.constructor = s, Object.defineProperty(s, "super", {
|
|
77
77
|
value: e.prototype
|
|
78
|
-
}),
|
|
79
|
-
},
|
|
78
|
+
}), t && Object.assign(s.prototype, t);
|
|
79
|
+
}, Vt = (s, e, t, r) => {
|
|
80
80
|
let n, o, a;
|
|
81
81
|
const i = {};
|
|
82
|
-
if (e = e || {},
|
|
82
|
+
if (e = e || {}, s == null) return e;
|
|
83
83
|
do {
|
|
84
|
-
for (n = Object.getOwnPropertyNames(
|
|
85
|
-
a = n[o], (!
|
|
86
|
-
|
|
87
|
-
} while (
|
|
84
|
+
for (n = Object.getOwnPropertyNames(s), o = n.length; o-- > 0; )
|
|
85
|
+
a = n[o], (!r || r(a, s, e)) && !i[a] && (e[a] = s[a], i[a] = !0);
|
|
86
|
+
s = t !== !1 && ge(s);
|
|
87
|
+
} while (s && (!t || t(s, e)) && s !== Object.prototype);
|
|
88
88
|
return e;
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
return
|
|
93
|
-
},
|
|
94
|
-
if (!
|
|
95
|
-
if (
|
|
96
|
-
let e =
|
|
89
|
+
}, Dt = (s, e, t) => {
|
|
90
|
+
s = String(s), (t === void 0 || t > s.length) && (t = s.length), t -= e.length;
|
|
91
|
+
const r = s.indexOf(e, t);
|
|
92
|
+
return r !== -1 && r === t;
|
|
93
|
+
}, Gt = (s) => {
|
|
94
|
+
if (!s) return null;
|
|
95
|
+
if ($(s)) return s;
|
|
96
|
+
let e = s.length;
|
|
97
97
|
if (!$e(e)) return null;
|
|
98
|
-
const
|
|
98
|
+
const t = new Array(e);
|
|
99
99
|
for (; e-- > 0; )
|
|
100
|
-
|
|
101
|
-
return
|
|
102
|
-
},
|
|
103
|
-
const
|
|
100
|
+
t[e] = s[e];
|
|
101
|
+
return t;
|
|
102
|
+
}, Ht = /* @__PURE__ */ ((s) => (e) => s && e instanceof s)(typeof Uint8Array < "u" && ge(Uint8Array)), xt = (s, e) => {
|
|
103
|
+
const r = (s && s[ce]).call(s);
|
|
104
104
|
let n;
|
|
105
|
-
for (; (n =
|
|
105
|
+
for (; (n = r.next()) && !n.done; ) {
|
|
106
106
|
const o = n.value;
|
|
107
|
-
e.call(
|
|
107
|
+
e.call(s, o[0], o[1]);
|
|
108
108
|
}
|
|
109
|
-
},
|
|
110
|
-
let
|
|
111
|
-
const
|
|
112
|
-
for (; (
|
|
113
|
-
|
|
114
|
-
return
|
|
115
|
-
},
|
|
109
|
+
}, Bt = (s, e) => {
|
|
110
|
+
let t;
|
|
111
|
+
const r = [];
|
|
112
|
+
for (; (t = s.exec(e)) !== null; )
|
|
113
|
+
r.push(t);
|
|
114
|
+
return r;
|
|
115
|
+
}, Mt = F("HTMLFormElement"), jt = (s) => s.toLowerCase().replace(
|
|
116
116
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
117
|
-
function(
|
|
118
|
-
return
|
|
117
|
+
function(t, r, n) {
|
|
118
|
+
return r.toUpperCase() + n;
|
|
119
119
|
}
|
|
120
|
-
), we = (({ hasOwnProperty:
|
|
121
|
-
const
|
|
122
|
-
Y(
|
|
120
|
+
), we = (({ hasOwnProperty: s }) => (e, t) => s.call(e, t))(Object.prototype), kt = F("RegExp"), Ke = (s, e) => {
|
|
121
|
+
const t = Object.getOwnPropertyDescriptors(s), r = {};
|
|
122
|
+
Y(t, (n, o) => {
|
|
123
123
|
let a;
|
|
124
|
-
(a = e(n, o,
|
|
125
|
-
}), Object.defineProperties(
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
if (N(
|
|
124
|
+
(a = e(n, o, s)) !== !1 && (r[o] = a || n);
|
|
125
|
+
}), Object.defineProperties(s, r);
|
|
126
|
+
}, vt = (s) => {
|
|
127
|
+
Ke(s, (e, t) => {
|
|
128
|
+
if (N(s) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
129
129
|
return !1;
|
|
130
|
-
const
|
|
131
|
-
if (N(
|
|
130
|
+
const r = s[t];
|
|
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 '" + t + "'");
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
},
|
|
142
|
-
const
|
|
141
|
+
}, zt = (s, e) => {
|
|
142
|
+
const t = {}, r = (n) => {
|
|
143
143
|
n.forEach((o) => {
|
|
144
|
-
|
|
144
|
+
t[o] = !0;
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
|
-
return
|
|
148
|
-
},
|
|
149
|
-
}, $t = (
|
|
150
|
-
function
|
|
151
|
-
return !!(
|
|
147
|
+
return $(s) ? r(s) : r(String(s).split(e)), t;
|
|
148
|
+
}, qt = () => {
|
|
149
|
+
}, $t = (s, e) => s != null && Number.isFinite(s = +s) ? s : e;
|
|
150
|
+
function Qt(s) {
|
|
151
|
+
return !!(s && N(s.append) && s[ze] === "FormData" && s[ce]);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
const e = new Array(10),
|
|
155
|
-
if (J(
|
|
156
|
-
if (e.indexOf(
|
|
153
|
+
const Wt = (s) => {
|
|
154
|
+
const e = new Array(10), t = (r, n) => {
|
|
155
|
+
if (J(r)) {
|
|
156
|
+
if (e.indexOf(r) >= 0)
|
|
157
157
|
return;
|
|
158
|
-
if (X(
|
|
159
|
-
return
|
|
160
|
-
if (!("toJSON" in
|
|
161
|
-
e[n] =
|
|
162
|
-
const o =
|
|
163
|
-
return Y(
|
|
164
|
-
const c =
|
|
158
|
+
if (X(r))
|
|
159
|
+
return r;
|
|
160
|
+
if (!("toJSON" in r)) {
|
|
161
|
+
e[n] = r;
|
|
162
|
+
const o = $(r) ? [] : {};
|
|
163
|
+
return Y(r, (a, i) => {
|
|
164
|
+
const c = t(a, n + 1);
|
|
165
165
|
!K(c) && (o[i] = c);
|
|
166
166
|
}), e[n] = void 0, o;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
return
|
|
169
|
+
return r;
|
|
170
170
|
};
|
|
171
|
-
return
|
|
172
|
-
},
|
|
173
|
-
n === j && o ===
|
|
171
|
+
return t(s, 0);
|
|
172
|
+
}, Kt = F("AsyncFunction"), Xt = (s) => s && (J(s) || N(s)) && N(s.then) && N(s.catch), Xe = ((s, e) => s ? setImmediate : e ? ((t, r) => (j.addEventListener("message", ({ source: n, data: o }) => {
|
|
173
|
+
n === j && o === t && r.length && r.shift()();
|
|
174
174
|
}, !1), (n) => {
|
|
175
|
-
|
|
176
|
-
}))(`axios@${Math.random()}`, []) : (
|
|
175
|
+
r.push(n), j.postMessage(t, "*");
|
|
176
|
+
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
177
177
|
typeof setImmediate == "function",
|
|
178
178
|
N(j.postMessage)
|
|
179
|
-
),
|
|
180
|
-
isArray:
|
|
181
|
-
isArrayBuffer:
|
|
179
|
+
), Jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || Xe, Yt = (s) => s != null && N(s[ce]), u = {
|
|
180
|
+
isArray: $,
|
|
181
|
+
isArrayBuffer: qe,
|
|
182
182
|
isBuffer: X,
|
|
183
183
|
isFormData: gt,
|
|
184
|
-
isArrayBufferView:
|
|
185
|
-
isString:
|
|
184
|
+
isArrayBufferView: mt,
|
|
185
|
+
isString: Et,
|
|
186
186
|
isNumber: $e,
|
|
187
|
-
isBoolean:
|
|
187
|
+
isBoolean: At,
|
|
188
188
|
isObject: J,
|
|
189
|
-
isPlainObject:
|
|
190
|
-
isEmptyObject:
|
|
191
|
-
isReadableStream:
|
|
192
|
-
isRequest:
|
|
193
|
-
isResponse:
|
|
194
|
-
isHeaders:
|
|
189
|
+
isPlainObject: se,
|
|
190
|
+
isEmptyObject: Ot,
|
|
191
|
+
isReadableStream: bt,
|
|
192
|
+
isRequest: _t,
|
|
193
|
+
isResponse: wt,
|
|
194
|
+
isHeaders: It,
|
|
195
195
|
isUndefined: K,
|
|
196
|
-
isDate:
|
|
197
|
-
isFile:
|
|
198
|
-
isBlob:
|
|
199
|
-
isRegExp:
|
|
196
|
+
isDate: yt,
|
|
197
|
+
isFile: St,
|
|
198
|
+
isBlob: Rt,
|
|
199
|
+
isRegExp: kt,
|
|
200
200
|
isFunction: N,
|
|
201
|
-
isStream:
|
|
202
|
-
isURLSearchParams:
|
|
203
|
-
isTypedArray:
|
|
204
|
-
isFileList:
|
|
201
|
+
isStream: Tt,
|
|
202
|
+
isURLSearchParams: Ct,
|
|
203
|
+
isTypedArray: Ht,
|
|
204
|
+
isFileList: Pt,
|
|
205
205
|
forEach: Y,
|
|
206
206
|
merge: Oe,
|
|
207
|
-
extend:
|
|
208
|
-
trim:
|
|
209
|
-
stripBOM:
|
|
207
|
+
extend: Nt,
|
|
208
|
+
trim: Lt,
|
|
209
|
+
stripBOM: Ut,
|
|
210
210
|
inherits: Ft,
|
|
211
|
-
toFlatObject:
|
|
211
|
+
toFlatObject: Vt,
|
|
212
212
|
kindOf: le,
|
|
213
|
-
kindOfTest:
|
|
214
|
-
endsWith:
|
|
215
|
-
toArray:
|
|
216
|
-
forEachEntry:
|
|
217
|
-
matchAll:
|
|
218
|
-
isHTMLForm:
|
|
213
|
+
kindOfTest: F,
|
|
214
|
+
endsWith: Dt,
|
|
215
|
+
toArray: Gt,
|
|
216
|
+
forEachEntry: xt,
|
|
217
|
+
matchAll: Bt,
|
|
218
|
+
isHTMLForm: Mt,
|
|
219
219
|
hasOwnProperty: we,
|
|
220
220
|
hasOwnProp: we,
|
|
221
221
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
222
|
-
reduceDescriptors:
|
|
223
|
-
freezeMethods:
|
|
224
|
-
toObjectSet:
|
|
225
|
-
toCamelCase:
|
|
226
|
-
noop:
|
|
222
|
+
reduceDescriptors: Ke,
|
|
223
|
+
freezeMethods: vt,
|
|
224
|
+
toObjectSet: zt,
|
|
225
|
+
toCamelCase: jt,
|
|
226
|
+
noop: qt,
|
|
227
227
|
toFiniteNumber: $t,
|
|
228
|
-
findKey:
|
|
228
|
+
findKey: Qe,
|
|
229
229
|
global: j,
|
|
230
|
-
isContextDefined:
|
|
231
|
-
isSpecCompliantForm:
|
|
232
|
-
toJSONObject:
|
|
233
|
-
isAsyncFn:
|
|
234
|
-
isThenable:
|
|
235
|
-
setImmediate:
|
|
236
|
-
asap:
|
|
237
|
-
isIterable:
|
|
230
|
+
isContextDefined: We,
|
|
231
|
+
isSpecCompliantForm: Qt,
|
|
232
|
+
toJSONObject: Wt,
|
|
233
|
+
isAsyncFn: Kt,
|
|
234
|
+
isThenable: Xt,
|
|
235
|
+
setImmediate: Xe,
|
|
236
|
+
asap: Jt,
|
|
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(s, e, t, r, n) {
|
|
240
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = s, this.name = "AxiosError", e && (this.code = e), t && (this.config = t), 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() {
|
|
@@ -260,7 +260,7 @@ u.inherits(E, Error, {
|
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
|
-
const
|
|
263
|
+
const Je = E.prototype, Ye = {};
|
|
264
264
|
[
|
|
265
265
|
"ERR_BAD_OPTION_VALUE",
|
|
266
266
|
"ERR_BAD_OPTION",
|
|
@@ -275,46 +275,46 @@ const Xe = E.prototype, Je = {};
|
|
|
275
275
|
"ERR_NOT_SUPPORT",
|
|
276
276
|
"ERR_INVALID_URL"
|
|
277
277
|
// eslint-disable-next-line func-names
|
|
278
|
-
].forEach((
|
|
279
|
-
|
|
278
|
+
].forEach((s) => {
|
|
279
|
+
Ye[s] = { value: s };
|
|
280
280
|
});
|
|
281
|
-
Object.defineProperties(E,
|
|
282
|
-
Object.defineProperty(
|
|
283
|
-
E.from = (
|
|
284
|
-
const a = Object.create(
|
|
285
|
-
return u.toFlatObject(
|
|
281
|
+
Object.defineProperties(E, Ye);
|
|
282
|
+
Object.defineProperty(Je, "isAxiosError", { value: !0 });
|
|
283
|
+
E.from = (s, e, t, r, n, o) => {
|
|
284
|
+
const a = Object.create(Je);
|
|
285
|
+
return u.toFlatObject(s, a, function(c) {
|
|
286
286
|
return c !== Error.prototype;
|
|
287
|
-
}, (i) => i !== "isAxiosError"), E.call(a,
|
|
287
|
+
}, (i) => i !== "isAxiosError"), E.call(a, s.message, e, t, r, n), a.cause = s, a.name = s.name, o && Object.assign(a, o), a;
|
|
288
288
|
};
|
|
289
|
-
const
|
|
290
|
-
function ye(
|
|
291
|
-
return u.isPlainObject(
|
|
289
|
+
const Zt = null;
|
|
290
|
+
function ye(s) {
|
|
291
|
+
return u.isPlainObject(s) || u.isArray(s);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
return u.endsWith(
|
|
293
|
+
function Ze(s) {
|
|
294
|
+
return u.endsWith(s, "[]") ? s.slice(0, -2) : s;
|
|
295
295
|
}
|
|
296
|
-
function Ie(
|
|
297
|
-
return
|
|
298
|
-
return n =
|
|
299
|
-
}).join(
|
|
296
|
+
function Ie(s, e, t) {
|
|
297
|
+
return s ? s.concat(e).map(function(n, o) {
|
|
298
|
+
return n = Ze(n), !t && o ? "[" + n + "]" : n;
|
|
299
|
+
}).join(t ? "." : "") : e;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
return u.isArray(
|
|
301
|
+
function es(s) {
|
|
302
|
+
return u.isArray(s) && !s.some(ye);
|
|
303
303
|
}
|
|
304
|
-
const
|
|
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(s, e, t) {
|
|
308
|
+
if (!u.isObject(s))
|
|
309
309
|
throw new TypeError("target must be an object");
|
|
310
|
-
e = e || new FormData(),
|
|
310
|
+
e = e || new FormData(), t = u.toFlatObject(t, {
|
|
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
|
|
317
|
+
const r = t.metaTokens, n = t.visitor || d, o = t.dots, a = t.indexes, c = (t.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) {
|
|
@@ -331,9 +331,9 @@ function de(t, e, r) {
|
|
|
331
331
|
let C = h;
|
|
332
332
|
if (h && !f && typeof h == "object") {
|
|
333
333
|
if (u.endsWith(A, "{}"))
|
|
334
|
-
A =
|
|
335
|
-
else if (u.isArray(h) &&
|
|
336
|
-
return A =
|
|
334
|
+
A = r ? A : A.slice(0, -2), h = JSON.stringify(h);
|
|
335
|
+
else if (u.isArray(h) && es(h) || (u.isFileList(h) || u.endsWith(A, "[]")) && (C = u.toArray(h)))
|
|
336
|
+
return A = Ze(A), C.forEach(function(w, G) {
|
|
337
337
|
!(u.isUndefined(w) || w === null) && e.append(
|
|
338
338
|
// eslint-disable-next-line no-nested-ternary
|
|
339
339
|
a === !0 ? Ie([A], G, o) : a === null ? A : A + "[]",
|
|
@@ -343,7 +343,7 @@ function de(t, e, r) {
|
|
|
343
343
|
}
|
|
344
344
|
return ye(h) ? !0 : (e.append(Ie(f, A, o), l(h)), !1);
|
|
345
345
|
}
|
|
346
|
-
const p = [], O = Object.assign(
|
|
346
|
+
const p = [], O = Object.assign(ts, {
|
|
347
347
|
defaultVisitor: d,
|
|
348
348
|
convertValue: l,
|
|
349
349
|
isVisitable: ye
|
|
@@ -363,11 +363,11 @@ function de(t, e, r) {
|
|
|
363
363
|
}), p.pop();
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
if (!u.isObject(
|
|
366
|
+
if (!u.isObject(s))
|
|
367
367
|
throw new TypeError("data must be an object");
|
|
368
|
-
return b(
|
|
368
|
+
return b(s), e;
|
|
369
369
|
}
|
|
370
|
-
function Le(
|
|
370
|
+
function Le(s) {
|
|
371
371
|
const e = {
|
|
372
372
|
"!": "%21",
|
|
373
373
|
"'": "%27",
|
|
@@ -377,42 +377,42 @@ function Le(t) {
|
|
|
377
377
|
"%20": "+",
|
|
378
378
|
"%00": "\0"
|
|
379
379
|
};
|
|
380
|
-
return encodeURIComponent(
|
|
381
|
-
return e[
|
|
380
|
+
return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
381
|
+
return e[r];
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function Ce(
|
|
385
|
-
this._pairs = [],
|
|
384
|
+
function Ce(s, e) {
|
|
385
|
+
this._pairs = [], s && de(s, this, e);
|
|
386
386
|
}
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
this._pairs.push([e,
|
|
387
|
+
const et = Ce.prototype;
|
|
388
|
+
et.append = function(e, t) {
|
|
389
|
+
this._pairs.push([e, t]);
|
|
390
390
|
};
|
|
391
|
-
|
|
392
|
-
const
|
|
393
|
-
return e.call(this,
|
|
391
|
+
et.toString = function(e) {
|
|
392
|
+
const t = e ? function(r) {
|
|
393
|
+
return e.call(this, r, Le);
|
|
394
394
|
} : Le;
|
|
395
395
|
return this._pairs.map(function(n) {
|
|
396
|
-
return
|
|
396
|
+
return t(n[0]) + "=" + t(n[1]);
|
|
397
397
|
}, "").join("&");
|
|
398
398
|
};
|
|
399
|
-
function
|
|
400
|
-
return encodeURIComponent(
|
|
399
|
+
function ss(s) {
|
|
400
|
+
return encodeURIComponent(s).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function tt(s, e, t) {
|
|
403
403
|
if (!e)
|
|
404
|
-
return
|
|
405
|
-
const
|
|
406
|
-
u.isFunction(
|
|
407
|
-
serialize:
|
|
404
|
+
return s;
|
|
405
|
+
const r = t && t.encode || ss;
|
|
406
|
+
u.isFunction(t) && (t = {
|
|
407
|
+
serialize: t
|
|
408
408
|
});
|
|
409
|
-
const n =
|
|
409
|
+
const n = t && t.serialize;
|
|
410
410
|
let o;
|
|
411
|
-
if (n ? o = n(e,
|
|
412
|
-
const a =
|
|
413
|
-
a !== -1 && (
|
|
411
|
+
if (n ? o = n(e, t) : o = u.isURLSearchParams(e) ? e.toString() : new Ce(e, t).toString(r), o) {
|
|
412
|
+
const a = s.indexOf("#");
|
|
413
|
+
a !== -1 && (s = s.slice(0, a)), s += (s.indexOf("?") === -1 ? "?" : "&") + o;
|
|
414
414
|
}
|
|
415
|
-
return
|
|
415
|
+
return s;
|
|
416
416
|
}
|
|
417
417
|
class Ne {
|
|
418
418
|
constructor() {
|
|
@@ -426,12 +426,12 @@ class Ne {
|
|
|
426
426
|
*
|
|
427
427
|
* @return {Number} An ID used to remove interceptor later
|
|
428
428
|
*/
|
|
429
|
-
use(e,
|
|
429
|
+
use(e, t, r) {
|
|
430
430
|
return this.handlers.push({
|
|
431
431
|
fulfilled: e,
|
|
432
|
-
rejected:
|
|
433
|
-
synchronous:
|
|
434
|
-
runWhen:
|
|
432
|
+
rejected: t,
|
|
433
|
+
synchronous: r ? r.synchronous : !1,
|
|
434
|
+
runWhen: r ? r.runWhen : null
|
|
435
435
|
}), this.handlers.length - 1;
|
|
436
436
|
}
|
|
437
437
|
/**
|
|
@@ -463,85 +463,85 @@ class Ne {
|
|
|
463
463
|
* @returns {void}
|
|
464
464
|
*/
|
|
465
465
|
forEach(e) {
|
|
466
|
-
u.forEach(this.handlers, function(
|
|
467
|
-
|
|
466
|
+
u.forEach(this.handlers, function(r) {
|
|
467
|
+
r !== null && e(r);
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
471
|
+
const st = {
|
|
472
472
|
silentJSONParsing: !0,
|
|
473
473
|
forcedJSONParsing: !0,
|
|
474
474
|
clarifyTimeoutError: !1
|
|
475
|
-
},
|
|
475
|
+
}, rs = typeof URLSearchParams < "u" ? URLSearchParams : Ce, ns = typeof FormData < "u" ? FormData : null, os = typeof Blob < "u" ? Blob : null, as = {
|
|
476
476
|
isBrowser: !0,
|
|
477
477
|
classes: {
|
|
478
|
-
URLSearchParams:
|
|
479
|
-
FormData:
|
|
480
|
-
Blob:
|
|
478
|
+
URLSearchParams: rs,
|
|
479
|
+
FormData: ns,
|
|
480
|
+
Blob: os
|
|
481
481
|
},
|
|
482
482
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
483
|
-
}, be = typeof window < "u" && typeof document < "u", Se = typeof navigator == "object" && navigator || void 0,
|
|
484
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
483
|
+
}, be = typeof window < "u" && typeof document < "u", Se = typeof navigator == "object" && navigator || void 0, is = be && (!Se || ["ReactNative", "NativeScript", "NS"].indexOf(Se.product) < 0), cs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
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
|
-
hasStandardBrowserEnv:
|
|
488
|
-
hasStandardBrowserWebWorkerEnv:
|
|
487
|
+
hasStandardBrowserEnv: is,
|
|
488
|
+
hasStandardBrowserWebWorkerEnv: cs,
|
|
489
489
|
navigator: Se,
|
|
490
|
-
origin:
|
|
490
|
+
origin: ls
|
|
491
491
|
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
492
|
-
...
|
|
493
|
-
...
|
|
492
|
+
...us,
|
|
493
|
+
...as
|
|
494
494
|
};
|
|
495
|
-
function
|
|
496
|
-
return de(
|
|
497
|
-
visitor: function(
|
|
498
|
-
return I.isNode && u.isBuffer(
|
|
495
|
+
function ds(s, e) {
|
|
496
|
+
return de(s, new I.classes.URLSearchParams(), {
|
|
497
|
+
visitor: function(t, r, n, o) {
|
|
498
|
+
return I.isNode && u.isBuffer(t) ? (this.append(r, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
499
499
|
},
|
|
500
500
|
...e
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
return u.matchAll(/\w+|\[(\w*)]/g,
|
|
503
|
+
function ps(s) {
|
|
504
|
+
return u.matchAll(/\w+|\[(\w*)]/g, s).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
const e = {},
|
|
508
|
-
let
|
|
509
|
-
const n =
|
|
506
|
+
function hs(s) {
|
|
507
|
+
const e = {}, t = Object.keys(s);
|
|
508
|
+
let r;
|
|
509
|
+
const n = t.length;
|
|
510
510
|
let o;
|
|
511
|
-
for (
|
|
512
|
-
o = r
|
|
511
|
+
for (r = 0; r < n; r++)
|
|
512
|
+
o = t[r], e[o] = s[o];
|
|
513
513
|
return e;
|
|
514
514
|
}
|
|
515
|
-
function rt(
|
|
516
|
-
function e(
|
|
517
|
-
let a =
|
|
515
|
+
function rt(s) {
|
|
516
|
+
function e(t, r, n, o) {
|
|
517
|
+
let a = t[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],
|
|
519
|
+
const i = Number.isFinite(+a), c = o >= t.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(t, 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(
|
|
526
|
-
}),
|
|
522
|
+
if (u.isFormData(s) && u.isFunction(s.entries)) {
|
|
523
|
+
const t = {};
|
|
524
|
+
return u.forEachEntry(s, (r, n) => {
|
|
525
|
+
e(ps(r), n, t, 0);
|
|
526
|
+
}), t;
|
|
527
527
|
}
|
|
528
528
|
return null;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
if (u.isString(
|
|
530
|
+
function fs(s, e, t) {
|
|
531
|
+
if (u.isString(s))
|
|
532
532
|
try {
|
|
533
|
-
return (e || JSON.parse)(
|
|
534
|
-
} catch (
|
|
535
|
-
if (
|
|
536
|
-
throw
|
|
533
|
+
return (e || JSON.parse)(s), u.trim(s);
|
|
534
|
+
} catch (r) {
|
|
535
|
+
if (r.name !== "SyntaxError")
|
|
536
|
+
throw r;
|
|
537
537
|
}
|
|
538
|
-
return (
|
|
538
|
+
return (t || JSON.stringify)(s);
|
|
539
539
|
}
|
|
540
540
|
const Z = {
|
|
541
|
-
transitional:
|
|
541
|
+
transitional: st,
|
|
542
542
|
adapter: ["xhr", "http", "fetch"],
|
|
543
|
-
transformRequest: [function(e,
|
|
544
|
-
const
|
|
543
|
+
transformRequest: [function(e, t) {
|
|
544
|
+
const r = t.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,12 +549,12 @@ const Z = {
|
|
|
549
549
|
if (u.isArrayBufferView(e))
|
|
550
550
|
return e.buffer;
|
|
551
551
|
if (u.isURLSearchParams(e))
|
|
552
|
-
return
|
|
552
|
+
return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
553
553
|
let i;
|
|
554
554
|
if (o) {
|
|
555
|
-
if (
|
|
556
|
-
return
|
|
557
|
-
if ((i = u.isFileList(e)) ||
|
|
555
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
556
|
+
return ds(e, this.formSerializer).toString();
|
|
557
|
+
if ((i = u.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
558
558
|
const c = this.env && this.env.FormData;
|
|
559
559
|
return de(
|
|
560
560
|
i ? { "files[]": e } : e,
|
|
@@ -563,14 +563,14 @@ const Z = {
|
|
|
563
563
|
);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
return o || n ? (
|
|
566
|
+
return o || n ? (t.setContentType("application/json", !1), fs(e)) : e;
|
|
567
567
|
}],
|
|
568
568
|
transformResponse: [function(e) {
|
|
569
|
-
const
|
|
569
|
+
const t = this.transitional || Z.transitional, r = t && t.forcedJSONParsing, n = this.responseType === "json";
|
|
570
570
|
if (u.isResponse(e) || u.isReadableStream(e))
|
|
571
571
|
return e;
|
|
572
|
-
if (e && u.isString(e) && (
|
|
573
|
-
const a = !(
|
|
572
|
+
if (e && u.isString(e) && (r && !this.responseType || n)) {
|
|
573
|
+
const a = !(t && t.silentJSONParsing) && n;
|
|
574
574
|
try {
|
|
575
575
|
return JSON.parse(e);
|
|
576
576
|
} catch (i) {
|
|
@@ -603,10 +603,10 @@ 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"], (s) => {
|
|
607
|
+
Z.headers[s] = {};
|
|
608
608
|
});
|
|
609
|
-
const
|
|
609
|
+
const ms = u.toObjectSet([
|
|
610
610
|
"age",
|
|
611
611
|
"authorization",
|
|
612
612
|
"content-length",
|
|
@@ -624,70 +624,70 @@ const fr = u.toObjectSet([
|
|
|
624
624
|
"referer",
|
|
625
625
|
"retry-after",
|
|
626
626
|
"user-agent"
|
|
627
|
-
]),
|
|
627
|
+
]), Es = (s) => {
|
|
628
628
|
const e = {};
|
|
629
|
-
let
|
|
630
|
-
return
|
|
629
|
+
let t, r, n;
|
|
630
|
+
return s && s.split(`
|
|
631
631
|
`).forEach(function(a) {
|
|
632
|
-
n = a.indexOf(":"),
|
|
632
|
+
n = a.indexOf(":"), t = a.substring(0, n).trim().toLowerCase(), r = a.substring(n + 1).trim(), !(!t || e[t] && ms[t]) && (t === "set-cookie" ? e[t] ? e[t].push(r) : e[t] = [r] : e[t] = e[t] ? e[t] + ", " + r : r);
|
|
633
633
|
}), e;
|
|
634
|
-
},
|
|
635
|
-
function W(
|
|
636
|
-
return
|
|
634
|
+
}, Ue = Symbol("internals");
|
|
635
|
+
function W(s) {
|
|
636
|
+
return s && String(s).trim().toLowerCase();
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
return
|
|
638
|
+
function re(s) {
|
|
639
|
+
return s === !1 || s == null ? s : u.isArray(s) ? s.map(re) : String(s);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
const e = /* @__PURE__ */ Object.create(null),
|
|
643
|
-
let
|
|
644
|
-
for (;
|
|
645
|
-
e[
|
|
641
|
+
function As(s) {
|
|
642
|
+
const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
643
|
+
let r;
|
|
644
|
+
for (; r = t.exec(s); )
|
|
645
|
+
e[r[1]] = r[2];
|
|
646
646
|
return e;
|
|
647
647
|
}
|
|
648
|
-
const
|
|
649
|
-
function fe(
|
|
650
|
-
if (u.isFunction(
|
|
651
|
-
return
|
|
652
|
-
if (n && (e =
|
|
653
|
-
if (u.isString(
|
|
654
|
-
return e.indexOf(
|
|
655
|
-
if (u.isRegExp(
|
|
656
|
-
return
|
|
648
|
+
const Os = (s) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());
|
|
649
|
+
function fe(s, e, t, r, n) {
|
|
650
|
+
if (u.isFunction(r))
|
|
651
|
+
return r.call(this, e, t);
|
|
652
|
+
if (n && (e = t), !!u.isString(e)) {
|
|
653
|
+
if (u.isString(r))
|
|
654
|
+
return e.indexOf(r) !== -1;
|
|
655
|
+
if (u.isRegExp(r))
|
|
656
|
+
return r.test(e);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
return
|
|
659
|
+
function ys(s) {
|
|
660
|
+
return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, r) => t.toUpperCase() + r);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const
|
|
664
|
-
["get", "set", "has"].forEach((
|
|
665
|
-
Object.defineProperty(
|
|
662
|
+
function Ss(s, e) {
|
|
663
|
+
const t = u.toCamelCase(" " + e);
|
|
664
|
+
["get", "set", "has"].forEach((r) => {
|
|
665
|
+
Object.defineProperty(s, r + t, {
|
|
666
666
|
value: function(n, o, a) {
|
|
667
|
-
return this[
|
|
667
|
+
return this[r].call(this, e, n, o, a);
|
|
668
668
|
},
|
|
669
669
|
configurable: !0
|
|
670
670
|
});
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
let
|
|
673
|
+
let U = class {
|
|
674
674
|
constructor(e) {
|
|
675
675
|
e && this.set(e);
|
|
676
676
|
}
|
|
677
|
-
set(e,
|
|
677
|
+
set(e, t, r) {
|
|
678
678
|
const n = this;
|
|
679
679
|
function o(i, c, l) {
|
|
680
680
|
const d = W(c);
|
|
681
681
|
if (!d)
|
|
682
682
|
throw new Error("header name must be a non-empty string");
|
|
683
683
|
const p = u.findKey(n, d);
|
|
684
|
-
(!p || n[p] === void 0 || l === !0 || l === void 0 && n[p] !== !1) && (n[p || c] =
|
|
684
|
+
(!p || n[p] === void 0 || l === !0 || l === void 0 && n[p] !== !1) && (n[p || c] = re(i));
|
|
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,
|
|
689
|
-
else if (u.isString(e) && (e = e.trim()) && !
|
|
690
|
-
a(
|
|
688
|
+
a(e, t);
|
|
689
|
+
else if (u.isString(e) && (e = e.trim()) && !Os(e))
|
|
690
|
+
a(Es(e), t);
|
|
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 F = 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, t);
|
|
699
699
|
} else
|
|
700
|
-
e != null && o(
|
|
700
|
+
e != null && o(t, e, r);
|
|
701
701
|
return this;
|
|
702
702
|
}
|
|
703
|
-
get(e,
|
|
703
|
+
get(e, t) {
|
|
704
704
|
if (e = W(e), e) {
|
|
705
|
-
const
|
|
706
|
-
if (
|
|
707
|
-
const n = this[
|
|
708
|
-
if (!
|
|
705
|
+
const r = u.findKey(this, e);
|
|
706
|
+
if (r) {
|
|
707
|
+
const n = this[r];
|
|
708
|
+
if (!t)
|
|
709
709
|
return n;
|
|
710
|
-
if (
|
|
711
|
-
return
|
|
712
|
-
if (u.isFunction(
|
|
713
|
-
return
|
|
714
|
-
if (u.isRegExp(
|
|
715
|
-
return
|
|
710
|
+
if (t === !0)
|
|
711
|
+
return As(n);
|
|
712
|
+
if (u.isFunction(t))
|
|
713
|
+
return t.call(this, n, r);
|
|
714
|
+
if (u.isRegExp(t))
|
|
715
|
+
return t.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, t) {
|
|
721
721
|
if (e = W(e), e) {
|
|
722
|
-
const
|
|
723
|
-
return !!(
|
|
722
|
+
const r = u.findKey(this, e);
|
|
723
|
+
return !!(r && this[r] !== void 0 && (!t || fe(this, this[r], r, t)));
|
|
724
724
|
}
|
|
725
725
|
return !1;
|
|
726
726
|
}
|
|
727
|
-
delete(e,
|
|
728
|
-
const
|
|
727
|
+
delete(e, t) {
|
|
728
|
+
const r = this;
|
|
729
729
|
let n = !1;
|
|
730
730
|
function o(a) {
|
|
731
731
|
if (a = W(a), a) {
|
|
732
|
-
const i = u.findKey(
|
|
733
|
-
i && (!
|
|
732
|
+
const i = u.findKey(r, a);
|
|
733
|
+
i && (!t || fe(r, r[i], i, t)) && (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
|
|
741
|
-
for (;
|
|
742
|
-
const o = r
|
|
739
|
+
const t = Object.keys(this);
|
|
740
|
+
let r = t.length, n = !1;
|
|
741
|
+
for (; r--; ) {
|
|
742
|
+
const o = t[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 t = this, r = {};
|
|
749
749
|
return u.forEach(this, (n, o) => {
|
|
750
|
-
const a = u.findKey(
|
|
750
|
+
const a = u.findKey(r, o);
|
|
751
751
|
if (a) {
|
|
752
|
-
|
|
752
|
+
t[a] = re(n), delete t[o];
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
|
-
const i = e ?
|
|
756
|
-
i !== o && delete
|
|
755
|
+
const i = e ? ys(o) : String(o).trim();
|
|
756
|
+
i !== o && delete t[o], t[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
|
|
764
|
-
return u.forEach(this, (
|
|
765
|
-
|
|
766
|
-
}),
|
|
763
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
764
|
+
return u.forEach(this, (r, n) => {
|
|
765
|
+
r != null && r !== !1 && (t[n] = e && u.isArray(r) ? r.join(", ") : r);
|
|
766
|
+
}), t;
|
|
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, t]) => e + ": " + t).join(`
|
|
773
773
|
`);
|
|
774
774
|
}
|
|
775
775
|
getSetCookie() {
|
|
@@ -781,96 +781,96 @@ let F = class {
|
|
|
781
781
|
static from(e) {
|
|
782
782
|
return e instanceof this ? e : new this(e);
|
|
783
783
|
}
|
|
784
|
-
static concat(e, ...
|
|
785
|
-
const
|
|
786
|
-
return
|
|
784
|
+
static concat(e, ...t) {
|
|
785
|
+
const r = new this(e);
|
|
786
|
+
return t.forEach((n) => r.set(n)), r;
|
|
787
787
|
}
|
|
788
788
|
static accessor(e) {
|
|
789
|
-
const
|
|
789
|
+
const r = (this[Ue] = this[Ue] = {
|
|
790
790
|
accessors: {}
|
|
791
791
|
}).accessors, n = this.prototype;
|
|
792
792
|
function o(a) {
|
|
793
793
|
const i = W(a);
|
|
794
|
-
|
|
794
|
+
r[i] || (Ss(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
|
+
U.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
800
|
+
u.reduceDescriptors(U.prototype, ({ value: s }, e) => {
|
|
801
|
+
let t = e[0].toUpperCase() + e.slice(1);
|
|
802
802
|
return {
|
|
803
|
-
get: () =>
|
|
804
|
-
set(
|
|
805
|
-
this[
|
|
803
|
+
get: () => s,
|
|
804
|
+
set(r) {
|
|
805
|
+
this[t] = r;
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
808
|
});
|
|
809
|
-
u.freezeMethods(
|
|
810
|
-
function me(
|
|
811
|
-
const
|
|
812
|
-
let o =
|
|
813
|
-
return u.forEach(
|
|
814
|
-
o = i.call(
|
|
809
|
+
u.freezeMethods(U);
|
|
810
|
+
function me(s, e) {
|
|
811
|
+
const t = this || Z, r = e || t, n = U.from(r.headers);
|
|
812
|
+
let o = r.data;
|
|
813
|
+
return u.forEach(s, function(i) {
|
|
814
|
+
o = i.call(t, o, n.normalize(), e ? e.status : void 0);
|
|
815
815
|
}), n.normalize(), o;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
return !!(
|
|
817
|
+
function nt(s) {
|
|
818
|
+
return !!(s && s.__CANCEL__);
|
|
819
819
|
}
|
|
820
|
-
function Q(
|
|
821
|
-
E.call(this,
|
|
820
|
+
function Q(s, e, t) {
|
|
821
|
+
E.call(this, s ?? "canceled", E.ERR_CANCELED, e, t), this.name = "CanceledError";
|
|
822
822
|
}
|
|
823
823
|
u.inherits(Q, E, {
|
|
824
824
|
__CANCEL__: !0
|
|
825
825
|
});
|
|
826
|
-
function
|
|
827
|
-
const
|
|
828
|
-
!
|
|
829
|
-
"Request failed with status code " +
|
|
830
|
-
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
826
|
+
function ot(s, e, t) {
|
|
827
|
+
const r = t.config.validateStatus;
|
|
828
|
+
!t.status || !r || r(t.status) ? s(t) : e(new E(
|
|
829
|
+
"Request failed with status code " + t.status,
|
|
830
|
+
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
|
|
831
|
+
t.config,
|
|
832
|
+
t.request,
|
|
833
|
+
t
|
|
834
834
|
));
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(
|
|
836
|
+
function Rs(s) {
|
|
837
|
+
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(s);
|
|
838
838
|
return e && e[1] || "";
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
|
|
842
|
-
const
|
|
840
|
+
function Ps(s, e) {
|
|
841
|
+
s = s || 10;
|
|
842
|
+
const t = new Array(s), r = new Array(s);
|
|
843
843
|
let n = 0, o = 0, a;
|
|
844
844
|
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
845
|
-
const l = Date.now(), d =
|
|
846
|
-
a || (a = l),
|
|
845
|
+
const l = Date.now(), d = r[o];
|
|
846
|
+
a || (a = l), t[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 += t[p++], p = p % s;
|
|
850
|
+
if (n = (n + 1) % s, n === o && (o = (o + 1) % s), 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 Ts(s, e) {
|
|
857
|
+
let t = 0, r = 1e3 / e, n, o;
|
|
858
858
|
const a = (l, d = Date.now()) => {
|
|
859
|
-
|
|
859
|
+
t = d, n = null, o && (clearTimeout(o), o = null), s(...l);
|
|
860
860
|
};
|
|
861
861
|
return [(...l) => {
|
|
862
|
-
const d = Date.now(), p = d -
|
|
863
|
-
p >=
|
|
862
|
+
const d = Date.now(), p = d - t;
|
|
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 = (
|
|
869
|
-
let
|
|
870
|
-
const n =
|
|
871
|
-
return
|
|
872
|
-
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, c = a -
|
|
873
|
-
|
|
868
|
+
const oe = (s, e, t = 3) => {
|
|
869
|
+
let r = 0;
|
|
870
|
+
const n = Ps(50, 250);
|
|
871
|
+
return Ts((o) => {
|
|
872
|
+
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, c = a - r, l = n(c), d = a <= i;
|
|
873
|
+
r = a;
|
|
874
874
|
const p = {
|
|
875
875
|
loaded: a,
|
|
876
876
|
total: i,
|
|
@@ -882,31 +882,31 @@ const oe = (t, e, r = 3) => {
|
|
|
882
882
|
lengthComputable: i != null,
|
|
883
883
|
[e ? "download" : "upload"]: !0
|
|
884
884
|
};
|
|
885
|
-
|
|
886
|
-
},
|
|
887
|
-
},
|
|
888
|
-
const
|
|
889
|
-
return [(
|
|
890
|
-
lengthComputable:
|
|
891
|
-
total:
|
|
892
|
-
loaded:
|
|
885
|
+
s(p);
|
|
886
|
+
}, t);
|
|
887
|
+
}, Fe = (s, e) => {
|
|
888
|
+
const t = s != null;
|
|
889
|
+
return [(r) => e[0]({
|
|
890
|
+
lengthComputable: t,
|
|
891
|
+
total: s,
|
|
892
|
+
loaded: r
|
|
893
893
|
}), e[1]];
|
|
894
|
-
}, Ve = (
|
|
894
|
+
}, Ve = (s) => (...e) => u.asap(() => s(...e)), gs = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((s, e) => (t) => (t = new URL(t, I.origin), s.protocol === t.protocol && s.host === t.host && (e || s.port === t.port)))(
|
|
895
895
|
new URL(I.origin),
|
|
896
896
|
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
897
|
-
) : () => !0,
|
|
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(s, e, t, r, n, o) {
|
|
901
|
+
const a = [s + "=" + encodeURIComponent(e)];
|
|
902
|
+
u.isNumber(t) && a.push("expires=" + new Date(t).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(s) {
|
|
905
|
+
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + s + ")=([^;]*)"));
|
|
906
906
|
return e ? decodeURIComponent(e[3]) : null;
|
|
907
907
|
},
|
|
908
|
-
remove(
|
|
909
|
-
this.write(
|
|
908
|
+
remove(s) {
|
|
909
|
+
this.write(s, "", Date.now() - 864e5);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
) : (
|
|
@@ -921,44 +921,44 @@ const oe = (t, e, r = 3) => {
|
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
);
|
|
924
|
-
function
|
|
925
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(
|
|
924
|
+
function bs(s) {
|
|
925
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(s);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
928
|
-
return e ?
|
|
927
|
+
function _s(s, e) {
|
|
928
|
+
return e ? s.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : s;
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
let
|
|
932
|
-
return
|
|
930
|
+
function at(s, e, t) {
|
|
931
|
+
let r = !bs(e);
|
|
932
|
+
return s && (r || t == !1) ? _s(s, e) : e;
|
|
933
933
|
}
|
|
934
|
-
const De = (
|
|
935
|
-
function v(
|
|
934
|
+
const De = (s) => s instanceof U ? { ...s } : s;
|
|
935
|
+
function v(s, e) {
|
|
936
936
|
e = e || {};
|
|
937
|
-
const
|
|
938
|
-
function
|
|
937
|
+
const t = {};
|
|
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
|
}
|
|
941
941
|
function n(l, d, p, O) {
|
|
942
942
|
if (u.isUndefined(d)) {
|
|
943
943
|
if (!u.isUndefined(l))
|
|
944
|
-
return
|
|
945
|
-
} else return
|
|
944
|
+
return r(void 0, l, p, O);
|
|
945
|
+
} else return r(l, d, p, O);
|
|
946
946
|
}
|
|
947
947
|
function o(l, d) {
|
|
948
948
|
if (!u.isUndefined(d))
|
|
949
|
-
return
|
|
949
|
+
return r(void 0, d);
|
|
950
950
|
}
|
|
951
951
|
function a(l, d) {
|
|
952
952
|
if (u.isUndefined(d)) {
|
|
953
953
|
if (!u.isUndefined(l))
|
|
954
|
-
return
|
|
955
|
-
} else return
|
|
954
|
+
return r(void 0, l);
|
|
955
|
+
} else return r(void 0, d);
|
|
956
956
|
}
|
|
957
957
|
function i(l, d, p) {
|
|
958
958
|
if (p in e)
|
|
959
|
-
return
|
|
960
|
-
if (p in
|
|
961
|
-
return
|
|
959
|
+
return r(l, d);
|
|
960
|
+
if (p in s)
|
|
961
|
+
return r(void 0, l);
|
|
962
962
|
}
|
|
963
963
|
const c = {
|
|
964
964
|
url: o,
|
|
@@ -991,20 +991,20 @@ function v(t, 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({ ...s, ...e }), function(d) {
|
|
995
|
+
const p = c[d] || n, O = p(s[d], e[d], d);
|
|
996
|
+
u.isUndefined(O) && p !== i || (t[d] = O);
|
|
997
|
+
}), t;
|
|
998
998
|
}
|
|
999
|
-
const
|
|
1000
|
-
const e = v({},
|
|
1001
|
-
let { data:
|
|
1002
|
-
e.headers = a =
|
|
999
|
+
const it = (s) => {
|
|
1000
|
+
const e = v({}, s);
|
|
1001
|
+
let { data: t, withXSRFToken: r, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = e;
|
|
1002
|
+
e.headers = a = U.from(a), e.url = tt(at(e.baseURL, e.url, e.allowAbsoluteUrls), s.params, s.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(t)) {
|
|
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 at = (t) => {
|
|
|
1012
1012
|
a.setContentType([l || "multipart/form-data", ...d].join("; "));
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
if (I.hasStandardBrowserEnv && (
|
|
1016
|
-
const l = n && o &&
|
|
1015
|
+
if (I.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(e)), r || r !== !1 && gs(e.url))) {
|
|
1016
|
+
const l = n && o && Cs.read(o);
|
|
1017
1017
|
l && a.set(n, l);
|
|
1018
1018
|
}
|
|
1019
1019
|
return e;
|
|
1020
|
-
},
|
|
1021
|
-
return new Promise(function(
|
|
1022
|
-
const n =
|
|
1020
|
+
}, ws = typeof XMLHttpRequest < "u", Is = ws && function(s) {
|
|
1021
|
+
return new Promise(function(t, r) {
|
|
1022
|
+
const n = it(s);
|
|
1023
1023
|
let o = n.data;
|
|
1024
|
-
const a =
|
|
1024
|
+
const a = U.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,104 +1031,104 @@ const at = (t) => {
|
|
|
1031
1031
|
function C() {
|
|
1032
1032
|
if (!f)
|
|
1033
1033
|
return;
|
|
1034
|
-
const w =
|
|
1034
|
+
const w = U.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: s,
|
|
1042
1042
|
request: f
|
|
1043
1043
|
};
|
|
1044
|
-
|
|
1045
|
-
|
|
1044
|
+
ot(function(B) {
|
|
1045
|
+
t(B), A();
|
|
1046
1046
|
}, function(B) {
|
|
1047
|
-
|
|
1047
|
+
r(B), A();
|
|
1048
1048
|
}, L), f = null;
|
|
1049
1049
|
}
|
|
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 && (
|
|
1053
|
+
f && (r(new E("Request aborted", E.ECONNABORTED, s, f)), f = null);
|
|
1054
1054
|
}, f.onerror = function() {
|
|
1055
|
-
|
|
1055
|
+
r(new E("Network Error", E.ERR_NETWORK, s, f)), f = null;
|
|
1056
1056
|
}, f.ontimeout = function() {
|
|
1057
1057
|
let G = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1058
|
-
const L = n.transitional ||
|
|
1059
|
-
n.timeoutErrorMessage && (G = n.timeoutErrorMessage),
|
|
1058
|
+
const L = n.transitional || st;
|
|
1059
|
+
n.timeoutErrorMessage && (G = n.timeoutErrorMessage), r(new E(
|
|
1060
1060
|
G,
|
|
1061
1061
|
L.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1062
|
-
|
|
1062
|
+
s,
|
|
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 && (
|
|
1068
|
+
f && (r(!w || w.type ? new Q(null, s, 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 _ = Rs(n.url);
|
|
1071
1071
|
if (_ && I.protocols.indexOf(_) === -1) {
|
|
1072
|
-
|
|
1072
|
+
r(new E("Unsupported protocol " + _ + ":", E.ERR_BAD_REQUEST, s));
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
1075
|
f.send(o || null);
|
|
1076
1076
|
});
|
|
1077
|
-
},
|
|
1078
|
-
const { length:
|
|
1079
|
-
if (e ||
|
|
1080
|
-
let
|
|
1077
|
+
}, Ls = (s, e) => {
|
|
1078
|
+
const { length: t } = s = s ? s.filter(Boolean) : [];
|
|
1079
|
+
if (e || t) {
|
|
1080
|
+
let r = new AbortController(), n;
|
|
1081
1081
|
const o = function(l) {
|
|
1082
1082
|
if (!n) {
|
|
1083
1083
|
n = !0, i();
|
|
1084
1084
|
const d = l instanceof Error ? l : this.reason;
|
|
1085
|
-
|
|
1085
|
+
r.abort(d instanceof E ? d : new Q(d instanceof Error ? d.message : d));
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
1088
|
let a = e && setTimeout(() => {
|
|
1089
1089
|
a = null, o(new E(`timeout ${e} of ms exceeded`, E.ETIMEDOUT));
|
|
1090
1090
|
}, e);
|
|
1091
1091
|
const i = () => {
|
|
1092
|
-
|
|
1092
|
+
s && (a && clearTimeout(a), a = null, s.forEach((l) => {
|
|
1093
1093
|
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1094
|
-
}),
|
|
1094
|
+
}), s = null);
|
|
1095
1095
|
};
|
|
1096
|
-
|
|
1097
|
-
const { signal: c } =
|
|
1096
|
+
s.forEach((l) => l.addEventListener("abort", o));
|
|
1097
|
+
const { signal: c } = r;
|
|
1098
1098
|
return c.unsubscribe = () => u.asap(i), c;
|
|
1099
1099
|
}
|
|
1100
|
-
},
|
|
1101
|
-
let
|
|
1102
|
-
if (
|
|
1103
|
-
yield
|
|
1100
|
+
}, Ns = function* (s, e) {
|
|
1101
|
+
let t = s.byteLength;
|
|
1102
|
+
if (t < e) {
|
|
1103
|
+
yield s;
|
|
1104
1104
|
return;
|
|
1105
1105
|
}
|
|
1106
|
-
let
|
|
1107
|
-
for (;
|
|
1108
|
-
n =
|
|
1109
|
-
},
|
|
1110
|
-
for await (const
|
|
1111
|
-
yield*
|
|
1112
|
-
},
|
|
1113
|
-
if (
|
|
1114
|
-
yield*
|
|
1106
|
+
let r = 0, n;
|
|
1107
|
+
for (; r < t; )
|
|
1108
|
+
n = r + e, yield s.slice(r, n), r = n;
|
|
1109
|
+
}, Us = async function* (s, e) {
|
|
1110
|
+
for await (const t of Fs(s))
|
|
1111
|
+
yield* Ns(t, e);
|
|
1112
|
+
}, Fs = async function* (s) {
|
|
1113
|
+
if (s[Symbol.asyncIterator]) {
|
|
1114
|
+
yield* s;
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
|
-
const e =
|
|
1117
|
+
const e = s.getReader();
|
|
1118
1118
|
try {
|
|
1119
1119
|
for (; ; ) {
|
|
1120
|
-
const { done:
|
|
1121
|
-
if (
|
|
1120
|
+
const { done: t, value: r } = await e.read();
|
|
1121
|
+
if (t)
|
|
1122
1122
|
break;
|
|
1123
|
-
yield
|
|
1123
|
+
yield r;
|
|
1124
1124
|
}
|
|
1125
1125
|
} finally {
|
|
1126
1126
|
await e.cancel();
|
|
1127
1127
|
}
|
|
1128
|
-
}, Ge = (
|
|
1129
|
-
const n =
|
|
1128
|
+
}, Ge = (s, e, t, r) => {
|
|
1129
|
+
const n = Us(s, e);
|
|
1130
1130
|
let o = 0, a, i = (c) => {
|
|
1131
|
-
a || (a = !0,
|
|
1131
|
+
a || (a = !0, r && r(c));
|
|
1132
1132
|
};
|
|
1133
1133
|
return new ReadableStream({
|
|
1134
1134
|
async pull(c) {
|
|
@@ -1139,9 +1139,9 @@ const at = (t) => {
|
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
1141
|
let p = d.byteLength;
|
|
1142
|
-
if (
|
|
1142
|
+
if (t) {
|
|
1143
1143
|
let O = o += p;
|
|
1144
|
-
|
|
1144
|
+
t(O);
|
|
1145
1145
|
}
|
|
1146
1146
|
c.enqueue(new Uint8Array(d));
|
|
1147
1147
|
} catch (l) {
|
|
@@ -1154,54 +1154,54 @@ const at = (t) => {
|
|
|
1154
1154
|
}, {
|
|
1155
1155
|
highWaterMark: 2
|
|
1156
1156
|
});
|
|
1157
|
-
}, pe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1157
|
+
}, pe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ct = pe && typeof ReadableStream == "function", Vs = pe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((s) => (e) => s.encode(e))(new TextEncoder()) : async (s) => new Uint8Array(await new Response(s).arrayBuffer())), lt = (s, ...e) => {
|
|
1158
1158
|
try {
|
|
1159
|
-
return !!
|
|
1159
|
+
return !!s(...e);
|
|
1160
1160
|
} catch {
|
|
1161
1161
|
return !1;
|
|
1162
1162
|
}
|
|
1163
|
-
},
|
|
1164
|
-
let
|
|
1163
|
+
}, Ds = ct && lt(() => {
|
|
1164
|
+
let s = !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 s = !0, "half";
|
|
1170
1170
|
}
|
|
1171
1171
|
}).headers.has("Content-Type");
|
|
1172
|
-
return
|
|
1173
|
-
}), He = 64 * 1024, Re =
|
|
1174
|
-
stream: Re && ((
|
|
1172
|
+
return s && !e;
|
|
1173
|
+
}), He = 64 * 1024, Re = ct && lt(() => u.isReadableStream(new Response("").body)), ae = {
|
|
1174
|
+
stream: Re && ((s) => s.body)
|
|
1175
1175
|
};
|
|
1176
|
-
pe && ((
|
|
1176
|
+
pe && ((s) => {
|
|
1177
1177
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1178
|
-
!ae[e] && (ae[e] = u.isFunction(
|
|
1179
|
-
throw new E(`Response type '${e}' is not supported`, E.ERR_NOT_SUPPORT,
|
|
1178
|
+
!ae[e] && (ae[e] = u.isFunction(s[e]) ? (t) => t[e]() : (t, r) => {
|
|
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
|
|
1184
|
-
if (
|
|
1183
|
+
const Gs = async (s) => {
|
|
1184
|
+
if (s == null)
|
|
1185
1185
|
return 0;
|
|
1186
|
-
if (u.isBlob(
|
|
1187
|
-
return
|
|
1188
|
-
if (u.isSpecCompliantForm(
|
|
1186
|
+
if (u.isBlob(s))
|
|
1187
|
+
return s.size;
|
|
1188
|
+
if (u.isSpecCompliantForm(s))
|
|
1189
1189
|
return (await new Request(I.origin, {
|
|
1190
1190
|
method: "POST",
|
|
1191
|
-
body:
|
|
1191
|
+
body: s
|
|
1192
1192
|
}).arrayBuffer()).byteLength;
|
|
1193
|
-
if (u.isArrayBufferView(
|
|
1194
|
-
return
|
|
1195
|
-
if (u.isURLSearchParams(
|
|
1196
|
-
return (await
|
|
1197
|
-
},
|
|
1198
|
-
const
|
|
1199
|
-
return
|
|
1200
|
-
},
|
|
1193
|
+
if (u.isArrayBufferView(s) || u.isArrayBuffer(s))
|
|
1194
|
+
return s.byteLength;
|
|
1195
|
+
if (u.isURLSearchParams(s) && (s = s + ""), u.isString(s))
|
|
1196
|
+
return (await Vs(s)).byteLength;
|
|
1197
|
+
}, Hs = async (s, e) => {
|
|
1198
|
+
const t = u.toFiniteNumber(s.getContentLength());
|
|
1199
|
+
return t ?? Gs(e);
|
|
1200
|
+
}, xs = pe && (async (s) => {
|
|
1201
1201
|
let {
|
|
1202
1202
|
url: e,
|
|
1203
|
-
method:
|
|
1204
|
-
data:
|
|
1203
|
+
method: t,
|
|
1204
|
+
data: r,
|
|
1205
1205
|
signal: n,
|
|
1206
1206
|
cancelToken: o,
|
|
1207
1207
|
timeout: a,
|
|
@@ -1211,26 +1211,26 @@ const Dr = async (t) => {
|
|
|
1211
1211
|
headers: d,
|
|
1212
1212
|
withCredentials: p = "same-origin",
|
|
1213
1213
|
fetchOptions: O
|
|
1214
|
-
} =
|
|
1214
|
+
} = it(s);
|
|
1215
1215
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1216
|
-
let b =
|
|
1216
|
+
let b = Ls([n, o && o.toAbortSignal()], a), h;
|
|
1217
1217
|
const A = b && b.unsubscribe && (() => {
|
|
1218
1218
|
b.unsubscribe();
|
|
1219
1219
|
});
|
|
1220
1220
|
let f;
|
|
1221
1221
|
try {
|
|
1222
|
-
if (c &&
|
|
1222
|
+
if (c && Ds && t !== "get" && t !== "head" && (f = await Hs(d, r)) !== 0) {
|
|
1223
1223
|
let L = new Request(e, {
|
|
1224
1224
|
method: "POST",
|
|
1225
|
-
body:
|
|
1225
|
+
body: r,
|
|
1226
1226
|
duplex: "half"
|
|
1227
1227
|
}), x;
|
|
1228
|
-
if (u.isFormData(
|
|
1229
|
-
const [B, ee] =
|
|
1228
|
+
if (u.isFormData(r) && (x = L.headers.get("content-type")) && d.setContentType(x), L.body) {
|
|
1229
|
+
const [B, ee] = Fe(
|
|
1230
1230
|
f,
|
|
1231
1231
|
oe(Ve(c))
|
|
1232
1232
|
);
|
|
1233
|
-
|
|
1233
|
+
r = Ge(L.body, He, B, ee);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
u.isString(p) || (p = p ? "include" : "omit");
|
|
@@ -1238,9 +1238,9 @@ const Dr = async (t) => {
|
|
|
1238
1238
|
h = new Request(e, {
|
|
1239
1239
|
...O,
|
|
1240
1240
|
signal: b,
|
|
1241
|
-
method:
|
|
1241
|
+
method: t.toUpperCase(),
|
|
1242
1242
|
headers: d.normalize().toJSON(),
|
|
1243
|
-
body:
|
|
1243
|
+
body: r,
|
|
1244
1244
|
duplex: "half",
|
|
1245
1245
|
credentials: C ? p : void 0
|
|
1246
1246
|
});
|
|
@@ -1251,7 +1251,7 @@ const Dr = async (t) => {
|
|
|
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 && Fe(
|
|
1255
1255
|
x,
|
|
1256
1256
|
oe(Ve(i), !0)
|
|
1257
1257
|
) || [];
|
|
@@ -1263,55 +1263,55 @@ const Dr = async (t) => {
|
|
|
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"](_, s);
|
|
1267
1267
|
return !w && A && A(), await new Promise((L, x) => {
|
|
1268
|
-
|
|
1268
|
+
ot(L, x, {
|
|
1269
1269
|
data: G,
|
|
1270
|
-
headers:
|
|
1270
|
+
headers: U.from(_.headers),
|
|
1271
1271
|
status: _.status,
|
|
1272
1272
|
statusText: _.statusText,
|
|
1273
|
-
config:
|
|
1273
|
+
config: s,
|
|
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, s, 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, s, h);
|
|
1284
1284
|
}
|
|
1285
1285
|
}), Pe = {
|
|
1286
|
-
http:
|
|
1287
|
-
xhr:
|
|
1288
|
-
fetch:
|
|
1286
|
+
http: Zt,
|
|
1287
|
+
xhr: Is,
|
|
1288
|
+
fetch: xs
|
|
1289
1289
|
};
|
|
1290
|
-
u.forEach(Pe, (
|
|
1291
|
-
if (
|
|
1290
|
+
u.forEach(Pe, (s, e) => {
|
|
1291
|
+
if (s) {
|
|
1292
1292
|
try {
|
|
1293
|
-
Object.defineProperty(
|
|
1293
|
+
Object.defineProperty(s, "name", { value: e });
|
|
1294
1294
|
} catch {
|
|
1295
1295
|
}
|
|
1296
|
-
Object.defineProperty(
|
|
1296
|
+
Object.defineProperty(s, "adapterName", { value: e });
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
|
-
const xe = (
|
|
1300
|
-
getAdapter: (
|
|
1301
|
-
|
|
1302
|
-
const { length: e } =
|
|
1303
|
-
let
|
|
1299
|
+
const xe = (s) => `- ${s}`, Bs = (s) => u.isFunction(s) || s === null || s === !1, ut = {
|
|
1300
|
+
getAdapter: (s) => {
|
|
1301
|
+
s = u.isArray(s) ? s : [s];
|
|
1302
|
+
const { length: e } = s;
|
|
1303
|
+
let t, r;
|
|
1304
1304
|
const n = {};
|
|
1305
1305
|
for (let o = 0; o < e; o++) {
|
|
1306
|
-
|
|
1306
|
+
t = s[o];
|
|
1307
1307
|
let a;
|
|
1308
|
-
if (
|
|
1308
|
+
if (r = t, !Bs(t) && (r = Pe[(a = String(t)).toLowerCase()], r === void 0))
|
|
1309
1309
|
throw new E(`Unknown adapter '${a}'`);
|
|
1310
|
-
if (
|
|
1310
|
+
if (r)
|
|
1311
1311
|
break;
|
|
1312
|
-
n[a || "#" + o] =
|
|
1312
|
+
n[a || "#" + o] = r;
|
|
1313
1313
|
}
|
|
1314
|
-
if (!
|
|
1314
|
+
if (!r) {
|
|
1315
1315
|
const o = Object.entries(n).map(
|
|
1316
1316
|
([i, c]) => `adapter ${i} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1317
1317
|
);
|
|
@@ -1323,79 +1323,79 @@ const xe = (t) => `- ${t}`, xr = (t) => u.isFunction(t) || t === null || t === !
|
|
|
1323
1323
|
"ERR_NOT_SUPPORT"
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
|
-
return
|
|
1326
|
+
return r;
|
|
1327
1327
|
},
|
|
1328
1328
|
adapters: Pe
|
|
1329
1329
|
};
|
|
1330
|
-
function Ee(
|
|
1331
|
-
if (
|
|
1332
|
-
throw new Q(null,
|
|
1330
|
+
function Ee(s) {
|
|
1331
|
+
if (s.cancelToken && s.cancelToken.throwIfRequested(), s.signal && s.signal.aborted)
|
|
1332
|
+
throw new Q(null, s);
|
|
1333
1333
|
}
|
|
1334
|
-
function Be(
|
|
1335
|
-
return Ee(
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
), ["post", "put", "patch"].indexOf(
|
|
1339
|
-
return Ee(
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
),
|
|
1344
|
-
}, function(
|
|
1345
|
-
return
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
),
|
|
1334
|
+
function Be(s) {
|
|
1335
|
+
return Ee(s), s.headers = U.from(s.headers), s.data = me.call(
|
|
1336
|
+
s,
|
|
1337
|
+
s.transformRequest
|
|
1338
|
+
), ["post", "put", "patch"].indexOf(s.method) !== -1 && s.headers.setContentType("application/x-www-form-urlencoded", !1), ut.getAdapter(s.adapter || Z.adapter)(s).then(function(r) {
|
|
1339
|
+
return Ee(s), r.data = me.call(
|
|
1340
|
+
s,
|
|
1341
|
+
s.transformResponse,
|
|
1342
|
+
r
|
|
1343
|
+
), r.headers = U.from(r.headers), r;
|
|
1344
|
+
}, function(r) {
|
|
1345
|
+
return nt(r) || (Ee(s), r && r.response && (r.response.data = me.call(
|
|
1346
|
+
s,
|
|
1347
|
+
s.transformResponse,
|
|
1348
|
+
r.response
|
|
1349
|
+
), r.response.headers = U.from(r.response.headers))), Promise.reject(r);
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1353
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((
|
|
1354
|
-
he[
|
|
1355
|
-
return typeof
|
|
1352
|
+
const dt = "1.11.0", he = {};
|
|
1353
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((s, e) => {
|
|
1354
|
+
he[s] = function(r) {
|
|
1355
|
+
return typeof r === s || "a" + (e < 1 ? "n " : " ") + s;
|
|
1356
1356
|
};
|
|
1357
1357
|
});
|
|
1358
1358
|
const Me = {};
|
|
1359
|
-
he.transitional = function(e,
|
|
1359
|
+
he.transitional = function(e, t, r) {
|
|
1360
1360
|
function n(o, a) {
|
|
1361
|
-
return "[Axios v" +
|
|
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" + (t ? " in " + t : "")),
|
|
1367
1367
|
E.ERR_DEPRECATED
|
|
1368
1368
|
);
|
|
1369
|
-
return
|
|
1369
|
+
return t && !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" + t + " 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 (t, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
1379
1379
|
};
|
|
1380
|
-
function
|
|
1381
|
-
if (typeof
|
|
1380
|
+
function Ms(s, e, t) {
|
|
1381
|
+
if (typeof s != "object")
|
|
1382
1382
|
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
1383
|
-
const
|
|
1384
|
-
let n =
|
|
1383
|
+
const r = Object.keys(s);
|
|
1384
|
+
let n = r.length;
|
|
1385
1385
|
for (; n-- > 0; ) {
|
|
1386
|
-
const o =
|
|
1386
|
+
const o = r[n], a = e[o];
|
|
1387
1387
|
if (a) {
|
|
1388
|
-
const i =
|
|
1388
|
+
const i = s[o], c = i === void 0 || a(i, o, s);
|
|
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 (t !== !0)
|
|
1394
1394
|
throw new E("Unknown option " + o, E.ERR_BAD_OPTION);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
const ne = {
|
|
1398
|
-
assertOptions:
|
|
1398
|
+
assertOptions: Ms,
|
|
1399
1399
|
validators: he
|
|
1400
1400
|
}, V = ne.validators;
|
|
1401
1401
|
let k = class {
|
|
@@ -1413,53 +1413,53 @@ let k = class {
|
|
|
1413
1413
|
*
|
|
1414
1414
|
* @returns {Promise} The Promise to be fulfilled
|
|
1415
1415
|
*/
|
|
1416
|
-
async request(e,
|
|
1416
|
+
async request(e, t) {
|
|
1417
1417
|
try {
|
|
1418
|
-
return await this._request(e,
|
|
1419
|
-
} catch (
|
|
1420
|
-
if (
|
|
1418
|
+
return await this._request(e, t);
|
|
1419
|
+
} catch (r) {
|
|
1420
|
+
if (r instanceof Error) {
|
|
1421
1421
|
let n = {};
|
|
1422
1422
|
Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
|
|
1423
1423
|
const o = n.stack ? n.stack.replace(/^.+\n/, "") : "";
|
|
1424
1424
|
try {
|
|
1425
|
-
|
|
1426
|
-
` + o) :
|
|
1425
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1426
|
+
` + o) : r.stack = o;
|
|
1427
1427
|
} catch {
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
throw
|
|
1430
|
+
throw r;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
_request(e,
|
|
1434
|
-
typeof e == "string" ? (
|
|
1435
|
-
const { transitional:
|
|
1436
|
-
|
|
1433
|
+
_request(e, t) {
|
|
1434
|
+
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = v(this.defaults, t);
|
|
1435
|
+
const { transitional: r, paramsSerializer: n, headers: o } = t;
|
|
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) ? t.paramsSerializer = {
|
|
1441
1441
|
serialize: n
|
|
1442
1442
|
} : ne.assertOptions(n, {
|
|
1443
1443
|
encode: V.function,
|
|
1444
1444
|
serialize: V.function
|
|
1445
|
-
}, !0)),
|
|
1445
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), ne.assertOptions(t, {
|
|
1446
1446
|
baseUrl: V.spelling("baseURL"),
|
|
1447
1447
|
withXsrfToken: V.spelling("withXSRFToken")
|
|
1448
|
-
}, !0),
|
|
1448
|
+
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1449
1449
|
let a = o && u.merge(
|
|
1450
1450
|
o.common,
|
|
1451
|
-
o[
|
|
1451
|
+
o[t.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
|
+
), t.headers = U.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(t) === !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(t); 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 = t;
|
|
1477
1477
|
for (p = 0; p < O; ) {
|
|
1478
1478
|
const h = i[p++], A = i[p++];
|
|
1479
1479
|
try {
|
|
@@ -1494,25 +1494,25 @@ let k = class {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
getUri(e) {
|
|
1496
1496
|
e = v(this.defaults, e);
|
|
1497
|
-
const
|
|
1498
|
-
return
|
|
1497
|
+
const t = at(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1498
|
+
return tt(t, e.params, e.paramsSerializer);
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
1501
|
u.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1502
|
-
k.prototype[e] = function(
|
|
1503
|
-
return this.request(v(
|
|
1502
|
+
k.prototype[e] = function(t, r) {
|
|
1503
|
+
return this.request(v(r || {}, {
|
|
1504
1504
|
method: e,
|
|
1505
|
-
url:
|
|
1506
|
-
data: (
|
|
1505
|
+
url: t,
|
|
1506
|
+
data: (r || {}).data
|
|
1507
1507
|
}));
|
|
1508
1508
|
};
|
|
1509
1509
|
});
|
|
1510
1510
|
u.forEach(["post", "put", "patch"], function(e) {
|
|
1511
|
-
function r
|
|
1511
|
+
function t(r) {
|
|
1512
1512
|
return function(o, a, i) {
|
|
1513
1513
|
return this.request(v(i || {}, {
|
|
1514
1514
|
method: e,
|
|
1515
|
-
headers:
|
|
1515
|
+
headers: r ? {
|
|
1516
1516
|
"Content-Type": "multipart/form-data"
|
|
1517
1517
|
} : {},
|
|
1518
1518
|
url: o,
|
|
@@ -1520,33 +1520,33 @@ u.forEach(["post", "put", "patch"], function(e) {
|
|
|
1520
1520
|
}));
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
k.prototype[e] =
|
|
1523
|
+
k.prototype[e] = t(), k.prototype[e + "Form"] = t(!0);
|
|
1524
1524
|
});
|
|
1525
|
-
let
|
|
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 t;
|
|
1530
1530
|
this.promise = new Promise(function(o) {
|
|
1531
|
-
|
|
1531
|
+
t = o;
|
|
1532
1532
|
});
|
|
1533
|
-
const
|
|
1533
|
+
const r = this;
|
|
1534
1534
|
this.promise.then((n) => {
|
|
1535
|
-
if (!
|
|
1536
|
-
let o =
|
|
1535
|
+
if (!r._listeners) return;
|
|
1536
|
+
let o = r._listeners.length;
|
|
1537
1537
|
for (; o-- > 0; )
|
|
1538
|
-
|
|
1539
|
-
|
|
1538
|
+
r._listeners[o](n);
|
|
1539
|
+
r._listeners = null;
|
|
1540
1540
|
}), this.promise.then = (n) => {
|
|
1541
1541
|
let o;
|
|
1542
1542
|
const a = new Promise((i) => {
|
|
1543
|
-
|
|
1543
|
+
r.subscribe(i), o = i;
|
|
1544
1544
|
}).then(n);
|
|
1545
1545
|
return a.cancel = function() {
|
|
1546
|
-
|
|
1546
|
+
r.unsubscribe(o);
|
|
1547
1547
|
}, a;
|
|
1548
1548
|
}, e(function(o, a, i) {
|
|
1549
|
-
|
|
1549
|
+
r.reason || (r.reason = new Q(o, a, i), t(r.reason));
|
|
1550
1550
|
});
|
|
1551
1551
|
}
|
|
1552
1552
|
/**
|
|
@@ -1572,14 +1572,14 @@ let Mr = class dt {
|
|
|
1572
1572
|
unsubscribe(e) {
|
|
1573
1573
|
if (!this._listeners)
|
|
1574
1574
|
return;
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1575
|
+
const t = this._listeners.indexOf(e);
|
|
1576
|
+
t !== -1 && this._listeners.splice(t, 1);
|
|
1577
1577
|
}
|
|
1578
1578
|
toAbortSignal() {
|
|
1579
|
-
const e = new AbortController(),
|
|
1580
|
-
e.abort(
|
|
1579
|
+
const e = new AbortController(), t = (r) => {
|
|
1580
|
+
e.abort(r);
|
|
1581
1581
|
};
|
|
1582
|
-
return this.subscribe(
|
|
1582
|
+
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
1583
1583
|
}
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
@@ -1588,22 +1588,22 @@ let Mr = class dt {
|
|
|
1588
1588
|
static source() {
|
|
1589
1589
|
let e;
|
|
1590
1590
|
return {
|
|
1591
|
-
token: new
|
|
1591
|
+
token: new pt(function(n) {
|
|
1592
1592
|
e = n;
|
|
1593
1593
|
}),
|
|
1594
1594
|
cancel: e
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
|
-
function
|
|
1599
|
-
return function(
|
|
1600
|
-
return
|
|
1598
|
+
function ks(s) {
|
|
1599
|
+
return function(t) {
|
|
1600
|
+
return s.apply(null, t);
|
|
1601
1601
|
};
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1604
|
-
return u.isObject(
|
|
1603
|
+
function vs(s) {
|
|
1604
|
+
return u.isObject(s) && s.isAxiosError === !0;
|
|
1605
1605
|
}
|
|
1606
|
-
const
|
|
1606
|
+
const Te = {
|
|
1607
1607
|
Continue: 100,
|
|
1608
1608
|
SwitchingProtocols: 101,
|
|
1609
1609
|
Processing: 102,
|
|
@@ -1668,107 +1668,107 @@ const ge = {
|
|
|
1668
1668
|
NotExtended: 510,
|
|
1669
1669
|
NetworkAuthenticationRequired: 511
|
|
1670
1670
|
};
|
|
1671
|
-
Object.entries(
|
|
1672
|
-
|
|
1671
|
+
Object.entries(Te).forEach(([s, e]) => {
|
|
1672
|
+
Te[e] = s;
|
|
1673
1673
|
});
|
|
1674
|
-
function
|
|
1675
|
-
const e = new k(
|
|
1676
|
-
return u.extend(
|
|
1677
|
-
return
|
|
1678
|
-
},
|
|
1674
|
+
function ht(s) {
|
|
1675
|
+
const e = new k(s), t = ve(k.prototype.request, e);
|
|
1676
|
+
return u.extend(t, k.prototype, e, { allOwnKeys: !0 }), u.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
1677
|
+
return ht(v(s, n));
|
|
1678
|
+
}, t;
|
|
1679
1679
|
}
|
|
1680
|
-
const m =
|
|
1680
|
+
const m = ht(Z);
|
|
1681
1681
|
m.Axios = k;
|
|
1682
1682
|
m.CanceledError = Q;
|
|
1683
|
-
m.CancelToken =
|
|
1684
|
-
m.isCancel =
|
|
1685
|
-
m.VERSION =
|
|
1683
|
+
m.CancelToken = js;
|
|
1684
|
+
m.isCancel = nt;
|
|
1685
|
+
m.VERSION = dt;
|
|
1686
1686
|
m.toFormData = de;
|
|
1687
1687
|
m.AxiosError = E;
|
|
1688
1688
|
m.Cancel = m.CanceledError;
|
|
1689
1689
|
m.all = function(e) {
|
|
1690
1690
|
return Promise.all(e);
|
|
1691
1691
|
};
|
|
1692
|
-
m.spread =
|
|
1693
|
-
m.isAxiosError =
|
|
1692
|
+
m.spread = ks;
|
|
1693
|
+
m.isAxiosError = vs;
|
|
1694
1694
|
m.mergeConfig = v;
|
|
1695
|
-
m.AxiosHeaders =
|
|
1696
|
-
m.formToJSON = (
|
|
1697
|
-
m.getAdapter =
|
|
1698
|
-
m.HttpStatusCode =
|
|
1695
|
+
m.AxiosHeaders = U;
|
|
1696
|
+
m.formToJSON = (s) => rt(u.isHTMLForm(s) ? new FormData(s) : s);
|
|
1697
|
+
m.getAdapter = ut.getAdapter;
|
|
1698
|
+
m.HttpStatusCode = Te;
|
|
1699
1699
|
m.default = m;
|
|
1700
1700
|
const {
|
|
1701
|
-
Axios:
|
|
1702
|
-
AxiosError:
|
|
1703
|
-
CanceledError:
|
|
1704
|
-
isCancel:
|
|
1705
|
-
CancelToken:
|
|
1706
|
-
VERSION:
|
|
1707
|
-
all:
|
|
1708
|
-
Cancel:
|
|
1709
|
-
isAxiosError:
|
|
1710
|
-
spread:
|
|
1711
|
-
toFormData:
|
|
1712
|
-
AxiosHeaders:
|
|
1713
|
-
HttpStatusCode:
|
|
1714
|
-
formToJSON:
|
|
1715
|
-
getAdapter:
|
|
1716
|
-
mergeConfig:
|
|
1701
|
+
Axios: Ar,
|
|
1702
|
+
AxiosError: Or,
|
|
1703
|
+
CanceledError: yr,
|
|
1704
|
+
isCancel: Sr,
|
|
1705
|
+
CancelToken: Rr,
|
|
1706
|
+
VERSION: Pr,
|
|
1707
|
+
all: Tr,
|
|
1708
|
+
Cancel: gr,
|
|
1709
|
+
isAxiosError: Cr,
|
|
1710
|
+
spread: br,
|
|
1711
|
+
toFormData: _r,
|
|
1712
|
+
AxiosHeaders: wr,
|
|
1713
|
+
HttpStatusCode: Ir,
|
|
1714
|
+
formToJSON: Lr,
|
|
1715
|
+
getAdapter: Nr,
|
|
1716
|
+
mergeConfig: Ur
|
|
1717
1717
|
} = m, S = "http://localhost:41101".replace(/\/+$/, "");
|
|
1718
1718
|
class z {
|
|
1719
|
-
constructor(e,
|
|
1720
|
-
this.basePath =
|
|
1719
|
+
constructor(e, t = S, r = m) {
|
|
1720
|
+
this.basePath = t, 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 zs extends Error {
|
|
1724
|
+
constructor(e, t) {
|
|
1725
|
+
super(t), this.field = e, this.name = "RequiredError";
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
|
-
const R = "https://example.com", y = function(
|
|
1729
|
-
if (
|
|
1730
|
-
throw new
|
|
1731
|
-
}, P = function(
|
|
1732
|
-
const
|
|
1733
|
-
for (const
|
|
1734
|
-
for (const n in
|
|
1735
|
-
if (Array.isArray(
|
|
1736
|
-
|
|
1737
|
-
for (const o of
|
|
1738
|
-
|
|
1728
|
+
const R = "https://example.com", y = function(s, e, t) {
|
|
1729
|
+
if (t == null)
|
|
1730
|
+
throw new zs(e, `Required parameter ${e} was null or undefined when calling ${s}.`);
|
|
1731
|
+
}, P = function(s, ...e) {
|
|
1732
|
+
const t = new URLSearchParams(s.search);
|
|
1733
|
+
for (const r of e)
|
|
1734
|
+
for (const n in r)
|
|
1735
|
+
if (Array.isArray(r[n])) {
|
|
1736
|
+
t.delete(n);
|
|
1737
|
+
for (const o of r[n])
|
|
1738
|
+
t.append(n, o);
|
|
1739
1739
|
} else
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
}, D = function(
|
|
1743
|
-
const
|
|
1744
|
-
return (
|
|
1745
|
-
},
|
|
1746
|
-
return
|
|
1747
|
-
},
|
|
1748
|
-
return (n = e, o =
|
|
1749
|
-
const a = { ...
|
|
1740
|
+
t.set(n, r[n]);
|
|
1741
|
+
s.search = t.toString();
|
|
1742
|
+
}, D = function(s, e, t) {
|
|
1743
|
+
const r = typeof s != "string";
|
|
1744
|
+
return (r && t && t.isJsonMime ? t.isJsonMime(e.headers["Content-Type"]) : r) ? JSON.stringify(s !== void 0 ? s : {}) : s || "";
|
|
1745
|
+
}, T = function(s) {
|
|
1746
|
+
return s.pathname + s.search + s.hash;
|
|
1747
|
+
}, g = function(s, e, t, r) {
|
|
1748
|
+
return (n = e, o = t) => {
|
|
1749
|
+
const a = { ...s.options, url: ((r == null ? void 0 : r.basePath) || o) + s.url };
|
|
1750
1750
|
return n.request(a);
|
|
1751
1751
|
};
|
|
1752
|
-
},
|
|
1752
|
+
}, qs = function(s) {
|
|
1753
1753
|
return {
|
|
1754
1754
|
/**
|
|
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: - **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. - **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. You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and
|
|
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/).
|
|
1756
1756
|
* @summary detect and check quality
|
|
1757
1757
|
* @param {DetectRequest} detectRequest
|
|
1758
1758
|
* @param {string} [xRequestID] Request header label.
|
|
1759
1759
|
* @param {*} [options] Override http request option.
|
|
1760
1760
|
* @throws {RequiredError}
|
|
1761
1761
|
*/
|
|
1762
|
-
detect: async (e,
|
|
1762
|
+
detect: async (e, t, r = {}) => {
|
|
1763
1763
|
y("detect", "detectRequest", e);
|
|
1764
1764
|
const n = "/api/detect", o = new URL(n, R);
|
|
1765
1765
|
let a;
|
|
1766
|
-
|
|
1767
|
-
const i = { method: "POST", ...a, ...
|
|
1768
|
-
|
|
1766
|
+
s && (a = s.baseOptions);
|
|
1767
|
+
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1768
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
1769
1769
|
let d = a && a.headers ? a.headers : {};
|
|
1770
|
-
return i.headers = { ...c, ...d, ...
|
|
1771
|
-
url:
|
|
1770
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
1771
|
+
url: T(o),
|
|
1772
1772
|
options: i
|
|
1773
1773
|
};
|
|
1774
1774
|
},
|
|
@@ -1780,16 +1780,16 @@ const R = "https://example.com", y = function(t, e, r) {
|
|
|
1780
1780
|
* @param {*} [options] Override http request option.
|
|
1781
1781
|
* @throws {RequiredError}
|
|
1782
1782
|
*/
|
|
1783
|
-
match: async (e,
|
|
1783
|
+
match: async (e, t, r = {}) => {
|
|
1784
1784
|
y("match", "matchRequest", e);
|
|
1785
1785
|
const n = "/api/match", o = new URL(n, R);
|
|
1786
1786
|
let a;
|
|
1787
|
-
|
|
1788
|
-
const i = { method: "POST", ...a, ...
|
|
1789
|
-
|
|
1787
|
+
s && (a = s.baseOptions);
|
|
1788
|
+
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1789
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
1790
1790
|
let d = a && a.headers ? a.headers : {};
|
|
1791
|
-
return i.headers = { ...c, ...d, ...
|
|
1792
|
-
url:
|
|
1791
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
1792
|
+
url: T(o),
|
|
1793
1793
|
options: i
|
|
1794
1794
|
};
|
|
1795
1795
|
},
|
|
@@ -1801,34 +1801,34 @@ const R = "https://example.com", y = function(t, e, r) {
|
|
|
1801
1801
|
* @param {*} [options] Override http request option.
|
|
1802
1802
|
* @throws {RequiredError}
|
|
1803
1803
|
*/
|
|
1804
|
-
matchAndSearch: async (e,
|
|
1804
|
+
matchAndSearch: async (e, t, r = {}) => {
|
|
1805
1805
|
y("matchAndSearch", "matchAndSearchRequest", e);
|
|
1806
1806
|
const n = "/api/match_and_search", o = new URL(n, R);
|
|
1807
1807
|
let a;
|
|
1808
|
-
|
|
1809
|
-
const i = { method: "POST", ...a, ...
|
|
1810
|
-
|
|
1808
|
+
s && (a = s.baseOptions);
|
|
1809
|
+
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1810
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
1811
1811
|
let d = a && a.headers ? a.headers : {};
|
|
1812
|
-
return i.headers = { ...c, ...d, ...
|
|
1813
|
-
url:
|
|
1812
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
1813
|
+
url: T(o),
|
|
1814
1814
|
options: i
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
1817
|
};
|
|
1818
|
-
}, Ae = function(
|
|
1819
|
-
const e =
|
|
1818
|
+
}, Ae = function(s) {
|
|
1819
|
+
const e = qs(s);
|
|
1820
1820
|
return {
|
|
1821
1821
|
/**
|
|
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: - **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. - **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. You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and
|
|
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/).
|
|
1823
1823
|
* @summary detect and check quality
|
|
1824
1824
|
* @param {DetectRequest} detectRequest
|
|
1825
1825
|
* @param {string} [xRequestID] Request header label.
|
|
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(t, r, n) {
|
|
1830
|
+
const o = await e.detect(t, r, n);
|
|
1831
|
+
return g(o, m, S, s);
|
|
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(t, e, r) {
|
|
|
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(t, r, n) {
|
|
1842
|
+
const o = await e.match(t, r, n);
|
|
1843
|
+
return g(o, m, S, s);
|
|
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. If only one person is identified, match is not performed and only search is carried out.
|
|
@@ -1850,15 +1850,15 @@ const R = "https://example.com", y = function(t, e, r) {
|
|
|
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(t, r, n) {
|
|
1854
|
+
const o = await e.matchAndSearch(t, r, n);
|
|
1855
|
+
return g(o, m, S, s);
|
|
1856
1856
|
}
|
|
1857
1857
|
};
|
|
1858
1858
|
};
|
|
1859
|
-
let $
|
|
1859
|
+
let $s = class extends z {
|
|
1860
1860
|
/**
|
|
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: - **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. - **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. You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and
|
|
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
|
|
1863
1863
|
* @param {DetectRequest} detectRequest
|
|
1864
1864
|
* @param {string} [xRequestID] Request header label.
|
|
@@ -1866,8 +1866,8 @@ let $r = 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, t, r) {
|
|
1870
|
+
return Ae(this.configuration).detect(e, t, 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 $r = 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, t, r) {
|
|
1882
|
+
return Ae(this.configuration).match(e, t, 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. If only one person is identified, match is not performed and only search is carried out.
|
|
@@ -1890,11 +1890,11 @@ let $r = 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, t, r) {
|
|
1894
|
+
return Ae(this.configuration).matchAndSearch(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
1895
1895
|
}
|
|
1896
1896
|
};
|
|
1897
|
-
const
|
|
1897
|
+
const Vr = {
|
|
1898
1898
|
AGE: "Age",
|
|
1899
1899
|
EMOTION: "Emotion",
|
|
1900
1900
|
EYE_LEFT: "EyeLeft",
|
|
@@ -1908,13 +1908,13 @@ const Vs = {
|
|
|
1908
1908
|
OCCLUSION: "Occlusion",
|
|
1909
1909
|
STRONG_MAKEUP: "StrongMakeup",
|
|
1910
1910
|
HEADPHONES: "Headphones"
|
|
1911
|
-
},
|
|
1911
|
+
}, Dr = {
|
|
1912
1912
|
ALIGN_3x4: 0,
|
|
1913
1913
|
ALIGN_4x5: 1,
|
|
1914
1914
|
ALIGN_2x3: 2,
|
|
1915
1915
|
ALIGN_1x1: 3,
|
|
1916
1916
|
ALIGN_7x9: 4
|
|
1917
|
-
},
|
|
1917
|
+
}, Gr = {
|
|
1918
1918
|
IMAGE_CHARACTERISTICS: 1,
|
|
1919
1919
|
HEAD_SIZE_AND_POSITIONS: 2,
|
|
1920
1920
|
FACE_QUALITY: 3,
|
|
@@ -1923,7 +1923,7 @@ const Vs = {
|
|
|
1923
1923
|
POSE_AND_EXPRESSION: 6,
|
|
1924
1924
|
HEAD_OCCLUSION: 7,
|
|
1925
1925
|
BACKGROUND: 8
|
|
1926
|
-
},
|
|
1926
|
+
}, Hr = {
|
|
1927
1927
|
IMAGE_CHARACTERISTICS: "ImageCharacteristics",
|
|
1928
1928
|
HEAD_SIZE_AND_POSITIONS: "HeadSizeAndPosition",
|
|
1929
1929
|
FACE_QUALITY: "FaceQuality",
|
|
@@ -1932,11 +1932,11 @@ const Vs = {
|
|
|
1932
1932
|
POSE_AND_EXPRESSION: "PoseAndExpression",
|
|
1933
1933
|
HEAD_OCCLUSION: "HeadOcclusion",
|
|
1934
1934
|
BACKGROUND: "Background"
|
|
1935
|
-
},
|
|
1935
|
+
}, xr = {
|
|
1936
1936
|
QUALITY_STATUS_FALSE: 0,
|
|
1937
1937
|
QUALITY_STATUS_TRUE: 1,
|
|
1938
1938
|
QUALITY_STATUS_UNDETERMINED: 2
|
|
1939
|
-
},
|
|
1939
|
+
}, Br = {
|
|
1940
1940
|
IMAGE_WIDTH: "ImageWidth",
|
|
1941
1941
|
IMAGE_HEIGHT: "ImageHeight",
|
|
1942
1942
|
IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight",
|
|
@@ -1985,7 +1985,7 @@ const Vs = {
|
|
|
1985
1985
|
BACKGROUND_COLOR_MATCH: "BackgroundColorMatch",
|
|
1986
1986
|
ART_FACE: "ArtFace",
|
|
1987
1987
|
CONTACT_LENSES: "ContactLenses"
|
|
1988
|
-
},
|
|
1988
|
+
}, Mr = {
|
|
1989
1989
|
OLD_MODE: "OldMode",
|
|
1990
1990
|
QUALITY_FULL: "QualityFull",
|
|
1991
1991
|
QUALITY_ICAO: "QualityICAO",
|
|
@@ -1994,8 +1994,9 @@ const Vs = {
|
|
|
1994
1994
|
CROP_CENTRAL_FACE: "CropCentralFace",
|
|
1995
1995
|
CROP_ALL_FACES: "CropAllFaces",
|
|
1996
1996
|
THUMBNAIL: "Thumbnail",
|
|
1997
|
+
ATTRIBUTES_ALL: "AttributesAll",
|
|
1997
1998
|
EMPTY: ""
|
|
1998
|
-
},
|
|
1999
|
+
}, jr = {
|
|
1999
2000
|
FACER_OK: 0,
|
|
2000
2001
|
FR_IMAGE_EMPTY: 1,
|
|
2001
2002
|
FR_FACE_NOT_DETECTED: 2,
|
|
@@ -2037,10 +2038,10 @@ const Vs = {
|
|
|
2037
2038
|
FACER_ABORTED_LIVENESS_TRANSACTION: 252,
|
|
2038
2039
|
FACER_GENERAL_ERROR: 253,
|
|
2039
2040
|
FACER_PASSIVE_LIVENESS_FAIL: 254
|
|
2040
|
-
},
|
|
2041
|
+
}, kr = {
|
|
2041
2042
|
IN: "in",
|
|
2042
2043
|
NOT_IN: "nin"
|
|
2043
|
-
},
|
|
2044
|
+
}, Qs = {
|
|
2044
2045
|
DOCUMENT_PRINTED: 1,
|
|
2045
2046
|
DOCUMENT_RFID: 2,
|
|
2046
2047
|
LIVE: 3,
|
|
@@ -2048,33 +2049,33 @@ const Vs = {
|
|
|
2048
2049
|
EXTERNAL: 5,
|
|
2049
2050
|
GHOST: 6,
|
|
2050
2051
|
BARCODE: 7
|
|
2051
|
-
},
|
|
2052
|
+
}, vr = {
|
|
2052
2053
|
ACTIVE: 0,
|
|
2053
2054
|
PASSIVE: 1
|
|
2054
2055
|
};
|
|
2055
|
-
var
|
|
2056
|
-
for (var te = 0; te <
|
|
2057
|
-
|
|
2058
|
-
var ie = function(
|
|
2059
|
-
var e = new Uint8Array(
|
|
2060
|
-
for (
|
|
2061
|
-
n +=
|
|
2062
|
-
return
|
|
2056
|
+
var q = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ws = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
2057
|
+
for (var te = 0; te < q.length; te++)
|
|
2058
|
+
Ws[q.charCodeAt(te)] = te;
|
|
2059
|
+
var ie = function(s) {
|
|
2060
|
+
var e = new Uint8Array(s), t, r = e.length, n = "";
|
|
2061
|
+
for (t = 0; t < r; t += 3)
|
|
2062
|
+
n += q[e[t] >> 2], n += q[(e[t] & 3) << 4 | e[t + 1] >> 4], n += q[(e[t + 1] & 15) << 2 | e[t + 2] >> 6], n += q[e[t + 2] & 63];
|
|
2063
|
+
return r % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : r % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
2063
2064
|
};
|
|
2064
|
-
class
|
|
2065
|
-
constructor(e,
|
|
2066
|
-
this.superClass = new $
|
|
2065
|
+
class Ks {
|
|
2066
|
+
constructor(e, t, r) {
|
|
2067
|
+
this.superClass = new $s(e, t, r);
|
|
2067
2068
|
}
|
|
2068
|
-
async match(e,
|
|
2069
|
+
async match(e, t, r) {
|
|
2069
2070
|
for (const o of e.images)
|
|
2070
|
-
o.type || (o.type =
|
|
2071
|
-
return (await this.superClass.match(e,
|
|
2071
|
+
o.type || (o.type = Qs.LIVE), typeof o.data != "string" && (o.data = ie(o.data));
|
|
2072
|
+
return (await this.superClass.match(e, t, r)).data;
|
|
2072
2073
|
}
|
|
2073
|
-
async detect(e,
|
|
2074
|
-
return e.image && typeof e.image != "string" && (e.image = ie(e.image)), (await this.superClass.detect(e,
|
|
2074
|
+
async detect(e, t, r) {
|
|
2075
|
+
return e.image && typeof e.image != "string" && (e.image = ie(e.image)), (await this.superClass.detect(e, t, r)).data;
|
|
2075
2076
|
}
|
|
2076
2077
|
}
|
|
2077
|
-
const
|
|
2078
|
+
const Xs = function(s) {
|
|
2078
2079
|
return {
|
|
2079
2080
|
/**
|
|
2080
2081
|
*
|
|
@@ -2084,16 +2085,16 @@ const Kr = function(t) {
|
|
|
2084
2085
|
* @param {*} [options] Override http request option.
|
|
2085
2086
|
* @throws {RequiredError}
|
|
2086
2087
|
*/
|
|
2087
|
-
createGroup: async (e,
|
|
2088
|
+
createGroup: async (e, t, r = {}) => {
|
|
2088
2089
|
y("createGroup", "groupToCreate", e);
|
|
2089
2090
|
const n = "/api/groups", o = new URL(n, R);
|
|
2090
2091
|
let a;
|
|
2091
|
-
|
|
2092
|
-
const i = { method: "POST", ...a, ...
|
|
2093
|
-
|
|
2092
|
+
s && (a = s.baseOptions);
|
|
2093
|
+
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
2094
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
2094
2095
|
let d = a && a.headers ? a.headers : {};
|
|
2095
|
-
return i.headers = { ...c, ...d, ...
|
|
2096
|
-
url:
|
|
2096
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
2097
|
+
url: T(o),
|
|
2097
2098
|
options: i
|
|
2098
2099
|
};
|
|
2099
2100
|
},
|
|
@@ -2105,16 +2106,16 @@ const Kr = function(t) {
|
|
|
2105
2106
|
* @param {*} [options] Override http request option.
|
|
2106
2107
|
* @throws {RequiredError}
|
|
2107
2108
|
*/
|
|
2108
|
-
deleteGroup: async (e,
|
|
2109
|
+
deleteGroup: async (e, t, r = {}) => {
|
|
2109
2110
|
y("deleteGroup", "groupId", e);
|
|
2110
2111
|
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2111
2112
|
let a;
|
|
2112
|
-
|
|
2113
|
-
const i = { method: "DELETE", ...a, ...
|
|
2114
|
-
|
|
2113
|
+
s && (a = s.baseOptions);
|
|
2114
|
+
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
2115
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2115
2116
|
let d = a && a.headers ? a.headers : {};
|
|
2116
|
-
return i.headers = { ...c, ...d, ...
|
|
2117
|
-
url:
|
|
2117
|
+
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2118
|
+
url: T(o),
|
|
2118
2119
|
options: i
|
|
2119
2120
|
};
|
|
2120
2121
|
},
|
|
@@ -2127,15 +2128,15 @@ const Kr = function(t) {
|
|
|
2127
2128
|
* @param {*} [options] Override http request option.
|
|
2128
2129
|
* @throws {RequiredError}
|
|
2129
2130
|
*/
|
|
2130
|
-
getAllGroups: async (e,
|
|
2131
|
+
getAllGroups: async (e, t, r, n = {}) => {
|
|
2131
2132
|
const o = "/api/groups", a = new URL(o, R);
|
|
2132
2133
|
let i;
|
|
2133
|
-
|
|
2134
|
+
s && (i = s.baseOptions);
|
|
2134
2135
|
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2135
|
-
e !== void 0 && (d.page = e),
|
|
2136
|
+
e !== void 0 && (d.page = e), t !== void 0 && (d.size = t), r != null && (l["X-RequestID"] = String(r)), P(a, d);
|
|
2136
2137
|
let p = i && i.headers ? i.headers : {};
|
|
2137
2138
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2138
|
-
url:
|
|
2139
|
+
url: T(a),
|
|
2139
2140
|
options: c
|
|
2140
2141
|
};
|
|
2141
2142
|
},
|
|
@@ -2149,16 +2150,16 @@ const Kr = function(t) {
|
|
|
2149
2150
|
* @param {*} [options] Override http request option.
|
|
2150
2151
|
* @throws {RequiredError}
|
|
2151
2152
|
*/
|
|
2152
|
-
getAllPersonsByGroupId: async (e,
|
|
2153
|
+
getAllPersonsByGroupId: async (e, t, r, n, o = {}) => {
|
|
2153
2154
|
y("getAllPersonsByGroupId", "groupId", e);
|
|
2154
2155
|
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2155
2156
|
let c;
|
|
2156
|
-
|
|
2157
|
+
s && (c = s.baseOptions);
|
|
2157
2158
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2158
|
-
|
|
2159
|
+
t !== void 0 && (p.page = t), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2159
2160
|
let O = c && c.headers ? c.headers : {};
|
|
2160
2161
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2161
|
-
url:
|
|
2162
|
+
url: T(i),
|
|
2162
2163
|
options: l
|
|
2163
2164
|
};
|
|
2164
2165
|
},
|
|
@@ -2170,16 +2171,16 @@ const Kr = function(t) {
|
|
|
2170
2171
|
* @param {*} [options] Override http request option.
|
|
2171
2172
|
* @throws {RequiredError}
|
|
2172
2173
|
*/
|
|
2173
|
-
getGroup: async (e,
|
|
2174
|
+
getGroup: async (e, t, r = {}) => {
|
|
2174
2175
|
y("getGroup", "groupId", e);
|
|
2175
2176
|
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2176
2177
|
let a;
|
|
2177
|
-
|
|
2178
|
-
const i = { method: "GET", ...a, ...
|
|
2179
|
-
|
|
2178
|
+
s && (a = s.baseOptions);
|
|
2179
|
+
const i = { method: "GET", ...a, ...r }, c = {}, l = {};
|
|
2180
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2180
2181
|
let d = a && a.headers ? a.headers : {};
|
|
2181
|
-
return i.headers = { ...c, ...d, ...
|
|
2182
|
-
url:
|
|
2182
|
+
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2183
|
+
url: T(o),
|
|
2183
2184
|
options: i
|
|
2184
2185
|
};
|
|
2185
2186
|
},
|
|
@@ -2192,16 +2193,16 @@ const Kr = function(t) {
|
|
|
2192
2193
|
* @param {*} [options] Override http request option.
|
|
2193
2194
|
* @throws {RequiredError}
|
|
2194
2195
|
*/
|
|
2195
|
-
updateGroup: async (e,
|
|
2196
|
-
y("updateGroup", "groupId", e), y("updateGroup", "groupToCreate",
|
|
2196
|
+
updateGroup: async (e, t, r, n = {}) => {
|
|
2197
|
+
y("updateGroup", "groupId", e), y("updateGroup", "groupToCreate", t);
|
|
2197
2198
|
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2198
2199
|
let i;
|
|
2199
|
-
|
|
2200
|
+
s && (i = s.baseOptions);
|
|
2200
2201
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2201
|
-
|
|
2202
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2202
2203
|
let p = i && i.headers ? i.headers : {};
|
|
2203
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2204
|
-
url:
|
|
2204
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2205
|
+
url: T(a),
|
|
2205
2206
|
options: c
|
|
2206
2207
|
};
|
|
2207
2208
|
},
|
|
@@ -2214,22 +2215,22 @@ const Kr = function(t) {
|
|
|
2214
2215
|
* @param {*} [options] Override http request option.
|
|
2215
2216
|
* @throws {RequiredError}
|
|
2216
2217
|
*/
|
|
2217
|
-
updatePersonsInGroup: async (e,
|
|
2218
|
-
y("updatePersonsInGroup", "groupId", e), y("updatePersonsInGroup", "updateGroup",
|
|
2218
|
+
updatePersonsInGroup: async (e, t, r, n = {}) => {
|
|
2219
|
+
y("updatePersonsInGroup", "groupId", e), y("updatePersonsInGroup", "updateGroup", t);
|
|
2219
2220
|
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2220
2221
|
let i;
|
|
2221
|
-
|
|
2222
|
+
s && (i = s.baseOptions);
|
|
2222
2223
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2223
|
-
|
|
2224
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2224
2225
|
let p = i && i.headers ? i.headers : {};
|
|
2225
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2226
|
-
url:
|
|
2226
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2227
|
+
url: T(a),
|
|
2227
2228
|
options: c
|
|
2228
2229
|
};
|
|
2229
2230
|
}
|
|
2230
2231
|
};
|
|
2231
|
-
}, M = function(
|
|
2232
|
-
const e =
|
|
2232
|
+
}, M = function(s) {
|
|
2233
|
+
const e = Xs(s);
|
|
2233
2234
|
return {
|
|
2234
2235
|
/**
|
|
2235
2236
|
*
|
|
@@ -2239,9 +2240,9 @@ const Kr = function(t) {
|
|
|
2239
2240
|
* @param {*} [options] Override http request option.
|
|
2240
2241
|
* @throws {RequiredError}
|
|
2241
2242
|
*/
|
|
2242
|
-
async createGroup(
|
|
2243
|
-
const o = await e.createGroup(
|
|
2244
|
-
return
|
|
2243
|
+
async createGroup(t, r, n) {
|
|
2244
|
+
const o = await e.createGroup(t, r, n);
|
|
2245
|
+
return g(o, m, S, s);
|
|
2245
2246
|
},
|
|
2246
2247
|
/**
|
|
2247
2248
|
*
|
|
@@ -2251,9 +2252,9 @@ const Kr = function(t) {
|
|
|
2251
2252
|
* @param {*} [options] Override http request option.
|
|
2252
2253
|
* @throws {RequiredError}
|
|
2253
2254
|
*/
|
|
2254
|
-
async deleteGroup(
|
|
2255
|
-
const o = await e.deleteGroup(
|
|
2256
|
-
return
|
|
2255
|
+
async deleteGroup(t, r, n) {
|
|
2256
|
+
const o = await e.deleteGroup(t, r, n);
|
|
2257
|
+
return g(o, m, S, s);
|
|
2257
2258
|
},
|
|
2258
2259
|
/**
|
|
2259
2260
|
*
|
|
@@ -2264,9 +2265,9 @@ const Kr = function(t) {
|
|
|
2264
2265
|
* @param {*} [options] Override http request option.
|
|
2265
2266
|
* @throws {RequiredError}
|
|
2266
2267
|
*/
|
|
2267
|
-
async getAllGroups(
|
|
2268
|
-
const a = await e.getAllGroups(
|
|
2269
|
-
return
|
|
2268
|
+
async getAllGroups(t, r, n, o) {
|
|
2269
|
+
const a = await e.getAllGroups(t, r, n, o);
|
|
2270
|
+
return g(a, m, S, s);
|
|
2270
2271
|
},
|
|
2271
2272
|
/**
|
|
2272
2273
|
*
|
|
@@ -2278,9 +2279,9 @@ const Kr = function(t) {
|
|
|
2278
2279
|
* @param {*} [options] Override http request option.
|
|
2279
2280
|
* @throws {RequiredError}
|
|
2280
2281
|
*/
|
|
2281
|
-
async getAllPersonsByGroupId(
|
|
2282
|
-
const i = await e.getAllPersonsByGroupId(
|
|
2283
|
-
return
|
|
2282
|
+
async getAllPersonsByGroupId(t, r, n, o, a) {
|
|
2283
|
+
const i = await e.getAllPersonsByGroupId(t, r, n, o, a);
|
|
2284
|
+
return g(i, m, S, s);
|
|
2284
2285
|
},
|
|
2285
2286
|
/**
|
|
2286
2287
|
*
|
|
@@ -2290,9 +2291,9 @@ const Kr = function(t) {
|
|
|
2290
2291
|
* @param {*} [options] Override http request option.
|
|
2291
2292
|
* @throws {RequiredError}
|
|
2292
2293
|
*/
|
|
2293
|
-
async getGroup(
|
|
2294
|
-
const o = await e.getGroup(
|
|
2295
|
-
return
|
|
2294
|
+
async getGroup(t, r, n) {
|
|
2295
|
+
const o = await e.getGroup(t, r, n);
|
|
2296
|
+
return g(o, m, S, s);
|
|
2296
2297
|
},
|
|
2297
2298
|
/**
|
|
2298
2299
|
*
|
|
@@ -2303,9 +2304,9 @@ const Kr = function(t) {
|
|
|
2303
2304
|
* @param {*} [options] Override http request option.
|
|
2304
2305
|
* @throws {RequiredError}
|
|
2305
2306
|
*/
|
|
2306
|
-
async updateGroup(
|
|
2307
|
-
const a = await e.updateGroup(
|
|
2308
|
-
return
|
|
2307
|
+
async updateGroup(t, r, n, o) {
|
|
2308
|
+
const a = await e.updateGroup(t, r, n, o);
|
|
2309
|
+
return g(a, m, S, s);
|
|
2309
2310
|
},
|
|
2310
2311
|
/**
|
|
2311
2312
|
*
|
|
@@ -2316,13 +2317,13 @@ const Kr = function(t) {
|
|
|
2316
2317
|
* @param {*} [options] Override http request option.
|
|
2317
2318
|
* @throws {RequiredError}
|
|
2318
2319
|
*/
|
|
2319
|
-
async updatePersonsInGroup(
|
|
2320
|
-
const a = await e.updatePersonsInGroup(
|
|
2321
|
-
return
|
|
2320
|
+
async updatePersonsInGroup(t, r, n, o) {
|
|
2321
|
+
const a = await e.updatePersonsInGroup(t, r, n, o);
|
|
2322
|
+
return g(a, m, S, s);
|
|
2322
2323
|
}
|
|
2323
2324
|
};
|
|
2324
2325
|
};
|
|
2325
|
-
let
|
|
2326
|
+
let Js = class extends z {
|
|
2326
2327
|
/**
|
|
2327
2328
|
*
|
|
2328
2329
|
* @summary Create group
|
|
@@ -2332,8 +2333,8 @@ let Xr = class extends z {
|
|
|
2332
2333
|
* @throws {RequiredError}
|
|
2333
2334
|
* @memberof GroupApi
|
|
2334
2335
|
*/
|
|
2335
|
-
createGroup(e,
|
|
2336
|
-
return M(this.configuration).createGroup(e,
|
|
2336
|
+
createGroup(e, t, r) {
|
|
2337
|
+
return M(this.configuration).createGroup(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2337
2338
|
}
|
|
2338
2339
|
/**
|
|
2339
2340
|
*
|
|
@@ -2344,8 +2345,8 @@ let Xr = class extends z {
|
|
|
2344
2345
|
* @throws {RequiredError}
|
|
2345
2346
|
* @memberof GroupApi
|
|
2346
2347
|
*/
|
|
2347
|
-
deleteGroup(e,
|
|
2348
|
-
return M(this.configuration).deleteGroup(e,
|
|
2348
|
+
deleteGroup(e, t, r) {
|
|
2349
|
+
return M(this.configuration).deleteGroup(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2349
2350
|
}
|
|
2350
2351
|
/**
|
|
2351
2352
|
*
|
|
@@ -2357,8 +2358,8 @@ let Xr = class extends z {
|
|
|
2357
2358
|
* @throws {RequiredError}
|
|
2358
2359
|
* @memberof GroupApi
|
|
2359
2360
|
*/
|
|
2360
|
-
getAllGroups(e,
|
|
2361
|
-
return M(this.configuration).getAllGroups(e,
|
|
2361
|
+
getAllGroups(e, t, r, n) {
|
|
2362
|
+
return M(this.configuration).getAllGroups(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2362
2363
|
}
|
|
2363
2364
|
/**
|
|
2364
2365
|
*
|
|
@@ -2371,8 +2372,8 @@ let Xr = class extends z {
|
|
|
2371
2372
|
* @throws {RequiredError}
|
|
2372
2373
|
* @memberof GroupApi
|
|
2373
2374
|
*/
|
|
2374
|
-
getAllPersonsByGroupId(e,
|
|
2375
|
-
return M(this.configuration).getAllPersonsByGroupId(e,
|
|
2375
|
+
getAllPersonsByGroupId(e, t, r, n, o) {
|
|
2376
|
+
return M(this.configuration).getAllPersonsByGroupId(e, t, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2376
2377
|
}
|
|
2377
2378
|
/**
|
|
2378
2379
|
*
|
|
@@ -2383,8 +2384,8 @@ let Xr = class extends z {
|
|
|
2383
2384
|
* @throws {RequiredError}
|
|
2384
2385
|
* @memberof GroupApi
|
|
2385
2386
|
*/
|
|
2386
|
-
getGroup(e,
|
|
2387
|
-
return M(this.configuration).getGroup(e,
|
|
2387
|
+
getGroup(e, t, r) {
|
|
2388
|
+
return M(this.configuration).getGroup(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2388
2389
|
}
|
|
2389
2390
|
/**
|
|
2390
2391
|
*
|
|
@@ -2396,8 +2397,8 @@ let Xr = class extends z {
|
|
|
2396
2397
|
* @throws {RequiredError}
|
|
2397
2398
|
* @memberof GroupApi
|
|
2398
2399
|
*/
|
|
2399
|
-
updateGroup(e,
|
|
2400
|
-
return M(this.configuration).updateGroup(e,
|
|
2400
|
+
updateGroup(e, t, r, n) {
|
|
2401
|
+
return M(this.configuration).updateGroup(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2401
2402
|
}
|
|
2402
2403
|
/**
|
|
2403
2404
|
*
|
|
@@ -2409,41 +2410,41 @@ let Xr = class extends z {
|
|
|
2409
2410
|
* @throws {RequiredError}
|
|
2410
2411
|
* @memberof GroupApi
|
|
2411
2412
|
*/
|
|
2412
|
-
updatePersonsInGroup(e,
|
|
2413
|
-
return M(this.configuration).updatePersonsInGroup(e,
|
|
2413
|
+
updatePersonsInGroup(e, t, r, n) {
|
|
2414
|
+
return M(this.configuration).updatePersonsInGroup(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2414
2415
|
}
|
|
2415
2416
|
};
|
|
2416
|
-
class
|
|
2417
|
-
constructor(e,
|
|
2418
|
-
this.superClass = new
|
|
2417
|
+
class Ys {
|
|
2418
|
+
constructor(e, t, r) {
|
|
2419
|
+
this.superClass = new Js(e, t, r);
|
|
2419
2420
|
}
|
|
2420
|
-
async createGroup(e,
|
|
2421
|
+
async createGroup(e, t, r) {
|
|
2421
2422
|
const n = {
|
|
2422
2423
|
...e,
|
|
2423
2424
|
metadata: e != null && e.metadata ? e.metadata : {}
|
|
2424
2425
|
};
|
|
2425
|
-
return (await this.superClass.createGroup(n,
|
|
2426
|
+
return (await this.superClass.createGroup(n, t, r)).data;
|
|
2426
2427
|
}
|
|
2427
|
-
async deleteGroup(e,
|
|
2428
|
-
await this.superClass.deleteGroup(e,
|
|
2428
|
+
async deleteGroup(e, t, r) {
|
|
2429
|
+
await this.superClass.deleteGroup(e, t, r);
|
|
2429
2430
|
}
|
|
2430
|
-
async getAllGroups(e,
|
|
2431
|
-
return (await this.superClass.getAllGroups(e,
|
|
2431
|
+
async getAllGroups(e, t, r, n) {
|
|
2432
|
+
return (await this.superClass.getAllGroups(e, t, r, n)).data;
|
|
2432
2433
|
}
|
|
2433
|
-
async getAllPersonsByGroupId(e,
|
|
2434
|
-
return (await this.superClass.getAllPersonsByGroupId(
|
|
2434
|
+
async getAllPersonsByGroupId(e, t, r, n, o) {
|
|
2435
|
+
return (await this.superClass.getAllPersonsByGroupId(r, e, t, n, o)).data;
|
|
2435
2436
|
}
|
|
2436
|
-
async getGroup(e,
|
|
2437
|
-
return (await this.superClass.getGroup(e,
|
|
2437
|
+
async getGroup(e, t, r) {
|
|
2438
|
+
return (await this.superClass.getGroup(e, t, r)).data;
|
|
2438
2439
|
}
|
|
2439
|
-
async updateGroup(e,
|
|
2440
|
-
await this.superClass.updateGroup(e,
|
|
2440
|
+
async updateGroup(e, t, r, n) {
|
|
2441
|
+
await this.superClass.updateGroup(e, t, r, n);
|
|
2441
2442
|
}
|
|
2442
|
-
async updatePersonsInGroup(e,
|
|
2443
|
-
await this.superClass.updatePersonsInGroup(e,
|
|
2443
|
+
async updatePersonsInGroup(e, t, r, n) {
|
|
2444
|
+
await this.superClass.updatePersonsInGroup(e, t, r, n);
|
|
2444
2445
|
}
|
|
2445
2446
|
}
|
|
2446
|
-
const
|
|
2447
|
+
const Zs = function(s) {
|
|
2447
2448
|
return {
|
|
2448
2449
|
/**
|
|
2449
2450
|
*
|
|
@@ -2454,37 +2455,37 @@ const Yr = function(t) {
|
|
|
2454
2455
|
* @param {*} [options] Override http request option.
|
|
2455
2456
|
* @throws {RequiredError}
|
|
2456
2457
|
*/
|
|
2457
|
-
addImageToPerson: async (e,
|
|
2458
|
-
y("addImageToPerson", "personId", e), y("addImageToPerson", "addImageToPersonRequest",
|
|
2458
|
+
addImageToPerson: async (e, t, r, n = {}) => {
|
|
2459
|
+
y("addImageToPerson", "personId", e), y("addImageToPerson", "addImageToPersonRequest", t);
|
|
2459
2460
|
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2460
2461
|
let i;
|
|
2461
|
-
|
|
2462
|
+
s && (i = s.baseOptions);
|
|
2462
2463
|
const c = { method: "POST", ...i, ...n }, l = {}, d = {};
|
|
2463
|
-
|
|
2464
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2464
2465
|
let p = i && i.headers ? i.headers : {};
|
|
2465
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2466
|
-
url:
|
|
2466
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2467
|
+
url: T(a),
|
|
2467
2468
|
options: c
|
|
2468
2469
|
};
|
|
2469
2470
|
},
|
|
2470
2471
|
/**
|
|
2471
2472
|
*
|
|
2472
2473
|
* @summary Create person
|
|
2473
|
-
* @param {
|
|
2474
|
+
* @param {PersonsRequest} personsRequest
|
|
2474
2475
|
* @param {string} [xRequestID] Request header label.
|
|
2475
2476
|
* @param {*} [options] Override http request option.
|
|
2476
2477
|
* @throws {RequiredError}
|
|
2477
2478
|
*/
|
|
2478
|
-
createPerson: async (e,
|
|
2479
|
-
y("createPerson", "
|
|
2479
|
+
createPerson: async (e, t, r = {}) => {
|
|
2480
|
+
y("createPerson", "personsRequest", e);
|
|
2480
2481
|
const n = "/api/persons", o = new URL(n, R);
|
|
2481
2482
|
let a;
|
|
2482
|
-
|
|
2483
|
-
const i = { method: "POST", ...a, ...
|
|
2484
|
-
|
|
2483
|
+
s && (a = s.baseOptions);
|
|
2484
|
+
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
2485
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
2485
2486
|
let d = a && a.headers ? a.headers : {};
|
|
2486
|
-
return i.headers = { ...c, ...d, ...
|
|
2487
|
-
url:
|
|
2487
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
2488
|
+
url: T(o),
|
|
2488
2489
|
options: i
|
|
2489
2490
|
};
|
|
2490
2491
|
},
|
|
@@ -2497,16 +2498,16 @@ const Yr = function(t) {
|
|
|
2497
2498
|
* @param {*} [options] Override http request option.
|
|
2498
2499
|
* @throws {RequiredError}
|
|
2499
2500
|
*/
|
|
2500
|
-
deleteImageOfPerson: async (e,
|
|
2501
|
-
y("deleteImageOfPerson", "imageId", e), y("deleteImageOfPerson", "personId",
|
|
2502
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(
|
|
2501
|
+
deleteImageOfPerson: async (e, t, r, n = {}) => {
|
|
2502
|
+
y("deleteImageOfPerson", "imageId", e), y("deleteImageOfPerson", "personId", t);
|
|
2503
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, R);
|
|
2503
2504
|
let i;
|
|
2504
|
-
|
|
2505
|
+
s && (i = s.baseOptions);
|
|
2505
2506
|
const c = { method: "DELETE", ...i, ...n }, l = {}, d = {};
|
|
2506
|
-
|
|
2507
|
+
r != null && (l["X-RequestID"] = String(r)), P(a, d);
|
|
2507
2508
|
let p = i && i.headers ? i.headers : {};
|
|
2508
2509
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2509
|
-
url:
|
|
2510
|
+
url: T(a),
|
|
2510
2511
|
options: c
|
|
2511
2512
|
};
|
|
2512
2513
|
},
|
|
@@ -2518,16 +2519,16 @@ const Yr = function(t) {
|
|
|
2518
2519
|
* @param {*} [options] Override http request option.
|
|
2519
2520
|
* @throws {RequiredError}
|
|
2520
2521
|
*/
|
|
2521
|
-
deletePerson: async (e,
|
|
2522
|
+
deletePerson: async (e, t, r = {}) => {
|
|
2522
2523
|
y("deletePerson", "personId", e);
|
|
2523
2524
|
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2524
2525
|
let a;
|
|
2525
|
-
|
|
2526
|
-
const i = { method: "DELETE", ...a, ...
|
|
2527
|
-
|
|
2526
|
+
s && (a = s.baseOptions);
|
|
2527
|
+
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
2528
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2528
2529
|
let d = a && a.headers ? a.headers : {};
|
|
2529
|
-
return i.headers = { ...c, ...d, ...
|
|
2530
|
-
url:
|
|
2530
|
+
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2531
|
+
url: T(o),
|
|
2531
2532
|
options: i
|
|
2532
2533
|
};
|
|
2533
2534
|
},
|
|
@@ -2541,16 +2542,16 @@ const Yr = function(t) {
|
|
|
2541
2542
|
* @param {*} [options] Override http request option.
|
|
2542
2543
|
* @throws {RequiredError}
|
|
2543
2544
|
*/
|
|
2544
|
-
getAllGroupsByPersonId: async (e,
|
|
2545
|
+
getAllGroupsByPersonId: async (e, t, r, n, o = {}) => {
|
|
2545
2546
|
y("getAllGroupsByPersonId", "personId", e);
|
|
2546
2547
|
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2547
2548
|
let c;
|
|
2548
|
-
|
|
2549
|
+
s && (c = s.baseOptions);
|
|
2549
2550
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2550
|
-
|
|
2551
|
+
t !== void 0 && (p.page = t), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2551
2552
|
let O = c && c.headers ? c.headers : {};
|
|
2552
2553
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2553
|
-
url:
|
|
2554
|
+
url: T(i),
|
|
2554
2555
|
options: l
|
|
2555
2556
|
};
|
|
2556
2557
|
},
|
|
@@ -2564,16 +2565,16 @@ const Yr = function(t) {
|
|
|
2564
2565
|
* @param {*} [options] Override http request option.
|
|
2565
2566
|
* @throws {RequiredError}
|
|
2566
2567
|
*/
|
|
2567
|
-
getAllImagesByPersonId: async (e,
|
|
2568
|
+
getAllImagesByPersonId: async (e, t, r, n, o = {}) => {
|
|
2568
2569
|
y("getAllImagesByPersonId", "personId", e);
|
|
2569
2570
|
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2570
2571
|
let c;
|
|
2571
|
-
|
|
2572
|
+
s && (c = s.baseOptions);
|
|
2572
2573
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2573
|
-
|
|
2574
|
+
t !== void 0 && (p.page = t), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2574
2575
|
let O = c && c.headers ? c.headers : {};
|
|
2575
2576
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2576
|
-
url:
|
|
2577
|
+
url: T(i),
|
|
2577
2578
|
options: l
|
|
2578
2579
|
};
|
|
2579
2580
|
},
|
|
@@ -2586,16 +2587,16 @@ const Yr = function(t) {
|
|
|
2586
2587
|
* @param {*} [options] Override http request option.
|
|
2587
2588
|
* @throws {RequiredError}
|
|
2588
2589
|
*/
|
|
2589
|
-
getImageOfPerson: async (e,
|
|
2590
|
-
y("getImageOfPerson", "imageId", e), y("getImageOfPerson", "personId",
|
|
2591
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(
|
|
2590
|
+
getImageOfPerson: async (e, t, r, n = {}) => {
|
|
2591
|
+
y("getImageOfPerson", "imageId", e), y("getImageOfPerson", "personId", t);
|
|
2592
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, R);
|
|
2592
2593
|
let i;
|
|
2593
|
-
|
|
2594
|
+
s && (i = s.baseOptions);
|
|
2594
2595
|
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2595
|
-
|
|
2596
|
+
r != null && (l["X-RequestID"] = String(r)), P(a, d);
|
|
2596
2597
|
let p = i && i.headers ? i.headers : {};
|
|
2597
2598
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2598
|
-
url:
|
|
2599
|
+
url: T(a),
|
|
2599
2600
|
options: c
|
|
2600
2601
|
};
|
|
2601
2602
|
},
|
|
@@ -2607,16 +2608,16 @@ const Yr = function(t) {
|
|
|
2607
2608
|
* @param {*} [options] Override http request option.
|
|
2608
2609
|
* @throws {RequiredError}
|
|
2609
2610
|
*/
|
|
2610
|
-
getPerson: async (e,
|
|
2611
|
+
getPerson: async (e, t, r = {}) => {
|
|
2611
2612
|
y("getPerson", "personId", e);
|
|
2612
2613
|
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2613
2614
|
let a;
|
|
2614
|
-
|
|
2615
|
-
const i = { method: "GET", ...a, ...
|
|
2616
|
-
|
|
2615
|
+
s && (a = s.baseOptions);
|
|
2616
|
+
const i = { method: "GET", ...a, ...r }, c = {}, l = {};
|
|
2617
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2617
2618
|
let d = a && a.headers ? a.headers : {};
|
|
2618
|
-
return i.headers = { ...c, ...d, ...
|
|
2619
|
-
url:
|
|
2619
|
+
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2620
|
+
url: T(o),
|
|
2620
2621
|
options: i
|
|
2621
2622
|
};
|
|
2622
2623
|
},
|
|
@@ -2629,22 +2630,22 @@ const Yr = function(t) {
|
|
|
2629
2630
|
* @param {*} [options] Override http request option.
|
|
2630
2631
|
* @throws {RequiredError}
|
|
2631
2632
|
*/
|
|
2632
|
-
updatePerson: async (e,
|
|
2633
|
-
y("updatePerson", "personId", e), y("updatePerson", "personToUpdateFields",
|
|
2633
|
+
updatePerson: async (e, t, r, n = {}) => {
|
|
2634
|
+
y("updatePerson", "personId", e), y("updatePerson", "personToUpdateFields", t);
|
|
2634
2635
|
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2635
2636
|
let i;
|
|
2636
|
-
|
|
2637
|
+
s && (i = s.baseOptions);
|
|
2637
2638
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2638
|
-
|
|
2639
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2639
2640
|
let p = i && i.headers ? i.headers : {};
|
|
2640
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2641
|
-
url:
|
|
2641
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2642
|
+
url: T(a),
|
|
2642
2643
|
options: c
|
|
2643
2644
|
};
|
|
2644
2645
|
}
|
|
2645
2646
|
};
|
|
2646
|
-
}, H = function(
|
|
2647
|
-
const e =
|
|
2647
|
+
}, H = function(s) {
|
|
2648
|
+
const e = Zs(s);
|
|
2648
2649
|
return {
|
|
2649
2650
|
/**
|
|
2650
2651
|
*
|
|
@@ -2655,21 +2656,21 @@ const Yr = function(t) {
|
|
|
2655
2656
|
* @param {*} [options] Override http request option.
|
|
2656
2657
|
* @throws {RequiredError}
|
|
2657
2658
|
*/
|
|
2658
|
-
async addImageToPerson(
|
|
2659
|
-
const a = await e.addImageToPerson(
|
|
2660
|
-
return
|
|
2659
|
+
async addImageToPerson(t, r, n, o) {
|
|
2660
|
+
const a = await e.addImageToPerson(t, r, n, o);
|
|
2661
|
+
return g(a, m, S, s);
|
|
2661
2662
|
},
|
|
2662
2663
|
/**
|
|
2663
2664
|
*
|
|
2664
2665
|
* @summary Create person
|
|
2665
|
-
* @param {
|
|
2666
|
+
* @param {PersonsRequest} personsRequest
|
|
2666
2667
|
* @param {string} [xRequestID] Request header label.
|
|
2667
2668
|
* @param {*} [options] Override http request option.
|
|
2668
2669
|
* @throws {RequiredError}
|
|
2669
2670
|
*/
|
|
2670
|
-
async createPerson(
|
|
2671
|
-
const o = await e.createPerson(
|
|
2672
|
-
return
|
|
2671
|
+
async createPerson(t, r, n) {
|
|
2672
|
+
const o = await e.createPerson(t, r, n);
|
|
2673
|
+
return g(o, m, S, s);
|
|
2673
2674
|
},
|
|
2674
2675
|
/**
|
|
2675
2676
|
*
|
|
@@ -2680,9 +2681,9 @@ const Yr = function(t) {
|
|
|
2680
2681
|
* @param {*} [options] Override http request option.
|
|
2681
2682
|
* @throws {RequiredError}
|
|
2682
2683
|
*/
|
|
2683
|
-
async deleteImageOfPerson(
|
|
2684
|
-
const a = await e.deleteImageOfPerson(
|
|
2685
|
-
return
|
|
2684
|
+
async deleteImageOfPerson(t, r, n, o) {
|
|
2685
|
+
const a = await e.deleteImageOfPerson(t, r, n, o);
|
|
2686
|
+
return g(a, m, S, s);
|
|
2686
2687
|
},
|
|
2687
2688
|
/**
|
|
2688
2689
|
*
|
|
@@ -2692,9 +2693,9 @@ const Yr = function(t) {
|
|
|
2692
2693
|
* @param {*} [options] Override http request option.
|
|
2693
2694
|
* @throws {RequiredError}
|
|
2694
2695
|
*/
|
|
2695
|
-
async deletePerson(
|
|
2696
|
-
const o = await e.deletePerson(
|
|
2697
|
-
return
|
|
2696
|
+
async deletePerson(t, r, n) {
|
|
2697
|
+
const o = await e.deletePerson(t, r, n);
|
|
2698
|
+
return g(o, m, S, s);
|
|
2698
2699
|
},
|
|
2699
2700
|
/**
|
|
2700
2701
|
*
|
|
@@ -2706,9 +2707,9 @@ const Yr = function(t) {
|
|
|
2706
2707
|
* @param {*} [options] Override http request option.
|
|
2707
2708
|
* @throws {RequiredError}
|
|
2708
2709
|
*/
|
|
2709
|
-
async getAllGroupsByPersonId(
|
|
2710
|
-
const i = await e.getAllGroupsByPersonId(
|
|
2711
|
-
return
|
|
2710
|
+
async getAllGroupsByPersonId(t, r, n, o, a) {
|
|
2711
|
+
const i = await e.getAllGroupsByPersonId(t, r, n, o, a);
|
|
2712
|
+
return g(i, m, S, s);
|
|
2712
2713
|
},
|
|
2713
2714
|
/**
|
|
2714
2715
|
*
|
|
@@ -2720,9 +2721,9 @@ const Yr = function(t) {
|
|
|
2720
2721
|
* @param {*} [options] Override http request option.
|
|
2721
2722
|
* @throws {RequiredError}
|
|
2722
2723
|
*/
|
|
2723
|
-
async getAllImagesByPersonId(
|
|
2724
|
-
const i = await e.getAllImagesByPersonId(
|
|
2725
|
-
return
|
|
2724
|
+
async getAllImagesByPersonId(t, r, n, o, a) {
|
|
2725
|
+
const i = await e.getAllImagesByPersonId(t, r, n, o, a);
|
|
2726
|
+
return g(i, m, S, s);
|
|
2726
2727
|
},
|
|
2727
2728
|
/**
|
|
2728
2729
|
*
|
|
@@ -2733,9 +2734,9 @@ const Yr = function(t) {
|
|
|
2733
2734
|
* @param {*} [options] Override http request option.
|
|
2734
2735
|
* @throws {RequiredError}
|
|
2735
2736
|
*/
|
|
2736
|
-
async getImageOfPerson(
|
|
2737
|
-
const a = await e.getImageOfPerson(
|
|
2738
|
-
return
|
|
2737
|
+
async getImageOfPerson(t, r, n, o) {
|
|
2738
|
+
const a = await e.getImageOfPerson(t, r, n, o);
|
|
2739
|
+
return g(a, m, S, s);
|
|
2739
2740
|
},
|
|
2740
2741
|
/**
|
|
2741
2742
|
*
|
|
@@ -2745,9 +2746,9 @@ const Yr = function(t) {
|
|
|
2745
2746
|
* @param {*} [options] Override http request option.
|
|
2746
2747
|
* @throws {RequiredError}
|
|
2747
2748
|
*/
|
|
2748
|
-
async getPerson(
|
|
2749
|
-
const o = await e.getPerson(
|
|
2750
|
-
return
|
|
2749
|
+
async getPerson(t, r, n) {
|
|
2750
|
+
const o = await e.getPerson(t, r, n);
|
|
2751
|
+
return g(o, m, S, s);
|
|
2751
2752
|
},
|
|
2752
2753
|
/**
|
|
2753
2754
|
*
|
|
@@ -2758,13 +2759,13 @@ const Yr = function(t) {
|
|
|
2758
2759
|
* @param {*} [options] Override http request option.
|
|
2759
2760
|
* @throws {RequiredError}
|
|
2760
2761
|
*/
|
|
2761
|
-
async updatePerson(
|
|
2762
|
-
const a = await e.updatePerson(
|
|
2763
|
-
return
|
|
2762
|
+
async updatePerson(t, r, n, o) {
|
|
2763
|
+
const a = await e.updatePerson(t, r, n, o);
|
|
2764
|
+
return g(a, m, S, s);
|
|
2764
2765
|
}
|
|
2765
2766
|
};
|
|
2766
2767
|
};
|
|
2767
|
-
let
|
|
2768
|
+
let er = class extends z {
|
|
2768
2769
|
/**
|
|
2769
2770
|
*
|
|
2770
2771
|
* @summary Add person image
|
|
@@ -2775,20 +2776,20 @@ let Zr = class extends z {
|
|
|
2775
2776
|
* @throws {RequiredError}
|
|
2776
2777
|
* @memberof PersonApi
|
|
2777
2778
|
*/
|
|
2778
|
-
addImageToPerson(e,
|
|
2779
|
-
return H(this.configuration).addImageToPerson(e,
|
|
2779
|
+
addImageToPerson(e, t, r, n) {
|
|
2780
|
+
return H(this.configuration).addImageToPerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2780
2781
|
}
|
|
2781
2782
|
/**
|
|
2782
2783
|
*
|
|
2783
2784
|
* @summary Create person
|
|
2784
|
-
* @param {
|
|
2785
|
+
* @param {PersonsRequest} personsRequest
|
|
2785
2786
|
* @param {string} [xRequestID] Request header label.
|
|
2786
2787
|
* @param {*} [options] Override http request option.
|
|
2787
2788
|
* @throws {RequiredError}
|
|
2788
2789
|
* @memberof PersonApi
|
|
2789
2790
|
*/
|
|
2790
|
-
createPerson(e,
|
|
2791
|
-
return H(this.configuration).createPerson(e,
|
|
2791
|
+
createPerson(e, t, r) {
|
|
2792
|
+
return H(this.configuration).createPerson(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2792
2793
|
}
|
|
2793
2794
|
/**
|
|
2794
2795
|
*
|
|
@@ -2800,8 +2801,8 @@ let Zr = class extends z {
|
|
|
2800
2801
|
* @throws {RequiredError}
|
|
2801
2802
|
* @memberof PersonApi
|
|
2802
2803
|
*/
|
|
2803
|
-
deleteImageOfPerson(e,
|
|
2804
|
-
return H(this.configuration).deleteImageOfPerson(e,
|
|
2804
|
+
deleteImageOfPerson(e, t, r, n) {
|
|
2805
|
+
return H(this.configuration).deleteImageOfPerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2805
2806
|
}
|
|
2806
2807
|
/**
|
|
2807
2808
|
*
|
|
@@ -2812,8 +2813,8 @@ let Zr = class extends z {
|
|
|
2812
2813
|
* @throws {RequiredError}
|
|
2813
2814
|
* @memberof PersonApi
|
|
2814
2815
|
*/
|
|
2815
|
-
deletePerson(e,
|
|
2816
|
-
return H(this.configuration).deletePerson(e,
|
|
2816
|
+
deletePerson(e, t, r) {
|
|
2817
|
+
return H(this.configuration).deletePerson(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2817
2818
|
}
|
|
2818
2819
|
/**
|
|
2819
2820
|
*
|
|
@@ -2826,8 +2827,8 @@ let Zr = class extends z {
|
|
|
2826
2827
|
* @throws {RequiredError}
|
|
2827
2828
|
* @memberof PersonApi
|
|
2828
2829
|
*/
|
|
2829
|
-
getAllGroupsByPersonId(e,
|
|
2830
|
-
return H(this.configuration).getAllGroupsByPersonId(e,
|
|
2830
|
+
getAllGroupsByPersonId(e, t, r, n, o) {
|
|
2831
|
+
return H(this.configuration).getAllGroupsByPersonId(e, t, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2831
2832
|
}
|
|
2832
2833
|
/**
|
|
2833
2834
|
*
|
|
@@ -2840,8 +2841,8 @@ let Zr = class extends z {
|
|
|
2840
2841
|
* @throws {RequiredError}
|
|
2841
2842
|
* @memberof PersonApi
|
|
2842
2843
|
*/
|
|
2843
|
-
getAllImagesByPersonId(e,
|
|
2844
|
-
return H(this.configuration).getAllImagesByPersonId(e,
|
|
2844
|
+
getAllImagesByPersonId(e, t, r, n, o) {
|
|
2845
|
+
return H(this.configuration).getAllImagesByPersonId(e, t, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2845
2846
|
}
|
|
2846
2847
|
/**
|
|
2847
2848
|
*
|
|
@@ -2853,8 +2854,8 @@ let Zr = class extends z {
|
|
|
2853
2854
|
* @throws {RequiredError}
|
|
2854
2855
|
* @memberof PersonApi
|
|
2855
2856
|
*/
|
|
2856
|
-
getImageOfPerson(e,
|
|
2857
|
-
return H(this.configuration).getImageOfPerson(e,
|
|
2857
|
+
getImageOfPerson(e, t, r, n) {
|
|
2858
|
+
return H(this.configuration).getImageOfPerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2858
2859
|
}
|
|
2859
2860
|
/**
|
|
2860
2861
|
*
|
|
@@ -2865,8 +2866,8 @@ let Zr = class extends z {
|
|
|
2865
2866
|
* @throws {RequiredError}
|
|
2866
2867
|
* @memberof PersonApi
|
|
2867
2868
|
*/
|
|
2868
|
-
getPerson(e,
|
|
2869
|
-
return H(this.configuration).getPerson(e,
|
|
2869
|
+
getPerson(e, t, r) {
|
|
2870
|
+
return H(this.configuration).getPerson(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2870
2871
|
}
|
|
2871
2872
|
/**
|
|
2872
2873
|
*
|
|
@@ -2878,112 +2879,115 @@ let Zr = class extends z {
|
|
|
2878
2879
|
* @throws {RequiredError}
|
|
2879
2880
|
* @memberof PersonApi
|
|
2880
2881
|
*/
|
|
2881
|
-
updatePerson(e,
|
|
2882
|
-
return H(this.configuration).updatePerson(e,
|
|
2882
|
+
updatePerson(e, t, r, n) {
|
|
2883
|
+
return H(this.configuration).updatePerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2883
2884
|
}
|
|
2884
2885
|
};
|
|
2885
|
-
class
|
|
2886
|
-
constructor(e,
|
|
2887
|
-
this.superClass = new
|
|
2886
|
+
class tr {
|
|
2887
|
+
constructor(e, t, r) {
|
|
2888
|
+
this.superClass = new er(e, t, r);
|
|
2888
2889
|
}
|
|
2889
|
-
async createPerson(e,
|
|
2890
|
+
async createPerson(e, t, r) {
|
|
2890
2891
|
const n = {
|
|
2891
2892
|
...e,
|
|
2892
2893
|
metadata: e != null && e.metadata ? e.metadata : {}
|
|
2893
2894
|
};
|
|
2894
|
-
return (await this.superClass.createPerson(n,
|
|
2895
|
+
return (await this.superClass.createPerson(n, t, r)).data;
|
|
2895
2896
|
}
|
|
2896
|
-
async addImageToPerson(e,
|
|
2897
|
+
async addImageToPerson(e, t, r, n) {
|
|
2897
2898
|
var a;
|
|
2898
|
-
return (a =
|
|
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;
|
|
2899
2900
|
}
|
|
2900
|
-
async deleteImageOfPerson(e,
|
|
2901
|
-
await this.superClass.deleteImageOfPerson(e,
|
|
2901
|
+
async deleteImageOfPerson(e, t, r, n) {
|
|
2902
|
+
await this.superClass.deleteImageOfPerson(e, t, r, n);
|
|
2902
2903
|
}
|
|
2903
|
-
async deletePerson(e,
|
|
2904
|
-
await this.superClass.deletePerson(e,
|
|
2904
|
+
async deletePerson(e, t, r) {
|
|
2905
|
+
await this.superClass.deletePerson(e, t, r);
|
|
2905
2906
|
}
|
|
2906
|
-
async getAllGroupsByPersonId(e,
|
|
2907
|
-
return (await this.superClass.getAllGroupsByPersonId(
|
|
2907
|
+
async getAllGroupsByPersonId(e, t, r, n, o) {
|
|
2908
|
+
return (await this.superClass.getAllGroupsByPersonId(r, e, t, n, o)).data;
|
|
2908
2909
|
}
|
|
2909
|
-
async getAllImagesByPersonId(e,
|
|
2910
|
-
return (await this.superClass.getAllImagesByPersonId(
|
|
2910
|
+
async getAllImagesByPersonId(e, t, r, n, o) {
|
|
2911
|
+
return (await this.superClass.getAllImagesByPersonId(r, e, t, n, o)).data;
|
|
2911
2912
|
}
|
|
2912
|
-
async getImageOfPerson(e,
|
|
2913
|
-
return (await this.superClass.getImageOfPerson(e,
|
|
2913
|
+
async getImageOfPerson(e, t, r, n) {
|
|
2914
|
+
return (await this.superClass.getImageOfPerson(e, t, r, n)).data;
|
|
2914
2915
|
}
|
|
2915
|
-
async getPerson(e,
|
|
2916
|
-
return (await this.superClass.getPerson(e,
|
|
2916
|
+
async getPerson(e, t, r) {
|
|
2917
|
+
return (await this.superClass.getPerson(e, t, r)).data;
|
|
2917
2918
|
}
|
|
2918
|
-
async updatePerson(e,
|
|
2919
|
-
await this.superClass.updatePerson(e,
|
|
2919
|
+
async updatePerson(e, t, r, n) {
|
|
2920
|
+
await this.superClass.updatePerson(e, t, r, n);
|
|
2920
2921
|
}
|
|
2921
2922
|
}
|
|
2922
|
-
const
|
|
2923
|
+
const sr = function(s) {
|
|
2923
2924
|
return {
|
|
2924
2925
|
/**
|
|
2925
2926
|
*
|
|
2926
2927
|
* @summary Find person by image in groups
|
|
2927
2928
|
* @param {SearchRequest} searchRequest
|
|
2928
2929
|
* @param {string} [xRequestID] Request header label.
|
|
2930
|
+
* @param {boolean} [withImages] When enabled, the response includes Base64-encoded images of matched persons. Each entry in the `persons` array contains an `images` field with image IDs and content. If omitted or set to false, images are excluded.
|
|
2929
2931
|
* @param {*} [options] Override http request option.
|
|
2930
2932
|
* @throws {RequiredError}
|
|
2931
2933
|
*/
|
|
2932
|
-
search: async (e, r,
|
|
2934
|
+
search: async (e, t, r, n = {}) => {
|
|
2933
2935
|
y("search", "searchRequest", e);
|
|
2934
|
-
const
|
|
2935
|
-
let
|
|
2936
|
-
|
|
2937
|
-
const
|
|
2938
|
-
r != null && (
|
|
2939
|
-
let
|
|
2940
|
-
return
|
|
2941
|
-
url:
|
|
2942
|
-
options:
|
|
2936
|
+
const o = "/api/search", a = new URL(o, R);
|
|
2937
|
+
let i;
|
|
2938
|
+
s && (i = s.baseOptions);
|
|
2939
|
+
const c = { method: "POST", ...i, ...n }, l = {}, d = {};
|
|
2940
|
+
r !== void 0 && (d.withImages = r), t != null && (l["X-RequestID"] = String(t)), l["Content-Type"] = "application/json", P(a, d);
|
|
2941
|
+
let p = i && i.headers ? i.headers : {};
|
|
2942
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(e, c, s), {
|
|
2943
|
+
url: T(a),
|
|
2944
|
+
options: c
|
|
2943
2945
|
};
|
|
2944
2946
|
}
|
|
2945
2947
|
};
|
|
2946
|
-
},
|
|
2947
|
-
const e =
|
|
2948
|
+
}, rr = function(s) {
|
|
2949
|
+
const e = sr(s);
|
|
2948
2950
|
return {
|
|
2949
2951
|
/**
|
|
2950
2952
|
*
|
|
2951
2953
|
* @summary Find person by image in groups
|
|
2952
2954
|
* @param {SearchRequest} searchRequest
|
|
2953
2955
|
* @param {string} [xRequestID] Request header label.
|
|
2956
|
+
* @param {boolean} [withImages] When enabled, the response includes Base64-encoded images of matched persons. Each entry in the `persons` array contains an `images` field with image IDs and content. If omitted or set to false, images are excluded.
|
|
2954
2957
|
* @param {*} [options] Override http request option.
|
|
2955
2958
|
* @throws {RequiredError}
|
|
2956
2959
|
*/
|
|
2957
|
-
async search(r,
|
|
2958
|
-
const
|
|
2959
|
-
return
|
|
2960
|
+
async search(t, r, n, o) {
|
|
2961
|
+
const a = await e.search(t, r, n, o);
|
|
2962
|
+
return g(a, m, S, s);
|
|
2960
2963
|
}
|
|
2961
2964
|
};
|
|
2962
2965
|
};
|
|
2963
|
-
let
|
|
2966
|
+
let nr = class extends z {
|
|
2964
2967
|
/**
|
|
2965
2968
|
*
|
|
2966
2969
|
* @summary Find person by image in groups
|
|
2967
2970
|
* @param {SearchRequest} searchRequest
|
|
2968
2971
|
* @param {string} [xRequestID] Request header label.
|
|
2972
|
+
* @param {boolean} [withImages] When enabled, the response includes Base64-encoded images of matched persons. Each entry in the `persons` array contains an `images` field with image IDs and content. If omitted or set to false, images are excluded.
|
|
2969
2973
|
* @param {*} [options] Override http request option.
|
|
2970
2974
|
* @throws {RequiredError}
|
|
2971
2975
|
* @memberof SearchApi
|
|
2972
2976
|
*/
|
|
2973
|
-
search(e, r,
|
|
2974
|
-
return
|
|
2977
|
+
search(e, t, r, n) {
|
|
2978
|
+
return rr(this.configuration).search(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2975
2979
|
}
|
|
2976
2980
|
};
|
|
2977
|
-
class
|
|
2978
|
-
constructor(e,
|
|
2979
|
-
this.superClass = new
|
|
2981
|
+
class or {
|
|
2982
|
+
constructor(e, t, r) {
|
|
2983
|
+
this.superClass = new nr(e, t, r);
|
|
2980
2984
|
}
|
|
2981
|
-
async search(e, r,
|
|
2982
|
-
var
|
|
2983
|
-
return (
|
|
2985
|
+
async search(e, t, r, n) {
|
|
2986
|
+
var a;
|
|
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
2988
|
}
|
|
2985
2989
|
}
|
|
2986
|
-
const
|
|
2990
|
+
const ar = function(s) {
|
|
2987
2991
|
return {
|
|
2988
2992
|
/**
|
|
2989
2993
|
*
|
|
@@ -2992,21 +2996,21 @@ const os = function(t) {
|
|
|
2992
2996
|
* @param {*} [options] Override http request option.
|
|
2993
2997
|
* @throws {RequiredError}
|
|
2994
2998
|
*/
|
|
2995
|
-
readiness: async (e,
|
|
2996
|
-
const
|
|
2999
|
+
readiness: async (e, t = {}) => {
|
|
3000
|
+
const r = "/api/readiness", n = new URL(r, R);
|
|
2997
3001
|
let o;
|
|
2998
|
-
|
|
2999
|
-
const a = { method: "GET", ...o, ...
|
|
3002
|
+
s && (o = s.baseOptions);
|
|
3003
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
3000
3004
|
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3001
3005
|
let l = o && o.headers ? o.headers : {};
|
|
3002
|
-
return a.headers = { ...i, ...l, ...
|
|
3003
|
-
url:
|
|
3006
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
3007
|
+
url: T(n),
|
|
3004
3008
|
options: a
|
|
3005
3009
|
};
|
|
3006
3010
|
}
|
|
3007
3011
|
};
|
|
3008
|
-
},
|
|
3009
|
-
const e =
|
|
3012
|
+
}, ir = function(s) {
|
|
3013
|
+
const e = ar(s);
|
|
3010
3014
|
return {
|
|
3011
3015
|
/**
|
|
3012
3016
|
*
|
|
@@ -3015,13 +3019,13 @@ const os = function(t) {
|
|
|
3015
3019
|
* @param {*} [options] Override http request option.
|
|
3016
3020
|
* @throws {RequiredError}
|
|
3017
3021
|
*/
|
|
3018
|
-
async readiness(
|
|
3019
|
-
const n = await e.readiness(
|
|
3020
|
-
return
|
|
3022
|
+
async readiness(t, r) {
|
|
3023
|
+
const n = await e.readiness(t, r);
|
|
3024
|
+
return g(n, m, S, s);
|
|
3021
3025
|
}
|
|
3022
3026
|
};
|
|
3023
3027
|
};
|
|
3024
|
-
let
|
|
3028
|
+
let cr = class extends z {
|
|
3025
3029
|
/**
|
|
3026
3030
|
*
|
|
3027
3031
|
* @summary Checking the license status
|
|
@@ -3030,20 +3034,41 @@ let is = class extends z {
|
|
|
3030
3034
|
* @throws {RequiredError}
|
|
3031
3035
|
* @memberof DiagnosticsApi
|
|
3032
3036
|
*/
|
|
3033
|
-
readiness(e,
|
|
3034
|
-
return
|
|
3037
|
+
readiness(e, t) {
|
|
3038
|
+
return ir(this.configuration).readiness(e, t).then((r) => r(this.axios, this.basePath));
|
|
3035
3039
|
}
|
|
3036
3040
|
};
|
|
3037
|
-
class
|
|
3038
|
-
constructor(e,
|
|
3039
|
-
this.superClass = new
|
|
3041
|
+
class lr {
|
|
3042
|
+
constructor(e, t, r) {
|
|
3043
|
+
this.superClass = new cr(e, t, r);
|
|
3040
3044
|
}
|
|
3041
|
-
async readiness(e,
|
|
3042
|
-
return (await this.superClass.readiness(e,
|
|
3045
|
+
async readiness(e, t) {
|
|
3046
|
+
return (await this.superClass.readiness(e, t)).data;
|
|
3043
3047
|
}
|
|
3044
3048
|
}
|
|
3045
|
-
const
|
|
3049
|
+
const ur = function(s) {
|
|
3046
3050
|
return {
|
|
3051
|
+
/**
|
|
3052
|
+
* 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.
|
|
3053
|
+
* @summary delete liveness transaction
|
|
3054
|
+
* @param {string} transactionId ID of the current liveness transaction.
|
|
3055
|
+
* @param {string} tag A unique tag associated with a liveness transaction session. Used to identify and delete the corresponding transaction.
|
|
3056
|
+
* @param {*} [options] Override http request option.
|
|
3057
|
+
* @throws {RequiredError}
|
|
3058
|
+
*/
|
|
3059
|
+
deleteLivenessTransaction: async (e, t, r = {}) => {
|
|
3060
|
+
y("deleteLivenessTransaction", "transactionId", e), y("deleteLivenessTransaction", "tag", t);
|
|
3061
|
+
const n = "/api/v2/liveness", o = new URL(n, R);
|
|
3062
|
+
let a;
|
|
3063
|
+
s && (a = s.baseOptions);
|
|
3064
|
+
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
3065
|
+
e !== void 0 && (l.transactionId = e), t !== void 0 && (l.tag = t), P(o, l);
|
|
3066
|
+
let d = a && a.headers ? a.headers : {};
|
|
3067
|
+
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
3068
|
+
url: T(o),
|
|
3069
|
+
options: i
|
|
3070
|
+
};
|
|
3071
|
+
},
|
|
3047
3072
|
/**
|
|
3048
3073
|
* 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}`.
|
|
3049
3074
|
* @summary liveness check
|
|
@@ -3051,23 +3076,35 @@ const ls = function(t) {
|
|
|
3051
3076
|
* @param {*} [options] Override http request option.
|
|
3052
3077
|
* @throws {RequiredError}
|
|
3053
3078
|
*/
|
|
3054
|
-
getLivenessTransactionInfo: async (e,
|
|
3079
|
+
getLivenessTransactionInfo: async (e, t = {}) => {
|
|
3055
3080
|
y("getLivenessTransactionInfo", "transactionId", e);
|
|
3056
|
-
const
|
|
3081
|
+
const r = "/api/v2/liveness", n = new URL(r, R);
|
|
3057
3082
|
let o;
|
|
3058
|
-
|
|
3059
|
-
const a = { method: "GET", ...o, ...
|
|
3083
|
+
s && (o = s.baseOptions);
|
|
3084
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
3060
3085
|
e !== void 0 && (c.transactionId = e), P(n, c);
|
|
3061
3086
|
let l = o && o.headers ? o.headers : {};
|
|
3062
|
-
return a.headers = { ...i, ...l, ...
|
|
3063
|
-
url:
|
|
3087
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
3088
|
+
url: T(n),
|
|
3064
3089
|
options: a
|
|
3065
3090
|
};
|
|
3066
3091
|
}
|
|
3067
3092
|
};
|
|
3068
|
-
},
|
|
3069
|
-
const e =
|
|
3093
|
+
}, je = function(s) {
|
|
3094
|
+
const e = ur(s);
|
|
3070
3095
|
return {
|
|
3096
|
+
/**
|
|
3097
|
+
* 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.
|
|
3098
|
+
* @summary delete liveness transaction
|
|
3099
|
+
* @param {string} transactionId ID of the current liveness transaction.
|
|
3100
|
+
* @param {string} tag A unique tag associated with a liveness transaction session. Used to identify and delete the corresponding transaction.
|
|
3101
|
+
* @param {*} [options] Override http request option.
|
|
3102
|
+
* @throws {RequiredError}
|
|
3103
|
+
*/
|
|
3104
|
+
async deleteLivenessTransaction(t, r, n) {
|
|
3105
|
+
const o = await e.deleteLivenessTransaction(t, r, n);
|
|
3106
|
+
return g(o, m, S, s);
|
|
3107
|
+
},
|
|
3071
3108
|
/**
|
|
3072
3109
|
* 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}`.
|
|
3073
3110
|
* @summary liveness check
|
|
@@ -3075,13 +3112,25 @@ const ls = function(t) {
|
|
|
3075
3112
|
* @param {*} [options] Override http request option.
|
|
3076
3113
|
* @throws {RequiredError}
|
|
3077
3114
|
*/
|
|
3078
|
-
async getLivenessTransactionInfo(
|
|
3079
|
-
const n = await e.getLivenessTransactionInfo(
|
|
3080
|
-
return
|
|
3115
|
+
async getLivenessTransactionInfo(t, r) {
|
|
3116
|
+
const n = await e.getLivenessTransactionInfo(t, r);
|
|
3117
|
+
return g(n, m, S, s);
|
|
3081
3118
|
}
|
|
3082
3119
|
};
|
|
3083
3120
|
};
|
|
3084
|
-
let
|
|
3121
|
+
let dr = class extends z {
|
|
3122
|
+
/**
|
|
3123
|
+
* 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
|
+
* @summary delete liveness transaction
|
|
3125
|
+
* @param {string} transactionId ID of the current liveness transaction.
|
|
3126
|
+
* @param {string} tag A unique tag associated with a liveness transaction session. Used to identify and delete the corresponding transaction.
|
|
3127
|
+
* @param {*} [options] Override http request option.
|
|
3128
|
+
* @throws {RequiredError}
|
|
3129
|
+
* @memberof Liveness20Api
|
|
3130
|
+
*/
|
|
3131
|
+
deleteLivenessTransaction(e, t, r) {
|
|
3132
|
+
return je(this.configuration).deleteLivenessTransaction(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
3133
|
+
}
|
|
3085
3134
|
/**
|
|
3086
3135
|
* 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}`.
|
|
3087
3136
|
* @summary liveness check
|
|
@@ -3090,127 +3139,127 @@ let ds = class extends z {
|
|
|
3090
3139
|
* @throws {RequiredError}
|
|
3091
3140
|
* @memberof Liveness20Api
|
|
3092
3141
|
*/
|
|
3093
|
-
getLivenessTransactionInfo(e,
|
|
3094
|
-
return
|
|
3142
|
+
getLivenessTransactionInfo(e, t) {
|
|
3143
|
+
return je(this.configuration).getLivenessTransactionInfo(e, t).then((r) => r(this.axios, this.basePath));
|
|
3095
3144
|
}
|
|
3096
3145
|
};
|
|
3097
|
-
class
|
|
3098
|
-
constructor(e,
|
|
3099
|
-
this.superClass = new
|
|
3146
|
+
class pr {
|
|
3147
|
+
constructor(e, t, r) {
|
|
3148
|
+
this.superClass = new dr(e, t, r);
|
|
3100
3149
|
}
|
|
3101
|
-
async getLivenessTransactionInfo(e,
|
|
3102
|
-
return (await this.superClass.getLivenessTransactionInfo(e,
|
|
3150
|
+
async getLivenessTransactionInfo(e, t) {
|
|
3151
|
+
return (await this.superClass.getLivenessTransactionInfo(e, t)).data;
|
|
3103
3152
|
}
|
|
3104
3153
|
}
|
|
3105
|
-
class
|
|
3106
|
-
constructor(e,
|
|
3107
|
-
this.basePath =
|
|
3154
|
+
class Kr {
|
|
3155
|
+
constructor(e, t = S, r = m) {
|
|
3156
|
+
this.basePath = t, this.axios = r, this.matchApi = new Ks(e, t, r), this.groupApi = new Ys(e, t, r), this.personApi = new tr(e, t, r), this.searchApi = new or(e, t, r), this.diagnosticsApi = new lr(e, t, r), this.livenessApi = new pr(e, t, r);
|
|
3108
3157
|
}
|
|
3109
3158
|
}
|
|
3110
|
-
const
|
|
3159
|
+
const hr = function(s) {
|
|
3111
3160
|
return {
|
|
3112
3161
|
/**
|
|
3113
|
-
*
|
|
3162
|
+
* 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/).
|
|
3114
3163
|
* @summary Server healthcheck
|
|
3115
3164
|
* @param {string} [xRequestID] Request header label.
|
|
3116
3165
|
* @param {*} [options] Override http request option.
|
|
3117
3166
|
* @throws {RequiredError}
|
|
3118
3167
|
*/
|
|
3119
|
-
healthz: async (e,
|
|
3120
|
-
const
|
|
3168
|
+
healthz: async (e, t = {}) => {
|
|
3169
|
+
const r = "/api/healthz", n = new URL(r, R);
|
|
3121
3170
|
let o;
|
|
3122
|
-
|
|
3123
|
-
const a = { method: "GET", ...o, ...
|
|
3171
|
+
s && (o = s.baseOptions);
|
|
3172
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
3124
3173
|
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3125
3174
|
let l = o && o.headers ? o.headers : {};
|
|
3126
|
-
return a.headers = { ...i, ...l, ...
|
|
3127
|
-
url:
|
|
3175
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
3176
|
+
url: T(n),
|
|
3128
3177
|
options: a
|
|
3129
3178
|
};
|
|
3130
3179
|
},
|
|
3131
3180
|
/**
|
|
3132
|
-
*
|
|
3181
|
+
* 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`).
|
|
3133
3182
|
* @summary License healthcheck
|
|
3134
3183
|
* @param {string} [xRequestID] Request header label.
|
|
3135
3184
|
* @param {*} [options] Override http request option.
|
|
3136
3185
|
* @throws {RequiredError}
|
|
3137
3186
|
*/
|
|
3138
|
-
readyz: async (e,
|
|
3139
|
-
const
|
|
3187
|
+
readyz: async (e, t = {}) => {
|
|
3188
|
+
const r = "/api/readyz", n = new URL(r, R);
|
|
3140
3189
|
let o;
|
|
3141
|
-
|
|
3142
|
-
const a = { method: "GET", ...o, ...
|
|
3190
|
+
s && (o = s.baseOptions);
|
|
3191
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
3143
3192
|
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3144
3193
|
let l = o && o.headers ? o.headers : {};
|
|
3145
|
-
return a.headers = { ...i, ...l, ...
|
|
3146
|
-
url:
|
|
3194
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
3195
|
+
url: T(n),
|
|
3147
3196
|
options: a
|
|
3148
3197
|
};
|
|
3149
3198
|
}
|
|
3150
3199
|
};
|
|
3151
|
-
},
|
|
3152
|
-
const e =
|
|
3200
|
+
}, ke = function(s) {
|
|
3201
|
+
const e = hr(s);
|
|
3153
3202
|
return {
|
|
3154
3203
|
/**
|
|
3155
|
-
*
|
|
3204
|
+
* 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/).
|
|
3156
3205
|
* @summary Server healthcheck
|
|
3157
3206
|
* @param {string} [xRequestID] Request header label.
|
|
3158
3207
|
* @param {*} [options] Override http request option.
|
|
3159
3208
|
* @throws {RequiredError}
|
|
3160
3209
|
*/
|
|
3161
|
-
async healthz(
|
|
3162
|
-
const n = await e.healthz(
|
|
3163
|
-
return
|
|
3210
|
+
async healthz(t, r) {
|
|
3211
|
+
const n = await e.healthz(t, r);
|
|
3212
|
+
return g(n, m, S, s);
|
|
3164
3213
|
},
|
|
3165
3214
|
/**
|
|
3166
|
-
*
|
|
3215
|
+
* 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`).
|
|
3167
3216
|
* @summary License healthcheck
|
|
3168
3217
|
* @param {string} [xRequestID] Request header label.
|
|
3169
3218
|
* @param {*} [options] Override http request option.
|
|
3170
3219
|
* @throws {RequiredError}
|
|
3171
3220
|
*/
|
|
3172
|
-
async readyz(
|
|
3173
|
-
const n = await e.readyz(
|
|
3174
|
-
return
|
|
3221
|
+
async readyz(t, r) {
|
|
3222
|
+
const n = await e.readyz(t, r);
|
|
3223
|
+
return g(n, m, S, s);
|
|
3175
3224
|
}
|
|
3176
3225
|
};
|
|
3177
3226
|
};
|
|
3178
|
-
let
|
|
3227
|
+
let fr = class extends z {
|
|
3179
3228
|
/**
|
|
3180
|
-
*
|
|
3229
|
+
* 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/).
|
|
3181
3230
|
* @summary Server healthcheck
|
|
3182
3231
|
* @param {string} [xRequestID] Request header label.
|
|
3183
3232
|
* @param {*} [options] Override http request option.
|
|
3184
3233
|
* @throws {RequiredError}
|
|
3185
3234
|
* @memberof HealthcheckApi
|
|
3186
3235
|
*/
|
|
3187
|
-
healthz(e,
|
|
3188
|
-
return
|
|
3236
|
+
healthz(e, t) {
|
|
3237
|
+
return ke(this.configuration).healthz(e, t).then((r) => r(this.axios, this.basePath));
|
|
3189
3238
|
}
|
|
3190
3239
|
/**
|
|
3191
|
-
*
|
|
3240
|
+
* 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`).
|
|
3192
3241
|
* @summary License healthcheck
|
|
3193
3242
|
* @param {string} [xRequestID] Request header label.
|
|
3194
3243
|
* @param {*} [options] Override http request option.
|
|
3195
3244
|
* @throws {RequiredError}
|
|
3196
3245
|
* @memberof HealthcheckApi
|
|
3197
3246
|
*/
|
|
3198
|
-
readyz(e,
|
|
3199
|
-
return
|
|
3247
|
+
readyz(e, t) {
|
|
3248
|
+
return ke(this.configuration).readyz(e, t).then((r) => r(this.axios, this.basePath));
|
|
3200
3249
|
}
|
|
3201
3250
|
};
|
|
3202
|
-
class
|
|
3203
|
-
constructor(e,
|
|
3204
|
-
this.superClass = new
|
|
3251
|
+
class Jr {
|
|
3252
|
+
constructor(e, t, r) {
|
|
3253
|
+
this.superClass = new fr(e, t, r);
|
|
3205
3254
|
}
|
|
3206
|
-
async healthz(e,
|
|
3207
|
-
return (await this.superClass.healthz(e,
|
|
3255
|
+
async healthz(e, t) {
|
|
3256
|
+
return (await this.superClass.healthz(e, t)).data;
|
|
3208
3257
|
}
|
|
3209
|
-
async readyz(e,
|
|
3210
|
-
return (await this.superClass.readyz(e,
|
|
3258
|
+
async readyz(e, t) {
|
|
3259
|
+
return (await this.superClass.readyz(e, t)).data;
|
|
3211
3260
|
}
|
|
3212
3261
|
}
|
|
3213
|
-
class
|
|
3262
|
+
class Yr {
|
|
3214
3263
|
constructor(e = {}) {
|
|
3215
3264
|
this.apiKey = e.apiKey, this.username = e.username, this.password = e.password, this.accessToken = e.accessToken, this.basePath = e.basePath, this.baseOptions = e.baseOptions, this.formDataCtor = e.formDataCtor;
|
|
3216
3265
|
}
|
|
@@ -3225,29 +3274,29 @@ class Ys {
|
|
|
3225
3274
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3226
3275
|
*/
|
|
3227
3276
|
isJsonMime(e) {
|
|
3228
|
-
const
|
|
3229
|
-
return e !== null && (
|
|
3277
|
+
const t = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3278
|
+
return e !== null && (t.test(e) || e.toLowerCase() === "application/json-patch+json");
|
|
3230
3279
|
}
|
|
3231
3280
|
}
|
|
3232
3281
|
export {
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3282
|
+
Yr as Configuration,
|
|
3283
|
+
lr as DiagnosticsApi,
|
|
3284
|
+
Vr as FaceAttribute,
|
|
3285
|
+
Dr as FaceImageQualityAlignType,
|
|
3286
|
+
Gr as FaceImageQualityGroups,
|
|
3287
|
+
Hr as FaceImageQualityGroupsStrings,
|
|
3288
|
+
xr as FaceImageQualityStatus,
|
|
3289
|
+
Br as FaceQualityConfigName,
|
|
3290
|
+
Mr as FaceQualityScenarios,
|
|
3291
|
+
jr as FaceSDKResultCode,
|
|
3292
|
+
Kr as FaceSdk,
|
|
3293
|
+
kr as FilterOp,
|
|
3294
|
+
Ys as GroupApi,
|
|
3295
|
+
Jr as HealthcheckApi,
|
|
3296
|
+
Qs as ImageSource,
|
|
3297
|
+
pr as Liveness20Api,
|
|
3298
|
+
vr as LivenessType,
|
|
3299
|
+
Ks as MatchApi,
|
|
3300
|
+
tr as PersonApi,
|
|
3301
|
+
or as SearchApi
|
|
3253
3302
|
};
|