react-dom 19.1.0-canary-4dff0e62-20241213 → 19.1.0-canary-e06c72fc-20241215
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/cjs/react-dom-client.development.js +365 -419
- package/cjs/react-dom-client.production.js +358 -357
- package/cjs/react-dom-profiling.development.js +365 -419
- package/cjs/react-dom-profiling.profiling.js +358 -357
- package/cjs/react-dom-server-legacy.browser.development.js +10 -24
- package/cjs/react-dom-server-legacy.browser.production.js +101 -113
- package/cjs/react-dom-server-legacy.node.development.js +10 -24
- package/cjs/react-dom-server-legacy.node.production.js +106 -119
- package/cjs/react-dom-server.browser.development.js +12 -26
- package/cjs/react-dom-server.browser.production.js +82 -95
- package/cjs/react-dom-server.bun.development.js +88 -102
- package/cjs/react-dom-server.bun.production.js +90 -104
- package/cjs/react-dom-server.edge.development.js +12 -26
- package/cjs/react-dom-server.edge.production.js +87 -101
- package/cjs/react-dom-server.node.development.js +12 -26
- package/cjs/react-dom-server.node.production.js +87 -101
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -55,7 +55,6 @@ var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
|
55
55
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
56
56
|
REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
57
57
|
Symbol.for("react.scope");
|
58
|
-
Symbol.for("react.debug_trace_mode");
|
59
58
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
60
59
|
Symbol.for("react.legacy_hidden");
|
61
60
|
Symbol.for("react.tracing_marker");
|
@@ -288,13 +287,11 @@ function describeFiber(fiber) {
|
|
288
287
|
return describeBuiltInComponentFrame("SuspenseList");
|
289
288
|
case 0:
|
290
289
|
case 15:
|
291
|
-
return
|
290
|
+
return describeNativeComponentFrame(fiber.type, !1);
|
292
291
|
case 11:
|
293
|
-
return (
|
294
|
-
(fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber
|
295
|
-
);
|
292
|
+
return describeNativeComponentFrame(fiber.type.render, !1);
|
296
293
|
case 1:
|
297
|
-
return
|
294
|
+
return describeNativeComponentFrame(fiber.type, !0);
|
298
295
|
default:
|
299
296
|
return "";
|
300
297
|
}
|
@@ -1027,12 +1024,7 @@ function registerDirectEvent(registrationName, dependencies) {
|
|
1027
1024
|
)
|
1028
1025
|
allNativeEvents.add(dependencies[registrationName]);
|
1029
1026
|
}
|
1030
|
-
var
|
1031
|
-
"undefined" === typeof window ||
|
1032
|
-
"undefined" === typeof window.document ||
|
1033
|
-
"undefined" === typeof window.document.createElement
|
1034
|
-
),
|
1035
|
-
VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
1027
|
+
var VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
1036
1028
|
"^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
1037
1029
|
),
|
1038
1030
|
illegalAttributeNameCache = {},
|
@@ -1641,7 +1633,12 @@ function getListener(inst, registrationName) {
|
|
1641
1633
|
);
|
1642
1634
|
return stateNode;
|
1643
1635
|
}
|
1644
|
-
var
|
1636
|
+
var canUseDOM = !(
|
1637
|
+
"undefined" === typeof window ||
|
1638
|
+
"undefined" === typeof window.document ||
|
1639
|
+
"undefined" === typeof window.document.createElement
|
1640
|
+
),
|
1641
|
+
passiveBrowserEventsSupported = !1;
|
1645
1642
|
if (canUseDOM)
|
1646
1643
|
try {
|
1647
1644
|
var options = {};
|
@@ -2128,19 +2125,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
|
|
2128
2125
|
}
|
2129
2126
|
var isInputEventSupported = !1;
|
2130
2127
|
if (canUseDOM) {
|
2131
|
-
var JSCompiler_inline_result$jscomp$
|
2128
|
+
var JSCompiler_inline_result$jscomp$295;
|
2132
2129
|
if (canUseDOM) {
|
2133
|
-
var isSupported$jscomp$
|
2134
|
-
if (!isSupported$jscomp$
|
2135
|
-
var element$jscomp$
|
2136
|
-
element$jscomp$
|
2137
|
-
isSupported$jscomp$
|
2138
|
-
"function" === typeof element$jscomp$
|
2130
|
+
var isSupported$jscomp$inline_426 = "oninput" in document;
|
2131
|
+
if (!isSupported$jscomp$inline_426) {
|
2132
|
+
var element$jscomp$inline_427 = document.createElement("div");
|
2133
|
+
element$jscomp$inline_427.setAttribute("oninput", "return;");
|
2134
|
+
isSupported$jscomp$inline_426 =
|
2135
|
+
"function" === typeof element$jscomp$inline_427.oninput;
|
2139
2136
|
}
|
2140
|
-
JSCompiler_inline_result$jscomp$
|
2141
|
-
} else JSCompiler_inline_result$jscomp$
|
2137
|
+
JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_426;
|
2138
|
+
} else JSCompiler_inline_result$jscomp$295 = !1;
|
2142
2139
|
isInputEventSupported =
|
2143
|
-
JSCompiler_inline_result$jscomp$
|
2140
|
+
JSCompiler_inline_result$jscomp$295 &&
|
2144
2141
|
(!document.documentMode || 9 < document.documentMode);
|
2145
2142
|
}
|
2146
2143
|
function stopWatchingForValueChange() {
|
@@ -3247,10 +3244,9 @@ function updateWorkInProgressHook() {
|
|
3247
3244
|
}
|
3248
3245
|
return workInProgressHook;
|
3249
3246
|
}
|
3250
|
-
|
3251
|
-
createFunctionComponentUpdateQueue = function () {
|
3247
|
+
function createFunctionComponentUpdateQueue() {
|
3252
3248
|
return { lastEffect: null, events: null, stores: null, memoCache: null };
|
3253
|
-
}
|
3249
|
+
}
|
3254
3250
|
function useThenable(thenable) {
|
3255
3251
|
var index = thenableIndexCounter$1;
|
3256
3252
|
thenableIndexCounter$1 += 1;
|
@@ -4181,321 +4177,326 @@ function entangleTransitionUpdate(root, queue, lane) {
|
|
4181
4177
|
}
|
4182
4178
|
}
|
4183
4179
|
var ContextOnlyDispatcher = {
|
4184
|
-
|
4185
|
-
|
4186
|
-
|
4187
|
-
|
4188
|
-
|
4189
|
-
|
4190
|
-
|
4191
|
-
|
4192
|
-
|
4193
|
-
|
4194
|
-
|
4195
|
-
|
4196
|
-
|
4197
|
-
|
4198
|
-
|
4199
|
-
|
4200
|
-
|
4201
|
-
|
4202
|
-
|
4203
|
-
|
4204
|
-
|
4205
|
-
|
4206
|
-
|
4207
|
-
ContextOnlyDispatcher.useOptimistic = throwInvalidHookError;
|
4208
|
-
var HooksDispatcherOnMount = {
|
4209
|
-
readContext: readContext,
|
4210
|
-
use: use,
|
4211
|
-
useCallback: function (callback, deps) {
|
4212
|
-
mountWorkInProgressHook().memoizedState = [
|
4213
|
-
callback,
|
4214
|
-
void 0 === deps ? null : deps
|
4215
|
-
];
|
4216
|
-
return callback;
|
4217
|
-
},
|
4218
|
-
useContext: readContext,
|
4219
|
-
useEffect: mountEffect,
|
4220
|
-
useImperativeHandle: function (ref, create, deps) {
|
4221
|
-
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
4222
|
-
mountEffectImpl(
|
4223
|
-
4194308,
|
4224
|
-
4,
|
4225
|
-
imperativeHandleEffect.bind(null, create, ref),
|
4226
|
-
deps
|
4227
|
-
);
|
4228
|
-
},
|
4229
|
-
useLayoutEffect: function (create, deps) {
|
4230
|
-
return mountEffectImpl(4194308, 4, create, deps);
|
4180
|
+
readContext: readContext,
|
4181
|
+
use: use,
|
4182
|
+
useCallback: throwInvalidHookError,
|
4183
|
+
useContext: throwInvalidHookError,
|
4184
|
+
useEffect: throwInvalidHookError,
|
4185
|
+
useImperativeHandle: throwInvalidHookError,
|
4186
|
+
useLayoutEffect: throwInvalidHookError,
|
4187
|
+
useInsertionEffect: throwInvalidHookError,
|
4188
|
+
useMemo: throwInvalidHookError,
|
4189
|
+
useReducer: throwInvalidHookError,
|
4190
|
+
useRef: throwInvalidHookError,
|
4191
|
+
useState: throwInvalidHookError,
|
4192
|
+
useDebugValue: throwInvalidHookError,
|
4193
|
+
useDeferredValue: throwInvalidHookError,
|
4194
|
+
useTransition: throwInvalidHookError,
|
4195
|
+
useSyncExternalStore: throwInvalidHookError,
|
4196
|
+
useId: throwInvalidHookError,
|
4197
|
+
useHostTransitionStatus: throwInvalidHookError,
|
4198
|
+
useFormState: throwInvalidHookError,
|
4199
|
+
useActionState: throwInvalidHookError,
|
4200
|
+
useOptimistic: throwInvalidHookError,
|
4201
|
+
useMemoCache: throwInvalidHookError,
|
4202
|
+
useCacheRefresh: throwInvalidHookError
|
4231
4203
|
},
|
4232
|
-
|
4233
|
-
|
4234
|
-
|
4235
|
-
|
4236
|
-
|
4237
|
-
|
4238
|
-
|
4239
|
-
|
4240
|
-
|
4241
|
-
|
4242
|
-
|
4243
|
-
|
4244
|
-
|
4245
|
-
|
4246
|
-
|
4247
|
-
|
4248
|
-
|
4249
|
-
|
4250
|
-
|
4251
|
-
|
4252
|
-
|
4253
|
-
|
4204
|
+
HooksDispatcherOnMount = {
|
4205
|
+
readContext: readContext,
|
4206
|
+
use: use,
|
4207
|
+
useCallback: function (callback, deps) {
|
4208
|
+
mountWorkInProgressHook().memoizedState = [
|
4209
|
+
callback,
|
4210
|
+
void 0 === deps ? null : deps
|
4211
|
+
];
|
4212
|
+
return callback;
|
4213
|
+
},
|
4214
|
+
useContext: readContext,
|
4215
|
+
useEffect: mountEffect,
|
4216
|
+
useImperativeHandle: function (ref, create, deps) {
|
4217
|
+
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
4218
|
+
mountEffectImpl(
|
4219
|
+
4194308,
|
4220
|
+
4,
|
4221
|
+
imperativeHandleEffect.bind(null, create, ref),
|
4222
|
+
deps
|
4223
|
+
);
|
4224
|
+
},
|
4225
|
+
useLayoutEffect: function (create, deps) {
|
4226
|
+
return mountEffectImpl(4194308, 4, create, deps);
|
4227
|
+
},
|
4228
|
+
useInsertionEffect: function (create, deps) {
|
4229
|
+
mountEffectImpl(4, 2, create, deps);
|
4230
|
+
},
|
4231
|
+
useMemo: function (nextCreate, deps) {
|
4232
|
+
var hook = mountWorkInProgressHook();
|
4233
|
+
deps = void 0 === deps ? null : deps;
|
4234
|
+
var nextValue = nextCreate();
|
4254
4235
|
if (shouldDoubleInvokeUserFnsInHooksDEV) {
|
4255
4236
|
setIsStrictModeForDevtools(!0);
|
4256
4237
|
try {
|
4257
|
-
|
4238
|
+
nextCreate();
|
4258
4239
|
} finally {
|
4259
4240
|
setIsStrictModeForDevtools(!1);
|
4260
4241
|
}
|
4261
4242
|
}
|
4262
|
-
|
4263
|
-
|
4264
|
-
|
4265
|
-
|
4266
|
-
|
4267
|
-
|
4268
|
-
|
4269
|
-
|
4270
|
-
|
4271
|
-
|
4272
|
-
|
4273
|
-
|
4274
|
-
|
4275
|
-
|
4276
|
-
|
4277
|
-
|
4278
|
-
|
4279
|
-
|
4280
|
-
|
4281
|
-
|
4282
|
-
|
4283
|
-
|
4284
|
-
|
4285
|
-
|
4286
|
-
|
4287
|
-
dispatch =
|
4288
|
-
queue.dispatch = dispatch;
|
4289
|
-
return [initialState.memoizedState, dispatch];
|
4290
|
-
},
|
4291
|
-
useDebugValue: mountDebugValue,
|
4292
|
-
useDeferredValue: function (value, initialValue) {
|
4293
|
-
var hook = mountWorkInProgressHook();
|
4294
|
-
return mountDeferredValueImpl(hook, value, initialValue);
|
4295
|
-
},
|
4296
|
-
useTransition: function () {
|
4297
|
-
var stateHook = mountStateImpl(!1);
|
4298
|
-
stateHook = startTransition.bind(
|
4299
|
-
null,
|
4300
|
-
currentlyRenderingFiber$1,
|
4301
|
-
stateHook.queue,
|
4302
|
-
!0,
|
4303
|
-
!1
|
4304
|
-
);
|
4305
|
-
mountWorkInProgressHook().memoizedState = stateHook;
|
4306
|
-
return [!1, stateHook];
|
4307
|
-
},
|
4308
|
-
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
4309
|
-
var fiber = currentlyRenderingFiber$1,
|
4310
|
-
hook = mountWorkInProgressHook();
|
4311
|
-
if (isHydrating) {
|
4312
|
-
if (void 0 === getServerSnapshot)
|
4313
|
-
throw Error(formatProdErrorMessage(407));
|
4314
|
-
getServerSnapshot = getServerSnapshot();
|
4315
|
-
} else {
|
4316
|
-
getServerSnapshot = getSnapshot();
|
4317
|
-
if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));
|
4318
|
-
0 !== (workInProgressRootRenderLanes & 60) ||
|
4319
|
-
pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
|
4320
|
-
}
|
4321
|
-
hook.memoizedState = getServerSnapshot;
|
4322
|
-
var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };
|
4323
|
-
hook.queue = inst;
|
4324
|
-
mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [
|
4325
|
-
subscribe
|
4326
|
-
]);
|
4327
|
-
fiber.flags |= 2048;
|
4328
|
-
pushSimpleEffect(
|
4329
|
-
9,
|
4330
|
-
createEffectInstance(),
|
4331
|
-
updateStoreInstance.bind(
|
4243
|
+
hook.memoizedState = [nextValue, deps];
|
4244
|
+
return nextValue;
|
4245
|
+
},
|
4246
|
+
useReducer: function (reducer, initialArg, init) {
|
4247
|
+
var hook = mountWorkInProgressHook();
|
4248
|
+
if (void 0 !== init) {
|
4249
|
+
var initialState = init(initialArg);
|
4250
|
+
if (shouldDoubleInvokeUserFnsInHooksDEV) {
|
4251
|
+
setIsStrictModeForDevtools(!0);
|
4252
|
+
try {
|
4253
|
+
init(initialArg);
|
4254
|
+
} finally {
|
4255
|
+
setIsStrictModeForDevtools(!1);
|
4256
|
+
}
|
4257
|
+
}
|
4258
|
+
} else initialState = initialArg;
|
4259
|
+
hook.memoizedState = hook.baseState = initialState;
|
4260
|
+
reducer = {
|
4261
|
+
pending: null,
|
4262
|
+
lanes: 0,
|
4263
|
+
dispatch: null,
|
4264
|
+
lastRenderedReducer: reducer,
|
4265
|
+
lastRenderedState: initialState
|
4266
|
+
};
|
4267
|
+
hook.queue = reducer;
|
4268
|
+
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
4332
4269
|
null,
|
4333
|
-
|
4334
|
-
|
4335
|
-
|
4336
|
-
|
4337
|
-
|
4338
|
-
|
4339
|
-
|
4340
|
-
|
4341
|
-
|
4342
|
-
|
4343
|
-
|
4344
|
-
|
4345
|
-
|
4346
|
-
|
4347
|
-
|
4348
|
-
|
4349
|
-
|
4350
|
-
idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
|
4351
|
-
).toString(32) + JSCompiler_inline_result;
|
4352
|
-
identifierPrefix =
|
4353
|
-
":" + identifierPrefix + "R" + JSCompiler_inline_result;
|
4354
|
-
JSCompiler_inline_result = localIdCounter++;
|
4355
|
-
0 < JSCompiler_inline_result &&
|
4356
|
-
(identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
|
4357
|
-
identifierPrefix += ":";
|
4358
|
-
} else
|
4359
|
-
(JSCompiler_inline_result = globalClientIdCounter++),
|
4360
|
-
(identifierPrefix =
|
4361
|
-
":" +
|
4362
|
-
identifierPrefix +
|
4363
|
-
"r" +
|
4364
|
-
JSCompiler_inline_result.toString(32) +
|
4365
|
-
":");
|
4366
|
-
return (hook.memoizedState = identifierPrefix);
|
4367
|
-
},
|
4368
|
-
useCacheRefresh: function () {
|
4369
|
-
return (mountWorkInProgressHook().memoizedState = refreshCache.bind(
|
4370
|
-
null,
|
4371
|
-
currentlyRenderingFiber$1
|
4372
|
-
));
|
4373
|
-
}
|
4374
|
-
};
|
4375
|
-
HooksDispatcherOnMount.useMemoCache = useMemoCache;
|
4376
|
-
HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus;
|
4377
|
-
HooksDispatcherOnMount.useFormState = mountActionState;
|
4378
|
-
HooksDispatcherOnMount.useActionState = mountActionState;
|
4379
|
-
HooksDispatcherOnMount.useOptimistic = function (passthrough) {
|
4380
|
-
var hook = mountWorkInProgressHook();
|
4381
|
-
hook.memoizedState = hook.baseState = passthrough;
|
4382
|
-
var queue = {
|
4383
|
-
pending: null,
|
4384
|
-
lanes: 0,
|
4385
|
-
dispatch: null,
|
4386
|
-
lastRenderedReducer: null,
|
4387
|
-
lastRenderedState: null
|
4388
|
-
};
|
4389
|
-
hook.queue = queue;
|
4390
|
-
hook = dispatchOptimisticSetState.bind(
|
4391
|
-
null,
|
4392
|
-
currentlyRenderingFiber$1,
|
4393
|
-
!0,
|
4394
|
-
queue
|
4395
|
-
);
|
4396
|
-
queue.dispatch = hook;
|
4397
|
-
return [passthrough, hook];
|
4398
|
-
};
|
4399
|
-
var HooksDispatcherOnUpdate = {
|
4400
|
-
readContext: readContext,
|
4401
|
-
use: use,
|
4402
|
-
useCallback: updateCallback,
|
4403
|
-
useContext: readContext,
|
4404
|
-
useEffect: updateEffect,
|
4405
|
-
useImperativeHandle: updateImperativeHandle,
|
4406
|
-
useInsertionEffect: updateInsertionEffect,
|
4407
|
-
useLayoutEffect: updateLayoutEffect,
|
4408
|
-
useMemo: updateMemo,
|
4409
|
-
useReducer: updateReducer,
|
4410
|
-
useRef: updateRef,
|
4411
|
-
useState: function () {
|
4412
|
-
return updateReducer(basicStateReducer);
|
4413
|
-
},
|
4414
|
-
useDebugValue: mountDebugValue,
|
4415
|
-
useDeferredValue: function (value, initialValue) {
|
4416
|
-
var hook = updateWorkInProgressHook();
|
4417
|
-
return updateDeferredValueImpl(
|
4418
|
-
hook,
|
4419
|
-
currentHook.memoizedState,
|
4420
|
-
value,
|
4421
|
-
initialValue
|
4422
|
-
);
|
4423
|
-
},
|
4424
|
-
useTransition: function () {
|
4425
|
-
var booleanOrThenable = updateReducer(basicStateReducer)[0],
|
4426
|
-
start = updateWorkInProgressHook().memoizedState;
|
4427
|
-
return [
|
4428
|
-
"boolean" === typeof booleanOrThenable
|
4429
|
-
? booleanOrThenable
|
4430
|
-
: useThenable(booleanOrThenable),
|
4431
|
-
start
|
4432
|
-
];
|
4433
|
-
},
|
4434
|
-
useSyncExternalStore: updateSyncExternalStore,
|
4435
|
-
useId: updateId
|
4436
|
-
};
|
4437
|
-
HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;
|
4438
|
-
HooksDispatcherOnUpdate.useMemoCache = useMemoCache;
|
4439
|
-
HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus;
|
4440
|
-
HooksDispatcherOnUpdate.useFormState = updateActionState;
|
4441
|
-
HooksDispatcherOnUpdate.useActionState = updateActionState;
|
4442
|
-
HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) {
|
4443
|
-
var hook = updateWorkInProgressHook();
|
4444
|
-
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
|
4445
|
-
};
|
4446
|
-
var HooksDispatcherOnRerender = {
|
4447
|
-
readContext: readContext,
|
4448
|
-
use: use,
|
4449
|
-
useCallback: updateCallback,
|
4450
|
-
useContext: readContext,
|
4451
|
-
useEffect: updateEffect,
|
4452
|
-
useImperativeHandle: updateImperativeHandle,
|
4453
|
-
useInsertionEffect: updateInsertionEffect,
|
4454
|
-
useLayoutEffect: updateLayoutEffect,
|
4455
|
-
useMemo: updateMemo,
|
4456
|
-
useReducer: rerenderReducer,
|
4457
|
-
useRef: updateRef,
|
4458
|
-
useState: function () {
|
4459
|
-
return rerenderReducer(basicStateReducer);
|
4460
|
-
},
|
4461
|
-
useDebugValue: mountDebugValue,
|
4462
|
-
useDeferredValue: function (value, initialValue) {
|
4463
|
-
var hook = updateWorkInProgressHook();
|
4464
|
-
return null === currentHook
|
4465
|
-
? mountDeferredValueImpl(hook, value, initialValue)
|
4466
|
-
: updateDeferredValueImpl(
|
4467
|
-
hook,
|
4468
|
-
currentHook.memoizedState,
|
4469
|
-
value,
|
4470
|
-
initialValue
|
4270
|
+
currentlyRenderingFiber$1,
|
4271
|
+
reducer
|
4272
|
+
);
|
4273
|
+
return [hook.memoizedState, reducer];
|
4274
|
+
},
|
4275
|
+
useRef: function (initialValue) {
|
4276
|
+
var hook = mountWorkInProgressHook();
|
4277
|
+
initialValue = { current: initialValue };
|
4278
|
+
return (hook.memoizedState = initialValue);
|
4279
|
+
},
|
4280
|
+
useState: function (initialState) {
|
4281
|
+
initialState = mountStateImpl(initialState);
|
4282
|
+
var queue = initialState.queue,
|
4283
|
+
dispatch = dispatchSetState.bind(
|
4284
|
+
null,
|
4285
|
+
currentlyRenderingFiber$1,
|
4286
|
+
queue
|
4471
4287
|
);
|
4288
|
+
queue.dispatch = dispatch;
|
4289
|
+
return [initialState.memoizedState, dispatch];
|
4290
|
+
},
|
4291
|
+
useDebugValue: mountDebugValue,
|
4292
|
+
useDeferredValue: function (value, initialValue) {
|
4293
|
+
var hook = mountWorkInProgressHook();
|
4294
|
+
return mountDeferredValueImpl(hook, value, initialValue);
|
4295
|
+
},
|
4296
|
+
useTransition: function () {
|
4297
|
+
var stateHook = mountStateImpl(!1);
|
4298
|
+
stateHook = startTransition.bind(
|
4299
|
+
null,
|
4300
|
+
currentlyRenderingFiber$1,
|
4301
|
+
stateHook.queue,
|
4302
|
+
!0,
|
4303
|
+
!1
|
4304
|
+
);
|
4305
|
+
mountWorkInProgressHook().memoizedState = stateHook;
|
4306
|
+
return [!1, stateHook];
|
4307
|
+
},
|
4308
|
+
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
4309
|
+
var fiber = currentlyRenderingFiber$1,
|
4310
|
+
hook = mountWorkInProgressHook();
|
4311
|
+
if (isHydrating) {
|
4312
|
+
if (void 0 === getServerSnapshot)
|
4313
|
+
throw Error(formatProdErrorMessage(407));
|
4314
|
+
getServerSnapshot = getServerSnapshot();
|
4315
|
+
} else {
|
4316
|
+
getServerSnapshot = getSnapshot();
|
4317
|
+
if (null === workInProgressRoot)
|
4318
|
+
throw Error(formatProdErrorMessage(349));
|
4319
|
+
0 !== (workInProgressRootRenderLanes & 60) ||
|
4320
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
|
4321
|
+
}
|
4322
|
+
hook.memoizedState = getServerSnapshot;
|
4323
|
+
var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };
|
4324
|
+
hook.queue = inst;
|
4325
|
+
mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [
|
4326
|
+
subscribe
|
4327
|
+
]);
|
4328
|
+
fiber.flags |= 2048;
|
4329
|
+
pushSimpleEffect(
|
4330
|
+
9,
|
4331
|
+
createEffectInstance(),
|
4332
|
+
updateStoreInstance.bind(
|
4333
|
+
null,
|
4334
|
+
fiber,
|
4335
|
+
inst,
|
4336
|
+
getServerSnapshot,
|
4337
|
+
getSnapshot
|
4338
|
+
),
|
4339
|
+
null
|
4340
|
+
);
|
4341
|
+
return getServerSnapshot;
|
4342
|
+
},
|
4343
|
+
useId: function () {
|
4344
|
+
var hook = mountWorkInProgressHook(),
|
4345
|
+
identifierPrefix = workInProgressRoot.identifierPrefix;
|
4346
|
+
if (isHydrating) {
|
4347
|
+
var JSCompiler_inline_result = treeContextOverflow;
|
4348
|
+
var idWithLeadingBit = treeContextId;
|
4349
|
+
JSCompiler_inline_result =
|
4350
|
+
(
|
4351
|
+
idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))
|
4352
|
+
).toString(32) + JSCompiler_inline_result;
|
4353
|
+
identifierPrefix =
|
4354
|
+
":" + identifierPrefix + "R" + JSCompiler_inline_result;
|
4355
|
+
JSCompiler_inline_result = localIdCounter++;
|
4356
|
+
0 < JSCompiler_inline_result &&
|
4357
|
+
(identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
|
4358
|
+
identifierPrefix += ":";
|
4359
|
+
} else
|
4360
|
+
(JSCompiler_inline_result = globalClientIdCounter++),
|
4361
|
+
(identifierPrefix =
|
4362
|
+
":" +
|
4363
|
+
identifierPrefix +
|
4364
|
+
"r" +
|
4365
|
+
JSCompiler_inline_result.toString(32) +
|
4366
|
+
":");
|
4367
|
+
return (hook.memoizedState = identifierPrefix);
|
4368
|
+
},
|
4369
|
+
useHostTransitionStatus: useHostTransitionStatus,
|
4370
|
+
useFormState: mountActionState,
|
4371
|
+
useActionState: mountActionState,
|
4372
|
+
useOptimistic: function (passthrough) {
|
4373
|
+
var hook = mountWorkInProgressHook();
|
4374
|
+
hook.memoizedState = hook.baseState = passthrough;
|
4375
|
+
var queue = {
|
4376
|
+
pending: null,
|
4377
|
+
lanes: 0,
|
4378
|
+
dispatch: null,
|
4379
|
+
lastRenderedReducer: null,
|
4380
|
+
lastRenderedState: null
|
4381
|
+
};
|
4382
|
+
hook.queue = queue;
|
4383
|
+
hook = dispatchOptimisticSetState.bind(
|
4384
|
+
null,
|
4385
|
+
currentlyRenderingFiber$1,
|
4386
|
+
!0,
|
4387
|
+
queue
|
4388
|
+
);
|
4389
|
+
queue.dispatch = hook;
|
4390
|
+
return [passthrough, hook];
|
4391
|
+
},
|
4392
|
+
useMemoCache: useMemoCache,
|
4393
|
+
useCacheRefresh: function () {
|
4394
|
+
return (mountWorkInProgressHook().memoizedState = refreshCache.bind(
|
4395
|
+
null,
|
4396
|
+
currentlyRenderingFiber$1
|
4397
|
+
));
|
4398
|
+
}
|
4472
4399
|
},
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4479
|
-
|
4480
|
-
|
4481
|
-
|
4400
|
+
HooksDispatcherOnUpdate = {
|
4401
|
+
readContext: readContext,
|
4402
|
+
use: use,
|
4403
|
+
useCallback: updateCallback,
|
4404
|
+
useContext: readContext,
|
4405
|
+
useEffect: updateEffect,
|
4406
|
+
useImperativeHandle: updateImperativeHandle,
|
4407
|
+
useInsertionEffect: updateInsertionEffect,
|
4408
|
+
useLayoutEffect: updateLayoutEffect,
|
4409
|
+
useMemo: updateMemo,
|
4410
|
+
useReducer: updateReducer,
|
4411
|
+
useRef: updateRef,
|
4412
|
+
useState: function () {
|
4413
|
+
return updateReducer(basicStateReducer);
|
4414
|
+
},
|
4415
|
+
useDebugValue: mountDebugValue,
|
4416
|
+
useDeferredValue: function (value, initialValue) {
|
4417
|
+
var hook = updateWorkInProgressHook();
|
4418
|
+
return updateDeferredValueImpl(
|
4419
|
+
hook,
|
4420
|
+
currentHook.memoizedState,
|
4421
|
+
value,
|
4422
|
+
initialValue
|
4423
|
+
);
|
4424
|
+
},
|
4425
|
+
useTransition: function () {
|
4426
|
+
var booleanOrThenable = updateReducer(basicStateReducer)[0],
|
4427
|
+
start = updateWorkInProgressHook().memoizedState;
|
4428
|
+
return [
|
4429
|
+
"boolean" === typeof booleanOrThenable
|
4430
|
+
? booleanOrThenable
|
4431
|
+
: useThenable(booleanOrThenable),
|
4432
|
+
start
|
4433
|
+
];
|
4434
|
+
},
|
4435
|
+
useSyncExternalStore: updateSyncExternalStore,
|
4436
|
+
useId: updateId,
|
4437
|
+
useHostTransitionStatus: useHostTransitionStatus,
|
4438
|
+
useFormState: updateActionState,
|
4439
|
+
useActionState: updateActionState,
|
4440
|
+
useOptimistic: function (passthrough, reducer) {
|
4441
|
+
var hook = updateWorkInProgressHook();
|
4442
|
+
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
|
4443
|
+
},
|
4444
|
+
useMemoCache: useMemoCache,
|
4445
|
+
useCacheRefresh: updateRefresh
|
4482
4446
|
},
|
4483
|
-
|
4484
|
-
|
4485
|
-
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4489
|
-
|
4490
|
-
|
4491
|
-
|
4492
|
-
|
4493
|
-
|
4494
|
-
|
4495
|
-
|
4496
|
-
|
4497
|
-
}
|
4498
|
-
|
4447
|
+
HooksDispatcherOnRerender = {
|
4448
|
+
readContext: readContext,
|
4449
|
+
use: use,
|
4450
|
+
useCallback: updateCallback,
|
4451
|
+
useContext: readContext,
|
4452
|
+
useEffect: updateEffect,
|
4453
|
+
useImperativeHandle: updateImperativeHandle,
|
4454
|
+
useInsertionEffect: updateInsertionEffect,
|
4455
|
+
useLayoutEffect: updateLayoutEffect,
|
4456
|
+
useMemo: updateMemo,
|
4457
|
+
useReducer: rerenderReducer,
|
4458
|
+
useRef: updateRef,
|
4459
|
+
useState: function () {
|
4460
|
+
return rerenderReducer(basicStateReducer);
|
4461
|
+
},
|
4462
|
+
useDebugValue: mountDebugValue,
|
4463
|
+
useDeferredValue: function (value, initialValue) {
|
4464
|
+
var hook = updateWorkInProgressHook();
|
4465
|
+
return null === currentHook
|
4466
|
+
? mountDeferredValueImpl(hook, value, initialValue)
|
4467
|
+
: updateDeferredValueImpl(
|
4468
|
+
hook,
|
4469
|
+
currentHook.memoizedState,
|
4470
|
+
value,
|
4471
|
+
initialValue
|
4472
|
+
);
|
4473
|
+
},
|
4474
|
+
useTransition: function () {
|
4475
|
+
var booleanOrThenable = rerenderReducer(basicStateReducer)[0],
|
4476
|
+
start = updateWorkInProgressHook().memoizedState;
|
4477
|
+
return [
|
4478
|
+
"boolean" === typeof booleanOrThenable
|
4479
|
+
? booleanOrThenable
|
4480
|
+
: useThenable(booleanOrThenable),
|
4481
|
+
start
|
4482
|
+
];
|
4483
|
+
},
|
4484
|
+
useSyncExternalStore: updateSyncExternalStore,
|
4485
|
+
useId: updateId,
|
4486
|
+
useHostTransitionStatus: useHostTransitionStatus,
|
4487
|
+
useFormState: rerenderActionState,
|
4488
|
+
useActionState: rerenderActionState,
|
4489
|
+
useOptimistic: function (passthrough, reducer) {
|
4490
|
+
var hook = updateWorkInProgressHook();
|
4491
|
+
if (null !== currentHook)
|
4492
|
+
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
|
4493
|
+
hook.baseState = passthrough;
|
4494
|
+
return [passthrough, hook.queue.dispatch];
|
4495
|
+
},
|
4496
|
+
useMemoCache: useMemoCache,
|
4497
|
+
useCacheRefresh: updateRefresh
|
4498
|
+
},
|
4499
|
+
thenableState = null,
|
4499
4500
|
thenableIndexCounter = 0;
|
4500
4501
|
function unwrapThenable(thenable) {
|
4501
4502
|
var index = thenableIndexCounter;
|
@@ -6277,7 +6278,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
6277
6278
|
)
|
6278
6279
|
return (
|
6279
6280
|
isSuspenseInstanceFallback(nextInstance)
|
6280
|
-
? (workInProgress.lanes =
|
6281
|
+
? (workInProgress.lanes = 32)
|
6281
6282
|
: (workInProgress.lanes = 536870912),
|
6282
6283
|
null
|
6283
6284
|
);
|
@@ -12264,20 +12265,20 @@ function extractEvents$1(
|
|
12264
12265
|
}
|
12265
12266
|
}
|
12266
12267
|
for (
|
12267
|
-
var i$jscomp$
|
12268
|
-
i$jscomp$
|
12269
|
-
i$jscomp$
|
12268
|
+
var i$jscomp$inline_1516 = 0;
|
12269
|
+
i$jscomp$inline_1516 < simpleEventPluginEvents.length;
|
12270
|
+
i$jscomp$inline_1516++
|
12270
12271
|
) {
|
12271
|
-
var eventName$jscomp$
|
12272
|
-
simpleEventPluginEvents[i$jscomp$
|
12273
|
-
domEventName$jscomp$
|
12274
|
-
eventName$jscomp$
|
12275
|
-
capitalizedEvent$jscomp$
|
12276
|
-
eventName$jscomp$
|
12277
|
-
eventName$jscomp$
|
12272
|
+
var eventName$jscomp$inline_1517 =
|
12273
|
+
simpleEventPluginEvents[i$jscomp$inline_1516],
|
12274
|
+
domEventName$jscomp$inline_1518 =
|
12275
|
+
eventName$jscomp$inline_1517.toLowerCase(),
|
12276
|
+
capitalizedEvent$jscomp$inline_1519 =
|
12277
|
+
eventName$jscomp$inline_1517[0].toUpperCase() +
|
12278
|
+
eventName$jscomp$inline_1517.slice(1);
|
12278
12279
|
registerSimpleEvent(
|
12279
|
-
domEventName$jscomp$
|
12280
|
-
"on" + capitalizedEvent$jscomp$
|
12280
|
+
domEventName$jscomp$inline_1518,
|
12281
|
+
"on" + capitalizedEvent$jscomp$inline_1519
|
12281
12282
|
);
|
12282
12283
|
}
|
12283
12284
|
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
@@ -15757,16 +15758,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
15757
15758
|
0 === i && attemptExplicitHydrationTarget(target);
|
15758
15759
|
}
|
15759
15760
|
};
|
15760
|
-
var isomorphicReactPackageVersion$jscomp$
|
15761
|
+
var isomorphicReactPackageVersion$jscomp$inline_1765 = React.version;
|
15761
15762
|
if (
|
15762
|
-
"19.1.0-canary-
|
15763
|
-
isomorphicReactPackageVersion$jscomp$
|
15763
|
+
"19.1.0-canary-e06c72fc-20241215" !==
|
15764
|
+
isomorphicReactPackageVersion$jscomp$inline_1765
|
15764
15765
|
)
|
15765
15766
|
throw Error(
|
15766
15767
|
formatProdErrorMessage(
|
15767
15768
|
527,
|
15768
|
-
isomorphicReactPackageVersion$jscomp$
|
15769
|
-
"19.1.0-canary-
|
15769
|
+
isomorphicReactPackageVersion$jscomp$inline_1765,
|
15770
|
+
"19.1.0-canary-e06c72fc-20241215"
|
15770
15771
|
)
|
15771
15772
|
);
|
15772
15773
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -15786,12 +15787,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
15786
15787
|
null === componentOrElement ? null : componentOrElement.stateNode;
|
15787
15788
|
return componentOrElement;
|
15788
15789
|
};
|
15789
|
-
var internals$jscomp$
|
15790
|
+
var internals$jscomp$inline_1772 = {
|
15790
15791
|
bundleType: 0,
|
15791
|
-
version: "19.1.0-canary-
|
15792
|
+
version: "19.1.0-canary-e06c72fc-20241215",
|
15792
15793
|
rendererPackageName: "react-dom",
|
15793
15794
|
currentDispatcherRef: ReactSharedInternals,
|
15794
|
-
reconcilerVersion: "19.1.0-canary-
|
15795
|
+
reconcilerVersion: "19.1.0-canary-e06c72fc-20241215",
|
15795
15796
|
getLaneLabelMap: function () {
|
15796
15797
|
for (
|
15797
15798
|
var map = new Map(), lane = 1, index$279 = 0;
|
@@ -15809,16 +15810,16 @@ var internals$jscomp$inline_1781 = {
|
|
15809
15810
|
}
|
15810
15811
|
};
|
15811
15812
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
15812
|
-
var hook$jscomp$
|
15813
|
+
var hook$jscomp$inline_2206 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
15813
15814
|
if (
|
15814
|
-
!hook$jscomp$
|
15815
|
-
hook$jscomp$
|
15815
|
+
!hook$jscomp$inline_2206.isDisabled &&
|
15816
|
+
hook$jscomp$inline_2206.supportsFiber
|
15816
15817
|
)
|
15817
15818
|
try {
|
15818
|
-
(rendererID = hook$jscomp$
|
15819
|
-
internals$jscomp$
|
15819
|
+
(rendererID = hook$jscomp$inline_2206.inject(
|
15820
|
+
internals$jscomp$inline_1772
|
15820
15821
|
)),
|
15821
|
-
(injectedHook = hook$jscomp$
|
15822
|
+
(injectedHook = hook$jscomp$inline_2206);
|
15822
15823
|
} catch (err) {}
|
15823
15824
|
}
|
15824
15825
|
function noop() {}
|
@@ -16073,7 +16074,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
16073
16074
|
exports.useFormStatus = function () {
|
16074
16075
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
16075
16076
|
};
|
16076
|
-
exports.version = "19.1.0-canary-
|
16077
|
+
exports.version = "19.1.0-canary-e06c72fc-20241215";
|
16077
16078
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
16078
16079
|
"function" ===
|
16079
16080
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|