react-dom 19.3.0-canary-c7862584-20251006 → 19.3.0-canary-3025aa39-20251007

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.
@@ -525,7 +525,8 @@ function getChildFormatContext(parentContext, type, props) {
525
525
  }
526
526
  return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
527
527
  ? createFormatContext(2, null, subtreeScope, null)
528
- : parentContext.tagScope !== subtreeScope
528
+ : null !== parentContext.viewTransition ||
529
+ parentContext.tagScope !== subtreeScope
529
530
  ? createFormatContext(
530
531
  parentContext.insertionMode,
531
532
  parentContext.selectedValue,
@@ -569,6 +570,11 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
569
570
  resumableState
570
571
  );
571
572
  }
573
+ function makeId(resumableState, treeId, localId) {
574
+ resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
575
+ 0 < localId && (resumableState += "H" + localId.toString(32));
576
+ return resumableState + "_";
577
+ }
572
578
  function pushTextInstance(target, text, renderState, textEmbedded) {
573
579
  if ("" === text) return textEmbedded;
574
580
  textEmbedded && target.push("\x3c!-- --\x3e");
@@ -578,6 +584,26 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
578
584
  function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
579
585
  lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e");
580
586
  }
587
+ function pushViewTransitionAttributes(target, formatContext) {
588
+ formatContext = formatContext.viewTransition;
589
+ null !== formatContext &&
590
+ ("auto" !== formatContext.name &&
591
+ (pushStringAttribute(
592
+ target,
593
+ "vt-name",
594
+ 0 === formatContext.nameIdx
595
+ ? formatContext.name
596
+ : formatContext.name + "_" + formatContext.nameIdx
597
+ ),
598
+ formatContext.nameIdx++),
599
+ pushStringAttribute(target, "vt-update", formatContext.update),
600
+ "none" !== formatContext.enter &&
601
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
602
+ "none" !== formatContext.exit &&
603
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
604
+ "none" !== formatContext.share &&
605
+ pushStringAttribute(target, "vt-share", formatContext.share));
606
+ }
581
607
  var styleNameCache = new Map();
582
608
  function pushStyleAttribute(target, style) {
583
609
  if ("object" !== typeof style)
@@ -930,7 +956,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
930
956
  function styleReplacer(match, prefix, s, suffix) {
931
957
  return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
932
958
  }
933
- function pushSelfClosing(target, props, tag) {
959
+ function pushSelfClosing(target, props, tag, formatContext) {
934
960
  target.push(startChunkForTag(tag));
935
961
  for (var propKey in props)
936
962
  if (hasOwnProperty.call(props, propKey)) {
@@ -947,6 +973,7 @@ function pushSelfClosing(target, props, tag) {
947
973
  pushAttribute(target, propKey, propValue);
948
974
  }
949
975
  }
976
+ pushViewTransitionAttributes(target, formatContext);
950
977
  target.push("/>");
951
978
  return null;
952
979
  }
@@ -1012,7 +1039,7 @@ function pushScriptImpl(target, props) {
1012
1039
  target.push(endChunkForTag("script"));
1013
1040
  return null;
1014
1041
  }
1015
- function pushStartSingletonElement(target, props, tag) {
1042
+ function pushStartSingletonElement(target, props, tag, formatContext) {
1016
1043
  target.push(startChunkForTag(tag));
1017
1044
  var innerHTML = (tag = null),
1018
1045
  propKey;
@@ -1031,11 +1058,12 @@ function pushStartSingletonElement(target, props, tag) {
1031
1058
  pushAttribute(target, propKey, propValue);
1032
1059
  }
1033
1060
  }
1061
+ pushViewTransitionAttributes(target, formatContext);
1034
1062
  target.push(">");
1035
1063
  pushInnerHTML(target, innerHTML, tag);
1036
1064
  return tag;
1037
1065
  }
1038
- function pushStartGenericElement(target, props, tag) {
1066
+ function pushStartGenericElement(target, props, tag, formatContext) {
1039
1067
  target.push(startChunkForTag(tag));
1040
1068
  var innerHTML = (tag = null),
1041
1069
  propKey;
@@ -1054,6 +1082,7 @@ function pushStartGenericElement(target, props, tag) {
1054
1082
  pushAttribute(target, propKey, propValue);
1055
1083
  }
1056
1084
  }
1085
+ pushViewTransitionAttributes(target, formatContext);
1057
1086
  target.push(">");
1058
1087
  pushInnerHTML(target, innerHTML, tag);
1059
1088
  return "string" === typeof tag
@@ -1113,6 +1142,7 @@ function pushStartInstance(
1113
1142
  pushAttribute(target$jscomp$0, propKey, propValue);
1114
1143
  }
1115
1144
  }
1145
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1116
1146
  target$jscomp$0.push(">");
1117
1147
  pushInnerHTML(target$jscomp$0, innerHTML, children);
1118
1148
  if ("string" === typeof children) {
@@ -1151,6 +1181,7 @@ function pushStartInstance(
1151
1181
  );
1152
1182
  }
1153
1183
  }
1184
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1154
1185
  target$jscomp$0.push(">");
1155
1186
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
1156
1187
  return children$jscomp$0;
@@ -1240,6 +1271,7 @@ function pushStartInstance(
1240
1271
  null === value$jscomp$0 &&
1241
1272
  null !== defaultValue &&
1242
1273
  (value$jscomp$0 = defaultValue);
1274
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1243
1275
  target$jscomp$0.push(">");
1244
1276
  if (null != children$jscomp$2) {
1245
1277
  if (null != value$jscomp$0)
@@ -1334,6 +1366,7 @@ function pushStartInstance(
1334
1366
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
1335
1367
  : null !== defaultValue$jscomp$0 &&
1336
1368
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
1369
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1337
1370
  target$jscomp$0.push("/>");
1338
1371
  null != formData &&
1339
1372
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1392,6 +1425,7 @@ function pushStartInstance(
1392
1425
  formTarget$jscomp$0,
1393
1426
  name$jscomp$0
1394
1427
  );
1428
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1395
1429
  target$jscomp$0.push(">");
1396
1430
  null != formData$jscomp$0 &&
1397
1431
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1477,6 +1511,7 @@ function pushStartInstance(
1477
1511
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
1478
1512
  null != formTarget$jscomp$1 &&
1479
1513
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
1514
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1480
1515
  target$jscomp$0.push(">");
1481
1516
  null !== formActionName &&
1482
1517
  (target$jscomp$0.push('<input type="hidden"'),
@@ -1510,6 +1545,7 @@ function pushStartInstance(
1510
1545
  );
1511
1546
  }
1512
1547
  }
1548
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1513
1549
  target$jscomp$0.push(">");
1514
1550
  return null;
1515
1551
  case "object":
@@ -1547,6 +1583,7 @@ function pushStartInstance(
1547
1583
  );
1548
1584
  }
1549
1585
  }
1586
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1550
1587
  target$jscomp$0.push(">");
1551
1588
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1552
1589
  if ("string" === typeof children$jscomp$5) {
@@ -1818,17 +1855,33 @@ function pushStartInstance(
1818
1855
  var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1819
1856
  target$jscomp$0,
1820
1857
  props,
1821
- "meta"
1858
+ "meta",
1859
+ formatContext
1822
1860
  );
1823
1861
  else
1824
1862
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1825
1863
  (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
1826
1864
  ? null
1827
1865
  : "string" === typeof props.charSet
1828
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1866
+ ? pushSelfClosing(
1867
+ renderState.charsetChunks,
1868
+ props,
1869
+ "meta",
1870
+ formatContext
1871
+ )
1829
1872
  : "viewport" === props.name
1830
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1831
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1873
+ ? pushSelfClosing(
1874
+ renderState.viewportChunks,
1875
+ props,
1876
+ "meta",
1877
+ formatContext
1878
+ )
1879
+ : pushSelfClosing(
1880
+ renderState.hoistableChunks,
1881
+ props,
1882
+ "meta",
1883
+ formatContext
1884
+ ));
1832
1885
  return JSCompiler_inline_result$jscomp$7;
1833
1886
  case "listing":
1834
1887
  case "pre":
@@ -1855,6 +1908,7 @@ function pushStartInstance(
1855
1908
  );
1856
1909
  }
1857
1910
  }
1911
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1858
1912
  target$jscomp$0.push(">");
1859
1913
  if (null != innerHTML$jscomp$7) {
1860
1914
  if (null != children$jscomp$8)
@@ -1971,7 +2025,7 @@ function pushStartInstance(
1971
2025
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
1972
2026
  }
1973
2027
  }
1974
- return pushSelfClosing(target$jscomp$0, props, "img");
2028
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
1975
2029
  case "base":
1976
2030
  case "area":
1977
2031
  case "br":
@@ -1983,7 +2037,7 @@ function pushStartInstance(
1983
2037
  case "source":
1984
2038
  case "track":
1985
2039
  case "wbr":
1986
- return pushSelfClosing(target$jscomp$0, props, type);
2040
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
1987
2041
  case "annotation-xml":
1988
2042
  case "color-profile":
1989
2043
  case "font-face":
@@ -2003,13 +2057,15 @@ function pushStartInstance(
2003
2057
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
2004
2058
  preamble.headChunks,
2005
2059
  props,
2006
- "head"
2060
+ "head",
2061
+ formatContext
2007
2062
  );
2008
2063
  } else
2009
2064
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2010
2065
  target$jscomp$0,
2011
2066
  props,
2012
- "head"
2067
+ "head",
2068
+ formatContext
2013
2069
  );
2014
2070
  return JSCompiler_inline_result$jscomp$9;
2015
2071
  case "body":
@@ -2022,13 +2078,15 @@ function pushStartInstance(
2022
2078
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
2023
2079
  preamble$jscomp$0.bodyChunks,
2024
2080
  props,
2025
- "body"
2081
+ "body",
2082
+ formatContext
2026
2083
  );
2027
2084
  } else
2028
2085
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
2029
2086
  target$jscomp$0,
2030
2087
  props,
2031
- "body"
2088
+ "body",
2089
+ formatContext
2032
2090
  );
2033
2091
  return JSCompiler_inline_result$jscomp$10;
2034
2092
  case "html":
@@ -2041,13 +2099,15 @@ function pushStartInstance(
2041
2099
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
2042
2100
  preamble$jscomp$1.htmlChunks,
2043
2101
  props,
2044
- "html"
2102
+ "html",
2103
+ formatContext
2045
2104
  );
2046
2105
  } else
2047
2106
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
2048
2107
  target$jscomp$0,
2049
2108
  props,
2050
- "html"
2109
+ "html",
2110
+ formatContext
2051
2111
  );
2052
2112
  return JSCompiler_inline_result$jscomp$11;
2053
2113
  default:
@@ -2097,12 +2157,13 @@ function pushStartInstance(
2097
2157
  }
2098
2158
  }
2099
2159
  }
2160
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2100
2161
  target$jscomp$0.push(">");
2101
2162
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
2102
2163
  return children$jscomp$9;
2103
2164
  }
2104
2165
  }
2105
- return pushStartGenericElement(target$jscomp$0, props, type);
2166
+ return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
2106
2167
  }
2107
2168
  var endTagCache = new Map();
2108
2169
  function endChunkForTag(tag) {
@@ -2922,6 +2983,8 @@ function getComponentNameFromType(type) {
2922
2983
  return "SuspenseList";
2923
2984
  case REACT_ACTIVITY_TYPE:
2924
2985
  return "Activity";
2986
+ case REACT_VIEW_TRANSITION_TYPE:
2987
+ return "ViewTransition";
2925
2988
  }
2926
2989
  if ("object" === typeof type)
2927
2990
  switch (type.$$typeof) {
@@ -3035,6 +3098,11 @@ var classComponentUpdater = {
3035
3098
  enqueueForceUpdate: function () {}
3036
3099
  },
3037
3100
  emptyTreeContext = { id: 1, overflow: "" };
3101
+ function getTreeId(context) {
3102
+ var overflow = context.overflow;
3103
+ context = context.id;
3104
+ return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
3105
+ }
3038
3106
  function pushTreeContext(baseContext, totalChildren, index) {
3039
3107
  var baseIdWithLeadingBit = baseContext.id;
3040
3108
  baseContext = baseContext.overflow;
@@ -3394,24 +3462,14 @@ var HooksDispatcher = {
3394
3462
  return [!1, unsupportedStartTransition];
3395
3463
  },
3396
3464
  useId: function () {
3397
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3398
- var overflow = JSCompiler_inline_result.overflow;
3399
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3400
- JSCompiler_inline_result =
3401
- (
3402
- JSCompiler_inline_result &
3403
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3404
- ).toString(32) + overflow;
3405
- var resumableState = currentResumableState;
3465
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
3466
+ resumableState = currentResumableState;
3406
3467
  if (null === resumableState)
3407
3468
  throw Error(
3408
3469
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
3409
3470
  );
3410
- overflow = localIdCounter++;
3411
- JSCompiler_inline_result =
3412
- "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
3413
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3414
- return JSCompiler_inline_result + "_";
3471
+ var localId = localIdCounter++;
3472
+ return makeId(resumableState, treeId, localId);
3415
3473
  },
3416
3474
  useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3417
3475
  if (void 0 === getServerSnapshot)
@@ -3663,9 +3721,28 @@ function describeComponentStackByType(type) {
3663
3721
  return describeBuiltInComponentFrame("SuspenseList");
3664
3722
  case REACT_SUSPENSE_TYPE:
3665
3723
  return describeBuiltInComponentFrame("Suspense");
3724
+ case REACT_VIEW_TRANSITION_TYPE:
3725
+ return describeBuiltInComponentFrame("ViewTransition");
3666
3726
  }
3667
3727
  return "";
3668
3728
  }
3729
+ function getViewTransitionClassName(defaultClass, eventClass) {
3730
+ defaultClass =
3731
+ null == defaultClass || "string" === typeof defaultClass
3732
+ ? defaultClass
3733
+ : defaultClass.default;
3734
+ eventClass =
3735
+ null == eventClass || "string" === typeof eventClass
3736
+ ? eventClass
3737
+ : eventClass.default;
3738
+ return null == eventClass
3739
+ ? "auto" === defaultClass
3740
+ ? null
3741
+ : defaultClass
3742
+ : "auto" === eventClass
3743
+ ? null
3744
+ : eventClass;
3745
+ }
3669
3746
  function isEligibleForOutlining(request, boundary) {
3670
3747
  return (
3671
3748
  (500 < boundary.byteSize || hasSuspenseyContent(boundary.contentState)) &&
@@ -4255,109 +4332,139 @@ function renderElement(request, task, keyPath, type, props, ref) {
4255
4332
  void 0 === newProps[propName$43] &&
4256
4333
  (newProps[propName$43] = defaultProps[propName$43]);
4257
4334
  }
4258
- props = newProps;
4259
- newProps = emptyContextObject;
4260
- defaultProps = type.contextType;
4261
- "object" === typeof defaultProps &&
4262
- null !== defaultProps &&
4263
- (newProps = defaultProps._currentValue);
4264
- newProps = new type(props, newProps);
4265
- var initialState = void 0 !== newProps.state ? newProps.state : null;
4266
- newProps.updater = classComponentUpdater;
4267
- newProps.props = props;
4268
- newProps.state = initialState;
4269
- defaultProps = { queue: [], replace: !1 };
4270
- newProps._reactInternals = defaultProps;
4271
- ref = type.contextType;
4272
- newProps.context =
4273
- "object" === typeof ref && null !== ref
4274
- ? ref._currentValue
4335
+ var JSCompiler_inline_result = newProps;
4336
+ var context = emptyContextObject,
4337
+ contextType = type.contextType;
4338
+ "object" === typeof contextType &&
4339
+ null !== contextType &&
4340
+ (context = contextType._currentValue);
4341
+ var JSCompiler_inline_result$jscomp$0 = new type(
4342
+ JSCompiler_inline_result,
4343
+ context
4344
+ );
4345
+ var initialState =
4346
+ void 0 !== JSCompiler_inline_result$jscomp$0.state
4347
+ ? JSCompiler_inline_result$jscomp$0.state
4348
+ : null;
4349
+ JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
4350
+ JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
4351
+ JSCompiler_inline_result$jscomp$0.state = initialState;
4352
+ var internalInstance = { queue: [], replace: !1 };
4353
+ JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
4354
+ var contextType$jscomp$0 = type.contextType;
4355
+ JSCompiler_inline_result$jscomp$0.context =
4356
+ "object" === typeof contextType$jscomp$0 &&
4357
+ null !== contextType$jscomp$0
4358
+ ? contextType$jscomp$0._currentValue
4275
4359
  : emptyContextObject;
4276
- ref = type.getDerivedStateFromProps;
4277
- "function" === typeof ref &&
4278
- ((ref = ref(props, initialState)),
4279
- (initialState =
4280
- null === ref || void 0 === ref
4360
+ var getDerivedStateFromProps = type.getDerivedStateFromProps;
4361
+ if ("function" === typeof getDerivedStateFromProps) {
4362
+ var partialState = getDerivedStateFromProps(
4363
+ JSCompiler_inline_result,
4364
+ initialState
4365
+ );
4366
+ var JSCompiler_inline_result$jscomp$1 =
4367
+ null === partialState || void 0 === partialState
4281
4368
  ? initialState
4282
- : assign({}, initialState, ref)),
4283
- (newProps.state = initialState));
4369
+ : assign({}, initialState, partialState);
4370
+ JSCompiler_inline_result$jscomp$0.state =
4371
+ JSCompiler_inline_result$jscomp$1;
4372
+ }
4284
4373
  if (
4285
4374
  "function" !== typeof type.getDerivedStateFromProps &&
4286
- "function" !== typeof newProps.getSnapshotBeforeUpdate &&
4287
- ("function" === typeof newProps.UNSAFE_componentWillMount ||
4288
- "function" === typeof newProps.componentWillMount)
4289
- )
4375
+ "function" !==
4376
+ typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
4377
+ ("function" ===
4378
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
4379
+ "function" ===
4380
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
4381
+ ) {
4382
+ var oldState = JSCompiler_inline_result$jscomp$0.state;
4383
+ "function" ===
4384
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
4385
+ JSCompiler_inline_result$jscomp$0.componentWillMount();
4386
+ "function" ===
4387
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
4388
+ JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
4389
+ oldState !== JSCompiler_inline_result$jscomp$0.state &&
4390
+ classComponentUpdater.enqueueReplaceState(
4391
+ JSCompiler_inline_result$jscomp$0,
4392
+ JSCompiler_inline_result$jscomp$0.state,
4393
+ null
4394
+ );
4290
4395
  if (
4291
- ((type = newProps.state),
4292
- "function" === typeof newProps.componentWillMount &&
4293
- newProps.componentWillMount(),
4294
- "function" === typeof newProps.UNSAFE_componentWillMount &&
4295
- newProps.UNSAFE_componentWillMount(),
4296
- type !== newProps.state &&
4297
- classComponentUpdater.enqueueReplaceState(
4298
- newProps,
4299
- newProps.state,
4300
- null
4301
- ),
4302
- null !== defaultProps.queue && 0 < defaultProps.queue.length)
4303
- )
4304
- if (
4305
- ((type = defaultProps.queue),
4306
- (ref = defaultProps.replace),
4307
- (defaultProps.queue = null),
4308
- (defaultProps.replace = !1),
4309
- ref && 1 === type.length)
4310
- )
4311
- newProps.state = type[0];
4396
+ null !== internalInstance.queue &&
4397
+ 0 < internalInstance.queue.length
4398
+ ) {
4399
+ var oldQueue = internalInstance.queue,
4400
+ oldReplace = internalInstance.replace;
4401
+ internalInstance.queue = null;
4402
+ internalInstance.replace = !1;
4403
+ if (oldReplace && 1 === oldQueue.length)
4404
+ JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
4312
4405
  else {
4313
- defaultProps = ref ? type[0] : newProps.state;
4314
- initialState = !0;
4315
- for (ref = ref ? 1 : 0; ref < type.length; ref++)
4316
- (propName$43 = type[ref]),
4317
- (propName$43 =
4318
- "function" === typeof propName$43
4319
- ? propName$43.call(newProps, defaultProps, props, void 0)
4320
- : propName$43),
4321
- null != propName$43 &&
4322
- (initialState
4323
- ? ((initialState = !1),
4324
- (defaultProps = assign({}, defaultProps, propName$43)))
4325
- : assign(defaultProps, propName$43));
4326
- newProps.state = defaultProps;
4406
+ for (
4407
+ var nextState = oldReplace
4408
+ ? oldQueue[0]
4409
+ : JSCompiler_inline_result$jscomp$0.state,
4410
+ dontMutate = !0,
4411
+ i = oldReplace ? 1 : 0;
4412
+ i < oldQueue.length;
4413
+ i++
4414
+ ) {
4415
+ var partial = oldQueue[i],
4416
+ partialState$jscomp$0 =
4417
+ "function" === typeof partial
4418
+ ? partial.call(
4419
+ JSCompiler_inline_result$jscomp$0,
4420
+ nextState,
4421
+ JSCompiler_inline_result,
4422
+ void 0
4423
+ )
4424
+ : partial;
4425
+ null != partialState$jscomp$0 &&
4426
+ (dontMutate
4427
+ ? ((dontMutate = !1),
4428
+ (nextState = assign({}, nextState, partialState$jscomp$0)))
4429
+ : assign(nextState, partialState$jscomp$0));
4430
+ }
4431
+ JSCompiler_inline_result$jscomp$0.state = nextState;
4327
4432
  }
4328
- else defaultProps.queue = null;
4329
- type = newProps.render();
4433
+ } else internalInstance.queue = null;
4434
+ }
4435
+ var nextChildren = JSCompiler_inline_result$jscomp$0.render();
4330
4436
  if (12 === request.status) throw null;
4331
- props = task.keyPath;
4437
+ var prevKeyPath = task.keyPath;
4332
4438
  task.keyPath = keyPath;
4333
- renderNodeDestructive(request, task, type, -1);
4334
- task.keyPath = props;
4439
+ renderNodeDestructive(request, task, nextChildren, -1);
4440
+ task.keyPath = prevKeyPath;
4335
4441
  } else {
4336
- type = renderWithHooks(request, task, keyPath, type, props, void 0);
4442
+ var value = renderWithHooks(request, task, keyPath, type, props, void 0);
4337
4443
  if (12 === request.status) throw null;
4338
4444
  finishFunctionComponent(
4339
4445
  request,
4340
4446
  task,
4341
4447
  keyPath,
4342
- type,
4448
+ value,
4343
4449
  0 !== localIdCounter,
4344
4450
  actionStateCounter,
4345
4451
  actionStateMatchingIndex
4346
4452
  );
4347
4453
  }
4348
- else if ("string" === typeof type)
4349
- if (((newProps = task.blockedSegment), null === newProps))
4350
- (newProps = props.children),
4351
- (defaultProps = task.formatContext),
4352
- (initialState = task.keyPath),
4353
- (task.formatContext = getChildFormatContext(defaultProps, type, props)),
4354
- (task.keyPath = keyPath),
4355
- renderNode(request, task, newProps, -1),
4356
- (task.formatContext = defaultProps),
4357
- (task.keyPath = initialState);
4358
- else {
4359
- initialState = pushStartInstance(
4360
- newProps.chunks,
4454
+ else if ("string" === typeof type) {
4455
+ var segment = task.blockedSegment;
4456
+ if (null === segment) {
4457
+ var children = props.children,
4458
+ prevContext = task.formatContext,
4459
+ prevKeyPath$jscomp$0 = task.keyPath;
4460
+ task.formatContext = getChildFormatContext(prevContext, type, props);
4461
+ task.keyPath = keyPath;
4462
+ renderNode(request, task, children, -1);
4463
+ task.formatContext = prevContext;
4464
+ task.keyPath = prevKeyPath$jscomp$0;
4465
+ } else {
4466
+ var children$40 = pushStartInstance(
4467
+ segment.chunks,
4361
4468
  type,
4362
4469
  props,
4363
4470
  request.resumableState,
@@ -4365,18 +4472,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
4365
4472
  task.blockedPreamble,
4366
4473
  task.hoistableState,
4367
4474
  task.formatContext,
4368
- newProps.lastPushedText
4475
+ segment.lastPushedText
4369
4476
  );
4370
- newProps.lastPushedText = !1;
4371
- defaultProps = task.formatContext;
4372
- ref = task.keyPath;
4477
+ segment.lastPushedText = !1;
4478
+ var prevContext$41 = task.formatContext,
4479
+ prevKeyPath$42 = task.keyPath;
4373
4480
  task.keyPath = keyPath;
4374
4481
  if (
4375
4482
  3 ===
4376
- (task.formatContext = getChildFormatContext(defaultProps, type, props))
4377
- .insertionMode
4483
+ (task.formatContext = getChildFormatContext(
4484
+ prevContext$41,
4485
+ type,
4486
+ props
4487
+ )).insertionMode
4378
4488
  ) {
4379
- keyPath = createPendingSegment(
4489
+ var preambleSegment = createPendingSegment(
4380
4490
  request,
4381
4491
  0,
4382
4492
  null,
@@ -4384,28 +4494,28 @@ function renderElement(request, task, keyPath, type, props, ref) {
4384
4494
  !1,
4385
4495
  !1
4386
4496
  );
4387
- newProps.preambleChildren.push(keyPath);
4388
- task.blockedSegment = keyPath;
4497
+ segment.preambleChildren.push(preambleSegment);
4498
+ task.blockedSegment = preambleSegment;
4389
4499
  try {
4390
- (keyPath.status = 6),
4391
- renderNode(request, task, initialState, -1),
4500
+ (preambleSegment.status = 6),
4501
+ renderNode(request, task, children$40, -1),
4392
4502
  pushSegmentFinale(
4393
- keyPath.chunks,
4503
+ preambleSegment.chunks,
4394
4504
  request.renderState,
4395
- keyPath.lastPushedText,
4396
- keyPath.textEmbedded
4505
+ preambleSegment.lastPushedText,
4506
+ preambleSegment.textEmbedded
4397
4507
  ),
4398
- (keyPath.status = 1),
4399
- finishedSegment(request, task.blockedBoundary, keyPath);
4508
+ (preambleSegment.status = 1),
4509
+ finishedSegment(request, task.blockedBoundary, preambleSegment);
4400
4510
  } finally {
4401
- task.blockedSegment = newProps;
4511
+ task.blockedSegment = segment;
4402
4512
  }
4403
- } else renderNode(request, task, initialState, -1);
4404
- task.formatContext = defaultProps;
4405
- task.keyPath = ref;
4513
+ } else renderNode(request, task, children$40, -1);
4514
+ task.formatContext = prevContext$41;
4515
+ task.keyPath = prevKeyPath$42;
4406
4516
  a: {
4407
- task = newProps.chunks;
4408
- request = request.resumableState;
4517
+ var target = segment.chunks,
4518
+ resumableState = request.resumableState;
4409
4519
  switch (type) {
4410
4520
  case "title":
4411
4521
  case "style":
@@ -4427,131 +4537,221 @@ function renderElement(request, task, keyPath, type, props, ref) {
4427
4537
  case "wbr":
4428
4538
  break a;
4429
4539
  case "body":
4430
- if (1 >= defaultProps.insertionMode) {
4431
- request.hasBody = !0;
4540
+ if (1 >= prevContext$41.insertionMode) {
4541
+ resumableState.hasBody = !0;
4432
4542
  break a;
4433
4543
  }
4434
4544
  break;
4435
4545
  case "html":
4436
- if (0 === defaultProps.insertionMode) {
4437
- request.hasHtml = !0;
4546
+ if (0 === prevContext$41.insertionMode) {
4547
+ resumableState.hasHtml = !0;
4438
4548
  break a;
4439
4549
  }
4440
4550
  break;
4441
4551
  case "head":
4442
- if (1 >= defaultProps.insertionMode) break a;
4552
+ if (1 >= prevContext$41.insertionMode) break a;
4443
4553
  }
4444
- task.push(endChunkForTag(type));
4554
+ target.push(endChunkForTag(type));
4445
4555
  }
4446
- newProps.lastPushedText = !1;
4556
+ segment.lastPushedText = !1;
4447
4557
  }
4448
- else {
4558
+ } else {
4449
4559
  switch (type) {
4450
4560
  case REACT_LEGACY_HIDDEN_TYPE:
4451
4561
  case REACT_STRICT_MODE_TYPE:
4452
4562
  case REACT_PROFILER_TYPE:
4453
4563
  case REACT_FRAGMENT_TYPE:
4454
- type = task.keyPath;
4564
+ var prevKeyPath$jscomp$1 = task.keyPath;
4455
4565
  task.keyPath = keyPath;
4456
4566
  renderNodeDestructive(request, task, props.children, -1);
4457
- task.keyPath = type;
4567
+ task.keyPath = prevKeyPath$jscomp$1;
4458
4568
  return;
4459
4569
  case REACT_ACTIVITY_TYPE:
4460
- type = task.blockedSegment;
4461
- null === type
4462
- ? "hidden" !== props.mode &&
4463
- ((type = task.keyPath),
4464
- (task.keyPath = keyPath),
4465
- renderNode(request, task, props.children, -1),
4466
- (task.keyPath = type))
4467
- : "hidden" !== props.mode &&
4468
- (type.chunks.push("\x3c!--&--\x3e"),
4469
- (type.lastPushedText = !1),
4470
- (newProps = task.keyPath),
4471
- (task.keyPath = keyPath),
4472
- renderNode(request, task, props.children, -1),
4473
- (task.keyPath = newProps),
4474
- type.chunks.push("\x3c!--/&--\x3e"),
4475
- (type.lastPushedText = !1));
4570
+ var segment$jscomp$0 = task.blockedSegment;
4571
+ if (null === segment$jscomp$0) {
4572
+ if ("hidden" !== props.mode) {
4573
+ var prevKeyPath$jscomp$2 = task.keyPath;
4574
+ task.keyPath = keyPath;
4575
+ renderNode(request, task, props.children, -1);
4576
+ task.keyPath = prevKeyPath$jscomp$2;
4577
+ }
4578
+ } else if ("hidden" !== props.mode) {
4579
+ segment$jscomp$0.chunks.push("\x3c!--&--\x3e");
4580
+ segment$jscomp$0.lastPushedText = !1;
4581
+ var prevKeyPath$45 = task.keyPath;
4582
+ task.keyPath = keyPath;
4583
+ renderNode(request, task, props.children, -1);
4584
+ task.keyPath = prevKeyPath$45;
4585
+ segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
4586
+ segment$jscomp$0.lastPushedText = !1;
4587
+ }
4476
4588
  return;
4477
4589
  case REACT_SUSPENSE_LIST_TYPE:
4478
4590
  a: {
4479
- type = props.children;
4480
- props = props.revealOrder;
4591
+ var children$jscomp$0 = props.children,
4592
+ revealOrder = props.revealOrder;
4481
4593
  if (
4482
- "forwards" === props ||
4483
- "backwards" === props ||
4484
- "unstable_legacy-backwards" === props
4594
+ "forwards" === revealOrder ||
4595
+ "backwards" === revealOrder ||
4596
+ "unstable_legacy-backwards" === revealOrder
4485
4597
  ) {
4486
- if (isArrayImpl(type)) {
4487
- renderSuspenseListRows(request, task, keyPath, type, props);
4598
+ if (isArrayImpl(children$jscomp$0)) {
4599
+ renderSuspenseListRows(
4600
+ request,
4601
+ task,
4602
+ keyPath,
4603
+ children$jscomp$0,
4604
+ revealOrder
4605
+ );
4488
4606
  break a;
4489
4607
  }
4490
- if ((newProps = getIteratorFn(type)))
4491
- if ((newProps = newProps.call(type))) {
4492
- defaultProps = newProps.next();
4493
- if (!defaultProps.done) {
4494
- do defaultProps = newProps.next();
4495
- while (!defaultProps.done);
4496
- renderSuspenseListRows(request, task, keyPath, type, props);
4608
+ var iteratorFn = getIteratorFn(children$jscomp$0);
4609
+ if (iteratorFn) {
4610
+ var iterator = iteratorFn.call(children$jscomp$0);
4611
+ if (iterator) {
4612
+ var step = iterator.next();
4613
+ if (!step.done) {
4614
+ do step = iterator.next();
4615
+ while (!step.done);
4616
+ renderSuspenseListRows(
4617
+ request,
4618
+ task,
4619
+ keyPath,
4620
+ children$jscomp$0,
4621
+ revealOrder
4622
+ );
4497
4623
  }
4498
4624
  break a;
4499
4625
  }
4626
+ }
4627
+ }
4628
+ if ("together" === revealOrder) {
4629
+ var prevKeyPath$39 = task.keyPath,
4630
+ prevRow = task.row,
4631
+ newRow = (task.row = createSuspenseListRow(null));
4632
+ newRow.boundaries = [];
4633
+ newRow.together = !0;
4634
+ task.keyPath = keyPath;
4635
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4636
+ 0 === --newRow.pendingTasks &&
4637
+ finishSuspenseListRow(request, newRow);
4638
+ task.keyPath = prevKeyPath$39;
4639
+ task.row = prevRow;
4640
+ null !== prevRow &&
4641
+ 0 < newRow.pendingTasks &&
4642
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
4643
+ } else {
4644
+ var prevKeyPath$jscomp$3 = task.keyPath;
4645
+ task.keyPath = keyPath;
4646
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4647
+ task.keyPath = prevKeyPath$jscomp$3;
4500
4648
  }
4501
- "together" === props
4502
- ? ((props = task.keyPath),
4503
- (newProps = task.row),
4504
- (defaultProps = task.row = createSuspenseListRow(null)),
4505
- (defaultProps.boundaries = []),
4506
- (defaultProps.together = !0),
4507
- (task.keyPath = keyPath),
4508
- renderNodeDestructive(request, task, type, -1),
4509
- 0 === --defaultProps.pendingTasks &&
4510
- finishSuspenseListRow(request, defaultProps),
4511
- (task.keyPath = props),
4512
- (task.row = newProps),
4513
- null !== newProps &&
4514
- 0 < defaultProps.pendingTasks &&
4515
- (newProps.pendingTasks++, (defaultProps.next = newProps)))
4516
- : ((props = task.keyPath),
4517
- (task.keyPath = keyPath),
4518
- renderNodeDestructive(request, task, type, -1),
4519
- (task.keyPath = props));
4520
4649
  }
4521
4650
  return;
4522
4651
  case REACT_VIEW_TRANSITION_TYPE:
4652
+ var prevContext$jscomp$0 = task.formatContext,
4653
+ prevKeyPath$jscomp$4 = task.keyPath;
4654
+ var resumableState$jscomp$0 = request.resumableState;
4655
+ if (null != props.name && "auto" !== props.name)
4656
+ var JSCompiler_inline_result$jscomp$2 = props.name;
4657
+ else {
4658
+ var treeId = getTreeId(task.treeContext);
4659
+ JSCompiler_inline_result$jscomp$2 = makeId(
4660
+ resumableState$jscomp$0,
4661
+ treeId,
4662
+ 0
4663
+ );
4664
+ }
4665
+ var autoName = JSCompiler_inline_result$jscomp$2,
4666
+ resumableState$jscomp$1 = request.resumableState,
4667
+ update = getViewTransitionClassName(props.default, props.update),
4668
+ enter = getViewTransitionClassName(props.default, props.enter),
4669
+ exit = getViewTransitionClassName(props.default, props.exit),
4670
+ share = getViewTransitionClassName(props.default, props.share),
4671
+ name = props.name;
4672
+ null == update && (update = "auto");
4673
+ null == enter && (enter = "auto");
4674
+ null == exit && (exit = "auto");
4675
+ if (null == name) {
4676
+ var parentViewTransition = prevContext$jscomp$0.viewTransition;
4677
+ null !== parentViewTransition
4678
+ ? ((name = parentViewTransition.name),
4679
+ (share = parentViewTransition.share))
4680
+ : ((name = "auto"), (share = "none"));
4681
+ } else
4682
+ null == share && (share = "auto"),
4683
+ prevContext$jscomp$0.tagScope & 4 &&
4684
+ (resumableState$jscomp$1.instructions |= 128);
4685
+ prevContext$jscomp$0.tagScope & 8
4686
+ ? (resumableState$jscomp$1.instructions |= 128)
4687
+ : (exit = "none");
4688
+ prevContext$jscomp$0.tagScope & 16
4689
+ ? (resumableState$jscomp$1.instructions |= 128)
4690
+ : (enter = "none");
4691
+ var viewTransition = {
4692
+ update: update,
4693
+ enter: enter,
4694
+ exit: exit,
4695
+ share: share,
4696
+ name: name,
4697
+ autoName: autoName,
4698
+ nameIdx: 0
4699
+ },
4700
+ subtreeScope = prevContext$jscomp$0.tagScope & -25;
4701
+ subtreeScope =
4702
+ "none" !== update ? subtreeScope | 32 : subtreeScope & -33;
4703
+ "none" !== enter && (subtreeScope |= 64);
4704
+ var JSCompiler_inline_result$jscomp$3 = createFormatContext(
4705
+ prevContext$jscomp$0.insertionMode,
4706
+ prevContext$jscomp$0.selectedValue,
4707
+ subtreeScope,
4708
+ viewTransition
4709
+ );
4710
+ task.formatContext = JSCompiler_inline_result$jscomp$3;
4711
+ task.keyPath = keyPath;
4712
+ if (null != props.name && "auto" !== props.name)
4713
+ renderNodeDestructive(request, task, props.children, -1);
4714
+ else {
4715
+ var prevTreeContext = task.treeContext;
4716
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
4717
+ renderNode(request, task, props.children, -1);
4718
+ task.treeContext = prevTreeContext;
4719
+ }
4720
+ task.formatContext = prevContext$jscomp$0;
4721
+ task.keyPath = prevKeyPath$jscomp$4;
4722
+ return;
4523
4723
  case REACT_SCOPE_TYPE:
4524
4724
  throw Error("ReactDOMServer does not yet support scope components.");
4525
4725
  case REACT_SUSPENSE_TYPE:
4526
4726
  a: if (null !== task.replay) {
4527
- type = task.keyPath;
4528
- newProps = task.formatContext;
4529
- defaultProps = task.row;
4727
+ var prevKeyPath$26 = task.keyPath,
4728
+ prevContext$27 = task.formatContext,
4729
+ prevRow$28 = task.row;
4530
4730
  task.keyPath = keyPath;
4531
4731
  task.formatContext = getSuspenseContentFormatContext(
4532
4732
  request.resumableState,
4533
- newProps
4733
+ prevContext$27
4534
4734
  );
4535
4735
  task.row = null;
4536
- keyPath = props.children;
4736
+ var content$29 = props.children;
4537
4737
  try {
4538
- renderNode(request, task, keyPath, -1);
4738
+ renderNode(request, task, content$29, -1);
4539
4739
  } finally {
4540
- (task.keyPath = type),
4541
- (task.formatContext = newProps),
4542
- (task.row = defaultProps);
4740
+ (task.keyPath = prevKeyPath$26),
4741
+ (task.formatContext = prevContext$27),
4742
+ (task.row = prevRow$28);
4543
4743
  }
4544
4744
  } else {
4545
- type = task.keyPath;
4546
- ref = task.formatContext;
4547
- var prevRow = task.row;
4548
- propName$43 = task.blockedBoundary;
4549
- propName = task.blockedPreamble;
4550
- var parentHoistableState = task.hoistableState,
4745
+ var prevKeyPath$jscomp$5 = task.keyPath,
4746
+ prevContext$jscomp$1 = task.formatContext,
4747
+ prevRow$jscomp$0 = task.row,
4748
+ parentBoundary = task.blockedBoundary,
4749
+ parentPreamble = task.blockedPreamble,
4750
+ parentHoistableState = task.hoistableState,
4551
4751
  parentSegment = task.blockedSegment,
4552
- fallback = props.fallback;
4553
- props = props.children;
4554
- var fallbackAbortSet = new Set();
4752
+ fallback = props.fallback,
4753
+ content = props.children,
4754
+ fallbackAbortSet = new Set();
4555
4755
  var newBoundary =
4556
4756
  2 > task.formatContext.insertionMode
4557
4757
  ? createSuspenseBoundary(
@@ -4590,20 +4790,30 @@ function renderElement(request, task, keyPath, type, props, ref) {
4590
4790
  );
4591
4791
  contentRootSegment.parentFlushed = !0;
4592
4792
  if (null !== request.trackedPostpones) {
4593
- newProps = task.componentStack;
4594
- defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4595
- initialState = [defaultProps[1], defaultProps[2], [], null];
4596
- request.trackedPostpones.workingMap.set(defaultProps, initialState);
4597
- newBoundary.trackedFallbackNode = initialState;
4793
+ var suspenseComponentStack = task.componentStack,
4794
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
4795
+ fallbackReplayNode = [
4796
+ fallbackKeyPath[1],
4797
+ fallbackKeyPath[2],
4798
+ [],
4799
+ null
4800
+ ];
4801
+ request.trackedPostpones.workingMap.set(
4802
+ fallbackKeyPath,
4803
+ fallbackReplayNode
4804
+ );
4805
+ newBoundary.trackedFallbackNode = fallbackReplayNode;
4598
4806
  task.blockedSegment = boundarySegment;
4599
4807
  task.blockedPreamble = newBoundary.fallbackPreamble;
4600
- task.keyPath = defaultProps;
4808
+ task.keyPath = fallbackKeyPath;
4601
4809
  task.formatContext = getSuspenseFallbackFormatContext(
4602
4810
  request.resumableState,
4603
- ref
4811
+ prevContext$jscomp$1
4604
4812
  );
4605
4813
  task.componentStack =
4606
- replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
4814
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
4815
+ suspenseComponentStack
4816
+ );
4607
4817
  boundarySegment.status = 6;
4608
4818
  try {
4609
4819
  renderNode(request, task, fallback, -1),
@@ -4614,7 +4824,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4614
4824
  boundarySegment.textEmbedded
4615
4825
  ),
4616
4826
  (boundarySegment.status = 1),
4617
- finishedSegment(request, propName$43, boundarySegment);
4827
+ finishedSegment(request, parentBoundary, boundarySegment);
4618
4828
  } catch (thrownValue) {
4619
4829
  throw (
4620
4830
  ((boundarySegment.status = 12 === request.status ? 3 : 4),
@@ -4622,14 +4832,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
4622
4832
  );
4623
4833
  } finally {
4624
4834
  (task.blockedSegment = parentSegment),
4625
- (task.blockedPreamble = propName),
4626
- (task.keyPath = type),
4627
- (task.formatContext = ref);
4835
+ (task.blockedPreamble = parentPreamble),
4836
+ (task.keyPath = prevKeyPath$jscomp$5),
4837
+ (task.formatContext = prevContext$jscomp$1);
4628
4838
  }
4629
- task = createRenderTask(
4839
+ var suspendedPrimaryTask = createRenderTask(
4630
4840
  request,
4631
4841
  null,
4632
- props,
4842
+ content,
4633
4843
  -1,
4634
4844
  newBoundary,
4635
4845
  contentRootSegment,
@@ -4644,10 +4854,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4644
4854
  task.context,
4645
4855
  task.treeContext,
4646
4856
  null,
4647
- newProps
4857
+ suspenseComponentStack
4648
4858
  );
4649
- pushComponentStack(task);
4650
- request.pingedTasks.push(task);
4859
+ pushComponentStack(suspendedPrimaryTask);
4860
+ request.pingedTasks.push(suspendedPrimaryTask);
4651
4861
  } else {
4652
4862
  task.blockedBoundary = newBoundary;
4653
4863
  task.blockedPreamble = newBoundary.contentPreamble;
@@ -4656,13 +4866,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
4656
4866
  task.keyPath = keyPath;
4657
4867
  task.formatContext = getSuspenseContentFormatContext(
4658
4868
  request.resumableState,
4659
- ref
4869
+ prevContext$jscomp$1
4660
4870
  );
4661
4871
  task.row = null;
4662
4872
  contentRootSegment.status = 6;
4663
4873
  try {
4664
4874
  if (
4665
- (renderNode(request, task, props, -1),
4875
+ (renderNode(request, task, content, -1),
4666
4876
  pushSegmentFinale(
4667
4877
  contentRootSegment.chunks,
4668
4878
  request.renderState,
@@ -4678,48 +4888,43 @@ function renderElement(request, task, keyPath, type, props, ref) {
4678
4888
  ((newBoundary.status = 1),
4679
4889
  !isEligibleForOutlining(request, newBoundary))
4680
4890
  ) {
4681
- null !== prevRow &&
4682
- 0 === --prevRow.pendingTasks &&
4683
- finishSuspenseListRow(request, prevRow);
4891
+ null !== prevRow$jscomp$0 &&
4892
+ 0 === --prevRow$jscomp$0.pendingTasks &&
4893
+ finishSuspenseListRow(request, prevRow$jscomp$0);
4684
4894
  0 === request.pendingRootTasks &&
4685
4895
  task.blockedPreamble &&
4686
4896
  preparePreamble(request);
4687
4897
  break a;
4688
4898
  }
4689
4899
  } else
4690
- null !== prevRow &&
4691
- prevRow.together &&
4692
- tryToResolveTogetherRow(request, prevRow);
4900
+ null !== prevRow$jscomp$0 &&
4901
+ prevRow$jscomp$0.together &&
4902
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
4693
4903
  } catch (thrownValue$30) {
4694
- (newBoundary.status = 4),
4695
- 12 === request.status
4696
- ? ((contentRootSegment.status = 3),
4697
- (newProps = request.fatalError))
4698
- : ((contentRootSegment.status = 4),
4699
- (newProps = thrownValue$30)),
4700
- (defaultProps = getThrownInfo(task.componentStack)),
4701
- (initialState = logRecoverableError(
4702
- request,
4703
- newProps,
4704
- defaultProps
4705
- )),
4706
- (newBoundary.errorDigest = initialState),
4707
- untrackBoundary(request, newBoundary);
4904
+ newBoundary.status = 4;
4905
+ if (12 === request.status) {
4906
+ contentRootSegment.status = 3;
4907
+ var error = request.fatalError;
4908
+ } else (contentRootSegment.status = 4), (error = thrownValue$30);
4909
+ var thrownInfo = getThrownInfo(task.componentStack);
4910
+ var errorDigest = logRecoverableError(request, error, thrownInfo);
4911
+ newBoundary.errorDigest = errorDigest;
4912
+ untrackBoundary(request, newBoundary);
4708
4913
  } finally {
4709
- (task.blockedBoundary = propName$43),
4710
- (task.blockedPreamble = propName),
4914
+ (task.blockedBoundary = parentBoundary),
4915
+ (task.blockedPreamble = parentPreamble),
4711
4916
  (task.hoistableState = parentHoistableState),
4712
4917
  (task.blockedSegment = parentSegment),
4713
- (task.keyPath = type),
4714
- (task.formatContext = ref),
4715
- (task.row = prevRow);
4918
+ (task.keyPath = prevKeyPath$jscomp$5),
4919
+ (task.formatContext = prevContext$jscomp$1),
4920
+ (task.row = prevRow$jscomp$0);
4716
4921
  }
4717
- task = createRenderTask(
4922
+ var suspendedFallbackTask = createRenderTask(
4718
4923
  request,
4719
4924
  null,
4720
4925
  fallback,
4721
4926
  -1,
4722
- propName$43,
4927
+ parentBoundary,
4723
4928
  boundarySegment,
4724
4929
  newBoundary.fallbackPreamble,
4725
4930
  newBoundary.fallbackState,
@@ -4736,8 +4941,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4736
4941
  task.componentStack
4737
4942
  )
4738
4943
  );
4739
- pushComponentStack(task);
4740
- request.pingedTasks.push(task);
4944
+ pushComponentStack(suspendedFallbackTask);
4945
+ request.pingedTasks.push(suspendedFallbackTask);
4741
4946
  }
4742
4947
  }
4743
4948
  return;
@@ -4745,24 +4950,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
4745
4950
  if ("object" === typeof type && null !== type)
4746
4951
  switch (type.$$typeof) {
4747
4952
  case REACT_FORWARD_REF_TYPE:
4748
- if ("ref" in props)
4749
- for (parentSegment in ((newProps = {}), props))
4750
- "ref" !== parentSegment &&
4751
- (newProps[parentSegment] = props[parentSegment]);
4752
- else newProps = props;
4753
- type = renderWithHooks(
4953
+ if ("ref" in props) {
4954
+ var propsWithoutRef = {};
4955
+ for (var key in props)
4956
+ "ref" !== key && (propsWithoutRef[key] = props[key]);
4957
+ } else propsWithoutRef = props;
4958
+ var children$jscomp$1 = renderWithHooks(
4754
4959
  request,
4755
4960
  task,
4756
4961
  keyPath,
4757
4962
  type.render,
4758
- newProps,
4963
+ propsWithoutRef,
4759
4964
  ref
4760
4965
  );
4761
4966
  finishFunctionComponent(
4762
4967
  request,
4763
4968
  task,
4764
4969
  keyPath,
4765
- type,
4970
+ children$jscomp$1,
4766
4971
  0 !== localIdCounter,
4767
4972
  actionStateCounter,
4768
4973
  actionStateMatchingIndex
@@ -4772,45 +4977,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
4772
4977
  renderElement(request, task, keyPath, type.type, props, ref);
4773
4978
  return;
4774
4979
  case REACT_CONTEXT_TYPE:
4775
- defaultProps = props.children;
4776
- newProps = task.keyPath;
4777
- props = props.value;
4778
- initialState = type._currentValue;
4779
- type._currentValue = props;
4780
- ref = currentActiveSnapshot;
4781
- currentActiveSnapshot = type = {
4782
- parent: ref,
4783
- depth: null === ref ? 0 : ref.depth + 1,
4784
- context: type,
4785
- parentValue: initialState,
4786
- value: props
4787
- };
4788
- task.context = type;
4980
+ var children$jscomp$2 = props.children,
4981
+ prevKeyPath$jscomp$6 = task.keyPath,
4982
+ nextValue = props.value;
4983
+ var prevValue = type._currentValue;
4984
+ type._currentValue = nextValue;
4985
+ var prevNode = currentActiveSnapshot,
4986
+ newNode = {
4987
+ parent: prevNode,
4988
+ depth: null === prevNode ? 0 : prevNode.depth + 1,
4989
+ context: type,
4990
+ parentValue: prevValue,
4991
+ value: nextValue
4992
+ };
4993
+ currentActiveSnapshot = newNode;
4994
+ task.context = newNode;
4789
4995
  task.keyPath = keyPath;
4790
- renderNodeDestructive(request, task, defaultProps, -1);
4791
- request = currentActiveSnapshot;
4792
- if (null === request)
4996
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
4997
+ var prevSnapshot = currentActiveSnapshot;
4998
+ if (null === prevSnapshot)
4793
4999
  throw Error(
4794
5000
  "Tried to pop a Context at the root of the app. This is a bug in React."
4795
5001
  );
4796
- request.context._currentValue = request.parentValue;
4797
- request = currentActiveSnapshot = request.parent;
4798
- task.context = request;
4799
- task.keyPath = newProps;
5002
+ prevSnapshot.context._currentValue = prevSnapshot.parentValue;
5003
+ var JSCompiler_inline_result$jscomp$4 = (currentActiveSnapshot =
5004
+ prevSnapshot.parent);
5005
+ task.context = JSCompiler_inline_result$jscomp$4;
5006
+ task.keyPath = prevKeyPath$jscomp$6;
4800
5007
  return;
4801
5008
  case REACT_CONSUMER_TYPE:
4802
- props = props.children;
4803
- type = props(type._context._currentValue);
4804
- props = task.keyPath;
5009
+ var render = props.children,
5010
+ newChildren = render(type._context._currentValue),
5011
+ prevKeyPath$jscomp$7 = task.keyPath;
4805
5012
  task.keyPath = keyPath;
4806
- renderNodeDestructive(request, task, type, -1);
4807
- task.keyPath = props;
5013
+ renderNodeDestructive(request, task, newChildren, -1);
5014
+ task.keyPath = prevKeyPath$jscomp$7;
4808
5015
  return;
4809
5016
  case REACT_LAZY_TYPE:
4810
- newProps = type._init;
4811
- type = newProps(type._payload);
5017
+ var init = type._init;
5018
+ var Component = init(type._payload);
4812
5019
  if (12 === request.status) throw null;
4813
- renderElement(request, task, keyPath, type, props, ref);
5020
+ renderElement(request, task, keyPath, Component, props, ref);
4814
5021
  return;
4815
5022
  }
4816
5023
  throw Error(
@@ -6227,7 +6434,8 @@ function flushCompletedBoundary(request, destination, boundary) {
6227
6434
  request = request.renderState;
6228
6435
  i = boundary.rootSegmentID;
6229
6436
  boundary = boundary.contentState;
6230
- var requiresStyleInsertion = request.stylesToHoist;
6437
+ var requiresStyleInsertion = request.stylesToHoist,
6438
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
6231
6439
  request.stylesToHoist = !1;
6232
6440
  writeChunk(destination, request.startInlineScript);
6233
6441
  writeChunk(destination, ">");
@@ -6244,6 +6452,13 @@ function flushCompletedBoundary(request, destination, boundary) {
6244
6452
  destination,
6245
6453
  '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6246
6454
  )),
6455
+ requiresViewTransitions &&
6456
+ 0 === (completedSegments.instructions & 256) &&
6457
+ ((completedSegments.instructions |= 256),
6458
+ writeChunk(
6459
+ destination,
6460
+ '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);'
6461
+ )),
6247
6462
  0 === (completedSegments.instructions & 8)
6248
6463
  ? ((completedSegments.instructions |= 8),
6249
6464
  writeChunk(
@@ -6257,6 +6472,13 @@ function flushCompletedBoundary(request, destination, boundary) {
6257
6472
  destination,
6258
6473
  '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6259
6474
  )),
6475
+ requiresViewTransitions &&
6476
+ 0 === (completedSegments.instructions & 256) &&
6477
+ ((completedSegments.instructions |= 256),
6478
+ writeChunk(
6479
+ destination,
6480
+ '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);'
6481
+ )),
6260
6482
  writeChunk(destination, '$RC("'));
6261
6483
  completedSegments = i.toString(16);
6262
6484
  writeChunk(destination, request.boundaryPrefix);
@@ -6644,15 +6866,15 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
6644
6866
  parentNode[2].push(node);
6645
6867
  }
6646
6868
  }
6647
- var isomorphicReactPackageVersion$jscomp$inline_821 = React.version;
6869
+ var isomorphicReactPackageVersion$jscomp$inline_820 = React.version;
6648
6870
  if (
6649
- "19.3.0-canary-c7862584-20251006" !==
6650
- isomorphicReactPackageVersion$jscomp$inline_821
6871
+ "19.3.0-canary-3025aa39-20251007" !==
6872
+ isomorphicReactPackageVersion$jscomp$inline_820
6651
6873
  )
6652
6874
  throw Error(
6653
6875
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
6654
- (isomorphicReactPackageVersion$jscomp$inline_821 +
6655
- "\n - react-dom: 19.3.0-canary-c7862584-20251006\nLearn more: https://react.dev/warnings/version-mismatch")
6876
+ (isomorphicReactPackageVersion$jscomp$inline_820 +
6877
+ "\n - react-dom: 19.3.0-canary-3025aa39-20251007\nLearn more: https://react.dev/warnings/version-mismatch")
6656
6878
  );
6657
6879
  exports.renderToReadableStream = function (children, options) {
6658
6880
  return new Promise(function (resolve, reject) {
@@ -6743,4 +6965,4 @@ exports.renderToReadableStream = function (children, options) {
6743
6965
  startWork(request);
6744
6966
  });
6745
6967
  };
6746
- exports.version = "19.3.0-canary-c7862584-20251006";
6968
+ exports.version = "19.3.0-canary-3025aa39-20251007";