From 1b5e307f6bf1e3c98c27196a4fdf51b2c74aeee6 Mon Sep 17 00:00:00 2001 From: Josh Story Date: Wed, 8 Nov 2023 11:36:54 -0800 Subject: [PATCH] Update React from 2983249dd to 7508dcd5c (#58216) Updated React from 2983249dd to 7508dcd5c. - https://github.com/facebook/react/pull/27672 - https://github.com/facebook/react/pull/27132 - https://github.com/facebook/react/pull/27646 - https://github.com/facebook/react/pull/26446 --- package.json | 20 +- ...t-dom-server-legacy.browser.development.js | 223 +- ...ct-dom-server-legacy.browser.production.js | 8893 +++++ ...om-server-legacy.browser.production.min.js | 343 +- ...eact-dom-server-legacy.node.development.js | 223 +- ...react-dom-server-legacy.node.production.js | 8941 +++++ ...t-dom-server-legacy.node.production.min.js | 361 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...ct-dom-server-rendering-stub.production.js | 243 + ...om-server-rendering-stub.production.min.js | 22 +- .../react-dom-server.browser.development.js | 232 +- .../react-dom-server.browser.production.js | 9107 +++++ ...react-dom-server.browser.production.min.js | 92 +- .../cjs/react-dom-server.bun.production.js | 8730 +++++ .../cjs/react-dom-server.edge.development.js | 232 +- .../cjs/react-dom-server.edge.production.js | 9106 +++++ .../react-dom-server.edge.production.min.js | 132 +- .../cjs/react-dom-server.node.development.js | 232 +- .../cjs/react-dom-server.node.production.js | 9052 +++++ .../react-dom-server.node.production.min.js | 46 +- .../cjs/react-dom-test-utils.production.js | 1532 + .../react-dom-unstable_testing.development.js | 196 +- .../react-dom-unstable_testing.production.js | 28514 +++++++++++++++ ...act-dom-unstable_testing.production.min.js | 29 +- .../cjs/react-dom.development.js | 196 +- .../cjs/react-dom.production.js | 27812 +++++++++++++++ .../cjs/react-dom.production.min.js | 259 +- .../cjs/react-dom.profiling.js | 29142 ++++++++++++++++ .../cjs/react-dom.profiling.min.js | 369 +- .../cjs/react-dom.shared-subset.production.js | 164 + .../react-dom.shared-subset.production.min.js | 20 +- .../react-dom-experimental/package.json | 4 +- ...t-dom-server-legacy.browser.development.js | 223 +- ...ct-dom-server-legacy.browser.production.js | 8626 +++++ ...om-server-legacy.browser.production.min.js | 290 +- ...eact-dom-server-legacy.node.development.js | 223 +- ...react-dom-server-legacy.node.production.js | 8674 +++++ ...t-dom-server-legacy.node.production.min.js | 357 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...ct-dom-server-rendering-stub.production.js | 243 + ...om-server-rendering-stub.production.min.js | 22 +- .../react-dom-server.browser.development.js | 225 +- .../react-dom-server.browser.production.js | 8615 +++++ ...react-dom-server.browser.production.min.js | 90 +- .../cjs/react-dom-server.bun.production.js | 8463 +++++ .../cjs/react-dom-server.edge.development.js | 225 +- .../cjs/react-dom-server.edge.production.js | 8614 +++++ .../react-dom-server.edge.production.min.js | 128 +- .../cjs/react-dom-server.node.development.js | 225 +- .../cjs/react-dom-server.node.production.js | 8583 +++++ .../react-dom-server.node.production.min.js | 214 +- .../cjs/react-dom-test-utils.production.js | 1532 + .../react-dom/cjs/react-dom.development.js | 209 +- .../react-dom/cjs/react-dom.production.js | 27570 +++++++++++++++ .../react-dom/cjs/react-dom.production.min.js | 263 +- .../react-dom/cjs/react-dom.profiling.js | 28900 +++++++++++++++ .../react-dom/cjs/react-dom.profiling.min.js | 333 +- .../cjs/react-dom.shared-subset.production.js | 164 + .../react-dom.shared-subset.production.min.js | 20 +- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react-jsx-dev-runtime.development.js | 198 +- .../cjs/react-jsx-dev-runtime.production.js | 18 + .../react-jsx-dev-runtime.production.min.js | 20 +- .../cjs/react-jsx-dev-runtime.profiling.js | 18 + .../react-jsx-dev-runtime.profiling.min.js | 20 +- .../cjs/react-jsx-runtime.development.js | 198 +- .../cjs/react-jsx-runtime.production.js | 142 + .../cjs/react-jsx-runtime.production.min.js | 20 +- .../cjs/react-jsx-runtime.profiling.js | 142 + .../cjs/react-jsx-runtime.profiling.min.js | 20 +- .../cjs/react.development.js | 198 +- .../cjs/react.production.js | 1227 + .../cjs/react.production.min.js | 22 +- .../cjs/react.shared-subset.development.js | 198 +- .../cjs/react.shared-subset.production.js | 1322 + .../cjs/react.shared-subset.production.min.js | 22 +- ...dom-turbopack-client.browser.production.js | 1795 + ...turbopack-client.browser.production.min.js | 20 +- ...er-dom-turbopack-client.edge.production.js | 2024 ++ ...om-turbopack-client.edge.production.min.js | 20 +- ...er-dom-turbopack-client.node.production.js | 1983 ++ ...om-turbopack-client.node.production.min.js | 20 +- ...bopack-client.node.unbundled.production.js | 1938 + ...ck-client.node.unbundled.production.min.js | 20 +- ...eact-server-dom-turbopack-node-register.js | 19 +- ...dom-turbopack-server.browser.production.js | 3387 ++ ...turbopack-server.browser.production.min.js | 20 +- ...er-dom-turbopack-server.edge.production.js | 3397 ++ ...om-turbopack-server.edge.production.min.js | 20 +- ...er-dom-turbopack-server.node.production.js | 3600 ++ ...om-turbopack-server.node.production.min.js | 20 +- ...bopack-server.node.unbundled.production.js | 3529 ++ ...ck-server.node.unbundled.production.min.js | 20 +- .../package.json | 4 +- ...dom-turbopack-client.browser.production.js | 1617 + ...turbopack-client.browser.production.min.js | 20 +- ...er-dom-turbopack-client.edge.production.js | 1846 + ...om-turbopack-client.edge.production.min.js | 20 +- ...er-dom-turbopack-client.node.production.js | 1805 + ...om-turbopack-client.node.production.min.js | 20 +- ...bopack-client.node.unbundled.production.js | 1760 + ...ck-client.node.unbundled.production.min.js | 20 +- ...eact-server-dom-turbopack-node-register.js | 19 +- ...dom-turbopack-server.browser.production.js | 3050 ++ ...turbopack-server.browser.production.min.js | 20 +- ...er-dom-turbopack-server.edge.production.js | 3060 ++ ...om-turbopack-server.edge.production.min.js | 20 +- ...er-dom-turbopack-server.node.production.js | 3269 ++ ...om-turbopack-server.node.production.min.js | 20 +- ...bopack-server.node.unbundled.production.js | 3198 ++ ...ck-server.node.unbundled.production.min.js | 20 +- .../react-server-dom-turbopack/package.json | 4 +- ...r-dom-webpack-client.browser.production.js | 1816 + ...m-webpack-client.browser.production.min.js | 20 +- ...rver-dom-webpack-client.edge.production.js | 2026 ++ ...-dom-webpack-client.edge.production.min.js | 20 +- ...rver-dom-webpack-client.node.production.js | 1985 ++ ...-dom-webpack-client.node.production.min.js | 20 +- ...ebpack-client.node.unbundled.production.js | 1938 + ...ck-client.node.unbundled.production.min.js | 20 +- .../react-server-dom-webpack-node-register.js | 19 +- .../cjs/react-server-dom-webpack-plugin.js | 19 +- ...r-dom-webpack-server.browser.production.js | 3476 ++ ...m-webpack-server.browser.production.min.js | 20 +- ...rver-dom-webpack-server.edge.production.js | 3467 ++ ...-dom-webpack-server.edge.production.min.js | 20 +- ...rver-dom-webpack-server.node.production.js | 3677 ++ ...-dom-webpack-server.node.production.min.js | 20 +- ...ebpack-server.node.unbundled.production.js | 3604 ++ ...ck-server.node.unbundled.production.min.js | 20 +- .../package.json | 4 +- ...r-dom-webpack-client.browser.production.js | 1638 + ...m-webpack-client.browser.production.min.js | 20 +- ...rver-dom-webpack-client.edge.production.js | 1848 + ...-dom-webpack-client.edge.production.min.js | 20 +- ...rver-dom-webpack-client.node.production.js | 1807 + ...-dom-webpack-client.node.production.min.js | 20 +- ...ebpack-client.node.unbundled.production.js | 1760 + ...ck-client.node.unbundled.production.min.js | 20 +- .../react-server-dom-webpack-node-register.js | 19 +- .../cjs/react-server-dom-webpack-plugin.js | 19 +- ...r-dom-webpack-server.browser.production.js | 3139 ++ ...m-webpack-server.browser.production.min.js | 20 +- ...rver-dom-webpack-server.edge.production.js | 3130 ++ ...-dom-webpack-server.edge.production.min.js | 20 +- ...rver-dom-webpack-server.node.production.js | 3346 ++ ...-dom-webpack-server.node.production.min.js | 20 +- ...ebpack-server.node.unbundled.production.js | 3273 ++ ...ck-server.node.unbundled.production.min.js | 20 +- .../react-server-dom-webpack/package.json | 4 +- .../cjs/react-jsx-dev-runtime.development.js | 198 +- .../cjs/react-jsx-dev-runtime.production.js | 18 + .../react-jsx-dev-runtime.production.min.js | 20 +- .../cjs/react-jsx-dev-runtime.profiling.js | 18 + .../react-jsx-dev-runtime.profiling.min.js | 20 +- .../cjs/react-jsx-runtime.development.js | 198 +- .../react/cjs/react-jsx-runtime.production.js | 142 + .../cjs/react-jsx-runtime.production.min.js | 20 +- .../react/cjs/react-jsx-runtime.profiling.js | 142 + .../cjs/react-jsx-runtime.profiling.min.js | 20 +- .../compiled/react/cjs/react.development.js | 198 +- .../compiled/react/cjs/react.production.js | 1101 + .../react/cjs/react.production.min.js | 22 +- .../cjs/react.shared-subset.development.js | 200 +- .../cjs/react.shared-subset.production.js | 1107 + .../cjs/react.shared-subset.production.min.js | 22 +- .../cjs/scheduler-unstable_mock.production.js | 704 + .../scheduler-unstable_mock.production.min.js | 20 +- ...scheduler-unstable_post_task.production.js | 202 + ...duler-unstable_post_task.production.min.js | 20 +- .../cjs/scheduler.native.production.js | 533 + .../cjs/scheduler.native.production.min.js | 20 +- .../cjs/scheduler.production.js | 602 + .../cjs/scheduler.production.min.js | 20 +- .../cjs/scheduler-unstable_mock.production.js | 704 + .../scheduler-unstable_mock.production.min.js | 20 +- ...scheduler-unstable_post_task.production.js | 202 + ...duler-unstable_post_task.production.min.js | 20 +- .../cjs/scheduler.native.production.js | 533 + .../cjs/scheduler.native.production.min.js | 20 +- .../scheduler/cjs/scheduler.production.js | 602 + .../scheduler/cjs/scheduler.production.min.js | 20 +- pnpm-lock.yaml | 104 +- 183 files changed, 349291 insertions(+), 3750 deletions(-) create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-test-utils.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom.profiling.js create mode 100644 packages/next/src/compiled/react-dom-experimental/cjs/react-dom.shared-subset.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-server-rendering-stub.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom-test-utils.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom.production.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom.profiling.js create mode 100644 packages/next/src/compiled/react-dom/cjs/react-dom.shared-subset.production.js create mode 100644 packages/next/src/compiled/react-experimental/cjs/react-jsx-dev-runtime.production.js create mode 100644 packages/next/src/compiled/react-experimental/cjs/react-jsx-dev-runtime.profiling.js create mode 100644 packages/next/src/compiled/react-experimental/cjs/react-jsx-runtime.production.js create mode 100644 packages/next/src/compiled/react-experimental/cjs/react-jsx-runtime.profiling.js create mode 100644 packages/next/src/compiled/react-experimental/cjs/react.production.js create mode 100644 packages/next/src/compiled/react-experimental/cjs/react.shared-subset.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.js create mode 100644 packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.js create mode 100644 packages/next/src/compiled/react/cjs/react-jsx-dev-runtime.production.js create mode 100644 packages/next/src/compiled/react/cjs/react-jsx-dev-runtime.profiling.js create mode 100644 packages/next/src/compiled/react/cjs/react-jsx-runtime.production.js create mode 100644 packages/next/src/compiled/react/cjs/react-jsx-runtime.profiling.js create mode 100644 packages/next/src/compiled/react/cjs/react.production.js create mode 100644 packages/next/src/compiled/react/cjs/react.shared-subset.production.js create mode 100644 packages/next/src/compiled/scheduler-experimental/cjs/scheduler-unstable_mock.production.js create mode 100644 packages/next/src/compiled/scheduler-experimental/cjs/scheduler-unstable_post_task.production.js create mode 100644 packages/next/src/compiled/scheduler-experimental/cjs/scheduler.native.production.js create mode 100644 packages/next/src/compiled/scheduler-experimental/cjs/scheduler.production.js create mode 100644 packages/next/src/compiled/scheduler/cjs/scheduler-unstable_mock.production.js create mode 100644 packages/next/src/compiled/scheduler/cjs/scheduler-unstable_post_task.production.js create mode 100644 packages/next/src/compiled/scheduler/cjs/scheduler.native.production.js create mode 100644 packages/next/src/compiled/scheduler/cjs/scheduler.production.js diff --git a/package.json b/package.json index 6c7256ad09f7b..4369ad7ef1cd8 100644 --- a/package.json +++ b/package.json @@ -193,16 +193,16 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-2983249dd-20231107", + "react-builtin": "npm:react@18.3.0-canary-7508dcd5c-20231108", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-2983249dd-20231107", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-2983249dd-20231107", - "react-experimental-builtin": "npm:react@0.0.0-experimental-2983249dd-20231107", - "react-server-dom-turbopack": "18.3.0-canary-2983249dd-20231107", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-2983249dd-20231107", - "react-server-dom-webpack": "18.3.0-canary-2983249dd-20231107", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-2983249dd-20231107", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-7508dcd5c-20231108", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-7508dcd5c-20231108", + "react-experimental-builtin": "npm:react@0.0.0-experimental-7508dcd5c-20231108", + "react-server-dom-turbopack": "18.3.0-canary-7508dcd5c-20231108", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-7508dcd5c-20231108", + "react-server-dom-webpack": "18.3.0-canary-7508dcd5c-20231108", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-7508dcd5c-20231108", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -212,8 +212,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.6", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-2983249dd-20231107", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-2983249dd-20231107", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-7508dcd5c-20231108", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-7508dcd5c-20231108", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index e42b81e70af15..d8e36fda156f3 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-2983249dd-20231107'; +var ReactVersion = '18.3.0-experimental-7508dcd5c-20231108'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -1736,11 +1736,14 @@ var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep tr // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) -function createRenderState$1(resumableState, nonce, bootstrapScriptContent, bootstrapScripts, bootstrapModules, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { +function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); +const startScriptSrc = stringToPrecomputedChunk(''); +/** + * This escaping function is designed to work with bootstrapScriptContent and importMap only. + * because we know we are escaping the entire script. We can avoid for instance + * escaping html comment string sequences that are valid javascript as well because + * if there are no sebsequent '); // Since we store headers as strings we deal with their length in utf16 code units +// rather than visual characters or the utf8 encoding that is used for most binary +// serialization. Some common HTTP servers only allow for headers to be 4kB in length. +// We choose a default length that is likely to be well under this already limited length however +// pathological cases may still cause the utf-8 encoding of the headers to approach this limit. +// It should also be noted that this maximum is a soft maximum. we have not reached the limit we will +// allow one more header to be captured which means in practice if the limit is approached it will be exceeded + +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +// if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag +// is set, the server will send instructions via data attributes (instead of inline scripts) + +function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { + const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); +const completeSegmentData1 = stringToPrecomputedChunk('')} +function Wb(a,b,c,d){switch(c.insertionMode){case 0:case 1:case 2:return a.push('