@akad/sdk 1.0.24 → 1.0.26
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/address/index.d.ts +1 -1
- package/auth/index.d.ts +2 -2
- package/authAkad/index.d.ts +5 -5
- package/authAkad/types.d.ts +4 -9
- package/base.d.ts +6 -5
- package/broker/index.d.ts +2 -2
- package/data/index.d.ts +1 -1
- package/endorsement/index.d.ts +1 -1
- package/main.d.ts +33 -31
- package/package.json +2 -1
- package/payment/index.d.ts +3 -3
- package/plugin/index.d.ts +4 -4
- package/quotation/index.d.ts +8 -8
- package/report/index.d.ts +1 -1
- package/subscriber/index.d.ts +1 -1
- package/ts-lib.js +671 -651
- package/ts-lib.umd.cjs +4 -4
- package/types/errorTypes.d.ts +11 -0
- package/types/index.d.ts +2 -0
- package/types/responseTypes.d.ts +11 -0
package/ts-lib.js
CHANGED
|
@@ -3,82 +3,82 @@ function Ue(e, t) {
|
|
|
3
3
|
return e.apply(t, arguments);
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
const { toString:
|
|
7
|
-
const
|
|
8
|
-
return e[
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
6
|
+
const { toString: rt } = Object.prototype, { getPrototypeOf: ue } = Object, v = /* @__PURE__ */ ((e) => (t) => {
|
|
7
|
+
const n = rt.call(t);
|
|
8
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null)), k = (e) => (e = e.toLowerCase(), (t) => v(t) === e), G = (e) => (t) => typeof t === e, { isArray: L } = Array, $ = G("undefined");
|
|
10
10
|
function st(e) {
|
|
11
|
-
return e !== null && !$(e) && e.constructor !== null && !$(e.constructor) &&
|
|
11
|
+
return e !== null && !$(e) && e.constructor !== null && !$(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12
12
|
}
|
|
13
|
-
const qe =
|
|
13
|
+
const qe = k("ArrayBuffer");
|
|
14
14
|
function ot(e) {
|
|
15
15
|
let t;
|
|
16
16
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qe(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const it = G("string"),
|
|
18
|
+
const it = G("string"), O = G("function"), Be = G("number"), K = (e) => e !== null && typeof e == "object", at = (e) => e === !0 || e === !1, z = (e) => {
|
|
19
19
|
if (v(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
21
|
const t = ue(e);
|
|
22
22
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
23
|
-
}, ct =
|
|
23
|
+
}, ct = k("Date"), ut = k("File"), lt = k("Blob"), ft = k("FileList"), dt = (e) => K(e) && O(e.pipe), ht = (e) => {
|
|
24
24
|
let t;
|
|
25
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
26
|
-
t === "object" &&
|
|
27
|
-
}, pt =
|
|
28
|
-
function I(e, t, { allOwnKeys:
|
|
25
|
+
return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((t = v(e)) === "formdata" || // detect form-data instance
|
|
26
|
+
t === "object" && O(e.toString) && e.toString() === "[object FormData]"));
|
|
27
|
+
}, pt = k("URLSearchParams"), [mt, yt, wt, gt] = ["ReadableStream", "Request", "Response", "Headers"].map(k), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
28
|
+
function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
29
29
|
if (e === null || typeof e > "u")
|
|
30
30
|
return;
|
|
31
|
-
let
|
|
31
|
+
let r, s;
|
|
32
32
|
if (typeof e != "object" && (e = [e]), L(e))
|
|
33
|
-
for (
|
|
34
|
-
t.call(null, e[
|
|
33
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
34
|
+
t.call(null, e[r], r, e);
|
|
35
35
|
else {
|
|
36
|
-
const o =
|
|
36
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
37
37
|
let c;
|
|
38
|
-
for (
|
|
39
|
-
c = o[
|
|
38
|
+
for (r = 0; r < i; r++)
|
|
39
|
+
c = o[r], t.call(null, e[c], c, e);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
function Le(e, t) {
|
|
43
43
|
t = t.toLowerCase();
|
|
44
|
-
const
|
|
45
|
-
let
|
|
46
|
-
for (;
|
|
47
|
-
if (s = r
|
|
44
|
+
const n = Object.keys(e);
|
|
45
|
+
let r = n.length, s;
|
|
46
|
+
for (; r-- > 0; )
|
|
47
|
+
if (s = n[r], t === s.toLowerCase())
|
|
48
48
|
return s;
|
|
49
49
|
return null;
|
|
50
50
|
}
|
|
51
51
|
const _e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fe = (e) => !$(e) && e !== _e;
|
|
52
|
-
function
|
|
53
|
-
const { caseless: e } = Fe(this) && this || {}, t = {},
|
|
52
|
+
function ne() {
|
|
53
|
+
const { caseless: e } = Fe(this) && this || {}, t = {}, n = (r, s) => {
|
|
54
54
|
const o = e && Le(t, s) || s;
|
|
55
|
-
z(t[o]) && z(
|
|
55
|
+
z(t[o]) && z(r) ? t[o] = ne(t[o], r) : z(r) ? t[o] = ne({}, r) : L(r) ? t[o] = r.slice() : t[o] = r;
|
|
56
56
|
};
|
|
57
|
-
for (let
|
|
58
|
-
arguments[
|
|
57
|
+
for (let r = 0, s = arguments.length; r < s; r++)
|
|
58
|
+
arguments[r] && I(arguments[r], n);
|
|
59
59
|
return t;
|
|
60
60
|
}
|
|
61
|
-
const Tt = (e, t,
|
|
62
|
-
|
|
63
|
-
}, { allOwnKeys:
|
|
64
|
-
e.prototype = Object.create(t.prototype,
|
|
61
|
+
const Tt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
62
|
+
n && O(s) ? e[o] = Ue(s, n) : e[o] = s;
|
|
63
|
+
}, { allOwnKeys: r }), e), St = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
|
|
64
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
65
65
|
value: t.prototype
|
|
66
|
-
}),
|
|
67
|
-
}, Rt = (e, t,
|
|
66
|
+
}), n && Object.assign(e.prototype, n);
|
|
67
|
+
}, Rt = (e, t, n, r) => {
|
|
68
68
|
let s, o, i;
|
|
69
69
|
const c = {};
|
|
70
70
|
if (t = t || {}, e == null)
|
|
71
71
|
return t;
|
|
72
72
|
do {
|
|
73
73
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
74
|
-
i = s[o], (!
|
|
75
|
-
e =
|
|
76
|
-
} while (e && (!
|
|
74
|
+
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
75
|
+
e = n !== !1 && ue(e);
|
|
76
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
77
|
return t;
|
|
78
|
-
}, Ot = (e, t,
|
|
79
|
-
e = String(e), (
|
|
80
|
-
const
|
|
81
|
-
return
|
|
78
|
+
}, Ot = (e, t, n) => {
|
|
79
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
|
+
const r = e.indexOf(t, n);
|
|
81
|
+
return r !== -1 && r === n;
|
|
82
82
|
}, At = (e) => {
|
|
83
83
|
if (!e)
|
|
84
84
|
return null;
|
|
@@ -87,89 +87,89 @@ const Tt = (e, t, r, { allOwnKeys: n } = {}) => (I(t, (s, o) => {
|
|
|
87
87
|
let t = e.length;
|
|
88
88
|
if (!Be(t))
|
|
89
89
|
return null;
|
|
90
|
-
const
|
|
90
|
+
const n = new Array(t);
|
|
91
91
|
for (; t-- > 0; )
|
|
92
|
-
|
|
93
|
-
return
|
|
94
|
-
}, Pt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)),
|
|
95
|
-
const
|
|
92
|
+
n[t] = e[t];
|
|
93
|
+
return n;
|
|
94
|
+
}, Pt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), kt = (e, t) => {
|
|
95
|
+
const r = (e && e[Symbol.iterator]).call(e);
|
|
96
96
|
let s;
|
|
97
|
-
for (; (s =
|
|
97
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
98
98
|
const o = s.value;
|
|
99
99
|
t.call(e, o[0], o[1]);
|
|
100
100
|
}
|
|
101
|
-
},
|
|
102
|
-
let
|
|
103
|
-
const
|
|
104
|
-
for (; (
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
}, Ct =
|
|
101
|
+
}, Nt = (e, t) => {
|
|
102
|
+
let n;
|
|
103
|
+
const r = [];
|
|
104
|
+
for (; (n = e.exec(t)) !== null; )
|
|
105
|
+
r.push(n);
|
|
106
|
+
return r;
|
|
107
|
+
}, Ct = k("HTMLFormElement"), xt = (e) => e.toLowerCase().replace(
|
|
108
108
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
109
|
-
function(
|
|
110
|
-
return
|
|
109
|
+
function(n, r, s) {
|
|
110
|
+
return r.toUpperCase() + s;
|
|
111
111
|
}
|
|
112
|
-
), pe = (({ hasOwnProperty: e }) => (t,
|
|
113
|
-
const
|
|
114
|
-
I(
|
|
112
|
+
), pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ut = k("RegExp"), De = (e, t) => {
|
|
113
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
114
|
+
I(n, (s, o) => {
|
|
115
115
|
let i;
|
|
116
|
-
(i = t(s, o, e)) !== !1 && (
|
|
117
|
-
}), Object.defineProperties(e,
|
|
116
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
117
|
+
}), Object.defineProperties(e, r);
|
|
118
118
|
}, qt = (e) => {
|
|
119
|
-
De(e, (t,
|
|
120
|
-
if (
|
|
119
|
+
De(e, (t, n) => {
|
|
120
|
+
if (O(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
121
121
|
return !1;
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
122
|
+
const r = e[n];
|
|
123
|
+
if (O(r)) {
|
|
124
124
|
if (t.enumerable = !1, "writable" in t) {
|
|
125
125
|
t.writable = !1;
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
t.set || (t.set = () => {
|
|
129
|
-
throw Error("Can not rewrite read-only method '" +
|
|
129
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
}, Bt = (e, t) => {
|
|
134
|
-
const
|
|
134
|
+
const n = {}, r = (s) => {
|
|
135
135
|
s.forEach((o) => {
|
|
136
|
-
|
|
136
|
+
n[o] = !0;
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
return L(e) ?
|
|
139
|
+
return L(e) ? r(e) : r(String(e).split(t)), n;
|
|
140
140
|
}, Lt = () => {
|
|
141
141
|
}, _t = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, X = "abcdefghijklmnopqrstuvwxyz", me = "0123456789", $e = {
|
|
142
142
|
DIGIT: me,
|
|
143
143
|
ALPHA: X,
|
|
144
144
|
ALPHA_DIGIT: X + X.toUpperCase() + me
|
|
145
145
|
}, Ft = (e = 16, t = $e.ALPHA_DIGIT) => {
|
|
146
|
-
let
|
|
147
|
-
const { length:
|
|
146
|
+
let n = "";
|
|
147
|
+
const { length: r } = t;
|
|
148
148
|
for (; e--; )
|
|
149
|
-
|
|
150
|
-
return
|
|
149
|
+
n += t[Math.random() * r | 0];
|
|
150
|
+
return n;
|
|
151
151
|
};
|
|
152
152
|
function Dt(e) {
|
|
153
|
-
return !!(e &&
|
|
153
|
+
return !!(e && O(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
154
154
|
}
|
|
155
155
|
const $t = (e) => {
|
|
156
|
-
const t = new Array(10),
|
|
157
|
-
if (K(
|
|
158
|
-
if (t.indexOf(
|
|
156
|
+
const t = new Array(10), n = (r, s) => {
|
|
157
|
+
if (K(r)) {
|
|
158
|
+
if (t.indexOf(r) >= 0)
|
|
159
159
|
return;
|
|
160
|
-
if (!("toJSON" in
|
|
161
|
-
t[s] =
|
|
162
|
-
const o = L(
|
|
163
|
-
return I(
|
|
164
|
-
const l =
|
|
160
|
+
if (!("toJSON" in r)) {
|
|
161
|
+
t[s] = r;
|
|
162
|
+
const o = L(r) ? [] : {};
|
|
163
|
+
return I(r, (i, c) => {
|
|
164
|
+
const l = n(i, s + 1);
|
|
165
165
|
!$(l) && (o[c] = l);
|
|
166
166
|
}), t[s] = void 0, o;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
return
|
|
169
|
+
return r;
|
|
170
170
|
};
|
|
171
|
-
return
|
|
172
|
-
}, It =
|
|
171
|
+
return n(e, 0);
|
|
172
|
+
}, It = k("AsyncFunction"), jt = (e) => e && (K(e) || O(e)) && O(e.then) && O(e.catch), u = {
|
|
173
173
|
isArray: L,
|
|
174
174
|
isArrayBuffer: qe,
|
|
175
175
|
isBuffer: st,
|
|
@@ -182,31 +182,31 @@ const $t = (e) => {
|
|
|
182
182
|
isPlainObject: z,
|
|
183
183
|
isReadableStream: mt,
|
|
184
184
|
isRequest: yt,
|
|
185
|
-
isResponse:
|
|
186
|
-
isHeaders:
|
|
185
|
+
isResponse: wt,
|
|
186
|
+
isHeaders: gt,
|
|
187
187
|
isUndefined: $,
|
|
188
188
|
isDate: ct,
|
|
189
189
|
isFile: ut,
|
|
190
190
|
isBlob: lt,
|
|
191
191
|
isRegExp: Ut,
|
|
192
|
-
isFunction:
|
|
192
|
+
isFunction: O,
|
|
193
193
|
isStream: dt,
|
|
194
194
|
isURLSearchParams: pt,
|
|
195
195
|
isTypedArray: Pt,
|
|
196
196
|
isFileList: ft,
|
|
197
197
|
forEach: I,
|
|
198
|
-
merge:
|
|
198
|
+
merge: ne,
|
|
199
199
|
extend: Tt,
|
|
200
200
|
trim: bt,
|
|
201
201
|
stripBOM: St,
|
|
202
202
|
inherits: Et,
|
|
203
203
|
toFlatObject: Rt,
|
|
204
204
|
kindOf: v,
|
|
205
|
-
kindOfTest:
|
|
205
|
+
kindOfTest: k,
|
|
206
206
|
endsWith: Ot,
|
|
207
207
|
toArray: At,
|
|
208
|
-
forEachEntry:
|
|
209
|
-
matchAll:
|
|
208
|
+
forEachEntry: kt,
|
|
209
|
+
matchAll: Nt,
|
|
210
210
|
isHTMLForm: Ct,
|
|
211
211
|
hasOwnProperty: pe,
|
|
212
212
|
hasOwnProp: pe,
|
|
@@ -227,10 +227,10 @@ const $t = (e) => {
|
|
|
227
227
|
isAsyncFn: It,
|
|
228
228
|
isThenable: jt
|
|
229
229
|
};
|
|
230
|
-
function
|
|
231
|
-
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),
|
|
230
|
+
function y(e, t, n, r, s) {
|
|
231
|
+
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);
|
|
232
232
|
}
|
|
233
|
-
u.inherits(
|
|
233
|
+
u.inherits(y, Error, {
|
|
234
234
|
toJSON: function() {
|
|
235
235
|
return {
|
|
236
236
|
// Standard
|
|
@@ -251,7 +251,7 @@ u.inherits(p, Error, {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
|
-
const Ie =
|
|
254
|
+
const Ie = y.prototype, je = {};
|
|
255
255
|
[
|
|
256
256
|
"ERR_BAD_OPTION_VALUE",
|
|
257
257
|
"ERR_BAD_OPTION",
|
|
@@ -269,43 +269,43 @@ const Ie = p.prototype, je = {};
|
|
|
269
269
|
].forEach((e) => {
|
|
270
270
|
je[e] = { value: e };
|
|
271
271
|
});
|
|
272
|
-
Object.defineProperties(
|
|
272
|
+
Object.defineProperties(y, je);
|
|
273
273
|
Object.defineProperty(Ie, "isAxiosError", { value: !0 });
|
|
274
|
-
|
|
274
|
+
y.from = (e, t, n, r, s, o) => {
|
|
275
275
|
const i = Object.create(Ie);
|
|
276
276
|
return u.toFlatObject(e, i, function(l) {
|
|
277
277
|
return l !== Error.prototype;
|
|
278
|
-
}, (c) => c !== "isAxiosError"),
|
|
278
|
+
}, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
279
279
|
};
|
|
280
280
|
const Ht = null;
|
|
281
|
-
function
|
|
281
|
+
function re(e) {
|
|
282
282
|
return u.isPlainObject(e) || u.isArray(e);
|
|
283
283
|
}
|
|
284
284
|
function He(e) {
|
|
285
285
|
return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
286
286
|
}
|
|
287
|
-
function ye(e, t,
|
|
287
|
+
function ye(e, t, n) {
|
|
288
288
|
return e ? e.concat(t).map(function(s, o) {
|
|
289
|
-
return s = He(s), !
|
|
290
|
-
}).join(
|
|
289
|
+
return s = He(s), !n && o ? "[" + s + "]" : s;
|
|
290
|
+
}).join(n ? "." : "") : t;
|
|
291
291
|
}
|
|
292
292
|
function zt(e) {
|
|
293
|
-
return u.isArray(e) && !e.some(
|
|
293
|
+
return u.isArray(e) && !e.some(re);
|
|
294
294
|
}
|
|
295
295
|
const Jt = u.toFlatObject(u, {}, null, function(t) {
|
|
296
296
|
return /^is[A-Z]/.test(t);
|
|
297
297
|
});
|
|
298
|
-
function W(e, t,
|
|
298
|
+
function W(e, t, n) {
|
|
299
299
|
if (!u.isObject(e))
|
|
300
300
|
throw new TypeError("target must be an object");
|
|
301
|
-
t = t || new FormData(),
|
|
301
|
+
t = t || new FormData(), n = u.toFlatObject(n, {
|
|
302
302
|
metaTokens: !0,
|
|
303
303
|
dots: !1,
|
|
304
304
|
indexes: !1
|
|
305
|
-
}, !1, function(
|
|
306
|
-
return !u.isUndefined(T[
|
|
305
|
+
}, !1, function(w, T) {
|
|
306
|
+
return !u.isUndefined(T[w]);
|
|
307
307
|
});
|
|
308
|
-
const
|
|
308
|
+
const r = n.metaTokens, s = n.visitor || a, o = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
|
|
309
309
|
if (!u.isFunction(s))
|
|
310
310
|
throw new TypeError("visitor must be a function");
|
|
311
311
|
function f(h) {
|
|
@@ -314,42 +314,42 @@ function W(e, t, r) {
|
|
|
314
314
|
if (u.isDate(h))
|
|
315
315
|
return h.toISOString();
|
|
316
316
|
if (!l && u.isBlob(h))
|
|
317
|
-
throw new
|
|
317
|
+
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
318
318
|
return u.isArrayBuffer(h) || u.isTypedArray(h) ? l && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
319
319
|
}
|
|
320
|
-
function a(h,
|
|
320
|
+
function a(h, w, T) {
|
|
321
321
|
let S = h;
|
|
322
322
|
if (h && !T && typeof h == "object") {
|
|
323
|
-
if (u.endsWith(
|
|
324
|
-
|
|
325
|
-
else if (u.isArray(h) && zt(h) || (u.isFileList(h) || u.endsWith(
|
|
326
|
-
return
|
|
327
|
-
!(u.isUndefined(
|
|
323
|
+
if (u.endsWith(w, "{}"))
|
|
324
|
+
w = r ? w : w.slice(0, -2), h = JSON.stringify(h);
|
|
325
|
+
else if (u.isArray(h) && zt(h) || (u.isFileList(h) || u.endsWith(w, "[]")) && (S = u.toArray(h)))
|
|
326
|
+
return w = He(w), S.forEach(function(g, F) {
|
|
327
|
+
!(u.isUndefined(g) || g === null) && t.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
329
|
-
i === !0 ? ye([
|
|
330
|
-
f(
|
|
329
|
+
i === !0 ? ye([w], F, o) : i === null ? w : w + "[]",
|
|
330
|
+
f(g)
|
|
331
331
|
);
|
|
332
332
|
}), !1;
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return re(h) ? !0 : (t.append(ye(T, w, o), f(h)), !1);
|
|
335
335
|
}
|
|
336
|
-
const d = [],
|
|
336
|
+
const d = [], p = Object.assign(Jt, {
|
|
337
337
|
defaultVisitor: a,
|
|
338
338
|
convertValue: f,
|
|
339
|
-
isVisitable:
|
|
339
|
+
isVisitable: re
|
|
340
340
|
});
|
|
341
|
-
function m(h,
|
|
341
|
+
function m(h, w) {
|
|
342
342
|
if (!u.isUndefined(h)) {
|
|
343
343
|
if (d.indexOf(h) !== -1)
|
|
344
|
-
throw Error("Circular reference detected in " +
|
|
345
|
-
d.push(h), u.forEach(h, function(S,
|
|
344
|
+
throw Error("Circular reference detected in " + w.join("."));
|
|
345
|
+
d.push(h), u.forEach(h, function(S, E) {
|
|
346
346
|
(!(u.isUndefined(S) || S === null) && s.call(
|
|
347
347
|
t,
|
|
348
348
|
S,
|
|
349
|
-
u.isString(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
)) === !0 && m(S,
|
|
349
|
+
u.isString(E) ? E.trim() : E,
|
|
350
|
+
w,
|
|
351
|
+
p
|
|
352
|
+
)) === !0 && m(S, w ? w.concat(E) : [E]);
|
|
353
353
|
}), d.pop();
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -357,7 +357,7 @@ function W(e, t, r) {
|
|
|
357
357
|
throw new TypeError("data must be an object");
|
|
358
358
|
return m(e), t;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function we(e) {
|
|
361
361
|
const t = {
|
|
362
362
|
"!": "%21",
|
|
363
363
|
"'": "%27",
|
|
@@ -367,40 +367,40 @@ function ge(e) {
|
|
|
367
367
|
"%20": "+",
|
|
368
368
|
"%00": "\0"
|
|
369
369
|
};
|
|
370
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(
|
|
371
|
-
return t[
|
|
370
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
371
|
+
return t[r];
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
function le(e, t) {
|
|
375
375
|
this._pairs = [], e && W(e, this, t);
|
|
376
376
|
}
|
|
377
377
|
const ze = le.prototype;
|
|
378
|
-
ze.append = function(t,
|
|
379
|
-
this._pairs.push([t,
|
|
378
|
+
ze.append = function(t, n) {
|
|
379
|
+
this._pairs.push([t, n]);
|
|
380
380
|
};
|
|
381
381
|
ze.toString = function(t) {
|
|
382
|
-
const
|
|
383
|
-
return t.call(this,
|
|
384
|
-
} :
|
|
382
|
+
const n = t ? function(r) {
|
|
383
|
+
return t.call(this, r, we);
|
|
384
|
+
} : we;
|
|
385
385
|
return this._pairs.map(function(s) {
|
|
386
|
-
return
|
|
386
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
387
387
|
}, "").join("&");
|
|
388
388
|
};
|
|
389
389
|
function Mt(e) {
|
|
390
390
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
391
391
|
}
|
|
392
|
-
function Je(e, t,
|
|
392
|
+
function Je(e, t, n) {
|
|
393
393
|
if (!t)
|
|
394
394
|
return e;
|
|
395
|
-
const
|
|
395
|
+
const r = n && n.encode || Mt, s = n && n.serialize;
|
|
396
396
|
let o;
|
|
397
|
-
if (s ? o = s(t,
|
|
397
|
+
if (s ? o = s(t, n) : o = u.isURLSearchParams(t) ? t.toString() : new le(t, n).toString(r), o) {
|
|
398
398
|
const i = e.indexOf("#");
|
|
399
399
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
400
400
|
}
|
|
401
401
|
return e;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class ge {
|
|
404
404
|
constructor() {
|
|
405
405
|
this.handlers = [];
|
|
406
406
|
}
|
|
@@ -412,12 +412,12 @@ class we {
|
|
|
412
412
|
*
|
|
413
413
|
* @return {Number} An ID used to remove interceptor later
|
|
414
414
|
*/
|
|
415
|
-
use(t,
|
|
415
|
+
use(t, n, r) {
|
|
416
416
|
return this.handlers.push({
|
|
417
417
|
fulfilled: t,
|
|
418
|
-
rejected:
|
|
419
|
-
synchronous:
|
|
420
|
-
runWhen:
|
|
418
|
+
rejected: n,
|
|
419
|
+
synchronous: r ? r.synchronous : !1,
|
|
420
|
+
runWhen: r ? r.runWhen : null
|
|
421
421
|
}), this.handlers.length - 1;
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
@@ -449,8 +449,8 @@ class we {
|
|
|
449
449
|
* @returns {void}
|
|
450
450
|
*/
|
|
451
451
|
forEach(t) {
|
|
452
|
-
u.forEach(this.handlers, function(
|
|
453
|
-
|
|
452
|
+
u.forEach(this.handlers, function(r) {
|
|
453
|
+
r !== null && t(r);
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
}
|
|
@@ -473,60 +473,60 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xt
|
|
|
473
473
|
hasStandardBrowserEnv: Wt,
|
|
474
474
|
hasStandardBrowserWebWorkerEnv: Qt,
|
|
475
475
|
origin: Xt
|
|
476
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
476
|
+
}, Symbol.toStringTag, { value: "Module" })), P = {
|
|
477
477
|
...Zt,
|
|
478
478
|
...Kt
|
|
479
479
|
};
|
|
480
480
|
function Yt(e, t) {
|
|
481
|
-
return W(e, new
|
|
482
|
-
visitor: function(
|
|
483
|
-
return
|
|
481
|
+
return W(e, new P.classes.URLSearchParams(), Object.assign({
|
|
482
|
+
visitor: function(n, r, s, o) {
|
|
483
|
+
return P.isNode && u.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
484
484
|
}
|
|
485
485
|
}, t));
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function en(e) {
|
|
488
488
|
return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
const t = {},
|
|
492
|
-
let
|
|
493
|
-
const s =
|
|
490
|
+
function tn(e) {
|
|
491
|
+
const t = {}, n = Object.keys(e);
|
|
492
|
+
let r;
|
|
493
|
+
const s = n.length;
|
|
494
494
|
let o;
|
|
495
|
-
for (
|
|
496
|
-
o = r
|
|
495
|
+
for (r = 0; r < s; r++)
|
|
496
|
+
o = n[r], t[o] = e[o];
|
|
497
497
|
return t;
|
|
498
498
|
}
|
|
499
499
|
function Ve(e) {
|
|
500
|
-
function t(
|
|
501
|
-
let i =
|
|
500
|
+
function t(n, r, s, o) {
|
|
501
|
+
let i = n[o++];
|
|
502
502
|
if (i === "__proto__")
|
|
503
503
|
return !0;
|
|
504
|
-
const c = Number.isFinite(+i), l = o >=
|
|
505
|
-
return i = !i && u.isArray(s) ? s.length : i, l ? (u.hasOwnProp(s, i) ? s[i] = [s[i],
|
|
504
|
+
const c = Number.isFinite(+i), l = o >= n.length;
|
|
505
|
+
return i = !i && u.isArray(s) ? s.length : i, l ? (u.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !u.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && u.isArray(s[i]) && (s[i] = tn(s[i])), !c);
|
|
506
506
|
}
|
|
507
507
|
if (u.isFormData(e) && u.isFunction(e.entries)) {
|
|
508
|
-
const
|
|
509
|
-
return u.forEachEntry(e, (
|
|
510
|
-
t(
|
|
511
|
-
}),
|
|
508
|
+
const n = {};
|
|
509
|
+
return u.forEachEntry(e, (r, s) => {
|
|
510
|
+
t(en(r), s, n, 0);
|
|
511
|
+
}), n;
|
|
512
512
|
}
|
|
513
513
|
return null;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function nn(e, t, n) {
|
|
516
516
|
if (u.isString(e))
|
|
517
517
|
try {
|
|
518
518
|
return (t || JSON.parse)(e), u.trim(e);
|
|
519
|
-
} catch (
|
|
520
|
-
if (
|
|
521
|
-
throw
|
|
519
|
+
} catch (r) {
|
|
520
|
+
if (r.name !== "SyntaxError")
|
|
521
|
+
throw r;
|
|
522
522
|
}
|
|
523
|
-
return (
|
|
523
|
+
return (n || JSON.stringify)(e);
|
|
524
524
|
}
|
|
525
525
|
const j = {
|
|
526
526
|
transitional: Me,
|
|
527
527
|
adapter: ["xhr", "http", "fetch"],
|
|
528
|
-
transformRequest: [function(t,
|
|
529
|
-
const
|
|
528
|
+
transformRequest: [function(t, n) {
|
|
529
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = u.isObject(t);
|
|
530
530
|
if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
|
|
531
531
|
return s ? JSON.stringify(Ve(t)) : t;
|
|
532
532
|
if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t) || u.isReadableStream(t))
|
|
@@ -534,12 +534,12 @@ const j = {
|
|
|
534
534
|
if (u.isArrayBufferView(t))
|
|
535
535
|
return t.buffer;
|
|
536
536
|
if (u.isURLSearchParams(t))
|
|
537
|
-
return
|
|
537
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
538
538
|
let c;
|
|
539
539
|
if (o) {
|
|
540
|
-
if (
|
|
540
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
541
541
|
return Yt(t, this.formSerializer).toString();
|
|
542
|
-
if ((c = u.isFileList(t)) ||
|
|
542
|
+
if ((c = u.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
543
543
|
const l = this.env && this.env.FormData;
|
|
544
544
|
return W(
|
|
545
545
|
c ? { "files[]": t } : t,
|
|
@@ -548,19 +548,19 @@ const j = {
|
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
return o || s ? (
|
|
551
|
+
return o || s ? (n.setContentType("application/json", !1), nn(t)) : t;
|
|
552
552
|
}],
|
|
553
553
|
transformResponse: [function(t) {
|
|
554
|
-
const
|
|
554
|
+
const n = this.transitional || j.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
555
555
|
if (u.isResponse(t) || u.isReadableStream(t))
|
|
556
556
|
return t;
|
|
557
|
-
if (t && u.isString(t) && (
|
|
558
|
-
const i = !(
|
|
557
|
+
if (t && u.isString(t) && (r && !this.responseType || s)) {
|
|
558
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
559
559
|
try {
|
|
560
560
|
return JSON.parse(t);
|
|
561
561
|
} catch (c) {
|
|
562
562
|
if (i)
|
|
563
|
-
throw c.name === "SyntaxError" ?
|
|
563
|
+
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return t;
|
|
@@ -575,8 +575,8 @@ const j = {
|
|
|
575
575
|
maxContentLength: -1,
|
|
576
576
|
maxBodyLength: -1,
|
|
577
577
|
env: {
|
|
578
|
-
FormData:
|
|
579
|
-
Blob:
|
|
578
|
+
FormData: P.classes.FormData,
|
|
579
|
+
Blob: P.classes.Blob
|
|
580
580
|
},
|
|
581
581
|
validateStatus: function(t) {
|
|
582
582
|
return t >= 200 && t < 300;
|
|
@@ -591,7 +591,7 @@ const j = {
|
|
|
591
591
|
u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
592
592
|
j.headers[e] = {};
|
|
593
593
|
});
|
|
594
|
-
const
|
|
594
|
+
const rn = u.toObjectSet([
|
|
595
595
|
"age",
|
|
596
596
|
"authorization",
|
|
597
597
|
"content-length",
|
|
@@ -609,12 +609,12 @@ const nr = u.toObjectSet([
|
|
|
609
609
|
"referer",
|
|
610
610
|
"retry-after",
|
|
611
611
|
"user-agent"
|
|
612
|
-
]),
|
|
612
|
+
]), sn = (e) => {
|
|
613
613
|
const t = {};
|
|
614
|
-
let
|
|
614
|
+
let n, r, s;
|
|
615
615
|
return e && e.split(`
|
|
616
616
|
`).forEach(function(i) {
|
|
617
|
-
s = i.indexOf(":"),
|
|
617
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && rn[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
|
}, be = Symbol("internals");
|
|
620
620
|
function D(e) {
|
|
@@ -623,43 +623,43 @@ function D(e) {
|
|
|
623
623
|
function J(e) {
|
|
624
624
|
return e === !1 || e == null ? e : u.isArray(e) ? e.map(J) : String(e);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
const t = /* @__PURE__ */ Object.create(null),
|
|
628
|
-
let
|
|
629
|
-
for (;
|
|
630
|
-
t[
|
|
626
|
+
function on(e) {
|
|
627
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
628
|
+
let r;
|
|
629
|
+
for (; r = n.exec(e); )
|
|
630
|
+
t[r[1]] = r[2];
|
|
631
631
|
return t;
|
|
632
632
|
}
|
|
633
|
-
const
|
|
634
|
-
function Z(e, t,
|
|
635
|
-
if (u.isFunction(
|
|
636
|
-
return
|
|
637
|
-
if (s && (t =
|
|
638
|
-
if (u.isString(
|
|
639
|
-
return t.indexOf(
|
|
640
|
-
if (u.isRegExp(
|
|
641
|
-
return
|
|
633
|
+
const an = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
634
|
+
function Z(e, t, n, r, s) {
|
|
635
|
+
if (u.isFunction(r))
|
|
636
|
+
return r.call(this, t, n);
|
|
637
|
+
if (s && (t = n), !!u.isString(t)) {
|
|
638
|
+
if (u.isString(r))
|
|
639
|
+
return t.indexOf(r) !== -1;
|
|
640
|
+
if (u.isRegExp(r))
|
|
641
|
+
return r.test(t);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t,
|
|
644
|
+
function cn(e) {
|
|
645
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
const
|
|
649
|
-
["get", "set", "has"].forEach((
|
|
650
|
-
Object.defineProperty(e,
|
|
647
|
+
function un(e, t) {
|
|
648
|
+
const n = u.toCamelCase(" " + t);
|
|
649
|
+
["get", "set", "has"].forEach((r) => {
|
|
650
|
+
Object.defineProperty(e, r + n, {
|
|
651
651
|
value: function(s, o, i) {
|
|
652
|
-
return this[
|
|
652
|
+
return this[r].call(this, t, s, o, i);
|
|
653
653
|
},
|
|
654
654
|
configurable: !0
|
|
655
655
|
});
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
let
|
|
658
|
+
let R = class {
|
|
659
659
|
constructor(t) {
|
|
660
660
|
t && this.set(t);
|
|
661
661
|
}
|
|
662
|
-
set(t,
|
|
662
|
+
set(t, n, r) {
|
|
663
663
|
const s = this;
|
|
664
664
|
function o(c, l, f) {
|
|
665
665
|
const a = D(l);
|
|
@@ -670,86 +670,86 @@ let E = class {
|
|
|
670
670
|
}
|
|
671
671
|
const i = (c, l) => u.forEach(c, (f, a) => o(f, a, l));
|
|
672
672
|
if (u.isPlainObject(t) || t instanceof this.constructor)
|
|
673
|
-
i(t,
|
|
674
|
-
else if (u.isString(t) && (t = t.trim()) && !
|
|
675
|
-
i(
|
|
673
|
+
i(t, n);
|
|
674
|
+
else if (u.isString(t) && (t = t.trim()) && !an(t))
|
|
675
|
+
i(sn(t), n);
|
|
676
676
|
else if (u.isHeaders(t))
|
|
677
677
|
for (const [c, l] of t.entries())
|
|
678
|
-
o(l, c,
|
|
678
|
+
o(l, c, r);
|
|
679
679
|
else
|
|
680
|
-
t != null && o(
|
|
680
|
+
t != null && o(n, t, r);
|
|
681
681
|
return this;
|
|
682
682
|
}
|
|
683
|
-
get(t,
|
|
683
|
+
get(t, n) {
|
|
684
684
|
if (t = D(t), t) {
|
|
685
|
-
const
|
|
686
|
-
if (
|
|
687
|
-
const s = this[
|
|
688
|
-
if (!
|
|
685
|
+
const r = u.findKey(this, t);
|
|
686
|
+
if (r) {
|
|
687
|
+
const s = this[r];
|
|
688
|
+
if (!n)
|
|
689
689
|
return s;
|
|
690
|
-
if (
|
|
691
|
-
return
|
|
692
|
-
if (u.isFunction(
|
|
693
|
-
return
|
|
694
|
-
if (u.isRegExp(
|
|
695
|
-
return
|
|
690
|
+
if (n === !0)
|
|
691
|
+
return on(s);
|
|
692
|
+
if (u.isFunction(n))
|
|
693
|
+
return n.call(this, s, r);
|
|
694
|
+
if (u.isRegExp(n))
|
|
695
|
+
return n.exec(s);
|
|
696
696
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
has(t,
|
|
700
|
+
has(t, n) {
|
|
701
701
|
if (t = D(t), t) {
|
|
702
|
-
const
|
|
703
|
-
return !!(
|
|
702
|
+
const r = u.findKey(this, t);
|
|
703
|
+
return !!(r && this[r] !== void 0 && (!n || Z(this, this[r], r, n)));
|
|
704
704
|
}
|
|
705
705
|
return !1;
|
|
706
706
|
}
|
|
707
|
-
delete(t,
|
|
708
|
-
const
|
|
707
|
+
delete(t, n) {
|
|
708
|
+
const r = this;
|
|
709
709
|
let s = !1;
|
|
710
710
|
function o(i) {
|
|
711
711
|
if (i = D(i), i) {
|
|
712
|
-
const c = u.findKey(
|
|
713
|
-
c && (!
|
|
712
|
+
const c = u.findKey(r, i);
|
|
713
|
+
c && (!n || Z(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
return u.isArray(t) ? t.forEach(o) : o(t), s;
|
|
717
717
|
}
|
|
718
718
|
clear(t) {
|
|
719
|
-
const
|
|
720
|
-
let
|
|
721
|
-
for (;
|
|
722
|
-
const o = r
|
|
719
|
+
const n = Object.keys(this);
|
|
720
|
+
let r = n.length, s = !1;
|
|
721
|
+
for (; r--; ) {
|
|
722
|
+
const o = n[r];
|
|
723
723
|
(!t || Z(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
724
724
|
}
|
|
725
725
|
return s;
|
|
726
726
|
}
|
|
727
727
|
normalize(t) {
|
|
728
|
-
const
|
|
728
|
+
const n = this, r = {};
|
|
729
729
|
return u.forEach(this, (s, o) => {
|
|
730
|
-
const i = u.findKey(
|
|
730
|
+
const i = u.findKey(r, o);
|
|
731
731
|
if (i) {
|
|
732
|
-
|
|
732
|
+
n[i] = J(s), delete n[o];
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
|
-
const c = t ?
|
|
736
|
-
c !== o && delete
|
|
735
|
+
const c = t ? cn(o) : String(o).trim();
|
|
736
|
+
c !== o && delete n[o], n[c] = J(s), r[c] = !0;
|
|
737
737
|
}), this;
|
|
738
738
|
}
|
|
739
739
|
concat(...t) {
|
|
740
740
|
return this.constructor.concat(this, ...t);
|
|
741
741
|
}
|
|
742
742
|
toJSON(t) {
|
|
743
|
-
const
|
|
744
|
-
return u.forEach(this, (
|
|
745
|
-
|
|
746
|
-
}),
|
|
743
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
744
|
+
return u.forEach(this, (r, s) => {
|
|
745
|
+
r != null && r !== !1 && (n[s] = t && u.isArray(r) ? r.join(", ") : r);
|
|
746
|
+
}), n;
|
|
747
747
|
}
|
|
748
748
|
[Symbol.iterator]() {
|
|
749
749
|
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
750
750
|
}
|
|
751
751
|
toString() {
|
|
752
|
-
return Object.entries(this.toJSON()).map(([t,
|
|
752
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
753
753
|
`);
|
|
754
754
|
}
|
|
755
755
|
get [Symbol.toStringTag]() {
|
|
@@ -758,95 +758,95 @@ let E = class {
|
|
|
758
758
|
static from(t) {
|
|
759
759
|
return t instanceof this ? t : new this(t);
|
|
760
760
|
}
|
|
761
|
-
static concat(t, ...
|
|
762
|
-
const
|
|
763
|
-
return
|
|
761
|
+
static concat(t, ...n) {
|
|
762
|
+
const r = new this(t);
|
|
763
|
+
return n.forEach((s) => r.set(s)), r;
|
|
764
764
|
}
|
|
765
765
|
static accessor(t) {
|
|
766
|
-
const
|
|
766
|
+
const r = (this[be] = this[be] = {
|
|
767
767
|
accessors: {}
|
|
768
768
|
}).accessors, s = this.prototype;
|
|
769
769
|
function o(i) {
|
|
770
770
|
const c = D(i);
|
|
771
|
-
|
|
771
|
+
r[c] || (un(s, i), r[c] = !0);
|
|
772
772
|
}
|
|
773
773
|
return u.isArray(t) ? t.forEach(o) : o(t), this;
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
|
-
|
|
777
|
-
u.reduceDescriptors(
|
|
778
|
-
let
|
|
776
|
+
R.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
777
|
+
u.reduceDescriptors(R.prototype, ({ value: e }, t) => {
|
|
778
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
779
779
|
return {
|
|
780
780
|
get: () => e,
|
|
781
|
-
set(
|
|
782
|
-
this[
|
|
781
|
+
set(r) {
|
|
782
|
+
this[n] = r;
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
785
|
});
|
|
786
|
-
u.freezeMethods(
|
|
786
|
+
u.freezeMethods(R);
|
|
787
787
|
function Y(e, t) {
|
|
788
|
-
const
|
|
789
|
-
let o =
|
|
788
|
+
const n = this || j, r = t || n, s = R.from(r.headers);
|
|
789
|
+
let o = r.data;
|
|
790
790
|
return u.forEach(e, function(c) {
|
|
791
|
-
o = c.call(
|
|
791
|
+
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
792
792
|
}), s.normalize(), o;
|
|
793
793
|
}
|
|
794
794
|
function ve(e) {
|
|
795
795
|
return !!(e && e.__CANCEL__);
|
|
796
796
|
}
|
|
797
|
-
function _(e, t,
|
|
798
|
-
|
|
797
|
+
function _(e, t, n) {
|
|
798
|
+
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
799
799
|
}
|
|
800
|
-
u.inherits(_,
|
|
800
|
+
u.inherits(_, y, {
|
|
801
801
|
__CANCEL__: !0
|
|
802
802
|
});
|
|
803
|
-
function Ge(e, t,
|
|
804
|
-
const
|
|
805
|
-
!
|
|
806
|
-
"Request failed with status code " +
|
|
807
|
-
[
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
803
|
+
function Ge(e, t, n) {
|
|
804
|
+
const r = n.config.validateStatus;
|
|
805
|
+
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
806
|
+
"Request failed with status code " + n.status,
|
|
807
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
808
|
+
n.config,
|
|
809
|
+
n.request,
|
|
810
|
+
n
|
|
811
811
|
));
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function ln(e) {
|
|
814
814
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
815
815
|
return t && t[1] || "";
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function fn(e, t) {
|
|
818
818
|
e = e || 10;
|
|
819
|
-
const
|
|
819
|
+
const n = new Array(e), r = new Array(e);
|
|
820
820
|
let s = 0, o = 0, i;
|
|
821
821
|
return t = t !== void 0 ? t : 1e3, function(l) {
|
|
822
|
-
const f = Date.now(), a =
|
|
823
|
-
i || (i = f),
|
|
824
|
-
let d = o,
|
|
822
|
+
const f = Date.now(), a = r[o];
|
|
823
|
+
i || (i = f), n[s] = l, r[s] = f;
|
|
824
|
+
let d = o, p = 0;
|
|
825
825
|
for (; d !== s; )
|
|
826
|
-
|
|
826
|
+
p += n[d++], d = d % e;
|
|
827
827
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), f - i < t)
|
|
828
828
|
return;
|
|
829
829
|
const m = a && f - a;
|
|
830
|
-
return m ? Math.round(
|
|
830
|
+
return m ? Math.round(p * 1e3 / m) : void 0;
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
let
|
|
835
|
-
const
|
|
833
|
+
function dn(e, t) {
|
|
834
|
+
let n = 0;
|
|
835
|
+
const r = 1e3 / t;
|
|
836
836
|
let s = null;
|
|
837
837
|
return function() {
|
|
838
838
|
const i = this === !0, c = Date.now();
|
|
839
|
-
if (i || c -
|
|
840
|
-
return s && (clearTimeout(s), s = null),
|
|
841
|
-
s || (s = setTimeout(() => (s = null,
|
|
839
|
+
if (i || c - n > r)
|
|
840
|
+
return s && (clearTimeout(s), s = null), n = c, e.apply(null, arguments);
|
|
841
|
+
s || (s = setTimeout(() => (s = null, n = Date.now(), e.apply(null, arguments)), r - (c - n)));
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
|
-
const M = (e, t,
|
|
845
|
-
let
|
|
846
|
-
const s =
|
|
847
|
-
return
|
|
848
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, l = i -
|
|
849
|
-
|
|
844
|
+
const M = (e, t, n = 3) => {
|
|
845
|
+
let r = 0;
|
|
846
|
+
const s = fn(50, 250);
|
|
847
|
+
return dn((o) => {
|
|
848
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, l = i - r, f = s(l), a = i <= c;
|
|
849
|
+
r = i;
|
|
850
850
|
const d = {
|
|
851
851
|
loaded: i,
|
|
852
852
|
total: c,
|
|
@@ -858,29 +858,29 @@ const M = (e, t, r = 3) => {
|
|
|
858
858
|
lengthComputable: c != null
|
|
859
859
|
};
|
|
860
860
|
d[t ? "download" : "upload"] = !0, e(d);
|
|
861
|
-
},
|
|
862
|
-
},
|
|
861
|
+
}, n);
|
|
862
|
+
}, hn = P.hasStandardBrowserEnv ? (
|
|
863
863
|
// Standard browser envs have full support of the APIs needed to test
|
|
864
864
|
// whether the request URL is of the same origin as current location.
|
|
865
865
|
function() {
|
|
866
|
-
const t = /(msie|trident)/i.test(navigator.userAgent),
|
|
867
|
-
let
|
|
866
|
+
const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
|
|
867
|
+
let r;
|
|
868
868
|
function s(o) {
|
|
869
869
|
let i = o;
|
|
870
|
-
return t && (
|
|
871
|
-
href:
|
|
872
|
-
protocol:
|
|
873
|
-
host:
|
|
874
|
-
search:
|
|
875
|
-
hash:
|
|
876
|
-
hostname:
|
|
877
|
-
port:
|
|
878
|
-
pathname:
|
|
870
|
+
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
871
|
+
href: n.href,
|
|
872
|
+
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
873
|
+
host: n.host,
|
|
874
|
+
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
875
|
+
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
876
|
+
hostname: n.hostname,
|
|
877
|
+
port: n.port,
|
|
878
|
+
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
return
|
|
881
|
+
return r = s(window.location.href), function(i) {
|
|
882
882
|
const c = u.isString(i) ? s(i) : i;
|
|
883
|
-
return c.protocol ===
|
|
883
|
+
return c.protocol === r.protocol && c.host === r.host;
|
|
884
884
|
};
|
|
885
885
|
}()
|
|
886
886
|
) : (
|
|
@@ -890,12 +890,12 @@ const M = (e, t, r = 3) => {
|
|
|
890
890
|
return !0;
|
|
891
891
|
};
|
|
892
892
|
}()
|
|
893
|
-
),
|
|
893
|
+
), pn = P.hasStandardBrowserEnv ? (
|
|
894
894
|
// Standard browser envs support document.cookie
|
|
895
895
|
{
|
|
896
|
-
write(e, t,
|
|
896
|
+
write(e, t, n, r, s, o) {
|
|
897
897
|
const i = [e + "=" + encodeURIComponent(t)];
|
|
898
|
-
u.isNumber(
|
|
898
|
+
u.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), u.isString(r) && i.push("path=" + r), u.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
899
899
|
},
|
|
900
900
|
read(e) {
|
|
901
901
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -917,45 +917,45 @@ const M = (e, t, r = 3) => {
|
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
);
|
|
920
|
-
function
|
|
920
|
+
function mn(e) {
|
|
921
921
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function yn(e, t) {
|
|
924
924
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
925
925
|
}
|
|
926
926
|
function Ke(e, t) {
|
|
927
|
-
return e && !
|
|
927
|
+
return e && !mn(t) ? yn(e, t) : t;
|
|
928
928
|
}
|
|
929
|
-
const Te = (e) => e instanceof
|
|
929
|
+
const Te = (e) => e instanceof R ? { ...e } : e;
|
|
930
930
|
function q(e, t) {
|
|
931
931
|
t = t || {};
|
|
932
|
-
const
|
|
933
|
-
function
|
|
932
|
+
const n = {};
|
|
933
|
+
function r(f, a, d) {
|
|
934
934
|
return u.isPlainObject(f) && u.isPlainObject(a) ? u.merge.call({ caseless: d }, f, a) : u.isPlainObject(a) ? u.merge({}, a) : u.isArray(a) ? a.slice() : a;
|
|
935
935
|
}
|
|
936
936
|
function s(f, a, d) {
|
|
937
937
|
if (u.isUndefined(a)) {
|
|
938
938
|
if (!u.isUndefined(f))
|
|
939
|
-
return
|
|
939
|
+
return r(void 0, f, d);
|
|
940
940
|
} else
|
|
941
|
-
return
|
|
941
|
+
return r(f, a, d);
|
|
942
942
|
}
|
|
943
943
|
function o(f, a) {
|
|
944
944
|
if (!u.isUndefined(a))
|
|
945
|
-
return
|
|
945
|
+
return r(void 0, a);
|
|
946
946
|
}
|
|
947
947
|
function i(f, a) {
|
|
948
948
|
if (u.isUndefined(a)) {
|
|
949
949
|
if (!u.isUndefined(f))
|
|
950
|
-
return
|
|
950
|
+
return r(void 0, f);
|
|
951
951
|
} else
|
|
952
|
-
return
|
|
952
|
+
return r(void 0, a);
|
|
953
953
|
}
|
|
954
954
|
function c(f, a, d) {
|
|
955
955
|
if (d in t)
|
|
956
|
-
return
|
|
956
|
+
return r(f, a);
|
|
957
957
|
if (d in e)
|
|
958
|
-
return
|
|
958
|
+
return r(void 0, f);
|
|
959
959
|
}
|
|
960
960
|
const l = {
|
|
961
961
|
url: o,
|
|
@@ -989,36 +989,36 @@ function q(e, t) {
|
|
|
989
989
|
headers: (f, a) => s(Te(f), Te(a), !0)
|
|
990
990
|
};
|
|
991
991
|
return u.forEach(Object.keys(Object.assign({}, e, t)), function(a) {
|
|
992
|
-
const d = l[a] || s,
|
|
993
|
-
u.isUndefined(
|
|
994
|
-
}),
|
|
992
|
+
const d = l[a] || s, p = d(e[a], t[a], a);
|
|
993
|
+
u.isUndefined(p) && d !== c || (n[a] = p);
|
|
994
|
+
}), n;
|
|
995
995
|
}
|
|
996
996
|
const We = (e) => {
|
|
997
997
|
const t = q({}, e);
|
|
998
|
-
let { data:
|
|
999
|
-
t.headers = i =
|
|
998
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
999
|
+
t.headers = i = R.from(i), t.url = Je(Ke(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
1000
1000
|
"Authorization",
|
|
1001
1001
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1002
1002
|
);
|
|
1003
1003
|
let l;
|
|
1004
|
-
if (u.isFormData(
|
|
1005
|
-
if (
|
|
1004
|
+
if (u.isFormData(n)) {
|
|
1005
|
+
if (P.hasStandardBrowserEnv || P.hasStandardBrowserWebWorkerEnv)
|
|
1006
1006
|
i.setContentType(void 0);
|
|
1007
1007
|
else if ((l = i.getContentType()) !== !1) {
|
|
1008
1008
|
const [f, ...a] = l ? l.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1009
1009
|
i.setContentType([f || "multipart/form-data", ...a].join("; "));
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
if (
|
|
1013
|
-
const f = s && o &&
|
|
1012
|
+
if (P.hasStandardBrowserEnv && (r && u.isFunction(r) && (r = r(t)), r || r !== !1 && hn(t.url))) {
|
|
1013
|
+
const f = s && o && pn.read(o);
|
|
1014
1014
|
f && i.set(s, f);
|
|
1015
1015
|
}
|
|
1016
1016
|
return t;
|
|
1017
|
-
},
|
|
1018
|
-
return new Promise(function(
|
|
1017
|
+
}, wn = typeof XMLHttpRequest < "u", gn = wn && function(e) {
|
|
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 = R.from(s.headers).normalize();
|
|
1022
1022
|
let { responseType: c } = s, l;
|
|
1023
1023
|
function f() {
|
|
1024
1024
|
s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
@@ -1028,9 +1028,9 @@ const We = (e) => {
|
|
|
1028
1028
|
function d() {
|
|
1029
1029
|
if (!a)
|
|
1030
1030
|
return;
|
|
1031
|
-
const m =
|
|
1031
|
+
const m = R.from(
|
|
1032
1032
|
"getAllResponseHeaders" in a && a.getAllResponseHeaders()
|
|
1033
|
-
),
|
|
1033
|
+
), w = {
|
|
1034
1034
|
data: !c || c === "text" || c === "json" ? a.responseText : a.response,
|
|
1035
1035
|
status: a.status,
|
|
1036
1036
|
statusText: a.statusText,
|
|
@@ -1039,49 +1039,49 @@ const We = (e) => {
|
|
|
1039
1039
|
request: a
|
|
1040
1040
|
};
|
|
1041
1041
|
Ge(function(S) {
|
|
1042
|
-
r(S), f();
|
|
1043
|
-
}, function(S) {
|
|
1044
1042
|
n(S), f();
|
|
1045
|
-
},
|
|
1043
|
+
}, function(S) {
|
|
1044
|
+
r(S), f();
|
|
1045
|
+
}, w), a = null;
|
|
1046
1046
|
}
|
|
1047
1047
|
"onloadend" in a ? a.onloadend = d : a.onreadystatechange = function() {
|
|
1048
1048
|
!a || a.readyState !== 4 || a.status === 0 && !(a.responseURL && a.responseURL.indexOf("file:") === 0) || setTimeout(d);
|
|
1049
1049
|
}, a.onabort = function() {
|
|
1050
|
-
a && (
|
|
1050
|
+
a && (r(new y("Request aborted", y.ECONNABORTED, s, a)), a = null);
|
|
1051
1051
|
}, a.onerror = function() {
|
|
1052
|
-
|
|
1052
|
+
r(new y("Network Error", y.ERR_NETWORK, s, a)), a = null;
|
|
1053
1053
|
}, a.ontimeout = function() {
|
|
1054
1054
|
let h = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1055
|
-
const
|
|
1056
|
-
s.timeoutErrorMessage && (h = s.timeoutErrorMessage),
|
|
1055
|
+
const w = s.transitional || Me;
|
|
1056
|
+
s.timeoutErrorMessage && (h = s.timeoutErrorMessage), r(new y(
|
|
1057
1057
|
h,
|
|
1058
|
-
|
|
1058
|
+
w.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1059
1059
|
s,
|
|
1060
1060
|
a
|
|
1061
1061
|
)), a = null;
|
|
1062
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in a && u.forEach(i.toJSON(), function(h,
|
|
1063
|
-
a.setRequestHeader(
|
|
1062
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in a && u.forEach(i.toJSON(), function(h, w) {
|
|
1063
|
+
a.setRequestHeader(w, h);
|
|
1064
1064
|
}), u.isUndefined(s.withCredentials) || (a.withCredentials = !!s.withCredentials), c && c !== "json" && (a.responseType = s.responseType), typeof s.onDownloadProgress == "function" && a.addEventListener("progress", M(s.onDownloadProgress, !0)), typeof s.onUploadProgress == "function" && a.upload && a.upload.addEventListener("progress", M(s.onUploadProgress)), (s.cancelToken || s.signal) && (l = (m) => {
|
|
1065
|
-
a && (
|
|
1065
|
+
a && (r(!m || m.type ? new _(null, e, a) : m), a.abort(), a = null);
|
|
1066
1066
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
|
|
1067
|
+
const p = ln(s.url);
|
|
1068
|
+
if (p && P.protocols.indexOf(p) === -1) {
|
|
1069
|
+
r(new y("Unsupported protocol " + p + ":", y.ERR_BAD_REQUEST, e));
|
|
1070
1070
|
return;
|
|
1071
1071
|
}
|
|
1072
1072
|
a.send(o || null);
|
|
1073
1073
|
});
|
|
1074
|
-
},
|
|
1075
|
-
let
|
|
1074
|
+
}, bn = (e, t) => {
|
|
1075
|
+
let n = new AbortController(), r;
|
|
1076
1076
|
const s = function(l) {
|
|
1077
|
-
if (!
|
|
1078
|
-
|
|
1077
|
+
if (!r) {
|
|
1078
|
+
r = !0, i();
|
|
1079
1079
|
const f = l instanceof Error ? l : this.reason;
|
|
1080
|
-
|
|
1080
|
+
n.abort(f instanceof y ? f : new _(f instanceof Error ? f.message : f));
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
1083
|
let o = t && setTimeout(() => {
|
|
1084
|
-
s(new
|
|
1084
|
+
s(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1085
1085
|
}, t);
|
|
1086
1086
|
const i = () => {
|
|
1087
1087
|
e && (o && clearTimeout(o), o = null, e.forEach((l) => {
|
|
@@ -1089,52 +1089,52 @@ const We = (e) => {
|
|
|
1089
1089
|
}), e = null);
|
|
1090
1090
|
};
|
|
1091
1091
|
e.forEach((l) => l && l.addEventListener && l.addEventListener("abort", s));
|
|
1092
|
-
const { signal: c } =
|
|
1092
|
+
const { signal: c } = n;
|
|
1093
1093
|
return c.unsubscribe = i, [c, () => {
|
|
1094
1094
|
o && clearTimeout(o), o = null;
|
|
1095
1095
|
}];
|
|
1096
|
-
},
|
|
1097
|
-
let
|
|
1098
|
-
if (!t ||
|
|
1096
|
+
}, Tn = function* (e, t) {
|
|
1097
|
+
let n = e.byteLength;
|
|
1098
|
+
if (!t || n < t) {
|
|
1099
1099
|
yield e;
|
|
1100
1100
|
return;
|
|
1101
1101
|
}
|
|
1102
|
-
let
|
|
1103
|
-
for (;
|
|
1104
|
-
s =
|
|
1105
|
-
},
|
|
1106
|
-
for await (const
|
|
1107
|
-
yield*
|
|
1108
|
-
}, Se = (e, t,
|
|
1109
|
-
const o =
|
|
1102
|
+
let r = 0, s;
|
|
1103
|
+
for (; r < n; )
|
|
1104
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
1105
|
+
}, Sn = async function* (e, t, n) {
|
|
1106
|
+
for await (const r of e)
|
|
1107
|
+
yield* Tn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
|
|
1108
|
+
}, Se = (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",
|
|
1113
1113
|
async pull(c) {
|
|
1114
1114
|
const { done: l, value: f } = await o.next();
|
|
1115
1115
|
if (l) {
|
|
1116
|
-
c.close(),
|
|
1116
|
+
c.close(), r();
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
1119
|
let a = f.byteLength;
|
|
1120
|
-
|
|
1120
|
+
n && n(i += a), c.enqueue(new Uint8Array(f));
|
|
1121
1121
|
},
|
|
1122
1122
|
cancel(c) {
|
|
1123
|
-
return
|
|
1123
|
+
return r(c), o.return();
|
|
1124
1124
|
}
|
|
1125
1125
|
}, {
|
|
1126
1126
|
highWaterMark: 2
|
|
1127
1127
|
});
|
|
1128
1128
|
}, Ee = (e, t) => {
|
|
1129
|
-
const
|
|
1130
|
-
return (
|
|
1131
|
-
lengthComputable:
|
|
1129
|
+
const n = e != null;
|
|
1130
|
+
return (r) => setTimeout(() => t({
|
|
1131
|
+
lengthComputable: n,
|
|
1132
1132
|
total: e,
|
|
1133
|
-
loaded:
|
|
1133
|
+
loaded: r
|
|
1134
1134
|
}));
|
|
1135
|
-
}, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = Q && typeof ReadableStream == "function", se = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())),
|
|
1135
|
+
}, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = Q && typeof ReadableStream == "function", se = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), En = Qe && (() => {
|
|
1136
1136
|
let e = !1;
|
|
1137
|
-
const t = new Request(
|
|
1137
|
+
const t = new Request(P.origin, {
|
|
1138
1138
|
body: new ReadableStream(),
|
|
1139
1139
|
method: "POST",
|
|
1140
1140
|
get duplex() {
|
|
@@ -1152,12 +1152,12 @@ const We = (e) => {
|
|
|
1152
1152
|
};
|
|
1153
1153
|
Q && ((e) => {
|
|
1154
1154
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1155
|
-
!V[t] && (V[t] = u.isFunction(e[t]) ? (
|
|
1156
|
-
throw new
|
|
1155
|
+
!V[t] && (V[t] = u.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1156
|
+
throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r);
|
|
1157
1157
|
});
|
|
1158
1158
|
});
|
|
1159
1159
|
})(new Response());
|
|
1160
|
-
const
|
|
1160
|
+
const Rn = async (e) => {
|
|
1161
1161
|
if (e == null)
|
|
1162
1162
|
return 0;
|
|
1163
1163
|
if (u.isBlob(e))
|
|
@@ -1168,14 +1168,14 @@ const Er = async (e) => {
|
|
|
1168
1168
|
return e.byteLength;
|
|
1169
1169
|
if (u.isURLSearchParams(e) && (e = e + ""), u.isString(e))
|
|
1170
1170
|
return (await se(e)).byteLength;
|
|
1171
|
-
},
|
|
1172
|
-
const
|
|
1173
|
-
return
|
|
1174
|
-
},
|
|
1171
|
+
}, On = async (e, t) => {
|
|
1172
|
+
const n = u.toFiniteNumber(e.getContentLength());
|
|
1173
|
+
return n ?? Rn(t);
|
|
1174
|
+
}, An = Q && (async (e) => {
|
|
1175
1175
|
let {
|
|
1176
1176
|
url: t,
|
|
1177
|
-
method:
|
|
1178
|
-
data:
|
|
1177
|
+
method: n,
|
|
1178
|
+
data: r,
|
|
1179
1179
|
signal: s,
|
|
1180
1180
|
cancelToken: o,
|
|
1181
1181
|
timeout: i,
|
|
@@ -1184,77 +1184,77 @@ const Er = async (e) => {
|
|
|
1184
1184
|
responseType: f,
|
|
1185
1185
|
headers: a,
|
|
1186
1186
|
withCredentials: d = "same-origin",
|
|
1187
|
-
fetchOptions:
|
|
1187
|
+
fetchOptions: p
|
|
1188
1188
|
} = We(e);
|
|
1189
1189
|
f = f ? (f + "").toLowerCase() : "text";
|
|
1190
|
-
let [m, h] = s || o || i ?
|
|
1190
|
+
let [m, h] = s || o || i ? bn([s, o], i) : [], w, T;
|
|
1191
1191
|
const S = () => {
|
|
1192
|
-
!
|
|
1192
|
+
!w && setTimeout(() => {
|
|
1193
1193
|
m && m.unsubscribe();
|
|
1194
|
-
}),
|
|
1194
|
+
}), w = !0;
|
|
1195
1195
|
};
|
|
1196
|
-
let
|
|
1196
|
+
let E;
|
|
1197
1197
|
try {
|
|
1198
|
-
if (l &&
|
|
1199
|
-
let
|
|
1198
|
+
if (l && En && n !== "get" && n !== "head" && (E = await On(a, r)) !== 0) {
|
|
1199
|
+
let N = new Request(t, {
|
|
1200
1200
|
method: "POST",
|
|
1201
|
-
body:
|
|
1201
|
+
body: r,
|
|
1202
1202
|
duplex: "half"
|
|
1203
1203
|
}), B;
|
|
1204
|
-
u.isFormData(
|
|
1205
|
-
|
|
1204
|
+
u.isFormData(r) && (B = N.headers.get("content-type")) && a.setContentType(B), N.body && (r = Se(N.body, Re, Ee(
|
|
1205
|
+
E,
|
|
1206
1206
|
M(l)
|
|
1207
1207
|
), null, se));
|
|
1208
1208
|
}
|
|
1209
1209
|
u.isString(d) || (d = d ? "cors" : "omit"), T = new Request(t, {
|
|
1210
|
-
...
|
|
1210
|
+
...p,
|
|
1211
1211
|
signal: m,
|
|
1212
|
-
method:
|
|
1212
|
+
method: n.toUpperCase(),
|
|
1213
1213
|
headers: a.normalize().toJSON(),
|
|
1214
|
-
body:
|
|
1214
|
+
body: r,
|
|
1215
1215
|
duplex: "half",
|
|
1216
1216
|
withCredentials: d
|
|
1217
1217
|
});
|
|
1218
|
-
let
|
|
1218
|
+
let g = await fetch(T);
|
|
1219
1219
|
const F = oe && (f === "stream" || f === "response");
|
|
1220
1220
|
if (oe && (c || F)) {
|
|
1221
|
-
const
|
|
1221
|
+
const N = {};
|
|
1222
1222
|
["status", "statusText", "headers"].forEach((he) => {
|
|
1223
|
-
|
|
1223
|
+
N[he] = g[he];
|
|
1224
1224
|
});
|
|
1225
|
-
const B = u.toFiniteNumber(
|
|
1226
|
-
|
|
1227
|
-
Se(
|
|
1225
|
+
const B = u.toFiniteNumber(g.headers.get("content-length"));
|
|
1226
|
+
g = new Response(
|
|
1227
|
+
Se(g.body, Re, c && Ee(
|
|
1228
1228
|
B,
|
|
1229
1229
|
M(c, !0)
|
|
1230
1230
|
), F && S, se),
|
|
1231
|
-
|
|
1231
|
+
N
|
|
1232
1232
|
);
|
|
1233
1233
|
}
|
|
1234
1234
|
f = f || "text";
|
|
1235
|
-
let
|
|
1236
|
-
return !F && S(), h && h(), await new Promise((
|
|
1237
|
-
Ge(
|
|
1238
|
-
data:
|
|
1239
|
-
headers:
|
|
1240
|
-
status:
|
|
1241
|
-
statusText:
|
|
1235
|
+
let nt = await V[u.findKey(V, f) || "text"](g, e);
|
|
1236
|
+
return !F && S(), h && h(), await new Promise((N, B) => {
|
|
1237
|
+
Ge(N, B, {
|
|
1238
|
+
data: nt,
|
|
1239
|
+
headers: R.from(g.headers),
|
|
1240
|
+
status: g.status,
|
|
1241
|
+
statusText: g.statusText,
|
|
1242
1242
|
config: e,
|
|
1243
1243
|
request: T
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
1246
|
-
} catch (
|
|
1247
|
-
throw S(),
|
|
1248
|
-
new
|
|
1246
|
+
} catch (g) {
|
|
1247
|
+
throw S(), g && g.name === "TypeError" && /fetch/i.test(g.message) ? Object.assign(
|
|
1248
|
+
new y("Network Error", y.ERR_NETWORK, e, T),
|
|
1249
1249
|
{
|
|
1250
|
-
cause:
|
|
1250
|
+
cause: g.cause || g
|
|
1251
1251
|
}
|
|
1252
|
-
) :
|
|
1252
|
+
) : y.from(g, g && g.code, e, T);
|
|
1253
1253
|
}
|
|
1254
1254
|
}), ie = {
|
|
1255
1255
|
http: Ht,
|
|
1256
|
-
xhr:
|
|
1257
|
-
fetch:
|
|
1256
|
+
xhr: gn,
|
|
1257
|
+
fetch: An
|
|
1258
1258
|
};
|
|
1259
1259
|
u.forEach(ie, (e, t) => {
|
|
1260
1260
|
if (e) {
|
|
@@ -1265,34 +1265,34 @@ u.forEach(ie, (e, t) => {
|
|
|
1265
1265
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
|
-
const Oe = (e) => `- ${e}`,
|
|
1268
|
+
const Oe = (e) => `- ${e}`, Pn = (e) => u.isFunction(e) || e === null || e === !1, Xe = {
|
|
1269
1269
|
getAdapter: (e) => {
|
|
1270
1270
|
e = u.isArray(e) ? e : [e];
|
|
1271
1271
|
const { length: t } = e;
|
|
1272
|
-
let
|
|
1272
|
+
let n, r;
|
|
1273
1273
|
const s = {};
|
|
1274
1274
|
for (let o = 0; o < t; o++) {
|
|
1275
|
-
|
|
1275
|
+
n = e[o];
|
|
1276
1276
|
let i;
|
|
1277
|
-
if (
|
|
1278
|
-
throw new
|
|
1279
|
-
if (
|
|
1277
|
+
if (r = n, !Pn(n) && (r = ie[(i = String(n)).toLowerCase()], r === void 0))
|
|
1278
|
+
throw new y(`Unknown adapter '${i}'`);
|
|
1279
|
+
if (r)
|
|
1280
1280
|
break;
|
|
1281
|
-
s[i || "#" + o] =
|
|
1281
|
+
s[i || "#" + o] = r;
|
|
1282
1282
|
}
|
|
1283
|
-
if (!
|
|
1283
|
+
if (!r) {
|
|
1284
1284
|
const o = Object.entries(s).map(
|
|
1285
1285
|
([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1286
1286
|
);
|
|
1287
1287
|
let i = t ? o.length > 1 ? `since :
|
|
1288
1288
|
` + o.map(Oe).join(`
|
|
1289
1289
|
`) : " " + Oe(o[0]) : "as no adapter specified";
|
|
1290
|
-
throw new
|
|
1290
|
+
throw new y(
|
|
1291
1291
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1292
1292
|
"ERR_NOT_SUPPORT"
|
|
1293
1293
|
);
|
|
1294
1294
|
}
|
|
1295
|
-
return
|
|
1295
|
+
return r;
|
|
1296
1296
|
},
|
|
1297
1297
|
adapters: ie
|
|
1298
1298
|
};
|
|
@@ -1301,74 +1301,74 @@ function ee(e) {
|
|
|
1301
1301
|
throw new _(null, e);
|
|
1302
1302
|
}
|
|
1303
1303
|
function Ae(e) {
|
|
1304
|
-
return ee(e), e.headers =
|
|
1304
|
+
return ee(e), e.headers = R.from(e.headers), e.data = Y.call(
|
|
1305
1305
|
e,
|
|
1306
1306
|
e.transformRequest
|
|
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(
|
|
1308
|
-
return ee(e),
|
|
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) {
|
|
1308
|
+
return ee(e), r.data = Y.call(
|
|
1309
1309
|
e,
|
|
1310
1310
|
e.transformResponse,
|
|
1311
|
-
|
|
1312
|
-
),
|
|
1313
|
-
}, function(
|
|
1314
|
-
return ve(
|
|
1311
|
+
r
|
|
1312
|
+
), r.headers = R.from(r.headers), r;
|
|
1313
|
+
}, function(r) {
|
|
1314
|
+
return ve(r) || (ee(e), r && r.response && (r.response.data = Y.call(
|
|
1315
1315
|
e,
|
|
1316
1316
|
e.transformResponse,
|
|
1317
|
-
|
|
1318
|
-
),
|
|
1317
|
+
r.response
|
|
1318
|
+
), r.response.headers = R.from(r.response.headers))), Promise.reject(r);
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
1321
|
const Ze = "1.7.2", de = {};
|
|
1322
1322
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1323
|
-
de[e] = function(
|
|
1324
|
-
return typeof
|
|
1323
|
+
de[e] = function(r) {
|
|
1324
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1325
1325
|
};
|
|
1326
1326
|
});
|
|
1327
1327
|
const Pe = {};
|
|
1328
|
-
de.transitional = function(t,
|
|
1328
|
+
de.transitional = function(t, n, r) {
|
|
1329
1329
|
function s(o, i) {
|
|
1330
|
-
return "[Axios v" + Ze + "] Transitional option '" + o + "'" + i + (
|
|
1330
|
+
return "[Axios v" + Ze + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1331
1331
|
}
|
|
1332
1332
|
return (o, i, c) => {
|
|
1333
1333
|
if (t === !1)
|
|
1334
|
-
throw new
|
|
1335
|
-
s(i, " has been removed" + (
|
|
1336
|
-
|
|
1334
|
+
throw new y(
|
|
1335
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1336
|
+
y.ERR_DEPRECATED
|
|
1337
1337
|
);
|
|
1338
|
-
return
|
|
1338
|
+
return n && !Pe[i] && (Pe[i] = !0, console.warn(
|
|
1339
1339
|
s(
|
|
1340
1340
|
i,
|
|
1341
|
-
" has been deprecated since v" +
|
|
1341
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1342
1342
|
)
|
|
1343
1343
|
)), t ? t(o, i, c) : !0;
|
|
1344
1344
|
};
|
|
1345
1345
|
};
|
|
1346
|
-
function
|
|
1346
|
+
function kn(e, t, n) {
|
|
1347
1347
|
if (typeof e != "object")
|
|
1348
|
-
throw new
|
|
1349
|
-
const
|
|
1350
|
-
let s =
|
|
1348
|
+
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1349
|
+
const r = Object.keys(e);
|
|
1350
|
+
let s = r.length;
|
|
1351
1351
|
for (; s-- > 0; ) {
|
|
1352
|
-
const o =
|
|
1352
|
+
const o = r[s], i = t[o];
|
|
1353
1353
|
if (i) {
|
|
1354
1354
|
const c = e[o], l = c === void 0 || i(c, o, e);
|
|
1355
1355
|
if (l !== !0)
|
|
1356
|
-
throw new
|
|
1356
|
+
throw new y("option " + o + " must be " + l, y.ERR_BAD_OPTION_VALUE);
|
|
1357
1357
|
continue;
|
|
1358
1358
|
}
|
|
1359
|
-
if (
|
|
1360
|
-
throw new
|
|
1359
|
+
if (n !== !0)
|
|
1360
|
+
throw new y("Unknown option " + o, y.ERR_BAD_OPTION);
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
const ae = {
|
|
1364
|
-
assertOptions:
|
|
1364
|
+
assertOptions: kn,
|
|
1365
1365
|
validators: de
|
|
1366
1366
|
}, C = ae.validators;
|
|
1367
1367
|
let U = class {
|
|
1368
1368
|
constructor(t) {
|
|
1369
1369
|
this.defaults = t, this.interceptors = {
|
|
1370
|
-
request: new
|
|
1371
|
-
response: new
|
|
1370
|
+
request: new ge(),
|
|
1371
|
+
response: new ge()
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
1374
|
/**
|
|
@@ -1379,70 +1379,70 @@ let U = class {
|
|
|
1379
1379
|
*
|
|
1380
1380
|
* @returns {Promise} The Promise to be fulfilled
|
|
1381
1381
|
*/
|
|
1382
|
-
async request(t,
|
|
1382
|
+
async request(t, n) {
|
|
1383
1383
|
try {
|
|
1384
|
-
return await this._request(t,
|
|
1385
|
-
} catch (
|
|
1386
|
-
if (
|
|
1384
|
+
return await this._request(t, n);
|
|
1385
|
+
} catch (r) {
|
|
1386
|
+
if (r instanceof Error) {
|
|
1387
1387
|
let s;
|
|
1388
1388
|
Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
|
|
1389
1389
|
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1390
1390
|
try {
|
|
1391
|
-
|
|
1392
|
-
` + o) :
|
|
1391
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1392
|
+
` + o) : r.stack = o;
|
|
1393
1393
|
} catch {
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
|
-
throw
|
|
1396
|
+
throw r;
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
|
-
_request(t,
|
|
1400
|
-
typeof t == "string" ? (
|
|
1401
|
-
const { transitional:
|
|
1402
|
-
|
|
1399
|
+
_request(t, n) {
|
|
1400
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
|
|
1401
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1402
|
+
r !== void 0 && ae.assertOptions(r, {
|
|
1403
1403
|
silentJSONParsing: C.transitional(C.boolean),
|
|
1404
1404
|
forcedJSONParsing: C.transitional(C.boolean),
|
|
1405
1405
|
clarifyTimeoutError: C.transitional(C.boolean)
|
|
1406
|
-
}, !1), s != null && (u.isFunction(s) ?
|
|
1406
|
+
}, !1), s != null && (u.isFunction(s) ? n.paramsSerializer = {
|
|
1407
1407
|
serialize: s
|
|
1408
1408
|
} : ae.assertOptions(s, {
|
|
1409
1409
|
encode: C.function,
|
|
1410
1410
|
serialize: C.function
|
|
1411
|
-
}, !0)),
|
|
1411
|
+
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1412
1412
|
let i = o && u.merge(
|
|
1413
1413
|
o.common,
|
|
1414
|
-
o[
|
|
1414
|
+
o[n.method]
|
|
1415
1415
|
);
|
|
1416
1416
|
o && u.forEach(
|
|
1417
1417
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1418
1418
|
(h) => {
|
|
1419
1419
|
delete o[h];
|
|
1420
1420
|
}
|
|
1421
|
-
),
|
|
1421
|
+
), n.headers = R.concat(i, o);
|
|
1422
1422
|
const c = [];
|
|
1423
1423
|
let l = !0;
|
|
1424
|
-
this.interceptors.request.forEach(function(
|
|
1425
|
-
typeof
|
|
1424
|
+
this.interceptors.request.forEach(function(w) {
|
|
1425
|
+
typeof w.runWhen == "function" && w.runWhen(n) === !1 || (l = l && w.synchronous, c.unshift(w.fulfilled, w.rejected));
|
|
1426
1426
|
});
|
|
1427
1427
|
const f = [];
|
|
1428
|
-
this.interceptors.response.forEach(function(
|
|
1429
|
-
f.push(
|
|
1428
|
+
this.interceptors.response.forEach(function(w) {
|
|
1429
|
+
f.push(w.fulfilled, w.rejected);
|
|
1430
1430
|
});
|
|
1431
|
-
let a, d = 0,
|
|
1431
|
+
let a, d = 0, p;
|
|
1432
1432
|
if (!l) {
|
|
1433
1433
|
const h = [Ae.bind(this), void 0];
|
|
1434
|
-
for (h.unshift.apply(h, c), h.push.apply(h, f),
|
|
1434
|
+
for (h.unshift.apply(h, c), h.push.apply(h, f), p = h.length, a = Promise.resolve(n); d < p; )
|
|
1435
1435
|
a = a.then(h[d++], h[d++]);
|
|
1436
1436
|
return a;
|
|
1437
1437
|
}
|
|
1438
|
-
|
|
1439
|
-
let m =
|
|
1440
|
-
for (d = 0; d <
|
|
1441
|
-
const h = c[d++],
|
|
1438
|
+
p = c.length;
|
|
1439
|
+
let m = n;
|
|
1440
|
+
for (d = 0; d < p; ) {
|
|
1441
|
+
const h = c[d++], w = c[d++];
|
|
1442
1442
|
try {
|
|
1443
1443
|
m = h(m);
|
|
1444
1444
|
} catch (T) {
|
|
1445
|
-
|
|
1445
|
+
w.call(this, T);
|
|
1446
1446
|
break;
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
@@ -1451,31 +1451,31 @@ let U = class {
|
|
|
1451
1451
|
} catch (h) {
|
|
1452
1452
|
return Promise.reject(h);
|
|
1453
1453
|
}
|
|
1454
|
-
for (d = 0,
|
|
1454
|
+
for (d = 0, p = f.length; d < p; )
|
|
1455
1455
|
a = a.then(f[d++], f[d++]);
|
|
1456
1456
|
return a;
|
|
1457
1457
|
}
|
|
1458
1458
|
getUri(t) {
|
|
1459
1459
|
t = q(this.defaults, t);
|
|
1460
|
-
const
|
|
1461
|
-
return Je(
|
|
1460
|
+
const n = Ke(t.baseURL, t.url);
|
|
1461
|
+
return Je(n, t.params, t.paramsSerializer);
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
1464
|
u.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1465
|
-
U.prototype[t] = function(
|
|
1466
|
-
return this.request(q(
|
|
1465
|
+
U.prototype[t] = function(n, r) {
|
|
1466
|
+
return this.request(q(r || {}, {
|
|
1467
1467
|
method: t,
|
|
1468
|
-
url:
|
|
1469
|
-
data: (
|
|
1468
|
+
url: n,
|
|
1469
|
+
data: (r || {}).data
|
|
1470
1470
|
}));
|
|
1471
1471
|
};
|
|
1472
1472
|
});
|
|
1473
1473
|
u.forEach(["post", "put", "patch"], function(t) {
|
|
1474
|
-
function r
|
|
1474
|
+
function n(r) {
|
|
1475
1475
|
return function(o, i, c) {
|
|
1476
1476
|
return this.request(q(c || {}, {
|
|
1477
1477
|
method: t,
|
|
1478
|
-
headers:
|
|
1478
|
+
headers: r ? {
|
|
1479
1479
|
"Content-Type": "multipart/form-data"
|
|
1480
1480
|
} : {},
|
|
1481
1481
|
url: o,
|
|
@@ -1483,34 +1483,34 @@ u.forEach(["post", "put", "patch"], function(t) {
|
|
|
1483
1483
|
}));
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
U.prototype[t] =
|
|
1486
|
+
U.prototype[t] = n(), U.prototype[t + "Form"] = n(!0);
|
|
1487
1487
|
});
|
|
1488
|
-
let
|
|
1488
|
+
let Nn = class Ye {
|
|
1489
1489
|
constructor(t) {
|
|
1490
1490
|
if (typeof t != "function")
|
|
1491
1491
|
throw new TypeError("executor must be a function.");
|
|
1492
|
-
let
|
|
1492
|
+
let n;
|
|
1493
1493
|
this.promise = new Promise(function(o) {
|
|
1494
|
-
|
|
1494
|
+
n = o;
|
|
1495
1495
|
});
|
|
1496
|
-
const
|
|
1496
|
+
const r = this;
|
|
1497
1497
|
this.promise.then((s) => {
|
|
1498
|
-
if (!
|
|
1498
|
+
if (!r._listeners)
|
|
1499
1499
|
return;
|
|
1500
|
-
let o =
|
|
1500
|
+
let o = r._listeners.length;
|
|
1501
1501
|
for (; o-- > 0; )
|
|
1502
|
-
|
|
1503
|
-
|
|
1502
|
+
r._listeners[o](s);
|
|
1503
|
+
r._listeners = null;
|
|
1504
1504
|
}), this.promise.then = (s) => {
|
|
1505
1505
|
let o;
|
|
1506
1506
|
const i = new Promise((c) => {
|
|
1507
|
-
|
|
1507
|
+
r.subscribe(c), o = c;
|
|
1508
1508
|
}).then(s);
|
|
1509
1509
|
return i.cancel = function() {
|
|
1510
|
-
|
|
1510
|
+
r.unsubscribe(o);
|
|
1511
1511
|
}, i;
|
|
1512
1512
|
}, t(function(o, i, c) {
|
|
1513
|
-
|
|
1513
|
+
r.reason || (r.reason = new _(o, i, c), n(r.reason));
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
/**
|
|
@@ -1536,8 +1536,8 @@ let Nr = class Ye {
|
|
|
1536
1536
|
unsubscribe(t) {
|
|
1537
1537
|
if (!this._listeners)
|
|
1538
1538
|
return;
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1539
|
+
const n = this._listeners.indexOf(t);
|
|
1540
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1541
1541
|
}
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
@@ -1553,12 +1553,12 @@ let Nr = class Ye {
|
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
1555
1555
|
};
|
|
1556
|
-
function
|
|
1557
|
-
return function(
|
|
1558
|
-
return e.apply(null,
|
|
1556
|
+
function Cn(e) {
|
|
1557
|
+
return function(n) {
|
|
1558
|
+
return e.apply(null, n);
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function xn(e) {
|
|
1562
1562
|
return u.isObject(e) && e.isAxiosError === !0;
|
|
1563
1563
|
}
|
|
1564
1564
|
const ce = {
|
|
@@ -1630,70 +1630,70 @@ Object.entries(ce).forEach(([e, t]) => {
|
|
|
1630
1630
|
ce[t] = e;
|
|
1631
1631
|
});
|
|
1632
1632
|
function et(e) {
|
|
1633
|
-
const t = new U(e),
|
|
1634
|
-
return u.extend(
|
|
1633
|
+
const t = new U(e), n = Ue(U.prototype.request, t);
|
|
1634
|
+
return u.extend(n, U.prototype, t, { allOwnKeys: !0 }), u.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1635
1635
|
return et(q(e, s));
|
|
1636
|
-
},
|
|
1636
|
+
}, n;
|
|
1637
1637
|
}
|
|
1638
1638
|
const b = et(j);
|
|
1639
1639
|
b.Axios = U;
|
|
1640
1640
|
b.CanceledError = _;
|
|
1641
|
-
b.CancelToken =
|
|
1641
|
+
b.CancelToken = Nn;
|
|
1642
1642
|
b.isCancel = ve;
|
|
1643
1643
|
b.VERSION = Ze;
|
|
1644
1644
|
b.toFormData = W;
|
|
1645
|
-
b.AxiosError =
|
|
1645
|
+
b.AxiosError = y;
|
|
1646
1646
|
b.Cancel = b.CanceledError;
|
|
1647
1647
|
b.all = function(t) {
|
|
1648
1648
|
return Promise.all(t);
|
|
1649
1649
|
};
|
|
1650
|
-
b.spread =
|
|
1651
|
-
b.isAxiosError =
|
|
1650
|
+
b.spread = Cn;
|
|
1651
|
+
b.isAxiosError = xn;
|
|
1652
1652
|
b.mergeConfig = q;
|
|
1653
|
-
b.AxiosHeaders =
|
|
1653
|
+
b.AxiosHeaders = R;
|
|
1654
1654
|
b.formToJSON = (e) => Ve(u.isHTMLForm(e) ? new FormData(e) : e);
|
|
1655
1655
|
b.getAdapter = Xe.getAdapter;
|
|
1656
1656
|
b.HttpStatusCode = ce;
|
|
1657
1657
|
b.default = b;
|
|
1658
1658
|
const {
|
|
1659
|
-
Axios:
|
|
1660
|
-
AxiosError:
|
|
1661
|
-
CanceledError:
|
|
1662
|
-
isCancel:
|
|
1663
|
-
CancelToken:
|
|
1664
|
-
VERSION:
|
|
1665
|
-
all:
|
|
1666
|
-
Cancel:
|
|
1667
|
-
isAxiosError:
|
|
1668
|
-
spread:
|
|
1669
|
-
toFormData:
|
|
1670
|
-
AxiosHeaders:
|
|
1671
|
-
HttpStatusCode:
|
|
1672
|
-
formToJSON:
|
|
1673
|
-
getAdapter:
|
|
1674
|
-
mergeConfig:
|
|
1675
|
-
} = b,
|
|
1676
|
-
const
|
|
1659
|
+
Axios: rr,
|
|
1660
|
+
AxiosError: Un,
|
|
1661
|
+
CanceledError: sr,
|
|
1662
|
+
isCancel: or,
|
|
1663
|
+
CancelToken: ir,
|
|
1664
|
+
VERSION: ar,
|
|
1665
|
+
all: cr,
|
|
1666
|
+
Cancel: ur,
|
|
1667
|
+
isAxiosError: lr,
|
|
1668
|
+
spread: fr,
|
|
1669
|
+
toFormData: dr,
|
|
1670
|
+
AxiosHeaders: ke,
|
|
1671
|
+
HttpStatusCode: hr,
|
|
1672
|
+
formToJSON: pr,
|
|
1673
|
+
getAdapter: mr,
|
|
1674
|
+
mergeConfig: yr
|
|
1675
|
+
} = b, Ne = "auth", tt = async (e, t, n) => {
|
|
1676
|
+
const r = {
|
|
1677
1677
|
client_id: e.clientId,
|
|
1678
1678
|
client_secret: e.clientSecret
|
|
1679
|
-
}, s = await
|
|
1679
|
+
}, s = await n.post(
|
|
1680
1680
|
`${e.url}/security/connect/token/refresh`,
|
|
1681
|
-
|
|
1681
|
+
r,
|
|
1682
1682
|
{ withCredentials: !0, headers: t || {} }
|
|
1683
1683
|
), o = {
|
|
1684
1684
|
...s.data,
|
|
1685
1685
|
accessToken: s.data.access_token
|
|
1686
1686
|
};
|
|
1687
1687
|
return "access_token" in o && delete o.access_token, s.status === 200 && o.accessToken && localStorage.setItem("accessToken", o.accessToken), o;
|
|
1688
|
-
},
|
|
1689
|
-
const t =
|
|
1688
|
+
}, qn = (e) => {
|
|
1689
|
+
const t = A(e), n = e.digitalRefresh, r = async (c) => {
|
|
1690
1690
|
var f;
|
|
1691
|
-
const l = await t.request(`/${
|
|
1691
|
+
const l = await t.request(`/${Ne}/login`, {
|
|
1692
1692
|
method: "POST",
|
|
1693
1693
|
data: JSON.stringify(c)
|
|
1694
1694
|
});
|
|
1695
1695
|
return l.status === 200 && ((f = l.data) != null && f.accessToken) && localStorage.setItem("accessToken", l.data.accessToken), l;
|
|
1696
|
-
}, s = async (c) => await t.request(`/${
|
|
1696
|
+
}, s = async (c) => await t.request(`/${Ne}?code=${c}`, {
|
|
1697
1697
|
method: "GET",
|
|
1698
1698
|
data: ""
|
|
1699
1699
|
}), o = async () => {
|
|
@@ -1712,38 +1712,38 @@ const {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
}, i = t.axiosClient;
|
|
1714
1714
|
return {
|
|
1715
|
-
postLogin:
|
|
1715
|
+
postLogin: r,
|
|
1716
1716
|
getToken: s,
|
|
1717
|
-
postToken:
|
|
1717
|
+
postToken: n ? () => tt(n, e.headers, i) : void 0,
|
|
1718
1718
|
postLogout: o
|
|
1719
1719
|
};
|
|
1720
|
-
}, Ce = () => new
|
|
1720
|
+
}, Ce = () => new Un(
|
|
1721
1721
|
"Unauthorized",
|
|
1722
1722
|
"ERR_UNAUTHORIZED",
|
|
1723
|
-
{ headers: new
|
|
1723
|
+
{ headers: new ke() },
|
|
1724
1724
|
null,
|
|
1725
1725
|
{
|
|
1726
1726
|
status: 401,
|
|
1727
1727
|
data: null,
|
|
1728
1728
|
statusText: "UNAUTHORIZED",
|
|
1729
1729
|
headers: {},
|
|
1730
|
-
config: { headers: new
|
|
1730
|
+
config: { headers: new ke() }
|
|
1731
1731
|
}
|
|
1732
|
-
),
|
|
1732
|
+
), Bn = (e) => {
|
|
1733
1733
|
let t = !1;
|
|
1734
|
-
const
|
|
1735
|
-
const d = a.accessToken,
|
|
1736
|
-
d && localStorage.setItem("accessToken", d),
|
|
1734
|
+
const n = [], r = () => localStorage.getItem("accessToken"), s = () => localStorage.getItem("refreshToken"), o = (a) => {
|
|
1735
|
+
const d = a.accessToken, p = a.refreshToken;
|
|
1736
|
+
d && localStorage.setItem("accessToken", d), p && localStorage.setItem("refreshToken", p);
|
|
1737
1737
|
}, i = () => {
|
|
1738
1738
|
localStorage.removeItem("accessToken"), localStorage.removeItem("refreshToken");
|
|
1739
1739
|
}, c = (a, d = null) => {
|
|
1740
|
-
var
|
|
1741
|
-
for (const m of
|
|
1742
|
-
a ? m.reject(a) : ((
|
|
1743
|
-
|
|
1740
|
+
var p;
|
|
1741
|
+
for (const m of n)
|
|
1742
|
+
a ? m.reject(a) : ((p = m.requestConfig).headers ?? (p.headers = {}), m.requestConfig.headers.Authorization = `Bearer ${d}`, m.resolve(m.requestConfig));
|
|
1743
|
+
n.length = 0;
|
|
1744
1744
|
};
|
|
1745
1745
|
return {
|
|
1746
|
-
getAccessToken:
|
|
1746
|
+
getAccessToken: r,
|
|
1747
1747
|
setTokens: o,
|
|
1748
1748
|
clearTokens: i,
|
|
1749
1749
|
handleTokenRefresh: async (a) => {
|
|
@@ -1756,21 +1756,21 @@ const {
|
|
|
1756
1756
|
throw c(m), e.refreshLogoutUrl && (globalThis.location.href = `${e.refreshLogoutUrl}?logout`), m;
|
|
1757
1757
|
}
|
|
1758
1758
|
if (t)
|
|
1759
|
-
return new Promise((
|
|
1760
|
-
|
|
1761
|
-
resolve:
|
|
1759
|
+
return new Promise((p, m) => {
|
|
1760
|
+
n.push({
|
|
1761
|
+
resolve: p,
|
|
1762
1762
|
reject: m,
|
|
1763
1763
|
requestConfig: a
|
|
1764
1764
|
});
|
|
1765
1765
|
});
|
|
1766
1766
|
t = !0;
|
|
1767
1767
|
try {
|
|
1768
|
-
const
|
|
1768
|
+
const p = s(), m = await e.onRefreshToken(p);
|
|
1769
1769
|
return o(m), a.headers ?? (a.headers = {}), a.headers.Authorization = `Bearer ${m.accessToken}`, c(null, m.accessToken), t = !1, a;
|
|
1770
1770
|
} catch {
|
|
1771
1771
|
i();
|
|
1772
|
-
const
|
|
1773
|
-
throw c(
|
|
1772
|
+
const p = Ce();
|
|
1773
|
+
throw c(p), t = !1, p;
|
|
1774
1774
|
}
|
|
1775
1775
|
},
|
|
1776
1776
|
isAuthError: (a) => {
|
|
@@ -1778,20 +1778,20 @@ const {
|
|
|
1778
1778
|
return ((d = a == null ? void 0 : a.response) == null ? void 0 : d.status) === 401;
|
|
1779
1779
|
}
|
|
1780
1780
|
};
|
|
1781
|
-
},
|
|
1782
|
-
const t = (
|
|
1781
|
+
}, Ln = (e) => {
|
|
1782
|
+
const t = (r) => r ? r.toString().replace(/(^\/{1,2})|(\/{1,2}$)/g, "") : null;
|
|
1783
1783
|
return [
|
|
1784
1784
|
t(e.baseUrl),
|
|
1785
1785
|
t(e.productCode),
|
|
1786
1786
|
t(e.apiVersion),
|
|
1787
1787
|
t(e.endpoint)
|
|
1788
1788
|
].filter(Boolean).join("/");
|
|
1789
|
-
},
|
|
1789
|
+
}, _n = (e, t, n, r, s) => {
|
|
1790
1790
|
var f;
|
|
1791
1791
|
if (!t)
|
|
1792
1792
|
return null;
|
|
1793
|
-
const o = !!e.digitalRefresh, i = e.refreshTokenApiVersion ?? s, c = e.refreshTokenEndpointPath ?? (o ? "/security/connect/token/refresh" : "/refresh-token"), l = `${
|
|
1794
|
-
return
|
|
1793
|
+
const o = !!e.digitalRefresh, i = e.refreshTokenApiVersion ?? s, c = e.refreshTokenEndpointPath ?? (o ? "/security/connect/token/refresh" : "/refresh-token"), l = `${r}/auth/${i}${c}`;
|
|
1794
|
+
return Bn({
|
|
1795
1795
|
baseUrl: e.baseUrl,
|
|
1796
1796
|
refreshTokenEndpointPath: c,
|
|
1797
1797
|
digitalRefreshUrl: (f = e.digitalRefresh) == null ? void 0 : f.url,
|
|
@@ -1799,98 +1799,118 @@ const {
|
|
|
1799
1799
|
onRefreshToken: async (a) => o ? await tt(
|
|
1800
1800
|
e.digitalRefresh,
|
|
1801
1801
|
e.headers,
|
|
1802
|
-
|
|
1803
|
-
) : (await
|
|
1802
|
+
n
|
|
1803
|
+
) : (await n.post(l, {
|
|
1804
1804
|
refreshToken: a
|
|
1805
1805
|
})).data
|
|
1806
1806
|
});
|
|
1807
|
-
},
|
|
1807
|
+
}, Fn = (e, t) => {
|
|
1808
1808
|
e.interceptors.response.use(
|
|
1809
|
-
(
|
|
1810
|
-
async (
|
|
1811
|
-
const
|
|
1812
|
-
if (!t.isAuthError(
|
|
1813
|
-
throw
|
|
1814
|
-
|
|
1815
|
-
const s = await t.handleTokenRefresh(
|
|
1809
|
+
(n) => n,
|
|
1810
|
+
async (n) => {
|
|
1811
|
+
const r = n.config;
|
|
1812
|
+
if (!t.isAuthError(n) || r._retry)
|
|
1813
|
+
throw n;
|
|
1814
|
+
r._retry = !0;
|
|
1815
|
+
const s = await t.handleTokenRefresh(r);
|
|
1816
1816
|
return e.request(s);
|
|
1817
1817
|
}
|
|
1818
1818
|
);
|
|
1819
|
-
},
|
|
1819
|
+
}, Dn = (e, t, n, r, s) => {
|
|
1820
1820
|
const o = {
|
|
1821
1821
|
"Content-Type": (e == null ? void 0 : e.contentType) ?? "application/json",
|
|
1822
|
-
apiVersion: t
|
|
1822
|
+
...t && { apiVersion: t },
|
|
1823
1823
|
Authorization: "",
|
|
1824
|
-
...
|
|
1824
|
+
...n,
|
|
1825
1825
|
...e == null ? void 0 : e.headers
|
|
1826
1826
|
};
|
|
1827
|
-
if (s &&
|
|
1828
|
-
const i =
|
|
1827
|
+
if (s && r) {
|
|
1828
|
+
const i = r.getAccessToken();
|
|
1829
1829
|
i && (o.Authorization = `Bearer ${i}`);
|
|
1830
1830
|
}
|
|
1831
1831
|
return o;
|
|
1832
|
-
},
|
|
1833
|
-
const
|
|
1832
|
+
}, $n = (e, t, n) => {
|
|
1833
|
+
const r = {
|
|
1834
1834
|
method: (e == null ? void 0 : e.method) ?? "GET",
|
|
1835
1835
|
headers: t,
|
|
1836
|
-
url:
|
|
1836
|
+
url: n,
|
|
1837
1837
|
data: (e == null ? void 0 : e.data) ?? {},
|
|
1838
1838
|
responseType: e == null ? void 0 : e.responseType
|
|
1839
1839
|
};
|
|
1840
|
-
return (e == null ? void 0 : e.withCredentials) !== void 0 && (
|
|
1841
|
-
},
|
|
1840
|
+
return (e == null ? void 0 : e.withCredentials) !== void 0 && (r.withCredentials = e.withCredentials), r;
|
|
1841
|
+
}, In = (e, t) => ({
|
|
1842
1842
|
getAccessToken: e && t ? t.getAccessToken : () => null,
|
|
1843
1843
|
setTokens: e && t ? t.setTokens : () => {
|
|
1844
1844
|
},
|
|
1845
1845
|
clearTokens: e && t ? t.clearTokens : () => {
|
|
1846
1846
|
}
|
|
1847
|
-
}),
|
|
1848
|
-
const t = b.create(),
|
|
1847
|
+
}), A = (e) => {
|
|
1848
|
+
const t = b.create(), n = e.apiVersion, r = e.productCode, o = e.baseUrl.replace(/\/$/, ""), i = e.hasTokenManager !== !1, c = _n(
|
|
1849
1849
|
e,
|
|
1850
1850
|
i,
|
|
1851
1851
|
t,
|
|
1852
1852
|
o,
|
|
1853
|
-
|
|
1854
|
-
);
|
|
1855
|
-
i && c && _r(t, c), e.responseInterceptor && t.interceptors.response.use(
|
|
1856
|
-
e.responseInterceptor.onFulfilled,
|
|
1857
|
-
e.responseInterceptor.onReject
|
|
1853
|
+
n
|
|
1858
1854
|
);
|
|
1859
|
-
|
|
1860
|
-
|
|
1855
|
+
i && c && Fn(t, c);
|
|
1856
|
+
const l = (p) => ({
|
|
1857
|
+
data: p.data,
|
|
1858
|
+
status: p.status,
|
|
1859
|
+
statusText: p.statusText,
|
|
1860
|
+
headers: p.headers
|
|
1861
|
+
}), f = (p) => {
|
|
1862
|
+
var m;
|
|
1863
|
+
return {
|
|
1864
|
+
message: p.message,
|
|
1865
|
+
status: (m = p.response) == null ? void 0 : m.status,
|
|
1866
|
+
response: p.response ? l(p.response) : void 0
|
|
1867
|
+
};
|
|
1868
|
+
}, a = async (p, m) => {
|
|
1869
|
+
const h = p.startsWith("/") ? p.substring(1) : p, w = Ln({
|
|
1861
1870
|
baseUrl: o,
|
|
1862
|
-
productCode:
|
|
1863
|
-
apiVersion:
|
|
1864
|
-
endpoint:
|
|
1865
|
-
}),
|
|
1866
|
-
|
|
1867
|
-
|
|
1871
|
+
productCode: r,
|
|
1872
|
+
apiVersion: n,
|
|
1873
|
+
endpoint: h
|
|
1874
|
+
}), T = Dn(
|
|
1875
|
+
m,
|
|
1876
|
+
n,
|
|
1868
1877
|
e.headers,
|
|
1869
1878
|
c,
|
|
1870
1879
|
i
|
|
1871
|
-
),
|
|
1872
|
-
|
|
1873
|
-
|
|
1880
|
+
), S = $n(m, T, w);
|
|
1881
|
+
try {
|
|
1882
|
+
const E = await t.request(S), g = l(E);
|
|
1883
|
+
return e.responseInterceptor ? await e.responseInterceptor.onFulfilled(
|
|
1884
|
+
g
|
|
1885
|
+
) : g;
|
|
1886
|
+
} catch (E) {
|
|
1887
|
+
if (e.responseInterceptor) {
|
|
1888
|
+
const g = f(E);
|
|
1889
|
+
return e.responseInterceptor.onReject(g);
|
|
1890
|
+
}
|
|
1891
|
+
throw E;
|
|
1892
|
+
}
|
|
1893
|
+
}, d = In(i, c);
|
|
1874
1894
|
return {
|
|
1875
|
-
request:
|
|
1876
|
-
...
|
|
1895
|
+
request: a,
|
|
1896
|
+
...d,
|
|
1877
1897
|
axiosClient: t
|
|
1878
1898
|
};
|
|
1879
|
-
},
|
|
1880
|
-
function
|
|
1881
|
-
const t =
|
|
1882
|
-
function r
|
|
1883
|
-
return t.request(`/${
|
|
1899
|
+
}, jn = "cep";
|
|
1900
|
+
function Hn(e) {
|
|
1901
|
+
const t = A(e);
|
|
1902
|
+
function n(r) {
|
|
1903
|
+
return t.request(`/${jn}`, {
|
|
1884
1904
|
method: "POST",
|
|
1885
|
-
data: JSON.stringify(
|
|
1905
|
+
data: JSON.stringify(r)
|
|
1886
1906
|
});
|
|
1887
1907
|
}
|
|
1888
1908
|
return {
|
|
1889
|
-
getAddress:
|
|
1909
|
+
getAddress: n
|
|
1890
1910
|
};
|
|
1891
1911
|
}
|
|
1892
|
-
const
|
|
1893
|
-
const t =
|
|
1912
|
+
const zn = (e) => {
|
|
1913
|
+
const t = A(e);
|
|
1894
1914
|
return {
|
|
1895
1915
|
signUp: async (c) => await t.request("/sign-up", {
|
|
1896
1916
|
method: "POST",
|
|
@@ -1917,8 +1937,8 @@ const Hr = (e) => {
|
|
|
1917
1937
|
data: JSON.stringify(c)
|
|
1918
1938
|
})
|
|
1919
1939
|
};
|
|
1920
|
-
}, xe = "digital",
|
|
1921
|
-
const t =
|
|
1940
|
+
}, xe = "digital", Jn = (e) => {
|
|
1941
|
+
const t = A(e);
|
|
1922
1942
|
return {
|
|
1923
1943
|
getBroker: () => t.request(`/${xe}/getBroker`, {
|
|
1924
1944
|
method: "GET",
|
|
@@ -1932,25 +1952,25 @@ const Hr = (e) => {
|
|
|
1932
1952
|
}
|
|
1933
1953
|
)
|
|
1934
1954
|
};
|
|
1935
|
-
},
|
|
1936
|
-
const t =
|
|
1955
|
+
}, Mn = "data", Vn = (e) => {
|
|
1956
|
+
const t = A(e);
|
|
1937
1957
|
return {
|
|
1938
|
-
postData: async (
|
|
1958
|
+
postData: async (r) => await t.request(`/${Mn}`, {
|
|
1939
1959
|
method: "POST",
|
|
1940
|
-
data: JSON.stringify(
|
|
1960
|
+
data: JSON.stringify(r)
|
|
1941
1961
|
})
|
|
1942
1962
|
};
|
|
1943
|
-
},
|
|
1944
|
-
const t =
|
|
1963
|
+
}, vn = "endorsement", Gn = (e) => {
|
|
1964
|
+
const t = A(e);
|
|
1945
1965
|
return {
|
|
1946
|
-
putEndorsement: (
|
|
1966
|
+
putEndorsement: (r) => t.request(`/${vn}`, {
|
|
1947
1967
|
method: "PUT",
|
|
1948
|
-
data:
|
|
1968
|
+
data: r,
|
|
1949
1969
|
contentType: "multipart/form-data"
|
|
1950
1970
|
})
|
|
1951
1971
|
};
|
|
1952
|
-
}, te = "payment",
|
|
1953
|
-
const t =
|
|
1972
|
+
}, te = "payment", Kn = (e) => {
|
|
1973
|
+
const t = A(e);
|
|
1954
1974
|
return {
|
|
1955
1975
|
postPayment: (o) => t.request(`/${te}`, {
|
|
1956
1976
|
method: "POST",
|
|
@@ -1971,8 +1991,8 @@ const Hr = (e) => {
|
|
|
1971
1991
|
}
|
|
1972
1992
|
)
|
|
1973
1993
|
};
|
|
1974
|
-
}, H = "product/action",
|
|
1975
|
-
const t =
|
|
1994
|
+
}, H = "product/action", Wn = (e) => {
|
|
1995
|
+
const t = A(e);
|
|
1976
1996
|
return {
|
|
1977
1997
|
getCnpjStatus: (i, c, l) => {
|
|
1978
1998
|
const a = new URLSearchParams({
|
|
@@ -2006,8 +2026,8 @@ const Hr = (e) => {
|
|
|
2006
2026
|
}
|
|
2007
2027
|
)
|
|
2008
2028
|
};
|
|
2009
|
-
}, x = "quotation",
|
|
2010
|
-
const t =
|
|
2029
|
+
}, x = "quotation", Qn = (e) => {
|
|
2030
|
+
const t = A(e);
|
|
2011
2031
|
return {
|
|
2012
2032
|
getQuotations: (a) => {
|
|
2013
2033
|
const d = new URLSearchParams({ ...a });
|
|
@@ -2060,17 +2080,17 @@ const Hr = (e) => {
|
|
|
2060
2080
|
}
|
|
2061
2081
|
)
|
|
2062
2082
|
};
|
|
2063
|
-
},
|
|
2064
|
-
const t =
|
|
2083
|
+
}, Xn = "report", Zn = (e) => {
|
|
2084
|
+
const t = A(e);
|
|
2065
2085
|
return {
|
|
2066
|
-
getReportStream: (
|
|
2086
|
+
getReportStream: (r) => {
|
|
2067
2087
|
const s = new URLSearchParams({
|
|
2068
|
-
policyId:
|
|
2069
|
-
documentType:
|
|
2070
|
-
...
|
|
2088
|
+
policyId: r.policyId,
|
|
2089
|
+
documentType: r.documentType ?? "certificate",
|
|
2090
|
+
...r.additionalParams
|
|
2071
2091
|
});
|
|
2072
2092
|
return t.request(
|
|
2073
|
-
`/${
|
|
2093
|
+
`/${Xn}/generate-stream?${s.toString()}`,
|
|
2074
2094
|
{
|
|
2075
2095
|
method: "GET",
|
|
2076
2096
|
data: "",
|
|
@@ -2079,11 +2099,11 @@ const Hr = (e) => {
|
|
|
2079
2099
|
);
|
|
2080
2100
|
}
|
|
2081
2101
|
};
|
|
2082
|
-
},
|
|
2083
|
-
const t =
|
|
2102
|
+
}, Yn = "SubscriberData", er = (e) => {
|
|
2103
|
+
const t = A(e);
|
|
2084
2104
|
return {
|
|
2085
|
-
getSubscriber: (
|
|
2086
|
-
`/${
|
|
2105
|
+
getSubscriber: (r) => t.request(
|
|
2106
|
+
`/${Yn}/get-subscriber-data?cnpj=${r}`,
|
|
2087
2107
|
{
|
|
2088
2108
|
method: "GET",
|
|
2089
2109
|
data: ""
|
|
@@ -2091,12 +2111,12 @@ const Hr = (e) => {
|
|
|
2091
2111
|
)
|
|
2092
2112
|
};
|
|
2093
2113
|
};
|
|
2094
|
-
function
|
|
2095
|
-
const t =
|
|
2114
|
+
function wr(e) {
|
|
2115
|
+
const t = qn(e), n = zn(e), r = Vn(e), s = Qn(e), o = Kn(e), i = Hn(e), c = Jn(e), l = Gn(e), f = Wn(e), a = Zn(e), d = er(e), p = A(e);
|
|
2096
2116
|
return {
|
|
2097
2117
|
auth: t,
|
|
2098
|
-
authAkad:
|
|
2099
|
-
data:
|
|
2118
|
+
authAkad: n,
|
|
2119
|
+
data: r,
|
|
2100
2120
|
quotation: s,
|
|
2101
2121
|
payment: o,
|
|
2102
2122
|
address: i,
|
|
@@ -2105,9 +2125,9 @@ function gn(e) {
|
|
|
2105
2125
|
plugin: f,
|
|
2106
2126
|
report: a,
|
|
2107
2127
|
subscriber: d,
|
|
2108
|
-
base:
|
|
2128
|
+
base: p
|
|
2109
2129
|
};
|
|
2110
2130
|
}
|
|
2111
2131
|
export {
|
|
2112
|
-
|
|
2132
|
+
wr as default
|
|
2113
2133
|
};
|