@cedarjs/vite 8.0.0-canary.3460 → 8.0.0-canary.3462
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/bundled/react-server-dom-webpack.server.js +354 -161
- package/package.json +24 -24
|
@@ -363,7 +363,7 @@ var require_react_react_server_production = __commonJS({
|
|
|
363
363
|
exports.useMemo = function(create, deps) {
|
|
364
364
|
return ReactSharedInternals.H.useMemo(create, deps);
|
|
365
365
|
};
|
|
366
|
-
exports.version = "19.3.
|
|
366
|
+
exports.version = "19.3.1";
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
369
|
|
|
@@ -1007,7 +1007,7 @@ var require_react_react_server_development = __commonJS({
|
|
|
1007
1007
|
exports.useMemo = function(create, deps) {
|
|
1008
1008
|
return resolveDispatcher().useMemo(create, deps);
|
|
1009
1009
|
};
|
|
1010
|
-
exports.version = "19.3.
|
|
1010
|
+
exports.version = "19.3.1";
|
|
1011
1011
|
})();
|
|
1012
1012
|
}
|
|
1013
1013
|
});
|
|
@@ -1134,7 +1134,7 @@ var require_react_dom_react_server_production = __commonJS({
|
|
|
1134
1134
|
});
|
|
1135
1135
|
} else Internals.d.m(href);
|
|
1136
1136
|
};
|
|
1137
|
-
exports.version = "19.3.
|
|
1137
|
+
exports.version = "19.3.1";
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
1140
|
|
|
@@ -1324,7 +1324,7 @@ var require_react_dom_react_server_development = __commonJS({
|
|
|
1324
1324
|
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0
|
|
1325
1325
|
})) : Internals.d.m(href));
|
|
1326
1326
|
};
|
|
1327
|
-
exports.version = "19.3.
|
|
1327
|
+
exports.version = "19.3.1";
|
|
1328
1328
|
})();
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
@@ -1378,6 +1378,11 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1378
1378
|
}
|
|
1379
1379
|
var ASYNC_ITERATOR = Symbol.asyncIterator;
|
|
1380
1380
|
var REACT_OPTIMISTIC_KEY = /* @__PURE__ */ Symbol.for("react.optimistic_key");
|
|
1381
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1382
|
+
var supportsArrayBufferDetached = hasOwnProperty.call(
|
|
1383
|
+
ArrayBuffer.prototype,
|
|
1384
|
+
"detached"
|
|
1385
|
+
);
|
|
1381
1386
|
var scheduleMicrotask = queueMicrotask;
|
|
1382
1387
|
var currentView = null;
|
|
1383
1388
|
var writtenBytes = 0;
|
|
@@ -1405,11 +1410,16 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1405
1410
|
).written);
|
|
1406
1411
|
4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0);
|
|
1407
1412
|
}
|
|
1413
|
+
} else if (0 === chunk.byteLength) {
|
|
1414
|
+
if (supportsArrayBufferDetached && chunk.buffer.detached)
|
|
1415
|
+
throw Error(
|
|
1416
|
+
"Cannot transport a detached buffer. This usually happens when trying to transport multiple buffer-spanning views on the same underyling buffer. Either reuse the exact same view by identity or copy the underlying buffer manually via `view.slice()`."
|
|
1417
|
+
);
|
|
1408
1418
|
} else
|
|
1409
|
-
|
|
1419
|
+
4096 < chunk.byteLength ? (0 < writtenBytes && (writeToDestination(
|
|
1410
1420
|
destination,
|
|
1411
1421
|
currentView.subarray(0, writtenBytes)
|
|
1412
|
-
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk)) : (target = currentView.length - writtenBytes, target < chunk.byteLength && (0 === target ? writeToDestination(destination, currentView) : (currentView.set(chunk.subarray(0, target), writtenBytes), writtenBytes += target, writeToDestination(destination, currentView), chunk = chunk.subarray(target)), currentView = new Uint8Array(4096), writtenBytes = 0), currentView.set(chunk, writtenBytes), writtenBytes += chunk.byteLength, 4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0))
|
|
1422
|
+
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk)) : (target = currentView.length - writtenBytes, target < chunk.byteLength && (0 === target ? writeToDestination(destination, currentView) : (currentView.set(chunk.subarray(0, target), writtenBytes), writtenBytes += target, writeToDestination(destination, currentView), chunk = chunk.subarray(target)), currentView = new Uint8Array(4096), writtenBytes = 0), currentView.set(chunk, writtenBytes), writtenBytes += chunk.byteLength, 4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0));
|
|
1413
1423
|
}
|
|
1414
1424
|
function writeToDestination(destination, view) {
|
|
1415
1425
|
destination = destination.write(view);
|
|
@@ -2025,7 +2035,6 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2025
2035
|
}
|
|
2026
2036
|
return void 0 === expandedName ? str : -1 < objKind && 0 < length ? (objectOrArray = " ".repeat(objKind) + "^".repeat(length), "\n " + str + "\n " + objectOrArray) : "\n " + str;
|
|
2027
2037
|
}
|
|
2028
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2029
2038
|
var ObjectPrototype$1 = Object.prototype;
|
|
2030
2039
|
var stringify = JSON.stringify;
|
|
2031
2040
|
var NEXT_TWO_CHUNKS_ARE_ATOMIC = /* @__PURE__ */ Symbol();
|
|
@@ -2879,11 +2888,24 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2879
2888
|
}
|
|
2880
2889
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
2881
2890
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2891
|
+
a: {
|
|
2892
|
+
debug = new Uint8Array(
|
|
2893
|
+
typedArray.buffer,
|
|
2894
|
+
typedArray.byteOffset,
|
|
2895
|
+
typedArray.byteLength
|
|
2896
|
+
);
|
|
2897
|
+
if (4096 < typedArray.byteLength) {
|
|
2898
|
+
if (0 !== typedArray.byteOffset || typedArray.byteLength !== typedArray.buffer.byteLength || typedArray.buffer.resizable) {
|
|
2899
|
+
typedArray = debug.slice();
|
|
2900
|
+
break a;
|
|
2901
|
+
}
|
|
2902
|
+
if (!supportsArrayBufferDetached) {
|
|
2903
|
+
typedArray = debug.slice();
|
|
2904
|
+
break a;
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
typedArray = debug;
|
|
2908
|
+
}
|
|
2887
2909
|
debug = typedArray.byteLength;
|
|
2888
2910
|
id = id.toString(16) + ":" + tag + debug.toString(16) + ",";
|
|
2889
2911
|
request.completedRegularChunks.push(
|
|
@@ -3231,10 +3253,25 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3231
3253
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
3232
3254
|
return moduleExports[metadata[2]];
|
|
3233
3255
|
}
|
|
3234
|
-
function appendBackingEntry(backingStore,
|
|
3235
|
-
backingStore.
|
|
3236
|
-
|
|
3237
|
-
|
|
3256
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
3257
|
+
var prefix = backingStore.prefix;
|
|
3258
|
+
if (key.startsWith(prefix)) {
|
|
3259
|
+
switch (key[prefix.length]) {
|
|
3260
|
+
case "_":
|
|
3261
|
+
prefix = backingStore.referencedEntries;
|
|
3262
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
3263
|
+
prefix.push([key, value]);
|
|
3264
|
+
return;
|
|
3265
|
+
case "S":
|
|
3266
|
+
"string" === typeof value && (prefix = backingStore.streamChunks, null === prefix && (prefix = backingStore.streamChunks = /* @__PURE__ */ new Map()), backingStore = prefix.get(key), void 0 === backingStore ? prefix.set(key, [value]) : backingStore.push(value));
|
|
3267
|
+
return;
|
|
3268
|
+
}
|
|
3269
|
+
"string" === typeof value ? (prefix = backingStore.stringChunks, null === prefix && (prefix = backingStore.stringChunks = /* @__PURE__ */ new Map()), prefix.set(key, value)) : (prefix = backingStore.blobs, null === prefix && (prefix = backingStore.blobs = /* @__PURE__ */ new Map()), prefix.set(key, value));
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
function getBackingBlob(backingStore, key) {
|
|
3273
|
+
backingStore = backingStore.blobs;
|
|
3274
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
3238
3275
|
}
|
|
3239
3276
|
var RESPONSE_SYMBOL = /* @__PURE__ */ Symbol();
|
|
3240
3277
|
function ReactPromise(status, value, reason) {
|
|
@@ -3526,7 +3563,13 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3526
3563
|
}
|
|
3527
3564
|
function getChunk(response, id) {
|
|
3528
3565
|
var chunks = response._chunks, chunk = chunks.get(id);
|
|
3529
|
-
|
|
3566
|
+
if (!chunk) {
|
|
3567
|
+
chunk = response._prefix;
|
|
3568
|
+
var stringChunks = response._formData.stringChunks;
|
|
3569
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
3570
|
+
chunk = "string" === typeof chunk ? createResolvedModelChunk(response, chunk, id) : response._closed ? new ReactPromise("rejected", null, response._closedReason) : new ReactPromise("pending", null, null);
|
|
3571
|
+
chunks.set(id, chunk);
|
|
3572
|
+
}
|
|
3530
3573
|
return chunk;
|
|
3531
3574
|
}
|
|
3532
3575
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -3654,7 +3697,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3654
3697
|
Error("Already initialized typed array.")
|
|
3655
3698
|
)
|
|
3656
3699
|
);
|
|
3657
|
-
reference = response._formData
|
|
3700
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
3658
3701
|
if (initializingHandler) {
|
|
3659
3702
|
var handler = initializingHandler;
|
|
3660
3703
|
handler.deps++;
|
|
@@ -3685,9 +3728,12 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3685
3728
|
var chunks = response._chunks;
|
|
3686
3729
|
stream2 = new ReactPromise("fulfilled", stream2, controller);
|
|
3687
3730
|
chunks.set(id, stream2);
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3731
|
+
chunks = response._prefix;
|
|
3732
|
+
response = response._formData.streamChunks;
|
|
3733
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
3734
|
+
if (void 0 !== id)
|
|
3735
|
+
for (response = 0; response < id.length; response++)
|
|
3736
|
+
chunks = id[response], "C" === chunks[0] ? controller.close("C" === chunks ? '"$undefined"' : chunks.slice(1)) : controller.enqueueModel(chunks);
|
|
3691
3737
|
}
|
|
3692
3738
|
function parseReadableStream(response, reference, type) {
|
|
3693
3739
|
function enqueue(value) {
|
|
@@ -3823,7 +3869,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3823
3869
|
});
|
|
3824
3870
|
return iterator;
|
|
3825
3871
|
}
|
|
3826
|
-
function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
3872
|
+
function parseModelString(response, obj, key$jscomp$0, value, reference, arrayRoot) {
|
|
3827
3873
|
if ("$" === value[0]) {
|
|
3828
3874
|
switch (value[1]) {
|
|
3829
3875
|
case "$":
|
|
@@ -3835,7 +3881,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3835
3881
|
response,
|
|
3836
3882
|
arrayRoot,
|
|
3837
3883
|
obj,
|
|
3838
|
-
key,
|
|
3884
|
+
key$jscomp$0,
|
|
3839
3885
|
null,
|
|
3840
3886
|
loadServerReference$1
|
|
3841
3887
|
);
|
|
@@ -3849,31 +3895,49 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3849
3895
|
reference
|
|
3850
3896
|
);
|
|
3851
3897
|
case "Q":
|
|
3852
|
-
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
3898
|
+
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
3899
|
+
response,
|
|
3900
|
+
arrayRoot,
|
|
3901
|
+
obj,
|
|
3902
|
+
key$jscomp$0,
|
|
3903
|
+
null,
|
|
3904
|
+
createMap
|
|
3905
|
+
);
|
|
3853
3906
|
case "W":
|
|
3854
|
-
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
3907
|
+
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
3908
|
+
response,
|
|
3909
|
+
arrayRoot,
|
|
3910
|
+
obj,
|
|
3911
|
+
key$jscomp$0,
|
|
3912
|
+
null,
|
|
3913
|
+
createSet
|
|
3914
|
+
);
|
|
3855
3915
|
case "K":
|
|
3856
|
-
|
|
3857
|
-
obj = response._prefix + "_";
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
response.keyPointer++;
|
|
3871
|
-
} else if (value.startsWith(obj)) break;
|
|
3872
|
-
else response.keyPointer++;
|
|
3916
|
+
obj = value.slice(2);
|
|
3917
|
+
obj = response._prefix + "_" + obj + "_";
|
|
3918
|
+
response = response._formData;
|
|
3919
|
+
key$jscomp$0 = new FormData();
|
|
3920
|
+
arrayRoot = response.referencedEntries;
|
|
3921
|
+
if (null !== arrayRoot) {
|
|
3922
|
+
for (value = response.keyPointer; value < arrayRoot.length; ) {
|
|
3923
|
+
reference = arrayRoot[value];
|
|
3924
|
+
var key = reference[0];
|
|
3925
|
+
if (!key.startsWith(obj)) break;
|
|
3926
|
+
key$jscomp$0.append(key.slice(obj.length), reference[1]);
|
|
3927
|
+
value++;
|
|
3928
|
+
}
|
|
3929
|
+
response.keyPointer = value;
|
|
3873
3930
|
}
|
|
3874
|
-
return
|
|
3931
|
+
return key$jscomp$0;
|
|
3875
3932
|
case "i":
|
|
3876
|
-
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
3933
|
+
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
3934
|
+
response,
|
|
3935
|
+
arrayRoot,
|
|
3936
|
+
obj,
|
|
3937
|
+
key$jscomp$0,
|
|
3938
|
+
null,
|
|
3939
|
+
extractIterator
|
|
3940
|
+
);
|
|
3877
3941
|
case "I":
|
|
3878
3942
|
return Infinity;
|
|
3879
3943
|
case "-":
|
|
@@ -3899,7 +3963,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3899
3963
|
ArrayBuffer,
|
|
3900
3964
|
1,
|
|
3901
3965
|
obj,
|
|
3902
|
-
key,
|
|
3966
|
+
key$jscomp$0,
|
|
3903
3967
|
arrayRoot
|
|
3904
3968
|
);
|
|
3905
3969
|
case "O":
|
|
@@ -3909,7 +3973,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3909
3973
|
Int8Array,
|
|
3910
3974
|
1,
|
|
3911
3975
|
obj,
|
|
3912
|
-
key,
|
|
3976
|
+
key$jscomp$0,
|
|
3913
3977
|
arrayRoot
|
|
3914
3978
|
);
|
|
3915
3979
|
case "o":
|
|
@@ -3919,7 +3983,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3919
3983
|
Uint8Array,
|
|
3920
3984
|
1,
|
|
3921
3985
|
obj,
|
|
3922
|
-
key,
|
|
3986
|
+
key$jscomp$0,
|
|
3923
3987
|
arrayRoot
|
|
3924
3988
|
);
|
|
3925
3989
|
case "U":
|
|
@@ -3929,7 +3993,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3929
3993
|
Uint8ClampedArray,
|
|
3930
3994
|
1,
|
|
3931
3995
|
obj,
|
|
3932
|
-
key,
|
|
3996
|
+
key$jscomp$0,
|
|
3933
3997
|
arrayRoot
|
|
3934
3998
|
);
|
|
3935
3999
|
case "S":
|
|
@@ -3939,7 +4003,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3939
4003
|
Int16Array,
|
|
3940
4004
|
2,
|
|
3941
4005
|
obj,
|
|
3942
|
-
key,
|
|
4006
|
+
key$jscomp$0,
|
|
3943
4007
|
arrayRoot
|
|
3944
4008
|
);
|
|
3945
4009
|
case "s":
|
|
@@ -3949,7 +4013,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3949
4013
|
Uint16Array,
|
|
3950
4014
|
2,
|
|
3951
4015
|
obj,
|
|
3952
|
-
key,
|
|
4016
|
+
key$jscomp$0,
|
|
3953
4017
|
arrayRoot
|
|
3954
4018
|
);
|
|
3955
4019
|
case "L":
|
|
@@ -3959,7 +4023,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3959
4023
|
Int32Array,
|
|
3960
4024
|
4,
|
|
3961
4025
|
obj,
|
|
3962
|
-
key,
|
|
4026
|
+
key$jscomp$0,
|
|
3963
4027
|
arrayRoot
|
|
3964
4028
|
);
|
|
3965
4029
|
case "l":
|
|
@@ -3969,7 +4033,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3969
4033
|
Uint32Array,
|
|
3970
4034
|
4,
|
|
3971
4035
|
obj,
|
|
3972
|
-
key,
|
|
4036
|
+
key$jscomp$0,
|
|
3973
4037
|
arrayRoot
|
|
3974
4038
|
);
|
|
3975
4039
|
case "G":
|
|
@@ -3979,7 +4043,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3979
4043
|
Float32Array,
|
|
3980
4044
|
4,
|
|
3981
4045
|
obj,
|
|
3982
|
-
key,
|
|
4046
|
+
key$jscomp$0,
|
|
3983
4047
|
arrayRoot
|
|
3984
4048
|
);
|
|
3985
4049
|
case "g":
|
|
@@ -3989,7 +4053,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3989
4053
|
Float64Array,
|
|
3990
4054
|
8,
|
|
3991
4055
|
obj,
|
|
3992
|
-
key,
|
|
4056
|
+
key$jscomp$0,
|
|
3993
4057
|
arrayRoot
|
|
3994
4058
|
);
|
|
3995
4059
|
case "M":
|
|
@@ -3999,7 +4063,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3999
4063
|
BigInt64Array,
|
|
4000
4064
|
8,
|
|
4001
4065
|
obj,
|
|
4002
|
-
key,
|
|
4066
|
+
key$jscomp$0,
|
|
4003
4067
|
arrayRoot
|
|
4004
4068
|
);
|
|
4005
4069
|
case "m":
|
|
@@ -4009,7 +4073,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4009
4073
|
BigUint64Array,
|
|
4010
4074
|
8,
|
|
4011
4075
|
obj,
|
|
4012
|
-
key,
|
|
4076
|
+
key$jscomp$0,
|
|
4013
4077
|
arrayRoot
|
|
4014
4078
|
);
|
|
4015
4079
|
case "V":
|
|
@@ -4019,12 +4083,12 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4019
4083
|
DataView,
|
|
4020
4084
|
1,
|
|
4021
4085
|
obj,
|
|
4022
|
-
key,
|
|
4086
|
+
key$jscomp$0,
|
|
4023
4087
|
arrayRoot
|
|
4024
4088
|
);
|
|
4025
4089
|
case "B":
|
|
4026
4090
|
obj = parseInt(value.slice(2), 16);
|
|
4027
|
-
response = response._formData
|
|
4091
|
+
response = getBackingBlob(response._formData, response._prefix + obj);
|
|
4028
4092
|
if (!(response instanceof Blob))
|
|
4029
4093
|
throw Error("Referenced Blob is not a Blob.");
|
|
4030
4094
|
return response;
|
|
@@ -4038,17 +4102,32 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4038
4102
|
return parseAsyncIterable(response, value, true);
|
|
4039
4103
|
}
|
|
4040
4104
|
value = value.slice(1);
|
|
4041
|
-
return getOutlinedModel(
|
|
4105
|
+
return getOutlinedModel(
|
|
4106
|
+
response,
|
|
4107
|
+
value,
|
|
4108
|
+
obj,
|
|
4109
|
+
key$jscomp$0,
|
|
4110
|
+
arrayRoot,
|
|
4111
|
+
createModel
|
|
4112
|
+
);
|
|
4042
4113
|
}
|
|
4043
4114
|
null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);
|
|
4044
4115
|
return value;
|
|
4045
4116
|
}
|
|
4046
4117
|
function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
4047
|
-
var backingFormData = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : new FormData(), arraySizeLimit = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6, chunks = /* @__PURE__ */ new Map()
|
|
4118
|
+
var backingFormData = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : new FormData(), arraySizeLimit = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6, chunks = /* @__PURE__ */ new Map(), backingStore = {
|
|
4119
|
+
prefix: formFieldPrefix,
|
|
4120
|
+
referencedEntries: null,
|
|
4121
|
+
keyPointer: 0,
|
|
4122
|
+
stringChunks: null,
|
|
4123
|
+
streamChunks: null,
|
|
4124
|
+
blobs: null
|
|
4125
|
+
};
|
|
4126
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
4048
4127
|
return {
|
|
4049
4128
|
_bundlerConfig: bundlerConfig,
|
|
4050
4129
|
_prefix: formFieldPrefix,
|
|
4051
|
-
_formData:
|
|
4130
|
+
_formData: backingStore,
|
|
4052
4131
|
_chunks: chunks,
|
|
4053
4132
|
_closed: false,
|
|
4054
4133
|
_closedReason: null,
|
|
@@ -4058,13 +4137,20 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4058
4137
|
};
|
|
4059
4138
|
}
|
|
4060
4139
|
function resolveField(response, key, value) {
|
|
4061
|
-
appendBackingEntry(response._formData, key, value);
|
|
4062
4140
|
var prefix = response._prefix;
|
|
4063
4141
|
if (key.startsWith(prefix)) {
|
|
4064
4142
|
var chunks = response._chunks;
|
|
4065
|
-
|
|
4066
|
-
|
|
4143
|
+
if ("S" === key[prefix.length]) {
|
|
4144
|
+
if (key.length > prefix.length + 1 && (prefix = +key.slice(prefix.length + 1), chunks = chunks.get(prefix))) {
|
|
4145
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
4146
|
+
return;
|
|
4147
|
+
}
|
|
4148
|
+
} else if (prefix = +key.slice(prefix.length), chunks = chunks.get(prefix)) {
|
|
4149
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
4150
|
+
return;
|
|
4151
|
+
}
|
|
4067
4152
|
}
|
|
4153
|
+
appendBackingEntry(response._formData, value, key);
|
|
4068
4154
|
}
|
|
4069
4155
|
function close(response) {
|
|
4070
4156
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -4203,7 +4289,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4203
4289
|
var _entry$value = entry.value;
|
|
4204
4290
|
entry = _entry$value[0];
|
|
4205
4291
|
_entry$value = _entry$value[1];
|
|
4206
|
-
"string" === typeof _entry$value ? resolveField(response, entry, _entry$value) : appendBackingEntry(response._formData,
|
|
4292
|
+
"string" === typeof _entry$value ? resolveField(response, entry, _entry$value) : appendBackingEntry(response._formData, _entry$value, entry);
|
|
4207
4293
|
iterator.next().then(progress, error);
|
|
4208
4294
|
}
|
|
4209
4295
|
}
|
|
@@ -4227,18 +4313,32 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
4227
4313
|
var current = head;
|
|
4228
4314
|
if (!current.complete) return;
|
|
4229
4315
|
try {
|
|
4230
|
-
var key = current.name,
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4316
|
+
var key = current.name, JSCompiler_temp_const = response._formData;
|
|
4317
|
+
var handle = current.file;
|
|
4318
|
+
if ("function" === typeof File)
|
|
4319
|
+
var JSCompiler_inline_result = new File(
|
|
4320
|
+
handle.chunks,
|
|
4321
|
+
handle.filename,
|
|
4322
|
+
{ type: handle.mime }
|
|
4323
|
+
);
|
|
4324
|
+
else {
|
|
4325
|
+
var scratch = new FormData();
|
|
4326
|
+
scratch.append(
|
|
4327
|
+
"file",
|
|
4328
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
4329
|
+
handle.filename
|
|
4330
|
+
);
|
|
4331
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
4332
|
+
}
|
|
4333
|
+
appendBackingEntry(
|
|
4334
|
+
JSCompiler_temp_const,
|
|
4335
|
+
JSCompiler_inline_result,
|
|
4336
|
+
key
|
|
4337
|
+
);
|
|
4234
4338
|
var queuedFields = current.queuedFields;
|
|
4235
4339
|
if (null !== queuedFields)
|
|
4236
|
-
for (
|
|
4237
|
-
resolveField(
|
|
4238
|
-
response,
|
|
4239
|
-
queuedFields[key$jscomp$0],
|
|
4240
|
-
queuedFields[key$jscomp$0 + 1]
|
|
4241
|
-
);
|
|
4340
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
4341
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
4242
4342
|
} catch (error) {
|
|
4243
4343
|
busboyStream.destroy(error);
|
|
4244
4344
|
return;
|
|
@@ -4508,11 +4608,21 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4508
4608
|
).written);
|
|
4509
4609
|
4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0);
|
|
4510
4610
|
}
|
|
4511
|
-
} else
|
|
4512
|
-
|
|
4611
|
+
} else if (0 === chunk.byteLength)
|
|
4612
|
+
if (supportsArrayBufferDetached) {
|
|
4613
|
+
if (chunk.buffer.detached)
|
|
4614
|
+
throw Error(
|
|
4615
|
+
"Cannot transport a detached buffer. This usually happens when trying to transport multiple buffer-spanning views on the same underyling buffer. Either reuse the exact same view by identity or copy the underlying buffer manually via `view.slice()`."
|
|
4616
|
+
);
|
|
4617
|
+
} else
|
|
4618
|
+
didWarnAboutMissingArrayBufferDetached || (console.error(
|
|
4619
|
+
"React encountered an empty buffer when writing in an environment that does not support ArrayBuffer.prototype.detached. This could be a security issue if the buffer was not actually empty. Please upgrade to a Node.js version that supports ArrayBuffer.prototype.detached."
|
|
4620
|
+
), didWarnAboutMissingArrayBufferDetached = true);
|
|
4621
|
+
else
|
|
4622
|
+
4096 < chunk.byteLength ? (0 < writtenBytes && (writeToDestination(
|
|
4513
4623
|
destination,
|
|
4514
4624
|
currentView.subarray(0, writtenBytes)
|
|
4515
|
-
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk)) : (target = currentView.length - writtenBytes, target < chunk.byteLength && (0 === target ? writeToDestination(destination, currentView) : (currentView.set(chunk.subarray(0, target), writtenBytes), writtenBytes += target, writeToDestination(destination, currentView), chunk = chunk.subarray(target)), currentView = new Uint8Array(4096), writtenBytes = 0), currentView.set(chunk, writtenBytes), writtenBytes += chunk.byteLength, 4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0))
|
|
4625
|
+
), currentView = new Uint8Array(4096), writtenBytes = 0), writeToDestination(destination, chunk)) : (target = currentView.length - writtenBytes, target < chunk.byteLength && (0 === target ? writeToDestination(destination, currentView) : (currentView.set(chunk.subarray(0, target), writtenBytes), writtenBytes += target, writeToDestination(destination, currentView), chunk = chunk.subarray(target)), currentView = new Uint8Array(4096), writtenBytes = 0), currentView.set(chunk, writtenBytes), writtenBytes += chunk.byteLength, 4096 === writtenBytes && (writeToDestination(destination, currentView), currentView = new Uint8Array(4096), writtenBytes = 0));
|
|
4516
4626
|
}
|
|
4517
4627
|
function writeToDestination(destination, view) {
|
|
4518
4628
|
destination = destination.write(view);
|
|
@@ -6935,13 +7045,29 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
6935
7045
|
}
|
|
6936
7046
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
6937
7047
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
7048
|
+
a: {
|
|
7049
|
+
var view = new Uint8Array(
|
|
7050
|
+
typedArray.buffer,
|
|
7051
|
+
typedArray.byteOffset,
|
|
7052
|
+
typedArray.byteLength
|
|
7053
|
+
);
|
|
7054
|
+
if (4096 < typedArray.byteLength) {
|
|
7055
|
+
if (0 !== typedArray.byteOffset || typedArray.byteLength !== typedArray.buffer.byteLength || typedArray.buffer.resizable) {
|
|
7056
|
+
typedArray = view.slice();
|
|
7057
|
+
break a;
|
|
7058
|
+
}
|
|
7059
|
+
if (!supportsArrayBufferDetached) {
|
|
7060
|
+
didWarnAboutMissingArrayBufferDetached || (console.error(
|
|
7061
|
+
"React copied a partial view into a fresh buffer as a safety precaution because the environment does not implement ArrayBuffer.prototype.detached. This negatively impacts performance. Please upgrade to a modern Node.js version."
|
|
7062
|
+
), didWarnAboutMissingArrayBufferDetached = true);
|
|
7063
|
+
typedArray = view.slice();
|
|
7064
|
+
break a;
|
|
7065
|
+
}
|
|
7066
|
+
}
|
|
7067
|
+
typedArray = view;
|
|
7068
|
+
}
|
|
7069
|
+
view = typedArray.byteLength;
|
|
7070
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
6945
7071
|
debug ? request.completedDebugChunks.push(
|
|
6946
7072
|
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
6947
7073
|
id,
|
|
@@ -7887,10 +8013,25 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
7887
8013
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
7888
8014
|
return moduleExports[metadata[2]];
|
|
7889
8015
|
}
|
|
7890
|
-
function appendBackingEntry(backingStore,
|
|
7891
|
-
backingStore.
|
|
7892
|
-
|
|
7893
|
-
|
|
8016
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
8017
|
+
var prefix2 = backingStore.prefix;
|
|
8018
|
+
if (key.startsWith(prefix2)) {
|
|
8019
|
+
switch (key[prefix2.length]) {
|
|
8020
|
+
case "_":
|
|
8021
|
+
prefix2 = backingStore.referencedEntries;
|
|
8022
|
+
null === prefix2 && (prefix2 = backingStore.referencedEntries = []);
|
|
8023
|
+
prefix2.push([key, value]);
|
|
8024
|
+
return;
|
|
8025
|
+
case "S":
|
|
8026
|
+
"string" === typeof value && (prefix2 = backingStore.streamChunks, null === prefix2 && (prefix2 = backingStore.streamChunks = /* @__PURE__ */ new Map()), backingStore = prefix2.get(key), void 0 === backingStore ? prefix2.set(key, [value]) : backingStore.push(value));
|
|
8027
|
+
return;
|
|
8028
|
+
}
|
|
8029
|
+
"string" === typeof value ? (prefix2 = backingStore.stringChunks, null === prefix2 && (prefix2 = backingStore.stringChunks = /* @__PURE__ */ new Map()), prefix2.set(key, value)) : (prefix2 = backingStore.blobs, null === prefix2 && (prefix2 = backingStore.blobs = /* @__PURE__ */ new Map()), prefix2.set(key, value));
|
|
8030
|
+
}
|
|
8031
|
+
}
|
|
8032
|
+
function getBackingBlob(backingStore, key) {
|
|
8033
|
+
backingStore = backingStore.blobs;
|
|
8034
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
7894
8035
|
}
|
|
7895
8036
|
function ReactPromise(status, value, reason) {
|
|
7896
8037
|
this.status = status;
|
|
@@ -8141,7 +8282,13 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8141
8282
|
}
|
|
8142
8283
|
function getChunk(response, id) {
|
|
8143
8284
|
var chunks = response._chunks, chunk = chunks.get(id);
|
|
8144
|
-
|
|
8285
|
+
if (!chunk) {
|
|
8286
|
+
chunk = response._prefix;
|
|
8287
|
+
var stringChunks = response._formData.stringChunks;
|
|
8288
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
8289
|
+
chunk = "string" === typeof chunk ? createResolvedModelChunk(response, chunk, id) : response._closed ? new ReactPromise("rejected", null, response._closedReason) : new ReactPromise("pending", null, null);
|
|
8290
|
+
chunks.set(id, chunk);
|
|
8291
|
+
}
|
|
8145
8292
|
return chunk;
|
|
8146
8293
|
}
|
|
8147
8294
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -8275,7 +8422,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8275
8422
|
Error("Already initialized typed array.")
|
|
8276
8423
|
)
|
|
8277
8424
|
);
|
|
8278
|
-
reference = response._formData
|
|
8425
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
8279
8426
|
if (initializingHandler) {
|
|
8280
8427
|
var handler = initializingHandler;
|
|
8281
8428
|
handler.deps++;
|
|
@@ -8306,11 +8453,14 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8306
8453
|
var chunks = response._chunks;
|
|
8307
8454
|
stream2 = new ReactPromise("fulfilled", stream2, controller);
|
|
8308
8455
|
chunks.set(id, stream2);
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8456
|
+
chunks = response._prefix;
|
|
8457
|
+
response = response._formData.streamChunks;
|
|
8458
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
8459
|
+
if (void 0 !== id)
|
|
8460
|
+
for (response = 0; response < id.length; response++)
|
|
8461
|
+
chunks = id[response], "C" === chunks[0] ? controller.close(
|
|
8462
|
+
"C" === chunks ? '"$undefined"' : chunks.slice(1)
|
|
8463
|
+
) : controller.enqueueModel(chunks);
|
|
8314
8464
|
}
|
|
8315
8465
|
function parseReadableStream(response, reference, type) {
|
|
8316
8466
|
function enqueue(value) {
|
|
@@ -8442,7 +8592,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8442
8592
|
});
|
|
8443
8593
|
return iterator;
|
|
8444
8594
|
}
|
|
8445
|
-
function parseModelString(response, obj, key, value, reference, arrayRoot) {
|
|
8595
|
+
function parseModelString(response, obj, key$jscomp$0, value, reference, arrayRoot) {
|
|
8446
8596
|
if ("$" === value[0]) {
|
|
8447
8597
|
switch (value[1]) {
|
|
8448
8598
|
case "$":
|
|
@@ -8454,7 +8604,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8454
8604
|
response,
|
|
8455
8605
|
arrayRoot,
|
|
8456
8606
|
obj,
|
|
8457
|
-
key,
|
|
8607
|
+
key$jscomp$0,
|
|
8458
8608
|
null,
|
|
8459
8609
|
loadServerReference$1
|
|
8460
8610
|
);
|
|
@@ -8468,37 +8618,46 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8468
8618
|
reference
|
|
8469
8619
|
);
|
|
8470
8620
|
case "Q":
|
|
8471
|
-
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
8621
|
+
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
8622
|
+
response,
|
|
8623
|
+
arrayRoot,
|
|
8624
|
+
obj,
|
|
8625
|
+
key$jscomp$0,
|
|
8626
|
+
null,
|
|
8627
|
+
createMap
|
|
8628
|
+
);
|
|
8472
8629
|
case "W":
|
|
8473
|
-
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
8630
|
+
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
8631
|
+
response,
|
|
8632
|
+
arrayRoot,
|
|
8633
|
+
obj,
|
|
8634
|
+
key$jscomp$0,
|
|
8635
|
+
null,
|
|
8636
|
+
createSet
|
|
8637
|
+
);
|
|
8474
8638
|
case "K":
|
|
8475
|
-
key = value.slice(2);
|
|
8476
|
-
obj = response.
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
reference = response;
|
|
8490
|
-
reference.data.delete(value);
|
|
8491
|
-
reference.keyPointer++;
|
|
8492
|
-
} else if (value.startsWith(obj)) break;
|
|
8493
|
-
else response.keyPointer++;
|
|
8639
|
+
key$jscomp$0 = value.slice(2);
|
|
8640
|
+
obj = response._formData;
|
|
8641
|
+
response = response._prefix + "_" + key$jscomp$0 + "_";
|
|
8642
|
+
key$jscomp$0 = new FormData();
|
|
8643
|
+
arrayRoot = obj.referencedEntries;
|
|
8644
|
+
if (null !== arrayRoot) {
|
|
8645
|
+
for (value = obj.keyPointer; value < arrayRoot.length; ) {
|
|
8646
|
+
reference = arrayRoot[value];
|
|
8647
|
+
var key = reference[0];
|
|
8648
|
+
if (!key.startsWith(response)) break;
|
|
8649
|
+
key$jscomp$0.append(key.slice(response.length), reference[1]);
|
|
8650
|
+
value++;
|
|
8651
|
+
}
|
|
8652
|
+
obj.keyPointer = value;
|
|
8494
8653
|
}
|
|
8495
|
-
return
|
|
8654
|
+
return key$jscomp$0;
|
|
8496
8655
|
case "i":
|
|
8497
8656
|
return arrayRoot = value.slice(2), getOutlinedModel(
|
|
8498
8657
|
response,
|
|
8499
8658
|
arrayRoot,
|
|
8500
8659
|
obj,
|
|
8501
|
-
key,
|
|
8660
|
+
key$jscomp$0,
|
|
8502
8661
|
null,
|
|
8503
8662
|
extractIterator
|
|
8504
8663
|
);
|
|
@@ -8527,7 +8686,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8527
8686
|
ArrayBuffer,
|
|
8528
8687
|
1,
|
|
8529
8688
|
obj,
|
|
8530
|
-
key,
|
|
8689
|
+
key$jscomp$0,
|
|
8531
8690
|
arrayRoot
|
|
8532
8691
|
);
|
|
8533
8692
|
case "O":
|
|
@@ -8537,7 +8696,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8537
8696
|
Int8Array,
|
|
8538
8697
|
1,
|
|
8539
8698
|
obj,
|
|
8540
|
-
key,
|
|
8699
|
+
key$jscomp$0,
|
|
8541
8700
|
arrayRoot
|
|
8542
8701
|
);
|
|
8543
8702
|
case "o":
|
|
@@ -8547,7 +8706,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8547
8706
|
Uint8Array,
|
|
8548
8707
|
1,
|
|
8549
8708
|
obj,
|
|
8550
|
-
key,
|
|
8709
|
+
key$jscomp$0,
|
|
8551
8710
|
arrayRoot
|
|
8552
8711
|
);
|
|
8553
8712
|
case "U":
|
|
@@ -8557,7 +8716,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8557
8716
|
Uint8ClampedArray,
|
|
8558
8717
|
1,
|
|
8559
8718
|
obj,
|
|
8560
|
-
key,
|
|
8719
|
+
key$jscomp$0,
|
|
8561
8720
|
arrayRoot
|
|
8562
8721
|
);
|
|
8563
8722
|
case "S":
|
|
@@ -8567,7 +8726,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8567
8726
|
Int16Array,
|
|
8568
8727
|
2,
|
|
8569
8728
|
obj,
|
|
8570
|
-
key,
|
|
8729
|
+
key$jscomp$0,
|
|
8571
8730
|
arrayRoot
|
|
8572
8731
|
);
|
|
8573
8732
|
case "s":
|
|
@@ -8577,7 +8736,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8577
8736
|
Uint16Array,
|
|
8578
8737
|
2,
|
|
8579
8738
|
obj,
|
|
8580
|
-
key,
|
|
8739
|
+
key$jscomp$0,
|
|
8581
8740
|
arrayRoot
|
|
8582
8741
|
);
|
|
8583
8742
|
case "L":
|
|
@@ -8587,7 +8746,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8587
8746
|
Int32Array,
|
|
8588
8747
|
4,
|
|
8589
8748
|
obj,
|
|
8590
|
-
key,
|
|
8749
|
+
key$jscomp$0,
|
|
8591
8750
|
arrayRoot
|
|
8592
8751
|
);
|
|
8593
8752
|
case "l":
|
|
@@ -8597,7 +8756,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8597
8756
|
Uint32Array,
|
|
8598
8757
|
4,
|
|
8599
8758
|
obj,
|
|
8600
|
-
key,
|
|
8759
|
+
key$jscomp$0,
|
|
8601
8760
|
arrayRoot
|
|
8602
8761
|
);
|
|
8603
8762
|
case "G":
|
|
@@ -8607,7 +8766,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8607
8766
|
Float32Array,
|
|
8608
8767
|
4,
|
|
8609
8768
|
obj,
|
|
8610
|
-
key,
|
|
8769
|
+
key$jscomp$0,
|
|
8611
8770
|
arrayRoot
|
|
8612
8771
|
);
|
|
8613
8772
|
case "g":
|
|
@@ -8617,7 +8776,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8617
8776
|
Float64Array,
|
|
8618
8777
|
8,
|
|
8619
8778
|
obj,
|
|
8620
|
-
key,
|
|
8779
|
+
key$jscomp$0,
|
|
8621
8780
|
arrayRoot
|
|
8622
8781
|
);
|
|
8623
8782
|
case "M":
|
|
@@ -8627,7 +8786,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8627
8786
|
BigInt64Array,
|
|
8628
8787
|
8,
|
|
8629
8788
|
obj,
|
|
8630
|
-
key,
|
|
8789
|
+
key$jscomp$0,
|
|
8631
8790
|
arrayRoot
|
|
8632
8791
|
);
|
|
8633
8792
|
case "m":
|
|
@@ -8637,7 +8796,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8637
8796
|
BigUint64Array,
|
|
8638
8797
|
8,
|
|
8639
8798
|
obj,
|
|
8640
|
-
key,
|
|
8799
|
+
key$jscomp$0,
|
|
8641
8800
|
arrayRoot
|
|
8642
8801
|
);
|
|
8643
8802
|
case "V":
|
|
@@ -8647,12 +8806,15 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8647
8806
|
DataView,
|
|
8648
8807
|
1,
|
|
8649
8808
|
obj,
|
|
8650
|
-
key,
|
|
8809
|
+
key$jscomp$0,
|
|
8651
8810
|
arrayRoot
|
|
8652
8811
|
);
|
|
8653
8812
|
case "B":
|
|
8654
8813
|
obj = parseInt(value.slice(2), 16);
|
|
8655
|
-
response =
|
|
8814
|
+
response = getBackingBlob(
|
|
8815
|
+
response._formData,
|
|
8816
|
+
response._prefix + obj
|
|
8817
|
+
);
|
|
8656
8818
|
if (!(response instanceof Blob))
|
|
8657
8819
|
throw Error("Referenced Blob is not a Blob.");
|
|
8658
8820
|
return response;
|
|
@@ -8670,7 +8832,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8670
8832
|
response,
|
|
8671
8833
|
value,
|
|
8672
8834
|
obj,
|
|
8673
|
-
key,
|
|
8835
|
+
key$jscomp$0,
|
|
8674
8836
|
arrayRoot,
|
|
8675
8837
|
createModel
|
|
8676
8838
|
);
|
|
@@ -8679,11 +8841,19 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8679
8841
|
return value;
|
|
8680
8842
|
}
|
|
8681
8843
|
function createResponse(bundlerConfig, formFieldPrefix, temporaryReferences) {
|
|
8682
|
-
var backingFormData = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : new FormData(), arraySizeLimit = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6, chunks = /* @__PURE__ */ new Map()
|
|
8844
|
+
var backingFormData = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : new FormData(), arraySizeLimit = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6, chunks = /* @__PURE__ */ new Map(), backingStore = {
|
|
8845
|
+
prefix: formFieldPrefix,
|
|
8846
|
+
referencedEntries: null,
|
|
8847
|
+
keyPointer: 0,
|
|
8848
|
+
stringChunks: null,
|
|
8849
|
+
streamChunks: null,
|
|
8850
|
+
blobs: null
|
|
8851
|
+
};
|
|
8852
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
8683
8853
|
return {
|
|
8684
8854
|
_bundlerConfig: bundlerConfig,
|
|
8685
8855
|
_prefix: formFieldPrefix,
|
|
8686
|
-
_formData:
|
|
8856
|
+
_formData: backingStore,
|
|
8687
8857
|
_chunks: chunks,
|
|
8688
8858
|
_closed: false,
|
|
8689
8859
|
_closedReason: null,
|
|
@@ -8693,13 +8863,20 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8693
8863
|
};
|
|
8694
8864
|
}
|
|
8695
8865
|
function resolveField(response, key, value) {
|
|
8696
|
-
appendBackingEntry(response._formData, key, value);
|
|
8697
8866
|
var prefix2 = response._prefix;
|
|
8698
8867
|
if (key.startsWith(prefix2)) {
|
|
8699
8868
|
var chunks = response._chunks;
|
|
8700
|
-
|
|
8701
|
-
|
|
8869
|
+
if ("S" === key[prefix2.length]) {
|
|
8870
|
+
if (key.length > prefix2.length + 1 && (prefix2 = +key.slice(prefix2.length + 1), chunks = chunks.get(prefix2))) {
|
|
8871
|
+
resolveModelChunk(response, chunks, value, prefix2);
|
|
8872
|
+
return;
|
|
8873
|
+
}
|
|
8874
|
+
} else if (prefix2 = +key.slice(prefix2.length), chunks = chunks.get(prefix2)) {
|
|
8875
|
+
resolveModelChunk(response, chunks, value, prefix2);
|
|
8876
|
+
return;
|
|
8877
|
+
}
|
|
8702
8878
|
}
|
|
8879
|
+
appendBackingEntry(response._formData, value, key);
|
|
8703
8880
|
}
|
|
8704
8881
|
function close(response) {
|
|
8705
8882
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -8851,7 +9028,10 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8851
9028
|
}
|
|
8852
9029
|
var stream = __import_stream2, util = __import_util2;
|
|
8853
9030
|
__import_crypto2;
|
|
8854
|
-
var async_hooks = __import_async_hooks2, ReactDOM = import_react_dom.default, React = import_react.default, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, ASYNC_ITERATOR = Symbol.asyncIterator, REACT_OPTIMISTIC_KEY = /* @__PURE__ */ Symbol.for("react.optimistic_key"),
|
|
9031
|
+
var async_hooks = __import_async_hooks2, ReactDOM = import_react_dom.default, React = import_react.default, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, ASYNC_ITERATOR = Symbol.asyncIterator, REACT_OPTIMISTIC_KEY = /* @__PURE__ */ Symbol.for("react.optimistic_key"), hasOwnProperty = Object.prototype.hasOwnProperty, supportsArrayBufferDetached = hasOwnProperty.call(
|
|
9032
|
+
ArrayBuffer.prototype,
|
|
9033
|
+
"detached"
|
|
9034
|
+
), didWarnAboutMissingArrayBufferDetached = false, scheduleMicrotask = queueMicrotask, currentView = null, writtenBytes = 0, destinationHasCapacity = true, textEncoder = new util.TextEncoder(), CLIENT_REFERENCE_TAG$1 = /* @__PURE__ */ Symbol.for("react.client.reference"), SERVER_REFERENCE_TAG = /* @__PURE__ */ Symbol.for("react.server.reference"), FunctionBind = Function.prototype.bind, ArraySlice = Array.prototype.slice, serverReferenceToString = {
|
|
8855
9035
|
value: function() {
|
|
8856
9036
|
return "function () { [omitted code] }";
|
|
8857
9037
|
},
|
|
@@ -9125,7 +9305,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9125
9305
|
react_stack_bottom_frame: function(iterator, progress, error) {
|
|
9126
9306
|
iterator.next().then(progress, error);
|
|
9127
9307
|
}
|
|
9128
|
-
}, callIteratorInDEV = callIterator.react_stack_bottom_frame.bind(callIterator), isArrayImpl = Array.isArray, getPrototypeOf = Object.getPrototypeOf, jsxPropsParents = /* @__PURE__ */ new WeakMap(), jsxChildrenParents = /* @__PURE__ */ new WeakMap(), CLIENT_REFERENCE_TAG = /* @__PURE__ */ Symbol.for("react.client.reference"),
|
|
9308
|
+
}, callIteratorInDEV = callIterator.react_stack_bottom_frame.bind(callIterator), isArrayImpl = Array.isArray, getPrototypeOf = Object.getPrototypeOf, jsxPropsParents = /* @__PURE__ */ new WeakMap(), jsxChildrenParents = /* @__PURE__ */ new WeakMap(), CLIENT_REFERENCE_TAG = /* @__PURE__ */ Symbol.for("react.client.reference"), doNotLimit = /* @__PURE__ */ new WeakSet();
|
|
9129
9309
|
(function() {
|
|
9130
9310
|
async_hooks.createHook({
|
|
9131
9311
|
init: function(asyncId, type, triggerAsyncId, resource) {
|
|
@@ -9366,7 +9546,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9366
9546
|
var _entry$value = entry.value;
|
|
9367
9547
|
entry = _entry$value[0];
|
|
9368
9548
|
_entry$value = _entry$value[1];
|
|
9369
|
-
"string" === typeof _entry$value ? resolveField(response, entry, _entry$value) : appendBackingEntry(response._formData,
|
|
9549
|
+
"string" === typeof _entry$value ? resolveField(response, entry, _entry$value) : appendBackingEntry(response._formData, _entry$value, entry);
|
|
9370
9550
|
iterator.next().then(progress, error);
|
|
9371
9551
|
}
|
|
9372
9552
|
}
|
|
@@ -9390,19 +9570,32 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9390
9570
|
var current = head;
|
|
9391
9571
|
if (!current.complete) return;
|
|
9392
9572
|
try {
|
|
9393
|
-
var
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9573
|
+
var key = current.name, JSCompiler_temp_const = response._formData;
|
|
9574
|
+
var handle = current.file;
|
|
9575
|
+
if ("function" === typeof File)
|
|
9576
|
+
var JSCompiler_inline_result = new File(
|
|
9577
|
+
handle.chunks,
|
|
9578
|
+
handle.filename,
|
|
9579
|
+
{ type: handle.mime }
|
|
9580
|
+
);
|
|
9581
|
+
else {
|
|
9582
|
+
var scratch = new FormData();
|
|
9583
|
+
scratch.append(
|
|
9584
|
+
"file",
|
|
9585
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
9586
|
+
handle.filename
|
|
9587
|
+
);
|
|
9588
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
9589
|
+
}
|
|
9590
|
+
appendBackingEntry(
|
|
9591
|
+
JSCompiler_temp_const,
|
|
9592
|
+
JSCompiler_inline_result,
|
|
9593
|
+
key
|
|
9594
|
+
);
|
|
9398
9595
|
var queuedFields = current.queuedFields;
|
|
9399
9596
|
if (null !== queuedFields)
|
|
9400
|
-
for (
|
|
9401
|
-
resolveField(
|
|
9402
|
-
response$jscomp$0,
|
|
9403
|
-
queuedFields[response],
|
|
9404
|
-
queuedFields[response + 1]
|
|
9405
|
-
);
|
|
9597
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
9598
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
9406
9599
|
} catch (error) {
|
|
9407
9600
|
busboyStream.destroy(error);
|
|
9408
9601
|
return;
|
|
@@ -9410,9 +9603,9 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9410
9603
|
head = current.next;
|
|
9411
9604
|
}
|
|
9412
9605
|
tail = null;
|
|
9413
|
-
bodyFinished && !closed && (closed = true, close(response
|
|
9606
|
+
bodyFinished && !closed && (closed = true, close(response));
|
|
9414
9607
|
}
|
|
9415
|
-
var response
|
|
9608
|
+
var response = createResponse(
|
|
9416
9609
|
webpackMap,
|
|
9417
9610
|
"",
|
|
9418
9611
|
options ? options.temporaryReferences : void 0,
|
|
@@ -9424,7 +9617,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9424
9617
|
null === tail.queuedFields && (tail.queuedFields = []), tail.queuedFields.push(name, value);
|
|
9425
9618
|
else
|
|
9426
9619
|
try {
|
|
9427
|
-
resolveField(response
|
|
9620
|
+
resolveField(response, name, value);
|
|
9428
9621
|
} catch (error) {
|
|
9429
9622
|
busboyStream.destroy(error);
|
|
9430
9623
|
}
|
|
@@ -9467,14 +9660,14 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
9467
9660
|
bodyFinished = true;
|
|
9468
9661
|
flush();
|
|
9469
9662
|
closed || reportGlobalError(
|
|
9470
|
-
response
|
|
9663
|
+
response,
|
|
9471
9664
|
Error("Reply finished with incomplete file part.")
|
|
9472
9665
|
);
|
|
9473
9666
|
});
|
|
9474
9667
|
busboyStream.on("error", function(err) {
|
|
9475
|
-
reportGlobalError(response
|
|
9668
|
+
reportGlobalError(response, err);
|
|
9476
9669
|
});
|
|
9477
|
-
return getChunk(response
|
|
9670
|
+
return getChunk(response, 0);
|
|
9478
9671
|
};
|
|
9479
9672
|
exports.prerender = function(model, webpackMap, options) {
|
|
9480
9673
|
return new Promise(function(resolve, reject) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "8.0.0-canary.
|
|
3
|
+
"version": "8.0.0-canary.3462",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"@babel/preset-typescript": "7.29.7",
|
|
55
55
|
"@babel/traverse": "7.29.10",
|
|
56
56
|
"@babel/types": "7.29.8",
|
|
57
|
-
"@cedarjs/api": "8.0.0-canary.
|
|
58
|
-
"@cedarjs/api-server": "8.0.0-canary.
|
|
59
|
-
"@cedarjs/babel-config": "8.0.0-canary.
|
|
60
|
-
"@cedarjs/context": "8.0.0-canary.
|
|
61
|
-
"@cedarjs/graphql-server": "8.0.0-canary.
|
|
62
|
-
"@cedarjs/internal": "8.0.0-canary.
|
|
63
|
-
"@cedarjs/jobs": "8.0.0-canary.
|
|
64
|
-
"@cedarjs/project-config": "8.0.0-canary.
|
|
65
|
-
"@cedarjs/server-store": "8.0.0-canary.
|
|
66
|
-
"@cedarjs/structure": "8.0.0-canary.
|
|
67
|
-
"@cedarjs/testing": "8.0.0-canary.
|
|
57
|
+
"@cedarjs/api": "8.0.0-canary.3462",
|
|
58
|
+
"@cedarjs/api-server": "8.0.0-canary.3462",
|
|
59
|
+
"@cedarjs/babel-config": "8.0.0-canary.3462",
|
|
60
|
+
"@cedarjs/context": "8.0.0-canary.3462",
|
|
61
|
+
"@cedarjs/graphql-server": "8.0.0-canary.3462",
|
|
62
|
+
"@cedarjs/internal": "8.0.0-canary.3462",
|
|
63
|
+
"@cedarjs/jobs": "8.0.0-canary.3462",
|
|
64
|
+
"@cedarjs/project-config": "8.0.0-canary.3462",
|
|
65
|
+
"@cedarjs/server-store": "8.0.0-canary.3462",
|
|
66
|
+
"@cedarjs/structure": "8.0.0-canary.3462",
|
|
67
|
+
"@cedarjs/testing": "8.0.0-canary.3462",
|
|
68
68
|
"@swc/core": "1.16.18",
|
|
69
69
|
"@universal-deploy/store": "^0.3.0",
|
|
70
70
|
"@universal-deploy/vite": "^0.2.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"isbot": "5.2.2",
|
|
84
84
|
"magic-string": "0.30.21",
|
|
85
85
|
"oxc-parser": "0.154.0",
|
|
86
|
-
"react-server-dom-webpack": "19.3.
|
|
86
|
+
"react-server-dom-webpack": "19.3.1",
|
|
87
87
|
"unimport": "5.7.0",
|
|
88
88
|
"unplugin-auto-import": "19.3.0",
|
|
89
89
|
"vite": "7.3.7",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"yargs-parser": "21.1.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cedarjs/auth": "8.0.0-canary.
|
|
98
|
-
"@cedarjs/framework-tools": "8.0.0-canary.
|
|
99
|
-
"@cedarjs/router": "8.0.0-canary.
|
|
100
|
-
"@cedarjs/web": "8.0.0-canary.
|
|
97
|
+
"@cedarjs/auth": "8.0.0-canary.3462",
|
|
98
|
+
"@cedarjs/framework-tools": "8.0.0-canary.3462",
|
|
99
|
+
"@cedarjs/router": "8.0.0-canary.3462",
|
|
100
|
+
"@cedarjs/web": "8.0.0-canary.3462",
|
|
101
101
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
102
102
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
103
103
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
@@ -111,19 +111,19 @@
|
|
|
111
111
|
"concurrently": "9.2.5",
|
|
112
112
|
"memfs": "4.80.0",
|
|
113
113
|
"publint": "0.3.25",
|
|
114
|
-
"react": "19.3.
|
|
115
|
-
"react-dom": "19.3.
|
|
114
|
+
"react": "19.3.1",
|
|
115
|
+
"react-dom": "19.3.1",
|
|
116
116
|
"rollup": "4.64.6",
|
|
117
117
|
"ts-dedent": "2.3.0",
|
|
118
118
|
"typescript": "5.9.3",
|
|
119
119
|
"vitest": "4.1.12"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
|
-
"@cedarjs/auth": "8.0.0-canary.
|
|
123
|
-
"@cedarjs/router": "8.0.0-canary.
|
|
124
|
-
"@cedarjs/web": "8.0.0-canary.
|
|
125
|
-
"react": "19.3.
|
|
126
|
-
"react-dom": "19.3.
|
|
122
|
+
"@cedarjs/auth": "8.0.0-canary.3462",
|
|
123
|
+
"@cedarjs/router": "8.0.0-canary.3462",
|
|
124
|
+
"@cedarjs/web": "8.0.0-canary.3462",
|
|
125
|
+
"react": "19.3.1",
|
|
126
|
+
"react-dom": "19.3.1"
|
|
127
127
|
},
|
|
128
128
|
"engines": {
|
|
129
129
|
"node": ">=24"
|