(()=>{"use strict";vare={d:(t,n)=>{for(varrinn)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:()=>S});constn=window.React,r=window.wp.element;functiono(){returno=Object.assign?Object.assign.bind():function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},o.apply(this,arguments)}vara;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));varu=function(e){returne};vari="beforeunload",c="popstate";functions(e){e.preventDefault(),e.returnValue=""}functionl(){vare=[];return{getlength(){returne.length},push:function(t){returne.push(t),function(){e=e.filter((function(e){returne!==t}))}},call:function(t){e.forEach((function(e){returne&&e(t)}))}}}functionf(){returnMath.random().toString(36).substr(2,8)}functionh(e){vart=e.pathname,n=void0===t?"/":t,r=e.search,o=void0===r?"":r,a=e.hash,u=void0===a?"":a;returno&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),u&&"#"!==u&&(n+="#"===u.charAt(0)?u:"#"+u),n}functiond(e){vart={};if(e){varn=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));varr=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}returnt}constp=window.wp.url,v=function(e){void0===e&&(e={});vart=e.window,n=void0===t?document.defaultView:t,r=n.history;functionp(){vare=n.location,t=e.pathname,o=e.search,a=e.hash,i=r.state||{};return[i.idx,u({pathname:t,search:o,hash:a,state:i.usr||null,key:i.key||"default"})]}varv=null;n.addEventListener(c,(function(){if(v)P.call(v),v=null;else{vare=a.Pop,t=p(),n=t[0],r=t[1];if(P.length){if(null!=n){varo=g-n;o&&(v={action:e,location:r,retry:function(){x(-1*o)}},x(o))}}elsej(e)}}));varw=a.Pop,y=p(),g=y[0],b=y[1],m=l(),P=l();functionO(e){return"string"==typeofe?e:h(e)}functionk(e,t){returnvoid0===t&&(t=null),u(o({pathname:b.pathname,hash:"",search:""},"string"==typeofe?d(e):e,{state:t,key:f()}))}functionA(e,t){return[{usr:e.state,key:e.key,idx:t},O(e)]}functionS(e,t,n){return!P.length||(P.call({action:e,location:t,retry:n}),!1)}functionj(e){w=e;vart=p();g=t[0],b=t[1],m.call({action:w,location:b})}functionx(e){r.go(e)}null==g&&(g=0,r.replaceState(o({},r.state,{idx:g}),""));varE={getaction(){returnw},getlocation(){returnb},createHref:O,push:functione(t,o){varu=a.Push,i=k(t,o);if(S(u,i,(function(){e(t,o)}))){varc=A(i,g+1),s=c[0],l=c[1];try{r.pushState(s,"",l)}catch(e){n.location.assign(l)}j(u)}},replace:functione(t,n){varo=a.Replace,u=k(t,n);if(S(o,u,(function(){e(t,n)}))){vari=A(u,g),c=i[0],s=i[1];r.replaceState(c,"",s),j(o)}},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){returnm.push(e)},block:function(e){vart=P.push(e);return1===P.length&&n.addEventListener(i,s),function(){t(),P.length||n.removeEventListener(i,s)}}};returnE}(),w=v.push,y=v.replace;v.push=function(e,t){constn=(0,p.getQueryArgs)(window.location.href),r=(0,p.removeQueryArgs)(window.location.href,...Object.keys(n)),o=(0,p.addQueryArgs)(r,e);returnw.call(v,o,t)},v.replace=function(e,t){constn=(0,p.getQueryArgs)(window.location.href),r=(0,p.removeQueryArgs)(window.location.href,...Object.keys(n)),o=(0,p.addQueryArgs)(r,e);returny.call(v,o,t)};constg=v,b=(0,r.createContext)(),m=(0,r.createContext)();functionP(e){constt=newURLSearchParams(e.search);return{...e,params:Object.fromEntries(t.entries())}}constO=window.wp.privateApis,{lock:k,unlock:A}=(0,O.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my theme or plugin will inevitably break in the next version of WordPress.","@wordpress/router"),S={};k(S,{useHistory:function(){return(0,r.useContext)(m)},useLocation:function(){return(0,r.useContext)(b)},RouterProvider:function({children:e}){const[t,o]=(0,r.useState)((()=>P(g.location)));return(0,r.