/*! This file is auto-generated */ !function(){var e={2167:function(e){"use strict";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,i){null!==i&&"object"===t(i)&&(o=o[1]),e.call(n,o,i,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}}],i&&r(o.prototype,i),s&&r(o,s),e}();e.exports=o},9125:function(e){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;t2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;ot=>{let{storeKey:r,selectorName:n,args:o}=t;return e.select(r)[n](...o)})),[N]:I((e=>t=>{let{storeKey:r,selectorName:n,args:o}=t;const i=e.select(r)[n].hasResolver?"resolveSelect":"select";return e[i](r)[n](...o)})),[A]:I((e=>t=>{let{storeKey:r,actionName:n,args:o}=t;return e.dispatch(r)[n](...o)}))};var P=()=>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};const C={name:"core/data",instantiate(e){const t=t=>function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;ifunction(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;iObject.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:()=>()=>()=>{}}}};var F=C;var U=(e,t)=>()=>r=>n=>{const o=e.select(F).getCachedResolvers(t);return Object.entries(o).forEach((r=>{let[o,i]=r;const s=(0,u.get)(e.stores,[t,"resolvers",o]);s&&s.shouldInvalidate&&i.forEach(((r,i)=>{"finished"!==(null==r?void 0:r.status)&&"error"!==(null==r?void 0:r.status)||!s.shouldInvalidate(n,...i)||e.dispatch(F).invalidateResolution(t,o,i)}))})),r(n)};function k(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function x(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 M=(D="selectorName",e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const n=r[D];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(w()),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":{const r=new(w())(e);return r.set(x(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(w())(e);return r.set(x(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(w())(e);return r.set(x(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(w())(e);for(const e of t.args)r.set(x(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(w())(e);for(const e of t.args)r.set(x(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},i=t.errors[n];i&&(o.error=i),r.set(x(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(w())(e);return r.delete(x(t.args)),r}}return e}));var D;var V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return(0,u.has)(e,[t.selectorName])?(0,u.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return M(e,t)}return e};function G(e,t,r){const n=(0,u.get)(e,[t]);if(n)return n.get(x(r))}function H(e,t,r){const n=G(e,t,r);return n&&"resolving"===n.status}function K(e,t,r){return void 0!==G(e,t,r)}function W(e,t,r){var n;const o=null===(n=G(e,t,r))||void 0===n?void 0:n.status;return"finished"===o||"error"===o}function B(e,t,r){var n;return"error"===(null===(n=G(e,t,r))||void 0===n?void 0:n.status)}function X(e,t,r){const n=G(e,t,r);return"error"===(null==n?void 0:n.status)?n.error:null}function z(e,t,r){var n;return"resolving"===(null===(n=G(e,t,r))||void 0===n?void 0:n.status)}function J(e){return e}function $(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function q(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Q(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function Y(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function Z(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function ee(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function te(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function re(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function ne(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const oe=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t};function ie(r,n){return{name:r,instantiate:o=>{const i=n.reducer,c=function(e,t,r,n){const o={...t.controls,...L},i=(0,u.mapValues)(o,(e=>e.isRegistryControl?e(r):e)),c=[m(U(r,e),P,E()(i),k(n))];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e}));const{reducer:a,initialState:l}=t;return S(s()({metadata:V,root:a}),{root:l},(0,u.flowRight)(c))}(r,n,o,{registry:o,get dispatch(){return Object.assign((e=>c.dispatch(e)),g())},get select(){return Object.assign((e=>e(c.__unstableOriginalGetState())),v())},get resolveSelect(){return h()}}),a=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(oe(r)),clear(t,r){e[t]&&e[t].delete(oe(r))},markAsRunning(t,r){e[t]||(e[t]=new(w())),e[t].set(oe(r),!0)}}}();let l;const f=function(e,t){const r=e=>function(){return Promise.resolve(t.dispatch(e(...arguments)))};return(0,u.mapValues)(e,r)}({...t,...n.actions},c);let d=function(e,t){const r=e=>{const r=function(){const r=arguments.length,n=new Array(r+1);n[0]=t.__unstableOriginalGetState();for(let e=0;efunction(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o(e.isRegistrySelector&&(e.registry=o),function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;oe.fulfill?e:{...e,fulfill:e})),i=(t,i)=>{const s=e[i];if(!s)return t.hasResolver=!1,t;const u=function(){for(var e=arguments.length,u=new Array(e),c=0;c{n.clear(i,u),r.dispatch($(i,u));try{await se(r,o,i,...u),r.dispatch(q(i,u))}catch(e){r.dispatch(Q(i,u,e))}})))}return a(...u),t(...u)};return u.hasResolver=!0,u};return{resolvers:o,selectors:(0,u.mapValues)(t,i)}}(n.resolvers,d,c,a);l=e.resolvers,d=e.selectors}const p=function(e,t){const r=(0,u.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","hasResolutionFailed","isResolving","getCachedResolvers","getResolutionState","getResolutionError"]);return(0,u.mapValues)(r,((r,n)=>r.hasResolver?function(){for(var o=arguments.length,i=new Array(o),s=0;s{const u=()=>e.hasFinishedResolution(n,i),c=t=>{if(e.hasResolutionFailed(n,i)){const t=e.getResolutionError(n,i);s(t)}else o(t)},a=()=>r.apply(null,i),l=a();if(u())return c(l);const f=t.subscribe((()=>{u()&&(f(),c(a()))}))}))}:async function(){for(var e=arguments.length,t=new Array(e),n=0;nd,g=()=>f,h=()=>p;c.__unstableOriginalGetState=c.getState,c.getState=()=>c.__unstableOriginalGetState().root;const y=c&&(e=>{let t=c.__unstableOriginalGetState();return c.subscribe((()=>{const r=c.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))});return{reducer:i,store:c,actions:f,selectors:d,resolvers:l,getSelectors:v,getResolveSelectors:h,getActions:g,subscribe:y}}}}async function se(e,t,r){const n=(0,u.get)(t,[r]);if(!n)return;for(var o=arguments.length,i=new Array(o>3?o-3:0),s=3;sArray.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 ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const r={},n=ue(),o=new Set;function i(){n.emit()}const s=e=>n.subscribe(e);function c(e){const n=(0,u.isObject)(e)?e.name:e;o.add(n);const i=r[n];return i?i.getSelectors():t&&t.select(n)}function l(e,t){o.clear();const r=e.call(this);return t.current=Array.from(o),r}function f(e){const n=(0,u.isObject)(e)?e.name:e;o.add(n);const i=r[n];return i?i.getResolveSelectors():t&&t.resolveSelect(n)}function d(e){const n=(0,u.isObject)(e)?e.name:e,o=r[n];return o?o.getActions():t&&t.dispatch(n)}function p(e){return(0,u.mapValues)(e,((e,t)=>"function"!=typeof e?e:function(){return m[t].apply(null,arguments)}))}function v(e,t){if("function"!=typeof t.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof t.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof t.subscribe)throw new TypeError("store.subscribe must be a function");t.emitter=ue();const n=t.subscribe;t.subscribe=e=>{const r=t.emitter.subscribe(e),o=n((()=>{t.emitter.isPaused?t.emitter.emit():e()}));return()=>{null==o||o(),null==r||r()}},r[e]=t,t.subscribe(i)}function g(e){v(e.name,e.instantiate(m))}function h(e,t){a()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),v(e,t)}function y(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");const r=ie(e,t).instantiate(m);return v(e,r),r.store}function S(e,n){return e in r?r[e].subscribe(n):t?t.__unstableSubscribeStore(e,n):s(n)}function b(e){n.pause(),(0,u.forEach)(r,(e=>e.emitter.pause())),e(),n.resume(),(0,u.forEach)(r,(e=>e.emitter.resume()))}let m={batch:b,stores:r,namespaces:r,subscribe:s,select:c,resolveSelect:f,dispatch:d,use:O,register:g,registerGenericStore:h,registerStore:y,__unstableMarkListeningStores:l,__unstableSubscribeStore:S};function O(e,t){if(e)return m={...m,...e(m,t)},m}m.register(F);for(const[t,r]of Object.entries(e))m.register(ie(t,r));return t&&t.subscribe(i),p(m)}var ae=ce();let le;const fe={getItem:e=>le&&le[e]?le[e]:null,setItem(e,t){le||fe.clear(),le[e]=String(t)},clear(){le=Object.create(null)}};var de=fe;let pe;try{pe=window.localStorage,pe.setItem("__wpDataTestLocalStorage",""),pe.removeItem("__wpDataTestLocalStorage")}catch(e){pe=de}const ve=pe,ge="WP_DATA";function he(e){const{storage:t=ve,storageKey:r=ge}=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))}}}function ye(e,t){const r=he(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=(0,u.isPlainObject)(e)&&(0,u.isPlainObject)(o)?(0,u.merge)({},e,o):o,n={...n,initialState:e}}const i=e.registerStore(t,n);return i.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]})),{});i=s()(e),o=(e,t)=>t.nextState===e?e:i(e,t)}else o=(e,t)=>t.nextState;var i;let u=o(void 0,{nextState:e()});return()=>{const n=o(u,{nextState:e()});n!==u&&(r.set(t,n),u=n)}}(i.getState,t,n.persist)),i}}}function Se(e,t){var r,n,o,i,s;const u="core/preferences",c="core/interface",a=e.get(),l=null===(r=a["core/interface"])||void 0===r||null===(n=r.preferences)||void 0===n||null===(o=n.features)||void 0===o?void 0:o[t],f=null===(i=a[t])||void 0===i||null===(s=i.preferences)||void 0===s?void 0:s.features,d=l||f;if(d){var p;const r=null===(p=a["core/preferences"])||void 0===p?void 0:p.preferences;if(null==r||!r[t]){if(e.set(u,{preferences:{...r,[t]:d}}),l){var v,g;const r=a["core/interface"],n=null===(v=a["core/interface"])||void 0===v||null===(g=v.preferences)||void 0===g?void 0:g.features;e.set(c,{...r,preferences:{features:{...n,[t]:void 0}}})}if(f){var h;const r=a[t],n=null===(h=a[t])||void 0===h?void 0:h.preferences;e.set(t,{...r,preferences:{...n,features:void 0}})}}}}function be(e,t,r){var n,o,i,s,c,a,l,f,d;let{from:p,scope:v}=t,g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.identity;const h="core/preferences",y=e.get(),S=null===(n=y[p])||void 0===n||null===(o=n.preferences)||void 0===o?void 0:o[r];if(void 0===S)return;const b=null===(i=y[h])||void 0===i||null===(s=i.preferences)||void 0===s||null===(c=s[v])||void 0===c?void 0:c[r];if(b)return;const m=null===(a=y[h])||void 0===a?void 0:a.preferences,O=null===(l=y[h])||void 0===l||null===(f=l.preferences)||void 0===f?void 0:f[v],w=g({[r]:S});e.set(h,{preferences:{...m,[v]:{...O,...w}}});const R=y[p],E=null===(d=y[p])||void 0===d?void 0:d.preferences;e.set(p,{...R,preferences:{...E,[r]:void 0}})}function me(e){var t;const r=null!==(t=null==e?void 0:e.panels)&&void 0!==t?t:{};return Object.keys(r).reduce(((e,t)=>{const n=r[t];return!1===(null==n?void 0:n.enabled)&&e.inactivePanels.push(t),!0===(null==n?void 0:n.opened)&&e.openPanels.push(t),e}),{inactivePanels:[],openPanels:[]})}ye.__unstableMigrate=e=>{const t=he(e);Se(t,"core/edit-widgets"),Se(t,"core/customize-widgets"),Se(t,"core/edit-post"),Se(t,"core/edit-site"),function(e){var t,r;const n="core/interface",o="core/preferences";let i=e.get();const s=null===(t=i["core/interface"])||void 0===t||null===(r=t.preferences)||void 0===r?void 0:r.features;for(const t in s){var u,c,a;if(t.startsWith("core"))continue;const r=s[t];if(!r)continue;const l=null===(u=i["core/preferences"])||void 0===u?void 0:u.preferences;e.set(o,{preferences:{...l,[t]:r}}),i=e.get();const f=i["core/interface"],d=null===(c=i["core/interface"])||void 0===c||null===(a=c.preferences)||void 0===a?void 0:a.features;e.set(n,{...f,preferences:{features:{...d,[t]:void 0}}})}}(t),be(t,{from:"core/edit-post",scope:"core/edit-post"},"hiddenBlockTypes"),be(t,{from:"core/edit-post",scope:"core/edit-post"},"editorMode"),be(t,{from:"core/edit-post",scope:"core/edit-post"},"preferredStyleVariations"),be(t,{from:"core/edit-post",scope:"core/edit-post"},"panels",me),be(t,{from:"core/editor",scope:"core/edit-post"},"isPublishSidebarEnabled"),be(t,{from:"core/edit-site",scope:"core/edit-site"},"editorMode"),function(e){var t,r,n,o,i,s,u;const c="core/interface",a="core/preferences",l=e.get(),f=null===(t=l["core/interface"])||void 0===t?void 0:t.enableItems;if(!f)return;const d=null!==(r=null===(n=l["core/preferences"])||void 0===n?void 0:n.preferences)&&void 0!==r?r:{},p=null!==(o=null==f||null===(i=f.singleEnableItems)||void 0===i?void 0:i.complementaryArea)&&void 0!==o?o:{},v=Object.keys(p).reduce(((e,t)=>{var r;const n=p[t];return null!==(r=e[t])&&void 0!==r&&r.complementaryArea?e:{...e,[t]:{...e[t],complementaryArea:n}}}),d),g=null!==(s=null==f||null===(u=f.multipleEnableItems)||void 0===u?void 0:u.pinnedItems)&&void 0!==s?s:{},h=Object.keys(g).reduce(((e,t)=>{var r;const n=g[t];return null!==(r=e[t])&&void 0!==r&&r.pinnedItems?e:{...e,[t]:{...e[t],pinnedItems:n}}}),v);e.set(a,{preferences:h});const y=l["core/interface"];e.set(c,{...y,enableItems:void 0})}(t)};var Oe=ye;function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},Ge=(0,Te.createQueue)();function He(e,t){const r="function"==typeof e;r||(t=[]);const n=(0,Re.useCallback)(r?e:Ve,t),o=r?n:null,i=Ue(),s=(0,Re.useContext)(ke),u=Ie((()=>({queue:!0})),[i]),[,c]=(0,Re.useReducer)((e=>e+1),0),a=(0,Re.useRef)(),l=(0,Re.useRef)(s),f=(0,Re.useRef)(),d=(0,Re.useRef)(),p=(0,Re.useRef)(),v=(0,Re.useRef)([]),g=(0,Re.useCallback)((e=>i.__unstableMarkListeningStores((()=>e(i.select,i)),v)),[i]),h=(0,Re.useMemo)((()=>({})),t||[]);let y;if(o){y=f.current;const e=a.current!==o,t=!!d.current;if(e||t)try{y=g(o)}catch(e){let t=`An error occurred while running 'mapSelect': ${e.message}`;d.current&&(t+="\nThe error may be correlated with this previous error:\n",t+=`${d.current.stack}\n\n`,t+="Original stack trace:"),console.error(t)}}return(0,Ee.useIsomorphicLayoutEffect)((()=>{r&&(a.current=o,f.current=y,d.current=void 0,p.current=!0,l.current!==s&&(l.current=s,Ge.flush(u)))})),(0,Ee.useIsomorphicLayoutEffect)((()=>{if(!r)return;const e=()=>{if(p.current){try{const e=g(a.current);if(Ae()(f.current,e))return;f.current=e}catch(e){d.current=e}c()}},t=()=>{l.current?Ge.add(u,e):e()};t();const n=v.current.map((e=>i.__unstableSubscribeStore(e,t)));return()=>{p.current=!1,n.forEach((e=>null==e?void 0:e())),Ge.flush(u)}}),[i,g,r,h]),r?y:i.select(e)}var Ke=e=>(0,Ee.createHigherOrderComponent)((t=>(0,Ee.pure)((r=>{const n=He(((t,n)=>e(t,r,n)));return(0,Re.createElement)(t,we({},r,n))}))),"withSelect");var We=(e,t)=>{const r=Ue(),n=(0,Re.useRef)(e);return(0,Ee.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,Re.useMemo)((()=>{const e=n.current(r.dispatch,r);return(0,u.mapValues)(e,((e,t)=>("function"!=typeof e&&console.warn(`Property ${t} returned from dispatchMap in useDispatchWithMap must be a function.`),function(){return n.current(r.dispatch,r)[t](...arguments)})))}),[r,...t])};var Be=e=>(0,Ee.createHigherOrderComponent)((t=>r=>{const n=We(((t,n)=>e(t,r,n)),[]);return(0,Re.createElement)(t,we({},r,n))}),"withDispatch");var Xe=(0,Ee.createHigherOrderComponent)((e=>t=>(0,Re.createElement)(Ce,null,(r=>(0,Re.createElement)(e,we({},t,{registry:r}))))),"withRegistry");var ze=e=>{const{dispatch:t}=Ue();return void 0===e?t:t(e)};const Je=ae.select,$e=ae.resolveSelect,qe=ae.dispatch,Qe=ae.subscribe,Ye=ae.registerGenericStore,Ze=ae.registerStore,et=ae.use,tt=ae.register}(),(window.wp=window.wp||{}).data=n}();