From e6a117bba0eaca80f40dceae0ee6ee20e3708cfa Mon Sep 17 00:00:00 2001 From: Zack Tanner Date: Tue, 19 Mar 2024 11:22:25 -0700 Subject: [PATCH] (backport) Update React from 60a927d04 to 4b84f1161 (#63476) Updates React from 60a927d04 to 4b84f1161. ### React upstream changes - https://github.com/facebook/react/pull/28585 Closes NEXT-2865 --- package.json | 20 ++-- ...t-dom-server-legacy.browser.development.js | 7 +- ...ct-dom-server-legacy.browser.production.js | 7 +- ...om-server-legacy.browser.production.min.js | 2 +- ...eact-dom-server-legacy.node.development.js | 7 +- ...react-dom-server-legacy.node.production.js | 7 +- ...t-dom-server-legacy.node.production.min.js | 2 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...ct-dom-server-rendering-stub.production.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 22 ++-- .../react-dom-server.browser.production.js | 12 +- ...react-dom-server.browser.production.min.js | 50 ++++----- .../cjs/react-dom-server.bun.production.js | 7 +- .../cjs/react-dom-server.edge.development.js | 22 ++-- .../cjs/react-dom-server.edge.production.js | 12 +- .../react-dom-server.edge.production.min.js | 48 ++++---- .../cjs/react-dom-server.node.development.js | 20 +--- .../cjs/react-dom-server.node.production.js | 10 +- .../react-dom-server.node.production.min.js | 40 +++---- .../react-dom-unstable_testing.development.js | 2 +- .../react-dom-unstable_testing.production.js | 2 +- ...act-dom-unstable_testing.production.min.js | 6 +- .../cjs/react-dom.development.js | 2 +- .../cjs/react-dom.production.js | 2 +- .../cjs/react-dom.production.min.js | 6 +- .../cjs/react-dom.profiling.js | 2 +- .../cjs/react-dom.profiling.min.js | 6 +- .../react-dom-experimental/package.json | 4 +- ...t-dom-server-legacy.browser.development.js | 7 +- ...ct-dom-server-legacy.browser.production.js | 7 +- ...om-server-legacy.browser.production.min.js | 2 +- ...eact-dom-server-legacy.node.development.js | 7 +- ...react-dom-server-legacy.node.production.js | 7 +- ...t-dom-server-legacy.node.production.min.js | 2 +- ...t-dom-server-rendering-stub.development.js | 2 +- ...ct-dom-server-rendering-stub.production.js | 2 +- ...om-server-rendering-stub.production.min.js | 2 +- .../react-dom-server.browser.development.js | 22 ++-- .../react-dom-server.browser.production.js | 12 +- ...react-dom-server.browser.production.min.js | 48 ++++---- .../cjs/react-dom-server.bun.production.js | 7 +- .../cjs/react-dom-server.edge.development.js | 22 ++-- .../cjs/react-dom-server.edge.production.js | 12 +- .../react-dom-server.edge.production.min.js | 46 ++++---- .../cjs/react-dom-server.node.development.js | 20 +--- .../cjs/react-dom-server.node.production.js | 10 +- .../react-dom-server.node.production.min.js | 42 +++---- .../react-dom/cjs/react-dom.development.js | 2 +- .../react-dom/cjs/react-dom.production.js | 2 +- .../react-dom/cjs/react-dom.production.min.js | 6 +- .../react-dom/cjs/react-dom.profiling.js | 2 +- .../react-dom/cjs/react-dom.profiling.min.js | 6 +- .../next/src/compiled/react-dom/package.json | 4 +- .../cjs/react.development.js | 2 +- .../cjs/react.production.js | 2 +- .../cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- ...om-turbopack-server.browser.development.js | 11 +- ...dom-turbopack-server.browser.production.js | 5 +- ...turbopack-server.browser.production.min.js | 6 +- ...r-dom-turbopack-server.edge.development.js | 11 +- ...er-dom-turbopack-server.edge.production.js | 5 +- ...om-turbopack-server.edge.production.min.js | 6 +- ...r-dom-turbopack-server.node.development.js | 9 +- ...er-dom-turbopack-server.node.production.js | 3 +- ...opack-server.node.unbundled.development.js | 9 +- ...bopack-server.node.unbundled.production.js | 3 +- .../package.json | 4 +- ...om-turbopack-server.browser.development.js | 11 +- ...dom-turbopack-server.browser.production.js | 5 +- ...turbopack-server.browser.production.min.js | 4 +- ...r-dom-turbopack-server.edge.development.js | 11 +- ...er-dom-turbopack-server.edge.production.js | 5 +- ...om-turbopack-server.edge.production.min.js | 4 +- ...r-dom-turbopack-server.node.development.js | 9 +- ...er-dom-turbopack-server.node.production.js | 3 +- ...opack-server.node.unbundled.development.js | 9 +- ...bopack-server.node.unbundled.production.js | 3 +- .../react-server-dom-turbopack/package.json | 4 +- ...-dom-webpack-server.browser.development.js | 11 +- ...r-dom-webpack-server.browser.production.js | 5 +- ...m-webpack-server.browser.production.min.js | 6 +- ...ver-dom-webpack-server.edge.development.js | 11 +- ...rver-dom-webpack-server.edge.production.js | 5 +- ...-dom-webpack-server.edge.production.min.js | 6 +- ...ver-dom-webpack-server.node.development.js | 9 +- ...rver-dom-webpack-server.node.production.js | 3 +- ...bpack-server.node.unbundled.development.js | 9 +- ...ebpack-server.node.unbundled.production.js | 3 +- .../package.json | 4 +- ...-dom-webpack-server.browser.development.js | 11 +- ...r-dom-webpack-server.browser.production.js | 5 +- ...m-webpack-server.browser.production.min.js | 4 +- ...ver-dom-webpack-server.edge.development.js | 11 +- ...rver-dom-webpack-server.edge.production.js | 5 +- ...-dom-webpack-server.edge.production.min.js | 4 +- ...ver-dom-webpack-server.node.development.js | 9 +- ...rver-dom-webpack-server.node.production.js | 3 +- ...bpack-server.node.unbundled.development.js | 9 +- ...ebpack-server.node.unbundled.production.js | 3 +- .../react-server-dom-webpack/package.json | 4 +- .../compiled/react/cjs/react.development.js | 2 +- .../compiled/react/cjs/react.production.js | 2 +- .../react/cjs/react.production.min.js | 2 +- .../cjs/react.shared-subset.development.js | 2 +- .../cjs/react.shared-subset.production.js | 2 +- .../cjs/react.shared-subset.production.min.js | 2 +- pnpm-lock.yaml | 104 +++++++++--------- 111 files changed, 404 insertions(+), 638 deletions(-) diff --git a/package.json b/package.json index 7348d1e07c10b..d003a8a4003ae 100644 --- a/package.json +++ b/package.json @@ -197,16 +197,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-60a927d04-20240113", + "react-builtin": "npm:react@18.3.0-canary-4b84f1161-20240318", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-60a927d04-20240113", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-60a927d04-20240113", - "react-experimental-builtin": "npm:react@0.0.0-experimental-60a927d04-20240113", - "react-server-dom-turbopack": "18.3.0-canary-60a927d04-20240113", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-60a927d04-20240113", - "react-server-dom-webpack": "18.3.0-canary-60a927d04-20240113", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-60a927d04-20240113", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-4b84f1161-20240318", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-4b84f1161-20240318", + "react-experimental-builtin": "npm:react@0.0.0-experimental-4b84f1161-20240318", + "react-server-dom-turbopack": "18.3.0-canary-4b84f1161-20240318", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-4b84f1161-20240318", + "react-server-dom-webpack": "18.3.0-canary-4b84f1161-20240318", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-4b84f1161-20240318", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -216,8 +216,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-60a927d04-20240113", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-60a927d04-20240113", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-4b84f1161-20240318", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-4b84f1161-20240318", "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 f37efea75879f..28e68ad4edc5b 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-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -186,9 +186,6 @@ function stringToChunk(content) { function stringToPrecomputedChunk(content) { return content; } -function clonePrecomputedChunk(chunk) { - return chunk; -} function closeWithError(destination, error) { // $FlowFixMe[incompatible-call]: This is an Error object or the destination accepts other types. destination.destroy(error); @@ -4730,7 +4727,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js index a5b433744222b..bd3c128d60383 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js @@ -26,7 +26,7 @@ function formatProdErrorMessage(code) { return "Minified React error #" + code + "; visit " + url + " for the full message or " + 'use the non-minified dev environment for full errors and additional ' + 'helpful warnings.'; } -var ReactVersion = '18.3.0-experimental-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; // A pure JS implementation of a string hashing function. We do not use it for // security or obfuscation purposes, only to create compact hashes. So we @@ -140,9 +140,6 @@ function stringToChunk(content) { function stringToPrecomputedChunk(content) { return content; } -function clonePrecomputedChunk(chunk) { - return chunk; -} function closeWithError(destination, error) { // $FlowFixMe[incompatible-call]: This is an Error object or the destination accepts other types. destination.destroy(error); @@ -3116,7 +3113,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js index 2e0d284577a70..3f28795235b1d 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js @@ -211,6 +211,6 @@ function sf(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!== function df(a,b,c){if(null===b)c.rootNodes.push(a);else{var d=c.workingMap,e=d.get(b);void 0===e&&(e=[b[1],b[2],[],null],d.set(b,e),df(e,b[0],c));e[2].push(a)}}function uf(){} function vf(a,b,c,d){var e=!1,f=null,g="",h=!1;b=nb(b?b.identifierPrefix:void 0,void 0);a=Je(a,b,Cc(b,c),H(0,null,0),Infinity,uf,void 0,function(){h=!0},void 0,void 0,void 0);a.flushScheduled=null!==a.destination;Ne(a);null===a.trackedPostpones&&lf(a,0===a.pendingRootTasks);tf(a,d);sf(a,{push:function(k){null!==k&&(g+=k);return!0},destroy:function(k){e=!0;f=k}});if(e&&f!==d)throw f;if(!h)throw Error(q(426));return g}exports.renderToNodeStream=function(){throw Error(q(207));}; exports.renderToStaticMarkup=function(a,b){return vf(a,b,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};exports.renderToStaticNodeStream=function(){throw Error(q(208));};exports.renderToString=function(a,b){return vf(a,b,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}; -exports.version="18.3.0-experimental-60a927d04-20240113"; +exports.version="18.3.0-experimental-4b84f1161-20240318"; //# sourceMappingURL=react-dom-server-legacy.browser.production.min.js.map diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js index 5cf270b01fa55..a5b7b37625eb8 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js @@ -18,7 +18,7 @@ var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); var stream = require('stream'); -var ReactVersion = '18.3.0-experimental-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -187,9 +187,6 @@ function stringToChunk(content) { function stringToPrecomputedChunk(content) { return content; } -function clonePrecomputedChunk(chunk) { - return chunk; -} function closeWithError(destination, error) { // $FlowFixMe[incompatible-call]: This is an Error object or the destination accepts other types. destination.destroy(error); @@ -4731,7 +4728,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js index 220724d0d90a4..cba6d31ac7593 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js @@ -14,7 +14,7 @@ var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); var stream = require('stream'); -var ReactVersion = '18.3.0-experimental-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; // A pure JS implementation of a string hashing function. We do not use it for // security or obfuscation purposes, only to create compact hashes. So we @@ -128,9 +128,6 @@ function stringToChunk(content) { function stringToPrecomputedChunk(content) { return content; } -function clonePrecomputedChunk(chunk) { - return chunk; -} function closeWithError(destination, error) { // $FlowFixMe[incompatible-call]: This is an Error object or the destination accepts other types. destination.destroy(error); @@ -3104,7 +3101,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js index dddcb46c574bd..27c4740cdfbd2 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js @@ -225,6 +225,6 @@ function xf(a,b,c,d){var e=!1,f=null,g="",h=!1;b=nb(b?b.identifierPrefix:void 0, function yf(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a;a.__proto__=b}var zf=function(a){function b(){var d=a.call(this,{})||this;d.request=null;d.startedFlowing=!1;return d}yf(b,a);var c=b.prototype;c._destroy=function(d,e){vf(this.request);e(d)};c._read=function(){this.startedFlowing&&uf(this.request,this)};return b}(ea.Readable);function Af(){} function Bf(a,b){var c=new zf;b=nb(b?b.identifierPrefix:void 0,void 0);var d=Je(a,b,Dc(b,!1),ob(),Infinity,Af,function(){c.startedFlowing=!0;uf(d,c)},void 0,void 0,void 0);c.request=d;tf(d);return c}exports.renderToNodeStream=function(a,b){return Bf(a,b)};exports.renderToStaticMarkup=function(a,b){return xf(a,b,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server')}; exports.renderToStaticNodeStream=function(a,b){return Bf(a,b)};exports.renderToString=function(a,b){return xf(a,b,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server')}; -exports.version="18.3.0-experimental-60a927d04-20240113"; +exports.version="18.3.0-experimental-4b84f1161-20240318"; //# sourceMappingURL=react-dom-server-legacy.node.production.min.js.map diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.development.js index 86cdf43ffea97..8b5904c377e3a 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.development.js @@ -55,7 +55,7 @@ function printWarning(level, format, args) { } } -var ReactVersion = '18.3.0-experimental-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; var Internals = { usingClientEntryPoint: false, diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.js index 3e65ec2b6f806..f5900fe301c73 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.js @@ -12,7 +12,7 @@ var React = require("next/dist/compiled/react-experimental"); -var ReactVersion = '18.3.0-experimental-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; const Internals = { usingClientEntryPoint: false, diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.min.js index b76117d124384..165daba36c2e1 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.min.js @@ -14,6 +14,6 @@ exports.preinit=function(b,a){var c=l.current;if(c&&"string"===typeof b&&a&&"str exports.preinitModule=function(b,a){var c=l.current;if(c&&"string"===typeof b)if("object"===typeof a&&null!==a){if(null==a.as||"script"===a.as){var d=k(a.as,a.crossOrigin);c.preinitModuleScript(b,{crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0})}}else null==a&&c.preinitModuleScript(b)}; exports.preload=function(b,a){var c=l.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var d=a.as,g=k(d,a.crossOrigin);c.preload(b,d,{crossOrigin:g,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"=== typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};exports.preloadModule=function(b,a){var c=l.current;if(c&&"string"===typeof b)if(a){var d=k(a.as,a.crossOrigin);c.preloadModule(b,{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};exports.unstable_batchedUpdates=function(b,a){return b(a)};exports.useFormState=r;exports.useFormStatus=n; -exports.version="18.3.0-experimental-60a927d04-20240113"; +exports.version="18.3.0-experimental-4b84f1161-20240318"; //# sourceMappingURL=react-dom-server-rendering-stub.production.min.js.map diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js index 8ac86fce75442..cee2f8029a102 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.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-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -169,7 +169,7 @@ function murmurhash3_32_gc(key, seed) { function scheduleWork(callback) { callback(); } -var VIEW_SIZE = 512; +var VIEW_SIZE = 2048; var currentView = null; var writtenBytes = 0; function beginWriting(destination) { @@ -182,15 +182,9 @@ function writeChunk(destination, chunk) { } if (chunk.byteLength > VIEW_SIZE) { - { - if (precomputedChunkSet.has(chunk)) { - error('A large precomputed chunk was passed to writeChunk without being copied.' + ' Large chunks get enqueued directly and are not copied. This is incompatible with precomputed chunks because you cannot enqueue the same precomputed chunk twice.' + ' Use "cloneChunk" to make a copy of this large precomputed chunk before writing it. This is a bug in React.'); - } - } // this chunk may overflow a single view which implies it was not + // this chunk may overflow a single view which implies it was not // one that is cached by the streaming renderer. We will enqueu // it directly and expect it is not re-used - - if (writtenBytes > 0) { destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes)); currentView = new Uint8Array(VIEW_SIZE); @@ -245,19 +239,17 @@ var textEncoder = new TextEncoder(); function stringToChunk(content) { return textEncoder.encode(content); } -var precomputedChunkSet = new Set() ; function stringToPrecomputedChunk(content) { var precomputedChunk = textEncoder.encode(content); { - precomputedChunkSet.add(precomputedChunk); + if (precomputedChunk.byteLength > VIEW_SIZE) { + error('precomputed chunks must be smaller than the view size configured for this host. This is a bug in React.'); + } } return precomputedChunk; } -function clonePrecomputedChunk(precomputedChunk) { - return precomputedChunk.byteLength > VIEW_SIZE ? precomputedChunk.slice() : precomputedChunk; -} function closeWithError(destination, error) { // $FlowFixMe[method-unbinding] if (typeof destination.error === 'function') { @@ -4838,7 +4830,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js index 38efa2db8cb15..abd9709901cfd 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js @@ -13,7 +13,7 @@ var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-60a927d04-20240113'; +var ReactVersion = '18.3.0-experimental-4b84f1161-20240318'; // Do not require this module directly! Use normal `invariant` calls with // template literal strings. The messages will be replaced with error codes @@ -123,7 +123,7 @@ function murmurhash3_32_gc(key, seed) { function scheduleWork(callback) { callback(); } -const VIEW_SIZE = 512; +const VIEW_SIZE = 2048; let currentView = null; let writtenBytes = 0; function beginWriting(destination) { @@ -136,10 +136,9 @@ function writeChunk(destination, chunk) { } if (chunk.byteLength > VIEW_SIZE) { + // this chunk may overflow a single view which implies it was not // one that is cached by the streaming renderer. We will enqueu // it directly and expect it is not re-used - - if (writtenBytes > 0) { destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes)); currentView = new Uint8Array(VIEW_SIZE); @@ -199,9 +198,6 @@ function stringToPrecomputedChunk(content) { return precomputedChunk; } -function clonePrecomputedChunk(precomputedChunk) { - return precomputedChunk.byteLength > VIEW_SIZE ? precomputedChunk.slice() : precomputedChunk; -} function closeWithError(destination, error) { // $FlowFixMe[method-unbinding] if (typeof destination.error === 'function') { @@ -3216,7 +3212,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js index 99d2e72ce367d..9d9e8e427cdaf 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js @@ -32,7 +32,7 @@ 'use strict';var aa=require("next/dist/compiled/react-experimental"),da=require("react-dom");function m(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c>>16)&65535)<<16)&4294967295;f=f<<15|f>>>17;f=461845907*(f&65535)+((461845907*(f>>>16)&65535)<<16)&4294967295;e^=f;e=e<<13|e>>>19;e=5*(e&65535)+((5*(e>>>16)&65535)<<16)&4294967295;e=(e&65535)+27492+(((e>>>16)+58964&65535)<<16)}f=0;switch(c){case 3:f^=(a.charCodeAt(b+2)&255)<< 16;case 2:f^=(a.charCodeAt(b+1)&255)<<8;case 1:f^=a.charCodeAt(b)&255,f=3432918353*(f&65535)+((3432918353*(f>>>16)&65535)<<16)&4294967295,f=f<<15|f>>>17,e^=461845907*(f&65535)+((461845907*(f>>>16)&65535)<<16)&4294967295}e^=a.length;e^=e>>>16;e=2246822507*(e&65535)+((2246822507*(e>>>16)&65535)<<16)&4294967295;e^=e>>>13;e=3266489909*(e&65535)+((3266489909*(e>>>16)&65535)<<16)&4294967295;return(e^e>>>16)>>>0}var n=null,r=0; -function v(a,b){if(0!==b.byteLength)if(512Ta.length?Ta[0]:null:Ta;"function"!==typeof ob&&"symbol"!==typeof ob&&null!==ob&&void 0!==ob&&a.push(A(I(""+ob))); -ec(a,Yd,Ta);a.push(oc("style"));var Zd=null}else{var Ga=e.styles.get(Hb);if(null!==(d.styleResources.hasOwnProperty(Fa)?d.styleResources[Fa]:void 0)){d.styleResources[Fa]=null;Ga?Ga.hrefs.push(A(I(Fa))):(Ga={precedence:A(I(Hb)),rules:[],hrefs:[A(I(Fa))],sheets:new Map},e.styles.set(Hb,Ga));var $d=Ga.rules,Ua=null,ae=null,Jb;for(Jb in c)if(F.call(c,Jb)){var wc=c[Jb];if(null!=wc)switch(Jb){case "children":Ua=wc;break;case "dangerouslySetInnerHTML":ae=wc}}var pb=Array.isArray(Ua)?2>Ua.length?Ua[0]:null: -Ua;"function"!==typeof pb&&"symbol"!==typeof pb&&null!==pb&&void 0!==pb&&$d.push(A(I(""+pb)));ec($d,ae,Ua)}Ga&&e.boundaryResources&&e.boundaryResources.styles.add(Ga);g&&a.push(Ob);Zd=void 0}return Zd;case "meta":if(3===f.insertionMode||f.tagScope&1||null!=c.itemProp)var be=mc(a,c,"meta");else g&&a.push(Ob),be="string"===typeof c.charSet?mc(e.charsetChunks,c,"meta"):"viewport"===c.name?mc(e.preconnectChunks,c,"meta"):mc(e.hoistableChunks,c,"meta");return be;case "listing":case "pre":a.push(V(b)); +if(null!=ba)switch(ka){case "children":case "dangerouslySetInnerHTML":throw Error(m(399,"input"));case "name":pa=ba;break;case "formAction":N=ba;break;case "formEncType":J=ba;break;case "formMethod":qa=ba;break;case "formTarget":Ea=ba;break;case "defaultChecked":Ra=ba;break;case "defaultValue":xa=ba;break;case "checked":ya=ba;break;case "value":wa=ba;break;default:T(a,ka,ba)}}var Gd=cc(a,d,e,N,J,qa,Ea,pa);null!==ya?Xb(a,"checked",ya):null!==Ra&&Xb(a,"checked",Ra);null!==wa?T(a,"value",wa):null!== +xa&&T(a,"value",xa);a.push(bc);null!==Gd&&Gd.forEach(ac,a);return null;case "button":a.push(V("button"));var gb=null,Hd=null,Id=null,Jd=null,Kd=null,Ld=null,Md=null,hb;for(hb in c)if(F.call(c,hb)){var ra=c[hb];if(null!=ra)switch(hb){case "children":gb=ra;break;case "dangerouslySetInnerHTML":Hd=ra;break;case "name":Id=ra;break;case "formAction":Jd=ra;break;case "formEncType":Kd=ra;break;case "formMethod":Ld=ra;break;case "formTarget":Md=ra;break;default:T(a,hb,ra)}}var Nd=cc(a,d,e,Jd,Kd,Ld,Md,Id); +a.push(U);null!==Nd&&Nd.forEach(ac,a);ec(a,Hd,gb);if("string"===typeof gb){a.push(A(I(gb)));var Od=null}else Od=gb;return Od;case "form":a.push(V("form"));var ib=null,Pd=null,za=null,jb=null,kb=null,lb=null,mb;for(mb in c)if(F.call(c,mb)){var Aa=c[mb];if(null!=Aa)switch(mb){case "children":ib=Aa;break;case "dangerouslySetInnerHTML":Pd=Aa;break;case "action":za=Aa;break;case "encType":jb=Aa;break;case "method":kb=Aa;break;case "target":lb=Aa;break;default:T(a,mb,Aa)}}var sc=null,tc=null;if("function"=== +typeof za)if("function"===typeof za.$$FORM_ACTION){var Cf=Yb(d),Sa=za.$$FORM_ACTION(Cf);za=Sa.action||"";jb=Sa.encType;kb=Sa.method;lb=Sa.target;sc=Sa.data;tc=Sa.name}else a.push(R,A("action"),Vb,Zb,Q),lb=kb=jb=za=null,dc(d,e);null!=za&&T(a,"action",za);null!=jb&&T(a,"encType",jb);null!=kb&&T(a,"method",kb);null!=lb&&T(a,"target",lb);a.push(U);null!==tc&&(a.push($b),S(a,"name",tc),a.push(bc),null!==sc&&sc.forEach(ac,a));ec(a,Pd,ib);if("string"===typeof ib){a.push(A(I(ib)));var Qd=null}else Qd=ib; +return Qd;case "menuitem":a.push(V("menuitem"));for(var Db in c)if(F.call(c,Db)){var Rd=c[Db];if(null!=Rd)switch(Db){case "children":case "dangerouslySetInnerHTML":throw Error(m(400));default:T(a,Db,Rd)}}a.push(U);return null;case "title":if(3===f.insertionMode||f.tagScope&1||null!=c.itemProp)var Sd=nc(a,c);else nc(e.hoistableChunks,c),Sd=null;return Sd;case "link":return kc(a,c,d,e,g,f.insertionMode,!!(f.tagScope&1));case "script":var uc=c.async;if("string"!==typeof c.src||!c.src||!uc||"function"=== +typeof uc||"symbol"===typeof uc||c.onLoad||c.onError||3===f.insertionMode||f.tagScope&1||null!=c.itemProp)var Td=Cb(a,c);else{var Eb=c.src;if("module"===c.type){var Fb=d.moduleScriptResources;var Ud=e.preloads.moduleScripts}else Fb=d.scriptResources,Ud=e.preloads.scripts;var Gb=Fb.hasOwnProperty(Eb)?Fb[Eb]:void 0;if(null!==Gb){Fb[Eb]=null;var vc=c;if(Gb){2===Gb.length&&(vc=D({},c),lc(vc,Gb));var Vd=Ud.get(Eb);Vd&&(Vd.length=0)}var Wd=[];e.scripts.add(Wd);Cb(Wd,vc)}g&&a.push(Ob);Td=null}return Td; +case "style":var Hb=c.precedence,Fa=c.href;if(3===f.insertionMode||f.tagScope&1||null!=c.itemProp||"string"!==typeof Hb||"string"!==typeof Fa||""===Fa){a.push(V("style"));var Ta=null,Xd=null,nb;for(nb in c)if(F.call(c,nb)){var Ib=c[nb];if(null!=Ib)switch(nb){case "children":Ta=Ib;break;case "dangerouslySetInnerHTML":Xd=Ib;break;default:T(a,nb,Ib)}}a.push(U);var ob=Array.isArray(Ta)?2>Ta.length?Ta[0]:null:Ta;"function"!==typeof ob&&"symbol"!==typeof ob&&null!==ob&&void 0!==ob&&a.push(A(I(""+ob))); +ec(a,Xd,Ta);a.push(oc("style"));var Yd=null}else{var Ga=e.styles.get(Hb);if(null!==(d.styleResources.hasOwnProperty(Fa)?d.styleResources[Fa]:void 0)){d.styleResources[Fa]=null;Ga?Ga.hrefs.push(A(I(Fa))):(Ga={precedence:A(I(Hb)),rules:[],hrefs:[A(I(Fa))],sheets:new Map},e.styles.set(Hb,Ga));var Zd=Ga.rules,Ua=null,$d=null,Jb;for(Jb in c)if(F.call(c,Jb)){var wc=c[Jb];if(null!=wc)switch(Jb){case "children":Ua=wc;break;case "dangerouslySetInnerHTML":$d=wc}}var pb=Array.isArray(Ua)?2>Ua.length?Ua[0]:null: +Ua;"function"!==typeof pb&&"symbol"!==typeof pb&&null!==pb&&void 0!==pb&&Zd.push(A(I(""+pb)));ec(Zd,$d,Ua)}Ga&&e.boundaryResources&&e.boundaryResources.styles.add(Ga);g&&a.push(Ob);Yd=void 0}return Yd;case "meta":if(3===f.insertionMode||f.tagScope&1||null!=c.itemProp)var ae=mc(a,c,"meta");else g&&a.push(Ob),ae="string"===typeof c.charSet?mc(e.charsetChunks,c,"meta"):"viewport"===c.name?mc(e.preconnectChunks,c,"meta"):mc(e.hoistableChunks,c,"meta");return ae;case "listing":case "pre":a.push(V(b)); var qb=null,rb=null,sb;for(sb in c)if(F.call(c,sb)){var Kb=c[sb];if(null!=Kb)switch(sb){case "children":qb=Kb;break;case "dangerouslySetInnerHTML":rb=Kb;break;default:T(a,sb,Kb)}}a.push(U);if(null!=rb){if(null!=qb)throw Error(m(60));if("object"!==typeof rb||!("__html"in rb))throw Error(m(61));var Ha=rb.__html;null!==Ha&&void 0!==Ha&&("string"===typeof Ha&&0e.highImagePreloads.size)xc.delete(Va),e.highImagePreloads.add(Ia)}else if(!d.imageResources.hasOwnProperty(Va)){d.imageResources[Va]=L;var yc=c.crossOrigin;var de="string"===typeof yc?"use-credentials"===yc?yc:"":void 0;var la=e.headers,zc;la&&0la.highImagePreloads.length)&&(zc=Ec(O,"image",{imageSrcSet:c.srcSet,imageSizes:c.sizes,crossOrigin:de,integrity:c.integrity,nonce:c.nonce,type:c.type, -fetchPriority:c.fetchPriority,referrerPolicy:c.refererPolicy}),2<=(la.remainingCapacity-=zc.length))?(e.resets.image[Va]=L,la.highImagePreloads&&(la.highImagePreloads+=", "),la.highImagePreloads+=zc):(Ia=[],M(Ia,{rel:"preload",as:"image",href:K?void 0:O,imageSrcSet:K,imageSizes:ce,crossOrigin:de,integrity:c.integrity,type:c.type,fetchPriority:c.fetchPriority,referrerPolicy:c.referrerPolicy}),"high"===c.fetchPriority||10>e.highImagePreloads.size?e.highImagePreloads.add(Ia):(e.bulkPreloads.add(Ia), -xc.set(Va,Ia)))}}return mc(a,c,"img");case "base":case "area":case "br":case "col":case "embed":case "hr":case "keygen":case "param":case "source":case "track":case "wbr":return mc(a,c,b);case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":break;case "head":if(2>f.insertionMode&&null===e.headChunks){e.headChunks=[];var ee=pc(e.headChunks,c,"head")}else ee=pc(a,c,"head");return ee;case "html":if(0=== -f.insertionMode&&null===e.htmlChunks){e.htmlChunks=[Cc];var fe=pc(e.htmlChunks,c,"html")}else fe=pc(a,c,"html");return fe;default:if(-1!==b.indexOf("-")){a.push(V(b));var Ac=null,ge=null,Wa;for(Wa in c)if(F.call(c,Wa)){var ca=c[Wa];if(null!=ca){var he=Wa;switch(Wa){case "children":Ac=ca;break;case "dangerouslySetInnerHTML":ge=ca;break;case "style":Ub(a,ca);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;case "className":he="class";default:if(ua(Wa)&&"function"!== -typeof ca&&"symbol"!==typeof ca&&!1!==ca){if(!0===ca)ca="";else if("object"===typeof ca)continue;a.push(R,A(he),Vb,A(I(ca)),Q)}}}}a.push(U);ec(a,ge,Ac);return Ac}}return pc(a,c,b)}var Fc=new Map;function oc(a){var b=Fc.get(a);void 0===b&&(b=C(""),Fc.set(a,b));return b}function Gc(a,b){b=b.bootstrapChunks;for(var c=0;ce.highImagePreloads.size)xc.delete(Va),e.highImagePreloads.add(Ia)}else if(!d.imageResources.hasOwnProperty(Va)){d.imageResources[Va]=L;var yc=c.crossOrigin;var ce="string"===typeof yc?"use-credentials"===yc?yc:"":void 0;var la=e.headers,zc;la&&0la.highImagePreloads.length)&&(zc=Ec(O,"image",{imageSrcSet:c.srcSet,imageSizes:c.sizes,crossOrigin:ce,integrity:c.integrity,nonce:c.nonce,type:c.type, +fetchPriority:c.fetchPriority,referrerPolicy:c.refererPolicy}),2<=(la.remainingCapacity-=zc.length))?(e.resets.image[Va]=L,la.highImagePreloads&&(la.highImagePreloads+=", "),la.highImagePreloads+=zc):(Ia=[],M(Ia,{rel:"preload",as:"image",href:K?void 0:O,imageSrcSet:K,imageSizes:be,crossOrigin:ce,integrity:c.integrity,type:c.type,fetchPriority:c.fetchPriority,referrerPolicy:c.referrerPolicy}),"high"===c.fetchPriority||10>e.highImagePreloads.size?e.highImagePreloads.add(Ia):(e.bulkPreloads.add(Ia), +xc.set(Va,Ia)))}}return mc(a,c,"img");case "base":case "area":case "br":case "col":case "embed":case "hr":case "keygen":case "param":case "source":case "track":case "wbr":return mc(a,c,b);case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":break;case "head":if(2>f.insertionMode&&null===e.headChunks){e.headChunks=[];var de=pc(e.headChunks,c,"head")}else de=pc(a,c,"head");return de;case "html":if(0=== +f.insertionMode&&null===e.htmlChunks){e.htmlChunks=[Cc];var ee=pc(e.htmlChunks,c,"html")}else ee=pc(a,c,"html");return ee;default:if(-1!==b.indexOf("-")){a.push(V(b));var Ac=null,fe=null,Wa;for(Wa in c)if(F.call(c,Wa)){var ca=c[Wa];if(null!=ca){var ge=Wa;switch(Wa){case "children":Ac=ca;break;case "dangerouslySetInnerHTML":fe=ca;break;case "style":Ub(a,ca);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;case "className":ge="class";default:if(ua(Wa)&&"function"!== +typeof ca&&"symbol"!==typeof ca&&!1!==ca){if(!0===ca)ca="";else if("object"===typeof ca)continue;a.push(R,A(ge),Vb,A(I(ca)),Q)}}}}a.push(U);ec(a,fe,Ac);return Ac}}return pc(a,c,b)}var Fc=new Map;function oc(a){var b=Fc.get(a);void 0===b&&(b=C(""),Fc.set(a,b));return b}function Gc(a,b){b=b.bootstrapChunks;for(var c=0;c'),Jc=C("\x3c!--$--\x3e"),Kc=C('\x3c!--$?--\x3e'),Mc=C("\x3c!--$!--\x3e"),Nc=C("\x3c!--/$--\x3e"),Oc=C("");function Sc(a,b,c){v(a,Kc);if(null===c)throw Error(m(395));v(a,b.boundaryPrefix);v(a,A(c.toString(16)));return x(a,Lc)} var Tc=C('"),Wc=C('"),Zc=C('"),bd=C(''),dd=C(""),ed=C(''),gd=C(""),hd=C(''),jd=C(""),kd=C(''),md=C(""); function nd(a,b,c,d){switch(c.insertionMode){case 0:case 1:case 2:return v(a,Tc),v(a,b.segmentPrefix),v(a,A(d.toString(16))),x(a,Uc);case 3:return v(a,Wc),v(a,b.segmentPrefix),v(a,A(d.toString(16))),x(a,Xc);case 4:return v(a,Zc),v(a,b.segmentPrefix),v(a,A(d.toString(16))),x(a,$c);case 5:return v(a,bd),v(a,b.segmentPrefix),v(a,A(d.toString(16))),x(a,cd);case 6:return v(a,ed),v(a,b.segmentPrefix),v(a,A(d.toString(16))),x(a,fd);case 7:return v(a,hd),v(a,b.segmentPrefix),v(a,A(d.toString(16))),x(a,id); @@ -96,7 +96,7 @@ case 8:return v(a,kd),v(a,b.segmentPrefix),v(a,A(d.toString(16))),x(a,ld);defaul var pd=C('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),qd=C('$RS("'),rd=C('","'),sd=C('")\x3c/script>'),td=C('