1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=293)}({119: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,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},19:function(e,t,n){"use strict";var r=n(33);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return i})},2:function(e,t){!function(){e.exports=this.lodash}()},24:function(e,t,n){"use strict";var r=n(36);var i=n(37);function u(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,i=!1,u=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,u=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw u}}return n}(e,t)||Object(i.a)()}n.d(t,"a",function(){return u})},293:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"receiveUserQuery",function(){return _}),n.d(r,"addEntities",function(){return I}),n.d(r,"receiveEntityRecords",function(){return S}),n.d(r,"receiveThemeSupports",function(){return P}),n.d(r,"receiveEmbedPreview",function(){return T});var i={};n.r(i),n.d(i,"isRequestingEmbedPreview",function(){return z}),n.d(i,"getAuthors",function(){return G}),n.d(i,"getUserQueryResults",function(){return X}),n.d(i,"getEntitiesByKind",function(){return J}),n.d(i,"getEntity",function(){return Z}),n.d(i,"getEntityRecord",function(){return $}),n.d(i,"getEntityRecords",function(){return ee}),n.d(i,"getThemeSupports",function(){return te}),n.d(i,"getEmbedPreview",function(){return ne}),n.d(i,"isPreviewEmbedFallback",function(){return re});var u={};n.r(u),n.d(u,"getAuthors",function(){return se}),n.d(u,"getEntityRecord",function(){return fe}),n.d(u,"getEntityRecords",function(){return de}),n.d(u,"getThemeSupports",function(){return le}),n.d(u,"getEmbedPreview",function(){return pe});var o=n(8),a=n(5),c=n(24),s=n(19),f=n(15),d=n(2),l=function(e){return function(t){return function(n,r){return void 0===n||e(r)?t(n,r):n}}},p=function(e){return function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=r[e];if(void 0===i)return n;var u=t(n[i],r);return u===n[i]?n:Object(o.a)({},n,Object(f.a)({},i,u))}}},v=function(e){return function(t){return function(n,r){return t(n,e(r))}}};var h=function(e){var t=new WeakMap;return function(n){var r;return t.has(n)?r=t.get(n):(r=e(n),Object(d.isObjectLike)(n)&&t.set(n,r)),r}};function b(e){return{type:"RECEIVE_ITEMS",items:Object(d.castArray)(e)}}var y=n(34),g=n(75),m=n.n(g),w=n(30);var O=h(function(e){for(var t={stableKey:"",page:1,perPage:10},n=Object.keys(e).sort(),r=0;r<n.length;r++){var i=n[r],u=e[i];switch(i){case"page":t[i]=Number(u);break;case"per_page":t.perPage=Number(u);break;default:t.stableKey+=(t.stableKey?"&":"")+Object(w.addQueryArgs)("",Object(f.a)({},i,u)).slice(1)}}return t}),E=new WeakMap;var j=Object(y.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E.get(e);if(n){var r=n.get(t);if(void 0!==r)return r}else n=new m.a,E.set(e,n);var i=function(e,t){var n=O(t),r=n.stableKey,i=n.page,u=n.perPage;if(!e.queries[r])return null;var o=e.queries[r];if(!o)return null;for(var a=-1===u?0:(i-1)*u,c=-1===u?o.length:Math.min(a+u,o.length),s=[],f=a;f<c;f++){var d=o[f];s.push(e.items[d])}return s}(e,t);return n.set(t,i),i}),x=n(52);var k=Object(d.flowRight)([l(function(e){return"query"in e}),v(function(e){return e.query?Object(o.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,n=t.type,r=t.page,i=t.perPage,u=t.key,o=void 0===u?"id":u;return"RECEIVE_ITEMS"!==n?e:function(e,t,n,r){for(var i=(n-1)*r,u=Math.max(e.length,i+t.length),o=new Array(u),a=0;a<u;a++){var c=a>=i&&a<i+t.length;o[a]=c?t[a-i]:e[a]}return o}(e||[],Object(d.map)(t.items,o),r,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(o.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 I(e){return{type:"ADD_ENTITIES",entities:e}}function S(e,t,n,r){var i;return i=r?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)({},b(e),{query:t})}(n,r):b(n),Object(o.a)({},i,{kind:e,name:t})}function P(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function T(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}var A=n(31),M=n.n(A);function C(e){return{type:"API_FETCH",request:e}}function N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{type:"SELECT",selectorName:e,args:n}}var U={API_FETCH:function(e){var t=e.request;return M()(t)},SELECT:function(e){var t,n=e.selectorName,r=e.args;return(t=Object(a.select)("core"))[n].apply(t,Object(s.a)(r))}},q=regeneratorRuntime.mark(K),D=regeneratorRuntime.mark(W),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:K},{name:"taxonomy",loadEntities:W}];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/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()}},q,this)}function W(){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()}},D,this)}var F=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Object(d.find)(V,{kind:e,name:t}),u="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),o=Object(d.upperFirst)(Object(d.camelCase)(t))+(r?"s":""),a=r&&i.plural?Object(d.upperFirst)(Object(d.camelCase)(i.plural)):o;return"".concat(n).concat(u).concat(a)};function Q(e){var t,n;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,N("getEntitiesByKind",e);case 2:if(!(t=r.sent)||0===t.length){r.next=5;break}return r.abrupt("return",t);case 5:if(n=Object(d.find)(B,{name:e})){r.next=8;break}return r.abrupt("return",[]);case 8:return r.next=10,n.loadEntities();case 10:return t=r.sent,r.next=13,I(t);case 13:return r.abrupt("return",t);case 14:case"end":return r.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(o.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(o.a)({},e.byId,Object(d.keyBy)(t.users,"id")),queries:Object(o.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(o.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,n=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),r=e.reducer;if(!r||n!==e.config){var i=Object(d.groupBy)(n,"kind");r=Object(a.combineReducers)(Object.entries(i).reduce(function(e,t){var n=Object(c.a)(t,2),r=n[0],i=n[1],u=Object(a.combineReducers)(i.reduce(function(e,t){return Object(o.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(o.a)({},t,{key:e.key||"id"})})])(R)}(t)))},{}));return e[r]=u,e},{}))}var u=r(e.data,t);return u===e.data&&n===e.config&&r===e.reducer?e:{reducer:r,data:u,config:n}},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 n=t.url,r=t.preview;return Object(o.a)({},e,Object(f.a)({},n,r))}return e}}),Y="core";function z(e,t){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object(a.select)("core/data").isResolving(Y,e,n)}("getEmbedPreview",t)}function G(e){return X(e,"authors")}var X=Object(y.a)(function(e,t){var n=e.users.queries[t];return Object(d.map)(n,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,n){return Object(d.find)(e.entities.config,{kind:t,name:n})}function $(e,t,n,r){return Object(d.get)(e.entities.data,[t,n,"items",r])}function ee(e,t,n,r){var i=Object(d.get)(e.entities.data,[t,n]);return i?j(i,r):[]}function te(e){return e.themeSupports}function ne(e,t){return e.embedPreviews[t]}function re(e,t){var n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}var ie=regeneratorRuntime.mark(se),ue=regeneratorRuntime.mark(fe),oe=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,n){var r,i,u;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Q(e);case 2:if(r=o.sent,i=Object(d.find)(r,{kind:e,name:t})){o.next=6;break}return o.abrupt("return");case 6:return o.next=8,C({path:"".concat(i.baseURL,"/").concat(n,"?context=edit")});case 8:return u=o.sent,o.next=11,S(e,t,u);case 11:case"end":return o.stop()}},ue,this)}function de(e,t){var n,r,i,u,a,c=arguments;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},s.next=3,Q(e);case 3:if(r=s.sent,i=Object(d.find)(r,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return u=Object(w.addQueryArgs)(i.baseURL,Object(o.a)({},n,{context:"edit"})),s.next=10,C({path:u});case 10:return a=s.sent,s.next=13,S(e,t,Object.values(a),n);case 13:case"end":return s.stop()}},oe,this)}function le(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,P(e[0].theme_supports);case 5:case"end":return t.stop()}},ae,this)}function pe(e){var t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,C({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=n.sent,n.next=6,T(e,t);case 6:n.next=12;break;case 8:return n.prev=8,n.t0=n.catch(0),n.next=12,T(e,!1);case 12:case"end":return n.stop()}},ce,this,[[0,8]])}var ve=function(e){return V.reduce(function(t,n){var r=n.kind,i=n.name;return t[F(r,i)]=function(t){return e.getEntityRecord(r,i,t)},t[F(r,i,"get",!0)]=function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return e.getEntityRecords.apply(e,[r,i].concat(n))},t},{})}(u),he=function(e){return V.reduce(function(t,n){var r=n.kind,i=n.name;return t[F(r,i)]=function(t,n){return e.getEntityRecord(t,r,i,n)},t[F(r,i,"get",!0)]=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),o=1;o<n;o++)u[o-1]=arguments[o];return e.getEntityRecords.apply(e,[t,r,i].concat(u))},t},{})}(i),be=Object(a.registerStore)(Y,{reducer:H,actions:r,controls:U,selectors:Object(o.a)({},i,he),resolvers:Object(o.a)({},u,ve)});t.default=be},30:function(e,t){!function(){e.exports=this.wp.url}()},31:function(e,t){!function(){e.exports=this.wp.apiFetch}()},33:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return r})},34:function(e,t,n){"use strict";var r,i;function u(e){return[e]}function o(e){return!!e&&"object"==typeof e}function a(){var e={clear:function(){e.head=null}};return e}function c(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},i="undefined"!=typeof WeakMap,t.a=function(e,t){var n,s;function f(){n=i?new WeakMap:a()}function d(){var n,r,i,u,o,a=arguments.length;for(u=new Array(a),i=0;i<a;i++)u[i]=arguments[i];for(o=t.apply(null,u),(n=s(o)).isUniqueByDependants||(n.lastDependants&&!c(o,n.lastDependants,0)&&n.clear(),n.lastDependants=o),r=n.head;r;){if(c(r.args,u,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,u)},u[0]=null,r.args=u,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=u),s=i?function(e){var t,i,u,c,s=n,f=!0;for(t=0;t<e.length;t++){if(!o(i=e[t])){f=!1;break}s.has(i)?s=s.get(i):(u=new WeakMap,s.set(i,u),s=u)}return s.has(r)||((c=a()).isUniqueByDependants=f,s.set(r,c)),s.get(r)}:function(){return n},d.getDependants=t,d.clear=f,f(),d}},36:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},37:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},5:function(e,t){!function(){e.exports=this.wp.data}()},52:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return d});var r=n(66),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function a(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"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===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,f=[],d=f,l=!1;function p(){d===f&&(d=f.slice())}function v(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(l)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(),d.push(e),function(){if(t){if(l)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 n=d.indexOf(e);d.splice(n,1)}}}function b(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,s=c(s,e)}finally{l=!1}for(var t=f=d,n=0;n<t.length;n++){(0,t[n])()}return e}return b({type:u.INIT}),(i={dispatch:b,subscribe:h,getState:v,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,b({type:u.REPLACE})}})[r.a]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(v())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e},i}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"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),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:u.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===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+u.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.')})}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},u=0;u<a.length;u++){var s=a[u],f=n[s],d=e[s],l=f(d,t);if(void 0===l){var p=c(s,t);throw new Error(p)}i[s]=l,r=r||l!==d}return r?i:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},u=t.map(function(e){return e(i)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){f(e,t,n[t])})}return e}({},n,{dispatch:r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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,u)(n.dispatch)})}}}},53:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},66:function(e,t,n){"use strict";(function(e,r){var i,u=n(84);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(u.a)(i);t.a=o}).call(this,n(53),n(119)(e))},75:function(e,t,n){"use strict";function r(e){return(r="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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){var n=e._map,r=e._arrayTreeMap,i=e._objectTreeMap;if(n.has(t))return n.get(t);for(var u=Object.keys(t).sort(),o=Array.isArray(t)?r:i,a=0;a<u.length;a++){var c=u[a];if(void 0===(o=o.get(c)))return;var s=t[c];if(void 0===(o=o.get(s)))return}var f=o.get("_ekm_value");return f?(n.delete(f[0]),f[0]=t,o.set("_ekm_value",f),n.set(t,f),f):void 0}var o=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 n=[];t.forEach(function(e,t){n.push([t,e])}),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"set",value:function(t,n){if(null===t||"object"!==r(t))return this._map.set(t,n),this;for(var i=Object.keys(t).sort(),u=[t,n],o=Array.isArray(t)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];o.has(c)||o.set(c,new e),o=o.get(c);var s=t[c];o.has(s)||o.set(s,new e),o=o.get(s)}var f=o.get("_ekm_value");return f&&this._map.delete(f[0]),o.set("_ekm_value",u),this._map.set(t,u),this}},{key:"get",value:function(e){if(null===e||"object"!==r(e))return this._map.get(e);var t=u(this,e);return t?t[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==r(e)?this._map.has(e):void 0!==u(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,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach(function(i,u){null!==u&&"object"===r(u)&&(i=i[1]),e.call(n,i,u,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=o},8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(15);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){Object(r.a)(e,t,n[t])})}return e}},84:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})}}); |