/*! This file is auto-generated */ (()=>{"use strict";var e={66:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function c(e,t,r){var o={};return r.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(i(e,s)&&r.isMergeableObject(t[s])?o[s]=function(e,t){if(!t.customMerge)return u;var r=t.customMerge(e);return"function"==typeof r?r:u}(s,r)(e[s],t[s],r):o[s]=n(t[s],r))})),o}function u(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var i=Array.isArray(r);return i===Array.isArray(e)?i?s.arrayMerge(e,r,s):c(e,r,s):n(r,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return u(e,r,t)}),{})};var a=u;e.exports=a},3249:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,s){null!==s&&"object"===t(s)&&(o=o[1]),e.call(n,o,s,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],s&&r(o.prototype,s),i&&r(o,i),e}();e.exports=o}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{AsyncModeProvider:()=>Je,RegistryConsumer:()=>Ke,RegistryProvider:()=>ze,combineReducers:()=>lt,controls:()=>x,createReduxStore:()=>he,createRegistry:()=>Re,createRegistryControl:()=>j,createRegistrySelector:()=>T,createSelector:()=>$,dispatch:()=>ut,plugins:()=>i,register:()=>vt,registerGenericStore:()=>yt,registerStore:()=>dt,resolveSelect:()=>ft,select:()=>at,subscribe:()=>gt,suspendSelect:()=>pt,use:()=>bt,useDispatch:()=>ct,useRegistry:()=>Be,useSelect:()=>et,useSuspenseSelect:()=>tt,withDispatch:()=>st,withRegistry:()=>it,withSelect:()=>nt});var o={};r.r(o),r.d(o,{countSelectorsByStatus:()=>oe,getCachedResolvers:()=>re,getIsResolving:()=>J,getResolutionError:()=>ee,getResolutionState:()=>q,hasFinishedResolution:()=>Y,hasResolutionFailed:()=>Z,hasResolvingSelectors:()=>ne,hasStartedResolution:()=>Q,isResolving:()=>te});var s={};r.r(s),r.d(s,{failResolution:()=>ce,failResolutions:()=>le,finishResolution:()=>ie,finishResolutions:()=>ae,invalidateResolution:()=>fe,invalidateResolutionForStore:()=>pe,invalidateResolutionForStoreSelector:()=>ge,startResolution:()=>se,startResolutions:()=>ue});var i={};r.r(i),r.d(i,{persistence:()=>Ue});const c=window.wp.deprecated;var u=r.n(c);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t{let o=t.get(r.registry);return o||(o=e(r.registry.select),t.set(r.registry,o)),o(...n)};return r.isRegistrySelector=!0,r}function j(e){return e.isRegistryControl=!0,e}const N="@@data/SELECT",A="@@data/RESOLVE_SELECT",L="@@data/DISPATCH";function P(e){return null!==e&&"object"==typeof e}const x={select:function(e,t,...r){return{type:N,storeKey:P(e)?e.name:e,selectorName:t,args:r}},resolveSelect:function(e,t,...r){return{type:A,storeKey:P(e)?e.name:e,selectorName:t,args:r}},dispatch:function(e,t,...r){return{type:L,storeKey:P(e)?e.name:e,actionName:t,args:r}}},M={[N]:j((e=>({storeKey:t,selectorName:r,args:n})=>e.select(t)[r](...n))),[A]:j((e=>({storeKey:t,selectorName:r,args:n})=>{const o=e.select(t)[r].hasResolver?"resolveSelect":"select";return e[o](t)[r](...n)})),[L]:j((e=>({storeKey:t,actionName:r,args:n})=>e.dispatch(t)[r](...n)))},F=window.wp.privateApis,{lock:U,unlock:D}=(0,F.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/data");const k=()=>e=>t=>{return!(r=t)||"object"!=typeof r&&"function"!=typeof r||"function"!=typeof r.then?e(t):t.then((t=>{if(t)return e(t)}));var r},C=(e,t)=>()=>r=>n=>{const o=e.select(t).getCachedResolvers();return Object.entries(o).forEach((([r,o])=>{const s=e.stores[t]?.resolvers?.[r];s&&s.shouldInvalidate&&o.forEach(((o,i)=>{void 0!==o&&("finished"!==o.status&&"error"!==o.status||s.shouldInvalidate(n,...i)&&e.dispatch(t).invalidateResolution(r,i))}))})),r(n)};function V(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function G(e){if(null==e)return[];const t=e.length;let r=t;for(;r>0&&void 0===e[r-1];)r--;return r===t?e:e.slice(0,r)}const H=(W="selectorName",e=>(t={},r)=>{const n=r[W];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})(((e=new(w()),t)=>{switch(t.type){case"START_RESOLUTION":{const r=new(w())(e);return r.set(G(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(w())(e);return r.set(G(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(w())(e);return r.set(G(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(w())(e);for(const e of t.args)r.set(G(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(w())(e);for(const e of t.args)r.set(G(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(w())(e);return t.args.forEach(((e,n)=>{const o={status:"error",error:void 0},s=t.errors[n];s&&(o.error=s),r.set(G(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(w())(e);return r.delete(G(t.args)),r}}return e}));var W;const K=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:r,...n}=e;return n}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return H(e,t)}return e};var z={};function B(e){return[e]}function X(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;nArray.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}const oe=$((e=>{const t={};return Object.values(e).forEach((e=>Array.from(e._map.values()).forEach((e=>{var r;const n=null!==(r=e[1]?.status)&&void 0!==r?r:"error";t[n]||(t[n]=0),t[n]++})))),t}),(e=>[e]));function se(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function ie(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function ce(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function ue(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function ae(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function le(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function fe(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function pe(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function ge(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const ye=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},de=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,r])=>[e,t(r,e)]))),be=(e,t)=>t instanceof Map?Object.fromEntries(t):t instanceof window.HTMLElement?null:t;function ve(e){const t=new WeakMap;return{get(r,n){let o=t.get(r);return o||(o=e(r,n),t.set(r,o)),o}}}function he(e,t){const r={},n={},i={privateActions:r,registerPrivateActions:e=>{Object.assign(r,e)},privateSelectors:n,registerPrivateSelectors:e=>{Object.assign(n,e)}},c={name:e,instantiate:c=>{const u=new Set,a=t.reducer,l=function(e,t,r,n){const o={...t.controls,...M},s=de(o,(e=>e.isRegistryControl?e(r):e)),i=[C(r,e),k,E()(s),V(n)],c=[O(...i)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:be}}));const{reducer:u,initialState:a}=t,l=I({metadata:K,root:u});return h(l,{root:a},(0,_.compose)(c))}(e,t,c,{registry:c,get dispatch(){return b},get select(){return j},get resolveSelect(){return L()}});U(l,i);const f=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(ye(r)),clear(t,r){e[t]&&e[t].delete(ye(r))},markAsRunning(t,r){e[t]||(e[t]=new(w())),e[t].set(ye(r),!0)}}}();function p(e){return(...t)=>Promise.resolve(l.dispatch(e(...t)))}const g={...de(s,p),...de(t.actions,p)},y=ve(p),d=new Proxy((()=>{}),{get:(e,t)=>{const n=r[t];return n?y.get(n,t):g[t]}}),b=new Proxy(d,{apply:(e,t,[r])=>l.dispatch(r)});U(g,d);const v=t.resolvers?function(e){return de(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(t.resolvers):{};function S(e,t){e.isRegistrySelector&&(e.registry=c);const r=(...t)=>{t=Se(e,t);const r=l.__unstableOriginalGetState();return e.isRegistrySelector&&(e.registry=c),e(r.root,...t)};r.__unstableNormalizeArgs=e.__unstableNormalizeArgs;const n=v[t];return n?function(e,t,r,n,o){function s(e){const s=n.getState();if(o.isRunning(t,e)||"function"==typeof r.isFulfilled&&r.isFulfilled(s,...e))return;const{metadata:i}=n.__unstableOriginalGetState();Q(i,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),n.dispatch(se(t,e));try{const o=r.fulfill(...e);o&&await n.dispatch(o),n.dispatch(ie(t,e))}catch(r){n.dispatch(ce(t,e,r))}}),0))}const i=(...t)=>(s(t=Se(e,t)),e(...t));return i.hasResolver=!0,i}(r,t,n,l,f):(r.hasResolver=!1,r)}const m={...de(o,(function(e){const r=(...r)=>{const n=l.__unstableOriginalGetState(),o=r&&r[0],s=r&&r[1],i=t?.selectors?.[o];return o&&i&&(r[1]=Se(i,s)),e(n.metadata,...r)};return r.hasResolver=!1,r})),...de(t.selectors,S)},R=ve(S);for(const[e,t]of Object.entries(n))R.get(t,e);const T=new Proxy((()=>{}),{get:(e,t)=>{const r=n[t];return r?R.get(r,t):m[t]}}),j=new Proxy(T,{apply:(e,t,[r])=>r(l.__unstableOriginalGetState())});U(m,T);const N=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:o,hasResolutionFailed:s,isResolving:i,getCachedResolvers:c,getResolutionState:u,getResolutionError:a,hasResolvingSelectors:l,countSelectorsByStatus:f,...p}=e;return de(p,((r,n)=>r.hasResolver?(...o)=>new Promise(((s,i)=>{const c=()=>e.hasFinishedResolution(n,o),u=t=>{if(e.hasResolutionFailed(n,o)){const t=e.getResolutionError(n,o);i(t)}else s(t)},a=()=>r.apply(null,o),l=a();if(c())return u(l);const f=t.subscribe((()=>{c()&&(f(),u(a()))}))})):async(...e)=>r.apply(null,e)))}(m,l),A=function(e,t){return de(e,((r,n)=>r.hasResolver?(...o)=>{const s=r.apply(null,o);if(e.hasFinishedResolution(n,o)){if(e.hasResolutionFailed(n,o))throw e.getResolutionError(n,o);return s}throw new Promise((r=>{const s=t.subscribe((()=>{e.hasFinishedResolution(n,o)&&(r(),s())}))}))}:r))}(m,l),L=()=>N;l.__unstableOriginalGetState=l.getState,l.getState=()=>l.__unstableOriginalGetState().root;const P=l&&(e=>(u.add(e),()=>u.delete(e)));let x=l.__unstableOriginalGetState();return l.subscribe((()=>{const e=l.__unstableOriginalGetState(),t=e!==x;if(x=e,t)for(const e of u)e()})),{reducer:a,store:l,actions:g,selectors:m,resolvers:v,getSelectors:()=>m,getResolveSelectors:L,getSuspendSelectors:()=>A,getActions:()=>g,subscribe:P}}};return U(c,i),c}function Se(e,t){return e.__unstableNormalizeArgs&&"function"==typeof e.__unstableNormalizeArgs&&t?.length?e.__unstableNormalizeArgs(t):t}const Oe={name:"core/data",instantiate(e){const t=t=>(r,...n)=>e.select(r)[t](...n),r=t=>(r,...n)=>e.dispatch(r)[t](...n);return{getSelectors:()=>Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)]))),getActions:()=>Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)]))),subscribe:()=>()=>()=>{}}}};function me(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe:e=>(r.add(e),()=>r.delete(e)),pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function we(e){return"string"==typeof e?e:e.name}function Re(e={},t=null){const r={},n=me();let o=null;function s(){n.emit()}function i(e,n){if(r[e])return console.error('Store "'+e+'" is already registered.'),r[e];const o=n();if("function"!=typeof o.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof o.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof o.subscribe)throw new TypeError("store.subscribe must be a function");o.emitter=me();const i=o.subscribe;if(o.subscribe=e=>{const t=o.emitter.subscribe(e),r=i((()=>{o.emitter.isPaused?o.emitter.emit():e()}));return()=>{r?.(),t?.()}},r[e]=o,o.subscribe(s),t)try{D(o.store).registerPrivateActions(D(t).privateActionsOf(e)),D(o.store).registerPrivateSelectors(D(t).privateSelectorsOf(e))}catch(e){}return o}let c={batch:function(e){if(n.isPaused)e();else{n.pause(),Object.values(r).forEach((e=>e.emitter.pause()));try{e()}finally{n.resume(),Object.values(r).forEach((e=>e.emitter.resume()))}}},stores:r,namespaces:r,subscribe:(e,o)=>{if(!o)return n.subscribe(e);const s=we(o),i=r[s];return i?i.subscribe(e):t?t.subscribe(e,o):n.subscribe(e)},select:function(e){const n=we(e);o?.add(n);const s=r[n];return s?s.getSelectors():t?.select(n)},resolveSelect:function(e){const n=we(e);o?.add(n);const s=r[n];return s?s.getResolveSelectors():t&&t.resolveSelect(n)},suspendSelect:function(e){const n=we(e);o?.add(n);const s=r[n];return s?s.getSuspendSelectors():t&&t.suspendSelect(n)},dispatch:function(e){const n=we(e),o=r[n];return o?o.getActions():t&&t.dispatch(n)},use:function(e,t){if(!e)return;return c={...c,...e(c,t)},c},register:function(e){i(e.name,(()=>e.instantiate(c)))},registerGenericStore:function(e,t){u()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),i(e,(()=>t))},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return i(e,(()=>he(e,t).instantiate(c))).store},__unstableMarkListeningStores:function(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}};c.register(Oe);for(const[t,r]of Object.entries(e))c.register(he(t,r));t&&t.subscribe(s);const a=(l=c,Object.fromEntries(Object.entries(l).map((([e,t])=>"function"!=typeof t?[e,t]:[e,function(){return c[e].apply(null,arguments)}]))));var l;return U(a,{privateActionsOf:e=>{try{return D(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return D(r[e].store).privateSelectors}catch(e){return{}}}}),a}const Ee=Re(); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ function _e(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ie(e){var t,r;return!1!==_e(e)&&(void 0===(t=e.constructor)||!1!==_e(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var Te=r(66),je=r.n(Te);let Ne;const Ae={getItem:e=>Ne&&Ne[e]?Ne[e]:null,setItem(e,t){Ne||Ae.clear(),Ne[e]=String(t)},clear(){Ne=Object.create(null)}},Le=Ae;let Pe;try{Pe=window.localStorage,Pe.setItem("__wpDataTestLocalStorage",""),Pe.removeItem("__wpDataTestLocalStorage")}catch(e){Pe=Le}const xe=Pe,Me="WP_DATA";function Fe(e,t){const r=function(e){const{storage:t=xe,storageKey:r=Me}=e;let n;return{get:function(){if(void 0===n){const e=t.getItem(r);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,o){n={...n,[e]:o},t.setItem(r,JSON.stringify(n))}}}(t);return{registerStore(t,n){if(!n.persist)return e.registerStore(t,n);const o=r.get()[t];if(void 0!==o){let e=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});e=Ie(e)&&Ie(o)?je()(e,o,{isMergeableObject:Ie}):o,n={...n,initialState:e}}const s=e.registerStore(t,n);return s.subscribe(function(e,t,n){let o;if(Array.isArray(n)){const e=n.reduce(((e,t)=>Object.assign(e,{[t]:(e,r)=>r.nextState[t]})),{});s=lt(e),o=(e,t)=>t.nextState===e?e:s(e,t)}else o=(e,t)=>t.nextState;var s;let i=o(void 0,{nextState:e()});return()=>{const n=o(i,{nextState:e()});n!==i&&(r.set(t,n),i=n)}}(s.getState,t,n.persist)),s}}}Fe.__unstableMigrate=()=>{};const Ue=Fe,De=window.wp.priorityQueue,ke=window.wp.element,Ce=window.wp.isShallowEqual;var Ve=r.n(Ce);const Ge=(0,ke.createContext)(Ee),{Consumer:He,Provider:We}=Ge,Ke=He,ze=We;function Be(){return(0,ke.useContext)(Ge)}const Xe=(0,ke.createContext)(!1),{Consumer:$e,Provider:qe}=Xe,Je=qe;const Qe=(0,De.createQueue)();function Ye(e,t){const r=t?e.suspendSelect:e.select,n={};let o,s,i,c,u=!1;const a=new Map;function l(t){var r;return null!==(r=e.stores[t]?.store?.getState?.())&&void 0!==r?r:{}}return(t,f)=>{function p(){if(u&&t===o)return s;const f={current:null},p=e.__unstableMarkListeningStores((()=>t(r,e)),f);if(c)c.updateStores(f.current);else{for(const e of f.current)a.set(e,l(e));c=(t=>{const r=[...t],o=new Set;return{subscribe:function(t){if(u)for(const e of r)a.get(e)!==l(e)&&(u=!1);a.clear();const s=()=>{u=!1,t()},c=()=>{i?Qe.add(n,s):s()},f=[];function p(t){f.push(e.subscribe(c,t))}for(const e of r)p(e);return o.add(p),()=>{o.delete(p);for(const e of f.values())e?.();Qe.cancel(n)}},updateStores:function(e){for(const t of e)if(!r.includes(t)){r.push(t);for(const e of o)e(t)}}}})(f.current)}Ve()(s,p)||(s=p),o=t,u=!0}return i&&!f&&(u=!1,Qe.cancel(n)),p(),i=f,{subscribe:c.subscribe,getValue:function(){return p(),s}}}}function Ze(e,t,r){const n=Be(),o=(0,ke.useContext)(Xe),s=(0,ke.useMemo)((()=>Ye(n,e)),[n,e]),i=(0,ke.useCallback)(t,r),{subscribe:c,getValue:u}=s(i,o),a=(0,ke.useSyncExternalStore)(c,u,u);return(0,ke.useDebugValue)(a),a}function et(e,t){const r="function"!=typeof e,n=(0,ke.useRef)(r);if(r!==n.current){const e=n.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${r?"static":"mapping"} is not allowed`)}return r?(o=e,Be().select(o)):Ze(!1,e,t);var o}function tt(e,t){return Ze(!0,e,t)}const rt=window.ReactJSXRuntime,nt=e=>(0,_.createHigherOrderComponent)((t=>(0,_.pure)((r=>{const n=et(((t,n)=>e(t,r,n)));return(0,rt.jsx)(t,{...r,...n})}))),"withSelect"),ot=(e,t)=>{const r=Be(),n=(0,ke.useRef)(e);return(0,_.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,ke.useMemo)((()=>{const e=n.current(r.dispatch,r);return Object.fromEntries(Object.entries(e).map((([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>n.current(r.dispatch,r)[e](...t)]))))}),[r,...t])},st=e=>(0,_.createHigherOrderComponent)((t=>r=>{const n=ot(((t,n)=>e(t,r,n)),[]);return(0,rt.jsx)(t,{...r,...n})}),"withDispatch"),it=(0,_.createHigherOrderComponent)((e=>t=>(0,rt.jsx)(Ke,{children:r=>(0,rt.jsx)(e,{...t,registry:r})})),"withRegistry"),ct=e=>{const{dispatch:t}=Be();return void 0===e?t:t(e)};function ut(e){return Ee.dispatch(e)}function at(e){return Ee.select(e)}const lt=I,ft=Ee.resolveSelect,pt=Ee.suspendSelect,gt=Ee.subscribe,yt=Ee.registerGenericStore,dt=Ee.registerStore,bt=Ee.use,vt=Ee.register;(window.wp=window.wp||{}).data=n})();