react-dom 19.1.0-canary-62208bee-20250102 → 19.1.0-canary-3ce77d55-20250106
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 +546 -533
- package/cjs/react-dom-client.production.js +438 -422
- package/cjs/react-dom-profiling.development.js +546 -533
- package/cjs/react-dom-profiling.profiling.js +476 -466
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +3 -3
- package/cjs/react-dom-server.node.production.js +3 -3
- 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
@@ -516,34 +516,6 @@ var hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
516
516
|
injectedHook = null,
|
517
517
|
injectedProfilingHooks = null,
|
518
518
|
isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
519
|
-
function onCommitRoot(root, eventPriority) {
|
520
|
-
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
521
|
-
try {
|
522
|
-
var didError = 128 === (root.current.flags & 128);
|
523
|
-
switch (eventPriority) {
|
524
|
-
case 2:
|
525
|
-
var schedulerPriority = ImmediatePriority;
|
526
|
-
break;
|
527
|
-
case 8:
|
528
|
-
schedulerPriority = UserBlockingPriority;
|
529
|
-
break;
|
530
|
-
case 32:
|
531
|
-
schedulerPriority = NormalPriority$1;
|
532
|
-
break;
|
533
|
-
case 268435456:
|
534
|
-
schedulerPriority = IdlePriority;
|
535
|
-
break;
|
536
|
-
default:
|
537
|
-
schedulerPriority = NormalPriority$1;
|
538
|
-
}
|
539
|
-
injectedHook.onCommitFiberRoot(
|
540
|
-
rendererID,
|
541
|
-
root,
|
542
|
-
schedulerPriority,
|
543
|
-
didError
|
544
|
-
);
|
545
|
-
} catch (err) {}
|
546
|
-
}
|
547
519
|
function setIsStrictModeForDevtools(newIsStrictMode) {
|
548
520
|
"function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);
|
549
521
|
if (injectedHook && "function" === typeof injectedHook.setStrictMode)
|
@@ -659,14 +631,13 @@ function getHighestPriorityLanes(lanes) {
|
|
659
631
|
return lanes;
|
660
632
|
}
|
661
633
|
}
|
662
|
-
function getNextLanes(root, wipLanes) {
|
634
|
+
function getNextLanes(root, wipLanes, rootHasPendingCommit) {
|
663
635
|
var pendingLanes = root.pendingLanes;
|
664
636
|
if (0 === pendingLanes) return 0;
|
665
637
|
var nextLanes = 0,
|
666
638
|
suspendedLanes = root.suspendedLanes,
|
667
|
-
pingedLanes = root.pingedLanes
|
668
|
-
|
669
|
-
root = 0 !== root.finishedLanes;
|
639
|
+
pingedLanes = root.pingedLanes;
|
640
|
+
root = root.warmLanes;
|
670
641
|
var nonIdlePendingLanes = pendingLanes & 134217727;
|
671
642
|
0 !== nonIdlePendingLanes
|
672
643
|
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
|
@@ -675,28 +646,28 @@ function getNextLanes(root, wipLanes) {
|
|
675
646
|
: ((pingedLanes &= nonIdlePendingLanes),
|
676
647
|
0 !== pingedLanes
|
677
648
|
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
678
|
-
:
|
679
|
-
((
|
680
|
-
0 !==
|
681
|
-
(nextLanes = getHighestPriorityLanes(
|
649
|
+
: rootHasPendingCommit ||
|
650
|
+
((rootHasPendingCommit = nonIdlePendingLanes & ~root),
|
651
|
+
0 !== rootHasPendingCommit &&
|
652
|
+
(nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))))
|
682
653
|
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
|
683
654
|
0 !== nonIdlePendingLanes
|
684
655
|
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
|
685
656
|
: 0 !== pingedLanes
|
686
657
|
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
687
|
-
:
|
688
|
-
((
|
689
|
-
0 !==
|
690
|
-
(nextLanes = getHighestPriorityLanes(
|
658
|
+
: rootHasPendingCommit ||
|
659
|
+
((rootHasPendingCommit = pendingLanes & ~root),
|
660
|
+
0 !== rootHasPendingCommit &&
|
661
|
+
(nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
|
691
662
|
return 0 === nextLanes
|
692
663
|
? 0
|
693
664
|
: 0 !== wipLanes &&
|
694
665
|
wipLanes !== nextLanes &&
|
695
666
|
0 === (wipLanes & suspendedLanes) &&
|
696
667
|
((suspendedLanes = nextLanes & -nextLanes),
|
697
|
-
(
|
698
|
-
suspendedLanes >=
|
699
|
-
(32 === suspendedLanes && 0 !== (
|
668
|
+
(rootHasPendingCommit = wipLanes & -wipLanes),
|
669
|
+
suspendedLanes >= rootHasPendingCommit ||
|
670
|
+
(32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176)))
|
700
671
|
? wipLanes
|
701
672
|
: nextLanes;
|
702
673
|
}
|
@@ -2125,19 +2096,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
|
|
2125
2096
|
}
|
2126
2097
|
var isInputEventSupported = !1;
|
2127
2098
|
if (canUseDOM) {
|
2128
|
-
var JSCompiler_inline_result$jscomp$
|
2099
|
+
var JSCompiler_inline_result$jscomp$297;
|
2129
2100
|
if (canUseDOM) {
|
2130
|
-
var isSupported$jscomp$
|
2131
|
-
if (!isSupported$jscomp$
|
2132
|
-
var element$jscomp$
|
2133
|
-
element$jscomp$
|
2134
|
-
isSupported$jscomp$
|
2135
|
-
"function" === typeof element$jscomp$
|
2101
|
+
var isSupported$jscomp$inline_429 = "oninput" in document;
|
2102
|
+
if (!isSupported$jscomp$inline_429) {
|
2103
|
+
var element$jscomp$inline_430 = document.createElement("div");
|
2104
|
+
element$jscomp$inline_430.setAttribute("oninput", "return;");
|
2105
|
+
isSupported$jscomp$inline_429 =
|
2106
|
+
"function" === typeof element$jscomp$inline_430.oninput;
|
2136
2107
|
}
|
2137
|
-
JSCompiler_inline_result$jscomp$
|
2138
|
-
} else JSCompiler_inline_result$jscomp$
|
2108
|
+
JSCompiler_inline_result$jscomp$297 = isSupported$jscomp$inline_429;
|
2109
|
+
} else JSCompiler_inline_result$jscomp$297 = !1;
|
2139
2110
|
isInputEventSupported =
|
2140
|
-
JSCompiler_inline_result$jscomp$
|
2111
|
+
JSCompiler_inline_result$jscomp$297 &&
|
2141
2112
|
(!document.documentMode || 9 < document.documentMode);
|
2142
2113
|
}
|
2143
2114
|
function stopWatchingForValueChange() {
|
@@ -2289,97 +2260,6 @@ function hasSelectionCapabilities(elem) {
|
|
2289
2260
|
"true" === elem.contentEditable)
|
2290
2261
|
);
|
2291
2262
|
}
|
2292
|
-
function restoreSelection(priorSelectionInformation, containerInfo) {
|
2293
|
-
var curFocusedElem = getActiveElementDeep(containerInfo);
|
2294
|
-
containerInfo = priorSelectionInformation.focusedElem;
|
2295
|
-
var priorSelectionRange = priorSelectionInformation.selectionRange;
|
2296
|
-
if (
|
2297
|
-
curFocusedElem !== containerInfo &&
|
2298
|
-
containerInfo &&
|
2299
|
-
containerInfo.ownerDocument &&
|
2300
|
-
containsNode(containerInfo.ownerDocument.documentElement, containerInfo)
|
2301
|
-
) {
|
2302
|
-
if (null !== priorSelectionRange && hasSelectionCapabilities(containerInfo))
|
2303
|
-
if (
|
2304
|
-
((priorSelectionInformation = priorSelectionRange.start),
|
2305
|
-
(curFocusedElem = priorSelectionRange.end),
|
2306
|
-
void 0 === curFocusedElem &&
|
2307
|
-
(curFocusedElem = priorSelectionInformation),
|
2308
|
-
"selectionStart" in containerInfo)
|
2309
|
-
)
|
2310
|
-
(containerInfo.selectionStart = priorSelectionInformation),
|
2311
|
-
(containerInfo.selectionEnd = Math.min(
|
2312
|
-
curFocusedElem,
|
2313
|
-
containerInfo.value.length
|
2314
|
-
));
|
2315
|
-
else if (
|
2316
|
-
((curFocusedElem =
|
2317
|
-
((priorSelectionInformation =
|
2318
|
-
containerInfo.ownerDocument || document) &&
|
2319
|
-
priorSelectionInformation.defaultView) ||
|
2320
|
-
window),
|
2321
|
-
curFocusedElem.getSelection)
|
2322
|
-
) {
|
2323
|
-
curFocusedElem = curFocusedElem.getSelection();
|
2324
|
-
var length = containerInfo.textContent.length,
|
2325
|
-
start = Math.min(priorSelectionRange.start, length);
|
2326
|
-
priorSelectionRange =
|
2327
|
-
void 0 === priorSelectionRange.end
|
2328
|
-
? start
|
2329
|
-
: Math.min(priorSelectionRange.end, length);
|
2330
|
-
!curFocusedElem.extend &&
|
2331
|
-
start > priorSelectionRange &&
|
2332
|
-
((length = priorSelectionRange),
|
2333
|
-
(priorSelectionRange = start),
|
2334
|
-
(start = length));
|
2335
|
-
length = getNodeForCharacterOffset(containerInfo, start);
|
2336
|
-
var endMarker = getNodeForCharacterOffset(
|
2337
|
-
containerInfo,
|
2338
|
-
priorSelectionRange
|
2339
|
-
);
|
2340
|
-
length &&
|
2341
|
-
endMarker &&
|
2342
|
-
(1 !== curFocusedElem.rangeCount ||
|
2343
|
-
curFocusedElem.anchorNode !== length.node ||
|
2344
|
-
curFocusedElem.anchorOffset !== length.offset ||
|
2345
|
-
curFocusedElem.focusNode !== endMarker.node ||
|
2346
|
-
curFocusedElem.focusOffset !== endMarker.offset) &&
|
2347
|
-
((priorSelectionInformation =
|
2348
|
-
priorSelectionInformation.createRange()),
|
2349
|
-
priorSelectionInformation.setStart(length.node, length.offset),
|
2350
|
-
curFocusedElem.removeAllRanges(),
|
2351
|
-
start > priorSelectionRange
|
2352
|
-
? (curFocusedElem.addRange(priorSelectionInformation),
|
2353
|
-
curFocusedElem.extend(endMarker.node, endMarker.offset))
|
2354
|
-
: (priorSelectionInformation.setEnd(
|
2355
|
-
endMarker.node,
|
2356
|
-
endMarker.offset
|
2357
|
-
),
|
2358
|
-
curFocusedElem.addRange(priorSelectionInformation)));
|
2359
|
-
}
|
2360
|
-
priorSelectionInformation = [];
|
2361
|
-
for (
|
2362
|
-
curFocusedElem = containerInfo;
|
2363
|
-
(curFocusedElem = curFocusedElem.parentNode);
|
2364
|
-
|
2365
|
-
)
|
2366
|
-
1 === curFocusedElem.nodeType &&
|
2367
|
-
priorSelectionInformation.push({
|
2368
|
-
element: curFocusedElem,
|
2369
|
-
left: curFocusedElem.scrollLeft,
|
2370
|
-
top: curFocusedElem.scrollTop
|
2371
|
-
});
|
2372
|
-
"function" === typeof containerInfo.focus && containerInfo.focus();
|
2373
|
-
for (
|
2374
|
-
containerInfo = 0;
|
2375
|
-
containerInfo < priorSelectionInformation.length;
|
2376
|
-
containerInfo++
|
2377
|
-
)
|
2378
|
-
(curFocusedElem = priorSelectionInformation[containerInfo]),
|
2379
|
-
(curFocusedElem.element.scrollLeft = curFocusedElem.left),
|
2380
|
-
(curFocusedElem.element.scrollTop = curFocusedElem.top);
|
2381
|
-
}
|
2382
|
-
}
|
2383
2263
|
var skipSelectionChangeEvent =
|
2384
2264
|
canUseDOM && "documentMode" in document && 11 >= document.documentMode,
|
2385
2265
|
activeElement = null,
|
@@ -6269,12 +6149,12 @@ function markRef(current, workInProgress) {
|
|
6269
6149
|
if (null === ref)
|
6270
6150
|
null !== current &&
|
6271
6151
|
null !== current.ref &&
|
6272
|
-
(workInProgress.flags |=
|
6152
|
+
(workInProgress.flags |= 4194816);
|
6273
6153
|
else {
|
6274
6154
|
if ("function" !== typeof ref && "object" !== typeof ref)
|
6275
6155
|
throw Error(formatProdErrorMessage(284));
|
6276
6156
|
if (null === current || current.ref !== ref)
|
6277
|
-
workInProgress.flags |=
|
6157
|
+
workInProgress.flags |= 4194816;
|
6278
6158
|
}
|
6279
6159
|
}
|
6280
6160
|
function updateFunctionComponent(
|
@@ -6884,7 +6764,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
6884
6764
|
children: nextProps.children
|
6885
6765
|
})),
|
6886
6766
|
(nextProps.subtreeFlags =
|
6887
|
-
JSCompiler_temp$jscomp$0.subtreeFlags &
|
6767
|
+
JSCompiler_temp$jscomp$0.subtreeFlags & 29360128),
|
6888
6768
|
null !== digest
|
6889
6769
|
? (showFallback = createWorkInProgress(digest, showFallback))
|
6890
6770
|
: ((showFallback = createFiberFromFragment(
|
@@ -8096,8 +7976,7 @@ var offscreenSubtreeIsHidden = !1,
|
|
8096
7976
|
PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
8097
7977
|
nextEffect = null,
|
8098
7978
|
inProgressLanes = null,
|
8099
|
-
inProgressRoot = null
|
8100
|
-
shouldFireAfterActiveInstanceBlur = !1;
|
7979
|
+
inProgressRoot = null;
|
8101
7980
|
function commitBeforeMutationEffects(root, firstChild) {
|
8102
7981
|
root = root.containerInfo;
|
8103
7982
|
eventsEnabled = _enabled;
|
@@ -8173,7 +8052,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
8173
8052
|
if (
|
8174
8053
|
((firstChild = nextEffect),
|
8175
8054
|
(root = firstChild.child),
|
8176
|
-
0 !== (firstChild.subtreeFlags &
|
8055
|
+
0 !== (firstChild.subtreeFlags & 1024) && null !== root)
|
8177
8056
|
)
|
8178
8057
|
(root.return = firstChild), (nextEffect = root);
|
8179
8058
|
else
|
@@ -8251,9 +8130,6 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
8251
8130
|
}
|
8252
8131
|
nextEffect = firstChild.return;
|
8253
8132
|
}
|
8254
|
-
resolvedPrevProps = shouldFireAfterActiveInstanceBlur;
|
8255
|
-
shouldFireAfterActiveInstanceBlur = !1;
|
8256
|
-
return resolvedPrevProps;
|
8257
8133
|
}
|
8258
8134
|
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
8259
8135
|
var flags = finishedWork.flags;
|
@@ -8666,12 +8542,6 @@ function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
|
8666
8542
|
}
|
8667
8543
|
});
|
8668
8544
|
}
|
8669
|
-
function commitMutationEffects(root, finishedWork, committedLanes) {
|
8670
|
-
inProgressLanes = committedLanes;
|
8671
|
-
inProgressRoot = root;
|
8672
|
-
commitMutationEffectsOnFiber(finishedWork, root);
|
8673
|
-
inProgressRoot = inProgressLanes = null;
|
8674
|
-
}
|
8675
8545
|
function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
|
8676
8546
|
var deletions = parentFiber.deletions;
|
8677
8547
|
if (null !== deletions)
|
@@ -8796,7 +8666,9 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
8796
8666
|
if (
|
8797
8667
|
((hoistableRoot = maybeNodes[i]),
|
8798
8668
|
hoistableRoot.getAttribute("href") ===
|
8799
|
-
(null == current.href
|
8669
|
+
(null == current.href || "" === current.href
|
8670
|
+
? null
|
8671
|
+
: current.href) &&
|
8800
8672
|
hoistableRoot.getAttribute("rel") ===
|
8801
8673
|
(null == current.rel ? null : current.rel) &&
|
8802
8674
|
hoistableRoot.getAttribute("title") ===
|
@@ -9189,12 +9061,6 @@ function recursivelyResetForms(parentFiber) {
|
|
9189
9061
|
parentFiber = parentFiber.sibling;
|
9190
9062
|
}
|
9191
9063
|
}
|
9192
|
-
function commitLayoutEffects(finishedWork, root, committedLanes) {
|
9193
|
-
inProgressLanes = committedLanes;
|
9194
|
-
inProgressRoot = root;
|
9195
|
-
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
|
9196
|
-
inProgressRoot = inProgressLanes = null;
|
9197
|
-
}
|
9198
9064
|
function recursivelyTraverseLayoutEffects(root, parentFiber) {
|
9199
9065
|
if (parentFiber.subtreeFlags & 8772)
|
9200
9066
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
@@ -9421,6 +9287,14 @@ function commitPassiveMountOnFiber(
|
|
9421
9287
|
);
|
9422
9288
|
flags & 2048 && commitHookPassiveMountEffects(finishedWork, 9);
|
9423
9289
|
break;
|
9290
|
+
case 1:
|
9291
|
+
recursivelyTraversePassiveMountEffects(
|
9292
|
+
finishedRoot,
|
9293
|
+
finishedWork,
|
9294
|
+
committedLanes,
|
9295
|
+
committedTransitions
|
9296
|
+
);
|
9297
|
+
break;
|
9424
9298
|
case 3:
|
9425
9299
|
var prevEffectDuration = pushNestedEffectDurations();
|
9426
9300
|
recursivelyTraversePassiveMountEffects(
|
@@ -9897,7 +9771,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
9897
9771
|
(workInProgress.deletions = null),
|
9898
9772
|
(workInProgress.actualDuration = -0),
|
9899
9773
|
(workInProgress.actualStartTime = -1.1));
|
9900
|
-
workInProgress.flags = current.flags &
|
9774
|
+
workInProgress.flags = current.flags & 29360128;
|
9901
9775
|
workInProgress.childLanes = current.childLanes;
|
9902
9776
|
workInProgress.lanes = current.lanes;
|
9903
9777
|
workInProgress.child = current.child;
|
@@ -9918,7 +9792,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
9918
9792
|
return workInProgress;
|
9919
9793
|
}
|
9920
9794
|
function resetWorkInProgress(workInProgress, renderLanes) {
|
9921
|
-
workInProgress.flags &=
|
9795
|
+
workInProgress.flags &= 29360130;
|
9922
9796
|
var current = workInProgress.alternate;
|
9923
9797
|
null === current
|
9924
9798
|
? ((workInProgress.childLanes = 0),
|
@@ -10172,8 +10046,8 @@ function bubbleProperties(completedWork) {
|
|
10172
10046
|
|
10173
10047
|
)
|
10174
10048
|
(newChildLanes |= child$144.lanes | child$144.childLanes),
|
10175
|
-
(subtreeFlags |= child$144.subtreeFlags &
|
10176
|
-
(subtreeFlags |= child$144.flags &
|
10049
|
+
(subtreeFlags |= child$144.subtreeFlags & 29360128),
|
10050
|
+
(subtreeFlags |= child$144.flags & 29360128),
|
10177
10051
|
(treeBaseDuration$143 += child$144.treeBaseDuration),
|
10178
10052
|
(child$144 = child$144.sibling);
|
10179
10053
|
completedWork.treeBaseDuration = treeBaseDuration$143;
|
@@ -10185,8 +10059,8 @@ function bubbleProperties(completedWork) {
|
|
10185
10059
|
)
|
10186
10060
|
(newChildLanes |=
|
10187
10061
|
treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes),
|
10188
|
-
(subtreeFlags |= treeBaseDuration$143.subtreeFlags &
|
10189
|
-
(subtreeFlags |= treeBaseDuration$143.flags &
|
10062
|
+
(subtreeFlags |= treeBaseDuration$143.subtreeFlags & 29360128),
|
10063
|
+
(subtreeFlags |= treeBaseDuration$143.flags & 29360128),
|
10190
10064
|
(treeBaseDuration$143.return = completedWork),
|
10191
10065
|
(treeBaseDuration$143 = treeBaseDuration$143.sibling);
|
10192
10066
|
else if (0 !== (completedWork.mode & 2)) {
|
@@ -10969,8 +10843,6 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
10969
10843
|
default:
|
10970
10844
|
throw Error(formatProdErrorMessage(329));
|
10971
10845
|
}
|
10972
|
-
shouldTimeSlice.finishedWork = forceSync;
|
10973
|
-
shouldTimeSlice.finishedLanes = lanes;
|
10974
10846
|
if (
|
10975
10847
|
(lanes & 62914560) === lanes &&
|
10976
10848
|
((exitStatus = globalMostRecentFallbackTime + 300 - now$1()),
|
@@ -10982,7 +10854,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
10982
10854
|
workInProgressDeferredLane,
|
10983
10855
|
!workInProgressRootDidSkipSuspendedSiblings
|
10984
10856
|
);
|
10985
|
-
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
10857
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
|
10986
10858
|
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
10987
10859
|
commitRootWhenReady.bind(
|
10988
10860
|
null,
|
@@ -11043,18 +10915,24 @@ function commitRootWhenReady(
|
|
11043
10915
|
completedRenderStartTime,
|
11044
10916
|
completedRenderEndTime
|
11045
10917
|
) {
|
11046
|
-
|
11047
|
-
|
10918
|
+
root.timeoutHandle = -1;
|
10919
|
+
suspendedCommitReason = finishedWork.subtreeFlags;
|
10920
|
+
if (
|
10921
|
+
suspendedCommitReason & 8192 ||
|
10922
|
+
16785408 === (suspendedCommitReason & 16785408)
|
10923
|
+
)
|
11048
10924
|
if (
|
11049
10925
|
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }),
|
11050
10926
|
accumulateSuspenseyCommitOnFiber(finishedWork),
|
11051
|
-
(
|
11052
|
-
null !==
|
10927
|
+
(suspendedCommitReason = waitForCommitToBeReady()),
|
10928
|
+
null !== suspendedCommitReason)
|
11053
10929
|
) {
|
11054
|
-
root.cancelPendingCommit =
|
10930
|
+
root.cancelPendingCommit = suspendedCommitReason(
|
11055
10931
|
commitRoot.bind(
|
11056
10932
|
null,
|
11057
10933
|
root,
|
10934
|
+
finishedWork,
|
10935
|
+
lanes,
|
11058
10936
|
recoverableErrors,
|
11059
10937
|
transitions,
|
11060
10938
|
didIncludeRenderPhaseUpdate,
|
@@ -11072,16 +10950,14 @@ function commitRootWhenReady(
|
|
11072
10950
|
}
|
11073
10951
|
commitRoot(
|
11074
10952
|
root,
|
10953
|
+
finishedWork,
|
10954
|
+
lanes,
|
11075
10955
|
recoverableErrors,
|
11076
10956
|
transitions,
|
11077
10957
|
didIncludeRenderPhaseUpdate,
|
11078
10958
|
spawnedLane,
|
11079
10959
|
updatedLanes,
|
11080
|
-
suspendedRetryLanes
|
11081
|
-
exitStatus,
|
11082
|
-
suspendedCommitReason,
|
11083
|
-
completedRenderStartTime,
|
11084
|
-
completedRenderEndTime
|
10960
|
+
suspendedRetryLanes
|
11085
10961
|
);
|
11086
10962
|
}
|
11087
10963
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
@@ -11162,8 +11038,6 @@ function resetWorkInProgressStack() {
|
|
11162
11038
|
}
|
11163
11039
|
}
|
11164
11040
|
function prepareFreshStack(root, lanes) {
|
11165
|
-
root.finishedWork = null;
|
11166
|
-
root.finishedLanes = 0;
|
11167
11041
|
var timeoutHandle = root.timeoutHandle;
|
11168
11042
|
-1 !== timeoutHandle &&
|
11169
11043
|
((root.timeoutHandle = -1), cancelTimeout(timeoutHandle));
|
@@ -11466,7 +11340,7 @@ function renderRootConcurrent(root, lanes) {
|
|
11466
11340
|
default:
|
11467
11341
|
throw Error(formatProdErrorMessage(462));
|
11468
11342
|
}
|
11469
|
-
|
11343
|
+
workLoopConcurrentByScheduler();
|
11470
11344
|
break;
|
11471
11345
|
} catch (thrownValue$181) {
|
11472
11346
|
handleThrow(root, thrownValue$181);
|
@@ -11489,7 +11363,7 @@ function renderRootConcurrent(root, lanes) {
|
|
11489
11363
|
finishQueueingConcurrentUpdates();
|
11490
11364
|
return workInProgressRootExitStatus;
|
11491
11365
|
}
|
11492
|
-
function
|
11366
|
+
function workLoopConcurrentByScheduler() {
|
11493
11367
|
for (; null !== workInProgress && !shouldYield(); )
|
11494
11368
|
performUnitOfWork(workInProgress);
|
11495
11369
|
}
|
@@ -11666,144 +11540,275 @@ function unwindUnitOfWork(unitOfWork, skipSiblings) {
|
|
11666
11540
|
}
|
11667
11541
|
function commitRoot(
|
11668
11542
|
root,
|
11543
|
+
finishedWork,
|
11544
|
+
lanes,
|
11669
11545
|
recoverableErrors,
|
11670
11546
|
transitions,
|
11671
11547
|
didIncludeRenderPhaseUpdate,
|
11672
11548
|
spawnedLane,
|
11673
11549
|
updatedLanes,
|
11674
|
-
suspendedRetryLanes,
|
11675
|
-
exitStatus,
|
11676
|
-
suspendedCommitReason,
|
11677
|
-
completedRenderStartTime,
|
11678
|
-
completedRenderEndTime
|
11679
|
-
) {
|
11680
|
-
var prevTransition = ReactSharedInternals.T,
|
11681
|
-
previousUpdateLanePriority = ReactDOMSharedInternals.p;
|
11682
|
-
try {
|
11683
|
-
(ReactDOMSharedInternals.p = 2),
|
11684
|
-
(ReactSharedInternals.T = null),
|
11685
|
-
commitRootImpl(
|
11686
|
-
root,
|
11687
|
-
recoverableErrors,
|
11688
|
-
transitions,
|
11689
|
-
didIncludeRenderPhaseUpdate,
|
11690
|
-
previousUpdateLanePriority,
|
11691
|
-
spawnedLane,
|
11692
|
-
updatedLanes,
|
11693
|
-
suspendedRetryLanes,
|
11694
|
-
exitStatus,
|
11695
|
-
suspendedCommitReason,
|
11696
|
-
completedRenderStartTime,
|
11697
|
-
completedRenderEndTime
|
11698
|
-
);
|
11699
|
-
} finally {
|
11700
|
-
(ReactSharedInternals.T = prevTransition),
|
11701
|
-
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
|
11702
|
-
}
|
11703
|
-
}
|
11704
|
-
function commitRootImpl(
|
11705
|
-
root,
|
11706
|
-
recoverableErrors,
|
11707
|
-
transitions,
|
11708
|
-
didIncludeRenderPhaseUpdate,
|
11709
|
-
renderPriorityLevel,
|
11710
|
-
spawnedLane,
|
11711
|
-
updatedLanes,
|
11712
11550
|
suspendedRetryLanes
|
11713
11551
|
) {
|
11552
|
+
root.cancelPendingCommit = null;
|
11714
11553
|
do flushPassiveEffects();
|
11715
11554
|
while (null !== rootWithPendingPassiveEffects);
|
11716
11555
|
if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
|
11717
|
-
var finishedWork = root.finishedWork;
|
11718
|
-
didIncludeRenderPhaseUpdate = root.finishedLanes;
|
11719
11556
|
null !== injectedProfilingHooks &&
|
11720
11557
|
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
11721
|
-
injectedProfilingHooks.markCommitStarted(
|
11722
|
-
if (null === finishedWork)
|
11723
|
-
|
11724
|
-
|
11725
|
-
|
11726
|
-
|
11727
|
-
|
11728
|
-
|
11729
|
-
|
11730
|
-
|
11731
|
-
|
11732
|
-
|
11733
|
-
|
11734
|
-
|
11735
|
-
|
11736
|
-
|
11737
|
-
|
11738
|
-
(
|
11739
|
-
|
11740
|
-
|
11741
|
-
|
11742
|
-
|
11743
|
-
|
11744
|
-
|
11745
|
-
|
11746
|
-
|
11747
|
-
|
11748
|
-
|
11749
|
-
|
11750
|
-
|
11751
|
-
|
11752
|
-
|
11753
|
-
|
11754
|
-
|
11755
|
-
|
11756
|
-
|
11757
|
-
|
11758
|
-
|
11759
|
-
|
11760
|
-
|
11761
|
-
|
11762
|
-
|
11763
|
-
|
11764
|
-
|
11765
|
-
|
11766
|
-
|
11767
|
-
|
11768
|
-
|
11769
|
-
|
11558
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
11559
|
+
if (null === finishedWork) markCommitStopped();
|
11560
|
+
else {
|
11561
|
+
if (finishedWork === root.current) throw Error(formatProdErrorMessage(177));
|
11562
|
+
didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes;
|
11563
|
+
didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
|
11564
|
+
markRootFinished(
|
11565
|
+
root,
|
11566
|
+
lanes,
|
11567
|
+
didIncludeRenderPhaseUpdate,
|
11568
|
+
spawnedLane,
|
11569
|
+
updatedLanes,
|
11570
|
+
suspendedRetryLanes
|
11571
|
+
);
|
11572
|
+
root === workInProgressRoot &&
|
11573
|
+
((workInProgress = workInProgressRoot = null),
|
11574
|
+
(workInProgressRootRenderLanes = 0));
|
11575
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
11576
|
+
0 !== (finishedWork.flags & 10256)
|
11577
|
+
? ((pendingPassiveEffectsRemainingLanes = didIncludeRenderPhaseUpdate),
|
11578
|
+
(pendingPassiveTransitions = transitions),
|
11579
|
+
(root.callbackNode = null),
|
11580
|
+
(root.callbackPriority = 0),
|
11581
|
+
scheduleCallback$1(NormalPriority$1, function () {
|
11582
|
+
flushPassiveEffects(!0);
|
11583
|
+
return null;
|
11584
|
+
}))
|
11585
|
+
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
11586
|
+
commitStartTime = now();
|
11587
|
+
transitions = 0 !== (finishedWork.flags & 13878);
|
11588
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
|
11589
|
+
transitions = ReactSharedInternals.T;
|
11590
|
+
ReactSharedInternals.T = null;
|
11591
|
+
spawnedLane = ReactDOMSharedInternals.p;
|
11592
|
+
ReactDOMSharedInternals.p = 2;
|
11593
|
+
updatedLanes = executionContext;
|
11594
|
+
executionContext |= 4;
|
11595
|
+
try {
|
11596
|
+
commitBeforeMutationEffects(root, finishedWork);
|
11597
|
+
} finally {
|
11598
|
+
(executionContext = updatedLanes),
|
11599
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
11600
|
+
(ReactSharedInternals.T = transitions);
|
11601
|
+
}
|
11602
|
+
}
|
11603
|
+
flushMutationEffects(root, finishedWork, lanes);
|
11604
|
+
flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
|
11605
|
+
}
|
11606
|
+
}
|
11607
|
+
function flushMutationEffects(root, finishedWork, lanes) {
|
11608
|
+
var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
|
11609
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
|
11610
|
+
rootMutationHasEffect = ReactSharedInternals.T;
|
11611
|
+
ReactSharedInternals.T = null;
|
11612
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
11613
|
+
ReactDOMSharedInternals.p = 2;
|
11614
|
+
var prevExecutionContext = executionContext;
|
11615
|
+
executionContext |= 4;
|
11616
|
+
try {
|
11617
|
+
inProgressLanes = lanes;
|
11618
|
+
inProgressRoot = root;
|
11619
|
+
commitMutationEffectsOnFiber(finishedWork, root);
|
11620
|
+
inProgressRoot = inProgressLanes = null;
|
11621
|
+
lanes = selectionInformation;
|
11622
|
+
var curFocusedElem = getActiveElementDeep(root.containerInfo),
|
11623
|
+
priorFocusedElem = lanes.focusedElem,
|
11624
|
+
priorSelectionRange = lanes.selectionRange;
|
11625
|
+
if (
|
11626
|
+
curFocusedElem !== priorFocusedElem &&
|
11627
|
+
priorFocusedElem &&
|
11628
|
+
priorFocusedElem.ownerDocument &&
|
11629
|
+
containsNode(
|
11630
|
+
priorFocusedElem.ownerDocument.documentElement,
|
11631
|
+
priorFocusedElem
|
11632
|
+
)
|
11633
|
+
) {
|
11634
|
+
if (
|
11635
|
+
null !== priorSelectionRange &&
|
11636
|
+
hasSelectionCapabilities(priorFocusedElem)
|
11637
|
+
) {
|
11638
|
+
var start = priorSelectionRange.start,
|
11639
|
+
end = priorSelectionRange.end;
|
11640
|
+
void 0 === end && (end = start);
|
11641
|
+
if ("selectionStart" in priorFocusedElem)
|
11642
|
+
(priorFocusedElem.selectionStart = start),
|
11643
|
+
(priorFocusedElem.selectionEnd = Math.min(
|
11644
|
+
end,
|
11645
|
+
priorFocusedElem.value.length
|
11646
|
+
));
|
11647
|
+
else {
|
11648
|
+
var doc = priorFocusedElem.ownerDocument || document,
|
11649
|
+
win = (doc && doc.defaultView) || window;
|
11650
|
+
if (win.getSelection) {
|
11651
|
+
var selection = win.getSelection(),
|
11652
|
+
length = priorFocusedElem.textContent.length,
|
11653
|
+
start$jscomp$0 = Math.min(priorSelectionRange.start, length),
|
11654
|
+
end$jscomp$0 =
|
11655
|
+
void 0 === priorSelectionRange.end
|
11656
|
+
? start$jscomp$0
|
11657
|
+
: Math.min(priorSelectionRange.end, length);
|
11658
|
+
!selection.extend &&
|
11659
|
+
start$jscomp$0 > end$jscomp$0 &&
|
11660
|
+
((curFocusedElem = end$jscomp$0),
|
11661
|
+
(end$jscomp$0 = start$jscomp$0),
|
11662
|
+
(start$jscomp$0 = curFocusedElem));
|
11663
|
+
var startMarker = getNodeForCharacterOffset(
|
11664
|
+
priorFocusedElem,
|
11665
|
+
start$jscomp$0
|
11666
|
+
),
|
11667
|
+
endMarker = getNodeForCharacterOffset(
|
11668
|
+
priorFocusedElem,
|
11669
|
+
end$jscomp$0
|
11670
|
+
);
|
11671
|
+
if (
|
11672
|
+
startMarker &&
|
11673
|
+
endMarker &&
|
11674
|
+
(1 !== selection.rangeCount ||
|
11675
|
+
selection.anchorNode !== startMarker.node ||
|
11676
|
+
selection.anchorOffset !== startMarker.offset ||
|
11677
|
+
selection.focusNode !== endMarker.node ||
|
11678
|
+
selection.focusOffset !== endMarker.offset)
|
11679
|
+
) {
|
11680
|
+
var range = doc.createRange();
|
11681
|
+
range.setStart(startMarker.node, startMarker.offset);
|
11682
|
+
selection.removeAllRanges();
|
11683
|
+
start$jscomp$0 > end$jscomp$0
|
11684
|
+
? (selection.addRange(range),
|
11685
|
+
selection.extend(endMarker.node, endMarker.offset))
|
11686
|
+
: (range.setEnd(endMarker.node, endMarker.offset),
|
11687
|
+
selection.addRange(range));
|
11688
|
+
}
|
11689
|
+
}
|
11690
|
+
}
|
11691
|
+
}
|
11692
|
+
doc = [];
|
11693
|
+
for (selection = priorFocusedElem; (selection = selection.parentNode); )
|
11694
|
+
1 === selection.nodeType &&
|
11695
|
+
doc.push({
|
11696
|
+
element: selection,
|
11697
|
+
left: selection.scrollLeft,
|
11698
|
+
top: selection.scrollTop
|
11699
|
+
});
|
11700
|
+
"function" === typeof priorFocusedElem.focus &&
|
11701
|
+
priorFocusedElem.focus();
|
11702
|
+
for (
|
11703
|
+
priorFocusedElem = 0;
|
11704
|
+
priorFocusedElem < doc.length;
|
11705
|
+
priorFocusedElem++
|
11706
|
+
) {
|
11707
|
+
var info = doc[priorFocusedElem];
|
11708
|
+
info.element.scrollLeft = info.left;
|
11709
|
+
info.element.scrollTop = info.top;
|
11710
|
+
}
|
11711
|
+
}
|
11712
|
+
_enabled = !!eventsEnabled;
|
11713
|
+
selectionInformation = eventsEnabled = null;
|
11714
|
+
} finally {
|
11715
|
+
(executionContext = prevExecutionContext),
|
11716
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
11717
|
+
(ReactSharedInternals.T = rootMutationHasEffect);
|
11718
|
+
}
|
11719
|
+
}
|
11720
|
+
root.current = finishedWork;
|
11721
|
+
}
|
11722
|
+
function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
|
11723
|
+
var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
|
11724
|
+
if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
|
11725
|
+
rootHasLayoutEffect = ReactSharedInternals.T;
|
11726
|
+
ReactSharedInternals.T = null;
|
11727
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
11728
|
+
ReactDOMSharedInternals.p = 2;
|
11729
|
+
var prevExecutionContext = executionContext;
|
11730
|
+
executionContext |= 4;
|
11731
|
+
try {
|
11770
11732
|
null !== injectedProfilingHooks &&
|
11771
11733
|
"function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
11772
|
-
injectedProfilingHooks.markLayoutEffectsStarted(
|
11773
|
-
|
11774
|
-
),
|
11775
|
-
|
11776
|
-
|
11777
|
-
|
11778
|
-
|
11779
|
-
|
11780
|
-
|
11781
|
-
|
11782
|
-
(
|
11783
|
-
|
11784
|
-
|
11785
|
-
|
11786
|
-
|
11787
|
-
|
11788
|
-
|
11789
|
-
|
11790
|
-
|
11791
|
-
|
11734
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes),
|
11735
|
+
(inProgressLanes = lanes),
|
11736
|
+
(inProgressRoot = root),
|
11737
|
+
commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork),
|
11738
|
+
(inProgressRoot = inProgressLanes = null),
|
11739
|
+
null !== injectedProfilingHooks &&
|
11740
|
+
"function" ===
|
11741
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
11742
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
11743
|
+
} finally {
|
11744
|
+
(executionContext = prevExecutionContext),
|
11745
|
+
(ReactDOMSharedInternals.p = previousPriority),
|
11746
|
+
(ReactSharedInternals.T = rootHasLayoutEffect);
|
11747
|
+
}
|
11748
|
+
}
|
11749
|
+
requestPaint();
|
11750
|
+
0 !== (finishedWork.subtreeFlags & 10256) ||
|
11751
|
+
0 !== (finishedWork.flags & 10256)
|
11752
|
+
? ((rootWithPendingPassiveEffects = root),
|
11753
|
+
(pendingPassiveEffectsLanes = lanes))
|
11754
|
+
: releaseRootPooledCache(root, root.pendingLanes);
|
11755
|
+
rootHasLayoutEffect = root.pendingLanes;
|
11756
|
+
0 === rootHasLayoutEffect && (legacyErrorBoundariesThatAlreadyFailed = null);
|
11757
|
+
rootHasLayoutEffect = lanesToEventPriority(lanes);
|
11758
|
+
finishedWork = finishedWork.stateNode;
|
11759
|
+
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
11760
|
+
try {
|
11761
|
+
var didError = 128 === (finishedWork.current.flags & 128);
|
11762
|
+
switch (rootHasLayoutEffect) {
|
11763
|
+
case 2:
|
11764
|
+
var schedulerPriority = ImmediatePriority;
|
11765
|
+
break;
|
11766
|
+
case 8:
|
11767
|
+
schedulerPriority = UserBlockingPriority;
|
11768
|
+
break;
|
11769
|
+
case 32:
|
11770
|
+
schedulerPriority = NormalPriority$1;
|
11771
|
+
break;
|
11772
|
+
case 268435456:
|
11773
|
+
schedulerPriority = IdlePriority;
|
11774
|
+
break;
|
11775
|
+
default:
|
11776
|
+
schedulerPriority = NormalPriority$1;
|
11777
|
+
}
|
11778
|
+
injectedHook.onCommitFiberRoot(
|
11779
|
+
rendererID,
|
11780
|
+
finishedWork,
|
11781
|
+
schedulerPriority,
|
11782
|
+
didError
|
11783
|
+
);
|
11784
|
+
} catch (err) {}
|
11792
11785
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
11793
|
-
if (null !== recoverableErrors)
|
11794
|
-
|
11795
|
-
|
11796
|
-
|
11797
|
-
|
11798
|
-
|
11799
|
-
|
11800
|
-
|
11801
|
-
|
11786
|
+
if (null !== recoverableErrors) {
|
11787
|
+
didError = ReactSharedInternals.T;
|
11788
|
+
schedulerPriority = ReactDOMSharedInternals.p;
|
11789
|
+
ReactDOMSharedInternals.p = 2;
|
11790
|
+
ReactSharedInternals.T = null;
|
11791
|
+
try {
|
11792
|
+
var onRecoverableError = root.onRecoverableError;
|
11793
|
+
for (
|
11794
|
+
finishedWork = 0;
|
11795
|
+
finishedWork < recoverableErrors.length;
|
11796
|
+
finishedWork++
|
11797
|
+
) {
|
11798
|
+
var recoverableError = recoverableErrors[finishedWork];
|
11799
|
+
onRecoverableError(recoverableError.value, {
|
11800
|
+
componentStack: recoverableError.stack
|
11802
11801
|
});
|
11802
|
+
}
|
11803
|
+
} finally {
|
11804
|
+
(ReactSharedInternals.T = didError),
|
11805
|
+
(ReactDOMSharedInternals.p = schedulerPriority);
|
11806
|
+
}
|
11807
|
+
}
|
11803
11808
|
0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
|
11804
11809
|
ensureRootIsScheduled(root);
|
11805
|
-
|
11806
|
-
0 !== (
|
11810
|
+
rootHasLayoutEffect = root.pendingLanes;
|
11811
|
+
0 !== (lanes & 4194218) && 0 !== (rootHasLayoutEffect & 42)
|
11807
11812
|
? ((nestedUpdateScheduled = !0),
|
11808
11813
|
root === rootWithNestedUpdates
|
11809
11814
|
? nestedUpdateCount++
|
@@ -11811,7 +11816,6 @@ function commitRootImpl(
|
|
11811
11816
|
: (nestedUpdateCount = 0);
|
11812
11817
|
flushSyncWorkAcrossRoots_impl(0, !1);
|
11813
11818
|
markCommitStopped();
|
11814
|
-
return null;
|
11815
11819
|
}
|
11816
11820
|
function releaseRootPooledCache(root, remainingLanes) {
|
11817
11821
|
0 === (root.pooledCacheLanes &= remainingLanes) &&
|
@@ -11821,7 +11825,7 @@ function releaseRootPooledCache(root, remainingLanes) {
|
|
11821
11825
|
}
|
11822
11826
|
function flushPassiveEffects() {
|
11823
11827
|
if (null !== rootWithPendingPassiveEffects) {
|
11824
|
-
var root$
|
11828
|
+
var root$186 = rootWithPendingPassiveEffects,
|
11825
11829
|
remainingLanes = pendingPassiveEffectsRemainingLanes;
|
11826
11830
|
pendingPassiveEffectsRemainingLanes = 0;
|
11827
11831
|
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
@@ -11871,7 +11875,7 @@ function flushPassiveEffects() {
|
|
11871
11875
|
} finally {
|
11872
11876
|
(ReactDOMSharedInternals.p = previousPriority),
|
11873
11877
|
(ReactSharedInternals.T = prevTransition),
|
11874
|
-
releaseRootPooledCache(root$
|
11878
|
+
releaseRootPooledCache(root$186, remainingLanes);
|
11875
11879
|
}
|
11876
11880
|
}
|
11877
11881
|
return !1;
|
@@ -12013,22 +12017,21 @@ function ensureRootIsScheduled(root) {
|
|
12013
12017
|
: (lastScheduledRoot = lastScheduledRoot.next = root));
|
12014
12018
|
mightHavePendingSyncWork = !0;
|
12015
12019
|
didScheduleMicrotask ||
|
12016
|
-
((didScheduleMicrotask = !0),
|
12017
|
-
scheduleImmediateTask(processRootScheduleInMicrotask));
|
12020
|
+
((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
|
12018
12021
|
}
|
12019
12022
|
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
12020
12023
|
if (!isFlushingWork && mightHavePendingSyncWork) {
|
12021
12024
|
isFlushingWork = !0;
|
12022
12025
|
do {
|
12023
12026
|
var didPerformSomeWork = !1;
|
12024
|
-
for (var root$
|
12027
|
+
for (var root$188 = firstScheduledRoot; null !== root$188; ) {
|
12025
12028
|
if (!onlyLegacy)
|
12026
12029
|
if (0 !== syncTransitionLanes) {
|
12027
|
-
var pendingLanes = root$
|
12030
|
+
var pendingLanes = root$188.pendingLanes;
|
12028
12031
|
if (0 === pendingLanes) var JSCompiler_inline_result = 0;
|
12029
12032
|
else {
|
12030
|
-
var suspendedLanes = root$
|
12031
|
-
pingedLanes = root$
|
12033
|
+
var suspendedLanes = root$188.suspendedLanes,
|
12034
|
+
pingedLanes = root$188.pingedLanes;
|
12032
12035
|
JSCompiler_inline_result =
|
12033
12036
|
(1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
|
12034
12037
|
JSCompiler_inline_result &=
|
@@ -12042,23 +12045,28 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
12042
12045
|
}
|
12043
12046
|
0 !== JSCompiler_inline_result &&
|
12044
12047
|
((didPerformSomeWork = !0),
|
12045
|
-
performSyncWorkOnRoot(root$
|
12048
|
+
performSyncWorkOnRoot(root$188, JSCompiler_inline_result));
|
12046
12049
|
} else
|
12047
12050
|
(JSCompiler_inline_result = workInProgressRootRenderLanes),
|
12048
12051
|
(JSCompiler_inline_result = getNextLanes(
|
12049
|
-
root$
|
12050
|
-
root$
|
12052
|
+
root$188,
|
12053
|
+
root$188 === workInProgressRoot ? JSCompiler_inline_result : 0,
|
12054
|
+
null !== root$188.cancelPendingCommit ||
|
12055
|
+
-1 !== root$188.timeoutHandle
|
12051
12056
|
)),
|
12052
12057
|
0 === (JSCompiler_inline_result & 3) ||
|
12053
|
-
checkIfRootIsPrerendering(root$
|
12058
|
+
checkIfRootIsPrerendering(root$188, JSCompiler_inline_result) ||
|
12054
12059
|
((didPerformSomeWork = !0),
|
12055
|
-
performSyncWorkOnRoot(root$
|
12056
|
-
root$
|
12060
|
+
performSyncWorkOnRoot(root$188, JSCompiler_inline_result));
|
12061
|
+
root$188 = root$188.next;
|
12057
12062
|
}
|
12058
12063
|
} while (didPerformSomeWork);
|
12059
12064
|
isFlushingWork = !1;
|
12060
12065
|
}
|
12061
12066
|
}
|
12067
|
+
function processRootScheduleInImmediateTask() {
|
12068
|
+
processRootScheduleInMicrotask();
|
12069
|
+
}
|
12062
12070
|
function processRootScheduleInMicrotask() {
|
12063
12071
|
mightHavePendingSyncWork = didScheduleMicrotask = !1;
|
12064
12072
|
var syncTransitionLanes = 0;
|
@@ -12107,7 +12115,8 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) {
|
|
12107
12115
|
suspendedLanes = workInProgressRootRenderLanes;
|
12108
12116
|
suspendedLanes = getNextLanes(
|
12109
12117
|
root,
|
12110
|
-
root === currentTime ? suspendedLanes : 0
|
12118
|
+
root === currentTime ? suspendedLanes : 0,
|
12119
|
+
null !== root.cancelPendingCommit || -1 !== root.timeoutHandle
|
12111
12120
|
);
|
12112
12121
|
pingedLanes = root.callbackNode;
|
12113
12122
|
if (
|
@@ -12164,7 +12173,8 @@ function performWorkOnRootViaSchedulerTask(root, didTimeout) {
|
|
12164
12173
|
var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
|
12165
12174
|
workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
|
12166
12175
|
root,
|
12167
|
-
root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0
|
12176
|
+
root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
|
12177
|
+
null !== root.cancelPendingCommit || -1 !== root.timeoutHandle
|
12168
12178
|
);
|
12169
12179
|
if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
|
12170
12180
|
performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout);
|
@@ -12179,11 +12189,14 @@ function performSyncWorkOnRoot(root, lanes) {
|
|
12179
12189
|
nestedUpdateScheduled = !1;
|
12180
12190
|
performWorkOnRoot(root, lanes, !0);
|
12181
12191
|
}
|
12182
|
-
function
|
12192
|
+
function scheduleImmediateRootScheduleTask() {
|
12183
12193
|
scheduleMicrotask(function () {
|
12184
12194
|
0 !== (executionContext & 6)
|
12185
|
-
? scheduleCallback$3(
|
12186
|
-
|
12195
|
+
? scheduleCallback$3(
|
12196
|
+
ImmediatePriority,
|
12197
|
+
processRootScheduleInImmediateTask
|
12198
|
+
)
|
12199
|
+
: processRootScheduleInMicrotask();
|
12187
12200
|
});
|
12188
12201
|
}
|
12189
12202
|
function requestTransitionLane() {
|
@@ -12286,20 +12299,20 @@ function extractEvents$1(
|
|
12286
12299
|
}
|
12287
12300
|
}
|
12288
12301
|
for (
|
12289
|
-
var i$jscomp$
|
12290
|
-
i$jscomp$
|
12291
|
-
i$jscomp$
|
12302
|
+
var i$jscomp$inline_1553 = 0;
|
12303
|
+
i$jscomp$inline_1553 < simpleEventPluginEvents.length;
|
12304
|
+
i$jscomp$inline_1553++
|
12292
12305
|
) {
|
12293
|
-
var eventName$jscomp$
|
12294
|
-
simpleEventPluginEvents[i$jscomp$
|
12295
|
-
domEventName$jscomp$
|
12296
|
-
eventName$jscomp$
|
12297
|
-
capitalizedEvent$jscomp$
|
12298
|
-
eventName$jscomp$
|
12299
|
-
eventName$jscomp$
|
12306
|
+
var eventName$jscomp$inline_1554 =
|
12307
|
+
simpleEventPluginEvents[i$jscomp$inline_1553],
|
12308
|
+
domEventName$jscomp$inline_1555 =
|
12309
|
+
eventName$jscomp$inline_1554.toLowerCase(),
|
12310
|
+
capitalizedEvent$jscomp$inline_1556 =
|
12311
|
+
eventName$jscomp$inline_1554[0].toUpperCase() +
|
12312
|
+
eventName$jscomp$inline_1554.slice(1);
|
12300
12313
|
registerSimpleEvent(
|
12301
|
-
domEventName$jscomp$
|
12302
|
-
"on" + capitalizedEvent$jscomp$
|
12314
|
+
domEventName$jscomp$inline_1555,
|
12315
|
+
"on" + capitalizedEvent$jscomp$inline_1556
|
12303
12316
|
);
|
12304
12317
|
}
|
12305
12318
|
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
@@ -13482,34 +13495,34 @@ function setInitialProperties(domElement, tag, props) {
|
|
13482
13495
|
defaultChecked = null;
|
13483
13496
|
for (hasSrc in props)
|
13484
13497
|
if (props.hasOwnProperty(hasSrc)) {
|
13485
|
-
var propValue$
|
13486
|
-
if (null != propValue$
|
13498
|
+
var propValue$202 = props[hasSrc];
|
13499
|
+
if (null != propValue$202)
|
13487
13500
|
switch (hasSrc) {
|
13488
13501
|
case "name":
|
13489
|
-
hasSrcSet = propValue$
|
13502
|
+
hasSrcSet = propValue$202;
|
13490
13503
|
break;
|
13491
13504
|
case "type":
|
13492
|
-
propValue = propValue$
|
13505
|
+
propValue = propValue$202;
|
13493
13506
|
break;
|
13494
13507
|
case "checked":
|
13495
|
-
checked = propValue$
|
13508
|
+
checked = propValue$202;
|
13496
13509
|
break;
|
13497
13510
|
case "defaultChecked":
|
13498
|
-
defaultChecked = propValue$
|
13511
|
+
defaultChecked = propValue$202;
|
13499
13512
|
break;
|
13500
13513
|
case "value":
|
13501
|
-
propKey = propValue$
|
13514
|
+
propKey = propValue$202;
|
13502
13515
|
break;
|
13503
13516
|
case "defaultValue":
|
13504
|
-
defaultValue = propValue$
|
13517
|
+
defaultValue = propValue$202;
|
13505
13518
|
break;
|
13506
13519
|
case "children":
|
13507
13520
|
case "dangerouslySetInnerHTML":
|
13508
|
-
if (null != propValue$
|
13521
|
+
if (null != propValue$202)
|
13509
13522
|
throw Error(formatProdErrorMessage(137, tag));
|
13510
13523
|
break;
|
13511
13524
|
default:
|
13512
|
-
setProp(domElement, tag, hasSrc, propValue$
|
13525
|
+
setProp(domElement, tag, hasSrc, propValue$202, props, null);
|
13513
13526
|
}
|
13514
13527
|
}
|
13515
13528
|
initInput(
|
@@ -13646,14 +13659,14 @@ function setInitialProperties(domElement, tag, props) {
|
|
13646
13659
|
return;
|
13647
13660
|
default:
|
13648
13661
|
if (isCustomElement(tag)) {
|
13649
|
-
for (propValue$
|
13650
|
-
props.hasOwnProperty(propValue$
|
13651
|
-
((hasSrc = props[propValue$
|
13662
|
+
for (propValue$202 in props)
|
13663
|
+
props.hasOwnProperty(propValue$202) &&
|
13664
|
+
((hasSrc = props[propValue$202]),
|
13652
13665
|
void 0 !== hasSrc &&
|
13653
13666
|
setPropOnCustomElement(
|
13654
13667
|
domElement,
|
13655
13668
|
tag,
|
13656
|
-
propValue$
|
13669
|
+
propValue$202,
|
13657
13670
|
hasSrc,
|
13658
13671
|
props,
|
13659
13672
|
void 0
|
@@ -13701,14 +13714,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13701
13714
|
setProp(domElement, tag, propKey, null, nextProps, lastProp);
|
13702
13715
|
}
|
13703
13716
|
}
|
13704
|
-
for (var propKey$
|
13705
|
-
var propKey = nextProps[propKey$
|
13706
|
-
lastProp = lastProps[propKey$
|
13717
|
+
for (var propKey$219 in nextProps) {
|
13718
|
+
var propKey = nextProps[propKey$219];
|
13719
|
+
lastProp = lastProps[propKey$219];
|
13707
13720
|
if (
|
13708
|
-
nextProps.hasOwnProperty(propKey$
|
13721
|
+
nextProps.hasOwnProperty(propKey$219) &&
|
13709
13722
|
(null != propKey || null != lastProp)
|
13710
13723
|
)
|
13711
|
-
switch (propKey$
|
13724
|
+
switch (propKey$219) {
|
13712
13725
|
case "type":
|
13713
13726
|
type = propKey;
|
13714
13727
|
break;
|
@@ -13737,7 +13750,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13737
13750
|
setProp(
|
13738
13751
|
domElement,
|
13739
13752
|
tag,
|
13740
|
-
propKey$
|
13753
|
+
propKey$219,
|
13741
13754
|
propKey,
|
13742
13755
|
nextProps,
|
13743
13756
|
lastProp
|
@@ -13756,7 +13769,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13756
13769
|
);
|
13757
13770
|
return;
|
13758
13771
|
case "select":
|
13759
|
-
propKey = value = defaultValue = propKey$
|
13772
|
+
propKey = value = defaultValue = propKey$219 = null;
|
13760
13773
|
for (type in lastProps)
|
13761
13774
|
if (
|
13762
13775
|
((lastDefaultValue = lastProps[type]),
|
@@ -13787,7 +13800,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13787
13800
|
)
|
13788
13801
|
switch (name) {
|
13789
13802
|
case "value":
|
13790
|
-
propKey$
|
13803
|
+
propKey$219 = type;
|
13791
13804
|
break;
|
13792
13805
|
case "defaultValue":
|
13793
13806
|
defaultValue = type;
|
@@ -13808,15 +13821,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13808
13821
|
tag = defaultValue;
|
13809
13822
|
lastProps = value;
|
13810
13823
|
nextProps = propKey;
|
13811
|
-
null != propKey$
|
13812
|
-
? updateOptions(domElement, !!lastProps, propKey$
|
13824
|
+
null != propKey$219
|
13825
|
+
? updateOptions(domElement, !!lastProps, propKey$219, !1)
|
13813
13826
|
: !!nextProps !== !!lastProps &&
|
13814
13827
|
(null != tag
|
13815
13828
|
? updateOptions(domElement, !!lastProps, tag, !0)
|
13816
13829
|
: updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
|
13817
13830
|
return;
|
13818
13831
|
case "textarea":
|
13819
|
-
propKey = propKey$
|
13832
|
+
propKey = propKey$219 = null;
|
13820
13833
|
for (defaultValue in lastProps)
|
13821
13834
|
if (
|
13822
13835
|
((name = lastProps[defaultValue]),
|
@@ -13840,7 +13853,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13840
13853
|
)
|
13841
13854
|
switch (value) {
|
13842
13855
|
case "value":
|
13843
|
-
propKey$
|
13856
|
+
propKey$219 = name;
|
13844
13857
|
break;
|
13845
13858
|
case "defaultValue":
|
13846
13859
|
propKey = name;
|
@@ -13854,17 +13867,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13854
13867
|
name !== type &&
|
13855
13868
|
setProp(domElement, tag, value, name, nextProps, type);
|
13856
13869
|
}
|
13857
|
-
updateTextarea(domElement, propKey$
|
13870
|
+
updateTextarea(domElement, propKey$219, propKey);
|
13858
13871
|
return;
|
13859
13872
|
case "option":
|
13860
|
-
for (var propKey$
|
13873
|
+
for (var propKey$235 in lastProps)
|
13861
13874
|
if (
|
13862
|
-
((propKey$
|
13863
|
-
lastProps.hasOwnProperty(propKey$
|
13864
|
-
null != propKey$
|
13865
|
-
!nextProps.hasOwnProperty(propKey$
|
13875
|
+
((propKey$219 = lastProps[propKey$235]),
|
13876
|
+
lastProps.hasOwnProperty(propKey$235) &&
|
13877
|
+
null != propKey$219 &&
|
13878
|
+
!nextProps.hasOwnProperty(propKey$235))
|
13866
13879
|
)
|
13867
|
-
switch (propKey$
|
13880
|
+
switch (propKey$235) {
|
13868
13881
|
case "selected":
|
13869
13882
|
domElement.selected = !1;
|
13870
13883
|
break;
|
@@ -13872,33 +13885,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13872
13885
|
setProp(
|
13873
13886
|
domElement,
|
13874
13887
|
tag,
|
13875
|
-
propKey$
|
13888
|
+
propKey$235,
|
13876
13889
|
null,
|
13877
13890
|
nextProps,
|
13878
|
-
propKey$
|
13891
|
+
propKey$219
|
13879
13892
|
);
|
13880
13893
|
}
|
13881
13894
|
for (lastDefaultValue in nextProps)
|
13882
13895
|
if (
|
13883
|
-
((propKey$
|
13896
|
+
((propKey$219 = nextProps[lastDefaultValue]),
|
13884
13897
|
(propKey = lastProps[lastDefaultValue]),
|
13885
13898
|
nextProps.hasOwnProperty(lastDefaultValue) &&
|
13886
|
-
propKey$
|
13887
|
-
(null != propKey$
|
13899
|
+
propKey$219 !== propKey &&
|
13900
|
+
(null != propKey$219 || null != propKey))
|
13888
13901
|
)
|
13889
13902
|
switch (lastDefaultValue) {
|
13890
13903
|
case "selected":
|
13891
13904
|
domElement.selected =
|
13892
|
-
propKey$
|
13893
|
-
"function" !== typeof propKey$
|
13894
|
-
"symbol" !== typeof propKey$
|
13905
|
+
propKey$219 &&
|
13906
|
+
"function" !== typeof propKey$219 &&
|
13907
|
+
"symbol" !== typeof propKey$219;
|
13895
13908
|
break;
|
13896
13909
|
default:
|
13897
13910
|
setProp(
|
13898
13911
|
domElement,
|
13899
13912
|
tag,
|
13900
13913
|
lastDefaultValue,
|
13901
|
-
propKey$
|
13914
|
+
propKey$219,
|
13902
13915
|
nextProps,
|
13903
13916
|
propKey
|
13904
13917
|
);
|
@@ -13919,24 +13932,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13919
13932
|
case "track":
|
13920
13933
|
case "wbr":
|
13921
13934
|
case "menuitem":
|
13922
|
-
for (var propKey$
|
13923
|
-
(propKey$
|
13924
|
-
lastProps.hasOwnProperty(propKey$
|
13925
|
-
null != propKey$
|
13926
|
-
!nextProps.hasOwnProperty(propKey$
|
13927
|
-
setProp(domElement, tag, propKey$
|
13935
|
+
for (var propKey$240 in lastProps)
|
13936
|
+
(propKey$219 = lastProps[propKey$240]),
|
13937
|
+
lastProps.hasOwnProperty(propKey$240) &&
|
13938
|
+
null != propKey$219 &&
|
13939
|
+
!nextProps.hasOwnProperty(propKey$240) &&
|
13940
|
+
setProp(domElement, tag, propKey$240, null, nextProps, propKey$219);
|
13928
13941
|
for (checked in nextProps)
|
13929
13942
|
if (
|
13930
|
-
((propKey$
|
13943
|
+
((propKey$219 = nextProps[checked]),
|
13931
13944
|
(propKey = lastProps[checked]),
|
13932
13945
|
nextProps.hasOwnProperty(checked) &&
|
13933
|
-
propKey$
|
13934
|
-
(null != propKey$
|
13946
|
+
propKey$219 !== propKey &&
|
13947
|
+
(null != propKey$219 || null != propKey))
|
13935
13948
|
)
|
13936
13949
|
switch (checked) {
|
13937
13950
|
case "children":
|
13938
13951
|
case "dangerouslySetInnerHTML":
|
13939
|
-
if (null != propKey$
|
13952
|
+
if (null != propKey$219)
|
13940
13953
|
throw Error(formatProdErrorMessage(137, tag));
|
13941
13954
|
break;
|
13942
13955
|
default:
|
@@ -13944,7 +13957,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13944
13957
|
domElement,
|
13945
13958
|
tag,
|
13946
13959
|
checked,
|
13947
|
-
propKey$
|
13960
|
+
propKey$219,
|
13948
13961
|
nextProps,
|
13949
13962
|
propKey
|
13950
13963
|
);
|
@@ -13952,49 +13965,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
|
|
13952
13965
|
return;
|
13953
13966
|
default:
|
13954
13967
|
if (isCustomElement(tag)) {
|
13955
|
-
for (var propKey$
|
13956
|
-
(propKey$
|
13957
|
-
lastProps.hasOwnProperty(propKey$
|
13958
|
-
void 0 !== propKey$
|
13959
|
-
!nextProps.hasOwnProperty(propKey$
|
13968
|
+
for (var propKey$245 in lastProps)
|
13969
|
+
(propKey$219 = lastProps[propKey$245]),
|
13970
|
+
lastProps.hasOwnProperty(propKey$245) &&
|
13971
|
+
void 0 !== propKey$219 &&
|
13972
|
+
!nextProps.hasOwnProperty(propKey$245) &&
|
13960
13973
|
setPropOnCustomElement(
|
13961
13974
|
domElement,
|
13962
13975
|
tag,
|
13963
|
-
propKey$
|
13976
|
+
propKey$245,
|
13964
13977
|
void 0,
|
13965
13978
|
nextProps,
|
13966
|
-
propKey$
|
13979
|
+
propKey$219
|
13967
13980
|
);
|
13968
13981
|
for (defaultChecked in nextProps)
|
13969
|
-
(propKey$
|
13982
|
+
(propKey$219 = nextProps[defaultChecked]),
|
13970
13983
|
(propKey = lastProps[defaultChecked]),
|
13971
13984
|
!nextProps.hasOwnProperty(defaultChecked) ||
|
13972
|
-
propKey$
|
13973
|
-
(void 0 === propKey$
|
13985
|
+
propKey$219 === propKey ||
|
13986
|
+
(void 0 === propKey$219 && void 0 === propKey) ||
|
13974
13987
|
setPropOnCustomElement(
|
13975
13988
|
domElement,
|
13976
13989
|
tag,
|
13977
13990
|
defaultChecked,
|
13978
|
-
propKey$
|
13991
|
+
propKey$219,
|
13979
13992
|
nextProps,
|
13980
13993
|
propKey
|
13981
13994
|
);
|
13982
13995
|
return;
|
13983
13996
|
}
|
13984
13997
|
}
|
13985
|
-
for (var propKey$
|
13986
|
-
(propKey$
|
13987
|
-
lastProps.hasOwnProperty(propKey$
|
13988
|
-
null != propKey$
|
13989
|
-
!nextProps.hasOwnProperty(propKey$
|
13990
|
-
setProp(domElement, tag, propKey$
|
13998
|
+
for (var propKey$250 in lastProps)
|
13999
|
+
(propKey$219 = lastProps[propKey$250]),
|
14000
|
+
lastProps.hasOwnProperty(propKey$250) &&
|
14001
|
+
null != propKey$219 &&
|
14002
|
+
!nextProps.hasOwnProperty(propKey$250) &&
|
14003
|
+
setProp(domElement, tag, propKey$250, null, nextProps, propKey$219);
|
13991
14004
|
for (lastProp in nextProps)
|
13992
|
-
(propKey$
|
14005
|
+
(propKey$219 = nextProps[lastProp]),
|
13993
14006
|
(propKey = lastProps[lastProp]),
|
13994
14007
|
!nextProps.hasOwnProperty(lastProp) ||
|
13995
|
-
propKey$
|
13996
|
-
(null == propKey$
|
13997
|
-
setProp(domElement, tag, lastProp, propKey$
|
14008
|
+
propKey$219 === propKey ||
|
14009
|
+
(null == propKey$219 && null == propKey) ||
|
14010
|
+
setProp(domElement, tag, lastProp, propKey$219, nextProps, propKey);
|
13998
14011
|
}
|
13999
14012
|
var eventsEnabled = null,
|
14000
14013
|
selectionInformation = null;
|
@@ -14140,7 +14153,9 @@ function canHydrateInstance(instance, type, props, inRootOrSingleton) {
|
|
14140
14153
|
else if (
|
14141
14154
|
name !== anyProps.rel ||
|
14142
14155
|
instance.getAttribute("href") !==
|
14143
|
-
(null == anyProps.href
|
14156
|
+
(null == anyProps.href || "" === anyProps.href
|
14157
|
+
? null
|
14158
|
+
: anyProps.href) ||
|
14144
14159
|
instance.getAttribute("crossorigin") !==
|
14145
14160
|
(null == anyProps.crossOrigin ? null : anyProps.crossOrigin) ||
|
14146
14161
|
instance.getAttribute("title") !==
|
@@ -14558,26 +14573,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
|
|
14558
14573
|
"string" === typeof pendingProps.precedence
|
14559
14574
|
) {
|
14560
14575
|
type = getStyleKey(pendingProps.href);
|
14561
|
-
var styles$
|
14576
|
+
var styles$258 = getResourcesFromRoot(
|
14562
14577
|
JSCompiler_inline_result
|
14563
14578
|
).hoistableStyles,
|
14564
|
-
resource$
|
14565
|
-
resource$
|
14579
|
+
resource$259 = styles$258.get(type);
|
14580
|
+
resource$259 ||
|
14566
14581
|
((JSCompiler_inline_result =
|
14567
14582
|
JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
|
14568
|
-
(resource$
|
14583
|
+
(resource$259 = {
|
14569
14584
|
type: "stylesheet",
|
14570
14585
|
instance: null,
|
14571
14586
|
count: 0,
|
14572
14587
|
state: { loading: 0, preload: null }
|
14573
14588
|
}),
|
14574
|
-
styles$
|
14575
|
-
(styles$
|
14589
|
+
styles$258.set(type, resource$259),
|
14590
|
+
(styles$258 = JSCompiler_inline_result.querySelector(
|
14576
14591
|
getStylesheetSelectorFromKey(type)
|
14577
14592
|
)) &&
|
14578
|
-
!styles$
|
14579
|
-
((resource$
|
14580
|
-
(resource$
|
14593
|
+
!styles$258._p &&
|
14594
|
+
((resource$259.instance = styles$258),
|
14595
|
+
(resource$259.state.loading = 5)),
|
14581
14596
|
preloadPropsMap.has(type) ||
|
14582
14597
|
((pendingProps = {
|
14583
14598
|
rel: "preload",
|
@@ -14590,16 +14605,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
|
|
14590
14605
|
referrerPolicy: pendingProps.referrerPolicy
|
14591
14606
|
}),
|
14592
14607
|
preloadPropsMap.set(type, pendingProps),
|
14593
|
-
styles$
|
14608
|
+
styles$258 ||
|
14594
14609
|
preloadStylesheet(
|
14595
14610
|
JSCompiler_inline_result,
|
14596
14611
|
type,
|
14597
14612
|
pendingProps,
|
14598
|
-
resource$
|
14613
|
+
resource$259.state
|
14599
14614
|
)));
|
14600
14615
|
if (currentProps && null === currentResource)
|
14601
14616
|
throw Error(formatProdErrorMessage(528, ""));
|
14602
|
-
return resource$
|
14617
|
+
return resource$259;
|
14603
14618
|
}
|
14604
14619
|
if (currentProps && null !== currentResource)
|
14605
14620
|
throw Error(formatProdErrorMessage(529, ""));
|
@@ -14696,37 +14711,37 @@ function acquireResource(hoistableRoot, resource, props) {
|
|
14696
14711
|
return (resource.instance = instance);
|
14697
14712
|
case "stylesheet":
|
14698
14713
|
styleProps = getStyleKey(props.href);
|
14699
|
-
var instance$
|
14714
|
+
var instance$264 = hoistableRoot.querySelector(
|
14700
14715
|
getStylesheetSelectorFromKey(styleProps)
|
14701
14716
|
);
|
14702
|
-
if (instance$
|
14717
|
+
if (instance$264)
|
14703
14718
|
return (
|
14704
14719
|
(resource.state.loading |= 4),
|
14705
|
-
(resource.instance = instance$
|
14706
|
-
markNodeAsHoistable(instance$
|
14707
|
-
instance$
|
14720
|
+
(resource.instance = instance$264),
|
14721
|
+
markNodeAsHoistable(instance$264),
|
14722
|
+
instance$264
|
14708
14723
|
);
|
14709
14724
|
instance = stylesheetPropsFromRawProps(props);
|
14710
14725
|
(styleProps = preloadPropsMap.get(styleProps)) &&
|
14711
14726
|
adoptPreloadPropsForStylesheet(instance, styleProps);
|
14712
|
-
instance$
|
14727
|
+
instance$264 = (
|
14713
14728
|
hoistableRoot.ownerDocument || hoistableRoot
|
14714
14729
|
).createElement("link");
|
14715
|
-
markNodeAsHoistable(instance$
|
14716
|
-
var linkInstance = instance$
|
14730
|
+
markNodeAsHoistable(instance$264);
|
14731
|
+
var linkInstance = instance$264;
|
14717
14732
|
linkInstance._p = new Promise(function (resolve, reject) {
|
14718
14733
|
linkInstance.onload = resolve;
|
14719
14734
|
linkInstance.onerror = reject;
|
14720
14735
|
});
|
14721
|
-
setInitialProperties(instance$
|
14736
|
+
setInitialProperties(instance$264, "link", instance);
|
14722
14737
|
resource.state.loading |= 4;
|
14723
|
-
insertStylesheet(instance$
|
14724
|
-
return (resource.instance = instance$
|
14738
|
+
insertStylesheet(instance$264, props.precedence, hoistableRoot);
|
14739
|
+
return (resource.instance = instance$264);
|
14725
14740
|
case "script":
|
14726
|
-
instance$
|
14741
|
+
instance$264 = getScriptKey(props.src);
|
14727
14742
|
if (
|
14728
14743
|
(styleProps = hoistableRoot.querySelector(
|
14729
|
-
getScriptSelectorFromKey(instance$
|
14744
|
+
getScriptSelectorFromKey(instance$264)
|
14730
14745
|
))
|
14731
14746
|
)
|
14732
14747
|
return (
|
@@ -14735,7 +14750,7 @@ function acquireResource(hoistableRoot, resource, props) {
|
|
14735
14750
|
styleProps
|
14736
14751
|
);
|
14737
14752
|
instance = props;
|
14738
|
-
if ((styleProps = preloadPropsMap.get(instance$
|
14753
|
+
if ((styleProps = preloadPropsMap.get(instance$264)))
|
14739
14754
|
(instance = assign({}, props)),
|
14740
14755
|
adoptPreloadPropsForScript(instance, styleProps);
|
14741
14756
|
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
|
@@ -15039,11 +15054,7 @@ function FiberRootNode(
|
|
15039
15054
|
) {
|
15040
15055
|
this.tag = 1;
|
15041
15056
|
this.containerInfo = containerInfo;
|
15042
|
-
this.
|
15043
|
-
this.pingCache =
|
15044
|
-
this.current =
|
15045
|
-
this.pendingChildren =
|
15046
|
-
null;
|
15057
|
+
this.pingCache = this.current = this.pendingChildren = null;
|
15047
15058
|
this.timeoutHandle = -1;
|
15048
15059
|
this.callbackNode =
|
15049
15060
|
this.next =
|
@@ -15056,7 +15067,6 @@ function FiberRootNode(
|
|
15056
15067
|
this.entangledLanes =
|
15057
15068
|
this.shellSuspendCounter =
|
15058
15069
|
this.errorRecoveryDisabledLanes =
|
15059
|
-
this.finishedLanes =
|
15060
15070
|
this.expiredLanes =
|
15061
15071
|
this.warmLanes =
|
15062
15072
|
this.pingedLanes =
|
@@ -15779,16 +15789,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
15779
15789
|
0 === i && attemptExplicitHydrationTarget(target);
|
15780
15790
|
}
|
15781
15791
|
};
|
15782
|
-
var isomorphicReactPackageVersion$jscomp$
|
15792
|
+
var isomorphicReactPackageVersion$jscomp$inline_1802 = React.version;
|
15783
15793
|
if (
|
15784
|
-
"19.1.0-canary-
|
15785
|
-
isomorphicReactPackageVersion$jscomp$
|
15794
|
+
"19.1.0-canary-3ce77d55-20250106" !==
|
15795
|
+
isomorphicReactPackageVersion$jscomp$inline_1802
|
15786
15796
|
)
|
15787
15797
|
throw Error(
|
15788
15798
|
formatProdErrorMessage(
|
15789
15799
|
527,
|
15790
|
-
isomorphicReactPackageVersion$jscomp$
|
15791
|
-
"19.1.0-canary-
|
15800
|
+
isomorphicReactPackageVersion$jscomp$inline_1802,
|
15801
|
+
"19.1.0-canary-3ce77d55-20250106"
|
15792
15802
|
)
|
15793
15803
|
);
|
15794
15804
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -15808,17 +15818,17 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
15808
15818
|
null === componentOrElement ? null : componentOrElement.stateNode;
|
15809
15819
|
return componentOrElement;
|
15810
15820
|
};
|
15811
|
-
var internals$jscomp$
|
15821
|
+
var internals$jscomp$inline_1809 = {
|
15812
15822
|
bundleType: 0,
|
15813
|
-
version: "19.1.0-canary-
|
15823
|
+
version: "19.1.0-canary-3ce77d55-20250106",
|
15814
15824
|
rendererPackageName: "react-dom",
|
15815
15825
|
currentDispatcherRef: ReactSharedInternals,
|
15816
|
-
reconcilerVersion: "19.1.0-canary-
|
15826
|
+
reconcilerVersion: "19.1.0-canary-3ce77d55-20250106",
|
15817
15827
|
getLaneLabelMap: function () {
|
15818
15828
|
for (
|
15819
|
-
var map = new Map(), lane = 1, index$
|
15820
|
-
31 > index$
|
15821
|
-
index$
|
15829
|
+
var map = new Map(), lane = 1, index$281 = 0;
|
15830
|
+
31 > index$281;
|
15831
|
+
index$281++
|
15822
15832
|
) {
|
15823
15833
|
var label = getLabelForLane(lane);
|
15824
15834
|
map.set(lane, label);
|
@@ -15831,16 +15841,16 @@ var internals$jscomp$inline_1777 = {
|
|
15831
15841
|
}
|
15832
15842
|
};
|
15833
15843
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
15834
|
-
var hook$jscomp$
|
15844
|
+
var hook$jscomp$inline_2239 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
15835
15845
|
if (
|
15836
|
-
!hook$jscomp$
|
15837
|
-
hook$jscomp$
|
15846
|
+
!hook$jscomp$inline_2239.isDisabled &&
|
15847
|
+
hook$jscomp$inline_2239.supportsFiber
|
15838
15848
|
)
|
15839
15849
|
try {
|
15840
|
-
(rendererID = hook$jscomp$
|
15841
|
-
internals$jscomp$
|
15850
|
+
(rendererID = hook$jscomp$inline_2239.inject(
|
15851
|
+
internals$jscomp$inline_1809
|
15842
15852
|
)),
|
15843
|
-
(injectedHook = hook$jscomp$
|
15853
|
+
(injectedHook = hook$jscomp$inline_2239);
|
15844
15854
|
} catch (err) {}
|
15845
15855
|
}
|
15846
15856
|
function noop() {}
|
@@ -16095,7 +16105,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
16095
16105
|
exports.useFormStatus = function () {
|
16096
16106
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
16097
16107
|
};
|
16098
|
-
exports.version = "19.1.0-canary-
|
16108
|
+
exports.version = "19.1.0-canary-3ce77d55-20250106";
|
16099
16109
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
16100
16110
|
"function" ===
|
16101
16111
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|