react-server-dom-webpack 18.3.0-canary-a870b2d54-20240314 → 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 +176 -272
  2. package/cjs/react-server-dom-webpack-client.browser.production.js +146 -127
  3. package/cjs/react-server-dom-webpack-client.browser.production.min.js +25 -24
  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 +181 -324
  6. package/cjs/react-server-dom-webpack-client.edge.production.js +151 -168
  7. package/cjs/react-server-dom-webpack-client.edge.production.min.js +30 -30
  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 +181 -324
  10. package/cjs/react-server-dom-webpack-client.node.production.js +151 -168
  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 +181 -324
  14. package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +151 -168
  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 +424 -587
  20. package/cjs/react-server-dom-webpack-server.browser.production.js +368 -403
  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 +424 -590
  24. package/cjs/react-server-dom-webpack-server.edge.production.js +369 -407
  25. package/cjs/react-server-dom-webpack-server.edge.production.min.js +69 -67
  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 +423 -586
  28. package/cjs/react-server-dom-webpack-server.node.production.js +368 -403
  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 +423 -586
  32. package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +368 -403
  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 +11 -5
  36. package/umd/react-server-dom-webpack-client.browser.development.js +176 -272
  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 +424 -587
  39. package/umd/react-server-dom-webpack-server.browser.production.min.js +52 -52
@@ -12,6 +12,7 @@
12
12
 
13
13
  var util = require('util');
14
14
  var ReactDOM = require('react-dom');
15
+ var React = require('react');
15
16
 
16
17
  // -----------------------------------------------------------------------------
17
18
  const enableBinaryFlight = false;
@@ -162,115 +163,117 @@ function getCrossOriginString(input) {
162
163
  }
163
164
 
164
165
  // This client file is in the shared folder because it applies to both SSR and browser contexts.
165
- const ReactDOMCurrentDispatcher = ReactDOMSharedInternals.ReactDOMCurrentDispatcher;
166
+ const ReactDOMCurrentDispatcher = ReactDOMSharedInternals.Dispatcher;
166
167
  function dispatchHint(code, model) {
167
168
  const dispatcher = ReactDOMCurrentDispatcher.current;
168
169
 
169
- switch (code) {
170
- case 'D':
171
- {
172
- const refined = refineModel(code, model);
173
- const href = refined;
174
- dispatcher.prefetchDNS(href);
175
- return;
176
- }
177
-
178
- case 'C':
179
- {
180
- const refined = refineModel(code, model);
181
-
182
- if (typeof refined === 'string') {
170
+ if (dispatcher) {
171
+ switch (code) {
172
+ case 'D':
173
+ {
174
+ const refined = refineModel(code, model);
183
175
  const href = refined;
184
- dispatcher.preconnect(href);
185
- } else {
186
- const href = refined[0];
187
- const crossOrigin = refined[1];
188
- dispatcher.preconnect(href, crossOrigin);
176
+ dispatcher.prefetchDNS(href);
177
+ return;
189
178
  }
190
179
 
191
- return;
192
- }
180
+ case 'C':
181
+ {
182
+ const refined = refineModel(code, model);
193
183
 
194
- case 'L':
195
- {
196
- const refined = refineModel(code, model);
197
- const href = refined[0];
198
- const as = refined[1];
199
-
200
- if (refined.length === 3) {
201
- const options = refined[2];
202
- dispatcher.preload(href, as, options);
203
- } else {
204
- dispatcher.preload(href, as);
184
+ if (typeof refined === 'string') {
185
+ const href = refined;
186
+ dispatcher.preconnect(href);
187
+ } else {
188
+ const href = refined[0];
189
+ const crossOrigin = refined[1];
190
+ dispatcher.preconnect(href, crossOrigin);
191
+ }
192
+
193
+ return;
205
194
  }
206
195
 
207
- return;
208
- }
196
+ case 'L':
197
+ {
198
+ const refined = refineModel(code, model);
199
+ const href = refined[0];
200
+ const as = refined[1];
209
201
 
210
- case 'm':
211
- {
212
- const refined = refineModel(code, model);
202
+ if (refined.length === 3) {
203
+ const options = refined[2];
204
+ dispatcher.preload(href, as, options);
205
+ } else {
206
+ dispatcher.preload(href, as);
207
+ }
213
208
 
214
- if (typeof refined === 'string') {
215
- const href = refined;
216
- dispatcher.preloadModule(href);
217
- } else {
218
- const href = refined[0];
219
- const options = refined[1];
220
- dispatcher.preloadModule(href, options);
209
+ return;
221
210
  }
222
211
 
223
- return;
224
- }
212
+ case 'm':
213
+ {
214
+ const refined = refineModel(code, model);
225
215
 
226
- case 'S':
227
- {
228
- const refined = refineModel(code, model);
216
+ if (typeof refined === 'string') {
217
+ const href = refined;
218
+ dispatcher.preloadModule(href);
219
+ } else {
220
+ const href = refined[0];
221
+ const options = refined[1];
222
+ dispatcher.preloadModule(href, options);
223
+ }
229
224
 
230
- if (typeof refined === 'string') {
231
- const href = refined;
232
- dispatcher.preinitStyle(href);
233
- } else {
234
- const href = refined[0];
235
- const precedence = refined[1] === 0 ? undefined : refined[1];
236
- const options = refined.length === 3 ? refined[2] : undefined;
237
- dispatcher.preinitStyle(href, precedence, options);
225
+ return;
238
226
  }
239
227
 
240
- return;
241
- }
228
+ case 'S':
229
+ {
230
+ const refined = refineModel(code, model);
242
231
 
243
- case 'X':
244
- {
245
- const refined = refineModel(code, model);
232
+ if (typeof refined === 'string') {
233
+ const href = refined;
234
+ dispatcher.preinitStyle(href);
235
+ } else {
236
+ const href = refined[0];
237
+ const precedence = refined[1] === 0 ? undefined : refined[1];
238
+ const options = refined.length === 3 ? refined[2] : undefined;
239
+ dispatcher.preinitStyle(href, precedence, options);
240
+ }
246
241
 
247
- if (typeof refined === 'string') {
248
- const href = refined;
249
- dispatcher.preinitScript(href);
250
- } else {
251
- const href = refined[0];
252
- const options = refined[1];
253
- dispatcher.preinitScript(href, options);
242
+ return;
254
243
  }
255
244
 
256
- return;
257
- }
245
+ case 'X':
246
+ {
247
+ const refined = refineModel(code, model);
258
248
 
259
- case 'M':
260
- {
261
- const refined = refineModel(code, model);
249
+ if (typeof refined === 'string') {
250
+ const href = refined;
251
+ dispatcher.preinitScript(href);
252
+ } else {
253
+ const href = refined[0];
254
+ const options = refined[1];
255
+ dispatcher.preinitScript(href, options);
256
+ }
262
257
 
263
- if (typeof refined === 'string') {
264
- const href = refined;
265
- dispatcher.preinitModuleScript(href);
266
- } else {
267
- const href = refined[0];
268
- const options = refined[1];
269
- dispatcher.preinitModuleScript(href, options);
258
+ return;
270
259
  }
271
260
 
272
- return;
273
- }
261
+ case 'M':
262
+ {
263
+ const refined = refineModel(code, model);
264
+
265
+ if (typeof refined === 'string') {
266
+ const href = refined;
267
+ dispatcher.preinitModuleScript(href);
268
+ } else {
269
+ const href = refined[0];
270
+ const options = refined[1];
271
+ dispatcher.preinitModuleScript(href, options);
272
+ }
273
+
274
+ return;
275
+ }
276
+ }
274
277
  }
275
278
  } // Flow is having trouble refining the HintModels so we help it a bit.
276
279
  // This should be compiled out in the production build.
@@ -294,7 +297,10 @@ function preinitScriptForSSR(href, nonce, crossOrigin) {
294
297
  // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
295
298
  // The Symbol used to tag the ReactElement-like types.
296
299
  const REACT_ELEMENT_TYPE = Symbol.for('react.element');
300
+ const REACT_PROVIDER_TYPE = Symbol.for('react.provider');
301
+ const REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
297
302
  const REACT_LAZY_TYPE = Symbol.for('react.lazy');
303
+ const REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol.for('react.default_value');
298
304
  const MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
299
305
  const FAUX_ITERATOR_SYMBOL = '@@iterator';
300
306
  function getIteratorFn(maybeIterable) {
@@ -616,7 +622,7 @@ function encodeFormData(reference) {
616
622
  return thenable;
617
623
  }
618
624
 
619
- function defaultEncodeFormAction(identifierPrefix) {
625
+ function encodeFormAction(identifierPrefix) {
620
626
  const reference = knownServerReferences.get(this);
621
627
 
622
628
  if (!reference) {
@@ -666,22 +672,6 @@ function defaultEncodeFormAction(identifierPrefix) {
666
672
  };
667
673
  }
668
674
 
669
- function customEncodeFormAction(proxy, identifierPrefix, encodeFormAction) {
670
- const reference = knownServerReferences.get(proxy);
671
-
672
- if (!reference) {
673
- throw new Error('Tried to encode a Server Action from a different instance than the encoder is from. ' + 'This is a bug in React.');
674
- }
675
-
676
- let boundPromise = reference.bound;
677
-
678
- if (boundPromise === null) {
679
- boundPromise = Promise.resolve([]);
680
- }
681
-
682
- return encodeFormAction(reference.id, boundPromise);
683
- }
684
-
685
675
  function isSignatureEqual(referenceId, numberOfBoundArgs) {
686
676
  const reference = knownServerReferences.get(this);
687
677
 
@@ -743,17 +733,14 @@ function isSignatureEqual(referenceId, numberOfBoundArgs) {
743
733
  }
744
734
  }
745
735
 
746
- function registerServerReference(proxy, reference, encodeFormAction) {
736
+ function registerServerReference(proxy, reference) {
747
737
  // Expose encoder for use by SSR, as well as a special bind that can be used to
748
738
  // keep server capabilities.
749
739
  {
750
740
  // Only expose this in builds that would actually use it. Not needed on the client.
751
- const $$FORM_ACTION = encodeFormAction === undefined ? defaultEncodeFormAction : function (identifierPrefix) {
752
- return customEncodeFormAction(this, identifierPrefix, encodeFormAction);
753
- };
754
741
  Object.defineProperties(proxy, {
755
742
  $$FORM_ACTION: {
756
- value: $$FORM_ACTION
743
+ value: encodeFormAction
757
744
  },
758
745
  $$IS_SIGNATURE_EQUAL: {
759
746
  value: isSignatureEqual
@@ -777,7 +764,6 @@ function bind() {
777
764
  const reference = knownServerReferences.get(this);
778
765
 
779
766
  if (reference) {
780
-
781
767
  const args = ArraySlice.call(arguments, 1);
782
768
  let boundPromise = null;
783
769
 
@@ -785,26 +771,9 @@ function bind() {
785
771
  boundPromise = Promise.resolve(reference.bound).then(boundArgs => boundArgs.concat(args));
786
772
  } else {
787
773
  boundPromise = Promise.resolve(args);
788
- } // Expose encoder for use by SSR, as well as a special bind that can be used to
789
- // keep server capabilities.
790
-
791
-
792
- {
793
- // Only expose this in builds that would actually use it. Not needed on the client.
794
- Object.defineProperties(newFn, {
795
- $$FORM_ACTION: {
796
- value: this.$$FORM_ACTION
797
- },
798
- $$IS_SIGNATURE_EQUAL: {
799
- value: isSignatureEqual
800
- },
801
- bind: {
802
- value: bind
803
- }
804
- });
805
774
  }
806
775
 
807
- knownServerReferences.set(newFn, {
776
+ registerServerReference(newFn, {
808
777
  id: reference.id,
809
778
  bound: boundPromise
810
779
  });
@@ -813,7 +782,7 @@ function bind() {
813
782
  return newFn;
814
783
  }
815
784
 
816
- function createServerReference$1(id, callServer, encodeFormAction) {
785
+ function createServerReference$1(id, callServer) {
817
786
  const proxy = function () {
818
787
  // $FlowFixMe[method-unbinding]
819
788
  const args = Array.prototype.slice.call(arguments);
@@ -823,10 +792,44 @@ function createServerReference$1(id, callServer, encodeFormAction) {
823
792
  registerServerReference(proxy, {
824
793
  id,
825
794
  bound: null
826
- }, encodeFormAction);
795
+ });
827
796
  return proxy;
828
797
  }
829
798
 
799
+ const ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
800
+
801
+ const ContextRegistry = ReactSharedInternals.ContextRegistry;
802
+ function getOrCreateServerContext(globalName) {
803
+ if (!ContextRegistry[globalName]) {
804
+ const context = {
805
+ $$typeof: REACT_SERVER_CONTEXT_TYPE,
806
+ // As a workaround to support multiple concurrent renderers, we categorize
807
+ // some renderers as primary and others as secondary. We only expect
808
+ // there to be two concurrent renderers at most: React Native (primary) and
809
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
810
+ // Secondary renderers store their context values on separate fields.
811
+ _currentValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
812
+ _currentValue2: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
813
+ _defaultValue: REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED,
814
+ // Used to track how many concurrent renderers this context currently
815
+ // supports within in a single renderer. Such as parallel server rendering.
816
+ _threadCount: 0,
817
+ // These are circular
818
+ Provider: null,
819
+ Consumer: null,
820
+ _globalName: globalName
821
+ };
822
+ context.Provider = {
823
+ $$typeof: REACT_PROVIDER_TYPE,
824
+ _context: context
825
+ };
826
+
827
+ ContextRegistry[globalName] = context;
828
+ }
829
+
830
+ return ContextRegistry[globalName];
831
+ }
832
+
830
833
  const ROW_ID = 0;
831
834
  const ROW_TAG = 1;
832
835
  const ROW_LENGTH = 2;
@@ -1121,20 +1124,17 @@ function reportGlobalError(response, error) {
1121
1124
  }
1122
1125
 
1123
1126
  function createElement(type, key, props) {
1124
- let element;
1125
-
1126
- {
1127
- element = {
1128
- // This tag allows us to uniquely identify this as a React Element
1129
- $$typeof: REACT_ELEMENT_TYPE,
1130
- type,
1131
- key,
1132
- ref: null,
1133
- props,
1134
- // Record the component responsible for creating this element.
1135
- _owner: null
1136
- };
1137
- }
1127
+ const element = {
1128
+ // This tag allows us to uniquely identify this as a React Element
1129
+ $$typeof: REACT_ELEMENT_TYPE,
1130
+ // Built-in properties that belong on the element
1131
+ type: type,
1132
+ key: key,
1133
+ ref: null,
1134
+ props: props,
1135
+ // Record the component responsible for creating this element.
1136
+ _owner: null
1137
+ };
1138
1138
 
1139
1139
  return element;
1140
1140
  }
@@ -1145,7 +1145,6 @@ function createLazyChunkWrapper(chunk) {
1145
1145
  _payload: chunk,
1146
1146
  _init: readChunk
1147
1147
  };
1148
-
1149
1148
  return lazyType;
1150
1149
  }
1151
1150
 
@@ -1226,7 +1225,7 @@ function createServerReferenceProxy(response, metaData) {
1226
1225
  });
1227
1226
  };
1228
1227
 
1229
- registerServerReference(proxy, metaData, response._encodeFormAction);
1228
+ registerServerReference(proxy, metaData);
1230
1229
  return proxy;
1231
1230
  }
1232
1231
 
@@ -1279,11 +1278,6 @@ function parseModelString(response, parentObject, key, value) {
1279
1278
  case '@':
1280
1279
  {
1281
1280
  // Promise
1282
- if (value.length === 2) {
1283
- // Infinite promise that never resolves.
1284
- return new Promise(() => {});
1285
- }
1286
-
1287
1281
  const id = parseInt(value.slice(2), 16);
1288
1282
  const chunk = getChunk(response, id);
1289
1283
  return chunk;
@@ -1295,6 +1289,12 @@ function parseModelString(response, parentObject, key, value) {
1295
1289
  return Symbol.for(value.slice(2));
1296
1290
  }
1297
1291
 
1292
+ case 'P':
1293
+ {
1294
+ // Server Context Provider
1295
+ return getOrCreateServerContext(value.slice(2)).Provider;
1296
+ }
1297
+
1298
1298
  case 'F':
1299
1299
  {
1300
1300
  // Server Reference
@@ -1360,8 +1360,6 @@ function parseModelString(response, parentObject, key, value) {
1360
1360
  return BigInt(value.slice(2));
1361
1361
  }
1362
1362
 
1363
- case 'E':
1364
-
1365
1363
  default:
1366
1364
  {
1367
1365
  // We assume that anything else is a reference ID.
@@ -1381,9 +1379,7 @@ function parseModelString(response, parentObject, key, value) {
1381
1379
 
1382
1380
  switch (chunk.status) {
1383
1381
  case INITIALIZED:
1384
- const chunkValue = chunk.value;
1385
-
1386
- return chunkValue;
1382
+ return chunk.value;
1387
1383
 
1388
1384
  case PENDING:
1389
1385
  case BLOCKED:
@@ -1418,13 +1414,12 @@ function missingCall() {
1418
1414
  throw new Error('Trying to call a function from "use server" but the callServer option ' + 'was not implemented in your router runtime.');
1419
1415
  }
1420
1416
 
1421
- function createResponse(bundlerConfig, moduleLoading, callServer, encodeFormAction, nonce) {
1417
+ function createResponse(bundlerConfig, moduleLoading, callServer, nonce) {
1422
1418
  const chunks = new Map();
1423
1419
  const response = {
1424
1420
  _bundlerConfig: bundlerConfig,
1425
1421
  _moduleLoading: moduleLoading,
1426
1422
  _callServer: callServer !== undefined ? callServer : missingCall,
1427
- _encodeFormAction: encodeFormAction,
1428
1423
  _nonce: nonce,
1429
1424
  _chunks: chunks,
1430
1425
  _stringDecoder: createStringDecoder(),
@@ -1567,18 +1562,6 @@ function processFullRow(response, id, tag, buffer, chunk) {
1567
1562
  return;
1568
1563
  }
1569
1564
 
1570
- case 68
1571
- /* "D" */
1572
- :
1573
-
1574
- case 87
1575
- /* "W" */
1576
- :
1577
- {
1578
-
1579
- throw new 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.');
1580
- }
1581
-
1582
1565
  case 80
1583
1566
  /* "P" */
1584
1567
  :
@@ -1763,7 +1746,7 @@ function createServerReference(id, callServer) {
1763
1746
  }
1764
1747
 
1765
1748
  function createFromNodeStream(stream, ssrManifest, options) {
1766
- const response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options ? options.encodeFormAction : undefined, options && typeof options.nonce === 'string' ? options.nonce : undefined);
1749
+ const response = createResponse(ssrManifest.moduleMap, ssrManifest.moduleLoading, noServerCall, options && typeof options.nonce === 'string' ? options.nonce : undefined);
1767
1750
  stream.on('data', chunk => {
1768
1751
  processBinaryChunk(response, chunk);
1769
1752
  });
@@ -7,35 +7,35 @@
7
7
  This source code is licensed under the MIT license found in the
8
8
  LICENSE file in the root directory of this source tree.
9
9
  */
10
- 'use strict';var p=require("util"),r=require("react-dom"),t={stream:!0};function v(a,c){var d=a[c[0]];if(a=d[c[2]])d=a.name;else{a=d["*"];if(!a)throw Error('Could not find the module "'+c[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');d=c[2]}return{specifier:a.specifier,name:d,async:4===c.length}}var w=new Map;
11
- function x(a){var c=w.get(a.specifier);if(c)return"fulfilled"===c.status?null:c;var d=import(a.specifier);a.async&&(d=d.then(function(b){return b.default}));d.then(function(b){var g=d;g.status="fulfilled";g.value=b},function(b){var g=d;g.status="rejected";g.reason=b});w.set(a.specifier,d);return d}
12
- function y(a,c,d){if(null!==a)for(var b=1;b<c.length;b+=2){var g=d,h=z.current;if(h){var l=h.preinitScript,k=a.prefix+c[b];var e=a.crossOrigin;e="string"===typeof e?"use-credentials"===e?e:"":void 0;l.call(h,k,{crossOrigin:e,nonce:g})}}}var z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMCurrentDispatcher,A=Symbol.for("react.element"),B=Symbol.for("react.lazy"),C=Symbol.iterator;
13
- function E(a){if(null===a||"object"!==typeof a)return null;a=C&&a[C]||a["@@iterator"];return"function"===typeof a?a:null}var F=Array.isArray,G=Object.getPrototypeOf,H=Object.prototype,I=new WeakMap;function aa(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
14
- function ba(a,c,d,b){function g(e,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===k&&(k=new FormData);l++;var u=h++;f.then(function(n){n=JSON.stringify(n,g);var q=k;q.append(c+u,n);l--;0===l&&d(q)},function(n){b(n)});return"$@"+u.toString(16)}if(F(f))return f;if(f instanceof FormData){null===k&&(k=new FormData);var D=k;e=h++;var m=c+e+"_";f.forEach(function(n,q){D.append(m+q,n)});return"$K"+e.toString(16)}if(f instanceof Map)return f=JSON.stringify(Array.from(f),
15
- g),null===k&&(k=new FormData),e=h++,k.append(c+e,f),"$Q"+e.toString(16);if(f instanceof Set)return f=JSON.stringify(Array.from(f),g),null===k&&(k=new FormData),e=h++,k.append(c+e,f),"$W"+e.toString(16);if(E(f))return Array.from(f);e=G(f);if(e!==H&&(null===e||null!==G(e)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[e]instanceof Date)return"$D"+f;f=
16
- "$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return aa(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===k&&(k=new FormData),e=h++,k.set(c+e,f),"$F"+e.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 f){e=f.description;if(Symbol.for(e)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+
17
- (f.description+") cannot be found among global symbols."));return"$S"+e}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,l=0,k=null;a=JSON.stringify(a,g);null===k?d(a):(k.set(c+"0",a),0===l&&d(k))}var J=new WeakMap;
18
- function ca(a){var c,d,b=new Promise(function(g,h){c=g;d=h});ba(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}b.status="fulfilled";b.value=g;c(g)},function(g){b.status="rejected";b.reason=g;d(g)});return b}
19
- function da(a){var c=I.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var d=null;if(null!==c.bound){d=J.get(c);d||(d=ca(c),J.set(c,d));if("rejected"===d.status)throw d.reason;if("fulfilled"!==d.status)throw d;c=d.value;var b=new FormData;c.forEach(function(g,h){b.append("$ACTION_"+a+":"+h,g)});d=b;c="$ACTION_REF_"+a}else c="$ACTION_ID_"+c.id;return{name:c,method:"POST",encType:"multipart/form-data",data:d}}
20
- function K(a,c){var d=I.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(d.id!==a)return!1;var b=d.bound;if(null===b)return 0===c;switch(b.status){case "fulfilled":return b.value.length===c;case "pending":throw b;case "rejected":throw b.reason;default:throw"string"!==typeof b.status&&(b.status="pending",b.then(function(g){b.status="fulfilled";b.value=g},function(g){b.status="rejected";b.reason=g})),b;}}
21
- function L(a,c,d){Object.defineProperties(a,{$$FORM_ACTION:{value:void 0===d?da:function(){var b=I.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var g=b.bound;null===g&&(g=Promise.resolve([]));return d(b.id,g)}},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,c)}var ea=Function.prototype.bind,fa=Array.prototype.slice;
22
- function M(){var a=ea.apply(this,arguments),c=I.get(this);if(c){var d=fa.call(arguments,1),b=null;b=null!==c.bound?Promise.resolve(c.bound).then(function(g){return g.concat(d)}):Promise.resolve(d);Object.defineProperties(a,{$$FORM_ACTION:{value:this.$$FORM_ACTION},$$IS_SIGNATURE_EQUAL:{value:K},bind:{value:M}});I.set(a,{id:c.id,bound:b})}return a}function ha(a,c,d){function b(){var g=Array.prototype.slice.call(arguments);return c(a,g)}L(b,{id:a,bound:null},d);return b}
23
- function N(a,c,d,b){this.status=a;this.value=c;this.reason=d;this._response=b}N.prototype=Object.create(Promise.prototype);N.prototype.then=function(a,c){switch(this.status){case "resolved_model":O(this);break;case "resolved_module":P(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));c&&(null===this.reason&&(this.reason=[]),this.reason.push(c));break;default:c(this.reason)}};
24
- function ia(a){switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function Q(a,c){for(var d=0;d<a.length;d++)(0,a[d])(c)}function R(a,c,d){switch(a.status){case "fulfilled":Q(c,a.value);break;case "pending":case "blocked":case "cyclic":a.value=c;a.reason=d;break;case "rejected":d&&Q(d,a.reason)}}
25
- function S(a,c){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=c;null!==d&&Q(d,c)}}function T(a,c){if("pending"===a.status||"blocked"===a.status){var d=a.value,b=a.reason;a.status="resolved_module";a.value=c;null!==d&&(P(a),R(a,d,b))}}var U=null,V=null;
26
- function O(a){var c=U,d=V;U=a;V=null;var b=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var g=JSON.parse(b,a._response._fromJSON);if(null!==V&&0<V.deps)V.value=g,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=g;null!==h&&Q(h,g)}}catch(l){a.status="rejected",a.reason=l}finally{U=c,V=d}}
27
- function P(a){try{var c=a.value,d=w.get(c.specifier);if("fulfilled"===d.status)var b=d.value;else throw d.reason;var g="*"===c.name?b:""===c.name?b.default:b[c.name];a.status="fulfilled";a.value=g}catch(h){a.status="rejected",a.reason=h}}function W(a,c){a._chunks.forEach(function(d){"pending"===d.status&&S(d,c)})}function X(a,c){var d=a._chunks,b=d.get(c);b||(b=new N("pending",null,null,a),d.set(c,b));return b}
28
- function ja(a,c,d,b){if(V){var g=V;b||g.deps++}else g=V={deps:b?0:1,value:null};return function(h){c[d]=h;g.deps--;0===g.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=g.value,null!==h&&Q(h,g.value))}}function ka(a){return function(c){return S(a,c)}}
29
- function la(a,c){function d(){var g=Array.prototype.slice.call(arguments),h=c.bound;return h?"fulfilled"===h.status?b(c.id,h.value.concat(g)):Promise.resolve(h).then(function(l){return b(c.id,l.concat(g))}):b(c.id,g)}var b=a._callServer;L(d,c,a._encodeFormAction);return d}function Y(a,c){a=X(a,c);switch(a.status){case "resolved_model":O(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}}
30
- function ma(a,c,d,b){if("$"===b[0]){if("$"===b)return A;switch(b[1]){case "$":return b.slice(1);case "L":return c=parseInt(b.slice(2),16),a=X(a,c),{$$typeof:B,_payload:a,_init:ia};case "@":if(2===b.length)return new Promise(function(){});c=parseInt(b.slice(2),16);return X(a,c);case "S":return Symbol.for(b.slice(2));case "F":return c=parseInt(b.slice(2),16),c=Y(a,c),la(a,c);case "Q":return c=parseInt(b.slice(2),16),a=Y(a,c),new Map(a);case "W":return c=parseInt(b.slice(2),16),a=Y(a,c),new Set(a);case "I":return Infinity;
31
- case "-":return"$-0"===b?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(b.slice(2)));case "n":return BigInt(b.slice(2));default:b=parseInt(b.slice(1),16);a=X(a,b);switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return b=U,a.then(ja(b,c,d,"cyclic"===a.status),ka(b)),null;default:throw a.reason;}}}return b}
32
- function na(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function oa(a,c,d,b,g){var h=new Map;a={_bundlerConfig:a,_moduleLoading:c,_callServer:void 0!==d?d:na,_encodeFormAction:b,_nonce:g,_chunks:h,_stringDecoder:new p.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=pa(a);return a}
33
- function qa(a,c,d){var b=a._chunks,g=b.get(c);d=JSON.parse(d,a._fromJSON);var h=v(a._bundlerConfig,d);y(a._moduleLoading,d[1],a._nonce);if(d=x(h)){if(g){var l=g;l.status="blocked"}else l=new N("blocked",null,null,a),b.set(c,l);d.then(function(){return T(l,h)},function(k){return S(l,k)})}else g?T(g,h):b.set(c,new N("resolved_module",h,null,a))}
34
- function pa(a){return function(c,d){return"string"===typeof d?ma(a,this,c,d):"object"===typeof d&&null!==d?(c=d[0]===A?{$$typeof:A,type:d[1],key:d[2],ref:null,props:d[3],_owner:null}:d,c):d}}function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
35
- exports.createFromNodeStream=function(a,c,d){var b=oa(c.moduleMap,c.moduleLoading,Z,d?d.encodeFormAction:void 0,d&&"string"===typeof d.nonce?d.nonce:void 0);a.on("data",function(g){for(var h=0,l=b._rowState,k=b._rowID,e=b._rowTag,f=b._rowLength,u=b._buffer,D=g.length;h<D;){var m=-1;switch(l){case 0:m=g[h++];58===m?l=1:k=k<<4|(96<m?m-87:m-48);continue;case 1:l=g[h];84===l?(e=l,l=2,h++):64<l&&91>l?(e=l,l=3,h++):(e=0,l=3);continue;case 2:m=g[h++];44===m?l=4:f=f<<4|(96<m?m-87:m-48);continue;case 3:m=
36
- g.indexOf(10,h);break;case 4:m=h+f,m>g.length&&(m=-1)}var n=g.byteOffset+h;if(-1<m){f=new Uint8Array(g.buffer,n,m-h);h=e;n=b._stringDecoder;e="";for(var q=0;q<u.length;q++)e+=n.decode(u[q],t);e+=n.decode(f);switch(h){case 73:qa(b,k,e);break;case 72:k=e[0];e=e.slice(1);e=JSON.parse(e,b._fromJSON);f=z.current;switch(k){case "D":f.prefetchDNS(e);break;case "C":"string"===typeof e?f.preconnect(e):f.preconnect(e[0],e[1]);break;case "L":k=e[0];h=e[1];3===e.length?f.preload(k,h,e[2]):f.preload(k,h);break;
37
- case "m":"string"===typeof e?f.preloadModule(e):f.preloadModule(e[0],e[1]);break;case "S":"string"===typeof e?f.preinitStyle(e):f.preinitStyle(e[0],0===e[1]?void 0:e[1],3===e.length?e[2]:void 0);break;case "X":"string"===typeof e?f.preinitScript(e):f.preinitScript(e[0],e[1]);break;case "M":"string"===typeof e?f.preinitModuleScript(e):f.preinitModuleScript(e[0],e[1])}break;case 69:e=JSON.parse(e);f=e.digest;e=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.");
38
- e.stack="Error: "+e.message;e.digest=f;f=b._chunks;(h=f.get(k))?S(h,e):f.set(k,new N("rejected",null,e,b));break;case 84:b._chunks.set(k,new N("fulfilled",e,null,b));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.");default:f=b._chunks,(h=f.get(k))?(k=h,"pending"===k.status&&(f=k.value,h=k.reason,k.status="resolved_model",
39
- k.value=e,null!==f&&(O(k),R(k,f,h)))):f.set(k,new N("resolved_model",e,null,b))}h=m;3===l&&h++;f=k=e=l=0;u.length=0}else{g=new Uint8Array(g.buffer,n,g.byteLength-h);u.push(g);f-=g.byteLength;break}}b._rowState=l;b._rowID=k;b._rowTag=e;b._rowLength=f});a.on("error",function(g){W(b,g)});a.on("end",function(){W(b,Error("Connection closed."))});return X(b,0)};exports.createServerReference=function(a){return ha(a,Z)};
10
+ 'use strict';var p=require("util"),r=require("react-dom"),u=require("react"),v={stream:!0};function w(a,b){var d=a[b[0]];if(a=d[b[2]])d=a.name;else{a=d["*"];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.');d=b[2]}return{specifier:a.specifier,name:d,async:4===b.length}}var x=new Map;
11
+ function y(a){var b=x.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var d=import(a.specifier);a.async&&(d=d.then(function(c){return c.default}));d.then(function(c){var g=d;g.status="fulfilled";g.value=c},function(c){var g=d;g.status="rejected";g.reason=c});x.set(a.specifier,d);return d}
12
+ function z(a,b,d){if(null!==a)for(var c=1;c<b.length;c+=2){var g=d,h=A.current;if(h){var l=h.preinitScript,k=a.prefix+b[c];var e=a.crossOrigin;e="string"===typeof e?"use-credentials"===e?e:"":void 0;l.call(h,k,{crossOrigin:e,nonce:g})}}}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,B=Symbol.for("react.element"),C=Symbol.for("react.provider"),D=Symbol.for("react.server_context"),F=Symbol.for("react.lazy"),G=Symbol.for("react.default_value"),H=Symbol.iterator;
13
+ function aa(a){if(null===a||"object"!==typeof a)return null;a=H&&a[H]||a["@@iterator"];return"function"===typeof a?a:null}var ba=Array.isArray,I=Object.getPrototypeOf,ca=Object.prototype,J=new WeakMap;function da(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
14
+ function ea(a,b,d,c){function g(e,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===k&&(k=new FormData);l++;var t=h++;f.then(function(n){n=JSON.stringify(n,g);var q=k;q.append(b+t,n);l--;0===l&&d(q)},function(n){c(n)});return"$@"+t.toString(16)}if(ba(f))return f;if(f instanceof FormData){null===k&&(k=new FormData);var E=k;e=h++;var m=b+e+"_";f.forEach(function(n,q){E.append(m+q,n)});return"$K"+e.toString(16)}if(f instanceof Map)return f=JSON.stringify(Array.from(f),
15
+ g),null===k&&(k=new FormData),e=h++,k.append(b+e,f),"$Q"+e.toString(16);if(f instanceof Set)return f=JSON.stringify(Array.from(f),g),null===k&&(k=new FormData),e=h++,k.append(b+e,f),"$W"+e.toString(16);if(aa(f))return Array.from(f);e=I(f);if(e!==ca&&(null===e||null!==I(e)))throw Error("Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.");return f}if("string"===typeof f){if("Z"===f[f.length-1]&&this[e]instanceof Date)return"$D"+f;
16
+ f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return da(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=J.get(f);if(void 0!==f)return f=JSON.stringify(f,g),null===k&&(k=new FormData),e=h++,k.set(b+e,f),"$F"+e.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 f){e=f.description;if(Symbol.for(e)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+
17
+ (f.description+") cannot be found among global symbols."));return"$S"+e}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var h=1,l=0,k=null;a=JSON.stringify(a,g);null===k?d(a):(k.set(b+"0",a),0===l&&d(k))}var K=new WeakMap;
18
+ function fa(a){var b,d,c=new Promise(function(g,h){b=g;d=h});ea(a,"",function(g){if("string"===typeof g){var h=new FormData;h.append("0",g);g=h}c.status="fulfilled";c.value=g;b(g)},function(g){c.status="rejected";c.reason=g;d(g)});return c}
19
+ function ha(a){var b=J.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var d=null;if(null!==b.bound){d=K.get(b);d||(d=fa(b),K.set(b,d));if("rejected"===d.status)throw d.reason;if("fulfilled"!==d.status)throw d;b=d.value;var c=new FormData;b.forEach(function(g,h){c.append("$ACTION_"+a+":"+h,g)});d=c;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:d}}
20
+ function ia(a,b){var d=J.get(this);if(!d)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(d.id!==a)return!1;var c=d.bound;if(null===c)return 0===b;switch(c.status){case "fulfilled":return c.value.length===b;case "pending":throw c;case "rejected":throw c.reason;default:throw"string"!==typeof c.status&&(c.status="pending",c.then(function(g){c.status="fulfilled";c.value=g},function(g){c.status="rejected";c.reason=g})),c;}}
21
+ function L(a,b){Object.defineProperties(a,{$$FORM_ACTION:{value:ha},$$IS_SIGNATURE_EQUAL:{value:ia},bind:{value:ja}});J.set(a,b)}var ka=Function.prototype.bind,la=Array.prototype.slice;function ja(){var a=ka.apply(this,arguments),b=J.get(this);if(b){var d=la.call(arguments,1),c=null;c=null!==b.bound?Promise.resolve(b.bound).then(function(g){return g.concat(d)}):Promise.resolve(d);L(a,{id:b.id,bound:c})}return a}
22
+ function ma(a,b){function d(){var c=Array.prototype.slice.call(arguments);return b(a,c)}L(d,{id:a,bound:null});return d}var M=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function N(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}N.prototype=Object.create(Promise.prototype);
23
+ N.prototype.then=function(a,b){switch(this.status){case "resolved_model":O(this);break;case "resolved_module":P(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&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};
24
+ function na(a){switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":throw a;default:throw a.reason;}}function Q(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}function R(a,b,d){switch(a.status){case "fulfilled":Q(b,a.value);break;case "pending":case "blocked":case "cyclic":a.value=b;a.reason=d;break;case "rejected":d&&Q(d,a.reason)}}
25
+ function S(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Q(d,b)}}function T(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.value,c=a.reason;a.status="resolved_module";a.value=b;null!==d&&(P(a),R(a,d,c))}}var U=null,V=null;
26
+ function O(a){var b=U,d=V;U=a;V=null;var c=a.value;a.status="cyclic";a.value=null;a.reason=null;try{var g=JSON.parse(c,a._response._fromJSON);if(null!==V&&0<V.deps)V.value=g,a.status="blocked",a.value=null,a.reason=null;else{var h=a.value;a.status="fulfilled";a.value=g;null!==h&&Q(h,g)}}catch(l){a.status="rejected",a.reason=l}finally{U=b,V=d}}
27
+ function P(a){try{var b=a.value,d=x.get(b.specifier);if("fulfilled"===d.status)var c=d.value;else throw d.reason;var g="*"===b.name?c:""===b.name?c.default:c[b.name];a.status="fulfilled";a.value=g}catch(h){a.status="rejected",a.reason=h}}function W(a,b){a._chunks.forEach(function(d){"pending"===d.status&&S(d,b)})}function X(a,b){var d=a._chunks,c=d.get(b);c||(c=new N("pending",null,null,a),d.set(b,c));return c}
28
+ function oa(a,b,d,c){if(V){var g=V;c||g.deps++}else g=V={deps:c?0:1,value:null};return function(h){b[d]=h;g.deps--;0===g.deps&&"blocked"===a.status&&(h=a.value,a.status="fulfilled",a.value=g.value,null!==h&&Q(h,g.value))}}function pa(a){return function(b){return S(a,b)}}
29
+ function qa(a,b){function d(){var g=Array.prototype.slice.call(arguments),h=b.bound;return h?"fulfilled"===h.status?c(b.id,h.value.concat(g)):Promise.resolve(h).then(function(l){return c(b.id,l.concat(g))}):c(b.id,g)}var c=a._callServer;L(d,b);return d}function Y(a,b){a=X(a,b);switch(a.status){case "resolved_model":O(a)}switch(a.status){case "fulfilled":return a.value;default:throw a.reason;}}
30
+ function ra(a,b,d,c){if("$"===c[0]){if("$"===c)return B;switch(c[1]){case "$":return c.slice(1);case "L":return b=parseInt(c.slice(2),16),a=X(a,b),{$$typeof:F,_payload:a,_init:na};case "@":return b=parseInt(c.slice(2),16),X(a,b);case "S":return Symbol.for(c.slice(2));case "P":return a=c.slice(2),M[a]||(b={$$typeof:D,_currentValue:G,_currentValue2:G,_defaultValue:G,_threadCount:0,Provider:null,Consumer:null,_globalName:a},b.Provider={$$typeof:C,_context:b},M[a]=b),M[a].Provider;case "F":return b=parseInt(c.slice(2),
31
+ 16),b=Y(a,b),qa(a,b);case "Q":return b=parseInt(c.slice(2),16),a=Y(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Y(a,b),new Set(a);case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=X(a,c);switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":case "cyclic":return c=
32
+ U,a.then(oa(c,b,d,"cyclic"===a.status),pa(c)),null;default:throw a.reason;}}}return c}function sa(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ta(a,b,d,c){var g=new Map;a={_bundlerConfig:a,_moduleLoading:b,_callServer:void 0!==d?d:sa,_nonce:c,_chunks:g,_stringDecoder:new p.TextDecoder,_fromJSON:null,_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]};a._fromJSON=ua(a);return a}
33
+ function va(a,b,d){var c=a._chunks,g=c.get(b);d=JSON.parse(d,a._fromJSON);var h=w(a._bundlerConfig,d);z(a._moduleLoading,d[1],a._nonce);if(d=y(h)){if(g){var l=g;l.status="blocked"}else l=new N("blocked",null,null,a),c.set(b,l);d.then(function(){return T(l,h)},function(k){return S(l,k)})}else g?T(g,h):c.set(b,new N("resolved_module",h,null,a))}
34
+ function ua(a){return function(b,d){return"string"===typeof d?ra(a,this,b,d):"object"===typeof d&&null!==d?(b=d[0]===B?{$$typeof:B,type:d[1],key:d[2],ref:null,props:d[3],_owner:null}:d,b):d}}function Z(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
35
+ exports.createFromNodeStream=function(a,b,d){var c=ta(b.moduleMap,b.moduleLoading,Z,d&&"string"===typeof d.nonce?d.nonce:void 0);a.on("data",function(g){for(var h=0,l=c._rowState,k=c._rowID,e=c._rowTag,f=c._rowLength,t=c._buffer,E=g.length;h<E;){var m=-1;switch(l){case 0:m=g[h++];58===m?l=1:k=k<<4|(96<m?m-87:m-48);continue;case 1:l=g[h];84===l?(e=l,l=2,h++):64<l&&91>l?(e=l,l=3,h++):(e=0,l=3);continue;case 2:m=g[h++];44===m?l=4:f=f<<4|(96<m?m-87:m-48);continue;case 3:m=g.indexOf(10,h);break;case 4:m=
36
+ h+f,m>g.length&&(m=-1)}var n=g.byteOffset+h;if(-1<m){f=new Uint8Array(g.buffer,n,m-h);h=e;n=c._stringDecoder;e="";for(var q=0;q<t.length;q++)e+=n.decode(t[q],v);e+=n.decode(f);switch(h){case 73:va(c,k,e);break;case 72:k=e[0];e=e.slice(1);e=JSON.parse(e,c._fromJSON);if(f=A.current)switch(k){case "D":f.prefetchDNS(e);break;case "C":"string"===typeof e?f.preconnect(e):f.preconnect(e[0],e[1]);break;case "L":k=e[0];h=e[1];3===e.length?f.preload(k,h,e[2]):f.preload(k,h);break;case "m":"string"===typeof e?
37
+ f.preloadModule(e):f.preloadModule(e[0],e[1]);break;case "S":"string"===typeof e?f.preinitStyle(e):f.preinitStyle(e[0],0===e[1]?void 0:e[1],3===e.length?e[2]:void 0);break;case "X":"string"===typeof e?f.preinitScript(e):f.preinitScript(e[0],e[1]);break;case "M":"string"===typeof e?f.preinitModuleScript(e):f.preinitModuleScript(e[0],e[1])}break;case 69:e=JSON.parse(e);f=e.digest;e=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.");
38
+ e.stack="Error: "+e.message;e.digest=f;f=c._chunks;(h=f.get(k))?S(h,e):f.set(k,new N("rejected",null,e,c));break;case 84:c._chunks.set(k,new N("fulfilled",e,null,c));break;default:f=c._chunks,(h=f.get(k))?(k=h,"pending"===k.status&&(f=k.value,h=k.reason,k.status="resolved_model",k.value=e,null!==f&&(O(k),R(k,f,h)))):f.set(k,new N("resolved_model",e,null,c))}h=m;3===l&&h++;f=k=e=l=0;t.length=0}else{g=new Uint8Array(g.buffer,n,g.byteLength-h);t.push(g);f-=g.byteLength;break}}c._rowState=l;c._rowID=
39
+ k;c._rowTag=e;c._rowLength=f});a.on("error",function(g){W(c,g)});a.on("end",function(){W(c,Error("Connection closed."))});return X(c,0)};exports.createServerReference=function(a){return ma(a,Z)};
40
40
 
41
41
  //# sourceMappingURL=react-server-dom-webpack-client.node.unbundled.production.min.js.map