diff --git a/package.json b/package.json index 4c529dd614d22..f777959d90d98 100644 --- a/package.json +++ b/package.json @@ -189,14 +189,14 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-9377e1010-20230712", + "react-builtin": "npm:react@18.3.0-canary-cb3404a0c-20230807", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-9377e1010-20230712", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-9377e1010-20230712", - "react-experimental-builtin": "npm:react@0.0.0-experimental-9377e1010-20230712", - "react-server-dom-webpack": "18.3.0-canary-9377e1010-20230712", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-9377e1010-20230712", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-cb3404a0c-20230807", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-cb3404a0c-20230807", + "react-experimental-builtin": "npm:react@0.0.0-experimental-cb3404a0c-20230807", + "react-server-dom-webpack": "18.3.0-canary-cb3404a0c-20230807", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-cb3404a0c-20230807", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -206,8 +206,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.1", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-9377e1010-20230712", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-9377e1010-20230712", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-cb3404a0c-20230807", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-cb3404a0c-20230807", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index ed668daaf196f..ba7d476bc7a9e 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-9377e1010-20230712'; +var ReactVersion = '18.3.0-experimental-cb3404a0c-20230807'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -3330,6 +3330,9 @@ function pushMeta(target, props, responseState, textEmbedded, insertionMode, nos if (typeof props.charSet === 'string') { return pushSelfClosing(responseState.charsetChunks, props, 'meta'); + } else if (props.name === 'viewport') { + // "viewport" isn't related to preconnect but it has the right priority + return pushSelfClosing(responseState.preconnectChunks, props, 'meta'); } else { return pushSelfClosing(responseState.hoistableChunks, props, 'meta'); } @@ -5160,14 +5163,11 @@ function writePreamble(destination, resources, responseState, willFlushAllSegmen resources.fontPreloads.clear(); // Flush unblocked stylesheets by precedence resources.precedences.forEach(flushAllStylesInPreamble, destination); + resources.bootstrapScripts.forEach(flushResourceInPreamble, destination); resources.scripts.forEach(flushResourceInPreamble, destination); resources.scripts.clear(); - resources.explicitStylesheetPreloads.forEach(flushResourceInPreamble, destination); - resources.explicitStylesheetPreloads.clear(); - resources.explicitScriptPreloads.forEach(flushResourceInPreamble, destination); - resources.explicitScriptPreloads.clear(); - resources.explicitOtherPreloads.forEach(flushResourceInPreamble, destination); - resources.explicitOtherPreloads.clear(); // Write embedding preloadChunks + resources.explicitPreloads.forEach(flushResourceInPreamble, destination); + resources.explicitPreloads.clear(); // Write embedding preloadChunks var preloadChunks = responseState.preloadChunks; @@ -5218,15 +5218,13 @@ function writeHoistables(destination, resources, responseState) { resources.fontPreloads.clear(); // Preload any stylesheets. these will emit in a render instruction that follows this // but we want to kick off preloading as soon as possible - resources.precedences.forEach(preloadLateStyles, destination); + resources.precedences.forEach(preloadLateStyles, destination); // bootstrap scripts should flush above script priority but these can only flush in the preamble + // so we elide the code here for performance + resources.scripts.forEach(flushResourceLate, destination); resources.scripts.clear(); - resources.explicitStylesheetPreloads.forEach(flushResourceLate, destination); - resources.explicitStylesheetPreloads.clear(); - resources.explicitScriptPreloads.forEach(flushResourceLate, destination); - resources.explicitScriptPreloads.clear(); - resources.explicitOtherPreloads.forEach(flushResourceLate, destination); - resources.explicitOtherPreloads.clear(); // Write embedding preloadChunks + resources.explicitPreloads.forEach(flushResourceLate, destination); + resources.explicitPreloads.clear(); // Write embedding preloadChunks var preloadChunks = responseState.preloadChunks; @@ -5646,11 +5644,9 @@ function createResources() { // usedImagePreloads: new Set(), precedences: new Map(), stylePrecedences: new Map(), + bootstrapScripts: new Set(), scripts: new Set(), - explicitStylesheetPreloads: new Set(), - // explicitImagePreloads: new Set(), - explicitScriptPreloads: new Set(), - explicitOtherPreloads: new Set(), + explicitPreloads: new Set(), // like a module global for currently rendering boundary boundaryResources: null }; @@ -5876,29 +5872,10 @@ function preload(href, options) { pushLinkImpl(resource.chunks, resource.props); } - switch (as) { - case 'font': - { - resources.fontPreloads.add(resource); - break; - } - - case 'style': - { - resources.explicitStylesheetPreloads.add(resource); - break; - } - - case 'script': - { - resources.explicitScriptPreloads.add(resource); - break; - } - - default: - { - resources.explicitOtherPreloads.add(resource); - } + if (as === 'font') { + resources.fontPreloads.add(resource); + } else { + resources.explicitPreloads.add(resource); } flushResources(request); @@ -6120,6 +6097,7 @@ function preloadBootstrapScript(resources, src, nonce, integrity, crossOrigin) { rel: 'preload', href: src, as: 'script', + fetchPriority: 'low', nonce: nonce, integrity: integrity, crossOrigin: crossOrigin @@ -6131,7 +6109,7 @@ function preloadBootstrapScript(resources, src, nonce, integrity, crossOrigin) { props: props }; resources.preloadsMap.set(key, resource); - resources.explicitScriptPreloads.add(resource); + resources.bootstrapScripts.add(resource); pushLinkImpl(resource.chunks, props); } // This function is only safe to call at Request start time since it assumes // that each module has not already been preloaded. If we find a need to preload @@ -6154,6 +6132,7 @@ function preloadBootstrapModule(resources, src, nonce, integrity, crossOrigin) { var props = { rel: 'modulepreload', href: src, + fetchPriority: 'low', nonce: nonce, integrity: integrity, crossOrigin: crossOrigin @@ -6165,7 +6144,7 @@ function preloadBootstrapModule(resources, src, nonce, integrity, crossOrigin) { props: props }; resources.preloadsMap.set(key, resource); - resources.explicitScriptPreloads.add(resource); + resources.bootstrapScripts.add(resource); pushLinkImpl(resource.chunks, props); return; } diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js index c53b1d3f50308..39cbf6c605df0 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js @@ -18,10 +18,10 @@ new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http ["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"], ["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),va=/["'&<>]/; function r(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=va.exec(a);if(b){var c="",d,e=0;for(d=b.index;d")} function ob(a,b,c,d,e,f,g){var h=null;"function"===typeof c&&("function"===typeof c.$$FORM_ACTION?(d=lb(b),b=c.$$FORM_ACTION(d),g=b.name,c=b.action||"",d=b.encType,e=b.method,f=b.target,h=b.data):(a.push(" ","formAction",'="',mb,'"'),f=e=d=c=g=null,pb(b)));null!=g&&y(a,"name",g);null!=c&&y(a,"formAction",c);null!=d&&y(a,"formEncType",d);null!=e&&y(a,"formMethod",e);null!=f&&y(a,"formTarget",f);return h} function y(a,b,c){switch(b){case "className":u(a,"class",c);break;case "tabIndex":u(a,"tabindex",c);break;case "dir":case "role":case "viewBox":case "width":case "height":u(a,b,c);break;case "style":jb(a,c);break;case "src":case "href":if(""===c)break;case "action":case "formAction":if(null==c||"function"===typeof c||"symbol"===typeof c||"boolean"===typeof c)break;a.push(" ",b,'="',r(""+c),'"');break;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":break; @@ -30,28 +30,28 @@ case "autoFocus":case "multiple":case "muted":kb(a,b.toLowerCase(),c);break;case c);break;case "xlinkArcrole":u(a,"xlink:arcrole",c);break;case "xlinkRole":u(a,"xlink:role",c);break;case "xlinkShow":u(a,"xlink:show",c);break;case "xlinkTitle":u(a,"xlink:title",c);break;case "xlinkType":u(a,"xlink:type",c);break;case "xmlBase":u(a,"xml:base",c);break;case "xmlLang":u(a,"xml:lang",c);break;case "xmlSpace":u(a,"xml:space",c);break;default:if(!(2"))} -function rb(a,b,c,d,e,f,g){var h=b.rel,l=b.href,n=b.precedence;if(3===f||g||null!=b.itemProp||"string"!==typeof h||"string"!==typeof l||""===l)return A(a,b),null;if("stylesheet"===b.rel){c="[style]"+l;if("string"!==typeof n||null!=b.disabled||b.onLoad||b.onError)return A(a,b);f=d.stylesMap.get(c);f||(b=ca({},b,{"data-precedence":b.precedence,precedence:null}),f=d.preloadsMap.get(c),g=0,f&&(f.state|=4,h=f.props,null==b.crossOrigin&&(b.crossOrigin=h.crossOrigin),null==b.integrity&&(b.integrity=h.integrity), -f.state&3&&(g=8)),f={type:"stylesheet",chunks:[],state:g,props:b},d.stylesMap.set(c,f),b=d.precedences.get(n),b||(b=new Set,d.precedences.set(n,b),c={type:"style",chunks:[],state:0,props:{precedence:n,hrefs:[]}},b.add(c),d.stylePrecedences.set(n,c)),b.add(f));d.boundaryResources&&d.boundaryResources.add(f);e&&a.push("\x3c!-- --\x3e");return null}if(b.onLoad||b.onError)return A(a,b);e&&a.push("\x3c!-- --\x3e");switch(b.rel){case "preconnect":case "dns-prefetch":return A(c.preconnectChunks,b);case "preload":return A(c.preloadChunks, +function rb(a,b,c,d,e,f,g){var h=b.rel,l=b.href,m=b.precedence;if(3===f||g||null!=b.itemProp||"string"!==typeof h||"string"!==typeof l||""===l)return A(a,b),null;if("stylesheet"===b.rel){c="[style]"+l;if("string"!==typeof m||null!=b.disabled||b.onLoad||b.onError)return A(a,b);f=d.stylesMap.get(c);f||(b=ca({},b,{"data-precedence":b.precedence,precedence:null}),f=d.preloadsMap.get(c),g=0,f&&(f.state|=4,h=f.props,null==b.crossOrigin&&(b.crossOrigin=h.crossOrigin),null==b.integrity&&(b.integrity=h.integrity), +f.state&3&&(g=8)),f={type:"stylesheet",chunks:[],state:g,props:b},d.stylesMap.set(c,f),b=d.precedences.get(m),b||(b=new Set,d.precedences.set(m,b),c={type:"style",chunks:[],state:0,props:{precedence:m,hrefs:[]}},b.add(c),d.stylePrecedences.set(m,c)),b.add(f));d.boundaryResources&&d.boundaryResources.add(f);e&&a.push("\x3c!-- --\x3e");return null}if(b.onLoad||b.onError)return A(a,b);e&&a.push("\x3c!-- --\x3e");switch(b.rel){case "preconnect":case "dns-prefetch":return A(c.preconnectChunks,b);case "preload":return A(c.preloadChunks, b);default:return A(c.hoistableChunks,b)}}function A(a,b){a.push(D("link"));for(var c in b)if(p.call(b,c)){var d=b[c];if(null!=d)switch(c){case "children":case "dangerouslySetInnerHTML":throw Error(k(399,"link"));default:y(a,c,d)}}a.push("/>");return null}function sb(a,b,c){a.push(D(c));for(var d in b)if(p.call(b,d)){var e=b[d];if(null!=e)switch(d){case "children":case "dangerouslySetInnerHTML":throw Error(k(399,c));default:y(a,d,e)}}a.push("/>");return null} function tb(a,b){a.push(D("title"));var c=null,d=null,e;for(e in b)if(p.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:y(a,e,f)}}a.push(">");b=Array.isArray(c)?2>c.length?c[0]:null:c;"function"!==typeof b&&"symbol"!==typeof b&&null!==b&&void 0!==b&&a.push(r(""+b));z(a,d,c);a.push("");return null} function ub(a,b){a.push(D("script"));var c=null,d=null,e;for(e in b)if(p.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:y(a,e,f)}}a.push(">");z(a,d,c);"string"===typeof c&&a.push(r(c));a.push("");return null} function vb(a,b,c){a.push(D(c));var d=c=null,e;for(e in b)if(p.call(b,e)){var f=b[e];if(null!=f)switch(e){case "children":c=f;break;case "dangerouslySetInnerHTML":d=f;break;default:y(a,e,f)}}a.push(">");z(a,d,c);return"string"===typeof c?(a.push(r(c)),null):c}var wb=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,xb=new Map;function D(a){var b=xb.get(a);if(void 0===b){if(!wb.test(a))throw Error(k(65,a));b="<"+a;xb.set(a,b)}return b} -function yb(a,b,c,d,e,f,g){switch(b){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "select":a.push(D("select"));var h=null,l=null,n;for(n in c)if(p.call(c,n)){var v=c[n];if(null!=v)switch(n){case "children":h=v;break;case "dangerouslySetInnerHTML":l=v;break;case "defaultValue":case "value":break;default:y(a,n,v)}}a.push(">");z(a,l,h);return h;case "option":var q=f.selectedValue;a.push(D("option"));var U=null,P=null,V=null,G=null,H;for(H in c)if(p.call(c, -H)){var m=c[H];if(null!=m)switch(H){case "children":U=m;break;case "selected":V=m;break;case "dangerouslySetInnerHTML":G=m;break;case "value":P=m;default:y(a,H,m)}}if(null!=q){var C=null!==P?""+P:qb(U);if(Ta(q))for(var M=0;M");z(a,G,U);return U;case "textarea":a.push(D("textarea"));var B=null,Q=null,w=null,E;for(E in c)if(p.call(c,E)){var x=c[E];if(null!=x)switch(E){case "children":w= -x;break;case "value":B=x;break;case "defaultValue":Q=x;break;case "dangerouslySetInnerHTML":throw Error(k(91));default:y(a,E,x)}}null===B&&null!==Q&&(B=Q);a.push(">");if(null!=w){if(null!=B)throw Error(k(92));if(Ta(w)&&1");null!==fa&&fa.forEach(nb,a);return null;case "button":a.push(D("button")); -var N=null,ha=null,ia=null,Ca=null,ja=null,gc=null,hc=null,Da;for(Da in c)if(p.call(c,Da)){var S=c[Da];if(null!=S)switch(Da){case "children":N=S;break;case "dangerouslySetInnerHTML":ha=S;break;case "name":ia=S;break;case "formAction":Ca=S;break;case "formEncType":ja=S;break;case "formMethod":gc=S;break;case "formTarget":hc=S;break;default:y(a,Da,S)}}var ic=ob(a,e,Ca,ja,gc,hc,ia);a.push(">");null!==ic&&ic.forEach(nb,a);z(a,ha,N);if("string"===typeof N){a.push(r(N));var jc=null}else jc=N;return jc; -case "form":a.push(D("form"));var Ea=null,kc=null,X=null,Fa=null,Ga=null,Ha=null,Ia;for(Ia in c)if(p.call(c,Ia)){var Y=c[Ia];if(null!=Y)switch(Ia){case "children":Ea=Y;break;case "dangerouslySetInnerHTML":kc=Y;break;case "action":X=Y;break;case "encType":Fa=Y;break;case "method":Ga=Y;break;case "target":Ha=Y;break;default:y(a,Ia,Y)}}var zb=null,Ab=null;if("function"===typeof X)if("function"===typeof X.$$FORM_ACTION){var Jd=lb(e),oa=X.$$FORM_ACTION(Jd);X=oa.action||"";Fa=oa.encType;Ga=oa.method;Ha= -oa.target;zb=oa.data;Ab=oa.name}else a.push(" ","action",'="',mb,'"'),Ha=Ga=Fa=X=null,pb(e);null!=X&&y(a,"action",X);null!=Fa&&y(a,"encType",Fa);null!=Ga&&y(a,"method",Ga);null!=Ha&&y(a,"target",Ha);a.push(">");null!==Ab&&(a.push('"),null!==zb&&zb.forEach(nb,a));z(a,kc,Ea);if("string"===typeof Ea){a.push(r(Ea));var lc=null}else lc=Ea;return lc;case "menuitem":a.push(D("menuitem"));for(var ab in c)if(p.call(c,ab)){var mc=c[ab];if(null!=mc)switch(ab){case "children":case "dangerouslySetInnerHTML":throw Error(k(400)); -default:y(a,ab,mc)}}a.push(">");return null;case "title":if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var nc=tb(a,c);else tb(e.hoistableChunks,c),nc=null;return nc;case "link":return rb(a,c,e,d,g,f.insertionMode,f.noscriptTagInScope);case "script":var Bb=c.async;if("string"!==typeof c.src||!c.src||!Bb||"function"===typeof Bb||"symbol"===typeof Bb||c.onLoad||c.onError||3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var oc=ub(a,c);else{var Cb="[script]"+c.src,Ja=d.scriptsMap.get(Cb); -if(!Ja){Ja={type:"script",chunks:[],state:0,props:null};d.scriptsMap.set(Cb,Ja);d.scripts.add(Ja);var pc=c,bb=d.preloadsMap.get(Cb);if(bb){bb.state|=4;var cb=pc=ca({},c),qc=bb.props;null==cb.crossOrigin&&(cb.crossOrigin=qc.crossOrigin);null==cb.integrity&&(cb.integrity=qc.integrity)}ub(Ja.chunks,pc)}g&&a.push("\x3c!-- --\x3e");oc=null}return oc;case "style":var Ka=c.precedence,La=c.href;if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp||"string"!==typeof Ka||"string"!==typeof La||""=== -La){a.push(D("style"));var pa=null,rc=null,Ma;for(Ma in c)if(p.call(c,Ma)){var db=c[Ma];if(null!=db)switch(Ma){case "children":pa=db;break;case "dangerouslySetInnerHTML":rc=db;break;default:y(a,Ma,db)}}a.push(">");var Na=Array.isArray(pa)?2>pa.length?pa[0]:null:pa;"function"!==typeof Na&&"symbol"!==typeof Na&&null!==Na&&void 0!==Na&&a.push(r(""+Na));z(a,rc,pa);a.push("");var sc=null}else{var tc="[style]"+La,T=d.stylesMap.get(tc);if(!T){if(T=d.stylePrecedences.get(Ka))T.props.hrefs.push(La); -else{T={type:"style",chunks:[],state:0,props:{precedence:Ka,hrefs:[La]}};d.stylePrecedences.set(Ka,T);var uc=new Set;uc.add(T);d.precedences.set(Ka,uc)}d.stylesMap.set(tc,T);d.boundaryResources&&d.boundaryResources.add(T);var vc=T.chunks,qa=null,wc=null,eb;for(eb in c)if(p.call(c,eb)){var Db=c[eb];if(null!=Db)switch(eb){case "children":qa=Db;break;case "dangerouslySetInnerHTML":wc=Db}}var Oa=Array.isArray(qa)?2>qa.length?qa[0]:null:qa;"function"!==typeof Oa&&"symbol"!==typeof Oa&&null!==Oa&&void 0!== -Oa&&vc.push(r(""+Oa));z(vc,wc,qa)}g&&a.push("\x3c!-- --\x3e");sc=void 0}return sc;case "meta":if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var xc=sb(a,c,"meta");else g&&a.push("\x3c!-- --\x3e"),xc="string"===typeof c.charSet?sb(e.charsetChunks,c,"meta"):sb(e.hoistableChunks,c,"meta");return xc;case "listing":case "pre":a.push(D(b));var Pa=null,Qa=null,Ra;for(Ra in c)if(p.call(c,Ra)){var fb=c[Ra];if(null!=fb)switch(Ra){case "children":Pa=fb;break;case "dangerouslySetInnerHTML":Qa= -fb;break;default:y(a,Ra,fb)}}a.push(">");if(null!=Qa){if(null!=Pa)throw Error(k(60));if("object"!==typeof Qa||!("__html"in Qa))throw Error(k(61));var ka=Qa.__html;null!==ka&&void 0!==ka&&("string"===typeof ka&&0f.insertionMode&&null===e.headChunks){e.headChunks=[];var yc=vb(e.headChunks,c,"head")}else yc=vb(a,c,"head");return yc;case "html":if(0===f.insertionMode&&null===e.htmlChunks){e.htmlChunks=[""];var zc=vb(e.htmlChunks,c,"html")}else zc=vb(a,c,"html");return zc;default:if(-1!==b.indexOf("-")){a.push(D(b));var Eb=null,Ac=null,Z;for(Z in c)if(p.call(c,Z)){var I=c[Z];if(null!=I&&"function"!==typeof I&&"object"!==typeof I&&!1!==I)switch(!0===I&&(I=""),"className"===Z&&(Z= -"class"),Z){case "children":Eb=I;break;case "dangerouslySetInnerHTML":Ac=I;break;case "style":jb(a,I);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:sa(Z)&&"function"!==typeof I&&"symbol"!==typeof I&&a.push(" ",Z,'="',r(I),'"')}}a.push(">");z(a,Ac,Eb);return Eb}}return vb(a,c,b)}function Fb(a,b){b=b.bootstrapChunks;for(var c=0;c')} +function yb(a,b,c,d,e,f,g){switch(b){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "select":a.push(D("select"));var h=null,l=null,m;for(m in c)if(p.call(c,m)){var v=c[m];if(null!=v)switch(m){case "children":h=v;break;case "dangerouslySetInnerHTML":l=v;break;case "defaultValue":case "value":break;default:y(a,m,v)}}a.push(">");z(a,l,h);return h;case "option":var q=f.selectedValue;a.push(D("option"));var U=null,P=null,V=null,G=null,H;for(H in c)if(p.call(c, +H)){var n=c[H];if(null!=n)switch(H){case "children":U=n;break;case "selected":V=n;break;case "dangerouslySetInnerHTML":G=n;break;case "value":P=n;default:y(a,H,n)}}if(null!=q){var C=null!==P?""+P:qb(U);if(Ta(q))for(var M=0;M");z(a,G,U);return U;case "textarea":a.push(D("textarea"));var B=null,Q=null,w=null,E;for(E in c)if(p.call(c,E)){var x=c[E];if(null!=x)switch(E){case "children":w= +x;break;case "value":B=x;break;case "defaultValue":Q=x;break;case "dangerouslySetInnerHTML":throw Error(k(91));default:y(a,E,x)}}null===B&&null!==Q&&(B=Q);a.push(">");if(null!=w){if(null!=B)throw Error(k(92));if(Ta(w)&&1");null!==fa&&fa.forEach(nb,a);return null;case "button":a.push(D("button")); +var N=null,ha=null,ia=null,Ba=null,ja=null,gc=null,hc=null,Ca;for(Ca in c)if(p.call(c,Ca)){var S=c[Ca];if(null!=S)switch(Ca){case "children":N=S;break;case "dangerouslySetInnerHTML":ha=S;break;case "name":ia=S;break;case "formAction":Ba=S;break;case "formEncType":ja=S;break;case "formMethod":gc=S;break;case "formTarget":hc=S;break;default:y(a,Ca,S)}}var ic=ob(a,e,Ba,ja,gc,hc,ia);a.push(">");null!==ic&&ic.forEach(nb,a);z(a,ha,N);if("string"===typeof N){a.push(r(N));var jc=null}else jc=N;return jc; +case "form":a.push(D("form"));var Da=null,kc=null,X=null,Ea=null,Fa=null,Ga=null,Ha;for(Ha in c)if(p.call(c,Ha)){var Y=c[Ha];if(null!=Y)switch(Ha){case "children":Da=Y;break;case "dangerouslySetInnerHTML":kc=Y;break;case "action":X=Y;break;case "encType":Ea=Y;break;case "method":Fa=Y;break;case "target":Ga=Y;break;default:y(a,Ha,Y)}}var zb=null,Ab=null;if("function"===typeof X)if("function"===typeof X.$$FORM_ACTION){var Jd=lb(e),oa=X.$$FORM_ACTION(Jd);X=oa.action||"";Ea=oa.encType;Fa=oa.method;Ga= +oa.target;zb=oa.data;Ab=oa.name}else a.push(" ","action",'="',mb,'"'),Ga=Fa=Ea=X=null,pb(e);null!=X&&y(a,"action",X);null!=Ea&&y(a,"encType",Ea);null!=Fa&&y(a,"method",Fa);null!=Ga&&y(a,"target",Ga);a.push(">");null!==Ab&&(a.push('"),null!==zb&&zb.forEach(nb,a));z(a,kc,Da);if("string"===typeof Da){a.push(r(Da));var lc=null}else lc=Da;return lc;case "menuitem":a.push(D("menuitem"));for(var $a in c)if(p.call(c,$a)){var mc=c[$a];if(null!=mc)switch($a){case "children":case "dangerouslySetInnerHTML":throw Error(k(400)); +default:y(a,$a,mc)}}a.push(">");return null;case "title":if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var nc=tb(a,c);else tb(e.hoistableChunks,c),nc=null;return nc;case "link":return rb(a,c,e,d,g,f.insertionMode,f.noscriptTagInScope);case "script":var Bb=c.async;if("string"!==typeof c.src||!c.src||!Bb||"function"===typeof Bb||"symbol"===typeof Bb||c.onLoad||c.onError||3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var oc=ub(a,c);else{var Cb="[script]"+c.src,Ia=d.scriptsMap.get(Cb); +if(!Ia){Ia={type:"script",chunks:[],state:0,props:null};d.scriptsMap.set(Cb,Ia);d.scripts.add(Ia);var pc=c,ab=d.preloadsMap.get(Cb);if(ab){ab.state|=4;var bb=pc=ca({},c),qc=ab.props;null==bb.crossOrigin&&(bb.crossOrigin=qc.crossOrigin);null==bb.integrity&&(bb.integrity=qc.integrity)}ub(Ia.chunks,pc)}g&&a.push("\x3c!-- --\x3e");oc=null}return oc;case "style":var Ja=c.precedence,Ka=c.href;if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp||"string"!==typeof Ja||"string"!==typeof Ka||""=== +Ka){a.push(D("style"));var pa=null,rc=null,La;for(La in c)if(p.call(c,La)){var cb=c[La];if(null!=cb)switch(La){case "children":pa=cb;break;case "dangerouslySetInnerHTML":rc=cb;break;default:y(a,La,cb)}}a.push(">");var Ma=Array.isArray(pa)?2>pa.length?pa[0]:null:pa;"function"!==typeof Ma&&"symbol"!==typeof Ma&&null!==Ma&&void 0!==Ma&&a.push(r(""+Ma));z(a,rc,pa);a.push("");var sc=null}else{var tc="[style]"+Ka,T=d.stylesMap.get(tc);if(!T){if(T=d.stylePrecedences.get(Ja))T.props.hrefs.push(Ka); +else{T={type:"style",chunks:[],state:0,props:{precedence:Ja,hrefs:[Ka]}};d.stylePrecedences.set(Ja,T);var uc=new Set;uc.add(T);d.precedences.set(Ja,uc)}d.stylesMap.set(tc,T);d.boundaryResources&&d.boundaryResources.add(T);var vc=T.chunks,qa=null,wc=null,db;for(db in c)if(p.call(c,db)){var Db=c[db];if(null!=Db)switch(db){case "children":qa=Db;break;case "dangerouslySetInnerHTML":wc=Db}}var Na=Array.isArray(qa)?2>qa.length?qa[0]:null:qa;"function"!==typeof Na&&"symbol"!==typeof Na&&null!==Na&&void 0!== +Na&&vc.push(r(""+Na));z(vc,wc,qa)}g&&a.push("\x3c!-- --\x3e");sc=void 0}return sc;case "meta":if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var xc=sb(a,c,"meta");else g&&a.push("\x3c!-- --\x3e"),xc="string"===typeof c.charSet?sb(e.charsetChunks,c,"meta"):"viewport"===c.name?sb(e.preconnectChunks,c,"meta"):sb(e.hoistableChunks,c,"meta");return xc;case "listing":case "pre":a.push(D(b));var Oa=null,Pa=null,Qa;for(Qa in c)if(p.call(c,Qa)){var eb=c[Qa];if(null!=eb)switch(Qa){case "children":Oa= +eb;break;case "dangerouslySetInnerHTML":Pa=eb;break;default:y(a,Qa,eb)}}a.push(">");if(null!=Pa){if(null!=Oa)throw Error(k(60));if("object"!==typeof Pa||!("__html"in Pa))throw Error(k(61));var ka=Pa.__html;null!==ka&&void 0!==ka&&("string"===typeof ka&&0f.insertionMode&&null===e.headChunks){e.headChunks=[];var yc=vb(e.headChunks,c,"head")}else yc=vb(a,c,"head");return yc;case "html":if(0===f.insertionMode&&null===e.htmlChunks){e.htmlChunks=[""];var zc=vb(e.htmlChunks,c,"html")}else zc=vb(a,c,"html");return zc;default:if(-1!==b.indexOf("-")){a.push(D(b)); +var Eb=null,Ac=null,Z;for(Z in c)if(p.call(c,Z)){var I=c[Z];if(null!=I&&"function"!==typeof I&&"object"!==typeof I&&!1!==I)switch(!0===I&&(I=""),"className"===Z&&(Z="class"),Z){case "children":Eb=I;break;case "dangerouslySetInnerHTML":Ac=I;break;case "style":jb(a,I);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:sa(Z)&&"function"!==typeof I&&"symbol"!==typeof I&&a.push(" ",Z,'="',r(I),'"')}}a.push(">");z(a,Ac,Eb);return Eb}}return vb(a,c,b)} +function Fb(a,b){b=b.bootstrapChunks;for(var c=0;c')} function Hb(a,b,c,d){switch(c.insertionMode){case 0:case 1:case 2:return a.push('