@dodopayments/nextjs 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2322,6 +2322,7 @@ function requireReact_production () {
2322
2322
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2323
2323
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
2324
2324
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2325
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2325
2326
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2326
2327
  function getIteratorFn(maybeIterable) {
2327
2328
  if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -2373,28 +2374,22 @@ function requireReact_production () {
2373
2374
  pureComponentPrototype.constructor = PureComponent;
2374
2375
  assign(pureComponentPrototype, Component.prototype);
2375
2376
  pureComponentPrototype.isPureReactComponent = true;
2376
- var isArrayImpl = Array.isArray,
2377
- ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },
2377
+ var isArrayImpl = Array.isArray;
2378
+ function noop() {}
2379
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null },
2378
2380
  hasOwnProperty = Object.prototype.hasOwnProperty;
2379
- function ReactElement(type, key, self, source, owner, props) {
2380
- self = props.ref;
2381
+ function ReactElement(type, key, props) {
2382
+ var refProp = props.ref;
2381
2383
  return {
2382
2384
  $$typeof: REACT_ELEMENT_TYPE,
2383
2385
  type: type,
2384
2386
  key: key,
2385
- ref: void 0 !== self ? self : null,
2387
+ ref: void 0 !== refProp ? refProp : null,
2386
2388
  props: props
2387
2389
  };
2388
2390
  }
2389
2391
  function cloneAndReplaceKey(oldElement, newKey) {
2390
- return ReactElement(
2391
- oldElement.type,
2392
- newKey,
2393
- void 0,
2394
- void 0,
2395
- void 0,
2396
- oldElement.props
2397
- );
2392
+ return ReactElement(oldElement.type, newKey, oldElement.props);
2398
2393
  }
2399
2394
  function isValidElement(object) {
2400
2395
  return (
@@ -2418,7 +2413,6 @@ function requireReact_production () {
2418
2413
  ? escape("" + element.key)
2419
2414
  : index.toString(36);
2420
2415
  }
2421
- function noop$1() {}
2422
2416
  function resolveThenable(thenable) {
2423
2417
  switch (thenable.status) {
2424
2418
  case "fulfilled":
@@ -2428,7 +2422,7 @@ function requireReact_production () {
2428
2422
  default:
2429
2423
  switch (
2430
2424
  ("string" === typeof thenable.status
2431
- ? thenable.then(noop$1, noop$1)
2425
+ ? thenable.then(noop, noop)
2432
2426
  : ((thenable.status = "pending"),
2433
2427
  thenable.then(
2434
2428
  function (fulfilledValue) {
@@ -2589,68 +2583,69 @@ function requireReact_production () {
2589
2583
  throw payload._result;
2590
2584
  }
2591
2585
  var reportGlobalError =
2592
- "function" === typeof reportError
2593
- ? reportError
2594
- : function (error) {
2595
- if (
2596
- "object" === typeof window &&
2597
- "function" === typeof window.ErrorEvent
2598
- ) {
2599
- var event = new window.ErrorEvent("error", {
2600
- bubbles: true,
2601
- cancelable: true,
2602
- message:
2603
- "object" === typeof error &&
2604
- null !== error &&
2605
- "string" === typeof error.message
2606
- ? String(error.message)
2607
- : String(error),
2608
- error: error
2609
- });
2610
- if (!window.dispatchEvent(event)) return;
2611
- } else if (
2612
- "object" === typeof process &&
2613
- "function" === typeof process.emit
2614
- ) {
2615
- process.emit("uncaughtException", error);
2616
- return;
2617
- }
2618
- console.error(error);
2619
- };
2620
- function noop() {}
2621
- react_production.Children = {
2622
- map: mapChildren,
2623
- forEach: function (children, forEachFunc, forEachContext) {
2624
- mapChildren(
2625
- children,
2626
- function () {
2627
- forEachFunc.apply(this, arguments);
2628
- },
2629
- forEachContext
2630
- );
2631
- },
2632
- count: function (children) {
2633
- var n = 0;
2634
- mapChildren(children, function () {
2635
- n++;
2636
- });
2637
- return n;
2638
- },
2639
- toArray: function (children) {
2640
- return (
2641
- mapChildren(children, function (child) {
2642
- return child;
2643
- }) || []
2644
- );
2645
- },
2646
- only: function (children) {
2647
- if (!isValidElement(children))
2648
- throw Error(
2649
- "React.Children.only expected to receive a single React element child."
2586
+ "function" === typeof reportError
2587
+ ? reportError
2588
+ : function (error) {
2589
+ if (
2590
+ "object" === typeof window &&
2591
+ "function" === typeof window.ErrorEvent
2592
+ ) {
2593
+ var event = new window.ErrorEvent("error", {
2594
+ bubbles: true,
2595
+ cancelable: true,
2596
+ message:
2597
+ "object" === typeof error &&
2598
+ null !== error &&
2599
+ "string" === typeof error.message
2600
+ ? String(error.message)
2601
+ : String(error),
2602
+ error: error
2603
+ });
2604
+ if (!window.dispatchEvent(event)) return;
2605
+ } else if (
2606
+ "object" === typeof process &&
2607
+ "function" === typeof process.emit
2608
+ ) {
2609
+ process.emit("uncaughtException", error);
2610
+ return;
2611
+ }
2612
+ console.error(error);
2613
+ },
2614
+ Children = {
2615
+ map: mapChildren,
2616
+ forEach: function (children, forEachFunc, forEachContext) {
2617
+ mapChildren(
2618
+ children,
2619
+ function () {
2620
+ forEachFunc.apply(this, arguments);
2621
+ },
2622
+ forEachContext
2650
2623
  );
2651
- return children;
2652
- }
2653
- };
2624
+ },
2625
+ count: function (children) {
2626
+ var n = 0;
2627
+ mapChildren(children, function () {
2628
+ n++;
2629
+ });
2630
+ return n;
2631
+ },
2632
+ toArray: function (children) {
2633
+ return (
2634
+ mapChildren(children, function (child) {
2635
+ return child;
2636
+ }) || []
2637
+ );
2638
+ },
2639
+ only: function (children) {
2640
+ if (!isValidElement(children))
2641
+ throw Error(
2642
+ "React.Children.only expected to receive a single React element child."
2643
+ );
2644
+ return children;
2645
+ }
2646
+ };
2647
+ react_production.Activity = REACT_ACTIVITY_TYPE;
2648
+ react_production.Children = Children;
2654
2649
  react_production.Component = Component;
2655
2650
  react_production.Fragment = REACT_FRAGMENT_TYPE;
2656
2651
  react_production.Profiler = REACT_PROFILER_TYPE;
@@ -2670,18 +2665,18 @@ function requireReact_production () {
2670
2665
  return fn.apply(null, arguments);
2671
2666
  };
2672
2667
  };
2668
+ react_production.cacheSignal = function () {
2669
+ return null;
2670
+ };
2673
2671
  react_production.cloneElement = function (element, config, children) {
2674
2672
  if (null === element || void 0 === element)
2675
2673
  throw Error(
2676
2674
  "The argument must be a React element, but you passed " + element + "."
2677
2675
  );
2678
2676
  var props = assign({}, element.props),
2679
- key = element.key,
2680
- owner = void 0;
2677
+ key = element.key;
2681
2678
  if (null != config)
2682
- for (propName in (void 0 !== config.ref && (owner = void 0),
2683
- void 0 !== config.key && (key = "" + config.key),
2684
- config))
2679
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
2685
2680
  !hasOwnProperty.call(config, propName) ||
2686
2681
  "key" === propName ||
2687
2682
  "__self" === propName ||
@@ -2695,7 +2690,7 @@ function requireReact_production () {
2695
2690
  childArray[i] = arguments[i + 2];
2696
2691
  props.children = childArray;
2697
2692
  }
2698
- return ReactElement(element.type, key, void 0, void 0, owner, props);
2693
+ return ReactElement(element.type, key, props);
2699
2694
  };
2700
2695
  react_production.createContext = function (defaultValue) {
2701
2696
  defaultValue = {
@@ -2735,7 +2730,7 @@ function requireReact_production () {
2735
2730
  for (propName in ((childrenLength = type.defaultProps), childrenLength))
2736
2731
  void 0 === props[propName] &&
2737
2732
  (props[propName] = childrenLength[propName]);
2738
- return ReactElement(type, key, void 0, void 0, null, props);
2733
+ return ReactElement(type, key, props);
2739
2734
  };
2740
2735
  react_production.createRef = function () {
2741
2736
  return { current: null };
@@ -2774,7 +2769,10 @@ function requireReact_production () {
2774
2769
  } catch (error) {
2775
2770
  reportGlobalError(error);
2776
2771
  } finally {
2777
- ReactSharedInternals.T = prevTransition;
2772
+ null !== prevTransition &&
2773
+ null !== currentTransition.types &&
2774
+ (prevTransition.types = currentTransition.types),
2775
+ (ReactSharedInternals.T = prevTransition);
2778
2776
  }
2779
2777
  };
2780
2778
  react_production.unstable_useCacheRefresh = function () {
@@ -2796,13 +2794,11 @@ function requireReact_production () {
2796
2794
  react_production.useDeferredValue = function (value, initialValue) {
2797
2795
  return ReactSharedInternals.H.useDeferredValue(value, initialValue);
2798
2796
  };
2799
- react_production.useEffect = function (create, createDeps, update) {
2800
- var dispatcher = ReactSharedInternals.H;
2801
- if ("function" === typeof update)
2802
- throw Error(
2803
- "useEffect CRUD overload is not enabled in this build of React."
2804
- );
2805
- return dispatcher.useEffect(create, createDeps);
2797
+ react_production.useEffect = function (create, deps) {
2798
+ return ReactSharedInternals.H.useEffect(create, deps);
2799
+ };
2800
+ react_production.useEffectEvent = function (callback) {
2801
+ return ReactSharedInternals.H.useEffectEvent(callback);
2806
2802
  };
2807
2803
  react_production.useId = function () {
2808
2804
  return ReactSharedInternals.H.useId();
@@ -2845,7 +2841,7 @@ function requireReact_production () {
2845
2841
  react_production.useTransition = function () {
2846
2842
  return ReactSharedInternals.H.useTransition();
2847
2843
  };
2848
- react_production.version = "19.1.0";
2844
+ react_production.version = "19.2.0";
2849
2845
  return react_production;
2850
2846
  }
2851
2847
 
@@ -2916,6 +2912,7 @@ function requireReact_development () {
2916
2912
  this.refs = emptyObject;
2917
2913
  this.updater = updater || ReactNoopUpdateQueue;
2918
2914
  }
2915
+ function noop() {}
2919
2916
  function testStringCoercion(value) {
2920
2917
  return "" + value;
2921
2918
  }
@@ -2975,7 +2972,7 @@ function requireReact_development () {
2975
2972
  case REACT_PORTAL_TYPE:
2976
2973
  return "Portal";
2977
2974
  case REACT_CONTEXT_TYPE:
2978
- return (type.displayName || "Context") + ".Provider";
2975
+ return type.displayName || "Context";
2979
2976
  case REACT_CONSUMER_TYPE:
2980
2977
  return (type._context.displayName || "Context") + ".Consumer";
2981
2978
  case REACT_FORWARD_REF_TYPE:
@@ -3055,17 +3052,8 @@ function requireReact_development () {
3055
3052
  componentName = this.props.ref;
3056
3053
  return void 0 !== componentName ? componentName : null;
3057
3054
  }
3058
- function ReactElement(
3059
- type,
3060
- key,
3061
- self,
3062
- source,
3063
- owner,
3064
- props,
3065
- debugStack,
3066
- debugTask
3067
- ) {
3068
- self = props.ref;
3055
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
3056
+ var refProp = props.ref;
3069
3057
  type = {
3070
3058
  $$typeof: REACT_ELEMENT_TYPE,
3071
3059
  type: type,
@@ -3073,7 +3061,7 @@ function requireReact_development () {
3073
3061
  props: props,
3074
3062
  _owner: owner
3075
3063
  };
3076
- null !== (void 0 !== self ? self : null)
3064
+ null !== (void 0 !== refProp ? refProp : null)
3077
3065
  ? Object.defineProperty(type, "ref", {
3078
3066
  enumerable: false,
3079
3067
  get: elementRefGetterWithDeprecationWarning
@@ -3111,10 +3099,8 @@ function requireReact_development () {
3111
3099
  newKey = ReactElement(
3112
3100
  oldElement.type,
3113
3101
  newKey,
3114
- void 0,
3115
- void 0,
3116
- oldElement._owner,
3117
3102
  oldElement.props,
3103
+ oldElement._owner,
3118
3104
  oldElement._debugStack,
3119
3105
  oldElement._debugTask
3120
3106
  );
@@ -3122,6 +3108,18 @@ function requireReact_development () {
3122
3108
  (newKey._store.validated = oldElement._store.validated);
3123
3109
  return newKey;
3124
3110
  }
3111
+ function validateChildKeys(node) {
3112
+ isValidElement(node)
3113
+ ? node._store && (node._store.validated = 1)
3114
+ : "object" === typeof node &&
3115
+ null !== node &&
3116
+ node.$$typeof === REACT_LAZY_TYPE &&
3117
+ ("fulfilled" === node._payload.status
3118
+ ? isValidElement(node._payload.value) &&
3119
+ node._payload.value._store &&
3120
+ (node._payload.value._store.validated = 1)
3121
+ : node._store && (node._store.validated = 1));
3122
+ }
3125
3123
  function isValidElement(object) {
3126
3124
  return (
3127
3125
  "object" === typeof object &&
@@ -3145,7 +3143,6 @@ function requireReact_development () {
3145
3143
  ? (checkKeyStringCoercion(element.key), escape("" + element.key))
3146
3144
  : index.toString(36);
3147
3145
  }
3148
- function noop$1() {}
3149
3146
  function resolveThenable(thenable) {
3150
3147
  switch (thenable.status) {
3151
3148
  case "fulfilled":
@@ -3155,7 +3152,7 @@ function requireReact_development () {
3155
3152
  default:
3156
3153
  switch (
3157
3154
  ("string" === typeof thenable.status
3158
- ? thenable.then(noop$1, noop$1)
3155
+ ? thenable.then(noop, noop)
3159
3156
  : ((thenable.status = "pending"),
3160
3157
  thenable.then(
3161
3158
  function (fulfilledValue) {
@@ -3317,35 +3314,56 @@ function requireReact_development () {
3317
3314
  }
3318
3315
  function lazyInitializer(payload) {
3319
3316
  if (-1 === payload._status) {
3320
- var ctor = payload._result;
3321
- ctor = ctor();
3322
- ctor.then(
3317
+ var ioInfo = payload._ioInfo;
3318
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
3319
+ ioInfo = payload._result;
3320
+ var thenable = ioInfo();
3321
+ thenable.then(
3323
3322
  function (moduleObject) {
3324
- if (0 === payload._status || -1 === payload._status)
3325
- (payload._status = 1), (payload._result = moduleObject);
3323
+ if (0 === payload._status || -1 === payload._status) {
3324
+ payload._status = 1;
3325
+ payload._result = moduleObject;
3326
+ var _ioInfo = payload._ioInfo;
3327
+ null != _ioInfo && (_ioInfo.end = performance.now());
3328
+ void 0 === thenable.status &&
3329
+ ((thenable.status = "fulfilled"),
3330
+ (thenable.value = moduleObject));
3331
+ }
3326
3332
  },
3327
3333
  function (error) {
3328
- if (0 === payload._status || -1 === payload._status)
3329
- (payload._status = 2), (payload._result = error);
3334
+ if (0 === payload._status || -1 === payload._status) {
3335
+ payload._status = 2;
3336
+ payload._result = error;
3337
+ var _ioInfo2 = payload._ioInfo;
3338
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
3339
+ void 0 === thenable.status &&
3340
+ ((thenable.status = "rejected"), (thenable.reason = error));
3341
+ }
3330
3342
  }
3331
3343
  );
3344
+ ioInfo = payload._ioInfo;
3345
+ if (null != ioInfo) {
3346
+ ioInfo.value = thenable;
3347
+ var displayName = thenable.displayName;
3348
+ "string" === typeof displayName && (ioInfo.name = displayName);
3349
+ }
3332
3350
  -1 === payload._status &&
3333
- ((payload._status = 0), (payload._result = ctor));
3351
+ ((payload._status = 0), (payload._result = thenable));
3334
3352
  }
3335
3353
  if (1 === payload._status)
3336
3354
  return (
3337
- (ctor = payload._result),
3338
- void 0 === ctor &&
3355
+ (ioInfo = payload._result),
3356
+ void 0 === ioInfo &&
3339
3357
  console.error(
3340
3358
  "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?",
3341
- ctor
3359
+ ioInfo
3342
3360
  ),
3343
- "default" in ctor ||
3361
+ "default" in ioInfo ||
3344
3362
  console.error(
3345
3363
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
3346
- ctor
3364
+ ioInfo
3347
3365
  ),
3348
- ctor.default
3366
+ ioInfo.default
3349
3367
  );
3350
3368
  throw payload._result;
3351
3369
  }
@@ -3357,7 +3375,9 @@ function requireReact_development () {
3357
3375
  );
3358
3376
  return dispatcher;
3359
3377
  }
3360
- function noop() {}
3378
+ function releaseAsyncTransition() {
3379
+ ReactSharedInternals.asyncTransitions--;
3380
+ }
3361
3381
  function enqueueTask(task) {
3362
3382
  if (null === enqueueTaskImpl)
3363
3383
  try {
@@ -3449,8 +3469,8 @@ function requireReact_development () {
3449
3469
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
3450
3470
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
3451
3471
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
3452
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
3453
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
3472
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
3473
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
3454
3474
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
3455
3475
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
3456
3476
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
@@ -3493,16 +3513,15 @@ function requireReact_development () {
3493
3513
  this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
3494
3514
  };
3495
3515
  var deprecatedAPIs = {
3496
- isMounted: [
3497
- "isMounted",
3498
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
3499
- ],
3500
- replaceState: [
3501
- "replaceState",
3502
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
3503
- ]
3504
- },
3505
- fnName;
3516
+ isMounted: [
3517
+ "isMounted",
3518
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
3519
+ ],
3520
+ replaceState: [
3521
+ "replaceState",
3522
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
3523
+ ]
3524
+ };
3506
3525
  for (fnName in deprecatedAPIs)
3507
3526
  deprecatedAPIs.hasOwnProperty(fnName) &&
3508
3527
  defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
@@ -3518,8 +3537,8 @@ function requireReact_development () {
3518
3537
  A: null,
3519
3538
  T: null,
3520
3539
  S: null,
3521
- V: null,
3522
3540
  actQueue: null,
3541
+ asyncTransitions: 0,
3523
3542
  isBatchingLegacy: false,
3524
3543
  didScheduleLegacyUpdate: false,
3525
3544
  didUsePromise: false,
@@ -3534,15 +3553,16 @@ function requireReact_development () {
3534
3553
  return null;
3535
3554
  };
3536
3555
  deprecatedAPIs = {
3537
- "react-stack-bottom-frame": function (callStackForError) {
3556
+ react_stack_bottom_frame: function (callStackForError) {
3538
3557
  return callStackForError();
3539
3558
  }
3540
3559
  };
3541
3560
  var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
3542
3561
  var didWarnAboutElementRef = {};
3543
- var unknownOwnerDebugStack = deprecatedAPIs[
3544
- "react-stack-bottom-frame"
3545
- ].bind(deprecatedAPIs, UnknownOwner)();
3562
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
3563
+ deprecatedAPIs,
3564
+ UnknownOwner
3565
+ )();
3546
3566
  var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
3547
3567
  var didWarnAboutMaps = false,
3548
3568
  userProvidedKeyEscapeRegex = /\/+/g,
@@ -3594,7 +3614,7 @@ function requireReact_development () {
3594
3614
  return resolveDispatcher().useMemoCache(size);
3595
3615
  }
3596
3616
  });
3597
- exports.Children = {
3617
+ var fnName = {
3598
3618
  map: mapChildren,
3599
3619
  forEach: function (children, forEachFunc, forEachContext) {
3600
3620
  mapChildren(
@@ -3627,6 +3647,8 @@ function requireReact_development () {
3627
3647
  return children;
3628
3648
  }
3629
3649
  };
3650
+ exports.Activity = REACT_ACTIVITY_TYPE;
3651
+ exports.Children = fnName;
3630
3652
  exports.Component = Component;
3631
3653
  exports.Fragment = REACT_FRAGMENT_TYPE;
3632
3654
  exports.Profiler = REACT_PROFILER_TYPE;
@@ -3752,6 +3774,9 @@ function requireReact_development () {
3752
3774
  return fn.apply(null, arguments);
3753
3775
  };
3754
3776
  };
3777
+ exports.cacheSignal = function () {
3778
+ return null;
3779
+ };
3755
3780
  exports.captureOwnerStack = function () {
3756
3781
  var getCurrentStack = ReactSharedInternals.getCurrentStack;
3757
3782
  return null === getCurrentStack ? null : getCurrentStack();
@@ -3804,16 +3829,13 @@ function requireReact_development () {
3804
3829
  props = ReactElement(
3805
3830
  element.type,
3806
3831
  key,
3807
- void 0,
3808
- void 0,
3809
- owner,
3810
3832
  props,
3833
+ owner,
3811
3834
  element._debugStack,
3812
3835
  element._debugTask
3813
3836
  );
3814
3837
  for (key = 2; key < arguments.length; key++)
3815
- (owner = arguments[key]),
3816
- isValidElement(owner) && owner._store && (owner._store.validated = 1);
3838
+ validateChildKeys(arguments[key]);
3817
3839
  return props;
3818
3840
  };
3819
3841
  exports.createContext = function (defaultValue) {
@@ -3835,12 +3857,10 @@ function requireReact_development () {
3835
3857
  return defaultValue;
3836
3858
  };
3837
3859
  exports.createElement = function (type, config, children) {
3838
- for (var i = 2; i < arguments.length; i++) {
3839
- var node = arguments[i];
3840
- isValidElement(node) && node._store && (node._store.validated = 1);
3841
- }
3860
+ for (var i = 2; i < arguments.length; i++)
3861
+ validateChildKeys(arguments[i]);
3842
3862
  i = {};
3843
- node = null;
3863
+ var key = null;
3844
3864
  if (null != config)
3845
3865
  for (propName in (didWarnAboutOldJSXRuntime ||
3846
3866
  !("__self" in config) ||
@@ -3850,7 +3870,7 @@ function requireReact_development () {
3850
3870
  "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"
3851
3871
  )),
3852
3872
  hasValidKey(config) &&
3853
- (checkKeyStringCoercion(config.key), (node = "" + config.key)),
3873
+ (checkKeyStringCoercion(config.key), (key = "" + config.key)),
3854
3874
  config))
3855
3875
  hasOwnProperty.call(config, propName) &&
3856
3876
  "key" !== propName &&
@@ -3872,7 +3892,7 @@ function requireReact_development () {
3872
3892
  if (type && type.defaultProps)
3873
3893
  for (propName in ((childrenLength = type.defaultProps), childrenLength))
3874
3894
  void 0 === i[propName] && (i[propName] = childrenLength[propName]);
3875
- node &&
3895
+ key &&
3876
3896
  defineKeyPropWarningGetter(
3877
3897
  i,
3878
3898
  "function" === typeof type
@@ -3882,11 +3902,9 @@ function requireReact_development () {
3882
3902
  var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
3883
3903
  return ReactElement(
3884
3904
  type,
3885
- node,
3886
- void 0,
3887
- void 0,
3888
- getOwner(),
3905
+ key,
3889
3906
  i,
3907
+ getOwner(),
3890
3908
  propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
3891
3909
  propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
3892
3910
  );
@@ -3939,11 +3957,24 @@ function requireReact_development () {
3939
3957
  };
3940
3958
  exports.isValidElement = isValidElement;
3941
3959
  exports.lazy = function (ctor) {
3942
- return {
3943
- $$typeof: REACT_LAZY_TYPE,
3944
- _payload: { _status: -1, _result: ctor },
3945
- _init: lazyInitializer
3946
- };
3960
+ ctor = { _status: -1, _result: ctor };
3961
+ var lazyType = {
3962
+ $$typeof: REACT_LAZY_TYPE,
3963
+ _payload: ctor,
3964
+ _init: lazyInitializer
3965
+ },
3966
+ ioInfo = {
3967
+ name: "lazy",
3968
+ start: -1,
3969
+ end: -1,
3970
+ value: null,
3971
+ owner: null,
3972
+ debugStack: Error("react-stack-top-frame"),
3973
+ debugTask: console.createTask ? console.createTask("lazy()") : null
3974
+ };
3975
+ ctor._ioInfo = ioInfo;
3976
+ lazyType._debugInfo = [{ awaited: ioInfo }];
3977
+ return lazyType;
3947
3978
  };
3948
3979
  exports.memo = function (type, compare) {
3949
3980
  null == type &&
@@ -3976,8 +4007,8 @@ function requireReact_development () {
3976
4007
  exports.startTransition = function (scope) {
3977
4008
  var prevTransition = ReactSharedInternals.T,
3978
4009
  currentTransition = {};
3979
- ReactSharedInternals.T = currentTransition;
3980
4010
  currentTransition._updatedFibers = new Set();
4011
+ ReactSharedInternals.T = currentTransition;
3981
4012
  try {
3982
4013
  var returnValue = scope(),
3983
4014
  onStartTransitionFinish = ReactSharedInternals.S;
@@ -3986,7 +4017,9 @@ function requireReact_development () {
3986
4017
  "object" === typeof returnValue &&
3987
4018
  null !== returnValue &&
3988
4019
  "function" === typeof returnValue.then &&
3989
- returnValue.then(noop, reportGlobalError);
4020
+ (ReactSharedInternals.asyncTransitions++,
4021
+ returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
4022
+ returnValue.then(noop, reportGlobalError));
3990
4023
  } catch (error) {
3991
4024
  reportGlobalError(error);
3992
4025
  } finally {
@@ -3998,6 +4031,14 @@ function requireReact_development () {
3998
4031
  console.warn(
3999
4032
  "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."
4000
4033
  )),
4034
+ null !== prevTransition &&
4035
+ null !== currentTransition.types &&
4036
+ (null !== prevTransition.types &&
4037
+ prevTransition.types !== currentTransition.types &&
4038
+ console.error(
4039
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
4040
+ ),
4041
+ (prevTransition.types = currentTransition.types)),
4001
4042
  (ReactSharedInternals.T = prevTransition);
4002
4043
  }
4003
4044
  };
@@ -4031,17 +4072,15 @@ function requireReact_development () {
4031
4072
  exports.useDeferredValue = function (value, initialValue) {
4032
4073
  return resolveDispatcher().useDeferredValue(value, initialValue);
4033
4074
  };
4034
- exports.useEffect = function (create, createDeps, update) {
4075
+ exports.useEffect = function (create, deps) {
4035
4076
  null == create &&
4036
4077
  console.warn(
4037
4078
  "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
4038
4079
  );
4039
- var dispatcher = resolveDispatcher();
4040
- if ("function" === typeof update)
4041
- throw Error(
4042
- "useEffect CRUD overload is not enabled in this build of React."
4043
- );
4044
- return dispatcher.useEffect(create, createDeps);
4080
+ return resolveDispatcher().useEffect(create, deps);
4081
+ };
4082
+ exports.useEffectEvent = function (callback) {
4083
+ return resolveDispatcher().useEffectEvent(callback);
4045
4084
  };
4046
4085
  exports.useId = function () {
4047
4086
  return resolveDispatcher().useId();
@@ -4092,7 +4131,7 @@ function requireReact_development () {
4092
4131
  exports.useTransition = function () {
4093
4132
  return resolveDispatcher().useTransition();
4094
4133
  };
4095
- exports.version = "19.1.0";
4134
+ exports.version = "19.2.0";
4096
4135
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
4097
4136
  "function" ===
4098
4137
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&