@entropic-bond/crud-panel 4.1.3 → 4.2.1
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/lib/crud-panel.d.ts +2 -2
- package/lib/entropic-bond-crud-panel.js +1991 -1679
- package/lib/entropic-bond-crud-panel.js.map +1 -1
- package/lib/entropic-bond-crud-panel.umd.cjs +48 -19
- package/lib/entropic-bond-crud-panel.umd.cjs.map +1 -1
- package/lib/progress-controller.d.ts +4 -1
- package/package.json +19 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class Je {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.subscribers = /* @__PURE__ */ new Set();
|
|
4
4
|
}
|
|
@@ -26,7 +26,7 @@ class Le {
|
|
|
26
26
|
* @param event the event passed to all subscribers.
|
|
27
27
|
*/
|
|
28
28
|
notify(t) {
|
|
29
|
-
this.subscribers.forEach((
|
|
29
|
+
this.subscribers.forEach((i) => i(t));
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Returns the number of subscribers.
|
|
@@ -43,49 +43,47 @@ class Le {
|
|
|
43
43
|
return this.subscribers.size;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return Me(Qr);
|
|
46
|
+
const U = [];
|
|
47
|
+
for (let r = 0; r < 256; ++r)
|
|
48
|
+
U.push((r + 256).toString(16).slice(1));
|
|
49
|
+
function Nt(r, t = 0) {
|
|
50
|
+
return (U[r[t + 0]] + U[r[t + 1]] + U[r[t + 2]] + U[r[t + 3]] + "-" + U[r[t + 4]] + U[r[t + 5]] + "-" + U[r[t + 6]] + U[r[t + 7]] + "-" + U[r[t + 8]] + U[r[t + 9]] + "-" + U[r[t + 10]] + U[r[t + 11]] + U[r[t + 12]] + U[r[t + 13]] + U[r[t + 14]] + U[r[t + 15]]).toLowerCase();
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
let ot;
|
|
53
|
+
const kt = new Uint8Array(16);
|
|
54
|
+
function Dt() {
|
|
55
|
+
if (!ot) {
|
|
56
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
57
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
58
|
+
ot = crypto.getRandomValues.bind(crypto);
|
|
59
|
+
}
|
|
60
|
+
return ot(kt);
|
|
58
61
|
}
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
for (let l = 0; l < 16; ++l)
|
|
70
|
-
t[s + l] = c[l];
|
|
71
|
-
return t;
|
|
72
|
-
}
|
|
73
|
-
return Zr(c);
|
|
62
|
+
const Mt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: Mt };
|
|
63
|
+
function $t(r, t, i) {
|
|
64
|
+
var f;
|
|
65
|
+
if (yt.randomUUID && !r)
|
|
66
|
+
return yt.randomUUID();
|
|
67
|
+
r = r || {};
|
|
68
|
+
const c = r.random ?? ((f = r.rng) == null ? void 0 : f.call(r)) ?? Dt();
|
|
69
|
+
if (c.length < 16)
|
|
70
|
+
throw new Error("Random bytes length must be >= 16");
|
|
71
|
+
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, Nt(c);
|
|
74
72
|
}
|
|
75
|
-
var
|
|
76
|
-
for (var
|
|
77
|
-
(
|
|
78
|
-
return c &&
|
|
79
|
-
},
|
|
80
|
-
const
|
|
73
|
+
var xt = Object.defineProperty, Yt = (r, t, i, f) => {
|
|
74
|
+
for (var c = void 0, v = r.length - 1, S; v >= 0; v--)
|
|
75
|
+
(S = r[v]) && (c = S(t, i, c) || c);
|
|
76
|
+
return c && xt(t, i, c), c;
|
|
77
|
+
}, Y;
|
|
78
|
+
const Tt = (Y = class {
|
|
81
79
|
/**
|
|
82
80
|
* Registers a class to be used by the persistence engine.
|
|
83
81
|
* @param className the name of the class to be registered
|
|
84
82
|
* @param factory the constructor of the registered class
|
|
85
83
|
* @param annotation an annotation associated with the class
|
|
86
84
|
*/
|
|
87
|
-
static registerFactory(
|
|
88
|
-
this._factoryMap[
|
|
85
|
+
static registerFactory(r, t, i) {
|
|
86
|
+
this._factoryMap[r] = { factory: t, annotation: i };
|
|
89
87
|
}
|
|
90
88
|
/**
|
|
91
89
|
* Returns the constructor of a registered class
|
|
@@ -97,12 +95,10 @@ const xt = (x = class {
|
|
|
97
95
|
* @see classesExtending
|
|
98
96
|
* @see annotations
|
|
99
97
|
*/
|
|
100
|
-
static classFactory(
|
|
101
|
-
if (!
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
throw new Error(`You should register class ${n} prior to use.`);
|
|
105
|
-
return this._factoryMap[n].factory;
|
|
98
|
+
static classFactory(r) {
|
|
99
|
+
if (!r) throw new Error("You should provide a class name.");
|
|
100
|
+
if (!this._factoryMap[r]) throw new Error(`You should register class ${r} prior to use.`);
|
|
101
|
+
return this._factoryMap[r].factory;
|
|
106
102
|
}
|
|
107
103
|
/**
|
|
108
104
|
* Returns the names of all registered classes
|
|
@@ -120,8 +116,8 @@ const xt = (x = class {
|
|
|
120
116
|
* @see registerFactory
|
|
121
117
|
* @see classFactory
|
|
122
118
|
*/
|
|
123
|
-
static classesExtending(
|
|
124
|
-
return Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof
|
|
119
|
+
static classesExtending(r) {
|
|
120
|
+
return Object.entries(this._factoryMap).filter(([, t]) => new t.factory() instanceof r).map(([t]) => t);
|
|
125
121
|
}
|
|
126
122
|
/**
|
|
127
123
|
* Returns the annotation associated with a registered class
|
|
@@ -130,17 +126,16 @@ const xt = (x = class {
|
|
|
130
126
|
* @throws an error if the class is not registered
|
|
131
127
|
* @see registerFactory
|
|
132
128
|
*/
|
|
133
|
-
static annotations(
|
|
134
|
-
if (
|
|
135
|
-
|
|
136
|
-
return this._factoryMap[n].annotation;
|
|
129
|
+
static annotations(r) {
|
|
130
|
+
if (r instanceof Y ? r = r.className : typeof r == "string" || (r = new r().className), !this._factoryMap[r]) throw new Error(`You should register class ${r} prior to use.`);
|
|
131
|
+
return this._factoryMap[r].annotation;
|
|
137
132
|
}
|
|
138
133
|
/**
|
|
139
134
|
* Returns a new instance of Persistent class.
|
|
140
135
|
* @param className the initial id of this instance. If not provided, a new id will be generated
|
|
141
136
|
*/
|
|
142
|
-
constructor(
|
|
143
|
-
this._id =
|
|
137
|
+
constructor(r = $t()) {
|
|
138
|
+
this._id = r;
|
|
144
139
|
}
|
|
145
140
|
/**
|
|
146
141
|
* Gets the class name of this instance.
|
|
@@ -152,8 +147,8 @@ const xt = (x = class {
|
|
|
152
147
|
* Sets the id of this instance.
|
|
153
148
|
* @param value the id of this instance
|
|
154
149
|
*/
|
|
155
|
-
setId(
|
|
156
|
-
this._id =
|
|
150
|
+
setId(r) {
|
|
151
|
+
this._id = r;
|
|
157
152
|
}
|
|
158
153
|
/**
|
|
159
154
|
* Returns the id of this instance.
|
|
@@ -180,9 +175,9 @@ const xt = (x = class {
|
|
|
180
175
|
* @returns an array of the persistent properties of this instance
|
|
181
176
|
*/
|
|
182
177
|
getPersistentProperties() {
|
|
183
|
-
return this._persistentProperties ? this._persistentProperties.map((
|
|
184
|
-
...
|
|
185
|
-
name:
|
|
178
|
+
return this._persistentProperties ? this._persistentProperties.map((r) => ({
|
|
179
|
+
...r,
|
|
180
|
+
name: r.name.slice(1)
|
|
186
181
|
})) : [];
|
|
187
182
|
}
|
|
188
183
|
/**
|
|
@@ -190,10 +185,9 @@ const xt = (x = class {
|
|
|
190
185
|
* @param propName the persistent property name
|
|
191
186
|
* @returns the property information
|
|
192
187
|
*/
|
|
193
|
-
getPropInfo(
|
|
194
|
-
const t = this.getPersistentProperties().find((
|
|
195
|
-
if (!t)
|
|
196
|
-
throw new Error(`Property "${n}" has not been registered.`);
|
|
188
|
+
getPropInfo(r) {
|
|
189
|
+
const t = this.getPersistentProperties().find((i) => i.name === r);
|
|
190
|
+
if (!t) throw new Error(`Property "${r}" has not been registered.`);
|
|
197
191
|
return t;
|
|
198
192
|
}
|
|
199
193
|
/**
|
|
@@ -203,8 +197,8 @@ const xt = (x = class {
|
|
|
203
197
|
* @returns true if the property is required
|
|
204
198
|
* @see required
|
|
205
199
|
*/
|
|
206
|
-
isRequired(
|
|
207
|
-
return this.getPropInfo(
|
|
200
|
+
isRequired(r) {
|
|
201
|
+
return this.getPropInfo(r).validator != null;
|
|
208
202
|
}
|
|
209
203
|
/**
|
|
210
204
|
* Query if the property value is valid
|
|
@@ -214,8 +208,8 @@ const xt = (x = class {
|
|
|
214
208
|
* passed to the @required decorator
|
|
215
209
|
* @see required
|
|
216
210
|
*/
|
|
217
|
-
isPropValueValid(
|
|
218
|
-
const t = this.getPropInfo(
|
|
211
|
+
isPropValueValid(r) {
|
|
212
|
+
const t = this.getPropInfo(r);
|
|
219
213
|
return t.validator ? t.validator(this[t.name], t, this) : !0;
|
|
220
214
|
}
|
|
221
215
|
/**
|
|
@@ -227,8 +221,8 @@ const xt = (x = class {
|
|
|
227
221
|
* @see fromObject
|
|
228
222
|
* @see toObject
|
|
229
223
|
*/
|
|
230
|
-
clone(
|
|
231
|
-
const t =
|
|
224
|
+
clone(r) {
|
|
225
|
+
const t = r.toObject();
|
|
232
226
|
return delete t.id, this.fromObject(t);
|
|
233
227
|
}
|
|
234
228
|
/**
|
|
@@ -239,13 +233,13 @@ const xt = (x = class {
|
|
|
239
233
|
* @see clone
|
|
240
234
|
* @see toObject
|
|
241
235
|
*/
|
|
242
|
-
fromObject(
|
|
243
|
-
return this.fromObj(
|
|
236
|
+
fromObject(r) {
|
|
237
|
+
return this.fromObj(r), this.afterDeserialize(), this;
|
|
244
238
|
}
|
|
245
|
-
fromObj(
|
|
239
|
+
fromObj(r) {
|
|
246
240
|
return this._persistentProperties ? (this._persistentProperties.forEach((t) => {
|
|
247
|
-
const
|
|
248
|
-
|
|
241
|
+
const i = this.removeUnderscore(t), f = r[i];
|
|
242
|
+
f != null && (this[t.name] = this.fromDeepObject(f));
|
|
249
243
|
}), this) : this;
|
|
250
244
|
}
|
|
251
245
|
/**
|
|
@@ -256,201 +250,215 @@ const xt = (x = class {
|
|
|
256
250
|
* @see clone
|
|
257
251
|
*/
|
|
258
252
|
toObject() {
|
|
259
|
-
const
|
|
260
|
-
return this.pushDocument(
|
|
253
|
+
const r = {}, t = this.toObj(r);
|
|
254
|
+
return this.pushDocument(r, this.className, t), {
|
|
261
255
|
...t,
|
|
262
|
-
__rootCollections:
|
|
256
|
+
__rootCollections: r
|
|
263
257
|
};
|
|
264
258
|
}
|
|
265
|
-
toObj(
|
|
266
|
-
if (!this._persistentProperties)
|
|
267
|
-
return {};
|
|
259
|
+
toObj(r) {
|
|
260
|
+
if (!this._persistentProperties) return {};
|
|
268
261
|
this.beforeSerialize();
|
|
269
262
|
const t = {};
|
|
270
|
-
if (!this.className)
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
c != null && (s.isReference ? t[l] = this.toReferenceObj(s, n) : t[l] = this.toDeepObj(c, n), s.searchableArray && (t[x.searchableArrayNameFor(l)] = c.map((y) => y.id)));
|
|
263
|
+
if (!this.className) throw new Error("You should register this class prior to streaming it.");
|
|
264
|
+
return this._persistentProperties.forEach((i) => {
|
|
265
|
+
const f = this[i.name], c = this.removeUnderscore(i);
|
|
266
|
+
f != null && (i.isReference ? t[c] = this.toReferenceObj(i, r) : t[c] = this.toDeepObj(f, r), i.searchableArray && (t[Y.searchableArrayNameFor(c)] = f.map((v) => v.id)));
|
|
275
267
|
}), t.__className = this.className, t;
|
|
276
268
|
}
|
|
277
|
-
static searchableArrayNameFor(
|
|
278
|
-
return `__${
|
|
279
|
-
}
|
|
280
|
-
fromDeepObject(
|
|
281
|
-
if (
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
return s.__documentReference = n.__documentReference, s;
|
|
269
|
+
static searchableArrayNameFor(r) {
|
|
270
|
+
return `__${r}_searchable`;
|
|
271
|
+
}
|
|
272
|
+
fromDeepObject(r) {
|
|
273
|
+
if (r == null) return r;
|
|
274
|
+
if (Array.isArray(r))
|
|
275
|
+
return r.map((t) => this.fromDeepObject(t));
|
|
276
|
+
if (r.__documentReference) {
|
|
277
|
+
const t = r, i = Y.createInstance(t);
|
|
278
|
+
return i.__documentReference = r.__documentReference, i;
|
|
288
279
|
}
|
|
289
|
-
if (
|
|
290
|
-
return
|
|
291
|
-
if (typeof
|
|
280
|
+
if (r.__className)
|
|
281
|
+
return Y.createInstance(r);
|
|
282
|
+
if (typeof r == "object") {
|
|
292
283
|
const t = {};
|
|
293
|
-
return Object.entries(
|
|
294
|
-
([
|
|
284
|
+
return Object.entries(r).forEach(
|
|
285
|
+
([i, f]) => t[i] = this.fromDeepObject(f)
|
|
295
286
|
), t;
|
|
296
287
|
}
|
|
297
|
-
return
|
|
298
|
-
}
|
|
299
|
-
toDeepObj(
|
|
300
|
-
if (
|
|
301
|
-
if (Array.isArray(
|
|
302
|
-
return
|
|
303
|
-
if (
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return n;
|
|
288
|
+
return r;
|
|
289
|
+
}
|
|
290
|
+
toDeepObj(r, t) {
|
|
291
|
+
if (r != null) {
|
|
292
|
+
if (Array.isArray(r))
|
|
293
|
+
return r.map((i) => this.toDeepObj(i, t));
|
|
294
|
+
if (r.__documentReference) return r;
|
|
295
|
+
if (r instanceof Y)
|
|
296
|
+
return r.toObj(t);
|
|
297
|
+
if (typeof r == "object") {
|
|
298
|
+
const i = {};
|
|
299
|
+
return Object.entries(r).forEach(
|
|
300
|
+
([f, c]) => i[f] = this.toDeepObj(c, t)
|
|
301
|
+
), i;
|
|
302
|
+
}
|
|
303
|
+
return r;
|
|
314
304
|
}
|
|
315
305
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
306
|
+
static collectionPath(r, t) {
|
|
307
|
+
let i;
|
|
308
|
+
return typeof t.storeInCollection == "function" ? i = t.storeInCollection(r, t) : i = t.storeInCollection ?? r.className, i;
|
|
309
|
+
}
|
|
310
|
+
toReferenceObj(r, t) {
|
|
311
|
+
var i;
|
|
312
|
+
const f = this[r.name];
|
|
313
|
+
return Array.isArray(f) ? f.map((c) => {
|
|
314
|
+
var v;
|
|
315
|
+
return r.isPureReference || this.pushDocument(t, Y.collectionPath(c, r), c), this.buildRefObject(c, Y.collectionPath(c, r), (v = r.cachedPropsConfig) == null ? void 0 : v.cachedProps);
|
|
316
|
+
}) : (r.isPureReference || this.pushDocument(t, Y.collectionPath(f, r), f), this.buildRefObject(f, Y.collectionPath(f, r), (i = r.cachedPropsConfig) == null ? void 0 : i.cachedProps));
|
|
322
317
|
}
|
|
323
|
-
buildRefObject(
|
|
324
|
-
const
|
|
318
|
+
buildRefObject(r, t, i) {
|
|
319
|
+
const f = i == null ? void 0 : i.reduce((c, v) => (r[v] !== void 0 && (c[v] = r[v]), c), {});
|
|
325
320
|
return {
|
|
326
|
-
id:
|
|
327
|
-
__className:
|
|
321
|
+
id: r.id,
|
|
322
|
+
__className: r.className || r.__className,
|
|
328
323
|
__documentReference: {
|
|
329
324
|
storedInCollection: t
|
|
330
325
|
},
|
|
331
|
-
...
|
|
326
|
+
...f
|
|
332
327
|
};
|
|
333
328
|
}
|
|
334
|
-
pushDocument(
|
|
335
|
-
if ("__documentReference" in
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
n[t].push(c);
|
|
329
|
+
pushDocument(r, t, i) {
|
|
330
|
+
if ("__documentReference" in i && i.__documentReference) return;
|
|
331
|
+
r[t] || (r[t] = []);
|
|
332
|
+
const f = this.toDeepObj(i, r);
|
|
333
|
+
r[t].push(f);
|
|
340
334
|
}
|
|
341
|
-
removeUnderscore(
|
|
342
|
-
return
|
|
335
|
+
removeUnderscore(r) {
|
|
336
|
+
return r.name.slice(1);
|
|
343
337
|
}
|
|
344
|
-
static createReference(
|
|
345
|
-
const t =
|
|
346
|
-
return t.__documentReference =
|
|
338
|
+
static createReference(r) {
|
|
339
|
+
const t = Y.createInstance(r);
|
|
340
|
+
return t.__documentReference = r.__documentReference || { storedInCollection: t.className }, t;
|
|
347
341
|
}
|
|
348
|
-
static createInstance(
|
|
349
|
-
if (typeof
|
|
350
|
-
return new (
|
|
342
|
+
static createInstance(r) {
|
|
343
|
+
if (typeof r == "string")
|
|
344
|
+
return new (Y.classFactory(r))();
|
|
351
345
|
try {
|
|
352
|
-
return new (
|
|
346
|
+
return new (Y.classFactory(r.__className))().fromObject(r);
|
|
353
347
|
} catch (t) {
|
|
354
|
-
const
|
|
348
|
+
const i = Object.entries(r).filter(([f, c]) => c != null && typeof c != "function").map(([f, c]) => `${f}: ${c}`).join(`,
|
|
355
349
|
`);
|
|
356
350
|
throw new Error(`${t}
|
|
357
351
|
-----> Class name not found in object:
|
|
358
352
|
{
|
|
359
|
-
${
|
|
353
|
+
${i}
|
|
360
354
|
}
|
|
361
355
|
`);
|
|
362
356
|
}
|
|
363
357
|
}
|
|
364
|
-
static propInfo(
|
|
365
|
-
return
|
|
358
|
+
static propInfo(r, t) {
|
|
359
|
+
return Y.createInstance(r).getPropInfo(t);
|
|
366
360
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
361
|
+
/**
|
|
362
|
+
* Retrieves a collection of references with the properties that are stored in the reference object
|
|
363
|
+
* @returns the references collection
|
|
364
|
+
*/
|
|
365
|
+
static getSystemRegisteredReferencesWithCachedProps() {
|
|
366
|
+
return Y.registeredClasses().reduce((r, t) => {
|
|
367
|
+
const i = Y.createInstance(t).getPersistentProperties().filter(
|
|
368
|
+
(f) => {
|
|
369
|
+
var c;
|
|
370
|
+
return (c = f.cachedPropsConfig) == null ? void 0 : c.cachedProps;
|
|
371
|
+
}
|
|
372
|
+
);
|
|
373
|
+
return i.length > 0 && (r[t] = i), r;
|
|
374
|
+
}, {});
|
|
375
|
+
}
|
|
376
|
+
}, Y._factoryMap = {}, Y);
|
|
377
|
+
Yt([
|
|
378
|
+
xe
|
|
379
|
+
], Tt.prototype, "_id");
|
|
380
|
+
let St = Tt;
|
|
381
|
+
function xe(r, t) {
|
|
382
|
+
return Ht()(r, t);
|
|
374
383
|
}
|
|
375
|
-
function
|
|
376
|
-
return function(t,
|
|
384
|
+
function Ht(r) {
|
|
385
|
+
return function(t, i) {
|
|
377
386
|
Object.getOwnPropertyDescriptor(t, "_persistentProperties") || (t._persistentProperties ? t._persistentProperties = [...t._persistentProperties] : t._persistentProperties = []);
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
name:
|
|
381
|
-
...
|
|
387
|
+
const f = t._persistentProperties.find((c) => c.name === i);
|
|
388
|
+
f ? Object.assign(f, r) : t._persistentProperties.push({
|
|
389
|
+
name: i,
|
|
390
|
+
...r
|
|
382
391
|
});
|
|
383
392
|
};
|
|
384
393
|
}
|
|
385
|
-
function
|
|
386
|
-
return (
|
|
387
|
-
|
|
394
|
+
function Ut(r, t) {
|
|
395
|
+
return (i) => {
|
|
396
|
+
St.registerFactory(r, i, t), i.prototype.__className = r;
|
|
388
397
|
};
|
|
389
398
|
}
|
|
390
|
-
const
|
|
391
|
-
static registerCloudStorage(t,
|
|
392
|
-
|
|
399
|
+
const jt = class $e {
|
|
400
|
+
static registerCloudStorage(t, i) {
|
|
401
|
+
$e._cloudStorageFactoryMap[t] = i;
|
|
393
402
|
}
|
|
394
403
|
static createInstance(t) {
|
|
395
|
-
const
|
|
396
|
-
if (!
|
|
404
|
+
const i = $e._cloudStorageFactoryMap[t];
|
|
405
|
+
if (!i)
|
|
397
406
|
throw new Error(`You should register the ${t} cloud storage provider prior to use it`);
|
|
398
|
-
return
|
|
407
|
+
return i();
|
|
399
408
|
}
|
|
400
409
|
get className() {
|
|
401
410
|
return this.__className;
|
|
402
411
|
}
|
|
403
412
|
static useCloudStorage(t) {
|
|
404
|
-
|
|
413
|
+
$e._defaultCloudStorage = t;
|
|
405
414
|
}
|
|
406
415
|
static get defaultCloudStorage() {
|
|
407
|
-
if (
|
|
416
|
+
if (!$e._defaultCloudStorage)
|
|
408
417
|
throw new Error("You should define a default cloud storage provider prior to use it");
|
|
409
|
-
return
|
|
418
|
+
return $e._defaultCloudStorage;
|
|
410
419
|
}
|
|
411
420
|
};
|
|
412
|
-
|
|
413
|
-
let
|
|
414
|
-
function
|
|
415
|
-
return
|
|
416
|
-
|
|
421
|
+
jt._cloudStorageFactoryMap = {};
|
|
422
|
+
let ze = jt;
|
|
423
|
+
function It(r, t) {
|
|
424
|
+
return ze.registerCloudStorage(r, t), (i) => {
|
|
425
|
+
i.prototype.__className = r;
|
|
417
426
|
};
|
|
418
427
|
}
|
|
419
|
-
var
|
|
420
|
-
for (var
|
|
421
|
-
(
|
|
422
|
-
return c
|
|
428
|
+
var qt = (r, t, i, f) => {
|
|
429
|
+
for (var c = t, v = r.length - 1, S; v >= 0; v--)
|
|
430
|
+
(S = r[v]) && (c = S(c) || c);
|
|
431
|
+
return c;
|
|
423
432
|
};
|
|
424
|
-
let
|
|
425
|
-
constructor(
|
|
426
|
-
super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles =
|
|
433
|
+
let nt = class extends ze {
|
|
434
|
+
constructor(r = "") {
|
|
435
|
+
super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = r;
|
|
427
436
|
}
|
|
428
437
|
/**
|
|
429
438
|
* Introduce a delay in the execution of operations to simulate a real data source
|
|
430
439
|
* @param miliSeconds the number of milliseconds to delay the execution of operations
|
|
431
440
|
* @returns a chainable reference to this object
|
|
432
441
|
*/
|
|
433
|
-
simulateDelay(
|
|
434
|
-
return this._simulateDelay =
|
|
442
|
+
simulateDelay(r) {
|
|
443
|
+
return this._simulateDelay = r, this;
|
|
435
444
|
}
|
|
436
|
-
resolveWithDelay(
|
|
437
|
-
if (this._simulateDelay <= 0)
|
|
438
|
-
|
|
439
|
-
const t = new Promise((s) => {
|
|
445
|
+
resolveWithDelay(r) {
|
|
446
|
+
if (this._simulateDelay <= 0) return Promise.resolve(r);
|
|
447
|
+
const t = new Promise((i) => {
|
|
440
448
|
setTimeout(
|
|
441
|
-
() =>
|
|
449
|
+
() => i(r),
|
|
442
450
|
this._simulateDelay
|
|
443
451
|
);
|
|
444
452
|
});
|
|
445
453
|
return this._pendingPromises.push(t), t.finally(
|
|
446
|
-
() => this._pendingPromises = this._pendingPromises.filter((
|
|
454
|
+
() => this._pendingPromises = this._pendingPromises.filter((i) => i === t)
|
|
447
455
|
), t;
|
|
448
456
|
}
|
|
449
|
-
save(
|
|
450
|
-
const
|
|
451
|
-
this._onProgress && this._onProgress(0, 100), this.mockFileSystem[
|
|
452
|
-
const
|
|
453
|
-
return this.resolveWithDelay(
|
|
457
|
+
save(r, t) {
|
|
458
|
+
const i = r;
|
|
459
|
+
this._onProgress && this._onProgress(0, 100), this.mockFileSystem[r] = JSON.stringify(t), this._onProgress && this._onProgress(100, 100);
|
|
460
|
+
const f = t instanceof File ? t.name : i;
|
|
461
|
+
return this.resolveWithDelay(f);
|
|
454
462
|
}
|
|
455
463
|
uploadControl() {
|
|
456
464
|
return {
|
|
@@ -460,49 +468,48 @@ let Ze = class extends be {
|
|
|
460
468
|
},
|
|
461
469
|
cancel: () => {
|
|
462
470
|
},
|
|
463
|
-
onProgress: (
|
|
471
|
+
onProgress: (r) => this._onProgress = r
|
|
464
472
|
};
|
|
465
473
|
}
|
|
466
|
-
getUrl(
|
|
467
|
-
return Promise.resolve(this._pathToMockFiles +
|
|
474
|
+
getUrl(r) {
|
|
475
|
+
return Promise.resolve(this._pathToMockFiles + r);
|
|
468
476
|
}
|
|
469
|
-
delete(
|
|
470
|
-
return delete this.mockFileSystem[
|
|
477
|
+
delete(r) {
|
|
478
|
+
return delete this.mockFileSystem[r], this.resolveWithDelay();
|
|
471
479
|
}
|
|
472
480
|
};
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
],
|
|
476
|
-
var
|
|
477
|
-
for (var
|
|
478
|
-
(
|
|
479
|
-
return
|
|
481
|
+
nt = qt([
|
|
482
|
+
It("MockCloudStorage", () => new nt())
|
|
483
|
+
], nt);
|
|
484
|
+
var Lt = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, Ye = (r, t, i, f) => {
|
|
485
|
+
for (var c = f > 1 ? void 0 : f ? Wt(t, i) : t, v = r.length - 1, S; v >= 0; v--)
|
|
486
|
+
(S = r[v]) && (c = (f ? S(t, i, c) : S(c)) || c);
|
|
487
|
+
return f && c && Lt(t, i, c), c;
|
|
480
488
|
};
|
|
481
|
-
let
|
|
489
|
+
let ke = class extends St {
|
|
482
490
|
constructor() {
|
|
483
|
-
super(...arguments), this._onChange = new
|
|
491
|
+
super(...arguments), this._onChange = new Je();
|
|
484
492
|
}
|
|
485
|
-
async save({ data:
|
|
486
|
-
const
|
|
487
|
-
|
|
493
|
+
async save({ data: r, fileName: t, progress: i, cloudStorageProvider: f } = {}) {
|
|
494
|
+
const c = r || this._pendingData;
|
|
495
|
+
c && (this._reference && await this.delete(), this.provider = f || ze.defaultCloudStorage, this._originalFileName = t || (c instanceof File ? c.name : void 0), this._reference = await this.provider.save(this.id, c, i), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({ event: 0, storedFile: this }));
|
|
488
496
|
}
|
|
489
497
|
uploadControl() {
|
|
490
498
|
return this.provider.uploadControl();
|
|
491
499
|
}
|
|
492
500
|
async delete() {
|
|
493
|
-
if (!this._reference)
|
|
494
|
-
throw new Error("Cannot delete a not stored file");
|
|
501
|
+
if (!this._reference) throw new Error("Cannot delete a not stored file");
|
|
495
502
|
await this.provider.delete(this._reference), this._reference = void 0, this._url = void 0, this._onChange.notify({ event: 2, storedFile: this });
|
|
496
503
|
}
|
|
497
|
-
set provider(
|
|
498
|
-
this._provider =
|
|
504
|
+
set provider(r) {
|
|
505
|
+
this._provider = r, this._cloudStorageProviderName = r.className;
|
|
499
506
|
}
|
|
500
507
|
get provider() {
|
|
501
508
|
if (!this._provider)
|
|
502
509
|
try {
|
|
503
|
-
this._provider =
|
|
510
|
+
this._provider = ze.createInstance(this._cloudStorageProviderName);
|
|
504
511
|
} catch {
|
|
505
|
-
this._provider =
|
|
512
|
+
this._provider = ze.defaultCloudStorage;
|
|
506
513
|
}
|
|
507
514
|
return this._provider;
|
|
508
515
|
}
|
|
@@ -512,71 +519,76 @@ let ne = class extends Wt {
|
|
|
512
519
|
get mimeType() {
|
|
513
520
|
return this._mimeType;
|
|
514
521
|
}
|
|
515
|
-
setDataToStore(
|
|
516
|
-
return this._pendingData =
|
|
522
|
+
setDataToStore(r) {
|
|
523
|
+
return this._pendingData = r, this._originalFileName = r instanceof File ? r.name : void 0, this._mimeType = r instanceof Blob ? r.type : void 0, this._onChange.notify({
|
|
517
524
|
event: 1,
|
|
518
|
-
pendingData:
|
|
525
|
+
pendingData: r,
|
|
519
526
|
storedFile: this
|
|
520
527
|
}), this;
|
|
521
528
|
}
|
|
522
529
|
get originalFileName() {
|
|
523
530
|
return this._originalFileName;
|
|
524
531
|
}
|
|
525
|
-
onChange(
|
|
526
|
-
return this._onChange.subscribe(
|
|
532
|
+
onChange(r) {
|
|
533
|
+
return this._onChange.subscribe(r);
|
|
527
534
|
}
|
|
528
535
|
};
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
],
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
],
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
],
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
],
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
],
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
],
|
|
547
|
-
function
|
|
548
|
-
if (!
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
return n[0].toLocaleLowerCase() + s.replace(/--/g, "-");
|
|
536
|
+
Ye([
|
|
537
|
+
xe
|
|
538
|
+
], ke.prototype, "_reference", 2);
|
|
539
|
+
Ye([
|
|
540
|
+
xe
|
|
541
|
+
], ke.prototype, "_url", 2);
|
|
542
|
+
Ye([
|
|
543
|
+
xe
|
|
544
|
+
], ke.prototype, "_cloudStorageProviderName", 2);
|
|
545
|
+
Ye([
|
|
546
|
+
xe
|
|
547
|
+
], ke.prototype, "_originalFileName", 2);
|
|
548
|
+
Ye([
|
|
549
|
+
xe
|
|
550
|
+
], ke.prototype, "_mimeType", 2);
|
|
551
|
+
ke = Ye([
|
|
552
|
+
Ut("StoredFile")
|
|
553
|
+
], ke);
|
|
554
|
+
function zt(r, t = "-") {
|
|
555
|
+
if (!r) return "";
|
|
556
|
+
const i = r.slice(1).replace(/( |[A-Z])/g, (f) => f === " " ? "-" : t + f[0].toLowerCase());
|
|
557
|
+
return r[0].toLocaleLowerCase() + i.replace(/--/g, "-");
|
|
552
558
|
}
|
|
553
|
-
class
|
|
559
|
+
class Bt {
|
|
554
560
|
constructor() {
|
|
555
|
-
this._stages = {}, this._onProgress = new
|
|
561
|
+
this._debug = !1, this._stages = {}, this._onProgress = new Je();
|
|
556
562
|
}
|
|
557
|
-
notifyBusy(t,
|
|
563
|
+
notifyBusy(t, i) {
|
|
558
564
|
this.pushStage({
|
|
559
|
-
name:
|
|
565
|
+
name: i ?? "",
|
|
560
566
|
progress: t ? 0 : 1,
|
|
561
567
|
total: 1
|
|
562
568
|
});
|
|
563
569
|
}
|
|
564
570
|
pushStage(t) {
|
|
565
571
|
this._stages[t.name] = t;
|
|
566
|
-
const
|
|
572
|
+
const i = Object.values(this._stages).reduce((f, c, v, S) => f + c.progress / c.total / S.length, 0);
|
|
567
573
|
this._onProgress.notify({
|
|
568
|
-
busy:
|
|
569
|
-
overallProgress:
|
|
574
|
+
busy: i < 1,
|
|
575
|
+
overallProgress: i,
|
|
570
576
|
stages: this._stages
|
|
571
|
-
}),
|
|
577
|
+
}), i >= 1 && (this._stages = {}), this.debug && console.log(`ProgressController ${t.name}: Progress: ${t.progress} Stages: ${t.total}`);
|
|
572
578
|
}
|
|
573
579
|
onProgress(t) {
|
|
574
580
|
return this._onProgress.subscribe(t);
|
|
575
581
|
}
|
|
582
|
+
set debug(t) {
|
|
583
|
+
this._debug = t;
|
|
584
|
+
}
|
|
585
|
+
get debug() {
|
|
586
|
+
return this._debug;
|
|
587
|
+
}
|
|
576
588
|
}
|
|
577
|
-
const
|
|
589
|
+
const Ne = class Ne {
|
|
578
590
|
constructor(t) {
|
|
579
|
-
this.progressController = new
|
|
591
|
+
this.progressController = new Bt(), this.onChangeHdl = new Je(), this.onErrorHdl = new Je(), this.validator = {}, this.setDocument(t || this.createDocument());
|
|
580
592
|
}
|
|
581
593
|
allRequiredPropertiesFilled() {
|
|
582
594
|
return this.nonFilledRequiredProperties.length <= 0;
|
|
@@ -585,38 +597,34 @@ const re = class re {
|
|
|
585
597
|
return this.requiredProperties.filter((t) => this.validateProp(t));
|
|
586
598
|
}
|
|
587
599
|
get requiredProperties() {
|
|
588
|
-
if (!this.document)
|
|
589
|
-
|
|
590
|
-
const t = this.document.getPersistentProperties().filter((c) => this.document.isRequired(c.name)).map((c) => c.name);
|
|
600
|
+
if (!this.document) throw new Error(Ne.errorMessages.missedDocument);
|
|
601
|
+
const t = this.document.getPersistentProperties().filter((f) => this.document.isRequired(f.name)).map((f) => f.name);
|
|
591
602
|
return [...new Set(t.concat(Object.keys(this.validator)))];
|
|
592
603
|
}
|
|
593
|
-
addValidator(t,
|
|
604
|
+
addValidator(t, i, f) {
|
|
594
605
|
this.validator[t] = {
|
|
595
|
-
func:
|
|
596
|
-
errorMessage:
|
|
606
|
+
func: i,
|
|
607
|
+
errorMessage: f
|
|
597
608
|
};
|
|
598
609
|
}
|
|
599
610
|
removeValidator(t) {
|
|
600
611
|
delete this.validator[t];
|
|
601
612
|
}
|
|
602
613
|
failedValidationError(t) {
|
|
603
|
-
var
|
|
604
|
-
return (
|
|
614
|
+
var i;
|
|
615
|
+
return (i = this.validator[t]) == null ? void 0 : i.errorMessage;
|
|
605
616
|
}
|
|
606
617
|
validateProp(t) {
|
|
607
|
-
if (!this.document)
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
return this.validator[t] ? !this.validator[t].func(s) : !this.document.isPropValueValid(t);
|
|
618
|
+
if (!this.document) throw new Error(Ne.errorMessages.missedDocument);
|
|
619
|
+
const i = this.document[t];
|
|
620
|
+
return this.validator[t] ? !this.validator[t].func(i) : !this.document.isPropValueValid(t);
|
|
611
621
|
}
|
|
612
622
|
storeDoc() {
|
|
613
|
-
if (!this.document)
|
|
614
|
-
throw new Error(re.errorMessages.missedDocument);
|
|
623
|
+
if (!this.document) throw new Error(Ne.errorMessages.missedDocument);
|
|
615
624
|
return this.model.save(this.document);
|
|
616
625
|
}
|
|
617
626
|
deleteDoc() {
|
|
618
|
-
if (!this.document)
|
|
619
|
-
throw new Error(re.errorMessages.missedDocument);
|
|
627
|
+
if (!this.document) throw new Error(Ne.errorMessages.missedDocument);
|
|
620
628
|
return this.model.delete(this.document.id);
|
|
621
629
|
}
|
|
622
630
|
/**
|
|
@@ -631,8 +639,8 @@ const re = class re {
|
|
|
631
639
|
* @see findDocs
|
|
632
640
|
*/
|
|
633
641
|
queryDocs(t) {
|
|
634
|
-
let
|
|
635
|
-
return t && (
|
|
642
|
+
let i = this.model.find();
|
|
643
|
+
return t && (i = i.limit(t)), i;
|
|
636
644
|
}
|
|
637
645
|
/**
|
|
638
646
|
* Override this method to customize the query used to retrieve the documents
|
|
@@ -690,9 +698,8 @@ const re = class re {
|
|
|
690
698
|
documentCollection: await this.documentCollection(),
|
|
691
699
|
action: "saved"
|
|
692
700
|
});
|
|
693
|
-
} catch (
|
|
694
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
695
|
-
throw s;
|
|
701
|
+
} catch (i) {
|
|
702
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(i) }), this.onErrorHdl.notify(this.errorToError(i)), this.throwOnError) throw i;
|
|
696
703
|
} finally {
|
|
697
704
|
this.progressController.notifyBusy(!1, t);
|
|
698
705
|
}
|
|
@@ -704,32 +711,30 @@ const re = class re {
|
|
|
704
711
|
documentCollection: await this.documentCollection(),
|
|
705
712
|
action: "deleted"
|
|
706
713
|
});
|
|
707
|
-
} catch (
|
|
708
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
709
|
-
throw s;
|
|
714
|
+
} catch (i) {
|
|
715
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(i) }), this.onErrorHdl.notify(this.errorToError(i)), this.throwOnError) throw i;
|
|
710
716
|
} finally {
|
|
711
717
|
this.progressController.notifyBusy(!1, t);
|
|
712
718
|
}
|
|
713
719
|
}
|
|
714
720
|
async documentCollection(t) {
|
|
715
|
-
const
|
|
716
|
-
let
|
|
721
|
+
const i = "Retrieving document collection";
|
|
722
|
+
let f = [];
|
|
717
723
|
try {
|
|
718
|
-
this.progressController.notifyBusy(!0,
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
} catch (
|
|
722
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
723
|
-
throw l;
|
|
724
|
+
this.progressController.notifyBusy(!0, i);
|
|
725
|
+
const c = this.findDocs(t);
|
|
726
|
+
c ? f = await c : f = await this.queryDocs(t).get();
|
|
727
|
+
} catch (c) {
|
|
728
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(c) }), this.onErrorHdl.notify(this.errorToError(c)), this.throwOnError) throw c;
|
|
724
729
|
} finally {
|
|
725
|
-
this.progressController.notifyBusy(!1,
|
|
730
|
+
this.progressController.notifyBusy(!1, i);
|
|
726
731
|
}
|
|
727
|
-
return
|
|
732
|
+
return f;
|
|
728
733
|
}
|
|
729
734
|
filter(t) {
|
|
730
|
-
return t.filter((
|
|
731
|
-
var
|
|
732
|
-
return ((
|
|
735
|
+
return t.filter((i) => {
|
|
736
|
+
var f;
|
|
737
|
+
return ((f = this._filter) == null ? void 0 : f.call(this, i)) ?? !0;
|
|
733
738
|
});
|
|
734
739
|
}
|
|
735
740
|
onProgress(t) {
|
|
@@ -739,7 +744,7 @@ const re = class re {
|
|
|
739
744
|
return this._model || (this._model = this.getModel());
|
|
740
745
|
}
|
|
741
746
|
setDocument(t) {
|
|
742
|
-
return this._document !== t && (this.unsubscribeDocument && this.unsubscribeDocument(), t && (this.unsubscribeDocument = t.onChange((
|
|
747
|
+
return this._document !== t && (this.unsubscribeDocument && this.unsubscribeDocument(), t && (this.unsubscribeDocument = t.onChange((i) => this.onChangeHdl.notify({ documentProps: i }))), this._document = t, this.onChangeHdl.notify({ documentChanged: this._document })), this;
|
|
743
748
|
}
|
|
744
749
|
set document(t) {
|
|
745
750
|
this.setDocument(t);
|
|
@@ -755,8 +760,7 @@ const re = class re {
|
|
|
755
760
|
* @param error the error to throw
|
|
756
761
|
*/
|
|
757
762
|
managedThrow(t) {
|
|
758
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(t) }), this.onErrorHdl.notify(this.errorToError(t)), this.throwOnError)
|
|
759
|
-
throw this.errorToError(t);
|
|
763
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(t) }), this.onErrorHdl.notify(this.errorToError(t)), this.throwOnError) throw this.errorToError(t);
|
|
760
764
|
}
|
|
761
765
|
errorToError(t) {
|
|
762
766
|
return t instanceof Error ? t : typeof t == "string" ? new Error(t) : "code" in t ? new Error(t.code) : "message" in t ? new Error(t.error) : new Error(JSON.stringify(t));
|
|
@@ -765,1515 +769,1811 @@ const re = class re {
|
|
|
765
769
|
return this.onErrorHdl.subscribersCount === 0;
|
|
766
770
|
}
|
|
767
771
|
};
|
|
768
|
-
|
|
772
|
+
Ne.errorMessages = {
|
|
769
773
|
missedDocument: "No document to save"
|
|
770
774
|
};
|
|
771
|
-
let
|
|
772
|
-
|
|
773
|
-
|
|
775
|
+
let _t = Ne;
|
|
776
|
+
var Qe = { exports: {} }, Ie = {};
|
|
777
|
+
/**
|
|
778
|
+
* @license React
|
|
779
|
+
* react-jsx-runtime.production.js
|
|
780
|
+
*
|
|
781
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
782
|
+
*
|
|
783
|
+
* This source code is licensed under the MIT license found in the
|
|
784
|
+
* LICENSE file in the root directory of this source tree.
|
|
785
|
+
*/
|
|
786
|
+
var Et;
|
|
787
|
+
function Vt() {
|
|
788
|
+
if (Et) return Ie;
|
|
789
|
+
Et = 1;
|
|
790
|
+
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
791
|
+
function i(f, c, v) {
|
|
792
|
+
var S = null;
|
|
793
|
+
if (v !== void 0 && (S = "" + v), c.key !== void 0 && (S = "" + c.key), "key" in c) {
|
|
794
|
+
v = {};
|
|
795
|
+
for (var M in c)
|
|
796
|
+
M !== "key" && (v[M] = c[M]);
|
|
797
|
+
} else v = c;
|
|
798
|
+
return c = v.ref, {
|
|
799
|
+
$$typeof: r,
|
|
800
|
+
type: f,
|
|
801
|
+
key: S,
|
|
802
|
+
ref: c !== void 0 ? c : null,
|
|
803
|
+
props: v
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
return Ie.Fragment = t, Ie.jsx = i, Ie.jsxs = i, Ie;
|
|
774
807
|
}
|
|
775
|
-
var
|
|
808
|
+
var qe = {}, Xe = { exports: {} }, R = {};
|
|
776
809
|
/**
|
|
777
810
|
* @license React
|
|
778
|
-
* react.production.
|
|
811
|
+
* react.production.js
|
|
779
812
|
*
|
|
780
|
-
* Copyright (c)
|
|
813
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
781
814
|
*
|
|
782
815
|
* This source code is licensed under the MIT license found in the
|
|
783
816
|
* LICENSE file in the root directory of this source tree.
|
|
784
817
|
*/
|
|
785
|
-
var
|
|
786
|
-
function
|
|
787
|
-
if (
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
-
K.prototype.isReactComponent = {}, K.prototype.setState = function(o, f) {
|
|
804
|
-
if (typeof o != "object" && typeof o != "function" && o != null)
|
|
805
|
-
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
806
|
-
this.updater.enqueueSetState(this, o, f, "setState");
|
|
807
|
-
}, K.prototype.forceUpdate = function(o) {
|
|
808
|
-
this.updater.enqueueForceUpdate(this, o, "forceUpdate");
|
|
809
|
-
};
|
|
810
|
-
function we() {
|
|
811
|
-
}
|
|
812
|
-
we.prototype = K.prototype;
|
|
813
|
-
function oe(o, f, v) {
|
|
814
|
-
this.props = o, this.context = f, this.refs = Ee, this.updater = v || U;
|
|
815
|
-
}
|
|
816
|
-
var ie = oe.prototype = new we();
|
|
817
|
-
ie.constructor = oe, q(ie, K.prototype), ie.isPureReactComponent = !0;
|
|
818
|
-
var G = Array.isArray, A = Object.prototype.hasOwnProperty, L = { current: null }, J = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
819
|
-
function ee(o, f, v) {
|
|
820
|
-
var E, _ = {}, C = null, k = null;
|
|
821
|
-
if (f != null)
|
|
822
|
-
for (E in f.ref !== void 0 && (k = f.ref), f.key !== void 0 && (C = "" + f.key), f)
|
|
823
|
-
A.call(f, E) && !J.hasOwnProperty(E) && (_[E] = f[E]);
|
|
824
|
-
var R = arguments.length - 2;
|
|
825
|
-
if (R === 1)
|
|
826
|
-
_.children = v;
|
|
827
|
-
else if (1 < R) {
|
|
828
|
-
for (var S = Array(R), $ = 0; $ < R; $++)
|
|
829
|
-
S[$] = arguments[$ + 2];
|
|
830
|
-
_.children = S;
|
|
818
|
+
var bt;
|
|
819
|
+
function Ft() {
|
|
820
|
+
if (bt) return R;
|
|
821
|
+
bt = 1;
|
|
822
|
+
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), S = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), B = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), ee = Symbol.iterator;
|
|
823
|
+
function de(s) {
|
|
824
|
+
return s === null || typeof s != "object" ? null : (s = ee && s[ee] || s["@@iterator"], typeof s == "function" ? s : null);
|
|
825
|
+
}
|
|
826
|
+
var ie = {
|
|
827
|
+
isMounted: function() {
|
|
828
|
+
return !1;
|
|
829
|
+
},
|
|
830
|
+
enqueueForceUpdate: function() {
|
|
831
|
+
},
|
|
832
|
+
enqueueReplaceState: function() {
|
|
833
|
+
},
|
|
834
|
+
enqueueSetState: function() {
|
|
831
835
|
}
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
836
|
+
}, ue = Object.assign, te = {};
|
|
837
|
+
function V(s, a, E) {
|
|
838
|
+
this.props = s, this.context = a, this.refs = te, this.updater = E || ie;
|
|
839
|
+
}
|
|
840
|
+
V.prototype.isReactComponent = {}, V.prototype.setState = function(s, a) {
|
|
841
|
+
if (typeof s != "object" && typeof s != "function" && s != null)
|
|
842
|
+
throw Error(
|
|
843
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
844
|
+
);
|
|
845
|
+
this.updater.enqueueSetState(this, s, a, "setState");
|
|
846
|
+
}, V.prototype.forceUpdate = function(s) {
|
|
847
|
+
this.updater.enqueueForceUpdate(this, s, "forceUpdate");
|
|
848
|
+
};
|
|
849
|
+
function ae() {
|
|
850
|
+
}
|
|
851
|
+
ae.prototype = V.prototype;
|
|
852
|
+
function re(s, a, E) {
|
|
853
|
+
this.props = s, this.context = a, this.refs = te, this.updater = E || ie;
|
|
854
|
+
}
|
|
855
|
+
var he = re.prototype = new ae();
|
|
856
|
+
he.constructor = re, ue(he, V.prototype), he.isPureReactComponent = !0;
|
|
857
|
+
var pe = Array.isArray, k = { H: null, A: null, T: null, S: null }, oe = Object.prototype.hasOwnProperty;
|
|
858
|
+
function me(s, a, E, y, w, A) {
|
|
859
|
+
return E = A.ref, {
|
|
860
|
+
$$typeof: r,
|
|
861
|
+
type: s,
|
|
862
|
+
key: a,
|
|
863
|
+
ref: E !== void 0 ? E : null,
|
|
864
|
+
props: A
|
|
865
|
+
};
|
|
842
866
|
}
|
|
843
|
-
function
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
867
|
+
function we(s, a) {
|
|
868
|
+
return me(
|
|
869
|
+
s.type,
|
|
870
|
+
a,
|
|
871
|
+
void 0,
|
|
872
|
+
void 0,
|
|
873
|
+
void 0,
|
|
874
|
+
s.props
|
|
875
|
+
);
|
|
876
|
+
}
|
|
877
|
+
function L(s) {
|
|
878
|
+
return typeof s == "object" && s !== null && s.$$typeof === r;
|
|
879
|
+
}
|
|
880
|
+
function Ce(s) {
|
|
881
|
+
var a = { "=": "=0", ":": "=2" };
|
|
882
|
+
return "$" + s.replace(/[=:]/g, function(E) {
|
|
883
|
+
return a[E];
|
|
847
884
|
});
|
|
848
885
|
}
|
|
849
|
-
var
|
|
850
|
-
function
|
|
851
|
-
return typeof
|
|
886
|
+
var ge = /\/+/g;
|
|
887
|
+
function ce(s, a) {
|
|
888
|
+
return typeof s == "object" && s !== null && s.key != null ? Ce("" + s.key) : a.toString(36);
|
|
889
|
+
}
|
|
890
|
+
function ne() {
|
|
891
|
+
}
|
|
892
|
+
function ve(s) {
|
|
893
|
+
switch (s.status) {
|
|
894
|
+
case "fulfilled":
|
|
895
|
+
return s.value;
|
|
896
|
+
case "rejected":
|
|
897
|
+
throw s.reason;
|
|
898
|
+
default:
|
|
899
|
+
switch (typeof s.status == "string" ? s.then(ne, ne) : (s.status = "pending", s.then(
|
|
900
|
+
function(a) {
|
|
901
|
+
s.status === "pending" && (s.status = "fulfilled", s.value = a);
|
|
902
|
+
},
|
|
903
|
+
function(a) {
|
|
904
|
+
s.status === "pending" && (s.status = "rejected", s.reason = a);
|
|
905
|
+
}
|
|
906
|
+
)), s.status) {
|
|
907
|
+
case "fulfilled":
|
|
908
|
+
return s.value;
|
|
909
|
+
case "rejected":
|
|
910
|
+
throw s.reason;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
throw s;
|
|
852
914
|
}
|
|
853
|
-
function
|
|
854
|
-
var
|
|
855
|
-
(
|
|
856
|
-
var
|
|
857
|
-
if (
|
|
858
|
-
k = !0;
|
|
915
|
+
function K(s, a, E, y, w) {
|
|
916
|
+
var A = typeof s;
|
|
917
|
+
(A === "undefined" || A === "boolean") && (s = null);
|
|
918
|
+
var b = !1;
|
|
919
|
+
if (s === null) b = !0;
|
|
859
920
|
else
|
|
860
|
-
switch (
|
|
921
|
+
switch (A) {
|
|
922
|
+
case "bigint":
|
|
861
923
|
case "string":
|
|
862
924
|
case "number":
|
|
863
|
-
|
|
925
|
+
b = !0;
|
|
864
926
|
break;
|
|
865
927
|
case "object":
|
|
866
|
-
switch (
|
|
867
|
-
case
|
|
928
|
+
switch (s.$$typeof) {
|
|
929
|
+
case r:
|
|
868
930
|
case t:
|
|
869
|
-
|
|
931
|
+
b = !0;
|
|
932
|
+
break;
|
|
933
|
+
case q:
|
|
934
|
+
return b = s._init, K(
|
|
935
|
+
b(s._payload),
|
|
936
|
+
a,
|
|
937
|
+
E,
|
|
938
|
+
y,
|
|
939
|
+
w
|
|
940
|
+
);
|
|
870
941
|
}
|
|
871
942
|
}
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
874
|
-
return
|
|
875
|
-
})) :
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
943
|
+
if (b)
|
|
944
|
+
return w = w(s), b = y === "" ? "." + ce(s, 0) : y, pe(w) ? (E = "", b != null && (E = b.replace(ge, "$&/") + "/"), K(w, a, E, "", function(ye) {
|
|
945
|
+
return ye;
|
|
946
|
+
})) : w != null && (L(w) && (w = we(
|
|
947
|
+
w,
|
|
948
|
+
E + (w.key == null || s && s.key === w.key ? "" : ("" + w.key).replace(
|
|
949
|
+
ge,
|
|
950
|
+
"$&/"
|
|
951
|
+
) + "/") + b
|
|
952
|
+
)), a.push(w)), 1;
|
|
953
|
+
b = 0;
|
|
954
|
+
var W = y === "" ? "." : y + ":";
|
|
955
|
+
if (pe(s))
|
|
956
|
+
for (var D = 0; D < s.length; D++)
|
|
957
|
+
y = s[D], A = W + ce(y, D), b += K(
|
|
958
|
+
y,
|
|
959
|
+
a,
|
|
960
|
+
E,
|
|
961
|
+
A,
|
|
962
|
+
w
|
|
963
|
+
);
|
|
964
|
+
else if (D = de(s), typeof D == "function")
|
|
965
|
+
for (s = D.call(s), D = 0; !(y = s.next()).done; )
|
|
966
|
+
y = y.value, A = W + ce(y, D++), b += K(
|
|
967
|
+
y,
|
|
968
|
+
a,
|
|
969
|
+
E,
|
|
970
|
+
A,
|
|
971
|
+
w
|
|
972
|
+
);
|
|
973
|
+
else if (A === "object") {
|
|
974
|
+
if (typeof s.then == "function")
|
|
975
|
+
return K(
|
|
976
|
+
ve(s),
|
|
977
|
+
a,
|
|
978
|
+
E,
|
|
979
|
+
y,
|
|
980
|
+
w
|
|
981
|
+
);
|
|
982
|
+
throw a = String(s), Error(
|
|
983
|
+
"Objects are not valid as a React child (found: " + (a === "[object Object]" ? "object with keys {" + Object.keys(s).join(", ") + "}" : a) + "). If you meant to render a collection of children, use an array instead."
|
|
984
|
+
);
|
|
985
|
+
}
|
|
986
|
+
return b;
|
|
987
|
+
}
|
|
988
|
+
function F(s, a, E) {
|
|
989
|
+
if (s == null) return s;
|
|
990
|
+
var y = [], w = 0;
|
|
991
|
+
return K(s, y, "", "", function(A) {
|
|
992
|
+
return a.call(E, A, w++);
|
|
993
|
+
}), y;
|
|
994
|
+
}
|
|
995
|
+
function le(s) {
|
|
996
|
+
if (s._status === -1) {
|
|
997
|
+
var a = s._result;
|
|
998
|
+
a = a(), a.then(
|
|
999
|
+
function(E) {
|
|
1000
|
+
(s._status === 0 || s._status === -1) && (s._status = 1, s._result = E);
|
|
1001
|
+
},
|
|
1002
|
+
function(E) {
|
|
1003
|
+
(s._status === 0 || s._status === -1) && (s._status = 2, s._result = E);
|
|
1004
|
+
}
|
|
1005
|
+
), s._status === -1 && (s._status = 0, s._result = a);
|
|
1006
|
+
}
|
|
1007
|
+
if (s._status === 1) return s._result.default;
|
|
1008
|
+
throw s._result;
|
|
1009
|
+
}
|
|
1010
|
+
var De = typeof reportError == "function" ? reportError : function(s) {
|
|
1011
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1012
|
+
var a = new window.ErrorEvent("error", {
|
|
1013
|
+
bubbles: !0,
|
|
1014
|
+
cancelable: !0,
|
|
1015
|
+
message: typeof s == "object" && s !== null && typeof s.message == "string" ? String(s.message) : String(s),
|
|
1016
|
+
error: s
|
|
1017
|
+
});
|
|
1018
|
+
if (!window.dispatchEvent(a)) return;
|
|
1019
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1020
|
+
process.emit("uncaughtException", s);
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
console.error(s);
|
|
1024
|
+
};
|
|
1025
|
+
function j() {
|
|
1026
|
+
}
|
|
1027
|
+
return R.Children = {
|
|
1028
|
+
map: F,
|
|
1029
|
+
forEach: function(s, a, E) {
|
|
1030
|
+
F(
|
|
1031
|
+
s,
|
|
1032
|
+
function() {
|
|
1033
|
+
a.apply(this, arguments);
|
|
1034
|
+
},
|
|
1035
|
+
E
|
|
1036
|
+
);
|
|
1037
|
+
},
|
|
1038
|
+
count: function(s) {
|
|
1039
|
+
var a = 0;
|
|
1040
|
+
return F(s, function() {
|
|
1041
|
+
a++;
|
|
1042
|
+
}), a;
|
|
1043
|
+
},
|
|
1044
|
+
toArray: function(s) {
|
|
1045
|
+
return F(s, function(a) {
|
|
1046
|
+
return a;
|
|
1047
|
+
}) || [];
|
|
1048
|
+
},
|
|
1049
|
+
only: function(s) {
|
|
1050
|
+
if (!L(s))
|
|
1051
|
+
throw Error(
|
|
1052
|
+
"React.Children.only expected to receive a single React element child."
|
|
1053
|
+
);
|
|
1054
|
+
return s;
|
|
905
1055
|
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
return o;
|
|
928
|
-
} }, g.Component = K, g.Fragment = s, g.Profiler = l, g.PureComponent = oe, g.StrictMode = c, g.Suspense = V, g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Se, g.cloneElement = function(o, f, v) {
|
|
929
|
-
if (o == null)
|
|
930
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
|
|
931
|
-
var E = q({}, o.props), _ = o.key, C = o.ref, k = o._owner;
|
|
932
|
-
if (f != null) {
|
|
933
|
-
if (f.ref !== void 0 && (C = f.ref, k = L.current), f.key !== void 0 && (_ = "" + f.key), o.type && o.type.defaultProps)
|
|
934
|
-
var R = o.type.defaultProps;
|
|
935
|
-
for (S in f)
|
|
936
|
-
A.call(f, S) && !J.hasOwnProperty(S) && (E[S] = f[S] === void 0 && R !== void 0 ? R[S] : f[S]);
|
|
1056
|
+
}, R.Component = V, R.Fragment = i, R.Profiler = c, R.PureComponent = re, R.StrictMode = f, R.Suspense = I, R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = k, R.act = function() {
|
|
1057
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
1058
|
+
}, R.cache = function(s) {
|
|
1059
|
+
return function() {
|
|
1060
|
+
return s.apply(null, arguments);
|
|
1061
|
+
};
|
|
1062
|
+
}, R.cloneElement = function(s, a, E) {
|
|
1063
|
+
if (s == null)
|
|
1064
|
+
throw Error(
|
|
1065
|
+
"The argument must be a React element, but you passed " + s + "."
|
|
1066
|
+
);
|
|
1067
|
+
var y = ue({}, s.props), w = s.key, A = void 0;
|
|
1068
|
+
if (a != null)
|
|
1069
|
+
for (b in a.ref !== void 0 && (A = void 0), a.key !== void 0 && (w = "" + a.key), a)
|
|
1070
|
+
!oe.call(a, b) || b === "key" || b === "__self" || b === "__source" || b === "ref" && a.ref === void 0 || (y[b] = a[b]);
|
|
1071
|
+
var b = arguments.length - 2;
|
|
1072
|
+
if (b === 1) y.children = E;
|
|
1073
|
+
else if (1 < b) {
|
|
1074
|
+
for (var W = Array(b), D = 0; D < b; D++)
|
|
1075
|
+
W[D] = arguments[D + 2];
|
|
1076
|
+
y.children = W;
|
|
937
1077
|
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1078
|
+
return me(s.type, w, void 0, void 0, A, y);
|
|
1079
|
+
}, R.createContext = function(s) {
|
|
1080
|
+
return s = {
|
|
1081
|
+
$$typeof: S,
|
|
1082
|
+
_currentValue: s,
|
|
1083
|
+
_currentValue2: s,
|
|
1084
|
+
_threadCount: 0,
|
|
1085
|
+
Provider: null,
|
|
1086
|
+
Consumer: null
|
|
1087
|
+
}, s.Provider = s, s.Consumer = {
|
|
1088
|
+
$$typeof: v,
|
|
1089
|
+
_context: s
|
|
1090
|
+
}, s;
|
|
1091
|
+
}, R.createElement = function(s, a, E) {
|
|
1092
|
+
var y, w = {}, A = null;
|
|
1093
|
+
if (a != null)
|
|
1094
|
+
for (y in a.key !== void 0 && (A = "" + a.key), a)
|
|
1095
|
+
oe.call(a, y) && y !== "key" && y !== "__self" && y !== "__source" && (w[y] = a[y]);
|
|
1096
|
+
var b = arguments.length - 2;
|
|
1097
|
+
if (b === 1) w.children = E;
|
|
1098
|
+
else if (1 < b) {
|
|
1099
|
+
for (var W = Array(b), D = 0; D < b; D++)
|
|
1100
|
+
W[D] = arguments[D + 2];
|
|
1101
|
+
w.children = W;
|
|
946
1102
|
}
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
return f.type = o, f;
|
|
953
|
-
}, g.createRef = function() {
|
|
1103
|
+
if (s && s.defaultProps)
|
|
1104
|
+
for (y in b = s.defaultProps, b)
|
|
1105
|
+
w[y] === void 0 && (w[y] = b[y]);
|
|
1106
|
+
return me(s, A, void 0, void 0, null, w);
|
|
1107
|
+
}, R.createRef = function() {
|
|
954
1108
|
return { current: null };
|
|
955
|
-
},
|
|
956
|
-
return { $$typeof:
|
|
957
|
-
},
|
|
958
|
-
return {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1109
|
+
}, R.forwardRef = function(s) {
|
|
1110
|
+
return { $$typeof: M, render: s };
|
|
1111
|
+
}, R.isValidElement = L, R.lazy = function(s) {
|
|
1112
|
+
return {
|
|
1113
|
+
$$typeof: q,
|
|
1114
|
+
_payload: { _status: -1, _result: s },
|
|
1115
|
+
_init: le
|
|
1116
|
+
};
|
|
1117
|
+
}, R.memo = function(s, a) {
|
|
1118
|
+
return {
|
|
1119
|
+
$$typeof: B,
|
|
1120
|
+
type: s,
|
|
1121
|
+
compare: a === void 0 ? null : a
|
|
1122
|
+
};
|
|
1123
|
+
}, R.startTransition = function(s) {
|
|
1124
|
+
var a = k.T, E = {};
|
|
1125
|
+
k.T = E;
|
|
964
1126
|
try {
|
|
965
|
-
|
|
1127
|
+
var y = s(), w = k.S;
|
|
1128
|
+
w !== null && w(E, y), typeof y == "object" && y !== null && typeof y.then == "function" && y.then(j, De);
|
|
1129
|
+
} catch (A) {
|
|
1130
|
+
De(A);
|
|
966
1131
|
} finally {
|
|
967
|
-
|
|
1132
|
+
k.T = a;
|
|
968
1133
|
}
|
|
969
|
-
},
|
|
970
|
-
|
|
971
|
-
},
|
|
972
|
-
return
|
|
973
|
-
},
|
|
974
|
-
return
|
|
975
|
-
},
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
},
|
|
981
|
-
return
|
|
982
|
-
},
|
|
983
|
-
return
|
|
984
|
-
},
|
|
985
|
-
return
|
|
986
|
-
},
|
|
987
|
-
return
|
|
988
|
-
},
|
|
989
|
-
return
|
|
990
|
-
},
|
|
991
|
-
return
|
|
992
|
-
},
|
|
993
|
-
return
|
|
994
|
-
},
|
|
995
|
-
return
|
|
996
|
-
},
|
|
997
|
-
return
|
|
998
|
-
},
|
|
999
|
-
return
|
|
1000
|
-
},
|
|
1134
|
+
}, R.unstable_useCacheRefresh = function() {
|
|
1135
|
+
return k.H.useCacheRefresh();
|
|
1136
|
+
}, R.use = function(s) {
|
|
1137
|
+
return k.H.use(s);
|
|
1138
|
+
}, R.useActionState = function(s, a, E) {
|
|
1139
|
+
return k.H.useActionState(s, a, E);
|
|
1140
|
+
}, R.useCallback = function(s, a) {
|
|
1141
|
+
return k.H.useCallback(s, a);
|
|
1142
|
+
}, R.useContext = function(s) {
|
|
1143
|
+
return k.H.useContext(s);
|
|
1144
|
+
}, R.useDebugValue = function() {
|
|
1145
|
+
}, R.useDeferredValue = function(s, a) {
|
|
1146
|
+
return k.H.useDeferredValue(s, a);
|
|
1147
|
+
}, R.useEffect = function(s, a) {
|
|
1148
|
+
return k.H.useEffect(s, a);
|
|
1149
|
+
}, R.useId = function() {
|
|
1150
|
+
return k.H.useId();
|
|
1151
|
+
}, R.useImperativeHandle = function(s, a, E) {
|
|
1152
|
+
return k.H.useImperativeHandle(s, a, E);
|
|
1153
|
+
}, R.useInsertionEffect = function(s, a) {
|
|
1154
|
+
return k.H.useInsertionEffect(s, a);
|
|
1155
|
+
}, R.useLayoutEffect = function(s, a) {
|
|
1156
|
+
return k.H.useLayoutEffect(s, a);
|
|
1157
|
+
}, R.useMemo = function(s, a) {
|
|
1158
|
+
return k.H.useMemo(s, a);
|
|
1159
|
+
}, R.useOptimistic = function(s, a) {
|
|
1160
|
+
return k.H.useOptimistic(s, a);
|
|
1161
|
+
}, R.useReducer = function(s, a, E) {
|
|
1162
|
+
return k.H.useReducer(s, a, E);
|
|
1163
|
+
}, R.useRef = function(s) {
|
|
1164
|
+
return k.H.useRef(s);
|
|
1165
|
+
}, R.useState = function(s) {
|
|
1166
|
+
return k.H.useState(s);
|
|
1167
|
+
}, R.useSyncExternalStore = function(s, a, E) {
|
|
1168
|
+
return k.H.useSyncExternalStore(
|
|
1169
|
+
s,
|
|
1170
|
+
a,
|
|
1171
|
+
E
|
|
1172
|
+
);
|
|
1173
|
+
}, R.useTransition = function() {
|
|
1174
|
+
return k.H.useTransition();
|
|
1175
|
+
}, R.version = "19.0.0", R;
|
|
1001
1176
|
}
|
|
1002
|
-
var
|
|
1177
|
+
var We = { exports: {} };
|
|
1003
1178
|
/**
|
|
1004
1179
|
* @license React
|
|
1005
1180
|
* react.development.js
|
|
1006
1181
|
*
|
|
1007
|
-
* Copyright (c)
|
|
1182
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1008
1183
|
*
|
|
1009
1184
|
* This source code is licensed under the MIT license found in the
|
|
1010
1185
|
* LICENSE file in the root directory of this source tree.
|
|
1011
1186
|
*/
|
|
1012
|
-
|
|
1013
|
-
var
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1187
|
+
We.exports;
|
|
1188
|
+
var wt;
|
|
1189
|
+
function Gt() {
|
|
1190
|
+
return wt || (wt = 1, function(r, t) {
|
|
1016
1191
|
process.env.NODE_ENV !== "production" && function() {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
* @internal
|
|
1028
|
-
* @type {ReactComponent}
|
|
1029
|
-
*/
|
|
1030
|
-
current: null
|
|
1031
|
-
}, G = {
|
|
1032
|
-
transition: null
|
|
1033
|
-
}, A = {
|
|
1034
|
-
current: null,
|
|
1035
|
-
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
1036
|
-
isBatchingLegacy: !1,
|
|
1037
|
-
didScheduleLegacyUpdate: !1
|
|
1038
|
-
}, L = {
|
|
1039
|
-
/**
|
|
1040
|
-
* @internal
|
|
1041
|
-
* @type {ReactComponent}
|
|
1042
|
-
*/
|
|
1043
|
-
current: null
|
|
1044
|
-
}, J = {}, ee = null;
|
|
1045
|
-
function Ce(e) {
|
|
1046
|
-
ee = e;
|
|
1047
|
-
}
|
|
1048
|
-
J.setExtraStackFrame = function(e) {
|
|
1049
|
-
ee = e;
|
|
1050
|
-
}, J.getCurrentStack = null, J.getStackAddendum = function() {
|
|
1051
|
-
var e = "";
|
|
1052
|
-
ee && (e += ee);
|
|
1053
|
-
var r = J.getCurrentStack;
|
|
1054
|
-
return r && (e += r() || ""), e;
|
|
1055
|
-
};
|
|
1056
|
-
var he = !1, Ve = !1, Re = !1, me = !1, se = !1, Y = {
|
|
1057
|
-
ReactCurrentDispatcher: ie,
|
|
1058
|
-
ReactCurrentBatchConfig: G,
|
|
1059
|
-
ReactCurrentOwner: L
|
|
1060
|
-
};
|
|
1061
|
-
Y.ReactDebugCurrentFrame = J, Y.ReactCurrentActQueue = A;
|
|
1062
|
-
function Q(e) {
|
|
1063
|
-
{
|
|
1064
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
1065
|
-
i[a - 1] = arguments[a];
|
|
1066
|
-
te("warn", e, i);
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
function h(e) {
|
|
1070
|
-
{
|
|
1071
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
1072
|
-
i[a - 1] = arguments[a];
|
|
1073
|
-
te("error", e, i);
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
function te(e, r, i) {
|
|
1077
|
-
{
|
|
1078
|
-
var a = Y.ReactDebugCurrentFrame, u = a.getStackAddendum();
|
|
1079
|
-
u !== "" && (r += "%s", i = i.concat([u]));
|
|
1080
|
-
var p = i.map(function(d) {
|
|
1081
|
-
return String(d);
|
|
1082
|
-
});
|
|
1083
|
-
p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
|
|
1084
|
-
}
|
|
1192
|
+
function i(e, n) {
|
|
1193
|
+
Object.defineProperty(v.prototype, e, {
|
|
1194
|
+
get: function() {
|
|
1195
|
+
console.warn(
|
|
1196
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
1197
|
+
n[0],
|
|
1198
|
+
n[1]
|
|
1199
|
+
);
|
|
1200
|
+
}
|
|
1201
|
+
});
|
|
1085
1202
|
}
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
{
|
|
1089
|
-
var i = e.constructor, a = i && (i.displayName || i.name) || "ReactClass", u = a + "." + r;
|
|
1090
|
-
if (Se[u])
|
|
1091
|
-
return;
|
|
1092
|
-
h("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, a), Se[u] = !0;
|
|
1093
|
-
}
|
|
1203
|
+
function f(e) {
|
|
1204
|
+
return e === null || typeof e != "object" ? null : (e = He && e[He] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1094
1205
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
isMounted: function(e) {
|
|
1104
|
-
return !1;
|
|
1105
|
-
},
|
|
1106
|
-
/**
|
|
1107
|
-
* Forces an update. This should only be invoked when it is known with
|
|
1108
|
-
* certainty that we are **not** in a DOM transaction.
|
|
1109
|
-
*
|
|
1110
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
1111
|
-
* component's state has changed but `setState` was not called.
|
|
1112
|
-
*
|
|
1113
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
1114
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
1115
|
-
*
|
|
1116
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1117
|
-
* @param {?function} callback Called after component is updated.
|
|
1118
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
1119
|
-
* @internal
|
|
1120
|
-
*/
|
|
1121
|
-
enqueueForceUpdate: function(e, r, i) {
|
|
1122
|
-
o(e, "forceUpdate");
|
|
1123
|
-
},
|
|
1124
|
-
/**
|
|
1125
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
1126
|
-
* You should treat `this.state` as immutable.
|
|
1127
|
-
*
|
|
1128
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
1129
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
1130
|
-
*
|
|
1131
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1132
|
-
* @param {object} completeState Next state.
|
|
1133
|
-
* @param {?function} callback Called after component is updated.
|
|
1134
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
1135
|
-
* @internal
|
|
1136
|
-
*/
|
|
1137
|
-
enqueueReplaceState: function(e, r, i, a) {
|
|
1138
|
-
o(e, "replaceState");
|
|
1139
|
-
},
|
|
1140
|
-
/**
|
|
1141
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
1142
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
1143
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
1144
|
-
* during the merge.
|
|
1145
|
-
*
|
|
1146
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1147
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
1148
|
-
* @param {?function} callback Called after component is updated.
|
|
1149
|
-
* @param {?string} Name of the calling function in the public API.
|
|
1150
|
-
* @internal
|
|
1151
|
-
*/
|
|
1152
|
-
enqueueSetState: function(e, r, i, a) {
|
|
1153
|
-
o(e, "setState");
|
|
1154
|
-
}
|
|
1155
|
-
}, v = Object.assign, E = {};
|
|
1156
|
-
Object.freeze(E);
|
|
1157
|
-
function _(e, r, i) {
|
|
1158
|
-
this.props = e, this.context = r, this.refs = E, this.updater = i || f;
|
|
1206
|
+
function c(e, n) {
|
|
1207
|
+
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
1208
|
+
var u = e + "." + n;
|
|
1209
|
+
Ue[u] || (console.error(
|
|
1210
|
+
"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.",
|
|
1211
|
+
n,
|
|
1212
|
+
e
|
|
1213
|
+
), Ue[u] = !0);
|
|
1159
1214
|
}
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1163
|
-
this.updater.enqueueSetState(this, e, r, "setState");
|
|
1164
|
-
}, _.prototype.forceUpdate = function(e) {
|
|
1165
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1166
|
-
};
|
|
1167
|
-
{
|
|
1168
|
-
var C = {
|
|
1169
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1170
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1171
|
-
}, k = function(e, r) {
|
|
1172
|
-
Object.defineProperty(_.prototype, e, {
|
|
1173
|
-
get: function() {
|
|
1174
|
-
Q("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
|
|
1175
|
-
}
|
|
1176
|
-
});
|
|
1177
|
-
};
|
|
1178
|
-
for (var R in C)
|
|
1179
|
-
C.hasOwnProperty(R) && k(R, C[R]);
|
|
1215
|
+
function v(e, n, u) {
|
|
1216
|
+
this.props = e, this.context = n, this.refs = h, this.updater = u || o;
|
|
1180
1217
|
}
|
|
1181
1218
|
function S() {
|
|
1182
1219
|
}
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
this.props = e, this.context = r, this.refs = E, this.updater = i || f;
|
|
1220
|
+
function M(e, n, u) {
|
|
1221
|
+
this.props = e, this.context = n, this.refs = h, this.updater = u || o;
|
|
1186
1222
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
function Ht() {
|
|
1190
|
-
var e = {
|
|
1191
|
-
current: null
|
|
1192
|
-
};
|
|
1193
|
-
return Object.seal(e), e;
|
|
1194
|
-
}
|
|
1195
|
-
var Bt = Array.isArray;
|
|
1196
|
-
function Pe(e) {
|
|
1197
|
-
return Bt(e);
|
|
1198
|
-
}
|
|
1199
|
-
function zt(e) {
|
|
1200
|
-
{
|
|
1201
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1202
|
-
return i;
|
|
1203
|
-
}
|
|
1223
|
+
function I(e) {
|
|
1224
|
+
return "" + e;
|
|
1204
1225
|
}
|
|
1205
|
-
function
|
|
1226
|
+
function B(e) {
|
|
1206
1227
|
try {
|
|
1207
|
-
|
|
1228
|
+
I(e);
|
|
1229
|
+
var n = !1;
|
|
1208
1230
|
} catch {
|
|
1209
|
-
|
|
1231
|
+
n = !0;
|
|
1232
|
+
}
|
|
1233
|
+
if (n) {
|
|
1234
|
+
n = console;
|
|
1235
|
+
var u = n.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1236
|
+
return u.call(
|
|
1237
|
+
n,
|
|
1238
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1239
|
+
l
|
|
1240
|
+
), I(e);
|
|
1210
1241
|
}
|
|
1211
1242
|
}
|
|
1212
|
-
function
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
if (
|
|
1217
|
-
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zt(e)), tt(e);
|
|
1218
|
-
}
|
|
1219
|
-
function Kt(e, r, i) {
|
|
1220
|
-
var a = e.displayName;
|
|
1221
|
-
if (a)
|
|
1222
|
-
return a;
|
|
1223
|
-
var u = r.displayName || r.name || "";
|
|
1224
|
-
return u !== "" ? i + "(" + u + ")" : i;
|
|
1225
|
-
}
|
|
1226
|
-
function rt(e) {
|
|
1227
|
-
return e.displayName || "Context";
|
|
1228
|
-
}
|
|
1229
|
-
function X(e) {
|
|
1230
|
-
if (e == null)
|
|
1231
|
-
return null;
|
|
1232
|
-
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
1233
|
-
return e.displayName || e.name || null;
|
|
1234
|
-
if (typeof e == "string")
|
|
1235
|
-
return e;
|
|
1243
|
+
function q(e) {
|
|
1244
|
+
if (e == null) return null;
|
|
1245
|
+
if (typeof e == "function")
|
|
1246
|
+
return e.$$typeof === C ? null : e.displayName || e.name || null;
|
|
1247
|
+
if (typeof e == "string") return e;
|
|
1236
1248
|
switch (e) {
|
|
1237
|
-
case
|
|
1249
|
+
case D:
|
|
1238
1250
|
return "Fragment";
|
|
1239
|
-
case
|
|
1251
|
+
case W:
|
|
1240
1252
|
return "Portal";
|
|
1241
|
-
case
|
|
1253
|
+
case Me:
|
|
1242
1254
|
return "Profiler";
|
|
1243
|
-
case
|
|
1255
|
+
case ye:
|
|
1244
1256
|
return "StrictMode";
|
|
1245
|
-
case
|
|
1257
|
+
case _e:
|
|
1246
1258
|
return "Suspense";
|
|
1247
|
-
case
|
|
1259
|
+
case Se:
|
|
1248
1260
|
return "SuspenseList";
|
|
1249
1261
|
}
|
|
1250
1262
|
if (typeof e == "object")
|
|
1251
|
-
switch (
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
return
|
|
1258
|
-
case
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
return
|
|
1263
|
-
case
|
|
1264
|
-
|
|
1263
|
+
switch (typeof e.tag == "number" && console.error(
|
|
1264
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1265
|
+
), e.$$typeof) {
|
|
1266
|
+
case Oe:
|
|
1267
|
+
return (e.displayName || "Context") + ".Provider";
|
|
1268
|
+
case Re:
|
|
1269
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
1270
|
+
case Te:
|
|
1271
|
+
var n = e.render;
|
|
1272
|
+
return e = e.displayName, e || (e = n.displayName || n.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
1273
|
+
case je:
|
|
1274
|
+
return n = e.displayName || null, n !== null ? n : q(e.type) || "Memo";
|
|
1275
|
+
case Ee:
|
|
1276
|
+
n = e._payload, e = e._init;
|
|
1265
1277
|
try {
|
|
1266
|
-
return
|
|
1278
|
+
return q(e(n));
|
|
1267
1279
|
} catch {
|
|
1268
|
-
return null;
|
|
1269
1280
|
}
|
|
1270
|
-
}
|
|
1271
1281
|
}
|
|
1272
1282
|
return null;
|
|
1273
1283
|
}
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1284
|
+
function ee(e) {
|
|
1285
|
+
return typeof e == "string" || typeof e == "function" || e === D || e === Me || e === ye || e === _e || e === Se || e === Be || typeof e == "object" && e !== null && (e.$$typeof === Ee || e.$$typeof === je || e.$$typeof === Oe || e.$$typeof === Re || e.$$typeof === Te || e.$$typeof === H || e.getModuleId !== void 0);
|
|
1286
|
+
}
|
|
1287
|
+
function de() {
|
|
1288
|
+
}
|
|
1289
|
+
function ie() {
|
|
1290
|
+
if (G === 0) {
|
|
1291
|
+
be = console.log, Z = console.info, Pe = console.warn, Q = console.error, st = console.group, it = console.groupCollapsed, ut = console.groupEnd;
|
|
1292
|
+
var e = {
|
|
1293
|
+
configurable: !0,
|
|
1294
|
+
enumerable: !0,
|
|
1295
|
+
value: de,
|
|
1296
|
+
writable: !0
|
|
1297
|
+
};
|
|
1298
|
+
Object.defineProperties(console, {
|
|
1299
|
+
info: e,
|
|
1300
|
+
log: e,
|
|
1301
|
+
warn: e,
|
|
1302
|
+
error: e,
|
|
1303
|
+
group: e,
|
|
1304
|
+
groupCollapsed: e,
|
|
1305
|
+
groupEnd: e
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
G++;
|
|
1309
|
+
}
|
|
1310
|
+
function ue() {
|
|
1311
|
+
if (G--, G === 0) {
|
|
1312
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
1313
|
+
Object.defineProperties(console, {
|
|
1314
|
+
log: d({}, e, { value: be }),
|
|
1315
|
+
info: d({}, e, { value: Z }),
|
|
1316
|
+
warn: d({}, e, { value: Pe }),
|
|
1317
|
+
error: d({}, e, { value: Q }),
|
|
1318
|
+
group: d({}, e, { value: st }),
|
|
1319
|
+
groupCollapsed: d({}, e, { value: it }),
|
|
1320
|
+
groupEnd: d({}, e, { value: ut })
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
0 > G && console.error(
|
|
1324
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
1325
|
+
);
|
|
1326
|
+
}
|
|
1327
|
+
function te(e) {
|
|
1328
|
+
if (Ze === void 0)
|
|
1329
|
+
try {
|
|
1330
|
+
throw Error();
|
|
1331
|
+
} catch (u) {
|
|
1332
|
+
var n = u.stack.trim().match(/\n( *(at )?)/);
|
|
1333
|
+
Ze = n && n[1] || "", at = -1 < u.stack.indexOf(`
|
|
1334
|
+
at`) ? " (<anonymous>)" : -1 < u.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
1335
|
+
}
|
|
1336
|
+
return `
|
|
1337
|
+
` + Ze + e + at;
|
|
1338
|
+
}
|
|
1339
|
+
function V(e, n) {
|
|
1340
|
+
if (!e || et) return "";
|
|
1341
|
+
var u = tt.get(e);
|
|
1342
|
+
if (u !== void 0) return u;
|
|
1343
|
+
et = !0, u = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
1344
|
+
var l = null;
|
|
1345
|
+
l = _.H, _.H = null, ie();
|
|
1346
|
+
try {
|
|
1347
|
+
var p = {
|
|
1348
|
+
DetermineComponentFrameRoot: function() {
|
|
1349
|
+
try {
|
|
1350
|
+
if (n) {
|
|
1351
|
+
var se = function() {
|
|
1352
|
+
throw Error();
|
|
1353
|
+
};
|
|
1354
|
+
if (Object.defineProperty(se.prototype, "props", {
|
|
1355
|
+
set: function() {
|
|
1356
|
+
throw Error();
|
|
1357
|
+
}
|
|
1358
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1359
|
+
try {
|
|
1360
|
+
Reflect.construct(se, []);
|
|
1361
|
+
} catch (fe) {
|
|
1362
|
+
var Ke = fe;
|
|
1363
|
+
}
|
|
1364
|
+
Reflect.construct(e, [], se);
|
|
1365
|
+
} else {
|
|
1366
|
+
try {
|
|
1367
|
+
se.call();
|
|
1368
|
+
} catch (fe) {
|
|
1369
|
+
Ke = fe;
|
|
1370
|
+
}
|
|
1371
|
+
e.call(se.prototype);
|
|
1372
|
+
}
|
|
1373
|
+
} else {
|
|
1374
|
+
try {
|
|
1375
|
+
throw Error();
|
|
1376
|
+
} catch (fe) {
|
|
1377
|
+
Ke = fe;
|
|
1378
|
+
}
|
|
1379
|
+
(se = e()) && typeof se.catch == "function" && se.catch(function() {
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
} catch (fe) {
|
|
1383
|
+
if (fe && Ke && typeof fe.stack == "string")
|
|
1384
|
+
return [fe.stack, Ke.stack];
|
|
1385
|
+
}
|
|
1386
|
+
return [null, null];
|
|
1387
|
+
}
|
|
1388
|
+
};
|
|
1389
|
+
p.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
1390
|
+
var g = Object.getOwnPropertyDescriptor(
|
|
1391
|
+
p.DetermineComponentFrameRoot,
|
|
1392
|
+
"name"
|
|
1393
|
+
);
|
|
1394
|
+
g && g.configurable && Object.defineProperty(
|
|
1395
|
+
p.DetermineComponentFrameRoot,
|
|
1396
|
+
"name",
|
|
1397
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
1398
|
+
);
|
|
1399
|
+
var m = p.DetermineComponentFrameRoot(), P = m[0], T = m[1];
|
|
1400
|
+
if (P && T) {
|
|
1401
|
+
var $ = P.split(`
|
|
1402
|
+
`), z = T.split(`
|
|
1403
|
+
`);
|
|
1404
|
+
for (m = g = 0; g < $.length && !$[g].includes(
|
|
1405
|
+
"DetermineComponentFrameRoot"
|
|
1406
|
+
); )
|
|
1407
|
+
g++;
|
|
1408
|
+
for (; m < z.length && !z[m].includes(
|
|
1409
|
+
"DetermineComponentFrameRoot"
|
|
1410
|
+
); )
|
|
1411
|
+
m++;
|
|
1412
|
+
if (g === $.length || m === z.length)
|
|
1413
|
+
for (g = $.length - 1, m = z.length - 1; 1 <= g && 0 <= m && $[g] !== z[m]; )
|
|
1414
|
+
m--;
|
|
1415
|
+
for (; 1 <= g && 0 <= m; g--, m--)
|
|
1416
|
+
if ($[g] !== z[m]) {
|
|
1417
|
+
if (g !== 1 || m !== 1)
|
|
1418
|
+
do
|
|
1419
|
+
if (g--, m--, 0 > m || $[g] !== z[m]) {
|
|
1420
|
+
var Ae = `
|
|
1421
|
+
` + $[g].replace(
|
|
1422
|
+
" at new ",
|
|
1423
|
+
" at "
|
|
1424
|
+
);
|
|
1425
|
+
return e.displayName && Ae.includes("<anonymous>") && (Ae = Ae.replace("<anonymous>", e.displayName)), typeof e == "function" && tt.set(e, Ae), Ae;
|
|
1426
|
+
}
|
|
1427
|
+
while (1 <= g && 0 <= m);
|
|
1428
|
+
break;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
} finally {
|
|
1432
|
+
et = !1, _.H = l, ue(), Error.prepareStackTrace = u;
|
|
1433
|
+
}
|
|
1434
|
+
return $ = ($ = e ? e.displayName || e.name : "") ? te($) : "", typeof e == "function" && tt.set(e, $), $;
|
|
1435
|
+
}
|
|
1436
|
+
function ae(e) {
|
|
1437
|
+
if (e == null) return "";
|
|
1438
|
+
if (typeof e == "function") {
|
|
1439
|
+
var n = e.prototype;
|
|
1440
|
+
return V(
|
|
1441
|
+
e,
|
|
1442
|
+
!(!n || !n.isReactComponent)
|
|
1443
|
+
);
|
|
1286
1444
|
}
|
|
1287
|
-
|
|
1445
|
+
if (typeof e == "string") return te(e);
|
|
1446
|
+
switch (e) {
|
|
1447
|
+
case _e:
|
|
1448
|
+
return te("Suspense");
|
|
1449
|
+
case Se:
|
|
1450
|
+
return te("SuspenseList");
|
|
1451
|
+
}
|
|
1452
|
+
if (typeof e == "object")
|
|
1453
|
+
switch (e.$$typeof) {
|
|
1454
|
+
case Te:
|
|
1455
|
+
return e = V(e.render, !1), e;
|
|
1456
|
+
case je:
|
|
1457
|
+
return ae(e.type);
|
|
1458
|
+
case Ee:
|
|
1459
|
+
n = e._payload, e = e._init;
|
|
1460
|
+
try {
|
|
1461
|
+
return ae(e(n));
|
|
1462
|
+
} catch {
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
return "";
|
|
1466
|
+
}
|
|
1467
|
+
function re() {
|
|
1468
|
+
var e = _.A;
|
|
1469
|
+
return e === null ? null : e.getOwner();
|
|
1288
1470
|
}
|
|
1289
|
-
function
|
|
1290
|
-
if (
|
|
1291
|
-
var
|
|
1292
|
-
if (
|
|
1293
|
-
return !1;
|
|
1471
|
+
function he(e) {
|
|
1472
|
+
if (J.call(e, "key")) {
|
|
1473
|
+
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1474
|
+
if (n && n.isReactWarning) return !1;
|
|
1294
1475
|
}
|
|
1295
1476
|
return e.key !== void 0;
|
|
1296
1477
|
}
|
|
1297
|
-
function
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
function Jt(e, r) {
|
|
1307
|
-
var i = function() {
|
|
1308
|
-
it || (it = !0, h("%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));
|
|
1309
|
-
};
|
|
1310
|
-
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
1311
|
-
get: i,
|
|
1478
|
+
function pe(e, n) {
|
|
1479
|
+
function u() {
|
|
1480
|
+
ct || (ct = !0, console.error(
|
|
1481
|
+
"%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://react.dev/link/special-props)",
|
|
1482
|
+
n
|
|
1483
|
+
));
|
|
1484
|
+
}
|
|
1485
|
+
u.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1486
|
+
get: u,
|
|
1312
1487
|
configurable: !0
|
|
1313
1488
|
});
|
|
1314
1489
|
}
|
|
1315
|
-
function
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1490
|
+
function k() {
|
|
1491
|
+
var e = q(this.type);
|
|
1492
|
+
return ft[e] || (ft[e] = !0, console.error(
|
|
1493
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1494
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
1320
1495
|
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
$$typeof: c,
|
|
1325
|
-
// Built-in properties that belong on the element
|
|
1496
|
+
function oe(e, n, u, l, p, g) {
|
|
1497
|
+
return u = g.ref, e = {
|
|
1498
|
+
$$typeof: b,
|
|
1326
1499
|
type: e,
|
|
1327
|
-
key:
|
|
1328
|
-
|
|
1329
|
-
props: d,
|
|
1330
|
-
// Record the component responsible for creating this element.
|
|
1500
|
+
key: n,
|
|
1501
|
+
props: g,
|
|
1331
1502
|
_owner: p
|
|
1332
|
-
}
|
|
1333
|
-
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
1334
|
-
configurable: !1,
|
|
1503
|
+
}, (u !== void 0 ? u : null) !== null ? Object.defineProperty(e, "ref", {
|
|
1335
1504
|
enumerable: !1,
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
}), Object.defineProperty(m, "_self", {
|
|
1505
|
+
get: k
|
|
1506
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
1339
1507
|
configurable: !1,
|
|
1340
1508
|
enumerable: !1,
|
|
1341
|
-
writable: !
|
|
1342
|
-
value:
|
|
1343
|
-
}), Object.defineProperty(
|
|
1509
|
+
writable: !0,
|
|
1510
|
+
value: 0
|
|
1511
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
1344
1512
|
configurable: !1,
|
|
1345
1513
|
enumerable: !1,
|
|
1346
|
-
writable: !
|
|
1347
|
-
value:
|
|
1348
|
-
}), Object.freeze && (Object.freeze(
|
|
1349
|
-
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
p && Gt(u, j), d && Jt(u, j);
|
|
1514
|
+
writable: !0,
|
|
1515
|
+
value: null
|
|
1516
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
1517
|
+
}
|
|
1518
|
+
function me(e, n) {
|
|
1519
|
+
return n = oe(
|
|
1520
|
+
e.type,
|
|
1521
|
+
n,
|
|
1522
|
+
void 0,
|
|
1523
|
+
void 0,
|
|
1524
|
+
e._owner,
|
|
1525
|
+
e.props
|
|
1526
|
+
), n._store.validated = e._store.validated, n;
|
|
1527
|
+
}
|
|
1528
|
+
function we(e, n) {
|
|
1529
|
+
if (typeof e == "object" && e && e.$$typeof !== At) {
|
|
1530
|
+
if (N(e))
|
|
1531
|
+
for (var u = 0; u < e.length; u++) {
|
|
1532
|
+
var l = e[u];
|
|
1533
|
+
L(l) && Ce(l, n);
|
|
1534
|
+
}
|
|
1535
|
+
else if (L(e))
|
|
1536
|
+
e._store && (e._store.validated = 1);
|
|
1537
|
+
else if (u = f(e), typeof u == "function" && u !== e.entries && (u = u.call(e), u !== e))
|
|
1538
|
+
for (; !(e = u.next()).done; )
|
|
1539
|
+
L(e.value) && Ce(e.value, n);
|
|
1373
1540
|
}
|
|
1374
|
-
return We(e, p, d, m, b, L.current, u);
|
|
1375
1541
|
}
|
|
1376
|
-
function
|
|
1377
|
-
|
|
1378
|
-
return i;
|
|
1542
|
+
function L(e) {
|
|
1543
|
+
return typeof e == "object" && e !== null && e.$$typeof === b;
|
|
1379
1544
|
}
|
|
1380
|
-
function
|
|
1381
|
-
if (e == null)
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
else if (O > 1) {
|
|
1395
|
-
for (var T = Array(O), j = 0; j < O; j++)
|
|
1396
|
-
T[j] = arguments[j + 2];
|
|
1397
|
-
u.children = T;
|
|
1545
|
+
function Ce(e, n) {
|
|
1546
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, n = ge(n), !dt[n])) {
|
|
1547
|
+
dt[n] = !0;
|
|
1548
|
+
var u = "";
|
|
1549
|
+
e && e._owner != null && e._owner !== re() && (u = null, typeof e._owner.tag == "number" ? u = q(e._owner.type) : typeof e._owner.name == "string" && (u = e._owner.name), u = " It was passed a child from " + u + ".");
|
|
1550
|
+
var l = _.getCurrentStack;
|
|
1551
|
+
_.getCurrentStack = function() {
|
|
1552
|
+
var p = ae(e.type);
|
|
1553
|
+
return l && (p += l() || ""), p;
|
|
1554
|
+
}, console.error(
|
|
1555
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
1556
|
+
n,
|
|
1557
|
+
u
|
|
1558
|
+
), _.getCurrentStack = l;
|
|
1398
1559
|
}
|
|
1399
|
-
return We(e.type, p, d, m, b, w, u);
|
|
1400
1560
|
}
|
|
1401
|
-
function
|
|
1402
|
-
|
|
1561
|
+
function ge(e) {
|
|
1562
|
+
var n = "", u = re();
|
|
1563
|
+
return u && (u = q(u.type)) && (n = `
|
|
1564
|
+
|
|
1565
|
+
Check the render method of \`` + u + "`."), n || (e = q(e)) && (n = `
|
|
1566
|
+
|
|
1567
|
+
Check the top-level render call using <` + e + ">."), n;
|
|
1403
1568
|
}
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
":": "=2"
|
|
1409
|
-
}, a = e.replace(r, function(u) {
|
|
1410
|
-
return i[u];
|
|
1569
|
+
function ce(e) {
|
|
1570
|
+
var n = { "=": "=0", ":": "=2" };
|
|
1571
|
+
return "$" + e.replace(/[=:]/g, function(u) {
|
|
1572
|
+
return n[u];
|
|
1411
1573
|
});
|
|
1412
|
-
return "$" + a;
|
|
1413
|
-
}
|
|
1414
|
-
var ct = !1, nr = /\/+/g;
|
|
1415
|
-
function lt(e) {
|
|
1416
|
-
return e.replace(nr, "$&/");
|
|
1417
1574
|
}
|
|
1418
|
-
function
|
|
1419
|
-
return typeof e == "object" && e !== null && e.key != null ? (
|
|
1575
|
+
function ne(e, n) {
|
|
1576
|
+
return typeof e == "object" && e !== null && e.key != null ? (B(e.key), ce("" + e.key)) : n.toString(36);
|
|
1577
|
+
}
|
|
1578
|
+
function ve() {
|
|
1579
|
+
}
|
|
1580
|
+
function K(e) {
|
|
1581
|
+
switch (e.status) {
|
|
1582
|
+
case "fulfilled":
|
|
1583
|
+
return e.value;
|
|
1584
|
+
case "rejected":
|
|
1585
|
+
throw e.reason;
|
|
1586
|
+
default:
|
|
1587
|
+
switch (typeof e.status == "string" ? e.then(ve, ve) : (e.status = "pending", e.then(
|
|
1588
|
+
function(n) {
|
|
1589
|
+
e.status === "pending" && (e.status = "fulfilled", e.value = n);
|
|
1590
|
+
},
|
|
1591
|
+
function(n) {
|
|
1592
|
+
e.status === "pending" && (e.status = "rejected", e.reason = n);
|
|
1593
|
+
}
|
|
1594
|
+
)), e.status) {
|
|
1595
|
+
case "fulfilled":
|
|
1596
|
+
return e.value;
|
|
1597
|
+
case "rejected":
|
|
1598
|
+
throw e.reason;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
throw e;
|
|
1420
1602
|
}
|
|
1421
|
-
function
|
|
1422
|
-
var
|
|
1423
|
-
(
|
|
1424
|
-
var
|
|
1425
|
-
if (e === null)
|
|
1426
|
-
d = !0;
|
|
1603
|
+
function F(e, n, u, l, p) {
|
|
1604
|
+
var g = typeof e;
|
|
1605
|
+
(g === "undefined" || g === "boolean") && (e = null);
|
|
1606
|
+
var m = !1;
|
|
1607
|
+
if (e === null) m = !0;
|
|
1427
1608
|
else
|
|
1428
|
-
switch (
|
|
1609
|
+
switch (g) {
|
|
1610
|
+
case "bigint":
|
|
1429
1611
|
case "string":
|
|
1430
1612
|
case "number":
|
|
1431
|
-
|
|
1613
|
+
m = !0;
|
|
1432
1614
|
break;
|
|
1433
1615
|
case "object":
|
|
1434
1616
|
switch (e.$$typeof) {
|
|
1435
|
-
case
|
|
1436
|
-
case
|
|
1437
|
-
|
|
1617
|
+
case b:
|
|
1618
|
+
case W:
|
|
1619
|
+
m = !0;
|
|
1620
|
+
break;
|
|
1621
|
+
case Ee:
|
|
1622
|
+
return m = e._init, F(
|
|
1623
|
+
m(e._payload),
|
|
1624
|
+
n,
|
|
1625
|
+
u,
|
|
1626
|
+
l,
|
|
1627
|
+
p
|
|
1628
|
+
);
|
|
1438
1629
|
}
|
|
1439
1630
|
}
|
|
1440
|
-
if (
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1453
|
-
(b.key && (!m || m.key !== b.key) ? (
|
|
1454
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1455
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1456
|
-
lt("" + b.key) + "/"
|
|
1457
|
-
) : "") + w
|
|
1458
|
-
)), r.push(b));
|
|
1459
|
-
return 1;
|
|
1631
|
+
if (m) {
|
|
1632
|
+
m = e, p = p(m);
|
|
1633
|
+
var P = l === "" ? "." + ne(m, 0) : l;
|
|
1634
|
+
return N(p) ? (u = "", P != null && (u = P.replace(pt, "$&/") + "/"), F(p, n, u, "", function($) {
|
|
1635
|
+
return $;
|
|
1636
|
+
})) : p != null && (L(p) && (p.key != null && (m && m.key === p.key || B(p.key)), u = me(
|
|
1637
|
+
p,
|
|
1638
|
+
u + (p.key == null || m && m.key === p.key ? "" : ("" + p.key).replace(
|
|
1639
|
+
pt,
|
|
1640
|
+
"$&/"
|
|
1641
|
+
) + "/") + P
|
|
1642
|
+
), l !== "" && m != null && L(m) && m.key == null && m._store && !m._store.validated && (u._store.validated = 2), p = u), n.push(p)), 1;
|
|
1460
1643
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1644
|
+
if (m = 0, P = l === "" ? "." : l + ":", N(e))
|
|
1645
|
+
for (var T = 0; T < e.length; T++)
|
|
1646
|
+
l = e[T], g = P + ne(l, T), m += F(
|
|
1647
|
+
l,
|
|
1648
|
+
n,
|
|
1649
|
+
u,
|
|
1650
|
+
g,
|
|
1651
|
+
p
|
|
1652
|
+
);
|
|
1653
|
+
else if (T = f(e), typeof T == "function")
|
|
1654
|
+
for (T === e.entries && (ht || console.warn(
|
|
1655
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1656
|
+
), ht = !0), e = T.call(e), T = 0; !(l = e.next()).done; )
|
|
1657
|
+
l = l.value, g = P + ne(l, T++), m += F(
|
|
1658
|
+
l,
|
|
1659
|
+
n,
|
|
1660
|
+
u,
|
|
1661
|
+
g,
|
|
1662
|
+
p
|
|
1663
|
+
);
|
|
1664
|
+
else if (g === "object") {
|
|
1665
|
+
if (typeof e.then == "function")
|
|
1666
|
+
return F(
|
|
1667
|
+
K(e),
|
|
1668
|
+
n,
|
|
1669
|
+
u,
|
|
1670
|
+
l,
|
|
1671
|
+
p
|
|
1672
|
+
);
|
|
1673
|
+
throw n = String(e), Error(
|
|
1674
|
+
"Objects are not valid as a React child (found: " + (n === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : n) + "). If you meant to render a collection of children, use an array instead."
|
|
1675
|
+
);
|
|
1476
1676
|
}
|
|
1477
|
-
return
|
|
1478
|
-
}
|
|
1479
|
-
function
|
|
1480
|
-
if (e == null)
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
}
|
|
1493
|
-
function ir(e, r, i) {
|
|
1494
|
-
Te(e, function() {
|
|
1495
|
-
r.apply(this, arguments);
|
|
1496
|
-
}, i);
|
|
1497
|
-
}
|
|
1498
|
-
function sr(e) {
|
|
1499
|
-
return Te(e, function(r) {
|
|
1500
|
-
return r;
|
|
1501
|
-
}) || [];
|
|
1502
|
-
}
|
|
1503
|
-
function ar(e) {
|
|
1504
|
-
if (!ae(e))
|
|
1505
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1506
|
-
return e;
|
|
1507
|
-
}
|
|
1508
|
-
function ur(e) {
|
|
1509
|
-
var r = {
|
|
1510
|
-
$$typeof: B,
|
|
1511
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1512
|
-
// some renderers as primary and others as secondary. We only expect
|
|
1513
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1514
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1515
|
-
// Secondary renderers store their context values on separate fields.
|
|
1516
|
-
_currentValue: e,
|
|
1517
|
-
_currentValue2: e,
|
|
1518
|
-
// Used to track how many concurrent renderers this context currently
|
|
1519
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
1520
|
-
_threadCount: 0,
|
|
1521
|
-
// These are circular
|
|
1522
|
-
Provider: null,
|
|
1523
|
-
Consumer: null,
|
|
1524
|
-
// Add these to use same hidden class in VM as ServerContext
|
|
1525
|
-
_defaultValue: null,
|
|
1526
|
-
_globalName: null
|
|
1527
|
-
};
|
|
1528
|
-
r.Provider = {
|
|
1529
|
-
$$typeof: V,
|
|
1530
|
-
_context: r
|
|
1531
|
-
};
|
|
1532
|
-
var i = !1, a = !1, u = !1;
|
|
1533
|
-
{
|
|
1534
|
-
var p = {
|
|
1535
|
-
$$typeof: B,
|
|
1536
|
-
_context: r
|
|
1537
|
-
};
|
|
1538
|
-
Object.defineProperties(p, {
|
|
1539
|
-
Provider: {
|
|
1540
|
-
get: function() {
|
|
1541
|
-
return a || (a = !0, h("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;
|
|
1542
|
-
},
|
|
1543
|
-
set: function(d) {
|
|
1544
|
-
r.Provider = d;
|
|
1545
|
-
}
|
|
1546
|
-
},
|
|
1547
|
-
_currentValue: {
|
|
1548
|
-
get: function() {
|
|
1549
|
-
return r._currentValue;
|
|
1550
|
-
},
|
|
1551
|
-
set: function(d) {
|
|
1552
|
-
r._currentValue = d;
|
|
1553
|
-
}
|
|
1554
|
-
},
|
|
1555
|
-
_currentValue2: {
|
|
1556
|
-
get: function() {
|
|
1557
|
-
return r._currentValue2;
|
|
1558
|
-
},
|
|
1559
|
-
set: function(d) {
|
|
1560
|
-
r._currentValue2 = d;
|
|
1561
|
-
}
|
|
1562
|
-
},
|
|
1563
|
-
_threadCount: {
|
|
1564
|
-
get: function() {
|
|
1565
|
-
return r._threadCount;
|
|
1566
|
-
},
|
|
1567
|
-
set: function(d) {
|
|
1568
|
-
r._threadCount = d;
|
|
1569
|
-
}
|
|
1570
|
-
},
|
|
1571
|
-
Consumer: {
|
|
1572
|
-
get: function() {
|
|
1573
|
-
return i || (i = !0, h("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;
|
|
1574
|
-
}
|
|
1677
|
+
return m;
|
|
1678
|
+
}
|
|
1679
|
+
function le(e, n, u) {
|
|
1680
|
+
if (e == null) return e;
|
|
1681
|
+
var l = [], p = 0;
|
|
1682
|
+
return F(e, l, "", "", function(g) {
|
|
1683
|
+
return n.call(u, g, p++);
|
|
1684
|
+
}), l;
|
|
1685
|
+
}
|
|
1686
|
+
function De(e) {
|
|
1687
|
+
if (e._status === -1) {
|
|
1688
|
+
var n = e._result;
|
|
1689
|
+
n = n(), n.then(
|
|
1690
|
+
function(u) {
|
|
1691
|
+
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = u);
|
|
1575
1692
|
},
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
return r.displayName;
|
|
1579
|
-
},
|
|
1580
|
-
set: function(d) {
|
|
1581
|
-
u || (Q("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", d), u = !0);
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
}), r.Consumer = p;
|
|
1585
|
-
}
|
|
1586
|
-
return r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
1587
|
-
}
|
|
1588
|
-
var ve = -1, He = 0, ft = 1, cr = 2;
|
|
1589
|
-
function lr(e) {
|
|
1590
|
-
if (e._status === ve) {
|
|
1591
|
-
var r = e._result, i = r();
|
|
1592
|
-
if (i.then(function(p) {
|
|
1593
|
-
if (e._status === He || e._status === ve) {
|
|
1594
|
-
var d = e;
|
|
1595
|
-
d._status = ft, d._result = p;
|
|
1596
|
-
}
|
|
1597
|
-
}, function(p) {
|
|
1598
|
-
if (e._status === He || e._status === ve) {
|
|
1599
|
-
var d = e;
|
|
1600
|
-
d._status = cr, d._result = p;
|
|
1693
|
+
function(u) {
|
|
1694
|
+
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = u);
|
|
1601
1695
|
}
|
|
1602
|
-
|
|
1603
|
-
var a = e;
|
|
1604
|
-
a._status = He, a._result = i;
|
|
1605
|
-
}
|
|
1696
|
+
), e._status === -1 && (e._status = 0, e._result = n);
|
|
1606
1697
|
}
|
|
1607
|
-
if (e._status ===
|
|
1608
|
-
|
|
1609
|
-
|
|
1698
|
+
if (e._status === 1)
|
|
1699
|
+
return n = e._result, n === void 0 && console.error(
|
|
1700
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1610
1701
|
|
|
1611
1702
|
Your code should look like:
|
|
1612
1703
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
1613
1704
|
|
|
1614
|
-
Did you accidentally put curly braces around the import?`,
|
|
1705
|
+
Did you accidentally put curly braces around the import?`,
|
|
1706
|
+
n
|
|
1707
|
+
), "default" in n || console.error(
|
|
1708
|
+
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1615
1709
|
|
|
1616
1710
|
Your code should look like:
|
|
1617
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
}, i = {
|
|
1627
|
-
$$typeof: q,
|
|
1628
|
-
_payload: r,
|
|
1629
|
-
_init: lr
|
|
1630
|
-
};
|
|
1631
|
-
{
|
|
1632
|
-
var a, u;
|
|
1633
|
-
Object.defineProperties(i, {
|
|
1634
|
-
defaultProps: {
|
|
1635
|
-
configurable: !0,
|
|
1636
|
-
get: function() {
|
|
1637
|
-
return a;
|
|
1638
|
-
},
|
|
1639
|
-
set: function(p) {
|
|
1640
|
-
h("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."), a = p, Object.defineProperty(i, "defaultProps", {
|
|
1641
|
-
enumerable: !0
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
},
|
|
1645
|
-
propTypes: {
|
|
1646
|
-
configurable: !0,
|
|
1647
|
-
get: function() {
|
|
1648
|
-
return u;
|
|
1649
|
-
},
|
|
1650
|
-
set: function(p) {
|
|
1651
|
-
h("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."), u = p, Object.defineProperty(i, "propTypes", {
|
|
1652
|
-
enumerable: !0
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
return i;
|
|
1659
|
-
}
|
|
1660
|
-
function dr(e) {
|
|
1661
|
-
e != null && e.$$typeof === U ? h("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? h("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && h("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) && h("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1662
|
-
var r = {
|
|
1663
|
-
$$typeof: z,
|
|
1664
|
-
render: e
|
|
1665
|
-
};
|
|
1666
|
-
{
|
|
1667
|
-
var i;
|
|
1668
|
-
Object.defineProperty(r, "displayName", {
|
|
1669
|
-
enumerable: !1,
|
|
1670
|
-
configurable: !0,
|
|
1671
|
-
get: function() {
|
|
1672
|
-
return i;
|
|
1673
|
-
},
|
|
1674
|
-
set: function(a) {
|
|
1675
|
-
i = a, !e.name && !e.displayName && (e.displayName = a);
|
|
1676
|
-
}
|
|
1677
|
-
});
|
|
1678
|
-
}
|
|
1679
|
-
return r;
|
|
1680
|
-
}
|
|
1681
|
-
var dt;
|
|
1682
|
-
dt = Symbol.for("react.module.reference");
|
|
1683
|
-
function pt(e) {
|
|
1684
|
-
return !!(typeof e == "string" || typeof e == "function" || e === y || e === F || se || e === D || e === H || e === Z || me || e === Ee || he || Ve || Re || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === U || e.$$typeof === V || e.$$typeof === B || e.$$typeof === z || // This needs to include all possible module reference object
|
|
1685
|
-
// types supported by any Flight configuration anywhere since
|
|
1686
|
-
// we don't know which Flight build this will end up being used
|
|
1687
|
-
// with.
|
|
1688
|
-
e.$$typeof === dt || e.getModuleId !== void 0));
|
|
1689
|
-
}
|
|
1690
|
-
function pr(e, r) {
|
|
1691
|
-
pt(e) || h("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
1692
|
-
var i = {
|
|
1693
|
-
$$typeof: U,
|
|
1694
|
-
type: e,
|
|
1695
|
-
compare: r === void 0 ? null : r
|
|
1696
|
-
};
|
|
1697
|
-
{
|
|
1698
|
-
var a;
|
|
1699
|
-
Object.defineProperty(i, "displayName", {
|
|
1700
|
-
enumerable: !1,
|
|
1701
|
-
configurable: !0,
|
|
1702
|
-
get: function() {
|
|
1703
|
-
return a;
|
|
1704
|
-
},
|
|
1705
|
-
set: function(u) {
|
|
1706
|
-
a = u, !e.name && !e.displayName && (e.displayName = u);
|
|
1707
|
-
}
|
|
1708
|
-
});
|
|
1709
|
-
}
|
|
1710
|
-
return i;
|
|
1711
|
-
}
|
|
1712
|
-
function M() {
|
|
1713
|
-
var e = ie.current;
|
|
1714
|
-
return e === null && h(`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:
|
|
1711
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
1712
|
+
n
|
|
1713
|
+
), n.default;
|
|
1714
|
+
throw e._result;
|
|
1715
|
+
}
|
|
1716
|
+
function j() {
|
|
1717
|
+
var e = _.H;
|
|
1718
|
+
return e === null && console.error(
|
|
1719
|
+
`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:
|
|
1715
1720
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1716
1721
|
2. You might be breaking the Rules of Hooks
|
|
1717
1722
|
3. You might have more than one copy of React in the same app
|
|
1718
|
-
See https://
|
|
1719
|
-
|
|
1720
|
-
function hr(e) {
|
|
1721
|
-
var r = M();
|
|
1722
|
-
if (e._context !== void 0) {
|
|
1723
|
-
var i = e._context;
|
|
1724
|
-
i.Consumer === e ? h("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?") : i.Provider === e && h("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1725
|
-
}
|
|
1726
|
-
return r.useContext(e);
|
|
1727
|
-
}
|
|
1728
|
-
function mr(e) {
|
|
1729
|
-
var r = M();
|
|
1730
|
-
return r.useState(e);
|
|
1731
|
-
}
|
|
1732
|
-
function yr(e, r, i) {
|
|
1733
|
-
var a = M();
|
|
1734
|
-
return a.useReducer(e, r, i);
|
|
1735
|
-
}
|
|
1736
|
-
function vr(e) {
|
|
1737
|
-
var r = M();
|
|
1738
|
-
return r.useRef(e);
|
|
1739
|
-
}
|
|
1740
|
-
function gr(e, r) {
|
|
1741
|
-
var i = M();
|
|
1742
|
-
return i.useEffect(e, r);
|
|
1743
|
-
}
|
|
1744
|
-
function _r(e, r) {
|
|
1745
|
-
var i = M();
|
|
1746
|
-
return i.useInsertionEffect(e, r);
|
|
1747
|
-
}
|
|
1748
|
-
function br(e, r) {
|
|
1749
|
-
var i = M();
|
|
1750
|
-
return i.useLayoutEffect(e, r);
|
|
1751
|
-
}
|
|
1752
|
-
function Er(e, r) {
|
|
1753
|
-
var i = M();
|
|
1754
|
-
return i.useCallback(e, r);
|
|
1755
|
-
}
|
|
1756
|
-
function wr(e, r) {
|
|
1757
|
-
var i = M();
|
|
1758
|
-
return i.useMemo(e, r);
|
|
1759
|
-
}
|
|
1760
|
-
function Cr(e, r, i) {
|
|
1761
|
-
var a = M();
|
|
1762
|
-
return a.useImperativeHandle(e, r, i);
|
|
1763
|
-
}
|
|
1764
|
-
function Rr(e, r) {
|
|
1765
|
-
{
|
|
1766
|
-
var i = M();
|
|
1767
|
-
return i.useDebugValue(e, r);
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
function Sr() {
|
|
1771
|
-
var e = M();
|
|
1772
|
-
return e.useTransition();
|
|
1773
|
-
}
|
|
1774
|
-
function Pr(e) {
|
|
1775
|
-
var r = M();
|
|
1776
|
-
return r.useDeferredValue(e);
|
|
1777
|
-
}
|
|
1778
|
-
function Or() {
|
|
1779
|
-
var e = M();
|
|
1780
|
-
return e.useId();
|
|
1781
|
-
}
|
|
1782
|
-
function Dr(e, r, i) {
|
|
1783
|
-
var a = M();
|
|
1784
|
-
return a.useSyncExternalStore(e, r, i);
|
|
1723
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
1724
|
+
), e;
|
|
1785
1725
|
}
|
|
1786
|
-
|
|
1787
|
-
function Et() {
|
|
1726
|
+
function s() {
|
|
1788
1727
|
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
error: e,
|
|
1805
|
-
group: e,
|
|
1806
|
-
groupCollapsed: e,
|
|
1807
|
-
groupEnd: e
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
ge++;
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
function kr() {
|
|
1814
|
-
{
|
|
1815
|
-
if (ge--, ge === 0) {
|
|
1816
|
-
var e = {
|
|
1817
|
-
configurable: !0,
|
|
1818
|
-
enumerable: !0,
|
|
1819
|
-
writable: !0
|
|
1728
|
+
function a(e) {
|
|
1729
|
+
if (Ve === null)
|
|
1730
|
+
try {
|
|
1731
|
+
var n = ("require" + Math.random()).slice(0, 7);
|
|
1732
|
+
Ve = (r && r[n]).call(
|
|
1733
|
+
r,
|
|
1734
|
+
"timers"
|
|
1735
|
+
).setImmediate;
|
|
1736
|
+
} catch {
|
|
1737
|
+
Ve = function(l) {
|
|
1738
|
+
gt === !1 && (gt = !0, typeof MessageChannel > "u" && console.error(
|
|
1739
|
+
"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."
|
|
1740
|
+
));
|
|
1741
|
+
var p = new MessageChannel();
|
|
1742
|
+
p.port1.onmessage = l, p.port2.postMessage(void 0);
|
|
1820
1743
|
};
|
|
1821
|
-
Object.defineProperties(console, {
|
|
1822
|
-
log: v({}, e, {
|
|
1823
|
-
value: ht
|
|
1824
|
-
}),
|
|
1825
|
-
info: v({}, e, {
|
|
1826
|
-
value: mt
|
|
1827
|
-
}),
|
|
1828
|
-
warn: v({}, e, {
|
|
1829
|
-
value: yt
|
|
1830
|
-
}),
|
|
1831
|
-
error: v({}, e, {
|
|
1832
|
-
value: vt
|
|
1833
|
-
}),
|
|
1834
|
-
group: v({}, e, {
|
|
1835
|
-
value: gt
|
|
1836
|
-
}),
|
|
1837
|
-
groupCollapsed: v({}, e, {
|
|
1838
|
-
value: _t
|
|
1839
|
-
}),
|
|
1840
|
-
groupEnd: v({}, e, {
|
|
1841
|
-
value: bt
|
|
1842
|
-
})
|
|
1843
|
-
});
|
|
1844
1744
|
}
|
|
1845
|
-
|
|
1846
|
-
}
|
|
1745
|
+
return Ve(e);
|
|
1847
1746
|
}
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
{
|
|
1851
|
-
if (ze === void 0)
|
|
1852
|
-
try {
|
|
1853
|
-
throw Error();
|
|
1854
|
-
} catch (u) {
|
|
1855
|
-
var a = u.stack.trim().match(/\n( *(at )?)/);
|
|
1856
|
-
ze = a && a[1] || "";
|
|
1857
|
-
}
|
|
1858
|
-
return `
|
|
1859
|
-
` + ze + e;
|
|
1860
|
-
}
|
|
1747
|
+
function E(e) {
|
|
1748
|
+
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
1861
1749
|
}
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1750
|
+
function y(e, n) {
|
|
1751
|
+
n !== Fe - 1 && console.error(
|
|
1752
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1753
|
+
), Fe = n;
|
|
1866
1754
|
}
|
|
1867
|
-
function
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
var i = je.get(e);
|
|
1872
|
-
if (i !== void 0)
|
|
1873
|
-
return i;
|
|
1874
|
-
}
|
|
1875
|
-
var a;
|
|
1876
|
-
qe = !0;
|
|
1877
|
-
var u = Error.prepareStackTrace;
|
|
1878
|
-
Error.prepareStackTrace = void 0;
|
|
1879
|
-
var p;
|
|
1880
|
-
p = Be.current, Be.current = null, Tr();
|
|
1881
|
-
try {
|
|
1882
|
-
if (r) {
|
|
1883
|
-
var d = function() {
|
|
1884
|
-
throw Error();
|
|
1885
|
-
};
|
|
1886
|
-
if (Object.defineProperty(d.prototype, "props", {
|
|
1887
|
-
set: function() {
|
|
1888
|
-
throw Error();
|
|
1889
|
-
}
|
|
1890
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1891
|
-
try {
|
|
1892
|
-
Reflect.construct(d, []);
|
|
1893
|
-
} catch (I) {
|
|
1894
|
-
a = I;
|
|
1895
|
-
}
|
|
1896
|
-
Reflect.construct(e, [], d);
|
|
1897
|
-
} else {
|
|
1898
|
-
try {
|
|
1899
|
-
d.call();
|
|
1900
|
-
} catch (I) {
|
|
1901
|
-
a = I;
|
|
1902
|
-
}
|
|
1903
|
-
e.call(d.prototype);
|
|
1904
|
-
}
|
|
1905
|
-
} else {
|
|
1755
|
+
function w(e, n, u) {
|
|
1756
|
+
var l = _.actQueue;
|
|
1757
|
+
if (l !== null)
|
|
1758
|
+
if (l.length !== 0)
|
|
1906
1759
|
try {
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1760
|
+
A(l), a(function() {
|
|
1761
|
+
return w(e, n, u);
|
|
1762
|
+
});
|
|
1763
|
+
return;
|
|
1764
|
+
} catch (p) {
|
|
1765
|
+
_.thrownErrors.push(p);
|
|
1910
1766
|
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
} catch (I) {
|
|
1914
|
-
if (I && a && typeof I.stack == "string") {
|
|
1915
|
-
for (var m = I.stack.split(`
|
|
1916
|
-
`), b = a.stack.split(`
|
|
1917
|
-
`), w = m.length - 1, P = b.length - 1; w >= 1 && P >= 0 && m[w] !== b[P]; )
|
|
1918
|
-
P--;
|
|
1919
|
-
for (; w >= 1 && P >= 0; w--, P--)
|
|
1920
|
-
if (m[w] !== b[P]) {
|
|
1921
|
-
if (w !== 1 || P !== 1)
|
|
1922
|
-
do
|
|
1923
|
-
if (w--, P--, P < 0 || m[w] !== b[P]) {
|
|
1924
|
-
var O = `
|
|
1925
|
-
` + m[w].replace(" at new ", " at ");
|
|
1926
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && je.set(e, O), O;
|
|
1927
|
-
}
|
|
1928
|
-
while (w >= 1 && P >= 0);
|
|
1929
|
-
break;
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
} finally {
|
|
1933
|
-
qe = !1, Be.current = p, kr(), Error.prepareStackTrace = u;
|
|
1934
|
-
}
|
|
1935
|
-
var T = e ? e.displayName || e.name : "", j = T ? ke(T) : "";
|
|
1936
|
-
return typeof e == "function" && je.set(e, j), j;
|
|
1937
|
-
}
|
|
1938
|
-
function Ar(e, r, i) {
|
|
1939
|
-
return wt(e, !1);
|
|
1767
|
+
else _.actQueue = null;
|
|
1768
|
+
0 < _.thrownErrors.length ? (l = E(_.thrownErrors), _.thrownErrors.length = 0, u(l)) : n(e);
|
|
1940
1769
|
}
|
|
1941
|
-
function
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
switch (e.$$typeof) {
|
|
1960
|
-
case z:
|
|
1961
|
-
return Ar(e.render);
|
|
1962
|
-
case U:
|
|
1963
|
-
return Ae(e.type, r, i);
|
|
1964
|
-
case q: {
|
|
1965
|
-
var a = e, u = a._payload, p = a._init;
|
|
1966
|
-
try {
|
|
1967
|
-
return Ae(p(u), r, i);
|
|
1968
|
-
} catch {
|
|
1969
|
-
}
|
|
1770
|
+
function A(e) {
|
|
1771
|
+
if (!rt) {
|
|
1772
|
+
rt = !0;
|
|
1773
|
+
var n = 0;
|
|
1774
|
+
try {
|
|
1775
|
+
for (; n < e.length; n++) {
|
|
1776
|
+
var u = e[n];
|
|
1777
|
+
do {
|
|
1778
|
+
_.didUsePromise = !1;
|
|
1779
|
+
var l = u(!1);
|
|
1780
|
+
if (l !== null) {
|
|
1781
|
+
if (_.didUsePromise) {
|
|
1782
|
+
e[n] = u, e.splice(0, n);
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1785
|
+
u = l;
|
|
1786
|
+
} else break;
|
|
1787
|
+
} while (!0);
|
|
1970
1788
|
}
|
|
1789
|
+
e.length = 0;
|
|
1790
|
+
} catch (p) {
|
|
1791
|
+
e.splice(0, n + 1), _.thrownErrors.push(p);
|
|
1792
|
+
} finally {
|
|
1793
|
+
rt = !1;
|
|
1971
1794
|
}
|
|
1972
|
-
return "";
|
|
1973
|
-
}
|
|
1974
|
-
var Ct = {}, Rt = Y.ReactDebugCurrentFrame;
|
|
1975
|
-
function Ie(e) {
|
|
1976
|
-
if (e) {
|
|
1977
|
-
var r = e._owner, i = Ae(e.type, e._source, r ? r.type : null);
|
|
1978
|
-
Rt.setExtraStackFrame(i);
|
|
1979
|
-
} else
|
|
1980
|
-
Rt.setExtraStackFrame(null);
|
|
1981
|
-
}
|
|
1982
|
-
function Nr(e, r, i, a, u) {
|
|
1983
|
-
{
|
|
1984
|
-
var p = Function.call.bind(ye);
|
|
1985
|
-
for (var d in e)
|
|
1986
|
-
if (p(e, d)) {
|
|
1987
|
-
var m = void 0;
|
|
1988
|
-
try {
|
|
1989
|
-
if (typeof e[d] != "function") {
|
|
1990
|
-
var b = Error((a || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1991
|
-
throw b.name = "Invariant Violation", b;
|
|
1992
|
-
}
|
|
1993
|
-
m = e[d](r, d, a, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1994
|
-
} catch (w) {
|
|
1995
|
-
m = w;
|
|
1996
|
-
}
|
|
1997
|
-
m && !(m instanceof Error) && (Ie(u), h("%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).", a || "React class", i, d, typeof m), Ie(null)), m instanceof Error && !(m.message in Ct) && (Ct[m.message] = !0, Ie(u), h("Failed %s type: %s", i, m.message), Ie(null));
|
|
1998
|
-
}
|
|
1999
1795
|
}
|
|
2000
1796
|
}
|
|
2001
|
-
function
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
return `
|
|
2015
|
-
|
|
2016
|
-
Check the render method of \`` + e + "`.";
|
|
1797
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1798
|
+
var b = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), ye = Symbol.for("react.strict_mode"), Me = Symbol.for("react.profiler"), Re = Symbol.for("react.consumer"), Oe = Symbol.for("react.context"), Te = Symbol.for("react.forward_ref"), _e = Symbol.for("react.suspense"), Se = Symbol.for("react.suspense_list"), je = Symbol.for("react.memo"), Ee = Symbol.for("react.lazy"), Be = Symbol.for("react.offscreen"), He = Symbol.iterator, Ue = {}, o = {
|
|
1799
|
+
isMounted: function() {
|
|
1800
|
+
return !1;
|
|
1801
|
+
},
|
|
1802
|
+
enqueueForceUpdate: function(e) {
|
|
1803
|
+
c(e, "forceUpdate");
|
|
1804
|
+
},
|
|
1805
|
+
enqueueReplaceState: function(e) {
|
|
1806
|
+
c(e, "replaceState");
|
|
1807
|
+
},
|
|
1808
|
+
enqueueSetState: function(e) {
|
|
1809
|
+
c(e, "setState");
|
|
2017
1810
|
}
|
|
2018
|
-
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
1811
|
+
}, d = Object.assign, h = {};
|
|
1812
|
+
Object.freeze(h), v.prototype.isReactComponent = {}, v.prototype.setState = function(e, n) {
|
|
1813
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1814
|
+
throw Error(
|
|
1815
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1816
|
+
);
|
|
1817
|
+
this.updater.enqueueSetState(this, e, n, "setState");
|
|
1818
|
+
}, v.prototype.forceUpdate = function(e) {
|
|
1819
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1820
|
+
};
|
|
1821
|
+
var O = {
|
|
1822
|
+
isMounted: [
|
|
1823
|
+
"isMounted",
|
|
1824
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1825
|
+
],
|
|
1826
|
+
replaceState: [
|
|
1827
|
+
"replaceState",
|
|
1828
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1829
|
+
]
|
|
1830
|
+
}, x;
|
|
1831
|
+
for (x in O)
|
|
1832
|
+
O.hasOwnProperty(x) && i(x, O[x]);
|
|
1833
|
+
S.prototype = v.prototype, O = M.prototype = new S(), O.constructor = M, d(O, v.prototype), O.isPureReactComponent = !0;
|
|
1834
|
+
var N = Array.isArray, C = Symbol.for("react.client.reference"), _ = {
|
|
1835
|
+
H: null,
|
|
1836
|
+
A: null,
|
|
1837
|
+
T: null,
|
|
1838
|
+
S: null,
|
|
1839
|
+
actQueue: null,
|
|
1840
|
+
isBatchingLegacy: !1,
|
|
1841
|
+
didScheduleLegacyUpdate: !1,
|
|
1842
|
+
didUsePromise: !1,
|
|
1843
|
+
thrownErrors: [],
|
|
1844
|
+
getCurrentStack: null
|
|
1845
|
+
}, J = Object.prototype.hasOwnProperty, H = Symbol.for("react.client.reference"), G = 0, be, Z, Pe, Q, st, it, ut;
|
|
1846
|
+
de.__reactDisabledLog = !0;
|
|
1847
|
+
var Ze, at, et = !1, tt = new (typeof WeakMap == "function" ? WeakMap : Map)(), At = Symbol.for("react.client.reference"), ct, lt, ft = {}, dt = {}, ht = !1, pt = /\/+/g, mt = typeof reportError == "function" ? reportError : function(e) {
|
|
1848
|
+
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1849
|
+
var n = new window.ErrorEvent("error", {
|
|
1850
|
+
bubbles: !0,
|
|
1851
|
+
cancelable: !0,
|
|
1852
|
+
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
1853
|
+
error: e
|
|
1854
|
+
});
|
|
1855
|
+
if (!window.dispatchEvent(n)) return;
|
|
1856
|
+
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1857
|
+
process.emit("uncaughtException", e);
|
|
1858
|
+
return;
|
|
2026
1859
|
}
|
|
2027
|
-
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
1860
|
+
console.error(e);
|
|
1861
|
+
}, gt = !1, Ve = null, Fe = 0, Ge = !1, rt = !1, vt = typeof queueMicrotask == "function" ? function(e) {
|
|
1862
|
+
queueMicrotask(function() {
|
|
1863
|
+
return queueMicrotask(e);
|
|
1864
|
+
});
|
|
1865
|
+
} : a;
|
|
1866
|
+
t.Children = {
|
|
1867
|
+
map: le,
|
|
1868
|
+
forEach: function(e, n, u) {
|
|
1869
|
+
le(
|
|
1870
|
+
e,
|
|
1871
|
+
function() {
|
|
1872
|
+
n.apply(this, arguments);
|
|
1873
|
+
},
|
|
1874
|
+
u
|
|
1875
|
+
);
|
|
1876
|
+
},
|
|
1877
|
+
count: function(e) {
|
|
1878
|
+
var n = 0;
|
|
1879
|
+
return le(e, function() {
|
|
1880
|
+
n++;
|
|
1881
|
+
}), n;
|
|
1882
|
+
},
|
|
1883
|
+
toArray: function(e) {
|
|
1884
|
+
return le(e, function(n) {
|
|
1885
|
+
return n;
|
|
1886
|
+
}) || [];
|
|
1887
|
+
},
|
|
1888
|
+
only: function(e) {
|
|
1889
|
+
if (!L(e))
|
|
1890
|
+
throw Error(
|
|
1891
|
+
"React.Children.only expected to receive a single React element child."
|
|
1892
|
+
);
|
|
1893
|
+
return e;
|
|
2040
1894
|
}
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
var
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
var a = "";
|
|
2050
|
-
e && e._owner && e._owner !== L.current && (a = " It was passed a child from " + X(e._owner.type) + "."), ue(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, a), ue(null);
|
|
2051
|
-
}
|
|
1895
|
+
}, t.Component = v, t.Fragment = D, t.Profiler = Me, t.PureComponent = M, t.StrictMode = ye, t.Suspense = _e, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = _, t.act = function(e) {
|
|
1896
|
+
var n = _.actQueue, u = Fe;
|
|
1897
|
+
Fe++;
|
|
1898
|
+
var l = _.actQueue = n !== null ? n : [], p = !1;
|
|
1899
|
+
try {
|
|
1900
|
+
var g = e();
|
|
1901
|
+
} catch (T) {
|
|
1902
|
+
_.thrownErrors.push(T);
|
|
2052
1903
|
}
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
if (typeof
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
1904
|
+
if (0 < _.thrownErrors.length)
|
|
1905
|
+
throw y(n, u), e = E(_.thrownErrors), _.thrownErrors.length = 0, e;
|
|
1906
|
+
if (g !== null && typeof g == "object" && typeof g.then == "function") {
|
|
1907
|
+
var m = g;
|
|
1908
|
+
return vt(function() {
|
|
1909
|
+
p || Ge || (Ge = !0, console.error(
|
|
1910
|
+
"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 () => ...);"
|
|
1911
|
+
));
|
|
1912
|
+
}), {
|
|
1913
|
+
then: function(T, $) {
|
|
1914
|
+
p = !0, m.then(
|
|
1915
|
+
function(z) {
|
|
1916
|
+
if (y(n, u), u === 0) {
|
|
1917
|
+
try {
|
|
1918
|
+
A(l), a(function() {
|
|
1919
|
+
return w(
|
|
1920
|
+
z,
|
|
1921
|
+
T,
|
|
1922
|
+
$
|
|
1923
|
+
);
|
|
1924
|
+
});
|
|
1925
|
+
} catch (se) {
|
|
1926
|
+
_.thrownErrors.push(se);
|
|
1927
|
+
}
|
|
1928
|
+
if (0 < _.thrownErrors.length) {
|
|
1929
|
+
var Ae = E(
|
|
1930
|
+
_.thrownErrors
|
|
1931
|
+
);
|
|
1932
|
+
_.thrownErrors.length = 0, $(Ae);
|
|
1933
|
+
}
|
|
1934
|
+
} else T(z);
|
|
1935
|
+
},
|
|
1936
|
+
function(z) {
|
|
1937
|
+
y(n, u), 0 < _.thrownErrors.length && (z = E(
|
|
1938
|
+
_.thrownErrors
|
|
1939
|
+
), _.thrownErrors.length = 0), $(z);
|
|
1940
|
+
}
|
|
1941
|
+
);
|
|
2060
1942
|
}
|
|
2061
|
-
|
|
2062
|
-
e._store && (e._store.validated = !0);
|
|
2063
|
-
else if (e) {
|
|
2064
|
-
var u = oe(e);
|
|
2065
|
-
if (typeof u == "function" && u !== e.entries)
|
|
2066
|
-
for (var p = u.call(e), d; !(d = p.next()).done; )
|
|
2067
|
-
ae(d.value) && Ot(d.value, r);
|
|
2068
|
-
}
|
|
1943
|
+
};
|
|
2069
1944
|
}
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
var a = X(r);
|
|
2087
|
-
Nr(i, e.props, "prop", a, e);
|
|
2088
|
-
} else if (r.PropTypes !== void 0 && !Ke) {
|
|
2089
|
-
Ke = !0;
|
|
2090
|
-
var u = X(r);
|
|
2091
|
-
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
1945
|
+
var P = g;
|
|
1946
|
+
if (y(n, u), u === 0 && (A(l), l.length !== 0 && vt(function() {
|
|
1947
|
+
p || Ge || (Ge = !0, console.error(
|
|
1948
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1949
|
+
));
|
|
1950
|
+
}), _.actQueue = null), 0 < _.thrownErrors.length)
|
|
1951
|
+
throw e = E(_.thrownErrors), _.thrownErrors.length = 0, e;
|
|
1952
|
+
return {
|
|
1953
|
+
then: function(T, $) {
|
|
1954
|
+
p = !0, u === 0 ? (_.actQueue = l, a(function() {
|
|
1955
|
+
return w(
|
|
1956
|
+
P,
|
|
1957
|
+
T,
|
|
1958
|
+
$
|
|
1959
|
+
);
|
|
1960
|
+
})) : T(P);
|
|
2092
1961
|
}
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
1962
|
+
};
|
|
1963
|
+
}, t.cache = function(e) {
|
|
1964
|
+
return function() {
|
|
1965
|
+
return e.apply(null, arguments);
|
|
1966
|
+
};
|
|
1967
|
+
}, t.cloneElement = function(e, n, u) {
|
|
1968
|
+
if (e == null)
|
|
1969
|
+
throw Error(
|
|
1970
|
+
"The argument must be a React element, but you passed " + e + "."
|
|
1971
|
+
);
|
|
1972
|
+
var l = d({}, e.props), p = e.key, g = e._owner;
|
|
1973
|
+
if (n != null) {
|
|
1974
|
+
var m;
|
|
1975
|
+
e: {
|
|
1976
|
+
if (J.call(n, "ref") && (m = Object.getOwnPropertyDescriptor(
|
|
1977
|
+
n,
|
|
1978
|
+
"ref"
|
|
1979
|
+
).get) && m.isReactWarning) {
|
|
1980
|
+
m = !1;
|
|
1981
|
+
break e;
|
|
2103
1982
|
}
|
|
1983
|
+
m = n.ref !== void 0;
|
|
2104
1984
|
}
|
|
2105
|
-
|
|
1985
|
+
m && (g = re()), he(n) && (B(n.key), p = "" + n.key);
|
|
1986
|
+
for (P in n)
|
|
1987
|
+
!J.call(n, P) || P === "key" || P === "__self" || P === "__source" || P === "ref" && n.ref === void 0 || (l[P] = n[P]);
|
|
2106
1988
|
}
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
var
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
p ? u += p : u += St();
|
|
2115
|
-
var d;
|
|
2116
|
-
e === null ? d = "null" : Pe(e) ? d = "array" : e !== void 0 && e.$$typeof === c ? (d = "<" + (X(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, h("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, u);
|
|
1989
|
+
var P = arguments.length - 2;
|
|
1990
|
+
if (P === 1) l.children = u;
|
|
1991
|
+
else if (1 < P) {
|
|
1992
|
+
m = Array(P);
|
|
1993
|
+
for (var T = 0; T < P; T++)
|
|
1994
|
+
m[T] = arguments[T + 2];
|
|
1995
|
+
l.children = m;
|
|
2117
1996
|
}
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
1997
|
+
for (l = oe(e.type, p, void 0, void 0, g, l), p = 2; p < arguments.length; p++)
|
|
1998
|
+
we(arguments[p], l.type);
|
|
1999
|
+
return l;
|
|
2000
|
+
}, t.createContext = function(e) {
|
|
2001
|
+
return e = {
|
|
2002
|
+
$$typeof: Oe,
|
|
2003
|
+
_currentValue: e,
|
|
2004
|
+
_currentValue2: e,
|
|
2005
|
+
_threadCount: 0,
|
|
2006
|
+
Provider: null,
|
|
2007
|
+
Consumer: null
|
|
2008
|
+
}, e.Provider = e, e.Consumer = {
|
|
2009
|
+
$$typeof: Re,
|
|
2010
|
+
_context: e
|
|
2011
|
+
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
2012
|
+
}, t.createElement = function(e, n, u) {
|
|
2013
|
+
if (ee(e))
|
|
2014
|
+
for (var l = 2; l < arguments.length; l++)
|
|
2015
|
+
we(arguments[l], e);
|
|
2016
|
+
else {
|
|
2017
|
+
if (l = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null) var p = "null";
|
|
2018
|
+
else
|
|
2019
|
+
N(e) ? p = "array" : e !== void 0 && e.$$typeof === b ? (p = "<" + (q(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e;
|
|
2020
|
+
console.error(
|
|
2021
|
+
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
2022
|
+
p,
|
|
2023
|
+
l
|
|
2024
|
+
);
|
|
2025
|
+
}
|
|
2026
|
+
var g;
|
|
2027
|
+
if (l = {}, p = null, n != null)
|
|
2028
|
+
for (g in lt || !("__self" in n) || "key" in n || (lt = !0, console.warn(
|
|
2029
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
2030
|
+
)), he(n) && (B(n.key), p = "" + n.key), n)
|
|
2031
|
+
J.call(n, g) && g !== "key" && g !== "__self" && g !== "__source" && (l[g] = n[g]);
|
|
2032
|
+
var m = arguments.length - 2;
|
|
2033
|
+
if (m === 1) l.children = u;
|
|
2034
|
+
else if (1 < m) {
|
|
2035
|
+
for (var P = Array(m), T = 0; T < m; T++)
|
|
2036
|
+
P[T] = arguments[T + 2];
|
|
2037
|
+
Object.freeze && Object.freeze(P), l.children = P;
|
|
2038
|
+
}
|
|
2039
|
+
if (e && e.defaultProps)
|
|
2040
|
+
for (g in m = e.defaultProps, m)
|
|
2041
|
+
l[g] === void 0 && (l[g] = m[g]);
|
|
2042
|
+
return p && pe(
|
|
2043
|
+
l,
|
|
2044
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
2045
|
+
), oe(e, p, void 0, void 0, re(), l);
|
|
2046
|
+
}, t.createRef = function() {
|
|
2047
|
+
var e = { current: null };
|
|
2048
|
+
return Object.seal(e), e;
|
|
2049
|
+
}, t.forwardRef = function(e) {
|
|
2050
|
+
e != null && e.$$typeof === je ? console.error(
|
|
2051
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
2052
|
+
) : typeof e != "function" ? console.error(
|
|
2053
|
+
"forwardRef requires a render function but was given %s.",
|
|
2054
|
+
e === null ? "null" : typeof e
|
|
2055
|
+
) : e.length !== 0 && e.length !== 2 && console.error(
|
|
2056
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
2057
|
+
e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
2058
|
+
), e != null && e.defaultProps != null && console.error(
|
|
2059
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
2060
|
+
);
|
|
2061
|
+
var n = { $$typeof: Te, render: e }, u;
|
|
2062
|
+
return Object.defineProperty(n, "displayName", {
|
|
2130
2063
|
enumerable: !1,
|
|
2064
|
+
configurable: !0,
|
|
2131
2065
|
get: function() {
|
|
2132
|
-
return
|
|
2133
|
-
|
|
2134
|
-
|
|
2066
|
+
return u;
|
|
2067
|
+
},
|
|
2068
|
+
set: function(l) {
|
|
2069
|
+
u = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
|
|
2135
2070
|
}
|
|
2136
|
-
}),
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2071
|
+
}), n;
|
|
2072
|
+
}, t.isValidElement = L, t.lazy = function(e) {
|
|
2073
|
+
return {
|
|
2074
|
+
$$typeof: Ee,
|
|
2075
|
+
_payload: { _status: -1, _result: e },
|
|
2076
|
+
_init: De
|
|
2077
|
+
};
|
|
2078
|
+
}, t.memo = function(e, n) {
|
|
2079
|
+
ee(e) || console.error(
|
|
2080
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
2081
|
+
e === null ? "null" : typeof e
|
|
2082
|
+
), n = {
|
|
2083
|
+
$$typeof: je,
|
|
2084
|
+
type: e,
|
|
2085
|
+
compare: n === void 0 ? null : n
|
|
2086
|
+
};
|
|
2087
|
+
var u;
|
|
2088
|
+
return Object.defineProperty(n, "displayName", {
|
|
2089
|
+
enumerable: !1,
|
|
2090
|
+
configurable: !0,
|
|
2091
|
+
get: function() {
|
|
2092
|
+
return u;
|
|
2093
|
+
},
|
|
2094
|
+
set: function(l) {
|
|
2095
|
+
u = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
|
|
2096
|
+
}
|
|
2097
|
+
}), n;
|
|
2098
|
+
}, t.startTransition = function(e) {
|
|
2099
|
+
var n = _.T, u = {};
|
|
2100
|
+
_.T = u, u._updatedFibers = /* @__PURE__ */ new Set();
|
|
2148
2101
|
try {
|
|
2149
|
-
e();
|
|
2102
|
+
var l = e(), p = _.S;
|
|
2103
|
+
p !== null && p(u, l), typeof l == "object" && l !== null && typeof l.then == "function" && l.then(s, mt);
|
|
2104
|
+
} catch (g) {
|
|
2105
|
+
mt(g);
|
|
2150
2106
|
} finally {
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
}
|
|
2107
|
+
n === null && u._updatedFibers && (e = u._updatedFibers.size, u._updatedFibers.clear(), 10 < e && console.warn(
|
|
2108
|
+
"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."
|
|
2109
|
+
)), _.T = n;
|
|
2155
2110
|
}
|
|
2111
|
+
}, t.unstable_useCacheRefresh = function() {
|
|
2112
|
+
return j().useCacheRefresh();
|
|
2113
|
+
}, t.use = function(e) {
|
|
2114
|
+
return j().use(e);
|
|
2115
|
+
}, t.useActionState = function(e, n, u) {
|
|
2116
|
+
return j().useActionState(
|
|
2117
|
+
e,
|
|
2118
|
+
n,
|
|
2119
|
+
u
|
|
2120
|
+
);
|
|
2121
|
+
}, t.useCallback = function(e, n) {
|
|
2122
|
+
return j().useCallback(e, n);
|
|
2123
|
+
}, t.useContext = function(e) {
|
|
2124
|
+
var n = j();
|
|
2125
|
+
return e.$$typeof === Re && console.error(
|
|
2126
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
2127
|
+
), n.useContext(e);
|
|
2128
|
+
}, t.useDebugValue = function(e, n) {
|
|
2129
|
+
return j().useDebugValue(e, n);
|
|
2130
|
+
}, t.useDeferredValue = function(e, n) {
|
|
2131
|
+
return j().useDeferredValue(e, n);
|
|
2132
|
+
}, t.useEffect = function(e, n) {
|
|
2133
|
+
return j().useEffect(e, n);
|
|
2134
|
+
}, t.useId = function() {
|
|
2135
|
+
return j().useId();
|
|
2136
|
+
}, t.useImperativeHandle = function(e, n, u) {
|
|
2137
|
+
return j().useImperativeHandle(e, n, u);
|
|
2138
|
+
}, t.useInsertionEffect = function(e, n) {
|
|
2139
|
+
return j().useInsertionEffect(e, n);
|
|
2140
|
+
}, t.useLayoutEffect = function(e, n) {
|
|
2141
|
+
return j().useLayoutEffect(e, n);
|
|
2142
|
+
}, t.useMemo = function(e, n) {
|
|
2143
|
+
return j().useMemo(e, n);
|
|
2144
|
+
}, t.useOptimistic = function(e, n) {
|
|
2145
|
+
return j().useOptimistic(e, n);
|
|
2146
|
+
}, t.useReducer = function(e, n, u) {
|
|
2147
|
+
return j().useReducer(e, n, u);
|
|
2148
|
+
}, t.useRef = function(e) {
|
|
2149
|
+
return j().useRef(e);
|
|
2150
|
+
}, t.useState = function(e) {
|
|
2151
|
+
return j().useState(e);
|
|
2152
|
+
}, t.useSyncExternalStore = function(e, n, u) {
|
|
2153
|
+
return j().useSyncExternalStore(
|
|
2154
|
+
e,
|
|
2155
|
+
n,
|
|
2156
|
+
u
|
|
2157
|
+
);
|
|
2158
|
+
}, t.useTransition = function() {
|
|
2159
|
+
return j().useTransition();
|
|
2160
|
+
}, t.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2161
|
+
}();
|
|
2162
|
+
}(We, We.exports)), We.exports;
|
|
2163
|
+
}
|
|
2164
|
+
var Ct;
|
|
2165
|
+
function Pt() {
|
|
2166
|
+
return Ct || (Ct = 1, process.env.NODE_ENV === "production" ? Xe.exports = Ft() : Xe.exports = Gt()), Xe.exports;
|
|
2167
|
+
}
|
|
2168
|
+
/**
|
|
2169
|
+
* @license React
|
|
2170
|
+
* react-jsx-runtime.development.js
|
|
2171
|
+
*
|
|
2172
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2173
|
+
*
|
|
2174
|
+
* This source code is licensed under the MIT license found in the
|
|
2175
|
+
* LICENSE file in the root directory of this source tree.
|
|
2176
|
+
*/
|
|
2177
|
+
var Rt;
|
|
2178
|
+
function Kt() {
|
|
2179
|
+
return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2180
|
+
function r(o) {
|
|
2181
|
+
if (o == null) return null;
|
|
2182
|
+
if (typeof o == "function")
|
|
2183
|
+
return o.$$typeof === De ? null : o.displayName || o.name || null;
|
|
2184
|
+
if (typeof o == "string") return o;
|
|
2185
|
+
switch (o) {
|
|
2186
|
+
case oe:
|
|
2187
|
+
return "Fragment";
|
|
2188
|
+
case k:
|
|
2189
|
+
return "Portal";
|
|
2190
|
+
case we:
|
|
2191
|
+
return "Profiler";
|
|
2192
|
+
case me:
|
|
2193
|
+
return "StrictMode";
|
|
2194
|
+
case ce:
|
|
2195
|
+
return "Suspense";
|
|
2196
|
+
case ne:
|
|
2197
|
+
return "SuspenseList";
|
|
2198
|
+
}
|
|
2199
|
+
if (typeof o == "object")
|
|
2200
|
+
switch (typeof o.tag == "number" && console.error(
|
|
2201
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
2202
|
+
), o.$$typeof) {
|
|
2203
|
+
case Ce:
|
|
2204
|
+
return (o.displayName || "Context") + ".Provider";
|
|
2205
|
+
case L:
|
|
2206
|
+
return (o._context.displayName || "Context") + ".Consumer";
|
|
2207
|
+
case ge:
|
|
2208
|
+
var d = o.render;
|
|
2209
|
+
return o = o.displayName, o || (o = d.displayName || d.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
2210
|
+
case ve:
|
|
2211
|
+
return d = o.displayName || null, d !== null ? d : r(o.type) || "Memo";
|
|
2212
|
+
case K:
|
|
2213
|
+
d = o._payload, o = o._init;
|
|
2214
|
+
try {
|
|
2215
|
+
return r(o(d));
|
|
2216
|
+
} catch {
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
return null;
|
|
2220
|
+
}
|
|
2221
|
+
function t(o) {
|
|
2222
|
+
return "" + o;
|
|
2223
|
+
}
|
|
2224
|
+
function i(o) {
|
|
2225
|
+
try {
|
|
2226
|
+
t(o);
|
|
2227
|
+
var d = !1;
|
|
2228
|
+
} catch {
|
|
2229
|
+
d = !0;
|
|
2156
2230
|
}
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
At === !1 && (At = !0, typeof MessageChannel > "u" && h("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."));
|
|
2166
|
-
var p = new MessageChannel();
|
|
2167
|
-
p.port1.onmessage = u, p.port2.postMessage(void 0);
|
|
2168
|
-
};
|
|
2169
|
-
}
|
|
2170
|
-
return Ne(e);
|
|
2231
|
+
if (d) {
|
|
2232
|
+
d = console;
|
|
2233
|
+
var h = d.error, O = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
2234
|
+
return h.call(
|
|
2235
|
+
d,
|
|
2236
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2237
|
+
O
|
|
2238
|
+
), t(o);
|
|
2171
2239
|
}
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2240
|
+
}
|
|
2241
|
+
function f() {
|
|
2242
|
+
}
|
|
2243
|
+
function c() {
|
|
2244
|
+
if (w === 0) {
|
|
2245
|
+
A = console.log, b = console.info, W = console.warn, D = console.error, ye = console.group, Me = console.groupCollapsed, Re = console.groupEnd;
|
|
2246
|
+
var o = {
|
|
2247
|
+
configurable: !0,
|
|
2248
|
+
enumerable: !0,
|
|
2249
|
+
value: f,
|
|
2250
|
+
writable: !0
|
|
2251
|
+
};
|
|
2252
|
+
Object.defineProperties(console, {
|
|
2253
|
+
info: o,
|
|
2254
|
+
log: o,
|
|
2255
|
+
warn: o,
|
|
2256
|
+
error: o,
|
|
2257
|
+
group: o,
|
|
2258
|
+
groupCollapsed: o,
|
|
2259
|
+
groupEnd: o
|
|
2260
|
+
});
|
|
2261
|
+
}
|
|
2262
|
+
w++;
|
|
2263
|
+
}
|
|
2264
|
+
function v() {
|
|
2265
|
+
if (w--, w === 0) {
|
|
2266
|
+
var o = { configurable: !0, enumerable: !0, writable: !0 };
|
|
2267
|
+
Object.defineProperties(console, {
|
|
2268
|
+
log: a({}, o, { value: A }),
|
|
2269
|
+
info: a({}, o, { value: b }),
|
|
2270
|
+
warn: a({}, o, { value: W }),
|
|
2271
|
+
error: a({}, o, { value: D }),
|
|
2272
|
+
group: a({}, o, { value: ye }),
|
|
2273
|
+
groupCollapsed: a({}, o, { value: Me }),
|
|
2274
|
+
groupEnd: a({}, o, { value: Re })
|
|
2275
|
+
});
|
|
2276
|
+
}
|
|
2277
|
+
0 > w && console.error(
|
|
2278
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
2279
|
+
);
|
|
2280
|
+
}
|
|
2281
|
+
function S(o) {
|
|
2282
|
+
if (Oe === void 0)
|
|
2283
|
+
try {
|
|
2284
|
+
throw Error();
|
|
2285
|
+
} catch (h) {
|
|
2286
|
+
var d = h.stack.trim().match(/\n( *(at )?)/);
|
|
2287
|
+
Oe = d && d[1] || "", Te = -1 < h.stack.indexOf(`
|
|
2288
|
+
at`) ? " (<anonymous>)" : -1 < h.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
2289
|
+
}
|
|
2290
|
+
return `
|
|
2291
|
+
` + Oe + o + Te;
|
|
2292
|
+
}
|
|
2293
|
+
function M(o, d) {
|
|
2294
|
+
if (!o || _e) return "";
|
|
2295
|
+
var h = Se.get(o);
|
|
2296
|
+
if (h !== void 0) return h;
|
|
2297
|
+
_e = !0, h = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
2298
|
+
var O = null;
|
|
2299
|
+
O = j.H, j.H = null, c();
|
|
2300
|
+
try {
|
|
2301
|
+
var x = {
|
|
2302
|
+
DetermineComponentFrameRoot: function() {
|
|
2303
|
+
try {
|
|
2304
|
+
if (d) {
|
|
2305
|
+
var Z = function() {
|
|
2306
|
+
throw Error();
|
|
2307
|
+
};
|
|
2308
|
+
if (Object.defineProperty(Z.prototype, "props", {
|
|
2309
|
+
set: function() {
|
|
2310
|
+
throw Error();
|
|
2311
|
+
}
|
|
2312
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2313
|
+
try {
|
|
2314
|
+
Reflect.construct(Z, []);
|
|
2315
|
+
} catch (Q) {
|
|
2316
|
+
var Pe = Q;
|
|
2317
|
+
}
|
|
2318
|
+
Reflect.construct(o, [], Z);
|
|
2319
|
+
} else {
|
|
2320
|
+
try {
|
|
2321
|
+
Z.call();
|
|
2322
|
+
} catch (Q) {
|
|
2323
|
+
Pe = Q;
|
|
2324
|
+
}
|
|
2325
|
+
o.call(Z.prototype);
|
|
2210
2326
|
}
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
T(b);
|
|
2327
|
+
} else {
|
|
2328
|
+
try {
|
|
2329
|
+
throw Error();
|
|
2330
|
+
} catch (Q) {
|
|
2331
|
+
Pe = Q;
|
|
2217
2332
|
}
|
|
2218
|
-
|
|
2219
|
-
|
|
2333
|
+
(Z = o()) && typeof Z.catch == "function" && Z.catch(function() {
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
} catch (Q) {
|
|
2337
|
+
if (Q && Pe && typeof Q.stack == "string")
|
|
2338
|
+
return [Q.stack, Pe.stack];
|
|
2220
2339
|
}
|
|
2340
|
+
return [null, null];
|
|
2221
2341
|
}
|
|
2342
|
+
};
|
|
2343
|
+
x.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
2344
|
+
var N = Object.getOwnPropertyDescriptor(
|
|
2345
|
+
x.DetermineComponentFrameRoot,
|
|
2346
|
+
"name"
|
|
2347
|
+
);
|
|
2348
|
+
N && N.configurable && Object.defineProperty(
|
|
2349
|
+
x.DetermineComponentFrameRoot,
|
|
2350
|
+
"name",
|
|
2351
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
2352
|
+
);
|
|
2353
|
+
var C = x.DetermineComponentFrameRoot(), _ = C[0], J = C[1];
|
|
2354
|
+
if (_ && J) {
|
|
2355
|
+
var H = _.split(`
|
|
2356
|
+
`), G = J.split(`
|
|
2357
|
+
`);
|
|
2358
|
+
for (C = N = 0; N < H.length && !H[N].includes(
|
|
2359
|
+
"DetermineComponentFrameRoot"
|
|
2360
|
+
); )
|
|
2361
|
+
N++;
|
|
2362
|
+
for (; C < G.length && !G[C].includes(
|
|
2363
|
+
"DetermineComponentFrameRoot"
|
|
2364
|
+
); )
|
|
2365
|
+
C++;
|
|
2366
|
+
if (N === H.length || C === G.length)
|
|
2367
|
+
for (N = H.length - 1, C = G.length - 1; 1 <= N && 0 <= C && H[N] !== G[C]; )
|
|
2368
|
+
C--;
|
|
2369
|
+
for (; 1 <= N && 0 <= C; N--, C--)
|
|
2370
|
+
if (H[N] !== G[C]) {
|
|
2371
|
+
if (N !== 1 || C !== 1)
|
|
2372
|
+
do
|
|
2373
|
+
if (N--, C--, 0 > C || H[N] !== G[C]) {
|
|
2374
|
+
var be = `
|
|
2375
|
+
` + H[N].replace(
|
|
2376
|
+
" at new ",
|
|
2377
|
+
" at "
|
|
2378
|
+
);
|
|
2379
|
+
return o.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", o.displayName)), typeof o == "function" && Se.set(o, be), be;
|
|
2380
|
+
}
|
|
2381
|
+
while (1 <= N && 0 <= C);
|
|
2382
|
+
break;
|
|
2383
|
+
}
|
|
2222
2384
|
}
|
|
2385
|
+
} finally {
|
|
2386
|
+
_e = !1, j.H = O, v(), Error.prepareStackTrace = h;
|
|
2223
2387
|
}
|
|
2224
|
-
function
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2388
|
+
return H = (H = o ? o.displayName || o.name : "") ? S(H) : "", typeof o == "function" && Se.set(o, H), H;
|
|
2389
|
+
}
|
|
2390
|
+
function I(o) {
|
|
2391
|
+
if (o == null) return "";
|
|
2392
|
+
if (typeof o == "function") {
|
|
2393
|
+
var d = o.prototype;
|
|
2394
|
+
return M(
|
|
2395
|
+
o,
|
|
2396
|
+
!(!d || !d.isReactComponent)
|
|
2397
|
+
);
|
|
2398
|
+
}
|
|
2399
|
+
if (typeof o == "string") return S(o);
|
|
2400
|
+
switch (o) {
|
|
2401
|
+
case ce:
|
|
2402
|
+
return S("Suspense");
|
|
2403
|
+
case ne:
|
|
2404
|
+
return S("SuspenseList");
|
|
2405
|
+
}
|
|
2406
|
+
if (typeof o == "object")
|
|
2407
|
+
switch (o.$$typeof) {
|
|
2408
|
+
case ge:
|
|
2409
|
+
return o = M(o.render, !1), o;
|
|
2410
|
+
case ve:
|
|
2411
|
+
return I(o.type);
|
|
2412
|
+
case K:
|
|
2413
|
+
d = o._payload, o = o._init;
|
|
2231
2414
|
try {
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
});
|
|
2235
|
-
} catch (u) {
|
|
2236
|
-
i(u);
|
|
2415
|
+
return I(o(d));
|
|
2416
|
+
} catch {
|
|
2237
2417
|
}
|
|
2238
|
-
else
|
|
2239
|
-
r(e);
|
|
2240
2418
|
}
|
|
2419
|
+
return "";
|
|
2420
|
+
}
|
|
2421
|
+
function B() {
|
|
2422
|
+
var o = j.A;
|
|
2423
|
+
return o === null ? null : o.getOwner();
|
|
2424
|
+
}
|
|
2425
|
+
function q(o) {
|
|
2426
|
+
if (s.call(o, "key")) {
|
|
2427
|
+
var d = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
2428
|
+
if (d && d.isReactWarning) return !1;
|
|
2241
2429
|
}
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2430
|
+
return o.key !== void 0;
|
|
2431
|
+
}
|
|
2432
|
+
function ee(o, d) {
|
|
2433
|
+
function h() {
|
|
2434
|
+
Ee || (Ee = !0, console.error(
|
|
2435
|
+
"%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://react.dev/link/special-props)",
|
|
2436
|
+
d
|
|
2437
|
+
));
|
|
2438
|
+
}
|
|
2439
|
+
h.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
2440
|
+
get: h,
|
|
2441
|
+
configurable: !0
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
2444
|
+
function de() {
|
|
2445
|
+
var o = r(this.type);
|
|
2446
|
+
return Be[o] || (Be[o] = !0, console.error(
|
|
2447
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2448
|
+
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
2449
|
+
}
|
|
2450
|
+
function ie(o, d, h, O, x, N) {
|
|
2451
|
+
return h = N.ref, o = {
|
|
2452
|
+
$$typeof: pe,
|
|
2453
|
+
type: o,
|
|
2454
|
+
key: d,
|
|
2455
|
+
props: N,
|
|
2456
|
+
_owner: x
|
|
2457
|
+
}, (h !== void 0 ? h : null) !== null ? Object.defineProperty(o, "ref", {
|
|
2458
|
+
enumerable: !1,
|
|
2459
|
+
get: de
|
|
2460
|
+
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
2461
|
+
configurable: !1,
|
|
2462
|
+
enumerable: !1,
|
|
2463
|
+
writable: !0,
|
|
2464
|
+
value: 0
|
|
2465
|
+
}), Object.defineProperty(o, "_debugInfo", {
|
|
2466
|
+
configurable: !1,
|
|
2467
|
+
enumerable: !1,
|
|
2468
|
+
writable: !0,
|
|
2469
|
+
value: null
|
|
2470
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
2471
|
+
}
|
|
2472
|
+
function ue(o, d, h, O, x, N) {
|
|
2473
|
+
if (typeof o == "string" || typeof o == "function" || o === oe || o === we || o === me || o === ce || o === ne || o === F || typeof o == "object" && o !== null && (o.$$typeof === K || o.$$typeof === ve || o.$$typeof === Ce || o.$$typeof === L || o.$$typeof === ge || o.$$typeof === E || o.getModuleId !== void 0)) {
|
|
2474
|
+
var C = d.children;
|
|
2475
|
+
if (C !== void 0)
|
|
2476
|
+
if (O)
|
|
2477
|
+
if (y(C)) {
|
|
2478
|
+
for (O = 0; O < C.length; O++)
|
|
2479
|
+
te(C[O], o);
|
|
2480
|
+
Object.freeze && Object.freeze(C);
|
|
2481
|
+
} else
|
|
2482
|
+
console.error(
|
|
2483
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
2484
|
+
);
|
|
2485
|
+
else te(C, o);
|
|
2486
|
+
} else
|
|
2487
|
+
C = "", (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), o === null ? O = "null" : y(o) ? O = "array" : o !== void 0 && o.$$typeof === pe ? (O = "<" + (r(o.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : O = typeof o, console.error(
|
|
2488
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
2489
|
+
O,
|
|
2490
|
+
C
|
|
2491
|
+
);
|
|
2492
|
+
if (s.call(d, "key")) {
|
|
2493
|
+
C = r(o);
|
|
2494
|
+
var _ = Object.keys(d).filter(function(H) {
|
|
2495
|
+
return H !== "key";
|
|
2496
|
+
});
|
|
2497
|
+
O = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", He[C + O] || (_ = 0 < _.length ? "{" + _.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2498
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
2499
|
+
let props = %s;
|
|
2500
|
+
<%s {...props} />
|
|
2501
|
+
React keys must be passed directly to JSX without using spread:
|
|
2502
|
+
let props = %s;
|
|
2503
|
+
<%s key={someKey} {...props} />`,
|
|
2504
|
+
O,
|
|
2505
|
+
C,
|
|
2506
|
+
_,
|
|
2507
|
+
C
|
|
2508
|
+
), He[C + O] = !0);
|
|
2509
|
+
}
|
|
2510
|
+
if (C = null, h !== void 0 && (i(h), C = "" + h), q(d) && (i(d.key), C = "" + d.key), "key" in d) {
|
|
2511
|
+
h = {};
|
|
2512
|
+
for (var J in d)
|
|
2513
|
+
J !== "key" && (h[J] = d[J]);
|
|
2514
|
+
} else h = d;
|
|
2515
|
+
return C && ee(
|
|
2516
|
+
h,
|
|
2517
|
+
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
2518
|
+
), ie(o, C, N, x, B(), h);
|
|
2519
|
+
}
|
|
2520
|
+
function te(o, d) {
|
|
2521
|
+
if (typeof o == "object" && o && o.$$typeof !== je) {
|
|
2522
|
+
if (y(o))
|
|
2523
|
+
for (var h = 0; h < o.length; h++) {
|
|
2524
|
+
var O = o[h];
|
|
2525
|
+
V(O) && ae(O, d);
|
|
2259
2526
|
}
|
|
2260
|
-
|
|
2527
|
+
else if (V(o))
|
|
2528
|
+
o._store && (o._store.validated = 1);
|
|
2529
|
+
else if (o === null || typeof o != "object" ? h = null : (h = le && o[le] || o["@@iterator"], h = typeof h == "function" ? h : null), typeof h == "function" && h !== o.entries && (h = h.call(o), h !== o))
|
|
2530
|
+
for (; !(o = h.next()).done; )
|
|
2531
|
+
V(o.value) && ae(o.value, d);
|
|
2261
2532
|
}
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2533
|
+
}
|
|
2534
|
+
function V(o) {
|
|
2535
|
+
return typeof o == "object" && o !== null && o.$$typeof === pe;
|
|
2536
|
+
}
|
|
2537
|
+
function ae(o, d) {
|
|
2538
|
+
if (o._store && !o._store.validated && o.key == null && (o._store.validated = 1, d = re(d), !Ue[d])) {
|
|
2539
|
+
Ue[d] = !0;
|
|
2540
|
+
var h = "";
|
|
2541
|
+
o && o._owner != null && o._owner !== B() && (h = null, typeof o._owner.tag == "number" ? h = r(o._owner.type) : typeof o._owner.name == "string" && (h = o._owner.name), h = " It was passed a child from " + h + ".");
|
|
2542
|
+
var O = j.getCurrentStack;
|
|
2543
|
+
j.getCurrentStack = function() {
|
|
2544
|
+
var x = I(o.type);
|
|
2545
|
+
return O && (x += O() || ""), x;
|
|
2546
|
+
}, console.error(
|
|
2547
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
2548
|
+
d,
|
|
2549
|
+
h
|
|
2550
|
+
), j.getCurrentStack = O;
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
function re(o) {
|
|
2554
|
+
var d = "", h = B();
|
|
2555
|
+
return h && (h = r(h.type)) && (d = `
|
|
2556
|
+
|
|
2557
|
+
Check the render method of \`` + h + "`."), d || (o = r(o)) && (d = `
|
|
2558
|
+
|
|
2559
|
+
Check the top-level render call using <` + o + ">."), d;
|
|
2560
|
+
}
|
|
2561
|
+
var he = Pt(), pe = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), oe = Symbol.for("react.fragment"), me = Symbol.for("react.strict_mode"), we = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), Ce = Symbol.for("react.context"), ge = Symbol.for("react.forward_ref"), ce = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), ve = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), le = Symbol.iterator, De = Symbol.for("react.client.reference"), j = he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, s = Object.prototype.hasOwnProperty, a = Object.assign, E = Symbol.for("react.client.reference"), y = Array.isArray, w = 0, A, b, W, D, ye, Me, Re;
|
|
2562
|
+
f.__reactDisabledLog = !0;
|
|
2563
|
+
var Oe, Te, _e = !1, Se = new (typeof WeakMap == "function" ? WeakMap : Map)(), je = Symbol.for("react.client.reference"), Ee, Be = {}, He = {}, Ue = {};
|
|
2564
|
+
qe.Fragment = oe, qe.jsx = function(o, d, h, O, x) {
|
|
2565
|
+
return ue(o, d, h, !1, O, x);
|
|
2566
|
+
}, qe.jsxs = function(o, d, h, O, x) {
|
|
2567
|
+
return ue(o, d, h, !0, O, x);
|
|
2568
|
+
};
|
|
2569
|
+
}()), qe;
|
|
2570
|
+
}
|
|
2571
|
+
var Ot;
|
|
2572
|
+
function Qt() {
|
|
2573
|
+
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? Qe.exports = Vt() : Qe.exports = Kt()), Qe.exports;
|
|
2272
2574
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
const W = /* @__PURE__ */ yn(fe);
|
|
2276
|
-
class _n extends fe.Component {
|
|
2575
|
+
var X = Qt(), Le = Pt();
|
|
2576
|
+
class Xt extends Le.Component {
|
|
2277
2577
|
constructor(t) {
|
|
2278
2578
|
super(t), this.unfilteredDocuments = [], this.state = {
|
|
2279
2579
|
documents: [],
|
|
@@ -2283,10 +2583,10 @@ class _n extends fe.Component {
|
|
|
2283
2583
|
}
|
|
2284
2584
|
async componentDidMount() {
|
|
2285
2585
|
const { controller: t } = this.props;
|
|
2286
|
-
this.unsubscriber = t.onChange((
|
|
2287
|
-
|
|
2586
|
+
this.unsubscriber = t.onChange((i) => {
|
|
2587
|
+
i.documentCollection && (this.unfilteredDocuments = i.documentCollection, this.setState({
|
|
2288
2588
|
documents: t.filter(this.unfilteredDocuments)
|
|
2289
|
-
})),
|
|
2589
|
+
})), i.action === "filterChange" ? this.setState({
|
|
2290
2590
|
documents: t.filter(this.unfilteredDocuments)
|
|
2291
2591
|
}) : this.setState({});
|
|
2292
2592
|
}), this.unfilteredDocuments = await t.documentCollection(), this.setState({
|
|
@@ -2310,55 +2610,67 @@ class _n extends fe.Component {
|
|
|
2310
2610
|
});
|
|
2311
2611
|
}
|
|
2312
2612
|
async storeDocument(t) {
|
|
2313
|
-
const { controller:
|
|
2314
|
-
|
|
2613
|
+
const { controller: i, layout: f } = this.props;
|
|
2614
|
+
i.setDocument(t), await i.storeDocument(), f === "formAndItems" ? this.newDocument() : this.setState({
|
|
2315
2615
|
mode: 0
|
|
2316
2616
|
/* normal */
|
|
2317
2617
|
});
|
|
2318
2618
|
}
|
|
2319
2619
|
invokeContentViewChild(t) {
|
|
2320
|
-
const { children:
|
|
2321
|
-
if (!
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
onCancel: D ? () => this.setState({
|
|
2620
|
+
const { children: i, layout: f, controller: c } = this.props, { mode: v } = this.state, S = f !== "formAndItems";
|
|
2621
|
+
if (!c.document) return;
|
|
2622
|
+
const M = {
|
|
2623
|
+
controller: c,
|
|
2624
|
+
submitButtonCaption: v == 2 ? t == null ? void 0 : t.updateButtonLabel : t == null ? void 0 : t.addButtonLabel,
|
|
2625
|
+
onSubmit: (I) => this.storeDocument(I),
|
|
2626
|
+
onCancel: S ? () => this.setState({
|
|
2328
2627
|
mode: 0
|
|
2329
2628
|
/* normal */
|
|
2330
2629
|
}) : () => this.newDocument()
|
|
2331
2630
|
};
|
|
2332
|
-
return typeof
|
|
2631
|
+
return typeof i[0] == "function" ? Le.cloneElement(i[0](M), { key: c.document.id }) : Le.cloneElement(i[0], { key: c.document.id, ...M });
|
|
2333
2632
|
}
|
|
2334
2633
|
invokeDetailViewChild(t) {
|
|
2335
|
-
const { children:
|
|
2634
|
+
const { children: i, controller: f } = this.props, c = {
|
|
2336
2635
|
document: t,
|
|
2337
|
-
onSelect: (
|
|
2338
|
-
onDelete: (
|
|
2636
|
+
onSelect: (v) => this.editDocument(v),
|
|
2637
|
+
onDelete: (v) => f.setDocument(v).deleteDocument()
|
|
2339
2638
|
};
|
|
2340
|
-
return typeof
|
|
2639
|
+
return typeof i[1] == "function" ? Le.cloneElement(i[1](c), { key: t.id }) : Le.cloneElement(i[1], { key: t.id, ...c });
|
|
2341
2640
|
}
|
|
2342
2641
|
render() {
|
|
2343
|
-
var
|
|
2344
|
-
const { mode: t, documents:
|
|
2345
|
-
let
|
|
2346
|
-
const
|
|
2347
|
-
typeof
|
|
2348
|
-
const { addNewDocumentLabel: B, singularDocumentInCollectionCaption:
|
|
2349
|
-
return /* @__PURE__ */
|
|
2350
|
-
"div",
|
|
2351
|
-
{
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2642
|
+
var ie;
|
|
2643
|
+
const { mode: t, documents: i } = this.state, { className: f, cardAddButton: c, controller: v } = this.props, S = zt((ie = v.document) == null ? void 0 : ie.className);
|
|
2644
|
+
let M = this.props.labels || {};
|
|
2645
|
+
const I = this.props.layout || "itemsAlways";
|
|
2646
|
+
typeof M == "function" && (M = M(v));
|
|
2647
|
+
const { addNewDocumentLabel: B, singularDocumentInCollectionCaption: q, documentsInCollectionCaption: ee, noDocumentsFoundLabel: de } = M;
|
|
2648
|
+
return /* @__PURE__ */ X.jsxs("div", { className: `crud-panel ${S} ${f || ""}`, children: [
|
|
2649
|
+
t === 0 && I !== "formAndItems" && !c && /* @__PURE__ */ X.jsx("div", { className: "header", children: this.props.header ? typeof this.props.header == "function" ? this.props.header(v, () => this.newDocument(), M) : this.props.header : /* @__PURE__ */ X.jsx("button", { onClick: () => this.newDocument(), children: B }) }),
|
|
2650
|
+
(I === "formAndItems" || t === 1 || t === 2) && /* @__PURE__ */ X.jsx("div", { className: "content-panel", children: this.invokeContentViewChild(M) }),
|
|
2651
|
+
(I === "itemsAlways" || I === "formAndItems" || t === 0) && /* @__PURE__ */ X.jsxs("div", { className: "collection-panel", children: [
|
|
2652
|
+
(i == null ? void 0 : i.length) > 0 && /* @__PURE__ */ X.jsx("h3", { children: i.length > 1 ? ee : q || ee }),
|
|
2653
|
+
/* @__PURE__ */ X.jsxs("div", { className: "documents", children: [
|
|
2654
|
+
c && /* @__PURE__ */ X.jsxs(
|
|
2655
|
+
"div",
|
|
2656
|
+
{
|
|
2657
|
+
className: "crud-card card-add-button clickable",
|
|
2658
|
+
onClick: () => this.newDocument(),
|
|
2659
|
+
children: [
|
|
2660
|
+
/* @__PURE__ */ X.jsx("div", { className: "button-element", children: c }),
|
|
2661
|
+
/* @__PURE__ */ X.jsx("div", { className: "add-label", children: B })
|
|
2662
|
+
]
|
|
2663
|
+
}
|
|
2664
|
+
),
|
|
2665
|
+
i != null && i.length ? i.map((ue) => this.invokeDetailViewChild(ue)) : /* @__PURE__ */ X.jsx("p", { children: de })
|
|
2666
|
+
] })
|
|
2667
|
+
] }),
|
|
2668
|
+
/* @__PURE__ */ X.jsx("div", { className: "footer", children: this.props.footer && typeof this.props.footer == "function" ? this.props.footer(v, () => this.newDocument(), M) : this.props.footer })
|
|
2669
|
+
] });
|
|
2358
2670
|
}
|
|
2359
2671
|
}
|
|
2360
2672
|
export {
|
|
2361
|
-
|
|
2362
|
-
|
|
2673
|
+
_t as CrudController,
|
|
2674
|
+
Xt as CrudPanel
|
|
2363
2675
|
};
|
|
2364
2676
|
//# sourceMappingURL=entropic-bond-crud-panel.js.map
|