1 line
38 KiB
JavaScript
1 line
38 KiB
JavaScript
this.wp=this.wp||{},this.wp.coreData=function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=349)}({10:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))},17:function(t,e,r){"use strict";var n=r(30);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",(function(){return a}))},2:function(t,e){!function(){t.exports=this.lodash}()},20:function(t,e,r){t.exports=r(47)},23:function(t,e,r){"use strict";var n=r(38);var a=r(39);function o(t,e){return Object(n.a)(t)||function(t,e){var r=[],n=!0,a=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}return r}(t,e)||Object(a.a)()}r.d(e,"a",(function(){return o}))},26:function(t,e){!function(){t.exports=this.wp.url}()},30:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},34:function(t,e){!function(){t.exports=this.wp.apiFetch}()},349:function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"receiveUserQuery",(function(){return q})),r.d(n,"receiveCurrentUser",(function(){return F})),r.d(n,"addEntities",(function(){return Y})),r.d(n,"receiveEntityRecords",(function(){return B})),r.d(n,"receiveThemeSupports",(function(){return G})),r.d(n,"receiveEmbedPreview",(function(){return K})),r.d(n,"editEntityRecord",(function(){return Q})),r.d(n,"undo",(function(){return W})),r.d(n,"redo",(function(){return H})),r.d(n,"__unstableCreateUndoLevel",(function(){return z})),r.d(n,"saveEntityRecord",(function(){return X})),r.d(n,"saveEditedEntityRecord",(function(){return J})),r.d(n,"receiveUploadPermissions",(function(){return Z})),r.d(n,"receiveUserPermission",(function(){return $})),r.d(n,"receiveAutosaves",(function(){return tt}));var a={};r.r(a),r.d(a,"isRequestingEmbedPreview",(function(){return Ot})),r.d(a,"getAuthors",(function(){return wt})),r.d(a,"getCurrentUser",(function(){return jt})),r.d(a,"getUserQueryResults",(function(){return xt})),r.d(a,"getEntitiesByKind",(function(){return Rt})),r.d(a,"getEntity",(function(){return kt})),r.d(a,"getEntityRecord",(function(){return _t})),r.d(a,"getRawEntityRecord",(function(){return Tt})),r.d(a,"getEntityRecords",(function(){return It})),r.d(a,"getEntityRecordEdits",(function(){return St})),r.d(a,"getEntityRecordNonTransientEdits",(function(){return At})),r.d(a,"hasEditsForEntityRecord",(function(){return Ut})),r.d(a,"getEditedEntityRecord",(function(){return Pt})),r.d(a,"isAutosavingEntityRecord",(function(){return Ct})),r.d(a,"isSavingEntityRecord",(function(){return Lt})),r.d(a,"getLastEntitySaveError",(function(){return Dt})),r.d(a,"getUndoEdit",(function(){return Mt})),r.d(a,"getRedoEdit",(function(){return Vt})),r.d(a,"hasUndo",(function(){return qt})),r.d(a,"hasRedo",(function(){return Ft})),r.d(a,"getThemeSupports",(function(){return Yt})),r.d(a,"getEmbedPreview",(function(){return Bt})),r.d(a,"isPreviewEmbedFallback",(function(){return Gt})),r.d(a,"hasUploadPermissions",(function(){return Kt})),r.d(a,"canUser",(function(){return Qt})),r.d(a,"getAutosaves",(function(){return Wt})),r.d(a,"getAutosave",(function(){return Ht})),r.d(a,"hasFetchedAutosaves",(function(){return zt})),r.d(a,"getReferenceByDistinctEdits",(function(){return Xt}));var o={};r.r(o),r.d(o,"getAuthors",(function(){return ue})),r.d(o,"getCurrentUser",(function(){return ce})),r.d(o,"getEntityRecord",(function(){return se})),r.d(o,"getEntityRecords",(function(){return fe})),r.d(o,"getThemeSupports",(function(){return de})),r.d(o,"getEmbedPreview",(function(){return le})),r.d(o,"hasUploadPermissions",(function(){return pe})),r.d(o,"canUser",(function(){return ve})),r.d(o,"getAutosaves",(function(){return he})),r.d(o,"getAutosave",(function(){return ye}));var i=r(7),u=r(4),c=r(23),s=r(17),f=r(10),d=r(2),l=r(41),p=r.n(l);var v=function(t){return function(e){return function(r,n){return void 0===r||t(n)?e(r,n):r}}},h=function(t){return function(e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=n[t];if(void 0===a)return r;var o=e(r[a],n);return o===r[a]?r:Object(i.a)({},r,Object(f.a)({},a,o))}}},y=function(t){return function(e){return function(r,n){return e(r,t(n))}}};var b=function(t){var e=new WeakMap;return function(r){var n;return e.has(r)?n=e.get(r):(n=t(r),Object(d.isObjectLike)(r)&&e.set(r,n)),n}};function g(t){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(t)}}var E=r(36),m=r(74),O=r.n(m),w=r(26);var j=b((function(t){for(var e={stableKey:"",page:1,perPage:10},r=Object.keys(t).sort(),n=0;n<r.length;n++){var a=r[n],o=t[a];switch(a){case"page":e[a]=Number(o);break;case"per_page":e.perPage=Number(o);break;default:e.stableKey+=(e.stableKey?"&":"")+Object(w.addQueryArgs)("",Object(f.a)({},a,o)).slice(1)}}return e})),x=new WeakMap;function R(t,e){var r=j(e),n=r.stableKey,a=r.page,o=r.perPage;if(!t.queries[n])return null;var i=t.queries[n];if(!i)return null;for(var u=-1===o?0:(a-1)*o,c=-1===o?i.length:Math.min(u+o,i.length),s=[],f=u;f<c;f++){var d=i[f];s.push(t.items[d])}return s}var k=Object(E.a)((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=x.get(t);if(r){var n=r.get(e);if(void 0!==n)return n}else r=new O.a,x.set(t,r);var a=R(t,e);return r.set(e,a),a})),_=r(20),T=r.n(_),I=r(34),S=r.n(I);function A(t){return{type:"API_FETCH",request:t}}function U(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{type:"SELECT",selectorName:t,args:r}}function P(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{type:"RESOLVE_SELECT",selectorName:t,args:r}}var C={API_FETCH:function(t){var e=t.request;return S()(e)},SELECT:Object(u.createRegistryControl)((function(t){return function(e){var r,n=e.selectorName,a=e.args;return(r=t.select("core"))[n].apply(r,Object(s.a)(a))}})),RESOLVE_SELECT:Object(u.createRegistryControl)((function(t){return function(e){var r=e.selectorName,n=e.args;return new Promise((function(e){var a=function(){return t.select("core/data").hasFinishedResolution("core",r,n)},o=function(){return t.select("core")[r].apply(null,n)},i=o();if(a())return e(i);var u=t.subscribe((function(){a()&&(u(),e(o()))}))}))}}))},L=T.a.mark(Q),D=T.a.mark(W),N=T.a.mark(H),M=T.a.mark(X),V=T.a.mark(J);function q(t,e){return{type:"RECEIVE_USER_QUERY",users:Object(d.castArray)(e),queryID:t}}function F(t){return{type:"RECEIVE_CURRENT_USER",currentUser:t}}function Y(t){return{type:"ADD_ENTITIES",entities:t}}function B(t,e,r,n){var a,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return"postType"===t&&(r=Object(d.castArray)(r).map((function(t){return"auto-draft"===t.status?Object(i.a)({},t,{title:""}):t}))),a=n?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)({},g(t),{query:e})}(r,n):g(r),Object(i.a)({},a,{kind:t,name:e,invalidateCache:o})}function G(t){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:t}}function K(t,e){return{type:"RECEIVE_EMBED_PREVIEW",url:t,preview:e}}function Q(t,e,r,n){var a,o,u,c,s,f,l,p,v,h=arguments;return T.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return a=h.length>4&&void 0!==h[4]?h[4]:{},y.next=3,U("getEntity",t,e);case 3:if(o=y.sent){y.next=6;break}throw new Error("The entity being edited (".concat(t,", ").concat(e,") does not have a loaded config."));case 6:return u=o.transientEdits,c=void 0===u?{}:u,s=o.mergedEdits,f=void 0===s?{}:s,y.next=9,U("getRawEntityRecord",t,e,r);case 9:return l=y.sent,y.next=12,U("getEditedEntityRecord",t,e,r);case 12:return p=y.sent,v={kind:t,name:e,recordId:r,edits:Object.keys(n).reduce((function(t,e){var r=l[e],a=p[e],o=f[e]?Object(i.a)({},a,n[e]):n[e];return t[e]=Object(d.isEqual)(r,o)?void 0:o,t}),{}),transientEdits:c},y.abrupt("return",Object(i.a)({type:"EDIT_ENTITY_RECORD"},v,{meta:{undo:!a.undoIgnore&&Object(i.a)({},v,{edits:Object.keys(n).reduce((function(t,e){return t[e]=p[e],t}),{})})}}));case 15:case"end":return y.stop()}}),L)}function W(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getUndoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(i.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isUndo:!0}});case 7:case"end":return e.stop()}}),D)}function H(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U("getRedoEdit");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,Object(i.a)({type:"EDIT_ENTITY_RECORD"},t,{meta:{isRedo:!0}});case 7:case"end":return e.stop()}}),N)}function z(){return{type:"CREATE_UNDO_LEVEL"}}function X(t,e,r){var n,a,o,u,c,s,f,l,p,v,h,y,b,g,E,m,O,w,j,x=arguments;return T.a.wrap((function(R){for(;;)switch(R.prev=R.next){case 0:return n=x.length>3&&void 0!==x[3]?x[3]:{isAutosave:!1},a=n.isAutosave,o=void 0!==a&&a,R.next=3,ft(t);case 3:if(u=R.sent,c=Object(d.find)(u,{kind:t,name:e})){R.next=7;break}return R.abrupt("return");case 7:return s=c.key||at,f=r[s],R.next=11,{type:"SAVE_ENTITY_RECORD_START",kind:t,name:e,recordId:f,isAutosave:o};case 11:return R.prev=11,y="".concat(c.baseURL).concat(f?"/"+f:""),R.next=15,U("getRawEntityRecord",t,e,f);case 15:if(b=R.sent,!o){R.next=40;break}return R.next=19,U("getCurrentUser");case 19:return g=R.sent,E=g?g.id:void 0,R.next=23,U("getAutosave",b.type,b.id,E);case 23:return m=R.sent,O=Object(i.a)({},b,m,r),O=Object.keys(O).reduce((function(t,e){return["title","excerpt","content"].includes(e)&&(t[e]=Object(d.get)(O[e],"raw",O[e])),t}),{status:"auto-draft"===O.status?"draft":O.status}),R.next=28,A({path:"".concat(y,"/autosaves"),method:"POST",data:O});case 28:if(l=R.sent,b.id!==l.id){R.next=36;break}return w=Object(i.a)({},b,O,l),w=Object.keys(w).reduce((function(t,e){return["title","excerpt","content"].includes(e)?t[e]=Object(d.get)(w[e],"raw",w[e]):t[e]="status"===e?"auto-draft"===b.status&&"draft"===w.status?w.status:b.status:Object(d.get)(b[e],"raw",b[e]),t}),{}),R.next=34,B(t,e,w,void 0,!0);case 34:R.next=38;break;case 36:return R.next=38,tt(b.id,l);case 38:R.next=55;break;case 40:return j=r,"postType"===t&&b&&"auto-draft"===b.status&&(j.status||(j=Object(i.a)({},j,{status:"draft"})),j.title&&"Auto Draft"!==j.title||(j=Object(i.a)({},j,{title:""}))),R.next=44,U("getEntityRecord",t,e,f);case 44:return v=R.sent,R.next=47,U("getEntityRecordEdits",t,e,f);case 47:return h=R.sent,R.next=50,B(t,e,Object(i.a)({},v,j),void 0,!0);case 50:return R.next=52,A({path:y,method:f?"PUT":"POST",data:j});case 52:return l=R.sent,R.next=55,B(t,e,l,void 0,!0);case 55:R.next=77;break;case 57:if(R.prev=57,R.t0=R.catch(11),p=R.t0,!v||!h){R.next=77;break}return R.next=63,B(t,e,v,void 0,!0);case 63:return R.t1=Q,R.t2=t,R.t3=e,R.t4=f,R.t5=i.a,R.t6={},R.t7=h,R.next=72,U("getEntityRecordEdits",t,e,f);case 72:return R.t8=R.sent,R.t9=(0,R.t5)(R.t6,R.t7,R.t8),R.t10={undoIgnore:!0},R.next=77,(0,R.t1)(R.t2,R.t3,R.t4,R.t9,R.t10);case 77:return R.next=79,{type:"SAVE_ENTITY_RECORD_FINISH",kind:t,name:e,recordId:f,error:p,isAutosave:o};case 79:return R.abrupt("return",l);case 80:case"end":return R.stop()}}),M,null,[[11,57]])}function J(t,e,r,n){var a,o;return T.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,U("hasEditsForEntityRecord",t,e,r);case 2:if(u.sent){u.next=4;break}return u.abrupt("return");case 4:return u.next=6,U("getEntityRecordNonTransientEdits",t,e,r);case 6:return a=u.sent,o=Object(i.a)({id:r},a),u.delegateYield(X(t,e,o,n),"t0",9);case 9:case"end":return u.stop()}}),V)}function Z(t){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:t}}function $(t,e){return{type:"RECEIVE_USER_PERMISSION",key:t,isAllowed:e}}function tt(t,e){return{type:"RECEIVE_AUTOSAVES",postId:t,autosaves:Object(d.castArray)(e)}}var et=T.a.mark(ut),rt=T.a.mark(ct),nt=T.a.mark(ft),at="id",ot=[{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"},{name:"widgetArea",kind:"root",baseURL:"/__experimental/widget-areas",plural:"widgetAreas"}],it=[{name:"postType",loadEntities:ut},{name:"taxonomy",loadEntities:ct}];function ut(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/types?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"postType",baseURL:"/wp/v2/"+t.rest_base,name:e,transientEdits:{blocks:!0},mergedEdits:{meta:!0}}})));case 4:case"end":return e.stop()}}),et)}function ct(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/taxonomies?context=edit"});case 2:return t=e.sent,e.abrupt("return",Object(d.map)(t,(function(t,e){return{kind:"taxonomy",baseURL:"/wp/v2/"+t.rest_base,name:e}})));case 4:case"end":return e.stop()}}),rt)}var st=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=Object(d.find)(ot,{kind:t,name:e}),o="root"===t?"":Object(d.upperFirst)(Object(d.camelCase)(t)),i=Object(d.upperFirst)(Object(d.camelCase)(e))+(n?"s":""),u=n&&a.plural?Object(d.upperFirst)(Object(d.camelCase)(a.plural)):i;return"".concat(r).concat(o).concat(u)};function ft(t){var e,r;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,U("getEntitiesByKind",t);case 2:if(!(e=n.sent)||0===e.length){n.next=5;break}return n.abrupt("return",e);case 5:if(r=Object(d.find)(it,{name:t})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return e=n.sent,n.next=13,Y(e);case 13:return n.abrupt("return",e);case 14:case"end":return n.stop()}}),nt)}function dt(t,e,r,n){for(var a=(r-1)*n,o=Math.max(t.length,a+e.length),i=new Array(o),u=0;u<o;u++){var c=u>=a&&u<a+e.length;i[u]=c?e[u-a]:t[u]}return i}var lt=Object(d.flowRight)([v((function(t){return"query"in t})),y((function(t){return t.query?Object(i.a)({},t,j(t.query)):t})),h("stableKey")])((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,r=e.type,n=e.page,a=e.perPage,o=e.key,i=void 0===o?at:o;return"RECEIVE_ITEMS"!==r?t:dt(t||[],Object(d.map)(e.items,i),n,a)})),pt=Object(u.combineReducers)({items:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=e.key||at;return Object(i.a)({},t,e.items.reduce((function(e,n){var a=n[r];return e[a]=function(t,e){if(!t)return e;var r=!1,n={};for(var a in e)Object(d.isEqual)(t[a],e[a])?n[a]=t[a]:(r=!0,n[a]=e[a]);return r?n:t}(t[a],n),e}),{}))}return t},queries:lt});function vt(t){return Object(d.flowRight)([v((function(e){return e.name&&e.kind&&e.name===t.name&&e.kind===t.kind})),y((function(e){return Object(i.a)({},e,{key:t.key||at})}))])(Object(u.combineReducers)({queriedData:pt,edits:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_ITEMS":var r=Object(i.a)({},t),n=!0,a=!1,o=void 0;try{for(var u,c=function(){var t=u.value,n=t[e.key],a=r[n];if(!a)return"continue";var o=Object.keys(a).reduce((function(e,r){return Object(d.isEqual)(a[r],Object(d.get)(t[r],"raw",t[r]))||(e[r]=a[r]),e}),{});Object.keys(o).length?r[n]=o:delete r[n]},s=e.items[Symbol.iterator]();!(n=(u=s.next()).done);n=!0)c()}catch(t){a=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r;case"EDIT_ENTITY_RECORD":var l=Object(i.a)({},t[e.recordId],e.edits);return Object.keys(l).forEach((function(t){void 0===l[t]&&delete l[t]})),Object(i.a)({},t,Object(f.a)({},e.recordId,l))}return t},saving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return Object(i.a)({},t,Object(f.a)({},e.recordId,{pending:"SAVE_ENTITY_RECORD_START"===e.type,error:e.error,isAutosave:e.isAutosave}))}return t}}))}function ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ADD_ENTITIES":return[].concat(Object(s.a)(t),Object(s.a)(e.entities))}return t}var yt,bt=[];bt.offset=0;var gt=Object(u.combineReducers)({terms:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TERMS":return Object(i.a)({},t,Object(f.a)({},e.taxonomy,e.terms))}return t},users:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_QUERY":return{byId:Object(i.a)({},t.byId,Object(d.keyBy)(e.users,"id")),queries:Object(i.a)({},t.queries,Object(f.a)({},e.queryID,Object(d.map)(e.users,(function(t){return t.id}))))}}return t},currentUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_CURRENT_USER":return e.currentUser}return t},taxonomies:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_TAXONOMIES":return e.taxonomies}return t},themeSupports:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_THEME_SUPPORTS":return Object(i.a)({},t,e.themeSupports)}return t},entities:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=ht(t.config,e),n=t.reducer;if(!n||r!==t.config){var a=Object(d.groupBy)(r,"kind");n=Object(u.combineReducers)(Object.entries(a).reduce((function(t,e){var r=Object(c.a)(e,2),n=r[0],a=r[1],o=Object(u.combineReducers)(a.reduce((function(t,e){return Object(i.a)({},t,Object(f.a)({},e.name,vt(e)))}),{}));return t[n]=o,t}),{}))}var o=n(t.data,e);return o===t.data&&r===t.config&&n===t.reducer?t:{reducer:n,data:o,config:r}},undo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var r,n="CREATE_UNDO_LEVEL"===e.type,a=!n&&(e.meta.isUndo||e.meta.isRedo);if(n?e=yt:a||(yt=e),a){if((r=Object(s.a)(t)).offset=t.offset+(e.meta.isUndo?-1:1),!t.flattenedUndo)return r;n=!0,e=yt}if(!e.meta.undo)return t;if(!n&&!Object.keys(e.edits).some((function(t){return!e.transientEdits[t]})))return(r=Object(s.a)(t)).flattenedUndo=Object(i.a)({},t.flattenedUndo,e.edits),r.offset=t.offset,r;(r=r||t.slice(0,t.offset||void 0)).offset=r.offset||0,r.pop(),n||r.push({kind:e.meta.undo.kind,name:e.meta.undo.name,recordId:e.meta.undo.recordId,edits:Object(i.a)({},t.flattenedUndo,e.meta.undo.edits)});var o=Object.values(e.meta.undo.edits).filter((function(t){return"function"!=typeof t})),u=Object.values(e.edits).filter((function(t){return"function"!=typeof t}));return p()(o,u)||r.push({kind:e.kind,name:e.name,recordId:e.recordId,edits:n?Object(i.a)({},t.flattenedUndo,e.edits):e.edits}),r}return t},embedPreviews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_EMBED_PREVIEW":var r=e.url,n=e.preview;return Object(i.a)({},t,Object(f.a)({},r,n))}return t},userPermissions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_USER_PERMISSION":return Object(i.a)({},t,Object(f.a)({},e.key,e.isAllowed))}return t},autosaves:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"RECEIVE_AUTOSAVES":var r=e.postId,n=e.autosaves;return Object(i.a)({},t,Object(f.a)({},r,n))}return t}}),Et=r(37),mt=r.n(Et),Ot=Object(u.createRegistrySelector)((function(t){return function(e,r){return t("core/data").isResolving("core","getEmbedPreview",[r])}}));function wt(t){return xt(t,"authors")}function jt(t){return t.currentUser}var xt=Object(E.a)((function(t,e){var r=t.users.queries[e];return Object(d.map)(r,(function(e){return t.users.byId[e]}))}),(function(t,e){return[t.users.queries[e],t.users.byId]}));function Rt(t,e){return Object(d.filter)(t.entities.config,{kind:e})}function kt(t,e,r){return Object(d.find)(t.entities.config,{kind:e,name:r})}function _t(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"queriedData","items",n])}var Tt=Object(E.a)((function(t,e,r,n){var a=_t(t,e,r,n);return a&&Object.keys(a).reduce((function(t,e){return t[e]=Object(d.get)(a[e],"raw",a[e]),t}),{})}),(function(t){return[t.entities.data]}));function It(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"queriedData"]);return a?k(a,n):[]}function St(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"edits",n])}var At=Object(E.a)((function(t,e,r,n){var a=(kt(t,e,r)||{}).transientEdits,o=St(t,e,r,n)||{};return a?Object.keys(o).reduce((function(t,e){return a[e]||(t[e]=o[e]),t}),{}):o}),(function(t){return[t.entities.config,t.entities.data]}));function Ut(t,e,r,n){return Lt(t,e,r,n)||Object.keys(At(t,e,r,n)).length>0}var Pt=Object(E.a)((function(t,e,r,n){return Object(i.a)({},Tt(t,e,r,n),St(t,e,r,n))}),(function(t){return[t.entities.data]}));function Ct(t,e,r,n){var a=Object(d.get)(t.entities.data,[e,r,"saving",n],{}),o=a.pending,i=a.isAutosave;return Boolean(o&&i)}function Lt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"pending"],!1)}function Dt(t,e,r,n){return Object(d.get)(t.entities.data,[e,r,"saving",n,"error"])}function Nt(t){return t.undo.offset}function Mt(t){return t.undo[t.undo.length-2+Nt(t)]}function Vt(t){return t.undo[t.undo.length+Nt(t)]}function qt(t){return Boolean(Mt(t))}function Ft(t){return Boolean(Vt(t))}function Yt(t){return t.themeSupports}function Bt(t,e){return t.embedPreviews[e]}function Gt(t,e){var r=t.embedPreviews[e],n='<a href="'+e+'">'+e+"</a>";return!!r&&r.html===n}function Kt(t){return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(Qt(t,"create","media"),!0)}function Qt(t,e,r,n){var a=Object(d.compact)([e,r,n]).join("/");return Object(d.get)(t,["userPermissions",a])}function Wt(t,e,r){return t.autosaves[r]}function Ht(t,e,r,n){if(void 0!==n){var a=t.autosaves[r];return Object(d.find)(a,{author:n})}}var zt=Object(u.createRegistrySelector)((function(t){return function(e,r,n){return t("core").hasFinishedResolution("getAutosaves",[r,n])}})),Xt=Object(E.a)((function(){return[]}),(function(t){return[t.undo.length,t.undo.offset]})),Jt=T.a.mark(ue),Zt=T.a.mark(ce),$t=T.a.mark(se),te=T.a.mark(fe),ee=T.a.mark(de),re=T.a.mark(le),ne=T.a.mark(pe),ae=T.a.mark(ve),oe=T.a.mark(he),ie=T.a.mark(ye);function ue(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/?who=authors&per_page=-1"});case 2:return t=e.sent,e.next=5,q("authors",t);case 5:case"end":return e.stop()}}),Jt)}function ce(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/users/me"});case 2:return t=e.sent,e.next=5,F(t);case 5:case"end":return e.stop()}}),Zt)}function se(t,e,r){var n,a,o;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,ft(t);case 2:if(n=i.sent,a=Object(d.find)(n,{kind:t,name:e})){i.next=6;break}return i.abrupt("return");case 6:return i.next=8,A({path:"".concat(a.baseURL,"/").concat(r,"?context=edit")});case 8:return o=i.sent,i.next=11,B(t,e,o);case 11:case"end":return i.stop()}}),$t)}function fe(t,e){var r,n,a,o,u,c=arguments;return T.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,ft(t);case 3:if(n=s.sent,a=Object(d.find)(n,{kind:t,name:e})){s.next=7;break}return s.abrupt("return");case 7:return o=Object(w.addQueryArgs)(a.baseURL,Object(i.a)({},r,{context:"edit"})),s.next=10,A({path:o});case 10:return u=s.sent,s.next=13,B(t,e,Object.values(u),r);case 13:case"end":return s.stop()}}),te)}function de(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({path:"/wp/v2/themes?status=active"});case 2:return t=e.sent,e.next=5,G(t[0].theme_supports);case 5:case"end":return e.stop()}}),ee)}function le(t){var e;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,A({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:t})});case 3:return e=r.sent,r.next=6,K(t,e);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,K(t,!1);case 12:case"end":return r.stop()}}),re,null,[[0,8]])}function pe(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return mt()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),t.delegateYield(ve("create","media"),"t0",2);case 2:case"end":return t.stop()}}),ne)}function ve(t,e,r){var n,a,o,i,u,c;return T.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[t]){s.next=4;break}throw new Error("'".concat(t,"' is not a valid action."));case 4:return a=r?"/wp/v2/".concat(e,"/").concat(r):"/wp/v2/".concat(e),s.prev=5,s.next=8,A({path:a,method:r?"GET":"OPTIONS",parse:!1});case 8:o=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return i=Object(d.hasIn)(o,["headers","get"])?o.headers.get("allow"):Object(d.get)(o,["headers","Allow"],""),u=Object(d.compact)([t,e,r]).join("/"),c=Object(d.includes)(i,n),s.next=19,$(u,c);case 19:case"end":return s.stop()}}),ae,null,[[5,11]])}function he(t,e){var r,n,a;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,P("getPostType",t);case 2:return r=o.sent,n=r.rest_base,o.next=6,A({path:"/wp/v2/".concat(n,"/").concat(e,"/autosaves?context=edit")});case 6:if(!(a=o.sent)||!a.length){o.next=10;break}return o.next=10,tt(e,a);case 10:case"end":return o.stop()}}),oe)}function ye(t,e){return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,P("getAutosaves",t,e);case 2:case"end":return r.stop()}}),ie)}fe.shouldInvalidate=function(t,e,r){return"RECEIVE_ITEMS"===t.type&&t.invalidateCache&&e===t.kind&&r===t.name};var be=ot.reduce((function(t,e){var r=e.kind,n=e.name;return t[st(r,n)]=function(t,e){return _t(t,r,n,e)},t[st(r,n,"get",!0)]=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];return It.apply(a,[t,r,n].concat(o))},t}),{}),ge=ot.reduce((function(t,e){var r=e.kind,n=e.name;t[st(r,n)]=function(t){return se(r,n,t)};var a=st(r,n,"get",!0);return t[a]=function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return fe.apply(o,[r,n].concat(e))},t[a].shouldInvalidate=function(t){for(var e,a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return(e=fe).shouldInvalidate.apply(e,[t,r,n].concat(o))},t}),{}),Ee=ot.reduce((function(t,e){var r=e.kind,n=e.name;return t[st(r,n,"save")]=function(t){return X(r,n,t)},t}),{});Object(u.registerStore)("core",{reducer:gt,controls:C,actions:Object(i.a)({},n,Ee),selectors:Object(i.a)({},a,be),resolvers:Object(i.a)({},o,ge)})},36:function(t,e,r){"use strict";var n,a;function o(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,e,r){var n;if(t.length!==e.length)return!1;for(n=r;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}n={},a="undefined"!=typeof WeakMap,e.a=function(t,e){var r,c;function s(){r=a?new WeakMap:i()}function f(){var r,n,a,o,i,s=arguments.length;for(o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];for(i=e.apply(null,o),(r=c(i)).isUniqueByDependants||(r.lastDependants&&!u(i,r.lastDependants,0)&&r.clear(),r.lastDependants=i),n=r.head;n;){if(u(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:t.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 e||(e=o),c=a?function(t){var e,a,o,u,c,s=r,f=!0;for(e=0;e<t.length;e++){if(a=t[e],!(c=a)||"object"!=typeof c){f=!1;break}s.has(a)?s=s.get(a):(o=new WeakMap,s.set(a,o),s=o)}return s.has(n)||((u=i()).isUniqueByDependants=f,s.set(n,u)),s.get(n)}:function(){return r},f.getDependants=e,f.clear=s,s(),f}},37:function(t,e){!function(){t.exports=this.wp.deprecated}()},38:function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return n}))},39:function(t,e,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}r.d(e,"a",(function(){return n}))},4:function(t,e){!function(){t.exports=this.wp.data}()},41:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},47:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r,n){var a=e&&e.prototype instanceof h?e:h,o=Object.create(a.prototype),i=new _(n||[]);return o._invoke=function(t,e,r){var n=f;return function(a,o){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw o;return I()}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var u=x(i,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",d="suspendedYield",l="executing",p="completed",v={};function h(){}function y(){}function b(){}var g={};g[o]=function(){return this};var E=Object.getPrototypeOf,m=E&&E(E(T([])));m&&m!==r&&n.call(m,o)&&(g=m);var O=b.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function j(t){var e;this._invoke=function(r,a){function o(){return new Promise((function(e,o){!function e(r,a,o,i){var u=s(t[r],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,o,i)}),(function(t){e("throw",t,o,i)})):Promise.resolve(f).then((function(t){c.value=t,o(c)}),(function(t){return e("throw",t,o,i)}))}i(u.arg)}(r,a,e,o)}))}return e=e?e.then(o,o):o()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var a=s(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function T(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:e,done:!0}}return y.prototype=O.constructor=b,b.constructor=y,b[u]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},w(j.prototype),j.prototype[i]=function(){return this},t.AsyncIterator=j,t.async=function(e,r,n,a){var o=new j(c(e,r,n,a));return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(O),O[u]="Generator",O[o]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return u.type="throw",u.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},7:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(10);function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),a.forEach((function(e){Object(n.a)(t,e,r[e])}))}return t}},74:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){var r=t._map,n=t._arrayTreeMap,a=t._objectTreeMap;if(r.has(e))return r.get(e);for(var o=Object.keys(e).sort(),i=Array.isArray(e)?n:a,u=0;u<o.length;u++){var c=o[u];if(void 0===(i=i.get(c)))return;var s=e[c];if(void 0===(i=i.get(s)))return}var f=i.get("_ekm_value");return f?(r.delete(f[0]),f[0]=e,i.set("_ekm_value",f),r.set(e,f),f):void 0}var i=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.clear(),e instanceof t){var r=[];e.forEach((function(t,e){r.push([e,t])})),e=r}if(null!=e)for(var n=0;n<e.length;n++)this.set(e[n][0],e[n][1])}var e,r,i;return e=t,(r=[{key:"set",value:function(e,r){if(null===e||"object"!==n(e))return this._map.set(e,r),this;for(var a=Object.keys(e).sort(),o=[e,r],i=Array.isArray(e)?this._arrayTreeMap:this._objectTreeMap,u=0;u<a.length;u++){var c=a[u];i.has(c)||i.set(c,new t),i=i.get(c);var s=e[c];i.has(s)||i.set(s,new t),i=i.get(s)}var f=i.get("_ekm_value");return f&&this._map.delete(f[0]),i.set("_ekm_value",o),this._map.set(e,o),this}},{key:"get",value:function(t){if(null===t||"object"!==n(t))return this._map.get(t);var e=o(this,t);return e?e[1]:void 0}},{key:"has",value:function(t){return null===t||"object"!==n(t)?this._map.has(t):void 0!==o(this,t)}},{key:"delete",value:function(t){return!!this.has(t)&&(this.set(t,void 0),!0)}},{key:"forEach",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(a,o){null!==o&&"object"===n(o)&&(a=a[1]),t.call(r,a,o,e)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&a(e.prototype,r),i&&a(e,i),t}();t.exports=i}}); |