mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
80ce372761
Updated packages: @wordpress/annotations: 1.7.2 -> 1.9.0 @wordpress/api-fetch: 3.6.4 -> 3.8.0 @wordpress/block-directory: 1.0.5 -> 1.2.0 @wordpress/block-editor: 3.2.5 -> 3.4.0 @wordpress/block-library: 2.9.6 -> 2.11.0 @wordpress/blocks: 6.7.2 -> 6.9.0 @wordpress/components: 8.3.2 -> 8.5.0 @wordpress/compose: 3.7.2 -> 3.9.0 @wordpress/core-data: 2.7.5 -> 2.9.0 @wordpress/data: 4.9.2 -> 4.11.0 @wordpress/data-controls: 1.3.4 -> 1.5.0 @wordpress/date: 3.5.0 -> 3.7.0 @wordpress/dom: 2.5.2 -> 2.6.0 @wordpress/e2e-test-utils: 3.0.0 -> 4.0.0 @wordpress/edit-post: 3.8.6 -> 3.10.0 @wordpress/editor: 9.7.6 -> 9.9.0 @wordpress/element: 2.8.2 -> 2.10.0 @wordpress/escape-html: 1.5.1 -> 1.6.0 @wordpress/format-library: 1.9.5 -> 1.11.0 @wordpress/i18n: 3.6.1 -> 3.7.0 @wordpress/keycodes: 2.6.2 -> 2.7.0 @wordpress/list-reusable-blocks: 1.8.4 -> 1.10.0 @wordpress/media-utils: 1.2.4 -> 1.4.0 @wordpress/notices: 1.8.2 -> 1.10.0 @wordpress/nux: 3.7.2 -> 3.9.0 @wordpress/plugins: 2.7.2 -> 2.9.0 @wordpress/rich-text: 3.7.2 -> 3.9.0 @wordpress/scripts: 6.0.0 -> 6.1.1 @wordpress/server-side-render: 1.3.4 -> 1.5.0 @wordpress/shortcode: 2.4.1 -> 2.5.0 @wordpress/token-list: 1.6.1 -> 1.8.0 @wordpress/url: 2.8.2 -> 2.9.0 @wordpress/viewport: 2.8.2 -> 2.10.0 Props gziolo, youknowriad. Fixes #49142. Built from https://develop.svn.wordpress.org/trunk@47051 git-svn-id: http://core.svn.wordpress.org/trunk@46851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
26 KiB
JavaScript
2 lines
26 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=367)}({0:function(e,t){!function(){e.exports=this.wp.element}()},108: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,u,c;if(void 0===n)return t(e,{},o);for(i=t(e,n,o),u=r.length;u--;)if(n[c=r[u]]!==i[c])return i;return n}}},14: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}))},147:function(e,t,r){"use strict";(function(e,n){var o,i=r(228);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var u=Object(i.a)(o);t.a=u}).call(this,r(61),r(337)(e))},18:function(e,t,r){"use strict";var n=r(32);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||Object(n.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(t,"a",(function(){return o}))},2:function(e,t){!function(){e.exports=this.lodash}()},22:function(e,t,r){"use strict";var n=r(33);var o=r(34);function i(e,t){return Object(n.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(e,t)||Object(o.a)()}r.d(t,"a",(function(){return i}))},227:function(e,t){!function(){e.exports=this.wp.reduxRoutine}()},228:function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",(function(){return n}))},229:function(e,t){!function(){e.exports=this.wp.priorityQueue}()},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},32:function(e,t,r){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},33:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},337:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},34:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(t,"a",(function(){return n}))},35:function(e,t){!function(){e.exports=this.wp.deprecated}()},367:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"getIsResolving",(function(){return F})),r.d(n,"hasStartedResolution",(function(){return V})),r.d(n,"hasFinishedResolution",(function(){return G})),r.d(n,"isResolving",(function(){return H})),r.d(n,"getCachedResolvers",(function(){return z}));var o={};r.r(o),r.d(o,"startResolution",(function(){return W})),r.d(o,"finishResolution",(function(){return X})),r.d(o,"invalidateResolution",(function(){return J})),r.d(o,"invalidateResolutionForStore",(function(){return K})),r.d(o,"invalidateResolutionForStoreSelector",(function(){return Y}));var i={};r.r(i),r.d(i,"controls",(function(){return ie})),r.d(i,"persistence",(function(){return de}));var u=r(108),c=r.n(u),a=r(22),s=r(7),f=r(2),l=r(42),p=r.n(l),d=r(23),v=r.n(d),b=r(43),h=r(147),y=function(){return Math.random().toString(36).substring(7).split("").join(".")},g={INIT:"@@redux/INIT"+y(),REPLACE:"@@redux/REPLACE"+y(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+y()}};function O(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 w(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(w)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,u=[],c=u,a=!1;function s(){c===u&&(c=u.slice())}function f(){if(a)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function l(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(a)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return s(),c.push(e),function(){if(t){if(a)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,s();var r=c.indexOf(e);c.splice(r,1),u=null}}}function p(e){if(!O(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(a)throw new Error("Reducers may not dispatch actions.");try{a=!0,i=o(i,e)}finally{a=!1}for(var t=u=c,r=0;r<t.length;r++){(0,t[r])()}return e}return p({type:g.INIT}),(n={dispatch:p,subscribe:l,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,p({type:g.REPLACE})}})[h.a]=function(){var e,t=l;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(f())}return r(),{unsubscribe:t(r)}}})[h.a]=function(){return this},e},n}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(r,!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(){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 E(){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("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return S({},r,{dispatch:n=R.apply(void 0,i)(r.dispatch)})}}}var _,x=r(227),T=r.n(x),I=r(97),A=r.n(I),N=function(){return function(e){return function(t){return A()(t)?t.then((function(t){if(t)return e(t)})):e(t)}}},P=r(18),k=function(e,t){return function(){return function(r){return function(n){var o=e.select("core/data").getCachedResolvers(t);return Object.entries(o).forEach((function(r){var o=Object(a.a)(r,2),i=o[0],u=o[1],c=Object(f.get)(e.stores,[t,"resolvers",i]);c&&c.shouldInvalidate&&u.forEach((function(r,o){!1===r&&c.shouldInvalidate.apply(c,[n].concat(Object(P.a)(o)))&&e.dispatch("core/data").invalidateResolution(t,i,o)}))})),r(n)}}}},L=r(76),C=r.n(L),D=r(9),M=Object(f.flowRight)([(_="selectorName",function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[_];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:Object(s.a)({},t,Object(D.a)({},n,o))}})])((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new C.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===t.type,n=new C.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new C.a(e);return o.delete(t.args),o}return e})),U=function(){var 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(f.has)(e,[t.selectorName])?Object(f.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return M(e,t)}return e};function F(e,t,r){var n=Object(f.get)(e,[t]);if(n)return n.get(r)}function V(e,t){return void 0!==F(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function G(e,t){return!1===F(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function H(e,t){return!0===F(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function z(e){return e}function W(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function X(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function J(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function K(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function Y(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}function q(e,t,r){var i,u=t.reducer,a=function(e,t,r){var n=[k(r,e),N];if(t.controls){var o=Object(f.mapValues)(t.controls,(function(e){return e.isRegistryControl?e(r):e}));n.push(T()(o))}var i=[E.apply(void 0,n)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&i.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e}));var u=t.reducer,a=t.initialState;return w(c()({metadata:U,root:u}),{root:a},Object(f.flowRight)(i))}(e,t,r),l=function(e,t){return Object(f.mapValues)(e,(function(e){return function(){return Promise.resolve(t.dispatch(e.apply(void 0,arguments)))}}))}(Object(s.a)({},o,t.actions),a),p=function(e,t){return Object(f.mapValues)(e,(function(e){var r=function(){var r=arguments.length,n=new Array(r+1);n[0]=t.__unstableOriginalGetState();for(var o=0;o<r;o++)n[o+1]=arguments[o];return e.apply(void 0,n)};return r.hasResolver=!1,r}))}(Object(s.a)({},Object(f.mapValues)(n,(function(e){return 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.apply(void 0,[t.metadata].concat(n))}})),Object(f.mapValues)(t.selectors,(function(e){return 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.apply(void 0,[t.root].concat(n))}}))),a);if(t.resolvers){var d=function(e,t,r){var n=Object(f.mapValues)(e,(function(e){var t=e.fulfill,r=void 0===t?e:t;return Object(s.a)({},e,{fulfill:r})}));return{resolvers:n,selectors:Object(f.mapValues)(t,(function(t,o){var i=e[o];if(!i)return t.hasResolver=!1,t;var u=function(){for(var e=arguments.length,u=new Array(e),c=0;c<e;c++)u[c]=arguments[c];function a(){return s.apply(this,arguments)}function s(){return(s=Object(b.a)(v.a.mark((function e(){var t,c;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.getState(),"function"!=typeof i.isFulfilled||!i.isFulfilled.apply(i,[t].concat(u))){e.next=3;break}return e.abrupt("return");case 3:if(c=r.__unstableOriginalGetState(),!V(c.metadata,o,u)){e.next=6;break}return e.abrupt("return");case 6:return r.dispatch(W(o,u)),e.next=9,B.apply(void 0,[r,n,o].concat(u));case 9:r.dispatch(X(o,u));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return a.apply(void 0,u),t.apply(void 0,u)};return u.hasResolver=!0,u}))}}(t.resolvers,p,a);i=d.resolvers,p=d.selectors}a.__unstableOriginalGetState=a.getState,a.getState=function(){return a.__unstableOriginalGetState().root};var h=a&&function(e){var t=a.__unstableOriginalGetState();a.subscribe((function(){var r=a.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))};return{reducer:u,store:a,actions:l,selectors:p,resolvers:i,getSelectors:function(){return p},getActions:function(){return l},subscribe:h}}function B(e,t,r){return Q.apply(this,arguments)}function Q(){return(Q=Object(b.a)(v.a.mark((function e(t,r,n){var o,i,u,c,a,s=arguments;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Object(f.get)(r,[n])){e.next=3;break}return e.abrupt("return");case 3:for(i=s.length,u=new Array(i>3?i-3:0),c=3;c<i;c++)u[c-3]=s[c];if(!(a=o.fulfill.apply(o,u))){e.next=8;break}return e.next=8,t.dispatch(a);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Z=function(e){return{getSelectors:function(){return["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].reduce((function(t,r){return Object(s.a)({},t,Object(D.a)({},r,function(t){return function(r){for(var n,o=arguments.length,i=new Array(o>1?o-1:0),u=1;u<o;u++)i[u-1]=arguments[u];return(n=e.select(r))[t].apply(n,i)}}(r)))}),{})},getActions:function(){return["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].reduce((function(t,r){return Object(s.a)({},t,Object(D.a)({},r,function(t){return function(r){for(var n,o=arguments.length,i=new Array(o>1?o-1:0),u=1;u<o;u++)i[u-1]=arguments[u];return(n=e.dispatch(r))[t].apply(n,i)}}(r)))}),{})},subscribe:function(){return function(){}}}};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[];function o(){n.forEach((function(e){return e()}))}var i=function(e){return n.push(e),function(){n=Object(f.without)(n,e)}};function u(e){var n=r[e];return n?n.getSelectors():t&&t.select(e)}var c=p()((function(e){return Object(f.mapValues)(Object(f.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(function(t,r){return function(){for(var n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return new Promise((function(n){var u=function(){return e.hasFinishedResolution(r,o)},c=function(){return t.apply(null,o)},a=c();if(u())return n(a);var s=i((function(){u()&&(s(),n(c()))}))}))}}))}),{maxSize:1});function l(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");r[e]=t,t.subscribe(o)}var d,v={registerGenericStore:l,stores:r,namespaces:r,subscribe:i,select:u,__experimentalResolveSelect:function(e){return c(u(e))},dispatch:function(e){var n=r[e];return n?n.getActions():t&&t.dispatch(e)},use:function(e,t){return v=Object(s.a)({},v,e(v,t))}};return v.registerStore=function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");var r=q(e,t,v);return l(e,r),r.store},l("core/data",Z(v)),Object.entries(e).forEach((function(e){var t=Object(a.a)(e,2),r=t[0],n=t[1];return v.registerStore(r,n)})),t&&t.subscribe(o),d=v,Object(f.mapValues)(d,(function(e,t){return"function"!=typeof e?e:function(){return v[t].apply(null,arguments)}}))}var ee,te,re=$(),ne=r(35),oe=r.n(ne),ie=function(e){return oe()("wp.data.plugins.controls",{hint:"The controls plugins is now baked-in."}),e},ue={getItem:function(e){return ee&&ee[e]?ee[e]:null},setItem:function(e,t){ee||ue.clear(),ee[e]=String(t)},clear:function(){ee=Object.create(null)}},ce=ue;try{(te=window.localStorage).setItem("__wpDataTestLocalStorage",""),te.removeItem("__wpDataTestLocalStorage")}catch(e){te=ce}var ae=te,se="WP_DATA",fe=function(e){return function(t,r){return r.nextState===t?t:e(t,r)}};function le(e){var t,r=e.storage,n=void 0===r?ae:r,o=e.storageKey,i=void 0===o?se:o;return{get:function(){if(void 0===t){var e=n.getItem(i);if(null===e)t={};else try{t=JSON.parse(e)}catch(e){t={}}}return t},set:function(e,r){t=Object(s.a)({},t,Object(D.a)({},e,r)),n.setItem(i,JSON.stringify(t))}}}var pe=function(e,t){var r=le(t);return{registerStore:function(t,n){if(!n.persist)return e.registerStore(t,n);var o=r.get()[t];if(void 0!==o){var i=n.reducer(void 0,{type:"@@WP/PERSISTENCE_RESTORE"});i=Object(f.isPlainObject)(i)&&Object(f.isPlainObject)(o)?Object(f.merge)({},i,o):o,n=Object(s.a)({},n,{initialState:i})}var u=e.registerStore(t,n);return u.subscribe(function(e,t,n){var o;if(Array.isArray(n)){var i=n.reduce((function(e,t){return Object.assign(e,Object(D.a)({},t,(function(e,r){return r.nextState[t]})))}),{});o=fe(c()(i))}else o=function(e,t){return t.nextState};var u=o(void 0,{nextState:e()});return function(){var n=o(u,{nextState:e()});n!==u&&(r.set(t,n),u=n)}}(u.getState,t,n.persist)),u}}};pe.__unstableMigrate=function(e){var t=le(e),r=Object(f.get)(t.get(),["core/editor","preferences","insertUsage"]);r&&t.set("core/block-editor",{preferences:{insertUsage:r}})};var de=pe,ve=r(14),be=r(0),he=r(8),ye=r(229),ge=r(45),Oe=r.n(ge),we=Object(be.createContext)(re),je=we.Consumer,me=we.Provider,Se=je,Re=me;function Ee(){return Object(be.useContext)(we)}var _e=Object(be.createContext)(!1),xe=(_e.Consumer,_e.Provider);var Te="undefined"!=typeof window?be.useLayoutEffect:be.useEffect,Ie=Object(ye.createQueue)();function Ae(e,t){var r,n=Object(be.useCallback)(e,t),o=Ee(),i=Object(be.useContext)(_e),u=Object(be.useMemo)((function(){return{queue:!0}}),[o]),c=Object(be.useReducer)((function(e){return e+1}),0),s=Object(a.a)(c,2)[1],f=Object(be.useRef)(),l=Object(be.useRef)(i),p=Object(be.useRef)(),d=Object(be.useRef)(),v=Object(be.useRef)();try{r=f.current!==n||d.current?n(o.select,o):p.current}catch(e){var b="An error occurred while running 'mapSelect': ".concat(e.message);if(d.current)throw b+="\nThe error may be correlated with this previous error:\n",b+="".concat(d.current.stack,"\n\n"),b+="Original stack trace:",new Error(b)}return Te((function(){f.current=n,l.current!==i&&(l.current=i,Ie.flush(u)),p.current=r,d.current=void 0,v.current=!0})),Te((function(){var e=function(){if(v.current){try{var e=f.current(o.select,o);if(Oe()(p.current,e))return;p.current=e}catch(e){d.current=e}s({})}};l.current?Ie.add(u,e):e();var t=o.subscribe((function(){l.current?Ie.add(u,e):e()}));return function(){v.current=!1,t(),Ie.flush(u)}}),[o]),r}var Ne=function(e){return Object(he.createHigherOrderComponent)((function(t){return Object(he.pure)((function(r){var n=Ae((function(t,n){return e(t,r,n)}));return Object(be.createElement)(t,Object(ve.a)({},r,n))}))}),"withSelect")},Pe=function(e){var t=Ee().dispatch;return void 0===e?t:t(e)},ke="undefined"!=typeof window?be.useLayoutEffect:be.useEffect,Le=function(e,t){var r=Ee(),n=Object(be.useRef)(e);return ke((function(){n.current=e})),Object(be.useMemo)((function(){var e=n.current(r.dispatch,r);return Object(f.mapValues)(e,(function(e,t){return"function"!=typeof e&&console.warn("Property ".concat(t," returned from dispatchMap in useDispatchWithMap must be a function.")),function(){var e;return(e=n.current(r.dispatch,r))[t].apply(e,arguments)}}))}),[r].concat(Object(P.a)(t)))},Ce=function(e){return Object(he.createHigherOrderComponent)((function(t){return function(r){var n=Le((function(t,n){return e(t,r,n)}),[]);return Object(be.createElement)(t,Object(ve.a)({},r,n))}}),"withDispatch")},De=Object(he.createHigherOrderComponent)((function(e){return function(t){return Object(be.createElement)(Se,null,(function(r){return Object(be.createElement)(e,Object(ve.a)({},t,{registry:r}))}))}}),"withRegistry");function Me(e){var t=function t(){return e(t.registry.select).apply(void 0,arguments)};return t.isRegistrySelector=!0,t.registry=re,t}function Ue(e){return e.isRegistryControl=!0,e}r.d(t,"select",(function(){return Fe})),r.d(t,"__experimentalResolveSelect",(function(){return Ve})),r.d(t,"dispatch",(function(){return Ge})),r.d(t,"subscribe",(function(){return He})),r.d(t,"registerGenericStore",(function(){return ze})),r.d(t,"registerStore",(function(){return We})),r.d(t,"use",(function(){return Xe})),r.d(t,"withSelect",(function(){return Ne})),r.d(t,"withDispatch",(function(){return Ce})),r.d(t,"withRegistry",(function(){return De})),r.d(t,"RegistryProvider",(function(){return Re})),r.d(t,"RegistryConsumer",(function(){return Se})),r.d(t,"useRegistry",(function(){return Ee})),r.d(t,"useSelect",(function(){return Ae})),r.d(t,"useDispatch",(function(){return Pe})),r.d(t,"AsyncModeProvider",(function(){return xe})),r.d(t,"createRegistry",(function(){return $})),r.d(t,"createRegistrySelector",(function(){return Me})),r.d(t,"createRegistryControl",(function(){return Ue})),r.d(t,"plugins",(function(){return i})),r.d(t,"combineReducers",(function(){return c.a}));var Fe=re.select,Ve=re.__experimentalResolveSelect,Ge=re.dispatch,He=re.subscribe,ze=re.registerGenericStore,We=re.registerStore,Xe=re.use},42:function(e,t,r){e.exports=function(e,t){var r,n,o,i=0;function u(){var t,u,c=n,a=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(u=0;u<a;u++)if(c.args[u]!==arguments[u]){c=c.next;continue e}return c!==n&&(c===o&&(o=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n,c.prev=null,n.prev=c,n=c),c.val}c=c.next}for(t=new Array(a),u=0;u<a;u++)t[u]=arguments[u];return c={args:t,val:e.apply(null,t)},n?(n.prev=c,c.next=n):o=c,i===r?(o=o.prev).next=null:i++,n=c,c.val}return t&&t.maxSize&&(r=t.maxSize),u.clear=function(){n=null,o=null,i=0},u}},43:function(e,t,r){"use strict";function n(e,t,r,n,o,i,u){try{var c=e[i](u),a=c.value}catch(e){return void r(e)}c.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var u=e.apply(t,r);function c(e){n(u,o,i,c,a,"next",e)}function a(e){n(u,o,i,c,a,"throw",e)}c(void 0)}))}}r.d(t,"a",(function(){return o}))},45:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},61:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},7:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(9);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(Object(r));"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){Object(n.a)(e,t,r[t])}))}return e}},76: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(),u=Array.isArray(t)?n:o,c=0;c<i.length;c++){var a=i[c];if(void 0===(u=u.get(a)))return;var s=t[a];if(void 0===(u=u.get(s)))return}var f=u.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,u.set("_ekm_value",f),r.set(t,f),f):void 0}var u=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,u;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],u=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,c=0;c<o.length;c++){var a=o[c];u.has(a)||u.set(a,new e),u=u.get(a);var s=t[a];u.has(s)||u.set(s,new e),u=u.get(s)}var f=u.get("_ekm_value");return f&&this._map.delete(f[0]),u.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),u&&o(t,u),e}();e.exports=u},8:function(e,t){!function(){e.exports=this.wp.compose}()},9:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},97:function(e,t){e.exports=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}}}); |