react-markup 0.0.0-experimental-6ebfd5b0-20240818 → 0.0.0-experimental-1d989965-20240821
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.
|
@@ -760,6 +760,7 @@
|
|
|
760
760
|
}
|
|
761
761
|
function defaultPostponeHandler() {}
|
|
762
762
|
function RequestInstance$1(
|
|
763
|
+
type,
|
|
763
764
|
model,
|
|
764
765
|
bundlerConfig,
|
|
765
766
|
onError,
|
|
@@ -784,7 +785,8 @@
|
|
|
784
785
|
pingedTasks = [],
|
|
785
786
|
cleanupQueue = [];
|
|
786
787
|
TaintRegistryPendingRequests.add(cleanupQueue);
|
|
787
|
-
this.
|
|
788
|
+
this.type = type;
|
|
789
|
+
this.status = 10;
|
|
788
790
|
this.flushScheduled = !1;
|
|
789
791
|
this.destination = this.fatalError = null;
|
|
790
792
|
this.bundlerConfig = bundlerConfig;
|
|
@@ -809,8 +811,8 @@
|
|
|
809
811
|
this.onError = void 0 === onError ? defaultErrorHandler$1 : onError;
|
|
810
812
|
this.onPostpone =
|
|
811
813
|
void 0 === onPostpone ? defaultPostponeHandler : onPostpone;
|
|
812
|
-
this.onAllReady =
|
|
813
|
-
this.onFatalError =
|
|
814
|
+
this.onAllReady = onAllReady;
|
|
815
|
+
this.onFatalError = onFatalError;
|
|
814
816
|
this.environmentName =
|
|
815
817
|
void 0 === environmentName
|
|
816
818
|
? function () {
|
|
@@ -826,8 +828,8 @@
|
|
|
826
828
|
? defaultFilterStackFrame
|
|
827
829
|
: filterStackFrame;
|
|
828
830
|
this.didWarnForKey = null;
|
|
829
|
-
|
|
830
|
-
pingedTasks.push(
|
|
831
|
+
type = createTask(this, model, null, !1, abortSet, null, null, null);
|
|
832
|
+
pingedTasks.push(type);
|
|
831
833
|
}
|
|
832
834
|
function noop$3() {}
|
|
833
835
|
function serializeThenable(request, task, thenable) {
|
|
@@ -871,12 +873,8 @@
|
|
|
871
873
|
return (
|
|
872
874
|
request.abortableTasks.delete(newTask),
|
|
873
875
|
(newTask.status = ABORTED$1),
|
|
874
|
-
request.
|
|
875
|
-
?
|
|
876
|
-
request,
|
|
877
|
-
newTask.id,
|
|
878
|
-
reusableInfinitePromiseModel
|
|
879
|
-
)
|
|
876
|
+
request.type === PRERENDER
|
|
877
|
+
? request.pendingChunks--
|
|
880
878
|
: ((task = stringify(serializeByValueID$1(request.fatalError))),
|
|
881
879
|
emitModelChunk(request, newTask.id, task)),
|
|
882
880
|
newTask.id
|
|
@@ -923,7 +921,7 @@
|
|
|
923
921
|
function progress(entry) {
|
|
924
922
|
if (!aborted)
|
|
925
923
|
if (entry.done)
|
|
926
|
-
request.abortListeners.delete(
|
|
924
|
+
request.abortListeners.delete(abortStream),
|
|
927
925
|
(entry = streamTask.id.toString(16) + ":C\n"),
|
|
928
926
|
request.completedRegularChunks.push(entry),
|
|
929
927
|
enqueueFlush(request),
|
|
@@ -942,25 +940,35 @@
|
|
|
942
940
|
function error(reason) {
|
|
943
941
|
if (!aborted) {
|
|
944
942
|
aborted = !0;
|
|
945
|
-
request.abortListeners.delete(
|
|
946
|
-
|
|
943
|
+
request.abortListeners.delete(abortStream);
|
|
944
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
945
|
+
emitErrorChunk(request, streamTask.id, digest, reason);
|
|
946
|
+
enqueueFlush(request);
|
|
947
|
+
reader.cancel(reason).then(error, error);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
function abortStream(reason) {
|
|
951
|
+
if (!aborted) {
|
|
952
|
+
aborted = !0;
|
|
953
|
+
request.abortListeners.delete(abortStream);
|
|
954
|
+
if (
|
|
955
|
+
"object" === typeof reason &&
|
|
956
|
+
null !== reason &&
|
|
957
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
958
|
+
)
|
|
959
|
+
logPostpone$1(request, reason.message, streamTask),
|
|
960
|
+
request.type === PRERENDER
|
|
961
|
+
? request.pendingChunks--
|
|
962
|
+
: (emitPostponeChunk(request, streamTask.id, reason),
|
|
963
|
+
enqueueFlush(request));
|
|
947
964
|
else {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
(cancelWith = reason),
|
|
954
|
-
logPostpone$1(request, reason.message, streamTask),
|
|
955
|
-
emitPostponeChunk(request, streamTask.id, reason);
|
|
956
|
-
else {
|
|
957
|
-
cancelWith = reason;
|
|
958
|
-
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
959
|
-
emitErrorChunk(request, streamTask.id, digest, reason);
|
|
960
|
-
}
|
|
961
|
-
enqueueFlush(request);
|
|
965
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
966
|
+
request.type === PRERENDER
|
|
967
|
+
? request.pendingChunks--
|
|
968
|
+
: (emitErrorChunk(request, streamTask.id, digest, reason),
|
|
969
|
+
enqueueFlush(request));
|
|
962
970
|
}
|
|
963
|
-
reader.cancel(
|
|
971
|
+
reader.cancel(reason).then(error, error);
|
|
964
972
|
}
|
|
965
973
|
}
|
|
966
974
|
var supportsBYOB = stream.supportsBYOB;
|
|
@@ -987,7 +995,7 @@
|
|
|
987
995
|
streamTask.id.toString(16) + ":" + (supportsBYOB ? "r" : "R") + "\n";
|
|
988
996
|
request.completedRegularChunks.push(task);
|
|
989
997
|
var aborted = !1;
|
|
990
|
-
request.abortListeners.add(
|
|
998
|
+
request.abortListeners.add(abortStream);
|
|
991
999
|
reader.read().then(progress, error);
|
|
992
1000
|
return serializeByValueID$1(streamTask.id);
|
|
993
1001
|
}
|
|
@@ -995,7 +1003,7 @@
|
|
|
995
1003
|
function progress(entry) {
|
|
996
1004
|
if (!aborted)
|
|
997
1005
|
if (entry.done) {
|
|
998
|
-
request.abortListeners.delete(
|
|
1006
|
+
request.abortListeners.delete(abortIterable);
|
|
999
1007
|
if (void 0 === entry.value)
|
|
1000
1008
|
var endStreamRow = streamTask.id.toString(16) + ":C\n";
|
|
1001
1009
|
else
|
|
@@ -1027,26 +1035,37 @@
|
|
|
1027
1035
|
function error(reason) {
|
|
1028
1036
|
if (!aborted) {
|
|
1029
1037
|
aborted = !0;
|
|
1030
|
-
request.abortListeners.delete(
|
|
1031
|
-
|
|
1038
|
+
request.abortListeners.delete(abortIterable);
|
|
1039
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
1040
|
+
emitErrorChunk(request, streamTask.id, digest, reason);
|
|
1041
|
+
enqueueFlush(request);
|
|
1042
|
+
"function" === typeof iterator.throw &&
|
|
1043
|
+
iterator.throw(reason).then(error, error);
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
function abortIterable(reason) {
|
|
1047
|
+
if (!aborted) {
|
|
1048
|
+
aborted = !0;
|
|
1049
|
+
request.abortListeners.delete(abortIterable);
|
|
1050
|
+
if (
|
|
1051
|
+
"object" === typeof reason &&
|
|
1052
|
+
null !== reason &&
|
|
1053
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
1054
|
+
)
|
|
1055
|
+
logPostpone$1(request, reason.message, streamTask),
|
|
1056
|
+
request.type === PRERENDER
|
|
1057
|
+
? request.pendingChunks--
|
|
1058
|
+
: (emitPostponeChunk(request, streamTask.id, reason),
|
|
1059
|
+
enqueueFlush(request));
|
|
1032
1060
|
else {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
(throwWith = reason),
|
|
1039
|
-
logPostpone$1(request, reason.message, streamTask),
|
|
1040
|
-
emitPostponeChunk(request, streamTask.id, reason);
|
|
1041
|
-
else {
|
|
1042
|
-
throwWith = reason;
|
|
1043
|
-
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
1044
|
-
emitErrorChunk(request, streamTask.id, digest, reason);
|
|
1045
|
-
}
|
|
1046
|
-
enqueueFlush(request);
|
|
1061
|
+
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
1062
|
+
request.type === PRERENDER
|
|
1063
|
+
? request.pendingChunks--
|
|
1064
|
+
: (emitErrorChunk(request, streamTask.id, digest, reason),
|
|
1065
|
+
enqueueFlush(request));
|
|
1047
1066
|
}
|
|
1048
1067
|
"function" === typeof iterator.throw &&
|
|
1049
|
-
iterator.throw(
|
|
1068
|
+
iterator.throw(reason).then(error, error);
|
|
1050
1069
|
}
|
|
1051
1070
|
}
|
|
1052
1071
|
var isIterator = iterable === iterator,
|
|
@@ -1067,7 +1086,7 @@
|
|
|
1067
1086
|
(iterable = iterable._debugInfo) &&
|
|
1068
1087
|
forwardDebugInfo(request, streamTask.id, iterable);
|
|
1069
1088
|
var aborted = !1;
|
|
1070
|
-
request.abortListeners.add(
|
|
1089
|
+
request.abortListeners.add(abortIterable);
|
|
1071
1090
|
callIteratorInDEV(iterator, progress, error);
|
|
1072
1091
|
return serializeByValueID$1(streamTask.id);
|
|
1073
1092
|
}
|
|
@@ -1579,7 +1598,7 @@
|
|
|
1579
1598
|
function progress(entry) {
|
|
1580
1599
|
if (!aborted)
|
|
1581
1600
|
if (entry.done)
|
|
1582
|
-
request.abortListeners.delete(
|
|
1601
|
+
request.abortListeners.delete(abortBlob),
|
|
1583
1602
|
(aborted = !0),
|
|
1584
1603
|
pingTask$1(request, newTask);
|
|
1585
1604
|
else
|
|
@@ -1590,16 +1609,35 @@
|
|
|
1590
1609
|
function error(reason) {
|
|
1591
1610
|
if (!aborted) {
|
|
1592
1611
|
aborted = !0;
|
|
1593
|
-
request.abortListeners.delete(
|
|
1594
|
-
|
|
1612
|
+
request.abortListeners.delete(abortBlob);
|
|
1613
|
+
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1614
|
+
emitErrorChunk(request, newTask.id, digest, reason);
|
|
1615
|
+
enqueueFlush(request);
|
|
1616
|
+
reader.cancel(reason).then(error, error);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
function abortBlob(reason) {
|
|
1620
|
+
if (!aborted) {
|
|
1621
|
+
aborted = !0;
|
|
1622
|
+
request.abortListeners.delete(abortBlob);
|
|
1623
|
+
if (
|
|
1624
|
+
"object" === typeof reason &&
|
|
1625
|
+
null !== reason &&
|
|
1626
|
+
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
1627
|
+
)
|
|
1628
|
+
logPostpone$1(request, reason.message, newTask),
|
|
1629
|
+
request.type === PRERENDER
|
|
1630
|
+
? request.pendingChunks--
|
|
1631
|
+
: (emitPostponeChunk(request, newTask.id, reason),
|
|
1632
|
+
enqueueFlush(request));
|
|
1595
1633
|
else {
|
|
1596
|
-
cancelWith = reason;
|
|
1597
1634
|
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1635
|
+
request.type === PRERENDER
|
|
1636
|
+
? request.pendingChunks--
|
|
1637
|
+
: (emitErrorChunk(request, newTask.id, digest, reason),
|
|
1638
|
+
enqueueFlush(request));
|
|
1601
1639
|
}
|
|
1602
|
-
reader.cancel(
|
|
1640
|
+
reader.cancel(reason).then(error, error);
|
|
1603
1641
|
}
|
|
1604
1642
|
}
|
|
1605
1643
|
var model = [blob.type],
|
|
@@ -1615,7 +1653,7 @@
|
|
|
1615
1653
|
),
|
|
1616
1654
|
reader = blob.stream().getReader(),
|
|
1617
1655
|
aborted = !1;
|
|
1618
|
-
request.abortListeners.add(
|
|
1656
|
+
request.abortListeners.add(abortBlob);
|
|
1619
1657
|
reader.read().then(progress).catch(error);
|
|
1620
1658
|
return "$B" + newTask.id.toString(16);
|
|
1621
1659
|
}
|
|
@@ -1643,39 +1681,45 @@
|
|
|
1643
1681
|
null !== parent &&
|
|
1644
1682
|
(parent.$$typeof === REACT_ELEMENT_TYPE ||
|
|
1645
1683
|
parent.$$typeof === REACT_LAZY_TYPE);
|
|
1684
|
+
if (request.status === ABORTING$1) {
|
|
1685
|
+
task.status = ABORTED$1;
|
|
1686
|
+
if (request.type === PRERENDER)
|
|
1687
|
+
return (
|
|
1688
|
+
(task = request.nextChunkId++),
|
|
1689
|
+
(task = parent
|
|
1690
|
+
? "$L" + task.toString(16)
|
|
1691
|
+
: serializeByValueID$1(task)),
|
|
1692
|
+
task
|
|
1693
|
+
);
|
|
1694
|
+
task = request.fatalError;
|
|
1695
|
+
return parent ? "$L" + task.toString(16) : serializeByValueID$1(task);
|
|
1696
|
+
}
|
|
1646
1697
|
key =
|
|
1647
1698
|
thrownValue === SuspenseException$1
|
|
1648
1699
|
? getSuspendedThenable$1()
|
|
1649
1700
|
: thrownValue;
|
|
1650
1701
|
if ("object" === typeof key && null !== key) {
|
|
1651
|
-
if ("function" === typeof key.then)
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
request.
|
|
1666
|
-
task.
|
|
1667
|
-
task.
|
|
1668
|
-
|
|
1702
|
+
if ("function" === typeof key.then)
|
|
1703
|
+
return (
|
|
1704
|
+
(request = createTask(
|
|
1705
|
+
request,
|
|
1706
|
+
task.model,
|
|
1707
|
+
task.keyPath,
|
|
1708
|
+
task.implicitSlot,
|
|
1709
|
+
request.abortableTasks,
|
|
1710
|
+
task.debugOwner,
|
|
1711
|
+
task.debugStack,
|
|
1712
|
+
task.debugTask
|
|
1713
|
+
)),
|
|
1714
|
+
(value = request.ping),
|
|
1715
|
+
key.then(value, value),
|
|
1716
|
+
(request.thenableState = getThenableStateAfterSuspending$1()),
|
|
1717
|
+
(task.keyPath = prevKeyPath),
|
|
1718
|
+
(task.implicitSlot = prevImplicitSlot),
|
|
1719
|
+
parent
|
|
1720
|
+
? "$L" + request.id.toString(16)
|
|
1721
|
+
: serializeByValueID$1(request.id)
|
|
1669
1722
|
);
|
|
1670
|
-
value = request.ping;
|
|
1671
|
-
key.then(value, value);
|
|
1672
|
-
request.thenableState = getThenableStateAfterSuspending$1();
|
|
1673
|
-
task.keyPath = prevKeyPath;
|
|
1674
|
-
task.implicitSlot = prevImplicitSlot;
|
|
1675
|
-
return parent
|
|
1676
|
-
? "$L" + request.id.toString(16)
|
|
1677
|
-
: serializeByValueID$1(request.id);
|
|
1678
|
-
}
|
|
1679
1723
|
if (key.$$typeof === REACT_POSTPONE_TYPE)
|
|
1680
1724
|
return (
|
|
1681
1725
|
request.pendingChunks++,
|
|
@@ -1687,12 +1731,6 @@
|
|
|
1687
1731
|
parent ? "$L" + value.toString(16) : serializeByValueID$1(value)
|
|
1688
1732
|
);
|
|
1689
1733
|
}
|
|
1690
|
-
if (request.status === ABORTING$1) {
|
|
1691
|
-
task.status = ABORTED$1;
|
|
1692
|
-
if (request.fatalError === haltSymbol) return "$@";
|
|
1693
|
-
task = request.fatalError;
|
|
1694
|
-
return parent ? "$L" + task.toString(16) : serializeByValueID$1(task);
|
|
1695
|
-
}
|
|
1696
1734
|
task.keyPath = prevKeyPath;
|
|
1697
1735
|
task.implicitSlot = prevImplicitSlot;
|
|
1698
1736
|
request.pendingChunks++;
|
|
@@ -2419,55 +2457,38 @@
|
|
|
2419
2457
|
request.abortableTasks.delete(task);
|
|
2420
2458
|
task.status = COMPLETED$1;
|
|
2421
2459
|
} catch (thrownValue) {
|
|
2422
|
-
var x =
|
|
2423
|
-
thrownValue === SuspenseException$1
|
|
2424
|
-
? getSuspendedThenable$1()
|
|
2425
|
-
: thrownValue;
|
|
2426
|
-
if ("object" === typeof x && null !== x) {
|
|
2427
|
-
if ("function" === typeof x.then) {
|
|
2428
|
-
if (request.status === ABORTING$1) {
|
|
2429
|
-
request.abortableTasks.delete(task);
|
|
2430
|
-
task.status = ABORTED$1;
|
|
2431
|
-
if (request.fatalError === haltSymbol)
|
|
2432
|
-
emitModelChunk(
|
|
2433
|
-
request,
|
|
2434
|
-
task.id,
|
|
2435
|
-
reusableInfinitePromiseModel
|
|
2436
|
-
);
|
|
2437
|
-
else {
|
|
2438
|
-
var model = stringify(
|
|
2439
|
-
serializeByValueID$1(request.fatalError)
|
|
2440
|
-
);
|
|
2441
|
-
emitModelChunk(request, task.id, model);
|
|
2442
|
-
}
|
|
2443
|
-
return;
|
|
2444
|
-
}
|
|
2445
|
-
task.status = PENDING$3;
|
|
2446
|
-
task.thenableState = getThenableStateAfterSuspending$1();
|
|
2447
|
-
var ping = task.ping;
|
|
2448
|
-
x.then(ping, ping);
|
|
2449
|
-
return;
|
|
2450
|
-
}
|
|
2451
|
-
if (x.$$typeof === REACT_POSTPONE_TYPE) {
|
|
2452
|
-
request.abortableTasks.delete(task);
|
|
2453
|
-
task.status = ERRORED$2;
|
|
2454
|
-
logPostpone$1(request, x.message, task);
|
|
2455
|
-
emitPostponeChunk(request, task.id, x);
|
|
2456
|
-
return;
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
2460
|
if (request.status === ABORTING$1)
|
|
2460
2461
|
if (
|
|
2461
2462
|
(request.abortableTasks.delete(task),
|
|
2462
2463
|
(task.status = ABORTED$1),
|
|
2463
|
-
request.
|
|
2464
|
+
request.type === PRERENDER)
|
|
2464
2465
|
)
|
|
2465
|
-
|
|
2466
|
+
request.pendingChunks--;
|
|
2466
2467
|
else {
|
|
2467
|
-
var
|
|
2468
|
-
emitModelChunk(request, task.id,
|
|
2468
|
+
var model = stringify(serializeByValueID$1(request.fatalError));
|
|
2469
|
+
emitModelChunk(request, task.id, model);
|
|
2469
2470
|
}
|
|
2470
2471
|
else {
|
|
2472
|
+
var x =
|
|
2473
|
+
thrownValue === SuspenseException$1
|
|
2474
|
+
? getSuspendedThenable$1()
|
|
2475
|
+
: thrownValue;
|
|
2476
|
+
if ("object" === typeof x && null !== x) {
|
|
2477
|
+
if ("function" === typeof x.then) {
|
|
2478
|
+
task.status = PENDING$3;
|
|
2479
|
+
task.thenableState = getThenableStateAfterSuspending$1();
|
|
2480
|
+
var ping = task.ping;
|
|
2481
|
+
x.then(ping, ping);
|
|
2482
|
+
return;
|
|
2483
|
+
}
|
|
2484
|
+
if (x.$$typeof === REACT_POSTPONE_TYPE) {
|
|
2485
|
+
request.abortableTasks.delete(task);
|
|
2486
|
+
task.status = ERRORED$2;
|
|
2487
|
+
logPostpone$1(request, x.message, task);
|
|
2488
|
+
emitPostponeChunk(request, task.id, x);
|
|
2489
|
+
return;
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2471
2492
|
request.abortableTasks.delete(task);
|
|
2472
2493
|
task.status = ERRORED$2;
|
|
2473
2494
|
var digest = logRecoverableError$1(request, x, task);
|
|
@@ -2492,6 +2513,7 @@
|
|
|
2492
2513
|
ReactSharedInternalsServer.H = HooksDispatcher$1;
|
|
2493
2514
|
var prevRequest = currentRequest;
|
|
2494
2515
|
currentRequest$1 = currentRequest = request;
|
|
2516
|
+
var hadAbortableTasks = 0 < request.abortableTasks.size;
|
|
2495
2517
|
try {
|
|
2496
2518
|
var pingedTasks = request.pingedTasks;
|
|
2497
2519
|
request.pingedTasks = [];
|
|
@@ -2499,7 +2521,7 @@
|
|
|
2499
2521
|
retryTask$1(request, pingedTasks[i]);
|
|
2500
2522
|
null !== request.destination &&
|
|
2501
2523
|
flushCompletedChunks(request, request.destination);
|
|
2502
|
-
if (0 === request.abortableTasks.size) {
|
|
2524
|
+
if (hadAbortableTasks && 0 === request.abortableTasks.size) {
|
|
2503
2525
|
var onAllReady = request.onAllReady;
|
|
2504
2526
|
onAllReady();
|
|
2505
2527
|
}
|
|
@@ -2512,6 +2534,13 @@
|
|
|
2512
2534
|
(currentRequest = prevRequest);
|
|
2513
2535
|
}
|
|
2514
2536
|
}
|
|
2537
|
+
function abortTask$1(task, request, errorId) {
|
|
2538
|
+
task.status !== RENDERING$1 &&
|
|
2539
|
+
((task.status = ABORTED$1),
|
|
2540
|
+
(errorId = serializeByValueID$1(errorId)),
|
|
2541
|
+
(task = encodeReferenceChunk(request, task.id, errorId)),
|
|
2542
|
+
request.completedErrorChunks.push(task));
|
|
2543
|
+
}
|
|
2515
2544
|
function flushCompletedChunks(request, destination) {
|
|
2516
2545
|
try {
|
|
2517
2546
|
for (
|
|
@@ -2588,19 +2617,31 @@
|
|
|
2588
2617
|
}
|
|
2589
2618
|
function abort$1(request, reason) {
|
|
2590
2619
|
try {
|
|
2591
|
-
|
|
2620
|
+
10 === request.status && (request.status = ABORTING$1);
|
|
2592
2621
|
var abortableTasks = request.abortableTasks;
|
|
2593
2622
|
if (0 < abortableTasks.size) {
|
|
2594
|
-
request.pendingChunks++;
|
|
2595
|
-
var errorId = request.nextChunkId++;
|
|
2596
|
-
request.fatalError = errorId;
|
|
2597
2623
|
if (
|
|
2598
2624
|
"object" === typeof reason &&
|
|
2599
2625
|
null !== reason &&
|
|
2600
2626
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
2601
2627
|
)
|
|
2602
|
-
|
|
2628
|
+
if (
|
|
2629
|
+
(logPostpone$1(request, reason.message, null),
|
|
2630
|
+
request.type === PRERENDER)
|
|
2631
|
+
)
|
|
2632
|
+
abortableTasks.forEach(function (task) {
|
|
2633
|
+
task.status !== RENDERING$1 &&
|
|
2634
|
+
((task.status = ABORTED$1), request.pendingChunks--);
|
|
2635
|
+
});
|
|
2636
|
+
else {
|
|
2637
|
+
var errorId = request.nextChunkId++;
|
|
2638
|
+
request.fatalError = errorId;
|
|
2639
|
+
request.pendingChunks++;
|
|
2603
2640
|
emitPostponeChunk(request, errorId, reason);
|
|
2641
|
+
abortableTasks.forEach(function (task) {
|
|
2642
|
+
return abortTask$1(task, request, errorId);
|
|
2643
|
+
});
|
|
2644
|
+
}
|
|
2604
2645
|
else {
|
|
2605
2646
|
var error =
|
|
2606
2647
|
void 0 === reason
|
|
@@ -2615,17 +2656,24 @@
|
|
|
2615
2656
|
)
|
|
2616
2657
|
: reason,
|
|
2617
2658
|
digest = logRecoverableError$1(request, error, null);
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
request.
|
|
2659
|
+
if (request.type === PRERENDER)
|
|
2660
|
+
abortableTasks.forEach(function (task) {
|
|
2661
|
+
task.status !== RENDERING$1 &&
|
|
2662
|
+
((task.status = ABORTED$1), request.pendingChunks--);
|
|
2663
|
+
});
|
|
2664
|
+
else {
|
|
2665
|
+
var _errorId2 = request.nextChunkId++;
|
|
2666
|
+
request.fatalError = _errorId2;
|
|
2667
|
+
request.pendingChunks++;
|
|
2668
|
+
emitErrorChunk(request, _errorId2, digest, error);
|
|
2669
|
+
abortableTasks.forEach(function (task) {
|
|
2670
|
+
return abortTask$1(task, request, _errorId2);
|
|
2671
|
+
});
|
|
2626
2672
|
}
|
|
2627
|
-
}
|
|
2673
|
+
}
|
|
2628
2674
|
abortableTasks.clear();
|
|
2675
|
+
var onAllReady = request.onAllReady;
|
|
2676
|
+
onAllReady();
|
|
2629
2677
|
}
|
|
2630
2678
|
var abortListeners = request.abortListeners;
|
|
2631
2679
|
if (0 < abortListeners.size) {
|
|
@@ -3380,7 +3428,7 @@
|
|
|
3380
3428
|
}
|
|
3381
3429
|
return null;
|
|
3382
3430
|
}
|
|
3383
|
-
function
|
|
3431
|
+
function ReactPromise(status, value, reason, response) {
|
|
3384
3432
|
this.status = status;
|
|
3385
3433
|
this.value = value;
|
|
3386
3434
|
this.reason = reason;
|
|
@@ -3406,7 +3454,7 @@
|
|
|
3406
3454
|
}
|
|
3407
3455
|
}
|
|
3408
3456
|
function createPendingChunk(response) {
|
|
3409
|
-
return new
|
|
3457
|
+
return new ReactPromise("pending", null, null, response);
|
|
3410
3458
|
}
|
|
3411
3459
|
function wakeChunk(listeners, value) {
|
|
3412
3460
|
for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value);
|
|
@@ -3447,7 +3495,7 @@
|
|
|
3447
3495
|
}
|
|
3448
3496
|
}
|
|
3449
3497
|
function createResolvedIteratorResultChunk(response, value, done) {
|
|
3450
|
-
return new
|
|
3498
|
+
return new ReactPromise(
|
|
3451
3499
|
"resolved_model",
|
|
3452
3500
|
(done ? '{"done":true,"value":' : '{"done":false,"value":') +
|
|
3453
3501
|
value +
|
|
@@ -3907,7 +3955,10 @@
|
|
|
3907
3955
|
(chunk.value = stream),
|
|
3908
3956
|
(chunk.reason = controller),
|
|
3909
3957
|
null !== response && wakeChunk(response, chunk.value))
|
|
3910
|
-
: chunks.set(
|
|
3958
|
+
: chunks.set(
|
|
3959
|
+
id,
|
|
3960
|
+
new ReactPromise("fulfilled", stream, controller, response)
|
|
3961
|
+
);
|
|
3911
3962
|
}
|
|
3912
3963
|
function startReadableStream(response, id, type) {
|
|
3913
3964
|
var controller = null;
|
|
@@ -3928,7 +3979,12 @@
|
|
|
3928
3979
|
},
|
|
3929
3980
|
enqueueModel: function (json) {
|
|
3930
3981
|
if (null === previousBlockedChunk) {
|
|
3931
|
-
var chunk = new
|
|
3982
|
+
var chunk = new ReactPromise(
|
|
3983
|
+
"resolved_model",
|
|
3984
|
+
json,
|
|
3985
|
+
null,
|
|
3986
|
+
response
|
|
3987
|
+
);
|
|
3932
3988
|
initializeModelChunk(chunk);
|
|
3933
3989
|
"fulfilled" === chunk.status
|
|
3934
3990
|
? controller.enqueue(chunk.value)
|
|
@@ -4002,7 +4058,7 @@
|
|
|
4002
4058
|
);
|
|
4003
4059
|
if (nextReadIndex === buffer.length) {
|
|
4004
4060
|
if (closed)
|
|
4005
|
-
return new
|
|
4061
|
+
return new ReactPromise(
|
|
4006
4062
|
"fulfilled",
|
|
4007
4063
|
{ done: !0, value: void 0 },
|
|
4008
4064
|
null,
|
|
@@ -4020,7 +4076,7 @@
|
|
|
4020
4076
|
{
|
|
4021
4077
|
enqueueValue: function (value) {
|
|
4022
4078
|
if (nextWriteIndex === buffer.length)
|
|
4023
|
-
buffer[nextWriteIndex] = new
|
|
4079
|
+
buffer[nextWriteIndex] = new ReactPromise(
|
|
4024
4080
|
"fulfilled",
|
|
4025
4081
|
{ done: !1, value: value },
|
|
4026
4082
|
null,
|
|
@@ -4299,7 +4355,12 @@
|
|
|
4299
4355
|
? ((stack = initializingHandler),
|
|
4300
4356
|
(initializingHandler = stack.parent),
|
|
4301
4357
|
stack.errored
|
|
4302
|
-
? ((key = new
|
|
4358
|
+
? ((key = new ReactPromise(
|
|
4359
|
+
"rejected",
|
|
4360
|
+
null,
|
|
4361
|
+
stack.value,
|
|
4362
|
+
response
|
|
4363
|
+
)),
|
|
4303
4364
|
(stack = {
|
|
4304
4365
|
name: getComponentNameFromType(value.type) || "",
|
|
4305
4366
|
owner: value._owner
|
|
@@ -4309,7 +4370,7 @@
|
|
|
4309
4370
|
(key._debugInfo = [stack]),
|
|
4310
4371
|
(value = createLazyChunkWrapper(key)))
|
|
4311
4372
|
: 0 < stack.deps &&
|
|
4312
|
-
((key = new
|
|
4373
|
+
((key = new ReactPromise("blocked", null, null, response)),
|
|
4313
4374
|
(stack.value = value),
|
|
4314
4375
|
(stack.chunk = key),
|
|
4315
4376
|
(value = Object.freeze.bind(Object, value.props)),
|
|
@@ -10255,8 +10316,13 @@
|
|
|
10255
10316
|
)),
|
|
10256
10317
|
logRecoverableError(request, task, boundary, null),
|
|
10257
10318
|
fatalError(request, task, boundary, null)))
|
|
10258
|
-
:
|
|
10259
|
-
|
|
10319
|
+
: null !== request.trackedPostpones && null !== segment
|
|
10320
|
+
? ((replay = request.trackedPostpones),
|
|
10321
|
+
logRecoverableError(request, error, boundary, null),
|
|
10322
|
+
trackPostpone(request, replay, task, segment),
|
|
10323
|
+
finishedTask(request, null, segment))
|
|
10324
|
+
: (logRecoverableError(request, error, boundary, null),
|
|
10325
|
+
fatalError(request, error, boundary, null));
|
|
10260
10326
|
return;
|
|
10261
10327
|
}
|
|
10262
10328
|
replay.pendingTasks--;
|
|
@@ -10281,25 +10347,54 @@
|
|
|
10281
10347
|
request.pendingRootTasks--;
|
|
10282
10348
|
0 === request.pendingRootTasks && completeShell(request);
|
|
10283
10349
|
}
|
|
10284
|
-
} else
|
|
10285
|
-
boundary.pendingTasks
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10350
|
+
} else {
|
|
10351
|
+
boundary.pendingTasks--;
|
|
10352
|
+
replay = getThrownInfo(task.componentStack);
|
|
10353
|
+
var _trackedPostpones2 = request.trackedPostpones;
|
|
10354
|
+
if (4 !== boundary.status) {
|
|
10355
|
+
if (null !== _trackedPostpones2 && null !== segment)
|
|
10356
|
+
return (
|
|
10357
|
+
"object" === typeof error &&
|
|
10358
|
+
null !== error &&
|
|
10359
|
+
error.$$typeof === REACT_POSTPONE_TYPE
|
|
10360
|
+
? logPostpone(request, error.message, replay, null)
|
|
10361
|
+
: logRecoverableError(request, error, replay, null),
|
|
10362
|
+
trackPostpone(request, _trackedPostpones2, task, segment),
|
|
10363
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
10364
|
+
return abortTask(fallbackTask, request, error);
|
|
10365
|
+
}),
|
|
10366
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
10367
|
+
finishedTask(request, boundary, segment)
|
|
10368
|
+
);
|
|
10369
|
+
boundary.status = 4;
|
|
10370
|
+
if (
|
|
10289
10371
|
"object" === typeof error &&
|
|
10290
10372
|
null !== error &&
|
|
10291
10373
|
error.$$typeof === REACT_POSTPONE_TYPE
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10374
|
+
) {
|
|
10375
|
+
logPostpone(request, error.message, replay, null);
|
|
10376
|
+
if (null !== request.trackedPostpones && null !== segment) {
|
|
10377
|
+
trackPostpone(request, request.trackedPostpones, task, segment);
|
|
10378
|
+
finishedTask(request, task.blockedBoundary, segment);
|
|
10379
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
10380
|
+
return abortTask(fallbackTask, request, error);
|
|
10381
|
+
});
|
|
10382
|
+
boundary.fallbackAbortableTasks.clear();
|
|
10383
|
+
return;
|
|
10384
|
+
}
|
|
10385
|
+
task = "POSTPONE";
|
|
10386
|
+
} else task = logRecoverableError(request, error, replay, null);
|
|
10387
|
+
boundary.status = 4;
|
|
10388
|
+
encodeErrorForBoundary(boundary, task, error, replay, !0);
|
|
10389
|
+
untrackBoundary(request, boundary);
|
|
10390
|
+
boundary.parentFlushed &&
|
|
10391
|
+
request.clientRenderedBoundaries.push(boundary);
|
|
10392
|
+
}
|
|
10393
|
+
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
10394
|
+
return abortTask(fallbackTask, request, error);
|
|
10395
|
+
});
|
|
10396
|
+
boundary.fallbackAbortableTasks.clear();
|
|
10397
|
+
}
|
|
10303
10398
|
request.allPendingTasks--;
|
|
10304
10399
|
0 === request.allPendingTasks && completeAll(request);
|
|
10305
10400
|
}
|
|
@@ -10554,89 +10649,129 @@
|
|
|
10554
10649
|
: 1 === request.status
|
|
10555
10650
|
? request.fatalError
|
|
10556
10651
|
: thrownValue;
|
|
10557
|
-
if (
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
10564
|
-
break a;
|
|
10565
|
-
}
|
|
10566
|
-
if (
|
|
10567
|
-
null !== request.trackedPostpones &&
|
|
10568
|
-
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
10569
|
-
) {
|
|
10570
|
-
var trackedPostpones = request.trackedPostpones;
|
|
10571
|
-
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
10572
|
-
var postponeInfo = getThrownInfo(
|
|
10652
|
+
if (
|
|
10653
|
+
1 === request.status &&
|
|
10654
|
+
null !== request.trackedPostpones
|
|
10655
|
+
) {
|
|
10656
|
+
var trackedPostpones = request.trackedPostpones,
|
|
10657
|
+
thrownInfo = getThrownInfo(
|
|
10573
10658
|
task$jscomp$0.componentStack
|
|
10574
10659
|
);
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
finishedTask(
|
|
10588
|
-
request,
|
|
10589
|
-
task$jscomp$0.blockedBoundary,
|
|
10590
|
-
segment$jscomp$0
|
|
10591
|
-
);
|
|
10592
|
-
break a;
|
|
10593
|
-
}
|
|
10594
|
-
}
|
|
10595
|
-
var errorInfo$jscomp$0 = getThrownInfo(
|
|
10596
|
-
task$jscomp$0.componentStack
|
|
10597
|
-
);
|
|
10598
|
-
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
10599
|
-
segment$jscomp$0.status = 4;
|
|
10600
|
-
var boundary = task$jscomp$0.blockedBoundary,
|
|
10601
|
-
debugTask = task$jscomp$0.debugTask;
|
|
10602
|
-
"object" === typeof x$jscomp$0 &&
|
|
10603
|
-
null !== x$jscomp$0 &&
|
|
10604
|
-
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
10605
|
-
? (logPostpone(
|
|
10606
|
-
request,
|
|
10607
|
-
x$jscomp$0.message,
|
|
10608
|
-
errorInfo$jscomp$0,
|
|
10609
|
-
debugTask
|
|
10610
|
-
),
|
|
10611
|
-
(prevTaskInDEV = "POSTPONE"))
|
|
10612
|
-
: (prevTaskInDEV = logRecoverableError(
|
|
10613
|
-
request,
|
|
10614
|
-
x$jscomp$0,
|
|
10615
|
-
errorInfo$jscomp$0,
|
|
10616
|
-
debugTask
|
|
10617
|
-
));
|
|
10618
|
-
null === boundary
|
|
10619
|
-
? fatalError(
|
|
10620
|
-
request,
|
|
10621
|
-
x$jscomp$0,
|
|
10622
|
-
errorInfo$jscomp$0,
|
|
10623
|
-
debugTask
|
|
10624
|
-
)
|
|
10625
|
-
: (boundary.pendingTasks--,
|
|
10626
|
-
4 !== boundary.status &&
|
|
10627
|
-
((boundary.status = 4),
|
|
10628
|
-
encodeErrorForBoundary(
|
|
10629
|
-
boundary,
|
|
10630
|
-
prevTaskInDEV,
|
|
10660
|
+
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
10661
|
+
"object" === typeof x$jscomp$0 &&
|
|
10662
|
+
null !== x$jscomp$0 &&
|
|
10663
|
+
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
10664
|
+
? logPostpone(
|
|
10665
|
+
request,
|
|
10666
|
+
x$jscomp$0.message,
|
|
10667
|
+
thrownInfo,
|
|
10668
|
+
task$jscomp$0.debugTask
|
|
10669
|
+
)
|
|
10670
|
+
: logRecoverableError(
|
|
10671
|
+
request,
|
|
10631
10672
|
x$jscomp$0,
|
|
10673
|
+
thrownInfo,
|
|
10674
|
+
task$jscomp$0.debugTask
|
|
10675
|
+
);
|
|
10676
|
+
trackPostpone(
|
|
10677
|
+
request,
|
|
10678
|
+
trackedPostpones,
|
|
10679
|
+
task$jscomp$0,
|
|
10680
|
+
segment$jscomp$0
|
|
10681
|
+
);
|
|
10682
|
+
finishedTask(
|
|
10683
|
+
request,
|
|
10684
|
+
task$jscomp$0.blockedBoundary,
|
|
10685
|
+
segment$jscomp$0
|
|
10686
|
+
);
|
|
10687
|
+
} else {
|
|
10688
|
+
if (
|
|
10689
|
+
"object" === typeof x$jscomp$0 &&
|
|
10690
|
+
null !== x$jscomp$0
|
|
10691
|
+
) {
|
|
10692
|
+
if ("function" === typeof x$jscomp$0.then) {
|
|
10693
|
+
segment$jscomp$0.status = 0;
|
|
10694
|
+
task$jscomp$0.thenableState =
|
|
10695
|
+
getThenableStateAfterSuspending();
|
|
10696
|
+
var ping$jscomp$0 = task$jscomp$0.ping;
|
|
10697
|
+
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
10698
|
+
break a;
|
|
10699
|
+
}
|
|
10700
|
+
if (
|
|
10701
|
+
null !== request.trackedPostpones &&
|
|
10702
|
+
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
10703
|
+
) {
|
|
10704
|
+
var _trackedPostpones3 = request.trackedPostpones;
|
|
10705
|
+
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
10706
|
+
var postponeInfo = getThrownInfo(
|
|
10707
|
+
task$jscomp$0.componentStack
|
|
10708
|
+
);
|
|
10709
|
+
logPostpone(
|
|
10710
|
+
request,
|
|
10711
|
+
x$jscomp$0.message,
|
|
10712
|
+
postponeInfo,
|
|
10713
|
+
task$jscomp$0.debugTask
|
|
10714
|
+
);
|
|
10715
|
+
trackPostpone(
|
|
10716
|
+
request,
|
|
10717
|
+
_trackedPostpones3,
|
|
10718
|
+
task$jscomp$0,
|
|
10719
|
+
segment$jscomp$0
|
|
10720
|
+
);
|
|
10721
|
+
finishedTask(
|
|
10722
|
+
request,
|
|
10723
|
+
task$jscomp$0.blockedBoundary,
|
|
10724
|
+
segment$jscomp$0
|
|
10725
|
+
);
|
|
10726
|
+
break a;
|
|
10727
|
+
}
|
|
10728
|
+
}
|
|
10729
|
+
var errorInfo$jscomp$0 = getThrownInfo(
|
|
10730
|
+
task$jscomp$0.componentStack
|
|
10731
|
+
);
|
|
10732
|
+
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
10733
|
+
segment$jscomp$0.status = 4;
|
|
10734
|
+
var boundary = task$jscomp$0.blockedBoundary,
|
|
10735
|
+
debugTask = task$jscomp$0.debugTask;
|
|
10736
|
+
"object" === typeof x$jscomp$0 &&
|
|
10737
|
+
null !== x$jscomp$0 &&
|
|
10738
|
+
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
10739
|
+
? (logPostpone(
|
|
10740
|
+
request,
|
|
10741
|
+
x$jscomp$0.message,
|
|
10632
10742
|
errorInfo$jscomp$0,
|
|
10633
|
-
|
|
10743
|
+
debugTask
|
|
10634
10744
|
),
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
request
|
|
10638
|
-
|
|
10639
|
-
|
|
10745
|
+
(prevTaskInDEV = "POSTPONE"))
|
|
10746
|
+
: (prevTaskInDEV = logRecoverableError(
|
|
10747
|
+
request,
|
|
10748
|
+
x$jscomp$0,
|
|
10749
|
+
errorInfo$jscomp$0,
|
|
10750
|
+
debugTask
|
|
10751
|
+
));
|
|
10752
|
+
null === boundary
|
|
10753
|
+
? fatalError(
|
|
10754
|
+
request,
|
|
10755
|
+
x$jscomp$0,
|
|
10756
|
+
errorInfo$jscomp$0,
|
|
10757
|
+
debugTask
|
|
10758
|
+
)
|
|
10759
|
+
: (boundary.pendingTasks--,
|
|
10760
|
+
4 !== boundary.status &&
|
|
10761
|
+
((boundary.status = 4),
|
|
10762
|
+
encodeErrorForBoundary(
|
|
10763
|
+
boundary,
|
|
10764
|
+
prevTaskInDEV,
|
|
10765
|
+
x$jscomp$0,
|
|
10766
|
+
errorInfo$jscomp$0,
|
|
10767
|
+
!1
|
|
10768
|
+
),
|
|
10769
|
+
untrackBoundary(request, boundary),
|
|
10770
|
+
boundary.parentFlushed &&
|
|
10771
|
+
request.clientRenderedBoundaries.push(boundary)));
|
|
10772
|
+
request.allPendingTasks--;
|
|
10773
|
+
0 === request.allPendingTasks && completeAll(request);
|
|
10774
|
+
}
|
|
10640
10775
|
} finally {
|
|
10641
10776
|
currentTaskInDEV = request$jscomp$0;
|
|
10642
10777
|
}
|
|
@@ -11190,9 +11325,10 @@
|
|
|
11190
11325
|
}
|
|
11191
11326
|
function startWork(request) {
|
|
11192
11327
|
request.flushScheduled = null !== request.destination;
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11328
|
+
null !== request.trackedPostpones
|
|
11329
|
+
? performWork(request)
|
|
11330
|
+
: (performWork(request),
|
|
11331
|
+
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks));
|
|
11196
11332
|
}
|
|
11197
11333
|
function startFlowing(request, destination) {
|
|
11198
11334
|
if (2 === request.status)
|
|
@@ -11467,15 +11603,14 @@
|
|
|
11467
11603
|
ReactSharedInternalsServer.TaintRegistryByteLengths,
|
|
11468
11604
|
TaintRegistryPendingRequests =
|
|
11469
11605
|
ReactSharedInternalsServer.TaintRegistryPendingRequests,
|
|
11470
|
-
ABORTING$1 =
|
|
11471
|
-
CLOSING$1 =
|
|
11472
|
-
CLOSED$1 =
|
|
11606
|
+
ABORTING$1 = 11,
|
|
11607
|
+
CLOSING$1 = 12,
|
|
11608
|
+
CLOSED$1 = 13,
|
|
11609
|
+
PRERENDER = 21,
|
|
11473
11610
|
currentRequest = null,
|
|
11474
11611
|
debugID = null,
|
|
11475
|
-
reusableInfinitePromiseModel = stringify("$@"),
|
|
11476
11612
|
modelRoot = !1,
|
|
11477
11613
|
emptyRoot = {},
|
|
11478
|
-
haltSymbol = Symbol("halt"),
|
|
11479
11614
|
bind$1 = Function.prototype.bind,
|
|
11480
11615
|
ObjectPrototype = Object.prototype,
|
|
11481
11616
|
knownServerReferences = new WeakMap(),
|
|
@@ -11487,8 +11622,8 @@
|
|
|
11487
11622
|
ReactSharedInternals =
|
|
11488
11623
|
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ||
|
|
11489
11624
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
11490
|
-
|
|
11491
|
-
|
|
11625
|
+
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
11626
|
+
ReactPromise.prototype.then = function (resolve, reject) {
|
|
11492
11627
|
switch (this.status) {
|
|
11493
11628
|
case "resolved_model":
|
|
11494
11629
|
initializeModelChunk(this);
|
|
@@ -12455,6 +12590,7 @@
|
|
|
12455
12590
|
stashErrorIdx = 1,
|
|
12456
12591
|
stashedErrors = new Map(),
|
|
12457
12592
|
flightRequest = new RequestInstance$1(
|
|
12593
|
+
20,
|
|
12458
12594
|
children,
|
|
12459
12595
|
null,
|
|
12460
12596
|
function (error) {
|
|
@@ -12467,8 +12603,8 @@
|
|
|
12467
12603
|
void 0,
|
|
12468
12604
|
"Markup",
|
|
12469
12605
|
void 0,
|
|
12470
|
-
|
|
12471
|
-
|
|
12606
|
+
noop$3,
|
|
12607
|
+
noop$3
|
|
12472
12608
|
),
|
|
12473
12609
|
flightResponse = new ResponseInstance(
|
|
12474
12610
|
null,
|
|
@@ -12658,7 +12794,7 @@
|
|
|
12658
12794
|
? triggerErrorOnChunk(error, rowTag)
|
|
12659
12795
|
: rowLength.set(
|
|
12660
12796
|
rowID,
|
|
12661
|
-
new
|
|
12797
|
+
new ReactPromise("rejected", null, rowTag, i)
|
|
12662
12798
|
);
|
|
12663
12799
|
break;
|
|
12664
12800
|
case 84:
|
|
@@ -12667,7 +12803,7 @@
|
|
|
12667
12803
|
? error.reason.enqueueValue(rowLength)
|
|
12668
12804
|
: rowTag.set(
|
|
12669
12805
|
rowID,
|
|
12670
|
-
new
|
|
12806
|
+
new ReactPromise("fulfilled", rowLength, null, i)
|
|
12671
12807
|
);
|
|
12672
12808
|
break;
|
|
12673
12809
|
case 68:
|
|
@@ -12755,7 +12891,7 @@
|
|
|
12755
12891
|
? triggerErrorOnChunk(error, rowTag)
|
|
12756
12892
|
: rowLength.set(
|
|
12757
12893
|
rowID,
|
|
12758
|
-
new
|
|
12894
|
+
new ReactPromise("rejected", null, rowTag, i)
|
|
12759
12895
|
);
|
|
12760
12896
|
break;
|
|
12761
12897
|
default:
|
|
@@ -12764,7 +12900,12 @@
|
|
|
12764
12900
|
? resolveModelChunk(error, rowLength)
|
|
12765
12901
|
: rowTag.set(
|
|
12766
12902
|
rowID,
|
|
12767
|
-
new
|
|
12903
|
+
new ReactPromise(
|
|
12904
|
+
"resolved_model",
|
|
12905
|
+
rowLength,
|
|
12906
|
+
null,
|
|
12907
|
+
i
|
|
12908
|
+
)
|
|
12768
12909
|
);
|
|
12769
12910
|
}
|
|
12770
12911
|
i = lastIdx;
|
|
@@ -12804,5 +12945,5 @@
|
|
|
12804
12945
|
});
|
|
12805
12946
|
});
|
|
12806
12947
|
};
|
|
12807
|
-
exports.version = "19.0.0-experimental-
|
|
12948
|
+
exports.version = "19.0.0-experimental-1d989965-20240821";
|
|
12808
12949
|
})();
|