@entropic-bond/crud-panel 4.2.0 → 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 +1986 -1680
- 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 +1 -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,63 +519,62 @@ 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._debug = !1, 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);
|
|
@@ -580,9 +586,9 @@ class mn {
|
|
|
580
586
|
return this._debug;
|
|
581
587
|
}
|
|
582
588
|
}
|
|
583
|
-
const
|
|
589
|
+
const Ne = class Ne {
|
|
584
590
|
constructor(t) {
|
|
585
|
-
this.progressController = new
|
|
591
|
+
this.progressController = new Bt(), this.onChangeHdl = new Je(), this.onErrorHdl = new Je(), this.validator = {}, this.setDocument(t || this.createDocument());
|
|
586
592
|
}
|
|
587
593
|
allRequiredPropertiesFilled() {
|
|
588
594
|
return this.nonFilledRequiredProperties.length <= 0;
|
|
@@ -591,38 +597,34 @@ const re = class re {
|
|
|
591
597
|
return this.requiredProperties.filter((t) => this.validateProp(t));
|
|
592
598
|
}
|
|
593
599
|
get requiredProperties() {
|
|
594
|
-
if (!this.document)
|
|
595
|
-
|
|
596
|
-
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);
|
|
597
602
|
return [...new Set(t.concat(Object.keys(this.validator)))];
|
|
598
603
|
}
|
|
599
|
-
addValidator(t,
|
|
604
|
+
addValidator(t, i, f) {
|
|
600
605
|
this.validator[t] = {
|
|
601
|
-
func:
|
|
602
|
-
errorMessage:
|
|
606
|
+
func: i,
|
|
607
|
+
errorMessage: f
|
|
603
608
|
};
|
|
604
609
|
}
|
|
605
610
|
removeValidator(t) {
|
|
606
611
|
delete this.validator[t];
|
|
607
612
|
}
|
|
608
613
|
failedValidationError(t) {
|
|
609
|
-
var
|
|
610
|
-
return (
|
|
614
|
+
var i;
|
|
615
|
+
return (i = this.validator[t]) == null ? void 0 : i.errorMessage;
|
|
611
616
|
}
|
|
612
617
|
validateProp(t) {
|
|
613
|
-
if (!this.document)
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
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);
|
|
617
621
|
}
|
|
618
622
|
storeDoc() {
|
|
619
|
-
if (!this.document)
|
|
620
|
-
throw new Error(re.errorMessages.missedDocument);
|
|
623
|
+
if (!this.document) throw new Error(Ne.errorMessages.missedDocument);
|
|
621
624
|
return this.model.save(this.document);
|
|
622
625
|
}
|
|
623
626
|
deleteDoc() {
|
|
624
|
-
if (!this.document)
|
|
625
|
-
throw new Error(re.errorMessages.missedDocument);
|
|
627
|
+
if (!this.document) throw new Error(Ne.errorMessages.missedDocument);
|
|
626
628
|
return this.model.delete(this.document.id);
|
|
627
629
|
}
|
|
628
630
|
/**
|
|
@@ -637,8 +639,8 @@ const re = class re {
|
|
|
637
639
|
* @see findDocs
|
|
638
640
|
*/
|
|
639
641
|
queryDocs(t) {
|
|
640
|
-
let
|
|
641
|
-
return t && (
|
|
642
|
+
let i = this.model.find();
|
|
643
|
+
return t && (i = i.limit(t)), i;
|
|
642
644
|
}
|
|
643
645
|
/**
|
|
644
646
|
* Override this method to customize the query used to retrieve the documents
|
|
@@ -696,9 +698,8 @@ const re = class re {
|
|
|
696
698
|
documentCollection: await this.documentCollection(),
|
|
697
699
|
action: "saved"
|
|
698
700
|
});
|
|
699
|
-
} catch (
|
|
700
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
701
|
-
throw s;
|
|
701
|
+
} catch (i) {
|
|
702
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(i) }), this.onErrorHdl.notify(this.errorToError(i)), this.throwOnError) throw i;
|
|
702
703
|
} finally {
|
|
703
704
|
this.progressController.notifyBusy(!1, t);
|
|
704
705
|
}
|
|
@@ -710,32 +711,30 @@ const re = class re {
|
|
|
710
711
|
documentCollection: await this.documentCollection(),
|
|
711
712
|
action: "deleted"
|
|
712
713
|
});
|
|
713
|
-
} catch (
|
|
714
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
715
|
-
throw s;
|
|
714
|
+
} catch (i) {
|
|
715
|
+
if (this.onChangeHdl.notify({ error: this.errorToError(i) }), this.onErrorHdl.notify(this.errorToError(i)), this.throwOnError) throw i;
|
|
716
716
|
} finally {
|
|
717
717
|
this.progressController.notifyBusy(!1, t);
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
async documentCollection(t) {
|
|
721
|
-
const
|
|
722
|
-
let
|
|
721
|
+
const i = "Retrieving document collection";
|
|
722
|
+
let f = [];
|
|
723
723
|
try {
|
|
724
|
-
this.progressController.notifyBusy(!0,
|
|
725
|
-
const
|
|
726
|
-
|
|
727
|
-
} catch (
|
|
728
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(
|
|
729
|
-
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;
|
|
730
729
|
} finally {
|
|
731
|
-
this.progressController.notifyBusy(!1,
|
|
730
|
+
this.progressController.notifyBusy(!1, i);
|
|
732
731
|
}
|
|
733
|
-
return
|
|
732
|
+
return f;
|
|
734
733
|
}
|
|
735
734
|
filter(t) {
|
|
736
|
-
return t.filter((
|
|
737
|
-
var
|
|
738
|
-
return ((
|
|
735
|
+
return t.filter((i) => {
|
|
736
|
+
var f;
|
|
737
|
+
return ((f = this._filter) == null ? void 0 : f.call(this, i)) ?? !0;
|
|
739
738
|
});
|
|
740
739
|
}
|
|
741
740
|
onProgress(t) {
|
|
@@ -745,7 +744,7 @@ const re = class re {
|
|
|
745
744
|
return this._model || (this._model = this.getModel());
|
|
746
745
|
}
|
|
747
746
|
setDocument(t) {
|
|
748
|
-
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;
|
|
749
748
|
}
|
|
750
749
|
set document(t) {
|
|
751
750
|
this.setDocument(t);
|
|
@@ -761,8 +760,7 @@ const re = class re {
|
|
|
761
760
|
* @param error the error to throw
|
|
762
761
|
*/
|
|
763
762
|
managedThrow(t) {
|
|
764
|
-
if (this.onChangeHdl.notify({ error: this.errorToError(t) }), this.onErrorHdl.notify(this.errorToError(t)), this.throwOnError)
|
|
765
|
-
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);
|
|
766
764
|
}
|
|
767
765
|
errorToError(t) {
|
|
768
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));
|
|
@@ -771,1515 +769,1811 @@ const re = class re {
|
|
|
771
769
|
return this.onErrorHdl.subscribersCount === 0;
|
|
772
770
|
}
|
|
773
771
|
};
|
|
774
|
-
|
|
772
|
+
Ne.errorMessages = {
|
|
775
773
|
missedDocument: "No document to save"
|
|
776
774
|
};
|
|
777
|
-
let
|
|
778
|
-
|
|
779
|
-
|
|
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;
|
|
780
807
|
}
|
|
781
|
-
var
|
|
808
|
+
var qe = {}, Xe = { exports: {} }, R = {};
|
|
782
809
|
/**
|
|
783
810
|
* @license React
|
|
784
|
-
* react.production.
|
|
811
|
+
* react.production.js
|
|
785
812
|
*
|
|
786
|
-
* Copyright (c)
|
|
813
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
787
814
|
*
|
|
788
815
|
* This source code is licensed under the MIT license found in the
|
|
789
816
|
* LICENSE file in the root directory of this source tree.
|
|
790
817
|
*/
|
|
791
|
-
var
|
|
792
|
-
function
|
|
793
|
-
if (
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
}
|
|
809
|
-
K.prototype.isReactComponent = {}, K.prototype.setState = function(o, f) {
|
|
810
|
-
if (typeof o != "object" && typeof o != "function" && o != null)
|
|
811
|
-
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
812
|
-
this.updater.enqueueSetState(this, o, f, "setState");
|
|
813
|
-
}, K.prototype.forceUpdate = function(o) {
|
|
814
|
-
this.updater.enqueueForceUpdate(this, o, "forceUpdate");
|
|
815
|
-
};
|
|
816
|
-
function we() {
|
|
817
|
-
}
|
|
818
|
-
we.prototype = K.prototype;
|
|
819
|
-
function oe(o, f, v) {
|
|
820
|
-
this.props = o, this.context = f, this.refs = Ee, this.updater = v || U;
|
|
821
|
-
}
|
|
822
|
-
var ie = oe.prototype = new we();
|
|
823
|
-
ie.constructor = oe, q(ie, K.prototype), ie.isPureReactComponent = !0;
|
|
824
|
-
var G = Array.isArray, A = Object.prototype.hasOwnProperty, L = { current: null }, J = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
825
|
-
function ee(o, f, v) {
|
|
826
|
-
var E, _ = {}, C = null, k = null;
|
|
827
|
-
if (f != null)
|
|
828
|
-
for (E in f.ref !== void 0 && (k = f.ref), f.key !== void 0 && (C = "" + f.key), f)
|
|
829
|
-
A.call(f, E) && !J.hasOwnProperty(E) && (_[E] = f[E]);
|
|
830
|
-
var R = arguments.length - 2;
|
|
831
|
-
if (R === 1)
|
|
832
|
-
_.children = v;
|
|
833
|
-
else if (1 < R) {
|
|
834
|
-
for (var P = Array(R), $ = 0; $ < R; $++)
|
|
835
|
-
P[$] = arguments[$ + 2];
|
|
836
|
-
_.children = P;
|
|
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() {
|
|
837
835
|
}
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
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
|
+
};
|
|
848
866
|
}
|
|
849
|
-
function
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
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];
|
|
853
884
|
});
|
|
854
885
|
}
|
|
855
|
-
var
|
|
856
|
-
function
|
|
857
|
-
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;
|
|
858
914
|
}
|
|
859
|
-
function
|
|
860
|
-
var
|
|
861
|
-
(
|
|
862
|
-
var
|
|
863
|
-
if (
|
|
864
|
-
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;
|
|
865
920
|
else
|
|
866
|
-
switch (
|
|
921
|
+
switch (A) {
|
|
922
|
+
case "bigint":
|
|
867
923
|
case "string":
|
|
868
924
|
case "number":
|
|
869
|
-
|
|
925
|
+
b = !0;
|
|
870
926
|
break;
|
|
871
927
|
case "object":
|
|
872
|
-
switch (
|
|
873
|
-
case
|
|
928
|
+
switch (s.$$typeof) {
|
|
929
|
+
case r:
|
|
874
930
|
case t:
|
|
875
|
-
|
|
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
|
+
);
|
|
876
941
|
}
|
|
877
942
|
}
|
|
878
|
-
if (
|
|
879
|
-
return
|
|
880
|
-
return
|
|
881
|
-
})) :
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
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;
|
|
911
1055
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
return o;
|
|
934
|
-
} }, 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 = Pe, g.cloneElement = function(o, f, v) {
|
|
935
|
-
if (o == null)
|
|
936
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
|
|
937
|
-
var E = q({}, o.props), _ = o.key, C = o.ref, k = o._owner;
|
|
938
|
-
if (f != null) {
|
|
939
|
-
if (f.ref !== void 0 && (C = f.ref, k = L.current), f.key !== void 0 && (_ = "" + f.key), o.type && o.type.defaultProps)
|
|
940
|
-
var R = o.type.defaultProps;
|
|
941
|
-
for (P in f)
|
|
942
|
-
A.call(f, P) && !J.hasOwnProperty(P) && (E[P] = f[P] === void 0 && R !== void 0 ? R[P] : f[P]);
|
|
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;
|
|
943
1077
|
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
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;
|
|
952
1102
|
}
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
return f.type = o, f;
|
|
959
|
-
}, 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() {
|
|
960
1108
|
return { current: null };
|
|
961
|
-
},
|
|
962
|
-
return { $$typeof:
|
|
963
|
-
},
|
|
964
|
-
return {
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
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;
|
|
970
1126
|
try {
|
|
971
|
-
|
|
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);
|
|
972
1131
|
} finally {
|
|
973
|
-
|
|
1132
|
+
k.T = a;
|
|
974
1133
|
}
|
|
975
|
-
},
|
|
976
|
-
|
|
977
|
-
},
|
|
978
|
-
return
|
|
979
|
-
},
|
|
980
|
-
return
|
|
981
|
-
},
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
},
|
|
987
|
-
return
|
|
988
|
-
},
|
|
989
|
-
return
|
|
990
|
-
},
|
|
991
|
-
return
|
|
992
|
-
},
|
|
993
|
-
return
|
|
994
|
-
},
|
|
995
|
-
return
|
|
996
|
-
},
|
|
997
|
-
return
|
|
998
|
-
},
|
|
999
|
-
return
|
|
1000
|
-
},
|
|
1001
|
-
return
|
|
1002
|
-
},
|
|
1003
|
-
return
|
|
1004
|
-
},
|
|
1005
|
-
return
|
|
1006
|
-
},
|
|
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;
|
|
1007
1176
|
}
|
|
1008
|
-
var
|
|
1177
|
+
var We = { exports: {} };
|
|
1009
1178
|
/**
|
|
1010
1179
|
* @license React
|
|
1011
1180
|
* react.development.js
|
|
1012
1181
|
*
|
|
1013
|
-
* Copyright (c)
|
|
1182
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1014
1183
|
*
|
|
1015
1184
|
* This source code is licensed under the MIT license found in the
|
|
1016
1185
|
* LICENSE file in the root directory of this source tree.
|
|
1017
1186
|
*/
|
|
1018
|
-
|
|
1019
|
-
var
|
|
1020
|
-
function
|
|
1021
|
-
return
|
|
1187
|
+
We.exports;
|
|
1188
|
+
var wt;
|
|
1189
|
+
function Gt() {
|
|
1190
|
+
return wt || (wt = 1, function(r, t) {
|
|
1022
1191
|
process.env.NODE_ENV !== "production" && function() {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
* @internal
|
|
1034
|
-
* @type {ReactComponent}
|
|
1035
|
-
*/
|
|
1036
|
-
current: null
|
|
1037
|
-
}, G = {
|
|
1038
|
-
transition: null
|
|
1039
|
-
}, A = {
|
|
1040
|
-
current: null,
|
|
1041
|
-
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
1042
|
-
isBatchingLegacy: !1,
|
|
1043
|
-
didScheduleLegacyUpdate: !1
|
|
1044
|
-
}, L = {
|
|
1045
|
-
/**
|
|
1046
|
-
* @internal
|
|
1047
|
-
* @type {ReactComponent}
|
|
1048
|
-
*/
|
|
1049
|
-
current: null
|
|
1050
|
-
}, J = {}, ee = null;
|
|
1051
|
-
function Ce(e) {
|
|
1052
|
-
ee = e;
|
|
1053
|
-
}
|
|
1054
|
-
J.setExtraStackFrame = function(e) {
|
|
1055
|
-
ee = e;
|
|
1056
|
-
}, J.getCurrentStack = null, J.getStackAddendum = function() {
|
|
1057
|
-
var e = "";
|
|
1058
|
-
ee && (e += ee);
|
|
1059
|
-
var r = J.getCurrentStack;
|
|
1060
|
-
return r && (e += r() || ""), e;
|
|
1061
|
-
};
|
|
1062
|
-
var he = !1, Ve = !1, Re = !1, me = !1, se = !1, Y = {
|
|
1063
|
-
ReactCurrentDispatcher: ie,
|
|
1064
|
-
ReactCurrentBatchConfig: G,
|
|
1065
|
-
ReactCurrentOwner: L
|
|
1066
|
-
};
|
|
1067
|
-
Y.ReactDebugCurrentFrame = J, Y.ReactCurrentActQueue = A;
|
|
1068
|
-
function Q(e) {
|
|
1069
|
-
{
|
|
1070
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
1071
|
-
i[a - 1] = arguments[a];
|
|
1072
|
-
te("warn", e, i);
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
function h(e) {
|
|
1076
|
-
{
|
|
1077
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
1078
|
-
i[a - 1] = arguments[a];
|
|
1079
|
-
te("error", e, i);
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
function te(e, r, i) {
|
|
1083
|
-
{
|
|
1084
|
-
var a = Y.ReactDebugCurrentFrame, u = a.getStackAddendum();
|
|
1085
|
-
u !== "" && (r += "%s", i = i.concat([u]));
|
|
1086
|
-
var p = i.map(function(d) {
|
|
1087
|
-
return String(d);
|
|
1088
|
-
});
|
|
1089
|
-
p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
var Pe = {};
|
|
1093
|
-
function o(e, r) {
|
|
1094
|
-
{
|
|
1095
|
-
var i = e.constructor, a = i && (i.displayName || i.name) || "ReactClass", u = a + "." + r;
|
|
1096
|
-
if (Pe[u])
|
|
1097
|
-
return;
|
|
1098
|
-
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), Pe[u] = !0;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
var f = {
|
|
1102
|
-
/**
|
|
1103
|
-
* Checks whether or not this composite component is mounted.
|
|
1104
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
1105
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
1106
|
-
* @protected
|
|
1107
|
-
* @final
|
|
1108
|
-
*/
|
|
1109
|
-
isMounted: function(e) {
|
|
1110
|
-
return !1;
|
|
1111
|
-
},
|
|
1112
|
-
/**
|
|
1113
|
-
* Forces an update. This should only be invoked when it is known with
|
|
1114
|
-
* certainty that we are **not** in a DOM transaction.
|
|
1115
|
-
*
|
|
1116
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
1117
|
-
* component's state has changed but `setState` was not called.
|
|
1118
|
-
*
|
|
1119
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
1120
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
1121
|
-
*
|
|
1122
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1123
|
-
* @param {?function} callback Called after component is updated.
|
|
1124
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
1125
|
-
* @internal
|
|
1126
|
-
*/
|
|
1127
|
-
enqueueForceUpdate: function(e, r, i) {
|
|
1128
|
-
o(e, "forceUpdate");
|
|
1129
|
-
},
|
|
1130
|
-
/**
|
|
1131
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
1132
|
-
* You should treat `this.state` as immutable.
|
|
1133
|
-
*
|
|
1134
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
1135
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
1136
|
-
*
|
|
1137
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1138
|
-
* @param {object} completeState Next state.
|
|
1139
|
-
* @param {?function} callback Called after component is updated.
|
|
1140
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
1141
|
-
* @internal
|
|
1142
|
-
*/
|
|
1143
|
-
enqueueReplaceState: function(e, r, i, a) {
|
|
1144
|
-
o(e, "replaceState");
|
|
1145
|
-
},
|
|
1146
|
-
/**
|
|
1147
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
1148
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
1149
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
1150
|
-
* during the merge.
|
|
1151
|
-
*
|
|
1152
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1153
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
1154
|
-
* @param {?function} callback Called after component is updated.
|
|
1155
|
-
* @param {?string} Name of the calling function in the public API.
|
|
1156
|
-
* @internal
|
|
1157
|
-
*/
|
|
1158
|
-
enqueueSetState: function(e, r, i, a) {
|
|
1159
|
-
o(e, "setState");
|
|
1160
|
-
}
|
|
1161
|
-
}, v = Object.assign, E = {};
|
|
1162
|
-
Object.freeze(E);
|
|
1163
|
-
function _(e, r, i) {
|
|
1164
|
-
this.props = e, this.context = r, this.refs = E, this.updater = i || f;
|
|
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
|
+
});
|
|
1165
1202
|
}
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1169
|
-
this.updater.enqueueSetState(this, e, r, "setState");
|
|
1170
|
-
}, _.prototype.forceUpdate = function(e) {
|
|
1171
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1172
|
-
};
|
|
1173
|
-
{
|
|
1174
|
-
var C = {
|
|
1175
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1176
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1177
|
-
}, k = function(e, r) {
|
|
1178
|
-
Object.defineProperty(_.prototype, e, {
|
|
1179
|
-
get: function() {
|
|
1180
|
-
Q("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
|
|
1181
|
-
}
|
|
1182
|
-
});
|
|
1183
|
-
};
|
|
1184
|
-
for (var R in C)
|
|
1185
|
-
C.hasOwnProperty(R) && k(R, C[R]);
|
|
1203
|
+
function f(e) {
|
|
1204
|
+
return e === null || typeof e != "object" ? null : (e = He && e[He] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1186
1205
|
}
|
|
1187
|
-
function
|
|
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);
|
|
1188
1214
|
}
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
this.props = e, this.context = r, this.refs = E, this.updater = i || f;
|
|
1215
|
+
function v(e, n, u) {
|
|
1216
|
+
this.props = e, this.context = n, this.refs = h, this.updater = u || o;
|
|
1192
1217
|
}
|
|
1193
|
-
|
|
1194
|
-
Ue.constructor = $, v(Ue, _.prototype), Ue.isPureReactComponent = !0;
|
|
1195
|
-
function Ht() {
|
|
1196
|
-
var e = {
|
|
1197
|
-
current: null
|
|
1198
|
-
};
|
|
1199
|
-
return Object.seal(e), e;
|
|
1218
|
+
function S() {
|
|
1200
1219
|
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
return Bt(e);
|
|
1220
|
+
function M(e, n, u) {
|
|
1221
|
+
this.props = e, this.context = n, this.refs = h, this.updater = u || o;
|
|
1204
1222
|
}
|
|
1205
|
-
function
|
|
1206
|
-
|
|
1207
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1208
|
-
return i;
|
|
1209
|
-
}
|
|
1223
|
+
function I(e) {
|
|
1224
|
+
return "" + e;
|
|
1210
1225
|
}
|
|
1211
|
-
function
|
|
1226
|
+
function B(e) {
|
|
1212
1227
|
try {
|
|
1213
|
-
|
|
1228
|
+
I(e);
|
|
1229
|
+
var n = !1;
|
|
1214
1230
|
} catch {
|
|
1215
|
-
|
|
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);
|
|
1216
1241
|
}
|
|
1217
1242
|
}
|
|
1218
|
-
function
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
if (
|
|
1223
|
-
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);
|
|
1224
|
-
}
|
|
1225
|
-
function Kt(e, r, i) {
|
|
1226
|
-
var a = e.displayName;
|
|
1227
|
-
if (a)
|
|
1228
|
-
return a;
|
|
1229
|
-
var u = r.displayName || r.name || "";
|
|
1230
|
-
return u !== "" ? i + "(" + u + ")" : i;
|
|
1231
|
-
}
|
|
1232
|
-
function rt(e) {
|
|
1233
|
-
return e.displayName || "Context";
|
|
1234
|
-
}
|
|
1235
|
-
function X(e) {
|
|
1236
|
-
if (e == null)
|
|
1237
|
-
return null;
|
|
1238
|
-
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")
|
|
1239
|
-
return e.displayName || e.name || null;
|
|
1240
|
-
if (typeof e == "string")
|
|
1241
|
-
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;
|
|
1242
1248
|
switch (e) {
|
|
1243
|
-
case
|
|
1249
|
+
case D:
|
|
1244
1250
|
return "Fragment";
|
|
1245
|
-
case
|
|
1251
|
+
case W:
|
|
1246
1252
|
return "Portal";
|
|
1247
|
-
case
|
|
1253
|
+
case Me:
|
|
1248
1254
|
return "Profiler";
|
|
1249
|
-
case
|
|
1255
|
+
case ye:
|
|
1250
1256
|
return "StrictMode";
|
|
1251
|
-
case
|
|
1257
|
+
case _e:
|
|
1252
1258
|
return "Suspense";
|
|
1253
|
-
case
|
|
1259
|
+
case Se:
|
|
1254
1260
|
return "SuspenseList";
|
|
1255
1261
|
}
|
|
1256
1262
|
if (typeof e == "object")
|
|
1257
|
-
switch (
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
return
|
|
1264
|
-
case
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
return
|
|
1269
|
-
case
|
|
1270
|
-
|
|
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;
|
|
1271
1277
|
try {
|
|
1272
|
-
return
|
|
1278
|
+
return q(e(n));
|
|
1273
1279
|
} catch {
|
|
1274
|
-
return null;
|
|
1275
1280
|
}
|
|
1276
|
-
}
|
|
1277
1281
|
}
|
|
1278
1282
|
return null;
|
|
1279
1283
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
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
|
+
});
|
|
1292
1307
|
}
|
|
1293
|
-
|
|
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
|
+
);
|
|
1294
1326
|
}
|
|
1295
|
-
function
|
|
1296
|
-
if (
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
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;
|
|
1300
1433
|
}
|
|
1301
|
-
return e.
|
|
1434
|
+
return $ = ($ = e ? e.displayName || e.name : "") ? te($) : "", typeof e == "function" && tt.set(e, $), $;
|
|
1302
1435
|
}
|
|
1303
|
-
function
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
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
|
+
);
|
|
1444
|
+
}
|
|
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 "";
|
|
1311
1466
|
}
|
|
1312
|
-
function
|
|
1313
|
-
var
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1467
|
+
function re() {
|
|
1468
|
+
var e = _.A;
|
|
1469
|
+
return e === null ? null : e.getOwner();
|
|
1470
|
+
}
|
|
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;
|
|
1475
|
+
}
|
|
1476
|
+
return e.key !== void 0;
|
|
1477
|
+
}
|
|
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,
|
|
1318
1487
|
configurable: !0
|
|
1319
1488
|
});
|
|
1320
1489
|
}
|
|
1321
|
-
function
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
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;
|
|
1326
1495
|
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
$$typeof: c,
|
|
1331
|
-
// 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,
|
|
1332
1499
|
type: e,
|
|
1333
|
-
key:
|
|
1334
|
-
|
|
1335
|
-
props: d,
|
|
1336
|
-
// Record the component responsible for creating this element.
|
|
1500
|
+
key: n,
|
|
1501
|
+
props: g,
|
|
1337
1502
|
_owner: p
|
|
1338
|
-
}
|
|
1339
|
-
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
1340
|
-
configurable: !1,
|
|
1503
|
+
}, (u !== void 0 ? u : null) !== null ? Object.defineProperty(e, "ref", {
|
|
1341
1504
|
enumerable: !1,
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
}), Object.defineProperty(m, "_self", {
|
|
1505
|
+
get: k
|
|
1506
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
1345
1507
|
configurable: !1,
|
|
1346
1508
|
enumerable: !1,
|
|
1347
|
-
writable: !
|
|
1348
|
-
value:
|
|
1349
|
-
}), Object.defineProperty(
|
|
1509
|
+
writable: !0,
|
|
1510
|
+
value: 0
|
|
1511
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
1350
1512
|
configurable: !1,
|
|
1351
1513
|
enumerable: !1,
|
|
1352
|
-
writable: !
|
|
1353
|
-
value:
|
|
1354
|
-
}), Object.freeze && (Object.freeze(
|
|
1355
|
-
}
|
|
1356
|
-
function
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
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);
|
|
1379
1540
|
}
|
|
1380
|
-
return We(e, p, d, m, b, L.current, u);
|
|
1381
1541
|
}
|
|
1382
|
-
function
|
|
1383
|
-
|
|
1384
|
-
return i;
|
|
1542
|
+
function L(e) {
|
|
1543
|
+
return typeof e == "object" && e !== null && e.$$typeof === b;
|
|
1385
1544
|
}
|
|
1386
|
-
function
|
|
1387
|
-
if (e == null)
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
else if (O > 1) {
|
|
1401
|
-
for (var T = Array(O), j = 0; j < O; j++)
|
|
1402
|
-
T[j] = arguments[j + 2];
|
|
1403
|
-
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;
|
|
1404
1559
|
}
|
|
1405
|
-
return We(e.type, p, d, m, b, w, u);
|
|
1406
1560
|
}
|
|
1407
|
-
function
|
|
1408
|
-
|
|
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;
|
|
1409
1568
|
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
":": "=2"
|
|
1415
|
-
}, a = e.replace(r, function(u) {
|
|
1416
|
-
return i[u];
|
|
1569
|
+
function ce(e) {
|
|
1570
|
+
var n = { "=": "=0", ":": "=2" };
|
|
1571
|
+
return "$" + e.replace(/[=:]/g, function(u) {
|
|
1572
|
+
return n[u];
|
|
1417
1573
|
});
|
|
1418
|
-
return "$" + a;
|
|
1419
|
-
}
|
|
1420
|
-
var ct = !1, nr = /\/+/g;
|
|
1421
|
-
function lt(e) {
|
|
1422
|
-
return e.replace(nr, "$&/");
|
|
1423
1574
|
}
|
|
1424
|
-
function
|
|
1425
|
-
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;
|
|
1426
1602
|
}
|
|
1427
|
-
function
|
|
1428
|
-
var
|
|
1429
|
-
(
|
|
1430
|
-
var
|
|
1431
|
-
if (e === null)
|
|
1432
|
-
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;
|
|
1433
1608
|
else
|
|
1434
|
-
switch (
|
|
1609
|
+
switch (g) {
|
|
1610
|
+
case "bigint":
|
|
1435
1611
|
case "string":
|
|
1436
1612
|
case "number":
|
|
1437
|
-
|
|
1613
|
+
m = !0;
|
|
1438
1614
|
break;
|
|
1439
1615
|
case "object":
|
|
1440
1616
|
switch (e.$$typeof) {
|
|
1441
|
-
case
|
|
1442
|
-
case
|
|
1443
|
-
|
|
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
|
+
);
|
|
1444
1629
|
}
|
|
1445
1630
|
}
|
|
1446
|
-
if (
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1459
|
-
(b.key && (!m || m.key !== b.key) ? (
|
|
1460
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1461
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1462
|
-
lt("" + b.key) + "/"
|
|
1463
|
-
) : "") + w
|
|
1464
|
-
)), r.push(b));
|
|
1465
|
-
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;
|
|
1466
1643
|
}
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
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
|
+
);
|
|
1482
1676
|
}
|
|
1483
|
-
return
|
|
1484
|
-
}
|
|
1485
|
-
function
|
|
1486
|
-
if (e == null)
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
}
|
|
1499
|
-
function ir(e, r, i) {
|
|
1500
|
-
Te(e, function() {
|
|
1501
|
-
r.apply(this, arguments);
|
|
1502
|
-
}, i);
|
|
1503
|
-
}
|
|
1504
|
-
function sr(e) {
|
|
1505
|
-
return Te(e, function(r) {
|
|
1506
|
-
return r;
|
|
1507
|
-
}) || [];
|
|
1508
|
-
}
|
|
1509
|
-
function ar(e) {
|
|
1510
|
-
if (!ae(e))
|
|
1511
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1512
|
-
return e;
|
|
1513
|
-
}
|
|
1514
|
-
function ur(e) {
|
|
1515
|
-
var r = {
|
|
1516
|
-
$$typeof: B,
|
|
1517
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1518
|
-
// some renderers as primary and others as secondary. We only expect
|
|
1519
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1520
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1521
|
-
// Secondary renderers store their context values on separate fields.
|
|
1522
|
-
_currentValue: e,
|
|
1523
|
-
_currentValue2: e,
|
|
1524
|
-
// Used to track how many concurrent renderers this context currently
|
|
1525
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
1526
|
-
_threadCount: 0,
|
|
1527
|
-
// These are circular
|
|
1528
|
-
Provider: null,
|
|
1529
|
-
Consumer: null,
|
|
1530
|
-
// Add these to use same hidden class in VM as ServerContext
|
|
1531
|
-
_defaultValue: null,
|
|
1532
|
-
_globalName: null
|
|
1533
|
-
};
|
|
1534
|
-
r.Provider = {
|
|
1535
|
-
$$typeof: V,
|
|
1536
|
-
_context: r
|
|
1537
|
-
};
|
|
1538
|
-
var i = !1, a = !1, u = !1;
|
|
1539
|
-
{
|
|
1540
|
-
var p = {
|
|
1541
|
-
$$typeof: B,
|
|
1542
|
-
_context: r
|
|
1543
|
-
};
|
|
1544
|
-
Object.defineProperties(p, {
|
|
1545
|
-
Provider: {
|
|
1546
|
-
get: function() {
|
|
1547
|
-
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;
|
|
1548
|
-
},
|
|
1549
|
-
set: function(d) {
|
|
1550
|
-
r.Provider = d;
|
|
1551
|
-
}
|
|
1552
|
-
},
|
|
1553
|
-
_currentValue: {
|
|
1554
|
-
get: function() {
|
|
1555
|
-
return r._currentValue;
|
|
1556
|
-
},
|
|
1557
|
-
set: function(d) {
|
|
1558
|
-
r._currentValue = d;
|
|
1559
|
-
}
|
|
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);
|
|
1560
1692
|
},
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
return r._currentValue2;
|
|
1564
|
-
},
|
|
1565
|
-
set: function(d) {
|
|
1566
|
-
r._currentValue2 = d;
|
|
1567
|
-
}
|
|
1568
|
-
},
|
|
1569
|
-
_threadCount: {
|
|
1570
|
-
get: function() {
|
|
1571
|
-
return r._threadCount;
|
|
1572
|
-
},
|
|
1573
|
-
set: function(d) {
|
|
1574
|
-
r._threadCount = d;
|
|
1575
|
-
}
|
|
1576
|
-
},
|
|
1577
|
-
Consumer: {
|
|
1578
|
-
get: function() {
|
|
1579
|
-
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;
|
|
1580
|
-
}
|
|
1581
|
-
},
|
|
1582
|
-
displayName: {
|
|
1583
|
-
get: function() {
|
|
1584
|
-
return r.displayName;
|
|
1585
|
-
},
|
|
1586
|
-
set: function(d) {
|
|
1587
|
-
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);
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
}), r.Consumer = p;
|
|
1591
|
-
}
|
|
1592
|
-
return r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
1593
|
-
}
|
|
1594
|
-
var ve = -1, He = 0, ft = 1, cr = 2;
|
|
1595
|
-
function lr(e) {
|
|
1596
|
-
if (e._status === ve) {
|
|
1597
|
-
var r = e._result, i = r();
|
|
1598
|
-
if (i.then(function(p) {
|
|
1599
|
-
if (e._status === He || e._status === ve) {
|
|
1600
|
-
var d = e;
|
|
1601
|
-
d._status = ft, d._result = p;
|
|
1602
|
-
}
|
|
1603
|
-
}, function(p) {
|
|
1604
|
-
if (e._status === He || e._status === ve) {
|
|
1605
|
-
var d = e;
|
|
1606
|
-
d._status = cr, d._result = p;
|
|
1693
|
+
function(u) {
|
|
1694
|
+
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = u);
|
|
1607
1695
|
}
|
|
1608
|
-
|
|
1609
|
-
var a = e;
|
|
1610
|
-
a._status = He, a._result = i;
|
|
1611
|
-
}
|
|
1696
|
+
), e._status === -1 && (e._status = 0, e._result = n);
|
|
1612
1697
|
}
|
|
1613
|
-
if (e._status ===
|
|
1614
|
-
|
|
1615
|
-
|
|
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
|
|
1616
1701
|
|
|
1617
1702
|
Your code should look like:
|
|
1618
1703
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
1619
1704
|
|
|
1620
|
-
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
|
|
1621
1709
|
|
|
1622
1710
|
Your code should look like:
|
|
1623
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
}, i = {
|
|
1633
|
-
$$typeof: q,
|
|
1634
|
-
_payload: r,
|
|
1635
|
-
_init: lr
|
|
1636
|
-
};
|
|
1637
|
-
{
|
|
1638
|
-
var a, u;
|
|
1639
|
-
Object.defineProperties(i, {
|
|
1640
|
-
defaultProps: {
|
|
1641
|
-
configurable: !0,
|
|
1642
|
-
get: function() {
|
|
1643
|
-
return a;
|
|
1644
|
-
},
|
|
1645
|
-
set: function(p) {
|
|
1646
|
-
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", {
|
|
1647
|
-
enumerable: !0
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
},
|
|
1651
|
-
propTypes: {
|
|
1652
|
-
configurable: !0,
|
|
1653
|
-
get: function() {
|
|
1654
|
-
return u;
|
|
1655
|
-
},
|
|
1656
|
-
set: function(p) {
|
|
1657
|
-
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", {
|
|
1658
|
-
enumerable: !0
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
return i;
|
|
1665
|
-
}
|
|
1666
|
-
function dr(e) {
|
|
1667
|
-
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?");
|
|
1668
|
-
var r = {
|
|
1669
|
-
$$typeof: z,
|
|
1670
|
-
render: e
|
|
1671
|
-
};
|
|
1672
|
-
{
|
|
1673
|
-
var i;
|
|
1674
|
-
Object.defineProperty(r, "displayName", {
|
|
1675
|
-
enumerable: !1,
|
|
1676
|
-
configurable: !0,
|
|
1677
|
-
get: function() {
|
|
1678
|
-
return i;
|
|
1679
|
-
},
|
|
1680
|
-
set: function(a) {
|
|
1681
|
-
i = a, !e.name && !e.displayName && (e.displayName = a);
|
|
1682
|
-
}
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
return r;
|
|
1686
|
-
}
|
|
1687
|
-
var dt;
|
|
1688
|
-
dt = Symbol.for("react.module.reference");
|
|
1689
|
-
function pt(e) {
|
|
1690
|
-
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
|
|
1691
|
-
// types supported by any Flight configuration anywhere since
|
|
1692
|
-
// we don't know which Flight build this will end up being used
|
|
1693
|
-
// with.
|
|
1694
|
-
e.$$typeof === dt || e.getModuleId !== void 0));
|
|
1695
|
-
}
|
|
1696
|
-
function pr(e, r) {
|
|
1697
|
-
pt(e) || h("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
1698
|
-
var i = {
|
|
1699
|
-
$$typeof: U,
|
|
1700
|
-
type: e,
|
|
1701
|
-
compare: r === void 0 ? null : r
|
|
1702
|
-
};
|
|
1703
|
-
{
|
|
1704
|
-
var a;
|
|
1705
|
-
Object.defineProperty(i, "displayName", {
|
|
1706
|
-
enumerable: !1,
|
|
1707
|
-
configurable: !0,
|
|
1708
|
-
get: function() {
|
|
1709
|
-
return a;
|
|
1710
|
-
},
|
|
1711
|
-
set: function(u) {
|
|
1712
|
-
a = u, !e.name && !e.displayName && (e.displayName = u);
|
|
1713
|
-
}
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
return i;
|
|
1717
|
-
}
|
|
1718
|
-
function M() {
|
|
1719
|
-
var e = ie.current;
|
|
1720
|
-
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:
|
|
1721
1720
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
1722
1721
|
2. You might be breaking the Rules of Hooks
|
|
1723
1722
|
3. You might have more than one copy of React in the same app
|
|
1724
|
-
See https://
|
|
1725
|
-
|
|
1726
|
-
function hr(e) {
|
|
1727
|
-
var r = M();
|
|
1728
|
-
if (e._context !== void 0) {
|
|
1729
|
-
var i = e._context;
|
|
1730
|
-
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?");
|
|
1731
|
-
}
|
|
1732
|
-
return r.useContext(e);
|
|
1733
|
-
}
|
|
1734
|
-
function mr(e) {
|
|
1735
|
-
var r = M();
|
|
1736
|
-
return r.useState(e);
|
|
1737
|
-
}
|
|
1738
|
-
function yr(e, r, i) {
|
|
1739
|
-
var a = M();
|
|
1740
|
-
return a.useReducer(e, r, i);
|
|
1741
|
-
}
|
|
1742
|
-
function vr(e) {
|
|
1743
|
-
var r = M();
|
|
1744
|
-
return r.useRef(e);
|
|
1745
|
-
}
|
|
1746
|
-
function gr(e, r) {
|
|
1747
|
-
var i = M();
|
|
1748
|
-
return i.useEffect(e, r);
|
|
1749
|
-
}
|
|
1750
|
-
function _r(e, r) {
|
|
1751
|
-
var i = M();
|
|
1752
|
-
return i.useInsertionEffect(e, r);
|
|
1753
|
-
}
|
|
1754
|
-
function br(e, r) {
|
|
1755
|
-
var i = M();
|
|
1756
|
-
return i.useLayoutEffect(e, r);
|
|
1757
|
-
}
|
|
1758
|
-
function Er(e, r) {
|
|
1759
|
-
var i = M();
|
|
1760
|
-
return i.useCallback(e, r);
|
|
1761
|
-
}
|
|
1762
|
-
function wr(e, r) {
|
|
1763
|
-
var i = M();
|
|
1764
|
-
return i.useMemo(e, r);
|
|
1765
|
-
}
|
|
1766
|
-
function Cr(e, r, i) {
|
|
1767
|
-
var a = M();
|
|
1768
|
-
return a.useImperativeHandle(e, r, i);
|
|
1769
|
-
}
|
|
1770
|
-
function Rr(e, r) {
|
|
1771
|
-
{
|
|
1772
|
-
var i = M();
|
|
1773
|
-
return i.useDebugValue(e, r);
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
|
-
function Pr() {
|
|
1777
|
-
var e = M();
|
|
1778
|
-
return e.useTransition();
|
|
1779
|
-
}
|
|
1780
|
-
function Sr(e) {
|
|
1781
|
-
var r = M();
|
|
1782
|
-
return r.useDeferredValue(e);
|
|
1783
|
-
}
|
|
1784
|
-
function Or() {
|
|
1785
|
-
var e = M();
|
|
1786
|
-
return e.useId();
|
|
1787
|
-
}
|
|
1788
|
-
function Dr(e, r, i) {
|
|
1789
|
-
var a = M();
|
|
1790
|
-
return a.useSyncExternalStore(e, r, i);
|
|
1791
|
-
}
|
|
1792
|
-
var ge = 0, ht, mt, yt, vt, gt, _t, bt;
|
|
1793
|
-
function Et() {
|
|
1723
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
1724
|
+
), e;
|
|
1794
1725
|
}
|
|
1795
|
-
|
|
1796
|
-
function Tr() {
|
|
1797
|
-
{
|
|
1798
|
-
if (ge === 0) {
|
|
1799
|
-
ht = console.log, mt = console.info, yt = console.warn, vt = console.error, gt = console.group, _t = console.groupCollapsed, bt = console.groupEnd;
|
|
1800
|
-
var e = {
|
|
1801
|
-
configurable: !0,
|
|
1802
|
-
enumerable: !0,
|
|
1803
|
-
value: Et,
|
|
1804
|
-
writable: !0
|
|
1805
|
-
};
|
|
1806
|
-
Object.defineProperties(console, {
|
|
1807
|
-
info: e,
|
|
1808
|
-
log: e,
|
|
1809
|
-
warn: e,
|
|
1810
|
-
error: e,
|
|
1811
|
-
group: e,
|
|
1812
|
-
groupCollapsed: e,
|
|
1813
|
-
groupEnd: e
|
|
1814
|
-
});
|
|
1815
|
-
}
|
|
1816
|
-
ge++;
|
|
1817
|
-
}
|
|
1726
|
+
function s() {
|
|
1818
1727
|
}
|
|
1819
|
-
function
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
var
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
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);
|
|
1826
1743
|
};
|
|
1827
|
-
Object.defineProperties(console, {
|
|
1828
|
-
log: v({}, e, {
|
|
1829
|
-
value: ht
|
|
1830
|
-
}),
|
|
1831
|
-
info: v({}, e, {
|
|
1832
|
-
value: mt
|
|
1833
|
-
}),
|
|
1834
|
-
warn: v({}, e, {
|
|
1835
|
-
value: yt
|
|
1836
|
-
}),
|
|
1837
|
-
error: v({}, e, {
|
|
1838
|
-
value: vt
|
|
1839
|
-
}),
|
|
1840
|
-
group: v({}, e, {
|
|
1841
|
-
value: gt
|
|
1842
|
-
}),
|
|
1843
|
-
groupCollapsed: v({}, e, {
|
|
1844
|
-
value: _t
|
|
1845
|
-
}),
|
|
1846
|
-
groupEnd: v({}, e, {
|
|
1847
|
-
value: bt
|
|
1848
|
-
})
|
|
1849
|
-
});
|
|
1850
1744
|
}
|
|
1851
|
-
|
|
1852
|
-
}
|
|
1745
|
+
return Ve(e);
|
|
1853
1746
|
}
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
{
|
|
1857
|
-
if (ze === void 0)
|
|
1858
|
-
try {
|
|
1859
|
-
throw Error();
|
|
1860
|
-
} catch (u) {
|
|
1861
|
-
var a = u.stack.trim().match(/\n( *(at )?)/);
|
|
1862
|
-
ze = a && a[1] || "";
|
|
1863
|
-
}
|
|
1864
|
-
return `
|
|
1865
|
-
` + ze + e;
|
|
1866
|
-
}
|
|
1747
|
+
function E(e) {
|
|
1748
|
+
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
1867
1749
|
}
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
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;
|
|
1872
1754
|
}
|
|
1873
|
-
function
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
var i = je.get(e);
|
|
1878
|
-
if (i !== void 0)
|
|
1879
|
-
return i;
|
|
1880
|
-
}
|
|
1881
|
-
var a;
|
|
1882
|
-
qe = !0;
|
|
1883
|
-
var u = Error.prepareStackTrace;
|
|
1884
|
-
Error.prepareStackTrace = void 0;
|
|
1885
|
-
var p;
|
|
1886
|
-
p = Be.current, Be.current = null, Tr();
|
|
1887
|
-
try {
|
|
1888
|
-
if (r) {
|
|
1889
|
-
var d = function() {
|
|
1890
|
-
throw Error();
|
|
1891
|
-
};
|
|
1892
|
-
if (Object.defineProperty(d.prototype, "props", {
|
|
1893
|
-
set: function() {
|
|
1894
|
-
throw Error();
|
|
1895
|
-
}
|
|
1896
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1897
|
-
try {
|
|
1898
|
-
Reflect.construct(d, []);
|
|
1899
|
-
} catch (I) {
|
|
1900
|
-
a = I;
|
|
1901
|
-
}
|
|
1902
|
-
Reflect.construct(e, [], d);
|
|
1903
|
-
} else {
|
|
1904
|
-
try {
|
|
1905
|
-
d.call();
|
|
1906
|
-
} catch (I) {
|
|
1907
|
-
a = I;
|
|
1908
|
-
}
|
|
1909
|
-
e.call(d.prototype);
|
|
1910
|
-
}
|
|
1911
|
-
} else {
|
|
1755
|
+
function w(e, n, u) {
|
|
1756
|
+
var l = _.actQueue;
|
|
1757
|
+
if (l !== null)
|
|
1758
|
+
if (l.length !== 0)
|
|
1912
1759
|
try {
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1760
|
+
A(l), a(function() {
|
|
1761
|
+
return w(e, n, u);
|
|
1762
|
+
});
|
|
1763
|
+
return;
|
|
1764
|
+
} catch (p) {
|
|
1765
|
+
_.thrownErrors.push(p);
|
|
1916
1766
|
}
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
} catch (I) {
|
|
1920
|
-
if (I && a && typeof I.stack == "string") {
|
|
1921
|
-
for (var m = I.stack.split(`
|
|
1922
|
-
`), b = a.stack.split(`
|
|
1923
|
-
`), w = m.length - 1, S = b.length - 1; w >= 1 && S >= 0 && m[w] !== b[S]; )
|
|
1924
|
-
S--;
|
|
1925
|
-
for (; w >= 1 && S >= 0; w--, S--)
|
|
1926
|
-
if (m[w] !== b[S]) {
|
|
1927
|
-
if (w !== 1 || S !== 1)
|
|
1928
|
-
do
|
|
1929
|
-
if (w--, S--, S < 0 || m[w] !== b[S]) {
|
|
1930
|
-
var O = `
|
|
1931
|
-
` + m[w].replace(" at new ", " at ");
|
|
1932
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && je.set(e, O), O;
|
|
1933
|
-
}
|
|
1934
|
-
while (w >= 1 && S >= 0);
|
|
1935
|
-
break;
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
} finally {
|
|
1939
|
-
qe = !1, Be.current = p, kr(), Error.prepareStackTrace = u;
|
|
1940
|
-
}
|
|
1941
|
-
var T = e ? e.displayName || e.name : "", j = T ? ke(T) : "";
|
|
1942
|
-
return typeof e == "function" && je.set(e, j), j;
|
|
1767
|
+
else _.actQueue = null;
|
|
1768
|
+
0 < _.thrownErrors.length ? (l = E(_.thrownErrors), _.thrownErrors.length = 0, u(l)) : n(e);
|
|
1943
1769
|
}
|
|
1944
|
-
function
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
return ke("SuspenseList");
|
|
1963
|
-
}
|
|
1964
|
-
if (typeof e == "object")
|
|
1965
|
-
switch (e.$$typeof) {
|
|
1966
|
-
case z:
|
|
1967
|
-
return Ar(e.render);
|
|
1968
|
-
case U:
|
|
1969
|
-
return Ae(e.type, r, i);
|
|
1970
|
-
case q: {
|
|
1971
|
-
var a = e, u = a._payload, p = a._init;
|
|
1972
|
-
try {
|
|
1973
|
-
return Ae(p(u), r, i);
|
|
1974
|
-
} catch {
|
|
1975
|
-
}
|
|
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);
|
|
1976
1788
|
}
|
|
1789
|
+
e.length = 0;
|
|
1790
|
+
} catch (p) {
|
|
1791
|
+
e.splice(0, n + 1), _.thrownErrors.push(p);
|
|
1792
|
+
} finally {
|
|
1793
|
+
rt = !1;
|
|
1977
1794
|
}
|
|
1978
|
-
return "";
|
|
1979
|
-
}
|
|
1980
|
-
var Ct = {}, Rt = Y.ReactDebugCurrentFrame;
|
|
1981
|
-
function Ie(e) {
|
|
1982
|
-
if (e) {
|
|
1983
|
-
var r = e._owner, i = Ae(e.type, e._source, r ? r.type : null);
|
|
1984
|
-
Rt.setExtraStackFrame(i);
|
|
1985
|
-
} else
|
|
1986
|
-
Rt.setExtraStackFrame(null);
|
|
1987
|
-
}
|
|
1988
|
-
function Nr(e, r, i, a, u) {
|
|
1989
|
-
{
|
|
1990
|
-
var p = Function.call.bind(ye);
|
|
1991
|
-
for (var d in e)
|
|
1992
|
-
if (p(e, d)) {
|
|
1993
|
-
var m = void 0;
|
|
1994
|
-
try {
|
|
1995
|
-
if (typeof e[d] != "function") {
|
|
1996
|
-
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`.");
|
|
1997
|
-
throw b.name = "Invariant Violation", b;
|
|
1998
|
-
}
|
|
1999
|
-
m = e[d](r, d, a, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2000
|
-
} catch (w) {
|
|
2001
|
-
m = w;
|
|
2002
|
-
}
|
|
2003
|
-
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));
|
|
2004
|
-
}
|
|
2005
1795
|
}
|
|
2006
1796
|
}
|
|
2007
|
-
function
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
return `
|
|
2021
|
-
|
|
2022
|
-
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");
|
|
2023
1810
|
}
|
|
2024
|
-
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
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;
|
|
2032
1859
|
}
|
|
2033
|
-
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
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;
|
|
2046
1894
|
}
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
var
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
var a = "";
|
|
2056
|
-
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);
|
|
2057
|
-
}
|
|
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);
|
|
2058
1903
|
}
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
if (typeof
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
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
|
+
);
|
|
2066
1942
|
}
|
|
2067
|
-
|
|
2068
|
-
e._store && (e._store.validated = !0);
|
|
2069
|
-
else if (e) {
|
|
2070
|
-
var u = oe(e);
|
|
2071
|
-
if (typeof u == "function" && u !== e.entries)
|
|
2072
|
-
for (var p = u.call(e), d; !(d = p.next()).done; )
|
|
2073
|
-
ae(d.value) && Ot(d.value, r);
|
|
2074
|
-
}
|
|
1943
|
+
};
|
|
2075
1944
|
}
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
var a = X(r);
|
|
2093
|
-
Nr(i, e.props, "prop", a, e);
|
|
2094
|
-
} else if (r.PropTypes !== void 0 && !Ke) {
|
|
2095
|
-
Ke = !0;
|
|
2096
|
-
var u = X(r);
|
|
2097
|
-
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);
|
|
2098
1961
|
}
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
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;
|
|
2109
1982
|
}
|
|
1983
|
+
m = n.ref !== void 0;
|
|
2110
1984
|
}
|
|
2111
|
-
|
|
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]);
|
|
2112
1988
|
}
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
var
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
p ? u += p : u += Pt();
|
|
2121
|
-
var d;
|
|
2122
|
-
e === null ? d = "null" : Se(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;
|
|
2123
1996
|
}
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
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", {
|
|
2136
2063
|
enumerable: !1,
|
|
2064
|
+
configurable: !0,
|
|
2137
2065
|
get: function() {
|
|
2138
|
-
return
|
|
2139
|
-
|
|
2140
|
-
|
|
2066
|
+
return u;
|
|
2067
|
+
},
|
|
2068
|
+
set: function(l) {
|
|
2069
|
+
u = l, e.name || e.displayName || (Object.defineProperty(e, "name", { value: l }), e.displayName = l);
|
|
2141
2070
|
}
|
|
2142
|
-
}),
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
function
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
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();
|
|
2154
2101
|
try {
|
|
2155
|
-
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);
|
|
2156
2106
|
} finally {
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
}
|
|
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;
|
|
2161
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;
|
|
2162
2230
|
}
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
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."));
|
|
2172
|
-
var p = new MessageChannel();
|
|
2173
|
-
p.port1.onmessage = u, p.port2.postMessage(void 0);
|
|
2174
|
-
};
|
|
2175
|
-
}
|
|
2176
|
-
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);
|
|
2177
2239
|
}
|
|
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
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
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);
|
|
2216
2326
|
}
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
T(b);
|
|
2327
|
+
} else {
|
|
2328
|
+
try {
|
|
2329
|
+
throw Error();
|
|
2330
|
+
} catch (Q) {
|
|
2331
|
+
Pe = Q;
|
|
2223
2332
|
}
|
|
2224
|
-
|
|
2225
|
-
|
|
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];
|
|
2226
2339
|
}
|
|
2340
|
+
return [null, null];
|
|
2227
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
|
+
}
|
|
2228
2384
|
}
|
|
2385
|
+
} finally {
|
|
2386
|
+
_e = !1, j.H = O, v(), Error.prepareStackTrace = h;
|
|
2229
2387
|
}
|
|
2230
|
-
function
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
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;
|
|
2237
2414
|
try {
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
});
|
|
2241
|
-
} catch (u) {
|
|
2242
|
-
i(u);
|
|
2415
|
+
return I(o(d));
|
|
2416
|
+
} catch {
|
|
2243
2417
|
}
|
|
2244
|
-
else
|
|
2245
|
-
r(e);
|
|
2246
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;
|
|
2247
2429
|
}
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
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);
|
|
2265
2526
|
}
|
|
2266
|
-
|
|
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);
|
|
2267
2532
|
}
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
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;
|
|
2278
2574
|
}
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
const W = /* @__PURE__ */ yn(fe);
|
|
2282
|
-
class _n extends fe.Component {
|
|
2575
|
+
var X = Qt(), Le = Pt();
|
|
2576
|
+
class Xt extends Le.Component {
|
|
2283
2577
|
constructor(t) {
|
|
2284
2578
|
super(t), this.unfilteredDocuments = [], this.state = {
|
|
2285
2579
|
documents: [],
|
|
@@ -2289,10 +2583,10 @@ class _n extends fe.Component {
|
|
|
2289
2583
|
}
|
|
2290
2584
|
async componentDidMount() {
|
|
2291
2585
|
const { controller: t } = this.props;
|
|
2292
|
-
this.unsubscriber = t.onChange((
|
|
2293
|
-
|
|
2586
|
+
this.unsubscriber = t.onChange((i) => {
|
|
2587
|
+
i.documentCollection && (this.unfilteredDocuments = i.documentCollection, this.setState({
|
|
2294
2588
|
documents: t.filter(this.unfilteredDocuments)
|
|
2295
|
-
})),
|
|
2589
|
+
})), i.action === "filterChange" ? this.setState({
|
|
2296
2590
|
documents: t.filter(this.unfilteredDocuments)
|
|
2297
2591
|
}) : this.setState({});
|
|
2298
2592
|
}), this.unfilteredDocuments = await t.documentCollection(), this.setState({
|
|
@@ -2316,55 +2610,67 @@ class _n extends fe.Component {
|
|
|
2316
2610
|
});
|
|
2317
2611
|
}
|
|
2318
2612
|
async storeDocument(t) {
|
|
2319
|
-
const { controller:
|
|
2320
|
-
|
|
2613
|
+
const { controller: i, layout: f } = this.props;
|
|
2614
|
+
i.setDocument(t), await i.storeDocument(), f === "formAndItems" ? this.newDocument() : this.setState({
|
|
2321
2615
|
mode: 0
|
|
2322
2616
|
/* normal */
|
|
2323
2617
|
});
|
|
2324
2618
|
}
|
|
2325
2619
|
invokeContentViewChild(t) {
|
|
2326
|
-
const { children:
|
|
2327
|
-
if (!
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
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({
|
|
2334
2627
|
mode: 0
|
|
2335
2628
|
/* normal */
|
|
2336
2629
|
}) : () => this.newDocument()
|
|
2337
2630
|
};
|
|
2338
|
-
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 });
|
|
2339
2632
|
}
|
|
2340
2633
|
invokeDetailViewChild(t) {
|
|
2341
|
-
const { children:
|
|
2634
|
+
const { children: i, controller: f } = this.props, c = {
|
|
2342
2635
|
document: t,
|
|
2343
|
-
onSelect: (
|
|
2344
|
-
onDelete: (
|
|
2636
|
+
onSelect: (v) => this.editDocument(v),
|
|
2637
|
+
onDelete: (v) => f.setDocument(v).deleteDocument()
|
|
2345
2638
|
};
|
|
2346
|
-
return typeof
|
|
2639
|
+
return typeof i[1] == "function" ? Le.cloneElement(i[1](c), { key: t.id }) : Le.cloneElement(i[1], { key: t.id, ...c });
|
|
2347
2640
|
}
|
|
2348
2641
|
render() {
|
|
2349
|
-
var
|
|
2350
|
-
const { mode: t, documents:
|
|
2351
|
-
let
|
|
2352
|
-
const
|
|
2353
|
-
typeof
|
|
2354
|
-
const { addNewDocumentLabel: B, singularDocumentInCollectionCaption:
|
|
2355
|
-
return /* @__PURE__ */
|
|
2356
|
-
"div",
|
|
2357
|
-
{
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
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
|
+
] });
|
|
2364
2670
|
}
|
|
2365
2671
|
}
|
|
2366
2672
|
export {
|
|
2367
|
-
|
|
2368
|
-
|
|
2673
|
+
_t as CrudController,
|
|
2674
|
+
Xt as CrudPanel
|
|
2369
2675
|
};
|
|
2370
2676
|
//# sourceMappingURL=entropic-bond-crud-panel.js.map
|