react-server-dom-webpack 19.0.0-canary-4c12339ce-20240408 → 19.0.0-canary-96c584661-20240412
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 +115 -100
- package/cjs/react-server-dom-webpack-client.browser.production.js +92 -72
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +24 -24
- package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.edge.development.js +123 -108
- package/cjs/react-server-dom-webpack-client.edge.production.js +100 -80
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +24 -23
- package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-client.node.development.js +123 -108
- package/cjs/react-server-dom-webpack-client.node.production.js +100 -80
- package/cjs/react-server-dom-webpack-client.node.production.min.js +23 -22
- 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 +123 -108
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +100 -80
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +22 -21
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-node-register.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.browser.development.js +75 -39
- package/cjs/react-server-dom-webpack-server.browser.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +68 -68
- package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.edge.development.js +75 -39
- package/cjs/react-server-dom-webpack-server.edge.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +53 -53
- package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
- package/cjs/react-server-dom-webpack-server.node.development.js +75 -39
- package/cjs/react-server-dom-webpack-server.node.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.node.production.min.js +56 -56
- 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 +75 -39
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +70 -32
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +53 -53
- 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 +115 -100
- package/umd/react-server-dom-webpack-client.browser.production.min.js +24 -24
- package/umd/react-server-dom-webpack-server.browser.development.js +75 -39
- package/umd/react-server-dom-webpack-server.browser.production.min.js +53 -53
@@ -241,19 +241,21 @@
|
|
241
241
|
return __webpack_chunk_load__(chunkId);
|
242
242
|
}
|
243
243
|
|
244
|
-
var ReactDOMSharedInternals = ReactDOM.
|
244
|
+
var ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
245
245
|
|
246
246
|
// This client file is in the shared folder because it applies to both SSR and browser contexts.
|
247
|
-
var ReactDOMCurrentDispatcher = ReactDOMSharedInternals.ReactDOMCurrentDispatcher;
|
248
247
|
function dispatchHint(code, model) {
|
249
|
-
var dispatcher =
|
248
|
+
var dispatcher = ReactDOMSharedInternals.d;
|
249
|
+
/* ReactDOMCurrentDispatcher */
|
250
250
|
|
251
251
|
switch (code) {
|
252
252
|
case 'D':
|
253
253
|
{
|
254
254
|
var refined = refineModel(code, model);
|
255
255
|
var href = refined;
|
256
|
-
dispatcher.
|
256
|
+
dispatcher.D(
|
257
|
+
/* prefetchDNS */
|
258
|
+
href);
|
257
259
|
return;
|
258
260
|
}
|
259
261
|
|
@@ -263,11 +265,15 @@
|
|
263
265
|
|
264
266
|
if (typeof _refined === 'string') {
|
265
267
|
var _href = _refined;
|
266
|
-
dispatcher.
|
268
|
+
dispatcher.C(
|
269
|
+
/* preconnect */
|
270
|
+
_href);
|
267
271
|
} else {
|
268
272
|
var _href2 = _refined[0];
|
269
273
|
var crossOrigin = _refined[1];
|
270
|
-
dispatcher.
|
274
|
+
dispatcher.C(
|
275
|
+
/* preconnect */
|
276
|
+
_href2, crossOrigin);
|
271
277
|
}
|
272
278
|
|
273
279
|
return;
|
@@ -282,9 +288,13 @@
|
|
282
288
|
|
283
289
|
if (_refined2.length === 3) {
|
284
290
|
var options = _refined2[2];
|
285
|
-
dispatcher.
|
291
|
+
dispatcher.L(
|
292
|
+
/* preload */
|
293
|
+
_href3, as, options);
|
286
294
|
} else {
|
287
|
-
dispatcher.
|
295
|
+
dispatcher.L(
|
296
|
+
/* preload */
|
297
|
+
_href3, as);
|
288
298
|
}
|
289
299
|
|
290
300
|
return;
|
@@ -296,46 +306,58 @@
|
|
296
306
|
|
297
307
|
if (typeof _refined3 === 'string') {
|
298
308
|
var _href4 = _refined3;
|
299
|
-
dispatcher.
|
309
|
+
dispatcher.m(
|
310
|
+
/* preloadModule */
|
311
|
+
_href4);
|
300
312
|
} else {
|
301
313
|
var _href5 = _refined3[0];
|
302
314
|
var _options = _refined3[1];
|
303
|
-
dispatcher.
|
315
|
+
dispatcher.m(
|
316
|
+
/* preloadModule */
|
317
|
+
_href5, _options);
|
304
318
|
}
|
305
319
|
|
306
320
|
return;
|
307
321
|
}
|
308
322
|
|
309
|
-
case '
|
323
|
+
case 'X':
|
310
324
|
{
|
311
325
|
var _refined4 = refineModel(code, model);
|
312
326
|
|
313
327
|
if (typeof _refined4 === 'string') {
|
314
328
|
var _href6 = _refined4;
|
315
|
-
dispatcher.
|
329
|
+
dispatcher.X(
|
330
|
+
/* preinitScript */
|
331
|
+
_href6);
|
316
332
|
} else {
|
317
333
|
var _href7 = _refined4[0];
|
318
|
-
var
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
dispatcher.preinitStyle(_href7, precedence, _options2);
|
334
|
+
var _options2 = _refined4[1];
|
335
|
+
dispatcher.X(
|
336
|
+
/* preinitScript */
|
337
|
+
_href7, _options2);
|
323
338
|
}
|
324
339
|
|
325
340
|
return;
|
326
341
|
}
|
327
342
|
|
328
|
-
case '
|
343
|
+
case 'S':
|
329
344
|
{
|
330
345
|
var _refined5 = refineModel(code, model);
|
331
346
|
|
332
347
|
if (typeof _refined5 === 'string') {
|
333
348
|
var _href8 = _refined5;
|
334
|
-
dispatcher.
|
349
|
+
dispatcher.S(
|
350
|
+
/* preinitStyle */
|
351
|
+
_href8);
|
335
352
|
} else {
|
336
353
|
var _href9 = _refined5[0];
|
337
|
-
var
|
338
|
-
|
354
|
+
var precedence = _refined5[1] === 0 ? undefined : _refined5[1];
|
355
|
+
|
356
|
+
var _options3 = _refined5.length === 3 ? _refined5[2] : undefined;
|
357
|
+
|
358
|
+
dispatcher.S(
|
359
|
+
/* preinitStyle */
|
360
|
+
_href9, precedence, _options3);
|
339
361
|
}
|
340
362
|
|
341
363
|
return;
|
@@ -347,11 +369,15 @@
|
|
347
369
|
|
348
370
|
if (typeof _refined6 === 'string') {
|
349
371
|
var _href10 = _refined6;
|
350
|
-
dispatcher.
|
372
|
+
dispatcher.M(
|
373
|
+
/* preinitModuleScript */
|
374
|
+
_href10);
|
351
375
|
} else {
|
352
376
|
var _href11 = _refined6[0];
|
353
377
|
var _options4 = _refined6[1];
|
354
|
-
dispatcher.
|
378
|
+
dispatcher.M(
|
379
|
+
/* preinitModuleScript */
|
380
|
+
_href11, _options4);
|
355
381
|
}
|
356
382
|
|
357
383
|
return;
|
@@ -364,7 +390,7 @@
|
|
364
390
|
return model;
|
365
391
|
}
|
366
392
|
|
367
|
-
var ReactSharedInternals = React.
|
393
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
368
394
|
|
369
395
|
function error(format) {
|
370
396
|
{
|
@@ -382,8 +408,7 @@
|
|
382
408
|
// When changing this logic, you might want to also
|
383
409
|
// update consoleWithStackDev.www.js as well.
|
384
410
|
{
|
385
|
-
var
|
386
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
411
|
+
var stack = ReactSharedInternals.getStackAddendum();
|
387
412
|
|
388
413
|
if (stack !== '') {
|
389
414
|
format += '%s';
|
@@ -1571,7 +1596,7 @@
|
|
1571
1596
|
return chunk;
|
1572
1597
|
}
|
1573
1598
|
|
1574
|
-
function createModelResolver(chunk, parentObject, key, cyclic) {
|
1599
|
+
function createModelResolver(chunk, parentObject, key, cyclic, response, map) {
|
1575
1600
|
var blocked;
|
1576
1601
|
|
1577
1602
|
if (initializingChunkBlockedModel) {
|
@@ -1588,11 +1613,11 @@
|
|
1588
1613
|
}
|
1589
1614
|
|
1590
1615
|
return function (value) {
|
1591
|
-
parentObject[key] = value; // If this is the root object for a model reference, where `blocked.value`
|
1616
|
+
parentObject[key] = map(response, value); // If this is the root object for a model reference, where `blocked.value`
|
1592
1617
|
// is a stale `null`, the resolved value can be used directly.
|
1593
1618
|
|
1594
1619
|
if (key === '' && blocked.value === null) {
|
1595
|
-
blocked.value =
|
1620
|
+
blocked.value = parentObject[key];
|
1596
1621
|
}
|
1597
1622
|
|
1598
1623
|
blocked.deps--;
|
@@ -1648,28 +1673,80 @@
|
|
1648
1673
|
return proxy;
|
1649
1674
|
}
|
1650
1675
|
|
1651
|
-
function getOutlinedModel(response, id) {
|
1676
|
+
function getOutlinedModel(response, id, parentObject, key, map) {
|
1652
1677
|
var chunk = getChunk(response, id);
|
1653
1678
|
|
1654
1679
|
switch (chunk.status) {
|
1655
1680
|
case RESOLVED_MODEL:
|
1656
1681
|
initializeModelChunk(chunk);
|
1657
1682
|
break;
|
1683
|
+
|
1684
|
+
case RESOLVED_MODULE:
|
1685
|
+
initializeModuleChunk(chunk);
|
1686
|
+
break;
|
1658
1687
|
} // The status might have changed after initialization.
|
1659
1688
|
|
1660
1689
|
|
1661
1690
|
switch (chunk.status) {
|
1662
1691
|
case INITIALIZED:
|
1663
|
-
|
1664
|
-
|
1692
|
+
var chunkValue = map(response, chunk.value);
|
1693
|
+
|
1694
|
+
if (chunk._debugInfo) {
|
1695
|
+
// If we have a direct reference to an object that was rendered by a synchronous
|
1696
|
+
// server component, it might have some debug info about how it was rendered.
|
1697
|
+
// We forward this to the underlying object. This might be a React Element or
|
1698
|
+
// an Array fragment.
|
1699
|
+
// If this was a string / number return value we lose the debug info. We choose
|
1700
|
+
// that tradeoff to allow sync server components to return plain values and not
|
1701
|
+
// use them as React Nodes necessarily. We could otherwise wrap them in a Lazy.
|
1702
|
+
if (typeof chunkValue === 'object' && chunkValue !== null && (Array.isArray(chunkValue) || chunkValue.$$typeof === REACT_ELEMENT_TYPE) && !chunkValue._debugInfo) {
|
1703
|
+
// We should maybe use a unique symbol for arrays but this is a React owned array.
|
1704
|
+
// $FlowFixMe[prop-missing]: This should be added to elements.
|
1705
|
+
Object.defineProperty(chunkValue, '_debugInfo', {
|
1706
|
+
configurable: false,
|
1707
|
+
enumerable: false,
|
1708
|
+
writable: true,
|
1709
|
+
value: chunk._debugInfo
|
1710
|
+
});
|
1711
|
+
}
|
1665
1712
|
}
|
1666
|
-
|
1713
|
+
|
1714
|
+
return chunkValue;
|
1715
|
+
|
1716
|
+
case PENDING:
|
1717
|
+
case BLOCKED:
|
1718
|
+
case CYCLIC:
|
1719
|
+
var parentChunk = initializingChunk;
|
1720
|
+
chunk.then(createModelResolver(parentChunk, parentObject, key, chunk.status === CYCLIC, response, map), createModelReject(parentChunk));
|
1721
|
+
return null;
|
1667
1722
|
|
1668
1723
|
default:
|
1669
1724
|
throw chunk.reason;
|
1670
1725
|
}
|
1671
1726
|
}
|
1672
1727
|
|
1728
|
+
function createMap(response, model) {
|
1729
|
+
return new Map(model);
|
1730
|
+
}
|
1731
|
+
|
1732
|
+
function createSet(response, model) {
|
1733
|
+
return new Set(model);
|
1734
|
+
}
|
1735
|
+
|
1736
|
+
function createFormData(response, model) {
|
1737
|
+
var formData = new FormData();
|
1738
|
+
|
1739
|
+
for (var i = 0; i < model.length; i++) {
|
1740
|
+
formData.append(model[i][0], model[i][1]);
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
return formData;
|
1744
|
+
}
|
1745
|
+
|
1746
|
+
function createModel(response, model) {
|
1747
|
+
return model;
|
1748
|
+
}
|
1749
|
+
|
1673
1750
|
function parseModelString(response, parentObject, key, value) {
|
1674
1751
|
if (value[0] === '$') {
|
1675
1752
|
if (value === '$') {
|
@@ -1720,8 +1797,7 @@
|
|
1720
1797
|
// Server Reference
|
1721
1798
|
var _id2 = parseInt(value.slice(2), 16);
|
1722
1799
|
|
1723
|
-
|
1724
|
-
return createServerReferenceProxy(response, metadata);
|
1800
|
+
return getOutlinedModel(response, _id2, parentObject, key, createServerReferenceProxy);
|
1725
1801
|
}
|
1726
1802
|
|
1727
1803
|
case 'T':
|
@@ -1743,8 +1819,7 @@
|
|
1743
1819
|
// Map
|
1744
1820
|
var _id4 = parseInt(value.slice(2), 16);
|
1745
1821
|
|
1746
|
-
|
1747
|
-
return new Map(data);
|
1822
|
+
return getOutlinedModel(response, _id4, parentObject, key, createMap);
|
1748
1823
|
}
|
1749
1824
|
|
1750
1825
|
case 'W':
|
@@ -1752,9 +1827,7 @@
|
|
1752
1827
|
// Set
|
1753
1828
|
var _id5 = parseInt(value.slice(2), 16);
|
1754
1829
|
|
1755
|
-
|
1756
|
-
|
1757
|
-
return new Set(_data);
|
1830
|
+
return getOutlinedModel(response, _id5, parentObject, key, createSet);
|
1758
1831
|
}
|
1759
1832
|
|
1760
1833
|
case 'B':
|
@@ -1768,15 +1841,7 @@
|
|
1768
1841
|
// FormData
|
1769
1842
|
var _id7 = parseInt(value.slice(2), 16);
|
1770
1843
|
|
1771
|
-
|
1772
|
-
|
1773
|
-
var formData = new FormData();
|
1774
|
-
|
1775
|
-
for (var i = 0; i < _data3.length; i++) {
|
1776
|
-
formData.append(_data3[i][0], _data3[i][1]);
|
1777
|
-
}
|
1778
|
-
|
1779
|
-
return formData;
|
1844
|
+
return getOutlinedModel(response, _id7, parentObject, key, createFormData);
|
1780
1845
|
}
|
1781
1846
|
|
1782
1847
|
case 'I':
|
@@ -1842,57 +1907,7 @@
|
|
1842
1907
|
// We assume that anything else is a reference ID.
|
1843
1908
|
var _id8 = parseInt(value.slice(1), 16);
|
1844
1909
|
|
1845
|
-
|
1846
|
-
|
1847
|
-
switch (_chunk2.status) {
|
1848
|
-
case RESOLVED_MODEL:
|
1849
|
-
initializeModelChunk(_chunk2);
|
1850
|
-
break;
|
1851
|
-
|
1852
|
-
case RESOLVED_MODULE:
|
1853
|
-
initializeModuleChunk(_chunk2);
|
1854
|
-
break;
|
1855
|
-
} // The status might have changed after initialization.
|
1856
|
-
|
1857
|
-
|
1858
|
-
switch (_chunk2.status) {
|
1859
|
-
case INITIALIZED:
|
1860
|
-
var chunkValue = _chunk2.value;
|
1861
|
-
|
1862
|
-
if (_chunk2._debugInfo) {
|
1863
|
-
// If we have a direct reference to an object that was rendered by a synchronous
|
1864
|
-
// server component, it might have some debug info about how it was rendered.
|
1865
|
-
// We forward this to the underlying object. This might be a React Element or
|
1866
|
-
// an Array fragment.
|
1867
|
-
// If this was a string / number return value we lose the debug info. We choose
|
1868
|
-
// that tradeoff to allow sync server components to return plain values and not
|
1869
|
-
// use them as React Nodes necessarily. We could otherwise wrap them in a Lazy.
|
1870
|
-
if (typeof chunkValue === 'object' && chunkValue !== null && (Array.isArray(chunkValue) || chunkValue.$$typeof === REACT_ELEMENT_TYPE) && !chunkValue._debugInfo) {
|
1871
|
-
// We should maybe use a unique symbol for arrays but this is a React owned array.
|
1872
|
-
// $FlowFixMe[prop-missing]: This should be added to elements.
|
1873
|
-
Object.defineProperty(chunkValue, '_debugInfo', {
|
1874
|
-
configurable: false,
|
1875
|
-
enumerable: false,
|
1876
|
-
writable: true,
|
1877
|
-
value: _chunk2._debugInfo
|
1878
|
-
});
|
1879
|
-
}
|
1880
|
-
}
|
1881
|
-
|
1882
|
-
return chunkValue;
|
1883
|
-
|
1884
|
-
case PENDING:
|
1885
|
-
case BLOCKED:
|
1886
|
-
case CYCLIC:
|
1887
|
-
var parentChunk = initializingChunk;
|
1888
|
-
|
1889
|
-
_chunk2.then(createModelResolver(parentChunk, parentObject, key, _chunk2.status === CYCLIC), createModelReject(parentChunk));
|
1890
|
-
|
1891
|
-
return null;
|
1892
|
-
|
1893
|
-
default:
|
1894
|
-
throw _chunk2.reason;
|
1895
|
-
}
|
1910
|
+
return getOutlinedModel(response, _id8, parentObject, key, createModel);
|
1896
1911
|
}
|
1897
1912
|
}
|
1898
1913
|
}
|
@@ -8,28 +8,28 @@
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
10
|
|
11
|
-
'use strict';(function(){(function(t,
|
12
|
-
c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}function O(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 Y(){}function Z(a){for(var b=a[1],c=[],e=0;e<b.length;){var
|
13
|
-
|
14
|
-
typeof d){switch(d.$$typeof){case G:if(void 0===c)throw Error("React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options.");return"$T"+F(c,d).toString(16);case R:q=d._payload;var f=d._init;null===l&&(l=new FormData);g++;try{var p=f(q),n=
|
15
|
-
|
16
|
-
Map)return p=JSON.stringify(Array.from(d),
|
17
|
-
typeof d){if("Z"===d[d.length-1]&&this[q]instanceof Date)return"$D"+d;p="$"===d[0]?"$"+d:d;return p}if("boolean"===typeof d)return d;if("number"===typeof d)return ba(d);if("undefined"===typeof d)return"$undefined";if("function"===typeof d){p=M.get(d);if(void 0!==p)return p=JSON.stringify(p,
|
18
|
-
return"$T"+F(c,d).toString(16)}if("symbol"===typeof d){if(void 0===c)throw Error("Symbols cannot be passed to a Server Function without a temporary reference set. Pass a TemporaryReferenceSet to the options.");return"$T"+F(c,d).toString(16)}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+" is not supported as an argument to a Server Function.");}var
|
19
|
-
b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}function ka(a){switch(a.status){case "resolved_model":
|
20
|
-
a.reason)}}function
|
21
|
-
null;else{var
|
22
|
-
function
|
23
|
-
b.bound;return
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
"blocked"}else
|
28
|
-
_moduleLoading:null,_callServer:void 0!==b?b:
|
29
|
-
case 1:l=
|
30
|
-
break;case "C":"string"===typeof f?d.
|
31
|
-
|
32
|
-
default:g=f._chunks,(u=g.get(q))?(f=u,q=d,"pending"===f.status&&(d=f.value,g=f.reason,f.status="resolved_model",f.value=q,null!==d&&(
|
33
|
-
|
34
|
-
break;case "pending":case "blocked":case "cyclic":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)}};var
|
11
|
+
'use strict';(function(){(function(t,y){"object"===typeof exports&&"undefined"!==typeof module?y(exports,require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react-dom"],y):(t="undefined"!==typeof globalThis?globalThis:t||self,y(t.ReactServerDOMClient={},t.ReactDOM))})(this,function(t,y){function X(a,b){if(a){var c=a[b[0]];if(a=c[b[2]])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');
|
12
|
+
c=b[2]}return 4===b.length?[a.id,a.chunks,c,1]:[a.id,a.chunks,c]}return b}function O(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 Y(){}function Z(a){for(var b=a[1],c=[],e=0;e<b.length;){var m=b[e++],k=b[e++],h=E.get(m);void 0===h?(P.set(m,k),k=__webpack_chunk_load__(m),c.push(k),h=E.set.bind(E,m,null),k.then(h,Y),E.set(m,k)):null!==
|
13
|
+
h&&c.push(h)}return 4===a.length?0===c.length?O(a[0]):Promise.all(c).then(function(){return O(a[0])}):0<c.length?Promise.all(c):null}function aa(a){if(null===a||"object"!==typeof a)return null;a=Q&&a[Q]||a["@@iterator"];return"function"===typeof a?a:null}function F(a,b){var c=a.length;a.push(b);return c}function ba(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function ca(a,b,c,e,m){function k(q,d){if(null===d)return null;if("object"===
|
14
|
+
typeof d){switch(d.$$typeof){case G:if(void 0===c)throw Error("React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options.");return"$T"+F(c,d).toString(16);case R:q=d._payload;var f=d._init;null===l&&(l=new FormData);g++;try{var p=f(q),n=h++,u=JSON.stringify(p,k);l.append(b+n,u);return"$"+n.toString(16)}catch(r){if("object"===typeof r&&null!==r&&"function"===typeof r.then){g++;var z=h++;p=function(){try{var A=JSON.stringify(d,
|
15
|
+
k),H=l;H.append(b+z,A);g--;0===g&&e(H)}catch(da){m(da)}};r.then(p,p);return"$"+z.toString(16)}m(r);return null}finally{g--}}if("function"===typeof d.then){null===l&&(l=new FormData);g++;var x=h++;d.then(function(r){try{var A=JSON.stringify(r,k);r=l;r.append(b+x,A);g--;0===g&&e(r)}catch(H){m(H)}},function(r){m(r)});return"$@"+x.toString(16)}if(ea(d))return d;if(d instanceof FormData){null===l&&(l=new FormData);var fa=l;p=h++;var ha=b+p+"_";d.forEach(function(r,A){fa.append(ha+A,r)});return"$K"+p.toString(16)}if(d instanceof
|
16
|
+
Map)return p=JSON.stringify(Array.from(d),k),null===l&&(l=new FormData),n=h++,l.append(b+n,p),"$Q"+n.toString(16);if(d instanceof Set)return p=JSON.stringify(Array.from(d),k),null===l&&(l=new FormData),n=h++,l.append(b+n,p),"$W"+n.toString(16);if(aa(d))return Array.from(d);p=S(d);if(p!==ia&&(null===p||null!==S(p))){if(void 0===c)throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return"$T"+F(c,d).toString(16)}return d}if("string"===
|
17
|
+
typeof d){if("Z"===d[d.length-1]&&this[q]instanceof Date)return"$D"+d;p="$"===d[0]?"$"+d:d;return p}if("boolean"===typeof d)return d;if("number"===typeof d)return ba(d);if("undefined"===typeof d)return"$undefined";if("function"===typeof d){p=M.get(d);if(void 0!==p)return p=JSON.stringify(p,k),null===l&&(l=new FormData),n=h++,l.set(b+n,p),"$F"+n.toString(16);if(void 0===c)throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");
|
18
|
+
return"$T"+F(c,d).toString(16)}if("symbol"===typeof d){if(void 0===c)throw Error("Symbols cannot be passed to a Server Function without a temporary reference set. Pass a TemporaryReferenceSet to the options.");return"$T"+F(c,d).toString(16)}if("bigint"===typeof d)return"$n"+d.toString(10);throw Error("Type "+typeof d+" is not supported as an argument to a Server Function.");}var h=1,g=0,l=null;a=JSON.stringify(a,k);null===l?e(a):(l.set(b+"0",a),0===g&&e(l))}function ja(a,b,c){M.set(a,b)}function w(a,
|
19
|
+
b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}function ka(a){switch(a.status){case "resolved_model":I(a);break;case "resolved_module":J(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function B(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function T(a,b,c){switch(a.status){case "fulfilled":B(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&B(c,
|
20
|
+
a.reason)}}function K(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&B(c,b)}}function U(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,e=a.reason;a.status="resolved_module";a.value=b;null!==c&&(J(a),T(a,c,e))}}function I(a){var b=L,c=v;L=a;v=null;var e=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var m=JSON.parse(e,a._response._fromJSON);if(null!==v&&0<v.deps)v.value=m,a.status="blocked",a.value=null,a.reason=
|
21
|
+
null;else{var k=a.value;a.status="fulfilled";a.value=m;null!==k&&B(k,m)}}catch(h){a.status="rejected",a.reason=h}finally{L=b,v=c}}function J(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=c.value;else throw c.reason;var e="*"===b[2]?c:""===b[2]?c.__esModule?c.default:c:c[b[2]];a.status="fulfilled";a.value=e}catch(m){a.status="rejected",a.reason=m}}function N(a,b){a._chunks.forEach(function(c){"pending"===c.status&&K(c,b)})}
|
22
|
+
function C(a,b){var c=a._chunks,e=c.get(b);e||(e=new w("pending",null,null,a),c.set(b,e));return e}function la(a,b,c,e,m,k){if(v){var h=v;e||h.deps++}else h=v={deps:e?0:1,value:null};return function(g){b[c]=k(m,g);""===c&&null===h.value&&(h.value=b[c]);h.deps--;0===h.deps&&"blocked"===a.status&&(g=a.value,a.status="fulfilled",a.value=h.value,null!==g&&B(g,h.value))}}function ma(a){return function(b){return K(a,b)}}function na(a,b){var c=a._callServer;a=function(){var e=Array.prototype.slice.call(arguments),
|
23
|
+
m=b.bound;return m?"fulfilled"===m.status?c(b.id,m.value.concat(e)):Promise.resolve(m).then(function(k){return c(b.id,k.concat(e))}):c(b.id,e)};M.set(a,b);return a}function D(a,b,c,e,m){b=C(a,b);switch(b.status){case "resolved_model":I(b);break;case "resolved_module":J(b)}switch(b.status){case "fulfilled":return m(a,b.value);case "pending":case "blocked":case "cyclic":var k=L;b.then(la(k,c,e,"cyclic"===b.status,a,m),ma(k));return null;default:throw b.reason;}}function oa(a,b){return new Map(b)}function pa(a,
|
24
|
+
b){return new Set(b)}function qa(a,b){a=new FormData;for(var c=0;c<b.length;c++)a.append(b[c][0],b[c][1]);return a}function ra(a,b){return b}function sa(a,b,c,e){if("$"===e[0]){if("$"===e)return G;switch(e[1]){case "$":return e.slice(1);case "L":return b=parseInt(e.slice(2),16),a=C(a,b),{$$typeof:R,_payload:a,_init:ka};case "@":if(2===e.length)return new Promise(function(){});b=parseInt(e.slice(2),16);return C(a,b);case "S":return Symbol.for(e.slice(2));case "F":return e=parseInt(e.slice(2),16),D(a,
|
25
|
+
e,b,c,na);case "T":b=parseInt(e.slice(2),16);a=a._tempRefs;if(null==a)throw Error("Missing a temporary reference set but the RSC response returned a temporary reference. Pass a temporaryReference option with the set that was used with the reply.");if(0>b||b>=a.length)throw Error("The RSC response contained a reference that doesn't exist in the temporary reference set. Always pass the matching set that was used to create the reply when parsing its response.");return a[b];case "Q":return e=parseInt(e.slice(2),
|
26
|
+
16),D(a,e,b,c,oa);case "W":return e=parseInt(e.slice(2),16),D(a,e,b,c,pa);case "B":return;case "K":return e=parseInt(e.slice(2),16),D(a,e,b,c,qa);case "I":return Infinity;case "-":return"$-0"===e?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(e.slice(2)));case "n":return BigInt(e.slice(2));default:return e=parseInt(e.slice(1),16),D(a,e,b,c,ra)}}return e}function ta(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');
|
27
|
+
}function ua(a,b,c){var e=a._chunks,m=e.get(b);c=JSON.parse(c,a._fromJSON);var k=X(a._bundlerConfig,c);if(c=Z(k)){if(m){var h=m;h.status="blocked"}else h=new w("blocked",null,null,a),e.set(b,h);c.then(function(){return U(h,k)},function(g){return K(h,g)})}else m?U(m,k):e.set(b,new w("resolved_module",k,null,a))}function va(a){return function(b,c){return"string"===typeof c?sa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===G?{$$typeof:G,type:c[1],key:c[2],ref:null,props:c[3]}:c,b):c}}function V(a){var b=
|
28
|
+
a&&a.callServer?a.callServer:void 0;a=a&&a.temporaryReferences?a.temporaryReferences:void 0;var c=new Map;b={_bundlerConfig:null,_moduleLoading:null,_callServer:void 0!==b?b:ta,_encodeFormAction:void 0,_nonce:void 0,_chunks:c,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[],_tempRefs:a};b._fromJSON=va(b);return b}function W(a,b){function c(k){var h=k.value;if(k.done)N(a,Error("Connection closed."));else{var g=0,l=a._rowState,q=a._rowID,d=a._rowTag,
|
29
|
+
f=a._rowLength;k=a._buffer;for(var p=h.length;g<p;){var n=-1;switch(l){case 0:n=h[g++];58===n?l=1:q=q<<4|(96<n?n-87:n-48);continue;case 1:l=h[g];84===l?(d=l,l=2,g++):64<l&&91>l?(d=l,l=3,g++):(d=0,l=3);continue;case 2:n=h[g++];44===n?l=4:f=f<<4|(96<n?n-87:n-48);continue;case 3:n=h.indexOf(10,g);break;case 4:n=g+f,n>h.length&&(n=-1)}var u=h.byteOffset+g;if(-1<n){g=new Uint8Array(h.buffer,u,n-g);f=a;u=d;var z=f._stringDecoder;d="";for(var x=0;x<k.length;x++)d+=z.decode(k[x],wa);d+=z.decode(g);switch(u){case 73:ua(f,
|
30
|
+
q,d);break;case 72:q=d[0];d=d.slice(1);f=JSON.parse(d,f._fromJSON);d=xa.d;switch(q){case "D":d.D(f);break;case "C":"string"===typeof f?d.C(f):d.C(f[0],f[1]);break;case "L":q=f[0];g=f[1];3===f.length?d.L(q,g,f[2]):d.L(q,g);break;case "m":"string"===typeof f?d.m(f):d.m(f[0],f[1]);break;case "X":"string"===typeof f?d.X(f):d.X(f[0],f[1]);break;case "S":"string"===typeof f?d.S(f):d.S(f[0],0===f[1]?void 0:f[1],3===f.length?f[2]:void 0);break;case "M":"string"===typeof f?d.M(f):d.M(f[0],f[1])}break;case 69:d=
|
31
|
+
JSON.parse(d);g=d.digest;d=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");d.stack="Error: "+d.message;d.digest=g;g=f._chunks;(u=g.get(q))?K(u,d):g.set(q,new w("rejected",null,d,f));break;case 84:f._chunks.set(q,new w("fulfilled",d,null,f));break;case 68:case 87:throw Error("Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.");
|
32
|
+
default:g=f._chunks,(u=g.get(q))?(f=u,q=d,"pending"===f.status&&(d=f.value,g=f.reason,f.status="resolved_model",f.value=q,null!==d&&(I(f),T(f,d,g)))):g.set(q,new w("resolved_model",d,null,f))}g=n;3===l&&g++;f=q=d=l=0;k.length=0}else{h=new Uint8Array(h.buffer,u,h.byteLength-g);k.push(h);f-=h.byteLength;break}}a._rowState=l;a._rowID=q;a._rowTag=d;a._rowLength=f;return m.read().then(c).catch(e)}}function e(k){N(a,k)}var m=b.getReader();m.read().then(c).catch(e)}var wa={stream:!0},E=new Map,P=new Map,
|
33
|
+
ya=__webpack_require__.u;__webpack_require__.u=function(a){var b=P.get(a);return void 0!==b?b:ya(a)};var xa=y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Symbol.for("react.element"),R=Symbol.for("react.lazy"),Q=Symbol.iterator,ea=Array.isArray,S=Object.getPrototypeOf,ia=Object.prototype,M=new WeakMap;w.prototype=Object.create(Promise.prototype);w.prototype.then=function(a,b){switch(this.status){case "resolved_model":I(this);break;case "resolved_module":J(this)}switch(this.status){case "fulfilled":a(this.value);
|
34
|
+
break;case "pending":case "blocked":case "cyclic":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)}};var L=null,v=null;t.createFromFetch=function(a,b){var c=V(b);a.then(function(e){W(c,e.body)},function(e){N(c,e)});return C(c,0)};t.createFromReadableStream=function(a,b){b=V(b);W(b,a);return C(b,0)};t.createServerReference=function(a,b,c){c=function(){var e=Array.prototype.slice.call(arguments);return b(a,
|
35
35
|
e)};ja(c,{id:a,bound:null});return c};t.createTemporaryReferenceSet=function(){return[]};t.encodeReply=function(a,b){return new Promise(function(c,e){ca(a,"",b&&b.temporaryReferences?b.temporaryReferences:void 0,c,e)})}})})();
|