WordPress/wp-includes/js/dist/data.min.js
hellofromTonya 8588041fd2 Editor: Update @wordpress packages for 6.2 Beta 2.
Updates the `@wordpress` packages to include the following changes:

- Add missing period in keyboard shortcut descriptions
- Site Editor: Append template type and name to the site editor page title
- Specify active color state for template navigation button
- Global Styles: Move more link about custom CSS to part of description
- ToolsPanel: Display optional items when values are updated externally
- File block: Re-add editor styles for classic themes
- Enable undo after creating a new menu
- Style Book: Exclude blocks that are not allowed to insert
- Add basic tsconfig.json validation
- Fix Experiments native variant breakage
- Update moment and moment-timezone packages to fix timezone issues
- NavigatorButton: Reuse Button types
- ToolsPanel: Ensure display of optional items when panel id is null
- ColorPalette: Ensure text label contrast checking works with CSS variables
- Components: Add support for named arguments in the navigator components
- Rename experiments package to private-apis
- Cherry-pick CLI: Fix the default label to match the documentation
- Handle block metadata attribute and related experimental APIs
- Fix: Remove browser default border for iframe in the editor
- [Layout]: Fix align controls for hybrid themes
- Visual Regression tests: use default playwright utils
- SelectControl: Fix multiple prop styling
- Fix clicking on the toggle button not closing the block inserter
- Update deps for the useEffect that creates navigation menus
- Minor updates in Private APIs docs
- Site Editor: Fix custom Template Parts rename action
- [Block Library - Cover]: Ensure url is not malformed due to sanitization through wp_kses
- Revert "Prevent the image from being resized larger than its container"
- Lodash: Remove from @wordpress/keycodes package
- Distraction free mode: Fix keyboard shortcut not working
- Popover: lock the __experimentalPopoverPositionToPlacement function
- Rename the "experiments" export to "privateApis"
- Add an aria label to the site save dialog
- Navigator: add more pattern matching tests, refine existing tests
- Add parent navigation support for the navigator component
- Add back link to Design heading in site editor navigation to return to Dashboard
- Add a nested level when selecting templates or template parts
- Move site editor 6.2 specific code to the right file
- Fix site editor navigation

References:
* [1bf01c01a8 Gutenberg's commit for publishing the packages]

Follow-up to [55257].

Props ntsekouras.
See #57471.
Built from https://develop.svn.wordpress.org/trunk@55333


git-svn-id: http://core.svn.wordpress.org/trunk@54866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-14 15:44:36 +00:00

9 lines
26 KiB
JavaScript

/*! 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;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 n(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(),s=Array.isArray(t)?n:o,u=0;u<i.length;u++){var c=i[u];if(void 0===(s=s.get(c)))return;var a=t[c];if(void 0===(s=s.get(a)))return}var l=s.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,s.set("_ekm_value",l),r.set(t,l),l):void 0}var o=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 o,i,s;return o=e,i=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var o=Object.keys(r).sort(),i=[r,n],s=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,u=0;u<o.length;u++){var c=o[u];s.has(c)||s.set(c,new e),s=s.get(c);var a=r[c];s.has(a)||s.set(a,new e),s=s.get(a)}var l=s.get("_ekm_value");return l&&this._map.delete(l[0]),s.set("_ekm_value",i),this._map.set(r,i),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&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;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,s,u;if(void 0===n)return t(e,{},o);for(i=t(e,n,o),s=r.length;s--;)if(n[u=r[s]]!==i[u])return i;return n}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n),r.d(n,{AsyncModeProvider:function(){return Xe},RegistryConsumer:function(){return Me},RegistryProvider:function(){return Ve},combineReducers:function(){return rt},controls:function(){return C},createReduxStore:function(){return ge},createRegistry:function(){return be},createRegistryControl:function(){return A},createRegistrySelector:function(){return N},dispatch:function(){return st},plugins:function(){return o},register:function(){return ft},registerGenericStore:function(){return ct},registerStore:function(){return at},resolveSelect:function(){return ot},select:function(){return nt},subscribe:function(){return ut},suspendSelect:function(){return it},use:function(){return lt},useDispatch:function(){return tt},useRegistry:function(){return Ge},useSelect:function(){return Be},useSuspenseSelect:function(){return Qe},withDispatch:function(){return Ze},withRegistry:function(){return et},withSelect:function(){return qe}});var e={};r.r(e),r.d(e,{getCachedResolvers:function(){return te},getIsResolving:function(){return B},getResolutionError:function(){return Z},getResolutionState:function(){return $},hasFinishedResolution:function(){return q},hasResolutionFailed:function(){return Y},hasStartedResolution:function(){return Q},isResolving:function(){return ee}});var t={};r.r(t),r.d(t,{failResolution:function(){return oe},failResolutions:function(){return ue},finishResolution:function(){return ne},finishResolutions:function(){return se},invalidateResolution:function(){return ce},invalidateResolutionForStore:function(){return ae},invalidateResolutionForStoreSelector:function(){return le},startResolution:function(){return re},startResolutions:function(){return ie}});var o={};r.r(o),r.d(o,{persistence:function(){return je}});var i=r(9125),s=r.n(i),u=window.lodash,c=window.wp.deprecated,a=r.n(c);function l(e){return l="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},l(e)}function f(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}function p(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(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 y="function"==typeof Symbol&&Symbol.observable||"@@observable",h=function(){return Math.random().toString(36).substring(7).split("").join(".")},S={INIT:"@@redux/INIT"+h(),REPLACE:"@@redux/REPLACE"+h(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h()}};function b(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 m(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(m)(e,t)}if("function"!=typeof e)throw new Error(d(2));var o=e,i=t,s=[],u=s,c=!1;function a(){u===s&&(u=s.slice())}function l(){if(c)throw new Error(d(3));return i}function f(e){if("function"!=typeof e)throw new Error(d(4));if(c)throw new Error(d(5));var t=!0;return a(),u.push(e),function(){if(t){if(c)throw new Error(d(6));t=!1,a();var r=u.indexOf(e);u.splice(r,1),s=null}}}function p(e){if(!b(e))throw new Error(d(7));if(void 0===e.type)throw new Error(d(8));if(c)throw new Error(d(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=s=u,r=0;r<t.length;r++){(0,t[r])()}return e}function g(e){if("function"!=typeof e)throw new Error(d(10));o=e,p({type:S.REPLACE})}function v(){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)}}})[y]=function(){return this},e}return p({type:S.INIT}),(n={dispatch:p,subscribe:f,getState:l,replaceReducer:g})[y]=v,n}function w(){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 O(){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=w.apply(void 0,i)(r.dispatch),v(v({},r),{},{dispatch:n})}}}var R=r(2167),E=r.n(R),_=window.wp.reduxRoutine,I=r.n(_),T=window.wp.compose;function N(e){const t=function(){return e(t.registry.select)(...arguments)};return t.isRegistrySelector=!0,t}function A(e){return e.isRegistryControl=!0,e}const j="@@data/SELECT",L="@@data/RESOLVE_SELECT",P="@@data/DISPATCH";function F(e){return null!==e&&"object"==typeof e}const C={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:j,storeKey:F(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:L,storeKey:F(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:P,storeKey:F(e)?e.name:e,actionName:t,args:n}}},U={[j]:A((e=>t=>{let{storeKey:r,selectorName:n,args:o}=t;return e.select(r)[n](...o)})),[L]:A((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)})),[P]:A((e=>t=>{let{storeKey:r,actionName:n,args:o}=t;return e.dispatch(r)[n](...o)}))};var x=window.wp.privateApis;const{lock:k,unlock:D}=(0,x.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/data");var M=()=>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 V={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;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(){return Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)])))},getActions(){return Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)])))},subscribe(){return()=>()=>{}}}}};var G=V;var H=(e,t)=>()=>r=>n=>{const o=e.select(G).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(G).invalidateResolution(t,o,i)}))})),r(n)};function K(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function W(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 X=(z="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[z];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(E()),t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":{const r=new(E())(e);return r.set(W(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(E())(e);return r.set(W(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(E())(e);return r.set(W(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(E())(e);for(const e of t.args)r.set(W(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(E())(e);for(const e of t.args)r.set(W(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(E())(e);return t.args.forEach(((e,n)=>{const o={status:"error",error:void 0},i=t.errors[n];i&&(o.error=i),r.set(W(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(E())(e);return r.delete(W(t.args)),r}}return e}));var z;var J=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":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 X(e,t)}return e};function $(e,t,r){const n=(0,u.get)(e,[t]);if(n)return n.get(W(r))}function B(e,t,r){const n=$(e,t,r);return n&&"resolving"===n.status}function Q(e,t,r){return void 0!==$(e,t,r)}function q(e,t,r){var n;const o=null===(n=$(e,t,r))||void 0===n?void 0:n.status;return"finished"===o||"error"===o}function Y(e,t,r){var n;return"error"===(null===(n=$(e,t,r))||void 0===n?void 0:n.status)}function Z(e,t,r){const n=$(e,t,r);return"error"===(null==n?void 0:n.status)?n.error:null}function ee(e,t,r){var n;return"resolving"===(null===(n=$(e,t,r))||void 0===n?void 0:n.status)}function te(e){return e}function re(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function ne(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function oe(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function ie(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function se(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function ue(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function ce(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ae(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function le(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const fe=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},pe=(e,t)=>t instanceof Map?Object.fromEntries(t):t;function ge(r,n){const o={},i={},c={privateActions:o,registerPrivateActions:e=>{Object.assign(o,e)},privateSelectors:i,registerPrivateSelectors:e=>{Object.assign(i,e)}},a={name:r,instantiate:a=>{const l=n.reducer,f=function(e,t,r,n){const o={...t.controls,...U},i=(0,u.mapValues)(o,(e=>e.isRegistryControl?e(r):e)),c=[O(H(r,e),M,I()(i),K(n))];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:pe}}));const{reducer:a,initialState:l}=t;return m(s()({metadata:J,root:a}),{root:l},(0,T.compose)(c))}(r,n,a,{registry:a,get dispatch(){return Object.assign((e=>f.dispatch(e)),b())},get select(){return Object.assign((e=>e(f.__unstableOriginalGetState())),S())},get resolveSelect(){return w()}});k(f,c);const p=function(){const e={};return{isRunning(t,r){return e[t]&&e[t].get(fe(r))},clear(t,r){e[t]&&e[t].delete(fe(r))},markAsRunning(t,r){e[t]||(e[t]=new(E())),e[t].set(fe(r),!0)}}}();let g;const v=de({...t,...n.actions},f);k(v,new Proxy(o,{get:(e,t)=>de(o,f)[t]||v[t]}));let d=ve({...(0,u.mapValues)(e,(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)})),...(0,u.mapValues)(n.selectors,(e=>(e.isRegistrySelector&&(e.registry=a),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)})))},f);if(k(d,new Proxy(i,{get:(e,t)=>ve((0,u.mapValues)(i,(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.root,...n)})),f)[t]||d[t]})),n.resolvers){const e=function(e,t,r,n){const o=(0,u.mapValues)(e,(e=>e.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<e;c++)u[c]=arguments[c];async function a(){const e=r.getState();if(n.isRunning(i,u)||"function"==typeof s.isFulfilled&&s.isFulfilled(e,...u))return;const{metadata:t}=r.__unstableOriginalGetState();Q(t,i,u)||(n.markAsRunning(i,u),setTimeout((async()=>{n.clear(i,u),r.dispatch(re(i,u));try{await ye(r,o,i,...u),r.dispatch(ne(i,u))}catch(e){r.dispatch(oe(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,f,p);g=e.resolvers,d=e.selectors}const y=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:o,hasResolutionFailed:i,isResolving:s,getCachedResolvers:c,getResolutionState:a,getResolutionError:l,...f}=e;return(0,u.mapValues)(f,((r,n)=>r.hasResolver?function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return new Promise(((o,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;n<e;n++)t[n]=arguments[n];return r.apply(null,t)}))}(d,f),h=function(e,t){return(0,u.mapValues)(e,((r,n)=>r.hasResolver?function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];const u=r.apply(null,i);if(e.hasFinishedResolution(n,i)){if(e.hasResolutionFailed(n,i))throw e.getResolutionError(n,i);return u}throw new Promise((r=>{const o=t.subscribe((()=>{e.hasFinishedResolution(n,i)&&(r(),o())}))}))}:r))}(d,f),S=()=>d,b=()=>v,w=()=>y;f.__unstableOriginalGetState=f.getState,f.getState=()=>f.__unstableOriginalGetState().root;const R=f&&(e=>{let t=f.__unstableOriginalGetState();return f.subscribe((()=>{const r=f.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))});return{reducer:l,store:f,actions:v,selectors:d,resolvers:g,getSelectors:S,getResolveSelectors:w,getSuspendSelectors:()=>h,getActions:b,subscribe:R}}};return k(a,c),a}function ve(e,t){return(0,u.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}))}function de(e,t){return(0,u.mapValues)(e,(e=>function(){return Promise.resolve(t.dispatch(e(...arguments)))}))}async function ye(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;s<o;s++)i[s-3]=arguments[s];const c=n.fulfill(...i);c&&await e.dispatch(c)}function he(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe(e){return r.add(e),()=>r.delete(e)},pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function Se(e){return"string"==typeof e?e:e.name}function be(){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=he();let o=null;function i(){n.emit()}const s=(e,o)=>{if(!o)return n.subscribe(e);const i=Se(o),s=r[i];return s?s.subscribe(e):t?t.subscribe(e,o):n.subscribe(e)};function c(e){var n;const i=Se(e);null===(n=o)||void 0===n||n.add(i);const s=r[i];return s?s.getSelectors():null==t?void 0:t.select(i)}function l(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}function f(e){var n;const i=Se(e);null===(n=o)||void 0===n||n.add(i);const s=r[i];return s?s.getResolveSelectors():t&&t.resolveSelect(i)}function p(e){var n;const i=Se(e);null===(n=o)||void 0===n||n.add(i);const s=r[i];return s?s.getSuspendSelectors():t&&t.suspendSelect(i)}function g(e){const n=Se(e),o=r[n];return o?o.getActions():t&&t.dispatch(n)}function v(e){return(0,u.mapValues)(e,((e,t)=>"function"!=typeof e?e:function(){return m[t].apply(null,arguments)}))}function d(e,n){if("function"!=typeof n.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof n.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof n.subscribe)throw new TypeError("store.subscribe must be a function");n.emitter=he();const o=n.subscribe;if(n.subscribe=e=>{const t=n.emitter.subscribe(e),r=o((()=>{n.emitter.isPaused?n.emitter.emit():e()}));return()=>{null==r||r(),null==t||t()}},r[e]=n,n.subscribe(i),t)try{D(n.store).registerPrivateActions(D(t).privateActionsOf(e)),D(n.store).registerPrivateSelectors(D(t).privateSelectorsOf(e))}catch(e){}}function y(e){d(e.name,e.instantiate(m))}function h(e,t){a()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),d(e,t)}function S(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");const r=ge(e,t).instantiate(m);return d(e,r),r.store}function b(e){n.pause(),Object.values(r).forEach((e=>e.emitter.pause())),e(),n.resume(),Object.values(r).forEach((e=>e.emitter.resume()))}let m={batch:b,stores:r,namespaces:r,subscribe:s,select:c,resolveSelect:f,suspendSelect:p,dispatch:g,use:w,register:y,registerGenericStore:h,registerStore:S,__unstableMarkListeningStores:l};function w(e,t){if(e)return m={...m,...e(m,t)},m}m.register(G);for(const[t,r]of Object.entries(e))m.register(ge(t,r));t&&t.subscribe(i);const O=v(m);return k(O,{privateActionsOf:e=>{try{return D(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return D(r[e].store).privateSelectors}catch(e){return{}}}}),O}var me=be();
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function we(e){return"[object Object]"===Object.prototype.toString.call(e)}function Oe(e){var t,r;return!1!==we(e)&&(void 0===(t=e.constructor)||!1!==we(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}let Re;const Ee={getItem(e){return Re&&Re[e]?Re[e]:null},setItem(e,t){Re||Ee.clear(),Re[e]=String(t)},clear(){Re=Object.create(null)}};var _e=Ee;let Ie;try{Ie=window.localStorage,Ie.setItem("__wpDataTestLocalStorage",""),Ie.removeItem("__wpDataTestLocalStorage")}catch(e){Ie=_e}const Te=Ie,Ne="WP_DATA";function Ae(e,t){const r=function(e){const{storage:t=Te,storageKey:r=Ne}=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=Oe(e)&&Oe(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=rt(e),o=(e,t)=>t.nextState===e?e:i(e,t)}else o=(e,t)=>t.nextState;var i;let s=o(void 0,{nextState:e()});return()=>{const n=o(s,{nextState:e()});n!==s&&(r.set(t,n),s=n)}}(i.getState,t,n.persist)),i}}}Ae.__unstableMigrate=()=>{};var je=Ae;function Le(){return Le=Object.assign?Object.assign.bind():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},Le.apply(this,arguments)}var Pe=window.wp.element,Fe=window.wp.priorityQueue,Ce=window.wp.isShallowEqual,Ue=r.n(Ce);const xe=(0,Pe.createContext)(me),{Consumer:ke,Provider:De}=xe,Me=ke;var Ve=De;function Ge(){return(0,Pe.useContext)(xe)}const He=(0,Pe.createContext)(!1),{Consumer:Ke,Provider:We}=He;var Xe=We;const ze=(0,Fe.createQueue)();function Je(e,t){const r=t?e.suspendSelect:e.select,n={};let o,i,s,u,c=!1;return(t,a,l)=>{const f=()=>t(r,e);function p(e){if(c&&t===o)return i;const r=e();Ue()(i,r)||(i=r),c=!0}if(s&&!l&&(c=!1,ze.cancel(n)),!u||a&&t!==o){const t={current:null};p((()=>e.__unstableMarkListeningStores(f,t))),g=t.current,u=t=>{c=!1;const r=()=>{c=!1,t()},o=()=>{s?ze.add(n,r):r()},i=g.map((t=>e.subscribe(o,t)));return()=>{for(const e of i)null==e||e();ze.cancel(n)}}}else p(f);var g;return s=l,o=t,{subscribe:u,getValue:function(){return p(f),i}}}}function $e(e,t,r){const n=Ge(),o=(0,Pe.useContext)(He),i=(0,Pe.useMemo)((()=>Je(n,e)),[n]),s=(0,Pe.useCallback)(t,r),{subscribe:u,getValue:c}=i(s,!!r,o),a=(0,Pe.useSyncExternalStore)(u,c,c);return(0,Pe.useDebugValue)(a),a}function Be(e,t){const r="function"!=typeof e,n=(0,Pe.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,Ge().select(o)):$e(!1,e,t);var o}function Qe(e,t){return $e(!0,e,t)}var qe=e=>(0,T.createHigherOrderComponent)((t=>(0,T.pure)((r=>{const n=Be(((t,n)=>e(t,r,n)));return(0,Pe.createElement)(t,Le({},r,n))}))),"withSelect");var Ye=(e,t)=>{const r=Ge(),n=(0,Pe.useRef)(e);return(0,T.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,Pe.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 Ze=e=>(0,T.createHigherOrderComponent)((t=>r=>{const n=Ye(((t,n)=>e(t,r,n)),[]);return(0,Pe.createElement)(t,Le({},r,n))}),"withDispatch");var et=(0,T.createHigherOrderComponent)((e=>t=>(0,Pe.createElement)(Me,null,(r=>(0,Pe.createElement)(e,Le({},t,{registry:r}))))),"withRegistry");var tt=e=>{const{dispatch:t}=Ge();return void 0===e?t:t(e)};const rt=s(),nt=me.select,ot=me.resolveSelect,it=me.suspendSelect,st=me.dispatch,ut=me.subscribe,ct=me.registerGenericStore,at=me.registerStore,lt=me.use,ft=me.register}(),(window.wp=window.wp||{}).data=n}();