@akad/sdk 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.d.ts +1 -1
- package/package.json +1 -1
- package/plugin/index.d.ts +1 -1
- package/ts-lib.js +139 -130
- package/ts-lib.umd.cjs +5 -5
package/main.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export default function sdkInitialize(config: Config): {
|
|
|
41
41
|
putEndorsement: <ReqPayload = unknown, ResPayload = unknown>(data: ReqPayload, attachments?: File | File[] | undefined) => Promise<ResPayload>;
|
|
42
42
|
};
|
|
43
43
|
plugin: {
|
|
44
|
-
getCnpjStatus: (cnpj: string) => Promise<import('./plugin/types').CnpjStatus>;
|
|
44
|
+
getCnpjStatus: (cnpj: string, brokerageIdentity?: string | undefined, isBrokerageDefinedAtStart?: boolean | undefined) => Promise<import('./plugin/types').CnpjStatus>;
|
|
45
45
|
getKeyNumber: () => Promise<unknown>;
|
|
46
46
|
getProposalNumberByKeyNumber: (data: import('./plugin/types').ProposalNumberByKeyNumberType) => Promise<import('./plugin/types').ProposalNumberByKeyNumberType>;
|
|
47
47
|
postCoveragesAndClausesRules: (data: import('./plugin/types').CoveragesAndClausesRulesType) => Promise<import('./plugin/types').CoveragesAndClausesRulesType>;
|
package/package.json
CHANGED
package/plugin/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Config } from '../base';
|
|
|
2
2
|
import { CnpjStatus, CoveragesAndClausesRulesType, ProposalNumberByKeyNumberType } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const createPlugin: (config: Config) => {
|
|
5
|
-
getCnpjStatus: (cnpj: string) => Promise<CnpjStatus>;
|
|
5
|
+
getCnpjStatus: (cnpj: string, brokerageIdentity?: string, isBrokerageDefinedAtStart?: boolean) => Promise<CnpjStatus>;
|
|
6
6
|
getKeyNumber: () => Promise<unknown>;
|
|
7
7
|
getProposalNumberByKeyNumber: (data: ProposalNumberByKeyNumberType) => Promise<ProposalNumberByKeyNumberType>;
|
|
8
8
|
postCoveragesAndClausesRules: (data: CoveragesAndClausesRulesType) => Promise<CoveragesAndClausesRulesType>;
|
package/ts-lib.js
CHANGED
|
@@ -6,16 +6,16 @@ function Be(e, t) {
|
|
|
6
6
|
const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, K = /* @__PURE__ */ ((e) => (t) => {
|
|
7
7
|
const n = nt.call(t);
|
|
8
8
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => K(t) === e), v = (e) => (t) => typeof t === e, { isArray:
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => K(t) === e), v = (e) => (t) => typeof t === e, { isArray: F } = Array, $ = v("undefined");
|
|
10
10
|
function rt(e) {
|
|
11
11
|
return e !== null && !$(e) && e.constructor !== null && !$(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Ue = P("ArrayBuffer");
|
|
14
14
|
function st(e) {
|
|
15
15
|
let t;
|
|
16
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
16
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ue(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const ot = v("string"), R = v("function"),
|
|
18
|
+
const ot = v("string"), R = v("function"), qe = v("number"), W = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, M = (e) => {
|
|
19
19
|
if (K(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
21
|
const t = le(e);
|
|
@@ -29,7 +29,7 @@ function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
29
29
|
if (e === null || typeof e > "u")
|
|
30
30
|
return;
|
|
31
31
|
let r, s;
|
|
32
|
-
if (typeof e != "object" && (e = [e]),
|
|
32
|
+
if (typeof e != "object" && (e = [e]), F(e))
|
|
33
33
|
for (r = 0, s = e.length; r < s; r++)
|
|
34
34
|
t.call(null, e[r], r, e);
|
|
35
35
|
else {
|
|
@@ -39,7 +39,7 @@ function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
39
39
|
u = o[r], t.call(null, e[u], u, e);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Fe(e, t) {
|
|
43
43
|
t = t.toLowerCase();
|
|
44
44
|
const n = Object.keys(e);
|
|
45
45
|
let r = n.length, s;
|
|
@@ -51,8 +51,8 @@ function qe(e, t) {
|
|
|
51
51
|
const Le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _e = (e) => !$(e) && e !== Le;
|
|
52
52
|
function re() {
|
|
53
53
|
const { caseless: e } = _e(this) && this || {}, t = {}, n = (r, s) => {
|
|
54
|
-
const o = e &&
|
|
55
|
-
M(t[o]) && M(r) ? t[o] = re(t[o], r) : M(r) ? t[o] = re({}, r) :
|
|
54
|
+
const o = e && Fe(t, s) || s;
|
|
55
|
+
M(t[o]) && M(r) ? t[o] = re(t[o], r) : M(r) ? t[o] = re({}, r) : F(r) ? t[o] = r.slice() : t[o] = r;
|
|
56
56
|
};
|
|
57
57
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
58
58
|
arguments[r] && I(arguments[r], n);
|
|
@@ -60,11 +60,11 @@ function re() {
|
|
|
60
60
|
}
|
|
61
61
|
const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
62
62
|
n && R(s) ? e[o] = Be(s, n) : e[o] = s;
|
|
63
|
-
}, { allOwnKeys: r }), e),
|
|
63
|
+
}, { allOwnKeys: r }), e), St = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tt = (e, t, n, r) => {
|
|
64
64
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
65
65
|
value: t.prototype
|
|
66
66
|
}), n && Object.assign(e.prototype, n);
|
|
67
|
-
},
|
|
67
|
+
}, Et = (e, t, n, r) => {
|
|
68
68
|
let s, o, i;
|
|
69
69
|
const u = {};
|
|
70
70
|
if (t = t || {}, e == null)
|
|
@@ -82,10 +82,10 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
82
82
|
}, Ot = (e) => {
|
|
83
83
|
if (!e)
|
|
84
84
|
return null;
|
|
85
|
-
if (
|
|
85
|
+
if (F(e))
|
|
86
86
|
return e;
|
|
87
87
|
let t = e.length;
|
|
88
|
-
if (!
|
|
88
|
+
if (!qe(t))
|
|
89
89
|
return null;
|
|
90
90
|
const n = new Array(t);
|
|
91
91
|
for (; t-- > 0; )
|
|
@@ -104,7 +104,7 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
104
104
|
for (; (n = e.exec(t)) !== null; )
|
|
105
105
|
r.push(n);
|
|
106
106
|
return r;
|
|
107
|
-
},
|
|
107
|
+
}, Ct = P("HTMLFormElement"), kt = (e) => e.toLowerCase().replace(
|
|
108
108
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
109
109
|
function(n, r, s) {
|
|
110
110
|
return r.toUpperCase() + s;
|
|
@@ -130,15 +130,15 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
},
|
|
133
|
+
}, Ut = (e, t) => {
|
|
134
134
|
const n = {}, r = (s) => {
|
|
135
135
|
s.forEach((o) => {
|
|
136
136
|
n[o] = !0;
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
return
|
|
140
|
-
},
|
|
141
|
-
},
|
|
139
|
+
return F(e) ? r(e) : r(String(e).split(t)), n;
|
|
140
|
+
}, qt = () => {
|
|
141
|
+
}, Ft = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", $e = {
|
|
142
142
|
DIGIT: ye,
|
|
143
143
|
ALPHA: Z,
|
|
144
144
|
ALPHA_DIGIT: Z + Z.toUpperCase() + ye
|
|
@@ -159,7 +159,7 @@ const Dt = (e) => {
|
|
|
159
159
|
return;
|
|
160
160
|
if (!("toJSON" in r)) {
|
|
161
161
|
t[s] = r;
|
|
162
|
-
const o =
|
|
162
|
+
const o = F(r) ? [] : {};
|
|
163
163
|
return I(r, (i, u) => {
|
|
164
164
|
const f = n(i, s + 1);
|
|
165
165
|
!$(f) && (o[u] = f);
|
|
@@ -170,13 +170,13 @@ const Dt = (e) => {
|
|
|
170
170
|
};
|
|
171
171
|
return n(e, 0);
|
|
172
172
|
}, $t = P("AsyncFunction"), It = (e) => e && (W(e) || R(e)) && R(e.then) && R(e.catch), c = {
|
|
173
|
-
isArray:
|
|
174
|
-
isArrayBuffer:
|
|
173
|
+
isArray: F,
|
|
174
|
+
isArrayBuffer: Ue,
|
|
175
175
|
isBuffer: rt,
|
|
176
176
|
isFormData: dt,
|
|
177
177
|
isArrayBufferView: st,
|
|
178
178
|
isString: ot,
|
|
179
|
-
isNumber:
|
|
179
|
+
isNumber: qe,
|
|
180
180
|
isBoolean: it,
|
|
181
181
|
isObject: W,
|
|
182
182
|
isPlainObject: M,
|
|
@@ -198,26 +198,26 @@ const Dt = (e) => {
|
|
|
198
198
|
merge: re,
|
|
199
199
|
extend: bt,
|
|
200
200
|
trim: wt,
|
|
201
|
-
stripBOM:
|
|
202
|
-
inherits:
|
|
203
|
-
toFlatObject:
|
|
201
|
+
stripBOM: St,
|
|
202
|
+
inherits: Tt,
|
|
203
|
+
toFlatObject: Et,
|
|
204
204
|
kindOf: K,
|
|
205
205
|
kindOfTest: P,
|
|
206
206
|
endsWith: Rt,
|
|
207
207
|
toArray: Ot,
|
|
208
208
|
forEachEntry: Pt,
|
|
209
209
|
matchAll: Nt,
|
|
210
|
-
isHTMLForm:
|
|
210
|
+
isHTMLForm: Ct,
|
|
211
211
|
hasOwnProperty: me,
|
|
212
212
|
hasOwnProp: me,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
214
|
reduceDescriptors: De,
|
|
215
215
|
freezeMethods: Bt,
|
|
216
|
-
toObjectSet:
|
|
217
|
-
toCamelCase:
|
|
218
|
-
noop:
|
|
219
|
-
toFiniteNumber:
|
|
220
|
-
findKey:
|
|
216
|
+
toObjectSet: Ut,
|
|
217
|
+
toCamelCase: kt,
|
|
218
|
+
noop: qt,
|
|
219
|
+
toFiniteNumber: Ft,
|
|
220
|
+
findKey: Fe,
|
|
221
221
|
global: Le,
|
|
222
222
|
isContextDefined: _e,
|
|
223
223
|
ALPHABET: $e,
|
|
@@ -318,12 +318,12 @@ function Q(e, t, n) {
|
|
|
318
318
|
return c.isArrayBuffer(h) || c.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
319
319
|
}
|
|
320
320
|
function a(h, p, w) {
|
|
321
|
-
let
|
|
321
|
+
let T = h;
|
|
322
322
|
if (h && !w && typeof h == "object") {
|
|
323
323
|
if (c.endsWith(p, "{}"))
|
|
324
324
|
p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
|
|
325
|
-
else if (c.isArray(h) && Ht(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (
|
|
326
|
-
return p = He(p),
|
|
325
|
+
else if (c.isArray(h) && Ht(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (T = c.toArray(h)))
|
|
326
|
+
return p = He(p), T.forEach(function(b, _) {
|
|
327
327
|
!(c.isUndefined(b) || b === null) && t.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
329
|
i === !0 ? ge([p], _, o) : i === null ? p : p + "[]",
|
|
@@ -342,14 +342,14 @@ function Q(e, t, n) {
|
|
|
342
342
|
if (!c.isUndefined(h)) {
|
|
343
343
|
if (d.indexOf(h) !== -1)
|
|
344
344
|
throw Error("Circular reference detected in " + p.join("."));
|
|
345
|
-
d.push(h), c.forEach(h, function(
|
|
346
|
-
(!(c.isUndefined(
|
|
345
|
+
d.push(h), c.forEach(h, function(T, N) {
|
|
346
|
+
(!(c.isUndefined(T) || T === null) && s.call(
|
|
347
347
|
t,
|
|
348
|
-
|
|
348
|
+
T,
|
|
349
349
|
c.isString(N) ? N.trim() : N,
|
|
350
350
|
p,
|
|
351
351
|
m
|
|
352
|
-
)) === !0 && g(
|
|
352
|
+
)) === !0 && g(T, p ? p.concat(N) : [N]);
|
|
353
353
|
}), d.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -616,7 +616,7 @@ const nn = c.toObjectSet([
|
|
|
616
616
|
`).forEach(function(i) {
|
|
617
617
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
618
618
|
}), t;
|
|
619
|
-
},
|
|
619
|
+
}, Se = Symbol("internals");
|
|
620
620
|
function D(e) {
|
|
621
621
|
return e && String(e).trim().toLowerCase();
|
|
622
622
|
}
|
|
@@ -655,7 +655,7 @@ function cn(e, t) {
|
|
|
655
655
|
});
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
let
|
|
658
|
+
let E = class {
|
|
659
659
|
constructor(t) {
|
|
660
660
|
t && this.set(t);
|
|
661
661
|
}
|
|
@@ -763,7 +763,7 @@ let S = class {
|
|
|
763
763
|
return n.forEach((s) => r.set(s)), r;
|
|
764
764
|
}
|
|
765
765
|
static accessor(t) {
|
|
766
|
-
const r = (this[
|
|
766
|
+
const r = (this[Se] = this[Se] = {
|
|
767
767
|
accessors: {}
|
|
768
768
|
}).accessors, s = this.prototype;
|
|
769
769
|
function o(i) {
|
|
@@ -773,8 +773,8 @@ let S = class {
|
|
|
773
773
|
return c.isArray(t) ? t.forEach(o) : o(t), this;
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
|
-
|
|
777
|
-
c.reduceDescriptors(
|
|
776
|
+
E.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
777
|
+
c.reduceDescriptors(E.prototype, ({ value: e }, t) => {
|
|
778
778
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
779
779
|
return {
|
|
780
780
|
get: () => e,
|
|
@@ -783,9 +783,9 @@ c.reduceDescriptors(S.prototype, ({ value: e }, t) => {
|
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
785
|
});
|
|
786
|
-
c.freezeMethods(
|
|
786
|
+
c.freezeMethods(E);
|
|
787
787
|
function ee(e, t) {
|
|
788
|
-
const n = this || j, r = t || n, s =
|
|
788
|
+
const n = this || j, r = t || n, s = E.from(r.headers);
|
|
789
789
|
let o = r.data;
|
|
790
790
|
return c.forEach(e, function(u) {
|
|
791
791
|
o = u.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
@@ -926,8 +926,8 @@ function mn(e, t) {
|
|
|
926
926
|
function ve(e, t) {
|
|
927
927
|
return e && !pn(t) ? mn(e, t) : t;
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
function
|
|
929
|
+
const Te = (e) => e instanceof E ? { ...e } : e;
|
|
930
|
+
function U(e, t) {
|
|
931
931
|
t = t || {};
|
|
932
932
|
const n = {};
|
|
933
933
|
function r(l, a, d) {
|
|
@@ -986,7 +986,7 @@ function F(e, t) {
|
|
|
986
986
|
socketPath: i,
|
|
987
987
|
responseEncoding: i,
|
|
988
988
|
validateStatus: u,
|
|
989
|
-
headers: (l, a) => s(
|
|
989
|
+
headers: (l, a) => s(Te(l), Te(a), !0)
|
|
990
990
|
};
|
|
991
991
|
return c.forEach(Object.keys(Object.assign({}, e, t)), function(a) {
|
|
992
992
|
const d = f[a] || s, m = d(e[a], t[a], a);
|
|
@@ -994,9 +994,9 @@ function F(e, t) {
|
|
|
994
994
|
}), n;
|
|
995
995
|
}
|
|
996
996
|
const We = (e) => {
|
|
997
|
-
const t =
|
|
997
|
+
const t = U({}, e);
|
|
998
998
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: u } = t;
|
|
999
|
-
t.headers = i =
|
|
999
|
+
t.headers = i = E.from(i), t.url = Me(ve(t.baseURL, t.url), e.params, e.paramsSerializer), u && i.set(
|
|
1000
1000
|
"Authorization",
|
|
1001
1001
|
"Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : ""))
|
|
1002
1002
|
);
|
|
@@ -1018,7 +1018,7 @@ const We = (e) => {
|
|
|
1018
1018
|
return new Promise(function(n, r) {
|
|
1019
1019
|
const s = We(e);
|
|
1020
1020
|
let o = s.data;
|
|
1021
|
-
const i =
|
|
1021
|
+
const i = E.from(s.headers).normalize();
|
|
1022
1022
|
let { responseType: u } = s, f;
|
|
1023
1023
|
function l() {
|
|
1024
1024
|
s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
|
|
@@ -1028,7 +1028,7 @@ const We = (e) => {
|
|
|
1028
1028
|
function d() {
|
|
1029
1029
|
if (!a)
|
|
1030
1030
|
return;
|
|
1031
|
-
const g =
|
|
1031
|
+
const g = E.from(
|
|
1032
1032
|
"getAllResponseHeaders" in a && a.getAllResponseHeaders()
|
|
1033
1033
|
), p = {
|
|
1034
1034
|
data: !u || u === "text" || u === "json" ? a.responseText : a.response,
|
|
@@ -1038,10 +1038,10 @@ const We = (e) => {
|
|
|
1038
1038
|
config: e,
|
|
1039
1039
|
request: a
|
|
1040
1040
|
};
|
|
1041
|
-
Ke(function(
|
|
1042
|
-
n(
|
|
1043
|
-
}, function(
|
|
1044
|
-
r(
|
|
1041
|
+
Ke(function(T) {
|
|
1042
|
+
n(T), l();
|
|
1043
|
+
}, function(T) {
|
|
1044
|
+
r(T), l();
|
|
1045
1045
|
}, p), a = null;
|
|
1046
1046
|
}
|
|
1047
1047
|
"onloadend" in a ? a.onloadend = d : a.onreadystatechange = function() {
|
|
@@ -1102,11 +1102,11 @@ const We = (e) => {
|
|
|
1102
1102
|
let r = 0, s;
|
|
1103
1103
|
for (; r < n; )
|
|
1104
1104
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1105
|
-
},
|
|
1105
|
+
}, Sn = async function* (e, t, n) {
|
|
1106
1106
|
for await (const r of e)
|
|
1107
1107
|
yield* bn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
|
|
1108
|
-
},
|
|
1109
|
-
const o =
|
|
1108
|
+
}, Ee = (e, t, n, r, s) => {
|
|
1109
|
+
const o = Sn(e, t, s);
|
|
1110
1110
|
let i = 0;
|
|
1111
1111
|
return new ReadableStream({
|
|
1112
1112
|
type: "bytes",
|
|
@@ -1132,7 +1132,7 @@ const We = (e) => {
|
|
|
1132
1132
|
total: e,
|
|
1133
1133
|
loaded: r
|
|
1134
1134
|
}));
|
|
1135
|
-
}, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = X && typeof ReadableStream == "function", oe = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())),
|
|
1135
|
+
}, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = X && typeof ReadableStream == "function", oe = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Tn = Qe && (() => {
|
|
1136
1136
|
let e = !1;
|
|
1137
1137
|
const t = new Request(A.origin, {
|
|
1138
1138
|
body: new ReadableStream(),
|
|
@@ -1157,7 +1157,7 @@ X && ((e) => {
|
|
|
1157
1157
|
});
|
|
1158
1158
|
});
|
|
1159
1159
|
})(new Response());
|
|
1160
|
-
const
|
|
1160
|
+
const En = async (e) => {
|
|
1161
1161
|
if (e == null)
|
|
1162
1162
|
return 0;
|
|
1163
1163
|
if (c.isBlob(e))
|
|
@@ -1170,7 +1170,7 @@ const Sn = async (e) => {
|
|
|
1170
1170
|
return (await oe(e)).byteLength;
|
|
1171
1171
|
}, Rn = async (e, t) => {
|
|
1172
1172
|
const n = c.toFiniteNumber(e.getContentLength());
|
|
1173
|
-
return n ??
|
|
1173
|
+
return n ?? En(t);
|
|
1174
1174
|
}, On = X && (async (e) => {
|
|
1175
1175
|
let {
|
|
1176
1176
|
url: t,
|
|
@@ -1188,20 +1188,20 @@ const Sn = async (e) => {
|
|
|
1188
1188
|
} = We(e);
|
|
1189
1189
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1190
1190
|
let [g, h] = s || o || i ? wn([s, o], i) : [], p, w;
|
|
1191
|
-
const
|
|
1191
|
+
const T = () => {
|
|
1192
1192
|
!p && setTimeout(() => {
|
|
1193
1193
|
g && g.unsubscribe();
|
|
1194
1194
|
}), p = !0;
|
|
1195
1195
|
};
|
|
1196
1196
|
let N;
|
|
1197
1197
|
try {
|
|
1198
|
-
if (f &&
|
|
1199
|
-
let
|
|
1198
|
+
if (f && Tn && n !== "get" && n !== "head" && (N = await Rn(a, r)) !== 0) {
|
|
1199
|
+
let C = new Request(t, {
|
|
1200
1200
|
method: "POST",
|
|
1201
1201
|
body: r,
|
|
1202
1202
|
duplex: "half"
|
|
1203
|
-
}),
|
|
1204
|
-
c.isFormData(r) && (
|
|
1203
|
+
}), q;
|
|
1204
|
+
c.isFormData(r) && (q = C.headers.get("content-type")) && a.setContentType(q), C.body && (r = Ee(C.body, Oe, Re(
|
|
1205
1205
|
N,
|
|
1206
1206
|
V(f)
|
|
1207
1207
|
), null, oe));
|
|
@@ -1218,25 +1218,25 @@ const Sn = async (e) => {
|
|
|
1218
1218
|
let b = await fetch(w);
|
|
1219
1219
|
const _ = ie && (l === "stream" || l === "response");
|
|
1220
1220
|
if (ie && (u || _)) {
|
|
1221
|
-
const
|
|
1221
|
+
const C = {};
|
|
1222
1222
|
["status", "statusText", "headers"].forEach((pe) => {
|
|
1223
|
-
|
|
1223
|
+
C[pe] = b[pe];
|
|
1224
1224
|
});
|
|
1225
|
-
const
|
|
1225
|
+
const q = c.toFiniteNumber(b.headers.get("content-length"));
|
|
1226
1226
|
b = new Response(
|
|
1227
|
-
|
|
1228
|
-
|
|
1227
|
+
Ee(b.body, Oe, u && Re(
|
|
1228
|
+
q,
|
|
1229
1229
|
V(u, !0)
|
|
1230
|
-
), _ &&
|
|
1231
|
-
|
|
1230
|
+
), _ && T, oe),
|
|
1231
|
+
C
|
|
1232
1232
|
);
|
|
1233
1233
|
}
|
|
1234
1234
|
l = l || "text";
|
|
1235
1235
|
let tt = await G[c.findKey(G, l) || "text"](b, e);
|
|
1236
|
-
return !_ &&
|
|
1237
|
-
Ke(
|
|
1236
|
+
return !_ && T(), h && h(), await new Promise((C, q) => {
|
|
1237
|
+
Ke(C, q, {
|
|
1238
1238
|
data: tt,
|
|
1239
|
-
headers:
|
|
1239
|
+
headers: E.from(b.headers),
|
|
1240
1240
|
status: b.status,
|
|
1241
1241
|
statusText: b.statusText,
|
|
1242
1242
|
config: e,
|
|
@@ -1244,7 +1244,7 @@ const Sn = async (e) => {
|
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
1246
|
} catch (b) {
|
|
1247
|
-
throw
|
|
1247
|
+
throw T(), b && b.name === "TypeError" && /fetch/i.test(b.message) ? Object.assign(
|
|
1248
1248
|
new y("Network Error", y.ERR_NETWORK, e, w),
|
|
1249
1249
|
{
|
|
1250
1250
|
cause: b.cause || b
|
|
@@ -1301,7 +1301,7 @@ function te(e) {
|
|
|
1301
1301
|
throw new L(null, e);
|
|
1302
1302
|
}
|
|
1303
1303
|
function Pe(e) {
|
|
1304
|
-
return te(e), e.headers =
|
|
1304
|
+
return te(e), e.headers = E.from(e.headers), e.data = ee.call(
|
|
1305
1305
|
e,
|
|
1306
1306
|
e.transformRequest
|
|
1307
1307
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Xe.getAdapter(e.adapter || j.adapter)(e).then(function(r) {
|
|
@@ -1309,13 +1309,13 @@ function Pe(e) {
|
|
|
1309
1309
|
e,
|
|
1310
1310
|
e.transformResponse,
|
|
1311
1311
|
r
|
|
1312
|
-
), r.headers =
|
|
1312
|
+
), r.headers = E.from(r.headers), r;
|
|
1313
1313
|
}, function(r) {
|
|
1314
1314
|
return Ge(r) || (te(e), r && r.response && (r.response.data = ee.call(
|
|
1315
1315
|
e,
|
|
1316
1316
|
e.transformResponse,
|
|
1317
1317
|
r.response
|
|
1318
|
-
), r.response.headers =
|
|
1318
|
+
), r.response.headers = E.from(r.response.headers))), Promise.reject(r);
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
1321
|
const Ze = "1.7.2", he = {};
|
|
@@ -1363,7 +1363,7 @@ function Pn(e, t, n) {
|
|
|
1363
1363
|
const ce = {
|
|
1364
1364
|
assertOptions: Pn,
|
|
1365
1365
|
validators: he
|
|
1366
|
-
},
|
|
1366
|
+
}, k = ce.validators;
|
|
1367
1367
|
let B = class {
|
|
1368
1368
|
constructor(t) {
|
|
1369
1369
|
this.defaults = t, this.interceptors = {
|
|
@@ -1397,17 +1397,17 @@ let B = class {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
_request(t, n) {
|
|
1400
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1400
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = U(this.defaults, n);
|
|
1401
1401
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1402
1402
|
r !== void 0 && ce.assertOptions(r, {
|
|
1403
|
-
silentJSONParsing:
|
|
1404
|
-
forcedJSONParsing:
|
|
1405
|
-
clarifyTimeoutError:
|
|
1403
|
+
silentJSONParsing: k.transitional(k.boolean),
|
|
1404
|
+
forcedJSONParsing: k.transitional(k.boolean),
|
|
1405
|
+
clarifyTimeoutError: k.transitional(k.boolean)
|
|
1406
1406
|
}, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
|
|
1407
1407
|
serialize: s
|
|
1408
1408
|
} : ce.assertOptions(s, {
|
|
1409
|
-
encode:
|
|
1410
|
-
serialize:
|
|
1409
|
+
encode: k.function,
|
|
1410
|
+
serialize: k.function
|
|
1411
1411
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1412
1412
|
let i = o && c.merge(
|
|
1413
1413
|
o.common,
|
|
@@ -1418,7 +1418,7 @@ let B = class {
|
|
|
1418
1418
|
(h) => {
|
|
1419
1419
|
delete o[h];
|
|
1420
1420
|
}
|
|
1421
|
-
), n.headers =
|
|
1421
|
+
), n.headers = E.concat(i, o);
|
|
1422
1422
|
const u = [];
|
|
1423
1423
|
let f = !0;
|
|
1424
1424
|
this.interceptors.request.forEach(function(p) {
|
|
@@ -1456,14 +1456,14 @@ let B = class {
|
|
|
1456
1456
|
return a;
|
|
1457
1457
|
}
|
|
1458
1458
|
getUri(t) {
|
|
1459
|
-
t =
|
|
1459
|
+
t = U(this.defaults, t);
|
|
1460
1460
|
const n = ve(t.baseURL, t.url);
|
|
1461
1461
|
return Me(n, t.params, t.paramsSerializer);
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
1464
|
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1465
1465
|
B.prototype[t] = function(n, r) {
|
|
1466
|
-
return this.request(
|
|
1466
|
+
return this.request(U(r || {}, {
|
|
1467
1467
|
method: t,
|
|
1468
1468
|
url: n,
|
|
1469
1469
|
data: (r || {}).data
|
|
@@ -1473,7 +1473,7 @@ c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1473
1473
|
c.forEach(["post", "put", "patch"], function(t) {
|
|
1474
1474
|
function n(r) {
|
|
1475
1475
|
return function(o, i, u) {
|
|
1476
|
-
return this.request(
|
|
1476
|
+
return this.request(U(u || {}, {
|
|
1477
1477
|
method: t,
|
|
1478
1478
|
headers: r ? {
|
|
1479
1479
|
"Content-Type": "multipart/form-data"
|
|
@@ -1553,12 +1553,12 @@ let Nn = class Ye {
|
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
1555
|
};
|
|
1556
|
-
function
|
|
1556
|
+
function Cn(e) {
|
|
1557
1557
|
return function(n) {
|
|
1558
1558
|
return e.apply(null, n);
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function kn(e) {
|
|
1562
1562
|
return c.isObject(e) && e.isAxiosError === !0;
|
|
1563
1563
|
}
|
|
1564
1564
|
const ue = {
|
|
@@ -1632,29 +1632,29 @@ Object.entries(ue).forEach(([e, t]) => {
|
|
|
1632
1632
|
function et(e) {
|
|
1633
1633
|
const t = new B(e), n = Be(B.prototype.request, t);
|
|
1634
1634
|
return c.extend(n, B.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1635
|
-
return et(
|
|
1635
|
+
return et(U(e, s));
|
|
1636
1636
|
}, n;
|
|
1637
1637
|
}
|
|
1638
|
-
const
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1638
|
+
const S = et(j);
|
|
1639
|
+
S.Axios = B;
|
|
1640
|
+
S.CanceledError = L;
|
|
1641
|
+
S.CancelToken = Nn;
|
|
1642
|
+
S.isCancel = Ge;
|
|
1643
|
+
S.VERSION = Ze;
|
|
1644
|
+
S.toFormData = Q;
|
|
1645
|
+
S.AxiosError = y;
|
|
1646
|
+
S.Cancel = S.CanceledError;
|
|
1647
|
+
S.all = function(t) {
|
|
1648
1648
|
return Promise.all(t);
|
|
1649
1649
|
};
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1650
|
+
S.spread = Cn;
|
|
1651
|
+
S.isAxiosError = kn;
|
|
1652
|
+
S.mergeConfig = U;
|
|
1653
|
+
S.AxiosHeaders = E;
|
|
1654
|
+
S.formToJSON = (e) => Ve(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1655
|
+
S.getAdapter = Xe.getAdapter;
|
|
1656
|
+
S.HttpStatusCode = ue;
|
|
1657
|
+
S.default = S;
|
|
1658
1658
|
const {
|
|
1659
1659
|
Axios: Qn,
|
|
1660
1660
|
AxiosError: xn,
|
|
@@ -1667,22 +1667,22 @@ const {
|
|
|
1667
1667
|
isAxiosError: rr,
|
|
1668
1668
|
spread: sr,
|
|
1669
1669
|
toFormData: or,
|
|
1670
|
-
AxiosHeaders:
|
|
1670
|
+
AxiosHeaders: Ce,
|
|
1671
1671
|
HttpStatusCode: ir,
|
|
1672
1672
|
formToJSON: ar,
|
|
1673
1673
|
getAdapter: cr,
|
|
1674
1674
|
mergeConfig: ur
|
|
1675
|
-
} =
|
|
1675
|
+
} = S, H = () => new xn(
|
|
1676
1676
|
"Unauthorized",
|
|
1677
1677
|
"ERR_UNAUTHORIZED",
|
|
1678
|
-
{ headers: new
|
|
1678
|
+
{ headers: new Ce() },
|
|
1679
1679
|
null,
|
|
1680
1680
|
{
|
|
1681
1681
|
status: 401,
|
|
1682
1682
|
data: null,
|
|
1683
1683
|
statusText: "UNAUTHORIZED",
|
|
1684
1684
|
headers: {},
|
|
1685
|
-
config: { headers: new
|
|
1685
|
+
config: { headers: new Ce() }
|
|
1686
1686
|
}
|
|
1687
1687
|
), Bn = (e) => {
|
|
1688
1688
|
let t = !1;
|
|
@@ -1744,7 +1744,7 @@ const {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
};
|
|
1746
1746
|
}, O = (e) => {
|
|
1747
|
-
const t =
|
|
1747
|
+
const t = S.create(), n = e.apiVersion, r = e.productCode, s = e.baseUrl, o = s ? s.replace(/\/$/, "") : "", i = e.refreshTokenApiVersion ?? n, u = e.refreshTokenEndpointPath ?? "/refresh-token", f = `${o}/auth/${i}${u}`, l = Bn({
|
|
1748
1748
|
baseUrl: s ?? "",
|
|
1749
1749
|
apiVersion: n,
|
|
1750
1750
|
refreshTokenEndpointPath: u,
|
|
@@ -1779,24 +1779,24 @@ const {
|
|
|
1779
1779
|
...(m == null ? void 0 : m.headers) ?? {}
|
|
1780
1780
|
}, w = l.getAccessToken();
|
|
1781
1781
|
w && (p.Authorization = `Bearer ${w}`);
|
|
1782
|
-
const
|
|
1782
|
+
const T = {
|
|
1783
1783
|
method: (m == null ? void 0 : m.method) ?? "GET",
|
|
1784
1784
|
headers: p,
|
|
1785
1785
|
url: h,
|
|
1786
1786
|
data: m == null ? void 0 : m.data,
|
|
1787
1787
|
responseType: m == null ? void 0 : m.responseType
|
|
1788
1788
|
};
|
|
1789
|
-
return await t.request(
|
|
1789
|
+
return await t.request(T);
|
|
1790
1790
|
},
|
|
1791
1791
|
getAccessToken: l.getAccessToken,
|
|
1792
1792
|
setTokens: l.setTokens,
|
|
1793
1793
|
clearTokens: l.clearTokens
|
|
1794
1794
|
};
|
|
1795
|
-
},
|
|
1796
|
-
function
|
|
1795
|
+
}, Un = "cep";
|
|
1796
|
+
function qn(e) {
|
|
1797
1797
|
const t = O(e);
|
|
1798
1798
|
function n(r) {
|
|
1799
|
-
return t.request(`/${
|
|
1799
|
+
return t.request(`/${Un}`, {
|
|
1800
1800
|
method: "POST",
|
|
1801
1801
|
data: JSON.stringify(r)
|
|
1802
1802
|
});
|
|
@@ -1805,18 +1805,18 @@ function Un(e) {
|
|
|
1805
1805
|
getAddress: n
|
|
1806
1806
|
};
|
|
1807
1807
|
}
|
|
1808
|
-
const
|
|
1808
|
+
const ke = "auth", Fn = (e) => {
|
|
1809
1809
|
const t = O(e);
|
|
1810
1810
|
return {
|
|
1811
1811
|
postLogin: async (s) => {
|
|
1812
1812
|
var i;
|
|
1813
|
-
const o = await t.request(`/${
|
|
1813
|
+
const o = await t.request(`/${ke}/login`, {
|
|
1814
1814
|
method: "POST",
|
|
1815
1815
|
data: JSON.stringify(s)
|
|
1816
1816
|
});
|
|
1817
1817
|
return o.status === 200 && ((i = o.data) != null && i.accessToken) && localStorage.setItem("accessToken", o.data.accessToken), o;
|
|
1818
1818
|
},
|
|
1819
|
-
getToken: async (s) => await t.request(`/${
|
|
1819
|
+
getToken: async (s) => await t.request(`/${ke}?code=${s}`, {
|
|
1820
1820
|
method: "GET",
|
|
1821
1821
|
data: ""
|
|
1822
1822
|
})
|
|
@@ -1911,10 +1911,19 @@ const Ce = "auth", qn = (e) => {
|
|
|
1911
1911
|
}, J = "product/action", Jn = (e) => {
|
|
1912
1912
|
const t = O(e);
|
|
1913
1913
|
return {
|
|
1914
|
-
getCnpjStatus: (i) =>
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1914
|
+
getCnpjStatus: (i, u, f) => {
|
|
1915
|
+
const a = new URLSearchParams({
|
|
1916
|
+
...i && { cnpj: i },
|
|
1917
|
+
...u && { brokerageIdentity: u },
|
|
1918
|
+
...f !== void 0 && {
|
|
1919
|
+
isBrokerageDefinedAtStart: String(f)
|
|
1920
|
+
}
|
|
1921
|
+
}).toString(), d = `/${J}/Custom/CnpjCheck?${a}`;
|
|
1922
|
+
return t.request(d, {
|
|
1923
|
+
method: "GET",
|
|
1924
|
+
data: ""
|
|
1925
|
+
});
|
|
1926
|
+
},
|
|
1918
1927
|
getKeyNumber: () => t.request(`/${J}/Custom/GetKeyNumber`, {
|
|
1919
1928
|
method: "GET",
|
|
1920
1929
|
data: ""
|
|
@@ -2020,7 +2029,7 @@ const Ce = "auth", qn = (e) => {
|
|
|
2020
2029
|
};
|
|
2021
2030
|
};
|
|
2022
2031
|
function lr(e) {
|
|
2023
|
-
const t =
|
|
2032
|
+
const t = Fn(e), n = Ln(e), r = $n(e), s = Mn(e), o = Hn(e), i = qn(e), u = _n(e), f = jn(e), l = Jn(e), a = Vn(e), d = Kn(e), m = O(e);
|
|
2024
2033
|
return {
|
|
2025
2034
|
auth: t,
|
|
2026
2035
|
authAkad: n,
|
package/ts-lib.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(U,D){typeof exports=="object"&&typeof module<"u"?module.exports=D():typeof define=="function"&&define.amd?define(D):(U=typeof globalThis<"u"?globalThis:U||self,U["ts-lib"]=D())})(this,function(){"use strict";function U(e,t){return function(){return e.apply(t,arguments)}}const{toString:D}=Object.prototype,{getPrototypeOf:ee}=Object,M=(e=>t=>{const n=D.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>M(t)===e),z=e=>t=>typeof t===e,{isArray:L}=Array,_=z("undefined");function nt(e){return e!==null&&!_(e)&&e.constructor!==null&&!_(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ye=A("ArrayBuffer");function rt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ye(e.buffer),t}const st=z("string"),R=z("function"),be=z("number"),V=e=>e!==null&&typeof e=="object",ot=e=>e===!0||e===!1,G=e=>{if(M(e)!=="object")return!1;const t=ee(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},it=A("Date"),at=A("File"),ct=A("Blob"),ut=A("FileList"),lt=e=>V(e)&&R(e.pipe),ft=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=M(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},dt=A("URLSearchParams"),[ht,pt,mt,yt]=["ReadableStream","Request","Response","Headers"].map(A),bt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),L(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function ge(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const we=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Te=e=>!_(e)&&e!==we;function te(){const{caseless:e}=Te(this)&&this||{},t={},n=(r,s)=>{const o=e&&ge(t,s)||s;G(t[o])&&G(r)?t[o]=te(t[o],r):G(r)?t[o]=te({},r):L(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&I(arguments[r],n);return t}const gt=(e,t,n,{allOwnKeys:r}={})=>(I(t,(s,o)=>{n&&R(s)?e[o]=U(s,n):e[o]=s},{allOwnKeys:r}),e),wt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},St=(e,t,n,r)=>{let s,o,i;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&ee(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Et=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(L(e))return e;let t=e.length;if(!be(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ot=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ee(Uint8Array)),At=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Pt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Nt=A("HTMLFormElement"),kt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ct=A("RegExp"),Ee=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},xt=e=>{Ee(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return L(e)?r(e):r(String(e).split(t)),n},Ft=()=>{},Ut=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ne="abcdefghijklmnopqrstuvwxyz",Re="0123456789",Oe={DIGIT:Re,ALPHA:ne,ALPHA_DIGIT:ne+ne.toUpperCase()+Re},Lt=(e=16,t=Oe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function $t(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qt=e=>{const t=new Array(10),n=(r,s)=>{if(V(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=L(r)?[]:{};return I(r,(i,u)=>{const f=n(i,s+1);!_(f)&&(o[u]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Dt=A("AsyncFunction"),c={isArray:L,isArrayBuffer:ye,isBuffer:nt,isFormData:ft,isArrayBufferView:rt,isString:st,isNumber:be,isBoolean:ot,isObject:V,isPlainObject:G,isReadableStream:ht,isRequest:pt,isResponse:mt,isHeaders:yt,isUndefined:_,isDate:it,isFile:at,isBlob:ct,isRegExp:Ct,isFunction:R,isStream:lt,isURLSearchParams:dt,isTypedArray:Ot,isFileList:ut,forEach:I,merge:te,extend:gt,trim:bt,stripBOM:wt,inherits:Tt,toFlatObject:St,kindOf:M,kindOfTest:A,endsWith:Et,toArray:Rt,forEachEntry:At,matchAll:Pt,isHTMLForm:Nt,hasOwnProperty:Se,hasOwnProp:Se,reduceDescriptors:Ee,freezeMethods:xt,toObjectSet:Bt,toCamelCase:kt,noop:Ft,toFiniteNumber:Ut,findKey:ge,global:we,isContextDefined:Te,ALPHABET:Oe,generateString:Lt,isSpecCompliantForm:$t,toJSONObject:qt,isAsyncFn:Dt,isThenable:e=>e&&(V(e)||R(e))&&R(e.then)&&R(e.catch)};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ae=y.prototype,Pe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pe[e]={value:e}}),Object.defineProperties(y,Pe),Object.defineProperty(Ae,"isAxiosError",{value:!0}),y.from=(e,t,n,r,s,o)=>{const i=Object.create(Ae);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const _t=null;function re(e){return c.isPlainObject(e)||c.isArray(e)}function Ne(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function ke(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ne(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function It(e){return c.isArray(e)&&!e.some(re)}const jt=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function K(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!c.isUndefined(g[p])});const r=n.metaTokens,s=n.visitor||a,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(!f&&c.isBlob(h))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,p,g){let S=h;if(h&&!g&&typeof h=="object"){if(c.endsWith(p,"{}"))p=r?p:p.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&It(h)||(c.isFileList(h)||c.endsWith(p,"[]"))&&(S=c.toArray(h)))return p=Ne(p),S.forEach(function(w,J){!(c.isUndefined(w)||w===null)&&t.append(i===!0?ke([p],J,o):i===null?p:p+"[]",l(w))}),!1}return re(h)?!0:(t.append(ke(g,p,o),l(h)),!1)}const d=[],m=Object.assign(jt,{defaultVisitor:a,convertValue:l,isVisitable:re});function b(h,p){if(!c.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(h),c.forEach(h,function(S,N){(!(c.isUndefined(S)||S===null)&&s.call(t,S,c.isString(N)?N.trim():N,p,m))===!0&&b(S,p?p.concat(N):[N])}),d.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Ce(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function se(e,t){this._pairs=[],e&&K(e,this,t)}const xe=se.prototype;xe.append=function(t,n){this._pairs.push([t,n])},xe.toString=function(t){const n=t?function(r){return t.call(this,r,Ce)}:Ce;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Be(e,t,n){if(!t)return e;const r=n&&n.encode||Ht,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new se(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Fe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:se,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oe=typeof window<"u"&&typeof document<"u",Mt=(e=>oe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),zt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vt=oe&&window.location.href||"http://localhost",P={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oe,hasStandardBrowserEnv:Mt,hasStandardBrowserWebWorkerEnv:zt,origin:Vt},Symbol.toStringTag,{value:"Module"})),...Jt};function Gt(e,t){return K(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return P.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Kt(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Le(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const u=Number.isFinite(+i),f=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!u):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=vt(s[i])),!u)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Kt(r),s,n,0)}),n}return null}function Wt(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const j={transitional:Ue,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Le(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gt(t,this.formSerializer).toString();if((u=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return K(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Wt(t)):t}],transformResponse:[function(t){const n=this.transitional||j.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?y.from(u,y.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{j.headers[e]={}});const Qt=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xt=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Qt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t}
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[$e]=this[$e]={accessors:{}}).accessors,s=this.prototype;function o(i){const u=H(i);r[u]||(tn(s,i),r[u]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}};E.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(E.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),c.freezeMethods(E);function ae(e,t){const n=this||j,r=t||n,s=E.from(r.headers);let o=r.data;return c.forEach(e,function(u){o=u.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function qe(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits($,y,{__CANCEL__:!0});function De(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function nn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),a=r[o];i||(i=l),n[s]=f,r[s]=l;let d=o,m=0;for(;d!==s;)m+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i<t)return;const b=a&&l-a;return b?Math.round(m*1e3/b):void 0}}function sn(e,t){let n=0;const r=1e3/t;let s=null;return function(){const i=this===!0,u=Date.now();if(i||u-n>r)return s&&(clearTimeout(s),s=null),n=u,e.apply(null,arguments);s||(s=setTimeout(()=>(s=null,n=Date.now(),e.apply(null,arguments)),r-(u-n)))}}const W=(e,t,n=3)=>{let r=0;const s=rn(50,250);return sn(o=>{const i=o.loaded,u=o.lengthComputable?o.total:void 0,f=i-r,l=s(f),a=i<=u;r=i;const d={loaded:i,total:u,progress:u?i/u:void 0,bytes:f,rate:l||void 0,estimated:l&&u&&a?(u-i)/l:void 0,event:o,lengthComputable:u!=null};d[t?"download":"upload"]=!0,e(d)},n)},on=P.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const u=c.isString(i)?s(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),an=P.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function un(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _e(e,t){return e&&!cn(t)?un(e,t):t}const Ie=e=>e instanceof E?{...e}:e;function B(e,t){t=t||{};const n={};function r(l,a,d){return c.isPlainObject(l)&&c.isPlainObject(a)?c.merge.call({caseless:d},l,a):c.isPlainObject(a)?c.merge({},a):c.isArray(a)?a.slice():a}function s(l,a,d){if(c.isUndefined(a)){if(!c.isUndefined(l))return r(void 0,l,d)}else return r(l,a,d)}function o(l,a){if(!c.isUndefined(a))return r(void 0,a)}function i(l,a){if(c.isUndefined(a)){if(!c.isUndefined(l))return r(void 0,l)}else return r(void 0,a)}function u(l,a,d){if(d in t)return r(l,a);if(d in e)return r(void 0,l)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(l,a)=>s(Ie(l),Ie(a),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(a){const d=f[a]||s,m=d(e[a],t[a],a);c.isUndefined(m)&&d!==u||(n[a]=m)}),n}const je=e=>{const t=B({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:u}=t;t.headers=i=E.from(i),t.url=Be(_e(t.baseURL,t.url),e.params,e.paramsSerializer),u&&i.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(c.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...a]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...a].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&on(t.url))){const l=s&&o&&an.read(o);l&&i.set(s,l)}return t},ln=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=je(e);let o=s.data;const i=E.from(s.headers).normalize();let{responseType:u}=s,f;function l(){s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let a=new XMLHttpRequest;a.open(s.method.toUpperCase(),s.url,!0),a.timeout=s.timeout;function d(){if(!a)return;const b=E.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),p={data:!u||u==="text"||u==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:b,config:e,request:a};De(function(S){n(S),l()},function(S){r(S),l()},p),a=null}"onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(r(new y("Request aborted",y.ECONNABORTED,s,a)),a=null)},a.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,s,a)),a=null},a.ontimeout=function(){let h=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const p=s.transitional||Ue;s.timeoutErrorMessage&&(h=s.timeoutErrorMessage),r(new y(h,p.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,s,a)),a=null},o===void 0&&i.setContentType(null),"setRequestHeader"in a&&c.forEach(i.toJSON(),function(h,p){a.setRequestHeader(p,h)}),c.isUndefined(s.withCredentials)||(a.withCredentials=!!s.withCredentials),u&&u!=="json"&&(a.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&a.addEventListener("progress",W(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",W(s.onUploadProgress)),(s.cancelToken||s.signal)&&(f=b=>{a&&(r(!b||b.type?new $(null,e,a):b),a.abort(),a=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const m=nn(s.url);if(m&&P.protocols.indexOf(m)===-1){r(new y("Unsupported protocol "+m+":",y.ERR_BAD_REQUEST,e));return}a.send(o||null)})},fn=(e,t)=>{let n=new AbortController,r;const s=function(f){if(!r){r=!0,i();const l=f instanceof Error?f:this.reason;n.abort(l instanceof y?l:new $(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f&&(f.removeEventListener?f.removeEventListener("abort",s):f.unsubscribe(s))}),e=null)};e.forEach(f=>f&&f.addEventListener&&f.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=i,[u,()=>{o&&clearTimeout(o),o=null}]},dn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},hn=async function*(e,t,n){for await(const r of e)yield*dn(ArrayBuffer.isView(r)?r:await n(String(r)),t)},He=(e,t,n,r,s)=>{const o=hn(e,t,s);let i=0;return new ReadableStream({type:"bytes",async pull(u){const{done:f,value:l}=await o.next();if(f){u.close(),r();return}let a=l.byteLength;n&&n(i+=a),u.enqueue(new Uint8Array(l))},cancel(u){return r(u),o.return()}},{highWaterMark:2})},Je=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Me=Q&&typeof ReadableStream=="function",ce=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pn=Me&&(()=>{let e=!1;const t=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),ze=64*1024,ue=Me&&!!(()=>{try{return c.isReadableStream(new Response("").body)}catch{}})(),X={stream:ue&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X[t]&&(X[t]=c.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const mn=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(c.isArrayBufferView(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await ce(e)).byteLength},yn=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??mn(t)},le={http:_t,xhr:ln,fetch:Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:u,onUploadProgress:f,responseType:l,headers:a,withCredentials:d="same-origin",fetchOptions:m}=je(e);l=l?(l+"").toLowerCase():"text";let[b,h]=s||o||i?fn([s,o],i):[],p,g;const S=()=>{!p&&setTimeout(()=>{b&&b.unsubscribe()}),p=!0};let N;try{if(f&&pn&&n!=="get"&&n!=="head"&&(N=await yn(a,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),q;c.isFormData(r)&&(q=x.headers.get("content-type"))&&a.setContentType(q),x.body&&(r=He(x.body,ze,Je(N,W(f)),null,ce))}c.isString(d)||(d=d?"cors":"omit"),g=new Request(t,{...m,signal:b,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let w=await fetch(g);const J=ue&&(l==="stream"||l==="response");if(ue&&(u||J)){const x={};["status","statusText","headers"].forEach(et=>{x[et]=w[et]});const q=c.toFiniteNumber(w.headers.get("content-length"));w=new Response(He(w.body,ze,u&&Je(q,W(u,!0)),J&&S,ce),x)}l=l||"text";let Hn=await X[c.findKey(X,l)||"text"](w,e);return!J&&S(),h&&h(),await new Promise((x,q)=>{De(x,q,{data:Hn,headers:E.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:g})})}catch(w){throw S(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,g),{cause:w.cause||w}):y.from(w,w&&w.code,e,g)}})};c.forEach(le,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ve=e=>`- ${e}`,bn=e=>c.isFunction(e)||e===null||e===!1,Ge={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!bn(n)&&(r=le[(i=String(n)).toLowerCase()],r===void 0))throw new y(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
1
|
+
(function(F,D){typeof exports=="object"&&typeof module<"u"?module.exports=D():typeof define=="function"&&define.amd?define(D):(F=typeof globalThis<"u"?globalThis:F||self,F["ts-lib"]=D())})(this,function(){"use strict";function F(e,t){return function(){return e.apply(t,arguments)}}const{toString:D}=Object.prototype,{getPrototypeOf:ee}=Object,M=(e=>t=>{const n=D.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>M(t)===e),z=e=>t=>typeof t===e,{isArray:q}=Array,_=z("undefined");function nt(e){return e!==null&&!_(e)&&e.constructor!==null&&!_(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ye=A("ArrayBuffer");function rt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ye(e.buffer),t}const st=z("string"),R=z("function"),ge=z("number"),V=e=>e!==null&&typeof e=="object",ot=e=>e===!0||e===!1,G=e=>{if(M(e)!=="object")return!1;const t=ee(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},it=A("Date"),at=A("File"),ct=A("Blob"),ut=A("FileList"),lt=e=>V(e)&&R(e.pipe),ft=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=M(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},dt=A("URLSearchParams"),[ht,pt,mt,yt]=["ReadableStream","Request","Response","Headers"].map(A),gt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),q(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function be(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const we=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Se=e=>!_(e)&&e!==we;function te(){const{caseless:e}=Se(this)&&this||{},t={},n=(r,s)=>{const o=e&&be(t,s)||s;G(t[o])&&G(r)?t[o]=te(t[o],r):G(r)?t[o]=te({},r):q(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&I(arguments[r],n);return t}const bt=(e,t,n,{allOwnKeys:r}={})=>(I(t,(s,o)=>{n&&R(s)?e[o]=F(s,n):e[o]=s},{allOwnKeys:r}),e),wt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),St=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Tt=(e,t,n,r)=>{let s,o,i;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&ee(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Et=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!ge(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ot=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ee(Uint8Array)),At=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Pt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Nt=A("HTMLFormElement"),Ct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Te=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kt=A("RegExp"),Ee=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},xt=e=>{Ee(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return q(e)?r(e):r(String(e).split(t)),n},Ut=()=>{},Ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ne="abcdefghijklmnopqrstuvwxyz",Re="0123456789",Oe={DIGIT:Re,ALPHA:ne,ALPHA_DIGIT:ne+ne.toUpperCase()+Re},qt=(e=16,t=Oe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lt(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $t=e=>{const t=new Array(10),n=(r,s)=>{if(V(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=q(r)?[]:{};return I(r,(i,u)=>{const f=n(i,s+1);!_(f)&&(o[u]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Dt=A("AsyncFunction"),c={isArray:q,isArrayBuffer:ye,isBuffer:nt,isFormData:ft,isArrayBufferView:rt,isString:st,isNumber:ge,isBoolean:ot,isObject:V,isPlainObject:G,isReadableStream:ht,isRequest:pt,isResponse:mt,isHeaders:yt,isUndefined:_,isDate:it,isFile:at,isBlob:ct,isRegExp:kt,isFunction:R,isStream:lt,isURLSearchParams:dt,isTypedArray:Ot,isFileList:ut,forEach:I,merge:te,extend:bt,trim:gt,stripBOM:wt,inherits:St,toFlatObject:Tt,kindOf:M,kindOfTest:A,endsWith:Et,toArray:Rt,forEachEntry:At,matchAll:Pt,isHTMLForm:Nt,hasOwnProperty:Te,hasOwnProp:Te,reduceDescriptors:Ee,freezeMethods:xt,toObjectSet:Bt,toCamelCase:Ct,noop:Ut,toFiniteNumber:Ft,findKey:be,global:we,isContextDefined:Se,ALPHABET:Oe,generateString:qt,isSpecCompliantForm:Lt,toJSONObject:$t,isAsyncFn:Dt,isThenable:e=>e&&(V(e)||R(e))&&R(e.then)&&R(e.catch)};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ae=y.prototype,Pe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Pe[e]={value:e}}),Object.defineProperties(y,Pe),Object.defineProperty(Ae,"isAxiosError",{value:!0}),y.from=(e,t,n,r,s,o)=>{const i=Object.create(Ae);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const _t=null;function re(e){return c.isPlainObject(e)||c.isArray(e)}function Ne(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ce(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ne(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function It(e){return c.isArray(e)&&!e.some(re)}const jt=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function K(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!c.isUndefined(b[p])});const r=n.metaTokens,s=n.visitor||a,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(!f&&c.isBlob(h))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,p,b){let T=h;if(h&&!b&&typeof h=="object"){if(c.endsWith(p,"{}"))p=r?p:p.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&It(h)||(c.isFileList(h)||c.endsWith(p,"[]"))&&(T=c.toArray(h)))return p=Ne(p),T.forEach(function(w,J){!(c.isUndefined(w)||w===null)&&t.append(i===!0?Ce([p],J,o):i===null?p:p+"[]",l(w))}),!1}return re(h)?!0:(t.append(Ce(b,p,o),l(h)),!1)}const d=[],m=Object.assign(jt,{defaultVisitor:a,convertValue:l,isVisitable:re});function g(h,p){if(!c.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(h),c.forEach(h,function(T,N){(!(c.isUndefined(T)||T===null)&&s.call(t,T,c.isString(N)?N.trim():N,p,m))===!0&&g(T,p?p.concat(N):[N])}),d.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return g(e),t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function se(e,t){this._pairs=[],e&&K(e,this,t)}const xe=se.prototype;xe.append=function(t,n){this._pairs.push([t,n])},xe.toString=function(t){const n=t?function(r){return t.call(this,r,ke)}:ke;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Be(e,t,n){if(!t)return e;const r=n&&n.encode||Ht,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new se(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ue{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:se,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},oe=typeof window<"u"&&typeof document<"u",Mt=(e=>oe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),zt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vt=oe&&window.location.href||"http://localhost",P={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oe,hasStandardBrowserEnv:Mt,hasStandardBrowserWebWorkerEnv:zt,origin:Vt},Symbol.toStringTag,{value:"Module"})),...Jt};function Gt(e,t){return K(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return P.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Kt(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function qe(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const u=Number.isFinite(+i),f=o>=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!u):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=vt(s[i])),!u)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Kt(r),s,n,0)}),n}return null}function Wt(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const j={transitional:Fe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(qe(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gt(t,this.formSerializer).toString();if((u=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return K(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Wt(t)):t}],transformResponse:[function(t){const n=this.transitional||j.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?y.from(u,y.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{j.headers[e]={}});const Qt=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xt=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Qt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Le=Symbol("internals");function H(e){return e&&String(e).trim().toLowerCase()}function v(e){return e===!1||e==null?e:c.isArray(e)?e.map(v):String(e)}function Zt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Yt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ie(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function en(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function tn(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let E=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(u,f,l){const a=H(f);if(!a)throw new Error("header name must be a non-empty string");const d=c.findKey(s,a);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||f]=v(u))}const i=(u,f)=>c.forEach(u,(l,a)=>o(l,a,f));if(c.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(c.isString(t)&&(t=t.trim())&&!Yt(t))i(Xt(t),n);else if(c.isHeaders(t))for(const[u,f]of t.entries())o(f,u,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=H(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Zt(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=H(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ie(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=H(i),i){const u=c.findKey(r,i);u&&(!n||ie(r,r[u],u,n))&&(delete r[u],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ie(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=v(s),delete n[o];return}const u=t?en(o):String(o).trim();u!==o&&delete n[o],n[u]=v(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Le]=this[Le]={accessors:{}}).accessors,s=this.prototype;function o(i){const u=H(i);r[u]||(tn(s,i),r[u]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}};E.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(E.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),c.freezeMethods(E);function ae(e,t){const n=this||j,r=t||n,s=E.from(r.headers);let o=r.data;return c.forEach(e,function(u){o=u.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function $e(e){return!!(e&&e.__CANCEL__)}function L(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(L,y,{__CANCEL__:!0});function De(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function nn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),a=r[o];i||(i=l),n[s]=f,r[s]=l;let d=o,m=0;for(;d!==s;)m+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i<t)return;const g=a&&l-a;return g?Math.round(m*1e3/g):void 0}}function sn(e,t){let n=0;const r=1e3/t;let s=null;return function(){const i=this===!0,u=Date.now();if(i||u-n>r)return s&&(clearTimeout(s),s=null),n=u,e.apply(null,arguments);s||(s=setTimeout(()=>(s=null,n=Date.now(),e.apply(null,arguments)),r-(u-n)))}}const W=(e,t,n=3)=>{let r=0;const s=rn(50,250);return sn(o=>{const i=o.loaded,u=o.lengthComputable?o.total:void 0,f=i-r,l=s(f),a=i<=u;r=i;const d={loaded:i,total:u,progress:u?i/u:void 0,bytes:f,rate:l||void 0,estimated:l&&u&&a?(u-i)/l:void 0,event:o,lengthComputable:u!=null};d[t?"download":"upload"]=!0,e(d)},n)},on=P.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const u=c.isString(i)?s(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),an=P.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function un(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _e(e,t){return e&&!cn(t)?un(e,t):t}const Ie=e=>e instanceof E?{...e}:e;function B(e,t){t=t||{};const n={};function r(l,a,d){return c.isPlainObject(l)&&c.isPlainObject(a)?c.merge.call({caseless:d},l,a):c.isPlainObject(a)?c.merge({},a):c.isArray(a)?a.slice():a}function s(l,a,d){if(c.isUndefined(a)){if(!c.isUndefined(l))return r(void 0,l,d)}else return r(l,a,d)}function o(l,a){if(!c.isUndefined(a))return r(void 0,a)}function i(l,a){if(c.isUndefined(a)){if(!c.isUndefined(l))return r(void 0,l)}else return r(void 0,a)}function u(l,a,d){if(d in t)return r(l,a);if(d in e)return r(void 0,l)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(l,a)=>s(Ie(l),Ie(a),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(a){const d=f[a]||s,m=d(e[a],t[a],a);c.isUndefined(m)&&d!==u||(n[a]=m)}),n}const je=e=>{const t=B({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:u}=t;t.headers=i=E.from(i),t.url=Be(_e(t.baseURL,t.url),e.params,e.paramsSerializer),u&&i.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(c.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...a]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...a].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&c.isFunction(r)&&(r=r(t)),r||r!==!1&&on(t.url))){const l=s&&o&&an.read(o);l&&i.set(s,l)}return t},ln=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=je(e);let o=s.data;const i=E.from(s.headers).normalize();let{responseType:u}=s,f;function l(){s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let a=new XMLHttpRequest;a.open(s.method.toUpperCase(),s.url,!0),a.timeout=s.timeout;function d(){if(!a)return;const g=E.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),p={data:!u||u==="text"||u==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:g,config:e,request:a};De(function(T){n(T),l()},function(T){r(T),l()},p),a=null}"onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(r(new y("Request aborted",y.ECONNABORTED,s,a)),a=null)},a.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,s,a)),a=null},a.ontimeout=function(){let h=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const p=s.transitional||Fe;s.timeoutErrorMessage&&(h=s.timeoutErrorMessage),r(new y(h,p.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,s,a)),a=null},o===void 0&&i.setContentType(null),"setRequestHeader"in a&&c.forEach(i.toJSON(),function(h,p){a.setRequestHeader(p,h)}),c.isUndefined(s.withCredentials)||(a.withCredentials=!!s.withCredentials),u&&u!=="json"&&(a.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&a.addEventListener("progress",W(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",W(s.onUploadProgress)),(s.cancelToken||s.signal)&&(f=g=>{a&&(r(!g||g.type?new L(null,e,a):g),a.abort(),a=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const m=nn(s.url);if(m&&P.protocols.indexOf(m)===-1){r(new y("Unsupported protocol "+m+":",y.ERR_BAD_REQUEST,e));return}a.send(o||null)})},fn=(e,t)=>{let n=new AbortController,r;const s=function(f){if(!r){r=!0,i();const l=f instanceof Error?f:this.reason;n.abort(l instanceof y?l:new L(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f&&(f.removeEventListener?f.removeEventListener("abort",s):f.unsubscribe(s))}),e=null)};e.forEach(f=>f&&f.addEventListener&&f.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=i,[u,()=>{o&&clearTimeout(o),o=null}]},dn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},hn=async function*(e,t,n){for await(const r of e)yield*dn(ArrayBuffer.isView(r)?r:await n(String(r)),t)},He=(e,t,n,r,s)=>{const o=hn(e,t,s);let i=0;return new ReadableStream({type:"bytes",async pull(u){const{done:f,value:l}=await o.next();if(f){u.close(),r();return}let a=l.byteLength;n&&n(i+=a),u.enqueue(new Uint8Array(l))},cancel(u){return r(u),o.return()}},{highWaterMark:2})},Je=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Me=Q&&typeof ReadableStream=="function",ce=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pn=Me&&(()=>{let e=!1;const t=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),ze=64*1024,ue=Me&&!!(()=>{try{return c.isReadableStream(new Response("").body)}catch{}})(),X={stream:ue&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X[t]&&(X[t]=c.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const mn=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(c.isArrayBufferView(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await ce(e)).byteLength},yn=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??mn(t)},le={http:_t,xhr:ln,fetch:Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:u,onUploadProgress:f,responseType:l,headers:a,withCredentials:d="same-origin",fetchOptions:m}=je(e);l=l?(l+"").toLowerCase():"text";let[g,h]=s||o||i?fn([s,o],i):[],p,b;const T=()=>{!p&&setTimeout(()=>{g&&g.unsubscribe()}),p=!0};let N;try{if(f&&pn&&n!=="get"&&n!=="head"&&(N=await yn(a,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),$;c.isFormData(r)&&($=x.headers.get("content-type"))&&a.setContentType($),x.body&&(r=He(x.body,ze,Je(N,W(f)),null,ce))}c.isString(d)||(d=d?"cors":"omit"),b=new Request(t,{...m,signal:g,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let w=await fetch(b);const J=ue&&(l==="stream"||l==="response");if(ue&&(u||J)){const x={};["status","statusText","headers"].forEach(et=>{x[et]=w[et]});const $=c.toFiniteNumber(w.headers.get("content-length"));w=new Response(He(w.body,ze,u&&Je($,W(u,!0)),J&&T,ce),x)}l=l||"text";let Hn=await X[c.findKey(X,l)||"text"](w,e);return!J&&T(),h&&h(),await new Promise((x,$)=>{De(x,$,{data:Hn,headers:E.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:b})})}catch(w){throw T(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,b),{cause:w.cause||w}):y.from(w,w&&w.code,e,b)}})};c.forEach(le,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ve=e=>`- ${e}`,gn=e=>c.isFunction(e)||e===null||e===!1,Ge={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!gn(n)&&(r=le[(i=String(n)).toLowerCase()],r===void 0))throw new y(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
4
|
`+o.map(Ve).join(`
|
|
5
|
-
`):" "+Ve(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:le};function fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new
|
|
6
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&he.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:he.assertOptions(s,{encode:k.function,serialize:k.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=E.concat(i,o);const u=[];let f=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(f=f&&p.synchronous,u.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let a,d=0,m;if(!f){const h=[Ke.bind(this),void 0];for(h.unshift.apply(h,u),h.push.apply(h,l),m=h.length,a=Promise.resolve(n);d<m;)a=a.then(h[d++],h[d++]);return a}m=u.length;let b=n;for(d=0;d<m;){const h=u[d++],p=u[d++];try{b=h(b)}catch(g){p.call(this,g);break}}try{a=Ke.call(this,b)}catch(h){return Promise.reject(h)}for(d=0,m=l.length;d<m;)a=a.then(l[d++],l[d++]);return a}getUri(t){t=B(this.defaults,t);const n=_e(t.baseURL,t.url);return Be(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){F.prototype[t]=function(n,r){return this.request(B(r||{},{method:t,url:n,data:(r||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(B(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}F.prototype[t]=n(),F.prototype[t+"Form"]=n(!0)});let wn=class tt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new $(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new tt(function(s){t=s}),cancel:t}}};function Tn(e){return function(n){return e.apply(null,n)}}function Sn(e){return c.isObject(e)&&e.isAxiosError===!0}const pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pe).forEach(([e,t])=>{pe[t]=e});function Qe(e){const t=new F(e),n=U(F.prototype.request,t);return c.extend(n,F.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(B(e,s))},n}const T=Qe(j);T.Axios=F,T.CanceledError=$,T.CancelToken=wn,T.isCancel=qe,T.VERSION=ve,T.toFormData=K,T.AxiosError=y,T.Cancel=T.CanceledError,T.all=function(t){return Promise.all(t)},T.spread=Tn,T.isAxiosError=Sn,T.mergeConfig=B,T.AxiosHeaders=E,T.formToJSON=e=>Le(c.isHTMLForm(e)?new FormData(e):e),T.getAdapter=Ge.getAdapter,T.HttpStatusCode=pe,T.default=T;const{Axios:Wn,AxiosError:En,CanceledError:Qn,isCancel:Xn,CancelToken:Zn,VERSION:Yn,all:er,Cancel:tr,isAxiosError:nr,spread:rr,toFormData:sr,AxiosHeaders:Xe,HttpStatusCode:or,formToJSON:ir,getAdapter:ar,mergeConfig:cr}=T,Z=()=>new En("Unauthorized","ERR_UNAUTHORIZED",{headers:new Xe},null,{status:401,data:null,statusText:"UNAUTHORIZED",headers:{},config:{headers:new Xe}}),Rn=e=>{let t=!1;const n=[],r=()=>localStorage.getItem("accessToken"),s=()=>localStorage.getItem("refreshToken"),o=a=>{localStorage.setItem("accessToken",a.accessToken),localStorage.setItem("refreshToken",a.refreshToken)},i=()=>{localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken")},u=(a,d=null)=>{n.forEach(m=>{var b;a?m.reject(a):((b=m.requestConfig).headers??(b.headers={}),m.requestConfig.headers.Authorization=`Bearer ${d}`,m.resolve(m.requestConfig))}),n.length=0};return{getAccessToken:r,setTokens:o,clearTokens:i,handleTokenRefresh:async a=>{var h;if((h=a.url)==null?void 0:h.includes(e.refreshTokenEndpointPath)){i();const p=Z();throw u(p),p}if(!r()){i();const p=Z();throw u(p),p}if(t)return new Promise((p,g)=>{n.push({resolve:p,reject:g,requestConfig:a})});const b=s();if(!b){i();const p=Z();throw u(p),p}t=!0;try{const p=await e.onRefreshToken(b);return o(p),a.headers??(a.headers={}),a.headers.Authorization=`Bearer ${p.accessToken}`,u(null,p.accessToken),t=!1,a}catch{i();const g=Z();throw u(g),t=!1,g}},isAuthError:a=>{var d;return((d=a==null?void 0:a.response)==null?void 0:d.status)===401}}},O=e=>{const t=T.create(),n=e.apiVersion,r=e.productCode,s=e.baseUrl,o=s?s.replace(/\/$/,""):"",i=e.refreshTokenApiVersion??n,u=e.refreshTokenEndpointPath??"/refresh-token",f=`${o}/auth/${i}${u}`,l=Rn({baseUrl:s??"",apiVersion:n,refreshTokenEndpointPath:u,onRefreshToken:async d=>(await t.post(f,{refreshToken:d})).data});return t.interceptors.response.use(d=>d,async d=>{const m=d.config;if(!l.isAuthError(d)||m._retry)return Promise.reject(d);m._retry=!0;try{const b=await l.handleTokenRefresh(m);return t.request(b)}catch(b){return Promise.reject(b)}}),e.responseInterceptor&&t.interceptors.response.use(e.responseInterceptor.onFulfilled,e.responseInterceptor.onReject),{request:async(d,m)=>{const b=d.startsWith("/")?d.substring(1):d,h=`${o}/${r}/${n}/${b}`,p={"Content-Type":(m==null?void 0:m.contentType)??"application/json",apiVersion:n,Authorization:"",...e.headers??{},...(m==null?void 0:m.headers)??{}},g=l.getAccessToken();g&&(p.Authorization=`Bearer ${g}`);const S={method:(m==null?void 0:m.method)??"GET",headers:p,url:h,data:m==null?void 0:m.data,responseType:m==null?void 0:m.responseType};return await t.request(S)},getAccessToken:l.getAccessToken,setTokens:l.setTokens,clearTokens:l.clearTokens}},On="cep";function An(e){const t=O(e);function n(r){return t.request(`/${On}`,{method:"POST",data:JSON.stringify(r)})}return{getAddress:n}}const Ze="auth",Pn=e=>{const t=O(e);return{postLogin:async s=>{var i;const o=await t.request(`/${Ze}/login`,{method:"POST",data:JSON.stringify(s)});return o.status===200&&((i=o.data)!=null&&i.accessToken)&&localStorage.setItem("accessToken",o.data.accessToken),o},getToken:async s=>await t.request(`/${Ze}?code=${s}`,{method:"GET",data:""})}},Nn=e=>{const t=O(e);return{signUp:async u=>await t.request("/sign-up",{method:"POST",data:JSON.stringify(u)}),signIn:async u=>{var l,a;const f=await t.request("/sign-in",{method:"POST",data:JSON.stringify(u)});return f.status===200&&((l=f.data)!=null&&l.accessToken)&&((a=f.data)!=null&&a.refreshToken)&&t.setTokens(f.data),f},getProfile:async()=>await t.request("/me",{method:"GET",data:""}),recoverPassword:async u=>await t.request("/recovery",{method:"POST",data:JSON.stringify(u)}),updatePassword:async u=>await t.request("/update-password",{method:"POST",data:JSON.stringify(u)})}},Ye="digital",kn=e=>{const t=O(e);return{getBroker:()=>t.request(`/${Ye}/getBroker`,{method:"GET",data:""}),getAllBrokerages:s=>t.request(`/${Ye}/getAllBrokerages?name=${s}`,{method:"GET",data:""})}},Cn="data",xn=e=>{const t=O(e);return{postData:async r=>await t.request(`/${Cn}`,{method:"POST",data:JSON.stringify(r)})}},Bn="endorsement",Fn=e=>{const t=O(e);return{putEndorsement:(r,s)=>{const o=new FormData;return o.append("data",JSON.stringify(r)),s&&(Array.isArray(s)?s.forEach(i=>{o.append("attachments",i)}):o.append("attachments",s)),t.request(`/${Bn}`,{method:"PUT",data:o,contentType:"multipart/form-data"})}}},me="payment",Un=e=>{const t=O(e);return{postPayment:o=>t.request(`/${me}`,{method:"POST",data:JSON.stringify(o)}),getPaymentStatus:o=>t.request(`/${me}/status?policyId=${o.policyId}`,{method:"GET",data:""}),getPaymentSummary:o=>t.request(`/${me}/summary?policyId=${o.policyId}`,{method:"GET",data:""})}},Y="product/action",Ln=e=>{const t=O(e);return{getCnpjStatus:i=>t.request(`/${Y}/Custom/CnpjCheck?cnpj=${i}`,{method:"GET",data:""}),getKeyNumber:()=>t.request(`/${Y}/Custom/GetKeyNumber`,{method:"GET",data:""}),getProposalNumberByKeyNumber:i=>t.request(`/${Y}/Custom/GetProposalNoByKeyNumber?keyNumber=${i.keyNumber}`,{method:"GET",data:""}),postCoveragesAndClausesRules:i=>t.request(`/${Y}/Custom/LoadRules`,{method:"POST",data:JSON.stringify(i)})}},C="quotation",$n=e=>{const t=O(e);return{getQuotations:a=>{const d=new URLSearchParams({...a});return t.request(`/${C}/query?${d.toString()}`,{method:"GET",data:""})},getQuotationDetail:a=>{const d=new URLSearchParams({id:a.policyId});return t.request(`/${C}?${d.toString()}`,{method:"GET",data:""})},postQuickQuote:a=>t.request(`/${C}/QuickQuote`,{method:"POST",data:JSON.stringify(a)}),postFullQuote:a=>t.request(`/${C}/FullQuote`,{method:"POST",data:JSON.stringify(a)}),postBind:a=>t.request(`/${C}/Bind`,{method:"POST",data:JSON.stringify(a)}),getQuotation:a=>t.request(`/${C}?id=${a.policyId}`,{method:"GET",data:""}),getVersions:a=>t.request(`/${C}/versions?policyId=${a.policyId}`,{method:"GET",data:""}),switchSelectedVersion:a=>t.request(`/${C}/switchSelectedVersion?policyId=${a.policyId}"ationVersionId=${a.quotationVersionId}`,{method:"POST",data:JSON.stringify(a)})}},qn="report",Dn=e=>{const t=O(e);return{getReportStream:r=>{const s=new URLSearchParams({policyId:r.policyId,documentType:r.documentType??"certificate",...r.additionalParams});return t.request(`/${qn}/generate-stream?${s.toString()}`,{method:"GET",data:"",responseType:"blob"})}}},_n="SubscriberData",In=e=>{const t=O(e);return{getSubscriber:r=>t.request(`/${_n}/get-subscriber-data?cnpj=${r}`,{method:"GET",data:""})}};function jn(e){const t=Pn(e),n=Nn(e),r=xn(e),s=$n(e),o=Un(e),i=An(e),u=kn(e),f=Fn(e),l=Ln(e),a=Dn(e),d=In(e),m=O(e);return{auth:t,authAkad:n,data:r,quotation:s,payment:o,address:i,broker:u,endorsement:f,plugin:l,report:a,subscriber:d,base:m}}return jn});
|
|
5
|
+
`):" "+Ve(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:le};function fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function Ke(e){return fe(e),e.headers=E.from(e.headers),e.data=ae.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ge.getAdapter(e.adapter||j.adapter)(e).then(function(r){return fe(e),r.data=ae.call(e,e.transformResponse,r),r.headers=E.from(r.headers),r},function(r){return $e(r)||(fe(e),r&&r.response&&(r.response.data=ae.call(e,e.transformResponse,r.response),r.response.headers=E.from(r.response.headers))),Promise.reject(r)})}const ve="1.7.2",de={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{de[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const We={};de.transitional=function(t,n,r){function s(o,i){return"[Axios v"+ve+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!We[i]&&(We[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function bn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const u=e[o],f=u===void 0||i(u,o,e);if(f!==!0)throw new y("option "+o+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const he={assertOptions:bn,validators:de},C=he.validators;let U=class{constructor(t){this.defaults=t,this.interceptors={request:new Ue,response:new Ue}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&he.assertOptions(r,{silentJSONParsing:C.transitional(C.boolean),forcedJSONParsing:C.transitional(C.boolean),clarifyTimeoutError:C.transitional(C.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:he.assertOptions(s,{encode:C.function,serialize:C.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=E.concat(i,o);const u=[];let f=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(f=f&&p.synchronous,u.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let a,d=0,m;if(!f){const h=[Ke.bind(this),void 0];for(h.unshift.apply(h,u),h.push.apply(h,l),m=h.length,a=Promise.resolve(n);d<m;)a=a.then(h[d++],h[d++]);return a}m=u.length;let g=n;for(d=0;d<m;){const h=u[d++],p=u[d++];try{g=h(g)}catch(b){p.call(this,b);break}}try{a=Ke.call(this,g)}catch(h){return Promise.reject(h)}for(d=0,m=l.length;d<m;)a=a.then(l[d++],l[d++]);return a}getUri(t){t=B(this.defaults,t);const n=_e(t.baseURL,t.url);return Be(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){U.prototype[t]=function(n,r){return this.request(B(r||{},{method:t,url:n,data:(r||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(B(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}U.prototype[t]=n(),U.prototype[t+"Form"]=n(!0)});let wn=class tt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new L(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new tt(function(s){t=s}),cancel:t}}};function Sn(e){return function(n){return e.apply(null,n)}}function Tn(e){return c.isObject(e)&&e.isAxiosError===!0}const pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pe).forEach(([e,t])=>{pe[t]=e});function Qe(e){const t=new U(e),n=F(U.prototype.request,t);return c.extend(n,U.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(B(e,s))},n}const S=Qe(j);S.Axios=U,S.CanceledError=L,S.CancelToken=wn,S.isCancel=$e,S.VERSION=ve,S.toFormData=K,S.AxiosError=y,S.Cancel=S.CanceledError,S.all=function(t){return Promise.all(t)},S.spread=Sn,S.isAxiosError=Tn,S.mergeConfig=B,S.AxiosHeaders=E,S.formToJSON=e=>qe(c.isHTMLForm(e)?new FormData(e):e),S.getAdapter=Ge.getAdapter,S.HttpStatusCode=pe,S.default=S;const{Axios:Wn,AxiosError:En,CanceledError:Qn,isCancel:Xn,CancelToken:Zn,VERSION:Yn,all:er,Cancel:tr,isAxiosError:nr,spread:rr,toFormData:sr,AxiosHeaders:Xe,HttpStatusCode:or,formToJSON:ir,getAdapter:ar,mergeConfig:cr}=S,Z=()=>new En("Unauthorized","ERR_UNAUTHORIZED",{headers:new Xe},null,{status:401,data:null,statusText:"UNAUTHORIZED",headers:{},config:{headers:new Xe}}),Rn=e=>{let t=!1;const n=[],r=()=>localStorage.getItem("accessToken"),s=()=>localStorage.getItem("refreshToken"),o=a=>{localStorage.setItem("accessToken",a.accessToken),localStorage.setItem("refreshToken",a.refreshToken)},i=()=>{localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken")},u=(a,d=null)=>{n.forEach(m=>{var g;a?m.reject(a):((g=m.requestConfig).headers??(g.headers={}),m.requestConfig.headers.Authorization=`Bearer ${d}`,m.resolve(m.requestConfig))}),n.length=0};return{getAccessToken:r,setTokens:o,clearTokens:i,handleTokenRefresh:async a=>{var h;if((h=a.url)==null?void 0:h.includes(e.refreshTokenEndpointPath)){i();const p=Z();throw u(p),p}if(!r()){i();const p=Z();throw u(p),p}if(t)return new Promise((p,b)=>{n.push({resolve:p,reject:b,requestConfig:a})});const g=s();if(!g){i();const p=Z();throw u(p),p}t=!0;try{const p=await e.onRefreshToken(g);return o(p),a.headers??(a.headers={}),a.headers.Authorization=`Bearer ${p.accessToken}`,u(null,p.accessToken),t=!1,a}catch{i();const b=Z();throw u(b),t=!1,b}},isAuthError:a=>{var d;return((d=a==null?void 0:a.response)==null?void 0:d.status)===401}}},O=e=>{const t=S.create(),n=e.apiVersion,r=e.productCode,s=e.baseUrl,o=s?s.replace(/\/$/,""):"",i=e.refreshTokenApiVersion??n,u=e.refreshTokenEndpointPath??"/refresh-token",f=`${o}/auth/${i}${u}`,l=Rn({baseUrl:s??"",apiVersion:n,refreshTokenEndpointPath:u,onRefreshToken:async d=>(await t.post(f,{refreshToken:d})).data});return t.interceptors.response.use(d=>d,async d=>{const m=d.config;if(!l.isAuthError(d)||m._retry)return Promise.reject(d);m._retry=!0;try{const g=await l.handleTokenRefresh(m);return t.request(g)}catch(g){return Promise.reject(g)}}),e.responseInterceptor&&t.interceptors.response.use(e.responseInterceptor.onFulfilled,e.responseInterceptor.onReject),{request:async(d,m)=>{const g=d.startsWith("/")?d.substring(1):d,h=`${o}/${r}/${n}/${g}`,p={"Content-Type":(m==null?void 0:m.contentType)??"application/json",apiVersion:n,Authorization:"",...e.headers??{},...(m==null?void 0:m.headers)??{}},b=l.getAccessToken();b&&(p.Authorization=`Bearer ${b}`);const T={method:(m==null?void 0:m.method)??"GET",headers:p,url:h,data:m==null?void 0:m.data,responseType:m==null?void 0:m.responseType};return await t.request(T)},getAccessToken:l.getAccessToken,setTokens:l.setTokens,clearTokens:l.clearTokens}},On="cep";function An(e){const t=O(e);function n(r){return t.request(`/${On}`,{method:"POST",data:JSON.stringify(r)})}return{getAddress:n}}const Ze="auth",Pn=e=>{const t=O(e);return{postLogin:async s=>{var i;const o=await t.request(`/${Ze}/login`,{method:"POST",data:JSON.stringify(s)});return o.status===200&&((i=o.data)!=null&&i.accessToken)&&localStorage.setItem("accessToken",o.data.accessToken),o},getToken:async s=>await t.request(`/${Ze}?code=${s}`,{method:"GET",data:""})}},Nn=e=>{const t=O(e);return{signUp:async u=>await t.request("/sign-up",{method:"POST",data:JSON.stringify(u)}),signIn:async u=>{var l,a;const f=await t.request("/sign-in",{method:"POST",data:JSON.stringify(u)});return f.status===200&&((l=f.data)!=null&&l.accessToken)&&((a=f.data)!=null&&a.refreshToken)&&t.setTokens(f.data),f},getProfile:async()=>await t.request("/me",{method:"GET",data:""}),recoverPassword:async u=>await t.request("/recovery",{method:"POST",data:JSON.stringify(u)}),updatePassword:async u=>await t.request("/update-password",{method:"POST",data:JSON.stringify(u)})}},Ye="digital",Cn=e=>{const t=O(e);return{getBroker:()=>t.request(`/${Ye}/getBroker`,{method:"GET",data:""}),getAllBrokerages:s=>t.request(`/${Ye}/getAllBrokerages?name=${s}`,{method:"GET",data:""})}},kn="data",xn=e=>{const t=O(e);return{postData:async r=>await t.request(`/${kn}`,{method:"POST",data:JSON.stringify(r)})}},Bn="endorsement",Un=e=>{const t=O(e);return{putEndorsement:(r,s)=>{const o=new FormData;return o.append("data",JSON.stringify(r)),s&&(Array.isArray(s)?s.forEach(i=>{o.append("attachments",i)}):o.append("attachments",s)),t.request(`/${Bn}`,{method:"PUT",data:o,contentType:"multipart/form-data"})}}},me="payment",Fn=e=>{const t=O(e);return{postPayment:o=>t.request(`/${me}`,{method:"POST",data:JSON.stringify(o)}),getPaymentStatus:o=>t.request(`/${me}/status?policyId=${o.policyId}`,{method:"GET",data:""}),getPaymentSummary:o=>t.request(`/${me}/summary?policyId=${o.policyId}`,{method:"GET",data:""})}},Y="product/action",qn=e=>{const t=O(e);return{getCnpjStatus:(i,u,f)=>{const a=new URLSearchParams({...i&&{cnpj:i},...u&&{brokerageIdentity:u},...f!==void 0&&{isBrokerageDefinedAtStart:String(f)}}).toString(),d=`/${Y}/Custom/CnpjCheck?${a}`;return t.request(d,{method:"GET",data:""})},getKeyNumber:()=>t.request(`/${Y}/Custom/GetKeyNumber`,{method:"GET",data:""}),getProposalNumberByKeyNumber:i=>t.request(`/${Y}/Custom/GetProposalNoByKeyNumber?keyNumber=${i.keyNumber}`,{method:"GET",data:""}),postCoveragesAndClausesRules:i=>t.request(`/${Y}/Custom/LoadRules`,{method:"POST",data:JSON.stringify(i)})}},k="quotation",Ln=e=>{const t=O(e);return{getQuotations:a=>{const d=new URLSearchParams({...a});return t.request(`/${k}/query?${d.toString()}`,{method:"GET",data:""})},getQuotationDetail:a=>{const d=new URLSearchParams({id:a.policyId});return t.request(`/${k}?${d.toString()}`,{method:"GET",data:""})},postQuickQuote:a=>t.request(`/${k}/QuickQuote`,{method:"POST",data:JSON.stringify(a)}),postFullQuote:a=>t.request(`/${k}/FullQuote`,{method:"POST",data:JSON.stringify(a)}),postBind:a=>t.request(`/${k}/Bind`,{method:"POST",data:JSON.stringify(a)}),getQuotation:a=>t.request(`/${k}?id=${a.policyId}`,{method:"GET",data:""}),getVersions:a=>t.request(`/${k}/versions?policyId=${a.policyId}`,{method:"GET",data:""}),switchSelectedVersion:a=>t.request(`/${k}/switchSelectedVersion?policyId=${a.policyId}"ationVersionId=${a.quotationVersionId}`,{method:"POST",data:JSON.stringify(a)})}},$n="report",Dn=e=>{const t=O(e);return{getReportStream:r=>{const s=new URLSearchParams({policyId:r.policyId,documentType:r.documentType??"certificate",...r.additionalParams});return t.request(`/${$n}/generate-stream?${s.toString()}`,{method:"GET",data:"",responseType:"blob"})}}},_n="SubscriberData",In=e=>{const t=O(e);return{getSubscriber:r=>t.request(`/${_n}/get-subscriber-data?cnpj=${r}`,{method:"GET",data:""})}};function jn(e){const t=Pn(e),n=Nn(e),r=xn(e),s=Ln(e),o=Fn(e),i=An(e),u=Cn(e),f=Un(e),l=qn(e),a=Dn(e),d=In(e),m=O(e);return{auth:t,authAkad:n,data:r,quotation:s,payment:o,address:i,broker:u,endorsement:f,plugin:l,report:a,subscriber:d,base:m}}return jn});
|