WordPress/wp-includes/js/dist/data.min.js

2 lines
24 KiB
JavaScript

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.data=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="pfJ3")}({"8mpt":function(e,t){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;t<r.length;t++)e+=(n=JSON.stringify(r[t]))+":r["+n+"](s["+n+"],a),";return e+="}",new Function("r,s,a",e)}(),function(n,o){var i,c,u;if(void 0===n)return t(e,{},o);for(i=t(e,n,o),c=r.length;c--;)if(n[u=r[c]]!==i[u])return i;return n}}},FtRg:function(e,t,r){"use strict";function n(e){return(n="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})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var i=Object.keys(t).sort(),c=Array.isArray(t)?n:o,u=0;u<i.length;u++){var s=i[u];if(void 0===(c=c.get(s)))return;var a=t[s];if(void 0===(c=c.get(a)))return}var l=c.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,c.set("_ekm_value",l),r.set(t,l),l):void 0}var c=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var t,r,c;return t=e,(r=[{key:"set",value:function(t,r){if(null===t||"object"!==n(t))return this._map.set(t,r),this;for(var o=Object.keys(t).sort(),i=[t,r],c=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<o.length;u++){var s=o[u];c.has(s)||c.set(s,new e),c=c.get(s);var a=t[s];c.has(a)||c.set(a,new e),c=c.get(a)}var l=c.get("_ekm_value");return l&&this._map.delete(l[0]),c.set("_ekm_value",i),this._map.set(t,i),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=i(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==n(e)?this._map.has(e):void 0!==i(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,r),c&&o(t,c),e}();e.exports=c},GRId:function(e,t){e.exports=window.wp.element},JlUD:function(e,t){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=r,e.exports.default=r},K9lf:function(e,t){e.exports=window.wp.compose},NMb1:function(e,t){e.exports=window.wp.deprecated},XI5e:function(e,t){e.exports=window.wp.priorityQueue},XIDh:function(e,t){e.exports=window.wp.reduxRoutine},YLtl:function(e,t){e.exports=window.lodash},cDcd:function(e,t){e.exports=window.React},mHlH:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("cDcd");function o(e,t){var r=Object(n.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(n.useRef)(!0),i=Object(n.useRef)(r),c=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return Object(n.useEffect)((function(){o.current=!1,i.current=c}),[c]),c.result}},pfJ3:function(e,t,r){"use strict";r.r(t),r.d(t,"withSelect",(function(){return Pe})),r.d(t,"withDispatch",(function(){return De})),r.d(t,"withRegistry",(function(){return Ue})),r.d(t,"RegistryProvider",(function(){return _e})),r.d(t,"RegistryConsumer",(function(){return je})),r.d(t,"useRegistry",(function(){return Ee})),r.d(t,"useSelect",(function(){return xe})),r.d(t,"useDispatch",(function(){return ke})),r.d(t,"AsyncModeProvider",(function(){return Ae})),r.d(t,"createRegistry",(function(){return Z})),r.d(t,"createRegistrySelector",(function(){return j})),r.d(t,"createRegistryControl",(function(){return _})),r.d(t,"controls",(function(){return T})),r.d(t,"createReduxStore",(function(){return q})),r.d(t,"plugins",(function(){return i})),r.d(t,"combineReducers",(function(){return u.a})),r.d(t,"select",(function(){return Me})),r.d(t,"resolveSelect",(function(){return Fe})),r.d(t,"dispatch",(function(){return Ve})),r.d(t,"subscribe",(function(){return He})),r.d(t,"registerGenericStore",(function(){return Ge})),r.d(t,"registerStore",(function(){return Ke})),r.d(t,"use",(function(){return Xe})),r.d(t,"register",(function(){return Je}));var n={};r.r(n),r.d(n,"getIsResolving",(function(){return U})),r.d(n,"hasStartedResolution",(function(){return k})),r.d(n,"hasFinishedResolution",(function(){return M})),r.d(n,"isResolving",(function(){return F})),r.d(n,"getCachedResolvers",(function(){return V}));var o={};r.r(o),r.d(o,"startResolution",(function(){return H})),r.d(o,"finishResolution",(function(){return G})),r.d(o,"startResolutions",(function(){return K})),r.d(o,"finishResolutions",(function(){return X})),r.d(o,"invalidateResolution",(function(){return J})),r.d(o,"invalidateResolutionForStore",(function(){return W})),r.d(o,"invalidateResolutionForStoreSelector",(function(){return z}));var i={};r.r(i),r.d(i,"controls",(function(){return ne})),r.d(i,"persistence",(function(){return pe}));var c=r("8mpt"),u=r.n(c),s=r("YLtl");function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",b=function(){return Math.random().toString(36).substring(7).split("").join(".")},g={INIT:"@@redux/INIT"+b(),REPLACE:"@@redux/REPLACE"+b(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+b()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function O(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(d(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(d(1));return r(O)(e,t)}if("function"!=typeof e)throw new Error(d(2));var o=e,i=t,c=[],u=c,s=!1;function a(){u===c&&(u=c.slice())}function l(){if(s)throw new Error(d(3));return i}function f(e){if("function"!=typeof e)throw new Error(d(4));if(s)throw new Error(d(5));var t=!0;return a(),u.push(e),function(){if(t){if(s)throw new Error(d(6));t=!1,a();var r=u.indexOf(e);u.splice(r,1),c=null}}}function b(e){if(!h(e))throw new Error(d(7));if(void 0===e.type)throw new Error(d(8));if(s)throw new Error(d(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=c=u,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(d(10));o=e,b({type:g.REPLACE})}function y(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(d(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[p]=function(){return this},e}return b({type:g.INIT}),(n={dispatch:b,subscribe:f,getState:l,replaceReducer:v})[p]=y,n}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(d(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=v.apply(void 0,i)(r.dispatch),f(f({},r),{},{dispatch:n})}}}var S=r("FtRg"),m=r.n(S),w=r("XIDh"),R=r.n(w);function j(e){const t=function(){return e(t.registry.select)(...arguments)};return t.isRegistrySelector=!0,t}function _(e){return e.isRegistryControl=!0,e}const E="@@data/SELECT";const T={select:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:E,storeKey:Object(s.isObject)(e)?e.name:e,selectorName:t,args:n}},resolveSelect:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"@@data/RESOLVE_SELECT",storeKey:Object(s.isObject)(e)?e.name:e,selectorName:t,args:n}},dispatch:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"@@data/DISPATCH",storeKey:Object(s.isObject)(e)?e.name:e,actionName:t,args:n}}},I={[E]:_(e=>t=>{let{storeKey:r,selectorName:n,args:o}=t;return e.select(r)[n](...o)}),"@@data/RESOLVE_SELECT":_(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)}),"@@data/DISPATCH":_(e=>t=>{let{storeKey:r,actionName:n,args:o}=t;return e.dispatch(r)[n](...o)})};var N=r("JlUD"),A=r.n(N);var L=()=>e=>t=>A()(t)?t.then(t=>{if(t)return e(t)}):e(t);var x=(e,t)=>()=>r=>n=>{const o=e.select("core/data").getCachedResolvers(t);return Object.entries(o).forEach(r=>{let[o,i]=r;const c=Object(s.get)(e.stores,[t,"resolvers",o]);c&&c.shouldInvalidate&&i.forEach((r,i)=>{!1===r&&c.shouldInvalidate(n,...i)&&e.dispatch("core/data").invalidateResolution(t,o,i)})}),r(n)};const P=(C="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[C];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 m.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":{const r="START_RESOLUTION"===t.type,n=new m.a(e);return n.set(t.args,r),n}case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":{const r="START_RESOLUTIONS"===t.type,n=new m.a(e);for(const e of t.args)n.set(e,r);return n}case"INVALIDATE_RESOLUTION":{const r=new m.a(e);return r.delete(t.args),r}}return e}));var C;var D=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 Object(s.has)(e,[t.selectorName])?Object(s.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return P(e,t)}return e};function U(e,t,r){const n=Object(s.get)(e,[t]);if(n)return n.get(r)}function k(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==U(e,t,r)}function M(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===U(e,t,r)}function F(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===U(e,t,r)}function V(e){return e}function H(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function G(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function K(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function X(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function J(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function W(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function z(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const B=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t};function q(e,t){return{name:e,instantiate:r=>{const i=t.reducer,c=function(e,t,r,n){const o={...t.controls,...I},i=Object(s.mapValues)(o,e=>e.isRegistryControl?e(r):e),c=[x(r,e),L,R()(i)];t.__experimentalUseThunks&&c.push((a=n,()=>e=>t=>"function"==typeof t?t(a):e(t)));var a;const l=[y(...c)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&l.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e}));const{reducer:f,initialState:d}=t;return O(u()({metadata:D,root:f}),{root:d},Object(s.flowRight)(l))}(e,t,r,{registry:r,get dispatch(){return Object.assign(e=>c.dispatch(e),g())},get select(){return Object.assign(e=>e(c.__unstableOriginalGetState()),b())},get resolveSelect(){return h()}}),a=function(){const e={};return{isRunning:(t,r)=>e[t]&&e[t].get(B(r)),clear(t,r){e[t]&&e[t].delete(B(r))},markAsRunning(t,r){e[t]||(e[t]=new m.a),e[t].set(B(r),!0)}}}();let l;const f=function(e,t){return Object(s.mapValues)(e,e=>function(){return Promise.resolve(t.dispatch(e(...arguments)))})}({...o,...t.actions},c);let d=function(e,t){return Object(s.mapValues)(e,e=>{const r=function(){const r=arguments.length,n=new Array(r+1);n[0]=t.__unstableOriginalGetState();for(let e=0;e<r;e++)n[e+1]=arguments[e];return e(...n)};return r.hasResolver=!1,r})}({...Object(s.mapValues)(n,e=>function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e(t.metadata,...n)}),...Object(s.mapValues)(t.selectors,e=>(e.isRegistrySelector&&(e.registry=r),function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e(t.root,...n)}))},c);if(t.resolvers){const e=function(e,t,r,n){const o=Object(s.mapValues)(e,e=>e.fulfill?e:{...e,fulfill:e});return{resolvers:o,selectors:Object(s.mapValues)(t,(t,i)=>{const c=e[i];if(!c)return t.hasResolver=!1,t;const u=function(){for(var e=arguments.length,u=new Array(e),s=0;s<e;s++)u[s]=arguments[s];async function a(){const e=r.getState();if(n.isRunning(i,u)||"function"==typeof c.isFulfilled&&c.isFulfilled(e,...u))return;const{metadata:t}=r.__unstableOriginalGetState();k(t,i,u)||(n.markAsRunning(i,u),setTimeout(async()=>{n.clear(i,u),r.dispatch(H(i,u)),await Q(r,o,i,...u),r.dispatch(G(i,u))}))}return a(...u),t(...u)};return u.hasResolver=!0,u})}}(t.resolvers,d,c,a);l=e.resolvers,d=e.selectors}const p=function(e,t){return Object(s.mapValues)(Object(s.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(r,n)=>function(){for(var o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];return new Promise(o=>{const c=()=>e.hasFinishedResolution(n,i),u=()=>r.apply(null,i),s=u();if(c())return o(s);const a=t.subscribe(()=>{c()&&(a(),o(u()))})})})}(d,c),b=()=>d,g=()=>f,h=()=>p;c.__unstableOriginalGetState=c.getState,c.getState=()=>c.__unstableOriginalGetState().root;const v=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:b,getResolveSelectors:h,getActions:g,subscribe:v}}}}async function Q(e,t,r){const n=Object(s.get)(t,[r]);if(!n)return;for(var o=arguments.length,i=new Array(o>3?o-3:0),c=3;c<o;c++)i[c-3]=arguments[c];const u=n.fulfill(...i);u&&await e.dispatch(u)}var Y=function(e){const t=t=>function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.select(r)[t](...o)},r=t=>function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e.dispatch(r)[t](...o)};return{getSelectors:()=>["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].reduce((e,r)=>({...e,[r]:t(r)}),{}),getActions:()=>["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].reduce((e,t)=>({...e,[t]:r(t)}),{}),subscribe:()=>()=>{}}};function $(){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 Z(){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=$(),o=new Set;function i(){n.emit()}const c=e=>n.subscribe(e);function u(e){const n=Object(s.isObject)(e)?e.name:e;o.add(n);const i=r[n];return i?i.getSelectors():t&&t.select(n)}function a(e,t){o.clear();const r=e.call(this);return t.current=Array.from(o),r}function l(e){const n=Object(s.isObject)(e)?e.name:e;o.add(n);const i=r[n];return i?i.getResolveSelectors():t&&t.resolveSelect(n)}function f(e){const n=Object(s.isObject)(e)?e.name:e,o=r[n];return o?o.getActions():t&&t.dispatch(n)}function d(e){return Object(s.mapValues)(e,(e,t)=>"function"!=typeof e?e:function(){return O[t].apply(null,arguments)})}function p(e,t){if("function"!=typeof t.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof t.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof t.subscribe)throw new TypeError("config.subscribe must be a function");t.emitter=$();const n=t.subscribe;t.subscribe=e=>{const r=t.emitter.subscribe(e),o=n(()=>{t.emitter.isPaused?t.emitter.emit():e()});return()=>{o&&o(),r()}},r[e]=t,t.subscribe(i)}function b(e){p(e.name,e.instantiate(O))}function g(e,n){return e in r?r[e].subscribe(n):t?t.__experimentalSubscribeStore(e,n):c(n)}function h(e){n.pause(),Object(s.forEach)(r,e=>e.emitter.pause()),e(),n.resume(),Object(s.forEach)(r,e=>e.emitter.resume())}let O={batch:h,registerGenericStore:p,stores:r,namespaces:r,subscribe:c,select:u,resolveSelect:l,dispatch:f,use:v,register:b,__experimentalMarkListeningStores:a,__experimentalSubscribeStore:g};function v(e,t){return O={...O,...e(O,t)},O}return O.registerStore=(e,t)=>{if(!t.reducer)throw new TypeError("Must specify store reducer");const r=q(e,t).instantiate(O);return p(e,r),r.store},p("core/data",Y(O)),Object.entries(e).forEach(e=>{let[t,r]=e;return O.registerStore(t,r)}),t&&t.subscribe(i),d(O)}var ee=Z(),te=r("NMb1"),re=r.n(te),ne=e=>(re()("wp.data.plugins.controls",{since:"5.4",hint:"The controls plugins is now baked-in."}),e);let oe;const ie={getItem:e=>oe&&oe[e]?oe[e]:null,setItem(e,t){oe||ie.clear(),oe[e]=String(t)},clear(){oe=Object.create(null)}};var ce=ie;let ue;try{ue=window.localStorage,ue.setItem("__wpDataTestLocalStorage",""),ue.removeItem("__wpDataTestLocalStorage")}catch(e){ue=ce}const se=ue,ae="WP_DATA";function le(e){const{storage:t=se,storageKey:r=ae}=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 fe(e,t){const r=le(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=Object(s.isPlainObject)(e)&&Object(s.isPlainObject)(o)?Object(s.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=u()(e),o=(e,t)=>t.nextState===e?e:i(e,t)}else o=(e,t)=>t.nextState;var i;let c=o(void 0,{nextState:e()});return()=>{const n=o(c,{nextState:e()});n!==c&&(r.set(t,n),c=n)}}(i.getState,t,n.persist)),i}}}function de(e,t){var r;const n=e.get(),o=null===(r=n[t])||void 0===r?void 0:r.preferences,i=null==o?void 0:o.features;if(i){var c,u;const r=null===(c=n["core/interface"])||void 0===c||null===(u=c.preferences)||void 0===u?void 0:u.features;null!=r&&r[t]||(e.set("core/interface",{preferences:{features:{...r,[t]:i}}}),e.set(t,{preferences:{...o,features:void 0}}))}}fe.__unstableMigrate=e=>{const t=le(e);de(t,"core/edit-widgets"),de(t,"core/customize-widgets"),de(t,"core/edit-post")};var pe=fe,be=r("wx14"),ge=r("GRId"),he=r("K9lf"),Oe=r("mHlH"),ve=r("XI5e"),ye=r("rl8x"),Se=r.n(ye);const me=Object(ge.createContext)(ee),{Consumer:we,Provider:Re}=me,je=we;var _e=Re;function Ee(){return Object(ge.useContext)(me)}const Te=Object(ge.createContext)(!1),{Consumer:Ie,Provider:Ne}=Te;var Ae=Ne;const Le=Object(ve.createQueue)();function xe(e,t){const r="function"!=typeof e;r&&(t=[]);const n=Object(ge.useCallback)(e,t),o=Ee(),i=Object(ge.useContext)(Te),c=Object(Oe.a)(()=>({queue:!0}),[o]),[,u]=Object(ge.useReducer)(e=>e+1,0),s=Object(ge.useRef)(),a=Object(ge.useRef)(i),l=Object(ge.useRef)(),f=Object(ge.useRef)(),d=Object(ge.useRef)(),p=Object(ge.useRef)([]),b=Object(ge.useCallback)(e=>o.__experimentalMarkListeningStores(e,p),[o]),g=Object(ge.useMemo)(()=>({}),t||[]);let h;if(!r)try{h=s.current!==n||f.current?b(()=>n(o.select,o)):l.current}catch(e){let t="An error occurred while running 'mapSelect': "+e.message;f.current&&(t+="\nThe error may be correlated with this previous error:\n",t+=f.current.stack+"\n\n",t+="Original stack trace:"),console.error(t),h=l.current}return Object(he.useIsomorphicLayoutEffect)(()=>{r||(s.current=n,l.current=h,f.current=void 0,d.current=!0,a.current!==i&&(a.current=i,Le.flush(c)))}),Object(he.useIsomorphicLayoutEffect)(()=>{if(r)return;const e=()=>{if(d.current){try{const e=b(()=>s.current(o.select,o));if(Se()(l.current,e))return;l.current=e}catch(e){f.current=e}u()}};a.current?Le.add(c,e):e();const t=()=>{a.current?Le.add(c,e):e()},n=p.current.map(e=>o.__experimentalSubscribeStore(e,t));return()=>{d.current=!1,n.forEach(e=>null==e?void 0:e()),Le.flush(c)}},[o,b,g,r]),r?o.select(e):h}var Pe=e=>Object(he.createHigherOrderComponent)(t=>Object(he.pure)(r=>{const n=xe((t,n)=>e(t,r,n));return Object(ge.createElement)(t,Object(be.a)({},r,n))}),"withSelect");var Ce=(e,t)=>{const r=Ee(),n=Object(ge.useRef)(e);return Object(he.useIsomorphicLayoutEffect)(()=>{n.current=e}),Object(ge.useMemo)(()=>{const e=n.current(r.dispatch,r);return Object(s.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 De=e=>Object(he.createHigherOrderComponent)(t=>r=>{const n=Ce((t,n)=>e(t,r,n),[]);return Object(ge.createElement)(t,Object(be.a)({},r,n))},"withDispatch");var Ue=Object(he.createHigherOrderComponent)(e=>t=>Object(ge.createElement)(je,null,r=>Object(ge.createElement)(e,Object(be.a)({},t,{registry:r}))),"withRegistry");var ke=e=>{const{dispatch:t}=Ee();return void 0===e?t:t(e)};const Me=ee.select,Fe=ee.resolveSelect,Ve=ee.dispatch,He=ee.subscribe,Ge=ee.registerGenericStore,Ke=ee.registerStore,Xe=ee.use,Je=ee.register},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},wx14:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,"a",(function(){return n}))}});