react-server-dom-webpack 18.3.0-next-fa4314841-20230502 → 19.0.0-beta-4508873393-20240430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-server-dom-webpack-client.browser.development.js +1893 -1200
- package/cjs/react-server-dom-webpack-client.browser.production.js +931 -0
- package/cjs/react-server-dom-webpack-client.edge.development.js +1888 -241
- package/cjs/react-server-dom-webpack-client.edge.production.js +1093 -0
- package/cjs/react-server-dom-webpack-client.node.development.js +1876 -259
- package/cjs/react-server-dom-webpack-client.node.production.js +1070 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +1833 -212
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +1049 -0
- package/cjs/react-server-dom-webpack-node-register.js +59 -10
- package/cjs/react-server-dom-webpack-plugin.js +389 -11
- package/cjs/react-server-dom-webpack-server.browser.development.js +2187 -937
- package/cjs/react-server-dom-webpack-server.browser.production.js +1935 -0
- package/cjs/react-server-dom-webpack-server.edge.development.js +2183 -941
- package/cjs/react-server-dom-webpack-server.edge.production.js +1956 -0
- package/cjs/react-server-dom-webpack-server.node.development.js +2169 -929
- package/cjs/react-server-dom-webpack-server.node.production.js +2083 -0
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +2116 -881
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +2051 -0
- package/client.browser.js +1 -1
- package/client.edge.js +1 -1
- package/client.node.js +1 -1
- package/client.node.unbundled.js +1 -1
- package/esm/{react-server-dom-webpack-node-loader.production.min.js → react-server-dom-webpack-node-loader.production.js} +20 -13
- package/package.json +8 -15
- package/server.browser.js +1 -1
- package/server.edge.js +1 -1
- package/server.node.js +1 -1
- package/server.node.unbundled.js +1 -1
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +0 -34
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +0 -28
- package/cjs/react-server-dom-webpack-client.node.production.min.js +0 -28
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +0 -26
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +0 -62
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +0 -62
- package/cjs/react-server-dom-webpack-server.node.production.min.js +0 -67
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +0 -65
- package/umd/react-server-dom-webpack-client.browser.development.js +0 -1731
- package/umd/react-server-dom-webpack-client.browser.production.min.js +0 -29
- package/umd/react-server-dom-webpack-server.browser.development.js +0 -2904
- package/umd/react-server-dom-webpack-server.browser.production.min.js +0 -51
@@ -1,62 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-server.edge.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var aa=require("react"),ba=require("react-dom"),l=null,m=0;function n(a,b){if(0!==b.length)if(512<b.length)0<m&&(a.enqueue(new Uint8Array(l.buffer,0,m)),l=new Uint8Array(512),m=0),a.enqueue(b);else{var d=l.length-m;d<b.length&&(0===d?a.enqueue(l):(l.set(b.subarray(0,d),m),a.enqueue(l),b=b.subarray(d)),l=new Uint8Array(512),m=0);l.set(b,m);m+=b.length}return!0}var p=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var q=JSON.stringify;
|
11
|
-
function da(a,b,d){a=q(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function t(a,b,d){a=q(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}var u=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),ka={prefetchDNS:fa,preconnect:ha,preload:ia,preinit:ja};function fa(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?A(d,"D",[a,b]):A(d,"D",a),B(d))}}}
|
12
|
-
function ha(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?A(d,"C",[a,b]):A(d,"C",a),B(d))}}}function ia(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),A(d,"L",[a,b]),B(d))}}}
|
13
|
-
function ja(a,b){if("string"===typeof a){var d=v();if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),A(d,"I",[a,b]),B(d))}}}
|
14
|
-
var ma=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,C="function"===typeof AsyncLocalStorage,na=C?new AsyncLocalStorage:null,D=Symbol.for("react.element"),oa=Symbol.for("react.fragment"),pa=Symbol.for("react.provider"),qa=Symbol.for("react.server_context"),ra=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),ta=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),va=Symbol.for("react.default_value"),wa=Symbol.for("react.memo_cache_sentinel"),
|
15
|
-
xa=Symbol.iterator,F=null;function G(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");G(a,d);b.context._currentValue=b.value}}}function ya(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ya(a)}
|
16
|
-
function za(a){var b=a.parent;null!==b&&za(b);a.context._currentValue=a.value}function Aa(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?G(a,b):Aa(a,b)}
|
17
|
-
function Ba(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?G(a,d):Ba(a,d);b.context._currentValue=b.value}function H(a){var b=F;b!==a&&(null===b?za(a):null===a?ya(b):b.depth===a.depth?G(b,a):b.depth>a.depth?Aa(b,a):Ba(b,a),F=a)}function Ca(a,b){var d=a._currentValue;a._currentValue=b;var c=F;return F=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var I=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
18
|
-
function Da(){}function Ea(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Da,Da),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}J=b;throw I;}}var J=null;
|
19
|
-
function Fa(){if(null===J)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=J;J=null;return a}var K=null,L=0,M=null;function Ga(){var a=M;M=null;return a}function Ha(a){return a._currentValue}
|
20
|
-
var La={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:N,useTransition:N,readContext:Ha,useContext:Ha,useReducer:N,useRef:N,useState:N,useInsertionEffect:N,useLayoutEffect:N,useImperativeHandle:N,useEffect:N,useId:Ia,useMutableSource:N,useSyncExternalStore:N,useCacheRefresh:function(){return Ja},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=wa;return b},use:Ka};
|
21
|
-
function N(){throw Error("This Hook is not supported in Server Components.");}function Ja(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ia(){if(null===K)throw Error("useId can only be used while React is rendering");var a=K.identifierCount++;return":"+K.identifierPrefix+"S"+a.toString(32)+":"}
|
22
|
-
function Ka(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=L;L+=1;null===M&&(M=[]);return Ea(M,a,b)}if(a.$$typeof===qa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ma(){return(new AbortController).signal}function Na(){var a=v();return a?a.cache:new Map}
|
23
|
-
var Oa={getCacheSignal:function(){var a=Na(),b=a.get(Ma);void 0===b&&(b=Ma(),a.set(Ma,b));return b},getCacheForType:function(a){var b=Na(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Pa=Array.isArray;function Qa(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
24
|
-
function Ra(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Pa(a))return"[...]";a=Qa(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
25
|
-
function O(a){if("string"===typeof a)return a;switch(a){case sa:return"Suspense";case ta:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ra:return O(a.render);case ua:return O(a.type);case E:var b=a._payload;a=a._init;try{return O(a(b))}catch(d){}}return""}
|
26
|
-
function P(a,b){var d=Qa(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Pa(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?P(g):Ra(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===D)e="<"+O(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?P(k):
|
27
|
-
Ra(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Sa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ta=Sa.ContextRegistry,Ua=Sa.ReactCurrentDispatcher,Va=Sa.ReactCurrentCache;function Wa(a){console.error(a)}
|
28
|
-
function Xa(a,b,d,c,e){if(null!==Va.current&&Va.current!==Oa)throw Error("Currently React only supports one RSC renderer at a time.");ma.current=ka;Va.current=Oa;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
29
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Wa:d,toJSON:function(r,w){return Ya(k,this,r,w)}};k.pendingChunks++;b=Za(c);a=$a(k,a,b,f);g.push(a);return k}var Q=null;function v(){if(Q)return Q;if(C){var a=na.getStore();if(a)return a}return null}var ab={};
|
30
|
-
function bb(a,b){a.pendingChunks++;var d=$a(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,cb(a,d),d.id;case "rejected":var c=R(a,b.reason);S(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;cb(a,d)},function(e){d.status=4;e=R(a,e);S(a,d.id,e);null!==a.destination&&
|
31
|
-
T(a,a.destination)});return d.id}function db(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function eb(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:E,_payload:a,_init:db}}
|
32
|
-
function U(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===u)return[D,b,d,e];L=0;M=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:eb(e):e}if("string"===typeof b)return[D,b,d,e];if("symbol"===typeof b)return b===oa?e.children:[D,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===u)return[D,b,d,e];switch(b.$$typeof){case E:var g=
|
33
|
-
b._init;b=g(b._payload);return U(a,b,d,c,e,f);case ra:return a=b.render,L=0,M=f,a(e,void 0);case ua:return U(a,b.type,d,c,e,f);case pa:return Ca(b._context,e.value),[D,b,d,{value:e.value,children:e.children,__pop:ab}]}}throw Error("Unsupported Server Component type: "+Ra(b));}function cb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setTimeout(function(){return fb(a)},0))}
|
34
|
-
function $a(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return cb(a,e)},thenableState:null};c.add(e);return e}
|
35
|
-
function gb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===D&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var r=h[k];if(r)g=r.name;else{var w=k.lastIndexOf("#");-1!==w&&(g=k.slice(w+1),r=h[k.slice(0,w)]);if(!r)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 x={id:r.id,chunks:r.chunks,name:g,
|
36
|
-
async:!!c.$$async};a.pendingChunks++;var y=a.nextChunkId++,la=q(x),z=y.toString(16)+":I"+la+"\n";var qb=p.encode(z);a.completedImportChunks.push(qb);f.set(e,y);return b[0]===D&&"1"===d?"$L"+y.toString(16):"$"+y.toString(16)}catch(rb){return a.pendingChunks++,b=a.nextChunkId++,d=R(a,rb),S(a,b,d),"$"+b.toString(16)}}
|
37
|
-
function Ya(a,b,d,c){switch(c){case D:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===D||c.$$typeof===E);)try{switch(c.$$typeof){case D:var e=c;c=U(a,e.type,e.key,e.ref,e.props,null);break;case E:var f=c._init;c=f(c._payload)}}catch(g){d=g===I?Fa():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=$a(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ga(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=R(a,d);S(a,c,d);return"$L"+
|
38
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===u)return gb(a,b,d,c);if("function"===typeof c.then)return"$@"+bb(a,c).toString(16);if(c.$$typeof===pa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=t(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===ab){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
|
39
|
-
c===va?a.context._defaultValue:c;F=a.parent;return}return!Pa(c)&&(null===c||"object"!==typeof c?a=null:(a=xa&&c[xa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";
|
40
|
-
if("function"===typeof c){if(c.$$typeof===u)return gb(a,b,d,c);if(c.$$typeof===ea)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=da(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+P(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
|
41
|
-
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+P(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+P(b,d));a.pendingChunks++;d=a.nextChunkId++;b=
|
42
|
-
t(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+P(b,d));}
|
43
|
-
function R(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)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 b+'" instead');return b||""}function hb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
|
44
|
-
function S(a,b,d){d={digest:d};b=b.toString(16)+":E"+q(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function A(a,b,d){var c=a.nextChunkId++;d=q(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)}
|
45
|
-
function fb(a){var b=Ua.current;Ua.current=La;var d=Q;K=Q=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){H(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===D){var k=h,r=f.thenableState;f.model=h;h=U(g,k.type,k.key,k.ref,k.props,r);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===D;)k=h,f.model=h,h=U(g,k.type,k.key,k.ref,k.props,null)}var w=da(g,f.id,h);g.completedJSONChunks.push(w);g.abortableTasks.delete(f);
|
46
|
-
f.status=1}catch(z){var x=z===I?Fa():z;if("object"===typeof x&&null!==x&&"function"===typeof x.then){var y=f.ping;x.then(y,y);f.thenableState=Ga()}else{g.abortableTasks.delete(f);f.status=4;var la=R(g,x);S(g,f.id,la)}}}}null!==a.destination&&T(a,a.destination)}catch(z){R(a,z),hb(a,z)}finally{Ua.current=b,K=null,Q=d}}
|
47
|
-
function T(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&&
|
48
|
-
b.close()}function ib(a){a.flushScheduled=null!==a.destination;C?setTimeout(function(){return na.run(a,fb,a)},0):setTimeout(function(){return fb(a)},0)}function B(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return T(a,b)},0)}}
|
49
|
-
function jb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=R(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;S(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=t(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&T(a,a.destination)}catch(f){R(a,f),hb(a,f)}}
|
50
|
-
function Za(a){if(a){var b=F;H(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Ta[e]||(Ta[e]=aa.createServerContext(e,va));Ca(Ta[e],c)}a=F;H(b);return a}return null}function kb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)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{id:c.id,chunks:c.chunks,name:d,async:!1}}
|
51
|
-
var V=new Map,lb=new Map;function mb(){}
|
52
|
-
function nb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=V.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=V.set.bind(V,e,null);f.then(g,mb);V.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=lb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});lb.set(a.id,h);return h}return 0<d.length?Promise.all(d):
|
53
|
-
null}function ob(a){if(a.async){var b=lb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
|
54
|
-
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":pb(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 sb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
55
|
-
function tb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&sb(d,b)}}function ub(a,b,d,c,e,f){var g=kb(a._bundlerConfig,b);a=nb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=ob(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return ob(g)});else return ob(g);d.then(vb(c,e,f),wb(c));return null}var X=null,Y=null;
|
56
|
-
function pb(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function xb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&tb(d,b)})}
|
57
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function vb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&sb(e,c.value))}}function wb(a){return function(b){return tb(a,b)}}
|
58
|
-
function yb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&pb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ub(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;
|
59
|
-
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=Z(a,c);switch(a.status){case "resolved_model":pb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(vb(c,b,d),wb(c)),null;default:throw a.reason;}}return c}
|
60
|
-
function zb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?yb(e,this,f,g):g}};return e}exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=zb(b,"",a);xb(a,Error("Connection closed."));return Z(a,0)};
|
61
|
-
exports.renderToReadableStream=function(a,b,d){var c=Xa(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)jb(c,e.reason);else{var f=function(){jb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){ib(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=g;try{T(c,g)}catch(h){R(c,h),
|
62
|
-
hb(c,h)}}},cancel:function(){}},{highWaterMark:0})};
|
@@ -1,67 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-server.node.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var aa=require("async_hooks"),ba=require("util"),ca=require("react"),da=require("react-dom"),l=null,m=0,p=!0;function r(a,b){a=a.write(b);p=p&&a}
|
11
|
-
function t(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,v.encode(b));else{var d=l;0<m&&(d=l.subarray(m));d=v.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=v.encodeInto(b.slice(c),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(d=l.length-m,d<b.byteLength&&
|
12
|
-
(0===d?r(a,l):(l.set(b.subarray(0,d),m),m+=d,r(a,l),b=b.subarray(d)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return p}var v=new ba.TextEncoder,w=JSON.stringify;function ea(a,b,d){a=w(d,a.toJSON);return b.toString(16)+":"+a+"\n"}function fa(a,b,d){a=w(d);return b.toString(16)+":"+a+"\n"}var x=Symbol.for("react.client.reference"),ha=Symbol.for("react.server.reference"),ma={prefetchDNS:ia,preconnect:ja,preload:ka,preinit:la};
|
13
|
-
function ia(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?B(d,"D",[a,b]):B(d,"D",a),C(d))}}}function ja(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?B(d,"C",[a,b]):B(d,"C",a),C(d))}}}
|
14
|
-
function ka(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),B(d,"L",[a,b]),C(d))}}}function la(a,b){if("string"===typeof a){var d=y();if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),B(d,"I",[a,b]),C(d))}}}
|
15
|
-
var oa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,pa=new aa.AsyncLocalStorage,D=Symbol.for("react.element"),qa=Symbol.for("react.fragment"),ra=Symbol.for("react.provider"),sa=Symbol.for("react.server_context"),ta=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),va=Symbol.for("react.suspense_list"),wa=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),xa=Symbol.for("react.default_value"),ya=Symbol.for("react.memo_cache_sentinel"),za=Symbol.iterator,F=null;
|
16
|
-
function G(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");G(a,d);b.context._currentValue=b.value}}}function Aa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&Aa(a)}
|
17
|
-
function Ba(a){var b=a.parent;null!==b&&Ba(b);a.context._currentValue=a.value}function Ca(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?G(a,b):Ca(a,b)}
|
18
|
-
function Da(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?G(a,d):Da(a,d);b.context._currentValue=b.value}function Ea(a){var b=F;b!==a&&(null===b?Ba(a):null===a?Aa(b):b.depth===a.depth?G(b,a):b.depth>a.depth?Ca(b,a):Da(b,a),F=a)}function Fa(a,b){var d=a._currentValue;a._currentValue=b;var c=F;return F=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Ga=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
19
|
-
function Ha(){}function Ia(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ha,Ha),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}H=b;throw Ga;}}var H=null;
|
20
|
-
function Ja(){if(null===H)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=H;H=null;return a}var I=null,J=0,K=null;function Ka(){var a=K;K=null;return a}function La(a){return a._currentValue}
|
21
|
-
var Pa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:La,useContext:La,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Ma,useMutableSource:L,useSyncExternalStore:L,useCacheRefresh:function(){return Na},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=ya;return b},use:Oa};
|
22
|
-
function L(){throw Error("This Hook is not supported in Server Components.");}function Na(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ma(){if(null===I)throw Error("useId can only be used while React is rendering");var a=I.identifierCount++;return":"+I.identifierPrefix+"S"+a.toString(32)+":"}
|
23
|
-
function Oa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=J;J+=1;null===K&&(K=[]);return Ia(K,a,b)}if(a.$$typeof===sa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Qa(){return(new AbortController).signal}function Ra(){var a=y();return a?a.cache:new Map}
|
24
|
-
var Sa={getCacheSignal:function(){var a=Ra(),b=a.get(Qa);void 0===b&&(b=Qa(),a.set(Qa,b));return b},getCacheForType:function(a){var b=Ra(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ta=Array.isArray;function Ua(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
25
|
-
function Va(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ta(a))return"[...]";a=Ua(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
26
|
-
function M(a){if("string"===typeof a)return a;switch(a){case ua:return"Suspense";case va:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ta:return M(a.render);case wa:return M(a.type);case E:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
|
27
|
-
function N(a,b){var d=Ua(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ta(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?N(g):Va(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===D)e="<"+M(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var h=f[g],k=JSON.stringify(h);e+=('"'+h+'"'===k?h:k)+": ";k=a[h];k="object"===typeof k&&null!==k?N(k):
|
28
|
-
Va(k);h===b?(d=e.length,c=k.length,e+=k):e=10>k.length&&40>e.length+k.length?e+k:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Wa=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xa=Wa.ContextRegistry,Ya=Wa.ReactCurrentDispatcher,Za=Wa.ReactCurrentCache;function $a(a){console.error(a)}
|
29
|
-
function ab(a,b,d,c,e){if(null!==Za.current&&Za.current!==Sa)throw Error("Currently React only supports one RSC renderer at a time.");oa.current=ma;Za.current=Sa;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
30
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?$a:d,toJSON:function(q,u){return bb(k,this,q,u)}};k.pendingChunks++;b=cb(c);a=db(k,a,b,f);g.push(a);return k}var O=null;function y(){if(O)return O;var a=pa.getStore();return a?a:null}var eb={};
|
31
|
-
function fb(a,b){a.pendingChunks++;var d=db(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,gb(a,d),d.id;case "rejected":var c=P(a,b.reason);Q(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;gb(a,d)},function(e){d.status=4;e=P(a,e);Q(a,d.id,e);null!==a.destination&&
|
32
|
-
R(a,a.destination)});return d.id}function hb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function ib(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:E,_payload:a,_init:hb}}
|
33
|
-
function S(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===x)return[D,b,d,e];J=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:ib(e):e}if("string"===typeof b)return[D,b,d,e];if("symbol"===typeof b)return b===qa?e.children:[D,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===x)return[D,b,d,e];switch(b.$$typeof){case E:var g=
|
34
|
-
b._init;b=g(b._payload);return S(a,b,d,c,e,f);case ta:return a=b.render,J=0,K=f,a(e,void 0);case wa:return S(a,b.type,d,c,e,f);case ra:return Fa(b._context,e.value),[D,b,d,{value:e.value,children:e.children,__pop:eb}]}}throw Error("Unsupported Server Component type: "+Va(b));}function gb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return jb(a)}))}
|
35
|
-
function db(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return gb(a,e)},thenableState:null};c.add(e);return e}
|
36
|
-
function kb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===D&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var q=h[k];if(q)g=q.name;else{var u=k.lastIndexOf("#");-1!==u&&(g=k.slice(u+1),q=h[k.slice(0,u)]);if(!q)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 n={id:q.id,chunks:q.chunks,name:g,
|
37
|
-
async:!!c.$$async};a.pendingChunks++;var z=a.nextChunkId++,na=w(n);var A=z.toString(16)+":I"+na+"\n";a.completedImportChunks.push(A);f.set(e,z);return b[0]===D&&"1"===d?"$L"+z.toString(16):"$"+z.toString(16)}catch(wb){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,wb),Q(a,b,d),"$"+b.toString(16)}}
|
38
|
-
function bb(a,b,d,c){switch(c){case D:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===D||c.$$typeof===E);)try{switch(c.$$typeof){case D:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case E:var f=c._init;c=f(c._payload)}}catch(g){d=g===Ga?Ja():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=db(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ka(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+
|
39
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===x)return kb(a,b,d,c);if("function"===typeof c.then)return"$@"+fb(a,c).toString(16);if(c.$$typeof===ra)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=fa(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===eb){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;
|
40
|
-
a.context._currentValue=c===xa?a.context._defaultValue:c;F=a.parent;return}return!Ta(c)&&(null===c||"object"!==typeof c?a=null:(a=za&&c[za]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===
|
41
|
-
typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===x)return kb(a,b,d,c);if(c.$$typeof===ha)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ea(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
|
42
|
-
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=
|
43
|
-
fa(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}
|
44
|
-
function P(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)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 b+'" instead');return b||""}function lb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
45
|
-
function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+w(d)+"\n";a.completedErrorChunks.push(b)}function B(a,b,d){var c=a.nextChunkId++;d=w(d);b="H"+b;c=c.toString(16)+":"+b;a.completedHintChunks.push(c+d+"\n")}
|
46
|
-
function jb(a){var b=Ya.current;Ya.current=Pa;var d=O;I=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){Ea(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===D){var k=h,q=f.thenableState;f.model=h;h=S(g,k.type,k.key,k.ref,k.props,q);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===D;)k=h,f.model=h,h=S(g,k.type,k.key,k.ref,k.props,null)}var u=ea(g,f.id,h);g.completedJSONChunks.push(u);g.abortableTasks.delete(f);
|
47
|
-
f.status=1}catch(A){var n=A===Ga?Ja():A;if("object"===typeof n&&null!==n&&"function"===typeof n.then){var z=f.ping;n.then(z,z);f.thenableState=Ka()}else{g.abortableTasks.delete(f);f.status=4;var na=P(g,n);Q(g,f.id,na)}}}}null!==a.destination&&R(a,a.destination)}catch(A){P(a,A),lb(a,A)}finally{Ya.current=b,I=null,O=d}}
|
48
|
-
function R(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!t(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!t(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!t(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!t(b,g[c])){a.destination=
|
49
|
-
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,p=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function mb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return pa.run(a,jb,a)})}function C(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return R(a,b)})}}
|
50
|
-
function nb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{R(a,b)}catch(d){P(a,d),lb(a,d)}}}
|
51
|
-
function ob(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=P(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=fa(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(f){P(a,f),lb(a,f)}}
|
52
|
-
function cb(a){if(a){var b=F;Ea(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Xa[e]||(Xa[e]=ca.createServerContext(e,xa));Fa(Xa[e],c)}a=F;Ea(b);return a}return null}function pb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)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{id:c.id,chunks:c.chunks,name:d,async:!1}}
|
53
|
-
var T=new Map,qb=new Map;function rb(){}
|
54
|
-
function sb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=T.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=T.set.bind(T,e,null);f.then(g,rb);T.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=qb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});qb.set(a.id,h);return h}return 0<d.length?Promise.all(d):
|
55
|
-
null}function tb(a){if(a.async){var b=qb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function U(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}U.prototype=Object.create(Promise.prototype);
|
56
|
-
U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(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 W(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
57
|
-
function ub(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function vb(a,b,d,c,e,f){var g=pb(a._bundlerConfig,b);a=sb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=tb(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return tb(g)});else return tb(g);d.then(xb(c,e,f),yb(c));return null}var X=null,Y=null;
|
58
|
-
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function zb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&ub(d,b)})}
|
59
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new U("resolved_model",c,null,a):new U("pending",null,null,a),d.set(b,c));return c}function xb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function yb(a){return function(b){return ub(a,b)}}
|
60
|
-
function Ab(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return vb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;case "-":return"$-0"===
|
61
|
-
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=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(xb(c,b,d),yb(c)),null;default:throw a.reason;}}return c}
|
62
|
-
function Bb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?Ab(e,this,f,g):g}};return e}
|
63
|
-
function Cb(a,b,d){a._formData.append(b,d);var c=a._prefix;if(b.startsWith(c)&&(a=a._chunks,b=+b.slice(c.length),(b=a.get(b))&&"pending"===b.status&&(c=b.value,a=b.reason,b.status="resolved_model",b.value=d,null!==c)))switch(V(b),b.status){case "fulfilled":W(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&W(a,b.reason)}}function Db(a){zb(a,Error("Connection closed."))}function Eb(a,b){return function(){return nb(b,a)}}
|
64
|
-
exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Bb(b,"",a);Db(a);return Z(a,0)};
|
65
|
-
exports.decodeReplyFromBusboy=function(a,b){var d=Bb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Cb(d,f,g)});a.on("file",function(f,g,h){var k=h.filename,q=h.mimeType;if("base64"===h.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");c++;var u=[];g.on("data",function(n){u.push(n)});g.on("end",function(){var n=
|
66
|
-
new Blob(u,{type:q});d._formData.append(f,n,k);c--;if(0===c){for(n=0;n<e.length;n+=2)Cb(d,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Db(d)});a.on("error",function(f){zb(d,f)});return Z(d,0)};
|
67
|
-
exports.renderToPipeableStream=function(a,b,d){var c=ab(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0),e=!1;mb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;nb(c,f);f.on("drain",Eb(f,c));return f},abort:function(f){ob(c,f)}}};
|
@@ -1,65 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-server.node.unbundled.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var aa=require("async_hooks"),ba=require("util"),ca=require("react"),da=require("react-dom"),l=null,m=0,p=!0;function r(a,b){a=a.write(b);p=p&&a}
|
11
|
-
function t(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,v.encode(b));else{var d=l;0<m&&(d=l.subarray(m));d=v.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=v.encodeInto(b.slice(c),l).written);2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(r(a,l.subarray(0,m)),l=new Uint8Array(2048),m=0),r(a,b)):(d=l.length-m,d<b.byteLength&&
|
12
|
-
(0===d?r(a,l):(l.set(b.subarray(0,d),m),m+=d,r(a,l),b=b.subarray(d)),l=new Uint8Array(2048),m=0),l.set(b,m),m+=b.byteLength,2048===m&&(r(a,l),l=new Uint8Array(2048),m=0)));return p}var v=new ba.TextEncoder,w=JSON.stringify;function ea(a,b,d){a=w(d,a.toJSON);return b.toString(16)+":"+a+"\n"}function x(a,b,d){a=w(d);return b.toString(16)+":"+a+"\n"}var y=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),la={prefetchDNS:ha,preconnect:ia,preload:ja,preinit:ka};
|
13
|
-
function ha(a,b){if("string"===typeof a){var d=B();if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?C(d,"D",[a,b]):C(d,"D",a),D(d))}}}function ia(a,b){if("string"===typeof a){var d=B();if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?C(d,"C",[a,b]):C(d,"C",a),D(d))}}}
|
14
|
-
function ja(a,b){if("string"===typeof a){var d=B();if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),C(d,"L",[a,b]),D(d))}}}function ka(a,b){if("string"===typeof a){var d=B();if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),C(d,"I",[a,b]),D(d))}}}
|
15
|
-
var na=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,oa=new aa.AsyncLocalStorage,E=Symbol.for("react.element"),pa=Symbol.for("react.fragment"),qa=Symbol.for("react.provider"),ra=Symbol.for("react.server_context"),sa=Symbol.for("react.forward_ref"),ta=Symbol.for("react.suspense"),ua=Symbol.for("react.suspense_list"),va=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),wa=Symbol.for("react.default_value"),xa=Symbol.for("react.memo_cache_sentinel"),ya=Symbol.iterator,G=null;
|
16
|
-
function H(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");H(a,d);b.context._currentValue=b.value}}}function za(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&za(a)}
|
17
|
-
function Aa(a){var b=a.parent;null!==b&&Aa(b);a.context._currentValue=a.value}function Ba(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?H(a,b):Ba(a,b)}
|
18
|
-
function Ca(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?H(a,d):Ca(a,d);b.context._currentValue=b.value}function Da(a){var b=G;b!==a&&(null===b?Aa(a):null===a?za(b):b.depth===a.depth?H(b,a):b.depth>a.depth?Ba(b,a):Ca(b,a),G=a)}function Ea(a,b){var d=a._currentValue;a._currentValue=b;var c=G;return G=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var Fa=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
19
|
-
function Ga(){}function Ha(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ga,Ga),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}I=b;throw Fa;}}var I=null;
|
20
|
-
function Ia(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}var J=null,K=0,L=null;function Ja(){var a=L;L=null;return a}function Ka(a){return a._currentValue}
|
21
|
-
var Oa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:M,useTransition:M,readContext:Ka,useContext:Ka,useReducer:M,useRef:M,useState:M,useInsertionEffect:M,useLayoutEffect:M,useImperativeHandle:M,useEffect:M,useId:La,useMutableSource:M,useSyncExternalStore:M,useCacheRefresh:function(){return Ma},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=xa;return b},use:Na};
|
22
|
-
function M(){throw Error("This Hook is not supported in Server Components.");}function Ma(){throw Error("Refreshing the cache is not supported in Server Components.");}function La(){if(null===J)throw Error("useId can only be used while React is rendering");var a=J.identifierCount++;return":"+J.identifierPrefix+"S"+a.toString(32)+":"}
|
23
|
-
function Na(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return Ha(L,a,b)}if(a.$$typeof===ra)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Pa(){return(new AbortController).signal}function Qa(){var a=B();return a?a.cache:new Map}
|
24
|
-
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(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Sa=Array.isArray;function Ta(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
25
|
-
function Ua(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Sa(a))return"[...]";a=Ta(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
26
|
-
function N(a){if("string"===typeof a)return a;switch(a){case ta:return"Suspense";case ua:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case sa:return N(a.render);case va:return N(a.type);case F:var b=a._payload;a=a._init;try{return N(a(b))}catch(d){}}return""}
|
27
|
-
function O(a,b){var d=Ta(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Sa(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?O(g):Ua(g);""+f===b?(d=e.length,c=g.length,e+=g):e=10>g.length&&40>e.length+g.length?e+g:e+"..."}e+="]"}else if(a.$$typeof===E)e="<"+N(a.type)+"/>";else{e="{";f=Object.keys(a);for(g=0;g<f.length;g++){0<g&&(e+=", ");var k=f[g],h=JSON.stringify(k);e+=('"'+k+'"'===h?k:h)+": ";h=a[k];h="object"===typeof h&&null!==h?O(h):
|
28
|
-
Ua(h);k===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Va=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wa=Va.ContextRegistry,Xa=Va.ReactCurrentDispatcher,Ya=Va.ReactCurrentCache;function Za(a){console.error(a)}
|
29
|
-
function $a(a,b,d,c,e){if(null!==Ya.current&&Ya.current!==Ra)throw Error("Currently React only supports one RSC renderer at a time.");na.current=la;Ya.current=Ra;var f=new Set,g=[],k=new Set,h={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
30
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Za:d,toJSON:function(q,u){return ab(h,this,q,u)}};h.pendingChunks++;b=bb(c);a=cb(h,a,b,f);g.push(a);return h}var P=null;function B(){if(P)return P;var a=oa.getStore();return a?a:null}var db={};
|
31
|
-
function eb(a,b){a.pendingChunks++;var d=cb(a,null,G,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,fb(a,d),d.id;case "rejected":var c=Q(a,b.reason);R(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;fb(a,d)},function(e){d.status=4;e=Q(a,e);R(a,d.id,e);null!==a.destination&&
|
32
|
-
S(a,a.destination)});return d.id}function gb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}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:F,_payload:a,_init:gb}}
|
33
|
-
function T(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===y)return[E,b,d,e];K=0;L=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:hb(e):e}if("string"===typeof b)return[E,b,d,e];if("symbol"===typeof b)return b===pa?e.children:[E,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===y)return[E,b,d,e];switch(b.$$typeof){case F:var g=
|
34
|
-
b._init;b=g(b._payload);return T(a,b,d,c,e,f);case sa:return a=b.render,K=0,L=f,a(e,void 0);case va:return T(a,b.type,d,c,e,f);case qa:return Ea(b._context,e.value),[E,b,d,{value:e.value,children:e.children,__pop:db}]}}throw Error("Unsupported Server Component type: "+Ua(b));}function fb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return ib(a)}))}
|
35
|
-
function cb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return fb(a,e)},thenableState:null};c.add(e);return e}
|
36
|
-
function jb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,f=a.writtenClientReferences,g=f.get(e);if(void 0!==g)return b[0]===E&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var k=a.bundlerConfig,h=c.$$id;g="";var q=k[h];if(q)g=q.name;else{var u=h.lastIndexOf("#");-1!==u&&(g=h.slice(u+1),q=k[h.slice(0,u)]);if(!q)throw Error('Could not find the module "'+h+'" in the React Client Manifest. This is probably a bug in the React Server Components bundler.');}var n={id:q.id,chunks:q.chunks,name:g,
|
37
|
-
async:!!c.$$async};a.pendingChunks++;var z=a.nextChunkId++,ma=w(n);var A=z.toString(16)+":I"+ma+"\n";a.completedImportChunks.push(A);f.set(e,z);return b[0]===E&&"1"===d?"$L"+z.toString(16):"$"+z.toString(16)}catch(vb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,vb),R(a,b,d),"$"+b.toString(16)}}
|
38
|
-
function ab(a,b,d,c){switch(c){case E:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===E||c.$$typeof===F);)try{switch(c.$$typeof){case E:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case F:var f=c._init;c=f(c._payload)}}catch(g){d=g===Fa?Ia():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=cb(a,c,G,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Ja(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+
|
39
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===y)return jb(a,b,d,c);if("function"===typeof c.then)return"$@"+eb(a,c).toString(16);if(c.$$typeof===qa)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=x(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===db){a=G;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
|
40
|
-
c===wa?a.context._defaultValue:c;G=a.parent;return}return!Sa(c)&&(null===c||"object"!==typeof c?a=null:(a=ya&&c[ya]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";
|
41
|
-
if("function"===typeof c){if(c.$$typeof===y)return jb(a,b,d,c);if(c.$$typeof===fa)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=ea(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+O(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
|
42
|
-
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+O(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+O(b,d));a.pendingChunks++;d=a.nextChunkId++;b=
|
43
|
-
x(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+O(b,d));}
|
44
|
-
function Q(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)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 b+'" instead');return b||""}function kb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
45
|
-
function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+w(d)+"\n";a.completedErrorChunks.push(b)}function C(a,b,d){var c=a.nextChunkId++;d=w(d);b="H"+b;c=c.toString(16)+":"+b;a.completedHintChunks.push(c+d+"\n")}
|
46
|
-
function ib(a){var b=Xa.current;Xa.current=Oa;var d=P;J=P=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];var g=a;if(0===f.status){Da(f.context);try{var k=f.model;if("object"===typeof k&&null!==k&&k.$$typeof===E){var h=k,q=f.thenableState;f.model=k;k=T(g,h.type,h.key,h.ref,h.props,q);for(f.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===E;)h=k,f.model=k,k=T(g,h.type,h.key,h.ref,h.props,null)}var u=ea(g,f.id,k);g.completedJSONChunks.push(u);g.abortableTasks.delete(f);
|
47
|
-
f.status=1}catch(A){var n=A===Fa?Ia():A;if("object"===typeof n&&null!==n&&"function"===typeof n.then){var z=f.ping;n.then(z,z);f.thenableState=Ja()}else{g.abortableTasks.delete(f);f.status=4;var ma=Q(g,n);R(g,f.id,ma)}}}}null!==a.destination&&S(a,a.destination)}catch(A){Q(a,A),kb(a,A)}finally{Xa.current=b,J=null,P=d}}
|
48
|
-
function S(a,b){l=new Uint8Array(2048);m=0;p=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!t(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!t(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!t(b,f[c])){a.destination=null;c++;break}f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)if(a.pendingChunks--,!t(b,g[c])){a.destination=
|
49
|
-
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,p=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function lb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return oa.run(a,ib,a)})}function D(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setImmediate(function(){return S(a,b)})}}
|
50
|
-
function mb(a,b){if(1===a.status)a.status=2,b.destroy(a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=b;try{S(a,b)}catch(d){Q(a,d),kb(a,d)}}}
|
51
|
-
function nb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=Q(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;R(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=x(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(f){Q(a,f),kb(a,f)}}
|
52
|
-
function bb(a){if(a){var b=G;Da(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Wa[e]||(Wa[e]=ca.createServerContext(e,wa));Ea(Wa[e],c)}a=G;Da(b);return a}return null}function ob(a,b){var d=b.lastIndexOf("#");a=b.slice(0,d);b=b.slice(d+1);return{specifier:a,name:b}}var pb=new Map;
|
53
|
-
function qb(a){var b=pb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var d=import(a.specifier);d.then(function(c){d.status="fulfilled";d.value=c},function(c){d.status="rejected";d.reason=c});pb.set(a.specifier,d);return d}function rb(a){var b=pb.get(a.specifier);if("fulfilled"===b.status)b=b.value;else throw b.reason;return"*"===a.name?b:""===a.name?b.default:b[a.name]}function U(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}U.prototype=Object.create(Promise.prototype);
|
54
|
-
U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(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 W(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
55
|
-
function sb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function tb(a,b,d,c,e,f){var g=ob(a._bundlerConfig,b);a=qb(g);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var h=rb(g);return h.bind.apply(h,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return rb(g)});else return rb(g);d.then(ub(c,e,f),wb(c));return null}var X=null,Y=null;
|
56
|
-
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function xb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&sb(d,b)})}
|
57
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new U("resolved_model",c,null,a):new U("pending",null,null,a),d.set(b,c));return c}function ub(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function wb(a){return function(b){return sb(a,b)}}
|
58
|
-
function yb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return tb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,k){k.startsWith(e)&&f.append(k.slice(e.length),g)});return f;case "I":return Infinity;case "-":return"$-0"===
|
59
|
-
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=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(ub(c,b,d),wb(c)),null;default:throw a.reason;}}return c}
|
60
|
-
function zb(a,b){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new FormData,c=new Map,e={_bundlerConfig:a,_prefix:b,_formData:d,_chunks:c,_fromJSON:function(f,g){return"string"===typeof g?yb(e,this,f,g):g}};return e}
|
61
|
-
function Ab(a,b,d){a._formData.append(b,d);var c=a._prefix;if(b.startsWith(c)&&(a=a._chunks,b=+b.slice(c.length),(b=a.get(b))&&"pending"===b.status&&(c=b.value,a=b.reason,b.status="resolved_model",b.value=d,null!==c)))switch(V(b),b.status){case "fulfilled":W(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&W(a,b.reason)}}function Bb(a){xb(a,Error("Connection closed."))}function Cb(a,b){return function(){return mb(b,a)}}
|
62
|
-
exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=zb(b,"",a);Bb(a);return Z(a,0)};
|
63
|
-
exports.decodeReplyFromBusboy=function(a,b){var d=zb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Ab(d,f,g)});a.on("file",function(f,g,k){var h=k.filename,q=k.mimeType;if("base64"===k.encoding.toLowerCase())throw Error("React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.");c++;var u=[];g.on("data",function(n){u.push(n)});g.on("end",function(){var n=
|
64
|
-
new Blob(u,{type:q});d._formData.append(f,n,h);c--;if(0===c){for(n=0;n<e.length;n+=2)Ab(d,e[n],e[n+1]);e.length=0}})});a.on("finish",function(){Bb(d)});a.on("error",function(f){xb(d,f)});return Z(d,0)};
|
65
|
-
exports.renderToPipeableStream=function(a,b,d){var c=$a(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0),e=!1;lb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;mb(c,f);f.on("drain",Cb(f,c));return f},abort:function(f){nb(c,f)}}};
|