(()=>{"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:()=>A});constn=window.wp.element;functionr(){returnr=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},r.apply(this,arguments)}varo;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));vara=function(e){returne};varu="beforeunload",i="popstate";functionc(e){e.preventDefault(),e.returnValue=""}functions(){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)}))}}}functionl(){returnMath.random().toString(36).substr(2,8)}functionf(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}functionh(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,d=function(e){void0===e&&(e={});vart=e.window,n=void0===t?document.defaultView:t,p=n.history;functiond(){vare=n.location,t=e.pathname,r=e.search,o=e.hash,u=p.state||{};return[u.idx,a({pathname:t,search:r,hash:o,state:u.usr||null,key:u.key||"default"})]}varv=null;n.addEventListener(i,(function(){if(v)P.call(v),v=null;else{vare=o.Pop,t=d(),n=t[0],r=t[1];if(P.length){if(null!=n){vara=w-n;a&&(v={action:e,location:r,retry:function(){x(-1*a)}},x(a))}}elsej(e)}}));vary=o.Pop,g=d(),w=g[0],b=g[1],m=s(),P=s();functionO(e){return"string"==typeofe?e:f(e)}functionk(e,t){returnvoid0===t&&(t=null),a(r({pathname:b.pathname,hash:"",search:""},"string"==typeofe?h(e):e,{state:t,key:l()}))}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){y=e;vart=d();w=t[0],b=t[1],m.call({action:y,location:b})}functionx(e){p.go(e)}null==w&&(w=0,p.replaceState(r({},p.state,{idx:w}),""));varE={getaction(){returny},getlocation(){returnb},createHref:O,push:functione(t,r){vara=o.Push,u=k(t,r);if(S(a,u,(function(){e(t,r)}))){vari=A(u,w+1),c=i[0],s=i[1];try{p.pushState(c,"",s)}catch(e){n.location.assign(s)}j(a)}},replace:functione(t,n){varr=o.Replace,a=k(t,n);if(S(r,a,(function(){e(t,n)}))){varu=A(a,w),i=u[0],c=u[1];p.replaceState(i,"",c),j(r)}},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(u,c),function(){t(),P.length||n.removeEventListener(u,c)}}};returnE}(),v=d.push,y=d.replace;d.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);returnv.call(d,o,t)},d.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(d,o,t)};constg=d,w=(0,n.createContext)(),b=(0,n.createContext)();functionm(e){constt=newURLSearchParams(e.search);return{...e,params:Object.fromEntries(t.entries())}}constP=window.wp.privateApis,{lock:O,unlock:k}=(0,P.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/router"),A={};O(A,{useHistory:function(){return(0,n.useContext)(b)},useLocation:function(){return(0,n.useContext)(w)},RouterProvider:function({children:e}){const[t,r]=(0,n.useState)((()=>m(g.location)));return(0,n.useEffect)((()=>g.