react-server-dom-webpack 19.0.0 → 19.0.2

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.
@@ -113,13 +113,11 @@
113
113
  if ("fulfilled" === moduleExports.status)
114
114
  moduleExports = moduleExports.value;
115
115
  else throw moduleExports.reason;
116
- return "*" === metadata[2]
117
- ? moduleExports
118
- : "" === metadata[2]
119
- ? moduleExports.__esModule
120
- ? moduleExports.default
121
- : moduleExports
122
- : moduleExports[metadata[2]];
116
+ if ("*" === metadata[2]) return moduleExports;
117
+ if ("" === metadata[2])
118
+ return moduleExports.__esModule ? moduleExports.default : moduleExports;
119
+ if (hasOwnProperty.call(moduleExports, metadata[2]))
120
+ return moduleExports[metadata[2]];
123
121
  }
124
122
  function loadChunk(chunkId, filename) {
125
123
  chunkMap.set(chunkId, filename);
@@ -509,13 +507,23 @@
509
507
  pendingParts--;
510
508
  }
511
509
  }
510
+ parentReference = writtenObjects.get(value);
512
511
  if ("function" === typeof value.then) {
512
+ if (void 0 !== parentReference)
513
+ if (modelRoot === value) modelRoot = null;
514
+ else return parentReference;
513
515
  null === formData && (formData = new FormData());
514
516
  pendingParts++;
515
517
  var promiseId = nextPartId++;
518
+ key = "$@" + promiseId.toString(16);
519
+ writtenObjects.set(value, key);
516
520
  value.then(function (partValue) {
517
521
  try {
518
- var _partJSON3 = serializeModel(partValue, promiseId);
522
+ var previousReference = writtenObjects.get(partValue);
523
+ var _partJSON3 =
524
+ void 0 !== previousReference
525
+ ? JSON.stringify(previousReference)
526
+ : serializeModel(partValue, promiseId);
519
527
  partValue = formData;
520
528
  partValue.append(formFieldPrefix + promiseId, _partJSON3);
521
529
  pendingParts--;
@@ -524,9 +532,8 @@
524
532
  reject(reason);
525
533
  }
526
534
  }, reject);
527
- return "$@" + promiseId.toString(16);
535
+ return key;
528
536
  }
529
- parentReference = writtenObjects.get(value);
530
537
  if (void 0 !== parentReference)
531
538
  if (modelRoot === value) modelRoot = null;
532
539
  else return parentReference;
@@ -681,7 +688,7 @@
681
688
  null === formData && (formData = new FormData()),
682
689
  (parentReference = nextPartId++),
683
690
  formData.set(formFieldPrefix + parentReference, key),
684
- "$F" + parentReference.toString(16)
691
+ "$h" + parentReference.toString(16)
685
692
  );
686
693
  if (
687
694
  void 0 !== temporaryReferences &&
@@ -1372,7 +1379,7 @@
1372
1379
  return getChunk(response, parentObject);
1373
1380
  case "S":
1374
1381
  return Symbol.for(value.slice(2));
1375
- case "F":
1382
+ case "h":
1376
1383
  return (
1377
1384
  (value = value.slice(2)),
1378
1385
  getOutlinedModel(
@@ -2292,6 +2299,7 @@
2292
2299
  ReactDOM = require("react-dom"),
2293
2300
  decoderOptions = { stream: !0 },
2294
2301
  bind = Function.prototype.bind,
2302
+ hasOwnProperty = Object.prototype.hasOwnProperty,
2295
2303
  chunkCache = new Map(),
2296
2304
  chunkMap = new Map(),
2297
2305
  webpackGetChunkFilename = __webpack_require__.u;
@@ -2465,10 +2473,10 @@
2465
2473
  return hook.checkDCE ? !0 : !1;
2466
2474
  })({
2467
2475
  bundleType: 1,
2468
- version: "19.0.0",
2476
+ version: "19.0.2",
2469
2477
  rendererPackageName: "react-server-dom-webpack",
2470
2478
  currentDispatcherRef: ReactSharedInternals,
2471
- reconcilerVersion: "19.0.0",
2479
+ reconcilerVersion: "19.0.2",
2472
2480
  getCurrentComponentInfo: function () {
2473
2481
  return currentOwnerInDEV;
2474
2482
  }
@@ -10,7 +10,8 @@
10
10
 
11
11
  "use strict";
12
12
  var ReactDOM = require("react-dom"),
13
- decoderOptions = { stream: !0 };
13
+ decoderOptions = { stream: !0 },
14
+ hasOwnProperty = Object.prototype.hasOwnProperty;
14
15
  function resolveClientReference(bundlerConfig, metadata) {
15
16
  if (bundlerConfig) {
16
17
  var moduleExports = bundlerConfig[metadata[0]];
@@ -100,13 +101,11 @@ function requireModule(metadata) {
100
101
  if ("fulfilled" === moduleExports.status)
101
102
  moduleExports = moduleExports.value;
102
103
  else throw moduleExports.reason;
103
- return "*" === metadata[2]
104
- ? moduleExports
105
- : "" === metadata[2]
106
- ? moduleExports.__esModule
107
- ? moduleExports.default
108
- : moduleExports
109
- : moduleExports[metadata[2]];
104
+ if ("*" === metadata[2]) return moduleExports;
105
+ if ("" === metadata[2])
106
+ return moduleExports.__esModule ? moduleExports.default : moduleExports;
107
+ if (hasOwnProperty.call(moduleExports, metadata[2]))
108
+ return moduleExports[metadata[2]];
110
109
  }
111
110
  var chunkMap = new Map(),
112
111
  webpackGetChunkFilename = __webpack_require__.u;
@@ -304,13 +303,23 @@ function processReply(
304
303
  pendingParts--;
305
304
  }
306
305
  }
306
+ parentReference = writtenObjects.get(value);
307
307
  if ("function" === typeof value.then) {
308
+ if (void 0 !== parentReference)
309
+ if (modelRoot === value) modelRoot = null;
310
+ else return parentReference;
308
311
  null === formData && (formData = new FormData());
309
312
  pendingParts++;
310
313
  var promiseId = nextPartId++;
314
+ key = "$@" + promiseId.toString(16);
315
+ writtenObjects.set(value, key);
311
316
  value.then(function (partValue) {
312
317
  try {
313
- var partJSON$28 = serializeModel(partValue, promiseId);
318
+ var previousReference = writtenObjects.get(partValue);
319
+ var partJSON$28 =
320
+ void 0 !== previousReference
321
+ ? JSON.stringify(previousReference)
322
+ : serializeModel(partValue, promiseId);
314
323
  partValue = formData;
315
324
  partValue.append(formFieldPrefix + promiseId, partJSON$28);
316
325
  pendingParts--;
@@ -319,9 +328,8 @@ function processReply(
319
328
  reject(reason);
320
329
  }
321
330
  }, reject);
322
- return "$@" + promiseId.toString(16);
331
+ return key;
323
332
  }
324
- parentReference = writtenObjects.get(value);
325
333
  if (void 0 !== parentReference)
326
334
  if (modelRoot === value) modelRoot = null;
327
335
  else return parentReference;
@@ -442,7 +450,7 @@ function processReply(
442
450
  null === formData && (formData = new FormData()),
443
451
  (parentReference = nextPartId++),
444
452
  formData.set(formFieldPrefix + parentReference, key),
445
- "$F" + parentReference.toString(16)
453
+ "$h" + parentReference.toString(16)
446
454
  );
447
455
  if (
448
456
  void 0 !== temporaryReferences &&
@@ -935,7 +943,7 @@ function parseModelString(response, parentObject, key, value) {
935
943
  return getChunk(response, parentObject);
936
944
  case "S":
937
945
  return Symbol.for(value.slice(2));
938
- case "F":
946
+ case "h":
939
947
  return (
940
948
  (value = value.slice(2)),
941
949
  getOutlinedModel(
@@ -113,13 +113,11 @@
113
113
  if ("fulfilled" === moduleExports.status)
114
114
  moduleExports = moduleExports.value;
115
115
  else throw moduleExports.reason;
116
- return "*" === metadata[2]
117
- ? moduleExports
118
- : "" === metadata[2]
119
- ? moduleExports.__esModule
120
- ? moduleExports.default
121
- : moduleExports
122
- : moduleExports[metadata[2]];
116
+ if ("*" === metadata[2]) return moduleExports;
117
+ if ("" === metadata[2])
118
+ return moduleExports.__esModule ? moduleExports.default : moduleExports;
119
+ if (hasOwnProperty.call(moduleExports, metadata[2]))
120
+ return moduleExports[metadata[2]];
123
121
  }
124
122
  function prepareDestinationWithChunks(
125
123
  moduleLoading,
@@ -530,13 +528,23 @@
530
528
  pendingParts--;
531
529
  }
532
530
  }
531
+ parentReference = writtenObjects.get(value);
533
532
  if ("function" === typeof value.then) {
533
+ if (void 0 !== parentReference)
534
+ if (modelRoot === value) modelRoot = null;
535
+ else return parentReference;
534
536
  null === formData && (formData = new FormData());
535
537
  pendingParts++;
536
538
  var promiseId = nextPartId++;
539
+ key = "$@" + promiseId.toString(16);
540
+ writtenObjects.set(value, key);
537
541
  value.then(function (partValue) {
538
542
  try {
539
- var _partJSON3 = serializeModel(partValue, promiseId);
543
+ var previousReference = writtenObjects.get(partValue);
544
+ var _partJSON3 =
545
+ void 0 !== previousReference
546
+ ? JSON.stringify(previousReference)
547
+ : serializeModel(partValue, promiseId);
540
548
  partValue = formData;
541
549
  partValue.append(formFieldPrefix + promiseId, _partJSON3);
542
550
  pendingParts--;
@@ -545,9 +553,8 @@
545
553
  reject(reason);
546
554
  }
547
555
  }, reject);
548
- return "$@" + promiseId.toString(16);
556
+ return key;
549
557
  }
550
- parentReference = writtenObjects.get(value);
551
558
  if (void 0 !== parentReference)
552
559
  if (modelRoot === value) modelRoot = null;
553
560
  else return parentReference;
@@ -702,7 +709,7 @@
702
709
  null === formData && (formData = new FormData()),
703
710
  (parentReference = nextPartId++),
704
711
  formData.set(formFieldPrefix + parentReference, key),
705
- "$F" + parentReference.toString(16)
712
+ "$h" + parentReference.toString(16)
706
713
  );
707
714
  if (
708
715
  void 0 !== temporaryReferences &&
@@ -1576,7 +1583,7 @@
1576
1583
  return getChunk(response, parentObject);
1577
1584
  case "S":
1578
1585
  return Symbol.for(value.slice(2));
1579
- case "F":
1586
+ case "h":
1580
1587
  return (
1581
1588
  (value = value.slice(2)),
1582
1589
  getOutlinedModel(
@@ -2506,6 +2513,7 @@
2506
2513
  React = require("react"),
2507
2514
  decoderOptions = { stream: !0 },
2508
2515
  bind$1 = Function.prototype.bind,
2516
+ hasOwnProperty = Object.prototype.hasOwnProperty,
2509
2517
  chunkCache = new Map(),
2510
2518
  ReactDOMSharedInternals =
2511
2519
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -10,7 +10,8 @@
10
10
 
11
11
  "use strict";
12
12
  var ReactDOM = require("react-dom"),
13
- decoderOptions = { stream: !0 };
13
+ decoderOptions = { stream: !0 },
14
+ hasOwnProperty = Object.prototype.hasOwnProperty;
14
15
  function resolveClientReference(bundlerConfig, metadata) {
15
16
  if (bundlerConfig) {
16
17
  var moduleExports = bundlerConfig[metadata[0]];
@@ -99,13 +100,11 @@ function requireModule(metadata) {
99
100
  if ("fulfilled" === moduleExports.status)
100
101
  moduleExports = moduleExports.value;
101
102
  else throw moduleExports.reason;
102
- return "*" === metadata[2]
103
- ? moduleExports
104
- : "" === metadata[2]
105
- ? moduleExports.__esModule
106
- ? moduleExports.default
107
- : moduleExports
108
- : moduleExports[metadata[2]];
103
+ if ("*" === metadata[2]) return moduleExports;
104
+ if ("" === metadata[2])
105
+ return moduleExports.__esModule ? moduleExports.default : moduleExports;
106
+ if (hasOwnProperty.call(moduleExports, metadata[2]))
107
+ return moduleExports[metadata[2]];
109
108
  }
110
109
  function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) {
111
110
  if (null !== moduleLoading)
@@ -316,13 +315,23 @@ function processReply(
316
315
  pendingParts--;
317
316
  }
318
317
  }
318
+ parentReference = writtenObjects.get(value);
319
319
  if ("function" === typeof value.then) {
320
+ if (void 0 !== parentReference)
321
+ if (modelRoot === value) modelRoot = null;
322
+ else return parentReference;
320
323
  null === formData && (formData = new FormData());
321
324
  pendingParts++;
322
325
  var promiseId = nextPartId++;
326
+ key = "$@" + promiseId.toString(16);
327
+ writtenObjects.set(value, key);
323
328
  value.then(function (partValue) {
324
329
  try {
325
- var partJSON$28 = serializeModel(partValue, promiseId);
330
+ var previousReference = writtenObjects.get(partValue);
331
+ var partJSON$28 =
332
+ void 0 !== previousReference
333
+ ? JSON.stringify(previousReference)
334
+ : serializeModel(partValue, promiseId);
326
335
  partValue = formData;
327
336
  partValue.append(formFieldPrefix + promiseId, partJSON$28);
328
337
  pendingParts--;
@@ -331,9 +340,8 @@ function processReply(
331
340
  reject(reason);
332
341
  }
333
342
  }, reject);
334
- return "$@" + promiseId.toString(16);
343
+ return key;
335
344
  }
336
- parentReference = writtenObjects.get(value);
337
345
  if (void 0 !== parentReference)
338
346
  if (modelRoot === value) modelRoot = null;
339
347
  else return parentReference;
@@ -454,7 +462,7 @@ function processReply(
454
462
  null === formData && (formData = new FormData()),
455
463
  (parentReference = nextPartId++),
456
464
  formData.set(formFieldPrefix + parentReference, key),
457
- "$F" + parentReference.toString(16)
465
+ "$h" + parentReference.toString(16)
458
466
  );
459
467
  if (
460
468
  void 0 !== temporaryReferences &&
@@ -1093,7 +1101,7 @@ function parseModelString(response, parentObject, key, value) {
1093
1101
  return getChunk(response, parentObject);
1094
1102
  case "S":
1095
1103
  return Symbol.for(value.slice(2));
1096
- case "F":
1104
+ case "h":
1097
1105
  return (
1098
1106
  (value = value.slice(2)),
1099
1107
  getOutlinedModel(
@@ -113,13 +113,11 @@
113
113
  if ("fulfilled" === moduleExports.status)
114
114
  moduleExports = moduleExports.value;
115
115
  else throw moduleExports.reason;
116
- return "*" === metadata[2]
117
- ? moduleExports
118
- : "" === metadata[2]
119
- ? moduleExports.__esModule
120
- ? moduleExports.default
121
- : moduleExports
122
- : moduleExports[metadata[2]];
116
+ if ("*" === metadata[2]) return moduleExports;
117
+ if ("" === metadata[2])
118
+ return moduleExports.__esModule ? moduleExports.default : moduleExports;
119
+ if (hasOwnProperty.call(moduleExports, metadata[2]))
120
+ return moduleExports[metadata[2]];
123
121
  }
124
122
  function prepareDestinationWithChunks(
125
123
  moduleLoading,
@@ -530,13 +528,23 @@
530
528
  pendingParts--;
531
529
  }
532
530
  }
531
+ parentReference = writtenObjects.get(value);
533
532
  if ("function" === typeof value.then) {
533
+ if (void 0 !== parentReference)
534
+ if (modelRoot === value) modelRoot = null;
535
+ else return parentReference;
534
536
  null === formData && (formData = new FormData());
535
537
  pendingParts++;
536
538
  var promiseId = nextPartId++;
539
+ key = "$@" + promiseId.toString(16);
540
+ writtenObjects.set(value, key);
537
541
  value.then(function (partValue) {
538
542
  try {
539
- var _partJSON3 = serializeModel(partValue, promiseId);
543
+ var previousReference = writtenObjects.get(partValue);
544
+ var _partJSON3 =
545
+ void 0 !== previousReference
546
+ ? JSON.stringify(previousReference)
547
+ : serializeModel(partValue, promiseId);
540
548
  partValue = formData;
541
549
  partValue.append(formFieldPrefix + promiseId, _partJSON3);
542
550
  pendingParts--;
@@ -545,9 +553,8 @@
545
553
  reject(reason);
546
554
  }
547
555
  }, reject);
548
- return "$@" + promiseId.toString(16);
556
+ return key;
549
557
  }
550
- parentReference = writtenObjects.get(value);
551
558
  if (void 0 !== parentReference)
552
559
  if (modelRoot === value) modelRoot = null;
553
560
  else return parentReference;
@@ -702,7 +709,7 @@
702
709
  null === formData && (formData = new FormData()),
703
710
  (parentReference = nextPartId++),
704
711
  formData.set(formFieldPrefix + parentReference, key),
705
- "$F" + parentReference.toString(16)
712
+ "$h" + parentReference.toString(16)
706
713
  );
707
714
  if (
708
715
  void 0 !== temporaryReferences &&
@@ -1576,7 +1583,7 @@
1576
1583
  return getChunk(response, parentObject);
1577
1584
  case "S":
1578
1585
  return Symbol.for(value.slice(2));
1579
- case "F":
1586
+ case "h":
1580
1587
  return (
1581
1588
  (value = value.slice(2)),
1582
1589
  getOutlinedModel(
@@ -2394,6 +2401,7 @@
2394
2401
  React = require("react"),
2395
2402
  decoderOptions = { stream: !0 },
2396
2403
  bind$1 = Function.prototype.bind,
2404
+ hasOwnProperty = Object.prototype.hasOwnProperty,
2397
2405
  chunkCache = new Map(),
2398
2406
  ReactDOMSharedInternals =
2399
2407
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -11,7 +11,8 @@
11
11
  "use strict";
12
12
  var util = require("util"),
13
13
  ReactDOM = require("react-dom"),
14
- decoderOptions = { stream: !0 };
14
+ decoderOptions = { stream: !0 },
15
+ hasOwnProperty = Object.prototype.hasOwnProperty;
15
16
  function resolveClientReference(bundlerConfig, metadata) {
16
17
  if (bundlerConfig) {
17
18
  var moduleExports = bundlerConfig[metadata[0]];
@@ -100,13 +101,11 @@ function requireModule(metadata) {
100
101
  if ("fulfilled" === moduleExports.status)
101
102
  moduleExports = moduleExports.value;
102
103
  else throw moduleExports.reason;
103
- return "*" === metadata[2]
104
- ? moduleExports
105
- : "" === metadata[2]
106
- ? moduleExports.__esModule
107
- ? moduleExports.default
108
- : moduleExports
109
- : moduleExports[metadata[2]];
104
+ if ("*" === metadata[2]) return moduleExports;
105
+ if ("" === metadata[2])
106
+ return moduleExports.__esModule ? moduleExports.default : moduleExports;
107
+ if (hasOwnProperty.call(moduleExports, metadata[2]))
108
+ return moduleExports[metadata[2]];
110
109
  }
111
110
  function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) {
112
111
  if (null !== moduleLoading)
@@ -317,13 +316,23 @@ function processReply(
317
316
  pendingParts--;
318
317
  }
319
318
  }
319
+ parentReference = writtenObjects.get(value);
320
320
  if ("function" === typeof value.then) {
321
+ if (void 0 !== parentReference)
322
+ if (modelRoot === value) modelRoot = null;
323
+ else return parentReference;
321
324
  null === formData && (formData = new FormData());
322
325
  pendingParts++;
323
326
  var promiseId = nextPartId++;
327
+ key = "$@" + promiseId.toString(16);
328
+ writtenObjects.set(value, key);
324
329
  value.then(function (partValue) {
325
330
  try {
326
- var partJSON$28 = serializeModel(partValue, promiseId);
331
+ var previousReference = writtenObjects.get(partValue);
332
+ var partJSON$28 =
333
+ void 0 !== previousReference
334
+ ? JSON.stringify(previousReference)
335
+ : serializeModel(partValue, promiseId);
327
336
  partValue = formData;
328
337
  partValue.append(formFieldPrefix + promiseId, partJSON$28);
329
338
  pendingParts--;
@@ -332,9 +341,8 @@ function processReply(
332
341
  reject(reason);
333
342
  }
334
343
  }, reject);
335
- return "$@" + promiseId.toString(16);
344
+ return key;
336
345
  }
337
- parentReference = writtenObjects.get(value);
338
346
  if (void 0 !== parentReference)
339
347
  if (modelRoot === value) modelRoot = null;
340
348
  else return parentReference;
@@ -455,7 +463,7 @@ function processReply(
455
463
  null === formData && (formData = new FormData()),
456
464
  (parentReference = nextPartId++),
457
465
  formData.set(formFieldPrefix + parentReference, key),
458
- "$F" + parentReference.toString(16)
466
+ "$h" + parentReference.toString(16)
459
467
  );
460
468
  if (
461
469
  void 0 !== temporaryReferences &&
@@ -1094,7 +1102,7 @@ function parseModelString(response, parentObject, key, value) {
1094
1102
  return getChunk(response, parentObject);
1095
1103
  case "S":
1096
1104
  return Symbol.for(value.slice(2));
1097
- case "F":
1105
+ case "h":
1098
1106
  return (
1099
1107
  (value = value.slice(2)),
1100
1108
  getOutlinedModel(
@@ -77,11 +77,10 @@
77
77
  if ("fulfilled" === moduleExports.status)
78
78
  moduleExports = moduleExports.value;
79
79
  else throw moduleExports.reason;
80
- return "*" === metadata.name
81
- ? moduleExports
82
- : "" === metadata.name
83
- ? moduleExports.default
84
- : moduleExports[metadata.name];
80
+ if ("*" === metadata.name) return moduleExports;
81
+ if ("" === metadata.name) return moduleExports.default;
82
+ if (hasOwnProperty.call(moduleExports, metadata.name))
83
+ return moduleExports[metadata.name];
85
84
  }
86
85
  function prepareDestinationWithChunks(
87
86
  moduleLoading,
@@ -492,13 +491,23 @@
492
491
  pendingParts--;
493
492
  }
494
493
  }
494
+ parentReference = writtenObjects.get(value);
495
495
  if ("function" === typeof value.then) {
496
+ if (void 0 !== parentReference)
497
+ if (modelRoot === value) modelRoot = null;
498
+ else return parentReference;
496
499
  null === formData && (formData = new FormData());
497
500
  pendingParts++;
498
501
  var promiseId = nextPartId++;
502
+ key = "$@" + promiseId.toString(16);
503
+ writtenObjects.set(value, key);
499
504
  value.then(function (partValue) {
500
505
  try {
501
- var _partJSON3 = serializeModel(partValue, promiseId);
506
+ var previousReference = writtenObjects.get(partValue);
507
+ var _partJSON3 =
508
+ void 0 !== previousReference
509
+ ? JSON.stringify(previousReference)
510
+ : serializeModel(partValue, promiseId);
502
511
  partValue = formData;
503
512
  partValue.append(formFieldPrefix + promiseId, _partJSON3);
504
513
  pendingParts--;
@@ -507,9 +516,8 @@
507
516
  reject(reason);
508
517
  }
509
518
  }, reject);
510
- return "$@" + promiseId.toString(16);
519
+ return key;
511
520
  }
512
- parentReference = writtenObjects.get(value);
513
521
  if (void 0 !== parentReference)
514
522
  if (modelRoot === value) modelRoot = null;
515
523
  else return parentReference;
@@ -664,7 +672,7 @@
664
672
  null === formData && (formData = new FormData()),
665
673
  (parentReference = nextPartId++),
666
674
  formData.set(formFieldPrefix + parentReference, key),
667
- "$F" + parentReference.toString(16)
675
+ "$h" + parentReference.toString(16)
668
676
  );
669
677
  if (
670
678
  void 0 !== temporaryReferences &&
@@ -1538,7 +1546,7 @@
1538
1546
  return getChunk(response, parentObject);
1539
1547
  case "S":
1540
1548
  return Symbol.for(value.slice(2));
1541
- case "F":
1549
+ case "h":
1542
1550
  return (
1543
1551
  (value = value.slice(2)),
1544
1552
  getOutlinedModel(
@@ -2356,6 +2364,7 @@
2356
2364
  React = require("react"),
2357
2365
  decoderOptions = { stream: !0 },
2358
2366
  bind$1 = Function.prototype.bind,
2367
+ hasOwnProperty = Object.prototype.hasOwnProperty,
2359
2368
  asyncModuleCache = new Map(),
2360
2369
  ReactDOMSharedInternals =
2361
2370
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -11,7 +11,8 @@
11
11
  "use strict";
12
12
  var util = require("util"),
13
13
  ReactDOM = require("react-dom"),
14
- decoderOptions = { stream: !0 };
14
+ decoderOptions = { stream: !0 },
15
+ hasOwnProperty = Object.prototype.hasOwnProperty;
15
16
  function resolveClientReference(bundlerConfig, metadata) {
16
17
  var moduleExports = bundlerConfig[metadata[0]];
17
18
  if ((bundlerConfig = moduleExports && moduleExports[metadata[2]]))
@@ -67,11 +68,10 @@ function requireModule(metadata) {
67
68
  var moduleExports = asyncModuleCache.get(metadata.specifier);
68
69
  if ("fulfilled" === moduleExports.status) moduleExports = moduleExports.value;
69
70
  else throw moduleExports.reason;
70
- return "*" === metadata.name
71
- ? moduleExports
72
- : "" === metadata.name
73
- ? moduleExports.default
74
- : moduleExports[metadata.name];
71
+ if ("*" === metadata.name) return moduleExports;
72
+ if ("" === metadata.name) return moduleExports.default;
73
+ if (hasOwnProperty.call(moduleExports, metadata.name))
74
+ return moduleExports[metadata.name];
75
75
  }
76
76
  function prepareDestinationWithChunks(moduleLoading, chunks, nonce$jscomp$0) {
77
77
  if (null !== moduleLoading)
@@ -282,13 +282,23 @@ function processReply(
282
282
  pendingParts--;
283
283
  }
284
284
  }
285
+ parentReference = writtenObjects.get(value);
285
286
  if ("function" === typeof value.then) {
287
+ if (void 0 !== parentReference)
288
+ if (modelRoot === value) modelRoot = null;
289
+ else return parentReference;
286
290
  null === formData && (formData = new FormData());
287
291
  pendingParts++;
288
292
  var promiseId = nextPartId++;
293
+ key = "$@" + promiseId.toString(16);
294
+ writtenObjects.set(value, key);
289
295
  value.then(function (partValue) {
290
296
  try {
291
- var partJSON$28 = serializeModel(partValue, promiseId);
297
+ var previousReference = writtenObjects.get(partValue);
298
+ var partJSON$28 =
299
+ void 0 !== previousReference
300
+ ? JSON.stringify(previousReference)
301
+ : serializeModel(partValue, promiseId);
292
302
  partValue = formData;
293
303
  partValue.append(formFieldPrefix + promiseId, partJSON$28);
294
304
  pendingParts--;
@@ -297,9 +307,8 @@ function processReply(
297
307
  reject(reason);
298
308
  }
299
309
  }, reject);
300
- return "$@" + promiseId.toString(16);
310
+ return key;
301
311
  }
302
- parentReference = writtenObjects.get(value);
303
312
  if (void 0 !== parentReference)
304
313
  if (modelRoot === value) modelRoot = null;
305
314
  else return parentReference;
@@ -420,7 +429,7 @@ function processReply(
420
429
  null === formData && (formData = new FormData()),
421
430
  (parentReference = nextPartId++),
422
431
  formData.set(formFieldPrefix + parentReference, key),
423
- "$F" + parentReference.toString(16)
432
+ "$h" + parentReference.toString(16)
424
433
  );
425
434
  if (
426
435
  void 0 !== temporaryReferences &&
@@ -1059,7 +1068,7 @@ function parseModelString(response, parentObject, key, value) {
1059
1068
  return getChunk(response, parentObject);
1060
1069
  case "S":
1061
1070
  return Symbol.for(value.slice(2));
1062
- case "F":
1071
+ case "h":
1063
1072
  return (
1064
1073
  (value = value.slice(2)),
1065
1074
  getOutlinedModel(