react-markup 0.0.0-experimental-d85f86cf-20250514 → 0.0.0-experimental-4a45ba92-20250515

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.
@@ -1011,52 +1011,122 @@
1011
1011
  function createPreambleState() {
1012
1012
  return { htmlChunks: null, headChunks: null, bodyChunks: null };
1013
1013
  }
1014
- function createFormatContext(insertionMode, selectedValue, tagScope) {
1014
+ function createFormatContext(
1015
+ insertionMode,
1016
+ selectedValue,
1017
+ tagScope,
1018
+ viewTransition
1019
+ ) {
1015
1020
  return {
1016
1021
  insertionMode: insertionMode,
1017
1022
  selectedValue: selectedValue,
1018
- tagScope: tagScope
1023
+ tagScope: tagScope,
1024
+ viewTransition: viewTransition
1019
1025
  };
1020
1026
  }
1021
1027
  function getChildFormatContext(parentContext, type, props) {
1028
+ var subtreeScope = parentContext.tagScope & -25;
1022
1029
  switch (type) {
1023
1030
  case "noscript":
1024
- return createFormatContext(2, null, parentContext.tagScope | 1);
1031
+ return createFormatContext(2, null, subtreeScope | 1, null);
1025
1032
  case "select":
1026
1033
  return createFormatContext(
1027
1034
  2,
1028
1035
  null != props.value ? props.value : props.defaultValue,
1029
- parentContext.tagScope
1036
+ subtreeScope,
1037
+ null
1030
1038
  );
1031
1039
  case "svg":
1032
- return createFormatContext(4, null, parentContext.tagScope);
1040
+ return createFormatContext(4, null, subtreeScope, null);
1033
1041
  case "picture":
1034
- return createFormatContext(2, null, parentContext.tagScope | 2);
1042
+ return createFormatContext(2, null, subtreeScope | 2, null);
1035
1043
  case "math":
1036
- return createFormatContext(5, null, parentContext.tagScope);
1044
+ return createFormatContext(5, null, subtreeScope, null);
1037
1045
  case "foreignObject":
1038
- return createFormatContext(2, null, parentContext.tagScope);
1046
+ return createFormatContext(2, null, subtreeScope, null);
1039
1047
  case "table":
1040
- return createFormatContext(6, null, parentContext.tagScope);
1048
+ return createFormatContext(6, null, subtreeScope, null);
1041
1049
  case "thead":
1042
1050
  case "tbody":
1043
1051
  case "tfoot":
1044
- return createFormatContext(7, null, parentContext.tagScope);
1052
+ return createFormatContext(7, null, subtreeScope, null);
1045
1053
  case "colgroup":
1046
- return createFormatContext(9, null, parentContext.tagScope);
1054
+ return createFormatContext(9, null, subtreeScope, null);
1047
1055
  case "tr":
1048
- return createFormatContext(8, null, parentContext.tagScope);
1056
+ return createFormatContext(8, null, subtreeScope, null);
1049
1057
  case "head":
1050
1058
  if (2 > parentContext.insertionMode)
1051
- return createFormatContext(3, null, parentContext.tagScope);
1059
+ return createFormatContext(3, null, subtreeScope, null);
1052
1060
  break;
1053
1061
  case "html":
1054
1062
  if (0 === parentContext.insertionMode)
1055
- return createFormatContext(1, null, parentContext.tagScope);
1063
+ return createFormatContext(1, null, subtreeScope, null);
1056
1064
  }
1057
1065
  return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
1058
- ? createFormatContext(2, null, parentContext.tagScope)
1059
- : parentContext;
1066
+ ? createFormatContext(2, null, subtreeScope, null)
1067
+ : null !== parentContext.viewTransition ||
1068
+ parentContext.tagScope !== subtreeScope
1069
+ ? createFormatContext(
1070
+ parentContext.insertionMode,
1071
+ parentContext.selectedValue,
1072
+ subtreeScope,
1073
+ null
1074
+ )
1075
+ : parentContext;
1076
+ }
1077
+ function getSuspenseViewTransition(parentViewTransition) {
1078
+ return null === parentViewTransition
1079
+ ? null
1080
+ : {
1081
+ update: parentViewTransition.update,
1082
+ enter: null,
1083
+ exit: null,
1084
+ share: parentViewTransition.update,
1085
+ name: parentViewTransition.autoName,
1086
+ autoName: parentViewTransition.autoName,
1087
+ nameIdx: 0
1088
+ };
1089
+ }
1090
+ function getSuspenseFallbackFormatContext(parentContext) {
1091
+ return createFormatContext(
1092
+ parentContext.insertionMode,
1093
+ parentContext.selectedValue,
1094
+ parentContext.tagScope | 12,
1095
+ getSuspenseViewTransition(parentContext.viewTransition)
1096
+ );
1097
+ }
1098
+ function getSuspenseContentFormatContext(parentContext) {
1099
+ return createFormatContext(
1100
+ parentContext.insertionMode,
1101
+ parentContext.selectedValue,
1102
+ parentContext.tagScope | 16,
1103
+ getSuspenseViewTransition(parentContext.viewTransition)
1104
+ );
1105
+ }
1106
+ function makeId(resumableState, treeId, localId) {
1107
+ resumableState = "\u00ab" + resumableState.idPrefix + "R" + treeId;
1108
+ 0 < localId && (resumableState += "H" + localId.toString(32));
1109
+ return resumableState + "\u00bb";
1110
+ }
1111
+ function pushViewTransitionAttributes(target, formatContext) {
1112
+ formatContext = formatContext.viewTransition;
1113
+ null !== formatContext &&
1114
+ ("auto" !== formatContext.name &&
1115
+ (pushStringAttribute(
1116
+ target,
1117
+ "vt-name",
1118
+ 0 === formatContext.nameIdx
1119
+ ? formatContext.name
1120
+ : formatContext.name + "_" + formatContext.nameIdx
1121
+ ),
1122
+ formatContext.nameIdx++),
1123
+ pushStringAttribute(target, "vt-update", formatContext.update),
1124
+ null !== formatContext.enter &&
1125
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
1126
+ null !== formatContext.exit &&
1127
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
1128
+ null !== formatContext.share &&
1129
+ pushStringAttribute(target, "vt-share", formatContext.share));
1060
1130
  }
1061
1131
  function pushStyleAttribute(target, style) {
1062
1132
  if ("object" !== typeof style)
@@ -1642,7 +1712,7 @@
1642
1712
  checkHtmlStringCoercion(styleText);
1643
1713
  return ("" + styleText).replace(styleRegex, styleReplacer);
1644
1714
  }
1645
- function pushSelfClosing(target, props, tag) {
1715
+ function pushSelfClosing(target, props, tag, formatContext) {
1646
1716
  target.push(startChunkForTag(tag));
1647
1717
  for (var propKey in props)
1648
1718
  if (hasOwnProperty.call(props, propKey)) {
@@ -1659,6 +1729,7 @@
1659
1729
  pushAttribute(target, propKey, propValue);
1660
1730
  }
1661
1731
  }
1732
+ pushViewTransitionAttributes(target, formatContext);
1662
1733
  target.push(endOfStartTagSelfClosing);
1663
1734
  return null;
1664
1735
  }
@@ -1736,7 +1807,7 @@
1736
1807
  target.push(endChunkForTag("script"));
1737
1808
  return null;
1738
1809
  }
1739
- function pushStartSingletonElement(target, props, tag) {
1810
+ function pushStartSingletonElement(target, props, tag, formatContext) {
1740
1811
  target.push(startChunkForTag(tag));
1741
1812
  var innerHTML = (tag = null),
1742
1813
  propKey;
@@ -1755,11 +1826,12 @@
1755
1826
  pushAttribute(target, propKey, propValue);
1756
1827
  }
1757
1828
  }
1829
+ pushViewTransitionAttributes(target, formatContext);
1758
1830
  target.push(endOfStartTag);
1759
1831
  pushInnerHTML(target, innerHTML, tag);
1760
1832
  return tag;
1761
1833
  }
1762
- function pushStartGenericElement(target, props, tag) {
1834
+ function pushStartGenericElement(target, props, tag, formatContext) {
1763
1835
  target.push(startChunkForTag(tag));
1764
1836
  var innerHTML = (tag = null),
1765
1837
  propKey;
@@ -1778,6 +1850,7 @@
1778
1850
  pushAttribute(target, propKey, propValue);
1779
1851
  }
1780
1852
  }
1853
+ pushViewTransitionAttributes(target, formatContext);
1781
1854
  target.push(endOfStartTag);
1782
1855
  pushInnerHTML(target, innerHTML, tag);
1783
1856
  return "string" === typeof tag
@@ -1802,8 +1875,7 @@
1802
1875
  preambleState,
1803
1876
  hoistableState,
1804
1877
  formatContext,
1805
- textEmbedded,
1806
- isFallback
1878
+ textEmbedded
1807
1879
  ) {
1808
1880
  validateProperties$2(type, props);
1809
1881
  ("input" !== type && "textarea" !== type && "select" !== type) ||
@@ -1884,6 +1956,7 @@
1884
1956
  pushAttribute(target$jscomp$0, propKey, propValue);
1885
1957
  }
1886
1958
  }
1959
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1887
1960
  target$jscomp$0.push(endOfStartTag);
1888
1961
  pushInnerHTML(target$jscomp$0, innerHTML, children);
1889
1962
  if ("string" === typeof children) {
@@ -1932,6 +2005,7 @@
1932
2005
  );
1933
2006
  }
1934
2007
  }
2008
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1935
2009
  target$jscomp$0.push(endOfStartTag);
1936
2010
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
1937
2011
  return children$jscomp$0;
@@ -2045,6 +2119,7 @@
2045
2119
  null === value$jscomp$0 &&
2046
2120
  null !== defaultValue &&
2047
2121
  (value$jscomp$0 = defaultValue);
2122
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2048
2123
  target$jscomp$0.push(endOfStartTag);
2049
2124
  if (null != children$jscomp$2) {
2050
2125
  console.error(
@@ -2172,6 +2247,7 @@
2172
2247
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
2173
2248
  : null !== defaultValue$jscomp$0 &&
2174
2249
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
2250
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2175
2251
  target$jscomp$0.push(endOfStartTagSelfClosing);
2176
2252
  null != formData &&
2177
2253
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -2238,6 +2314,7 @@
2238
2314
  formTarget$jscomp$0,
2239
2315
  name$jscomp$0
2240
2316
  );
2317
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2241
2318
  target$jscomp$0.push(endOfStartTag);
2242
2319
  null != formData$jscomp$0 &&
2243
2320
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -2335,6 +2412,7 @@
2335
2412
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
2336
2413
  null != formTarget$jscomp$1 &&
2337
2414
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
2415
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2338
2416
  target$jscomp$0.push(endOfStartTag);
2339
2417
  null !== formActionName &&
2340
2418
  (target$jscomp$0.push('<input type="hidden"'),
@@ -2371,6 +2449,7 @@
2371
2449
  );
2372
2450
  }
2373
2451
  }
2452
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2374
2453
  target$jscomp$0.push(endOfStartTag);
2375
2454
  return null;
2376
2455
  case "object":
@@ -2416,6 +2495,7 @@
2416
2495
  );
2417
2496
  }
2418
2497
  }
2498
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2419
2499
  target$jscomp$0.push(endOfStartTag);
2420
2500
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
2421
2501
  if ("string" === typeof children$jscomp$5) {
@@ -2424,8 +2504,8 @@
2424
2504
  } else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
2425
2505
  return JSCompiler_inline_result$jscomp$3;
2426
2506
  case "title":
2427
- var insertionMode = formatContext.insertionMode,
2428
- noscriptTagInScope = !!(formatContext.tagScope & 1);
2507
+ var noscriptTagInScope = formatContext.tagScope & 1,
2508
+ isFallback = formatContext.tagScope & 4;
2429
2509
  if (hasOwnProperty.call(props, "children")) {
2430
2510
  var children$jscomp$6 = props.children,
2431
2511
  child = Array.isArray(children$jscomp$6)
@@ -2454,7 +2534,7 @@
2454
2534
  ));
2455
2535
  }
2456
2536
  if (
2457
- 4 === insertionMode ||
2537
+ 4 === formatContext.insertionMode ||
2458
2538
  noscriptTagInScope ||
2459
2539
  null != props.itemProp
2460
2540
  )
@@ -2469,12 +2549,14 @@
2469
2549
  (JSCompiler_inline_result$jscomp$4 = void 0));
2470
2550
  return JSCompiler_inline_result$jscomp$4;
2471
2551
  case "link":
2472
- var rel = props.rel,
2552
+ var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
2553
+ isFallback$jscomp$0 = formatContext.tagScope & 4,
2554
+ rel = props.rel,
2473
2555
  href = props.href,
2474
2556
  precedence = props.precedence;
2475
2557
  if (
2476
2558
  4 === formatContext.insertionMode ||
2477
- formatContext.tagScope & 1 ||
2559
+ noscriptTagInScope$jscomp$0 ||
2478
2560
  null != props.itemProp ||
2479
2561
  "string" !== typeof rel ||
2480
2562
  "string" !== typeof href ||
@@ -2575,12 +2657,13 @@
2575
2657
  props
2576
2658
  ))
2577
2659
  : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
2578
- (JSCompiler_inline_result$jscomp$5 = isFallback
2660
+ (JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
2579
2661
  ? null
2580
2662
  : pushLinkImpl(renderState.hoistableChunks, props)));
2581
2663
  return JSCompiler_inline_result$jscomp$5;
2582
2664
  case "script":
2583
- var asyncProp = props.async;
2665
+ var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
2666
+ asyncProp = props.async;
2584
2667
  if (
2585
2668
  "string" !== typeof props.src ||
2586
2669
  !props.src ||
@@ -2590,7 +2673,7 @@
2590
2673
  props.onLoad ||
2591
2674
  props.onError ||
2592
2675
  4 === formatContext.insertionMode ||
2593
- formatContext.tagScope & 1 ||
2676
+ noscriptTagInScope$jscomp$1 ||
2594
2677
  null != props.itemProp
2595
2678
  )
2596
2679
  var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
@@ -2628,8 +2711,7 @@
2628
2711
  }
2629
2712
  return JSCompiler_inline_result$jscomp$6;
2630
2713
  case "style":
2631
- var insertionMode$jscomp$0 = formatContext.insertionMode,
2632
- noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
2714
+ var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
2633
2715
  if (hasOwnProperty.call(props, "children")) {
2634
2716
  var children$jscomp$7 = props.children,
2635
2717
  child$jscomp$0 = Array.isArray(children$jscomp$7)
@@ -2652,8 +2734,8 @@
2652
2734
  var precedence$jscomp$0 = props.precedence,
2653
2735
  href$jscomp$0 = props.href;
2654
2736
  if (
2655
- 4 === insertionMode$jscomp$0 ||
2656
- noscriptTagInScope$jscomp$0 ||
2737
+ 4 === formatContext.insertionMode ||
2738
+ noscriptTagInScope$jscomp$2 ||
2657
2739
  null != props.itemProp ||
2658
2740
  "string" !== typeof precedence$jscomp$0 ||
2659
2741
  "string" !== typeof href$jscomp$0 ||
@@ -2769,28 +2851,42 @@
2769
2851
  }
2770
2852
  return JSCompiler_inline_result$jscomp$7;
2771
2853
  case "meta":
2854
+ var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
2855
+ isFallback$jscomp$1 = formatContext.tagScope & 4;
2772
2856
  if (
2773
2857
  4 === formatContext.insertionMode ||
2774
- formatContext.tagScope & 1 ||
2858
+ noscriptTagInScope$jscomp$3 ||
2775
2859
  null != props.itemProp
2776
2860
  )
2777
2861
  var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
2778
2862
  target$jscomp$0,
2779
2863
  props,
2780
- "meta"
2864
+ "meta",
2865
+ formatContext
2781
2866
  );
2782
2867
  else
2783
2868
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
2784
- (JSCompiler_inline_result$jscomp$8 = isFallback
2869
+ (JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
2785
2870
  ? null
2786
2871
  : "string" === typeof props.charSet
2787
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
2872
+ ? pushSelfClosing(
2873
+ renderState.charsetChunks,
2874
+ props,
2875
+ "meta",
2876
+ formatContext
2877
+ )
2788
2878
  : "viewport" === props.name
2789
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
2879
+ ? pushSelfClosing(
2880
+ renderState.viewportChunks,
2881
+ props,
2882
+ "meta",
2883
+ formatContext
2884
+ )
2790
2885
  : pushSelfClosing(
2791
2886
  renderState.hoistableChunks,
2792
2887
  props,
2793
- "meta"
2888
+ "meta",
2889
+ formatContext
2794
2890
  ));
2795
2891
  return JSCompiler_inline_result$jscomp$8;
2796
2892
  case "listing":
@@ -2818,6 +2914,7 @@
2818
2914
  );
2819
2915
  }
2820
2916
  }
2917
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2821
2918
  target$jscomp$0.push(endOfStartTag);
2822
2919
  if (null != innerHTML$jscomp$7) {
2823
2920
  if (null != children$jscomp$10)
@@ -2844,17 +2941,18 @@
2844
2941
  target$jscomp$0.push(leadingNewline);
2845
2942
  return children$jscomp$10;
2846
2943
  case "img":
2847
- var src = props.src,
2944
+ var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
2945
+ src = props.src,
2848
2946
  srcSet = props.srcSet;
2849
2947
  if (
2850
2948
  !(
2851
2949
  "lazy" === props.loading ||
2852
2950
  (!src && !srcSet) ||
2853
2951
  ("string" !== typeof src && null != src) ||
2854
- ("string" !== typeof srcSet && null != srcSet)
2952
+ ("string" !== typeof srcSet && null != srcSet) ||
2953
+ "low" === props.fetchPriority ||
2954
+ pictureOrNoScriptTagInScope
2855
2955
  ) &&
2856
- "low" !== props.fetchPriority &&
2857
- !1 === !!(formatContext.tagScope & 3) &&
2858
2956
  ("string" !== typeof src ||
2859
2957
  ":" !== src[4] ||
2860
2958
  ("d" !== src[0] && "D" !== src[0]) ||
@@ -2932,7 +3030,7 @@
2932
3030
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
2933
3031
  }
2934
3032
  }
2935
- return pushSelfClosing(target$jscomp$0, props, "img");
3033
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
2936
3034
  case "base":
2937
3035
  case "area":
2938
3036
  case "br":
@@ -2944,7 +3042,7 @@
2944
3042
  case "source":
2945
3043
  case "track":
2946
3044
  case "wbr":
2947
- return pushSelfClosing(target$jscomp$0, props, type);
3045
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
2948
3046
  case "annotation-xml":
2949
3047
  case "color-profile":
2950
3048
  case "font-face":
@@ -2964,13 +3062,15 @@
2964
3062
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
2965
3063
  preamble.headChunks,
2966
3064
  props,
2967
- "head"
3065
+ "head",
3066
+ formatContext
2968
3067
  );
2969
3068
  } else
2970
3069
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2971
3070
  target$jscomp$0,
2972
3071
  props,
2973
- "head"
3072
+ "head",
3073
+ formatContext
2974
3074
  );
2975
3075
  return JSCompiler_inline_result$jscomp$9;
2976
3076
  case "body":
@@ -2983,13 +3083,15 @@
2983
3083
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
2984
3084
  preamble$jscomp$0.bodyChunks,
2985
3085
  props,
2986
- "body"
3086
+ "body",
3087
+ formatContext
2987
3088
  );
2988
3089
  } else
2989
3090
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
2990
3091
  target$jscomp$0,
2991
3092
  props,
2992
- "body"
3093
+ "body",
3094
+ formatContext
2993
3095
  );
2994
3096
  return JSCompiler_inline_result$jscomp$10;
2995
3097
  case "html":
@@ -3002,13 +3104,15 @@
3002
3104
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
3003
3105
  preamble$jscomp$1.htmlChunks,
3004
3106
  props,
3005
- "html"
3107
+ "html",
3108
+ formatContext
3006
3109
  );
3007
3110
  } else
3008
3111
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
3009
3112
  target$jscomp$0,
3010
3113
  props,
3011
- "html"
3114
+ "html",
3115
+ formatContext
3012
3116
  );
3013
3117
  return JSCompiler_inline_result$jscomp$11;
3014
3118
  default:
@@ -3060,6 +3164,7 @@
3060
3164
  }
3061
3165
  }
3062
3166
  }
3167
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
3063
3168
  target$jscomp$0.push(endOfStartTag);
3064
3169
  pushInnerHTML(
3065
3170
  target$jscomp$0,
@@ -3069,7 +3174,12 @@
3069
3174
  return children$jscomp$11;
3070
3175
  }
3071
3176
  }
3072
- return pushStartGenericElement(target$jscomp$0, props, type);
3177
+ return pushStartGenericElement(
3178
+ target$jscomp$0,
3179
+ props,
3180
+ type,
3181
+ formatContext
3182
+ );
3073
3183
  }
3074
3184
  function endChunkForTag(tag) {
3075
3185
  var chunk = endTagCache.get(tag);
@@ -3810,6 +3920,13 @@
3810
3920
  ),
3811
3921
  (didWarnAboutNoopUpdateForComponent[warningKey] = !0));
3812
3922
  }
3923
+ function getTreeId(context) {
3924
+ var overflow = context.overflow;
3925
+ context = context.id;
3926
+ return (
3927
+ (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow
3928
+ );
3929
+ }
3813
3930
  function pushTreeContext(baseContext, totalChildren, index) {
3814
3931
  var baseIdWithLeadingBit = baseContext.id;
3815
3932
  baseContext = baseContext.overflow;
@@ -4491,7 +4608,6 @@
4491
4608
  null,
4492
4609
  emptyTreeContext,
4493
4610
  null,
4494
- !1,
4495
4611
  emptyContextObject,
4496
4612
  null
4497
4613
  );
@@ -4546,7 +4662,6 @@
4546
4662
  context,
4547
4663
  treeContext,
4548
4664
  componentStack,
4549
- isFallback,
4550
4665
  legacyContext,
4551
4666
  debugTask
4552
4667
  ) {
@@ -4571,8 +4686,7 @@
4571
4686
  context: context,
4572
4687
  treeContext: treeContext,
4573
4688
  componentStack: componentStack,
4574
- thenableState: thenableState,
4575
- isFallback: isFallback
4689
+ thenableState: thenableState
4576
4690
  };
4577
4691
  task.debugTask = debugTask;
4578
4692
  abortSet.add(task);
@@ -4592,7 +4706,6 @@
4592
4706
  context,
4593
4707
  treeContext,
4594
4708
  componentStack,
4595
- isFallback,
4596
4709
  legacyContext,
4597
4710
  debugTask
4598
4711
  ) {
@@ -4618,8 +4731,7 @@
4618
4731
  context: context,
4619
4732
  treeContext: treeContext,
4620
4733
  componentStack: componentStack,
4621
- thenableState: thenableState,
4622
- isFallback: isFallback
4734
+ thenableState: thenableState
4623
4735
  };
4624
4736
  task.debugTask = debugTask;
4625
4737
  abortSet.add(task);
@@ -5344,7 +5456,6 @@
5344
5456
  hoistableState = task.hoistableState,
5345
5457
  formatContext = task.formatContext,
5346
5458
  textEmbedded = segment.lastPushedText,
5347
- isFallback = task.isFallback,
5348
5459
  propKey;
5349
5460
  for (propKey in props)
5350
5461
  if (hasOwnProperty.call(props, propKey)) {
@@ -5369,17 +5480,16 @@
5369
5480
  preambleState,
5370
5481
  hoistableState,
5371
5482
  formatContext,
5372
- textEmbedded,
5373
- isFallback
5483
+ textEmbedded
5374
5484
  );
5375
5485
  segment.lastPushedText = !1;
5376
- var _prevContext = task.formatContext,
5486
+ var _prevContext2 = task.formatContext,
5377
5487
  _prevKeyPath2 = task.keyPath;
5378
5488
  task.keyPath = keyPath;
5379
5489
  if (
5380
5490
  3 ===
5381
5491
  (task.formatContext = getChildFormatContext(
5382
- _prevContext,
5492
+ _prevContext2,
5383
5493
  type,
5384
5494
  props
5385
5495
  )).insertionMode
@@ -5408,14 +5518,13 @@
5408
5518
  task.context,
5409
5519
  task.treeContext,
5410
5520
  task.componentStack,
5411
- task.isFallback,
5412
5521
  emptyContextObject,
5413
5522
  task.debugTask
5414
5523
  );
5415
5524
  pushComponentStack(preambleTask);
5416
5525
  request.pingedTasks.push(preambleTask);
5417
5526
  } else renderNode(request, task, _children, -1);
5418
- task.formatContext = _prevContext;
5527
+ task.formatContext = _prevContext2;
5419
5528
  task.keyPath = _prevKeyPath2;
5420
5529
  a: {
5421
5530
  var target$jscomp$0 = segment.chunks,
@@ -5441,19 +5550,19 @@
5441
5550
  case "wbr":
5442
5551
  break a;
5443
5552
  case "body":
5444
- if (1 >= _prevContext.insertionMode) {
5553
+ if (1 >= _prevContext2.insertionMode) {
5445
5554
  resumableState$jscomp$0.hasBody = !0;
5446
5555
  break a;
5447
5556
  }
5448
5557
  break;
5449
5558
  case "html":
5450
- if (0 === _prevContext.insertionMode) {
5559
+ if (0 === _prevContext2.insertionMode) {
5451
5560
  resumableState$jscomp$0.hasHtml = !0;
5452
5561
  break a;
5453
5562
  }
5454
5563
  break;
5455
5564
  case "head":
5456
- if (1 >= _prevContext.insertionMode) break a;
5565
+ if (1 >= _prevContext2.insertionMode) break a;
5457
5566
  }
5458
5567
  target$jscomp$0.push(endChunkForTag(type));
5459
5568
  }
@@ -5495,9 +5604,24 @@
5495
5604
  task.keyPath = _prevKeyPath4;
5496
5605
  return;
5497
5606
  case REACT_VIEW_TRANSITION_TYPE:
5498
- var prevKeyPath$jscomp$3 = task.keyPath;
5607
+ var prevContext$jscomp$0 = task.formatContext,
5608
+ prevKeyPath$jscomp$3 = task.keyPath;
5609
+ var resumableState$jscomp$1 = request.resumableState;
5610
+ if (null == props.name || "auto" === props.name) {
5611
+ var treeId = getTreeId(task.treeContext);
5612
+ makeId(resumableState$jscomp$1, treeId, 0);
5613
+ }
5614
+ task.formatContext = prevContext$jscomp$0;
5499
5615
  task.keyPath = keyPath;
5500
- renderNodeDestructive(request, task, props.children, -1);
5616
+ if (null != props.name && "auto" !== props.name)
5617
+ renderNodeDestructive(request, task, props.children, -1);
5618
+ else {
5619
+ var prevTreeContext = task.treeContext;
5620
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
5621
+ renderNode(request, task, props.children, -1);
5622
+ task.treeContext = prevTreeContext;
5623
+ }
5624
+ task.formatContext = prevContext$jscomp$0;
5501
5625
  task.keyPath = prevKeyPath$jscomp$3;
5502
5626
  return;
5503
5627
  case REACT_SCOPE_TYPE:
@@ -5506,16 +5630,21 @@
5506
5630
  );
5507
5631
  case REACT_SUSPENSE_TYPE:
5508
5632
  a: if (null !== task.replay) {
5509
- var _prevKeyPath = task.keyPath;
5633
+ var _prevKeyPath = task.keyPath,
5634
+ _prevContext = task.formatContext;
5510
5635
  task.keyPath = keyPath;
5636
+ task.formatContext =
5637
+ getSuspenseContentFormatContext(_prevContext);
5511
5638
  var _content = props.children;
5512
5639
  try {
5513
5640
  renderNode(request, task, _content, -1);
5514
5641
  } finally {
5515
- task.keyPath = _prevKeyPath;
5642
+ (task.keyPath = _prevKeyPath),
5643
+ (task.formatContext = _prevContext);
5516
5644
  }
5517
5645
  } else {
5518
5646
  var prevKeyPath$jscomp$4 = task.keyPath,
5647
+ prevContext$jscomp$1 = task.formatContext,
5519
5648
  parentBoundary = task.blockedBoundary,
5520
5649
  parentPreamble = task.blockedPreamble,
5521
5650
  parentHoistableState = task.hoistableState,
@@ -5578,6 +5707,8 @@
5578
5707
  task.blockedSegment = boundarySegment;
5579
5708
  task.blockedPreamble = newBoundary.fallbackPreamble;
5580
5709
  task.keyPath = fallbackKeyPath;
5710
+ task.formatContext =
5711
+ getSuspenseFallbackFormatContext(prevContext$jscomp$1);
5581
5712
  boundarySegment.status = 6;
5582
5713
  try {
5583
5714
  renderNode(request, task, fallback, -1),
@@ -5590,7 +5721,8 @@
5590
5721
  } finally {
5591
5722
  (task.blockedSegment = parentSegment),
5592
5723
  (task.blockedPreamble = parentPreamble),
5593
- (task.keyPath = prevKeyPath$jscomp$4);
5724
+ (task.keyPath = prevKeyPath$jscomp$4),
5725
+ (task.formatContext = prevContext$jscomp$1);
5594
5726
  }
5595
5727
  var suspendedPrimaryTask = createRenderTask(
5596
5728
  request,
@@ -5603,11 +5735,10 @@
5603
5735
  newBoundary.contentState,
5604
5736
  task.abortSet,
5605
5737
  keyPath,
5606
- task.formatContext,
5738
+ getSuspenseContentFormatContext(task.formatContext),
5607
5739
  task.context,
5608
5740
  task.treeContext,
5609
5741
  task.componentStack,
5610
- task.isFallback,
5611
5742
  emptyContextObject,
5612
5743
  task.debugTask
5613
5744
  );
@@ -5619,6 +5750,8 @@
5619
5750
  task.hoistableState = newBoundary.contentState;
5620
5751
  task.blockedSegment = contentRootSegment;
5621
5752
  task.keyPath = keyPath;
5753
+ task.formatContext =
5754
+ getSuspenseContentFormatContext(prevContext$jscomp$1);
5622
5755
  contentRootSegment.status = 6;
5623
5756
  try {
5624
5757
  if (
@@ -5674,7 +5807,8 @@
5674
5807
  (task.blockedPreamble = parentPreamble),
5675
5808
  (task.hoistableState = parentHoistableState),
5676
5809
  (task.blockedSegment = parentSegment),
5677
- (task.keyPath = prevKeyPath$jscomp$4);
5810
+ (task.keyPath = prevKeyPath$jscomp$4),
5811
+ (task.formatContext = prevContext$jscomp$1);
5678
5812
  }
5679
5813
  var suspendedFallbackTask = createRenderTask(
5680
5814
  request,
@@ -5687,11 +5821,10 @@
5687
5821
  newBoundary.fallbackState,
5688
5822
  fallbackAbortSet,
5689
5823
  [keyPath[0], "Suspense Fallback", keyPath[2]],
5690
- task.formatContext,
5824
+ getSuspenseFallbackFormatContext(task.formatContext),
5691
5825
  task.context,
5692
5826
  task.treeContext,
5693
5827
  task.componentStack,
5694
- !0,
5695
5828
  emptyContextObject,
5696
5829
  task.debugTask
5697
5830
  );
@@ -5871,9 +6004,9 @@
5871
6004
  ">. The tree doesn't match so React will fallback to client rendering."
5872
6005
  );
5873
6006
  var childNodes = node[2];
5874
- node = node[3];
5875
- name = task.node;
5876
- task.replay = { nodes: childNodes, slots: node, pendingTasks: 1 };
6007
+ name = node[3];
6008
+ keyOrIndex = task.node;
6009
+ task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
5877
6010
  try {
5878
6011
  renderElement(request, task, keyPath, type, props, ref);
5879
6012
  if (
@@ -5890,7 +6023,7 @@
5890
6023
  null !== x &&
5891
6024
  (x === SuspenseException || "function" === typeof x.then)
5892
6025
  )
5893
- throw (task.node === name && (task.replay = replay), x);
6026
+ throw (task.node === keyOrIndex && (task.replay = replay), x);
5894
6027
  task.replay.pendingTasks--;
5895
6028
  props = getThrownInfo(task.componentStack);
5896
6029
  erroredReplay(
@@ -5899,7 +6032,7 @@
5899
6032
  x,
5900
6033
  props,
5901
6034
  childNodes,
5902
- node,
6035
+ name,
5903
6036
  task.debugTask
5904
6037
  );
5905
6038
  }
@@ -5919,6 +6052,7 @@
5919
6052
  keyOrIndex = null === node[4] ? [] : node[4][2];
5920
6053
  node = null === node[4] ? null : node[4][3];
5921
6054
  var prevKeyPath = task.keyPath,
6055
+ prevContext = task.formatContext,
5922
6056
  previousReplaySet = task.replay,
5923
6057
  parentBoundary = task.blockedBoundary,
5924
6058
  parentHoistableState = task.hoistableState,
@@ -5944,6 +6078,7 @@
5944
6078
  task.blockedBoundary = props;
5945
6079
  task.hoistableState = props.contentState;
5946
6080
  task.keyPath = keyPath;
6081
+ task.formatContext = getSuspenseContentFormatContext(prevContext);
5947
6082
  task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
5948
6083
  try {
5949
6084
  renderNode(request, task, content, -1);
@@ -5986,7 +6121,8 @@
5986
6121
  (task.blockedBoundary = parentBoundary),
5987
6122
  (task.hoistableState = parentHoistableState),
5988
6123
  (task.replay = previousReplaySet),
5989
- (task.keyPath = prevKeyPath);
6124
+ (task.keyPath = prevKeyPath),
6125
+ (task.formatContext = prevContext);
5990
6126
  }
5991
6127
  props = createReplayTask(
5992
6128
  request,
@@ -5998,11 +6134,10 @@
5998
6134
  props.fallbackState,
5999
6135
  fallbackAbortSet,
6000
6136
  [keyPath[0], "Suspense Fallback", keyPath[2]],
6001
- task.formatContext,
6137
+ getSuspenseFallbackFormatContext(task.formatContext),
6002
6138
  task.context,
6003
6139
  task.treeContext,
6004
6140
  task.componentStack,
6005
- !0,
6006
6141
  emptyContextObject,
6007
6142
  task.debugTask
6008
6143
  );
@@ -6508,7 +6643,6 @@
6508
6643
  task.context,
6509
6644
  task.treeContext,
6510
6645
  task.componentStack,
6511
- task.isFallback,
6512
6646
  emptyContextObject,
6513
6647
  task.debugTask
6514
6648
  );
@@ -6540,7 +6674,6 @@
6540
6674
  task.context,
6541
6675
  task.treeContext,
6542
6676
  task.componentStack,
6543
- task.isFallback,
6544
6677
  emptyContextObject,
6545
6678
  task.debugTask
6546
6679
  );
@@ -8882,20 +9015,14 @@
8882
9015
  useTransition: clientHookNotSupported,
8883
9016
  useSyncExternalStore: clientHookNotSupported,
8884
9017
  useId: function () {
8885
- var treeId = currentlyRenderingTask.treeContext;
8886
- var overflow = treeId.overflow;
8887
- treeId = treeId.id;
8888
- treeId =
8889
- (treeId & ~(1 << (32 - clz32(treeId) - 1))).toString(32) + overflow;
8890
- var resumableState = currentResumableState;
9018
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
9019
+ resumableState = currentResumableState;
8891
9020
  if (null === resumableState)
8892
9021
  throw Error(
8893
9022
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
8894
9023
  );
8895
- overflow = localIdCounter++;
8896
- treeId = "\u00ab" + resumableState.idPrefix + "R" + treeId;
8897
- 0 < overflow && (treeId += "H" + overflow.toString(32));
8898
- return treeId + "\u00bb";
9024
+ var localId = localIdCounter++;
9025
+ return makeId(resumableState, treeId, localId);
8899
9026
  },
8900
9027
  useHostTransitionStatus: function () {
8901
9028
  resolveCurrentlyRenderingComponent();
@@ -9008,7 +9135,7 @@
9008
9135
  void 0,
9009
9136
  void 0
9010
9137
  ),
9011
- createFormatContext(0, null, 0),
9138
+ createFormatContext(0, null, 0, null),
9012
9139
  Infinity,
9013
9140
  function (error, errorInfo) {
9014
9141
  reject(error);
@@ -9045,5 +9172,5 @@
9045
9172
  });
9046
9173
  });
9047
9174
  };
9048
- exports.version = "19.2.0-experimental-d85f86cf-20250514";
9175
+ exports.version = "19.2.0-experimental-4a45ba92-20250515";
9049
9176
  })();