import*asefrom"@wordpress/interactivity";vart={317:e=>{e.exports=import("@wordpress/a11y")}},o={};functioni(e){varn=o[e];if(void0!==n)returnn.exports;vara=o[e]={exports:{}};returnt[e](a,a.exports,i),a.exports}i.d=(e,t)=>{for(varoint)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);varn={};i.d(n,{o:()=>D,w:()=>A});consta=(e=>{vart={};returni.d(t,e),t})({getConfig:()=>e.getConfig,privateApis:()=>e.privateApis,store:()=>e.store});varr;const{directivePrefix:s,getRegionRootFragment:d,initialVdom:l,toVdom:c,render:g,parseServerData:p,populateServerData:u,batch:w}=(0,a.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),h=null!==(r=(0,a.getConfig)("core/router").navigationMode)&&void0!==r?r:"regionBased",f=newMap,v=(newMap,e=>{constt=newURL(e,window.location.href);returnt.pathname+t.search}),m=async(e,{vdom:t}={})=>{consto={body:void0};if("regionBased"===h){consti=`data-${s}-router-region`;e.querySelectorAll(`[${i}]`).forEach((e=>{constn=e.getAttribute(i);o[n]=t?.has(e)?t.get(e):c(e)}))}consti=e.querySelector("title")?.innerText,n=p(e);return{regions:o,head:undefined,title:i,initialData:n}},y=e=>{w((()=>{if("regionBased"===h){u(e.initialData);constt=`data-${s}-router-region`;document.querySelectorAll(`[${t}]`).forEach((o=>{consti=o.getAttribute(t),n=d(o);g(e.regions[i],n)}))}e.title&&(document.title=e.title)}))},x=e=>(window.location.assign(e),newPromise((()=>{})));window.addEventListener("popstate",(async()=>{conste=v(window.location.href),t=f.has(e)&&awaitf.get(e);t?(y(t),A.url=window.location.href):window.location.reload()})),f.set(v(window.location.href),Promise.resolve(m(document,{vdom:l})));letb="",S=!1;constP={loading:"Loading page, please wait.",loaded:"Page Loaded."},{state:A,actions:D}=(0,a.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1}},actions:{*navigate(e,t={}){const{clientNavigationDisabled:o}=(0,a.getConfig)();o&&(yieldx(e));consti=v(e),{navigation:n}=A,{loadingAnimation:r=!0,screenReaderAnnouncement:s=!0,timeout:d=1e4}=t;b=e,D.prefetch(i,t);constl=newPromise((e=>setTimeout(e,d))),c=setTimeout((()=>{b===e&&(r&&(n.hasStarted=!0,n.hasFinished=!1),s&&C("loading"))}),400),g=yieldPromise.race([f.get(i),l]);if(clearTimeout(c),b===e)if(g&&!g.initialData?.config?.["core/router"]?.clientNavigationDisabled){yieldy(g),window.history[t.replace?"replaceState":"pushState"]({},"",e),A.url=e,r&&(n.hasStarted=!1,n.hasFinished=!0),s&&C("loaded");const{hash:o}=newURL(e,window.location.href);o&&document.querySelector(o)?.scrollIntoView()}elseyieldx(e)},prefetch(e,t={}){const{clientNavigationDisabled:o}=(0,a.getConfig)();if(o)return;consti=v(e);!t.force&&f.has(i)||f.set(i,(async(e,{html:t})=>{try{if(!t){consto=awaitwindow.fetch(e);if(200!==o.status)return!1;t=awaito.text()}consto=(newwindow.DOMParser).parseFromString(t,"text/html");returnm(o)}catch(e){return!1}})(i,{html:t.html}))}}});functionC(e){if(!S){S=!0;conste=document.getElementById("wp-script-module-data-@wordpress/interactivity-router")?.textContent;if(e)try{constt=JSON.parse(e);"string"==typeoft?.i18n?.loading&&(P.loading=t.i18n.loading),"string"==typeoft?.i18n?.loaded&&(P.loaded=t.i18n.loaded)}catch{}elseA.navigation.texts?.loading&&(P.loading=A.navigation.texts.loading),A.navigation.texts?.loaded&&(P.loaded=A.navigation.texts.loaded)}constt=P[e];Promise.resolve().then(i.bind(i,317)).then((({speak:e})=>e(t)),(()=>{}))}varF=n.o,L=n.w;export{Fasactions,Lasstate};