WordPress/wp-includes/js/dist/core-data.min.js
desrosj cf023b82bd Build/Test Tools: Support NodeJS 14.x in the 5.2 branch.
This updates the 5.2 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy.

In addition to backporting the package updates that happened after branching 5.2, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin, whyisjake.
Merges [45321,45765,45826,45875,46403-46404,46408-46409,47404,47867,47872-47873,48213,48705,49636,49933,49937,49939-49940,49983,49989,50017,50126,50176,50185] to the 5.2 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.2@50191


git-svn-id: http://core.svn.wordpress.org/branches/5.2@49869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 03:20:06 +00:00

1 line
34 KiB
JavaScript

this.wp=this.wp||{},this.wp.coreData=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=364)}({132: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}},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}))},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(34);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")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},23:function(e,t,r){e.exports=r(54)},25:function(e,t){!function(){e.exports=this.wp.url}()},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(37);var o=r(38);function i(e,t){return Object(n.a)(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||Object(o.a)()}},30:function(e,t,r){"use strict";var n,o;function i(e){return[e]}function a(){var e={clear:function(){e.head=null}};return e}function u(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={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var r,c;function s(){r=o?new WeakMap:a()}function f(){var r,n,o,i,a,s=arguments.length;for(i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];for(a=t.apply(null,i),(r=c(a)).isUniqueByDependants||(r.lastDependants&&!u(a,r.lastDependants,0)&&r.clear(),r.lastDependants=a),n=r.head;n;){if(u(n.args,i,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,i)},i[0]=null,n.args=i,r.head&&(r.head.prev=n,n.next=r.head),r.head=n,n.val}return t||(t=i),c=o?function(e){var t,o,i,u,c,s=r,f=!0;for(t=0;t<e.length;t++){if(o=e[t],!(c=o)||"object"!=typeof c){f=!1;break}s.has(o)?s=s.get(o):(i=new WeakMap,s.set(o,i),s=i)}return s.has(n)||((u=a()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=t,f.clear=s,s(),f}},33:function(e,t){!function(){e.exports=this.wp.apiFetch}()},34: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}))},364:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return U})),r.d(n,"addEntities",(function(){return M})),r.d(n,"receiveEntityRecords",(function(){return C})),r.d(n,"receiveThemeSupports",(function(){return D})),r.d(n,"receiveEmbedPreview",(function(){return q})),r.d(n,"saveEntityRecord",(function(){return V})),r.d(n,"receiveUploadPermissions",(function(){return F})),r.d(n,"receiveUserPermission",(function(){return B}));var o={};r.r(o),r.d(o,"isRequestingEmbedPreview",(function(){return ue})),r.d(o,"getAuthors",(function(){return ce})),r.d(o,"getUserQueryResults",(function(){return se})),r.d(o,"getEntitiesByKind",(function(){return fe})),r.d(o,"getEntity",(function(){return le})),r.d(o,"getEntityRecord",(function(){return de})),r.d(o,"getEntityRecords",(function(){return pe})),r.d(o,"getThemeSupports",(function(){return he})),r.d(o,"getEmbedPreview",(function(){return ve})),r.d(o,"isPreviewEmbedFallback",(function(){return ye})),r.d(o,"hasUploadPermissions",(function(){return be})),r.d(o,"canUser",(function(){return ge}));var i={};r.r(i),r.d(i,"getAuthors",(function(){return _e})),r.d(i,"getEntityRecord",(function(){return Pe})),r.d(i,"getEntityRecords",(function(){return Re})),r.d(i,"getThemeSupports",(function(){return Ie})),r.d(i,"getEmbedPreview",(function(){return Se})),r.d(i,"hasUploadPermissions",(function(){return Te})),r.d(i,"canUser",(function(){return Ae}));var a=r(7),u=r(5),c=r(28),s=r(17),f=r(15),l=r(2),d=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,o=n[e];if(void 0===o)return r;var i=t(r[o],n);return i===r[o]?r:Object(a.a)({},r,Object(f.a)({},o,i))}}},h=function(e){return function(t){return function(r,n){return t(r,e(n))}}};var v=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(l.isObjectLike)(r)&&t.set(r,n)),n}};function y(e){return{type:"RECEIVE_ITEMS",items:Object(l.castArray)(e)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({},y(e),{query:t})}var g=r(30),m=r(76),w=r.n(m),E=r(25);var O=v((function(e){for(var t={stableKey:"",page:1,perPage:10},r=Object.keys(e).sort(),n=0;n<r.length;n++){var o=r[n],i=e[o];switch(o){case"page":t[o]=Number(i);break;case"per_page":t.perPage=Number(i);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(E.addQueryArgs)("",Object(f.a)({},o,i)).slice(1)}}return t})),j=new WeakMap;function x(e,t){var r=O(t),n=r.stableKey,o=r.page,i=r.perPage;if(!e.queries[n])return null;var a=e.queries[n];if(!a)return null;for(var u=-1===i?0:(o-1)*i,c=-1===i?a.length:Math.min(u+i,a.length),s=[],f=u;f<c;f++){var l=a[f];s.push(e.items[l])}return s}var k=Object(g.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=j.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new w.a,j.set(e,r);var o=x(e,t);return r.set(t,o),o})),_=r(71),P=r(23),R=r.n(P),I=r(33),S=r.n(I);function T(e){return{type:"API_FETCH",request:e}}function A(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 L={API_FETCH:function(e){var t=e.request;return S()(t)},SELECT:Object(u.createRegistryControl)((function(e){return function(t){var r,n=t.selectorName,o=t.args;return(r=e.select("core"))[n].apply(r,Object(s.a)(o))}}))},N=R.a.mark(V);function U(e,t){return{type:"RECEIVE_USER_QUERY",users:Object(l.castArray)(t),queryID:e}}function M(e){return{type:"ADD_ENTITIES",entities:e}}function C(e,t,r,n){var o,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o=n?b(r,n):y(r),Object(a.a)({},o,{kind:e,name:t,invalidateCache:i})}function D(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function q(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function V(e,t,r){var n,o,i,a,u;return R.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,Z(e);case 2:if(n=c.sent,o=Object(l.find)(n,{kind:e,name:t})){c.next=6;break}return c.abrupt("return");case 6:return i=o.key||Y,a=r[i],c.next=10,T({path:"".concat(o.baseURL).concat(a?"/"+a:""),method:a?"PUT":"POST",data:r});case 10:return u=c.sent,c.next=13,C(e,t,u,void 0,!0);case 13:return c.abrupt("return",u);case 14:case"end":return c.stop()}}),N,this)}function F(e){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:e}}function B(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}var G=R.a.mark(z),K=R.a.mark(X),W=R.a.mark(Z),Y="id",Q=[{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"}],H=[{name:"postType",loadEntities:z},{name:"taxonomy",loadEntities:X}];function z(){var e;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T({path:"/wp/v2/types?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(l.map)(e,(function(e,t){return{kind:"postType",baseURL:"/wp/v2/"+e.rest_base,name:t}})));case 4:case"end":return t.stop()}}),G,this)}function X(){var e;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T({path:"/wp/v2/taxonomies?context=edit"});case 2:return e=t.sent,t.abrupt("return",Object(l.map)(e,(function(e,t){return{kind:"taxonomy",baseURL:"/wp/v2/"+e.rest_base,name:t}})));case 4:case"end":return t.stop()}}),K,this)}var J=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],o=Object(l.find)(Q,{kind:e,name:t}),i="root"===e?"":Object(l.upperFirst)(Object(l.camelCase)(e)),a=Object(l.upperFirst)(Object(l.camelCase)(t))+(n?"s":""),u=n&&o.plural?Object(l.upperFirst)(Object(l.camelCase)(o.plural)):a;return"".concat(r).concat(i).concat(u)};function Z(e){var t,r;return R.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,A("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(l.find)(H,{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,M(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),W,this)}function $(e,t,r,n){for(var o=(r-1)*n,i=Math.max(e.length,o+t.length),a=new Array(i),u=0;u<i;u++){var c=u>=o&&u<o+t.length;a[u]=c?t[u-o]:e[u]}return a}var ee=Object(l.flowRight)([d((function(e){return"query"in e})),h((function(e){return e.query?Object(a.a)({},e,O(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,o=t.perPage,i=t.key,a=void 0===i?Y:i;return"RECEIVE_ITEMS"!==r?e:$(e||[],Object(l.map)(t.items,a),n,o)})),te=Object(_.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(a.a)({},e,Object(l.keyBy)(t.items,t.key||Y))}return e},queries:ee});function re(e){return Object(l.flowRight)([d((function(t){return t.name&&t.kind&&t.name===e.name&&t.kind===e.kind})),h((function(t){return Object(a.a)({},t,{key:e.key||Y})}))])(te)}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(e),Object(s.a)(t.entities))}return e}var oe=Object(u.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(a.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(a.a)({},e.byId,Object(l.keyBy)(t.users,"id")),queries:Object(a.a)({},e.queries,Object(f.a)({},t.queryID,Object(l.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(a.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=ne(e.config,t),n=e.reducer;if(!n||r!==e.config){var o=Object(l.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(o).reduce((function(e,t){var r=Object(c.a)(t,2),n=r[0],o=r[1],i=Object(u.combineReducers)(o.reduce((function(e,t){return Object(a.a)({},e,Object(f.a)({},t.name,re(t)))}),{}));return e[n]=i,e}),{}))}var i=n(e.data,t);return i===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:i,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(a.a)({},e,Object(f.a)({},r,n))}return e},userPermissions: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_USER_PERMISSION":return Object(a.a)({},e,Object(f.a)({},t.key,t.isAllowed))}return e}}),ie=r(49),ae=r.n(ie),ue=Object(u.createRegistrySelector)((function(e){return function(t,r){return e("core/data").isResolving("core","getEmbedPreview",[r])}}));function ce(e){return se(e,"authors")}var se=Object(g.a)((function(e,t){var r=e.users.queries[t];return Object(l.map)(r,(function(t){return e.users.byId[t]}))}),(function(e,t){return[e.users.queries[t],e.users.byId]}));function fe(e,t){return Object(l.filter)(e.entities.config,{kind:t})}function le(e,t,r){return Object(l.find)(e.entities.config,{kind:t,name:r})}function de(e,t,r,n){return Object(l.get)(e.entities.data,[t,r,"items",n])}function pe(e,t,r,n){var o=Object(l.get)(e.entities.data,[t,r]);return o?k(o,n):[]}function he(e){return e.themeSupports}function ve(e,t){return e.embedPreviews[t]}function ye(e,t){var r=e.embedPreviews[t],n='<a href="'+t+'">'+t+"</a>";return!!r&&r.html===n}function be(e){return ae()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(l.defaultTo)(ge(e,"create","media"),!0)}function ge(e,t,r,n){var o=Object(l.compact)([t,r,n]).join("/");return Object(l.get)(e,["userPermissions",o])}var me=R.a.mark(_e),we=R.a.mark(Pe),Ee=R.a.mark(Re),Oe=R.a.mark(Ie),je=R.a.mark(Se),xe=R.a.mark(Te),ke=R.a.mark(Ae);function _e(){var e;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return e=t.sent,t.next=5,U("authors",e);case 5:case"end":return t.stop()}}),me,this)}function Pe(e,t,r){var n,o,i;return R.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Z(e);case 2:if(n=a.sent,o=Object(l.find)(n,{kind:e,name:t})){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,T({path:"".concat(o.baseURL,"/").concat(r,"?context=edit")});case 8:return i=a.sent,a.next=11,C(e,t,i);case 11:case"end":return a.stop()}}),we,this)}function Re(e,t){var r,n,o,i,u,c=arguments;return R.a.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,Z(e);case 3:if(n=s.sent,o=Object(l.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return i=Object(E.addQueryArgs)(o.baseURL,Object(a.a)({},r,{context:"edit"})),s.next=10,T({path:i});case 10:return u=s.sent,s.next=13,C(e,t,Object.values(u),r);case 13:case"end":return s.stop()}}),Ee,this)}function Ie(){var e;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,D(e[0].theme_supports);case 5:case"end":return t.stop()}}),Oe,this)}function Se(e){var t;return R.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,T({path:Object(E.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,q(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,q(e,!1);case 12:case"end":return r.stop()}}),je,this,[[0,8]])}function Te(){return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ae()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Ae("create","media"),"t0",2);case 2:case"end":return e.stop()}}),xe,this)}function Ae(e,t,r){var n,o,i,a,u,c;return R.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){s.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return o=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),s.prev=5,s.next=8,T({path:o,method:r?"GET":"OPTIONS",parse:!1});case 8:i=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return a=Object(l.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(l.get)(i,["headers","Allow"],""),u=Object(l.compact)([e,t,r]).join("/"),c=Object(l.includes)(a,n),s.next=19,B(u,c);case 19:case"end":return s.stop()}}),ke,this,[[5,11]])}Re.shouldInvalidate=function(e,t,r){return"RECEIVE_ITEMS"===e.type&&e.invalidateCache&&t===e.kind&&r===e.name};var Le=Q.reduce((function(e,t){var r=t.kind,n=t.name;return e[J(r,n)]=function(e,t){return de(e,r,n,t)},e[J(r,n,"get",!0)]=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return pe.apply(o,[e,r,n].concat(i))},e}),{}),Ne=Q.reduce((function(e,t){var r=t.kind,n=t.name;e[J(r,n)]=function(e){return Pe(r,n,e)};var o=J(r,n,"get",!0);return e[o]=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Re.apply(i,[r,n].concat(t))},e[o].shouldInvalidate=function(e){for(var t,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(t=Re).shouldInvalidate.apply(t,[e,r,n].concat(i))},e}),{}),Ue=Q.reduce((function(e,t){var r=t.kind,n=t.name;return e[J(r,n,"save")]=function(e){return V(r,n,e)},e}),{});Object(u.registerStore)("core",{reducer:oe,controls:L,actions:Object(a.a)({},n,Ue),selectors:Object(a.a)({},o,Le),resolvers:Object(a.a)({},i,Ne)})},37:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},38: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}))},49:function(e,t){!function(){e.exports=this.wp.deprecated}()},5:function(e,t){!function(){e.exports=this.wp.data}()},54:function(e,t,r){var n=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(55),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},55:function(e,t){!function(t){"use strict";var r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"==typeof e,s=t.regeneratorRuntime;if(s)c&&(e.exports=s);else{(s=t.regeneratorRuntime=c?e.exports:{}).wrap=v;var f={},l={};l[i]=function(){return this};var d=Object.getPrototypeOf,p=d&&d(d(_([])));p&&p!==r&&n.call(p,i)&&(l=p);var h=m.prototype=b.prototype=Object.create(l);g.prototype=h.constructor=m,m.constructor=g,m[u]=g.displayName="GeneratorFunction",s.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(h),e},s.awrap=function(e){return{__await:e}},w(E.prototype),E.prototype[a]=function(){return this},s.AsyncIterator=E,s.async=function(e,t,r,n){var o=new E(v(e,t,r,n));return s.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(h),h[u]="Generator",h[i]=function(){return this},h.toString=function(){return"[object Generator]"},s.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},s.values=_,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}}}function v(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=y(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function y(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function b(){}function g(){}function m(){}function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function E(e){var t;this._invoke=function(r,o){function i(){return new Promise((function(t,i){!function t(r,o,i,a){var u=y(e[r],e,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&n.call(s,"__await")?Promise.resolve(s.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(s).then((function(e){c.value=e,i(c)}),(function(e){return t("throw",e,i,a)}))}a(u.arg)}(r,o,t,i)}))}return t=t?t.then(i,i):i()}}function O(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=y(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},59: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(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}},71:function(e,t,r){"use strict";r.d(t,"c",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return p}));var n=r(77),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 a(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 u(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(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,f=[],l=f,d=!1;function p(){l===f&&(l=f.slice())}function h(){if(d)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 v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)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 p(),l.push(e),function(){if(t){if(d)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,p();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(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,s=c(s,e)}finally{d=!1}for(var t=f=l,r=0;r<t.length;r++){(0,t[r])()}return e}function b(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,y({type:i.REPLACE})}function g(){var e,t=v;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(h())}return r(),{unsubscribe:t(r)}}})[n.a]=function(){return this},e}return y({type:i.INIT}),(o={dispatch:y,subscribe:v,getState:h,replaceReducer:b})[n.a]=g,o}function c(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 a,u=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){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},i=0;i<u.length;i++){var s=u[i],f=r[s],l=e[s],d=f(l,t);if(void 0===d){var p=c(s,t);throw new Error(p)}o[s]=d,n=n||d!==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(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}function d(){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 p(){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 l({},r,{dispatch:n=d.apply(void 0,i)(r.dispatch)})}}}},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(),a=Array.isArray(t)?n:o,u=0;u<i.length;u++){var c=i[u];if(void 0===(a=a.get(c)))return;var s=t[c];if(void 0===(a=a.get(s)))return}var f=a.get("_ekm_value");return f?(r.delete(f[0]),f[0]=t,a.set("_ekm_value",f),r.set(t,f),f):void 0}var a=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,a;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],a=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,u=0;u<o.length;u++){var c=o[u];a.has(c)||a.set(c,new e),a=a.get(c);var s=t[c];a.has(s)||a.set(s,new e),a=a.get(s)}var f=a.get("_ekm_value");return f&&this._map.delete(f[0]),a.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),a&&o(t,a),e}();e.exports=a},77:function(e,t,r){"use strict";(function(e,n){var o,i=r(99);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(i.a)(o);t.a=a}).call(this,r(59),r(132)(e))},99: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}))}});