{const C='"'===e.source[A]||"'"===e.source[A];return`e$_${B}=m${C?"[":"."}${e.source.slice(A,Q)}${C?"]":""}`})).join(",")}}${e.analysis[1].length?`let ${e.analysis[1].map(((A,Q)=>`e$_${Q}`)).join(",")};`:""}export {${e.analysis[1].map((({s:A,e:Q},B)=>`e$_${B} as ${e.source.slice(A,Q)}`)).join(",")}}\n//# sourceURL=${e.responseUrl}?cycle`))),Q(B-1),E+=`/*${C.slice(B-1,s)}*/${b(g)}`,!r&&e.shellUrl&&(E+=`;import*as m$_${o} from'${e.blobUrl}';import{u$_ as u$_${o}}from'${e.shellUrl}';u$_${o}(m$_${o})`,e.shellUrl=void 0),t=s}else{if(-2===i)throw Error("The import.meta property is not supported.");Q(r),E+="wpInteractivityRouterImport(",g.push(s-1),t=B}A.shellUrl&&(E+=`\n;import{u$_}from'${A.shellUrl}';try{u$_({${B.filter((A=>A.ln)).map((({s:A,e:Q,ln:e})=>`${C.slice(A,Q)}:${e}`)).join(",")}})}catch(_){};\n`),Q(C.length)}else E+=C;let t=!1;E=E.replace(X,((Q,e,B)=>(t=!e,Q.replace(B,(()=>new URL(B,A.responseUrl).toString()))))),t||(E+="\n//# sourceURL="+A.responseUrl),A.blobUrl=x(E),A.source=void 0}const X=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/;function $(A,Q,e){let B=q[A];if(B)return B;if(B={url:A},q[A]){let A=0;for(;q[B.url+ ++A];);B.url+=A}return q[B.url]=B,B.fetchPromise=(async()=>{let C;({responseUrl:B.responseUrl,source:C}=await(M[A]||async function(A,Q,e){let B;try{B=await fetch(A,Q)}catch(Q){throw Error(`Network error${S(A,e)}.`)}if(!B.ok)throw Error(`Error ${B.status}${S(A,e)}.`);const C=B.headers.get("content-type");if(!R.test(C))throw Error(`Bad Content-Type "${C}"${S(A,e)}.`);return{responseUrl:B.url,source:await B.text()}}(A,Q,e)));try{B.analysis=J(C,B.url)}catch(A){console.error(A),B.analysis=[[],[],!1,!1]}return B.source=C,B})(),B.linkPromise=B.fetchPromise.then((async()=>{let A=Q;B.deps=(await Promise.all(B.analysis[0].map((async({n:Q,d:e})=>{if(-1!==e||!Q)return;const C=d(Q,B.responseUrl||B.url);return v&&v(C)?{blobUrl:C}:(A.integrity&&(A={...A,integrity:void 0}),$(C,A,B.responseUrl).fetchPromise)})))).filter((A=>A))})),B}const O=A=>import(A);async function j(A,Q){await F;const e=$(A,Q,null),B={};return await H(e,B),P(e,B),await Promise.resolve(),e}async function Z(A){const Q=await O(A.blobUrl);return A.shellUrl&&(await O(A.shellUrl)).u$_(Q),Q}const V=document.baseURI;async function T(A){return await F,async function(A,Q){return Z(await j(A,Q))}(d(A,V),{credentials:"same-origin"})}Object.defineProperty(self,"wpInteractivityRouterImport",{value:T,writable:!1,enumerable:!1,configurable:!1});const W=new Set,_=A=>{const Q=A.querySelector("script#wp-importmap[type=importmap]"),e=Q?JSON.parse(Q.text):{imports:{},scopes:{}};for(const A in Y.imports)delete e.imports[A];return[...A.querySelectorAll("script[type=module][src][data-wp-router-options]")].filter((A=>{try{const Q=JSON.parse(A.getAttribute("data-wp-router-options"));return!0===Q?.loadOnClientNavigation}catch{return!1}})).map((A=>A.src)).filter((A=>!W.has(A))).map((A=>async function(A,Q){return h(Q),await F,j(d(A,V),{credentials:"same-origin"})}(A,e)))},{getRegionRootFragment:z,initialVdom:AA,toVdom:QA,render:eA,parseServerData:BA,populateServerData:CA,batch:EA,routerRegions:tA,h:oA,navigationSignal:gA}=(0,E.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),rA="data-wp-router-region",sA="data-wp-interactive",iA=`[${sA}][${rA}], [${sA}] [${sA}][${rA}]`,nA=new Map,aA=A=>{const Q=new URL(A,window.location.href);return Q.pathname+Q.search},IA=A=>{const Q=A.getAttribute(rA);try{const{id:A,attachTo:e}=JSON.parse(Q);return{id:A,attachTo:e}}catch(A){return{id:Q}}},cA=A=>{if(!A)return A;const Q=A.props.priorityLevels,e=Q.findIndex((A=>A.includes("router-region"))),B=-1!==e?Q.slice(e+1):Q;return B.length>0?oA(A.type,{...A.props,priorityLevels:B}):A.props.element},wA=new WeakMap,lA=new WeakMap,KA=new Set,pA=async(A,Q,{vdom:e}={})=>{Q.querySelectorAll("noscript").forEach((A=>A.remove()));const B={},C={};Q.querySelectorAll(iA).forEach((A=>{const{id:Q,attachTo:E}=IA(A);A.parentElement.closest(`[${rA}]`)?B[Q]=void 0:B[Q]=e?.has(A)?e.get(A):QA(A),E&&!KA.has(Q)&&(C[Q]=E)}));const E=Q.querySelector("title")?.innerText,t=BA(Q),[o,g]=await Promise.all([Promise.all(n(Q,A)),Promise.all(_(Q))]);return{regions:B,regionsToAttach:C,styles:o,scriptModules:g,title:E,initialData:t,url:A}},DA=A=>{var Q;Q=A.styles,window.document.querySelectorAll("style,link[rel=stylesheet]").forEach((A=>{if(A.sheet)if(Q.includes(A)){if("preload"===A.sheet.media.mediaText){const{originalMedia:Q="all"}=A.dataset;A.sheet.media.mediaText=Q}A.sheet.disabled=!1}else A.sheet.disabled=!0}));const e={...A.regionsToAttach};EA((()=>{CA(A.initialData),gA.value+=1,tA.forEach((A=>{A.value=null}));const Q=new Set;for(const A in e){const B=document.querySelector(e[A]);wA.has(B)||wA.set(B,[]);const C=wA.get(B);C.includes(A)||(C.push(A),Q.add(B))}for(const Q in A.regions)tA.has(Q)&&(tA.get(Q).value=cA(A.regions[Q]));Q.forEach((Q=>{const e=wA.get(Q).map((Q=>A.regions[Q]));if(!lA.has(Q)){const A=e.map((({props:A,type:e})=>{const B="function"==typeof e?A.type:e,C=document.createElement(B);return Q.appendChild(C),C}));lA.set(Q,z(A))}const B=lA.get(Q);eA(e,B)}))})),A.title&&(document.title=A.title)},kA=A=>(window.location.assign(A),new Promise((()=>{})));window.addEventListener("popstate",(async()=>{const A=aA(window.location.href),Q=nA.has(A)&&await nA.get(A);Q?EA((()=>{uA.url=window.location.href,DA(Q)})):window.location.reload()})),document.querySelectorAll(iA).forEach((A=>{const{id:Q,attachTo:e}=IA(A);e&&KA.add(Q)})),window.document.querySelectorAll("script[type=module][src]").forEach((({src:A})=>{return Q=A,void W.add(Q);var Q})),nA.set(aA(window.location.href),Promise.resolve(pA(aA(window.location.href),document,{vdom:AA})));let hA="",dA=!1;const fA={loading:"Loading page, please wait.",loaded:"Page Loaded."},{state:uA,actions:JA}=(0,E.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1}},actions:{*navigate(A,Q={}){const{clientNavigationDisabled:e}=(0,E.getConfig)();e&&(yield kA(A));const B=aA(A),{navigation:C}=uA,{loadingAnimation:t=!0,screenReaderAnnouncement:o=!0,timeout:g=1e4}=Q;hA=A,JA.prefetch(B,Q);const r=new Promise((A=>setTimeout(A,g))),s=setTimeout((()=>{hA===A&&(t&&(C.hasStarted=!0,C.hasFinished=!1),o&&mA("loading"))}),400),i=yield Promise.race([nA.get(B),r]);var n;if(clearTimeout(s),hA===A)if(i&&!i.initialData?.config?.["core/router"]?.clientNavigationDisabled){yield(n=i.scriptModules,Promise.all(n.map((A=>Z(A))))),EA((()=>{uA.url=A,t&&(C.hasStarted=!1,C.hasFinished=!0),DA(i)})),window.history[Q.replace?"replaceState":"pushState"]({},"",A),o&&mA("loaded");const{hash:e}=new URL(A,window.location.href);e&&document.querySelector(e)?.scrollIntoView()}else yield kA(A)},*prefetch(A,Q={}){const{clientNavigationDisabled:e}=(0,E.getConfig)();if(e)return;const B=aA(A);!Q.force&&nA.has(B)||nA.set(B,(async(A,{html:Q})=>{try{if(!Q){const e=await window.fetch(A);if(200!==e.status)return!1;Q=await e.text()}const e=(new window.DOMParser).parseFromString(Q,"text/html");return await pA(A,e)}catch(A){return!1}})(B,{html:Q.html})),yield nA.get(B)}}});function mA(A){if(!dA){dA=!0;const A=document.getElementById("wp-script-module-data-@wordpress/interactivity-router")?.textContent;if(A)try{const Q=JSON.parse(A);"string"==typeof Q?.i18n?.loading&&(fA.loading=Q.i18n.loading),"string"==typeof Q?.i18n?.loaded&&(fA.loaded=Q.i18n.loaded)}catch{}else uA.navigation.texts?.loading&&(fA.loading=uA.navigation.texts.loading),uA.navigation.texts?.loaded&&(fA.loaded=uA.navigation.texts.loaded)}const Q=fA[A];Promise.resolve().then(B.bind(B,317)).then((({speak:A})=>A(Q)),(()=>{}))}var NA=C.o,LA=C.w;export{NA as actions,LA as state};