@regulaforensics/facesdk-webclient 8.3.664-rc → 8.3.665-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.
Files changed (3) hide show
  1. package/dist/index.cjs +8 -8
  2. package/dist/index.js +1619 -1425
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,161 +1,171 @@
1
- function dt(e, t) {
1
+ function _t(e, t) {
2
2
  return function() {
3
3
  return e.apply(t, arguments);
4
4
  };
5
5
  }
6
- const { toString: Dt } = Object.prototype, { getPrototypeOf: xe } = Object, { iterator: Oe, toStringTag: ut } = Symbol, _e = /* @__PURE__ */ ((e) => (t) => {
7
- const r = Dt.call(t);
6
+ const { toString: Ft } = Object.prototype, { getPrototypeOf: ye } = Object, { iterator: we, toStringTag: Rt } = Symbol, Ce = /* @__PURE__ */ ((e) => (t) => {
7
+ const r = Ft.call(t);
8
8
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
9
- })(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), Re = (e) => (t) => typeof t === e, { isArray: K } = Array, Z = Re("undefined");
10
- function re(e) {
11
- return e !== null && !Z(e) && e.constructor !== null && !Z(e.constructor) && N(e.constructor.isBuffer) && e.constructor.isBuffer(e);
9
+ })(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => Ce(t) === e), Le = (e) => (t) => typeof t === e, { isArray: oe } = Array, se = Le("undefined");
10
+ function ue(e) {
11
+ return e !== null && !se(e) && e.constructor !== null && !se(e.constructor) && D(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
12
  }
13
- const pt = G("ArrayBuffer");
14
- function Bt(e) {
13
+ const mt = M("ArrayBuffer");
14
+ function kt(e) {
15
15
  let t;
16
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pt(e.buffer), t;
16
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && mt(e.buffer), t;
17
17
  }
18
- const Ht = Re("string"), N = Re("function"), ht = Re("number"), se = (e) => e !== null && typeof e == "object", Gt = (e) => e === !0 || e === !1, pe = (e) => {
19
- if (_e(e) !== "object")
18
+ const qt = Le("string"), D = Le("function"), Tt = Le("number"), pe = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, Te = (e) => {
19
+ if (Ce(e) !== "object")
20
20
  return !1;
21
- const t = xe(e);
22
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(Oe in e);
23
- }, Mt = (e) => {
24
- if (!se(e) || re(e))
21
+ const t = ye(e);
22
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Rt in e) && !(we in e);
23
+ }, $t = (e) => {
24
+ if (!pe(e) || ue(e))
25
25
  return !1;
26
26
  try {
27
27
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
28
28
  } catch {
29
29
  return !1;
30
30
  }
31
- }, vt = G("Date"), jt = G("File"), kt = (e) => !!(e && typeof e.uri < "u"), Ft = (e) => e && typeof e.getParts < "u", qt = G("Blob"), $t = G("FileList"), zt = (e) => se(e) && N(e.pipe);
32
- function Wt() {
31
+ }, Wt = M("Date"), Xt = M("File"), Yt = (e) => !!(e && typeof e.uri < "u"), Jt = (e) => e && typeof e.getParts < "u", Zt = M("Blob"), Kt = M("FileList"), Qt = (e) => pe(e) && D(e.pipe);
32
+ function er() {
33
33
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
34
34
  }
35
- const $e = Wt(), ze = typeof $e.FormData < "u" ? $e.FormData : void 0, Yt = (e) => {
36
- let t;
37
- return e && (ze && e instanceof ze || N(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
38
- t === "object" && N(e.toString) && e.toString() === "[object FormData]"));
39
- }, Xt = G("URLSearchParams"), [Jt, Zt, Kt, Qt] = [
35
+ const rt = er(), nt = typeof rt.FormData < "u" ? rt.FormData : void 0, tr = (e) => {
36
+ if (!e) return !1;
37
+ if (nt && e instanceof nt) return !0;
38
+ const t = ye(e);
39
+ if (!t || t === Object.prototype || !D(e.append)) return !1;
40
+ const r = Ce(e);
41
+ return r === "formdata" || // detect form-data instance
42
+ r === "object" && D(e.toString) && e.toString() === "[object FormData]";
43
+ }, rr = M("URLSearchParams"), [nr, sr, or, ar] = [
40
44
  "ReadableStream",
41
45
  "Request",
42
46
  "Response",
43
47
  "Headers"
44
- ].map(G), er = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
45
- function ne(e, t, { allOwnKeys: r = !1 } = {}) {
48
+ ].map(M), ir = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
49
+ function he(e, t, { allOwnKeys: r = !1 } = {}) {
46
50
  if (e === null || typeof e > "u")
47
51
  return;
48
- let s, n;
49
- if (typeof e != "object" && (e = [e]), K(e))
50
- for (s = 0, n = e.length; s < n; s++)
51
- t.call(null, e[s], s, e);
52
+ let n, s;
53
+ if (typeof e != "object" && (e = [e]), oe(e))
54
+ for (n = 0, s = e.length; n < s; n++)
55
+ t.call(null, e[n], n, e);
52
56
  else {
53
- if (re(e))
57
+ if (ue(e))
54
58
  return;
55
59
  const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
56
60
  let i;
57
- for (s = 0; s < a; s++)
58
- i = o[s], t.call(null, e[i], i, e);
61
+ for (n = 0; n < a; n++)
62
+ i = o[n], t.call(null, e[i], i, e);
59
63
  }
60
64
  }
61
- function ft(e, t) {
62
- if (re(e))
65
+ function Pt(e, t) {
66
+ if (ue(e))
63
67
  return null;
64
68
  t = t.toLowerCase();
65
69
  const r = Object.keys(e);
66
- let s = r.length, n;
67
- for (; s-- > 0; )
68
- if (n = r[s], t === n.toLowerCase())
69
- return n;
70
+ let n = r.length, s;
71
+ for (; n-- > 0; )
72
+ if (s = r[n], t === s.toLowerCase())
73
+ return s;
70
74
  return null;
71
75
  }
72
- const z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Et = (e) => !Z(e) && e !== z;
73
- function Le() {
74
- const { caseless: e, skipUndefined: t } = Et(this) && this || {}, r = {}, s = (n, o) => {
75
- if (o === "__proto__" || o === "constructor" || o === "prototype")
76
+ const K = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, It = (e) => !se(e) && e !== K;
77
+ function ve(...e) {
78
+ const { caseless: t, skipUndefined: r } = It(this) && this || {}, n = {}, s = (o, a) => {
79
+ if (a === "__proto__" || a === "constructor" || a === "prototype")
76
80
  return;
77
- const a = e && ft(r, o) || o;
78
- pe(r[a]) && pe(n) ? r[a] = Le(r[a], n) : pe(n) ? r[a] = Le({}, n) : K(n) ? r[a] = n.slice() : (!t || !Z(n)) && (r[a] = n);
81
+ const i = t && Pt(n, a) || a, l = je(n, i) ? n[i] : void 0;
82
+ Te(l) && Te(o) ? n[i] = ve(l, o) : Te(o) ? n[i] = ve({}, o) : oe(o) ? n[i] = o.slice() : (!r || !se(o)) && (n[i] = o);
79
83
  };
80
- for (let n = 0, o = arguments.length; n < o; n++)
81
- arguments[n] && ne(arguments[n], s);
82
- return r;
84
+ for (let o = 0, a = e.length; o < a; o++)
85
+ e[o] && he(e[o], s);
86
+ return n;
83
87
  }
84
- const tr = (e, t, r, { allOwnKeys: s } = {}) => (ne(
88
+ const lr = (e, t, r, { allOwnKeys: n } = {}) => (he(
85
89
  t,
86
- (n, o) => {
87
- r && N(n) ? Object.defineProperty(e, o, {
88
- value: dt(n, r),
90
+ (s, o) => {
91
+ r && D(s) ? Object.defineProperty(e, o, {
92
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
93
+ // hijack defineProperty's accessor-vs-data resolution.
94
+ __proto__: null,
95
+ value: _t(s, r),
89
96
  writable: !0,
90
97
  enumerable: !0,
91
98
  configurable: !0
92
99
  }) : Object.defineProperty(e, o, {
93
- value: n,
100
+ __proto__: null,
101
+ value: s,
94
102
  writable: !0,
95
103
  enumerable: !0,
96
104
  configurable: !0
97
105
  });
98
106
  },
99
- { allOwnKeys: s }
100
- ), e), rr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sr = (e, t, r, s) => {
101
- e.prototype = Object.create(t.prototype, s), Object.defineProperty(e.prototype, "constructor", {
107
+ { allOwnKeys: n }
108
+ ), e), cr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), dr = (e, t, r, n) => {
109
+ e.prototype = Object.create(t.prototype, n), Object.defineProperty(e.prototype, "constructor", {
110
+ __proto__: null,
102
111
  value: e,
103
112
  writable: !0,
104
113
  enumerable: !1,
105
114
  configurable: !0
106
115
  }), Object.defineProperty(e, "super", {
116
+ __proto__: null,
107
117
  value: t.prototype
108
118
  }), r && Object.assign(e.prototype, r);
109
- }, nr = (e, t, r, s) => {
110
- let n, o, a;
119
+ }, ur = (e, t, r, n) => {
120
+ let s, o, a;
111
121
  const i = {};
112
122
  if (t = t || {}, e == null) return t;
113
123
  do {
114
- for (n = Object.getOwnPropertyNames(e), o = n.length; o-- > 0; )
115
- a = n[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
116
- e = r !== !1 && xe(e);
124
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
125
+ a = s[o], (!n || n(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
126
+ e = r !== !1 && ye(e);
117
127
  } while (e && (!r || r(e, t)) && e !== Object.prototype);
118
128
  return t;
119
- }, or = (e, t, r) => {
129
+ }, pr = (e, t, r) => {
120
130
  e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
121
- const s = e.indexOf(t, r);
122
- return s !== -1 && s === r;
123
- }, ar = (e) => {
131
+ const n = e.indexOf(t, r);
132
+ return n !== -1 && n === r;
133
+ }, hr = (e) => {
124
134
  if (!e) return null;
125
- if (K(e)) return e;
135
+ if (oe(e)) return e;
126
136
  let t = e.length;
127
- if (!ht(t)) return null;
137
+ if (!Tt(t)) return null;
128
138
  const r = new Array(t);
129
139
  for (; t-- > 0; )
130
140
  r[t] = e[t];
131
141
  return r;
132
- }, ir = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && xe(Uint8Array)), lr = (e, t) => {
133
- const s = (e && e[Oe]).call(e);
134
- let n;
135
- for (; (n = s.next()) && !n.done; ) {
136
- const o = n.value;
142
+ }, fr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ye(Uint8Array)), Er = (e, t) => {
143
+ const n = (e && e[we]).call(e);
144
+ let s;
145
+ for (; (s = n.next()) && !s.done; ) {
146
+ const o = s.value;
137
147
  t.call(e, o[0], o[1]);
138
148
  }
139
- }, cr = (e, t) => {
149
+ }, Ar = (e, t) => {
140
150
  let r;
141
- const s = [];
151
+ const n = [];
142
152
  for (; (r = e.exec(t)) !== null; )
143
- s.push(r);
144
- return s;
145
- }, dr = G("HTMLFormElement"), ur = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, s, n) {
146
- return s.toUpperCase() + n;
147
- }), We = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), pr = G("RegExp"), At = (e, t) => {
148
- const r = Object.getOwnPropertyDescriptors(e), s = {};
149
- ne(r, (n, o) => {
153
+ n.push(r);
154
+ return n;
155
+ }, Or = M("HTMLFormElement"), _r = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
156
+ return n.toUpperCase() + s;
157
+ }), je = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Rr = M("RegExp"), St = (e, t) => {
158
+ const r = Object.getOwnPropertyDescriptors(e), n = {};
159
+ he(r, (s, o) => {
150
160
  let a;
151
- (a = t(n, o, e)) !== !1 && (s[o] = a || n);
152
- }), Object.defineProperties(e, s);
153
- }, hr = (e) => {
154
- At(e, (t, r) => {
155
- if (N(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
161
+ (a = t(s, o, e)) !== !1 && (n[o] = a || s);
162
+ }), Object.defineProperties(e, n);
163
+ }, mr = (e) => {
164
+ St(e, (t, r) => {
165
+ if (D(e) && ["arguments", "caller", "callee"].includes(r))
156
166
  return !1;
157
- const s = e[r];
158
- if (N(s)) {
167
+ const n = e[r];
168
+ if (D(n)) {
159
169
  if (t.enumerable = !1, "writable" in t) {
160
170
  t.writable = !1;
161
171
  return;
@@ -165,110 +175,375 @@ const tr = (e, t, r, { allOwnKeys: s } = {}) => (ne(
165
175
  });
166
176
  }
167
177
  });
168
- }, fr = (e, t) => {
169
- const r = {}, s = (n) => {
170
- n.forEach((o) => {
178
+ }, Tr = (e, t) => {
179
+ const r = {}, n = (s) => {
180
+ s.forEach((o) => {
171
181
  r[o] = !0;
172
182
  });
173
183
  };
174
- return K(e) ? s(e) : s(String(e).split(t)), r;
175
- }, Er = () => {
176
- }, Ar = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
177
- function Or(e) {
178
- return !!(e && N(e.append) && e[ut] === "FormData" && e[Oe]);
184
+ return oe(e) ? n(e) : n(String(e).split(t)), r;
185
+ }, Pr = () => {
186
+ }, Ir = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
187
+ function Sr(e) {
188
+ return !!(e && D(e.append) && e[Rt] === "FormData" && e[we]);
179
189
  }
180
- const _r = (e) => {
181
- const t = new Array(10), r = (s, n) => {
182
- if (se(s)) {
183
- if (t.indexOf(s) >= 0)
190
+ const br = (e) => {
191
+ const t = new Array(10), r = (n, s) => {
192
+ if (pe(n)) {
193
+ if (t.indexOf(n) >= 0)
184
194
  return;
185
- if (re(s))
186
- return s;
187
- if (!("toJSON" in s)) {
188
- t[n] = s;
189
- const o = K(s) ? [] : {};
190
- return ne(s, (a, i) => {
191
- const l = r(a, n + 1);
192
- !Z(l) && (o[i] = l);
193
- }), t[n] = void 0, o;
195
+ if (ue(n))
196
+ return n;
197
+ if (!("toJSON" in n)) {
198
+ t[s] = n;
199
+ const o = oe(n) ? [] : {};
200
+ return he(n, (a, i) => {
201
+ const l = r(a, s + 1);
202
+ !se(l) && (o[i] = l);
203
+ }), t[s] = void 0, o;
194
204
  }
195
205
  }
196
- return s;
206
+ return n;
197
207
  };
198
208
  return r(e, 0);
199
- }, Rr = G("AsyncFunction"), mr = (e) => e && (se(e) || N(e)) && N(e.then) && N(e.catch), Ot = ((e, t) => e ? setImmediate : t ? ((r, s) => (z.addEventListener(
209
+ }, yr = M("AsyncFunction"), wr = (e) => e && (pe(e) || D(e)) && D(e.then) && D(e.catch), bt = ((e, t) => e ? setImmediate : t ? ((r, n) => (K.addEventListener(
200
210
  "message",
201
- ({ source: n, data: o }) => {
202
- n === z && o === r && s.length && s.shift()();
211
+ ({ source: s, data: o }) => {
212
+ s === K && o === r && n.length && n.shift()();
203
213
  },
204
214
  !1
205
- ), (n) => {
206
- s.push(n), z.postMessage(r, "*");
207
- }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", N(z.postMessage)), Tr = typeof queueMicrotask < "u" ? queueMicrotask.bind(z) : typeof process < "u" && process.nextTick || Ot, Pr = (e) => e != null && N(e[Oe]), u = {
208
- isArray: K,
209
- isArrayBuffer: pt,
210
- isBuffer: re,
211
- isFormData: Yt,
212
- isArrayBufferView: Bt,
213
- isString: Ht,
214
- isNumber: ht,
215
- isBoolean: Gt,
216
- isObject: se,
217
- isPlainObject: pe,
218
- isEmptyObject: Mt,
219
- isReadableStream: Jt,
220
- isRequest: Zt,
221
- isResponse: Kt,
222
- isHeaders: Qt,
223
- isUndefined: Z,
224
- isDate: vt,
225
- isFile: jt,
226
- isReactNativeBlob: kt,
227
- isReactNative: Ft,
228
- isBlob: qt,
229
- isRegExp: pr,
230
- isFunction: N,
231
- isStream: zt,
232
- isURLSearchParams: Xt,
233
- isTypedArray: ir,
234
- isFileList: $t,
235
- forEach: ne,
236
- merge: Le,
237
- extend: tr,
238
- trim: er,
239
- stripBOM: rr,
240
- inherits: sr,
241
- toFlatObject: nr,
242
- kindOf: _e,
243
- kindOfTest: G,
244
- endsWith: or,
245
- toArray: ar,
246
- forEachEntry: lr,
247
- matchAll: cr,
248
- isHTMLForm: dr,
249
- hasOwnProperty: We,
250
- hasOwnProp: We,
215
+ ), (s) => {
216
+ n.push(s), K.postMessage(r, "*");
217
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", D(K.postMessage)), Cr = typeof queueMicrotask < "u" ? queueMicrotask.bind(K) : typeof process < "u" && process.nextTick || bt, Lr = (e) => e != null && D(e[we]), u = {
218
+ isArray: oe,
219
+ isArrayBuffer: mt,
220
+ isBuffer: ue,
221
+ isFormData: tr,
222
+ isArrayBufferView: kt,
223
+ isString: qt,
224
+ isNumber: Tt,
225
+ isBoolean: zt,
226
+ isObject: pe,
227
+ isPlainObject: Te,
228
+ isEmptyObject: $t,
229
+ isReadableStream: nr,
230
+ isRequest: sr,
231
+ isResponse: or,
232
+ isHeaders: ar,
233
+ isUndefined: se,
234
+ isDate: Wt,
235
+ isFile: Xt,
236
+ isReactNativeBlob: Yt,
237
+ isReactNative: Jt,
238
+ isBlob: Zt,
239
+ isRegExp: Rr,
240
+ isFunction: D,
241
+ isStream: Qt,
242
+ isURLSearchParams: rr,
243
+ isTypedArray: fr,
244
+ isFileList: Kt,
245
+ forEach: he,
246
+ merge: ve,
247
+ extend: lr,
248
+ trim: ir,
249
+ stripBOM: cr,
250
+ inherits: dr,
251
+ toFlatObject: ur,
252
+ kindOf: Ce,
253
+ kindOfTest: M,
254
+ endsWith: pr,
255
+ toArray: hr,
256
+ forEachEntry: Er,
257
+ matchAll: Ar,
258
+ isHTMLForm: Or,
259
+ hasOwnProperty: je,
260
+ hasOwnProp: je,
251
261
  // an alias to avoid ESLint no-prototype-builtins detection
252
- reduceDescriptors: At,
253
- freezeMethods: hr,
254
- toObjectSet: fr,
255
- toCamelCase: ur,
256
- noop: Er,
257
- toFiniteNumber: Ar,
258
- findKey: ft,
259
- global: z,
260
- isContextDefined: Et,
261
- isSpecCompliantForm: Or,
262
- toJSONObject: _r,
263
- isAsyncFn: Rr,
264
- isThenable: mr,
265
- setImmediate: Ot,
266
- asap: Tr,
267
- isIterable: Pr
262
+ reduceDescriptors: St,
263
+ freezeMethods: mr,
264
+ toObjectSet: Tr,
265
+ toCamelCase: _r,
266
+ noop: Pr,
267
+ toFiniteNumber: Ir,
268
+ findKey: Pt,
269
+ global: K,
270
+ isContextDefined: It,
271
+ isSpecCompliantForm: Sr,
272
+ toJSONObject: br,
273
+ isAsyncFn: yr,
274
+ isThenable: wr,
275
+ setImmediate: bt,
276
+ asap: Cr,
277
+ isIterable: Lr
278
+ }, gr = u.toObjectSet([
279
+ "age",
280
+ "authorization",
281
+ "content-length",
282
+ "content-type",
283
+ "etag",
284
+ "expires",
285
+ "from",
286
+ "host",
287
+ "if-modified-since",
288
+ "if-unmodified-since",
289
+ "last-modified",
290
+ "location",
291
+ "max-forwards",
292
+ "proxy-authorization",
293
+ "referer",
294
+ "retry-after",
295
+ "user-agent"
296
+ ]), Nr = (e) => {
297
+ const t = {};
298
+ let r, n, s;
299
+ return e && e.split(`
300
+ `).forEach(function(a) {
301
+ s = a.indexOf(":"), r = a.substring(0, s).trim().toLowerCase(), n = a.substring(s + 1).trim(), !(!r || t[r] && gr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
302
+ }), t;
303
+ }, st = /* @__PURE__ */ Symbol("internals"), xr = /[^\x09\x20-\x7E\x80-\xFF]/g;
304
+ function Vr(e) {
305
+ let t = 0, r = e.length;
306
+ for (; t < r; ) {
307
+ const n = e.charCodeAt(t);
308
+ if (n !== 9 && n !== 32)
309
+ break;
310
+ t += 1;
311
+ }
312
+ for (; r > t; ) {
313
+ const n = e.charCodeAt(r - 1);
314
+ if (n !== 9 && n !== 32)
315
+ break;
316
+ r -= 1;
317
+ }
318
+ return t === 0 && r === e.length ? e : e.slice(t, r);
319
+ }
320
+ function de(e) {
321
+ return e && String(e).trim().toLowerCase();
322
+ }
323
+ function Ur(e) {
324
+ return Vr(e.replace(xr, ""));
325
+ }
326
+ function Pe(e) {
327
+ return e === !1 || e == null ? e : u.isArray(e) ? e.map(Pe) : Ur(String(e));
328
+ }
329
+ function Dr(e) {
330
+ const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
331
+ let n;
332
+ for (; n = r.exec(e); )
333
+ t[n[1]] = n[2];
334
+ return t;
335
+ }
336
+ const Br = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
337
+ function De(e, t, r, n, s) {
338
+ if (u.isFunction(n))
339
+ return n.call(this, t, r);
340
+ if (s && (t = r), !!u.isString(t)) {
341
+ if (u.isString(n))
342
+ return t.indexOf(n) !== -1;
343
+ if (u.isRegExp(n))
344
+ return n.test(t);
345
+ }
346
+ }
347
+ function Hr(e) {
348
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
349
+ }
350
+ function Gr(e, t) {
351
+ const r = u.toCamelCase(" " + t);
352
+ ["get", "set", "has"].forEach((n) => {
353
+ Object.defineProperty(e, n + r, {
354
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
355
+ // this data descriptor into an accessor descriptor on the way in.
356
+ __proto__: null,
357
+ value: function(s, o, a) {
358
+ return this[n].call(this, t, s, o, a);
359
+ },
360
+ configurable: !0
361
+ });
362
+ });
363
+ }
364
+ let U = class {
365
+ constructor(t) {
366
+ t && this.set(t);
367
+ }
368
+ set(t, r, n) {
369
+ const s = this;
370
+ function o(i, l, c) {
371
+ const d = de(l);
372
+ if (!d)
373
+ throw new Error("header name must be a non-empty string");
374
+ const p = u.findKey(s, d);
375
+ (!p || s[p] === void 0 || c === !0 || c === void 0 && s[p] !== !1) && (s[p || l] = Pe(i));
376
+ }
377
+ const a = (i, l) => u.forEach(i, (c, d) => o(c, d, l));
378
+ if (u.isPlainObject(t) || t instanceof this.constructor)
379
+ a(t, r);
380
+ else if (u.isString(t) && (t = t.trim()) && !Br(t))
381
+ a(Nr(t), r);
382
+ else if (u.isObject(t) && u.isIterable(t)) {
383
+ let i = {}, l, c;
384
+ for (const d of t) {
385
+ if (!u.isArray(d))
386
+ throw TypeError("Object iterator must return a key-value pair");
387
+ i[c = d[0]] = (l = i[c]) ? u.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
388
+ }
389
+ a(i, r);
390
+ } else
391
+ t != null && o(r, t, n);
392
+ return this;
393
+ }
394
+ get(t, r) {
395
+ if (t = de(t), t) {
396
+ const n = u.findKey(this, t);
397
+ if (n) {
398
+ const s = this[n];
399
+ if (!r)
400
+ return s;
401
+ if (r === !0)
402
+ return Dr(s);
403
+ if (u.isFunction(r))
404
+ return r.call(this, s, n);
405
+ if (u.isRegExp(r))
406
+ return r.exec(s);
407
+ throw new TypeError("parser must be boolean|regexp|function");
408
+ }
409
+ }
410
+ }
411
+ has(t, r) {
412
+ if (t = de(t), t) {
413
+ const n = u.findKey(this, t);
414
+ return !!(n && this[n] !== void 0 && (!r || De(this, this[n], n, r)));
415
+ }
416
+ return !1;
417
+ }
418
+ delete(t, r) {
419
+ const n = this;
420
+ let s = !1;
421
+ function o(a) {
422
+ if (a = de(a), a) {
423
+ const i = u.findKey(n, a);
424
+ i && (!r || De(n, n[i], i, r)) && (delete n[i], s = !0);
425
+ }
426
+ }
427
+ return u.isArray(t) ? t.forEach(o) : o(t), s;
428
+ }
429
+ clear(t) {
430
+ const r = Object.keys(this);
431
+ let n = r.length, s = !1;
432
+ for (; n--; ) {
433
+ const o = r[n];
434
+ (!t || De(this, this[o], o, t, !0)) && (delete this[o], s = !0);
435
+ }
436
+ return s;
437
+ }
438
+ normalize(t) {
439
+ const r = this, n = {};
440
+ return u.forEach(this, (s, o) => {
441
+ const a = u.findKey(n, o);
442
+ if (a) {
443
+ r[a] = Pe(s), delete r[o];
444
+ return;
445
+ }
446
+ const i = t ? Hr(o) : String(o).trim();
447
+ i !== o && delete r[o], r[i] = Pe(s), n[i] = !0;
448
+ }), this;
449
+ }
450
+ concat(...t) {
451
+ return this.constructor.concat(this, ...t);
452
+ }
453
+ toJSON(t) {
454
+ const r = /* @__PURE__ */ Object.create(null);
455
+ return u.forEach(this, (n, s) => {
456
+ n != null && n !== !1 && (r[s] = t && u.isArray(n) ? n.join(", ") : n);
457
+ }), r;
458
+ }
459
+ [Symbol.iterator]() {
460
+ return Object.entries(this.toJSON())[Symbol.iterator]();
461
+ }
462
+ toString() {
463
+ return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
464
+ `);
465
+ }
466
+ getSetCookie() {
467
+ return this.get("set-cookie") || [];
468
+ }
469
+ get [Symbol.toStringTag]() {
470
+ return "AxiosHeaders";
471
+ }
472
+ static from(t) {
473
+ return t instanceof this ? t : new this(t);
474
+ }
475
+ static concat(t, ...r) {
476
+ const n = new this(t);
477
+ return r.forEach((s) => n.set(s)), n;
478
+ }
479
+ static accessor(t) {
480
+ const n = (this[st] = this[st] = {
481
+ accessors: {}
482
+ }).accessors, s = this.prototype;
483
+ function o(a) {
484
+ const i = de(a);
485
+ n[i] || (Gr(s, a), n[i] = !0);
486
+ }
487
+ return u.isArray(t) ? t.forEach(o) : o(t), this;
488
+ }
268
489
  };
269
- let A = class _t extends Error {
270
- static from(t, r, s, n, o, a) {
271
- const i = new _t(t.message, r || t.code, s, n, o);
490
+ U.accessor([
491
+ "Content-Type",
492
+ "Content-Length",
493
+ "Accept",
494
+ "Accept-Encoding",
495
+ "User-Agent",
496
+ "Authorization"
497
+ ]);
498
+ u.reduceDescriptors(U.prototype, ({ value: e }, t) => {
499
+ let r = t[0].toUpperCase() + t.slice(1);
500
+ return {
501
+ get: () => e,
502
+ set(n) {
503
+ this[r] = n;
504
+ }
505
+ };
506
+ });
507
+ u.freezeMethods(U);
508
+ const Mr = "[REDACTED ****]";
509
+ function vr(e) {
510
+ if (u.hasOwnProp(e, "toJSON"))
511
+ return !0;
512
+ let t = Object.getPrototypeOf(e);
513
+ for (; t && t !== Object.prototype; ) {
514
+ if (u.hasOwnProp(t, "toJSON"))
515
+ return !0;
516
+ t = Object.getPrototypeOf(t);
517
+ }
518
+ return !1;
519
+ }
520
+ function jr(e, t) {
521
+ const r = new Set(t.map((o) => String(o).toLowerCase())), n = [], s = (o) => {
522
+ if (o === null || typeof o != "object" || u.isBuffer(o)) return o;
523
+ if (n.indexOf(o) !== -1) return;
524
+ o instanceof U && (o = o.toJSON()), n.push(o);
525
+ let a;
526
+ if (u.isArray(o))
527
+ a = [], o.forEach((i, l) => {
528
+ const c = s(i);
529
+ u.isUndefined(c) || (a[l] = c);
530
+ });
531
+ else {
532
+ if (!u.isPlainObject(o) && vr(o))
533
+ return n.pop(), o;
534
+ a = /* @__PURE__ */ Object.create(null);
535
+ for (const [i, l] of Object.entries(o)) {
536
+ const c = r.has(i.toLowerCase()) ? Mr : s(l);
537
+ u.isUndefined(c) || (a[i] = c);
538
+ }
539
+ }
540
+ return n.pop(), a;
541
+ };
542
+ return s(e);
543
+ }
544
+ let f = class yt extends Error {
545
+ static from(t, r, n, s, o, a) {
546
+ const i = new yt(t.message, r || t.code, n, s, o);
272
547
  return i.cause = t, i.name = t.name, t.status != null && i.status == null && (i.status = t.status), a && Object.assign(i, a), i;
273
548
  }
274
549
  /**
@@ -282,15 +557,19 @@ let A = class _t extends Error {
282
557
  *
283
558
  * @returns {Error} The created error.
284
559
  */
285
- constructor(t, r, s, n, o) {
560
+ constructor(t, r, n, s, o) {
286
561
  super(t), Object.defineProperty(this, "message", {
562
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
563
+ // this data descriptor into an accessor descriptor on the way in.
564
+ __proto__: null,
287
565
  value: t,
288
566
  enumerable: !0,
289
567
  writable: !0,
290
568
  configurable: !0
291
- }), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), s && (this.config = s), n && (this.request = n), o && (this.response = o, this.status = o.status);
569
+ }), this.name = "AxiosError", this.isAxiosError = !0, r && (this.code = r), n && (this.config = n), s && (this.request = s), o && (this.response = o, this.status = o.status);
292
570
  }
293
571
  toJSON() {
572
+ const t = this.config, r = t && u.hasOwnProp(t, "redact") ? t.redact : void 0, n = u.isArray(r) && r.length > 0 ? jr(t, r) : u.toJSONObject(t);
294
573
  return {
295
574
  // Standard
296
575
  message: this.message,
@@ -304,43 +583,45 @@ let A = class _t extends Error {
304
583
  columnNumber: this.columnNumber,
305
584
  stack: this.stack,
306
585
  // Axios
307
- config: u.toJSONObject(this.config),
586
+ config: n,
308
587
  code: this.code,
309
588
  status: this.status
310
589
  };
311
590
  }
312
591
  };
313
- A.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
314
- A.ERR_BAD_OPTION = "ERR_BAD_OPTION";
315
- A.ECONNABORTED = "ECONNABORTED";
316
- A.ETIMEDOUT = "ETIMEDOUT";
317
- A.ERR_NETWORK = "ERR_NETWORK";
318
- A.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
319
- A.ERR_DEPRECATED = "ERR_DEPRECATED";
320
- A.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
321
- A.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
322
- A.ERR_CANCELED = "ERR_CANCELED";
323
- A.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
324
- A.ERR_INVALID_URL = "ERR_INVALID_URL";
325
- const Ir = null;
326
- function ge(e) {
592
+ f.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
593
+ f.ERR_BAD_OPTION = "ERR_BAD_OPTION";
594
+ f.ECONNABORTED = "ECONNABORTED";
595
+ f.ETIMEDOUT = "ETIMEDOUT";
596
+ f.ECONNREFUSED = "ECONNREFUSED";
597
+ f.ERR_NETWORK = "ERR_NETWORK";
598
+ f.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
599
+ f.ERR_DEPRECATED = "ERR_DEPRECATED";
600
+ f.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
601
+ f.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
602
+ f.ERR_CANCELED = "ERR_CANCELED";
603
+ f.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
604
+ f.ERR_INVALID_URL = "ERR_INVALID_URL";
605
+ f.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
606
+ const Fr = null;
607
+ function Fe(e) {
327
608
  return u.isPlainObject(e) || u.isArray(e);
328
609
  }
329
- function Rt(e) {
610
+ function wt(e) {
330
611
  return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
331
612
  }
332
- function Se(e, t, r) {
333
- return e ? e.concat(t).map(function(n, o) {
334
- return n = Rt(n), !r && o ? "[" + n + "]" : n;
613
+ function Be(e, t, r) {
614
+ return e ? e.concat(t).map(function(s, o) {
615
+ return s = wt(s), !r && o ? "[" + s + "]" : s;
335
616
  }).join(r ? "." : "") : t;
336
617
  }
337
- function Sr(e) {
338
- return u.isArray(e) && !e.some(ge);
618
+ function kr(e) {
619
+ return u.isArray(e) && !e.some(Fe);
339
620
  }
340
- const br = u.toFlatObject(u, {}, null, function(t) {
621
+ const qr = u.toFlatObject(u, {}, null, function(t) {
341
622
  return /^is[A-Z]/.test(t);
342
623
  });
343
- function me(e, t, r) {
624
+ function ge(e, t, r) {
344
625
  if (!u.isObject(e))
345
626
  throw new TypeError("target must be an object");
346
627
  t = t || new FormData(), r = u.toFlatObject(
@@ -351,105 +632,109 @@ function me(e, t, r) {
351
632
  indexes: !1
352
633
  },
353
634
  !1,
354
- function(E, f) {
355
- return !u.isUndefined(f[E]);
635
+ function(h, A) {
636
+ return !u.isUndefined(A[h]);
356
637
  }
357
638
  );
358
- const s = r.metaTokens, n = r.visitor || d, o = r.dots, a = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
359
- if (!u.isFunction(n))
639
+ const n = r.metaTokens, s = r.visitor || p, o = r.dots, a = r.indexes, i = r.Blob || typeof Blob < "u" && Blob, l = r.maxDepth === void 0 ? 100 : r.maxDepth, c = i && u.isSpecCompliantForm(t);
640
+ if (!u.isFunction(s))
360
641
  throw new TypeError("visitor must be a function");
361
- function c(h) {
362
- if (h === null) return "";
363
- if (u.isDate(h))
364
- return h.toISOString();
365
- if (u.isBoolean(h))
366
- return h.toString();
367
- if (!l && u.isBlob(h))
368
- throw new A("Blob is not supported. Use a Buffer instead.");
369
- return u.isArrayBuffer(h) || u.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
370
- }
371
- function d(h, E, f) {
372
- let w = h;
373
- if (u.isReactNative(t) && u.isReactNativeBlob(h))
374
- return t.append(Se(f, E, o), c(h)), !1;
375
- if (h && !f && typeof h == "object") {
376
- if (u.endsWith(E, "{}"))
377
- E = s ? E : E.slice(0, -2), h = JSON.stringify(h);
378
- else if (u.isArray(h) && Sr(h) || (u.isFileList(h) || u.endsWith(E, "[]")) && (w = u.toArray(h)))
379
- return E = Rt(E), w.forEach(function(y, g) {
380
- !(u.isUndefined(y) || y === null) && t.append(
642
+ function d(E) {
643
+ if (E === null) return "";
644
+ if (u.isDate(E))
645
+ return E.toISOString();
646
+ if (u.isBoolean(E))
647
+ return E.toString();
648
+ if (!c && u.isBlob(E))
649
+ throw new f("Blob is not supported. Use a Buffer instead.");
650
+ return u.isArrayBuffer(E) || u.isTypedArray(E) ? c && typeof Blob == "function" ? new Blob([E]) : Buffer.from(E) : E;
651
+ }
652
+ function p(E, h, A) {
653
+ let S = E;
654
+ if (u.isReactNative(t) && u.isReactNativeBlob(E))
655
+ return t.append(Be(A, h, o), d(E)), !1;
656
+ if (E && !A && typeof E == "object") {
657
+ if (u.endsWith(h, "{}"))
658
+ h = n ? h : h.slice(0, -2), E = JSON.stringify(E);
659
+ else if (u.isArray(E) && kr(E) || (u.isFileList(E) || u.endsWith(h, "[]")) && (S = u.toArray(E)))
660
+ return h = wt(h), S.forEach(function(T, B) {
661
+ !(u.isUndefined(T) || T === null) && t.append(
381
662
  // eslint-disable-next-line no-nested-ternary
382
- a === !0 ? Se([E], g, o) : a === null ? E : E + "[]",
383
- c(y)
663
+ a === !0 ? Be([h], B, o) : a === null ? h : h + "[]",
664
+ d(T)
384
665
  );
385
666
  }), !1;
386
667
  }
387
- return ge(h) ? !0 : (t.append(Se(f, E, o), c(h)), !1);
668
+ return Fe(E) ? !0 : (t.append(Be(A, h, o), d(E)), !1);
388
669
  }
389
- const p = [], _ = Object.assign(br, {
390
- defaultVisitor: d,
391
- convertValue: c,
392
- isVisitable: ge
670
+ const _ = [], R = Object.assign(qr, {
671
+ defaultVisitor: p,
672
+ convertValue: d,
673
+ isVisitable: Fe
393
674
  });
394
- function C(h, E) {
395
- if (!u.isUndefined(h)) {
396
- if (p.indexOf(h) !== -1)
397
- throw Error("Circular reference detected in " + E.join("."));
398
- p.push(h), u.forEach(h, function(w, x) {
399
- (!(u.isUndefined(w) || w === null) && n.call(t, w, u.isString(x) ? x.trim() : x, E, _)) === !0 && C(w, E ? E.concat(x) : [x]);
400
- }), p.pop();
675
+ function m(E, h, A = 0) {
676
+ if (!u.isUndefined(E)) {
677
+ if (A > l)
678
+ throw new f(
679
+ "Object is too deeply nested (" + A + " levels). Max depth: " + l,
680
+ f.ERR_FORM_DATA_DEPTH_EXCEEDED
681
+ );
682
+ if (_.indexOf(E) !== -1)
683
+ throw Error("Circular reference detected in " + h.join("."));
684
+ _.push(E), u.forEach(E, function(P, T) {
685
+ (!(u.isUndefined(P) || P === null) && s.call(t, P, u.isString(T) ? T.trim() : T, h, R)) === !0 && m(P, h ? h.concat(T) : [T], A + 1);
686
+ }), _.pop();
401
687
  }
402
688
  }
403
689
  if (!u.isObject(e))
404
690
  throw new TypeError("data must be an object");
405
- return C(e), t;
691
+ return m(e), t;
406
692
  }
407
- function Ye(e) {
693
+ function ot(e) {
408
694
  const t = {
409
695
  "!": "%21",
410
696
  "'": "%27",
411
697
  "(": "%28",
412
698
  ")": "%29",
413
699
  "~": "%7E",
414
- "%20": "+",
415
- "%00": "\0"
700
+ "%20": "+"
416
701
  };
417
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
418
- return t[s];
702
+ return encodeURIComponent(e).replace(/[!'()~]|%20/g, function(n) {
703
+ return t[n];
419
704
  });
420
705
  }
421
- function De(e, t) {
422
- this._pairs = [], e && me(e, this, t);
706
+ function $e(e, t) {
707
+ this._pairs = [], e && ge(e, this, t);
423
708
  }
424
- const mt = De.prototype;
425
- mt.append = function(t, r) {
709
+ const Ct = $e.prototype;
710
+ Ct.append = function(t, r) {
426
711
  this._pairs.push([t, r]);
427
712
  };
428
- mt.toString = function(t) {
429
- const r = t ? function(s) {
430
- return t.call(this, s, Ye);
431
- } : Ye;
432
- return this._pairs.map(function(n) {
433
- return r(n[0]) + "=" + r(n[1]);
713
+ Ct.toString = function(t) {
714
+ const r = t ? function(n) {
715
+ return t.call(this, n, ot);
716
+ } : ot;
717
+ return this._pairs.map(function(s) {
718
+ return r(s[0]) + "=" + r(s[1]);
434
719
  }, "").join("&");
435
720
  };
436
- function wr(e) {
721
+ function zr(e) {
437
722
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
438
723
  }
439
- function Tt(e, t, r) {
724
+ function Lt(e, t, r) {
440
725
  if (!t)
441
726
  return e;
442
- const s = r && r.encode || wr, n = u.isFunction(r) ? {
727
+ const n = r && r.encode || zr, s = u.isFunction(r) ? {
443
728
  serialize: r
444
- } : r, o = n && n.serialize;
729
+ } : r, o = s && s.serialize;
445
730
  let a;
446
- if (o ? a = o(t, n) : a = u.isURLSearchParams(t) ? t.toString() : new De(t, n).toString(s), a) {
731
+ if (o ? a = o(t, s) : a = u.isURLSearchParams(t) ? t.toString() : new $e(t, s).toString(n), a) {
447
732
  const i = e.indexOf("#");
448
733
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
449
734
  }
450
735
  return e;
451
736
  }
452
- class Xe {
737
+ class at {
453
738
  constructor() {
454
739
  this.handlers = [];
455
740
  }
@@ -462,12 +747,12 @@ class Xe {
462
747
  *
463
748
  * @return {Number} An ID used to remove interceptor later
464
749
  */
465
- use(t, r, s) {
750
+ use(t, r, n) {
466
751
  return this.handlers.push({
467
752
  fulfilled: t,
468
753
  rejected: r,
469
- synchronous: s ? s.synchronous : !1,
470
- runWhen: s ? s.runWhen : null
754
+ synchronous: n ? n.synchronous : !1,
755
+ runWhen: n ? n.runWhen : null
471
756
  }), this.handlers.length - 1;
472
757
  }
473
758
  /**
@@ -499,89 +784,90 @@ class Xe {
499
784
  * @returns {void}
500
785
  */
501
786
  forEach(t) {
502
- u.forEach(this.handlers, function(s) {
503
- s !== null && t(s);
787
+ u.forEach(this.handlers, function(n) {
788
+ n !== null && t(n);
504
789
  });
505
790
  }
506
791
  }
507
- const Be = {
792
+ const We = {
508
793
  silentJSONParsing: !0,
509
794
  forcedJSONParsing: !0,
510
795
  clarifyTimeoutError: !1,
511
796
  legacyInterceptorReqResOrdering: !0
512
- }, yr = typeof URLSearchParams < "u" ? URLSearchParams : De, Cr = typeof FormData < "u" ? FormData : null, Lr = typeof Blob < "u" ? Blob : null, gr = {
797
+ }, $r = typeof URLSearchParams < "u" ? URLSearchParams : $e, Wr = typeof FormData < "u" ? FormData : null, Xr = typeof Blob < "u" ? Blob : null, Yr = {
513
798
  isBrowser: !0,
514
799
  classes: {
515
- URLSearchParams: yr,
516
- FormData: Cr,
517
- Blob: Lr
800
+ URLSearchParams: $r,
801
+ FormData: Wr,
802
+ Blob: Xr
518
803
  },
519
804
  protocols: ["http", "https", "file", "blob", "url", "data"]
520
- }, He = typeof window < "u" && typeof document < "u", Ve = typeof navigator == "object" && navigator || void 0, Vr = He && (!Ve || ["ReactNative", "NativeScript", "NS"].indexOf(Ve.product) < 0), Nr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
521
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ur = He && window.location.href || "http://localhost", xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
805
+ }, Xe = typeof window < "u" && typeof document < "u", ke = typeof navigator == "object" && navigator || void 0, Jr = Xe && (!ke || ["ReactNative", "NativeScript", "NS"].indexOf(ke.product) < 0), Zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
806
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Kr = Xe && window.location.href || "http://localhost", Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
522
807
  __proto__: null,
523
- hasBrowserEnv: He,
524
- hasStandardBrowserEnv: Vr,
525
- hasStandardBrowserWebWorkerEnv: Nr,
526
- navigator: Ve,
527
- origin: Ur
528
- }, Symbol.toStringTag, { value: "Module" })), L = {
529
- ...xr,
530
- ...gr
808
+ hasBrowserEnv: Xe,
809
+ hasStandardBrowserEnv: Jr,
810
+ hasStandardBrowserWebWorkerEnv: Zr,
811
+ navigator: ke,
812
+ origin: Kr
813
+ }, Symbol.toStringTag, { value: "Module" })), V = {
814
+ ...Qr,
815
+ ...Yr
531
816
  };
532
- function Dr(e, t) {
533
- return me(e, new L.classes.URLSearchParams(), {
534
- visitor: function(r, s, n, o) {
535
- return L.isNode && u.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
817
+ function en(e, t) {
818
+ return ge(e, new V.classes.URLSearchParams(), {
819
+ visitor: function(r, n, s, o) {
820
+ return V.isNode && u.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
536
821
  },
537
822
  ...t
538
823
  });
539
824
  }
540
- function Br(e) {
825
+ function tn(e) {
541
826
  return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
542
827
  }
543
- function Hr(e) {
828
+ function rn(e) {
544
829
  const t = {}, r = Object.keys(e);
545
- let s;
546
- const n = r.length;
830
+ let n;
831
+ const s = r.length;
547
832
  let o;
548
- for (s = 0; s < n; s++)
549
- o = r[s], t[o] = e[o];
833
+ for (n = 0; n < s; n++)
834
+ o = r[n], t[o] = e[o];
550
835
  return t;
551
836
  }
552
- function Pt(e) {
553
- function t(r, s, n, o) {
837
+ function gt(e) {
838
+ function t(r, n, s, o) {
554
839
  let a = r[o++];
555
840
  if (a === "__proto__") return !0;
556
841
  const i = Number.isFinite(+a), l = o >= r.length;
557
- return a = !a && u.isArray(n) ? n.length : a, l ? (u.hasOwnProp(n, a) ? n[a] = [n[a], s] : n[a] = s, !i) : ((!n[a] || !u.isObject(n[a])) && (n[a] = []), t(r, s, n[a], o) && u.isArray(n[a]) && (n[a] = Hr(n[a])), !i);
842
+ return a = !a && u.isArray(s) ? s.length : a, l ? (u.hasOwnProp(s, a) ? s[a] = u.isArray(s[a]) ? s[a].concat(n) : [s[a], n] : s[a] = n, !i) : ((!s[a] || !u.isObject(s[a])) && (s[a] = []), t(r, n, s[a], o) && u.isArray(s[a]) && (s[a] = rn(s[a])), !i);
558
843
  }
559
844
  if (u.isFormData(e) && u.isFunction(e.entries)) {
560
845
  const r = {};
561
- return u.forEachEntry(e, (s, n) => {
562
- t(Br(s), n, r, 0);
846
+ return u.forEachEntry(e, (n, s) => {
847
+ t(tn(n), s, r, 0);
563
848
  }), r;
564
849
  }
565
850
  return null;
566
851
  }
567
- function Gr(e, t, r) {
852
+ const re = (e, t) => e != null && u.hasOwnProp(e, t) ? e[t] : void 0;
853
+ function nn(e, t, r) {
568
854
  if (u.isString(e))
569
855
  try {
570
856
  return (t || JSON.parse)(e), u.trim(e);
571
- } catch (s) {
572
- if (s.name !== "SyntaxError")
573
- throw s;
857
+ } catch (n) {
858
+ if (n.name !== "SyntaxError")
859
+ throw n;
574
860
  }
575
861
  return (r || JSON.stringify)(e);
576
862
  }
577
- const oe = {
578
- transitional: Be,
863
+ const fe = {
864
+ transitional: We,
579
865
  adapter: ["xhr", "http", "fetch"],
580
866
  transformRequest: [
581
867
  function(t, r) {
582
- const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, o = u.isObject(t);
868
+ const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = u.isObject(t);
583
869
  if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
584
- return n ? JSON.stringify(Pt(t)) : t;
870
+ return s ? JSON.stringify(gt(t)) : t;
585
871
  if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
586
872
  return t;
587
873
  if (u.isArrayBufferView(t))
@@ -590,32 +876,33 @@ const oe = {
590
876
  return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
591
877
  let i;
592
878
  if (o) {
593
- if (s.indexOf("application/x-www-form-urlencoded") > -1)
594
- return Dr(t, this.formSerializer).toString();
595
- if ((i = u.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
596
- const l = this.env && this.env.FormData;
597
- return me(
879
+ const l = re(this, "formSerializer");
880
+ if (n.indexOf("application/x-www-form-urlencoded") > -1)
881
+ return en(t, l).toString();
882
+ if ((i = u.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
883
+ const c = re(this, "env"), d = c && c.FormData;
884
+ return ge(
598
885
  i ? { "files[]": t } : t,
599
- l && new l(),
600
- this.formSerializer
886
+ d && new d(),
887
+ l
601
888
  );
602
889
  }
603
890
  }
604
- return o || n ? (r.setContentType("application/json", !1), Gr(t)) : t;
891
+ return o || s ? (r.setContentType("application/json", !1), nn(t)) : t;
605
892
  }
606
893
  ],
607
894
  transformResponse: [
608
895
  function(t) {
609
- const r = this.transitional || oe.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
896
+ const r = re(this, "transitional") || fe.transitional, n = r && r.forcedJSONParsing, s = re(this, "responseType"), o = s === "json";
610
897
  if (u.isResponse(t) || u.isReadableStream(t))
611
898
  return t;
612
- if (t && u.isString(t) && (s && !this.responseType || n)) {
613
- const a = !(r && r.silentJSONParsing) && n;
899
+ if (t && u.isString(t) && (n && !s || o)) {
900
+ const i = !(r && r.silentJSONParsing) && o;
614
901
  try {
615
- return JSON.parse(t, this.parseReviver);
616
- } catch (i) {
617
- if (a)
618
- throw i.name === "SyntaxError" ? A.from(i, A.ERR_BAD_RESPONSE, this, null, this.response) : i;
902
+ return JSON.parse(t, re(this, "parseReviver"));
903
+ } catch (l) {
904
+ if (i)
905
+ throw l.name === "SyntaxError" ? f.from(l, f.ERR_BAD_RESPONSE, this, null, re(this, "response")) : l;
619
906
  }
620
907
  }
621
908
  return t;
@@ -631,8 +918,8 @@ const oe = {
631
918
  maxContentLength: -1,
632
919
  maxBodyLength: -1,
633
920
  env: {
634
- FormData: L.classes.FormData,
635
- Blob: L.classes.Blob
921
+ FormData: V.classes.FormData,
922
+ Blob: V.classes.Blob
636
923
  },
637
924
  validateStatus: function(t) {
638
925
  return t >= 200 && t < 300;
@@ -644,248 +931,20 @@ const oe = {
644
931
  }
645
932
  }
646
933
  };
647
- u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
648
- oe.headers[e] = {};
649
- });
650
- const Mr = u.toObjectSet([
651
- "age",
652
- "authorization",
653
- "content-length",
654
- "content-type",
655
- "etag",
656
- "expires",
657
- "from",
658
- "host",
659
- "if-modified-since",
660
- "if-unmodified-since",
661
- "last-modified",
662
- "location",
663
- "max-forwards",
664
- "proxy-authorization",
665
- "referer",
666
- "retry-after",
667
- "user-agent"
668
- ]), vr = (e) => {
669
- const t = {};
670
- let r, s, n;
671
- return e && e.split(`
672
- `).forEach(function(a) {
673
- n = a.indexOf(":"), r = a.substring(0, n).trim().toLowerCase(), s = a.substring(n + 1).trim(), !(!r || t[r] && Mr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
674
- }), t;
675
- }, Je = /* @__PURE__ */ Symbol("internals"), jr = (e) => !/[\r\n]/.test(e);
676
- function It(e, t) {
677
- if (!(e === !1 || e == null)) {
678
- if (u.isArray(e)) {
679
- e.forEach((r) => It(r, t));
680
- return;
681
- }
682
- if (!jr(String(e)))
683
- throw new Error(`Invalid character in header content ["${t}"]`);
684
- }
685
- }
686
- function te(e) {
687
- return e && String(e).trim().toLowerCase();
688
- }
689
- function kr(e) {
690
- let t = e.length;
691
- for (; t > 0; ) {
692
- const r = e.charCodeAt(t - 1);
693
- if (r !== 10 && r !== 13)
694
- break;
695
- t -= 1;
696
- }
697
- return t === e.length ? e : e.slice(0, t);
698
- }
699
- function he(e) {
700
- return e === !1 || e == null ? e : u.isArray(e) ? e.map(he) : kr(String(e));
701
- }
702
- function Fr(e) {
703
- const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
704
- let s;
705
- for (; s = r.exec(e); )
706
- t[s[1]] = s[2];
707
- return t;
708
- }
709
- const qr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
710
- function be(e, t, r, s, n) {
711
- if (u.isFunction(s))
712
- return s.call(this, t, r);
713
- if (n && (t = r), !!u.isString(t)) {
714
- if (u.isString(s))
715
- return t.indexOf(s) !== -1;
716
- if (u.isRegExp(s))
717
- return s.test(t);
718
- }
719
- }
720
- function $r(e) {
721
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, s) => r.toUpperCase() + s);
722
- }
723
- function zr(e, t) {
724
- const r = u.toCamelCase(" " + t);
725
- ["get", "set", "has"].forEach((s) => {
726
- Object.defineProperty(e, s + r, {
727
- value: function(n, o, a) {
728
- return this[s].call(this, t, n, o, a);
729
- },
730
- configurable: !0
731
- });
732
- });
733
- }
734
- let U = class {
735
- constructor(t) {
736
- t && this.set(t);
737
- }
738
- set(t, r, s) {
739
- const n = this;
740
- function o(i, l, c) {
741
- const d = te(l);
742
- if (!d)
743
- throw new Error("header name must be a non-empty string");
744
- const p = u.findKey(n, d);
745
- (!p || n[p] === void 0 || c === !0 || c === void 0 && n[p] !== !1) && (It(i, l), n[p || l] = he(i));
746
- }
747
- const a = (i, l) => u.forEach(i, (c, d) => o(c, d, l));
748
- if (u.isPlainObject(t) || t instanceof this.constructor)
749
- a(t, r);
750
- else if (u.isString(t) && (t = t.trim()) && !qr(t))
751
- a(vr(t), r);
752
- else if (u.isObject(t) && u.isIterable(t)) {
753
- let i = {}, l, c;
754
- for (const d of t) {
755
- if (!u.isArray(d))
756
- throw TypeError("Object iterator must return a key-value pair");
757
- i[c = d[0]] = (l = i[c]) ? u.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
758
- }
759
- a(i, r);
760
- } else
761
- t != null && o(r, t, s);
762
- return this;
763
- }
764
- get(t, r) {
765
- if (t = te(t), t) {
766
- const s = u.findKey(this, t);
767
- if (s) {
768
- const n = this[s];
769
- if (!r)
770
- return n;
771
- if (r === !0)
772
- return Fr(n);
773
- if (u.isFunction(r))
774
- return r.call(this, n, s);
775
- if (u.isRegExp(r))
776
- return r.exec(n);
777
- throw new TypeError("parser must be boolean|regexp|function");
778
- }
779
- }
780
- }
781
- has(t, r) {
782
- if (t = te(t), t) {
783
- const s = u.findKey(this, t);
784
- return !!(s && this[s] !== void 0 && (!r || be(this, this[s], s, r)));
785
- }
786
- return !1;
787
- }
788
- delete(t, r) {
789
- const s = this;
790
- let n = !1;
791
- function o(a) {
792
- if (a = te(a), a) {
793
- const i = u.findKey(s, a);
794
- i && (!r || be(s, s[i], i, r)) && (delete s[i], n = !0);
795
- }
796
- }
797
- return u.isArray(t) ? t.forEach(o) : o(t), n;
798
- }
799
- clear(t) {
800
- const r = Object.keys(this);
801
- let s = r.length, n = !1;
802
- for (; s--; ) {
803
- const o = r[s];
804
- (!t || be(this, this[o], o, t, !0)) && (delete this[o], n = !0);
805
- }
806
- return n;
807
- }
808
- normalize(t) {
809
- const r = this, s = {};
810
- return u.forEach(this, (n, o) => {
811
- const a = u.findKey(s, o);
812
- if (a) {
813
- r[a] = he(n), delete r[o];
814
- return;
815
- }
816
- const i = t ? $r(o) : String(o).trim();
817
- i !== o && delete r[o], r[i] = he(n), s[i] = !0;
818
- }), this;
819
- }
820
- concat(...t) {
821
- return this.constructor.concat(this, ...t);
822
- }
823
- toJSON(t) {
824
- const r = /* @__PURE__ */ Object.create(null);
825
- return u.forEach(this, (s, n) => {
826
- s != null && s !== !1 && (r[n] = t && u.isArray(s) ? s.join(", ") : s);
827
- }), r;
828
- }
829
- [Symbol.iterator]() {
830
- return Object.entries(this.toJSON())[Symbol.iterator]();
831
- }
832
- toString() {
833
- return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
834
- `);
835
- }
836
- getSetCookie() {
837
- return this.get("set-cookie") || [];
838
- }
839
- get [Symbol.toStringTag]() {
840
- return "AxiosHeaders";
841
- }
842
- static from(t) {
843
- return t instanceof this ? t : new this(t);
844
- }
845
- static concat(t, ...r) {
846
- const s = new this(t);
847
- return r.forEach((n) => s.set(n)), s;
848
- }
849
- static accessor(t) {
850
- const s = (this[Je] = this[Je] = {
851
- accessors: {}
852
- }).accessors, n = this.prototype;
853
- function o(a) {
854
- const i = te(a);
855
- s[i] || (zr(n, a), s[i] = !0);
856
- }
857
- return u.isArray(t) ? t.forEach(o) : o(t), this;
858
- }
859
- };
860
- U.accessor([
861
- "Content-Type",
862
- "Content-Length",
863
- "Accept",
864
- "Accept-Encoding",
865
- "User-Agent",
866
- "Authorization"
867
- ]);
868
- u.reduceDescriptors(U.prototype, ({ value: e }, t) => {
869
- let r = t[0].toUpperCase() + t.slice(1);
870
- return {
871
- get: () => e,
872
- set(s) {
873
- this[r] = s;
874
- }
875
- };
934
+ u.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => {
935
+ fe.headers[e] = {};
876
936
  });
877
- u.freezeMethods(U);
878
- function we(e, t) {
879
- const r = this || oe, s = t || r, n = U.from(s.headers);
880
- let o = s.data;
937
+ function He(e, t) {
938
+ const r = this || fe, n = t || r, s = U.from(n.headers);
939
+ let o = n.data;
881
940
  return u.forEach(e, function(i) {
882
- o = i.call(r, o, n.normalize(), t ? t.status : void 0);
883
- }), n.normalize(), o;
941
+ o = i.call(r, o, s.normalize(), t ? t.status : void 0);
942
+ }), s.normalize(), o;
884
943
  }
885
- function St(e) {
944
+ function Nt(e) {
886
945
  return !!(e && e.__CANCEL__);
887
946
  }
888
- let ae = class extends A {
947
+ let Ee = class extends f {
889
948
  /**
890
949
  * A `CanceledError` is an object that is thrown when an operation is canceled.
891
950
  *
@@ -895,98 +954,101 @@ let ae = class extends A {
895
954
  *
896
955
  * @returns {CanceledError} The created error.
897
956
  */
898
- constructor(t, r, s) {
899
- super(t ?? "canceled", A.ERR_CANCELED, r, s), this.name = "CanceledError", this.__CANCEL__ = !0;
957
+ constructor(t, r, n) {
958
+ super(t ?? "canceled", f.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
900
959
  }
901
960
  };
902
- function bt(e, t, r) {
903
- const s = r.config.validateStatus;
904
- !r.status || !s || s(r.status) ? e(r) : t(
905
- new A(
906
- "Request failed with status code " + r.status,
907
- [A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
908
- r.config,
909
- r.request,
910
- r
911
- )
912
- );
961
+ function xt(e, t, r) {
962
+ const n = r.config.validateStatus;
963
+ !r.status || !n || n(r.status) ? e(r) : t(new f(
964
+ "Request failed with status code " + r.status,
965
+ r.status >= 400 && r.status < 500 ? f.ERR_BAD_REQUEST : f.ERR_BAD_RESPONSE,
966
+ r.config,
967
+ r.request,
968
+ r
969
+ ));
913
970
  }
914
- function Wr(e) {
915
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
971
+ function sn(e) {
972
+ const t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
916
973
  return t && t[1] || "";
917
974
  }
918
- function Yr(e, t) {
975
+ function on(e, t) {
919
976
  e = e || 10;
920
- const r = new Array(e), s = new Array(e);
921
- let n = 0, o = 0, a;
977
+ const r = new Array(e), n = new Array(e);
978
+ let s = 0, o = 0, a;
922
979
  return t = t !== void 0 ? t : 1e3, function(l) {
923
- const c = Date.now(), d = s[o];
924
- a || (a = c), r[n] = l, s[n] = c;
980
+ const c = Date.now(), d = n[o];
981
+ a || (a = c), r[s] = l, n[s] = c;
925
982
  let p = o, _ = 0;
926
- for (; p !== n; )
983
+ for (; p !== s; )
927
984
  _ += r[p++], p = p % e;
928
- if (n = (n + 1) % e, n === o && (o = (o + 1) % e), c - a < t)
985
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), c - a < t)
929
986
  return;
930
- const C = d && c - d;
931
- return C ? Math.round(_ * 1e3 / C) : void 0;
987
+ const R = d && c - d;
988
+ return R ? Math.round(_ * 1e3 / R) : void 0;
932
989
  };
933
990
  }
934
- function Xr(e, t) {
935
- let r = 0, s = 1e3 / t, n, o;
991
+ function an(e, t) {
992
+ let r = 0, n = 1e3 / t, s, o;
936
993
  const a = (c, d = Date.now()) => {
937
- r = d, n = null, o && (clearTimeout(o), o = null), e(...c);
994
+ r = d, s = null, o && (clearTimeout(o), o = null), e(...c);
938
995
  };
939
996
  return [(...c) => {
940
997
  const d = Date.now(), p = d - r;
941
- p >= s ? a(c, d) : (n = c, o || (o = setTimeout(() => {
942
- o = null, a(n);
943
- }, s - p)));
944
- }, () => n && a(n)];
998
+ p >= n ? a(c, d) : (s = c, o || (o = setTimeout(() => {
999
+ o = null, a(s);
1000
+ }, n - p)));
1001
+ }, () => s && a(s)];
945
1002
  }
946
- const Ee = (e, t, r = 3) => {
947
- let s = 0;
948
- const n = Yr(50, 250);
949
- return Xr((o) => {
950
- const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = n(l), d = a <= i;
951
- s = a;
1003
+ const Se = (e, t, r = 3) => {
1004
+ let n = 0;
1005
+ const s = on(50, 250);
1006
+ return an((o) => {
1007
+ const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = i != null ? Math.min(a, i) : a, c = Math.max(0, l - n), d = s(c);
1008
+ n = Math.max(n, l);
952
1009
  const p = {
953
- loaded: a,
1010
+ loaded: l,
954
1011
  total: i,
955
- progress: i ? a / i : void 0,
956
- bytes: l,
957
- rate: c || void 0,
958
- estimated: c && i && d ? (i - a) / c : void 0,
1012
+ progress: i ? l / i : void 0,
1013
+ bytes: c,
1014
+ rate: d || void 0,
1015
+ estimated: d && i ? (i - l) / d : void 0,
959
1016
  event: o,
960
1017
  lengthComputable: i != null,
961
1018
  [t ? "download" : "upload"]: !0
962
1019
  };
963
1020
  e(p);
964
1021
  }, r);
965
- }, Ze = (e, t) => {
1022
+ }, it = (e, t) => {
966
1023
  const r = e != null;
967
1024
  return [
968
- (s) => t[0]({
1025
+ (n) => t[0]({
969
1026
  lengthComputable: r,
970
1027
  total: e,
971
- loaded: s
1028
+ loaded: n
972
1029
  }),
973
1030
  t[1]
974
1031
  ];
975
- }, Ke = (e) => (...t) => u.asap(() => e(...t)), Jr = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, L.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
976
- new URL(L.origin),
977
- L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
978
- ) : () => !0, Zr = L.hasStandardBrowserEnv ? (
1032
+ }, lt = (e) => (...t) => u.asap(() => e(...t)), ln = V.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, V.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
1033
+ new URL(V.origin),
1034
+ V.navigator && /(msie|trident)/i.test(V.navigator.userAgent)
1035
+ ) : () => !0, cn = V.hasStandardBrowserEnv ? (
979
1036
  // Standard browser envs support document.cookie
980
1037
  {
981
- write(e, t, r, s, n, o, a) {
1038
+ write(e, t, r, n, s, o, a) {
982
1039
  if (typeof document > "u") return;
983
1040
  const i = [`${e}=${encodeURIComponent(t)}`];
984
- u.isNumber(r) && i.push(`expires=${new Date(r).toUTCString()}`), u.isString(s) && i.push(`path=${s}`), u.isString(n) && i.push(`domain=${n}`), o === !0 && i.push("secure"), u.isString(a) && i.push(`SameSite=${a}`), document.cookie = i.join("; ");
1041
+ u.isNumber(r) && i.push(`expires=${new Date(r).toUTCString()}`), u.isString(n) && i.push(`path=${n}`), u.isString(s) && i.push(`domain=${s}`), o === !0 && i.push("secure"), u.isString(a) && i.push(`SameSite=${a}`), document.cookie = i.join("; ");
985
1042
  },
986
1043
  read(e) {
987
1044
  if (typeof document > "u") return null;
988
- const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
989
- return t ? decodeURIComponent(t[1]) : null;
1045
+ const t = document.cookie.split(";");
1046
+ for (let r = 0; r < t.length; r++) {
1047
+ const n = t[r].replace(/^\s+/, ""), s = n.indexOf("=");
1048
+ if (s !== -1 && n.slice(0, s) === e)
1049
+ return decodeURIComponent(n.slice(s + 1));
1050
+ }
1051
+ return null;
990
1052
  },
991
1053
  remove(e) {
992
1054
  this.write(e, "", Date.now() - 864e5, "/");
@@ -1004,44 +1066,53 @@ const Ee = (e, t, r = 3) => {
1004
1066
  }
1005
1067
  }
1006
1068
  );
1007
- function Kr(e) {
1069
+ function dn(e) {
1008
1070
  return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1009
1071
  }
1010
- function Qr(e, t) {
1072
+ function un(e, t) {
1011
1073
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1012
1074
  }
1013
- function wt(e, t, r) {
1014
- let s = !Kr(t);
1015
- return e && (s || r == !1) ? Qr(e, t) : t;
1075
+ function Vt(e, t, r) {
1076
+ let n = !dn(t);
1077
+ return e && (n || r === !1) ? un(e, t) : t;
1016
1078
  }
1017
- const Qe = (e) => e instanceof U ? { ...e } : e;
1018
- function Y(e, t) {
1079
+ const ct = (e) => e instanceof U ? { ...e } : e;
1080
+ function ee(e, t) {
1019
1081
  t = t || {};
1020
- const r = {};
1021
- function s(c, d, p, _) {
1082
+ const r = /* @__PURE__ */ Object.create(null);
1083
+ Object.defineProperty(r, "hasOwnProperty", {
1084
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
1085
+ // this data descriptor into an accessor descriptor on the way in.
1086
+ __proto__: null,
1087
+ value: Object.prototype.hasOwnProperty,
1088
+ enumerable: !1,
1089
+ writable: !0,
1090
+ configurable: !0
1091
+ });
1092
+ function n(c, d, p, _) {
1022
1093
  return u.isPlainObject(c) && u.isPlainObject(d) ? u.merge.call({ caseless: _ }, c, d) : u.isPlainObject(d) ? u.merge({}, d) : u.isArray(d) ? d.slice() : d;
1023
1094
  }
1024
- function n(c, d, p, _) {
1095
+ function s(c, d, p, _) {
1025
1096
  if (u.isUndefined(d)) {
1026
1097
  if (!u.isUndefined(c))
1027
- return s(void 0, c, p, _);
1028
- } else return s(c, d, p, _);
1098
+ return n(void 0, c, p, _);
1099
+ } else return n(c, d, p, _);
1029
1100
  }
1030
1101
  function o(c, d) {
1031
1102
  if (!u.isUndefined(d))
1032
- return s(void 0, d);
1103
+ return n(void 0, d);
1033
1104
  }
1034
1105
  function a(c, d) {
1035
1106
  if (u.isUndefined(d)) {
1036
1107
  if (!u.isUndefined(c))
1037
- return s(void 0, c);
1038
- } else return s(void 0, d);
1108
+ return n(void 0, c);
1109
+ } else return n(void 0, d);
1039
1110
  }
1040
1111
  function i(c, d, p) {
1041
- if (p in t)
1042
- return s(c, d);
1043
- if (p in e)
1044
- return s(void 0, c);
1112
+ if (u.hasOwnProp(t, p))
1113
+ return n(c, d);
1114
+ if (u.hasOwnProp(e, p))
1115
+ return n(void 0, c);
1045
1116
  }
1046
1117
  const l = {
1047
1118
  url: o,
@@ -1070,128 +1141,133 @@ function Y(e, t) {
1070
1141
  httpsAgent: a,
1071
1142
  cancelToken: a,
1072
1143
  socketPath: a,
1144
+ allowedSocketPaths: a,
1073
1145
  responseEncoding: a,
1074
1146
  validateStatus: i,
1075
- headers: (c, d, p) => n(Qe(c), Qe(d), p, !0)
1147
+ headers: (c, d, p) => s(ct(c), ct(d), p, !0)
1076
1148
  };
1077
1149
  return u.forEach(Object.keys({ ...e, ...t }), function(d) {
1078
1150
  if (d === "__proto__" || d === "constructor" || d === "prototype") return;
1079
- const p = u.hasOwnProp(l, d) ? l[d] : n, _ = p(e[d], t[d], d);
1080
- u.isUndefined(_) && p !== i || (r[d] = _);
1151
+ const p = u.hasOwnProp(l, d) ? l[d] : s, _ = u.hasOwnProp(e, d) ? e[d] : void 0, R = u.hasOwnProp(t, d) ? t[d] : void 0, m = p(_, R, d);
1152
+ u.isUndefined(m) && p !== i || (r[d] = m);
1081
1153
  }), r;
1082
1154
  }
1083
- const yt = (e) => {
1084
- const t = Y({}, e);
1085
- let { data: r, withXSRFToken: s, xsrfHeaderName: n, xsrfCookieName: o, headers: a, auth: i } = t;
1086
- if (t.headers = a = U.from(a), t.url = Tt(
1087
- wt(t.baseURL, t.url, t.allowAbsoluteUrls),
1155
+ const pn = ["content-type", "content-length"];
1156
+ function hn(e, t, r) {
1157
+ if (r !== "content-only") {
1158
+ e.set(t);
1159
+ return;
1160
+ }
1161
+ Object.entries(t).forEach(([n, s]) => {
1162
+ pn.includes(n.toLowerCase()) && e.set(n, s);
1163
+ });
1164
+ }
1165
+ const fn = (e) => encodeURIComponent(e).replace(
1166
+ /%([0-9A-F]{2})/gi,
1167
+ (t, r) => String.fromCharCode(parseInt(r, 16))
1168
+ ), Ut = (e) => {
1169
+ const t = ee({}, e), r = (_) => u.hasOwnProp(t, _) ? t[_] : void 0, n = r("data");
1170
+ let s = r("withXSRFToken");
1171
+ const o = r("xsrfHeaderName"), a = r("xsrfCookieName");
1172
+ let i = r("headers");
1173
+ const l = r("auth"), c = r("baseURL"), d = r("allowAbsoluteUrls"), p = r("url");
1174
+ if (t.headers = i = U.from(i), t.url = Lt(
1175
+ Vt(c, p, d),
1088
1176
  e.params,
1089
1177
  e.paramsSerializer
1090
- ), i && a.set(
1178
+ ), l && i.set(
1091
1179
  "Authorization",
1092
- "Basic " + btoa(
1093
- (i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : "")
1094
- )
1095
- ), u.isFormData(r)) {
1096
- if (L.hasStandardBrowserEnv || L.hasStandardBrowserWebWorkerEnv)
1097
- a.setContentType(void 0);
1098
- else if (u.isFunction(r.getHeaders)) {
1099
- const l = r.getHeaders(), c = ["content-type", "content-length"];
1100
- Object.entries(l).forEach(([d, p]) => {
1101
- c.includes(d.toLowerCase()) && a.set(d, p);
1102
- });
1103
- }
1104
- }
1105
- if (L.hasStandardBrowserEnv && (s && u.isFunction(s) && (s = s(t)), s || s !== !1 && Jr(t.url))) {
1106
- const l = n && o && Zr.read(o);
1107
- l && a.set(n, l);
1180
+ "Basic " + btoa((l.username || "") + ":" + (l.password ? fn(l.password) : ""))
1181
+ ), u.isFormData(n) && (V.hasStandardBrowserEnv || V.hasStandardBrowserWebWorkerEnv ? i.setContentType(void 0) : u.isFunction(n.getHeaders) && hn(i, n.getHeaders(), r("formDataHeaderPolicy"))), V.hasStandardBrowserEnv && (u.isFunction(s) && (s = s(t)), s === !0 || s == null && ln(t.url))) {
1182
+ const R = o && a && cn.read(a);
1183
+ R && i.set(o, R);
1108
1184
  }
1109
1185
  return t;
1110
- }, es = typeof XMLHttpRequest < "u", ts = es && function(e) {
1111
- return new Promise(function(r, s) {
1112
- const n = yt(e);
1113
- let o = n.data;
1114
- const a = U.from(n.headers).normalize();
1115
- let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = n, d, p, _, C, h;
1186
+ }, En = typeof XMLHttpRequest < "u", An = En && function(e) {
1187
+ return new Promise(function(r, n) {
1188
+ const s = Ut(e);
1189
+ let o = s.data;
1190
+ const a = U.from(s.headers).normalize();
1191
+ let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = s, d, p, _, R, m;
1116
1192
  function E() {
1117
- C && C(), h && h(), n.cancelToken && n.cancelToken.unsubscribe(d), n.signal && n.signal.removeEventListener("abort", d);
1193
+ R && R(), m && m(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
1118
1194
  }
1119
- let f = new XMLHttpRequest();
1120
- f.open(n.method.toUpperCase(), n.url, !0), f.timeout = n.timeout;
1121
- function w() {
1122
- if (!f)
1195
+ let h = new XMLHttpRequest();
1196
+ h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1197
+ function A() {
1198
+ if (!h)
1123
1199
  return;
1124
- const y = U.from(
1125
- "getAllResponseHeaders" in f && f.getAllResponseHeaders()
1126
- ), H = {
1127
- data: !i || i === "text" || i === "json" ? f.responseText : f.response,
1128
- status: f.status,
1129
- statusText: f.statusText,
1130
- headers: y,
1200
+ const P = U.from(
1201
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1202
+ ), B = {
1203
+ data: !i || i === "text" || i === "json" ? h.responseText : h.response,
1204
+ status: h.status,
1205
+ statusText: h.statusText,
1206
+ headers: P,
1131
1207
  config: e,
1132
- request: f
1208
+ request: h
1133
1209
  };
1134
- bt(
1135
- function(D) {
1136
- r(D), E();
1210
+ xt(
1211
+ function(ie) {
1212
+ r(ie), E();
1137
1213
  },
1138
- function(D) {
1139
- s(D), E();
1214
+ function(ie) {
1215
+ n(ie), E();
1140
1216
  },
1141
- H
1142
- ), f = null;
1217
+ B
1218
+ ), h = null;
1143
1219
  }
1144
- "onloadend" in f ? f.onloadend = w : f.onreadystatechange = function() {
1145
- !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(w);
1146
- }, f.onabort = function() {
1147
- f && (s(new A("Request aborted", A.ECONNABORTED, e, f)), f = null);
1148
- }, f.onerror = function(g) {
1149
- const H = g && g.message ? g.message : "Network Error", F = new A(H, A.ERR_NETWORK, e, f);
1150
- F.event = g || null, s(F), f = null;
1151
- }, f.ontimeout = function() {
1152
- let g = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1153
- const H = n.transitional || Be;
1154
- n.timeoutErrorMessage && (g = n.timeoutErrorMessage), s(
1155
- new A(
1156
- g,
1157
- H.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
1220
+ "onloadend" in h ? h.onloadend = A : h.onreadystatechange = function() {
1221
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.startsWith("file:")) || setTimeout(A);
1222
+ }, h.onabort = function() {
1223
+ h && (n(new f("Request aborted", f.ECONNABORTED, e, h)), E(), h = null);
1224
+ }, h.onerror = function(T) {
1225
+ const B = T && T.message ? T.message : "Network Error", X = new f(B, f.ERR_NETWORK, e, h);
1226
+ X.event = T || null, n(X), E(), h = null;
1227
+ }, h.ontimeout = function() {
1228
+ let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1229
+ const B = s.transitional || We;
1230
+ s.timeoutErrorMessage && (T = s.timeoutErrorMessage), n(
1231
+ new f(
1232
+ T,
1233
+ B.clarifyTimeoutError ? f.ETIMEDOUT : f.ECONNABORTED,
1158
1234
  e,
1159
- f
1235
+ h
1160
1236
  )
1161
- ), f = null;
1162
- }, o === void 0 && a.setContentType(null), "setRequestHeader" in f && u.forEach(a.toJSON(), function(g, H) {
1163
- f.setRequestHeader(H, g);
1164
- }), u.isUndefined(n.withCredentials) || (f.withCredentials = !!n.withCredentials), i && i !== "json" && (f.responseType = n.responseType), c && ([_, h] = Ee(c, !0), f.addEventListener("progress", _)), l && f.upload && ([p, C] = Ee(l), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", C)), (n.cancelToken || n.signal) && (d = (y) => {
1165
- f && (s(!y || y.type ? new ae(null, e, f) : y), f.abort(), f = null);
1166
- }, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
1167
- const x = Wr(n.url);
1168
- if (x && L.protocols.indexOf(x) === -1) {
1169
- s(
1170
- new A(
1171
- "Unsupported protocol " + x + ":",
1172
- A.ERR_BAD_REQUEST,
1237
+ ), E(), h = null;
1238
+ }, o === void 0 && a.setContentType(null), "setRequestHeader" in h && u.forEach(a.toJSON(), function(T, B) {
1239
+ h.setRequestHeader(B, T);
1240
+ }), u.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), i && i !== "json" && (h.responseType = s.responseType), c && ([_, m] = Se(c, !0), h.addEventListener("progress", _)), l && h.upload && ([p, R] = Se(l), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (d = (P) => {
1241
+ h && (n(!P || P.type ? new Ee(null, e, h) : P), h.abort(), E(), h = null);
1242
+ }, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
1243
+ const S = sn(s.url);
1244
+ if (S && !V.protocols.includes(S)) {
1245
+ n(
1246
+ new f(
1247
+ "Unsupported protocol " + S + ":",
1248
+ f.ERR_BAD_REQUEST,
1173
1249
  e
1174
1250
  )
1175
1251
  );
1176
1252
  return;
1177
1253
  }
1178
- f.send(o || null);
1254
+ h.send(o || null);
1179
1255
  });
1180
- }, rs = (e, t) => {
1256
+ }, On = (e, t) => {
1181
1257
  const { length: r } = e = e ? e.filter(Boolean) : [];
1182
1258
  if (t || r) {
1183
- let s = new AbortController(), n;
1259
+ let n = new AbortController(), s;
1184
1260
  const o = function(c) {
1185
- if (!n) {
1186
- n = !0, i();
1261
+ if (!s) {
1262
+ s = !0, i();
1187
1263
  const d = c instanceof Error ? c : this.reason;
1188
- s.abort(
1189
- d instanceof A ? d : new ae(d instanceof Error ? d.message : d)
1264
+ n.abort(
1265
+ d instanceof f ? d : new Ee(d instanceof Error ? d.message : d)
1190
1266
  );
1191
1267
  }
1192
1268
  };
1193
1269
  let a = t && setTimeout(() => {
1194
- a = null, o(new A(`timeout of ${t}ms exceeded`, A.ETIMEDOUT));
1270
+ a = null, o(new f(`timeout of ${t}ms exceeded`, f.ETIMEDOUT));
1195
1271
  }, t);
1196
1272
  const i = () => {
1197
1273
  e && (a && clearTimeout(a), a = null, e.forEach((c) => {
@@ -1199,22 +1275,22 @@ const yt = (e) => {
1199
1275
  }), e = null);
1200
1276
  };
1201
1277
  e.forEach((c) => c.addEventListener("abort", o));
1202
- const { signal: l } = s;
1278
+ const { signal: l } = n;
1203
1279
  return l.unsubscribe = () => u.asap(i), l;
1204
1280
  }
1205
- }, ss = function* (e, t) {
1281
+ }, _n = function* (e, t) {
1206
1282
  let r = e.byteLength;
1207
1283
  if (r < t) {
1208
1284
  yield e;
1209
1285
  return;
1210
1286
  }
1211
- let s = 0, n;
1212
- for (; s < r; )
1213
- n = s + t, yield e.slice(s, n), s = n;
1214
- }, ns = async function* (e, t) {
1215
- for await (const r of os(e))
1216
- yield* ss(r, t);
1217
- }, os = async function* (e) {
1287
+ let n = 0, s;
1288
+ for (; n < r; )
1289
+ s = n + t, yield e.slice(n, s), n = s;
1290
+ }, Rn = async function* (e, t) {
1291
+ for await (const r of mn(e))
1292
+ yield* _n(r, t);
1293
+ }, mn = async function* (e) {
1218
1294
  if (e[Symbol.asyncIterator]) {
1219
1295
  yield* e;
1220
1296
  return;
@@ -1222,24 +1298,24 @@ const yt = (e) => {
1222
1298
  const t = e.getReader();
1223
1299
  try {
1224
1300
  for (; ; ) {
1225
- const { done: r, value: s } = await t.read();
1301
+ const { done: r, value: n } = await t.read();
1226
1302
  if (r)
1227
1303
  break;
1228
- yield s;
1304
+ yield n;
1229
1305
  }
1230
1306
  } finally {
1231
1307
  await t.cancel();
1232
1308
  }
1233
- }, et = (e, t, r, s) => {
1234
- const n = ns(e, t);
1309
+ }, dt = (e, t, r, n) => {
1310
+ const s = Rn(e, t);
1235
1311
  let o = 0, a, i = (l) => {
1236
- a || (a = !0, s && s(l));
1312
+ a || (a = !0, n && n(l));
1237
1313
  };
1238
1314
  return new ReadableStream(
1239
1315
  {
1240
1316
  async pull(l) {
1241
1317
  try {
1242
- const { done: c, value: d } = await n.next();
1318
+ const { done: c, value: d } = await s.next();
1243
1319
  if (c) {
1244
1320
  i(), l.close();
1245
1321
  return;
@@ -1255,315 +1331,432 @@ const yt = (e) => {
1255
1331
  }
1256
1332
  },
1257
1333
  cancel(l) {
1258
- return i(l), n.return();
1334
+ return i(l), s.return();
1259
1335
  }
1260
1336
  },
1261
1337
  {
1262
1338
  highWaterMark: 2
1263
1339
  }
1264
1340
  );
1265
- }, tt = 64 * 1024, { isFunction: de } = u, as = (({ Request: e, Response: t }) => ({
1266
- Request: e,
1267
- Response: t
1268
- }))(u.global), { ReadableStream: rt, TextEncoder: st } = u.global, nt = (e, ...t) => {
1341
+ };
1342
+ function Tn(e) {
1343
+ if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
1344
+ const t = e.indexOf(",");
1345
+ if (t < 0) return 0;
1346
+ const r = e.slice(5, t), n = e.slice(t + 1);
1347
+ if (/;base64/i.test(r)) {
1348
+ let a = n.length;
1349
+ const i = n.length;
1350
+ for (let R = 0; R < i; R++)
1351
+ if (n.charCodeAt(R) === 37 && R + 2 < i) {
1352
+ const m = n.charCodeAt(R + 1), E = n.charCodeAt(R + 2);
1353
+ (m >= 48 && m <= 57 || m >= 65 && m <= 70 || m >= 97 && m <= 102) && (E >= 48 && E <= 57 || E >= 65 && E <= 70 || E >= 97 && E <= 102) && (a -= 2, R += 2);
1354
+ }
1355
+ let l = 0, c = i - 1;
1356
+ const d = (R) => R >= 2 && n.charCodeAt(R - 2) === 37 && // '%'
1357
+ n.charCodeAt(R - 1) === 51 && // '3'
1358
+ (n.charCodeAt(R) === 68 || n.charCodeAt(R) === 100);
1359
+ c >= 0 && (n.charCodeAt(c) === 61 ? (l++, c--) : d(c) && (l++, c -= 3)), l === 1 && c >= 0 && (n.charCodeAt(c) === 61 || d(c)) && l++;
1360
+ const _ = Math.floor(a / 4) * 3 - (l || 0);
1361
+ return _ > 0 ? _ : 0;
1362
+ }
1363
+ if (typeof Buffer < "u" && typeof Buffer.byteLength == "function")
1364
+ return Buffer.byteLength(n, "utf8");
1365
+ let o = 0;
1366
+ for (let a = 0, i = n.length; a < i; a++) {
1367
+ const l = n.charCodeAt(a);
1368
+ if (l < 128)
1369
+ o += 1;
1370
+ else if (l < 2048)
1371
+ o += 2;
1372
+ else if (l >= 55296 && l <= 56319 && a + 1 < i) {
1373
+ const c = n.charCodeAt(a + 1);
1374
+ c >= 56320 && c <= 57343 ? (o += 4, a++) : o += 3;
1375
+ } else
1376
+ o += 3;
1377
+ }
1378
+ return o;
1379
+ }
1380
+ const Ye = "1.16.0", ut = 64 * 1024, { isFunction: Re } = u, pt = (e, ...t) => {
1269
1381
  try {
1270
1382
  return !!e(...t);
1271
1383
  } catch {
1272
1384
  return !1;
1273
1385
  }
1274
- }, is = (e) => {
1386
+ }, Pn = (e) => {
1387
+ const t = u.global ?? globalThis, { ReadableStream: r, TextEncoder: n } = t;
1275
1388
  e = u.merge.call(
1276
1389
  {
1277
1390
  skipUndefined: !0
1278
1391
  },
1279
- as,
1392
+ {
1393
+ Request: t.Request,
1394
+ Response: t.Response
1395
+ },
1280
1396
  e
1281
1397
  );
1282
- const { fetch: t, Request: r, Response: s } = e, n = t ? de(t) : typeof fetch == "function", o = de(r), a = de(s);
1283
- if (!n)
1398
+ const { fetch: s, Request: o, Response: a } = e, i = s ? Re(s) : typeof fetch == "function", l = Re(o), c = Re(a);
1399
+ if (!i)
1284
1400
  return !1;
1285
- const i = n && de(rt), l = n && (typeof st == "function" ? /* @__PURE__ */ ((h) => (E) => h.encode(E))(new st()) : async (h) => new Uint8Array(await new r(h).arrayBuffer())), c = o && i && nt(() => {
1286
- let h = !1;
1287
- const E = new rt(), f = new r(L.origin, {
1288
- body: E,
1401
+ const d = i && Re(r), p = i && (typeof n == "function" ? /* @__PURE__ */ ((A) => (S) => A.encode(S))(new n()) : async (A) => new Uint8Array(await new o(A).arrayBuffer())), _ = l && d && pt(() => {
1402
+ let A = !1;
1403
+ const S = new o(V.origin, {
1404
+ body: new r(),
1289
1405
  method: "POST",
1290
1406
  get duplex() {
1291
- return h = !0, "half";
1407
+ return A = !0, "half";
1292
1408
  }
1293
- }).headers.has("Content-Type");
1294
- return E.cancel(), h && !f;
1295
- }), d = a && i && nt(() => u.isReadableStream(new s("").body)), p = {
1296
- stream: d && ((h) => h.body)
1409
+ }), P = S.headers.has("Content-Type");
1410
+ return S.body != null && S.body.cancel(), A && !P;
1411
+ }), R = c && d && pt(() => u.isReadableStream(new a("").body)), m = {
1412
+ stream: R && ((A) => A.body)
1297
1413
  };
1298
- n && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
1299
- !p[h] && (p[h] = (E, f) => {
1300
- let w = E && E[h];
1301
- if (w)
1302
- return w.call(E);
1303
- throw new A(
1304
- `Response type '${h}' is not supported`,
1305
- A.ERR_NOT_SUPPORT,
1306
- f
1414
+ i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((A) => {
1415
+ !m[A] && (m[A] = (S, P) => {
1416
+ let T = S && S[A];
1417
+ if (T)
1418
+ return T.call(S);
1419
+ throw new f(
1420
+ `Response type '${A}' is not supported`,
1421
+ f.ERR_NOT_SUPPORT,
1422
+ P
1307
1423
  );
1308
1424
  });
1309
1425
  });
1310
- const _ = async (h) => {
1311
- if (h == null)
1426
+ const E = async (A) => {
1427
+ if (A == null)
1312
1428
  return 0;
1313
- if (u.isBlob(h))
1314
- return h.size;
1315
- if (u.isSpecCompliantForm(h))
1316
- return (await new r(L.origin, {
1429
+ if (u.isBlob(A))
1430
+ return A.size;
1431
+ if (u.isSpecCompliantForm(A))
1432
+ return (await new o(V.origin, {
1317
1433
  method: "POST",
1318
- body: h
1434
+ body: A
1319
1435
  }).arrayBuffer()).byteLength;
1320
- if (u.isArrayBufferView(h) || u.isArrayBuffer(h))
1321
- return h.byteLength;
1322
- if (u.isURLSearchParams(h) && (h = h + ""), u.isString(h))
1323
- return (await l(h)).byteLength;
1324
- }, C = async (h, E) => {
1325
- const f = u.toFiniteNumber(h.getContentLength());
1326
- return f ?? _(E);
1436
+ if (u.isArrayBufferView(A) || u.isArrayBuffer(A))
1437
+ return A.byteLength;
1438
+ if (u.isURLSearchParams(A) && (A = A + ""), u.isString(A))
1439
+ return (await p(A)).byteLength;
1440
+ }, h = async (A, S) => {
1441
+ const P = u.toFiniteNumber(A.getContentLength());
1442
+ return P ?? E(S);
1327
1443
  };
1328
- return async (h) => {
1444
+ return async (A) => {
1329
1445
  let {
1330
- url: E,
1331
- method: f,
1332
- data: w,
1333
- signal: x,
1334
- cancelToken: y,
1335
- timeout: g,
1336
- onDownloadProgress: H,
1337
- onUploadProgress: F,
1338
- responseType: D,
1339
- headers: Pe,
1340
- withCredentials: ie = "same-origin",
1341
- fetchOptions: Me
1342
- } = yt(h), ve = t || fetch;
1343
- D = D ? (D + "").toLowerCase() : "text";
1344
- let le = rs(
1345
- [x, y && y.toAbortSignal()],
1346
- g
1347
- ), ee = null;
1348
- const q = le && le.unsubscribe && (() => {
1349
- le.unsubscribe();
1446
+ url: S,
1447
+ method: P,
1448
+ data: T,
1449
+ signal: B,
1450
+ cancelToken: X,
1451
+ timeout: ie,
1452
+ onDownloadProgress: xe,
1453
+ onUploadProgress: Ze,
1454
+ responseType: z,
1455
+ headers: Y,
1456
+ withCredentials: Ae = "same-origin",
1457
+ fetchOptions: Ke,
1458
+ maxContentLength: v,
1459
+ maxBodyLength: Ve
1460
+ } = Ut(A);
1461
+ const le = u.isNumber(v) && v > -1, vt = u.isNumber(Ve) && Ve > -1;
1462
+ let Qe = s || fetch;
1463
+ z = z ? (z + "").toLowerCase() : "text";
1464
+ let $ = On(
1465
+ [B, X && X.toAbortSignal()],
1466
+ ie
1467
+ ), H = null;
1468
+ const J = $ && $.unsubscribe && (() => {
1469
+ $.unsubscribe();
1350
1470
  });
1351
- let je;
1471
+ let et;
1352
1472
  try {
1353
- if (F && c && f !== "get" && f !== "head" && (je = await C(Pe, w)) !== 0) {
1354
- let k = new r(E, {
1473
+ if (le && typeof S == "string" && S.startsWith("data:") && Tn(S) > v)
1474
+ throw new f(
1475
+ "maxContentLength size of " + v + " exceeded",
1476
+ f.ERR_BAD_RESPONSE,
1477
+ A,
1478
+ H
1479
+ );
1480
+ if (vt && P !== "get" && P !== "head") {
1481
+ const b = await h(Y, T);
1482
+ if (typeof b == "number" && isFinite(b) && b > Ve)
1483
+ throw new f(
1484
+ "Request body larger than maxBodyLength limit",
1485
+ f.ERR_BAD_REQUEST,
1486
+ A,
1487
+ H
1488
+ );
1489
+ }
1490
+ if (Ze && _ && P !== "get" && P !== "head" && (et = await h(Y, T)) !== 0) {
1491
+ let b = new o(S, {
1355
1492
  method: "POST",
1356
- body: w,
1493
+ body: T,
1357
1494
  duplex: "half"
1358
- }), X;
1359
- if (u.isFormData(w) && (X = k.headers.get("content-type")) && Pe.setContentType(X), k.body) {
1360
- const [Ie, ce] = Ze(
1361
- je,
1362
- Ee(Ke(F))
1495
+ }), te;
1496
+ if (u.isFormData(T) && (te = b.headers.get("content-type")) && Y.setContentType(te), b.body) {
1497
+ const [Oe, _e] = it(
1498
+ et,
1499
+ Se(lt(Ze))
1363
1500
  );
1364
- w = et(k.body, tt, Ie, ce);
1501
+ T = dt(b.body, ut, Oe, _e);
1365
1502
  }
1366
1503
  }
1367
- u.isString(ie) || (ie = ie ? "include" : "omit");
1368
- const V = o && "credentials" in r.prototype, ke = {
1369
- ...Me,
1370
- signal: le,
1371
- method: f.toUpperCase(),
1372
- headers: Pe.normalize().toJSON(),
1373
- body: w,
1504
+ u.isString(Ae) || (Ae = Ae ? "include" : "omit");
1505
+ const x = l && "credentials" in o.prototype;
1506
+ if (u.isFormData(T)) {
1507
+ const b = Y.getContentType();
1508
+ b && /^multipart\/form-data/i.test(b) && !/boundary=/i.test(b) && Y.delete("content-type");
1509
+ }
1510
+ Y.set("User-Agent", "axios/" + Ye, !1);
1511
+ const W = {
1512
+ ...Ke,
1513
+ signal: $,
1514
+ method: P.toUpperCase(),
1515
+ headers: Y.normalize().toJSON(),
1516
+ body: T,
1374
1517
  duplex: "half",
1375
- credentials: V ? ie : void 0
1518
+ credentials: x ? Ae : void 0
1376
1519
  };
1377
- ee = o && new r(E, ke);
1378
- let j = await (o ? ve(ee, Me) : ve(E, ke));
1379
- const Fe = d && (D === "stream" || D === "response");
1380
- if (d && (H || Fe && q)) {
1381
- const k = {};
1382
- ["status", "statusText", "headers"].forEach((qe) => {
1383
- k[qe] = j[qe];
1520
+ H = l && new o(S, W);
1521
+ let j = await (l ? Qe(H, Ke) : Qe(S, W));
1522
+ if (le) {
1523
+ const b = u.toFiniteNumber(j.headers.get("content-length"));
1524
+ if (b != null && b > v)
1525
+ throw new f(
1526
+ "maxContentLength size of " + v + " exceeded",
1527
+ f.ERR_BAD_RESPONSE,
1528
+ A,
1529
+ H
1530
+ );
1531
+ }
1532
+ const Ue = R && (z === "stream" || z === "response");
1533
+ if (R && j.body && (xe || le || Ue && J)) {
1534
+ const b = {};
1535
+ ["status", "statusText", "headers"].forEach((ce) => {
1536
+ b[ce] = j[ce];
1384
1537
  });
1385
- const X = u.toFiniteNumber(j.headers.get("content-length")), [Ie, ce] = H && Ze(
1386
- X,
1387
- Ee(Ke(H), !0)
1538
+ const te = u.toFiniteNumber(j.headers.get("content-length")), [Oe, _e] = xe && it(
1539
+ te,
1540
+ Se(lt(xe), !0)
1388
1541
  ) || [];
1389
- j = new s(
1390
- et(j.body, tt, Ie, () => {
1391
- ce && ce(), q && q();
1542
+ let tt = 0;
1543
+ const jt = (ce) => {
1544
+ if (le && (tt = ce, tt > v))
1545
+ throw new f(
1546
+ "maxContentLength size of " + v + " exceeded",
1547
+ f.ERR_BAD_RESPONSE,
1548
+ A,
1549
+ H
1550
+ );
1551
+ Oe && Oe(ce);
1552
+ };
1553
+ j = new a(
1554
+ dt(j.body, ut, jt, () => {
1555
+ _e && _e(), J && J();
1392
1556
  }),
1393
- k
1557
+ b
1394
1558
  );
1395
1559
  }
1396
- D = D || "text";
1397
- let xt = await p[u.findKey(p, D) || "text"](
1560
+ z = z || "text";
1561
+ let k = await m[u.findKey(m, z) || "text"](
1398
1562
  j,
1399
- h
1563
+ A
1400
1564
  );
1401
- return !Fe && q && q(), await new Promise((k, X) => {
1402
- bt(k, X, {
1403
- data: xt,
1565
+ if (le && !R && !Ue) {
1566
+ let b;
1567
+ if (k != null && (typeof k.byteLength == "number" ? b = k.byteLength : typeof k.size == "number" ? b = k.size : typeof k == "string" && (b = typeof n == "function" ? new n().encode(k).byteLength : k.length)), typeof b == "number" && b > v)
1568
+ throw new f(
1569
+ "maxContentLength size of " + v + " exceeded",
1570
+ f.ERR_BAD_RESPONSE,
1571
+ A,
1572
+ H
1573
+ );
1574
+ }
1575
+ return !Ue && J && J(), await new Promise((b, te) => {
1576
+ xt(b, te, {
1577
+ data: k,
1404
1578
  headers: U.from(j.headers),
1405
1579
  status: j.status,
1406
1580
  statusText: j.statusText,
1407
- config: h,
1408
- request: ee
1581
+ config: A,
1582
+ request: H
1409
1583
  });
1410
1584
  });
1411
- } catch (V) {
1412
- throw q && q(), V && V.name === "TypeError" && /Load failed|fetch/i.test(V.message) ? Object.assign(
1413
- new A(
1585
+ } catch (x) {
1586
+ if (J && J(), $ && $.aborted && $.reason instanceof f) {
1587
+ const W = $.reason;
1588
+ throw W.config = A, H && (W.request = H), x !== W && (W.cause = x), W;
1589
+ }
1590
+ throw x && x.name === "TypeError" && /Load failed|fetch/i.test(x.message) ? Object.assign(
1591
+ new f(
1414
1592
  "Network Error",
1415
- A.ERR_NETWORK,
1416
- h,
1417
- ee,
1418
- V && V.response
1593
+ f.ERR_NETWORK,
1594
+ A,
1595
+ H,
1596
+ x && x.response
1419
1597
  ),
1420
1598
  {
1421
- cause: V.cause || V
1599
+ cause: x.cause || x
1422
1600
  }
1423
- ) : A.from(V, V && V.code, h, ee, V && V.response);
1601
+ ) : f.from(x, x && x.code, A, H, x && x.response);
1424
1602
  }
1425
1603
  };
1426
- }, ls = /* @__PURE__ */ new Map(), Ct = (e) => {
1604
+ }, In = /* @__PURE__ */ new Map(), Dt = (e) => {
1427
1605
  let t = e && e.env || {};
1428
- const { fetch: r, Request: s, Response: n } = t, o = [s, n, r];
1429
- let a = o.length, i = a, l, c, d = ls;
1606
+ const { fetch: r, Request: n, Response: s } = t, o = [n, s, r];
1607
+ let a = o.length, i = a, l, c, d = In;
1430
1608
  for (; i--; )
1431
- l = o[i], c = d.get(l), c === void 0 && d.set(l, c = i ? /* @__PURE__ */ new Map() : is(t)), d = c;
1609
+ l = o[i], c = d.get(l), c === void 0 && d.set(l, c = i ? /* @__PURE__ */ new Map() : Pn(t)), d = c;
1432
1610
  return c;
1433
1611
  };
1434
- Ct();
1435
- const Ge = {
1436
- http: Ir,
1437
- xhr: ts,
1612
+ Dt();
1613
+ const Je = {
1614
+ http: Fr,
1615
+ xhr: An,
1438
1616
  fetch: {
1439
- get: Ct
1617
+ get: Dt
1440
1618
  }
1441
1619
  };
1442
- u.forEach(Ge, (e, t) => {
1620
+ u.forEach(Je, (e, t) => {
1443
1621
  if (e) {
1444
1622
  try {
1445
- Object.defineProperty(e, "name", { value: t });
1623
+ Object.defineProperty(e, "name", { __proto__: null, value: t });
1446
1624
  } catch {
1447
1625
  }
1448
- Object.defineProperty(e, "adapterName", { value: t });
1626
+ Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
1449
1627
  }
1450
1628
  });
1451
- const ot = (e) => `- ${e}`, cs = (e) => u.isFunction(e) || e === null || e === !1;
1452
- function ds(e, t) {
1629
+ const ht = (e) => `- ${e}`, Sn = (e) => u.isFunction(e) || e === null || e === !1;
1630
+ function bn(e, t) {
1453
1631
  e = u.isArray(e) ? e : [e];
1454
1632
  const { length: r } = e;
1455
- let s, n;
1633
+ let n, s;
1456
1634
  const o = {};
1457
1635
  for (let a = 0; a < r; a++) {
1458
- s = e[a];
1636
+ n = e[a];
1459
1637
  let i;
1460
- if (n = s, !cs(s) && (n = Ge[(i = String(s)).toLowerCase()], n === void 0))
1461
- throw new A(`Unknown adapter '${i}'`);
1462
- if (n && (u.isFunction(n) || (n = n.get(t))))
1638
+ if (s = n, !Sn(n) && (s = Je[(i = String(n)).toLowerCase()], s === void 0))
1639
+ throw new f(`Unknown adapter '${i}'`);
1640
+ if (s && (u.isFunction(s) || (s = s.get(t))))
1463
1641
  break;
1464
- o[i || "#" + a] = n;
1642
+ o[i || "#" + a] = s;
1465
1643
  }
1466
- if (!n) {
1644
+ if (!s) {
1467
1645
  const a = Object.entries(o).map(
1468
1646
  ([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1469
1647
  );
1470
1648
  let i = r ? a.length > 1 ? `since :
1471
- ` + a.map(ot).join(`
1472
- `) : " " + ot(a[0]) : "as no adapter specified";
1473
- throw new A(
1649
+ ` + a.map(ht).join(`
1650
+ `) : " " + ht(a[0]) : "as no adapter specified";
1651
+ throw new f(
1474
1652
  "There is no suitable adapter to dispatch the request " + i,
1475
1653
  "ERR_NOT_SUPPORT"
1476
1654
  );
1477
1655
  }
1478
- return n;
1656
+ return s;
1479
1657
  }
1480
- const Lt = {
1658
+ const Bt = {
1481
1659
  /**
1482
1660
  * Resolve an adapter from a list of adapter names or functions.
1483
1661
  * @type {Function}
1484
1662
  */
1485
- getAdapter: ds,
1663
+ getAdapter: bn,
1486
1664
  /**
1487
1665
  * Exposes all known adapters
1488
1666
  * @type {Object<string, Function|Object>}
1489
1667
  */
1490
- adapters: Ge
1668
+ adapters: Je
1491
1669
  };
1492
- function ye(e) {
1670
+ function Ge(e) {
1493
1671
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1494
- throw new ae(null, e);
1672
+ throw new Ee(null, e);
1495
1673
  }
1496
- function at(e) {
1497
- return ye(e), e.headers = U.from(e.headers), e.data = we.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Lt.getAdapter(e.adapter || oe.adapter, e)(e).then(
1498
- function(s) {
1499
- return ye(e), s.data = we.call(e, e.transformResponse, s), s.headers = U.from(s.headers), s;
1674
+ function ft(e) {
1675
+ return Ge(e), e.headers = U.from(e.headers), e.data = He.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bt.getAdapter(e.adapter || fe.adapter, e)(e).then(
1676
+ function(n) {
1677
+ Ge(e), e.response = n;
1678
+ try {
1679
+ n.data = He.call(e, e.transformResponse, n);
1680
+ } finally {
1681
+ delete e.response;
1682
+ }
1683
+ return n.headers = U.from(n.headers), n;
1500
1684
  },
1501
- function(s) {
1502
- return St(s) || (ye(e), s && s.response && (s.response.data = we.call(
1503
- e,
1504
- e.transformResponse,
1505
- s.response
1506
- ), s.response.headers = U.from(s.response.headers))), Promise.reject(s);
1685
+ function(n) {
1686
+ if (!Nt(n) && (Ge(e), n && n.response)) {
1687
+ e.response = n.response;
1688
+ try {
1689
+ n.response.data = He.call(
1690
+ e,
1691
+ e.transformResponse,
1692
+ n.response
1693
+ );
1694
+ } finally {
1695
+ delete e.response;
1696
+ }
1697
+ n.response.headers = U.from(n.response.headers);
1698
+ }
1699
+ return Promise.reject(n);
1507
1700
  }
1508
1701
  );
1509
1702
  }
1510
- const gt = "1.15.0", Te = {};
1703
+ const Ne = {};
1511
1704
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1512
- Te[e] = function(s) {
1513
- return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
1705
+ Ne[e] = function(n) {
1706
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1514
1707
  };
1515
1708
  });
1516
- const it = {};
1517
- Te.transitional = function(t, r, s) {
1518
- function n(o, a) {
1519
- return "[Axios v" + gt + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
1709
+ const Et = {};
1710
+ Ne.transitional = function(t, r, n) {
1711
+ function s(o, a) {
1712
+ return "[Axios v" + Ye + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
1520
1713
  }
1521
1714
  return (o, a, i) => {
1522
1715
  if (t === !1)
1523
- throw new A(
1524
- n(a, " has been removed" + (r ? " in " + r : "")),
1525
- A.ERR_DEPRECATED
1716
+ throw new f(
1717
+ s(a, " has been removed" + (r ? " in " + r : "")),
1718
+ f.ERR_DEPRECATED
1526
1719
  );
1527
- return r && !it[a] && (it[a] = !0, console.warn(
1528
- n(
1720
+ return r && !Et[a] && (Et[a] = !0, console.warn(
1721
+ s(
1529
1722
  a,
1530
1723
  " has been deprecated since v" + r + " and will be removed in the near future"
1531
1724
  )
1532
1725
  )), t ? t(o, a, i) : !0;
1533
1726
  };
1534
1727
  };
1535
- Te.spelling = function(t) {
1536
- return (r, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
1728
+ Ne.spelling = function(t) {
1729
+ return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
1537
1730
  };
1538
- function us(e, t, r) {
1731
+ function yn(e, t, r) {
1539
1732
  if (typeof e != "object")
1540
- throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
1541
- const s = Object.keys(e);
1542
- let n = s.length;
1543
- for (; n-- > 0; ) {
1544
- const o = s[n], a = t[o];
1733
+ throw new f("options must be an object", f.ERR_BAD_OPTION_VALUE);
1734
+ const n = Object.keys(e);
1735
+ let s = n.length;
1736
+ for (; s-- > 0; ) {
1737
+ const o = n[s], a = Object.prototype.hasOwnProperty.call(t, o) ? t[o] : void 0;
1545
1738
  if (a) {
1546
1739
  const i = e[o], l = i === void 0 || a(i, o, e);
1547
1740
  if (l !== !0)
1548
- throw new A(
1741
+ throw new f(
1549
1742
  "option " + o + " must be " + l,
1550
- A.ERR_BAD_OPTION_VALUE
1743
+ f.ERR_BAD_OPTION_VALUE
1551
1744
  );
1552
1745
  continue;
1553
1746
  }
1554
1747
  if (r !== !0)
1555
- throw new A("Unknown option " + o, A.ERR_BAD_OPTION);
1748
+ throw new f("Unknown option " + o, f.ERR_BAD_OPTION);
1556
1749
  }
1557
1750
  }
1558
- const fe = {
1559
- assertOptions: us,
1560
- validators: Te
1561
- }, B = fe.validators;
1562
- let W = class {
1751
+ const Ie = {
1752
+ assertOptions: yn,
1753
+ validators: Ne
1754
+ }, G = Ie.validators;
1755
+ let Q = class {
1563
1756
  constructor(t) {
1564
1757
  this.defaults = t || {}, this.interceptors = {
1565
- request: new Xe(),
1566
- response: new Xe()
1758
+ request: new at(),
1759
+ response: new at()
1567
1760
  };
1568
1761
  }
1569
1762
  /**
@@ -1577,65 +1770,65 @@ let W = class {
1577
1770
  async request(t, r) {
1578
1771
  try {
1579
1772
  return await this._request(t, r);
1580
- } catch (s) {
1581
- if (s instanceof Error) {
1582
- let n = {};
1583
- Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
1773
+ } catch (n) {
1774
+ if (n instanceof Error) {
1775
+ let s = {};
1776
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1584
1777
  const o = (() => {
1585
- if (!n.stack)
1778
+ if (!s.stack)
1586
1779
  return "";
1587
- const a = n.stack.indexOf(`
1780
+ const a = s.stack.indexOf(`
1588
1781
  `);
1589
- return a === -1 ? "" : n.stack.slice(a + 1);
1782
+ return a === -1 ? "" : s.stack.slice(a + 1);
1590
1783
  })();
1591
1784
  try {
1592
- if (!s.stack)
1593
- s.stack = o;
1785
+ if (!n.stack)
1786
+ n.stack = o;
1594
1787
  else if (o) {
1595
1788
  const a = o.indexOf(`
1596
1789
  `), i = a === -1 ? -1 : o.indexOf(`
1597
1790
  `, a + 1), l = i === -1 ? "" : o.slice(i + 1);
1598
- String(s.stack).endsWith(l) || (s.stack += `
1791
+ String(n.stack).endsWith(l) || (n.stack += `
1599
1792
  ` + o);
1600
1793
  }
1601
1794
  } catch {
1602
1795
  }
1603
1796
  }
1604
- throw s;
1797
+ throw n;
1605
1798
  }
1606
1799
  }
1607
1800
  _request(t, r) {
1608
- typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Y(this.defaults, r);
1609
- const { transitional: s, paramsSerializer: n, headers: o } = r;
1610
- s !== void 0 && fe.assertOptions(
1611
- s,
1801
+ typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = ee(this.defaults, r);
1802
+ const { transitional: n, paramsSerializer: s, headers: o } = r;
1803
+ n !== void 0 && Ie.assertOptions(
1804
+ n,
1612
1805
  {
1613
- silentJSONParsing: B.transitional(B.boolean),
1614
- forcedJSONParsing: B.transitional(B.boolean),
1615
- clarifyTimeoutError: B.transitional(B.boolean),
1616
- legacyInterceptorReqResOrdering: B.transitional(B.boolean)
1806
+ silentJSONParsing: G.transitional(G.boolean),
1807
+ forcedJSONParsing: G.transitional(G.boolean),
1808
+ clarifyTimeoutError: G.transitional(G.boolean),
1809
+ legacyInterceptorReqResOrdering: G.transitional(G.boolean)
1617
1810
  },
1618
1811
  !1
1619
- ), n != null && (u.isFunction(n) ? r.paramsSerializer = {
1620
- serialize: n
1621
- } : fe.assertOptions(
1622
- n,
1812
+ ), s != null && (u.isFunction(s) ? r.paramsSerializer = {
1813
+ serialize: s
1814
+ } : Ie.assertOptions(
1815
+ s,
1623
1816
  {
1624
- encode: B.function,
1625
- serialize: B.function
1817
+ encode: G.function,
1818
+ serialize: G.function
1626
1819
  },
1627
1820
  !0
1628
- )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(
1821
+ )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Ie.assertOptions(
1629
1822
  r,
1630
1823
  {
1631
- baseUrl: B.spelling("baseURL"),
1632
- withXsrfToken: B.spelling("withXSRFToken")
1824
+ baseUrl: G.spelling("baseURL"),
1825
+ withXsrfToken: G.spelling("withXSRFToken")
1633
1826
  },
1634
1827
  !0
1635
1828
  ), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1636
1829
  let a = o && u.merge(o.common, o[r.method]);
1637
- o && u.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (h) => {
1638
- delete o[h];
1830
+ o && u.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (m) => {
1831
+ delete o[m];
1639
1832
  }), r.headers = U.concat(a, o);
1640
1833
  const i = [];
1641
1834
  let l = !0;
@@ -1643,8 +1836,8 @@ let W = class {
1643
1836
  if (typeof E.runWhen == "function" && E.runWhen(r) === !1)
1644
1837
  return;
1645
1838
  l = l && E.synchronous;
1646
- const f = r.transitional || Be;
1647
- f && f.legacyInterceptorReqResOrdering ? i.unshift(E.fulfilled, E.rejected) : i.push(E.fulfilled, E.rejected);
1839
+ const h = r.transitional || We;
1840
+ h && h.legacyInterceptorReqResOrdering ? i.unshift(E.fulfilled, E.rejected) : i.push(E.fulfilled, E.rejected);
1648
1841
  });
1649
1842
  const c = [];
1650
1843
  this.interceptors.response.forEach(function(E) {
@@ -1652,55 +1845,55 @@ let W = class {
1652
1845
  });
1653
1846
  let d, p = 0, _;
1654
1847
  if (!l) {
1655
- const h = [at.bind(this), void 0];
1656
- for (h.unshift(...i), h.push(...c), _ = h.length, d = Promise.resolve(r); p < _; )
1657
- d = d.then(h[p++], h[p++]);
1848
+ const m = [ft.bind(this), void 0];
1849
+ for (m.unshift(...i), m.push(...c), _ = m.length, d = Promise.resolve(r); p < _; )
1850
+ d = d.then(m[p++], m[p++]);
1658
1851
  return d;
1659
1852
  }
1660
1853
  _ = i.length;
1661
- let C = r;
1854
+ let R = r;
1662
1855
  for (; p < _; ) {
1663
- const h = i[p++], E = i[p++];
1856
+ const m = i[p++], E = i[p++];
1664
1857
  try {
1665
- C = h(C);
1666
- } catch (f) {
1667
- E.call(this, f);
1858
+ R = m(R);
1859
+ } catch (h) {
1860
+ E.call(this, h);
1668
1861
  break;
1669
1862
  }
1670
1863
  }
1671
1864
  try {
1672
- d = at.call(this, C);
1673
- } catch (h) {
1674
- return Promise.reject(h);
1865
+ d = ft.call(this, R);
1866
+ } catch (m) {
1867
+ return Promise.reject(m);
1675
1868
  }
1676
1869
  for (p = 0, _ = c.length; p < _; )
1677
1870
  d = d.then(c[p++], c[p++]);
1678
1871
  return d;
1679
1872
  }
1680
1873
  getUri(t) {
1681
- t = Y(this.defaults, t);
1682
- const r = wt(t.baseURL, t.url, t.allowAbsoluteUrls);
1683
- return Tt(r, t.params, t.paramsSerializer);
1874
+ t = ee(this.defaults, t);
1875
+ const r = Vt(t.baseURL, t.url, t.allowAbsoluteUrls);
1876
+ return Lt(r, t.params, t.paramsSerializer);
1684
1877
  }
1685
1878
  };
1686
1879
  u.forEach(["delete", "get", "head", "options"], function(t) {
1687
- W.prototype[t] = function(r, s) {
1880
+ Q.prototype[t] = function(r, n) {
1688
1881
  return this.request(
1689
- Y(s || {}, {
1882
+ ee(n || {}, {
1690
1883
  method: t,
1691
1884
  url: r,
1692
- data: (s || {}).data
1885
+ data: (n || {}).data
1693
1886
  })
1694
1887
  );
1695
1888
  };
1696
1889
  });
1697
- u.forEach(["post", "put", "patch"], function(t) {
1698
- function r(s) {
1890
+ u.forEach(["post", "put", "patch", "query"], function(t) {
1891
+ function r(n) {
1699
1892
  return function(o, a, i) {
1700
1893
  return this.request(
1701
- Y(i || {}, {
1894
+ ee(i || {}, {
1702
1895
  method: t,
1703
- headers: s ? {
1896
+ headers: n ? {
1704
1897
  "Content-Type": "multipart/form-data"
1705
1898
  } : {},
1706
1899
  url: o,
@@ -1709,9 +1902,9 @@ u.forEach(["post", "put", "patch"], function(t) {
1709
1902
  );
1710
1903
  };
1711
1904
  }
1712
- W.prototype[t] = r(), W.prototype[t + "Form"] = r(!0);
1905
+ Q.prototype[t] = r(), t !== "query" && (Q.prototype[t + "Form"] = r(!0));
1713
1906
  });
1714
- let ps = class Vt {
1907
+ let wn = class Ht {
1715
1908
  constructor(t) {
1716
1909
  if (typeof t != "function")
1717
1910
  throw new TypeError("executor must be a function.");
@@ -1719,23 +1912,23 @@ let ps = class Vt {
1719
1912
  this.promise = new Promise(function(o) {
1720
1913
  r = o;
1721
1914
  });
1722
- const s = this;
1723
- this.promise.then((n) => {
1724
- if (!s._listeners) return;
1725
- let o = s._listeners.length;
1915
+ const n = this;
1916
+ this.promise.then((s) => {
1917
+ if (!n._listeners) return;
1918
+ let o = n._listeners.length;
1726
1919
  for (; o-- > 0; )
1727
- s._listeners[o](n);
1728
- s._listeners = null;
1729
- }), this.promise.then = (n) => {
1920
+ n._listeners[o](s);
1921
+ n._listeners = null;
1922
+ }), this.promise.then = (s) => {
1730
1923
  let o;
1731
1924
  const a = new Promise((i) => {
1732
- s.subscribe(i), o = i;
1733
- }).then(n);
1925
+ n.subscribe(i), o = i;
1926
+ }).then(s);
1734
1927
  return a.cancel = function() {
1735
- s.unsubscribe(o);
1928
+ n.unsubscribe(o);
1736
1929
  }, a;
1737
1930
  }, t(function(o, a, i) {
1738
- s.reason || (s.reason = new ae(o, a, i), r(s.reason));
1931
+ n.reason || (n.reason = new Ee(o, a, i), r(n.reason));
1739
1932
  });
1740
1933
  }
1741
1934
  /**
@@ -1765,8 +1958,8 @@ let ps = class Vt {
1765
1958
  r !== -1 && this._listeners.splice(r, 1);
1766
1959
  }
1767
1960
  toAbortSignal() {
1768
- const t = new AbortController(), r = (s) => {
1769
- t.abort(s);
1961
+ const t = new AbortController(), r = (n) => {
1962
+ t.abort(n);
1770
1963
  };
1771
1964
  return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
1772
1965
  }
@@ -1777,22 +1970,22 @@ let ps = class Vt {
1777
1970
  static source() {
1778
1971
  let t;
1779
1972
  return {
1780
- token: new Vt(function(n) {
1781
- t = n;
1973
+ token: new Ht(function(s) {
1974
+ t = s;
1782
1975
  }),
1783
1976
  cancel: t
1784
1977
  };
1785
1978
  }
1786
1979
  };
1787
- function hs(e) {
1980
+ function Cn(e) {
1788
1981
  return function(r) {
1789
1982
  return e.apply(null, r);
1790
1983
  };
1791
1984
  }
1792
- function fs(e) {
1985
+ function Ln(e) {
1793
1986
  return u.isObject(e) && e.isAxiosError === !0;
1794
1987
  }
1795
- const Ne = {
1988
+ const qe = {
1796
1989
  Continue: 100,
1797
1990
  SwitchingProtocols: 101,
1798
1991
  Processing: 102,
@@ -1863,86 +2056,87 @@ const Ne = {
1863
2056
  SslHandshakeFailed: 525,
1864
2057
  InvalidSslCertificate: 526
1865
2058
  };
1866
- Object.entries(Ne).forEach(([e, t]) => {
1867
- Ne[t] = e;
2059
+ Object.entries(qe).forEach(([e, t]) => {
2060
+ qe[t] = e;
1868
2061
  });
1869
- function Nt(e) {
1870
- const t = new W(e), r = dt(W.prototype.request, t);
1871
- return u.extend(r, W.prototype, t, { allOwnKeys: !0 }), u.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
1872
- return Nt(Y(e, n));
2062
+ function Gt(e) {
2063
+ const t = new Q(e), r = _t(Q.prototype.request, t);
2064
+ return u.extend(r, Q.prototype, t, { allOwnKeys: !0 }), u.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
2065
+ return Gt(ee(e, s));
1873
2066
  }, r;
1874
2067
  }
1875
- const O = Nt(oe);
1876
- O.Axios = W;
1877
- O.CanceledError = ae;
1878
- O.CancelToken = ps;
1879
- O.isCancel = St;
1880
- O.VERSION = gt;
1881
- O.toFormData = me;
1882
- O.AxiosError = A;
2068
+ const O = Gt(fe);
2069
+ O.Axios = Q;
2070
+ O.CanceledError = Ee;
2071
+ O.CancelToken = wn;
2072
+ O.isCancel = Nt;
2073
+ O.VERSION = Ye;
2074
+ O.toFormData = ge;
2075
+ O.AxiosError = f;
1883
2076
  O.Cancel = O.CanceledError;
1884
2077
  O.all = function(t) {
1885
2078
  return Promise.all(t);
1886
2079
  };
1887
- O.spread = hs;
1888
- O.isAxiosError = fs;
1889
- O.mergeConfig = Y;
2080
+ O.spread = Cn;
2081
+ O.isAxiosError = Ln;
2082
+ O.mergeConfig = ee;
1890
2083
  O.AxiosHeaders = U;
1891
- O.formToJSON = (e) => Pt(u.isHTMLForm(e) ? new FormData(e) : e);
1892
- O.getAdapter = Lt.getAdapter;
1893
- O.HttpStatusCode = Ne;
2084
+ O.formToJSON = (e) => gt(u.isHTMLForm(e) ? new FormData(e) : e);
2085
+ O.getAdapter = Bt.getAdapter;
2086
+ O.HttpStatusCode = qe;
1894
2087
  O.default = O;
1895
2088
  const {
1896
- Axios: Xs,
1897
- AxiosError: Js,
1898
- CanceledError: Zs,
1899
- isCancel: Ks,
1900
- CancelToken: Qs,
1901
- VERSION: en,
1902
- all: tn,
1903
- Cancel: rn,
1904
- isAxiosError: sn,
1905
- spread: nn,
1906
- toFormData: on,
1907
- AxiosHeaders: an,
1908
- HttpStatusCode: ln,
1909
- formToJSON: cn,
1910
- getAdapter: dn,
1911
- mergeConfig: un
1912
- } = O, m = "https://faceapi.regulaforensics.com".replace(/\/+$/, "");
1913
- class Q {
1914
- constructor(t, r = m, s = O) {
1915
- this.basePath = r, this.axios = s, t && (this.configuration = t, this.basePath = t.basePath ?? r);
2089
+ Axios: ds,
2090
+ AxiosError: us,
2091
+ CanceledError: ps,
2092
+ isCancel: hs,
2093
+ CancelToken: fs,
2094
+ VERSION: Es,
2095
+ all: As,
2096
+ Cancel: Os,
2097
+ isAxiosError: _s,
2098
+ spread: Rs,
2099
+ toFormData: ms,
2100
+ AxiosHeaders: Ts,
2101
+ HttpStatusCode: Ps,
2102
+ formToJSON: Is,
2103
+ getAdapter: Ss,
2104
+ mergeConfig: bs,
2105
+ create: ys
2106
+ } = O, y = "https://faceapi.regulaforensics.com".replace(/\/+$/, "");
2107
+ class ae {
2108
+ constructor(t, r = y, n = O) {
2109
+ this.basePath = r, this.axios = n, t && (this.configuration = t, this.basePath = t.basePath ?? r);
1916
2110
  }
1917
2111
  }
1918
- class Es extends Error {
2112
+ class gn extends Error {
1919
2113
  constructor(t, r) {
1920
2114
  super(r), this.field = t, this.name = "RequiredError";
1921
2115
  }
1922
2116
  }
1923
- const T = {}, P = "https://example.com", R = function(e, t, r) {
2117
+ const w = {}, C = "https://example.com", I = function(e, t, r) {
1924
2118
  if (r == null)
1925
- throw new Es(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
2119
+ throw new gn(t, `Required parameter ${t} was null or undefined when calling ${e}.`);
1926
2120
  };
1927
- function Ue(e, t, r = "") {
1928
- t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((s) => Ue(e, s, r)) : Object.keys(t).forEach(
1929
- (s) => Ue(e, t[s], `${r}${r !== "" ? "." : ""}${s}`)
2121
+ function ze(e, t, r = "") {
2122
+ t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((n) => ze(e, n, r)) : Object.keys(t).forEach(
2123
+ (n) => ze(e, t[n], `${r}${r !== "" ? "." : ""}${n}`)
1930
2124
  ) : e.has(r) ? e.append(r, t) : e.set(r, t));
1931
2125
  }
1932
- const I = function(e, ...t) {
2126
+ const L = function(e, ...t) {
1933
2127
  const r = new URLSearchParams(e.search);
1934
- Ue(r, t), e.search = r.toString();
1935
- }, M = function(e, t, r) {
1936
- const s = typeof e != "string";
1937
- return (s && r && r.isJsonMime ? r.isJsonMime(t.headers["Content-Type"]) : s) ? JSON.stringify(e !== void 0 ? e : {}) : e || "";
1938
- }, S = function(e) {
2128
+ ze(r, t), e.search = r.toString();
2129
+ }, F = function(e, t, r) {
2130
+ const n = typeof e != "string";
2131
+ return (n && r && r.isJsonMime ? r.isJsonMime(t.headers["Content-Type"]) : n) ? JSON.stringify(e !== void 0 ? e : {}) : e || "";
2132
+ }, g = function(e) {
1939
2133
  return e.pathname + e.search + e.hash;
1940
- }, b = function(e, t, r, s) {
1941
- return (n = t, o = r) => {
1942
- const a = { ...e.options, url: (n.defaults.baseURL ? "" : s?.basePath ?? o) + e.url };
1943
- return n.request(a);
2134
+ }, N = function(e, t, r, n) {
2135
+ return (s = t, o = r) => {
2136
+ const a = { ...e.options, url: (s.defaults.baseURL ? "" : n?.basePath ?? o) + e.url };
2137
+ return s.request(a);
1944
2138
  };
1945
- }, As = function(e) {
2139
+ }, Nn = function(e) {
1946
2140
  return {
1947
2141
  /**
1948
2142
  * Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
@@ -1952,37 +2146,37 @@ const I = function(e, ...t) {
1952
2146
  * @param {*} [options] Override http request option.
1953
2147
  * @throws {RequiredError}
1954
2148
  */
1955
- detect: async (t, r, s = {}) => {
1956
- R("detect", "detectRequest", t);
1957
- const n = "/api/detect", o = new URL(n, P);
2149
+ detect: async (t, r, n = {}) => {
2150
+ I("detect", "detectRequest", t);
2151
+ const s = "/api/detect", o = new URL(s, C);
1958
2152
  let a;
1959
2153
  e && (a = e.baseOptions);
1960
- const i = { method: "POST", ...a, ...s }, l = {}, c = {};
1961
- l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
2154
+ const i = { method: "POST", ...a, ...n }, l = {}, c = {};
2155
+ l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), L(o, c);
1962
2156
  let d = a && a.headers ? a.headers : {};
1963
- return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
1964
- url: S(o),
2157
+ return i.headers = { ...l, ...d, ...n.headers }, i.data = F(t, i, e), {
2158
+ url: g(o),
1965
2159
  options: i
1966
2160
  };
1967
2161
  },
1968
2162
  /**
1969
- * 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`
2163
+ * 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> Note that no more than two images of the same `type` are allowed for comparison.<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`
1970
2164
  * @summary compare faces (1:1)
1971
2165
  * @param {MatchRequest} matchRequest
1972
2166
  * @param {string} [xRequestID] Request header label.
1973
2167
  * @param {*} [options] Override http request option.
1974
2168
  * @throws {RequiredError}
1975
2169
  */
1976
- match: async (t, r, s = {}) => {
1977
- R("match", "matchRequest", t);
1978
- const n = "/api/match", o = new URL(n, P);
2170
+ match: async (t, r, n = {}) => {
2171
+ I("match", "matchRequest", t);
2172
+ const s = "/api/match", o = new URL(s, C);
1979
2173
  let a;
1980
2174
  e && (a = e.baseOptions);
1981
- const i = { method: "POST", ...a, ...s }, l = {}, c = {};
1982
- l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
2175
+ const i = { method: "POST", ...a, ...n }, l = {}, c = {};
2176
+ l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), L(o, c);
1983
2177
  let d = a && a.headers ? a.headers : {};
1984
- return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
1985
- url: S(o),
2178
+ return i.headers = { ...l, ...d, ...n.headers }, i.data = F(t, i, e), {
2179
+ url: g(o),
1986
2180
  options: i
1987
2181
  };
1988
2182
  },
@@ -1994,22 +2188,22 @@ const I = function(e, ...t) {
1994
2188
  * @param {*} [options] Override http request option.
1995
2189
  * @throws {RequiredError}
1996
2190
  */
1997
- matchAndSearch: async (t, r, s = {}) => {
1998
- R("matchAndSearch", "matchAndSearchRequest", t);
1999
- const n = "/api/match_and_search", o = new URL(n, P);
2191
+ matchAndSearch: async (t, r, n = {}) => {
2192
+ I("matchAndSearch", "matchAndSearchRequest", t);
2193
+ const s = "/api/match_and_search", o = new URL(s, C);
2000
2194
  let a;
2001
2195
  e && (a = e.baseOptions);
2002
- const i = { method: "POST", ...a, ...s }, l = {}, c = {};
2003
- l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
2196
+ const i = { method: "POST", ...a, ...n }, l = {}, c = {};
2197
+ l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), L(o, c);
2004
2198
  let d = a && a.headers ? a.headers : {};
2005
- return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
2006
- url: S(o),
2199
+ return i.headers = { ...l, ...d, ...n.headers }, i.data = F(t, i, e), {
2200
+ url: g(o),
2007
2201
  options: i
2008
2202
  };
2009
2203
  }
2010
2204
  };
2011
- }, Ce = function(e) {
2012
- const t = As(e);
2205
+ }, Me = function(e) {
2206
+ const t = Nn(e);
2013
2207
  return {
2014
2208
  /**
2015
2209
  * Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
@@ -2019,21 +2213,21 @@ const I = function(e, ...t) {
2019
2213
  * @param {*} [options] Override http request option.
2020
2214
  * @throws {RequiredError}
2021
2215
  */
2022
- async detect(r, s, n) {
2023
- const o = await t.detect(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.detect"]?.[a]?.url;
2024
- return (l, c) => b(o, O, m, e)(l, i || c);
2216
+ async detect(r, n, s) {
2217
+ const o = await t.detect(r, n, s), a = e?.serverIndex ?? 0, i = w["MatchApi.detect"]?.[a]?.url;
2218
+ return (l, c) => N(o, O, y, e)(l, i || c);
2025
2219
  },
2026
2220
  /**
2027
- * 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`
2221
+ * 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> Note that no more than two images of the same `type` are allowed for comparison.<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`
2028
2222
  * @summary compare faces (1:1)
2029
2223
  * @param {MatchRequest} matchRequest
2030
2224
  * @param {string} [xRequestID] Request header label.
2031
2225
  * @param {*} [options] Override http request option.
2032
2226
  * @throws {RequiredError}
2033
2227
  */
2034
- async match(r, s, n) {
2035
- const o = await t.match(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.match"]?.[a]?.url;
2036
- return (l, c) => b(o, O, m, e)(l, i || c);
2228
+ async match(r, n, s) {
2229
+ const o = await t.match(r, n, s), a = e?.serverIndex ?? 0, i = w["MatchApi.match"]?.[a]?.url;
2230
+ return (l, c) => N(o, O, y, e)(l, i || c);
2037
2231
  },
2038
2232
  /**
2039
2233
  * To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
@@ -2043,13 +2237,13 @@ const I = function(e, ...t) {
2043
2237
  * @param {*} [options] Override http request option.
2044
2238
  * @throws {RequiredError}
2045
2239
  */
2046
- async matchAndSearch(r, s, n) {
2047
- const o = await t.matchAndSearch(r, s, n), a = e?.serverIndex ?? 0, i = T["MatchApi.matchAndSearch"]?.[a]?.url;
2048
- return (l, c) => b(o, O, m, e)(l, i || c);
2240
+ async matchAndSearch(r, n, s) {
2241
+ const o = await t.matchAndSearch(r, n, s), a = e?.serverIndex ?? 0, i = w["MatchApi.matchAndSearch"]?.[a]?.url;
2242
+ return (l, c) => N(o, O, y, e)(l, i || c);
2049
2243
  }
2050
2244
  };
2051
2245
  };
2052
- let Os = class extends Q {
2246
+ let xn = class extends ae {
2053
2247
  /**
2054
2248
  * Use the POST `api/detect` endpoint to analyze images, recognize faces in them, and return cropped and aligned portraits of the detected people. The Face Detection feature lets you additionally: - **Check face image quality**: Assess whether a portrait meets certain standards, for example, ICAO, Schengen visa, USA visa. To perform image quality check, use the `processParam.quality` field. For the list of assessed characteristics, see the [Face Image Quality Characteristics page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/face-image-quality-check/). - **Evaluate face attributes**: Estimate the age range of a person; check whether the eyes are occluded, closed, or open; detect a facial expression or smile; see if there are glasses, sunglasses, head coverage, medical mask, etc. To evaluate attributes, add the `processParam.attributes` field. For the list of assessed attributes, see the [Attributes List page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/attributes-detection/). You can perform Face Detection in two ways: - By adding parameters manually. In this case, the configuration is not saved and you will need to add all the necessary parameters to each request. - By a processing `scenario` that includes certain parameters. You can use predefined scenarios or add custom ones. For detailed information about scenarios, refer to the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
2055
2249
  * @summary detect and check quality
@@ -2058,19 +2252,19 @@ let Os = class extends Q {
2058
2252
  * @param {*} [options] Override http request option.
2059
2253
  * @throws {RequiredError}
2060
2254
  */
2061
- detect(t, r, s) {
2062
- return Ce(this.configuration).detect(t, r, s).then((n) => n(this.axios, this.basePath));
2255
+ detect(t, r, n) {
2256
+ return Me(this.configuration).detect(t, r, n).then((s) => s(this.axios, this.basePath));
2063
2257
  }
2064
2258
  /**
2065
- * 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`
2259
+ * 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> Note that no more than two images of the same `type` are allowed for comparison.<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`
2066
2260
  * @summary compare faces (1:1)
2067
2261
  * @param {MatchRequest} matchRequest
2068
2262
  * @param {string} [xRequestID] Request header label.
2069
2263
  * @param {*} [options] Override http request option.
2070
2264
  * @throws {RequiredError}
2071
2265
  */
2072
- match(t, r, s) {
2073
- return Ce(this.configuration).match(t, r, s).then((n) => n(this.axios, this.basePath));
2266
+ match(t, r, n) {
2267
+ return Me(this.configuration).match(t, r, n).then((s) => s(this.axios, this.basePath));
2074
2268
  }
2075
2269
  /**
2076
2270
  * To compare several images from a document and look up a person in the database in one request, use POST `/api/match_and_search`. In this case, the calculation of the descriptor will be performed only once, as opposed to using two requests for the same operation. At least two photos are required. If, after processing two or more photos, only one face is detected across them, the match step is skipped, and only the search is carried out.
@@ -2080,33 +2274,33 @@ let Os = class extends Q {
2080
2274
  * @param {*} [options] Override http request option.
2081
2275
  * @throws {RequiredError}
2082
2276
  */
2083
- matchAndSearch(t, r, s) {
2084
- return Ce(this.configuration).matchAndSearch(t, r, s).then((n) => n(this.axios, this.basePath));
2277
+ matchAndSearch(t, r, n) {
2278
+ return Me(this.configuration).matchAndSearch(t, r, n).then((s) => s(this.axios, this.basePath));
2085
2279
  }
2086
2280
  };
2087
- var _s = /* @__PURE__ */ ((e) => (e.AGE = "Age", e.EMOTION = "Emotion", e.EYE_LEFT = "EyeLeft", e.EYE_RIGHT = "EyeRight", e.SMILE = "Smile", e.GLASSES = "Glasses", e.HEAD_COVERING = "HeadCovering", e.FOREHEAD_COVERING = "ForeheadCovering", e.MOUTH = "Mouth", e.MEDICAL_MASK = "MedicalMask", e.OCCLUSION = "Occlusion", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e))(_s || {}), Rs = /* @__PURE__ */ ((e) => (e[e.ALIGN_3x4 = 0] = "ALIGN_3x4", e[e.ALIGN_4x5 = 1] = "ALIGN_4x5", e[e.ALIGN_2x3 = 2] = "ALIGN_2x3", e[e.ALIGN_1x1 = 3] = "ALIGN_1x1", e[e.ALIGN_7x9 = 4] = "ALIGN_7x9", e))(Rs || {}), ms = /* @__PURE__ */ ((e) => (e[e.IMAGE_CHARACTERISTICS = 1] = "IMAGE_CHARACTERISTICS", e[e.HEAD_SIZE_AND_POSITIONS = 2] = "HEAD_SIZE_AND_POSITIONS", e[e.FACE_QUALITY = 3] = "FACE_QUALITY", e[e.EYES_CHARACTERISTICS = 4] = "EYES_CHARACTERISTICS", e[e.SHADOWS_AND_LIGHTNING = 5] = "SHADOWS_AND_LIGHTNING", e[e.POSE_AND_EXPRESSION = 6] = "POSE_AND_EXPRESSION", e[e.HEAD_OCCLUSION = 7] = "HEAD_OCCLUSION", e[e.BACKGROUND = 8] = "BACKGROUND", e))(ms || {}), Ts = /* @__PURE__ */ ((e) => (e.IMAGE_CHARACTERISTICS = "ImageCharacteristics", e.HEAD_SIZE_AND_POSITIONS = "HeadSizeAndPosition", e.FACE_QUALITY = "FaceQuality", e.EYES_CHARACTERISTICS = "EyesCharacteristics", e.SHADOWS_AND_LIGHTNING = "ShadowsAndLightning", e.POSE_AND_EXPRESSION = "PoseAndExpression", e.HEAD_OCCLUSION = "HeadOcclusion", e.BACKGROUND = "Background", e))(Ts || {}), Ps = /* @__PURE__ */ ((e) => (e[e.QUALITY_STATUS_FALSE = 0] = "QUALITY_STATUS_FALSE", e[e.QUALITY_STATUS_TRUE = 1] = "QUALITY_STATUS_TRUE", e[e.QUALITY_STATUS_UNDETERMINED = 2] = "QUALITY_STATUS_UNDETERMINED", e))(Ps || {}), Is = /* @__PURE__ */ ((e) => (e.IMAGE_WIDTH = "ImageWidth", e.IMAGE_HEIGHT = "ImageHeight", e.IMAGE_WIDTH_TO_HEIGHT = "ImageWidthToHeight", e.IMAGE_CHANNELS_NUMBER = "ImageChannelsNumber", e.PADDING_RATIO = "PaddingRatio", e.FACE_MID_POINT_HORIZONTAL_POSITION = "FaceMidPointHorizontalPosition", e.FACE_MID_POINT_VERTICAL_POSITION = "FaceMidPointVerticalPosition", e.HEAD_WIDTH_RATIO = "HeadWidthRatio", e.HEAD_HEIGHT_RATIO = "HeadHeightRatio", e.EYES_DISTANCE = "EyesDistance", e.YAW = "Yaw", e.PITCH = "Pitch", e.ROLL = "Roll", e.BLUR_LEVEL = "BlurLevel", e.NOISE_LEVEL = "NoiseLevel", e.EYE_RIGHT_CLOSED = "EyeRightClosed", e.EYE_LEFT_CLOSED = "EyeLeftClosed", e.EYE_RIGHT_OCCLUDED = "EyeRightOccluded", e.EYE_LEFT_OCCLUDED = "EyeLeftOccluded", e.EYES_RED = "EyesRed", e.EYE_RIGHT_COVERED_WITH_HAIR = "EyeRightCoveredWithHair", e.EYE_LEFT_COVERED_WITH_HAIR = "EyeLeftCoveredWithHair", e.OFF_GAZE = "OffGaze", e.FACE_DYNAMIC_RANGE = "FaceDynamicRange", e.UNNATURAL_SKIN_TONE = "UnnaturalSkinTone", e.TOO_DARK = "TooDark", e.TOO_LIGHT = "TooLight", e.FACE_GLARE = "FaceGlare", e.SHADOWS_ON_FACE = "ShadowsOnFace", e.DARK_GLASSES = "DarkGlasses", e.REFLECTION_ON_GLASSES = "ReflectionOnGlasses", e.FRAMES_TOO_HEAVY = "FramesTooHeavy", e.FACE_OCCLUDED = "FaceOccluded", e.HEAD_COVERING = "HeadCovering", e.BACKGROUND_UNIFORMITY = "BackgroundUniformity", e.SHADOWS_ON_BACKGROUND = "ShadowsOnBackground", e.OTHER_FACES = "OtherFaces", e.SHOULDERS_POSE = "ShouldersPose", e.EXPRESSION_LEVEL = "ExpressionLevel", e.MOUTH_OPEN = "MouthOpen", e.FOREHEAD_COVERING = "ForeheadCovering", e.SMILE = "Smile", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e.MEDICAL_MASK = "MedicalMask", e.BACKGROUND_COLOR_MATCH = "BackgroundColorMatch", e.ART_FACE = "ArtFace", e.CONTACT_LENSES = "ContactLenses", e))(Is || {}), Ss = /* @__PURE__ */ ((e) => (e.OLD_MODE = "OldMode", e.QUALITY_FULL = "QualityFull", e.QUALITY_ICAO = "QualityICAO", e.QUALITY_VISA_SCHENGEN = "QualityVisaSchengen", e.QUALITY_VISA_USA = "QualityVisaUSA", e.CROP_CENTRAL_FACE = "CropCentralFace", e.CROP_ALL_FACES = "CropAllFaces", e.THUMBNAIL = "Thumbnail", e.ATTRIBUTES_ALL = "AttributesAll", e.EMPTY = "", e))(Ss || {}), bs = /* @__PURE__ */ ((e) => (e[e.FACER_OK = 0] = "FACER_OK", e[e.FR_IMAGE_EMPTY = 1] = "FR_IMAGE_EMPTY", e[e.FR_FACE_NOT_DETECTED = 2] = "FR_FACE_NOT_DETECTED", e[e.FR_LANDMARKS_NOT_DETECTED = 3] = "FR_LANDMARKS_NOT_DETECTED", e[e.FR_FACE_ALIGHNER_FAILED = 4] = "FR_FACE_ALIGHNER_FAILED", e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR = 5] = "FR_DESCRIPTOR_EXTRACTOR_ERROR", e[e.FR_IMAGE_DECODE_ERROR = 6] = "FR_IMAGE_DECODE_ERROR", e[e.FR_INTERNAL_ERROR = 7] = "FR_INTERNAL_ERROR", e[e.FACER_CONFIG_ERROR = 199] = "FACER_CONFIG_ERROR", e[e.FACER_NO_LICENSE = 200] = "FACER_NO_LICENSE", e[e.FACER_IS_NOT_INITIALIZED = 201] = "FACER_IS_NOT_INITIALIZED", e[e.FACER_COMMAND_IS_NOT_SUPPORTED = 202] = "FACER_COMMAND_IS_NOT_SUPPORTED", e[e.FACER_COMMAND_PARAMS_READ_ERROR = 203] = "FACER_COMMAND_PARAMS_READ_ERROR", e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224] = "FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST", e[e.FACER_VIDEO_DECODE_ERROR = 227] = "FACER_VIDEO_DECODE_ERROR", e[e.FACER_NOT_ENOUGH_FRAMES = 228] = "FACER_NOT_ENOUGH_FRAMES", e[e.FACER_OUTPUT_IS_NOT_DEFINED = 229] = "FACER_OUTPUT_IS_NOT_DEFINED", e[e.FACER_CLOSED_EYES_DETECTED = 230] = "FACER_CLOSED_EYES_DETECTED", e[e.FACER_LOW_QUALITY = 231] = "FACER_LOW_QUALITY", e[e.FACER_HIGH_ASYMMETRY = 232] = "FACER_HIGH_ASYMMETRY", e[e.FACER_FACE_OVER_EMOTIONAL = 233] = "FACER_FACE_OVER_EMOTIONAL", e[e.FACER_SUNGLASSES_DETECTED = 234] = "FACER_SUNGLASSES_DETECTED", e[e.FACER_SMALL_AGE = 235] = "FACER_SMALL_AGE", e[e.FACER_HEADDRESS_DETECTED = 236] = "FACER_HEADDRESS_DETECTED", e[e.FACER_FACES_NOT_MATCHED = 237] = "FACER_FACES_NOT_MATCHED", e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED = 238] = "FACER_IMAGES_COUNT_LIMIT_EXCEEDED", e[e.FACER_MEDICINE_MASK_DETECTED = 239] = "FACER_MEDICINE_MASK_DETECTED", e[e.FACER_OCCLUSION_DETECTED = 240] = "FACER_OCCLUSION_DETECTED", e[e.FACER_FOREHEAD_GLASSES_DETECTED = 242] = "FACER_FOREHEAD_GLASSES_DETECTED", e[e.FACER_MOUTH_OPENED = 243] = "FACER_MOUTH_OPENED", e[e.FACER_ART_MASK_DETECTED = 244] = "FACER_ART_MASK_DETECTED", e[e.FACER_ELECTRONIC_DEVICE_DETECTED = 245] = "FACER_ELECTRONIC_DEVICE_DETECTED", e[e.FACER_TRACK_BREAK = 246] = "FACER_TRACK_BREAK", e[e.FACER_WRONG_GEO = 247] = "FACER_WRONG_GEO", e[e.FACER_WRONG_OF = 248] = "FACER_WRONG_OF", e[e.FACER_WRONG_VIEW = 249] = "FACER_WRONG_VIEW", e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION = 250] = "FACER_TIMEOUT_LIVENESS_TRANSACTION", e[e.FACER_FAILED_LIVENESS_TRANSACTION = 251] = "FACER_FAILED_LIVENESS_TRANSACTION", e[e.FACER_ABORTED_LIVENESS_TRANSACTION = 252] = "FACER_ABORTED_LIVENESS_TRANSACTION", e[e.FACER_GENERAL_ERROR = 253] = "FACER_GENERAL_ERROR", e[e.FACER_PASSIVE_LIVENESS_FAIL = 254] = "FACER_PASSIVE_LIVENESS_FAIL", e))(bs || {}), ws = /* @__PURE__ */ ((e) => (e.IN = "in", e.NOT_IN = "nin", e))(ws || {}), Ut = /* @__PURE__ */ ((e) => (e[e.DOCUMENT_PRINTED = 1] = "DOCUMENT_PRINTED", e[e.DOCUMENT_RFID = 2] = "DOCUMENT_RFID", e[e.LIVE = 3] = "LIVE", e[e.DOCUMENT_WITH_LIVE = 4] = "DOCUMENT_WITH_LIVE", e[e.EXTERNAL = 5] = "EXTERNAL", e[e.GHOST = 6] = "GHOST", e[e.BARCODE = 7] = "BARCODE", e))(Ut || {}), ys = /* @__PURE__ */ ((e) => (e[e.ACTIVE = 0] = "ACTIVE", e[e.PASSIVE = 1] = "PASSIVE", e))(ys || {}), J = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Cs = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
2088
- for (var ue = 0; ue < J.length; ue++)
2089
- Cs[J.charCodeAt(ue)] = ue;
2090
- var Ae = function(e) {
2091
- var t = new Uint8Array(e), r, s = t.length, n = "";
2092
- for (r = 0; r < s; r += 3)
2093
- n += J[t[r] >> 2], n += J[(t[r] & 3) << 4 | t[r + 1] >> 4], n += J[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], n += J[t[r + 2] & 63];
2094
- return s % 3 === 2 ? n = n.substring(0, n.length - 1) + "=" : s % 3 === 1 && (n = n.substring(0, n.length - 2) + "=="), n;
2281
+ var Vn = /* @__PURE__ */ ((e) => (e.AGE = "Age", e.EMOTION = "Emotion", e.EYE_LEFT = "EyeLeft", e.EYE_RIGHT = "EyeRight", e.SMILE = "Smile", e.GLASSES = "Glasses", e.HEAD_COVERING = "HeadCovering", e.FOREHEAD_COVERING = "ForeheadCovering", e.MOUTH = "Mouth", e.MEDICAL_MASK = "MedicalMask", e.OCCLUSION = "Occlusion", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e))(Vn || {}), Un = /* @__PURE__ */ ((e) => (e[e.ALIGN_3x4 = 0] = "ALIGN_3x4", e[e.ALIGN_4x5 = 1] = "ALIGN_4x5", e[e.ALIGN_2x3 = 2] = "ALIGN_2x3", e[e.ALIGN_1x1 = 3] = "ALIGN_1x1", e[e.ALIGN_7x9 = 4] = "ALIGN_7x9", e))(Un || {}), Dn = /* @__PURE__ */ ((e) => (e[e.IMAGE_CHARACTERISTICS = 1] = "IMAGE_CHARACTERISTICS", e[e.HEAD_SIZE_AND_POSITIONS = 2] = "HEAD_SIZE_AND_POSITIONS", e[e.FACE_QUALITY = 3] = "FACE_QUALITY", e[e.EYES_CHARACTERISTICS = 4] = "EYES_CHARACTERISTICS", e[e.SHADOWS_AND_LIGHTNING = 5] = "SHADOWS_AND_LIGHTNING", e[e.POSE_AND_EXPRESSION = 6] = "POSE_AND_EXPRESSION", e[e.HEAD_OCCLUSION = 7] = "HEAD_OCCLUSION", e[e.BACKGROUND = 8] = "BACKGROUND", e))(Dn || {}), Bn = /* @__PURE__ */ ((e) => (e.IMAGE_CHARACTERISTICS = "ImageCharacteristics", e.HEAD_SIZE_AND_POSITIONS = "HeadSizeAndPosition", e.FACE_QUALITY = "FaceQuality", e.EYES_CHARACTERISTICS = "EyesCharacteristics", e.SHADOWS_AND_LIGHTNING = "ShadowsAndLightning", e.POSE_AND_EXPRESSION = "PoseAndExpression", e.HEAD_OCCLUSION = "HeadOcclusion", e.BACKGROUND = "Background", e))(Bn || {}), Hn = /* @__PURE__ */ ((e) => (e[e.QUALITY_STATUS_FALSE = 0] = "QUALITY_STATUS_FALSE", e[e.QUALITY_STATUS_TRUE = 1] = "QUALITY_STATUS_TRUE", e[e.QUALITY_STATUS_UNDETERMINED = 2] = "QUALITY_STATUS_UNDETERMINED", e))(Hn || {}), Gn = /* @__PURE__ */ ((e) => (e.IMAGE_WIDTH = "ImageWidth", e.IMAGE_HEIGHT = "ImageHeight", e.IMAGE_WIDTH_TO_HEIGHT = "ImageWidthToHeight", e.IMAGE_CHANNELS_NUMBER = "ImageChannelsNumber", e.PADDING_RATIO = "PaddingRatio", e.FACE_MID_POINT_HORIZONTAL_POSITION = "FaceMidPointHorizontalPosition", e.FACE_MID_POINT_VERTICAL_POSITION = "FaceMidPointVerticalPosition", e.HEAD_WIDTH_RATIO = "HeadWidthRatio", e.HEAD_HEIGHT_RATIO = "HeadHeightRatio", e.EYES_DISTANCE = "EyesDistance", e.YAW = "Yaw", e.PITCH = "Pitch", e.ROLL = "Roll", e.BLUR_LEVEL = "BlurLevel", e.NOISE_LEVEL = "NoiseLevel", e.EYE_RIGHT_CLOSED = "EyeRightClosed", e.EYE_LEFT_CLOSED = "EyeLeftClosed", e.EYE_RIGHT_OCCLUDED = "EyeRightOccluded", e.EYE_LEFT_OCCLUDED = "EyeLeftOccluded", e.EYES_RED = "EyesRed", e.EYE_RIGHT_COVERED_WITH_HAIR = "EyeRightCoveredWithHair", e.EYE_LEFT_COVERED_WITH_HAIR = "EyeLeftCoveredWithHair", e.OFF_GAZE = "OffGaze", e.FACE_DYNAMIC_RANGE = "FaceDynamicRange", e.UNNATURAL_SKIN_TONE = "UnnaturalSkinTone", e.TOO_DARK = "TooDark", e.TOO_LIGHT = "TooLight", e.FACE_GLARE = "FaceGlare", e.SHADOWS_ON_FACE = "ShadowsOnFace", e.DARK_GLASSES = "DarkGlasses", e.REFLECTION_ON_GLASSES = "ReflectionOnGlasses", e.FRAMES_TOO_HEAVY = "FramesTooHeavy", e.FACE_OCCLUDED = "FaceOccluded", e.HEAD_COVERING = "HeadCovering", e.BACKGROUND_UNIFORMITY = "BackgroundUniformity", e.SHADOWS_ON_BACKGROUND = "ShadowsOnBackground", e.OTHER_FACES = "OtherFaces", e.SHOULDERS_POSE = "ShouldersPose", e.EXPRESSION_LEVEL = "ExpressionLevel", e.MOUTH_OPEN = "MouthOpen", e.FOREHEAD_COVERING = "ForeheadCovering", e.SMILE = "Smile", e.STRONG_MAKEUP = "StrongMakeup", e.HEADPHONES = "Headphones", e.MEDICAL_MASK = "MedicalMask", e.BACKGROUND_COLOR_MATCH = "BackgroundColorMatch", e.ART_FACE = "ArtFace", e.CONTACT_LENSES = "ContactLenses", e))(Gn || {}), Mn = /* @__PURE__ */ ((e) => (e.OLD_MODE = "OldMode", e.QUALITY_FULL = "QualityFull", e.QUALITY_ICAO = "QualityICAO", e.QUALITY_VISA_SCHENGEN = "QualityVisaSchengen", e.QUALITY_VISA_USA = "QualityVisaUSA", e.CROP_CENTRAL_FACE = "CropCentralFace", e.CROP_ALL_FACES = "CropAllFaces", e.THUMBNAIL = "Thumbnail", e.ATTRIBUTES_ALL = "AttributesAll", e.EMPTY = "", e))(Mn || {}), vn = /* @__PURE__ */ ((e) => (e[e.FACER_OK = 0] = "FACER_OK", e[e.FR_IMAGE_EMPTY = 1] = "FR_IMAGE_EMPTY", e[e.FR_FACE_NOT_DETECTED = 2] = "FR_FACE_NOT_DETECTED", e[e.FR_LANDMARKS_NOT_DETECTED = 3] = "FR_LANDMARKS_NOT_DETECTED", e[e.FR_FACE_ALIGHNER_FAILED = 4] = "FR_FACE_ALIGHNER_FAILED", e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR = 5] = "FR_DESCRIPTOR_EXTRACTOR_ERROR", e[e.FR_IMAGE_DECODE_ERROR = 6] = "FR_IMAGE_DECODE_ERROR", e[e.FR_INTERNAL_ERROR = 7] = "FR_INTERNAL_ERROR", e[e.FACER_CONFIG_ERROR = 199] = "FACER_CONFIG_ERROR", e[e.FACER_NO_LICENSE = 200] = "FACER_NO_LICENSE", e[e.FACER_IS_NOT_INITIALIZED = 201] = "FACER_IS_NOT_INITIALIZED", e[e.FACER_COMMAND_IS_NOT_SUPPORTED = 202] = "FACER_COMMAND_IS_NOT_SUPPORTED", e[e.FACER_COMMAND_PARAMS_READ_ERROR = 203] = "FACER_COMMAND_PARAMS_READ_ERROR", e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224] = "FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST", e[e.FACER_VIDEO_DECODE_ERROR = 227] = "FACER_VIDEO_DECODE_ERROR", e[e.FACER_NOT_ENOUGH_FRAMES = 228] = "FACER_NOT_ENOUGH_FRAMES", e[e.FACER_OUTPUT_IS_NOT_DEFINED = 229] = "FACER_OUTPUT_IS_NOT_DEFINED", e[e.FACER_CLOSED_EYES_DETECTED = 230] = "FACER_CLOSED_EYES_DETECTED", e[e.FACER_LOW_QUALITY = 231] = "FACER_LOW_QUALITY", e[e.FACER_HIGH_ASYMMETRY = 232] = "FACER_HIGH_ASYMMETRY", e[e.FACER_FACE_OVER_EMOTIONAL = 233] = "FACER_FACE_OVER_EMOTIONAL", e[e.FACER_SUNGLASSES_DETECTED = 234] = "FACER_SUNGLASSES_DETECTED", e[e.FACER_SMALL_AGE = 235] = "FACER_SMALL_AGE", e[e.FACER_HEADDRESS_DETECTED = 236] = "FACER_HEADDRESS_DETECTED", e[e.FACER_FACES_NOT_MATCHED = 237] = "FACER_FACES_NOT_MATCHED", e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED = 238] = "FACER_IMAGES_COUNT_LIMIT_EXCEEDED", e[e.FACER_MEDICINE_MASK_DETECTED = 239] = "FACER_MEDICINE_MASK_DETECTED", e[e.FACER_OCCLUSION_DETECTED = 240] = "FACER_OCCLUSION_DETECTED", e[e.FACER_FOREHEAD_GLASSES_DETECTED = 242] = "FACER_FOREHEAD_GLASSES_DETECTED", e[e.FACER_MOUTH_OPENED = 243] = "FACER_MOUTH_OPENED", e[e.FACER_ART_MASK_DETECTED = 244] = "FACER_ART_MASK_DETECTED", e[e.FACER_ELECTRONIC_DEVICE_DETECTED = 245] = "FACER_ELECTRONIC_DEVICE_DETECTED", e[e.FACER_TRACK_BREAK = 246] = "FACER_TRACK_BREAK", e[e.FACER_WRONG_GEO = 247] = "FACER_WRONG_GEO", e[e.FACER_WRONG_OF = 248] = "FACER_WRONG_OF", e[e.FACER_WRONG_VIEW = 249] = "FACER_WRONG_VIEW", e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION = 250] = "FACER_TIMEOUT_LIVENESS_TRANSACTION", e[e.FACER_FAILED_LIVENESS_TRANSACTION = 251] = "FACER_FAILED_LIVENESS_TRANSACTION", e[e.FACER_ABORTED_LIVENESS_TRANSACTION = 252] = "FACER_ABORTED_LIVENESS_TRANSACTION", e[e.FACER_GENERAL_ERROR = 253] = "FACER_GENERAL_ERROR", e[e.FACER_PASSIVE_LIVENESS_FAIL = 254] = "FACER_PASSIVE_LIVENESS_FAIL", e))(vn || {}), jn = /* @__PURE__ */ ((e) => (e.IN = "in", e.NOT_IN = "nin", e))(jn || {}), Mt = /* @__PURE__ */ ((e) => (e[e.DOCUMENT_PRINTED = 1] = "DOCUMENT_PRINTED", e[e.DOCUMENT_RFID = 2] = "DOCUMENT_RFID", e[e.LIVE = 3] = "LIVE", e[e.DOCUMENT_WITH_LIVE = 4] = "DOCUMENT_WITH_LIVE", e[e.EXTERNAL = 5] = "EXTERNAL", e[e.GHOST = 6] = "GHOST", e[e.BARCODE = 7] = "BARCODE", e))(Mt || {}), Fn = /* @__PURE__ */ ((e) => (e[e.ACTIVE = 0] = "ACTIVE", e[e.PASSIVE = 1] = "PASSIVE", e))(Fn || {}), ne = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", kn = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
2282
+ for (var me = 0; me < ne.length; me++)
2283
+ kn[ne.charCodeAt(me)] = me;
2284
+ var be = function(e) {
2285
+ var t = new Uint8Array(e), r, n = t.length, s = "";
2286
+ for (r = 0; r < n; r += 3)
2287
+ s += ne[t[r] >> 2], s += ne[(t[r] & 3) << 4 | t[r + 1] >> 4], s += ne[(t[r + 1] & 15) << 2 | t[r + 2] >> 6], s += ne[t[r + 2] & 63];
2288
+ return n % 3 === 2 ? s = s.substring(0, s.length - 1) + "=" : n % 3 === 1 && (s = s.substring(0, s.length - 2) + "=="), s;
2095
2289
  };
2096
- class Ls {
2097
- constructor(t, r, s) {
2098
- this.superClass = new Os(t, r, s);
2290
+ class qn {
2291
+ constructor(t, r, n) {
2292
+ this.superClass = new xn(t, r, n);
2099
2293
  }
2100
- async match(t, r, s) {
2294
+ async match(t, r, n) {
2101
2295
  for (const o of t.images)
2102
- o.type || (o.type = Ut.LIVE), typeof o.data != "string" && (o.data = Ae(o.data));
2103
- return (await this.superClass.match(t, r, s)).data;
2296
+ o.type || (o.type = Mt.LIVE), typeof o.data != "string" && (o.data = be(o.data));
2297
+ return (await this.superClass.match(t, r, n)).data;
2104
2298
  }
2105
- async detect(t, r, s) {
2106
- return t.image && typeof t.image != "string" && (t.image = Ae(t.image)), (await this.superClass.detect(t, r, s)).data;
2299
+ async detect(t, r, n) {
2300
+ return t.image && typeof t.image != "string" && (t.image = be(t.image)), (await this.superClass.detect(t, r, n)).data;
2107
2301
  }
2108
2302
  }
2109
- const gs = function(e) {
2303
+ const zn = function(e) {
2110
2304
  return {
2111
2305
  /**
2112
2306
  *
@@ -2116,16 +2310,16 @@ const gs = function(e) {
2116
2310
  * @param {*} [options] Override http request option.
2117
2311
  * @throws {RequiredError}
2118
2312
  */
2119
- createGroup: async (t, r, s = {}) => {
2120
- R("createGroup", "groupToCreate", t);
2121
- const n = "/api/groups", o = new URL(n, P);
2313
+ createGroup: async (t, r, n = {}) => {
2314
+ I("createGroup", "groupToCreate", t);
2315
+ const s = "/api/groups", o = new URL(s, C);
2122
2316
  let a;
2123
2317
  e && (a = e.baseOptions);
2124
- const i = { method: "POST", ...a, ...s }, l = {}, c = {};
2125
- l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
2318
+ const i = { method: "POST", ...a, ...n }, l = {}, c = {};
2319
+ l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), L(o, c);
2126
2320
  let d = a && a.headers ? a.headers : {};
2127
- return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
2128
- url: S(o),
2321
+ return i.headers = { ...l, ...d, ...n.headers }, i.data = F(t, i, e), {
2322
+ url: g(o),
2129
2323
  options: i
2130
2324
  };
2131
2325
  },
@@ -2137,16 +2331,16 @@ const gs = function(e) {
2137
2331
  * @param {*} [options] Override http request option.
2138
2332
  * @throws {RequiredError}
2139
2333
  */
2140
- deleteGroup: async (t, r, s = {}) => {
2141
- R("deleteGroup", "groupId", t);
2142
- const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
2334
+ deleteGroup: async (t, r, n = {}) => {
2335
+ I("deleteGroup", "groupId", t);
2336
+ const s = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(s, C);
2143
2337
  let a;
2144
2338
  e && (a = e.baseOptions);
2145
- const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
2146
- r != null && (l["X-RequestID"] = String(r)), I(o, c);
2339
+ const i = { method: "DELETE", ...a, ...n }, l = {}, c = {};
2340
+ r != null && (l["X-RequestID"] = String(r)), L(o, c);
2147
2341
  let d = a && a.headers ? a.headers : {};
2148
- return i.headers = { ...l, ...d, ...s.headers }, {
2149
- url: S(o),
2342
+ return i.headers = { ...l, ...d, ...n.headers }, {
2343
+ url: g(o),
2150
2344
  options: i
2151
2345
  };
2152
2346
  },
@@ -2159,15 +2353,15 @@ const gs = function(e) {
2159
2353
  * @param {*} [options] Override http request option.
2160
2354
  * @throws {RequiredError}
2161
2355
  */
2162
- getAllGroups: async (t, r, s, n = {}) => {
2163
- const o = "/api/groups", a = new URL(o, P);
2356
+ getAllGroups: async (t, r, n, s = {}) => {
2357
+ const o = "/api/groups", a = new URL(o, C);
2164
2358
  let i;
2165
2359
  e && (i = e.baseOptions);
2166
- const l = { method: "GET", ...i, ...n }, c = {}, d = {};
2167
- r !== void 0 && (d.page = r), s !== void 0 && (d.size = s), t != null && (c["X-RequestID"] = String(t)), I(a, d);
2360
+ const l = { method: "GET", ...i, ...s }, c = {}, d = {};
2361
+ r !== void 0 && (d.page = r), n !== void 0 && (d.size = n), t != null && (c["X-RequestID"] = String(t)), L(a, d);
2168
2362
  let p = i && i.headers ? i.headers : {};
2169
- return l.headers = { ...c, ...p, ...n.headers }, {
2170
- url: S(a),
2363
+ return l.headers = { ...c, ...p, ...s.headers }, {
2364
+ url: g(a),
2171
2365
  options: l
2172
2366
  };
2173
2367
  },
@@ -2181,16 +2375,16 @@ const gs = function(e) {
2181
2375
  * @param {*} [options] Override http request option.
2182
2376
  * @throws {RequiredError}
2183
2377
  */
2184
- getAllPersonsByGroupId: async (t, r, s, n, o = {}) => {
2185
- R("getAllPersonsByGroupId", "groupId", t);
2186
- const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), i = new URL(a, P);
2378
+ getAllPersonsByGroupId: async (t, r, n, s, o = {}) => {
2379
+ I("getAllPersonsByGroupId", "groupId", t);
2380
+ const a = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), i = new URL(a, C);
2187
2381
  let l;
2188
2382
  e && (l = e.baseOptions);
2189
2383
  const c = { method: "GET", ...l, ...o }, d = {}, p = {};
2190
- s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
2384
+ n !== void 0 && (p.page = n), s !== void 0 && (p.size = s), r != null && (d["X-RequestID"] = String(r)), L(i, p);
2191
2385
  let _ = l && l.headers ? l.headers : {};
2192
2386
  return c.headers = { ...d, ..._, ...o.headers }, {
2193
- url: S(i),
2387
+ url: g(i),
2194
2388
  options: c
2195
2389
  };
2196
2390
  },
@@ -2202,16 +2396,16 @@ const gs = function(e) {
2202
2396
  * @param {*} [options] Override http request option.
2203
2397
  * @throws {RequiredError}
2204
2398
  */
2205
- getGroup: async (t, r, s = {}) => {
2206
- R("getGroup", "groupId", t);
2207
- const n = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(n, P);
2399
+ getGroup: async (t, r, n = {}) => {
2400
+ I("getGroup", "groupId", t);
2401
+ const s = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), o = new URL(s, C);
2208
2402
  let a;
2209
2403
  e && (a = e.baseOptions);
2210
- const i = { method: "GET", ...a, ...s }, l = {}, c = {};
2211
- r != null && (l["X-RequestID"] = String(r)), I(o, c);
2404
+ const i = { method: "GET", ...a, ...n }, l = {}, c = {};
2405
+ r != null && (l["X-RequestID"] = String(r)), L(o, c);
2212
2406
  let d = a && a.headers ? a.headers : {};
2213
- return i.headers = { ...l, ...d, ...s.headers }, {
2214
- url: S(o),
2407
+ return i.headers = { ...l, ...d, ...n.headers }, {
2408
+ url: g(o),
2215
2409
  options: i
2216
2410
  };
2217
2411
  },
@@ -2224,16 +2418,16 @@ const gs = function(e) {
2224
2418
  * @param {*} [options] Override http request option.
2225
2419
  * @throws {RequiredError}
2226
2420
  */
2227
- updateGroup: async (t, r, s, n = {}) => {
2228
- R("updateGroup", "groupId", t), R("updateGroup", "groupToCreate", r);
2229
- const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
2421
+ updateGroup: async (t, r, n, s = {}) => {
2422
+ I("updateGroup", "groupId", t), I("updateGroup", "groupToCreate", r);
2423
+ const o = "/api/groups/{groupId}".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, C);
2230
2424
  let i;
2231
2425
  e && (i = e.baseOptions);
2232
- const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
2233
- c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
2426
+ const l = { method: "PUT", ...i, ...s }, c = {}, d = {};
2427
+ c["Content-Type"] = "application/json", n != null && (c["X-RequestID"] = String(n)), L(a, d);
2234
2428
  let p = i && i.headers ? i.headers : {};
2235
- return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
2236
- url: S(a),
2429
+ return l.headers = { ...c, ...p, ...s.headers }, l.data = F(r, l, e), {
2430
+ url: g(a),
2237
2431
  options: l
2238
2432
  };
2239
2433
  },
@@ -2246,22 +2440,22 @@ const gs = function(e) {
2246
2440
  * @param {*} [options] Override http request option.
2247
2441
  * @throws {RequiredError}
2248
2442
  */
2249
- updatePersonsInGroup: async (t, r, s, n = {}) => {
2250
- R("updatePersonsInGroup", "groupId", t), R("updatePersonsInGroup", "updateGroup", r);
2251
- const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, P);
2443
+ updatePersonsInGroup: async (t, r, n, s = {}) => {
2444
+ I("updatePersonsInGroup", "groupId", t), I("updatePersonsInGroup", "updateGroup", r);
2445
+ const o = "/api/groups/{groupId}/persons".replace("{groupId}", encodeURIComponent(String(t))), a = new URL(o, C);
2252
2446
  let i;
2253
2447
  e && (i = e.baseOptions);
2254
- const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
2255
- c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
2448
+ const l = { method: "PUT", ...i, ...s }, c = {}, d = {};
2449
+ c["Content-Type"] = "application/json", n != null && (c["X-RequestID"] = String(n)), L(a, d);
2256
2450
  let p = i && i.headers ? i.headers : {};
2257
- return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
2258
- url: S(a),
2451
+ return l.headers = { ...c, ...p, ...s.headers }, l.data = F(r, l, e), {
2452
+ url: g(a),
2259
2453
  options: l
2260
2454
  };
2261
2455
  }
2262
2456
  };
2263
- }, $ = function(e) {
2264
- const t = gs(e);
2457
+ }, Z = function(e) {
2458
+ const t = zn(e);
2265
2459
  return {
2266
2460
  /**
2267
2461
  *
@@ -2271,9 +2465,9 @@ const gs = function(e) {
2271
2465
  * @param {*} [options] Override http request option.
2272
2466
  * @throws {RequiredError}
2273
2467
  */
2274
- async createGroup(r, s, n) {
2275
- const o = await t.createGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.createGroup"]?.[a]?.url;
2276
- return (l, c) => b(o, O, m, e)(l, i || c);
2468
+ async createGroup(r, n, s) {
2469
+ const o = await t.createGroup(r, n, s), a = e?.serverIndex ?? 0, i = w["GroupApi.createGroup"]?.[a]?.url;
2470
+ return (l, c) => N(o, O, y, e)(l, i || c);
2277
2471
  },
2278
2472
  /**
2279
2473
  *
@@ -2283,9 +2477,9 @@ const gs = function(e) {
2283
2477
  * @param {*} [options] Override http request option.
2284
2478
  * @throws {RequiredError}
2285
2479
  */
2286
- async deleteGroup(r, s, n) {
2287
- const o = await t.deleteGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.deleteGroup"]?.[a]?.url;
2288
- return (l, c) => b(o, O, m, e)(l, i || c);
2480
+ async deleteGroup(r, n, s) {
2481
+ const o = await t.deleteGroup(r, n, s), a = e?.serverIndex ?? 0, i = w["GroupApi.deleteGroup"]?.[a]?.url;
2482
+ return (l, c) => N(o, O, y, e)(l, i || c);
2289
2483
  },
2290
2484
  /**
2291
2485
  *
@@ -2296,9 +2490,9 @@ const gs = function(e) {
2296
2490
  * @param {*} [options] Override http request option.
2297
2491
  * @throws {RequiredError}
2298
2492
  */
2299
- async getAllGroups(r, s, n, o) {
2300
- const a = await t.getAllGroups(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.getAllGroups"]?.[i]?.url;
2301
- return (c, d) => b(a, O, m, e)(c, l || d);
2493
+ async getAllGroups(r, n, s, o) {
2494
+ const a = await t.getAllGroups(r, n, s, o), i = e?.serverIndex ?? 0, l = w["GroupApi.getAllGroups"]?.[i]?.url;
2495
+ return (c, d) => N(a, O, y, e)(c, l || d);
2302
2496
  },
2303
2497
  /**
2304
2498
  *
@@ -2310,9 +2504,9 @@ const gs = function(e) {
2310
2504
  * @param {*} [options] Override http request option.
2311
2505
  * @throws {RequiredError}
2312
2506
  */
2313
- async getAllPersonsByGroupId(r, s, n, o, a) {
2314
- const i = await t.getAllPersonsByGroupId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["GroupApi.getAllPersonsByGroupId"]?.[l]?.url;
2315
- return (d, p) => b(i, O, m, e)(d, c || p);
2507
+ async getAllPersonsByGroupId(r, n, s, o, a) {
2508
+ const i = await t.getAllPersonsByGroupId(r, n, s, o, a), l = e?.serverIndex ?? 0, c = w["GroupApi.getAllPersonsByGroupId"]?.[l]?.url;
2509
+ return (d, p) => N(i, O, y, e)(d, c || p);
2316
2510
  },
2317
2511
  /**
2318
2512
  *
@@ -2322,9 +2516,9 @@ const gs = function(e) {
2322
2516
  * @param {*} [options] Override http request option.
2323
2517
  * @throws {RequiredError}
2324
2518
  */
2325
- async getGroup(r, s, n) {
2326
- const o = await t.getGroup(r, s, n), a = e?.serverIndex ?? 0, i = T["GroupApi.getGroup"]?.[a]?.url;
2327
- return (l, c) => b(o, O, m, e)(l, i || c);
2519
+ async getGroup(r, n, s) {
2520
+ const o = await t.getGroup(r, n, s), a = e?.serverIndex ?? 0, i = w["GroupApi.getGroup"]?.[a]?.url;
2521
+ return (l, c) => N(o, O, y, e)(l, i || c);
2328
2522
  },
2329
2523
  /**
2330
2524
  *
@@ -2335,9 +2529,9 @@ const gs = function(e) {
2335
2529
  * @param {*} [options] Override http request option.
2336
2530
  * @throws {RequiredError}
2337
2531
  */
2338
- async updateGroup(r, s, n, o) {
2339
- const a = await t.updateGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updateGroup"]?.[i]?.url;
2340
- return (c, d) => b(a, O, m, e)(c, l || d);
2532
+ async updateGroup(r, n, s, o) {
2533
+ const a = await t.updateGroup(r, n, s, o), i = e?.serverIndex ?? 0, l = w["GroupApi.updateGroup"]?.[i]?.url;
2534
+ return (c, d) => N(a, O, y, e)(c, l || d);
2341
2535
  },
2342
2536
  /**
2343
2537
  *
@@ -2348,13 +2542,13 @@ const gs = function(e) {
2348
2542
  * @param {*} [options] Override http request option.
2349
2543
  * @throws {RequiredError}
2350
2544
  */
2351
- async updatePersonsInGroup(r, s, n, o) {
2352
- const a = await t.updatePersonsInGroup(r, s, n, o), i = e?.serverIndex ?? 0, l = T["GroupApi.updatePersonsInGroup"]?.[i]?.url;
2353
- return (c, d) => b(a, O, m, e)(c, l || d);
2545
+ async updatePersonsInGroup(r, n, s, o) {
2546
+ const a = await t.updatePersonsInGroup(r, n, s, o), i = e?.serverIndex ?? 0, l = w["GroupApi.updatePersonsInGroup"]?.[i]?.url;
2547
+ return (c, d) => N(a, O, y, e)(c, l || d);
2354
2548
  }
2355
2549
  };
2356
2550
  };
2357
- let Vs = class extends Q {
2551
+ let $n = class extends ae {
2358
2552
  /**
2359
2553
  *
2360
2554
  * @summary Create group
@@ -2363,8 +2557,8 @@ let Vs = class extends Q {
2363
2557
  * @param {*} [options] Override http request option.
2364
2558
  * @throws {RequiredError}
2365
2559
  */
2366
- createGroup(t, r, s) {
2367
- return $(this.configuration).createGroup(t, r, s).then((n) => n(this.axios, this.basePath));
2560
+ createGroup(t, r, n) {
2561
+ return Z(this.configuration).createGroup(t, r, n).then((s) => s(this.axios, this.basePath));
2368
2562
  }
2369
2563
  /**
2370
2564
  *
@@ -2374,8 +2568,8 @@ let Vs = class extends Q {
2374
2568
  * @param {*} [options] Override http request option.
2375
2569
  * @throws {RequiredError}
2376
2570
  */
2377
- deleteGroup(t, r, s) {
2378
- return $(this.configuration).deleteGroup(t, r, s).then((n) => n(this.axios, this.basePath));
2571
+ deleteGroup(t, r, n) {
2572
+ return Z(this.configuration).deleteGroup(t, r, n).then((s) => s(this.axios, this.basePath));
2379
2573
  }
2380
2574
  /**
2381
2575
  *
@@ -2386,8 +2580,8 @@ let Vs = class extends Q {
2386
2580
  * @param {*} [options] Override http request option.
2387
2581
  * @throws {RequiredError}
2388
2582
  */
2389
- getAllGroups(t, r, s, n) {
2390
- return $(this.configuration).getAllGroups(t, r, s, n).then((o) => o(this.axios, this.basePath));
2583
+ getAllGroups(t, r, n, s) {
2584
+ return Z(this.configuration).getAllGroups(t, r, n, s).then((o) => o(this.axios, this.basePath));
2391
2585
  }
2392
2586
  /**
2393
2587
  *
@@ -2399,8 +2593,8 @@ let Vs = class extends Q {
2399
2593
  * @param {*} [options] Override http request option.
2400
2594
  * @throws {RequiredError}
2401
2595
  */
2402
- getAllPersonsByGroupId(t, r, s, n, o) {
2403
- return $(this.configuration).getAllPersonsByGroupId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
2596
+ getAllPersonsByGroupId(t, r, n, s, o) {
2597
+ return Z(this.configuration).getAllPersonsByGroupId(t, r, n, s, o).then((a) => a(this.axios, this.basePath));
2404
2598
  }
2405
2599
  /**
2406
2600
  *
@@ -2410,8 +2604,8 @@ let Vs = class extends Q {
2410
2604
  * @param {*} [options] Override http request option.
2411
2605
  * @throws {RequiredError}
2412
2606
  */
2413
- getGroup(t, r, s) {
2414
- return $(this.configuration).getGroup(t, r, s).then((n) => n(this.axios, this.basePath));
2607
+ getGroup(t, r, n) {
2608
+ return Z(this.configuration).getGroup(t, r, n).then((s) => s(this.axios, this.basePath));
2415
2609
  }
2416
2610
  /**
2417
2611
  *
@@ -2422,8 +2616,8 @@ let Vs = class extends Q {
2422
2616
  * @param {*} [options] Override http request option.
2423
2617
  * @throws {RequiredError}
2424
2618
  */
2425
- updateGroup(t, r, s, n) {
2426
- return $(this.configuration).updateGroup(t, r, s, n).then((o) => o(this.axios, this.basePath));
2619
+ updateGroup(t, r, n, s) {
2620
+ return Z(this.configuration).updateGroup(t, r, n, s).then((o) => o(this.axios, this.basePath));
2427
2621
  }
2428
2622
  /**
2429
2623
  *
@@ -2434,41 +2628,41 @@ let Vs = class extends Q {
2434
2628
  * @param {*} [options] Override http request option.
2435
2629
  * @throws {RequiredError}
2436
2630
  */
2437
- updatePersonsInGroup(t, r, s, n) {
2438
- return $(this.configuration).updatePersonsInGroup(t, r, s, n).then((o) => o(this.axios, this.basePath));
2631
+ updatePersonsInGroup(t, r, n, s) {
2632
+ return Z(this.configuration).updatePersonsInGroup(t, r, n, s).then((o) => o(this.axios, this.basePath));
2439
2633
  }
2440
2634
  };
2441
- class Ns {
2442
- constructor(t, r, s) {
2443
- this.superClass = new Vs(t, r, s);
2635
+ class Wn {
2636
+ constructor(t, r, n) {
2637
+ this.superClass = new $n(t, r, n);
2444
2638
  }
2445
- async createGroup(t, r, s) {
2446
- const n = {
2639
+ async createGroup(t, r, n) {
2640
+ const s = {
2447
2641
  ...t,
2448
2642
  metadata: t?.metadata ? t.metadata : {}
2449
2643
  };
2450
- return (await this.superClass.createGroup(n, r, s)).data;
2644
+ return (await this.superClass.createGroup(s, r, n)).data;
2451
2645
  }
2452
- async deleteGroup(t, r, s) {
2453
- await this.superClass.deleteGroup(t, r, s);
2646
+ async deleteGroup(t, r, n) {
2647
+ await this.superClass.deleteGroup(t, r, n);
2454
2648
  }
2455
- async getAllGroups(t, r, s, n) {
2456
- return (await this.superClass.getAllGroups(s, t, r, n)).data;
2649
+ async getAllGroups(t, r, n, s) {
2650
+ return (await this.superClass.getAllGroups(n, t, r, s)).data;
2457
2651
  }
2458
- async getAllPersonsByGroupId(t, r, s, n, o) {
2459
- return (await this.superClass.getAllPersonsByGroupId(s, n, t, r, o)).data;
2652
+ async getAllPersonsByGroupId(t, r, n, s, o) {
2653
+ return (await this.superClass.getAllPersonsByGroupId(n, s, t, r, o)).data;
2460
2654
  }
2461
- async getGroup(t, r, s) {
2462
- return (await this.superClass.getGroup(t, r, s)).data;
2655
+ async getGroup(t, r, n) {
2656
+ return (await this.superClass.getGroup(t, r, n)).data;
2463
2657
  }
2464
- async updateGroup(t, r, s, n) {
2465
- await this.superClass.updateGroup(t, r, s, n);
2658
+ async updateGroup(t, r, n, s) {
2659
+ await this.superClass.updateGroup(t, r, n, s);
2466
2660
  }
2467
- async updatePersonsInGroup(t, r, s, n) {
2468
- await this.superClass.updatePersonsInGroup(t, r, s, n);
2661
+ async updatePersonsInGroup(t, r, n, s) {
2662
+ await this.superClass.updatePersonsInGroup(t, r, n, s);
2469
2663
  }
2470
2664
  }
2471
- const Us = function(e) {
2665
+ const Xn = function(e) {
2472
2666
  return {
2473
2667
  /**
2474
2668
  *
@@ -2479,16 +2673,16 @@ const Us = function(e) {
2479
2673
  * @param {*} [options] Override http request option.
2480
2674
  * @throws {RequiredError}
2481
2675
  */
2482
- addImageToPerson: async (t, r, s, n = {}) => {
2483
- R("addImageToPerson", "personId", t), R("addImageToPerson", "addImageToPersonRequest", r);
2484
- const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
2676
+ addImageToPerson: async (t, r, n, s = {}) => {
2677
+ I("addImageToPerson", "personId", t), I("addImageToPerson", "addImageToPersonRequest", r);
2678
+ const o = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, C);
2485
2679
  let i;
2486
2680
  e && (i = e.baseOptions);
2487
- const l = { method: "POST", ...i, ...n }, c = {}, d = {};
2488
- c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
2681
+ const l = { method: "POST", ...i, ...s }, c = {}, d = {};
2682
+ c["Content-Type"] = "application/json", n != null && (c["X-RequestID"] = String(n)), L(a, d);
2489
2683
  let p = i && i.headers ? i.headers : {};
2490
- return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
2491
- url: S(a),
2684
+ return l.headers = { ...c, ...p, ...s.headers }, l.data = F(r, l, e), {
2685
+ url: g(a),
2492
2686
  options: l
2493
2687
  };
2494
2688
  },
@@ -2500,16 +2694,16 @@ const Us = function(e) {
2500
2694
  * @param {*} [options] Override http request option.
2501
2695
  * @throws {RequiredError}
2502
2696
  */
2503
- createPerson: async (t, r, s = {}) => {
2504
- R("createPerson", "personFields", t);
2505
- const n = "/api/persons", o = new URL(n, P);
2697
+ createPerson: async (t, r, n = {}) => {
2698
+ I("createPerson", "personFields", t);
2699
+ const s = "/api/persons", o = new URL(s, C);
2506
2700
  let a;
2507
2701
  e && (a = e.baseOptions);
2508
- const i = { method: "POST", ...a, ...s }, l = {}, c = {};
2509
- l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), I(o, c);
2702
+ const i = { method: "POST", ...a, ...n }, l = {}, c = {};
2703
+ l["Content-Type"] = "application/json", r != null && (l["X-RequestID"] = String(r)), L(o, c);
2510
2704
  let d = a && a.headers ? a.headers : {};
2511
- return i.headers = { ...l, ...d, ...s.headers }, i.data = M(t, i, e), {
2512
- url: S(o),
2705
+ return i.headers = { ...l, ...d, ...n.headers }, i.data = F(t, i, e), {
2706
+ url: g(o),
2513
2707
  options: i
2514
2708
  };
2515
2709
  },
@@ -2522,16 +2716,16 @@ const Us = function(e) {
2522
2716
  * @param {*} [options] Override http request option.
2523
2717
  * @throws {RequiredError}
2524
2718
  */
2525
- deleteImageOfPerson: async (t, r, s, n = {}) => {
2526
- R("deleteImageOfPerson", "personId", t), R("deleteImageOfPerson", "imageId", r);
2527
- const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
2719
+ deleteImageOfPerson: async (t, r, n, s = {}) => {
2720
+ I("deleteImageOfPerson", "personId", t), I("deleteImageOfPerson", "imageId", r);
2721
+ const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, C);
2528
2722
  let i;
2529
2723
  e && (i = e.baseOptions);
2530
- const l = { method: "DELETE", ...i, ...n }, c = {}, d = {};
2531
- s != null && (c["X-RequestID"] = String(s)), I(a, d);
2724
+ const l = { method: "DELETE", ...i, ...s }, c = {}, d = {};
2725
+ n != null && (c["X-RequestID"] = String(n)), L(a, d);
2532
2726
  let p = i && i.headers ? i.headers : {};
2533
- return l.headers = { ...c, ...p, ...n.headers }, {
2534
- url: S(a),
2727
+ return l.headers = { ...c, ...p, ...s.headers }, {
2728
+ url: g(a),
2535
2729
  options: l
2536
2730
  };
2537
2731
  },
@@ -2543,16 +2737,16 @@ const Us = function(e) {
2543
2737
  * @param {*} [options] Override http request option.
2544
2738
  * @throws {RequiredError}
2545
2739
  */
2546
- deletePerson: async (t, r, s = {}) => {
2547
- R("deletePerson", "personId", t);
2548
- const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
2740
+ deletePerson: async (t, r, n = {}) => {
2741
+ I("deletePerson", "personId", t);
2742
+ const s = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(s, C);
2549
2743
  let a;
2550
2744
  e && (a = e.baseOptions);
2551
- const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
2552
- r != null && (l["X-RequestID"] = String(r)), I(o, c);
2745
+ const i = { method: "DELETE", ...a, ...n }, l = {}, c = {};
2746
+ r != null && (l["X-RequestID"] = String(r)), L(o, c);
2553
2747
  let d = a && a.headers ? a.headers : {};
2554
- return i.headers = { ...l, ...d, ...s.headers }, {
2555
- url: S(o),
2748
+ return i.headers = { ...l, ...d, ...n.headers }, {
2749
+ url: g(o),
2556
2750
  options: i
2557
2751
  };
2558
2752
  },
@@ -2566,16 +2760,16 @@ const Us = function(e) {
2566
2760
  * @param {*} [options] Override http request option.
2567
2761
  * @throws {RequiredError}
2568
2762
  */
2569
- getAllGroupsByPersonId: async (t, r, s, n, o = {}) => {
2570
- R("getAllGroupsByPersonId", "personId", t);
2571
- const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
2763
+ getAllGroupsByPersonId: async (t, r, n, s, o = {}) => {
2764
+ I("getAllGroupsByPersonId", "personId", t);
2765
+ const a = "/api/persons/{personId}/groups".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, C);
2572
2766
  let l;
2573
2767
  e && (l = e.baseOptions);
2574
2768
  const c = { method: "GET", ...l, ...o }, d = {}, p = {};
2575
- s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
2769
+ n !== void 0 && (p.page = n), s !== void 0 && (p.size = s), r != null && (d["X-RequestID"] = String(r)), L(i, p);
2576
2770
  let _ = l && l.headers ? l.headers : {};
2577
2771
  return c.headers = { ...d, ..._, ...o.headers }, {
2578
- url: S(i),
2772
+ url: g(i),
2579
2773
  options: c
2580
2774
  };
2581
2775
  },
@@ -2589,16 +2783,16 @@ const Us = function(e) {
2589
2783
  * @param {*} [options] Override http request option.
2590
2784
  * @throws {RequiredError}
2591
2785
  */
2592
- getAllImagesByPersonId: async (t, r, s, n, o = {}) => {
2593
- R("getAllImagesByPersonId", "personId", t);
2594
- const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, P);
2786
+ getAllImagesByPersonId: async (t, r, n, s, o = {}) => {
2787
+ I("getAllImagesByPersonId", "personId", t);
2788
+ const a = "/api/persons/{personId}/images".replace("{personId}", encodeURIComponent(String(t))), i = new URL(a, C);
2595
2789
  let l;
2596
2790
  e && (l = e.baseOptions);
2597
2791
  const c = { method: "GET", ...l, ...o }, d = {}, p = {};
2598
- s !== void 0 && (p.page = s), n !== void 0 && (p.size = n), r != null && (d["X-RequestID"] = String(r)), I(i, p);
2792
+ n !== void 0 && (p.page = n), s !== void 0 && (p.size = s), r != null && (d["X-RequestID"] = String(r)), L(i, p);
2599
2793
  let _ = l && l.headers ? l.headers : {};
2600
2794
  return c.headers = { ...d, ..._, ...o.headers }, {
2601
- url: S(i),
2795
+ url: g(i),
2602
2796
  options: c
2603
2797
  };
2604
2798
  },
@@ -2611,16 +2805,16 @@ const Us = function(e) {
2611
2805
  * @param {*} [options] Override http request option.
2612
2806
  * @throws {RequiredError}
2613
2807
  */
2614
- getImageOfPerson: async (t, r, s, n = {}) => {
2615
- R("getImageOfPerson", "personId", t), R("getImageOfPerson", "imageId", r);
2616
- const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, P);
2808
+ getImageOfPerson: async (t, r, n, s = {}) => {
2809
+ I("getImageOfPerson", "personId", t), I("getImageOfPerson", "imageId", r);
2810
+ const o = "/api/persons/{personId}/images/{imageId}".replace("{personId}", encodeURIComponent(String(t))).replace("{imageId}", encodeURIComponent(String(r))), a = new URL(o, C);
2617
2811
  let i;
2618
2812
  e && (i = e.baseOptions);
2619
- const l = { method: "GET", ...i, ...n }, c = {}, d = {};
2620
- s != null && (c["X-RequestID"] = String(s)), I(a, d);
2813
+ const l = { method: "GET", ...i, ...s }, c = {}, d = {};
2814
+ n != null && (c["X-RequestID"] = String(n)), L(a, d);
2621
2815
  let p = i && i.headers ? i.headers : {};
2622
- return l.headers = { ...c, ...p, ...n.headers }, {
2623
- url: S(a),
2816
+ return l.headers = { ...c, ...p, ...s.headers }, {
2817
+ url: g(a),
2624
2818
  options: l
2625
2819
  };
2626
2820
  },
@@ -2632,16 +2826,16 @@ const Us = function(e) {
2632
2826
  * @param {*} [options] Override http request option.
2633
2827
  * @throws {RequiredError}
2634
2828
  */
2635
- getPerson: async (t, r, s = {}) => {
2636
- R("getPerson", "personId", t);
2637
- const n = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(n, P);
2829
+ getPerson: async (t, r, n = {}) => {
2830
+ I("getPerson", "personId", t);
2831
+ const s = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), o = new URL(s, C);
2638
2832
  let a;
2639
2833
  e && (a = e.baseOptions);
2640
- const i = { method: "GET", ...a, ...s }, l = {}, c = {};
2641
- r != null && (l["X-RequestID"] = String(r)), I(o, c);
2834
+ const i = { method: "GET", ...a, ...n }, l = {}, c = {};
2835
+ r != null && (l["X-RequestID"] = String(r)), L(o, c);
2642
2836
  let d = a && a.headers ? a.headers : {};
2643
- return i.headers = { ...l, ...d, ...s.headers }, {
2644
- url: S(o),
2837
+ return i.headers = { ...l, ...d, ...n.headers }, {
2838
+ url: g(o),
2645
2839
  options: i
2646
2840
  };
2647
2841
  },
@@ -2654,22 +2848,22 @@ const Us = function(e) {
2654
2848
  * @param {*} [options] Override http request option.
2655
2849
  * @throws {RequiredError}
2656
2850
  */
2657
- updatePerson: async (t, r, s, n = {}) => {
2658
- R("updatePerson", "personId", t), R("updatePerson", "personToUpdateFields", r);
2659
- const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, P);
2851
+ updatePerson: async (t, r, n, s = {}) => {
2852
+ I("updatePerson", "personId", t), I("updatePerson", "personToUpdateFields", r);
2853
+ const o = "/api/persons/{personId}".replace("{personId}", encodeURIComponent(String(t))), a = new URL(o, C);
2660
2854
  let i;
2661
2855
  e && (i = e.baseOptions);
2662
- const l = { method: "PUT", ...i, ...n }, c = {}, d = {};
2663
- c["Content-Type"] = "application/json", s != null && (c["X-RequestID"] = String(s)), I(a, d);
2856
+ const l = { method: "PUT", ...i, ...s }, c = {}, d = {};
2857
+ c["Content-Type"] = "application/json", n != null && (c["X-RequestID"] = String(n)), L(a, d);
2664
2858
  let p = i && i.headers ? i.headers : {};
2665
- return l.headers = { ...c, ...p, ...n.headers }, l.data = M(r, l, e), {
2666
- url: S(a),
2859
+ return l.headers = { ...c, ...p, ...s.headers }, l.data = F(r, l, e), {
2860
+ url: g(a),
2667
2861
  options: l
2668
2862
  };
2669
2863
  }
2670
2864
  };
2671
- }, v = function(e) {
2672
- const t = Us(e);
2865
+ }, q = function(e) {
2866
+ const t = Xn(e);
2673
2867
  return {
2674
2868
  /**
2675
2869
  *
@@ -2680,9 +2874,9 @@ const Us = function(e) {
2680
2874
  * @param {*} [options] Override http request option.
2681
2875
  * @throws {RequiredError}
2682
2876
  */
2683
- async addImageToPerson(r, s, n, o) {
2684
- const a = await t.addImageToPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.addImageToPerson"]?.[i]?.url;
2685
- return (c, d) => b(a, O, m, e)(c, l || d);
2877
+ async addImageToPerson(r, n, s, o) {
2878
+ const a = await t.addImageToPerson(r, n, s, o), i = e?.serverIndex ?? 0, l = w["PersonApi.addImageToPerson"]?.[i]?.url;
2879
+ return (c, d) => N(a, O, y, e)(c, l || d);
2686
2880
  },
2687
2881
  /**
2688
2882
  *
@@ -2692,9 +2886,9 @@ const Us = function(e) {
2692
2886
  * @param {*} [options] Override http request option.
2693
2887
  * @throws {RequiredError}
2694
2888
  */
2695
- async createPerson(r, s, n) {
2696
- const o = await t.createPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.createPerson"]?.[a]?.url;
2697
- return (l, c) => b(o, O, m, e)(l, i || c);
2889
+ async createPerson(r, n, s) {
2890
+ const o = await t.createPerson(r, n, s), a = e?.serverIndex ?? 0, i = w["PersonApi.createPerson"]?.[a]?.url;
2891
+ return (l, c) => N(o, O, y, e)(l, i || c);
2698
2892
  },
2699
2893
  /**
2700
2894
  *
@@ -2705,9 +2899,9 @@ const Us = function(e) {
2705
2899
  * @param {*} [options] Override http request option.
2706
2900
  * @throws {RequiredError}
2707
2901
  */
2708
- async deleteImageOfPerson(r, s, n, o) {
2709
- const a = await t.deleteImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.deleteImageOfPerson"]?.[i]?.url;
2710
- return (c, d) => b(a, O, m, e)(c, l || d);
2902
+ async deleteImageOfPerson(r, n, s, o) {
2903
+ const a = await t.deleteImageOfPerson(r, n, s, o), i = e?.serverIndex ?? 0, l = w["PersonApi.deleteImageOfPerson"]?.[i]?.url;
2904
+ return (c, d) => N(a, O, y, e)(c, l || d);
2711
2905
  },
2712
2906
  /**
2713
2907
  *
@@ -2717,9 +2911,9 @@ const Us = function(e) {
2717
2911
  * @param {*} [options] Override http request option.
2718
2912
  * @throws {RequiredError}
2719
2913
  */
2720
- async deletePerson(r, s, n) {
2721
- const o = await t.deletePerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.deletePerson"]?.[a]?.url;
2722
- return (l, c) => b(o, O, m, e)(l, i || c);
2914
+ async deletePerson(r, n, s) {
2915
+ const o = await t.deletePerson(r, n, s), a = e?.serverIndex ?? 0, i = w["PersonApi.deletePerson"]?.[a]?.url;
2916
+ return (l, c) => N(o, O, y, e)(l, i || c);
2723
2917
  },
2724
2918
  /**
2725
2919
  *
@@ -2731,9 +2925,9 @@ const Us = function(e) {
2731
2925
  * @param {*} [options] Override http request option.
2732
2926
  * @throws {RequiredError}
2733
2927
  */
2734
- async getAllGroupsByPersonId(r, s, n, o, a) {
2735
- const i = await t.getAllGroupsByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllGroupsByPersonId"]?.[l]?.url;
2736
- return (d, p) => b(i, O, m, e)(d, c || p);
2928
+ async getAllGroupsByPersonId(r, n, s, o, a) {
2929
+ const i = await t.getAllGroupsByPersonId(r, n, s, o, a), l = e?.serverIndex ?? 0, c = w["PersonApi.getAllGroupsByPersonId"]?.[l]?.url;
2930
+ return (d, p) => N(i, O, y, e)(d, c || p);
2737
2931
  },
2738
2932
  /**
2739
2933
  *
@@ -2745,9 +2939,9 @@ const Us = function(e) {
2745
2939
  * @param {*} [options] Override http request option.
2746
2940
  * @throws {RequiredError}
2747
2941
  */
2748
- async getAllImagesByPersonId(r, s, n, o, a) {
2749
- const i = await t.getAllImagesByPersonId(r, s, n, o, a), l = e?.serverIndex ?? 0, c = T["PersonApi.getAllImagesByPersonId"]?.[l]?.url;
2750
- return (d, p) => b(i, O, m, e)(d, c || p);
2942
+ async getAllImagesByPersonId(r, n, s, o, a) {
2943
+ const i = await t.getAllImagesByPersonId(r, n, s, o, a), l = e?.serverIndex ?? 0, c = w["PersonApi.getAllImagesByPersonId"]?.[l]?.url;
2944
+ return (d, p) => N(i, O, y, e)(d, c || p);
2751
2945
  },
2752
2946
  /**
2753
2947
  *
@@ -2758,9 +2952,9 @@ const Us = function(e) {
2758
2952
  * @param {*} [options] Override http request option.
2759
2953
  * @throws {RequiredError}
2760
2954
  */
2761
- async getImageOfPerson(r, s, n, o) {
2762
- const a = await t.getImageOfPerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.getImageOfPerson"]?.[i]?.url;
2763
- return (c, d) => b(a, O, m, e)(c, l || d);
2955
+ async getImageOfPerson(r, n, s, o) {
2956
+ const a = await t.getImageOfPerson(r, n, s, o), i = e?.serverIndex ?? 0, l = w["PersonApi.getImageOfPerson"]?.[i]?.url;
2957
+ return (c, d) => N(a, O, y, e)(c, l || d);
2764
2958
  },
2765
2959
  /**
2766
2960
  *
@@ -2770,9 +2964,9 @@ const Us = function(e) {
2770
2964
  * @param {*} [options] Override http request option.
2771
2965
  * @throws {RequiredError}
2772
2966
  */
2773
- async getPerson(r, s, n) {
2774
- const o = await t.getPerson(r, s, n), a = e?.serverIndex ?? 0, i = T["PersonApi.getPerson"]?.[a]?.url;
2775
- return (l, c) => b(o, O, m, e)(l, i || c);
2967
+ async getPerson(r, n, s) {
2968
+ const o = await t.getPerson(r, n, s), a = e?.serverIndex ?? 0, i = w["PersonApi.getPerson"]?.[a]?.url;
2969
+ return (l, c) => N(o, O, y, e)(l, i || c);
2776
2970
  },
2777
2971
  /**
2778
2972
  *
@@ -2783,13 +2977,13 @@ const Us = function(e) {
2783
2977
  * @param {*} [options] Override http request option.
2784
2978
  * @throws {RequiredError}
2785
2979
  */
2786
- async updatePerson(r, s, n, o) {
2787
- const a = await t.updatePerson(r, s, n, o), i = e?.serverIndex ?? 0, l = T["PersonApi.updatePerson"]?.[i]?.url;
2788
- return (c, d) => b(a, O, m, e)(c, l || d);
2980
+ async updatePerson(r, n, s, o) {
2981
+ const a = await t.updatePerson(r, n, s, o), i = e?.serverIndex ?? 0, l = w["PersonApi.updatePerson"]?.[i]?.url;
2982
+ return (c, d) => N(a, O, y, e)(c, l || d);
2789
2983
  }
2790
2984
  };
2791
2985
  };
2792
- let xs = class extends Q {
2986
+ let Yn = class extends ae {
2793
2987
  /**
2794
2988
  *
2795
2989
  * @summary Add person image
@@ -2799,8 +2993,8 @@ let xs = class extends Q {
2799
2993
  * @param {*} [options] Override http request option.
2800
2994
  * @throws {RequiredError}
2801
2995
  */
2802
- addImageToPerson(t, r, s, n) {
2803
- return v(this.configuration).addImageToPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
2996
+ addImageToPerson(t, r, n, s) {
2997
+ return q(this.configuration).addImageToPerson(t, r, n, s).then((o) => o(this.axios, this.basePath));
2804
2998
  }
2805
2999
  /**
2806
3000
  *
@@ -2810,8 +3004,8 @@ let xs = class extends Q {
2810
3004
  * @param {*} [options] Override http request option.
2811
3005
  * @throws {RequiredError}
2812
3006
  */
2813
- createPerson(t, r, s) {
2814
- return v(this.configuration).createPerson(t, r, s).then((n) => n(this.axios, this.basePath));
3007
+ createPerson(t, r, n) {
3008
+ return q(this.configuration).createPerson(t, r, n).then((s) => s(this.axios, this.basePath));
2815
3009
  }
2816
3010
  /**
2817
3011
  *
@@ -2822,8 +3016,8 @@ let xs = class extends Q {
2822
3016
  * @param {*} [options] Override http request option.
2823
3017
  * @throws {RequiredError}
2824
3018
  */
2825
- deleteImageOfPerson(t, r, s, n) {
2826
- return v(this.configuration).deleteImageOfPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
3019
+ deleteImageOfPerson(t, r, n, s) {
3020
+ return q(this.configuration).deleteImageOfPerson(t, r, n, s).then((o) => o(this.axios, this.basePath));
2827
3021
  }
2828
3022
  /**
2829
3023
  *
@@ -2833,8 +3027,8 @@ let xs = class extends Q {
2833
3027
  * @param {*} [options] Override http request option.
2834
3028
  * @throws {RequiredError}
2835
3029
  */
2836
- deletePerson(t, r, s) {
2837
- return v(this.configuration).deletePerson(t, r, s).then((n) => n(this.axios, this.basePath));
3030
+ deletePerson(t, r, n) {
3031
+ return q(this.configuration).deletePerson(t, r, n).then((s) => s(this.axios, this.basePath));
2838
3032
  }
2839
3033
  /**
2840
3034
  *
@@ -2846,8 +3040,8 @@ let xs = class extends Q {
2846
3040
  * @param {*} [options] Override http request option.
2847
3041
  * @throws {RequiredError}
2848
3042
  */
2849
- getAllGroupsByPersonId(t, r, s, n, o) {
2850
- return v(this.configuration).getAllGroupsByPersonId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
3043
+ getAllGroupsByPersonId(t, r, n, s, o) {
3044
+ return q(this.configuration).getAllGroupsByPersonId(t, r, n, s, o).then((a) => a(this.axios, this.basePath));
2851
3045
  }
2852
3046
  /**
2853
3047
  *
@@ -2859,8 +3053,8 @@ let xs = class extends Q {
2859
3053
  * @param {*} [options] Override http request option.
2860
3054
  * @throws {RequiredError}
2861
3055
  */
2862
- getAllImagesByPersonId(t, r, s, n, o) {
2863
- return v(this.configuration).getAllImagesByPersonId(t, r, s, n, o).then((a) => a(this.axios, this.basePath));
3056
+ getAllImagesByPersonId(t, r, n, s, o) {
3057
+ return q(this.configuration).getAllImagesByPersonId(t, r, n, s, o).then((a) => a(this.axios, this.basePath));
2864
3058
  }
2865
3059
  /**
2866
3060
  *
@@ -2871,8 +3065,8 @@ let xs = class extends Q {
2871
3065
  * @param {*} [options] Override http request option.
2872
3066
  * @throws {RequiredError}
2873
3067
  */
2874
- getImageOfPerson(t, r, s, n) {
2875
- return v(this.configuration).getImageOfPerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
3068
+ getImageOfPerson(t, r, n, s) {
3069
+ return q(this.configuration).getImageOfPerson(t, r, n, s).then((o) => o(this.axios, this.basePath));
2876
3070
  }
2877
3071
  /**
2878
3072
  *
@@ -2882,8 +3076,8 @@ let xs = class extends Q {
2882
3076
  * @param {*} [options] Override http request option.
2883
3077
  * @throws {RequiredError}
2884
3078
  */
2885
- getPerson(t, r, s) {
2886
- return v(this.configuration).getPerson(t, r, s).then((n) => n(this.axios, this.basePath));
3079
+ getPerson(t, r, n) {
3080
+ return q(this.configuration).getPerson(t, r, n).then((s) => s(this.axios, this.basePath));
2887
3081
  }
2888
3082
  /**
2889
3083
  *
@@ -2894,47 +3088,47 @@ let xs = class extends Q {
2894
3088
  * @param {*} [options] Override http request option.
2895
3089
  * @throws {RequiredError}
2896
3090
  */
2897
- updatePerson(t, r, s, n) {
2898
- return v(this.configuration).updatePerson(t, r, s, n).then((o) => o(this.axios, this.basePath));
3091
+ updatePerson(t, r, n, s) {
3092
+ return q(this.configuration).updatePerson(t, r, n, s).then((o) => o(this.axios, this.basePath));
2899
3093
  }
2900
3094
  };
2901
- class Ds {
2902
- constructor(t, r, s) {
2903
- this.superClass = new xs(t, r, s);
3095
+ class Jn {
3096
+ constructor(t, r, n) {
3097
+ this.superClass = new Yn(t, r, n);
2904
3098
  }
2905
- async createPerson(t, r, s) {
2906
- const n = {
3099
+ async createPerson(t, r, n) {
3100
+ const s = {
2907
3101
  ...t,
2908
3102
  metadata: t?.metadata ? t.metadata : {}
2909
3103
  };
2910
- return (await this.superClass.createPerson(n, r, s)).data;
3104
+ return (await this.superClass.createPerson(s, r, n)).data;
2911
3105
  }
2912
- async addImageToPerson(t, r, s, n) {
2913
- return r?.image?.content && typeof r.image.content != "string" && (r.image.content = Ae(r.image.content)), (await this.superClass.addImageToPerson(t, r, s, n)).data;
3106
+ async addImageToPerson(t, r, n, s) {
3107
+ return r?.image?.content && typeof r.image.content != "string" && (r.image.content = be(r.image.content)), (await this.superClass.addImageToPerson(t, r, n, s)).data;
2914
3108
  }
2915
- async deleteImageOfPerson(t, r, s, n) {
2916
- await this.superClass.deleteImageOfPerson(r, t, s, n);
3109
+ async deleteImageOfPerson(t, r, n, s) {
3110
+ await this.superClass.deleteImageOfPerson(r, t, n, s);
2917
3111
  }
2918
- async deletePerson(t, r, s) {
2919
- await this.superClass.deletePerson(t, r, s);
3112
+ async deletePerson(t, r, n) {
3113
+ await this.superClass.deletePerson(t, r, n);
2920
3114
  }
2921
- async getAllGroupsByPersonId(t, r, s, n, o) {
2922
- return (await this.superClass.getAllGroupsByPersonId(s, n, t, r, o)).data;
3115
+ async getAllGroupsByPersonId(t, r, n, s, o) {
3116
+ return (await this.superClass.getAllGroupsByPersonId(n, s, t, r, o)).data;
2923
3117
  }
2924
- async getAllImagesByPersonId(t, r, s, n, o) {
2925
- return (await this.superClass.getAllImagesByPersonId(s, n, t, r, o)).data;
3118
+ async getAllImagesByPersonId(t, r, n, s, o) {
3119
+ return (await this.superClass.getAllImagesByPersonId(n, s, t, r, o)).data;
2926
3120
  }
2927
- async getImageOfPerson(t, r, s, n) {
2928
- return (await this.superClass.getImageOfPerson(r, t, s, n)).data;
3121
+ async getImageOfPerson(t, r, n, s) {
3122
+ return (await this.superClass.getImageOfPerson(r, t, n, s)).data;
2929
3123
  }
2930
- async getPerson(t, r, s) {
2931
- return (await this.superClass.getPerson(t, r, s)).data;
3124
+ async getPerson(t, r, n) {
3125
+ return (await this.superClass.getPerson(t, r, n)).data;
2932
3126
  }
2933
- async updatePerson(t, r, s, n) {
2934
- await this.superClass.updatePerson(t, r, s, n);
3127
+ async updatePerson(t, r, n, s) {
3128
+ await this.superClass.updatePerson(t, r, n, s);
2935
3129
  }
2936
3130
  }
2937
- const Bs = function(e) {
3131
+ const Zn = function(e) {
2938
3132
  return {
2939
3133
  /**
2940
3134
  *
@@ -2945,22 +3139,22 @@ const Bs = function(e) {
2945
3139
  * @param {*} [options] Override http request option.
2946
3140
  * @throws {RequiredError}
2947
3141
  */
2948
- search: async (t, r, s, n = {}) => {
2949
- R("search", "searchRequest", t);
2950
- const o = "/api/search", a = new URL(o, P);
3142
+ search: async (t, r, n, s = {}) => {
3143
+ I("search", "searchRequest", t);
3144
+ const o = "/api/search", a = new URL(o, C);
2951
3145
  let i;
2952
3146
  e && (i = e.baseOptions);
2953
- const l = { method: "POST", ...i, ...n }, c = {}, d = {};
2954
- s !== void 0 && (d.withImages = s), c["Content-Type"] = "application/json", r != null && (c["X-RequestID"] = String(r)), I(a, d);
3147
+ const l = { method: "POST", ...i, ...s }, c = {}, d = {};
3148
+ n !== void 0 && (d.withImages = n), c["Content-Type"] = "application/json", r != null && (c["X-RequestID"] = String(r)), L(a, d);
2955
3149
  let p = i && i.headers ? i.headers : {};
2956
- return l.headers = { ...c, ...p, ...n.headers }, l.data = M(t, l, e), {
2957
- url: S(a),
3150
+ return l.headers = { ...c, ...p, ...s.headers }, l.data = F(t, l, e), {
3151
+ url: g(a),
2958
3152
  options: l
2959
3153
  };
2960
3154
  }
2961
3155
  };
2962
- }, Hs = function(e) {
2963
- const t = Bs(e);
3156
+ }, Kn = function(e) {
3157
+ const t = Zn(e);
2964
3158
  return {
2965
3159
  /**
2966
3160
  *
@@ -2971,13 +3165,13 @@ const Bs = function(e) {
2971
3165
  * @param {*} [options] Override http request option.
2972
3166
  * @throws {RequiredError}
2973
3167
  */
2974
- async search(r, s, n, o) {
2975
- const a = await t.search(r, s, n, o), i = e?.serverIndex ?? 0, l = T["SearchApi.search"]?.[i]?.url;
2976
- return (c, d) => b(a, O, m, e)(c, l || d);
3168
+ async search(r, n, s, o) {
3169
+ const a = await t.search(r, n, s, o), i = e?.serverIndex ?? 0, l = w["SearchApi.search"]?.[i]?.url;
3170
+ return (c, d) => N(a, O, y, e)(c, l || d);
2977
3171
  }
2978
3172
  };
2979
3173
  };
2980
- let Gs = class extends Q {
3174
+ let Qn = class extends ae {
2981
3175
  /**
2982
3176
  *
2983
3177
  * @summary Find person by image in groups
@@ -2987,19 +3181,19 @@ let Gs = class extends Q {
2987
3181
  * @param {*} [options] Override http request option.
2988
3182
  * @throws {RequiredError}
2989
3183
  */
2990
- search(t, r, s, n) {
2991
- return Hs(this.configuration).search(t, r, s, n).then((o) => o(this.axios, this.basePath));
3184
+ search(t, r, n, s) {
3185
+ return Kn(this.configuration).search(t, r, n, s).then((o) => o(this.axios, this.basePath));
2992
3186
  }
2993
3187
  };
2994
- class Ms {
2995
- constructor(t, r, s) {
2996
- this.superClass = new Gs(t, r, s);
3188
+ class es {
3189
+ constructor(t, r, n) {
3190
+ this.superClass = new Qn(t, r, n);
2997
3191
  }
2998
- async search(t, r, s, n) {
2999
- return t?.image?.content && typeof t.image.content != "string" && (t.image.content = Ae(t.image.content)), (await this.superClass.search(t, r, s, n)).data;
3192
+ async search(t, r, n, s) {
3193
+ return t?.image?.content && typeof t.image.content != "string" && (t.image.content = be(t.image.content)), (await this.superClass.search(t, r, n, s)).data;
3000
3194
  }
3001
3195
  }
3002
- const vs = function(e) {
3196
+ const ts = function(e) {
3003
3197
  return {
3004
3198
  /**
3005
3199
  * This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
@@ -3009,16 +3203,16 @@ const vs = function(e) {
3009
3203
  * @param {*} [options] Override http request option.
3010
3204
  * @throws {RequiredError}
3011
3205
  */
3012
- deleteLivenessTransaction: async (t, r, s = {}) => {
3013
- R("deleteLivenessTransaction", "transactionId", t), R("deleteLivenessTransaction", "tag", r);
3014
- const n = "/api/v2/liveness", o = new URL(n, P);
3206
+ deleteLivenessTransaction: async (t, r, n = {}) => {
3207
+ I("deleteLivenessTransaction", "transactionId", t), I("deleteLivenessTransaction", "tag", r);
3208
+ const s = "/api/v2/liveness", o = new URL(s, C);
3015
3209
  let a;
3016
3210
  e && (a = e.baseOptions);
3017
- const i = { method: "DELETE", ...a, ...s }, l = {}, c = {};
3018
- t !== void 0 && (c.transactionId = t), r !== void 0 && (c.tag = r), I(o, c);
3211
+ const i = { method: "DELETE", ...a, ...n }, l = {}, c = {};
3212
+ t !== void 0 && (c.transactionId = t), r !== void 0 && (c.tag = r), L(o, c);
3019
3213
  let d = a && a.headers ? a.headers : {};
3020
- return i.headers = { ...l, ...d, ...s.headers }, {
3021
- url: S(o),
3214
+ return i.headers = { ...l, ...d, ...n.headers }, {
3215
+ url: g(o),
3022
3216
  options: i
3023
3217
  };
3024
3218
  },
@@ -3030,21 +3224,21 @@ const vs = function(e) {
3030
3224
  * @throws {RequiredError}
3031
3225
  */
3032
3226
  getLivenessTransactionInfo: async (t, r = {}) => {
3033
- R("getLivenessTransactionInfo", "transactionId", t);
3034
- const s = "/api/v2/liveness", n = new URL(s, P);
3227
+ I("getLivenessTransactionInfo", "transactionId", t);
3228
+ const n = "/api/v2/liveness", s = new URL(n, C);
3035
3229
  let o;
3036
3230
  e && (o = e.baseOptions);
3037
3231
  const a = { method: "GET", ...o, ...r }, i = {}, l = {};
3038
- t !== void 0 && (l.transactionId = t), I(n, l);
3232
+ t !== void 0 && (l.transactionId = t), L(s, l);
3039
3233
  let c = o && o.headers ? o.headers : {};
3040
3234
  return a.headers = { ...i, ...c, ...r.headers }, {
3041
- url: S(n),
3235
+ url: g(s),
3042
3236
  options: a
3043
3237
  };
3044
3238
  }
3045
3239
  };
3046
- }, lt = function(e) {
3047
- const t = vs(e);
3240
+ }, At = function(e) {
3241
+ const t = ts(e);
3048
3242
  return {
3049
3243
  /**
3050
3244
  * This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
@@ -3054,9 +3248,9 @@ const vs = function(e) {
3054
3248
  * @param {*} [options] Override http request option.
3055
3249
  * @throws {RequiredError}
3056
3250
  */
3057
- async deleteLivenessTransaction(r, s, n) {
3058
- const o = await t.deleteLivenessTransaction(r, s, n), a = e?.serverIndex ?? 0, i = T["Liveness20Api.deleteLivenessTransaction"]?.[a]?.url;
3059
- return (l, c) => b(o, O, m, e)(l, i || c);
3251
+ async deleteLivenessTransaction(r, n, s) {
3252
+ const o = await t.deleteLivenessTransaction(r, n, s), a = e?.serverIndex ?? 0, i = w["Liveness20Api.deleteLivenessTransaction"]?.[a]?.url;
3253
+ return (l, c) => N(o, O, y, e)(l, i || c);
3060
3254
  },
3061
3255
  /**
3062
3256
  * 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}`.
@@ -3065,13 +3259,13 @@ const vs = function(e) {
3065
3259
  * @param {*} [options] Override http request option.
3066
3260
  * @throws {RequiredError}
3067
3261
  */
3068
- async getLivenessTransactionInfo(r, s) {
3069
- const n = await t.getLivenessTransactionInfo(r, s), o = e?.serverIndex ?? 0, a = T["Liveness20Api.getLivenessTransactionInfo"]?.[o]?.url;
3070
- return (i, l) => b(n, O, m, e)(i, a || l);
3262
+ async getLivenessTransactionInfo(r, n) {
3263
+ const s = await t.getLivenessTransactionInfo(r, n), o = e?.serverIndex ?? 0, a = w["Liveness20Api.getLivenessTransactionInfo"]?.[o]?.url;
3264
+ return (i, l) => N(s, O, y, e)(i, a || l);
3071
3265
  }
3072
3266
  };
3073
3267
  };
3074
- let js = class extends Q {
3268
+ let rs = class extends ae {
3075
3269
  /**
3076
3270
  * This endpoint deletes a liveness transaction based on either the specified `tag` or `transactionId`. At least one of the parameters must be provided for the operation to be valid.
3077
3271
  * @summary delete liveness transaction
@@ -3080,8 +3274,8 @@ let js = class extends Q {
3080
3274
  * @param {*} [options] Override http request option.
3081
3275
  * @throws {RequiredError}
3082
3276
  */
3083
- deleteLivenessTransaction(t, r, s) {
3084
- return lt(this.configuration).deleteLivenessTransaction(t, r, s).then((n) => n(this.axios, this.basePath));
3277
+ deleteLivenessTransaction(t, r, n) {
3278
+ return At(this.configuration).deleteLivenessTransaction(t, r, n).then((s) => s(this.axios, this.basePath));
3085
3279
  }
3086
3280
  /**
3087
3281
  * 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}`.
@@ -3091,18 +3285,18 @@ let js = class extends Q {
3091
3285
  * @throws {RequiredError}
3092
3286
  */
3093
3287
  getLivenessTransactionInfo(t, r) {
3094
- return lt(this.configuration).getLivenessTransactionInfo(t, r).then((s) => s(this.axios, this.basePath));
3288
+ return At(this.configuration).getLivenessTransactionInfo(t, r).then((n) => n(this.axios, this.basePath));
3095
3289
  }
3096
3290
  };
3097
- class ks {
3098
- constructor(t, r, s) {
3099
- this.superClass = new js(t, r, s);
3291
+ class ns {
3292
+ constructor(t, r, n) {
3293
+ this.superClass = new rs(t, r, n);
3100
3294
  }
3101
3295
  async getLivenessTransactionInfo(t, r) {
3102
3296
  return (await this.superClass.getLivenessTransactionInfo(t, r)).data;
3103
3297
  }
3104
3298
  }
3105
- const Fs = function(e) {
3299
+ const ss = function(e) {
3106
3300
  return {
3107
3301
  /**
3108
3302
  * The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
@@ -3112,14 +3306,14 @@ const Fs = function(e) {
3112
3306
  * @throws {RequiredError}
3113
3307
  */
3114
3308
  healthz: async (t, r = {}) => {
3115
- const s = "/api/healthz", n = new URL(s, P);
3309
+ const n = "/api/healthz", s = new URL(n, C);
3116
3310
  let o;
3117
3311
  e && (o = e.baseOptions);
3118
3312
  const a = { method: "GET", ...o, ...r }, i = {}, l = {};
3119
- t != null && (i["X-RequestID"] = String(t)), I(n, l);
3313
+ t != null && (i["X-RequestID"] = String(t)), L(s, l);
3120
3314
  let c = o && o.headers ? o.headers : {};
3121
3315
  return a.headers = { ...i, ...c, ...r.headers }, {
3122
- url: S(n),
3316
+ url: g(s),
3123
3317
  options: a
3124
3318
  };
3125
3319
  },
@@ -3131,20 +3325,20 @@ const Fs = function(e) {
3131
3325
  * @throws {RequiredError}
3132
3326
  */
3133
3327
  readyz: async (t, r = {}) => {
3134
- const s = "/api/readyz", n = new URL(s, P);
3328
+ const n = "/api/readyz", s = new URL(n, C);
3135
3329
  let o;
3136
3330
  e && (o = e.baseOptions);
3137
3331
  const a = { method: "GET", ...o, ...r }, i = {}, l = {};
3138
- t != null && (i["X-RequestID"] = String(t)), I(n, l);
3332
+ t != null && (i["X-RequestID"] = String(t)), L(s, l);
3139
3333
  let c = o && o.headers ? o.headers : {};
3140
3334
  return a.headers = { ...i, ...c, ...r.headers }, {
3141
- url: S(n),
3335
+ url: g(s),
3142
3336
  options: a
3143
3337
  };
3144
3338
  }
3145
3339
  };
3146
- }, ct = function(e) {
3147
- const t = Fs(e);
3340
+ }, Ot = function(e) {
3341
+ const t = ss(e);
3148
3342
  return {
3149
3343
  /**
3150
3344
  * The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
@@ -3153,9 +3347,9 @@ const Fs = function(e) {
3153
3347
  * @param {*} [options] Override http request option.
3154
3348
  * @throws {RequiredError}
3155
3349
  */
3156
- async healthz(r, s) {
3157
- const n = await t.healthz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.healthz"]?.[o]?.url;
3158
- return (i, l) => b(n, O, m, e)(i, a || l);
3350
+ async healthz(r, n) {
3351
+ const s = await t.healthz(r, n), o = e?.serverIndex ?? 0, a = w["HealthcheckApi.healthz"]?.[o]?.url;
3352
+ return (i, l) => N(s, O, y, e)(i, a || l);
3159
3353
  },
3160
3354
  /**
3161
3355
  * The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
@@ -3164,13 +3358,13 @@ const Fs = function(e) {
3164
3358
  * @param {*} [options] Override http request option.
3165
3359
  * @throws {RequiredError}
3166
3360
  */
3167
- async readyz(r, s) {
3168
- const n = await t.readyz(r, s), o = e?.serverIndex ?? 0, a = T["HealthcheckApi.readyz"]?.[o]?.url;
3169
- return (i, l) => b(n, O, m, e)(i, a || l);
3361
+ async readyz(r, n) {
3362
+ const s = await t.readyz(r, n), o = e?.serverIndex ?? 0, a = w["HealthcheckApi.readyz"]?.[o]?.url;
3363
+ return (i, l) => N(s, O, y, e)(i, a || l);
3170
3364
  }
3171
3365
  };
3172
3366
  };
3173
- let qs = class extends Q {
3367
+ let os = class extends ae {
3174
3368
  /**
3175
3369
  * The `/api/healthz` endpoint performs a server health check, providing details such as the application name, license ID, serial number, validity, and product version. <br><br>Comprehensive information about service diagnostics is available on the [Monitoring page](https://docs.regulaforensics.com/develop/face-sdk/web-service/administration/monitoring/).
3176
3370
  * @summary Server healthcheck
@@ -3179,7 +3373,7 @@ let qs = class extends Q {
3179
3373
  * @throws {RequiredError}
3180
3374
  */
3181
3375
  healthz(t, r) {
3182
- return ct(this.configuration).healthz(t, r).then((s) => s(this.axios, this.basePath));
3376
+ return Ot(this.configuration).healthz(t, r).then((n) => n(this.axios, this.basePath));
3183
3377
  }
3184
3378
  /**
3185
3379
  * The `/api/readyz` endpoint checks the license\'s health to determine if the application is ready for operation. It validates the license and returns a response indicating whether the license is valid (`200`) or invalid (`400`).
@@ -3189,12 +3383,12 @@ let qs = class extends Q {
3189
3383
  * @throws {RequiredError}
3190
3384
  */
3191
3385
  readyz(t, r) {
3192
- return ct(this.configuration).readyz(t, r).then((s) => s(this.axios, this.basePath));
3386
+ return Ot(this.configuration).readyz(t, r).then((n) => n(this.axios, this.basePath));
3193
3387
  }
3194
3388
  };
3195
- class $s {
3196
- constructor(t, r, s) {
3197
- this.superClass = new qs(t, r, s);
3389
+ class as {
3390
+ constructor(t, r, n) {
3391
+ this.superClass = new os(t, r, n);
3198
3392
  }
3199
3393
  async healthz(t, r) {
3200
3394
  return (await this.superClass.healthz(t, r)).data;
@@ -3203,12 +3397,12 @@ class $s {
3203
3397
  return (await this.superClass.readyz(t, r)).data;
3204
3398
  }
3205
3399
  }
3206
- class _n {
3207
- constructor(t, r = m, s = O) {
3208
- this.basePath = r, this.axios = s, this.matchApi = new Ls(t, r, s), this.groupApi = new Ns(t, r, s), this.personApi = new Ds(t, r, s), this.searchApi = new Ms(t, r, s), this.livenessApi = new ks(t, r, s), this.healthcheckApi = new $s(t, r, s);
3400
+ class Vs {
3401
+ constructor(t, r = y, n = O) {
3402
+ this.basePath = r, this.axios = n, this.matchApi = new qn(t, r, n), this.groupApi = new Wn(t, r, n), this.personApi = new Jn(t, r, n), this.searchApi = new es(t, r, n), this.livenessApi = new ns(t, r, n), this.healthcheckApi = new as(t, r, n);
3209
3403
  }
3210
3404
  }
3211
- class Rn {
3405
+ class Us {
3212
3406
  constructor(t = {}) {
3213
3407
  this.apiKey = t.apiKey, this.username = t.username, this.password = t.password, this.accessToken = t.accessToken, this.basePath = t.basePath, this.serverIndex = t.serverIndex, this.baseOptions = {
3214
3408
  ...t.baseOptions,
@@ -3233,23 +3427,23 @@ class Rn {
3233
3427
  }
3234
3428
  }
3235
3429
  export {
3236
- Rn as Configuration,
3237
- _s as FaceAttribute,
3238
- Rs as FaceImageQualityAlignType,
3239
- ms as FaceImageQualityGroups,
3240
- Ts as FaceImageQualityGroupsStrings,
3241
- Ps as FaceImageQualityStatus,
3242
- Is as FaceQualityConfigName,
3243
- Ss as FaceQualityScenarios,
3244
- bs as FaceSDKResultCode,
3245
- _n as FaceSdk,
3246
- ws as FilterOp,
3247
- Ns as GroupApi,
3248
- $s as HealthcheckApi,
3249
- Ut as ImageSource,
3250
- ks as Liveness20Api,
3251
- ys as LivenessType,
3252
- Ls as MatchApi,
3253
- Ds as PersonApi,
3254
- Ms as SearchApi
3430
+ Us as Configuration,
3431
+ Vn as FaceAttribute,
3432
+ Un as FaceImageQualityAlignType,
3433
+ Dn as FaceImageQualityGroups,
3434
+ Bn as FaceImageQualityGroupsStrings,
3435
+ Hn as FaceImageQualityStatus,
3436
+ Gn as FaceQualityConfigName,
3437
+ Mn as FaceQualityScenarios,
3438
+ vn as FaceSDKResultCode,
3439
+ Vs as FaceSdk,
3440
+ jn as FilterOp,
3441
+ Wn as GroupApi,
3442
+ as as HealthcheckApi,
3443
+ Mt as ImageSource,
3444
+ ns as Liveness20Api,
3445
+ Fn as LivenessType,
3446
+ qn as MatchApi,
3447
+ Jn as PersonApi,
3448
+ es as SearchApi
3255
3449
  };