@regulaforensics/facesdk-webclient 7.2.275-nightly → 7.2.277-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 +17 -9
- package/dist/index.js +1064 -954
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,228 +1,228 @@
|
|
|
1
|
-
function
|
|
1
|
+
function je(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)), U = (
|
|
10
|
-
function
|
|
11
|
-
return
|
|
6
|
+
const { toString: pt } = Object.prototype, { getPrototypeOf: ge } = Object, { iterator: ae, toStringTag: ke } = Symbol, ie = /* @__PURE__ */ ((s) => (e) => {
|
|
7
|
+
const t = pt.call(e);
|
|
8
|
+
return s[t] || (s[t] = t.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), U = (s) => (s = s.toLowerCase(), (e) => ie(e) === s), ce = (s) => (e) => typeof e === s, { isArray: q } = Array, K = ce("undefined");
|
|
10
|
+
function ht(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 ve = U("ArrayBuffer");
|
|
14
|
+
function ft(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 && ve(s.buffer), e;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
19
|
-
if (ie(
|
|
18
|
+
const mt = ce("string"), N = ce("function"), ze = ce("number"), le = (s) => s !== null && typeof s == "object", Et = (s) => s === !0 || s === !1, ee = (s) => {
|
|
19
|
+
if (ie(s) !== "object")
|
|
20
20
|
return !1;
|
|
21
|
-
const e =
|
|
22
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
23
|
-
},
|
|
21
|
+
const e = ge(s);
|
|
22
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ke in s) && !(ae in s);
|
|
23
|
+
}, At = U("Date"), Ot = U("File"), yt = U("Blob"), St = U("FileList"), Rt = (s) => le(s) && N(s.pipe), Pt = (s) => {
|
|
24
24
|
let e;
|
|
25
|
-
return
|
|
26
|
-
e === "object" &&
|
|
27
|
-
}, gt = U("URLSearchParams"), [
|
|
28
|
-
function X(
|
|
29
|
-
if (
|
|
25
|
+
return s && (typeof FormData == "function" && s instanceof FormData || N(s.append) && ((e = ie(s)) === "formdata" || // detect form-data instance
|
|
26
|
+
e === "object" && N(s.toString) && s.toString() === "[object FormData]"));
|
|
27
|
+
}, gt = U("URLSearchParams"), [Tt, Ct, bt, _t] = ["ReadableStream", "Request", "Response", "Headers"].map(U), wt = (s) => s.trim ? s.trim() : s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
28
|
+
function X(s, e, { allOwnKeys: t = !1 } = {}) {
|
|
29
|
+
if (s === null || typeof s > "u")
|
|
30
30
|
return;
|
|
31
31
|
let r, n;
|
|
32
|
-
if (typeof
|
|
33
|
-
for (r = 0, n =
|
|
34
|
-
e.call(null,
|
|
32
|
+
if (typeof s != "object" && (s = [s]), q(s))
|
|
33
|
+
for (r = 0, n = s.length; r < n; r++)
|
|
34
|
+
e.call(null, s[r], r, s);
|
|
35
35
|
else {
|
|
36
|
-
const o =
|
|
36
|
+
const o = t ? Object.getOwnPropertyNames(s) : Object.keys(s), a = o.length;
|
|
37
37
|
let i;
|
|
38
38
|
for (r = 0; r < a; r++)
|
|
39
|
-
i = o[r], e.call(null,
|
|
39
|
+
i = o[r], e.call(null, s[i], i, s);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function $e(s, e) {
|
|
43
43
|
e = e.toLowerCase();
|
|
44
|
-
const
|
|
45
|
-
let r =
|
|
44
|
+
const t = Object.keys(s);
|
|
45
|
+
let r = t.length, n;
|
|
46
46
|
for (; r-- > 0; )
|
|
47
|
-
if (n =
|
|
47
|
+
if (n = t[r], e === n.toLowerCase())
|
|
48
48
|
return n;
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
|
-
const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
51
|
+
const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qe = (s) => !K(s) && s !== j;
|
|
52
52
|
function Ae() {
|
|
53
|
-
const { caseless:
|
|
54
|
-
const o =
|
|
55
|
-
ee(e[o]) && ee(r) ? e[o] = Ae(e[o], r) : ee(r) ? e[o] = Ae({}, r) :
|
|
53
|
+
const { caseless: s } = qe(this) && this || {}, e = {}, t = (r, n) => {
|
|
54
|
+
const o = s && $e(e, n) || n;
|
|
55
|
+
ee(e[o]) && ee(r) ? e[o] = Ae(e[o], r) : ee(r) ? e[o] = Ae({}, r) : q(r) ? e[o] = r.slice() : e[o] = r;
|
|
56
56
|
};
|
|
57
57
|
for (let r = 0, n = arguments.length; r < n; r++)
|
|
58
|
-
arguments[r] && X(arguments[r],
|
|
58
|
+
arguments[r] && X(arguments[r], t);
|
|
59
59
|
return e;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
}, { allOwnKeys: r }),
|
|
64
|
-
|
|
61
|
+
const It = (s, e, t, { allOwnKeys: r } = {}) => (X(e, (n, o) => {
|
|
62
|
+
t && N(n) ? s[o] = je(n, t) : s[o] = n;
|
|
63
|
+
}, { allOwnKeys: r }), s), Lt = (s) => (s.charCodeAt(0) === 65279 && (s = s.slice(1)), s), Nt = (s, e, t, r) => {
|
|
64
|
+
s.prototype = Object.create(e.prototype, r), s.prototype.constructor = s, Object.defineProperty(s, "super", {
|
|
65
65
|
value: e.prototype
|
|
66
|
-
}),
|
|
67
|
-
},
|
|
66
|
+
}), t && Object.assign(s.prototype, t);
|
|
67
|
+
}, Ft = (s, e, t, r) => {
|
|
68
68
|
let n, o, a;
|
|
69
69
|
const i = {};
|
|
70
|
-
if (e = e || {},
|
|
70
|
+
if (e = e || {}, s == null) return e;
|
|
71
71
|
do {
|
|
72
|
-
for (n = Object.getOwnPropertyNames(
|
|
73
|
-
a = n[o], (!r || r(a,
|
|
74
|
-
|
|
75
|
-
} while (
|
|
72
|
+
for (n = Object.getOwnPropertyNames(s), o = n.length; o-- > 0; )
|
|
73
|
+
a = n[o], (!r || r(a, s, e)) && !i[a] && (e[a] = s[a], i[a] = !0);
|
|
74
|
+
s = t !== !1 && ge(s);
|
|
75
|
+
} while (s && (!t || t(s, e)) && s !== Object.prototype);
|
|
76
76
|
return e;
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
const r =
|
|
80
|
-
return r !== -1 && r ===
|
|
81
|
-
},
|
|
82
|
-
if (!
|
|
83
|
-
if (
|
|
84
|
-
let e =
|
|
85
|
-
if (!
|
|
86
|
-
const
|
|
77
|
+
}, Ut = (s, e, t) => {
|
|
78
|
+
s = String(s), (t === void 0 || t > s.length) && (t = s.length), t -= e.length;
|
|
79
|
+
const r = s.indexOf(e, t);
|
|
80
|
+
return r !== -1 && r === t;
|
|
81
|
+
}, Vt = (s) => {
|
|
82
|
+
if (!s) return null;
|
|
83
|
+
if (q(s)) return s;
|
|
84
|
+
let e = s.length;
|
|
85
|
+
if (!ze(e)) return null;
|
|
86
|
+
const t = new Array(e);
|
|
87
87
|
for (; e-- > 0; )
|
|
88
|
-
|
|
89
|
-
return
|
|
90
|
-
},
|
|
91
|
-
const r = (
|
|
88
|
+
t[e] = s[e];
|
|
89
|
+
return t;
|
|
90
|
+
}, Dt = /* @__PURE__ */ ((s) => (e) => s && e instanceof s)(typeof Uint8Array < "u" && ge(Uint8Array)), Gt = (s, e) => {
|
|
91
|
+
const r = (s && s[ae]).call(s);
|
|
92
92
|
let n;
|
|
93
93
|
for (; (n = r.next()) && !n.done; ) {
|
|
94
94
|
const o = n.value;
|
|
95
|
-
e.call(
|
|
95
|
+
e.call(s, o[0], o[1]);
|
|
96
96
|
}
|
|
97
|
-
},
|
|
98
|
-
let
|
|
97
|
+
}, Ht = (s, e) => {
|
|
98
|
+
let t;
|
|
99
99
|
const r = [];
|
|
100
|
-
for (; (
|
|
101
|
-
r.push(
|
|
100
|
+
for (; (t = s.exec(e)) !== null; )
|
|
101
|
+
r.push(t);
|
|
102
102
|
return r;
|
|
103
|
-
},
|
|
103
|
+
}, xt = U("HTMLFormElement"), Bt = (s) => s.toLowerCase().replace(
|
|
104
104
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
105
|
-
function(
|
|
105
|
+
function(t, r, n) {
|
|
106
106
|
return r.toUpperCase() + n;
|
|
107
107
|
}
|
|
108
|
-
),
|
|
109
|
-
const
|
|
110
|
-
X(
|
|
108
|
+
), _e = (({ hasOwnProperty: s }) => (e, t) => s.call(e, t))(Object.prototype), Mt = U("RegExp"), Qe = (s, e) => {
|
|
109
|
+
const t = Object.getOwnPropertyDescriptors(s), r = {};
|
|
110
|
+
X(t, (n, o) => {
|
|
111
111
|
let a;
|
|
112
|
-
(a = e(n, o,
|
|
113
|
-
}), Object.defineProperties(
|
|
114
|
-
},
|
|
115
|
-
Qe(
|
|
116
|
-
if (
|
|
112
|
+
(a = e(n, o, s)) !== !1 && (r[o] = a || n);
|
|
113
|
+
}), Object.defineProperties(s, r);
|
|
114
|
+
}, jt = (s) => {
|
|
115
|
+
Qe(s, (e, t) => {
|
|
116
|
+
if (N(s) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
117
117
|
return !1;
|
|
118
|
-
const r = t
|
|
119
|
-
if (
|
|
118
|
+
const r = s[t];
|
|
119
|
+
if (N(r)) {
|
|
120
120
|
if (e.enumerable = !1, "writable" in e) {
|
|
121
121
|
e.writable = !1;
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
124
|
e.set || (e.set = () => {
|
|
125
|
-
throw Error("Can not rewrite read-only method '" +
|
|
125
|
+
throw Error("Can not rewrite read-only method '" + t + "'");
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
-
},
|
|
130
|
-
const
|
|
129
|
+
}, kt = (s, e) => {
|
|
130
|
+
const t = {}, r = (n) => {
|
|
131
131
|
n.forEach((o) => {
|
|
132
|
-
|
|
132
|
+
t[o] = !0;
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
|
-
return
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
function
|
|
139
|
-
return !!(
|
|
135
|
+
return q(s) ? r(s) : r(String(s).split(e)), t;
|
|
136
|
+
}, vt = () => {
|
|
137
|
+
}, zt = (s, e) => s != null && Number.isFinite(s = +s) ? s : e;
|
|
138
|
+
function $t(s) {
|
|
139
|
+
return !!(s && N(s.append) && s[ke] === "FormData" && s[ae]);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
const e = new Array(10),
|
|
141
|
+
const qt = (s) => {
|
|
142
|
+
const e = new Array(10), t = (r, n) => {
|
|
143
143
|
if (le(r)) {
|
|
144
144
|
if (e.indexOf(r) >= 0)
|
|
145
145
|
return;
|
|
146
146
|
if (!("toJSON" in r)) {
|
|
147
147
|
e[n] = r;
|
|
148
|
-
const o =
|
|
148
|
+
const o = q(r) ? [] : {};
|
|
149
149
|
return X(r, (a, i) => {
|
|
150
|
-
const c =
|
|
150
|
+
const c = t(a, n + 1);
|
|
151
151
|
!K(c) && (o[i] = c);
|
|
152
152
|
}), e[n] = void 0, o;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
return r;
|
|
156
156
|
};
|
|
157
|
-
return s
|
|
158
|
-
}, Qt = U("AsyncFunction"), Wt = (
|
|
159
|
-
n === j && o ===
|
|
157
|
+
return t(s, 0);
|
|
158
|
+
}, Qt = U("AsyncFunction"), Wt = (s) => s && (le(s) || N(s)) && N(s.then) && N(s.catch), We = ((s, e) => s ? setImmediate : e ? ((t, r) => (j.addEventListener("message", ({ source: n, data: o }) => {
|
|
159
|
+
n === j && o === t && r.length && r.shift()();
|
|
160
160
|
}, !1), (n) => {
|
|
161
|
-
r.push(n), j.postMessage(
|
|
162
|
-
}))(`axios@${Math.random()}`, []) : (
|
|
161
|
+
r.push(n), j.postMessage(t, "*");
|
|
162
|
+
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
163
163
|
typeof setImmediate == "function",
|
|
164
|
-
|
|
165
|
-
),
|
|
166
|
-
isArray:
|
|
167
|
-
isArrayBuffer:
|
|
168
|
-
isBuffer:
|
|
169
|
-
isFormData:
|
|
170
|
-
isArrayBufferView:
|
|
171
|
-
isString:
|
|
172
|
-
isNumber:
|
|
173
|
-
isBoolean:
|
|
164
|
+
N(j.postMessage)
|
|
165
|
+
), Kt = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || We, Xt = (s) => s != null && N(s[ae]), u = {
|
|
166
|
+
isArray: q,
|
|
167
|
+
isArrayBuffer: ve,
|
|
168
|
+
isBuffer: ht,
|
|
169
|
+
isFormData: Pt,
|
|
170
|
+
isArrayBufferView: ft,
|
|
171
|
+
isString: mt,
|
|
172
|
+
isNumber: ze,
|
|
173
|
+
isBoolean: Et,
|
|
174
174
|
isObject: le,
|
|
175
175
|
isPlainObject: ee,
|
|
176
|
-
isReadableStream:
|
|
177
|
-
isRequest:
|
|
178
|
-
isResponse:
|
|
176
|
+
isReadableStream: Tt,
|
|
177
|
+
isRequest: Ct,
|
|
178
|
+
isResponse: bt,
|
|
179
179
|
isHeaders: _t,
|
|
180
180
|
isUndefined: K,
|
|
181
|
-
isDate:
|
|
182
|
-
isFile:
|
|
183
|
-
isBlob:
|
|
184
|
-
isRegExp:
|
|
185
|
-
isFunction:
|
|
186
|
-
isStream:
|
|
181
|
+
isDate: At,
|
|
182
|
+
isFile: Ot,
|
|
183
|
+
isBlob: yt,
|
|
184
|
+
isRegExp: Mt,
|
|
185
|
+
isFunction: N,
|
|
186
|
+
isStream: Rt,
|
|
187
187
|
isURLSearchParams: gt,
|
|
188
|
-
isTypedArray:
|
|
189
|
-
isFileList:
|
|
188
|
+
isTypedArray: Dt,
|
|
189
|
+
isFileList: St,
|
|
190
190
|
forEach: X,
|
|
191
191
|
merge: Ae,
|
|
192
|
-
extend:
|
|
193
|
-
trim:
|
|
194
|
-
stripBOM:
|
|
192
|
+
extend: It,
|
|
193
|
+
trim: wt,
|
|
194
|
+
stripBOM: Lt,
|
|
195
195
|
inherits: Nt,
|
|
196
|
-
toFlatObject:
|
|
196
|
+
toFlatObject: Ft,
|
|
197
197
|
kindOf: ie,
|
|
198
198
|
kindOfTest: U,
|
|
199
|
-
endsWith:
|
|
200
|
-
toArray:
|
|
201
|
-
forEachEntry:
|
|
202
|
-
matchAll:
|
|
203
|
-
isHTMLForm:
|
|
204
|
-
hasOwnProperty:
|
|
205
|
-
hasOwnProp:
|
|
199
|
+
endsWith: Ut,
|
|
200
|
+
toArray: Vt,
|
|
201
|
+
forEachEntry: Gt,
|
|
202
|
+
matchAll: Ht,
|
|
203
|
+
isHTMLForm: xt,
|
|
204
|
+
hasOwnProperty: _e,
|
|
205
|
+
hasOwnProp: _e,
|
|
206
206
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
207
207
|
reduceDescriptors: Qe,
|
|
208
|
-
freezeMethods:
|
|
209
|
-
toObjectSet:
|
|
210
|
-
toCamelCase:
|
|
211
|
-
noop:
|
|
212
|
-
toFiniteNumber:
|
|
213
|
-
findKey:
|
|
208
|
+
freezeMethods: jt,
|
|
209
|
+
toObjectSet: kt,
|
|
210
|
+
toCamelCase: Bt,
|
|
211
|
+
noop: vt,
|
|
212
|
+
toFiniteNumber: zt,
|
|
213
|
+
findKey: $e,
|
|
214
214
|
global: j,
|
|
215
|
-
isContextDefined:
|
|
216
|
-
isSpecCompliantForm:
|
|
217
|
-
toJSONObject:
|
|
215
|
+
isContextDefined: qe,
|
|
216
|
+
isSpecCompliantForm: $t,
|
|
217
|
+
toJSONObject: qt,
|
|
218
218
|
isAsyncFn: Qt,
|
|
219
219
|
isThenable: Wt,
|
|
220
220
|
setImmediate: We,
|
|
221
|
-
asap:
|
|
222
|
-
isIterable:
|
|
221
|
+
asap: Kt,
|
|
222
|
+
isIterable: Xt
|
|
223
223
|
};
|
|
224
|
-
function E(
|
|
225
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message =
|
|
224
|
+
function E(s, e, t, r, n) {
|
|
225
|
+
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);
|
|
226
226
|
}
|
|
227
227
|
u.inherits(E, Error, {
|
|
228
228
|
toJSON: function() {
|
|
@@ -245,7 +245,7 @@ u.inherits(E, Error, {
|
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
|
-
const
|
|
248
|
+
const Ke = E.prototype, Xe = {};
|
|
249
249
|
[
|
|
250
250
|
"ERR_BAD_OPTION_VALUE",
|
|
251
251
|
"ERR_BAD_OPTION",
|
|
@@ -260,46 +260,46 @@ const ze = E.prototype, Ke = {};
|
|
|
260
260
|
"ERR_NOT_SUPPORT",
|
|
261
261
|
"ERR_INVALID_URL"
|
|
262
262
|
// eslint-disable-next-line func-names
|
|
263
|
-
].forEach((
|
|
264
|
-
|
|
263
|
+
].forEach((s) => {
|
|
264
|
+
Xe[s] = { value: s };
|
|
265
265
|
});
|
|
266
|
-
Object.defineProperties(E,
|
|
267
|
-
Object.defineProperty(
|
|
268
|
-
E.from = (
|
|
269
|
-
const a = Object.create(
|
|
270
|
-
return u.toFlatObject(
|
|
266
|
+
Object.defineProperties(E, Xe);
|
|
267
|
+
Object.defineProperty(Ke, "isAxiosError", { value: !0 });
|
|
268
|
+
E.from = (s, e, t, r, n, o) => {
|
|
269
|
+
const a = Object.create(Ke);
|
|
270
|
+
return u.toFlatObject(s, a, function(c) {
|
|
271
271
|
return c !== Error.prototype;
|
|
272
|
-
}, (i) => i !== "isAxiosError"), E.call(a,
|
|
272
|
+
}, (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;
|
|
273
273
|
};
|
|
274
|
-
const
|
|
275
|
-
function Oe(
|
|
276
|
-
return u.isPlainObject(
|
|
274
|
+
const Jt = null;
|
|
275
|
+
function Oe(s) {
|
|
276
|
+
return u.isPlainObject(s) || u.isArray(s);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
return u.endsWith(
|
|
278
|
+
function Je(s) {
|
|
279
|
+
return u.endsWith(s, "[]") ? s.slice(0, -2) : s;
|
|
280
280
|
}
|
|
281
|
-
function we(
|
|
282
|
-
return
|
|
283
|
-
return n =
|
|
284
|
-
}).join(
|
|
281
|
+
function we(s, e, t) {
|
|
282
|
+
return s ? s.concat(e).map(function(n, o) {
|
|
283
|
+
return n = Je(n), !t && o ? "[" + n + "]" : n;
|
|
284
|
+
}).join(t ? "." : "") : e;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return u.isArray(
|
|
286
|
+
function Yt(s) {
|
|
287
|
+
return u.isArray(s) && !s.some(Oe);
|
|
288
288
|
}
|
|
289
|
-
const
|
|
289
|
+
const Zt = u.toFlatObject(u, {}, null, function(e) {
|
|
290
290
|
return /^is[A-Z]/.test(e);
|
|
291
291
|
});
|
|
292
|
-
function ue(
|
|
293
|
-
if (!u.isObject(
|
|
292
|
+
function ue(s, e, t) {
|
|
293
|
+
if (!u.isObject(s))
|
|
294
294
|
throw new TypeError("target must be an object");
|
|
295
|
-
e = e || new FormData(),
|
|
295
|
+
e = e || new FormData(), t = u.toFlatObject(t, {
|
|
296
296
|
metaTokens: !0,
|
|
297
297
|
dots: !1,
|
|
298
298
|
indexes: !1
|
|
299
299
|
}, !1, function(A, f) {
|
|
300
300
|
return !u.isUndefined(f[A]);
|
|
301
301
|
});
|
|
302
|
-
const r =
|
|
302
|
+
const r = t.metaTokens, n = t.visitor || d, o = t.dots, a = t.indexes, c = (t.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(e);
|
|
303
303
|
if (!u.isFunction(n))
|
|
304
304
|
throw new TypeError("visitor must be a function");
|
|
305
305
|
function l(h) {
|
|
@@ -317,8 +317,8 @@ function ue(t, e, s) {
|
|
|
317
317
|
if (h && !f && typeof h == "object") {
|
|
318
318
|
if (u.endsWith(A, "{}"))
|
|
319
319
|
A = r ? A : A.slice(0, -2), h = JSON.stringify(h);
|
|
320
|
-
else if (u.isArray(h) &&
|
|
321
|
-
return A =
|
|
320
|
+
else if (u.isArray(h) && Yt(h) || (u.isFileList(h) || u.endsWith(A, "[]")) && (C = u.toArray(h)))
|
|
321
|
+
return A = Je(A), C.forEach(function(w, G) {
|
|
322
322
|
!(u.isUndefined(w) || w === null) && e.append(
|
|
323
323
|
// eslint-disable-next-line no-nested-ternary
|
|
324
324
|
a === !0 ? we([A], G, o) : a === null ? A : A + "[]",
|
|
@@ -328,31 +328,31 @@ function ue(t, e, s) {
|
|
|
328
328
|
}
|
|
329
329
|
return Oe(h) ? !0 : (e.append(we(f, A, o), l(h)), !1);
|
|
330
330
|
}
|
|
331
|
-
const p = [], O = Object.assign(
|
|
331
|
+
const p = [], O = Object.assign(Zt, {
|
|
332
332
|
defaultVisitor: d,
|
|
333
333
|
convertValue: l,
|
|
334
334
|
isVisitable: Oe
|
|
335
335
|
});
|
|
336
|
-
function
|
|
336
|
+
function b(h, A) {
|
|
337
337
|
if (!u.isUndefined(h)) {
|
|
338
338
|
if (p.indexOf(h) !== -1)
|
|
339
339
|
throw Error("Circular reference detected in " + A.join("."));
|
|
340
|
-
p.push(h), u.forEach(h, function(C,
|
|
340
|
+
p.push(h), u.forEach(h, function(C, _) {
|
|
341
341
|
(!(u.isUndefined(C) || C === null) && n.call(
|
|
342
342
|
e,
|
|
343
343
|
C,
|
|
344
|
-
u.isString(
|
|
344
|
+
u.isString(_) ? _.trim() : _,
|
|
345
345
|
A,
|
|
346
346
|
O
|
|
347
|
-
)) === !0 &&
|
|
347
|
+
)) === !0 && b(C, A ? A.concat(_) : [_]);
|
|
348
348
|
}), p.pop();
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
if (!u.isObject(
|
|
351
|
+
if (!u.isObject(s))
|
|
352
352
|
throw new TypeError("data must be an object");
|
|
353
|
-
return
|
|
353
|
+
return b(s), e;
|
|
354
354
|
}
|
|
355
|
-
function Ie(
|
|
355
|
+
function Ie(s) {
|
|
356
356
|
const e = {
|
|
357
357
|
"!": "%21",
|
|
358
358
|
"'": "%27",
|
|
@@ -362,44 +362,44 @@ function Ie(t) {
|
|
|
362
362
|
"%20": "+",
|
|
363
363
|
"%00": "\0"
|
|
364
364
|
};
|
|
365
|
-
return encodeURIComponent(
|
|
365
|
+
return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
366
366
|
return e[r];
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
function Te(
|
|
370
|
-
this._pairs = [],
|
|
369
|
+
function Te(s, e) {
|
|
370
|
+
this._pairs = [], s && ue(s, this, e);
|
|
371
371
|
}
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
this._pairs.push([e,
|
|
372
|
+
const Ye = Te.prototype;
|
|
373
|
+
Ye.append = function(e, t) {
|
|
374
|
+
this._pairs.push([e, t]);
|
|
375
375
|
};
|
|
376
|
-
|
|
377
|
-
const
|
|
376
|
+
Ye.toString = function(e) {
|
|
377
|
+
const t = e ? function(r) {
|
|
378
378
|
return e.call(this, r, Ie);
|
|
379
379
|
} : Ie;
|
|
380
380
|
return this._pairs.map(function(n) {
|
|
381
|
-
return
|
|
381
|
+
return t(n[0]) + "=" + t(n[1]);
|
|
382
382
|
}, "").join("&");
|
|
383
383
|
};
|
|
384
|
-
function
|
|
385
|
-
return encodeURIComponent(
|
|
384
|
+
function es(s) {
|
|
385
|
+
return encodeURIComponent(s).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Ze(s, e, t) {
|
|
388
388
|
if (!e)
|
|
389
|
-
return
|
|
390
|
-
const r =
|
|
391
|
-
u.isFunction(
|
|
392
|
-
serialize:
|
|
389
|
+
return s;
|
|
390
|
+
const r = t && t.encode || es;
|
|
391
|
+
u.isFunction(t) && (t = {
|
|
392
|
+
serialize: t
|
|
393
393
|
});
|
|
394
|
-
const n =
|
|
394
|
+
const n = t && t.serialize;
|
|
395
395
|
let o;
|
|
396
|
-
if (n ? o = n(e,
|
|
397
|
-
const a =
|
|
398
|
-
a !== -1 && (
|
|
396
|
+
if (n ? o = n(e, t) : o = u.isURLSearchParams(e) ? e.toString() : new Te(e, t).toString(r), o) {
|
|
397
|
+
const a = s.indexOf("#");
|
|
398
|
+
a !== -1 && (s = s.slice(0, a)), s += (s.indexOf("?") === -1 ? "?" : "&") + o;
|
|
399
399
|
}
|
|
400
|
-
return
|
|
400
|
+
return s;
|
|
401
401
|
}
|
|
402
|
-
class
|
|
402
|
+
class Le {
|
|
403
403
|
constructor() {
|
|
404
404
|
this.handlers = [];
|
|
405
405
|
}
|
|
@@ -411,10 +411,10 @@ class Ne {
|
|
|
411
411
|
*
|
|
412
412
|
* @return {Number} An ID used to remove interceptor later
|
|
413
413
|
*/
|
|
414
|
-
use(e,
|
|
414
|
+
use(e, t, r) {
|
|
415
415
|
return this.handlers.push({
|
|
416
416
|
fulfilled: e,
|
|
417
|
-
rejected:
|
|
417
|
+
rejected: t,
|
|
418
418
|
synchronous: r ? r.synchronous : !1,
|
|
419
419
|
runWhen: r ? r.runWhen : null
|
|
420
420
|
}), this.handlers.length - 1;
|
|
@@ -453,91 +453,91 @@ class Ne {
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const et = {
|
|
457
457
|
silentJSONParsing: !0,
|
|
458
458
|
forcedJSONParsing: !0,
|
|
459
459
|
clarifyTimeoutError: !1
|
|
460
|
-
},
|
|
460
|
+
}, ts = typeof URLSearchParams < "u" ? URLSearchParams : Te, ss = typeof FormData < "u" ? FormData : null, rs = typeof Blob < "u" ? Blob : null, ns = {
|
|
461
461
|
isBrowser: !0,
|
|
462
462
|
classes: {
|
|
463
|
-
URLSearchParams:
|
|
464
|
-
FormData:
|
|
465
|
-
Blob:
|
|
463
|
+
URLSearchParams: ts,
|
|
464
|
+
FormData: ss,
|
|
465
|
+
Blob: rs
|
|
466
466
|
},
|
|
467
467
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
468
|
-
}, Ce = typeof window < "u" && typeof document < "u", ye = typeof navigator == "object" && navigator || void 0,
|
|
469
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
468
|
+
}, Ce = typeof window < "u" && typeof document < "u", ye = typeof navigator == "object" && navigator || void 0, os = Ce && (!ye || ["ReactNative", "NativeScript", "NS"].indexOf(ye.product) < 0), as = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
469
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", is = Ce && window.location.href || "http://localhost", cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
470
470
|
__proto__: null,
|
|
471
471
|
hasBrowserEnv: Ce,
|
|
472
|
-
hasStandardBrowserEnv:
|
|
473
|
-
hasStandardBrowserWebWorkerEnv:
|
|
472
|
+
hasStandardBrowserEnv: os,
|
|
473
|
+
hasStandardBrowserWebWorkerEnv: as,
|
|
474
474
|
navigator: ye,
|
|
475
|
-
origin:
|
|
475
|
+
origin: is
|
|
476
476
|
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
477
|
-
...
|
|
478
|
-
...
|
|
477
|
+
...cs,
|
|
478
|
+
...ns
|
|
479
479
|
};
|
|
480
|
-
function
|
|
481
|
-
return ue(
|
|
482
|
-
visitor: function(
|
|
483
|
-
return I.isNode && u.isBuffer(
|
|
480
|
+
function ls(s, e) {
|
|
481
|
+
return ue(s, new I.classes.URLSearchParams(), Object.assign({
|
|
482
|
+
visitor: function(t, r, n, o) {
|
|
483
|
+
return I.isNode && u.isBuffer(t) ? (this.append(r, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
484
484
|
}
|
|
485
485
|
}, e));
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
return u.matchAll(/\w+|\[(\w*)]/g,
|
|
487
|
+
function us(s) {
|
|
488
|
+
return u.matchAll(/\w+|\[(\w*)]/g, s).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
const e = {},
|
|
490
|
+
function ds(s) {
|
|
491
|
+
const e = {}, t = Object.keys(s);
|
|
492
492
|
let r;
|
|
493
|
-
const n =
|
|
493
|
+
const n = t.length;
|
|
494
494
|
let o;
|
|
495
495
|
for (r = 0; r < n; r++)
|
|
496
|
-
o =
|
|
496
|
+
o = t[r], e[o] = s[o];
|
|
497
497
|
return e;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
function e(
|
|
501
|
-
let a =
|
|
499
|
+
function tt(s) {
|
|
500
|
+
function e(t, r, n, o) {
|
|
501
|
+
let a = t[o++];
|
|
502
502
|
if (a === "__proto__") return !0;
|
|
503
|
-
const i = Number.isFinite(+a), c = o >=
|
|
504
|
-
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(
|
|
503
|
+
const i = Number.isFinite(+a), c = o >= t.length;
|
|
504
|
+
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] = ds(n[a])), !i);
|
|
505
505
|
}
|
|
506
|
-
if (u.isFormData(
|
|
507
|
-
const
|
|
508
|
-
return u.forEachEntry(
|
|
509
|
-
e(
|
|
510
|
-
}),
|
|
506
|
+
if (u.isFormData(s) && u.isFunction(s.entries)) {
|
|
507
|
+
const t = {};
|
|
508
|
+
return u.forEachEntry(s, (r, n) => {
|
|
509
|
+
e(us(r), n, t, 0);
|
|
510
|
+
}), t;
|
|
511
511
|
}
|
|
512
512
|
return null;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
if (u.isString(
|
|
514
|
+
function ps(s, e, t) {
|
|
515
|
+
if (u.isString(s))
|
|
516
516
|
try {
|
|
517
|
-
return (e || JSON.parse)(
|
|
517
|
+
return (e || JSON.parse)(s), u.trim(s);
|
|
518
518
|
} catch (r) {
|
|
519
519
|
if (r.name !== "SyntaxError")
|
|
520
520
|
throw r;
|
|
521
521
|
}
|
|
522
|
-
return (
|
|
522
|
+
return (t || JSON.stringify)(s);
|
|
523
523
|
}
|
|
524
524
|
const J = {
|
|
525
|
-
transitional:
|
|
525
|
+
transitional: et,
|
|
526
526
|
adapter: ["xhr", "http", "fetch"],
|
|
527
|
-
transformRequest: [function(e,
|
|
528
|
-
const r =
|
|
527
|
+
transformRequest: [function(e, t) {
|
|
528
|
+
const r = t.getContentType() || "", n = r.indexOf("application/json") > -1, o = u.isObject(e);
|
|
529
529
|
if (o && u.isHTMLForm(e) && (e = new FormData(e)), u.isFormData(e))
|
|
530
|
-
return n ? JSON.stringify(
|
|
530
|
+
return n ? JSON.stringify(tt(e)) : e;
|
|
531
531
|
if (u.isArrayBuffer(e) || u.isBuffer(e) || u.isStream(e) || u.isFile(e) || u.isBlob(e) || u.isReadableStream(e))
|
|
532
532
|
return e;
|
|
533
533
|
if (u.isArrayBufferView(e))
|
|
534
534
|
return e.buffer;
|
|
535
535
|
if (u.isURLSearchParams(e))
|
|
536
|
-
return
|
|
536
|
+
return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
537
537
|
let i;
|
|
538
538
|
if (o) {
|
|
539
539
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
540
|
-
return
|
|
540
|
+
return ls(e, this.formSerializer).toString();
|
|
541
541
|
if ((i = u.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
542
542
|
const c = this.env && this.env.FormData;
|
|
543
543
|
return ue(
|
|
@@ -547,14 +547,14 @@ const J = {
|
|
|
547
547
|
);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
return o || n ? (
|
|
550
|
+
return o || n ? (t.setContentType("application/json", !1), ps(e)) : e;
|
|
551
551
|
}],
|
|
552
552
|
transformResponse: [function(e) {
|
|
553
|
-
const
|
|
553
|
+
const t = this.transitional || J.transitional, r = t && t.forcedJSONParsing, n = this.responseType === "json";
|
|
554
554
|
if (u.isResponse(e) || u.isReadableStream(e))
|
|
555
555
|
return e;
|
|
556
556
|
if (e && u.isString(e) && (r && !this.responseType || n)) {
|
|
557
|
-
const a = !(
|
|
557
|
+
const a = !(t && t.silentJSONParsing) && n;
|
|
558
558
|
try {
|
|
559
559
|
return JSON.parse(e);
|
|
560
560
|
} catch (i) {
|
|
@@ -587,10 +587,10 @@ const J = {
|
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
|
-
u.forEach(["delete", "get", "head", "post", "put", "patch"], (
|
|
591
|
-
J.headers[
|
|
590
|
+
u.forEach(["delete", "get", "head", "post", "put", "patch"], (s) => {
|
|
591
|
+
J.headers[s] = {};
|
|
592
592
|
});
|
|
593
|
-
const
|
|
593
|
+
const hs = u.toObjectSet([
|
|
594
594
|
"age",
|
|
595
595
|
"authorization",
|
|
596
596
|
"content-length",
|
|
@@ -608,45 +608,45 @@ const ps = u.toObjectSet([
|
|
|
608
608
|
"referer",
|
|
609
609
|
"retry-after",
|
|
610
610
|
"user-agent"
|
|
611
|
-
]),
|
|
611
|
+
]), fs = (s) => {
|
|
612
612
|
const e = {};
|
|
613
|
-
let
|
|
614
|
-
return
|
|
613
|
+
let t, r, n;
|
|
614
|
+
return s && s.split(`
|
|
615
615
|
`).forEach(function(a) {
|
|
616
|
-
n = a.indexOf(":"),
|
|
616
|
+
n = a.indexOf(":"), t = a.substring(0, n).trim().toLowerCase(), r = a.substring(n + 1).trim(), !(!t || e[t] && hs[t]) && (t === "set-cookie" ? e[t] ? e[t].push(r) : e[t] = [r] : e[t] = e[t] ? e[t] + ", " + r : r);
|
|
617
617
|
}), e;
|
|
618
|
-
},
|
|
619
|
-
function
|
|
620
|
-
return
|
|
618
|
+
}, Ne = Symbol("internals");
|
|
619
|
+
function W(s) {
|
|
620
|
+
return s && String(s).trim().toLowerCase();
|
|
621
621
|
}
|
|
622
|
-
function te(
|
|
623
|
-
return
|
|
622
|
+
function te(s) {
|
|
623
|
+
return s === !1 || s == null ? s : u.isArray(s) ? s.map(te) : String(s);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
const e = /* @__PURE__ */ Object.create(null),
|
|
625
|
+
function ms(s) {
|
|
626
|
+
const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
627
627
|
let r;
|
|
628
|
-
for (; r =
|
|
628
|
+
for (; r = t.exec(s); )
|
|
629
629
|
e[r[1]] = r[2];
|
|
630
630
|
return e;
|
|
631
631
|
}
|
|
632
|
-
const
|
|
633
|
-
function he(
|
|
632
|
+
const Es = (s) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());
|
|
633
|
+
function he(s, e, t, r, n) {
|
|
634
634
|
if (u.isFunction(r))
|
|
635
|
-
return r.call(this, e,
|
|
636
|
-
if (n && (e =
|
|
635
|
+
return r.call(this, e, t);
|
|
636
|
+
if (n && (e = t), !!u.isString(e)) {
|
|
637
637
|
if (u.isString(r))
|
|
638
638
|
return e.indexOf(r) !== -1;
|
|
639
639
|
if (u.isRegExp(r))
|
|
640
640
|
return r.test(e);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
643
|
+
function As(s) {
|
|
644
|
+
return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, r) => t.toUpperCase() + r);
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
const
|
|
646
|
+
function Os(s, e) {
|
|
647
|
+
const t = u.toCamelCase(" " + e);
|
|
648
648
|
["get", "set", "has"].forEach((r) => {
|
|
649
|
-
Object.defineProperty(
|
|
649
|
+
Object.defineProperty(s, r + t, {
|
|
650
650
|
value: function(n, o, a) {
|
|
651
651
|
return this[r].call(this, e, n, o, a);
|
|
652
652
|
},
|
|
@@ -658,10 +658,10 @@ let F = class {
|
|
|
658
658
|
constructor(e) {
|
|
659
659
|
e && this.set(e);
|
|
660
660
|
}
|
|
661
|
-
set(e,
|
|
661
|
+
set(e, t, r) {
|
|
662
662
|
const n = this;
|
|
663
663
|
function o(i, c, l) {
|
|
664
|
-
const d =
|
|
664
|
+
const d = W(c);
|
|
665
665
|
if (!d)
|
|
666
666
|
throw new Error("header name must be a non-empty string");
|
|
667
667
|
const p = u.findKey(n, d);
|
|
@@ -669,9 +669,9 @@ let F = class {
|
|
|
669
669
|
}
|
|
670
670
|
const a = (i, c) => u.forEach(i, (l, d) => o(l, d, c));
|
|
671
671
|
if (u.isPlainObject(e) || e instanceof this.constructor)
|
|
672
|
-
a(e,
|
|
673
|
-
else if (u.isString(e) && (e = e.trim()) && !
|
|
674
|
-
a(
|
|
672
|
+
a(e, t);
|
|
673
|
+
else if (u.isString(e) && (e = e.trim()) && !Es(e))
|
|
674
|
+
a(fs(e), t);
|
|
675
675
|
else if (u.isObject(e) && u.isIterable(e)) {
|
|
676
676
|
let i = {}, c, l;
|
|
677
677
|
for (const d of e) {
|
|
@@ -679,81 +679,81 @@ let F = class {
|
|
|
679
679
|
throw TypeError("Object iterator must return a key-value pair");
|
|
680
680
|
i[l = d[0]] = (c = i[l]) ? u.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
|
|
681
681
|
}
|
|
682
|
-
a(i,
|
|
682
|
+
a(i, t);
|
|
683
683
|
} else
|
|
684
|
-
e != null && o(
|
|
684
|
+
e != null && o(t, e, r);
|
|
685
685
|
return this;
|
|
686
686
|
}
|
|
687
|
-
get(e,
|
|
688
|
-
if (e =
|
|
687
|
+
get(e, t) {
|
|
688
|
+
if (e = W(e), e) {
|
|
689
689
|
const r = u.findKey(this, e);
|
|
690
690
|
if (r) {
|
|
691
691
|
const n = this[r];
|
|
692
|
-
if (!
|
|
692
|
+
if (!t)
|
|
693
693
|
return n;
|
|
694
|
-
if (
|
|
695
|
-
return
|
|
696
|
-
if (u.isFunction(
|
|
697
|
-
return
|
|
698
|
-
if (u.isRegExp(
|
|
699
|
-
return
|
|
694
|
+
if (t === !0)
|
|
695
|
+
return ms(n);
|
|
696
|
+
if (u.isFunction(t))
|
|
697
|
+
return t.call(this, n, r);
|
|
698
|
+
if (u.isRegExp(t))
|
|
699
|
+
return t.exec(n);
|
|
700
700
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
has(e,
|
|
705
|
-
if (e =
|
|
704
|
+
has(e, t) {
|
|
705
|
+
if (e = W(e), e) {
|
|
706
706
|
const r = u.findKey(this, e);
|
|
707
|
-
return !!(r && this[r] !== void 0 && (!
|
|
707
|
+
return !!(r && this[r] !== void 0 && (!t || he(this, this[r], r, t)));
|
|
708
708
|
}
|
|
709
709
|
return !1;
|
|
710
710
|
}
|
|
711
|
-
delete(e,
|
|
711
|
+
delete(e, t) {
|
|
712
712
|
const r = this;
|
|
713
713
|
let n = !1;
|
|
714
714
|
function o(a) {
|
|
715
|
-
if (a =
|
|
715
|
+
if (a = W(a), a) {
|
|
716
716
|
const i = u.findKey(r, a);
|
|
717
|
-
i && (!
|
|
717
|
+
i && (!t || he(r, r[i], i, t)) && (delete r[i], n = !0);
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
return u.isArray(e) ? e.forEach(o) : o(e), n;
|
|
721
721
|
}
|
|
722
722
|
clear(e) {
|
|
723
|
-
const
|
|
724
|
-
let r =
|
|
723
|
+
const t = Object.keys(this);
|
|
724
|
+
let r = t.length, n = !1;
|
|
725
725
|
for (; r--; ) {
|
|
726
|
-
const o =
|
|
726
|
+
const o = t[r];
|
|
727
727
|
(!e || he(this, this[o], o, e, !0)) && (delete this[o], n = !0);
|
|
728
728
|
}
|
|
729
729
|
return n;
|
|
730
730
|
}
|
|
731
731
|
normalize(e) {
|
|
732
|
-
const
|
|
732
|
+
const t = this, r = {};
|
|
733
733
|
return u.forEach(this, (n, o) => {
|
|
734
734
|
const a = u.findKey(r, o);
|
|
735
735
|
if (a) {
|
|
736
|
-
|
|
736
|
+
t[a] = te(n), delete t[o];
|
|
737
737
|
return;
|
|
738
738
|
}
|
|
739
|
-
const i = e ?
|
|
740
|
-
i !== o && delete
|
|
739
|
+
const i = e ? As(o) : String(o).trim();
|
|
740
|
+
i !== o && delete t[o], t[i] = te(n), r[i] = !0;
|
|
741
741
|
}), this;
|
|
742
742
|
}
|
|
743
743
|
concat(...e) {
|
|
744
744
|
return this.constructor.concat(this, ...e);
|
|
745
745
|
}
|
|
746
746
|
toJSON(e) {
|
|
747
|
-
const
|
|
747
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
748
748
|
return u.forEach(this, (r, n) => {
|
|
749
|
-
r != null && r !== !1 && (
|
|
750
|
-
}),
|
|
749
|
+
r != null && r !== !1 && (t[n] = e && u.isArray(r) ? r.join(", ") : r);
|
|
750
|
+
}), t;
|
|
751
751
|
}
|
|
752
752
|
[Symbol.iterator]() {
|
|
753
753
|
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
754
754
|
}
|
|
755
755
|
toString() {
|
|
756
|
-
return Object.entries(this.toJSON()).map(([e,
|
|
756
|
+
return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join(`
|
|
757
757
|
`);
|
|
758
758
|
}
|
|
759
759
|
getSetCookie() {
|
|
@@ -765,94 +765,94 @@ let F = class {
|
|
|
765
765
|
static from(e) {
|
|
766
766
|
return e instanceof this ? e : new this(e);
|
|
767
767
|
}
|
|
768
|
-
static concat(e, ...
|
|
768
|
+
static concat(e, ...t) {
|
|
769
769
|
const r = new this(e);
|
|
770
|
-
return
|
|
770
|
+
return t.forEach((n) => r.set(n)), r;
|
|
771
771
|
}
|
|
772
772
|
static accessor(e) {
|
|
773
|
-
const r = (this[
|
|
773
|
+
const r = (this[Ne] = this[Ne] = {
|
|
774
774
|
accessors: {}
|
|
775
775
|
}).accessors, n = this.prototype;
|
|
776
776
|
function o(a) {
|
|
777
|
-
const i =
|
|
778
|
-
r[i] || (
|
|
777
|
+
const i = W(a);
|
|
778
|
+
r[i] || (Os(n, a), r[i] = !0);
|
|
779
779
|
}
|
|
780
780
|
return u.isArray(e) ? e.forEach(o) : o(e), this;
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
784
|
-
u.reduceDescriptors(F.prototype, ({ value:
|
|
785
|
-
let
|
|
784
|
+
u.reduceDescriptors(F.prototype, ({ value: s }, e) => {
|
|
785
|
+
let t = e[0].toUpperCase() + e.slice(1);
|
|
786
786
|
return {
|
|
787
|
-
get: () =>
|
|
787
|
+
get: () => s,
|
|
788
788
|
set(r) {
|
|
789
|
-
this[
|
|
789
|
+
this[t] = r;
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
792
|
});
|
|
793
793
|
u.freezeMethods(F);
|
|
794
|
-
function fe(
|
|
795
|
-
const
|
|
794
|
+
function fe(s, e) {
|
|
795
|
+
const t = this || J, r = e || t, n = F.from(r.headers);
|
|
796
796
|
let o = r.data;
|
|
797
|
-
return u.forEach(
|
|
798
|
-
o = i.call(
|
|
797
|
+
return u.forEach(s, function(i) {
|
|
798
|
+
o = i.call(t, o, n.normalize(), e ? e.status : void 0);
|
|
799
799
|
}), n.normalize(), o;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
802
|
-
return !!(
|
|
801
|
+
function st(s) {
|
|
802
|
+
return !!(s && s.__CANCEL__);
|
|
803
803
|
}
|
|
804
|
-
function Q(
|
|
805
|
-
E.call(this,
|
|
804
|
+
function Q(s, e, t) {
|
|
805
|
+
E.call(this, s ?? "canceled", E.ERR_CANCELED, e, t), this.name = "CanceledError";
|
|
806
806
|
}
|
|
807
807
|
u.inherits(Q, E, {
|
|
808
808
|
__CANCEL__: !0
|
|
809
809
|
});
|
|
810
|
-
function
|
|
811
|
-
const r =
|
|
812
|
-
!
|
|
813
|
-
"Request failed with status code " +
|
|
814
|
-
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
810
|
+
function rt(s, e, t) {
|
|
811
|
+
const r = t.config.validateStatus;
|
|
812
|
+
!t.status || !r || r(t.status) ? s(t) : e(new E(
|
|
813
|
+
"Request failed with status code " + t.status,
|
|
814
|
+
[E.ERR_BAD_REQUEST, E.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
|
|
815
|
+
t.config,
|
|
816
|
+
t.request,
|
|
817
|
+
t
|
|
818
818
|
));
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(
|
|
820
|
+
function ys(s) {
|
|
821
|
+
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(s);
|
|
822
822
|
return e && e[1] || "";
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
|
|
826
|
-
const
|
|
824
|
+
function Ss(s, e) {
|
|
825
|
+
s = s || 10;
|
|
826
|
+
const t = new Array(s), r = new Array(s);
|
|
827
827
|
let n = 0, o = 0, a;
|
|
828
828
|
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
829
829
|
const l = Date.now(), d = r[o];
|
|
830
|
-
a || (a = l),
|
|
830
|
+
a || (a = l), t[n] = c, r[n] = l;
|
|
831
831
|
let p = o, O = 0;
|
|
832
832
|
for (; p !== n; )
|
|
833
|
-
O +=
|
|
834
|
-
if (n = (n + 1) %
|
|
833
|
+
O += t[p++], p = p % s;
|
|
834
|
+
if (n = (n + 1) % s, n === o && (o = (o + 1) % s), l - a < e)
|
|
835
835
|
return;
|
|
836
|
-
const
|
|
837
|
-
return
|
|
836
|
+
const b = d && l - d;
|
|
837
|
+
return b ? Math.round(O * 1e3 / b) : void 0;
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
let
|
|
840
|
+
function Rs(s, e) {
|
|
841
|
+
let t = 0, r = 1e3 / e, n, o;
|
|
842
842
|
const a = (l, d = Date.now()) => {
|
|
843
|
-
|
|
843
|
+
t = d, n = null, o && (clearTimeout(o), o = null), s.apply(null, l);
|
|
844
844
|
};
|
|
845
845
|
return [(...l) => {
|
|
846
|
-
const d = Date.now(), p = d -
|
|
846
|
+
const d = Date.now(), p = d - t;
|
|
847
847
|
p >= r ? a(l, d) : (n = l, o || (o = setTimeout(() => {
|
|
848
848
|
o = null, a(n);
|
|
849
849
|
}, r - p)));
|
|
850
850
|
}, () => n && a(n)];
|
|
851
851
|
}
|
|
852
|
-
const re = (
|
|
852
|
+
const re = (s, e, t = 3) => {
|
|
853
853
|
let r = 0;
|
|
854
|
-
const n =
|
|
855
|
-
return
|
|
854
|
+
const n = Ss(50, 250);
|
|
855
|
+
return Rs((o) => {
|
|
856
856
|
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, c = a - r, l = n(c), d = a <= i;
|
|
857
857
|
r = a;
|
|
858
858
|
const p = {
|
|
@@ -866,31 +866,31 @@ const re = (t, e, s = 3) => {
|
|
|
866
866
|
lengthComputable: i != null,
|
|
867
867
|
[e ? "download" : "upload"]: !0
|
|
868
868
|
};
|
|
869
|
-
|
|
870
|
-
},
|
|
871
|
-
}, Fe = (
|
|
872
|
-
const
|
|
869
|
+
s(p);
|
|
870
|
+
}, t);
|
|
871
|
+
}, Fe = (s, e) => {
|
|
872
|
+
const t = s != null;
|
|
873
873
|
return [(r) => e[0]({
|
|
874
|
-
lengthComputable:
|
|
875
|
-
total:
|
|
874
|
+
lengthComputable: t,
|
|
875
|
+
total: s,
|
|
876
876
|
loaded: r
|
|
877
877
|
}), e[1]];
|
|
878
|
-
}, Ue = (
|
|
878
|
+
}, Ue = (s) => (...e) => u.asap(() => s(...e)), Ps = 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)))(
|
|
879
879
|
new URL(I.origin),
|
|
880
880
|
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
881
881
|
) : () => !0, gs = I.hasStandardBrowserEnv ? (
|
|
882
882
|
// Standard browser envs support document.cookie
|
|
883
883
|
{
|
|
884
|
-
write(
|
|
885
|
-
const a = [
|
|
886
|
-
u.isNumber(
|
|
884
|
+
write(s, e, t, r, n, o) {
|
|
885
|
+
const a = [s + "=" + encodeURIComponent(e)];
|
|
886
|
+
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("; ");
|
|
887
887
|
},
|
|
888
|
-
read(
|
|
889
|
-
const e = document.cookie.match(new RegExp("(^|;\\s*)(" +
|
|
888
|
+
read(s) {
|
|
889
|
+
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + s + ")=([^;]*)"));
|
|
890
890
|
return e ? decodeURIComponent(e[3]) : null;
|
|
891
891
|
},
|
|
892
|
-
remove(
|
|
893
|
-
this.write(
|
|
892
|
+
remove(s) {
|
|
893
|
+
this.write(s, "", Date.now() - 864e5);
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
896
|
) : (
|
|
@@ -905,20 +905,20 @@ const re = (t, e, s = 3) => {
|
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
);
|
|
908
|
-
function
|
|
909
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(
|
|
908
|
+
function Ts(s) {
|
|
909
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(s);
|
|
910
910
|
}
|
|
911
|
-
function
|
|
912
|
-
return e ?
|
|
911
|
+
function Cs(s, e) {
|
|
912
|
+
return e ? s.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : s;
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
let r = !
|
|
916
|
-
return
|
|
914
|
+
function nt(s, e, t) {
|
|
915
|
+
let r = !Ts(e);
|
|
916
|
+
return s && (r || t == !1) ? Cs(s, e) : e;
|
|
917
917
|
}
|
|
918
|
-
const Ve = (
|
|
919
|
-
function v(
|
|
918
|
+
const Ve = (s) => s instanceof F ? { ...s } : s;
|
|
919
|
+
function v(s, e) {
|
|
920
920
|
e = e || {};
|
|
921
|
-
const
|
|
921
|
+
const t = {};
|
|
922
922
|
function r(l, d, p, O) {
|
|
923
923
|
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;
|
|
924
924
|
}
|
|
@@ -941,7 +941,7 @@ function v(t, e) {
|
|
|
941
941
|
function i(l, d, p) {
|
|
942
942
|
if (p in e)
|
|
943
943
|
return r(l, d);
|
|
944
|
-
if (p in
|
|
944
|
+
if (p in s)
|
|
945
945
|
return r(void 0, l);
|
|
946
946
|
}
|
|
947
947
|
const c = {
|
|
@@ -975,20 +975,20 @@ function v(t, e) {
|
|
|
975
975
|
validateStatus: i,
|
|
976
976
|
headers: (l, d, p) => n(Ve(l), Ve(d), p, !0)
|
|
977
977
|
};
|
|
978
|
-
return u.forEach(Object.keys(Object.assign({},
|
|
979
|
-
const p = c[d] || n, O = p(
|
|
980
|
-
u.isUndefined(O) && p !== i || (
|
|
981
|
-
}),
|
|
978
|
+
return u.forEach(Object.keys(Object.assign({}, s, e)), function(d) {
|
|
979
|
+
const p = c[d] || n, O = p(s[d], e[d], d);
|
|
980
|
+
u.isUndefined(O) && p !== i || (t[d] = O);
|
|
981
|
+
}), t;
|
|
982
982
|
}
|
|
983
|
-
const
|
|
984
|
-
const e = v({},
|
|
985
|
-
let { data:
|
|
986
|
-
e.headers = a = F.from(a), e.url =
|
|
983
|
+
const ot = (s) => {
|
|
984
|
+
const e = v({}, s);
|
|
985
|
+
let { data: t, withXSRFToken: r, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = e;
|
|
986
|
+
e.headers = a = F.from(a), e.url = Ze(nt(e.baseURL, e.url, e.allowAbsoluteUrls), s.params, s.paramsSerializer), i && a.set(
|
|
987
987
|
"Authorization",
|
|
988
988
|
"Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
|
|
989
989
|
);
|
|
990
990
|
let c;
|
|
991
|
-
if (u.isFormData(
|
|
991
|
+
if (u.isFormData(t)) {
|
|
992
992
|
if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
|
|
993
993
|
a.setContentType(void 0);
|
|
994
994
|
else if ((c = a.getContentType()) !== !1) {
|
|
@@ -996,19 +996,19 @@ const nt = (t) => {
|
|
|
996
996
|
a.setContentType([l || "multipart/form-data", ...d].join("; "));
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
-
if (I.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(e)), r || r !== !1 &&
|
|
999
|
+
if (I.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(e)), r || r !== !1 && Ps(e.url))) {
|
|
1000
1000
|
const l = n && o && gs.read(o);
|
|
1001
1001
|
l && a.set(n, l);
|
|
1002
1002
|
}
|
|
1003
1003
|
return e;
|
|
1004
|
-
},
|
|
1005
|
-
return new Promise(function(
|
|
1006
|
-
const n =
|
|
1004
|
+
}, bs = typeof XMLHttpRequest < "u", _s = bs && function(s) {
|
|
1005
|
+
return new Promise(function(t, r) {
|
|
1006
|
+
const n = ot(s);
|
|
1007
1007
|
let o = n.data;
|
|
1008
1008
|
const a = F.from(n.headers).normalize();
|
|
1009
|
-
let { responseType: i, onUploadProgress: c, onDownloadProgress: l } = n, d, p, O,
|
|
1009
|
+
let { responseType: i, onUploadProgress: c, onDownloadProgress: l } = n, d, p, O, b, h;
|
|
1010
1010
|
function A() {
|
|
1011
|
-
|
|
1011
|
+
b && b(), h && h(), n.cancelToken && n.cancelToken.unsubscribe(d), n.signal && n.signal.removeEventListener("abort", d);
|
|
1012
1012
|
}
|
|
1013
1013
|
let f = new XMLHttpRequest();
|
|
1014
1014
|
f.open(n.method.toUpperCase(), n.url, !0), f.timeout = n.timeout;
|
|
@@ -1017,50 +1017,50 @@ const nt = (t) => {
|
|
|
1017
1017
|
return;
|
|
1018
1018
|
const w = F.from(
|
|
1019
1019
|
"getAllResponseHeaders" in f && f.getAllResponseHeaders()
|
|
1020
|
-
),
|
|
1020
|
+
), L = {
|
|
1021
1021
|
data: !i || i === "text" || i === "json" ? f.responseText : f.response,
|
|
1022
1022
|
status: f.status,
|
|
1023
1023
|
statusText: f.statusText,
|
|
1024
1024
|
headers: w,
|
|
1025
|
-
config:
|
|
1025
|
+
config: s,
|
|
1026
1026
|
request: f
|
|
1027
1027
|
};
|
|
1028
|
-
|
|
1029
|
-
|
|
1028
|
+
rt(function(B) {
|
|
1029
|
+
t(B), A();
|
|
1030
1030
|
}, function(B) {
|
|
1031
1031
|
r(B), A();
|
|
1032
|
-
},
|
|
1032
|
+
}, L), f = null;
|
|
1033
1033
|
}
|
|
1034
1034
|
"onloadend" in f ? f.onloadend = C : f.onreadystatechange = function() {
|
|
1035
1035
|
!f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
1036
1036
|
}, f.onabort = function() {
|
|
1037
|
-
f && (r(new E("Request aborted", E.ECONNABORTED,
|
|
1037
|
+
f && (r(new E("Request aborted", E.ECONNABORTED, s, f)), f = null);
|
|
1038
1038
|
}, f.onerror = function() {
|
|
1039
|
-
r(new E("Network Error", E.ERR_NETWORK,
|
|
1039
|
+
r(new E("Network Error", E.ERR_NETWORK, s, f)), f = null;
|
|
1040
1040
|
}, f.ontimeout = function() {
|
|
1041
1041
|
let G = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1042
|
-
const
|
|
1042
|
+
const L = n.transitional || et;
|
|
1043
1043
|
n.timeoutErrorMessage && (G = n.timeoutErrorMessage), r(new E(
|
|
1044
1044
|
G,
|
|
1045
|
-
|
|
1046
|
-
|
|
1045
|
+
L.clarifyTimeoutError ? E.ETIMEDOUT : E.ECONNABORTED,
|
|
1046
|
+
s,
|
|
1047
1047
|
f
|
|
1048
1048
|
)), f = null;
|
|
1049
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(G,
|
|
1050
|
-
f.setRequestHeader(
|
|
1051
|
-
}), u.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), i && i !== "json" && (f.responseType = n.responseType), l && ([O, h] = re(l, !0), f.addEventListener("progress", O)), c && f.upload && ([p,
|
|
1052
|
-
f && (r(!w || w.type ? new Q(null,
|
|
1049
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(G, L) {
|
|
1050
|
+
f.setRequestHeader(L, G);
|
|
1051
|
+
}), u.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), i && i !== "json" && (f.responseType = n.responseType), l && ([O, h] = re(l, !0), f.addEventListener("progress", O)), c && f.upload && ([p, b] = re(c), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", b)), (n.cancelToken || n.signal) && (d = (w) => {
|
|
1052
|
+
f && (r(!w || w.type ? new Q(null, s, f) : w), f.abort(), f = null);
|
|
1053
1053
|
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
1054
|
-
const
|
|
1055
|
-
if (
|
|
1056
|
-
r(new E("Unsupported protocol " +
|
|
1054
|
+
const _ = ys(n.url);
|
|
1055
|
+
if (_ && I.protocols.indexOf(_) === -1) {
|
|
1056
|
+
r(new E("Unsupported protocol " + _ + ":", E.ERR_BAD_REQUEST, s));
|
|
1057
1057
|
return;
|
|
1058
1058
|
}
|
|
1059
1059
|
f.send(o || null);
|
|
1060
1060
|
});
|
|
1061
|
-
},
|
|
1062
|
-
const { length:
|
|
1063
|
-
if (e ||
|
|
1061
|
+
}, ws = (s, e) => {
|
|
1062
|
+
const { length: t } = s = s ? s.filter(Boolean) : [];
|
|
1063
|
+
if (e || t) {
|
|
1064
1064
|
let r = new AbortController(), n;
|
|
1065
1065
|
const o = function(l) {
|
|
1066
1066
|
if (!n) {
|
|
@@ -1073,44 +1073,44 @@ const nt = (t) => {
|
|
|
1073
1073
|
a = null, o(new E(`timeout ${e} of ms exceeded`, E.ETIMEDOUT));
|
|
1074
1074
|
}, e);
|
|
1075
1075
|
const i = () => {
|
|
1076
|
-
|
|
1076
|
+
s && (a && clearTimeout(a), a = null, s.forEach((l) => {
|
|
1077
1077
|
l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
|
|
1078
|
-
}),
|
|
1078
|
+
}), s = null);
|
|
1079
1079
|
};
|
|
1080
|
-
|
|
1080
|
+
s.forEach((l) => l.addEventListener("abort", o));
|
|
1081
1081
|
const { signal: c } = r;
|
|
1082
1082
|
return c.unsubscribe = () => u.asap(i), c;
|
|
1083
1083
|
}
|
|
1084
|
-
},
|
|
1085
|
-
let
|
|
1086
|
-
if (
|
|
1087
|
-
yield
|
|
1084
|
+
}, Is = function* (s, e) {
|
|
1085
|
+
let t = s.byteLength;
|
|
1086
|
+
if (t < e) {
|
|
1087
|
+
yield s;
|
|
1088
1088
|
return;
|
|
1089
1089
|
}
|
|
1090
1090
|
let r = 0, n;
|
|
1091
|
-
for (; r <
|
|
1092
|
-
n = r + e, yield
|
|
1093
|
-
},
|
|
1094
|
-
for await (const
|
|
1095
|
-
yield*
|
|
1096
|
-
}, Ns = async function* (
|
|
1097
|
-
if (
|
|
1098
|
-
yield*
|
|
1091
|
+
for (; r < t; )
|
|
1092
|
+
n = r + e, yield s.slice(r, n), r = n;
|
|
1093
|
+
}, Ls = async function* (s, e) {
|
|
1094
|
+
for await (const t of Ns(s))
|
|
1095
|
+
yield* Is(t, e);
|
|
1096
|
+
}, Ns = async function* (s) {
|
|
1097
|
+
if (s[Symbol.asyncIterator]) {
|
|
1098
|
+
yield* s;
|
|
1099
1099
|
return;
|
|
1100
1100
|
}
|
|
1101
|
-
const e =
|
|
1101
|
+
const e = s.getReader();
|
|
1102
1102
|
try {
|
|
1103
1103
|
for (; ; ) {
|
|
1104
|
-
const { done:
|
|
1105
|
-
if (
|
|
1104
|
+
const { done: t, value: r } = await e.read();
|
|
1105
|
+
if (t)
|
|
1106
1106
|
break;
|
|
1107
1107
|
yield r;
|
|
1108
1108
|
}
|
|
1109
1109
|
} finally {
|
|
1110
1110
|
await e.cancel();
|
|
1111
1111
|
}
|
|
1112
|
-
}, De = (
|
|
1113
|
-
const n =
|
|
1112
|
+
}, De = (s, e, t, r) => {
|
|
1113
|
+
const n = Ls(s, e);
|
|
1114
1114
|
let o = 0, a, i = (c) => {
|
|
1115
1115
|
a || (a = !0, r && r(c));
|
|
1116
1116
|
};
|
|
@@ -1123,9 +1123,9 @@ const nt = (t) => {
|
|
|
1123
1123
|
return;
|
|
1124
1124
|
}
|
|
1125
1125
|
let p = d.byteLength;
|
|
1126
|
-
if (
|
|
1126
|
+
if (t) {
|
|
1127
1127
|
let O = o += p;
|
|
1128
|
-
|
|
1128
|
+
t(O);
|
|
1129
1129
|
}
|
|
1130
1130
|
c.enqueue(new Uint8Array(d));
|
|
1131
1131
|
} catch (l) {
|
|
@@ -1138,53 +1138,53 @@ const nt = (t) => {
|
|
|
1138
1138
|
}, {
|
|
1139
1139
|
highWaterMark: 2
|
|
1140
1140
|
});
|
|
1141
|
-
}, de = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1141
|
+
}, de = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", at = de && typeof ReadableStream == "function", Fs = de && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((s) => (e) => s.encode(e))(new TextEncoder()) : async (s) => new Uint8Array(await new Response(s).arrayBuffer())), it = (s, ...e) => {
|
|
1142
1142
|
try {
|
|
1143
|
-
return !!
|
|
1143
|
+
return !!s(...e);
|
|
1144
1144
|
} catch {
|
|
1145
1145
|
return !1;
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1148
|
-
let
|
|
1147
|
+
}, Us = at && it(() => {
|
|
1148
|
+
let s = !1;
|
|
1149
1149
|
const e = new Request(I.origin, {
|
|
1150
1150
|
body: new ReadableStream(),
|
|
1151
1151
|
method: "POST",
|
|
1152
1152
|
get duplex() {
|
|
1153
|
-
return
|
|
1153
|
+
return s = !0, "half";
|
|
1154
1154
|
}
|
|
1155
1155
|
}).headers.has("Content-Type");
|
|
1156
|
-
return
|
|
1157
|
-
}), Ge = 64 * 1024, Se =
|
|
1158
|
-
stream: Se && ((
|
|
1156
|
+
return s && !e;
|
|
1157
|
+
}), Ge = 64 * 1024, Se = at && it(() => u.isReadableStream(new Response("").body)), ne = {
|
|
1158
|
+
stream: Se && ((s) => s.body)
|
|
1159
1159
|
};
|
|
1160
|
-
de && ((
|
|
1160
|
+
de && ((s) => {
|
|
1161
1161
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1162
|
-
!ne[e] && (ne[e] = u.isFunction(
|
|
1162
|
+
!ne[e] && (ne[e] = u.isFunction(s[e]) ? (t) => t[e]() : (t, r) => {
|
|
1163
1163
|
throw new E(`Response type '${e}' is not supported`, E.ERR_NOT_SUPPORT, r);
|
|
1164
1164
|
});
|
|
1165
1165
|
});
|
|
1166
1166
|
})(new Response());
|
|
1167
|
-
const
|
|
1168
|
-
if (
|
|
1167
|
+
const Vs = async (s) => {
|
|
1168
|
+
if (s == null)
|
|
1169
1169
|
return 0;
|
|
1170
|
-
if (u.isBlob(
|
|
1171
|
-
return
|
|
1172
|
-
if (u.isSpecCompliantForm(
|
|
1170
|
+
if (u.isBlob(s))
|
|
1171
|
+
return s.size;
|
|
1172
|
+
if (u.isSpecCompliantForm(s))
|
|
1173
1173
|
return (await new Request(I.origin, {
|
|
1174
1174
|
method: "POST",
|
|
1175
|
-
body:
|
|
1175
|
+
body: s
|
|
1176
1176
|
}).arrayBuffer()).byteLength;
|
|
1177
|
-
if (u.isArrayBufferView(
|
|
1178
|
-
return
|
|
1179
|
-
if (u.isURLSearchParams(
|
|
1180
|
-
return (await
|
|
1181
|
-
},
|
|
1182
|
-
const
|
|
1183
|
-
return
|
|
1184
|
-
},
|
|
1177
|
+
if (u.isArrayBufferView(s) || u.isArrayBuffer(s))
|
|
1178
|
+
return s.byteLength;
|
|
1179
|
+
if (u.isURLSearchParams(s) && (s = s + ""), u.isString(s))
|
|
1180
|
+
return (await Fs(s)).byteLength;
|
|
1181
|
+
}, Ds = async (s, e) => {
|
|
1182
|
+
const t = u.toFiniteNumber(s.getContentLength());
|
|
1183
|
+
return t ?? Vs(e);
|
|
1184
|
+
}, Gs = de && (async (s) => {
|
|
1185
1185
|
let {
|
|
1186
1186
|
url: e,
|
|
1187
|
-
method:
|
|
1187
|
+
method: t,
|
|
1188
1188
|
data: r,
|
|
1189
1189
|
signal: n,
|
|
1190
1190
|
cancelToken: o,
|
|
@@ -1195,101 +1195,101 @@ const Us = async (t) => {
|
|
|
1195
1195
|
headers: d,
|
|
1196
1196
|
withCredentials: p = "same-origin",
|
|
1197
1197
|
fetchOptions: O
|
|
1198
|
-
} =
|
|
1198
|
+
} = ot(s);
|
|
1199
1199
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1200
|
-
let
|
|
1201
|
-
const A =
|
|
1202
|
-
|
|
1200
|
+
let b = ws([n, o && o.toAbortSignal()], a), h;
|
|
1201
|
+
const A = b && b.unsubscribe && (() => {
|
|
1202
|
+
b.unsubscribe();
|
|
1203
1203
|
});
|
|
1204
1204
|
let f;
|
|
1205
1205
|
try {
|
|
1206
|
-
if (c &&
|
|
1207
|
-
let
|
|
1206
|
+
if (c && Us && t !== "get" && t !== "head" && (f = await Ds(d, r)) !== 0) {
|
|
1207
|
+
let L = new Request(e, {
|
|
1208
1208
|
method: "POST",
|
|
1209
1209
|
body: r,
|
|
1210
1210
|
duplex: "half"
|
|
1211
1211
|
}), x;
|
|
1212
|
-
if (u.isFormData(r) && (x =
|
|
1212
|
+
if (u.isFormData(r) && (x = L.headers.get("content-type")) && d.setContentType(x), L.body) {
|
|
1213
1213
|
const [B, Y] = Fe(
|
|
1214
1214
|
f,
|
|
1215
1215
|
re(Ue(c))
|
|
1216
1216
|
);
|
|
1217
|
-
r = De(
|
|
1217
|
+
r = De(L.body, Ge, B, Y);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
u.isString(p) || (p = p ? "include" : "omit");
|
|
1221
1221
|
const C = "credentials" in Request.prototype;
|
|
1222
1222
|
h = new Request(e, {
|
|
1223
1223
|
...O,
|
|
1224
|
-
signal:
|
|
1225
|
-
method:
|
|
1224
|
+
signal: b,
|
|
1225
|
+
method: t.toUpperCase(),
|
|
1226
1226
|
headers: d.normalize().toJSON(),
|
|
1227
1227
|
body: r,
|
|
1228
1228
|
duplex: "half",
|
|
1229
1229
|
credentials: C ? p : void 0
|
|
1230
1230
|
});
|
|
1231
|
-
let
|
|
1231
|
+
let _ = await fetch(h, O);
|
|
1232
1232
|
const w = Se && (l === "stream" || l === "response");
|
|
1233
1233
|
if (Se && (i || w && A)) {
|
|
1234
|
-
const
|
|
1235
|
-
["status", "statusText", "headers"].forEach((
|
|
1236
|
-
|
|
1234
|
+
const L = {};
|
|
1235
|
+
["status", "statusText", "headers"].forEach((be) => {
|
|
1236
|
+
L[be] = _[be];
|
|
1237
1237
|
});
|
|
1238
|
-
const x = u.toFiniteNumber(
|
|
1238
|
+
const x = u.toFiniteNumber(_.headers.get("content-length")), [B, Y] = i && Fe(
|
|
1239
1239
|
x,
|
|
1240
1240
|
re(Ue(i), !0)
|
|
1241
1241
|
) || [];
|
|
1242
|
-
|
|
1243
|
-
De(
|
|
1242
|
+
_ = new Response(
|
|
1243
|
+
De(_.body, Ge, B, () => {
|
|
1244
1244
|
Y && Y(), A && A();
|
|
1245
1245
|
}),
|
|
1246
|
-
|
|
1246
|
+
L
|
|
1247
1247
|
);
|
|
1248
1248
|
}
|
|
1249
1249
|
l = l || "text";
|
|
1250
|
-
let G = await ne[u.findKey(ne, l) || "text"](
|
|
1251
|
-
return !w && A && A(), await new Promise((
|
|
1252
|
-
|
|
1250
|
+
let G = await ne[u.findKey(ne, l) || "text"](_, s);
|
|
1251
|
+
return !w && A && A(), await new Promise((L, x) => {
|
|
1252
|
+
rt(L, x, {
|
|
1253
1253
|
data: G,
|
|
1254
|
-
headers: F.from(
|
|
1255
|
-
status:
|
|
1256
|
-
statusText:
|
|
1257
|
-
config:
|
|
1254
|
+
headers: F.from(_.headers),
|
|
1255
|
+
status: _.status,
|
|
1256
|
+
statusText: _.statusText,
|
|
1257
|
+
config: s,
|
|
1258
1258
|
request: h
|
|
1259
1259
|
});
|
|
1260
1260
|
});
|
|
1261
1261
|
} catch (C) {
|
|
1262
1262
|
throw A && A(), C && C.name === "TypeError" && /Load failed|fetch/i.test(C.message) ? Object.assign(
|
|
1263
|
-
new E("Network Error", E.ERR_NETWORK,
|
|
1263
|
+
new E("Network Error", E.ERR_NETWORK, s, h),
|
|
1264
1264
|
{
|
|
1265
1265
|
cause: C.cause || C
|
|
1266
1266
|
}
|
|
1267
|
-
) : E.from(C, C && C.code,
|
|
1267
|
+
) : E.from(C, C && C.code, s, h);
|
|
1268
1268
|
}
|
|
1269
1269
|
}), Re = {
|
|
1270
|
-
http:
|
|
1270
|
+
http: Jt,
|
|
1271
1271
|
xhr: _s,
|
|
1272
|
-
fetch:
|
|
1272
|
+
fetch: Gs
|
|
1273
1273
|
};
|
|
1274
|
-
u.forEach(Re, (
|
|
1275
|
-
if (
|
|
1274
|
+
u.forEach(Re, (s, e) => {
|
|
1275
|
+
if (s) {
|
|
1276
1276
|
try {
|
|
1277
|
-
Object.defineProperty(
|
|
1277
|
+
Object.defineProperty(s, "name", { value: e });
|
|
1278
1278
|
} catch {
|
|
1279
1279
|
}
|
|
1280
|
-
Object.defineProperty(
|
|
1280
|
+
Object.defineProperty(s, "adapterName", { value: e });
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
|
-
const He = (
|
|
1284
|
-
getAdapter: (
|
|
1285
|
-
|
|
1286
|
-
const { length: e } =
|
|
1287
|
-
let
|
|
1283
|
+
const He = (s) => `- ${s}`, Hs = (s) => u.isFunction(s) || s === null || s === !1, ct = {
|
|
1284
|
+
getAdapter: (s) => {
|
|
1285
|
+
s = u.isArray(s) ? s : [s];
|
|
1286
|
+
const { length: e } = s;
|
|
1287
|
+
let t, r;
|
|
1288
1288
|
const n = {};
|
|
1289
1289
|
for (let o = 0; o < e; o++) {
|
|
1290
|
-
|
|
1290
|
+
t = s[o];
|
|
1291
1291
|
let a;
|
|
1292
|
-
if (r =
|
|
1292
|
+
if (r = t, !Hs(t) && (r = Re[(a = String(t)).toLowerCase()], r === void 0))
|
|
1293
1293
|
throw new E(`Unknown adapter '${a}'`);
|
|
1294
1294
|
if (r)
|
|
1295
1295
|
break;
|
|
@@ -1311,82 +1311,82 @@ const He = (t) => `- ${t}`, Gs = (t) => u.isFunction(t) || t === null || t === !
|
|
|
1311
1311
|
},
|
|
1312
1312
|
adapters: Re
|
|
1313
1313
|
};
|
|
1314
|
-
function me(
|
|
1315
|
-
if (
|
|
1316
|
-
throw new Q(null,
|
|
1314
|
+
function me(s) {
|
|
1315
|
+
if (s.cancelToken && s.cancelToken.throwIfRequested(), s.signal && s.signal.aborted)
|
|
1316
|
+
throw new Q(null, s);
|
|
1317
1317
|
}
|
|
1318
|
-
function xe(
|
|
1319
|
-
return me(
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
), ["post", "put", "patch"].indexOf(
|
|
1323
|
-
return me(
|
|
1324
|
-
|
|
1325
|
-
|
|
1318
|
+
function xe(s) {
|
|
1319
|
+
return me(s), s.headers = F.from(s.headers), s.data = fe.call(
|
|
1320
|
+
s,
|
|
1321
|
+
s.transformRequest
|
|
1322
|
+
), ["post", "put", "patch"].indexOf(s.method) !== -1 && s.headers.setContentType("application/x-www-form-urlencoded", !1), ct.getAdapter(s.adapter || J.adapter)(s).then(function(r) {
|
|
1323
|
+
return me(s), r.data = fe.call(
|
|
1324
|
+
s,
|
|
1325
|
+
s.transformResponse,
|
|
1326
1326
|
r
|
|
1327
1327
|
), r.headers = F.from(r.headers), r;
|
|
1328
1328
|
}, function(r) {
|
|
1329
|
-
return
|
|
1330
|
-
|
|
1331
|
-
|
|
1329
|
+
return st(r) || (me(s), r && r.response && (r.response.data = fe.call(
|
|
1330
|
+
s,
|
|
1331
|
+
s.transformResponse,
|
|
1332
1332
|
r.response
|
|
1333
1333
|
), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
|
|
1334
1334
|
});
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1337
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((
|
|
1338
|
-
pe[
|
|
1339
|
-
return typeof r ===
|
|
1336
|
+
const lt = "1.10.0", pe = {};
|
|
1337
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((s, e) => {
|
|
1338
|
+
pe[s] = function(r) {
|
|
1339
|
+
return typeof r === s || "a" + (e < 1 ? "n " : " ") + s;
|
|
1340
1340
|
};
|
|
1341
1341
|
});
|
|
1342
1342
|
const Be = {};
|
|
1343
|
-
pe.transitional = function(e,
|
|
1343
|
+
pe.transitional = function(e, t, r) {
|
|
1344
1344
|
function n(o, a) {
|
|
1345
|
-
return "[Axios v" +
|
|
1345
|
+
return "[Axios v" + lt + "] Transitional option '" + o + "'" + a + (r ? ". " + r : "");
|
|
1346
1346
|
}
|
|
1347
1347
|
return (o, a, i) => {
|
|
1348
1348
|
if (e === !1)
|
|
1349
1349
|
throw new E(
|
|
1350
|
-
n(a, " has been removed" + (
|
|
1350
|
+
n(a, " has been removed" + (t ? " in " + t : "")),
|
|
1351
1351
|
E.ERR_DEPRECATED
|
|
1352
1352
|
);
|
|
1353
|
-
return
|
|
1353
|
+
return t && !Be[a] && (Be[a] = !0, console.warn(
|
|
1354
1354
|
n(
|
|
1355
1355
|
a,
|
|
1356
|
-
" has been deprecated since v" +
|
|
1356
|
+
" has been deprecated since v" + t + " and will be removed in the near future"
|
|
1357
1357
|
)
|
|
1358
1358
|
)), e ? e(o, a, i) : !0;
|
|
1359
1359
|
};
|
|
1360
1360
|
};
|
|
1361
1361
|
pe.spelling = function(e) {
|
|
1362
|
-
return (
|
|
1362
|
+
return (t, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
1363
1363
|
};
|
|
1364
|
-
function
|
|
1365
|
-
if (typeof
|
|
1364
|
+
function xs(s, e, t) {
|
|
1365
|
+
if (typeof s != "object")
|
|
1366
1366
|
throw new E("options must be an object", E.ERR_BAD_OPTION_VALUE);
|
|
1367
|
-
const r = Object.keys(
|
|
1367
|
+
const r = Object.keys(s);
|
|
1368
1368
|
let n = r.length;
|
|
1369
1369
|
for (; n-- > 0; ) {
|
|
1370
1370
|
const o = r[n], a = e[o];
|
|
1371
1371
|
if (a) {
|
|
1372
|
-
const i =
|
|
1372
|
+
const i = s[o], c = i === void 0 || a(i, o, s);
|
|
1373
1373
|
if (c !== !0)
|
|
1374
1374
|
throw new E("option " + o + " must be " + c, E.ERR_BAD_OPTION_VALUE);
|
|
1375
1375
|
continue;
|
|
1376
1376
|
}
|
|
1377
|
-
if (
|
|
1377
|
+
if (t !== !0)
|
|
1378
1378
|
throw new E("Unknown option " + o, E.ERR_BAD_OPTION);
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
1381
1381
|
const se = {
|
|
1382
|
-
assertOptions:
|
|
1382
|
+
assertOptions: xs,
|
|
1383
1383
|
validators: pe
|
|
1384
1384
|
}, V = se.validators;
|
|
1385
1385
|
let k = class {
|
|
1386
1386
|
constructor(e) {
|
|
1387
1387
|
this.defaults = e || {}, this.interceptors = {
|
|
1388
|
-
request: new
|
|
1389
|
-
response: new
|
|
1388
|
+
request: new Le(),
|
|
1389
|
+
response: new Le()
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
1392
|
/**
|
|
@@ -1397,9 +1397,9 @@ let k = class {
|
|
|
1397
1397
|
*
|
|
1398
1398
|
* @returns {Promise} The Promise to be fulfilled
|
|
1399
1399
|
*/
|
|
1400
|
-
async request(e,
|
|
1400
|
+
async request(e, t) {
|
|
1401
1401
|
try {
|
|
1402
|
-
return await this._request(e,
|
|
1402
|
+
return await this._request(e, t);
|
|
1403
1403
|
} catch (r) {
|
|
1404
1404
|
if (r instanceof Error) {
|
|
1405
1405
|
let n = {};
|
|
@@ -1414,36 +1414,36 @@ let k = class {
|
|
|
1414
1414
|
throw r;
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
_request(e,
|
|
1418
|
-
typeof e == "string" ? (
|
|
1419
|
-
const { transitional: r, paramsSerializer: n, headers: o } =
|
|
1417
|
+
_request(e, t) {
|
|
1418
|
+
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = v(this.defaults, t);
|
|
1419
|
+
const { transitional: r, paramsSerializer: n, headers: o } = t;
|
|
1420
1420
|
r !== void 0 && se.assertOptions(r, {
|
|
1421
1421
|
silentJSONParsing: V.transitional(V.boolean),
|
|
1422
1422
|
forcedJSONParsing: V.transitional(V.boolean),
|
|
1423
1423
|
clarifyTimeoutError: V.transitional(V.boolean)
|
|
1424
|
-
}, !1), n != null && (u.isFunction(n) ?
|
|
1424
|
+
}, !1), n != null && (u.isFunction(n) ? t.paramsSerializer = {
|
|
1425
1425
|
serialize: n
|
|
1426
1426
|
} : se.assertOptions(n, {
|
|
1427
1427
|
encode: V.function,
|
|
1428
1428
|
serialize: V.function
|
|
1429
|
-
}, !0)),
|
|
1429
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), se.assertOptions(t, {
|
|
1430
1430
|
baseUrl: V.spelling("baseURL"),
|
|
1431
1431
|
withXsrfToken: V.spelling("withXSRFToken")
|
|
1432
|
-
}, !0),
|
|
1432
|
+
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1433
1433
|
let a = o && u.merge(
|
|
1434
1434
|
o.common,
|
|
1435
|
-
o[
|
|
1435
|
+
o[t.method]
|
|
1436
1436
|
);
|
|
1437
1437
|
o && u.forEach(
|
|
1438
1438
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1439
1439
|
(h) => {
|
|
1440
1440
|
delete o[h];
|
|
1441
1441
|
}
|
|
1442
|
-
),
|
|
1442
|
+
), t.headers = F.concat(a, o);
|
|
1443
1443
|
const i = [];
|
|
1444
1444
|
let c = !0;
|
|
1445
1445
|
this.interceptors.request.forEach(function(A) {
|
|
1446
|
-
typeof A.runWhen == "function" && A.runWhen(
|
|
1446
|
+
typeof A.runWhen == "function" && A.runWhen(t) === !1 || (c = c && A.synchronous, i.unshift(A.fulfilled, A.rejected));
|
|
1447
1447
|
});
|
|
1448
1448
|
const l = [];
|
|
1449
1449
|
this.interceptors.response.forEach(function(A) {
|
|
@@ -1452,23 +1452,23 @@ let k = class {
|
|
|
1452
1452
|
let d, p = 0, O;
|
|
1453
1453
|
if (!c) {
|
|
1454
1454
|
const h = [xe.bind(this), void 0];
|
|
1455
|
-
for (h.unshift.apply(h, i), h.push.apply(h, l), O = h.length, d = Promise.resolve(
|
|
1455
|
+
for (h.unshift.apply(h, i), h.push.apply(h, l), O = h.length, d = Promise.resolve(t); p < O; )
|
|
1456
1456
|
d = d.then(h[p++], h[p++]);
|
|
1457
1457
|
return d;
|
|
1458
1458
|
}
|
|
1459
1459
|
O = i.length;
|
|
1460
|
-
let
|
|
1460
|
+
let b = t;
|
|
1461
1461
|
for (p = 0; p < O; ) {
|
|
1462
1462
|
const h = i[p++], A = i[p++];
|
|
1463
1463
|
try {
|
|
1464
|
-
|
|
1464
|
+
b = h(b);
|
|
1465
1465
|
} catch (f) {
|
|
1466
1466
|
A.call(this, f);
|
|
1467
1467
|
break;
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
try {
|
|
1471
|
-
d = xe.call(this,
|
|
1471
|
+
d = xe.call(this, b);
|
|
1472
1472
|
} catch (h) {
|
|
1473
1473
|
return Promise.reject(h);
|
|
1474
1474
|
}
|
|
@@ -1478,21 +1478,21 @@ let k = class {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
getUri(e) {
|
|
1480
1480
|
e = v(this.defaults, e);
|
|
1481
|
-
const
|
|
1482
|
-
return
|
|
1481
|
+
const t = nt(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1482
|
+
return Ze(t, e.params, e.paramsSerializer);
|
|
1483
1483
|
}
|
|
1484
1484
|
};
|
|
1485
1485
|
u.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1486
|
-
k.prototype[e] = function(
|
|
1486
|
+
k.prototype[e] = function(t, r) {
|
|
1487
1487
|
return this.request(v(r || {}, {
|
|
1488
1488
|
method: e,
|
|
1489
|
-
url:
|
|
1489
|
+
url: t,
|
|
1490
1490
|
data: (r || {}).data
|
|
1491
1491
|
}));
|
|
1492
1492
|
};
|
|
1493
1493
|
});
|
|
1494
1494
|
u.forEach(["post", "put", "patch"], function(e) {
|
|
1495
|
-
function
|
|
1495
|
+
function t(r) {
|
|
1496
1496
|
return function(o, a, i) {
|
|
1497
1497
|
return this.request(v(i || {}, {
|
|
1498
1498
|
method: e,
|
|
@@ -1504,15 +1504,15 @@ u.forEach(["post", "put", "patch"], function(e) {
|
|
|
1504
1504
|
}));
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
|
-
k.prototype[e] =
|
|
1507
|
+
k.prototype[e] = t(), k.prototype[e + "Form"] = t(!0);
|
|
1508
1508
|
});
|
|
1509
|
-
let
|
|
1509
|
+
let Bs = class ut {
|
|
1510
1510
|
constructor(e) {
|
|
1511
1511
|
if (typeof e != "function")
|
|
1512
1512
|
throw new TypeError("executor must be a function.");
|
|
1513
|
-
let
|
|
1513
|
+
let t;
|
|
1514
1514
|
this.promise = new Promise(function(o) {
|
|
1515
|
-
|
|
1515
|
+
t = o;
|
|
1516
1516
|
});
|
|
1517
1517
|
const r = this;
|
|
1518
1518
|
this.promise.then((n) => {
|
|
@@ -1530,7 +1530,7 @@ let xs = class lt {
|
|
|
1530
1530
|
r.unsubscribe(o);
|
|
1531
1531
|
}, a;
|
|
1532
1532
|
}, e(function(o, a, i) {
|
|
1533
|
-
r.reason || (r.reason = new Q(o, a, i),
|
|
1533
|
+
r.reason || (r.reason = new Q(o, a, i), t(r.reason));
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
1536
|
/**
|
|
@@ -1556,14 +1556,14 @@ let xs = class lt {
|
|
|
1556
1556
|
unsubscribe(e) {
|
|
1557
1557
|
if (!this._listeners)
|
|
1558
1558
|
return;
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1559
|
+
const t = this._listeners.indexOf(e);
|
|
1560
|
+
t !== -1 && this._listeners.splice(t, 1);
|
|
1561
1561
|
}
|
|
1562
1562
|
toAbortSignal() {
|
|
1563
|
-
const e = new AbortController(),
|
|
1563
|
+
const e = new AbortController(), t = (r) => {
|
|
1564
1564
|
e.abort(r);
|
|
1565
1565
|
};
|
|
1566
|
-
return this.subscribe(
|
|
1566
|
+
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
1567
1567
|
}
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
@@ -1572,22 +1572,22 @@ let xs = class lt {
|
|
|
1572
1572
|
static source() {
|
|
1573
1573
|
let e;
|
|
1574
1574
|
return {
|
|
1575
|
-
token: new
|
|
1575
|
+
token: new ut(function(n) {
|
|
1576
1576
|
e = n;
|
|
1577
1577
|
}),
|
|
1578
1578
|
cancel: e
|
|
1579
1579
|
};
|
|
1580
1580
|
}
|
|
1581
1581
|
};
|
|
1582
|
-
function
|
|
1583
|
-
return function(
|
|
1584
|
-
return
|
|
1582
|
+
function Ms(s) {
|
|
1583
|
+
return function(t) {
|
|
1584
|
+
return s.apply(null, t);
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return u.isObject(
|
|
1587
|
+
function js(s) {
|
|
1588
|
+
return u.isObject(s) && s.isAxiosError === !0;
|
|
1589
1589
|
}
|
|
1590
|
-
const
|
|
1590
|
+
const Pe = {
|
|
1591
1591
|
Continue: 100,
|
|
1592
1592
|
SwitchingProtocols: 101,
|
|
1593
1593
|
Processing: 102,
|
|
@@ -1652,88 +1652,88 @@ const ge = {
|
|
|
1652
1652
|
NotExtended: 510,
|
|
1653
1653
|
NetworkAuthenticationRequired: 511
|
|
1654
1654
|
};
|
|
1655
|
-
Object.entries(
|
|
1656
|
-
|
|
1655
|
+
Object.entries(Pe).forEach(([s, e]) => {
|
|
1656
|
+
Pe[e] = s;
|
|
1657
1657
|
});
|
|
1658
|
-
function
|
|
1659
|
-
const e = new k(
|
|
1660
|
-
return u.extend(
|
|
1661
|
-
return
|
|
1662
|
-
},
|
|
1658
|
+
function dt(s) {
|
|
1659
|
+
const e = new k(s), t = je(k.prototype.request, e);
|
|
1660
|
+
return u.extend(t, k.prototype, e, { allOwnKeys: !0 }), u.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
1661
|
+
return dt(v(s, n));
|
|
1662
|
+
}, t;
|
|
1663
1663
|
}
|
|
1664
|
-
const m =
|
|
1664
|
+
const m = dt(J);
|
|
1665
1665
|
m.Axios = k;
|
|
1666
1666
|
m.CanceledError = Q;
|
|
1667
|
-
m.CancelToken =
|
|
1668
|
-
m.isCancel =
|
|
1669
|
-
m.VERSION =
|
|
1667
|
+
m.CancelToken = Bs;
|
|
1668
|
+
m.isCancel = st;
|
|
1669
|
+
m.VERSION = lt;
|
|
1670
1670
|
m.toFormData = ue;
|
|
1671
1671
|
m.AxiosError = E;
|
|
1672
1672
|
m.Cancel = m.CanceledError;
|
|
1673
1673
|
m.all = function(e) {
|
|
1674
1674
|
return Promise.all(e);
|
|
1675
1675
|
};
|
|
1676
|
-
m.spread =
|
|
1677
|
-
m.isAxiosError =
|
|
1676
|
+
m.spread = Ms;
|
|
1677
|
+
m.isAxiosError = js;
|
|
1678
1678
|
m.mergeConfig = v;
|
|
1679
1679
|
m.AxiosHeaders = F;
|
|
1680
|
-
m.formToJSON = (
|
|
1681
|
-
m.getAdapter =
|
|
1682
|
-
m.HttpStatusCode =
|
|
1680
|
+
m.formToJSON = (s) => tt(u.isHTMLForm(s) ? new FormData(s) : s);
|
|
1681
|
+
m.getAdapter = ct.getAdapter;
|
|
1682
|
+
m.HttpStatusCode = Pe;
|
|
1683
1683
|
m.default = m;
|
|
1684
1684
|
const {
|
|
1685
|
-
Axios:
|
|
1686
|
-
AxiosError:
|
|
1687
|
-
CanceledError:
|
|
1688
|
-
isCancel:
|
|
1689
|
-
CancelToken:
|
|
1690
|
-
VERSION:
|
|
1691
|
-
all:
|
|
1692
|
-
Cancel:
|
|
1693
|
-
isAxiosError:
|
|
1694
|
-
spread:
|
|
1695
|
-
toFormData:
|
|
1696
|
-
AxiosHeaders:
|
|
1697
|
-
HttpStatusCode:
|
|
1698
|
-
formToJSON:
|
|
1699
|
-
getAdapter:
|
|
1700
|
-
mergeConfig:
|
|
1685
|
+
Axios: Er,
|
|
1686
|
+
AxiosError: Ar,
|
|
1687
|
+
CanceledError: Or,
|
|
1688
|
+
isCancel: yr,
|
|
1689
|
+
CancelToken: Sr,
|
|
1690
|
+
VERSION: Rr,
|
|
1691
|
+
all: Pr,
|
|
1692
|
+
Cancel: gr,
|
|
1693
|
+
isAxiosError: Tr,
|
|
1694
|
+
spread: Cr,
|
|
1695
|
+
toFormData: br,
|
|
1696
|
+
AxiosHeaders: _r,
|
|
1697
|
+
HttpStatusCode: wr,
|
|
1698
|
+
formToJSON: Ir,
|
|
1699
|
+
getAdapter: Lr,
|
|
1700
|
+
mergeConfig: Nr
|
|
1701
1701
|
} = m, S = "http://localhost:41101".replace(/\/+$/, "");
|
|
1702
|
-
class
|
|
1703
|
-
constructor(e,
|
|
1704
|
-
this.basePath =
|
|
1702
|
+
class z {
|
|
1703
|
+
constructor(e, t = S, r = m) {
|
|
1704
|
+
this.basePath = t, this.axios = r, e && (this.configuration = e, this.basePath = e.basePath || this.basePath);
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
class
|
|
1708
|
-
constructor(e,
|
|
1709
|
-
super(
|
|
1707
|
+
class ks extends Error {
|
|
1708
|
+
constructor(e, t) {
|
|
1709
|
+
super(t), this.field = e, this.name = "RequiredError";
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
const R = "https://example.com", y = function(
|
|
1713
|
-
if (
|
|
1714
|
-
throw new
|
|
1715
|
-
},
|
|
1716
|
-
const
|
|
1712
|
+
const R = "https://example.com", y = function(s, e, t) {
|
|
1713
|
+
if (t == null)
|
|
1714
|
+
throw new ks(e, `Required parameter ${e} was null or undefined when calling ${s}.`);
|
|
1715
|
+
}, P = function(s, ...e) {
|
|
1716
|
+
const t = new URLSearchParams(s.search);
|
|
1717
1717
|
for (const r of e)
|
|
1718
1718
|
for (const n in r)
|
|
1719
1719
|
if (Array.isArray(r[n])) {
|
|
1720
|
-
|
|
1720
|
+
t.delete(n);
|
|
1721
1721
|
for (const o of r[n])
|
|
1722
|
-
|
|
1722
|
+
t.append(n, o);
|
|
1723
1723
|
} else
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
}, D = function(
|
|
1727
|
-
const r = typeof
|
|
1728
|
-
return (r &&
|
|
1729
|
-
},
|
|
1730
|
-
return
|
|
1731
|
-
}, T = function(
|
|
1732
|
-
return (n = e, o =
|
|
1733
|
-
const a = { ...
|
|
1724
|
+
t.set(n, r[n]);
|
|
1725
|
+
s.search = t.toString();
|
|
1726
|
+
}, D = function(s, e, t) {
|
|
1727
|
+
const r = typeof s != "string";
|
|
1728
|
+
return (r && t && t.isJsonMime ? t.isJsonMime(e.headers["Content-Type"]) : r) ? JSON.stringify(s !== void 0 ? s : {}) : s || "";
|
|
1729
|
+
}, g = function(s) {
|
|
1730
|
+
return s.pathname + s.search + s.hash;
|
|
1731
|
+
}, T = function(s, e, t, r) {
|
|
1732
|
+
return (n = e, o = t) => {
|
|
1733
|
+
const a = { ...s.options, url: ((r == null ? void 0 : r.basePath) || o) + s.url };
|
|
1734
1734
|
return n.request(a);
|
|
1735
1735
|
};
|
|
1736
|
-
},
|
|
1736
|
+
}, vs = function(s) {
|
|
1737
1737
|
return {
|
|
1738
1738
|
/**
|
|
1739
1739
|
* 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 can not be automatically repeated. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones.
|
|
@@ -1743,16 +1743,16 @@ const R = "https://example.com", y = function(t, e, s) {
|
|
|
1743
1743
|
* @param {*} [options] Override http request option.
|
|
1744
1744
|
* @throws {RequiredError}
|
|
1745
1745
|
*/
|
|
1746
|
-
detect: async (e,
|
|
1746
|
+
detect: async (e, t, r = {}) => {
|
|
1747
1747
|
y("detect", "detectRequest", e);
|
|
1748
1748
|
const n = "/api/detect", o = new URL(n, R);
|
|
1749
1749
|
let a;
|
|
1750
|
-
|
|
1750
|
+
s && (a = s.baseOptions);
|
|
1751
1751
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1752
|
-
|
|
1752
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
1753
1753
|
let d = a && a.headers ? a.headers : {};
|
|
1754
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
1755
|
-
url:
|
|
1754
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
1755
|
+
url: g(o),
|
|
1756
1756
|
options: i
|
|
1757
1757
|
};
|
|
1758
1758
|
},
|
|
@@ -1764,16 +1764,16 @@ const R = "https://example.com", y = function(t, e, s) {
|
|
|
1764
1764
|
* @param {*} [options] Override http request option.
|
|
1765
1765
|
* @throws {RequiredError}
|
|
1766
1766
|
*/
|
|
1767
|
-
match: async (e,
|
|
1767
|
+
match: async (e, t, r = {}) => {
|
|
1768
1768
|
y("match", "matchRequest", e);
|
|
1769
1769
|
const n = "/api/match", o = new URL(n, R);
|
|
1770
1770
|
let a;
|
|
1771
|
-
|
|
1771
|
+
s && (a = s.baseOptions);
|
|
1772
1772
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1773
|
-
|
|
1773
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
1774
1774
|
let d = a && a.headers ? a.headers : {};
|
|
1775
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
1776
|
-
url:
|
|
1775
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
1776
|
+
url: g(o),
|
|
1777
1777
|
options: i
|
|
1778
1778
|
};
|
|
1779
1779
|
},
|
|
@@ -1785,22 +1785,22 @@ const R = "https://example.com", y = function(t, e, s) {
|
|
|
1785
1785
|
* @param {*} [options] Override http request option.
|
|
1786
1786
|
* @throws {RequiredError}
|
|
1787
1787
|
*/
|
|
1788
|
-
matchAndSearch: async (e,
|
|
1788
|
+
matchAndSearch: async (e, t, r = {}) => {
|
|
1789
1789
|
y("matchAndSearch", "matchAndSearchRequest", e);
|
|
1790
1790
|
const n = "/api/match_and_search", o = new URL(n, R);
|
|
1791
1791
|
let a;
|
|
1792
|
-
|
|
1792
|
+
s && (a = s.baseOptions);
|
|
1793
1793
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
1794
|
-
|
|
1794
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
1795
1795
|
let d = a && a.headers ? a.headers : {};
|
|
1796
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
1797
|
-
url:
|
|
1796
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
1797
|
+
url: g(o),
|
|
1798
1798
|
options: i
|
|
1799
1799
|
};
|
|
1800
1800
|
}
|
|
1801
1801
|
};
|
|
1802
|
-
}, Ee = function(
|
|
1803
|
-
const e =
|
|
1802
|
+
}, Ee = function(s) {
|
|
1803
|
+
const e = vs(s);
|
|
1804
1804
|
return {
|
|
1805
1805
|
/**
|
|
1806
1806
|
* 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 can not be automatically repeated. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones.
|
|
@@ -1810,9 +1810,9 @@ const R = "https://example.com", y = function(t, e, s) {
|
|
|
1810
1810
|
* @param {*} [options] Override http request option.
|
|
1811
1811
|
* @throws {RequiredError}
|
|
1812
1812
|
*/
|
|
1813
|
-
async detect(
|
|
1814
|
-
const o = await e.detect(
|
|
1815
|
-
return T(o, m, S,
|
|
1813
|
+
async detect(t, r, n) {
|
|
1814
|
+
const o = await e.detect(t, r, n);
|
|
1815
|
+
return T(o, m, S, s);
|
|
1816
1816
|
},
|
|
1817
1817
|
/**
|
|
1818
1818
|
* 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`
|
|
@@ -1822,9 +1822,9 @@ const R = "https://example.com", y = function(t, e, s) {
|
|
|
1822
1822
|
* @param {*} [options] Override http request option.
|
|
1823
1823
|
* @throws {RequiredError}
|
|
1824
1824
|
*/
|
|
1825
|
-
async match(
|
|
1826
|
-
const o = await e.match(
|
|
1827
|
-
return T(o, m, S,
|
|
1825
|
+
async match(t, r, n) {
|
|
1826
|
+
const o = await e.match(t, r, n);
|
|
1827
|
+
return T(o, m, S, s);
|
|
1828
1828
|
},
|
|
1829
1829
|
/**
|
|
1830
1830
|
* 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.
|
|
@@ -1834,13 +1834,13 @@ const R = "https://example.com", y = function(t, e, s) {
|
|
|
1834
1834
|
* @param {*} [options] Override http request option.
|
|
1835
1835
|
* @throws {RequiredError}
|
|
1836
1836
|
*/
|
|
1837
|
-
async matchAndSearch(
|
|
1838
|
-
const o = await e.matchAndSearch(
|
|
1839
|
-
return T(o, m, S,
|
|
1837
|
+
async matchAndSearch(t, r, n) {
|
|
1838
|
+
const o = await e.matchAndSearch(t, r, n);
|
|
1839
|
+
return T(o, m, S, s);
|
|
1840
1840
|
}
|
|
1841
1841
|
};
|
|
1842
1842
|
};
|
|
1843
|
-
let
|
|
1843
|
+
let zs = class extends z {
|
|
1844
1844
|
/**
|
|
1845
1845
|
* 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 can not be automatically repeated. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones.
|
|
1846
1846
|
* @summary detect and check quality
|
|
@@ -1850,8 +1850,8 @@ let vs = class extends W {
|
|
|
1850
1850
|
* @throws {RequiredError}
|
|
1851
1851
|
* @memberof MatchApi
|
|
1852
1852
|
*/
|
|
1853
|
-
detect(e,
|
|
1854
|
-
return Ee(this.configuration).detect(e,
|
|
1853
|
+
detect(e, t, r) {
|
|
1854
|
+
return Ee(this.configuration).detect(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
1855
1855
|
}
|
|
1856
1856
|
/**
|
|
1857
1857
|
* 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`
|
|
@@ -1862,8 +1862,8 @@ let vs = class extends W {
|
|
|
1862
1862
|
* @throws {RequiredError}
|
|
1863
1863
|
* @memberof MatchApi
|
|
1864
1864
|
*/
|
|
1865
|
-
match(e,
|
|
1866
|
-
return Ee(this.configuration).match(e,
|
|
1865
|
+
match(e, t, r) {
|
|
1866
|
+
return Ee(this.configuration).match(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
1867
1867
|
}
|
|
1868
1868
|
/**
|
|
1869
1869
|
* 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.
|
|
@@ -1874,11 +1874,11 @@ let vs = class extends W {
|
|
|
1874
1874
|
* @throws {RequiredError}
|
|
1875
1875
|
* @memberof MatchApi
|
|
1876
1876
|
*/
|
|
1877
|
-
matchAndSearch(e,
|
|
1878
|
-
return Ee(this.configuration).matchAndSearch(e,
|
|
1877
|
+
matchAndSearch(e, t, r) {
|
|
1878
|
+
return Ee(this.configuration).matchAndSearch(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
1879
1879
|
}
|
|
1880
1880
|
};
|
|
1881
|
-
const
|
|
1881
|
+
const Ur = {
|
|
1882
1882
|
AGE: "Age",
|
|
1883
1883
|
EMOTION: "Emotion",
|
|
1884
1884
|
EYE_LEFT: "EyeLeft",
|
|
@@ -1892,13 +1892,13 @@ const Nr = {
|
|
|
1892
1892
|
OCCLUSION: "Occlusion",
|
|
1893
1893
|
STRONG_MAKEUP: "StrongMakeup",
|
|
1894
1894
|
HEADPHONES: "Headphones"
|
|
1895
|
-
},
|
|
1895
|
+
}, Vr = {
|
|
1896
1896
|
ALIGN_3x4: 0,
|
|
1897
1897
|
ALIGN_4x5: 1,
|
|
1898
1898
|
ALIGN_2x3: 2,
|
|
1899
1899
|
ALIGN_1x1: 3,
|
|
1900
1900
|
ALIGN_7x9: 4
|
|
1901
|
-
},
|
|
1901
|
+
}, Dr = {
|
|
1902
1902
|
IMAGE_CHARACTERISTICS: 1,
|
|
1903
1903
|
HEAD_SIZE_AND_POSITIONS: 2,
|
|
1904
1904
|
FACE_QUALITY: 3,
|
|
@@ -1907,7 +1907,7 @@ const Nr = {
|
|
|
1907
1907
|
POSE_AND_EXPRESSION: 6,
|
|
1908
1908
|
HEAD_OCCLUSION: 7,
|
|
1909
1909
|
BACKGROUND: 8
|
|
1910
|
-
},
|
|
1910
|
+
}, Gr = {
|
|
1911
1911
|
IMAGE_CHARACTERISTICS: "ImageCharacteristics",
|
|
1912
1912
|
HEAD_SIZE_AND_POSITIONS: "HeadSizeAndPosition",
|
|
1913
1913
|
FACE_QUALITY: "FaceQuality",
|
|
@@ -1916,11 +1916,11 @@ const Nr = {
|
|
|
1916
1916
|
POSE_AND_EXPRESSION: "PoseAndExpression",
|
|
1917
1917
|
HEAD_OCCLUSION: "HeadOcclusion",
|
|
1918
1918
|
BACKGROUND: "Background"
|
|
1919
|
-
},
|
|
1919
|
+
}, Hr = {
|
|
1920
1920
|
QUALITY_STATUS_FALSE: 0,
|
|
1921
1921
|
QUALITY_STATUS_TRUE: 1,
|
|
1922
1922
|
QUALITY_STATUS_UNDETERMINED: 2
|
|
1923
|
-
},
|
|
1923
|
+
}, xr = {
|
|
1924
1924
|
IMAGE_WIDTH: "ImageWidth",
|
|
1925
1925
|
IMAGE_HEIGHT: "ImageHeight",
|
|
1926
1926
|
IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight",
|
|
@@ -1969,7 +1969,7 @@ const Nr = {
|
|
|
1969
1969
|
BACKGROUND_COLOR_MATCH: "BackgroundColorMatch",
|
|
1970
1970
|
ART_FACE: "ArtFace",
|
|
1971
1971
|
CONTACT_LENSES: "ContactLenses"
|
|
1972
|
-
},
|
|
1972
|
+
}, Br = {
|
|
1973
1973
|
OLD_MODE: "OldMode",
|
|
1974
1974
|
QUALITY_FULL: "QualityFull",
|
|
1975
1975
|
QUALITY_ICAO: "QualityICAO",
|
|
@@ -1979,7 +1979,7 @@ const Nr = {
|
|
|
1979
1979
|
CROP_ALL_FACES: "CropAllFaces",
|
|
1980
1980
|
THUMBNAIL: "Thumbnail",
|
|
1981
1981
|
EMPTY: ""
|
|
1982
|
-
},
|
|
1982
|
+
}, Mr = {
|
|
1983
1983
|
FACER_OK: 0,
|
|
1984
1984
|
FR_IMAGE_EMPTY: 1,
|
|
1985
1985
|
FR_FACE_NOT_DETECTED: 2,
|
|
@@ -2021,10 +2021,10 @@ const Nr = {
|
|
|
2021
2021
|
FACER_ABORTED_LIVENESS_TRANSACTION: 252,
|
|
2022
2022
|
FACER_GENERAL_ERROR: 253,
|
|
2023
2023
|
FACER_PASSIVE_LIVENESS_FAIL: 254
|
|
2024
|
-
},
|
|
2024
|
+
}, jr = {
|
|
2025
2025
|
IN: "in",
|
|
2026
2026
|
NOT_IN: "nin"
|
|
2027
|
-
},
|
|
2027
|
+
}, $s = {
|
|
2028
2028
|
DOCUMENT_PRINTED: 1,
|
|
2029
2029
|
DOCUMENT_RFID: 2,
|
|
2030
2030
|
LIVE: 3,
|
|
@@ -2032,33 +2032,33 @@ const Nr = {
|
|
|
2032
2032
|
EXTERNAL: 5,
|
|
2033
2033
|
GHOST: 6,
|
|
2034
2034
|
BARCODE: 7
|
|
2035
|
-
},
|
|
2035
|
+
}, kr = {
|
|
2036
2036
|
ACTIVE: 0,
|
|
2037
2037
|
PASSIVE: 1
|
|
2038
2038
|
};
|
|
2039
|
-
var
|
|
2040
|
-
for (var Z = 0; Z <
|
|
2041
|
-
|
|
2042
|
-
var oe = function(
|
|
2043
|
-
var e = new Uint8Array(
|
|
2044
|
-
for (
|
|
2045
|
-
n +=
|
|
2039
|
+
var $ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", qs = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
2040
|
+
for (var Z = 0; Z < $.length; Z++)
|
|
2041
|
+
qs[$.charCodeAt(Z)] = Z;
|
|
2042
|
+
var oe = function(s) {
|
|
2043
|
+
var e = new Uint8Array(s), t, r = e.length, n = "";
|
|
2044
|
+
for (t = 0; t < r; t += 3)
|
|
2045
|
+
n += $[e[t] >> 2], n += $[(e[t] & 3) << 4 | e[t + 1] >> 4], n += $[(e[t + 1] & 15) << 2 | e[t + 2] >> 6], n += $[e[t + 2] & 63];
|
|
2046
2046
|
return r % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : r % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
|
|
2047
2047
|
};
|
|
2048
2048
|
class Qs {
|
|
2049
|
-
constructor(e,
|
|
2050
|
-
this.superClass = new
|
|
2049
|
+
constructor(e, t, r) {
|
|
2050
|
+
this.superClass = new zs(e, t, r);
|
|
2051
2051
|
}
|
|
2052
|
-
async match(e,
|
|
2052
|
+
async match(e, t, r) {
|
|
2053
2053
|
for (const o of e.images)
|
|
2054
|
-
o.type || (o.type =
|
|
2055
|
-
return (await this.superClass.match(e,
|
|
2054
|
+
o.type || (o.type = $s.LIVE), typeof o.data != "string" && (o.data = oe(o.data));
|
|
2055
|
+
return (await this.superClass.match(e, t, r)).data;
|
|
2056
2056
|
}
|
|
2057
|
-
async detect(e,
|
|
2058
|
-
return e.image && typeof e.image != "string" && (e.image = oe(e.image)), (await this.superClass.detect(e,
|
|
2057
|
+
async detect(e, t, r) {
|
|
2058
|
+
return e.image && typeof e.image != "string" && (e.image = oe(e.image)), (await this.superClass.detect(e, t, r)).data;
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
|
-
const Ws = function(
|
|
2061
|
+
const Ws = function(s) {
|
|
2062
2062
|
return {
|
|
2063
2063
|
/**
|
|
2064
2064
|
*
|
|
@@ -2068,16 +2068,16 @@ const Ws = function(t) {
|
|
|
2068
2068
|
* @param {*} [options] Override http request option.
|
|
2069
2069
|
* @throws {RequiredError}
|
|
2070
2070
|
*/
|
|
2071
|
-
createGroup: async (e,
|
|
2071
|
+
createGroup: async (e, t, r = {}) => {
|
|
2072
2072
|
y("createGroup", "groupToCreate", e);
|
|
2073
2073
|
const n = "/api/groups", o = new URL(n, R);
|
|
2074
2074
|
let a;
|
|
2075
|
-
|
|
2075
|
+
s && (a = s.baseOptions);
|
|
2076
2076
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
2077
|
-
|
|
2077
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
2078
2078
|
let d = a && a.headers ? a.headers : {};
|
|
2079
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
2080
|
-
url:
|
|
2079
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
2080
|
+
url: g(o),
|
|
2081
2081
|
options: i
|
|
2082
2082
|
};
|
|
2083
2083
|
},
|
|
@@ -2089,16 +2089,16 @@ const Ws = function(t) {
|
|
|
2089
2089
|
* @param {*} [options] Override http request option.
|
|
2090
2090
|
* @throws {RequiredError}
|
|
2091
2091
|
*/
|
|
2092
|
-
deleteGroup: async (e,
|
|
2092
|
+
deleteGroup: async (e, t, r = {}) => {
|
|
2093
2093
|
y("deleteGroup", "groupId", e);
|
|
2094
2094
|
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2095
2095
|
let a;
|
|
2096
|
-
|
|
2096
|
+
s && (a = s.baseOptions);
|
|
2097
2097
|
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
2098
|
-
|
|
2098
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2099
2099
|
let d = a && a.headers ? a.headers : {};
|
|
2100
2100
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2101
|
-
url:
|
|
2101
|
+
url: g(o),
|
|
2102
2102
|
options: i
|
|
2103
2103
|
};
|
|
2104
2104
|
},
|
|
@@ -2111,15 +2111,15 @@ const Ws = function(t) {
|
|
|
2111
2111
|
* @param {*} [options] Override http request option.
|
|
2112
2112
|
* @throws {RequiredError}
|
|
2113
2113
|
*/
|
|
2114
|
-
getAllGroups: async (e,
|
|
2114
|
+
getAllGroups: async (e, t, r, n = {}) => {
|
|
2115
2115
|
const o = "/api/groups", a = new URL(o, R);
|
|
2116
2116
|
let i;
|
|
2117
|
-
|
|
2117
|
+
s && (i = s.baseOptions);
|
|
2118
2118
|
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2119
|
-
e !== void 0 && (d.page = e),
|
|
2119
|
+
e !== void 0 && (d.page = e), t !== void 0 && (d.size = t), r != null && (l["X-RequestID"] = String(r)), P(a, d);
|
|
2120
2120
|
let p = i && i.headers ? i.headers : {};
|
|
2121
2121
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2122
|
-
url:
|
|
2122
|
+
url: g(a),
|
|
2123
2123
|
options: c
|
|
2124
2124
|
};
|
|
2125
2125
|
},
|
|
@@ -2133,16 +2133,16 @@ const Ws = function(t) {
|
|
|
2133
2133
|
* @param {*} [options] Override http request option.
|
|
2134
2134
|
* @throws {RequiredError}
|
|
2135
2135
|
*/
|
|
2136
|
-
getAllPersonsByGroupId: async (e,
|
|
2136
|
+
getAllPersonsByGroupId: async (e, t, r, n, o = {}) => {
|
|
2137
2137
|
y("getAllPersonsByGroupId", "groupId", e);
|
|
2138
2138
|
const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2139
2139
|
let c;
|
|
2140
|
-
|
|
2140
|
+
s && (c = s.baseOptions);
|
|
2141
2141
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2142
|
-
|
|
2142
|
+
t !== void 0 && (p.page = t), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2143
2143
|
let O = c && c.headers ? c.headers : {};
|
|
2144
2144
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2145
|
-
url:
|
|
2145
|
+
url: g(i),
|
|
2146
2146
|
options: l
|
|
2147
2147
|
};
|
|
2148
2148
|
},
|
|
@@ -2154,16 +2154,16 @@ const Ws = function(t) {
|
|
|
2154
2154
|
* @param {*} [options] Override http request option.
|
|
2155
2155
|
* @throws {RequiredError}
|
|
2156
2156
|
*/
|
|
2157
|
-
getGroup: async (e,
|
|
2157
|
+
getGroup: async (e, t, r = {}) => {
|
|
2158
2158
|
y("getGroup", "groupId", e);
|
|
2159
2159
|
const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2160
2160
|
let a;
|
|
2161
|
-
|
|
2161
|
+
s && (a = s.baseOptions);
|
|
2162
2162
|
const i = { method: "GET", ...a, ...r }, c = {}, l = {};
|
|
2163
|
-
|
|
2163
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2164
2164
|
let d = a && a.headers ? a.headers : {};
|
|
2165
2165
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2166
|
-
url:
|
|
2166
|
+
url: g(o),
|
|
2167
2167
|
options: i
|
|
2168
2168
|
};
|
|
2169
2169
|
},
|
|
@@ -2176,16 +2176,16 @@ const Ws = function(t) {
|
|
|
2176
2176
|
* @param {*} [options] Override http request option.
|
|
2177
2177
|
* @throws {RequiredError}
|
|
2178
2178
|
*/
|
|
2179
|
-
updateGroup: async (e,
|
|
2180
|
-
y("updateGroup", "groupId", e), y("updateGroup", "groupToCreate",
|
|
2179
|
+
updateGroup: async (e, t, r, n = {}) => {
|
|
2180
|
+
y("updateGroup", "groupId", e), y("updateGroup", "groupToCreate", t);
|
|
2181
2181
|
const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2182
2182
|
let i;
|
|
2183
|
-
|
|
2183
|
+
s && (i = s.baseOptions);
|
|
2184
2184
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2185
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2185
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2186
2186
|
let p = i && i.headers ? i.headers : {};
|
|
2187
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2188
|
-
url:
|
|
2187
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2188
|
+
url: g(a),
|
|
2189
2189
|
options: c
|
|
2190
2190
|
};
|
|
2191
2191
|
},
|
|
@@ -2198,22 +2198,22 @@ const Ws = function(t) {
|
|
|
2198
2198
|
* @param {*} [options] Override http request option.
|
|
2199
2199
|
* @throws {RequiredError}
|
|
2200
2200
|
*/
|
|
2201
|
-
updatePersonsInGroup: async (e,
|
|
2202
|
-
y("updatePersonsInGroup", "groupId", e), y("updatePersonsInGroup", "updateGroup",
|
|
2201
|
+
updatePersonsInGroup: async (e, t, r, n = {}) => {
|
|
2202
|
+
y("updatePersonsInGroup", "groupId", e), y("updatePersonsInGroup", "updateGroup", t);
|
|
2203
2203
|
const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2204
2204
|
let i;
|
|
2205
|
-
|
|
2205
|
+
s && (i = s.baseOptions);
|
|
2206
2206
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2207
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2207
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2208
2208
|
let p = i && i.headers ? i.headers : {};
|
|
2209
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2210
|
-
url:
|
|
2209
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2210
|
+
url: g(a),
|
|
2211
2211
|
options: c
|
|
2212
2212
|
};
|
|
2213
2213
|
}
|
|
2214
2214
|
};
|
|
2215
|
-
}, M = function(
|
|
2216
|
-
const e = Ws(
|
|
2215
|
+
}, M = function(s) {
|
|
2216
|
+
const e = Ws(s);
|
|
2217
2217
|
return {
|
|
2218
2218
|
/**
|
|
2219
2219
|
*
|
|
@@ -2223,9 +2223,9 @@ const Ws = function(t) {
|
|
|
2223
2223
|
* @param {*} [options] Override http request option.
|
|
2224
2224
|
* @throws {RequiredError}
|
|
2225
2225
|
*/
|
|
2226
|
-
async createGroup(
|
|
2227
|
-
const o = await e.createGroup(
|
|
2228
|
-
return T(o, m, S,
|
|
2226
|
+
async createGroup(t, r, n) {
|
|
2227
|
+
const o = await e.createGroup(t, r, n);
|
|
2228
|
+
return T(o, m, S, s);
|
|
2229
2229
|
},
|
|
2230
2230
|
/**
|
|
2231
2231
|
*
|
|
@@ -2235,9 +2235,9 @@ const Ws = function(t) {
|
|
|
2235
2235
|
* @param {*} [options] Override http request option.
|
|
2236
2236
|
* @throws {RequiredError}
|
|
2237
2237
|
*/
|
|
2238
|
-
async deleteGroup(
|
|
2239
|
-
const o = await e.deleteGroup(
|
|
2240
|
-
return T(o, m, S,
|
|
2238
|
+
async deleteGroup(t, r, n) {
|
|
2239
|
+
const o = await e.deleteGroup(t, r, n);
|
|
2240
|
+
return T(o, m, S, s);
|
|
2241
2241
|
},
|
|
2242
2242
|
/**
|
|
2243
2243
|
*
|
|
@@ -2248,9 +2248,9 @@ const Ws = function(t) {
|
|
|
2248
2248
|
* @param {*} [options] Override http request option.
|
|
2249
2249
|
* @throws {RequiredError}
|
|
2250
2250
|
*/
|
|
2251
|
-
async getAllGroups(
|
|
2252
|
-
const a = await e.getAllGroups(
|
|
2253
|
-
return T(a, m, S,
|
|
2251
|
+
async getAllGroups(t, r, n, o) {
|
|
2252
|
+
const a = await e.getAllGroups(t, r, n, o);
|
|
2253
|
+
return T(a, m, S, s);
|
|
2254
2254
|
},
|
|
2255
2255
|
/**
|
|
2256
2256
|
*
|
|
@@ -2262,9 +2262,9 @@ const Ws = function(t) {
|
|
|
2262
2262
|
* @param {*} [options] Override http request option.
|
|
2263
2263
|
* @throws {RequiredError}
|
|
2264
2264
|
*/
|
|
2265
|
-
async getAllPersonsByGroupId(
|
|
2266
|
-
const i = await e.getAllPersonsByGroupId(
|
|
2267
|
-
return T(i, m, S,
|
|
2265
|
+
async getAllPersonsByGroupId(t, r, n, o, a) {
|
|
2266
|
+
const i = await e.getAllPersonsByGroupId(t, r, n, o, a);
|
|
2267
|
+
return T(i, m, S, s);
|
|
2268
2268
|
},
|
|
2269
2269
|
/**
|
|
2270
2270
|
*
|
|
@@ -2274,9 +2274,9 @@ const Ws = function(t) {
|
|
|
2274
2274
|
* @param {*} [options] Override http request option.
|
|
2275
2275
|
* @throws {RequiredError}
|
|
2276
2276
|
*/
|
|
2277
|
-
async getGroup(
|
|
2278
|
-
const o = await e.getGroup(
|
|
2279
|
-
return T(o, m, S,
|
|
2277
|
+
async getGroup(t, r, n) {
|
|
2278
|
+
const o = await e.getGroup(t, r, n);
|
|
2279
|
+
return T(o, m, S, s);
|
|
2280
2280
|
},
|
|
2281
2281
|
/**
|
|
2282
2282
|
*
|
|
@@ -2287,9 +2287,9 @@ const Ws = function(t) {
|
|
|
2287
2287
|
* @param {*} [options] Override http request option.
|
|
2288
2288
|
* @throws {RequiredError}
|
|
2289
2289
|
*/
|
|
2290
|
-
async updateGroup(
|
|
2291
|
-
const a = await e.updateGroup(
|
|
2292
|
-
return T(a, m, S,
|
|
2290
|
+
async updateGroup(t, r, n, o) {
|
|
2291
|
+
const a = await e.updateGroup(t, r, n, o);
|
|
2292
|
+
return T(a, m, S, s);
|
|
2293
2293
|
},
|
|
2294
2294
|
/**
|
|
2295
2295
|
*
|
|
@@ -2300,13 +2300,13 @@ const Ws = function(t) {
|
|
|
2300
2300
|
* @param {*} [options] Override http request option.
|
|
2301
2301
|
* @throws {RequiredError}
|
|
2302
2302
|
*/
|
|
2303
|
-
async updatePersonsInGroup(
|
|
2304
|
-
const a = await e.updatePersonsInGroup(
|
|
2305
|
-
return T(a, m, S,
|
|
2303
|
+
async updatePersonsInGroup(t, r, n, o) {
|
|
2304
|
+
const a = await e.updatePersonsInGroup(t, r, n, o);
|
|
2305
|
+
return T(a, m, S, s);
|
|
2306
2306
|
}
|
|
2307
2307
|
};
|
|
2308
2308
|
};
|
|
2309
|
-
let
|
|
2309
|
+
let Ks = class extends z {
|
|
2310
2310
|
/**
|
|
2311
2311
|
*
|
|
2312
2312
|
* @summary Create group
|
|
@@ -2316,8 +2316,8 @@ let zs = class extends W {
|
|
|
2316
2316
|
* @throws {RequiredError}
|
|
2317
2317
|
* @memberof GroupApi
|
|
2318
2318
|
*/
|
|
2319
|
-
createGroup(e,
|
|
2320
|
-
return M(this.configuration).createGroup(e,
|
|
2319
|
+
createGroup(e, t, r) {
|
|
2320
|
+
return M(this.configuration).createGroup(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2321
2321
|
}
|
|
2322
2322
|
/**
|
|
2323
2323
|
*
|
|
@@ -2328,8 +2328,8 @@ let zs = class extends W {
|
|
|
2328
2328
|
* @throws {RequiredError}
|
|
2329
2329
|
* @memberof GroupApi
|
|
2330
2330
|
*/
|
|
2331
|
-
deleteGroup(e,
|
|
2332
|
-
return M(this.configuration).deleteGroup(e,
|
|
2331
|
+
deleteGroup(e, t, r) {
|
|
2332
|
+
return M(this.configuration).deleteGroup(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2333
2333
|
}
|
|
2334
2334
|
/**
|
|
2335
2335
|
*
|
|
@@ -2341,8 +2341,8 @@ let zs = class extends W {
|
|
|
2341
2341
|
* @throws {RequiredError}
|
|
2342
2342
|
* @memberof GroupApi
|
|
2343
2343
|
*/
|
|
2344
|
-
getAllGroups(e,
|
|
2345
|
-
return M(this.configuration).getAllGroups(e,
|
|
2344
|
+
getAllGroups(e, t, r, n) {
|
|
2345
|
+
return M(this.configuration).getAllGroups(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2346
2346
|
}
|
|
2347
2347
|
/**
|
|
2348
2348
|
*
|
|
@@ -2355,8 +2355,8 @@ let zs = class extends W {
|
|
|
2355
2355
|
* @throws {RequiredError}
|
|
2356
2356
|
* @memberof GroupApi
|
|
2357
2357
|
*/
|
|
2358
|
-
getAllPersonsByGroupId(e,
|
|
2359
|
-
return M(this.configuration).getAllPersonsByGroupId(e,
|
|
2358
|
+
getAllPersonsByGroupId(e, t, r, n, o) {
|
|
2359
|
+
return M(this.configuration).getAllPersonsByGroupId(e, t, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2360
2360
|
}
|
|
2361
2361
|
/**
|
|
2362
2362
|
*
|
|
@@ -2367,8 +2367,8 @@ let zs = class extends W {
|
|
|
2367
2367
|
* @throws {RequiredError}
|
|
2368
2368
|
* @memberof GroupApi
|
|
2369
2369
|
*/
|
|
2370
|
-
getGroup(e,
|
|
2371
|
-
return M(this.configuration).getGroup(e,
|
|
2370
|
+
getGroup(e, t, r) {
|
|
2371
|
+
return M(this.configuration).getGroup(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2372
2372
|
}
|
|
2373
2373
|
/**
|
|
2374
2374
|
*
|
|
@@ -2380,8 +2380,8 @@ let zs = class extends W {
|
|
|
2380
2380
|
* @throws {RequiredError}
|
|
2381
2381
|
* @memberof GroupApi
|
|
2382
2382
|
*/
|
|
2383
|
-
updateGroup(e,
|
|
2384
|
-
return M(this.configuration).updateGroup(e,
|
|
2383
|
+
updateGroup(e, t, r, n) {
|
|
2384
|
+
return M(this.configuration).updateGroup(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2385
2385
|
}
|
|
2386
2386
|
/**
|
|
2387
2387
|
*
|
|
@@ -2393,41 +2393,41 @@ let zs = class extends W {
|
|
|
2393
2393
|
* @throws {RequiredError}
|
|
2394
2394
|
* @memberof GroupApi
|
|
2395
2395
|
*/
|
|
2396
|
-
updatePersonsInGroup(e,
|
|
2397
|
-
return M(this.configuration).updatePersonsInGroup(e,
|
|
2396
|
+
updatePersonsInGroup(e, t, r, n) {
|
|
2397
|
+
return M(this.configuration).updatePersonsInGroup(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2398
2398
|
}
|
|
2399
2399
|
};
|
|
2400
|
-
class
|
|
2401
|
-
constructor(e,
|
|
2402
|
-
this.superClass = new
|
|
2400
|
+
class Xs {
|
|
2401
|
+
constructor(e, t, r) {
|
|
2402
|
+
this.superClass = new Ks(e, t, r);
|
|
2403
2403
|
}
|
|
2404
|
-
async createGroup(e,
|
|
2404
|
+
async createGroup(e, t, r) {
|
|
2405
2405
|
const n = {
|
|
2406
2406
|
...e,
|
|
2407
2407
|
metadata: e != null && e.metadata ? e.metadata : {}
|
|
2408
2408
|
};
|
|
2409
|
-
return (await this.superClass.createGroup(n,
|
|
2409
|
+
return (await this.superClass.createGroup(n, t, r)).data;
|
|
2410
2410
|
}
|
|
2411
|
-
async deleteGroup(e,
|
|
2412
|
-
await this.superClass.deleteGroup(e,
|
|
2411
|
+
async deleteGroup(e, t, r) {
|
|
2412
|
+
await this.superClass.deleteGroup(e, t, r);
|
|
2413
2413
|
}
|
|
2414
|
-
async getAllGroups(e,
|
|
2415
|
-
return (await this.superClass.getAllGroups(e,
|
|
2414
|
+
async getAllGroups(e, t, r, n) {
|
|
2415
|
+
return (await this.superClass.getAllGroups(e, t, r, n)).data;
|
|
2416
2416
|
}
|
|
2417
|
-
async getAllPersonsByGroupId(e,
|
|
2418
|
-
return (await this.superClass.getAllPersonsByGroupId(r, e,
|
|
2417
|
+
async getAllPersonsByGroupId(e, t, r, n, o) {
|
|
2418
|
+
return (await this.superClass.getAllPersonsByGroupId(r, e, t, n, o)).data;
|
|
2419
2419
|
}
|
|
2420
|
-
async getGroup(e,
|
|
2421
|
-
return (await this.superClass.getGroup(e,
|
|
2420
|
+
async getGroup(e, t, r) {
|
|
2421
|
+
return (await this.superClass.getGroup(e, t, r)).data;
|
|
2422
2422
|
}
|
|
2423
|
-
async updateGroup(e,
|
|
2424
|
-
await this.superClass.updateGroup(e,
|
|
2423
|
+
async updateGroup(e, t, r, n) {
|
|
2424
|
+
await this.superClass.updateGroup(e, t, r, n);
|
|
2425
2425
|
}
|
|
2426
|
-
async updatePersonsInGroup(e,
|
|
2427
|
-
await this.superClass.updatePersonsInGroup(e,
|
|
2426
|
+
async updatePersonsInGroup(e, t, r, n) {
|
|
2427
|
+
await this.superClass.updatePersonsInGroup(e, t, r, n);
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
const
|
|
2430
|
+
const Js = function(s) {
|
|
2431
2431
|
return {
|
|
2432
2432
|
/**
|
|
2433
2433
|
*
|
|
@@ -2438,16 +2438,16 @@ const Xs = function(t) {
|
|
|
2438
2438
|
* @param {*} [options] Override http request option.
|
|
2439
2439
|
* @throws {RequiredError}
|
|
2440
2440
|
*/
|
|
2441
|
-
addImageToPerson: async (e,
|
|
2442
|
-
y("addImageToPerson", "personId", e), y("addImageToPerson", "addImageToPersonRequest",
|
|
2441
|
+
addImageToPerson: async (e, t, r, n = {}) => {
|
|
2442
|
+
y("addImageToPerson", "personId", e), y("addImageToPerson", "addImageToPersonRequest", t);
|
|
2443
2443
|
const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2444
2444
|
let i;
|
|
2445
|
-
|
|
2445
|
+
s && (i = s.baseOptions);
|
|
2446
2446
|
const c = { method: "POST", ...i, ...n }, l = {}, d = {};
|
|
2447
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2447
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2448
2448
|
let p = i && i.headers ? i.headers : {};
|
|
2449
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2450
|
-
url:
|
|
2449
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2450
|
+
url: g(a),
|
|
2451
2451
|
options: c
|
|
2452
2452
|
};
|
|
2453
2453
|
},
|
|
@@ -2459,16 +2459,16 @@ const Xs = function(t) {
|
|
|
2459
2459
|
* @param {*} [options] Override http request option.
|
|
2460
2460
|
* @throws {RequiredError}
|
|
2461
2461
|
*/
|
|
2462
|
-
createPerson: async (e,
|
|
2462
|
+
createPerson: async (e, t, r = {}) => {
|
|
2463
2463
|
y("createPerson", "personFields", e);
|
|
2464
2464
|
const n = "/api/persons", o = new URL(n, R);
|
|
2465
2465
|
let a;
|
|
2466
|
-
|
|
2466
|
+
s && (a = s.baseOptions);
|
|
2467
2467
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
2468
|
-
|
|
2468
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
2469
2469
|
let d = a && a.headers ? a.headers : {};
|
|
2470
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
2471
|
-
url:
|
|
2470
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
2471
|
+
url: g(o),
|
|
2472
2472
|
options: i
|
|
2473
2473
|
};
|
|
2474
2474
|
},
|
|
@@ -2481,16 +2481,16 @@ const Xs = function(t) {
|
|
|
2481
2481
|
* @param {*} [options] Override http request option.
|
|
2482
2482
|
* @throws {RequiredError}
|
|
2483
2483
|
*/
|
|
2484
|
-
deleteImageOfPerson: async (e,
|
|
2485
|
-
y("deleteImageOfPerson", "imageId", e), y("deleteImageOfPerson", "personId",
|
|
2486
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(
|
|
2484
|
+
deleteImageOfPerson: async (e, t, r, n = {}) => {
|
|
2485
|
+
y("deleteImageOfPerson", "imageId", e), y("deleteImageOfPerson", "personId", t);
|
|
2486
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, R);
|
|
2487
2487
|
let i;
|
|
2488
|
-
|
|
2488
|
+
s && (i = s.baseOptions);
|
|
2489
2489
|
const c = { method: "DELETE", ...i, ...n }, l = {}, d = {};
|
|
2490
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2490
|
+
r != null && (l["X-RequestID"] = String(r)), P(a, d);
|
|
2491
2491
|
let p = i && i.headers ? i.headers : {};
|
|
2492
2492
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2493
|
-
url:
|
|
2493
|
+
url: g(a),
|
|
2494
2494
|
options: c
|
|
2495
2495
|
};
|
|
2496
2496
|
},
|
|
@@ -2502,16 +2502,16 @@ const Xs = function(t) {
|
|
|
2502
2502
|
* @param {*} [options] Override http request option.
|
|
2503
2503
|
* @throws {RequiredError}
|
|
2504
2504
|
*/
|
|
2505
|
-
deletePerson: async (e,
|
|
2505
|
+
deletePerson: async (e, t, r = {}) => {
|
|
2506
2506
|
y("deletePerson", "personId", e);
|
|
2507
2507
|
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2508
2508
|
let a;
|
|
2509
|
-
|
|
2509
|
+
s && (a = s.baseOptions);
|
|
2510
2510
|
const i = { method: "DELETE", ...a, ...r }, c = {}, l = {};
|
|
2511
|
-
|
|
2511
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2512
2512
|
let d = a && a.headers ? a.headers : {};
|
|
2513
2513
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2514
|
-
url:
|
|
2514
|
+
url: g(o),
|
|
2515
2515
|
options: i
|
|
2516
2516
|
};
|
|
2517
2517
|
},
|
|
@@ -2525,16 +2525,16 @@ const Xs = function(t) {
|
|
|
2525
2525
|
* @param {*} [options] Override http request option.
|
|
2526
2526
|
* @throws {RequiredError}
|
|
2527
2527
|
*/
|
|
2528
|
-
getAllGroupsByPersonId: async (e,
|
|
2528
|
+
getAllGroupsByPersonId: async (e, t, r, n, o = {}) => {
|
|
2529
2529
|
y("getAllGroupsByPersonId", "personId", e);
|
|
2530
2530
|
const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2531
2531
|
let c;
|
|
2532
|
-
|
|
2532
|
+
s && (c = s.baseOptions);
|
|
2533
2533
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2534
|
-
|
|
2534
|
+
t !== void 0 && (p.page = t), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2535
2535
|
let O = c && c.headers ? c.headers : {};
|
|
2536
2536
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2537
|
-
url:
|
|
2537
|
+
url: g(i),
|
|
2538
2538
|
options: l
|
|
2539
2539
|
};
|
|
2540
2540
|
},
|
|
@@ -2548,16 +2548,16 @@ const Xs = function(t) {
|
|
|
2548
2548
|
* @param {*} [options] Override http request option.
|
|
2549
2549
|
* @throws {RequiredError}
|
|
2550
2550
|
*/
|
|
2551
|
-
getAllImagesByPersonId: async (e,
|
|
2551
|
+
getAllImagesByPersonId: async (e, t, r, n, o = {}) => {
|
|
2552
2552
|
y("getAllImagesByPersonId", "personId", e);
|
|
2553
2553
|
const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(e))), i = new URL(a, R);
|
|
2554
2554
|
let c;
|
|
2555
|
-
|
|
2555
|
+
s && (c = s.baseOptions);
|
|
2556
2556
|
const l = { method: "GET", ...c, ...o }, d = {}, p = {};
|
|
2557
|
-
|
|
2557
|
+
t !== void 0 && (p.page = t), r !== void 0 && (p.size = r), n != null && (d["X-RequestID"] = String(n)), P(i, p);
|
|
2558
2558
|
let O = c && c.headers ? c.headers : {};
|
|
2559
2559
|
return l.headers = { ...d, ...O, ...o.headers }, {
|
|
2560
|
-
url:
|
|
2560
|
+
url: g(i),
|
|
2561
2561
|
options: l
|
|
2562
2562
|
};
|
|
2563
2563
|
},
|
|
@@ -2570,16 +2570,16 @@ const Xs = function(t) {
|
|
|
2570
2570
|
* @param {*} [options] Override http request option.
|
|
2571
2571
|
* @throws {RequiredError}
|
|
2572
2572
|
*/
|
|
2573
|
-
getImageOfPerson: async (e,
|
|
2574
|
-
y("getImageOfPerson", "imageId", e), y("getImageOfPerson", "personId",
|
|
2575
|
-
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(
|
|
2573
|
+
getImageOfPerson: async (e, t, r, n = {}) => {
|
|
2574
|
+
y("getImageOfPerson", "imageId", e), y("getImageOfPerson", "personId", t);
|
|
2575
|
+
const o = "/api/persons/{personId}/images/{imageId}".replace("{imageId}", encodeURIComponent(String(e))).replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, R);
|
|
2576
2576
|
let i;
|
|
2577
|
-
|
|
2577
|
+
s && (i = s.baseOptions);
|
|
2578
2578
|
const c = { method: "GET", ...i, ...n }, l = {}, d = {};
|
|
2579
|
-
r != null && (l["X-RequestID"] = String(r)),
|
|
2579
|
+
r != null && (l["X-RequestID"] = String(r)), P(a, d);
|
|
2580
2580
|
let p = i && i.headers ? i.headers : {};
|
|
2581
2581
|
return c.headers = { ...l, ...p, ...n.headers }, {
|
|
2582
|
-
url:
|
|
2582
|
+
url: g(a),
|
|
2583
2583
|
options: c
|
|
2584
2584
|
};
|
|
2585
2585
|
},
|
|
@@ -2591,16 +2591,16 @@ const Xs = function(t) {
|
|
|
2591
2591
|
* @param {*} [options] Override http request option.
|
|
2592
2592
|
* @throws {RequiredError}
|
|
2593
2593
|
*/
|
|
2594
|
-
getPerson: async (e,
|
|
2594
|
+
getPerson: async (e, t, r = {}) => {
|
|
2595
2595
|
y("getPerson", "personId", e);
|
|
2596
2596
|
const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), o = new URL(n, R);
|
|
2597
2597
|
let a;
|
|
2598
|
-
|
|
2598
|
+
s && (a = s.baseOptions);
|
|
2599
2599
|
const i = { method: "GET", ...a, ...r }, c = {}, l = {};
|
|
2600
|
-
|
|
2600
|
+
t != null && (c["X-RequestID"] = String(t)), P(o, l);
|
|
2601
2601
|
let d = a && a.headers ? a.headers : {};
|
|
2602
2602
|
return i.headers = { ...c, ...d, ...r.headers }, {
|
|
2603
|
-
url:
|
|
2603
|
+
url: g(o),
|
|
2604
2604
|
options: i
|
|
2605
2605
|
};
|
|
2606
2606
|
},
|
|
@@ -2613,22 +2613,22 @@ const Xs = function(t) {
|
|
|
2613
2613
|
* @param {*} [options] Override http request option.
|
|
2614
2614
|
* @throws {RequiredError}
|
|
2615
2615
|
*/
|
|
2616
|
-
updatePerson: async (e,
|
|
2617
|
-
y("updatePerson", "personId", e), y("updatePerson", "personToUpdateFields",
|
|
2616
|
+
updatePerson: async (e, t, r, n = {}) => {
|
|
2617
|
+
y("updatePerson", "personId", e), y("updatePerson", "personToUpdateFields", t);
|
|
2618
2618
|
const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(e))), a = new URL(o, R);
|
|
2619
2619
|
let i;
|
|
2620
|
-
|
|
2620
|
+
s && (i = s.baseOptions);
|
|
2621
2621
|
const c = { method: "PUT", ...i, ...n }, l = {}, d = {};
|
|
2622
|
-
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json",
|
|
2622
|
+
r != null && (l["X-RequestID"] = String(r)), l["Content-Type"] = "application/json", P(a, d);
|
|
2623
2623
|
let p = i && i.headers ? i.headers : {};
|
|
2624
|
-
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(
|
|
2625
|
-
url:
|
|
2624
|
+
return c.headers = { ...l, ...p, ...n.headers }, c.data = D(t, c, s), {
|
|
2625
|
+
url: g(a),
|
|
2626
2626
|
options: c
|
|
2627
2627
|
};
|
|
2628
2628
|
}
|
|
2629
2629
|
};
|
|
2630
|
-
}, H = function(
|
|
2631
|
-
const e =
|
|
2630
|
+
}, H = function(s) {
|
|
2631
|
+
const e = Js(s);
|
|
2632
2632
|
return {
|
|
2633
2633
|
/**
|
|
2634
2634
|
*
|
|
@@ -2639,9 +2639,9 @@ const Xs = function(t) {
|
|
|
2639
2639
|
* @param {*} [options] Override http request option.
|
|
2640
2640
|
* @throws {RequiredError}
|
|
2641
2641
|
*/
|
|
2642
|
-
async addImageToPerson(
|
|
2643
|
-
const a = await e.addImageToPerson(
|
|
2644
|
-
return T(a, m, S,
|
|
2642
|
+
async addImageToPerson(t, r, n, o) {
|
|
2643
|
+
const a = await e.addImageToPerson(t, r, n, o);
|
|
2644
|
+
return T(a, m, S, s);
|
|
2645
2645
|
},
|
|
2646
2646
|
/**
|
|
2647
2647
|
*
|
|
@@ -2651,9 +2651,9 @@ const Xs = function(t) {
|
|
|
2651
2651
|
* @param {*} [options] Override http request option.
|
|
2652
2652
|
* @throws {RequiredError}
|
|
2653
2653
|
*/
|
|
2654
|
-
async createPerson(
|
|
2655
|
-
const o = await e.createPerson(
|
|
2656
|
-
return T(o, m, S,
|
|
2654
|
+
async createPerson(t, r, n) {
|
|
2655
|
+
const o = await e.createPerson(t, r, n);
|
|
2656
|
+
return T(o, m, S, s);
|
|
2657
2657
|
},
|
|
2658
2658
|
/**
|
|
2659
2659
|
*
|
|
@@ -2664,9 +2664,9 @@ const Xs = function(t) {
|
|
|
2664
2664
|
* @param {*} [options] Override http request option.
|
|
2665
2665
|
* @throws {RequiredError}
|
|
2666
2666
|
*/
|
|
2667
|
-
async deleteImageOfPerson(
|
|
2668
|
-
const a = await e.deleteImageOfPerson(
|
|
2669
|
-
return T(a, m, S,
|
|
2667
|
+
async deleteImageOfPerson(t, r, n, o) {
|
|
2668
|
+
const a = await e.deleteImageOfPerson(t, r, n, o);
|
|
2669
|
+
return T(a, m, S, s);
|
|
2670
2670
|
},
|
|
2671
2671
|
/**
|
|
2672
2672
|
*
|
|
@@ -2676,9 +2676,9 @@ const Xs = function(t) {
|
|
|
2676
2676
|
* @param {*} [options] Override http request option.
|
|
2677
2677
|
* @throws {RequiredError}
|
|
2678
2678
|
*/
|
|
2679
|
-
async deletePerson(
|
|
2680
|
-
const o = await e.deletePerson(
|
|
2681
|
-
return T(o, m, S,
|
|
2679
|
+
async deletePerson(t, r, n) {
|
|
2680
|
+
const o = await e.deletePerson(t, r, n);
|
|
2681
|
+
return T(o, m, S, s);
|
|
2682
2682
|
},
|
|
2683
2683
|
/**
|
|
2684
2684
|
*
|
|
@@ -2690,9 +2690,9 @@ const Xs = function(t) {
|
|
|
2690
2690
|
* @param {*} [options] Override http request option.
|
|
2691
2691
|
* @throws {RequiredError}
|
|
2692
2692
|
*/
|
|
2693
|
-
async getAllGroupsByPersonId(
|
|
2694
|
-
const i = await e.getAllGroupsByPersonId(
|
|
2695
|
-
return T(i, m, S,
|
|
2693
|
+
async getAllGroupsByPersonId(t, r, n, o, a) {
|
|
2694
|
+
const i = await e.getAllGroupsByPersonId(t, r, n, o, a);
|
|
2695
|
+
return T(i, m, S, s);
|
|
2696
2696
|
},
|
|
2697
2697
|
/**
|
|
2698
2698
|
*
|
|
@@ -2704,9 +2704,9 @@ const Xs = function(t) {
|
|
|
2704
2704
|
* @param {*} [options] Override http request option.
|
|
2705
2705
|
* @throws {RequiredError}
|
|
2706
2706
|
*/
|
|
2707
|
-
async getAllImagesByPersonId(
|
|
2708
|
-
const i = await e.getAllImagesByPersonId(
|
|
2709
|
-
return T(i, m, S,
|
|
2707
|
+
async getAllImagesByPersonId(t, r, n, o, a) {
|
|
2708
|
+
const i = await e.getAllImagesByPersonId(t, r, n, o, a);
|
|
2709
|
+
return T(i, m, S, s);
|
|
2710
2710
|
},
|
|
2711
2711
|
/**
|
|
2712
2712
|
*
|
|
@@ -2717,9 +2717,9 @@ const Xs = function(t) {
|
|
|
2717
2717
|
* @param {*} [options] Override http request option.
|
|
2718
2718
|
* @throws {RequiredError}
|
|
2719
2719
|
*/
|
|
2720
|
-
async getImageOfPerson(
|
|
2721
|
-
const a = await e.getImageOfPerson(
|
|
2722
|
-
return T(a, m, S,
|
|
2720
|
+
async getImageOfPerson(t, r, n, o) {
|
|
2721
|
+
const a = await e.getImageOfPerson(t, r, n, o);
|
|
2722
|
+
return T(a, m, S, s);
|
|
2723
2723
|
},
|
|
2724
2724
|
/**
|
|
2725
2725
|
*
|
|
@@ -2729,9 +2729,9 @@ const Xs = function(t) {
|
|
|
2729
2729
|
* @param {*} [options] Override http request option.
|
|
2730
2730
|
* @throws {RequiredError}
|
|
2731
2731
|
*/
|
|
2732
|
-
async getPerson(
|
|
2733
|
-
const o = await e.getPerson(
|
|
2734
|
-
return T(o, m, S,
|
|
2732
|
+
async getPerson(t, r, n) {
|
|
2733
|
+
const o = await e.getPerson(t, r, n);
|
|
2734
|
+
return T(o, m, S, s);
|
|
2735
2735
|
},
|
|
2736
2736
|
/**
|
|
2737
2737
|
*
|
|
@@ -2742,13 +2742,13 @@ const Xs = function(t) {
|
|
|
2742
2742
|
* @param {*} [options] Override http request option.
|
|
2743
2743
|
* @throws {RequiredError}
|
|
2744
2744
|
*/
|
|
2745
|
-
async updatePerson(
|
|
2746
|
-
const a = await e.updatePerson(
|
|
2747
|
-
return T(a, m, S,
|
|
2745
|
+
async updatePerson(t, r, n, o) {
|
|
2746
|
+
const a = await e.updatePerson(t, r, n, o);
|
|
2747
|
+
return T(a, m, S, s);
|
|
2748
2748
|
}
|
|
2749
2749
|
};
|
|
2750
2750
|
};
|
|
2751
|
-
let
|
|
2751
|
+
let Ys = class extends z {
|
|
2752
2752
|
/**
|
|
2753
2753
|
*
|
|
2754
2754
|
* @summary Add person image
|
|
@@ -2759,8 +2759,8 @@ let Js = class extends W {
|
|
|
2759
2759
|
* @throws {RequiredError}
|
|
2760
2760
|
* @memberof PersonApi
|
|
2761
2761
|
*/
|
|
2762
|
-
addImageToPerson(e,
|
|
2763
|
-
return H(this.configuration).addImageToPerson(e,
|
|
2762
|
+
addImageToPerson(e, t, r, n) {
|
|
2763
|
+
return H(this.configuration).addImageToPerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2764
2764
|
}
|
|
2765
2765
|
/**
|
|
2766
2766
|
*
|
|
@@ -2771,8 +2771,8 @@ let Js = class extends W {
|
|
|
2771
2771
|
* @throws {RequiredError}
|
|
2772
2772
|
* @memberof PersonApi
|
|
2773
2773
|
*/
|
|
2774
|
-
createPerson(e,
|
|
2775
|
-
return H(this.configuration).createPerson(e,
|
|
2774
|
+
createPerson(e, t, r) {
|
|
2775
|
+
return H(this.configuration).createPerson(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2776
2776
|
}
|
|
2777
2777
|
/**
|
|
2778
2778
|
*
|
|
@@ -2784,8 +2784,8 @@ let Js = class extends W {
|
|
|
2784
2784
|
* @throws {RequiredError}
|
|
2785
2785
|
* @memberof PersonApi
|
|
2786
2786
|
*/
|
|
2787
|
-
deleteImageOfPerson(e,
|
|
2788
|
-
return H(this.configuration).deleteImageOfPerson(e,
|
|
2787
|
+
deleteImageOfPerson(e, t, r, n) {
|
|
2788
|
+
return H(this.configuration).deleteImageOfPerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2789
2789
|
}
|
|
2790
2790
|
/**
|
|
2791
2791
|
*
|
|
@@ -2796,8 +2796,8 @@ let Js = class extends W {
|
|
|
2796
2796
|
* @throws {RequiredError}
|
|
2797
2797
|
* @memberof PersonApi
|
|
2798
2798
|
*/
|
|
2799
|
-
deletePerson(e,
|
|
2800
|
-
return H(this.configuration).deletePerson(e,
|
|
2799
|
+
deletePerson(e, t, r) {
|
|
2800
|
+
return H(this.configuration).deletePerson(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2801
2801
|
}
|
|
2802
2802
|
/**
|
|
2803
2803
|
*
|
|
@@ -2810,8 +2810,8 @@ let Js = class extends W {
|
|
|
2810
2810
|
* @throws {RequiredError}
|
|
2811
2811
|
* @memberof PersonApi
|
|
2812
2812
|
*/
|
|
2813
|
-
getAllGroupsByPersonId(e,
|
|
2814
|
-
return H(this.configuration).getAllGroupsByPersonId(e,
|
|
2813
|
+
getAllGroupsByPersonId(e, t, r, n, o) {
|
|
2814
|
+
return H(this.configuration).getAllGroupsByPersonId(e, t, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2815
2815
|
}
|
|
2816
2816
|
/**
|
|
2817
2817
|
*
|
|
@@ -2824,8 +2824,8 @@ let Js = class extends W {
|
|
|
2824
2824
|
* @throws {RequiredError}
|
|
2825
2825
|
* @memberof PersonApi
|
|
2826
2826
|
*/
|
|
2827
|
-
getAllImagesByPersonId(e,
|
|
2828
|
-
return H(this.configuration).getAllImagesByPersonId(e,
|
|
2827
|
+
getAllImagesByPersonId(e, t, r, n, o) {
|
|
2828
|
+
return H(this.configuration).getAllImagesByPersonId(e, t, r, n, o).then((a) => a(this.axios, this.basePath));
|
|
2829
2829
|
}
|
|
2830
2830
|
/**
|
|
2831
2831
|
*
|
|
@@ -2837,8 +2837,8 @@ let Js = class extends W {
|
|
|
2837
2837
|
* @throws {RequiredError}
|
|
2838
2838
|
* @memberof PersonApi
|
|
2839
2839
|
*/
|
|
2840
|
-
getImageOfPerson(e,
|
|
2841
|
-
return H(this.configuration).getImageOfPerson(e,
|
|
2840
|
+
getImageOfPerson(e, t, r, n) {
|
|
2841
|
+
return H(this.configuration).getImageOfPerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2842
2842
|
}
|
|
2843
2843
|
/**
|
|
2844
2844
|
*
|
|
@@ -2849,8 +2849,8 @@ let Js = class extends W {
|
|
|
2849
2849
|
* @throws {RequiredError}
|
|
2850
2850
|
* @memberof PersonApi
|
|
2851
2851
|
*/
|
|
2852
|
-
getPerson(e,
|
|
2853
|
-
return H(this.configuration).getPerson(e,
|
|
2852
|
+
getPerson(e, t, r) {
|
|
2853
|
+
return H(this.configuration).getPerson(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2854
2854
|
}
|
|
2855
2855
|
/**
|
|
2856
2856
|
*
|
|
@@ -2862,48 +2862,48 @@ let Js = class extends W {
|
|
|
2862
2862
|
* @throws {RequiredError}
|
|
2863
2863
|
* @memberof PersonApi
|
|
2864
2864
|
*/
|
|
2865
|
-
updatePerson(e,
|
|
2866
|
-
return H(this.configuration).updatePerson(e,
|
|
2865
|
+
updatePerson(e, t, r, n) {
|
|
2866
|
+
return H(this.configuration).updatePerson(e, t, r, n).then((o) => o(this.axios, this.basePath));
|
|
2867
2867
|
}
|
|
2868
2868
|
};
|
|
2869
|
-
class
|
|
2870
|
-
constructor(e,
|
|
2871
|
-
this.superClass = new
|
|
2869
|
+
class Zs {
|
|
2870
|
+
constructor(e, t, r) {
|
|
2871
|
+
this.superClass = new Ys(e, t, r);
|
|
2872
2872
|
}
|
|
2873
|
-
async createPerson(e,
|
|
2873
|
+
async createPerson(e, t, r) {
|
|
2874
2874
|
const n = {
|
|
2875
2875
|
...e,
|
|
2876
2876
|
metadata: e != null && e.metadata ? e.metadata : {}
|
|
2877
2877
|
};
|
|
2878
|
-
return (await this.superClass.createPerson(n,
|
|
2878
|
+
return (await this.superClass.createPerson(n, t, r)).data;
|
|
2879
2879
|
}
|
|
2880
|
-
async addImageToPerson(e,
|
|
2880
|
+
async addImageToPerson(e, t, r, n) {
|
|
2881
2881
|
var a;
|
|
2882
|
-
return (a =
|
|
2882
|
+
return (a = t == null ? void 0 : t.image) != null && a.content && typeof t.image.content != "string" && (t.image.content = oe(t.image.content)), (await this.superClass.addImageToPerson(e, t, r, n)).data;
|
|
2883
2883
|
}
|
|
2884
|
-
async deleteImageOfPerson(e,
|
|
2885
|
-
await this.superClass.deleteImageOfPerson(e,
|
|
2884
|
+
async deleteImageOfPerson(e, t, r, n) {
|
|
2885
|
+
await this.superClass.deleteImageOfPerson(e, t, r, n);
|
|
2886
2886
|
}
|
|
2887
|
-
async deletePerson(e,
|
|
2888
|
-
await this.superClass.deletePerson(e,
|
|
2887
|
+
async deletePerson(e, t, r) {
|
|
2888
|
+
await this.superClass.deletePerson(e, t, r);
|
|
2889
2889
|
}
|
|
2890
|
-
async getAllGroupsByPersonId(e,
|
|
2891
|
-
return (await this.superClass.getAllGroupsByPersonId(r, e,
|
|
2890
|
+
async getAllGroupsByPersonId(e, t, r, n, o) {
|
|
2891
|
+
return (await this.superClass.getAllGroupsByPersonId(r, e, t, n, o)).data;
|
|
2892
2892
|
}
|
|
2893
|
-
async getAllImagesByPersonId(e,
|
|
2894
|
-
return (await this.superClass.getAllImagesByPersonId(r, e,
|
|
2893
|
+
async getAllImagesByPersonId(e, t, r, n, o) {
|
|
2894
|
+
return (await this.superClass.getAllImagesByPersonId(r, e, t, n, o)).data;
|
|
2895
2895
|
}
|
|
2896
|
-
async getImageOfPerson(e,
|
|
2897
|
-
return (await this.superClass.getImageOfPerson(e,
|
|
2896
|
+
async getImageOfPerson(e, t, r, n) {
|
|
2897
|
+
return (await this.superClass.getImageOfPerson(e, t, r, n)).data;
|
|
2898
2898
|
}
|
|
2899
|
-
async getPerson(e,
|
|
2900
|
-
return (await this.superClass.getPerson(e,
|
|
2899
|
+
async getPerson(e, t, r) {
|
|
2900
|
+
return (await this.superClass.getPerson(e, t, r)).data;
|
|
2901
2901
|
}
|
|
2902
|
-
async updatePerson(e,
|
|
2903
|
-
await this.superClass.updatePerson(e,
|
|
2902
|
+
async updatePerson(e, t, r, n) {
|
|
2903
|
+
await this.superClass.updatePerson(e, t, r, n);
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
2906
|
-
const
|
|
2906
|
+
const er = function(s) {
|
|
2907
2907
|
return {
|
|
2908
2908
|
/**
|
|
2909
2909
|
*
|
|
@@ -2913,22 +2913,22 @@ const Zs = function(t) {
|
|
|
2913
2913
|
* @param {*} [options] Override http request option.
|
|
2914
2914
|
* @throws {RequiredError}
|
|
2915
2915
|
*/
|
|
2916
|
-
search: async (e,
|
|
2916
|
+
search: async (e, t, r = {}) => {
|
|
2917
2917
|
y("search", "searchRequest", e);
|
|
2918
2918
|
const n = "/api/search", o = new URL(n, R);
|
|
2919
2919
|
let a;
|
|
2920
|
-
|
|
2920
|
+
s && (a = s.baseOptions);
|
|
2921
2921
|
const i = { method: "POST", ...a, ...r }, c = {}, l = {};
|
|
2922
|
-
|
|
2922
|
+
t != null && (c["X-RequestID"] = String(t)), c["Content-Type"] = "application/json", P(o, l);
|
|
2923
2923
|
let d = a && a.headers ? a.headers : {};
|
|
2924
|
-
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i,
|
|
2925
|
-
url:
|
|
2924
|
+
return i.headers = { ...c, ...d, ...r.headers }, i.data = D(e, i, s), {
|
|
2925
|
+
url: g(o),
|
|
2926
2926
|
options: i
|
|
2927
2927
|
};
|
|
2928
2928
|
}
|
|
2929
2929
|
};
|
|
2930
|
-
},
|
|
2931
|
-
const e =
|
|
2930
|
+
}, tr = function(s) {
|
|
2931
|
+
const e = er(s);
|
|
2932
2932
|
return {
|
|
2933
2933
|
/**
|
|
2934
2934
|
*
|
|
@@ -2938,13 +2938,13 @@ const Zs = function(t) {
|
|
|
2938
2938
|
* @param {*} [options] Override http request option.
|
|
2939
2939
|
* @throws {RequiredError}
|
|
2940
2940
|
*/
|
|
2941
|
-
async search(
|
|
2942
|
-
const o = await e.search(
|
|
2943
|
-
return T(o, m, S,
|
|
2941
|
+
async search(t, r, n) {
|
|
2942
|
+
const o = await e.search(t, r, n);
|
|
2943
|
+
return T(o, m, S, s);
|
|
2944
2944
|
}
|
|
2945
2945
|
};
|
|
2946
2946
|
};
|
|
2947
|
-
let
|
|
2947
|
+
let sr = class extends z {
|
|
2948
2948
|
/**
|
|
2949
2949
|
*
|
|
2950
2950
|
* @summary Find person by image in groups
|
|
@@ -2954,20 +2954,20 @@ let tr = class extends W {
|
|
|
2954
2954
|
* @throws {RequiredError}
|
|
2955
2955
|
* @memberof SearchApi
|
|
2956
2956
|
*/
|
|
2957
|
-
search(e,
|
|
2958
|
-
return
|
|
2957
|
+
search(e, t, r) {
|
|
2958
|
+
return tr(this.configuration).search(e, t, r).then((n) => n(this.axios, this.basePath));
|
|
2959
2959
|
}
|
|
2960
2960
|
};
|
|
2961
|
-
class
|
|
2962
|
-
constructor(e,
|
|
2963
|
-
this.superClass = new
|
|
2961
|
+
class rr {
|
|
2962
|
+
constructor(e, t, r) {
|
|
2963
|
+
this.superClass = new sr(e, t, r);
|
|
2964
2964
|
}
|
|
2965
|
-
async search(e,
|
|
2965
|
+
async search(e, t, r) {
|
|
2966
2966
|
var o;
|
|
2967
|
-
return (o = e == null ? void 0 : e.image) != null && o.content && typeof e.image.content != "string" && (e.image.content = oe(e.image.content)), (await this.superClass.search(e,
|
|
2967
|
+
return (o = e == null ? void 0 : e.image) != null && o.content && typeof e.image.content != "string" && (e.image.content = oe(e.image.content)), (await this.superClass.search(e, t, r)).data;
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
|
-
const
|
|
2970
|
+
const nr = function(s) {
|
|
2971
2971
|
return {
|
|
2972
2972
|
/**
|
|
2973
2973
|
*
|
|
@@ -2976,21 +2976,21 @@ const rr = function(t) {
|
|
|
2976
2976
|
* @param {*} [options] Override http request option.
|
|
2977
2977
|
* @throws {RequiredError}
|
|
2978
2978
|
*/
|
|
2979
|
-
readiness: async (e,
|
|
2979
|
+
readiness: async (e, t = {}) => {
|
|
2980
2980
|
const r = "/api/readiness", n = new URL(r, R);
|
|
2981
2981
|
let o;
|
|
2982
|
-
|
|
2983
|
-
const a = { method: "GET", ...o, ...
|
|
2984
|
-
e != null && (i["X-RequestID"] = String(e)),
|
|
2982
|
+
s && (o = s.baseOptions);
|
|
2983
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
2984
|
+
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
2985
2985
|
let l = o && o.headers ? o.headers : {};
|
|
2986
|
-
return a.headers = { ...i, ...l, ...
|
|
2987
|
-
url:
|
|
2986
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
2987
|
+
url: g(n),
|
|
2988
2988
|
options: a
|
|
2989
2989
|
};
|
|
2990
2990
|
}
|
|
2991
2991
|
};
|
|
2992
|
-
},
|
|
2993
|
-
const e =
|
|
2992
|
+
}, or = function(s) {
|
|
2993
|
+
const e = nr(s);
|
|
2994
2994
|
return {
|
|
2995
2995
|
/**
|
|
2996
2996
|
*
|
|
@@ -2999,13 +2999,13 @@ const rr = function(t) {
|
|
|
2999
2999
|
* @param {*} [options] Override http request option.
|
|
3000
3000
|
* @throws {RequiredError}
|
|
3001
3001
|
*/
|
|
3002
|
-
async readiness(
|
|
3003
|
-
const n = await e.readiness(
|
|
3004
|
-
return T(n, m, S,
|
|
3002
|
+
async readiness(t, r) {
|
|
3003
|
+
const n = await e.readiness(t, r);
|
|
3004
|
+
return T(n, m, S, s);
|
|
3005
3005
|
}
|
|
3006
3006
|
};
|
|
3007
3007
|
};
|
|
3008
|
-
let
|
|
3008
|
+
let ar = class extends z {
|
|
3009
3009
|
/**
|
|
3010
3010
|
*
|
|
3011
3011
|
* @summary Checking the license status
|
|
@@ -3014,19 +3014,19 @@ let or = class extends W {
|
|
|
3014
3014
|
* @throws {RequiredError}
|
|
3015
3015
|
* @memberof DiagnosticsApi
|
|
3016
3016
|
*/
|
|
3017
|
-
readiness(e,
|
|
3018
|
-
return
|
|
3017
|
+
readiness(e, t) {
|
|
3018
|
+
return or(this.configuration).readiness(e, t).then((r) => r(this.axios, this.basePath));
|
|
3019
3019
|
}
|
|
3020
3020
|
};
|
|
3021
|
-
class
|
|
3022
|
-
constructor(e,
|
|
3023
|
-
this.superClass = new
|
|
3021
|
+
class ir {
|
|
3022
|
+
constructor(e, t, r) {
|
|
3023
|
+
this.superClass = new ar(e, t, r);
|
|
3024
3024
|
}
|
|
3025
|
-
async readiness(e,
|
|
3026
|
-
return (await this.superClass.readiness(e,
|
|
3025
|
+
async readiness(e, t) {
|
|
3026
|
+
return (await this.superClass.readiness(e, t)).data;
|
|
3027
3027
|
}
|
|
3028
3028
|
}
|
|
3029
|
-
const
|
|
3029
|
+
const cr = function(s) {
|
|
3030
3030
|
return {
|
|
3031
3031
|
/**
|
|
3032
3032
|
* 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}`.
|
|
@@ -3035,22 +3035,22 @@ const ir = function(t) {
|
|
|
3035
3035
|
* @param {*} [options] Override http request option.
|
|
3036
3036
|
* @throws {RequiredError}
|
|
3037
3037
|
*/
|
|
3038
|
-
getLivenessTransactionInfo: async (e,
|
|
3038
|
+
getLivenessTransactionInfo: async (e, t = {}) => {
|
|
3039
3039
|
y("getLivenessTransactionInfo", "transactionId", e);
|
|
3040
3040
|
const r = "/api/v2/liveness", n = new URL(r, R);
|
|
3041
3041
|
let o;
|
|
3042
|
-
|
|
3043
|
-
const a = { method: "GET", ...o, ...
|
|
3044
|
-
e !== void 0 && (c.transactionId = e),
|
|
3042
|
+
s && (o = s.baseOptions);
|
|
3043
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
3044
|
+
e !== void 0 && (c.transactionId = e), P(n, c);
|
|
3045
3045
|
let l = o && o.headers ? o.headers : {};
|
|
3046
|
-
return a.headers = { ...i, ...l, ...
|
|
3047
|
-
url:
|
|
3046
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
3047
|
+
url: g(n),
|
|
3048
3048
|
options: a
|
|
3049
3049
|
};
|
|
3050
3050
|
}
|
|
3051
3051
|
};
|
|
3052
|
-
},
|
|
3053
|
-
const e =
|
|
3052
|
+
}, lr = function(s) {
|
|
3053
|
+
const e = cr(s);
|
|
3054
3054
|
return {
|
|
3055
3055
|
/**
|
|
3056
3056
|
* 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}`.
|
|
@@ -3059,13 +3059,13 @@ const ir = function(t) {
|
|
|
3059
3059
|
* @param {*} [options] Override http request option.
|
|
3060
3060
|
* @throws {RequiredError}
|
|
3061
3061
|
*/
|
|
3062
|
-
async getLivenessTransactionInfo(
|
|
3063
|
-
const n = await e.getLivenessTransactionInfo(
|
|
3064
|
-
return T(n, m, S,
|
|
3062
|
+
async getLivenessTransactionInfo(t, r) {
|
|
3063
|
+
const n = await e.getLivenessTransactionInfo(t, r);
|
|
3064
|
+
return T(n, m, S, s);
|
|
3065
3065
|
}
|
|
3066
3066
|
};
|
|
3067
3067
|
};
|
|
3068
|
-
let
|
|
3068
|
+
let ur = class extends z {
|
|
3069
3069
|
/**
|
|
3070
3070
|
* 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}`.
|
|
3071
3071
|
* @summary liveness check
|
|
@@ -3074,24 +3074,127 @@ let lr = class extends W {
|
|
|
3074
3074
|
* @throws {RequiredError}
|
|
3075
3075
|
* @memberof Liveness20Api
|
|
3076
3076
|
*/
|
|
3077
|
-
getLivenessTransactionInfo(e,
|
|
3078
|
-
return
|
|
3077
|
+
getLivenessTransactionInfo(e, t) {
|
|
3078
|
+
return lr(this.configuration).getLivenessTransactionInfo(e, t).then((r) => r(this.axios, this.basePath));
|
|
3079
3079
|
}
|
|
3080
3080
|
};
|
|
3081
|
-
class
|
|
3082
|
-
constructor(e,
|
|
3083
|
-
this.superClass = new
|
|
3081
|
+
class dr {
|
|
3082
|
+
constructor(e, t, r) {
|
|
3083
|
+
this.superClass = new ur(e, t, r);
|
|
3084
3084
|
}
|
|
3085
|
-
async getLivenessTransactionInfo(e,
|
|
3086
|
-
return (await this.superClass.getLivenessTransactionInfo(e,
|
|
3085
|
+
async getLivenessTransactionInfo(e, t) {
|
|
3086
|
+
return (await this.superClass.getLivenessTransactionInfo(e, t)).data;
|
|
3087
3087
|
}
|
|
3088
3088
|
}
|
|
3089
|
-
class
|
|
3090
|
-
constructor(e,
|
|
3091
|
-
this.basePath =
|
|
3089
|
+
class Wr {
|
|
3090
|
+
constructor(e, t = S, r = m) {
|
|
3091
|
+
this.basePath = t, this.axios = r, this.matchApi = new Qs(e, t, r), this.groupApi = new Xs(e, t, r), this.personApi = new Zs(e, t, r), this.searchApi = new rr(e, t, r), this.diagnosticsApi = new ir(e, t, r), this.livenessApi = new dr(e, t, r);
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
const pr = function(s) {
|
|
3095
|
+
return {
|
|
3096
|
+
/**
|
|
3097
|
+
*
|
|
3098
|
+
* @summary Server healthcheck
|
|
3099
|
+
* @param {string} [xRequestID] Request header label.
|
|
3100
|
+
* @param {*} [options] Override http request option.
|
|
3101
|
+
* @throws {RequiredError}
|
|
3102
|
+
*/
|
|
3103
|
+
healthz: async (e, t = {}) => {
|
|
3104
|
+
const r = "/api/healthz", n = new URL(r, R);
|
|
3105
|
+
let o;
|
|
3106
|
+
s && (o = s.baseOptions);
|
|
3107
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
3108
|
+
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3109
|
+
let l = o && o.headers ? o.headers : {};
|
|
3110
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
3111
|
+
url: g(n),
|
|
3112
|
+
options: a
|
|
3113
|
+
};
|
|
3114
|
+
},
|
|
3115
|
+
/**
|
|
3116
|
+
*
|
|
3117
|
+
* @summary License healthcheck
|
|
3118
|
+
* @param {string} [xRequestID] Request header label.
|
|
3119
|
+
* @param {*} [options] Override http request option.
|
|
3120
|
+
* @throws {RequiredError}
|
|
3121
|
+
*/
|
|
3122
|
+
readyz: async (e, t = {}) => {
|
|
3123
|
+
const r = "/api/readyz", n = new URL(r, R);
|
|
3124
|
+
let o;
|
|
3125
|
+
s && (o = s.baseOptions);
|
|
3126
|
+
const a = { method: "GET", ...o, ...t }, i = {}, c = {};
|
|
3127
|
+
e != null && (i["X-RequestID"] = String(e)), P(n, c);
|
|
3128
|
+
let l = o && o.headers ? o.headers : {};
|
|
3129
|
+
return a.headers = { ...i, ...l, ...t.headers }, {
|
|
3130
|
+
url: g(n),
|
|
3131
|
+
options: a
|
|
3132
|
+
};
|
|
3133
|
+
}
|
|
3134
|
+
};
|
|
3135
|
+
}, Me = function(s) {
|
|
3136
|
+
const e = pr(s);
|
|
3137
|
+
return {
|
|
3138
|
+
/**
|
|
3139
|
+
*
|
|
3140
|
+
* @summary Server healthcheck
|
|
3141
|
+
* @param {string} [xRequestID] Request header label.
|
|
3142
|
+
* @param {*} [options] Override http request option.
|
|
3143
|
+
* @throws {RequiredError}
|
|
3144
|
+
*/
|
|
3145
|
+
async healthz(t, r) {
|
|
3146
|
+
const n = await e.healthz(t, r);
|
|
3147
|
+
return T(n, m, S, s);
|
|
3148
|
+
},
|
|
3149
|
+
/**
|
|
3150
|
+
*
|
|
3151
|
+
* @summary License healthcheck
|
|
3152
|
+
* @param {string} [xRequestID] Request header label.
|
|
3153
|
+
* @param {*} [options] Override http request option.
|
|
3154
|
+
* @throws {RequiredError}
|
|
3155
|
+
*/
|
|
3156
|
+
async readyz(t, r) {
|
|
3157
|
+
const n = await e.readyz(t, r);
|
|
3158
|
+
return T(n, m, S, s);
|
|
3159
|
+
}
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
let hr = class extends z {
|
|
3163
|
+
/**
|
|
3164
|
+
*
|
|
3165
|
+
* @summary Server healthcheck
|
|
3166
|
+
* @param {string} [xRequestID] Request header label.
|
|
3167
|
+
* @param {*} [options] Override http request option.
|
|
3168
|
+
* @throws {RequiredError}
|
|
3169
|
+
* @memberof HealthcheckApi
|
|
3170
|
+
*/
|
|
3171
|
+
healthz(e, t) {
|
|
3172
|
+
return Me(this.configuration).healthz(e, t).then((r) => r(this.axios, this.basePath));
|
|
3173
|
+
}
|
|
3174
|
+
/**
|
|
3175
|
+
*
|
|
3176
|
+
* @summary License healthcheck
|
|
3177
|
+
* @param {string} [xRequestID] Request header label.
|
|
3178
|
+
* @param {*} [options] Override http request option.
|
|
3179
|
+
* @throws {RequiredError}
|
|
3180
|
+
* @memberof HealthcheckApi
|
|
3181
|
+
*/
|
|
3182
|
+
readyz(e, t) {
|
|
3183
|
+
return Me(this.configuration).readyz(e, t).then((r) => r(this.axios, this.basePath));
|
|
3184
|
+
}
|
|
3185
|
+
};
|
|
3186
|
+
class Xr {
|
|
3187
|
+
constructor(e, t, r) {
|
|
3188
|
+
this.superClass = new hr(e, t, r);
|
|
3189
|
+
}
|
|
3190
|
+
async healthz(e, t) {
|
|
3191
|
+
return (await this.superClass.healthz(e, t)).data;
|
|
3192
|
+
}
|
|
3193
|
+
async readyz(e, t) {
|
|
3194
|
+
return (await this.superClass.readyz(e, t)).data;
|
|
3092
3195
|
}
|
|
3093
3196
|
}
|
|
3094
|
-
class
|
|
3197
|
+
class Jr {
|
|
3095
3198
|
constructor(e = {}) {
|
|
3096
3199
|
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;
|
|
3097
3200
|
}
|
|
@@ -3106,22 +3209,29 @@ class Qr {
|
|
|
3106
3209
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3107
3210
|
*/
|
|
3108
3211
|
isJsonMime(e) {
|
|
3109
|
-
const
|
|
3110
|
-
return e !== null && (
|
|
3212
|
+
const t = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3213
|
+
return e !== null && (t.test(e) || e.toLowerCase() === "application/json-patch+json");
|
|
3111
3214
|
}
|
|
3112
3215
|
}
|
|
3113
3216
|
export {
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3217
|
+
Jr as Configuration,
|
|
3218
|
+
ir as DiagnosticsApi,
|
|
3219
|
+
Ur as FaceAttribute,
|
|
3220
|
+
Vr as FaceImageQualityAlignType,
|
|
3221
|
+
Dr as FaceImageQualityGroups,
|
|
3222
|
+
Gr as FaceImageQualityGroupsStrings,
|
|
3223
|
+
Hr as FaceImageQualityStatus,
|
|
3224
|
+
xr as FaceQualityConfigName,
|
|
3225
|
+
Br as FaceQualityScenarios,
|
|
3226
|
+
Mr as FaceSDKResultCode,
|
|
3227
|
+
Wr as FaceSdk,
|
|
3228
|
+
jr as FilterOp,
|
|
3229
|
+
Xs as GroupApi,
|
|
3230
|
+
Xr as HealthcheckApi,
|
|
3231
|
+
$s as ImageSource,
|
|
3232
|
+
dr as Liveness20Api,
|
|
3233
|
+
kr as LivenessType,
|
|
3234
|
+
Qs as MatchApi,
|
|
3235
|
+
Zs as PersonApi,
|
|
3236
|
+
rr as SearchApi
|
|
3127
3237
|
};
|