react 19.0.0-canary-fd0da3eef-20240404 → 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,13 +1036,34 @@ 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
- 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
+ }
1066
+ }
1049
1067
  }
1050
1068
  }
1051
1069
 
@@ -1174,9 +1192,17 @@ function validateExplicitKey(element, parentType) {
1174
1192
 
1175
1193
  var childOwner = '';
1176
1194
 
1177
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1178
- // Give the component that originally created this child.
1179
- 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 + ".";
1180
1206
  }
1181
1207
 
1182
1208
  setCurrentlyValidatingElement(element);
@@ -1190,8 +1216,7 @@ function validateExplicitKey(element, parentType) {
1190
1216
  function setCurrentlyValidatingElement(element) {
1191
1217
  {
1192
1218
  if (element) {
1193
- var owner = element._owner;
1194
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1219
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1195
1220
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1196
1221
  } else {
1197
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,13 +1060,34 @@ 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
- 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
+ }
1090
+ }
1073
1091
  }
1074
1092
  }
1075
1093
 
@@ -1198,9 +1216,17 @@ function validateExplicitKey(element, parentType) {
1198
1216
 
1199
1217
  var childOwner = '';
1200
1218
 
1201
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1202
- // Give the component that originally created this child.
1203
- 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 + ".";
1204
1230
  }
1205
1231
 
1206
1232
  setCurrentlyValidatingElement(element);
@@ -1214,8 +1240,7 @@ function validateExplicitKey(element, parentType) {
1214
1240
  function setCurrentlyValidatingElement(element) {
1215
1241
  {
1216
1242
  if (element) {
1217
- var owner = element._owner;
1218
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1243
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1219
1244
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1220
1245
  } else {
1221
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,11 +115,32 @@ 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
- 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
+ }
143
+ }
129
144
  }
130
145
  }
131
146
 
@@ -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,GAEEC,CAAA,CAAMD,CAAN,CAFF,CAEoBF,CAAA,CAAOE,CAAP,CAFpB,CAvDMK,EAAAA,CA6D6EJ,CA7D7DK,CAAAA,GA6DxB,OAnDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KA+CgBA,CAnDRU,CAKRL,IA8CsBA,CAnDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA4CiFA,CAnDzEM,CAqB2B,CAsCzCE,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,11 +115,32 @@ 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
- 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
+ }
143
+ }
129
144
  }
130
145
  }
131
146
 
@@ -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,GAEEC,CAAA,CAAMD,CAAN,CAFF,CAEoBF,CAAA,CAAOE,CAAP,CAFpB,CAvDMK,EAAAA,CA6D6EJ,CA7D7DK,CAAAA,GA6DxB,OAnDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KA+CgBA,CAnDRU,CAKRL,IA8CsBA,CAnDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA4CiFA,CAnDzEM,CAqB2B,CAsCzCE,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,13 +1060,34 @@ 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
- 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
+ }
1090
+ }
1073
1091
  }
1074
1092
  }
1075
1093
 
@@ -1198,9 +1216,17 @@ function validateExplicitKey(element, parentType) {
1198
1216
 
1199
1217
  var childOwner = '';
1200
1218
 
1201
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1202
- // Give the component that originally created this child.
1203
- 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 + ".";
1204
1230
  }
1205
1231
 
1206
1232
  setCurrentlyValidatingElement(element);
@@ -1214,8 +1240,7 @@ function validateExplicitKey(element, parentType) {
1214
1240
  function setCurrentlyValidatingElement(element) {
1215
1241
  {
1216
1242
  if (element) {
1217
- var owner = element._owner;
1218
- var stack = describeUnknownElementTypeFrameInDEV(element.type, owner ? owner.type : null);
1243
+ var stack = describeUnknownElementTypeFrameInDEV(element.type);
1219
1244
  ReactDebugCurrentFrame.setExtraStackFrame(stack);
1220
1245
  } else {
1221
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,11 +115,32 @@ 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
- 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
+ }
143
+ }
129
144
  }
130
145
  }
131
146
 
@@ -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,GAEEC,CAAA,CAAMD,CAAN,CAFF,CAEoBF,CAAA,CAAOE,CAAP,CAFpB,CAvDMK,EAAAA,CA6D6EJ,CA7D7DK,CAAAA,GA6DxB,OAnDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KA+CgBA,CAnDRU,CAKRL,IA8CsBA,CAnDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA4CiFA,CAnDzEM,CAqB2B,CAuCzCE,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]}