next 13.5.7 → 13.5.8
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/dist/bin/next +1 -1
- package/dist/build/index.js +1 -1
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack-config.js +2 -2
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.prod.js +14 -14
- package/dist/compiled/next-server/app-page-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +10 -10
- package/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-page-turbo.runtime.prod.js +11 -11
- package/dist/compiled/next-server/app-page-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-page.runtime.dev.js +1 -1
- package/dist/compiled/next-server/app-page.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-page.runtime.prod.js +8 -8
- package/dist/compiled/next-server/app-page.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.dev.js +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route-turbo-experimental.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route-turbo-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route.runtime.dev.js +1 -1
- package/dist/compiled/next-server/app-route.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-route.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js +3 -3
- package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
- package/dist/compiled/react/cjs/react.development.js +1 -1
- package/dist/compiled/react/cjs/react.production.min.js +1 -1
- package/dist/compiled/react/cjs/react.shared-subset.development.js +1 -1
- package/dist/compiled/react/cjs/react.shared-subset.production.min.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server-legacy.node.production.min.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server-rendering-stub.development.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server-rendering-stub.production.min.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server.browser.development.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server.browser.production.min.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server.edge.development.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server.edge.production.min.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server.node.development.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom-server.node.production.min.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom.development.js +1 -1
- package/dist/compiled/react-dom/cjs/react-dom.production.min.js +3 -3
- package/dist/compiled/react-dom/cjs/react-dom.profiling.min.js +3 -3
- package/dist/compiled/react-dom/package.json +2 -2
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.min.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server-rendering-stub.production.min.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.min.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-server.node.production.min.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.min.js +3 -3
- package/dist/compiled/react-dom-experimental/cjs/react-dom.development.js +1 -1
- package/dist/compiled/react-dom-experimental/cjs/react-dom.production.min.js +3 -3
- package/dist/compiled/react-dom-experimental/cjs/react-dom.profiling.min.js +3 -3
- package/dist/compiled/react-dom-experimental/package.json +2 -2
- package/dist/compiled/react-experimental/cjs/react.development.js +1 -1
- package/dist/compiled/react-experimental/cjs/react.production.min.js +1 -1
- package/dist/compiled/react-experimental/cjs/react.shared-subset.development.js +1 -1
- package/dist/compiled/react-experimental/cjs/react.shared-subset.production.min.js +1 -1
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +4 -4
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +10 -10
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +39 -39
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +36 -36
- package/dist/compiled/react-server-dom-turbopack/package.json +2 -2
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.production.min.js +10 -10
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.min.js +41 -41
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.min.js +47 -47
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +15 -1
- package/dist/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +44 -44
- package/dist/compiled/react-server-dom-turbopack-experimental/package.json +2 -2
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +4 -4
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.min.js +10 -10
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.production.min.js +39 -39
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +36 -36
- package/dist/compiled/react-server-dom-webpack/package.json +2 -2
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.browser.production.min.js +10 -10
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.edge.production.min.js +41 -41
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.production.min.js +47 -47
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.development.js +15 -1
- package/dist/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +44 -44
- package/dist/compiled/react-server-dom-webpack-experimental/package.json +2 -2
- package/dist/esm/build/index.js +1 -1
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack-config.js +2 -2
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/server/base-server.js +11 -4
- package/dist/esm/server/base-server.js.map +1 -1
- package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/future/helpers/i18n-provider.js +22 -0
- package/dist/esm/server/future/helpers/i18n-provider.js.map +1 -1
- package/dist/esm/server/lib/router-utils/resolve-routes.js +5 -0
- package/dist/esm/server/lib/router-utils/resolve-routes.js.map +1 -1
- package/dist/esm/server/lib/start-server.js +1 -1
- package/dist/server/base-server.js +11 -4
- package/dist/server/base-server.js.map +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/future/helpers/i18n-provider.d.ts +14 -0
- package/dist/server/future/helpers/i18n-provider.js +22 -0
- package/dist/server/future/helpers/i18n-provider.js.map +1 -1
- package/dist/server/lib/router-utils/resolve-routes.js +5 -0
- package/dist/server/lib/router-utils/resolve-routes.js.map +1 -1
- package/dist/server/lib/start-server.js +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +16 -16
|
@@ -26,58 +26,58 @@ Ga=Symbol.iterator,F=null;function G(a,b){if(a!==b){a.context._currentValue=a.pa
|
|
|
26
26
|
function Ia(a){var b=a.parent;null!==b&&Ia(b);a.context._currentValue=a.value}function Ja(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):Ja(a,b)}
|
|
27
27
|
function Ka(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):Ka(a,d);b.context._currentValue=b.value}function La(a){var b=F;b!==a&&(null===b?Ia(a):null===a?Ha(b):b.depth===a.depth?G(b,a):b.depth>a.depth?Ja(b,a):Ka(b,a),F=a)}function Ma(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 Na=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`");
|
|
28
28
|
function Oa(){}function Pa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Oa,Oa),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 Na;}}var I=null;
|
|
29
|
-
function Qa(){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,
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
function
|
|
33
|
-
var
|
|
34
|
-
function
|
|
35
|
-
function
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?
|
|
40
|
-
function
|
|
41
|
-
e;
|
|
42
|
-
function
|
|
43
|
-
function
|
|
44
|
-
b._init;b=g(b._payload);return
|
|
45
|
-
function
|
|
46
|
-
function
|
|
47
|
-
g];a.pendingChunks++;var H=a.nextChunkId++,D=
|
|
48
|
-
function
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
c=a.parentValue;a.context._currentValue=c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+
|
|
52
|
-
|
|
53
|
-
"utf8"):c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),
|
|
54
|
-
(b=c.$$bound,b={id:c.$$id,bound:b?Promise.resolve(b):null},a=
|
|
55
|
-
f)return
|
|
56
|
-
function
|
|
57
|
-
function
|
|
58
|
-
function
|
|
59
|
-
D===Na?Qa():D;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var q=f.ping;p.then(q,q);f.thenableState=
|
|
60
|
-
function
|
|
61
|
-
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,r=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function
|
|
62
|
-
function
|
|
63
|
-
function
|
|
64
|
-
function
|
|
65
|
-
function
|
|
66
|
-
function
|
|
67
|
-
function
|
|
68
|
-
function
|
|
69
|
-
|
|
70
|
-
function Mb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Lb(d,b)}}function Nb(a,b,d,c,e,f){var g=
|
|
71
|
-
function Kb(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 Qb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Mb(d,b)})}
|
|
72
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new
|
|
29
|
+
function Qa(){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,Ra=0,K=null;function Sa(){var a=K;K=null;return a}function Ta(a){return a._currentValue}
|
|
30
|
+
var Xa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:Ta,useContext:Ta,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Ua,useSyncExternalStore:L,useCacheRefresh:function(){return Va},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=Ea;return b},use:Wa};
|
|
31
|
+
function L(){throw Error("This Hook is not supported in Server Components.");}function Va(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ua(){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)+":"}
|
|
32
|
+
function Wa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ra;Ra+=1;null===K&&(K=[]);return Pa(K,a,b)}if(a.$$typeof===za)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ya(){return(new AbortController).signal}function Za(){var a=y();return a?a.cache:new Map}
|
|
33
|
+
var $a={getCacheSignal:function(){var a=Za(),b=a.get(Ya);void 0===b&&(b=Ya(),a.set(Ya,b));return b},getCacheForType:function(a){var b=Za(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},ab=Array.isArray;function bb(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
|
34
|
+
function cb(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(ab(a))return"[...]";a=bb(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
|
35
|
+
function db(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return db(a.render);case Da:return db(a.type);case C:var b=a._payload;a=a._init;try{return db(a(b))}catch(d){}}return""}
|
|
36
|
+
function M(a,b){var d=bb(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(ab(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?M(g):cb(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===B)e="<"+db(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?M(k):
|
|
37
|
+
cb(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 eb=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fb=eb.ContextRegistry,N=JSON.stringify,gb=eb.ReactCurrentDispatcher,hb=eb.ReactCurrentCache;function ib(a){console.error(a)}function jb(){}
|
|
38
|
+
function kb(a,b,d,c,e,f){if(null!==hb.current&&hb.current!==$a)throw Error("Currently React only supports one RSC renderer at a time.");va.current=ua;hb.current=$a;var g=new Set,h=[],k=new Set,n={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
|
39
|
+
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?ib:d,onPostpone:void 0===f?jb:f,toJSON:function(p,q){return lb(n,this,p,q)}};n.pendingChunks++;b=mb(c);a=nb(n,a,b,g);h.push(a);return n}var O=null;function y(){if(O)return O;var a=wa.getStore();return a?a:null}var ob={};
|
|
40
|
+
function pb(a,b){a.pendingChunks++;var d=nb(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,qb(a,d),d.id;case "rejected":var c=b.reason;"object"===typeof c&&null!==c&&c.$$typeof===Fa?(rb(a,c.message),sb(a,d.id)):(c=P(a,c),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=
|
|
41
|
+
e;qb(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=P(a,e);Q(a,d.id,e);null!==a.destination&&R(a,a.destination)});return d.id}function z(a,b,d){d=N(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;a.completedHintChunks.push(b+d+"\n");tb(a)}function ub(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
|
42
|
+
function vb(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:C,_payload:a,_init:ub}}
|
|
43
|
+
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===v)return[B,b,d,e];Ra=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:vb(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===xa?e.children:[B,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===v)return[B,b,d,e];switch(b.$$typeof){case C:var g=
|
|
44
|
+
b._init;b=g(b._payload);return S(a,b,d,c,e,f);case Aa:return a=b.render,Ra=0,K=f,a(e,void 0);case Da:return S(a,b.type,d,c,e,f);case ya:return Ma(b._context,e.value),[B,b,d,{value:e.value,children:e.children,__pop:ob}]}}throw Error("Unsupported Server Component type: "+cb(b));}function qb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return wb(a)}))}
|
|
45
|
+
function nb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return qb(a,e)},thenableState:null};c.add(e);return e}function T(a){return"$"+a.toString(16)}function xb(a,b,d){a=N(d);return b.toString(16)+":"+a+"\n"}
|
|
46
|
+
function yb(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]===B&&"1"===d?"$L"+g.toString(16):T(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var n=h[k];if(n)g=n.name;else{var p=k.lastIndexOf("#");-1!==p&&(g=k.slice(p+1),n=h[k.slice(0,p)]);if(!n)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 q=!0===c.$$async?[n.id,n.chunks,g,1]:[n.id,n.chunks,
|
|
47
|
+
g];a.pendingChunks++;var H=a.nextChunkId++,D=N(q),Vb=H.toString(16)+":I"+D+"\n";a.completedImportChunks.push(Vb);f.set(e,H);return b[0]===B&&"1"===d?"$L"+H.toString(16):T(H)}catch(Wb){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,Wb),Q(a,b,d),T(b)}}function zb(a,b){a.pendingChunks++;var d=a.nextChunkId++;Ab(a,d,b);return d}
|
|
48
|
+
function U(a,b,d){a.pendingChunks+=2;var c=a.nextChunkId++;d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);var e=d.byteLength;b=c.toString(16)+":"+b+e.toString(16)+",";a.completedRegularChunks.push(b,d);return T(c)}
|
|
49
|
+
function lb(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===C);)try{switch(c.$$typeof){case B:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case C:var f=c._init;c=f(c._payload)}}catch(g){d=g===Na?Qa():g;if("object"===typeof d&&null!==d){if("function"===typeof d.then)return a.pendingChunks++,a=nb(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Sa(),"$L"+a.id.toString(16);if(d.$$typeof===Fa)return c=d,a.pendingChunks++,d=a.nextChunkId++,
|
|
50
|
+
rb(a,c.message),sb(a,d),"$L"+d.toString(16)}a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return yb(a,b,d,c);if("function"===typeof c.then)return"$@"+pb(a,c).toString(16);if(c.$$typeof===ya)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=xb(a,d,"$P"+c),a.completedRegularChunks.push(c)),T(d);if(c===ob){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
|
|
51
|
+
c=a.parentValue;a.context._currentValue=c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+zb(a,Array.from(c)).toString(16):c instanceof Set?"$W"+zb(a,Array.from(c)).toString(16):c instanceof ArrayBuffer?U(a,"A",new Uint8Array(c)):c instanceof Int8Array?U(a,"C",c):c instanceof Uint8Array?U(a,"c",c):c instanceof Uint8ClampedArray?U(a,"U",c):c instanceof Int16Array?U(a,"S",c):c instanceof Uint16Array?U(a,"s",c):c instanceof Int32Array?U(a,"L",c):c instanceof Uint32Array?
|
|
52
|
+
U(a,"l",c):c instanceof Float32Array?U(a,"F",c):c instanceof Float64Array?U(a,"D",c):c instanceof BigInt64Array?U(a,"N",c):c instanceof BigUint64Array?U(a,"m",c):c instanceof DataView?U(a,"V",c):!ab(c)&&(null===c||"object"!==typeof c?a=null:(a=Ga&&c[Ga]||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;if(1024<=c.length)return a.pendingChunks+=2,d=a.nextChunkId++,b="string"===typeof c?Buffer.byteLength(c,
|
|
53
|
+
"utf8"):c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),T(d);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";if("function"===typeof c){if(c.$$typeof===v)return yb(a,b,d,c);if(c.$$typeof===w)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):
|
|
54
|
+
(b=c.$$bound,b={id:c.$$id,bound:b?Promise.resolve(b):null},a=zb(a,b),d.set(c,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+M(b,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".'+M(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==
|
|
55
|
+
f)return T(f);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.")+M(b,d));a.pendingChunks++;d=a.nextChunkId++;b=xb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return T(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+M(b,d));}
|
|
56
|
+
function rb(a,b){a=a.onPostpone;a(b)}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 Bb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
|
57
|
+
function sb(a,b){b=b.toString(16)+":P\n";a.completedErrorChunks.push(b)}function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+N(d)+"\n";a.completedErrorChunks.push(b)}function Ab(a,b,d){d=N(d,a.toJSON);b=b.toString(16)+":"+d+"\n";a.completedRegularChunks.push(b)}
|
|
58
|
+
function wb(a){var b=gb.current;gb.current=Xa;var d=O;J=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];a:{var g=a;if(0===f.status){La(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===B){var k=h,n=f.thenableState;f.model=h;h=S(g,k.type,k.key,k.ref,k.props,n);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===B;)k=h,f.model=h,h=S(g,k.type,k.key,k.ref,k.props,null)}Ab(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(D){var p=
|
|
59
|
+
D===Na?Qa():D;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var q=f.ping;p.then(q,q);f.thenableState=Sa();break a}else if(p.$$typeof===Fa){g.abortableTasks.delete(f);f.status=4;rb(g,p.message);sb(g,f.id);break a}g.abortableTasks.delete(f);f.status=4;var H=P(g,p);Q(g,f.id,H)}}}}null!==a.destination&&R(a,a.destination)}catch(D){P(a,D),Bb(a,D)}finally{gb.current=b,J=null,O=d}}
|
|
60
|
+
function R(a,b){l=new Uint8Array(2048);m=0;r=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!u(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!u(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!u(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--,!u(b,g[c])){a.destination=
|
|
61
|
+
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,r=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function Cb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return wa.run(a,wb,a)})}function tb(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)})}}
|
|
62
|
+
function Db(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),Bb(a,d)}}}
|
|
63
|
+
function Eb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=void 0===b?Error("The render was aborted by the server without a reason."):b,e=P(a,c);a.pendingChunks++;var f=a.nextChunkId++;Q(a,f,e,c);d.forEach(function(g){g.status=3;var h=T(f);g=xb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),Bb(a,g)}}
|
|
64
|
+
function mb(a){if(a){var b=F;La(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!fb[e]){var f={$$typeof:za,_currentValue:E,_currentValue2:E,_defaultValue:E,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:ya,_context:f};fb[e]=f}Ma(fb[e],c)}a=F;La(b);return a}return null}
|
|
65
|
+
function Fb(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[c.id,c.chunks,d]}var Gb=new Map;
|
|
66
|
+
function Hb(a){var b=globalThis.__next_require__(a);if("function"!==typeof b.then||"fulfilled"===b.status)return null;b.then(function(d){b.status="fulfilled";b.value=d},function(d){b.status="rejected";b.reason=d});return b}function Ib(){}
|
|
67
|
+
function Jb(a){for(var b=a[1],d=[],c=0;c<b.length;){var e=b[c++];b[c++];var f=Gb.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=Gb.set.bind(Gb,e,null);f.then(g,Ib);Gb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?Hb(a[0]):Promise.all(d).then(function(){return Hb(a[0])}):0<d.length?Promise.all(d):null}
|
|
68
|
+
function V(a){var b=globalThis.__next_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]]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
|
|
69
|
+
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Kb(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 Lb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
|
70
|
+
function Mb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Lb(d,b)}}function Nb(a,b,d,c,e,f){var g=Fb(a._bundlerConfig,b);a=Jb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(Ob(c,e,f),Pb(c));return null}var X=null,Y=null;
|
|
71
|
+
function Kb(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 Qb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Mb(d,b)})}
|
|
72
|
+
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):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),d.set(b,c));return c}function Ob(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&&Lb(e,c.value))}}function Pb(a){return function(b){return Mb(a,b)}}
|
|
73
73
|
function Rb(a,b){a=Z(a,b);"resolved_model"===a.status&&Kb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
|
74
74
|
function Sb(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":return c=parseInt(c.slice(2),16),c=Rb(a,c),Nb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Rb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Rb(a,b),new Set(a);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),
|
|
75
75
|
g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":Kb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Ob(c,b,d),Pb(c)),null;default:throw a.reason;}}return c}
|
|
76
|
-
function Tb(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?Sb(e,this,f,g):g}};return e}
|
|
76
|
+
function Tb(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?Sb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}
|
|
77
77
|
function Ub(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(Kb(b),b.status){case "fulfilled":Lb(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&Lb(a,b.reason)}}function Xb(a){Qb(a,Error("Connection closed."))}
|
|
78
|
-
function Yb(a,b,d){var c=
|
|
78
|
+
function Yb(a,b,d){var c=Fb(a,b);a=Jb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}function Zb(a,b,d){a=Tb(b,d,a);Xb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function $b(a,b){return function(){return Db(b,a)}}function ac(a,b){return function(){a.destination=null;Eb(a,Error(b))}}
|
|
79
79
|
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,ma)};exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Zb(a,b,e),c=Yb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Yb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};
|
|
80
80
|
exports.decodeFormState=function(a,b,d){var c=b.get("$ACTION_KEY");if("string"!==typeof c)return Promise.resolve(null);var e=null;b.forEach(function(g,h){h.startsWith("$ACTION_REF_")&&(g="$ACTION_"+h.slice(12)+":",e=Zb(b,d,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,c,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Tb(b,"",a);Xb(a);return Z(a,0)};
|
|
81
81
|
exports.decodeReplyFromBusboy=function(a,b){var d=Tb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Ub(d,f,g)});a.on("file",function(f,g,h){var k=h.filename,n=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 p=[];g.on("data",function(q){p.push(q)});g.on("end",function(){var q=
|
|
82
82
|
new Blob(p,{type:n});d._formData.append(f,q,k);c--;if(0===c){for(q=0;q<e.length;q+=2)Ub(d,e[q],e[q+1]);e.length=0}})});a.on("finish",function(){Xb(d)});a.on("error",function(f){Qb(d,f)});return Z(d,0)};exports.registerClientReference=function(a,b,d){return x(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:ia}})};
|
|
83
|
-
exports.renderToPipeableStream=function(a,b,d){var c=
|
|
83
|
+
exports.renderToPipeableStream=function(a,b,d){var c=kb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0),e=!1;Cb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;Db(c,f);f.on("drain",$b(f,c));f.on("error",ac(c,"The destination stream errored while writing data."));f.on("close",ac(c,"The destination stream closed early."));return f},abort:function(f){Eb(c,f)}}};
|
|
@@ -3100,6 +3100,11 @@ function createResolvedModelChunk(response, value) {
|
|
|
3100
3100
|
return new Chunk(RESOLVED_MODEL, value, null, response);
|
|
3101
3101
|
}
|
|
3102
3102
|
|
|
3103
|
+
function createErroredChunk(response, reason) {
|
|
3104
|
+
// $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
|
|
3105
|
+
return new Chunk(ERRORED, null, reason, response);
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3103
3108
|
function resolveModelChunk(chunk, value) {
|
|
3104
3109
|
if (chunk.status !== PENDING) {
|
|
3105
3110
|
// We already resolved. We didn't expect to see this.
|
|
@@ -3193,6 +3198,9 @@ function initializeModelChunk(chunk) {
|
|
|
3193
3198
|
|
|
3194
3199
|
|
|
3195
3200
|
function reportGlobalError(response, error) {
|
|
3201
|
+
response._closed = true;
|
|
3202
|
+
response._closedReason = error;
|
|
3203
|
+
|
|
3196
3204
|
response._chunks.forEach(function (chunk) {
|
|
3197
3205
|
// If this chunk was already resolved or errored, it won't
|
|
3198
3206
|
// trigger an error but if it wasn't then we need to
|
|
@@ -3216,6 +3224,10 @@ function getChunk(response, id) {
|
|
|
3216
3224
|
if (backingEntry != null) {
|
|
3217
3225
|
// We assume that this is a string entry for now.
|
|
3218
3226
|
chunk = createResolvedModelChunk(response, backingEntry);
|
|
3227
|
+
} else if (response._closed) {
|
|
3228
|
+
// We have already errored the response and we're not going to get
|
|
3229
|
+
// anything more streaming in so this will immediately error.
|
|
3230
|
+
chunk = createErroredChunk(response, response._closedReason);
|
|
3219
3231
|
} else {
|
|
3220
3232
|
// We're still waiting on this entry to stream in.
|
|
3221
3233
|
chunk = createPendingChunk(response);
|
|
@@ -3447,7 +3459,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
|
|
|
3447
3459
|
}
|
|
3448
3460
|
|
|
3449
3461
|
return value;
|
|
3450
|
-
}
|
|
3462
|
+
},
|
|
3463
|
+
_closed: false,
|
|
3464
|
+
_closedReason: null
|
|
3451
3465
|
};
|
|
3452
3466
|
return response;
|
|
3453
3467
|
}
|
|
@@ -26,55 +26,55 @@ Ga=Symbol.iterator,F=null;function G(a,b){if(a!==b){a.context._currentValue=a.pa
|
|
|
26
26
|
function Ia(a){var b=a.parent;null!==b&&Ia(b);a.context._currentValue=a.value}function Ja(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):Ja(a,b)}
|
|
27
27
|
function Ka(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):Ka(a,d);b.context._currentValue=b.value}function La(a){var b=F;b!==a&&(null===b?Ia(a):null===a?Ha(b):b.depth===a.depth?G(b,a):b.depth>a.depth?Ja(b,a):Ka(b,a),F=a)}function Ma(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 Na=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`");
|
|
28
28
|
function Oa(){}function Pa(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Oa,Oa),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 Na;}}var I=null;
|
|
29
|
-
function Qa(){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,
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
function
|
|
33
|
-
var
|
|
34
|
-
function
|
|
35
|
-
function
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?
|
|
40
|
-
function
|
|
41
|
-
e;
|
|
42
|
-
function
|
|
43
|
-
function
|
|
44
|
-
b._init;b=g(b._payload);return
|
|
45
|
-
function
|
|
46
|
-
function
|
|
47
|
-
g];a.pendingChunks++;var H=a.nextChunkId++,D=
|
|
48
|
-
function
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
c=a.parentValue;a.context._currentValue=c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+
|
|
52
|
-
|
|
53
|
-
"utf8"):c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),
|
|
54
|
-
(b=c.$$bound,b={id:c.$$id,bound:b?Promise.resolve(b):null},a=
|
|
55
|
-
f)return
|
|
56
|
-
function
|
|
57
|
-
function
|
|
58
|
-
function
|
|
59
|
-
D===Na?Qa():D;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var q=f.ping;p.then(q,q);f.thenableState=
|
|
60
|
-
function
|
|
61
|
-
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,r=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function
|
|
62
|
-
function
|
|
63
|
-
function
|
|
64
|
-
function
|
|
65
|
-
function
|
|
66
|
-
function
|
|
67
|
-
function
|
|
68
|
-
function Ib(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 Ob(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Kb(d,b)})}
|
|
69
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new
|
|
29
|
+
function Qa(){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,Ra=0,K=null;function Sa(){var a=K;K=null;return a}function Ta(a){return a._currentValue}
|
|
30
|
+
var Xa={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:L,useTransition:L,readContext:Ta,useContext:Ta,useReducer:L,useRef:L,useState:L,useInsertionEffect:L,useLayoutEffect:L,useImperativeHandle:L,useEffect:L,useId:Ua,useSyncExternalStore:L,useCacheRefresh:function(){return Va},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=Ea;return b},use:Wa};
|
|
31
|
+
function L(){throw Error("This Hook is not supported in Server Components.");}function Va(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ua(){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)+":"}
|
|
32
|
+
function Wa(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=Ra;Ra+=1;null===K&&(K=[]);return Pa(K,a,b)}if(a.$$typeof===za)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ya(){return(new AbortController).signal}function Za(){var a=y();return a?a.cache:new Map}
|
|
33
|
+
var $a={getCacheSignal:function(){var a=Za(),b=a.get(Ya);void 0===b&&(b=Ya(),a.set(Ya,b));return b},getCacheForType:function(a){var b=Za(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},ab=Array.isArray;function bb(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
|
34
|
+
function cb(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(ab(a))return"[...]";a=bb(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
|
35
|
+
function db(a){if("string"===typeof a)return a;switch(a){case Ba:return"Suspense";case Ca:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Aa:return db(a.render);case Da:return db(a.type);case C:var b=a._payload;a=a._init;try{return db(a(b))}catch(d){}}return""}
|
|
36
|
+
function M(a,b){var d=bb(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(ab(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?M(g):cb(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===B)e="<"+db(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?M(k):
|
|
37
|
+
cb(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 eb=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fb=eb.ContextRegistry,N=JSON.stringify,gb=eb.ReactCurrentDispatcher,hb=eb.ReactCurrentCache;function ib(a){console.error(a)}function jb(){}
|
|
38
|
+
function kb(a,b,d,c,e,f){if(null!==hb.current&&hb.current!==$a)throw Error("Currently React only supports one RSC renderer at a time.");va.current=ua;hb.current=$a;var g=new Set,h=[],k=new Set,n={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:k,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedHintChunks:[],completedRegularChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
|
39
|
+
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?ib:d,onPostpone:void 0===f?jb:f,toJSON:function(p,q){return lb(n,this,p,q)}};n.pendingChunks++;b=mb(c);a=nb(n,a,b,g);h.push(a);return n}var O=null;function y(){if(O)return O;var a=wa.getStore();return a?a:null}var ob={};
|
|
40
|
+
function pb(a,b){a.pendingChunks++;var d=nb(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,qb(a,d),d.id;case "rejected":var c=b.reason;"object"===typeof c&&null!==c&&c.$$typeof===Fa?(rb(a,c.message),sb(a,d.id)):(c=P(a,c),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=
|
|
41
|
+
e;qb(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=P(a,e);Q(a,d.id,e);null!==a.destination&&R(a,a.destination)});return d.id}function z(a,b,d){d=N(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;a.completedHintChunks.push(b+d+"\n");tb(a)}function ub(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
|
42
|
+
function vb(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:C,_payload:a,_init:ub}}
|
|
43
|
+
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===v)return[B,b,d,e];Ra=0;K=f;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:vb(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===xa?e.children:[B,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===v)return[B,b,d,e];switch(b.$$typeof){case C:var g=
|
|
44
|
+
b._init;b=g(b._payload);return S(a,b,d,c,e,f);case Aa:return a=b.render,Ra=0,K=f,a(e,void 0);case Da:return S(a,b.type,d,c,e,f);case ya:return Ma(b._context,e.value),[B,b,d,{value:e.value,children:e.children,__pop:ob}]}}throw Error("Unsupported Server Component type: "+cb(b));}function qb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return wb(a)}))}
|
|
45
|
+
function nb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return qb(a,e)},thenableState:null};c.add(e);return e}function T(a){return"$"+a.toString(16)}function xb(a,b,d){a=N(d);return b.toString(16)+":"+a+"\n"}
|
|
46
|
+
function yb(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]===B&&"1"===d?"$L"+g.toString(16):T(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var n=h[k];if(n)g=n.name;else{var p=k.lastIndexOf("#");-1!==p&&(g=k.slice(p+1),n=h[k.slice(0,p)]);if(!n)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 q=!0===c.$$async?[n.id,n.chunks,g,1]:[n.id,n.chunks,
|
|
47
|
+
g];a.pendingChunks++;var H=a.nextChunkId++,D=N(q),Ub=H.toString(16)+":I"+D+"\n";a.completedImportChunks.push(Ub);f.set(e,H);return b[0]===B&&"1"===d?"$L"+H.toString(16):T(H)}catch(Vb){return a.pendingChunks++,b=a.nextChunkId++,d=P(a,Vb),Q(a,b,d),T(b)}}function zb(a,b){a.pendingChunks++;var d=a.nextChunkId++;Ab(a,d,b);return d}
|
|
48
|
+
function U(a,b,d){a.pendingChunks+=2;var c=a.nextChunkId++;d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);var e=d.byteLength;b=c.toString(16)+":"+b+e.toString(16)+",";a.completedRegularChunks.push(b,d);return T(c)}
|
|
49
|
+
function lb(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===C);)try{switch(c.$$typeof){case B:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case C:var f=c._init;c=f(c._payload)}}catch(g){d=g===Na?Qa():g;if("object"===typeof d&&null!==d){if("function"===typeof d.then)return a.pendingChunks++,a=nb(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Sa(),"$L"+a.id.toString(16);if(d.$$typeof===Fa)return c=d,a.pendingChunks++,d=a.nextChunkId++,
|
|
50
|
+
rb(a,c.message),sb(a,d),"$L"+d.toString(16)}a.pendingChunks++;c=a.nextChunkId++;d=P(a,d);Q(a,c,d);return"$L"+c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return yb(a,b,d,c);if("function"===typeof c.then)return"$@"+pb(a,c).toString(16);if(c.$$typeof===ya)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=xb(a,d,"$P"+c),a.completedRegularChunks.push(c)),T(d);if(c===ob){a=F;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");
|
|
51
|
+
c=a.parentValue;a.context._currentValue=c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+zb(a,Array.from(c)).toString(16):c instanceof Set?"$W"+zb(a,Array.from(c)).toString(16):c instanceof ArrayBuffer?U(a,"A",new Uint8Array(c)):c instanceof Int8Array?U(a,"C",c):c instanceof Uint8Array?U(a,"c",c):c instanceof Uint8ClampedArray?U(a,"U",c):c instanceof Int16Array?U(a,"S",c):c instanceof Uint16Array?U(a,"s",c):c instanceof Int32Array?U(a,"L",c):c instanceof Uint32Array?
|
|
52
|
+
U(a,"l",c):c instanceof Float32Array?U(a,"F",c):c instanceof Float64Array?U(a,"D",c):c instanceof BigInt64Array?U(a,"N",c):c instanceof BigUint64Array?U(a,"m",c):c instanceof DataView?U(a,"V",c):!ab(c)&&(null===c||"object"!==typeof c?a=null:(a=Ga&&c[Ga]||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;if(1024<=c.length)return a.pendingChunks+=2,d=a.nextChunkId++,b="string"===typeof c?Buffer.byteLength(c,
|
|
53
|
+
"utf8"):c.byteLength,b=d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),T(d);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";if("function"===typeof c){if(c.$$typeof===v)return yb(a,b,d,c);if(c.$$typeof===w)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):
|
|
54
|
+
(b=c.$$bound,b={id:c.$$id,bound:b?Promise.resolve(b):null},a=zb(a,b),d.set(c,a),a="$F"+a.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+M(b,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".'+M(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==
|
|
55
|
+
f)return T(f);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.")+M(b,d));a.pendingChunks++;d=a.nextChunkId++;b=xb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return T(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+M(b,d));}
|
|
56
|
+
function rb(a,b){a=a.onPostpone;a(b)}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 Bb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
|
57
|
+
function sb(a,b){b=b.toString(16)+":P\n";a.completedErrorChunks.push(b)}function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+N(d)+"\n";a.completedErrorChunks.push(b)}function Ab(a,b,d){d=N(d,a.toJSON);b=b.toString(16)+":"+d+"\n";a.completedRegularChunks.push(b)}
|
|
58
|
+
function wb(a){var b=gb.current;gb.current=Xa;var d=O;J=O=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var f=c[e];a:{var g=a;if(0===f.status){La(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===B){var k=h,n=f.thenableState;f.model=h;h=S(g,k.type,k.key,k.ref,k.props,n);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===B;)k=h,f.model=h,h=S(g,k.type,k.key,k.ref,k.props,null)}Ab(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(D){var p=
|
|
59
|
+
D===Na?Qa():D;if("object"===typeof p&&null!==p)if("function"===typeof p.then){var q=f.ping;p.then(q,q);f.thenableState=Sa();break a}else if(p.$$typeof===Fa){g.abortableTasks.delete(f);f.status=4;rb(g,p.message);sb(g,f.id);break a}g.abortableTasks.delete(f);f.status=4;var H=P(g,p);Q(g,f.id,H)}}}}null!==a.destination&&R(a,a.destination)}catch(D){P(a,D),Bb(a,D)}finally{gb.current=b,J=null,O=d}}
|
|
60
|
+
function R(a,b){l=new Uint8Array(2048);m=0;r=!0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)if(a.pendingChunks--,!u(b,d[c])){a.destination=null;c++;break}d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)if(!u(b,e[c])){a.destination=null;c++;break}e.splice(0,c);var f=a.completedRegularChunks;for(c=0;c<f.length;c++)if(a.pendingChunks--,!u(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--,!u(b,g[c])){a.destination=
|
|
61
|
+
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,r=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function Cb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return wa.run(a,wb,a)})}function tb(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)})}}
|
|
62
|
+
function Db(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),Bb(a,d)}}}
|
|
63
|
+
function Eb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=void 0===b?Error("The render was aborted by the server without a reason."):b,e=P(a,c);a.pendingChunks++;var f=a.nextChunkId++;Q(a,f,e,c);d.forEach(function(g){g.status=3;var h=T(f);g=xb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){P(a,g),Bb(a,g)}}
|
|
64
|
+
function mb(a){if(a){var b=F;La(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!fb[e]){var f={$$typeof:za,_currentValue:E,_currentValue2:E,_defaultValue:E,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:ya,_context:f};fb[e]=f}Ma(fb[e],c)}a=F;La(b);return a}return null}function Fb(a,b){var d=b.lastIndexOf("#");a=b.slice(0,d);b=b.slice(d+1);return{specifier:a,name:b}}var Gb=new Map;
|
|
65
|
+
function Hb(a){var b=Gb.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var d=import(a.specifier);a.async&&(d=d.then(function(c){return c.default}));d.then(function(c){var e=d;e.status="fulfilled";e.value=c},function(c){var e=d;e.status="rejected";e.reason=c});Gb.set(a.specifier,d);return d}function V(a){var b=Gb.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]}
|
|
66
|
+
function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Ib(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 Jb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
|
67
|
+
function Kb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Jb(d,b)}}function Lb(a,b,d,c,e,f){var g=Fb(a._bundlerConfig,b);a=Hb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=V(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return V(g)});else return V(g);d.then(Mb(c,e,f),Nb(c));return null}var X=null,Y=null;
|
|
68
|
+
function Ib(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 Ob(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Kb(d,b)})}
|
|
69
|
+
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):a._closed?new W("rejected",null,a._closedReason,a):new W("pending",null,null,a),d.set(b,c));return c}function Mb(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&&Jb(e,c.value))}}function Nb(a){return function(b){return Kb(a,b)}}
|
|
70
70
|
function Pb(a,b){a=Z(a,b);"resolved_model"===a.status&&Ib(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
|
71
71
|
function Qb(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":return c=parseInt(c.slice(2),16),c=Pb(a,c),Lb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Pb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Pb(a,b),new Set(a);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),
|
|
72
72
|
g)});return f;case "I":return Infinity;case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":Ib(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Mb(c,b,d),Nb(c)),null;default:throw a.reason;}}return c}
|
|
73
|
-
function Rb(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?Qb(e,this,f,g):g}};return e}
|
|
73
|
+
function Rb(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?Qb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}
|
|
74
74
|
function Sb(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(Ib(b),b.status){case "fulfilled":Jb(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&Jb(a,b.reason)}}function Tb(a){Ob(a,Error("Connection closed."))}
|
|
75
|
-
function Wb(a,b,d){var c=
|
|
75
|
+
function Wb(a,b,d){var c=Fb(a,b);a=Hb(c);return d?Promise.all([d,a]).then(function(e){e=e[0];var f=V(c);return f.bind.apply(f,[null].concat(e))}):a?Promise.resolve(a).then(function(){return V(c)}):Promise.resolve(V(c))}function Xb(a,b,d){a=Rb(b,d,a);Tb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Yb(a,b){return function(){return Db(b,a)}}function Zb(a,b){return function(){a.destination=null;Eb(a,Error(b))}}
|
|
76
76
|
exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,ma)};exports.decodeAction=function(a,b){var d=new FormData,c=null;a.forEach(function(e,f){f.startsWith("$ACTION_")?f.startsWith("$ACTION_REF_")?(e="$ACTION_"+f.slice(12)+":",e=Xb(a,b,e),c=Wb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Wb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};
|
|
77
77
|
exports.decodeFormState=function(a,b,d){var c=b.get("$ACTION_KEY");if("string"!==typeof c)return Promise.resolve(null);var e=null;b.forEach(function(g,h){h.startsWith("$ACTION_REF_")&&(g="$ACTION_"+h.slice(12)+":",e=Xb(b,d,g))});if(null===e)return Promise.resolve(null);var f=e.id;return Promise.resolve(e.bound).then(function(g){return null===g?null:[a,c,f,g.length-1]})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Rb(b,"",a);Tb(a);return Z(a,0)};
|
|
78
78
|
exports.decodeReplyFromBusboy=function(a,b){var d=Rb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Sb(d,f,g)});a.on("file",function(f,g,h){var k=h.filename,n=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 p=[];g.on("data",function(q){p.push(q)});g.on("end",function(){var q=
|
|
79
79
|
new Blob(p,{type:n});d._formData.append(f,q,k);c--;if(0===c){for(q=0;q<e.length;q+=2)Sb(d,e[q],e[q+1]);e.length=0}})});a.on("finish",function(){Tb(d)});a.on("error",function(f){Ob(d,f)});return Z(d,0)};exports.registerClientReference=function(a,b,d){return x(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:w},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:ia}})};
|
|
80
|
-
exports.renderToPipeableStream=function(a,b,d){var c=
|
|
80
|
+
exports.renderToPipeableStream=function(a,b,d){var c=kb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0),e=!1;Cb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;Db(c,f);f.on("drain",Yb(f,c));f.on("error",Zb(c,"The destination stream errored while writing data."));f.on("close",Zb(c,"The destination stream closed early."));return f},abort:function(f){Eb(c,f)}}};
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"loose-envify": "^1.1.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"react": "0.0.0-experimental-
|
|
51
|
-
"react-dom": "0.0.0-experimental-
|
|
50
|
+
"react": "0.0.0-experimental-1dba980e1f-20241220",
|
|
51
|
+
"react-dom": "0.0.0-experimental-1dba980e1f-20241220",
|
|
52
52
|
"webpack": "^5.59.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/dist/esm/build/index.js
CHANGED
|
@@ -109,7 +109,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
109
109
|
let hasAppDir = false;
|
|
110
110
|
try {
|
|
111
111
|
const nextBuildSpan = trace("next-build", undefined, {
|
|
112
|
-
version: "13.5.
|
|
112
|
+
version: "13.5.8"
|
|
113
113
|
});
|
|
114
114
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
115
115
|
NextBuildContext.dir = dir;
|
|
@@ -9,7 +9,7 @@ import { patchIncorrectLockfile } from "../../lib/patch-incorrect-lockfile";
|
|
|
9
9
|
import { downloadWasmSwc, downloadNativeNextSwc } from "../../lib/download-swc";
|
|
10
10
|
import { isDeepStrictEqual } from "util";
|
|
11
11
|
import { getDefineEnv } from "../webpack/plugins/define-env-plugin";
|
|
12
|
-
const nextVersion = "13.5.
|
|
12
|
+
const nextVersion = "13.5.8";
|
|
13
13
|
const ArchName = arch();
|
|
14
14
|
const PlatformName = platform();
|
|
15
15
|
const infoLog = (...args)=>{
|
|
@@ -1528,7 +1528,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, config, compi
|
|
|
1528
1528
|
new WellKnownErrorsPlugin(),
|
|
1529
1529
|
isClient && new CopyFilePlugin({
|
|
1530
1530
|
filePath: require.resolve("./polyfills/polyfill-nomodule"),
|
|
1531
|
-
cacheKey: "13.5.
|
|
1531
|
+
cacheKey: "13.5.8",
|
|
1532
1532
|
name: `static/chunks/polyfills${dev ? "" : "-[hash]"}.js`,
|
|
1533
1533
|
minimize: false,
|
|
1534
1534
|
info: {
|
|
@@ -1753,7 +1753,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, config, compi
|
|
|
1753
1753
|
// Includes:
|
|
1754
1754
|
// - Next.js version
|
|
1755
1755
|
// - next.config.js keys that affect compilation
|
|
1756
|
-
version: `${"13.5.
|
|
1756
|
+
version: `${"13.5.8"}|${configVars}`,
|
|
1757
1757
|
cacheDirectory: path.join(distDir, "cache", "webpack"),
|
|
1758
1758
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1759
1759
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
package/dist/esm/client/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { SearchParamsContext, PathParamsContext } from "../shared/lib/hooks-clie
|
|
|
25
25
|
import onRecoverableError from "./on-recoverable-error";
|
|
26
26
|
import tracer from "./tracing/tracer";
|
|
27
27
|
import reportToSocket from "./tracing/report-to-socket";
|
|
28
|
-
export const version = "13.5.
|
|
28
|
+
export const version = "13.5.8";
|
|
29
29
|
export let router;
|
|
30
30
|
export const emitter = mitt();
|
|
31
31
|
const looseToArray = (input)=>[].slice.call(input);
|
|
@@ -314,7 +314,7 @@ export default class Server {
|
|
|
314
314
|
}
|
|
315
315
|
async handleRequestImpl(req, res, parsedUrl) {
|
|
316
316
|
try {
|
|
317
|
-
var _this_i18nProvider, _this_nextConfig_i18n;
|
|
317
|
+
var _this_i18nProvider, _this_i18nProvider1, _this_nextConfig_i18n;
|
|
318
318
|
// Wait for the matchers to be ready.
|
|
319
319
|
await this.matchers.waitTillReady();
|
|
320
320
|
// ensure cookies set in middleware are merged and
|
|
@@ -375,8 +375,15 @@ export default class Server {
|
|
|
375
375
|
}
|
|
376
376
|
req.url = normalizeRscPath(req.url, this.hasAppDir);
|
|
377
377
|
parsedUrl.pathname = normalizeRscPath(parsedUrl.pathname || "", this.hasAppDir);
|
|
378
|
+
// Validate that if i18n isn't configured or the passed parameters are not
|
|
379
|
+
// valid it should be removed from the query.
|
|
380
|
+
if (!((_this_i18nProvider = this.i18nProvider) == null ? void 0 : _this_i18nProvider.validateQuery(parsedUrl.query))) {
|
|
381
|
+
delete parsedUrl.query.__nextLocale;
|
|
382
|
+
delete parsedUrl.query.__nextDefaultLocale;
|
|
383
|
+
delete parsedUrl.query.__nextInferredLocaleFromDefault;
|
|
384
|
+
}
|
|
378
385
|
this.attachRequestMeta(req, parsedUrl);
|
|
379
|
-
const domainLocale = (
|
|
386
|
+
const domainLocale = (_this_i18nProvider1 = this.i18nProvider) == null ? void 0 : _this_i18nProvider1.detectDomainLocale(getHostname(parsedUrl, req.headers));
|
|
380
387
|
const defaultLocale = (domainLocale == null ? void 0 : domainLocale.defaultLocale) || ((_this_nextConfig_i18n = this.nextConfig.i18n) == null ? void 0 : _this_nextConfig_i18n.defaultLocale);
|
|
381
388
|
parsedUrl.query.__nextDefaultLocale = defaultLocale;
|
|
382
389
|
const url = parseUrlUtil(req.url.replace(/^\/+/, "/"));
|
|
@@ -393,7 +400,7 @@ export default class Server {
|
|
|
393
400
|
// TODO: merge handling with x-invoke-path
|
|
394
401
|
if (useMatchedPathHeader) {
|
|
395
402
|
try {
|
|
396
|
-
var
|
|
403
|
+
var _this_i18nProvider2, _this_getRoutesManifest;
|
|
397
404
|
if (this.hasAppDir) {
|
|
398
405
|
// ensure /index path is normalized for prerender
|
|
399
406
|
// in minimal mode
|
|
@@ -415,7 +422,7 @@ export default class Server {
|
|
|
415
422
|
const normalizedUrlPath = this.stripNextDataPath(urlPathname);
|
|
416
423
|
matchedPath = this.stripNextDataPath(matchedPath, false);
|
|
417
424
|
// Perform locale detection and normalization.
|
|
418
|
-
const localeAnalysisResult = (
|
|
425
|
+
const localeAnalysisResult = (_this_i18nProvider2 = this.i18nProvider) == null ? void 0 : _this_i18nProvider2.analyze(matchedPath, {
|
|
419
426
|
defaultLocale
|
|
420
427
|
});
|
|
421
428
|
// The locale result will be defined even if the locale was not
|