@articles-media/articles-dev-box 1.0.7 → 1.0.9
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/README.md +21 -3
- package/dist/Ad.cjs +1 -1
- package/dist/Ad.js +429 -317
- package/dist/{AdConfirmExitModal-TTHQo9Ou.js → AdConfirmExitModal-CKkMAvBK.js} +3 -3
- package/dist/AdConfirmExitModal-CcSxmXKT.cjs +1 -0
- package/dist/{AdDetailsModal-CvFpYG_9.js → AdDetailsModal-Bp5hZm9N.js} +3 -3
- package/dist/AdDetailsModal-k840vrS2.cjs +1 -0
- package/dist/Button-0ZK0NKiK.cjs +1 -0
- package/dist/Button-_Quon8UV.js +54 -0
- package/dist/GameScoreboard.cjs +1 -1
- package/dist/GameScoreboard.js +93 -3832
- package/dist/GlobalBody-BbM8X_Jk.cjs +33 -0
- package/dist/GlobalBody-Dw17Ik2b.js +123 -0
- package/dist/GlobalBody.cjs +1 -25
- package/dist/GlobalBody.js +5 -43
- package/dist/GlobalHead.cjs +1 -1
- package/dist/GlobalHead.js +3 -3
- package/dist/{Modal-CZ77qLgM.js → Modal-C9oYRgI1.js} +102 -102
- package/dist/Modal-Wmqy9fOm.cjs +2 -0
- package/dist/ReturnToLauncherButton.cjs +1 -1
- package/dist/ReturnToLauncherButton.js +1 -1
- package/dist/StatusModal-BdAmgekT.cjs +1 -0
- package/dist/StatusModal-C757TssZ.js +71 -0
- package/dist/ViewUserModal.cjs +1 -0
- package/dist/ViewUserModal.js +3189 -0
- package/dist/articles-dev-box.css +1 -1
- package/dist/index-BlP2-uOi.cjs +1 -0
- package/dist/{toDate-CDo8dBwb.js → index-DLYx67wi.js} +476 -501
- package/dist/index-Ddv_TnxK.cjs +6 -0
- package/dist/index-YnD2EP-S.js +43 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -9
- package/dist/numberWithCommas-CRgrb58X.cjs +1 -0
- package/dist/numberWithCommas-DnAkiOFL.js +1256 -0
- package/dist/useUserDetails.cjs +1 -0
- package/dist/useUserDetails.js +33 -0
- package/dist/useUserToken.cjs +1 -0
- package/dist/useUserToken.js +22 -0
- package/package.json +18 -3
- package/dist/AdConfirmExitModal-BRpOrF3L.cjs +0 -1
- package/dist/AdDetailsModal-Diavle2E.cjs +0 -1
- package/dist/Button-B5nVYPMZ.js +0 -93
- package/dist/Button-BVYvDTtH.cjs +0 -1
- package/dist/Modal-Cr0uB770.cjs +0 -2
- package/dist/toDate-CzgAa_PT.cjs +0 -6
|
@@ -1,40 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
function no(e) {
|
|
4
|
-
const { href: t, children: n, newPage: r, ...s } = e;
|
|
5
|
-
return /* @__PURE__ */ qn.jsx(
|
|
6
|
-
"a",
|
|
7
|
-
{
|
|
8
|
-
href: t,
|
|
9
|
-
...s,
|
|
10
|
-
...r && { target: "_blank", rel: "noopener noreferrer" },
|
|
11
|
-
children: n
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
function nn(e, t) {
|
|
1
|
+
import Oe, { createContext as kn, useEffect as qn, useLayoutEffect as Hn, useContext as Mn, useMemo as en, useRef as le, useCallback as ze, useDebugValue as Vn } from "react";
|
|
2
|
+
function tn(e, t) {
|
|
16
3
|
return function() {
|
|
17
4
|
return e.apply(t, arguments);
|
|
18
5
|
};
|
|
19
6
|
}
|
|
20
|
-
const { toString:
|
|
21
|
-
const n =
|
|
7
|
+
const { toString: $n } = Object.prototype, { getPrototypeOf: Et } = Object, { iterator: ke, toStringTag: nn } = Symbol, qe = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
+
const n = $n.call(t);
|
|
22
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
23
|
-
})(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => qe(t) === e),
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), He = (e) => (t) => typeof t === e, { isArray: we } = Array, ye = He("undefined");
|
|
24
11
|
function Te(e) {
|
|
25
|
-
return e !== null && !
|
|
12
|
+
return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && k(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
26
13
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
14
|
+
const rn = G("ArrayBuffer");
|
|
15
|
+
function Wn(e) {
|
|
29
16
|
let t;
|
|
30
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && rn(e.buffer), t;
|
|
31
18
|
}
|
|
32
|
-
const
|
|
19
|
+
const zn = He("string"), k = He("function"), sn = He("number"), Ae = (e) => e !== null && typeof e == "object", Jn = (e) => e === !0 || e === !1, Ue = (e) => {
|
|
33
20
|
if (qe(e) !== "object")
|
|
34
21
|
return !1;
|
|
35
|
-
const t =
|
|
36
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
37
|
-
},
|
|
22
|
+
const t = Et(e);
|
|
23
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(nn in e) && !(ke in e);
|
|
24
|
+
}, Kn = (e) => {
|
|
38
25
|
if (!Ae(e) || Te(e))
|
|
39
26
|
return !1;
|
|
40
27
|
try {
|
|
@@ -42,11 +29,11 @@ const Kn = Me("string"), B = Me("function"), on = Me("number"), Ae = (e) => e !=
|
|
|
42
29
|
} catch {
|
|
43
30
|
return !1;
|
|
44
31
|
}
|
|
45
|
-
},
|
|
32
|
+
}, Gn = G("Date"), Xn = G("File"), Yn = G("Blob"), Qn = G("FileList"), Zn = (e) => Ae(e) && k(e.pipe), er = (e) => {
|
|
46
33
|
let t;
|
|
47
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
48
|
-
t === "object" &&
|
|
49
|
-
},
|
|
34
|
+
return e && (typeof FormData == "function" && e instanceof FormData || k(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
|
|
35
|
+
t === "object" && k(e.toString) && e.toString() === "[object FormData]"));
|
|
36
|
+
}, tr = G("URLSearchParams"), [nr, rr, sr, or] = ["ReadableStream", "Request", "Response", "Headers"].map(G), ir = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
50
37
|
function _e(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
51
38
|
if (e === null || typeof e > "u")
|
|
52
39
|
return;
|
|
@@ -63,7 +50,7 @@ function _e(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
63
50
|
a = i[r], t.call(null, e[a], a, e);
|
|
64
51
|
}
|
|
65
52
|
}
|
|
66
|
-
function
|
|
53
|
+
function on(e, t) {
|
|
67
54
|
if (Te(e))
|
|
68
55
|
return null;
|
|
69
56
|
t = t.toLowerCase();
|
|
@@ -74,75 +61,75 @@ function an(e, t) {
|
|
|
74
61
|
return s;
|
|
75
62
|
return null;
|
|
76
63
|
}
|
|
77
|
-
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
64
|
+
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, an = (e) => !ye(e) && e !== fe;
|
|
78
65
|
function st() {
|
|
79
|
-
const { caseless: e, skipUndefined: t } =
|
|
80
|
-
const o = e &&
|
|
81
|
-
Ue(n[o]) && Ue(s) ? n[o] = st(n[o], s) : Ue(s) ? n[o] = st({}, s) : we(s) ? n[o] = s.slice() : (!t || !
|
|
66
|
+
const { caseless: e, skipUndefined: t } = an(this) && this || {}, n = {}, r = (s, i) => {
|
|
67
|
+
const o = e && on(n, i) || i;
|
|
68
|
+
Ue(n[o]) && Ue(s) ? n[o] = st(n[o], s) : Ue(s) ? n[o] = st({}, s) : we(s) ? n[o] = s.slice() : (!t || !ye(s)) && (n[o] = s);
|
|
82
69
|
};
|
|
83
70
|
for (let s = 0, i = arguments.length; s < i; s++)
|
|
84
71
|
arguments[s] && _e(arguments[s], r);
|
|
85
72
|
return n;
|
|
86
73
|
}
|
|
87
|
-
const
|
|
88
|
-
n &&
|
|
89
|
-
}, { allOwnKeys: r }), e),
|
|
74
|
+
const ar = (e, t, n, { allOwnKeys: r } = {}) => (_e(t, (s, i) => {
|
|
75
|
+
n && k(s) ? e[i] = tn(s, n) : e[i] = s;
|
|
76
|
+
}, { allOwnKeys: r }), e), cr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ur = (e, t, n, r) => {
|
|
90
77
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
91
78
|
value: t.prototype
|
|
92
79
|
}), n && Object.assign(e.prototype, n);
|
|
93
|
-
},
|
|
80
|
+
}, lr = (e, t, n, r) => {
|
|
94
81
|
let s, i, o;
|
|
95
82
|
const a = {};
|
|
96
83
|
if (t = t || {}, e == null) return t;
|
|
97
84
|
do {
|
|
98
85
|
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
99
86
|
o = s[i], (!r || r(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
|
|
100
|
-
e = n !== !1 &&
|
|
87
|
+
e = n !== !1 && Et(e);
|
|
101
88
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
102
89
|
return t;
|
|
103
|
-
},
|
|
90
|
+
}, fr = (e, t, n) => {
|
|
104
91
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
105
92
|
const r = e.indexOf(t, n);
|
|
106
93
|
return r !== -1 && r === n;
|
|
107
|
-
},
|
|
94
|
+
}, dr = (e) => {
|
|
108
95
|
if (!e) return null;
|
|
109
96
|
if (we(e)) return e;
|
|
110
97
|
let t = e.length;
|
|
111
|
-
if (!
|
|
98
|
+
if (!sn(t)) return null;
|
|
112
99
|
const n = new Array(t);
|
|
113
100
|
for (; t-- > 0; )
|
|
114
101
|
n[t] = e[t];
|
|
115
102
|
return n;
|
|
116
|
-
},
|
|
117
|
-
const r = (e && e[
|
|
103
|
+
}, pr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Et(Uint8Array)), hr = (e, t) => {
|
|
104
|
+
const r = (e && e[ke]).call(e);
|
|
118
105
|
let s;
|
|
119
106
|
for (; (s = r.next()) && !s.done; ) {
|
|
120
107
|
const i = s.value;
|
|
121
108
|
t.call(e, i[0], i[1]);
|
|
122
109
|
}
|
|
123
|
-
},
|
|
110
|
+
}, mr = (e, t) => {
|
|
124
111
|
let n;
|
|
125
112
|
const r = [];
|
|
126
113
|
for (; (n = e.exec(t)) !== null; )
|
|
127
114
|
r.push(n);
|
|
128
115
|
return r;
|
|
129
|
-
},
|
|
116
|
+
}, Er = G("HTMLFormElement"), yr = (e) => e.toLowerCase().replace(
|
|
130
117
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
131
118
|
function(n, r, s) {
|
|
132
119
|
return r.toUpperCase() + s;
|
|
133
120
|
}
|
|
134
|
-
), xt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
121
|
+
), xt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wr = G("RegExp"), cn = (e, t) => {
|
|
135
122
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
136
123
|
_e(n, (s, i) => {
|
|
137
124
|
let o;
|
|
138
125
|
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
139
126
|
}), Object.defineProperties(e, r);
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
if (
|
|
127
|
+
}, Sr = (e) => {
|
|
128
|
+
cn(e, (t, n) => {
|
|
129
|
+
if (k(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
143
130
|
return !1;
|
|
144
131
|
const r = e[n];
|
|
145
|
-
if (
|
|
132
|
+
if (k(r)) {
|
|
146
133
|
if (t.enumerable = !1, "writable" in t) {
|
|
147
134
|
t.writable = !1;
|
|
148
135
|
return;
|
|
@@ -152,19 +139,19 @@ const ur = (e, t, n, { allOwnKeys: r } = {}) => (_e(t, (s, i) => {
|
|
|
152
139
|
});
|
|
153
140
|
}
|
|
154
141
|
});
|
|
155
|
-
},
|
|
142
|
+
}, gr = (e, t) => {
|
|
156
143
|
const n = {}, r = (s) => {
|
|
157
144
|
s.forEach((i) => {
|
|
158
145
|
n[i] = !0;
|
|
159
146
|
});
|
|
160
147
|
};
|
|
161
148
|
return we(e) ? r(e) : r(String(e).split(t)), n;
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
function
|
|
165
|
-
return !!(e &&
|
|
149
|
+
}, br = () => {
|
|
150
|
+
}, Rr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
151
|
+
function Or(e) {
|
|
152
|
+
return !!(e && k(e.append) && e[nn] === "FormData" && e[ke]);
|
|
166
153
|
}
|
|
167
|
-
const
|
|
154
|
+
const Tr = (e) => {
|
|
168
155
|
const t = new Array(10), n = (r, s) => {
|
|
169
156
|
if (Ae(r)) {
|
|
170
157
|
if (t.indexOf(r) >= 0)
|
|
@@ -176,79 +163,79 @@ const _r = (e) => {
|
|
|
176
163
|
const i = we(r) ? [] : {};
|
|
177
164
|
return _e(r, (o, a) => {
|
|
178
165
|
const d = n(o, s + 1);
|
|
179
|
-
!
|
|
166
|
+
!ye(d) && (i[a] = d);
|
|
180
167
|
}), t[s] = void 0, i;
|
|
181
168
|
}
|
|
182
169
|
}
|
|
183
170
|
return r;
|
|
184
171
|
};
|
|
185
172
|
return n(e, 0);
|
|
186
|
-
},
|
|
173
|
+
}, Ar = G("AsyncFunction"), _r = (e) => e && (Ae(e) || k(e)) && k(e.then) && k(e.catch), un = ((e, t) => e ? setImmediate : t ? ((n, r) => (fe.addEventListener("message", ({ source: s, data: i }) => {
|
|
187
174
|
s === fe && i === n && r.length && r.shift()();
|
|
188
175
|
}, !1), (s) => {
|
|
189
176
|
r.push(s), fe.postMessage(n, "*");
|
|
190
177
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
191
178
|
typeof setImmediate == "function",
|
|
192
|
-
|
|
193
|
-
),
|
|
179
|
+
k(fe.postMessage)
|
|
180
|
+
), Cr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || un, xr = (e) => e != null && k(e[ke]), c = {
|
|
194
181
|
isArray: we,
|
|
195
|
-
isArrayBuffer:
|
|
182
|
+
isArrayBuffer: rn,
|
|
196
183
|
isBuffer: Te,
|
|
197
|
-
isFormData:
|
|
198
|
-
isArrayBufferView:
|
|
199
|
-
isString:
|
|
200
|
-
isNumber:
|
|
201
|
-
isBoolean:
|
|
184
|
+
isFormData: er,
|
|
185
|
+
isArrayBufferView: Wn,
|
|
186
|
+
isString: zn,
|
|
187
|
+
isNumber: sn,
|
|
188
|
+
isBoolean: Jn,
|
|
202
189
|
isObject: Ae,
|
|
203
190
|
isPlainObject: Ue,
|
|
204
|
-
isEmptyObject:
|
|
205
|
-
isReadableStream:
|
|
206
|
-
isRequest:
|
|
207
|
-
isResponse:
|
|
208
|
-
isHeaders:
|
|
209
|
-
isUndefined:
|
|
210
|
-
isDate:
|
|
211
|
-
isFile:
|
|
212
|
-
isBlob:
|
|
213
|
-
isRegExp:
|
|
214
|
-
isFunction:
|
|
215
|
-
isStream:
|
|
216
|
-
isURLSearchParams:
|
|
217
|
-
isTypedArray:
|
|
218
|
-
isFileList:
|
|
191
|
+
isEmptyObject: Kn,
|
|
192
|
+
isReadableStream: nr,
|
|
193
|
+
isRequest: rr,
|
|
194
|
+
isResponse: sr,
|
|
195
|
+
isHeaders: or,
|
|
196
|
+
isUndefined: ye,
|
|
197
|
+
isDate: Gn,
|
|
198
|
+
isFile: Xn,
|
|
199
|
+
isBlob: Yn,
|
|
200
|
+
isRegExp: wr,
|
|
201
|
+
isFunction: k,
|
|
202
|
+
isStream: Zn,
|
|
203
|
+
isURLSearchParams: tr,
|
|
204
|
+
isTypedArray: pr,
|
|
205
|
+
isFileList: Qn,
|
|
219
206
|
forEach: _e,
|
|
220
207
|
merge: st,
|
|
221
|
-
extend:
|
|
222
|
-
trim:
|
|
223
|
-
stripBOM:
|
|
224
|
-
inherits:
|
|
225
|
-
toFlatObject:
|
|
208
|
+
extend: ar,
|
|
209
|
+
trim: ir,
|
|
210
|
+
stripBOM: cr,
|
|
211
|
+
inherits: ur,
|
|
212
|
+
toFlatObject: lr,
|
|
226
213
|
kindOf: qe,
|
|
227
214
|
kindOfTest: G,
|
|
228
|
-
endsWith:
|
|
229
|
-
toArray:
|
|
230
|
-
forEachEntry:
|
|
231
|
-
matchAll:
|
|
232
|
-
isHTMLForm:
|
|
215
|
+
endsWith: fr,
|
|
216
|
+
toArray: dr,
|
|
217
|
+
forEachEntry: hr,
|
|
218
|
+
matchAll: mr,
|
|
219
|
+
isHTMLForm: Er,
|
|
233
220
|
hasOwnProperty: xt,
|
|
234
221
|
hasOwnProp: xt,
|
|
235
222
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
236
|
-
reduceDescriptors:
|
|
237
|
-
freezeMethods:
|
|
238
|
-
toObjectSet:
|
|
239
|
-
toCamelCase:
|
|
240
|
-
noop:
|
|
241
|
-
toFiniteNumber:
|
|
242
|
-
findKey:
|
|
223
|
+
reduceDescriptors: cn,
|
|
224
|
+
freezeMethods: Sr,
|
|
225
|
+
toObjectSet: gr,
|
|
226
|
+
toCamelCase: yr,
|
|
227
|
+
noop: br,
|
|
228
|
+
toFiniteNumber: Rr,
|
|
229
|
+
findKey: on,
|
|
243
230
|
global: fe,
|
|
244
|
-
isContextDefined:
|
|
245
|
-
isSpecCompliantForm:
|
|
246
|
-
toJSONObject:
|
|
247
|
-
isAsyncFn:
|
|
248
|
-
isThenable:
|
|
249
|
-
setImmediate:
|
|
250
|
-
asap:
|
|
251
|
-
isIterable:
|
|
231
|
+
isContextDefined: an,
|
|
232
|
+
isSpecCompliantForm: Or,
|
|
233
|
+
toJSONObject: Tr,
|
|
234
|
+
isAsyncFn: Ar,
|
|
235
|
+
isThenable: _r,
|
|
236
|
+
setImmediate: un,
|
|
237
|
+
asap: Cr,
|
|
238
|
+
isIterable: xr
|
|
252
239
|
};
|
|
253
240
|
function S(e, t, n, r, s) {
|
|
254
241
|
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, this.status = s.status ? s.status : null);
|
|
@@ -274,7 +261,7 @@ c.inherits(S, Error, {
|
|
|
274
261
|
};
|
|
275
262
|
}
|
|
276
263
|
});
|
|
277
|
-
const
|
|
264
|
+
const ln = S.prototype, fn = {};
|
|
278
265
|
[
|
|
279
266
|
"ERR_BAD_OPTION_VALUE",
|
|
280
267
|
"ERR_BAD_OPTION",
|
|
@@ -290,37 +277,37 @@ const fn = S.prototype, dn = {};
|
|
|
290
277
|
"ERR_INVALID_URL"
|
|
291
278
|
// eslint-disable-next-line func-names
|
|
292
279
|
].forEach((e) => {
|
|
293
|
-
|
|
280
|
+
fn[e] = { value: e };
|
|
294
281
|
});
|
|
295
|
-
Object.defineProperties(S,
|
|
296
|
-
Object.defineProperty(
|
|
282
|
+
Object.defineProperties(S, fn);
|
|
283
|
+
Object.defineProperty(ln, "isAxiosError", { value: !0 });
|
|
297
284
|
S.from = (e, t, n, r, s, i) => {
|
|
298
|
-
const o = Object.create(
|
|
285
|
+
const o = Object.create(ln);
|
|
299
286
|
c.toFlatObject(e, o, function(l) {
|
|
300
287
|
return l !== Error.prototype;
|
|
301
288
|
}, (f) => f !== "isAxiosError");
|
|
302
289
|
const a = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
|
|
303
290
|
return S.call(o, a, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
|
|
304
291
|
};
|
|
305
|
-
const
|
|
292
|
+
const Dr = null;
|
|
306
293
|
function ot(e) {
|
|
307
294
|
return c.isPlainObject(e) || c.isArray(e);
|
|
308
295
|
}
|
|
309
|
-
function
|
|
296
|
+
function dn(e) {
|
|
310
297
|
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
311
298
|
}
|
|
312
299
|
function Dt(e, t, n) {
|
|
313
300
|
return e ? e.concat(t).map(function(s, i) {
|
|
314
|
-
return s =
|
|
301
|
+
return s = dn(s), !n && i ? "[" + s + "]" : s;
|
|
315
302
|
}).join(n ? "." : "") : t;
|
|
316
303
|
}
|
|
317
|
-
function
|
|
304
|
+
function Lr(e) {
|
|
318
305
|
return c.isArray(e) && !e.some(ot);
|
|
319
306
|
}
|
|
320
|
-
const
|
|
307
|
+
const Nr = c.toFlatObject(c, {}, null, function(t) {
|
|
321
308
|
return /^is[A-Z]/.test(t);
|
|
322
309
|
});
|
|
323
|
-
function
|
|
310
|
+
function Me(e, t, n) {
|
|
324
311
|
if (!c.isObject(e))
|
|
325
312
|
throw new TypeError("target must be an object");
|
|
326
313
|
t = t || new FormData(), n = c.toFlatObject(n, {
|
|
@@ -344,12 +331,12 @@ function He(e, t, n) {
|
|
|
344
331
|
return c.isArrayBuffer(u) || c.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
345
332
|
}
|
|
346
333
|
function l(u, m, h) {
|
|
347
|
-
let
|
|
334
|
+
let g = u;
|
|
348
335
|
if (u && !h && typeof u == "object") {
|
|
349
336
|
if (c.endsWith(m, "{}"))
|
|
350
337
|
m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
|
|
351
|
-
else if (c.isArray(u) &&
|
|
352
|
-
return m =
|
|
338
|
+
else if (c.isArray(u) && Lr(u) || (c.isFileList(u) || c.endsWith(m, "[]")) && (g = c.toArray(u)))
|
|
339
|
+
return m = dn(m), g.forEach(function(A, x) {
|
|
353
340
|
!(c.isUndefined(A) || A === null) && t.append(
|
|
354
341
|
// eslint-disable-next-line no-nested-ternary
|
|
355
342
|
o === !0 ? Dt([m], x, i) : o === null ? m : m + "[]",
|
|
@@ -359,29 +346,29 @@ function He(e, t, n) {
|
|
|
359
346
|
}
|
|
360
347
|
return ot(u) ? !0 : (t.append(Dt(h, m, i), f(u)), !1);
|
|
361
348
|
}
|
|
362
|
-
const p = [],
|
|
349
|
+
const p = [], E = Object.assign(Nr, {
|
|
363
350
|
defaultVisitor: l,
|
|
364
351
|
convertValue: f,
|
|
365
352
|
isVisitable: ot
|
|
366
353
|
});
|
|
367
|
-
function
|
|
354
|
+
function y(u, m) {
|
|
368
355
|
if (!c.isUndefined(u)) {
|
|
369
356
|
if (p.indexOf(u) !== -1)
|
|
370
357
|
throw Error("Circular reference detected in " + m.join("."));
|
|
371
|
-
p.push(u), c.forEach(u, function(
|
|
372
|
-
(!(c.isUndefined(
|
|
358
|
+
p.push(u), c.forEach(u, function(g, w) {
|
|
359
|
+
(!(c.isUndefined(g) || g === null) && s.call(
|
|
373
360
|
t,
|
|
374
|
-
|
|
361
|
+
g,
|
|
375
362
|
c.isString(w) ? w.trim() : w,
|
|
376
363
|
m,
|
|
377
|
-
|
|
378
|
-
)) === !0 &&
|
|
364
|
+
E
|
|
365
|
+
)) === !0 && y(g, m ? m.concat(w) : [w]);
|
|
379
366
|
}), p.pop();
|
|
380
367
|
}
|
|
381
368
|
}
|
|
382
369
|
if (!c.isObject(e))
|
|
383
370
|
throw new TypeError("data must be an object");
|
|
384
|
-
return
|
|
371
|
+
return y(e), t;
|
|
385
372
|
}
|
|
386
373
|
function Lt(e) {
|
|
387
374
|
const t = {
|
|
@@ -397,14 +384,14 @@ function Lt(e) {
|
|
|
397
384
|
return t[r];
|
|
398
385
|
});
|
|
399
386
|
}
|
|
400
|
-
function
|
|
401
|
-
this._pairs = [], e &&
|
|
387
|
+
function yt(e, t) {
|
|
388
|
+
this._pairs = [], e && Me(e, this, t);
|
|
402
389
|
}
|
|
403
|
-
const
|
|
404
|
-
|
|
390
|
+
const pn = yt.prototype;
|
|
391
|
+
pn.append = function(t, n) {
|
|
405
392
|
this._pairs.push([t, n]);
|
|
406
393
|
};
|
|
407
|
-
|
|
394
|
+
pn.toString = function(t) {
|
|
408
395
|
const n = t ? function(r) {
|
|
409
396
|
return t.call(this, r, Lt);
|
|
410
397
|
} : Lt;
|
|
@@ -412,19 +399,19 @@ hn.toString = function(t) {
|
|
|
412
399
|
return n(s[0]) + "=" + n(s[1]);
|
|
413
400
|
}, "").join("&");
|
|
414
401
|
};
|
|
415
|
-
function
|
|
402
|
+
function Fr(e) {
|
|
416
403
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
417
404
|
}
|
|
418
|
-
function
|
|
405
|
+
function hn(e, t, n) {
|
|
419
406
|
if (!t)
|
|
420
407
|
return e;
|
|
421
|
-
const r = n && n.encode ||
|
|
408
|
+
const r = n && n.encode || Fr;
|
|
422
409
|
c.isFunction(n) && (n = {
|
|
423
410
|
serialize: n
|
|
424
411
|
});
|
|
425
412
|
const s = n && n.serialize;
|
|
426
413
|
let i;
|
|
427
|
-
if (s ? i = s(t, n) : i = c.isURLSearchParams(t) ? t.toString() : new
|
|
414
|
+
if (s ? i = s(t, n) : i = c.isURLSearchParams(t) ? t.toString() : new yt(t, n).toString(r), i) {
|
|
428
415
|
const o = e.indexOf("#");
|
|
429
416
|
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
430
417
|
}
|
|
@@ -484,42 +471,42 @@ class Nt {
|
|
|
484
471
|
});
|
|
485
472
|
}
|
|
486
473
|
}
|
|
487
|
-
const
|
|
474
|
+
const mn = {
|
|
488
475
|
silentJSONParsing: !0,
|
|
489
476
|
forcedJSONParsing: !0,
|
|
490
477
|
clarifyTimeoutError: !1
|
|
491
|
-
},
|
|
478
|
+
}, Pr = typeof URLSearchParams < "u" ? URLSearchParams : yt, vr = typeof FormData < "u" ? FormData : null, Ur = typeof Blob < "u" ? Blob : null, Ir = {
|
|
492
479
|
isBrowser: !0,
|
|
493
480
|
classes: {
|
|
494
|
-
URLSearchParams:
|
|
495
|
-
FormData:
|
|
496
|
-
Blob:
|
|
481
|
+
URLSearchParams: Pr,
|
|
482
|
+
FormData: vr,
|
|
483
|
+
Blob: Ur
|
|
497
484
|
},
|
|
498
485
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
499
|
-
}, wt = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, Br = wt && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0),
|
|
500
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
486
|
+
}, wt = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, Br = wt && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), jr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", kr = wt && window.location.href || "http://localhost", qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
501
488
|
__proto__: null,
|
|
502
489
|
hasBrowserEnv: wt,
|
|
503
490
|
hasStandardBrowserEnv: Br,
|
|
504
|
-
hasStandardBrowserWebWorkerEnv:
|
|
491
|
+
hasStandardBrowserWebWorkerEnv: jr,
|
|
505
492
|
navigator: it,
|
|
506
|
-
origin:
|
|
493
|
+
origin: kr
|
|
507
494
|
}, Symbol.toStringTag, { value: "Module" })), I = {
|
|
508
|
-
...
|
|
509
|
-
...
|
|
495
|
+
...qr,
|
|
496
|
+
...Ir
|
|
510
497
|
};
|
|
511
|
-
function
|
|
512
|
-
return
|
|
498
|
+
function Hr(e, t) {
|
|
499
|
+
return Me(e, new I.classes.URLSearchParams(), {
|
|
513
500
|
visitor: function(n, r, s, i) {
|
|
514
501
|
return I.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
515
502
|
},
|
|
516
503
|
...t
|
|
517
504
|
});
|
|
518
505
|
}
|
|
519
|
-
function
|
|
506
|
+
function Mr(e) {
|
|
520
507
|
return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
521
508
|
}
|
|
522
|
-
function
|
|
509
|
+
function Vr(e) {
|
|
523
510
|
const t = {}, n = Object.keys(e);
|
|
524
511
|
let r;
|
|
525
512
|
const s = n.length;
|
|
@@ -533,17 +520,17 @@ function En(e) {
|
|
|
533
520
|
let o = n[i++];
|
|
534
521
|
if (o === "__proto__") return !0;
|
|
535
522
|
const a = Number.isFinite(+o), d = i >= n.length;
|
|
536
|
-
return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] =
|
|
523
|
+
return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] = Vr(s[o])), !a);
|
|
537
524
|
}
|
|
538
525
|
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
539
526
|
const n = {};
|
|
540
527
|
return c.forEachEntry(e, (r, s) => {
|
|
541
|
-
t(
|
|
528
|
+
t(Mr(r), s, n, 0);
|
|
542
529
|
}), n;
|
|
543
530
|
}
|
|
544
531
|
return null;
|
|
545
532
|
}
|
|
546
|
-
function
|
|
533
|
+
function $r(e, t, n) {
|
|
547
534
|
if (c.isString(e))
|
|
548
535
|
try {
|
|
549
536
|
return (t || JSON.parse)(e), c.trim(e);
|
|
@@ -554,7 +541,7 @@ function zr(e, t, n) {
|
|
|
554
541
|
return (n || JSON.stringify)(e);
|
|
555
542
|
}
|
|
556
543
|
const Ce = {
|
|
557
|
-
transitional:
|
|
544
|
+
transitional: mn,
|
|
558
545
|
adapter: ["xhr", "http", "fetch"],
|
|
559
546
|
transformRequest: [function(t, n) {
|
|
560
547
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = c.isObject(t);
|
|
@@ -569,17 +556,17 @@ const Ce = {
|
|
|
569
556
|
let a;
|
|
570
557
|
if (i) {
|
|
571
558
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
572
|
-
return
|
|
559
|
+
return Hr(t, this.formSerializer).toString();
|
|
573
560
|
if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
574
561
|
const d = this.env && this.env.FormData;
|
|
575
|
-
return
|
|
562
|
+
return Me(
|
|
576
563
|
a ? { "files[]": t } : t,
|
|
577
564
|
d && new d(),
|
|
578
565
|
this.formSerializer
|
|
579
566
|
);
|
|
580
567
|
}
|
|
581
568
|
}
|
|
582
|
-
return i || s ? (n.setContentType("application/json", !1),
|
|
569
|
+
return i || s ? (n.setContentType("application/json", !1), $r(t)) : t;
|
|
583
570
|
}],
|
|
584
571
|
transformResponse: [function(t) {
|
|
585
572
|
const n = this.transitional || Ce.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -622,7 +609,7 @@ const Ce = {
|
|
|
622
609
|
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
623
610
|
Ce.headers[e] = {};
|
|
624
611
|
});
|
|
625
|
-
const
|
|
612
|
+
const Wr = c.toObjectSet([
|
|
626
613
|
"age",
|
|
627
614
|
"authorization",
|
|
628
615
|
"content-length",
|
|
@@ -640,12 +627,12 @@ const Jr = c.toObjectSet([
|
|
|
640
627
|
"referer",
|
|
641
628
|
"retry-after",
|
|
642
629
|
"user-agent"
|
|
643
|
-
]),
|
|
630
|
+
]), zr = (e) => {
|
|
644
631
|
const t = {};
|
|
645
632
|
let n, r, s;
|
|
646
633
|
return e && e.split(`
|
|
647
634
|
`).forEach(function(o) {
|
|
648
|
-
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] &&
|
|
635
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Wr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
649
636
|
}), t;
|
|
650
637
|
}, Ft = /* @__PURE__ */ Symbol("internals");
|
|
651
638
|
function Re(e) {
|
|
@@ -654,14 +641,14 @@ function Re(e) {
|
|
|
654
641
|
function Ie(e) {
|
|
655
642
|
return e === !1 || e == null ? e : c.isArray(e) ? e.map(Ie) : String(e);
|
|
656
643
|
}
|
|
657
|
-
function
|
|
644
|
+
function Jr(e) {
|
|
658
645
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
659
646
|
let r;
|
|
660
647
|
for (; r = n.exec(e); )
|
|
661
648
|
t[r[1]] = r[2];
|
|
662
649
|
return t;
|
|
663
650
|
}
|
|
664
|
-
const
|
|
651
|
+
const Kr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
665
652
|
function Je(e, t, n, r, s) {
|
|
666
653
|
if (c.isFunction(r))
|
|
667
654
|
return r.call(this, t, n);
|
|
@@ -672,10 +659,10 @@ function Je(e, t, n, r, s) {
|
|
|
672
659
|
return r.test(t);
|
|
673
660
|
}
|
|
674
661
|
}
|
|
675
|
-
function
|
|
662
|
+
function Gr(e) {
|
|
676
663
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
677
664
|
}
|
|
678
|
-
function
|
|
665
|
+
function Xr(e, t) {
|
|
679
666
|
const n = c.toCamelCase(" " + t);
|
|
680
667
|
["get", "set", "has"].forEach((r) => {
|
|
681
668
|
Object.defineProperty(e, r + n, {
|
|
@@ -702,8 +689,8 @@ let q = class {
|
|
|
702
689
|
const o = (a, d) => c.forEach(a, (f, l) => i(f, l, d));
|
|
703
690
|
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
704
691
|
o(t, n);
|
|
705
|
-
else if (c.isString(t) && (t = t.trim()) && !
|
|
706
|
-
o(
|
|
692
|
+
else if (c.isString(t) && (t = t.trim()) && !Kr(t))
|
|
693
|
+
o(zr(t), n);
|
|
707
694
|
else if (c.isObject(t) && c.isIterable(t)) {
|
|
708
695
|
let a = {}, d, f;
|
|
709
696
|
for (const l of t) {
|
|
@@ -724,7 +711,7 @@ let q = class {
|
|
|
724
711
|
if (!n)
|
|
725
712
|
return s;
|
|
726
713
|
if (n === !0)
|
|
727
|
-
return
|
|
714
|
+
return Jr(s);
|
|
728
715
|
if (c.isFunction(n))
|
|
729
716
|
return n.call(this, s, r);
|
|
730
717
|
if (c.isRegExp(n))
|
|
@@ -768,7 +755,7 @@ let q = class {
|
|
|
768
755
|
n[o] = Ie(s), delete n[i];
|
|
769
756
|
return;
|
|
770
757
|
}
|
|
771
|
-
const a = t ?
|
|
758
|
+
const a = t ? Gr(i) : String(i).trim();
|
|
772
759
|
a !== i && delete n[i], n[a] = Ie(s), r[a] = !0;
|
|
773
760
|
}), this;
|
|
774
761
|
}
|
|
@@ -807,7 +794,7 @@ let q = class {
|
|
|
807
794
|
}).accessors, s = this.prototype;
|
|
808
795
|
function i(o) {
|
|
809
796
|
const a = Re(o);
|
|
810
|
-
r[a] || (
|
|
797
|
+
r[a] || (Xr(s, o), r[a] = !0);
|
|
811
798
|
}
|
|
812
799
|
return c.isArray(t) ? t.forEach(i) : i(t), this;
|
|
813
800
|
}
|
|
@@ -830,7 +817,7 @@ function Ke(e, t) {
|
|
|
830
817
|
i = a.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
831
818
|
}), s.normalize(), i;
|
|
832
819
|
}
|
|
833
|
-
function
|
|
820
|
+
function yn(e) {
|
|
834
821
|
return !!(e && e.__CANCEL__);
|
|
835
822
|
}
|
|
836
823
|
function Se(e, t, n) {
|
|
@@ -839,7 +826,7 @@ function Se(e, t, n) {
|
|
|
839
826
|
c.inherits(Se, S, {
|
|
840
827
|
__CANCEL__: !0
|
|
841
828
|
});
|
|
842
|
-
function
|
|
829
|
+
function wn(e, t, n) {
|
|
843
830
|
const r = n.config.validateStatus;
|
|
844
831
|
!n.status || !r || r(n.status) ? e(n) : t(new S(
|
|
845
832
|
"Request failed with status code " + n.status,
|
|
@@ -849,27 +836,27 @@ function Sn(e, t, n) {
|
|
|
849
836
|
n
|
|
850
837
|
));
|
|
851
838
|
}
|
|
852
|
-
function
|
|
839
|
+
function Yr(e) {
|
|
853
840
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
854
841
|
return t && t[1] || "";
|
|
855
842
|
}
|
|
856
|
-
function
|
|
843
|
+
function Qr(e, t) {
|
|
857
844
|
e = e || 10;
|
|
858
845
|
const n = new Array(e), r = new Array(e);
|
|
859
846
|
let s = 0, i = 0, o;
|
|
860
847
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
861
848
|
const f = Date.now(), l = r[i];
|
|
862
849
|
o || (o = f), n[s] = d, r[s] = f;
|
|
863
|
-
let p = i,
|
|
850
|
+
let p = i, E = 0;
|
|
864
851
|
for (; p !== s; )
|
|
865
|
-
|
|
852
|
+
E += n[p++], p = p % e;
|
|
866
853
|
if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
|
|
867
854
|
return;
|
|
868
|
-
const
|
|
869
|
-
return
|
|
855
|
+
const y = l && f - l;
|
|
856
|
+
return y ? Math.round(E * 1e3 / y) : void 0;
|
|
870
857
|
};
|
|
871
858
|
}
|
|
872
|
-
function
|
|
859
|
+
function Zr(e, t) {
|
|
873
860
|
let n = 0, r = 1e3 / t, s, i;
|
|
874
861
|
const o = (f, l = Date.now()) => {
|
|
875
862
|
n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
|
|
@@ -881,10 +868,10 @@ function ts(e, t) {
|
|
|
881
868
|
}, r - p)));
|
|
882
869
|
}, () => s && o(s)];
|
|
883
870
|
}
|
|
884
|
-
const
|
|
871
|
+
const je = (e, t, n = 3) => {
|
|
885
872
|
let r = 0;
|
|
886
|
-
const s =
|
|
887
|
-
return
|
|
873
|
+
const s = Qr(50, 250);
|
|
874
|
+
return Zr((i) => {
|
|
888
875
|
const o = i.loaded, a = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= a;
|
|
889
876
|
r = o;
|
|
890
877
|
const p = {
|
|
@@ -907,10 +894,10 @@ const ke = (e, t, n = 3) => {
|
|
|
907
894
|
total: e,
|
|
908
895
|
loaded: r
|
|
909
896
|
}), t[1]];
|
|
910
|
-
}, vt = (e) => (...t) => c.asap(() => e(...t)),
|
|
897
|
+
}, vt = (e) => (...t) => c.asap(() => e(...t)), es = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, I.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
911
898
|
new URL(I.origin),
|
|
912
899
|
I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
|
|
913
|
-
) : () => !0,
|
|
900
|
+
) : () => !0, ts = I.hasStandardBrowserEnv ? (
|
|
914
901
|
// Standard browser envs support document.cookie
|
|
915
902
|
{
|
|
916
903
|
write(e, t, n, r, s, i, o) {
|
|
@@ -939,28 +926,28 @@ const ke = (e, t, n = 3) => {
|
|
|
939
926
|
}
|
|
940
927
|
}
|
|
941
928
|
);
|
|
942
|
-
function
|
|
929
|
+
function ns(e) {
|
|
943
930
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
944
931
|
}
|
|
945
|
-
function
|
|
932
|
+
function rs(e, t) {
|
|
946
933
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
947
934
|
}
|
|
948
|
-
function
|
|
949
|
-
let r = !
|
|
950
|
-
return e && (r || n == !1) ?
|
|
935
|
+
function Sn(e, t, n) {
|
|
936
|
+
let r = !ns(t);
|
|
937
|
+
return e && (r || n == !1) ? rs(e, t) : t;
|
|
951
938
|
}
|
|
952
939
|
const Ut = (e) => e instanceof q ? { ...e } : e;
|
|
953
940
|
function pe(e, t) {
|
|
954
941
|
t = t || {};
|
|
955
942
|
const n = {};
|
|
956
|
-
function r(f, l, p,
|
|
957
|
-
return c.isPlainObject(f) && c.isPlainObject(l) ? c.merge.call({ caseless:
|
|
943
|
+
function r(f, l, p, E) {
|
|
944
|
+
return c.isPlainObject(f) && c.isPlainObject(l) ? c.merge.call({ caseless: E }, f, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
|
|
958
945
|
}
|
|
959
|
-
function s(f, l, p,
|
|
946
|
+
function s(f, l, p, E) {
|
|
960
947
|
if (c.isUndefined(l)) {
|
|
961
948
|
if (!c.isUndefined(f))
|
|
962
|
-
return r(void 0, f, p,
|
|
963
|
-
} else return r(f, l, p,
|
|
949
|
+
return r(void 0, f, p, E);
|
|
950
|
+
} else return r(f, l, p, E);
|
|
964
951
|
}
|
|
965
952
|
function i(f, l) {
|
|
966
953
|
if (!c.isUndefined(l))
|
|
@@ -1010,14 +997,14 @@ function pe(e, t) {
|
|
|
1010
997
|
headers: (f, l, p) => s(Ut(f), Ut(l), p, !0)
|
|
1011
998
|
};
|
|
1012
999
|
return c.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1013
|
-
const p = d[l] || s,
|
|
1014
|
-
c.isUndefined(
|
|
1000
|
+
const p = d[l] || s, E = p(e[l], t[l], l);
|
|
1001
|
+
c.isUndefined(E) && p !== a || (n[l] = E);
|
|
1015
1002
|
}), n;
|
|
1016
1003
|
}
|
|
1017
1004
|
const gn = (e) => {
|
|
1018
1005
|
const t = pe({}, e);
|
|
1019
1006
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = t;
|
|
1020
|
-
if (t.headers = o = q.from(o), t.url =
|
|
1007
|
+
if (t.headers = o = q.from(o), t.url = hn(Sn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
|
|
1021
1008
|
"Authorization",
|
|
1022
1009
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1023
1010
|
), c.isFormData(n)) {
|
|
@@ -1030,23 +1017,23 @@ const gn = (e) => {
|
|
|
1030
1017
|
});
|
|
1031
1018
|
}
|
|
1032
1019
|
}
|
|
1033
|
-
if (I.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1034
|
-
const d = s && i &&
|
|
1020
|
+
if (I.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && es(t.url))) {
|
|
1021
|
+
const d = s && i && ts.read(i);
|
|
1035
1022
|
d && o.set(s, d);
|
|
1036
1023
|
}
|
|
1037
1024
|
return t;
|
|
1038
|
-
},
|
|
1025
|
+
}, ss = typeof XMLHttpRequest < "u", os = ss && function(e) {
|
|
1039
1026
|
return new Promise(function(n, r) {
|
|
1040
1027
|
const s = gn(e);
|
|
1041
1028
|
let i = s.data;
|
|
1042
1029
|
const o = q.from(s.headers).normalize();
|
|
1043
|
-
let { responseType: a, onUploadProgress: d, onDownloadProgress: f } = s, l, p,
|
|
1030
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: f } = s, l, p, E, y, u;
|
|
1044
1031
|
function m() {
|
|
1045
|
-
|
|
1032
|
+
y && y(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1046
1033
|
}
|
|
1047
1034
|
let h = new XMLHttpRequest();
|
|
1048
1035
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1049
|
-
function
|
|
1036
|
+
function g() {
|
|
1050
1037
|
if (!h)
|
|
1051
1038
|
return;
|
|
1052
1039
|
const A = q.from(
|
|
@@ -1059,14 +1046,14 @@ const gn = (e) => {
|
|
|
1059
1046
|
config: e,
|
|
1060
1047
|
request: h
|
|
1061
1048
|
};
|
|
1062
|
-
|
|
1049
|
+
wn(function(_) {
|
|
1063
1050
|
n(_), m();
|
|
1064
1051
|
}, function(_) {
|
|
1065
1052
|
r(_), m();
|
|
1066
1053
|
}, R), h = null;
|
|
1067
1054
|
}
|
|
1068
|
-
"onloadend" in h ? h.onloadend =
|
|
1069
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1055
|
+
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1056
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1070
1057
|
}, h.onabort = function() {
|
|
1071
1058
|
h && (r(new S("Request aborted", S.ECONNABORTED, e, h)), h = null);
|
|
1072
1059
|
}, h.onerror = function(x) {
|
|
@@ -1074,7 +1061,7 @@ const gn = (e) => {
|
|
|
1074
1061
|
P.event = x || null, r(P), h = null;
|
|
1075
1062
|
}, h.ontimeout = function() {
|
|
1076
1063
|
let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1077
|
-
const R = s.transitional ||
|
|
1064
|
+
const R = s.transitional || mn;
|
|
1078
1065
|
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(new S(
|
|
1079
1066
|
x,
|
|
1080
1067
|
R.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
@@ -1083,17 +1070,17 @@ const gn = (e) => {
|
|
|
1083
1070
|
)), h = null;
|
|
1084
1071
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && c.forEach(o.toJSON(), function(x, R) {
|
|
1085
1072
|
h.setRequestHeader(R, x);
|
|
1086
|
-
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), f && ([
|
|
1073
|
+
}), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), f && ([E, u] = je(f, !0), h.addEventListener("progress", E)), d && h.upload && ([p, y] = je(d), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (A) => {
|
|
1087
1074
|
h && (r(!A || A.type ? new Se(null, e, h) : A), h.abort(), h = null);
|
|
1088
1075
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1089
|
-
const w =
|
|
1076
|
+
const w = Yr(s.url);
|
|
1090
1077
|
if (w && I.protocols.indexOf(w) === -1) {
|
|
1091
1078
|
r(new S("Unsupported protocol " + w + ":", S.ERR_BAD_REQUEST, e));
|
|
1092
1079
|
return;
|
|
1093
1080
|
}
|
|
1094
1081
|
h.send(i || null);
|
|
1095
1082
|
});
|
|
1096
|
-
},
|
|
1083
|
+
}, is = (e, t) => {
|
|
1097
1084
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1098
1085
|
if (t || n) {
|
|
1099
1086
|
let r = new AbortController(), s;
|
|
@@ -1116,7 +1103,7 @@ const gn = (e) => {
|
|
|
1116
1103
|
const { signal: d } = r;
|
|
1117
1104
|
return d.unsubscribe = () => c.asap(a), d;
|
|
1118
1105
|
}
|
|
1119
|
-
},
|
|
1106
|
+
}, as = function* (e, t) {
|
|
1120
1107
|
let n = e.byteLength;
|
|
1121
1108
|
if (n < t) {
|
|
1122
1109
|
yield e;
|
|
@@ -1125,10 +1112,10 @@ const gn = (e) => {
|
|
|
1125
1112
|
let r = 0, s;
|
|
1126
1113
|
for (; r < n; )
|
|
1127
1114
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1128
|
-
},
|
|
1129
|
-
for await (const n of
|
|
1130
|
-
yield*
|
|
1131
|
-
},
|
|
1115
|
+
}, cs = async function* (e, t) {
|
|
1116
|
+
for await (const n of us(e))
|
|
1117
|
+
yield* as(n, t);
|
|
1118
|
+
}, us = async function* (e) {
|
|
1132
1119
|
if (e[Symbol.asyncIterator]) {
|
|
1133
1120
|
yield* e;
|
|
1134
1121
|
return;
|
|
@@ -1145,7 +1132,7 @@ const gn = (e) => {
|
|
|
1145
1132
|
await t.cancel();
|
|
1146
1133
|
}
|
|
1147
1134
|
}, It = (e, t, n, r) => {
|
|
1148
|
-
const s =
|
|
1135
|
+
const s = cs(e, t);
|
|
1149
1136
|
let i = 0, o, a = (d) => {
|
|
1150
1137
|
o || (o = !0, r && r(d));
|
|
1151
1138
|
};
|
|
@@ -1159,8 +1146,8 @@ const gn = (e) => {
|
|
|
1159
1146
|
}
|
|
1160
1147
|
let p = l.byteLength;
|
|
1161
1148
|
if (n) {
|
|
1162
|
-
let
|
|
1163
|
-
n(
|
|
1149
|
+
let E = i += p;
|
|
1150
|
+
n(E);
|
|
1164
1151
|
}
|
|
1165
1152
|
d.enqueue(new Uint8Array(l));
|
|
1166
1153
|
} catch (f) {
|
|
@@ -1173,29 +1160,29 @@ const gn = (e) => {
|
|
|
1173
1160
|
}, {
|
|
1174
1161
|
highWaterMark: 2
|
|
1175
1162
|
});
|
|
1176
|
-
},
|
|
1163
|
+
}, Bt = 64 * 1024, { isFunction: Ne } = c, ls = (({ Request: e, Response: t }) => ({
|
|
1177
1164
|
Request: e,
|
|
1178
1165
|
Response: t
|
|
1179
1166
|
}))(c.global), {
|
|
1180
|
-
ReadableStream:
|
|
1181
|
-
TextEncoder:
|
|
1167
|
+
ReadableStream: jt,
|
|
1168
|
+
TextEncoder: kt
|
|
1182
1169
|
} = c.global, qt = (e, ...t) => {
|
|
1183
1170
|
try {
|
|
1184
1171
|
return !!e(...t);
|
|
1185
1172
|
} catch {
|
|
1186
1173
|
return !1;
|
|
1187
1174
|
}
|
|
1188
|
-
},
|
|
1175
|
+
}, fs = (e) => {
|
|
1189
1176
|
e = c.merge.call({
|
|
1190
1177
|
skipUndefined: !0
|
|
1191
|
-
},
|
|
1178
|
+
}, ls, e);
|
|
1192
1179
|
const { fetch: t, Request: n, Response: r } = e, s = t ? Ne(t) : typeof fetch == "function", i = Ne(n), o = Ne(r);
|
|
1193
1180
|
if (!s)
|
|
1194
1181
|
return !1;
|
|
1195
|
-
const a = s && Ne(
|
|
1182
|
+
const a = s && Ne(jt), d = s && (typeof kt == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new kt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && a && qt(() => {
|
|
1196
1183
|
let u = !1;
|
|
1197
1184
|
const m = new n(I.origin, {
|
|
1198
|
-
body: new
|
|
1185
|
+
body: new jt(),
|
|
1199
1186
|
method: "POST",
|
|
1200
1187
|
get duplex() {
|
|
1201
1188
|
return u = !0, "half";
|
|
@@ -1207,13 +1194,13 @@ const gn = (e) => {
|
|
|
1207
1194
|
};
|
|
1208
1195
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
1209
1196
|
!p[u] && (p[u] = (m, h) => {
|
|
1210
|
-
let
|
|
1211
|
-
if (
|
|
1212
|
-
return
|
|
1197
|
+
let g = m && m[u];
|
|
1198
|
+
if (g)
|
|
1199
|
+
return g.call(m);
|
|
1213
1200
|
throw new S(`Response type '${u}' is not supported`, S.ERR_NOT_SUPPORT, h);
|
|
1214
1201
|
});
|
|
1215
1202
|
});
|
|
1216
|
-
const
|
|
1203
|
+
const E = async (u) => {
|
|
1217
1204
|
if (u == null)
|
|
1218
1205
|
return 0;
|
|
1219
1206
|
if (c.isBlob(u))
|
|
@@ -1227,15 +1214,15 @@ const gn = (e) => {
|
|
|
1227
1214
|
return u.byteLength;
|
|
1228
1215
|
if (c.isURLSearchParams(u) && (u = u + ""), c.isString(u))
|
|
1229
1216
|
return (await d(u)).byteLength;
|
|
1230
|
-
},
|
|
1217
|
+
}, y = async (u, m) => {
|
|
1231
1218
|
const h = c.toFiniteNumber(u.getContentLength());
|
|
1232
|
-
return h ??
|
|
1219
|
+
return h ?? E(m);
|
|
1233
1220
|
};
|
|
1234
1221
|
return async (u) => {
|
|
1235
1222
|
let {
|
|
1236
1223
|
url: m,
|
|
1237
1224
|
method: h,
|
|
1238
|
-
data:
|
|
1225
|
+
data: g,
|
|
1239
1226
|
signal: w,
|
|
1240
1227
|
cancelToken: A,
|
|
1241
1228
|
timeout: x,
|
|
@@ -1245,40 +1232,40 @@ const gn = (e) => {
|
|
|
1245
1232
|
headers: X,
|
|
1246
1233
|
withCredentials: O = "same-origin",
|
|
1247
1234
|
fetchOptions: ee
|
|
1248
|
-
} = gn(u),
|
|
1235
|
+
} = gn(u), H = t || fetch;
|
|
1249
1236
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1250
|
-
let W =
|
|
1237
|
+
let W = is([w, A && A.toAbortSignal()], x), M = null;
|
|
1251
1238
|
const F = W && W.unsubscribe && (() => {
|
|
1252
1239
|
W.unsubscribe();
|
|
1253
1240
|
});
|
|
1254
1241
|
let te;
|
|
1255
1242
|
try {
|
|
1256
|
-
if (P && f && h !== "get" && h !== "head" && (te = await
|
|
1243
|
+
if (P && f && h !== "get" && h !== "head" && (te = await y(X, g)) !== 0) {
|
|
1257
1244
|
let Y = new n(m, {
|
|
1258
1245
|
method: "POST",
|
|
1259
|
-
body:
|
|
1246
|
+
body: g,
|
|
1260
1247
|
duplex: "half"
|
|
1261
1248
|
}), V;
|
|
1262
|
-
if (c.isFormData(
|
|
1249
|
+
if (c.isFormData(g) && (V = Y.headers.get("content-type")) && X.setContentType(V), Y.body) {
|
|
1263
1250
|
const [J, re] = Pt(
|
|
1264
1251
|
te,
|
|
1265
|
-
|
|
1252
|
+
je(vt(P))
|
|
1266
1253
|
);
|
|
1267
|
-
|
|
1254
|
+
g = It(Y.body, Bt, J, re);
|
|
1268
1255
|
}
|
|
1269
1256
|
}
|
|
1270
1257
|
c.isString(O) || (O = O ? "include" : "omit");
|
|
1271
|
-
const
|
|
1258
|
+
const B = i && "credentials" in n.prototype, ge = {
|
|
1272
1259
|
...ee,
|
|
1273
1260
|
signal: W,
|
|
1274
1261
|
method: h.toUpperCase(),
|
|
1275
1262
|
headers: X.normalize().toJSON(),
|
|
1276
|
-
body:
|
|
1263
|
+
body: g,
|
|
1277
1264
|
duplex: "half",
|
|
1278
|
-
credentials:
|
|
1265
|
+
credentials: B ? O : void 0
|
|
1279
1266
|
};
|
|
1280
|
-
|
|
1281
|
-
let z = await (i ? M
|
|
1267
|
+
M = i && new n(m, ge);
|
|
1268
|
+
let z = await (i ? H(M, ee) : H(m, ge));
|
|
1282
1269
|
const ne = l && (_ === "stream" || _ === "response");
|
|
1283
1270
|
if (l && (R || ne && F)) {
|
|
1284
1271
|
const Y = {};
|
|
@@ -1287,10 +1274,10 @@ const gn = (e) => {
|
|
|
1287
1274
|
});
|
|
1288
1275
|
const V = c.toFiniteNumber(z.headers.get("content-length")), [J, re] = R && Pt(
|
|
1289
1276
|
V,
|
|
1290
|
-
|
|
1277
|
+
je(vt(R), !0)
|
|
1291
1278
|
) || [];
|
|
1292
1279
|
z = new r(
|
|
1293
|
-
It(z.body,
|
|
1280
|
+
It(z.body, Bt, J, () => {
|
|
1294
1281
|
re && re(), F && F();
|
|
1295
1282
|
}),
|
|
1296
1283
|
Y
|
|
@@ -1299,42 +1286,42 @@ const gn = (e) => {
|
|
|
1299
1286
|
_ = _ || "text";
|
|
1300
1287
|
let De = await p[c.findKey(p, _) || "text"](z, u);
|
|
1301
1288
|
return !ne && F && F(), await new Promise((Y, V) => {
|
|
1302
|
-
|
|
1289
|
+
wn(Y, V, {
|
|
1303
1290
|
data: De,
|
|
1304
1291
|
headers: q.from(z.headers),
|
|
1305
1292
|
status: z.status,
|
|
1306
1293
|
statusText: z.statusText,
|
|
1307
1294
|
config: u,
|
|
1308
|
-
request:
|
|
1295
|
+
request: M
|
|
1309
1296
|
});
|
|
1310
1297
|
});
|
|
1311
|
-
} catch (
|
|
1312
|
-
throw F && F(),
|
|
1313
|
-
new S("Network Error", S.ERR_NETWORK, u,
|
|
1298
|
+
} catch (B) {
|
|
1299
|
+
throw F && F(), B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign(
|
|
1300
|
+
new S("Network Error", S.ERR_NETWORK, u, M),
|
|
1314
1301
|
{
|
|
1315
|
-
cause:
|
|
1302
|
+
cause: B.cause || B
|
|
1316
1303
|
}
|
|
1317
|
-
) : S.from(
|
|
1304
|
+
) : S.from(B, B && B.code, u, M);
|
|
1318
1305
|
}
|
|
1319
1306
|
};
|
|
1320
|
-
},
|
|
1307
|
+
}, ds = /* @__PURE__ */ new Map(), bn = (e) => {
|
|
1321
1308
|
let t = e && e.env || {};
|
|
1322
1309
|
const { fetch: n, Request: r, Response: s } = t, i = [
|
|
1323
1310
|
r,
|
|
1324
1311
|
s,
|
|
1325
1312
|
n
|
|
1326
1313
|
];
|
|
1327
|
-
let o = i.length, a = o, d, f, l =
|
|
1314
|
+
let o = i.length, a = o, d, f, l = ds;
|
|
1328
1315
|
for (; a--; )
|
|
1329
|
-
d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() :
|
|
1316
|
+
d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() : fs(t)), l = f;
|
|
1330
1317
|
return f;
|
|
1331
1318
|
};
|
|
1332
|
-
|
|
1319
|
+
bn();
|
|
1333
1320
|
const St = {
|
|
1334
|
-
http:
|
|
1335
|
-
xhr:
|
|
1321
|
+
http: Dr,
|
|
1322
|
+
xhr: os,
|
|
1336
1323
|
fetch: {
|
|
1337
|
-
get:
|
|
1324
|
+
get: bn
|
|
1338
1325
|
}
|
|
1339
1326
|
};
|
|
1340
1327
|
c.forEach(St, (e, t) => {
|
|
@@ -1346,8 +1333,8 @@ c.forEach(St, (e, t) => {
|
|
|
1346
1333
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1347
1334
|
}
|
|
1348
1335
|
});
|
|
1349
|
-
const
|
|
1350
|
-
function
|
|
1336
|
+
const Ht = (e) => `- ${e}`, ps = (e) => c.isFunction(e) || e === null || e === !1;
|
|
1337
|
+
function hs(e, t) {
|
|
1351
1338
|
e = c.isArray(e) ? e : [e];
|
|
1352
1339
|
const { length: n } = e;
|
|
1353
1340
|
let r, s;
|
|
@@ -1355,7 +1342,7 @@ function ys(e, t) {
|
|
|
1355
1342
|
for (let o = 0; o < n; o++) {
|
|
1356
1343
|
r = e[o];
|
|
1357
1344
|
let a;
|
|
1358
|
-
if (s = r, !
|
|
1345
|
+
if (s = r, !ps(r) && (s = St[(a = String(r)).toLowerCase()], s === void 0))
|
|
1359
1346
|
throw new S(`Unknown adapter '${a}'`);
|
|
1360
1347
|
if (s && (c.isFunction(s) || (s = s.get(t))))
|
|
1361
1348
|
break;
|
|
@@ -1366,8 +1353,8 @@ function ys(e, t) {
|
|
|
1366
1353
|
([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1367
1354
|
);
|
|
1368
1355
|
let a = n ? o.length > 1 ? `since :
|
|
1369
|
-
` + o.map(
|
|
1370
|
-
`) : " " +
|
|
1356
|
+
` + o.map(Ht).join(`
|
|
1357
|
+
`) : " " + Ht(o[0]) : "as no adapter specified";
|
|
1371
1358
|
throw new S(
|
|
1372
1359
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1373
1360
|
"ERR_NOT_SUPPORT"
|
|
@@ -1375,12 +1362,12 @@ function ys(e, t) {
|
|
|
1375
1362
|
}
|
|
1376
1363
|
return s;
|
|
1377
1364
|
}
|
|
1378
|
-
const
|
|
1365
|
+
const Rn = {
|
|
1379
1366
|
/**
|
|
1380
1367
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1381
1368
|
* @type {Function}
|
|
1382
1369
|
*/
|
|
1383
|
-
getAdapter:
|
|
1370
|
+
getAdapter: hs,
|
|
1384
1371
|
/**
|
|
1385
1372
|
* Exposes all known adapters
|
|
1386
1373
|
* @type {Object<string, Function|Object>}
|
|
@@ -1391,25 +1378,25 @@ function Ge(e) {
|
|
|
1391
1378
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1392
1379
|
throw new Se(null, e);
|
|
1393
1380
|
}
|
|
1394
|
-
function
|
|
1381
|
+
function Mt(e) {
|
|
1395
1382
|
return Ge(e), e.headers = q.from(e.headers), e.data = Ke.call(
|
|
1396
1383
|
e,
|
|
1397
1384
|
e.transformRequest
|
|
1398
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1385
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rn.getAdapter(e.adapter || Ce.adapter, e)(e).then(function(r) {
|
|
1399
1386
|
return Ge(e), r.data = Ke.call(
|
|
1400
1387
|
e,
|
|
1401
1388
|
e.transformResponse,
|
|
1402
1389
|
r
|
|
1403
1390
|
), r.headers = q.from(r.headers), r;
|
|
1404
1391
|
}, function(r) {
|
|
1405
|
-
return
|
|
1392
|
+
return yn(r) || (Ge(e), r && r.response && (r.response.data = Ke.call(
|
|
1406
1393
|
e,
|
|
1407
1394
|
e.transformResponse,
|
|
1408
1395
|
r.response
|
|
1409
1396
|
), r.response.headers = q.from(r.response.headers))), Promise.reject(r);
|
|
1410
1397
|
});
|
|
1411
1398
|
}
|
|
1412
|
-
const
|
|
1399
|
+
const On = "1.13.2", Ve = {};
|
|
1413
1400
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1414
1401
|
Ve[e] = function(r) {
|
|
1415
1402
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1418,7 +1405,7 @@ const Tn = "1.13.2", Ve = {};
|
|
|
1418
1405
|
const Vt = {};
|
|
1419
1406
|
Ve.transitional = function(t, n, r) {
|
|
1420
1407
|
function s(i, o) {
|
|
1421
|
-
return "[Axios v" +
|
|
1408
|
+
return "[Axios v" + On + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1422
1409
|
}
|
|
1423
1410
|
return (i, o, a) => {
|
|
1424
1411
|
if (t === !1)
|
|
@@ -1437,7 +1424,7 @@ Ve.transitional = function(t, n, r) {
|
|
|
1437
1424
|
Ve.spelling = function(t) {
|
|
1438
1425
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1439
1426
|
};
|
|
1440
|
-
function
|
|
1427
|
+
function ms(e, t, n) {
|
|
1441
1428
|
if (typeof e != "object")
|
|
1442
1429
|
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
1443
1430
|
const r = Object.keys(e);
|
|
@@ -1454,10 +1441,10 @@ function Es(e, t, n) {
|
|
|
1454
1441
|
throw new S("Unknown option " + i, S.ERR_BAD_OPTION);
|
|
1455
1442
|
}
|
|
1456
1443
|
}
|
|
1457
|
-
const
|
|
1458
|
-
assertOptions:
|
|
1444
|
+
const Be = {
|
|
1445
|
+
assertOptions: ms,
|
|
1459
1446
|
validators: Ve
|
|
1460
|
-
}, Q =
|
|
1447
|
+
}, Q = Be.validators;
|
|
1461
1448
|
let de = class {
|
|
1462
1449
|
constructor(t) {
|
|
1463
1450
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -1493,16 +1480,16 @@ let de = class {
|
|
|
1493
1480
|
_request(t, n) {
|
|
1494
1481
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = pe(this.defaults, n);
|
|
1495
1482
|
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1496
|
-
r !== void 0 &&
|
|
1483
|
+
r !== void 0 && Be.assertOptions(r, {
|
|
1497
1484
|
silentJSONParsing: Q.transitional(Q.boolean),
|
|
1498
1485
|
forcedJSONParsing: Q.transitional(Q.boolean),
|
|
1499
1486
|
clarifyTimeoutError: Q.transitional(Q.boolean)
|
|
1500
1487
|
}, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
|
|
1501
1488
|
serialize: s
|
|
1502
|
-
} :
|
|
1489
|
+
} : Be.assertOptions(s, {
|
|
1503
1490
|
encode: Q.function,
|
|
1504
1491
|
serialize: Q.function
|
|
1505
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1492
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Be.assertOptions(n, {
|
|
1506
1493
|
baseUrl: Q.spelling("baseURL"),
|
|
1507
1494
|
withXsrfToken: Q.spelling("withXSRFToken")
|
|
1508
1495
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1525,37 +1512,37 @@ let de = class {
|
|
|
1525
1512
|
this.interceptors.response.forEach(function(m) {
|
|
1526
1513
|
f.push(m.fulfilled, m.rejected);
|
|
1527
1514
|
});
|
|
1528
|
-
let l, p = 0,
|
|
1515
|
+
let l, p = 0, E;
|
|
1529
1516
|
if (!d) {
|
|
1530
|
-
const u = [
|
|
1531
|
-
for (u.unshift(...a), u.push(...f),
|
|
1517
|
+
const u = [Mt.bind(this), void 0];
|
|
1518
|
+
for (u.unshift(...a), u.push(...f), E = u.length, l = Promise.resolve(n); p < E; )
|
|
1532
1519
|
l = l.then(u[p++], u[p++]);
|
|
1533
1520
|
return l;
|
|
1534
1521
|
}
|
|
1535
|
-
|
|
1536
|
-
let
|
|
1537
|
-
for (; p <
|
|
1522
|
+
E = a.length;
|
|
1523
|
+
let y = n;
|
|
1524
|
+
for (; p < E; ) {
|
|
1538
1525
|
const u = a[p++], m = a[p++];
|
|
1539
1526
|
try {
|
|
1540
|
-
|
|
1527
|
+
y = u(y);
|
|
1541
1528
|
} catch (h) {
|
|
1542
1529
|
m.call(this, h);
|
|
1543
1530
|
break;
|
|
1544
1531
|
}
|
|
1545
1532
|
}
|
|
1546
1533
|
try {
|
|
1547
|
-
l =
|
|
1534
|
+
l = Mt.call(this, y);
|
|
1548
1535
|
} catch (u) {
|
|
1549
1536
|
return Promise.reject(u);
|
|
1550
1537
|
}
|
|
1551
|
-
for (p = 0,
|
|
1538
|
+
for (p = 0, E = f.length; p < E; )
|
|
1552
1539
|
l = l.then(f[p++], f[p++]);
|
|
1553
1540
|
return l;
|
|
1554
1541
|
}
|
|
1555
1542
|
getUri(t) {
|
|
1556
1543
|
t = pe(this.defaults, t);
|
|
1557
|
-
const n =
|
|
1558
|
-
return
|
|
1544
|
+
const n = Sn(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1545
|
+
return hn(n, t.params, t.paramsSerializer);
|
|
1559
1546
|
}
|
|
1560
1547
|
};
|
|
1561
1548
|
c.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1582,7 +1569,7 @@ c.forEach(["post", "put", "patch"], function(t) {
|
|
|
1582
1569
|
}
|
|
1583
1570
|
de.prototype[t] = n(), de.prototype[t + "Form"] = n(!0);
|
|
1584
1571
|
});
|
|
1585
|
-
let
|
|
1572
|
+
let Es = class Tn {
|
|
1586
1573
|
constructor(t) {
|
|
1587
1574
|
if (typeof t != "function")
|
|
1588
1575
|
throw new TypeError("executor must be a function.");
|
|
@@ -1648,19 +1635,19 @@ let ws = class An {
|
|
|
1648
1635
|
static source() {
|
|
1649
1636
|
let t;
|
|
1650
1637
|
return {
|
|
1651
|
-
token: new
|
|
1638
|
+
token: new Tn(function(s) {
|
|
1652
1639
|
t = s;
|
|
1653
1640
|
}),
|
|
1654
1641
|
cancel: t
|
|
1655
1642
|
};
|
|
1656
1643
|
}
|
|
1657
1644
|
};
|
|
1658
|
-
function
|
|
1645
|
+
function ys(e) {
|
|
1659
1646
|
return function(n) {
|
|
1660
1647
|
return e.apply(null, n);
|
|
1661
1648
|
};
|
|
1662
1649
|
}
|
|
1663
|
-
function
|
|
1650
|
+
function ws(e) {
|
|
1664
1651
|
return c.isObject(e) && e.isAxiosError === !0;
|
|
1665
1652
|
}
|
|
1666
1653
|
const at = {
|
|
@@ -1737,67 +1724,67 @@ const at = {
|
|
|
1737
1724
|
Object.entries(at).forEach(([e, t]) => {
|
|
1738
1725
|
at[t] = e;
|
|
1739
1726
|
});
|
|
1740
|
-
function
|
|
1741
|
-
const t = new de(e), n =
|
|
1727
|
+
function An(e) {
|
|
1728
|
+
const t = new de(e), n = tn(de.prototype.request, t);
|
|
1742
1729
|
return c.extend(n, de.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1743
|
-
return
|
|
1730
|
+
return An(pe(e, s));
|
|
1744
1731
|
}, n;
|
|
1745
1732
|
}
|
|
1746
|
-
const N =
|
|
1733
|
+
const N = An(Ce);
|
|
1747
1734
|
N.Axios = de;
|
|
1748
1735
|
N.CanceledError = Se;
|
|
1749
|
-
N.CancelToken =
|
|
1750
|
-
N.isCancel =
|
|
1751
|
-
N.VERSION =
|
|
1752
|
-
N.toFormData =
|
|
1736
|
+
N.CancelToken = Es;
|
|
1737
|
+
N.isCancel = yn;
|
|
1738
|
+
N.VERSION = On;
|
|
1739
|
+
N.toFormData = Me;
|
|
1753
1740
|
N.AxiosError = S;
|
|
1754
1741
|
N.Cancel = N.CanceledError;
|
|
1755
1742
|
N.all = function(t) {
|
|
1756
1743
|
return Promise.all(t);
|
|
1757
1744
|
};
|
|
1758
|
-
N.spread =
|
|
1759
|
-
N.isAxiosError =
|
|
1745
|
+
N.spread = ys;
|
|
1746
|
+
N.isAxiosError = ws;
|
|
1760
1747
|
N.mergeConfig = pe;
|
|
1761
1748
|
N.AxiosHeaders = q;
|
|
1762
1749
|
N.formToJSON = (e) => En(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
1763
|
-
N.getAdapter =
|
|
1750
|
+
N.getAdapter = Rn.getAdapter;
|
|
1764
1751
|
N.HttpStatusCode = at;
|
|
1765
1752
|
N.default = N;
|
|
1766
1753
|
const {
|
|
1767
|
-
Axios:
|
|
1768
|
-
AxiosError:
|
|
1769
|
-
CanceledError:
|
|
1770
|
-
isCancel:
|
|
1771
|
-
CancelToken:
|
|
1772
|
-
VERSION:
|
|
1773
|
-
all:
|
|
1774
|
-
Cancel:
|
|
1775
|
-
isAxiosError:
|
|
1776
|
-
spread:
|
|
1777
|
-
toFormData:
|
|
1778
|
-
AxiosHeaders:
|
|
1779
|
-
HttpStatusCode:
|
|
1780
|
-
formToJSON:
|
|
1781
|
-
getAdapter:
|
|
1782
|
-
mergeConfig:
|
|
1754
|
+
Axios: eo,
|
|
1755
|
+
AxiosError: to,
|
|
1756
|
+
CanceledError: no,
|
|
1757
|
+
isCancel: ro,
|
|
1758
|
+
CancelToken: so,
|
|
1759
|
+
VERSION: oo,
|
|
1760
|
+
all: io,
|
|
1761
|
+
Cancel: ao,
|
|
1762
|
+
isAxiosError: co,
|
|
1763
|
+
spread: uo,
|
|
1764
|
+
toFormData: lo,
|
|
1765
|
+
AxiosHeaders: fo,
|
|
1766
|
+
HttpStatusCode: po,
|
|
1767
|
+
formToJSON: ho,
|
|
1768
|
+
getAdapter: mo,
|
|
1769
|
+
mergeConfig: Eo
|
|
1783
1770
|
} = N;
|
|
1784
1771
|
var Fe = { exports: {} }, Xe = {};
|
|
1785
1772
|
var $t;
|
|
1786
|
-
function
|
|
1773
|
+
function Ss() {
|
|
1787
1774
|
if ($t) return Xe;
|
|
1788
1775
|
$t = 1;
|
|
1789
1776
|
var e = Oe;
|
|
1790
|
-
function t(p,
|
|
1791
|
-
return p ===
|
|
1777
|
+
function t(p, E) {
|
|
1778
|
+
return p === E && (p !== 0 || 1 / p === 1 / E) || p !== p && E !== E;
|
|
1792
1779
|
}
|
|
1793
1780
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, s = e.useEffect, i = e.useLayoutEffect, o = e.useDebugValue;
|
|
1794
|
-
function a(p,
|
|
1795
|
-
var
|
|
1781
|
+
function a(p, E) {
|
|
1782
|
+
var y = E(), u = r({ inst: { value: y, getSnapshot: E } }), m = u[0].inst, h = u[1];
|
|
1796
1783
|
return i(
|
|
1797
1784
|
function() {
|
|
1798
|
-
m.value =
|
|
1785
|
+
m.value = y, m.getSnapshot = E, d(m) && h({ inst: m });
|
|
1799
1786
|
},
|
|
1800
|
-
[p,
|
|
1787
|
+
[p, y, E]
|
|
1801
1788
|
), s(
|
|
1802
1789
|
function() {
|
|
1803
1790
|
return d(m) && h({ inst: m }), p(function() {
|
|
@@ -1805,32 +1792,32 @@ function gs() {
|
|
|
1805
1792
|
});
|
|
1806
1793
|
},
|
|
1807
1794
|
[p]
|
|
1808
|
-
), o(
|
|
1795
|
+
), o(y), y;
|
|
1809
1796
|
}
|
|
1810
1797
|
function d(p) {
|
|
1811
|
-
var
|
|
1798
|
+
var E = p.getSnapshot;
|
|
1812
1799
|
p = p.value;
|
|
1813
1800
|
try {
|
|
1814
|
-
var
|
|
1815
|
-
return !n(p,
|
|
1801
|
+
var y = E();
|
|
1802
|
+
return !n(p, y);
|
|
1816
1803
|
} catch {
|
|
1817
1804
|
return !0;
|
|
1818
1805
|
}
|
|
1819
1806
|
}
|
|
1820
|
-
function f(p,
|
|
1821
|
-
return
|
|
1807
|
+
function f(p, E) {
|
|
1808
|
+
return E();
|
|
1822
1809
|
}
|
|
1823
1810
|
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : a;
|
|
1824
1811
|
return Xe.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Xe;
|
|
1825
1812
|
}
|
|
1826
1813
|
var Ye = {};
|
|
1827
1814
|
var Wt;
|
|
1828
|
-
function
|
|
1815
|
+
function gs() {
|
|
1829
1816
|
return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1830
|
-
function e(
|
|
1831
|
-
return
|
|
1817
|
+
function e(y, u) {
|
|
1818
|
+
return y === u && (y !== 0 || 1 / y === 1 / u) || y !== y && u !== u;
|
|
1832
1819
|
}
|
|
1833
|
-
function t(
|
|
1820
|
+
function t(y, u) {
|
|
1834
1821
|
l || s.startTransition === void 0 || (l = !0, console.error(
|
|
1835
1822
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
1836
1823
|
));
|
|
@@ -1844,45 +1831,45 @@ function Rs() {
|
|
|
1844
1831
|
h = o({
|
|
1845
1832
|
inst: { value: m, getSnapshot: u }
|
|
1846
1833
|
});
|
|
1847
|
-
var
|
|
1834
|
+
var g = h[0].inst, w = h[1];
|
|
1848
1835
|
return d(
|
|
1849
1836
|
function() {
|
|
1850
|
-
|
|
1837
|
+
g.value = m, g.getSnapshot = u, n(g) && w({ inst: g });
|
|
1851
1838
|
},
|
|
1852
|
-
[
|
|
1839
|
+
[y, m, u]
|
|
1853
1840
|
), a(
|
|
1854
1841
|
function() {
|
|
1855
|
-
return n(
|
|
1856
|
-
n(
|
|
1842
|
+
return n(g) && w({ inst: g }), y(function() {
|
|
1843
|
+
n(g) && w({ inst: g });
|
|
1857
1844
|
});
|
|
1858
1845
|
},
|
|
1859
|
-
[
|
|
1846
|
+
[y]
|
|
1860
1847
|
), f(m), m;
|
|
1861
1848
|
}
|
|
1862
|
-
function n(
|
|
1863
|
-
var u =
|
|
1864
|
-
|
|
1849
|
+
function n(y) {
|
|
1850
|
+
var u = y.getSnapshot;
|
|
1851
|
+
y = y.value;
|
|
1865
1852
|
try {
|
|
1866
1853
|
var m = u();
|
|
1867
|
-
return !i(
|
|
1854
|
+
return !i(y, m);
|
|
1868
1855
|
} catch {
|
|
1869
1856
|
return !0;
|
|
1870
1857
|
}
|
|
1871
1858
|
}
|
|
1872
|
-
function r(
|
|
1859
|
+
function r(y, u) {
|
|
1873
1860
|
return u();
|
|
1874
1861
|
}
|
|
1875
1862
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1876
|
-
var s = Oe, i = typeof Object.is == "function" ? Object.is : e, o = s.useState, a = s.useEffect, d = s.useLayoutEffect, f = s.useDebugValue, l = !1, p = !1,
|
|
1877
|
-
Ye.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore :
|
|
1863
|
+
var s = Oe, i = typeof Object.is == "function" ? Object.is : e, o = s.useState, a = s.useEffect, d = s.useLayoutEffect, f = s.useDebugValue, l = !1, p = !1, E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
1864
|
+
Ye.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1878
1865
|
})()), Ye;
|
|
1879
1866
|
}
|
|
1880
1867
|
var zt;
|
|
1881
|
-
function
|
|
1882
|
-
return zt || (zt = 1, process.env.NODE_ENV === "production" ? Fe.exports =
|
|
1868
|
+
function bs() {
|
|
1869
|
+
return zt || (zt = 1, process.env.NODE_ENV === "production" ? Fe.exports = Ss() : Fe.exports = gs()), Fe.exports;
|
|
1883
1870
|
}
|
|
1884
|
-
var Jt =
|
|
1885
|
-
const
|
|
1871
|
+
var Jt = bs();
|
|
1872
|
+
const _n = 0, Cn = 1, xn = 2, Kt = 3;
|
|
1886
1873
|
var Gt = Object.prototype.hasOwnProperty;
|
|
1887
1874
|
function ct(e, t) {
|
|
1888
1875
|
var n, r;
|
|
@@ -1908,17 +1895,17 @@ const ie = /* @__PURE__ */ new WeakMap(), ae = () => {
|
|
|
1908
1895
|
}, U = (
|
|
1909
1896
|
/*#__NOINLINE__*/
|
|
1910
1897
|
ae()
|
|
1911
|
-
), ut = Object,
|
|
1898
|
+
), ut = Object, b = (e) => e === U, Z = (e) => typeof e == "function", ce = (e, t) => ({
|
|
1912
1899
|
...e,
|
|
1913
1900
|
...t
|
|
1914
|
-
}),
|
|
1901
|
+
}), Dn = (e) => Z(e.then), Qe = {}, Pe = {}, gt = "undefined", xe = typeof window != gt, lt = typeof document != gt, Rs = xe && "Deno" in window, Os = () => xe && typeof window.requestAnimationFrame != gt, Ln = (e, t) => {
|
|
1915
1902
|
const n = ie.get(e);
|
|
1916
1903
|
return [
|
|
1917
1904
|
// Getter
|
|
1918
|
-
() => !
|
|
1905
|
+
() => !b(t) && e.get(t) || Qe,
|
|
1919
1906
|
// Setter
|
|
1920
1907
|
(r) => {
|
|
1921
|
-
if (!
|
|
1908
|
+
if (!b(t)) {
|
|
1922
1909
|
const s = e.get(t);
|
|
1923
1910
|
t in Pe || (Pe[t] = s), n[5](t, ce(s, r), s || Qe);
|
|
1924
1911
|
}
|
|
@@ -1926,22 +1913,22 @@ const ie = /* @__PURE__ */ new WeakMap(), ae = () => {
|
|
|
1926
1913
|
// Subscriber
|
|
1927
1914
|
n[6],
|
|
1928
1915
|
// Get server cache snapshot
|
|
1929
|
-
() => !
|
|
1916
|
+
() => !b(t) && t in Pe ? Pe[t] : !b(t) && e.get(t) || Qe
|
|
1930
1917
|
];
|
|
1931
1918
|
};
|
|
1932
1919
|
let ft = !0;
|
|
1933
|
-
const
|
|
1920
|
+
const Ts = () => ft, [dt, pt] = xe && window.addEventListener ? [
|
|
1934
1921
|
window.addEventListener.bind(window),
|
|
1935
1922
|
window.removeEventListener.bind(window)
|
|
1936
1923
|
] : [
|
|
1937
1924
|
ae,
|
|
1938
1925
|
ae
|
|
1939
|
-
],
|
|
1926
|
+
], As = () => {
|
|
1940
1927
|
const e = lt && document.visibilityState;
|
|
1941
|
-
return
|
|
1942
|
-
},
|
|
1928
|
+
return b(e) || e !== "hidden";
|
|
1929
|
+
}, _s = (e) => (lt && document.addEventListener("visibilitychange", e), dt("focus", e), () => {
|
|
1943
1930
|
lt && document.removeEventListener("visibilitychange", e), pt("focus", e);
|
|
1944
|
-
}),
|
|
1931
|
+
}), Cs = (e) => {
|
|
1945
1932
|
const t = () => {
|
|
1946
1933
|
ft = !0, e();
|
|
1947
1934
|
}, n = () => {
|
|
@@ -1950,23 +1937,23 @@ const _s = () => ft, [dt, pt] = xe && window.addEventListener ? [
|
|
|
1950
1937
|
return dt("online", t), dt("offline", n), () => {
|
|
1951
1938
|
pt("online", t), pt("offline", n);
|
|
1952
1939
|
};
|
|
1953
|
-
},
|
|
1954
|
-
isOnline:
|
|
1955
|
-
isVisible:
|
|
1956
|
-
},
|
|
1957
|
-
initFocus:
|
|
1958
|
-
initReconnect:
|
|
1959
|
-
}, Xt = !Oe.useId,
|
|
1940
|
+
}, xs = {
|
|
1941
|
+
isOnline: Ts,
|
|
1942
|
+
isVisible: As
|
|
1943
|
+
}, Ds = {
|
|
1944
|
+
initFocus: _s,
|
|
1945
|
+
initReconnect: Cs
|
|
1946
|
+
}, Xt = !Oe.useId, Ee = !xe || Rs, Ls = (e) => Os() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ze = Ee ? qn : Hn, et = typeof navigator < "u" && navigator.connection, Yt = !Ee && et && ([
|
|
1960
1947
|
"slow-2g",
|
|
1961
1948
|
"2g"
|
|
1962
|
-
].includes(et.effectiveType) || et.saveData), ve = /* @__PURE__ */ new WeakMap(),
|
|
1963
|
-
let
|
|
1949
|
+
].includes(et.effectiveType) || et.saveData), ve = /* @__PURE__ */ new WeakMap(), Ns = (e) => ut.prototype.toString.call(e), tt = (e, t) => e === `[object ${t}]`;
|
|
1950
|
+
let Fs = 0;
|
|
1964
1951
|
const ht = (e) => {
|
|
1965
|
-
const t = typeof e, n =
|
|
1952
|
+
const t = typeof e, n = Ns(e), r = tt(n, "Date"), s = tt(n, "RegExp"), i = tt(n, "Object");
|
|
1966
1953
|
let o, a;
|
|
1967
1954
|
if (ut(e) === e && !r && !s) {
|
|
1968
1955
|
if (o = ve.get(e), o) return o;
|
|
1969
|
-
if (o = ++
|
|
1956
|
+
if (o = ++Fs + "~", ve.set(e, o), Array.isArray(e)) {
|
|
1970
1957
|
for (o = "@", a = 0; a < e.length; a++)
|
|
1971
1958
|
o += ht(e[a]) + ",";
|
|
1972
1959
|
ve.set(e, o);
|
|
@@ -1974,14 +1961,14 @@ const ht = (e) => {
|
|
|
1974
1961
|
if (i) {
|
|
1975
1962
|
o = "#";
|
|
1976
1963
|
const d = ut.keys(e).sort();
|
|
1977
|
-
for (; !
|
|
1978
|
-
|
|
1964
|
+
for (; !b(a = d.pop()); )
|
|
1965
|
+
b(e[a]) || (o += a + ":" + ht(e[a]) + ",");
|
|
1979
1966
|
ve.set(e, o);
|
|
1980
1967
|
}
|
|
1981
1968
|
} else
|
|
1982
1969
|
o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
1983
1970
|
return o;
|
|
1984
|
-
},
|
|
1971
|
+
}, bt = (e) => {
|
|
1985
1972
|
if (Z(e))
|
|
1986
1973
|
try {
|
|
1987
1974
|
e = e();
|
|
@@ -1994,9 +1981,9 @@ const ht = (e) => {
|
|
|
1994
1981
|
t
|
|
1995
1982
|
];
|
|
1996
1983
|
};
|
|
1997
|
-
let
|
|
1998
|
-
const mt = () => ++
|
|
1999
|
-
async function
|
|
1984
|
+
let Ps = 0;
|
|
1985
|
+
const mt = () => ++Ps;
|
|
1986
|
+
async function Nn(...e) {
|
|
2000
1987
|
const [t, n, r, s] = e, i = ce({
|
|
2001
1988
|
populateCache: !0,
|
|
2002
1989
|
throwOnError: !0
|
|
@@ -2006,53 +1993,53 @@ async function Fn(...e) {
|
|
|
2006
1993
|
let o = i.populateCache;
|
|
2007
1994
|
const a = i.rollbackOnError;
|
|
2008
1995
|
let d = i.optimisticData;
|
|
2009
|
-
const f = (
|
|
1996
|
+
const f = (E) => typeof a == "function" ? a(E) : a !== !1, l = i.throwOnError;
|
|
2010
1997
|
if (Z(n)) {
|
|
2011
|
-
const
|
|
1998
|
+
const E = n, y = [], u = t.keys();
|
|
2012
1999
|
for (const m of u)
|
|
2013
2000
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
2014
|
-
!/^\$(inf|sub)\$/.test(m) &&
|
|
2015
|
-
return Promise.all(
|
|
2001
|
+
!/^\$(inf|sub)\$/.test(m) && E(t.get(m)._k) && y.push(m);
|
|
2002
|
+
return Promise.all(y.map(p));
|
|
2016
2003
|
}
|
|
2017
2004
|
return p(n);
|
|
2018
|
-
async function p(
|
|
2019
|
-
const [
|
|
2020
|
-
if (!
|
|
2021
|
-
const [u, m] =
|
|
2022
|
-
const F = h[
|
|
2023
|
-
return (Z(i.revalidate) ? i.revalidate(u().data,
|
|
2005
|
+
async function p(E) {
|
|
2006
|
+
const [y] = bt(E);
|
|
2007
|
+
if (!y) return;
|
|
2008
|
+
const [u, m] = Ln(t, y), [h, g, w, A] = ie.get(t), x = () => {
|
|
2009
|
+
const F = h[y];
|
|
2010
|
+
return (Z(i.revalidate) ? i.revalidate(u().data, E) : i.revalidate !== !1) && (delete w[y], delete A[y], F && F[0]) ? F[0](xn).then(() => u().data) : u().data;
|
|
2024
2011
|
};
|
|
2025
2012
|
if (e.length < 3)
|
|
2026
2013
|
return x();
|
|
2027
2014
|
let R = r, P, _ = !1;
|
|
2028
2015
|
const X = mt();
|
|
2029
|
-
|
|
2016
|
+
g[y] = [
|
|
2030
2017
|
X,
|
|
2031
2018
|
0
|
|
2032
2019
|
];
|
|
2033
|
-
const O = !
|
|
2034
|
-
if (O && (d = Z(d) ? d(
|
|
2020
|
+
const O = !b(d), ee = u(), H = ee.data, W = ee._c, M = b(W) ? H : W;
|
|
2021
|
+
if (O && (d = Z(d) ? d(M, H) : d, m({
|
|
2035
2022
|
data: d,
|
|
2036
|
-
_c:
|
|
2023
|
+
_c: M
|
|
2037
2024
|
})), Z(R))
|
|
2038
2025
|
try {
|
|
2039
|
-
R = R(
|
|
2026
|
+
R = R(M);
|
|
2040
2027
|
} catch (F) {
|
|
2041
2028
|
P = F, _ = !0;
|
|
2042
2029
|
}
|
|
2043
|
-
if (R &&
|
|
2030
|
+
if (R && Dn(R))
|
|
2044
2031
|
if (R = await R.catch((F) => {
|
|
2045
2032
|
P = F, _ = !0;
|
|
2046
|
-
}), X !==
|
|
2033
|
+
}), X !== g[y][0]) {
|
|
2047
2034
|
if (_) throw P;
|
|
2048
2035
|
return R;
|
|
2049
2036
|
} else _ && O && f(P) && (o = !0, m({
|
|
2050
|
-
data:
|
|
2037
|
+
data: M,
|
|
2051
2038
|
_c: U
|
|
2052
2039
|
}));
|
|
2053
2040
|
if (o && !_)
|
|
2054
2041
|
if (Z(o)) {
|
|
2055
|
-
const F = o(R,
|
|
2042
|
+
const F = o(R, M);
|
|
2056
2043
|
m({
|
|
2057
2044
|
data: F,
|
|
2058
2045
|
error: U,
|
|
@@ -2064,7 +2051,7 @@ async function Fn(...e) {
|
|
|
2064
2051
|
error: U,
|
|
2065
2052
|
_c: U
|
|
2066
2053
|
});
|
|
2067
|
-
if (
|
|
2054
|
+
if (g[y][1] = mt(), Promise.resolve(x()).then(() => {
|
|
2068
2055
|
m({
|
|
2069
2056
|
_c: U
|
|
2070
2057
|
});
|
|
@@ -2078,19 +2065,19 @@ async function Fn(...e) {
|
|
|
2078
2065
|
const Qt = (e, t) => {
|
|
2079
2066
|
for (const n in e)
|
|
2080
2067
|
e[n][0] && e[n][0](t);
|
|
2081
|
-
},
|
|
2068
|
+
}, vs = (e, t) => {
|
|
2082
2069
|
if (!ie.has(e)) {
|
|
2083
|
-
const n = ce(
|
|
2070
|
+
const n = ce(Ds, t), r = /* @__PURE__ */ Object.create(null), s = Nn.bind(U, e);
|
|
2084
2071
|
let i = ae;
|
|
2085
2072
|
const o = /* @__PURE__ */ Object.create(null), a = (l, p) => {
|
|
2086
|
-
const
|
|
2087
|
-
return o[l] =
|
|
2088
|
-
}, d = (l, p,
|
|
2073
|
+
const E = o[l] || [];
|
|
2074
|
+
return o[l] = E, E.push(p), () => E.splice(E.indexOf(p), 1);
|
|
2075
|
+
}, d = (l, p, E) => {
|
|
2089
2076
|
e.set(l, p);
|
|
2090
|
-
const
|
|
2091
|
-
if (
|
|
2092
|
-
for (const u of
|
|
2093
|
-
u(p,
|
|
2077
|
+
const y = o[l];
|
|
2078
|
+
if (y)
|
|
2079
|
+
for (const u of y)
|
|
2080
|
+
u(p, E);
|
|
2094
2081
|
}, f = () => {
|
|
2095
2082
|
if (!ie.has(e) && (ie.set(e, [
|
|
2096
2083
|
r,
|
|
@@ -2100,8 +2087,8 @@ const Qt = (e, t) => {
|
|
|
2100
2087
|
s,
|
|
2101
2088
|
d,
|
|
2102
2089
|
a
|
|
2103
|
-
]), !
|
|
2104
|
-
const l = n.initFocus(setTimeout.bind(U, Qt.bind(U, r,
|
|
2090
|
+
]), !Ee)) {
|
|
2091
|
+
const l = n.initFocus(setTimeout.bind(U, Qt.bind(U, r, _n))), p = n.initReconnect(setTimeout.bind(U, Qt.bind(U, r, Cn)));
|
|
2105
2092
|
i = () => {
|
|
2106
2093
|
l && l(), p && p(), ie.delete(e);
|
|
2107
2094
|
};
|
|
@@ -2118,16 +2105,16 @@ const Qt = (e, t) => {
|
|
|
2118
2105
|
e,
|
|
2119
2106
|
ie.get(e)[4]
|
|
2120
2107
|
];
|
|
2121
|
-
},
|
|
2108
|
+
}, Us = (e, t, n, r, s) => {
|
|
2122
2109
|
const i = n.errorRetryCount, o = s.retryCount, a = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * n.errorRetryInterval;
|
|
2123
|
-
!
|
|
2124
|
-
},
|
|
2110
|
+
!b(i) && o > i || setTimeout(r, a, s);
|
|
2111
|
+
}, Is = ct, [Fn, Bs] = vs(/* @__PURE__ */ new Map()), js = ce(
|
|
2125
2112
|
{
|
|
2126
2113
|
// events
|
|
2127
2114
|
onLoadingSlow: ae,
|
|
2128
2115
|
onSuccess: ae,
|
|
2129
2116
|
onError: ae,
|
|
2130
|
-
onErrorRetry:
|
|
2117
|
+
onErrorRetry: Us,
|
|
2131
2118
|
onDiscarded: ae,
|
|
2132
2119
|
// switches
|
|
2133
2120
|
revalidateOnFocus: !0,
|
|
@@ -2140,24 +2127,24 @@ const Qt = (e, t) => {
|
|
|
2140
2127
|
dedupingInterval: 2 * 1e3,
|
|
2141
2128
|
loadingTimeout: Yt ? 5e3 : 3e3,
|
|
2142
2129
|
// providers
|
|
2143
|
-
compare:
|
|
2130
|
+
compare: Is,
|
|
2144
2131
|
isPaused: () => !1,
|
|
2145
|
-
cache:
|
|
2132
|
+
cache: Fn,
|
|
2146
2133
|
mutate: Bs,
|
|
2147
2134
|
fallback: {}
|
|
2148
2135
|
},
|
|
2149
2136
|
// use web preset by default
|
|
2150
|
-
|
|
2151
|
-
),
|
|
2137
|
+
xs
|
|
2138
|
+
), ks = (e, t) => {
|
|
2152
2139
|
const n = ce(e, t);
|
|
2153
2140
|
if (t) {
|
|
2154
2141
|
const { use: r, fallback: s } = e, { use: i, fallback: o } = t;
|
|
2155
2142
|
r && i && (n.use = r.concat(i)), s && o && (n.fallback = ce(s, o));
|
|
2156
2143
|
}
|
|
2157
2144
|
return n;
|
|
2158
|
-
},
|
|
2159
|
-
|
|
2160
|
-
},
|
|
2145
|
+
}, qs = kn({}), Hs = "$inf$", Pn = xe && window.__SWR_DEVTOOLS_USE__, Ms = Pn ? window.__SWR_DEVTOOLS_USE__ : [], Vs = () => {
|
|
2146
|
+
Pn && (window.__SWR_DEVTOOLS_REACT__ = Oe);
|
|
2147
|
+
}, vn = (e) => Z(e[1]) ? [
|
|
2161
2148
|
e[0],
|
|
2162
2149
|
e[1],
|
|
2163
2150
|
e[2] || {}
|
|
@@ -2165,38 +2152,38 @@ const Qt = (e, t) => {
|
|
|
2165
2152
|
e[0],
|
|
2166
2153
|
null,
|
|
2167
2154
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
2168
|
-
],
|
|
2169
|
-
const e =
|
|
2170
|
-
return
|
|
2155
|
+
], $s = () => {
|
|
2156
|
+
const e = Mn(qs);
|
|
2157
|
+
return en(() => ce(js, e), [
|
|
2171
2158
|
e
|
|
2172
2159
|
]);
|
|
2173
|
-
},
|
|
2174
|
-
const [o] =
|
|
2175
|
-
if (o.startsWith(
|
|
2160
|
+
}, Ws = (e) => (t, n, r) => e(t, n && ((...i) => {
|
|
2161
|
+
const [o] = bt(t), [, , , a] = ie.get(Fn);
|
|
2162
|
+
if (o.startsWith(Hs))
|
|
2176
2163
|
return n(...i);
|
|
2177
2164
|
const d = a[o];
|
|
2178
|
-
return
|
|
2179
|
-
}), r),
|
|
2180
|
-
const r =
|
|
2165
|
+
return b(d) ? n(...i) : (delete a[o], d);
|
|
2166
|
+
}), r), zs = Ms.concat(Ws), Js = (e) => function(...n) {
|
|
2167
|
+
const r = $s(), [s, i, o] = vn(n), a = ks(r, o);
|
|
2181
2168
|
let d = e;
|
|
2182
|
-
const { use: f } = a, l = (f || []).concat(
|
|
2169
|
+
const { use: f } = a, l = (f || []).concat(zs);
|
|
2183
2170
|
for (let p = l.length; p--; )
|
|
2184
2171
|
d = l[p](d);
|
|
2185
2172
|
return d(s, i || a.fetcher || null, a);
|
|
2186
|
-
},
|
|
2173
|
+
}, Ks = (e, t, n) => {
|
|
2187
2174
|
const r = t[e] || (t[e] = []);
|
|
2188
2175
|
return r.push(n), () => {
|
|
2189
2176
|
const s = r.indexOf(n);
|
|
2190
2177
|
s >= 0 && (r[s] = r[r.length - 1], r.pop());
|
|
2191
2178
|
};
|
|
2192
|
-
},
|
|
2193
|
-
const [r, s, i] =
|
|
2179
|
+
}, yo = (e, t) => (...n) => {
|
|
2180
|
+
const [r, s, i] = vn(n), o = (i.use || []).concat(t);
|
|
2194
2181
|
return e(r, s, {
|
|
2195
2182
|
...i,
|
|
2196
2183
|
use: o
|
|
2197
2184
|
});
|
|
2198
2185
|
};
|
|
2199
|
-
|
|
2186
|
+
Vs();
|
|
2200
2187
|
const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
|
|
2201
2188
|
// and emitting an error.
|
|
2202
2189
|
// We assume that this is only for the `use(thenable)` case, not `use(context)`.
|
|
@@ -2218,31 +2205,31 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2218
2205
|
}
|
|
2219
2206
|
}), rt = {
|
|
2220
2207
|
dedupe: !0
|
|
2221
|
-
}, Zt = Promise.resolve(U),
|
|
2222
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: a, revalidateIfStale: d, refreshInterval: f, refreshWhenHidden: l, refreshWhenOffline: p, keepPreviousData:
|
|
2208
|
+
}, Zt = Promise.resolve(U), Gs = (e, t, n) => {
|
|
2209
|
+
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: a, revalidateIfStale: d, refreshInterval: f, refreshWhenHidden: l, refreshWhenOffline: p, keepPreviousData: E, strictServerPrefetchWarning: y } = n, [u, m, h, g] = ie.get(r), [w, A] = bt(e), x = le(!1), R = le(!1), P = le(w), _ = le(t), X = le(n), O = () => X.current, ee = () => O().isVisible() && O().isOnline(), [H, W, M, F] = Ln(r, w), te = le({}).current, B = b(o) ? b(n.fallback) ? U : n.fallback[w] : o, ge = (T, C) => {
|
|
2223
2210
|
for (const L in te) {
|
|
2224
2211
|
const D = L;
|
|
2225
2212
|
if (D === "data") {
|
|
2226
|
-
if (!s(T[D], C[D]) && (!
|
|
2213
|
+
if (!s(T[D], C[D]) && (!b(T[D]) || !s(Le, C[D])))
|
|
2227
2214
|
return !1;
|
|
2228
2215
|
} else if (C[D] !== T[D])
|
|
2229
2216
|
return !1;
|
|
2230
2217
|
}
|
|
2231
2218
|
return !0;
|
|
2232
|
-
}, z =
|
|
2233
|
-
const T = !w || !t ? !1 :
|
|
2234
|
-
const se = ce(
|
|
2219
|
+
}, z = en(() => {
|
|
2220
|
+
const T = !w || !t ? !1 : b(a) ? O().isPaused() || i ? !1 : d !== !1 : a, C = (j) => {
|
|
2221
|
+
const se = ce(j);
|
|
2235
2222
|
return delete se._k, T ? {
|
|
2236
2223
|
isValidating: !0,
|
|
2237
2224
|
isLoading: !0,
|
|
2238
2225
|
...se
|
|
2239
2226
|
} : se;
|
|
2240
|
-
}, L =
|
|
2227
|
+
}, L = H(), D = F(), K = C(L), me = L === D ? K : C(D);
|
|
2241
2228
|
let v = K;
|
|
2242
2229
|
return [
|
|
2243
2230
|
() => {
|
|
2244
|
-
const
|
|
2245
|
-
return
|
|
2231
|
+
const j = C(H());
|
|
2232
|
+
return ge(j, v) ? (v.data = j.data, v.isLoading = j.isLoading, v.isValidating = j.isValidating, v.error = j.error, v) : (v = j, j);
|
|
2246
2233
|
},
|
|
2247
2234
|
() => me
|
|
2248
2235
|
];
|
|
@@ -2250,24 +2237,24 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2250
2237
|
r,
|
|
2251
2238
|
w
|
|
2252
2239
|
]), ne = Jt.useSyncExternalStore(ze(
|
|
2253
|
-
(T) =>
|
|
2254
|
-
|
|
2240
|
+
(T) => M(w, (C, L) => {
|
|
2241
|
+
ge(L, C) || T();
|
|
2255
2242
|
}),
|
|
2256
2243
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2257
2244
|
[
|
|
2258
2245
|
r,
|
|
2259
2246
|
w
|
|
2260
2247
|
]
|
|
2261
|
-
), z[0], z[1]), De = !x.current, Y = u[w] && u[w].length > 0, V = ne.data, J =
|
|
2248
|
+
), z[0], z[1]), De = !x.current, Y = u[w] && u[w].length > 0, V = ne.data, J = b(V) ? B && Dn(B) ? nt(B) : B : V, re = ne.error, he = le(J), Le = E ? b(V) ? b(he.current) ? J : he.current : V : J, ue = w && b(J), Un = !Ee && // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2262
2249
|
Jt.useSyncExternalStore(() => ae, () => !1, () => !0);
|
|
2263
|
-
|
|
2264
|
-
const Rt = Y && !
|
|
2250
|
+
y && Un && !i && ue && console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
|
|
2251
|
+
const Rt = Y && !b(re) ? !1 : De && !b(a) ? a : O().isPaused() ? !1 : i ? b(J) ? !1 : d : b(J) || d, Ot = !!(w && t && De && Rt), In = b(ne.isValidating) ? Ot : ne.isValidating, Bn = b(ne.isLoading) ? Ot : ne.isLoading, be = ze(
|
|
2265
2252
|
async (T) => {
|
|
2266
2253
|
const C = _.current;
|
|
2267
2254
|
if (!w || !C || R.current || O().isPaused())
|
|
2268
2255
|
return !1;
|
|
2269
2256
|
let L, D, K = !0;
|
|
2270
|
-
const me = T || {}, v = !h[w] || !me.dedupe,
|
|
2257
|
+
const me = T || {}, v = !h[w] || !me.dedupe, j = () => Xt ? !R.current && w === P.current && x.current : w === P.current, se = {
|
|
2271
2258
|
isValidating: !1,
|
|
2272
2259
|
isLoading: !1
|
|
2273
2260
|
}, At = () => {
|
|
@@ -2278,30 +2265,30 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2278
2265
|
}, Ct = {
|
|
2279
2266
|
isValidating: !0
|
|
2280
2267
|
};
|
|
2281
|
-
|
|
2268
|
+
b(H().data) && (Ct.isLoading = !0);
|
|
2282
2269
|
try {
|
|
2283
|
-
if (v && (W(Ct), n.loadingTimeout &&
|
|
2284
|
-
K &&
|
|
2270
|
+
if (v && (W(Ct), n.loadingTimeout && b(H().data) && setTimeout(() => {
|
|
2271
|
+
K && j() && O().onLoadingSlow(w, n);
|
|
2285
2272
|
}, n.loadingTimeout), h[w] = [
|
|
2286
2273
|
C(A),
|
|
2287
2274
|
mt()
|
|
2288
2275
|
]), [L, D] = h[w], L = await L, v && setTimeout(_t, n.dedupingInterval), !h[w] || h[w][1] !== D)
|
|
2289
|
-
return v &&
|
|
2276
|
+
return v && j() && O().onDiscarded(w), !1;
|
|
2290
2277
|
se.error = U;
|
|
2291
2278
|
const $ = m[w];
|
|
2292
|
-
if (!
|
|
2279
|
+
if (!b($) && // case 1
|
|
2293
2280
|
(D <= $[0] || // case 2
|
|
2294
2281
|
D <= $[1] || // case 3
|
|
2295
2282
|
$[1] === 0))
|
|
2296
|
-
return At(), v &&
|
|
2297
|
-
const oe =
|
|
2298
|
-
se.data = s(oe, L) ? oe : L, v &&
|
|
2283
|
+
return At(), v && j() && O().onDiscarded(w), !1;
|
|
2284
|
+
const oe = H().data;
|
|
2285
|
+
se.data = s(oe, L) ? oe : L, v && j() && O().onSuccess(L, w, n);
|
|
2299
2286
|
} catch ($) {
|
|
2300
2287
|
_t();
|
|
2301
2288
|
const oe = O(), { shouldRetryOnError: $e } = oe;
|
|
2302
|
-
oe.isPaused() || (se.error = $, v &&
|
|
2289
|
+
oe.isPaused() || (se.error = $, v && j() && (oe.onError($, w, oe), ($e === !0 || Z($e) && $e($)) && (!O().revalidateOnFocus || !O().revalidateOnReconnect || ee()) && oe.onErrorRetry($, w, oe, (jn) => {
|
|
2303
2290
|
const We = u[w];
|
|
2304
|
-
We && We[0] && We[0](Kt,
|
|
2291
|
+
We && We[0] && We[0](Kt, jn);
|
|
2305
2292
|
}, {
|
|
2306
2293
|
retryCount: (me.retryCount || 0) + 1,
|
|
2307
2294
|
dedupe: !0
|
|
@@ -2326,33 +2313,33 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2326
2313
|
]
|
|
2327
2314
|
), Tt = ze(
|
|
2328
2315
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
2329
|
-
(...T) =>
|
|
2316
|
+
(...T) => Nn(r, P.current, ...T),
|
|
2330
2317
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2331
2318
|
[]
|
|
2332
2319
|
);
|
|
2333
2320
|
if (Ze(() => {
|
|
2334
|
-
_.current = t, X.current = n,
|
|
2321
|
+
_.current = t, X.current = n, b(V) || (he.current = V);
|
|
2335
2322
|
}), Ze(() => {
|
|
2336
2323
|
if (!w) return;
|
|
2337
|
-
const T =
|
|
2324
|
+
const T = be.bind(U, rt);
|
|
2338
2325
|
let C = 0;
|
|
2339
2326
|
O().revalidateOnFocus && (C = Date.now() + O().focusThrottleInterval);
|
|
2340
|
-
const D =
|
|
2341
|
-
if (K ==
|
|
2327
|
+
const D = Ks(w, u, (K, me = {}) => {
|
|
2328
|
+
if (K == _n) {
|
|
2342
2329
|
const v = Date.now();
|
|
2343
2330
|
O().revalidateOnFocus && v > C && ee() && (C = v + O().focusThrottleInterval, T());
|
|
2344
|
-
} else if (K ==
|
|
2331
|
+
} else if (K == Cn)
|
|
2345
2332
|
O().revalidateOnReconnect && ee() && T();
|
|
2346
2333
|
else {
|
|
2347
|
-
if (K ==
|
|
2348
|
-
return
|
|
2334
|
+
if (K == xn)
|
|
2335
|
+
return be();
|
|
2349
2336
|
if (K == Kt)
|
|
2350
|
-
return
|
|
2337
|
+
return be(me);
|
|
2351
2338
|
}
|
|
2352
2339
|
});
|
|
2353
2340
|
return R.current = !1, P.current = w, x.current = !0, W({
|
|
2354
2341
|
_k: A
|
|
2355
|
-
}), Rt && (h[w] || (
|
|
2342
|
+
}), Rt && (h[w] || (b(J) || Ee ? T() : Ls(T))), () => {
|
|
2356
2343
|
R.current = !0, D();
|
|
2357
2344
|
};
|
|
2358
2345
|
}, [
|
|
@@ -2360,11 +2347,11 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2360
2347
|
]), Ze(() => {
|
|
2361
2348
|
let T;
|
|
2362
2349
|
function C() {
|
|
2363
|
-
const D = Z(f) ? f(
|
|
2350
|
+
const D = Z(f) ? f(H().data) : f;
|
|
2364
2351
|
D && T !== -1 && (T = setTimeout(L, D));
|
|
2365
2352
|
}
|
|
2366
2353
|
function L() {
|
|
2367
|
-
!
|
|
2354
|
+
!H().error && (l || O().isVisible()) && (p || O().isOnline()) ? be(rt).then(C) : C();
|
|
2368
2355
|
}
|
|
2369
2356
|
return C(), () => {
|
|
2370
2357
|
T && (clearTimeout(T), T = -1);
|
|
@@ -2374,15 +2361,15 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2374
2361
|
l,
|
|
2375
2362
|
p,
|
|
2376
2363
|
w
|
|
2377
|
-
]),
|
|
2378
|
-
if (!Xt &&
|
|
2364
|
+
]), Vn(Le), i) {
|
|
2365
|
+
if (!Xt && Ee && ue)
|
|
2379
2366
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
2380
2367
|
ue && (_.current = t, X.current = n, R.current = !1);
|
|
2381
|
-
const T =
|
|
2382
|
-
if (nt(C), !
|
|
2368
|
+
const T = g[w], C = !b(T) && ue ? Tt(T) : Zt;
|
|
2369
|
+
if (nt(C), !b(re) && ue)
|
|
2383
2370
|
throw re;
|
|
2384
|
-
const L = ue ?
|
|
2385
|
-
!
|
|
2371
|
+
const L = ue ? be(rt) : Zt;
|
|
2372
|
+
!b(Le) && ue && (L.status = "fulfilled", L.value = !0), nt(L);
|
|
2386
2373
|
}
|
|
2387
2374
|
return {
|
|
2388
2375
|
mutate: Tt,
|
|
@@ -2393,27 +2380,15 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
2393
2380
|
return te.error = !0, re;
|
|
2394
2381
|
},
|
|
2395
2382
|
get isValidating() {
|
|
2396
|
-
return te.isValidating = !0,
|
|
2383
|
+
return te.isValidating = !0, In;
|
|
2397
2384
|
},
|
|
2398
2385
|
get isLoading() {
|
|
2399
|
-
return te.isLoading = !0,
|
|
2386
|
+
return te.isLoading = !0, Bn;
|
|
2400
2387
|
}
|
|
2401
2388
|
};
|
|
2402
|
-
},
|
|
2403
|
-
function Qs(e, t) {
|
|
2404
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" && en in e ? e[en](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2405
|
-
}
|
|
2406
|
-
function Co(e, t) {
|
|
2407
|
-
return Qs(t || e, e);
|
|
2408
|
-
}
|
|
2389
|
+
}, wo = Js(Gs);
|
|
2409
2390
|
export {
|
|
2410
|
-
no as L,
|
|
2411
2391
|
N as a,
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
To as d,
|
|
2415
|
-
_o as m,
|
|
2416
|
-
Co as t,
|
|
2417
|
-
Oo as u,
|
|
2418
|
-
Ro as w
|
|
2392
|
+
wo as u,
|
|
2393
|
+
yo as w
|
|
2419
2394
|
};
|