@vxrn/vendor 1.2.47 → 1.2.48
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/package.json +1 -1
- package/react/cjs/react-compiler-runtime.development.js +9 -9
- package/react/cjs/react-compiler-runtime.production.js +4 -4
- package/react/cjs/react-compiler-runtime.profiling.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.development.js +271 -320
- package/react/cjs/react-jsx-dev-runtime.production.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.profiling.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.react-server.development.js +277 -326
- package/react/cjs/react-jsx-dev-runtime.react-server.production.js +19 -19
- package/react/cjs/react-jsx-runtime.development.js +272 -314
- package/react/cjs/react-jsx-runtime.production.js +16 -16
- package/react/cjs/react-jsx-runtime.profiling.js +16 -16
- package/react/cjs/react-jsx-runtime.react-server.development.js +277 -326
- package/react/cjs/react-jsx-runtime.react-server.production.js +19 -19
- package/react/cjs/react.development.js +657 -734
- package/react/cjs/react.production.js +258 -301
- package/react/cjs/react.react-server.development.js +475 -535
- package/react/cjs/react.react-server.production.js +195 -229
- package/react/compiler-runtime.js +9 -9
- package/react/index.js +3 -3
- package/react/jsx-dev-runtime.js +3 -3
- package/react/jsx-dev-runtime.react-server.js +3 -3
- package/react/jsx-runtime.js +3 -3
- package/react/jsx-runtime.react-server.js +3 -3
- package/react/react.react-server.js +3 -3
- package/react-dom/cjs/react-dom-client.development.js +10301 -12280
- package/react-dom/cjs/react-dom-client.production.js +6275 -7412
- package/react-dom/cjs/react-dom-profiling.development.js +10463 -12479
- package/react-dom/cjs/react-dom-profiling.profiling.js +6611 -7839
- package/react-dom/cjs/react-dom-server-legacy.browser.development.js +4015 -4567
- package/react-dom/cjs/react-dom-server-legacy.browser.production.js +2598 -2934
- package/react-dom/cjs/react-dom-server-legacy.node.development.js +4015 -4567
- package/react-dom/cjs/react-dom-server-legacy.node.production.js +2627 -2961
- package/react-dom/cjs/react-dom-server.browser.development.js +4132 -4771
- package/react-dom/cjs/react-dom-server.browser.production.js +2725 -3092
- package/react-dom/cjs/react-dom-server.bun.development.js +4000 -4466
- package/react-dom/cjs/react-dom-server.bun.production.js +2629 -2967
- package/react-dom/cjs/react-dom-server.edge.development.js +4137 -4780
- package/react-dom/cjs/react-dom-server.edge.production.js +2760 -3123
- package/react-dom/cjs/react-dom-server.node.development.js +4102 -4707
- package/react-dom/cjs/react-dom-server.node.production.js +2739 -3092
- package/react-dom/cjs/react-dom-test-utils.development.js +9 -9
- package/react-dom/cjs/react-dom-test-utils.production.js +7 -7
- package/react-dom/cjs/react-dom.development.js +185 -225
- package/react-dom/cjs/react-dom.production.js +88 -111
- package/react-dom/cjs/react-dom.react-server.development.js +145 -180
- package/react-dom/cjs/react-dom.react-server.production.js +60 -79
- package/react-dom/client.js +8 -8
- package/react-dom/client.react-server.js +2 -4
- package/react-dom/index.js +8 -8
- package/react-dom/profiling.js +8 -8
- package/react-dom/profiling.react-server.js +2 -4
- package/react-dom/react-dom.react-server.js +3 -3
- package/react-dom/server.browser.js +11 -11
- package/react-dom/server.bun.js +12 -12
- package/react-dom/server.edge.js +12 -12
- package/react-dom/server.js +2 -2
- package/react-dom/server.node.js +11 -11
- package/react-dom/server.react-server.js +2 -4
- package/react-dom/static.browser.js +7 -7
- package/react-dom/static.edge.js +7 -7
- package/react-dom/static.js +2 -2
- package/react-dom/static.node.js +7 -7
- package/react-dom/static.react-server.js +2 -4
- package/react-dom/test-utils.js +3 -3
|
@@ -8,110 +8,109 @@
|
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
'use strict'
|
|
12
|
+
'production' !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
14
|
function getIteratorFn(maybeIterable) {
|
|
15
|
-
if (null === maybeIterable ||
|
|
16
|
-
return null;
|
|
15
|
+
if (null === maybeIterable || 'object' !== typeof maybeIterable) return null
|
|
17
16
|
maybeIterable =
|
|
18
17
|
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
19
|
-
maybeIterable[
|
|
20
|
-
return
|
|
18
|
+
maybeIterable['@@iterator']
|
|
19
|
+
return 'function' === typeof maybeIterable ? maybeIterable : null
|
|
21
20
|
}
|
|
22
21
|
function testStringCoercion(value) {
|
|
23
|
-
return
|
|
22
|
+
return '' + value
|
|
24
23
|
}
|
|
25
24
|
function checkKeyStringCoercion(value) {
|
|
26
25
|
try {
|
|
27
|
-
testStringCoercion(value)
|
|
28
|
-
var JSCompiler_inline_result = !1
|
|
26
|
+
testStringCoercion(value)
|
|
27
|
+
var JSCompiler_inline_result = !1
|
|
29
28
|
} catch (e) {
|
|
30
|
-
JSCompiler_inline_result = !0
|
|
29
|
+
JSCompiler_inline_result = !0
|
|
31
30
|
}
|
|
32
31
|
if (JSCompiler_inline_result) {
|
|
33
|
-
JSCompiler_inline_result = console
|
|
34
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error
|
|
32
|
+
JSCompiler_inline_result = console
|
|
33
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error
|
|
35
34
|
var JSCompiler_inline_result$jscomp$0 =
|
|
36
|
-
(
|
|
35
|
+
('function' === typeof Symbol &&
|
|
37
36
|
Symbol.toStringTag &&
|
|
38
37
|
value[Symbol.toStringTag]) ||
|
|
39
38
|
value.constructor.name ||
|
|
40
|
-
|
|
39
|
+
'Object'
|
|
41
40
|
JSCompiler_temp_const.call(
|
|
42
41
|
JSCompiler_inline_result,
|
|
43
|
-
|
|
42
|
+
'The provided key is an unsupported type %s. This value must be coerced to a string before using it here.',
|
|
44
43
|
JSCompiler_inline_result$jscomp$0
|
|
45
|
-
)
|
|
46
|
-
return testStringCoercion(value)
|
|
44
|
+
)
|
|
45
|
+
return testStringCoercion(value)
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
function getComponentNameFromType(type) {
|
|
50
|
-
if (null == type) return null
|
|
51
|
-
if (
|
|
49
|
+
if (null == type) return null
|
|
50
|
+
if ('function' === typeof type)
|
|
52
51
|
return type.$$typeof === REACT_CLIENT_REFERENCE$2
|
|
53
52
|
? null
|
|
54
|
-
: type.displayName || type.name || null
|
|
55
|
-
if (
|
|
53
|
+
: type.displayName || type.name || null
|
|
54
|
+
if ('string' === typeof type) return type
|
|
56
55
|
switch (type) {
|
|
57
56
|
case REACT_FRAGMENT_TYPE:
|
|
58
|
-
return
|
|
57
|
+
return 'Fragment'
|
|
59
58
|
case REACT_PORTAL_TYPE:
|
|
60
|
-
return
|
|
59
|
+
return 'Portal'
|
|
61
60
|
case REACT_PROFILER_TYPE:
|
|
62
|
-
return
|
|
61
|
+
return 'Profiler'
|
|
63
62
|
case REACT_STRICT_MODE_TYPE:
|
|
64
|
-
return
|
|
63
|
+
return 'StrictMode'
|
|
65
64
|
case REACT_SUSPENSE_TYPE:
|
|
66
|
-
return
|
|
65
|
+
return 'Suspense'
|
|
67
66
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
68
|
-
return
|
|
67
|
+
return 'SuspenseList'
|
|
69
68
|
}
|
|
70
|
-
if (
|
|
69
|
+
if ('object' === typeof type)
|
|
71
70
|
switch (
|
|
72
|
-
(
|
|
71
|
+
('number' === typeof type.tag &&
|
|
73
72
|
console.error(
|
|
74
|
-
|
|
73
|
+
'Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.'
|
|
75
74
|
),
|
|
76
75
|
type.$$typeof)
|
|
77
76
|
) {
|
|
78
77
|
case REACT_CONTEXT_TYPE:
|
|
79
|
-
return (type.displayName ||
|
|
78
|
+
return (type.displayName || 'Context') + '.Provider'
|
|
80
79
|
case REACT_CONSUMER_TYPE:
|
|
81
|
-
return (type._context.displayName ||
|
|
80
|
+
return (type._context.displayName || 'Context') + '.Consumer'
|
|
82
81
|
case REACT_FORWARD_REF_TYPE:
|
|
83
|
-
var innerType = type.render
|
|
84
|
-
type = type.displayName
|
|
82
|
+
var innerType = type.render
|
|
83
|
+
type = type.displayName
|
|
85
84
|
type ||
|
|
86
|
-
((type = innerType.displayName || innerType.name ||
|
|
87
|
-
(type =
|
|
88
|
-
return type
|
|
85
|
+
((type = innerType.displayName || innerType.name || ''),
|
|
86
|
+
(type = '' !== type ? 'ForwardRef(' + type + ')' : 'ForwardRef'))
|
|
87
|
+
return type
|
|
89
88
|
case REACT_MEMO_TYPE:
|
|
90
89
|
return (
|
|
91
90
|
(innerType = type.displayName || null),
|
|
92
91
|
null !== innerType
|
|
93
92
|
? innerType
|
|
94
|
-
: getComponentNameFromType(type.type) ||
|
|
95
|
-
)
|
|
93
|
+
: getComponentNameFromType(type.type) || 'Memo'
|
|
94
|
+
)
|
|
96
95
|
case REACT_LAZY_TYPE:
|
|
97
|
-
innerType = type._payload
|
|
98
|
-
type = type._init
|
|
96
|
+
innerType = type._payload
|
|
97
|
+
type = type._init
|
|
99
98
|
try {
|
|
100
|
-
return getComponentNameFromType(type(innerType))
|
|
99
|
+
return getComponentNameFromType(type(innerType))
|
|
101
100
|
} catch (x) {}
|
|
102
101
|
}
|
|
103
|
-
return null
|
|
102
|
+
return null
|
|
104
103
|
}
|
|
105
104
|
function isValidElementType(type) {
|
|
106
|
-
return
|
|
107
|
-
|
|
105
|
+
return 'string' === typeof type ||
|
|
106
|
+
'function' === typeof type ||
|
|
108
107
|
type === REACT_FRAGMENT_TYPE ||
|
|
109
108
|
type === REACT_PROFILER_TYPE ||
|
|
110
109
|
type === REACT_STRICT_MODE_TYPE ||
|
|
111
110
|
type === REACT_SUSPENSE_TYPE ||
|
|
112
111
|
type === REACT_SUSPENSE_LIST_TYPE ||
|
|
113
112
|
type === REACT_OFFSCREEN_TYPE ||
|
|
114
|
-
(
|
|
113
|
+
('object' === typeof type &&
|
|
115
114
|
null !== type &&
|
|
116
115
|
(type.$$typeof === REACT_LAZY_TYPE ||
|
|
117
116
|
type.$$typeof === REACT_MEMO_TYPE ||
|
|
@@ -121,24 +120,24 @@
|
|
|
121
120
|
type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
|
|
122
121
|
void 0 !== type.getModuleId))
|
|
123
122
|
? !0
|
|
124
|
-
: !1
|
|
123
|
+
: !1
|
|
125
124
|
}
|
|
126
125
|
function disabledLog() {}
|
|
127
126
|
function disableLogs() {
|
|
128
127
|
if (0 === disabledDepth) {
|
|
129
|
-
prevLog = console.log
|
|
130
|
-
prevInfo = console.info
|
|
131
|
-
prevWarn = console.warn
|
|
132
|
-
prevError = console.error
|
|
133
|
-
prevGroup = console.group
|
|
134
|
-
prevGroupCollapsed = console.groupCollapsed
|
|
135
|
-
prevGroupEnd = console.groupEnd
|
|
128
|
+
prevLog = console.log
|
|
129
|
+
prevInfo = console.info
|
|
130
|
+
prevWarn = console.warn
|
|
131
|
+
prevError = console.error
|
|
132
|
+
prevGroup = console.group
|
|
133
|
+
prevGroupCollapsed = console.groupCollapsed
|
|
134
|
+
prevGroupEnd = console.groupEnd
|
|
136
135
|
var props = {
|
|
137
136
|
configurable: !0,
|
|
138
137
|
enumerable: !0,
|
|
139
138
|
value: disabledLog,
|
|
140
|
-
writable: !0
|
|
141
|
-
}
|
|
139
|
+
writable: !0,
|
|
140
|
+
}
|
|
142
141
|
Object.defineProperties(console, {
|
|
143
142
|
info: props,
|
|
144
143
|
log: props,
|
|
@@ -146,15 +145,15 @@
|
|
|
146
145
|
error: props,
|
|
147
146
|
group: props,
|
|
148
147
|
groupCollapsed: props,
|
|
149
|
-
groupEnd: props
|
|
150
|
-
})
|
|
148
|
+
groupEnd: props,
|
|
149
|
+
})
|
|
151
150
|
}
|
|
152
|
-
disabledDepth
|
|
151
|
+
disabledDepth++
|
|
153
152
|
}
|
|
154
153
|
function reenableLogs() {
|
|
155
|
-
disabledDepth
|
|
154
|
+
disabledDepth--
|
|
156
155
|
if (0 === disabledDepth) {
|
|
157
|
-
var props = { configurable: !0, enumerable: !0, writable: !0 }
|
|
156
|
+
var props = { configurable: !0, enumerable: !0, writable: !0 }
|
|
158
157
|
Object.defineProperties(console, {
|
|
159
158
|
log: assign({}, props, { value: prevLog }),
|
|
160
159
|
info: assign({}, props, { value: prevInfo }),
|
|
@@ -162,124 +161,115 @@
|
|
|
162
161
|
error: assign({}, props, { value: prevError }),
|
|
163
162
|
group: assign({}, props, { value: prevGroup }),
|
|
164
163
|
groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
|
|
165
|
-
groupEnd: assign({}, props, { value: prevGroupEnd })
|
|
166
|
-
})
|
|
164
|
+
groupEnd: assign({}, props, { value: prevGroupEnd }),
|
|
165
|
+
})
|
|
167
166
|
}
|
|
168
167
|
0 > disabledDepth &&
|
|
169
168
|
console.error(
|
|
170
|
-
|
|
171
|
-
)
|
|
169
|
+
'disabledDepth fell below zero. This is a bug in React. Please file an issue.'
|
|
170
|
+
)
|
|
172
171
|
}
|
|
173
172
|
function describeBuiltInComponentFrame(name) {
|
|
174
173
|
if (void 0 === prefix)
|
|
175
174
|
try {
|
|
176
|
-
throw Error()
|
|
175
|
+
throw Error()
|
|
177
176
|
} catch (x) {
|
|
178
|
-
var match = x.stack.trim().match(/\n( *(at )?)/)
|
|
179
|
-
prefix = (match && match[1]) ||
|
|
177
|
+
var match = x.stack.trim().match(/\n( *(at )?)/)
|
|
178
|
+
prefix = (match && match[1]) || ''
|
|
180
179
|
suffix =
|
|
181
|
-
-1 < x.stack.indexOf(
|
|
182
|
-
?
|
|
183
|
-
: -1 < x.stack.indexOf(
|
|
184
|
-
?
|
|
185
|
-
:
|
|
180
|
+
-1 < x.stack.indexOf('\n at')
|
|
181
|
+
? ' (<anonymous>)'
|
|
182
|
+
: -1 < x.stack.indexOf('@')
|
|
183
|
+
? '@unknown:0:0'
|
|
184
|
+
: ''
|
|
186
185
|
}
|
|
187
|
-
return
|
|
186
|
+
return '\n' + prefix + name + suffix
|
|
188
187
|
}
|
|
189
188
|
function describeNativeComponentFrame(fn, construct) {
|
|
190
|
-
if (!fn || reentry) return
|
|
191
|
-
var frame = componentFrameCache.get(fn)
|
|
192
|
-
if (void 0 !== frame) return frame
|
|
193
|
-
reentry = !0
|
|
194
|
-
frame = Error.prepareStackTrace
|
|
195
|
-
Error.prepareStackTrace = void 0
|
|
196
|
-
var previousDispatcher = null
|
|
197
|
-
previousDispatcher = ReactSharedInternals.H
|
|
198
|
-
ReactSharedInternals.H = null
|
|
199
|
-
disableLogs()
|
|
189
|
+
if (!fn || reentry) return ''
|
|
190
|
+
var frame = componentFrameCache.get(fn)
|
|
191
|
+
if (void 0 !== frame) return frame
|
|
192
|
+
reentry = !0
|
|
193
|
+
frame = Error.prepareStackTrace
|
|
194
|
+
Error.prepareStackTrace = void 0
|
|
195
|
+
var previousDispatcher = null
|
|
196
|
+
previousDispatcher = ReactSharedInternals.H
|
|
197
|
+
ReactSharedInternals.H = null
|
|
198
|
+
disableLogs()
|
|
200
199
|
try {
|
|
201
200
|
var RunInRootFrame = {
|
|
202
201
|
DetermineComponentFrameRoot: function () {
|
|
203
202
|
try {
|
|
204
203
|
if (construct) {
|
|
205
204
|
var Fake = function () {
|
|
206
|
-
throw Error()
|
|
207
|
-
}
|
|
208
|
-
Object.defineProperty(Fake.prototype,
|
|
205
|
+
throw Error()
|
|
206
|
+
}
|
|
207
|
+
Object.defineProperty(Fake.prototype, 'props', {
|
|
209
208
|
set: function () {
|
|
210
|
-
throw Error()
|
|
211
|
-
}
|
|
212
|
-
})
|
|
213
|
-
if (
|
|
209
|
+
throw Error()
|
|
210
|
+
},
|
|
211
|
+
})
|
|
212
|
+
if ('object' === typeof Reflect && Reflect.construct) {
|
|
214
213
|
try {
|
|
215
|
-
Reflect.construct(Fake, [])
|
|
214
|
+
Reflect.construct(Fake, [])
|
|
216
215
|
} catch (x) {
|
|
217
|
-
var control = x
|
|
216
|
+
var control = x
|
|
218
217
|
}
|
|
219
|
-
Reflect.construct(fn, [], Fake)
|
|
218
|
+
Reflect.construct(fn, [], Fake)
|
|
220
219
|
} else {
|
|
221
220
|
try {
|
|
222
|
-
Fake.call()
|
|
221
|
+
Fake.call()
|
|
223
222
|
} catch (x$0) {
|
|
224
|
-
control = x$0
|
|
223
|
+
control = x$0
|
|
225
224
|
}
|
|
226
|
-
fn.call(Fake.prototype)
|
|
225
|
+
fn.call(Fake.prototype)
|
|
227
226
|
}
|
|
228
227
|
} else {
|
|
229
228
|
try {
|
|
230
|
-
throw Error()
|
|
229
|
+
throw Error()
|
|
231
230
|
} catch (x$1) {
|
|
232
|
-
control = x$1
|
|
231
|
+
control = x$1
|
|
233
232
|
}
|
|
234
|
-
(Fake = fn()) &&
|
|
235
|
-
|
|
236
|
-
Fake.catch(function () {})
|
|
233
|
+
;(Fake = fn()) &&
|
|
234
|
+
'function' === typeof Fake.catch &&
|
|
235
|
+
Fake.catch(function () {})
|
|
237
236
|
}
|
|
238
237
|
} catch (sample) {
|
|
239
|
-
if (sample && control &&
|
|
240
|
-
return [sample.stack, control.stack]
|
|
238
|
+
if (sample && control && 'string' === typeof sample.stack)
|
|
239
|
+
return [sample.stack, control.stack]
|
|
241
240
|
}
|
|
242
|
-
return [null, null]
|
|
243
|
-
}
|
|
244
|
-
}
|
|
241
|
+
return [null, null]
|
|
242
|
+
},
|
|
243
|
+
}
|
|
245
244
|
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
|
246
|
-
|
|
245
|
+
'DetermineComponentFrameRoot'
|
|
247
246
|
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
248
247
|
RunInRootFrame.DetermineComponentFrameRoot,
|
|
249
|
-
|
|
250
|
-
)
|
|
248
|
+
'name'
|
|
249
|
+
)
|
|
251
250
|
namePropDescriptor &&
|
|
252
251
|
namePropDescriptor.configurable &&
|
|
253
|
-
Object.defineProperty(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
);
|
|
258
|
-
var _RunInRootFrame$Deter =
|
|
259
|
-
RunInRootFrame.DetermineComponentFrameRoot(),
|
|
252
|
+
Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, 'name', {
|
|
253
|
+
value: 'DetermineComponentFrameRoot',
|
|
254
|
+
})
|
|
255
|
+
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
|
|
260
256
|
sampleStack = _RunInRootFrame$Deter[0],
|
|
261
|
-
controlStack = _RunInRootFrame$Deter[1]
|
|
257
|
+
controlStack = _RunInRootFrame$Deter[1]
|
|
262
258
|
if (sampleStack && controlStack) {
|
|
263
|
-
var sampleLines = sampleStack.split(
|
|
264
|
-
controlLines = controlStack.split(
|
|
259
|
+
var sampleLines = sampleStack.split('\n'),
|
|
260
|
+
controlLines = controlStack.split('\n')
|
|
265
261
|
for (
|
|
266
262
|
_RunInRootFrame$Deter = namePropDescriptor = 0;
|
|
267
263
|
namePropDescriptor < sampleLines.length &&
|
|
268
|
-
!sampleLines[namePropDescriptor].includes(
|
|
269
|
-
"DetermineComponentFrameRoot"
|
|
270
|
-
);
|
|
271
|
-
|
|
264
|
+
!sampleLines[namePropDescriptor].includes('DetermineComponentFrameRoot');
|
|
272
265
|
)
|
|
273
|
-
namePropDescriptor
|
|
266
|
+
namePropDescriptor++
|
|
274
267
|
for (
|
|
275
268
|
;
|
|
276
269
|
_RunInRootFrame$Deter < controlLines.length &&
|
|
277
|
-
!controlLines[_RunInRootFrame$Deter].includes(
|
|
278
|
-
"DetermineComponentFrameRoot"
|
|
279
|
-
);
|
|
280
|
-
|
|
270
|
+
!controlLines[_RunInRootFrame$Deter].includes('DetermineComponentFrameRoot');
|
|
281
271
|
)
|
|
282
|
-
_RunInRootFrame$Deter
|
|
272
|
+
_RunInRootFrame$Deter++
|
|
283
273
|
if (
|
|
284
274
|
namePropDescriptor === sampleLines.length ||
|
|
285
275
|
_RunInRootFrame$Deter === controlLines.length
|
|
@@ -289,20 +279,15 @@
|
|
|
289
279
|
_RunInRootFrame$Deter = controlLines.length - 1;
|
|
290
280
|
1 <= namePropDescriptor &&
|
|
291
281
|
0 <= _RunInRootFrame$Deter &&
|
|
292
|
-
sampleLines[namePropDescriptor] !==
|
|
293
|
-
controlLines[_RunInRootFrame$Deter];
|
|
294
|
-
|
|
282
|
+
sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter];
|
|
295
283
|
)
|
|
296
|
-
_RunInRootFrame$Deter
|
|
284
|
+
_RunInRootFrame$Deter--
|
|
297
285
|
for (
|
|
298
286
|
;
|
|
299
287
|
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
|
|
300
288
|
namePropDescriptor--, _RunInRootFrame$Deter--
|
|
301
289
|
)
|
|
302
|
-
if (
|
|
303
|
-
sampleLines[namePropDescriptor] !==
|
|
304
|
-
controlLines[_RunInRootFrame$Deter]
|
|
305
|
-
) {
|
|
290
|
+
if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
|
|
306
291
|
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
|
307
292
|
do
|
|
308
293
|
if (
|
|
@@ -313,132 +298,127 @@
|
|
|
313
298
|
controlLines[_RunInRootFrame$Deter])
|
|
314
299
|
) {
|
|
315
300
|
var _frame =
|
|
316
|
-
|
|
317
|
-
sampleLines[namePropDescriptor].replace(
|
|
318
|
-
" at new ",
|
|
319
|
-
" at "
|
|
320
|
-
);
|
|
301
|
+
'\n' + sampleLines[namePropDescriptor].replace(' at new ', ' at ')
|
|
321
302
|
fn.displayName &&
|
|
322
|
-
_frame.includes(
|
|
323
|
-
(_frame = _frame.replace(
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return _frame;
|
|
303
|
+
_frame.includes('<anonymous>') &&
|
|
304
|
+
(_frame = _frame.replace('<anonymous>', fn.displayName))
|
|
305
|
+
'function' === typeof fn && componentFrameCache.set(fn, _frame)
|
|
306
|
+
return _frame
|
|
327
307
|
}
|
|
328
|
-
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter)
|
|
308
|
+
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter)
|
|
329
309
|
}
|
|
330
|
-
break
|
|
310
|
+
break
|
|
331
311
|
}
|
|
332
312
|
}
|
|
333
313
|
} finally {
|
|
334
|
-
(reentry = !1),
|
|
314
|
+
;((reentry = !1),
|
|
335
315
|
(ReactSharedInternals.H = previousDispatcher),
|
|
336
316
|
reenableLogs(),
|
|
337
|
-
(Error.prepareStackTrace = frame)
|
|
317
|
+
(Error.prepareStackTrace = frame))
|
|
338
318
|
}
|
|
339
|
-
sampleLines = (sampleLines = fn ? fn.displayName || fn.name :
|
|
319
|
+
sampleLines = (sampleLines = fn ? fn.displayName || fn.name : '')
|
|
340
320
|
? describeBuiltInComponentFrame(sampleLines)
|
|
341
|
-
:
|
|
342
|
-
|
|
343
|
-
return sampleLines
|
|
321
|
+
: ''
|
|
322
|
+
'function' === typeof fn && componentFrameCache.set(fn, sampleLines)
|
|
323
|
+
return sampleLines
|
|
344
324
|
}
|
|
345
325
|
function describeUnknownElementTypeFrameInDEV(type) {
|
|
346
|
-
if (null == type) return
|
|
347
|
-
if (
|
|
348
|
-
var prototype = type.prototype
|
|
326
|
+
if (null == type) return ''
|
|
327
|
+
if ('function' === typeof type) {
|
|
328
|
+
var prototype = type.prototype
|
|
349
329
|
return describeNativeComponentFrame(
|
|
350
330
|
type,
|
|
351
331
|
!(!prototype || !prototype.isReactComponent)
|
|
352
|
-
)
|
|
332
|
+
)
|
|
353
333
|
}
|
|
354
|
-
if (
|
|
334
|
+
if ('string' === typeof type) return describeBuiltInComponentFrame(type)
|
|
355
335
|
switch (type) {
|
|
356
336
|
case REACT_SUSPENSE_TYPE:
|
|
357
|
-
return describeBuiltInComponentFrame(
|
|
337
|
+
return describeBuiltInComponentFrame('Suspense')
|
|
358
338
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
359
|
-
return describeBuiltInComponentFrame(
|
|
339
|
+
return describeBuiltInComponentFrame('SuspenseList')
|
|
360
340
|
}
|
|
361
|
-
if (
|
|
341
|
+
if ('object' === typeof type)
|
|
362
342
|
switch (type.$$typeof) {
|
|
363
343
|
case REACT_FORWARD_REF_TYPE:
|
|
364
|
-
return (type = describeNativeComponentFrame(type.render, !1)), type
|
|
344
|
+
return ((type = describeNativeComponentFrame(type.render, !1)), type)
|
|
365
345
|
case REACT_MEMO_TYPE:
|
|
366
|
-
return describeUnknownElementTypeFrameInDEV(type.type)
|
|
346
|
+
return describeUnknownElementTypeFrameInDEV(type.type)
|
|
367
347
|
case REACT_LAZY_TYPE:
|
|
368
|
-
prototype = type._payload
|
|
369
|
-
type = type._init
|
|
348
|
+
prototype = type._payload
|
|
349
|
+
type = type._init
|
|
370
350
|
try {
|
|
371
|
-
return describeUnknownElementTypeFrameInDEV(type(prototype))
|
|
351
|
+
return describeUnknownElementTypeFrameInDEV(type(prototype))
|
|
372
352
|
} catch (x) {}
|
|
373
353
|
}
|
|
374
|
-
return
|
|
354
|
+
return ''
|
|
375
355
|
}
|
|
376
356
|
function getOwner() {
|
|
377
|
-
var dispatcher = ReactSharedInternals.A
|
|
378
|
-
return null === dispatcher ? null : dispatcher.getOwner()
|
|
357
|
+
var dispatcher = ReactSharedInternals.A
|
|
358
|
+
return null === dispatcher ? null : dispatcher.getOwner()
|
|
379
359
|
}
|
|
380
360
|
function hasValidKey(config) {
|
|
381
|
-
if (hasOwnProperty.call(config,
|
|
382
|
-
var getter = Object.getOwnPropertyDescriptor(config,
|
|
383
|
-
if (getter && getter.isReactWarning) return !1
|
|
361
|
+
if (hasOwnProperty.call(config, 'key')) {
|
|
362
|
+
var getter = Object.getOwnPropertyDescriptor(config, 'key').get
|
|
363
|
+
if (getter && getter.isReactWarning) return !1
|
|
384
364
|
}
|
|
385
|
-
return void 0 !== config.key
|
|
365
|
+
return void 0 !== config.key
|
|
386
366
|
}
|
|
387
367
|
function defineKeyPropWarningGetter(props, displayName) {
|
|
388
368
|
function warnAboutAccessingKey() {
|
|
389
369
|
specialPropKeyWarningShown ||
|
|
390
370
|
((specialPropKeyWarningShown = !0),
|
|
391
371
|
console.error(
|
|
392
|
-
|
|
372
|
+
'%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)',
|
|
393
373
|
displayName
|
|
394
|
-
))
|
|
374
|
+
))
|
|
395
375
|
}
|
|
396
|
-
warnAboutAccessingKey.isReactWarning = !0
|
|
397
|
-
Object.defineProperty(props,
|
|
376
|
+
warnAboutAccessingKey.isReactWarning = !0
|
|
377
|
+
Object.defineProperty(props, 'key', {
|
|
398
378
|
get: warnAboutAccessingKey,
|
|
399
|
-
configurable: !0
|
|
400
|
-
})
|
|
379
|
+
configurable: !0,
|
|
380
|
+
})
|
|
401
381
|
}
|
|
402
382
|
function elementRefGetterWithDeprecationWarning() {
|
|
403
|
-
var componentName = getComponentNameFromType(this.type)
|
|
383
|
+
var componentName = getComponentNameFromType(this.type)
|
|
404
384
|
didWarnAboutElementRef[componentName] ||
|
|
405
385
|
((didWarnAboutElementRef[componentName] = !0),
|
|
406
386
|
console.error(
|
|
407
|
-
|
|
408
|
-
))
|
|
409
|
-
componentName = this.props.ref
|
|
410
|
-
return void 0 !== componentName ? componentName : null
|
|
387
|
+
'Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.'
|
|
388
|
+
))
|
|
389
|
+
componentName = this.props.ref
|
|
390
|
+
return void 0 !== componentName ? componentName : null
|
|
411
391
|
}
|
|
412
392
|
function ReactElement(type, key, self, source, owner, props) {
|
|
413
|
-
self = props.ref
|
|
393
|
+
self = props.ref
|
|
414
394
|
type = {
|
|
415
395
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
416
396
|
type: type,
|
|
417
397
|
key: key,
|
|
418
398
|
props: props,
|
|
419
|
-
_owner: owner
|
|
420
|
-
}
|
|
399
|
+
_owner: owner,
|
|
400
|
+
}
|
|
421
401
|
null !== (void 0 !== self ? self : null)
|
|
422
|
-
? Object.defineProperty(type,
|
|
402
|
+
? Object.defineProperty(type, 'ref', {
|
|
423
403
|
enumerable: !1,
|
|
424
|
-
get: elementRefGetterWithDeprecationWarning
|
|
404
|
+
get: elementRefGetterWithDeprecationWarning,
|
|
425
405
|
})
|
|
426
|
-
: Object.defineProperty(type,
|
|
427
|
-
type._store = {}
|
|
428
|
-
Object.defineProperty(type._store,
|
|
406
|
+
: Object.defineProperty(type, 'ref', { enumerable: !1, value: null })
|
|
407
|
+
type._store = {}
|
|
408
|
+
Object.defineProperty(type._store, 'validated', {
|
|
429
409
|
configurable: !1,
|
|
430
410
|
enumerable: !1,
|
|
431
411
|
writable: !0,
|
|
432
|
-
value: 0
|
|
433
|
-
})
|
|
434
|
-
Object.defineProperty(type,
|
|
412
|
+
value: 0,
|
|
413
|
+
})
|
|
414
|
+
Object.defineProperty(type, '_debugInfo', {
|
|
435
415
|
configurable: !1,
|
|
436
416
|
enumerable: !1,
|
|
437
417
|
writable: !0,
|
|
438
|
-
value: null
|
|
439
|
-
})
|
|
440
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type))
|
|
441
|
-
return type
|
|
418
|
+
value: null,
|
|
419
|
+
})
|
|
420
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type))
|
|
421
|
+
return type
|
|
442
422
|
}
|
|
443
423
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
444
424
|
newKey = ReactElement(
|
|
@@ -448,39 +428,33 @@
|
|
|
448
428
|
void 0,
|
|
449
429
|
oldElement._owner,
|
|
450
430
|
oldElement.props
|
|
451
|
-
)
|
|
452
|
-
newKey._store.validated = oldElement._store.validated
|
|
453
|
-
return newKey
|
|
431
|
+
)
|
|
432
|
+
newKey._store.validated = oldElement._store.validated
|
|
433
|
+
return newKey
|
|
454
434
|
}
|
|
455
435
|
function validateChildKeys(node, parentType) {
|
|
456
|
-
if (
|
|
457
|
-
"object" === typeof node &&
|
|
458
|
-
node &&
|
|
459
|
-
node.$$typeof !== REACT_CLIENT_REFERENCE
|
|
460
|
-
)
|
|
436
|
+
if ('object' === typeof node && node && node.$$typeof !== REACT_CLIENT_REFERENCE)
|
|
461
437
|
if (isArrayImpl(node))
|
|
462
438
|
for (var i = 0; i < node.length; i++) {
|
|
463
|
-
var child = node[i]
|
|
464
|
-
isValidElement(child) && validateExplicitKey(child, parentType)
|
|
439
|
+
var child = node[i]
|
|
440
|
+
isValidElement(child) && validateExplicitKey(child, parentType)
|
|
465
441
|
}
|
|
466
|
-
else if (isValidElement(node))
|
|
467
|
-
node._store && (node._store.validated = 1);
|
|
442
|
+
else if (isValidElement(node)) node._store && (node._store.validated = 1)
|
|
468
443
|
else if (
|
|
469
444
|
((i = getIteratorFn(node)),
|
|
470
|
-
|
|
445
|
+
'function' === typeof i &&
|
|
471
446
|
i !== node.entries &&
|
|
472
447
|
((i = i.call(node)), i !== node))
|
|
473
448
|
)
|
|
474
449
|
for (; !(node = i.next()).done; )
|
|
475
|
-
isValidElement(node.value) &&
|
|
476
|
-
validateExplicitKey(node.value, parentType);
|
|
450
|
+
isValidElement(node.value) && validateExplicitKey(node.value, parentType)
|
|
477
451
|
}
|
|
478
452
|
function isValidElement(object) {
|
|
479
453
|
return (
|
|
480
|
-
|
|
454
|
+
'object' === typeof object &&
|
|
481
455
|
null !== object &&
|
|
482
456
|
object.$$typeof === REACT_ELEMENT_TYPE
|
|
483
|
-
)
|
|
457
|
+
)
|
|
484
458
|
}
|
|
485
459
|
function validateExplicitKey(element, parentType) {
|
|
486
460
|
if (
|
|
@@ -491,111 +465,106 @@
|
|
|
491
465
|
(parentType = getCurrentComponentErrorInfo(parentType)),
|
|
492
466
|
!ownerHasKeyUseWarning[parentType])
|
|
493
467
|
) {
|
|
494
|
-
ownerHasKeyUseWarning[parentType] = !0
|
|
495
|
-
var childOwner =
|
|
468
|
+
ownerHasKeyUseWarning[parentType] = !0
|
|
469
|
+
var childOwner = ''
|
|
496
470
|
element &&
|
|
497
471
|
null != element._owner &&
|
|
498
472
|
element._owner !== getOwner() &&
|
|
499
473
|
((childOwner = null),
|
|
500
|
-
|
|
474
|
+
'number' === typeof element._owner.tag
|
|
501
475
|
? (childOwner = getComponentNameFromType(element._owner.type))
|
|
502
|
-
:
|
|
476
|
+
: 'string' === typeof element._owner.name &&
|
|
503
477
|
(childOwner = element._owner.name),
|
|
504
|
-
(childOwner =
|
|
505
|
-
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack
|
|
478
|
+
(childOwner = ' It was passed a child from ' + childOwner + '.'))
|
|
479
|
+
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack
|
|
506
480
|
ReactSharedInternals.getCurrentStack = function () {
|
|
507
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type)
|
|
508
|
-
prevGetCurrentStack && (stack += prevGetCurrentStack() ||
|
|
509
|
-
return stack
|
|
510
|
-
}
|
|
481
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type)
|
|
482
|
+
prevGetCurrentStack && (stack += prevGetCurrentStack() || '')
|
|
483
|
+
return stack
|
|
484
|
+
}
|
|
511
485
|
console.error(
|
|
512
486
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
513
487
|
parentType,
|
|
514
488
|
childOwner
|
|
515
|
-
)
|
|
516
|
-
ReactSharedInternals.getCurrentStack = prevGetCurrentStack
|
|
489
|
+
)
|
|
490
|
+
ReactSharedInternals.getCurrentStack = prevGetCurrentStack
|
|
517
491
|
}
|
|
518
492
|
}
|
|
519
493
|
function getCurrentComponentErrorInfo(parentType) {
|
|
520
|
-
var info =
|
|
521
|
-
owner = getOwner()
|
|
494
|
+
var info = '',
|
|
495
|
+
owner = getOwner()
|
|
522
496
|
owner &&
|
|
523
497
|
(owner = getComponentNameFromType(owner.type)) &&
|
|
524
|
-
(info =
|
|
498
|
+
(info = '\n\nCheck the render method of `' + owner + '`.')
|
|
525
499
|
info ||
|
|
526
500
|
((parentType = getComponentNameFromType(parentType)) &&
|
|
527
|
-
(info =
|
|
528
|
-
|
|
529
|
-
return info;
|
|
501
|
+
(info = '\n\nCheck the top-level render call using <' + parentType + '>.'))
|
|
502
|
+
return info
|
|
530
503
|
}
|
|
531
504
|
function escape(key) {
|
|
532
|
-
var escaperLookup = {
|
|
505
|
+
var escaperLookup = { '=': '=0', ':': '=2' }
|
|
533
506
|
return (
|
|
534
|
-
|
|
507
|
+
'$' +
|
|
535
508
|
key.replace(/[=:]/g, function (match) {
|
|
536
|
-
return escaperLookup[match]
|
|
509
|
+
return escaperLookup[match]
|
|
537
510
|
})
|
|
538
|
-
)
|
|
511
|
+
)
|
|
539
512
|
}
|
|
540
513
|
function getElementKey(element, index) {
|
|
541
|
-
return
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
|
545
|
-
: index.toString(36);
|
|
514
|
+
return 'object' === typeof element && null !== element && null != element.key
|
|
515
|
+
? (checkKeyStringCoercion(element.key), escape('' + element.key))
|
|
516
|
+
: index.toString(36)
|
|
546
517
|
}
|
|
547
518
|
function noop() {}
|
|
548
519
|
function resolveThenable(thenable) {
|
|
549
520
|
switch (thenable.status) {
|
|
550
|
-
case
|
|
551
|
-
return thenable.value
|
|
552
|
-
case
|
|
553
|
-
throw thenable.reason
|
|
521
|
+
case 'fulfilled':
|
|
522
|
+
return thenable.value
|
|
523
|
+
case 'rejected':
|
|
524
|
+
throw thenable.reason
|
|
554
525
|
default:
|
|
555
526
|
switch (
|
|
556
|
-
(
|
|
527
|
+
('string' === typeof thenable.status
|
|
557
528
|
? thenable.then(noop, noop)
|
|
558
|
-
: ((thenable.status =
|
|
529
|
+
: ((thenable.status = 'pending'),
|
|
559
530
|
thenable.then(
|
|
560
531
|
function (fulfilledValue) {
|
|
561
|
-
|
|
562
|
-
((thenable.status =
|
|
563
|
-
(thenable.value = fulfilledValue));
|
|
532
|
+
'pending' === thenable.status &&
|
|
533
|
+
((thenable.status = 'fulfilled'), (thenable.value = fulfilledValue))
|
|
564
534
|
},
|
|
565
535
|
function (error) {
|
|
566
|
-
|
|
567
|
-
((thenable.status =
|
|
568
|
-
(thenable.reason = error));
|
|
536
|
+
'pending' === thenable.status &&
|
|
537
|
+
((thenable.status = 'rejected'), (thenable.reason = error))
|
|
569
538
|
}
|
|
570
539
|
)),
|
|
571
540
|
thenable.status)
|
|
572
541
|
) {
|
|
573
|
-
case
|
|
574
|
-
return thenable.value
|
|
575
|
-
case
|
|
576
|
-
throw thenable.reason
|
|
542
|
+
case 'fulfilled':
|
|
543
|
+
return thenable.value
|
|
544
|
+
case 'rejected':
|
|
545
|
+
throw thenable.reason
|
|
577
546
|
}
|
|
578
547
|
}
|
|
579
|
-
throw thenable
|
|
548
|
+
throw thenable
|
|
580
549
|
}
|
|
581
550
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
582
|
-
var type = typeof children
|
|
583
|
-
if (
|
|
584
|
-
var invokeCallback = !1
|
|
585
|
-
if (null === children) invokeCallback = !0
|
|
551
|
+
var type = typeof children
|
|
552
|
+
if ('undefined' === type || 'boolean' === type) children = null
|
|
553
|
+
var invokeCallback = !1
|
|
554
|
+
if (null === children) invokeCallback = !0
|
|
586
555
|
else
|
|
587
556
|
switch (type) {
|
|
588
|
-
case
|
|
589
|
-
case
|
|
590
|
-
case
|
|
591
|
-
invokeCallback = !0
|
|
592
|
-
break
|
|
593
|
-
case
|
|
557
|
+
case 'bigint':
|
|
558
|
+
case 'string':
|
|
559
|
+
case 'number':
|
|
560
|
+
invokeCallback = !0
|
|
561
|
+
break
|
|
562
|
+
case 'object':
|
|
594
563
|
switch (children.$$typeof) {
|
|
595
564
|
case REACT_ELEMENT_TYPE:
|
|
596
565
|
case REACT_PORTAL_TYPE:
|
|
597
|
-
invokeCallback = !0
|
|
598
|
-
break
|
|
566
|
+
invokeCallback = !0
|
|
567
|
+
break
|
|
599
568
|
case REACT_LAZY_TYPE:
|
|
600
569
|
return (
|
|
601
570
|
(invokeCallback = children._init),
|
|
@@ -606,21 +575,20 @@
|
|
|
606
575
|
nameSoFar,
|
|
607
576
|
callback
|
|
608
577
|
)
|
|
609
|
-
)
|
|
578
|
+
)
|
|
610
579
|
}
|
|
611
580
|
}
|
|
612
581
|
if (invokeCallback) {
|
|
613
|
-
invokeCallback = children
|
|
614
|
-
callback = callback(invokeCallback)
|
|
582
|
+
invokeCallback = children
|
|
583
|
+
callback = callback(invokeCallback)
|
|
615
584
|
var childKey =
|
|
616
|
-
|
|
585
|
+
'' === nameSoFar ? '.' + getElementKey(invokeCallback, 0) : nameSoFar
|
|
617
586
|
isArrayImpl(callback)
|
|
618
|
-
? ((escapedPrefix =
|
|
587
|
+
? ((escapedPrefix = ''),
|
|
619
588
|
null != childKey &&
|
|
620
|
-
(escapedPrefix =
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
return c;
|
|
589
|
+
(escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, '$&/') + '/'),
|
|
590
|
+
mapIntoArray(callback, array, escapedPrefix, '', function (c) {
|
|
591
|
+
return c
|
|
624
592
|
}))
|
|
625
593
|
: null != callback &&
|
|
626
594
|
(isValidElement(callback) &&
|
|
@@ -632,14 +600,12 @@
|
|
|
632
600
|
escapedPrefix +
|
|
633
601
|
(null == callback.key ||
|
|
634
602
|
(invokeCallback && invokeCallback.key === callback.key)
|
|
635
|
-
?
|
|
636
|
-
: (
|
|
637
|
-
|
|
638
|
-
"$&/"
|
|
639
|
-
) + "/") +
|
|
603
|
+
? ''
|
|
604
|
+
: ('' + callback.key).replace(userProvidedKeyEscapeRegex, '$&/') +
|
|
605
|
+
'/') +
|
|
640
606
|
childKey
|
|
641
607
|
)),
|
|
642
|
-
|
|
608
|
+
'' !== nameSoFar &&
|
|
643
609
|
null != invokeCallback &&
|
|
644
610
|
isValidElement(invokeCallback) &&
|
|
645
611
|
null == invokeCallback.key &&
|
|
@@ -647,14 +613,14 @@
|
|
|
647
613
|
!invokeCallback._store.validated &&
|
|
648
614
|
(escapedPrefix._store.validated = 2),
|
|
649
615
|
(callback = escapedPrefix)),
|
|
650
|
-
array.push(callback))
|
|
651
|
-
return 1
|
|
616
|
+
array.push(callback))
|
|
617
|
+
return 1
|
|
652
618
|
}
|
|
653
|
-
invokeCallback = 0
|
|
654
|
-
childKey =
|
|
619
|
+
invokeCallback = 0
|
|
620
|
+
childKey = '' === nameSoFar ? '.' : nameSoFar + ':'
|
|
655
621
|
if (isArrayImpl(children))
|
|
656
622
|
for (var i = 0; i < children.length; i++)
|
|
657
|
-
(nameSoFar = children[i]),
|
|
623
|
+
((nameSoFar = children[i]),
|
|
658
624
|
(type = childKey + getElementKey(nameSoFar, i)),
|
|
659
625
|
(invokeCallback += mapIntoArray(
|
|
660
626
|
nameSoFar,
|
|
@@ -662,21 +628,20 @@
|
|
|
662
628
|
escapedPrefix,
|
|
663
629
|
type,
|
|
664
630
|
callback
|
|
665
|
-
))
|
|
666
|
-
else if (((i = getIteratorFn(children)),
|
|
631
|
+
)))
|
|
632
|
+
else if (((i = getIteratorFn(children)), 'function' === typeof i))
|
|
667
633
|
for (
|
|
668
634
|
i === children.entries &&
|
|
669
635
|
(didWarnAboutMaps ||
|
|
670
636
|
console.warn(
|
|
671
|
-
|
|
637
|
+
'Using Maps as children is not supported. Use an array of keyed ReactElements instead.'
|
|
672
638
|
),
|
|
673
639
|
(didWarnAboutMaps = !0)),
|
|
674
640
|
children = i.call(children),
|
|
675
641
|
i = 0;
|
|
676
642
|
!(nameSoFar = children.next()).done;
|
|
677
|
-
|
|
678
643
|
)
|
|
679
|
-
(nameSoFar = nameSoFar.value),
|
|
644
|
+
((nameSoFar = nameSoFar.value),
|
|
680
645
|
(type = childKey + getElementKey(nameSoFar, i++)),
|
|
681
646
|
(invokeCallback += mapIntoArray(
|
|
682
647
|
nameSoFar,
|
|
@@ -684,60 +649,59 @@
|
|
|
684
649
|
escapedPrefix,
|
|
685
650
|
type,
|
|
686
651
|
callback
|
|
687
|
-
))
|
|
688
|
-
else if (
|
|
689
|
-
if (
|
|
652
|
+
)))
|
|
653
|
+
else if ('object' === type) {
|
|
654
|
+
if ('function' === typeof children.then)
|
|
690
655
|
return mapIntoArray(
|
|
691
656
|
resolveThenable(children),
|
|
692
657
|
array,
|
|
693
658
|
escapedPrefix,
|
|
694
659
|
nameSoFar,
|
|
695
660
|
callback
|
|
696
|
-
)
|
|
697
|
-
array = String(children)
|
|
661
|
+
)
|
|
662
|
+
array = String(children)
|
|
698
663
|
throw Error(
|
|
699
|
-
|
|
700
|
-
(
|
|
701
|
-
?
|
|
664
|
+
'Objects are not valid as a React child (found: ' +
|
|
665
|
+
('[object Object]' === array
|
|
666
|
+
? 'object with keys {' + Object.keys(children).join(', ') + '}'
|
|
702
667
|
: array) +
|
|
703
|
-
|
|
704
|
-
)
|
|
668
|
+
'). If you meant to render a collection of children, use an array instead.'
|
|
669
|
+
)
|
|
705
670
|
}
|
|
706
|
-
return invokeCallback
|
|
671
|
+
return invokeCallback
|
|
707
672
|
}
|
|
708
673
|
function mapChildren(children, func, context) {
|
|
709
|
-
if (null == children) return children
|
|
674
|
+
if (null == children) return children
|
|
710
675
|
var result = [],
|
|
711
|
-
count = 0
|
|
712
|
-
mapIntoArray(children, result,
|
|
713
|
-
return func.call(context, child, count++)
|
|
714
|
-
})
|
|
715
|
-
return result
|
|
676
|
+
count = 0
|
|
677
|
+
mapIntoArray(children, result, '', '', function (child) {
|
|
678
|
+
return func.call(context, child, count++)
|
|
679
|
+
})
|
|
680
|
+
return result
|
|
716
681
|
}
|
|
717
682
|
function resolveDispatcher() {
|
|
718
|
-
var dispatcher = ReactSharedInternals.H
|
|
683
|
+
var dispatcher = ReactSharedInternals.H
|
|
719
684
|
null === dispatcher &&
|
|
720
685
|
console.error(
|
|
721
|
-
|
|
722
|
-
)
|
|
723
|
-
return dispatcher
|
|
686
|
+
'Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.'
|
|
687
|
+
)
|
|
688
|
+
return dispatcher
|
|
724
689
|
}
|
|
725
690
|
function lazyInitializer(payload) {
|
|
726
691
|
if (-1 === payload._status) {
|
|
727
|
-
var ctor = payload._result
|
|
728
|
-
ctor = ctor()
|
|
692
|
+
var ctor = payload._result
|
|
693
|
+
ctor = ctor()
|
|
729
694
|
ctor.then(
|
|
730
695
|
function (moduleObject) {
|
|
731
696
|
if (0 === payload._status || -1 === payload._status)
|
|
732
|
-
(payload._status = 1), (payload._result = moduleObject)
|
|
697
|
+
((payload._status = 1), (payload._result = moduleObject))
|
|
733
698
|
},
|
|
734
699
|
function (error) {
|
|
735
700
|
if (0 === payload._status || -1 === payload._status)
|
|
736
|
-
(payload._status = 2), (payload._result = error)
|
|
701
|
+
((payload._status = 2), (payload._result = error))
|
|
737
702
|
}
|
|
738
|
-
)
|
|
739
|
-
|
|
740
|
-
((payload._status = 0), (payload._result = ctor));
|
|
703
|
+
)
|
|
704
|
+
;-1 === payload._status && ((payload._status = 0), (payload._result = ctor))
|
|
741
705
|
}
|
|
742
706
|
if (1 === payload._status)
|
|
743
707
|
return (
|
|
@@ -747,42 +711,42 @@
|
|
|
747
711
|
"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?",
|
|
748
712
|
ctor
|
|
749
713
|
),
|
|
750
|
-
|
|
714
|
+
'default' in ctor ||
|
|
751
715
|
console.error(
|
|
752
716
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
753
717
|
ctor
|
|
754
718
|
),
|
|
755
719
|
ctor.default
|
|
756
|
-
)
|
|
757
|
-
throw payload._result
|
|
720
|
+
)
|
|
721
|
+
throw payload._result
|
|
758
722
|
}
|
|
759
723
|
function createCacheRoot() {
|
|
760
|
-
return new WeakMap()
|
|
724
|
+
return new WeakMap()
|
|
761
725
|
}
|
|
762
726
|
function createCacheNode() {
|
|
763
|
-
return { s: 0, v: void 0, o: null, p: null }
|
|
727
|
+
return { s: 0, v: void 0, o: null, p: null }
|
|
764
728
|
}
|
|
765
729
|
var ReactSharedInternals = { H: null, A: null, getCurrentStack: null },
|
|
766
730
|
isArrayImpl = Array.isArray,
|
|
767
|
-
REACT_ELEMENT_TYPE = Symbol.for(
|
|
768
|
-
REACT_PORTAL_TYPE = Symbol.for(
|
|
769
|
-
REACT_FRAGMENT_TYPE = Symbol.for(
|
|
770
|
-
REACT_STRICT_MODE_TYPE = Symbol.for(
|
|
771
|
-
REACT_PROFILER_TYPE = Symbol.for(
|
|
772
|
-
Symbol.for(
|
|
773
|
-
var REACT_CONSUMER_TYPE = Symbol.for(
|
|
774
|
-
REACT_CONTEXT_TYPE = Symbol.for(
|
|
775
|
-
REACT_FORWARD_REF_TYPE = Symbol.for(
|
|
776
|
-
REACT_SUSPENSE_TYPE = Symbol.for(
|
|
777
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for(
|
|
778
|
-
REACT_MEMO_TYPE = Symbol.for(
|
|
779
|
-
REACT_LAZY_TYPE = Symbol.for(
|
|
780
|
-
REACT_OFFSCREEN_TYPE = Symbol.for(
|
|
731
|
+
REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element'),
|
|
732
|
+
REACT_PORTAL_TYPE = Symbol.for('react.portal'),
|
|
733
|
+
REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'),
|
|
734
|
+
REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'),
|
|
735
|
+
REACT_PROFILER_TYPE = Symbol.for('react.profiler')
|
|
736
|
+
Symbol.for('react.provider')
|
|
737
|
+
var REACT_CONSUMER_TYPE = Symbol.for('react.consumer'),
|
|
738
|
+
REACT_CONTEXT_TYPE = Symbol.for('react.context'),
|
|
739
|
+
REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'),
|
|
740
|
+
REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'),
|
|
741
|
+
REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'),
|
|
742
|
+
REACT_MEMO_TYPE = Symbol.for('react.memo'),
|
|
743
|
+
REACT_LAZY_TYPE = Symbol.for('react.lazy'),
|
|
744
|
+
REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'),
|
|
781
745
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
782
|
-
REACT_CLIENT_REFERENCE$2 = Symbol.for(
|
|
746
|
+
REACT_CLIENT_REFERENCE$2 = Symbol.for('react.client.reference'),
|
|
783
747
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
784
748
|
assign = Object.assign,
|
|
785
|
-
REACT_CLIENT_REFERENCE$1 = Symbol.for(
|
|
749
|
+
REACT_CLIENT_REFERENCE$1 = Symbol.for('react.client.reference'),
|
|
786
750
|
disabledDepth = 0,
|
|
787
751
|
prevLog,
|
|
788
752
|
prevInfo,
|
|
@@ -790,325 +754,301 @@
|
|
|
790
754
|
prevError,
|
|
791
755
|
prevGroup,
|
|
792
756
|
prevGroupCollapsed,
|
|
793
|
-
prevGroupEnd
|
|
794
|
-
disabledLog.__reactDisabledLog = !0
|
|
757
|
+
prevGroupEnd
|
|
758
|
+
disabledLog.__reactDisabledLog = !0
|
|
795
759
|
var prefix,
|
|
796
760
|
suffix,
|
|
797
|
-
reentry = !1
|
|
798
|
-
var componentFrameCache = new (
|
|
799
|
-
|
|
800
|
-
)();
|
|
801
|
-
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
761
|
+
reentry = !1
|
|
762
|
+
var componentFrameCache = new ('function' === typeof WeakMap ? WeakMap : Map)()
|
|
763
|
+
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'),
|
|
802
764
|
specialPropKeyWarningShown,
|
|
803
|
-
didWarnAboutOldJSXRuntime
|
|
804
|
-
var didWarnAboutElementRef = {}
|
|
765
|
+
didWarnAboutOldJSXRuntime
|
|
766
|
+
var didWarnAboutElementRef = {}
|
|
805
767
|
var ownerHasKeyUseWarning = {},
|
|
806
768
|
didWarnAboutMaps = !1,
|
|
807
|
-
userProvidedKeyEscapeRegex = /\/+/g
|
|
769
|
+
userProvidedKeyEscapeRegex = /\/+/g
|
|
808
770
|
exports.Children = {
|
|
809
771
|
map: mapChildren,
|
|
810
772
|
forEach: function (children, forEachFunc, forEachContext) {
|
|
811
773
|
mapChildren(
|
|
812
774
|
children,
|
|
813
775
|
function () {
|
|
814
|
-
forEachFunc.apply(this, arguments)
|
|
776
|
+
forEachFunc.apply(this, arguments)
|
|
815
777
|
},
|
|
816
778
|
forEachContext
|
|
817
|
-
)
|
|
779
|
+
)
|
|
818
780
|
},
|
|
819
781
|
count: function (children) {
|
|
820
|
-
var n = 0
|
|
782
|
+
var n = 0
|
|
821
783
|
mapChildren(children, function () {
|
|
822
|
-
n
|
|
823
|
-
})
|
|
824
|
-
return n
|
|
784
|
+
n++
|
|
785
|
+
})
|
|
786
|
+
return n
|
|
825
787
|
},
|
|
826
788
|
toArray: function (children) {
|
|
827
789
|
return (
|
|
828
790
|
mapChildren(children, function (child) {
|
|
829
|
-
return child
|
|
791
|
+
return child
|
|
830
792
|
}) || []
|
|
831
|
-
)
|
|
793
|
+
)
|
|
832
794
|
},
|
|
833
795
|
only: function (children) {
|
|
834
796
|
if (!isValidElement(children))
|
|
835
797
|
throw Error(
|
|
836
|
-
|
|
837
|
-
)
|
|
838
|
-
return children
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
exports.Fragment = REACT_FRAGMENT_TYPE
|
|
842
|
-
exports.Profiler = REACT_PROFILER_TYPE
|
|
843
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE
|
|
844
|
-
exports.Suspense = REACT_SUSPENSE_TYPE
|
|
798
|
+
'React.Children.only expected to receive a single React element child.'
|
|
799
|
+
)
|
|
800
|
+
return children
|
|
801
|
+
},
|
|
802
|
+
}
|
|
803
|
+
exports.Fragment = REACT_FRAGMENT_TYPE
|
|
804
|
+
exports.Profiler = REACT_PROFILER_TYPE
|
|
805
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE
|
|
806
|
+
exports.Suspense = REACT_SUSPENSE_TYPE
|
|
845
807
|
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
846
|
-
ReactSharedInternals
|
|
808
|
+
ReactSharedInternals
|
|
847
809
|
exports.cache = function (fn) {
|
|
848
810
|
return function () {
|
|
849
|
-
var dispatcher = ReactSharedInternals.A
|
|
850
|
-
if (!dispatcher) return fn.apply(null, arguments)
|
|
851
|
-
var fnMap = dispatcher.getCacheForType(createCacheRoot)
|
|
852
|
-
dispatcher = fnMap.get(fn)
|
|
811
|
+
var dispatcher = ReactSharedInternals.A
|
|
812
|
+
if (!dispatcher) return fn.apply(null, arguments)
|
|
813
|
+
var fnMap = dispatcher.getCacheForType(createCacheRoot)
|
|
814
|
+
dispatcher = fnMap.get(fn)
|
|
853
815
|
void 0 === dispatcher &&
|
|
854
|
-
((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher))
|
|
855
|
-
fnMap = 0
|
|
816
|
+
((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher))
|
|
817
|
+
fnMap = 0
|
|
856
818
|
for (var l = arguments.length; fnMap < l; fnMap++) {
|
|
857
|
-
var arg = arguments[fnMap]
|
|
858
|
-
if (
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
var objectCache = dispatcher.o;
|
|
863
|
-
null === objectCache &&
|
|
864
|
-
(dispatcher.o = objectCache = new WeakMap());
|
|
865
|
-
dispatcher = objectCache.get(arg);
|
|
819
|
+
var arg = arguments[fnMap]
|
|
820
|
+
if ('function' === typeof arg || ('object' === typeof arg && null !== arg)) {
|
|
821
|
+
var objectCache = dispatcher.o
|
|
822
|
+
null === objectCache && (dispatcher.o = objectCache = new WeakMap())
|
|
823
|
+
dispatcher = objectCache.get(arg)
|
|
866
824
|
void 0 === dispatcher &&
|
|
867
|
-
((dispatcher = createCacheNode()),
|
|
868
|
-
objectCache.set(arg, dispatcher));
|
|
825
|
+
((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher))
|
|
869
826
|
} else
|
|
870
|
-
(objectCache = dispatcher.p),
|
|
827
|
+
((objectCache = dispatcher.p),
|
|
871
828
|
null === objectCache && (dispatcher.p = objectCache = new Map()),
|
|
872
829
|
(dispatcher = objectCache.get(arg)),
|
|
873
830
|
void 0 === dispatcher &&
|
|
874
|
-
((dispatcher = createCacheNode()),
|
|
875
|
-
objectCache.set(arg, dispatcher));
|
|
831
|
+
((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher)))
|
|
876
832
|
}
|
|
877
|
-
if (1 === dispatcher.s) return dispatcher.v
|
|
878
|
-
if (2 === dispatcher.s) throw dispatcher.v
|
|
833
|
+
if (1 === dispatcher.s) return dispatcher.v
|
|
834
|
+
if (2 === dispatcher.s) throw dispatcher.v
|
|
879
835
|
try {
|
|
880
|
-
var result = fn.apply(null, arguments)
|
|
881
|
-
fnMap = dispatcher
|
|
882
|
-
fnMap.s = 1
|
|
883
|
-
return (fnMap.v = result)
|
|
836
|
+
var result = fn.apply(null, arguments)
|
|
837
|
+
fnMap = dispatcher
|
|
838
|
+
fnMap.s = 1
|
|
839
|
+
return (fnMap.v = result)
|
|
884
840
|
} catch (error) {
|
|
885
|
-
throw (
|
|
886
|
-
((result = dispatcher), (result.s = 2), (result.v = error), error)
|
|
887
|
-
);
|
|
841
|
+
throw ((result = dispatcher), (result.s = 2), (result.v = error), error)
|
|
888
842
|
}
|
|
889
|
-
}
|
|
890
|
-
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
891
845
|
exports.cloneElement = function (element, config, children) {
|
|
892
846
|
if (null === element || void 0 === element)
|
|
893
847
|
throw Error(
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
"."
|
|
897
|
-
);
|
|
848
|
+
'The argument must be a React element, but you passed ' + element + '.'
|
|
849
|
+
)
|
|
898
850
|
var props = assign({}, element.props),
|
|
899
851
|
key = element.key,
|
|
900
|
-
owner = element._owner
|
|
852
|
+
owner = element._owner
|
|
901
853
|
if (null != config) {
|
|
902
|
-
var JSCompiler_inline_result
|
|
854
|
+
var JSCompiler_inline_result
|
|
903
855
|
a: {
|
|
904
856
|
if (
|
|
905
|
-
hasOwnProperty.call(config,
|
|
857
|
+
hasOwnProperty.call(config, 'ref') &&
|
|
906
858
|
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
907
859
|
config,
|
|
908
|
-
|
|
860
|
+
'ref'
|
|
909
861
|
).get) &&
|
|
910
862
|
JSCompiler_inline_result.isReactWarning
|
|
911
863
|
) {
|
|
912
|
-
JSCompiler_inline_result = !1
|
|
913
|
-
break a
|
|
864
|
+
JSCompiler_inline_result = !1
|
|
865
|
+
break a
|
|
914
866
|
}
|
|
915
|
-
JSCompiler_inline_result = void 0 !== config.ref
|
|
867
|
+
JSCompiler_inline_result = void 0 !== config.ref
|
|
916
868
|
}
|
|
917
|
-
JSCompiler_inline_result && (owner = getOwner())
|
|
869
|
+
JSCompiler_inline_result && (owner = getOwner())
|
|
918
870
|
hasValidKey(config) &&
|
|
919
|
-
(checkKeyStringCoercion(config.key), (key =
|
|
871
|
+
(checkKeyStringCoercion(config.key), (key = '' + config.key))
|
|
920
872
|
for (propName in config)
|
|
921
873
|
!hasOwnProperty.call(config, propName) ||
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
(
|
|
926
|
-
(props[propName] = config[propName])
|
|
874
|
+
'key' === propName ||
|
|
875
|
+
'__self' === propName ||
|
|
876
|
+
'__source' === propName ||
|
|
877
|
+
('ref' === propName && void 0 === config.ref) ||
|
|
878
|
+
(props[propName] = config[propName])
|
|
927
879
|
}
|
|
928
|
-
var propName = arguments.length - 2
|
|
929
|
-
if (1 === propName) props.children = children
|
|
880
|
+
var propName = arguments.length - 2
|
|
881
|
+
if (1 === propName) props.children = children
|
|
930
882
|
else if (1 < propName) {
|
|
931
|
-
JSCompiler_inline_result = Array(propName)
|
|
932
|
-
for (var i = 0; i < propName; i++)
|
|
933
|
-
|
|
934
|
-
props.children = JSCompiler_inline_result;
|
|
883
|
+
JSCompiler_inline_result = Array(propName)
|
|
884
|
+
for (var i = 0; i < propName; i++) JSCompiler_inline_result[i] = arguments[i + 2]
|
|
885
|
+
props.children = JSCompiler_inline_result
|
|
935
886
|
}
|
|
936
|
-
props = ReactElement(element.type, key, void 0, void 0, owner, props)
|
|
887
|
+
props = ReactElement(element.type, key, void 0, void 0, owner, props)
|
|
937
888
|
for (key = 2; key < arguments.length; key++)
|
|
938
|
-
validateChildKeys(arguments[key], props.type)
|
|
939
|
-
return props
|
|
940
|
-
}
|
|
889
|
+
validateChildKeys(arguments[key], props.type)
|
|
890
|
+
return props
|
|
891
|
+
}
|
|
941
892
|
exports.createElement = function (type, config, children) {
|
|
942
893
|
if (isValidElementType(type))
|
|
943
|
-
for (var i = 2; i < arguments.length; i++)
|
|
944
|
-
validateChildKeys(arguments[i], type);
|
|
894
|
+
for (var i = 2; i < arguments.length; i++) validateChildKeys(arguments[i], type)
|
|
945
895
|
else {
|
|
946
|
-
i =
|
|
896
|
+
i = ''
|
|
947
897
|
if (
|
|
948
898
|
void 0 === type ||
|
|
949
|
-
(
|
|
950
|
-
null !== type &&
|
|
951
|
-
0 === Object.keys(type).length)
|
|
899
|
+
('object' === typeof type && null !== type && 0 === Object.keys(type).length)
|
|
952
900
|
)
|
|
953
901
|
i +=
|
|
954
|
-
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."
|
|
955
|
-
if (null === type) var typeString =
|
|
902
|
+
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."
|
|
903
|
+
if (null === type) var typeString = 'null'
|
|
956
904
|
else
|
|
957
905
|
isArrayImpl(type)
|
|
958
|
-
? (typeString =
|
|
906
|
+
? (typeString = 'array')
|
|
959
907
|
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
|
|
960
908
|
? ((typeString =
|
|
961
|
-
|
|
962
|
-
(getComponentNameFromType(type.type) || "Unknown") +
|
|
963
|
-
" />"),
|
|
909
|
+
'<' + (getComponentNameFromType(type.type) || 'Unknown') + ' />'),
|
|
964
910
|
(i =
|
|
965
|
-
|
|
966
|
-
: (typeString = typeof type)
|
|
911
|
+
' Did you accidentally export a JSX literal instead of a component?'))
|
|
912
|
+
: (typeString = typeof type)
|
|
967
913
|
console.error(
|
|
968
|
-
|
|
914
|
+
'React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s',
|
|
969
915
|
typeString,
|
|
970
916
|
i
|
|
971
|
-
)
|
|
917
|
+
)
|
|
972
918
|
}
|
|
973
|
-
var propName
|
|
974
|
-
i = {}
|
|
975
|
-
typeString = null
|
|
919
|
+
var propName
|
|
920
|
+
i = {}
|
|
921
|
+
typeString = null
|
|
976
922
|
if (null != config)
|
|
977
923
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
978
|
-
!(
|
|
979
|
-
|
|
924
|
+
!('__self' in config) ||
|
|
925
|
+
'key' in config ||
|
|
980
926
|
((didWarnAboutOldJSXRuntime = !0),
|
|
981
927
|
console.warn(
|
|
982
|
-
|
|
928
|
+
'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'
|
|
983
929
|
)),
|
|
984
930
|
hasValidKey(config) &&
|
|
985
|
-
(checkKeyStringCoercion(config.key), (typeString =
|
|
931
|
+
(checkKeyStringCoercion(config.key), (typeString = '' + config.key)),
|
|
986
932
|
config))
|
|
987
933
|
hasOwnProperty.call(config, propName) &&
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
(i[propName] = config[propName])
|
|
992
|
-
var childrenLength = arguments.length - 2
|
|
993
|
-
if (1 === childrenLength) i.children = children
|
|
934
|
+
'key' !== propName &&
|
|
935
|
+
'__self' !== propName &&
|
|
936
|
+
'__source' !== propName &&
|
|
937
|
+
(i[propName] = config[propName])
|
|
938
|
+
var childrenLength = arguments.length - 2
|
|
939
|
+
if (1 === childrenLength) i.children = children
|
|
994
940
|
else if (1 < childrenLength) {
|
|
995
|
-
for (
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
)
|
|
1000
|
-
childArray[_i] = arguments[_i + 2];
|
|
1001
|
-
Object.freeze && Object.freeze(childArray);
|
|
1002
|
-
i.children = childArray;
|
|
941
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
942
|
+
childArray[_i] = arguments[_i + 2]
|
|
943
|
+
Object.freeze && Object.freeze(childArray)
|
|
944
|
+
i.children = childArray
|
|
1003
945
|
}
|
|
1004
946
|
if (type && type.defaultProps)
|
|
1005
947
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
1006
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName])
|
|
948
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName])
|
|
1007
949
|
typeString &&
|
|
1008
950
|
defineKeyPropWarningGetter(
|
|
1009
951
|
i,
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
|
|
1015
|
-
};
|
|
952
|
+
'function' === typeof type ? type.displayName || type.name || 'Unknown' : type
|
|
953
|
+
)
|
|
954
|
+
return ReactElement(type, typeString, void 0, void 0, getOwner(), i)
|
|
955
|
+
}
|
|
1016
956
|
exports.createRef = function () {
|
|
1017
|
-
var refObject = { current: null }
|
|
1018
|
-
Object.seal(refObject)
|
|
1019
|
-
return refObject
|
|
1020
|
-
}
|
|
957
|
+
var refObject = { current: null }
|
|
958
|
+
Object.seal(refObject)
|
|
959
|
+
return refObject
|
|
960
|
+
}
|
|
1021
961
|
exports.forwardRef = function (render) {
|
|
1022
962
|
null != render && render.$$typeof === REACT_MEMO_TYPE
|
|
1023
963
|
? console.error(
|
|
1024
|
-
|
|
964
|
+
'forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).'
|
|
1025
965
|
)
|
|
1026
|
-
:
|
|
966
|
+
: 'function' !== typeof render
|
|
1027
967
|
? console.error(
|
|
1028
|
-
|
|
1029
|
-
null === render ?
|
|
968
|
+
'forwardRef requires a render function but was given %s.',
|
|
969
|
+
null === render ? 'null' : typeof render
|
|
1030
970
|
)
|
|
1031
971
|
: 0 !== render.length &&
|
|
1032
972
|
2 !== render.length &&
|
|
1033
973
|
console.error(
|
|
1034
|
-
|
|
974
|
+
'forwardRef render functions accept exactly two parameters: props and ref. %s',
|
|
1035
975
|
1 === render.length
|
|
1036
|
-
?
|
|
1037
|
-
:
|
|
1038
|
-
)
|
|
976
|
+
? 'Did you forget to use the ref parameter?'
|
|
977
|
+
: 'Any additional parameter will be undefined.'
|
|
978
|
+
)
|
|
1039
979
|
null != render &&
|
|
1040
980
|
null != render.defaultProps &&
|
|
1041
981
|
console.error(
|
|
1042
|
-
|
|
1043
|
-
)
|
|
982
|
+
'forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?'
|
|
983
|
+
)
|
|
1044
984
|
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
|
|
1045
|
-
ownName
|
|
1046
|
-
Object.defineProperty(elementType,
|
|
985
|
+
ownName
|
|
986
|
+
Object.defineProperty(elementType, 'displayName', {
|
|
1047
987
|
enumerable: !1,
|
|
1048
988
|
configurable: !0,
|
|
1049
989
|
get: function () {
|
|
1050
|
-
return ownName
|
|
990
|
+
return ownName
|
|
1051
991
|
},
|
|
1052
992
|
set: function (name) {
|
|
1053
|
-
ownName = name
|
|
993
|
+
ownName = name
|
|
1054
994
|
render.name ||
|
|
1055
995
|
render.displayName ||
|
|
1056
|
-
(Object.defineProperty(render,
|
|
1057
|
-
(render.displayName = name))
|
|
1058
|
-
}
|
|
1059
|
-
})
|
|
1060
|
-
return elementType
|
|
1061
|
-
}
|
|
1062
|
-
exports.isValidElement = isValidElement
|
|
996
|
+
(Object.defineProperty(render, 'name', { value: name }),
|
|
997
|
+
(render.displayName = name))
|
|
998
|
+
},
|
|
999
|
+
})
|
|
1000
|
+
return elementType
|
|
1001
|
+
}
|
|
1002
|
+
exports.isValidElement = isValidElement
|
|
1063
1003
|
exports.lazy = function (ctor) {
|
|
1064
1004
|
return {
|
|
1065
1005
|
$$typeof: REACT_LAZY_TYPE,
|
|
1066
1006
|
_payload: { _status: -1, _result: ctor },
|
|
1067
|
-
_init: lazyInitializer
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1007
|
+
_init: lazyInitializer,
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1070
1010
|
exports.memo = function (type, compare) {
|
|
1071
1011
|
isValidElementType(type) ||
|
|
1072
1012
|
console.error(
|
|
1073
|
-
|
|
1074
|
-
null === type ?
|
|
1075
|
-
)
|
|
1013
|
+
'memo: The first argument must be a component. Instead received: %s',
|
|
1014
|
+
null === type ? 'null' : typeof type
|
|
1015
|
+
)
|
|
1076
1016
|
compare = {
|
|
1077
1017
|
$$typeof: REACT_MEMO_TYPE,
|
|
1078
1018
|
type: type,
|
|
1079
|
-
compare: void 0 === compare ? null : compare
|
|
1080
|
-
}
|
|
1081
|
-
var ownName
|
|
1082
|
-
Object.defineProperty(compare,
|
|
1019
|
+
compare: void 0 === compare ? null : compare,
|
|
1020
|
+
}
|
|
1021
|
+
var ownName
|
|
1022
|
+
Object.defineProperty(compare, 'displayName', {
|
|
1083
1023
|
enumerable: !1,
|
|
1084
1024
|
configurable: !0,
|
|
1085
1025
|
get: function () {
|
|
1086
|
-
return ownName
|
|
1026
|
+
return ownName
|
|
1087
1027
|
},
|
|
1088
1028
|
set: function (name) {
|
|
1089
|
-
ownName = name
|
|
1029
|
+
ownName = name
|
|
1090
1030
|
type.name ||
|
|
1091
1031
|
type.displayName ||
|
|
1092
|
-
(Object.defineProperty(type,
|
|
1093
|
-
(type.displayName = name))
|
|
1094
|
-
}
|
|
1095
|
-
})
|
|
1096
|
-
return compare
|
|
1097
|
-
}
|
|
1032
|
+
(Object.defineProperty(type, 'name', { value: name }),
|
|
1033
|
+
(type.displayName = name))
|
|
1034
|
+
},
|
|
1035
|
+
})
|
|
1036
|
+
return compare
|
|
1037
|
+
}
|
|
1098
1038
|
exports.use = function (usable) {
|
|
1099
|
-
return resolveDispatcher().use(usable)
|
|
1100
|
-
}
|
|
1039
|
+
return resolveDispatcher().use(usable)
|
|
1040
|
+
}
|
|
1101
1041
|
exports.useCallback = function (callback, deps) {
|
|
1102
|
-
return resolveDispatcher().useCallback(callback, deps)
|
|
1103
|
-
}
|
|
1042
|
+
return resolveDispatcher().useCallback(callback, deps)
|
|
1043
|
+
}
|
|
1104
1044
|
exports.useDebugValue = function (value, formatterFn) {
|
|
1105
|
-
return resolveDispatcher().useDebugValue(value, formatterFn)
|
|
1106
|
-
}
|
|
1045
|
+
return resolveDispatcher().useDebugValue(value, formatterFn)
|
|
1046
|
+
}
|
|
1107
1047
|
exports.useId = function () {
|
|
1108
|
-
return resolveDispatcher().useId()
|
|
1109
|
-
}
|
|
1048
|
+
return resolveDispatcher().useId()
|
|
1049
|
+
}
|
|
1110
1050
|
exports.useMemo = function (create, deps) {
|
|
1111
|
-
return resolveDispatcher().useMemo(create, deps)
|
|
1112
|
-
}
|
|
1113
|
-
exports.version =
|
|
1114
|
-
})()
|
|
1051
|
+
return resolveDispatcher().useMemo(create, deps)
|
|
1052
|
+
}
|
|
1053
|
+
exports.version = '19.0.0'
|
|
1054
|
+
})()
|