react-server-dom-turbopack 19.3.0 → 19.3.1
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-turbopack-client.browser.development.js +58 -45
- package/cjs/react-server-dom-turbopack-client.browser.production.js +79 -64
- package/cjs/react-server-dom-turbopack-client.edge.development.js +59 -42
- package/cjs/react-server-dom-turbopack-client.edge.production.js +82 -67
- package/cjs/react-server-dom-turbopack-client.node.development.js +59 -42
- package/cjs/react-server-dom-turbopack-client.node.production.js +82 -67
- package/cjs/react-server-dom-turbopack-server.browser.development.js +188 -94
- package/cjs/react-server-dom-turbopack-server.browser.production.js +181 -89
- package/cjs/react-server-dom-turbopack-server.edge.development.js +219 -112
- package/cjs/react-server-dom-turbopack-server.edge.production.js +209 -107
- package/cjs/react-server-dom-turbopack-server.node.development.js +240 -131
- package/cjs/react-server-dom-turbopack-server.node.production.js +228 -123
- package/package.json +3 -3
|
@@ -57,33 +57,44 @@
|
|
|
57
57
|
(currentView = new Uint8Array(4096)),
|
|
58
58
|
(writtenBytes = 0));
|
|
59
59
|
}
|
|
60
|
-
} else
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(currentView
|
|
86
|
-
(
|
|
60
|
+
} else if (0 === chunk.byteLength)
|
|
61
|
+
if (supportsArrayBufferDetached) {
|
|
62
|
+
if (chunk.buffer.detached)
|
|
63
|
+
throw Error(
|
|
64
|
+
"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()`."
|
|
65
|
+
);
|
|
66
|
+
} else
|
|
67
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
68
|
+
(console.error(
|
|
69
|
+
"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."
|
|
70
|
+
),
|
|
71
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
72
|
+
else
|
|
73
|
+
4096 < chunk.byteLength
|
|
74
|
+
? (0 < writtenBytes &&
|
|
75
|
+
(writeToDestination(
|
|
76
|
+
destination,
|
|
77
|
+
currentView.subarray(0, writtenBytes)
|
|
78
|
+
),
|
|
79
|
+
(currentView = new Uint8Array(4096)),
|
|
80
|
+
(writtenBytes = 0)),
|
|
81
|
+
writeToDestination(destination, chunk))
|
|
82
|
+
: ((target = currentView.length - writtenBytes),
|
|
83
|
+
target < chunk.byteLength &&
|
|
84
|
+
(0 === target
|
|
85
|
+
? writeToDestination(destination, currentView)
|
|
86
|
+
: (currentView.set(chunk.subarray(0, target), writtenBytes),
|
|
87
|
+
(writtenBytes += target),
|
|
88
|
+
writeToDestination(destination, currentView),
|
|
89
|
+
(chunk = chunk.subarray(target))),
|
|
90
|
+
(currentView = new Uint8Array(4096)),
|
|
91
|
+
(writtenBytes = 0)),
|
|
92
|
+
currentView.set(chunk, writtenBytes),
|
|
93
|
+
(writtenBytes += chunk.byteLength),
|
|
94
|
+
4096 === writtenBytes &&
|
|
95
|
+
(writeToDestination(destination, currentView),
|
|
96
|
+
(currentView = new Uint8Array(4096)),
|
|
97
|
+
(writtenBytes = 0)));
|
|
87
98
|
}
|
|
88
99
|
function writeToDestination(destination, view) {
|
|
89
100
|
destination = destination.write(view);
|
|
@@ -3475,13 +3486,35 @@
|
|
|
3475
3486
|
}
|
|
3476
3487
|
function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
|
|
3477
3488
|
debug ? request.pendingDebugChunks++ : request.pendingChunks++;
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3489
|
+
a: {
|
|
3490
|
+
var view = new Uint8Array(
|
|
3491
|
+
typedArray.buffer,
|
|
3492
|
+
typedArray.byteOffset,
|
|
3493
|
+
typedArray.byteLength
|
|
3494
|
+
);
|
|
3495
|
+
if (4096 < typedArray.byteLength) {
|
|
3496
|
+
if (
|
|
3497
|
+
0 !== typedArray.byteOffset ||
|
|
3498
|
+
typedArray.byteLength !== typedArray.buffer.byteLength ||
|
|
3499
|
+
typedArray.buffer.resizable
|
|
3500
|
+
) {
|
|
3501
|
+
typedArray = view.slice();
|
|
3502
|
+
break a;
|
|
3503
|
+
}
|
|
3504
|
+
if (!supportsArrayBufferDetached) {
|
|
3505
|
+
didWarnAboutMissingArrayBufferDetached ||
|
|
3506
|
+
(console.error(
|
|
3507
|
+
"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."
|
|
3508
|
+
),
|
|
3509
|
+
(didWarnAboutMissingArrayBufferDetached = !0));
|
|
3510
|
+
typedArray = view.slice();
|
|
3511
|
+
break a;
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
typedArray = view;
|
|
3515
|
+
}
|
|
3516
|
+
view = typedArray.byteLength;
|
|
3517
|
+
id = id.toString(16) + ":" + tag + view.toString(16) + ",";
|
|
3485
3518
|
debug
|
|
3486
3519
|
? request.completedDebugChunks.push(
|
|
3487
3520
|
NEXT_TWO_CHUNKS_ARE_ATOMIC,
|
|
@@ -4741,13 +4774,38 @@
|
|
|
4741
4774
|
if (hasOwnProperty.call(moduleExports, metadata[2]))
|
|
4742
4775
|
return moduleExports[metadata[2]];
|
|
4743
4776
|
}
|
|
4744
|
-
function appendBackingEntry(backingStore,
|
|
4745
|
-
backingStore.
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4777
|
+
function appendBackingEntry(backingStore, value, key) {
|
|
4778
|
+
var prefix = backingStore.prefix;
|
|
4779
|
+
if (key.startsWith(prefix)) {
|
|
4780
|
+
switch (key[prefix.length]) {
|
|
4781
|
+
case "_":
|
|
4782
|
+
prefix = backingStore.referencedEntries;
|
|
4783
|
+
null === prefix && (prefix = backingStore.referencedEntries = []);
|
|
4784
|
+
prefix.push([key, value]);
|
|
4785
|
+
return;
|
|
4786
|
+
case "S":
|
|
4787
|
+
"string" === typeof value &&
|
|
4788
|
+
((prefix = backingStore.streamChunks),
|
|
4789
|
+
null === prefix &&
|
|
4790
|
+
(prefix = backingStore.streamChunks = new Map()),
|
|
4791
|
+
(backingStore = prefix.get(key)),
|
|
4792
|
+
void 0 === backingStore
|
|
4793
|
+
? prefix.set(key, [value])
|
|
4794
|
+
: backingStore.push(value));
|
|
4795
|
+
return;
|
|
4796
|
+
}
|
|
4797
|
+
"string" === typeof value
|
|
4798
|
+
? ((prefix = backingStore.stringChunks),
|
|
4799
|
+
null === prefix && (prefix = backingStore.stringChunks = new Map()),
|
|
4800
|
+
prefix.set(key, value))
|
|
4801
|
+
: ((prefix = backingStore.blobs),
|
|
4802
|
+
null === prefix && (prefix = backingStore.blobs = new Map()),
|
|
4803
|
+
prefix.set(key, value));
|
|
4804
|
+
}
|
|
4805
|
+
}
|
|
4806
|
+
function getBackingBlob(backingStore, key) {
|
|
4807
|
+
backingStore = backingStore.blobs;
|
|
4808
|
+
return null === backingStore ? void 0 : backingStore.get(key);
|
|
4751
4809
|
}
|
|
4752
4810
|
function ReactPromise(status, value, reason) {
|
|
4753
4811
|
this.status = status;
|
|
@@ -5085,15 +5143,18 @@
|
|
|
5085
5143
|
function getChunk(response, id) {
|
|
5086
5144
|
var chunks = response._chunks,
|
|
5087
5145
|
chunk = chunks.get(id);
|
|
5088
|
-
chunk
|
|
5089
|
-
|
|
5090
|
-
|
|
5146
|
+
if (!chunk) {
|
|
5147
|
+
chunk = response._prefix;
|
|
5148
|
+
var stringChunks = response._formData.stringChunks;
|
|
5149
|
+
chunk = null === stringChunks ? void 0 : stringChunks.get(chunk + id);
|
|
5150
|
+
chunk =
|
|
5091
5151
|
"string" === typeof chunk
|
|
5092
5152
|
? createResolvedModelChunk(response, chunk, id)
|
|
5093
5153
|
: response._closed
|
|
5094
5154
|
? new ReactPromise("rejected", null, response._closedReason)
|
|
5095
|
-
: new ReactPromise("pending", null, null)
|
|
5096
|
-
chunks.set(id, chunk)
|
|
5155
|
+
: new ReactPromise("pending", null, null);
|
|
5156
|
+
chunks.set(id, chunk);
|
|
5157
|
+
}
|
|
5097
5158
|
return chunk;
|
|
5098
5159
|
}
|
|
5099
5160
|
function fulfillReference(response, reference, value, arrayRoot) {
|
|
@@ -5340,7 +5401,7 @@
|
|
|
5340
5401
|
Error("Already initialized typed array.")
|
|
5341
5402
|
)
|
|
5342
5403
|
);
|
|
5343
|
-
reference = response._formData
|
|
5404
|
+
reference = getBackingBlob(response._formData, key).arrayBuffer();
|
|
5344
5405
|
if (initializingHandler) {
|
|
5345
5406
|
var handler = initializingHandler;
|
|
5346
5407
|
handler.deps++;
|
|
@@ -5384,15 +5445,17 @@
|
|
|
5384
5445
|
var chunks = response._chunks;
|
|
5385
5446
|
stream = new ReactPromise("fulfilled", stream, controller);
|
|
5386
5447
|
chunks.set(id, stream);
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5448
|
+
chunks = response._prefix;
|
|
5449
|
+
response = response._formData.streamChunks;
|
|
5450
|
+
id = null === response ? void 0 : response.get(chunks + "S" + id);
|
|
5451
|
+
if (void 0 !== id)
|
|
5452
|
+
for (response = 0; response < id.length; response++)
|
|
5453
|
+
(chunks = id[response]),
|
|
5454
|
+
"C" === chunks[0]
|
|
5392
5455
|
? controller.close(
|
|
5393
5456
|
"C" === chunks ? '"$undefined"' : chunks.slice(1)
|
|
5394
5457
|
)
|
|
5395
|
-
: controller.enqueueModel(chunks)
|
|
5458
|
+
: controller.enqueueModel(chunks);
|
|
5396
5459
|
}
|
|
5397
5460
|
function parseReadableStream(response, reference, type) {
|
|
5398
5461
|
function enqueue(value) {
|
|
@@ -5557,7 +5620,14 @@
|
|
|
5557
5620
|
});
|
|
5558
5621
|
return iterator;
|
|
5559
5622
|
}
|
|
5560
|
-
function parseModelString(
|
|
5623
|
+
function parseModelString(
|
|
5624
|
+
response,
|
|
5625
|
+
obj,
|
|
5626
|
+
key$jscomp$0,
|
|
5627
|
+
value,
|
|
5628
|
+
reference,
|
|
5629
|
+
arrayRoot
|
|
5630
|
+
) {
|
|
5561
5631
|
if ("$" === value[0]) {
|
|
5562
5632
|
switch (value[1]) {
|
|
5563
5633
|
case "$":
|
|
@@ -5577,7 +5647,7 @@
|
|
|
5577
5647
|
response,
|
|
5578
5648
|
arrayRoot,
|
|
5579
5649
|
obj,
|
|
5580
|
-
key,
|
|
5650
|
+
key$jscomp$0,
|
|
5581
5651
|
null,
|
|
5582
5652
|
loadServerReference$1
|
|
5583
5653
|
)
|
|
@@ -5597,41 +5667,44 @@
|
|
|
5597
5667
|
case "Q":
|
|
5598
5668
|
return (
|
|
5599
5669
|
(arrayRoot = value.slice(2)),
|
|
5600
|
-
getOutlinedModel(
|
|
5670
|
+
getOutlinedModel(
|
|
5671
|
+
response,
|
|
5672
|
+
arrayRoot,
|
|
5673
|
+
obj,
|
|
5674
|
+
key$jscomp$0,
|
|
5675
|
+
null,
|
|
5676
|
+
createMap
|
|
5677
|
+
)
|
|
5601
5678
|
);
|
|
5602
5679
|
case "W":
|
|
5603
5680
|
return (
|
|
5604
5681
|
(arrayRoot = value.slice(2)),
|
|
5605
|
-
getOutlinedModel(
|
|
5682
|
+
getOutlinedModel(
|
|
5683
|
+
response,
|
|
5684
|
+
arrayRoot,
|
|
5685
|
+
obj,
|
|
5686
|
+
key$jscomp$0,
|
|
5687
|
+
null,
|
|
5688
|
+
createSet
|
|
5689
|
+
)
|
|
5606
5690
|
);
|
|
5607
5691
|
case "K":
|
|
5608
|
-
key = value.slice(2);
|
|
5609
|
-
obj = response.
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
(
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
for (
|
|
5623
|
-
var referencedFormDataKey = value.slice(key.length), i = 0;
|
|
5624
|
-
i < reference.length;
|
|
5625
|
-
i++
|
|
5626
|
-
)
|
|
5627
|
-
arrayRoot.append(referencedFormDataKey, reference[i]);
|
|
5628
|
-
reference = response;
|
|
5629
|
-
reference.data.delete(value);
|
|
5630
|
-
reference.keyPointer++;
|
|
5631
|
-
} else if (value.startsWith(obj)) break;
|
|
5632
|
-
else response.keyPointer++;
|
|
5692
|
+
key$jscomp$0 = value.slice(2);
|
|
5693
|
+
obj = response._formData;
|
|
5694
|
+
response = response._prefix + "_" + key$jscomp$0 + "_";
|
|
5695
|
+
key$jscomp$0 = new FormData();
|
|
5696
|
+
arrayRoot = obj.referencedEntries;
|
|
5697
|
+
if (null !== arrayRoot) {
|
|
5698
|
+
for (value = obj.keyPointer; value < arrayRoot.length; ) {
|
|
5699
|
+
reference = arrayRoot[value];
|
|
5700
|
+
var key = reference[0];
|
|
5701
|
+
if (!key.startsWith(response)) break;
|
|
5702
|
+
key$jscomp$0.append(key.slice(response.length), reference[1]);
|
|
5703
|
+
value++;
|
|
5704
|
+
}
|
|
5705
|
+
obj.keyPointer = value;
|
|
5633
5706
|
}
|
|
5634
|
-
return
|
|
5707
|
+
return key$jscomp$0;
|
|
5635
5708
|
case "i":
|
|
5636
5709
|
return (
|
|
5637
5710
|
(arrayRoot = value.slice(2)),
|
|
@@ -5639,7 +5712,7 @@
|
|
|
5639
5712
|
response,
|
|
5640
5713
|
arrayRoot,
|
|
5641
5714
|
obj,
|
|
5642
|
-
key,
|
|
5715
|
+
key$jscomp$0,
|
|
5643
5716
|
null,
|
|
5644
5717
|
extractIterator
|
|
5645
5718
|
)
|
|
@@ -5674,7 +5747,7 @@
|
|
|
5674
5747
|
ArrayBuffer,
|
|
5675
5748
|
1,
|
|
5676
5749
|
obj,
|
|
5677
|
-
key,
|
|
5750
|
+
key$jscomp$0,
|
|
5678
5751
|
arrayRoot
|
|
5679
5752
|
);
|
|
5680
5753
|
case "O":
|
|
@@ -5684,7 +5757,7 @@
|
|
|
5684
5757
|
Int8Array,
|
|
5685
5758
|
1,
|
|
5686
5759
|
obj,
|
|
5687
|
-
key,
|
|
5760
|
+
key$jscomp$0,
|
|
5688
5761
|
arrayRoot
|
|
5689
5762
|
);
|
|
5690
5763
|
case "o":
|
|
@@ -5694,7 +5767,7 @@
|
|
|
5694
5767
|
Uint8Array,
|
|
5695
5768
|
1,
|
|
5696
5769
|
obj,
|
|
5697
|
-
key,
|
|
5770
|
+
key$jscomp$0,
|
|
5698
5771
|
arrayRoot
|
|
5699
5772
|
);
|
|
5700
5773
|
case "U":
|
|
@@ -5704,7 +5777,7 @@
|
|
|
5704
5777
|
Uint8ClampedArray,
|
|
5705
5778
|
1,
|
|
5706
5779
|
obj,
|
|
5707
|
-
key,
|
|
5780
|
+
key$jscomp$0,
|
|
5708
5781
|
arrayRoot
|
|
5709
5782
|
);
|
|
5710
5783
|
case "S":
|
|
@@ -5714,7 +5787,7 @@
|
|
|
5714
5787
|
Int16Array,
|
|
5715
5788
|
2,
|
|
5716
5789
|
obj,
|
|
5717
|
-
key,
|
|
5790
|
+
key$jscomp$0,
|
|
5718
5791
|
arrayRoot
|
|
5719
5792
|
);
|
|
5720
5793
|
case "s":
|
|
@@ -5724,7 +5797,7 @@
|
|
|
5724
5797
|
Uint16Array,
|
|
5725
5798
|
2,
|
|
5726
5799
|
obj,
|
|
5727
|
-
key,
|
|
5800
|
+
key$jscomp$0,
|
|
5728
5801
|
arrayRoot
|
|
5729
5802
|
);
|
|
5730
5803
|
case "L":
|
|
@@ -5734,7 +5807,7 @@
|
|
|
5734
5807
|
Int32Array,
|
|
5735
5808
|
4,
|
|
5736
5809
|
obj,
|
|
5737
|
-
key,
|
|
5810
|
+
key$jscomp$0,
|
|
5738
5811
|
arrayRoot
|
|
5739
5812
|
);
|
|
5740
5813
|
case "l":
|
|
@@ -5744,7 +5817,7 @@
|
|
|
5744
5817
|
Uint32Array,
|
|
5745
5818
|
4,
|
|
5746
5819
|
obj,
|
|
5747
|
-
key,
|
|
5820
|
+
key$jscomp$0,
|
|
5748
5821
|
arrayRoot
|
|
5749
5822
|
);
|
|
5750
5823
|
case "G":
|
|
@@ -5754,7 +5827,7 @@
|
|
|
5754
5827
|
Float32Array,
|
|
5755
5828
|
4,
|
|
5756
5829
|
obj,
|
|
5757
|
-
key,
|
|
5830
|
+
key$jscomp$0,
|
|
5758
5831
|
arrayRoot
|
|
5759
5832
|
);
|
|
5760
5833
|
case "g":
|
|
@@ -5764,7 +5837,7 @@
|
|
|
5764
5837
|
Float64Array,
|
|
5765
5838
|
8,
|
|
5766
5839
|
obj,
|
|
5767
|
-
key,
|
|
5840
|
+
key$jscomp$0,
|
|
5768
5841
|
arrayRoot
|
|
5769
5842
|
);
|
|
5770
5843
|
case "M":
|
|
@@ -5774,7 +5847,7 @@
|
|
|
5774
5847
|
BigInt64Array,
|
|
5775
5848
|
8,
|
|
5776
5849
|
obj,
|
|
5777
|
-
key,
|
|
5850
|
+
key$jscomp$0,
|
|
5778
5851
|
arrayRoot
|
|
5779
5852
|
);
|
|
5780
5853
|
case "m":
|
|
@@ -5784,7 +5857,7 @@
|
|
|
5784
5857
|
BigUint64Array,
|
|
5785
5858
|
8,
|
|
5786
5859
|
obj,
|
|
5787
|
-
key,
|
|
5860
|
+
key$jscomp$0,
|
|
5788
5861
|
arrayRoot
|
|
5789
5862
|
);
|
|
5790
5863
|
case "V":
|
|
@@ -5794,12 +5867,15 @@
|
|
|
5794
5867
|
DataView,
|
|
5795
5868
|
1,
|
|
5796
5869
|
obj,
|
|
5797
|
-
key,
|
|
5870
|
+
key$jscomp$0,
|
|
5798
5871
|
arrayRoot
|
|
5799
5872
|
);
|
|
5800
5873
|
case "B":
|
|
5801
5874
|
obj = parseInt(value.slice(2), 16);
|
|
5802
|
-
response =
|
|
5875
|
+
response = getBackingBlob(
|
|
5876
|
+
response._formData,
|
|
5877
|
+
response._prefix + obj
|
|
5878
|
+
);
|
|
5803
5879
|
if (!(response instanceof Blob))
|
|
5804
5880
|
throw Error("Referenced Blob is not a Blob.");
|
|
5805
5881
|
return response;
|
|
@@ -5817,7 +5893,7 @@
|
|
|
5817
5893
|
response,
|
|
5818
5894
|
value,
|
|
5819
5895
|
obj,
|
|
5820
|
-
key,
|
|
5896
|
+
key$jscomp$0,
|
|
5821
5897
|
arrayRoot,
|
|
5822
5898
|
createModel
|
|
5823
5899
|
);
|
|
@@ -5836,11 +5912,20 @@
|
|
|
5836
5912
|
: new FormData(),
|
|
5837
5913
|
arraySizeLimit =
|
|
5838
5914
|
4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,
|
|
5839
|
-
chunks = new Map()
|
|
5915
|
+
chunks = new Map(),
|
|
5916
|
+
backingStore = {
|
|
5917
|
+
prefix: formFieldPrefix,
|
|
5918
|
+
referencedEntries: null,
|
|
5919
|
+
keyPointer: 0,
|
|
5920
|
+
stringChunks: null,
|
|
5921
|
+
streamChunks: null,
|
|
5922
|
+
blobs: null
|
|
5923
|
+
};
|
|
5924
|
+
backingFormData.forEach(appendBackingEntry.bind(null, backingStore));
|
|
5840
5925
|
return {
|
|
5841
5926
|
_bundlerConfig: bundlerConfig,
|
|
5842
5927
|
_prefix: formFieldPrefix,
|
|
5843
|
-
_formData:
|
|
5928
|
+
_formData: backingStore,
|
|
5844
5929
|
_chunks: chunks,
|
|
5845
5930
|
_closed: !1,
|
|
5846
5931
|
_closedReason: null,
|
|
@@ -5850,14 +5935,26 @@
|
|
|
5850
5935
|
};
|
|
5851
5936
|
}
|
|
5852
5937
|
function resolveField(response, key, value) {
|
|
5853
|
-
appendBackingEntry(response._formData, key, value);
|
|
5854
5938
|
var prefix = response._prefix;
|
|
5855
5939
|
if (key.startsWith(prefix)) {
|
|
5856
5940
|
var chunks = response._chunks;
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5941
|
+
if ("S" === key[prefix.length]) {
|
|
5942
|
+
if (
|
|
5943
|
+
key.length > prefix.length + 1 &&
|
|
5944
|
+
((prefix = +key.slice(prefix.length + 1)),
|
|
5945
|
+
(chunks = chunks.get(prefix)))
|
|
5946
|
+
) {
|
|
5947
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
5948
|
+
return;
|
|
5949
|
+
}
|
|
5950
|
+
} else if (
|
|
5951
|
+
((prefix = +key.slice(prefix.length)), (chunks = chunks.get(prefix)))
|
|
5952
|
+
) {
|
|
5953
|
+
resolveModelChunk(response, chunks, value, prefix);
|
|
5954
|
+
return;
|
|
5955
|
+
}
|
|
5860
5956
|
}
|
|
5957
|
+
appendBackingEntry(response._formData, value, key);
|
|
5861
5958
|
}
|
|
5862
5959
|
function close(response) {
|
|
5863
5960
|
reportGlobalError(response, Error("Connection closed."));
|
|
@@ -6066,6 +6163,12 @@
|
|
|
6066
6163
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
6067
6164
|
ASYNC_ITERATOR = Symbol.asyncIterator,
|
|
6068
6165
|
REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
6166
|
+
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6167
|
+
supportsArrayBufferDetached = hasOwnProperty.call(
|
|
6168
|
+
ArrayBuffer.prototype,
|
|
6169
|
+
"detached"
|
|
6170
|
+
),
|
|
6171
|
+
didWarnAboutMissingArrayBufferDetached = !1,
|
|
6069
6172
|
scheduleMicrotask = queueMicrotask,
|
|
6070
6173
|
currentView = null,
|
|
6071
6174
|
writtenBytes = 0,
|
|
@@ -6438,7 +6541,6 @@
|
|
|
6438
6541
|
jsxPropsParents = new WeakMap(),
|
|
6439
6542
|
jsxChildrenParents = new WeakMap(),
|
|
6440
6543
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
6441
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
6442
6544
|
doNotLimit = new WeakSet();
|
|
6443
6545
|
(function () {
|
|
6444
6546
|
async_hooks
|
|
@@ -6804,7 +6906,7 @@
|
|
|
6804
6906
|
_entry$value = _entry$value[1];
|
|
6805
6907
|
"string" === typeof _entry$value
|
|
6806
6908
|
? resolveField(response, entry, _entry$value)
|
|
6807
|
-
: appendBackingEntry(response._formData,
|
|
6909
|
+
: appendBackingEntry(response._formData, _entry$value, entry);
|
|
6808
6910
|
iterator.next().then(progress, error);
|
|
6809
6911
|
}
|
|
6810
6912
|
}
|
|
@@ -6834,26 +6936,33 @@
|
|
|
6834
6936
|
var current = head;
|
|
6835
6937
|
if (!current.complete) return;
|
|
6836
6938
|
try {
|
|
6837
|
-
var
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6939
|
+
var key = current.name,
|
|
6940
|
+
JSCompiler_temp_const = response._formData;
|
|
6941
|
+
var handle = current.file;
|
|
6942
|
+
if ("function" === typeof File)
|
|
6943
|
+
var JSCompiler_inline_result = new File(
|
|
6944
|
+
handle.chunks,
|
|
6945
|
+
handle.filename,
|
|
6946
|
+
{ type: handle.mime }
|
|
6947
|
+
);
|
|
6948
|
+
else {
|
|
6949
|
+
var scratch = new FormData();
|
|
6950
|
+
scratch.append(
|
|
6951
|
+
"file",
|
|
6952
|
+
new Blob(handle.chunks, { type: handle.mime }),
|
|
6953
|
+
handle.filename
|
|
6954
|
+
);
|
|
6955
|
+
JSCompiler_inline_result = scratch.get("file");
|
|
6956
|
+
}
|
|
6957
|
+
appendBackingEntry(
|
|
6958
|
+
JSCompiler_temp_const,
|
|
6959
|
+
JSCompiler_inline_result,
|
|
6960
|
+
key
|
|
6961
|
+
);
|
|
6849
6962
|
var queuedFields = current.queuedFields;
|
|
6850
6963
|
if (null !== queuedFields)
|
|
6851
|
-
for (
|
|
6852
|
-
resolveField(
|
|
6853
|
-
response$jscomp$0,
|
|
6854
|
-
queuedFields[response],
|
|
6855
|
-
queuedFields[response + 1]
|
|
6856
|
-
);
|
|
6964
|
+
for (var i = 0; i < queuedFields.length; i += 2)
|
|
6965
|
+
resolveField(response, queuedFields[i], queuedFields[i + 1]);
|
|
6857
6966
|
} catch (error) {
|
|
6858
6967
|
busboyStream.destroy(error);
|
|
6859
6968
|
return;
|
|
@@ -6861,9 +6970,9 @@
|
|
|
6861
6970
|
head = current.next;
|
|
6862
6971
|
}
|
|
6863
6972
|
tail = null;
|
|
6864
|
-
bodyFinished && !closed && ((closed = !0), close(response
|
|
6973
|
+
bodyFinished && !closed && ((closed = !0), close(response));
|
|
6865
6974
|
}
|
|
6866
|
-
var response
|
|
6975
|
+
var response = createResponse(
|
|
6867
6976
|
turbopackMap,
|
|
6868
6977
|
"",
|
|
6869
6978
|
options ? options.temporaryReferences : void 0,
|
|
@@ -6880,7 +6989,7 @@
|
|
|
6880
6989
|
tail.queuedFields.push(name, value);
|
|
6881
6990
|
else
|
|
6882
6991
|
try {
|
|
6883
|
-
resolveField(response
|
|
6992
|
+
resolveField(response, name, value);
|
|
6884
6993
|
} catch (error) {
|
|
6885
6994
|
busboyStream.destroy(error);
|
|
6886
6995
|
}
|
|
@@ -6926,14 +7035,14 @@
|
|
|
6926
7035
|
flush();
|
|
6927
7036
|
closed ||
|
|
6928
7037
|
reportGlobalError(
|
|
6929
|
-
response
|
|
7038
|
+
response,
|
|
6930
7039
|
Error("Reply finished with incomplete file part.")
|
|
6931
7040
|
);
|
|
6932
7041
|
});
|
|
6933
7042
|
busboyStream.on("error", function (err) {
|
|
6934
|
-
reportGlobalError(response
|
|
7043
|
+
reportGlobalError(response, err);
|
|
6935
7044
|
});
|
|
6936
|
-
return getChunk(response
|
|
7045
|
+
return getChunk(response, 0);
|
|
6937
7046
|
};
|
|
6938
7047
|
exports.prerender = function (model, turbopackMap, options) {
|
|
6939
7048
|
return new Promise(function (resolve, reject) {
|