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
|
@@ -2916,6 +2916,11 @@ function createResolvedModelChunk(response, value) {
|
|
|
2916
2916
|
return new Chunk(RESOLVED_MODEL, value, null, response);
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
|
+
function createErroredChunk(response, reason) {
|
|
2920
|
+
// $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
|
|
2921
|
+
return new Chunk(ERRORED, null, reason, response);
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2919
2924
|
function bindArgs$1(fn, args) {
|
|
2920
2925
|
return fn.bind.apply(fn, [null].concat(args));
|
|
2921
2926
|
}
|
|
@@ -2987,6 +2992,9 @@ function initializeModelChunk(chunk) {
|
|
|
2987
2992
|
|
|
2988
2993
|
|
|
2989
2994
|
function reportGlobalError(response, error) {
|
|
2995
|
+
response._closed = true;
|
|
2996
|
+
response._closedReason = error;
|
|
2997
|
+
|
|
2990
2998
|
response._chunks.forEach(function (chunk) {
|
|
2991
2999
|
// If this chunk was already resolved or errored, it won't
|
|
2992
3000
|
// trigger an error but if it wasn't then we need to
|
|
@@ -3010,6 +3018,10 @@ function getChunk(response, id) {
|
|
|
3010
3018
|
if (backingEntry != null) {
|
|
3011
3019
|
// We assume that this is a string entry for now.
|
|
3012
3020
|
chunk = createResolvedModelChunk(response, backingEntry);
|
|
3021
|
+
} else if (response._closed) {
|
|
3022
|
+
// We have already errored the response and we're not going to get
|
|
3023
|
+
// anything more streaming in so this will immediately error.
|
|
3024
|
+
chunk = createErroredChunk(response, response._closedReason);
|
|
3013
3025
|
} else {
|
|
3014
3026
|
// We're still waiting on this entry to stream in.
|
|
3015
3027
|
chunk = createPendingChunk(response);
|
|
@@ -3241,7 +3253,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
|
|
|
3241
3253
|
}
|
|
3242
3254
|
|
|
3243
3255
|
return value;
|
|
3244
|
-
}
|
|
3256
|
+
},
|
|
3257
|
+
_closed: false,
|
|
3258
|
+
_closedReason: null
|
|
3245
3259
|
};
|
|
3246
3260
|
return response;
|
|
3247
3261
|
}
|
|
@@ -60,13 +60,13 @@ function wb(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=U.get(e);if(
|
|
|
60
60
|
function V(a){var b=__turbopack_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);
|
|
61
61
|
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":xb(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};function yb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
|
62
62
|
function zb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&yb(d,b)}}function Ab(a,b,d,c,e,f){var g=tb(a._bundlerConfig,b);a=wb(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(Bb(c,e,f),Cb(c));return null}var X=null,Y=null;
|
|
63
|
-
function xb(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 Db(a,b){a._chunks.forEach(function(d){"pending"===d.status&&zb(d,b)})}
|
|
64
|
-
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 Bb(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&&yb(e,c.value))}}function Cb(a){return function(b){return zb(a,b)}}
|
|
63
|
+
function xb(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 Db(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&zb(d,b)})}
|
|
64
|
+
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 Bb(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&&yb(e,c.value))}}function Cb(a){return function(b){return zb(a,b)}}
|
|
65
65
|
function Eb(a,b){a=Z(a,b);"resolved_model"===a.status&&xb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
|
66
66
|
function Ib(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=Eb(a,c),Ab(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Eb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Eb(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),
|
|
67
67
|
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":xb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Bb(c,b,d),Cb(c)),null;default:throw a.reason;}}return c}
|
|
68
|
-
function Jb(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?Ib(e,this,f,g):g}};return e}function Kb(a){Db(a,Error("Connection closed."))}
|
|
69
|
-
function Mb(a,b,d){a=Jb(b,d,a);Kb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,ja)};
|
|
68
|
+
function Jb(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?Ib(e,this,f,g):g},_closed:!1,_closedReason:null};return e}function Kb(a){Db(a,Error("Connection closed."))}
|
|
69
|
+
function Lb(a,b,d){var c=tb(a,b);a=wb(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 Mb(a,b,d){a=Jb(b,d,a);Kb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,ja)};
|
|
70
70
|
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=Mb(a,b,e),c=Lb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Lb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Jb(b,"",a);Kb(a);return Z(a,0)};
|
|
71
71
|
exports.registerClientReference=function(a,b,d){return v(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:u},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:fa}})};
|
|
72
72
|
exports.renderToReadableStream=function(a,b,d){var c=db(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)sb(c,e.reason);else{var f=function(){sb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){c.flushScheduled=null!==c.destination;mb(c)},pull:function(g){if(1===c.status)c.status=2,ca(g,c.fatalError);else if(2!==c.status&&null===
|
|
@@ -2928,6 +2928,11 @@ function createResolvedModelChunk(response, value) {
|
|
|
2928
2928
|
return new Chunk(RESOLVED_MODEL, value, null, response);
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
|
+
function createErroredChunk(response, reason) {
|
|
2932
|
+
// $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
|
|
2933
|
+
return new Chunk(ERRORED, null, reason, response);
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2931
2936
|
function bindArgs$1(fn, args) {
|
|
2932
2937
|
return fn.bind.apply(fn, [null].concat(args));
|
|
2933
2938
|
}
|
|
@@ -2999,6 +3004,9 @@ function initializeModelChunk(chunk) {
|
|
|
2999
3004
|
|
|
3000
3005
|
|
|
3001
3006
|
function reportGlobalError(response, error) {
|
|
3007
|
+
response._closed = true;
|
|
3008
|
+
response._closedReason = error;
|
|
3009
|
+
|
|
3002
3010
|
response._chunks.forEach(function (chunk) {
|
|
3003
3011
|
// If this chunk was already resolved or errored, it won't
|
|
3004
3012
|
// trigger an error but if it wasn't then we need to
|
|
@@ -3022,6 +3030,10 @@ function getChunk(response, id) {
|
|
|
3022
3030
|
if (backingEntry != null) {
|
|
3023
3031
|
// We assume that this is a string entry for now.
|
|
3024
3032
|
chunk = createResolvedModelChunk(response, backingEntry);
|
|
3033
|
+
} else if (response._closed) {
|
|
3034
|
+
// We have already errored the response and we're not going to get
|
|
3035
|
+
// anything more streaming in so this will immediately error.
|
|
3036
|
+
chunk = createErroredChunk(response, response._closedReason);
|
|
3025
3037
|
} else {
|
|
3026
3038
|
// We're still waiting on this entry to stream in.
|
|
3027
3039
|
chunk = createPendingChunk(response);
|
|
@@ -3253,7 +3265,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
|
|
|
3253
3265
|
}
|
|
3254
3266
|
|
|
3255
3267
|
return value;
|
|
3256
|
-
}
|
|
3268
|
+
},
|
|
3269
|
+
_closed: false,
|
|
3270
|
+
_closedReason: null
|
|
3257
3271
|
};
|
|
3258
3272
|
return response;
|
|
3259
3273
|
}
|
|
@@ -55,19 +55,19 @@ function S(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,
|
|
|
55
55
|
b.close()}function vb(a){a.flushScheduled=null!==a.destination;ta?setTimeout(function(){return ua.run(a,pb,a)},0):setTimeout(function(){return pb(a)},0)}function mb(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;setTimeout(function(){return S(a,b)},0)}}
|
|
56
56
|
function wb(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=Q(a,c);a.pendingChunks++;var f=a.nextChunkId++;R(a,f,e,c);d.forEach(function(g){g.status=3;var h=U(f);g=qb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(g){Q(a,g),ub(a,g)}}
|
|
57
57
|
function hb(a){if(a){var b=D;Ia(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!ab[e]){var f={$$typeof:xa,_currentValue:C,_currentValue2:C,_defaultValue:C,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:wa,_context:f};ab[e]=f}Ja(ab[e],c)}a=D;Ia(b);return a}return null}
|
|
58
|
-
function xb(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
|
|
59
|
-
function
|
|
60
|
-
function
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
function Eb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Db(d,b)}}function Fb(a,b,d,c,e,f){var g=xb(a._bundlerConfig,b);a=
|
|
64
|
-
function Cb(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 Ib(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Eb(d,b)})}
|
|
65
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new
|
|
58
|
+
function xb(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 yb=new Map;
|
|
59
|
+
function zb(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 Ab(){}
|
|
60
|
+
function Bb(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=yb.get(e);if(void 0===f){f=globalThis.__next_chunk_load__(e);d.push(f);var g=yb.set.bind(yb,e,null);f.then(g,Ab);yb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?zb(a[0]):Promise.all(d).then(function(){return zb(a[0])}):0<d.length?Promise.all(d):null}
|
|
61
|
+
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);
|
|
62
|
+
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Cb(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 Db(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
|
63
|
+
function Eb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Db(d,b)}}function Fb(a,b,d,c,e,f){var g=xb(a._bundlerConfig,b);a=Bb(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(Gb(c,e,f),Hb(c));return null}var X=null,Y=null;
|
|
64
|
+
function Cb(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 Ib(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Eb(d,b)})}
|
|
65
|
+
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 Gb(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&&Db(e,c.value))}}function Hb(a){return function(b){return Eb(a,b)}}
|
|
66
66
|
function Mb(a,b){a=Z(a,b);"resolved_model"===a.status&&Cb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
|
67
67
|
function Nb(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=Mb(a,c),Fb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Mb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Mb(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),
|
|
68
68
|
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":Cb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Gb(c,b,d),Hb(c)),null;default:throw a.reason;}}return c}
|
|
69
|
-
function Ob(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?Nb(e,this,f,g):g}};return e}function Pb(a){Ib(a,Error("Connection closed."))}
|
|
70
|
-
function Rb(a,b,d){a=Ob(b,d,a);Pb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,ja)};
|
|
69
|
+
function Ob(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?Nb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}function Pb(a){Ib(a,Error("Connection closed."))}
|
|
70
|
+
function Qb(a,b,d){var c=xb(a,b);a=Bb(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 Rb(a,b,d){a=Ob(b,d,a);Pb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}exports.createClientModuleProxy=function(a){a=v({},a,!1);return new Proxy(a,ja)};
|
|
71
71
|
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=Rb(a,b,e),c=Qb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Qb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Ob(b,"",a);Pb(a);return Z(a,0)};
|
|
72
72
|
exports.registerClientReference=function(a,b,d){return v(a,b+"#"+d,!1)};exports.registerServerReference=function(a,b,d){return Object.defineProperties(a,{$$typeof:{value:u},$$id:{value:null===d?b:b+"#"+d},$$bound:{value:null},bind:{value:fa}})};
|
|
73
73
|
exports.renderToReadableStream=function(a,b,d){var c=fb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)wb(c,e.reason);else{var f=function(){wb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){vb(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{S(c,
|
|
@@ -3013,6 +3013,11 @@ function createResolvedModelChunk(response, value) {
|
|
|
3013
3013
|
return new Chunk(RESOLVED_MODEL, value, null, response);
|
|
3014
3014
|
}
|
|
3015
3015
|
|
|
3016
|
+
function createErroredChunk(response, reason) {
|
|
3017
|
+
// $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
|
|
3018
|
+
return new Chunk(ERRORED, null, reason, response);
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3016
3021
|
function resolveModelChunk(chunk, value) {
|
|
3017
3022
|
if (chunk.status !== PENDING) {
|
|
3018
3023
|
// We already resolved. We didn't expect to see this.
|
|
@@ -3106,6 +3111,9 @@ function initializeModelChunk(chunk) {
|
|
|
3106
3111
|
|
|
3107
3112
|
|
|
3108
3113
|
function reportGlobalError(response, error) {
|
|
3114
|
+
response._closed = true;
|
|
3115
|
+
response._closedReason = error;
|
|
3116
|
+
|
|
3109
3117
|
response._chunks.forEach(function (chunk) {
|
|
3110
3118
|
// If this chunk was already resolved or errored, it won't
|
|
3111
3119
|
// trigger an error but if it wasn't then we need to
|
|
@@ -3129,6 +3137,10 @@ function getChunk(response, id) {
|
|
|
3129
3137
|
if (backingEntry != null) {
|
|
3130
3138
|
// We assume that this is a string entry for now.
|
|
3131
3139
|
chunk = createResolvedModelChunk(response, backingEntry);
|
|
3140
|
+
} else if (response._closed) {
|
|
3141
|
+
// We have already errored the response and we're not going to get
|
|
3142
|
+
// anything more streaming in so this will immediately error.
|
|
3143
|
+
chunk = createErroredChunk(response, response._closedReason);
|
|
3132
3144
|
} else {
|
|
3133
3145
|
// We're still waiting on this entry to stream in.
|
|
3134
3146
|
chunk = createPendingChunk(response);
|
|
@@ -3360,7 +3372,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
|
|
|
3360
3372
|
}
|
|
3361
3373
|
|
|
3362
3374
|
return value;
|
|
3363
|
-
}
|
|
3375
|
+
},
|
|
3376
|
+
_closed: false,
|
|
3377
|
+
_closedReason: null
|
|
3364
3378
|
};
|
|
3365
3379
|
return response;
|
|
3366
3380
|
}
|
|
@@ -30,49 +30,49 @@ function M(){throw Error("This Hook is not supported in Server Components.");}fu
|
|
|
30
30
|
function Ta(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return Na(L,a,b)}if(a.$$typeof===ya)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Va(){return(new AbortController).signal}function Wa(){var a=y();return a?a.cache:new Map}
|
|
31
31
|
var Xa={getCacheSignal:function(){var a=Wa(),b=a.get(Va);void 0===b&&(b=Va(),a.set(Va,b));return b},getCacheForType:function(a){var b=Wa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ya=Array.isArray;function Za(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
|
32
32
|
function $a(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ya(a))return"[...]";a=Za(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
|
33
|
-
function
|
|
34
|
-
function
|
|
35
|
-
$a(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
|
|
36
|
-
function
|
|
37
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?
|
|
38
|
-
function
|
|
39
|
-
d.id,e);null!==a.destination&&
|
|
40
|
-
function
|
|
41
|
-
function
|
|
42
|
-
b._init;b=g(b._payload);return
|
|
43
|
-
function
|
|
44
|
-
function
|
|
45
|
-
g];a.pendingChunks++;var G=a.nextChunkId++,C=
|
|
46
|
-
function
|
|
47
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return
|
|
48
|
-
c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+
|
|
49
|
-
d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),
|
|
50
|
-
b={id:c.$$id,bound:b?Promise.resolve(b):null},a=
|
|
51
|
-
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.")+
|
|
52
|
-
function
|
|
53
|
-
function
|
|
54
|
-
function
|
|
55
|
-
C===La?Oa():C;if("object"===typeof r&&null!==r&&"function"===typeof r.then){var p=f.ping;r.then(p,p);f.thenableState=Pa()}else{g.abortableTasks.delete(f);f.status=4;var G=
|
|
56
|
-
function
|
|
57
|
-
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function
|
|
58
|
-
function
|
|
59
|
-
function
|
|
60
|
-
function
|
|
61
|
-
function
|
|
62
|
-
function
|
|
63
|
-
function
|
|
64
|
-
function
|
|
65
|
-
|
|
66
|
-
function Hb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Gb(d,b)}}function Ib(a,b,d,c,e,f){var g=
|
|
67
|
-
function Fb(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 Lb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Hb(d,b)})}
|
|
68
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new
|
|
33
|
+
function ab(a){if("string"===typeof a)return a;switch(a){case Aa:return"Suspense";case Ba:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case za:return ab(a.render);case Ca:return ab(a.type);case D:var b=a._payload;a=a._init;try{return ab(a(b))}catch(d){}}return""}
|
|
34
|
+
function N(a,b){var d=Za(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ya(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):$a(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="<"+ab(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):
|
|
35
|
+
$a(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 bb=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cb=bb.ContextRegistry,O=JSON.stringify,db=bb.ReactCurrentDispatcher,eb=bb.ReactCurrentCache;function fb(a){console.error(a)}function gb(){}
|
|
36
|
+
function hb(a,b,d,c,e,f){if(null!==eb.current&&eb.current!==Xa)throw Error("Currently React only supports one RSC renderer at a time.");ua.current=ta;eb.current=Xa;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,
|
|
37
|
+
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?fb:d,onPostpone:void 0===f?gb:f,toJSON:function(r,p){return ib(n,this,r,p)}};n.pendingChunks++;b=jb(c);a=kb(n,a,b,g);h.push(a);return n}var P=null;function y(){if(P)return P;var a=va.getStore();return a?a:null}var lb={};
|
|
38
|
+
function mb(a,b){a.pendingChunks++;var d=kb(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,nb(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;nb(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=Q(a,e);R(a,
|
|
39
|
+
d.id,e);null!==a.destination&&S(a,a.destination)});return d.id}function z(a,b,d){d=O(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;a.completedHintChunks.push(b+d+"\n");ob(a)}function pb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
|
40
|
+
function qb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:pb}}
|
|
41
|
+
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===v)return[B,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:qb(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===wa?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 D:var g=
|
|
42
|
+
b._init;b=g(b._payload);return T(a,b,d,c,e,f);case za:return a=b.render,K=0,L=f,a(e,void 0);case Ca:return T(a,b.type,d,c,e,f);case xa:return Ka(b._context,e.value),[B,b,d,{value:e.value,children:e.children,__pop:lb}]}}throw Error("Unsupported Server Component type: "+$a(b));}function nb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return rb(a)}))}
|
|
43
|
+
function kb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return nb(a,e)},thenableState:null};c.add(e);return e}function U(a){return"$"+a.toString(16)}function sb(a,b,d){a=O(d);return b.toString(16)+":"+a+"\n"}
|
|
44
|
+
function tb(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):U(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var n=h[k];if(n)g=n.name;else{var r=k.lastIndexOf("#");-1!==r&&(g=k.slice(r+1),n=h[k.slice(0,r)]);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 p=!0===c.$$async?[n.id,n.chunks,g,1]:[n.id,n.chunks,
|
|
45
|
+
g];a.pendingChunks++;var G=a.nextChunkId++,C=O(p),Nb=G.toString(16)+":I"+C+"\n";a.completedImportChunks.push(Nb);f.set(e,G);return b[0]===B&&"1"===d?"$L"+G.toString(16):U(G)}catch(Ob){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,Ob),R(a,b,d),U(b)}}function ub(a,b){a.pendingChunks++;var d=a.nextChunkId++;vb(a,d,b);return d}
|
|
46
|
+
function ib(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===D);)try{switch(c.$$typeof){case B:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case D:var f=c._init;c=f(c._payload)}}catch(g){d=g===La?Oa():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=kb(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Pa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+
|
|
47
|
+
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return tb(a,b,d,c);if("function"===typeof c.then)return"$@"+mb(a,c).toString(16);if(c.$$typeof===xa)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=sb(a,d,"$P"+c),a.completedRegularChunks.push(c)),U(d);if(c===lb){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=
|
|
48
|
+
c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+ub(a,Array.from(c)).toString(16):c instanceof Set?"$W"+ub(a,Array.from(c)).toString(16):!Ya(c)&&(null===c||"object"!==typeof c?a=null:(a=Ea&&c[Ea]||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,"utf8"):c.byteLength,b=
|
|
49
|
+
d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),U(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 tb(a,b,d,c);if(c.$$typeof===w)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
|
|
50
|
+
b={id:c.$$id,bound:b?Promise.resolve(b):null},a=ub(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."+N(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".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return U(f);
|
|
51
|
+
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=sb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return U(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}
|
|
52
|
+
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 wb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
|
53
|
+
function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+O(d)+"\n";a.completedErrorChunks.push(b)}function vb(a,b,d){d=O(d,a.toJSON);b=b.toString(16)+":"+d+"\n";a.completedRegularChunks.push(b)}
|
|
54
|
+
function rb(a){var b=db.current;db.current=Ua;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){Ja(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=T(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=T(g,k.type,k.key,k.ref,k.props,null)}vb(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(C){var r=
|
|
55
|
+
C===La?Oa():C;if("object"===typeof r&&null!==r&&"function"===typeof r.then){var p=f.ping;r.then(p,p);f.thenableState=Pa()}else{g.abortableTasks.delete(f);f.status=4;var G=Q(g,r);R(g,f.id,G)}}}}null!==a.destination&&S(a,a.destination)}catch(C){Q(a,C),wb(a,C)}finally{db.current=b,J=null,P=d}}
|
|
56
|
+
function S(a,b){l=new Uint8Array(2048);m=0;q=!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=
|
|
57
|
+
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function xb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return va.run(a,rb,a)})}function ob(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)})}}
|
|
58
|
+
function yb(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),wb(a,d)}}}
|
|
59
|
+
function zb(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=Q(a,c);a.pendingChunks++;var f=a.nextChunkId++;R(a,f,e,c);d.forEach(function(g){g.status=3;var h=U(f);g=sb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(g){Q(a,g),wb(a,g)}}
|
|
60
|
+
function jb(a){if(a){var b=F;Ja(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!cb[e]){var f={$$typeof:ya,_currentValue:E,_currentValue2:E,_defaultValue:E,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:xa,_context:f};cb[e]=f}Ka(cb[e],c)}a=F;Ja(b);return a}return null}
|
|
61
|
+
function Ab(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 Bb=new Map;
|
|
62
|
+
function Cb(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 Db(){}
|
|
63
|
+
function Eb(a){for(var b=a[1],d=[],c=0;c<b.length;c++){var e=b[c],f=Bb.get(e);if(void 0===f){f=globalThis.__next_chunk_load__(e);d.push(f);var g=Bb.set.bind(Bb,e,null);f.then(g,Db);Bb.set(e,f)}else null!==f&&d.push(f)}return 4===a.length?0===d.length?Cb(a[0]):Promise.all(d).then(function(){return Cb(a[0])}):0<d.length?Promise.all(d):null}
|
|
64
|
+
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);
|
|
65
|
+
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":Fb(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 Gb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
|
66
|
+
function Hb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Gb(d,b)}}function Ib(a,b,d,c,e,f){var g=Ab(a._bundlerConfig,b);a=Eb(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(Jb(c,e,f),Kb(c));return null}var X=null,Y=null;
|
|
67
|
+
function Fb(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 Lb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Hb(d,b)})}
|
|
68
|
+
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 Jb(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&&Gb(e,c.value))}}function Kb(a){return function(b){return Hb(a,b)}}
|
|
69
69
|
function Mb(a,b){a=Z(a,b);"resolved_model"===a.status&&Fb(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
|
70
70
|
function Pb(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=Mb(a,c),Ib(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Mb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Mb(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),
|
|
71
71
|
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":Fb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Jb(c,b,d),Kb(c)),null;default:throw a.reason;}}return c}
|
|
72
|
-
function Qb(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?Pb(e,this,f,g):g}};return e}
|
|
72
|
+
function Qb(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?Pb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}
|
|
73
73
|
function Rb(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(Fb(b),b.status){case "fulfilled":Gb(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&Gb(a,b.reason)}}function Sb(a){Lb(a,Error("Connection closed."))}
|
|
74
|
-
function Tb(a,b,d){var c=
|
|
74
|
+
function Tb(a,b,d){var c=Ab(a,b);a=Eb(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 Ub(a,b,d){a=Qb(b,d,a);Sb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Vb(a,b){return function(){return yb(b,a)}}exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,la)};
|
|
75
75
|
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=Ub(a,b,e),c=Tb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Tb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Qb(b,"",a);Sb(a);return Z(a,0)};
|
|
76
76
|
exports.decodeReplyFromBusboy=function(a,b){var d=Qb(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Rb(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 r=[];g.on("data",function(p){r.push(p)});g.on("end",function(){var p=
|
|
77
77
|
new Blob(r,{type:n});d._formData.append(f,p,k);c--;if(0===c){for(p=0;p<e.length;p+=2)Rb(d,e[p],e[p+1]);e.length=0}})});a.on("finish",function(){Sb(d)});a.on("error",function(f){Lb(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}})};
|
|
78
|
-
exports.renderToPipeableStream=function(a,b,d){var c=
|
|
78
|
+
exports.renderToPipeableStream=function(a,b,d){var c=hb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0),e=!1;xb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;yb(c,f);f.on("drain",Vb(f,c));return f},abort:function(f){zb(c,f)}}};
|
|
@@ -2942,6 +2942,11 @@ function createResolvedModelChunk(response, value) {
|
|
|
2942
2942
|
return new Chunk(RESOLVED_MODEL, value, null, response);
|
|
2943
2943
|
}
|
|
2944
2944
|
|
|
2945
|
+
function createErroredChunk(response, reason) {
|
|
2946
|
+
// $FlowFixMe[invalid-constructor] Flow doesn't support functions as constructors
|
|
2947
|
+
return new Chunk(ERRORED, null, reason, response);
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2945
2950
|
function resolveModelChunk(chunk, value) {
|
|
2946
2951
|
if (chunk.status !== PENDING) {
|
|
2947
2952
|
// We already resolved. We didn't expect to see this.
|
|
@@ -3035,6 +3040,9 @@ function initializeModelChunk(chunk) {
|
|
|
3035
3040
|
|
|
3036
3041
|
|
|
3037
3042
|
function reportGlobalError(response, error) {
|
|
3043
|
+
response._closed = true;
|
|
3044
|
+
response._closedReason = error;
|
|
3045
|
+
|
|
3038
3046
|
response._chunks.forEach(function (chunk) {
|
|
3039
3047
|
// If this chunk was already resolved or errored, it won't
|
|
3040
3048
|
// trigger an error but if it wasn't then we need to
|
|
@@ -3058,6 +3066,10 @@ function getChunk(response, id) {
|
|
|
3058
3066
|
if (backingEntry != null) {
|
|
3059
3067
|
// We assume that this is a string entry for now.
|
|
3060
3068
|
chunk = createResolvedModelChunk(response, backingEntry);
|
|
3069
|
+
} else if (response._closed) {
|
|
3070
|
+
// We have already errored the response and we're not going to get
|
|
3071
|
+
// anything more streaming in so this will immediately error.
|
|
3072
|
+
chunk = createErroredChunk(response, response._closedReason);
|
|
3061
3073
|
} else {
|
|
3062
3074
|
// We're still waiting on this entry to stream in.
|
|
3063
3075
|
chunk = createPendingChunk(response);
|
|
@@ -3289,7 +3301,9 @@ function createResponse(bundlerConfig, formFieldPrefix) {
|
|
|
3289
3301
|
}
|
|
3290
3302
|
|
|
3291
3303
|
return value;
|
|
3292
|
-
}
|
|
3304
|
+
},
|
|
3305
|
+
_closed: false,
|
|
3306
|
+
_closedReason: null
|
|
3293
3307
|
};
|
|
3294
3308
|
return response;
|
|
3295
3309
|
}
|
|
@@ -30,46 +30,46 @@ function M(){throw Error("This Hook is not supported in Server Components.");}fu
|
|
|
30
30
|
function Ta(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return Na(L,a,b)}if(a.$$typeof===ya)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Va(){return(new AbortController).signal}function Wa(){var a=y();return a?a.cache:new Map}
|
|
31
31
|
var Xa={getCacheSignal:function(){var a=Wa(),b=a.get(Va);void 0===b&&(b=Va(),a.set(Va,b));return b},getCacheForType:function(a){var b=Wa(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},Ya=Array.isArray;function Za(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
|
32
32
|
function $a(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(Ya(a))return"[...]";a=Za(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
|
33
|
-
function
|
|
34
|
-
function
|
|
35
|
-
$a(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
|
|
36
|
-
function
|
|
37
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?
|
|
38
|
-
function
|
|
39
|
-
d.id,e);null!==a.destination&&
|
|
40
|
-
function
|
|
41
|
-
function
|
|
42
|
-
b._init;b=g(b._payload);return
|
|
43
|
-
function
|
|
44
|
-
function
|
|
45
|
-
g];a.pendingChunks++;var G=a.nextChunkId++,C=
|
|
46
|
-
function
|
|
47
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return
|
|
48
|
-
c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+
|
|
49
|
-
d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),
|
|
50
|
-
b={id:c.$$id,bound:b?Promise.resolve(b):null},a=
|
|
51
|
-
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.")+
|
|
52
|
-
function
|
|
53
|
-
function
|
|
54
|
-
function
|
|
55
|
-
C===La?Oa():C;if("object"===typeof r&&null!==r&&"function"===typeof r.then){var p=f.ping;r.then(p,p);f.thenableState=Pa()}else{g.abortableTasks.delete(f);f.status=4;var G=
|
|
56
|
-
function
|
|
57
|
-
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function
|
|
58
|
-
function
|
|
59
|
-
function
|
|
60
|
-
function
|
|
61
|
-
function
|
|
62
|
-
function
|
|
63
|
-
function
|
|
64
|
-
function Db(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 Jb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&Fb(d,b)})}
|
|
65
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new
|
|
33
|
+
function ab(a){if("string"===typeof a)return a;switch(a){case Aa:return"Suspense";case Ba:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case za:return ab(a.render);case Ca:return ab(a.type);case D:var b=a._payload;a=a._init;try{return ab(a(b))}catch(d){}}return""}
|
|
34
|
+
function N(a,b){var d=Za(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(Ya(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):$a(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="<"+ab(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):
|
|
35
|
+
$a(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 bb=ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cb=bb.ContextRegistry,O=JSON.stringify,db=bb.ReactCurrentDispatcher,eb=bb.ReactCurrentCache;function fb(a){console.error(a)}function gb(){}
|
|
36
|
+
function hb(a,b,d,c,e,f){if(null!==eb.current&&eb.current!==Xa)throw Error("Currently React only supports one RSC renderer at a time.");ua.current=ta;eb.current=Xa;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,
|
|
37
|
+
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?fb:d,onPostpone:void 0===f?gb:f,toJSON:function(r,p){return ib(n,this,r,p)}};n.pendingChunks++;b=jb(c);a=kb(n,a,b,g);h.push(a);return n}var P=null;function y(){if(P)return P;var a=va.getStore();return a?a:null}var lb={};
|
|
38
|
+
function mb(a,b){a.pendingChunks++;var d=kb(a,null,F,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,nb(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;nb(a,d)},function(e){d.status=4;a.abortableTasks.delete(d);e=Q(a,e);R(a,
|
|
39
|
+
d.id,e);null!==a.destination&&S(a,a.destination)});return d.id}function z(a,b,d){d=O(d);var c=a.nextChunkId++;b="H"+b;b=c.toString(16)+":"+b;a.completedHintChunks.push(b+d+"\n");ob(a)}function pb(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}
|
|
40
|
+
function qb(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:D,_payload:a,_init:pb}}
|
|
41
|
+
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===v)return[B,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:qb(e):e}if("string"===typeof b)return[B,b,d,e];if("symbol"===typeof b)return b===wa?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 D:var g=
|
|
42
|
+
b._init;b=g(b._payload);return T(a,b,d,c,e,f);case za:return a=b.render,K=0,L=f,a(e,void 0);case Ca:return T(a,b.type,d,c,e,f);case xa:return Ka(b._context,e.value),[B,b,d,{value:e.value,children:e.children,__pop:lb}]}}throw Error("Unsupported Server Component type: "+$a(b));}function nb(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,setImmediate(function(){return rb(a)}))}
|
|
43
|
+
function kb(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return nb(a,e)},thenableState:null};c.add(e);return e}function U(a){return"$"+a.toString(16)}function sb(a,b,d){a=O(d);return b.toString(16)+":"+a+"\n"}
|
|
44
|
+
function tb(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):U(g);try{var h=a.bundlerConfig,k=c.$$id;g="";var n=h[k];if(n)g=n.name;else{var r=k.lastIndexOf("#");-1!==r&&(g=k.slice(r+1),n=h[k.slice(0,r)]);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 p=!0===c.$$async?[n.id,n.chunks,g,1]:[n.id,n.chunks,
|
|
45
|
+
g];a.pendingChunks++;var G=a.nextChunkId++,C=O(p),Mb=G.toString(16)+":I"+C+"\n";a.completedImportChunks.push(Mb);f.set(e,G);return b[0]===B&&"1"===d?"$L"+G.toString(16):U(G)}catch(Nb){return a.pendingChunks++,b=a.nextChunkId++,d=Q(a,Nb),R(a,b,d),U(b)}}function ub(a,b){a.pendingChunks++;var d=a.nextChunkId++;vb(a,d,b);return d}
|
|
46
|
+
function ib(a,b,d,c){switch(c){case B:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===B||c.$$typeof===D);)try{switch(c.$$typeof){case B:var e=c;c=T(a,e.type,e.key,e.ref,e.props,null);break;case D:var f=c._init;c=f(c._payload)}}catch(g){d=g===La?Oa():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=kb(a,c,F,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Pa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=Q(a,d);R(a,c,d);return"$L"+
|
|
47
|
+
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===v)return tb(a,b,d,c);if("function"===typeof c.then)return"$@"+mb(a,c).toString(16);if(c.$$typeof===xa)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=sb(a,d,"$P"+c),a.completedRegularChunks.push(c)),U(d);if(c===lb){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=
|
|
48
|
+
c===E?a.context._defaultValue:c;F=a.parent;return}return c instanceof Map?"$Q"+ub(a,Array.from(c)).toString(16):c instanceof Set?"$W"+ub(a,Array.from(c)).toString(16):!Ya(c)&&(null===c||"object"!==typeof c?a=null:(a=Ea&&c[Ea]||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,"utf8"):c.byteLength,b=
|
|
49
|
+
d.toString(16)+":T"+b.toString(16)+",",a.completedRegularChunks.push(b,c),U(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 tb(a,b,d,c);if(c.$$typeof===w)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
|
|
50
|
+
b={id:c.$$id,bound:b?Promise.resolve(b):null},a=ub(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."+N(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".'+N(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return U(f);
|
|
51
|
+
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=sb(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return U(d)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+N(b,d));}
|
|
52
|
+
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 wb(a,b){null!==a.destination?(a.status=2,a.destination.destroy(b)):(a.status=1,a.fatalError=b)}
|
|
53
|
+
function R(a,b,d){d={digest:d};b=b.toString(16)+":E"+O(d)+"\n";a.completedErrorChunks.push(b)}function vb(a,b,d){d=O(d,a.toJSON);b=b.toString(16)+":"+d+"\n";a.completedRegularChunks.push(b)}
|
|
54
|
+
function rb(a){var b=db.current;db.current=Ua;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){Ja(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=T(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=T(g,k.type,k.key,k.ref,k.props,null)}vb(g,f.id,h);g.abortableTasks.delete(f);f.status=1}catch(C){var r=
|
|
55
|
+
C===La?Oa():C;if("object"===typeof r&&null!==r&&"function"===typeof r.then){var p=f.ping;r.then(p,p);f.thenableState=Pa()}else{g.abortableTasks.delete(f);f.status=4;var G=Q(g,r);R(g,f.id,G)}}}}null!==a.destination&&S(a,a.destination)}catch(C){Q(a,C),wb(a,C)}finally{db.current=b,J=null,P=d}}
|
|
56
|
+
function S(a,b){l=new Uint8Array(2048);m=0;q=!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=
|
|
57
|
+
null;c++;break}g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&b.write(l.subarray(0,m)),l=null,m=0,q=!0}"function"===typeof b.flush&&b.flush();0===a.pendingChunks&&b.end()}function xb(a){a.flushScheduled=null!==a.destination;setImmediate(function(){return va.run(a,rb,a)})}function ob(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)})}}
|
|
58
|
+
function yb(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),wb(a,d)}}}
|
|
59
|
+
function zb(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=Q(a,c);a.pendingChunks++;var f=a.nextChunkId++;R(a,f,e,c);d.forEach(function(g){g.status=3;var h=U(f);g=sb(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&S(a,a.destination)}catch(g){Q(a,g),wb(a,g)}}
|
|
60
|
+
function jb(a){if(a){var b=F;Ja(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];if(!cb[e]){var f={$$typeof:ya,_currentValue:E,_currentValue2:E,_defaultValue:E,_threadCount:0,Provider:null,Consumer:null,_globalName:e};f.Provider={$$typeof:xa,_context:f};cb[e]=f}Ka(cb[e],c)}a=F;Ja(b);return a}return null}function Ab(a,b){var d=b.lastIndexOf("#");a=b.slice(0,d);b=b.slice(d+1);return{specifier:a,name:b}}var Bb=new Map;
|
|
61
|
+
function Cb(a){var b=Bb.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});Bb.set(a.specifier,d);return d}function V(a){var b=Bb.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]}
|
|
62
|
+
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":Db(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 Eb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
|
63
|
+
function Fb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&Eb(d,b)}}function Gb(a,b,d,c,e,f){var g=Ab(a._bundlerConfig,b);a=Cb(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(Hb(c,e,f),Ib(c));return null}var X=null,Y=null;
|
|
64
|
+
function Db(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 Jb(a,b){a._closed=!0;a._closedReason=b;a._chunks.forEach(function(d){"pending"===d.status&&Fb(d,b)})}
|
|
65
|
+
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 Hb(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&&Eb(e,c.value))}}function Ib(a){return function(b){return Fb(a,b)}}
|
|
66
66
|
function Kb(a,b){a=Z(a,b);"resolved_model"===a.status&&Db(a);if("fulfilled"!==a.status)throw a.reason;return a.value}
|
|
67
67
|
function Lb(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=Kb(a,c),Gb(a,c.id,c.bound,X,b,d);case "Q":return b=parseInt(c.slice(2),16),a=Kb(a,b),new Map(a);case "W":return b=parseInt(c.slice(2),16),a=Kb(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),
|
|
68
68
|
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":Db(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(Hb(c,b,d),Ib(c)),null;default:throw a.reason;}}return c}
|
|
69
|
-
function Ob(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?Lb(e,this,f,g):g}};return e}
|
|
69
|
+
function Ob(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?Lb(e,this,f,g):g},_closed:!1,_closedReason:null};return e}
|
|
70
70
|
function Pb(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(Db(b),b.status){case "fulfilled":Eb(c,b.value);break;case "pending":case "blocked":b.value=c;b.reason=a;break;case "rejected":a&&Eb(a,b.reason)}}function Qb(a){Jb(a,Error("Connection closed."))}
|
|
71
|
-
function Rb(a,b,d){var c=
|
|
71
|
+
function Rb(a,b,d){var c=Ab(a,b);a=Cb(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 Sb(a,b,d){a=Ob(b,d,a);Qb(a);a=Z(a,0);a.then(function(){});if("fulfilled"!==a.status)throw a.reason;return a.value}function Tb(a,b){return function(){return yb(b,a)}}exports.createClientModuleProxy=function(a){a=x({},a,!1);return new Proxy(a,la)};
|
|
72
72
|
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=Sb(a,b,e),c=Rb(b,e.id,e.bound)):f.startsWith("$ACTION_ID_")&&(e=f.slice(11),c=Rb(b,e,null)):d.append(f,e)});return null===c?null:c.then(function(e){return e.bind(null,d)})};exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=Ob(b,"",a);Qb(a);return Z(a,0)};
|
|
73
73
|
exports.decodeReplyFromBusboy=function(a,b){var d=Ob(b,""),c=0,e=[];a.on("field",function(f,g){0<c?e.push(f,g):Pb(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 r=[];g.on("data",function(p){r.push(p)});g.on("end",function(){var p=
|
|
74
74
|
new Blob(r,{type:n});d._formData.append(f,p,k);c--;if(0===c){for(p=0;p<e.length;p+=2)Pb(d,e[p],e[p+1]);e.length=0}})});a.on("finish",function(){Qb(d)});a.on("error",function(f){Jb(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}})};
|
|
75
|
-
exports.renderToPipeableStream=function(a,b,d){var c=
|
|
75
|
+
exports.renderToPipeableStream=function(a,b,d){var c=hb(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0,d?d.onPostpone:void 0),e=!1;xb(c);return{pipe:function(f){if(e)throw Error("React currently only supports piping to one writable stream.");e=!0;yb(c,f);f.on("drain",Tb(f,c));return f},abort:function(f){zb(c,f)}}};
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"loose-envify": "^1.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"react": "18.3.0-canary-
|
|
52
|
-
"react-dom": "18.3.0-canary-
|
|
51
|
+
"react": "18.3.0-canary-1dba980e1f-20241220",
|
|
52
|
+
"react-dom": "18.3.0-canary-1dba980e1f-20241220"
|
|
53
53
|
}
|
|
54
54
|
}
|