@vitejs/plugin-rsc 0.5.34 → 0.5.35
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/README.md +15 -0
- package/dist/browser.d.ts +1 -1
- package/dist/{cjs-AWVWfddx.js → cjs-DhDj_zQT.js} +2 -2
- package/dist/client-Dq3oGLRS.d.ts +8 -0
- package/dist/{client-reference-DEZtXTv1.d.ts → client-reference-Bk5pzNGN.d.ts} +1 -1
- package/dist/client.node-BEQT2PT-.d.ts +9 -0
- package/dist/client.shared-D1HxyClg.js +10 -0
- package/dist/client.shared-VT232QCM.d.ts +16 -0
- package/dist/core/browser.js +1 -1
- package/dist/core/plugin.d.ts +2 -3
- package/dist/core/rsc.d.ts +1 -1
- package/dist/core/rsc.js +1 -1
- package/dist/core/ssr.d.ts +1 -7
- package/dist/core/ssr.js +1 -1
- package/dist/{index-C5IY2S-e.d.ts → index-CROaL0MT.d.ts} +34 -8
- package/dist/index.js +1 -1
- package/dist/{picocolors-391UXIDd.js → picocolors-DCTC64Zv.js} +1 -1
- package/dist/{plugin-Cbs9j6lP.js → plugin-CLvIS10V.js} +37 -27
- package/dist/plugin.js +1 -1
- package/dist/plugins/cjs.d.ts +2 -3
- package/dist/plugins/cjs.js +1 -1
- package/dist/react/browser.d.ts +10 -10
- package/dist/react/rsc/client.d.ts +1 -1
- package/dist/react/rsc/client.js +2 -5
- package/dist/react/rsc/client.node.d.ts +2 -0
- package/dist/react/rsc/client.node.js +16 -0
- package/dist/react/rsc/server.d.ts +2 -2
- package/dist/react/rsc/server.node.d.ts +3 -0
- package/dist/react/rsc/server.node.js +24 -0
- package/dist/react/rsc/static.d.ts +4 -5
- package/dist/react/rsc/static.node.d.ts +6 -0
- package/dist/react/rsc/static.node.js +11 -0
- package/dist/react/rsc.d.ts +3 -3
- package/dist/react/ssr.d.ts +9 -9
- package/dist/react/ssr.node.d.ts +12 -0
- package/dist/react/ssr.node.js +21 -0
- package/dist/rsc/client.d.ts +1 -1
- package/dist/rsc/client.node.d.ts +2 -0
- package/dist/rsc/client.node.js +3 -0
- package/dist/rsc/server.d.ts +5 -5
- package/dist/rsc/server.node.d.ts +19 -0
- package/dist/rsc/server.node.js +13 -0
- package/dist/rsc/static.d.ts +4 -5
- package/dist/rsc/static.node.d.ts +16 -0
- package/dist/rsc/static.node.js +12 -0
- package/dist/{rsc-C3UdJLOW.d.ts → rsc-D8UlANI2.d.ts} +1 -1
- package/dist/rsc.d.ts +3 -3
- package/dist/rsc.node.d.ts +6 -0
- package/dist/rsc.node.js +7 -0
- package/dist/{scope-Bdx33sQv.js → scope-Ck0n25my.js} +2 -4
- package/dist/{server-ZBjqNTqU.d.ts → server-YwgjVtsE.d.ts} +2 -2
- package/dist/server.node-DU77AeKU.d.ts +15 -0
- package/dist/shared-BWJvctW6.js +34 -0
- package/dist/shared-CXQb6hk9.js +89 -0
- package/dist/shared-DJBuYpZL.d.ts +20 -0
- package/dist/ssr-C-U7jY5S.d.ts +8 -0
- package/dist/ssr.d.ts +3 -21
- package/dist/ssr.js +1 -87
- package/dist/ssr.node.d.ts +5 -0
- package/dist/ssr.node.js +4 -0
- package/dist/transforms/index.js +67 -60
- package/dist/utils/encryption-runtime.d.ts +3 -4
- package/dist/utils/encryption-runtime.js +4 -2
- package/dist/utils/rpc.d.ts +3 -4
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.development.js +909 -495
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.browser.production.js +399 -265
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js +901 -477
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.production.js +380 -219
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.development.js +925 -484
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.node.production.js +385 -221
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.development.js +726 -388
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.browser.production.js +566 -397
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.development.js +734 -397
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.edge.production.js +477 -238
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.development.js +1029 -620
- package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-server.node.production.js +481 -261
- package/dist/vendor/react-server-dom/esm/react-server-dom-webpack-node-loader.production.js +2 -2
- package/dist/vendor/react-server-dom/package.json +3 -3
- package/package.json +15 -15
- package/dist/client-Bhch3O41.d.ts +0 -19
- package/dist/dist-uqdtSkzK.js +0 -64
package/dist/vendor/react-server-dom/cjs/react-server-dom-webpack-client.edge.development.js
CHANGED
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
+
function checkEvalAvailabilityOnceDev() {
|
|
15
|
+
if (!hasConfirmedEval) {
|
|
16
|
+
hasConfirmedEval = !0;
|
|
17
|
+
try {
|
|
18
|
+
(0, eval)("null");
|
|
19
|
+
} catch ($jscomp$unused$catch) {
|
|
20
|
+
console.error(
|
|
21
|
+
"eval() is not supported in this environment. React requires eval() in development mode for various debugging features like reconstructing callstacks from a different environment.\nReact will never use eval() in production mode"
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
14
26
|
function resolveClientReference(bundlerConfig, metadata) {
|
|
15
27
|
if (bundlerConfig) {
|
|
16
28
|
var moduleExports = bundlerConfig[metadata[0]];
|
|
@@ -129,7 +141,12 @@
|
|
|
129
141
|
JSCompiler_temp_const$jscomp$0.call(
|
|
130
142
|
JSCompiler_temp_const,
|
|
131
143
|
JSCompiler_temp_const$jscomp$1,
|
|
132
|
-
{
|
|
144
|
+
{
|
|
145
|
+
crossOrigin: JSCompiler_inline_result,
|
|
146
|
+
integrity: void 0,
|
|
147
|
+
fetchPriority: void 0,
|
|
148
|
+
nonce: nonce
|
|
149
|
+
}
|
|
133
150
|
);
|
|
134
151
|
}
|
|
135
152
|
}
|
|
@@ -206,6 +223,8 @@
|
|
|
206
223
|
return "Suspense";
|
|
207
224
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
208
225
|
return "SuspenseList";
|
|
226
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
227
|
+
return "ViewTransition";
|
|
209
228
|
}
|
|
210
229
|
if ("object" === typeof type)
|
|
211
230
|
switch (type.$$typeof) {
|
|
@@ -343,9 +362,36 @@
|
|
|
343
362
|
root,
|
|
344
363
|
formFieldPrefix,
|
|
345
364
|
temporaryReferences,
|
|
346
|
-
|
|
347
|
-
|
|
365
|
+
onResolve,
|
|
366
|
+
onReject,
|
|
367
|
+
signal
|
|
348
368
|
) {
|
|
369
|
+
function endReplyLifetime() {
|
|
370
|
+
null !== replyLifetimeController &&
|
|
371
|
+
replyLifetimeController.abort("The reply ended.");
|
|
372
|
+
}
|
|
373
|
+
function resolve(value) {
|
|
374
|
+
settled = !0;
|
|
375
|
+
endReplyLifetime();
|
|
376
|
+
onResolve(value);
|
|
377
|
+
}
|
|
378
|
+
function reject(error) {
|
|
379
|
+
settled = !0;
|
|
380
|
+
endReplyLifetime();
|
|
381
|
+
onReject(error);
|
|
382
|
+
}
|
|
383
|
+
function attachAbortSignal(abortSignal) {
|
|
384
|
+
abortSignal.aborted
|
|
385
|
+
? abort()
|
|
386
|
+
: ((replyLifetimeController = new AbortController()),
|
|
387
|
+
abortSignal.addEventListener(
|
|
388
|
+
"abort",
|
|
389
|
+
function () {
|
|
390
|
+
abort();
|
|
391
|
+
},
|
|
392
|
+
{ signal: replyLifetimeController.signal }
|
|
393
|
+
));
|
|
394
|
+
}
|
|
349
395
|
function serializeTypedArray(tag, typedArray) {
|
|
350
396
|
typedArray = new Blob([
|
|
351
397
|
new Uint8Array(
|
|
@@ -476,6 +522,8 @@
|
|
|
476
522
|
"$T"
|
|
477
523
|
);
|
|
478
524
|
}
|
|
525
|
+
if (void 0 !== temporaryReferences && modelRoot === value)
|
|
526
|
+
return (modelRoot = null), "$T";
|
|
479
527
|
throw Error(
|
|
480
528
|
"React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options." +
|
|
481
529
|
describeObjectForErrorMessage(this, key)
|
|
@@ -646,7 +694,7 @@
|
|
|
646
694
|
return serializeAsyncIterable(value, parentReference.call(value));
|
|
647
695
|
parentReference = getPrototypeOf(value);
|
|
648
696
|
if (
|
|
649
|
-
parentReference !== ObjectPrototype &&
|
|
697
|
+
parentReference !== ObjectPrototype$1 &&
|
|
650
698
|
(null === parentReference ||
|
|
651
699
|
null !== getPrototypeOf(parentReference))
|
|
652
700
|
) {
|
|
@@ -752,21 +800,26 @@
|
|
|
752
800
|
modelRoot = model;
|
|
753
801
|
return JSON.stringify(model, resolveToJSON);
|
|
754
802
|
}
|
|
803
|
+
function abort() {
|
|
804
|
+
endReplyLifetime();
|
|
805
|
+
0 < pendingParts &&
|
|
806
|
+
((pendingParts = 0),
|
|
807
|
+
null === formData ? resolve(json) : resolve(formData));
|
|
808
|
+
}
|
|
755
809
|
var nextPartId = 1,
|
|
756
810
|
pendingParts = 0,
|
|
757
811
|
formData = null,
|
|
758
812
|
writtenObjects = new WeakMap(),
|
|
759
813
|
modelRoot = root,
|
|
760
|
-
|
|
814
|
+
settled = !1,
|
|
815
|
+
replyLifetimeController = null;
|
|
816
|
+
checkEvalAvailabilityOnceDev();
|
|
817
|
+
var json = serializeModel(root, 0);
|
|
761
818
|
null === formData
|
|
762
819
|
? resolve(json)
|
|
763
820
|
: (formData.set(formFieldPrefix + "0", json),
|
|
764
821
|
0 === pendingParts && resolve(formData));
|
|
765
|
-
|
|
766
|
-
0 < pendingParts &&
|
|
767
|
-
((pendingParts = 0),
|
|
768
|
-
null === formData ? resolve(json) : resolve(formData));
|
|
769
|
-
};
|
|
822
|
+
void 0 === signal || settled || attachAbortSignal(signal);
|
|
770
823
|
}
|
|
771
824
|
function encodeFormData(reference) {
|
|
772
825
|
var resolve,
|
|
@@ -1091,6 +1144,8 @@
|
|
|
1091
1144
|
return "SuspenseList";
|
|
1092
1145
|
case REACT_ACTIVITY_TYPE:
|
|
1093
1146
|
return "Activity";
|
|
1147
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
1148
|
+
return "ViewTransition";
|
|
1094
1149
|
}
|
|
1095
1150
|
if ("object" === typeof type)
|
|
1096
1151
|
switch (
|
|
@@ -1130,7 +1185,7 @@
|
|
|
1130
1185
|
return null;
|
|
1131
1186
|
}
|
|
1132
1187
|
function getArrayKind(array) {
|
|
1133
|
-
for (var kind = 0, i = 0; i < array.length; i++) {
|
|
1188
|
+
for (var kind = 0, i = 0; i < array.length && 100 > i; i++) {
|
|
1134
1189
|
var value = array[i];
|
|
1135
1190
|
if ("object" === typeof value && null !== value)
|
|
1136
1191
|
if (
|
|
@@ -1145,7 +1200,8 @@
|
|
|
1145
1200
|
if (
|
|
1146
1201
|
"function" === typeof value ||
|
|
1147
1202
|
("string" === typeof value && 50 < value.length) ||
|
|
1148
|
-
(0 !== kind && 2 !== kind)
|
|
1203
|
+
(0 !== kind && 2 !== kind) ||
|
|
1204
|
+
"bigint" === typeof value
|
|
1149
1205
|
)
|
|
1150
1206
|
return 1;
|
|
1151
1207
|
kind = 2;
|
|
@@ -1154,10 +1210,26 @@
|
|
|
1154
1210
|
return kind;
|
|
1155
1211
|
}
|
|
1156
1212
|
function addObjectToProperties(object, properties, indent, prefix) {
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1213
|
+
if (!ArrayBuffer.isView(object)) {
|
|
1214
|
+
var addedProperties = 0,
|
|
1215
|
+
key;
|
|
1216
|
+
for (key in object)
|
|
1217
|
+
if (
|
|
1218
|
+
hasOwnProperty.call(object, key) &&
|
|
1219
|
+
"_" !== key[0] &&
|
|
1220
|
+
(addedProperties++,
|
|
1221
|
+
addValueToProperties(key, object[key], properties, indent, prefix),
|
|
1222
|
+
100 <= addedProperties)
|
|
1223
|
+
) {
|
|
1224
|
+
properties.push([
|
|
1225
|
+
prefix +
|
|
1226
|
+
"\u00a0\u00a0".repeat(indent) +
|
|
1227
|
+
"Only 100 properties are shown. React will not log more properties of this object.",
|
|
1228
|
+
""
|
|
1229
|
+
]);
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1161
1233
|
}
|
|
1162
1234
|
function addValueToProperties(
|
|
1163
1235
|
propertyName,
|
|
@@ -1172,7 +1244,11 @@
|
|
|
1172
1244
|
value = "null";
|
|
1173
1245
|
break;
|
|
1174
1246
|
} else {
|
|
1175
|
-
if (
|
|
1247
|
+
if (
|
|
1248
|
+
("$$typeof" in value && hasOwnProperty.call(value, "$$typeof")
|
|
1249
|
+
? value.$$typeof
|
|
1250
|
+
: void 0) === REACT_ELEMENT_TYPE
|
|
1251
|
+
) {
|
|
1176
1252
|
var typeName = getComponentNameFromType(value.type) || "\u2026",
|
|
1177
1253
|
key = value.key;
|
|
1178
1254
|
value = value.props;
|
|
@@ -1204,21 +1280,27 @@
|
|
|
1204
1280
|
prefix
|
|
1205
1281
|
);
|
|
1206
1282
|
propertyName = !1;
|
|
1283
|
+
key = 0;
|
|
1207
1284
|
for (var propKey in value)
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
propKey
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1285
|
+
if (
|
|
1286
|
+
(key++,
|
|
1287
|
+
"children" === propKey
|
|
1288
|
+
? null != value.children &&
|
|
1289
|
+
(!isArrayImpl(value.children) ||
|
|
1290
|
+
0 < value.children.length) &&
|
|
1291
|
+
(propertyName = !0)
|
|
1292
|
+
: hasOwnProperty.call(value, propKey) &&
|
|
1293
|
+
"_" !== propKey[0] &&
|
|
1294
|
+
addValueToProperties(
|
|
1295
|
+
propKey,
|
|
1296
|
+
value[propKey],
|
|
1297
|
+
properties,
|
|
1298
|
+
indent + 1,
|
|
1299
|
+
prefix
|
|
1300
|
+
),
|
|
1301
|
+
100 <= key)
|
|
1302
|
+
)
|
|
1303
|
+
break;
|
|
1222
1304
|
properties.push([
|
|
1223
1305
|
"",
|
|
1224
1306
|
propertyName ? ">\u2026</" + typeName + ">" : "/>"
|
|
@@ -1227,21 +1309,32 @@
|
|
|
1227
1309
|
}
|
|
1228
1310
|
typeName = Object.prototype.toString.call(value);
|
|
1229
1311
|
typeName = typeName.slice(8, typeName.length - 1);
|
|
1312
|
+
if (ArrayBuffer.isView(value)) {
|
|
1313
|
+
value = value.length;
|
|
1314
|
+
value =
|
|
1315
|
+
"number" === typeof value
|
|
1316
|
+
? typeName + "(" + value + ")"
|
|
1317
|
+
: typeName;
|
|
1318
|
+
break;
|
|
1319
|
+
}
|
|
1230
1320
|
if ("Array" === typeName)
|
|
1231
1321
|
if (
|
|
1232
|
-
((propKey =
|
|
1233
|
-
|
|
1322
|
+
((propKey = 100 < value.length),
|
|
1323
|
+
(key = getArrayKind(value)),
|
|
1324
|
+
2 === key || 0 === key)
|
|
1234
1325
|
) {
|
|
1235
|
-
value = JSON.stringify(
|
|
1326
|
+
value = JSON.stringify(
|
|
1327
|
+
propKey ? value.slice(0, 100).concat("\u2026") : value
|
|
1328
|
+
);
|
|
1236
1329
|
break;
|
|
1237
|
-
} else if (3 ===
|
|
1330
|
+
} else if (3 === key) {
|
|
1238
1331
|
properties.push([
|
|
1239
1332
|
prefix + "\u00a0\u00a0".repeat(indent) + propertyName,
|
|
1240
1333
|
""
|
|
1241
1334
|
]);
|
|
1242
1335
|
for (
|
|
1243
1336
|
propertyName = 0;
|
|
1244
|
-
propertyName < value.length;
|
|
1337
|
+
propertyName < value.length && 100 > propertyName;
|
|
1245
1338
|
propertyName++
|
|
1246
1339
|
)
|
|
1247
1340
|
(typeName = value[propertyName]),
|
|
@@ -1252,6 +1345,14 @@
|
|
|
1252
1345
|
indent + 1,
|
|
1253
1346
|
prefix
|
|
1254
1347
|
);
|
|
1348
|
+
propKey &&
|
|
1349
|
+
addValueToProperties(
|
|
1350
|
+
(100).toString(),
|
|
1351
|
+
"\u2026",
|
|
1352
|
+
properties,
|
|
1353
|
+
indent + 1,
|
|
1354
|
+
prefix
|
|
1355
|
+
);
|
|
1255
1356
|
return;
|
|
1256
1357
|
}
|
|
1257
1358
|
if ("Promise" === typeName) {
|
|
@@ -1307,14 +1408,20 @@
|
|
|
1307
1408
|
return;
|
|
1308
1409
|
}
|
|
1309
1410
|
case "function":
|
|
1310
|
-
value =
|
|
1411
|
+
value = value.name;
|
|
1412
|
+
value =
|
|
1413
|
+
"" === value || "string" !== typeof value
|
|
1414
|
+
? "() => {}"
|
|
1415
|
+
: value + "() {}";
|
|
1311
1416
|
break;
|
|
1312
1417
|
case "string":
|
|
1313
1418
|
value =
|
|
1314
1419
|
"This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects." ===
|
|
1315
1420
|
value
|
|
1316
1421
|
? "\u2026"
|
|
1317
|
-
: JSON.stringify(
|
|
1422
|
+
: JSON.stringify(
|
|
1423
|
+
1024 <= value.length ? value.slice(0, 1023) + "\u2026" : value
|
|
1424
|
+
);
|
|
1318
1425
|
break;
|
|
1319
1426
|
case "undefined":
|
|
1320
1427
|
value = "undefined";
|
|
@@ -1333,6 +1440,8 @@
|
|
|
1333
1440
|
function getIODescription(value) {
|
|
1334
1441
|
try {
|
|
1335
1442
|
switch (typeof value) {
|
|
1443
|
+
case "function":
|
|
1444
|
+
return value.name || "";
|
|
1336
1445
|
case "object":
|
|
1337
1446
|
if (null === value) return "";
|
|
1338
1447
|
if (value instanceof Error) return String(value.message);
|
|
@@ -1496,6 +1605,7 @@
|
|
|
1496
1605
|
}
|
|
1497
1606
|
})
|
|
1498
1607
|
);
|
|
1608
|
+
performance.clearMeasures(entryName);
|
|
1499
1609
|
} else
|
|
1500
1610
|
console.timeStamp(
|
|
1501
1611
|
entryName,
|
|
@@ -1514,6 +1624,7 @@
|
|
|
1514
1624
|
var description = getIODescription(error),
|
|
1515
1625
|
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1516
1626
|
debugTask = ioInfo.debugTask;
|
|
1627
|
+
entryName = "\u200b" + entryName;
|
|
1517
1628
|
debugTask
|
|
1518
1629
|
? ((error = [
|
|
1519
1630
|
[
|
|
@@ -1529,7 +1640,7 @@
|
|
|
1529
1640
|
getIOLongName(ioInfo, description, ioInfo.env, rootEnv) +
|
|
1530
1641
|
" Rejected"),
|
|
1531
1642
|
debugTask.run(
|
|
1532
|
-
performance.measure.bind(performance,
|
|
1643
|
+
performance.measure.bind(performance, entryName, {
|
|
1533
1644
|
start: 0 > startTime ? 0 : startTime,
|
|
1534
1645
|
end: endTime,
|
|
1535
1646
|
detail: {
|
|
@@ -1541,7 +1652,8 @@
|
|
|
1541
1652
|
}
|
|
1542
1653
|
}
|
|
1543
1654
|
})
|
|
1544
|
-
)
|
|
1655
|
+
),
|
|
1656
|
+
performance.clearMeasures(entryName))
|
|
1545
1657
|
: console.timeStamp(
|
|
1546
1658
|
entryName,
|
|
1547
1659
|
0 > startTime ? 0 : startTime,
|
|
@@ -1560,6 +1672,7 @@
|
|
|
1560
1672
|
entryName = getIOShortName(ioInfo, description, ioInfo.env, rootEnv),
|
|
1561
1673
|
color = getIOColor(entryName),
|
|
1562
1674
|
debugTask = ioInfo.debugTask;
|
|
1675
|
+
entryName = "\u200b" + entryName;
|
|
1563
1676
|
if (debugTask) {
|
|
1564
1677
|
var properties = [];
|
|
1565
1678
|
"object" === typeof value && null !== value
|
|
@@ -1568,7 +1681,7 @@
|
|
|
1568
1681
|
addValueToProperties("Resolved", value, properties, 0, "");
|
|
1569
1682
|
ioInfo = getIOLongName(ioInfo, description, ioInfo.env, rootEnv);
|
|
1570
1683
|
debugTask.run(
|
|
1571
|
-
performance.measure.bind(performance,
|
|
1684
|
+
performance.measure.bind(performance, entryName, {
|
|
1572
1685
|
start: 0 > startTime ? 0 : startTime,
|
|
1573
1686
|
end: endTime,
|
|
1574
1687
|
detail: {
|
|
@@ -1581,6 +1694,7 @@
|
|
|
1581
1694
|
}
|
|
1582
1695
|
})
|
|
1583
1696
|
);
|
|
1697
|
+
performance.clearMeasures(entryName);
|
|
1584
1698
|
} else
|
|
1585
1699
|
console.timeStamp(
|
|
1586
1700
|
entryName,
|
|
@@ -1605,6 +1719,7 @@
|
|
|
1605
1719
|
this._children = [];
|
|
1606
1720
|
this._debugChunk = null;
|
|
1607
1721
|
this._debugInfo = [];
|
|
1722
|
+
this._receivedDebugInfo = null;
|
|
1608
1723
|
}
|
|
1609
1724
|
function unwrapWeakResponse(weakResponse) {
|
|
1610
1725
|
weakResponse = weakResponse.weak.deref();
|
|
@@ -1629,6 +1744,7 @@
|
|
|
1629
1744
|
case "fulfilled":
|
|
1630
1745
|
return chunk.value;
|
|
1631
1746
|
case "pending":
|
|
1747
|
+
case "pending_weak":
|
|
1632
1748
|
case "blocked":
|
|
1633
1749
|
case "halted":
|
|
1634
1750
|
throw chunk;
|
|
@@ -1657,6 +1773,23 @@
|
|
|
1657
1773
|
100
|
|
1658
1774
|
)));
|
|
1659
1775
|
}
|
|
1776
|
+
function haltChunk(response, chunk) {
|
|
1777
|
+
releasePendingChunk(response, chunk);
|
|
1778
|
+
chunk.status = "halted";
|
|
1779
|
+
chunk.value = null;
|
|
1780
|
+
chunk.reason = null;
|
|
1781
|
+
}
|
|
1782
|
+
function filterDebugInfo(response, value) {
|
|
1783
|
+
if (null !== response._debugEndTime) {
|
|
1784
|
+
response = response._debugEndTime - performance.timeOrigin;
|
|
1785
|
+
for (var debugInfo = [], i = 0; i < value._debugInfo.length; i++) {
|
|
1786
|
+
var info = value._debugInfo[i];
|
|
1787
|
+
if ("number" === typeof info.time && info.time > response) break;
|
|
1788
|
+
debugInfo.push(info);
|
|
1789
|
+
}
|
|
1790
|
+
value._debugInfo = debugInfo;
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1660
1793
|
function moveDebugInfoFromChunkToInnerValue(chunk, value) {
|
|
1661
1794
|
value = resolveLazy(value);
|
|
1662
1795
|
"object" !== typeof value ||
|
|
@@ -1668,28 +1801,30 @@
|
|
|
1668
1801
|
((chunk = chunk._debugInfo.splice(0)),
|
|
1669
1802
|
isArrayImpl(value._debugInfo)
|
|
1670
1803
|
? value._debugInfo.unshift.apply(value._debugInfo, chunk)
|
|
1671
|
-
: Object.
|
|
1804
|
+
: Object.isFrozen(value) ||
|
|
1805
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
1672
1806
|
configurable: !1,
|
|
1673
1807
|
enumerable: !1,
|
|
1674
1808
|
writable: !0,
|
|
1675
1809
|
value: chunk
|
|
1676
1810
|
}));
|
|
1677
1811
|
}
|
|
1678
|
-
function wakeChunk(listeners, value, chunk) {
|
|
1812
|
+
function wakeChunk(response, listeners, value, chunk) {
|
|
1679
1813
|
for (var i = 0; i < listeners.length; i++) {
|
|
1680
1814
|
var listener = listeners[i];
|
|
1681
1815
|
"function" === typeof listener
|
|
1682
1816
|
? listener(value)
|
|
1683
|
-
: fulfillReference(listener, value, chunk);
|
|
1817
|
+
: fulfillReference(response, listener, value, chunk);
|
|
1684
1818
|
}
|
|
1819
|
+
filterDebugInfo(response, chunk);
|
|
1685
1820
|
moveDebugInfoFromChunkToInnerValue(chunk, value);
|
|
1686
1821
|
}
|
|
1687
|
-
function rejectChunk(listeners, error) {
|
|
1822
|
+
function rejectChunk(response, listeners, error) {
|
|
1688
1823
|
for (var i = 0; i < listeners.length; i++) {
|
|
1689
1824
|
var listener = listeners[i];
|
|
1690
1825
|
"function" === typeof listener
|
|
1691
1826
|
? listener(error)
|
|
1692
|
-
: rejectReference(listener, error);
|
|
1827
|
+
: rejectReference(response, listener.handler, error);
|
|
1693
1828
|
}
|
|
1694
1829
|
}
|
|
1695
1830
|
function resolveBlockedCycle(resolvedChunk, reference) {
|
|
@@ -1713,10 +1848,15 @@
|
|
|
1713
1848
|
}
|
|
1714
1849
|
return null;
|
|
1715
1850
|
}
|
|
1716
|
-
function wakeChunkIfInitialized(
|
|
1851
|
+
function wakeChunkIfInitialized(
|
|
1852
|
+
response,
|
|
1853
|
+
chunk,
|
|
1854
|
+
resolveListeners,
|
|
1855
|
+
rejectListeners
|
|
1856
|
+
) {
|
|
1717
1857
|
switch (chunk.status) {
|
|
1718
1858
|
case "fulfilled":
|
|
1719
|
-
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
1859
|
+
wakeChunk(response, resolveListeners, chunk.value, chunk);
|
|
1720
1860
|
break;
|
|
1721
1861
|
case "blocked":
|
|
1722
1862
|
for (var i = 0; i < resolveListeners.length; i++) {
|
|
@@ -1725,7 +1865,12 @@
|
|
|
1725
1865
|
var cyclicHandler = resolveBlockedCycle(chunk, listener);
|
|
1726
1866
|
if (null !== cyclicHandler)
|
|
1727
1867
|
switch (
|
|
1728
|
-
(fulfillReference(
|
|
1868
|
+
(fulfillReference(
|
|
1869
|
+
response,
|
|
1870
|
+
listener,
|
|
1871
|
+
cyclicHandler.value,
|
|
1872
|
+
chunk
|
|
1873
|
+
),
|
|
1729
1874
|
resolveListeners.splice(i, 1),
|
|
1730
1875
|
i--,
|
|
1731
1876
|
null !== rejectListeners &&
|
|
@@ -1734,19 +1879,19 @@
|
|
|
1734
1879
|
chunk.status)
|
|
1735
1880
|
) {
|
|
1736
1881
|
case "fulfilled":
|
|
1737
|
-
wakeChunk(resolveListeners, chunk.value, chunk);
|
|
1882
|
+
wakeChunk(response, resolveListeners, chunk.value, chunk);
|
|
1738
1883
|
return;
|
|
1739
1884
|
case "rejected":
|
|
1740
1885
|
null !== rejectListeners &&
|
|
1741
|
-
rejectChunk(rejectListeners, chunk.reason);
|
|
1886
|
+
rejectChunk(response, rejectListeners, chunk.reason);
|
|
1742
1887
|
return;
|
|
1743
1888
|
}
|
|
1744
1889
|
}
|
|
1745
1890
|
}
|
|
1746
1891
|
case "pending":
|
|
1747
1892
|
if (chunk.value)
|
|
1748
|
-
for (
|
|
1749
|
-
chunk.value.push(resolveListeners[
|
|
1893
|
+
for (response = 0; response < resolveListeners.length; response++)
|
|
1894
|
+
chunk.value.push(resolveListeners[response]);
|
|
1750
1895
|
else chunk.value = resolveListeners;
|
|
1751
1896
|
if (chunk.reason) {
|
|
1752
1897
|
if (rejectListeners)
|
|
@@ -1759,16 +1904,24 @@
|
|
|
1759
1904
|
} else chunk.reason = rejectListeners;
|
|
1760
1905
|
break;
|
|
1761
1906
|
case "rejected":
|
|
1762
|
-
rejectListeners &&
|
|
1907
|
+
rejectListeners &&
|
|
1908
|
+
rejectChunk(response, rejectListeners, chunk.reason);
|
|
1763
1909
|
}
|
|
1764
1910
|
}
|
|
1765
1911
|
function triggerErrorOnChunk(response, chunk, error) {
|
|
1766
|
-
if (
|
|
1912
|
+
if (
|
|
1913
|
+
"pending" !== chunk.status &&
|
|
1914
|
+
"pending_weak" !== chunk.status &&
|
|
1915
|
+
"blocked" !== chunk.status
|
|
1916
|
+
)
|
|
1767
1917
|
chunk.reason.error(error);
|
|
1768
1918
|
else {
|
|
1769
1919
|
releasePendingChunk(response, chunk);
|
|
1770
1920
|
var listeners = chunk.reason;
|
|
1771
|
-
if (
|
|
1921
|
+
if (
|
|
1922
|
+
("pending" === chunk.status || "pending_weak" === chunk.status) &&
|
|
1923
|
+
null != chunk._debugChunk
|
|
1924
|
+
) {
|
|
1772
1925
|
var prevHandler = initializingHandler,
|
|
1773
1926
|
prevChunk = initializingChunk;
|
|
1774
1927
|
initializingHandler = null;
|
|
@@ -1785,7 +1938,21 @@
|
|
|
1785
1938
|
}
|
|
1786
1939
|
chunk.status = "rejected";
|
|
1787
1940
|
chunk.reason = error;
|
|
1788
|
-
null !==
|
|
1941
|
+
a: if (null !== response._debugEndTime)
|
|
1942
|
+
for (
|
|
1943
|
+
prevHandler = response._debugEndTime - performance.timeOrigin,
|
|
1944
|
+
chunk = chunk._debugInfo,
|
|
1945
|
+
prevChunk = 0;
|
|
1946
|
+
prevChunk < chunk.length;
|
|
1947
|
+
prevChunk++
|
|
1948
|
+
) {
|
|
1949
|
+
var info = chunk[prevChunk];
|
|
1950
|
+
if ("number" === typeof info.time && info.time > prevHandler) {
|
|
1951
|
+
chunk.length = prevChunk;
|
|
1952
|
+
break a;
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
null !== listeners && rejectChunk(response, listeners, error);
|
|
1789
1956
|
}
|
|
1790
1957
|
}
|
|
1791
1958
|
function createResolvedModelChunk(response, value) {
|
|
@@ -1810,7 +1977,8 @@
|
|
|
1810
1977
|
);
|
|
1811
1978
|
}
|
|
1812
1979
|
function resolveModelChunk(response, chunk, value) {
|
|
1813
|
-
if ("pending" !== chunk.status
|
|
1980
|
+
if ("pending" !== chunk.status && "pending_weak" !== chunk.status)
|
|
1981
|
+
chunk.reason.enqueueModel(value);
|
|
1814
1982
|
else {
|
|
1815
1983
|
releasePendingChunk(response, chunk);
|
|
1816
1984
|
var resolveListeners = chunk.value,
|
|
@@ -1820,28 +1988,44 @@
|
|
|
1820
1988
|
chunk.reason = response;
|
|
1821
1989
|
null !== resolveListeners &&
|
|
1822
1990
|
(initializeModelChunk(chunk),
|
|
1823
|
-
wakeChunkIfInitialized(
|
|
1991
|
+
wakeChunkIfInitialized(
|
|
1992
|
+
response,
|
|
1993
|
+
chunk,
|
|
1994
|
+
resolveListeners,
|
|
1995
|
+
rejectListeners
|
|
1996
|
+
));
|
|
1824
1997
|
}
|
|
1825
1998
|
}
|
|
1826
1999
|
function resolveModuleChunk(response, chunk, value) {
|
|
1827
|
-
if (
|
|
2000
|
+
if (
|
|
2001
|
+
"pending" === chunk.status ||
|
|
2002
|
+
"pending_weak" === chunk.status ||
|
|
2003
|
+
"blocked" === chunk.status
|
|
2004
|
+
) {
|
|
1828
2005
|
releasePendingChunk(response, chunk);
|
|
1829
|
-
|
|
1830
|
-
|
|
2006
|
+
var resolveListeners = chunk.value,
|
|
2007
|
+
rejectListeners = chunk.reason;
|
|
1831
2008
|
chunk.status = "resolved_module";
|
|
1832
2009
|
chunk.value = value;
|
|
1833
2010
|
chunk.reason = null;
|
|
1834
2011
|
value = [];
|
|
1835
2012
|
null !== value && chunk._debugInfo.push.apply(chunk._debugInfo, value);
|
|
1836
|
-
null !==
|
|
2013
|
+
null !== resolveListeners &&
|
|
1837
2014
|
(initializeModuleChunk(chunk),
|
|
1838
|
-
wakeChunkIfInitialized(
|
|
2015
|
+
wakeChunkIfInitialized(
|
|
2016
|
+
response,
|
|
2017
|
+
chunk,
|
|
2018
|
+
resolveListeners,
|
|
2019
|
+
rejectListeners
|
|
2020
|
+
));
|
|
1839
2021
|
}
|
|
1840
2022
|
}
|
|
1841
2023
|
function initializeDebugChunk(response, chunk) {
|
|
1842
2024
|
var debugChunk = chunk._debugChunk;
|
|
1843
2025
|
if (null !== debugChunk) {
|
|
1844
|
-
var debugInfo = chunk._debugInfo
|
|
2026
|
+
var debugInfo = chunk._debugInfo,
|
|
2027
|
+
prevIsInitializingDebugInfo = isInitializingDebugInfo;
|
|
2028
|
+
isInitializingDebugInfo = !0;
|
|
1845
2029
|
try {
|
|
1846
2030
|
if ("resolved_model" === debugChunk.status) {
|
|
1847
2031
|
for (
|
|
@@ -1860,6 +2044,7 @@
|
|
|
1860
2044
|
break;
|
|
1861
2045
|
case "blocked":
|
|
1862
2046
|
case "pending":
|
|
2047
|
+
case "pending_weak":
|
|
1863
2048
|
waitForReference(
|
|
1864
2049
|
debugChunk,
|
|
1865
2050
|
debugInfo,
|
|
@@ -1879,6 +2064,7 @@
|
|
|
1879
2064
|
break;
|
|
1880
2065
|
case "blocked":
|
|
1881
2066
|
case "pending":
|
|
2067
|
+
case "pending_weak":
|
|
1882
2068
|
waitForReference(
|
|
1883
2069
|
debugChunk,
|
|
1884
2070
|
{},
|
|
@@ -1894,6 +2080,8 @@
|
|
|
1894
2080
|
}
|
|
1895
2081
|
} catch (error) {
|
|
1896
2082
|
triggerErrorOnChunk(response, chunk, error);
|
|
2083
|
+
} finally {
|
|
2084
|
+
isInitializingDebugInfo = prevIsInitializingDebugInfo;
|
|
1897
2085
|
}
|
|
1898
2086
|
}
|
|
1899
2087
|
}
|
|
@@ -1909,30 +2097,52 @@
|
|
|
1909
2097
|
initializingChunk = chunk;
|
|
1910
2098
|
initializeDebugChunk(response, chunk);
|
|
1911
2099
|
try {
|
|
1912
|
-
var value =
|
|
1913
|
-
|
|
1914
|
-
if (null !==
|
|
2100
|
+
var value = parseModel(response, resolvedModel);
|
|
2101
|
+
resolvedModel = initializingHandler;
|
|
2102
|
+
if (null !== resolvedModel) {
|
|
2103
|
+
if (resolvedModel.errored) {
|
|
2104
|
+
"blocked" === chunk.status &&
|
|
2105
|
+
triggerErrorOnChunk(response, chunk, resolvedModel.reason);
|
|
2106
|
+
return;
|
|
2107
|
+
}
|
|
2108
|
+
resolvedModel.value = value;
|
|
2109
|
+
resolvedModel.chunk = chunk;
|
|
2110
|
+
}
|
|
2111
|
+
var listeners = chunk.value,
|
|
2112
|
+
rejectListeners = chunk.reason;
|
|
2113
|
+
chunk.value = null;
|
|
2114
|
+
chunk.reason = null;
|
|
2115
|
+
if (null !== listeners) {
|
|
1915
2116
|
for (
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
2117
|
+
var cyclic = null, deferred = null, i = 0;
|
|
2118
|
+
i < listeners.length;
|
|
2119
|
+
i++
|
|
1919
2120
|
) {
|
|
1920
|
-
var listener =
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
2121
|
+
var listener = listeners[i];
|
|
2122
|
+
if (
|
|
2123
|
+
"function" !== typeof listener &&
|
|
2124
|
+
null !== resolveBlockedCycle(chunk, listener)
|
|
2125
|
+
) {
|
|
2126
|
+
if (
|
|
2127
|
+
(null === cyclic && (cyclic = []),
|
|
2128
|
+
cyclic.push(listener),
|
|
2129
|
+
null !== rejectListeners)
|
|
2130
|
+
) {
|
|
2131
|
+
var rejectionIdx = rejectListeners.indexOf(listener);
|
|
2132
|
+
-1 !== rejectionIdx && rejectListeners.splice(rejectionIdx, 1);
|
|
2133
|
+
}
|
|
2134
|
+
} else
|
|
2135
|
+
null === deferred && (deferred = []), deferred.push(listener);
|
|
1931
2136
|
}
|
|
2137
|
+
null !== deferred &&
|
|
2138
|
+
((chunk.value = deferred), (chunk.reason = rejectListeners));
|
|
2139
|
+
if (null !== cyclic)
|
|
2140
|
+
for (listeners = 0; listeners < cyclic.length; listeners++)
|
|
2141
|
+
fulfillReference(response, cyclic[listeners], value, chunk);
|
|
1932
2142
|
}
|
|
1933
|
-
chunk.status
|
|
1934
|
-
|
|
1935
|
-
|
|
2143
|
+
"blocked" !== chunk.status ||
|
|
2144
|
+
(null !== resolvedModel && 0 < resolvedModel.deps) ||
|
|
2145
|
+
initializeBlockedChunk(response, chunk, value, null);
|
|
1936
2146
|
} catch (error) {
|
|
1937
2147
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1938
2148
|
} finally {
|
|
@@ -1944,6 +2154,7 @@
|
|
|
1944
2154
|
var value = requireModule(chunk.value);
|
|
1945
2155
|
chunk.status = "fulfilled";
|
|
1946
2156
|
chunk.value = value;
|
|
2157
|
+
chunk.reason = null;
|
|
1947
2158
|
} catch (error) {
|
|
1948
2159
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
1949
2160
|
}
|
|
@@ -1979,7 +2190,7 @@
|
|
|
1979
2190
|
null !== type &&
|
|
1980
2191
|
type.$$typeof === REACT_LAZY_TYPE
|
|
1981
2192
|
)
|
|
1982
|
-
return type.
|
|
2193
|
+
return type._payload instanceof ReactPromise ? '"use client"' : "<...>";
|
|
1983
2194
|
try {
|
|
1984
2195
|
var name = getComponentNameFromType(type);
|
|
1985
2196
|
return name ? "<" + name + ">" : "<...>";
|
|
@@ -2025,23 +2236,30 @@
|
|
|
2025
2236
|
element._debugTask = normalizedStackTrace;
|
|
2026
2237
|
null !== owner && initializeFakeStack(response, owner);
|
|
2027
2238
|
null !== lazyNode &&
|
|
2028
|
-
(lazyNode._store &&
|
|
2029
|
-
lazyNode._store.validated &&
|
|
2030
|
-
!element._store.validated &&
|
|
2031
|
-
(element._store.validated = lazyNode._store.validated),
|
|
2032
2239
|
"fulfilled" === lazyNode._payload.status &&
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2240
|
+
lazyNode._debugInfo &&
|
|
2241
|
+
((response = lazyNode._debugInfo.splice(0)),
|
|
2242
|
+
element._debugInfo
|
|
2243
|
+
? element._debugInfo.unshift.apply(element._debugInfo, response)
|
|
2244
|
+
: Object.defineProperty(element, "_debugInfo", {
|
|
2245
|
+
configurable: !1,
|
|
2246
|
+
enumerable: !1,
|
|
2247
|
+
writable: !0,
|
|
2248
|
+
value: response
|
|
2249
|
+
}));
|
|
2043
2250
|
Object.freeze(element.props);
|
|
2044
2251
|
}
|
|
2252
|
+
function readChunkAndTransferValidation(store, payload) {
|
|
2253
|
+
payload = readChunk(payload);
|
|
2254
|
+
if (store.validated && "object" === typeof payload && null !== payload) {
|
|
2255
|
+
var $$typeof = payload.$$typeof;
|
|
2256
|
+
($$typeof !== REACT_ELEMENT_TYPE && $$typeof !== REACT_LAZY_TYPE) ||
|
|
2257
|
+
!($$typeof = payload._store) ||
|
|
2258
|
+
$$typeof.validated ||
|
|
2259
|
+
($$typeof.validated = store.validated);
|
|
2260
|
+
}
|
|
2261
|
+
return payload;
|
|
2262
|
+
}
|
|
2045
2263
|
function createLazyChunkWrapper(chunk, validated) {
|
|
2046
2264
|
var lazyType = {
|
|
2047
2265
|
$$typeof: REACT_LAZY_TYPE,
|
|
@@ -2049,7 +2267,9 @@
|
|
|
2049
2267
|
_init: readChunk
|
|
2050
2268
|
};
|
|
2051
2269
|
lazyType._debugInfo = chunk._debugInfo;
|
|
2052
|
-
|
|
2270
|
+
chunk = { validated: validated };
|
|
2271
|
+
lazyType._store = chunk;
|
|
2272
|
+
lazyType._init = readChunkAndTransferValidation.bind(null, chunk);
|
|
2053
2273
|
return lazyType;
|
|
2054
2274
|
}
|
|
2055
2275
|
function getChunk(response, id) {
|
|
@@ -2057,14 +2277,39 @@
|
|
|
2057
2277
|
chunk = chunks.get(id);
|
|
2058
2278
|
chunk ||
|
|
2059
2279
|
((chunk = response._closed
|
|
2060
|
-
?
|
|
2280
|
+
? response._allowPartialStream
|
|
2281
|
+
? new ReactPromise("halted", null, null)
|
|
2282
|
+
: new ReactPromise("rejected", null, response._closedReason)
|
|
2061
2283
|
: createPendingChunk(response)),
|
|
2062
2284
|
chunks.set(id, chunk));
|
|
2063
2285
|
return chunk;
|
|
2064
2286
|
}
|
|
2065
|
-
function
|
|
2066
|
-
var
|
|
2067
|
-
|
|
2287
|
+
function initializeBlockedChunk(response, chunk, value, reason) {
|
|
2288
|
+
var resolveListeners = chunk.value;
|
|
2289
|
+
chunk._receivedDebugInfo = null;
|
|
2290
|
+
chunk.status = "fulfilled";
|
|
2291
|
+
chunk.value = value;
|
|
2292
|
+
chunk.reason = reason;
|
|
2293
|
+
null !== resolveListeners
|
|
2294
|
+
? wakeChunk(response, resolveListeners, value, chunk)
|
|
2295
|
+
: (filterDebugInfo(response, chunk),
|
|
2296
|
+
moveDebugInfoFromChunkToInnerValue(chunk, value));
|
|
2297
|
+
}
|
|
2298
|
+
function initializeChunkIfUnblocked(response, handler) {
|
|
2299
|
+
if (0 === handler.deps && !handler.errored) {
|
|
2300
|
+
var chunk = handler.chunk;
|
|
2301
|
+
null !== chunk &&
|
|
2302
|
+
"blocked" === chunk.status &&
|
|
2303
|
+
initializeBlockedChunk(
|
|
2304
|
+
response,
|
|
2305
|
+
chunk,
|
|
2306
|
+
handler.value,
|
|
2307
|
+
handler.reason
|
|
2308
|
+
);
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
function fulfillReference(response, reference, value, fulfilledChunk) {
|
|
2312
|
+
var handler = reference.handler,
|
|
2068
2313
|
parentObject = reference.parentObject,
|
|
2069
2314
|
key = reference.key,
|
|
2070
2315
|
map = reference.map,
|
|
@@ -2102,6 +2347,7 @@
|
|
|
2102
2347
|
continue;
|
|
2103
2348
|
}
|
|
2104
2349
|
case "pending":
|
|
2350
|
+
case "pending_weak":
|
|
2105
2351
|
path.splice(0, i - 1);
|
|
2106
2352
|
null === referencedChunk.value
|
|
2107
2353
|
? (referencedChunk.value = [reference])
|
|
@@ -2113,7 +2359,11 @@
|
|
|
2113
2359
|
case "halted":
|
|
2114
2360
|
return;
|
|
2115
2361
|
default:
|
|
2116
|
-
rejectReference(
|
|
2362
|
+
rejectReference(
|
|
2363
|
+
response,
|
|
2364
|
+
reference.handler,
|
|
2365
|
+
referencedChunk.reason
|
|
2366
|
+
);
|
|
2117
2367
|
return;
|
|
2118
2368
|
}
|
|
2119
2369
|
}
|
|
@@ -2164,7 +2414,8 @@
|
|
|
2164
2414
|
var element = handler.value;
|
|
2165
2415
|
switch (key) {
|
|
2166
2416
|
case "3":
|
|
2167
|
-
|
|
2417
|
+
reference.isDebug ||
|
|
2418
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2168
2419
|
element.props = mappedValue;
|
|
2169
2420
|
break;
|
|
2170
2421
|
case "4":
|
|
@@ -2174,29 +2425,20 @@
|
|
|
2174
2425
|
element._debugStack = mappedValue;
|
|
2175
2426
|
break;
|
|
2176
2427
|
default:
|
|
2177
|
-
|
|
2428
|
+
reference.isDebug ||
|
|
2429
|
+
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2178
2430
|
}
|
|
2179
2431
|
} else
|
|
2180
2432
|
reference.isDebug ||
|
|
2181
2433
|
transferReferencedDebugInfo(handler.chunk, fulfilledChunk);
|
|
2182
2434
|
} catch (error) {
|
|
2183
|
-
rejectReference(reference, error);
|
|
2435
|
+
rejectReference(response, reference.handler, error);
|
|
2184
2436
|
return;
|
|
2185
2437
|
}
|
|
2186
2438
|
handler.deps--;
|
|
2187
|
-
|
|
2188
|
-
((reference = handler.chunk),
|
|
2189
|
-
null !== reference &&
|
|
2190
|
-
"blocked" === reference.status &&
|
|
2191
|
-
((value = reference.value),
|
|
2192
|
-
(reference.status = "fulfilled"),
|
|
2193
|
-
(reference.value = handler.value),
|
|
2194
|
-
(reference.reason = handler.reason),
|
|
2195
|
-
null !== value && wakeChunk(value, handler.value, reference)));
|
|
2439
|
+
initializeChunkIfUnblocked(response, handler);
|
|
2196
2440
|
}
|
|
2197
|
-
function rejectReference(
|
|
2198
|
-
var handler = reference.handler;
|
|
2199
|
-
reference = reference.response;
|
|
2441
|
+
function rejectReference(response, handler, error) {
|
|
2200
2442
|
if (!handler.errored) {
|
|
2201
2443
|
var blockedValue = handler.value;
|
|
2202
2444
|
handler.errored = !0;
|
|
@@ -2218,7 +2460,7 @@
|
|
|
2218
2460
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2219
2461
|
handler._debugInfo.push(erroredComponent);
|
|
2220
2462
|
}
|
|
2221
|
-
triggerErrorOnChunk(
|
|
2463
|
+
triggerErrorOnChunk(response, handler, error);
|
|
2222
2464
|
}
|
|
2223
2465
|
}
|
|
2224
2466
|
}
|
|
@@ -2241,21 +2483,19 @@
|
|
|
2241
2483
|
)
|
|
2242
2484
|
)
|
|
2243
2485
|
return null;
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
};
|
|
2486
|
+
initializingHandler
|
|
2487
|
+
? ((response = initializingHandler), response.deps++)
|
|
2488
|
+
: (response = initializingHandler =
|
|
2489
|
+
{
|
|
2490
|
+
parent: null,
|
|
2491
|
+
chunk: null,
|
|
2492
|
+
value: null,
|
|
2493
|
+
reason: null,
|
|
2494
|
+
deps: 1,
|
|
2495
|
+
errored: !1
|
|
2496
|
+
});
|
|
2256
2497
|
parentObject = {
|
|
2257
|
-
|
|
2258
|
-
handler: handler,
|
|
2498
|
+
handler: response,
|
|
2259
2499
|
parentObject: parentObject,
|
|
2260
2500
|
key: key,
|
|
2261
2501
|
map: map,
|
|
@@ -2341,25 +2581,20 @@
|
|
|
2341
2581
|
boundArgs._owner = resolvedValue;
|
|
2342
2582
|
}
|
|
2343
2583
|
handler.deps--;
|
|
2344
|
-
|
|
2345
|
-
((resolvedValue = handler.chunk),
|
|
2346
|
-
null !== resolvedValue &&
|
|
2347
|
-
"blocked" === resolvedValue.status &&
|
|
2348
|
-
((boundArgs = resolvedValue.value),
|
|
2349
|
-
(resolvedValue.status = "fulfilled"),
|
|
2350
|
-
(resolvedValue.value = handler.value),
|
|
2351
|
-
(resolvedValue.reason = null),
|
|
2352
|
-
null !== boundArgs &&
|
|
2353
|
-
wakeChunk(boundArgs, handler.value, resolvedValue)));
|
|
2584
|
+
initializeChunkIfUnblocked(response, handler);
|
|
2354
2585
|
},
|
|
2355
2586
|
function (error) {
|
|
2356
2587
|
if (!handler.errored) {
|
|
2357
|
-
var blockedValue = handler.value
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2588
|
+
var blockedValue = handler.value,
|
|
2589
|
+
erroredHandler = handler;
|
|
2590
|
+
erroredHandler.errored = !0;
|
|
2591
|
+
erroredHandler.value = null;
|
|
2592
|
+
erroredHandler.reason = error;
|
|
2593
|
+
erroredHandler = handler.chunk;
|
|
2594
|
+
if (
|
|
2595
|
+
null !== erroredHandler &&
|
|
2596
|
+
"blocked" === erroredHandler.status
|
|
2597
|
+
) {
|
|
2363
2598
|
if (
|
|
2364
2599
|
"object" === typeof blockedValue &&
|
|
2365
2600
|
null !== blockedValue &&
|
|
@@ -2372,9 +2607,9 @@
|
|
|
2372
2607
|
erroredComponent.debugStack = blockedValue._debugStack;
|
|
2373
2608
|
supportsCreateTask &&
|
|
2374
2609
|
(erroredComponent.debugTask = blockedValue._debugTask);
|
|
2375
|
-
|
|
2610
|
+
erroredHandler._debugInfo.push(erroredComponent);
|
|
2376
2611
|
}
|
|
2377
|
-
triggerErrorOnChunk(response,
|
|
2612
|
+
triggerErrorOnChunk(response, erroredHandler, error);
|
|
2378
2613
|
}
|
|
2379
2614
|
}
|
|
2380
2615
|
}
|
|
@@ -2395,33 +2630,46 @@
|
|
|
2395
2630
|
}
|
|
2396
2631
|
return value;
|
|
2397
2632
|
}
|
|
2398
|
-
function transferReferencedDebugInfo(
|
|
2399
|
-
if (null !==
|
|
2633
|
+
function transferReferencedDebugInfo(receivingChunk, referencedChunk) {
|
|
2634
|
+
if (null !== receivingChunk) {
|
|
2400
2635
|
referencedChunk = referencedChunk._debugInfo;
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2636
|
+
var receivingDebugInfo = receivingChunk._debugInfo,
|
|
2637
|
+
receivedDebugInfo = receivingChunk._receivedDebugInfo;
|
|
2638
|
+
null === receivedDebugInfo &&
|
|
2639
|
+
(receivedDebugInfo = receivingChunk._receivedDebugInfo = new Set());
|
|
2640
|
+
for (
|
|
2641
|
+
receivingChunk = 0;
|
|
2642
|
+
receivingChunk < referencedChunk.length;
|
|
2643
|
+
++receivingChunk
|
|
2644
|
+
) {
|
|
2645
|
+
var debugInfoEntry = referencedChunk[receivingChunk];
|
|
2646
|
+
null != debugInfoEntry.name ||
|
|
2647
|
+
receivedDebugInfo.has(debugInfoEntry) ||
|
|
2648
|
+
(receivedDebugInfo.add(debugInfoEntry),
|
|
2649
|
+
receivingDebugInfo.push(debugInfoEntry));
|
|
2405
2650
|
}
|
|
2406
2651
|
}
|
|
2407
2652
|
}
|
|
2408
2653
|
function getOutlinedModel(response, reference, parentObject, key, map) {
|
|
2409
|
-
var
|
|
2410
|
-
reference =
|
|
2411
|
-
|
|
2654
|
+
var id = parseInt(reference, 16);
|
|
2655
|
+
reference =
|
|
2656
|
+
-1 === reference.indexOf(":")
|
|
2657
|
+
? EMPTY_REFERENCE_PATH
|
|
2658
|
+
: reference.split(":");
|
|
2659
|
+
id = getChunk(response, id);
|
|
2412
2660
|
null !== initializingChunk &&
|
|
2413
2661
|
isArrayImpl(initializingChunk._children) &&
|
|
2414
|
-
initializingChunk._children.push(
|
|
2415
|
-
switch (
|
|
2662
|
+
initializingChunk._children.push(id);
|
|
2663
|
+
switch (id.status) {
|
|
2416
2664
|
case "resolved_model":
|
|
2417
|
-
initializeModelChunk(
|
|
2665
|
+
initializeModelChunk(id);
|
|
2418
2666
|
break;
|
|
2419
2667
|
case "resolved_module":
|
|
2420
|
-
initializeModuleChunk(
|
|
2668
|
+
initializeModuleChunk(id);
|
|
2421
2669
|
}
|
|
2422
|
-
switch (
|
|
2670
|
+
switch (id.status) {
|
|
2423
2671
|
case "fulfilled":
|
|
2424
|
-
for (var value =
|
|
2672
|
+
for (var value = id.value, i = 1; i < reference.length; i++) {
|
|
2425
2673
|
for (
|
|
2426
2674
|
;
|
|
2427
2675
|
"object" === typeof value &&
|
|
@@ -2443,14 +2691,15 @@
|
|
|
2443
2691
|
break;
|
|
2444
2692
|
case "blocked":
|
|
2445
2693
|
case "pending":
|
|
2694
|
+
case "pending_weak":
|
|
2446
2695
|
return waitForReference(
|
|
2447
2696
|
value,
|
|
2448
2697
|
parentObject,
|
|
2449
2698
|
key,
|
|
2450
2699
|
response,
|
|
2451
2700
|
map,
|
|
2452
|
-
|
|
2453
|
-
|
|
2701
|
+
reference.slice(i - 1),
|
|
2702
|
+
isInitializingDebugInfo
|
|
2454
2703
|
);
|
|
2455
2704
|
case "halted":
|
|
2456
2705
|
return (
|
|
@@ -2470,9 +2719,10 @@
|
|
|
2470
2719
|
default:
|
|
2471
2720
|
return (
|
|
2472
2721
|
initializingHandler
|
|
2473
|
-
? ((
|
|
2474
|
-
(
|
|
2475
|
-
(
|
|
2722
|
+
? ((parentObject = initializingHandler),
|
|
2723
|
+
(parentObject.errored = !0),
|
|
2724
|
+
(parentObject.value = null),
|
|
2725
|
+
(parentObject.reason = value.reason))
|
|
2476
2726
|
: (initializingHandler = {
|
|
2477
2727
|
parent: null,
|
|
2478
2728
|
chunk: null,
|
|
@@ -2485,7 +2735,16 @@
|
|
|
2485
2735
|
);
|
|
2486
2736
|
}
|
|
2487
2737
|
}
|
|
2488
|
-
|
|
2738
|
+
var name = reference[i];
|
|
2739
|
+
if (
|
|
2740
|
+
"object" !== typeof value ||
|
|
2741
|
+
null === value ||
|
|
2742
|
+
(getPrototypeOf(value) !== ObjectPrototype &&
|
|
2743
|
+
getPrototypeOf(value) !== ArrayPrototype) ||
|
|
2744
|
+
!hasOwnProperty.call(value, name)
|
|
2745
|
+
)
|
|
2746
|
+
throw Error("Invalid reference.");
|
|
2747
|
+
value = value[name];
|
|
2489
2748
|
}
|
|
2490
2749
|
for (
|
|
2491
2750
|
;
|
|
@@ -2494,36 +2753,40 @@
|
|
|
2494
2753
|
value.$$typeof === REACT_LAZY_TYPE;
|
|
2495
2754
|
|
|
2496
2755
|
) {
|
|
2497
|
-
|
|
2498
|
-
switch (
|
|
2756
|
+
reference = value._payload;
|
|
2757
|
+
switch (reference.status) {
|
|
2499
2758
|
case "resolved_model":
|
|
2500
|
-
initializeModelChunk(
|
|
2759
|
+
initializeModelChunk(reference);
|
|
2501
2760
|
break;
|
|
2502
2761
|
case "resolved_module":
|
|
2503
|
-
initializeModuleChunk(
|
|
2762
|
+
initializeModuleChunk(reference);
|
|
2504
2763
|
}
|
|
2505
|
-
switch (
|
|
2764
|
+
switch (reference.status) {
|
|
2506
2765
|
case "fulfilled":
|
|
2507
|
-
value =
|
|
2766
|
+
value = reference.value;
|
|
2508
2767
|
continue;
|
|
2509
2768
|
}
|
|
2510
2769
|
break;
|
|
2511
2770
|
}
|
|
2512
2771
|
response = map(response, value, parentObject, key);
|
|
2513
|
-
(
|
|
2514
|
-
|
|
2515
|
-
|
|
2772
|
+
if (
|
|
2773
|
+
parentObject[0] !== REACT_ELEMENT_TYPE ||
|
|
2774
|
+
("4" !== key && "5" !== key)
|
|
2775
|
+
)
|
|
2776
|
+
isInitializingDebugInfo ||
|
|
2777
|
+
transferReferencedDebugInfo(initializingChunk, id);
|
|
2516
2778
|
return response;
|
|
2517
2779
|
case "pending":
|
|
2780
|
+
case "pending_weak":
|
|
2518
2781
|
case "blocked":
|
|
2519
2782
|
return waitForReference(
|
|
2520
|
-
|
|
2783
|
+
id,
|
|
2521
2784
|
parentObject,
|
|
2522
2785
|
key,
|
|
2523
2786
|
response,
|
|
2524
2787
|
map,
|
|
2525
|
-
|
|
2526
|
-
|
|
2788
|
+
reference,
|
|
2789
|
+
isInitializingDebugInfo
|
|
2527
2790
|
);
|
|
2528
2791
|
case "halted":
|
|
2529
2792
|
return (
|
|
@@ -2542,14 +2805,15 @@
|
|
|
2542
2805
|
default:
|
|
2543
2806
|
return (
|
|
2544
2807
|
initializingHandler
|
|
2545
|
-
? ((
|
|
2546
|
-
(
|
|
2547
|
-
(
|
|
2808
|
+
? ((parentObject = initializingHandler),
|
|
2809
|
+
(parentObject.errored = !0),
|
|
2810
|
+
(parentObject.value = null),
|
|
2811
|
+
(parentObject.reason = id.reason))
|
|
2548
2812
|
: (initializingHandler = {
|
|
2549
2813
|
parent: null,
|
|
2550
2814
|
chunk: null,
|
|
2551
2815
|
value: null,
|
|
2552
|
-
reason:
|
|
2816
|
+
reason: id.reason,
|
|
2553
2817
|
deps: 0,
|
|
2554
2818
|
errored: !0
|
|
2555
2819
|
}),
|
|
@@ -2588,6 +2852,7 @@
|
|
|
2588
2852
|
}
|
|
2589
2853
|
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2590
2854
|
},
|
|
2855
|
+
set: function () {},
|
|
2591
2856
|
enumerable: !0,
|
|
2592
2857
|
configurable: !1
|
|
2593
2858
|
});
|
|
@@ -2667,6 +2932,8 @@
|
|
|
2667
2932
|
initializingChunk._children.push(response),
|
|
2668
2933
|
response
|
|
2669
2934
|
);
|
|
2935
|
+
case "w":
|
|
2936
|
+
return;
|
|
2670
2937
|
case "S":
|
|
2671
2938
|
return Symbol.for(value.slice(2));
|
|
2672
2939
|
case "h":
|
|
@@ -2799,6 +3066,7 @@
|
|
|
2799
3066
|
get: function () {
|
|
2800
3067
|
return "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.";
|
|
2801
3068
|
},
|
|
3069
|
+
set: function () {},
|
|
2802
3070
|
enumerable: !0,
|
|
2803
3071
|
configurable: !1
|
|
2804
3072
|
});
|
|
@@ -2817,6 +3085,9 @@
|
|
|
2817
3085
|
'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.'
|
|
2818
3086
|
);
|
|
2819
3087
|
}
|
|
3088
|
+
function markIOStarted() {
|
|
3089
|
+
this._debugIOStarted = !0;
|
|
3090
|
+
}
|
|
2820
3091
|
function ResponseInstance(
|
|
2821
3092
|
bundlerConfig,
|
|
2822
3093
|
serverReferenceConfig,
|
|
@@ -2825,9 +3096,12 @@
|
|
|
2825
3096
|
encodeFormAction,
|
|
2826
3097
|
nonce,
|
|
2827
3098
|
temporaryReferences,
|
|
3099
|
+
allowPartialStream,
|
|
2828
3100
|
findSourceMapURL,
|
|
2829
3101
|
replayConsole,
|
|
2830
3102
|
environmentName,
|
|
3103
|
+
debugStartTime,
|
|
3104
|
+
debugEndTime,
|
|
2831
3105
|
debugChannel
|
|
2832
3106
|
) {
|
|
2833
3107
|
var chunks = new Map();
|
|
@@ -2839,9 +3113,9 @@
|
|
|
2839
3113
|
this._nonce = nonce;
|
|
2840
3114
|
this._chunks = chunks;
|
|
2841
3115
|
this._stringDecoder = new TextDecoder();
|
|
2842
|
-
this._fromJSON = null;
|
|
2843
3116
|
this._closed = !1;
|
|
2844
3117
|
this._closedReason = null;
|
|
3118
|
+
this._allowPartialStream = allowPartialStream;
|
|
2845
3119
|
this._tempRefs = temporaryReferences;
|
|
2846
3120
|
this._timeOrigin = 0;
|
|
2847
3121
|
this._pendingInitialRender = null;
|
|
@@ -2859,7 +3133,11 @@
|
|
|
2859
3133
|
(this._debugRootTask = console.createTask(
|
|
2860
3134
|
'"use ' + environmentName.toLowerCase() + '"'
|
|
2861
3135
|
));
|
|
2862
|
-
this._debugStartTime =
|
|
3136
|
+
this._debugStartTime =
|
|
3137
|
+
null == debugStartTime ? performance.now() : debugStartTime;
|
|
3138
|
+
this._debugIOStarted = !1;
|
|
3139
|
+
setTimeout(markIOStarted.bind(this), 0);
|
|
3140
|
+
this._debugEndTime = void 0 === debugEndTime ? null : debugEndTime;
|
|
2863
3141
|
this._debugFindSourceMapURL = findSourceMapURL;
|
|
2864
3142
|
this._debugChannel = debugChannel;
|
|
2865
3143
|
this._blockedConsole = null;
|
|
@@ -2870,7 +3148,6 @@
|
|
|
2870
3148
|
? (closeDebugChannel(debugChannel), (this._debugChannel = void 0))
|
|
2871
3149
|
: debugChannelRegistry.register(this, debugChannel, this));
|
|
2872
3150
|
replayConsole && markAllTracksInOrder();
|
|
2873
|
-
this._fromJSON = createFromJSONCallback(this);
|
|
2874
3151
|
}
|
|
2875
3152
|
function createStreamState(weakResponse, streamDebugValue) {
|
|
2876
3153
|
var streamState = {
|
|
@@ -2885,7 +3162,7 @@
|
|
|
2885
3162
|
debugValuePromise.status = "fulfilled";
|
|
2886
3163
|
debugValuePromise.value = streamDebugValue;
|
|
2887
3164
|
streamState._debugInfo = {
|
|
2888
|
-
name: "
|
|
3165
|
+
name: "rsc stream",
|
|
2889
3166
|
start: weakResponse._debugStartTime,
|
|
2890
3167
|
end: weakResponse._debugStartTime,
|
|
2891
3168
|
byteSize: 0,
|
|
@@ -2897,7 +3174,7 @@
|
|
|
2897
3174
|
streamState._debugTargetChunkSize = MIN_CHUNK_SIZE;
|
|
2898
3175
|
return streamState;
|
|
2899
3176
|
}
|
|
2900
|
-
function
|
|
3177
|
+
function addAsyncInfo(chunk, asyncInfo) {
|
|
2901
3178
|
var value = resolveLazy(chunk.value);
|
|
2902
3179
|
"object" !== typeof value ||
|
|
2903
3180
|
null === value ||
|
|
@@ -2905,22 +3182,24 @@
|
|
|
2905
3182
|
"function" !== typeof value[ASYNC_ITERATOR] &&
|
|
2906
3183
|
value.$$typeof !== REACT_ELEMENT_TYPE &&
|
|
2907
3184
|
value.$$typeof !== REACT_LAZY_TYPE)
|
|
2908
|
-
? chunk._debugInfo.push
|
|
3185
|
+
? chunk._debugInfo.push(asyncInfo)
|
|
2909
3186
|
: isArrayImpl(value._debugInfo)
|
|
2910
|
-
? value._debugInfo.push
|
|
2911
|
-
: Object.
|
|
3187
|
+
? value._debugInfo.push(asyncInfo)
|
|
3188
|
+
: Object.isFrozen(value) ||
|
|
3189
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
2912
3190
|
configurable: !1,
|
|
2913
3191
|
enumerable: !1,
|
|
2914
3192
|
writable: !0,
|
|
2915
|
-
value:
|
|
3193
|
+
value: [asyncInfo]
|
|
2916
3194
|
});
|
|
2917
3195
|
}
|
|
2918
|
-
function resolveChunkDebugInfo(streamState, chunk) {
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
3196
|
+
function resolveChunkDebugInfo(response, streamState, chunk) {
|
|
3197
|
+
response._debugIOStarted &&
|
|
3198
|
+
((response = { awaited: streamState._debugInfo }),
|
|
3199
|
+
"pending" === chunk.status || "blocked" === chunk.status
|
|
3200
|
+
? ((response = addAsyncInfo.bind(null, chunk, response)),
|
|
3201
|
+
chunk.then(response, response))
|
|
3202
|
+
: addAsyncInfo(chunk, response));
|
|
2924
3203
|
}
|
|
2925
3204
|
function resolveBuffer(response, id, buffer, streamState) {
|
|
2926
3205
|
var chunks = response._chunks,
|
|
@@ -2928,21 +3207,31 @@
|
|
|
2928
3207
|
chunk && "pending" !== chunk.status
|
|
2929
3208
|
? chunk.reason.enqueueValue(buffer)
|
|
2930
3209
|
: (chunk && releasePendingChunk(response, chunk),
|
|
2931
|
-
(
|
|
2932
|
-
resolveChunkDebugInfo(streamState,
|
|
2933
|
-
chunks.set(id,
|
|
3210
|
+
(buffer = new ReactPromise("fulfilled", buffer, null)),
|
|
3211
|
+
resolveChunkDebugInfo(response, streamState, buffer),
|
|
3212
|
+
chunks.set(id, buffer));
|
|
2934
3213
|
}
|
|
2935
3214
|
function resolveModule(response, id, model, streamState) {
|
|
2936
3215
|
var chunks = response._chunks,
|
|
2937
|
-
chunk = chunks.get(id)
|
|
2938
|
-
|
|
3216
|
+
chunk = chunks.get(id),
|
|
3217
|
+
prevHandler = initializingHandler;
|
|
3218
|
+
initializingHandler = null;
|
|
3219
|
+
try {
|
|
3220
|
+
var clientReferenceMetadata = parseModel(response, model);
|
|
3221
|
+
if (null !== initializingHandler)
|
|
3222
|
+
throw Error(
|
|
3223
|
+
"A client reference was blocked on a row that has not been received yet. This is a bug in React."
|
|
3224
|
+
);
|
|
3225
|
+
} finally {
|
|
3226
|
+
initializingHandler = prevHandler;
|
|
3227
|
+
}
|
|
2939
3228
|
var clientReference = resolveClientReference(
|
|
2940
3229
|
response._bundlerConfig,
|
|
2941
|
-
|
|
3230
|
+
clientReferenceMetadata
|
|
2942
3231
|
);
|
|
2943
3232
|
prepareDestinationWithChunks(
|
|
2944
3233
|
response._moduleLoading,
|
|
2945
|
-
|
|
3234
|
+
clientReferenceMetadata[1],
|
|
2946
3235
|
response._nonce
|
|
2947
3236
|
);
|
|
2948
3237
|
if ((model = preloadModule(clientReference))) {
|
|
@@ -2953,7 +3242,7 @@
|
|
|
2953
3242
|
} else
|
|
2954
3243
|
(blockedChunk = new ReactPromise("blocked", null, null)),
|
|
2955
3244
|
chunks.set(id, blockedChunk);
|
|
2956
|
-
resolveChunkDebugInfo(streamState, blockedChunk);
|
|
3245
|
+
resolveChunkDebugInfo(response, streamState, blockedChunk);
|
|
2957
3246
|
model.then(
|
|
2958
3247
|
function () {
|
|
2959
3248
|
return resolveModuleChunk(response, blockedChunk, clientReference);
|
|
@@ -2964,14 +3253,14 @@
|
|
|
2964
3253
|
);
|
|
2965
3254
|
} else
|
|
2966
3255
|
chunk
|
|
2967
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
3256
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
2968
3257
|
resolveModuleChunk(response, chunk, clientReference))
|
|
2969
3258
|
: ((chunk = new ReactPromise(
|
|
2970
3259
|
"resolved_module",
|
|
2971
3260
|
clientReference,
|
|
2972
3261
|
null
|
|
2973
3262
|
)),
|
|
2974
|
-
resolveChunkDebugInfo(streamState, chunk),
|
|
3263
|
+
resolveChunkDebugInfo(response, streamState, chunk),
|
|
2975
3264
|
chunks.set(id, chunk));
|
|
2976
3265
|
}
|
|
2977
3266
|
function resolveStream(response, id, stream, controller, streamState) {
|
|
@@ -2979,10 +3268,9 @@
|
|
|
2979
3268
|
chunk = chunks.get(id);
|
|
2980
3269
|
if (chunk) {
|
|
2981
3270
|
if (
|
|
2982
|
-
(resolveChunkDebugInfo(streamState, chunk),
|
|
3271
|
+
(resolveChunkDebugInfo(response, streamState, chunk),
|
|
2983
3272
|
"pending" === chunk.status)
|
|
2984
3273
|
) {
|
|
2985
|
-
releasePendingChunk(response, chunk);
|
|
2986
3274
|
id = chunk.value;
|
|
2987
3275
|
if (null != chunk._debugChunk) {
|
|
2988
3276
|
streamState = initializingHandler;
|
|
@@ -3011,12 +3299,17 @@
|
|
|
3011
3299
|
chunk.status = "fulfilled";
|
|
3012
3300
|
chunk.value = stream;
|
|
3013
3301
|
chunk.reason = controller;
|
|
3014
|
-
null !== id
|
|
3302
|
+
null !== id
|
|
3303
|
+
? wakeChunk(response, id, chunk.value, chunk)
|
|
3304
|
+
: (filterDebugInfo(response, chunk),
|
|
3305
|
+
moveDebugInfoFromChunkToInnerValue(chunk, stream));
|
|
3015
3306
|
}
|
|
3016
3307
|
} else
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3308
|
+
0 === response._pendingChunks++ &&
|
|
3309
|
+
(response._weakResponse.response = response),
|
|
3310
|
+
(stream = new ReactPromise("fulfilled", stream, controller)),
|
|
3311
|
+
resolveChunkDebugInfo(response, streamState, stream),
|
|
3312
|
+
chunks.set(id, stream);
|
|
3020
3313
|
}
|
|
3021
3314
|
function startReadableStream(response, id, type, streamState) {
|
|
3022
3315
|
var controller = null,
|
|
@@ -3057,8 +3350,8 @@
|
|
|
3057
3350
|
(previousBlockedChunk = chunk));
|
|
3058
3351
|
} else {
|
|
3059
3352
|
chunk = previousBlockedChunk;
|
|
3060
|
-
var
|
|
3061
|
-
|
|
3353
|
+
var _chunk4 = createPendingChunk(response);
|
|
3354
|
+
_chunk4.then(
|
|
3062
3355
|
function (v) {
|
|
3063
3356
|
return controller.enqueue(v);
|
|
3064
3357
|
},
|
|
@@ -3066,11 +3359,11 @@
|
|
|
3066
3359
|
return controller.error(e);
|
|
3067
3360
|
}
|
|
3068
3361
|
);
|
|
3069
|
-
previousBlockedChunk =
|
|
3362
|
+
previousBlockedChunk = _chunk4;
|
|
3070
3363
|
chunk.then(function () {
|
|
3071
|
-
previousBlockedChunk ===
|
|
3364
|
+
previousBlockedChunk === _chunk4 &&
|
|
3072
3365
|
(previousBlockedChunk = null);
|
|
3073
|
-
resolveModelChunk(response,
|
|
3366
|
+
resolveModelChunk(response, _chunk4, json);
|
|
3074
3367
|
});
|
|
3075
3368
|
}
|
|
3076
3369
|
},
|
|
@@ -3155,6 +3448,7 @@
|
|
|
3155
3448
|
chunk.reason = null;
|
|
3156
3449
|
null !== resolveListeners &&
|
|
3157
3450
|
wakeChunkIfInitialized(
|
|
3451
|
+
response,
|
|
3158
3452
|
chunk,
|
|
3159
3453
|
resolveListeners,
|
|
3160
3454
|
rejectListeners
|
|
@@ -3218,19 +3512,46 @@
|
|
|
3218
3512
|
}
|
|
3219
3513
|
function resolveErrorDev(response, errorInfo) {
|
|
3220
3514
|
var name = errorInfo.name,
|
|
3221
|
-
|
|
3222
|
-
|
|
3515
|
+
message = errorInfo.message,
|
|
3516
|
+
stack = errorInfo.stack,
|
|
3517
|
+
env = errorInfo.env,
|
|
3518
|
+
errorOptions =
|
|
3519
|
+
"cause" in errorInfo
|
|
3520
|
+
? {
|
|
3521
|
+
cause: reviveModel(
|
|
3522
|
+
response,
|
|
3523
|
+
errorInfo.cause,
|
|
3524
|
+
errorInfo,
|
|
3525
|
+
"cause"
|
|
3526
|
+
)
|
|
3527
|
+
}
|
|
3528
|
+
: void 0,
|
|
3529
|
+
isAggregateError =
|
|
3530
|
+
"undefined" !== typeof AggregateError && "errors" in errorInfo,
|
|
3531
|
+
revivedErrors = isAggregateError
|
|
3532
|
+
? reviveModel(response, errorInfo.errors, errorInfo, "errors")
|
|
3533
|
+
: null;
|
|
3534
|
+
message = buildFakeCallStack(
|
|
3223
3535
|
response,
|
|
3224
|
-
|
|
3536
|
+
stack,
|
|
3225
3537
|
env,
|
|
3226
3538
|
!1,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3539
|
+
isAggregateError
|
|
3540
|
+
? AggregateError.bind(
|
|
3541
|
+
null,
|
|
3542
|
+
revivedErrors,
|
|
3543
|
+
message ||
|
|
3544
|
+
"An error occurred in the Server Components render but no message was provided",
|
|
3545
|
+
errorOptions
|
|
3546
|
+
)
|
|
3547
|
+
: Error.bind(
|
|
3548
|
+
null,
|
|
3549
|
+
message ||
|
|
3550
|
+
"An error occurred in the Server Components render but no message was provided",
|
|
3551
|
+
errorOptions
|
|
3552
|
+
)
|
|
3232
3553
|
);
|
|
3233
|
-
|
|
3554
|
+
stack = null;
|
|
3234
3555
|
null != errorInfo.owner &&
|
|
3235
3556
|
((errorInfo = errorInfo.owner.slice(1)),
|
|
3236
3557
|
(errorInfo = getOutlinedModel(
|
|
@@ -3241,14 +3562,14 @@
|
|
|
3241
3562
|
createModel
|
|
3242
3563
|
)),
|
|
3243
3564
|
null !== errorInfo &&
|
|
3244
|
-
(
|
|
3245
|
-
null ===
|
|
3565
|
+
(stack = initializeFakeTask(response, errorInfo)));
|
|
3566
|
+
null === stack
|
|
3246
3567
|
? ((response = getRootTask(response, env)),
|
|
3247
|
-
(
|
|
3248
|
-
: (
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
return
|
|
3568
|
+
(response = null != response ? response.run(message) : message()))
|
|
3569
|
+
: (response = stack.run(message));
|
|
3570
|
+
response.name = name;
|
|
3571
|
+
response.environmentName = env;
|
|
3572
|
+
return response;
|
|
3252
3573
|
}
|
|
3253
3574
|
function createFakeFunction(
|
|
3254
3575
|
name,
|
|
@@ -3341,9 +3662,10 @@
|
|
|
3341
3662
|
try {
|
|
3342
3663
|
var fn = (0, eval)(encodedName)[name];
|
|
3343
3664
|
} catch (x) {
|
|
3344
|
-
fn = function (_) {
|
|
3665
|
+
(fn = function (_) {
|
|
3345
3666
|
return _();
|
|
3346
|
-
}
|
|
3667
|
+
}),
|
|
3668
|
+
Object.defineProperty(fn, "name", { value: name });
|
|
3347
3669
|
}
|
|
3348
3670
|
return fn;
|
|
3349
3671
|
}
|
|
@@ -3443,7 +3765,11 @@
|
|
|
3443
3765
|
return (debugInfo.debugTask = response);
|
|
3444
3766
|
}
|
|
3445
3767
|
function fakeJSXCallSite() {
|
|
3446
|
-
|
|
3768
|
+
var previousStackTraceLimit = Error.stackTraceLimit;
|
|
3769
|
+
Error.stackTraceLimit = ownerStackTraceLimit;
|
|
3770
|
+
var error = Error("react-stack-top-frame");
|
|
3771
|
+
Error.stackTraceLimit = previousStackTraceLimit;
|
|
3772
|
+
return error;
|
|
3447
3773
|
}
|
|
3448
3774
|
function initializeFakeStack(response, debugInfo) {
|
|
3449
3775
|
if (void 0 === debugInfo.debugStack) {
|
|
@@ -3546,18 +3872,18 @@
|
|
|
3546
3872
|
),
|
|
3547
3873
|
(response._blockedConsole = blockedChunk));
|
|
3548
3874
|
else {
|
|
3549
|
-
var
|
|
3550
|
-
|
|
3875
|
+
var _chunk5 = createPendingChunk(response);
|
|
3876
|
+
_chunk5.then(
|
|
3551
3877
|
function (v) {
|
|
3552
3878
|
return replayConsoleWithCallStackInDEV(response, v);
|
|
3553
3879
|
},
|
|
3554
3880
|
function () {}
|
|
3555
3881
|
);
|
|
3556
|
-
response._blockedConsole =
|
|
3882
|
+
response._blockedConsole = _chunk5;
|
|
3557
3883
|
var unblock = function () {
|
|
3558
|
-
response._blockedConsole ===
|
|
3884
|
+
response._blockedConsole === _chunk5 &&
|
|
3559
3885
|
(response._blockedConsole = null);
|
|
3560
|
-
resolveModelChunk(response,
|
|
3886
|
+
resolveModelChunk(response, _chunk5, json);
|
|
3561
3887
|
};
|
|
3562
3888
|
blockedChunk.then(unblock, unblock);
|
|
3563
3889
|
}
|
|
@@ -3591,13 +3917,19 @@
|
|
|
3591
3917
|
}
|
|
3592
3918
|
function resolveIOInfo(response, id, model) {
|
|
3593
3919
|
var chunks = response._chunks,
|
|
3594
|
-
chunk = chunks.get(id)
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3920
|
+
chunk = chunks.get(id),
|
|
3921
|
+
prevIsInitializingDebugInfo = isInitializingDebugInfo;
|
|
3922
|
+
isInitializingDebugInfo = !0;
|
|
3923
|
+
try {
|
|
3924
|
+
chunk
|
|
3925
|
+
? (resolveModelChunk(response, chunk, model),
|
|
3926
|
+
"resolved_model" === chunk.status && initializeModelChunk(chunk))
|
|
3927
|
+
: ((chunk = createResolvedModelChunk(response, model)),
|
|
3928
|
+
chunks.set(id, chunk),
|
|
3929
|
+
initializeModelChunk(chunk));
|
|
3930
|
+
} finally {
|
|
3931
|
+
isInitializingDebugInfo = prevIsInitializingDebugInfo;
|
|
3932
|
+
}
|
|
3601
3933
|
"fulfilled" === chunk.status
|
|
3602
3934
|
? initializeIOInfo(response, chunk.value)
|
|
3603
3935
|
: chunk.then(
|
|
@@ -3615,8 +3947,8 @@
|
|
|
3615
3947
|
)
|
|
3616
3948
|
byteLength += buffer[i].byteLength;
|
|
3617
3949
|
byteLength = new Uint8Array(byteLength);
|
|
3618
|
-
for (var
|
|
3619
|
-
var chunk = buffer[
|
|
3950
|
+
for (var _i4 = (i = 0); _i4 < l; _i4++) {
|
|
3951
|
+
var chunk = buffer[_i4];
|
|
3620
3952
|
byteLength.set(chunk, i);
|
|
3621
3953
|
i += chunk.byteLength;
|
|
3622
3954
|
}
|
|
@@ -3693,8 +4025,19 @@
|
|
|
3693
4025
|
previousResult.track = trackIdx$jscomp$6;
|
|
3694
4026
|
return previousResult;
|
|
3695
4027
|
}
|
|
3696
|
-
var children = root._children
|
|
3697
|
-
|
|
4028
|
+
var children = root._children;
|
|
4029
|
+
var debugInfo = root._debugInfo;
|
|
4030
|
+
if (0 === debugInfo.length && "fulfilled" === root.status) {
|
|
4031
|
+
var resolvedValue = resolveLazy(root.value);
|
|
4032
|
+
"object" === typeof resolvedValue &&
|
|
4033
|
+
null !== resolvedValue &&
|
|
4034
|
+
(isArrayImpl(resolvedValue) ||
|
|
4035
|
+
"function" === typeof resolvedValue[ASYNC_ITERATOR] ||
|
|
4036
|
+
resolvedValue.$$typeof === REACT_ELEMENT_TYPE ||
|
|
4037
|
+
resolvedValue.$$typeof === REACT_LAZY_TYPE) &&
|
|
4038
|
+
isArrayImpl(resolvedValue._debugInfo) &&
|
|
4039
|
+
(debugInfo = resolvedValue._debugInfo);
|
|
4040
|
+
}
|
|
3698
4041
|
if (debugInfo) {
|
|
3699
4042
|
for (var startTime$jscomp$0 = 0, i = 0; i < debugInfo.length; i++) {
|
|
3700
4043
|
var info = debugInfo[i];
|
|
@@ -3705,8 +4048,8 @@
|
|
|
3705
4048
|
break;
|
|
3706
4049
|
}
|
|
3707
4050
|
}
|
|
3708
|
-
for (var
|
|
3709
|
-
var _info = debugInfo[
|
|
4051
|
+
for (var _i5 = debugInfo.length - 1; 0 <= _i5; _i5--) {
|
|
4052
|
+
var _info = debugInfo[_i5];
|
|
3710
4053
|
if ("number" === typeof _info.time && _info.time > parentEndTime) {
|
|
3711
4054
|
parentEndTime = _info.time;
|
|
3712
4055
|
break;
|
|
@@ -3723,13 +4066,13 @@
|
|
|
3723
4066
|
var childrenEndTime = -Infinity,
|
|
3724
4067
|
childTrackIdx = trackIdx$jscomp$6,
|
|
3725
4068
|
childTrackTime = trackTime,
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
4069
|
+
_i6 = 0;
|
|
4070
|
+
_i6 < children.length;
|
|
4071
|
+
_i6++
|
|
3729
4072
|
) {
|
|
3730
4073
|
var childResult = flushComponentPerformance(
|
|
3731
4074
|
response$jscomp$0,
|
|
3732
|
-
children[
|
|
4075
|
+
children[_i6],
|
|
3733
4076
|
childTrackIdx,
|
|
3734
4077
|
childTrackTime,
|
|
3735
4078
|
parentEndTime
|
|
@@ -3747,16 +4090,16 @@
|
|
|
3747
4090
|
isLastComponent = !0,
|
|
3748
4091
|
endTime = -1,
|
|
3749
4092
|
endTimeIdx = -1,
|
|
3750
|
-
|
|
3751
|
-
0 <=
|
|
3752
|
-
|
|
4093
|
+
_i7 = debugInfo.length - 1;
|
|
4094
|
+
0 <= _i7;
|
|
4095
|
+
_i7--
|
|
3753
4096
|
) {
|
|
3754
|
-
var _info2 = debugInfo[
|
|
4097
|
+
var _info2 = debugInfo[_i7];
|
|
3755
4098
|
if ("number" === typeof _info2.time) {
|
|
3756
4099
|
0 === componentEndTime && (componentEndTime = _info2.time);
|
|
3757
4100
|
var time = _info2.time;
|
|
3758
4101
|
if (-1 < endTimeIdx)
|
|
3759
|
-
for (var j = endTimeIdx - 1; j >
|
|
4102
|
+
for (var j = endTimeIdx - 1; j > _i7; j--) {
|
|
3760
4103
|
var candidateInfo = debugInfo[j];
|
|
3761
4104
|
if ("string" === typeof candidateInfo.name) {
|
|
3762
4105
|
componentEndTime > childrenEndTime &&
|
|
@@ -3786,6 +4129,7 @@
|
|
|
3786
4129
|
void 0 === env
|
|
3787
4130
|
? name
|
|
3788
4131
|
: name + " [" + env + "]",
|
|
4132
|
+
measureName = "\u200b" + entryName$jscomp$0,
|
|
3789
4133
|
properties = [
|
|
3790
4134
|
[
|
|
3791
4135
|
"Error",
|
|
@@ -3811,7 +4155,7 @@
|
|
|
3811
4155
|
0,
|
|
3812
4156
|
""
|
|
3813
4157
|
);
|
|
3814
|
-
performance.measure(
|
|
4158
|
+
performance.measure(measureName, {
|
|
3815
4159
|
start: 0 > startTime$jscomp$2 ? 0 : startTime$jscomp$2,
|
|
3816
4160
|
end: childrenEndTime$jscomp$1,
|
|
3817
4161
|
detail: {
|
|
@@ -3824,6 +4168,7 @@
|
|
|
3824
4168
|
}
|
|
3825
4169
|
}
|
|
3826
4170
|
});
|
|
4171
|
+
performance.clearMeasures(measureName);
|
|
3827
4172
|
}
|
|
3828
4173
|
} else {
|
|
3829
4174
|
var componentInfo$jscomp$3 = componentInfo$jscomp$1,
|
|
@@ -3855,11 +4200,12 @@
|
|
|
3855
4200
|
? "primary-dark"
|
|
3856
4201
|
: "secondary-dark"
|
|
3857
4202
|
: "error",
|
|
3858
|
-
|
|
3859
|
-
|
|
4203
|
+
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask,
|
|
4204
|
+
measureName$jscomp$0 =
|
|
4205
|
+
"\u200b" +
|
|
4206
|
+
(isPrimaryEnv || void 0 === env$jscomp$0
|
|
3860
4207
|
? name$jscomp$0
|
|
3861
|
-
: name$jscomp$0 + " [" + env$jscomp$0 + "]"
|
|
3862
|
-
debugTask$jscomp$0 = componentInfo$jscomp$3.debugTask;
|
|
4208
|
+
: name$jscomp$0 + " [" + env$jscomp$0 + "]");
|
|
3863
4209
|
if (debugTask$jscomp$0) {
|
|
3864
4210
|
var properties$jscomp$0 = [];
|
|
3865
4211
|
null != componentInfo$jscomp$3.key &&
|
|
@@ -3880,7 +4226,7 @@
|
|
|
3880
4226
|
debugTask$jscomp$0.run(
|
|
3881
4227
|
performance.measure.bind(
|
|
3882
4228
|
performance,
|
|
3883
|
-
|
|
4229
|
+
measureName$jscomp$0,
|
|
3884
4230
|
{
|
|
3885
4231
|
start:
|
|
3886
4232
|
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
@@ -3896,9 +4242,10 @@
|
|
|
3896
4242
|
}
|
|
3897
4243
|
)
|
|
3898
4244
|
);
|
|
4245
|
+
performance.clearMeasures(measureName$jscomp$0);
|
|
3899
4246
|
} else
|
|
3900
4247
|
console.timeStamp(
|
|
3901
|
-
|
|
4248
|
+
measureName$jscomp$0,
|
|
3902
4249
|
0 > startTime$jscomp$3 ? 0 : startTime$jscomp$3,
|
|
3903
4250
|
childrenEndTime$jscomp$2,
|
|
3904
4251
|
trackNames[trackIdx$jscomp$2],
|
|
@@ -3940,7 +4287,7 @@
|
|
|
3940
4287
|
error$jscomp$0 = thenable.reason;
|
|
3941
4288
|
if (supportsUserTiming && 0 < endTime$jscomp$0) {
|
|
3942
4289
|
var description = getIODescription(error$jscomp$0),
|
|
3943
|
-
entryName$jscomp$
|
|
4290
|
+
entryName$jscomp$1 =
|
|
3944
4291
|
"await " +
|
|
3945
4292
|
getIOShortName(
|
|
3946
4293
|
asyncInfo$jscomp$0.awaited,
|
|
@@ -3972,7 +4319,7 @@
|
|
|
3972
4319
|
debugTask$jscomp$1.run(
|
|
3973
4320
|
performance.measure.bind(
|
|
3974
4321
|
performance,
|
|
3975
|
-
entryName$jscomp$
|
|
4322
|
+
entryName$jscomp$1,
|
|
3976
4323
|
{
|
|
3977
4324
|
start:
|
|
3978
4325
|
0 > startTime$jscomp$4
|
|
@@ -3991,9 +4338,10 @@
|
|
|
3991
4338
|
}
|
|
3992
4339
|
)
|
|
3993
4340
|
);
|
|
4341
|
+
performance.clearMeasures(entryName$jscomp$1);
|
|
3994
4342
|
} else
|
|
3995
4343
|
console.timeStamp(
|
|
3996
|
-
entryName$jscomp$
|
|
4344
|
+
entryName$jscomp$1,
|
|
3997
4345
|
0 > startTime$jscomp$4 ? 0 : startTime$jscomp$4,
|
|
3998
4346
|
endTime$jscomp$0,
|
|
3999
4347
|
trackNames[trackIdx$jscomp$3],
|
|
@@ -4025,7 +4373,7 @@
|
|
|
4025
4373
|
}
|
|
4026
4374
|
else {
|
|
4027
4375
|
endTime = time;
|
|
4028
|
-
for (var _j = debugInfo.length - 1; _j >
|
|
4376
|
+
for (var _j = debugInfo.length - 1; _j > _i7; _j--) {
|
|
4029
4377
|
var _candidateInfo = debugInfo[_j];
|
|
4030
4378
|
if ("string" === typeof _candidateInfo.name) {
|
|
4031
4379
|
componentEndTime > childrenEndTime &&
|
|
@@ -4039,10 +4387,11 @@
|
|
|
4039
4387
|
if (supportsUserTiming) {
|
|
4040
4388
|
var env$jscomp$2 = componentInfo$jscomp$4.env,
|
|
4041
4389
|
name$jscomp$1 = componentInfo$jscomp$4.name,
|
|
4042
|
-
entryName$jscomp$
|
|
4390
|
+
entryName$jscomp$2 =
|
|
4043
4391
|
env$jscomp$2 === _env || void 0 === env$jscomp$2
|
|
4044
4392
|
? name$jscomp$1
|
|
4045
4393
|
: name$jscomp$1 + " [" + env$jscomp$2 + "]",
|
|
4394
|
+
measureName$jscomp$1 = "\u200b" + entryName$jscomp$2,
|
|
4046
4395
|
properties$jscomp$2 = [
|
|
4047
4396
|
[
|
|
4048
4397
|
"Aborted",
|
|
@@ -4064,7 +4413,7 @@
|
|
|
4064
4413
|
0,
|
|
4065
4414
|
""
|
|
4066
4415
|
);
|
|
4067
|
-
performance.measure(
|
|
4416
|
+
performance.measure(measureName$jscomp$1, {
|
|
4068
4417
|
start: 0 > startTime$jscomp$5 ? 0 : startTime$jscomp$5,
|
|
4069
4418
|
end: childrenEndTime$jscomp$3,
|
|
4070
4419
|
detail: {
|
|
@@ -4072,11 +4421,12 @@
|
|
|
4072
4421
|
color: "warning",
|
|
4073
4422
|
track: trackNames[trackIdx$jscomp$4],
|
|
4074
4423
|
trackGroup: "Server Components \u269b",
|
|
4075
|
-
tooltipText: entryName$jscomp$
|
|
4424
|
+
tooltipText: entryName$jscomp$2 + " Aborted",
|
|
4076
4425
|
properties: properties$jscomp$2
|
|
4077
4426
|
}
|
|
4078
4427
|
}
|
|
4079
4428
|
});
|
|
4429
|
+
performance.clearMeasures(measureName$jscomp$1);
|
|
4080
4430
|
}
|
|
4081
4431
|
componentEndTime = time;
|
|
4082
4432
|
result.component = _componentInfo;
|
|
@@ -4096,7 +4446,7 @@
|
|
|
4096
4446
|
endTime$jscomp$1 = endTime,
|
|
4097
4447
|
rootEnv$jscomp$0 = _env2;
|
|
4098
4448
|
if (supportsUserTiming && 0 < endTime$jscomp$1) {
|
|
4099
|
-
var entryName$jscomp$
|
|
4449
|
+
var entryName$jscomp$3 =
|
|
4100
4450
|
"await " +
|
|
4101
4451
|
getIOShortName(
|
|
4102
4452
|
asyncInfo$jscomp$1.awaited,
|
|
@@ -4118,7 +4468,7 @@
|
|
|
4118
4468
|
debugTask$jscomp$2.run(
|
|
4119
4469
|
performance.measure.bind(
|
|
4120
4470
|
performance,
|
|
4121
|
-
entryName$jscomp$
|
|
4471
|
+
entryName$jscomp$3,
|
|
4122
4472
|
{
|
|
4123
4473
|
start:
|
|
4124
4474
|
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
@@ -4140,9 +4490,10 @@
|
|
|
4140
4490
|
}
|
|
4141
4491
|
)
|
|
4142
4492
|
);
|
|
4493
|
+
performance.clearMeasures(entryName$jscomp$3);
|
|
4143
4494
|
} else
|
|
4144
4495
|
console.timeStamp(
|
|
4145
|
-
entryName$jscomp$
|
|
4496
|
+
entryName$jscomp$3,
|
|
4146
4497
|
0 > startTime$jscomp$6 ? 0 : startTime$jscomp$6,
|
|
4147
4498
|
endTime$jscomp$1,
|
|
4148
4499
|
trackNames[trackIdx$jscomp$5],
|
|
@@ -4154,7 +4505,7 @@
|
|
|
4154
4505
|
}
|
|
4155
4506
|
}
|
|
4156
4507
|
endTime = time;
|
|
4157
|
-
endTimeIdx =
|
|
4508
|
+
endTimeIdx = _i7;
|
|
4158
4509
|
}
|
|
4159
4510
|
}
|
|
4160
4511
|
result.endTime = childrenEndTime;
|
|
@@ -4335,7 +4686,7 @@
|
|
|
4335
4686
|
case 72:
|
|
4336
4687
|
id = buffer[0];
|
|
4337
4688
|
streamState = buffer.slice(1);
|
|
4338
|
-
response =
|
|
4689
|
+
response = parseModel(response, streamState);
|
|
4339
4690
|
streamState = ReactDOMSharedInternals.d;
|
|
4340
4691
|
switch (id) {
|
|
4341
4692
|
case "D":
|
|
@@ -4385,20 +4736,20 @@
|
|
|
4385
4736
|
stringDecoder = resolveErrorDev(response, buffer);
|
|
4386
4737
|
stringDecoder.digest = buffer.digest;
|
|
4387
4738
|
chunk
|
|
4388
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4739
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
4389
4740
|
triggerErrorOnChunk(response, chunk, stringDecoder))
|
|
4390
|
-
: ((
|
|
4391
|
-
resolveChunkDebugInfo(streamState,
|
|
4392
|
-
tag.set(id,
|
|
4741
|
+
: ((buffer = new ReactPromise("rejected", null, stringDecoder)),
|
|
4742
|
+
resolveChunkDebugInfo(response, streamState, buffer),
|
|
4743
|
+
tag.set(id, buffer));
|
|
4393
4744
|
break;
|
|
4394
4745
|
case 84:
|
|
4395
4746
|
tag = response._chunks;
|
|
4396
4747
|
(chunk = tag.get(id)) && "pending" !== chunk.status
|
|
4397
4748
|
? chunk.reason.enqueueValue(buffer)
|
|
4398
4749
|
: (chunk && releasePendingChunk(response, chunk),
|
|
4399
|
-
(
|
|
4400
|
-
resolveChunkDebugInfo(streamState,
|
|
4401
|
-
tag.set(id,
|
|
4750
|
+
(buffer = new ReactPromise("fulfilled", buffer, null)),
|
|
4751
|
+
resolveChunkDebugInfo(response, streamState, buffer),
|
|
4752
|
+
tag.set(id, buffer));
|
|
4402
4753
|
break;
|
|
4403
4754
|
case 78:
|
|
4404
4755
|
response._timeOrigin = +buffer - performance.timeOrigin;
|
|
@@ -4444,118 +4795,150 @@
|
|
|
4444
4795
|
startAsyncIterable(response, id, !0, streamState);
|
|
4445
4796
|
break;
|
|
4446
4797
|
case 67:
|
|
4447
|
-
(
|
|
4448
|
-
"fulfilled" ===
|
|
4449
|
-
|
|
4798
|
+
(id = response._chunks.get(id)) &&
|
|
4799
|
+
"fulfilled" === id.status &&
|
|
4800
|
+
(0 === --response._pendingChunks &&
|
|
4801
|
+
(response._weakResponse.response = null),
|
|
4802
|
+
id.reason.close("" === buffer ? '"$undefined"' : buffer));
|
|
4450
4803
|
break;
|
|
4451
4804
|
default:
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
((streamState = response._chunks),
|
|
4805
|
+
"" === buffer
|
|
4806
|
+
? ((streamState = response._chunks),
|
|
4455
4807
|
(buffer = streamState.get(id)) ||
|
|
4456
4808
|
streamState.set(id, (buffer = createPendingChunk(response))),
|
|
4457
|
-
"pending"
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
(response
|
|
4461
|
-
|
|
4462
|
-
(response.value = null),
|
|
4463
|
-
(response.reason = null);
|
|
4464
|
-
} else
|
|
4465
|
-
(tag = response._chunks),
|
|
4809
|
+
("pending" !== buffer.status &&
|
|
4810
|
+
"pending_weak" !== buffer.status &&
|
|
4811
|
+
"blocked" !== buffer.status) ||
|
|
4812
|
+
haltChunk(response, buffer))
|
|
4813
|
+
: ((tag = response._chunks),
|
|
4466
4814
|
(chunk = tag.get(id))
|
|
4467
|
-
? (resolveChunkDebugInfo(streamState, chunk),
|
|
4815
|
+
? (resolveChunkDebugInfo(response, streamState, chunk),
|
|
4468
4816
|
resolveModelChunk(response, chunk, buffer))
|
|
4469
|
-
: ((
|
|
4470
|
-
resolveChunkDebugInfo(streamState,
|
|
4471
|
-
tag.set(id,
|
|
4817
|
+
: ((buffer = createResolvedModelChunk(response, buffer)),
|
|
4818
|
+
resolveChunkDebugInfo(response, streamState, buffer),
|
|
4819
|
+
tag.set(id, buffer)));
|
|
4472
4820
|
}
|
|
4473
4821
|
}
|
|
4474
|
-
function
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
value
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4822
|
+
function parseModel(response, json) {
|
|
4823
|
+
json = JSON.parse(json);
|
|
4824
|
+
return reviveModel(response, json, { "": json }, "");
|
|
4825
|
+
}
|
|
4826
|
+
function reviveModel(response, value, parentObject, key) {
|
|
4827
|
+
if ("string" === typeof value)
|
|
4828
|
+
return "$" === value[0]
|
|
4829
|
+
? parseModelString(response, parentObject, key, value)
|
|
4830
|
+
: value;
|
|
4831
|
+
if ("object" !== typeof value || null === value) return value;
|
|
4832
|
+
if (isArrayImpl(value)) {
|
|
4833
|
+
for (var i = 0; i < value.length; i++)
|
|
4834
|
+
value[i] = reviveModel(response, value[i], value, "" + i);
|
|
4835
|
+
if (value[0] === REACT_ELEMENT_TYPE) {
|
|
4836
|
+
if (value[0] === REACT_ELEMENT_TYPE)
|
|
4837
|
+
b: {
|
|
4838
|
+
key = value[4];
|
|
4839
|
+
parentObject = value[5];
|
|
4840
|
+
i = value[6];
|
|
4841
|
+
value = {
|
|
4842
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
4843
|
+
type: value[1],
|
|
4844
|
+
key: value[2],
|
|
4845
|
+
props: value[3],
|
|
4846
|
+
_owner: void 0 === key ? null : key
|
|
4847
|
+
};
|
|
4848
|
+
Object.defineProperty(value, "ref", {
|
|
4849
|
+
enumerable: !1,
|
|
4850
|
+
get: nullRefGetter
|
|
4851
|
+
});
|
|
4852
|
+
value._store = {};
|
|
4853
|
+
Object.defineProperty(value._store, "validated", {
|
|
4854
|
+
configurable: !1,
|
|
4855
|
+
enumerable: !1,
|
|
4856
|
+
writable: !0,
|
|
4857
|
+
value: i
|
|
4858
|
+
});
|
|
4859
|
+
Object.defineProperty(value, "_debugInfo", {
|
|
4860
|
+
configurable: !1,
|
|
4861
|
+
enumerable: !1,
|
|
4862
|
+
writable: !0,
|
|
4863
|
+
value: null
|
|
4864
|
+
});
|
|
4865
|
+
Object.defineProperty(value, "_debugStack", {
|
|
4866
|
+
configurable: !1,
|
|
4867
|
+
enumerable: !1,
|
|
4868
|
+
writable: !0,
|
|
4869
|
+
value: void 0 === parentObject ? null : parentObject
|
|
4870
|
+
});
|
|
4871
|
+
Object.defineProperty(value, "_debugTask", {
|
|
4872
|
+
configurable: !1,
|
|
4873
|
+
enumerable: !1,
|
|
4874
|
+
writable: !0,
|
|
4875
|
+
value: null
|
|
4876
|
+
});
|
|
4877
|
+
if (null !== initializingHandler) {
|
|
4878
|
+
key = initializingHandler;
|
|
4879
|
+
initializingHandler = key.parent;
|
|
4880
|
+
if (key.errored) {
|
|
4881
|
+
parentObject = new ReactPromise("rejected", null, key.reason);
|
|
4882
|
+
initializeElement(response, value, null);
|
|
4883
|
+
response = {
|
|
4884
|
+
name: getComponentNameFromType(value.type) || "",
|
|
4885
|
+
owner: value._owner
|
|
4886
|
+
};
|
|
4887
|
+
response.debugStack = value._debugStack;
|
|
4888
|
+
supportsCreateTask && (response.debugTask = value._debugTask);
|
|
4889
|
+
parentObject._debugInfo = [response];
|
|
4890
|
+
response = createLazyChunkWrapper(parentObject, i);
|
|
4891
|
+
break b;
|
|
4892
|
+
}
|
|
4893
|
+
if (0 < key.deps) {
|
|
4894
|
+
parentObject = new ReactPromise("blocked", null, null);
|
|
4895
|
+
key.value = value;
|
|
4896
|
+
key.chunk = parentObject;
|
|
4897
|
+
i = createLazyChunkWrapper(parentObject, i);
|
|
4898
|
+
response = initializeElement.bind(null, response, value, i);
|
|
4899
|
+
parentObject.then(response, response);
|
|
4900
|
+
response = i;
|
|
4901
|
+
break b;
|
|
4546
4902
|
}
|
|
4547
|
-
initializeElement(response, value, null);
|
|
4548
|
-
key = value;
|
|
4549
4903
|
}
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4904
|
+
initializeElement(response, value, null);
|
|
4905
|
+
response = value;
|
|
4906
|
+
}
|
|
4907
|
+
else response = value;
|
|
4908
|
+
return response;
|
|
4554
4909
|
}
|
|
4555
|
-
|
|
4910
|
+
return value;
|
|
4911
|
+
}
|
|
4912
|
+
for (i in value)
|
|
4913
|
+
hasOwnProperty.call(value, i) &&
|
|
4914
|
+
("__proto__" === i
|
|
4915
|
+
? delete value[i]
|
|
4916
|
+
: ((parentObject = reviveModel(response, value[i], value, i)),
|
|
4917
|
+
void 0 !== parentObject
|
|
4918
|
+
? (value[i] = parentObject)
|
|
4919
|
+
: delete value[i]));
|
|
4920
|
+
return value;
|
|
4556
4921
|
}
|
|
4557
4922
|
function close(weakResponse) {
|
|
4558
|
-
|
|
4923
|
+
if (void 0 !== weakResponse.weak.deref()) {
|
|
4924
|
+
var response = unwrapWeakResponse(weakResponse);
|
|
4925
|
+
response._allowPartialStream
|
|
4926
|
+
? ((response._closed = !0),
|
|
4927
|
+
response._chunks.forEach(function (chunk) {
|
|
4928
|
+
"pending" === chunk.status
|
|
4929
|
+
? haltChunk(response, chunk)
|
|
4930
|
+
: "fulfilled" === chunk.status &&
|
|
4931
|
+
null !== chunk.reason &&
|
|
4932
|
+
chunk.reason.close('"$undefined"');
|
|
4933
|
+
}),
|
|
4934
|
+
(weakResponse = response._debugChannel),
|
|
4935
|
+
void 0 !== weakResponse &&
|
|
4936
|
+
(closeDebugChannel(weakResponse),
|
|
4937
|
+
(response._debugChannel = void 0),
|
|
4938
|
+
null !== debugChannelRegistry &&
|
|
4939
|
+
debugChannelRegistry.unregister(response)))
|
|
4940
|
+
: reportGlobalError(weakResponse, Error("Connection closed."));
|
|
4941
|
+
}
|
|
4559
4942
|
}
|
|
4560
4943
|
function noServerCall() {
|
|
4561
4944
|
throw Error(
|
|
@@ -4563,25 +4946,53 @@
|
|
|
4563
4946
|
);
|
|
4564
4947
|
}
|
|
4565
4948
|
function createResponseFromOptions(options) {
|
|
4566
|
-
|
|
4567
|
-
options.serverConsumerManifest.
|
|
4568
|
-
options.serverConsumerManifest.
|
|
4569
|
-
options.
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4949
|
+
var bundlerConfig = options.serverConsumerManifest.moduleMap,
|
|
4950
|
+
serverReferenceConfig = options.serverConsumerManifest.serverModuleMap,
|
|
4951
|
+
moduleLoading = options.serverConsumerManifest.moduleLoading,
|
|
4952
|
+
encodeFormAction = options.encodeFormAction,
|
|
4953
|
+
nonce = "string" === typeof options.nonce ? options.nonce : void 0,
|
|
4954
|
+
temporaryReferences =
|
|
4955
|
+
options && options.temporaryReferences
|
|
4956
|
+
? options.temporaryReferences
|
|
4957
|
+
: void 0,
|
|
4958
|
+
allowPartialStream =
|
|
4959
|
+
options && options.unstable_allowPartialStream
|
|
4960
|
+
? options.unstable_allowPartialStream
|
|
4961
|
+
: !1,
|
|
4962
|
+
findSourceMapURL =
|
|
4963
|
+
options && options.findSourceMapURL
|
|
4964
|
+
? options.findSourceMapURL
|
|
4965
|
+
: void 0,
|
|
4966
|
+
replayConsole = options ? !0 === options.replayConsoleLogs : !1,
|
|
4967
|
+
environmentName =
|
|
4968
|
+
options && options.environmentName ? options.environmentName : void 0,
|
|
4969
|
+
debugStartTime =
|
|
4970
|
+
options && null != options.startTime ? options.startTime : void 0,
|
|
4971
|
+
debugEndTime =
|
|
4972
|
+
options && null != options.endTime ? options.endTime : void 0;
|
|
4973
|
+
options =
|
|
4579
4974
|
options && void 0 !== options.debugChannel
|
|
4580
4975
|
? {
|
|
4581
4976
|
hasReadable: void 0 !== options.debugChannel.readable,
|
|
4582
4977
|
callback: null
|
|
4583
4978
|
}
|
|
4584
|
-
: void 0
|
|
4979
|
+
: void 0;
|
|
4980
|
+
checkEvalAvailabilityOnceDev();
|
|
4981
|
+
return new ResponseInstance(
|
|
4982
|
+
bundlerConfig,
|
|
4983
|
+
serverReferenceConfig,
|
|
4984
|
+
moduleLoading,
|
|
4985
|
+
noServerCall,
|
|
4986
|
+
encodeFormAction,
|
|
4987
|
+
nonce,
|
|
4988
|
+
temporaryReferences,
|
|
4989
|
+
allowPartialStream,
|
|
4990
|
+
findSourceMapURL,
|
|
4991
|
+
replayConsole,
|
|
4992
|
+
environmentName,
|
|
4993
|
+
debugStartTime,
|
|
4994
|
+
debugEndTime,
|
|
4995
|
+
options
|
|
4585
4996
|
)._weakResponse;
|
|
4586
4997
|
}
|
|
4587
4998
|
function startReadingFromStream(
|
|
@@ -4638,6 +5049,7 @@
|
|
|
4638
5049
|
65 === rowState ||
|
|
4639
5050
|
79 === rowState ||
|
|
4640
5051
|
111 === rowState ||
|
|
5052
|
+
98 === rowState ||
|
|
4641
5053
|
85 === rowState ||
|
|
4642
5054
|
83 === rowState ||
|
|
4643
5055
|
115 === rowState ||
|
|
@@ -4678,14 +5090,21 @@
|
|
|
4678
5090
|
endTime,
|
|
4679
5091
|
debugInfo - i
|
|
4680
5092
|
)),
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
5093
|
+
98 === rowTag
|
|
5094
|
+
? resolveBuffer(
|
|
5095
|
+
response,
|
|
5096
|
+
rowID,
|
|
5097
|
+
debugInfo === chunkLength ? rowLength : rowLength.slice(),
|
|
5098
|
+
_ref
|
|
5099
|
+
)
|
|
5100
|
+
: processFullBinaryRow(
|
|
5101
|
+
response,
|
|
5102
|
+
_ref,
|
|
5103
|
+
rowID,
|
|
5104
|
+
rowTag,
|
|
5105
|
+
buffer,
|
|
5106
|
+
rowLength
|
|
5107
|
+
),
|
|
4689
5108
|
(i = debugInfo),
|
|
4690
5109
|
3 === rowState && i++,
|
|
4691
5110
|
(rowLength = rowID = rowTag = rowState = 0),
|
|
@@ -4696,8 +5115,10 @@
|
|
|
4696
5115
|
endTime,
|
|
4697
5116
|
value.byteLength - i
|
|
4698
5117
|
);
|
|
4699
|
-
|
|
4700
|
-
|
|
5118
|
+
98 === rowTag
|
|
5119
|
+
? ((rowLength -= value.byteLength),
|
|
5120
|
+
resolveBuffer(response, rowID, value, _ref))
|
|
5121
|
+
: (buffer.push(value), (rowLength -= value.byteLength));
|
|
4701
5122
|
break;
|
|
4702
5123
|
}
|
|
4703
5124
|
}
|
|
@@ -4719,6 +5140,7 @@
|
|
|
4719
5140
|
React = require("react"),
|
|
4720
5141
|
decoderOptions = { stream: !0 },
|
|
4721
5142
|
bind$1 = Function.prototype.bind,
|
|
5143
|
+
hasConfirmedEval = !1,
|
|
4722
5144
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
4723
5145
|
chunkCache = new Map(),
|
|
4724
5146
|
ReactDOMSharedInternals =
|
|
@@ -4736,6 +5158,7 @@
|
|
|
4736
5158
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
4737
5159
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
4738
5160
|
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
5161
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
4739
5162
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
4740
5163
|
ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
4741
5164
|
isArrayImpl = Array.isArray,
|
|
@@ -4743,7 +5166,7 @@
|
|
|
4743
5166
|
jsxPropsParents = new WeakMap(),
|
|
4744
5167
|
jsxChildrenParents = new WeakMap(),
|
|
4745
5168
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
4746
|
-
ObjectPrototype = Object.prototype,
|
|
5169
|
+
ObjectPrototype$1 = Object.prototype,
|
|
4747
5170
|
knownServerReferences = new WeakMap(),
|
|
4748
5171
|
boundCache = new WeakMap(),
|
|
4749
5172
|
fakeServerFunctionIdx = 0,
|
|
@@ -4769,55 +5192,65 @@
|
|
|
4769
5192
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
4770
5193
|
ReactSharedInternals =
|
|
4771
5194
|
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ||
|
|
4772
|
-
ReactSharedInteralsServer
|
|
5195
|
+
ReactSharedInteralsServer,
|
|
5196
|
+
ObjectPrototype = Object.prototype,
|
|
5197
|
+
ArrayPrototype = Array.prototype;
|
|
4773
5198
|
ReactPromise.prototype = Object.create(Promise.prototype);
|
|
4774
|
-
ReactPromise.prototype
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
"
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
5199
|
+
Object.defineProperty(ReactPromise.prototype, "then", {
|
|
5200
|
+
writable: !0,
|
|
5201
|
+
enumerable: !0,
|
|
5202
|
+
configurable: !0,
|
|
5203
|
+
value: function (resolve, reject) {
|
|
5204
|
+
var _this = this;
|
|
5205
|
+
switch (this.status) {
|
|
5206
|
+
case "resolved_model":
|
|
5207
|
+
initializeModelChunk(this);
|
|
5208
|
+
break;
|
|
5209
|
+
case "resolved_module":
|
|
5210
|
+
initializeModuleChunk(this);
|
|
5211
|
+
}
|
|
5212
|
+
var resolveCallback = resolve,
|
|
5213
|
+
rejectCallback = reject,
|
|
5214
|
+
wrapperPromise = new Promise(function (res, rej) {
|
|
5215
|
+
resolve = function (value) {
|
|
5216
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
5217
|
+
res(value);
|
|
5218
|
+
};
|
|
5219
|
+
reject = function (reason) {
|
|
5220
|
+
wrapperPromise._debugInfo = _this._debugInfo;
|
|
5221
|
+
rej(reason);
|
|
5222
|
+
};
|
|
5223
|
+
});
|
|
5224
|
+
wrapperPromise.then(resolveCallback, rejectCallback);
|
|
5225
|
+
switch (this.status) {
|
|
5226
|
+
case "fulfilled":
|
|
5227
|
+
"function" === typeof resolve && resolve(this.value);
|
|
5228
|
+
break;
|
|
5229
|
+
case "pending":
|
|
5230
|
+
case "pending_weak":
|
|
5231
|
+
case "blocked":
|
|
5232
|
+
"function" === typeof resolve &&
|
|
5233
|
+
(null === this.value && (this.value = []),
|
|
5234
|
+
this.value.push(resolve));
|
|
5235
|
+
"function" === typeof reject &&
|
|
5236
|
+
(null === this.reason && (this.reason = []),
|
|
5237
|
+
this.reason.push(reject));
|
|
5238
|
+
break;
|
|
5239
|
+
case "halted":
|
|
5240
|
+
break;
|
|
5241
|
+
default:
|
|
5242
|
+
"function" === typeof reject && reject(this.reason);
|
|
5243
|
+
}
|
|
4813
5244
|
}
|
|
4814
|
-
};
|
|
5245
|
+
});
|
|
4815
5246
|
var debugChannelRegistry =
|
|
4816
5247
|
"function" === typeof FinalizationRegistry
|
|
4817
5248
|
? new FinalizationRegistry(closeDebugChannel)
|
|
4818
5249
|
: null,
|
|
4819
5250
|
initializingHandler = null,
|
|
4820
5251
|
initializingChunk = null,
|
|
5252
|
+
isInitializingDebugInfo = !1,
|
|
5253
|
+
EMPTY_REFERENCE_PATH = [],
|
|
4821
5254
|
mightHaveStaticConstructor = /\bclass\b.*\bstatic\b/,
|
|
4822
5255
|
MIN_CHUNK_SIZE = 65536,
|
|
4823
5256
|
supportsCreateTask = !!console.createTask,
|
|
@@ -4838,6 +5271,7 @@
|
|
|
4838
5271
|
createFakeJSXCallStack.react_stack_bottom_frame.bind(
|
|
4839
5272
|
createFakeJSXCallStack
|
|
4840
5273
|
),
|
|
5274
|
+
ownerStackTraceLimit = 10,
|
|
4841
5275
|
currentOwnerInDEV = null,
|
|
4842
5276
|
replayConsoleWithCallStack = {
|
|
4843
5277
|
react_stack_bottom_frame: function (response, payload) {
|
|
@@ -4979,26 +5413,16 @@
|
|
|
4979
5413
|
};
|
|
4980
5414
|
exports.encodeReply = function (value, options) {
|
|
4981
5415
|
return new Promise(function (resolve, reject) {
|
|
4982
|
-
|
|
5416
|
+
processReply(
|
|
4983
5417
|
value,
|
|
4984
5418
|
"",
|
|
4985
5419
|
options && options.temporaryReferences
|
|
4986
5420
|
? options.temporaryReferences
|
|
4987
5421
|
: void 0,
|
|
4988
5422
|
resolve,
|
|
4989
|
-
reject
|
|
5423
|
+
reject,
|
|
5424
|
+
options ? options.signal : void 0
|
|
4990
5425
|
);
|
|
4991
|
-
if (options && options.signal) {
|
|
4992
|
-
var signal = options.signal;
|
|
4993
|
-
if (signal.aborted) abort(signal.reason);
|
|
4994
|
-
else {
|
|
4995
|
-
var listener = function () {
|
|
4996
|
-
abort(signal.reason);
|
|
4997
|
-
signal.removeEventListener("abort", listener);
|
|
4998
|
-
};
|
|
4999
|
-
signal.addEventListener("abort", listener);
|
|
5000
|
-
}
|
|
5001
|
-
}
|
|
5002
5426
|
});
|
|
5003
5427
|
};
|
|
5004
5428
|
exports.registerServerReference = function (
|