react-server-dom-webpack 18.3.0-canary-14898b6a9-20240318 → 18.3.0-canary-4b84f1161-20240318

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.
Files changed (39) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +91 -189
  2. package/cjs/react-server-dom-webpack-client.browser.production.js +60 -43
  3. package/cjs/react-server-dom-webpack-client.browser.production.min.js +24 -23
  4. package/cjs/react-server-dom-webpack-client.browser.production.min.js.map +1 -1
  5. package/cjs/react-server-dom-webpack-client.edge.development.js +96 -241
  6. package/cjs/react-server-dom-webpack-client.edge.production.js +65 -84
  7. package/cjs/react-server-dom-webpack-client.edge.production.min.js +29 -29
  8. package/cjs/react-server-dom-webpack-client.edge.production.min.js.map +1 -1
  9. package/cjs/react-server-dom-webpack-client.node.development.js +96 -241
  10. package/cjs/react-server-dom-webpack-client.node.production.js +65 -84
  11. package/cjs/react-server-dom-webpack-client.node.production.min.js +29 -28
  12. package/cjs/react-server-dom-webpack-client.node.production.min.js.map +1 -1
  13. package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +96 -241
  14. package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +65 -84
  15. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +30 -30
  16. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
  17. package/cjs/react-server-dom-webpack-node-register.js.map +1 -1
  18. package/cjs/react-server-dom-webpack-plugin.js.map +1 -1
  19. package/cjs/react-server-dom-webpack-server.browser.development.js +406 -550
  20. package/cjs/react-server-dom-webpack-server.browser.production.js +351 -373
  21. package/cjs/react-server-dom-webpack-server.browser.production.min.js +68 -65
  22. package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
  23. package/cjs/react-server-dom-webpack-server.edge.development.js +406 -553
  24. package/cjs/react-server-dom-webpack-server.edge.production.js +350 -375
  25. package/cjs/react-server-dom-webpack-server.edge.production.min.js +69 -66
  26. package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
  27. package/cjs/react-server-dom-webpack-server.node.development.js +406 -550
  28. package/cjs/react-server-dom-webpack-server.node.production.js +350 -372
  29. package/cjs/react-server-dom-webpack-server.node.production.min.js +72 -70
  30. package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
  31. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +406 -550
  32. package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +350 -372
  33. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +69 -67
  34. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
  35. package/package.json +3 -3
  36. package/umd/react-server-dom-webpack-client.browser.development.js +91 -189
  37. package/umd/react-server-dom-webpack-client.browser.production.min.js +23 -22
  38. package/umd/react-server-dom-webpack-server.browser.development.js +406 -550
  39. package/umd/react-server-dom-webpack-server.browser.production.min.js +52 -52
@@ -30,48 +30,6 @@
30
30
  return decoder.decode(buffer);
31
31
  }
32
32
 
33
- var badgeFormat = '%c%s%c '; // Same badge styling as DevTools.
34
-
35
- var badgeStyle = // We use a fixed background if light-dark is not supported, otherwise
36
- // we use a transparent background.
37
- 'background: #e6e6e6;' + 'background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));' + 'color: #000000;' + 'color: light-dark(#000000, #ffffff);' + 'border-radius: 2px';
38
- var resetStyle = '';
39
- var pad = ' ';
40
- function printToConsole(methodName, args, badgeName) {
41
- var offset = 0;
42
-
43
- switch (methodName) {
44
- case 'dir':
45
- case 'dirxml':
46
- case 'groupEnd':
47
- case 'table':
48
- {
49
- // These methods cannot be colorized because they don't take a formatting string.
50
- // eslint-disable-next-line react-internal/no-production-logging
51
- console[methodName].apply(console, args);
52
- return;
53
- }
54
-
55
- case 'assert':
56
- {
57
- // assert takes formatting options as the second argument.
58
- offset = 1;
59
- }
60
- }
61
-
62
- var newArgs = args.slice(0);
63
-
64
- if (typeof newArgs[offset] === 'string') {
65
- newArgs.splice(offset, 1, badgeFormat + newArgs[offset], badgeStyle, pad + badgeName + pad, resetStyle);
66
- } else {
67
- newArgs.splice(offset, 0, badgeFormat, badgeStyle, pad + badgeName + pad, resetStyle);
68
- } // eslint-disable-next-line react-internal/no-production-logging
69
-
70
-
71
- console[methodName].apply(console, newArgs);
72
- return;
73
- }
74
-
75
33
  // This is the parsed shape of the wire format which is why it is
76
34
  // condensed to only the essentialy information
77
35
  var ID = 0;
@@ -410,12 +368,14 @@
410
368
  // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
411
369
  // The Symbol used to tag the ReactElement-like types.
412
370
  var REACT_ELEMENT_TYPE = Symbol.for('react.element');
413
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); // TODO: Delete with enableRenderableContext
371
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
372
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
414
373
  var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
415
374
  var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
416
375
  var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
417
376
  var REACT_MEMO_TYPE = Symbol.for('react.memo');
418
377
  var REACT_LAZY_TYPE = Symbol.for('react.lazy');
378
+ var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
419
379
  var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
420
380
  var FAUX_ITERATOR_SYMBOL = '@@iterator';
421
381
  function getIteratorFn(maybeIterable) {
@@ -527,10 +487,6 @@
527
487
  return '[...]';
528
488
  }
529
489
 
530
- if (value !== null && value.$$typeof === CLIENT_REFERENCE_TAG) {
531
- return describeClientReference();
532
- }
533
-
534
490
  var name = objectName(value);
535
491
 
536
492
  if (name === 'Object') {
@@ -541,15 +497,7 @@
541
497
  }
542
498
 
543
499
  case 'function':
544
- {
545
- if (value.$$typeof === CLIENT_REFERENCE_TAG) {
546
- return describeClientReference();
547
- }
548
-
549
- var _name = value.displayName || value.name;
550
-
551
- return _name ? 'function ' + _name : 'function';
552
- }
500
+ return 'function';
553
501
 
554
502
  default:
555
503
  // eslint-disable-next-line react-internal/safe-string-coercion
@@ -595,12 +543,6 @@
595
543
  return '';
596
544
  }
597
545
 
598
- var CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference');
599
-
600
- function describeClientReference(ref) {
601
- return 'client';
602
- }
603
-
604
546
  function describeObjectForErrorMessage(objectOrArray, expandedName) {
605
547
  var objKind = objectName(objectOrArray);
606
548
 
@@ -679,8 +621,6 @@
679
621
  } else {
680
622
  if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE) {
681
623
  str = '<' + describeElementType(objectOrArray.type) + '/>';
682
- } else if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) {
683
- return describeClientReference();
684
624
  } else if (jsxPropsParents.has(objectOrArray)) {
685
625
  // Print JSX
686
626
  var _type = jsxPropsParents.get(objectOrArray);
@@ -731,9 +671,9 @@
731
671
  str += ', ';
732
672
  }
733
673
 
734
- var _name2 = _names[_i3];
735
- str += describeKeyForErrorMessage(_name2) + ': ';
736
- var _value3 = _object[_name2];
674
+ var _name = _names[_i3];
675
+ str += describeKeyForErrorMessage(_name) + ': ';
676
+ var _value3 = _object[_name];
737
677
 
738
678
  var _substr3 = void 0;
739
679
 
@@ -743,7 +683,7 @@
743
683
  _substr3 = describeValueForErrorMessage(_value3);
744
684
  }
745
685
 
746
- if (_name2 === expandedName) {
686
+ if (_name === expandedName) {
747
687
  start = str.length;
748
688
  length = _substr3.length;
749
689
  str += _substr3;
@@ -968,7 +908,7 @@
968
908
  error('React Element cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
969
909
  } else if (value.$$typeof === REACT_LAZY_TYPE) {
970
910
  error('React Lazy cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
971
- } else if (value.$$typeof === (REACT_PROVIDER_TYPE)) {
911
+ } else if (value.$$typeof === REACT_PROVIDER_TYPE) {
972
912
  error('React Context Providers cannot be passed to Server Functions from the Client.%s', describeObjectForErrorMessage(parent, key));
973
913
  } else if (objectName(value) !== 'Object') {
974
914
  error('Only plain objects can be passed to Server Functions from the Client. ' + '%s objects are not supported.%s', objectName(value), describeObjectForErrorMessage(parent, key));
@@ -1072,12 +1012,12 @@
1072
1012
  }
1073
1013
  }
1074
1014
 
1075
- function registerServerReference(proxy, reference, encodeFormAction) {
1015
+ function registerServerReference(proxy, reference) {
1076
1016
 
1077
1017
  knownServerReferences.set(proxy, reference);
1078
1018
  } // $FlowFixMe[method-unbinding]
1079
1019
 
1080
- function createServerReference(id, callServer, encodeFormAction) {
1020
+ function createServerReference(id, callServer) {
1081
1021
  var proxy = function () {
1082
1022
  // $FlowFixMe[method-unbinding]
1083
1023
  var args = Array.prototype.slice.call(arguments);
@@ -1091,6 +1031,57 @@
1091
1031
  return proxy;
1092
1032
  }
1093
1033
 
1034
+ var ContextRegistry = ReactSharedInternals.ContextRegistry;
1035
+ function getOrCreateServerContext(globalName) {
1036
+ if (!ContextRegistry[globalName]) {
1037
+ var context = {
1038
+ $$typeof: REACT_SERVER_CONTEXT_TYPE,
1039
+ // As a workaround to support multiple concurrent renderers, we categorize
1040
+ // some renderers as primary and others as secondary. We only expect
1041
+ // there to be two concurrent renderers at most: React Native (primary) and
1042
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1043
+ // Secondary renderers store their context values on separate fields.
1044
+ _currentValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1045
+ _currentValue2: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1046
+ _defaultValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
1047
+ // Used to track how many concurrent renderers this context currently
1048
+ // supports within in a single renderer. Such as parallel server rendering.
1049
+ _threadCount: 0,
1050
+ // These are circular
1051
+ Provider: null,
1052
+ Consumer: null,
1053
+ _globalName: globalName
1054
+ };
1055
+ context.Provider = {
1056
+ $$typeof: REACT_PROVIDER_TYPE,
1057
+ _context: context
1058
+ };
1059
+
1060
+ {
1061
+ var hasWarnedAboutUsingConsumer;
1062
+ context._currentRenderer = null;
1063
+ context._currentRenderer2 = null;
1064
+ Object.defineProperties(context, {
1065
+ Consumer: {
1066
+ get: function () {
1067
+ if (!hasWarnedAboutUsingConsumer) {
1068
+ error('Consumer pattern is not supported by ReactServerContext');
1069
+
1070
+ hasWarnedAboutUsingConsumer = true;
1071
+ }
1072
+
1073
+ return null;
1074
+ }
1075
+ }
1076
+ });
1077
+ }
1078
+
1079
+ ContextRegistry[globalName] = context;
1080
+ }
1081
+
1082
+ return ContextRegistry[globalName];
1083
+ }
1084
+
1094
1085
  var ROW_ID = 0;
1095
1086
  var ROW_TAG = 1;
1096
1087
  var ROW_LENGTH = 2;
@@ -1109,10 +1100,6 @@
1109
1100
  this.value = value;
1110
1101
  this.reason = reason;
1111
1102
  this._response = response;
1112
-
1113
- {
1114
- this._debugInfo = null;
1115
- }
1116
1103
  } // We subclass Promise.prototype so that we get other methods like .catch
1117
1104
 
1118
1105
 
@@ -1389,20 +1376,17 @@
1389
1376
  }
1390
1377
 
1391
1378
  function createElement(type, key, props) {
1392
- var element;
1393
-
1394
- {
1395
- element = {
1396
- // This tag allows us to uniquely identify this as a React Element
1397
- $$typeof: REACT_ELEMENT_TYPE,
1398
- type: type,
1399
- key: key,
1400
- ref: null,
1401
- props: props,
1402
- // Record the component responsible for creating this element.
1403
- _owner: null
1404
- };
1405
- }
1379
+ var element = {
1380
+ // This tag allows us to uniquely identify this as a React Element
1381
+ $$typeof: REACT_ELEMENT_TYPE,
1382
+ // Built-in properties that belong on the element
1383
+ type: type,
1384
+ key: key,
1385
+ ref: null,
1386
+ props: props,
1387
+ // Record the component responsible for creating this element.
1388
+ _owner: null
1389
+ };
1406
1390
 
1407
1391
  {
1408
1392
  // We don't really need to add any of these but keeping them for good measure.
@@ -1415,12 +1399,17 @@
1415
1399
  writable: true,
1416
1400
  value: true // This element has already been validated on the server.
1417
1401
 
1418
- }); // debugInfo contains Server Component debug information.
1419
-
1420
- Object.defineProperty(element, '_debugInfo', {
1402
+ });
1403
+ Object.defineProperty(element, '_self', {
1421
1404
  configurable: false,
1422
1405
  enumerable: false,
1423
- writable: true,
1406
+ writable: false,
1407
+ value: null
1408
+ });
1409
+ Object.defineProperty(element, '_source', {
1410
+ configurable: false,
1411
+ enumerable: false,
1412
+ writable: false,
1424
1413
  value: null
1425
1414
  });
1426
1415
  }
@@ -1434,13 +1423,6 @@
1434
1423
  _payload: chunk,
1435
1424
  _init: readChunk
1436
1425
  };
1437
-
1438
- {
1439
- // Ensure we have a live array to track future debug info.
1440
- var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
1441
- lazyType._debugInfo = chunkDebugInfo;
1442
- }
1443
-
1444
1426
  return lazyType;
1445
1427
  }
1446
1428
 
@@ -1576,11 +1558,6 @@
1576
1558
  case '@':
1577
1559
  {
1578
1560
  // Promise
1579
- if (value.length === 2) {
1580
- // Infinite promise that never resolves.
1581
- return new Promise(function () {});
1582
- }
1583
-
1584
1561
  var _id = parseInt(value.slice(2), 16);
1585
1562
 
1586
1563
  var _chunk = getChunk(response, _id);
@@ -1594,6 +1571,12 @@
1594
1571
  return Symbol.for(value.slice(2));
1595
1572
  }
1596
1573
 
1574
+ case 'P':
1575
+ {
1576
+ // Server Context Provider
1577
+ return getOrCreateServerContext(value.slice(2)).Provider;
1578
+ }
1579
+
1597
1580
  case 'F':
1598
1581
  {
1599
1582
  // Server Reference
@@ -1663,23 +1646,6 @@
1663
1646
  return BigInt(value.slice(2));
1664
1647
  }
1665
1648
 
1666
- case 'E':
1667
- {
1668
- {
1669
- // In DEV mode we allow indirect eval to produce functions for logging.
1670
- // This should not compile to eval() because then it has local scope access.
1671
- try {
1672
- // eslint-disable-next-line no-eval
1673
- return (0, eval)(value.slice(2));
1674
- } catch (x) {
1675
- // We currently use this to express functions so we fail parsing it,
1676
- // let's just return a blank function as a place holder.
1677
- return function () {};
1678
- }
1679
- } // Fallthrough
1680
-
1681
- }
1682
-
1683
1649
  default:
1684
1650
  {
1685
1651
  // We assume that anything else is a reference ID.
@@ -1700,29 +1666,7 @@
1700
1666
 
1701
1667
  switch (_chunk2.status) {
1702
1668
  case INITIALIZED:
1703
- var chunkValue = _chunk2.value;
1704
-
1705
- if (_chunk2._debugInfo) {
1706
- // If we have a direct reference to an object that was rendered by a synchronous
1707
- // server component, it might have some debug info about how it was rendered.
1708
- // We forward this to the underlying object. This might be a React Element or
1709
- // an Array fragment.
1710
- // If this was a string / number return value we lose the debug info. We choose
1711
- // that tradeoff to allow sync server components to return plain values and not
1712
- // use them as React Nodes necessarily. We could otherwise wrap them in a Lazy.
1713
- if (typeof chunkValue === 'object' && chunkValue !== null && (Array.isArray(chunkValue) || chunkValue.$$typeof === REACT_ELEMENT_TYPE) && !chunkValue._debugInfo) {
1714
- // We should maybe use a unique symbol for arrays but this is a React owned array.
1715
- // $FlowFixMe[prop-missing]: This should be added to elements.
1716
- Object.defineProperty(chunkValue, '_debugInfo', {
1717
- configurable: false,
1718
- enumerable: false,
1719
- writable: true,
1720
- value: _chunk2._debugInfo
1721
- });
1722
- }
1723
- }
1724
-
1725
- return chunkValue;
1669
+ return _chunk2.value;
1726
1670
 
1727
1671
  case PENDING:
1728
1672
  case BLOCKED:
@@ -1759,13 +1703,12 @@
1759
1703
  throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
1760
1704
  }
1761
1705
 
1762
- function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce) {
1706
+ function createResponse(bundlerConfig, moduleLoading, callServer, nonce) {
1763
1707
  var chunks = new Map();
1764
1708
  var response = {
1765
1709
  _bundlerConfig: bundlerConfig,
1766
1710
  _moduleLoading: moduleLoading,
1767
1711
  _callServer: callServer !== undefined ? callServer : missingCall,
1768
- _encodeFormAction: encodeFormAction,
1769
1712
  _nonce: nonce,
1770
1713
  _chunks: chunks,
1771
1714
  _stringDecoder: createStringDecoder(),
@@ -1862,24 +1805,6 @@
1862
1805
  dispatchHint(code, hintModel);
1863
1806
  }
1864
1807
 
1865
- function resolveDebugInfo(response, id, debugInfo) {
1866
-
1867
- var chunk = getChunk(response, id);
1868
- var chunkDebugInfo = chunk._debugInfo || (chunk._debugInfo = []);
1869
- chunkDebugInfo.push(debugInfo);
1870
- }
1871
-
1872
- function resolveConsoleEntry(response, value) {
1873
-
1874
- var payload = parseModel(response, value);
1875
- var methodName = payload[0]; // TODO: Restore the fake stack before logging.
1876
- // const stackTrace = payload[1];
1877
-
1878
- var env = payload[2];
1879
- var args = payload.slice(3);
1880
- printToConsole(methodName, args, env);
1881
- }
1882
-
1883
1808
  function processFullRow(response, id, tag, buffer, chunk) {
1884
1809
 
1885
1810
  var stringDecoder = response._stringDecoder;
@@ -1930,28 +1855,6 @@
1930
1855
  return;
1931
1856
  }
1932
1857
 
1933
- case 68
1934
- /* "D" */
1935
- :
1936
- {
1937
- {
1938
- var debugInfo = JSON.parse(row);
1939
- resolveDebugInfo(response, id, debugInfo);
1940
- return;
1941
- } // Fallthrough to share the error with Console entries.
1942
-
1943
- }
1944
-
1945
- case 87
1946
- /* "W" */
1947
- :
1948
- {
1949
- {
1950
- resolveConsoleEntry(response, row);
1951
- return;
1952
- }
1953
- }
1954
-
1955
1858
  case 80
1956
1859
  /* "P" */
1957
1860
  :
@@ -2129,8 +2032,7 @@
2129
2032
  }
2130
2033
 
2131
2034
  function createResponseFromOptions(options) {
2132
- return createResponse(null, null, options && options.callServer ? options.callServer : undefined, undefined, // encodeFormAction
2133
- undefined // nonce
2035
+ return createResponse(null, null, options && options.callServer ? options.callServer : undefined, undefined // nonce
2134
2036
  );
2135
2037
  }
2136
2038
 
@@ -8,25 +8,26 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
 
11
- 'use strict';(function(){(function(r,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports,require("react-dom")):"function"===typeof define&&define.amd?define(["exports","react-dom"],w):(r="undefined"!==typeof globalThis?globalThis:r||self,w(r.ReactServerDOMClient={},r.ReactDOM))})(this,function(r,w){function S(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 J(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 T(){}function U(a){for(var b=a[1],c=[],e=0;e<b.length;){var k=b[e++],l=b[e++],n=z.get(k);void 0===n?(K.set(k,l),l=__webpack_chunk_load__(k),c.push(l),n=z.set.bind(z,k,null),l.then(n,T),z.set(k,l)):null!==
13
- n&&c.push(n)}return 4===a.length?0===c.length?J(a[0]):Promise.all(c).then(function(){return J(a[0])}):0<c.length?Promise.all(c):null}function V(a){if(null===a||"object"!==typeof a)return null;a=L&&a[L]||a["@@iterator"];return"function"===typeof a?a:null}function W(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function X(a,b,c,e){function k(m,d){if(null===d)return null;if("object"===typeof d){if("function"===typeof d.then){null===
14
- g&&(g=new FormData);n++;var h=l++;d.then(function(p){p=JSON.stringify(p,k);var q=g;q.append(b+h,p);n--;0===n&&c(q)},function(p){e(p)});return"$@"+h.toString(16)}if(Y(d))return d;if(d instanceof FormData){null===g&&(g=new FormData);var f=g;m=l++;var D=b+m+"_";d.forEach(function(p,q){f.append(D+q,p)});return"$K"+m.toString(16)}if(d instanceof Map)return d=JSON.stringify(Array.from(d),k),null===g&&(g=new FormData),m=l++,g.append(b+m,d),"$Q"+m.toString(16);if(d instanceof Set)return d=JSON.stringify(Array.from(d),
15
- k),null===g&&(g=new FormData),m=l++,g.append(b+m,d),"$W"+m.toString(16);if(V(d))return Array.from(d);m=M(d);if(m!==Z&&(null===m||null!==M(m)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return d}if("string"===typeof d){if("Z"===d[d.length-1]&&this[m]instanceof Date)return"$D"+d;d="$"===d[0]?"$"+d:d;return d}if("boolean"===typeof d)return d;if("number"===typeof d)return W(d);if("undefined"===typeof d)return"$undefined";
16
- if("function"===typeof d){d=E.get(d);if(void 0!==d)return d=JSON.stringify(d,k),null===g&&(g=new FormData),m=l++,g.set(b+m,d),"$F"+m.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof d){m=d.description;if(Symbol.for(m)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(d.description+") cannot be found among global symbols."));
17
- return"$S"+m}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 l=1,n=0,g=null;a=JSON.stringify(a,k);null===g?c(a):(g.set(b+"0",a),0===n&&c(g))}function aa(a,b,c){E.set(a,b)}function u(a,b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}function ba(a){switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;
18
- default:throw a.reason;}}function y(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function N(a,b,c){switch(a.status){case "fulfilled":y(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&y(c,a.reason)}}function B(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&y(c,b)}}function O(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,e=a.reason;a.status="resolved_module";a.value=
19
- b;null!==c&&(A(a),N(a,c,e))}}function x(a){var b=C,c=t;C=a;t=null;var e=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var k=JSON.parse(e,a._response._fromJSON);if(null!==t&&0<t.deps)t.value=k,a.status="blocked",a.value=null,a.reason=null;else{var l=a.value;a.status="fulfilled";a.value=k;null!==l&&y(l,k)}}catch(n){a.status="rejected",a.reason=n}finally{C=b,t=c}}function A(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=
20
- 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(k){a.status="rejected",a.reason=k}}function F(a,b){a._chunks.forEach(function(c){"pending"===c.status&&B(c,b)})}function v(a,b){var c=a._chunks,e=c.get(b);e||(e=new u("pending",null,null,a),c.set(b,e));return e}function ca(a,b,c,e){if(t){var k=t;e||k.deps++}else k=t={deps:e?0:1,value:null};return function(l){b[c]=l;k.deps--;0===k.deps&&"blocked"===a.status&&(l=a.value,a.status=
21
- "fulfilled",a.value=k.value,null!==l&&y(l,k.value))}}function da(a){return function(b){return B(a,b)}}function ea(a,b){var c=a._callServer;a=function(){var e=Array.prototype.slice.call(arguments),k=b.bound;return k?"fulfilled"===k.status?c(b.id,k.value.concat(e)):Promise.resolve(k).then(function(l){return c(b.id,l.concat(e))}):c(b.id,e)};E.set(a,b);return a}function G(a,b){a=v(a,b);switch(a.status){case "resolved_model":x(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;
22
- }}function fa(a,b,c,e){if("$"===e[0]){if("$"===e)return H;switch(e[1]){case "$":return e.slice(1);case "L":return b=parseInt(e.slice(2),16),a=v(a,b),{$$typeof:ha,_payload:a,_init:ba};case "@":if(2===e.length)return new Promise(function(){});b=parseInt(e.slice(2),16);return v(a,b);case "S":return Symbol.for(e.slice(2));case "F":return b=parseInt(e.slice(2),16),b=G(a,b),ea(a,b);case "Q":return b=parseInt(e.slice(2),16),a=G(a,b),new Map(a);case "W":return b=parseInt(e.slice(2),16),a=G(a,b),new Set(a);
23
- 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:e=parseInt(e.slice(1),16);a=v(a,e);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return e=C,a.then(ca(e,b,c,"cyclic"===a.status),da(e)),null;default:throw a.reason;}}}return e}function ia(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');
24
- }function P(a,b,c,e,k){var l=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==c?c:ia,_encodeFormAction:e,_nonce:k,_chunks:l,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ja(a);return a}function ka(a,b,c){var e=a._chunks,k=e.get(b);c=JSON.parse(c,a._fromJSON);var l=S(a._bundlerConfig,c);if(c=U(l)){if(k){var n=k;n.status="blocked"}else n=new u("blocked",null,null,a),e.set(b,n);c.then(function(){return O(n,l)},function(g){return B(n,
25
- g)})}else k?O(k,l):e.set(b,new u("resolved_module",l,null,a))}function ja(a){return function(b,c){return"string"===typeof c?fa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===H?{$$typeof:H,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function Q(a,b){function c(l){var n=l.value;if(l.done)F(a,Error("Connection closed."));else{var g=0,m=a._rowState,d=a._rowID,h=a._rowTag,f=a._rowLength;l=a._buffer;for(var D=n.length;g<D;){var p=-1;switch(m){case 0:p=n[g++];58===p?m=1:d=d<<4|(96<p?
26
- p-87:p-48);continue;case 1:m=n[g];84===m?(h=m,m=2,g++):64<m&&91>m?(h=m,m=3,g++):(h=0,m=3);continue;case 2:p=n[g++];44===p?m=4:f=f<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,g);break;case 4:p=g+f,p>n.length&&(p=-1)}var q=n.byteOffset+g;if(-1<p){g=new Uint8Array(n.buffer,q,p-g);f=a;q=h;var R=f._stringDecoder;h="";for(var I=0;I<l.length;I++)h+=R.decode(l[I],la);h+=R.decode(g);switch(q){case 73:ka(f,d,h);break;case 72:d=h[0];h=h.slice(1);f=JSON.parse(h,f._fromJSON);if(h=ma.current)switch(d){case "D":h.prefetchDNS(f);
27
- break;case "C":"string"===typeof f?h.preconnect(f):h.preconnect(f[0],f[1]);break;case "L":d=f[0];g=f[1];3===f.length?h.preload(d,g,f[2]):h.preload(d,g);break;case "m":"string"===typeof f?h.preloadModule(f):h.preloadModule(f[0],f[1]);break;case "S":"string"===typeof f?h.preinitStyle(f):h.preinitStyle(f[0],0===f[1]?void 0:f[1],3===f.length?f[2]:void 0);break;case "X":"string"===typeof f?h.preinitScript(f):h.preinitScript(f[0],f[1]);break;case "M":"string"===typeof f?h.preinitModuleScript(f):h.preinitModuleScript(f[0],
28
- f[1])}break;case 69:h=JSON.parse(h);g=h.digest;h=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.");h.stack="Error: "+h.message;h.digest=g;g=f._chunks;(q=g.get(d))?B(q,h):g.set(d,new u("rejected",null,h,f));break;case 84:f._chunks.set(d,new u("fulfilled",h,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.");
29
- default:g=f._chunks,(q=g.get(d))?(f=q,d=h,"pending"===f.status&&(h=f.value,g=f.reason,f.status="resolved_model",f.value=d,null!==h&&(x(f),N(f,h,g)))):g.set(d,new u("resolved_model",h,null,f))}g=p;3===m&&g++;f=d=h=m=0;l.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-g);l.push(n);f-=n.byteLength;break}}a._rowState=m;a._rowID=d;a._rowTag=h;a._rowLength=f;return k.read().then(c).catch(e)}}function e(l){F(a,l)}var k=b.getReader();k.read().then(c).catch(e)}var la={stream:!0},z=new Map,K=new Map,
30
- na=__webpack_require__.u;__webpack_require__.u=function(a){var b=K.get(a);return void 0!==b?b:na(a)};var ma=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,H=Symbol.for("react.element"),ha=Symbol.for("react.lazy"),L=Symbol.iterator,Y=Array.isArray,M=Object.getPrototypeOf,Z=Object.prototype,E=new WeakMap;u.prototype=Object.create(Promise.prototype);u.prototype.then=function(a,b){switch(this.status){case "resolved_model":x(this);break;case "resolved_module":A(this)}switch(this.status){case "fulfilled":a(this.value);
31
- 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 C=null,t=null;r.createFromFetch=function(a,b){var c=P(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);a.then(function(e){Q(c,e.body)},function(e){F(c,e)});return v(c,0)};r.createFromReadableStream=function(a,b){b=P(null,null,b&&b.callServer?b.callServer:void 0,void 0,void 0);Q(b,a);
32
- return v(b,0)};r.createServerReference=function(a,b,c){c=function(){var e=Array.prototype.slice.call(arguments);return b(a,e)};aa(c,{id:a,bound:null});return c};r.encodeReply=function(a){return new Promise(function(b,c){X(a,"",b,c)})}})})();
11
+ 'use strict';(function(){(function(r,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports,require("react-dom"),require("react")):"function"===typeof define&&define.amd?define(["exports","react-dom","react"],w):(r="undefined"!==typeof globalThis?globalThis:r||self,w(r.ReactServerDOMClient={},r.ReactDOM,r.React))})(this,function(r,w,V){function W(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 K(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 X(){}function Y(a){for(var b=a[1],c=[],e=0;e<b.length;){var k=b[e++],l=b[e++],n=z.get(k);void 0===n?(L.set(k,l),l=__webpack_chunk_load__(k),c.push(l),n=z.set.bind(z,k,null),l.then(n,X),z.set(k,l)):null!==
13
+ n&&c.push(n)}return 4===a.length?0===c.length?K(a[0]):Promise.all(c).then(function(){return K(a[0])}):0<c.length?Promise.all(c):null}function Z(a){if(null===a||"object"!==typeof a)return null;a=M&&a[M]||a["@@iterator"];return"function"===typeof a?a:null}function aa(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}function ba(a,b,c,e){function k(m,d){if(null===d)return null;if("object"===typeof d){if("function"===typeof d.then){null===
14
+ g&&(g=new FormData);n++;var h=l++;d.then(function(p){p=JSON.stringify(p,k);var q=g;q.append(b+h,p);n--;0===n&&c(q)},function(p){e(p)});return"$@"+h.toString(16)}if(ca(d))return d;if(d instanceof FormData){null===g&&(g=new FormData);var f=g;m=l++;var D=b+m+"_";d.forEach(function(p,q){f.append(D+q,p)});return"$K"+m.toString(16)}if(d instanceof Map)return d=JSON.stringify(Array.from(d),k),null===g&&(g=new FormData),m=l++,g.append(b+m,d),"$Q"+m.toString(16);if(d instanceof Set)return d=JSON.stringify(Array.from(d),
15
+ k),null===g&&(g=new FormData),m=l++,g.append(b+m,d),"$W"+m.toString(16);if(Z(d))return Array.from(d);m=N(d);if(m!==da&&(null===m||null!==N(m)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return d}if("string"===typeof d){if("Z"===d[d.length-1]&&this[m]instanceof Date)return"$D"+d;d="$"===d[0]?"$"+d:d;return d}if("boolean"===typeof d)return d;if("number"===typeof d)return aa(d);if("undefined"===typeof d)return"$undefined";
16
+ if("function"===typeof d){d=O.get(d);if(void 0!==d)return d=JSON.stringify(d,k),null===g&&(g=new FormData),m=l++,g.set(b+m,d),"$F"+m.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof d){m=d.description;if(Symbol.for(m)!==d)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(d.description+") cannot be found among global symbols."));
17
+ return"$S"+m}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 l=1,n=0,g=null;a=JSON.stringify(a,k);null===g?c(a):(g.set(b+"0",a),0===n&&c(g))}function P(a,b){O.set(a,b)}function u(a,b,c,e){this.status=a;this.value=b;this.reason=c;this._response=e}function ea(a){switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;
18
+ default:throw a.reason;}}function y(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function Q(a,b,c){switch(a.status){case "fulfilled":y(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=c;break;case "rejected":c&&y(c,a.reason)}}function B(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&y(c,b)}}function R(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,e=a.reason;a.status="resolved_module";a.value=
19
+ b;null!==c&&(A(a),Q(a,c,e))}}function x(a){var b=C,c=t;C=a;t=null;var e=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var k=JSON.parse(e,a._response._fromJSON);if(null!==t&&0<t.deps)t.value=k,a.status="blocked",a.value=null,a.reason=null;else{var l=a.value;a.status="fulfilled";a.value=k;null!==l&&y(l,k)}}catch(n){a.status="rejected",a.reason=n}finally{C=b,t=c}}function A(a){try{var b=a.value,c=__webpack_require__(b[0]);if(4===b.length&&"function"===typeof c.then)if("fulfilled"===c.status)c=
20
+ 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(k){a.status="rejected",a.reason=k}}function E(a,b){a._chunks.forEach(function(c){"pending"===c.status&&B(c,b)})}function v(a,b){var c=a._chunks,e=c.get(b);e||(e=new u("pending",null,null,a),c.set(b,e));return e}function fa(a,b,c,e){if(t){var k=t;e||k.deps++}else k=t={deps:e?0:1,value:null};return function(l){b[c]=l;k.deps--;0===k.deps&&"blocked"===a.status&&(l=a.value,a.status=
21
+ "fulfilled",a.value=k.value,null!==l&&y(l,k.value))}}function ha(a){return function(b){return B(a,b)}}function ia(a,b){var c=a._callServer;a=function(){var e=Array.prototype.slice.call(arguments),k=b.bound;return k?"fulfilled"===k.status?c(b.id,k.value.concat(e)):Promise.resolve(k).then(function(l){return c(b.id,l.concat(e))}):c(b.id,e)};P(a,b);return a}function F(a,b){a=v(a,b);switch(a.status){case "resolved_model":x(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}}function ja(a,
22
+ 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=v(a,b),{$$typeof:ka,_payload:a,_init:ea};case "@":return b=parseInt(e.slice(2),16),v(a,b);case "S":return Symbol.for(e.slice(2));case "P":return a=e.slice(2),H[a]||(b={$$typeof:la,_currentValue:I,_currentValue2:I,_defaultValue:I,_threadCount:0,Provider:null,Consumer:null,_globalName:a},b.Provider={$$typeof:ma,_context:b},H[a]=b),H[a].Provider;case "F":return b=parseInt(e.slice(2),
23
+ 16),b=F(a,b),ia(a,b);case "Q":return b=parseInt(e.slice(2),16),a=F(a,b),new Map(a);case "W":return b=parseInt(e.slice(2),16),a=F(a,b),new Set(a);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:e=parseInt(e.slice(1),16);a=v(a,e);switch(a.status){case "resolved_model":x(a);break;case "resolved_module":A(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return e=
24
+ C,a.then(fa(e,b,c,"cyclic"===a.status),ha(e)),null;default:throw a.reason;}}}return e}function na(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function S(a,b,c,e){var k=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==c?c:na,_nonce:e,_chunks:k,_stringDecoder:new TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=oa(a);return a}function pa(a,b,c){var e=
25
+ a._chunks,k=e.get(b);c=JSON.parse(c,a._fromJSON);var l=W(a._bundlerConfig,c);if(c=Y(l)){if(k){var n=k;n.status="blocked"}else n=new u("blocked",null,null,a),e.set(b,n);c.then(function(){return R(n,l)},function(g){return B(n,g)})}else k?R(k,l):e.set(b,new u("resolved_module",l,null,a))}function oa(a){return function(b,c){return"string"===typeof c?ja(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],_owner:null}:c,b):c}}function T(a,b){function c(l){var n=
26
+ l.value;if(l.done)E(a,Error("Connection closed."));else{var g=0,m=a._rowState,d=a._rowID,h=a._rowTag,f=a._rowLength;l=a._buffer;for(var D=n.length;g<D;){var p=-1;switch(m){case 0:p=n[g++];58===p?m=1:d=d<<4|(96<p?p-87:p-48);continue;case 1:m=n[g];84===m?(h=m,m=2,g++):64<m&&91>m?(h=m,m=3,g++):(h=0,m=3);continue;case 2:p=n[g++];44===p?m=4:f=f<<4|(96<p?p-87:p-48);continue;case 3:p=n.indexOf(10,g);break;case 4:p=g+f,p>n.length&&(p=-1)}var q=n.byteOffset+g;if(-1<p){g=new Uint8Array(n.buffer,q,p-g);f=a;
27
+ q=h;var U=f._stringDecoder;h="";for(var J=0;J<l.length;J++)h+=U.decode(l[J],qa);h+=U.decode(g);switch(q){case 73:pa(f,d,h);break;case 72:d=h[0];h=h.slice(1);f=JSON.parse(h,f._fromJSON);if(h=ra.current)switch(d){case "D":h.prefetchDNS(f);break;case "C":"string"===typeof f?h.preconnect(f):h.preconnect(f[0],f[1]);break;case "L":d=f[0];g=f[1];3===f.length?h.preload(d,g,f[2]):h.preload(d,g);break;case "m":"string"===typeof f?h.preloadModule(f):h.preloadModule(f[0],f[1]);break;case "S":"string"===typeof f?
28
+ h.preinitStyle(f):h.preinitStyle(f[0],0===f[1]?void 0:f[1],3===f.length?f[2]:void 0);break;case "X":"string"===typeof f?h.preinitScript(f):h.preinitScript(f[0],f[1]);break;case "M":"string"===typeof f?h.preinitModuleScript(f):h.preinitModuleScript(f[0],f[1])}break;case 69:h=JSON.parse(h);g=h.digest;h=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.");
29
+ h.stack="Error: "+h.message;h.digest=g;g=f._chunks;(q=g.get(d))?B(q,h):g.set(d,new u("rejected",null,h,f));break;case 84:f._chunks.set(d,new u("fulfilled",h,null,f));break;default:g=f._chunks,(q=g.get(d))?(f=q,d=h,"pending"===f.status&&(h=f.value,g=f.reason,f.status="resolved_model",f.value=d,null!==h&&(x(f),Q(f,h,g)))):g.set(d,new u("resolved_model",h,null,f))}g=p;3===m&&g++;f=d=h=m=0;l.length=0}else{n=new Uint8Array(n.buffer,q,n.byteLength-g);l.push(n);f-=n.byteLength;break}}a._rowState=m;a._rowID=
30
+ d;a._rowTag=h;a._rowLength=f;return k.read().then(c).catch(e)}}function e(l){E(a,l)}var k=b.getReader();k.read().then(c).catch(e)}var qa={stream:!0},z=new Map,L=new Map,sa=__webpack_require__.u;__webpack_require__.u=function(a){var b=L.get(a);return void 0!==b?b:sa(a)};var ra=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,G=Symbol.for("react.element"),ma=Symbol.for("react.provider"),la=Symbol.for("react.server_context"),ka=Symbol.for("react.lazy"),I=Symbol.for("react.default_value"),
31
+ M=Symbol.iterator,ca=Array.isArray,N=Object.getPrototypeOf,da=Object.prototype,O=new WeakMap,H=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;u.prototype=Object.create(Promise.prototype);u.prototype.then=function(a,b){switch(this.status){case "resolved_model":x(this);break;case "resolved_module":A(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":case "cyclic":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&
32
+ (this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var C=null,t=null;r.createFromFetch=function(a,b){var c=S(null,null,b&&b.callServer?b.callServer:void 0,void 0);a.then(function(e){T(c,e.body)},function(e){E(c,e)});return v(c,0)};r.createFromReadableStream=function(a,b){b=S(null,null,b&&b.callServer?b.callServer:void 0,void 0);T(b,a);return v(b,0)};r.createServerReference=function(a,b){var c=function(){var e=Array.prototype.slice.call(arguments);return b(a,e)};P(c,{id:a,bound:null});
33
+ return c};r.encodeReply=function(a){return new Promise(function(b,c){ba(a,"",b,c)})}})})();