@vxrn/vendor 1.1.145

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.
Files changed (71) hide show
  1. package/package.json +13 -0
  2. package/react/LICENSE +21 -0
  3. package/react/README.md +37 -0
  4. package/react/cjs/react-compiler-runtime.development.js +41 -0
  5. package/react/cjs/react-compiler-runtime.production.js +16 -0
  6. package/react/cjs/react-compiler-runtime.profiling.js +16 -0
  7. package/react/cjs/react-jsx-dev-runtime.development.js +677 -0
  8. package/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  9. package/react/cjs/react-jsx-dev-runtime.profiling.js +14 -0
  10. package/react/cjs/react-jsx-dev-runtime.react-server.development.js +687 -0
  11. package/react/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
  12. package/react/cjs/react-jsx-runtime.development.js +673 -0
  13. package/react/cjs/react-jsx-runtime.production.js +34 -0
  14. package/react/cjs/react-jsx-runtime.profiling.js +34 -0
  15. package/react/cjs/react-jsx-runtime.react-server.development.js +687 -0
  16. package/react/cjs/react-jsx-runtime.react-server.production.js +40 -0
  17. package/react/cjs/react.development.js +1547 -0
  18. package/react/cjs/react.production.js +539 -0
  19. package/react/cjs/react.react-server.development.js +1141 -0
  20. package/react/cjs/react.react-server.production.js +427 -0
  21. package/react/compiler-runtime.js +14 -0
  22. package/react/index.js +7 -0
  23. package/react/jsx-dev-runtime.js +7 -0
  24. package/react/jsx-dev-runtime.react-server.js +7 -0
  25. package/react/jsx-runtime.js +7 -0
  26. package/react/jsx-runtime.react-server.js +7 -0
  27. package/react/package.json +51 -0
  28. package/react/react.react-server.js +7 -0
  29. package/react-dom/LICENSE +21 -0
  30. package/react-dom/README.md +60 -0
  31. package/react-dom/cjs/react-dom-client.development.js +24359 -0
  32. package/react-dom/cjs/react-dom-client.production.js +14810 -0
  33. package/react-dom/cjs/react-dom-profiling.development.js +24746 -0
  34. package/react-dom/cjs/react-dom-profiling.profiling.js +15685 -0
  35. package/react-dom/cjs/react-dom-server-legacy.browser.development.js +8370 -0
  36. package/react-dom/cjs/react-dom-server-legacy.browser.production.js +5496 -0
  37. package/react-dom/cjs/react-dom-server-legacy.node.development.js +8370 -0
  38. package/react-dom/cjs/react-dom-server-legacy.node.production.js +5578 -0
  39. package/react-dom/cjs/react-dom-server.browser.development.js +8636 -0
  40. package/react-dom/cjs/react-dom-server.browser.production.js +5861 -0
  41. package/react-dom/cjs/react-dom-server.bun.development.js +8083 -0
  42. package/react-dom/cjs/react-dom-server.bun.production.js +5562 -0
  43. package/react-dom/cjs/react-dom-server.edge.development.js +8651 -0
  44. package/react-dom/cjs/react-dom-server.edge.production.js +5953 -0
  45. package/react-dom/cjs/react-dom-server.node.development.js +8479 -0
  46. package/react-dom/cjs/react-dom-server.node.production.js +5808 -0
  47. package/react-dom/cjs/react-dom-test-utils.development.js +43 -0
  48. package/react-dom/cjs/react-dom-test-utils.production.js +21 -0
  49. package/react-dom/cjs/react-dom.development.js +440 -0
  50. package/react-dom/cjs/react-dom.production.js +209 -0
  51. package/react-dom/cjs/react-dom.react-server.development.js +358 -0
  52. package/react-dom/cjs/react-dom.react-server.production.js +154 -0
  53. package/react-dom/client.js +38 -0
  54. package/react-dom/client.react-server.js +5 -0
  55. package/react-dom/index.js +38 -0
  56. package/react-dom/package.json +117 -0
  57. package/react-dom/profiling.js +38 -0
  58. package/react-dom/profiling.react-server.js +5 -0
  59. package/react-dom/react-dom.react-server.js +7 -0
  60. package/react-dom/server.browser.js +18 -0
  61. package/react-dom/server.bun.js +19 -0
  62. package/react-dom/server.edge.js +19 -0
  63. package/react-dom/server.js +3 -0
  64. package/react-dom/server.node.js +18 -0
  65. package/react-dom/server.react-server.js +5 -0
  66. package/react-dom/static.browser.js +11 -0
  67. package/react-dom/static.edge.js +11 -0
  68. package/react-dom/static.js +3 -0
  69. package/react-dom/static.node.js +11 -0
  70. package/react-dom/static.react-server.js +5 -0
  71. package/react-dom/test-utils.js +7 -0
@@ -0,0 +1,1547 @@
1
+ /**
2
+ * @license React
3
+ * react.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ "production" !== process.env.NODE_ENV &&
13
+ (function () {
14
+ function defineDeprecationWarning(methodName, info) {
15
+ Object.defineProperty(Component.prototype, methodName, {
16
+ get: function () {
17
+ warn(
18
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
19
+ info[0],
20
+ info[1]
21
+ );
22
+ }
23
+ });
24
+ }
25
+ function getIteratorFn(maybeIterable) {
26
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
27
+ return null;
28
+ maybeIterable =
29
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
30
+ maybeIterable["@@iterator"];
31
+ return "function" === typeof maybeIterable ? maybeIterable : null;
32
+ }
33
+ function warn(format) {
34
+ for (
35
+ var _len = arguments.length,
36
+ args = Array(1 < _len ? _len - 1 : 0),
37
+ _key = 1;
38
+ _key < _len;
39
+ _key++
40
+ )
41
+ args[_key - 1] = arguments[_key];
42
+ printWarning("warn", format, args, Error("react-stack-top-frame"));
43
+ }
44
+ function error$jscomp$0(format) {
45
+ for (
46
+ var _len2 = arguments.length,
47
+ args = Array(1 < _len2 ? _len2 - 1 : 0),
48
+ _key2 = 1;
49
+ _key2 < _len2;
50
+ _key2++
51
+ )
52
+ args[_key2 - 1] = arguments[_key2];
53
+ printWarning("error", format, args, Error("react-stack-top-frame"));
54
+ }
55
+ function printWarning(level, format, args, currentStack) {
56
+ ReactSharedInternals.getCurrentStack &&
57
+ ((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
58
+ "" !== currentStack &&
59
+ ((format += "%s"), (args = args.concat([currentStack]))));
60
+ args.unshift(format);
61
+ Function.prototype.apply.call(console[level], console, args);
62
+ }
63
+ function warnNoop(publicInstance, callerName) {
64
+ publicInstance =
65
+ ((publicInstance = publicInstance.constructor) &&
66
+ (publicInstance.displayName || publicInstance.name)) ||
67
+ "ReactClass";
68
+ var warningKey = publicInstance + "." + callerName;
69
+ didWarnStateUpdateForUnmountedComponent[warningKey] ||
70
+ (error$jscomp$0(
71
+ "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.",
72
+ callerName,
73
+ publicInstance
74
+ ),
75
+ (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));
76
+ }
77
+ function Component(props, context, updater) {
78
+ this.props = props;
79
+ this.context = context;
80
+ this.refs = emptyObject;
81
+ this.updater = updater || ReactNoopUpdateQueue;
82
+ }
83
+ function ComponentDummy() {}
84
+ function PureComponent(props, context, updater) {
85
+ this.props = props;
86
+ this.context = context;
87
+ this.refs = emptyObject;
88
+ this.updater = updater || ReactNoopUpdateQueue;
89
+ }
90
+ function testStringCoercion(value) {
91
+ return "" + value;
92
+ }
93
+ function checkKeyStringCoercion(value) {
94
+ try {
95
+ testStringCoercion(value);
96
+ var JSCompiler_inline_result = !1;
97
+ } catch (e) {
98
+ JSCompiler_inline_result = !0;
99
+ }
100
+ if (JSCompiler_inline_result)
101
+ return (
102
+ (JSCompiler_inline_result =
103
+ ("function" === typeof Symbol &&
104
+ Symbol.toStringTag &&
105
+ value[Symbol.toStringTag]) ||
106
+ value.constructor.name ||
107
+ "Object"),
108
+ error$jscomp$0(
109
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
+ JSCompiler_inline_result
111
+ ),
112
+ testStringCoercion(value)
113
+ );
114
+ }
115
+ function getComponentNameFromType(type) {
116
+ if (null == type) return null;
117
+ if ("function" === typeof type)
118
+ return type.$$typeof === REACT_CLIENT_REFERENCE$2
119
+ ? null
120
+ : type.displayName || type.name || null;
121
+ if ("string" === typeof type) return type;
122
+ switch (type) {
123
+ case REACT_FRAGMENT_TYPE:
124
+ return "Fragment";
125
+ case REACT_PORTAL_TYPE:
126
+ return "Portal";
127
+ case REACT_PROFILER_TYPE:
128
+ return "Profiler";
129
+ case REACT_STRICT_MODE_TYPE:
130
+ return "StrictMode";
131
+ case REACT_SUSPENSE_TYPE:
132
+ return "Suspense";
133
+ case REACT_SUSPENSE_LIST_TYPE:
134
+ return "SuspenseList";
135
+ }
136
+ if ("object" === typeof type)
137
+ switch (
138
+ ("number" === typeof type.tag &&
139
+ error$jscomp$0(
140
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
141
+ ),
142
+ type.$$typeof)
143
+ ) {
144
+ case REACT_CONTEXT_TYPE:
145
+ return (type.displayName || "Context") + ".Provider";
146
+ case REACT_CONSUMER_TYPE:
147
+ return (type._context.displayName || "Context") + ".Consumer";
148
+ case REACT_FORWARD_REF_TYPE:
149
+ var innerType = type.render;
150
+ type = type.displayName;
151
+ type ||
152
+ ((type = innerType.displayName || innerType.name || ""),
153
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
154
+ return type;
155
+ case REACT_MEMO_TYPE:
156
+ return (
157
+ (innerType = type.displayName || null),
158
+ null !== innerType
159
+ ? innerType
160
+ : getComponentNameFromType(type.type) || "Memo"
161
+ );
162
+ case REACT_LAZY_TYPE:
163
+ innerType = type._payload;
164
+ type = type._init;
165
+ try {
166
+ return getComponentNameFromType(type(innerType));
167
+ } catch (x) {}
168
+ }
169
+ return null;
170
+ }
171
+ function isValidElementType(type) {
172
+ return "string" === typeof type ||
173
+ "function" === typeof type ||
174
+ type === REACT_FRAGMENT_TYPE ||
175
+ type === REACT_PROFILER_TYPE ||
176
+ type === REACT_STRICT_MODE_TYPE ||
177
+ type === REACT_SUSPENSE_TYPE ||
178
+ type === REACT_SUSPENSE_LIST_TYPE ||
179
+ type === REACT_OFFSCREEN_TYPE ||
180
+ ("object" === typeof type &&
181
+ null !== type &&
182
+ (type.$$typeof === REACT_LAZY_TYPE ||
183
+ type.$$typeof === REACT_MEMO_TYPE ||
184
+ type.$$typeof === REACT_CONTEXT_TYPE ||
185
+ type.$$typeof === REACT_CONSUMER_TYPE ||
186
+ type.$$typeof === REACT_FORWARD_REF_TYPE ||
187
+ type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
188
+ void 0 !== type.getModuleId))
189
+ ? !0
190
+ : !1;
191
+ }
192
+ function disabledLog() {}
193
+ function disableLogs() {
194
+ if (0 === disabledDepth) {
195
+ prevLog = console.log;
196
+ prevInfo = console.info;
197
+ prevWarn = console.warn;
198
+ prevError = console.error;
199
+ prevGroup = console.group;
200
+ prevGroupCollapsed = console.groupCollapsed;
201
+ prevGroupEnd = console.groupEnd;
202
+ var props = {
203
+ configurable: !0,
204
+ enumerable: !0,
205
+ value: disabledLog,
206
+ writable: !0
207
+ };
208
+ Object.defineProperties(console, {
209
+ info: props,
210
+ log: props,
211
+ warn: props,
212
+ error: props,
213
+ group: props,
214
+ groupCollapsed: props,
215
+ groupEnd: props
216
+ });
217
+ }
218
+ disabledDepth++;
219
+ }
220
+ function reenableLogs() {
221
+ disabledDepth--;
222
+ if (0 === disabledDepth) {
223
+ var props = { configurable: !0, enumerable: !0, writable: !0 };
224
+ Object.defineProperties(console, {
225
+ log: assign({}, props, { value: prevLog }),
226
+ info: assign({}, props, { value: prevInfo }),
227
+ warn: assign({}, props, { value: prevWarn }),
228
+ error: assign({}, props, { value: prevError }),
229
+ group: assign({}, props, { value: prevGroup }),
230
+ groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
231
+ groupEnd: assign({}, props, { value: prevGroupEnd })
232
+ });
233
+ }
234
+ 0 > disabledDepth &&
235
+ error$jscomp$0(
236
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
237
+ );
238
+ }
239
+ function describeBuiltInComponentFrame(name) {
240
+ if (void 0 === prefix)
241
+ try {
242
+ throw Error();
243
+ } catch (x) {
244
+ var match = x.stack.trim().match(/\n( *(at )?)/);
245
+ prefix = (match && match[1]) || "";
246
+ }
247
+ return "\n" + prefix + name;
248
+ }
249
+ function describeNativeComponentFrame(fn, construct) {
250
+ if (!fn || reentry) return "";
251
+ var frame = componentFrameCache.get(fn);
252
+ if (void 0 !== frame) return frame;
253
+ reentry = !0;
254
+ frame = Error.prepareStackTrace;
255
+ Error.prepareStackTrace = void 0;
256
+ var previousDispatcher = null;
257
+ previousDispatcher = ReactSharedInternals.H;
258
+ ReactSharedInternals.H = null;
259
+ disableLogs();
260
+ var RunInRootFrame = {
261
+ DetermineComponentFrameRoot: function () {
262
+ try {
263
+ if (construct) {
264
+ var Fake = function () {
265
+ throw Error();
266
+ };
267
+ Object.defineProperty(Fake.prototype, "props", {
268
+ set: function () {
269
+ throw Error();
270
+ }
271
+ });
272
+ if ("object" === typeof Reflect && Reflect.construct) {
273
+ try {
274
+ Reflect.construct(Fake, []);
275
+ } catch (x) {
276
+ var control = x;
277
+ }
278
+ Reflect.construct(fn, [], Fake);
279
+ } else {
280
+ try {
281
+ Fake.call();
282
+ } catch (x$0) {
283
+ control = x$0;
284
+ }
285
+ fn.call(Fake.prototype);
286
+ }
287
+ } else {
288
+ try {
289
+ throw Error();
290
+ } catch (x$1) {
291
+ control = x$1;
292
+ }
293
+ (Fake = fn()) &&
294
+ "function" === typeof Fake.catch &&
295
+ Fake.catch(function () {});
296
+ }
297
+ } catch (sample) {
298
+ if (sample && control && "string" === typeof sample.stack)
299
+ return [sample.stack, control.stack];
300
+ }
301
+ return [null, null];
302
+ }
303
+ };
304
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
305
+ "DetermineComponentFrameRoot";
306
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
307
+ RunInRootFrame.DetermineComponentFrameRoot,
308
+ "name"
309
+ );
310
+ namePropDescriptor &&
311
+ namePropDescriptor.configurable &&
312
+ Object.defineProperty(
313
+ RunInRootFrame.DetermineComponentFrameRoot,
314
+ "name",
315
+ { value: "DetermineComponentFrameRoot" }
316
+ );
317
+ try {
318
+ var _RunInRootFrame$Deter =
319
+ RunInRootFrame.DetermineComponentFrameRoot(),
320
+ sampleStack = _RunInRootFrame$Deter[0],
321
+ controlStack = _RunInRootFrame$Deter[1];
322
+ if (sampleStack && controlStack) {
323
+ var sampleLines = sampleStack.split("\n"),
324
+ controlLines = controlStack.split("\n");
325
+ for (
326
+ sampleStack = _RunInRootFrame$Deter = 0;
327
+ _RunInRootFrame$Deter < sampleLines.length &&
328
+ !sampleLines[_RunInRootFrame$Deter].includes(
329
+ "DetermineComponentFrameRoot"
330
+ );
331
+
332
+ )
333
+ _RunInRootFrame$Deter++;
334
+ for (
335
+ ;
336
+ sampleStack < controlLines.length &&
337
+ !controlLines[sampleStack].includes("DetermineComponentFrameRoot");
338
+
339
+ )
340
+ sampleStack++;
341
+ if (
342
+ _RunInRootFrame$Deter === sampleLines.length ||
343
+ sampleStack === controlLines.length
344
+ )
345
+ for (
346
+ _RunInRootFrame$Deter = sampleLines.length - 1,
347
+ sampleStack = controlLines.length - 1;
348
+ 1 <= _RunInRootFrame$Deter &&
349
+ 0 <= sampleStack &&
350
+ sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack];
351
+
352
+ )
353
+ sampleStack--;
354
+ for (
355
+ ;
356
+ 1 <= _RunInRootFrame$Deter && 0 <= sampleStack;
357
+ _RunInRootFrame$Deter--, sampleStack--
358
+ )
359
+ if (
360
+ sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]
361
+ ) {
362
+ if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) {
363
+ do
364
+ if (
365
+ (_RunInRootFrame$Deter--,
366
+ sampleStack--,
367
+ 0 > sampleStack ||
368
+ sampleLines[_RunInRootFrame$Deter] !==
369
+ controlLines[sampleStack])
370
+ ) {
371
+ var _frame =
372
+ "\n" +
373
+ sampleLines[_RunInRootFrame$Deter].replace(
374
+ " at new ",
375
+ " at "
376
+ );
377
+ fn.displayName &&
378
+ _frame.includes("<anonymous>") &&
379
+ (_frame = _frame.replace("<anonymous>", fn.displayName));
380
+ "function" === typeof fn &&
381
+ componentFrameCache.set(fn, _frame);
382
+ return _frame;
383
+ }
384
+ while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack);
385
+ }
386
+ break;
387
+ }
388
+ }
389
+ } finally {
390
+ (reentry = !1),
391
+ (ReactSharedInternals.H = previousDispatcher),
392
+ reenableLogs(),
393
+ (Error.prepareStackTrace = frame);
394
+ }
395
+ sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
396
+ ? describeBuiltInComponentFrame(sampleLines)
397
+ : "";
398
+ "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
399
+ return sampleLines;
400
+ }
401
+ function describeUnknownElementTypeFrameInDEV(type) {
402
+ if (null == type) return "";
403
+ if ("function" === typeof type) {
404
+ var prototype = type.prototype;
405
+ return describeNativeComponentFrame(
406
+ type,
407
+ !(!prototype || !prototype.isReactComponent)
408
+ );
409
+ }
410
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
411
+ switch (type) {
412
+ case REACT_SUSPENSE_TYPE:
413
+ return describeBuiltInComponentFrame("Suspense");
414
+ case REACT_SUSPENSE_LIST_TYPE:
415
+ return describeBuiltInComponentFrame("SuspenseList");
416
+ }
417
+ if ("object" === typeof type)
418
+ switch (type.$$typeof) {
419
+ case REACT_FORWARD_REF_TYPE:
420
+ return (type = describeNativeComponentFrame(type.render, !1)), type;
421
+ case REACT_MEMO_TYPE:
422
+ return describeUnknownElementTypeFrameInDEV(type.type);
423
+ case REACT_LAZY_TYPE:
424
+ prototype = type._payload;
425
+ type = type._init;
426
+ try {
427
+ return describeUnknownElementTypeFrameInDEV(type(prototype));
428
+ } catch (x) {}
429
+ }
430
+ return "";
431
+ }
432
+ function getOwner() {
433
+ var dispatcher = ReactSharedInternals.A;
434
+ return null === dispatcher ? null : dispatcher.getOwner();
435
+ }
436
+ function hasValidRef(config) {
437
+ if (hasOwnProperty.call(config, "ref")) {
438
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
439
+ if (getter && getter.isReactWarning) return !1;
440
+ }
441
+ return void 0 !== config.ref;
442
+ }
443
+ function hasValidKey(config) {
444
+ if (hasOwnProperty.call(config, "key")) {
445
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
446
+ if (getter && getter.isReactWarning) return !1;
447
+ }
448
+ return void 0 !== config.key;
449
+ }
450
+ function defineKeyPropWarningGetter(props, displayName) {
451
+ function warnAboutAccessingKey() {
452
+ specialPropKeyWarningShown ||
453
+ ((specialPropKeyWarningShown = !0),
454
+ error$jscomp$0(
455
+ "%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)",
456
+ displayName
457
+ ));
458
+ }
459
+ warnAboutAccessingKey.isReactWarning = !0;
460
+ Object.defineProperty(props, "key", {
461
+ get: warnAboutAccessingKey,
462
+ configurable: !0
463
+ });
464
+ }
465
+ function elementRefGetterWithDeprecationWarning() {
466
+ var componentName = getComponentNameFromType(this.type);
467
+ didWarnAboutElementRef[componentName] ||
468
+ ((didWarnAboutElementRef[componentName] = !0),
469
+ error$jscomp$0(
470
+ "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."
471
+ ));
472
+ componentName = this.props.ref;
473
+ return void 0 !== componentName ? componentName : null;
474
+ }
475
+ function ReactElement(type, key, _ref, self, source, owner, props) {
476
+ _ref = props.ref;
477
+ type = {
478
+ $$typeof: REACT_ELEMENT_TYPE,
479
+ type: type,
480
+ key: key,
481
+ props: props,
482
+ _owner: owner
483
+ };
484
+ null !== (void 0 !== _ref ? _ref : null)
485
+ ? Object.defineProperty(type, "ref", {
486
+ enumerable: !1,
487
+ get: elementRefGetterWithDeprecationWarning
488
+ })
489
+ : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
490
+ type._store = {};
491
+ Object.defineProperty(type._store, "validated", {
492
+ configurable: !1,
493
+ enumerable: !1,
494
+ writable: !0,
495
+ value: 0
496
+ });
497
+ Object.defineProperty(type, "_debugInfo", {
498
+ configurable: !1,
499
+ enumerable: !1,
500
+ writable: !0,
501
+ value: null
502
+ });
503
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
504
+ return type;
505
+ }
506
+ function cloneAndReplaceKey(oldElement, newKey) {
507
+ newKey = ReactElement(
508
+ oldElement.type,
509
+ newKey,
510
+ null,
511
+ void 0,
512
+ void 0,
513
+ oldElement._owner,
514
+ oldElement.props
515
+ );
516
+ newKey._store.validated = oldElement._store.validated;
517
+ return newKey;
518
+ }
519
+ function validateChildKeys(node, parentType) {
520
+ if (
521
+ "object" === typeof node &&
522
+ node &&
523
+ node.$$typeof !== REACT_CLIENT_REFERENCE
524
+ )
525
+ if (isArrayImpl(node))
526
+ for (var i = 0; i < node.length; i++) {
527
+ var child = node[i];
528
+ isValidElement(child) && validateExplicitKey(child, parentType);
529
+ }
530
+ else if (isValidElement(node))
531
+ node._store && (node._store.validated = 1);
532
+ else if (
533
+ ((i = getIteratorFn(node)),
534
+ "function" === typeof i &&
535
+ i !== node.entries &&
536
+ ((i = i.call(node)), i !== node))
537
+ )
538
+ for (; !(node = i.next()).done; )
539
+ isValidElement(node.value) &&
540
+ validateExplicitKey(node.value, parentType);
541
+ }
542
+ function isValidElement(object) {
543
+ return (
544
+ "object" === typeof object &&
545
+ null !== object &&
546
+ object.$$typeof === REACT_ELEMENT_TYPE
547
+ );
548
+ }
549
+ function validateExplicitKey(element, parentType) {
550
+ if (
551
+ element._store &&
552
+ !element._store.validated &&
553
+ null == element.key &&
554
+ ((element._store.validated = 1),
555
+ (parentType = getCurrentComponentErrorInfo(parentType)),
556
+ !ownerHasKeyUseWarning[parentType])
557
+ ) {
558
+ ownerHasKeyUseWarning[parentType] = !0;
559
+ var childOwner = "";
560
+ element &&
561
+ null != element._owner &&
562
+ element._owner !== getOwner() &&
563
+ ((childOwner = null),
564
+ "number" === typeof element._owner.tag
565
+ ? (childOwner = getComponentNameFromType(element._owner.type))
566
+ : "string" === typeof element._owner.name &&
567
+ (childOwner = element._owner.name),
568
+ (childOwner = " It was passed a child from " + childOwner + "."));
569
+ var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
570
+ ReactSharedInternals.getCurrentStack = function () {
571
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
572
+ prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
573
+ return stack;
574
+ };
575
+ error$jscomp$0(
576
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
577
+ parentType,
578
+ childOwner
579
+ );
580
+ ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
581
+ }
582
+ }
583
+ function getCurrentComponentErrorInfo(parentType) {
584
+ var info = "",
585
+ owner = getOwner();
586
+ owner &&
587
+ (owner = getComponentNameFromType(owner.type)) &&
588
+ (info = "\n\nCheck the render method of `" + owner + "`.");
589
+ info ||
590
+ ((parentType = getComponentNameFromType(parentType)) &&
591
+ (info =
592
+ "\n\nCheck the top-level render call using <" + parentType + ">."));
593
+ return info;
594
+ }
595
+ function escape(key) {
596
+ var escaperLookup = { "=": "=0", ":": "=2" };
597
+ return (
598
+ "$" +
599
+ key.replace(/[=:]/g, function (match) {
600
+ return escaperLookup[match];
601
+ })
602
+ );
603
+ }
604
+ function getElementKey(element, index) {
605
+ return "object" === typeof element &&
606
+ null !== element &&
607
+ null != element.key
608
+ ? (checkKeyStringCoercion(element.key), escape("" + element.key))
609
+ : index.toString(36);
610
+ }
611
+ function noop$1() {}
612
+ function resolveThenable(thenable) {
613
+ switch (thenable.status) {
614
+ case "fulfilled":
615
+ return thenable.value;
616
+ case "rejected":
617
+ throw thenable.reason;
618
+ default:
619
+ switch (
620
+ ("string" === typeof thenable.status
621
+ ? thenable.then(noop$1, noop$1)
622
+ : ((thenable.status = "pending"),
623
+ thenable.then(
624
+ function (fulfilledValue) {
625
+ "pending" === thenable.status &&
626
+ ((thenable.status = "fulfilled"),
627
+ (thenable.value = fulfilledValue));
628
+ },
629
+ function (error) {
630
+ "pending" === thenable.status &&
631
+ ((thenable.status = "rejected"),
632
+ (thenable.reason = error));
633
+ }
634
+ )),
635
+ thenable.status)
636
+ ) {
637
+ case "fulfilled":
638
+ return thenable.value;
639
+ case "rejected":
640
+ throw thenable.reason;
641
+ }
642
+ }
643
+ throw thenable;
644
+ }
645
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
646
+ var type = typeof children;
647
+ if ("undefined" === type || "boolean" === type) children = null;
648
+ var invokeCallback = !1;
649
+ if (null === children) invokeCallback = !0;
650
+ else
651
+ switch (type) {
652
+ case "bigint":
653
+ case "string":
654
+ case "number":
655
+ invokeCallback = !0;
656
+ break;
657
+ case "object":
658
+ switch (children.$$typeof) {
659
+ case REACT_ELEMENT_TYPE:
660
+ case REACT_PORTAL_TYPE:
661
+ invokeCallback = !0;
662
+ break;
663
+ case REACT_LAZY_TYPE:
664
+ return (
665
+ (invokeCallback = children._init),
666
+ mapIntoArray(
667
+ invokeCallback(children._payload),
668
+ array,
669
+ escapedPrefix,
670
+ nameSoFar,
671
+ callback
672
+ )
673
+ );
674
+ }
675
+ }
676
+ if (invokeCallback) {
677
+ invokeCallback = children;
678
+ callback = callback(invokeCallback);
679
+ var childKey =
680
+ "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
681
+ isArrayImpl(callback)
682
+ ? ((escapedPrefix = ""),
683
+ null != childKey &&
684
+ (escapedPrefix =
685
+ childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
686
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
687
+ return c;
688
+ }))
689
+ : null != callback &&
690
+ (isValidElement(callback) &&
691
+ (null != callback.key &&
692
+ ((invokeCallback && invokeCallback.key === callback.key) ||
693
+ checkKeyStringCoercion(callback.key)),
694
+ (escapedPrefix = cloneAndReplaceKey(
695
+ callback,
696
+ escapedPrefix +
697
+ (null == callback.key ||
698
+ (invokeCallback && invokeCallback.key === callback.key)
699
+ ? ""
700
+ : ("" + callback.key).replace(
701
+ userProvidedKeyEscapeRegex,
702
+ "$&/"
703
+ ) + "/") +
704
+ childKey
705
+ )),
706
+ "" !== nameSoFar &&
707
+ null != invokeCallback &&
708
+ isValidElement(invokeCallback) &&
709
+ null == invokeCallback.key &&
710
+ invokeCallback._store &&
711
+ !invokeCallback._store.validated &&
712
+ (escapedPrefix._store.validated = 2),
713
+ (callback = escapedPrefix)),
714
+ array.push(callback));
715
+ return 1;
716
+ }
717
+ invokeCallback = 0;
718
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
719
+ if (isArrayImpl(children))
720
+ for (var i = 0; i < children.length; i++)
721
+ (nameSoFar = children[i]),
722
+ (type = childKey + getElementKey(nameSoFar, i)),
723
+ (invokeCallback += mapIntoArray(
724
+ nameSoFar,
725
+ array,
726
+ escapedPrefix,
727
+ type,
728
+ callback
729
+ ));
730
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
731
+ for (
732
+ i === children.entries &&
733
+ (didWarnAboutMaps ||
734
+ warn(
735
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
736
+ ),
737
+ (didWarnAboutMaps = !0)),
738
+ children = i.call(children),
739
+ i = 0;
740
+ !(nameSoFar = children.next()).done;
741
+
742
+ )
743
+ (nameSoFar = nameSoFar.value),
744
+ (type = childKey + getElementKey(nameSoFar, i++)),
745
+ (invokeCallback += mapIntoArray(
746
+ nameSoFar,
747
+ array,
748
+ escapedPrefix,
749
+ type,
750
+ callback
751
+ ));
752
+ else if ("object" === type) {
753
+ if ("function" === typeof children.then)
754
+ return mapIntoArray(
755
+ resolveThenable(children),
756
+ array,
757
+ escapedPrefix,
758
+ nameSoFar,
759
+ callback
760
+ );
761
+ array = String(children);
762
+ throw Error(
763
+ "Objects are not valid as a React child (found: " +
764
+ ("[object Object]" === array
765
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
766
+ : array) +
767
+ "). If you meant to render a collection of children, use an array instead."
768
+ );
769
+ }
770
+ return invokeCallback;
771
+ }
772
+ function mapChildren(children, func, context) {
773
+ if (null == children) return children;
774
+ var result = [],
775
+ count = 0;
776
+ mapIntoArray(children, result, "", "", function (child) {
777
+ return func.call(context, child, count++);
778
+ });
779
+ return result;
780
+ }
781
+ function lazyInitializer(payload) {
782
+ if (-1 === payload._status) {
783
+ var ctor = payload._result;
784
+ ctor = ctor();
785
+ ctor.then(
786
+ function (moduleObject) {
787
+ if (0 === payload._status || -1 === payload._status)
788
+ (payload._status = 1), (payload._result = moduleObject);
789
+ },
790
+ function (error) {
791
+ if (0 === payload._status || -1 === payload._status)
792
+ (payload._status = 2), (payload._result = error);
793
+ }
794
+ );
795
+ -1 === payload._status &&
796
+ ((payload._status = 0), (payload._result = ctor));
797
+ }
798
+ if (1 === payload._status)
799
+ return (
800
+ (ctor = payload._result),
801
+ void 0 === ctor &&
802
+ error$jscomp$0(
803
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
804
+ ctor
805
+ ),
806
+ "default" in ctor ||
807
+ error$jscomp$0(
808
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
809
+ ctor
810
+ ),
811
+ ctor.default
812
+ );
813
+ throw payload._result;
814
+ }
815
+ function resolveDispatcher() {
816
+ var dispatcher = ReactSharedInternals.H;
817
+ null === dispatcher &&
818
+ error$jscomp$0(
819
+ "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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
820
+ );
821
+ return dispatcher;
822
+ }
823
+ function noop() {}
824
+ function enqueueTask(task) {
825
+ if (null === enqueueTaskImpl)
826
+ try {
827
+ var requireString = ("require" + Math.random()).slice(0, 7);
828
+ enqueueTaskImpl = (module && module[requireString]).call(
829
+ module,
830
+ "timers"
831
+ ).setImmediate;
832
+ } catch (_err) {
833
+ enqueueTaskImpl = function (callback) {
834
+ !1 === didWarnAboutMessageChannel &&
835
+ ((didWarnAboutMessageChannel = !0),
836
+ "undefined" === typeof MessageChannel &&
837
+ error$jscomp$0(
838
+ "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."
839
+ ));
840
+ var channel = new MessageChannel();
841
+ channel.port1.onmessage = callback;
842
+ channel.port2.postMessage(void 0);
843
+ };
844
+ }
845
+ return enqueueTaskImpl(task);
846
+ }
847
+ function aggregateErrors(errors) {
848
+ return 1 < errors.length && "function" === typeof AggregateError
849
+ ? new AggregateError(errors)
850
+ : errors[0];
851
+ }
852
+ function popActScope(prevActQueue, prevActScopeDepth) {
853
+ prevActScopeDepth !== actScopeDepth - 1 &&
854
+ error$jscomp$0(
855
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
856
+ );
857
+ actScopeDepth = prevActScopeDepth;
858
+ }
859
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
860
+ var queue = ReactSharedInternals.actQueue;
861
+ if (null !== queue)
862
+ if (0 !== queue.length)
863
+ try {
864
+ flushActQueue(queue);
865
+ enqueueTask(function () {
866
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
867
+ });
868
+ return;
869
+ } catch (error$5) {
870
+ ReactSharedInternals.thrownErrors.push(error$5);
871
+ }
872
+ else ReactSharedInternals.actQueue = null;
873
+ 0 < ReactSharedInternals.thrownErrors.length
874
+ ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
875
+ (ReactSharedInternals.thrownErrors.length = 0),
876
+ reject(queue))
877
+ : resolve(returnValue);
878
+ }
879
+ function flushActQueue(queue) {
880
+ if (!isFlushing) {
881
+ isFlushing = !0;
882
+ var i = 0;
883
+ try {
884
+ for (; i < queue.length; i++) {
885
+ var callback = queue[i];
886
+ do {
887
+ ReactSharedInternals.didUsePromise = !1;
888
+ var continuation = callback(!1);
889
+ if (null !== continuation) {
890
+ if (ReactSharedInternals.didUsePromise) {
891
+ queue[i] = callback;
892
+ queue.splice(0, i);
893
+ return;
894
+ }
895
+ callback = continuation;
896
+ } else break;
897
+ } while (1);
898
+ }
899
+ queue.length = 0;
900
+ } catch (error$6) {
901
+ queue.splice(0, i + 1),
902
+ ReactSharedInternals.thrownErrors.push(error$6);
903
+ } finally {
904
+ isFlushing = !1;
905
+ }
906
+ }
907
+ }
908
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
909
+ "function" ===
910
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
911
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
912
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
913
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
914
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
915
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
916
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
917
+ Symbol.for("react.provider");
918
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
919
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
920
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
921
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
922
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
923
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
924
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
925
+ REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
926
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
927
+ ReactSharedInternals = {
928
+ H: null,
929
+ A: null,
930
+ T: null,
931
+ S: null,
932
+ actQueue: null,
933
+ isBatchingLegacy: !1,
934
+ didScheduleLegacyUpdate: !1,
935
+ didUsePromise: !1,
936
+ thrownErrors: [],
937
+ getCurrentStack: null
938
+ },
939
+ didWarnStateUpdateForUnmountedComponent = {},
940
+ ReactNoopUpdateQueue = {
941
+ isMounted: function () {
942
+ return !1;
943
+ },
944
+ enqueueForceUpdate: function (publicInstance) {
945
+ warnNoop(publicInstance, "forceUpdate");
946
+ },
947
+ enqueueReplaceState: function (publicInstance) {
948
+ warnNoop(publicInstance, "replaceState");
949
+ },
950
+ enqueueSetState: function (publicInstance) {
951
+ warnNoop(publicInstance, "setState");
952
+ }
953
+ },
954
+ assign = Object.assign,
955
+ emptyObject = {};
956
+ Object.freeze(emptyObject);
957
+ Component.prototype.isReactComponent = {};
958
+ Component.prototype.setState = function (partialState, callback) {
959
+ if (
960
+ "object" !== typeof partialState &&
961
+ "function" !== typeof partialState &&
962
+ null != partialState
963
+ )
964
+ throw Error(
965
+ "takes an object of state variables to update or a function which returns an object of state variables."
966
+ );
967
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
968
+ };
969
+ Component.prototype.forceUpdate = function (callback) {
970
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
971
+ };
972
+ var deprecatedAPIs = {
973
+ isMounted: [
974
+ "isMounted",
975
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
976
+ ],
977
+ replaceState: [
978
+ "replaceState",
979
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
980
+ ]
981
+ },
982
+ fnName;
983
+ for (fnName in deprecatedAPIs)
984
+ deprecatedAPIs.hasOwnProperty(fnName) &&
985
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
986
+ ComponentDummy.prototype = Component.prototype;
987
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
988
+ deprecatedAPIs.constructor = PureComponent;
989
+ assign(deprecatedAPIs, Component.prototype);
990
+ deprecatedAPIs.isPureReactComponent = !0;
991
+ var isArrayImpl = Array.isArray,
992
+ REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
993
+ hasOwnProperty = Object.prototype.hasOwnProperty,
994
+ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
995
+ disabledDepth = 0,
996
+ prevLog,
997
+ prevInfo,
998
+ prevWarn,
999
+ prevError,
1000
+ prevGroup,
1001
+ prevGroupCollapsed,
1002
+ prevGroupEnd;
1003
+ disabledLog.__reactDisabledLog = !0;
1004
+ var prefix,
1005
+ reentry = !1;
1006
+ var componentFrameCache = new (
1007
+ "function" === typeof WeakMap ? WeakMap : Map
1008
+ )();
1009
+ var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1010
+ specialPropKeyWarningShown,
1011
+ didWarnAboutOldJSXRuntime;
1012
+ var didWarnAboutElementRef = {};
1013
+ var ownerHasKeyUseWarning = {},
1014
+ didWarnAboutMaps = !1,
1015
+ userProvidedKeyEscapeRegex = /\/+/g,
1016
+ reportGlobalError =
1017
+ "function" === typeof reportError
1018
+ ? reportError
1019
+ : function (error) {
1020
+ if (
1021
+ "object" === typeof window &&
1022
+ "function" === typeof window.ErrorEvent
1023
+ ) {
1024
+ var event = new window.ErrorEvent("error", {
1025
+ bubbles: !0,
1026
+ cancelable: !0,
1027
+ message:
1028
+ "object" === typeof error &&
1029
+ null !== error &&
1030
+ "string" === typeof error.message
1031
+ ? String(error.message)
1032
+ : String(error),
1033
+ error: error
1034
+ });
1035
+ if (!window.dispatchEvent(event)) return;
1036
+ } else if (
1037
+ "object" === typeof process &&
1038
+ "function" === typeof process.emit
1039
+ ) {
1040
+ process.emit("uncaughtException", error);
1041
+ return;
1042
+ }
1043
+ console.error(error);
1044
+ },
1045
+ didWarnAboutMessageChannel = !1,
1046
+ enqueueTaskImpl = null,
1047
+ actScopeDepth = 0,
1048
+ didWarnNoAwaitAct = !1,
1049
+ isFlushing = !1,
1050
+ queueSeveralMicrotasks =
1051
+ "function" === typeof queueMicrotask
1052
+ ? function (callback) {
1053
+ queueMicrotask(function () {
1054
+ return queueMicrotask(callback);
1055
+ });
1056
+ }
1057
+ : enqueueTask;
1058
+ exports.Children = {
1059
+ map: mapChildren,
1060
+ forEach: function (children, forEachFunc, forEachContext) {
1061
+ mapChildren(
1062
+ children,
1063
+ function () {
1064
+ forEachFunc.apply(this, arguments);
1065
+ },
1066
+ forEachContext
1067
+ );
1068
+ },
1069
+ count: function (children) {
1070
+ var n = 0;
1071
+ mapChildren(children, function () {
1072
+ n++;
1073
+ });
1074
+ return n;
1075
+ },
1076
+ toArray: function (children) {
1077
+ return (
1078
+ mapChildren(children, function (child) {
1079
+ return child;
1080
+ }) || []
1081
+ );
1082
+ },
1083
+ only: function (children) {
1084
+ if (!isValidElement(children))
1085
+ throw Error(
1086
+ "React.Children.only expected to receive a single React element child."
1087
+ );
1088
+ return children;
1089
+ }
1090
+ };
1091
+ exports.Component = Component;
1092
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1093
+ exports.Profiler = REACT_PROFILER_TYPE;
1094
+ exports.PureComponent = PureComponent;
1095
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1096
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1097
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
1098
+ ReactSharedInternals;
1099
+ exports.act = function (callback) {
1100
+ var prevActQueue = ReactSharedInternals.actQueue,
1101
+ prevActScopeDepth = actScopeDepth;
1102
+ actScopeDepth++;
1103
+ var queue = (ReactSharedInternals.actQueue =
1104
+ null !== prevActQueue ? prevActQueue : []),
1105
+ didAwaitActCall = !1;
1106
+ try {
1107
+ var result = callback();
1108
+ } catch (error$3) {
1109
+ ReactSharedInternals.thrownErrors.push(error$3);
1110
+ }
1111
+ if (0 < ReactSharedInternals.thrownErrors.length)
1112
+ throw (
1113
+ (popActScope(prevActQueue, prevActScopeDepth),
1114
+ (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1115
+ (ReactSharedInternals.thrownErrors.length = 0),
1116
+ callback)
1117
+ );
1118
+ if (
1119
+ null !== result &&
1120
+ "object" === typeof result &&
1121
+ "function" === typeof result.then
1122
+ ) {
1123
+ var thenable = result;
1124
+ queueSeveralMicrotasks(function () {
1125
+ didAwaitActCall ||
1126
+ didWarnNoAwaitAct ||
1127
+ ((didWarnNoAwaitAct = !0),
1128
+ error$jscomp$0(
1129
+ "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 () => ...);"
1130
+ ));
1131
+ });
1132
+ return {
1133
+ then: function (resolve, reject) {
1134
+ didAwaitActCall = !0;
1135
+ thenable.then(
1136
+ function (returnValue) {
1137
+ popActScope(prevActQueue, prevActScopeDepth);
1138
+ if (0 === prevActScopeDepth) {
1139
+ try {
1140
+ flushActQueue(queue),
1141
+ enqueueTask(function () {
1142
+ return recursivelyFlushAsyncActWork(
1143
+ returnValue,
1144
+ resolve,
1145
+ reject
1146
+ );
1147
+ });
1148
+ } catch (error$4) {
1149
+ ReactSharedInternals.thrownErrors.push(error$4);
1150
+ }
1151
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1152
+ var _thrownError = aggregateErrors(
1153
+ ReactSharedInternals.thrownErrors
1154
+ );
1155
+ ReactSharedInternals.thrownErrors.length = 0;
1156
+ reject(_thrownError);
1157
+ }
1158
+ } else resolve(returnValue);
1159
+ },
1160
+ function (error) {
1161
+ popActScope(prevActQueue, prevActScopeDepth);
1162
+ 0 < ReactSharedInternals.thrownErrors.length
1163
+ ? ((error = aggregateErrors(
1164
+ ReactSharedInternals.thrownErrors
1165
+ )),
1166
+ (ReactSharedInternals.thrownErrors.length = 0),
1167
+ reject(error))
1168
+ : reject(error);
1169
+ }
1170
+ );
1171
+ }
1172
+ };
1173
+ }
1174
+ var returnValue$jscomp$0 = result;
1175
+ popActScope(prevActQueue, prevActScopeDepth);
1176
+ 0 === prevActScopeDepth &&
1177
+ (flushActQueue(queue),
1178
+ 0 !== queue.length &&
1179
+ queueSeveralMicrotasks(function () {
1180
+ didAwaitActCall ||
1181
+ didWarnNoAwaitAct ||
1182
+ ((didWarnNoAwaitAct = !0),
1183
+ error$jscomp$0(
1184
+ "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(() => ...)"
1185
+ ));
1186
+ }),
1187
+ (ReactSharedInternals.actQueue = null));
1188
+ if (0 < ReactSharedInternals.thrownErrors.length)
1189
+ throw (
1190
+ ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
1191
+ (ReactSharedInternals.thrownErrors.length = 0),
1192
+ callback)
1193
+ );
1194
+ return {
1195
+ then: function (resolve, reject) {
1196
+ didAwaitActCall = !0;
1197
+ 0 === prevActScopeDepth
1198
+ ? ((ReactSharedInternals.actQueue = queue),
1199
+ enqueueTask(function () {
1200
+ return recursivelyFlushAsyncActWork(
1201
+ returnValue$jscomp$0,
1202
+ resolve,
1203
+ reject
1204
+ );
1205
+ }))
1206
+ : resolve(returnValue$jscomp$0);
1207
+ }
1208
+ };
1209
+ };
1210
+ exports.cache = function (fn) {
1211
+ return function () {
1212
+ return fn.apply(null, arguments);
1213
+ };
1214
+ };
1215
+ exports.cloneElement = function (element, config, children) {
1216
+ if (null === element || void 0 === element)
1217
+ throw Error(
1218
+ "The argument must be a React element, but you passed " +
1219
+ element +
1220
+ "."
1221
+ );
1222
+ var props = assign({}, element.props),
1223
+ key = element.key,
1224
+ owner = element._owner;
1225
+ if (null != config)
1226
+ for (propName in (hasValidRef(config) && (owner = getOwner()),
1227
+ hasValidKey(config) &&
1228
+ (checkKeyStringCoercion(config.key), (key = "" + config.key)),
1229
+ config))
1230
+ !hasOwnProperty.call(config, propName) ||
1231
+ "key" === propName ||
1232
+ "__self" === propName ||
1233
+ "__source" === propName ||
1234
+ ("ref" === propName && void 0 === config.ref) ||
1235
+ (props[propName] = config[propName]);
1236
+ var propName = arguments.length - 2;
1237
+ if (1 === propName) props.children = children;
1238
+ else if (1 < propName) {
1239
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
1240
+ childArray[i] = arguments[i + 2];
1241
+ props.children = childArray;
1242
+ }
1243
+ props = ReactElement(
1244
+ element.type,
1245
+ key,
1246
+ null,
1247
+ void 0,
1248
+ void 0,
1249
+ owner,
1250
+ props
1251
+ );
1252
+ for (key = 2; key < arguments.length; key++)
1253
+ validateChildKeys(arguments[key], props.type);
1254
+ return props;
1255
+ };
1256
+ exports.createContext = function (defaultValue) {
1257
+ defaultValue = {
1258
+ $$typeof: REACT_CONTEXT_TYPE,
1259
+ _currentValue: defaultValue,
1260
+ _currentValue2: defaultValue,
1261
+ _threadCount: 0,
1262
+ Provider: null,
1263
+ Consumer: null
1264
+ };
1265
+ defaultValue.Provider = defaultValue;
1266
+ defaultValue.Consumer = {
1267
+ $$typeof: REACT_CONSUMER_TYPE,
1268
+ _context: defaultValue
1269
+ };
1270
+ defaultValue._currentRenderer = null;
1271
+ defaultValue._currentRenderer2 = null;
1272
+ return defaultValue;
1273
+ };
1274
+ exports.createElement = function (type, config, children) {
1275
+ if (isValidElementType(type))
1276
+ for (var i = 2; i < arguments.length; i++)
1277
+ validateChildKeys(arguments[i], type);
1278
+ else {
1279
+ i = "";
1280
+ if (
1281
+ void 0 === type ||
1282
+ ("object" === typeof type &&
1283
+ null !== type &&
1284
+ 0 === Object.keys(type).length)
1285
+ )
1286
+ i +=
1287
+ " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1288
+ if (null === type) var typeString = "null";
1289
+ else
1290
+ isArrayImpl(type)
1291
+ ? (typeString = "array")
1292
+ : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
1293
+ ? ((typeString =
1294
+ "<" +
1295
+ (getComponentNameFromType(type.type) || "Unknown") +
1296
+ " />"),
1297
+ (i =
1298
+ " Did you accidentally export a JSX literal instead of a component?"))
1299
+ : (typeString = typeof type);
1300
+ error$jscomp$0(
1301
+ "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
1302
+ typeString,
1303
+ i
1304
+ );
1305
+ }
1306
+ i = {};
1307
+ typeString = null;
1308
+ if (null != config)
1309
+ for (propName in (didWarnAboutOldJSXRuntime ||
1310
+ !("__self" in config) ||
1311
+ "key" in config ||
1312
+ ((didWarnAboutOldJSXRuntime = !0),
1313
+ warn(
1314
+ "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"
1315
+ )),
1316
+ hasValidRef(config),
1317
+ hasValidKey(config) &&
1318
+ (checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
1319
+ config))
1320
+ hasOwnProperty.call(config, propName) &&
1321
+ "key" !== propName &&
1322
+ "__self" !== propName &&
1323
+ "__source" !== propName &&
1324
+ (i[propName] = config[propName]);
1325
+ var childrenLength = arguments.length - 2;
1326
+ if (1 === childrenLength) i.children = children;
1327
+ else if (1 < childrenLength) {
1328
+ for (
1329
+ var childArray = Array(childrenLength), _i = 0;
1330
+ _i < childrenLength;
1331
+ _i++
1332
+ )
1333
+ childArray[_i] = arguments[_i + 2];
1334
+ Object.freeze && Object.freeze(childArray);
1335
+ i.children = childArray;
1336
+ }
1337
+ if (type && type.defaultProps)
1338
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
1339
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1340
+ if (typeString) {
1341
+ var propName =
1342
+ "function" === typeof type
1343
+ ? type.displayName || type.name || "Unknown"
1344
+ : type;
1345
+ typeString && defineKeyPropWarningGetter(i, propName);
1346
+ }
1347
+ return ReactElement(
1348
+ type,
1349
+ typeString,
1350
+ null,
1351
+ void 0,
1352
+ void 0,
1353
+ getOwner(),
1354
+ i
1355
+ );
1356
+ };
1357
+ exports.createRef = function () {
1358
+ var refObject = { current: null };
1359
+ Object.seal(refObject);
1360
+ return refObject;
1361
+ };
1362
+ exports.forwardRef = function (render) {
1363
+ null != render && render.$$typeof === REACT_MEMO_TYPE
1364
+ ? error$jscomp$0(
1365
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1366
+ )
1367
+ : "function" !== typeof render
1368
+ ? error$jscomp$0(
1369
+ "forwardRef requires a render function but was given %s.",
1370
+ null === render ? "null" : typeof render
1371
+ )
1372
+ : 0 !== render.length &&
1373
+ 2 !== render.length &&
1374
+ error$jscomp$0(
1375
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1376
+ 1 === render.length
1377
+ ? "Did you forget to use the ref parameter?"
1378
+ : "Any additional parameter will be undefined."
1379
+ );
1380
+ null != render &&
1381
+ null != render.defaultProps &&
1382
+ error$jscomp$0(
1383
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1384
+ );
1385
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
1386
+ ownName;
1387
+ Object.defineProperty(elementType, "displayName", {
1388
+ enumerable: !1,
1389
+ configurable: !0,
1390
+ get: function () {
1391
+ return ownName;
1392
+ },
1393
+ set: function (name) {
1394
+ ownName = name;
1395
+ render.name ||
1396
+ render.displayName ||
1397
+ (Object.defineProperty(render, "name", { value: name }),
1398
+ (render.displayName = name));
1399
+ }
1400
+ });
1401
+ return elementType;
1402
+ };
1403
+ exports.isValidElement = isValidElement;
1404
+ exports.lazy = function (ctor) {
1405
+ return {
1406
+ $$typeof: REACT_LAZY_TYPE,
1407
+ _payload: { _status: -1, _result: ctor },
1408
+ _init: lazyInitializer
1409
+ };
1410
+ };
1411
+ exports.memo = function (type, compare) {
1412
+ isValidElementType(type) ||
1413
+ error$jscomp$0(
1414
+ "memo: The first argument must be a component. Instead received: %s",
1415
+ null === type ? "null" : typeof type
1416
+ );
1417
+ compare = {
1418
+ $$typeof: REACT_MEMO_TYPE,
1419
+ type: type,
1420
+ compare: void 0 === compare ? null : compare
1421
+ };
1422
+ var ownName;
1423
+ Object.defineProperty(compare, "displayName", {
1424
+ enumerable: !1,
1425
+ configurable: !0,
1426
+ get: function () {
1427
+ return ownName;
1428
+ },
1429
+ set: function (name) {
1430
+ ownName = name;
1431
+ type.name ||
1432
+ type.displayName ||
1433
+ (Object.defineProperty(type, "name", { value: name }),
1434
+ (type.displayName = name));
1435
+ }
1436
+ });
1437
+ return compare;
1438
+ };
1439
+ exports.startTransition = function (scope) {
1440
+ var prevTransition = ReactSharedInternals.T,
1441
+ transition = {};
1442
+ ReactSharedInternals.T = transition;
1443
+ var currentTransition = ReactSharedInternals.T;
1444
+ ReactSharedInternals.T._updatedFibers = new Set();
1445
+ try {
1446
+ var returnValue = scope(),
1447
+ onStartTransitionFinish = ReactSharedInternals.S;
1448
+ null !== onStartTransitionFinish &&
1449
+ onStartTransitionFinish(transition, returnValue);
1450
+ "object" === typeof returnValue &&
1451
+ null !== returnValue &&
1452
+ "function" === typeof returnValue.then &&
1453
+ returnValue.then(noop, reportGlobalError);
1454
+ } catch (error$2) {
1455
+ reportGlobalError(error$2);
1456
+ } finally {
1457
+ null === prevTransition &&
1458
+ currentTransition._updatedFibers &&
1459
+ ((scope = currentTransition._updatedFibers.size),
1460
+ currentTransition._updatedFibers.clear(),
1461
+ 10 < scope &&
1462
+ warn(
1463
+ "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."
1464
+ )),
1465
+ (ReactSharedInternals.T = prevTransition);
1466
+ }
1467
+ };
1468
+ exports.unstable_useCacheRefresh = function () {
1469
+ return resolveDispatcher().useCacheRefresh();
1470
+ };
1471
+ exports.use = function (usable) {
1472
+ return resolveDispatcher().use(usable);
1473
+ };
1474
+ exports.useActionState = function (action, initialState, permalink) {
1475
+ return resolveDispatcher().useActionState(
1476
+ action,
1477
+ initialState,
1478
+ permalink
1479
+ );
1480
+ };
1481
+ exports.useCallback = function (callback, deps) {
1482
+ return resolveDispatcher().useCallback(callback, deps);
1483
+ };
1484
+ exports.useContext = function (Context) {
1485
+ var dispatcher = resolveDispatcher();
1486
+ Context.$$typeof === REACT_CONSUMER_TYPE &&
1487
+ error$jscomp$0(
1488
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1489
+ );
1490
+ return dispatcher.useContext(Context);
1491
+ };
1492
+ exports.useDebugValue = function (value, formatterFn) {
1493
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1494
+ };
1495
+ exports.useDeferredValue = function (value, initialValue) {
1496
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1497
+ };
1498
+ exports.useEffect = function (create, deps) {
1499
+ return resolveDispatcher().useEffect(create, deps);
1500
+ };
1501
+ exports.useId = function () {
1502
+ return resolveDispatcher().useId();
1503
+ };
1504
+ exports.useImperativeHandle = function (ref, create, deps) {
1505
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1506
+ };
1507
+ exports.useInsertionEffect = function (create, deps) {
1508
+ return resolveDispatcher().useInsertionEffect(create, deps);
1509
+ };
1510
+ exports.useLayoutEffect = function (create, deps) {
1511
+ return resolveDispatcher().useLayoutEffect(create, deps);
1512
+ };
1513
+ exports.useMemo = function (create, deps) {
1514
+ return resolveDispatcher().useMemo(create, deps);
1515
+ };
1516
+ exports.useOptimistic = function (passthrough, reducer) {
1517
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1518
+ };
1519
+ exports.useReducer = function (reducer, initialArg, init) {
1520
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1521
+ };
1522
+ exports.useRef = function (initialValue) {
1523
+ return resolveDispatcher().useRef(initialValue);
1524
+ };
1525
+ exports.useState = function (initialState) {
1526
+ return resolveDispatcher().useState(initialState);
1527
+ };
1528
+ exports.useSyncExternalStore = function (
1529
+ subscribe,
1530
+ getSnapshot,
1531
+ getServerSnapshot
1532
+ ) {
1533
+ return resolveDispatcher().useSyncExternalStore(
1534
+ subscribe,
1535
+ getSnapshot,
1536
+ getServerSnapshot
1537
+ );
1538
+ };
1539
+ exports.useTransition = function () {
1540
+ return resolveDispatcher().useTransition();
1541
+ };
1542
+ exports.version = "19.0.0-rc-fb9a90fa48-20240614";
1543
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1544
+ "function" ===
1545
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
1546
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1547
+ })();