react-server-dom-webpack 19.0.0-canary-8afa144bd-20240416 → 19.0.0-canary-657428a9e-20240416
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 +40 -7
- package/cjs/react-server-dom-webpack-client.browser.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +7 -7
- package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +40 -7
- package/cjs/react-server-dom-webpack-client.edge.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +18 -18
- package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +40 -7
- package/cjs/react-server-dom-webpack-client.node.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.node.production.min.js +4 -4
- package/cjs/react-server-dom-webpack-client.node.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +40 -7
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +37 -6
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +16 -16
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +96 -51
- package/cjs/react-server-dom-webpack-server.browser.production.js +74 -40
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +59 -58
- package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.edge.development.js +96 -51
- package/cjs/react-server-dom-webpack-server.edge.production.js +74 -40
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +60 -60
- package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.development.js +96 -51
- package/cjs/react-server-dom-webpack-server.node.production.js +74 -40
- package/cjs/react-server-dom-webpack-server.node.production.min.js +60 -61
- package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +96 -51
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +74 -40
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +58 -58
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +40 -7
- package/umd/react-server-dom-webpack-client.browser.production.min.js +19 -19
- package/umd/react-server-dom-webpack-server.browser.development.js +96 -51
- package/umd/react-server-dom-webpack-server.browser.production.min.js +55 -54
@@ -863,7 +863,14 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
863
863
|
|
864
864
|
default:
|
865
865
|
{
|
866
|
-
if (typeof thenable.status === 'string')
|
866
|
+
if (typeof thenable.status === 'string') {
|
867
|
+
// Only instrument the thenable if the status if not defined. If
|
868
|
+
// it's defined, but an unknown value, assume it's been instrumented by
|
869
|
+
// some custom userspace implementation. We treat it as "pending".
|
870
|
+
// Attach a dummy listener, to ensure that any lazy initialization can
|
871
|
+
// happen. Flight lazily parses JSON when the value is actually awaited.
|
872
|
+
thenable.then(noop, noop);
|
873
|
+
} else {
|
867
874
|
const pendingThenable = thenable;
|
868
875
|
pendingThenable.status = 'pending';
|
869
876
|
pendingThenable.then(fulfilledValue => {
|
@@ -878,21 +885,22 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
878
885
|
rejectedThenable.status = 'rejected';
|
879
886
|
rejectedThenable.reason = error;
|
880
887
|
}
|
881
|
-
});
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
888
|
+
});
|
889
|
+
} // Check one more time in case the thenable resolved synchronously
|
890
|
+
|
891
|
+
|
892
|
+
switch (thenable.status) {
|
893
|
+
case 'fulfilled':
|
894
|
+
{
|
895
|
+
const fulfilledThenable = thenable;
|
896
|
+
return fulfilledThenable.value;
|
897
|
+
}
|
898
|
+
|
899
|
+
case 'rejected':
|
900
|
+
{
|
901
|
+
const rejectedThenable = thenable;
|
902
|
+
throw rejectedThenable.reason;
|
903
|
+
}
|
896
904
|
} // Suspend.
|
897
905
|
//
|
898
906
|
// Throwing here is an implementation detail that allows us to unwind the
|
@@ -1328,6 +1336,7 @@ function createRequest(model, bundlerConfig, onError, identifierPrefix, onPostpo
|
|
1328
1336
|
nextChunkId: 0,
|
1329
1337
|
pendingChunks: 0,
|
1330
1338
|
hints,
|
1339
|
+
abortListeners: new Set(),
|
1331
1340
|
abortableTasks: abortSet,
|
1332
1341
|
pingedTasks: pingedTasks,
|
1333
1342
|
completedImportChunks: [],
|
@@ -1425,10 +1434,7 @@ function serializeThenable(request, task, thenable) {
|
|
1425
1434
|
}
|
1426
1435
|
|
1427
1436
|
request.abortableTasks.delete(newTask);
|
1428
|
-
|
1429
|
-
if (request.destination !== null) {
|
1430
|
-
flushCompletedChunks(request, request.destination);
|
1431
|
-
}
|
1437
|
+
enqueueFlush(request);
|
1432
1438
|
});
|
1433
1439
|
return newTask.id;
|
1434
1440
|
}
|
@@ -1554,7 +1560,6 @@ function renderFunctionComponent(request, task, key, Component, props, owner) {
|
|
1554
1560
|
}
|
1555
1561
|
|
1556
1562
|
function renderFragment(request, task, children) {
|
1557
|
-
|
1558
1563
|
if (task.keyPath !== null) {
|
1559
1564
|
// We have a Server Component that specifies a key but we're now splitting
|
1560
1565
|
// the tree using a fragment.
|
@@ -1581,10 +1586,6 @@ function renderFragment(request, task, children) {
|
|
1581
1586
|
|
1582
1587
|
return [fragment];
|
1583
1588
|
} // Since we're yielding here, that implicitly resets the keyPath context on the
|
1584
|
-
// way up. Which is what we want since we've consumed it. If this changes to
|
1585
|
-
// be recursive serialization, we need to reset the keyPath and implicitSlot,
|
1586
|
-
// before recursing here.
|
1587
|
-
|
1588
1589
|
|
1589
1590
|
return children;
|
1590
1591
|
}
|
@@ -1875,13 +1876,9 @@ function serializeTemporaryReference(request, temporaryReference) {
|
|
1875
1876
|
}
|
1876
1877
|
|
1877
1878
|
function serializeLargeTextString(request, text) {
|
1878
|
-
request.pendingChunks
|
1879
|
+
request.pendingChunks++;
|
1879
1880
|
const textId = request.nextChunkId++;
|
1880
|
-
|
1881
|
-
const binaryLength = byteLengthOfChunk(textChunk);
|
1882
|
-
const row = textId.toString(16) + ':T' + binaryLength.toString(16) + ',';
|
1883
|
-
const headerChunk = stringToChunk(row);
|
1884
|
-
request.completedRegularChunks.push(headerChunk, textChunk);
|
1881
|
+
emitTextChunk(request, textId, text);
|
1885
1882
|
return serializeByValueID(textId);
|
1886
1883
|
}
|
1887
1884
|
|
@@ -2158,7 +2155,7 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
|
|
2158
2155
|
|
2159
2156
|
if (iteratorFn) {
|
2160
2157
|
return renderFragment(request, task, Array.from(value));
|
2161
|
-
}
|
2158
|
+
}
|
2162
2159
|
|
2163
2160
|
|
2164
2161
|
const proto = getPrototypeOf(value);
|
@@ -2367,6 +2364,32 @@ function emitModelChunk(request, id, json) {
|
|
2367
2364
|
request.completedRegularChunks.push(processedChunk);
|
2368
2365
|
}
|
2369
2366
|
|
2367
|
+
function emitTextChunk(request, id, text) {
|
2368
|
+
request.pendingChunks++; // Extra chunk for the header.
|
2369
|
+
|
2370
|
+
const textChunk = stringToChunk(text);
|
2371
|
+
const binaryLength = byteLengthOfChunk(textChunk);
|
2372
|
+
const row = id.toString(16) + ':T' + binaryLength.toString(16) + ',';
|
2373
|
+
const headerChunk = stringToChunk(row);
|
2374
|
+
request.completedRegularChunks.push(headerChunk, textChunk);
|
2375
|
+
}
|
2376
|
+
|
2377
|
+
function emitChunk(request, task, value) {
|
2378
|
+
const id = task.id; // For certain types we have special types, we typically outlined them but
|
2379
|
+
// we can emit them directly for this row instead of through an indirection.
|
2380
|
+
|
2381
|
+
if (typeof value === 'string') {
|
2382
|
+
|
2383
|
+
emitTextChunk(request, id, value);
|
2384
|
+
return;
|
2385
|
+
}
|
2386
|
+
// $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
|
2387
|
+
|
2388
|
+
|
2389
|
+
const json = stringify(value, task.toJSON);
|
2390
|
+
emitModelChunk(request, task.id, json);
|
2391
|
+
}
|
2392
|
+
|
2370
2393
|
const emptyRoot = {};
|
2371
2394
|
|
2372
2395
|
function retryTask(request, task) {
|
@@ -2394,21 +2417,19 @@ function retryTask(request, task) {
|
|
2394
2417
|
|
2395
2418
|
task.keyPath = null;
|
2396
2419
|
task.implicitSlot = false;
|
2397
|
-
let json;
|
2398
2420
|
|
2399
2421
|
if (typeof resolvedModel === 'object' && resolvedModel !== null) {
|
2400
2422
|
// Object might contain unresolved values like additional elements.
|
2401
2423
|
// This is simulating what the JSON loop would do if this was part of it.
|
2402
|
-
|
2403
|
-
json = stringify(resolvedModel, task.toJSON);
|
2424
|
+
emitChunk(request, task, resolvedModel);
|
2404
2425
|
} else {
|
2405
2426
|
// If the value is a string, it means it's a terminal value and we already escaped it
|
2406
2427
|
// We don't need to escape it again so it's not passed the toJSON replacer.
|
2407
2428
|
// $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
|
2408
|
-
json = stringify(resolvedModel);
|
2429
|
+
const json = stringify(resolvedModel);
|
2430
|
+
emitModelChunk(request, task.id, json);
|
2409
2431
|
}
|
2410
2432
|
|
2411
|
-
emitModelChunk(request, task.id, json);
|
2412
2433
|
request.abortableTasks.delete(task);
|
2413
2434
|
task.status = COMPLETED;
|
2414
2435
|
} catch (thrownValue) {
|
@@ -2542,6 +2563,7 @@ function flushCompletedChunks(request, destination) {
|
|
2542
2563
|
if (request.pendingChunks === 0) {
|
2543
2564
|
|
2544
2565
|
close$1(destination);
|
2566
|
+
request.destination = null;
|
2545
2567
|
}
|
2546
2568
|
}
|
2547
2569
|
|
@@ -2597,11 +2619,10 @@ function stopFlowing(request) {
|
|
2597
2619
|
|
2598
2620
|
function abort(request, reason) {
|
2599
2621
|
try {
|
2600
|
-
const abortableTasks = request.abortableTasks;
|
2622
|
+
const abortableTasks = request.abortableTasks; // We have tasks to abort. We'll emit one error row and then emit a reference
|
2623
|
+
// to that row from every row that's still remaining.
|
2601
2624
|
|
2602
2625
|
if (abortableTasks.size > 0) {
|
2603
|
-
// We have tasks to abort. We'll emit one error row and then emit a reference
|
2604
|
-
// to that row from every row that's still remaining.
|
2605
2626
|
request.pendingChunks++;
|
2606
2627
|
const errorId = request.nextChunkId++;
|
2607
2628
|
|
@@ -2615,6 +2636,19 @@ function abort(request, reason) {
|
|
2615
2636
|
abortableTasks.clear();
|
2616
2637
|
}
|
2617
2638
|
|
2639
|
+
const abortListeners = request.abortListeners;
|
2640
|
+
|
2641
|
+
if (abortListeners.size > 0) {
|
2642
|
+
let error;
|
2643
|
+
|
2644
|
+
if (enablePostpone && typeof reason === 'object' && reason !== null && reason.$$typeof === REACT_POSTPONE_TYPE) ; else {
|
2645
|
+
error = reason === undefined ? new Error('The render was aborted by the server without a reason.') : reason;
|
2646
|
+
}
|
2647
|
+
|
2648
|
+
abortListeners.forEach(callback => callback(error));
|
2649
|
+
abortListeners.clear();
|
2650
|
+
}
|
2651
|
+
|
2618
2652
|
if (request.destination !== null) {
|
2619
2653
|
flushCompletedChunks(request, request.destination);
|
2620
2654
|
}
|
@@ -12,72 +12,72 @@ var r=Symbol.for("react.client.reference"),u=Symbol.for("react.server.reference"
|
|
12
12
|
var ia=Promise.prototype,ja={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
|
13
13
|
}throw Error("Cannot access "+(String(a.name)+"."+String(b))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");},set:function(){throw Error("Cannot assign to a client module from a server module.");}};
|
14
14
|
function ka(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=v(function(){throw Error("Attempted to call the default export of "+c+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
|
15
|
-
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var
|
16
|
-
},a.$$id+"#"+b,a.$$async),Object.defineProperty(
|
15
|
+
},a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=v({},a.$$id,!0),e=new Proxy(d,la);a.status="fulfilled";a.value=e;return a.then=v(function(f){return Promise.resolve(f(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=v(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
|
16
|
+
},a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,ja));return d}
|
17
17
|
var la={get:function(a,b){return ka(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ka(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ia},set:function(){throw Error("Cannot assign to a client module from a server module.");}},ma=aa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=ma.d;ma.d={f:w.f,r:w.r,D:na,C:oa,L:pa,m:qa,X:ra,S:sa,M:ta};
|
18
|
-
function na(a){if("string"===typeof a&&a){var b=x();if(b){var c=b.hints,
|
19
|
-
function pa(a,b,c){if("string"===typeof a){var
|
20
|
-
function qa(a,b){if("string"===typeof a){var c=x();if(c){var
|
21
|
-
function ra(a,b){if("string"===typeof a){var c=x();if(c){var
|
18
|
+
function na(a){if("string"===typeof a&&a){var b=x();if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),y(b,"D",a))}else w.D(a)}}function oa(a,b){if("string"===typeof a){var c=x();if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?y(c,"C",[a,b]):y(c,"C",a))}else w.C(a,b)}}
|
19
|
+
function pa(a,b,c){if("string"===typeof a){var d=x();if(d){var e=d.hints,f="L";if("image"===b&&c){var g=c.imageSrcSet,k=c.imageSizes,h="";"string"===typeof g&&""!==g?(h+="["+g+"]","string"===typeof k&&(h+="["+k+"]")):h+="[][]"+a;f+="[image]"+h}else f+="["+b+"]"+a;e.has(f)||(e.add(f),(c=z(c))?y(d,"L",[a,b,c]):y(d,"L",[a,b]))}else w.L(a,b,c)}}
|
20
|
+
function qa(a,b){if("string"===typeof a){var c=x();if(c){var d=c.hints,e="m|"+a;if(d.has(e))return;d.add(e);return(b=z(b))?y(c,"m",[a,b]):y(c,"m",a)}w.m(a,b)}}function sa(a,b,c){if("string"===typeof a){var d=x();if(d){var e=d.hints,f="S|"+a;if(e.has(f))return;e.add(f);return(c=z(c))?y(d,"S",[a,"string"===typeof b?b:0,c]):"string"===typeof b?y(d,"S",[a,b]):y(d,"S",a)}w.S(a,b,c)}}
|
21
|
+
function ra(a,b){if("string"===typeof a){var c=x();if(c){var d=c.hints,e="X|"+a;if(d.has(e))return;d.add(e);return(b=z(b))?y(c,"X",[a,b]):y(c,"X",a)}w.X(a,b)}}function ta(a,b){if("string"===typeof a){var c=x();if(c){var d=c.hints,e="M|"+a;if(d.has(e))return;d.add(e);return(b=z(b))?y(c,"M",[a,b]):y(c,"M",a)}w.M(a,b)}}function z(a){if(null==a)return null;var b=!1,c={},d;for(d in a)null!=a[d]&&(b=!0,c[d]=a[d]);return b?c:null}var B="function"===typeof AsyncLocalStorage,ua=B?new AsyncLocalStorage:null;
|
22
22
|
"object"===typeof async_hooks?async_hooks.createHook:function(){return{enable:function(){},disable:function(){}}};"object"===typeof async_hooks?async_hooks.executionAsyncId:null;
|
23
23
|
var va=Symbol.for("react.temporary.reference"),wa={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
|
24
24
|
}throw Error("Cannot access "+String(b)+" on the server. You cannot dot into a temporary client reference from a server component. You can only pass the value through to the client.");},set:function(){throw Error("Cannot assign to a temporary client reference from a server module.");}};
|
25
25
|
function xa(a){a=Object.defineProperties(function(){throw Error("Attempted to call a temporary Client Reference from the server but it is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");},{$$typeof:{value:va},$$id:{value:a}});return new Proxy(a,wa)}
|
26
26
|
var C=Symbol.for("react.element"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.context"),Aa=Symbol.for("react.forward_ref"),Ba=Symbol.for("react.suspense"),Ca=Symbol.for("react.suspense_list"),Da=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),Ea=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.postpone");var Fa=Symbol.iterator,Ga=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`");
|
27
|
-
function
|
28
|
-
function
|
29
|
-
var
|
30
|
-
function
|
31
|
-
function
|
32
|
-
var
|
33
|
-
function
|
34
|
-
function
|
35
|
-
function
|
36
|
-
"object"===typeof
|
37
|
-
var
|
38
|
-
function
|
39
|
-
writtenObjects:new WeakMap,identifierPrefix:
|
40
|
-
function
|
41
|
-
|
42
|
-
function
|
43
|
-
function
|
44
|
-
function
|
45
|
-
function
|
46
|
-
switch(c.$$typeof){case D:var
|
47
|
-
function
|
48
|
-
a.abortableTasks);var E=t.ping;
|
49
|
-
function
|
50
|
-
|
51
|
-
function S(a,b,c,e
|
52
|
-
if("function"===typeof
|
53
|
-
U(a,
|
54
|
-
return
|
55
|
-
|
56
|
-
|
57
|
-
" is not supported in Client Component props."+
|
58
|
-
function ob(a,b){null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}function
|
59
|
-
function
|
60
|
-
function
|
61
|
-
function
|
62
|
-
b.close()}function
|
63
|
-
function
|
64
|
-
function
|
65
|
-
function
|
66
|
-
function
|
67
|
-
function W(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function
|
68
|
-
|
69
|
-
function
|
70
|
-
function
|
71
|
-
function Z(a,b){var c=a._chunks,
|
72
|
-
function
|
73
|
-
function
|
74
|
-
return
|
75
|
-
function
|
76
|
-
function
|
77
|
-
exports.decodeAction=function(a,b){var c=new FormData,
|
78
|
-
exports.decodeFormState=function(a,b,c){var
|
27
|
+
function F(){}function Ha(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(F,F),b=c);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:"string"===typeof b.status?b.then(F,F):(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}}));switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}G=b;throw Ga;}}
|
28
|
+
var G=null;function Ia(){if(null===G)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=G;G=null;return a}var H=null,Ja=0,I=null;function Ka(){var a=I||[];I=null;return a}
|
29
|
+
var Pa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:J,useTransition:J,readContext:La,useContext:La,useReducer:J,useRef:J,useState:J,useInsertionEffect:J,useLayoutEffect:J,useImperativeHandle:J,useEffect:J,useId:Ma,useSyncExternalStore:J,useCacheRefresh:function(){return Na},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ea;return b},use:Oa};
|
30
|
+
function J(){throw Error("This Hook is not supported in Server Components.");}function Na(){throw Error("Refreshing the cache is not supported in Server Components.");}function La(){throw Error("Cannot read a Client Context from a Server Component.");}function Ma(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"}
|
31
|
+
function Oa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ja;Ja+=1;null===I&&(I=[]);return Ha(I,a,b)}a.$$typeof===za&&La()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===za)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}
|
32
|
+
var Qa={getCacheForType:function(a){var b=(b=x())?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Ra=Array.isArray,Sa=Object.getPrototypeOf;function Ta(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
|
33
|
+
function Ua(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ra(a))return"[...]";if(null!==a&&a.$$typeof===Va)return"client";a=Ta(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Va?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
|
34
|
+
function K(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return K(a.render);case Da:return K(a.type);case D:var b=a._payload;a=a._init;try{return K(a(b))}catch(c){}}return""}var Va=Symbol.for("react.client.reference");
|
35
|
+
function L(a,b){var c=Ta(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Ra(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?L(g):Ua(g);""+f===b?(c=e.length,d=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===C)e="<"+K(a.type)+"/>";else{if(a.$$typeof===Va)return"client";e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h=
|
36
|
+
"object"===typeof h&&null!==h?L(h):Ua(h);k===b?(c=e.length,d=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var M=ba.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(!M)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');
|
37
|
+
var Wa=Object.prototype,N=JSON.stringify;function Xa(a){console.error(a)}function Ya(){}
|
38
|
+
function Za(a,b,c,d,e){if(null!==M.C&&M.C!==Qa)throw Error("Currently React only supports one RSC renderer at a time.");M.C=Qa;var f=new Set,g=[],k=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortListeners:new Set,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
|
39
|
+
writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?Xa:c,onPostpone:void 0===e?Ya:e};a=O(b,a,null,!1,f);g.push(a);return b}var P=null;function x(){if(P)return P;if(B){var a=ua.getStore();if(a)return a}return null}
|
40
|
+
function $a(a,b,c){var d=O(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,ab(a,d),d.id;case "rejected":return b=Q(a,c.reason),R(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;ab(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);a.abortableTasks.delete(d);
|
41
|
+
bb(a)});return d.id}function y(a,b,c){c=N(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);bb(a)}function cb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
42
|
+
function db(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:D,_payload:a,_init:cb}}
|
43
|
+
function eb(a,b,c,d,e){var f=b.thenableState;b.thenableState=null;Ja=0;I=f;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=db(d)}e=b.keyPath;f=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=S(a,b,fb,"",d);b.keyPath=e;b.implicitSlot=f;return a}function gb(a,b,c){return null!==b.keyPath?(a=[C,ya,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
|
44
|
+
function hb(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[C,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
|
45
|
+
function ib(a,b,c,d,e,f){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===r||c.$$typeof===va?hb(b,c,d,f):eb(a,b,d,c,f);if("string"===typeof c)return hb(b,c,d,f);if("symbol"===typeof c)return c===ya&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=S(a,b,fb,"",f.children),b.implicitSlot=d,a):hb(b,c,d,f);if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return hb(b,c,d,f);
|
46
|
+
switch(c.$$typeof){case D:var g=c._init;c=g(c._payload);return ib(a,b,c,d,e,f);case Aa:return eb(a,b,d,c.render,f);case Da:return ib(a,b,c.type,d,e,f)}}throw Error("Unsupported Server Component type: "+Ua(c));}function ab(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return jb(a)},0))}
|
47
|
+
function O(a,b,c,d,e){a.pendingChunks++;var f=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,f);var g={id:f,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return ab(a,g)},toJSON:function(k,h){var l=g.keyPath,A=g.implicitSlot;try{var t=S(a,g,this,k,h)}catch(ca){if(k=ca===Ga?Ia():ca,h=g.model,h="object"===typeof h&&null!==h&&(h.$$typeof===C||h.$$typeof===D),"object"===typeof k&&null!==k&&"function"===typeof k.then){t=O(a,g.model,g.keyPath,g.implicitSlot,
|
48
|
+
a.abortableTasks);var E=t.ping;k.then(E,E);t.thenableState=Ka();g.keyPath=l;g.implicitSlot=A;t=h?"$L"+t.id.toString(16):T(t.id)}else if(g.keyPath=l,g.implicitSlot=A,h)a.pendingChunks++,l=a.nextChunkId++,A=Q(a,k),R(a,l,A),t="$L"+l.toString(16);else throw k;}return t},thenableState:null};e.add(g);return g}function T(a){return"$"+a.toString(16)}function kb(a,b,c){a=N(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
|
49
|
+
function lb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===C&&"1"===c?"$L"+g.toString(16):T(g);try{var k=a.bundlerConfig,h=d.$$id;g="";var l=k[h];if(l)g=l.name;else{var A=h.lastIndexOf("#");-1!==A&&(g=h.slice(A+1),l=k[h.slice(0,A)]);if(!l)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var t=!0===d.$$async?[l.id,l.chunks,g,1]:[l.id,l.chunks,
|
50
|
+
g];a.pendingChunks++;var E=a.nextChunkId++,ca=N(t),Hb=E.toString(16)+":I"+ca+"\n",Ib=q.encode(Hb);a.completedImportChunks.push(Ib);f.set(e,E);return b[0]===C&&"1"===c?"$L"+E.toString(16):T(E)}catch(Jb){return a.pendingChunks++,b=a.nextChunkId++,c=Q(a,Jb),R(a,b,c),T(b)}}function U(a,b){b=O(a,b,null,!1,a.abortableTasks);mb(a,b);return b.id}var V=!1;
|
51
|
+
function S(a,b,c,d,e){b.model=e;if(e===C)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case C:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(V===e)V=null;else return-1===d?(a=U(a,e),T(a)):T(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return ib(a,b,e.type,e.key,void 0!==d?d:null,c);case D:return b.thenableState=null,c=e._init,e=c(e._payload),S(a,b,fb,"",e)}if(e.$$typeof===r)return lb(a,c,d,e);c=a.writtenObjects;d=c.get(e);
|
52
|
+
if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+$a(a,b,e).toString(16);if(V===e)V=null;else return"$@"+d.toString(16)}a=$a(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(V===e)V=null;else{if(-1===d)return a=U(a,e),T(a);if(-2!==d)return T(d)}else c.set(e,-1);if(Ra(e))return gb(a,b,e);if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+
|
53
|
+
U(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+U(a,e).toString(16)}if("function"===typeof FormData&&e instanceof FormData)return e=Array.from(e.entries()),"$K"+U(a,e).toString(16);null===e||"object"!==typeof e?c=null:(c=Fa&&e[Fa]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return gb(a,b,Array.from(e));a=Sa(e);if(a!==Wa&&(null===a||null!==Sa(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");
|
54
|
+
return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks++,b=a.nextChunkId++,nb(a,b,e),T(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===r)return lb(a,c,d,e);if(e.$$typeof===u)return b=
|
55
|
+
a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=U(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===va)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+L(c,d)+"\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". Or maybe you meant to call this function rather than return it.'+
|
56
|
+
L(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var f=b.get(e);if(void 0!==f)return T(f);f=e.description;if(Symbol.for(f)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+L(c,d));a.pendingChunks++;c=a.nextChunkId++;d=kb(a,c,"$S"+f);a.completedImportChunks.push(d);b.set(e,c);return T(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
|
57
|
+
" is not supported in Client Component props."+L(c,d));}function Q(a,b){var c=P;P=null;try{var d=a.onError;var e=B?ua.run(void 0,d,b):d(b)}finally{P=c}if(null!=e&&"string"!==typeof e)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 e+'" instead');return e||""}
|
58
|
+
function ob(a,b){null!==a.destination?(a.status=2,da(a.destination,b)):(a.status=1,a.fatalError=b)}function R(a,b,c){c={digest:c};b=b.toString(16)+":E"+N(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}function pb(a,b,c){b=b.toString(16)+":"+c+"\n";b=q.encode(b);a.completedRegularChunks.push(b)}function nb(a,b,c){a.pendingChunks++;c=q.encode(c);var d=c.byteLength;b=b.toString(16)+":T"+d.toString(16)+",";b=q.encode(b);a.completedRegularChunks.push(b,c)}var fb={};
|
59
|
+
function mb(a,b){if(0===b.status)try{V=b.model;var c=S(a,b,fb,"",b.model);V=c;b.keyPath=null;b.implicitSlot=!1;if("object"===typeof c&&null!==c){var d=b.id;if("string"===typeof c)nb(a,d,c);else{var e=N(c,b.toJSON);pb(a,b.id,e)}}else{var f=N(c);pb(a,b.id,f)}a.abortableTasks.delete(b);b.status=1}catch(l){var g=l===Ga?Ia():l;if("object"===typeof g&&null!==g&&"function"===typeof g.then){var k=b.ping;g.then(k,k);b.thenableState=Ka()}else{a.abortableTasks.delete(b);b.status=4;var h=Q(a,g);R(a,b.id,h)}}finally{}}
|
60
|
+
function jb(a){var b=M.H;M.H=Pa;var c=P;H=P=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)mb(a,d[e]);null!==a.destination&&qb(a,a.destination)}catch(f){Q(a,f),ob(a,f)}finally{M.H=b,H=null,P=c}}
|
61
|
+
function qb(a,b){m=new Uint8Array(2048);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.completedHintChunks;for(d=0;d<e.length;d++)p(b,e[d]);e.splice(0,d);var f=a.completedRegularChunks;for(d=0;d<f.length;d++)a.pendingChunks--,p(b,f[d]);f.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{a.flushScheduled=!1,m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===
|
62
|
+
a.pendingChunks&&(b.close(),a.destination=null)}function rb(a){a.flushScheduled=null!==a.destination;B?setTimeout(function(){return ua.run(a,jb,a)},0):setTimeout(function(){return jb(a)},0)}function bb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return qb(a,b)},0)}}
|
63
|
+
function sb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,f=Q(a,e);R(a,d,f,e);c.forEach(function(h){h.status=3;var l=T(d);h=kb(a,h.id,l);a.completedErrorChunks.push(h)});c.clear()}var g=a.abortListeners;if(0<g.size){var k=void 0===b?Error("The render was aborted by the server without a reason."):b;g.forEach(function(h){return h(k)});g.clear()}null!==a.destination&&qb(a,a.destination)}catch(h){Q(a,
|
64
|
+
h),ob(a,h)}}function tb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return[d.id,d.chunks,c]}var ub=new Map;
|
65
|
+
function vb(a){var b=__webpack_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(c){b.status="fulfilled";b.value=c},function(c){b.status="rejected";b.reason=c});return b}function wb(){}
|
66
|
+
function xb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++];b[d++];var f=ub.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var g=ub.set.bind(ub,e,null);f.then(g,wb);ub.set(e,f)}else null!==f&&c.push(f)}return 4===a.length?0===c.length?vb(a[0]):Promise.all(c).then(function(){return vb(a[0])}):0<c.length?Promise.all(c):null}
|
67
|
+
function W(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}function yb(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}yb.prototype=Object.create(Promise.prototype);
|
68
|
+
yb.prototype.then=function(a,b){switch(this.status){case "resolved_model":zb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function Ab(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}
|
69
|
+
function Bb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&Ab(c,b)}}function Cb(a,b,c,d,e,f){var g=tb(a._bundlerConfig,b);a=xb(g);if(c)c=Promise.all([c,a]).then(function(k){k=k[0];var h=W(g);return h.bind.apply(h,[null].concat(k))});else if(a)c=Promise.resolve(a).then(function(){return W(g)});else return W(g);c.then(Db(d,e,f),Eb(d));return null}var X=null,Y=null;
|
70
|
+
function zb(a){var b=X,c=Y;X=a;Y=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=c}}function Fb(a,b){a._chunks.forEach(function(c){"pending"===c.status&&Bb(c,b)})}
|
71
|
+
function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new yb("resolved_model",d,null,a):new yb("pending",null,null,a),c.set(b,d));return d}function Db(a,b,c){if(Y){var d=Y;d.deps++}else d=Y={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&Ab(e,d.value))}}function Eb(a){return function(b){return Bb(a,b)}}
|
72
|
+
function Gb(a,b){a=Z(a,b);"resolved_model"===a.status&&zb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
73
|
+
function Kb(a,b,c,d){if("$"===d[0]){switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "F":return d=parseInt(d.slice(2),16),d=Gb(a,d),Cb(a,d.id,d.bound,X,b,c);case "T":return xa(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Gb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Gb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),g)});
|
74
|
+
return f;case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2))}d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":zb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=X,a.then(Db(d,b,c),Eb(d)),null;default:throw a.reason;}}return d}
|
75
|
+
function Lb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(f,g){return"string"===typeof g?Kb(e,this,f,g):g}};return e}function Mb(a){Fb(a,Error("Connection closed."))}function Nb(a,b,c){var d=tb(a,b);a=xb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var f=W(d);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return W(d)}):Promise.resolve(W(d))}
|
76
|
+
function Ob(a,b,c){a=Lb(b,c,a);Mb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,la)};
|
77
|
+
exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Ob(a,b,e),d=Nb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),d=Nb(b,e,null)):c.append(f,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
|
78
|
+
exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(g,k){k.startsWith("$ACTION_REF_")&&(g="$ACTION_"+k.slice(12)+":",e=Ob(b,c,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,d,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Lb(b,"",a);b=Z(a,0);Mb(a);return b};
|
79
79
|
exports.registerClientReference=function(a,b,c){return v(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:u},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:ha,configurable:!0}})};
|
80
|
-
exports.renderToReadableStream=function(a,b,c){var
|
81
|
-
|
80
|
+
exports.renderToReadableStream=function(a,b,c){var d=Za(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)sb(d,e.reason);else{var f=function(){sb(d,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){rb(d)},pull:function(g){if(1===d.status)d.status=2,da(g,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=g;try{qb(d,g)}catch(k){Q(d,
|
81
|
+
k),ob(d,k)}}},cancel:function(g){d.destination=null;sb(d,g)}},{highWaterMark:0})};
|
82
82
|
|
83
83
|
//# sourceMappingURL=react-server-dom-webpack-server.edge.production.min.js.map
|