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