react-markup 0.0.0-experimental-65e06cb7-20241218 → 0.0.0-experimental-518d06d2-20241219

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.
@@ -179,14 +179,6 @@
179
179
  suspendedThenable$1 = null;
180
180
  return thenable;
181
181
  }
182
- function prepareToUseHooksForComponent(
183
- prevThenableState,
184
- componentDebugInfo
185
- ) {
186
- thenableIndexCounter$1 = 0;
187
- thenableState$1 = prevThenableState;
188
- currentComponentDebugInfo = componentDebugInfo;
189
- }
190
182
  function getThenableStateAfterSuspending$1() {
191
183
  var state = thenableState$1 || [];
192
184
  state._componentDebugInfo = currentComponentDebugInfo;
@@ -831,8 +823,10 @@
831
823
  ? defaultFilterStackFrame
832
824
  : filterStackFrame;
833
825
  this.didWarnForKey = null;
834
- type = createTask(this, model, null, !1, abortSet, null, null, null);
835
- pingedTasks.push(type);
826
+ type = this.timeOrigin = performance.now();
827
+ emitTimeOriginChunk(this, type + performance.timeOrigin);
828
+ model = createTask(this, model, null, !1, abortSet, null, null, null);
829
+ pingedTasks.push(model);
836
830
  }
837
831
  function noop$3() {}
838
832
  function serializeThenable(request, task, thenable) {
@@ -856,21 +850,7 @@
856
850
  newTask.id
857
851
  );
858
852
  case "rejected":
859
- task = thenable.reason;
860
- if (
861
- "object" === typeof task &&
862
- null !== task &&
863
- task.$$typeof === REACT_POSTPONE_TYPE
864
- )
865
- logPostpone$1(request, task.message, newTask),
866
- emitPostponeChunk(request, newTask.id, task);
867
- else {
868
- var digest = logRecoverableError$1(request, task, null);
869
- emitErrorChunk(request, newTask.id, digest, task);
870
- }
871
- newTask.status = ERRORED$2;
872
- request.abortableTasks.delete(newTask);
873
- return newTask.id;
853
+ return erroredTask$1(request, newTask, thenable.reason), newTask.id;
874
854
  default:
875
855
  if (request.status === ABORTING$1)
876
856
  return (
@@ -902,24 +882,11 @@
902
882
  pingTask$1(request, newTask);
903
883
  },
904
884
  function (reason) {
905
- if (newTask.status === PENDING$3) {
906
- if (
907
- "object" === typeof reason &&
908
- null !== reason &&
909
- reason.$$typeof === REACT_POSTPONE_TYPE
910
- )
911
- logPostpone$1(request, reason.message, newTask),
912
- emitPostponeChunk(request, newTask.id, reason);
913
- else {
914
- var _digest = logRecoverableError$1(request, reason, newTask);
915
- emitErrorChunk(request, newTask.id, _digest, reason);
916
- }
917
- newTask.status = ERRORED$2;
918
- request.abortableTasks.delete(newTask);
919
- enqueueFlush(request);
920
- }
885
+ newTask.status === PENDING$3 &&
886
+ (erroredTask$1(request, newTask, reason), enqueueFlush(request));
921
887
  }
922
888
  );
889
+ newTask.timed = !0;
923
890
  return newTask.id;
924
891
  }
925
892
  function serializeReadableStream(request, task, stream) {
@@ -943,38 +910,22 @@
943
910
  }
944
911
  }
945
912
  function error(reason) {
946
- if (!aborted) {
947
- aborted = !0;
948
- request.abortListeners.delete(abortStream);
949
- var digest = logRecoverableError$1(request, reason, streamTask);
950
- emitErrorChunk(request, streamTask.id, digest, reason);
951
- enqueueFlush(request);
952
- reader.cancel(reason).then(error, error);
953
- }
913
+ aborted ||
914
+ ((aborted = !0),
915
+ request.abortListeners.delete(abortStream),
916
+ erroredTask$1(request, streamTask, reason),
917
+ enqueueFlush(request),
918
+ reader.cancel(reason).then(error, error));
954
919
  }
955
920
  function abortStream(reason) {
956
- if (!aborted) {
957
- aborted = !0;
958
- request.abortListeners.delete(abortStream);
959
- if (
960
- "object" === typeof reason &&
961
- null !== reason &&
962
- reason.$$typeof === REACT_POSTPONE_TYPE
963
- )
964
- logPostpone$1(request, reason.message, streamTask),
965
- request.type === PRERENDER
966
- ? request.pendingChunks--
967
- : (emitPostponeChunk(request, streamTask.id, reason),
968
- enqueueFlush(request));
969
- else {
970
- var digest = logRecoverableError$1(request, reason, streamTask);
971
- request.type === PRERENDER
972
- ? request.pendingChunks--
973
- : (emitErrorChunk(request, streamTask.id, digest, reason),
974
- enqueueFlush(request));
975
- }
976
- reader.cancel(reason).then(error, error);
977
- }
921
+ aborted ||
922
+ ((aborted = !0),
923
+ request.abortListeners.delete(abortStream),
924
+ request.type === PRERENDER
925
+ ? request.pendingChunks--
926
+ : (erroredTask$1(request, streamTask, reason),
927
+ enqueueFlush(request)),
928
+ reader.cancel(reason).then(error, error));
978
929
  }
979
930
  var supportsBYOB = stream.supportsBYOB;
980
931
  if (void 0 === supportsBYOB)
@@ -1038,40 +989,24 @@
1038
989
  }
1039
990
  }
1040
991
  function error(reason) {
1041
- if (!aborted) {
1042
- aborted = !0;
1043
- request.abortListeners.delete(abortIterable);
1044
- var digest = logRecoverableError$1(request, reason, streamTask);
1045
- emitErrorChunk(request, streamTask.id, digest, reason);
1046
- enqueueFlush(request);
992
+ aborted ||
993
+ ((aborted = !0),
994
+ request.abortListeners.delete(abortIterable),
995
+ erroredTask$1(request, streamTask, reason),
996
+ enqueueFlush(request),
1047
997
  "function" === typeof iterator.throw &&
1048
- iterator.throw(reason).then(error, error);
1049
- }
998
+ iterator.throw(reason).then(error, error));
1050
999
  }
1051
1000
  function abortIterable(reason) {
1052
- if (!aborted) {
1053
- aborted = !0;
1054
- request.abortListeners.delete(abortIterable);
1055
- if (
1056
- "object" === typeof reason &&
1057
- null !== reason &&
1058
- reason.$$typeof === REACT_POSTPONE_TYPE
1059
- )
1060
- logPostpone$1(request, reason.message, streamTask),
1061
- request.type === PRERENDER
1062
- ? request.pendingChunks--
1063
- : (emitPostponeChunk(request, streamTask.id, reason),
1064
- enqueueFlush(request));
1065
- else {
1066
- var digest = logRecoverableError$1(request, reason, streamTask);
1067
- request.type === PRERENDER
1068
- ? request.pendingChunks--
1069
- : (emitErrorChunk(request, streamTask.id, digest, reason),
1070
- enqueueFlush(request));
1071
- }
1001
+ aborted ||
1002
+ ((aborted = !0),
1003
+ request.abortListeners.delete(abortIterable),
1004
+ request.type === PRERENDER
1005
+ ? request.pendingChunks--
1006
+ : (erroredTask$1(request, streamTask, reason),
1007
+ enqueueFlush(request)),
1072
1008
  "function" === typeof iterator.throw &&
1073
- iterator.throw(reason).then(error, error);
1074
- }
1009
+ iterator.throw(reason).then(error, error));
1075
1010
  }
1076
1011
  var isIterator = iterable === iterator,
1077
1012
  streamTask = createTask(
@@ -1148,6 +1083,71 @@
1148
1083
  currentOwner = null;
1149
1084
  }
1150
1085
  }
1086
+ function processServerComponentReturnValue(
1087
+ request,
1088
+ task,
1089
+ Component,
1090
+ result
1091
+ ) {
1092
+ if (
1093
+ "object" !== typeof result ||
1094
+ null === result ||
1095
+ isClientReference(result)
1096
+ )
1097
+ return result;
1098
+ if ("function" === typeof result.then)
1099
+ return (
1100
+ result.then(function (resolvedValue) {
1101
+ "object" === typeof resolvedValue &&
1102
+ null !== resolvedValue &&
1103
+ resolvedValue.$$typeof === REACT_ELEMENT_TYPE &&
1104
+ (resolvedValue._store.validated = 1);
1105
+ }, voidHandler),
1106
+ "fulfilled" === result.status
1107
+ ? result.value
1108
+ : createLazyWrapperAroundWakeable(result)
1109
+ );
1110
+ result.$$typeof === REACT_ELEMENT_TYPE && (result._store.validated = 1);
1111
+ var iteratorFn = getIteratorFn(result);
1112
+ if (iteratorFn) {
1113
+ var multiShot = _defineProperty({}, Symbol.iterator, function () {
1114
+ var iterator = iteratorFn.call(result);
1115
+ iterator !== result ||
1116
+ ("[object GeneratorFunction]" ===
1117
+ Object.prototype.toString.call(Component) &&
1118
+ "[object Generator]" ===
1119
+ Object.prototype.toString.call(result)) ||
1120
+ callWithDebugContextInDEV(request, task, function () {
1121
+ console.error(
1122
+ "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
1123
+ );
1124
+ });
1125
+ return iterator;
1126
+ });
1127
+ multiShot._debugInfo = result._debugInfo;
1128
+ return multiShot;
1129
+ }
1130
+ return "function" !== typeof result[ASYNC_ITERATOR] ||
1131
+ ("function" === typeof ReadableStream &&
1132
+ result instanceof ReadableStream)
1133
+ ? result
1134
+ : ((multiShot = _defineProperty({}, ASYNC_ITERATOR, function () {
1135
+ var iterator = result[ASYNC_ITERATOR]();
1136
+ iterator !== result ||
1137
+ ("[object AsyncGeneratorFunction]" ===
1138
+ Object.prototype.toString.call(Component) &&
1139
+ "[object AsyncGenerator]" ===
1140
+ Object.prototype.toString.call(result)) ||
1141
+ callWithDebugContextInDEV(request, task, function () {
1142
+ console.error(
1143
+ "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
1144
+ );
1145
+ });
1146
+ return iterator;
1147
+ })),
1148
+ (multiShot._debugInfo = result._debugInfo),
1149
+ multiShot);
1150
+ }
1151
1151
  function renderFunctionComponent$1(
1152
1152
  request,
1153
1153
  task,
@@ -1180,12 +1180,16 @@
1180
1180
  componentDebugInfo.debugStack = task.debugStack;
1181
1181
  componentDebugInfo.debugTask = task.debugTask;
1182
1182
  outlineComponentInfo(request, componentDebugInfo);
1183
+ task.timed = !0;
1184
+ emitTimingChunk(request, componentDebugID, performance.now());
1183
1185
  emitDebugChunk(request, componentDebugID, componentDebugInfo);
1184
1186
  task.environmentName = componentEnv;
1185
1187
  2 === validated &&
1186
1188
  warnForMissingKey$1(request, key, componentDebugInfo, task.debugTask);
1187
1189
  }
1188
- prepareToUseHooksForComponent(prevThenableState, componentDebugInfo);
1190
+ thenableIndexCounter$1 = 0;
1191
+ thenableState$1 = prevThenableState;
1192
+ currentComponentDebugInfo = componentDebugInfo;
1189
1193
  props = task.debugTask
1190
1194
  ? task.debugTask.run(
1191
1195
  callComponentInDEV$1.bind(
@@ -1205,74 +1209,21 @@
1205
1209
  props.then(voidHandler, voidHandler),
1206
1210
  null)
1207
1211
  );
1208
- if (
1209
- "object" === typeof props &&
1210
- null !== props &&
1211
- !isClientReference(props)
1212
- ) {
1213
- if ("function" === typeof props.then) {
1214
- validated = props;
1215
- validated.then(function (resolvedValue) {
1216
- "object" === typeof resolvedValue &&
1217
- null !== resolvedValue &&
1218
- resolvedValue.$$typeof === REACT_ELEMENT_TYPE &&
1219
- (resolvedValue._store.validated = 1);
1220
- }, voidHandler);
1221
- if ("fulfilled" === validated.status) return validated.value;
1222
- props = createLazyWrapperAroundWakeable(props);
1223
- }
1224
- var iteratorFn = getIteratorFn(props);
1225
- if (iteratorFn) {
1226
- var iterableChild = props;
1227
- props = _defineProperty({}, Symbol.iterator, function () {
1228
- var iterator = iteratorFn.call(iterableChild);
1229
- iterator !== iterableChild ||
1230
- ("[object GeneratorFunction]" ===
1231
- Object.prototype.toString.call(Component) &&
1232
- "[object Generator]" ===
1233
- Object.prototype.toString.call(iterableChild)) ||
1234
- callWithDebugContextInDEV(request, task, function () {
1235
- console.error(
1236
- "Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. "
1237
- );
1238
- });
1239
- return iterator;
1240
- });
1241
- props._debugInfo = iterableChild._debugInfo;
1242
- } else if (
1243
- "function" !== typeof props[ASYNC_ITERATOR] ||
1244
- ("function" === typeof ReadableStream &&
1245
- props instanceof ReadableStream)
1246
- )
1247
- props.$$typeof === REACT_ELEMENT_TYPE && (props._store.validated = 1);
1248
- else {
1249
- var _iterableChild = props;
1250
- props = _defineProperty({}, ASYNC_ITERATOR, function () {
1251
- var iterator = _iterableChild[ASYNC_ITERATOR]();
1252
- iterator !== _iterableChild ||
1253
- ("[object AsyncGeneratorFunction]" ===
1254
- Object.prototype.toString.call(Component) &&
1255
- "[object AsyncGenerator]" ===
1256
- Object.prototype.toString.call(_iterableChild)) ||
1257
- callWithDebugContextInDEV(request, task, function () {
1258
- console.error(
1259
- "Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. "
1260
- );
1261
- });
1262
- return iterator;
1263
- });
1264
- props._debugInfo = _iterableChild._debugInfo;
1265
- }
1266
- }
1267
- validated = task.keyPath;
1268
- prevThenableState = task.implicitSlot;
1212
+ props = processServerComponentReturnValue(
1213
+ request,
1214
+ task,
1215
+ Component,
1216
+ props
1217
+ );
1218
+ Component = task.keyPath;
1219
+ validated = task.implicitSlot;
1269
1220
  null !== key
1270
- ? (task.keyPath = null === validated ? key : validated + "," + key)
1271
- : null === validated && (task.implicitSlot = !0);
1272
- key = renderModelDestructive(request, task, emptyRoot, "", props);
1273
- task.keyPath = validated;
1274
- task.implicitSlot = prevThenableState;
1275
- return key;
1221
+ ? (task.keyPath = null === Component ? key : Component + "," + key)
1222
+ : null === Component && (task.implicitSlot = !0);
1223
+ request = renderModelDestructive(request, task, emptyRoot, "", props);
1224
+ task.keyPath = Component;
1225
+ task.implicitSlot = validated;
1226
+ return request;
1276
1227
  }
1277
1228
  function warnForMissingKey$1(request, key, componentDebugInfo, debugTask) {
1278
1229
  function logKeyError() {
@@ -1474,6 +1425,7 @@
1474
1425
  return task;
1475
1426
  }
1476
1427
  function pingTask$1(request, task) {
1428
+ task.timed = !0;
1477
1429
  var pingedTasks = request.pingedTasks;
1478
1430
  pingedTasks.push(task);
1479
1431
  1 === pingedTasks.length &&
@@ -1532,7 +1484,8 @@
1532
1484
  });
1533
1485
  return renderModel(request, task, parent, parentPropertyName, value);
1534
1486
  },
1535
- thenableState: null
1487
+ thenableState: null,
1488
+ timed: !1
1536
1489
  };
1537
1490
  task.environmentName = request.environmentName();
1538
1491
  task.debugOwner = debugOwner;
@@ -1616,38 +1569,21 @@
1616
1569
  );
1617
1570
  }
1618
1571
  function error(reason) {
1619
- if (!aborted) {
1620
- aborted = !0;
1621
- request.abortListeners.delete(abortBlob);
1622
- var digest = logRecoverableError$1(request, reason, newTask);
1623
- emitErrorChunk(request, newTask.id, digest, reason);
1624
- enqueueFlush(request);
1625
- reader.cancel(reason).then(error, error);
1626
- }
1572
+ aborted ||
1573
+ ((aborted = !0),
1574
+ request.abortListeners.delete(abortBlob),
1575
+ erroredTask$1(request, newTask, reason),
1576
+ enqueueFlush(request),
1577
+ reader.cancel(reason).then(error, error));
1627
1578
  }
1628
1579
  function abortBlob(reason) {
1629
- if (!aborted) {
1630
- aborted = !0;
1631
- request.abortListeners.delete(abortBlob);
1632
- if (
1633
- "object" === typeof reason &&
1634
- null !== reason &&
1635
- reason.$$typeof === REACT_POSTPONE_TYPE
1636
- )
1637
- logPostpone$1(request, reason.message, newTask),
1638
- request.type === PRERENDER
1639
- ? request.pendingChunks--
1640
- : (emitPostponeChunk(request, newTask.id, reason),
1641
- enqueueFlush(request));
1642
- else {
1643
- var digest = logRecoverableError$1(request, reason, newTask);
1644
- request.type === PRERENDER
1645
- ? request.pendingChunks--
1646
- : (emitErrorChunk(request, newTask.id, digest, reason),
1647
- enqueueFlush(request));
1648
- }
1649
- reader.cancel(reason).then(error, error);
1650
- }
1580
+ aborted ||
1581
+ ((aborted = !0),
1582
+ request.abortListeners.delete(abortBlob),
1583
+ request.type === PRERENDER
1584
+ ? request.pendingChunks--
1585
+ : (erroredTask$1(request, newTask, reason), enqueueFlush(request)),
1586
+ reader.cancel(reason).then(error, error));
1651
1587
  }
1652
1588
  var model = [blob.type],
1653
1589
  newTask = createTask(
@@ -1695,45 +1631,42 @@
1695
1631
  thrownValue === SuspenseException$1
1696
1632
  ? getSuspendedThenable$1()
1697
1633
  : thrownValue;
1698
- if ("object" === typeof key && null !== key) {
1699
- if ("function" === typeof key.then)
1700
- return (
1701
- (request = createTask(
1702
- request,
1703
- task.model,
1704
- task.keyPath,
1705
- task.implicitSlot,
1706
- request.abortableTasks,
1707
- task.debugOwner,
1708
- task.debugStack,
1709
- task.debugTask
1710
- )),
1711
- (value = request.ping),
1712
- key.then(value, value),
1713
- (request.thenableState = getThenableStateAfterSuspending$1()),
1714
- (task.keyPath = prevKeyPath),
1715
- (task.implicitSlot = prevImplicitSlot),
1716
- parent
1717
- ? "$L" + request.id.toString(16)
1718
- : serializeByValueID$1(request.id)
1719
- );
1720
- if (key.$$typeof === REACT_POSTPONE_TYPE)
1721
- return (
1722
- request.pendingChunks++,
1723
- (value = request.nextChunkId++),
1724
- logPostpone$1(request, key.message, task),
1725
- emitPostponeChunk(request, value, key),
1726
- (task.keyPath = prevKeyPath),
1727
- (task.implicitSlot = prevImplicitSlot),
1728
- parent ? "$L" + value.toString(16) : serializeByValueID$1(value)
1729
- );
1730
- }
1634
+ if (
1635
+ "object" === typeof key &&
1636
+ null !== key &&
1637
+ "function" === typeof key.then
1638
+ )
1639
+ return (
1640
+ (request = createTask(
1641
+ request,
1642
+ task.model,
1643
+ task.keyPath,
1644
+ task.implicitSlot,
1645
+ request.abortableTasks,
1646
+ task.debugOwner,
1647
+ task.debugStack,
1648
+ task.debugTask
1649
+ )),
1650
+ (value = request.ping),
1651
+ key.then(value, value),
1652
+ (request.thenableState = getThenableStateAfterSuspending$1()),
1653
+ (task.keyPath = prevKeyPath),
1654
+ (task.implicitSlot = prevImplicitSlot),
1655
+ parent
1656
+ ? "$L" + request.id.toString(16)
1657
+ : serializeByValueID$1(request.id)
1658
+ );
1731
1659
  task.keyPath = prevKeyPath;
1732
1660
  task.implicitSlot = prevImplicitSlot;
1733
1661
  request.pendingChunks++;
1734
1662
  prevKeyPath = request.nextChunkId++;
1735
- task = logRecoverableError$1(request, key, task);
1736
- emitErrorChunk(request, prevKeyPath, task, key);
1663
+ "object" === typeof key &&
1664
+ null !== key &&
1665
+ key.$$typeof === REACT_POSTPONE_TYPE
1666
+ ? (logPostpone$1(request, key.message, task),
1667
+ emitPostponeChunk(request, prevKeyPath, key))
1668
+ : ((task = logRecoverableError$1(request, key, task)),
1669
+ emitErrorChunk(request, prevKeyPath, task, key));
1737
1670
  return parent
1738
1671
  ? "$L" + prevKeyPath.toString(16)
1739
1672
  : serializeByValueID$1(prevKeyPath);
@@ -2480,12 +2413,24 @@
2480
2413
  }
2481
2414
  request.completedRegularChunks.push(":W" + json + "\n");
2482
2415
  }
2416
+ function emitTimeOriginChunk(request, timeOrigin) {
2417
+ request.pendingChunks++;
2418
+ request.completedRegularChunks.push(":N" + timeOrigin + "\n");
2419
+ }
2483
2420
  function forwardDebugInfo(request, id, debugInfo) {
2484
2421
  for (var i = 0; i < debugInfo.length; i++)
2485
- request.pendingChunks++,
2486
- "string" === typeof debugInfo[i].name &&
2487
- outlineComponentInfo(request, debugInfo[i]),
2488
- emitDebugChunk(request, id, debugInfo[i]);
2422
+ "number" === typeof debugInfo[i].time
2423
+ ? emitTimingChunk(request, id, debugInfo[i].time)
2424
+ : (request.pendingChunks++,
2425
+ "string" === typeof debugInfo[i].name &&
2426
+ outlineComponentInfo(request, debugInfo[i]),
2427
+ emitDebugChunk(request, id, debugInfo[i]));
2428
+ }
2429
+ function emitTimingChunk(request, id, timestamp) {
2430
+ request.pendingChunks++;
2431
+ timestamp -= request.timeOrigin;
2432
+ id = id.toString(16) + ':D{"time":' + timestamp + "}\n";
2433
+ request.completedRegularChunks.push(id);
2489
2434
  }
2490
2435
  function emitChunk(request, task, value) {
2491
2436
  var id = task.id;
@@ -2518,6 +2463,22 @@
2518
2463
  : ((value = stringify(value, task.toJSON)),
2519
2464
  emitModelChunk(request, task.id, value));
2520
2465
  }
2466
+ function erroredTask$1(request, task, error) {
2467
+ task.timed && emitTimingChunk(request, task.id, performance.now());
2468
+ request.abortableTasks.delete(task);
2469
+ task.status = ERRORED$2;
2470
+ if (
2471
+ "object" === typeof error &&
2472
+ null !== error &&
2473
+ error.$$typeof === REACT_POSTPONE_TYPE
2474
+ )
2475
+ logPostpone$1(request, error.message, task),
2476
+ emitPostponeChunk(request, task.id, error);
2477
+ else {
2478
+ var digest = logRecoverableError$1(request, error, task);
2479
+ emitErrorChunk(request, task.id, digest, error);
2480
+ }
2481
+ }
2521
2482
  function retryTask$1(request, task) {
2522
2483
  if (task.status === PENDING$3) {
2523
2484
  var prevDebugID = debugID;
@@ -2536,22 +2497,19 @@
2536
2497
  modelRoot = resolvedModel;
2537
2498
  task.keyPath = null;
2538
2499
  task.implicitSlot = !1;
2539
- if ("object" === typeof resolvedModel && null !== resolvedModel) {
2500
+ var currentEnv = (0, request.environmentName)();
2501
+ currentEnv !== task.environmentName &&
2502
+ (request.pendingChunks++,
2503
+ emitDebugChunk(request, task.id, { env: currentEnv }));
2504
+ task.timed && emitTimingChunk(request, task.id, performance.now());
2505
+ if ("object" === typeof resolvedModel && null !== resolvedModel)
2540
2506
  request.writtenObjects.set(
2541
2507
  resolvedModel,
2542
2508
  serializeByValueID$1(task.id)
2543
- );
2544
- var currentEnv = (0, request.environmentName)();
2545
- currentEnv !== task.environmentName &&
2546
- (request.pendingChunks++,
2547
- emitDebugChunk(request, task.id, { env: currentEnv }));
2548
- emitChunk(request, task, resolvedModel);
2549
- } else {
2550
- var json = stringify(resolvedModel),
2551
- _currentEnv = (0, request.environmentName)();
2552
- _currentEnv !== task.environmentName &&
2553
- (request.pendingChunks++,
2554
- emitDebugChunk(request, task.id, { env: _currentEnv }));
2509
+ ),
2510
+ emitChunk(request, task, resolvedModel);
2511
+ else {
2512
+ var json = stringify(resolvedModel);
2555
2513
  emitModelChunk(request, task.id, json);
2556
2514
  }
2557
2515
  request.abortableTasks.delete(task);
@@ -2573,26 +2531,16 @@
2573
2531
  thrownValue === SuspenseException$1
2574
2532
  ? getSuspendedThenable$1()
2575
2533
  : thrownValue;
2576
- if ("object" === typeof x && null !== x) {
2577
- if ("function" === typeof x.then) {
2578
- task.status = PENDING$3;
2579
- task.thenableState = getThenableStateAfterSuspending$1();
2580
- var ping = task.ping;
2581
- x.then(ping, ping);
2582
- return;
2583
- }
2584
- if (x.$$typeof === REACT_POSTPONE_TYPE) {
2585
- request.abortableTasks.delete(task);
2586
- task.status = ERRORED$2;
2587
- logPostpone$1(request, x.message, task);
2588
- emitPostponeChunk(request, task.id, x);
2589
- return;
2590
- }
2591
- }
2592
- request.abortableTasks.delete(task);
2593
- task.status = ERRORED$2;
2594
- var digest = logRecoverableError$1(request, x, task);
2595
- emitErrorChunk(request, task.id, digest, x);
2534
+ if (
2535
+ "object" === typeof x &&
2536
+ null !== x &&
2537
+ "function" === typeof x.then
2538
+ ) {
2539
+ task.status = PENDING$3;
2540
+ task.thenableState = getThenableStateAfterSuspending$1();
2541
+ var ping = task.ping;
2542
+ x.then(ping, ping);
2543
+ } else erroredTask$1(request, task, x);
2596
2544
  }
2597
2545
  } finally {
2598
2546
  debugID = prevDebugID;
@@ -2637,6 +2585,7 @@
2637
2585
  function abortTask$1(task, request, errorId) {
2638
2586
  task.status !== RENDERING$1 &&
2639
2587
  ((task.status = ABORTED$1),
2588
+ task.timed && emitTimingChunk(request, task.id, performance.now()),
2640
2589
  (errorId = serializeByValueID$1(errorId)),
2641
2590
  (task = encodeReferenceChunk(request, task.id, errorId)),
2642
2591
  request.completedErrorChunks.push(task));
@@ -2721,29 +2670,25 @@
2721
2670
  11 >= request.status && (request.status = ABORTING$1);
2722
2671
  var abortableTasks = request.abortableTasks;
2723
2672
  if (0 < abortableTasks.size) {
2724
- if (
2673
+ if (request.type === PRERENDER)
2674
+ abortableTasks.forEach(function (task) {
2675
+ task.status !== RENDERING$1 &&
2676
+ ((task.status = ABORTED$1), request.pendingChunks--);
2677
+ });
2678
+ else if (
2725
2679
  "object" === typeof reason &&
2726
2680
  null !== reason &&
2727
2681
  reason.$$typeof === REACT_POSTPONE_TYPE
2728
- )
2729
- if (
2730
- (logPostpone$1(request, reason.message, null),
2731
- request.type === PRERENDER)
2732
- )
2733
- abortableTasks.forEach(function (task) {
2734
- task.status !== RENDERING$1 &&
2735
- ((task.status = ABORTED$1), request.pendingChunks--);
2736
- });
2737
- else {
2738
- var errorId = request.nextChunkId++;
2739
- request.fatalError = errorId;
2740
- request.pendingChunks++;
2741
- emitPostponeChunk(request, errorId, reason);
2742
- abortableTasks.forEach(function (task) {
2743
- return abortTask$1(task, request, errorId);
2744
- });
2745
- }
2746
- else {
2682
+ ) {
2683
+ logPostpone$1(request, reason.message, null);
2684
+ var errorId = request.nextChunkId++;
2685
+ request.fatalError = errorId;
2686
+ request.pendingChunks++;
2687
+ emitPostponeChunk(request, errorId, reason);
2688
+ abortableTasks.forEach(function (task) {
2689
+ return abortTask$1(task, request, errorId);
2690
+ });
2691
+ } else {
2747
2692
  var error =
2748
2693
  void 0 === reason
2749
2694
  ? Error(
@@ -2756,21 +2701,14 @@
2756
2701
  "The render was aborted by the server with a promise."
2757
2702
  )
2758
2703
  : reason,
2759
- digest = logRecoverableError$1(request, error, null);
2760
- if (request.type === PRERENDER)
2761
- abortableTasks.forEach(function (task) {
2762
- task.status !== RENDERING$1 &&
2763
- ((task.status = ABORTED$1), request.pendingChunks--);
2764
- });
2765
- else {
2766
- var _errorId2 = request.nextChunkId++;
2767
- request.fatalError = _errorId2;
2768
- request.pendingChunks++;
2769
- emitErrorChunk(request, _errorId2, digest, error);
2770
- abortableTasks.forEach(function (task) {
2771
- return abortTask$1(task, request, _errorId2);
2772
- });
2773
- }
2704
+ digest = logRecoverableError$1(request, error, null),
2705
+ _errorId2 = request.nextChunkId++;
2706
+ request.fatalError = _errorId2;
2707
+ request.pendingChunks++;
2708
+ emitErrorChunk(request, _errorId2, digest, error);
2709
+ abortableTasks.forEach(function (task) {
2710
+ return abortTask$1(task, request, _errorId2);
2711
+ });
2774
2712
  }
2775
2713
  abortableTasks.clear();
2776
2714
  var onAllReady = request.onAllReady;
@@ -3539,6 +3477,7 @@
3539
3477
  this.value = value;
3540
3478
  this.reason = reason;
3541
3479
  this._response = response;
3480
+ this._children = [];
3542
3481
  this._debugInfo = null;
3543
3482
  }
3544
3483
  function readChunk(chunk) {
@@ -3562,6 +3501,9 @@
3562
3501
  function createPendingChunk(response) {
3563
3502
  return new ReactPromise("pending", null, null, response);
3564
3503
  }
3504
+ function createErrorChunk(response, error) {
3505
+ return new ReactPromise("rejected", null, error, response);
3506
+ }
3565
3507
  function wakeChunk(listeners, value) {
3566
3508
  for (var i = 0; i < listeners.length; i++) (0, listeners[i])(value);
3567
3509
  }
@@ -3631,12 +3573,14 @@
3631
3573
  }
3632
3574
  }
3633
3575
  function initializeModelChunk(chunk) {
3634
- var prevHandler = initializingHandler;
3576
+ var prevHandler = initializingHandler,
3577
+ prevChunk = initializingChunk;
3635
3578
  initializingHandler = null;
3636
3579
  var resolvedModel = chunk.value;
3637
3580
  chunk.status = "blocked";
3638
3581
  chunk.value = null;
3639
3582
  chunk.reason = null;
3583
+ initializingChunk = chunk;
3640
3584
  try {
3641
3585
  var value = JSON.parse(resolvedModel, chunk._response._fromJSON),
3642
3586
  resolveListeners = chunk.value;
@@ -3657,7 +3601,7 @@
3657
3601
  } catch (error) {
3658
3602
  (chunk.status = "rejected"), (chunk.reason = error);
3659
3603
  } finally {
3660
- initializingHandler = prevHandler;
3604
+ (initializingHandler = prevHandler), (initializingChunk = prevChunk);
3661
3605
  }
3662
3606
  }
3663
3607
  function initializeModuleChunk(chunk) {
@@ -3670,9 +3614,20 @@
3670
3614
  }
3671
3615
  }
3672
3616
  function reportGlobalError(response, error) {
3617
+ response._closed = !0;
3618
+ response._closedReason = error;
3673
3619
  response._chunks.forEach(function (chunk) {
3674
3620
  "pending" === chunk.status && triggerErrorOnChunk(chunk, error);
3675
3621
  });
3622
+ supportsUserTiming &&
3623
+ performance.mark("Server Components Track", componentsTrackMarker);
3624
+ flushComponentPerformance(
3625
+ response,
3626
+ getChunk(response, 0),
3627
+ 0,
3628
+ -Infinity,
3629
+ -Infinity
3630
+ );
3676
3631
  }
3677
3632
  function nullRefGetter() {
3678
3633
  return null;
@@ -3706,7 +3661,11 @@
3706
3661
  function getChunk(response, id) {
3707
3662
  var chunks = response._chunks,
3708
3663
  chunk = chunks.get(id);
3709
- chunk || ((chunk = createPendingChunk(response)), chunks.set(id, chunk));
3664
+ chunk ||
3665
+ ((chunk = response._closed
3666
+ ? createErrorChunk(response, response._closedReason)
3667
+ : createPendingChunk(response)),
3668
+ chunks.set(id, chunk));
3710
3669
  return chunk;
3711
3670
  }
3712
3671
  function waitForReference(
@@ -3813,6 +3772,9 @@
3813
3772
  reference = reference.split(":");
3814
3773
  var id = parseInt(reference[0], 16);
3815
3774
  id = getChunk(response, id);
3775
+ null !== initializingChunk &&
3776
+ isArrayImpl(initializingChunk._children) &&
3777
+ initializingChunk._children.push(id);
3816
3778
  switch (id.status) {
3817
3779
  case "resolved_model":
3818
3780
  initializeModelChunk(id);
@@ -3921,12 +3883,19 @@
3921
3883
  return (
3922
3884
  (parentObject = parseInt(value.slice(2), 16)),
3923
3885
  (response = getChunk(response, parentObject)),
3886
+ null !== initializingChunk &&
3887
+ isArrayImpl(initializingChunk._children) &&
3888
+ initializingChunk._children.push(response),
3924
3889
  createLazyChunkWrapper(response)
3925
3890
  );
3926
3891
  case "@":
3927
3892
  if (2 === value.length) return new Promise(function () {});
3928
3893
  parentObject = parseInt(value.slice(2), 16);
3929
- return getChunk(response, parentObject);
3894
+ response = getChunk(response, parentObject);
3895
+ null !== initializingChunk &&
3896
+ isArrayImpl(initializingChunk._children) &&
3897
+ initializingChunk._children.push(response);
3898
+ return response;
3930
3899
  case "S":
3931
3900
  return Symbol.for(value.slice(2));
3932
3901
  case "F":
@@ -4062,7 +4031,10 @@
4062
4031
  this._fromJSON = this._stringDecoder = null;
4063
4032
  this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
4064
4033
  this._buffer = [];
4034
+ this._closed = !1;
4035
+ this._closedReason = null;
4065
4036
  this._tempRefs = temporaryReferences;
4037
+ this._timeOrigin = 0;
4066
4038
  this._debugRootOwner = bundlerConfig =
4067
4039
  void 0 === ReactSharedInteralsServer ||
4068
4040
  null === ReactSharedInteralsServer.A
@@ -4330,7 +4302,7 @@
4330
4302
  stack = response._chunks;
4331
4303
  (env = stack.get(id))
4332
4304
  ? triggerErrorOnChunk(env, reason)
4333
- : stack.set(id, new ReactPromise("rejected", null, reason, response));
4305
+ : stack.set(id, createErrorChunk(response, reason));
4334
4306
  }
4335
4307
  function resolveHint(response, code, model) {
4336
4308
  JSON.parse(model, response._fromJSON);
@@ -4479,15 +4451,20 @@
4479
4451
  initializeFakeStack(response, debugInfo.owner));
4480
4452
  }
4481
4453
  function resolveDebugInfo(response, id, debugInfo) {
4482
- initializeFakeTask(
4483
- response,
4484
- debugInfo,
4485
- void 0 === debugInfo.env ? response._rootEnvironmentName : debugInfo.env
4486
- );
4454
+ var env =
4455
+ void 0 === debugInfo.env
4456
+ ? response._rootEnvironmentName
4457
+ : debugInfo.env;
4458
+ void 0 !== debugInfo.stack &&
4459
+ initializeFakeTask(response, debugInfo, env);
4487
4460
  null === debugInfo.owner && null != response._debugRootOwner
4488
- ? ((debugInfo.owner = response._debugRootOwner),
4489
- (debugInfo.debugStack = response._debugRootStack))
4490
- : initializeFakeStack(response, debugInfo);
4461
+ ? ((env = debugInfo),
4462
+ (env.owner = response._debugRootOwner),
4463
+ (env.debugStack = response._debugRootStack))
4464
+ : void 0 !== debugInfo.stack &&
4465
+ initializeFakeStack(response, debugInfo);
4466
+ "number" === typeof debugInfo.time &&
4467
+ (debugInfo = { time: debugInfo.time + response._timeOrigin });
4491
4468
  response = getChunk(response, id);
4492
4469
  (response._debugInfo || (response._debugInfo = [])).push(debugInfo);
4493
4470
  }
@@ -4513,6 +4490,134 @@
4513
4490
  );
4514
4491
  }
4515
4492
  }
4493
+ function flushComponentPerformance(
4494
+ response,
4495
+ root,
4496
+ trackIdx$jscomp$0,
4497
+ trackTime,
4498
+ parentEndTime
4499
+ ) {
4500
+ if (!isArrayImpl(root._children)) {
4501
+ response = root._children;
4502
+ var previousEndTime = response.endTime;
4503
+ if (
4504
+ -Infinity < parentEndTime &&
4505
+ parentEndTime < previousEndTime &&
4506
+ null !== response.component
4507
+ ) {
4508
+ var trackIdx = trackIdx$jscomp$0;
4509
+ root = parentEndTime;
4510
+ supportsUserTiming &&
4511
+ 0 <= previousEndTime &&
4512
+ 10 > trackIdx &&
4513
+ ((parentEndTime = response.component.name),
4514
+ (reusableComponentDevToolDetails.color = "tertiary-light"),
4515
+ (reusableComponentDevToolDetails.track = trackNames[trackIdx]),
4516
+ (reusableComponentOptions.start = 0 > root ? 0 : root),
4517
+ (reusableComponentOptions.end = previousEndTime),
4518
+ performance.measure(
4519
+ parentEndTime + " [deduped]",
4520
+ reusableComponentOptions
4521
+ ));
4522
+ }
4523
+ response.track = trackIdx$jscomp$0;
4524
+ return response;
4525
+ }
4526
+ var children = root._children;
4527
+ "resolved_model" === root.status && initializeModelChunk(root);
4528
+ if ((previousEndTime = root._debugInfo)) {
4529
+ for (trackIdx = 1; trackIdx < previousEndTime.length; trackIdx++)
4530
+ if ("string" === typeof previousEndTime[trackIdx].name) {
4531
+ var startTimeInfo = previousEndTime[trackIdx - 1];
4532
+ if ("number" === typeof startTimeInfo.time) {
4533
+ trackIdx = startTimeInfo.time;
4534
+ trackIdx < trackTime && trackIdx$jscomp$0++;
4535
+ trackTime = trackIdx;
4536
+ break;
4537
+ }
4538
+ }
4539
+ for (trackIdx = previousEndTime.length - 1; 0 <= trackIdx; trackIdx--)
4540
+ (startTimeInfo = previousEndTime[trackIdx]),
4541
+ "number" === typeof startTimeInfo.time &&
4542
+ startTimeInfo.time > parentEndTime &&
4543
+ (parentEndTime = startTimeInfo.time);
4544
+ }
4545
+ trackIdx = {
4546
+ track: trackIdx$jscomp$0,
4547
+ endTime: -Infinity,
4548
+ component: null
4549
+ };
4550
+ root._children = trackIdx;
4551
+ root = -Infinity;
4552
+ startTimeInfo = trackIdx$jscomp$0;
4553
+ var childTrackTime = trackTime;
4554
+ for (trackTime = 0; trackTime < children.length; trackTime++) {
4555
+ childTrackTime = flushComponentPerformance(
4556
+ response,
4557
+ children[trackTime],
4558
+ startTimeInfo,
4559
+ childTrackTime,
4560
+ parentEndTime
4561
+ );
4562
+ null !== childTrackTime.component &&
4563
+ (trackIdx.component = childTrackTime.component);
4564
+ startTimeInfo = childTrackTime.track;
4565
+ var childEndTime = childTrackTime.endTime;
4566
+ childTrackTime = childEndTime;
4567
+ childEndTime > root && (root = childEndTime);
4568
+ }
4569
+ if (previousEndTime)
4570
+ for (
4571
+ parentEndTime = 0, children = previousEndTime.length - 1;
4572
+ 0 <= children;
4573
+ children--
4574
+ )
4575
+ if (
4576
+ ((trackTime = previousEndTime[children]),
4577
+ "number" === typeof trackTime.time &&
4578
+ ((parentEndTime = trackTime.time),
4579
+ parentEndTime > root && (root = parentEndTime)),
4580
+ "string" === typeof trackTime.name &&
4581
+ 0 < children &&
4582
+ ((childTrackTime = previousEndTime[children - 1]),
4583
+ "number" === typeof childTrackTime.time))
4584
+ ) {
4585
+ startTimeInfo = trackIdx$jscomp$0;
4586
+ childTrackTime = childTrackTime.time;
4587
+ childEndTime = root;
4588
+ if (supportsUserTiming && 0 <= childEndTime && 10 > startTimeInfo) {
4589
+ var env = trackTime.env,
4590
+ name = trackTime.name,
4591
+ isPrimaryEnv = env === response._rootEnvironmentName,
4592
+ selfTime = parentEndTime - childTrackTime;
4593
+ reusableComponentDevToolDetails.color =
4594
+ 0.5 > selfTime
4595
+ ? isPrimaryEnv
4596
+ ? "primary-light"
4597
+ : "secondary-light"
4598
+ : 50 > selfTime
4599
+ ? isPrimaryEnv
4600
+ ? "primary"
4601
+ : "secondary"
4602
+ : 500 > selfTime
4603
+ ? isPrimaryEnv
4604
+ ? "primary-dark"
4605
+ : "secondary-dark"
4606
+ : "error";
4607
+ reusableComponentDevToolDetails.track = trackNames[startTimeInfo];
4608
+ reusableComponentOptions.start =
4609
+ 0 > childTrackTime ? 0 : childTrackTime;
4610
+ reusableComponentOptions.end = childEndTime;
4611
+ performance.measure(
4612
+ isPrimaryEnv || void 0 === env ? name : name + " [" + env + "]",
4613
+ reusableComponentOptions
4614
+ );
4615
+ }
4616
+ trackIdx.component = trackTime;
4617
+ }
4618
+ trackIdx.endTime = root;
4619
+ return trackIdx;
4620
+ }
4516
4621
  function processFullStringRow(response, id, tag, row) {
4517
4622
  switch (tag) {
4518
4623
  case 73:
@@ -4529,11 +4634,14 @@
4529
4634
  var chunk = row.get(id);
4530
4635
  chunk
4531
4636
  ? triggerErrorOnChunk(chunk, tag)
4532
- : row.set(id, new ReactPromise("rejected", null, tag, response));
4637
+ : row.set(id, createErrorChunk(response, tag));
4533
4638
  break;
4534
4639
  case 84:
4535
4640
  resolveText(response, id, row);
4536
4641
  break;
4642
+ case 78:
4643
+ response._timeOrigin = +row - performance.timeOrigin;
4644
+ break;
4537
4645
  case 68:
4538
4646
  tag = new ReactPromise("resolved_model", row, null, response);
4539
4647
  initializeModelChunk(tag);
@@ -4648,12 +4756,7 @@
4648
4756
  ? ((stack = initializingHandler),
4649
4757
  (initializingHandler = stack.parent),
4650
4758
  stack.errored
4651
- ? ((key = new ReactPromise(
4652
- "rejected",
4653
- null,
4654
- stack.value,
4655
- response
4656
- )),
4759
+ ? ((key = createErrorChunk(response, stack.value)),
4657
4760
  (stack = {
4658
4761
  name: getComponentNameFromType(value.type) || "",
4659
4762
  owner: value._owner
@@ -6733,7 +6836,7 @@
6733
6836
  : children$jscomp$6;
6734
6837
  Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
6735
6838
  ? console.error(
6736
- "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
6839
+ "React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
6737
6840
  children$jscomp$6.length
6738
6841
  )
6739
6842
  : "function" === typeof child || "symbol" === typeof child
@@ -8293,7 +8396,7 @@
8293
8396
  if ("string" === typeof type) return describeBuiltInComponentFrame(type);
8294
8397
  if ("function" === typeof type)
8295
8398
  return type.prototype && type.prototype.isReactComponent
8296
- ? ((type = describeNativeComponentFrame(type, !0)), type)
8399
+ ? describeNativeComponentFrame(type, !0)
8297
8400
  : describeNativeComponentFrame(type, !1);
8298
8401
  if ("object" === typeof type && null !== type) {
8299
8402
  switch (type.$$typeof) {
@@ -9345,7 +9448,6 @@
9345
9448
  } else {
9346
9449
  switch (type) {
9347
9450
  case REACT_LEGACY_HIDDEN_TYPE:
9348
- case REACT_DEBUG_TRACING_MODE_TYPE:
9349
9451
  case REACT_STRICT_MODE_TYPE:
9350
9452
  case REACT_PROFILER_TYPE:
9351
9453
  case REACT_FRAGMENT_TYPE:
@@ -11759,7 +11861,6 @@
11759
11861
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
11760
11862
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
11761
11863
  REACT_SCOPE_TYPE = Symbol.for("react.scope"),
11762
- REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
11763
11864
  REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
11764
11865
  REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
11765
11866
  REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
@@ -11805,6 +11906,10 @@
11805
11906
  ":"
11806
11907
  );
11807
11908
  },
11909
+ useHostTransitionStatus: unsupportedHook,
11910
+ useOptimistic: unsupportedHook,
11911
+ useFormState: unsupportedHook,
11912
+ useActionState: unsupportedHook,
11808
11913
  useSyncExternalStore: unsupportedHook,
11809
11914
  useCacheRefresh: function () {
11810
11915
  return unsupportedRefresh$1;
@@ -11952,6 +12057,33 @@
11952
12057
  fakeServerFunctionIdx = 0,
11953
12058
  FunctionBind = Function.prototype.bind,
11954
12059
  ArraySlice = Array.prototype.slice,
12060
+ supportsUserTiming =
12061
+ "undefined" !== typeof performance &&
12062
+ "function" === typeof performance.measure,
12063
+ componentsTrackMarker = {
12064
+ startTime: 0.001,
12065
+ detail: {
12066
+ devtools: {
12067
+ color: "primary-light",
12068
+ track: "Primary",
12069
+ trackGroup: "Server Components \u269b"
12070
+ }
12071
+ }
12072
+ },
12073
+ reusableComponentDevToolDetails = {
12074
+ color: "primary",
12075
+ track: "",
12076
+ trackGroup: "Server Components \u269b"
12077
+ },
12078
+ reusableComponentOptions = {
12079
+ start: -0,
12080
+ end: -0,
12081
+ detail: { devtools: reusableComponentDevToolDetails }
12082
+ },
12083
+ trackNames =
12084
+ "Primary Parallel Parallel\u200b Parallel\u200b\u200b Parallel\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b".split(
12085
+ " "
12086
+ ),
11955
12087
  REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
11956
12088
  ReactSharedInteralsServer =
11957
12089
  React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
@@ -11985,6 +12117,7 @@
11985
12117
  }
11986
12118
  };
11987
12119
  var initializingHandler = null,
12120
+ initializingChunk = null,
11988
12121
  supportsCreateTask = !!console.createTask,
11989
12122
  fakeFunctionCache = new Map(),
11990
12123
  fakeFunctionIdx = 0,
@@ -12896,29 +13029,29 @@
12896
13029
  return treeId + ":";
12897
13030
  },
12898
13031
  useSyncExternalStore: clientHookNotSupported,
12899
- useCacheRefresh: function () {
12900
- return unsupportedRefresh;
13032
+ useOptimistic: function (passthrough) {
13033
+ resolveCurrentlyRenderingComponent();
13034
+ return [passthrough, unsupportedSetOptimisticState];
12901
13035
  },
12902
- useEffectEvent: function () {
12903
- return throwOnUseEffectEventCall;
13036
+ useActionState: useActionState,
13037
+ useFormState: useActionState,
13038
+ useHostTransitionStatus: function () {
13039
+ resolveCurrentlyRenderingComponent();
13040
+ return NotPending;
12904
13041
  },
12905
13042
  useMemoCache: function (size) {
12906
13043
  for (var data = Array(size), i = 0; i < size; i++)
12907
13044
  data[i] = REACT_MEMO_CACHE_SENTINEL;
12908
13045
  return data;
12909
13046
  },
12910
- useHostTransitionStatus: function () {
12911
- resolveCurrentlyRenderingComponent();
12912
- return NotPending;
13047
+ useCacheRefresh: function () {
13048
+ return unsupportedRefresh;
12913
13049
  },
12914
- useOptimistic: function (passthrough) {
12915
- resolveCurrentlyRenderingComponent();
12916
- return [passthrough, unsupportedSetOptimisticState];
13050
+ useEffectEvent: function () {
13051
+ return throwOnUseEffectEventCall;
12917
13052
  }
12918
- };
12919
- HooksDispatcher.useFormState = useActionState;
12920
- HooksDispatcher.useActionState = useActionState;
12921
- var currentResumableState = null,
13053
+ },
13054
+ currentResumableState = null,
12922
13055
  currentTaskInDEV = null,
12923
13056
  DefaultAsyncDispatcher = {
12924
13057
  getCacheForType: function () {
@@ -13169,5 +13302,5 @@
13169
13302
  });
13170
13303
  });
13171
13304
  };
13172
- exports.version = "19.0.0-experimental-65e06cb7-20241218";
13305
+ exports.version = "19.1.0-experimental-518d06d2-20241219";
13173
13306
  })();