react 19.0.0-canary-e3ebcd54b-20240405 → 19.0.0-canary-4c12339ce-20240408

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.
@@ -421,7 +421,7 @@ function reenableLogs() {
421
421
 
422
422
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
423
423
  var prefix;
424
- function describeBuiltInComponentFrame(name, ownerFn) {
424
+ function describeBuiltInComponentFrame(name) {
425
425
  {
426
426
  if (prefix === undefined) {
427
427
  // Extract the VM specific prefix used by each line.
@@ -685,7 +685,7 @@ function describeNativeComponentFrame(fn, construct) {
685
685
 
686
686
  return syntheticFrame;
687
687
  }
688
- function describeFunctionComponentFrame(fn, ownerFn) {
688
+ function describeFunctionComponentFrame(fn) {
689
689
  {
690
690
  return describeNativeComponentFrame(fn, false);
691
691
  }
@@ -696,7 +696,7 @@ function shouldConstruct(Component) {
696
696
  return !!(prototype && prototype.isReactComponent);
697
697
  }
698
698
 
699
- function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
699
+ function describeUnknownElementTypeFrameInDEV(type) {
700
700
 
701
701
  if (type == null) {
702
702
  return '';
@@ -727,7 +727,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
727
727
 
728
728
  case REACT_MEMO_TYPE:
729
729
  // Memo may contain any component type so we recursively resolve it.
730
- return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
730
+ return describeUnknownElementTypeFrameInDEV(type.type);
731
731
 
732
732
  case REACT_LAZY_TYPE:
733
733
  {
@@ -737,7 +737,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
737
737
 
738
738
  try {
739
739
  // Lazy may contain any component type so we recursively resolve it.
740
- return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn);
740
+ return describeUnknownElementTypeFrameInDEV(init(payload));
741
741
  } catch (x) {}
742
742
  }
743
743
  }
@@ -1012,9 +1012,6 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
1012
1012
  }
1013
1013
  }
1014
1014
 
1015
- var propName; // Reserved names are extracted
1016
-
1017
- var props = {};
1018
1015
  var key = null;
1019
1016
  var ref = null; // Currently, key can be spread in as a prop. This causes a potential
1020
1017
  // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
@@ -1039,14 +1036,33 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
1039
1036
  key = '' + config.key;
1040
1037
  }
1041
1038
 
1042
- if (hasValidRef(config)) ; // Remaining properties are added to a new props object
1039
+ if (hasValidRef(config)) ;
1043
1040
 
1041
+ var props;
1044
1042
 
1045
- for (propName in config) {
1046
- if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
1047
- propName !== 'key' && (enableRefAsProp )) {
1048
- {
1049
- props[propName] = config[propName];
1043
+ if (!('key' in config)) {
1044
+ // If key was not spread in, we can reuse the original props object. This
1045
+ // only works for `jsx`, not `createElement`, because `jsx` is a compiler
1046
+ // target and the compiler always passes a new object. For `createElement`,
1047
+ // we can't assume a new object is passed every time because it can be
1048
+ // called manually.
1049
+ //
1050
+ // Spreading key is a warning in dev. In a future release, we will not
1051
+ // remove a spread key from the props object. (But we'll still warn.) We'll
1052
+ // always pass the object straight through.
1053
+ props = config;
1054
+ } else {
1055
+ // We need to remove reserved props (key, prop, ref). Create a fresh props
1056
+ // object and copy over all the non-reserved props. We don't use `delete`
1057
+ // because in V8 it will deopt the object to dictionary mode.
1058
+ props = {};
1059
+
1060
+ for (var propName in config) {
1061
+ // Skip over reserved prop names
1062
+ if (propName !== 'key' && (enableRefAsProp )) {
1063
+ {
1064
+ props[propName] = config[propName];
1065
+ }
1050
1066
  }
1051
1067
  }
1052
1068
  }
@@ -1176,9 +1192,17 @@ function validateExplicitKey(element, parentType) {
1176
1192
 
1177
1193
  var childOwner = '';
1178
1194
 
1179
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1180
- // Give the component that originally created this child.
1181
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1195
+ if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) {
1196
+ var ownerName = null;
1197
+
1198
+ if (typeof element._owner.tag === 'number') {
1199
+ ownerName = getComponentNameFromType(element._owner.type);
1200
+ } else if (typeof element._owner.name === 'string') {
1201
+ ownerName = element._owner.name;
1202
+ } // Give the component that originally created this child.
1203
+
1204
+
1205
+ childOwner = " It was passed a child from " + ownerName + ".";
1182
1206
  }
1183
1207
 
1184
1208
  setCurrentlyValidatingElement(element);
@@ -1192,8 +1216,7 @@ function validateExplicitKey(element, parentType) {
1192
1216
  function setCurrentlyValidatingElement(element) {
1193
1217
  {
1194
1218
  if (element) {
1195
- var owner = element._owner;
1196
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1219
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1197
1220
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1198
1221
  } else {
1199
1222
  ReactDebugCurrentFrame.setExtraStackFrame(null);
@@ -421,7 +421,7 @@ function reenableLogs() {
421
421
 
422
422
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
423
423
  var prefix;
424
- function describeBuiltInComponentFrame(name, ownerFn) {
424
+ function describeBuiltInComponentFrame(name) {
425
425
  {
426
426
  if (prefix === undefined) {
427
427
  // Extract the VM specific prefix used by each line.
@@ -685,7 +685,7 @@ function describeNativeComponentFrame(fn, construct) {
685
685
 
686
686
  return syntheticFrame;
687
687
  }
688
- function describeFunctionComponentFrame(fn, ownerFn) {
688
+ function describeFunctionComponentFrame(fn) {
689
689
  {
690
690
  return describeNativeComponentFrame(fn, false);
691
691
  }
@@ -696,7 +696,7 @@ function shouldConstruct(Component) {
696
696
  return !!(prototype && prototype.isReactComponent);
697
697
  }
698
698
 
699
- function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
699
+ function describeUnknownElementTypeFrameInDEV(type) {
700
700
 
701
701
  if (type == null) {
702
702
  return '';
@@ -727,7 +727,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
727
727
 
728
728
  case REACT_MEMO_TYPE:
729
729
  // Memo may contain any component type so we recursively resolve it.
730
- return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
730
+ return describeUnknownElementTypeFrameInDEV(type.type);
731
731
 
732
732
  case REACT_LAZY_TYPE:
733
733
  {
@@ -737,7 +737,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
737
737
 
738
738
  try {
739
739
  // Lazy may contain any component type so we recursively resolve it.
740
- return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn);
740
+ return describeUnknownElementTypeFrameInDEV(init(payload));
741
741
  } catch (x) {}
742
742
  }
743
743
  }
@@ -1036,9 +1036,6 @@ function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
1036
1036
  }
1037
1037
  }
1038
1038
 
1039
- var propName; // Reserved names are extracted
1040
-
1041
- var props = {};
1042
1039
  var key = null;
1043
1040
  var ref = null; // Currently, key can be spread in as a prop. This causes a potential
1044
1041
  // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
@@ -1063,14 +1060,33 @@ function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
1063
1060
  key = '' + config.key;
1064
1061
  }
1065
1062
 
1066
- if (hasValidRef(config)) ; // Remaining properties are added to a new props object
1063
+ if (hasValidRef(config)) ;
1067
1064
 
1065
+ var props;
1068
1066
 
1069
- for (propName in config) {
1070
- if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
1071
- propName !== 'key' && (enableRefAsProp )) {
1072
- {
1073
- props[propName] = config[propName];
1067
+ if (!('key' in config)) {
1068
+ // If key was not spread in, we can reuse the original props object. This
1069
+ // only works for `jsx`, not `createElement`, because `jsx` is a compiler
1070
+ // target and the compiler always passes a new object. For `createElement`,
1071
+ // we can't assume a new object is passed every time because it can be
1072
+ // called manually.
1073
+ //
1074
+ // Spreading key is a warning in dev. In a future release, we will not
1075
+ // remove a spread key from the props object. (But we'll still warn.) We'll
1076
+ // always pass the object straight through.
1077
+ props = config;
1078
+ } else {
1079
+ // We need to remove reserved props (key, prop, ref). Create a fresh props
1080
+ // object and copy over all the non-reserved props. We don't use `delete`
1081
+ // because in V8 it will deopt the object to dictionary mode.
1082
+ props = {};
1083
+
1084
+ for (var propName in config) {
1085
+ // Skip over reserved prop names
1086
+ if (propName !== 'key' && (enableRefAsProp )) {
1087
+ {
1088
+ props[propName] = config[propName];
1089
+ }
1074
1090
  }
1075
1091
  }
1076
1092
  }
@@ -1200,9 +1216,17 @@ function validateExplicitKey(element, parentType) {
1200
1216
 
1201
1217
  var childOwner = '';
1202
1218
 
1203
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1204
- // Give the component that originally created this child.
1205
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1219
+ if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) {
1220
+ var ownerName = null;
1221
+
1222
+ if (typeof element._owner.tag === 'number') {
1223
+ ownerName = getComponentNameFromType(element._owner.type);
1224
+ } else if (typeof element._owner.name === 'string') {
1225
+ ownerName = element._owner.name;
1226
+ } // Give the component that originally created this child.
1227
+
1228
+
1229
+ childOwner = " It was passed a child from " + ownerName + ".";
1206
1230
  }
1207
1231
 
1208
1232
  setCurrentlyValidatingElement(element);
@@ -1216,8 +1240,7 @@ function validateExplicitKey(element, parentType) {
1216
1240
  function setCurrentlyValidatingElement(element) {
1217
1241
  {
1218
1242
  if (element) {
1219
- var owner = element._owner;
1220
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1243
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1221
1244
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1222
1245
  } else {
1223
1246
  ReactDebugCurrentFrame.setExtraStackFrame(null);
@@ -28,9 +28,6 @@ const enableRefAsProp = true;
28
28
 
29
29
  const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
30
 
31
- // $FlowFixMe[method-unbinding]
32
- const hasOwnProperty = Object.prototype.hasOwnProperty;
33
-
34
31
  const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
35
32
 
36
33
  function hasValidKey(config) {
@@ -100,9 +97,6 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
100
97
 
101
98
 
102
99
  function jsxProd(type, config, maybeKey) {
103
- let propName; // Reserved names are extracted
104
-
105
- const props = {};
106
100
  let key = null;
107
101
  let ref = null; // Currently, key can be spread in as a prop. This causes a potential
108
102
  // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
@@ -121,12 +115,31 @@ function jsxProd(type, config, maybeKey) {
121
115
  key = '' + config.key;
122
116
  }
123
117
 
124
-
125
- for (propName in config) {
126
- if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
127
- propName !== 'key' && (enableRefAsProp )) {
128
- {
129
- props[propName] = config[propName];
118
+ let props;
119
+
120
+ if (!('key' in config)) {
121
+ // If key was not spread in, we can reuse the original props object. This
122
+ // only works for `jsx`, not `createElement`, because `jsx` is a compiler
123
+ // target and the compiler always passes a new object. For `createElement`,
124
+ // we can't assume a new object is passed every time because it can be
125
+ // called manually.
126
+ //
127
+ // Spreading key is a warning in dev. In a future release, we will not
128
+ // remove a spread key from the props object. (But we'll still warn.) We'll
129
+ // always pass the object straight through.
130
+ props = config;
131
+ } else {
132
+ // We need to remove reserved props (key, prop, ref). Create a fresh props
133
+ // object and copy over all the non-reserved props. We don't use `delete`
134
+ // because in V8 it will deopt the object to dictionary mode.
135
+ props = {};
136
+
137
+ for (const propName in config) {
138
+ // Skip over reserved prop names
139
+ if (propName !== 'key' && (enableRefAsProp )) {
140
+ {
141
+ props[propName] = config[propName];
142
+ }
130
143
  }
131
144
  }
132
145
  }
@@ -7,6 +7,6 @@
7
7
  This source code is licensed under the MIT license found in the
8
8
  LICENSE file in the root directory of this source tree.
9
9
  */
10
- 'use strict';require("react");var e=Symbol.for("react.element"),g=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty;function k(l,a,f){var b,c={},d=null;void 0!==f&&(d=""+f);void 0!==a.key&&(d=""+a.key);for(b in a)h.call(a,b)&&"key"!==b&&(c[b]=a[b]);a=c.ref;return{$$typeof:e,type:l,key:d,ref:void 0!==a?a:null,props:c}}exports.Fragment=g;exports.jsx=k;exports.jsxs=k;
10
+ 'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxs=g;
11
11
 
12
12
  //# sourceMappingURL=react-jsx-runtime.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-jsx-runtime.production.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CAD5B,CAaME,EAAiBC,MAAOC,CAAAA,SAAUF,CAAAA,cAsExCG,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,CAAJ,CAEMC,EAAQ,EAFd,CAGIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIJ,CAAJ,GAEEG,CAFF,CAEQ,EAFR,CAEaH,CAFb,CA5EsBI,KAAAA,EAiFtB,GAAgBL,CAjFFI,CAAAA,GAiFd,GAEEA,CAFF,CAEQ,EAFR,CAEaJ,CAAOI,CAAAA,GAFpB,CAMA,KAAKF,CAAL,GAAiBF,EAAjB,CACML,CAAeW,CAAAA,IAAf,CAAoBN,CAApB,CAA4BE,CAA5B,CAAJ,EACa,KADb,GACAA,CADA,GAGIC,CAAA,CAAMD,CAAN,CAHJ,CAGsBF,CAAA,CAAOE,CAAP,CAHtB,CAvDMK,EAAAA,CA+D6EJ,CA/D7DK,CAAAA,GA+DxB,OArDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KAiDgBA,CArDRU,CAKRL,IAgDsBA,CArDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA8CiFA,CArDzEM,CAqB2B,CAwCzCE,OAAQC,CAAAA,QAAR,CAAmBlB,CACnBiB,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.production.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","hasOwnProperty","Object","prototype","jsxProd","type","config","maybeKey","propName","props","key","undefined","call","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
1
+ {"version":3,"file":"react-jsx-runtime.production.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CA+E5BE,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIF,CAAJ,GAEEC,CAFF,CAEQ,EAFR,CAEaD,CAFb,CAzEsBE,KAAAA,EA8EtB,GAAgBH,CA9EFE,CAAAA,GA8Ed,GAEEA,CAFF,CAEQ,EAFR,CAEaF,CAAOE,CAAAA,GAFpB,CAOA,IAAM,KAAN,EAAeF,EAAf,CAWO,CAILI,CAAA,CAAQ,EAER,KAAKC,IAAMA,CAAX,GAAuBL,EAAvB,CAEmB,KAAjB,GAAIK,CAAJ,GAEID,CAAA,CAAMC,CAAN,CAFJ,CAEsBL,CAAA,CAAOK,CAAP,CAFtB,CARG,CAXP,IAUED,EAAA,CAAQJ,CA9DFM,EAAAA,CA+E6EF,CA/E7DG,CAAAA,GA+ExB,OArEYC,CAERC,SAAUf,CAFFc,CAIRT,KAiEgBA,CArERS,CAKRN,IAgEsBA,CArEdM,CAMRD,IAbgBJ,IAAAA,EAAZI,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORJ,MA8DiFA,CArEzEI,CAqB2B,CAwDzCE,OAAQC,CAAAA,QAAR,CAAmBd,CACnBa,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.production.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","undefined","props","propName","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
@@ -28,9 +28,6 @@ const enableRefAsProp = true;
28
28
 
29
29
  const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
30
 
31
- // $FlowFixMe[method-unbinding]
32
- const hasOwnProperty = Object.prototype.hasOwnProperty;
33
-
34
31
  const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
35
32
 
36
33
  function hasValidKey(config) {
@@ -100,9 +97,6 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
100
97
 
101
98
 
102
99
  function jsxProd(type, config, maybeKey) {
103
- let propName; // Reserved names are extracted
104
-
105
- const props = {};
106
100
  let key = null;
107
101
  let ref = null; // Currently, key can be spread in as a prop. This causes a potential
108
102
  // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
@@ -121,12 +115,31 @@ function jsxProd(type, config, maybeKey) {
121
115
  key = '' + config.key;
122
116
  }
123
117
 
124
-
125
- for (propName in config) {
126
- if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
127
- propName !== 'key' && (enableRefAsProp )) {
128
- {
129
- props[propName] = config[propName];
118
+ let props;
119
+
120
+ if (!('key' in config)) {
121
+ // If key was not spread in, we can reuse the original props object. This
122
+ // only works for `jsx`, not `createElement`, because `jsx` is a compiler
123
+ // target and the compiler always passes a new object. For `createElement`,
124
+ // we can't assume a new object is passed every time because it can be
125
+ // called manually.
126
+ //
127
+ // Spreading key is a warning in dev. In a future release, we will not
128
+ // remove a spread key from the props object. (But we'll still warn.) We'll
129
+ // always pass the object straight through.
130
+ props = config;
131
+ } else {
132
+ // We need to remove reserved props (key, prop, ref). Create a fresh props
133
+ // object and copy over all the non-reserved props. We don't use `delete`
134
+ // because in V8 it will deopt the object to dictionary mode.
135
+ props = {};
136
+
137
+ for (const propName in config) {
138
+ // Skip over reserved prop names
139
+ if (propName !== 'key' && (enableRefAsProp )) {
140
+ {
141
+ props[propName] = config[propName];
142
+ }
130
143
  }
131
144
  }
132
145
  }
@@ -7,6 +7,6 @@
7
7
  This source code is licensed under the MIT license found in the
8
8
  LICENSE file in the root directory of this source tree.
9
9
  */
10
- 'use strict';require("react");var e=Symbol.for("react.element"),g=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty;function k(l,a,f){var b,c={},d=null;void 0!==f&&(d=""+f);void 0!==a.key&&(d=""+a.key);for(b in a)h.call(a,b)&&"key"!==b&&(c[b]=a[b]);a=c.ref;return{$$typeof:e,type:l,key:d,ref:void 0!==a?a:null,props:c}}exports.Fragment=g;exports.jsx=k;exports.jsxs=k;
10
+ 'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxs=g;
11
11
 
12
12
  //# sourceMappingURL=react-jsx-runtime.profiling.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-jsx-runtime.profiling.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CAD5B,CAaME,EAAiBC,MAAOC,CAAAA,SAAUF,CAAAA,cAsExCG,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,CAAJ,CAEMC,EAAQ,EAFd,CAGIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIJ,CAAJ,GAEEG,CAFF,CAEQ,EAFR,CAEaH,CAFb,CA5EsBI,KAAAA,EAiFtB,GAAgBL,CAjFFI,CAAAA,GAiFd,GAEEA,CAFF,CAEQ,EAFR,CAEaJ,CAAOI,CAAAA,GAFpB,CAMA,KAAKF,CAAL,GAAiBF,EAAjB,CACML,CAAeW,CAAAA,IAAf,CAAoBN,CAApB,CAA4BE,CAA5B,CAAJ,EACa,KADb,GACAA,CADA,GAGIC,CAAA,CAAMD,CAAN,CAHJ,CAGsBF,CAAA,CAAOE,CAAP,CAHtB,CAvDMK,EAAAA,CA+D6EJ,CA/D7DK,CAAAA,GA+DxB,OArDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KAiDgBA,CArDRU,CAKRL,IAgDsBA,CArDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA8CiFA,CArDzEM,CAqB2B,CAwCzCE,OAAQC,CAAAA,QAAR,CAAmBlB,CACnBiB,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.profiling.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","hasOwnProperty","Object","prototype","jsxProd","type","config","maybeKey","propName","props","key","undefined","call","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
1
+ {"version":3,"file":"react-jsx-runtime.profiling.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CA+E5BE,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIF,CAAJ,GAEEC,CAFF,CAEQ,EAFR,CAEaD,CAFb,CAzEsBE,KAAAA,EA8EtB,GAAgBH,CA9EFE,CAAAA,GA8Ed,GAEEA,CAFF,CAEQ,EAFR,CAEaF,CAAOE,CAAAA,GAFpB,CAOA,IAAM,KAAN,EAAeF,EAAf,CAWO,CAILI,CAAA,CAAQ,EAER,KAAKC,IAAMA,CAAX,GAAuBL,EAAvB,CAEmB,KAAjB,GAAIK,CAAJ,GAEID,CAAA,CAAMC,CAAN,CAFJ,CAEsBL,CAAA,CAAOK,CAAP,CAFtB,CARG,CAXP,IAUED,EAAA,CAAQJ,CA9DFM,EAAAA,CA+E6EF,CA/E7DG,CAAAA,GA+ExB,OArEYC,CAERC,SAAUf,CAFFc,CAIRT,KAiEgBA,CArERS,CAKRN,IAgEsBA,CArEdM,CAMRD,IAbgBJ,IAAAA,EAAZI,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORJ,MA8DiFA,CArEzEI,CAqB2B,CAwDzCE,OAAQC,CAAAA,QAAR,CAAmBd,CACnBa,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.profiling.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","undefined","props","propName","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
@@ -421,7 +421,7 @@ function reenableLogs() {
421
421
 
422
422
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
423
423
  var prefix;
424
- function describeBuiltInComponentFrame(name, ownerFn) {
424
+ function describeBuiltInComponentFrame(name) {
425
425
  {
426
426
  if (prefix === undefined) {
427
427
  // Extract the VM specific prefix used by each line.
@@ -685,7 +685,7 @@ function describeNativeComponentFrame(fn, construct) {
685
685
 
686
686
  return syntheticFrame;
687
687
  }
688
- function describeFunctionComponentFrame(fn, ownerFn) {
688
+ function describeFunctionComponentFrame(fn) {
689
689
  {
690
690
  return describeNativeComponentFrame(fn, false);
691
691
  }
@@ -696,7 +696,7 @@ function shouldConstruct(Component) {
696
696
  return !!(prototype && prototype.isReactComponent);
697
697
  }
698
698
 
699
- function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
699
+ function describeUnknownElementTypeFrameInDEV(type) {
700
700
 
701
701
  if (type == null) {
702
702
  return '';
@@ -727,7 +727,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
727
727
 
728
728
  case REACT_MEMO_TYPE:
729
729
  // Memo may contain any component type so we recursively resolve it.
730
- return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
730
+ return describeUnknownElementTypeFrameInDEV(type.type);
731
731
 
732
732
  case REACT_LAZY_TYPE:
733
733
  {
@@ -737,7 +737,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
737
737
 
738
738
  try {
739
739
  // Lazy may contain any component type so we recursively resolve it.
740
- return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn);
740
+ return describeUnknownElementTypeFrameInDEV(init(payload));
741
741
  } catch (x) {}
742
742
  }
743
743
  }
@@ -1036,9 +1036,6 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
1036
1036
  }
1037
1037
  }
1038
1038
 
1039
- var propName; // Reserved names are extracted
1040
-
1041
- var props = {};
1042
1039
  var key = null;
1043
1040
  var ref = null; // Currently, key can be spread in as a prop. This causes a potential
1044
1041
  // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
@@ -1063,14 +1060,33 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
1063
1060
  key = '' + config.key;
1064
1061
  }
1065
1062
 
1066
- if (hasValidRef(config)) ; // Remaining properties are added to a new props object
1063
+ if (hasValidRef(config)) ;
1067
1064
 
1065
+ var props;
1068
1066
 
1069
- for (propName in config) {
1070
- if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
1071
- propName !== 'key' && (enableRefAsProp )) {
1072
- {
1073
- props[propName] = config[propName];
1067
+ if (!('key' in config)) {
1068
+ // If key was not spread in, we can reuse the original props object. This
1069
+ // only works for `jsx`, not `createElement`, because `jsx` is a compiler
1070
+ // target and the compiler always passes a new object. For `createElement`,
1071
+ // we can't assume a new object is passed every time because it can be
1072
+ // called manually.
1073
+ //
1074
+ // Spreading key is a warning in dev. In a future release, we will not
1075
+ // remove a spread key from the props object. (But we'll still warn.) We'll
1076
+ // always pass the object straight through.
1077
+ props = config;
1078
+ } else {
1079
+ // We need to remove reserved props (key, prop, ref). Create a fresh props
1080
+ // object and copy over all the non-reserved props. We don't use `delete`
1081
+ // because in V8 it will deopt the object to dictionary mode.
1082
+ props = {};
1083
+
1084
+ for (var propName in config) {
1085
+ // Skip over reserved prop names
1086
+ if (propName !== 'key' && (enableRefAsProp )) {
1087
+ {
1088
+ props[propName] = config[propName];
1089
+ }
1074
1090
  }
1075
1091
  }
1076
1092
  }
@@ -1200,9 +1216,17 @@ function validateExplicitKey(element, parentType) {
1200
1216
 
1201
1217
  var childOwner = '';
1202
1218
 
1203
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1204
- // Give the component that originally created this child.
1205
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1219
+ if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) {
1220
+ var ownerName = null;
1221
+
1222
+ if (typeof element._owner.tag === 'number') {
1223
+ ownerName = getComponentNameFromType(element._owner.type);
1224
+ } else if (typeof element._owner.name === 'string') {
1225
+ ownerName = element._owner.name;
1226
+ } // Give the component that originally created this child.
1227
+
1228
+
1229
+ childOwner = " It was passed a child from " + ownerName + ".";
1206
1230
  }
1207
1231
 
1208
1232
  setCurrentlyValidatingElement(element);
@@ -1216,8 +1240,7 @@ function validateExplicitKey(element, parentType) {
1216
1240
  function setCurrentlyValidatingElement(element) {
1217
1241
  {
1218
1242
  if (element) {
1219
- var owner = element._owner;
1220
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1243
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1221
1244
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1222
1245
  } else {
1223
1246
  ReactDebugCurrentFrame.setExtraStackFrame(null);
@@ -28,9 +28,6 @@ const enableRefAsProp = true;
28
28
 
29
29
  const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
30
30
 
31
- // $FlowFixMe[method-unbinding]
32
- const hasOwnProperty = Object.prototype.hasOwnProperty;
33
-
34
31
  const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
35
32
 
36
33
  function hasValidKey(config) {
@@ -100,9 +97,6 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
100
97
 
101
98
 
102
99
  function jsxProd(type, config, maybeKey) {
103
- let propName; // Reserved names are extracted
104
-
105
- const props = {};
106
100
  let key = null;
107
101
  let ref = null; // Currently, key can be spread in as a prop. This causes a potential
108
102
  // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
@@ -121,12 +115,31 @@ function jsxProd(type, config, maybeKey) {
121
115
  key = '' + config.key;
122
116
  }
123
117
 
124
-
125
- for (propName in config) {
126
- if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
127
- propName !== 'key' && (enableRefAsProp )) {
128
- {
129
- props[propName] = config[propName];
118
+ let props;
119
+
120
+ if (!('key' in config)) {
121
+ // If key was not spread in, we can reuse the original props object. This
122
+ // only works for `jsx`, not `createElement`, because `jsx` is a compiler
123
+ // target and the compiler always passes a new object. For `createElement`,
124
+ // we can't assume a new object is passed every time because it can be
125
+ // called manually.
126
+ //
127
+ // Spreading key is a warning in dev. In a future release, we will not
128
+ // remove a spread key from the props object. (But we'll still warn.) We'll
129
+ // always pass the object straight through.
130
+ props = config;
131
+ } else {
132
+ // We need to remove reserved props (key, prop, ref). Create a fresh props
133
+ // object and copy over all the non-reserved props. We don't use `delete`
134
+ // because in V8 it will deopt the object to dictionary mode.
135
+ props = {};
136
+
137
+ for (const propName in config) {
138
+ // Skip over reserved prop names
139
+ if (propName !== 'key' && (enableRefAsProp )) {
140
+ {
141
+ props[propName] = config[propName];
142
+ }
130
143
  }
131
144
  }
132
145
  }
@@ -7,6 +7,6 @@
7
7
  This source code is licensed under the MIT license found in the
8
8
  LICENSE file in the root directory of this source tree.
9
9
  */
10
- 'use strict';require("react");var e=Symbol.for("react.element"),g=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty;function k(l,a,f){var b,c={},d=null;void 0!==f&&(d=""+f);void 0!==a.key&&(d=""+a.key);for(b in a)h.call(a,b)&&"key"!==b&&(c[b]=a[b]);a=c.ref;return{$$typeof:e,type:l,key:d,ref:void 0!==a?a:null,props:c}}exports.Fragment=g;exports.jsx=k;exports.jsxDEV=void 0;exports.jsxs=k;
10
+ 'use strict';require("react");var e=Symbol.for("react.element"),f=Symbol.for("react.fragment");function g(h,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:e,type:h,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=f;exports.jsx=g;exports.jsxDEV=void 0;exports.jsxs=g;
11
11
 
12
12
  //# sourceMappingURL=react-jsx-runtime.react-server.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-jsx-runtime.react-server.production.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CAD5B,CAaME,EAAiBC,MAAOC,CAAAA,SAAUF,CAAAA,cAsExCG,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,CAAJ,CAEMC,EAAQ,EAFd,CAGIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIJ,CAAJ,GAEEG,CAFF,CAEQ,EAFR,CAEaH,CAFb,CA5EsBI,KAAAA,EAiFtB,GAAgBL,CAjFFI,CAAAA,GAiFd,GAEEA,CAFF,CAEQ,EAFR,CAEaJ,CAAOI,CAAAA,GAFpB,CAMA,KAAKF,CAAL,GAAiBF,EAAjB,CACML,CAAeW,CAAAA,IAAf,CAAoBN,CAApB,CAA4BE,CAA5B,CAAJ,EACa,KADb,GACAA,CADA,GAGIC,CAAA,CAAMD,CAAN,CAHJ,CAGsBF,CAAA,CAAOE,CAAP,CAHtB,CAvDMK,EAAAA,CA+D6EJ,CA/D7DK,CAAAA,GA+DxB,OArDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KAiDgBA,CArDRU,CAKRL,IAgDsBA,CArDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA8CiFA,CArDzEM,CAqB2B,CAyCzCE,OAAQC,CAAAA,QAAR,CAAmBlB,CACnBiB,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,MAAR,CAJeT,IAAAA,EAKfM,QAAQI,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.react-server.production.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","hasOwnProperty","Object","prototype","jsxProd","type","config","maybeKey","propName","props","key","undefined","call","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxDEV","jsxs"],"ignoreList":[0]}
1
+ {"version":3,"file":"react-jsx-runtime.react-server.production.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CA+E5BE,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIF,CAAJ,GAEEC,CAFF,CAEQ,EAFR,CAEaD,CAFb,CAzEsBE,KAAAA,EA8EtB,GAAgBH,CA9EFE,CAAAA,GA8Ed,GAEEA,CAFF,CAEQ,EAFR,CAEaF,CAAOE,CAAAA,GAFpB,CAOA,IAAM,KAAN,EAAeF,EAAf,CAWO,CAILI,CAAA,CAAQ,EAER,KAAKC,IAAMA,CAAX,GAAuBL,EAAvB,CAEmB,KAAjB,GAAIK,CAAJ,GAEID,CAAA,CAAMC,CAAN,CAFJ,CAEsBL,CAAA,CAAOK,CAAP,CAFtB,CARG,CAXP,IAUED,EAAA,CAAQJ,CA9DFM,EAAAA,CA+E6EF,CA/E7DG,CAAAA,GA+ExB,OArEYC,CAERC,SAAUf,CAFFc,CAIRT,KAiEgBA,CArERS,CAKRN,IAgEsBA,CArEdM,CAMRD,IAbgBJ,IAAAA,EAAZI,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORJ,MA8DiFA,CArEzEI,CAqB2B,CAyDzCE,OAAQC,CAAAA,QAAR,CAAmBd,CACnBa,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,MAAR,CAJeV,IAAAA,EAKfO,QAAQI,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.react-server.production.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","undefined","props","propName","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxDEV","jsxs"],"ignoreList":[0]}
@@ -23,7 +23,7 @@ if (
23
23
  ) {
24
24
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
25
25
  }
26
- var ReactVersion = '19.0.0-canary-e3ebcd54b-20240405';
26
+ var ReactVersion = '19.0.0-canary-4c12339ce-20240408';
27
27
 
28
28
  // ATTENTION
29
29
  // When adding new symbols to this file,
@@ -764,7 +764,7 @@ function reenableLogs() {
764
764
 
765
765
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
766
766
  var prefix;
767
- function describeBuiltInComponentFrame(name, ownerFn) {
767
+ function describeBuiltInComponentFrame(name) {
768
768
  {
769
769
  if (prefix === undefined) {
770
770
  // Extract the VM specific prefix used by each line.
@@ -1028,7 +1028,7 @@ function describeNativeComponentFrame(fn, construct) {
1028
1028
 
1029
1029
  return syntheticFrame;
1030
1030
  }
1031
- function describeFunctionComponentFrame(fn, ownerFn) {
1031
+ function describeFunctionComponentFrame(fn) {
1032
1032
  {
1033
1033
  return describeNativeComponentFrame(fn, false);
1034
1034
  }
@@ -1039,7 +1039,7 @@ function shouldConstruct(Component) {
1039
1039
  return !!(prototype && prototype.isReactComponent);
1040
1040
  }
1041
1041
 
1042
- function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
1042
+ function describeUnknownElementTypeFrameInDEV(type) {
1043
1043
 
1044
1044
  if (type == null) {
1045
1045
  return '';
@@ -1070,7 +1070,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
1070
1070
 
1071
1071
  case REACT_MEMO_TYPE:
1072
1072
  // Memo may contain any component type so we recursively resolve it.
1073
- return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
1073
+ return describeUnknownElementTypeFrameInDEV(type.type);
1074
1074
 
1075
1075
  case REACT_LAZY_TYPE:
1076
1076
  {
@@ -1080,7 +1080,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
1080
1080
 
1081
1081
  try {
1082
1082
  // Lazy may contain any component type so we recursively resolve it.
1083
- return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn);
1083
+ return describeUnknownElementTypeFrameInDEV(init(payload));
1084
1084
  } catch (x) {}
1085
1085
  }
1086
1086
  }
@@ -1595,9 +1595,17 @@ function validateExplicitKey(element, parentType) {
1595
1595
 
1596
1596
  var childOwner = '';
1597
1597
 
1598
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1599
- // Give the component that originally created this child.
1600
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1598
+ if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) {
1599
+ var ownerName = null;
1600
+
1601
+ if (typeof element._owner.tag === 'number') {
1602
+ ownerName = getComponentNameFromType(element._owner.type);
1603
+ } else if (typeof element._owner.name === 'string') {
1604
+ ownerName = element._owner.name;
1605
+ } // Give the component that originally created this child.
1606
+
1607
+
1608
+ childOwner = " It was passed a child from " + ownerName + ".";
1601
1609
  }
1602
1610
 
1603
1611
  setCurrentlyValidatingElement(element);
@@ -1611,8 +1619,7 @@ function validateExplicitKey(element, parentType) {
1611
1619
  function setCurrentlyValidatingElement(element) {
1612
1620
  {
1613
1621
  if (element) {
1614
- var owner = element._owner;
1615
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1622
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1616
1623
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1617
1624
  } else {
1618
1625
  ReactDebugCurrentFrame.setExtraStackFrame(null);
@@ -10,7 +10,7 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- var ReactVersion = '19.0.0-canary-e3ebcd54b-20240405';
13
+ var ReactVersion = '19.0.0-canary-4c12339ce-20240408';
14
14
 
15
15
  // ATTENTION
16
16
  // When adding new symbols to this file,
@@ -28,6 +28,6 @@ exports.forwardRef=function(a){return{$$typeof:u,render:a}};exports.isValidEleme
28
28
  exports.startTransition=function(a){var b=K.transition,c=new Set;K.transition={_callbacks:c};var f=K.transition;try{var d=a();"object"===typeof d&&null!==d&&"function"===typeof d.then&&(c.forEach(function(g){return g(f,d)}),d.then(ca,Y))}catch(g){Y(g)}finally{K.transition=b}};exports.unstable_useCacheRefresh=function(){return I.current.useCacheRefresh()};exports.use=function(a){return I.current.use(a)};exports.useActionState=function(a,b,c){return I.current.useActionState(a,b,c)};
29
29
  exports.useCallback=function(a,b){return I.current.useCallback(a,b)};exports.useContext=function(a){return I.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a,b){return I.current.useDeferredValue(a,b)};exports.useEffect=function(a,b){return I.current.useEffect(a,b)};exports.useId=function(){return I.current.useId()};exports.useImperativeHandle=function(a,b,c){return I.current.useImperativeHandle(a,b,c)};
30
30
  exports.useInsertionEffect=function(a,b){return I.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return I.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return I.current.useMemo(a,b)};exports.useOptimistic=function(a,b){return I.current.useOptimistic(a,b)};exports.useReducer=function(a,b,c){return I.current.useReducer(a,b,c)};exports.useRef=function(a){return I.current.useRef(a)};exports.useState=function(a){return I.current.useState(a)};
31
- exports.useSyncExternalStore=function(a,b,c){return I.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return I.current.useTransition()};exports.version="19.0.0-canary-e3ebcd54b-20240405";
31
+ exports.useSyncExternalStore=function(a,b,c){return I.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return I.current.useTransition()};exports.version="19.0.0-canary-4c12339ce-20240408";
32
32
 
33
33
  //# sourceMappingURL=react.production.min.js.map
@@ -628,7 +628,7 @@ function reenableLogs() {
628
628
 
629
629
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
630
630
  var prefix;
631
- function describeBuiltInComponentFrame(name, ownerFn) {
631
+ function describeBuiltInComponentFrame(name) {
632
632
  {
633
633
  if (prefix === undefined) {
634
634
  // Extract the VM specific prefix used by each line.
@@ -892,7 +892,7 @@ function describeNativeComponentFrame(fn, construct) {
892
892
 
893
893
  return syntheticFrame;
894
894
  }
895
- function describeFunctionComponentFrame(fn, ownerFn) {
895
+ function describeFunctionComponentFrame(fn) {
896
896
  {
897
897
  return describeNativeComponentFrame(fn, false);
898
898
  }
@@ -903,7 +903,7 @@ function shouldConstruct(Component) {
903
903
  return !!(prototype && prototype.isReactComponent);
904
904
  }
905
905
 
906
- function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
906
+ function describeUnknownElementTypeFrameInDEV(type) {
907
907
 
908
908
  if (type == null) {
909
909
  return '';
@@ -934,7 +934,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
934
934
 
935
935
  case REACT_MEMO_TYPE:
936
936
  // Memo may contain any component type so we recursively resolve it.
937
- return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
937
+ return describeUnknownElementTypeFrameInDEV(type.type);
938
938
 
939
939
  case REACT_LAZY_TYPE:
940
940
  {
@@ -944,7 +944,7 @@ function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
944
944
 
945
945
  try {
946
946
  // Lazy may contain any component type so we recursively resolve it.
947
- return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn);
947
+ return describeUnknownElementTypeFrameInDEV(init(payload));
948
948
  } catch (x) {}
949
949
  }
950
950
  }
@@ -1459,9 +1459,17 @@ function validateExplicitKey(element, parentType) {
1459
1459
 
1460
1460
  var childOwner = '';
1461
1461
 
1462
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1463
- // Give the component that originally created this child.
1464
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1462
+ if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) {
1463
+ var ownerName = null;
1464
+
1465
+ if (typeof element._owner.tag === 'number') {
1466
+ ownerName = getComponentNameFromType(element._owner.type);
1467
+ } else if (typeof element._owner.name === 'string') {
1468
+ ownerName = element._owner.name;
1469
+ } // Give the component that originally created this child.
1470
+
1471
+
1472
+ childOwner = " It was passed a child from " + ownerName + ".";
1465
1473
  }
1466
1474
 
1467
1475
  setCurrentlyValidatingElement(element);
@@ -1475,8 +1483,7 @@ function validateExplicitKey(element, parentType) {
1475
1483
  function setCurrentlyValidatingElement(element) {
1476
1484
  {
1477
1485
  if (element) {
1478
- var owner = element._owner;
1479
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1486
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1480
1487
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1481
1488
  } else {
1482
1489
  ReactDebugCurrentFrame.setExtraStackFrame(null);
@@ -2298,7 +2305,7 @@ function warnAboutTransitionSubscriptions(prevTransition, currentTransition) {
2298
2305
 
2299
2306
  function noop() {}
2300
2307
 
2301
- var ReactVersion = '19.0.0-canary-e3ebcd54b-20240405';
2308
+ var ReactVersion = '19.0.0-canary-4c12339ce-20240408';
2302
2309
 
2303
2310
  // Patch fetch
2304
2311
  var Children = {
@@ -1070,7 +1070,7 @@ function startTransition(scope, options) {
1070
1070
 
1071
1071
  function noop() {}
1072
1072
 
1073
- var ReactVersion = '19.0.0-canary-e3ebcd54b-20240405';
1073
+ var ReactVersion = '19.0.0-canary-4c12339ce-20240408';
1074
1074
 
1075
1075
  // Patch fetch
1076
1076
  const Children = {
@@ -25,6 +25,6 @@ exports.cloneElement=function(a,b,d){if(null===a||void 0===a)throw Error(v(267,a
25
25
  exports.createElement=function(a,b,d){var c,e={},g=null;if(null!=b)for(c in void 0!==b.key&&(g=""+b.key),b)I.call(b,c)&&"key"!==c&&"__self"!==c&&"__source"!==c&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var k=Array(f),h=0;h<f;h++)k[h]=arguments[h+2];e.children=k}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return K(a,g,null,void 0,void 0,J.current,e)};exports.createRef=function(){return{current:null}};
26
26
  exports.forwardRef=function(a){return{$$typeof:C,render:a}};exports.isValidElement=M;exports.lazy=function(a){return{$$typeof:F,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:E,type:a,compare:void 0===b?null:b}};
27
27
  exports.startTransition=function(a){var b=X.transition,d=new Set;X.transition={_callbacks:d};var c=X.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(d.forEach(function(g){return g(c,e)}),e.then(Z,Y))}catch(g){Y(g)}finally{X.transition=b}};exports.use=function(a){return r.current.use(a)};exports.useActionState=function(a,b,d){return r.current.useActionState(a,b,d)};exports.useCallback=function(a,b){return r.current.useCallback(a,b)};exports.useDebugValue=function(){};
28
- exports.useId=function(){return r.current.useId()};exports.useMemo=function(a,b){return r.current.useMemo(a,b)};exports.version="19.0.0-canary-e3ebcd54b-20240405";
28
+ exports.useId=function(){return r.current.useId()};exports.useMemo=function(a,b){return r.current.useMemo(a,b)};exports.version="19.0.0-canary-4c12339ce-20240408";
29
29
 
30
30
  //# sourceMappingURL=react.react-server.production.min.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "react"
6
6
  ],
7
- "version": "19.0.0-canary-e3ebcd54b-20240405",
7
+ "version": "19.0.0-canary-4c12339ce-20240408",
8
8
  "homepage": "https://react.dev/",
9
9
  "bugs": "https://github.com/facebook/react/issues",
10
10
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}));
15
15
  })(this, (function (exports) { 'use strict';
16
16
 
17
- var ReactVersion = '19.0.0-canary-e3ebcd54b-20240405';
17
+ var ReactVersion = '19.0.0-canary-4c12339ce-20240408';
18
18
 
19
19
  // ATTENTION
20
20
  // When adding new symbols to this file,
@@ -755,7 +755,7 @@
755
755
 
756
756
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
757
757
  var prefix;
758
- function describeBuiltInComponentFrame(name, ownerFn) {
758
+ function describeBuiltInComponentFrame(name) {
759
759
  {
760
760
  if (prefix === undefined) {
761
761
  // Extract the VM specific prefix used by each line.
@@ -1019,7 +1019,7 @@
1019
1019
 
1020
1020
  return syntheticFrame;
1021
1021
  }
1022
- function describeFunctionComponentFrame(fn, ownerFn) {
1022
+ function describeFunctionComponentFrame(fn) {
1023
1023
  {
1024
1024
  return describeNativeComponentFrame(fn, false);
1025
1025
  }
@@ -1030,7 +1030,7 @@
1030
1030
  return !!(prototype && prototype.isReactComponent);
1031
1031
  }
1032
1032
 
1033
- function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
1033
+ function describeUnknownElementTypeFrameInDEV(type) {
1034
1034
 
1035
1035
  if (type == null) {
1036
1036
  return '';
@@ -1061,7 +1061,7 @@
1061
1061
 
1062
1062
  case REACT_MEMO_TYPE:
1063
1063
  // Memo may contain any component type so we recursively resolve it.
1064
- return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
1064
+ return describeUnknownElementTypeFrameInDEV(type.type);
1065
1065
 
1066
1066
  case REACT_LAZY_TYPE:
1067
1067
  {
@@ -1071,7 +1071,7 @@
1071
1071
 
1072
1072
  try {
1073
1073
  // Lazy may contain any component type so we recursively resolve it.
1074
- return describeUnknownElementTypeFrameInDEV(init(payload), ownerFn);
1074
+ return describeUnknownElementTypeFrameInDEV(init(payload));
1075
1075
  } catch (x) {}
1076
1076
  }
1077
1077
  }
@@ -1586,9 +1586,17 @@
1586
1586
 
1587
1587
  var childOwner = '';
1588
1588
 
1589
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1590
- // Give the component that originally created this child.
1591
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1589
+ if (element && element._owner != null && element._owner !== ReactCurrentOwner.current) {
1590
+ var ownerName = null;
1591
+
1592
+ if (typeof element._owner.tag === 'number') {
1593
+ ownerName = getComponentNameFromType(element._owner.type);
1594
+ } else if (typeof element._owner.name === 'string') {
1595
+ ownerName = element._owner.name;
1596
+ } // Give the component that originally created this child.
1597
+
1598
+
1599
+ childOwner = " It was passed a child from " + ownerName + ".";
1592
1600
  }
1593
1601
 
1594
1602
  setCurrentlyValidatingElement(element);
@@ -1602,8 +1610,7 @@
1602
1610
  function setCurrentlyValidatingElement(element) {
1603
1611
  {
1604
1612
  if (element) {
1605
- var owner = element._owner;
1606
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1613
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1607
1614
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1608
1615
  } else {
1609
1616
  ReactDebugCurrentFrame.setExtraStackFrame(null);
@@ -31,4 +31,4 @@ var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var n=Array(f),k
31
31
  (e[d]=b[d]);var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){for(var n=Array(f),k=0;k<f;k++)n[k]=arguments[k+2];e.children=n}if(a&&a.defaultProps)for(d in f=a.defaultProps,f)void 0===e[d]&&(e[d]=f[d]);return M(a,h,null,void 0,void 0,V.current,e)};g.createRef=function(){return{current:null}};g.forwardRef=function(a){return{$$typeof:Da,render:a}};g.isValidElement=O;g.lazy=function(a){return{$$typeof:ca,_payload:{_status:-1,_result:a},_init:va}};g.memo=function(a,b){return{$$typeof:Fa,type:a,
32
32
  compare:void 0===b?null:b}};g.startTransition=function(a,b){b=D.transition;var c=new Set;D.transition={_callbacks:c};var d=D.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(h){return h(d,e)}),e.then(xa,qa))}catch(h){qa(h)}finally{D.transition=b}};g.unstable_useCacheRefresh=function(){return l.current.useCacheRefresh()};g.use=function(a){return l.current.use(a)};g.useActionState=function(a,b,c){return l.current.useActionState(a,b,c)};g.useCallback=
33
33
  function(a,b){return l.current.useCallback(a,b)};g.useContext=function(a){return l.current.useContext(a)};g.useDebugValue=function(a,b){};g.useDeferredValue=function(a,b){return l.current.useDeferredValue(a,b)};g.useEffect=function(a,b){return l.current.useEffect(a,b)};g.useId=function(){return l.current.useId()};g.useImperativeHandle=function(a,b,c){return l.current.useImperativeHandle(a,b,c)};g.useInsertionEffect=function(a,b){return l.current.useInsertionEffect(a,b)};g.useLayoutEffect=function(a,
34
- b){return l.current.useLayoutEffect(a,b)};g.useMemo=function(a,b){return l.current.useMemo(a,b)};g.useOptimistic=function(a,b){return l.current.useOptimistic(a,b)};g.useReducer=function(a,b,c){return l.current.useReducer(a,b,c)};g.useRef=function(a){return l.current.useRef(a)};g.useState=function(a){return l.current.useState(a)};g.useSyncExternalStore=function(a,b,c){return l.current.useSyncExternalStore(a,b,c)};g.useTransition=function(){return l.current.useTransition()};g.version="19.0.0-canary-e3ebcd54b-20240405"})})();
34
+ b){return l.current.useLayoutEffect(a,b)};g.useMemo=function(a,b){return l.current.useMemo(a,b)};g.useOptimistic=function(a,b){return l.current.useOptimistic(a,b)};g.useReducer=function(a,b,c){return l.current.useReducer(a,b,c)};g.useRef=function(a){return l.current.useRef(a)};g.useState=function(a){return l.current.useState(a)};g.useSyncExternalStore=function(a,b,c){return l.current.useSyncExternalStore(a,b,c)};g.useTransition=function(){return l.current.useTransition()};g.version="19.0.0-canary-4c12339ce-20240408"})})();
@@ -31,4 +31,4 @@ var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var n=Array(f),k
31
31
  (e[d]=b[d]);var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){for(var n=Array(f),k=0;k<f;k++)n[k]=arguments[k+2];e.children=n}if(a&&a.defaultProps)for(d in f=a.defaultProps,f)void 0===e[d]&&(e[d]=f[d]);return M(a,h,null,void 0,void 0,V.current,e)};g.createRef=function(){return{current:null}};g.forwardRef=function(a){return{$$typeof:Da,render:a}};g.isValidElement=O;g.lazy=function(a){return{$$typeof:ca,_payload:{_status:-1,_result:a},_init:va}};g.memo=function(a,b){return{$$typeof:Fa,type:a,
32
32
  compare:void 0===b?null:b}};g.startTransition=function(a,b){b=D.transition;var c=new Set;D.transition={_callbacks:c};var d=D.transition;try{var e=a();"object"===typeof e&&null!==e&&"function"===typeof e.then&&(c.forEach(function(h){return h(d,e)}),e.then(xa,qa))}catch(h){qa(h)}finally{D.transition=b}};g.unstable_useCacheRefresh=function(){return l.current.useCacheRefresh()};g.use=function(a){return l.current.use(a)};g.useActionState=function(a,b,c){return l.current.useActionState(a,b,c)};g.useCallback=
33
33
  function(a,b){return l.current.useCallback(a,b)};g.useContext=function(a){return l.current.useContext(a)};g.useDebugValue=function(a,b){};g.useDeferredValue=function(a,b){return l.current.useDeferredValue(a,b)};g.useEffect=function(a,b){return l.current.useEffect(a,b)};g.useId=function(){return l.current.useId()};g.useImperativeHandle=function(a,b,c){return l.current.useImperativeHandle(a,b,c)};g.useInsertionEffect=function(a,b){return l.current.useInsertionEffect(a,b)};g.useLayoutEffect=function(a,
34
- b){return l.current.useLayoutEffect(a,b)};g.useMemo=function(a,b){return l.current.useMemo(a,b)};g.useOptimistic=function(a,b){return l.current.useOptimistic(a,b)};g.useReducer=function(a,b,c){return l.current.useReducer(a,b,c)};g.useRef=function(a){return l.current.useRef(a)};g.useState=function(a){return l.current.useState(a)};g.useSyncExternalStore=function(a,b,c){return l.current.useSyncExternalStore(a,b,c)};g.useTransition=function(){return l.current.useTransition()};g.version="19.0.0-canary-e3ebcd54b-20240405"})})();
34
+ b){return l.current.useLayoutEffect(a,b)};g.useMemo=function(a,b){return l.current.useMemo(a,b)};g.useOptimistic=function(a,b){return l.current.useOptimistic(a,b)};g.useReducer=function(a,b,c){return l.current.useReducer(a,b,c)};g.useRef=function(a){return l.current.useRef(a)};g.useState=function(a){return l.current.useState(a)};g.useSyncExternalStore=function(a,b,c){return l.current.useSyncExternalStore(a,b,c)};g.useTransition=function(){return l.current.useTransition()};g.version="19.0.0-canary-4c12339ce-20240408"})})();