jy-headless 0.2.11 → 0.2.13

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