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.
@@ -677,7 +677,8 @@ function getChildFormatContext(parentContext, type, props) {
677
677
  }
678
678
  return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
679
679
  ? createFormatContext(2, null, subtreeScope, null)
680
- : parentContext.tagScope !== subtreeScope
680
+ : null !== parentContext.viewTransition ||
681
+ parentContext.tagScope !== subtreeScope
681
682
  ? createFormatContext(
682
683
  parentContext.insertionMode,
683
684
  parentContext.selectedValue,
@@ -721,6 +722,11 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
721
722
  resumableState
722
723
  );
723
724
  }
725
+ function makeId(resumableState, treeId, localId) {
726
+ resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
727
+ 0 < localId && (resumableState += "H" + localId.toString(32));
728
+ return resumableState + "_";
729
+ }
724
730
  var textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e");
725
731
  function pushTextInstance(target, text, renderState, textEmbedded) {
726
732
  if ("" === text) return textEmbedded;
@@ -728,6 +734,26 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
728
734
  target.push(stringToChunk(escapeTextForBrowser(text)));
729
735
  return !0;
730
736
  }
737
+ function pushViewTransitionAttributes(target, formatContext) {
738
+ formatContext = formatContext.viewTransition;
739
+ null !== formatContext &&
740
+ ("auto" !== formatContext.name &&
741
+ (pushStringAttribute(
742
+ target,
743
+ "vt-name",
744
+ 0 === formatContext.nameIdx
745
+ ? formatContext.name
746
+ : formatContext.name + "_" + formatContext.nameIdx
747
+ ),
748
+ formatContext.nameIdx++),
749
+ pushStringAttribute(target, "vt-update", formatContext.update),
750
+ "none" !== formatContext.enter &&
751
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
752
+ "none" !== formatContext.exit &&
753
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
754
+ "none" !== formatContext.share &&
755
+ pushStringAttribute(target, "vt-share", formatContext.share));
756
+ }
731
757
  var styleNameCache = new Map(),
732
758
  styleAttributeStart = stringToPrecomputedChunk(' style="'),
733
759
  styleAssign = stringToPrecomputedChunk(":"),
@@ -1173,7 +1199,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
1173
1199
  function styleReplacer(match, prefix, s, suffix) {
1174
1200
  return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
1175
1201
  }
1176
- function pushSelfClosing(target, props, tag) {
1202
+ function pushSelfClosing(target, props, tag, formatContext) {
1177
1203
  target.push(startChunkForTag(tag));
1178
1204
  for (var propKey in props)
1179
1205
  if (hasOwnProperty.call(props, propKey)) {
@@ -1190,6 +1216,7 @@ function pushSelfClosing(target, props, tag) {
1190
1216
  pushAttribute(target, propKey, propValue);
1191
1217
  }
1192
1218
  }
1219
+ pushViewTransitionAttributes(target, formatContext);
1193
1220
  target.push(endOfStartTagSelfClosing);
1194
1221
  return null;
1195
1222
  }
@@ -1261,7 +1288,7 @@ function pushScriptImpl(target, props) {
1261
1288
  target.push(endChunkForTag("script"));
1262
1289
  return null;
1263
1290
  }
1264
- function pushStartSingletonElement(target, props, tag) {
1291
+ function pushStartSingletonElement(target, props, tag, formatContext) {
1265
1292
  target.push(startChunkForTag(tag));
1266
1293
  var innerHTML = (tag = null),
1267
1294
  propKey;
@@ -1280,11 +1307,12 @@ function pushStartSingletonElement(target, props, tag) {
1280
1307
  pushAttribute(target, propKey, propValue);
1281
1308
  }
1282
1309
  }
1310
+ pushViewTransitionAttributes(target, formatContext);
1283
1311
  target.push(endOfStartTag);
1284
1312
  pushInnerHTML(target, innerHTML, tag);
1285
1313
  return tag;
1286
1314
  }
1287
- function pushStartGenericElement(target, props, tag) {
1315
+ function pushStartGenericElement(target, props, tag, formatContext) {
1288
1316
  target.push(startChunkForTag(tag));
1289
1317
  var innerHTML = (tag = null),
1290
1318
  propKey;
@@ -1303,6 +1331,7 @@ function pushStartGenericElement(target, props, tag) {
1303
1331
  pushAttribute(target, propKey, propValue);
1304
1332
  }
1305
1333
  }
1334
+ pushViewTransitionAttributes(target, formatContext);
1306
1335
  target.push(endOfStartTag);
1307
1336
  pushInnerHTML(target, innerHTML, tag);
1308
1337
  return "string" === typeof tag
@@ -1364,6 +1393,7 @@ function pushStartInstance(
1364
1393
  pushAttribute(target$jscomp$0, propKey, propValue);
1365
1394
  }
1366
1395
  }
1396
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1367
1397
  target$jscomp$0.push(endOfStartTag);
1368
1398
  pushInnerHTML(target$jscomp$0, innerHTML, children);
1369
1399
  if ("string" === typeof children) {
@@ -1402,6 +1432,7 @@ function pushStartInstance(
1402
1432
  );
1403
1433
  }
1404
1434
  }
1435
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1405
1436
  target$jscomp$0.push(endOfStartTag);
1406
1437
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
1407
1438
  return children$jscomp$0;
@@ -1491,6 +1522,7 @@ function pushStartInstance(
1491
1522
  null === value$jscomp$0 &&
1492
1523
  null !== defaultValue &&
1493
1524
  (value$jscomp$0 = defaultValue);
1525
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1494
1526
  target$jscomp$0.push(endOfStartTag);
1495
1527
  if (null != children$jscomp$2) {
1496
1528
  if (null != value$jscomp$0)
@@ -1587,6 +1619,7 @@ function pushStartInstance(
1587
1619
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
1588
1620
  : null !== defaultValue$jscomp$0 &&
1589
1621
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
1622
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1590
1623
  target$jscomp$0.push(endOfStartTagSelfClosing);
1591
1624
  null != formData &&
1592
1625
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1645,6 +1678,7 @@ function pushStartInstance(
1645
1678
  formTarget$jscomp$0,
1646
1679
  name$jscomp$0
1647
1680
  );
1681
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1648
1682
  target$jscomp$0.push(endOfStartTag);
1649
1683
  null != formData$jscomp$0 &&
1650
1684
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1732,6 +1766,7 @@ function pushStartInstance(
1732
1766
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
1733
1767
  null != formTarget$jscomp$1 &&
1734
1768
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
1769
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1735
1770
  target$jscomp$0.push(endOfStartTag);
1736
1771
  null !== formActionName &&
1737
1772
  (target$jscomp$0.push(startHiddenInputChunk),
@@ -1767,6 +1802,7 @@ function pushStartInstance(
1767
1802
  );
1768
1803
  }
1769
1804
  }
1805
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1770
1806
  target$jscomp$0.push(endOfStartTag);
1771
1807
  return null;
1772
1808
  case "object":
@@ -1804,6 +1840,7 @@ function pushStartInstance(
1804
1840
  );
1805
1841
  }
1806
1842
  }
1843
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1807
1844
  target$jscomp$0.push(endOfStartTag);
1808
1845
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1809
1846
  if ("string" === typeof children$jscomp$5) {
@@ -2085,17 +2122,33 @@ function pushStartInstance(
2085
2122
  var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
2086
2123
  target$jscomp$0,
2087
2124
  props,
2088
- "meta"
2125
+ "meta",
2126
+ formatContext
2089
2127
  );
2090
2128
  else
2091
2129
  textEmbedded && target$jscomp$0.push(textSeparator),
2092
2130
  (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
2093
2131
  ? null
2094
2132
  : "string" === typeof props.charSet
2095
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
2133
+ ? pushSelfClosing(
2134
+ renderState.charsetChunks,
2135
+ props,
2136
+ "meta",
2137
+ formatContext
2138
+ )
2096
2139
  : "viewport" === props.name
2097
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
2098
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
2140
+ ? pushSelfClosing(
2141
+ renderState.viewportChunks,
2142
+ props,
2143
+ "meta",
2144
+ formatContext
2145
+ )
2146
+ : pushSelfClosing(
2147
+ renderState.hoistableChunks,
2148
+ props,
2149
+ "meta",
2150
+ formatContext
2151
+ ));
2099
2152
  return JSCompiler_inline_result$jscomp$7;
2100
2153
  case "listing":
2101
2154
  case "pre":
@@ -2122,6 +2175,7 @@ function pushStartInstance(
2122
2175
  );
2123
2176
  }
2124
2177
  }
2178
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2125
2179
  target$jscomp$0.push(endOfStartTag);
2126
2180
  if (null != innerHTML$jscomp$7) {
2127
2181
  if (null != children$jscomp$8)
@@ -2238,7 +2292,7 @@ function pushStartInstance(
2238
2292
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
2239
2293
  }
2240
2294
  }
2241
- return pushSelfClosing(target$jscomp$0, props, "img");
2295
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
2242
2296
  case "base":
2243
2297
  case "area":
2244
2298
  case "br":
@@ -2250,7 +2304,7 @@ function pushStartInstance(
2250
2304
  case "source":
2251
2305
  case "track":
2252
2306
  case "wbr":
2253
- return pushSelfClosing(target$jscomp$0, props, type);
2307
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
2254
2308
  case "annotation-xml":
2255
2309
  case "color-profile":
2256
2310
  case "font-face":
@@ -2271,13 +2325,15 @@ function pushStartInstance(
2271
2325
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
2272
2326
  preamble.headChunks,
2273
2327
  props,
2274
- "head"
2328
+ "head",
2329
+ formatContext
2275
2330
  );
2276
2331
  } else
2277
2332
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2278
2333
  target$jscomp$0,
2279
2334
  props,
2280
- "head"
2335
+ "head",
2336
+ formatContext
2281
2337
  );
2282
2338
  return JSCompiler_inline_result$jscomp$9;
2283
2339
  case "body":
@@ -2291,13 +2347,15 @@ function pushStartInstance(
2291
2347
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
2292
2348
  preamble$jscomp$0.bodyChunks,
2293
2349
  props,
2294
- "body"
2350
+ "body",
2351
+ formatContext
2295
2352
  );
2296
2353
  } else
2297
2354
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
2298
2355
  target$jscomp$0,
2299
2356
  props,
2300
- "body"
2357
+ "body",
2358
+ formatContext
2301
2359
  );
2302
2360
  return JSCompiler_inline_result$jscomp$10;
2303
2361
  case "html":
@@ -2311,13 +2369,15 @@ function pushStartInstance(
2311
2369
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
2312
2370
  preamble$jscomp$1.htmlChunks,
2313
2371
  props,
2314
- "html"
2372
+ "html",
2373
+ formatContext
2315
2374
  );
2316
2375
  } else
2317
2376
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
2318
2377
  target$jscomp$0,
2319
2378
  props,
2320
- "html"
2379
+ "html",
2380
+ formatContext
2321
2381
  );
2322
2382
  return JSCompiler_inline_result$jscomp$11;
2323
2383
  default:
@@ -2367,12 +2427,13 @@ function pushStartInstance(
2367
2427
  }
2368
2428
  }
2369
2429
  }
2430
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
2370
2431
  target$jscomp$0.push(endOfStartTag);
2371
2432
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
2372
2433
  return children$jscomp$9;
2373
2434
  }
2374
2435
  }
2375
- return pushStartGenericElement(target$jscomp$0, props, type);
2436
+ return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
2376
2437
  }
2377
2438
  var endTagCache = new Map();
2378
2439
  function endChunkForTag(tag) {
@@ -2556,12 +2617,12 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
2556
2617
  stringToPrecomputedChunk('<template data-rsi="" data-sid="');
2557
2618
  stringToPrecomputedChunk('" data-pid="');
2558
2619
  var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
2559
- '$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)};'
2560
- );
2561
- stringToChunk(
2562
- '$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);'
2563
- );
2564
- var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
2620
+ '$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)};'
2621
+ ),
2622
+ completeBoundaryUpgradeToViewTransitionsInstruction = stringToChunk(
2623
+ '$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);'
2624
+ ),
2625
+ completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
2565
2626
  completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
2566
2627
  '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
2567
2628
  ),
@@ -3315,6 +3376,8 @@ function getComponentNameFromType(type) {
3315
3376
  return "SuspenseList";
3316
3377
  case REACT_ACTIVITY_TYPE:
3317
3378
  return "Activity";
3379
+ case REACT_VIEW_TRANSITION_TYPE:
3380
+ return "ViewTransition";
3318
3381
  }
3319
3382
  if ("object" === typeof type)
3320
3383
  switch (type.$$typeof) {
@@ -3428,6 +3491,11 @@ var classComponentUpdater = {
3428
3491
  enqueueForceUpdate: function () {}
3429
3492
  },
3430
3493
  emptyTreeContext = { id: 1, overflow: "" };
3494
+ function getTreeId(context) {
3495
+ var overflow = context.overflow;
3496
+ context = context.id;
3497
+ return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
3498
+ }
3431
3499
  function pushTreeContext(baseContext, totalChildren, index) {
3432
3500
  var baseIdWithLeadingBit = baseContext.id;
3433
3501
  baseContext = baseContext.overflow;
@@ -3789,24 +3857,14 @@ var HooksDispatcher = {
3789
3857
  return [!1, unsupportedStartTransition];
3790
3858
  },
3791
3859
  useId: function () {
3792
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3793
- var overflow = JSCompiler_inline_result.overflow;
3794
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3795
- JSCompiler_inline_result =
3796
- (
3797
- JSCompiler_inline_result &
3798
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3799
- ).toString(32) + overflow;
3800
- var resumableState = currentResumableState;
3860
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
3861
+ resumableState = currentResumableState;
3801
3862
  if (null === resumableState)
3802
3863
  throw Error(
3803
3864
  "Invalid hook call. Hooks can only be called inside of the body of a function component."
3804
3865
  );
3805
- overflow = localIdCounter++;
3806
- JSCompiler_inline_result =
3807
- "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
3808
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3809
- return JSCompiler_inline_result + "_";
3866
+ var localId = localIdCounter++;
3867
+ return makeId(resumableState, treeId, localId);
3810
3868
  },
3811
3869
  useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3812
3870
  if (void 0 === getServerSnapshot)
@@ -4063,9 +4121,28 @@ function describeComponentStackByType(type) {
4063
4121
  return describeBuiltInComponentFrame("SuspenseList");
4064
4122
  case REACT_SUSPENSE_TYPE:
4065
4123
  return describeBuiltInComponentFrame("Suspense");
4124
+ case REACT_VIEW_TRANSITION_TYPE:
4125
+ return describeBuiltInComponentFrame("ViewTransition");
4066
4126
  }
4067
4127
  return "";
4068
4128
  }
4129
+ function getViewTransitionClassName(defaultClass, eventClass) {
4130
+ defaultClass =
4131
+ null == defaultClass || "string" === typeof defaultClass
4132
+ ? defaultClass
4133
+ : defaultClass.default;
4134
+ eventClass =
4135
+ null == eventClass || "string" === typeof eventClass
4136
+ ? eventClass
4137
+ : eventClass.default;
4138
+ return null == eventClass
4139
+ ? "auto" === defaultClass
4140
+ ? null
4141
+ : defaultClass
4142
+ : "auto" === eventClass
4143
+ ? null
4144
+ : eventClass;
4145
+ }
4069
4146
  function isEligibleForOutlining(request, boundary) {
4070
4147
  return (
4071
4148
  (500 < boundary.byteSize || hasSuspenseyContent(boundary.contentState)) &&
@@ -4804,109 +4881,139 @@ function renderElement(request, task, keyPath, type, props, ref) {
4804
4881
  void 0 === newProps[propName$44] &&
4805
4882
  (newProps[propName$44] = defaultProps[propName$44]);
4806
4883
  }
4807
- props = newProps;
4808
- newProps = emptyContextObject;
4809
- defaultProps = type.contextType;
4810
- "object" === typeof defaultProps &&
4811
- null !== defaultProps &&
4812
- (newProps = defaultProps._currentValue);
4813
- newProps = new type(props, newProps);
4814
- var initialState = void 0 !== newProps.state ? newProps.state : null;
4815
- newProps.updater = classComponentUpdater;
4816
- newProps.props = props;
4817
- newProps.state = initialState;
4818
- defaultProps = { queue: [], replace: !1 };
4819
- newProps._reactInternals = defaultProps;
4820
- ref = type.contextType;
4821
- newProps.context =
4822
- "object" === typeof ref && null !== ref
4823
- ? ref._currentValue
4884
+ var JSCompiler_inline_result = newProps;
4885
+ var context = emptyContextObject,
4886
+ contextType = type.contextType;
4887
+ "object" === typeof contextType &&
4888
+ null !== contextType &&
4889
+ (context = contextType._currentValue);
4890
+ var JSCompiler_inline_result$jscomp$0 = new type(
4891
+ JSCompiler_inline_result,
4892
+ context
4893
+ );
4894
+ var initialState =
4895
+ void 0 !== JSCompiler_inline_result$jscomp$0.state
4896
+ ? JSCompiler_inline_result$jscomp$0.state
4897
+ : null;
4898
+ JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
4899
+ JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
4900
+ JSCompiler_inline_result$jscomp$0.state = initialState;
4901
+ var internalInstance = { queue: [], replace: !1 };
4902
+ JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
4903
+ var contextType$jscomp$0 = type.contextType;
4904
+ JSCompiler_inline_result$jscomp$0.context =
4905
+ "object" === typeof contextType$jscomp$0 &&
4906
+ null !== contextType$jscomp$0
4907
+ ? contextType$jscomp$0._currentValue
4824
4908
  : emptyContextObject;
4825
- ref = type.getDerivedStateFromProps;
4826
- "function" === typeof ref &&
4827
- ((ref = ref(props, initialState)),
4828
- (initialState =
4829
- null === ref || void 0 === ref
4909
+ var getDerivedStateFromProps = type.getDerivedStateFromProps;
4910
+ if ("function" === typeof getDerivedStateFromProps) {
4911
+ var partialState = getDerivedStateFromProps(
4912
+ JSCompiler_inline_result,
4913
+ initialState
4914
+ );
4915
+ var JSCompiler_inline_result$jscomp$1 =
4916
+ null === partialState || void 0 === partialState
4830
4917
  ? initialState
4831
- : assign({}, initialState, ref)),
4832
- (newProps.state = initialState));
4918
+ : assign({}, initialState, partialState);
4919
+ JSCompiler_inline_result$jscomp$0.state =
4920
+ JSCompiler_inline_result$jscomp$1;
4921
+ }
4833
4922
  if (
4834
4923
  "function" !== typeof type.getDerivedStateFromProps &&
4835
- "function" !== typeof newProps.getSnapshotBeforeUpdate &&
4836
- ("function" === typeof newProps.UNSAFE_componentWillMount ||
4837
- "function" === typeof newProps.componentWillMount)
4838
- )
4924
+ "function" !==
4925
+ typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
4926
+ ("function" ===
4927
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
4928
+ "function" ===
4929
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
4930
+ ) {
4931
+ var oldState = JSCompiler_inline_result$jscomp$0.state;
4932
+ "function" ===
4933
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
4934
+ JSCompiler_inline_result$jscomp$0.componentWillMount();
4935
+ "function" ===
4936
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
4937
+ JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
4938
+ oldState !== JSCompiler_inline_result$jscomp$0.state &&
4939
+ classComponentUpdater.enqueueReplaceState(
4940
+ JSCompiler_inline_result$jscomp$0,
4941
+ JSCompiler_inline_result$jscomp$0.state,
4942
+ null
4943
+ );
4839
4944
  if (
4840
- ((type = newProps.state),
4841
- "function" === typeof newProps.componentWillMount &&
4842
- newProps.componentWillMount(),
4843
- "function" === typeof newProps.UNSAFE_componentWillMount &&
4844
- newProps.UNSAFE_componentWillMount(),
4845
- type !== newProps.state &&
4846
- classComponentUpdater.enqueueReplaceState(
4847
- newProps,
4848
- newProps.state,
4849
- null
4850
- ),
4851
- null !== defaultProps.queue && 0 < defaultProps.queue.length)
4852
- )
4853
- if (
4854
- ((type = defaultProps.queue),
4855
- (ref = defaultProps.replace),
4856
- (defaultProps.queue = null),
4857
- (defaultProps.replace = !1),
4858
- ref && 1 === type.length)
4859
- )
4860
- newProps.state = type[0];
4945
+ null !== internalInstance.queue &&
4946
+ 0 < internalInstance.queue.length
4947
+ ) {
4948
+ var oldQueue = internalInstance.queue,
4949
+ oldReplace = internalInstance.replace;
4950
+ internalInstance.queue = null;
4951
+ internalInstance.replace = !1;
4952
+ if (oldReplace && 1 === oldQueue.length)
4953
+ JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
4861
4954
  else {
4862
- defaultProps = ref ? type[0] : newProps.state;
4863
- initialState = !0;
4864
- for (ref = ref ? 1 : 0; ref < type.length; ref++)
4865
- (propName$44 = type[ref]),
4866
- (propName$44 =
4867
- "function" === typeof propName$44
4868
- ? propName$44.call(newProps, defaultProps, props, void 0)
4869
- : propName$44),
4870
- null != propName$44 &&
4871
- (initialState
4872
- ? ((initialState = !1),
4873
- (defaultProps = assign({}, defaultProps, propName$44)))
4874
- : assign(defaultProps, propName$44));
4875
- newProps.state = defaultProps;
4955
+ for (
4956
+ var nextState = oldReplace
4957
+ ? oldQueue[0]
4958
+ : JSCompiler_inline_result$jscomp$0.state,
4959
+ dontMutate = !0,
4960
+ i = oldReplace ? 1 : 0;
4961
+ i < oldQueue.length;
4962
+ i++
4963
+ ) {
4964
+ var partial = oldQueue[i],
4965
+ partialState$jscomp$0 =
4966
+ "function" === typeof partial
4967
+ ? partial.call(
4968
+ JSCompiler_inline_result$jscomp$0,
4969
+ nextState,
4970
+ JSCompiler_inline_result,
4971
+ void 0
4972
+ )
4973
+ : partial;
4974
+ null != partialState$jscomp$0 &&
4975
+ (dontMutate
4976
+ ? ((dontMutate = !1),
4977
+ (nextState = assign({}, nextState, partialState$jscomp$0)))
4978
+ : assign(nextState, partialState$jscomp$0));
4979
+ }
4980
+ JSCompiler_inline_result$jscomp$0.state = nextState;
4876
4981
  }
4877
- else defaultProps.queue = null;
4878
- type = newProps.render();
4982
+ } else internalInstance.queue = null;
4983
+ }
4984
+ var nextChildren = JSCompiler_inline_result$jscomp$0.render();
4879
4985
  if (12 === request.status) throw null;
4880
- props = task.keyPath;
4986
+ var prevKeyPath = task.keyPath;
4881
4987
  task.keyPath = keyPath;
4882
- renderNodeDestructive(request, task, type, -1);
4883
- task.keyPath = props;
4988
+ renderNodeDestructive(request, task, nextChildren, -1);
4989
+ task.keyPath = prevKeyPath;
4884
4990
  } else {
4885
- type = renderWithHooks(request, task, keyPath, type, props, void 0);
4991
+ var value = renderWithHooks(request, task, keyPath, type, props, void 0);
4886
4992
  if (12 === request.status) throw null;
4887
4993
  finishFunctionComponent(
4888
4994
  request,
4889
4995
  task,
4890
4996
  keyPath,
4891
- type,
4997
+ value,
4892
4998
  0 !== localIdCounter,
4893
4999
  actionStateCounter,
4894
5000
  actionStateMatchingIndex
4895
5001
  );
4896
5002
  }
4897
- else if ("string" === typeof type)
4898
- if (((newProps = task.blockedSegment), null === newProps))
4899
- (newProps = props.children),
4900
- (defaultProps = task.formatContext),
4901
- (initialState = task.keyPath),
4902
- (task.formatContext = getChildFormatContext(defaultProps, type, props)),
4903
- (task.keyPath = keyPath),
4904
- renderNode(request, task, newProps, -1),
4905
- (task.formatContext = defaultProps),
4906
- (task.keyPath = initialState);
4907
- else {
4908
- initialState = pushStartInstance(
4909
- newProps.chunks,
5003
+ else if ("string" === typeof type) {
5004
+ var segment = task.blockedSegment;
5005
+ if (null === segment) {
5006
+ var children = props.children,
5007
+ prevContext = task.formatContext,
5008
+ prevKeyPath$jscomp$0 = task.keyPath;
5009
+ task.formatContext = getChildFormatContext(prevContext, type, props);
5010
+ task.keyPath = keyPath;
5011
+ renderNode(request, task, children, -1);
5012
+ task.formatContext = prevContext;
5013
+ task.keyPath = prevKeyPath$jscomp$0;
5014
+ } else {
5015
+ var children$41 = pushStartInstance(
5016
+ segment.chunks,
4910
5017
  type,
4911
5018
  props,
4912
5019
  request.resumableState,
@@ -4914,18 +5021,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
4914
5021
  task.blockedPreamble,
4915
5022
  task.hoistableState,
4916
5023
  task.formatContext,
4917
- newProps.lastPushedText
5024
+ segment.lastPushedText
4918
5025
  );
4919
- newProps.lastPushedText = !1;
4920
- defaultProps = task.formatContext;
4921
- ref = task.keyPath;
5026
+ segment.lastPushedText = !1;
5027
+ var prevContext$42 = task.formatContext,
5028
+ prevKeyPath$43 = task.keyPath;
4922
5029
  task.keyPath = keyPath;
4923
5030
  if (
4924
5031
  3 ===
4925
- (task.formatContext = getChildFormatContext(defaultProps, type, props))
4926
- .insertionMode
5032
+ (task.formatContext = getChildFormatContext(
5033
+ prevContext$42,
5034
+ type,
5035
+ props
5036
+ )).insertionMode
4927
5037
  ) {
4928
- keyPath = createPendingSegment(
5038
+ var preambleSegment = createPendingSegment(
4929
5039
  request,
4930
5040
  0,
4931
5041
  null,
@@ -4933,25 +5043,25 @@ function renderElement(request, task, keyPath, type, props, ref) {
4933
5043
  !1,
4934
5044
  !1
4935
5045
  );
4936
- newProps.preambleChildren.push(keyPath);
4937
- task.blockedSegment = keyPath;
5046
+ segment.preambleChildren.push(preambleSegment);
5047
+ task.blockedSegment = preambleSegment;
4938
5048
  try {
4939
- (keyPath.status = 6),
4940
- renderNode(request, task, initialState, -1),
4941
- keyPath.lastPushedText &&
4942
- keyPath.textEmbedded &&
4943
- keyPath.chunks.push(textSeparator),
4944
- (keyPath.status = 1),
4945
- finishedSegment(request, task.blockedBoundary, keyPath);
5049
+ (preambleSegment.status = 6),
5050
+ renderNode(request, task, children$41, -1),
5051
+ preambleSegment.lastPushedText &&
5052
+ preambleSegment.textEmbedded &&
5053
+ preambleSegment.chunks.push(textSeparator),
5054
+ (preambleSegment.status = 1),
5055
+ finishedSegment(request, task.blockedBoundary, preambleSegment);
4946
5056
  } finally {
4947
- task.blockedSegment = newProps;
5057
+ task.blockedSegment = segment;
4948
5058
  }
4949
- } else renderNode(request, task, initialState, -1);
4950
- task.formatContext = defaultProps;
4951
- task.keyPath = ref;
5059
+ } else renderNode(request, task, children$41, -1);
5060
+ task.formatContext = prevContext$42;
5061
+ task.keyPath = prevKeyPath$43;
4952
5062
  a: {
4953
- task = newProps.chunks;
4954
- request = request.resumableState;
5063
+ var target = segment.chunks,
5064
+ resumableState = request.resumableState;
4955
5065
  switch (type) {
4956
5066
  case "title":
4957
5067
  case "style":
@@ -4973,131 +5083,221 @@ function renderElement(request, task, keyPath, type, props, ref) {
4973
5083
  case "wbr":
4974
5084
  break a;
4975
5085
  case "body":
4976
- if (1 >= defaultProps.insertionMode) {
4977
- request.hasBody = !0;
5086
+ if (1 >= prevContext$42.insertionMode) {
5087
+ resumableState.hasBody = !0;
4978
5088
  break a;
4979
5089
  }
4980
5090
  break;
4981
5091
  case "html":
4982
- if (0 === defaultProps.insertionMode) {
4983
- request.hasHtml = !0;
5092
+ if (0 === prevContext$42.insertionMode) {
5093
+ resumableState.hasHtml = !0;
4984
5094
  break a;
4985
5095
  }
4986
5096
  break;
4987
5097
  case "head":
4988
- if (1 >= defaultProps.insertionMode) break a;
5098
+ if (1 >= prevContext$42.insertionMode) break a;
4989
5099
  }
4990
- task.push(endChunkForTag(type));
5100
+ target.push(endChunkForTag(type));
4991
5101
  }
4992
- newProps.lastPushedText = !1;
5102
+ segment.lastPushedText = !1;
4993
5103
  }
4994
- else {
5104
+ } else {
4995
5105
  switch (type) {
4996
5106
  case REACT_LEGACY_HIDDEN_TYPE:
4997
5107
  case REACT_STRICT_MODE_TYPE:
4998
5108
  case REACT_PROFILER_TYPE:
4999
5109
  case REACT_FRAGMENT_TYPE:
5000
- type = task.keyPath;
5110
+ var prevKeyPath$jscomp$1 = task.keyPath;
5001
5111
  task.keyPath = keyPath;
5002
5112
  renderNodeDestructive(request, task, props.children, -1);
5003
- task.keyPath = type;
5113
+ task.keyPath = prevKeyPath$jscomp$1;
5004
5114
  return;
5005
5115
  case REACT_ACTIVITY_TYPE:
5006
- type = task.blockedSegment;
5007
- null === type
5008
- ? "hidden" !== props.mode &&
5009
- ((type = task.keyPath),
5010
- (task.keyPath = keyPath),
5011
- renderNode(request, task, props.children, -1),
5012
- (task.keyPath = type))
5013
- : "hidden" !== props.mode &&
5014
- (type.chunks.push(startActivityBoundary),
5015
- (type.lastPushedText = !1),
5016
- (newProps = task.keyPath),
5017
- (task.keyPath = keyPath),
5018
- renderNode(request, task, props.children, -1),
5019
- (task.keyPath = newProps),
5020
- type.chunks.push(endActivityBoundary),
5021
- (type.lastPushedText = !1));
5116
+ var segment$jscomp$0 = task.blockedSegment;
5117
+ if (null === segment$jscomp$0) {
5118
+ if ("hidden" !== props.mode) {
5119
+ var prevKeyPath$jscomp$2 = task.keyPath;
5120
+ task.keyPath = keyPath;
5121
+ renderNode(request, task, props.children, -1);
5122
+ task.keyPath = prevKeyPath$jscomp$2;
5123
+ }
5124
+ } else if ("hidden" !== props.mode) {
5125
+ segment$jscomp$0.chunks.push(startActivityBoundary);
5126
+ segment$jscomp$0.lastPushedText = !1;
5127
+ var prevKeyPath$46 = task.keyPath;
5128
+ task.keyPath = keyPath;
5129
+ renderNode(request, task, props.children, -1);
5130
+ task.keyPath = prevKeyPath$46;
5131
+ segment$jscomp$0.chunks.push(endActivityBoundary);
5132
+ segment$jscomp$0.lastPushedText = !1;
5133
+ }
5022
5134
  return;
5023
5135
  case REACT_SUSPENSE_LIST_TYPE:
5024
5136
  a: {
5025
- type = props.children;
5026
- props = props.revealOrder;
5137
+ var children$jscomp$0 = props.children,
5138
+ revealOrder = props.revealOrder;
5027
5139
  if (
5028
- "forwards" === props ||
5029
- "backwards" === props ||
5030
- "unstable_legacy-backwards" === props
5140
+ "forwards" === revealOrder ||
5141
+ "backwards" === revealOrder ||
5142
+ "unstable_legacy-backwards" === revealOrder
5031
5143
  ) {
5032
- if (isArrayImpl(type)) {
5033
- renderSuspenseListRows(request, task, keyPath, type, props);
5144
+ if (isArrayImpl(children$jscomp$0)) {
5145
+ renderSuspenseListRows(
5146
+ request,
5147
+ task,
5148
+ keyPath,
5149
+ children$jscomp$0,
5150
+ revealOrder
5151
+ );
5034
5152
  break a;
5035
5153
  }
5036
- if ((newProps = getIteratorFn(type)))
5037
- if ((newProps = newProps.call(type))) {
5038
- defaultProps = newProps.next();
5039
- if (!defaultProps.done) {
5040
- do defaultProps = newProps.next();
5041
- while (!defaultProps.done);
5042
- renderSuspenseListRows(request, task, keyPath, type, props);
5154
+ var iteratorFn = getIteratorFn(children$jscomp$0);
5155
+ if (iteratorFn) {
5156
+ var iterator = iteratorFn.call(children$jscomp$0);
5157
+ if (iterator) {
5158
+ var step = iterator.next();
5159
+ if (!step.done) {
5160
+ do step = iterator.next();
5161
+ while (!step.done);
5162
+ renderSuspenseListRows(
5163
+ request,
5164
+ task,
5165
+ keyPath,
5166
+ children$jscomp$0,
5167
+ revealOrder
5168
+ );
5043
5169
  }
5044
5170
  break a;
5045
5171
  }
5172
+ }
5173
+ }
5174
+ if ("together" === revealOrder) {
5175
+ var prevKeyPath$40 = task.keyPath,
5176
+ prevRow = task.row,
5177
+ newRow = (task.row = createSuspenseListRow(null));
5178
+ newRow.boundaries = [];
5179
+ newRow.together = !0;
5180
+ task.keyPath = keyPath;
5181
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5182
+ 0 === --newRow.pendingTasks &&
5183
+ finishSuspenseListRow(request, newRow);
5184
+ task.keyPath = prevKeyPath$40;
5185
+ task.row = prevRow;
5186
+ null !== prevRow &&
5187
+ 0 < newRow.pendingTasks &&
5188
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
5189
+ } else {
5190
+ var prevKeyPath$jscomp$3 = task.keyPath;
5191
+ task.keyPath = keyPath;
5192
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5193
+ task.keyPath = prevKeyPath$jscomp$3;
5046
5194
  }
5047
- "together" === props
5048
- ? ((props = task.keyPath),
5049
- (newProps = task.row),
5050
- (defaultProps = task.row = createSuspenseListRow(null)),
5051
- (defaultProps.boundaries = []),
5052
- (defaultProps.together = !0),
5053
- (task.keyPath = keyPath),
5054
- renderNodeDestructive(request, task, type, -1),
5055
- 0 === --defaultProps.pendingTasks &&
5056
- finishSuspenseListRow(request, defaultProps),
5057
- (task.keyPath = props),
5058
- (task.row = newProps),
5059
- null !== newProps &&
5060
- 0 < defaultProps.pendingTasks &&
5061
- (newProps.pendingTasks++, (defaultProps.next = newProps)))
5062
- : ((props = task.keyPath),
5063
- (task.keyPath = keyPath),
5064
- renderNodeDestructive(request, task, type, -1),
5065
- (task.keyPath = props));
5066
5195
  }
5067
5196
  return;
5068
5197
  case REACT_VIEW_TRANSITION_TYPE:
5198
+ var prevContext$jscomp$0 = task.formatContext,
5199
+ prevKeyPath$jscomp$4 = task.keyPath;
5200
+ var resumableState$jscomp$0 = request.resumableState;
5201
+ if (null != props.name && "auto" !== props.name)
5202
+ var JSCompiler_inline_result$jscomp$2 = props.name;
5203
+ else {
5204
+ var treeId = getTreeId(task.treeContext);
5205
+ JSCompiler_inline_result$jscomp$2 = makeId(
5206
+ resumableState$jscomp$0,
5207
+ treeId,
5208
+ 0
5209
+ );
5210
+ }
5211
+ var autoName = JSCompiler_inline_result$jscomp$2,
5212
+ resumableState$jscomp$1 = request.resumableState,
5213
+ update = getViewTransitionClassName(props.default, props.update),
5214
+ enter = getViewTransitionClassName(props.default, props.enter),
5215
+ exit = getViewTransitionClassName(props.default, props.exit),
5216
+ share = getViewTransitionClassName(props.default, props.share),
5217
+ name = props.name;
5218
+ null == update && (update = "auto");
5219
+ null == enter && (enter = "auto");
5220
+ null == exit && (exit = "auto");
5221
+ if (null == name) {
5222
+ var parentViewTransition = prevContext$jscomp$0.viewTransition;
5223
+ null !== parentViewTransition
5224
+ ? ((name = parentViewTransition.name),
5225
+ (share = parentViewTransition.share))
5226
+ : ((name = "auto"), (share = "none"));
5227
+ } else
5228
+ null == share && (share = "auto"),
5229
+ prevContext$jscomp$0.tagScope & 4 &&
5230
+ (resumableState$jscomp$1.instructions |= 128);
5231
+ prevContext$jscomp$0.tagScope & 8
5232
+ ? (resumableState$jscomp$1.instructions |= 128)
5233
+ : (exit = "none");
5234
+ prevContext$jscomp$0.tagScope & 16
5235
+ ? (resumableState$jscomp$1.instructions |= 128)
5236
+ : (enter = "none");
5237
+ var viewTransition = {
5238
+ update: update,
5239
+ enter: enter,
5240
+ exit: exit,
5241
+ share: share,
5242
+ name: name,
5243
+ autoName: autoName,
5244
+ nameIdx: 0
5245
+ },
5246
+ subtreeScope = prevContext$jscomp$0.tagScope & -25;
5247
+ subtreeScope =
5248
+ "none" !== update ? subtreeScope | 32 : subtreeScope & -33;
5249
+ "none" !== enter && (subtreeScope |= 64);
5250
+ var JSCompiler_inline_result$jscomp$3 = createFormatContext(
5251
+ prevContext$jscomp$0.insertionMode,
5252
+ prevContext$jscomp$0.selectedValue,
5253
+ subtreeScope,
5254
+ viewTransition
5255
+ );
5256
+ task.formatContext = JSCompiler_inline_result$jscomp$3;
5257
+ task.keyPath = keyPath;
5258
+ if (null != props.name && "auto" !== props.name)
5259
+ renderNodeDestructive(request, task, props.children, -1);
5260
+ else {
5261
+ var prevTreeContext = task.treeContext;
5262
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
5263
+ renderNode(request, task, props.children, -1);
5264
+ task.treeContext = prevTreeContext;
5265
+ }
5266
+ task.formatContext = prevContext$jscomp$0;
5267
+ task.keyPath = prevKeyPath$jscomp$4;
5268
+ return;
5069
5269
  case REACT_SCOPE_TYPE:
5070
5270
  throw Error("ReactDOMServer does not yet support scope components.");
5071
5271
  case REACT_SUSPENSE_TYPE:
5072
5272
  a: if (null !== task.replay) {
5073
- type = task.keyPath;
5074
- newProps = task.formatContext;
5075
- defaultProps = task.row;
5273
+ var prevKeyPath$27 = task.keyPath,
5274
+ prevContext$28 = task.formatContext,
5275
+ prevRow$29 = task.row;
5076
5276
  task.keyPath = keyPath;
5077
5277
  task.formatContext = getSuspenseContentFormatContext(
5078
5278
  request.resumableState,
5079
- newProps
5279
+ prevContext$28
5080
5280
  );
5081
5281
  task.row = null;
5082
- keyPath = props.children;
5282
+ var content$30 = props.children;
5083
5283
  try {
5084
- renderNode(request, task, keyPath, -1);
5284
+ renderNode(request, task, content$30, -1);
5085
5285
  } finally {
5086
- (task.keyPath = type),
5087
- (task.formatContext = newProps),
5088
- (task.row = defaultProps);
5286
+ (task.keyPath = prevKeyPath$27),
5287
+ (task.formatContext = prevContext$28),
5288
+ (task.row = prevRow$29);
5089
5289
  }
5090
5290
  } else {
5091
- type = task.keyPath;
5092
- ref = task.formatContext;
5093
- var prevRow = task.row;
5094
- propName$44 = task.blockedBoundary;
5095
- propName = task.blockedPreamble;
5096
- var parentHoistableState = task.hoistableState,
5291
+ var prevKeyPath$jscomp$5 = task.keyPath,
5292
+ prevContext$jscomp$1 = task.formatContext,
5293
+ prevRow$jscomp$0 = task.row,
5294
+ parentBoundary = task.blockedBoundary,
5295
+ parentPreamble = task.blockedPreamble,
5296
+ parentHoistableState = task.hoistableState,
5097
5297
  parentSegment = task.blockedSegment,
5098
- fallback = props.fallback;
5099
- props = props.children;
5100
- var fallbackAbortSet = new Set();
5298
+ fallback = props.fallback,
5299
+ content = props.children,
5300
+ fallbackAbortSet = new Set();
5101
5301
  var newBoundary =
5102
5302
  2 > task.formatContext.insertionMode
5103
5303
  ? createSuspenseBoundary(
@@ -5136,20 +5336,30 @@ function renderElement(request, task, keyPath, type, props, ref) {
5136
5336
  );
5137
5337
  contentRootSegment.parentFlushed = !0;
5138
5338
  if (null !== request.trackedPostpones) {
5139
- newProps = task.componentStack;
5140
- defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
5141
- initialState = [defaultProps[1], defaultProps[2], [], null];
5142
- request.trackedPostpones.workingMap.set(defaultProps, initialState);
5143
- newBoundary.trackedFallbackNode = initialState;
5339
+ var suspenseComponentStack = task.componentStack,
5340
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
5341
+ fallbackReplayNode = [
5342
+ fallbackKeyPath[1],
5343
+ fallbackKeyPath[2],
5344
+ [],
5345
+ null
5346
+ ];
5347
+ request.trackedPostpones.workingMap.set(
5348
+ fallbackKeyPath,
5349
+ fallbackReplayNode
5350
+ );
5351
+ newBoundary.trackedFallbackNode = fallbackReplayNode;
5144
5352
  task.blockedSegment = boundarySegment;
5145
5353
  task.blockedPreamble = newBoundary.fallbackPreamble;
5146
- task.keyPath = defaultProps;
5354
+ task.keyPath = fallbackKeyPath;
5147
5355
  task.formatContext = getSuspenseFallbackFormatContext(
5148
5356
  request.resumableState,
5149
- ref
5357
+ prevContext$jscomp$1
5150
5358
  );
5151
5359
  task.componentStack =
5152
- replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
5360
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
5361
+ suspenseComponentStack
5362
+ );
5153
5363
  boundarySegment.status = 6;
5154
5364
  try {
5155
5365
  renderNode(request, task, fallback, -1),
@@ -5157,7 +5367,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
5157
5367
  boundarySegment.textEmbedded &&
5158
5368
  boundarySegment.chunks.push(textSeparator),
5159
5369
  (boundarySegment.status = 1),
5160
- finishedSegment(request, propName$44, boundarySegment);
5370
+ finishedSegment(request, parentBoundary, boundarySegment);
5161
5371
  } catch (thrownValue) {
5162
5372
  throw (
5163
5373
  ((boundarySegment.status = 12 === request.status ? 3 : 4),
@@ -5165,14 +5375,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
5165
5375
  );
5166
5376
  } finally {
5167
5377
  (task.blockedSegment = parentSegment),
5168
- (task.blockedPreamble = propName),
5169
- (task.keyPath = type),
5170
- (task.formatContext = ref);
5378
+ (task.blockedPreamble = parentPreamble),
5379
+ (task.keyPath = prevKeyPath$jscomp$5),
5380
+ (task.formatContext = prevContext$jscomp$1);
5171
5381
  }
5172
- task = createRenderTask(
5382
+ var suspendedPrimaryTask = createRenderTask(
5173
5383
  request,
5174
5384
  null,
5175
- props,
5385
+ content,
5176
5386
  -1,
5177
5387
  newBoundary,
5178
5388
  contentRootSegment,
@@ -5187,10 +5397,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
5187
5397
  task.context,
5188
5398
  task.treeContext,
5189
5399
  null,
5190
- newProps
5400
+ suspenseComponentStack
5191
5401
  );
5192
- pushComponentStack(task);
5193
- request.pingedTasks.push(task);
5402
+ pushComponentStack(suspendedPrimaryTask);
5403
+ request.pingedTasks.push(suspendedPrimaryTask);
5194
5404
  } else {
5195
5405
  task.blockedBoundary = newBoundary;
5196
5406
  task.blockedPreamble = newBoundary.contentPreamble;
@@ -5199,13 +5409,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
5199
5409
  task.keyPath = keyPath;
5200
5410
  task.formatContext = getSuspenseContentFormatContext(
5201
5411
  request.resumableState,
5202
- ref
5412
+ prevContext$jscomp$1
5203
5413
  );
5204
5414
  task.row = null;
5205
5415
  contentRootSegment.status = 6;
5206
5416
  try {
5207
5417
  if (
5208
- (renderNode(request, task, props, -1),
5418
+ (renderNode(request, task, content, -1),
5209
5419
  contentRootSegment.lastPushedText &&
5210
5420
  contentRootSegment.textEmbedded &&
5211
5421
  contentRootSegment.chunks.push(textSeparator),
@@ -5218,48 +5428,43 @@ function renderElement(request, task, keyPath, type, props, ref) {
5218
5428
  ((newBoundary.status = 1),
5219
5429
  !isEligibleForOutlining(request, newBoundary))
5220
5430
  ) {
5221
- null !== prevRow &&
5222
- 0 === --prevRow.pendingTasks &&
5223
- finishSuspenseListRow(request, prevRow);
5431
+ null !== prevRow$jscomp$0 &&
5432
+ 0 === --prevRow$jscomp$0.pendingTasks &&
5433
+ finishSuspenseListRow(request, prevRow$jscomp$0);
5224
5434
  0 === request.pendingRootTasks &&
5225
5435
  task.blockedPreamble &&
5226
5436
  preparePreamble(request);
5227
5437
  break a;
5228
5438
  }
5229
5439
  } else
5230
- null !== prevRow &&
5231
- prevRow.together &&
5232
- tryToResolveTogetherRow(request, prevRow);
5440
+ null !== prevRow$jscomp$0 &&
5441
+ prevRow$jscomp$0.together &&
5442
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
5233
5443
  } catch (thrownValue$31) {
5234
- (newBoundary.status = 4),
5235
- 12 === request.status
5236
- ? ((contentRootSegment.status = 3),
5237
- (newProps = request.fatalError))
5238
- : ((contentRootSegment.status = 4),
5239
- (newProps = thrownValue$31)),
5240
- (defaultProps = getThrownInfo(task.componentStack)),
5241
- (initialState = logRecoverableError(
5242
- request,
5243
- newProps,
5244
- defaultProps
5245
- )),
5246
- (newBoundary.errorDigest = initialState),
5247
- untrackBoundary(request, newBoundary);
5444
+ newBoundary.status = 4;
5445
+ if (12 === request.status) {
5446
+ contentRootSegment.status = 3;
5447
+ var error = request.fatalError;
5448
+ } else (contentRootSegment.status = 4), (error = thrownValue$31);
5449
+ var thrownInfo = getThrownInfo(task.componentStack);
5450
+ var errorDigest = logRecoverableError(request, error, thrownInfo);
5451
+ newBoundary.errorDigest = errorDigest;
5452
+ untrackBoundary(request, newBoundary);
5248
5453
  } finally {
5249
- (task.blockedBoundary = propName$44),
5250
- (task.blockedPreamble = propName),
5454
+ (task.blockedBoundary = parentBoundary),
5455
+ (task.blockedPreamble = parentPreamble),
5251
5456
  (task.hoistableState = parentHoistableState),
5252
5457
  (task.blockedSegment = parentSegment),
5253
- (task.keyPath = type),
5254
- (task.formatContext = ref),
5255
- (task.row = prevRow);
5458
+ (task.keyPath = prevKeyPath$jscomp$5),
5459
+ (task.formatContext = prevContext$jscomp$1),
5460
+ (task.row = prevRow$jscomp$0);
5256
5461
  }
5257
- task = createRenderTask(
5462
+ var suspendedFallbackTask = createRenderTask(
5258
5463
  request,
5259
5464
  null,
5260
5465
  fallback,
5261
5466
  -1,
5262
- propName$44,
5467
+ parentBoundary,
5263
5468
  boundarySegment,
5264
5469
  newBoundary.fallbackPreamble,
5265
5470
  newBoundary.fallbackState,
@@ -5276,8 +5481,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
5276
5481
  task.componentStack
5277
5482
  )
5278
5483
  );
5279
- pushComponentStack(task);
5280
- request.pingedTasks.push(task);
5484
+ pushComponentStack(suspendedFallbackTask);
5485
+ request.pingedTasks.push(suspendedFallbackTask);
5281
5486
  }
5282
5487
  }
5283
5488
  return;
@@ -5285,24 +5490,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
5285
5490
  if ("object" === typeof type && null !== type)
5286
5491
  switch (type.$$typeof) {
5287
5492
  case REACT_FORWARD_REF_TYPE:
5288
- if ("ref" in props)
5289
- for (parentSegment in ((newProps = {}), props))
5290
- "ref" !== parentSegment &&
5291
- (newProps[parentSegment] = props[parentSegment]);
5292
- else newProps = props;
5293
- type = renderWithHooks(
5493
+ if ("ref" in props) {
5494
+ var propsWithoutRef = {};
5495
+ for (var key in props)
5496
+ "ref" !== key && (propsWithoutRef[key] = props[key]);
5497
+ } else propsWithoutRef = props;
5498
+ var children$jscomp$1 = renderWithHooks(
5294
5499
  request,
5295
5500
  task,
5296
5501
  keyPath,
5297
5502
  type.render,
5298
- newProps,
5503
+ propsWithoutRef,
5299
5504
  ref
5300
5505
  );
5301
5506
  finishFunctionComponent(
5302
5507
  request,
5303
5508
  task,
5304
5509
  keyPath,
5305
- type,
5510
+ children$jscomp$1,
5306
5511
  0 !== localIdCounter,
5307
5512
  actionStateCounter,
5308
5513
  actionStateMatchingIndex
@@ -5312,45 +5517,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
5312
5517
  renderElement(request, task, keyPath, type.type, props, ref);
5313
5518
  return;
5314
5519
  case REACT_CONTEXT_TYPE:
5315
- defaultProps = props.children;
5316
- newProps = task.keyPath;
5317
- props = props.value;
5318
- initialState = type._currentValue;
5319
- type._currentValue = props;
5320
- ref = currentActiveSnapshot;
5321
- currentActiveSnapshot = type = {
5322
- parent: ref,
5323
- depth: null === ref ? 0 : ref.depth + 1,
5324
- context: type,
5325
- parentValue: initialState,
5326
- value: props
5327
- };
5328
- task.context = type;
5520
+ var children$jscomp$2 = props.children,
5521
+ prevKeyPath$jscomp$6 = task.keyPath,
5522
+ nextValue = props.value;
5523
+ var prevValue = type._currentValue;
5524
+ type._currentValue = nextValue;
5525
+ var prevNode = currentActiveSnapshot,
5526
+ newNode = {
5527
+ parent: prevNode,
5528
+ depth: null === prevNode ? 0 : prevNode.depth + 1,
5529
+ context: type,
5530
+ parentValue: prevValue,
5531
+ value: nextValue
5532
+ };
5533
+ currentActiveSnapshot = newNode;
5534
+ task.context = newNode;
5329
5535
  task.keyPath = keyPath;
5330
- renderNodeDestructive(request, task, defaultProps, -1);
5331
- request = currentActiveSnapshot;
5332
- if (null === request)
5536
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
5537
+ var prevSnapshot = currentActiveSnapshot;
5538
+ if (null === prevSnapshot)
5333
5539
  throw Error(
5334
5540
  "Tried to pop a Context at the root of the app. This is a bug in React."
5335
5541
  );
5336
- request.context._currentValue = request.parentValue;
5337
- request = currentActiveSnapshot = request.parent;
5338
- task.context = request;
5339
- task.keyPath = newProps;
5542
+ prevSnapshot.context._currentValue = prevSnapshot.parentValue;
5543
+ var JSCompiler_inline_result$jscomp$4 = (currentActiveSnapshot =
5544
+ prevSnapshot.parent);
5545
+ task.context = JSCompiler_inline_result$jscomp$4;
5546
+ task.keyPath = prevKeyPath$jscomp$6;
5340
5547
  return;
5341
5548
  case REACT_CONSUMER_TYPE:
5342
- props = props.children;
5343
- type = props(type._context._currentValue);
5344
- props = task.keyPath;
5549
+ var render = props.children,
5550
+ newChildren = render(type._context._currentValue),
5551
+ prevKeyPath$jscomp$7 = task.keyPath;
5345
5552
  task.keyPath = keyPath;
5346
- renderNodeDestructive(request, task, type, -1);
5347
- task.keyPath = props;
5553
+ renderNodeDestructive(request, task, newChildren, -1);
5554
+ task.keyPath = prevKeyPath$jscomp$7;
5348
5555
  return;
5349
5556
  case REACT_LAZY_TYPE:
5350
- newProps = type._init;
5351
- type = newProps(type._payload);
5557
+ var init = type._init;
5558
+ var Component = init(type._payload);
5352
5559
  if (12 === request.status) throw null;
5353
- renderElement(request, task, keyPath, type, props, ref);
5560
+ renderElement(request, task, keyPath, Component, props, ref);
5354
5561
  return;
5355
5562
  }
5356
5563
  throw Error(
@@ -6768,7 +6975,8 @@ function flushCompletedBoundary(request, destination, boundary) {
6768
6975
  request = request.renderState;
6769
6976
  i = boundary.rootSegmentID;
6770
6977
  boundary = boundary.contentState;
6771
- var requiresStyleInsertion = request.stylesToHoist;
6978
+ var requiresStyleInsertion = request.stylesToHoist,
6979
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
6772
6980
  request.stylesToHoist = !1;
6773
6981
  writeChunk(destination, request.startInlineScript);
6774
6982
  writeChunk(destination, endOfStartTag);
@@ -6779,6 +6987,13 @@ function flushCompletedBoundary(request, destination, boundary) {
6779
6987
  0 === (completedSegments.instructions & 2) &&
6780
6988
  ((completedSegments.instructions |= 2),
6781
6989
  writeChunk(destination, completeBoundaryScriptFunctionOnly)),
6990
+ requiresViewTransitions &&
6991
+ 0 === (completedSegments.instructions & 256) &&
6992
+ ((completedSegments.instructions |= 256),
6993
+ writeChunk(
6994
+ destination,
6995
+ completeBoundaryUpgradeToViewTransitionsInstruction
6996
+ )),
6782
6997
  0 === (completedSegments.instructions & 8)
6783
6998
  ? ((completedSegments.instructions |= 8),
6784
6999
  writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
@@ -6786,6 +7001,13 @@ function flushCompletedBoundary(request, destination, boundary) {
6786
7001
  : (0 === (completedSegments.instructions & 2) &&
6787
7002
  ((completedSegments.instructions |= 2),
6788
7003
  writeChunk(destination, completeBoundaryScriptFunctionOnly)),
7004
+ requiresViewTransitions &&
7005
+ 0 === (completedSegments.instructions & 256) &&
7006
+ ((completedSegments.instructions |= 256),
7007
+ writeChunk(
7008
+ destination,
7009
+ completeBoundaryUpgradeToViewTransitionsInstruction
7010
+ )),
6789
7011
  writeChunk(destination, completeBoundaryScript1Partial));
6790
7012
  completedSegments = stringToChunk(i.toString(16));
6791
7013
  writeChunk(destination, request.boundaryPrefix);
@@ -7252,11 +7474,11 @@ function getPostponedState(request) {
7252
7474
  }
7253
7475
  function ensureCorrectIsomorphicReactVersion() {
7254
7476
  var isomorphicReactPackageVersion = React.version;
7255
- if ("19.3.0-canary-c7862584-20251006" !== isomorphicReactPackageVersion)
7477
+ if ("19.3.0-canary-3025aa39-20251007" !== isomorphicReactPackageVersion)
7256
7478
  throw Error(
7257
7479
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
7258
7480
  (isomorphicReactPackageVersion +
7259
- "\n - react-dom: 19.3.0-canary-c7862584-20251006\nLearn more: https://react.dev/warnings/version-mismatch")
7481
+ "\n - react-dom: 19.3.0-canary-3025aa39-20251007\nLearn more: https://react.dev/warnings/version-mismatch")
7260
7482
  );
7261
7483
  }
7262
7484
  ensureCorrectIsomorphicReactVersion();
@@ -7510,4 +7732,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) {
7510
7732
  startWork(request);
7511
7733
  });
7512
7734
  };
7513
- exports.version = "19.3.0-canary-c7862584-20251006";
7735
+ exports.version = "19.3.0-canary-3025aa39-20251007";