react-server-dom-webpack 18.3.0-next-b72ed698f-20230303 → 18.3.0-next-1528c5ccd-20230306
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/cjs/react-server-dom-webpack-client.browser.development.js +2 -2
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +2 -2
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +2 -2
- package/cjs/react-server-dom-webpack-client.node.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +2 -2
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +1 -1
- package/cjs/react-server-dom-webpack-node-register.js +7 -8
- package/cjs/react-server-dom-webpack-plugin.js +8 -8
- package/cjs/react-server-dom-webpack-server.browser.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +40 -39
- package/cjs/react-server-dom-webpack-server.edge.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +39 -38
- package/cjs/react-server-dom-webpack-server.node.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.node.production.min.js +41 -40
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +45 -11
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +41 -40
- package/esm/react-server-dom-webpack-node-loader.production.min.js +2 -4
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +2 -2
- package/umd/react-server-dom-webpack-client.browser.production.min.js +1 -1
- package/umd/react-server-dom-webpack-server.browser.development.js +45 -11
- package/umd/react-server-dom-webpack-server.browser.production.min.js +39 -39
@@ -188,6 +188,7 @@ function processErrorChunkDev(request, id, digest, message, stack) {
|
|
188
188
|
return stringToChunk(row);
|
189
189
|
}
|
190
190
|
function processModelChunk(request, id, model) {
|
191
|
+
// $FlowFixMe[incompatible-type] stringify can return null
|
191
192
|
var json = stringify(model, request.toJSON);
|
192
193
|
var row = id.toString(16) + ':' + json + '\n';
|
193
194
|
return stringToChunk(row);
|
@@ -198,6 +199,7 @@ function processReferenceChunk(request, id, reference) {
|
|
198
199
|
return stringToChunk(row);
|
199
200
|
}
|
200
201
|
function processImportChunk(request, id, clientReferenceMetadata) {
|
202
|
+
// $FlowFixMe[incompatible-type] stringify can return null
|
201
203
|
var json = stringify(clientReferenceMetadata);
|
202
204
|
var row = serializeRowHeader('I', id) + json + '\n';
|
203
205
|
return stringToChunk(row);
|
@@ -207,7 +209,7 @@ function processImportChunk(request, id, clientReferenceMetadata) {
|
|
207
209
|
var CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference');
|
208
210
|
var SERVER_REFERENCE_TAG = Symbol.for('react.server.reference');
|
209
211
|
function getClientReferenceKey(reference) {
|
210
|
-
return reference
|
212
|
+
return reference.$$async ? reference.$$id + '#async' : reference.$$id;
|
211
213
|
}
|
212
214
|
function isClientReference(reference) {
|
213
215
|
return reference.$$typeof === CLIENT_REFERENCE_TAG;
|
@@ -216,9 +218,9 @@ function isServerReference(reference) {
|
|
216
218
|
return reference.$$typeof === SERVER_REFERENCE_TAG;
|
217
219
|
}
|
218
220
|
function resolveClientReferenceMetadata(config, clientReference) {
|
219
|
-
var resolvedModuleData = config[clientReference
|
221
|
+
var resolvedModuleData = config[clientReference.$$id];
|
220
222
|
|
221
|
-
if (clientReference
|
223
|
+
if (clientReference.$$async) {
|
222
224
|
return {
|
223
225
|
id: resolvedModuleData.id,
|
224
226
|
chunks: resolvedModuleData.chunks,
|
@@ -231,8 +233,7 @@ function resolveClientReferenceMetadata(config, clientReference) {
|
|
231
233
|
}
|
232
234
|
function resolveServerReferenceMetadata(config, serverReference) {
|
233
235
|
return {
|
234
|
-
id: serverReference.$$
|
235
|
-
name: serverReference.$$name,
|
236
|
+
id: serverReference.$$id,
|
236
237
|
bound: Promise.resolve(serverReference.$$bound)
|
237
238
|
};
|
238
239
|
}
|
@@ -252,6 +253,21 @@ var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
252
253
|
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
253
254
|
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
|
254
255
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for('react.memo_cache_sentinel');
|
256
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
257
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
258
|
+
function getIteratorFn(maybeIterable) {
|
259
|
+
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
260
|
+
return null;
|
261
|
+
}
|
262
|
+
|
263
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
264
|
+
|
265
|
+
if (typeof maybeIterator === 'function') {
|
266
|
+
return maybeIterator;
|
267
|
+
}
|
268
|
+
|
269
|
+
return null;
|
270
|
+
}
|
255
271
|
|
256
272
|
// It is handled by React separately and shouldn't be written to the DOM.
|
257
273
|
|
@@ -553,7 +569,7 @@ function isArray(a) {
|
|
553
569
|
// Run `yarn generate-inline-fizz-runtime` to generate.
|
554
570
|
var clientRenderBoundary = '$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};';
|
555
571
|
var completeBoundary = '$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()}};';
|
556
|
-
var completeBoundaryWithStyles = '$RM=new Map;\n$RR=function(
|
572
|
+
var completeBoundaryWithStyles = '$RM=new Map;\n$RR=function(t,u,y){function v(n){this.s=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 f=y[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var e=f[m++];if(a=p.get(e)){var d=a._p;c=!0}else{a=r.createElement("link");a.href=e;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];d=f[m++];)a.setAttribute(d,f[m++]);d=a._p=new Promise(function(n,z){a.onload=n;a.onerror=z});d.then(v.bind(d,"l"),v.bind(d,"e"));p.set(e,a)}e=a.getAttribute("media");!d||"l"===d.s||e&&!matchMedia(e).matches||h.push(d);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"))};';
|
557
573
|
var completeSegment = '$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)};';
|
558
574
|
|
559
575
|
stringToPrecomputedChunk('"></template>');
|
@@ -653,11 +669,16 @@ stringToPrecomputedChunk('" data-dgst="');
|
|
653
669
|
stringToPrecomputedChunk('" data-msg="');
|
654
670
|
stringToPrecomputedChunk('" data-stck="');
|
655
671
|
|
656
|
-
stringToPrecomputedChunk('<
|
657
|
-
stringToPrecomputedChunk('
|
658
|
-
stringToPrecomputedChunk('
|
659
|
-
stringToPrecomputedChunk('
|
672
|
+
stringToPrecomputedChunk('<style media="not all" data-precedence="');
|
673
|
+
stringToPrecomputedChunk('" data-href="');
|
674
|
+
stringToPrecomputedChunk('">');
|
675
|
+
stringToPrecomputedChunk('</style>'); // Tracks whether the boundary currently flushing is flushign style tags or has any
|
660
676
|
|
677
|
+
stringToPrecomputedChunk('<style data-precedence="');
|
678
|
+
stringToPrecomputedChunk('" data-href="');
|
679
|
+
stringToPrecomputedChunk(' ');
|
680
|
+
stringToPrecomputedChunk('">');
|
681
|
+
stringToPrecomputedChunk('</style>');
|
661
682
|
stringToPrecomputedChunk('[');
|
662
683
|
stringToPrecomputedChunk(',[');
|
663
684
|
stringToPrecomputedChunk(',');
|
@@ -1279,7 +1300,8 @@ function serializeThenable(request, thenable) {
|
|
1279
1300
|
newTask.model = value;
|
1280
1301
|
pingTask(request, newTask);
|
1281
1302
|
}, function (reason) {
|
1282
|
-
// TODO:
|
1303
|
+
newTask.status = ERRORED; // TODO: We should ideally do this inside performWork so it's scheduled
|
1304
|
+
|
1283
1305
|
var digest = logRecoverableError(request, reason);
|
1284
1306
|
|
1285
1307
|
{
|
@@ -1289,6 +1311,10 @@ function serializeThenable(request, thenable) {
|
|
1289
1311
|
|
1290
1312
|
emitErrorChunkDev(request, newTask.id, digest, _message, _stack);
|
1291
1313
|
}
|
1314
|
+
|
1315
|
+
if (request.destination !== null) {
|
1316
|
+
flushCompletedChunks(request, request.destination);
|
1317
|
+
}
|
1292
1318
|
});
|
1293
1319
|
return newTask.id;
|
1294
1320
|
}
|
@@ -2042,6 +2068,14 @@ function resolveModelToJSON(request, parent, key, value) {
|
|
2042
2068
|
return undefined;
|
2043
2069
|
}
|
2044
2070
|
|
2071
|
+
if (!isArray(value)) {
|
2072
|
+
var iteratorFn = getIteratorFn(value);
|
2073
|
+
|
2074
|
+
if (iteratorFn) {
|
2075
|
+
return Array.from(value);
|
2076
|
+
}
|
2077
|
+
}
|
2078
|
+
|
2045
2079
|
{
|
2046
2080
|
if (value !== null && !isArray(value)) {
|
2047
2081
|
// Verify that this is a simple plain object.
|
@@ -9,7 +9,7 @@
|
|
9
9
|
*/
|
10
10
|
'use strict';var aa=require("react"),f="function"===typeof AsyncLocalStorage,ba=f?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var c=m.length-n;c<b.length&&(0===c?a.enqueue(m):(m.set(b.subarray(0,c),n),a.enqueue(m),b=b.subarray(c)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;function r(a){return q.encode(a)}
|
11
11
|
function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify;function da(a,b,c){a=t(c,a.toJSON);b=b.toString(16)+":"+a+"\n";return q.encode(b)}function u(a,b,c){a=t(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
|
12
|
-
var w=Symbol.for("react.client.reference"),
|
12
|
+
var w=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),y=Symbol.for("react.element"),fa=Symbol.for("react.fragment"),ja=Symbol.for("react.provider"),ka=Symbol.for("react.server_context"),la=Symbol.for("react.forward_ref"),ma=Symbol.for("react.suspense"),na=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
|
13
13
|
function A(a,b,c,d,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new A(a,0,!1,a,null,!1,!1)});
|
14
14
|
[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new A(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new A(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new A(a,2,!1,a,null,!1,!1)});
|
15
15
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new A(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new A(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new A(a,4,!1,a,null,!1,!1)});
|
@@ -18,44 +18,45 @@ function A(a,b,c,d,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attribut
|
|
18
18
|
C);new A(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(B,C);new A(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(B,C);new A(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new A(a,1,!1,a.toLowerCase(),null,!1,!1)});
|
19
19
|
new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){new A(a,1,!1,a.toLowerCase(),null,!0,!0)});
|
20
20
|
var D={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,widows:!0,zIndex:!0,
|
21
|
-
zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
21
|
+
zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sa=["Webkit","ms","Moz","O"];Object.keys(D).forEach(function(a){sa.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);D[b]=D[a]})});var E=Array.isArray;r('"></template>');r("<script>");r("\x3c/script>");r('<script src="');r('<script type="module" src="');r('" integrity="');r('" async="">\x3c/script>');r("\x3c!-- --\x3e");r(' style="');r(":");
|
22
22
|
r(";");r(" ");r('="');r('"');r('=""');r(">");r("/>");r(' selected=""');r("\n");r("<!DOCTYPE html>");r("</");r(">");r('<template id="');r('"></template>');r("\x3c!--$--\x3e");r('\x3c!--$?--\x3e<template id="');r('"></template>');r("\x3c!--$!--\x3e");r("\x3c!--/$--\x3e");r("<template");r('"');r(' data-dgst="');r(' data-msg="');r(' data-stck="');r("></template>");r('<div hidden id="');r('">');r("</div>");r('<svg aria-hidden="true" style="display:none" id="');r('">');r("</svg>");r('<math aria-hidden="true" style="display:none" id="');
|
23
23
|
r('">');r("</math>");r('<table hidden id="');r('">');r("</table>");r('<table hidden><tbody id="');r('">');r("</tbody></table>");r('<table hidden><tr id="');r('">');r("</tr></table>");r('<table hidden><colgroup id="');r('">');r("</colgroup></table>");r('$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("');r('$RS("');r('","');r('")\x3c/script>');r('<template data-rsi="" data-sid="');
|
24
24
|
r('" data-pid="');r('$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("');
|
25
|
-
r('$RC("');r('$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(
|
26
|
-
r('$RM=new Map;\n$RR=function(
|
27
|
-
r('$RR("');r('","');r('",');r('"');r(")\x3c/script>");r('<template data-rci="" data-bid="');r('<template data-rri="" data-bid="');r('" data-sid="');r('" data-sty="');r('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');r('$RX("');r('"');r(",");r(")\x3c/script>");r('<template data-rxi="" data-bid="');r('" data-dgst="');r('" data-msg="');r('" data-stck="');r('<
|
28
|
-
r("</
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function
|
32
|
-
function
|
33
|
-
|
34
|
-
function
|
35
|
-
function
|
36
|
-
|
37
|
-
function
|
38
|
-
|
39
|
-
|
40
|
-
function Ra(a){
|
41
|
-
function
|
42
|
-
|
43
|
-
|
44
|
-
b=a.
|
25
|
+
r('$RC("');r('$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.s=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 f=y[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var e=f[m++];if(a=p.get(e)){var d=a._p;c=!0}else{a=r.createElement("link");a.href=e;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];d=f[m++];)a.setAttribute(d,f[m++]);d=a._p=new Promise(function(n,z){a.onload=n;a.onerror=z});d.then(v.bind(d,"l"),v.bind(d,"e"));p.set(e,a)}e=a.getAttribute("media");!d||"l"===d.s||e&&!matchMedia(e).matches||h.push(d);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("');
|
26
|
+
r('$RM=new Map;\n$RR=function(t,u,y){function v(n){this.s=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 f=y[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var e=f[m++];if(a=p.get(e)){var d=a._p;c=!0}else{a=r.createElement("link");a.href=e;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];d=f[m++];)a.setAttribute(d,f[m++]);d=a._p=new Promise(function(n,z){a.onload=n;a.onerror=z});d.then(v.bind(d,"l"),v.bind(d,"e"));p.set(e,a)}e=a.getAttribute("media");!d||"l"===d.s||e&&!matchMedia(e).matches||h.push(d);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("');
|
27
|
+
r('$RR("');r('","');r('",');r('"');r(")\x3c/script>");r('<template data-rci="" data-bid="');r('<template data-rri="" data-bid="');r('" data-sid="');r('" data-sty="');r('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');r('$RX("');r('"');r(",");r(")\x3c/script>");r('<template data-rxi="" data-bid="');r('" data-dgst="');r('" data-msg="');r('" data-stck="');r('<style media="not all" data-precedence="');
|
28
|
+
r('" data-href="');r('">');r("</style>");r('<style data-precedence="');r('" data-href="');r(" ");r('">');r("</style>");r("[");r(",[");r(",");r("]");var G=null;
|
29
|
+
function H(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var c=b.parent;if(null===a){if(null!==c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===c)throw Error("The stacks must reach the root at the same time. This is a bug in React.");H(a,c);b.context._currentValue=b.value}}}function ta(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ta(a)}
|
30
|
+
function ua(a){var b=a.parent;null!==b&&ua(b);a.context._currentValue=a.value}function va(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?H(a,b):va(a,b)}
|
31
|
+
function wa(a,b){var c=b.parent;if(null===c)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?H(a,c):wa(a,c);b.context._currentValue=b.value}function I(a){var b=G;b!==a&&(null===b?ua(a):null===a?ta(b):b.depth===a.depth?H(b,a):b.depth>a.depth?va(b,a):wa(b,a),G=a)}function xa(a,b){var c=a._currentValue;a._currentValue=b;var d=G;return G=a={parent:d,depth:null===d?0:d.depth+1,context:a,parentValue:c,value:b}}var J=Error("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`");
|
32
|
+
function ya(){}function za(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(ya,ya),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(d){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=d}},function(d){if("pending"===b.status){var e=b;e.status="rejected";e.reason=d}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}K=b;throw J;}}var K=null;
|
33
|
+
function Aa(){if(null===K)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=K;K=null;return a}var L=null,N=0,O=null;function Ba(){var a=O;O=null;return a}function Ca(a){return a._currentValue}
|
34
|
+
var Ga={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:P,useTransition:P,readContext:Ca,useContext:Ca,useReducer:P,useRef:P,useState:P,useInsertionEffect:P,useLayoutEffect:P,useImperativeHandle:P,useEffect:P,useId:Da,useMutableSource:P,useSyncExternalStore:P,useCacheRefresh:function(){return Ea},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=qa;return b},use:Fa};
|
35
|
+
function P(){throw Error("This Hook is not supported in Server Components.");}function Ea(){throw Error("Refreshing the cache is not supported in Server Components.");}function Da(){if(null===L)throw Error("useId can only be used while React is rendering");var a=L.identifierCount++;return":"+L.identifierPrefix+"S"+a.toString(32)+":"}
|
36
|
+
function Fa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=N;N+=1;null===O&&(O=[]);return za(O,a,b)}if(a.$$typeof===ka)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Q(){return(new AbortController).signal}function Ha(){if(R)return R;if(f){var a=ba.getStore();if(a)return a}return new Map}
|
37
|
+
var Ia={getCacheSignal:function(){var a=Ha(),b=a.get(Q);void 0===b&&(b=Q(),a.set(Q,b));return b},getCacheForType:function(a){var b=Ha(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},R=null,S=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=S.ContextRegistry,Ja=S.ReactCurrentDispatcher,Ka=S.ReactCurrentCache;function La(a){console.error(a)}
|
38
|
+
function Ma(a,b,c,d,e){if(null!==Ka.current&&Ka.current!==Ia)throw Error("Currently React only supports one RSC renderer at a time.");Ka.current=Ia;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||
|
39
|
+
"",identifierCount:1,onError:void 0===c?La:c,toJSON:function(l,v){return Na(k,this,l,v)}};k.pendingChunks++;b=Oa(d);a=Pa(k,a,b,g);h.push(a);return k}var Qa={};
|
40
|
+
function Ra(a,b){a.pendingChunks++;var c=Pa(a,null,G,a.abortableTasks);switch(b.status){case "fulfilled":return c.model=b.value,Sa(a,c),c.id;case "rejected":var d=U(a,b.reason);V(a,c.id,d);return c.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){c.model=e;Sa(a,c)},function(e){c.status=4;e=U(a,e);V(a,c.id,e);null!==a.destination&&
|
41
|
+
W(a,a.destination)});return c.id}function Ta(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function Ua(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:z,_payload:a,_init:Ta}}
|
42
|
+
function X(a,b,c,d,e,g){if(null!==d&&void 0!==d)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===w)return[y,b,c,e];N=0;O=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:Ua(e):e}if("string"===typeof b)return[y,b,c,e];if("symbol"===typeof b)return b===fa?e.children:[y,b,c,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===w)return[y,b,c,e];switch(b.$$typeof){case z:var h=
|
43
|
+
b._init;b=h(b._payload);return X(a,b,c,d,e,g);case la:return a=b.render,N=0,O=g,a(e,void 0);case oa:return X(a,b.type,c,d,e,g);case ja:return xa(b._context,e.value),[y,b,c,{value:e.value,children:e.children,__pop:Qa}]}}throw Error("Unsupported Server Component type: "+Va(b));}function Sa(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&Wa(a)}function Pa(a,b,c,d){var e={id:a.nextChunkId++,status:0,model:b,context:c,ping:function(){return Sa(a,e)},thenableState:null};d.add(e);return e}
|
44
|
+
function Xa(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===y&&"1"===c?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[d.$$id];var l=d.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,ha=t(l),x=v.toString(16)+":I"+ha+"\n";var M=q.encode(x);a.completedImportChunks.push(M);g.set(e,v);return b[0]===y&&"1"===c?"$L"+v.toString(16):"$"+v.toString(16)}catch(ia){return a.pendingChunks++,
|
45
|
+
b=a.nextChunkId++,c=U(a,ia),V(a,b,c),"$"+b.toString(16)}}function Ya(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}function Va(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(E(a))return"[...]";a=Ya(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
45
46
|
function Y(a){if("string"===typeof a)return a;switch(a){case ma:return"Suspense";case na:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case la:return Y(a.render);case oa:return Y(a.type);case z:var b=a._payload;a=a._init;try{return Y(a(b))}catch(c){}}return""}
|
46
|
-
function Z(a,b){var c=
|
47
|
-
|
48
|
-
function
|
49
|
-
d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===w)return
|
50
|
-
d===pa?a.context._defaultValue:d;
|
51
|
-
b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(c))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,c)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+Z(b,c));}if("symbol"===typeof d){e=a.writtenSymbols;g=e.get(d);
|
52
|
-
(d.description+") cannot be found among global symbols.")+Z(b,c));a.pendingChunks++;c=a.nextChunkId++;b=u(a,c,"$S"+g);a.completedImportChunks.push(b);e.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+Z(b,c));throw Error("Type "+
|
53
|
-
function
|
54
|
-
function
|
55
|
-
function
|
56
|
-
g.status=1}catch(F){var x=F===
|
57
|
-
function
|
58
|
-
function
|
59
|
-
function
|
60
|
-
exports.renderToReadableStream=function(a,b,c){var d=
|
61
|
-
h)}catch(k){
|
47
|
+
function Z(a,b){var c=Ya(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(E(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?Z(h):Va(h);""+g===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===y)e="<"+Y(a.type)+"/>";else{e="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(e+=", ");var k=g[h],l=JSON.stringify(k);e+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?Z(l):
|
48
|
+
Va(l);k===b?(c=e.length,d=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}
|
49
|
+
function Na(a,b,c,d){switch(d){case y:return"$"}for(;"object"===typeof d&&null!==d&&(d.$$typeof===y||d.$$typeof===z);)try{switch(d.$$typeof){case y:var e=d;d=X(a,e.type,e.key,e.ref,e.props,null);break;case z:var g=d._init;d=g(d._payload)}}catch(h){c=h===J?Aa():h;if("object"===typeof c&&null!==c&&"function"===typeof c.then)return a.pendingChunks++,a=Pa(a,d,G,a.abortableTasks),d=a.ping,c.then(d,d),a.thenableState=Ba(),"$L"+a.id.toString(16);a.pendingChunks++;d=a.nextChunkId++;c=U(a,c);V(a,d,c);return"$L"+
|
50
|
+
d.toString(16)}if(null===d)return null;if("object"===typeof d){if(d.$$typeof===w)return Xa(a,b,c,d);if("function"===typeof d.then)return"$@"+Ra(a,d).toString(16);if(d.$$typeof===ja)return d=d._context._globalName,b=a.writtenProviders,c=b.get(c),void 0===c&&(a.pendingChunks++,c=a.nextChunkId++,b.set(d,c),d=u(a,c,"$P"+d),a.completedJSONChunks.push(d)),"$"+c.toString(16);if(d===Qa){a=G;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");d=a.parentValue;a.context._currentValue=
|
51
|
+
d===pa?a.context._defaultValue:d;G=a.parent;return}return!E(d)&&(null===d||"object"!==typeof d?a=null:(a=ra&&d[ra]||d["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(d):d}if("string"===typeof d)return a="$"===d[0]?"$"+d:d,a;if("boolean"===typeof d||"number"===typeof d||"undefined"===typeof d)return d;if("function"===typeof d){if(d.$$typeof===w)return Xa(a,b,c,d);if(d.$$typeof===ea)return c=a.writtenServerReferences,b=c.get(d),void 0!==b?a="$F"+b.toString(16):(e={id:d.$$id,bound:Promise.resolve(d.$$bound)},
|
52
|
+
a.pendingChunks++,b=a.nextChunkId++,e=da(a,b,e),a.completedJSONChunks.push(e),c.set(d,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(c))throw Error("Event handlers cannot be passed to Client Component props."+Z(b,c)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+Z(b,c));}if("symbol"===typeof d){e=a.writtenSymbols;g=e.get(d);
|
53
|
+
if(void 0!==g)return"$"+g.toString(16);g=d.description;if(Symbol.for(g)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(d.description+") cannot be found among global symbols.")+Z(b,c));a.pendingChunks++;c=a.nextChunkId++;b=u(a,c,"$S"+g);a.completedImportChunks.push(b);e.set(d,c);return"$"+c.toString(16)}if("bigint"===typeof d)throw Error("BigInt ("+d+") is not yet supported in Client Component props."+Z(b,c));throw Error("Type "+
|
54
|
+
typeof d+" is not supported in Client Component props."+Z(b,c));}function U(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function Za(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
|
55
|
+
function V(a,b,c){c={digest:c};b=b.toString(16)+":E"+t(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}
|
56
|
+
function Wa(a){var b=Ja.current,c=R;Ja.current=Ga;R=a.cache;L=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++){var g=d[e];var h=a;if(0===g.status){I(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===y){var l=k,v=g.thenableState;g.model=k;k=X(h,l.type,l.key,l.ref,l.props,v);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===y;)l=k,g.model=k,k=X(h,l.type,l.key,l.ref,l.props,null)}var ha=da(h,g.id,k);h.completedJSONChunks.push(ha);h.abortableTasks.delete(g);
|
57
|
+
g.status=1}catch(F){var x=F===J?Aa():F;if("object"===typeof x&&null!==x&&"function"===typeof x.then){var M=g.ping;x.then(M,M);g.thenableState=Ba()}else{h.abortableTasks.delete(g);g.status=4;var ia=U(h,x);V(h,g.id,ia)}}}}null!==a.destination&&W(a,a.destination)}catch(F){U(a,F),Za(a,F)}finally{Ja.current=b,R=c,L=null}}
|
58
|
+
function W(a,b){m=new Uint8Array(512);n=0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)a.pendingChunks--,p(b,c[d]);c.splice(0,d);var e=a.completedJSONChunks;for(d=0;d<e.length;d++)a.pendingChunks--,p(b,e[d]);e.splice(0,d);var g=a.completedErrorChunks;for(d=0;d<g.length;d++)a.pendingChunks--,p(b,g[d]);g.splice(0,d)}finally{m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&&b.close()}
|
59
|
+
function $a(a,b){try{var c=a.abortableTasks;if(0<c.size){var d=U(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;V(a,e,d);c.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=u(a,g.id,h);a.completedErrorChunks.push(g)});c.clear()}null!==a.destination&&W(a,a.destination)}catch(g){U(a,g),Za(a,g)}}
|
60
|
+
function Oa(a){if(a){var b=G;I(null);for(var c=0;c<a.length;c++){var d=a[c],e=d[0];d=d[1];T[e]||(T[e]=aa.createServerContext(e,pa));xa(T[e],d)}a=G;I(b);return a}return null}
|
61
|
+
exports.renderToReadableStream=function(a,b,c){var d=Ma(a,b,c?c.onError:void 0,c?c.context:void 0,c?c.identifierPrefix:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)$a(d,e.reason);else{var g=function(){$a(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){f?ba.run(d.cache,Wa,d):Wa(d)},pull:function(h){if(1===d.status)d.status=2,ca(h,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=h;try{W(d,
|
62
|
+
h)}catch(k){U(d,k),Za(d,k)}}},cancel:function(){}},{highWaterMark:0})};
|
@@ -254,6 +254,7 @@ function processErrorChunkDev(request, id, digest, message, stack) {
|
|
254
254
|
return stringToChunk(row);
|
255
255
|
}
|
256
256
|
function processModelChunk(request, id, model) {
|
257
|
+
// $FlowFixMe[incompatible-type] stringify can return null
|
257
258
|
var json = stringify(model, request.toJSON);
|
258
259
|
var row = id.toString(16) + ':' + json + '\n';
|
259
260
|
return stringToChunk(row);
|
@@ -264,6 +265,7 @@ function processReferenceChunk(request, id, reference) {
|
|
264
265
|
return stringToChunk(row);
|
265
266
|
}
|
266
267
|
function processImportChunk(request, id, clientReferenceMetadata) {
|
268
|
+
// $FlowFixMe[incompatible-type] stringify can return null
|
267
269
|
var json = stringify(clientReferenceMetadata);
|
268
270
|
var row = serializeRowHeader('I', id) + json + '\n';
|
269
271
|
return stringToChunk(row);
|
@@ -273,7 +275,7 @@ function processImportChunk(request, id, clientReferenceMetadata) {
|
|
273
275
|
var CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference');
|
274
276
|
var SERVER_REFERENCE_TAG = Symbol.for('react.server.reference');
|
275
277
|
function getClientReferenceKey(reference) {
|
276
|
-
return reference
|
278
|
+
return reference.$$async ? reference.$$id + '#async' : reference.$$id;
|
277
279
|
}
|
278
280
|
function isClientReference(reference) {
|
279
281
|
return reference.$$typeof === CLIENT_REFERENCE_TAG;
|
@@ -282,9 +284,9 @@ function isServerReference(reference) {
|
|
282
284
|
return reference.$$typeof === SERVER_REFERENCE_TAG;
|
283
285
|
}
|
284
286
|
function resolveClientReferenceMetadata(config, clientReference) {
|
285
|
-
var resolvedModuleData = config[clientReference
|
287
|
+
var resolvedModuleData = config[clientReference.$$id];
|
286
288
|
|
287
|
-
if (clientReference
|
289
|
+
if (clientReference.$$async) {
|
288
290
|
return {
|
289
291
|
id: resolvedModuleData.id,
|
290
292
|
chunks: resolvedModuleData.chunks,
|
@@ -297,8 +299,7 @@ function resolveClientReferenceMetadata(config, clientReference) {
|
|
297
299
|
}
|
298
300
|
function resolveServerReferenceMetadata(config, serverReference) {
|
299
301
|
return {
|
300
|
-
id: serverReference.$$
|
301
|
-
name: serverReference.$$name,
|
302
|
+
id: serverReference.$$id,
|
302
303
|
bound: Promise.resolve(serverReference.$$bound)
|
303
304
|
};
|
304
305
|
}
|
@@ -318,6 +319,21 @@ var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
318
319
|
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
319
320
|
var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
|
320
321
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for('react.memo_cache_sentinel');
|
322
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
323
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
324
|
+
function getIteratorFn(maybeIterable) {
|
325
|
+
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
326
|
+
return null;
|
327
|
+
}
|
328
|
+
|
329
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
330
|
+
|
331
|
+
if (typeof maybeIterator === 'function') {
|
332
|
+
return maybeIterator;
|
333
|
+
}
|
334
|
+
|
335
|
+
return null;
|
336
|
+
}
|
321
337
|
|
322
338
|
// It is handled by React separately and shouldn't be written to the DOM.
|
323
339
|
|
@@ -619,7 +635,7 @@ function isArray(a) {
|
|
619
635
|
// Run `yarn generate-inline-fizz-runtime` to generate.
|
620
636
|
var clientRenderBoundary = '$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};';
|
621
637
|
var completeBoundary = '$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()}};';
|
622
|
-
var completeBoundaryWithStyles = '$RM=new Map;\n$RR=function(
|
638
|
+
var completeBoundaryWithStyles = '$RM=new Map;\n$RR=function(t,u,y){function v(n){this.s=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 f=y[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var e=f[m++];if(a=p.get(e)){var d=a._p;c=!0}else{a=r.createElement("link");a.href=e;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];d=f[m++];)a.setAttribute(d,f[m++]);d=a._p=new Promise(function(n,z){a.onload=n;a.onerror=z});d.then(v.bind(d,"l"),v.bind(d,"e"));p.set(e,a)}e=a.getAttribute("media");!d||"l"===d.s||e&&!matchMedia(e).matches||h.push(d);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"))};';
|
623
639
|
var completeSegment = '$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)};';
|
624
640
|
|
625
641
|
stringToPrecomputedChunk('"></template>');
|
@@ -719,11 +735,16 @@ stringToPrecomputedChunk('" data-dgst="');
|
|
719
735
|
stringToPrecomputedChunk('" data-msg="');
|
720
736
|
stringToPrecomputedChunk('" data-stck="');
|
721
737
|
|
722
|
-
stringToPrecomputedChunk('<
|
723
|
-
stringToPrecomputedChunk('
|
724
|
-
stringToPrecomputedChunk('
|
725
|
-
stringToPrecomputedChunk('
|
738
|
+
stringToPrecomputedChunk('<style media="not all" data-precedence="');
|
739
|
+
stringToPrecomputedChunk('" data-href="');
|
740
|
+
stringToPrecomputedChunk('">');
|
741
|
+
stringToPrecomputedChunk('</style>'); // Tracks whether the boundary currently flushing is flushign style tags or has any
|
726
742
|
|
743
|
+
stringToPrecomputedChunk('<style data-precedence="');
|
744
|
+
stringToPrecomputedChunk('" data-href="');
|
745
|
+
stringToPrecomputedChunk(' ');
|
746
|
+
stringToPrecomputedChunk('">');
|
747
|
+
stringToPrecomputedChunk('</style>');
|
727
748
|
stringToPrecomputedChunk('[');
|
728
749
|
stringToPrecomputedChunk(',[');
|
729
750
|
stringToPrecomputedChunk(',');
|
@@ -1345,7 +1366,8 @@ function serializeThenable(request, thenable) {
|
|
1345
1366
|
newTask.model = value;
|
1346
1367
|
pingTask(request, newTask);
|
1347
1368
|
}, function (reason) {
|
1348
|
-
// TODO:
|
1369
|
+
newTask.status = ERRORED; // TODO: We should ideally do this inside performWork so it's scheduled
|
1370
|
+
|
1349
1371
|
var digest = logRecoverableError(request, reason);
|
1350
1372
|
|
1351
1373
|
{
|
@@ -1355,6 +1377,10 @@ function serializeThenable(request, thenable) {
|
|
1355
1377
|
|
1356
1378
|
emitErrorChunkDev(request, newTask.id, digest, _message, _stack);
|
1357
1379
|
}
|
1380
|
+
|
1381
|
+
if (request.destination !== null) {
|
1382
|
+
flushCompletedChunks(request, request.destination);
|
1383
|
+
}
|
1358
1384
|
});
|
1359
1385
|
return newTask.id;
|
1360
1386
|
}
|
@@ -2108,6 +2134,14 @@ function resolveModelToJSON(request, parent, key, value) {
|
|
2108
2134
|
return undefined;
|
2109
2135
|
}
|
2110
2136
|
|
2137
|
+
if (!isArray(value)) {
|
2138
|
+
var iteratorFn = getIteratorFn(value);
|
2139
|
+
|
2140
|
+
if (iteratorFn) {
|
2141
|
+
return Array.from(value);
|
2142
|
+
}
|
2143
|
+
}
|
2144
|
+
|
2111
2145
|
{
|
2112
2146
|
if (value !== null && !isArray(value)) {
|
2113
2147
|
// Verify that this is a simple plain object.
|