react-server-dom-webpack 18.3.0-next-fa4314841-20230502 → 19.0.0-beta-4508873393-20240430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-server-dom-webpack-client.browser.development.js +1893 -1200
- package/cjs/react-server-dom-webpack-client.browser.production.js +931 -0
- package/cjs/react-server-dom-webpack-client.edge.development.js +1888 -241
- package/cjs/react-server-dom-webpack-client.edge.production.js +1093 -0
- package/cjs/react-server-dom-webpack-client.node.development.js +1876 -259
- package/cjs/react-server-dom-webpack-client.node.production.js +1070 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +1833 -212
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.js +1049 -0
- package/cjs/react-server-dom-webpack-node-register.js +59 -10
- package/cjs/react-server-dom-webpack-plugin.js +389 -11
- package/cjs/react-server-dom-webpack-server.browser.development.js +2187 -937
- package/cjs/react-server-dom-webpack-server.browser.production.js +1935 -0
- package/cjs/react-server-dom-webpack-server.edge.development.js +2183 -941
- package/cjs/react-server-dom-webpack-server.edge.production.js +1956 -0
- package/cjs/react-server-dom-webpack-server.node.development.js +2169 -929
- package/cjs/react-server-dom-webpack-server.node.production.js +2083 -0
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +2116 -881
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +2051 -0
- package/client.browser.js +1 -1
- package/client.edge.js +1 -1
- package/client.node.js +1 -1
- package/client.node.unbundled.js +1 -1
- package/esm/{react-server-dom-webpack-node-loader.production.min.js → react-server-dom-webpack-node-loader.production.js} +20 -13
- package/package.json +8 -15
- package/server.browser.js +1 -1
- package/server.edge.js +1 -1
- package/server.node.js +1 -1
- package/server.node.unbundled.js +1 -1
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +0 -34
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +0 -28
- package/cjs/react-server-dom-webpack-client.node.production.min.js +0 -28
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +0 -26
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +0 -62
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +0 -62
- package/cjs/react-server-dom-webpack-server.node.production.min.js +0 -67
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +0 -65
- package/umd/react-server-dom-webpack-client.browser.development.js +0 -1731
- package/umd/react-server-dom-webpack-client.browser.production.min.js +0 -29
- package/umd/react-server-dom-webpack-server.browser.development.js +0 -2904
- package/umd/react-server-dom-webpack-server.browser.production.min.js +0 -51
package/client.browser.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-client.browser.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-client.browser.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-client.browser.development.js');
|
7
7
|
}
|
package/client.edge.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-client.edge.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-client.edge.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-client.edge.development.js');
|
7
7
|
}
|
package/client.node.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-client.node.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-client.node.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-client.node.development.js');
|
7
7
|
}
|
package/client.node.unbundled.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-client.node.unbundled.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-client.node.unbundled.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-client.node.unbundled.development.js');
|
7
7
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* @license React
|
3
|
-
* react-server-dom-webpack-node-loader.production.
|
3
|
+
* react-server-dom-webpack-node-loader.production.js
|
4
4
|
*
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
6
|
*
|
@@ -132,18 +132,21 @@ function transformServerModule(source, body, url, loader) {
|
|
132
132
|
}
|
133
133
|
}
|
134
134
|
|
135
|
+
if (localNames.size === 0) {
|
136
|
+
return source;
|
137
|
+
}
|
138
|
+
|
135
139
|
let newSrc = source + '\n\n;';
|
140
|
+
newSrc += 'import {registerServerReference} from "react-server-dom-webpack/server";\n';
|
136
141
|
localNames.forEach(function (exported, local) {
|
137
142
|
if (localTypes.get(local) !== 'function') {
|
138
143
|
// We first check if the export is a function and if so annotate it.
|
139
144
|
newSrc += 'if (typeof ' + local + ' === "function") ';
|
140
145
|
}
|
141
146
|
|
142
|
-
newSrc += '
|
143
|
-
newSrc +=
|
144
|
-
newSrc +=
|
145
|
-
newSrc += '$$bound: { value: null }';
|
146
|
-
newSrc += '});\n';
|
147
|
+
newSrc += 'registerServerReference(' + local + ',';
|
148
|
+
newSrc += JSON.stringify(url) + ',';
|
149
|
+
newSrc += JSON.stringify(exported) + ');\n';
|
147
150
|
});
|
148
151
|
return newSrc;
|
149
152
|
}
|
@@ -277,25 +280,29 @@ async function parseExportNamesInto(body, names, parentURL, loader) {
|
|
277
280
|
async function transformClientModule(body, url, loader) {
|
278
281
|
const names = [];
|
279
282
|
await parseExportNamesInto(body, names, url, loader);
|
280
|
-
|
283
|
+
|
284
|
+
if (names.length === 0) {
|
285
|
+
return '';
|
286
|
+
}
|
287
|
+
|
288
|
+
let newSrc = 'import {registerClientReference} from "react-server-dom-webpack/server";\n';
|
281
289
|
|
282
290
|
for (let i = 0; i < names.length; i++) {
|
283
291
|
const name = names[i];
|
284
292
|
|
285
293
|
if (name === 'default') {
|
286
294
|
newSrc += 'export default ';
|
287
|
-
newSrc += '
|
295
|
+
newSrc += 'registerClientReference(function() {';
|
288
296
|
newSrc += 'throw new Error(' + JSON.stringify("Attempted to call the default export of " + url + " from the server" + "but it's on the client. It's not possible to invoke a client function from " + "the server, it can only be rendered as a Component or passed to props of a" + "Client Component.") + ');';
|
289
297
|
} else {
|
290
298
|
newSrc += 'export const ' + name + ' = ';
|
291
|
-
newSrc += '
|
299
|
+
newSrc += 'registerClientReference(function() {';
|
292
300
|
newSrc += 'throw new Error(' + JSON.stringify("Attempted to call " + name + "() from the server but " + name + " is on the client. " + "It's not possible to invoke a client function from the server, it can " + "only be rendered as a Component or passed to props of a Client Component.") + ');';
|
293
301
|
}
|
294
302
|
|
295
|
-
newSrc += '},
|
296
|
-
newSrc +=
|
297
|
-
newSrc +=
|
298
|
-
newSrc += '});\n';
|
303
|
+
newSrc += '},';
|
304
|
+
newSrc += JSON.stringify(url) + ',';
|
305
|
+
newSrc += JSON.stringify(name) + ');\n';
|
299
306
|
}
|
300
307
|
|
301
308
|
return newSrc;
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-server-dom-webpack",
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
4
|
-
"version": "
|
4
|
+
"version": "19.0.0-beta-4508873393-20240430",
|
5
5
|
"keywords": [
|
6
6
|
"react"
|
7
7
|
],
|
8
|
-
"homepage": "https://
|
8
|
+
"homepage": "https://react.dev/",
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
10
10
|
"license": "MIT",
|
11
11
|
"files": [
|
@@ -25,7 +25,6 @@
|
|
25
25
|
"server.node.unbundled.js",
|
26
26
|
"node-register.js",
|
27
27
|
"cjs/",
|
28
|
-
"umd/",
|
29
28
|
"esm/"
|
30
29
|
],
|
31
30
|
"exports": {
|
@@ -33,13 +32,13 @@
|
|
33
32
|
"./plugin": "./plugin.js",
|
34
33
|
"./client": {
|
35
34
|
"workerd": "./client.edge.js",
|
36
|
-
"edge-light": "./client.edge.js",
|
37
35
|
"deno": "./client.edge.js",
|
38
36
|
"worker": "./client.edge.js",
|
39
37
|
"node": {
|
40
38
|
"webpack": "./client.node.js",
|
41
39
|
"default": "./client.node.unbundled.js"
|
42
40
|
},
|
41
|
+
"edge-light": "./client.edge.js",
|
43
42
|
"browser": "./client.browser.js",
|
44
43
|
"default": "./client.browser.js"
|
45
44
|
},
|
@@ -50,12 +49,12 @@
|
|
50
49
|
"./server": {
|
51
50
|
"react-server": {
|
52
51
|
"workerd": "./server.edge.js",
|
53
|
-
"edge-light": "./server.edge.js",
|
54
52
|
"deno": "./server.browser.js",
|
55
53
|
"node": {
|
56
54
|
"webpack": "./server.node.js",
|
57
55
|
"default": "./server.node.unbundled.js"
|
58
56
|
},
|
57
|
+
"edge-light": "./server.edge.js",
|
59
58
|
"browser": "./server.browser.js"
|
60
59
|
},
|
61
60
|
"default": "./server.js"
|
@@ -64,7 +63,7 @@
|
|
64
63
|
"./server.edge": "./server.edge.js",
|
65
64
|
"./server.node": "./server.node.js",
|
66
65
|
"./server.node.unbundled": "./server.node.unbundled.js",
|
67
|
-
"./node-loader": "./esm/react-server-dom-webpack-node-loader.production.
|
66
|
+
"./node-loader": "./esm/react-server-dom-webpack-node-loader.production.js",
|
68
67
|
"./node-register": "./node-register.js",
|
69
68
|
"./package.json": "./package.json"
|
70
69
|
},
|
@@ -78,18 +77,12 @@
|
|
78
77
|
"node": ">=0.10.0"
|
79
78
|
},
|
80
79
|
"peerDependencies": {
|
81
|
-
"react": "
|
82
|
-
"react-dom": "
|
80
|
+
"react": "19.0.0-beta-4508873393-20240430",
|
81
|
+
"react-dom": "19.0.0-beta-4508873393-20240430",
|
83
82
|
"webpack": "^5.59.0"
|
84
83
|
},
|
85
84
|
"dependencies": {
|
86
85
|
"acorn-loose": "^8.3.0",
|
87
|
-
"neo-async": "^2.6.1"
|
88
|
-
"loose-envify": "^1.1.0"
|
89
|
-
},
|
90
|
-
"browserify": {
|
91
|
-
"transform": [
|
92
|
-
"loose-envify"
|
93
|
-
]
|
86
|
+
"neo-async": "^2.6.1"
|
94
87
|
}
|
95
88
|
}
|
package/server.browser.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-server.browser.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-server.browser.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-server.browser.development.js');
|
7
7
|
}
|
package/server.edge.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-server.edge.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-server.edge.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-server.edge.development.js');
|
7
7
|
}
|
package/server.node.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-server.node.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-server.node.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-server.node.development.js');
|
7
7
|
}
|
package/server.node.unbundled.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
4
|
-
module.exports = require('./cjs/react-server-dom-webpack-server.node.unbundled.production.
|
4
|
+
module.exports = require('./cjs/react-server-dom-webpack-server.node.unbundled.production.js');
|
5
5
|
} else {
|
6
6
|
module.exports = require('./cjs/react-server-dom-webpack-server.node.unbundled.development.js');
|
7
7
|
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-client.browser.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var m=require("react-dom"),n=require("react"),p={stream:!0};function r(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var t=new Map,u=new Map;function v(){}
|
11
|
-
function w(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],g=t.get(e);if(void 0===g){g=__webpack_chunk_load__(e);c.push(g);var k=t.set.bind(t,e,null);g.then(k,v);t.set(e,g)}else null!==g&&c.push(g)}if(a.async){if(b=u.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(c).then(function(){return __webpack_require__(a.id)});h.then(function(l){h.status="fulfilled";h.value=l},function(l){h.status="rejected";h.reason=l});u.set(a.id,h);return h}return 0<c.length?Promise.all(c):null}
|
12
|
-
var x=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,y=new WeakMap,A=Symbol.for("react.element"),B=Symbol.for("react.lazy"),C=Symbol.for("react.default_value"),D=Symbol.iterator;function E(a){if(null===a||"object"!==typeof a)return null;a=D&&a[D]||a["@@iterator"];return"function"===typeof a?a:null}var F=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function G(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}G.prototype=Object.create(Promise.prototype);
|
13
|
-
G.prototype.then=function(a,b){switch(this.status){case "resolved_model":H(this);break;case "resolved_module":I(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)}};
|
14
|
-
function J(a){switch(a.status){case "resolved_model":H(a);break;case "resolved_module":I(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function K(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function M(a,b,c){switch(a.status){case "fulfilled":K(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&K(c,a.reason)}}
|
15
|
-
function N(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&K(c,b)}}function O(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(I(a),M(a,c,d))}}var P=null,Q=null;
|
16
|
-
function H(a){var b=P,c=Q;P=a;Q=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==Q&&0<Q.deps?(Q.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{P=b,Q=c}}
|
17
|
-
function I(a){try{var b=a.value;if(b.async){var c=u.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(g){a.status="rejected",a.reason=g}}function R(a,b){a._chunks.forEach(function(c){"pending"===c.status&&N(c,b)})}function S(a,b){var c=a._chunks,d=c.get(b);d||(d=new G("pending",null,null,a),c.set(b,d));return d}
|
18
|
-
function T(a,b,c){if(Q){var d=Q;d.deps++}else d=Q={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&K(e,d.value))}}function U(a){return function(b){return N(a,b)}}
|
19
|
-
function V(a,b){function c(){var e=Array.prototype.slice.call(arguments),g=b.bound;return g?"fulfilled"===g.status?d(b.id,g.value.concat(e)):Promise.resolve(g).then(function(k){return d(b.id,k.concat(e))}):d(b.id,e)}var d=a._callServer;y.set(c,b);return c}
|
20
|
-
function aa(a,b,c,d){if("$"===d[0]){if("$"===d)return A;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=S(a,b),{$$typeof:B,_payload:a,_init:J};case "@":return b=parseInt(d.slice(2),16),S(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),F[a]||(F[a]=n.createServerContext(a,C)),F[a].Provider;case "F":b=parseInt(d.slice(2),16);b=S(a,b);switch(b.status){case "resolved_model":H(b)}switch(b.status){case "fulfilled":return V(a,b.value);default:throw b.reason;
|
21
|
-
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=S(a,d);switch(a.status){case "resolved_model":H(a);break;case "resolved_module":I(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=P,a.then(T(d,b,c),U(d)),null;default:throw a.reason;}}}return d}
|
22
|
-
function ba(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function ca(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=r(a._bundlerConfig,c);if(c=w(g)){if(e){var k=e;k.status="blocked"}else k=new G("blocked",null,null,a),d.set(b,k);c.then(function(){return O(k,g)},function(h){return N(k,h)})}else e?O(e,g):d.set(b,new G("resolved_module",g,null,a))}
|
23
|
-
function W(a){R(a,Error("Connection closed."))}
|
24
|
-
function X(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.slice(0,c),16);switch(b[c+1]){case "I":ca(a,d,b.slice(c+2));break;case "H":d=b[c+2];b=b.slice(c+3);a=JSON.parse(b,a._fromJSON);if(b=x.current){if("string"===typeof a)c=a;else{c=a[0];var e=a[1]}switch(d){case "D":b.prefetchDNS(c,e);break;case "C":b.preconnect(c,e);break;case "L":b.preload(c,e);break;case "I":b.preinit(c,e)}}break;case "E":b=JSON.parse(b.slice(c+2)).digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");e.stack=
|
25
|
-
"Error: "+e.message;e.digest=b;b=a._chunks;(c=b.get(d))?N(c,e):b.set(d,new G("rejected",null,e,a));break;default:e=b.slice(c+1),c=a._chunks,(b=c.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=e,null!==a&&(H(b),M(b,a,d))):c.set(d,new G("resolved_model",e,null,a))}}}function da(a){return function(b,c){return"string"===typeof c?aa(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===A?{$$typeof:A,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}
|
26
|
-
var ea=Array.isArray;function fa(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"}
|
27
|
-
function ha(a,b,c,d){function e(l,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);k++;var L=g++;f.then(function(q){q=JSON.stringify(q,e);var z=h;z.append(b+L,q);k--;0===k&&c(z)},function(q){d(q)});return"$@"+L.toString(16)}if(f instanceof FormData){null===h&&(h=new FormData);var ia=h;l=g++;var ja=b+l+"_";f.forEach(function(q,z){ia.append(ja+z,q)});return"$K"+l.toString(16)}return!ea(f)&&E(f)?Array.from(f):f}if("string"===typeof f){if("Z"===
|
28
|
-
f[f.length-1]&&this[l]instanceof Date)return"$D"+f;f="$"===f[0]?"$"+f:f;return f}if("boolean"===typeof f)return f;if("number"===typeof f)return fa(f);if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=y.get(f);if(void 0!==f)return f=JSON.stringify(f,e),null===h&&(h=new FormData),l=g++,h.set(b+l,f),"$F"+l.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof f){l=
|
29
|
-
f.description;if(Symbol.for(l)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+l}if("bigint"===typeof f)return"$n"+f.toString(10);throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var g=1,k=0,h=null;a=JSON.stringify(a,e);null===h?c(a):(h.set(b+"0",a),0===k&&c(h))}
|
30
|
-
function Y(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:ba,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=da(a);return a}
|
31
|
-
function Z(a,b){function c(g){var k=g.value;if(g.done)W(a);else{g=k;k=a._stringDecoder;for(var h=g.indexOf(10);-1<h;){var l=a._partialRow;var f=g.subarray(0,h);f=k.decode(f);X(a,l+f);a._partialRow="";g=g.subarray(h+1);h=g.indexOf(10)}a._partialRow+=k.decode(g,p);return e.read().then(c).catch(d)}}function d(g){R(a,g)}var e=b.getReader();e.read().then(c).catch(d)}exports.createFromFetch=function(a,b){var c=Y(b);a.then(function(d){Z(c,d.body)},function(d){R(c,d)});return S(c,0)};
|
32
|
-
exports.createFromReadableStream=function(a,b){b=Y(b);Z(b,a);return S(b,0)};
|
33
|
-
exports.createFromXHR=function(a,b){function c(){for(var k=a.responseText,h=g,l=k.indexOf("\n",h);-1<l;)h=e._partialRow+k.slice(h,l),X(e,h),e._partialRow="",h=l+1,l=k.indexOf("\n",h);e._partialRow+=k.slice(h);g=k.length}function d(){R(e,new TypeError("Network error"))}var e=Y(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(){c();W(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return S(e,0)};
|
34
|
-
exports.createServerReference=function(a,b){function c(){var d=Array.prototype.slice.call(arguments);return b(a,d)}y.set(c,{id:a,bound:null});return c};exports.encodeReply=function(a){return new Promise(function(b,c){ha(a,"",b,c)})};
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-client.edge.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var p=require("react-dom"),r=require("react"),t={stream:!0};function u(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var v=new Map,w=new Map;function x(){}
|
11
|
-
function y(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var g=b[d],e=v.get(g);if(void 0===e){e=__webpack_chunk_load__(g);c.push(e);var l=v.set.bind(v,g,null);e.then(l,x);v.set(g,e)}else null!==e&&c.push(e)}if(a.async){if(b=w.get(a.id))return"fulfilled"===b.status?null:b;var m=Promise.all(c).then(function(){return __webpack_require__(a.id)});m.then(function(h){m.status="fulfilled";m.value=h},function(h){m.status="rejected";m.reason=h});w.set(a.id,m);return m}return 0<c.length?Promise.all(c):null}
|
12
|
-
var z=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,A=new WeakMap,B=Symbol.for("react.element"),C=Symbol.for("react.lazy"),D=Symbol.for("react.default_value"),E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function F(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}F.prototype=Object.create(Promise.prototype);
|
13
|
-
F.prototype.then=function(a,b){switch(this.status){case "resolved_model":G(this);break;case "resolved_module":H(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)}};
|
14
|
-
function I(a){switch(a.status){case "resolved_model":G(a);break;case "resolved_module":H(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function J(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function K(a,b,c){switch(a.status){case "fulfilled":J(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&J(c,a.reason)}}
|
15
|
-
function L(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&J(c,b)}}function M(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(H(a),K(a,c,d))}}var N=null,O=null;
|
16
|
-
function G(a){var b=N,c=O;N=a;O=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==O&&0<O.deps?(O.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(g){a.status="rejected",a.reason=g}finally{N=b,O=c}}
|
17
|
-
function H(a){try{var b=a.value;if(b.async){var c=w.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var g="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=g}catch(e){a.status="rejected",a.reason=e}}function P(a,b){a._chunks.forEach(function(c){"pending"===c.status&&L(c,b)})}function Q(a,b){var c=a._chunks,d=c.get(b);d||(d=new F("pending",null,null,a),c.set(b,d));return d}
|
18
|
-
function R(a,b,c){if(O){var d=O;d.deps++}else d=O={deps:1,value:null};return function(g){b[c]=g;d.deps--;0===d.deps&&"blocked"===a.status&&(g=a.value,a.status="fulfilled",a.value=d.value,null!==g&&J(g,d.value))}}function S(a){return function(b){return L(a,b)}}
|
19
|
-
function T(a,b){function c(){var g=Array.prototype.slice.call(arguments),e=b.bound;return e?"fulfilled"===e.status?d(b.id,e.value.concat(g)):Promise.resolve(e).then(function(l){return d(b.id,l.concat(g))}):d(b.id,g)}var d=a._callServer;A.set(c,b);return c}
|
20
|
-
function U(a,b,c,d){if("$"===d[0]){if("$"===d)return B;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=Q(a,b),{$$typeof:C,_payload:a,_init:I};case "@":return b=parseInt(d.slice(2),16),Q(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),E[a]||(E[a]=r.createServerContext(a,D)),E[a].Provider;case "F":b=parseInt(d.slice(2),16);b=Q(a,b);switch(b.status){case "resolved_model":G(b)}switch(b.status){case "fulfilled":return T(a,b.value);default:throw b.reason;
|
21
|
-
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=Q(a,d);switch(a.status){case "resolved_model":G(a);break;case "resolved_module":H(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=N,a.then(R(d,b,c),S(d)),null;default:throw a.reason;}}}return d}
|
22
|
-
function V(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function W(a,b,c){var d=a._chunks,g=d.get(b);c=JSON.parse(c,a._fromJSON);var e=u(a._bundlerConfig,c);if(c=y(e)){if(g){var l=g;l.status="blocked"}else l=new F("blocked",null,null,a),d.set(b,l);c.then(function(){return M(l,e)},function(m){return L(l,m)})}else g?M(g,e):d.set(b,new F("resolved_module",e,null,a))}
|
23
|
-
function aa(a){return function(b,c){return"string"===typeof c?U(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===B?{$$typeof:B,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function X(a,b){var c=new TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:V,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=aa(a);return a}
|
24
|
-
function Y(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
25
|
-
function Z(a,b){function c(e){var l=e.value;if(e.done)P(a,Error("Connection closed."));else{e=l;l=a._stringDecoder;for(var m=e.indexOf(10);-1<m;){var h=a._partialRow;var n=e.subarray(0,m);n=l.decode(n);var f=h+n;h=a;if(""!==f){var k=f.indexOf(":",0);n=parseInt(f.slice(0,k),16);switch(f[k+1]){case "I":W(h,n,f.slice(k+2));break;case "H":n=f[k+2];f=f.slice(k+3);h=JSON.parse(f,h._fromJSON);f=void 0;var q=z.current;if(q)switch("string"===typeof h?k=h:(k=h[0],f=h[1]),n){case "D":q.prefetchDNS(k,f);break;
|
26
|
-
case "C":q.preconnect(k,f);break;case "L":q.preload(k,f);break;case "I":q.preinit(k,f)}break;case "E":k=JSON.parse(f.slice(k+2)).digest;f=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");f.stack="Error: "+f.message;f.digest=k;k=h._chunks;(q=k.get(n))?L(q,f):k.set(n,new F("rejected",
|
27
|
-
null,f,h));break;default:f=f.slice(k+1),k=h._chunks,(q=k.get(n))?(h=q,n=f,"pending"===h.status&&(f=h.value,k=h.reason,h.status="resolved_model",h.value=n,null!==f&&(G(h),K(h,f,k)))):k.set(n,new F("resolved_model",f,null,h))}}a._partialRow="";e=e.subarray(m+1);m=e.indexOf(10)}a._partialRow+=l.decode(e,t);return g.read().then(c).catch(d)}}function d(e){P(a,e)}var g=b.getReader();g.read().then(c).catch(d)}
|
28
|
-
exports.createFromFetch=function(a,b){var c=X(b&&b.moduleMap?b.moduleMap:null,Y);a.then(function(d){Z(c,d.body)},function(d){P(c,d)});return Q(c,0)};exports.createFromReadableStream=function(a,b){b=X(b&&b.moduleMap?b.moduleMap:null,Y);Z(b,a);return Q(b,0)};exports.createServerReference=function(){return Y};
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-client.node.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var k=require("util"),l=require("react-dom"),m=require("react"),n={stream:!0};function p(a,b){if(a){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{id:a.id,chunks:a.chunks,name:c,async:!!b.async}}return b}var q=new Map,r=new Map;function t(){}
|
11
|
-
function u(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],f=q.get(e);if(void 0===f){f=__webpack_chunk_load__(e);c.push(f);var h=q.set.bind(q,e,null);f.then(h,t);q.set(e,f)}else null!==f&&c.push(f)}if(a.async){if(b=r.get(a.id))return"fulfilled"===b.status?null:b;var g=Promise.all(c).then(function(){return __webpack_require__(a.id)});g.then(function(w){g.status="fulfilled";g.value=w},function(w){g.status="rejected";g.reason=w});r.set(a.id,g);return g}return 0<c.length?Promise.all(c):null}
|
12
|
-
var v=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,x=new WeakMap,y=Symbol.for("react.element"),z=Symbol.for("react.lazy"),A=Symbol.for("react.default_value"),B=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function C(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}C.prototype=Object.create(Promise.prototype);
|
13
|
-
C.prototype.then=function(a,b){switch(this.status){case "resolved_model":D(this);break;case "resolved_module":E(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)}};
|
14
|
-
function F(a){switch(a.status){case "resolved_model":D(a);break;case "resolved_module":E(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function G(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function H(a,b,c){switch(a.status){case "fulfilled":G(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&G(c,a.reason)}}
|
15
|
-
function I(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&G(c,b)}}function J(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(E(a),H(a,c,d))}}var K=null,L=null;
|
16
|
-
function D(a){var b=K,c=L;K=a;L=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==L&&0<L.deps?(L.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{K=b,L=c}}
|
17
|
-
function E(a){try{var b=a.value;if(b.async){var c=r.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}function M(a,b){a._chunks.forEach(function(c){"pending"===c.status&&I(c,b)})}function N(a,b){var c=a._chunks,d=c.get(b);d||(d=new C("pending",null,null,a),c.set(b,d));return d}
|
18
|
-
function O(a,b,c){if(L){var d=L;d.deps++}else d=L={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&G(e,d.value))}}function P(a){return function(b){return I(a,b)}}
|
19
|
-
function Q(a,b){function c(){var e=Array.prototype.slice.call(arguments),f=b.bound;return f?"fulfilled"===f.status?d(b.id,f.value.concat(e)):Promise.resolve(f).then(function(h){return d(b.id,h.concat(e))}):d(b.id,e)}var d=a._callServer;x.set(c,b);return c}
|
20
|
-
function R(a,b,c,d){if("$"===d[0]){if("$"===d)return y;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=N(a,b),{$$typeof:z,_payload:a,_init:F};case "@":return b=parseInt(d.slice(2),16),N(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),B[a]||(B[a]=m.createServerContext(a,A)),B[a].Provider;case "F":b=parseInt(d.slice(2),16);b=N(a,b);switch(b.status){case "resolved_model":D(b)}switch(b.status){case "fulfilled":return Q(a,b.value);default:throw b.reason;
|
21
|
-
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=N(a,d);switch(a.status){case "resolved_model":D(a);break;case "resolved_module":E(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=K,a.then(O(d,b,c),P(d)),null;default:throw a.reason;}}}return d}
|
22
|
-
function S(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function T(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=p(a._bundlerConfig,c);if(c=u(f)){if(e){var h=e;h.status="blocked"}else h=new C("blocked",null,null,a),d.set(b,h);c.then(function(){return J(h,f)},function(g){return I(h,g)})}else e?J(e,f):d.set(b,new C("resolved_module",f,null,a))}
|
23
|
-
function U(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.slice(0,c),16);switch(b[c+1]){case "I":T(a,d,b.slice(c+2));break;case "H":d=b[c+2];b=b.slice(c+3);a=JSON.parse(b,a._fromJSON);if(b=v.current){if("string"===typeof a)c=a;else{c=a[0];var e=a[1]}switch(d){case "D":b.prefetchDNS(c,e);break;case "C":b.preconnect(c,e);break;case "L":b.preload(c,e);break;case "I":b.preinit(c,e)}}break;case "E":b=JSON.parse(b.slice(c+2)).digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
|
24
|
-
e.stack="Error: "+e.message;e.digest=b;b=a._chunks;(c=b.get(d))?I(c,e):b.set(d,new C("rejected",null,e,a));break;default:e=b.slice(c+1),c=a._chunks,(b=c.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=e,null!==a&&(D(b),H(b,a,d))):c.set(d,new C("resolved_model",e,null,a))}}}
|
25
|
-
function V(a){return function(b,c){return"string"===typeof c?R(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===y?{$$typeof:y,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function W(a,b){var c=new k.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:S,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=V(a);return a}
|
26
|
-
function X(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
27
|
-
exports.createFromNodeStream=function(a,b){var c=W(b,X);a.on("data",function(d){if("string"===typeof d){for(var e=0,f=d.indexOf("\n",e);-1<f;)e=c._partialRow+d.slice(e,f),U(c,e),c._partialRow="",e=f+1,f=d.indexOf("\n",e);c._partialRow+=d.slice(e)}else{f=c._stringDecoder;for(e=d.indexOf(10);-1<e;){var h=c._partialRow;var g=d.subarray(0,e);g=f.decode(g);U(c,h+g);c._partialRow="";d=d.subarray(e+1);e=d.indexOf(10)}c._partialRow+=f.decode(d,n)}});a.on("error",function(d){M(c,d)});a.on("end",function(){M(c,
|
28
|
-
Error("Connection closed."))});return N(c,0)};exports.createServerReference=function(){return X};
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-client.node.unbundled.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var g=require("util"),k=require("react-dom"),l=require("react"),m={stream:!0};function p(a,b){var c=a[b.id];if(a=c[b.name])b=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');b=b.name}return{specifier:a.specifier,name:b}}var q=new Map;
|
11
|
-
function r(a){var b=q.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);c.then(function(d){c.status="fulfilled";c.value=d},function(d){c.status="rejected";c.reason=d});q.set(a.specifier,c);return c}var t=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,u=new WeakMap,v=Symbol.for("react.element"),w=Symbol.for("react.lazy"),x=Symbol.for("react.default_value"),y=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;
|
12
|
-
function z(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}z.prototype=Object.create(Promise.prototype);z.prototype.then=function(a,b){switch(this.status){case "resolved_model":A(this);break;case "resolved_module":B(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)}};
|
13
|
-
function C(a){switch(a.status){case "resolved_model":A(a);break;case "resolved_module":B(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function D(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function E(a,b,c){switch(a.status){case "fulfilled":D(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&D(c,a.reason)}}
|
14
|
-
function F(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&D(c,b)}}function G(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(B(a),E(a,c,d))}}var H=null,I=null;
|
15
|
-
function A(a){var b=H,c=I;H=a;I=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==I&&0<I.deps?(I.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status="rejected",a.reason=e}finally{H=b,I=c}}function B(a){try{var b=a.value,c=q.get(b.specifier);if("fulfilled"===c.status)var d=c.value;else throw c.reason;var e="*"===b.name?d:""===b.name?d.default:d[b.name];a.status="fulfilled";a.value=e}catch(f){a.status="rejected",a.reason=f}}
|
16
|
-
function J(a,b){a._chunks.forEach(function(c){"pending"===c.status&&F(c,b)})}function K(a,b){var c=a._chunks,d=c.get(b);d||(d=new z("pending",null,null,a),c.set(b,d));return d}function L(a,b,c){if(I){var d=I;d.deps++}else d=I={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&D(e,d.value))}}function M(a){return function(b){return F(a,b)}}
|
17
|
-
function N(a,b){function c(){var e=Array.prototype.slice.call(arguments),f=b.bound;return f?"fulfilled"===f.status?d(b.id,f.value.concat(e)):Promise.resolve(f).then(function(h){return d(b.id,h.concat(e))}):d(b.id,e)}var d=a._callServer;u.set(c,b);return c}
|
18
|
-
function O(a,b,c,d){if("$"===d[0]){if("$"===d)return v;switch(d[1]){case "$":return d.slice(1);case "L":return b=parseInt(d.slice(2),16),a=K(a,b),{$$typeof:w,_payload:a,_init:C};case "@":return b=parseInt(d.slice(2),16),K(a,b);case "S":return Symbol.for(d.slice(2));case "P":return a=d.slice(2),y[a]||(y[a]=l.createServerContext(a,x)),y[a].Provider;case "F":b=parseInt(d.slice(2),16);b=K(a,b);switch(b.status){case "resolved_model":A(b)}switch(b.status){case "fulfilled":return N(a,b.value);default:throw b.reason;
|
19
|
-
}case "I":return Infinity;case "-":return"$-0"===d?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(d.slice(2)));case "n":return BigInt(d.slice(2));default:d=parseInt(d.slice(1),16);a=K(a,d);switch(a.status){case "resolved_model":A(a);break;case "resolved_module":B(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=H,a.then(L(d,b,c),M(d)),null;default:throw a.reason;}}}return d}
|
20
|
-
function P(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function Q(a,b,c){var d=a._chunks,e=d.get(b);c=JSON.parse(c,a._fromJSON);var f=p(a._bundlerConfig,c);if(c=r(f)){if(e){var h=e;h.status="blocked"}else h=new z("blocked",null,null,a),d.set(b,h);c.then(function(){return G(h,f)},function(n){return F(h,n)})}else e?G(e,f):d.set(b,new z("resolved_module",f,null,a))}
|
21
|
-
function R(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.slice(0,c),16);switch(b[c+1]){case "I":Q(a,d,b.slice(c+2));break;case "H":d=b[c+2];b=b.slice(c+3);a=JSON.parse(b,a._fromJSON);if(b=t.current){if("string"===typeof a)c=a;else{c=a[0];var e=a[1]}switch(d){case "D":b.prefetchDNS(c,e);break;case "C":b.preconnect(c,e);break;case "L":b.preload(c,e);break;case "I":b.preinit(c,e)}}break;case "E":b=JSON.parse(b.slice(c+2)).digest;e=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");
|
22
|
-
e.stack="Error: "+e.message;e.digest=b;b=a._chunks;(c=b.get(d))?F(c,e):b.set(d,new z("rejected",null,e,a));break;default:e=b.slice(c+1),c=a._chunks,(b=c.get(d))?"pending"===b.status&&(a=b.value,d=b.reason,b.status="resolved_model",b.value=e,null!==a&&(A(b),E(b,a,d))):c.set(d,new z("resolved_model",e,null,a))}}}
|
23
|
-
function S(a){return function(b,c){return"string"===typeof c?O(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===v?{$$typeof:v,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function T(a,b){var c=new g.TextDecoder,d=new Map;a={_bundlerConfig:a,_callServer:void 0!==b?b:P,_chunks:d,_partialRow:"",_stringDecoder:c};a._fromJSON=S(a);return a}
|
24
|
-
function U(){throw Error("Server Functions cannot be called during initial render. This would create a fetch waterfall. Try to use a Server Component to pass data to Client Components instead.");}
|
25
|
-
exports.createFromNodeStream=function(a,b){var c=T(b,U);a.on("data",function(d){if("string"===typeof d){for(var e=0,f=d.indexOf("\n",e);-1<f;)e=c._partialRow+d.slice(e,f),R(c,e),c._partialRow="",e=f+1,f=d.indexOf("\n",e);c._partialRow+=d.slice(e)}else{f=c._stringDecoder;for(e=d.indexOf(10);-1<e;){var h=c._partialRow;var n=d.subarray(0,e);n=f.decode(n);R(c,h+n);c._partialRow="";d=d.subarray(e+1);e=d.indexOf(10)}c._partialRow+=f.decode(d,m)}});a.on("error",function(d){J(c,d)});a.on("end",function(){J(c,
|
26
|
-
Error("Connection closed."))});return K(c,0)};exports.createServerReference=function(){return U};
|
@@ -1,62 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* react-server-dom-webpack-server.browser.production.min.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
'use strict';var aa=require("react-dom"),ba=require("react"),l=null,m=0;function n(a,b){if(0!==b.length)if(512<b.length)0<m&&(a.enqueue(new Uint8Array(l.buffer,0,m)),l=new Uint8Array(512),m=0),a.enqueue(b);else{var d=l.length-m;d<b.length&&(0===d?a.enqueue(l):(l.set(b.subarray(0,d),m),a.enqueue(l),b=b.subarray(d)),l=new Uint8Array(512),m=0);l.set(b,m);m+=b.length}return!0}var p=new TextEncoder;function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var q=JSON.stringify;
|
11
|
-
function da(a,b,d){a=q(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function r(a,b,d){a=q(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}var u=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),la={prefetchDNS:fa,preconnect:ha,preload:ja,preinit:ka};function fa(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="D"+a;c.has(e)||(c.add(e),b?w(d,"D",[a,b]):w(d,"D",a),B(d))}}}
|
12
|
-
function ha(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e=null==b||"string"!==typeof b.crossOrigin?null:"use-credentials"===b.crossOrigin?"use-credentials":"";e="C"+(null===e?"null":e)+"|"+a;c.has(e)||(c.add(e),b?w(d,"C",[a,b]):w(d,"C",a),B(d))}}}function ja(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="L"+a;c.has(e)||(c.add(e),w(d,"L",[a,b]),B(d))}}}
|
13
|
-
function ka(a,b){if("string"===typeof a){var d=v?v:null;if(d){var c=d.hints,e="I"+a;c.has(e)||(c.add(e),w(d,"I",[a,b]),B(d))}}}
|
14
|
-
var ma=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,C=Symbol.for("react.element"),na=Symbol.for("react.fragment"),oa=Symbol.for("react.provider"),pa=Symbol.for("react.server_context"),qa=Symbol.for("react.forward_ref"),ra=Symbol.for("react.suspense"),sa=Symbol.for("react.suspense_list"),ta=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),ua=Symbol.for("react.default_value"),va=Symbol.for("react.memo_cache_sentinel"),wa=Symbol.iterator,E=null;
|
15
|
-
function F(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");F(a,d);b.context._currentValue=b.value}}}function xa(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&xa(a)}
|
16
|
-
function ya(a){var b=a.parent;null!==b&&ya(b);a.context._currentValue=a.value}function za(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?F(a,b):za(a,b)}
|
17
|
-
function Aa(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?F(a,d):Aa(a,d);b.context._currentValue=b.value}function G(a){var b=E;b!==a&&(null===b?ya(a):null===a?xa(b):b.depth===a.depth?F(b,a):b.depth>a.depth?za(b,a):Aa(b,a),E=a)}function Ba(a,b){var d=a._currentValue;a._currentValue=b;var c=E;return E=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var H=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
18
|
-
function Ca(){}function Da(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Ca,Ca),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 H;}}var I=null;
|
19
|
-
function Ea(){if(null===I)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=I;I=null;return a}var J=null,K=0,L=null;function Fa(){var a=L;L=null;return a}function Ga(a){return a._currentValue}
|
20
|
-
var Ka={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:M,useTransition:M,readContext:Ga,useContext:Ga,useReducer:M,useRef:M,useState:M,useInsertionEffect:M,useLayoutEffect:M,useImperativeHandle:M,useEffect:M,useId:Ha,useMutableSource:M,useSyncExternalStore:M,useCacheRefresh:function(){return Ia},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=va;return b},use:Ja};
|
21
|
-
function M(){throw Error("This Hook is not supported in Server Components.");}function Ia(){throw Error("Refreshing the cache is not supported in Server Components.");}function Ha(){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)+":"}
|
22
|
-
function Ja(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=K;K+=1;null===L&&(L=[]);return Da(L,a,b)}if(a.$$typeof===pa)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function N(){return(new AbortController).signal}function La(){var a=v?v:null;return a?a.cache:new Map}
|
23
|
-
var Ma={getCacheSignal:function(){var a=La(),b=a.get(N);void 0===b&&(b=N(),a.set(N,b));return b},getCacheForType:function(a){var b=La(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},O=Array.isArray;function Na(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
24
|
-
function Oa(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case "object":if(O(a))return"[...]";a=Na(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
25
|
-
function P(a){if("string"===typeof a)return a;switch(a){case ra:return"Suspense";case sa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case qa:return P(a.render);case ta:return P(a.type);case D:var b=a._payload;a=a._init;try{return P(a(b))}catch(d){}}return""}
|
26
|
-
function Q(a,b){var d=Na(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(O(a)){var e="[";for(var f=0;f<a.length;f++){0<f&&(e+=", ");var g=a[f];g="object"===typeof g&&null!==g?Q(g):Oa(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===C)e="<"+P(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?Q(k):
|
27
|
-
Oa(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 Pa=ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qa=Pa.ContextRegistry,Ra=Pa.ReactCurrentDispatcher,Sa=Pa.ReactCurrentCache;function Ta(a){console.error(a)}
|
28
|
-
function Ua(a,b,d,c,e){if(null!==Sa.current&&Sa.current!==Ma)throw Error("Currently React only supports one RSC renderer at a time.");ma.current=la;Sa.current=Ma;var f=new Set,g=[],h=new Set,k={status:0,flushScheduled:!1,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,hints:h,abortableTasks:f,pingedTasks:g,completedImportChunks:[],completedHintChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,
|
29
|
-
writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||"",identifierCount:1,onError:void 0===d?Ta:d,toJSON:function(t,x){return Va(k,this,t,x)}};k.pendingChunks++;b=Wa(c);a=Xa(k,a,b,f);g.push(a);return k}var v=null,Ya={};
|
30
|
-
function Za(a,b){a.pendingChunks++;var d=Xa(a,null,E,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,$a(a,d),d.id;case "rejected":var c=R(a,b.reason);S(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;$a(a,d)},function(e){d.status=4;e=R(a,e);S(a,d.id,e);null!==a.destination&&
|
31
|
-
T(a,a.destination)});return d.id}function ab(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function bb(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:ab}}
|
32
|
-
function U(a,b,d,c,e,f){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===u)return[C,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:bb(e):e}if("string"===typeof b)return[C,b,d,e];if("symbol"===typeof b)return b===na?e.children:[C,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===u)return[C,b,d,e];switch(b.$$typeof){case D:var g=
|
33
|
-
b._init;b=g(b._payload);return U(a,b,d,c,e,f);case qa:return a=b.render,K=0,L=f,a(e,void 0);case ta:return U(a,b.type,d,c,e,f);case oa:return Ba(b._context,e.value),[C,b,d,{value:e.value,children:e.children,__pop:Ya}]}}throw Error("Unsupported Server Component type: "+Oa(b));}function $a(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&(a.flushScheduled=null!==a.destination,cb(a))}
|
34
|
-
function Xa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return $a(a,e)},thenableState:null};c.add(e);return e}
|
35
|
-
function db(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]===C&&"1"===d?"$L"+g.toString(16):"$"+g.toString(16);try{var h=a.bundlerConfig,k=c.$$id;g="";var t=h[k];if(t)g=t.name;else{var x=k.lastIndexOf("#");-1!==x&&(g=k.slice(x+1),t=h[k.slice(0,x)]);if(!t)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 y={id:t.id,chunks:t.chunks,name:g,
|
36
|
-
async:!!c.$$async};a.pendingChunks++;var z=a.nextChunkId++,ia=q(y),A=z.toString(16)+":I"+ia+"\n";var nb=p.encode(A);a.completedImportChunks.push(nb);f.set(e,z);return b[0]===C&&"1"===d?"$L"+z.toString(16):"$"+z.toString(16)}catch(ob){return a.pendingChunks++,b=a.nextChunkId++,d=R(a,ob),S(a,b,d),"$"+b.toString(16)}}
|
37
|
-
function Va(a,b,d,c){switch(c){case C:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===C||c.$$typeof===D);)try{switch(c.$$typeof){case C:var e=c;c=U(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===H?Ea():g;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Xa(a,c,E,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Fa(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=R(a,d);S(a,c,d);return"$L"+
|
38
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===u)return db(a,b,d,c);if("function"===typeof c.then)return"$@"+Za(a,c).toString(16);if(c.$$typeof===oa)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=r(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Ya){a=E;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
|
39
|
-
c===ua?a.context._defaultValue:c;E=a.parent;return}return!O(c)&&(null===c||"object"!==typeof c?a=null:(a=wa&&c[wa]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c){if("Z"===c[c.length-1]&&b[d]instanceof Date)return"$D"+c;a="$"===c[0]?"$"+c:c;return a}if("boolean"===typeof c)return c;if("number"===typeof c)return a=c,Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN";if("undefined"===typeof c)return"$undefined";
|
40
|
-
if("function"===typeof c){if(c.$$typeof===u)return db(a,b,d,c);if(c.$$typeof===ea)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=da(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+Q(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");
|
41
|
-
throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+Q(b,d));}if("symbol"===typeof c){e=a.writtenSymbols;f=e.get(c);if(void 0!==f)return"$"+f.toString(16);f=c.description;if(Symbol.for(f)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+Q(b,d));a.pendingChunks++;d=a.nextChunkId++;b=
|
42
|
-
r(a,d,"$S"+f);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+" is not supported in Client Component props."+Q(b,d));}
|
43
|
-
function R(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function eb(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
|
44
|
-
function S(a,b,d){d={digest:d};b=b.toString(16)+":E"+q(d)+"\n";b=p.encode(b);a.completedErrorChunks.push(b)}function w(a,b,d){var c=a.nextChunkId++;d=q(d);b="H"+b;c=c.toString(16)+":"+b;c=p.encode(c+d+"\n");a.completedHintChunks.push(c)}
|
45
|
-
function cb(a){var b=Ra.current;Ra.current=Ka;var d=v;J=v=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){G(f.context);try{var h=f.model;if("object"===typeof h&&null!==h&&h.$$typeof===C){var k=h,t=f.thenableState;f.model=h;h=U(g,k.type,k.key,k.ref,k.props,t);for(f.thenableState=null;"object"===typeof h&&null!==h&&h.$$typeof===C;)k=h,f.model=h,h=U(g,k.type,k.key,k.ref,k.props,null)}var x=da(g,f.id,h);g.completedJSONChunks.push(x);g.abortableTasks.delete(f);
|
46
|
-
f.status=1}catch(A){var y=A===H?Ea():A;if("object"===typeof y&&null!==y&&"function"===typeof y.then){var z=f.ping;y.then(z,z);f.thenableState=Fa()}else{g.abortableTasks.delete(f);f.status=4;var ia=R(g,y);S(g,f.id,ia)}}}}null!==a.destination&&T(a,a.destination)}catch(A){R(a,A),eb(a,A)}finally{Ra.current=b,J=null,v=d}}
|
47
|
-
function T(a,b){l=new Uint8Array(512);m=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,n(b,d[c]);d.splice(0,c);var e=a.completedHintChunks;for(c=0;c<e.length;c++)n(b,e[c]);e.splice(0,c);var f=a.completedJSONChunks;for(c=0;c<f.length;c++)a.pendingChunks--,n(b,f[c]);f.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,n(b,g[c]);g.splice(0,c)}finally{a.flushScheduled=!1,l&&0<m&&(b.enqueue(new Uint8Array(l.buffer,0,m)),l=null,m=0)}0===a.pendingChunks&&
|
48
|
-
b.close()}function B(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.destination){var b=a.destination;a.flushScheduled=!0;T(a,b)}}
|
49
|
-
function fb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=R(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;S(a,e,c);d.forEach(function(f){f.status=3;var g="$"+e.toString(16);f=r(a,f.id,g);a.completedErrorChunks.push(f)});d.clear()}null!==a.destination&&T(a,a.destination)}catch(f){R(a,f),eb(a,f)}}
|
50
|
-
function Wa(a){if(a){var b=E;G(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Qa[e]||(Qa[e]=ba.createServerContext(e,ua));Ba(Qa[e],c)}a=E;G(b);return a}return null}function gb(a,b){var d="",c=a[b];if(c)d=c.name;else{var e=b.lastIndexOf("#");-1!==e&&(d=b.slice(e+1),c=a[b.slice(0,e)]);if(!c)throw Error('Could not find the module "'+b+'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.');}return{id:c.id,chunks:c.chunks,name:d,async:!1}}
|
51
|
-
var V=new Map,hb=new Map;function ib(){}
|
52
|
-
function jb(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],f=V.get(e);if(void 0===f){f=__webpack_chunk_load__(e);d.push(f);var g=V.set.bind(V,e,null);f.then(g,ib);V.set(e,f)}else null!==f&&d.push(f)}if(a.async){if(b=hb.get(a.id))return"fulfilled"===b.status?null:b;var h=Promise.all(d).then(function(){return __webpack_require__(a.id)});h.then(function(k){h.status="fulfilled";h.value=k},function(k){h.status="rejected";h.reason=k});hb.set(a.id,h);return h}return 0<d.length?Promise.all(d):
|
53
|
-
null}function kb(a){if(a.async){var b=hb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function W(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}W.prototype=Object.create(Promise.prototype);
|
54
|
-
W.prototype.then=function(a,b){switch(this.status){case "resolved_model":lb(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 mb(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
55
|
-
function pb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&mb(d,b)}}function qb(a,b,d,c,e,f){var g=gb(a._bundlerConfig,b);a=jb(g);if(d)d=Promise.all([d,a]).then(function(h){h=h[0];var k=kb(g);return k.bind.apply(k,[null].concat(h))});else if(a)d=Promise.resolve(a).then(function(){return kb(g)});else return kb(g);d.then(rb(c,e,f),sb(c));return null}var X=null,Y=null;
|
56
|
-
function lb(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 tb(a,b){a._chunks.forEach(function(d){"pending"===d.status&&pb(d,b)})}
|
57
|
-
function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=a._formData.get(a._prefix+b),c=null!=c?new W("resolved_model",c,null,a):new W("pending",null,null,a),d.set(b,c));return c}function rb(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&&mb(e,c.value))}}function sb(a){return function(b){return pb(a,b)}}
|
58
|
-
function ub(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.slice(1);case "@":return b=parseInt(c.slice(2),16),Z(a,b);case "S":return Symbol.for(c.slice(2));case "F":c=parseInt(c.slice(2),16);c=Z(a,c);"resolved_model"===c.status&&lb(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return qb(a,c.id,c.bound,X,b,d);case "K":b=c.slice(2);var e=a._prefix+b+"_",f=new FormData;a._formData.forEach(function(g,h){h.startsWith(e)&&f.append(h.slice(e.length),g)});return f;case "I":return Infinity;
|
59
|
-
case "-":return"$-0"===c?-0:-Infinity;case "N":return NaN;case "u":return;case "D":return new Date(Date.parse(c.slice(2)));case "n":return BigInt(c.slice(2));default:c=parseInt(c.slice(1),16);a=Z(a,c);switch(a.status){case "resolved_model":lb(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=X,a.then(rb(c,b,d),sb(c)),null;default:throw a.reason;}}return c}
|
60
|
-
function vb(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?ub(e,this,f,g):g}};return e}exports.decodeReply=function(a,b){if("string"===typeof a){var d=new FormData;d.append("0",a);a=d}a=vb(b,"",a);tb(a,Error("Connection closed."));return Z(a,0)};
|
61
|
-
exports.renderToReadableStream=function(a,b,d){var c=Ua(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)fb(c,e.reason);else{var f=function(){fb(c,e.reason);e.removeEventListener("abort",f)};e.addEventListener("abort",f)}}return new ReadableStream({type:"bytes",start:function(){c.flushScheduled=null!==c.destination;cb(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=
|
62
|
-
g;try{T(c,g)}catch(h){R(c,h),eb(c,h)}}},cancel:function(){}},{highWaterMark:0})};
|