@expo/cli 1.0.0-canary-20250404-3c3b5fd → 1.0.0-canary-20250701-6a945c5
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 +33 -24
- package/build/bin/cli +1 -1
- package/build/metro-require/require.js +6 -4
- package/build/src/api/user/actions.js +25 -11
- package/build/src/api/user/actions.js.map +1 -1
- package/build/src/customize/templates.js +15 -1
- package/build/src/customize/templates.js.map +1 -1
- package/build/src/export/exportApp.js +26 -14
- package/build/src/export/exportApp.js.map +1 -1
- package/build/src/export/exportAsync.js +6 -0
- package/build/src/export/exportAsync.js.map +1 -1
- package/build/src/export/exportHermes.js +2 -2
- package/build/src/export/exportHermes.js.map +1 -1
- package/build/src/export/persistMetroAssets.js.map +1 -1
- package/build/src/install/checkPackages.js +22 -4
- package/build/src/install/checkPackages.js.map +1 -1
- package/build/src/install/index.js +3 -1
- package/build/src/install/index.js.map +1 -1
- package/build/src/install/resolveOptions.js +7 -2
- package/build/src/install/resolveOptions.js.map +1 -1
- package/build/src/install/utils/checkPackagesCompatibility.js +1 -1
- package/build/src/install/utils/checkPackagesCompatibility.js.map +1 -1
- package/build/src/lint/ESlintPrerequisite.js +32 -48
- package/build/src/lint/ESlintPrerequisite.js.map +1 -1
- package/build/src/lint/index.js +45 -47
- package/build/src/lint/index.js.map +1 -1
- package/build/src/lint/lintAsync.js +150 -4
- package/build/src/lint/lintAsync.js.map +1 -1
- package/build/src/lint/resolveOptions.js +115 -0
- package/build/src/lint/resolveOptions.js.map +1 -0
- package/build/src/prebuild/renameTemplateAppName.js +4 -1
- package/build/src/prebuild/renameTemplateAppName.js.map +1 -1
- package/build/src/prebuild/resolveTemplate.js +4 -4
- package/build/src/prebuild/resolveTemplate.js.map +1 -1
- package/build/src/prebuild/updatePackageJson.js +19 -9
- package/build/src/prebuild/updatePackageJson.js.map +1 -1
- package/build/src/run/android/resolveOptions.js +13 -1
- package/build/src/run/android/resolveOptions.js.map +1 -1
- package/build/src/run/android/runAndroidAsync.js +39 -17
- package/build/src/run/android/runAndroidAsync.js.map +1 -1
- package/build/src/run/ios/XcodeBuild.js +3 -3
- package/build/src/run/ios/XcodeBuild.js.map +1 -1
- package/build/src/run/ios/options/resolveOptions.js +13 -1
- package/build/src/run/ios/options/resolveOptions.js.map +1 -1
- package/build/src/run/ios/runIosAsync.js +38 -7
- package/build/src/run/ios/runIosAsync.js.map +1 -1
- package/build/src/start/doctor/SecurityBinPrerequisite.js +1 -1
- package/build/src/start/doctor/SecurityBinPrerequisite.js.map +1 -1
- package/build/src/start/doctor/apple/XcodePrerequisite.js +1 -1
- package/build/src/start/doctor/apple/XcodePrerequisite.js.map +1 -1
- package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js +1 -1
- package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js.map +1 -1
- package/build/src/start/doctor/dependencies/resolvePackages.js +1 -1
- package/build/src/start/doctor/dependencies/resolvePackages.js.map +1 -1
- package/build/src/start/doctor/ngrok/ExternalModule.js +1 -1
- package/build/src/start/doctor/ngrok/ExternalModule.js.map +1 -1
- package/build/src/start/index.js +1 -1
- package/build/src/start/index.js.map +1 -1
- package/build/src/start/platforms/PlatformManager.js +1 -1
- package/build/src/start/platforms/PlatformManager.js.map +1 -1
- package/build/src/start/platforms/android/AndroidPlatformManager.js +1 -1
- package/build/src/start/platforms/android/AndroidPlatformManager.js.map +1 -1
- package/build/src/start/platforms/android/getDevices.js +1 -1
- package/build/src/start/platforms/android/getDevices.js.map +1 -1
- package/build/src/start/platforms/ios/AppleDeviceManager.js +1 -1
- package/build/src/start/platforms/ios/AppleDeviceManager.js.map +1 -1
- package/build/src/start/platforms/ios/xcrun.js +1 -1
- package/build/src/start/platforms/ios/xcrun.js.map +1 -1
- package/build/src/start/project/dotExpo.js +5 -0
- package/build/src/start/project/dotExpo.js.map +1 -1
- package/build/src/start/resolveOptions.js +3 -0
- package/build/src/start/resolveOptions.js.map +1 -1
- package/build/src/start/server/metro/MetroBundlerDevServer.js +38 -26
- package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
- package/build/src/start/server/metro/MetroTerminalReporter.js +29 -2
- package/build/src/start/server/metro/MetroTerminalReporter.js.map +1 -1
- package/build/src/start/server/metro/createExpoFallbackResolver.js +6 -4
- package/build/src/start/server/metro/createExpoFallbackResolver.js.map +1 -1
- package/build/src/start/server/metro/createJResolver.js +2 -2
- package/build/src/start/server/metro/createJResolver.js.map +1 -1
- package/build/src/start/server/metro/createServerComponentsMiddleware.js +16 -5
- package/build/src/start/server/metro/createServerComponentsMiddleware.js.map +1 -1
- package/build/src/start/server/metro/debugging/createDebugMiddleware.js +19 -19
- package/build/src/start/server/metro/debugging/createDebugMiddleware.js.map +1 -1
- package/build/src/start/server/metro/externals.js +1 -1
- package/build/src/start/server/metro/externals.js.map +1 -1
- package/build/src/start/server/metro/instantiateMetro.js +13 -8
- package/build/src/start/server/metro/instantiateMetro.js.map +1 -1
- package/build/src/start/server/metro/log-box/LogBoxSymbolication.js +21 -2
- package/build/src/start/server/metro/log-box/LogBoxSymbolication.js.map +1 -1
- package/build/src/start/server/metro/log-box/formatProjectFilePath.js +15 -12
- package/build/src/start/server/metro/log-box/formatProjectFilePath.js.map +1 -1
- package/build/src/start/server/metro/metroErrorInterface.js +19 -8
- package/build/src/start/server/metro/metroErrorInterface.js.map +1 -1
- package/build/src/start/server/metro/runServer-fork.js +1 -1
- package/build/src/start/server/metro/runServer-fork.js.map +1 -1
- package/build/src/start/server/metro/withMetroMultiPlatform.js +7 -12
- package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
- package/build/src/start/server/middleware/CorsMiddleware.js +1 -1
- package/build/src/start/server/middleware/CorsMiddleware.js.map +1 -1
- package/build/src/start/server/middleware/ManifestMiddleware.js +4 -8
- package/build/src/start/server/middleware/ManifestMiddleware.js.map +1 -1
- package/build/src/start/server/middleware/inspector/JsInspector.js +2 -25
- package/build/src/start/server/middleware/inspector/JsInspector.js.map +1 -1
- package/build/src/start/server/middleware/metroOptions.js +2 -26
- package/build/src/start/server/middleware/metroOptions.js.map +1 -1
- package/build/src/utils/build-cache-providers/helpers.js +61 -0
- package/build/src/utils/build-cache-providers/helpers.js.map +1 -0
- package/build/src/utils/build-cache-providers/index.js +283 -0
- package/build/src/utils/build-cache-providers/index.js.map +1 -0
- package/build/src/utils/codesigning.js +14 -2
- package/build/src/utils/codesigning.js.map +1 -1
- package/build/src/utils/exit.js +0 -1
- package/build/src/utils/exit.js.map +1 -1
- package/build/src/utils/ip.js +7 -104
- package/build/src/utils/ip.js.map +1 -1
- package/build/src/utils/modifyConfigAsync.js +1 -1
- package/build/src/utils/modifyConfigAsync.js.map +1 -1
- package/build/src/utils/resolveArgs.js +8 -0
- package/build/src/utils/resolveArgs.js.map +1 -1
- package/build/src/utils/scheme.js +1 -1
- package/build/src/utils/scheme.js.map +1 -1
- package/build/src/utils/telemetry/clients/FetchClient.js +2 -2
- package/build/src/utils/telemetry/clients/FetchClient.js.map +1 -1
- package/build/src/utils/telemetry/utils/context.js +1 -1
- package/build/src/utils/tsconfig/evaluateTsConfig.js +7 -2
- package/build/src/utils/tsconfig/evaluateTsConfig.js.map +1 -1
- package/build/src/utils/variadic.js +63 -6
- package/build/src/utils/variadic.js.map +1 -1
- package/package.json +20 -20
- package/static/canary/react-is/cjs/react-is.development.js +118 -185
- package/static/canary/react-is/cjs/react-is.production.js +2 -2
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +16582 -26565
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +3495 -3357
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js +3929 -3801
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16869 -27032
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3535 -3428
- package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4198 -4095
- package/static/canary/scheduler/cjs/scheduler-unstable_mock.development.js +387 -684
- package/static/canary/scheduler/cjs/scheduler-unstable_mock.production.js +0 -9
- package/static/canary/scheduler/cjs/scheduler-unstable_post_task.development.js +137 -195
- package/static/canary/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -5
- package/static/canary/scheduler/cjs/scheduler.development.js +339 -600
- package/static/canary/scheduler/cjs/scheduler.native.development.js +324 -512
- package/static/canary/scheduler/cjs/scheduler.native.production.js +6 -5
- package/static/canary/scheduler/cjs/scheduler.production.js +16 -17
- package/static/canary-full/react/cjs/react-compiler-runtime.development.js +13 -68
- package/static/canary-full/react/cjs/react-jsx-dev-runtime.development.js +317 -1251
- package/static/canary-full/react/cjs/react-jsx-dev-runtime.react-server.development.js +353 -1286
- package/static/canary-full/react/cjs/react-jsx-runtime.development.js +326 -1279
- package/static/canary-full/react/cjs/react-jsx-runtime.react-server.development.js +353 -1286
- package/static/canary-full/react/cjs/react.development.js +1204 -2771
- package/static/canary-full/react/cjs/react.production.js +25 -20
- package/static/canary-full/react/cjs/react.react-server.development.js +783 -2162
- package/static/canary-full/react/cjs/react.react-server.production.js +13 -63
- package/static/canary-full/react/package.json +1 -1
- package/static/canary-full/react-dom/cjs/react-dom-client.development.js +24847 -37099
- package/static/canary-full/react-dom/cjs/react-dom-client.production.js +8261 -7475
- package/static/canary-full/react-dom/cjs/react-dom-profiling.development.js +25252 -37571
- package/static/canary-full/react-dom/cjs/react-dom-profiling.profiling.js +9442 -8662
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.development.js +8944 -11568
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.production.js +1378 -944
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.development.js +8944 -11568
- package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.production.js +1386 -954
- package/static/canary-full/react-dom/cjs/react-dom-server.browser.development.js +9344 -11600
- package/static/canary-full/react-dom/cjs/react-dom-server.browser.production.js +1545 -954
- package/static/canary-full/react-dom/cjs/react-dom-server.bun.development.js +8286 -11064
- package/static/canary-full/react-dom/cjs/react-dom-server.bun.production.js +1437 -976
- package/static/canary-full/react-dom/cjs/react-dom-server.edge.development.js +9356 -11609
- package/static/canary-full/react-dom/cjs/react-dom-server.edge.production.js +1542 -970
- package/static/canary-full/react-dom/cjs/react-dom-server.node.development.js +9227 -11571
- package/static/canary-full/react-dom/cjs/react-dom-server.node.production.js +1787 -1183
- package/static/canary-full/react-dom/cjs/react-dom-test-utils.development.js +13 -59
- package/static/canary-full/react-dom/cjs/react-dom.development.js +402 -604
- package/static/canary-full/react-dom/cjs/react-dom.production.js +4 -3
- package/static/canary-full/react-dom/cjs/react-dom.react-server.development.js +322 -382
- package/static/canary-full/react-dom/cjs/react-dom.react-server.production.js +6 -7
- package/static/canary-full/react-dom/package.json +5 -5
- package/static/canary-full/react-dom/static.browser.js +1 -0
- package/static/canary-full/react-dom/static.edge.js +1 -0
- package/static/canary-full/react-dom/static.node.js +1 -0
- package/static/template/eslint.config.js +10 -0
|
@@ -25,11 +25,13 @@ var React = require("react"),
|
|
|
25
25
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
26
26
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
27
27
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
28
|
-
|
|
29
|
-
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
28
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
30
29
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
30
|
+
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
31
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
31
32
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
32
|
-
isArrayImpl = Array.isArray
|
|
33
|
+
isArrayImpl = Array.isArray,
|
|
34
|
+
scheduleMicrotask = queueMicrotask;
|
|
33
35
|
function flushBuffered(destination) {
|
|
34
36
|
"function" === typeof destination.flush && destination.flush();
|
|
35
37
|
}
|
|
@@ -250,26 +252,26 @@ function createRenderState(
|
|
|
250
252
|
("" + JSON.stringify(importMap)).replace(scriptRegex, scriptReplacer)
|
|
251
253
|
),
|
|
252
254
|
bootstrapScriptContent.push("\x3c/script>"));
|
|
253
|
-
importMap =
|
|
255
|
+
importMap = onHeaders
|
|
256
|
+
? {
|
|
257
|
+
preconnects: "",
|
|
258
|
+
fontPreloads: "",
|
|
259
|
+
highImagePreloads: "",
|
|
260
|
+
remainingCapacity:
|
|
261
|
+
2 + ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
|
|
262
|
+
}
|
|
263
|
+
: null;
|
|
264
|
+
onHeaders = {
|
|
254
265
|
placeholderPrefix: idPrefix + "P:",
|
|
255
266
|
segmentPrefix: idPrefix + "S:",
|
|
256
267
|
boundaryPrefix: idPrefix + "B:",
|
|
257
268
|
startInlineScript: inlineScriptWithNonce,
|
|
258
|
-
|
|
259
|
-
headChunks: null,
|
|
269
|
+
preamble: createPreambleState(),
|
|
260
270
|
externalRuntimeScript: null,
|
|
261
271
|
bootstrapChunks: externalRuntimeConfig,
|
|
262
272
|
importMapChunks: bootstrapScriptContent,
|
|
263
273
|
onHeaders: onHeaders,
|
|
264
|
-
headers:
|
|
265
|
-
? {
|
|
266
|
-
preconnects: "",
|
|
267
|
-
fontPreloads: "",
|
|
268
|
-
highImagePreloads: "",
|
|
269
|
-
remainingCapacity:
|
|
270
|
-
"number" === typeof maxHeadersLength ? maxHeadersLength : 2e3
|
|
271
|
-
}
|
|
272
|
-
: null,
|
|
274
|
+
headers: importMap,
|
|
273
275
|
resets: {
|
|
274
276
|
font: {},
|
|
275
277
|
dns: {},
|
|
@@ -298,8 +300,8 @@ function createRenderState(
|
|
|
298
300
|
stylesToHoist: !1
|
|
299
301
|
};
|
|
300
302
|
if (void 0 !== bootstrapScripts)
|
|
301
|
-
for (
|
|
302
|
-
var scriptConfig = bootstrapScripts[
|
|
303
|
+
for (importMap = 0; importMap < bootstrapScripts.length; importMap++) {
|
|
304
|
+
var scriptConfig = bootstrapScripts[importMap];
|
|
303
305
|
idPrefix = inlineScriptWithNonce = void 0;
|
|
304
306
|
bootstrapScriptContent = {
|
|
305
307
|
rel: "preload",
|
|
@@ -318,15 +320,15 @@ function createRenderState(
|
|
|
318
320
|
"string" === typeof scriptConfig || null == scriptConfig.crossOrigin
|
|
319
321
|
? void 0
|
|
320
322
|
: "use-credentials" === scriptConfig.crossOrigin
|
|
321
|
-
|
|
322
|
-
|
|
323
|
+
? "use-credentials"
|
|
324
|
+
: ""));
|
|
323
325
|
scriptConfig = resumableState;
|
|
324
326
|
var href = maxHeadersLength;
|
|
325
327
|
scriptConfig.scriptResources[href] = null;
|
|
326
328
|
scriptConfig.moduleScriptResources[href] = null;
|
|
327
329
|
scriptConfig = [];
|
|
328
330
|
pushLinkImpl(scriptConfig, bootstrapScriptContent);
|
|
329
|
-
|
|
331
|
+
onHeaders.bootstrapScripts.add(scriptConfig);
|
|
330
332
|
externalRuntimeConfig.push(
|
|
331
333
|
'<script src="',
|
|
332
334
|
escapeTextForBrowser(maxHeadersLength)
|
|
@@ -359,8 +361,8 @@ function createRenderState(
|
|
|
359
361
|
nonce: nonce
|
|
360
362
|
}),
|
|
361
363
|
"string" === typeof bootstrapScriptContent
|
|
362
|
-
? (idPrefix.href =
|
|
363
|
-
: ((idPrefix.href =
|
|
364
|
+
? (idPrefix.href = importMap = bootstrapScriptContent)
|
|
365
|
+
: ((idPrefix.href = importMap = bootstrapScriptContent.src),
|
|
364
366
|
(idPrefix.integrity = inlineScriptWithNonce =
|
|
365
367
|
"string" === typeof bootstrapScriptContent.integrity
|
|
366
368
|
? bootstrapScriptContent.integrity
|
|
@@ -370,18 +372,18 @@ function createRenderState(
|
|
|
370
372
|
null == bootstrapScriptContent.crossOrigin
|
|
371
373
|
? void 0
|
|
372
374
|
: "use-credentials" === bootstrapScriptContent.crossOrigin
|
|
373
|
-
|
|
374
|
-
|
|
375
|
+
? "use-credentials"
|
|
376
|
+
: "")),
|
|
375
377
|
(bootstrapScriptContent = resumableState),
|
|
376
|
-
(scriptConfig =
|
|
378
|
+
(scriptConfig = importMap),
|
|
377
379
|
(bootstrapScriptContent.scriptResources[scriptConfig] = null),
|
|
378
380
|
(bootstrapScriptContent.moduleScriptResources[scriptConfig] = null),
|
|
379
381
|
(bootstrapScriptContent = []),
|
|
380
382
|
pushLinkImpl(bootstrapScriptContent, idPrefix),
|
|
381
|
-
|
|
383
|
+
onHeaders.bootstrapScripts.add(bootstrapScriptContent),
|
|
382
384
|
externalRuntimeConfig.push(
|
|
383
385
|
'<script type="module" src="',
|
|
384
|
-
escapeTextForBrowser(
|
|
386
|
+
escapeTextForBrowser(importMap)
|
|
385
387
|
),
|
|
386
388
|
nonce &&
|
|
387
389
|
externalRuntimeConfig.push('" nonce="', escapeTextForBrowser(nonce)),
|
|
@@ -396,7 +398,7 @@ function createRenderState(
|
|
|
396
398
|
escapeTextForBrowser(maxHeadersLength)
|
|
397
399
|
),
|
|
398
400
|
externalRuntimeConfig.push('" async="">\x3c/script>');
|
|
399
|
-
return
|
|
401
|
+
return onHeaders;
|
|
400
402
|
}
|
|
401
403
|
function createResumableState(
|
|
402
404
|
identifierPrefix,
|
|
@@ -425,6 +427,14 @@ function createResumableState(
|
|
|
425
427
|
moduleScriptResources: {}
|
|
426
428
|
};
|
|
427
429
|
}
|
|
430
|
+
function createPreambleState() {
|
|
431
|
+
return {
|
|
432
|
+
htmlChunks: null,
|
|
433
|
+
headChunks: null,
|
|
434
|
+
bodyChunks: null,
|
|
435
|
+
contribution: 0
|
|
436
|
+
};
|
|
437
|
+
}
|
|
428
438
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
|
429
439
|
return {
|
|
430
440
|
insertionMode: insertionMode,
|
|
@@ -435,10 +445,10 @@ function createFormatContext(insertionMode, selectedValue, tagScope) {
|
|
|
435
445
|
function createRootFormatContext(namespaceURI) {
|
|
436
446
|
return createFormatContext(
|
|
437
447
|
"http://www.w3.org/2000/svg" === namespaceURI
|
|
438
|
-
? 3
|
|
439
|
-
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
|
440
448
|
? 4
|
|
441
|
-
:
|
|
449
|
+
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
|
450
|
+
? 5
|
|
451
|
+
: 0,
|
|
442
452
|
null,
|
|
443
453
|
0
|
|
444
454
|
);
|
|
@@ -454,31 +464,32 @@ function getChildFormatContext(parentContext, type, props) {
|
|
|
454
464
|
parentContext.tagScope
|
|
455
465
|
);
|
|
456
466
|
case "svg":
|
|
457
|
-
return createFormatContext(
|
|
467
|
+
return createFormatContext(4, null, parentContext.tagScope);
|
|
458
468
|
case "picture":
|
|
459
469
|
return createFormatContext(2, null, parentContext.tagScope | 2);
|
|
460
470
|
case "math":
|
|
461
|
-
return createFormatContext(
|
|
471
|
+
return createFormatContext(5, null, parentContext.tagScope);
|
|
462
472
|
case "foreignObject":
|
|
463
473
|
return createFormatContext(2, null, parentContext.tagScope);
|
|
464
474
|
case "table":
|
|
465
|
-
return createFormatContext(
|
|
475
|
+
return createFormatContext(6, null, parentContext.tagScope);
|
|
466
476
|
case "thead":
|
|
467
477
|
case "tbody":
|
|
468
478
|
case "tfoot":
|
|
469
|
-
return createFormatContext(
|
|
479
|
+
return createFormatContext(7, null, parentContext.tagScope);
|
|
470
480
|
case "colgroup":
|
|
471
|
-
return createFormatContext(
|
|
481
|
+
return createFormatContext(9, null, parentContext.tagScope);
|
|
472
482
|
case "tr":
|
|
473
|
-
return createFormatContext(
|
|
483
|
+
return createFormatContext(8, null, parentContext.tagScope);
|
|
484
|
+
case "head":
|
|
485
|
+
if (2 > parentContext.insertionMode)
|
|
486
|
+
return createFormatContext(3, null, parentContext.tagScope);
|
|
487
|
+
break;
|
|
488
|
+
case "html":
|
|
489
|
+
if (0 === parentContext.insertionMode)
|
|
490
|
+
return createFormatContext(1, null, parentContext.tagScope);
|
|
474
491
|
}
|
|
475
|
-
return
|
|
476
|
-
? createFormatContext(2, null, parentContext.tagScope)
|
|
477
|
-
: 0 === parentContext.insertionMode
|
|
478
|
-
? "html" === type
|
|
479
|
-
? createFormatContext(1, null, parentContext.tagScope)
|
|
480
|
-
: createFormatContext(2, null, parentContext.tagScope)
|
|
481
|
-
: 1 === parentContext.insertionMode
|
|
492
|
+
return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
|
|
482
493
|
? createFormatContext(2, null, parentContext.tagScope)
|
|
483
494
|
: parentContext;
|
|
484
495
|
}
|
|
@@ -548,20 +559,28 @@ var actionJavaScriptURL = escapeTextForBrowser(
|
|
|
548
559
|
);
|
|
549
560
|
function pushAdditionalFormField(value, key) {
|
|
550
561
|
this.push('<input type="hidden"');
|
|
551
|
-
|
|
552
|
-
throw Error(
|
|
553
|
-
"File/Blob fields are not yet supported in progressive forms. It probably means you are closing over binary data or FormData in a Server Action."
|
|
554
|
-
);
|
|
562
|
+
validateAdditionalFormField(value);
|
|
555
563
|
pushStringAttribute(this, "name", key);
|
|
556
564
|
pushStringAttribute(this, "value", value);
|
|
557
565
|
this.push("/>");
|
|
558
566
|
}
|
|
567
|
+
function validateAdditionalFormField(value) {
|
|
568
|
+
if ("string" !== typeof value)
|
|
569
|
+
throw Error(
|
|
570
|
+
"File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration."
|
|
571
|
+
);
|
|
572
|
+
}
|
|
559
573
|
function getCustomFormFields(resumableState, formAction) {
|
|
560
574
|
if ("function" === typeof formAction.$$FORM_ACTION) {
|
|
561
575
|
var id = resumableState.nextFormID++;
|
|
562
576
|
resumableState = resumableState.idPrefix + id;
|
|
563
577
|
try {
|
|
564
|
-
|
|
578
|
+
var customFields = formAction.$$FORM_ACTION(resumableState);
|
|
579
|
+
if (customFields) {
|
|
580
|
+
var formData = customFields.data;
|
|
581
|
+
null != formData && formData.forEach(validateAdditionalFormField);
|
|
582
|
+
}
|
|
583
|
+
return customFields;
|
|
565
584
|
} catch (x) {
|
|
566
585
|
if ("object" === typeof x && null !== x && "function" === typeof x.then)
|
|
567
586
|
throw x;
|
|
@@ -902,6 +921,29 @@ function pushScriptImpl(target, props) {
|
|
|
902
921
|
target.push(endChunkForTag("script"));
|
|
903
922
|
return null;
|
|
904
923
|
}
|
|
924
|
+
function pushStartSingletonElement(target, props, tag) {
|
|
925
|
+
target.push(startChunkForTag(tag));
|
|
926
|
+
var innerHTML = (tag = null),
|
|
927
|
+
propKey;
|
|
928
|
+
for (propKey in props)
|
|
929
|
+
if (hasOwnProperty.call(props, propKey)) {
|
|
930
|
+
var propValue = props[propKey];
|
|
931
|
+
if (null != propValue)
|
|
932
|
+
switch (propKey) {
|
|
933
|
+
case "children":
|
|
934
|
+
tag = propValue;
|
|
935
|
+
break;
|
|
936
|
+
case "dangerouslySetInnerHTML":
|
|
937
|
+
innerHTML = propValue;
|
|
938
|
+
break;
|
|
939
|
+
default:
|
|
940
|
+
pushAttribute(target, propKey, propValue);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
target.push(">");
|
|
944
|
+
pushInnerHTML(target, innerHTML, tag);
|
|
945
|
+
return tag;
|
|
946
|
+
}
|
|
905
947
|
function pushStartGenericElement(target, props, tag) {
|
|
906
948
|
target.push(startChunkForTag(tag));
|
|
907
949
|
var innerHTML = (tag = null),
|
|
@@ -944,6 +986,7 @@ function pushStartInstance(
|
|
|
944
986
|
props,
|
|
945
987
|
resumableState,
|
|
946
988
|
renderState,
|
|
989
|
+
preambleState,
|
|
947
990
|
hoistableState,
|
|
948
991
|
formatContext,
|
|
949
992
|
textEmbedded,
|
|
@@ -1379,28 +1422,70 @@ function pushStartInstance(
|
|
|
1379
1422
|
}
|
|
1380
1423
|
target$jscomp$0.push(">");
|
|
1381
1424
|
return null;
|
|
1425
|
+
case "object":
|
|
1426
|
+
target$jscomp$0.push(startChunkForTag("object"));
|
|
1427
|
+
var children$jscomp$5 = null,
|
|
1428
|
+
innerHTML$jscomp$4 = null,
|
|
1429
|
+
propKey$jscomp$7;
|
|
1430
|
+
for (propKey$jscomp$7 in props)
|
|
1431
|
+
if (hasOwnProperty.call(props, propKey$jscomp$7)) {
|
|
1432
|
+
var propValue$jscomp$7 = props[propKey$jscomp$7];
|
|
1433
|
+
if (null != propValue$jscomp$7)
|
|
1434
|
+
switch (propKey$jscomp$7) {
|
|
1435
|
+
case "children":
|
|
1436
|
+
children$jscomp$5 = propValue$jscomp$7;
|
|
1437
|
+
break;
|
|
1438
|
+
case "dangerouslySetInnerHTML":
|
|
1439
|
+
innerHTML$jscomp$4 = propValue$jscomp$7;
|
|
1440
|
+
break;
|
|
1441
|
+
case "data":
|
|
1442
|
+
var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
|
|
1443
|
+
if ("" === sanitizedValue) break;
|
|
1444
|
+
target$jscomp$0.push(
|
|
1445
|
+
" ",
|
|
1446
|
+
"data",
|
|
1447
|
+
'="',
|
|
1448
|
+
escapeTextForBrowser(sanitizedValue),
|
|
1449
|
+
'"'
|
|
1450
|
+
);
|
|
1451
|
+
break;
|
|
1452
|
+
default:
|
|
1453
|
+
pushAttribute(
|
|
1454
|
+
target$jscomp$0,
|
|
1455
|
+
propKey$jscomp$7,
|
|
1456
|
+
propValue$jscomp$7
|
|
1457
|
+
);
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
target$jscomp$0.push(">");
|
|
1461
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
1462
|
+
if ("string" === typeof children$jscomp$5) {
|
|
1463
|
+
target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
|
|
1464
|
+
var JSCompiler_inline_result$jscomp$2 = null;
|
|
1465
|
+
} else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
|
|
1466
|
+
return JSCompiler_inline_result$jscomp$2;
|
|
1382
1467
|
case "title":
|
|
1383
1468
|
if (
|
|
1384
|
-
|
|
1469
|
+
4 === formatContext.insertionMode ||
|
|
1385
1470
|
formatContext.tagScope & 1 ||
|
|
1386
1471
|
null != props.itemProp
|
|
1387
1472
|
)
|
|
1388
|
-
var JSCompiler_inline_result$jscomp$
|
|
1473
|
+
var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
|
|
1389
1474
|
target$jscomp$0,
|
|
1390
1475
|
props
|
|
1391
1476
|
);
|
|
1392
1477
|
else
|
|
1393
1478
|
isFallback
|
|
1394
|
-
? (JSCompiler_inline_result$jscomp$
|
|
1479
|
+
? (JSCompiler_inline_result$jscomp$3 = null)
|
|
1395
1480
|
: (pushTitleImpl(renderState.hoistableChunks, props),
|
|
1396
|
-
(JSCompiler_inline_result$jscomp$
|
|
1397
|
-
return JSCompiler_inline_result$jscomp$
|
|
1481
|
+
(JSCompiler_inline_result$jscomp$3 = void 0));
|
|
1482
|
+
return JSCompiler_inline_result$jscomp$3;
|
|
1398
1483
|
case "link":
|
|
1399
1484
|
var rel = props.rel,
|
|
1400
1485
|
href = props.href,
|
|
1401
1486
|
precedence = props.precedence;
|
|
1402
1487
|
if (
|
|
1403
|
-
|
|
1488
|
+
4 === formatContext.insertionMode ||
|
|
1404
1489
|
formatContext.tagScope & 1 ||
|
|
1405
1490
|
null != props.itemProp ||
|
|
1406
1491
|
"string" !== typeof rel ||
|
|
@@ -1408,7 +1493,7 @@ function pushStartInstance(
|
|
|
1408
1493
|
"" === href
|
|
1409
1494
|
) {
|
|
1410
1495
|
pushLinkImpl(target$jscomp$0, props);
|
|
1411
|
-
var JSCompiler_inline_result$jscomp$
|
|
1496
|
+
var JSCompiler_inline_result$jscomp$4 = null;
|
|
1412
1497
|
} else if ("stylesheet" === props.rel)
|
|
1413
1498
|
if (
|
|
1414
1499
|
"string" !== typeof precedence ||
|
|
@@ -1416,7 +1501,7 @@ function pushStartInstance(
|
|
|
1416
1501
|
props.onLoad ||
|
|
1417
1502
|
props.onError
|
|
1418
1503
|
)
|
|
1419
|
-
JSCompiler_inline_result$jscomp$
|
|
1504
|
+
JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
|
1420
1505
|
target$jscomp$0,
|
|
1421
1506
|
props
|
|
1422
1507
|
);
|
|
@@ -1459,19 +1544,19 @@ function pushStartInstance(
|
|
|
1459
1544
|
hoistableState.stylesheets.add(resource$9);
|
|
1460
1545
|
}
|
|
1461
1546
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
|
|
1462
|
-
JSCompiler_inline_result$jscomp$
|
|
1547
|
+
JSCompiler_inline_result$jscomp$4 = null;
|
|
1463
1548
|
}
|
|
1464
1549
|
else
|
|
1465
1550
|
props.onLoad || props.onError
|
|
1466
|
-
? (JSCompiler_inline_result$jscomp$
|
|
1551
|
+
? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
|
1467
1552
|
target$jscomp$0,
|
|
1468
1553
|
props
|
|
1469
1554
|
))
|
|
1470
1555
|
: (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
|
1471
|
-
(JSCompiler_inline_result$jscomp$
|
|
1556
|
+
(JSCompiler_inline_result$jscomp$4 = isFallback
|
|
1472
1557
|
? null
|
|
1473
1558
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
|
1474
|
-
return JSCompiler_inline_result$jscomp$
|
|
1559
|
+
return JSCompiler_inline_result$jscomp$4;
|
|
1475
1560
|
case "script":
|
|
1476
1561
|
var asyncProp = props.async;
|
|
1477
1562
|
if (
|
|
@@ -1482,11 +1567,11 @@ function pushStartInstance(
|
|
|
1482
1567
|
"symbol" === typeof asyncProp ||
|
|
1483
1568
|
props.onLoad ||
|
|
1484
1569
|
props.onError ||
|
|
1485
|
-
|
|
1570
|
+
4 === formatContext.insertionMode ||
|
|
1486
1571
|
formatContext.tagScope & 1 ||
|
|
1487
1572
|
null != props.itemProp
|
|
1488
1573
|
)
|
|
1489
|
-
var JSCompiler_inline_result$jscomp$
|
|
1574
|
+
var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
|
|
1490
1575
|
target$jscomp$0,
|
|
1491
1576
|
props
|
|
1492
1577
|
);
|
|
@@ -1516,14 +1601,14 @@ function pushStartInstance(
|
|
|
1516
1601
|
pushScriptImpl(resource$jscomp$0, scriptProps);
|
|
1517
1602
|
}
|
|
1518
1603
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
|
|
1519
|
-
JSCompiler_inline_result$jscomp$
|
|
1604
|
+
JSCompiler_inline_result$jscomp$5 = null;
|
|
1520
1605
|
}
|
|
1521
|
-
return JSCompiler_inline_result$jscomp$
|
|
1606
|
+
return JSCompiler_inline_result$jscomp$5;
|
|
1522
1607
|
case "style":
|
|
1523
1608
|
var precedence$jscomp$0 = props.precedence,
|
|
1524
1609
|
href$jscomp$0 = props.href;
|
|
1525
1610
|
if (
|
|
1526
|
-
|
|
1611
|
+
4 === formatContext.insertionMode ||
|
|
1527
1612
|
formatContext.tagScope & 1 ||
|
|
1528
1613
|
null != props.itemProp ||
|
|
1529
1614
|
"string" !== typeof precedence$jscomp$0 ||
|
|
@@ -1531,42 +1616,42 @@ function pushStartInstance(
|
|
|
1531
1616
|
"" === href$jscomp$0
|
|
1532
1617
|
) {
|
|
1533
1618
|
target$jscomp$0.push(startChunkForTag("style"));
|
|
1534
|
-
var children$jscomp$
|
|
1535
|
-
innerHTML$jscomp$
|
|
1536
|
-
propKey$jscomp$
|
|
1537
|
-
for (propKey$jscomp$
|
|
1538
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
1539
|
-
var propValue$jscomp$
|
|
1540
|
-
if (null != propValue$jscomp$
|
|
1541
|
-
switch (propKey$jscomp$
|
|
1619
|
+
var children$jscomp$6 = null,
|
|
1620
|
+
innerHTML$jscomp$5 = null,
|
|
1621
|
+
propKey$jscomp$8;
|
|
1622
|
+
for (propKey$jscomp$8 in props)
|
|
1623
|
+
if (hasOwnProperty.call(props, propKey$jscomp$8)) {
|
|
1624
|
+
var propValue$jscomp$8 = props[propKey$jscomp$8];
|
|
1625
|
+
if (null != propValue$jscomp$8)
|
|
1626
|
+
switch (propKey$jscomp$8) {
|
|
1542
1627
|
case "children":
|
|
1543
|
-
children$jscomp$
|
|
1628
|
+
children$jscomp$6 = propValue$jscomp$8;
|
|
1544
1629
|
break;
|
|
1545
1630
|
case "dangerouslySetInnerHTML":
|
|
1546
|
-
innerHTML$jscomp$
|
|
1631
|
+
innerHTML$jscomp$5 = propValue$jscomp$8;
|
|
1547
1632
|
break;
|
|
1548
1633
|
default:
|
|
1549
1634
|
pushAttribute(
|
|
1550
1635
|
target$jscomp$0,
|
|
1551
|
-
propKey$jscomp$
|
|
1552
|
-
propValue$jscomp$
|
|
1636
|
+
propKey$jscomp$8,
|
|
1637
|
+
propValue$jscomp$8
|
|
1553
1638
|
);
|
|
1554
1639
|
}
|
|
1555
1640
|
}
|
|
1556
1641
|
target$jscomp$0.push(">");
|
|
1557
|
-
var child = Array.isArray(children$jscomp$
|
|
1558
|
-
? 2 > children$jscomp$
|
|
1559
|
-
? children$jscomp$
|
|
1642
|
+
var child = Array.isArray(children$jscomp$6)
|
|
1643
|
+
? 2 > children$jscomp$6.length
|
|
1644
|
+
? children$jscomp$6[0]
|
|
1560
1645
|
: null
|
|
1561
|
-
: children$jscomp$
|
|
1646
|
+
: children$jscomp$6;
|
|
1562
1647
|
"function" !== typeof child &&
|
|
1563
1648
|
"symbol" !== typeof child &&
|
|
1564
1649
|
null !== child &&
|
|
1565
1650
|
void 0 !== child &&
|
|
1566
1651
|
target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
|
|
1567
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
|
1652
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
|
|
1568
1653
|
target$jscomp$0.push(endChunkForTag("style"));
|
|
1569
|
-
var JSCompiler_inline_result$jscomp$
|
|
1654
|
+
var JSCompiler_inline_result$jscomp$6 = null;
|
|
1570
1655
|
} else {
|
|
1571
1656
|
var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
|
|
1572
1657
|
if (
|
|
@@ -1588,26 +1673,26 @@ function pushStartInstance(
|
|
|
1588
1673
|
}),
|
|
1589
1674
|
renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
|
|
1590
1675
|
var target = styleQueue$jscomp$0.rules,
|
|
1591
|
-
children$jscomp$
|
|
1592
|
-
innerHTML$jscomp$
|
|
1593
|
-
propKey$jscomp$
|
|
1594
|
-
for (propKey$jscomp$
|
|
1595
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
1596
|
-
var propValue$jscomp$
|
|
1597
|
-
if (null != propValue$jscomp$
|
|
1598
|
-
switch (propKey$jscomp$
|
|
1676
|
+
children$jscomp$7 = null,
|
|
1677
|
+
innerHTML$jscomp$6 = null,
|
|
1678
|
+
propKey$jscomp$9;
|
|
1679
|
+
for (propKey$jscomp$9 in props)
|
|
1680
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
1681
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
1682
|
+
if (null != propValue$jscomp$9)
|
|
1683
|
+
switch (propKey$jscomp$9) {
|
|
1599
1684
|
case "children":
|
|
1600
|
-
children$jscomp$
|
|
1685
|
+
children$jscomp$7 = propValue$jscomp$9;
|
|
1601
1686
|
break;
|
|
1602
1687
|
case "dangerouslySetInnerHTML":
|
|
1603
|
-
innerHTML$jscomp$
|
|
1688
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
1604
1689
|
}
|
|
1605
1690
|
}
|
|
1606
|
-
var child$jscomp$0 = Array.isArray(children$jscomp$
|
|
1607
|
-
? 2 > children$jscomp$
|
|
1608
|
-
? children$jscomp$
|
|
1691
|
+
var child$jscomp$0 = Array.isArray(children$jscomp$7)
|
|
1692
|
+
? 2 > children$jscomp$7.length
|
|
1693
|
+
? children$jscomp$7[0]
|
|
1609
1694
|
: null
|
|
1610
|
-
: children$jscomp$
|
|
1695
|
+
: children$jscomp$7;
|
|
1611
1696
|
"function" !== typeof child$jscomp$0 &&
|
|
1612
1697
|
"symbol" !== typeof child$jscomp$0 &&
|
|
1613
1698
|
null !== child$jscomp$0 &&
|
|
@@ -1615,85 +1700,85 @@ function pushStartInstance(
|
|
|
1615
1700
|
target.push(
|
|
1616
1701
|
("" + child$jscomp$0).replace(styleRegex, styleReplacer)
|
|
1617
1702
|
);
|
|
1618
|
-
pushInnerHTML(target, innerHTML$jscomp$
|
|
1703
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
|
|
1619
1704
|
}
|
|
1620
1705
|
styleQueue$jscomp$0 &&
|
|
1621
1706
|
hoistableState &&
|
|
1622
1707
|
hoistableState.styles.add(styleQueue$jscomp$0);
|
|
1623
1708
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
|
|
1624
|
-
JSCompiler_inline_result$jscomp$
|
|
1709
|
+
JSCompiler_inline_result$jscomp$6 = void 0;
|
|
1625
1710
|
}
|
|
1626
|
-
return JSCompiler_inline_result$jscomp$
|
|
1711
|
+
return JSCompiler_inline_result$jscomp$6;
|
|
1627
1712
|
case "meta":
|
|
1628
1713
|
if (
|
|
1629
|
-
|
|
1714
|
+
4 === formatContext.insertionMode ||
|
|
1630
1715
|
formatContext.tagScope & 1 ||
|
|
1631
1716
|
null != props.itemProp
|
|
1632
1717
|
)
|
|
1633
|
-
var JSCompiler_inline_result$jscomp$
|
|
1718
|
+
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
|
1634
1719
|
target$jscomp$0,
|
|
1635
1720
|
props,
|
|
1636
1721
|
"meta"
|
|
1637
1722
|
);
|
|
1638
1723
|
else
|
|
1639
1724
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
|
1640
|
-
(JSCompiler_inline_result$jscomp$
|
|
1725
|
+
(JSCompiler_inline_result$jscomp$7 = isFallback
|
|
1641
1726
|
? null
|
|
1642
1727
|
: "string" === typeof props.charSet
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
return JSCompiler_inline_result$jscomp$
|
|
1728
|
+
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
|
1729
|
+
: "viewport" === props.name
|
|
1730
|
+
? pushSelfClosing(renderState.viewportChunks, props, "meta")
|
|
1731
|
+
: pushSelfClosing(renderState.hoistableChunks, props, "meta"));
|
|
1732
|
+
return JSCompiler_inline_result$jscomp$7;
|
|
1648
1733
|
case "listing":
|
|
1649
1734
|
case "pre":
|
|
1650
1735
|
target$jscomp$0.push(startChunkForTag(type));
|
|
1651
|
-
var children$jscomp$
|
|
1652
|
-
innerHTML$jscomp$
|
|
1653
|
-
propKey$jscomp$
|
|
1654
|
-
for (propKey$jscomp$
|
|
1655
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
1656
|
-
var propValue$jscomp$
|
|
1657
|
-
if (null != propValue$jscomp$
|
|
1658
|
-
switch (propKey$jscomp$
|
|
1736
|
+
var children$jscomp$8 = null,
|
|
1737
|
+
innerHTML$jscomp$7 = null,
|
|
1738
|
+
propKey$jscomp$10;
|
|
1739
|
+
for (propKey$jscomp$10 in props)
|
|
1740
|
+
if (hasOwnProperty.call(props, propKey$jscomp$10)) {
|
|
1741
|
+
var propValue$jscomp$10 = props[propKey$jscomp$10];
|
|
1742
|
+
if (null != propValue$jscomp$10)
|
|
1743
|
+
switch (propKey$jscomp$10) {
|
|
1659
1744
|
case "children":
|
|
1660
|
-
children$jscomp$
|
|
1745
|
+
children$jscomp$8 = propValue$jscomp$10;
|
|
1661
1746
|
break;
|
|
1662
1747
|
case "dangerouslySetInnerHTML":
|
|
1663
|
-
innerHTML$jscomp$
|
|
1748
|
+
innerHTML$jscomp$7 = propValue$jscomp$10;
|
|
1664
1749
|
break;
|
|
1665
1750
|
default:
|
|
1666
1751
|
pushAttribute(
|
|
1667
1752
|
target$jscomp$0,
|
|
1668
|
-
propKey$jscomp$
|
|
1669
|
-
propValue$jscomp$
|
|
1753
|
+
propKey$jscomp$10,
|
|
1754
|
+
propValue$jscomp$10
|
|
1670
1755
|
);
|
|
1671
1756
|
}
|
|
1672
1757
|
}
|
|
1673
1758
|
target$jscomp$0.push(">");
|
|
1674
|
-
if (null != innerHTML$jscomp$
|
|
1675
|
-
if (null != children$jscomp$
|
|
1759
|
+
if (null != innerHTML$jscomp$7) {
|
|
1760
|
+
if (null != children$jscomp$8)
|
|
1676
1761
|
throw Error(
|
|
1677
1762
|
"Can only set one of `children` or `props.dangerouslySetInnerHTML`."
|
|
1678
1763
|
);
|
|
1679
1764
|
if (
|
|
1680
|
-
"object" !== typeof innerHTML$jscomp$
|
|
1681
|
-
!("__html" in innerHTML$jscomp$
|
|
1765
|
+
"object" !== typeof innerHTML$jscomp$7 ||
|
|
1766
|
+
!("__html" in innerHTML$jscomp$7)
|
|
1682
1767
|
)
|
|
1683
1768
|
throw Error(
|
|
1684
1769
|
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
|
|
1685
1770
|
);
|
|
1686
|
-
var html = innerHTML$jscomp$
|
|
1771
|
+
var html = innerHTML$jscomp$7.__html;
|
|
1687
1772
|
null !== html &&
|
|
1688
1773
|
void 0 !== html &&
|
|
1689
1774
|
("string" === typeof html && 0 < html.length && "\n" === html[0]
|
|
1690
1775
|
? target$jscomp$0.push("\n", html)
|
|
1691
1776
|
: target$jscomp$0.push("" + html));
|
|
1692
1777
|
}
|
|
1693
|
-
"string" === typeof children$jscomp$
|
|
1694
|
-
"\n" === children$jscomp$
|
|
1778
|
+
"string" === typeof children$jscomp$8 &&
|
|
1779
|
+
"\n" === children$jscomp$8[0] &&
|
|
1695
1780
|
target$jscomp$0.push("\n");
|
|
1696
|
-
return children$jscomp$
|
|
1781
|
+
return children$jscomp$8;
|
|
1697
1782
|
case "img":
|
|
1698
1783
|
var src = props.src,
|
|
1699
1784
|
srcSet = props.srcSet;
|
|
@@ -1735,7 +1820,7 @@ function pushStartInstance(
|
|
|
1735
1820
|
) {
|
|
1736
1821
|
resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
|
|
1737
1822
|
var input = props.crossOrigin;
|
|
1738
|
-
var JSCompiler_inline_result$jscomp$
|
|
1823
|
+
var JSCompiler_inline_result$jscomp$8 =
|
|
1739
1824
|
"string" === typeof input
|
|
1740
1825
|
? "use-credentials" === input
|
|
1741
1826
|
? input
|
|
@@ -1745,19 +1830,20 @@ function pushStartInstance(
|
|
|
1745
1830
|
header;
|
|
1746
1831
|
headers &&
|
|
1747
1832
|
0 < headers.remainingCapacity &&
|
|
1833
|
+
"string" !== typeof props.srcSet &&
|
|
1748
1834
|
("high" === props.fetchPriority ||
|
|
1749
1835
|
500 > headers.highImagePreloads.length) &&
|
|
1750
1836
|
((header = getPreloadAsHeader(src, "image", {
|
|
1751
1837
|
imageSrcSet: props.srcSet,
|
|
1752
1838
|
imageSizes: props.sizes,
|
|
1753
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
|
1839
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
|
1754
1840
|
integrity: props.integrity,
|
|
1755
1841
|
nonce: props.nonce,
|
|
1756
1842
|
type: props.type,
|
|
1757
1843
|
fetchPriority: props.fetchPriority,
|
|
1758
1844
|
referrerPolicy: props.refererPolicy
|
|
1759
1845
|
})),
|
|
1760
|
-
|
|
1846
|
+
0 <= (headers.remainingCapacity -= header.length + 2))
|
|
1761
1847
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
|
1762
1848
|
headers.highImagePreloads && (headers.highImagePreloads += ", "),
|
|
1763
1849
|
(headers.highImagePreloads += header))
|
|
@@ -1768,7 +1854,7 @@ function pushStartInstance(
|
|
|
1768
1854
|
href: srcSet ? void 0 : src,
|
|
1769
1855
|
imageSrcSet: srcSet,
|
|
1770
1856
|
imageSizes: sizes,
|
|
1771
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
|
1857
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
|
1772
1858
|
integrity: props.integrity,
|
|
1773
1859
|
type: props.type,
|
|
1774
1860
|
fetchPriority: props.fetchPriority,
|
|
@@ -1804,58 +1890,79 @@ function pushStartInstance(
|
|
|
1804
1890
|
case "missing-glyph":
|
|
1805
1891
|
break;
|
|
1806
1892
|
case "head":
|
|
1807
|
-
if (2 > formatContext.insertionMode
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1893
|
+
if (2 > formatContext.insertionMode) {
|
|
1894
|
+
var preamble = preambleState || renderState.preamble;
|
|
1895
|
+
if (preamble.headChunks)
|
|
1896
|
+
throw Error("The `<head>` tag may only be rendered once.");
|
|
1897
|
+
preamble.headChunks = [];
|
|
1898
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
1899
|
+
preamble.headChunks,
|
|
1811
1900
|
props,
|
|
1812
1901
|
"head"
|
|
1813
1902
|
);
|
|
1814
1903
|
} else
|
|
1815
|
-
JSCompiler_inline_result$jscomp$
|
|
1904
|
+
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
1816
1905
|
target$jscomp$0,
|
|
1817
1906
|
props,
|
|
1818
1907
|
"head"
|
|
1819
1908
|
);
|
|
1820
|
-
return JSCompiler_inline_result$jscomp$
|
|
1909
|
+
return JSCompiler_inline_result$jscomp$9;
|
|
1910
|
+
case "body":
|
|
1911
|
+
if (2 > formatContext.insertionMode) {
|
|
1912
|
+
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
|
1913
|
+
if (preamble$jscomp$0.bodyChunks)
|
|
1914
|
+
throw Error("The `<body>` tag may only be rendered once.");
|
|
1915
|
+
preamble$jscomp$0.bodyChunks = [];
|
|
1916
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
1917
|
+
preamble$jscomp$0.bodyChunks,
|
|
1918
|
+
props,
|
|
1919
|
+
"body"
|
|
1920
|
+
);
|
|
1921
|
+
} else
|
|
1922
|
+
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
1923
|
+
target$jscomp$0,
|
|
1924
|
+
props,
|
|
1925
|
+
"body"
|
|
1926
|
+
);
|
|
1927
|
+
return JSCompiler_inline_result$jscomp$10;
|
|
1821
1928
|
case "html":
|
|
1822
|
-
if (
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
var JSCompiler_inline_result$jscomp$
|
|
1828
|
-
|
|
1929
|
+
if (0 === formatContext.insertionMode) {
|
|
1930
|
+
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
|
1931
|
+
if (preamble$jscomp$1.htmlChunks)
|
|
1932
|
+
throw Error("The `<html>` tag may only be rendered once.");
|
|
1933
|
+
preamble$jscomp$1.htmlChunks = ["<!DOCTYPE html>"];
|
|
1934
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
1935
|
+
preamble$jscomp$1.htmlChunks,
|
|
1829
1936
|
props,
|
|
1830
1937
|
"html"
|
|
1831
1938
|
);
|
|
1832
1939
|
} else
|
|
1833
|
-
JSCompiler_inline_result$jscomp$
|
|
1940
|
+
JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
|
|
1834
1941
|
target$jscomp$0,
|
|
1835
1942
|
props,
|
|
1836
1943
|
"html"
|
|
1837
1944
|
);
|
|
1838
|
-
return JSCompiler_inline_result$jscomp$
|
|
1945
|
+
return JSCompiler_inline_result$jscomp$11;
|
|
1839
1946
|
default:
|
|
1840
1947
|
if (-1 !== type.indexOf("-")) {
|
|
1841
1948
|
target$jscomp$0.push(startChunkForTag(type));
|
|
1842
|
-
var children$jscomp$
|
|
1843
|
-
innerHTML$jscomp$
|
|
1844
|
-
propKey$jscomp$
|
|
1845
|
-
for (propKey$jscomp$
|
|
1846
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
1847
|
-
var propValue$jscomp$
|
|
1848
|
-
if (null != propValue$jscomp$
|
|
1849
|
-
var attributeName = propKey$jscomp$
|
|
1850
|
-
switch (propKey$jscomp$
|
|
1949
|
+
var children$jscomp$9 = null,
|
|
1950
|
+
innerHTML$jscomp$8 = null,
|
|
1951
|
+
propKey$jscomp$11;
|
|
1952
|
+
for (propKey$jscomp$11 in props)
|
|
1953
|
+
if (hasOwnProperty.call(props, propKey$jscomp$11)) {
|
|
1954
|
+
var propValue$jscomp$11 = props[propKey$jscomp$11];
|
|
1955
|
+
if (null != propValue$jscomp$11) {
|
|
1956
|
+
var attributeName = propKey$jscomp$11;
|
|
1957
|
+
switch (propKey$jscomp$11) {
|
|
1851
1958
|
case "children":
|
|
1852
|
-
children$jscomp$
|
|
1959
|
+
children$jscomp$9 = propValue$jscomp$11;
|
|
1853
1960
|
break;
|
|
1854
1961
|
case "dangerouslySetInnerHTML":
|
|
1855
|
-
innerHTML$jscomp$
|
|
1962
|
+
innerHTML$jscomp$8 = propValue$jscomp$11;
|
|
1856
1963
|
break;
|
|
1857
1964
|
case "style":
|
|
1858
|
-
pushStyleAttribute(target$jscomp$0, propValue$jscomp$
|
|
1965
|
+
pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
|
|
1859
1966
|
break;
|
|
1860
1967
|
case "suppressContentEditableWarning":
|
|
1861
1968
|
case "suppressHydrationWarning":
|
|
@@ -1865,18 +1972,18 @@ function pushStartInstance(
|
|
|
1865
1972
|
attributeName = "class";
|
|
1866
1973
|
default:
|
|
1867
1974
|
if (
|
|
1868
|
-
isAttributeNameSafe(propKey$jscomp$
|
|
1869
|
-
"function" !== typeof propValue$jscomp$
|
|
1870
|
-
"symbol" !== typeof propValue$jscomp$
|
|
1871
|
-
!1 !== propValue$jscomp$
|
|
1975
|
+
isAttributeNameSafe(propKey$jscomp$11) &&
|
|
1976
|
+
"function" !== typeof propValue$jscomp$11 &&
|
|
1977
|
+
"symbol" !== typeof propValue$jscomp$11 &&
|
|
1978
|
+
!1 !== propValue$jscomp$11
|
|
1872
1979
|
) {
|
|
1873
|
-
if (!0 === propValue$jscomp$
|
|
1874
|
-
else if ("object" === typeof propValue$jscomp$
|
|
1980
|
+
if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
|
|
1981
|
+
else if ("object" === typeof propValue$jscomp$11) continue;
|
|
1875
1982
|
target$jscomp$0.push(
|
|
1876
1983
|
" ",
|
|
1877
1984
|
attributeName,
|
|
1878
1985
|
'="',
|
|
1879
|
-
escapeTextForBrowser(propValue$jscomp$
|
|
1986
|
+
escapeTextForBrowser(propValue$jscomp$11),
|
|
1880
1987
|
'"'
|
|
1881
1988
|
);
|
|
1882
1989
|
}
|
|
@@ -1884,8 +1991,8 @@ function pushStartInstance(
|
|
|
1884
1991
|
}
|
|
1885
1992
|
}
|
|
1886
1993
|
target$jscomp$0.push(">");
|
|
1887
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
|
1888
|
-
return children$jscomp$
|
|
1994
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
|
1995
|
+
return children$jscomp$9;
|
|
1889
1996
|
}
|
|
1890
1997
|
}
|
|
1891
1998
|
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
@@ -1896,6 +2003,21 @@ function endChunkForTag(tag) {
|
|
|
1896
2003
|
void 0 === chunk && ((chunk = "</" + tag + ">"), endTagCache.set(tag, chunk));
|
|
1897
2004
|
return chunk;
|
|
1898
2005
|
}
|
|
2006
|
+
function hoistPreambleState(renderState, preambleState) {
|
|
2007
|
+
renderState = renderState.preamble;
|
|
2008
|
+
null === renderState.htmlChunks &&
|
|
2009
|
+
preambleState.htmlChunks &&
|
|
2010
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
|
2011
|
+
(preambleState.contribution |= 1));
|
|
2012
|
+
null === renderState.headChunks &&
|
|
2013
|
+
preambleState.headChunks &&
|
|
2014
|
+
((renderState.headChunks = preambleState.headChunks),
|
|
2015
|
+
(preambleState.contribution |= 4));
|
|
2016
|
+
null === renderState.bodyChunks &&
|
|
2017
|
+
preambleState.bodyChunks &&
|
|
2018
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
|
2019
|
+
(preambleState.contribution |= 2));
|
|
2020
|
+
}
|
|
1899
2021
|
function writeBootstrap(destination, renderState) {
|
|
1900
2022
|
renderState = renderState.bootstrapChunks;
|
|
1901
2023
|
for (var i = 0; i < renderState.length - 1; i++)
|
|
@@ -1914,10 +2036,18 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
|
1914
2036
|
writeChunk(destination, id.toString(16));
|
|
1915
2037
|
return !!destination.write('"></template>');
|
|
1916
2038
|
}
|
|
2039
|
+
function writePreambleContribution(destination, preambleState) {
|
|
2040
|
+
preambleState = preambleState.contribution;
|
|
2041
|
+
0 !== preambleState &&
|
|
2042
|
+
(writeChunk(destination, "\x3c!--"),
|
|
2043
|
+
writeChunk(destination, "" + preambleState),
|
|
2044
|
+
writeChunk(destination, "--\x3e"));
|
|
2045
|
+
}
|
|
1917
2046
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
|
1918
2047
|
switch (formatContext.insertionMode) {
|
|
1919
2048
|
case 0:
|
|
1920
2049
|
case 1:
|
|
2050
|
+
case 3:
|
|
1921
2051
|
case 2:
|
|
1922
2052
|
return (
|
|
1923
2053
|
writeChunk(destination, '<div hidden id="'),
|
|
@@ -1925,7 +2055,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
|
|
|
1925
2055
|
writeChunk(destination, id.toString(16)),
|
|
1926
2056
|
!!destination.write('">')
|
|
1927
2057
|
);
|
|
1928
|
-
case
|
|
2058
|
+
case 4:
|
|
1929
2059
|
return (
|
|
1930
2060
|
writeChunk(
|
|
1931
2061
|
destination,
|
|
@@ -1935,7 +2065,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
|
|
|
1935
2065
|
writeChunk(destination, id.toString(16)),
|
|
1936
2066
|
!!destination.write('">')
|
|
1937
2067
|
);
|
|
1938
|
-
case
|
|
2068
|
+
case 5:
|
|
1939
2069
|
return (
|
|
1940
2070
|
writeChunk(
|
|
1941
2071
|
destination,
|
|
@@ -1945,28 +2075,28 @@ function writeStartSegment(destination, renderState, formatContext, id) {
|
|
|
1945
2075
|
writeChunk(destination, id.toString(16)),
|
|
1946
2076
|
!!destination.write('">')
|
|
1947
2077
|
);
|
|
1948
|
-
case
|
|
2078
|
+
case 6:
|
|
1949
2079
|
return (
|
|
1950
2080
|
writeChunk(destination, '<table hidden id="'),
|
|
1951
2081
|
writeChunk(destination, renderState.segmentPrefix),
|
|
1952
2082
|
writeChunk(destination, id.toString(16)),
|
|
1953
2083
|
!!destination.write('">')
|
|
1954
2084
|
);
|
|
1955
|
-
case
|
|
2085
|
+
case 7:
|
|
1956
2086
|
return (
|
|
1957
2087
|
writeChunk(destination, '<table hidden><tbody id="'),
|
|
1958
2088
|
writeChunk(destination, renderState.segmentPrefix),
|
|
1959
2089
|
writeChunk(destination, id.toString(16)),
|
|
1960
2090
|
!!destination.write('">')
|
|
1961
2091
|
);
|
|
1962
|
-
case
|
|
2092
|
+
case 8:
|
|
1963
2093
|
return (
|
|
1964
2094
|
writeChunk(destination, '<table hidden><tr id="'),
|
|
1965
2095
|
writeChunk(destination, renderState.segmentPrefix),
|
|
1966
2096
|
writeChunk(destination, id.toString(16)),
|
|
1967
2097
|
!!destination.write('">')
|
|
1968
2098
|
);
|
|
1969
|
-
case
|
|
2099
|
+
case 9:
|
|
1970
2100
|
return (
|
|
1971
2101
|
writeChunk(destination, '<table hidden><colgroup id="'),
|
|
1972
2102
|
writeChunk(destination, renderState.segmentPrefix),
|
|
@@ -1981,19 +2111,20 @@ function writeEndSegment(destination, formatContext) {
|
|
|
1981
2111
|
switch (formatContext.insertionMode) {
|
|
1982
2112
|
case 0:
|
|
1983
2113
|
case 1:
|
|
2114
|
+
case 3:
|
|
1984
2115
|
case 2:
|
|
1985
2116
|
return !!destination.write("</div>");
|
|
1986
|
-
case 3:
|
|
1987
|
-
return !!destination.write("</svg>");
|
|
1988
2117
|
case 4:
|
|
1989
|
-
return !!destination.write("</
|
|
2118
|
+
return !!destination.write("</svg>");
|
|
1990
2119
|
case 5:
|
|
1991
|
-
return !!destination.write("</
|
|
2120
|
+
return !!destination.write("</math>");
|
|
1992
2121
|
case 6:
|
|
1993
|
-
return !!destination.write("</
|
|
2122
|
+
return !!destination.write("</table>");
|
|
1994
2123
|
case 7:
|
|
1995
|
-
return !!destination.write("</
|
|
2124
|
+
return !!destination.write("</tbody></table>");
|
|
1996
2125
|
case 8:
|
|
2126
|
+
return !!destination.write("</tr></table>");
|
|
2127
|
+
case 9:
|
|
1997
2128
|
return !!destination.write("</colgroup></table>");
|
|
1998
2129
|
default:
|
|
1999
2130
|
throw Error("Unknown insertion mode. This is a bug in React.");
|
|
@@ -2270,7 +2401,7 @@ function prefetchDNS(href) {
|
|
|
2270
2401
|
escapeHrefForLinkHeaderURLContextReplacer
|
|
2271
2402
|
) +
|
|
2272
2403
|
">; rel=dns-prefetch"),
|
|
2273
|
-
|
|
2404
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
2274
2405
|
JSCompiler_temp
|
|
2275
2406
|
? ((renderState.resets.dns[href] = null),
|
|
2276
2407
|
resumableState.preconnects && (resumableState.preconnects += ", "),
|
|
@@ -2293,8 +2424,8 @@ function preconnect(href, crossOrigin) {
|
|
|
2293
2424
|
"use-credentials" === crossOrigin
|
|
2294
2425
|
? "credentials"
|
|
2295
2426
|
: "string" === typeof crossOrigin
|
|
2296
|
-
|
|
2297
|
-
|
|
2427
|
+
? "anonymous"
|
|
2428
|
+
: "default";
|
|
2298
2429
|
if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
|
|
2299
2430
|
resumableState.connectResources[bucket][href] = null;
|
|
2300
2431
|
resumableState = renderState.headers;
|
|
@@ -2319,7 +2450,7 @@ function preconnect(href, crossOrigin) {
|
|
|
2319
2450
|
}
|
|
2320
2451
|
JSCompiler_temp =
|
|
2321
2452
|
((header = JSCompiler_temp),
|
|
2322
|
-
|
|
2453
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
2323
2454
|
}
|
|
2324
2455
|
JSCompiler_temp
|
|
2325
2456
|
? ((renderState.resets.connect[bucket][href] = null),
|
|
@@ -2359,9 +2490,10 @@ function preload(href, as, options) {
|
|
|
2359
2490
|
var header;
|
|
2360
2491
|
resumableState &&
|
|
2361
2492
|
0 < resumableState.remainingCapacity &&
|
|
2493
|
+
"string" !== typeof imageSrcSet &&
|
|
2362
2494
|
"high" === fetchPriority &&
|
|
2363
2495
|
((header = getPreloadAsHeader(href, as, options)),
|
|
2364
|
-
|
|
2496
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2))
|
|
2365
2497
|
? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
|
|
2366
2498
|
resumableState.highImagePreloads &&
|
|
2367
2499
|
(resumableState.highImagePreloads += ", "),
|
|
@@ -2427,7 +2559,7 @@ function preload(href, as, options) {
|
|
|
2427
2559
|
0 < resumableState.remainingCapacity &&
|
|
2428
2560
|
"font" === as &&
|
|
2429
2561
|
((key = getPreloadAsHeader(href, as, options)),
|
|
2430
|
-
|
|
2562
|
+
0 <= (resumableState.remainingCapacity -= key.length + 2))
|
|
2431
2563
|
)
|
|
2432
2564
|
(renderState.resets.font[href] = PRELOAD_NO_CREDS),
|
|
2433
2565
|
resumableState.fontPreloads &&
|
|
@@ -2650,7 +2782,8 @@ function hoistStyleQueueDependency(styleQueue) {
|
|
|
2650
2782
|
function hoistStylesheetDependency(stylesheet) {
|
|
2651
2783
|
this.stylesheets.add(stylesheet);
|
|
2652
2784
|
}
|
|
2653
|
-
var
|
|
2785
|
+
var bind = Function.prototype.bind,
|
|
2786
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
2654
2787
|
function getComponentNameFromType(type) {
|
|
2655
2788
|
if (null == type) return null;
|
|
2656
2789
|
if ("function" === typeof type)
|
|
@@ -2661,8 +2794,6 @@ function getComponentNameFromType(type) {
|
|
|
2661
2794
|
switch (type) {
|
|
2662
2795
|
case REACT_FRAGMENT_TYPE:
|
|
2663
2796
|
return "Fragment";
|
|
2664
|
-
case REACT_PORTAL_TYPE:
|
|
2665
|
-
return "Portal";
|
|
2666
2797
|
case REACT_PROFILER_TYPE:
|
|
2667
2798
|
return "Profiler";
|
|
2668
2799
|
case REACT_STRICT_MODE_TYPE:
|
|
@@ -2671,9 +2802,13 @@ function getComponentNameFromType(type) {
|
|
|
2671
2802
|
return "Suspense";
|
|
2672
2803
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
2673
2804
|
return "SuspenseList";
|
|
2805
|
+
case REACT_ACTIVITY_TYPE:
|
|
2806
|
+
return "Activity";
|
|
2674
2807
|
}
|
|
2675
2808
|
if ("object" === typeof type)
|
|
2676
2809
|
switch (type.$$typeof) {
|
|
2810
|
+
case REACT_PORTAL_TYPE:
|
|
2811
|
+
return "Portal";
|
|
2677
2812
|
case REACT_CONTEXT_TYPE:
|
|
2678
2813
|
return (type.displayName || "Context") + ".Provider";
|
|
2679
2814
|
case REACT_CONSUMER_TYPE:
|
|
@@ -2761,18 +2896,15 @@ function switchContext(newSnapshot) {
|
|
|
2761
2896
|
(null === prev
|
|
2762
2897
|
? pushAllNext(newSnapshot)
|
|
2763
2898
|
: null === newSnapshot
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2899
|
+
? popAllPrevious(prev)
|
|
2900
|
+
: prev.depth === newSnapshot.depth
|
|
2901
|
+
? popToNearestCommonAncestor(prev, newSnapshot)
|
|
2902
|
+
: prev.depth > newSnapshot.depth
|
|
2903
|
+
? popPreviousToCommonLevel(prev, newSnapshot)
|
|
2904
|
+
: popNextToCommonLevel(prev, newSnapshot),
|
|
2770
2905
|
(currentActiveSnapshot = newSnapshot));
|
|
2771
2906
|
}
|
|
2772
2907
|
var classComponentUpdater = {
|
|
2773
|
-
isMounted: function () {
|
|
2774
|
-
return !1;
|
|
2775
|
-
},
|
|
2776
2908
|
enqueueSetState: function (inst, payload) {
|
|
2777
2909
|
inst = inst._reactInternals;
|
|
2778
2910
|
null !== inst.queue && inst.queue.push(payload);
|
|
@@ -2821,7 +2953,7 @@ function clz32Fallback(x) {
|
|
|
2821
2953
|
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
2822
2954
|
}
|
|
2823
2955
|
var SuspenseException = Error(
|
|
2824
|
-
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use
|
|
2956
|
+
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
|
|
2825
2957
|
);
|
|
2826
2958
|
function noop$2() {}
|
|
2827
2959
|
function trackUsedThenable(thenableState, thenable, index) {
|
|
@@ -2913,9 +3045,9 @@ function createWorkInProgressHook() {
|
|
|
2913
3045
|
(firstWorkInProgressHook = workInProgressHook = createHook()))
|
|
2914
3046
|
: ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
|
|
2915
3047
|
: null === workInProgressHook.next
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
3048
|
+
? ((isReRender = !1),
|
|
3049
|
+
(workInProgressHook = workInProgressHook.next = createHook()))
|
|
3050
|
+
: ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
|
|
2919
3051
|
return workInProgressHook;
|
|
2920
3052
|
}
|
|
2921
3053
|
function getThenableStateAfterSuspending() {
|
|
@@ -2962,8 +3094,8 @@ function useReducer(reducer, initialArg, init) {
|
|
|
2962
3094
|
? initialArg()
|
|
2963
3095
|
: initialArg
|
|
2964
3096
|
: void 0 !== init
|
|
2965
|
-
|
|
2966
|
-
|
|
3097
|
+
? init(initialArg)
|
|
3098
|
+
: initialArg;
|
|
2967
3099
|
workInProgressHook.memoizedState = reducer;
|
|
2968
3100
|
reducer = workInProgressHook.queue = { last: null, dispatch: null };
|
|
2969
3101
|
reducer = reducer.dispatch = dispatchAction.bind(
|
|
@@ -3093,100 +3225,106 @@ function unsupportedRefresh() {
|
|
|
3093
3225
|
}
|
|
3094
3226
|
function noop$1() {}
|
|
3095
3227
|
var HooksDispatcher = {
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3228
|
+
readContext: function (context) {
|
|
3229
|
+
return context._currentValue;
|
|
3230
|
+
},
|
|
3231
|
+
use: function (usable) {
|
|
3232
|
+
if (null !== usable && "object" === typeof usable) {
|
|
3233
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
3234
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue;
|
|
3235
|
+
}
|
|
3236
|
+
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
3237
|
+
},
|
|
3238
|
+
useContext: function (context) {
|
|
3239
|
+
resolveCurrentlyRenderingComponent();
|
|
3240
|
+
return context._currentValue;
|
|
3241
|
+
},
|
|
3242
|
+
useMemo: useMemo,
|
|
3243
|
+
useReducer: useReducer,
|
|
3244
|
+
useRef: function (initialValue) {
|
|
3245
|
+
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
3246
|
+
workInProgressHook = createWorkInProgressHook();
|
|
3247
|
+
var previousRef = workInProgressHook.memoizedState;
|
|
3248
|
+
return null === previousRef
|
|
3249
|
+
? ((initialValue = { current: initialValue }),
|
|
3250
|
+
(workInProgressHook.memoizedState = initialValue))
|
|
3251
|
+
: previousRef;
|
|
3252
|
+
},
|
|
3253
|
+
useState: function (initialState) {
|
|
3254
|
+
return useReducer(basicStateReducer, initialState);
|
|
3255
|
+
},
|
|
3256
|
+
useInsertionEffect: noop$1,
|
|
3257
|
+
useLayoutEffect: noop$1,
|
|
3258
|
+
useCallback: function (callback, deps) {
|
|
3259
|
+
return useMemo(function () {
|
|
3260
|
+
return callback;
|
|
3261
|
+
}, deps);
|
|
3262
|
+
},
|
|
3263
|
+
useImperativeHandle: noop$1,
|
|
3264
|
+
useEffect: noop$1,
|
|
3265
|
+
useDebugValue: noop$1,
|
|
3266
|
+
useDeferredValue: function (value, initialValue) {
|
|
3267
|
+
resolveCurrentlyRenderingComponent();
|
|
3268
|
+
return void 0 !== initialValue ? initialValue : value;
|
|
3269
|
+
},
|
|
3270
|
+
useTransition: function () {
|
|
3271
|
+
resolveCurrentlyRenderingComponent();
|
|
3272
|
+
return [!1, unsupportedStartTransition];
|
|
3273
|
+
},
|
|
3274
|
+
useId: function () {
|
|
3275
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
3276
|
+
var overflow = JSCompiler_inline_result.overflow;
|
|
3277
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
3278
|
+
JSCompiler_inline_result =
|
|
3279
|
+
(
|
|
3280
|
+
JSCompiler_inline_result &
|
|
3281
|
+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
3282
|
+
).toString(32) + overflow;
|
|
3283
|
+
var resumableState = currentResumableState;
|
|
3284
|
+
if (null === resumableState)
|
|
3285
|
+
throw Error(
|
|
3286
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
3287
|
+
);
|
|
3288
|
+
overflow = localIdCounter++;
|
|
3289
|
+
JSCompiler_inline_result =
|
|
3290
|
+
"\u00ab" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
3291
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
3292
|
+
return JSCompiler_inline_result + "\u00bb";
|
|
3293
|
+
},
|
|
3294
|
+
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
|
3295
|
+
if (void 0 === getServerSnapshot)
|
|
3296
|
+
throw Error(
|
|
3297
|
+
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
|
|
3298
|
+
);
|
|
3299
|
+
return getServerSnapshot();
|
|
3300
|
+
},
|
|
3301
|
+
useOptimistic: function (passthrough) {
|
|
3302
|
+
resolveCurrentlyRenderingComponent();
|
|
3303
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
3304
|
+
},
|
|
3305
|
+
useActionState: useActionState,
|
|
3306
|
+
useFormState: useActionState,
|
|
3307
|
+
useHostTransitionStatus: function () {
|
|
3308
|
+
resolveCurrentlyRenderingComponent();
|
|
3309
|
+
return sharedNotPendingObject;
|
|
3310
|
+
},
|
|
3311
|
+
useMemoCache: function (size) {
|
|
3312
|
+
for (var data = Array(size), i = 0; i < size; i++)
|
|
3313
|
+
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
3314
|
+
return data;
|
|
3315
|
+
},
|
|
3316
|
+
useCacheRefresh: function () {
|
|
3317
|
+
return unsupportedRefresh;
|
|
3103
3318
|
}
|
|
3104
|
-
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
3105
|
-
},
|
|
3106
|
-
useContext: function (context) {
|
|
3107
|
-
resolveCurrentlyRenderingComponent();
|
|
3108
|
-
return context._currentValue;
|
|
3109
|
-
},
|
|
3110
|
-
useMemo: useMemo,
|
|
3111
|
-
useReducer: useReducer,
|
|
3112
|
-
useRef: function (initialValue) {
|
|
3113
|
-
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
3114
|
-
workInProgressHook = createWorkInProgressHook();
|
|
3115
|
-
var previousRef = workInProgressHook.memoizedState;
|
|
3116
|
-
return null === previousRef
|
|
3117
|
-
? ((initialValue = { current: initialValue }),
|
|
3118
|
-
(workInProgressHook.memoizedState = initialValue))
|
|
3119
|
-
: previousRef;
|
|
3120
|
-
},
|
|
3121
|
-
useState: function (initialState) {
|
|
3122
|
-
return useReducer(basicStateReducer, initialState);
|
|
3123
|
-
},
|
|
3124
|
-
useInsertionEffect: noop$1,
|
|
3125
|
-
useLayoutEffect: noop$1,
|
|
3126
|
-
useCallback: function (callback, deps) {
|
|
3127
|
-
return useMemo(function () {
|
|
3128
|
-
return callback;
|
|
3129
|
-
}, deps);
|
|
3130
|
-
},
|
|
3131
|
-
useImperativeHandle: noop$1,
|
|
3132
|
-
useEffect: noop$1,
|
|
3133
|
-
useDebugValue: noop$1,
|
|
3134
|
-
useDeferredValue: function (value, initialValue) {
|
|
3135
|
-
resolveCurrentlyRenderingComponent();
|
|
3136
|
-
return void 0 !== initialValue ? initialValue : value;
|
|
3137
|
-
},
|
|
3138
|
-
useTransition: function () {
|
|
3139
|
-
resolveCurrentlyRenderingComponent();
|
|
3140
|
-
return [!1, unsupportedStartTransition];
|
|
3141
3319
|
},
|
|
3142
|
-
|
|
3143
|
-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
3144
|
-
var overflow = JSCompiler_inline_result.overflow;
|
|
3145
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
3146
|
-
JSCompiler_inline_result =
|
|
3147
|
-
(
|
|
3148
|
-
JSCompiler_inline_result &
|
|
3149
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
3150
|
-
).toString(32) + overflow;
|
|
3151
|
-
var resumableState = currentResumableState;
|
|
3152
|
-
if (null === resumableState)
|
|
3153
|
-
throw Error(
|
|
3154
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
3155
|
-
);
|
|
3156
|
-
overflow = localIdCounter++;
|
|
3157
|
-
JSCompiler_inline_result =
|
|
3158
|
-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
3159
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
3160
|
-
return JSCompiler_inline_result + ":";
|
|
3161
|
-
},
|
|
3162
|
-
useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
|
|
3163
|
-
if (void 0 === getServerSnapshot)
|
|
3164
|
-
throw Error(
|
|
3165
|
-
"Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."
|
|
3166
|
-
);
|
|
3167
|
-
return getServerSnapshot();
|
|
3168
|
-
},
|
|
3169
|
-
useCacheRefresh: function () {
|
|
3170
|
-
return unsupportedRefresh;
|
|
3171
|
-
},
|
|
3172
|
-
useHostTransitionStatus: function () {
|
|
3173
|
-
resolveCurrentlyRenderingComponent();
|
|
3174
|
-
return sharedNotPendingObject;
|
|
3175
|
-
},
|
|
3176
|
-
useOptimistic: function (passthrough) {
|
|
3177
|
-
resolveCurrentlyRenderingComponent();
|
|
3178
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
3179
|
-
}
|
|
3180
|
-
};
|
|
3181
|
-
HooksDispatcher.useFormState = useActionState;
|
|
3182
|
-
HooksDispatcher.useActionState = useActionState;
|
|
3183
|
-
var currentResumableState = null,
|
|
3320
|
+
currentResumableState = null,
|
|
3184
3321
|
DefaultAsyncDispatcher = {
|
|
3185
3322
|
getCacheForType: function () {
|
|
3186
3323
|
throw Error("Not implemented.");
|
|
3187
3324
|
}
|
|
3188
3325
|
},
|
|
3189
|
-
prefix
|
|
3326
|
+
prefix,
|
|
3327
|
+
suffix;
|
|
3190
3328
|
function describeBuiltInComponentFrame(name) {
|
|
3191
3329
|
if (void 0 === prefix)
|
|
3192
3330
|
try {
|
|
@@ -3194,8 +3332,14 @@ function describeBuiltInComponentFrame(name) {
|
|
|
3194
3332
|
} catch (x) {
|
|
3195
3333
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
3196
3334
|
prefix = (match && match[1]) || "";
|
|
3335
|
+
suffix =
|
|
3336
|
+
-1 < x.stack.indexOf("\n at")
|
|
3337
|
+
? " (<anonymous>)"
|
|
3338
|
+
: -1 < x.stack.indexOf("@")
|
|
3339
|
+
? "@unknown:0:0"
|
|
3340
|
+
: "";
|
|
3197
3341
|
}
|
|
3198
|
-
return "\n" + prefix + name;
|
|
3342
|
+
return "\n" + prefix + name + suffix;
|
|
3199
3343
|
}
|
|
3200
3344
|
var reentry = !1;
|
|
3201
3345
|
function describeNativeComponentFrame(fn, construct) {
|
|
@@ -3203,62 +3347,64 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
3203
3347
|
reentry = !0;
|
|
3204
3348
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
3205
3349
|
Error.prepareStackTrace = void 0;
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
};
|
|
3213
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
3214
|
-
set: function () {
|
|
3350
|
+
try {
|
|
3351
|
+
var RunInRootFrame = {
|
|
3352
|
+
DetermineComponentFrameRoot: function () {
|
|
3353
|
+
try {
|
|
3354
|
+
if (construct) {
|
|
3355
|
+
var Fake = function () {
|
|
3215
3356
|
throw Error();
|
|
3357
|
+
};
|
|
3358
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
3359
|
+
set: function () {
|
|
3360
|
+
throw Error();
|
|
3361
|
+
}
|
|
3362
|
+
});
|
|
3363
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
3364
|
+
try {
|
|
3365
|
+
Reflect.construct(Fake, []);
|
|
3366
|
+
} catch (x) {
|
|
3367
|
+
var control = x;
|
|
3368
|
+
}
|
|
3369
|
+
Reflect.construct(fn, [], Fake);
|
|
3370
|
+
} else {
|
|
3371
|
+
try {
|
|
3372
|
+
Fake.call();
|
|
3373
|
+
} catch (x$24) {
|
|
3374
|
+
control = x$24;
|
|
3375
|
+
}
|
|
3376
|
+
fn.call(Fake.prototype);
|
|
3216
3377
|
}
|
|
3217
|
-
});
|
|
3218
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
|
3219
|
-
try {
|
|
3220
|
-
Reflect.construct(Fake, []);
|
|
3221
|
-
} catch (x) {
|
|
3222
|
-
var control = x;
|
|
3223
|
-
}
|
|
3224
|
-
Reflect.construct(fn, [], Fake);
|
|
3225
3378
|
} else {
|
|
3226
3379
|
try {
|
|
3227
|
-
|
|
3228
|
-
} catch (x$
|
|
3229
|
-
control = x$
|
|
3380
|
+
throw Error();
|
|
3381
|
+
} catch (x$25) {
|
|
3382
|
+
control = x$25;
|
|
3230
3383
|
}
|
|
3231
|
-
fn
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
try {
|
|
3235
|
-
throw Error();
|
|
3236
|
-
} catch (x$25) {
|
|
3237
|
-
control = x$25;
|
|
3384
|
+
(Fake = fn()) &&
|
|
3385
|
+
"function" === typeof Fake.catch &&
|
|
3386
|
+
Fake.catch(function () {});
|
|
3238
3387
|
}
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3388
|
+
} catch (sample) {
|
|
3389
|
+
if (sample && control && "string" === typeof sample.stack)
|
|
3390
|
+
return [sample.stack, control.stack];
|
|
3242
3391
|
}
|
|
3243
|
-
|
|
3244
|
-
if (sample && control && "string" === typeof sample.stack)
|
|
3245
|
-
return [sample.stack, control.stack];
|
|
3392
|
+
return [null, null];
|
|
3246
3393
|
}
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
try {
|
|
3394
|
+
};
|
|
3395
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
|
3396
|
+
"DetermineComponentFrameRoot";
|
|
3397
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
3398
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
3399
|
+
"name"
|
|
3400
|
+
);
|
|
3401
|
+
namePropDescriptor &&
|
|
3402
|
+
namePropDescriptor.configurable &&
|
|
3403
|
+
Object.defineProperty(
|
|
3404
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
3405
|
+
"name",
|
|
3406
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
3407
|
+
);
|
|
3262
3408
|
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
|
|
3263
3409
|
sampleStack = _RunInRootFrame$Deter[0],
|
|
3264
3410
|
controlStack = _RunInRootFrame$Deter[1];
|
|
@@ -3329,11 +3475,116 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
3329
3475
|
? describeBuiltInComponentFrame(previousPrepareStackTrace)
|
|
3330
3476
|
: "";
|
|
3331
3477
|
}
|
|
3478
|
+
function describeComponentStackByType(type) {
|
|
3479
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
3480
|
+
if ("function" === typeof type)
|
|
3481
|
+
return type.prototype && type.prototype.isReactComponent
|
|
3482
|
+
? describeNativeComponentFrame(type, !0)
|
|
3483
|
+
: describeNativeComponentFrame(type, !1);
|
|
3484
|
+
if ("object" === typeof type && null !== type) {
|
|
3485
|
+
switch (type.$$typeof) {
|
|
3486
|
+
case REACT_FORWARD_REF_TYPE:
|
|
3487
|
+
return describeNativeComponentFrame(type.render, !1);
|
|
3488
|
+
case REACT_MEMO_TYPE:
|
|
3489
|
+
return describeNativeComponentFrame(type.type, !1);
|
|
3490
|
+
case REACT_LAZY_TYPE:
|
|
3491
|
+
var lazyComponent = type,
|
|
3492
|
+
payload = lazyComponent._payload;
|
|
3493
|
+
lazyComponent = lazyComponent._init;
|
|
3494
|
+
try {
|
|
3495
|
+
type = lazyComponent(payload);
|
|
3496
|
+
} catch (x) {
|
|
3497
|
+
return describeBuiltInComponentFrame("Lazy");
|
|
3498
|
+
}
|
|
3499
|
+
return describeComponentStackByType(type);
|
|
3500
|
+
}
|
|
3501
|
+
if ("string" === typeof type.name)
|
|
3502
|
+
return (
|
|
3503
|
+
(payload = type.env),
|
|
3504
|
+
describeBuiltInComponentFrame(
|
|
3505
|
+
type.name + (payload ? " [" + payload + "]" : "")
|
|
3506
|
+
)
|
|
3507
|
+
);
|
|
3508
|
+
}
|
|
3509
|
+
switch (type) {
|
|
3510
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
3511
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
3512
|
+
case REACT_SUSPENSE_TYPE:
|
|
3513
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
3514
|
+
}
|
|
3515
|
+
return "";
|
|
3516
|
+
}
|
|
3332
3517
|
function defaultErrorHandler(error) {
|
|
3333
|
-
|
|
3518
|
+
if (
|
|
3519
|
+
"object" === typeof error &&
|
|
3520
|
+
null !== error &&
|
|
3521
|
+
"string" === typeof error.environmentName
|
|
3522
|
+
) {
|
|
3523
|
+
var JSCompiler_inline_result = error.environmentName;
|
|
3524
|
+
error = [error].slice(0);
|
|
3525
|
+
"string" === typeof error[0]
|
|
3526
|
+
? error.splice(
|
|
3527
|
+
0,
|
|
3528
|
+
1,
|
|
3529
|
+
"%c%s%c " + error[0],
|
|
3530
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
3531
|
+
" " + JSCompiler_inline_result + " ",
|
|
3532
|
+
""
|
|
3533
|
+
)
|
|
3534
|
+
: error.splice(
|
|
3535
|
+
0,
|
|
3536
|
+
0,
|
|
3537
|
+
"%c%s%c ",
|
|
3538
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
3539
|
+
" " + JSCompiler_inline_result + " ",
|
|
3540
|
+
""
|
|
3541
|
+
);
|
|
3542
|
+
error.unshift(console);
|
|
3543
|
+
JSCompiler_inline_result = bind.apply(console.error, error);
|
|
3544
|
+
JSCompiler_inline_result();
|
|
3545
|
+
} else console.error(error);
|
|
3334
3546
|
return null;
|
|
3335
3547
|
}
|
|
3336
3548
|
function noop() {}
|
|
3549
|
+
function RequestInstance(
|
|
3550
|
+
resumableState,
|
|
3551
|
+
renderState,
|
|
3552
|
+
rootFormatContext,
|
|
3553
|
+
progressiveChunkSize,
|
|
3554
|
+
onError,
|
|
3555
|
+
onAllReady,
|
|
3556
|
+
onShellReady,
|
|
3557
|
+
onShellError,
|
|
3558
|
+
onFatalError,
|
|
3559
|
+
onPostpone,
|
|
3560
|
+
formState
|
|
3561
|
+
) {
|
|
3562
|
+
var abortSet = new Set();
|
|
3563
|
+
this.destination = null;
|
|
3564
|
+
this.flushScheduled = !1;
|
|
3565
|
+
this.resumableState = resumableState;
|
|
3566
|
+
this.renderState = renderState;
|
|
3567
|
+
this.rootFormatContext = rootFormatContext;
|
|
3568
|
+
this.progressiveChunkSize =
|
|
3569
|
+
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
3570
|
+
this.status = 10;
|
|
3571
|
+
this.fatalError = null;
|
|
3572
|
+
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
3573
|
+
this.completedPreambleSegments = this.completedRootSegment = null;
|
|
3574
|
+
this.abortableTasks = abortSet;
|
|
3575
|
+
this.pingedTasks = [];
|
|
3576
|
+
this.clientRenderedBoundaries = [];
|
|
3577
|
+
this.completedBoundaries = [];
|
|
3578
|
+
this.partialBoundaries = [];
|
|
3579
|
+
this.trackedPostpones = null;
|
|
3580
|
+
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
|
3581
|
+
this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
|
|
3582
|
+
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
|
3583
|
+
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
|
3584
|
+
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
|
3585
|
+
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
3586
|
+
this.formState = void 0 === formState ? null : formState;
|
|
3587
|
+
}
|
|
3337
3588
|
function createRequest(
|
|
3338
3589
|
children,
|
|
3339
3590
|
resumableState,
|
|
@@ -3348,36 +3599,19 @@ function createRequest(
|
|
|
3348
3599
|
onPostpone,
|
|
3349
3600
|
formState
|
|
3350
3601
|
) {
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
allPendingTasks: 0,
|
|
3365
|
-
pendingRootTasks: 0,
|
|
3366
|
-
completedRootSegment: null,
|
|
3367
|
-
abortableTasks: abortSet,
|
|
3368
|
-
pingedTasks: pingedTasks,
|
|
3369
|
-
clientRenderedBoundaries: [],
|
|
3370
|
-
completedBoundaries: [],
|
|
3371
|
-
partialBoundaries: [],
|
|
3372
|
-
trackedPostpones: null,
|
|
3373
|
-
onError: void 0 === onError ? defaultErrorHandler : onError,
|
|
3374
|
-
onPostpone: void 0 === onPostpone ? noop : onPostpone,
|
|
3375
|
-
onAllReady: void 0 === onAllReady ? noop : onAllReady,
|
|
3376
|
-
onShellReady: void 0 === onShellReady ? noop : onShellReady,
|
|
3377
|
-
onShellError: void 0 === onShellError ? noop : onShellError,
|
|
3378
|
-
onFatalError: void 0 === onFatalError ? noop : onFatalError,
|
|
3379
|
-
formState: void 0 === formState ? null : formState
|
|
3380
|
-
};
|
|
3602
|
+
resumableState = new RequestInstance(
|
|
3603
|
+
resumableState,
|
|
3604
|
+
renderState,
|
|
3605
|
+
rootFormatContext,
|
|
3606
|
+
progressiveChunkSize,
|
|
3607
|
+
onError,
|
|
3608
|
+
onAllReady,
|
|
3609
|
+
onShellReady,
|
|
3610
|
+
onShellError,
|
|
3611
|
+
onFatalError,
|
|
3612
|
+
onPostpone,
|
|
3613
|
+
formState
|
|
3614
|
+
);
|
|
3381
3615
|
renderState = createPendingSegment(
|
|
3382
3616
|
resumableState,
|
|
3383
3617
|
0,
|
|
@@ -3395,16 +3629,17 @@ function createRequest(
|
|
|
3395
3629
|
null,
|
|
3396
3630
|
renderState,
|
|
3397
3631
|
null,
|
|
3398
|
-
|
|
3632
|
+
null,
|
|
3633
|
+
resumableState.abortableTasks,
|
|
3399
3634
|
null,
|
|
3400
3635
|
rootFormatContext,
|
|
3401
|
-
emptyContextObject,
|
|
3402
3636
|
null,
|
|
3403
3637
|
emptyTreeContext,
|
|
3404
3638
|
null,
|
|
3405
3639
|
!1
|
|
3406
3640
|
);
|
|
3407
|
-
|
|
3641
|
+
pushComponentStack(children);
|
|
3642
|
+
resumableState.pingedTasks.push(children);
|
|
3408
3643
|
return resumableState;
|
|
3409
3644
|
}
|
|
3410
3645
|
var currentRequest = null;
|
|
@@ -3412,9 +3647,20 @@ function pingTask(request, task) {
|
|
|
3412
3647
|
request.pingedTasks.push(task);
|
|
3413
3648
|
1 === request.pingedTasks.length &&
|
|
3414
3649
|
((request.flushScheduled = null !== request.destination),
|
|
3415
|
-
|
|
3650
|
+
null !== request.trackedPostpones || 10 === request.status
|
|
3651
|
+
? scheduleMicrotask(function () {
|
|
3652
|
+
return performWork(request);
|
|
3653
|
+
})
|
|
3654
|
+
: setTimeout(function () {
|
|
3655
|
+
return performWork(request);
|
|
3656
|
+
}, 0));
|
|
3416
3657
|
}
|
|
3417
|
-
function createSuspenseBoundary(
|
|
3658
|
+
function createSuspenseBoundary(
|
|
3659
|
+
request,
|
|
3660
|
+
fallbackAbortableTasks,
|
|
3661
|
+
contentPreamble,
|
|
3662
|
+
fallbackPreamble
|
|
3663
|
+
) {
|
|
3418
3664
|
return {
|
|
3419
3665
|
status: 0,
|
|
3420
3666
|
rootSegmentID: -1,
|
|
@@ -3426,6 +3672,8 @@ function createSuspenseBoundary(request, fallbackAbortableTasks) {
|
|
|
3426
3672
|
errorDigest: null,
|
|
3427
3673
|
contentState: createHoistableState(),
|
|
3428
3674
|
fallbackState: createHoistableState(),
|
|
3675
|
+
contentPreamble: contentPreamble,
|
|
3676
|
+
fallbackPreamble: fallbackPreamble,
|
|
3429
3677
|
trackedContentKeyPath: null,
|
|
3430
3678
|
trackedFallbackNode: null
|
|
3431
3679
|
};
|
|
@@ -3437,11 +3685,11 @@ function createRenderTask(
|
|
|
3437
3685
|
childIndex,
|
|
3438
3686
|
blockedBoundary,
|
|
3439
3687
|
blockedSegment,
|
|
3688
|
+
blockedPreamble,
|
|
3440
3689
|
hoistableState,
|
|
3441
3690
|
abortSet,
|
|
3442
3691
|
keyPath,
|
|
3443
3692
|
formatContext,
|
|
3444
|
-
legacyContext,
|
|
3445
3693
|
context,
|
|
3446
3694
|
treeContext,
|
|
3447
3695
|
componentStack,
|
|
@@ -3460,11 +3708,11 @@ function createRenderTask(
|
|
|
3460
3708
|
},
|
|
3461
3709
|
blockedBoundary: blockedBoundary,
|
|
3462
3710
|
blockedSegment: blockedSegment,
|
|
3711
|
+
blockedPreamble: blockedPreamble,
|
|
3463
3712
|
hoistableState: hoistableState,
|
|
3464
3713
|
abortSet: abortSet,
|
|
3465
3714
|
keyPath: keyPath,
|
|
3466
3715
|
formatContext: formatContext,
|
|
3467
|
-
legacyContext: legacyContext,
|
|
3468
3716
|
context: context,
|
|
3469
3717
|
treeContext: treeContext,
|
|
3470
3718
|
componentStack: componentStack,
|
|
@@ -3485,7 +3733,6 @@ function createReplayTask(
|
|
|
3485
3733
|
abortSet,
|
|
3486
3734
|
keyPath,
|
|
3487
3735
|
formatContext,
|
|
3488
|
-
legacyContext,
|
|
3489
3736
|
context,
|
|
3490
3737
|
treeContext,
|
|
3491
3738
|
componentStack,
|
|
@@ -3505,11 +3752,11 @@ function createReplayTask(
|
|
|
3505
3752
|
},
|
|
3506
3753
|
blockedBoundary: blockedBoundary,
|
|
3507
3754
|
blockedSegment: null,
|
|
3755
|
+
blockedPreamble: null,
|
|
3508
3756
|
hoistableState: hoistableState,
|
|
3509
3757
|
abortSet: abortSet,
|
|
3510
3758
|
keyPath: keyPath,
|
|
3511
3759
|
formatContext: formatContext,
|
|
3512
|
-
legacyContext: legacyContext,
|
|
3513
3760
|
context: context,
|
|
3514
3761
|
treeContext: treeContext,
|
|
3515
3762
|
componentStack: componentStack,
|
|
@@ -3529,58 +3776,66 @@ function createPendingSegment(
|
|
|
3529
3776
|
) {
|
|
3530
3777
|
return {
|
|
3531
3778
|
status: 0,
|
|
3779
|
+
parentFlushed: !1,
|
|
3532
3780
|
id: -1,
|
|
3533
3781
|
index: index,
|
|
3534
|
-
parentFlushed: !1,
|
|
3535
3782
|
chunks: [],
|
|
3536
3783
|
children: [],
|
|
3784
|
+
preambleChildren: [],
|
|
3537
3785
|
parentFormatContext: parentFormatContext,
|
|
3538
3786
|
boundary: boundary,
|
|
3539
3787
|
lastPushedText: lastPushedText,
|
|
3540
3788
|
textEmbedded: textEmbedded
|
|
3541
3789
|
};
|
|
3542
3790
|
}
|
|
3543
|
-
function
|
|
3544
|
-
|
|
3791
|
+
function pushComponentStack(task) {
|
|
3792
|
+
var node = task.node;
|
|
3793
|
+
if ("object" === typeof node && null !== node)
|
|
3794
|
+
switch (node.$$typeof) {
|
|
3795
|
+
case REACT_ELEMENT_TYPE:
|
|
3796
|
+
task.componentStack = { parent: task.componentStack, type: node.type };
|
|
3797
|
+
}
|
|
3545
3798
|
}
|
|
3546
|
-
function getThrownInfo(
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3799
|
+
function getThrownInfo(node$jscomp$0) {
|
|
3800
|
+
var errorInfo = {};
|
|
3801
|
+
node$jscomp$0 &&
|
|
3802
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
3803
|
+
configurable: !0,
|
|
3804
|
+
enumerable: !0,
|
|
3805
|
+
get: function () {
|
|
3806
|
+
try {
|
|
3807
|
+
var info = "",
|
|
3808
|
+
node = node$jscomp$0;
|
|
3809
|
+
do
|
|
3810
|
+
(info += describeComponentStackByType(node.type)),
|
|
3811
|
+
(node = node.parent);
|
|
3812
|
+
while (node);
|
|
3813
|
+
var JSCompiler_inline_result = info;
|
|
3814
|
+
} catch (x) {
|
|
3815
|
+
JSCompiler_inline_result =
|
|
3816
|
+
"\nError generating stack: " + x.message + "\n" + x.stack;
|
|
3560
3817
|
}
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
JSCompiler_temp = { componentStack: JSCompiler_temp };
|
|
3569
|
-
} else JSCompiler_temp = {};
|
|
3570
|
-
return JSCompiler_temp;
|
|
3818
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
3819
|
+
value: JSCompiler_inline_result
|
|
3820
|
+
});
|
|
3821
|
+
return JSCompiler_inline_result;
|
|
3822
|
+
}
|
|
3823
|
+
});
|
|
3824
|
+
return errorInfo;
|
|
3571
3825
|
}
|
|
3572
3826
|
function logRecoverableError(request, error, errorInfo) {
|
|
3573
|
-
request = request.onError
|
|
3574
|
-
|
|
3827
|
+
request = request.onError;
|
|
3828
|
+
error = request(error, errorInfo);
|
|
3829
|
+
if (null == error || "string" === typeof error) return error;
|
|
3575
3830
|
}
|
|
3576
3831
|
function fatalError(request, error) {
|
|
3577
|
-
var onShellError = request.onShellError
|
|
3578
|
-
|
|
3579
|
-
onShellError = request.onFatalError;
|
|
3832
|
+
var onShellError = request.onShellError,
|
|
3833
|
+
onFatalError = request.onFatalError;
|
|
3580
3834
|
onShellError(error);
|
|
3835
|
+
onFatalError(error);
|
|
3581
3836
|
null !== request.destination
|
|
3582
|
-
? ((request.status =
|
|
3583
|
-
: ((request.status =
|
|
3837
|
+
? ((request.status = 14), closeWithError(request.destination, error))
|
|
3838
|
+
: ((request.status = 13), (request.fatalError = error));
|
|
3584
3839
|
}
|
|
3585
3840
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
|
3586
3841
|
var prevThenableState = task.thenableState;
|
|
@@ -3633,171 +3888,179 @@ function finishFunctionComponent(
|
|
|
3633
3888
|
renderNode(request, task, children, -1),
|
|
3634
3889
|
(task.treeContext = keyPath))
|
|
3635
3890
|
: didEmitActionStateMarkers
|
|
3636
|
-
|
|
3637
|
-
|
|
3891
|
+
? renderNode(request, task, children, -1)
|
|
3892
|
+
: renderNodeDestructive(request, task, children, -1);
|
|
3638
3893
|
task.keyPath = actionStateCount;
|
|
3639
3894
|
}
|
|
3640
3895
|
function renderElement(request, task, keyPath, type, props, ref) {
|
|
3641
3896
|
if ("function" === typeof type)
|
|
3642
3897
|
if (type.prototype && type.prototype.isReactComponent) {
|
|
3643
|
-
var
|
|
3898
|
+
var newProps = props;
|
|
3644
3899
|
if ("ref" in props) {
|
|
3645
|
-
|
|
3900
|
+
newProps = {};
|
|
3646
3901
|
for (var propName in props)
|
|
3647
|
-
"ref" !== propName &&
|
|
3648
|
-
(JSCompiler_inline_result[propName] = props[propName]);
|
|
3902
|
+
"ref" !== propName && (newProps[propName] = props[propName]);
|
|
3649
3903
|
}
|
|
3650
3904
|
var defaultProps = type.defaultProps;
|
|
3651
3905
|
if (defaultProps) {
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
props
|
|
3657
|
-
));
|
|
3658
|
-
for (var propName$31 in defaultProps)
|
|
3659
|
-
void 0 === JSCompiler_inline_result[propName$31] &&
|
|
3660
|
-
(JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
|
|
3906
|
+
newProps === props && (newProps = assign({}, newProps, props));
|
|
3907
|
+
for (var propName$33 in defaultProps)
|
|
3908
|
+
void 0 === newProps[propName$33] &&
|
|
3909
|
+
(newProps[propName$33] = defaultProps[propName$33]);
|
|
3661
3910
|
}
|
|
3662
|
-
props =
|
|
3663
|
-
|
|
3664
|
-
defaultProps =
|
|
3911
|
+
props = newProps;
|
|
3912
|
+
newProps = emptyContextObject;
|
|
3913
|
+
defaultProps = type.contextType;
|
|
3914
|
+
"object" === typeof defaultProps &&
|
|
3915
|
+
null !== defaultProps &&
|
|
3916
|
+
(newProps = defaultProps._currentValue);
|
|
3917
|
+
newProps = new type(props, newProps);
|
|
3918
|
+
var initialState = void 0 !== newProps.state ? newProps.state : null;
|
|
3919
|
+
newProps.updater = classComponentUpdater;
|
|
3920
|
+
newProps.props = props;
|
|
3921
|
+
newProps.state = initialState;
|
|
3922
|
+
defaultProps = { queue: [], replace: !1 };
|
|
3923
|
+
newProps._reactInternals = defaultProps;
|
|
3665
3924
|
ref = type.contextType;
|
|
3666
|
-
|
|
3667
|
-
null !== ref
|
|
3668
|
-
|
|
3669
|
-
defaultProps = new type(JSCompiler_inline_result, defaultProps);
|
|
3670
|
-
propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
|
|
3671
|
-
defaultProps.updater = classComponentUpdater;
|
|
3672
|
-
defaultProps.props = JSCompiler_inline_result;
|
|
3673
|
-
defaultProps.state = propName$31;
|
|
3674
|
-
ref = { queue: [], replace: !1 };
|
|
3675
|
-
defaultProps._reactInternals = ref;
|
|
3676
|
-
var contextType = type.contextType;
|
|
3677
|
-
defaultProps.context =
|
|
3678
|
-
"object" === typeof contextType && null !== contextType
|
|
3679
|
-
? contextType._currentValue
|
|
3925
|
+
newProps.context =
|
|
3926
|
+
"object" === typeof ref && null !== ref
|
|
3927
|
+
? ref._currentValue
|
|
3680
3928
|
: emptyContextObject;
|
|
3681
|
-
|
|
3682
|
-
"function" === typeof
|
|
3683
|
-
((
|
|
3684
|
-
(
|
|
3685
|
-
null ===
|
|
3686
|
-
?
|
|
3687
|
-
: assign({},
|
|
3688
|
-
(
|
|
3929
|
+
ref = type.getDerivedStateFromProps;
|
|
3930
|
+
"function" === typeof ref &&
|
|
3931
|
+
((ref = ref(props, initialState)),
|
|
3932
|
+
(initialState =
|
|
3933
|
+
null === ref || void 0 === ref
|
|
3934
|
+
? initialState
|
|
3935
|
+
: assign({}, initialState, ref)),
|
|
3936
|
+
(newProps.state = initialState));
|
|
3689
3937
|
if (
|
|
3690
3938
|
"function" !== typeof type.getDerivedStateFromProps &&
|
|
3691
|
-
"function" !== typeof
|
|
3692
|
-
("function" === typeof
|
|
3693
|
-
"function" === typeof
|
|
3939
|
+
"function" !== typeof newProps.getSnapshotBeforeUpdate &&
|
|
3940
|
+
("function" === typeof newProps.UNSAFE_componentWillMount ||
|
|
3941
|
+
"function" === typeof newProps.componentWillMount)
|
|
3694
3942
|
)
|
|
3695
3943
|
if (
|
|
3696
|
-
((type =
|
|
3697
|
-
"function" === typeof
|
|
3698
|
-
|
|
3699
|
-
"function" === typeof
|
|
3700
|
-
|
|
3701
|
-
type !==
|
|
3944
|
+
((type = newProps.state),
|
|
3945
|
+
"function" === typeof newProps.componentWillMount &&
|
|
3946
|
+
newProps.componentWillMount(),
|
|
3947
|
+
"function" === typeof newProps.UNSAFE_componentWillMount &&
|
|
3948
|
+
newProps.UNSAFE_componentWillMount(),
|
|
3949
|
+
type !== newProps.state &&
|
|
3702
3950
|
classComponentUpdater.enqueueReplaceState(
|
|
3703
|
-
|
|
3704
|
-
|
|
3951
|
+
newProps,
|
|
3952
|
+
newProps.state,
|
|
3705
3953
|
null
|
|
3706
3954
|
),
|
|
3707
|
-
null !==
|
|
3955
|
+
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
|
3708
3956
|
)
|
|
3709
3957
|
if (
|
|
3710
|
-
((type =
|
|
3711
|
-
(
|
|
3712
|
-
(
|
|
3713
|
-
(
|
|
3714
|
-
|
|
3958
|
+
((type = defaultProps.queue),
|
|
3959
|
+
(ref = defaultProps.replace),
|
|
3960
|
+
(defaultProps.queue = null),
|
|
3961
|
+
(defaultProps.replace = !1),
|
|
3962
|
+
ref && 1 === type.length)
|
|
3715
3963
|
)
|
|
3716
|
-
|
|
3964
|
+
newProps.state = type[0];
|
|
3717
3965
|
else {
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
for (
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
?
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
void 0
|
|
3733
|
-
)
|
|
3734
|
-
: propName),
|
|
3735
|
-
null != propName &&
|
|
3736
|
-
(propName$31
|
|
3737
|
-
? ((propName$31 = !1), (ref = assign({}, ref, propName)))
|
|
3738
|
-
: assign(ref, propName));
|
|
3739
|
-
defaultProps.state = ref;
|
|
3966
|
+
defaultProps = ref ? type[0] : newProps.state;
|
|
3967
|
+
initialState = !0;
|
|
3968
|
+
for (ref = ref ? 1 : 0; ref < type.length; ref++)
|
|
3969
|
+
(propName$33 = type[ref]),
|
|
3970
|
+
(propName$33 =
|
|
3971
|
+
"function" === typeof propName$33
|
|
3972
|
+
? propName$33.call(newProps, defaultProps, props, void 0)
|
|
3973
|
+
: propName$33),
|
|
3974
|
+
null != propName$33 &&
|
|
3975
|
+
(initialState
|
|
3976
|
+
? ((initialState = !1),
|
|
3977
|
+
(defaultProps = assign({}, defaultProps, propName$33)))
|
|
3978
|
+
: assign(defaultProps, propName$33));
|
|
3979
|
+
newProps.state = defaultProps;
|
|
3740
3980
|
}
|
|
3741
|
-
else
|
|
3742
|
-
type =
|
|
3743
|
-
|
|
3981
|
+
else defaultProps.queue = null;
|
|
3982
|
+
type = newProps.render();
|
|
3983
|
+
if (12 === request.status) throw null;
|
|
3984
|
+
props = task.keyPath;
|
|
3744
3985
|
task.keyPath = keyPath;
|
|
3745
3986
|
renderNodeDestructive(request, task, type, -1);
|
|
3746
|
-
task.keyPath =
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
(
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
),
|
|
3765
|
-
(task.
|
|
3766
|
-
else if ("string" === typeof type) {
|
|
3767
|
-
JSCompiler_inline_result = task.componentStack;
|
|
3768
|
-
task.componentStack = createBuiltInComponentStack(task, type);
|
|
3769
|
-
defaultProps = task.blockedSegment;
|
|
3770
|
-
if (null === defaultProps)
|
|
3771
|
-
(defaultProps = props.children),
|
|
3772
|
-
(ref = task.formatContext),
|
|
3773
|
-
(propName$31 = task.keyPath),
|
|
3774
|
-
(task.formatContext = getChildFormatContext(ref, type, props)),
|
|
3987
|
+
task.keyPath = props;
|
|
3988
|
+
} else {
|
|
3989
|
+
type = renderWithHooks(request, task, keyPath, type, props, void 0);
|
|
3990
|
+
if (12 === request.status) throw null;
|
|
3991
|
+
finishFunctionComponent(
|
|
3992
|
+
request,
|
|
3993
|
+
task,
|
|
3994
|
+
keyPath,
|
|
3995
|
+
type,
|
|
3996
|
+
0 !== localIdCounter,
|
|
3997
|
+
actionStateCounter,
|
|
3998
|
+
actionStateMatchingIndex
|
|
3999
|
+
);
|
|
4000
|
+
}
|
|
4001
|
+
else if ("string" === typeof type)
|
|
4002
|
+
if (((newProps = task.blockedSegment), null === newProps))
|
|
4003
|
+
(newProps = props.children),
|
|
4004
|
+
(defaultProps = task.formatContext),
|
|
4005
|
+
(initialState = task.keyPath),
|
|
4006
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props)),
|
|
3775
4007
|
(task.keyPath = keyPath),
|
|
3776
|
-
renderNode(request, task,
|
|
3777
|
-
(task.formatContext =
|
|
3778
|
-
(task.keyPath =
|
|
4008
|
+
renderNode(request, task, newProps, -1),
|
|
4009
|
+
(task.formatContext = defaultProps),
|
|
4010
|
+
(task.keyPath = initialState);
|
|
3779
4011
|
else {
|
|
3780
|
-
|
|
3781
|
-
|
|
4012
|
+
ref = pushStartInstance(
|
|
4013
|
+
newProps.chunks,
|
|
3782
4014
|
type,
|
|
3783
4015
|
props,
|
|
3784
4016
|
request.resumableState,
|
|
3785
4017
|
request.renderState,
|
|
4018
|
+
task.blockedPreamble,
|
|
3786
4019
|
task.hoistableState,
|
|
3787
4020
|
task.formatContext,
|
|
3788
|
-
|
|
4021
|
+
newProps.lastPushedText,
|
|
3789
4022
|
task.isFallback
|
|
3790
4023
|
);
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
task.formatContext = getChildFormatContext(ref, type, props);
|
|
4024
|
+
newProps.lastPushedText = !1;
|
|
4025
|
+
defaultProps = task.formatContext;
|
|
4026
|
+
initialState = task.keyPath;
|
|
3795
4027
|
task.keyPath = keyPath;
|
|
3796
|
-
|
|
3797
|
-
task.formatContext =
|
|
3798
|
-
|
|
4028
|
+
3 ===
|
|
4029
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props))
|
|
4030
|
+
.insertionMode
|
|
4031
|
+
? ((keyPath = createPendingSegment(
|
|
4032
|
+
request,
|
|
4033
|
+
0,
|
|
4034
|
+
null,
|
|
4035
|
+
task.formatContext,
|
|
4036
|
+
!1,
|
|
4037
|
+
!1
|
|
4038
|
+
)),
|
|
4039
|
+
newProps.preambleChildren.push(keyPath),
|
|
4040
|
+
(keyPath = createRenderTask(
|
|
4041
|
+
request,
|
|
4042
|
+
null,
|
|
4043
|
+
ref,
|
|
4044
|
+
-1,
|
|
4045
|
+
task.blockedBoundary,
|
|
4046
|
+
keyPath,
|
|
4047
|
+
task.blockedPreamble,
|
|
4048
|
+
task.hoistableState,
|
|
4049
|
+
request.abortableTasks,
|
|
4050
|
+
task.keyPath,
|
|
4051
|
+
task.formatContext,
|
|
4052
|
+
task.context,
|
|
4053
|
+
task.treeContext,
|
|
4054
|
+
task.componentStack,
|
|
4055
|
+
task.isFallback
|
|
4056
|
+
)),
|
|
4057
|
+
pushComponentStack(keyPath),
|
|
4058
|
+
request.pingedTasks.push(keyPath))
|
|
4059
|
+
: renderNode(request, task, ref, -1);
|
|
4060
|
+
task.formatContext = defaultProps;
|
|
4061
|
+
task.keyPath = initialState;
|
|
3799
4062
|
a: {
|
|
3800
|
-
|
|
4063
|
+
task = newProps.chunks;
|
|
3801
4064
|
request = request.resumableState;
|
|
3802
4065
|
switch (type) {
|
|
3803
4066
|
case "title":
|
|
@@ -3820,26 +4083,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
3820
4083
|
case "wbr":
|
|
3821
4084
|
break a;
|
|
3822
4085
|
case "body":
|
|
3823
|
-
if (1 >=
|
|
4086
|
+
if (1 >= defaultProps.insertionMode) {
|
|
3824
4087
|
request.hasBody = !0;
|
|
3825
4088
|
break a;
|
|
3826
4089
|
}
|
|
3827
4090
|
break;
|
|
3828
4091
|
case "html":
|
|
3829
|
-
if (0 ===
|
|
4092
|
+
if (0 === defaultProps.insertionMode) {
|
|
3830
4093
|
request.hasHtml = !0;
|
|
3831
4094
|
break a;
|
|
3832
4095
|
}
|
|
4096
|
+
break;
|
|
4097
|
+
case "head":
|
|
4098
|
+
if (1 >= defaultProps.insertionMode) break a;
|
|
3833
4099
|
}
|
|
3834
|
-
|
|
4100
|
+
task.push(endChunkForTag(type));
|
|
3835
4101
|
}
|
|
3836
|
-
|
|
4102
|
+
newProps.lastPushedText = !1;
|
|
3837
4103
|
}
|
|
3838
|
-
|
|
3839
|
-
} else {
|
|
4104
|
+
else {
|
|
3840
4105
|
switch (type) {
|
|
3841
4106
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
3842
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
3843
4107
|
case REACT_STRICT_MODE_TYPE:
|
|
3844
4108
|
case REACT_PROFILER_TYPE:
|
|
3845
4109
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -3848,7 +4112,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
3848
4112
|
renderNodeDestructive(request, task, props.children, -1);
|
|
3849
4113
|
task.keyPath = type;
|
|
3850
4114
|
return;
|
|
3851
|
-
case
|
|
4115
|
+
case REACT_ACTIVITY_TYPE:
|
|
3852
4116
|
"hidden" !== props.mode &&
|
|
3853
4117
|
((type = task.keyPath),
|
|
3854
4118
|
(task.keyPath = keyPath),
|
|
@@ -3856,14 +4120,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
3856
4120
|
(task.keyPath = type));
|
|
3857
4121
|
return;
|
|
3858
4122
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
3859
|
-
type = task.
|
|
3860
|
-
task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
|
|
3861
|
-
JSCompiler_inline_result = task.keyPath;
|
|
4123
|
+
type = task.keyPath;
|
|
3862
4124
|
task.keyPath = keyPath;
|
|
3863
4125
|
renderNodeDestructive(request, task, props.children, -1);
|
|
3864
|
-
task.keyPath =
|
|
3865
|
-
task.componentStack = type;
|
|
4126
|
+
task.keyPath = type;
|
|
3866
4127
|
return;
|
|
4128
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
3867
4129
|
case REACT_SCOPE_TYPE:
|
|
3868
4130
|
throw Error("ReactDOMServer does not yet support scope components.");
|
|
3869
4131
|
case REACT_SUSPENSE_TYPE:
|
|
@@ -3877,31 +4139,35 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
3877
4139
|
task.keyPath = type;
|
|
3878
4140
|
}
|
|
3879
4141
|
} else {
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
var
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
4142
|
+
type = task.keyPath;
|
|
4143
|
+
var parentBoundary = task.blockedBoundary;
|
|
4144
|
+
ref = task.blockedPreamble;
|
|
4145
|
+
var parentHoistableState = task.hoistableState;
|
|
4146
|
+
propName$33 = task.blockedSegment;
|
|
4147
|
+
propName = props.fallback;
|
|
4148
|
+
props = props.children;
|
|
4149
|
+
var fallbackAbortSet = new Set();
|
|
4150
|
+
var newBoundary =
|
|
4151
|
+
2 > task.formatContext.insertionMode
|
|
4152
|
+
? createSuspenseBoundary(
|
|
4153
|
+
request,
|
|
4154
|
+
fallbackAbortSet,
|
|
4155
|
+
createPreambleState(),
|
|
4156
|
+
createPreambleState()
|
|
4157
|
+
)
|
|
4158
|
+
: createSuspenseBoundary(request, fallbackAbortSet, null, null);
|
|
3893
4159
|
null !== request.trackedPostpones &&
|
|
3894
|
-
(
|
|
3895
|
-
|
|
4160
|
+
(newBoundary.trackedContentKeyPath = keyPath);
|
|
4161
|
+
var boundarySegment = createPendingSegment(
|
|
3896
4162
|
request,
|
|
3897
|
-
|
|
3898
|
-
|
|
4163
|
+
propName$33.chunks.length,
|
|
4164
|
+
newBoundary,
|
|
3899
4165
|
task.formatContext,
|
|
3900
4166
|
!1,
|
|
3901
4167
|
!1
|
|
3902
4168
|
);
|
|
3903
|
-
|
|
3904
|
-
|
|
4169
|
+
propName$33.children.push(boundarySegment);
|
|
4170
|
+
propName$33.lastPushedText = !1;
|
|
3905
4171
|
var contentRootSegment = createPendingSegment(
|
|
3906
4172
|
request,
|
|
3907
4173
|
0,
|
|
@@ -3911,107 +4177,132 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
3911
4177
|
!1
|
|
3912
4178
|
);
|
|
3913
4179
|
contentRootSegment.parentFlushed = !0;
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
(
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
4180
|
+
if (null !== request.trackedPostpones) {
|
|
4181
|
+
newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
|
4182
|
+
defaultProps = [newProps[1], newProps[2], [], null];
|
|
4183
|
+
request.trackedPostpones.workingMap.set(newProps, defaultProps);
|
|
4184
|
+
newBoundary.trackedFallbackNode = defaultProps;
|
|
4185
|
+
task.blockedSegment = boundarySegment;
|
|
4186
|
+
task.blockedPreamble = newBoundary.fallbackPreamble;
|
|
4187
|
+
task.keyPath = newProps;
|
|
4188
|
+
boundarySegment.status = 6;
|
|
4189
|
+
try {
|
|
4190
|
+
renderNode(request, task, propName, -1),
|
|
4191
|
+
boundarySegment.lastPushedText &&
|
|
4192
|
+
boundarySegment.textEmbedded &&
|
|
4193
|
+
boundarySegment.chunks.push("\x3c!-- --\x3e"),
|
|
4194
|
+
(boundarySegment.status = 1);
|
|
4195
|
+
} catch (thrownValue) {
|
|
4196
|
+
throw (
|
|
4197
|
+
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
|
4198
|
+
thrownValue)
|
|
4199
|
+
);
|
|
4200
|
+
} finally {
|
|
4201
|
+
(task.blockedSegment = propName$33),
|
|
4202
|
+
(task.blockedPreamble = ref),
|
|
4203
|
+
(task.keyPath = type);
|
|
3931
4204
|
}
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
4205
|
+
task = createRenderTask(
|
|
4206
|
+
request,
|
|
4207
|
+
null,
|
|
4208
|
+
props,
|
|
4209
|
+
-1,
|
|
4210
|
+
newBoundary,
|
|
4211
|
+
contentRootSegment,
|
|
4212
|
+
newBoundary.contentPreamble,
|
|
4213
|
+
newBoundary.contentState,
|
|
4214
|
+
task.abortSet,
|
|
4215
|
+
keyPath,
|
|
4216
|
+
task.formatContext,
|
|
4217
|
+
task.context,
|
|
4218
|
+
task.treeContext,
|
|
4219
|
+
task.componentStack,
|
|
4220
|
+
task.isFallback
|
|
4221
|
+
);
|
|
4222
|
+
pushComponentStack(task);
|
|
4223
|
+
request.pingedTasks.push(task);
|
|
4224
|
+
} else {
|
|
4225
|
+
task.blockedBoundary = newBoundary;
|
|
4226
|
+
task.blockedPreamble = newBoundary.contentPreamble;
|
|
4227
|
+
task.hoistableState = newBoundary.contentState;
|
|
4228
|
+
task.blockedSegment = contentRootSegment;
|
|
4229
|
+
task.keyPath = keyPath;
|
|
4230
|
+
contentRootSegment.status = 6;
|
|
4231
|
+
try {
|
|
4232
|
+
if (
|
|
4233
|
+
(renderNode(request, task, props, -1),
|
|
4234
|
+
contentRootSegment.lastPushedText &&
|
|
4235
|
+
contentRootSegment.textEmbedded &&
|
|
4236
|
+
contentRootSegment.chunks.push("\x3c!-- --\x3e"),
|
|
4237
|
+
(contentRootSegment.status = 1),
|
|
4238
|
+
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
4239
|
+
0 === newBoundary.pendingTasks && 0 === newBoundary.status)
|
|
4240
|
+
) {
|
|
4241
|
+
newBoundary.status = 1;
|
|
4242
|
+
0 === request.pendingRootTasks &&
|
|
4243
|
+
task.blockedPreamble &&
|
|
4244
|
+
preparePreamble(request);
|
|
4245
|
+
break a;
|
|
4246
|
+
}
|
|
4247
|
+
} catch (thrownValue$28) {
|
|
4248
|
+
(newBoundary.status = 4),
|
|
4249
|
+
12 === request.status
|
|
4250
|
+
? ((contentRootSegment.status = 3),
|
|
4251
|
+
(newProps = request.fatalError))
|
|
4252
|
+
: ((contentRootSegment.status = 4),
|
|
4253
|
+
(newProps = thrownValue$28)),
|
|
4254
|
+
(defaultProps = getThrownInfo(task.componentStack)),
|
|
4255
|
+
(initialState = logRecoverableError(
|
|
4256
|
+
request,
|
|
4257
|
+
newProps,
|
|
4258
|
+
defaultProps
|
|
4259
|
+
)),
|
|
4260
|
+
(newBoundary.errorDigest = initialState),
|
|
4261
|
+
untrackBoundary(request, newBoundary);
|
|
4262
|
+
} finally {
|
|
4263
|
+
(task.blockedBoundary = parentBoundary),
|
|
4264
|
+
(task.blockedPreamble = ref),
|
|
4265
|
+
(task.hoistableState = parentHoistableState),
|
|
4266
|
+
(task.blockedSegment = propName$33),
|
|
4267
|
+
(task.keyPath = type);
|
|
4268
|
+
}
|
|
4269
|
+
task = createRenderTask(
|
|
4270
|
+
request,
|
|
4271
|
+
null,
|
|
4272
|
+
propName,
|
|
4273
|
+
-1,
|
|
4274
|
+
parentBoundary,
|
|
4275
|
+
boundarySegment,
|
|
4276
|
+
newBoundary.fallbackPreamble,
|
|
4277
|
+
newBoundary.fallbackState,
|
|
4278
|
+
fallbackAbortSet,
|
|
4279
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
4280
|
+
task.formatContext,
|
|
4281
|
+
task.context,
|
|
4282
|
+
task.treeContext,
|
|
4283
|
+
task.componentStack,
|
|
4284
|
+
!0
|
|
4285
|
+
);
|
|
4286
|
+
pushComponentStack(task);
|
|
4287
|
+
request.pingedTasks.push(task);
|
|
3952
4288
|
}
|
|
3953
|
-
JSCompiler_inline_result = [
|
|
3954
|
-
keyPath[0],
|
|
3955
|
-
"Suspense Fallback",
|
|
3956
|
-
keyPath[2]
|
|
3957
|
-
];
|
|
3958
|
-
defaultProps = request.trackedPostpones;
|
|
3959
|
-
null !== defaultProps &&
|
|
3960
|
-
((previousComponentStack = [
|
|
3961
|
-
JSCompiler_inline_result[1],
|
|
3962
|
-
JSCompiler_inline_result[2],
|
|
3963
|
-
[],
|
|
3964
|
-
null
|
|
3965
|
-
]),
|
|
3966
|
-
defaultProps.workingMap.set(
|
|
3967
|
-
JSCompiler_inline_result,
|
|
3968
|
-
previousComponentStack
|
|
3969
|
-
),
|
|
3970
|
-
5 === contextType.status
|
|
3971
|
-
? (defaultProps.workingMap.get(keyPath)[4] =
|
|
3972
|
-
previousComponentStack)
|
|
3973
|
-
: (contextType.trackedFallbackNode = previousComponentStack));
|
|
3974
|
-
task = createRenderTask(
|
|
3975
|
-
request,
|
|
3976
|
-
null,
|
|
3977
|
-
propName$31,
|
|
3978
|
-
-1,
|
|
3979
|
-
ref,
|
|
3980
|
-
propName,
|
|
3981
|
-
contextType.fallbackState,
|
|
3982
|
-
props,
|
|
3983
|
-
JSCompiler_inline_result,
|
|
3984
|
-
task.formatContext,
|
|
3985
|
-
task.legacyContext,
|
|
3986
|
-
task.context,
|
|
3987
|
-
task.treeContext,
|
|
3988
|
-
type,
|
|
3989
|
-
!0
|
|
3990
|
-
);
|
|
3991
|
-
request.pingedTasks.push(task);
|
|
3992
4289
|
}
|
|
3993
4290
|
return;
|
|
3994
4291
|
}
|
|
3995
4292
|
if ("object" === typeof type && null !== type)
|
|
3996
4293
|
switch (type.$$typeof) {
|
|
3997
4294
|
case REACT_FORWARD_REF_TYPE:
|
|
3998
|
-
JSCompiler_inline_result = task.componentStack;
|
|
3999
|
-
task.componentStack = {
|
|
4000
|
-
tag: 1,
|
|
4001
|
-
parent: task.componentStack,
|
|
4002
|
-
type: type.render
|
|
4003
|
-
};
|
|
4004
4295
|
if ("ref" in props)
|
|
4005
|
-
for (
|
|
4006
|
-
"ref" !==
|
|
4007
|
-
(
|
|
4008
|
-
else
|
|
4296
|
+
for (newBoundary in ((newProps = {}), props))
|
|
4297
|
+
"ref" !== newBoundary &&
|
|
4298
|
+
(newProps[newBoundary] = props[newBoundary]);
|
|
4299
|
+
else newProps = props;
|
|
4009
4300
|
type = renderWithHooks(
|
|
4010
4301
|
request,
|
|
4011
4302
|
task,
|
|
4012
4303
|
keyPath,
|
|
4013
4304
|
type.render,
|
|
4014
|
-
|
|
4305
|
+
newProps,
|
|
4015
4306
|
ref
|
|
4016
4307
|
);
|
|
4017
4308
|
finishFunctionComponent(
|
|
@@ -4023,7 +4314,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4023
4314
|
actionStateCounter,
|
|
4024
4315
|
actionStateMatchingIndex
|
|
4025
4316
|
);
|
|
4026
|
-
task.componentStack = JSCompiler_inline_result;
|
|
4027
4317
|
return;
|
|
4028
4318
|
case REACT_MEMO_TYPE:
|
|
4029
4319
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
@@ -4031,16 +4321,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4031
4321
|
case REACT_PROVIDER_TYPE:
|
|
4032
4322
|
case REACT_CONTEXT_TYPE:
|
|
4033
4323
|
defaultProps = props.children;
|
|
4034
|
-
|
|
4324
|
+
newProps = task.keyPath;
|
|
4035
4325
|
props = props.value;
|
|
4036
|
-
|
|
4326
|
+
initialState = type._currentValue;
|
|
4037
4327
|
type._currentValue = props;
|
|
4038
|
-
|
|
4328
|
+
ref = currentActiveSnapshot;
|
|
4039
4329
|
currentActiveSnapshot = type = {
|
|
4040
|
-
parent:
|
|
4041
|
-
depth: null ===
|
|
4330
|
+
parent: ref,
|
|
4331
|
+
depth: null === ref ? 0 : ref.depth + 1,
|
|
4042
4332
|
context: type,
|
|
4043
|
-
parentValue:
|
|
4333
|
+
parentValue: initialState,
|
|
4044
4334
|
value: props
|
|
4045
4335
|
};
|
|
4046
4336
|
task.context = type;
|
|
@@ -4054,7 +4344,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4054
4344
|
request.context._currentValue = request.parentValue;
|
|
4055
4345
|
request = currentActiveSnapshot = request.parent;
|
|
4056
4346
|
task.context = request;
|
|
4057
|
-
task.keyPath =
|
|
4347
|
+
task.keyPath = newProps;
|
|
4058
4348
|
return;
|
|
4059
4349
|
case REACT_CONSUMER_TYPE:
|
|
4060
4350
|
props = props.children;
|
|
@@ -4065,12 +4355,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4065
4355
|
task.keyPath = props;
|
|
4066
4356
|
return;
|
|
4067
4357
|
case REACT_LAZY_TYPE:
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
type
|
|
4072
|
-
renderElement(request, task, keyPath, type, props, void 0);
|
|
4073
|
-
task.componentStack = JSCompiler_inline_result;
|
|
4358
|
+
newProps = type._init;
|
|
4359
|
+
type = newProps(type._payload);
|
|
4360
|
+
if (12 === request.status) throw null;
|
|
4361
|
+
renderElement(request, task, keyPath, type, props, ref);
|
|
4074
4362
|
return;
|
|
4075
4363
|
}
|
|
4076
4364
|
throw Error(
|
|
@@ -4106,23 +4394,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
|
4106
4394
|
(task.replay = prevReplay), (task.blockedSegment = null);
|
|
4107
4395
|
}
|
|
4108
4396
|
}
|
|
4109
|
-
function renderNodeDestructive(request, task, node
|
|
4110
|
-
|
|
4111
|
-
resumeNode(request, task, task.replay.slots, node
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4397
|
+
function renderNodeDestructive(request, task, node, childIndex) {
|
|
4398
|
+
null !== task.replay && "number" === typeof task.replay.slots
|
|
4399
|
+
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
|
4400
|
+
: ((task.node = node),
|
|
4401
|
+
(task.childIndex = childIndex),
|
|
4402
|
+
(node = task.componentStack),
|
|
4403
|
+
pushComponentStack(task),
|
|
4404
|
+
retryNode(request, task),
|
|
4405
|
+
(task.componentStack = node));
|
|
4406
|
+
}
|
|
4407
|
+
function retryNode(request, task) {
|
|
4408
|
+
var node = task.node,
|
|
4409
|
+
childIndex = task.childIndex;
|
|
4410
|
+
if (null !== node) {
|
|
4411
|
+
if ("object" === typeof node) {
|
|
4412
|
+
switch (node.$$typeof) {
|
|
4119
4413
|
case REACT_ELEMENT_TYPE:
|
|
4120
|
-
var type = node
|
|
4121
|
-
key = node
|
|
4122
|
-
props = node
|
|
4123
|
-
node
|
|
4124
|
-
var ref = void 0 !== node
|
|
4125
|
-
|
|
4414
|
+
var type = node.type,
|
|
4415
|
+
key = node.key,
|
|
4416
|
+
props = node.props;
|
|
4417
|
+
node = props.ref;
|
|
4418
|
+
var ref = void 0 !== node ? node : null,
|
|
4419
|
+
name = getComponentNameFromType(type),
|
|
4126
4420
|
keyOrIndex =
|
|
4127
4421
|
null == key ? (-1 === childIndex ? 0 : childIndex) : key;
|
|
4128
4422
|
key = [task.keyPath, name, keyOrIndex];
|
|
@@ -4130,24 +4424,20 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4130
4424
|
a: {
|
|
4131
4425
|
var replay = task.replay;
|
|
4132
4426
|
childIndex = replay.nodes;
|
|
4133
|
-
for (
|
|
4134
|
-
node$jscomp$0 =
|
|
4135
|
-
node$jscomp$0
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
var node = childIndex[node$jscomp$0];
|
|
4139
|
-
if (keyOrIndex === node[1]) {
|
|
4140
|
-
if (4 === node.length) {
|
|
4141
|
-
if (null !== name && name !== node[0])
|
|
4427
|
+
for (node = 0; node < childIndex.length; node++) {
|
|
4428
|
+
var node$jscomp$0 = childIndex[node];
|
|
4429
|
+
if (keyOrIndex === node$jscomp$0[1]) {
|
|
4430
|
+
if (4 === node$jscomp$0.length) {
|
|
4431
|
+
if (null !== name && name !== node$jscomp$0[0])
|
|
4142
4432
|
throw Error(
|
|
4143
4433
|
"Expected the resume to render <" +
|
|
4144
|
-
node[0] +
|
|
4434
|
+
node$jscomp$0[0] +
|
|
4145
4435
|
"> in this slot but instead it rendered <" +
|
|
4146
4436
|
name +
|
|
4147
4437
|
">. The tree doesn't match so React will fallback to client rendering."
|
|
4148
4438
|
);
|
|
4149
|
-
var childNodes = node[2];
|
|
4150
|
-
name = node[3];
|
|
4439
|
+
var childNodes = node$jscomp$0[2];
|
|
4440
|
+
name = node$jscomp$0[3];
|
|
4151
4441
|
keyOrIndex = task.node;
|
|
4152
4442
|
task.replay = {
|
|
4153
4443
|
nodes: childNodes,
|
|
@@ -4176,14 +4466,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4176
4466
|
x)
|
|
4177
4467
|
);
|
|
4178
4468
|
task.replay.pendingTasks--;
|
|
4179
|
-
props = getThrownInfo(
|
|
4180
|
-
key =
|
|
4181
|
-
request = task.blockedBoundary;
|
|
4469
|
+
props = getThrownInfo(task.componentStack);
|
|
4470
|
+
key = task.blockedBoundary;
|
|
4182
4471
|
type = x;
|
|
4183
|
-
props = logRecoverableError(
|
|
4472
|
+
props = logRecoverableError(request, type, props);
|
|
4184
4473
|
abortRemainingReplayNodes(
|
|
4185
|
-
key,
|
|
4186
4474
|
request,
|
|
4475
|
+
key,
|
|
4187
4476
|
childNodes,
|
|
4188
4477
|
name,
|
|
4189
4478
|
type,
|
|
@@ -4200,29 +4489,39 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4200
4489
|
);
|
|
4201
4490
|
b: {
|
|
4202
4491
|
replay = void 0;
|
|
4203
|
-
type = node[5];
|
|
4204
|
-
ref = node[2];
|
|
4205
|
-
name = node[3];
|
|
4206
|
-
keyOrIndex =
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
prevKeyPath = task.keyPath,
|
|
4492
|
+
type = node$jscomp$0[5];
|
|
4493
|
+
ref = node$jscomp$0[2];
|
|
4494
|
+
name = node$jscomp$0[3];
|
|
4495
|
+
keyOrIndex =
|
|
4496
|
+
null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
|
4497
|
+
node$jscomp$0 =
|
|
4498
|
+
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
4499
|
+
var prevKeyPath = task.keyPath,
|
|
4212
4500
|
previousReplaySet = task.replay,
|
|
4213
4501
|
parentBoundary = task.blockedBoundary,
|
|
4214
4502
|
parentHoistableState = task.hoistableState,
|
|
4215
|
-
content = props.children
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4503
|
+
content = props.children,
|
|
4504
|
+
fallback = props.fallback,
|
|
4505
|
+
fallbackAbortSet = new Set();
|
|
4506
|
+
props =
|
|
4507
|
+
2 > task.formatContext.insertionMode
|
|
4508
|
+
? createSuspenseBoundary(
|
|
4509
|
+
request,
|
|
4510
|
+
fallbackAbortSet,
|
|
4511
|
+
createPreambleState(),
|
|
4512
|
+
createPreambleState()
|
|
4513
|
+
)
|
|
4514
|
+
: createSuspenseBoundary(
|
|
4515
|
+
request,
|
|
4516
|
+
fallbackAbortSet,
|
|
4517
|
+
null,
|
|
4518
|
+
null
|
|
4519
|
+
);
|
|
4520
|
+
props.parentFlushed = !0;
|
|
4521
|
+
props.rootSegmentID = type;
|
|
4522
|
+
task.blockedBoundary = props;
|
|
4523
|
+
task.hoistableState = props.contentState;
|
|
4524
|
+
task.keyPath = key;
|
|
4226
4525
|
task.replay = {
|
|
4227
4526
|
nodes: ref,
|
|
4228
4527
|
slots: name,
|
|
@@ -4238,58 +4537,53 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4238
4537
|
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
4239
4538
|
);
|
|
4240
4539
|
task.replay.pendingTasks--;
|
|
4241
|
-
if (
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
) {
|
|
4245
|
-
resumedBoundary.status = 1;
|
|
4246
|
-
request.completedBoundaries.push(resumedBoundary);
|
|
4540
|
+
if (0 === props.pendingTasks && 0 === props.status) {
|
|
4541
|
+
props.status = 1;
|
|
4542
|
+
request.completedBoundaries.push(props);
|
|
4247
4543
|
break b;
|
|
4248
4544
|
}
|
|
4249
4545
|
} catch (error) {
|
|
4250
|
-
(
|
|
4251
|
-
(childNodes = getThrownInfo(
|
|
4252
|
-
request,
|
|
4253
|
-
task.componentStack
|
|
4254
|
-
)),
|
|
4546
|
+
(props.status = 4),
|
|
4547
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
|
4255
4548
|
(replay = logRecoverableError(
|
|
4256
4549
|
request,
|
|
4257
4550
|
error,
|
|
4258
4551
|
childNodes
|
|
4259
4552
|
)),
|
|
4260
|
-
(
|
|
4553
|
+
(props.errorDigest = replay),
|
|
4261
4554
|
task.replay.pendingTasks--,
|
|
4262
|
-
request.clientRenderedBoundaries.push(
|
|
4263
|
-
resumedBoundary
|
|
4264
|
-
);
|
|
4555
|
+
request.clientRenderedBoundaries.push(props);
|
|
4265
4556
|
} finally {
|
|
4266
4557
|
(task.blockedBoundary = parentBoundary),
|
|
4267
4558
|
(task.hoistableState = parentHoistableState),
|
|
4268
4559
|
(task.replay = previousReplaySet),
|
|
4269
|
-
(task.keyPath = prevKeyPath)
|
|
4270
|
-
(task.componentStack = previousComponentStack);
|
|
4560
|
+
(task.keyPath = prevKeyPath);
|
|
4271
4561
|
}
|
|
4272
4562
|
task = createReplayTask(
|
|
4273
4563
|
request,
|
|
4274
4564
|
null,
|
|
4275
|
-
{
|
|
4276
|
-
|
|
4565
|
+
{
|
|
4566
|
+
nodes: keyOrIndex,
|
|
4567
|
+
slots: node$jscomp$0,
|
|
4568
|
+
pendingTasks: 0
|
|
4569
|
+
},
|
|
4570
|
+
fallback,
|
|
4277
4571
|
-1,
|
|
4278
4572
|
parentBoundary,
|
|
4279
|
-
|
|
4573
|
+
props.fallbackState,
|
|
4280
4574
|
fallbackAbortSet,
|
|
4281
4575
|
[key[0], "Suspense Fallback", key[2]],
|
|
4282
4576
|
task.formatContext,
|
|
4283
|
-
task.legacyContext,
|
|
4284
4577
|
task.context,
|
|
4285
4578
|
task.treeContext,
|
|
4286
|
-
|
|
4579
|
+
task.componentStack,
|
|
4287
4580
|
!0
|
|
4288
4581
|
);
|
|
4582
|
+
pushComponentStack(task);
|
|
4289
4583
|
request.pingedTasks.push(task);
|
|
4290
4584
|
}
|
|
4291
4585
|
}
|
|
4292
|
-
childIndex.splice(node
|
|
4586
|
+
childIndex.splice(node, 1);
|
|
4293
4587
|
break a;
|
|
4294
4588
|
}
|
|
4295
4589
|
}
|
|
@@ -4301,80 +4595,68 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
|
4301
4595
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
|
4302
4596
|
);
|
|
4303
4597
|
case REACT_LAZY_TYPE:
|
|
4304
|
-
childNodes =
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
task.componentStack = childNodes;
|
|
4309
|
-
renderNodeDestructive(request, task, node$jscomp$0, childIndex);
|
|
4598
|
+
childNodes = node._init;
|
|
4599
|
+
node = childNodes(node._payload);
|
|
4600
|
+
if (12 === request.status) throw null;
|
|
4601
|
+
renderNodeDestructive(request, task, node, childIndex);
|
|
4310
4602
|
return;
|
|
4311
4603
|
}
|
|
4312
|
-
if (isArrayImpl(node
|
|
4313
|
-
renderChildrenArray(request, task, node
|
|
4604
|
+
if (isArrayImpl(node)) {
|
|
4605
|
+
renderChildrenArray(request, task, node, childIndex);
|
|
4314
4606
|
return;
|
|
4315
4607
|
}
|
|
4316
|
-
null === node
|
|
4608
|
+
null === node || "object" !== typeof node
|
|
4317
4609
|
? (childNodes = null)
|
|
4318
4610
|
: ((childNodes =
|
|
4319
|
-
(MAYBE_ITERATOR_SYMBOL && node
|
|
4320
|
-
node
|
|
4611
|
+
(MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
|
|
4612
|
+
node["@@iterator"]),
|
|
4321
4613
|
(childNodes = "function" === typeof childNodes ? childNodes : null));
|
|
4322
|
-
if (childNodes && (childNodes = childNodes.call(node
|
|
4323
|
-
node
|
|
4324
|
-
if (!node
|
|
4614
|
+
if (childNodes && (childNodes = childNodes.call(node))) {
|
|
4615
|
+
node = childNodes.next();
|
|
4616
|
+
if (!node.done) {
|
|
4325
4617
|
props = [];
|
|
4326
|
-
do
|
|
4327
|
-
|
|
4328
|
-
(node$jscomp$0 = childNodes.next());
|
|
4329
|
-
while (!node$jscomp$0.done);
|
|
4618
|
+
do props.push(node.value), (node = childNodes.next());
|
|
4619
|
+
while (!node.done);
|
|
4330
4620
|
renderChildrenArray(request, task, props, childIndex);
|
|
4331
4621
|
}
|
|
4332
4622
|
return;
|
|
4333
4623
|
}
|
|
4334
|
-
if ("function" === typeof node
|
|
4624
|
+
if ("function" === typeof node.then)
|
|
4335
4625
|
return (
|
|
4336
4626
|
(task.thenableState = null),
|
|
4337
|
-
renderNodeDestructive(
|
|
4338
|
-
request,
|
|
4339
|
-
task,
|
|
4340
|
-
unwrapThenable(node$jscomp$0),
|
|
4341
|
-
childIndex
|
|
4342
|
-
)
|
|
4627
|
+
renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
|
|
4343
4628
|
);
|
|
4344
|
-
if (node
|
|
4629
|
+
if (node.$$typeof === REACT_CONTEXT_TYPE)
|
|
4345
4630
|
return renderNodeDestructive(
|
|
4346
4631
|
request,
|
|
4347
4632
|
task,
|
|
4348
|
-
node
|
|
4633
|
+
node._currentValue,
|
|
4349
4634
|
childIndex
|
|
4350
4635
|
);
|
|
4351
|
-
childIndex = Object.prototype.toString.call(node
|
|
4636
|
+
childIndex = Object.prototype.toString.call(node);
|
|
4352
4637
|
throw Error(
|
|
4353
4638
|
"Objects are not valid as a React child (found: " +
|
|
4354
4639
|
("[object Object]" === childIndex
|
|
4355
|
-
? "object with keys {" + Object.keys(node
|
|
4640
|
+
? "object with keys {" + Object.keys(node).join(", ") + "}"
|
|
4356
4641
|
: childIndex) +
|
|
4357
4642
|
"). If you meant to render a collection of children, use an array instead."
|
|
4358
4643
|
);
|
|
4359
4644
|
}
|
|
4360
|
-
if ("string" === typeof node
|
|
4645
|
+
if ("string" === typeof node)
|
|
4361
4646
|
(childIndex = task.blockedSegment),
|
|
4362
4647
|
null !== childIndex &&
|
|
4363
4648
|
(childIndex.lastPushedText = pushTextInstance(
|
|
4364
4649
|
childIndex.chunks,
|
|
4365
|
-
node
|
|
4650
|
+
node,
|
|
4366
4651
|
request.renderState,
|
|
4367
4652
|
childIndex.lastPushedText
|
|
4368
4653
|
));
|
|
4369
|
-
else if (
|
|
4370
|
-
"number" === typeof node$jscomp$0 ||
|
|
4371
|
-
"bigint" === typeof node$jscomp$0
|
|
4372
|
-
)
|
|
4654
|
+
else if ("number" === typeof node || "bigint" === typeof node)
|
|
4373
4655
|
(childIndex = task.blockedSegment),
|
|
4374
4656
|
null !== childIndex &&
|
|
4375
4657
|
(childIndex.lastPushedText = pushTextInstance(
|
|
4376
4658
|
childIndex.chunks,
|
|
4377
|
-
"" + node
|
|
4659
|
+
"" + node,
|
|
4378
4660
|
request.renderState,
|
|
4379
4661
|
childIndex.lastPushedText
|
|
4380
4662
|
));
|
|
@@ -4412,7 +4694,7 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
|
4412
4694
|
)
|
|
4413
4695
|
throw x;
|
|
4414
4696
|
task.replay.pendingTasks--;
|
|
4415
|
-
children = getThrownInfo(
|
|
4697
|
+
children = getThrownInfo(task.componentStack);
|
|
4416
4698
|
var boundary = task.blockedBoundary,
|
|
4417
4699
|
error = x;
|
|
4418
4700
|
children = logRecoverableError(request, error, children);
|
|
@@ -4467,9 +4749,56 @@ function untrackBoundary(request, boundary) {
|
|
|
4467
4749
|
void 0 !== boundary &&
|
|
4468
4750
|
((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
|
|
4469
4751
|
}
|
|
4752
|
+
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
4753
|
+
return createReplayTask(
|
|
4754
|
+
request,
|
|
4755
|
+
thenableState,
|
|
4756
|
+
task.replay,
|
|
4757
|
+
task.node,
|
|
4758
|
+
task.childIndex,
|
|
4759
|
+
task.blockedBoundary,
|
|
4760
|
+
task.hoistableState,
|
|
4761
|
+
task.abortSet,
|
|
4762
|
+
task.keyPath,
|
|
4763
|
+
task.formatContext,
|
|
4764
|
+
task.context,
|
|
4765
|
+
task.treeContext,
|
|
4766
|
+
task.componentStack,
|
|
4767
|
+
task.isFallback
|
|
4768
|
+
);
|
|
4769
|
+
}
|
|
4770
|
+
function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
4771
|
+
var segment = task.blockedSegment,
|
|
4772
|
+
newSegment = createPendingSegment(
|
|
4773
|
+
request,
|
|
4774
|
+
segment.chunks.length,
|
|
4775
|
+
null,
|
|
4776
|
+
task.formatContext,
|
|
4777
|
+
segment.lastPushedText,
|
|
4778
|
+
!0
|
|
4779
|
+
);
|
|
4780
|
+
segment.children.push(newSegment);
|
|
4781
|
+
segment.lastPushedText = !1;
|
|
4782
|
+
return createRenderTask(
|
|
4783
|
+
request,
|
|
4784
|
+
thenableState,
|
|
4785
|
+
task.node,
|
|
4786
|
+
task.childIndex,
|
|
4787
|
+
task.blockedBoundary,
|
|
4788
|
+
newSegment,
|
|
4789
|
+
task.blockedPreamble,
|
|
4790
|
+
task.hoistableState,
|
|
4791
|
+
task.abortSet,
|
|
4792
|
+
task.keyPath,
|
|
4793
|
+
task.formatContext,
|
|
4794
|
+
task.context,
|
|
4795
|
+
task.treeContext,
|
|
4796
|
+
task.componentStack,
|
|
4797
|
+
task.isFallback
|
|
4798
|
+
);
|
|
4799
|
+
}
|
|
4470
4800
|
function renderNode(request, task, node, childIndex) {
|
|
4471
4801
|
var previousFormatContext = task.formatContext,
|
|
4472
|
-
previousLegacyContext = task.legacyContext,
|
|
4473
4802
|
previousContext = task.context,
|
|
4474
4803
|
previousKeyPath = task.keyPath,
|
|
4475
4804
|
previousTreeContext = task.treeContext,
|
|
@@ -4485,37 +4814,32 @@ function renderNode(request, task, node, childIndex) {
|
|
|
4485
4814
|
thrownValue === SuspenseException
|
|
4486
4815
|
? getSuspendedThenable()
|
|
4487
4816
|
: thrownValue),
|
|
4488
|
-
"object" === typeof node &&
|
|
4489
|
-
null !== node &&
|
|
4490
|
-
"function" === typeof node.then)
|
|
4817
|
+
"object" === typeof node && null !== node)
|
|
4491
4818
|
) {
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
request,
|
|
4495
|
-
|
|
4496
|
-
task.
|
|
4497
|
-
task.
|
|
4498
|
-
task.
|
|
4499
|
-
task.
|
|
4500
|
-
task.
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
task
|
|
4507
|
-
|
|
4508
|
-
task.
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
task.componentStack = previousComponentStack;
|
|
4517
|
-
switchContext(previousContext);
|
|
4518
|
-
return;
|
|
4819
|
+
if ("function" === typeof node.then) {
|
|
4820
|
+
childIndex = getThenableStateAfterSuspending();
|
|
4821
|
+
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
|
4822
|
+
node.then(request, request);
|
|
4823
|
+
task.formatContext = previousFormatContext;
|
|
4824
|
+
task.context = previousContext;
|
|
4825
|
+
task.keyPath = previousKeyPath;
|
|
4826
|
+
task.treeContext = previousTreeContext;
|
|
4827
|
+
task.componentStack = previousComponentStack;
|
|
4828
|
+
switchContext(previousContext);
|
|
4829
|
+
return;
|
|
4830
|
+
}
|
|
4831
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
4832
|
+
node = getThenableStateAfterSuspending();
|
|
4833
|
+
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
4834
|
+
request.pingedTasks.push(node);
|
|
4835
|
+
task.formatContext = previousFormatContext;
|
|
4836
|
+
task.context = previousContext;
|
|
4837
|
+
task.keyPath = previousKeyPath;
|
|
4838
|
+
task.treeContext = previousTreeContext;
|
|
4839
|
+
task.componentStack = previousComponentStack;
|
|
4840
|
+
switchContext(previousContext);
|
|
4841
|
+
return;
|
|
4842
|
+
}
|
|
4519
4843
|
}
|
|
4520
4844
|
}
|
|
4521
4845
|
else {
|
|
@@ -4523,62 +4847,45 @@ function renderNode(request, task, node, childIndex) {
|
|
|
4523
4847
|
chunkLength = segment.chunks.length;
|
|
4524
4848
|
try {
|
|
4525
4849
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
4526
|
-
} catch (thrownValue$
|
|
4850
|
+
} catch (thrownValue$48) {
|
|
4527
4851
|
if (
|
|
4528
4852
|
(resetHooksState(),
|
|
4529
4853
|
(segment.children.length = childrenLength),
|
|
4530
4854
|
(segment.chunks.length = chunkLength),
|
|
4531
4855
|
(node =
|
|
4532
|
-
thrownValue$
|
|
4856
|
+
thrownValue$48 === SuspenseException
|
|
4533
4857
|
? getSuspendedThenable()
|
|
4534
|
-
: thrownValue$
|
|
4535
|
-
"object" === typeof node &&
|
|
4536
|
-
null !== node &&
|
|
4537
|
-
"function" === typeof node.then)
|
|
4858
|
+
: thrownValue$48),
|
|
4859
|
+
"object" === typeof node && null !== node)
|
|
4538
4860
|
) {
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
request,
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
task.
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
task.
|
|
4556
|
-
task.
|
|
4557
|
-
|
|
4558
|
-
task.
|
|
4559
|
-
task.
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
task.context,
|
|
4564
|
-
task.treeContext,
|
|
4565
|
-
null !== task.componentStack ? task.componentStack.parent : null,
|
|
4566
|
-
task.isFallback
|
|
4567
|
-
).ping;
|
|
4568
|
-
node.then(request, request);
|
|
4569
|
-
task.formatContext = previousFormatContext;
|
|
4570
|
-
task.legacyContext = previousLegacyContext;
|
|
4571
|
-
task.context = previousContext;
|
|
4572
|
-
task.keyPath = previousKeyPath;
|
|
4573
|
-
task.treeContext = previousTreeContext;
|
|
4574
|
-
task.componentStack = previousComponentStack;
|
|
4575
|
-
switchContext(previousContext);
|
|
4576
|
-
return;
|
|
4861
|
+
if ("function" === typeof node.then) {
|
|
4862
|
+
childIndex = getThenableStateAfterSuspending();
|
|
4863
|
+
request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
|
|
4864
|
+
node.then(request, request);
|
|
4865
|
+
task.formatContext = previousFormatContext;
|
|
4866
|
+
task.context = previousContext;
|
|
4867
|
+
task.keyPath = previousKeyPath;
|
|
4868
|
+
task.treeContext = previousTreeContext;
|
|
4869
|
+
task.componentStack = previousComponentStack;
|
|
4870
|
+
switchContext(previousContext);
|
|
4871
|
+
return;
|
|
4872
|
+
}
|
|
4873
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
4874
|
+
node = getThenableStateAfterSuspending();
|
|
4875
|
+
node = spawnNewSuspendedRenderTask(request, task, node);
|
|
4876
|
+
request.pingedTasks.push(node);
|
|
4877
|
+
task.formatContext = previousFormatContext;
|
|
4878
|
+
task.context = previousContext;
|
|
4879
|
+
task.keyPath = previousKeyPath;
|
|
4880
|
+
task.treeContext = previousTreeContext;
|
|
4881
|
+
task.componentStack = previousComponentStack;
|
|
4882
|
+
switchContext(previousContext);
|
|
4883
|
+
return;
|
|
4884
|
+
}
|
|
4577
4885
|
}
|
|
4578
4886
|
}
|
|
4579
4887
|
}
|
|
4580
4888
|
task.formatContext = previousFormatContext;
|
|
4581
|
-
task.legacyContext = previousLegacyContext;
|
|
4582
4889
|
task.context = previousContext;
|
|
4583
4890
|
task.keyPath = previousKeyPath;
|
|
4584
4891
|
task.treeContext = previousTreeContext;
|
|
@@ -4613,7 +4920,12 @@ function abortRemainingReplayNodes(
|
|
|
4613
4920
|
node = node[5];
|
|
4614
4921
|
var request = request$jscomp$0,
|
|
4615
4922
|
errorDigest = errorDigest$jscomp$0,
|
|
4616
|
-
resumedBoundary = createSuspenseBoundary(
|
|
4923
|
+
resumedBoundary = createSuspenseBoundary(
|
|
4924
|
+
request,
|
|
4925
|
+
new Set(),
|
|
4926
|
+
null,
|
|
4927
|
+
null
|
|
4928
|
+
);
|
|
4617
4929
|
resumedBoundary.parentFlushed = !0;
|
|
4618
4930
|
resumedBoundary.rootSegmentID = node;
|
|
4619
4931
|
resumedBoundary.status = 4;
|
|
@@ -4639,26 +4951,30 @@ function abortRemainingReplayNodes(
|
|
|
4639
4951
|
function abortTask(task, request, error) {
|
|
4640
4952
|
var boundary = task.blockedBoundary,
|
|
4641
4953
|
segment = task.blockedSegment;
|
|
4642
|
-
null !== segment
|
|
4954
|
+
if (null !== segment) {
|
|
4955
|
+
if (6 === segment.status) return;
|
|
4956
|
+
segment.status = 3;
|
|
4957
|
+
}
|
|
4958
|
+
segment = getThrownInfo(task.componentStack);
|
|
4643
4959
|
if (null === boundary) {
|
|
4644
|
-
if (
|
|
4645
|
-
|
|
4646
|
-
if (null ===
|
|
4647
|
-
logRecoverableError(request, error,
|
|
4960
|
+
if (13 !== request.status && 14 !== request.status) {
|
|
4961
|
+
boundary = task.replay;
|
|
4962
|
+
if (null === boundary) {
|
|
4963
|
+
logRecoverableError(request, error, segment);
|
|
4648
4964
|
fatalError(request, error);
|
|
4649
4965
|
return;
|
|
4650
4966
|
}
|
|
4651
|
-
|
|
4652
|
-
0 ===
|
|
4653
|
-
0 <
|
|
4654
|
-
((
|
|
4967
|
+
boundary.pendingTasks--;
|
|
4968
|
+
0 === boundary.pendingTasks &&
|
|
4969
|
+
0 < boundary.nodes.length &&
|
|
4970
|
+
((task = logRecoverableError(request, error, segment)),
|
|
4655
4971
|
abortRemainingReplayNodes(
|
|
4656
4972
|
request,
|
|
4657
4973
|
null,
|
|
4658
|
-
|
|
4659
|
-
|
|
4974
|
+
boundary.nodes,
|
|
4975
|
+
boundary.slots,
|
|
4660
4976
|
error,
|
|
4661
|
-
|
|
4977
|
+
task
|
|
4662
4978
|
));
|
|
4663
4979
|
request.pendingRootTasks--;
|
|
4664
4980
|
0 === request.pendingRootTasks && completeShell(request);
|
|
@@ -4667,8 +4983,8 @@ function abortTask(task, request, error) {
|
|
|
4667
4983
|
boundary.pendingTasks--,
|
|
4668
4984
|
4 !== boundary.status &&
|
|
4669
4985
|
((boundary.status = 4),
|
|
4670
|
-
(task =
|
|
4671
|
-
(
|
|
4986
|
+
(task = logRecoverableError(request, error, segment)),
|
|
4987
|
+
(boundary.status = 4),
|
|
4672
4988
|
(boundary.errorDigest = task),
|
|
4673
4989
|
untrackBoundary(request, boundary),
|
|
4674
4990
|
boundary.parentFlushed &&
|
|
@@ -4722,7 +5038,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
|
4722
5038
|
referrerPolicy: props$jscomp$0.referrerPolicy,
|
|
4723
5039
|
media: props$jscomp$0.media
|
|
4724
5040
|
});
|
|
4725
|
-
if (
|
|
5041
|
+
if (0 <= (headers.remainingCapacity -= header.length + 2))
|
|
4726
5042
|
(renderState.resets.style[key] = PRELOAD_NO_CREDS),
|
|
4727
5043
|
linkHeader && (linkHeader += ", "),
|
|
4728
5044
|
(linkHeader += header),
|
|
@@ -4743,6 +5059,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
|
4743
5059
|
}
|
|
4744
5060
|
function completeShell(request) {
|
|
4745
5061
|
null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
|
|
5062
|
+
null === request.trackedPostpones && preparePreamble(request);
|
|
4746
5063
|
request.onShellError = noop;
|
|
4747
5064
|
request = request.onShellReady;
|
|
4748
5065
|
request();
|
|
@@ -4755,6 +5072,7 @@ function completeAll(request) {
|
|
|
4755
5072
|
: null === request.completedRootSegment ||
|
|
4756
5073
|
5 !== request.completedRootSegment.status
|
|
4757
5074
|
);
|
|
5075
|
+
preparePreamble(request);
|
|
4758
5076
|
request = request.onAllReady;
|
|
4759
5077
|
request();
|
|
4760
5078
|
}
|
|
@@ -4795,7 +5113,11 @@ function finishedTask(request, boundary, segment) {
|
|
|
4795
5113
|
request.completedBoundaries.push(boundary),
|
|
4796
5114
|
1 === boundary.status &&
|
|
4797
5115
|
(boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
|
|
4798
|
-
boundary.fallbackAbortableTasks.clear()
|
|
5116
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
5117
|
+
0 === request.pendingRootTasks &&
|
|
5118
|
+
null === request.trackedPostpones &&
|
|
5119
|
+
null !== boundary.contentPreamble &&
|
|
5120
|
+
preparePreamble(request)))
|
|
4799
5121
|
: null !== segment &&
|
|
4800
5122
|
segment.parentFlushed &&
|
|
4801
5123
|
1 === segment.status &&
|
|
@@ -4807,7 +5129,7 @@ function finishedTask(request, boundary, segment) {
|
|
|
4807
5129
|
0 === request.allPendingTasks && completeAll(request);
|
|
4808
5130
|
}
|
|
4809
5131
|
function performWork(request$jscomp$2) {
|
|
4810
|
-
if (2 !== request$jscomp$2.status) {
|
|
5132
|
+
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
|
|
4811
5133
|
var prevContext = currentActiveSnapshot,
|
|
4812
5134
|
prevDispatcher = ReactSharedInternals.H;
|
|
4813
5135
|
ReactSharedInternals.H = HooksDispatcher;
|
|
@@ -4829,12 +5151,15 @@ function performWork(request$jscomp$2) {
|
|
|
4829
5151
|
if (0 !== task.replay.pendingTasks) {
|
|
4830
5152
|
switchContext(task.context);
|
|
4831
5153
|
try {
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
5154
|
+
"number" === typeof task.replay.slots
|
|
5155
|
+
? resumeNode(
|
|
5156
|
+
request$jscomp$0,
|
|
5157
|
+
task,
|
|
5158
|
+
task.replay.slots,
|
|
5159
|
+
task.node,
|
|
5160
|
+
task.childIndex
|
|
5161
|
+
)
|
|
5162
|
+
: retryNode(request$jscomp$0, task);
|
|
4838
5163
|
if (
|
|
4839
5164
|
1 === task.replay.pendingTasks &&
|
|
4840
5165
|
0 < task.replay.nodes.length
|
|
@@ -4859,19 +5184,17 @@ function performWork(request$jscomp$2) {
|
|
|
4859
5184
|
var ping = task.ping;
|
|
4860
5185
|
x.then(ping, ping);
|
|
4861
5186
|
task.thenableState = getThenableStateAfterSuspending();
|
|
4862
|
-
null !== task.componentStack &&
|
|
4863
|
-
(task.componentStack = task.componentStack.parent);
|
|
4864
5187
|
} else {
|
|
4865
5188
|
task.replay.pendingTasks--;
|
|
4866
5189
|
task.abortSet.delete(task);
|
|
4867
|
-
var errorInfo = getThrownInfo(
|
|
4868
|
-
request$jscomp$0,
|
|
4869
|
-
task.componentStack
|
|
4870
|
-
);
|
|
5190
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
|
4871
5191
|
request = void 0;
|
|
4872
5192
|
var request$jscomp$1 = request$jscomp$0,
|
|
4873
5193
|
boundary = task.blockedBoundary,
|
|
4874
|
-
error$jscomp$0 =
|
|
5194
|
+
error$jscomp$0 =
|
|
5195
|
+
12 === request$jscomp$0.status
|
|
5196
|
+
? request$jscomp$0.fatalError
|
|
5197
|
+
: x,
|
|
4875
5198
|
replayNodes = task.replay.nodes,
|
|
4876
5199
|
resumeSlots = task.replay.slots;
|
|
4877
5200
|
request = logRecoverableError(
|
|
@@ -4902,11 +5225,12 @@ function performWork(request$jscomp$2) {
|
|
|
4902
5225
|
(request$jscomp$1 = segment),
|
|
4903
5226
|
0 === request$jscomp$1.status)
|
|
4904
5227
|
) {
|
|
5228
|
+
request$jscomp$1.status = 6;
|
|
4905
5229
|
switchContext(task.context);
|
|
4906
5230
|
var childrenLength = request$jscomp$1.children.length,
|
|
4907
5231
|
chunkLength = request$jscomp$1.chunks.length;
|
|
4908
5232
|
try {
|
|
4909
|
-
|
|
5233
|
+
retryNode(request, task),
|
|
4910
5234
|
request$jscomp$1.lastPushedText &&
|
|
4911
5235
|
request$jscomp$1.textEmbedded &&
|
|
4912
5236
|
request$jscomp$1.chunks.push("\x3c!-- --\x3e"),
|
|
@@ -4920,22 +5244,20 @@ function performWork(request$jscomp$2) {
|
|
|
4920
5244
|
var x$jscomp$0 =
|
|
4921
5245
|
thrownValue === SuspenseException
|
|
4922
5246
|
? getSuspendedThenable()
|
|
4923
|
-
:
|
|
5247
|
+
: 12 === request.status
|
|
5248
|
+
? request.fatalError
|
|
5249
|
+
: thrownValue;
|
|
4924
5250
|
if (
|
|
4925
5251
|
"object" === typeof x$jscomp$0 &&
|
|
4926
5252
|
null !== x$jscomp$0 &&
|
|
4927
5253
|
"function" === typeof x$jscomp$0.then
|
|
4928
5254
|
) {
|
|
5255
|
+
request$jscomp$1.status = 0;
|
|
5256
|
+
task.thenableState = getThenableStateAfterSuspending();
|
|
4929
5257
|
var ping$jscomp$0 = task.ping;
|
|
4930
5258
|
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
4931
|
-
task.thenableState = getThenableStateAfterSuspending();
|
|
4932
|
-
null !== task.componentStack &&
|
|
4933
|
-
(task.componentStack = task.componentStack.parent);
|
|
4934
5259
|
} else {
|
|
4935
|
-
var errorInfo$jscomp$0 = getThrownInfo(
|
|
4936
|
-
request,
|
|
4937
|
-
task.componentStack
|
|
4938
|
-
);
|
|
5260
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
4939
5261
|
task.abortSet.delete(task);
|
|
4940
5262
|
request$jscomp$1.status = 4;
|
|
4941
5263
|
var boundary$jscomp$0 = task.blockedBoundary;
|
|
@@ -4952,9 +5274,11 @@ function performWork(request$jscomp$2) {
|
|
|
4952
5274
|
(boundary$jscomp$0.errorDigest = request$jscomp$0),
|
|
4953
5275
|
untrackBoundary(request, boundary$jscomp$0),
|
|
4954
5276
|
boundary$jscomp$0.parentFlushed &&
|
|
4955
|
-
request.clientRenderedBoundaries.push(
|
|
4956
|
-
|
|
4957
|
-
|
|
5277
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0),
|
|
5278
|
+
0 === request.pendingRootTasks &&
|
|
5279
|
+
null === request.trackedPostpones &&
|
|
5280
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
|
5281
|
+
preparePreamble(request)));
|
|
4958
5282
|
request.allPendingTasks--;
|
|
4959
5283
|
0 === request.allPendingTasks && completeAll(request);
|
|
4960
5284
|
}
|
|
@@ -4977,6 +5301,85 @@ function performWork(request$jscomp$2) {
|
|
|
4977
5301
|
}
|
|
4978
5302
|
}
|
|
4979
5303
|
}
|
|
5304
|
+
function preparePreambleFromSubtree(
|
|
5305
|
+
request,
|
|
5306
|
+
segment,
|
|
5307
|
+
collectedPreambleSegments
|
|
5308
|
+
) {
|
|
5309
|
+
segment.preambleChildren.length &&
|
|
5310
|
+
collectedPreambleSegments.push(segment.preambleChildren);
|
|
5311
|
+
for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
|
|
5312
|
+
pendingPreambles =
|
|
5313
|
+
preparePreambleFromSegment(
|
|
5314
|
+
request,
|
|
5315
|
+
segment.children[i],
|
|
5316
|
+
collectedPreambleSegments
|
|
5317
|
+
) || pendingPreambles;
|
|
5318
|
+
return pendingPreambles;
|
|
5319
|
+
}
|
|
5320
|
+
function preparePreambleFromSegment(
|
|
5321
|
+
request,
|
|
5322
|
+
segment,
|
|
5323
|
+
collectedPreambleSegments
|
|
5324
|
+
) {
|
|
5325
|
+
var boundary = segment.boundary;
|
|
5326
|
+
if (null === boundary)
|
|
5327
|
+
return preparePreambleFromSubtree(
|
|
5328
|
+
request,
|
|
5329
|
+
segment,
|
|
5330
|
+
collectedPreambleSegments
|
|
5331
|
+
);
|
|
5332
|
+
var preamble = boundary.contentPreamble,
|
|
5333
|
+
fallbackPreamble = boundary.fallbackPreamble;
|
|
5334
|
+
if (null === preamble || null === fallbackPreamble) return !1;
|
|
5335
|
+
switch (boundary.status) {
|
|
5336
|
+
case 1:
|
|
5337
|
+
hoistPreambleState(request.renderState, preamble);
|
|
5338
|
+
segment = boundary.completedSegments[0];
|
|
5339
|
+
if (!segment)
|
|
5340
|
+
throw Error(
|
|
5341
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
|
5342
|
+
);
|
|
5343
|
+
return preparePreambleFromSubtree(
|
|
5344
|
+
request,
|
|
5345
|
+
segment,
|
|
5346
|
+
collectedPreambleSegments
|
|
5347
|
+
);
|
|
5348
|
+
case 5:
|
|
5349
|
+
if (null !== request.trackedPostpones) return !0;
|
|
5350
|
+
case 4:
|
|
5351
|
+
if (1 === segment.status)
|
|
5352
|
+
return (
|
|
5353
|
+
hoistPreambleState(request.renderState, fallbackPreamble),
|
|
5354
|
+
preparePreambleFromSubtree(
|
|
5355
|
+
request,
|
|
5356
|
+
segment,
|
|
5357
|
+
collectedPreambleSegments
|
|
5358
|
+
)
|
|
5359
|
+
);
|
|
5360
|
+
default:
|
|
5361
|
+
return !0;
|
|
5362
|
+
}
|
|
5363
|
+
}
|
|
5364
|
+
function preparePreamble(request) {
|
|
5365
|
+
if (
|
|
5366
|
+
request.completedRootSegment &&
|
|
5367
|
+
null === request.completedPreambleSegments
|
|
5368
|
+
) {
|
|
5369
|
+
var collectedPreambleSegments = [],
|
|
5370
|
+
hasPendingPreambles = preparePreambleFromSegment(
|
|
5371
|
+
request,
|
|
5372
|
+
request.completedRootSegment,
|
|
5373
|
+
collectedPreambleSegments
|
|
5374
|
+
),
|
|
5375
|
+
preamble = request.renderState.preamble;
|
|
5376
|
+
if (
|
|
5377
|
+
!1 === hasPendingPreambles ||
|
|
5378
|
+
(preamble.headChunks && preamble.bodyChunks)
|
|
5379
|
+
)
|
|
5380
|
+
request.completedPreambleSegments = collectedPreambleSegments;
|
|
5381
|
+
}
|
|
5382
|
+
}
|
|
4980
5383
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
4981
5384
|
segment.parentFlushed = !0;
|
|
4982
5385
|
switch (segment.status) {
|
|
@@ -5020,18 +5423,24 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
5020
5423
|
if (null === boundary)
|
|
5021
5424
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
5022
5425
|
boundary.parentFlushed = !0;
|
|
5023
|
-
if (4 === boundary.status)
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5426
|
+
if (4 === boundary.status) {
|
|
5427
|
+
var errorDigest = boundary.errorDigest;
|
|
5428
|
+
destination.write("\x3c!--$!--\x3e");
|
|
5429
|
+
writeChunk(destination, "<template");
|
|
5430
|
+
errorDigest &&
|
|
5431
|
+
(writeChunk(destination, ' data-dgst="'),
|
|
5432
|
+
writeChunk(destination, escapeTextForBrowser(errorDigest)),
|
|
5433
|
+
writeChunk(destination, '"'));
|
|
5434
|
+
destination.write("></template>");
|
|
5435
|
+
flushSubtree(request, destination, segment, hoistableState);
|
|
5436
|
+
(request = boundary.fallbackPreamble) &&
|
|
5437
|
+
writePreambleContribution(destination, request);
|
|
5438
|
+
return !!destination.write("\x3c!--/$--\x3e");
|
|
5439
|
+
}
|
|
5440
|
+
if (1 !== boundary.status)
|
|
5441
|
+
return (
|
|
5442
|
+
0 === boundary.status &&
|
|
5443
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
5035
5444
|
0 < boundary.completedSegments.length &&
|
|
5036
5445
|
request.partialBoundaries.push(boundary),
|
|
5037
5446
|
writeStartPendingSuspenseBoundary(
|
|
@@ -5046,29 +5455,34 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
5046
5455
|
hoistStylesheetDependency,
|
|
5047
5456
|
hoistableState
|
|
5048
5457
|
)),
|
|
5049
|
-
flushSubtree(request, destination, segment, hoistableState)
|
|
5050
|
-
|
|
5051
|
-
|
|
5458
|
+
flushSubtree(request, destination, segment, hoistableState),
|
|
5459
|
+
!!destination.write("\x3c!--/$--\x3e")
|
|
5460
|
+
);
|
|
5461
|
+
if (boundary.byteSize > request.progressiveChunkSize)
|
|
5462
|
+
return (
|
|
5463
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
5052
5464
|
request.completedBoundaries.push(boundary),
|
|
5053
5465
|
writeStartPendingSuspenseBoundary(
|
|
5054
5466
|
destination,
|
|
5055
5467
|
request.renderState,
|
|
5056
5468
|
boundary.rootSegmentID
|
|
5057
5469
|
),
|
|
5058
|
-
flushSubtree(request, destination, segment, hoistableState)
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5470
|
+
flushSubtree(request, destination, segment, hoistableState),
|
|
5471
|
+
!!destination.write("\x3c!--/$--\x3e")
|
|
5472
|
+
);
|
|
5473
|
+
hoistableState &&
|
|
5474
|
+
((segment = boundary.contentState),
|
|
5475
|
+
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
|
5476
|
+
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
|
5477
|
+
destination.write("\x3c!--$--\x3e");
|
|
5478
|
+
segment = boundary.completedSegments;
|
|
5479
|
+
if (1 !== segment.length)
|
|
5480
|
+
throw Error(
|
|
5481
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
|
5482
|
+
);
|
|
5483
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
|
5484
|
+
(request = boundary.contentPreamble) &&
|
|
5485
|
+
writePreambleContribution(destination, request);
|
|
5072
5486
|
return !!destination.write("\x3c!--/$--\x3e");
|
|
5073
5487
|
}
|
|
5074
5488
|
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
|
@@ -5111,22 +5525,22 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
5111
5525
|
? ((completedSegments.instructions |= 10),
|
|
5112
5526
|
writeChunk(
|
|
5113
5527
|
destination,
|
|
5114
|
-
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(
|
|
5528
|
+
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
|
|
5115
5529
|
))
|
|
5116
5530
|
: 0 === (completedSegments.instructions & 8)
|
|
5117
|
-
|
|
5531
|
+
? ((completedSegments.instructions |= 8),
|
|
5532
|
+
writeChunk(
|
|
5533
|
+
destination,
|
|
5534
|
+
'$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
|
|
5535
|
+
))
|
|
5536
|
+
: writeChunk(destination, '$RR("')
|
|
5537
|
+
: 0 === (completedSegments.instructions & 2)
|
|
5538
|
+
? ((completedSegments.instructions |= 2),
|
|
5118
5539
|
writeChunk(
|
|
5119
5540
|
destination,
|
|
5120
|
-
'$
|
|
5541
|
+
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
|
|
5121
5542
|
))
|
|
5122
|
-
: writeChunk(destination, '$
|
|
5123
|
-
: 0 === (completedSegments.instructions & 2)
|
|
5124
|
-
? ((completedSegments.instructions |= 2),
|
|
5125
|
-
writeChunk(
|
|
5126
|
-
destination,
|
|
5127
|
-
'$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
|
|
5128
|
-
))
|
|
5129
|
-
: writeChunk(destination, '$RC("');
|
|
5543
|
+
: writeChunk(destination, '$RC("');
|
|
5130
5544
|
completedSegments = i.toString(16);
|
|
5131
5545
|
writeChunk(destination, request.boundaryPrefix);
|
|
5132
5546
|
writeChunk(destination, completedSegments);
|
|
@@ -5185,9 +5599,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
5185
5599
|
completedRootSegment = request.completedRootSegment;
|
|
5186
5600
|
if (null !== completedRootSegment) {
|
|
5187
5601
|
if (5 === completedRootSegment.status) return;
|
|
5602
|
+
var completedPreambleSegments = request.completedPreambleSegments;
|
|
5603
|
+
if (null === completedPreambleSegments) return;
|
|
5188
5604
|
var renderState = request.renderState,
|
|
5189
|
-
|
|
5190
|
-
|
|
5605
|
+
preamble = renderState.preamble,
|
|
5606
|
+
htmlChunks = preamble.htmlChunks,
|
|
5607
|
+
headChunks = preamble.headChunks,
|
|
5191
5608
|
i$jscomp$0;
|
|
5192
5609
|
if (htmlChunks) {
|
|
5193
5610
|
for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
|
|
@@ -5228,10 +5645,27 @@ function flushCompletedQueues(request, destination) {
|
|
|
5228
5645
|
var hoistableChunks = renderState.hoistableChunks;
|
|
5229
5646
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
|
5230
5647
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5648
|
+
for (
|
|
5649
|
+
renderState = hoistableChunks.length = 0;
|
|
5650
|
+
renderState < completedPreambleSegments.length;
|
|
5651
|
+
renderState++
|
|
5652
|
+
) {
|
|
5653
|
+
var segments = completedPreambleSegments[renderState];
|
|
5654
|
+
for (preamble = 0; preamble < segments.length; preamble++)
|
|
5655
|
+
flushSegment(request, destination, segments[preamble], null);
|
|
5656
|
+
}
|
|
5657
|
+
var preamble$jscomp$0 = request.renderState.preamble,
|
|
5658
|
+
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
5659
|
+
(preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) &&
|
|
5234
5660
|
writeChunk(destination, endChunkForTag("head"));
|
|
5661
|
+
var bodyChunks = preamble$jscomp$0.bodyChunks;
|
|
5662
|
+
if (bodyChunks)
|
|
5663
|
+
for (
|
|
5664
|
+
completedPreambleSegments = 0;
|
|
5665
|
+
completedPreambleSegments < bodyChunks.length;
|
|
5666
|
+
completedPreambleSegments++
|
|
5667
|
+
)
|
|
5668
|
+
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
|
5235
5669
|
flushSegment(request, destination, completedRootSegment, null);
|
|
5236
5670
|
request.completedRootSegment = null;
|
|
5237
5671
|
writeBootstrap(destination, request.renderState);
|
|
@@ -5319,11 +5753,11 @@ function flushCompletedQueues(request, destination) {
|
|
|
5319
5753
|
completedBoundaries.splice(0, i);
|
|
5320
5754
|
var partialBoundaries = request.partialBoundaries;
|
|
5321
5755
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
5322
|
-
var boundary$
|
|
5756
|
+
var boundary$51 = partialBoundaries[i];
|
|
5323
5757
|
a: {
|
|
5324
5758
|
clientRenderedBoundaries = request;
|
|
5325
5759
|
boundary = destination;
|
|
5326
|
-
var completedSegments = boundary$
|
|
5760
|
+
var completedSegments = boundary$51.completedSegments;
|
|
5327
5761
|
for (
|
|
5328
5762
|
JSCompiler_inline_result = 0;
|
|
5329
5763
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -5333,7 +5767,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
5333
5767
|
!flushPartiallyCompletedSegment(
|
|
5334
5768
|
clientRenderedBoundaries,
|
|
5335
5769
|
boundary,
|
|
5336
|
-
boundary$
|
|
5770
|
+
boundary$51,
|
|
5337
5771
|
completedSegments[JSCompiler_inline_result]
|
|
5338
5772
|
)
|
|
5339
5773
|
) {
|
|
@@ -5345,7 +5779,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
5345
5779
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
5346
5780
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
5347
5781
|
boundary,
|
|
5348
|
-
boundary$
|
|
5782
|
+
boundary$51.contentState,
|
|
5349
5783
|
clientRenderedBoundaries.renderState
|
|
5350
5784
|
);
|
|
5351
5785
|
}
|
|
@@ -5377,32 +5811,49 @@ function flushCompletedQueues(request, destination) {
|
|
|
5377
5811
|
i.hasBody && writeChunk(destination, endChunkForTag("body")),
|
|
5378
5812
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
5379
5813
|
flushBuffered(destination),
|
|
5814
|
+
(request.status = 14),
|
|
5380
5815
|
destination.end(),
|
|
5381
5816
|
(request.destination = null))
|
|
5382
5817
|
: flushBuffered(destination);
|
|
5383
5818
|
}
|
|
5384
5819
|
}
|
|
5820
|
+
function startWork(request) {
|
|
5821
|
+
request.flushScheduled = null !== request.destination;
|
|
5822
|
+
scheduleMicrotask(function () {
|
|
5823
|
+
return performWork(request);
|
|
5824
|
+
});
|
|
5825
|
+
setTimeout(function () {
|
|
5826
|
+
10 === request.status && (request.status = 11);
|
|
5827
|
+
null === request.trackedPostpones &&
|
|
5828
|
+
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
|
5829
|
+
}, 0);
|
|
5830
|
+
}
|
|
5385
5831
|
function enqueueFlush(request) {
|
|
5386
|
-
|
|
5387
|
-
!1 === request.flushScheduled &&
|
|
5832
|
+
!1 === request.flushScheduled &&
|
|
5388
5833
|
0 === request.pingedTasks.length &&
|
|
5389
|
-
null !== request.destination
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5834
|
+
null !== request.destination &&
|
|
5835
|
+
((request.flushScheduled = !0),
|
|
5836
|
+
setTimeout(function () {
|
|
5837
|
+
var destination = request.destination;
|
|
5838
|
+
destination
|
|
5839
|
+
? flushCompletedQueues(request, destination)
|
|
5840
|
+
: (request.flushScheduled = !1);
|
|
5841
|
+
}, 0));
|
|
5397
5842
|
}
|
|
5398
5843
|
function abort(request, reason) {
|
|
5844
|
+
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
5399
5845
|
try {
|
|
5400
5846
|
var abortableTasks = request.abortableTasks;
|
|
5401
5847
|
if (0 < abortableTasks.size) {
|
|
5402
5848
|
var error =
|
|
5403
5849
|
void 0 === reason
|
|
5404
5850
|
? Error("The render was aborted by the server without a reason.")
|
|
5405
|
-
: reason
|
|
5851
|
+
: "object" === typeof reason &&
|
|
5852
|
+
null !== reason &&
|
|
5853
|
+
"function" === typeof reason.then
|
|
5854
|
+
? Error("The render was aborted by the server with a promise.")
|
|
5855
|
+
: reason;
|
|
5856
|
+
request.fatalError = error;
|
|
5406
5857
|
abortableTasks.forEach(function (task) {
|
|
5407
5858
|
return abortTask(task, request, error);
|
|
5408
5859
|
});
|
|
@@ -5410,10 +5861,20 @@ function abort(request, reason) {
|
|
|
5410
5861
|
}
|
|
5411
5862
|
null !== request.destination &&
|
|
5412
5863
|
flushCompletedQueues(request, request.destination);
|
|
5413
|
-
} catch (error$
|
|
5414
|
-
logRecoverableError(request, error$
|
|
5864
|
+
} catch (error$53) {
|
|
5865
|
+
logRecoverableError(request, error$53, {}), fatalError(request, error$53);
|
|
5415
5866
|
}
|
|
5416
5867
|
}
|
|
5868
|
+
var isomorphicReactPackageVersion$jscomp$inline_761 = React.version;
|
|
5869
|
+
if (
|
|
5870
|
+
"19.2.0-canary-5252281c-20250408" !==
|
|
5871
|
+
isomorphicReactPackageVersion$jscomp$inline_761
|
|
5872
|
+
)
|
|
5873
|
+
throw Error(
|
|
5874
|
+
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
5875
|
+
(isomorphicReactPackageVersion$jscomp$inline_761 +
|
|
5876
|
+
"\n - react-dom: 19.2.0-canary-5252281c-20250408\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
5877
|
+
);
|
|
5417
5878
|
exports.renderToReadableStream = function (children, options) {
|
|
5418
5879
|
return new Promise(function (resolve, reject) {
|
|
5419
5880
|
var onFatalError,
|
|
@@ -5455,10 +5916,13 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
5455
5916
|
{
|
|
5456
5917
|
type: "direct",
|
|
5457
5918
|
pull: function (controller) {
|
|
5458
|
-
if (
|
|
5459
|
-
(request.status =
|
|
5919
|
+
if (13 === request.status)
|
|
5920
|
+
(request.status = 14),
|
|
5460
5921
|
closeWithError(controller, request.fatalError);
|
|
5461
|
-
else if (
|
|
5922
|
+
else if (
|
|
5923
|
+
14 !== request.status &&
|
|
5924
|
+
null === request.destination
|
|
5925
|
+
) {
|
|
5462
5926
|
request.destination = controller;
|
|
5463
5927
|
try {
|
|
5464
5928
|
flushCompletedQueues(request, controller);
|
|
@@ -5497,10 +5961,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
5497
5961
|
signal.addEventListener("abort", listener);
|
|
5498
5962
|
}
|
|
5499
5963
|
}
|
|
5500
|
-
request
|
|
5501
|
-
performWork(request);
|
|
5502
|
-
null === request.trackedPostpones &&
|
|
5503
|
-
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
|
5964
|
+
startWork(request);
|
|
5504
5965
|
});
|
|
5505
5966
|
};
|
|
5506
|
-
exports.version = "19.
|
|
5967
|
+
exports.version = "19.2.0-canary-5252281c-20250408";
|