redux-query
Advanced tools
Comparing version 3.0.0-alpha.3 to 3.0.0-alpha.4
@@ -14,10 +14,6 @@ "use strict"; | ||
var _lodash2 = _interopRequireDefault(require("lodash.identity")); | ||
var _lodash2 = _interopRequireDefault(require("lodash.pick")); | ||
var _lodash3 = _interopRequireDefault(require("lodash.includes")); | ||
var _lodash3 = _interopRequireDefault(require("lodash.pickby")); | ||
var _lodash4 = _interopRequireDefault(require("lodash.pick")); | ||
var _lodash5 = _interopRequireDefault(require("lodash.pickby")); | ||
var _actions = require("../actions"); | ||
@@ -60,3 +56,3 @@ | ||
const getPendingQueries = queries => { | ||
return (0, _lodash5.default)(queries, query => query.isPending); | ||
return (0, _lodash3.default)(queries, query => query.isPending); | ||
}; | ||
@@ -66,2 +62,4 @@ | ||
const identity = x => x; | ||
const queryMiddleware = (networkInterface, queriesSelector, entitiesSelector, customConfig) => { | ||
@@ -88,3 +86,3 @@ return ({ | ||
retry, | ||
transform = _lodash2.default, | ||
transform = identity, | ||
update, | ||
@@ -130,3 +128,3 @@ options = {}, | ||
networkHandler.execute((err, status, responseBody, responseText, responseHeaders) => { | ||
if ((0, _lodash3.default)(config.retryableStatusCodes, status) && attempts < config.backoff.maxAttempts) { | ||
if (config.retryableStatusCodes.includes(status) && attempts < config.backoff.maxAttempts) { | ||
// TODO take into account Retry-After header if 503 | ||
@@ -206,3 +204,3 @@ setTimeout(attemptRequest, backoff.duration()); | ||
url, | ||
transform = _lodash2.default, | ||
transform = identity, | ||
update, | ||
@@ -261,3 +259,3 @@ rollback, | ||
if (optimisticUpdate) { | ||
rolledBackEntities = (0, _update.rollbackEntities)(rollback, (0, _lodash4.default)(initialEntities, Object.keys(optimisticEntities)), (0, _lodash4.default)(entities, Object.keys(optimisticEntities))); | ||
rolledBackEntities = (0, _update.rollbackEntities)(rollback, (0, _lodash2.default)(initialEntities, Object.keys(optimisticEntities)), (0, _lodash2.default)(entities, Object.keys(optimisticEntities))); | ||
} | ||
@@ -264,0 +262,0 @@ |
@@ -8,4 +8,2 @@ "use strict"; | ||
var _lodash = _interopRequireDefault(require("lodash.omit")); | ||
var actionTypes = _interopRequireWildcard(require("../constants/action-types")); | ||
@@ -15,4 +13,2 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
@@ -37,3 +33,7 @@ | ||
} = action; | ||
return (0, _lodash.default)(state, queryKey); | ||
const newState = _objectSpread({}, state); | ||
delete newState[queryKey]; | ||
return newState; | ||
} | ||
@@ -40,0 +40,0 @@ |
@@ -14,10 +14,6 @@ "use strict"; | ||
var _lodash2 = _interopRequireDefault(require("lodash.identity")); | ||
var _lodash2 = _interopRequireDefault(require("lodash.pick")); | ||
var _lodash3 = _interopRequireDefault(require("lodash.includes")); | ||
var _lodash3 = _interopRequireDefault(require("lodash.pickby")); | ||
var _lodash4 = _interopRequireDefault(require("lodash.pick")); | ||
var _lodash5 = _interopRequireDefault(require("lodash.pickby")); | ||
var _actions = require("../actions"); | ||
@@ -60,3 +56,3 @@ | ||
const getPendingQueries = queries => { | ||
return (0, _lodash5.default)(queries, query => query.isPending); | ||
return (0, _lodash3.default)(queries, query => query.isPending); | ||
}; | ||
@@ -66,2 +62,4 @@ | ||
const identity = x => x; | ||
const queryMiddleware = (networkInterface, queriesSelector, entitiesSelector, customConfig) => { | ||
@@ -88,3 +86,3 @@ return ({ | ||
retry, | ||
transform = _lodash2.default, | ||
transform = identity, | ||
update, | ||
@@ -130,3 +128,3 @@ options = {}, | ||
networkHandler.execute((err, status, responseBody, responseText, responseHeaders) => { | ||
if ((0, _lodash3.default)(config.retryableStatusCodes, status) && attempts < config.backoff.maxAttempts) { | ||
if (config.retryableStatusCodes.includes(status) && attempts < config.backoff.maxAttempts) { | ||
// TODO take into account Retry-After header if 503 | ||
@@ -206,3 +204,3 @@ setTimeout(attemptRequest, backoff.duration()); | ||
url, | ||
transform = _lodash2.default, | ||
transform = identity, | ||
update, | ||
@@ -261,3 +259,3 @@ rollback, | ||
if (optimisticUpdate) { | ||
rolledBackEntities = (0, _update.rollbackEntities)(rollback, (0, _lodash4.default)(initialEntities, Object.keys(optimisticEntities)), (0, _lodash4.default)(entities, Object.keys(optimisticEntities))); | ||
rolledBackEntities = (0, _update.rollbackEntities)(rollback, (0, _lodash2.default)(initialEntities, Object.keys(optimisticEntities)), (0, _lodash2.default)(entities, Object.keys(optimisticEntities))); | ||
} | ||
@@ -264,0 +262,0 @@ |
@@ -8,4 +8,2 @@ "use strict"; | ||
var _lodash = _interopRequireDefault(require("lodash.omit")); | ||
var actionTypes = _interopRequireWildcard(require("../constants/action-types")); | ||
@@ -15,4 +13,2 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
@@ -37,3 +33,7 @@ | ||
} = action; | ||
return (0, _lodash.default)(state, queryKey); | ||
const newState = _objectSpread({}, state); | ||
delete newState[queryKey]; | ||
return newState; | ||
} | ||
@@ -40,0 +40,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReduxQuery=e():t.ReduxQuery=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));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=14)}([function(t,e,r){(function(e){var r="Expected a function",n="__lodash_hash_undefined__",o=1/0,u="[object Function]",i="[object GeneratorFunction]",a="[object Symbol]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/,s=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,y=/^\[object .+?Constructor\]$/,d="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,b=d||h||Function("return this")();var v,_=Array.prototype,g=Function.prototype,j=Object.prototype,m=b["__core-js_shared__"],O=(v=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",w=g.toString,S=j.hasOwnProperty,E=j.toString,x=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=b.Symbol,T=_.splice,P=$(b,"Map"),k=$(Object,"create"),q=A?A.prototype:void 0,C=q?q.toString:void 0;function U(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function K(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function M(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function D(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function F(t,e){for(var r,n=0,o=(e=function(t,e){if(Q(t))return!1;var r=typeof t;if("number"==r||"symbol"==r||"boolean"==r||null==t||J(t))return!0;return f.test(t)||!c.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:Q(r=e)?r:B(r)).length;null!=t&&n<o;)t=t[I(e[n++])];return n&&n==o?t:void 0}function R(t){return!(!L(t)||(e=t,O&&O in e))&&(function(t){var e=L(t)?E.call(t):"";return e==u||e==i}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?x:y).test(function(t){if(null!=t){try{return w.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function H(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function $(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}U.prototype.clear=function(){this.__data__=k?k(null):{}},U.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},U.prototype.get=function(t){var e=this.__data__;if(k){var r=e[t];return r===n?void 0:r}return S.call(e,t)?e[t]:void 0},U.prototype.has=function(t){var e=this.__data__;return k?void 0!==e[t]:S.call(e,t)},U.prototype.set=function(t,e){return this.__data__[t]=k&&void 0===e?n:e,this},K.prototype.clear=function(){this.__data__=[]},K.prototype.delete=function(t){var e=this.__data__,r=D(e,t);return!(r<0||(r==e.length-1?e.pop():T.call(e,r,1),0))},K.prototype.get=function(t){var e=this.__data__,r=D(e,t);return r<0?void 0:e[r][1]},K.prototype.has=function(t){return D(this.__data__,t)>-1},K.prototype.set=function(t,e){var r=this.__data__,n=D(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},M.prototype.clear=function(){this.__data__={hash:new U,map:new(P||K),string:new U}},M.prototype.delete=function(t){return H(this,t).delete(t)},M.prototype.get=function(t){return H(this,t).get(t)},M.prototype.has=function(t){return H(this,t).has(t)},M.prototype.set=function(t,e){return H(this,t).set(t,e),this};var B=N(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(J(t))return C?C.call(t):"";var e=t+"";return"0"==e&&1/t==-o?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(l,function(t,e,n,o){r.push(n?o.replace(p,"$1"):e||t)}),r});function I(t){if("string"==typeof t||J(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}function N(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var i=t.apply(this,r);return n.cache=u.set(o,i),i};return n.cache=new(N.Cache||M),n}N.Cache=M;var Q=Array.isArray;function L(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function J(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&E.call(t)==a}t.exports=function(t,e,r){var n=null==t?void 0:F(t,e);return void 0===n?r:n}}).call(this,r(1))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";t.exports=function(t,e,r,n,o,u,i,a){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,n,o,u,i,a],s=0;(c=new Error(e.replace(/%s/g,function(){return f[s++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(t,e){t.exports=function(t){return t}},function(t,e,r){(function(e){var r=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",i="[object GeneratorFunction]",a="[object Symbol]",c="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,s=c||f||Function("return this")();function l(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var p=Object.prototype,y=p.hasOwnProperty,d=p.toString,h=s.Symbol,b=p.propertyIsEnumerable,v=h?h.isConcatSpreadable:void 0,_=Math.max;function g(t){return m(t)||function(t){return function(t){return O(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?d.call(t):"";return e==u||e==i}(t)}(t)}(t)&&y.call(t,"callee")&&(!b.call(t,"callee")||d.call(t)==o)}(t)||!!(v&&t&&t[v])}function j(t){if("string"==typeof t||function(t){return"symbol"==typeof t||O(t)&&d.call(t)==a}(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}var m=Array.isArray;function O(t){return!!t&&"object"==typeof t}var w,S,E=(w=function(t,e){return null==t?{}:function(t,e){return function(t,e,r){for(var n=-1,o=e.length,u={};++n<o;){var i=e[n],a=t[i];r(a,i)&&(u[i]=a)}return u}(t=Object(t),e,function(e,r){return r in t})}(t,function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(function t(e,r,n,o,u){var i=-1,a=e.length;for(n||(n=g),u||(u=[]);++i<a;){var c=e[i];r>0&&n(c)?r>1?t(c,r-1,n,o,u):l(u,c):o||(u[u.length]=c)}return u}(e,1),j))},S=_(void 0===S?w.length-1:S,0),function(){for(var t=arguments,e=-1,r=_(t.length-S,0),n=Array(r);++e<r;)n[e]=t[S+e];e=-1;for(var o=Array(S+1);++e<S;)o[e]=t[e];return o[S]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(w,this,o)});t.exports=E}).call(this,r(1))},function(t,e,r){var n="undefined"!=typeof JSON?JSON:r(10);t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r=e.space||"";"number"==typeof r&&(r=Array(r+1).join(" "));var i,a="boolean"==typeof e.cycles&&e.cycles,c=e.replacer||function(t,e){return e},f=e.cmp&&(i=e.cmp,function(t){return function(e,r){var n={key:e,value:t[e]},o={key:r,value:t[r]};return i(n,o)}}),s=[];return function t(e,i,l,p){var y=r?"\n"+new Array(p+1).join(r):"",d=r?": ":":";if(l&&l.toJSON&&"function"==typeof l.toJSON&&(l=l.toJSON()),void 0!==(l=c.call(e,i,l))){if("object"!=typeof l||null===l)return n.stringify(l);if(o(l)){for(var h=[],b=0;b<l.length;b++){var v=t(l,b,l[b],p+1)||n.stringify(null);h.push(y+r+v)}return"["+h.join(",")+y+"]"}if(-1!==s.indexOf(l)){if(a)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}s.push(l);var _=u(l).sort(f&&f(l));for(h=[],b=0;b<_.length;b++){var g=t(l,i=_[b],l[i],p+1);if(g){var j=n.stringify(i)+d+g;h.push(y+r+j)}}return s.splice(s.indexOf(l),1),"{"+h.join(",")+y+"}"}}({"":t},"",t,0)};var o=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},u=Object.keys||function(t){var e=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in t)e.call(t,n)&&r.push(n);return r}},function(t,e,r){(function(e){var r=200,n="__lodash_hash_undefined__",o=1/0,u=9007199254740991,i="[object Arguments]",a="[object Function]",c="[object GeneratorFunction]",f="[object Symbol]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,p="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,d=p||y||Function("return this")();function h(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,n){var o=t.length,u=r+(n?1:-1);for(;n?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,g,r);var n=r-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,0)>-1}function b(t,e,r){for(var n=-1,o=t?t.length:0;++n<o;)if(r(e,t[n]))return!0;return!1}function v(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function _(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function g(t){return t!=t}function j(t,e){return t.has(e)}function m(t,e){return function(r){return t(e(r))}}var O,w=Array.prototype,S=Function.prototype,E=Object.prototype,x=d["__core-js_shared__"],A=(O=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",T=S.toString,P=E.hasOwnProperty,k=E.toString,q=RegExp("^"+T.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=d.Symbol,U=m(Object.getPrototypeOf,Object),K=E.propertyIsEnumerable,M=w.splice,D=C?C.isConcatSpreadable:void 0,F=Object.getOwnPropertySymbols,R=Math.max,H=V(d,"Map"),$=V(Object,"create");function B(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function I(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function N(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=-1,r=t?t.length:0;for(this.__data__=new N;++e<r;)this.add(t[e])}function L(t,e){var r=ot(t)||nt(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var u in t)!e&&!P.call(t,u)||o&&("length"==u||et(u,n))||r.push(u);return r}function J(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function G(t){return!(!at(t)||(e=t,A&&A in e))&&(it(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?q:s).test(function(t){if(null!=t){try{return T.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Y(t){if(!at(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e,r,n,o=(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||E,e===n),u=[];for(var i in t)("constructor"!=i||!o&&P.call(t,i))&&u.push(i);return u}function z(t){return function(t,e,r){var n=e(t);return ot(t)?n:_(n,r(t))}(t,ft,Z)}function W(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function V(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return G(r)?r:void 0}B.prototype.clear=function(){this.__data__=$?$(null):{}},B.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},B.prototype.get=function(t){var e=this.__data__;if($){var r=e[t];return r===n?void 0:r}return P.call(e,t)?e[t]:void 0},B.prototype.has=function(t){var e=this.__data__;return $?void 0!==e[t]:P.call(e,t)},B.prototype.set=function(t,e){return this.__data__[t]=$&&void 0===e?n:e,this},I.prototype.clear=function(){this.__data__=[]},I.prototype.delete=function(t){var e=this.__data__,r=J(e,t);return!(r<0||(r==e.length-1?e.pop():M.call(e,r,1),0))},I.prototype.get=function(t){var e=this.__data__,r=J(e,t);return r<0?void 0:e[r][1]},I.prototype.has=function(t){return J(this.__data__,t)>-1},I.prototype.set=function(t,e){var r=this.__data__,n=J(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},N.prototype.clear=function(){this.__data__={hash:new B,map:new(H||I),string:new B}},N.prototype.delete=function(t){return W(this,t).delete(t)},N.prototype.get=function(t){return W(this,t).get(t)},N.prototype.has=function(t){return W(this,t).has(t)},N.prototype.set=function(t,e){return W(this,t).set(t,e),this},Q.prototype.add=Q.prototype.push=function(t){return this.__data__.set(t,n),this},Q.prototype.has=function(t){return this.__data__.has(t)};var X=F?m(F,Object):yt,Z=F?function(t){for(var e=[];t;)_(e,X(t)),t=U(t);return e}:yt;function tt(t){return ot(t)||nt(t)||!!(D&&t&&t[D])}function et(t,e){return!!(e=null==e?u:e)&&("number"==typeof t||l.test(t))&&t>-1&&t%1==0&&t<e}function rt(t){if("string"==typeof t||function(t){return"symbol"==typeof t||ct(t)&&k.call(t)==f}(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}function nt(t){return function(t){return ct(t)&&ut(t)}(t)&&P.call(t,"callee")&&(!K.call(t,"callee")||k.call(t)==i)}var ot=Array.isArray;function ut(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}(t.length)&&!it(t)}function it(t){var e=at(t)?k.call(t):"";return e==a||e==c}function at(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function ft(t){return ut(t)?L(t,!0):Y(t)}var st,lt,pt=(st=function(t,e){return null==t?{}:(e=v(function t(e,r,n,o,u){var i=-1,a=e.length;for(n||(n=tt),u||(u=[]);++i<a;){var c=e[i];r>0&&n(c)?r>1?t(c,r-1,n,o,u):_(u,c):o||(u[u.length]=c)}return u}(e,1),rt),function(t,e){return function(t,e,r){for(var n=-1,o=e.length,u={};++n<o;){var i=e[n],a=t[i];r(a,i)&&(u[i]=a)}return u}(t=Object(t),e,function(e,r){return r in t})}(t,function(t,e,n,o){var u,i=-1,a=h,c=!0,f=t.length,s=[],l=e.length;if(!f)return s;n&&(e=v(e,(u=n,function(t){return u(t)}))),o?(a=b,c=!1):e.length>=r&&(a=j,c=!1,e=new Q(e));t:for(;++i<f;){var p=t[i],y=n?n(p):p;if(p=o||0!==p?p:0,c&&y==y){for(var d=l;d--;)if(e[d]===y)continue t;s.push(p)}else a(e,y,o)||s.push(p)}return s}(z(t),e)))},lt=R(void 0===lt?st.length-1:lt,0),function(){for(var t=arguments,e=-1,r=R(t.length-lt,0),n=Array(r);++e<r;)n[e]=t[lt+e];e=-1;for(var o=Array(lt+1);++e<lt;)o[e]=t[e];return o[lt]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(st,this,o)});function yt(){return[]}t.exports=pt}).call(this,r(1))},function(t,e){function r(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=r,r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-r:t+r}return 0|Math.min(t,this.max)},r.prototype.reset=function(){this.attempts=0}},function(t,e){var r=1/0,n=9007199254740991,o=1.7976931348623157e308,u=NaN,i="[object Arguments]",a="[object Function]",c="[object GeneratorFunction]",f="[object String]",s="[object Symbol]",l=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=/^(?:0|[1-9]\d*)$/,b=parseInt;function v(t){return t!=t}function _(t,e){return function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(e,function(e){return t[e]})}var g,j,m=Object.prototype,O=m.hasOwnProperty,w=m.toString,S=m.propertyIsEnumerable,E=(g=Object.keys,j=Object,function(t){return g(j(t))}),x=Math.max;function A(t,e){var r=k(t)||function(t){return function(t){return U(t)&&q(t)}(t)&&O.call(t,"callee")&&(!S.call(t,"callee")||w.call(t)==i)}(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var u in t)!e&&!O.call(t,u)||o&&("length"==u||P(u,n))||r.push(u);return r}function T(t){if(r=(e=t)&&e.constructor,n="function"==typeof r&&r.prototype||m,e!==n)return E(t);var e,r,n,o=[];for(var u in Object(t))O.call(t,u)&&"constructor"!=u&&o.push(u);return o}function P(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||h.test(t))&&t>-1&&t%1==0&&t<e}var k=Array.isArray;function q(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=C(t)?w.call(t):"";return e==a||e==c}(t)}function C(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function U(t){return!!t&&"object"==typeof t}t.exports=function(t,e,n,i){var a;t=q(t)?t:(a=t)?_(a,function(t){return q(t)?A(t):T(t)}(a)):[],n=n&&!i?function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||U(t)&&w.call(t)==s}(t))return u;if(C(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=C(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var r=y.test(t);return r||d.test(t)?b(t.slice(2),r?2:8):p.test(t)?u:+t}(t))===r||t===-r){var e=t<0?-1:1;return e*o}return t==t?t:0}(t),n=e%1;return e==e?n?e-n:e:0}(n):0;var c=t.length;return n<0&&(n=x(c+n,0)),function(t){return"string"==typeof t||!k(t)&&U(t)&&w.call(t)==f}(t)?n<=c&&t.indexOf(e,n)>-1:!!c&&function(t,e,r){if(e!=e)return function(t,e,r,n){for(var o=t.length,u=r+(n?1:-1);n?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,v,r);for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,n)>-1}},function(t,e,r){(function(t,r){var n=200,o="Expected a function",u="__lodash_hash_undefined__",i=1,a=2,c=1/0,f=9007199254740991,s="[object Arguments]",l="[object Array]",p="[object Boolean]",y="[object Date]",d="[object Error]",h="[object Function]",b="[object GeneratorFunction]",v="[object Map]",_="[object Number]",g="[object Object]",j="[object RegExp]",m="[object Set]",O="[object String]",w="[object Symbol]",S="[object ArrayBuffer]",E="[object DataView]",x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,T=/^\./,P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,q=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,U={};U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U[s]=U[l]=U[S]=U[p]=U[E]=U[y]=U[d]=U[h]=U[v]=U[_]=U[g]=U[j]=U[m]=U[O]=U["[object WeakMap]"]=!1;var K="object"==typeof t&&t&&t.Object===Object&&t,M="object"==typeof self&&self&&self.Object===Object&&self,D=K||M||Function("return this")(),F=e&&!e.nodeType&&e,R=F&&"object"==typeof r&&r&&!r.nodeType&&r,H=R&&R.exports===F&&K.process,$=function(){try{return H&&H.binding("util")}catch(t){}}(),B=$&&$.isTypedArray;function I(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function N(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function Q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function L(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function J(t,e){return function(r){return t(e(r))}}function G(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var Y,z=Array.prototype,W=Function.prototype,V=Object.prototype,X=D["__core-js_shared__"],Z=(Y=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",tt=W.toString,et=V.hasOwnProperty,rt=V.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=D.Symbol,ut=D.Uint8Array,it=J(Object.getPrototypeOf,Object),at=V.propertyIsEnumerable,ct=z.splice,ft=Object.getOwnPropertySymbols,st=J(Object.keys,Object),lt=It(D,"DataView"),pt=It(D,"Map"),yt=It(D,"Promise"),dt=It(D,"Set"),ht=It(D,"WeakMap"),bt=It(Object,"create"),vt=Zt(lt),_t=Zt(pt),gt=Zt(yt),jt=Zt(dt),mt=Zt(ht),Ot=ot?ot.prototype:void 0,wt=Ot?Ot.valueOf:void 0,St=Ot?Ot.toString:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.__data__=new At;++e<r;)this.add(t[e])}function Pt(t){this.__data__=new xt(t)}function kt(t,e){var r=ne(t)||re(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var u in t)!e&&!et.call(t,u)||o&&("length"==u||Jt(u,n))||r.push(u);return r}function qt(t,e){for(var r=t.length;r--;)if(ee(t[r][0],e))return r;return-1}function Ct(t,e){for(var r=0,n=(e=Gt(e,t)?[e]:Rt(e)).length;null!=t&&r<n;)t=t[Xt(e[r++])];return r&&r==n?t:void 0}function Ut(t,e){return null!=t&&e in Object(t)}function Kt(t,e,r,n,o){return t===e||(null==t||null==e||!ae(t)&&!ce(e)?t!=t&&e!=e:function(t,e,r,n,o,u){var c=ne(t),f=ne(e),h=l,b=l;c||(h=(h=Lt(t))==s?g:h);f||(b=(b=Lt(e))==s?g:b);var x=h==g&&!Q(t),A=b==g&&!Q(e),T=h==b;if(T&&!x)return u||(u=new Pt),c||le(t)?Ht(t,e,r,n,o,u):function(t,e,r,n,o,u,c){switch(r){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case S:return!(t.byteLength!=e.byteLength||!n(new ut(t),new ut(e)));case p:case y:case _:return ee(+t,+e);case d:return t.name==e.name&&t.message==e.message;case j:case O:return t==e+"";case v:var f=L;case m:var s=u&a;if(f||(f=G),t.size!=e.size&&!s)return!1;var l=c.get(t);if(l)return l==e;u|=i,c.set(t,e);var h=Ht(f(t),f(e),n,o,u,c);return c.delete(t),h;case w:if(wt)return wt.call(t)==wt.call(e)}return!1}(t,e,h,r,n,o,u);if(!(o&a)){var P=x&&et.call(t,"__wrapped__"),k=A&&et.call(e,"__wrapped__");if(P||k){var q=P?t.value():t,C=k?e.value():e;return u||(u=new Pt),r(q,C,n,o,u)}}if(!T)return!1;return u||(u=new Pt),function(t,e,r,n,o,u){var i=o&a,c=pe(t),f=c.length,s=pe(e).length;if(f!=s&&!i)return!1;for(var l=f;l--;){var p=c[l];if(!(i?p in e:et.call(e,p)))return!1}var y=u.get(t);if(y&&u.get(e))return y==e;var d=!0;u.set(t,e),u.set(e,t);for(var h=i;++l<f;){p=c[l];var b=t[p],v=e[p];if(n)var _=i?n(v,b,p,e,t,u):n(b,v,p,t,e,u);if(!(void 0===_?b===v||r(b,v,n,o,u):_)){d=!1;break}h||(h="constructor"==p)}if(d&&!h){var g=t.constructor,j=e.constructor;g!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(d=!1)}return u.delete(t),u.delete(e),d}(t,e,r,n,o,u)}(t,e,Kt,r,n,o))}function Mt(t){return!(!ae(t)||(e=t,Z&&Z in e))&&(ue(t)||Q(t)?nt:q).test(Zt(t));var e}function Dt(t){return"function"==typeof t?t:null==t?de:"object"==typeof t?ne(t)?function(t,e){if(Gt(t)&&zt(e))return Wt(Xt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Ct(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=Gt(e,t)?[e]:Rt(e);var n,o=-1,u=e.length;for(;++o<u;){var i=Xt(e[o]);if(!(n=null!=t&&r(t,i)))break;t=t[i]}if(n)return n;return!!(u=t?t.length:0)&&ie(u)&&Jt(i,u)&&(ne(t)||re(t))}(t,e,Ut)}(r,t):Kt(e,n,void 0,i|a)}}(t[0],t[1]):function(t){var e=function(t){var e=pe(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,zt(o)]}return e}(t);if(1==e.length&&e[0][2])return Wt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,u=o,c=!n;if(null==t)return!u;for(t=Object(t);o--;){var f=r[o];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++o<u;){var s=(f=r[o])[0],l=t[s],p=f[1];if(c&&f[2]){if(void 0===l&&!(s in t))return!1}else{var y=new Pt;if(n)var d=n(l,p,s,t,e,y);if(!(void 0===d?Kt(p,l,n,i|a,y):d))return!1}}return!0}(r,t,e)}}(t):Gt(e=t)?(r=Xt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return Ct(e,t)}}(e);var e,r}function Ft(t){if(!ae(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Yt(t),r=[];for(var n in t)("constructor"!=n||!e&&et.call(t,n))&&r.push(n);return r}function Rt(t){return ne(t)?t:Vt(t)}function Ht(t,e,r,n,o,u){var c=o&a,f=t.length,s=e.length;if(f!=s&&!(c&&s>f))return!1;var l=u.get(t);if(l&&u.get(e))return l==e;var p=-1,y=!0,d=o&i?new Tt:void 0;for(u.set(t,e),u.set(e,t);++p<f;){var h=t[p],b=e[p];if(n)var v=c?n(b,h,p,e,t,u):n(h,b,p,t,e,u);if(void 0!==v){if(v)continue;y=!1;break}if(d){if(!N(e,function(t,e){if(!d.has(e)&&(h===t||r(h,t,n,o,u)))return d.add(e)})){y=!1;break}}else if(h!==b&&!r(h,b,n,o,u)){y=!1;break}}return u.delete(t),u.delete(e),y}function $t(t){return function(t,e,r){var n=e(t);return ne(t)?n:I(n,r(t))}(t,ye,Qt)}function Bt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function It(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Mt(r)?r:void 0}Et.prototype.clear=function(){this.__data__=bt?bt(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return r===u?void 0:r}return et.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:et.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?u:e,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var e=this.__data__,r=qt(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},xt.prototype.get=function(t){var e=this.__data__,r=qt(e,t);return r<0?void 0:e[r][1]},xt.prototype.has=function(t){return qt(this.__data__,t)>-1},xt.prototype.set=function(t,e){var r=this.__data__,n=qt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},At.prototype.clear=function(){this.__data__={hash:new Et,map:new(pt||xt),string:new Et}},At.prototype.delete=function(t){return Bt(this,t).delete(t)},At.prototype.get=function(t){return Bt(this,t).get(t)},At.prototype.has=function(t){return Bt(this,t).has(t)},At.prototype.set=function(t,e){return Bt(this,t).set(t,e),this},Tt.prototype.add=Tt.prototype.push=function(t){return this.__data__.set(t,u),this},Tt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.clear=function(){this.__data__=new xt},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof xt){var o=r.__data__;if(!pt||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new At(o)}return r.set(t,e),this};var Nt=ft?J(ft,Object):he,Qt=ft?function(t){for(var e=[];t;)I(e,Nt(t)),t=it(t);return e}:he,Lt=function(t){return rt.call(t)};function Jt(t,e){return!!(e=null==e?f:e)&&("number"==typeof t||C.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e){if(ne(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!fe(t))||(A.test(t)||!x.test(t)||null!=e&&t in Object(e))}function Yt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||V)}function zt(t){return t==t&&!ae(t)}function Wt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(lt&&Lt(new lt(new ArrayBuffer(1)))!=E||pt&&Lt(new pt)!=v||yt&&"[object Promise]"!=Lt(yt.resolve())||dt&&Lt(new dt)!=m||ht&&"[object WeakMap]"!=Lt(new ht))&&(Lt=function(t){var e=rt.call(t),r=e==g?t.constructor:void 0,n=r?Zt(r):void 0;if(n)switch(n){case vt:return E;case _t:return v;case gt:return"[object Promise]";case jt:return m;case mt:return"[object WeakMap]"}return e});var Vt=te(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(fe(t))return St?St.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var r=[];return T.test(t)&&r.push(""),t.replace(P,function(t,e,n,o){r.push(n?o.replace(k,"$1"):e||t)}),r});function Xt(t){if("string"==typeof t||fe(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function Zt(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function te(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],u=r.cache;if(u.has(o))return u.get(o);var i=t.apply(this,n);return r.cache=u.set(o,i),i};return r.cache=new(te.Cache||At),r}function ee(t,e){return t===e||t!=t&&e!=e}function re(t){return function(t){return ce(t)&&oe(t)}(t)&&et.call(t,"callee")&&(!at.call(t,"callee")||rt.call(t)==s)}te.Cache=At;var ne=Array.isArray;function oe(t){return null!=t&&ie(t.length)&&!ue(t)}function ue(t){var e=ae(t)?rt.call(t):"";return e==h||e==b}function ie(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function ae(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ce(t){return!!t&&"object"==typeof t}function fe(t){return"symbol"==typeof t||ce(t)&&rt.call(t)==w}var se,le=B?(se=B,function(t){return se(t)}):function(t){return ce(t)&&ie(t.length)&&!!U[rt.call(t)]};function pe(t){return oe(t)?kt(t):function(t){if(!Yt(t))return st(t);var e=[];for(var r in Object(t))et.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}function ye(t){return oe(t)?kt(t,!0):Ft(t)}function de(t){return t}function he(){return[]}r.exports=function(t,e){return null==t?{}:function(t,e,r){for(var n=-1,o=e.length,u={};++n<o;){var i=e[n],a=t[i];r(a,i)&&(u[i]=a)}return u}(t,$t(t),Dt(e))}}).call(this,r(1),r(13)(t))},function(t,e,r){e.parse=r(11),e.stringify=r(12)},function(t,e){var r,n,o,u,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=function(t){throw{name:"SyntaxError",message:t,at:r,text:o}},c=function(t){return t&&t!==n&&a("Expected '"+t+"' instead of '"+n+"'"),n=o.charAt(r),r+=1,n},f=function(){var t,e="";for("-"===n&&(e="-",c("-"));n>="0"&&n<="9";)e+=n,c();if("."===n)for(e+=".";c()&&n>="0"&&n<="9";)e+=n;if("e"===n||"E"===n)for(e+=n,c(),"-"!==n&&"+"!==n||(e+=n,c());n>="0"&&n<="9";)e+=n,c();if(t=+e,isFinite(t))return t;a("Bad number")},s=function(){var t,e,r,o="";if('"'===n)for(;c();){if('"'===n)return c(),o;if("\\"===n)if(c(),"u"===n){for(r=0,e=0;e<4&&(t=parseInt(c(),16),isFinite(t));e+=1)r=16*r+t;o+=String.fromCharCode(r)}else{if("string"!=typeof i[n])break;o+=i[n]}else o+=n}a("Bad string")},l=function(){for(;n&&n<=" ";)c()};u=function(){switch(l(),n){case"{":return function(){var t,e={};if("{"===n){if(c("{"),l(),"}"===n)return c("}"),e;for(;n;){if(t=s(),l(),c(":"),Object.hasOwnProperty.call(e,t)&&a('Duplicate key "'+t+'"'),e[t]=u(),l(),"}"===n)return c("}"),e;c(","),l()}}a("Bad object")}();case"[":return function(){var t=[];if("["===n){if(c("["),l(),"]"===n)return c("]"),t;for(;n;){if(t.push(u()),l(),"]"===n)return c("]"),t;c(","),l()}}a("Bad array")}();case'"':return s();case"-":return f();default:return n>="0"&&n<="9"?f():function(){switch(n){case"t":return c("t"),c("r"),c("u"),c("e"),!0;case"f":return c("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":return c("n"),c("u"),c("l"),c("l"),null}a("Unexpected '"+n+"'")}()}},t.exports=function(t,e){var i;return o=t,r=0,n=" ",i=u(),l(),n&&a("Syntax error"),"function"==typeof e?function t(r,n){var o,u,i=r[n];if(i&&"object"==typeof i)for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(void 0!==(u=t(i,o))?i[o]=u:delete i[o]);return e.call(r,n,i)}({"":i},""):i}},function(t,e){var r,n,o,u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(t){return u.lastIndex=0,u.test(t)?'"'+t.replace(u,function(t){var e=i[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}t.exports=function(t,e,u){var i;if(r="",n="","number"==typeof u)for(i=0;i<u;i+=1)n+=" ";else"string"==typeof u&&(n=u);if(o=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return function t(e,u){var i,c,f,s,l,p=r,y=u[e];switch(y&&"object"==typeof y&&"function"==typeof y.toJSON&&(y=y.toJSON(e)),"function"==typeof o&&(y=o.call(u,e,y)),typeof y){case"string":return a(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":return String(y);case"object":if(!y)return"null";if(r+=n,l=[],"[object Array]"===Object.prototype.toString.apply(y)){for(s=y.length,i=0;i<s;i+=1)l[i]=t(i,y)||"null";return f=0===l.length?"[]":r?"[\n"+r+l.join(",\n"+r)+"\n"+p+"]":"["+l.join(",")+"]",r=p,f}if(o&&"object"==typeof o)for(s=o.length,i=0;i<s;i+=1)"string"==typeof(c=o[i])&&(f=t(c,y))&&l.push(a(c)+(r?": ":":")+f);else for(c in y)Object.prototype.hasOwnProperty.call(y,c)&&(f=t(c,y))&&l.push(a(c)+(r?": ":":")+f);return f=0===l.length?"{}":r?"{\n"+r+l.join(",\n"+r)+"\n"+p+"}":"{"+l.join(",")+"}",r=p,f}}("",{"":t})}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],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}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"REQUEST_ASYNC",function(){return i}),r.d(n,"REQUEST_START",function(){return a}),r.d(n,"REQUEST_SUCCESS",function(){return c}),r.d(n,"REQUEST_FAILURE",function(){return f}),r.d(n,"CANCEL_QUERY",function(){return s}),r.d(n,"MUTATE_ASYNC",function(){return l}),r.d(n,"MUTATE_START",function(){return p}),r.d(n,"MUTATE_SUCCESS",function(){return y}),r.d(n,"MUTATE_FAILURE",function(){return d}),r.d(n,"RESET",function(){return h}),r.d(n,"UPDATE_ENTITIES",function(){return b});var o={};r.r(o),r.d(o,"responseBody",function(){return w}),r.d(o,"responseText",function(){return S}),r.d(o,"responseHeaders",function(){return E});var u={};r.r(u),r.d(u,"isFinished",function(){return x}),r.d(u,"isPending",function(){return A}),r.d(u,"status",function(){return T}),r.d(u,"headers",function(){return P}),r.d(u,"lastUpdated",function(){return k}),r.d(u,"queryCount",function(){return q});const i="@@query/REQUEST_ASYNC",a="@@query/REQUEST_START",c="@@query/REQUEST_SUCCESS",f="@@query/REQUEST_FAILURE",s="@@query/CANCEL_QUERY",l="@@query/MUTATE_ASYNC",p="@@query/MUTATE_START",y="@@query/MUTATE_SUCCESS",d="@@query/MUTATE_FAILURE",h="@@query/RESET",b="@@query/UPDATE_ENTITIES";var v={DELETE:"DELETE",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",PATCH:"PATCH"},_=r(0),g=r.n(_),j=r(5),m=r.n(j);const O=t=>{if(!t)return null;const{url:e,body:r,queryKey:n}=t;return null!=n?n:m()({url:e,body:r})},w=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"responseBody"])}},S=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"responseText"])}},E=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"responseHeaders"])}},x=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"isFinished"])}},A=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"isPending"])}},T=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"status"])}},P=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"headers"])}},k=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"lastUpdated"])}},q=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"queryCount"])}};function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){U(t,e,r[e])})}return t}function U(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const K={};var M=(t=K,e)=>{switch(e.type){case h:return{};case p:case a:{const{queryKey:r}=e;return C({},t,{[r]:{url:e.url,isFinished:!1,isPending:!0,networkHandler:e.networkHandler,isMutation:e.type===p,queryCount:t[r]?t[r].queryCount+1:1}})}case c:case d:case y:case f:{const{queryKey:r}=e;return C({},t,{[r]:C({},t[r],{isFinished:!0,isPending:!1,lastUpdated:e.time,status:e.status,headers:e.responseHeaders})})}case s:{const{queryKey:r}=e;return t[r].isPending?C({},t,{[r]:C({},t[r],{isFinished:!0,isPending:!1,status:0})}):t}default:return t}};const D=(t,e,r)=>Object.keys(t||{}).reduce((n,o)=>(n[o]=t[o]((e||{})[o],(r||{})[o]),n),{}),F=(t,e)=>Object.keys(t).reduce((r,n)=>(r[n]=t[n](e[n]),r),{});function R(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){H(t,e,r[e])})}return t}function H(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const $={};var B=(t=$,e)=>e.type===h?"entities"in e?e.entities:$:e.type===p&&e.optimisticEntities?R({},t,e.optimisticEntities):e.type===d&&e.rolledBackEntities?R({},t,e.rolledBackEntities):e.type===c||e.type===y?R({},t,e.entities):e.type===b?R({},t,F(e.update,t)):t,I=r(6),N=r.n(I);function Q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){L(t,e,r[e])})}return t}function L(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const J={};var G=(t=J,e)=>{switch(e.type){case h:return{};case p:case a:{const{queryKey:r}=e;return N()(t,r)}case d:case f:{const{queryKey:r}=e;return Q({},t,{[r]:Q({},t[r],{responseBody:e.responseBody,responseText:e.responseText,responseHeaders:e.responseHeaders})})}default:return t}},Y=r(7),z=r.n(Y),W=r(2),V=r.n(W),X=r(3),Z=r.n(X),tt=r(8),et=r.n(tt),rt=r(4),nt=r.n(rt),ot=r(9),ut=r.n(ot);const it=({body:t,force:e,meta:r,options:n,queryKey:o,retry:u,transform:a,update:c,url:f,unstable_preDispatchCallback:s})=>({type:i,body:t,force:e,queryKey:o,meta:r,options:n,retry:u,transform:a,update:c,url:f,unstable_preDispatchCallback:s}),at=({body:t,meta:e,optimisticUpdate:r,options:n,queryKey:o,rollback:u,transform:i,update:a,url:c})=>({type:l,body:t,meta:e,optimisticUpdate:r,options:n,queryKey:o,rollback:u,transform:i,update:a,url:c}),ct=t=>({type:s,queryKey:t}),ft=t=>({type:b,update:t});function st(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},u=Object.keys(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}const pt={backoff:{maxAttempts:5,minDuration:300,maxDuration:5e3},retryableStatusCodes:[0,408,429,503,504],getQueryKey:O},yt=t=>ut()(t,t=>t.isPending),dt=t=>t>=200&&t<300;var ht=(t,e,r,n)=>({dispatch:o,getState:u})=>b=>_=>{let j;const m=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){st(t,e,r[e])})}return t}({},pt,n),{getQueryKey:O}=m,w=lt(m,["getQueryKey"]);switch(_.type){case i:{const{url:n,body:i,force:s,retry:l,transform:p=Z.a,update:y,options:d={},meta:h}=_;V()(!!n,"Missing required `url` field in action handler");const b=O(_),m=u(),S=e(m)[b],E=g()(S,["isPending"]),x=g()(S,["status"]),A=dt(x);(s||!S||l&&!E&&!A)&&(j=new Promise(e=>{const s=new Date,{method:l=v.GET}=d;let g=0;const j=new z.a({min:w.backoff.minDuration,max:w.backoff.maxDuration}),m=()=>{const v=t(n,l,{body:i,headers:d.headers,credentials:d.credentials});o((({body:t,meta:e,networkHandler:r,queryKey:n,url:o})=>({type:a,url:o,body:t,networkHandler:r,meta:e,queryKey:n}))({body:i,meta:h,networkHandler:v,queryKey:b,url:n})),g+=1,v.execute((t,a,l,d,v)=>{if(et()(w.retryableStatusCodes,a)&&g<w.backoff.maxAttempts)return void setTimeout(m,j.duration());const O=new Date-s;let S,E;if(_.unstable_preDispatchCallback&&_.unstable_preDispatchCallback(),t||!dt(a))o((({body:t,duration:e,meta:r,queryKey:n,responseBody:o,responseHeaders:u,responseText:i,status:a,url:c})=>({type:f,url:c,body:t,duration:e,status:a,responseBody:o,responseText:i,responseHeaders:u,meta:r,queryKey:n,time:Date.now()}))({body:i,duration:O,meta:h,queryKey:b,responseBody:l,responseHeaders:v,status:a,responseText:d,url:n})),e({body:l,duration:O,status:a,text:d,headers:v});else{const t=u(),f=r(t);S=p(l,d),E=D(y,f,S),o((({body:t,duration:e,entities:r,meta:n,queryKey:o,responseBody:u,responseHeaders:i,responseText:a,status:f,url:s})=>({type:c,url:s,body:t,duration:e,status:f,entities:r,responseBody:u,responseText:a,responseHeaders:i,meta:n,queryKey:o,time:Date.now()}))({body:i,duration:O,meta:h,entities:E,queryKey:b,responseBody:l,responseHeaders:v,status:a,responseText:d,url:n})),e({body:l,duration:O,status:a,text:d,transformed:S,entities:E,headers:v})}})};m()}));break}case l:{const{url:e,transform:n=Z.a,update:i,rollback:a,body:c,optimisticUpdate:f,options:s={},meta:l}=_;V()(!!e,"Missing required `url` field in action handler");const h=u(),b=r(h);let g;f&&(g=F(f,b));const m=O(_);j=new Promise(h=>{const j=new Date,{method:O=v.POST}=s,w=t(e,O,{body:c,headers:s.headers,credentials:s.credentials});o((({body:t,meta:e,networkHandler:r,optimisticEntities:n,queryKey:o,url:u})=>({type:p,url:u,body:t,networkHandler:r,optimisticEntities:n,queryKey:o,meta:e}))({body:c,meta:l,networkHandler:w,optimisticEntities:g,queryKey:m,url:e})),w.execute((t,s,p,v,O)=>{const w=new Date-j,S=u(),E=r(S);let x,A;if(_.unstable_preDispatchCallback&&_.unstable_preDispatchCallback(),t||!dt(s)){let t;f&&(t=((t={},e,r)=>Object.keys(e).reduce((n,o)=>(t[o]?n[o]=t[o](e[o],r[o]):n[o]=e[o],n),{}))(a,nt()(b,Object.keys(g)),nt()(E,Object.keys(g)))),o((({body:t,duration:e,meta:r,queryKey:n,responseBody:o,responseHeaders:u,responseText:i,rolledBackEntities:a,status:c,url:f})=>({type:d,url:f,body:t,duration:e,status:c,responseBody:o,responseText:i,responseHeaders:u,rolledBackEntities:a,queryKey:n,time:Date.now(),meta:r}))({body:c,duration:w,meta:l,queryKey:m,responseBody:p,responseHeaders:O,status:s,responseText:v,rolledBackEntities:t,url:e})),h({body:p,duration:w,status:s,text:v,headers:O})}else x=n(p,v),A=D(i,E,x),o((({body:t,duration:e,entities:r,meta:n,queryKey:o,responseBody:u,responseHeaders:i,responseText:a,status:c,url:f})=>({type:y,url:f,body:t,duration:e,status:c,responseBody:u,responseText:a,responseHeaders:i,entities:r,queryKey:o,time:Date.now(),meta:n}))({url:e,body:c,duration:w,status:s,entities:A,queryKey:m,responseBody:p,responseText:v,responseHeaders:O,meta:l})),h({body:p,duration:w,status:s,text:v,transformed:x,entities:A,headers:O})})});break}case s:{const{queryKey:t}=_;V()(!!t,"Missing required `queryKey` field in action handler");const r=u(),n=e(r),o=yt(n);t in o?(o[t].networkHandler.abort(),j=b(_)):(console.warn("Trying to cancel a request that is not in flight: ",t),j=null);break}case h:{const t=u(),r=e(t),n=yt(r);for(const t in n)n.hasOwnProperty(t)&&n[t].networkHandler.abort();j=b(_);break}default:j=b(_)}return j};r.d(e,"getQueryKey",function(){return O}),r.d(e,"queriesReducer",function(){return M}),r.d(e,"entitiesReducer",function(){return B}),r.d(e,"errorsReducer",function(){return G}),r.d(e,"queryMiddleware",function(){return ht}),r.d(e,"cancelQuery",function(){return ct}),r.d(e,"mutateAsync",function(){return at}),r.d(e,"requestAsync",function(){return it}),r.d(e,"updateEntities",function(){return ft}),r.d(e,"actionTypes",function(){return n}),r.d(e,"errorSelectors",function(){return o}),r.d(e,"httpMethods",function(){return v}),r.d(e,"querySelectors",function(){return u})}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReduxQuery=e():t.ReduxQuery=e()}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));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=11)}([function(t,e,r){(function(e){var r="Expected a function",n="__lodash_hash_undefined__",o=1/0,u="[object Function]",i="[object GeneratorFunction]",a="[object Symbol]",c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,f=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,y=/^\[object .+?Constructor\]$/,d="object"==typeof e&&e&&e.Object===Object&&e,b="object"==typeof self&&self&&self.Object===Object&&self,h=d||b||Function("return this")();var v,_=Array.prototype,g=Function.prototype,m=Object.prototype,j=h["__core-js_shared__"],O=(v=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",w=g.toString,S=m.hasOwnProperty,E=m.toString,T=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=h.Symbol,A=_.splice,P=F(h,"Map"),k=F(Object,"create"),q=x?x.prototype:void 0,C=q?q.toString:void 0;function U(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function K(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function D(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function M(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function H(t,e){for(var r,n=0,o=(e=function(t,e){if(Q(t))return!1;var r=typeof t;if("number"==r||"symbol"==r||"boolean"==r||null==t||J(t))return!0;return s.test(t)||!c.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:Q(r=e)?r:I(r)).length;null!=t&&n<o;)t=t[$(e[n++])];return n&&n==o?t:void 0}function R(t){return!(!L(t)||(e=t,O&&O in e))&&(function(t){var e=L(t)?E.call(t):"";return e==u||e==i}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?T:y).test(function(t){if(null!=t){try{return w.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function B(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function F(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}U.prototype.clear=function(){this.__data__=k?k(null):{}},U.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},U.prototype.get=function(t){var e=this.__data__;if(k){var r=e[t];return r===n?void 0:r}return S.call(e,t)?e[t]:void 0},U.prototype.has=function(t){var e=this.__data__;return k?void 0!==e[t]:S.call(e,t)},U.prototype.set=function(t,e){return this.__data__[t]=k&&void 0===e?n:e,this},K.prototype.clear=function(){this.__data__=[]},K.prototype.delete=function(t){var e=this.__data__,r=M(e,t);return!(r<0||(r==e.length-1?e.pop():A.call(e,r,1),0))},K.prototype.get=function(t){var e=this.__data__,r=M(e,t);return r<0?void 0:e[r][1]},K.prototype.has=function(t){return M(this.__data__,t)>-1},K.prototype.set=function(t,e){var r=this.__data__,n=M(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},D.prototype.clear=function(){this.__data__={hash:new U,map:new(P||K),string:new U}},D.prototype.delete=function(t){return B(this,t).delete(t)},D.prototype.get=function(t){return B(this,t).get(t)},D.prototype.has=function(t){return B(this,t).has(t)},D.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=N(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(J(t))return C?C.call(t):"";var e=t+"";return"0"==e&&1/t==-o?"-0":e}(e);var r=[];return f.test(t)&&r.push(""),t.replace(l,function(t,e,n,o){r.push(n?o.replace(p,"$1"):e||t)}),r});function $(t){if("string"==typeof t||J(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}function N(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var i=t.apply(this,r);return n.cache=u.set(o,i),i};return n.cache=new(N.Cache||D),n}N.Cache=D;var Q=Array.isArray;function L(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function J(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&E.call(t)==a}t.exports=function(t,e,r){var n=null==t?void 0:H(t,e);return void 0===n?r:n}}).call(this,r(2))},function(t,e,r){"use strict";t.exports=function(t,e,r,n,o,u,i,a){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,u,i,a],f=0;(c=new Error(e.replace(/%s/g,function(){return s[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){(function(e){var r=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",i="[object GeneratorFunction]",a="[object Symbol]",c="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,f=c||s||Function("return this")();function l(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var p=Object.prototype,y=p.hasOwnProperty,d=p.toString,b=f.Symbol,h=p.propertyIsEnumerable,v=b?b.isConcatSpreadable:void 0,_=Math.max;function g(t){return j(t)||function(t){return function(t){return O(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?d.call(t):"";return e==u||e==i}(t)}(t)}(t)&&y.call(t,"callee")&&(!h.call(t,"callee")||d.call(t)==o)}(t)||!!(v&&t&&t[v])}function m(t){if("string"==typeof t||function(t){return"symbol"==typeof t||O(t)&&d.call(t)==a}(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}var j=Array.isArray;function O(t){return!!t&&"object"==typeof t}var w,S,E=(w=function(t,e){return null==t?{}:function(t,e){return function(t,e,r){for(var n=-1,o=e.length,u={};++n<o;){var i=e[n],a=t[i];r(a,i)&&(u[i]=a)}return u}(t=Object(t),e,function(e,r){return r in t})}(t,function(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}(function t(e,r,n,o,u){var i=-1,a=e.length;for(n||(n=g),u||(u=[]);++i<a;){var c=e[i];r>0&&n(c)?r>1?t(c,r-1,n,o,u):l(u,c):o||(u[u.length]=c)}return u}(e,1),m))},S=_(void 0===S?w.length-1:S,0),function(){for(var t=arguments,e=-1,r=_(t.length-S,0),n=Array(r);++e<r;)n[e]=t[S+e];e=-1;for(var o=Array(S+1);++e<S;)o[e]=t[e];return o[S]=n,function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(w,this,o)});t.exports=E}).call(this,r(2))},function(t,e,r){var n="undefined"!=typeof JSON?JSON:r(7);t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r=e.space||"";"number"==typeof r&&(r=Array(r+1).join(" "));var i,a="boolean"==typeof e.cycles&&e.cycles,c=e.replacer||function(t,e){return e},s=e.cmp&&(i=e.cmp,function(t){return function(e,r){var n={key:e,value:t[e]},o={key:r,value:t[r]};return i(n,o)}}),f=[];return function t(e,i,l,p){var y=r?"\n"+new Array(p+1).join(r):"",d=r?": ":":";if(l&&l.toJSON&&"function"==typeof l.toJSON&&(l=l.toJSON()),void 0!==(l=c.call(e,i,l))){if("object"!=typeof l||null===l)return n.stringify(l);if(o(l)){for(var b=[],h=0;h<l.length;h++){var v=t(l,h,l[h],p+1)||n.stringify(null);b.push(y+r+v)}return"["+b.join(",")+y+"]"}if(-1!==f.indexOf(l)){if(a)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}f.push(l);var _=u(l).sort(s&&s(l));for(b=[],h=0;h<_.length;h++){var g=t(l,i=_[h],l[i],p+1);if(g){var m=n.stringify(i)+d+g;b.push(y+r+m)}}return f.splice(f.indexOf(l),1),"{"+b.join(",")+y+"}"}}({"":t},"",t,0)};var o=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},u=Object.keys||function(t){var e=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in t)e.call(t,n)&&r.push(n);return r}},function(t,e){function r(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=r,r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-r:t+r}return 0|Math.min(t,this.max)},r.prototype.reset=function(){this.attempts=0}},function(t,e,r){(function(t,r){var n=200,o="Expected a function",u="__lodash_hash_undefined__",i=1,a=2,c=1/0,s=9007199254740991,f="[object Arguments]",l="[object Array]",p="[object Boolean]",y="[object Date]",d="[object Error]",b="[object Function]",h="[object GeneratorFunction]",v="[object Map]",_="[object Number]",g="[object Object]",m="[object RegExp]",j="[object Set]",O="[object String]",w="[object Symbol]",S="[object ArrayBuffer]",E="[object DataView]",T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,A=/^\./,P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,q=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,U={};U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U[f]=U[l]=U[S]=U[p]=U[E]=U[y]=U[d]=U[b]=U[v]=U[_]=U[g]=U[m]=U[j]=U[O]=U["[object WeakMap]"]=!1;var K="object"==typeof t&&t&&t.Object===Object&&t,D="object"==typeof self&&self&&self.Object===Object&&self,M=K||D||Function("return this")(),H=e&&!e.nodeType&&e,R=H&&"object"==typeof r&&r&&!r.nodeType&&r,B=R&&R.exports===H&&K.process,F=function(){try{return B&&B.binding("util")}catch(t){}}(),I=F&&F.isTypedArray;function $(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function N(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function Q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function L(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function J(t,e){return function(r){return t(e(r))}}function G(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var Y,z=Array.prototype,W=Function.prototype,V=Object.prototype,X=M["__core-js_shared__"],Z=(Y=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",tt=W.toString,et=V.hasOwnProperty,rt=V.toString,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=M.Symbol,ut=M.Uint8Array,it=J(Object.getPrototypeOf,Object),at=V.propertyIsEnumerable,ct=z.splice,st=Object.getOwnPropertySymbols,ft=J(Object.keys,Object),lt=$t(M,"DataView"),pt=$t(M,"Map"),yt=$t(M,"Promise"),dt=$t(M,"Set"),bt=$t(M,"WeakMap"),ht=$t(Object,"create"),vt=Zt(lt),_t=Zt(pt),gt=Zt(yt),mt=Zt(dt),jt=Zt(bt),Ot=ot?ot.prototype:void 0,wt=Ot?Ot.valueOf:void 0,St=Ot?Ot.toString:void 0;function Et(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Tt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function At(t){var e=-1,r=t?t.length:0;for(this.__data__=new xt;++e<r;)this.add(t[e])}function Pt(t){this.__data__=new Tt(t)}function kt(t,e){var r=ne(t)||re(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var u in t)!e&&!et.call(t,u)||o&&("length"==u||Jt(u,n))||r.push(u);return r}function qt(t,e){for(var r=t.length;r--;)if(ee(t[r][0],e))return r;return-1}function Ct(t,e){for(var r=0,n=(e=Gt(e,t)?[e]:Rt(e)).length;null!=t&&r<n;)t=t[Xt(e[r++])];return r&&r==n?t:void 0}function Ut(t,e){return null!=t&&e in Object(t)}function Kt(t,e,r,n,o){return t===e||(null==t||null==e||!ae(t)&&!ce(e)?t!=t&&e!=e:function(t,e,r,n,o,u){var c=ne(t),s=ne(e),b=l,h=l;c||(b=(b=Lt(t))==f?g:b);s||(h=(h=Lt(e))==f?g:h);var T=b==g&&!Q(t),x=h==g&&!Q(e),A=b==h;if(A&&!T)return u||(u=new Pt),c||le(t)?Bt(t,e,r,n,o,u):function(t,e,r,n,o,u,c){switch(r){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case S:return!(t.byteLength!=e.byteLength||!n(new ut(t),new ut(e)));case p:case y:case _:return ee(+t,+e);case d:return t.name==e.name&&t.message==e.message;case m:case O:return t==e+"";case v:var s=L;case j:var f=u&a;if(s||(s=G),t.size!=e.size&&!f)return!1;var l=c.get(t);if(l)return l==e;u|=i,c.set(t,e);var b=Bt(s(t),s(e),n,o,u,c);return c.delete(t),b;case w:if(wt)return wt.call(t)==wt.call(e)}return!1}(t,e,b,r,n,o,u);if(!(o&a)){var P=T&&et.call(t,"__wrapped__"),k=x&&et.call(e,"__wrapped__");if(P||k){var q=P?t.value():t,C=k?e.value():e;return u||(u=new Pt),r(q,C,n,o,u)}}if(!A)return!1;return u||(u=new Pt),function(t,e,r,n,o,u){var i=o&a,c=pe(t),s=c.length,f=pe(e).length;if(s!=f&&!i)return!1;for(var l=s;l--;){var p=c[l];if(!(i?p in e:et.call(e,p)))return!1}var y=u.get(t);if(y&&u.get(e))return y==e;var d=!0;u.set(t,e),u.set(e,t);for(var b=i;++l<s;){p=c[l];var h=t[p],v=e[p];if(n)var _=i?n(v,h,p,e,t,u):n(h,v,p,t,e,u);if(!(void 0===_?h===v||r(h,v,n,o,u):_)){d=!1;break}b||(b="constructor"==p)}if(d&&!b){var g=t.constructor,m=e.constructor;g!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m)&&(d=!1)}return u.delete(t),u.delete(e),d}(t,e,r,n,o,u)}(t,e,Kt,r,n,o))}function Dt(t){return!(!ae(t)||(e=t,Z&&Z in e))&&(ue(t)||Q(t)?nt:q).test(Zt(t));var e}function Mt(t){return"function"==typeof t?t:null==t?de:"object"==typeof t?ne(t)?function(t,e){if(Gt(t)&&zt(e))return Wt(Xt(t),e);return function(r){var n=function(t,e,r){var n=null==t?void 0:Ct(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){e=Gt(e,t)?[e]:Rt(e);var n,o=-1,u=e.length;for(;++o<u;){var i=Xt(e[o]);if(!(n=null!=t&&r(t,i)))break;t=t[i]}if(n)return n;return!!(u=t?t.length:0)&&ie(u)&&Jt(i,u)&&(ne(t)||re(t))}(t,e,Ut)}(r,t):Kt(e,n,void 0,i|a)}}(t[0],t[1]):function(t){var e=function(t){var e=pe(t),r=e.length;for(;r--;){var n=e[r],o=t[n];e[r]=[n,o,zt(o)]}return e}(t);if(1==e.length&&e[0][2])return Wt(e[0][0],e[0][1]);return function(r){return r===t||function(t,e,r,n){var o=r.length,u=o,c=!n;if(null==t)return!u;for(t=Object(t);o--;){var s=r[o];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<u;){var f=(s=r[o])[0],l=t[f],p=s[1];if(c&&s[2]){if(void 0===l&&!(f in t))return!1}else{var y=new Pt;if(n)var d=n(l,p,f,t,e,y);if(!(void 0===d?Kt(p,l,n,i|a,y):d))return!1}}return!0}(r,t,e)}}(t):Gt(e=t)?(r=Xt(e),function(t){return null==t?void 0:t[r]}):function(t){return function(e){return Ct(e,t)}}(e);var e,r}function Ht(t){if(!ae(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Yt(t),r=[];for(var n in t)("constructor"!=n||!e&&et.call(t,n))&&r.push(n);return r}function Rt(t){return ne(t)?t:Vt(t)}function Bt(t,e,r,n,o,u){var c=o&a,s=t.length,f=e.length;if(s!=f&&!(c&&f>s))return!1;var l=u.get(t);if(l&&u.get(e))return l==e;var p=-1,y=!0,d=o&i?new At:void 0;for(u.set(t,e),u.set(e,t);++p<s;){var b=t[p],h=e[p];if(n)var v=c?n(h,b,p,e,t,u):n(b,h,p,t,e,u);if(void 0!==v){if(v)continue;y=!1;break}if(d){if(!N(e,function(t,e){if(!d.has(e)&&(b===t||r(b,t,n,o,u)))return d.add(e)})){y=!1;break}}else if(b!==h&&!r(b,h,n,o,u)){y=!1;break}}return u.delete(t),u.delete(e),y}function Ft(t){return function(t,e,r){var n=e(t);return ne(t)?n:$(n,r(t))}(t,ye,Qt)}function It(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function $t(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Dt(r)?r:void 0}Et.prototype.clear=function(){this.__data__=ht?ht(null):{}},Et.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Et.prototype.get=function(t){var e=this.__data__;if(ht){var r=e[t];return r===u?void 0:r}return et.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return ht?void 0!==e[t]:et.call(e,t)},Et.prototype.set=function(t,e){return this.__data__[t]=ht&&void 0===e?u:e,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var e=this.__data__,r=qt(e,t);return!(r<0||(r==e.length-1?e.pop():ct.call(e,r,1),0))},Tt.prototype.get=function(t){var e=this.__data__,r=qt(e,t);return r<0?void 0:e[r][1]},Tt.prototype.has=function(t){return qt(this.__data__,t)>-1},Tt.prototype.set=function(t,e){var r=this.__data__,n=qt(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},xt.prototype.clear=function(){this.__data__={hash:new Et,map:new(pt||Tt),string:new Et}},xt.prototype.delete=function(t){return It(this,t).delete(t)},xt.prototype.get=function(t){return It(this,t).get(t)},xt.prototype.has=function(t){return It(this,t).has(t)},xt.prototype.set=function(t,e){return It(this,t).set(t,e),this},At.prototype.add=At.prototype.push=function(t){return this.__data__.set(t,u),this},At.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.clear=function(){this.__data__=new Tt},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Tt){var o=r.__data__;if(!pt||o.length<n-1)return o.push([t,e]),this;r=this.__data__=new xt(o)}return r.set(t,e),this};var Nt=st?J(st,Object):be,Qt=st?function(t){for(var e=[];t;)$(e,Nt(t)),t=it(t);return e}:be,Lt=function(t){return rt.call(t)};function Jt(t,e){return!!(e=null==e?s:e)&&("number"==typeof t||C.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e){if(ne(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!se(t))||(x.test(t)||!T.test(t)||null!=e&&t in Object(e))}function Yt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||V)}function zt(t){return t==t&&!ae(t)}function Wt(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}(lt&&Lt(new lt(new ArrayBuffer(1)))!=E||pt&&Lt(new pt)!=v||yt&&"[object Promise]"!=Lt(yt.resolve())||dt&&Lt(new dt)!=j||bt&&"[object WeakMap]"!=Lt(new bt))&&(Lt=function(t){var e=rt.call(t),r=e==g?t.constructor:void 0,n=r?Zt(r):void 0;if(n)switch(n){case vt:return E;case _t:return v;case gt:return"[object Promise]";case mt:return j;case jt:return"[object WeakMap]"}return e});var Vt=te(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(se(t))return St?St.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var r=[];return A.test(t)&&r.push(""),t.replace(P,function(t,e,n,o){r.push(n?o.replace(k,"$1"):e||t)}),r});function Xt(t){if("string"==typeof t||se(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function Zt(t){if(null!=t){try{return tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function te(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],u=r.cache;if(u.has(o))return u.get(o);var i=t.apply(this,n);return r.cache=u.set(o,i),i};return r.cache=new(te.Cache||xt),r}function ee(t,e){return t===e||t!=t&&e!=e}function re(t){return function(t){return ce(t)&&oe(t)}(t)&&et.call(t,"callee")&&(!at.call(t,"callee")||rt.call(t)==f)}te.Cache=xt;var ne=Array.isArray;function oe(t){return null!=t&&ie(t.length)&&!ue(t)}function ue(t){var e=ae(t)?rt.call(t):"";return e==b||e==h}function ie(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function ae(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ce(t){return!!t&&"object"==typeof t}function se(t){return"symbol"==typeof t||ce(t)&&rt.call(t)==w}var fe,le=I?(fe=I,function(t){return fe(t)}):function(t){return ce(t)&&ie(t.length)&&!!U[rt.call(t)]};function pe(t){return oe(t)?kt(t):function(t){if(!Yt(t))return ft(t);var e=[];for(var r in Object(t))et.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}function ye(t){return oe(t)?kt(t,!0):Ht(t)}function de(t){return t}function be(){return[]}r.exports=function(t,e){return null==t?{}:function(t,e,r){for(var n=-1,o=e.length,u={};++n<o;){var i=e[n],a=t[i];r(a,i)&&(u[i]=a)}return u}(t,Ft(t),Mt(e))}}).call(this,r(2),r(10)(t))},function(t,e,r){e.parse=r(8),e.stringify=r(9)},function(t,e){var r,n,o,u,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=function(t){throw{name:"SyntaxError",message:t,at:r,text:o}},c=function(t){return t&&t!==n&&a("Expected '"+t+"' instead of '"+n+"'"),n=o.charAt(r),r+=1,n},s=function(){var t,e="";for("-"===n&&(e="-",c("-"));n>="0"&&n<="9";)e+=n,c();if("."===n)for(e+=".";c()&&n>="0"&&n<="9";)e+=n;if("e"===n||"E"===n)for(e+=n,c(),"-"!==n&&"+"!==n||(e+=n,c());n>="0"&&n<="9";)e+=n,c();if(t=+e,isFinite(t))return t;a("Bad number")},f=function(){var t,e,r,o="";if('"'===n)for(;c();){if('"'===n)return c(),o;if("\\"===n)if(c(),"u"===n){for(r=0,e=0;e<4&&(t=parseInt(c(),16),isFinite(t));e+=1)r=16*r+t;o+=String.fromCharCode(r)}else{if("string"!=typeof i[n])break;o+=i[n]}else o+=n}a("Bad string")},l=function(){for(;n&&n<=" ";)c()};u=function(){switch(l(),n){case"{":return function(){var t,e={};if("{"===n){if(c("{"),l(),"}"===n)return c("}"),e;for(;n;){if(t=f(),l(),c(":"),Object.hasOwnProperty.call(e,t)&&a('Duplicate key "'+t+'"'),e[t]=u(),l(),"}"===n)return c("}"),e;c(","),l()}}a("Bad object")}();case"[":return function(){var t=[];if("["===n){if(c("["),l(),"]"===n)return c("]"),t;for(;n;){if(t.push(u()),l(),"]"===n)return c("]"),t;c(","),l()}}a("Bad array")}();case'"':return f();case"-":return s();default:return n>="0"&&n<="9"?s():function(){switch(n){case"t":return c("t"),c("r"),c("u"),c("e"),!0;case"f":return c("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":return c("n"),c("u"),c("l"),c("l"),null}a("Unexpected '"+n+"'")}()}},t.exports=function(t,e){var i;return o=t,r=0,n=" ",i=u(),l(),n&&a("Syntax error"),"function"==typeof e?function t(r,n){var o,u,i=r[n];if(i&&"object"==typeof i)for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(void 0!==(u=t(i,o))?i[o]=u:delete i[o]);return e.call(r,n,i)}({"":i},""):i}},function(t,e){var r,n,o,u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(t){return u.lastIndex=0,u.test(t)?'"'+t.replace(u,function(t){var e=i[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}t.exports=function(t,e,u){var i;if(r="",n="","number"==typeof u)for(i=0;i<u;i+=1)n+=" ";else"string"==typeof u&&(n=u);if(o=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return function t(e,u){var i,c,s,f,l,p=r,y=u[e];switch(y&&"object"==typeof y&&"function"==typeof y.toJSON&&(y=y.toJSON(e)),"function"==typeof o&&(y=o.call(u,e,y)),typeof y){case"string":return a(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":return String(y);case"object":if(!y)return"null";if(r+=n,l=[],"[object Array]"===Object.prototype.toString.apply(y)){for(f=y.length,i=0;i<f;i+=1)l[i]=t(i,y)||"null";return s=0===l.length?"[]":r?"[\n"+r+l.join(",\n"+r)+"\n"+p+"]":"["+l.join(",")+"]",r=p,s}if(o&&"object"==typeof o)for(f=o.length,i=0;i<f;i+=1)"string"==typeof(c=o[i])&&(s=t(c,y))&&l.push(a(c)+(r?": ":":")+s);else for(c in y)Object.prototype.hasOwnProperty.call(y,c)&&(s=t(c,y))&&l.push(a(c)+(r?": ":":")+s);return s=0===l.length?"{}":r?"{\n"+r+l.join(",\n"+r)+"\n"+p+"}":"{"+l.join(",")+"}",r=p,s}}("",{"":t})}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],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}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";r.r(e);var n={};r.r(n),r.d(n,"REQUEST_ASYNC",function(){return i}),r.d(n,"REQUEST_START",function(){return a}),r.d(n,"REQUEST_SUCCESS",function(){return c}),r.d(n,"REQUEST_FAILURE",function(){return s}),r.d(n,"CANCEL_QUERY",function(){return f}),r.d(n,"MUTATE_ASYNC",function(){return l}),r.d(n,"MUTATE_START",function(){return p}),r.d(n,"MUTATE_SUCCESS",function(){return y}),r.d(n,"MUTATE_FAILURE",function(){return d}),r.d(n,"RESET",function(){return b}),r.d(n,"UPDATE_ENTITIES",function(){return h});var o={};r.r(o),r.d(o,"responseBody",function(){return w}),r.d(o,"responseText",function(){return S}),r.d(o,"responseHeaders",function(){return E});var u={};r.r(u),r.d(u,"isFinished",function(){return T}),r.d(u,"isPending",function(){return x}),r.d(u,"status",function(){return A}),r.d(u,"headers",function(){return P}),r.d(u,"lastUpdated",function(){return k}),r.d(u,"queryCount",function(){return q});const i="@@query/REQUEST_ASYNC",a="@@query/REQUEST_START",c="@@query/REQUEST_SUCCESS",s="@@query/REQUEST_FAILURE",f="@@query/CANCEL_QUERY",l="@@query/MUTATE_ASYNC",p="@@query/MUTATE_START",y="@@query/MUTATE_SUCCESS",d="@@query/MUTATE_FAILURE",b="@@query/RESET",h="@@query/UPDATE_ENTITIES";var v={DELETE:"DELETE",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",PATCH:"PATCH"},_=r(0),g=r.n(_),m=r(4),j=r.n(m);const O=t=>{if(!t)return null;const{url:e,body:r,queryKey:n}=t;return null!=n?n:j()({url:e,body:r})},w=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"responseBody"])}},S=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"responseText"])}},E=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"responseHeaders"])}},T=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"isFinished"])}},x=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"isPending"])}},A=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"status"])}},P=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"headers"])}},k=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"lastUpdated"])}},q=(t,e)=>{if(e){const r=O(e);return g()(t,[r,"queryCount"])}};function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){U(t,e,r[e])})}return t}function U(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const K={};var D=(t=K,e)=>{switch(e.type){case b:return{};case p:case a:{const{queryKey:r}=e;return C({},t,{[r]:{url:e.url,isFinished:!1,isPending:!0,networkHandler:e.networkHandler,isMutation:e.type===p,queryCount:t[r]?t[r].queryCount+1:1}})}case c:case d:case y:case s:{const{queryKey:r}=e;return C({},t,{[r]:C({},t[r],{isFinished:!0,isPending:!1,lastUpdated:e.time,status:e.status,headers:e.responseHeaders})})}case f:{const{queryKey:r}=e;return t[r].isPending?C({},t,{[r]:C({},t[r],{isFinished:!0,isPending:!1,status:0})}):t}default:return t}};const M=(t,e,r)=>Object.keys(t||{}).reduce((n,o)=>(n[o]=t[o]((e||{})[o],(r||{})[o]),n),{}),H=(t,e)=>Object.keys(t).reduce((r,n)=>(r[n]=t[n](e[n]),r),{});function R(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){B(t,e,r[e])})}return t}function B(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const F={};var I=(t=F,e)=>e.type===b?"entities"in e?e.entities:F:e.type===p&&e.optimisticEntities?R({},t,e.optimisticEntities):e.type===d&&e.rolledBackEntities?R({},t,e.rolledBackEntities):e.type===c||e.type===y?R({},t,e.entities):e.type===h?R({},t,H(e.update,t)):t;function $(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){N(t,e,r[e])})}return t}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}const Q={};var L=(t=Q,e)=>{switch(e.type){case b:return{};case p:case a:{const{queryKey:r}=e,n=$({},t);return delete n[r],n}case d:case s:{const{queryKey:r}=e;return $({},t,{[r]:$({},t[r],{responseBody:e.responseBody,responseText:e.responseText,responseHeaders:e.responseHeaders})})}default:return t}},J=r(5),G=r.n(J),Y=r(1),z=r.n(Y),W=r(3),V=r.n(W),X=r(6),Z=r.n(X);const tt=({body:t,force:e,meta:r,options:n,queryKey:o,retry:u,transform:a,update:c,url:s,unstable_preDispatchCallback:f})=>({type:i,body:t,force:e,queryKey:o,meta:r,options:n,retry:u,transform:a,update:c,url:s,unstable_preDispatchCallback:f}),et=({body:t,meta:e,optimisticUpdate:r,options:n,queryKey:o,rollback:u,transform:i,update:a,url:c})=>({type:l,body:t,meta:e,optimisticUpdate:r,options:n,queryKey:o,rollback:u,transform:i,update:a,url:c}),rt=t=>({type:f,queryKey:t}),nt=t=>({type:h,update:t});function ot(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ut(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},u=Object.keys(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}const it={backoff:{maxAttempts:5,minDuration:300,maxDuration:5e3},retryableStatusCodes:[0,408,429,503,504],getQueryKey:O},at=t=>Z()(t,t=>t.isPending),ct=t=>t>=200&&t<300,st=t=>t;var ft=(t,e,r,n)=>({dispatch:o,getState:u})=>h=>_=>{let m;const j=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){ot(t,e,r[e])})}return t}({},it,n),{getQueryKey:O}=j,w=ut(j,["getQueryKey"]);switch(_.type){case i:{const{url:n,body:i,force:f,retry:l,transform:p=st,update:y,options:d={},meta:b}=_;z()(!!n,"Missing required `url` field in action handler");const h=O(_),j=u(),S=e(j)[h],E=g()(S,["isPending"]),T=g()(S,["status"]),x=ct(T);(f||!S||l&&!E&&!x)&&(m=new Promise(e=>{const f=new Date,{method:l=v.GET}=d;let g=0;const m=new G.a({min:w.backoff.minDuration,max:w.backoff.maxDuration}),j=()=>{const v=t(n,l,{body:i,headers:d.headers,credentials:d.credentials});o((({body:t,meta:e,networkHandler:r,queryKey:n,url:o})=>({type:a,url:o,body:t,networkHandler:r,meta:e,queryKey:n}))({body:i,meta:b,networkHandler:v,queryKey:h,url:n})),g+=1,v.execute((t,a,l,d,v)=>{if(w.retryableStatusCodes.includes(a)&&g<w.backoff.maxAttempts)return void setTimeout(j,m.duration());const O=new Date-f;let S,E;if(_.unstable_preDispatchCallback&&_.unstable_preDispatchCallback(),t||!ct(a))o((({body:t,duration:e,meta:r,queryKey:n,responseBody:o,responseHeaders:u,responseText:i,status:a,url:c})=>({type:s,url:c,body:t,duration:e,status:a,responseBody:o,responseText:i,responseHeaders:u,meta:r,queryKey:n,time:Date.now()}))({body:i,duration:O,meta:b,queryKey:h,responseBody:l,responseHeaders:v,status:a,responseText:d,url:n})),e({body:l,duration:O,status:a,text:d,headers:v});else{const t=u(),s=r(t);S=p(l,d),E=M(y,s,S),o((({body:t,duration:e,entities:r,meta:n,queryKey:o,responseBody:u,responseHeaders:i,responseText:a,status:s,url:f})=>({type:c,url:f,body:t,duration:e,status:s,entities:r,responseBody:u,responseText:a,responseHeaders:i,meta:n,queryKey:o,time:Date.now()}))({body:i,duration:O,meta:b,entities:E,queryKey:h,responseBody:l,responseHeaders:v,status:a,responseText:d,url:n})),e({body:l,duration:O,status:a,text:d,transformed:S,entities:E,headers:v})}})};j()}));break}case l:{const{url:e,transform:n=st,update:i,rollback:a,body:c,optimisticUpdate:s,options:f={},meta:l}=_;z()(!!e,"Missing required `url` field in action handler");const b=u(),h=r(b);let g;s&&(g=H(s,h));const j=O(_);m=new Promise(b=>{const m=new Date,{method:O=v.POST}=f,w=t(e,O,{body:c,headers:f.headers,credentials:f.credentials});o((({body:t,meta:e,networkHandler:r,optimisticEntities:n,queryKey:o,url:u})=>({type:p,url:u,body:t,networkHandler:r,optimisticEntities:n,queryKey:o,meta:e}))({body:c,meta:l,networkHandler:w,optimisticEntities:g,queryKey:j,url:e})),w.execute((t,f,p,v,O)=>{const w=new Date-m,S=u(),E=r(S);let T,x;if(_.unstable_preDispatchCallback&&_.unstable_preDispatchCallback(),t||!ct(f)){let t;s&&(t=((t={},e,r)=>Object.keys(e).reduce((n,o)=>(t[o]?n[o]=t[o](e[o],r[o]):n[o]=e[o],n),{}))(a,V()(h,Object.keys(g)),V()(E,Object.keys(g)))),o((({body:t,duration:e,meta:r,queryKey:n,responseBody:o,responseHeaders:u,responseText:i,rolledBackEntities:a,status:c,url:s})=>({type:d,url:s,body:t,duration:e,status:c,responseBody:o,responseText:i,responseHeaders:u,rolledBackEntities:a,queryKey:n,time:Date.now(),meta:r}))({body:c,duration:w,meta:l,queryKey:j,responseBody:p,responseHeaders:O,status:f,responseText:v,rolledBackEntities:t,url:e})),b({body:p,duration:w,status:f,text:v,headers:O})}else T=n(p,v),x=M(i,E,T),o((({body:t,duration:e,entities:r,meta:n,queryKey:o,responseBody:u,responseHeaders:i,responseText:a,status:c,url:s})=>({type:y,url:s,body:t,duration:e,status:c,responseBody:u,responseText:a,responseHeaders:i,entities:r,queryKey:o,time:Date.now(),meta:n}))({url:e,body:c,duration:w,status:f,entities:x,queryKey:j,responseBody:p,responseText:v,responseHeaders:O,meta:l})),b({body:p,duration:w,status:f,text:v,transformed:T,entities:x,headers:O})})});break}case f:{const{queryKey:t}=_;z()(!!t,"Missing required `queryKey` field in action handler");const r=u(),n=e(r),o=at(n);t in o?(o[t].networkHandler.abort(),m=h(_)):(console.warn("Trying to cancel a request that is not in flight: ",t),m=null);break}case b:{const t=u(),r=e(t),n=at(r);for(const t in n)n.hasOwnProperty(t)&&n[t].networkHandler.abort();m=h(_);break}default:m=h(_)}return m};r.d(e,"getQueryKey",function(){return O}),r.d(e,"queriesReducer",function(){return D}),r.d(e,"entitiesReducer",function(){return I}),r.d(e,"errorsReducer",function(){return L}),r.d(e,"queryMiddleware",function(){return ft}),r.d(e,"cancelQuery",function(){return rt}),r.d(e,"mutateAsync",function(){return et}),r.d(e,"requestAsync",function(){return tt}),r.d(e,"updateEntities",function(){return nt}),r.d(e,"actionTypes",function(){return n}),r.d(e,"errorSelectors",function(){return o}),r.d(e,"httpMethods",function(){return v}),r.d(e,"querySelectors",function(){return u})}])}); |
{ | ||
"name": "redux-query", | ||
"version": "3.0.0-alpha.3", | ||
"version": "3.0.0-alpha.4", | ||
"description": "A library for querying and managing network state in Redux applications", | ||
@@ -37,11 +37,5 @@ "homepage": "https://github.com/amplitude/redux-query", | ||
"json-stable-stringify": "^1.0.0", | ||
"lodash.difference": "^4.5.0", | ||
"lodash.get": "^4.4.2", | ||
"lodash.identity": "^3.0.0", | ||
"lodash.includes": "^4.3.0", | ||
"lodash.intersection": "^4.4.0", | ||
"lodash.omit": "^4.5.0", | ||
"lodash.pick": "^4.4.0", | ||
"lodash.pickby": "^4.6.0", | ||
"lodash.values": "^4.3.0" | ||
"lodash.pickby": "^4.6.0" | ||
}, | ||
@@ -75,3 +69,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "017a46e4ce9e4a40701804c278e9f864cefbd9ef" | ||
"gitHead": "d7b03cb4cbd9ead414d8db2c273058f970538867" | ||
} |
import Backoff from 'backo'; | ||
import invariant from 'invariant'; | ||
import get from 'lodash.get'; | ||
import identity from 'lodash.identity'; | ||
import includes from 'lodash.includes'; | ||
import pick from 'lodash.pick'; | ||
@@ -45,2 +43,4 @@ import pickBy from 'lodash.pickby'; | ||
const identity = x => x; | ||
const queryMiddleware = (networkInterface, queriesSelector, entitiesSelector, customConfig) => { | ||
@@ -106,3 +106,3 @@ return ({ dispatch, getState }) => next => action => { | ||
if ( | ||
includes(config.retryableStatusCodes, status) && | ||
config.retryableStatusCodes.includes(status) && | ||
attempts < config.backoff.maxAttempts | ||
@@ -109,0 +109,0 @@ ) { |
@@ -1,3 +0,1 @@ | ||
import omit from 'lodash.omit'; | ||
import * as actionTypes from '../constants/action-types'; | ||
@@ -15,4 +13,7 @@ | ||
const { queryKey } = action; | ||
const newState = { ...state }; | ||
return omit(state, queryKey); | ||
delete newState[queryKey]; | ||
return newState; | ||
} | ||
@@ -19,0 +20,0 @@ case actionTypes.MUTATE_FAILURE: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7
222986
5228
- Removedlodash.difference@^4.5.0
- Removedlodash.identity@^3.0.0
- Removedlodash.includes@^4.3.0
- Removedlodash.intersection@^4.4.0
- Removedlodash.omit@^4.5.0
- Removedlodash.values@^4.3.0
- Removedlodash.difference@4.5.0(transitive)
- Removedlodash.identity@3.0.0(transitive)
- Removedlodash.includes@4.3.0(transitive)
- Removedlodash.intersection@4.4.0(transitive)
- Removedlodash.omit@4.5.0(transitive)
- Removedlodash.values@4.3.0(transitive)