@svazqz/api-contract-kit 0.1.6-alpha
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/LICENSE.md +9 -0
- package/README.md +448 -0
- package/dist/api-contract-kit.cjs.js +2 -0
- package/dist/api-contract-kit.cjs.js.map +1 -0
- package/dist/api-contract-kit.d.ts +1 -0
- package/dist/api-contract-kit.es.js +65 -0
- package/dist/api-contract-kit.es.js.map +1 -0
- package/dist/client.cjs.js +2 -0
- package/dist/client.cjs.js.map +1 -0
- package/dist/client.d.ts +13 -0
- package/dist/client.es.js +68 -0
- package/dist/client.es.js.map +1 -0
- package/dist/next-api-generator.d.ts +3 -0
- package/dist/open-api/index.d.ts +18 -0
- package/dist/open-api.cjs.js +2 -0
- package/dist/open-api.cjs.js.map +1 -0
- package/dist/open-api.es.js +3969 -0
- package/dist/open-api.es.js.map +1 -0
- package/dist/react-query.cjs.js +53 -0
- package/dist/react-query.cjs.js.map +1 -0
- package/dist/react-query.d.ts +14 -0
- package/dist/react-query.es.js +3055 -0
- package/dist/react-query.es.js.map +1 -0
- package/dist/server.cjs.js +2 -0
- package/dist/server.cjs.js.map +1 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.es.js +2852 -0
- package/dist/server.es.js.map +1 -0
- package/dist/types.d.ts +67 -0
- package/dist/utils.d.ts +7 -0
- package/package.json +82 -0
|
@@ -0,0 +1,3055 @@
|
|
|
1
|
+
var Rn = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
3
|
+
};
|
|
4
|
+
var Dr = (i, t, a) => t.has(i) || Rn("Cannot " + a);
|
|
5
|
+
var c = (i, t, a) => (Dr(i, t, "read from private field"), a ? a.call(i) : t.get(i)), Y = (i, t, a) => t.has(i) ? Rn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, a), P = (i, t, a, l) => (Dr(i, t, "write to private field"), l ? l.call(i, a) : t.set(i, a), a), K = (i, t, a) => (Dr(i, t, "access private method"), a);
|
|
6
|
+
var lr = class {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
9
|
+
}
|
|
10
|
+
subscribe(i) {
|
|
11
|
+
return this.listeners.add(i), this.onSubscribe(), () => {
|
|
12
|
+
this.listeners.delete(i), this.onUnsubscribe();
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
hasListeners() {
|
|
16
|
+
return this.listeners.size > 0;
|
|
17
|
+
}
|
|
18
|
+
onSubscribe() {
|
|
19
|
+
}
|
|
20
|
+
onUnsubscribe() {
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function bi(i) {
|
|
24
|
+
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
25
|
+
}
|
|
26
|
+
var Vn = { exports: {} }, ae = Vn.exports = {}, Ae, Fe;
|
|
27
|
+
function Lr() {
|
|
28
|
+
throw new Error("setTimeout has not been defined");
|
|
29
|
+
}
|
|
30
|
+
function Mr() {
|
|
31
|
+
throw new Error("clearTimeout has not been defined");
|
|
32
|
+
}
|
|
33
|
+
(function() {
|
|
34
|
+
try {
|
|
35
|
+
typeof setTimeout == "function" ? Ae = setTimeout : Ae = Lr;
|
|
36
|
+
} catch {
|
|
37
|
+
Ae = Lr;
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
typeof clearTimeout == "function" ? Fe = clearTimeout : Fe = Mr;
|
|
41
|
+
} catch {
|
|
42
|
+
Fe = Mr;
|
|
43
|
+
}
|
|
44
|
+
})();
|
|
45
|
+
function Wn(i) {
|
|
46
|
+
if (Ae === setTimeout)
|
|
47
|
+
return setTimeout(i, 0);
|
|
48
|
+
if ((Ae === Lr || !Ae) && setTimeout)
|
|
49
|
+
return Ae = setTimeout, setTimeout(i, 0);
|
|
50
|
+
try {
|
|
51
|
+
return Ae(i, 0);
|
|
52
|
+
} catch {
|
|
53
|
+
try {
|
|
54
|
+
return Ae.call(null, i, 0);
|
|
55
|
+
} catch {
|
|
56
|
+
return Ae.call(this, i, 0);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function gi(i) {
|
|
61
|
+
if (Fe === clearTimeout)
|
|
62
|
+
return clearTimeout(i);
|
|
63
|
+
if ((Fe === Mr || !Fe) && clearTimeout)
|
|
64
|
+
return Fe = clearTimeout, clearTimeout(i);
|
|
65
|
+
try {
|
|
66
|
+
return Fe(i);
|
|
67
|
+
} catch {
|
|
68
|
+
try {
|
|
69
|
+
return Fe.call(null, i);
|
|
70
|
+
} catch {
|
|
71
|
+
return Fe.call(this, i);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
var Ne = [], gt = !1, at, sr = -1;
|
|
76
|
+
function _i() {
|
|
77
|
+
!gt || !at || (gt = !1, at.length ? Ne = at.concat(Ne) : sr = -1, Ne.length && Yn());
|
|
78
|
+
}
|
|
79
|
+
function Yn() {
|
|
80
|
+
if (!gt) {
|
|
81
|
+
var i = Wn(_i);
|
|
82
|
+
gt = !0;
|
|
83
|
+
for (var t = Ne.length; t; ) {
|
|
84
|
+
for (at = Ne, Ne = []; ++sr < t; )
|
|
85
|
+
at && at[sr].run();
|
|
86
|
+
sr = -1, t = Ne.length;
|
|
87
|
+
}
|
|
88
|
+
at = null, gt = !1, gi(i);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
ae.nextTick = function(i) {
|
|
92
|
+
var t = new Array(arguments.length - 1);
|
|
93
|
+
if (arguments.length > 1)
|
|
94
|
+
for (var a = 1; a < arguments.length; a++)
|
|
95
|
+
t[a - 1] = arguments[a];
|
|
96
|
+
Ne.push(new qn(i, t)), Ne.length === 1 && !gt && Wn(Yn);
|
|
97
|
+
};
|
|
98
|
+
function qn(i, t) {
|
|
99
|
+
this.fun = i, this.array = t;
|
|
100
|
+
}
|
|
101
|
+
qn.prototype.run = function() {
|
|
102
|
+
this.fun.apply(null, this.array);
|
|
103
|
+
};
|
|
104
|
+
ae.title = "browser";
|
|
105
|
+
ae.browser = !0;
|
|
106
|
+
ae.env = {};
|
|
107
|
+
ae.argv = [];
|
|
108
|
+
ae.version = "";
|
|
109
|
+
ae.versions = {};
|
|
110
|
+
function Ve() {
|
|
111
|
+
}
|
|
112
|
+
ae.on = Ve;
|
|
113
|
+
ae.addListener = Ve;
|
|
114
|
+
ae.once = Ve;
|
|
115
|
+
ae.off = Ve;
|
|
116
|
+
ae.removeListener = Ve;
|
|
117
|
+
ae.removeAllListeners = Ve;
|
|
118
|
+
ae.emit = Ve;
|
|
119
|
+
ae.prependListener = Ve;
|
|
120
|
+
ae.prependOnceListener = Ve;
|
|
121
|
+
ae.listeners = function(i) {
|
|
122
|
+
return [];
|
|
123
|
+
};
|
|
124
|
+
ae.binding = function(i) {
|
|
125
|
+
throw new Error("process.binding is not supported");
|
|
126
|
+
};
|
|
127
|
+
ae.cwd = function() {
|
|
128
|
+
return "/";
|
|
129
|
+
};
|
|
130
|
+
ae.chdir = function(i) {
|
|
131
|
+
throw new Error("process.chdir is not supported");
|
|
132
|
+
};
|
|
133
|
+
ae.umask = function() {
|
|
134
|
+
return 0;
|
|
135
|
+
};
|
|
136
|
+
var Ei = Vn.exports;
|
|
137
|
+
const Tt = /* @__PURE__ */ bi(Ei);
|
|
138
|
+
var $t = typeof window > "u" || "Deno" in globalThis;
|
|
139
|
+
function Ri() {
|
|
140
|
+
}
|
|
141
|
+
function wn(i) {
|
|
142
|
+
return typeof i == "number" && i >= 0 && i !== 1 / 0;
|
|
143
|
+
}
|
|
144
|
+
function wi(i, t) {
|
|
145
|
+
return Math.max(i + (t || 0) - Date.now(), 0);
|
|
146
|
+
}
|
|
147
|
+
function or(i, t) {
|
|
148
|
+
return typeof i == "function" ? i(t) : i;
|
|
149
|
+
}
|
|
150
|
+
function De(i, t) {
|
|
151
|
+
return typeof i == "function" ? i(t) : i;
|
|
152
|
+
}
|
|
153
|
+
function Cn(i) {
|
|
154
|
+
return JSON.stringify(
|
|
155
|
+
i,
|
|
156
|
+
(t, a) => Nr(a) ? Object.keys(a).sort().reduce((l, p) => (l[p] = a[p], l), {}) : a
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
function Ur(i, t) {
|
|
160
|
+
if (i === t)
|
|
161
|
+
return i;
|
|
162
|
+
const a = On(i) && On(t);
|
|
163
|
+
if (a || Nr(i) && Nr(t)) {
|
|
164
|
+
const l = a ? i : Object.keys(i), p = l.length, g = a ? t : Object.keys(t), y = g.length, _ = a ? [] : {};
|
|
165
|
+
let E = 0;
|
|
166
|
+
for (let T = 0; T < y; T++) {
|
|
167
|
+
const R = a ? T : g[T];
|
|
168
|
+
(!a && l.includes(R) || a) && i[R] === void 0 && t[R] === void 0 ? (_[R] = void 0, E++) : (_[R] = Ur(i[R], t[R]), _[R] === i[R] && i[R] !== void 0 && E++);
|
|
169
|
+
}
|
|
170
|
+
return p === y && E === p ? i : _;
|
|
171
|
+
}
|
|
172
|
+
return t;
|
|
173
|
+
}
|
|
174
|
+
function cr(i, t) {
|
|
175
|
+
if (!t || Object.keys(i).length !== Object.keys(t).length)
|
|
176
|
+
return !1;
|
|
177
|
+
for (const a in i)
|
|
178
|
+
if (i[a] !== t[a])
|
|
179
|
+
return !1;
|
|
180
|
+
return !0;
|
|
181
|
+
}
|
|
182
|
+
function On(i) {
|
|
183
|
+
return Array.isArray(i) && i.length === Object.keys(i).length;
|
|
184
|
+
}
|
|
185
|
+
function Nr(i) {
|
|
186
|
+
if (!Sn(i))
|
|
187
|
+
return !1;
|
|
188
|
+
const t = i.constructor;
|
|
189
|
+
if (t === void 0)
|
|
190
|
+
return !0;
|
|
191
|
+
const a = t.prototype;
|
|
192
|
+
return !(!Sn(a) || !a.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(i) !== Object.prototype);
|
|
193
|
+
}
|
|
194
|
+
function Sn(i) {
|
|
195
|
+
return Object.prototype.toString.call(i) === "[object Object]";
|
|
196
|
+
}
|
|
197
|
+
function Tn(i, t, a) {
|
|
198
|
+
if (typeof a.structuralSharing == "function")
|
|
199
|
+
return a.structuralSharing(i, t);
|
|
200
|
+
if (a.structuralSharing !== !1) {
|
|
201
|
+
if (Tt.env.NODE_ENV !== "production")
|
|
202
|
+
try {
|
|
203
|
+
return Ur(i, t);
|
|
204
|
+
} catch (l) {
|
|
205
|
+
console.error(
|
|
206
|
+
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${a.queryHash}]: ${l}`
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
return Ur(i, t);
|
|
210
|
+
}
|
|
211
|
+
return t;
|
|
212
|
+
}
|
|
213
|
+
var st, Be, _t, Mn, Ci = (Mn = class extends lr {
|
|
214
|
+
constructor() {
|
|
215
|
+
super();
|
|
216
|
+
Y(this, st);
|
|
217
|
+
Y(this, Be);
|
|
218
|
+
Y(this, _t);
|
|
219
|
+
P(this, _t, (t) => {
|
|
220
|
+
if (!$t && window.addEventListener) {
|
|
221
|
+
const a = () => t();
|
|
222
|
+
return window.addEventListener("visibilitychange", a, !1), () => {
|
|
223
|
+
window.removeEventListener("visibilitychange", a);
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
onSubscribe() {
|
|
229
|
+
c(this, Be) || this.setEventListener(c(this, _t));
|
|
230
|
+
}
|
|
231
|
+
onUnsubscribe() {
|
|
232
|
+
var t;
|
|
233
|
+
this.hasListeners() || ((t = c(this, Be)) == null || t.call(this), P(this, Be, void 0));
|
|
234
|
+
}
|
|
235
|
+
setEventListener(t) {
|
|
236
|
+
var a;
|
|
237
|
+
P(this, _t, t), (a = c(this, Be)) == null || a.call(this), P(this, Be, t((l) => {
|
|
238
|
+
typeof l == "boolean" ? this.setFocused(l) : this.onFocus();
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
setFocused(t) {
|
|
242
|
+
c(this, st) !== t && (P(this, st, t), this.onFocus());
|
|
243
|
+
}
|
|
244
|
+
onFocus() {
|
|
245
|
+
const t = this.isFocused();
|
|
246
|
+
this.listeners.forEach((a) => {
|
|
247
|
+
a(t);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
isFocused() {
|
|
251
|
+
var t;
|
|
252
|
+
return typeof c(this, st) == "boolean" ? c(this, st) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
253
|
+
}
|
|
254
|
+
}, st = new WeakMap(), Be = new WeakMap(), _t = new WeakMap(), Mn), Oi = new Ci(), Et, ze, Rt, Un, Si = (Un = class extends lr {
|
|
255
|
+
constructor() {
|
|
256
|
+
super();
|
|
257
|
+
Y(this, Et, !0);
|
|
258
|
+
Y(this, ze);
|
|
259
|
+
Y(this, Rt);
|
|
260
|
+
P(this, Rt, (t) => {
|
|
261
|
+
if (!$t && window.addEventListener) {
|
|
262
|
+
const a = () => t(!0), l = () => t(!1);
|
|
263
|
+
return window.addEventListener("online", a, !1), window.addEventListener("offline", l, !1), () => {
|
|
264
|
+
window.removeEventListener("online", a), window.removeEventListener("offline", l);
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
onSubscribe() {
|
|
270
|
+
c(this, ze) || this.setEventListener(c(this, Rt));
|
|
271
|
+
}
|
|
272
|
+
onUnsubscribe() {
|
|
273
|
+
var t;
|
|
274
|
+
this.hasListeners() || ((t = c(this, ze)) == null || t.call(this), P(this, ze, void 0));
|
|
275
|
+
}
|
|
276
|
+
setEventListener(t) {
|
|
277
|
+
var a;
|
|
278
|
+
P(this, Rt, t), (a = c(this, ze)) == null || a.call(this), P(this, ze, t(this.setOnline.bind(this)));
|
|
279
|
+
}
|
|
280
|
+
setOnline(t) {
|
|
281
|
+
c(this, Et) !== t && (P(this, Et, t), this.listeners.forEach((l) => {
|
|
282
|
+
l(t);
|
|
283
|
+
}));
|
|
284
|
+
}
|
|
285
|
+
isOnline() {
|
|
286
|
+
return c(this, Et);
|
|
287
|
+
}
|
|
288
|
+
}, Et = new WeakMap(), ze = new WeakMap(), Rt = new WeakMap(), Un), Ti = new Si();
|
|
289
|
+
function Pn() {
|
|
290
|
+
let i, t;
|
|
291
|
+
const a = new Promise((p, g) => {
|
|
292
|
+
i = p, t = g;
|
|
293
|
+
});
|
|
294
|
+
a.status = "pending", a.catch(() => {
|
|
295
|
+
});
|
|
296
|
+
function l(p) {
|
|
297
|
+
Object.assign(a, p), delete a.resolve, delete a.reject;
|
|
298
|
+
}
|
|
299
|
+
return a.resolve = (p) => {
|
|
300
|
+
l({
|
|
301
|
+
status: "fulfilled",
|
|
302
|
+
value: p
|
|
303
|
+
}), i(p);
|
|
304
|
+
}, a.reject = (p) => {
|
|
305
|
+
l({
|
|
306
|
+
status: "rejected",
|
|
307
|
+
reason: p
|
|
308
|
+
}), t(p);
|
|
309
|
+
}, a;
|
|
310
|
+
}
|
|
311
|
+
function Pi(i) {
|
|
312
|
+
return (i ?? "online") === "online" ? Ti.isOnline() : !0;
|
|
313
|
+
}
|
|
314
|
+
function ki() {
|
|
315
|
+
let i = [], t = 0, a = (_) => {
|
|
316
|
+
_();
|
|
317
|
+
}, l = (_) => {
|
|
318
|
+
_();
|
|
319
|
+
}, p = (_) => setTimeout(_, 0);
|
|
320
|
+
const g = (_) => {
|
|
321
|
+
t ? i.push(_) : p(() => {
|
|
322
|
+
a(_);
|
|
323
|
+
});
|
|
324
|
+
}, y = () => {
|
|
325
|
+
const _ = i;
|
|
326
|
+
i = [], _.length && p(() => {
|
|
327
|
+
l(() => {
|
|
328
|
+
_.forEach((E) => {
|
|
329
|
+
a(E);
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
};
|
|
334
|
+
return {
|
|
335
|
+
batch: (_) => {
|
|
336
|
+
let E;
|
|
337
|
+
t++;
|
|
338
|
+
try {
|
|
339
|
+
E = _();
|
|
340
|
+
} finally {
|
|
341
|
+
t--, t || y();
|
|
342
|
+
}
|
|
343
|
+
return E;
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* All calls to the wrapped function will be batched.
|
|
347
|
+
*/
|
|
348
|
+
batchCalls: (_) => (...E) => {
|
|
349
|
+
g(() => {
|
|
350
|
+
_(...E);
|
|
351
|
+
});
|
|
352
|
+
},
|
|
353
|
+
schedule: g,
|
|
354
|
+
/**
|
|
355
|
+
* Use this method to set a custom notify function.
|
|
356
|
+
* This can be used to for example wrap notifications with `React.act` while running tests.
|
|
357
|
+
*/
|
|
358
|
+
setNotifyFunction: (_) => {
|
|
359
|
+
a = _;
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* Use this method to set a custom function to batch notifications together into a single tick.
|
|
363
|
+
* By default React Query will use the batch function provided by ReactDOM or React Native.
|
|
364
|
+
*/
|
|
365
|
+
setBatchNotifyFunction: (_) => {
|
|
366
|
+
l = _;
|
|
367
|
+
},
|
|
368
|
+
setScheduler: (_) => {
|
|
369
|
+
p = _;
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
var fr = ki();
|
|
374
|
+
function ji(i, t) {
|
|
375
|
+
return {
|
|
376
|
+
fetchFailureCount: 0,
|
|
377
|
+
fetchFailureReason: null,
|
|
378
|
+
fetchStatus: Pi(t.networkMode) ? "fetching" : "paused",
|
|
379
|
+
...i === void 0 && {
|
|
380
|
+
error: null,
|
|
381
|
+
status: "pending"
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
function xi() {
|
|
386
|
+
return {
|
|
387
|
+
context: void 0,
|
|
388
|
+
data: void 0,
|
|
389
|
+
error: null,
|
|
390
|
+
failureCount: 0,
|
|
391
|
+
failureReason: null,
|
|
392
|
+
isPaused: !1,
|
|
393
|
+
status: "idle",
|
|
394
|
+
variables: void 0,
|
|
395
|
+
submittedAt: 0
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
var we, I, Vt, me, ot, wt, Ke, Ie, Wt, Ct, Ot, ut, ct, He, St, U, Ut, $r, Vr, Wr, Yr, qr, Qr, Br, Qn, Nn, Ai = (Nn = class extends lr {
|
|
399
|
+
constructor(t, a) {
|
|
400
|
+
super();
|
|
401
|
+
Y(this, U);
|
|
402
|
+
Y(this, we);
|
|
403
|
+
Y(this, I);
|
|
404
|
+
Y(this, Vt);
|
|
405
|
+
Y(this, me);
|
|
406
|
+
Y(this, ot);
|
|
407
|
+
Y(this, wt);
|
|
408
|
+
Y(this, Ke);
|
|
409
|
+
Y(this, Ie);
|
|
410
|
+
Y(this, Wt);
|
|
411
|
+
Y(this, Ct);
|
|
412
|
+
// This property keeps track of the last query with defined data.
|
|
413
|
+
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
414
|
+
Y(this, Ot);
|
|
415
|
+
Y(this, ut);
|
|
416
|
+
Y(this, ct);
|
|
417
|
+
Y(this, He);
|
|
418
|
+
Y(this, St, /* @__PURE__ */ new Set());
|
|
419
|
+
this.options = a, P(this, we, t), P(this, Ie, null), P(this, Ke, Pn()), this.options.experimental_prefetchInRender || c(this, Ke).reject(
|
|
420
|
+
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
421
|
+
), this.bindMethods(), this.setOptions(a);
|
|
422
|
+
}
|
|
423
|
+
bindMethods() {
|
|
424
|
+
this.refetch = this.refetch.bind(this);
|
|
425
|
+
}
|
|
426
|
+
onSubscribe() {
|
|
427
|
+
this.listeners.size === 1 && (c(this, I).addObserver(this), kn(c(this, I), this.options) ? K(this, U, Ut).call(this) : this.updateResult(), K(this, U, Yr).call(this));
|
|
428
|
+
}
|
|
429
|
+
onUnsubscribe() {
|
|
430
|
+
this.hasListeners() || this.destroy();
|
|
431
|
+
}
|
|
432
|
+
shouldFetchOnReconnect() {
|
|
433
|
+
return zr(
|
|
434
|
+
c(this, I),
|
|
435
|
+
this.options,
|
|
436
|
+
this.options.refetchOnReconnect
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
shouldFetchOnWindowFocus() {
|
|
440
|
+
return zr(
|
|
441
|
+
c(this, I),
|
|
442
|
+
this.options,
|
|
443
|
+
this.options.refetchOnWindowFocus
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
destroy() {
|
|
447
|
+
this.listeners = /* @__PURE__ */ new Set(), K(this, U, qr).call(this), K(this, U, Qr).call(this), c(this, I).removeObserver(this);
|
|
448
|
+
}
|
|
449
|
+
setOptions(t, a) {
|
|
450
|
+
const l = this.options, p = c(this, I);
|
|
451
|
+
if (this.options = c(this, we).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof De(this.options.enabled, c(this, I)) != "boolean")
|
|
452
|
+
throw new Error(
|
|
453
|
+
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
454
|
+
);
|
|
455
|
+
K(this, U, Br).call(this), c(this, I).setOptions(this.options), l._defaulted && !cr(this.options, l) && c(this, we).getQueryCache().notify({
|
|
456
|
+
type: "observerOptionsUpdated",
|
|
457
|
+
query: c(this, I),
|
|
458
|
+
observer: this
|
|
459
|
+
});
|
|
460
|
+
const g = this.hasListeners();
|
|
461
|
+
g && jn(
|
|
462
|
+
c(this, I),
|
|
463
|
+
p,
|
|
464
|
+
this.options,
|
|
465
|
+
l
|
|
466
|
+
) && K(this, U, Ut).call(this), this.updateResult(a), g && (c(this, I) !== p || De(this.options.enabled, c(this, I)) !== De(l.enabled, c(this, I)) || or(this.options.staleTime, c(this, I)) !== or(l.staleTime, c(this, I))) && K(this, U, $r).call(this);
|
|
467
|
+
const y = K(this, U, Vr).call(this);
|
|
468
|
+
g && (c(this, I) !== p || De(this.options.enabled, c(this, I)) !== De(l.enabled, c(this, I)) || y !== c(this, He)) && K(this, U, Wr).call(this, y);
|
|
469
|
+
}
|
|
470
|
+
getOptimisticResult(t) {
|
|
471
|
+
const a = c(this, we).getQueryCache().build(c(this, we), t), l = this.createResult(a, t);
|
|
472
|
+
return Ii(this, l) && (P(this, me, l), P(this, wt, this.options), P(this, ot, c(this, I).state)), l;
|
|
473
|
+
}
|
|
474
|
+
getCurrentResult() {
|
|
475
|
+
return c(this, me);
|
|
476
|
+
}
|
|
477
|
+
trackResult(t, a) {
|
|
478
|
+
const l = {};
|
|
479
|
+
return Object.keys(t).forEach((p) => {
|
|
480
|
+
Object.defineProperty(l, p, {
|
|
481
|
+
configurable: !1,
|
|
482
|
+
enumerable: !0,
|
|
483
|
+
get: () => (this.trackProp(p), a == null || a(p), t[p])
|
|
484
|
+
});
|
|
485
|
+
}), l;
|
|
486
|
+
}
|
|
487
|
+
trackProp(t) {
|
|
488
|
+
c(this, St).add(t);
|
|
489
|
+
}
|
|
490
|
+
getCurrentQuery() {
|
|
491
|
+
return c(this, I);
|
|
492
|
+
}
|
|
493
|
+
refetch({ ...t } = {}) {
|
|
494
|
+
return this.fetch({
|
|
495
|
+
...t
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
fetchOptimistic(t) {
|
|
499
|
+
const a = c(this, we).defaultQueryOptions(t), l = c(this, we).getQueryCache().build(c(this, we), a);
|
|
500
|
+
return l.fetch().then(() => this.createResult(l, a));
|
|
501
|
+
}
|
|
502
|
+
fetch(t) {
|
|
503
|
+
return K(this, U, Ut).call(this, {
|
|
504
|
+
...t,
|
|
505
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
506
|
+
}).then(() => (this.updateResult(), c(this, me)));
|
|
507
|
+
}
|
|
508
|
+
createResult(t, a) {
|
|
509
|
+
var Se;
|
|
510
|
+
const l = c(this, I), p = this.options, g = c(this, me), y = c(this, ot), _ = c(this, wt), T = t !== l ? t.state : c(this, Vt), { state: R } = t;
|
|
511
|
+
let O = { ...R }, re = !1, N;
|
|
512
|
+
if (a._optimisticResults) {
|
|
513
|
+
const X = this.hasListeners(), ge = !X && kn(t, a), Te = X && jn(t, l, a, p);
|
|
514
|
+
(ge || Te) && (O = {
|
|
515
|
+
...O,
|
|
516
|
+
...ji(R.data, t.options)
|
|
517
|
+
}), a._optimisticResults === "isRestoring" && (O.fetchStatus = "idle");
|
|
518
|
+
}
|
|
519
|
+
let { error: de, errorUpdatedAt: ve, status: ne } = O;
|
|
520
|
+
if (a.select && O.data !== void 0)
|
|
521
|
+
if (g && O.data === (y == null ? void 0 : y.data) && a.select === c(this, Wt))
|
|
522
|
+
N = c(this, Ct);
|
|
523
|
+
else
|
|
524
|
+
try {
|
|
525
|
+
P(this, Wt, a.select), N = a.select(O.data), N = Tn(g == null ? void 0 : g.data, N, a), P(this, Ct, N), P(this, Ie, null);
|
|
526
|
+
} catch (X) {
|
|
527
|
+
P(this, Ie, X);
|
|
528
|
+
}
|
|
529
|
+
else
|
|
530
|
+
N = O.data;
|
|
531
|
+
if (a.placeholderData !== void 0 && N === void 0 && ne === "pending") {
|
|
532
|
+
let X;
|
|
533
|
+
if (g != null && g.isPlaceholderData && a.placeholderData === (_ == null ? void 0 : _.placeholderData))
|
|
534
|
+
X = g.data;
|
|
535
|
+
else if (X = typeof a.placeholderData == "function" ? a.placeholderData(
|
|
536
|
+
(Se = c(this, Ot)) == null ? void 0 : Se.state.data,
|
|
537
|
+
c(this, Ot)
|
|
538
|
+
) : a.placeholderData, a.select && X !== void 0)
|
|
539
|
+
try {
|
|
540
|
+
X = a.select(X), P(this, Ie, null);
|
|
541
|
+
} catch (ge) {
|
|
542
|
+
P(this, Ie, ge);
|
|
543
|
+
}
|
|
544
|
+
X !== void 0 && (ne = "success", N = Tn(
|
|
545
|
+
g == null ? void 0 : g.data,
|
|
546
|
+
X,
|
|
547
|
+
a
|
|
548
|
+
), re = !0);
|
|
549
|
+
}
|
|
550
|
+
c(this, Ie) && (de = c(this, Ie), N = c(this, Ct), ve = Date.now(), ne = "error");
|
|
551
|
+
const ye = O.fetchStatus === "fetching", B = ne === "pending", Oe = ne === "error", be = B && ye, G = N !== void 0, ie = {
|
|
552
|
+
status: ne,
|
|
553
|
+
fetchStatus: O.fetchStatus,
|
|
554
|
+
isPending: B,
|
|
555
|
+
isSuccess: ne === "success",
|
|
556
|
+
isError: Oe,
|
|
557
|
+
isInitialLoading: be,
|
|
558
|
+
isLoading: be,
|
|
559
|
+
data: N,
|
|
560
|
+
dataUpdatedAt: O.dataUpdatedAt,
|
|
561
|
+
error: de,
|
|
562
|
+
errorUpdatedAt: ve,
|
|
563
|
+
failureCount: O.fetchFailureCount,
|
|
564
|
+
failureReason: O.fetchFailureReason,
|
|
565
|
+
errorUpdateCount: O.errorUpdateCount,
|
|
566
|
+
isFetched: O.dataUpdateCount > 0 || O.errorUpdateCount > 0,
|
|
567
|
+
isFetchedAfterMount: O.dataUpdateCount > T.dataUpdateCount || O.errorUpdateCount > T.errorUpdateCount,
|
|
568
|
+
isFetching: ye,
|
|
569
|
+
isRefetching: ye && !B,
|
|
570
|
+
isLoadingError: Oe && !G,
|
|
571
|
+
isPaused: O.fetchStatus === "paused",
|
|
572
|
+
isPlaceholderData: re,
|
|
573
|
+
isRefetchError: Oe && G,
|
|
574
|
+
isStale: Jr(t, a),
|
|
575
|
+
refetch: this.refetch,
|
|
576
|
+
promise: c(this, Ke)
|
|
577
|
+
};
|
|
578
|
+
if (this.options.experimental_prefetchInRender) {
|
|
579
|
+
const X = (Pe) => {
|
|
580
|
+
ie.status === "error" ? Pe.reject(ie.error) : ie.data !== void 0 && Pe.resolve(ie.data);
|
|
581
|
+
}, ge = () => {
|
|
582
|
+
const Pe = P(this, Ke, ie.promise = Pn());
|
|
583
|
+
X(Pe);
|
|
584
|
+
}, Te = c(this, Ke);
|
|
585
|
+
switch (Te.status) {
|
|
586
|
+
case "pending":
|
|
587
|
+
t.queryHash === l.queryHash && X(Te);
|
|
588
|
+
break;
|
|
589
|
+
case "fulfilled":
|
|
590
|
+
(ie.status === "error" || ie.data !== Te.value) && ge();
|
|
591
|
+
break;
|
|
592
|
+
case "rejected":
|
|
593
|
+
(ie.status !== "error" || ie.error !== Te.reason) && ge();
|
|
594
|
+
break;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return ie;
|
|
598
|
+
}
|
|
599
|
+
updateResult(t) {
|
|
600
|
+
const a = c(this, me), l = this.createResult(c(this, I), this.options);
|
|
601
|
+
if (P(this, ot, c(this, I).state), P(this, wt, this.options), c(this, ot).data !== void 0 && P(this, Ot, c(this, I)), cr(l, a))
|
|
602
|
+
return;
|
|
603
|
+
P(this, me, l);
|
|
604
|
+
const p = {}, g = () => {
|
|
605
|
+
if (!a)
|
|
606
|
+
return !0;
|
|
607
|
+
const { notifyOnChangeProps: y } = this.options, _ = typeof y == "function" ? y() : y;
|
|
608
|
+
if (_ === "all" || !_ && !c(this, St).size)
|
|
609
|
+
return !0;
|
|
610
|
+
const E = new Set(
|
|
611
|
+
_ ?? c(this, St)
|
|
612
|
+
);
|
|
613
|
+
return this.options.throwOnError && E.add("error"), Object.keys(c(this, me)).some((T) => {
|
|
614
|
+
const R = T;
|
|
615
|
+
return c(this, me)[R] !== a[R] && E.has(R);
|
|
616
|
+
});
|
|
617
|
+
};
|
|
618
|
+
(t == null ? void 0 : t.listeners) !== !1 && g() && (p.listeners = !0), K(this, U, Qn).call(this, { ...p, ...t });
|
|
619
|
+
}
|
|
620
|
+
onQueryUpdate() {
|
|
621
|
+
this.updateResult(), this.hasListeners() && K(this, U, Yr).call(this);
|
|
622
|
+
}
|
|
623
|
+
}, we = new WeakMap(), I = new WeakMap(), Vt = new WeakMap(), me = new WeakMap(), ot = new WeakMap(), wt = new WeakMap(), Ke = new WeakMap(), Ie = new WeakMap(), Wt = new WeakMap(), Ct = new WeakMap(), Ot = new WeakMap(), ut = new WeakMap(), ct = new WeakMap(), He = new WeakMap(), St = new WeakMap(), U = new WeakSet(), Ut = function(t) {
|
|
624
|
+
K(this, U, Br).call(this);
|
|
625
|
+
let a = c(this, I).fetch(
|
|
626
|
+
this.options,
|
|
627
|
+
t
|
|
628
|
+
);
|
|
629
|
+
return t != null && t.throwOnError || (a = a.catch(Ri)), a;
|
|
630
|
+
}, $r = function() {
|
|
631
|
+
K(this, U, qr).call(this);
|
|
632
|
+
const t = or(
|
|
633
|
+
this.options.staleTime,
|
|
634
|
+
c(this, I)
|
|
635
|
+
);
|
|
636
|
+
if ($t || c(this, me).isStale || !wn(t))
|
|
637
|
+
return;
|
|
638
|
+
const l = wi(c(this, me).dataUpdatedAt, t) + 1;
|
|
639
|
+
P(this, ut, setTimeout(() => {
|
|
640
|
+
c(this, me).isStale || this.updateResult();
|
|
641
|
+
}, l));
|
|
642
|
+
}, Vr = function() {
|
|
643
|
+
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(c(this, I)) : this.options.refetchInterval) ?? !1;
|
|
644
|
+
}, Wr = function(t) {
|
|
645
|
+
K(this, U, Qr).call(this), P(this, He, t), !($t || De(this.options.enabled, c(this, I)) === !1 || !wn(c(this, He)) || c(this, He) === 0) && P(this, ct, setInterval(() => {
|
|
646
|
+
(this.options.refetchIntervalInBackground || Oi.isFocused()) && K(this, U, Ut).call(this);
|
|
647
|
+
}, c(this, He)));
|
|
648
|
+
}, Yr = function() {
|
|
649
|
+
K(this, U, $r).call(this), K(this, U, Wr).call(this, K(this, U, Vr).call(this));
|
|
650
|
+
}, qr = function() {
|
|
651
|
+
c(this, ut) && (clearTimeout(c(this, ut)), P(this, ut, void 0));
|
|
652
|
+
}, Qr = function() {
|
|
653
|
+
c(this, ct) && (clearInterval(c(this, ct)), P(this, ct, void 0));
|
|
654
|
+
}, Br = function() {
|
|
655
|
+
const t = c(this, we).getQueryCache().build(c(this, we), this.options);
|
|
656
|
+
if (t === c(this, I))
|
|
657
|
+
return;
|
|
658
|
+
const a = c(this, I);
|
|
659
|
+
P(this, I, t), P(this, Vt, t.state), this.hasListeners() && (a == null || a.removeObserver(this), t.addObserver(this));
|
|
660
|
+
}, Qn = function(t) {
|
|
661
|
+
fr.batch(() => {
|
|
662
|
+
t.listeners && this.listeners.forEach((a) => {
|
|
663
|
+
a(c(this, me));
|
|
664
|
+
}), c(this, we).getQueryCache().notify({
|
|
665
|
+
query: c(this, I),
|
|
666
|
+
type: "observerResultsUpdated"
|
|
667
|
+
});
|
|
668
|
+
});
|
|
669
|
+
}, Nn);
|
|
670
|
+
function Fi(i, t) {
|
|
671
|
+
return De(t.enabled, i) !== !1 && i.state.data === void 0 && !(i.state.status === "error" && t.retryOnMount === !1);
|
|
672
|
+
}
|
|
673
|
+
function kn(i, t) {
|
|
674
|
+
return Fi(i, t) || i.state.data !== void 0 && zr(i, t, t.refetchOnMount);
|
|
675
|
+
}
|
|
676
|
+
function zr(i, t, a) {
|
|
677
|
+
if (De(t.enabled, i) !== !1) {
|
|
678
|
+
const l = typeof a == "function" ? a(i) : a;
|
|
679
|
+
return l === "always" || l !== !1 && Jr(i, t);
|
|
680
|
+
}
|
|
681
|
+
return !1;
|
|
682
|
+
}
|
|
683
|
+
function jn(i, t, a, l) {
|
|
684
|
+
return (i !== t || De(l.enabled, i) === !1) && (!a.suspense || i.state.status !== "error") && Jr(i, a);
|
|
685
|
+
}
|
|
686
|
+
function Jr(i, t) {
|
|
687
|
+
return De(t.enabled, i) !== !1 && i.isStaleByTime(or(t.staleTime, i));
|
|
688
|
+
}
|
|
689
|
+
function Ii(i, t) {
|
|
690
|
+
return !cr(i.getCurrentResult(), t);
|
|
691
|
+
}
|
|
692
|
+
var Je, Ge, Ce, Ue, $e, ur, Kr, $n, Di = ($n = class extends lr {
|
|
693
|
+
constructor(t, a) {
|
|
694
|
+
super();
|
|
695
|
+
Y(this, $e);
|
|
696
|
+
Y(this, Je);
|
|
697
|
+
Y(this, Ge);
|
|
698
|
+
Y(this, Ce);
|
|
699
|
+
Y(this, Ue);
|
|
700
|
+
P(this, Je, t), this.setOptions(a), this.bindMethods(), K(this, $e, ur).call(this);
|
|
701
|
+
}
|
|
702
|
+
bindMethods() {
|
|
703
|
+
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
704
|
+
}
|
|
705
|
+
setOptions(t) {
|
|
706
|
+
var l;
|
|
707
|
+
const a = this.options;
|
|
708
|
+
this.options = c(this, Je).defaultMutationOptions(t), cr(this.options, a) || c(this, Je).getMutationCache().notify({
|
|
709
|
+
type: "observerOptionsUpdated",
|
|
710
|
+
mutation: c(this, Ce),
|
|
711
|
+
observer: this
|
|
712
|
+
}), a != null && a.mutationKey && this.options.mutationKey && Cn(a.mutationKey) !== Cn(this.options.mutationKey) ? this.reset() : ((l = c(this, Ce)) == null ? void 0 : l.state.status) === "pending" && c(this, Ce).setOptions(this.options);
|
|
713
|
+
}
|
|
714
|
+
onUnsubscribe() {
|
|
715
|
+
var t;
|
|
716
|
+
this.hasListeners() || (t = c(this, Ce)) == null || t.removeObserver(this);
|
|
717
|
+
}
|
|
718
|
+
onMutationUpdate(t) {
|
|
719
|
+
K(this, $e, ur).call(this), K(this, $e, Kr).call(this, t);
|
|
720
|
+
}
|
|
721
|
+
getCurrentResult() {
|
|
722
|
+
return c(this, Ge);
|
|
723
|
+
}
|
|
724
|
+
reset() {
|
|
725
|
+
var t;
|
|
726
|
+
(t = c(this, Ce)) == null || t.removeObserver(this), P(this, Ce, void 0), K(this, $e, ur).call(this), K(this, $e, Kr).call(this);
|
|
727
|
+
}
|
|
728
|
+
mutate(t, a) {
|
|
729
|
+
var l;
|
|
730
|
+
return P(this, Ue, a), (l = c(this, Ce)) == null || l.removeObserver(this), P(this, Ce, c(this, Je).getMutationCache().build(c(this, Je), this.options)), c(this, Ce).addObserver(this), c(this, Ce).execute(t);
|
|
731
|
+
}
|
|
732
|
+
}, Je = new WeakMap(), Ge = new WeakMap(), Ce = new WeakMap(), Ue = new WeakMap(), $e = new WeakSet(), ur = function() {
|
|
733
|
+
var a;
|
|
734
|
+
const t = ((a = c(this, Ce)) == null ? void 0 : a.state) ?? xi();
|
|
735
|
+
P(this, Ge, {
|
|
736
|
+
...t,
|
|
737
|
+
isPending: t.status === "pending",
|
|
738
|
+
isSuccess: t.status === "success",
|
|
739
|
+
isError: t.status === "error",
|
|
740
|
+
isIdle: t.status === "idle",
|
|
741
|
+
mutate: this.mutate,
|
|
742
|
+
reset: this.reset
|
|
743
|
+
});
|
|
744
|
+
}, Kr = function(t) {
|
|
745
|
+
fr.batch(() => {
|
|
746
|
+
var a, l, p, g, y, _, E, T;
|
|
747
|
+
if (c(this, Ue) && this.hasListeners()) {
|
|
748
|
+
const R = c(this, Ge).variables, O = c(this, Ge).context;
|
|
749
|
+
(t == null ? void 0 : t.type) === "success" ? ((l = (a = c(this, Ue)).onSuccess) == null || l.call(a, t.data, R, O), (g = (p = c(this, Ue)).onSettled) == null || g.call(p, t.data, null, R, O)) : (t == null ? void 0 : t.type) === "error" && ((_ = (y = c(this, Ue)).onError) == null || _.call(y, t.error, R, O), (T = (E = c(this, Ue)).onSettled) == null || T.call(
|
|
750
|
+
E,
|
|
751
|
+
void 0,
|
|
752
|
+
t.error,
|
|
753
|
+
R,
|
|
754
|
+
O
|
|
755
|
+
));
|
|
756
|
+
}
|
|
757
|
+
this.listeners.forEach((R) => {
|
|
758
|
+
R(c(this, Ge));
|
|
759
|
+
});
|
|
760
|
+
});
|
|
761
|
+
}, $n), Hr = { exports: {} }, j = {};
|
|
762
|
+
/**
|
|
763
|
+
* @license React
|
|
764
|
+
* react.production.min.js
|
|
765
|
+
*
|
|
766
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
767
|
+
*
|
|
768
|
+
* This source code is licensed under the MIT license found in the
|
|
769
|
+
* LICENSE file in the root directory of this source tree.
|
|
770
|
+
*/
|
|
771
|
+
var xn;
|
|
772
|
+
function Li() {
|
|
773
|
+
if (xn) return j;
|
|
774
|
+
xn = 1;
|
|
775
|
+
var i = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), T = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.iterator;
|
|
776
|
+
function re(s) {
|
|
777
|
+
return s === null || typeof s != "object" ? null : (s = O && s[O] || s["@@iterator"], typeof s == "function" ? s : null);
|
|
778
|
+
}
|
|
779
|
+
var N = { isMounted: function() {
|
|
780
|
+
return !1;
|
|
781
|
+
}, enqueueForceUpdate: function() {
|
|
782
|
+
}, enqueueReplaceState: function() {
|
|
783
|
+
}, enqueueSetState: function() {
|
|
784
|
+
} }, de = Object.assign, ve = {};
|
|
785
|
+
function ne(s, d, x) {
|
|
786
|
+
this.props = s, this.context = d, this.refs = ve, this.updater = x || N;
|
|
787
|
+
}
|
|
788
|
+
ne.prototype.isReactComponent = {}, ne.prototype.setState = function(s, d) {
|
|
789
|
+
if (typeof s != "object" && typeof s != "function" && s != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
790
|
+
this.updater.enqueueSetState(this, s, d, "setState");
|
|
791
|
+
}, ne.prototype.forceUpdate = function(s) {
|
|
792
|
+
this.updater.enqueueForceUpdate(this, s, "forceUpdate");
|
|
793
|
+
};
|
|
794
|
+
function ye() {
|
|
795
|
+
}
|
|
796
|
+
ye.prototype = ne.prototype;
|
|
797
|
+
function B(s, d, x) {
|
|
798
|
+
this.props = s, this.context = d, this.refs = ve, this.updater = x || N;
|
|
799
|
+
}
|
|
800
|
+
var Oe = B.prototype = new ye();
|
|
801
|
+
Oe.constructor = B, de(Oe, ne.prototype), Oe.isPureReactComponent = !0;
|
|
802
|
+
var be = Array.isArray, G = Object.prototype.hasOwnProperty, he = { current: null }, ie = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
803
|
+
function Se(s, d, x) {
|
|
804
|
+
var F, L = {}, z = null, q = null;
|
|
805
|
+
if (d != null) for (F in d.ref !== void 0 && (q = d.ref), d.key !== void 0 && (z = "" + d.key), d) G.call(d, F) && !ie.hasOwnProperty(F) && (L[F] = d[F]);
|
|
806
|
+
var W = arguments.length - 2;
|
|
807
|
+
if (W === 1) L.children = x;
|
|
808
|
+
else if (1 < W) {
|
|
809
|
+
for (var $ = Array(W), se = 0; se < W; se++) $[se] = arguments[se + 2];
|
|
810
|
+
L.children = $;
|
|
811
|
+
}
|
|
812
|
+
if (s && s.defaultProps) for (F in W = s.defaultProps, W) L[F] === void 0 && (L[F] = W[F]);
|
|
813
|
+
return { $$typeof: i, type: s, key: z, ref: q, props: L, _owner: he.current };
|
|
814
|
+
}
|
|
815
|
+
function X(s, d) {
|
|
816
|
+
return { $$typeof: i, type: s.type, key: d, ref: s.ref, props: s.props, _owner: s._owner };
|
|
817
|
+
}
|
|
818
|
+
function ge(s) {
|
|
819
|
+
return typeof s == "object" && s !== null && s.$$typeof === i;
|
|
820
|
+
}
|
|
821
|
+
function Te(s) {
|
|
822
|
+
var d = { "=": "=0", ":": "=2" };
|
|
823
|
+
return "$" + s.replace(/[=:]/g, function(x) {
|
|
824
|
+
return d[x];
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
var Pe = /\/+/g;
|
|
828
|
+
function _e(s, d) {
|
|
829
|
+
return typeof s == "object" && s !== null && s.key != null ? Te("" + s.key) : d.toString(36);
|
|
830
|
+
}
|
|
831
|
+
function Ee(s, d, x, F, L) {
|
|
832
|
+
var z = typeof s;
|
|
833
|
+
(z === "undefined" || z === "boolean") && (s = null);
|
|
834
|
+
var q = !1;
|
|
835
|
+
if (s === null) q = !0;
|
|
836
|
+
else switch (z) {
|
|
837
|
+
case "string":
|
|
838
|
+
case "number":
|
|
839
|
+
q = !0;
|
|
840
|
+
break;
|
|
841
|
+
case "object":
|
|
842
|
+
switch (s.$$typeof) {
|
|
843
|
+
case i:
|
|
844
|
+
case t:
|
|
845
|
+
q = !0;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if (q) return q = s, L = L(q), s = F === "" ? "." + _e(q, 0) : F, be(L) ? (x = "", s != null && (x = s.replace(Pe, "$&/") + "/"), Ee(L, d, x, "", function(se) {
|
|
849
|
+
return se;
|
|
850
|
+
})) : L != null && (ge(L) && (L = X(L, x + (!L.key || q && q.key === L.key ? "" : ("" + L.key).replace(Pe, "$&/") + "/") + s)), d.push(L)), 1;
|
|
851
|
+
if (q = 0, F = F === "" ? "." : F + ":", be(s)) for (var W = 0; W < s.length; W++) {
|
|
852
|
+
z = s[W];
|
|
853
|
+
var $ = F + _e(z, W);
|
|
854
|
+
q += Ee(z, d, x, $, L);
|
|
855
|
+
}
|
|
856
|
+
else if ($ = re(s), typeof $ == "function") for (s = $.call(s), W = 0; !(z = s.next()).done; ) z = z.value, $ = F + _e(z, W++), q += Ee(z, d, x, $, L);
|
|
857
|
+
else if (z === "object") throw d = String(s), Error("Objects are not valid as a React child (found: " + (d === "[object Object]" ? "object with keys {" + Object.keys(s).join(", ") + "}" : d) + "). If you meant to render a collection of children, use an array instead.");
|
|
858
|
+
return q;
|
|
859
|
+
}
|
|
860
|
+
function ce(s, d, x) {
|
|
861
|
+
if (s == null) return s;
|
|
862
|
+
var F = [], L = 0;
|
|
863
|
+
return Ee(s, F, "", "", function(z) {
|
|
864
|
+
return d.call(x, z, L++);
|
|
865
|
+
}), F;
|
|
866
|
+
}
|
|
867
|
+
function ke(s) {
|
|
868
|
+
if (s._status === -1) {
|
|
869
|
+
var d = s._result;
|
|
870
|
+
d = d(), d.then(function(x) {
|
|
871
|
+
(s._status === 0 || s._status === -1) && (s._status = 1, s._result = x);
|
|
872
|
+
}, function(x) {
|
|
873
|
+
(s._status === 0 || s._status === -1) && (s._status = 2, s._result = x);
|
|
874
|
+
}), s._status === -1 && (s._status = 0, s._result = d);
|
|
875
|
+
}
|
|
876
|
+
if (s._status === 1) return s._result.default;
|
|
877
|
+
throw s._result;
|
|
878
|
+
}
|
|
879
|
+
var w = { current: null }, je = { transition: null }, Xe = { ReactCurrentDispatcher: w, ReactCurrentBatchConfig: je, ReactCurrentOwner: he };
|
|
880
|
+
function Le() {
|
|
881
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
882
|
+
}
|
|
883
|
+
return j.Children = { map: ce, forEach: function(s, d, x) {
|
|
884
|
+
ce(s, function() {
|
|
885
|
+
d.apply(this, arguments);
|
|
886
|
+
}, x);
|
|
887
|
+
}, count: function(s) {
|
|
888
|
+
var d = 0;
|
|
889
|
+
return ce(s, function() {
|
|
890
|
+
d++;
|
|
891
|
+
}), d;
|
|
892
|
+
}, toArray: function(s) {
|
|
893
|
+
return ce(s, function(d) {
|
|
894
|
+
return d;
|
|
895
|
+
}) || [];
|
|
896
|
+
}, only: function(s) {
|
|
897
|
+
if (!ge(s)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
898
|
+
return s;
|
|
899
|
+
} }, j.Component = ne, j.Fragment = a, j.Profiler = p, j.PureComponent = B, j.StrictMode = l, j.Suspense = E, j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Xe, j.act = Le, j.cloneElement = function(s, d, x) {
|
|
900
|
+
if (s == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + s + ".");
|
|
901
|
+
var F = de({}, s.props), L = s.key, z = s.ref, q = s._owner;
|
|
902
|
+
if (d != null) {
|
|
903
|
+
if (d.ref !== void 0 && (z = d.ref, q = he.current), d.key !== void 0 && (L = "" + d.key), s.type && s.type.defaultProps) var W = s.type.defaultProps;
|
|
904
|
+
for ($ in d) G.call(d, $) && !ie.hasOwnProperty($) && (F[$] = d[$] === void 0 && W !== void 0 ? W[$] : d[$]);
|
|
905
|
+
}
|
|
906
|
+
var $ = arguments.length - 2;
|
|
907
|
+
if ($ === 1) F.children = x;
|
|
908
|
+
else if (1 < $) {
|
|
909
|
+
W = Array($);
|
|
910
|
+
for (var se = 0; se < $; se++) W[se] = arguments[se + 2];
|
|
911
|
+
F.children = W;
|
|
912
|
+
}
|
|
913
|
+
return { $$typeof: i, type: s.type, key: L, ref: z, props: F, _owner: q };
|
|
914
|
+
}, j.createContext = function(s) {
|
|
915
|
+
return s = { $$typeof: y, _currentValue: s, _currentValue2: s, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, s.Provider = { $$typeof: g, _context: s }, s.Consumer = s;
|
|
916
|
+
}, j.createElement = Se, j.createFactory = function(s) {
|
|
917
|
+
var d = Se.bind(null, s);
|
|
918
|
+
return d.type = s, d;
|
|
919
|
+
}, j.createRef = function() {
|
|
920
|
+
return { current: null };
|
|
921
|
+
}, j.forwardRef = function(s) {
|
|
922
|
+
return { $$typeof: _, render: s };
|
|
923
|
+
}, j.isValidElement = ge, j.lazy = function(s) {
|
|
924
|
+
return { $$typeof: R, _payload: { _status: -1, _result: s }, _init: ke };
|
|
925
|
+
}, j.memo = function(s, d) {
|
|
926
|
+
return { $$typeof: T, type: s, compare: d === void 0 ? null : d };
|
|
927
|
+
}, j.startTransition = function(s) {
|
|
928
|
+
var d = je.transition;
|
|
929
|
+
je.transition = {};
|
|
930
|
+
try {
|
|
931
|
+
s();
|
|
932
|
+
} finally {
|
|
933
|
+
je.transition = d;
|
|
934
|
+
}
|
|
935
|
+
}, j.unstable_act = Le, j.useCallback = function(s, d) {
|
|
936
|
+
return w.current.useCallback(s, d);
|
|
937
|
+
}, j.useContext = function(s) {
|
|
938
|
+
return w.current.useContext(s);
|
|
939
|
+
}, j.useDebugValue = function() {
|
|
940
|
+
}, j.useDeferredValue = function(s) {
|
|
941
|
+
return w.current.useDeferredValue(s);
|
|
942
|
+
}, j.useEffect = function(s, d) {
|
|
943
|
+
return w.current.useEffect(s, d);
|
|
944
|
+
}, j.useId = function() {
|
|
945
|
+
return w.current.useId();
|
|
946
|
+
}, j.useImperativeHandle = function(s, d, x) {
|
|
947
|
+
return w.current.useImperativeHandle(s, d, x);
|
|
948
|
+
}, j.useInsertionEffect = function(s, d) {
|
|
949
|
+
return w.current.useInsertionEffect(s, d);
|
|
950
|
+
}, j.useLayoutEffect = function(s, d) {
|
|
951
|
+
return w.current.useLayoutEffect(s, d);
|
|
952
|
+
}, j.useMemo = function(s, d) {
|
|
953
|
+
return w.current.useMemo(s, d);
|
|
954
|
+
}, j.useReducer = function(s, d, x) {
|
|
955
|
+
return w.current.useReducer(s, d, x);
|
|
956
|
+
}, j.useRef = function(s) {
|
|
957
|
+
return w.current.useRef(s);
|
|
958
|
+
}, j.useState = function(s) {
|
|
959
|
+
return w.current.useState(s);
|
|
960
|
+
}, j.useSyncExternalStore = function(s, d, x) {
|
|
961
|
+
return w.current.useSyncExternalStore(s, d, x);
|
|
962
|
+
}, j.useTransition = function() {
|
|
963
|
+
return w.current.useTransition();
|
|
964
|
+
}, j.version = "18.3.1", j;
|
|
965
|
+
}
|
|
966
|
+
var Nt = { exports: {} };
|
|
967
|
+
Nt.exports;
|
|
968
|
+
var An;
|
|
969
|
+
function Mi() {
|
|
970
|
+
return An || (An = 1, function(i, t) {
|
|
971
|
+
Tt.env.NODE_ENV !== "production" && function() {
|
|
972
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
973
|
+
var a = "18.3.1", l = Symbol.for("react.element"), p = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), T = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), de = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), ne = Symbol.iterator, ye = "@@iterator";
|
|
974
|
+
function B(e) {
|
|
975
|
+
if (e === null || typeof e != "object")
|
|
976
|
+
return null;
|
|
977
|
+
var r = ne && e[ne] || e[ye];
|
|
978
|
+
return typeof r == "function" ? r : null;
|
|
979
|
+
}
|
|
980
|
+
var Oe = {
|
|
981
|
+
/**
|
|
982
|
+
* @internal
|
|
983
|
+
* @type {ReactComponent}
|
|
984
|
+
*/
|
|
985
|
+
current: null
|
|
986
|
+
}, be = {
|
|
987
|
+
transition: null
|
|
988
|
+
}, G = {
|
|
989
|
+
current: null,
|
|
990
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
991
|
+
isBatchingLegacy: !1,
|
|
992
|
+
didScheduleLegacyUpdate: !1
|
|
993
|
+
}, he = {
|
|
994
|
+
/**
|
|
995
|
+
* @internal
|
|
996
|
+
* @type {ReactComponent}
|
|
997
|
+
*/
|
|
998
|
+
current: null
|
|
999
|
+
}, ie = {}, Se = null;
|
|
1000
|
+
function X(e) {
|
|
1001
|
+
Se = e;
|
|
1002
|
+
}
|
|
1003
|
+
ie.setExtraStackFrame = function(e) {
|
|
1004
|
+
Se = e;
|
|
1005
|
+
}, ie.getCurrentStack = null, ie.getStackAddendum = function() {
|
|
1006
|
+
var e = "";
|
|
1007
|
+
Se && (e += Se);
|
|
1008
|
+
var r = ie.getCurrentStack;
|
|
1009
|
+
return r && (e += r() || ""), e;
|
|
1010
|
+
};
|
|
1011
|
+
var ge = !1, Te = !1, Pe = !1, _e = !1, Ee = !1, ce = {
|
|
1012
|
+
ReactCurrentDispatcher: Oe,
|
|
1013
|
+
ReactCurrentBatchConfig: be,
|
|
1014
|
+
ReactCurrentOwner: he
|
|
1015
|
+
};
|
|
1016
|
+
ce.ReactDebugCurrentFrame = ie, ce.ReactCurrentActQueue = G;
|
|
1017
|
+
function ke(e) {
|
|
1018
|
+
{
|
|
1019
|
+
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
1020
|
+
o[u - 1] = arguments[u];
|
|
1021
|
+
je("warn", e, o);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
function w(e) {
|
|
1025
|
+
{
|
|
1026
|
+
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
1027
|
+
o[u - 1] = arguments[u];
|
|
1028
|
+
je("error", e, o);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
function je(e, r, o) {
|
|
1032
|
+
{
|
|
1033
|
+
var u = ce.ReactDebugCurrentFrame, h = u.getStackAddendum();
|
|
1034
|
+
h !== "" && (r += "%s", o = o.concat([h]));
|
|
1035
|
+
var C = o.map(function(b) {
|
|
1036
|
+
return String(b);
|
|
1037
|
+
});
|
|
1038
|
+
C.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, C);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
var Xe = {};
|
|
1042
|
+
function Le(e, r) {
|
|
1043
|
+
{
|
|
1044
|
+
var o = e.constructor, u = o && (o.displayName || o.name) || "ReactClass", h = u + "." + r;
|
|
1045
|
+
if (Xe[h])
|
|
1046
|
+
return;
|
|
1047
|
+
w("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", r, u), Xe[h] = !0;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
var s = {
|
|
1051
|
+
/**
|
|
1052
|
+
* Checks whether or not this composite component is mounted.
|
|
1053
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
1054
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
1055
|
+
* @protected
|
|
1056
|
+
* @final
|
|
1057
|
+
*/
|
|
1058
|
+
isMounted: function(e) {
|
|
1059
|
+
return !1;
|
|
1060
|
+
},
|
|
1061
|
+
/**
|
|
1062
|
+
* Forces an update. This should only be invoked when it is known with
|
|
1063
|
+
* certainty that we are **not** in a DOM transaction.
|
|
1064
|
+
*
|
|
1065
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
1066
|
+
* component's state has changed but `setState` was not called.
|
|
1067
|
+
*
|
|
1068
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
1069
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
1070
|
+
*
|
|
1071
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1072
|
+
* @param {?function} callback Called after component is updated.
|
|
1073
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
1074
|
+
* @internal
|
|
1075
|
+
*/
|
|
1076
|
+
enqueueForceUpdate: function(e, r, o) {
|
|
1077
|
+
Le(e, "forceUpdate");
|
|
1078
|
+
},
|
|
1079
|
+
/**
|
|
1080
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
1081
|
+
* You should treat `this.state` as immutable.
|
|
1082
|
+
*
|
|
1083
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
1084
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
1085
|
+
*
|
|
1086
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1087
|
+
* @param {object} completeState Next state.
|
|
1088
|
+
* @param {?function} callback Called after component is updated.
|
|
1089
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
1090
|
+
* @internal
|
|
1091
|
+
*/
|
|
1092
|
+
enqueueReplaceState: function(e, r, o, u) {
|
|
1093
|
+
Le(e, "replaceState");
|
|
1094
|
+
},
|
|
1095
|
+
/**
|
|
1096
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
1097
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
1098
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
1099
|
+
* during the merge.
|
|
1100
|
+
*
|
|
1101
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1102
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
1103
|
+
* @param {?function} callback Called after component is updated.
|
|
1104
|
+
* @param {?string} Name of the calling function in the public API.
|
|
1105
|
+
* @internal
|
|
1106
|
+
*/
|
|
1107
|
+
enqueueSetState: function(e, r, o, u) {
|
|
1108
|
+
Le(e, "setState");
|
|
1109
|
+
}
|
|
1110
|
+
}, d = Object.assign, x = {};
|
|
1111
|
+
Object.freeze(x);
|
|
1112
|
+
function F(e, r, o) {
|
|
1113
|
+
this.props = e, this.context = r, this.refs = x, this.updater = o || s;
|
|
1114
|
+
}
|
|
1115
|
+
F.prototype.isReactComponent = {}, F.prototype.setState = function(e, r) {
|
|
1116
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1117
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1118
|
+
this.updater.enqueueSetState(this, e, r, "setState");
|
|
1119
|
+
}, F.prototype.forceUpdate = function(e) {
|
|
1120
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1121
|
+
};
|
|
1122
|
+
{
|
|
1123
|
+
var L = {
|
|
1124
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1125
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1126
|
+
}, z = function(e, r) {
|
|
1127
|
+
Object.defineProperty(F.prototype, e, {
|
|
1128
|
+
get: function() {
|
|
1129
|
+
ke("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
};
|
|
1133
|
+
for (var q in L)
|
|
1134
|
+
L.hasOwnProperty(q) && z(q, L[q]);
|
|
1135
|
+
}
|
|
1136
|
+
function W() {
|
|
1137
|
+
}
|
|
1138
|
+
W.prototype = F.prototype;
|
|
1139
|
+
function $(e, r, o) {
|
|
1140
|
+
this.props = e, this.context = r, this.refs = x, this.updater = o || s;
|
|
1141
|
+
}
|
|
1142
|
+
var se = $.prototype = new W();
|
|
1143
|
+
se.constructor = $, d(se, F.prototype), se.isPureReactComponent = !0;
|
|
1144
|
+
function dr() {
|
|
1145
|
+
var e = {
|
|
1146
|
+
current: null
|
|
1147
|
+
};
|
|
1148
|
+
return Object.seal(e), e;
|
|
1149
|
+
}
|
|
1150
|
+
var Yt = Array.isArray;
|
|
1151
|
+
function lt(e) {
|
|
1152
|
+
return Yt(e);
|
|
1153
|
+
}
|
|
1154
|
+
function hr(e) {
|
|
1155
|
+
{
|
|
1156
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1157
|
+
return o;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
function ft(e) {
|
|
1161
|
+
try {
|
|
1162
|
+
return We(e), !1;
|
|
1163
|
+
} catch {
|
|
1164
|
+
return !0;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
function We(e) {
|
|
1168
|
+
return "" + e;
|
|
1169
|
+
}
|
|
1170
|
+
function Ze(e) {
|
|
1171
|
+
if (ft(e))
|
|
1172
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), We(e);
|
|
1173
|
+
}
|
|
1174
|
+
function qt(e, r, o) {
|
|
1175
|
+
var u = e.displayName;
|
|
1176
|
+
if (u)
|
|
1177
|
+
return u;
|
|
1178
|
+
var h = r.displayName || r.name || "";
|
|
1179
|
+
return h !== "" ? o + "(" + h + ")" : o;
|
|
1180
|
+
}
|
|
1181
|
+
function et(e) {
|
|
1182
|
+
return e.displayName || "Context";
|
|
1183
|
+
}
|
|
1184
|
+
function xe(e) {
|
|
1185
|
+
if (e == null)
|
|
1186
|
+
return null;
|
|
1187
|
+
if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
1188
|
+
return e.displayName || e.name || null;
|
|
1189
|
+
if (typeof e == "string")
|
|
1190
|
+
return e;
|
|
1191
|
+
switch (e) {
|
|
1192
|
+
case g:
|
|
1193
|
+
return "Fragment";
|
|
1194
|
+
case p:
|
|
1195
|
+
return "Portal";
|
|
1196
|
+
case _:
|
|
1197
|
+
return "Profiler";
|
|
1198
|
+
case y:
|
|
1199
|
+
return "StrictMode";
|
|
1200
|
+
case O:
|
|
1201
|
+
return "Suspense";
|
|
1202
|
+
case re:
|
|
1203
|
+
return "SuspenseList";
|
|
1204
|
+
}
|
|
1205
|
+
if (typeof e == "object")
|
|
1206
|
+
switch (e.$$typeof) {
|
|
1207
|
+
case T:
|
|
1208
|
+
var r = e;
|
|
1209
|
+
return et(r) + ".Consumer";
|
|
1210
|
+
case E:
|
|
1211
|
+
var o = e;
|
|
1212
|
+
return et(o._context) + ".Provider";
|
|
1213
|
+
case R:
|
|
1214
|
+
return qt(e, e.render, "ForwardRef");
|
|
1215
|
+
case N:
|
|
1216
|
+
var u = e.displayName || null;
|
|
1217
|
+
return u !== null ? u : xe(e.type) || "Memo";
|
|
1218
|
+
case de: {
|
|
1219
|
+
var h = e, C = h._payload, b = h._init;
|
|
1220
|
+
try {
|
|
1221
|
+
return xe(b(C));
|
|
1222
|
+
} catch {
|
|
1223
|
+
return null;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
return null;
|
|
1228
|
+
}
|
|
1229
|
+
var tt = Object.prototype.hasOwnProperty, dt = {
|
|
1230
|
+
key: !0,
|
|
1231
|
+
ref: !0,
|
|
1232
|
+
__self: !0,
|
|
1233
|
+
__source: !0
|
|
1234
|
+
}, Qt, Bt, ht;
|
|
1235
|
+
ht = {};
|
|
1236
|
+
function Pt(e) {
|
|
1237
|
+
if (tt.call(e, "ref")) {
|
|
1238
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
1239
|
+
if (r && r.isReactWarning)
|
|
1240
|
+
return !1;
|
|
1241
|
+
}
|
|
1242
|
+
return e.ref !== void 0;
|
|
1243
|
+
}
|
|
1244
|
+
function kt(e) {
|
|
1245
|
+
if (tt.call(e, "key")) {
|
|
1246
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1247
|
+
if (r && r.isReactWarning)
|
|
1248
|
+
return !1;
|
|
1249
|
+
}
|
|
1250
|
+
return e.key !== void 0;
|
|
1251
|
+
}
|
|
1252
|
+
function pr(e, r) {
|
|
1253
|
+
var o = function() {
|
|
1254
|
+
Qt || (Qt = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
1255
|
+
};
|
|
1256
|
+
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1257
|
+
get: o,
|
|
1258
|
+
configurable: !0
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
function zt(e, r) {
|
|
1262
|
+
var o = function() {
|
|
1263
|
+
Bt || (Bt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
1264
|
+
};
|
|
1265
|
+
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
1266
|
+
get: o,
|
|
1267
|
+
configurable: !0
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
function Kt(e) {
|
|
1271
|
+
if (typeof e.ref == "string" && he.current && e.__self && he.current.stateNode !== e.__self) {
|
|
1272
|
+
var r = xe(he.current.type);
|
|
1273
|
+
ht[r] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), ht[r] = !0);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
var jt = function(e, r, o, u, h, C, b) {
|
|
1277
|
+
var S = {
|
|
1278
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
1279
|
+
$$typeof: l,
|
|
1280
|
+
// Built-in properties that belong on the element
|
|
1281
|
+
type: e,
|
|
1282
|
+
key: r,
|
|
1283
|
+
ref: o,
|
|
1284
|
+
props: b,
|
|
1285
|
+
// Record the component responsible for creating this element.
|
|
1286
|
+
_owner: C
|
|
1287
|
+
};
|
|
1288
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
1289
|
+
configurable: !1,
|
|
1290
|
+
enumerable: !1,
|
|
1291
|
+
writable: !0,
|
|
1292
|
+
value: !1
|
|
1293
|
+
}), Object.defineProperty(S, "_self", {
|
|
1294
|
+
configurable: !1,
|
|
1295
|
+
enumerable: !1,
|
|
1296
|
+
writable: !1,
|
|
1297
|
+
value: u
|
|
1298
|
+
}), Object.defineProperty(S, "_source", {
|
|
1299
|
+
configurable: !1,
|
|
1300
|
+
enumerable: !1,
|
|
1301
|
+
writable: !1,
|
|
1302
|
+
value: h
|
|
1303
|
+
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
1304
|
+
};
|
|
1305
|
+
function vr(e, r, o) {
|
|
1306
|
+
var u, h = {}, C = null, b = null, S = null, D = null;
|
|
1307
|
+
if (r != null) {
|
|
1308
|
+
Pt(r) && (b = r.ref, Kt(r)), kt(r) && (Ze(r.key), C = "" + r.key), S = r.__self === void 0 ? null : r.__self, D = r.__source === void 0 ? null : r.__source;
|
|
1309
|
+
for (u in r)
|
|
1310
|
+
tt.call(r, u) && !dt.hasOwnProperty(u) && (h[u] = r[u]);
|
|
1311
|
+
}
|
|
1312
|
+
var Q = arguments.length - 2;
|
|
1313
|
+
if (Q === 1)
|
|
1314
|
+
h.children = o;
|
|
1315
|
+
else if (Q > 1) {
|
|
1316
|
+
for (var H = Array(Q), J = 0; J < Q; J++)
|
|
1317
|
+
H[J] = arguments[J + 2];
|
|
1318
|
+
Object.freeze && Object.freeze(H), h.children = H;
|
|
1319
|
+
}
|
|
1320
|
+
if (e && e.defaultProps) {
|
|
1321
|
+
var ee = e.defaultProps;
|
|
1322
|
+
for (u in ee)
|
|
1323
|
+
h[u] === void 0 && (h[u] = ee[u]);
|
|
1324
|
+
}
|
|
1325
|
+
if (C || b) {
|
|
1326
|
+
var oe = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
1327
|
+
C && pr(h, oe), b && zt(h, oe);
|
|
1328
|
+
}
|
|
1329
|
+
return jt(e, C, b, S, D, he.current, h);
|
|
1330
|
+
}
|
|
1331
|
+
function yr(e, r) {
|
|
1332
|
+
var o = jt(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
|
|
1333
|
+
return o;
|
|
1334
|
+
}
|
|
1335
|
+
function mr(e, r, o) {
|
|
1336
|
+
if (e == null)
|
|
1337
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
1338
|
+
var u, h = d({}, e.props), C = e.key, b = e.ref, S = e._self, D = e._source, Q = e._owner;
|
|
1339
|
+
if (r != null) {
|
|
1340
|
+
Pt(r) && (b = r.ref, Q = he.current), kt(r) && (Ze(r.key), C = "" + r.key);
|
|
1341
|
+
var H;
|
|
1342
|
+
e.type && e.type.defaultProps && (H = e.type.defaultProps);
|
|
1343
|
+
for (u in r)
|
|
1344
|
+
tt.call(r, u) && !dt.hasOwnProperty(u) && (r[u] === void 0 && H !== void 0 ? h[u] = H[u] : h[u] = r[u]);
|
|
1345
|
+
}
|
|
1346
|
+
var J = arguments.length - 2;
|
|
1347
|
+
if (J === 1)
|
|
1348
|
+
h.children = o;
|
|
1349
|
+
else if (J > 1) {
|
|
1350
|
+
for (var ee = Array(J), oe = 0; oe < J; oe++)
|
|
1351
|
+
ee[oe] = arguments[oe + 2];
|
|
1352
|
+
h.children = ee;
|
|
1353
|
+
}
|
|
1354
|
+
return jt(e.type, C, b, S, D, Q, h);
|
|
1355
|
+
}
|
|
1356
|
+
function Ye(e) {
|
|
1357
|
+
return typeof e == "object" && e !== null && e.$$typeof === l;
|
|
1358
|
+
}
|
|
1359
|
+
var Ht = ".", br = ":";
|
|
1360
|
+
function xt(e) {
|
|
1361
|
+
var r = /[=:]/g, o = {
|
|
1362
|
+
"=": "=0",
|
|
1363
|
+
":": "=2"
|
|
1364
|
+
}, u = e.replace(r, function(h) {
|
|
1365
|
+
return o[h];
|
|
1366
|
+
});
|
|
1367
|
+
return "$" + u;
|
|
1368
|
+
}
|
|
1369
|
+
var At = !1, qe = /\/+/g;
|
|
1370
|
+
function pt(e) {
|
|
1371
|
+
return e.replace(qe, "$&/");
|
|
1372
|
+
}
|
|
1373
|
+
function rt(e, r) {
|
|
1374
|
+
return typeof e == "object" && e !== null && e.key != null ? (Ze(e.key), xt("" + e.key)) : r.toString(36);
|
|
1375
|
+
}
|
|
1376
|
+
function nt(e, r, o, u, h) {
|
|
1377
|
+
var C = typeof e;
|
|
1378
|
+
(C === "undefined" || C === "boolean") && (e = null);
|
|
1379
|
+
var b = !1;
|
|
1380
|
+
if (e === null)
|
|
1381
|
+
b = !0;
|
|
1382
|
+
else
|
|
1383
|
+
switch (C) {
|
|
1384
|
+
case "string":
|
|
1385
|
+
case "number":
|
|
1386
|
+
b = !0;
|
|
1387
|
+
break;
|
|
1388
|
+
case "object":
|
|
1389
|
+
switch (e.$$typeof) {
|
|
1390
|
+
case l:
|
|
1391
|
+
case p:
|
|
1392
|
+
b = !0;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
if (b) {
|
|
1396
|
+
var S = e, D = h(S), Q = u === "" ? Ht + rt(S, 0) : u;
|
|
1397
|
+
if (lt(D)) {
|
|
1398
|
+
var H = "";
|
|
1399
|
+
Q != null && (H = pt(Q) + "/"), nt(D, r, H, "", function(mi) {
|
|
1400
|
+
return mi;
|
|
1401
|
+
});
|
|
1402
|
+
} else D != null && (Ye(D) && (D.key && (!S || S.key !== D.key) && Ze(D.key), D = yr(
|
|
1403
|
+
D,
|
|
1404
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
1405
|
+
// traverseAllChildren used to do for objects as children
|
|
1406
|
+
o + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1407
|
+
(D.key && (!S || S.key !== D.key) ? (
|
|
1408
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1409
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1410
|
+
pt("" + D.key) + "/"
|
|
1411
|
+
) : "") + Q
|
|
1412
|
+
)), r.push(D));
|
|
1413
|
+
return 1;
|
|
1414
|
+
}
|
|
1415
|
+
var J, ee, oe = 0, fe = u === "" ? Ht : u + br;
|
|
1416
|
+
if (lt(e))
|
|
1417
|
+
for (var ar = 0; ar < e.length; ar++)
|
|
1418
|
+
J = e[ar], ee = fe + rt(J, ar), oe += nt(J, r, o, ee, h);
|
|
1419
|
+
else {
|
|
1420
|
+
var Ir = B(e);
|
|
1421
|
+
if (typeof Ir == "function") {
|
|
1422
|
+
var gn = e;
|
|
1423
|
+
Ir === gn.entries && (At || ke("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), At = !0);
|
|
1424
|
+
for (var vi = Ir.call(gn), _n, yi = 0; !(_n = vi.next()).done; )
|
|
1425
|
+
J = _n.value, ee = fe + rt(J, yi++), oe += nt(J, r, o, ee, h);
|
|
1426
|
+
} else if (C === "object") {
|
|
1427
|
+
var En = String(e);
|
|
1428
|
+
throw new Error("Objects are not valid as a React child (found: " + (En === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : En) + "). If you meant to render a collection of children, use an array instead.");
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
return oe;
|
|
1432
|
+
}
|
|
1433
|
+
function vt(e, r, o) {
|
|
1434
|
+
if (e == null)
|
|
1435
|
+
return e;
|
|
1436
|
+
var u = [], h = 0;
|
|
1437
|
+
return nt(e, u, "", "", function(C) {
|
|
1438
|
+
return r.call(o, C, h++);
|
|
1439
|
+
}), u;
|
|
1440
|
+
}
|
|
1441
|
+
function Jt(e) {
|
|
1442
|
+
var r = 0;
|
|
1443
|
+
return vt(e, function() {
|
|
1444
|
+
r++;
|
|
1445
|
+
}), r;
|
|
1446
|
+
}
|
|
1447
|
+
function gr(e, r, o) {
|
|
1448
|
+
vt(e, function() {
|
|
1449
|
+
r.apply(this, arguments);
|
|
1450
|
+
}, o);
|
|
1451
|
+
}
|
|
1452
|
+
function Gt(e) {
|
|
1453
|
+
return vt(e, function(r) {
|
|
1454
|
+
return r;
|
|
1455
|
+
}) || [];
|
|
1456
|
+
}
|
|
1457
|
+
function Xt(e) {
|
|
1458
|
+
if (!Ye(e))
|
|
1459
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1460
|
+
return e;
|
|
1461
|
+
}
|
|
1462
|
+
function _r(e) {
|
|
1463
|
+
var r = {
|
|
1464
|
+
$$typeof: T,
|
|
1465
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1466
|
+
// some renderers as primary and others as secondary. We only expect
|
|
1467
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1468
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1469
|
+
// Secondary renderers store their context values on separate fields.
|
|
1470
|
+
_currentValue: e,
|
|
1471
|
+
_currentValue2: e,
|
|
1472
|
+
// Used to track how many concurrent renderers this context currently
|
|
1473
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
1474
|
+
_threadCount: 0,
|
|
1475
|
+
// These are circular
|
|
1476
|
+
Provider: null,
|
|
1477
|
+
Consumer: null,
|
|
1478
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
1479
|
+
_defaultValue: null,
|
|
1480
|
+
_globalName: null
|
|
1481
|
+
};
|
|
1482
|
+
r.Provider = {
|
|
1483
|
+
$$typeof: E,
|
|
1484
|
+
_context: r
|
|
1485
|
+
};
|
|
1486
|
+
var o = !1, u = !1, h = !1;
|
|
1487
|
+
{
|
|
1488
|
+
var C = {
|
|
1489
|
+
$$typeof: T,
|
|
1490
|
+
_context: r
|
|
1491
|
+
};
|
|
1492
|
+
Object.defineProperties(C, {
|
|
1493
|
+
Provider: {
|
|
1494
|
+
get: function() {
|
|
1495
|
+
return u || (u = !0, w("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider;
|
|
1496
|
+
},
|
|
1497
|
+
set: function(b) {
|
|
1498
|
+
r.Provider = b;
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
_currentValue: {
|
|
1502
|
+
get: function() {
|
|
1503
|
+
return r._currentValue;
|
|
1504
|
+
},
|
|
1505
|
+
set: function(b) {
|
|
1506
|
+
r._currentValue = b;
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
_currentValue2: {
|
|
1510
|
+
get: function() {
|
|
1511
|
+
return r._currentValue2;
|
|
1512
|
+
},
|
|
1513
|
+
set: function(b) {
|
|
1514
|
+
r._currentValue2 = b;
|
|
1515
|
+
}
|
|
1516
|
+
},
|
|
1517
|
+
_threadCount: {
|
|
1518
|
+
get: function() {
|
|
1519
|
+
return r._threadCount;
|
|
1520
|
+
},
|
|
1521
|
+
set: function(b) {
|
|
1522
|
+
r._threadCount = b;
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
Consumer: {
|
|
1526
|
+
get: function() {
|
|
1527
|
+
return o || (o = !0, w("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer;
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
displayName: {
|
|
1531
|
+
get: function() {
|
|
1532
|
+
return r.displayName;
|
|
1533
|
+
},
|
|
1534
|
+
set: function(b) {
|
|
1535
|
+
h || (ke("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", b), h = !0);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}), r.Consumer = C;
|
|
1539
|
+
}
|
|
1540
|
+
return r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
1541
|
+
}
|
|
1542
|
+
var it = -1, yt = 0, Ft = 1, Er = 2;
|
|
1543
|
+
function Rr(e) {
|
|
1544
|
+
if (e._status === it) {
|
|
1545
|
+
var r = e._result, o = r();
|
|
1546
|
+
if (o.then(function(C) {
|
|
1547
|
+
if (e._status === yt || e._status === it) {
|
|
1548
|
+
var b = e;
|
|
1549
|
+
b._status = Ft, b._result = C;
|
|
1550
|
+
}
|
|
1551
|
+
}, function(C) {
|
|
1552
|
+
if (e._status === yt || e._status === it) {
|
|
1553
|
+
var b = e;
|
|
1554
|
+
b._status = Er, b._result = C;
|
|
1555
|
+
}
|
|
1556
|
+
}), e._status === it) {
|
|
1557
|
+
var u = e;
|
|
1558
|
+
u._status = yt, u._result = o;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
if (e._status === Ft) {
|
|
1562
|
+
var h = e._result;
|
|
1563
|
+
return h === void 0 && w(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1564
|
+
|
|
1565
|
+
Your code should look like:
|
|
1566
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
1567
|
+
|
|
1568
|
+
Did you accidentally put curly braces around the import?`, h), "default" in h || w(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1569
|
+
|
|
1570
|
+
Your code should look like:
|
|
1571
|
+
const MyComponent = lazy(() => import('./MyComponent'))`, h), h.default;
|
|
1572
|
+
} else
|
|
1573
|
+
throw e._result;
|
|
1574
|
+
}
|
|
1575
|
+
function wr(e) {
|
|
1576
|
+
var r = {
|
|
1577
|
+
// We use these fields to store the result.
|
|
1578
|
+
_status: it,
|
|
1579
|
+
_result: e
|
|
1580
|
+
}, o = {
|
|
1581
|
+
$$typeof: de,
|
|
1582
|
+
_payload: r,
|
|
1583
|
+
_init: Rr
|
|
1584
|
+
};
|
|
1585
|
+
{
|
|
1586
|
+
var u, h;
|
|
1587
|
+
Object.defineProperties(o, {
|
|
1588
|
+
defaultProps: {
|
|
1589
|
+
configurable: !0,
|
|
1590
|
+
get: function() {
|
|
1591
|
+
return u;
|
|
1592
|
+
},
|
|
1593
|
+
set: function(C) {
|
|
1594
|
+
w("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), u = C, Object.defineProperty(o, "defaultProps", {
|
|
1595
|
+
enumerable: !0
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
propTypes: {
|
|
1600
|
+
configurable: !0,
|
|
1601
|
+
get: function() {
|
|
1602
|
+
return h;
|
|
1603
|
+
},
|
|
1604
|
+
set: function(C) {
|
|
1605
|
+
w("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), h = C, Object.defineProperty(o, "propTypes", {
|
|
1606
|
+
enumerable: !0
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
return o;
|
|
1613
|
+
}
|
|
1614
|
+
function Cr(e) {
|
|
1615
|
+
e != null && e.$$typeof === N ? w("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? w("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && w("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && w("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1616
|
+
var r = {
|
|
1617
|
+
$$typeof: R,
|
|
1618
|
+
render: e
|
|
1619
|
+
};
|
|
1620
|
+
{
|
|
1621
|
+
var o;
|
|
1622
|
+
Object.defineProperty(r, "displayName", {
|
|
1623
|
+
enumerable: !1,
|
|
1624
|
+
configurable: !0,
|
|
1625
|
+
get: function() {
|
|
1626
|
+
return o;
|
|
1627
|
+
},
|
|
1628
|
+
set: function(u) {
|
|
1629
|
+
o = u, !e.name && !e.displayName && (e.displayName = u);
|
|
1630
|
+
}
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
return r;
|
|
1634
|
+
}
|
|
1635
|
+
var n;
|
|
1636
|
+
n = Symbol.for("react.module.reference");
|
|
1637
|
+
function f(e) {
|
|
1638
|
+
return !!(typeof e == "string" || typeof e == "function" || e === g || e === _ || Ee || e === y || e === O || e === re || _e || e === ve || ge || Te || Pe || typeof e == "object" && e !== null && (e.$$typeof === de || e.$$typeof === N || e.$$typeof === E || e.$$typeof === T || e.$$typeof === R || // This needs to include all possible module reference object
|
|
1639
|
+
// types supported by any Flight configuration anywhere since
|
|
1640
|
+
// we don't know which Flight build this will end up being used
|
|
1641
|
+
// with.
|
|
1642
|
+
e.$$typeof === n || e.getModuleId !== void 0));
|
|
1643
|
+
}
|
|
1644
|
+
function v(e, r) {
|
|
1645
|
+
f(e) || w("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
1646
|
+
var o = {
|
|
1647
|
+
$$typeof: N,
|
|
1648
|
+
type: e,
|
|
1649
|
+
compare: r === void 0 ? null : r
|
|
1650
|
+
};
|
|
1651
|
+
{
|
|
1652
|
+
var u;
|
|
1653
|
+
Object.defineProperty(o, "displayName", {
|
|
1654
|
+
enumerable: !1,
|
|
1655
|
+
configurable: !0,
|
|
1656
|
+
get: function() {
|
|
1657
|
+
return u;
|
|
1658
|
+
},
|
|
1659
|
+
set: function(h) {
|
|
1660
|
+
u = h, !e.name && !e.displayName && (e.displayName = h);
|
|
1661
|
+
}
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
return o;
|
|
1665
|
+
}
|
|
1666
|
+
function m() {
|
|
1667
|
+
var e = Oe.current;
|
|
1668
|
+
return e === null && w(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1669
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1670
|
+
2. You might be breaking the Rules of Hooks
|
|
1671
|
+
3. You might have more than one copy of React in the same app
|
|
1672
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
1673
|
+
}
|
|
1674
|
+
function M(e) {
|
|
1675
|
+
var r = m();
|
|
1676
|
+
if (e._context !== void 0) {
|
|
1677
|
+
var o = e._context;
|
|
1678
|
+
o.Consumer === e ? w("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : o.Provider === e && w("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1679
|
+
}
|
|
1680
|
+
return r.useContext(e);
|
|
1681
|
+
}
|
|
1682
|
+
function V(e) {
|
|
1683
|
+
var r = m();
|
|
1684
|
+
return r.useState(e);
|
|
1685
|
+
}
|
|
1686
|
+
function A(e, r, o) {
|
|
1687
|
+
var u = m();
|
|
1688
|
+
return u.useReducer(e, r, o);
|
|
1689
|
+
}
|
|
1690
|
+
function k(e) {
|
|
1691
|
+
var r = m();
|
|
1692
|
+
return r.useRef(e);
|
|
1693
|
+
}
|
|
1694
|
+
function le(e, r) {
|
|
1695
|
+
var o = m();
|
|
1696
|
+
return o.useEffect(e, r);
|
|
1697
|
+
}
|
|
1698
|
+
function Z(e, r) {
|
|
1699
|
+
var o = m();
|
|
1700
|
+
return o.useInsertionEffect(e, r);
|
|
1701
|
+
}
|
|
1702
|
+
function te(e, r) {
|
|
1703
|
+
var o = m();
|
|
1704
|
+
return o.useLayoutEffect(e, r);
|
|
1705
|
+
}
|
|
1706
|
+
function Re(e, r) {
|
|
1707
|
+
var o = m();
|
|
1708
|
+
return o.useCallback(e, r);
|
|
1709
|
+
}
|
|
1710
|
+
function Qe(e, r) {
|
|
1711
|
+
var o = m();
|
|
1712
|
+
return o.useMemo(e, r);
|
|
1713
|
+
}
|
|
1714
|
+
function Me(e, r, o) {
|
|
1715
|
+
var u = m();
|
|
1716
|
+
return u.useImperativeHandle(e, r, o);
|
|
1717
|
+
}
|
|
1718
|
+
function pe(e, r) {
|
|
1719
|
+
{
|
|
1720
|
+
var o = m();
|
|
1721
|
+
return o.useDebugValue(e, r);
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
function It() {
|
|
1725
|
+
var e = m();
|
|
1726
|
+
return e.useTransition();
|
|
1727
|
+
}
|
|
1728
|
+
function Or(e) {
|
|
1729
|
+
var r = m();
|
|
1730
|
+
return r.useDeferredValue(e);
|
|
1731
|
+
}
|
|
1732
|
+
function Sr() {
|
|
1733
|
+
var e = m();
|
|
1734
|
+
return e.useId();
|
|
1735
|
+
}
|
|
1736
|
+
function Jn(e, r, o) {
|
|
1737
|
+
var u = m();
|
|
1738
|
+
return u.useSyncExternalStore(e, r, o);
|
|
1739
|
+
}
|
|
1740
|
+
var Dt = 0, Gr, Xr, Zr, en, tn, rn, nn;
|
|
1741
|
+
function an() {
|
|
1742
|
+
}
|
|
1743
|
+
an.__reactDisabledLog = !0;
|
|
1744
|
+
function Gn() {
|
|
1745
|
+
{
|
|
1746
|
+
if (Dt === 0) {
|
|
1747
|
+
Gr = console.log, Xr = console.info, Zr = console.warn, en = console.error, tn = console.group, rn = console.groupCollapsed, nn = console.groupEnd;
|
|
1748
|
+
var e = {
|
|
1749
|
+
configurable: !0,
|
|
1750
|
+
enumerable: !0,
|
|
1751
|
+
value: an,
|
|
1752
|
+
writable: !0
|
|
1753
|
+
};
|
|
1754
|
+
Object.defineProperties(console, {
|
|
1755
|
+
info: e,
|
|
1756
|
+
log: e,
|
|
1757
|
+
warn: e,
|
|
1758
|
+
error: e,
|
|
1759
|
+
group: e,
|
|
1760
|
+
groupCollapsed: e,
|
|
1761
|
+
groupEnd: e
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
Dt++;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
function Xn() {
|
|
1768
|
+
{
|
|
1769
|
+
if (Dt--, Dt === 0) {
|
|
1770
|
+
var e = {
|
|
1771
|
+
configurable: !0,
|
|
1772
|
+
enumerable: !0,
|
|
1773
|
+
writable: !0
|
|
1774
|
+
};
|
|
1775
|
+
Object.defineProperties(console, {
|
|
1776
|
+
log: d({}, e, {
|
|
1777
|
+
value: Gr
|
|
1778
|
+
}),
|
|
1779
|
+
info: d({}, e, {
|
|
1780
|
+
value: Xr
|
|
1781
|
+
}),
|
|
1782
|
+
warn: d({}, e, {
|
|
1783
|
+
value: Zr
|
|
1784
|
+
}),
|
|
1785
|
+
error: d({}, e, {
|
|
1786
|
+
value: en
|
|
1787
|
+
}),
|
|
1788
|
+
group: d({}, e, {
|
|
1789
|
+
value: tn
|
|
1790
|
+
}),
|
|
1791
|
+
groupCollapsed: d({}, e, {
|
|
1792
|
+
value: rn
|
|
1793
|
+
}),
|
|
1794
|
+
groupEnd: d({}, e, {
|
|
1795
|
+
value: nn
|
|
1796
|
+
})
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1799
|
+
Dt < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
var Tr = ce.ReactCurrentDispatcher, Pr;
|
|
1803
|
+
function Zt(e, r, o) {
|
|
1804
|
+
{
|
|
1805
|
+
if (Pr === void 0)
|
|
1806
|
+
try {
|
|
1807
|
+
throw Error();
|
|
1808
|
+
} catch (h) {
|
|
1809
|
+
var u = h.stack.trim().match(/\n( *(at )?)/);
|
|
1810
|
+
Pr = u && u[1] || "";
|
|
1811
|
+
}
|
|
1812
|
+
return `
|
|
1813
|
+
` + Pr + e;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
var kr = !1, er;
|
|
1817
|
+
{
|
|
1818
|
+
var Zn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1819
|
+
er = new Zn();
|
|
1820
|
+
}
|
|
1821
|
+
function sn(e, r) {
|
|
1822
|
+
if (!e || kr)
|
|
1823
|
+
return "";
|
|
1824
|
+
{
|
|
1825
|
+
var o = er.get(e);
|
|
1826
|
+
if (o !== void 0)
|
|
1827
|
+
return o;
|
|
1828
|
+
}
|
|
1829
|
+
var u;
|
|
1830
|
+
kr = !0;
|
|
1831
|
+
var h = Error.prepareStackTrace;
|
|
1832
|
+
Error.prepareStackTrace = void 0;
|
|
1833
|
+
var C;
|
|
1834
|
+
C = Tr.current, Tr.current = null, Gn();
|
|
1835
|
+
try {
|
|
1836
|
+
if (r) {
|
|
1837
|
+
var b = function() {
|
|
1838
|
+
throw Error();
|
|
1839
|
+
};
|
|
1840
|
+
if (Object.defineProperty(b.prototype, "props", {
|
|
1841
|
+
set: function() {
|
|
1842
|
+
throw Error();
|
|
1843
|
+
}
|
|
1844
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1845
|
+
try {
|
|
1846
|
+
Reflect.construct(b, []);
|
|
1847
|
+
} catch (fe) {
|
|
1848
|
+
u = fe;
|
|
1849
|
+
}
|
|
1850
|
+
Reflect.construct(e, [], b);
|
|
1851
|
+
} else {
|
|
1852
|
+
try {
|
|
1853
|
+
b.call();
|
|
1854
|
+
} catch (fe) {
|
|
1855
|
+
u = fe;
|
|
1856
|
+
}
|
|
1857
|
+
e.call(b.prototype);
|
|
1858
|
+
}
|
|
1859
|
+
} else {
|
|
1860
|
+
try {
|
|
1861
|
+
throw Error();
|
|
1862
|
+
} catch (fe) {
|
|
1863
|
+
u = fe;
|
|
1864
|
+
}
|
|
1865
|
+
e();
|
|
1866
|
+
}
|
|
1867
|
+
} catch (fe) {
|
|
1868
|
+
if (fe && u && typeof fe.stack == "string") {
|
|
1869
|
+
for (var S = fe.stack.split(`
|
|
1870
|
+
`), D = u.stack.split(`
|
|
1871
|
+
`), Q = S.length - 1, H = D.length - 1; Q >= 1 && H >= 0 && S[Q] !== D[H]; )
|
|
1872
|
+
H--;
|
|
1873
|
+
for (; Q >= 1 && H >= 0; Q--, H--)
|
|
1874
|
+
if (S[Q] !== D[H]) {
|
|
1875
|
+
if (Q !== 1 || H !== 1)
|
|
1876
|
+
do
|
|
1877
|
+
if (Q--, H--, H < 0 || S[Q] !== D[H]) {
|
|
1878
|
+
var J = `
|
|
1879
|
+
` + S[Q].replace(" at new ", " at ");
|
|
1880
|
+
return e.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", e.displayName)), typeof e == "function" && er.set(e, J), J;
|
|
1881
|
+
}
|
|
1882
|
+
while (Q >= 1 && H >= 0);
|
|
1883
|
+
break;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
} finally {
|
|
1887
|
+
kr = !1, Tr.current = C, Xn(), Error.prepareStackTrace = h;
|
|
1888
|
+
}
|
|
1889
|
+
var ee = e ? e.displayName || e.name : "", oe = ee ? Zt(ee) : "";
|
|
1890
|
+
return typeof e == "function" && er.set(e, oe), oe;
|
|
1891
|
+
}
|
|
1892
|
+
function ei(e, r, o) {
|
|
1893
|
+
return sn(e, !1);
|
|
1894
|
+
}
|
|
1895
|
+
function ti(e) {
|
|
1896
|
+
var r = e.prototype;
|
|
1897
|
+
return !!(r && r.isReactComponent);
|
|
1898
|
+
}
|
|
1899
|
+
function tr(e, r, o) {
|
|
1900
|
+
if (e == null)
|
|
1901
|
+
return "";
|
|
1902
|
+
if (typeof e == "function")
|
|
1903
|
+
return sn(e, ti(e));
|
|
1904
|
+
if (typeof e == "string")
|
|
1905
|
+
return Zt(e);
|
|
1906
|
+
switch (e) {
|
|
1907
|
+
case O:
|
|
1908
|
+
return Zt("Suspense");
|
|
1909
|
+
case re:
|
|
1910
|
+
return Zt("SuspenseList");
|
|
1911
|
+
}
|
|
1912
|
+
if (typeof e == "object")
|
|
1913
|
+
switch (e.$$typeof) {
|
|
1914
|
+
case R:
|
|
1915
|
+
return ei(e.render);
|
|
1916
|
+
case N:
|
|
1917
|
+
return tr(e.type, r, o);
|
|
1918
|
+
case de: {
|
|
1919
|
+
var u = e, h = u._payload, C = u._init;
|
|
1920
|
+
try {
|
|
1921
|
+
return tr(C(h), r, o);
|
|
1922
|
+
} catch {
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
return "";
|
|
1927
|
+
}
|
|
1928
|
+
var on = {}, un = ce.ReactDebugCurrentFrame;
|
|
1929
|
+
function rr(e) {
|
|
1930
|
+
if (e) {
|
|
1931
|
+
var r = e._owner, o = tr(e.type, e._source, r ? r.type : null);
|
|
1932
|
+
un.setExtraStackFrame(o);
|
|
1933
|
+
} else
|
|
1934
|
+
un.setExtraStackFrame(null);
|
|
1935
|
+
}
|
|
1936
|
+
function ri(e, r, o, u, h) {
|
|
1937
|
+
{
|
|
1938
|
+
var C = Function.call.bind(tt);
|
|
1939
|
+
for (var b in e)
|
|
1940
|
+
if (C(e, b)) {
|
|
1941
|
+
var S = void 0;
|
|
1942
|
+
try {
|
|
1943
|
+
if (typeof e[b] != "function") {
|
|
1944
|
+
var D = Error((u || "React class") + ": " + o + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1945
|
+
throw D.name = "Invariant Violation", D;
|
|
1946
|
+
}
|
|
1947
|
+
S = e[b](r, b, u, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1948
|
+
} catch (Q) {
|
|
1949
|
+
S = Q;
|
|
1950
|
+
}
|
|
1951
|
+
S && !(S instanceof Error) && (rr(h), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", o, b, typeof S), rr(null)), S instanceof Error && !(S.message in on) && (on[S.message] = !0, rr(h), w("Failed %s type: %s", o, S.message), rr(null));
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
function mt(e) {
|
|
1956
|
+
if (e) {
|
|
1957
|
+
var r = e._owner, o = tr(e.type, e._source, r ? r.type : null);
|
|
1958
|
+
X(o);
|
|
1959
|
+
} else
|
|
1960
|
+
X(null);
|
|
1961
|
+
}
|
|
1962
|
+
var jr;
|
|
1963
|
+
jr = !1;
|
|
1964
|
+
function cn() {
|
|
1965
|
+
if (he.current) {
|
|
1966
|
+
var e = xe(he.current.type);
|
|
1967
|
+
if (e)
|
|
1968
|
+
return `
|
|
1969
|
+
|
|
1970
|
+
Check the render method of \`` + e + "`.";
|
|
1971
|
+
}
|
|
1972
|
+
return "";
|
|
1973
|
+
}
|
|
1974
|
+
function ni(e) {
|
|
1975
|
+
if (e !== void 0) {
|
|
1976
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), o = e.lineNumber;
|
|
1977
|
+
return `
|
|
1978
|
+
|
|
1979
|
+
Check your code at ` + r + ":" + o + ".";
|
|
1980
|
+
}
|
|
1981
|
+
return "";
|
|
1982
|
+
}
|
|
1983
|
+
function ii(e) {
|
|
1984
|
+
return e != null ? ni(e.__source) : "";
|
|
1985
|
+
}
|
|
1986
|
+
var ln = {};
|
|
1987
|
+
function ai(e) {
|
|
1988
|
+
var r = cn();
|
|
1989
|
+
if (!r) {
|
|
1990
|
+
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
1991
|
+
o && (r = `
|
|
1992
|
+
|
|
1993
|
+
Check the top-level render call using <` + o + ">.");
|
|
1994
|
+
}
|
|
1995
|
+
return r;
|
|
1996
|
+
}
|
|
1997
|
+
function fn(e, r) {
|
|
1998
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1999
|
+
e._store.validated = !0;
|
|
2000
|
+
var o = ai(r);
|
|
2001
|
+
if (!ln[o]) {
|
|
2002
|
+
ln[o] = !0;
|
|
2003
|
+
var u = "";
|
|
2004
|
+
e && e._owner && e._owner !== he.current && (u = " It was passed a child from " + xe(e._owner.type) + "."), mt(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, u), mt(null);
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
function dn(e, r) {
|
|
2009
|
+
if (typeof e == "object") {
|
|
2010
|
+
if (lt(e))
|
|
2011
|
+
for (var o = 0; o < e.length; o++) {
|
|
2012
|
+
var u = e[o];
|
|
2013
|
+
Ye(u) && fn(u, r);
|
|
2014
|
+
}
|
|
2015
|
+
else if (Ye(e))
|
|
2016
|
+
e._store && (e._store.validated = !0);
|
|
2017
|
+
else if (e) {
|
|
2018
|
+
var h = B(e);
|
|
2019
|
+
if (typeof h == "function" && h !== e.entries)
|
|
2020
|
+
for (var C = h.call(e), b; !(b = C.next()).done; )
|
|
2021
|
+
Ye(b.value) && fn(b.value, r);
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
function hn(e) {
|
|
2026
|
+
{
|
|
2027
|
+
var r = e.type;
|
|
2028
|
+
if (r == null || typeof r == "string")
|
|
2029
|
+
return;
|
|
2030
|
+
var o;
|
|
2031
|
+
if (typeof r == "function")
|
|
2032
|
+
o = r.propTypes;
|
|
2033
|
+
else if (typeof r == "object" && (r.$$typeof === R || // Note: Memo only checks outer props here.
|
|
2034
|
+
// Inner props are checked in the reconciler.
|
|
2035
|
+
r.$$typeof === N))
|
|
2036
|
+
o = r.propTypes;
|
|
2037
|
+
else
|
|
2038
|
+
return;
|
|
2039
|
+
if (o) {
|
|
2040
|
+
var u = xe(r);
|
|
2041
|
+
ri(o, e.props, "prop", u, e);
|
|
2042
|
+
} else if (r.PropTypes !== void 0 && !jr) {
|
|
2043
|
+
jr = !0;
|
|
2044
|
+
var h = xe(r);
|
|
2045
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
2046
|
+
}
|
|
2047
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
function si(e) {
|
|
2051
|
+
{
|
|
2052
|
+
for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
|
|
2053
|
+
var u = r[o];
|
|
2054
|
+
if (u !== "children" && u !== "key") {
|
|
2055
|
+
mt(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), mt(null);
|
|
2056
|
+
break;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
e.ref !== null && (mt(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), mt(null));
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
function pn(e, r, o) {
|
|
2063
|
+
var u = f(e);
|
|
2064
|
+
if (!u) {
|
|
2065
|
+
var h = "";
|
|
2066
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2067
|
+
var C = ii(r);
|
|
2068
|
+
C ? h += C : h += cn();
|
|
2069
|
+
var b;
|
|
2070
|
+
e === null ? b = "null" : lt(e) ? b = "array" : e !== void 0 && e.$$typeof === l ? (b = "<" + (xe(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, w("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, h);
|
|
2071
|
+
}
|
|
2072
|
+
var S = vr.apply(this, arguments);
|
|
2073
|
+
if (S == null)
|
|
2074
|
+
return S;
|
|
2075
|
+
if (u)
|
|
2076
|
+
for (var D = 2; D < arguments.length; D++)
|
|
2077
|
+
dn(arguments[D], e);
|
|
2078
|
+
return e === g ? si(S) : hn(S), S;
|
|
2079
|
+
}
|
|
2080
|
+
var vn = !1;
|
|
2081
|
+
function oi(e) {
|
|
2082
|
+
var r = pn.bind(null, e);
|
|
2083
|
+
return r.type = e, vn || (vn = !0, ke("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
|
|
2084
|
+
enumerable: !1,
|
|
2085
|
+
get: function() {
|
|
2086
|
+
return ke("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
2087
|
+
value: e
|
|
2088
|
+
}), e;
|
|
2089
|
+
}
|
|
2090
|
+
}), r;
|
|
2091
|
+
}
|
|
2092
|
+
function ui(e, r, o) {
|
|
2093
|
+
for (var u = mr.apply(this, arguments), h = 2; h < arguments.length; h++)
|
|
2094
|
+
dn(arguments[h], u.type);
|
|
2095
|
+
return hn(u), u;
|
|
2096
|
+
}
|
|
2097
|
+
function ci(e, r) {
|
|
2098
|
+
var o = be.transition;
|
|
2099
|
+
be.transition = {};
|
|
2100
|
+
var u = be.transition;
|
|
2101
|
+
be.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
2102
|
+
try {
|
|
2103
|
+
e();
|
|
2104
|
+
} finally {
|
|
2105
|
+
if (be.transition = o, o === null && u._updatedFibers) {
|
|
2106
|
+
var h = u._updatedFibers.size;
|
|
2107
|
+
h > 10 && ke("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), u._updatedFibers.clear();
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
var yn = !1, nr = null;
|
|
2112
|
+
function li(e) {
|
|
2113
|
+
if (nr === null)
|
|
2114
|
+
try {
|
|
2115
|
+
var r = ("require" + Math.random()).slice(0, 7), o = i && i[r];
|
|
2116
|
+
nr = o.call(i, "timers").setImmediate;
|
|
2117
|
+
} catch {
|
|
2118
|
+
nr = function(h) {
|
|
2119
|
+
yn === !1 && (yn = !0, typeof MessageChannel > "u" && w("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
2120
|
+
var C = new MessageChannel();
|
|
2121
|
+
C.port1.onmessage = h, C.port2.postMessage(void 0);
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
return nr(e);
|
|
2125
|
+
}
|
|
2126
|
+
var bt = 0, mn = !1;
|
|
2127
|
+
function bn(e) {
|
|
2128
|
+
{
|
|
2129
|
+
var r = bt;
|
|
2130
|
+
bt++, G.current === null && (G.current = []);
|
|
2131
|
+
var o = G.isBatchingLegacy, u;
|
|
2132
|
+
try {
|
|
2133
|
+
if (G.isBatchingLegacy = !0, u = e(), !o && G.didScheduleLegacyUpdate) {
|
|
2134
|
+
var h = G.current;
|
|
2135
|
+
h !== null && (G.didScheduleLegacyUpdate = !1, Fr(h));
|
|
2136
|
+
}
|
|
2137
|
+
} catch (ee) {
|
|
2138
|
+
throw ir(r), ee;
|
|
2139
|
+
} finally {
|
|
2140
|
+
G.isBatchingLegacy = o;
|
|
2141
|
+
}
|
|
2142
|
+
if (u !== null && typeof u == "object" && typeof u.then == "function") {
|
|
2143
|
+
var C = u, b = !1, S = {
|
|
2144
|
+
then: function(ee, oe) {
|
|
2145
|
+
b = !0, C.then(function(fe) {
|
|
2146
|
+
ir(r), bt === 0 ? xr(fe, ee, oe) : ee(fe);
|
|
2147
|
+
}, function(fe) {
|
|
2148
|
+
ir(r), oe(fe);
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
};
|
|
2152
|
+
return !mn && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
2153
|
+
}).then(function() {
|
|
2154
|
+
b || (mn = !0, w("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
2155
|
+
}), S;
|
|
2156
|
+
} else {
|
|
2157
|
+
var D = u;
|
|
2158
|
+
if (ir(r), bt === 0) {
|
|
2159
|
+
var Q = G.current;
|
|
2160
|
+
Q !== null && (Fr(Q), G.current = null);
|
|
2161
|
+
var H = {
|
|
2162
|
+
then: function(ee, oe) {
|
|
2163
|
+
G.current === null ? (G.current = [], xr(D, ee, oe)) : ee(D);
|
|
2164
|
+
}
|
|
2165
|
+
};
|
|
2166
|
+
return H;
|
|
2167
|
+
} else {
|
|
2168
|
+
var J = {
|
|
2169
|
+
then: function(ee, oe) {
|
|
2170
|
+
ee(D);
|
|
2171
|
+
}
|
|
2172
|
+
};
|
|
2173
|
+
return J;
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
function ir(e) {
|
|
2179
|
+
e !== bt - 1 && w("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), bt = e;
|
|
2180
|
+
}
|
|
2181
|
+
function xr(e, r, o) {
|
|
2182
|
+
{
|
|
2183
|
+
var u = G.current;
|
|
2184
|
+
if (u !== null)
|
|
2185
|
+
try {
|
|
2186
|
+
Fr(u), li(function() {
|
|
2187
|
+
u.length === 0 ? (G.current = null, r(e)) : xr(e, r, o);
|
|
2188
|
+
});
|
|
2189
|
+
} catch (h) {
|
|
2190
|
+
o(h);
|
|
2191
|
+
}
|
|
2192
|
+
else
|
|
2193
|
+
r(e);
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
var Ar = !1;
|
|
2197
|
+
function Fr(e) {
|
|
2198
|
+
if (!Ar) {
|
|
2199
|
+
Ar = !0;
|
|
2200
|
+
var r = 0;
|
|
2201
|
+
try {
|
|
2202
|
+
for (; r < e.length; r++) {
|
|
2203
|
+
var o = e[r];
|
|
2204
|
+
do
|
|
2205
|
+
o = o(!0);
|
|
2206
|
+
while (o !== null);
|
|
2207
|
+
}
|
|
2208
|
+
e.length = 0;
|
|
2209
|
+
} catch (u) {
|
|
2210
|
+
throw e = e.slice(r + 1), u;
|
|
2211
|
+
} finally {
|
|
2212
|
+
Ar = !1;
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
var fi = pn, di = ui, hi = oi, pi = {
|
|
2217
|
+
map: vt,
|
|
2218
|
+
forEach: gr,
|
|
2219
|
+
count: Jt,
|
|
2220
|
+
toArray: Gt,
|
|
2221
|
+
only: Xt
|
|
2222
|
+
};
|
|
2223
|
+
t.Children = pi, t.Component = F, t.Fragment = g, t.Profiler = _, t.PureComponent = $, t.StrictMode = y, t.Suspense = O, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ce, t.act = bn, t.cloneElement = di, t.createContext = _r, t.createElement = fi, t.createFactory = hi, t.createRef = dr, t.forwardRef = Cr, t.isValidElement = Ye, t.lazy = wr, t.memo = v, t.startTransition = ci, t.unstable_act = bn, t.useCallback = Re, t.useContext = M, t.useDebugValue = pe, t.useDeferredValue = Or, t.useEffect = le, t.useId = Sr, t.useImperativeHandle = Me, t.useInsertionEffect = Z, t.useLayoutEffect = te, t.useMemo = Qe, t.useReducer = A, t.useRef = k, t.useState = V, t.useSyncExternalStore = Jn, t.useTransition = It, t.version = a, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2224
|
+
}();
|
|
2225
|
+
}(Nt, Nt.exports)), Nt.exports;
|
|
2226
|
+
}
|
|
2227
|
+
Tt.env.NODE_ENV === "production" ? Hr.exports = Li() : Hr.exports = Mi();
|
|
2228
|
+
var ue = Hr.exports, Lt = {};
|
|
2229
|
+
/**
|
|
2230
|
+
* @license React
|
|
2231
|
+
* react-jsx-runtime.production.min.js
|
|
2232
|
+
*
|
|
2233
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2234
|
+
*
|
|
2235
|
+
* This source code is licensed under the MIT license found in the
|
|
2236
|
+
* LICENSE file in the root directory of this source tree.
|
|
2237
|
+
*/
|
|
2238
|
+
var Fn;
|
|
2239
|
+
function Ui() {
|
|
2240
|
+
if (Fn) return Lt;
|
|
2241
|
+
Fn = 1;
|
|
2242
|
+
var i = ue, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, p = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2243
|
+
function y(_, E, T) {
|
|
2244
|
+
var R, O = {}, re = null, N = null;
|
|
2245
|
+
T !== void 0 && (re = "" + T), E.key !== void 0 && (re = "" + E.key), E.ref !== void 0 && (N = E.ref);
|
|
2246
|
+
for (R in E) l.call(E, R) && !g.hasOwnProperty(R) && (O[R] = E[R]);
|
|
2247
|
+
if (_ && _.defaultProps) for (R in E = _.defaultProps, E) O[R] === void 0 && (O[R] = E[R]);
|
|
2248
|
+
return { $$typeof: t, type: _, key: re, ref: N, props: O, _owner: p.current };
|
|
2249
|
+
}
|
|
2250
|
+
return Lt.Fragment = a, Lt.jsx = y, Lt.jsxs = y, Lt;
|
|
2251
|
+
}
|
|
2252
|
+
var Mt = {}, In;
|
|
2253
|
+
function Ni() {
|
|
2254
|
+
return In || (In = 1, Tt.env.NODE_ENV !== "production" && function() {
|
|
2255
|
+
var i = ue, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), _ = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), de = Symbol.iterator, ve = "@@iterator";
|
|
2256
|
+
function ne(n) {
|
|
2257
|
+
if (n === null || typeof n != "object")
|
|
2258
|
+
return null;
|
|
2259
|
+
var f = de && n[de] || n[ve];
|
|
2260
|
+
return typeof f == "function" ? f : null;
|
|
2261
|
+
}
|
|
2262
|
+
var ye = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2263
|
+
function B(n) {
|
|
2264
|
+
{
|
|
2265
|
+
for (var f = arguments.length, v = new Array(f > 1 ? f - 1 : 0), m = 1; m < f; m++)
|
|
2266
|
+
v[m - 1] = arguments[m];
|
|
2267
|
+
Oe("error", n, v);
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
function Oe(n, f, v) {
|
|
2271
|
+
{
|
|
2272
|
+
var m = ye.ReactDebugCurrentFrame, M = m.getStackAddendum();
|
|
2273
|
+
M !== "" && (f += "%s", v = v.concat([M]));
|
|
2274
|
+
var V = v.map(function(A) {
|
|
2275
|
+
return String(A);
|
|
2276
|
+
});
|
|
2277
|
+
V.unshift("Warning: " + f), Function.prototype.apply.call(console[n], console, V);
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
var be = !1, G = !1, he = !1, ie = !1, Se = !1, X;
|
|
2281
|
+
X = Symbol.for("react.module.reference");
|
|
2282
|
+
function ge(n) {
|
|
2283
|
+
return !!(typeof n == "string" || typeof n == "function" || n === l || n === g || Se || n === p || n === T || n === R || ie || n === N || be || G || he || typeof n == "object" && n !== null && (n.$$typeof === re || n.$$typeof === O || n.$$typeof === y || n.$$typeof === _ || n.$$typeof === E || // This needs to include all possible module reference object
|
|
2284
|
+
// types supported by any Flight configuration anywhere since
|
|
2285
|
+
// we don't know which Flight build this will end up being used
|
|
2286
|
+
// with.
|
|
2287
|
+
n.$$typeof === X || n.getModuleId !== void 0));
|
|
2288
|
+
}
|
|
2289
|
+
function Te(n, f, v) {
|
|
2290
|
+
var m = n.displayName;
|
|
2291
|
+
if (m)
|
|
2292
|
+
return m;
|
|
2293
|
+
var M = f.displayName || f.name || "";
|
|
2294
|
+
return M !== "" ? v + "(" + M + ")" : v;
|
|
2295
|
+
}
|
|
2296
|
+
function Pe(n) {
|
|
2297
|
+
return n.displayName || "Context";
|
|
2298
|
+
}
|
|
2299
|
+
function _e(n) {
|
|
2300
|
+
if (n == null)
|
|
2301
|
+
return null;
|
|
2302
|
+
if (typeof n.tag == "number" && B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
2303
|
+
return n.displayName || n.name || null;
|
|
2304
|
+
if (typeof n == "string")
|
|
2305
|
+
return n;
|
|
2306
|
+
switch (n) {
|
|
2307
|
+
case l:
|
|
2308
|
+
return "Fragment";
|
|
2309
|
+
case a:
|
|
2310
|
+
return "Portal";
|
|
2311
|
+
case g:
|
|
2312
|
+
return "Profiler";
|
|
2313
|
+
case p:
|
|
2314
|
+
return "StrictMode";
|
|
2315
|
+
case T:
|
|
2316
|
+
return "Suspense";
|
|
2317
|
+
case R:
|
|
2318
|
+
return "SuspenseList";
|
|
2319
|
+
}
|
|
2320
|
+
if (typeof n == "object")
|
|
2321
|
+
switch (n.$$typeof) {
|
|
2322
|
+
case _:
|
|
2323
|
+
var f = n;
|
|
2324
|
+
return Pe(f) + ".Consumer";
|
|
2325
|
+
case y:
|
|
2326
|
+
var v = n;
|
|
2327
|
+
return Pe(v._context) + ".Provider";
|
|
2328
|
+
case E:
|
|
2329
|
+
return Te(n, n.render, "ForwardRef");
|
|
2330
|
+
case O:
|
|
2331
|
+
var m = n.displayName || null;
|
|
2332
|
+
return m !== null ? m : _e(n.type) || "Memo";
|
|
2333
|
+
case re: {
|
|
2334
|
+
var M = n, V = M._payload, A = M._init;
|
|
2335
|
+
try {
|
|
2336
|
+
return _e(A(V));
|
|
2337
|
+
} catch {
|
|
2338
|
+
return null;
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
return null;
|
|
2343
|
+
}
|
|
2344
|
+
var Ee = Object.assign, ce = 0, ke, w, je, Xe, Le, s, d;
|
|
2345
|
+
function x() {
|
|
2346
|
+
}
|
|
2347
|
+
x.__reactDisabledLog = !0;
|
|
2348
|
+
function F() {
|
|
2349
|
+
{
|
|
2350
|
+
if (ce === 0) {
|
|
2351
|
+
ke = console.log, w = console.info, je = console.warn, Xe = console.error, Le = console.group, s = console.groupCollapsed, d = console.groupEnd;
|
|
2352
|
+
var n = {
|
|
2353
|
+
configurable: !0,
|
|
2354
|
+
enumerable: !0,
|
|
2355
|
+
value: x,
|
|
2356
|
+
writable: !0
|
|
2357
|
+
};
|
|
2358
|
+
Object.defineProperties(console, {
|
|
2359
|
+
info: n,
|
|
2360
|
+
log: n,
|
|
2361
|
+
warn: n,
|
|
2362
|
+
error: n,
|
|
2363
|
+
group: n,
|
|
2364
|
+
groupCollapsed: n,
|
|
2365
|
+
groupEnd: n
|
|
2366
|
+
});
|
|
2367
|
+
}
|
|
2368
|
+
ce++;
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
function L() {
|
|
2372
|
+
{
|
|
2373
|
+
if (ce--, ce === 0) {
|
|
2374
|
+
var n = {
|
|
2375
|
+
configurable: !0,
|
|
2376
|
+
enumerable: !0,
|
|
2377
|
+
writable: !0
|
|
2378
|
+
};
|
|
2379
|
+
Object.defineProperties(console, {
|
|
2380
|
+
log: Ee({}, n, {
|
|
2381
|
+
value: ke
|
|
2382
|
+
}),
|
|
2383
|
+
info: Ee({}, n, {
|
|
2384
|
+
value: w
|
|
2385
|
+
}),
|
|
2386
|
+
warn: Ee({}, n, {
|
|
2387
|
+
value: je
|
|
2388
|
+
}),
|
|
2389
|
+
error: Ee({}, n, {
|
|
2390
|
+
value: Xe
|
|
2391
|
+
}),
|
|
2392
|
+
group: Ee({}, n, {
|
|
2393
|
+
value: Le
|
|
2394
|
+
}),
|
|
2395
|
+
groupCollapsed: Ee({}, n, {
|
|
2396
|
+
value: s
|
|
2397
|
+
}),
|
|
2398
|
+
groupEnd: Ee({}, n, {
|
|
2399
|
+
value: d
|
|
2400
|
+
})
|
|
2401
|
+
});
|
|
2402
|
+
}
|
|
2403
|
+
ce < 0 && B("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
var z = ye.ReactCurrentDispatcher, q;
|
|
2407
|
+
function W(n, f, v) {
|
|
2408
|
+
{
|
|
2409
|
+
if (q === void 0)
|
|
2410
|
+
try {
|
|
2411
|
+
throw Error();
|
|
2412
|
+
} catch (M) {
|
|
2413
|
+
var m = M.stack.trim().match(/\n( *(at )?)/);
|
|
2414
|
+
q = m && m[1] || "";
|
|
2415
|
+
}
|
|
2416
|
+
return `
|
|
2417
|
+
` + q + n;
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
var $ = !1, se;
|
|
2421
|
+
{
|
|
2422
|
+
var dr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
2423
|
+
se = new dr();
|
|
2424
|
+
}
|
|
2425
|
+
function Yt(n, f) {
|
|
2426
|
+
if (!n || $)
|
|
2427
|
+
return "";
|
|
2428
|
+
{
|
|
2429
|
+
var v = se.get(n);
|
|
2430
|
+
if (v !== void 0)
|
|
2431
|
+
return v;
|
|
2432
|
+
}
|
|
2433
|
+
var m;
|
|
2434
|
+
$ = !0;
|
|
2435
|
+
var M = Error.prepareStackTrace;
|
|
2436
|
+
Error.prepareStackTrace = void 0;
|
|
2437
|
+
var V;
|
|
2438
|
+
V = z.current, z.current = null, F();
|
|
2439
|
+
try {
|
|
2440
|
+
if (f) {
|
|
2441
|
+
var A = function() {
|
|
2442
|
+
throw Error();
|
|
2443
|
+
};
|
|
2444
|
+
if (Object.defineProperty(A.prototype, "props", {
|
|
2445
|
+
set: function() {
|
|
2446
|
+
throw Error();
|
|
2447
|
+
}
|
|
2448
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2449
|
+
try {
|
|
2450
|
+
Reflect.construct(A, []);
|
|
2451
|
+
} catch (pe) {
|
|
2452
|
+
m = pe;
|
|
2453
|
+
}
|
|
2454
|
+
Reflect.construct(n, [], A);
|
|
2455
|
+
} else {
|
|
2456
|
+
try {
|
|
2457
|
+
A.call();
|
|
2458
|
+
} catch (pe) {
|
|
2459
|
+
m = pe;
|
|
2460
|
+
}
|
|
2461
|
+
n.call(A.prototype);
|
|
2462
|
+
}
|
|
2463
|
+
} else {
|
|
2464
|
+
try {
|
|
2465
|
+
throw Error();
|
|
2466
|
+
} catch (pe) {
|
|
2467
|
+
m = pe;
|
|
2468
|
+
}
|
|
2469
|
+
n();
|
|
2470
|
+
}
|
|
2471
|
+
} catch (pe) {
|
|
2472
|
+
if (pe && m && typeof pe.stack == "string") {
|
|
2473
|
+
for (var k = pe.stack.split(`
|
|
2474
|
+
`), le = m.stack.split(`
|
|
2475
|
+
`), Z = k.length - 1, te = le.length - 1; Z >= 1 && te >= 0 && k[Z] !== le[te]; )
|
|
2476
|
+
te--;
|
|
2477
|
+
for (; Z >= 1 && te >= 0; Z--, te--)
|
|
2478
|
+
if (k[Z] !== le[te]) {
|
|
2479
|
+
if (Z !== 1 || te !== 1)
|
|
2480
|
+
do
|
|
2481
|
+
if (Z--, te--, te < 0 || k[Z] !== le[te]) {
|
|
2482
|
+
var Re = `
|
|
2483
|
+
` + k[Z].replace(" at new ", " at ");
|
|
2484
|
+
return n.displayName && Re.includes("<anonymous>") && (Re = Re.replace("<anonymous>", n.displayName)), typeof n == "function" && se.set(n, Re), Re;
|
|
2485
|
+
}
|
|
2486
|
+
while (Z >= 1 && te >= 0);
|
|
2487
|
+
break;
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
} finally {
|
|
2491
|
+
$ = !1, z.current = V, L(), Error.prepareStackTrace = M;
|
|
2492
|
+
}
|
|
2493
|
+
var Qe = n ? n.displayName || n.name : "", Me = Qe ? W(Qe) : "";
|
|
2494
|
+
return typeof n == "function" && se.set(n, Me), Me;
|
|
2495
|
+
}
|
|
2496
|
+
function lt(n, f, v) {
|
|
2497
|
+
return Yt(n, !1);
|
|
2498
|
+
}
|
|
2499
|
+
function hr(n) {
|
|
2500
|
+
var f = n.prototype;
|
|
2501
|
+
return !!(f && f.isReactComponent);
|
|
2502
|
+
}
|
|
2503
|
+
function ft(n, f, v) {
|
|
2504
|
+
if (n == null)
|
|
2505
|
+
return "";
|
|
2506
|
+
if (typeof n == "function")
|
|
2507
|
+
return Yt(n, hr(n));
|
|
2508
|
+
if (typeof n == "string")
|
|
2509
|
+
return W(n);
|
|
2510
|
+
switch (n) {
|
|
2511
|
+
case T:
|
|
2512
|
+
return W("Suspense");
|
|
2513
|
+
case R:
|
|
2514
|
+
return W("SuspenseList");
|
|
2515
|
+
}
|
|
2516
|
+
if (typeof n == "object")
|
|
2517
|
+
switch (n.$$typeof) {
|
|
2518
|
+
case E:
|
|
2519
|
+
return lt(n.render);
|
|
2520
|
+
case O:
|
|
2521
|
+
return ft(n.type, f, v);
|
|
2522
|
+
case re: {
|
|
2523
|
+
var m = n, M = m._payload, V = m._init;
|
|
2524
|
+
try {
|
|
2525
|
+
return ft(V(M), f, v);
|
|
2526
|
+
} catch {
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
return "";
|
|
2531
|
+
}
|
|
2532
|
+
var We = Object.prototype.hasOwnProperty, Ze = {}, qt = ye.ReactDebugCurrentFrame;
|
|
2533
|
+
function et(n) {
|
|
2534
|
+
if (n) {
|
|
2535
|
+
var f = n._owner, v = ft(n.type, n._source, f ? f.type : null);
|
|
2536
|
+
qt.setExtraStackFrame(v);
|
|
2537
|
+
} else
|
|
2538
|
+
qt.setExtraStackFrame(null);
|
|
2539
|
+
}
|
|
2540
|
+
function xe(n, f, v, m, M) {
|
|
2541
|
+
{
|
|
2542
|
+
var V = Function.call.bind(We);
|
|
2543
|
+
for (var A in n)
|
|
2544
|
+
if (V(n, A)) {
|
|
2545
|
+
var k = void 0;
|
|
2546
|
+
try {
|
|
2547
|
+
if (typeof n[A] != "function") {
|
|
2548
|
+
var le = Error((m || "React class") + ": " + v + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2549
|
+
throw le.name = "Invariant Violation", le;
|
|
2550
|
+
}
|
|
2551
|
+
k = n[A](f, A, m, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2552
|
+
} catch (Z) {
|
|
2553
|
+
k = Z;
|
|
2554
|
+
}
|
|
2555
|
+
k && !(k instanceof Error) && (et(M), B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", v, A, typeof k), et(null)), k instanceof Error && !(k.message in Ze) && (Ze[k.message] = !0, et(M), B("Failed %s type: %s", v, k.message), et(null));
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
var tt = Array.isArray;
|
|
2560
|
+
function dt(n) {
|
|
2561
|
+
return tt(n);
|
|
2562
|
+
}
|
|
2563
|
+
function Qt(n) {
|
|
2564
|
+
{
|
|
2565
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, v = f && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
2566
|
+
return v;
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
function Bt(n) {
|
|
2570
|
+
try {
|
|
2571
|
+
return ht(n), !1;
|
|
2572
|
+
} catch {
|
|
2573
|
+
return !0;
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
function ht(n) {
|
|
2577
|
+
return "" + n;
|
|
2578
|
+
}
|
|
2579
|
+
function Pt(n) {
|
|
2580
|
+
if (Bt(n))
|
|
2581
|
+
return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qt(n)), ht(n);
|
|
2582
|
+
}
|
|
2583
|
+
var kt = ye.ReactCurrentOwner, pr = {
|
|
2584
|
+
key: !0,
|
|
2585
|
+
ref: !0,
|
|
2586
|
+
__self: !0,
|
|
2587
|
+
__source: !0
|
|
2588
|
+
}, zt, Kt;
|
|
2589
|
+
function jt(n) {
|
|
2590
|
+
if (We.call(n, "ref")) {
|
|
2591
|
+
var f = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
2592
|
+
if (f && f.isReactWarning)
|
|
2593
|
+
return !1;
|
|
2594
|
+
}
|
|
2595
|
+
return n.ref !== void 0;
|
|
2596
|
+
}
|
|
2597
|
+
function vr(n) {
|
|
2598
|
+
if (We.call(n, "key")) {
|
|
2599
|
+
var f = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
2600
|
+
if (f && f.isReactWarning)
|
|
2601
|
+
return !1;
|
|
2602
|
+
}
|
|
2603
|
+
return n.key !== void 0;
|
|
2604
|
+
}
|
|
2605
|
+
function yr(n, f) {
|
|
2606
|
+
typeof n.ref == "string" && kt.current;
|
|
2607
|
+
}
|
|
2608
|
+
function mr(n, f) {
|
|
2609
|
+
{
|
|
2610
|
+
var v = function() {
|
|
2611
|
+
zt || (zt = !0, B("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
2612
|
+
};
|
|
2613
|
+
v.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
2614
|
+
get: v,
|
|
2615
|
+
configurable: !0
|
|
2616
|
+
});
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
function Ye(n, f) {
|
|
2620
|
+
{
|
|
2621
|
+
var v = function() {
|
|
2622
|
+
Kt || (Kt = !0, B("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
2623
|
+
};
|
|
2624
|
+
v.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
2625
|
+
get: v,
|
|
2626
|
+
configurable: !0
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
var Ht = function(n, f, v, m, M, V, A) {
|
|
2631
|
+
var k = {
|
|
2632
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
2633
|
+
$$typeof: t,
|
|
2634
|
+
// Built-in properties that belong on the element
|
|
2635
|
+
type: n,
|
|
2636
|
+
key: f,
|
|
2637
|
+
ref: v,
|
|
2638
|
+
props: A,
|
|
2639
|
+
// Record the component responsible for creating this element.
|
|
2640
|
+
_owner: V
|
|
2641
|
+
};
|
|
2642
|
+
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
2643
|
+
configurable: !1,
|
|
2644
|
+
enumerable: !1,
|
|
2645
|
+
writable: !0,
|
|
2646
|
+
value: !1
|
|
2647
|
+
}), Object.defineProperty(k, "_self", {
|
|
2648
|
+
configurable: !1,
|
|
2649
|
+
enumerable: !1,
|
|
2650
|
+
writable: !1,
|
|
2651
|
+
value: m
|
|
2652
|
+
}), Object.defineProperty(k, "_source", {
|
|
2653
|
+
configurable: !1,
|
|
2654
|
+
enumerable: !1,
|
|
2655
|
+
writable: !1,
|
|
2656
|
+
value: M
|
|
2657
|
+
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
2658
|
+
};
|
|
2659
|
+
function br(n, f, v, m, M) {
|
|
2660
|
+
{
|
|
2661
|
+
var V, A = {}, k = null, le = null;
|
|
2662
|
+
v !== void 0 && (Pt(v), k = "" + v), vr(f) && (Pt(f.key), k = "" + f.key), jt(f) && (le = f.ref, yr(f, M));
|
|
2663
|
+
for (V in f)
|
|
2664
|
+
We.call(f, V) && !pr.hasOwnProperty(V) && (A[V] = f[V]);
|
|
2665
|
+
if (n && n.defaultProps) {
|
|
2666
|
+
var Z = n.defaultProps;
|
|
2667
|
+
for (V in Z)
|
|
2668
|
+
A[V] === void 0 && (A[V] = Z[V]);
|
|
2669
|
+
}
|
|
2670
|
+
if (k || le) {
|
|
2671
|
+
var te = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
2672
|
+
k && mr(A, te), le && Ye(A, te);
|
|
2673
|
+
}
|
|
2674
|
+
return Ht(n, k, le, M, m, kt.current, A);
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
var xt = ye.ReactCurrentOwner, At = ye.ReactDebugCurrentFrame;
|
|
2678
|
+
function qe(n) {
|
|
2679
|
+
if (n) {
|
|
2680
|
+
var f = n._owner, v = ft(n.type, n._source, f ? f.type : null);
|
|
2681
|
+
At.setExtraStackFrame(v);
|
|
2682
|
+
} else
|
|
2683
|
+
At.setExtraStackFrame(null);
|
|
2684
|
+
}
|
|
2685
|
+
var pt;
|
|
2686
|
+
pt = !1;
|
|
2687
|
+
function rt(n) {
|
|
2688
|
+
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
2689
|
+
}
|
|
2690
|
+
function nt() {
|
|
2691
|
+
{
|
|
2692
|
+
if (xt.current) {
|
|
2693
|
+
var n = _e(xt.current.type);
|
|
2694
|
+
if (n)
|
|
2695
|
+
return `
|
|
2696
|
+
|
|
2697
|
+
Check the render method of \`` + n + "`.";
|
|
2698
|
+
}
|
|
2699
|
+
return "";
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
function vt(n) {
|
|
2703
|
+
return "";
|
|
2704
|
+
}
|
|
2705
|
+
var Jt = {};
|
|
2706
|
+
function gr(n) {
|
|
2707
|
+
{
|
|
2708
|
+
var f = nt();
|
|
2709
|
+
if (!f) {
|
|
2710
|
+
var v = typeof n == "string" ? n : n.displayName || n.name;
|
|
2711
|
+
v && (f = `
|
|
2712
|
+
|
|
2713
|
+
Check the top-level render call using <` + v + ">.");
|
|
2714
|
+
}
|
|
2715
|
+
return f;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
function Gt(n, f) {
|
|
2719
|
+
{
|
|
2720
|
+
if (!n._store || n._store.validated || n.key != null)
|
|
2721
|
+
return;
|
|
2722
|
+
n._store.validated = !0;
|
|
2723
|
+
var v = gr(f);
|
|
2724
|
+
if (Jt[v])
|
|
2725
|
+
return;
|
|
2726
|
+
Jt[v] = !0;
|
|
2727
|
+
var m = "";
|
|
2728
|
+
n && n._owner && n._owner !== xt.current && (m = " It was passed a child from " + _e(n._owner.type) + "."), qe(n), B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, m), qe(null);
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
function Xt(n, f) {
|
|
2732
|
+
{
|
|
2733
|
+
if (typeof n != "object")
|
|
2734
|
+
return;
|
|
2735
|
+
if (dt(n))
|
|
2736
|
+
for (var v = 0; v < n.length; v++) {
|
|
2737
|
+
var m = n[v];
|
|
2738
|
+
rt(m) && Gt(m, f);
|
|
2739
|
+
}
|
|
2740
|
+
else if (rt(n))
|
|
2741
|
+
n._store && (n._store.validated = !0);
|
|
2742
|
+
else if (n) {
|
|
2743
|
+
var M = ne(n);
|
|
2744
|
+
if (typeof M == "function" && M !== n.entries)
|
|
2745
|
+
for (var V = M.call(n), A; !(A = V.next()).done; )
|
|
2746
|
+
rt(A.value) && Gt(A.value, f);
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
function _r(n) {
|
|
2751
|
+
{
|
|
2752
|
+
var f = n.type;
|
|
2753
|
+
if (f == null || typeof f == "string")
|
|
2754
|
+
return;
|
|
2755
|
+
var v;
|
|
2756
|
+
if (typeof f == "function")
|
|
2757
|
+
v = f.propTypes;
|
|
2758
|
+
else if (typeof f == "object" && (f.$$typeof === E || // Note: Memo only checks outer props here.
|
|
2759
|
+
// Inner props are checked in the reconciler.
|
|
2760
|
+
f.$$typeof === O))
|
|
2761
|
+
v = f.propTypes;
|
|
2762
|
+
else
|
|
2763
|
+
return;
|
|
2764
|
+
if (v) {
|
|
2765
|
+
var m = _e(f);
|
|
2766
|
+
xe(v, n.props, "prop", m, n);
|
|
2767
|
+
} else if (f.PropTypes !== void 0 && !pt) {
|
|
2768
|
+
pt = !0;
|
|
2769
|
+
var M = _e(f);
|
|
2770
|
+
B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
|
|
2771
|
+
}
|
|
2772
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
function it(n) {
|
|
2776
|
+
{
|
|
2777
|
+
for (var f = Object.keys(n.props), v = 0; v < f.length; v++) {
|
|
2778
|
+
var m = f[v];
|
|
2779
|
+
if (m !== "children" && m !== "key") {
|
|
2780
|
+
qe(n), B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), qe(null);
|
|
2781
|
+
break;
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
n.ref !== null && (qe(n), B("Invalid attribute `ref` supplied to `React.Fragment`."), qe(null));
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
var yt = {};
|
|
2788
|
+
function Ft(n, f, v, m, M, V) {
|
|
2789
|
+
{
|
|
2790
|
+
var A = ge(n);
|
|
2791
|
+
if (!A) {
|
|
2792
|
+
var k = "";
|
|
2793
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2794
|
+
var le = vt();
|
|
2795
|
+
le ? k += le : k += nt();
|
|
2796
|
+
var Z;
|
|
2797
|
+
n === null ? Z = "null" : dt(n) ? Z = "array" : n !== void 0 && n.$$typeof === t ? (Z = "<" + (_e(n.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof n, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, k);
|
|
2798
|
+
}
|
|
2799
|
+
var te = br(n, f, v, M, V);
|
|
2800
|
+
if (te == null)
|
|
2801
|
+
return te;
|
|
2802
|
+
if (A) {
|
|
2803
|
+
var Re = f.children;
|
|
2804
|
+
if (Re !== void 0)
|
|
2805
|
+
if (m)
|
|
2806
|
+
if (dt(Re)) {
|
|
2807
|
+
for (var Qe = 0; Qe < Re.length; Qe++)
|
|
2808
|
+
Xt(Re[Qe], n);
|
|
2809
|
+
Object.freeze && Object.freeze(Re);
|
|
2810
|
+
} else
|
|
2811
|
+
B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2812
|
+
else
|
|
2813
|
+
Xt(Re, n);
|
|
2814
|
+
}
|
|
2815
|
+
if (We.call(f, "key")) {
|
|
2816
|
+
var Me = _e(n), pe = Object.keys(f).filter(function(Sr) {
|
|
2817
|
+
return Sr !== "key";
|
|
2818
|
+
}), It = pe.length > 0 ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2819
|
+
if (!yt[Me + It]) {
|
|
2820
|
+
var Or = pe.length > 0 ? "{" + pe.join(": ..., ") + ": ...}" : "{}";
|
|
2821
|
+
B(`A props object containing a "key" prop is being spread into JSX:
|
|
2822
|
+
let props = %s;
|
|
2823
|
+
<%s {...props} />
|
|
2824
|
+
React keys must be passed directly to JSX without using spread:
|
|
2825
|
+
let props = %s;
|
|
2826
|
+
<%s key={someKey} {...props} />`, It, Me, Or, Me), yt[Me + It] = !0;
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
return n === l ? it(te) : _r(te), te;
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
function Er(n, f, v) {
|
|
2833
|
+
return Ft(n, f, v, !0);
|
|
2834
|
+
}
|
|
2835
|
+
function Rr(n, f, v) {
|
|
2836
|
+
return Ft(n, f, v, !1);
|
|
2837
|
+
}
|
|
2838
|
+
var wr = Rr, Cr = Er;
|
|
2839
|
+
Mt.Fragment = l, Mt.jsx = wr, Mt.jsxs = Cr;
|
|
2840
|
+
}()), Mt;
|
|
2841
|
+
}
|
|
2842
|
+
Tt.env.NODE_ENV === "production" ? Ui() : Ni();
|
|
2843
|
+
var $i = ue.createContext(
|
|
2844
|
+
void 0
|
|
2845
|
+
), Bn = (i) => {
|
|
2846
|
+
const t = ue.useContext($i);
|
|
2847
|
+
if (!t)
|
|
2848
|
+
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
2849
|
+
return t;
|
|
2850
|
+
}, zn = ue.createContext(!1), Vi = () => ue.useContext(zn);
|
|
2851
|
+
zn.Provider;
|
|
2852
|
+
function Wi() {
|
|
2853
|
+
let i = !1;
|
|
2854
|
+
return {
|
|
2855
|
+
clearReset: () => {
|
|
2856
|
+
i = !1;
|
|
2857
|
+
},
|
|
2858
|
+
reset: () => {
|
|
2859
|
+
i = !0;
|
|
2860
|
+
},
|
|
2861
|
+
isReset: () => i
|
|
2862
|
+
};
|
|
2863
|
+
}
|
|
2864
|
+
var Yi = ue.createContext(Wi()), qi = () => ue.useContext(Yi);
|
|
2865
|
+
function Kn(i, t) {
|
|
2866
|
+
return typeof i == "function" ? i(...t) : !!i;
|
|
2867
|
+
}
|
|
2868
|
+
function Hn() {
|
|
2869
|
+
}
|
|
2870
|
+
var Qi = (i, t) => {
|
|
2871
|
+
(i.suspense || i.throwOnError || i.experimental_prefetchInRender) && (t.isReset() || (i.retryOnMount = !1));
|
|
2872
|
+
}, Bi = (i) => {
|
|
2873
|
+
ue.useEffect(() => {
|
|
2874
|
+
i.clearReset();
|
|
2875
|
+
}, [i]);
|
|
2876
|
+
}, zi = ({
|
|
2877
|
+
result: i,
|
|
2878
|
+
errorResetBoundary: t,
|
|
2879
|
+
throwOnError: a,
|
|
2880
|
+
query: l
|
|
2881
|
+
}) => i.isError && !t.isReset() && !i.isFetching && l && Kn(a, [i.error, l]), Ki = (i) => {
|
|
2882
|
+
i.suspense && (i.staleTime === void 0 && (i.staleTime = 1e3), typeof i.gcTime == "number" && (i.gcTime = Math.max(i.gcTime, 1e3)));
|
|
2883
|
+
}, Hi = (i, t) => i.isLoading && i.isFetching && !t, Ji = (i, t) => (i == null ? void 0 : i.suspense) && t.isPending, Dn = (i, t, a) => t.fetchOptimistic(i).catch(() => {
|
|
2884
|
+
a.clearReset();
|
|
2885
|
+
});
|
|
2886
|
+
function Gi(i, t, a) {
|
|
2887
|
+
var R, O, re, N, de;
|
|
2888
|
+
if (Tt.env.NODE_ENV !== "production" && (typeof i != "object" || Array.isArray(i)))
|
|
2889
|
+
throw new Error(
|
|
2890
|
+
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
2891
|
+
);
|
|
2892
|
+
const l = Bn(), p = Vi(), g = qi(), y = l.defaultQueryOptions(i);
|
|
2893
|
+
(O = (R = l.getDefaultOptions().queries) == null ? void 0 : R._experimental_beforeQuery) == null || O.call(
|
|
2894
|
+
R,
|
|
2895
|
+
y
|
|
2896
|
+
), y._optimisticResults = p ? "isRestoring" : "optimistic", Ki(y), Qi(y, g), Bi(g);
|
|
2897
|
+
const _ = !l.getQueryCache().get(y.queryHash), [E] = ue.useState(
|
|
2898
|
+
() => new t(
|
|
2899
|
+
l,
|
|
2900
|
+
y
|
|
2901
|
+
)
|
|
2902
|
+
), T = E.getOptimisticResult(y);
|
|
2903
|
+
if (ue.useSyncExternalStore(
|
|
2904
|
+
ue.useCallback(
|
|
2905
|
+
(ve) => {
|
|
2906
|
+
const ne = p ? () => {
|
|
2907
|
+
} : E.subscribe(fr.batchCalls(ve));
|
|
2908
|
+
return E.updateResult(), ne;
|
|
2909
|
+
},
|
|
2910
|
+
[E, p]
|
|
2911
|
+
),
|
|
2912
|
+
() => E.getCurrentResult(),
|
|
2913
|
+
() => E.getCurrentResult()
|
|
2914
|
+
), ue.useEffect(() => {
|
|
2915
|
+
E.setOptions(y, { listeners: !1 });
|
|
2916
|
+
}, [y, E]), Ji(y, T))
|
|
2917
|
+
throw Dn(y, E, g);
|
|
2918
|
+
if (zi({
|
|
2919
|
+
result: T,
|
|
2920
|
+
errorResetBoundary: g,
|
|
2921
|
+
throwOnError: y.throwOnError,
|
|
2922
|
+
query: l.getQueryCache().get(y.queryHash)
|
|
2923
|
+
}))
|
|
2924
|
+
throw T.error;
|
|
2925
|
+
if ((N = (re = l.getDefaultOptions().queries) == null ? void 0 : re._experimental_afterQuery) == null || N.call(
|
|
2926
|
+
re,
|
|
2927
|
+
y,
|
|
2928
|
+
T
|
|
2929
|
+
), y.experimental_prefetchInRender && !$t && Hi(T, p)) {
|
|
2930
|
+
const ve = _ ? (
|
|
2931
|
+
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
2932
|
+
Dn(y, E, g)
|
|
2933
|
+
) : (
|
|
2934
|
+
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
2935
|
+
(de = l.getQueryCache().get(y.queryHash)) == null ? void 0 : de.promise
|
|
2936
|
+
);
|
|
2937
|
+
ve == null || ve.catch(Hn).finally(() => {
|
|
2938
|
+
E.updateResult();
|
|
2939
|
+
});
|
|
2940
|
+
}
|
|
2941
|
+
return y.notifyOnChangeProps ? T : E.trackResult(T);
|
|
2942
|
+
}
|
|
2943
|
+
function Xi(i, t) {
|
|
2944
|
+
return Gi(i, Ai);
|
|
2945
|
+
}
|
|
2946
|
+
function Zi(i, t) {
|
|
2947
|
+
const a = Bn(), [l] = ue.useState(
|
|
2948
|
+
() => new Di(
|
|
2949
|
+
a,
|
|
2950
|
+
i
|
|
2951
|
+
)
|
|
2952
|
+
);
|
|
2953
|
+
ue.useEffect(() => {
|
|
2954
|
+
l.setOptions(i);
|
|
2955
|
+
}, [l, i]);
|
|
2956
|
+
const p = ue.useSyncExternalStore(
|
|
2957
|
+
ue.useCallback(
|
|
2958
|
+
(y) => l.subscribe(fr.batchCalls(y)),
|
|
2959
|
+
[l]
|
|
2960
|
+
),
|
|
2961
|
+
() => l.getCurrentResult(),
|
|
2962
|
+
() => l.getCurrentResult()
|
|
2963
|
+
), g = ue.useCallback(
|
|
2964
|
+
(y, _) => {
|
|
2965
|
+
l.mutate(y, _).catch(Hn);
|
|
2966
|
+
},
|
|
2967
|
+
[l]
|
|
2968
|
+
);
|
|
2969
|
+
if (p.error && Kn(l.options.throwOnError, [p.error]))
|
|
2970
|
+
throw p.error;
|
|
2971
|
+
return { ...p, mutate: g, mutateAsync: p.mutate };
|
|
2972
|
+
}
|
|
2973
|
+
const Ln = {
|
|
2974
|
+
id: "json",
|
|
2975
|
+
requestContentType: "application/json",
|
|
2976
|
+
responseContentType: "application/json",
|
|
2977
|
+
decodeRequest: async (i) => {
|
|
2978
|
+
if (!(i.headers.get("content-type") || "").includes("application/json")) {
|
|
2979
|
+
const l = await i.text();
|
|
2980
|
+
if (!l) return;
|
|
2981
|
+
try {
|
|
2982
|
+
return JSON.parse(l);
|
|
2983
|
+
} catch {
|
|
2984
|
+
return l;
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
const a = await i.text();
|
|
2988
|
+
if (a)
|
|
2989
|
+
return JSON.parse(a);
|
|
2990
|
+
},
|
|
2991
|
+
encodeResponse: async (i) => ({
|
|
2992
|
+
body: JSON.stringify(i),
|
|
2993
|
+
headers: { "content-type": "application/json" }
|
|
2994
|
+
})
|
|
2995
|
+
}, ea = (i, t) => {
|
|
2996
|
+
let a = `${i}${t.query ? `?${new URLSearchParams(t.query || {})}` : ""}`;
|
|
2997
|
+
return t && t.urlParams && Object.keys(t.urlParams).forEach(
|
|
2998
|
+
(l) => {
|
|
2999
|
+
a = a.replace(
|
|
3000
|
+
`{${l}}`,
|
|
3001
|
+
t == null ? void 0 : t.urlParams[l]
|
|
3002
|
+
);
|
|
3003
|
+
}
|
|
3004
|
+
), a;
|
|
3005
|
+
}, ta = (i) => {
|
|
3006
|
+
const t = i.fetchFn ?? fetch, a = i.headersProvider;
|
|
3007
|
+
return { call: async (p, g) => {
|
|
3008
|
+
const y = ea(
|
|
3009
|
+
(p == null ? void 0 : p.endpoint) || (p == null ? void 0 : p.path) || "/",
|
|
3010
|
+
g
|
|
3011
|
+
), _ = await (a == null ? void 0 : a()) ?? {}, E = `${i.baseUrl}${y}`, T = await t(E, {
|
|
3012
|
+
method: p.method || "get",
|
|
3013
|
+
body: g.body === void 0 ? void 0 : JSON.stringify(g.body),
|
|
3014
|
+
headers: {
|
|
3015
|
+
..._,
|
|
3016
|
+
...g.headers ?? {},
|
|
3017
|
+
...g.body === void 0 ? {} : { "content-type": Ln.requestContentType }
|
|
3018
|
+
},
|
|
3019
|
+
signal: g.signal
|
|
3020
|
+
});
|
|
3021
|
+
if (!T.ok) {
|
|
3022
|
+
const O = await T.text();
|
|
3023
|
+
throw new Error(O || `Request failed with status ${T.status}`);
|
|
3024
|
+
}
|
|
3025
|
+
return await Ln.decodeRequest(T);
|
|
3026
|
+
} };
|
|
3027
|
+
}, ra = (i, t) => [
|
|
3028
|
+
i,
|
|
3029
|
+
...t.urlParams ? Object.values(t.urlParams) : [],
|
|
3030
|
+
...t.query ? Object.values(t.query) : [],
|
|
3031
|
+
...t.body ? Object.values(t.body) : []
|
|
3032
|
+
], ia = (i) => {
|
|
3033
|
+
const t = ta(i);
|
|
3034
|
+
return {
|
|
3035
|
+
useApiQuery: (p, g, y) => {
|
|
3036
|
+
const _ = p.endpoint || p.path || "/", E = ra(_, g), T = Xi({
|
|
3037
|
+
queryKey: E,
|
|
3038
|
+
enabled: y == null ? void 0 : y.enabled,
|
|
3039
|
+
initialData: y == null ? void 0 : y.initialData,
|
|
3040
|
+
queryFn: async () => t.call(p, g)
|
|
3041
|
+
});
|
|
3042
|
+
return { queryKey: E, query: T };
|
|
3043
|
+
},
|
|
3044
|
+
useApiMutation: (p, g) => Zi({
|
|
3045
|
+
mutationFn: async (y) => t.call(p, {
|
|
3046
|
+
...g ?? {},
|
|
3047
|
+
body: y
|
|
3048
|
+
})
|
|
3049
|
+
})
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
export {
|
|
3053
|
+
ia as createReactQueryAdapter
|
|
3054
|
+
};
|
|
3055
|
+
//# sourceMappingURL=react-query.es.js.map
|