mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-09 22:29:05 +02:00
Changes of note: - Includes the new Annotations API package. - `wp-polyfill-ecmascript.js` is renamed to `wp-polyfill.js`. - `strip_dynamic_blocks()` has been removed in favor of `excerpt_remove_blocks()`. - The PHP block parser is now syncing from the `block-serialization-default-parser` package. - `do_blocks()` uses the new parser. - The `do_block` filter has been removed from `do_blocks()`, in favor of a `render_block` filter in `render_block()`. Also, a little cleanup to `render_block()`. Always normalize `$block['attrs’]` to array in `’render_block’` filter. Props pento, azaozz. Merges [43884] and [43888] to trunk. See #45145, #45190, #45264, #45282. Built from https://develop.svn.wordpress.org/trunk@44261 git-svn-id: http://core.svn.wordpress.org/trunk@44091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
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=310)}({0:function(e,t){!function(){e.exports=this.wp.element}()},10:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",function(){return n})},11:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(29),o=r(3);function i(e,t){return!t||"object"!==Object(n.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},12:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",function(){return n})},120: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}},13:function(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}r.d(t,"a",function(){return o})},15: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})},171: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}}},18: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})},186:function(e,t){!function(){e.exports=this.wp.reduxRoutine}()},19:function(e,t,r){"use strict";var n=r(33);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}()},24:function(e,t,r){"use strict";var n=r(36);var o=r(37);function i(e,t){return Object(n.a)(e)||function(e,t){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})},28:function(e,t){!function(){e.exports=this.wp.deprecated}()},29: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){return(o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}r.d(t,"a",function(){return o})},3:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",function(){return n})},310:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"getIsResolving",function(){return _}),r.d(n,"hasStartedResolution",function(){return x}),r.d(n,"hasFinishedResolution",function(){return R}),r.d(n,"isResolving",function(){return T}),r.d(n,"getCachedResolvers",function(){return I});var o={};r.r(o),r.d(o,"startResolution",function(){return A}),r.d(o,"finishResolution",function(){return k}),r.d(o,"invalidateResolution",function(){return N});var i={};r.r(i),r.d(i,"controls",function(){return K}),r.d(i,"persistence",function(){return B});var u=r(171),c=r.n(u),a=r(24),s=r(8),f=r(2),l=r(28),p=r.n(l),d=r(39),y=r(62),h=r(86),b=r.n(h),v=function(){return function(e){return function(t){return b()(t)?t.then(function(t){if(t)return e(t)}):e(t)}}},g=r(19),w=function(e,t){return function(){return function(r){return function(n){var o=e.select("core/data").getCachedResolvers(t);Object.entries(o).forEach(function(r){var o=Object(a.a)(r,2),i=o[0],u=o[1],c=Object(f.get)(e.namespaces,[t,"resolvers",i]);c&&c.shouldInvalidate&&u.forEach(function(r,o){!1===r&&c.shouldInvalidate.apply(c,[n].concat(Object(g.a)(o)))&&e.dispatch("core/data").invalidateResolution(t,i,o)})}),r(n)}}}};function O(e,t,r){var n=r.namespaces[e]||{},o=n.reducer,i=n.store,u=n.actions,c=n.selectors,a=n.resolvers;if(t.reducer&&(o=t.reducer,i=function(e,t,r){var n=[Object(y.a)(w(r,t),v)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&n.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:t,instanceId:t}));return Object(y.c)(e,Object(f.flowRight)(n))}(o,e,r)),t.actions){if(!i)throw new TypeError("Cannot specify actions when no reducer is present");u=function(e,t){return Object(f.mapValues)(e,function(e){return function(){return t.dispatch(e.apply(void 0,arguments))}})}(t.actions,i)}if(t.selectors){if(!i)throw new TypeError("Cannot specify selectors when no reducer is present");c=function(e,t){return Object(f.mapValues)(e,function(e){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.apply(void 0,[t.getState()].concat(n))}})}(t.selectors,i)}if(t.resolvers){var l=function(e,t){var r=e.select("core/data").hasStartedResolution,n=e.dispatch("core/data"),o=n.startResolution,i=n.finishResolution;return{hasStarted:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return r.apply(void 0,[t].concat(n))},start:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return o.apply(void 0,[t].concat(r))},finish:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return i.apply(void 0,[t].concat(r))},fulfill:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return function(e,t,r){return m.apply(this,arguments)}.apply(void 0,[e,t].concat(n))}}}(r,e),p=function(e,t,r,n){return{resolvers:Object(f.mapValues)(e,function(e){var t=e.fulfill,r=void 0===t?e:t;return Object(s.a)({},e,{fulfill:r})}),selectors:Object(f.mapValues)(t,function(t,o){var i=e[o];if(!i)return t;return function(){for(var e=arguments.length,u=new Array(e),c=0;c<e;c++)u[c]=arguments[c];function a(){return(a=Object(d.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.getState(),"function"!=typeof i.isFulfilled||!i.isFulfilled.apply(i,[t].concat(u))){e.next=3;break}return e.abrupt("return");case 3:if(!r.hasStarted(o,u)){e.next=5;break}return e.abrupt("return");case 5:return r.start(o,u),e.next=8,r.fulfill.apply(r,[o].concat(u));case 8:r.finish(o,u);case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}return function(){return a.apply(this,arguments)}.apply(void 0,u),t.apply(void 0,u)}})}}(t.resolvers,c,l,i);a=p.resolvers,c=p.selectors}var h=i&&function(e){var t=i.getState();i.subscribe(function(){var r=i.getState(),n=r!==t;t=r,n&&e()})};return{reducer:o,store:i,actions:u,selectors:c,resolvers:a,getSelectors:function(){return c},getActions:function(){return u},subscribe:h}}function m(){return(m=Object(d.a)(regeneratorRuntime.mark(function e(t,r,n){var o,i,u,c,a,s,l=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.stores[r],i=Object(f.get)(o,["resolvers",n])){e.next=4;break}return e.abrupt("return");case 4:for(u=l.length,c=new Array(u>3?u-3:0),a=3;a<u;a++)c[a-3]=l[a];if(!(s=i.fulfill.apply(i,c))){e.next=9;break}return e.next=9,o.store.dispatch(s);case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}var j=r(66),S=r.n(j),E=r(15),P=function(e){return function(t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[e];if(void 0===o)return r;var i=t(r[o],n);return i===r[o]?r:Object(s.a)({},r,Object(E.a)({},o,i))}}};function _(e,t,r,n){var o=Object(f.get)(e,[t,r]);if(o)return o.get(n)}function x(e,t,r){return void 0!==_(e,t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function R(e,t,r){return!1===_(e,t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function T(e,t,r){return!0===_(e,t,r,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])}function I(e,t){return e.hasOwnProperty(t)?e[t]:{}}function A(e,t,r){return{type:"START_RESOLUTION",reducerKey:e,selectorName:t,args:r}}function k(e,t,r){return{type:"FINISH_RESOLUTION",reducerKey:e,selectorName:t,args:r}}function N(e,t,r){return{type:"INVALIDATE_RESOLUTION",reducerKey:e,selectorName:t,args:r}}var C={reducer:Object(f.flowRight)([P("reducerKey"),P("selectorName")])(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new S.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 S.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new S.a(e);return o.delete(t.args),o}return e}),actions:o,selectors:n};function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},r=[];function n(){r.forEach(function(e){return e()})}function o(e,r){if("function"!=typeof r.getSelectors)throw new TypeError("config.getSelectors must be a function");if("function"!=typeof r.getActions)throw new TypeError("config.getActions must be a function");if("function"!=typeof r.subscribe)throw new TypeError("config.subscribe must be a function");t[e]=r,r.subscribe(n)}var i,u={registerGenericStore:o,stores:t,namespaces:t,subscribe:function(e){return r.push(e),function(){r=Object(f.without)(r,e)}},select:function(e){var r=t[e];return r&&r.getSelectors()},dispatch:function(e){var r=t[e];return r&&r.getActions()},use:function(e,t){return u=Object(s.a)({},u,e(u,t))}};return u.registerReducer=function(e,t){p()("registry.registerReducer",{alternative:"registry.registerStore",plugin:"Gutenberg",version:"4.4.0"});var r=O(e,{reducer:t},u);return o(e,r),r.store},u.registerActions=function(e,t){p()("registry.registerActions",{alternative:"registry.registerStore",plugin:"Gutenberg",version:"4.4.0"}),o(e,O(e,{actions:t},u))},u.registerSelectors=function(e,t){p()("registry.registerSelectors",{alternative:"registry.registerStore",plugin:"Gutenberg",version:"4.4.0"}),o(e,O(e,{selectors:t},u))},u.registerResolvers=function(e,t){p()("registry.registerResolvers",{alternative:"registry.registerStore",plugin:"Gutenberg",version:"4.4.0"}),o(e,O(e,{resolvers:t},u))},u.registerStore=function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");var r=O(e,t,u);return o(e,r),r.store},Object.entries(Object(s.a)({"core/data":C},e)).map(function(e){var t=Object(a.a)(e,2),r=t[0],n=t[1];return u.registerStore(r,n)}),i=u,Object(f.mapValues)(i,function(e,t){return"function"!=typeof e?e:function(){return u[t].apply(null,arguments)}})}var L,M,U=D(),V=r(186),G=r.n(V),K=function(e){return{registerStore:function(t,r){var n=e.registerStore(t,r);if(r.controls){var o=G()(r.controls),i=Object(y.a)(o);Object.assign(n,i(function(){return n})(r.reducer)),e.namespaces[t].supportControls=!0}return n}}},F={getItem:function(e){return L&&L[e]?L[e]:null},setItem:function(e,t){L||F.clear(),L[e]=String(t)},clear:function(){L=Object.create(null)}},H=F;try{(M=window.localStorage).setItem("__wpDataTestLocalStorage",""),M.removeItem("__wpDataTestLocalStorage")}catch(e){M=H}var W=M,X="WP_DATA";function z(e,t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;return e(r,n)}}var B=function(e,t){var r,n,o,i,u,c,a=(o=(r=t).storage,i=void 0===o?W:o,u=r.storageKey,c=void 0===u?X:u,{get:function(){if(void 0===n){var e=i.getItem(c);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,t){n=Object(s.a)({},n,Object(E.a)({},e,t)),i.setItem(c,JSON.stringify(n))}});function l(e,t,r){var n=e();return function(o){var i=e();return i!==n&&(Array.isArray(r)&&(i=Object(f.pick)(i,r)),a.set(t,i),n=i),o}}return{registerStore:function(t,r){if(!r.persist)return e.registerStore(t,r);var n=a.get()[t];r=Object(s.a)({},r,{reducer:z(r.reducer,n)});var o=e.registerStore(t,r);return o.dispatch=Object(f.flow)([o.dispatch,l(o.getState,t,r.persist)]),o}}},J=r(18),Y=r(10),q=r(9),Q=r(11),Z=r(12),$=r(13),ee=r(0),te=r(41),re=r.n(te),ne=r(7),oe=Object(ee.createContext)(U),ie=oe.Consumer,ue=oe.Provider,ce=ie,ae=ue,se=function(e){return Object(ne.createHigherOrderComponent)(function(t){var r={};function n(t){return e(t.registry.select,t.ownProps)||r}var o=function(e){function r(e){var t;return Object(Y.a)(this,r),(t=Object(Q.a)(this,Object(Z.a)(r).call(this,e))).subscribe(e.registry),t.mergeProps=n(e),t}return Object($.a)(r,e),Object(q.a)(r,[{key:"componentDidMount",value:function(){this.canRunSelection=!0}},{key:"componentWillUnmount",value:function(){this.canRunSelection=!1,this.unsubscribe()}},{key:"shouldComponentUpdate",value:function(e,t){var r=e.registry!==this.props.registry;r&&(this.unsubscribe(),this.subscribe(e.registry));var o=r||!re()(this.props.ownProps,e.ownProps);if(this.state===t&&!o)return!1;if(o){var i=n(e);re()(this.mergeProps,i)||(this.mergeProps=i)}return!0}},{key:"subscribe",value:function(e){var t=this;this.unsubscribe=e.subscribe(function(){if(t.canRunSelection){var e=n(t.props);re()(t.mergeProps,e)||(t.mergeProps=e,t.setState({}))}})}},{key:"render",value:function(){return Object(ee.createElement)(t,Object(J.a)({},this.props.ownProps,this.mergeProps))}}]),r}(ee.Component);return function(e){return Object(ee.createElement)(ce,null,function(t){return Object(ee.createElement)(o,{ownProps:e,registry:t})})}},"withSelect")},fe=function(e){return Object(ne.createHigherOrderComponent)(Object(ne.compose)([ne.pure,function(t){var r=function(r){function n(e){var t;return Object(Y.a)(this,n),(t=Object(Q.a)(this,Object(Z.a)(n).apply(this,arguments))).proxyProps={},t.setProxyProps(e),t}return Object($.a)(n,r),Object(q.a)(n,[{key:"componentDidUpdate",value:function(){this.setProxyProps(this.props)}},{key:"proxyDispatch",value:function(t){for(var r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(r=e(this.props.registry.dispatch,this.props.ownProps))[t].apply(r,o)}},{key:"setProxyProps",value:function(t){var r=this,n=e(this.props.registry.dispatch,t.ownProps);this.proxyProps=Object(f.mapValues)(n,function(e,t){return r.proxyProps.hasOwnProperty(t)?r.proxyProps[t]:r.proxyDispatch.bind(r,t)})}},{key:"render",value:function(){return Object(ee.createElement)(t,Object(J.a)({},this.props.ownProps,this.proxyProps))}}]),n}(ee.Component);return function(e){return Object(ee.createElement)(ce,null,function(t){return Object(ee.createElement)(r,{ownProps:e,registry:t})})}}]),"withDispatch")};r.d(t,"select",function(){return le}),r.d(t,"dispatch",function(){return pe}),r.d(t,"subscribe",function(){return de}),r.d(t,"registerGenericStore",function(){return ye}),r.d(t,"registerStore",function(){return he}),r.d(t,"registerReducer",function(){return be}),r.d(t,"registerActions",function(){return ve}),r.d(t,"registerSelectors",function(){return ge}),r.d(t,"registerResolvers",function(){return we}),r.d(t,"use",function(){return Oe}),r.d(t,"withSelect",function(){return se}),r.d(t,"withDispatch",function(){return fe}),r.d(t,"RegistryProvider",function(){return ae}),r.d(t,"RegistryConsumer",function(){return ce}),r.d(t,"createRegistry",function(){return D}),r.d(t,"plugins",function(){return i}),r.d(t,"combineReducers",function(){return c.a});var le=U.select,pe=U.dispatch,de=U.subscribe,ye=U.registerGenericStore,he=U.registerStore,be=U.registerReducer,ve=U.registerActions,ge=U.registerSelectors,we=U.registerResolvers,Oe=U.use},33: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})},36:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",function(){return n})},37: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})},39: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})},41:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},52: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},62:function(e,t,r){"use strict";r.d(t,"c",function(){return c}),r.d(t,"b",function(){return s}),r.d(t,"a",function(){return l});var n=r(67),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function u(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 c(e,t,r){var o;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(c)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var a=e,s=t,f=[],l=f,p=!1;function d(){l===f&&(l=f.slice())}function y(){if(p)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 s}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)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#subscribe(listener) for more details.");var t=!0;return d(),l.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,d();var r=l.indexOf(e);l.splice(r,1)}}}function b(e){if(!u(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(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,s=a(s,e)}finally{p=!1}for(var t=f=l,r=0;r<t.length;r++){(0,t[r])()}return e}return b({type:i.INIT}),(o={dispatch:b,subscribe:h,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");a=e,b({type:i.REPLACE})}})[n.a]=function(){var e,t=h;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(y())}return r(),{unsubscribe:t(r)}}})[n.a]=function(){return this},e},o}function a(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}var u,c=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(r)}catch(e){u=e}return function(e,t){if(void 0===e&&(e={}),u)throw u;for(var n=!1,o={},i=0;i<c.length;i++){var s=c[i],f=r[s],l=e[s],p=f(l,t);if(void 0===p){var d=a(s,t);throw new Error(d)}o[s]=p,n=n||p!==l}return n?o:e}}function f(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(){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 function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){f(e,t,r[t])})}return e}({},r,{dispatch:n=function(){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))}})}.apply(void 0,i)(r.dispatch)})}}}},66: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},67:function(e,t,r){"use strict";(function(e,n){var o,i=r(85);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(52),r(120)(e))},7:function(e,t){!function(){e.exports=this.wp.compose}()},8:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r(15);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(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}},85: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})},86:function(e,t){e.exports=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}},9:function(e,t,r){"use strict";function n(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 o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",function(){return o})}}); |