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