react-server-dom-webpack 19.0.0-canary-48ec17b86-20240402 → 19.0.0-canary-fd0da3eef-20240404

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 (37) hide show
  1. package/cjs/react-server-dom-webpack-client.browser.development.js +13 -5
  2. package/cjs/react-server-dom-webpack-client.browser.production.js +1 -3
  3. package/cjs/react-server-dom-webpack-client.browser.production.min.js +1 -2
  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 +13 -5
  6. package/cjs/react-server-dom-webpack-client.edge.production.js +1 -3
  7. package/cjs/react-server-dom-webpack-client.edge.production.min.js +1 -1
  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 +13 -5
  10. package/cjs/react-server-dom-webpack-client.node.production.js +1 -3
  11. package/cjs/react-server-dom-webpack-client.node.production.min.js +1 -1
  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 +13 -5
  14. package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +1 -3
  15. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +1 -1
  16. package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js.map +1 -1
  17. package/cjs/react-server-dom-webpack-server.browser.development.js +74 -25
  18. package/cjs/react-server-dom-webpack-server.browser.production.js +73 -26
  19. package/cjs/react-server-dom-webpack-server.browser.production.min.js +46 -45
  20. package/cjs/react-server-dom-webpack-server.browser.production.min.js.map +1 -1
  21. package/cjs/react-server-dom-webpack-server.edge.development.js +74 -25
  22. package/cjs/react-server-dom-webpack-server.edge.production.js +73 -26
  23. package/cjs/react-server-dom-webpack-server.edge.production.min.js +32 -31
  24. package/cjs/react-server-dom-webpack-server.edge.production.min.js.map +1 -1
  25. package/cjs/react-server-dom-webpack-server.node.development.js +74 -25
  26. package/cjs/react-server-dom-webpack-server.node.production.js +73 -26
  27. package/cjs/react-server-dom-webpack-server.node.production.min.js +33 -31
  28. package/cjs/react-server-dom-webpack-server.node.production.min.js.map +1 -1
  29. package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +74 -25
  30. package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +73 -26
  31. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +33 -31
  32. package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js.map +1 -1
  33. package/package.json +3 -3
  34. package/umd/react-server-dom-webpack-client.browser.development.js +13 -5
  35. package/umd/react-server-dom-webpack-client.browser.production.min.js +4 -4
  36. package/umd/react-server-dom-webpack-server.browser.development.js +74 -25
  37. package/umd/react-server-dom-webpack-server.browser.production.min.js +50 -50
@@ -992,10 +992,6 @@ function use(usable) {
992
992
  }
993
993
  }
994
994
 
995
- function createSignal() {
996
- return new AbortController().signal;
997
- }
998
-
999
995
  function resolveCache() {
1000
996
  const request = resolveRequest();
1001
997
 
@@ -1007,18 +1003,6 @@ function resolveCache() {
1007
1003
  }
1008
1004
 
1009
1005
  const DefaultCacheDispatcher = {
1010
- getCacheSignal() {
1011
- const cache = resolveCache();
1012
- let entry = cache.get(createSignal);
1013
-
1014
- if (entry === undefined) {
1015
- entry = createSignal();
1016
- cache.set(createSignal, entry);
1017
- }
1018
-
1019
- return entry;
1020
- },
1021
-
1022
1006
  getCacheForType(resourceType) {
1023
1007
  const cache = resolveCache();
1024
1008
  let entry = cache.get(resourceType);
@@ -1512,15 +1496,68 @@ function renderFunctionComponent(request, task, key, Component, props) {
1512
1496
 
1513
1497
  function renderFragment(request, task, children) {
1514
1498
 
1515
- {
1516
- return children;
1517
- }
1499
+ if (task.keyPath !== null) {
1500
+ // We have a Server Component that specifies a key but we're now splitting
1501
+ // the tree using a fragment.
1502
+ const fragment = [REACT_ELEMENT_TYPE, REACT_FRAGMENT_TYPE, task.keyPath, {
1503
+ children
1504
+ }];
1505
+
1506
+ if (!task.implicitSlot) {
1507
+ // If this was keyed inside a set. I.e. the outer Server Component was keyed
1508
+ // then we need to handle reorders of the whole set. To do this we need to wrap
1509
+ // this array in a keyed Fragment.
1510
+ return fragment;
1511
+ } // If the outer Server Component was implicit but then an inner one had a key
1512
+ // we don't actually need to be able to move the whole set around. It'll always be
1513
+ // in an implicit slot. The key only exists to be able to reset the state of the
1514
+ // children. We could achieve the same effect by passing on the keyPath to the next
1515
+ // set of components inside the fragment. This would also allow a keyless fragment
1516
+ // reconcile against a single child.
1517
+ // Unfortunately because of JSON.stringify, we can't call the recursive loop for
1518
+ // each child within this context because we can't return a set with already resolved
1519
+ // values. E.g. a string would get double encoded. Returning would pop the context.
1520
+ // So instead, we wrap it with an unkeyed fragment and inner keyed fragment.
1521
+
1522
+
1523
+ return [fragment];
1524
+ } // Since we're yielding here, that implicitly resets the keyPath context on the
1525
+ // way up. Which is what we want since we've consumed it. If this changes to
1526
+ // be recursive serialization, we need to reset the keyPath and implicitSlot,
1527
+ // before recursing here.
1528
+
1529
+
1530
+ return children;
1518
1531
  }
1519
1532
 
1520
1533
  function renderClientElement(task, type, key, props) {
1521
- {
1522
- return [REACT_ELEMENT_TYPE, type, key, props];
1523
- } // We prepend the terminal client element that actually gets serialized with
1534
+ // the keys of any Server Components which are not serialized.
1535
+
1536
+
1537
+ const keyPath = task.keyPath;
1538
+
1539
+ if (key === null) {
1540
+ key = keyPath;
1541
+ } else if (keyPath !== null) {
1542
+ key = keyPath + ',' + key;
1543
+ }
1544
+
1545
+ const element = [REACT_ELEMENT_TYPE, type, key, props];
1546
+
1547
+ if (task.implicitSlot && key !== null) {
1548
+ // The root Server Component had no key so it was in an implicit slot.
1549
+ // If we had a key lower, it would end up in that slot with an explicit key.
1550
+ // We wrap the element in a fragment to give it an implicit key slot with
1551
+ // an inner explicit key.
1552
+ return [element];
1553
+ } // Since we're yielding here, that implicitly resets the keyPath context on the
1554
+ // way up. Which is what we want since we've consumed it. If this changes to
1555
+ // be recursive serialization, we need to reset the keyPath and implicitSlot,
1556
+ // before recursing here. We also need to reset it once we render into an array
1557
+ // or anything else too which we also get implicitly.
1558
+
1559
+
1560
+ return element;
1524
1561
  } // The chunk ID we're currently rendering that we can assign debug data to.
1525
1562
 
1526
1563
 
@@ -1612,7 +1649,7 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
1612
1649
  if (typeof model === 'object' && model !== null) {
1613
1650
  // If we're about to write this into a new task we can assign it an ID early so that
1614
1651
  // any other references can refer to the value we're about to write.
1615
- {
1652
+ if ((keyPath !== null || implicitSlot)) ; else {
1616
1653
  request.writtenObjects.set(model, id);
1617
1654
  }
1618
1655
  }
@@ -1921,7 +1958,7 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
1921
1958
  const existingId = writtenObjects.get(value);
1922
1959
 
1923
1960
  if (existingId !== undefined) {
1924
- if (modelRoot === value) {
1961
+ if ((task.keyPath !== null || task.implicitSlot)) ; else if (modelRoot === value) {
1925
1962
  // This is the ID we're currently emitting so we need to write it
1926
1963
  // once but if we discover it again, we refer to it by id.
1927
1964
  modelRoot = null;
@@ -1956,7 +1993,11 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
1956
1993
  let ref;
1957
1994
 
1958
1995
  {
1959
- ref = element.ref;
1996
+ // TODO: This is a temporary, intermediate step. Once the feature
1997
+ // flag is removed, we should get the ref off the props object right
1998
+ // before using it.
1999
+ const refProp = props.ref;
2000
+ ref = refProp !== undefined ? refProp : null;
1960
2001
  } // Attempt to render the Server Component.
1961
2002
 
1962
2003
 
@@ -1987,7 +2028,13 @@ function renderModelDestructive(request, task, parent, parentPropertyName, value
1987
2028
 
1988
2029
  if (typeof value.then === 'function') {
1989
2030
  if (existingId !== undefined) {
1990
- if (modelRoot === value) {
2031
+ if ((task.keyPath !== null || task.implicitSlot)) {
2032
+ // If we're in some kind of context we can't reuse the result of this render or
2033
+ // previous renders of this element. We only reuse Promises if they're not wrapped
2034
+ // by another Server Component.
2035
+ const promiseId = serializeThenable(request, task, value);
2036
+ return serializePromiseID(promiseId);
2037
+ } else if (modelRoot === value) {
1991
2038
  // This is the ID we're currently emitting so we need to write it
1992
2039
  // once but if we discover it again, we refer to it by id.
1993
2040
  modelRoot = null;
@@ -8,11 +8,11 @@
8
8
  LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  'use strict';var aa=require("react-dom"),ba=require("react"),l=null,n=0;function p(a,b){if(0!==b.byteLength)if(2048<b.byteLength)0<n&&(a.enqueue(new Uint8Array(l.buffer,0,n)),l=new Uint8Array(2048),n=0),a.enqueue(b);else{var c=l.length-n;c<b.byteLength&&(0===c?a.enqueue(l):(l.set(b.subarray(0,c),n),a.enqueue(l),b=b.subarray(c)),l=new Uint8Array(2048),n=0);l.set(b,n);n+=b.byteLength}return!0}var q=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}
11
- var r=Symbol.for("react.client.reference"),t=Symbol.for("react.server.reference");function u(a,b,c){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:b},$$async:{value:c}})}var da=Function.prototype.bind,ea=Array.prototype.slice;function fa(){var a=da.apply(this,arguments);if(this.$$typeof===t){var b=ea.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:fa}})}return a}
11
+ var r=Symbol.for("react.client.reference"),t=Symbol.for("react.server.reference");function v(a,b,c){return Object.defineProperties(a,{$$typeof:{value:r},$$id:{value:b},$$async:{value:c}})}var da=Function.prototype.bind,ea=Array.prototype.slice;function fa(){var a=da.apply(this,arguments);if(this.$$typeof===t){var b=ea.call(arguments,1);return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:this.$$id},$$bound:{value:this.$$bound?this.$$bound.concat(b):b},bind:{value:fa}})}return a}
12
12
  var ha=Promise.prototype,ia={get:function(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "displayName":return;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "Provider":throw Error("Cannot render a Client Context Provider on the Server. Instead, you can export a Client Component wrapper that itself renders a Client Context Provider.");
13
13
  }throw Error("Cannot access "+(String(a.name)+"."+String(b))+" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.");},set:function(){throw Error("Cannot assign to a client module from a server module.");}};
14
- function ja(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=u(function(){throw Error("Attempted to call the default export of "+c+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
15
- },a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=u({},a.$$id,!0),e=new Proxy(d,ka);a.status="fulfilled";a.value=e;return a.then=u(function(g){return Promise.resolve(g(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=u(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
14
+ function ja(a,b){switch(b){case "$$typeof":return a.$$typeof;case "$$id":return a.$$id;case "$$async":return a.$$async;case "name":return a.name;case "defaultProps":return;case "toJSON":return;case Symbol.toPrimitive:return Object.prototype[Symbol.toPrimitive];case Symbol.toStringTag:return Object.prototype[Symbol.toStringTag];case "__esModule":var c=a.$$id;a.default=v(function(){throw Error("Attempted to call the default export of "+c+" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
15
+ },a.$$id+"#",a.$$async);return!0;case "then":if(a.then)return a.then;if(a.$$async)return;var d=v({},a.$$id,!0),e=new Proxy(d,ka);a.status="fulfilled";a.value=e;return a.then=v(function(g){return Promise.resolve(g(e))},a.$$id+"#then",!1)}if("symbol"===typeof b)throw Error("Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.");d=a[b];d||(d=v(function(){throw Error("Attempted to call "+String(b)+"() from the server but "+String(b)+" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.");
16
16
  },a.$$id+"#"+b,a.$$async),Object.defineProperty(d,"name",{value:b}),d=a[b]=new Proxy(d,ia));return d}
17
17
  var ka={get:function(a,b){return ja(a,b)},getOwnPropertyDescriptor:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c||(c={value:ja(a,b),writable:!1,configurable:!1,enumerable:!1},Object.defineProperty(a,b,c));return c},getPrototypeOf:function(){return ha},set:function(){throw Error("Cannot assign to a client module from a server module.");}},la=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMCurrentDispatcher,w=la.current;
18
18
  la.current={prefetchDNS:ma,preconnect:na,preload:oa,preloadModule:pa,preinitStyle:qa,preinitScript:ra,preinitModuleScript:sa};function ma(a){if("string"===typeof a&&a){var b=x?x:null;if(b){var c=b.hints,d="D|"+a;c.has(d)||(c.add(d),z(b,"D",a))}else w.prefetchDNS(a)}}function na(a,b){if("string"===typeof a){var c=x?x:null;if(c){var d=c.hints,e="C|"+(null==b?"null":b)+"|"+a;d.has(e)||(d.add(e),"string"===typeof b?z(c,"C",[a,b]):z(c,"C",a))}else w.preconnect(a,b)}}
@@ -27,54 +27,55 @@ function Fa(){}function Ga(a,b,c){c=a[c];void 0===c?a.push(b):c!==b&&(b.then(Fa,
27
27
  function Ha(){if(null===E)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=E;E=null;return a}var F=null,Ia=0,G=null;function Ja(){var a=G||[];G=null;return a}
28
28
  var Oa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:H,useTransition:H,readContext:Ka,useContext:Ka,useReducer:H,useRef:H,useState:H,useInsertionEffect:H,useLayoutEffect:H,useImperativeHandle:H,useEffect:H,useId:La,useSyncExternalStore:H,useCacheRefresh:function(){return Ma},useMemoCache:function(a){for(var b=Array(a),c=0;c<a;c++)b[c]=Ca;return b},use:Na};
29
29
  function H(){throw Error("This Hook is not supported in Server Components.");}function Ma(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ka(){throw Error("Cannot read a Client Context from a Server Component.");}function La(){if(null===F)throw Error("useId can only be used while React is rendering");var a=F.identifierCount++;return":"+F.identifierPrefix+"S"+a.toString(32)+":"}
30
- function Na(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ia;Ia+=1;null===G&&(G=[]);return Ga(G,a,b)}a.$$typeof===xa&&Ka()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===xa)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}function Pa(){return(new AbortController).signal}
31
- function Qa(){var a=x?x:null;return a?a.cache:new Map}var Ra={getCacheSignal:function(){var a=Qa(),b=a.get(Pa);void 0===b&&(b=Pa(),a.set(Pa,b));return b},getCacheForType:function(a){var b=Qa(),c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Sa=Array.isArray,Ta=Object.getPrototypeOf;function Ua(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
32
- function Va(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Sa(a))return"[...]";if(null!==a&&a.$$typeof===Wa)return"client";a=Ua(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Wa?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
33
- function I(a){if("string"===typeof a)return a;switch(a){case za:return"Suspense";case Aa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ya:return I(a.render);case Ba:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Wa=Symbol.for("react.client.reference");
34
- function J(a,b){var c=Ua(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Sa(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var f=a[g];f="object"===typeof f&&null!==f?J(f):Va(f);""+g===b?(c=e.length,d=f.length,e+=f):e=10>f.length&&40>e.length+f.length?e+f:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+I(a.type)+"/>";else{if(a.$$typeof===Wa)return"client";e="{";g=Object.keys(a);for(f=0;f<g.length;f++){0<f&&(e+=", ");var h=g[f],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k=
35
- "object"===typeof k&&null!==k?J(k):Va(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Xa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ya=ba.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36
- if(!Ya)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var Za=Object.prototype,K=JSON.stringify,$a=Ya.ReactCurrentCache,ab=Xa.ReactCurrentDispatcher;function bb(a){console.error(a)}function cb(){}
37
- function db(a,b,c,d,e){if(null!==$a.current&&$a.current!==Ra)throw Error("Currently React only supports one RSC renderer at a time.");$a.current=Ra;var g=new Set,f=[],h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
38
- writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?bb:c,onPostpone:void 0===e?cb:e};a=L(b,a,null,!1,g);f.push(a);return b}var x=null;
39
- function eb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,fb(a,d),d.id;case "rejected":return b=M(a,c.reason),N(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;fb(a,d)},function(e){d.status=4;e=M(a,e);N(a,d.id,e);a.abortableTasks.delete(d);
40
- null!==a.destination&&O(a,a.destination)});return d.id}function z(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination&&(c=a.destination,a.flushScheduled=!0,O(a,c))}function gb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
41
- function hb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:gb}}
42
- function ib(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;Ia=0;G=g;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=hb(d)}e=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=P(a,b,Q,"",d);b.keyPath=e;b.implicitSlot=g;return a}
43
- function jb(a,b,c,d,e,g){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===r||c.$$typeof===ta?[B,c,d,g]:ib(a,b,d,c,g);if("string"===typeof c)return[B,c,d,g];if("symbol"===typeof c)return c===wa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=P(a,b,Q,"",g.children),b.implicitSlot=d,a):[B,c,d,g];if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return[B,c,d,g];switch(c.$$typeof){case D:var f=
44
- c._init;c=f(c._payload);return jb(a,b,c,d,e,g);case ya:return ib(a,b,d,c.render,g);case Ba:return jb(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+Va(c));}function fb(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,kb(a))}
45
- function L(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"===typeof b&&null!==b&&a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return fb(a,f)},toJSON:function(h,k){var m=f.keyPath,y=f.implicitSlot;try{var v=P(a,f,this,h,k)}catch(Y){if(h=Y===Ea?Ha():Y,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===B||k.$$typeof===D),"object"===typeof h&&null!==h&&"function"===typeof h.then){v=L(a,f.model,f.keyPath,f.implicitSlot,a.abortableTasks);
46
- var C=v.ping;h.then(C,C);v.thenableState=Ja();f.keyPath=m;f.implicitSlot=y;v=k?"$L"+v.id.toString(16):R(v.id)}else if(f.keyPath=m,f.implicitSlot=y,k)a.pendingChunks++,m=a.nextChunkId++,y=M(a,h),N(a,m,y),v="$L"+m.toString(16);else throw h;}return v},thenableState:null};e.add(f);return f}function R(a){return"$"+a.toString(16)}function lb(a,b,c){a=K(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
47
- function mb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,f=g.get(e);if(void 0!==f)return b[0]===B&&"1"===c?"$L"+f.toString(16):R(f);try{var h=a.bundlerConfig,k=d.$$id;f="";var m=h[k];if(m)f=m.name;else{var y=k.lastIndexOf("#");-1!==y&&(f=k.slice(y+1),m=h[k.slice(0,y)]);if(!m)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var v=!0===d.$$async?[m.id,m.chunks,f,1]:[m.id,m.chunks,
48
- f];a.pendingChunks++;var C=a.nextChunkId++,Y=K(v),Fb=C.toString(16)+":I"+Y+"\n",Gb=q.encode(Fb);a.completedImportChunks.push(Gb);g.set(e,C);return b[0]===B&&"1"===c?"$L"+C.toString(16):R(C)}catch(Hb){return a.pendingChunks++,b=a.nextChunkId++,c=M(a,Hb),N(a,b,c),R(b)}}function S(a,b){b=L(a,b,null,!1,a.abortableTasks);nb(a,b);return b.id}var T=!1;
49
- function P(a,b,c,d,e){b.model=e;if(e===B)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case B:c=a.writtenObjects;d=c.get(e);if(void 0!==d)if(T===e)T=null;else return-1===d?(a=S(a,e),R(a)):R(d);else c.set(e,-1),c.set(e.props,-2);return jb(a,b,e.type,e.key,e.ref,e.props);case D:return b.thenableState=null,c=e._init,e=c(e._payload),P(a,b,Q,"",e)}if(e.$$typeof===r)return mb(a,c,d,e);c=a.writtenObjects;d=c.get(e);if("function"===typeof e.then){if(void 0!==d)if(T===e)T=null;
50
- else return"$@"+d.toString(16);a=eb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(T===e)T=null;else{if(-1===d)return a=S(a,e),R(a);if(-2!==d)return R(d)}else c.set(e,-1);if(Sa(e))return e;if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+S(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,
51
- void 0===d.get(c)&&d.set(c,-1));return"$W"+S(a,e).toString(16)}null===e||"object"!==typeof e?a=null:(a=Da&&e[Da]||e["@@iterator"],a="function"===typeof a?a:null);if(a)return a=Array.from(e),a;a=Ta(e);if(a!==Za&&(null===a||null!==Ta(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=
52
- 2,b=a.nextChunkId++,e=q.encode(e),c=e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=q.encode(c),a.completedRegularChunks.push(c,e),R(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";if("function"===typeof e){if(e.$$typeof===r)return mb(a,c,d,e);if(e.$$typeof===t)return b=a.writtenServerReferences,
53
- c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=S(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===ta)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(c,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.'+
54
- J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var g=b.get(e);if(void 0!==g)return R(g);g=e.description;if(Symbol.for(g)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=lb(a,c,"$S"+g);a.completedImportChunks.push(d);b.set(e,c);return R(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
30
+ function Na(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ia;Ia+=1;null===G&&(G=[]);return Ga(G,a,b)}a.$$typeof===xa&&Ka()}if(a.$$typeof===r){if(null!=a.value&&a.value.$$typeof===xa)throw Error("Cannot read a Client Context from a Server Component.");throw Error("Cannot use() an already resolved Client Reference.");}throw Error("An unsupported type was passed to use(): "+String(a));}
31
+ var Pa={getCacheForType:function(a){var b=(b=x?x:null)?b.cache:new Map;var c=b.get(a);void 0===c&&(c=a(),b.set(a,c));return c}},Qa=Array.isArray,Ra=Object.getPrototypeOf;function Sa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,c){return c})}
32
+ function Ta(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Qa(a))return"[...]";if(null!==a&&a.$$typeof===Ua)return"client";a=Sa(a);return"Object"===a?"{...}":a;case "function":return a.$$typeof===Ua?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}
33
+ function I(a){if("string"===typeof a)return a;switch(a){case za:return"Suspense";case Aa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ya:return I(a.render);case Ba:return I(a.type);case D:var b=a._payload;a=a._init;try{return I(a(b))}catch(c){}}return""}var Ua=Symbol.for("react.client.reference");
34
+ function J(a,b){var c=Sa(a);if("Object"!==c&&"Array"!==c)return c;c=-1;var d=0;if(Qa(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var f=a[g];f="object"===typeof f&&null!==f?J(f):Ta(f);""+g===b?(c=e.length,d=f.length,e+=f):e=10>f.length&&40>e.length+f.length?e+f:e+"..."}e+="]"}else if(a.$$typeof===B)e="<"+I(a.type)+"/>";else{if(a.$$typeof===Ua)return"client";e="{";g=Object.keys(a);for(f=0;f<g.length;f++){0<f&&(e+=", ");var h=g[f],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k=
35
+ "object"===typeof k&&null!==k?J(k):Ta(k);h===b?(c=e.length,d=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<c&&0<d?(a=" ".repeat(c)+"^".repeat(d),"\n "+e+"\n "+a):"\n "+e}var Va=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wa=ba.__SECRET_SERVER_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
36
+ if(!Wa)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');var Xa=Object.prototype,K=JSON.stringify,Ya=Wa.ReactCurrentCache,Za=Va.ReactCurrentDispatcher;function $a(a){console.error(a)}function ab(){}
37
+ function bb(a,b,c,d,e){if(null!==Ya.current&&Ya.current!==Pa)throw Error("Currently React only supports one RSC renderer at a time.");Ya.current=Pa;var g=new Set,f=[],h=new Set;b={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:g,pingedTasks:f,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,
38
+ writtenObjects:new WeakMap,identifierPrefix:d||"",identifierCount:1,taintCleanupQueue:[],onError:void 0===c?$a:c,onPostpone:void 0===e?ab:e};a=L(b,a,null,!1,g);f.push(a);return b}var x=null;
39
+ function cb(a,b,c){var d=L(a,null,b.keyPath,b.implicitSlot,a.abortableTasks);switch(c.status){case "fulfilled":return d.model=c.value,db(a,d),d.id;case "rejected":return b=M(a,c.reason),N(a,d.id,b),d.id;default:"string"!==typeof c.status&&(c.status="pending",c.then(function(e){"pending"===c.status&&(c.status="fulfilled",c.value=e)},function(e){"pending"===c.status&&(c.status="rejected",c.reason=e)}))}c.then(function(e){d.model=e;db(a,d)},function(e){d.status=4;e=M(a,e);N(a,d.id,e);a.abortableTasks.delete(d);
40
+ null!==a.destination&&O(a,a.destination)});return d.id}function z(a,b,c){c=K(c);var d=a.nextChunkId++;b="H"+b;b=d.toString(16)+":"+b;c=q.encode(b+c+"\n");a.completedHintChunks.push(c);!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination&&(c=a.destination,a.flushScheduled=!0,O(a,c))}function eb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
41
+ function fb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:eb}}
42
+ function gb(a,b,c,d,e){var g=b.thenableState;b.thenableState=null;Ia=0;G=g;d=d(e,void 0);if("object"===typeof d&&null!==d&&"function"===typeof d.then){e=d;if("fulfilled"===e.status)return e.value;d=fb(d)}e=b.keyPath;g=b.implicitSlot;null!==c?b.keyPath=null===e?c:e+","+c:null===e&&(b.implicitSlot=!0);a=P(a,b,Q,"",d);b.keyPath=e;b.implicitSlot=g;return a}function hb(a,b,c){return null!==b.keyPath?(a=[B,wa,b.keyPath,{children:c}],b.implicitSlot?[a]:a):c}
43
+ function R(a,b,c,d){var e=a.keyPath;null===c?c=e:null!==e&&(c=e+","+c);b=[B,b,c,d];return a.implicitSlot&&null!==c?[b]:b}
44
+ function ib(a,b,c,d,e,g){if(null!==e&&void 0!==e)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof c)return c.$$typeof===r||c.$$typeof===ta?R(b,c,d,g):gb(a,b,d,c,g);if("string"===typeof c)return R(b,c,d,g);if("symbol"===typeof c)return c===wa&&null===d?(d=b.implicitSlot,null===b.keyPath&&(b.implicitSlot=!0),a=P(a,b,Q,"",g.children),b.implicitSlot=d,a):R(b,c,d,g);if(null!=c&&"object"===typeof c){if(c.$$typeof===r)return R(b,c,d,g);switch(c.$$typeof){case D:var f=
45
+ c._init;c=f(c._payload);return ib(a,b,c,d,e,g);case ya:return gb(a,b,d,c.render,g);case Ba:return ib(a,b,c.type,d,e,g)}}throw Error("Unsupported Server Component type: "+Ta(c));}function db(a,b){var c=a.pingedTasks;c.push(b);1===c.length&&(a.flushScheduled=null!==a.destination,jb(a))}
46
+ function L(a,b,c,d,e){a.pendingChunks++;var g=a.nextChunkId++;"object"!==typeof b||null===b||null!==c||d||a.writtenObjects.set(b,g);var f={id:g,status:0,model:b,keyPath:c,implicitSlot:d,ping:function(){return db(a,f)},toJSON:function(h,k){var m=f.keyPath,y=f.implicitSlot;try{var u=P(a,f,this,h,k)}catch(Z){if(h=Z===Ea?Ha():Z,k=f.model,k="object"===typeof k&&null!==k&&(k.$$typeof===B||k.$$typeof===D),"object"===typeof h&&null!==h&&"function"===typeof h.then){u=L(a,f.model,f.keyPath,f.implicitSlot,a.abortableTasks);
47
+ var C=u.ping;h.then(C,C);u.thenableState=Ja();f.keyPath=m;f.implicitSlot=y;u=k?"$L"+u.id.toString(16):S(u.id)}else if(f.keyPath=m,f.implicitSlot=y,k)a.pendingChunks++,m=a.nextChunkId++,y=M(a,h),N(a,m,y),u="$L"+m.toString(16);else throw h;}return u},thenableState:null};e.add(f);return f}function S(a){return"$"+a.toString(16)}function kb(a,b,c){a=K(c);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
48
+ function lb(a,b,c,d){var e=d.$$async?d.$$id+"#async":d.$$id,g=a.writtenClientReferences,f=g.get(e);if(void 0!==f)return b[0]===B&&"1"===c?"$L"+f.toString(16):S(f);try{var h=a.bundlerConfig,k=d.$$id;f="";var m=h[k];if(m)f=m.name;else{var y=k.lastIndexOf("#");-1!==y&&(f=k.slice(y+1),m=h[k.slice(0,y)]);if(!m)throw Error('Could not find the module "'+k+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var u=!0===d.$$async?[m.id,m.chunks,f,1]:[m.id,m.chunks,
49
+ f];a.pendingChunks++;var C=a.nextChunkId++,Z=K(u),Fb=C.toString(16)+":I"+Z+"\n",Gb=q.encode(Fb);a.completedImportChunks.push(Gb);g.set(e,C);return b[0]===B&&"1"===c?"$L"+C.toString(16):S(C)}catch(Hb){return a.pendingChunks++,b=a.nextChunkId++,c=M(a,Hb),N(a,b,c),S(b)}}function T(a,b){b=L(a,b,null,!1,a.abortableTasks);mb(a,b);return b.id}var U=!1;
50
+ function P(a,b,c,d,e){b.model=e;if(e===B)return"$";if(null===e)return null;if("object"===typeof e){switch(e.$$typeof){case B:c=a.writtenObjects;d=c.get(e);if(void 0!==d){if(null===b.keyPath&&!b.implicitSlot)if(U===e)U=null;else return-1===d?(a=T(a,e),S(a)):S(d)}else c.set(e,-1),c.set(e.props,-2);c=e.props;d=c.ref;return ib(a,b,e.type,e.key,void 0!==d?d:null,c);case D:return b.thenableState=null,c=e._init,e=c(e._payload),P(a,b,Q,"",e)}if(e.$$typeof===r)return lb(a,c,d,e);c=a.writtenObjects;d=c.get(e);
51
+ if("function"===typeof e.then){if(void 0!==d){if(null!==b.keyPath||b.implicitSlot)return"$@"+cb(a,b,e).toString(16);if(U===e)U=null;else return"$@"+d.toString(16)}a=cb(a,b,e);c.set(e,a);return"$@"+a.toString(16)}if(void 0!==d)if(U===e)U=null;else{if(-1===d)return a=T(a,e),S(a);if(-2!==d)return S(d)}else c.set(e,-1);if(Qa(e))return hb(a,b,e);if(e instanceof Map){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b][0],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$Q"+
52
+ T(a,e).toString(16)}if(e instanceof Set){e=Array.from(e);for(b=0;b<e.length;b++)c=e[b],"object"===typeof c&&null!==c&&(d=a.writtenObjects,void 0===d.get(c)&&d.set(c,-1));return"$W"+T(a,e).toString(16)}null===e||"object"!==typeof e?c=null:(c=Da&&e[Da]||e["@@iterator"],c="function"===typeof c?c:null);if(c)return hb(a,b,Array.from(e));a=Ra(e);if(a!==Xa&&(null===a||null!==Ra(a)))throw Error("Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.");
53
+ return e}if("string"===typeof e){if("Z"===e[e.length-1]&&c[d]instanceof Date)return"$D"+e;if(1024<=e.length)return a.pendingChunks+=2,b=a.nextChunkId++,e=q.encode(e),c=e.byteLength,c=b.toString(16)+":T"+c.toString(16)+",",c=q.encode(c),a.completedRegularChunks.push(c,e),S(b);a="$"===e[0]?"$"+e:e;return a}if("boolean"===typeof e)return e;if("number"===typeof e)return Number.isFinite(e)?0===e&&-Infinity===1/e?"$-0":e:Infinity===e?"$Infinity":-Infinity===e?"$-Infinity":"$NaN";if("undefined"===typeof e)return"$undefined";
54
+ if("function"===typeof e){if(e.$$typeof===r)return lb(a,c,d,e);if(e.$$typeof===t)return b=a.writtenServerReferences,c=b.get(e),void 0!==c?a="$F"+c.toString(16):(c=e.$$bound,c={id:e.$$id,bound:c?Promise.resolve(c):null},a=T(a,c),b.set(e,a),a="$F"+a.toString(16)),a;if(e.$$typeof===ta)return"$T"+e.$$id;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+J(c,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it.'+
55
+ J(c,d));}if("symbol"===typeof e){b=a.writtenSymbols;var g=b.get(e);if(void 0!==g)return S(g);g=e.description;if(Symbol.for(g)!==e)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(e.description+") cannot be found among global symbols.")+J(c,d));a.pendingChunks++;c=a.nextChunkId++;d=kb(a,c,"$S"+g);a.completedImportChunks.push(d);b.set(e,c);return S(c)}if("bigint"===typeof e)return"$n"+e.toString(10);throw Error("Type "+typeof e+
55
56
  " is not supported in Client Component props."+J(c,d));}function M(a,b){var c=x;x=null;try{var d=a.onError;var e=d(b)}finally{x=c}if(null!=e&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e||""}
56
- function ob(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}function N(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}var Q={};
57
- function nb(a,b){if(0===b.status)try{T=b.model;var c=P(a,b,Q,"",b.model);T=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n",g=q.encode(e);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(m){var f=m===Ea?Ha():m;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h,h);b.thenableState=Ja()}else{a.abortableTasks.delete(b);b.status=4;var k=M(a,f);N(a,b.id,k)}}finally{}}
58
- function kb(a){var b=ab.current;ab.current=Oa;var c=x;F=x=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)nb(a,d[e]);null!==a.destination&&O(a,a.destination)}catch(g){M(a,g),ob(a,g)}finally{ab.current=b,F=null,x=c}}
57
+ function nb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}function N(a,b,c){c={digest:c};b=b.toString(16)+":E"+K(c)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}var Q={};
58
+ function mb(a,b){if(0===b.status)try{U=b.model;var c=P(a,b,Q,"",b.model);U=c;b.keyPath=null;b.implicitSlot=!1;var d="object"===typeof c&&null!==c?K(c,b.toJSON):K(c),e=b.id.toString(16)+":"+d+"\n",g=q.encode(e);a.completedRegularChunks.push(g);a.abortableTasks.delete(b);b.status=1}catch(m){var f=m===Ea?Ha():m;if("object"===typeof f&&null!==f&&"function"===typeof f.then){var h=b.ping;f.then(h,h);b.thenableState=Ja()}else{a.abortableTasks.delete(b);b.status=4;var k=M(a,f);N(a,b.id,k)}}finally{}}
59
+ function jb(a){var b=Za.current;Za.current=Oa;var c=x;F=x=a;try{var d=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<d.length;e++)mb(a,d[e]);null!==a.destination&&O(a,a.destination)}catch(g){M(a,g),nb(a,g)}finally{Za.current=b,F=null,x=c}}
59
60
  function O(a,b){l=new Uint8Array(2048);n=0;try{for(var c=a.completedImportChunks,d=0;d<c.length;d++)a.pendingChunks--,p(b,c[d]);c.splice(0,d);var e=a.completedHintChunks;for(d=0;d<e.length;d++)p(b,e[d]);e.splice(0,d);var g=a.completedRegularChunks;for(d=0;d<g.length;d++)a.pendingChunks--,p(b,g[d]);g.splice(0,d);var f=a.completedErrorChunks;for(d=0;d<f.length;d++)a.pendingChunks--,p(b,f[d]);f.splice(0,d)}finally{a.flushScheduled=!1,l&&0<n&&(b.enqueue(new Uint8Array(l.buffer,0,n)),l=null,n=0)}0===a.pendingChunks&&
60
- b.close()}function pb(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,g=M(a,e);N(a,d,g,e);c.forEach(function(f){f.status=3;var h=R(d);f=lb(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&O(a,a.destination)}catch(f){M(a,f),ob(a,f)}}
61
- function qb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return[d.id,d.chunks,c]}var U=new Map;
61
+ b.close()}function ob(a,b){try{var c=a.abortableTasks;if(0<c.size){a.pendingChunks++;var d=a.nextChunkId++,e=void 0===b?Error("The render was aborted by the server without a reason."):b,g=M(a,e);N(a,d,g,e);c.forEach(function(f){f.status=3;var h=S(d);f=kb(a,f.id,h);a.completedErrorChunks.push(f)});c.clear()}null!==a.destination&&O(a,a.destination)}catch(f){M(a,f),nb(a,f)}}
62
+ function pb(a,b){var c="",d=a[b];if(d)c=d.name;else{var e=b.lastIndexOf("#");-1!==e&&(c=b.slice(e+1),d=a[b.slice(0,e)]);if(!d)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return[d.id,d.chunks,c]}var qb=new Map;
62
63
  function rb(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 sb(){}
63
- function tb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++],g=b[d++],f=U.get(e);void 0===f?(ub.set(e,g),g=__webpack_chunk_load__(e),c.push(g),f=U.set.bind(U,e,null),g.then(f,sb),U.set(e,g)):null!==f&&c.push(f)}return 4===a.length?0===c.length?rb(a[0]):Promise.all(c).then(function(){return rb(a[0])}):0<c.length?Promise.all(c):null}
64
+ function tb(a){for(var b=a[1],c=[],d=0;d<b.length;){var e=b[d++],g=b[d++],f=qb.get(e);void 0===f?(ub.set(e,g),g=__webpack_chunk_load__(e),c.push(g),f=qb.set.bind(qb,e,null),g.then(f,sb),qb.set(e,g)):null!==f&&c.push(f)}return 4===a.length?0===c.length?rb(a[0]):Promise.all(c).then(function(){return rb(a[0])}):0<c.length?Promise.all(c):null}
64
65
  function V(a){var b=__webpack_require__(a[0]);if(4===a.length&&"function"===typeof b.then)if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a[2]?b:""===a[2]?b.__esModule?b.default:b:b[a[2]]}var ub=new Map,vb=__webpack_require__.u;__webpack_require__.u=function(a){var b=ub.get(a);return void 0!==b?b:vb(a)};function wb(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}wb.prototype=Object.create(Promise.prototype);
65
66
  wb.prototype.then=function(a,b){switch(this.status){case "resolved_model":xb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function yb(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}
66
- function zb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&yb(c,b)}}function Ab(a,b,c,d,e,g){var f=qb(a._bundlerConfig,b);a=tb(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=V(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return V(f)});else return V(f);c.then(Bb(d,e,g),Cb(d));return null}var W=null,X=null;
67
+ function zb(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&yb(c,b)}}function Ab(a,b,c,d,e,g){var f=pb(a._bundlerConfig,b);a=tb(f);if(c)c=Promise.all([c,a]).then(function(h){h=h[0];var k=V(f);return k.bind.apply(k,[null].concat(h))});else if(a)c=Promise.resolve(a).then(function(){return V(f)});else return V(f);c.then(Bb(d,e,g),Cb(d));return null}var W=null,X=null;
67
68
  function xb(a){var b=W,c=X;W=a;X=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==X&&0<X.deps?(X.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{W=b,X=c}}function Db(a,b){a._chunks.forEach(function(c){"pending"===c.status&&zb(c,b)})}
68
- function Z(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new wb("resolved_model",d,null,a):new wb("pending",null,null,a),c.set(b,d));return d}function Bb(a,b,c){if(X){var d=X;d.deps++}else d=X={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&yb(e,d.value))}}function Cb(a){return function(b){return zb(a,b)}}
69
- function Eb(a,b){a=Z(a,b);"resolved_model"===a.status&&xb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
70
- function Ib(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Z(a,b);case "F":return d=parseInt(d.slice(2),16),d=Eb(a,d),Ab(a,d.id,d.bound,W,b,c);case "T":return va(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Eb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Eb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,h){h.startsWith(e)&&g.append(h.slice(e.length),f)});return g;
71
- case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Z(a,d);switch(a.status){case "resolved_model":xb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=W,a.then(Bb(d,b,c),Cb(d)),null;default:throw a.reason;}}return d}
72
- function Jb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(g,f){return"string"===typeof f?Ib(e,this,g,f):f}};return e}function Kb(a){Db(a,Error("Connection closed."))}function Lb(a,b,c){var d=qb(a,b);a=tb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var g=V(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}
73
- function Mb(a,b,c){a=Jb(b,c,a);Kb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=u({},a,!1);return new Proxy(a,ka)};
69
+ function Y(a,b){var c=a._chunks,d=c.get(b);d||(d=a._formData.get(a._prefix+b),d=null!=d?new wb("resolved_model",d,null,a):new wb("pending",null,null,a),c.set(b,d));return d}function Bb(a,b,c){if(X){var d=X;d.deps++}else d=X={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&yb(e,d.value))}}function Cb(a){return function(b){return zb(a,b)}}
70
+ function Eb(a,b){a=Y(a,b);"resolved_model"===a.status&&xb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
71
+ function Ib(a,b,c,d){if("$"===d[0])switch(d[1]){case "$":return d.slice(1);case "@":return b=parseInt(d.slice(2),16),Y(a,b);case "F":return d=parseInt(d.slice(2),16),d=Eb(a,d),Ab(a,d.id,d.bound,W,b,c);case "T":return va(d.slice(2));case "Q":return b=parseInt(d.slice(2),16),a=Eb(a,b),new Map(a);case "W":return b=parseInt(d.slice(2),16),a=Eb(a,b),new Set(a);case "K":b=d.slice(2);var e=a._prefix+b+"_",g=new FormData;a._formData.forEach(function(f,h){h.startsWith(e)&&g.append(h.slice(e.length),f)});return g;
72
+ case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Y(a,d);switch(a.status){case "resolved_model":xb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=W,a.then(Bb(d,b,c),Cb(d)),null;default:throw a.reason;}}return d}
73
+ function Jb(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,d=new Map,e={_bundlerConfig:a,_prefix:b,_formData:c,_chunks:d,_fromJSON:function(g,f){return"string"===typeof f?Ib(e,this,g,f):f}};return e}function Kb(a){Db(a,Error("Connection closed."))}function Lb(a,b,c){var d=pb(a,b);a=tb(d);return c?Promise.all([c,a]).then(function(e){e=e[0];var g=V(d);return g.bind.apply(g,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(d)}):Promise.resolve(V(d))}
74
+ function Mb(a,b,c){a=Jb(b,c,a);Kb(a);a=Y(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,ka)};
74
75
  exports.decodeAction=function(a,b){var c=new FormData,d=null;a.forEach(function(e,g){g.startsWith("$ACTION_")?g.startsWith("$ACTION_REF_")?(e="$ACTION_"+g.slice(12)+":",e=Mb(a,b,e),d=Lb(b,e.id,e.bound)):g.startsWith("$ACTION_ID_")&&(e=g.slice(11),d=Lb(b,e,null)):c.append(g,e)});return null===d?null:d.then(function(e){return e.bind(null,c)})};
75
- exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(f,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",e=Mb(b,c,f))});if(null===e)return Promise.resolve(null);var g=e.id;return Promise.resolve(e.bound).then(function(f){return null===f?null:[a,d,g,f.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Jb(b,"",a);b=Z(a,0);Kb(a);return b};
76
- exports.registerClientReference=function(a,b,c){return u(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:fa,configurable:!0}})};
77
- exports.renderToReadableStream=function(a,b,c){var d=db(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)pb(d,e.reason);else{var g=function(){pb(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){d.flushScheduled=null!==d.destination;kb(d)},pull:function(f){if(1===d.status)d.status=2,ca(f,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=
78
- f;try{O(d,f)}catch(h){M(d,h),ob(d,h)}}},cancel:function(f){d.destination=null;pb(d,f)}},{highWaterMark:0})};
76
+ exports.decodeFormState=function(a,b,c){var d=b.get("$ACTION_KEY");if("string"!==typeof d)return Promise.resolve(null);var e=null;b.forEach(function(f,h){h.startsWith("$ACTION_REF_")&&(f="$ACTION_"+h.slice(12)+":",e=Mb(b,c,f))});if(null===e)return Promise.resolve(null);var g=e.id;return Promise.resolve(e.bound).then(function(f){return null===f?null:[a,d,g,f.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var c=new FormData;c.append("0",a);a=c}a=Jb(b,"",a);b=Y(a,0);Kb(a);return b};
77
+ exports.registerClientReference=function(a,b,c){return v(a,b+"#"+c,!1)};exports.registerServerReference=function(a,b,c){return Object.defineProperties(a,{$$typeof:{value:t},$$id:{value:null===c?b:b+"#"+c,configurable:!0},$$bound:{value:null,configurable:!0},bind:{value:fa,configurable:!0}})};
78
+ exports.renderToReadableStream=function(a,b,c){var d=bb(a,b,c?c.onError:void 0,c?c.identifierPrefix:void 0,c?c.onPostpone:void 0);if(c&&c.signal){var e=c.signal;if(e.aborted)ob(d,e.reason);else{var g=function(){ob(d,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){d.flushScheduled=null!==d.destination;jb(d)},pull:function(f){if(1===d.status)d.status=2,ca(f,d.fatalError);else if(2!==d.status&&null===d.destination){d.destination=
79
+ f;try{O(d,f)}catch(h){M(d,h),nb(d,h)}}},cancel:function(f){d.destination=null;ob(d,f)}},{highWaterMark:0})};
79
80
 
80
81
  //# sourceMappingURL=react-server-dom-webpack-server.browser.production.min.js.map