mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 12:20:25 +01:00
158cbdbf03
- `grunt webpack:dev` now copies packages JS into `/src/wp-includes/js/dist`, and CSS into `/src/wp-includes/css/dist`. - `grunt webpack:prod` does the same, but into `/build` instead of `/src`. - `grunt build` now runs the `webpack:prod` task. Props atimmer, pento. Fixes #45119. Built from https://develop.svn.wordpress.org/branches/5.0@43760 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=372)}({1:function(e,t){!function(){e.exports=this.lodash}()},116: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}},16: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})},21:function(e,t,r){"use strict";var n=r(33);function i(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 i})},26:function(e,t,r){"use strict";var n=r(34);var i=r(35);function o(e,t){return Object(n.a)(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return r}(e,t)||Object(i.a)()}r.d(t,"a",function(){return o})},30:function(e,t){!function(){e.exports=this.wp.apiFetch}()},32:function(e,t){!function(){e.exports=this.wp.url}()},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})},34:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",function(){return n})},35: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})},372:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"receiveUserQuery",function(){return _}),r.d(n,"addEntities",function(){return S}),r.d(n,"receiveEntityRecords",function(){return I}),r.d(n,"receiveThemeSupportsFromIndex",function(){return T}),r.d(n,"receiveEmbedPreview",function(){return P});var i={};r.r(i),r.d(i,"isRequestingEmbedPreview",function(){return z}),r.d(i,"getAuthors",function(){return G}),r.d(i,"getUserQueryResults",function(){return X}),r.d(i,"getEntitiesByKind",function(){return J}),r.d(i,"getEntity",function(){return Z}),r.d(i,"getEntityRecord",function(){return $}),r.d(i,"getEntityRecords",function(){return ee}),r.d(i,"getThemeSupports",function(){return te}),r.d(i,"getEmbedPreview",function(){return re}),r.d(i,"isPreviewEmbedFallback",function(){return ne});var o={};r.r(o),r.d(o,"getAuthors",function(){return se}),r.d(o,"getEntityRecord",function(){return fe}),r.d(o,"getEntityRecords",function(){return de}),r.d(o,"getThemeSupports",function(){return le}),r.d(o,"getEmbedPreview",function(){return pe});var u=r(9),a=r(5),c=r(26),s=r(21),f=r(16),d=r(1),l=function(e){return function(t){return function(r,n){return void 0===r||e(n)?t(r,n):r}}},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,i=n[e];if(void 0===i)return r;var o=t(r[i],n);return o===r[i]?r:Object(u.a)({},r,Object(f.a)({},i,o))}}},v=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var h=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}};function b(e){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(e)}}var y=r(38),g=r(70),m=r.n(g),w=r(32);var j=h(function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n<r.length;n++){var i=r[n],o=e[i];switch(i){case"page":t[i]=Number(o);break;case"per_page":t.perPage=Number(o);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(w.addQueryArgs)("",Object(f.a)({},i,o)).slice(1)}}return t}),E=new WeakMap;var O=Object(y.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=E.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new m.a,E.set(e,r);var i=function(e,t){var r=j(t),n=r.stableKey,i=r.page,o=r.perPage;if(!e.queries[n])return null;var u=e.queries[n];if(!u)return null;for(var a=-1===o?0:(i-1)*o,c=-1===o?u.length:Math.min(a+o,u.length),s=[],f=a;f<c;f++){var d=u[f];s.push(e.items[d])}return s}(e,t);return r.set(t,i),i}),x=r(45);var k=Object(d.flowRight)([l(function(e){return"query"in e}),v(function(e){return e.query?Object(u.a)({},e,j(e.query)):e}),p("stableKey")])(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,i=t.perPage,o=t.key,u=void 0===o?"id":o;return"RECEIVE_ITEMS"!==r?e:function(e,t,r,n){for(var i=(r-1)*n,o=Math.max(e.length,i+t.length),u=new Array(o),a=0;a<o;a++){var c=a>=i&&a<i+t.length;u[a]=c?t[a-i]:e[a]}return u}(e||[],Object(d.map)(t.items,u),n,i)}),R=Object(x.b)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return Object(u.a)({},e,Object(d.keyBy)(t.items,t.key||"id"))}return e},queries:k});function _(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(d.castArray)(t),queryID:e}}function S(e){return{type:"ADD_ENTITIES",entities:e}}function I(e,t,r,n){var i;return i=n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(u.a)({},b(e),{query:t})}(r,n):b(r),Object(u.a)({},i,{kind:e,name:t})}function T(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e.theme_supports}}function P(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}var A=r(30),M=r.n(A);function C(e){return{type:"API_FETCH",request:e}}function q(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{type:"SELECT",selectorName:e,args:r}}var U={API_FETCH:function(e){var t=e.request;return M()(t)},SELECT:function(e){var t,r=e.selectorName,n=e.args;return(t=Object(a.select)("core"))[r].apply(t,Object(s.a)(n))}},D=regeneratorRuntime.mark(F),N=regeneratorRuntime.mark(K),L=regeneratorRuntime.mark(Q),V=[{name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types"},{name:"media",kind:"root",baseURL:"/wp/v2/media",plural:"mediaItems"},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",plural:"taxonomies"}],B=[{name:"postType",loadEntities:F},{name:"taxonomy",loadEntities:K}];function F(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},D,this)}function K(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(d.map)(e,function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}}));case 4:case"end":return t.stop()}},N,this)}var W=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Object(d.find)(V,{kind:e,name:t}),o="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),u=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),a=n&&i.plural?Object(d.upperFirst)(Object(d.camelCase)(i.plural)):u;return"".concat(r).concat(o).concat(a)};function Q(e){var t,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,q("getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(d.find)(B,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,S(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}},L,this)}var H=Object(a.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return Object(u.a)({},e,Object(f.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:Object(u.a)({},e.byId,Object(d.keyBy)(t.users,"id")),queries:Object(u.a)({},e.queries,Object(f.a)({},t.queryID,Object(d.map)(t.users,function(e){return e.id})))}}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return Object(u.a)({},e,t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return Object(s.a)(e).concat(Object(s.a)(t.entities))}return e}(e.config,t),n=e.reducer;if(!n||r!==e.config){var i=Object(d.groupBy)(r,"kind");n=Object(a.combineReducers)(Object.entries(i).reduce(function(e,t){var r=Object(c.a)(t,2),n=r[0],i=r[1],o=Object(a.combineReducers)(i.reduce(function(e,t){return Object(u.a)({},e,Object(f.a)({},t.name,function(e){return Object(d.flowRight)([l(function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind}),v(function(t){return Object(u.a)({},t,{key:e.key||"id"})})])(R)}(t)))},{}));return e[n]=o,e},{}))}var o=n(e.data,t);return o===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:o,config:r}},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return Object(u.a)({},e,Object(f.a)({},r,n))}return e}}),Y="core";function z(e,t){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object(a.select)("core/data").isResolving(Y,e,r)}("getEmbedPreview",t)}function G(e){return X(e,"authors")}var X=Object(y.a)(function(e,t){var r=e.users.queries[t];return Object(d.map)(r,function(t){return e.users.byId[t]})},function(e,t){return[e.users.queries[t],e.users.byId]});function J(e,t){return Object(d.filter)(e.entities.config,{kind:t})}function Z(e,t,r){return Object(d.find)(e.entities.config,{kind:t,name:r})}function $(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"items",n])}function ee(e,t,r,n){var i=Object(d.get)(e.entities.data,[t,r]);return i?O(i,n):[]}function te(e){return e.themeSupports}function re(e,t){return e.embedPreviews[t]}function ne(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}var ie=regeneratorRuntime.mark(se),oe=regeneratorRuntime.mark(fe),ue=regeneratorRuntime.mark(de),ae=regeneratorRuntime.mark(le),ce=regeneratorRuntime.mark(pe);function se(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,_("authors",e);case 5:case"end":return t.stop()}},ie,this)}function fe(e,t,r){var n,i,o;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Q(e);case 2:if(n=u.sent,i=Object(d.find)(n,{kind:e,name:t})){u.next=6;break}return u.abrupt("return");case 6:return u.next=8,C({path:"".concat(i.baseURL,"/").concat(r,"?context=edit")});case 8:return o=u.sent,u.next=11,I(e,t,o);case 11:case"end":return u.stop()}},oe,this)}function de(e,t){var r,n,i,o,a,c=arguments;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,Q(e);case 3:if(n=s.sent,i=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return o=Object(w.addQueryArgs)(i.baseURL,Object(u.a)({},r,{context:"edit"})),s.next=10,C({path:o});case 10:return a=s.sent,s.next=13,I(e,t,Object.values(a),r);case 13:case"end":return s.stop()}},ue,this)}function le(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({path:"/"});case 2:return e=t.sent,t.next=5,T(e);case 5:case"end":return t.stop()}},ae,this)}function pe(e){var t;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,C({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,P(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,P(e,!1);case 12:case"end":return r.stop()}},ce,this,[[0,8]])}var ve=function(e){return V.reduce(function(t,r){var n=r.kind,i=r.name;return t[W(n,i)]=function(t){return e.getEntityRecord(n,i,t)},t[W(n,i,"get",!0)]=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.getEntityRecords.apply(e,[n,i].concat(r))},t},{})}(o),he=function(e){return V.reduce(function(t,r){var n=r.kind,i=r.name;return t[W(n,i)]=function(t,r){return e.getEntityRecord(t,n,i,r)},t[W(n,i,"get",!0)]=function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),u=1;u<r;u++)o[u-1]=arguments[u];return e.getEntityRecords.apply(e,[t,n,i].concat(o))},t},{})}(i),be=Object(a.registerStore)(Y,{reducer:H,actions:n,controls:U,selectors:Object(u.a)({},i,he),resolvers:Object(u.a)({},o,ve)});t.default=be},38:function(e,t,r){"use strict";var n,i;function o(e){return[e]}function u(e){return!!e&&"object"==typeof e}function a(){var e={clear:function(){e.head=null}};return e}function c(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n={},i="undefined"!=typeof WeakMap,t.a=function(e,t){var r,s;function f(){r=i?new WeakMap:a()}function d(){var r,n,i,o,u,a=arguments.length;for(o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];for(u=t.apply(null,o),(r=s(u)).isUniqueByDependants||(r.lastDependants&&!c(u,r.lastDependants,0)&&r.clear(),r.lastDependants=u),n=r.head;n;){if(c(n.args,o,1))return n!==r.head&&(n.prev.next=n.next,n.next&&(n.next.prev=n.prev),n.next=r.head,n.prev=null,r.head.prev=n,r.head=n),n.val;n=n.next}return n={val:e.apply(null,o)},o[0]=null,n.args=o,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=o),s=i?function(e){var t,i,o,c,s=r,f=!0;for(t=0;t<e.length;t++){if(!u(i=e[t])){f=!1;break}s.has(i)?s=s.get(i):(o=new WeakMap,s.set(i,o),s=o)}return s.has(n)||((c=a()).isUniqueByDependants=f,s.set(n,c)),s.get(n)}:function(){return r},d.getDependants=t,d.clear=f,f(),d}},45:function(e,t,r){"use strict";r.d(t,"c",function(){return c}),r.d(t,"b",function(){return f}),r.d(t,"a",function(){return d});var n=r(67),i={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},o="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},u=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};function a(e){if("object"!==(void 0===e?"undefined":o(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 u;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 s=e,f=t,d=[],l=d,p=!1;function v(){l===d&&(l=d.slice())}function h(){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 f}function b(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 v(),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,v();var r=l.indexOf(e);l.splice(r,1)}}}function y(e){if(!a(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,f=s(f,e)}finally{p=!1}for(var t=d=l,r=0;r<t.length;r++){(0,t[r])()}return e}return y({type:i.INIT}),(u={dispatch:y,subscribe:b,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,y({type:i.REPLACE})}})[n.a]=function(){var e,t=b;return(e={subscribe:function(e){if("object"!==(void 0===e?"undefined":o(e))||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(h())}return r(),{unsubscribe:t(r)}}})[n.a]=function(){return this},e},u}function s(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 f(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=Object.keys(r);var a=void 0;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:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))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){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var n=!1,i={},o=0;o<u.length;o++){var c=u[o],f=r[c],d=e[c],l=f(d,t);if(void 0===l){var p=s(c,t);throw new Error(p)}i[c]=l,n=n||l!==d}return n?i:e}}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=e.apply(void 0,n),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:o.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=t.map(function(e){return e(c)});return a=function(){for(var e=arguments.length,t=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,s)(o.dispatch),u({},o,{dispatch:a})}}}},5:function(e,t){!function(){e.exports=this.wp.data}()},51:function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},67:function(e,t,r){"use strict";(function(e,n){var i,o=r(76);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var u=Object(o.a)(i);t.a=u}).call(this,r(51),r(116)(e))},70: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 i(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){var r=e._map,n=e._arrayTreeMap,i=e._objectTreeMap;if(r.has(t))return r.get(t);for(var o=Object.keys(t).sort(),u=Array.isArray(t)?n:i,a=0;a<o.length;a++){var c=o[a];if(void 0===(u=u.get(c)))return;var s=t[c];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])}return function(e,t,r){t&&i(e.prototype,t),r&&i(e,r)}(e,[{key:"set",value:function(t,r){if(null===t||"object"!==n(t))return this._map.set(t,r),this;for(var i=Object.keys(t).sort(),o=[t,r],u=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];u.has(c)||u.set(c,new e),u=u.get(c);var s=t[c];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",o),this._map.set(t,o),this}},{key:"get",value:function(e){if(null===e||"object"!==n(e))return this._map.get(e);var t=o(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!==o(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(i,o){null!==o&&"object"===n(o)&&(i=i[1]),e.call(r,i,o,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}}]),e}();e.exports=u},76: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})},9:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r(16);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){Object(n.a)(e,t,r[t])})}return e}}}); |