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:()=>P,w:()=>S});constt=(e=>{vart={};returni.d(t,e),t})({getConfig:()=>e.getConfig,privateApis:()=>e.privateApis,store:()=>e.store});varo;const{directivePrefix:a,getRegionRootFragment:r,initialVdom:s,toVdom:d,render:l,parseServerData:c,populateServerData:g,batch:p}=(0,t.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),u=null!==(o=(0,t.getConfig)("core/router").navigationMode)&&void0!==o?o:"regionBased",w=newMap,h=(newMap,e=>{constt=newURL(e,window.location.href);returnt.pathname+t.search}),f=async(e,{vdom:t}={})=>{consto={body:void0};if("regionBased"===u){consti=`data-${a}-router-region`;e.querySelectorAll(`[${i}]`).forEach((e=>{constn=e.getAttribute(i);o[n]=t?.has(e)?t.get(e):d(e)}))}consti=e.querySelector("title")?.innerText,n=c(e);return{regions:o,head:undefined,title:i,initialData:n}},v=e=>{p((()=>{if("regionBased"===u){g(e.initialData);constt=`data-${a}-router-region`;document.querySelectorAll(`[${t}]`).forEach((o=>{consti=o.getAttribute(t),n=r(o);l(e.regions[i],n)}))}e.title&&(document.title=e.title)}))},m=e=>(window.location.assign(e),newPromise((()=>{})));window.addEventListener("popstate",(async()=>{conste=h(window.location.href),t=w.has(e)&&awaitw.get(e);t?(v(t),S.url=window.location.href):window.location.reload()})),w.set(h(window.location.href),Promise.resolve(f(document,{vdom:s})));lety="",x=!1;constb={loading:"Loading page, please wait.",loaded:"Page Loaded."},{state:S,actions:P}=(0,t.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1}},actions:{*navigate(e,o={}){const{clientNavigationDisabled:i}=(0,t.getConfig)();i&&(yieldm(e));constn=h(e),{navigation:a}=S,{loadingAnimation:r=!0,screenReaderAnnouncement:s=!0,timeout:d=1e4}=o;y=e,P.prefetch(n,o);constl=newPromise((e=>setTimeout(e,d))),c=setTimeout((()=>{y===e&&(r&&(a.hasStarted=!0,a.hasFinished=!1),s&&A("loading"))}),400),g=yieldPromise.race([w.get(n),l]);if(clearTimeout(c),y===e)if(g&&!g.initialData?.config?.["core/router"]?.clientNavigationDisabled){yieldv(g),window.history[o.replace?"replaceState":"pushState"]({},"",e),S.url=e,r&&(a.hasStarted=!1,a.hasFinished=!0),s&&A("loaded");const{hash:t}=newURL(e,window.location.href);t&&document.querySelector(t)?.scrollIntoView()}elseyieldm(e)},prefetch(e,o={}){const{clientNavigationDisabled:i}=(0,t.getConfig)();if(i)return;constn=h(e);!o.force&&w.has(n)||w.set(n,(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");returnf(o)}catch(e){return!1}})(n,{html:o.html}))}}});functionA(e){if(!x){x=!0;conste=document.getElementById("wp-script-module-data-@wordpress/interactivity-router")?.textContent;if(e)try{constt=JSON.parse(e);"string"==typeoft?.i18n?.loading&&(b.loading=t.i18n.loading),"string"==typeoft?.i18n?.loaded&&(b.loaded=t.i18n.loaded)}catch{}elseS.navigation.texts?.loading&&(b.loading=S.navigation.texts.loading),S.navigation.texts?.loaded&&(b.loaded=S.navigation.texts.loaded)}constt=b[e];Promise.resolve().then(i.bind(i,317)).then((({speak:e})=>e(t)),(()=>{}))}})();vara=n.o,r=n.w;export{aasactions,rasstate};