@entropic-bond/crud-panel 4.3.1 → 4.4.0

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