New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@welldone-software/why-did-you-render

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@welldone-software/why-did-you-render - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

10

dist/cjs/whyDidYouRender.js
/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -823,7 +823,9 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

Object.defineProperty(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher, 'current', {
set: function set(_origHooks) {
origHooks = _origHooks;
set: function set(newHooks) {
origHooks = newHooks && _objectSpread({}, newHooks, newHooks.origHooks);
},
get: function get() {
return _objectSpread({}, origHooks, patchedHooks);
return origHooks && _objectSpread({}, origHooks, patchedHooks, {
origHooks: origHooks
});
}

@@ -830,0 +832,0 @@ });

4

dist/cjs/whyDidYouRender.min.js
/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -8,3 +8,3 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _mapValues=_interopDefault(require("lodash/mapValues")),_get$1=_interopDefault(require("lodash/get")),_omit=_interopDefault(require("lodash/omit")),_defaults=_interopDefault(require("lodash/defaults")),_isString=_interopDefault(require("lodash/isString")),_reduce=_interopDefault(require("lodash/reduce")),_has=_interopDefault(require("lodash/has")),_keys=_interopDefault(require("lodash/keys")),_isFunction=_interopDefault(require("lodash/isFunction")),_isRegExp=_interopDefault(require("lodash/isRegExp")),_isDate=_interopDefault(require("lodash/isDate")),_isPlainObject=_interopDefault(require("lodash/isPlainObject")),_isArray=_interopDefault(require("lodash/isArray"));function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_defineProperty(e,t,r[t])})}return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(e,t,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=_superPropBase(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var _diffTypesDescription,diffTypes={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},moreInfoUrl="http://bit.ly/wdyr02",moreInfoHooksUrl="http://bit.ly/wdyr3",diffTypesDescriptions=(_defineProperty(_diffTypesDescription={},diffTypes.different,"different objects."),_defineProperty(_diffTypesDescription,diffTypes.deepEquals,"different objects that are equal by value."),_defineProperty(_diffTypesDescription,diffTypes.date,"different date objects with the same value."),_defineProperty(_diffTypesDescription,diffTypes.regex,"different regular expressions with the same value."),_defineProperty(_diffTypesDescription,diffTypes.reactElement,"different React elements with the same displayName."),_defineProperty(_diffTypesDescription,diffTypes.function,"different functions with the same name."),_diffTypesDescription),inHotReload=!1;function shouldLog(e,t,r){return!inHotReload&&(!!r.logOnDifferentValues||(!(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)||!(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===diffTypes.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===diffTypes.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===diffTypes.different}))))}function logDifference(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,i=e.diffObjType,a=e.differences,f=e.values,s=e.options;a&&a.length>0?(s.consoleLog(_defineProperty({},r,t),"".concat(o," of ").concat(i," changes:")),a.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,a=e.nextValue;s.consoleGroup("%c".concat("hook"===i?"hook ".concat(n," "):"".concat(i,"."),"%c").concat(t,"%c"),"color:".concat(s.diffNameColor,";"),"color:".concat(s.diffPathColor,";"),"color:default;"),s.consoleLog("".concat(diffTypesDescriptions[r]," (more info at ").concat(n?moreInfoHooksUrl:moreInfoUrl,")")),s.consoleLog(_defineProperty({},"prev ".concat(t),o),"!==",_defineProperty({},"next ".concat(t),a)),s.consoleGroupEnd()})):a&&(s.consoleLog(_defineProperty({},r,t),"".concat(o," the ").concat(i," object itself changed but it's values are all equal."),"props"===i?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(moreInfoUrl)),s.consoleLog("prev ".concat(i,":"),f.prev," !== ",f.next,":next ".concat(i)))}function defaultNotifier(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook,p=e.reason,u=e.options;if(shouldLog(p,t,u)){u.consoleGroup("%c".concat(r),"color: ".concat(u.titleColor,";"));var l="Re-rendered because";p.propsDifferences&&(logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:p.propsDifferences,values:{prev:o,next:f},options:u}),l="And because"),p.stateDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:p.stateDifferences,values:{prev:i,next:s},options:u}),p.hookDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:p.hookDifferences,values:{prev:a,next:c},hookName:n,options:u}),p.propsDifferences||p.stateDifferences||p.hookDifferences||u.consoleLog(_defineProperty({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(moreInfoUrl)),u.consoleGroupEnd()}}function createDefaultNotifier(e){return e&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(inHotReload=!0,setTimeout(function(){inHotReload=!1},e))}),defaultNotifier}var emptyFn=function(){};function normalizeOptions(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=console.group,r=console.groupEnd;return e.collapseGroups?t=console.groupCollapsed:e.onlyLogs&&(t=console.log,r=emptyFn),_objectSpread({include:null,exclude:null,notifier:e.notifier||createDefaultNotifier(e.hasOwnProperty("hotReloadBufferMs")?e.hotReloadBufferMs:500),onlyLogs:!1,consoleLog:console.log,consoleGroup:t,consoleGroupEnd:r,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},e)}function getDisplayName(e){return e.displayName||e.name||e.type&&getDisplayName(e.type)||(_isString(e)?e:void 0)}var hasElementType="undefined"!=typeof Element,hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,isReactElement=function(e){return e.$$typeof===REACT_ELEMENT_TYPE};function trackDiff(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==diffTypes.different}function accumulateDeepEqualDiffs(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e===t)return!0;if(!e||!t)return trackDiff(e,t,r,n,diffTypes.different);if(_isArray(e)&&_isArray(t)){var o=e.length;if(o!==t.length)return trackDiff(e,t,r,n,diffTypes.different);for(var i=!0,a=o;0!=a--;)accumulateDeepEqualDiffs(e[a],t[a],r,"".concat(n,"[").concat(a,"]"))||(i=!1);return trackDiff(e,t,r,n,i?diffTypes.deepEquals:diffTypes.different)}if(_isDate(e)&&_isDate(t))return e.getTime()===t.getTime()?trackDiff(e,t,r,n,diffTypes.date):trackDiff(e,t,r,n,diffTypes.different);if(_isRegExp(e)&&_isRegExp(t))return e.toString()===t.toString()?trackDiff(e,t,r,n,diffTypes.regex):trackDiff(e,t,r,n,diffTypes.different);if(hasElementType&&e instanceof Element&&t instanceof Element)return trackDiff(e,t,r,n,diffTypes.different);if(isReactElement(e)&&isReactElement(t))return e.type===t.type?trackDiff(e,t,r,n,diffTypes.reactElement):trackDiff(e,t,r,n,diffTypes.different);if(_isFunction(e)&&_isFunction(t))return e.name===t.name?trackDiff(e,t,r,n,diffTypes.function):trackDiff(e,t,r,n,diffTypes.different);if(_isPlainObject(e)&&_isPlainObject(t)){var f=_keys(e),s=f.length;if(s!==_keys(t).length)return trackDiff(e,t,r,n,diffTypes.different);for(var c=s;0!=c--;)if(!_has(t,f[c]))return trackDiff(e,t,r,n,diffTypes.different);for(var p=!0,u=s;0!=u--;){var l=f[u];accumulateDeepEqualDiffs(e[l],t[l],r,"".concat(n,".").concat(l))||(p=!1)}return trackDiff(e,t,r,n,p?diffTypes.deepEquals:diffTypes.different)}return trackDiff(e,t,r,n,diffTypes.different)}function calculateDeepEqualDiffs(e,t,r){try{var n=[];return accumulateDeepEqualDiffs(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var emptyObject={};function findObjectsDifferences(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return calculateDeepEqualDiffs(e,t);var n=e||emptyObject,o=t||emptyObject,i=Object.keys(_objectSpread({},n,o));return _reduce(i,function(e,t){var r=calculateDeepEqualDiffs(n[t],o[t],t);return r&&(e=[].concat(_toConsumableArray(e),_toConsumableArray(r))),e},[])}function getUpdateReason(e,t,r,n,o,i){return{propsDifferences:findObjectsDifferences(e,n),stateDifferences:findObjectsDifferences(t,o),hookDifferences:findObjectsDifferences(r,i,{shallow:!1})}}function getUpdateInfo(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:i,prevHook:a,nextProps:f,nextState:s,nextHook:c,options:e.options,reason:getUpdateReason(o,i,a,f,s,c)}}function shouldInclude(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}function shouldExclude(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}function shouldTrack(e,t,r){return!shouldExclude(t,r)&&!(!e.whyDidYouRender&&!shouldInclude(t,r))}var hasSymbol$1="function"==typeof Symbol&&Symbol.for,REACT_MEMO_TYPE=hasSymbol$1?Symbol.for("react.memo"):60115;function patchClassComponent(e,t,r,n){var o=function(r){function o(t,r){var n;if(_classCallCheck(this,o),(n=_possibleConstructorReturn(this,_getPrototypeOf(o).call(this,t,r))).render&&!e.prototype.render){var i=n.render;n.render=function(){return o.prototype.render.apply(_assertThisInitialized(n)),i()}}return n}return _inherits(o,e),_createClass(o,[{key:"render",value:function(){return this._prevProps&&n.notifier(getUpdateInfo({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:n})),this._prevProps=this.props,this._prevState=this.state,_get(_getPrototypeOf(o.prototype),"render",this)&&_get(_getPrototypeOf(o.prototype),"render",this).call(this)}}]),o}();return o.displayName=t,_defaults(o,e),o}function patchFunctionalComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&n.notifier(f)}return e(o)}return o.displayName=t,_defaults(o,e),o}function patchMemoComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&n.notifier(f)}return e.type(o)}var i=r.memo(o),a=_omit(e,Object.keys(i));return o.displayName=t,_defaults(o,a),i.displayName=t,_defaults(i,e),i}function trackHookChanges(e,t,r,n,o){var i=t.path,a=r,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,s=getDisplayName(f);if(!shouldTrack(f,s,o))return a;var c=n.useRef(),p=c.current;if(c.current=a,p){var u=getUpdateInfo({Component:f,displayName:s,hookName:e,prevHook:i?_get$1(p,i):p,nextHook:i?_get$1(a,i):a,options:o});u.reason.hookDifferences&&o.notifier(u)}return c.current}function createPatchedComponent(e,t,r,n,o){return t.$$typeof===REACT_MEMO_TYPE?patchMemoComponent(t,r,n,o):t.prototype&&t.prototype.isReactComponent?patchClassComponent(t,r,n,o):patchFunctionalComponent(t,r,n,o)}function getPatchedComponent(e,t,r,n,o){if(e.has(t))return e.get(t);var i=createPatchedComponent(e,t,r,n,o);return e.set(t,i),i}var hooksConfig={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};function whyDidYouRender(e,t){var r,n=normalizeOptions(t),o=e.createElement,i=e.createFactory,a=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===REACT_MEMO_TYPE)&&shouldTrack(t,getDisplayName(t),n),i=arguments.length,f=new Array(i>1?i-1:0),s=1;s<i;s++)f[s-1]=arguments[s];if(!r)return o.apply(e,[t].concat(f));var c=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||getDisplayName(t),p=getPatchedComponent(a,t,c,e,n);return o.apply(e,[p].concat(f))},Object.assign(e.createElement,o),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,i),n.trackHooks){var f=_mapValues(hooksConfig,function(t,o){return function(){var i=r[o];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var a=i.apply(void 0,arguments);return t&&trackHookChanges(o,!0===t?{}:t,a,e,n),a}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){r=e},get:function(){return _objectSpread({},r,f)}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:o,createFactory:i}),a=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:r}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}module.exports=whyDidYouRender;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _mapValues=_interopDefault(require("lodash/mapValues")),_get$1=_interopDefault(require("lodash/get")),_omit=_interopDefault(require("lodash/omit")),_defaults=_interopDefault(require("lodash/defaults")),_isString=_interopDefault(require("lodash/isString")),_reduce=_interopDefault(require("lodash/reduce")),_has=_interopDefault(require("lodash/has")),_keys=_interopDefault(require("lodash/keys")),_isFunction=_interopDefault(require("lodash/isFunction")),_isRegExp=_interopDefault(require("lodash/isRegExp")),_isDate=_interopDefault(require("lodash/isDate")),_isPlainObject=_interopDefault(require("lodash/isPlainObject")),_isArray=_interopDefault(require("lodash/isArray"));function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_defineProperty(e,t,r[t])})}return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(e,t,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=_superPropBase(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var _diffTypesDescription,diffTypes={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},moreInfoUrl="http://bit.ly/wdyr02",moreInfoHooksUrl="http://bit.ly/wdyr3",diffTypesDescriptions=(_defineProperty(_diffTypesDescription={},diffTypes.different,"different objects."),_defineProperty(_diffTypesDescription,diffTypes.deepEquals,"different objects that are equal by value."),_defineProperty(_diffTypesDescription,diffTypes.date,"different date objects with the same value."),_defineProperty(_diffTypesDescription,diffTypes.regex,"different regular expressions with the same value."),_defineProperty(_diffTypesDescription,diffTypes.reactElement,"different React elements with the same displayName."),_defineProperty(_diffTypesDescription,diffTypes.function,"different functions with the same name."),_diffTypesDescription),inHotReload=!1;function shouldLog(e,t,r){return!inHotReload&&(!!r.logOnDifferentValues||(!(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)||!(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===diffTypes.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===diffTypes.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===diffTypes.different}))))}function logDifference(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,i=e.diffObjType,a=e.differences,f=e.values,s=e.options;a&&a.length>0?(s.consoleLog(_defineProperty({},r,t),"".concat(o," of ").concat(i," changes:")),a.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,a=e.nextValue;s.consoleGroup("%c".concat("hook"===i?"hook ".concat(n," "):"".concat(i,"."),"%c").concat(t,"%c"),"color:".concat(s.diffNameColor,";"),"color:".concat(s.diffPathColor,";"),"color:default;"),s.consoleLog("".concat(diffTypesDescriptions[r]," (more info at ").concat(n?moreInfoHooksUrl:moreInfoUrl,")")),s.consoleLog(_defineProperty({},"prev ".concat(t),o),"!==",_defineProperty({},"next ".concat(t),a)),s.consoleGroupEnd()})):a&&(s.consoleLog(_defineProperty({},r,t),"".concat(o," the ").concat(i," object itself changed but it's values are all equal."),"props"===i?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(moreInfoUrl)),s.consoleLog("prev ".concat(i,":"),f.prev," !== ",f.next,":next ".concat(i)))}function defaultNotifier(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook,p=e.reason,u=e.options;if(shouldLog(p,t,u)){u.consoleGroup("%c".concat(r),"color: ".concat(u.titleColor,";"));var l="Re-rendered because";p.propsDifferences&&(logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:p.propsDifferences,values:{prev:o,next:f},options:u}),l="And because"),p.stateDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:p.stateDifferences,values:{prev:i,next:s},options:u}),p.hookDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:p.hookDifferences,values:{prev:a,next:c},hookName:n,options:u}),p.propsDifferences||p.stateDifferences||p.hookDifferences||u.consoleLog(_defineProperty({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(moreInfoUrl)),u.consoleGroupEnd()}}function createDefaultNotifier(e){return e&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(inHotReload=!0,setTimeout(function(){inHotReload=!1},e))}),defaultNotifier}var emptyFn=function(){};function normalizeOptions(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=console.group,r=console.groupEnd;return e.collapseGroups?t=console.groupCollapsed:e.onlyLogs&&(t=console.log,r=emptyFn),_objectSpread({include:null,exclude:null,notifier:e.notifier||createDefaultNotifier(e.hasOwnProperty("hotReloadBufferMs")?e.hotReloadBufferMs:500),onlyLogs:!1,consoleLog:console.log,consoleGroup:t,consoleGroupEnd:r,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},e)}function getDisplayName(e){return e.displayName||e.name||e.type&&getDisplayName(e.type)||(_isString(e)?e:void 0)}var hasElementType="undefined"!=typeof Element,hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,isReactElement=function(e){return e.$$typeof===REACT_ELEMENT_TYPE};function trackDiff(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==diffTypes.different}function accumulateDeepEqualDiffs(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e===t)return!0;if(!e||!t)return trackDiff(e,t,r,n,diffTypes.different);if(_isArray(e)&&_isArray(t)){var o=e.length;if(o!==t.length)return trackDiff(e,t,r,n,diffTypes.different);for(var i=!0,a=o;0!=a--;)accumulateDeepEqualDiffs(e[a],t[a],r,"".concat(n,"[").concat(a,"]"))||(i=!1);return trackDiff(e,t,r,n,i?diffTypes.deepEquals:diffTypes.different)}if(_isDate(e)&&_isDate(t))return e.getTime()===t.getTime()?trackDiff(e,t,r,n,diffTypes.date):trackDiff(e,t,r,n,diffTypes.different);if(_isRegExp(e)&&_isRegExp(t))return e.toString()===t.toString()?trackDiff(e,t,r,n,diffTypes.regex):trackDiff(e,t,r,n,diffTypes.different);if(hasElementType&&e instanceof Element&&t instanceof Element)return trackDiff(e,t,r,n,diffTypes.different);if(isReactElement(e)&&isReactElement(t))return e.type===t.type?trackDiff(e,t,r,n,diffTypes.reactElement):trackDiff(e,t,r,n,diffTypes.different);if(_isFunction(e)&&_isFunction(t))return e.name===t.name?trackDiff(e,t,r,n,diffTypes.function):trackDiff(e,t,r,n,diffTypes.different);if(_isPlainObject(e)&&_isPlainObject(t)){var f=_keys(e),s=f.length;if(s!==_keys(t).length)return trackDiff(e,t,r,n,diffTypes.different);for(var c=s;0!=c--;)if(!_has(t,f[c]))return trackDiff(e,t,r,n,diffTypes.different);for(var p=!0,u=s;0!=u--;){var l=f[u];accumulateDeepEqualDiffs(e[l],t[l],r,"".concat(n,".").concat(l))||(p=!1)}return trackDiff(e,t,r,n,p?diffTypes.deepEquals:diffTypes.different)}return trackDiff(e,t,r,n,diffTypes.different)}function calculateDeepEqualDiffs(e,t,r){try{var n=[];return accumulateDeepEqualDiffs(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var emptyObject={};function findObjectsDifferences(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return calculateDeepEqualDiffs(e,t);var n=e||emptyObject,o=t||emptyObject,i=Object.keys(_objectSpread({},n,o));return _reduce(i,function(e,t){var r=calculateDeepEqualDiffs(n[t],o[t],t);return r&&(e=[].concat(_toConsumableArray(e),_toConsumableArray(r))),e},[])}function getUpdateReason(e,t,r,n,o,i){return{propsDifferences:findObjectsDifferences(e,n),stateDifferences:findObjectsDifferences(t,o),hookDifferences:findObjectsDifferences(r,i,{shallow:!1})}}function getUpdateInfo(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:i,prevHook:a,nextProps:f,nextState:s,nextHook:c,options:e.options,reason:getUpdateReason(o,i,a,f,s,c)}}function shouldInclude(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}function shouldExclude(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}function shouldTrack(e,t,r){return!shouldExclude(t,r)&&!(!e.whyDidYouRender&&!shouldInclude(t,r))}var hasSymbol$1="function"==typeof Symbol&&Symbol.for,REACT_MEMO_TYPE=hasSymbol$1?Symbol.for("react.memo"):60115;function patchClassComponent(e,t,r,n){var o=function(r){function o(t,r){var n;if(_classCallCheck(this,o),(n=_possibleConstructorReturn(this,_getPrototypeOf(o).call(this,t,r))).render&&!e.prototype.render){var i=n.render;n.render=function(){return o.prototype.render.apply(_assertThisInitialized(n)),i()}}return n}return _inherits(o,e),_createClass(o,[{key:"render",value:function(){return this._prevProps&&n.notifier(getUpdateInfo({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:n})),this._prevProps=this.props,this._prevState=this.state,_get(_getPrototypeOf(o.prototype),"render",this)&&_get(_getPrototypeOf(o.prototype),"render",this).call(this)}}]),o}();return o.displayName=t,_defaults(o,e),o}function patchFunctionalComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&n.notifier(f)}return e(o)}return o.displayName=t,_defaults(o,e),o}function patchMemoComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&n.notifier(f)}return e.type(o)}var i=r.memo(o),a=_omit(e,Object.keys(i));return o.displayName=t,_defaults(o,a),i.displayName=t,_defaults(i,e),i}function trackHookChanges(e,t,r,n,o){var i=t.path,a=r,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,s=getDisplayName(f);if(!shouldTrack(f,s,o))return a;var c=n.useRef(),p=c.current;if(c.current=a,p){var u=getUpdateInfo({Component:f,displayName:s,hookName:e,prevHook:i?_get$1(p,i):p,nextHook:i?_get$1(a,i):a,options:o});u.reason.hookDifferences&&o.notifier(u)}return c.current}function createPatchedComponent(e,t,r,n,o){return t.$$typeof===REACT_MEMO_TYPE?patchMemoComponent(t,r,n,o):t.prototype&&t.prototype.isReactComponent?patchClassComponent(t,r,n,o):patchFunctionalComponent(t,r,n,o)}function getPatchedComponent(e,t,r,n,o){if(e.has(t))return e.get(t);var i=createPatchedComponent(e,t,r,n,o);return e.set(t,i),i}var hooksConfig={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};function whyDidYouRender(e,t){var r,n=normalizeOptions(t),o=e.createElement,i=e.createFactory,a=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===REACT_MEMO_TYPE)&&shouldTrack(t,getDisplayName(t),n),i=arguments.length,f=new Array(i>1?i-1:0),s=1;s<i;s++)f[s-1]=arguments[s];if(!r)return o.apply(e,[t].concat(f));var c=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||getDisplayName(t),p=getPatchedComponent(a,t,c,e,n);return o.apply(e,[p].concat(f))},Object.assign(e.createElement,o),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,i),n.trackHooks){var f=_mapValues(hooksConfig,function(t,o){return function(){var i=r[o];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var a=i.apply(void 0,arguments);return t&&trackHookChanges(o,!0===t?{}:t,a,e,n),a}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){r=e&&_objectSpread({},e,e.origHooks)},get:function(){return r&&_objectSpread({},r,f,{origHooks:r})}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:o,createFactory:i}),a=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:r}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}module.exports=whyDidYouRender;
//# sourceMappingURL=whyDidYouRender.min.js.map
/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -819,7 +819,9 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

Object.defineProperty(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher, 'current', {
set: function set(_origHooks) {
origHooks = _origHooks;
set: function set(newHooks) {
origHooks = newHooks && _objectSpread({}, newHooks, newHooks.origHooks);
},
get: function get() {
return _objectSpread({}, origHooks, patchedHooks);
return origHooks && _objectSpread({}, origHooks, patchedHooks, {
origHooks: origHooks
});
}

@@ -826,0 +828,0 @@ });

/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -8,3 +8,3 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

import e from"lodash/mapValues";import t from"lodash/get";import r from"lodash/omit";import n from"lodash/defaults";import o from"lodash/isString";import a from"lodash/reduce";import i from"lodash/has";import f from"lodash/keys";import c from"lodash/isFunction";import s from"lodash/isRegExp";import u from"lodash/isDate";import p from"lodash/isPlainObject";import l from"lodash/isArray";function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){m(e,t,r[t])})}return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,r){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function _(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var E,O={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},D="http://bit.ly/wdyr02",R="http://bit.ly/wdyr3",w=(m(E={},O.different,"different objects."),m(E,O.deepEquals,"different objects that are equal by value."),m(E,O.date,"different date objects with the same value."),m(E,O.regex,"different regular expressions with the same value."),m(E,O.reactElement,"different React elements with the same displayName."),m(E,O.function,"different functions with the same name."),E),x=!1;function S(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,a=e.diffObjType,i=e.differences,f=e.values,c=e.options;i&&i.length>0?(c.consoleLog(m({},r,t),"".concat(o," of ").concat(a," changes:")),i.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,i=e.nextValue;c.consoleGroup("%c".concat("hook"===a?"hook ".concat(n," "):"".concat(a,"."),"%c").concat(t,"%c"),"color:".concat(c.diffNameColor,";"),"color:".concat(c.diffPathColor,";"),"color:default;"),c.consoleLog("".concat(w[r]," (more info at ").concat(n?R:D,")")),c.consoleLog(m({},"prev ".concat(t),o),"!==",m({},"next ".concat(t),i)),c.consoleGroupEnd()})):i&&(c.consoleLog(m({},r,t),"".concat(o," the ").concat(a," object itself changed but it's values are all equal."),"props"===a?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(D)),c.consoleLog("prev ".concat(a,":"),f.prev," !== ",f.next,":next ".concat(a)))}function k(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,c=e.nextState,s=e.nextHook,u=e.reason,p=e.options;if(function(e,t,r){return!(x||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===O.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===O.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===O.different})))}(u,t,p)){p.consoleGroup("%c".concat(r),"color: ".concat(p.titleColor,";"));var l="Re-rendered because";u.propsDifferences&&(S({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:u.propsDifferences,values:{prev:o,next:f},options:p}),l="And because"),u.stateDifferences&&S({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:u.stateDifferences,values:{prev:a,next:c},options:p}),u.hookDifferences&&S({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:u.hookDifferences,values:{prev:i,next:s},hookName:n,options:p}),u.propsDifferences||u.stateDifferences||u.hookDifferences||p.consoleLog(m({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(D)),p.consoleGroupEnd()}}var N=function(){};function j(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=console.group,n=console.groupEnd;return t.collapseGroups?r=console.groupCollapsed:t.onlyLogs&&(r=console.log,n=N),h({include:null,exclude:null,notifier:t.notifier||((e=t.hasOwnProperty("hotReloadBufferMs")?t.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(x=!0,setTimeout(function(){x=!1},e))}),k),onlyLogs:!1,consoleLog:console.log,consoleGroup:r,consoleGroupEnd:n,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},t)}function P(e){return e.displayName||e.name||e.type&&P(e.type)||(o(e)?e:void 0)}var T="undefined"!=typeof Element,C="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,L=function(e){return e.$$typeof===C};function H(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==O.different}function Y(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return H(t,r,n,o,O.different);if(l(t)&&l(r)){var a=t.length;if(a!==r.length)return H(t,r,n,o,O.different);for(var d=!0,m=a;0!=m--;)e(t[m],r[m],n,"".concat(o,"[").concat(m,"]"))||(d=!1);return H(t,r,n,o,d?O.deepEquals:O.different)}if(u(t)&&u(r))return t.getTime()===r.getTime()?H(t,r,n,o,O.date):H(t,r,n,o,O.different);if(s(t)&&s(r))return t.toString()===r.toString()?H(t,r,n,o,O.regex):H(t,r,n,o,O.different);if(T&&t instanceof Element&&r instanceof Element)return H(t,r,n,o,O.different);if(L(t)&&L(r))return t.type===r.type?H(t,r,n,o,O.reactElement):H(t,r,n,o,O.different);if(c(t)&&c(r))return t.name===r.name?H(t,r,n,o,O.function):H(t,r,n,o,O.different);if(p(t)&&p(r)){var h=f(t),y=h.length;if(y!==f(r).length)return H(t,r,n,o,O.different);for(var v=y;0!=v--;)if(!i(r,h[v]))return H(t,r,n,o,O.different);for(var g=!0,b=y;0!=b--;){var _=h[b];e(t[_],r[_],n,"".concat(o,".").concat(_))||(g=!1)}return H(t,r,n,o,g?O.deepEquals:O.different)}return H(t,r,n,o,O.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var A={};function I(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return Y(e,t);var n=e||A,o=t||A,i=Object.keys(h({},n,o));return a(i,function(e,t){var r=Y(n[t],o[t],t);return r&&(e=[].concat(_(e),_(r))),e},[])}function V(e,t,r,n,o,a){return{propsDifferences:I(e,n),stateDifferences:I(t,o),hookDifferences:I(r,a,{shallow:!1})}}function U(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,c=e.nextState,s=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:i,nextProps:f,nextState:c,nextHook:s,options:e.options,reason:V(o,a,i,f,c,s)}}function F(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var M="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function W(e,t,r,o){var a=function(r){function n(t,r){var o,a,i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),a=this,i=y(n).call(this,t,r),(o=!i||"object"!=typeof i&&"function"!=typeof i?g(a):i).render&&!e.prototype.render){var f=o.render;o.render=function(){return n.prototype.render.apply(g(o)),f()}}return o}var a,i,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(n,e),a=n,(i=[{key:"render",value:function(){return this._prevProps&&o.notifier(U({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:o})),this._prevProps=this.props,this._prevState=this.state,b(y(n.prototype),"render",this)&&b(y(n.prototype),"render",this).call(this)}}])&&d(a.prototype,i),f&&d(a,f),n}();return a.displayName=t,n(a,e),a}function q(e,t,o,a,i){return t.$$typeof===M?function(e,t,o,a){function i(r){var n=o.useRef(),i=n.current;if(n.current=r,i){var f=U({Component:e,displayName:t,prevProps:i,nextProps:r,options:a});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&a.notifier(f)}return e.type(r)}var f=o.memo(i),c=r(e,Object.keys(f));return i.displayName=t,n(i,c),f.displayName=t,n(f,e),f}(t,o,a,i):t.prototype&&t.prototype.isReactComponent?W(t,o,0,i):function(e,t,r,o){function a(n){var a=r.useRef(),i=a.current;if(a.current=n,i){var f=U({Component:e,displayName:t,prevProps:i,nextProps:n,options:o});f.reason.propsDifferences&&o.notifier(f)}return e(n)}return a.displayName=t,n(a,e),a}(t,o,a,i)}var G={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};export default function(r,n){var o,a=j(n),i=r.createElement,f=r.createFactory,c=new WeakMap;if(r.createElement=function(e){for(var t=("function"==typeof e||e.$$typeof===M)&&F(e,P(e),a),n=arguments.length,o=new Array(n>1?n-1:0),f=1;f<n;f++)o[f-1]=arguments[f];if(!t)return i.apply(r,[e].concat(o));var s=e&&e.whyDidYouRender&&e.whyDidYouRender.customName||P(e),u=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=q(0,t,r,n,o);return e.set(t,a),a}(c,e,s,r,a);return i.apply(r,[u].concat(o))},Object.assign(r.createElement,i),r.createFactory=function(e){var t=r.createElement.bind(null,e);return t.type=e,t},Object.assign(r.createFactory,f),a.trackHooks){var s=e(G,function(e,n){return function(){var i=o[n];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var f=i.apply(void 0,arguments);return e&&function(e,r,n,o,a){var i=r.path,f=n,c=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,s=P(c);if(!F(c,s,a))return f;var u=o.useRef(),p=u.current;if(u.current=f,p){var l=U({Component:c,displayName:s,hookName:e,prevHook:i?t(p,i):p,nextHook:i?t(f,i):f,options:a});l.reason.hookDifferences&&a.notifier(l)}u.current}(n,!0===e?{}:e,f,r,a),f}});Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){o=e},get:function(){return h({},o,s)}})}return r.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(r,{createElement:i,createFactory:f}),c=null,Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:o}),delete r.__REVERT_WHY_DID_YOU_RENDER__},r}
import e from"lodash/mapValues";import t from"lodash/get";import r from"lodash/omit";import n from"lodash/defaults";import o from"lodash/isString";import a from"lodash/reduce";import i from"lodash/has";import f from"lodash/keys";import c from"lodash/isFunction";import s from"lodash/isRegExp";import u from"lodash/isDate";import p from"lodash/isPlainObject";import l from"lodash/isArray";function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){m(e,t,r[t])})}return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,r){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function _(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var E,O={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},D="http://bit.ly/wdyr02",R="http://bit.ly/wdyr3",w=(m(E={},O.different,"different objects."),m(E,O.deepEquals,"different objects that are equal by value."),m(E,O.date,"different date objects with the same value."),m(E,O.regex,"different regular expressions with the same value."),m(E,O.reactElement,"different React elements with the same displayName."),m(E,O.function,"different functions with the same name."),E),k=!1;function x(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,a=e.diffObjType,i=e.differences,f=e.values,c=e.options;i&&i.length>0?(c.consoleLog(m({},r,t),"".concat(o," of ").concat(a," changes:")),i.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,i=e.nextValue;c.consoleGroup("%c".concat("hook"===a?"hook ".concat(n," "):"".concat(a,"."),"%c").concat(t,"%c"),"color:".concat(c.diffNameColor,";"),"color:".concat(c.diffPathColor,";"),"color:default;"),c.consoleLog("".concat(w[r]," (more info at ").concat(n?R:D,")")),c.consoleLog(m({},"prev ".concat(t),o),"!==",m({},"next ".concat(t),i)),c.consoleGroupEnd()})):i&&(c.consoleLog(m({},r,t),"".concat(o," the ").concat(a," object itself changed but it's values are all equal."),"props"===a?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(D)),c.consoleLog("prev ".concat(a,":"),f.prev," !== ",f.next,":next ".concat(a)))}function S(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,c=e.nextState,s=e.nextHook,u=e.reason,p=e.options;if(function(e,t,r){return!(k||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===O.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===O.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===O.different})))}(u,t,p)){p.consoleGroup("%c".concat(r),"color: ".concat(p.titleColor,";"));var l="Re-rendered because";u.propsDifferences&&(x({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:u.propsDifferences,values:{prev:o,next:f},options:p}),l="And because"),u.stateDifferences&&x({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:u.stateDifferences,values:{prev:a,next:c},options:p}),u.hookDifferences&&x({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:u.hookDifferences,values:{prev:i,next:s},hookName:n,options:p}),u.propsDifferences||u.stateDifferences||u.hookDifferences||p.consoleLog(m({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(D)),p.consoleGroupEnd()}}var N=function(){};function j(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=console.group,n=console.groupEnd;return t.collapseGroups?r=console.groupCollapsed:t.onlyLogs&&(r=console.log,n=N),h({include:null,exclude:null,notifier:t.notifier||((e=t.hasOwnProperty("hotReloadBufferMs")?t.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(k=!0,setTimeout(function(){k=!1},e))}),S),onlyLogs:!1,consoleLog:console.log,consoleGroup:r,consoleGroupEnd:n,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},t)}function P(e){return e.displayName||e.name||e.type&&P(e.type)||(o(e)?e:void 0)}var T="undefined"!=typeof Element,C="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,L=function(e){return e.$$typeof===C};function H(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==O.different}function Y(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return H(t,r,n,o,O.different);if(l(t)&&l(r)){var a=t.length;if(a!==r.length)return H(t,r,n,o,O.different);for(var d=!0,m=a;0!=m--;)e(t[m],r[m],n,"".concat(o,"[").concat(m,"]"))||(d=!1);return H(t,r,n,o,d?O.deepEquals:O.different)}if(u(t)&&u(r))return t.getTime()===r.getTime()?H(t,r,n,o,O.date):H(t,r,n,o,O.different);if(s(t)&&s(r))return t.toString()===r.toString()?H(t,r,n,o,O.regex):H(t,r,n,o,O.different);if(T&&t instanceof Element&&r instanceof Element)return H(t,r,n,o,O.different);if(L(t)&&L(r))return t.type===r.type?H(t,r,n,o,O.reactElement):H(t,r,n,o,O.different);if(c(t)&&c(r))return t.name===r.name?H(t,r,n,o,O.function):H(t,r,n,o,O.different);if(p(t)&&p(r)){var h=f(t),y=h.length;if(y!==f(r).length)return H(t,r,n,o,O.different);for(var v=y;0!=v--;)if(!i(r,h[v]))return H(t,r,n,o,O.different);for(var g=!0,b=y;0!=b--;){var _=h[b];e(t[_],r[_],n,"".concat(o,".").concat(_))||(g=!1)}return H(t,r,n,o,g?O.deepEquals:O.different)}return H(t,r,n,o,O.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var A={};function I(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return Y(e,t);var n=e||A,o=t||A,i=Object.keys(h({},n,o));return a(i,function(e,t){var r=Y(n[t],o[t],t);return r&&(e=[].concat(_(e),_(r))),e},[])}function V(e,t,r,n,o,a){return{propsDifferences:I(e,n),stateDifferences:I(t,o),hookDifferences:I(r,a,{shallow:!1})}}function U(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,c=e.nextState,s=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:i,nextProps:f,nextState:c,nextHook:s,options:e.options,reason:V(o,a,i,f,c,s)}}function F(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var M="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function W(e,t,r,o){var a=function(r){function n(t,r){var o,a,i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),a=this,i=y(n).call(this,t,r),(o=!i||"object"!=typeof i&&"function"!=typeof i?g(a):i).render&&!e.prototype.render){var f=o.render;o.render=function(){return n.prototype.render.apply(g(o)),f()}}return o}var a,i,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(n,e),a=n,(i=[{key:"render",value:function(){return this._prevProps&&o.notifier(U({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:o})),this._prevProps=this.props,this._prevState=this.state,b(y(n.prototype),"render",this)&&b(y(n.prototype),"render",this).call(this)}}])&&d(a.prototype,i),f&&d(a,f),n}();return a.displayName=t,n(a,e),a}function q(e,t,o,a,i){return t.$$typeof===M?function(e,t,o,a){function i(r){var n=o.useRef(),i=n.current;if(n.current=r,i){var f=U({Component:e,displayName:t,prevProps:i,nextProps:r,options:a});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&a.notifier(f)}return e.type(r)}var f=o.memo(i),c=r(e,Object.keys(f));return i.displayName=t,n(i,c),f.displayName=t,n(f,e),f}(t,o,a,i):t.prototype&&t.prototype.isReactComponent?W(t,o,0,i):function(e,t,r,o){function a(n){var a=r.useRef(),i=a.current;if(a.current=n,i){var f=U({Component:e,displayName:t,prevProps:i,nextProps:n,options:o});f.reason.propsDifferences&&o.notifier(f)}return e(n)}return a.displayName=t,n(a,e),a}(t,o,a,i)}var G={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};export default function(r,n){var o,a=j(n),i=r.createElement,f=r.createFactory,c=new WeakMap;if(r.createElement=function(e){for(var t=("function"==typeof e||e.$$typeof===M)&&F(e,P(e),a),n=arguments.length,o=new Array(n>1?n-1:0),f=1;f<n;f++)o[f-1]=arguments[f];if(!t)return i.apply(r,[e].concat(o));var s=e&&e.whyDidYouRender&&e.whyDidYouRender.customName||P(e),u=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=q(0,t,r,n,o);return e.set(t,a),a}(c,e,s,r,a);return i.apply(r,[u].concat(o))},Object.assign(r.createElement,i),r.createFactory=function(e){var t=r.createElement.bind(null,e);return t.type=e,t},Object.assign(r.createFactory,f),a.trackHooks){var s=e(G,function(e,n){return function(){var i=o[n];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var f=i.apply(void 0,arguments);return e&&function(e,r,n,o,a){var i=r.path,f=n,c=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,s=P(c);if(!F(c,s,a))return f;var u=o.useRef(),p=u.current;if(u.current=f,p){var l=U({Component:c,displayName:s,hookName:e,prevHook:i?t(p,i):p,nextHook:i?t(f,i):f,options:a});l.reason.hookDifferences&&a.notifier(l)}u.current}(n,!0===e?{}:e,f,r,a),f}});Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){o=e&&h({},e,e.origHooks)},get:function(){return o&&h({},o,s,{origHooks:o})}})}return r.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(r,{createElement:i,createFactory:f}),c=null,Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:o}),delete r.__REVERT_WHY_DID_YOU_RENDER__},r}
//# sourceMappingURL=whyDidYouRender.min.js.map
/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -713,7 +713,9 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

Object.defineProperty(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher, 'current', {
set: function set(_origHooks) {
origHooks = _origHooks;
set: function set(newHooks) {
origHooks = newHooks && _objectSpread({}, newHooks, newHooks.origHooks);
},
get: function get() {
return _objectSpread({}, origHooks, patchedHooks);
return origHooks && _objectSpread({}, origHooks, patchedHooks, {
origHooks: origHooks
});
}

@@ -720,0 +722,0 @@ });

/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -8,3 +8,3 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _mapValues=_interopDefault(require("lodash/mapValues")),_get=_interopDefault(require("lodash/get")),_omit=_interopDefault(require("lodash/omit")),_defaults=_interopDefault(require("lodash/defaults")),_isString=_interopDefault(require("lodash/isString")),_reduce=_interopDefault(require("lodash/reduce")),_has=_interopDefault(require("lodash/has")),_keys=_interopDefault(require("lodash/keys")),_isFunction=_interopDefault(require("lodash/isFunction")),_isRegExp=_interopDefault(require("lodash/isRegExp")),_isDate=_interopDefault(require("lodash/isDate")),_isPlainObject=_interopDefault(require("lodash/isPlainObject")),_isArray=_interopDefault(require("lodash/isArray"));function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_defineProperty(e,t,r[t])})}return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var _diffTypesDescription,diffTypes={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},moreInfoUrl="http://bit.ly/wdyr02",moreInfoHooksUrl="http://bit.ly/wdyr3",diffTypesDescriptions=(_defineProperty(_diffTypesDescription={},diffTypes.different,"different objects."),_defineProperty(_diffTypesDescription,diffTypes.deepEquals,"different objects that are equal by value."),_defineProperty(_diffTypesDescription,diffTypes.date,"different date objects with the same value."),_defineProperty(_diffTypesDescription,diffTypes.regex,"different regular expressions with the same value."),_defineProperty(_diffTypesDescription,diffTypes.reactElement,"different React elements with the same displayName."),_defineProperty(_diffTypesDescription,diffTypes.function,"different functions with the same name."),_diffTypesDescription),inHotReload=!1;function shouldLog(e,t,r){return!inHotReload&&(!!r.logOnDifferentValues||(!(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)||!(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===diffTypes.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===diffTypes.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===diffTypes.different}))))}function logDifference(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,i=e.diffObjType,a=e.differences,f=e.values,s=e.options;a&&a.length>0?(s.consoleLog(_defineProperty({},r,t),"".concat(o," of ").concat(i," changes:")),a.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,a=e.nextValue;s.consoleGroup("%c".concat("hook"===i?"hook ".concat(n," "):"".concat(i,"."),"%c").concat(t,"%c"),"color:".concat(s.diffNameColor,";"),"color:".concat(s.diffPathColor,";"),"color:default;"),s.consoleLog("".concat(diffTypesDescriptions[r]," (more info at ").concat(n?moreInfoHooksUrl:moreInfoUrl,")")),s.consoleLog(_defineProperty({},"prev ".concat(t),o),"!==",_defineProperty({},"next ".concat(t),a)),s.consoleGroupEnd()})):a&&(s.consoleLog(_defineProperty({},r,t),"".concat(o," the ").concat(i," object itself changed but it's values are all equal."),"props"===i?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(moreInfoUrl)),s.consoleLog("prev ".concat(i,":"),f.prev," !== ",f.next,":next ".concat(i)))}function defaultNotifier(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook,p=e.reason,u=e.options;if(shouldLog(p,t,u)){u.consoleGroup("%c".concat(r),"color: ".concat(u.titleColor,";"));var l="Re-rendered because";p.propsDifferences&&(logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:p.propsDifferences,values:{prev:o,next:f},options:u}),l="And because"),p.stateDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:p.stateDifferences,values:{prev:i,next:s},options:u}),p.hookDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:p.hookDifferences,values:{prev:a,next:c},hookName:n,options:u}),p.propsDifferences||p.stateDifferences||p.hookDifferences||u.consoleLog(_defineProperty({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(moreInfoUrl)),u.consoleGroupEnd()}}function createDefaultNotifier(e){return e&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(inHotReload=!0,setTimeout(function(){inHotReload=!1},e))}),defaultNotifier}var emptyFn=function(){};function normalizeOptions(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=console.group,r=console.groupEnd;return e.collapseGroups?t=console.groupCollapsed:e.onlyLogs&&(t=console.log,r=emptyFn),_objectSpread({include:null,exclude:null,notifier:e.notifier||createDefaultNotifier(e.hasOwnProperty("hotReloadBufferMs")?e.hotReloadBufferMs:500),onlyLogs:!1,consoleLog:console.log,consoleGroup:t,consoleGroupEnd:r,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},e)}function getDisplayName(e){return e.displayName||e.name||e.type&&getDisplayName(e.type)||(_isString(e)?e:void 0)}var hasElementType="undefined"!=typeof Element,hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,isReactElement=function(e){return e.$$typeof===REACT_ELEMENT_TYPE};function trackDiff(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==diffTypes.different}function accumulateDeepEqualDiffs(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e===t)return!0;if(!e||!t)return trackDiff(e,t,r,n,diffTypes.different);if(_isArray(e)&&_isArray(t)){var o=e.length;if(o!==t.length)return trackDiff(e,t,r,n,diffTypes.different);for(var i=!0,a=o;0!=a--;)accumulateDeepEqualDiffs(e[a],t[a],r,"".concat(n,"[").concat(a,"]"))||(i=!1);return trackDiff(e,t,r,n,i?diffTypes.deepEquals:diffTypes.different)}if(_isDate(e)&&_isDate(t))return e.getTime()===t.getTime()?trackDiff(e,t,r,n,diffTypes.date):trackDiff(e,t,r,n,diffTypes.different);if(_isRegExp(e)&&_isRegExp(t))return e.toString()===t.toString()?trackDiff(e,t,r,n,diffTypes.regex):trackDiff(e,t,r,n,diffTypes.different);if(hasElementType&&e instanceof Element&&t instanceof Element)return trackDiff(e,t,r,n,diffTypes.different);if(isReactElement(e)&&isReactElement(t))return e.type===t.type?trackDiff(e,t,r,n,diffTypes.reactElement):trackDiff(e,t,r,n,diffTypes.different);if(_isFunction(e)&&_isFunction(t))return e.name===t.name?trackDiff(e,t,r,n,diffTypes.function):trackDiff(e,t,r,n,diffTypes.different);if(_isPlainObject(e)&&_isPlainObject(t)){var f=_keys(e),s=f.length;if(s!==_keys(t).length)return trackDiff(e,t,r,n,diffTypes.different);for(var c=s;0!=c--;)if(!_has(t,f[c]))return trackDiff(e,t,r,n,diffTypes.different);for(var p=!0,u=s;0!=u--;){var l=f[u];accumulateDeepEqualDiffs(e[l],t[l],r,"".concat(n,".").concat(l))||(p=!1)}return trackDiff(e,t,r,n,p?diffTypes.deepEquals:diffTypes.different)}return trackDiff(e,t,r,n,diffTypes.different)}function calculateDeepEqualDiffs(e,t,r){try{var n=[];return accumulateDeepEqualDiffs(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var emptyObject={};function findObjectsDifferences(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return calculateDeepEqualDiffs(e,t);var n=e||emptyObject,o=t||emptyObject,i=Object.keys(_objectSpread({},n,o));return _reduce(i,function(e,t){var r=calculateDeepEqualDiffs(n[t],o[t],t);return r&&(e=[].concat(_toConsumableArray(e),_toConsumableArray(r))),e},[])}function getUpdateReason(e,t,r,n,o,i){return{propsDifferences:findObjectsDifferences(e,n),stateDifferences:findObjectsDifferences(t,o),hookDifferences:findObjectsDifferences(r,i,{shallow:!1})}}function getUpdateInfo(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:i,prevHook:a,nextProps:f,nextState:s,nextHook:c,options:e.options,reason:getUpdateReason(o,i,a,f,s,c)}}function shouldInclude(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}function shouldExclude(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}function shouldTrack(e,t,r){return!shouldExclude(t,r)&&!(!e.whyDidYouRender&&!shouldInclude(t,r))}var hasSymbol$1="function"==typeof Symbol&&Symbol.for,REACT_MEMO_TYPE=hasSymbol$1?Symbol.for("react.memo"):60115;function patchClassComponent(e,t,r,n){class o extends e{constructor(t,r){var n;if(super(t,r),n=this,this.render&&!e.prototype.render){var i=this.render;this.render=function(){return o.prototype.render.apply(n),i()}}}render(){return this._prevProps&&n.notifier(getUpdateInfo({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:n})),this._prevProps=this.props,this._prevState=this.state,super.render&&super.render()}}return o.displayName=t,_defaults(o,e),o}function patchFunctionalComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&n.notifier(f)}return e(o)}return o.displayName=t,_defaults(o,e),o}function patchMemoComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&n.notifier(f)}return e.type(o)}var i=r.memo(o),a=_omit(e,Object.keys(i));return o.displayName=t,_defaults(o,a),i.displayName=t,_defaults(i,e),i}function trackHookChanges(e,t,r,n,o){var i=t.path,a=r,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,s=getDisplayName(f);if(!shouldTrack(f,s,o))return a;var c=n.useRef(),p=c.current;if(c.current=a,p){var u=getUpdateInfo({Component:f,displayName:s,hookName:e,prevHook:i?_get(p,i):p,nextHook:i?_get(a,i):a,options:o});u.reason.hookDifferences&&o.notifier(u)}return c.current}function createPatchedComponent(e,t,r,n,o){return t.$$typeof===REACT_MEMO_TYPE?patchMemoComponent(t,r,n,o):t.prototype&&t.prototype.isReactComponent?patchClassComponent(t,r,n,o):patchFunctionalComponent(t,r,n,o)}function getPatchedComponent(e,t,r,n,o){if(e.has(t))return e.get(t);var i=createPatchedComponent(e,t,r,n,o);return e.set(t,i),i}var hooksConfig={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};function whyDidYouRender(e,t){var r,n=normalizeOptions(t),o=e.createElement,i=e.createFactory,a=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===REACT_MEMO_TYPE)&&shouldTrack(t,getDisplayName(t),n),i=arguments.length,f=new Array(i>1?i-1:0),s=1;s<i;s++)f[s-1]=arguments[s];if(!r)return o.apply(e,[t].concat(f));var c=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||getDisplayName(t),p=getPatchedComponent(a,t,c,e,n);return o.apply(e,[p].concat(f))},Object.assign(e.createElement,o),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,i),n.trackHooks){var f=_mapValues(hooksConfig,function(t,o){return function(){var i=r[o];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var a=i.apply(void 0,arguments);return t&&trackHookChanges(o,!0===t?{}:t,a,e,n),a}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){r=e},get:function(){return _objectSpread({},r,f)}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:o,createFactory:i}),a=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:r}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}module.exports=whyDidYouRender;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _mapValues=_interopDefault(require("lodash/mapValues")),_get=_interopDefault(require("lodash/get")),_omit=_interopDefault(require("lodash/omit")),_defaults=_interopDefault(require("lodash/defaults")),_isString=_interopDefault(require("lodash/isString")),_reduce=_interopDefault(require("lodash/reduce")),_has=_interopDefault(require("lodash/has")),_keys=_interopDefault(require("lodash/keys")),_isFunction=_interopDefault(require("lodash/isFunction")),_isRegExp=_interopDefault(require("lodash/isRegExp")),_isDate=_interopDefault(require("lodash/isDate")),_isPlainObject=_interopDefault(require("lodash/isPlainObject")),_isArray=_interopDefault(require("lodash/isArray"));function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_defineProperty(e,t,r[t])})}return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var _diffTypesDescription,diffTypes={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},moreInfoUrl="http://bit.ly/wdyr02",moreInfoHooksUrl="http://bit.ly/wdyr3",diffTypesDescriptions=(_defineProperty(_diffTypesDescription={},diffTypes.different,"different objects."),_defineProperty(_diffTypesDescription,diffTypes.deepEquals,"different objects that are equal by value."),_defineProperty(_diffTypesDescription,diffTypes.date,"different date objects with the same value."),_defineProperty(_diffTypesDescription,diffTypes.regex,"different regular expressions with the same value."),_defineProperty(_diffTypesDescription,diffTypes.reactElement,"different React elements with the same displayName."),_defineProperty(_diffTypesDescription,diffTypes.function,"different functions with the same name."),_diffTypesDescription),inHotReload=!1;function shouldLog(e,t,r){return!inHotReload&&(!!r.logOnDifferentValues||(!(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)||!(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===diffTypes.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===diffTypes.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===diffTypes.different}))))}function logDifference(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,i=e.diffObjType,a=e.differences,f=e.values,s=e.options;a&&a.length>0?(s.consoleLog(_defineProperty({},r,t),"".concat(o," of ").concat(i," changes:")),a.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,a=e.nextValue;s.consoleGroup("%c".concat("hook"===i?"hook ".concat(n," "):"".concat(i,"."),"%c").concat(t,"%c"),"color:".concat(s.diffNameColor,";"),"color:".concat(s.diffPathColor,";"),"color:default;"),s.consoleLog("".concat(diffTypesDescriptions[r]," (more info at ").concat(n?moreInfoHooksUrl:moreInfoUrl,")")),s.consoleLog(_defineProperty({},"prev ".concat(t),o),"!==",_defineProperty({},"next ".concat(t),a)),s.consoleGroupEnd()})):a&&(s.consoleLog(_defineProperty({},r,t),"".concat(o," the ").concat(i," object itself changed but it's values are all equal."),"props"===i?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(moreInfoUrl)),s.consoleLog("prev ".concat(i,":"),f.prev," !== ",f.next,":next ".concat(i)))}function defaultNotifier(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook,p=e.reason,u=e.options;if(shouldLog(p,t,u)){u.consoleGroup("%c".concat(r),"color: ".concat(u.titleColor,";"));var l="Re-rendered because";p.propsDifferences&&(logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:p.propsDifferences,values:{prev:o,next:f},options:u}),l="And because"),p.stateDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:p.stateDifferences,values:{prev:i,next:s},options:u}),p.hookDifferences&&logDifference({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:p.hookDifferences,values:{prev:a,next:c},hookName:n,options:u}),p.propsDifferences||p.stateDifferences||p.hookDifferences||u.consoleLog(_defineProperty({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(moreInfoUrl)),u.consoleGroupEnd()}}function createDefaultNotifier(e){return e&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(inHotReload=!0,setTimeout(function(){inHotReload=!1},e))}),defaultNotifier}var emptyFn=function(){};function normalizeOptions(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=console.group,r=console.groupEnd;return e.collapseGroups?t=console.groupCollapsed:e.onlyLogs&&(t=console.log,r=emptyFn),_objectSpread({include:null,exclude:null,notifier:e.notifier||createDefaultNotifier(e.hasOwnProperty("hotReloadBufferMs")?e.hotReloadBufferMs:500),onlyLogs:!1,consoleLog:console.log,consoleGroup:t,consoleGroupEnd:r,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},e)}function getDisplayName(e){return e.displayName||e.name||e.type&&getDisplayName(e.type)||(_isString(e)?e:void 0)}var hasElementType="undefined"!=typeof Element,hasSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,isReactElement=function(e){return e.$$typeof===REACT_ELEMENT_TYPE};function trackDiff(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==diffTypes.different}function accumulateDeepEqualDiffs(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e===t)return!0;if(!e||!t)return trackDiff(e,t,r,n,diffTypes.different);if(_isArray(e)&&_isArray(t)){var o=e.length;if(o!==t.length)return trackDiff(e,t,r,n,diffTypes.different);for(var i=!0,a=o;0!=a--;)accumulateDeepEqualDiffs(e[a],t[a],r,"".concat(n,"[").concat(a,"]"))||(i=!1);return trackDiff(e,t,r,n,i?diffTypes.deepEquals:diffTypes.different)}if(_isDate(e)&&_isDate(t))return e.getTime()===t.getTime()?trackDiff(e,t,r,n,diffTypes.date):trackDiff(e,t,r,n,diffTypes.different);if(_isRegExp(e)&&_isRegExp(t))return e.toString()===t.toString()?trackDiff(e,t,r,n,diffTypes.regex):trackDiff(e,t,r,n,diffTypes.different);if(hasElementType&&e instanceof Element&&t instanceof Element)return trackDiff(e,t,r,n,diffTypes.different);if(isReactElement(e)&&isReactElement(t))return e.type===t.type?trackDiff(e,t,r,n,diffTypes.reactElement):trackDiff(e,t,r,n,diffTypes.different);if(_isFunction(e)&&_isFunction(t))return e.name===t.name?trackDiff(e,t,r,n,diffTypes.function):trackDiff(e,t,r,n,diffTypes.different);if(_isPlainObject(e)&&_isPlainObject(t)){var f=_keys(e),s=f.length;if(s!==_keys(t).length)return trackDiff(e,t,r,n,diffTypes.different);for(var c=s;0!=c--;)if(!_has(t,f[c]))return trackDiff(e,t,r,n,diffTypes.different);for(var p=!0,u=s;0!=u--;){var l=f[u];accumulateDeepEqualDiffs(e[l],t[l],r,"".concat(n,".").concat(l))||(p=!1)}return trackDiff(e,t,r,n,p?diffTypes.deepEquals:diffTypes.different)}return trackDiff(e,t,r,n,diffTypes.different)}function calculateDeepEqualDiffs(e,t,r){try{var n=[];return accumulateDeepEqualDiffs(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var emptyObject={};function findObjectsDifferences(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return calculateDeepEqualDiffs(e,t);var n=e||emptyObject,o=t||emptyObject,i=Object.keys(_objectSpread({},n,o));return _reduce(i,function(e,t){var r=calculateDeepEqualDiffs(n[t],o[t],t);return r&&(e=[].concat(_toConsumableArray(e),_toConsumableArray(r))),e},[])}function getUpdateReason(e,t,r,n,o,i){return{propsDifferences:findObjectsDifferences(e,n),stateDifferences:findObjectsDifferences(t,o),hookDifferences:findObjectsDifferences(r,i,{shallow:!1})}}function getUpdateInfo(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,i=e.prevState,a=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:i,prevHook:a,nextProps:f,nextState:s,nextHook:c,options:e.options,reason:getUpdateReason(o,i,a,f,s,c)}}function shouldInclude(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}function shouldExclude(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}function shouldTrack(e,t,r){return!shouldExclude(t,r)&&!(!e.whyDidYouRender&&!shouldInclude(t,r))}var hasSymbol$1="function"==typeof Symbol&&Symbol.for,REACT_MEMO_TYPE=hasSymbol$1?Symbol.for("react.memo"):60115;function patchClassComponent(e,t,r,n){class o extends e{constructor(t,r){var n;if(super(t,r),n=this,this.render&&!e.prototype.render){var i=this.render;this.render=function(){return o.prototype.render.apply(n),i()}}}render(){return this._prevProps&&n.notifier(getUpdateInfo({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:n})),this._prevProps=this.props,this._prevState=this.state,super.render&&super.render()}}return o.displayName=t,_defaults(o,e),o}function patchFunctionalComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&n.notifier(f)}return e(o)}return o.displayName=t,_defaults(o,e),o}function patchMemoComponent(e,t,r,n){function o(o){var i=r.useRef(),a=i.current;if(i.current=o,a){var f=getUpdateInfo({Component:e,displayName:t,prevProps:a,nextProps:o,options:n});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&n.notifier(f)}return e.type(o)}var i=r.memo(o),a=_omit(e,Object.keys(i));return o.displayName=t,_defaults(o,a),i.displayName=t,_defaults(i,e),i}function trackHookChanges(e,t,r,n,o){var i=t.path,a=r,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,s=getDisplayName(f);if(!shouldTrack(f,s,o))return a;var c=n.useRef(),p=c.current;if(c.current=a,p){var u=getUpdateInfo({Component:f,displayName:s,hookName:e,prevHook:i?_get(p,i):p,nextHook:i?_get(a,i):a,options:o});u.reason.hookDifferences&&o.notifier(u)}return c.current}function createPatchedComponent(e,t,r,n,o){return t.$$typeof===REACT_MEMO_TYPE?patchMemoComponent(t,r,n,o):t.prototype&&t.prototype.isReactComponent?patchClassComponent(t,r,n,o):patchFunctionalComponent(t,r,n,o)}function getPatchedComponent(e,t,r,n,o){if(e.has(t))return e.get(t);var i=createPatchedComponent(e,t,r,n,o);return e.set(t,i),i}var hooksConfig={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};function whyDidYouRender(e,t){var r,n=normalizeOptions(t),o=e.createElement,i=e.createFactory,a=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===REACT_MEMO_TYPE)&&shouldTrack(t,getDisplayName(t),n),i=arguments.length,f=new Array(i>1?i-1:0),s=1;s<i;s++)f[s-1]=arguments[s];if(!r)return o.apply(e,[t].concat(f));var c=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||getDisplayName(t),p=getPatchedComponent(a,t,c,e,n);return o.apply(e,[p].concat(f))},Object.assign(e.createElement,o),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,i),n.trackHooks){var f=_mapValues(hooksConfig,function(t,o){return function(){var i=r[o];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var a=i.apply(void 0,arguments);return t&&trackHookChanges(o,!0===t?{}:t,a,e,n),a}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){r=e&&_objectSpread({},e,e.origHooks)},get:function(){return r&&_objectSpread({},r,f,{origHooks:r})}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:o,createFactory:i}),a=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:r}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}module.exports=whyDidYouRender;
//# sourceMappingURL=whyDidYouRender.min.js.map
/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -709,7 +709,9 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

Object.defineProperty(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher, 'current', {
set: function set(_origHooks) {
origHooks = _origHooks;
set: function set(newHooks) {
origHooks = newHooks && _objectSpread({}, newHooks, newHooks.origHooks);
},
get: function get() {
return _objectSpread({}, origHooks, patchedHooks);
return origHooks && _objectSpread({}, origHooks, patchedHooks, {
origHooks: origHooks
});
}

@@ -716,0 +718,0 @@ });

/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -8,3 +8,3 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

import e from"lodash/mapValues";import t from"lodash/get";import r from"lodash/omit";import n from"lodash/defaults";import o from"lodash/isString";import a from"lodash/reduce";import i from"lodash/has";import f from"lodash/keys";import s from"lodash/isFunction";import c from"lodash/isRegExp";import u from"lodash/isDate";import p from"lodash/isPlainObject";import l from"lodash/isArray";function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){d(e,t,r[t])})}return e}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var y,v={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},g="http://bit.ly/wdyr02",_="http://bit.ly/wdyr3",b=(d(y={},v.different,"different objects."),d(y,v.deepEquals,"different objects that are equal by value."),d(y,v.date,"different date objects with the same value."),d(y,v.regex,"different regular expressions with the same value."),d(y,v.reactElement,"different React elements with the same displayName."),d(y,v.function,"different functions with the same name."),y),E=!1;function D(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,a=e.diffObjType,i=e.differences,f=e.values,s=e.options;i&&i.length>0?(s.consoleLog(d({},r,t),"".concat(o," of ").concat(a," changes:")),i.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,i=e.nextValue;s.consoleGroup("%c".concat("hook"===a?"hook ".concat(n," "):"".concat(a,"."),"%c").concat(t,"%c"),"color:".concat(s.diffNameColor,";"),"color:".concat(s.diffPathColor,";"),"color:default;"),s.consoleLog("".concat(b[r]," (more info at ").concat(n?_:g,")")),s.consoleLog(d({},"prev ".concat(t),o),"!==",d({},"next ".concat(t),i)),s.consoleGroupEnd()})):i&&(s.consoleLog(d({},r,t),"".concat(o," the ").concat(a," object itself changed but it's values are all equal."),"props"===a?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(g)),s.consoleLog("prev ".concat(a,":"),f.prev," !== ",f.next,":next ".concat(a)))}function O(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook,u=e.reason,p=e.options;if(function(e,t,r){return!(E||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===v.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===v.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===v.different})))}(u,t,p)){p.consoleGroup("%c".concat(r),"color: ".concat(p.titleColor,";"));var l="Re-rendered because";u.propsDifferences&&(D({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:u.propsDifferences,values:{prev:o,next:f},options:p}),l="And because"),u.stateDifferences&&D({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:u.stateDifferences,values:{prev:a,next:s},options:p}),u.hookDifferences&&D({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:u.hookDifferences,values:{prev:i,next:c},hookName:n,options:p}),u.propsDifferences||u.stateDifferences||u.hookDifferences||p.consoleLog(d({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(g)),p.consoleGroupEnd()}}var R=function(){};function x(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=console.group,n=console.groupEnd;return t.collapseGroups?r=console.groupCollapsed:t.onlyLogs&&(r=console.log,n=R),m({include:null,exclude:null,notifier:t.notifier||((e=t.hasOwnProperty("hotReloadBufferMs")?t.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(E=!0,setTimeout(function(){E=!1},e))}),O),onlyLogs:!1,consoleLog:console.log,consoleGroup:r,consoleGroupEnd:n,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},t)}function S(e){return e.displayName||e.name||e.type&&S(e.type)||(o(e)?e:void 0)}var N="undefined"!=typeof Element,k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,w=function(e){return e.$$typeof===k};function T(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==v.different}function C(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return T(t,r,n,o,v.different);if(l(t)&&l(r)){var a=t.length;if(a!==r.length)return T(t,r,n,o,v.different);for(var d=!0,m=a;0!=m--;)e(t[m],r[m],n,"".concat(o,"[").concat(m,"]"))||(d=!1);return T(t,r,n,o,d?v.deepEquals:v.different)}if(u(t)&&u(r))return t.getTime()===r.getTime()?T(t,r,n,o,v.date):T(t,r,n,o,v.different);if(c(t)&&c(r))return t.toString()===r.toString()?T(t,r,n,o,v.regex):T(t,r,n,o,v.different);if(N&&t instanceof Element&&r instanceof Element)return T(t,r,n,o,v.different);if(w(t)&&w(r))return t.type===r.type?T(t,r,n,o,v.reactElement):T(t,r,n,o,v.different);if(s(t)&&s(r))return t.name===r.name?T(t,r,n,o,v.function):T(t,r,n,o,v.different);if(p(t)&&p(r)){var h=f(t),y=h.length;if(y!==f(r).length)return T(t,r,n,o,v.different);for(var g=y;0!=g--;)if(!i(r,h[g]))return T(t,r,n,o,v.different);for(var _=!0,b=y;0!=b--;){var E=h[b];e(t[E],r[E],n,"".concat(o,".").concat(E))||(_=!1)}return T(t,r,n,o,_?v.deepEquals:v.different)}return T(t,r,n,o,v.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var j={};function P(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return C(e,t);var n=e||j,o=t||j,i=Object.keys(m({},n,o));return a(i,function(e,t){var r=C(n[t],o[t],t);return r&&(e=[].concat(h(e),h(r))),e},[])}function L(e,t,r,n,o,a){return{propsDifferences:P(e,n),stateDifferences:P(t,o),hookDifferences:P(r,a,{shallow:!1})}}function H(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:i,nextProps:f,nextState:s,nextHook:c,options:e.options,reason:L(o,a,i,f,s,c)}}function Y(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var A="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function I(e,t,o,a,i){return t.$$typeof===A?function(e,t,o,a){function i(r){var n=o.useRef(),i=n.current;if(n.current=r,i){var f=H({Component:e,displayName:t,prevProps:i,nextProps:r,options:a});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&a.notifier(f)}return e.type(r)}var f=o.memo(i),s=r(e,Object.keys(f));return i.displayName=t,n(i,s),f.displayName=t,n(f,e),f}(t,o,a,i):t.prototype&&t.prototype.isReactComponent?function(e,t,r,o){class a extends e{constructor(t,r){var n;if(super(t,r),n=this,this.render&&!e.prototype.render){var o=this.render;this.render=function(){return a.prototype.render.apply(n),o()}}}render(){return this._prevProps&&o.notifier(H({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:o})),this._prevProps=this.props,this._prevState=this.state,super.render&&super.render()}}return a.displayName=t,n(a,e),a}(t,o,0,i):function(e,t,r,o){function a(n){var a=r.useRef(),i=a.current;if(a.current=n,i){var f=H({Component:e,displayName:t,prevProps:i,nextProps:n,options:o});f.reason.propsDifferences&&o.notifier(f)}return e(n)}return a.displayName=t,n(a,e),a}(t,o,a,i)}var V={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};export default function(r,n){var o,a=x(n),i=r.createElement,f=r.createFactory,s=new WeakMap;if(r.createElement=function(e){for(var t=("function"==typeof e||e.$$typeof===A)&&Y(e,S(e),a),n=arguments.length,o=new Array(n>1?n-1:0),f=1;f<n;f++)o[f-1]=arguments[f];if(!t)return i.apply(r,[e].concat(o));var c=e&&e.whyDidYouRender&&e.whyDidYouRender.customName||S(e),u=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=I(0,t,r,n,o);return e.set(t,a),a}(s,e,c,r,a);return i.apply(r,[u].concat(o))},Object.assign(r.createElement,i),r.createFactory=function(e){var t=r.createElement.bind(null,e);return t.type=e,t},Object.assign(r.createFactory,f),a.trackHooks){var c=e(V,function(e,n){return function(){var i=o[n];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var f=i.apply(void 0,arguments);return e&&function(e,r,n,o,a){var i=r.path,f=n,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,c=S(s);if(!Y(s,c,a))return f;var u=o.useRef(),p=u.current;if(u.current=f,p){var l=H({Component:s,displayName:c,hookName:e,prevHook:i?t(p,i):p,nextHook:i?t(f,i):f,options:a});l.reason.hookDifferences&&a.notifier(l)}u.current}(n,!0===e?{}:e,f,r,a),f}});Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){o=e},get:function(){return m({},o,c)}})}return r.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(r,{createElement:i,createFactory:f}),s=null,Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:o}),delete r.__REVERT_WHY_DID_YOU_RENDER__},r}
import e from"lodash/mapValues";import t from"lodash/get";import r from"lodash/omit";import n from"lodash/defaults";import o from"lodash/isString";import a from"lodash/reduce";import i from"lodash/has";import f from"lodash/keys";import s from"lodash/isFunction";import c from"lodash/isRegExp";import u from"lodash/isDate";import p from"lodash/isPlainObject";import l from"lodash/isArray";function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){d(e,t,r[t])})}return e}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var y,v={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},g="http://bit.ly/wdyr02",_="http://bit.ly/wdyr3",b=(d(y={},v.different,"different objects."),d(y,v.deepEquals,"different objects that are equal by value."),d(y,v.date,"different date objects with the same value."),d(y,v.regex,"different regular expressions with the same value."),d(y,v.reactElement,"different React elements with the same displayName."),d(y,v.function,"different functions with the same name."),y),E=!1;function D(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prefixMessage,a=e.diffObjType,i=e.differences,f=e.values,s=e.options;i&&i.length>0?(s.consoleLog(d({},r,t),"".concat(o," of ").concat(a," changes:")),i.forEach(function(e){var t=e.pathString,r=e.diffType,o=e.prevValue,i=e.nextValue;s.consoleGroup("%c".concat("hook"===a?"hook ".concat(n," "):"".concat(a,"."),"%c").concat(t,"%c"),"color:".concat(s.diffNameColor,";"),"color:".concat(s.diffPathColor,";"),"color:default;"),s.consoleLog("".concat(b[r]," (more info at ").concat(n?_:g,")")),s.consoleLog(d({},"prev ".concat(t),o),"!==",d({},"next ".concat(t),i)),s.consoleGroupEnd()})):i&&(s.consoleLog(d({},r,t),"".concat(o," the ").concat(a," object itself changed but it's values are all equal."),"props"===a?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(g)),s.consoleLog("prev ".concat(a,":"),f.prev," !== ",f.next,":next ".concat(a)))}function O(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook,u=e.reason,p=e.options;if(function(e,t,r){return!(E||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===v.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===v.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===v.different})))}(u,t,p)){p.consoleGroup("%c".concat(r),"color: ".concat(p.titleColor,";"));var l="Re-rendered because";u.propsDifferences&&(D({Component:t,displayName:r,prefixMessage:l,diffObjType:"props",differences:u.propsDifferences,values:{prev:o,next:f},options:p}),l="And because"),u.stateDifferences&&D({Component:t,displayName:r,prefixMessage:l,diffObjType:"state",differences:u.stateDifferences,values:{prev:a,next:s},options:p}),u.hookDifferences&&D({Component:t,displayName:r,prefixMessage:l,diffObjType:"hook",differences:u.hookDifferences,values:{prev:i,next:c},hookName:n,options:p}),u.propsDifferences||u.stateDifferences||u.hookDifferences||p.consoleLog(d({},r,t),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(g)),p.consoleGroupEnd()}}var R=function(){};function x(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=console.group,n=console.groupEnd;return t.collapseGroups?r=console.groupCollapsed:t.onlyLogs&&(r=console.log,n=R),m({include:null,exclude:null,notifier:t.notifier||((e=t.hasOwnProperty("hotReloadBufferMs")?t.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(E=!0,setTimeout(function(){E=!1},e))}),O),onlyLogs:!1,consoleLog:console.log,consoleGroup:r,consoleGroupEnd:n,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},t)}function k(e){return e.displayName||e.name||e.type&&k(e.type)||(o(e)?e:void 0)}var S="undefined"!=typeof Element,N="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,w=function(e){return e.$$typeof===N};function T(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==v.different}function C(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return T(t,r,n,o,v.different);if(l(t)&&l(r)){var a=t.length;if(a!==r.length)return T(t,r,n,o,v.different);for(var d=!0,m=a;0!=m--;)e(t[m],r[m],n,"".concat(o,"[").concat(m,"]"))||(d=!1);return T(t,r,n,o,d?v.deepEquals:v.different)}if(u(t)&&u(r))return t.getTime()===r.getTime()?T(t,r,n,o,v.date):T(t,r,n,o,v.different);if(c(t)&&c(r))return t.toString()===r.toString()?T(t,r,n,o,v.regex):T(t,r,n,o,v.different);if(S&&t instanceof Element&&r instanceof Element)return T(t,r,n,o,v.different);if(w(t)&&w(r))return t.type===r.type?T(t,r,n,o,v.reactElement):T(t,r,n,o,v.different);if(s(t)&&s(r))return t.name===r.name?T(t,r,n,o,v.function):T(t,r,n,o,v.different);if(p(t)&&p(r)){var h=f(t),y=h.length;if(y!==f(r).length)return T(t,r,n,o,v.different);for(var g=y;0!=g--;)if(!i(r,h[g]))return T(t,r,n,o,v.different);for(var _=!0,b=y;0!=b--;){var E=h[b];e(t[E],r[E],n,"".concat(o,".").concat(E))||(_=!1)}return T(t,r,n,o,_?v.deepEquals:v.different)}return T(t,r,n,o,v.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var j={};function P(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===r||r))return C(e,t);var n=e||j,o=t||j,i=Object.keys(m({},n,o));return a(i,function(e,t){var r=C(n[t],o[t],t);return r&&(e=[].concat(h(e),h(r))),e},[])}function L(e,t,r,n,o,a){return{propsDifferences:P(e,n),stateDifferences:P(t,o),hookDifferences:P(r,a,{shallow:!1})}}function H(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,i=e.prevHook,f=e.nextProps,s=e.nextState,c=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:i,nextProps:f,nextState:s,nextHook:c,options:e.options,reason:L(o,a,i,f,s,c)}}function Y(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var A="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function I(e,t,o,a,i){return t.$$typeof===A?function(e,t,o,a){function i(r){var n=o.useRef(),i=n.current;if(n.current=r,i){var f=H({Component:e,displayName:t,prevProps:i,nextProps:r,options:a});f.reason.propsDifferences&&f.reason.propsDifferences.length>0&&a.notifier(f)}return e.type(r)}var f=o.memo(i),s=r(e,Object.keys(f));return i.displayName=t,n(i,s),f.displayName=t,n(f,e),f}(t,o,a,i):t.prototype&&t.prototype.isReactComponent?function(e,t,r,o){class a extends e{constructor(t,r){var n;if(super(t,r),n=this,this.render&&!e.prototype.render){var o=this.render;this.render=function(){return a.prototype.render.apply(n),o()}}}render(){return this._prevProps&&o.notifier(H({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:o})),this._prevProps=this.props,this._prevState=this.state,super.render&&super.render()}}return a.displayName=t,n(a,e),a}(t,o,0,i):function(e,t,r,o){function a(n){var a=r.useRef(),i=a.current;if(a.current=n,i){var f=H({Component:e,displayName:t,prevProps:i,nextProps:n,options:o});f.reason.propsDifferences&&o.notifier(f)}return e(n)}return a.displayName=t,n(a,e),a}(t,o,a,i)}var V={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};export default function(r,n){var o,a=x(n),i=r.createElement,f=r.createFactory,s=new WeakMap;if(r.createElement=function(e){for(var t=("function"==typeof e||e.$$typeof===A)&&Y(e,k(e),a),n=arguments.length,o=new Array(n>1?n-1:0),f=1;f<n;f++)o[f-1]=arguments[f];if(!t)return i.apply(r,[e].concat(o));var c=e&&e.whyDidYouRender&&e.whyDidYouRender.customName||k(e),u=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=I(0,t,r,n,o);return e.set(t,a),a}(s,e,c,r,a);return i.apply(r,[u].concat(o))},Object.assign(r.createElement,i),r.createFactory=function(e){var t=r.createElement.bind(null,e);return t.type=e,t},Object.assign(r.createFactory,f),a.trackHooks){var c=e(V,function(e,n){return function(){var i=o[n];if(!i)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var f=i.apply(void 0,arguments);return e&&function(e,r,n,o,a){var i=r.path,f=n,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,c=k(s);if(!Y(s,c,a))return f;var u=o.useRef(),p=u.current;if(u.current=f,p){var l=H({Component:s,displayName:c,hookName:e,prevHook:i?t(p,i):p,nextHook:i?t(f,i):f,options:a});l.reason.hookDifferences&&a.notifier(l)}u.current}(n,!0===e?{}:e,f,r,a),f}});Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){o=e&&m({},e,e.origHooks)},get:function(){return o&&m({},o,c,{origHooks:o})}})}return r.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(r,{createElement:i,createFactory:f}),s=null,Object.defineProperty(r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:o}),delete r.__REVERT_WHY_DID_YOU_RENDER__},r}
//# sourceMappingURL=whyDidYouRender.min.js.map
/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -8,3 +8,3 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).whyDidYouRender=t()}(this,function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(r){e(t,r,n[r])})}return t}function r(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t){return e(t={exports:{}},t.exports),t.exports}var a="object"==typeof n&&n&&n.Object===Object&&n,c="object"==typeof self&&self&&self.Object===Object&&self,i=a||c||Function("return this")(),u=i.Symbol,f=Object.prototype,s=f.hasOwnProperty,l=f.toString,p=u?u.toStringTag:void 0;var v=function(e){var t=s.call(e,p),r=e[p];try{e[p]=void 0;var n=!0}catch(e){}var o=l.call(e);return n&&(t?e[p]=r:delete e[p]),o},d=Object.prototype.toString;var y=function(e){return d.call(e)},h="[object Null]",b="[object Undefined]",g=u?u.toStringTag:void 0;var j=function(e){return null==e?void 0===e?b:h:g&&g in Object(e)?v(e):y(e)};var _=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},m="[object AsyncFunction]",O="[object Function]",w="[object GeneratorFunction]",E="[object Proxy]";var S,x=function(e){if(!_(e))return!1;var t=j(e);return t==O||t==w||t==m||t==E},A=i["__core-js_shared__"],D=(S=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"";var k=function(e){return!!D&&D in e},P=Function.prototype.toString;var R=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""},N=/^\[object .+?Constructor\]$/,T=Function.prototype,C=Object.prototype,I=T.toString,z=C.hasOwnProperty,L=RegExp("^"+I.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(e){return!(!_(e)||k(e))&&(x(e)?L:N).test(R(e))};var F=function(e,t){return null==e?void 0:e[t]};var M=function(e,t){var r=F(e,t);return U(r)?r:void 0},B=function(){try{var e=M(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var $=function(e,t,r){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var V=function(e){return function(t,r,n){for(var o=-1,a=Object(t),c=n(t),i=c.length;i--;){var u=c[e?i:++o];if(!1===r(a[u],u,a))break}return t}}();var H=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var Y=function(e){return null!=e&&"object"==typeof e},W="[object Arguments]";var q=function(e){return Y(e)&&j(e)==W},G=Object.prototype,J=G.hasOwnProperty,K=G.propertyIsEnumerable,Q=q(function(){return arguments}())?q:function(e){return Y(e)&&J.call(e,"callee")&&!K.call(e,"callee")},X=Array.isArray;var Z=function(){return!1},ee=o(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?i.Buffer:void 0,a=(o?o.isBuffer:void 0)||Z;e.exports=a}),te=9007199254740991,re=/^(?:0|[1-9]\d*)$/;var ne=function(e,t){var r=typeof e;return!!(t=null==t?te:t)&&("number"==r||"symbol"!=r&&re.test(e))&&e>-1&&e%1==0&&e<t},oe=9007199254740991;var ae=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=oe},ce={};ce["[object Float32Array]"]=ce["[object Float64Array]"]=ce["[object Int8Array]"]=ce["[object Int16Array]"]=ce["[object Int32Array]"]=ce["[object Uint8Array]"]=ce["[object Uint8ClampedArray]"]=ce["[object Uint16Array]"]=ce["[object Uint32Array]"]=!0,ce["[object Arguments]"]=ce["[object Array]"]=ce["[object ArrayBuffer]"]=ce["[object Boolean]"]=ce["[object DataView]"]=ce["[object Date]"]=ce["[object Error]"]=ce["[object Function]"]=ce["[object Map]"]=ce["[object Number]"]=ce["[object Object]"]=ce["[object RegExp]"]=ce["[object Set]"]=ce["[object String]"]=ce["[object WeakMap]"]=!1;var ie=function(e){return Y(e)&&ae(e.length)&&!!ce[j(e)]};var ue=function(e){return function(t){return e(t)}},fe=o(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&a.process,c=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c}),se=fe&&fe.isTypedArray,le=se?ue(se):ie,pe=Object.prototype.hasOwnProperty;var ve=function(e,t){var r=X(e),n=!r&&Q(e),o=!r&&!n&&ee(e),a=!r&&!n&&!o&&le(e),c=r||n||o||a,i=c?H(e.length,String):[],u=i.length;for(var f in e)!t&&!pe.call(e,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||a&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||ne(f,u))||i.push(f);return i},de=Object.prototype;var ye=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||de)};var he=function(e,t){return function(r){return e(t(r))}},be=he(Object.keys,Object),ge=Object.prototype.hasOwnProperty;var je=function(e){if(!ye(e))return be(e);var t=[];for(var r in Object(e))ge.call(e,r)&&"constructor"!=r&&t.push(r);return t};var _e=function(e){return null!=e&&ae(e.length)&&!x(e)};var me=function(e){return _e(e)?ve(e):je(e)};var Oe=function(e,t){return e&&V(e,t,me)};var we=function(){this.__data__=[],this.size=0};var Ee=function(e,t){return e===t||e!=e&&t!=t};var Se=function(e,t){for(var r=e.length;r--;)if(Ee(e[r][0],t))return r;return-1},xe=Array.prototype.splice;var Ae=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():xe.call(t,r,1),--this.size,0))};var De=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]};var ke=function(e){return Se(this.__data__,e)>-1};var Pe=function(e,t){var r=this.__data__,n=Se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Re.prototype.clear=we,Re.prototype.delete=Ae,Re.prototype.get=De,Re.prototype.has=ke,Re.prototype.set=Pe;var Ne=Re;var Te=function(){this.__data__=new Ne,this.size=0};var Ce=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Ie=function(e){return this.__data__.get(e)};var ze=function(e){return this.__data__.has(e)},Le=M(i,"Map"),Ue=M(Object,"create");var Fe=function(){this.__data__=Ue?Ue(null):{},this.size=0};var Me=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Be="__lodash_hash_undefined__",$e=Object.prototype.hasOwnProperty;var Ve=function(e){var t=this.__data__;if(Ue){var r=t[e];return r===Be?void 0:r}return $e.call(t,e)?t[e]:void 0},He=Object.prototype.hasOwnProperty;var Ye=function(e){var t=this.__data__;return Ue?void 0!==t[e]:He.call(t,e)},We="__lodash_hash_undefined__";var qe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ue&&void 0===t?We:t,this};function Ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ge.prototype.clear=Fe,Ge.prototype.delete=Me,Ge.prototype.get=Ve,Ge.prototype.has=Ye,Ge.prototype.set=qe;var Je=Ge;var Ke=function(){this.size=0,this.__data__={hash:new Je,map:new(Le||Ne),string:new Je}};var Qe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Xe=function(e,t){var r=e.__data__;return Qe(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ze=function(e){var t=Xe(this,e).delete(e);return this.size-=t?1:0,t};var et=function(e){return Xe(this,e).get(e)};var tt=function(e){return Xe(this,e).has(e)};var rt=function(e,t){var r=Xe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function nt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nt.prototype.clear=Ke,nt.prototype.delete=Ze,nt.prototype.get=et,nt.prototype.has=tt,nt.prototype.set=rt;var ot=nt,at=200;var ct=function(e,t){var r=this.__data__;if(r instanceof Ne){var n=r.__data__;if(!Le||n.length<at-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ot(n)}return r.set(e,t),this.size=r.size,this};function it(e){var t=this.__data__=new Ne(e);this.size=t.size}it.prototype.clear=Te,it.prototype.delete=Ce,it.prototype.get=Ie,it.prototype.has=ze,it.prototype.set=ct;var ut=it,ft="__lodash_hash_undefined__";var st=function(e){return this.__data__.set(e,ft),this};var lt=function(e){return this.__data__.has(e)};function pt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ot;++t<r;)this.add(e[t])}pt.prototype.add=pt.prototype.push=st,pt.prototype.has=lt;var vt=pt;var dt=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var yt=function(e,t){return e.has(t)},ht=1,bt=2;var gt=function(e,t,r,n,o,a){var c=r&ht,i=e.length,u=t.length;if(i!=u&&!(c&&u>i))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var s=-1,l=!0,p=r&bt?new vt:void 0;for(a.set(e,t),a.set(t,e);++s<i;){var v=e[s],d=t[s];if(n)var y=c?n(d,v,s,t,e,a):n(v,d,s,e,t,a);if(void 0!==y){if(y)continue;l=!1;break}if(p){if(!dt(t,function(e,t){if(!yt(p,t)&&(v===e||o(v,e,r,n,a)))return p.push(t)})){l=!1;break}}else if(v!==d&&!o(v,d,r,n,a)){l=!1;break}}return a.delete(e),a.delete(t),l},jt=i.Uint8Array;var _t=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r};var mt=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},Ot=1,wt=2,Et="[object Boolean]",St="[object Date]",xt="[object Error]",At="[object Map]",Dt="[object Number]",kt="[object RegExp]",Pt="[object Set]",Rt="[object String]",Nt="[object Symbol]",Tt="[object ArrayBuffer]",Ct="[object DataView]",It=u?u.prototype:void 0,zt=It?It.valueOf:void 0;var Lt=function(e,t,r,n,o,a,c){switch(r){case Ct:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Tt:return!(e.byteLength!=t.byteLength||!a(new jt(e),new jt(t)));case Et:case St:case Dt:return Ee(+e,+t);case xt:return e.name==t.name&&e.message==t.message;case kt:case Rt:return e==t+"";case At:var i=_t;case Pt:var u=n&Ot;if(i||(i=mt),e.size!=t.size&&!u)return!1;var f=c.get(e);if(f)return f==t;n|=wt,c.set(e,t);var s=gt(i(e),i(t),n,o,a,c);return c.delete(e),s;case Nt:if(zt)return zt.call(e)==zt.call(t)}return!1};var Ut=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};var Ft=function(e,t,r){var n=t(e);return X(e)?n:Ut(n,r(e))};var Mt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var c=e[r];t(c,r,e)&&(a[o++]=c)}return a};var Bt=function(){return[]},$t=Object.prototype.propertyIsEnumerable,Vt=Object.getOwnPropertySymbols,Ht=Vt?function(e){return null==e?[]:(e=Object(e),Mt(Vt(e),function(t){return $t.call(e,t)}))}:Bt;var Yt=function(e){return Ft(e,me,Ht)},Wt=1,qt=Object.prototype.hasOwnProperty;var Gt=function(e,t,r,n,o,a){var c=r&Wt,i=Yt(e),u=i.length;if(u!=Yt(t).length&&!c)return!1;for(var f=u;f--;){var s=i[f];if(!(c?s in t:qt.call(t,s)))return!1}var l=a.get(e);if(l&&a.get(t))return l==t;var p=!0;a.set(e,t),a.set(t,e);for(var v=c;++f<u;){var d=e[s=i[f]],y=t[s];if(n)var h=c?n(y,d,s,t,e,a):n(d,y,s,e,t,a);if(!(void 0===h?d===y||o(d,y,r,n,a):h)){p=!1;break}v||(v="constructor"==s)}if(p&&!v){var b=e.constructor,g=t.constructor;b!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(p=!1)}return a.delete(e),a.delete(t),p},Jt=M(i,"DataView"),Kt=M(i,"Promise"),Qt=M(i,"Set"),Xt=M(i,"WeakMap"),Zt=R(Jt),er=R(Le),tr=R(Kt),rr=R(Qt),nr=R(Xt),or=j;(Jt&&"[object DataView]"!=or(new Jt(new ArrayBuffer(1)))||Le&&"[object Map]"!=or(new Le)||Kt&&"[object Promise]"!=or(Kt.resolve())||Qt&&"[object Set]"!=or(new Qt)||Xt&&"[object WeakMap]"!=or(new Xt))&&(or=function(e){var t=j(e),r="[object Object]"==t?e.constructor:void 0,n=r?R(r):"";if(n)switch(n){case Zt:return"[object DataView]";case er:return"[object Map]";case tr:return"[object Promise]";case rr:return"[object Set]";case nr:return"[object WeakMap]"}return t});var ar=or,cr=1,ir="[object Arguments]",ur="[object Array]",fr="[object Object]",sr=Object.prototype.hasOwnProperty;var lr=function(e,t,r,n,o,a){var c=X(e),i=X(t),u=c?ur:ar(e),f=i?ur:ar(t),s=(u=u==ir?fr:u)==fr,l=(f=f==ir?fr:f)==fr,p=u==f;if(p&&ee(e)){if(!ee(t))return!1;c=!0,s=!1}if(p&&!s)return a||(a=new ut),c||le(e)?gt(e,t,r,n,o,a):Lt(e,t,u,r,n,o,a);if(!(r&cr)){var v=s&&sr.call(e,"__wrapped__"),d=l&&sr.call(t,"__wrapped__");if(v||d){var y=v?e.value():e,h=d?t.value():t;return a||(a=new ut),o(y,h,r,n,a)}}return!!p&&(a||(a=new ut),Gt(e,t,r,n,o,a))};var pr=function e(t,r,n,o,a){return t===r||(null==t||null==r||!Y(t)&&!Y(r)?t!=t&&r!=r:lr(t,r,n,o,e,a))},vr=1,dr=2;var yr=function(e,t,r,n){var o=r.length,a=o,c=!n;if(null==e)return!a;for(e=Object(e);o--;){var i=r[o];if(c&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var u=(i=r[o])[0],f=e[u],s=i[1];if(c&&i[2]){if(void 0===f&&!(u in e))return!1}else{var l=new ut;if(n)var p=n(f,s,u,e,t,l);if(!(void 0===p?pr(s,f,vr|dr,n,l):p))return!1}}return!0};var hr=function(e){return e==e&&!_(e)};var br=function(e){for(var t=me(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,hr(o)]}return t};var gr=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}};var jr=function(e){var t=br(e);return 1==t.length&&t[0][2]?gr(t[0][0],t[0][1]):function(r){return r===e||yr(r,e,t)}},_r="[object Symbol]";var mr=function(e){return"symbol"==typeof e||Y(e)&&j(e)==_r},Or=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wr=/^\w*$/;var Er=function(e,t){if(X(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!mr(e))||wr.test(e)||!Or.test(e)||null!=t&&e in Object(t)},Sr="Expected a function";function xr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Sr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var c=e.apply(this,n);return r.cache=a.set(o,c)||a,c};return r.cache=new(xr.Cache||ot),r}xr.Cache=ot;var Ar=xr,Dr=500;var kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pr=/\\(\\)?/g,Rr=function(e){var t=Ar(e,function(e){return r.size===Dr&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kr,function(e,r,n,o){t.push(n?o.replace(Pr,"$1"):r||e)}),t});var Nr=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Tr=1/0,Cr=u?u.prototype:void 0,Ir=Cr?Cr.toString:void 0;var zr=function e(t){if("string"==typeof t)return t;if(X(t))return Nr(t,e)+"";if(mr(t))return Ir?Ir.call(t):"";var r=t+"";return"0"==r&&1/t==-Tr?"-0":r};var Lr=function(e){return null==e?"":zr(e)};var Ur=function(e,t){return X(e)?e:Er(e,t)?[e]:Rr(Lr(e))},Fr=1/0;var Mr=function(e){if("string"==typeof e||mr(e))return e;var t=e+"";return"0"==t&&1/e==-Fr?"-0":t};var Br=function(e,t){for(var r=0,n=(t=Ur(t,e)).length;null!=e&&r<n;)e=e[Mr(t[r++])];return r&&r==n?e:void 0};var $r=function(e,t,r){var n=null==e?void 0:Br(e,t);return void 0===n?r:n};var Vr=function(e,t){return null!=e&&t in Object(e)};var Hr=function(e,t,r){for(var n=-1,o=(t=Ur(t,e)).length,a=!1;++n<o;){var c=Mr(t[n]);if(!(a=null!=e&&r(e,c)))break;e=e[c]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&ae(o)&&ne(c,o)&&(X(e)||Q(e))};var Yr=function(e,t){return null!=e&&Hr(e,t,Vr)},Wr=1,qr=2;var Gr=function(e,t){return Er(e)&&hr(t)?gr(Mr(e),t):function(r){var n=$r(r,e);return void 0===n&&n===t?Yr(r,e):pr(t,n,Wr|qr)}};var Jr=function(e){return e};var Kr=function(e){return function(t){return null==t?void 0:t[e]}};var Qr=function(e){return function(t){return Br(t,e)}};var Xr=function(e){return Er(e)?Kr(Mr(e)):Qr(e)};var Zr=function(e){return"function"==typeof e?e:null==e?Jr:"object"==typeof e?X(e)?Gr(e[0],e[1]):jr(e):Xr(e)};var en=function(e,t){var r={};return t=Zr(t,3),Oe(e,function(e,n,o){$(r,n,t(e,n,o))}),r};var tn=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},rn=Object.prototype.hasOwnProperty;var nn=function(e,t,r){var n=e[t];rn.call(e,t)&&Ee(n,r)&&(void 0!==r||t in e)||$(e,t,r)};var on=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,c=t.length;++a<c;){var i=t[a],u=n?n(r[i],e[i],i,r,e):void 0;void 0===u&&(u=e[i]),o?$(r,i,u):nn(r,i,u)}return r};var an=function(e,t){return e&&on(t,me(t),e)};var cn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},un=Object.prototype.hasOwnProperty;var fn=function(e){if(!_(e))return cn(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&un.call(e,n))&&r.push(n);return r};var sn=function(e){return _e(e)?ve(e,!0):fn(e)};var ln=function(e,t){return e&&on(t,sn(t),e)},pn=o(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?i.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}});var vn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var dn=function(e,t){return on(e,Ht(e),t)},yn=he(Object.getPrototypeOf,Object),hn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ut(t,Ht(e)),e=yn(e);return t}:Bt;var bn=function(e,t){return on(e,hn(e),t)};var gn=function(e){return Ft(e,sn,hn)},jn=Object.prototype.hasOwnProperty;var _n=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&jn.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var mn=function(e){var t=new e.constructor(e.byteLength);return new jt(t).set(new jt(e)),t};var On=function(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},wn=/\w*$/;var En=function(e){var t=new e.constructor(e.source,wn.exec(e));return t.lastIndex=e.lastIndex,t},Sn=u?u.prototype:void 0,xn=Sn?Sn.valueOf:void 0;var An=function(e){return xn?Object(xn.call(e)):{}};var Dn=function(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},kn="[object Boolean]",Pn="[object Date]",Rn="[object Map]",Nn="[object Number]",Tn="[object RegExp]",Cn="[object Set]",In="[object String]",zn="[object Symbol]",Ln="[object ArrayBuffer]",Un="[object DataView]",Fn="[object Float32Array]",Mn="[object Float64Array]",Bn="[object Int8Array]",$n="[object Int16Array]",Vn="[object Int32Array]",Hn="[object Uint8Array]",Yn="[object Uint8ClampedArray]",Wn="[object Uint16Array]",qn="[object Uint32Array]";var Gn=function(e,t,r){var n=e.constructor;switch(t){case Ln:return mn(e);case kn:case Pn:return new n(+e);case Un:return On(e,r);case Fn:case Mn:case Bn:case $n:case Vn:case Hn:case Yn:case Wn:case qn:return Dn(e,r);case Rn:return new n;case Nn:case In:return new n(e);case Tn:return En(e);case Cn:return new n;case zn:return An(e)}},Jn=Object.create,Kn=function(){function e(){}return function(t){if(!_(t))return{};if(Jn)return Jn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Qn=function(e){return"function"!=typeof e.constructor||ye(e)?{}:Kn(yn(e))},Xn="[object Map]";var Zn=function(e){return Y(e)&&ar(e)==Xn},eo=fe&&fe.isMap,to=eo?ue(eo):Zn,ro="[object Set]";var no=function(e){return Y(e)&&ar(e)==ro},oo=fe&&fe.isSet,ao=oo?ue(oo):no,co=1,io=2,uo=4,fo="[object Arguments]",so="[object Function]",lo="[object GeneratorFunction]",po="[object Object]",vo={};vo[fo]=vo["[object Array]"]=vo["[object ArrayBuffer]"]=vo["[object DataView]"]=vo["[object Boolean]"]=vo["[object Date]"]=vo["[object Float32Array]"]=vo["[object Float64Array]"]=vo["[object Int8Array]"]=vo["[object Int16Array]"]=vo["[object Int32Array]"]=vo["[object Map]"]=vo["[object Number]"]=vo[po]=vo["[object RegExp]"]=vo["[object Set]"]=vo["[object String]"]=vo["[object Symbol]"]=vo["[object Uint8Array]"]=vo["[object Uint8ClampedArray]"]=vo["[object Uint16Array]"]=vo["[object Uint32Array]"]=!0,vo["[object Error]"]=vo[so]=vo["[object WeakMap]"]=!1;var yo=function e(t,r,n,o,a,c){var i,u=r&co,f=r&io,s=r&uo;if(n&&(i=a?n(t,o,a,c):n(t)),void 0!==i)return i;if(!_(t))return t;var l=X(t);if(l){if(i=_n(t),!u)return vn(t,i)}else{var p=ar(t),v=p==so||p==lo;if(ee(t))return pn(t,u);if(p==po||p==fo||v&&!a){if(i=f||v?{}:Qn(t),!u)return f?bn(t,ln(i,t)):dn(t,an(i,t))}else{if(!vo[p])return a?t:{};i=Gn(t,p,u)}}c||(c=new ut);var d=c.get(t);if(d)return d;if(c.set(t,i),ao(t))return t.forEach(function(o){i.add(e(o,r,n,o,t,c))}),i;if(to(t))return t.forEach(function(o,a){i.set(a,e(o,r,n,a,t,c))}),i;var y=s?f?gn:Yt:f?keysIn:me,h=l?void 0:y(t);return tn(h||t,function(o,a){h&&(o=t[a=o]),nn(i,a,e(o,r,n,a,t,c))}),i};var ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var bo=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a};var go=function(e,t){return t.length<2?e:Br(e,bo(t,0,-1))};var jo=function(e,t){return t=Ur(t,e),null==(e=go(e,t))||delete e[Mr(ho(t))]},_o="[object Object]",mo=Function.prototype,Oo=Object.prototype,wo=mo.toString,Eo=Oo.hasOwnProperty,So=wo.call(Object);var xo=function(e){if(!Y(e)||j(e)!=_o)return!1;var t=yn(e);if(null===t)return!0;var r=Eo.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&wo.call(r)==So};var Ao=function(e){return xo(e)?void 0:e},Do=u?u.isConcatSpreadable:void 0;var ko=function(e){return X(e)||Q(e)||!!(Do&&e&&e[Do])};var Po=function e(t,r,n,o,a){var c=-1,i=t.length;for(n||(n=ko),a||(a=[]);++c<i;){var u=t[c];r>0&&n(u)?r>1?e(u,r-1,n,o,a):Ut(a,u):o||(a[a.length]=u)}return a};var Ro=function(e){return null!=e&&e.length?Po(e,1):[]};var No=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},To=Math.max;var Co=function(e,t,r){return t=To(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=To(n.length-t,0),c=Array(a);++o<a;)c[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(c),No(e,this,i)}};var Io=function(e){return function(){return e}},zo=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:Io(t),writable:!0})}:Jr,Lo=800,Uo=16,Fo=Date.now;var Mo=function(e){var t=0,r=0;return function(){var n=Fo(),o=Uo-(n-r);if(r=n,o>0){if(++t>=Lo)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(zo);var Bo=function(e){return Mo(Co(e,void 0,Ro),e+"")}(function(e,t){var r={};if(null==e)return r;var n=!1;t=Nr(t,function(t){return t=Ur(t,e),n||(n=t.length>1),t}),on(e,gn(e),r),n&&(r=yo(r,7,Ao));for(var o=t.length;o--;)jo(r,t[o]);return r});var $o=function(e,t){return Mo(Co(e,t,Jr),e+"")};var Vo,Ho=function(e,t,r){if(!_(r))return!1;var n=typeof t;return!!("number"==n?_e(r)&&ne(t,r.length):"string"==n&&t in r)&&Ee(r[t],e)},Yo=Object.prototype,Wo=Yo.hasOwnProperty,qo=$o(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&Ho(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],c=sn(a),i=-1,u=c.length;++i<u;){var f=c[i],s=e[f];(void 0===s||Ee(s,Yo[f])&&!Wo.call(e,f))&&(e[f]=a[f])}return e}),Go={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},Jo="http://bit.ly/wdyr02",Ko="http://bit.ly/wdyr3",Qo=(e(Vo={},Go.different,"different objects."),e(Vo,Go.deepEquals,"different objects that are equal by value."),e(Vo,Go.date,"different date objects with the same value."),e(Vo,Go.regex,"different regular expressions with the same value."),e(Vo,Go.reactElement,"different React elements with the same displayName."),e(Vo,Go.function,"different functions with the same name."),Vo),Xo=!1;function Zo(t){var r=t.Component,n=t.displayName,o=t.hookName,a=t.prefixMessage,c=t.diffObjType,i=t.differences,u=t.values,f=t.options;i&&i.length>0?(f.consoleLog(e({},n,r),"".concat(a," of ").concat(c," changes:")),i.forEach(function(t){var r=t.pathString,n=t.diffType,a=t.prevValue,i=t.nextValue;f.consoleGroup("%c".concat("hook"===c?"hook ".concat(o," "):"".concat(c,"."),"%c").concat(r,"%c"),"color:".concat(f.diffNameColor,";"),"color:".concat(f.diffPathColor,";"),"color:default;"),f.consoleLog("".concat(Qo[n]," (more info at ").concat(o?Ko:Jo,")")),f.consoleLog(e({},"prev ".concat(r),a),"!==",e({},"next ".concat(r),i)),f.consoleGroupEnd()})):i&&(f.consoleLog(e({},n,r),"".concat(a," the ").concat(c," object itself changed but it's values are all equal."),"props"===c?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(Jo)),f.consoleLog("prev ".concat(c,":"),u.prev," !== ",u.next,":next ".concat(c)))}function ea(t){var r=t.Component,n=t.displayName,o=t.hookName,a=t.prevProps,c=t.prevState,i=t.prevHook,u=t.nextProps,f=t.nextState,s=t.nextHook,l=t.reason,p=t.options;if(function(e,t,r){return!(Xo||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===Go.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===Go.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===Go.different})))}(l,r,p)){p.consoleGroup("%c".concat(n),"color: ".concat(p.titleColor,";"));var v="Re-rendered because";l.propsDifferences&&(Zo({Component:r,displayName:n,prefixMessage:v,diffObjType:"props",differences:l.propsDifferences,values:{prev:a,next:u},options:p}),v="And because"),l.stateDifferences&&Zo({Component:r,displayName:n,prefixMessage:v,diffObjType:"state",differences:l.stateDifferences,values:{prev:c,next:f},options:p}),l.hookDifferences&&Zo({Component:r,displayName:n,prefixMessage:v,diffObjType:"hook",differences:l.hookDifferences,values:{prev:i,next:s},hookName:o,options:p}),l.propsDifferences||l.stateDifferences||l.hookDifferences||p.consoleLog(e({},n,r),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(Jo)),p.consoleGroupEnd()}}var ta=function(){};function ra(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=console.group,o=console.groupEnd;return r.collapseGroups?n=console.groupCollapsed:r.onlyLogs&&(n=console.log,o=ta),t({include:null,exclude:null,notifier:r.notifier||((e=r.hasOwnProperty("hotReloadBufferMs")?r.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(Xo=!0,setTimeout(function(){Xo=!1},e))}),ea),onlyLogs:!1,consoleLog:console.log,consoleGroup:n,consoleGroupEnd:o,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},r)}var na="[object String]";var oa=function(e){return"string"==typeof e||!X(e)&&Y(e)&&j(e)==na};function aa(e){return e.displayName||e.name||e.type&&aa(e.type)||(oa(e)?e:void 0)}var ca=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var ia=function(e,t){return function(r,n){if(null==r)return r;if(!_e(r))return e(r,n);for(var o=r.length,a=t?o:-1,c=Object(r);(t?a--:++a<o)&&!1!==n(c[a],a,c););return r}}(Oe);var ua=function(e,t,r,n,o){return o(e,function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)}),r};var fa=function(e,t,r){var n=X(e)?ca:ua,o=arguments.length<3;return n(e,Zr(t,4),r,o,ia)},sa=Object.prototype.hasOwnProperty;var la=function(e,t){return null!=e&&sa.call(e,t)};var pa=function(e,t){return null!=e&&Hr(e,t,la)},va="[object RegExp]";var da=function(e){return Y(e)&&j(e)==va},ya=fe&&fe.isRegExp,ha=ya?ue(ya):da,ba="[object Date]";var ga=function(e){return Y(e)&&j(e)==ba},ja=fe&&fe.isDate,_a=ja?ue(ja):ga,ma="undefined"!=typeof Element,Oa="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,wa=function(e){return e.$$typeof===Oa};function Ea(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==Go.different}function Sa(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return Ea(t,r,n,o,Go.different);if(X(t)&&X(r)){var a=t.length;if(a!==r.length)return Ea(t,r,n,o,Go.different);for(var c=!0,i=a;0!=i--;)e(t[i],r[i],n,"".concat(o,"[").concat(i,"]"))||(c=!1);return Ea(t,r,n,o,c?Go.deepEquals:Go.different)}if(_a(t)&&_a(r))return t.getTime()===r.getTime()?Ea(t,r,n,o,Go.date):Ea(t,r,n,o,Go.different);if(ha(t)&&ha(r))return t.toString()===r.toString()?Ea(t,r,n,o,Go.regex):Ea(t,r,n,o,Go.different);if(ma&&t instanceof Element&&r instanceof Element)return Ea(t,r,n,o,Go.different);if(wa(t)&&wa(r))return t.type===r.type?Ea(t,r,n,o,Go.reactElement):Ea(t,r,n,o,Go.different);if(x(t)&&x(r))return t.name===r.name?Ea(t,r,n,o,Go.function):Ea(t,r,n,o,Go.different);if(xo(t)&&xo(r)){var u=me(t),f=u.length;if(f!==me(r).length)return Ea(t,r,n,o,Go.different);for(var s=f;0!=s--;)if(!pa(r,u[s]))return Ea(t,r,n,o,Go.different);for(var l=!0,p=f;0!=p--;){var v=u[p];e(t[v],r[v],n,"".concat(o,".").concat(v))||(l=!1)}return Ea(t,r,n,o,l?Go.deepEquals:Go.different)}return Ea(t,r,n,o,Go.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var xa={};function Aa(e,n){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===n)return!1;if(!(void 0===o||o))return Sa(e,n);var a=e||xa,c=n||xa,i=Object.keys(t({},a,c));return fa(i,function(e,t){var n=Sa(a[t],c[t],t);return n&&(e=[].concat(r(e),r(n))),e},[])}function Da(e,t,r,n,o,a){return{propsDifferences:Aa(e,n),stateDifferences:Aa(t,o),hookDifferences:Aa(r,a,{shallow:!1})}}function ka(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,c=e.prevHook,i=e.nextProps,u=e.nextState,f=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:c,nextProps:i,nextState:u,nextHook:f,options:e.options,reason:Da(o,a,c,i,u,f)}}function Pa(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var Ra="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function Na(e,t,r,n,o){return t.$$typeof===Ra?function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=ka({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&i.reason.propsDifferences.length>0&&n.notifier(i)}return e.type(o)}var a=r.memo(o),c=Bo(e,Object.keys(a));return o.displayName=t,qo(o,c),a.displayName=t,qo(a,e),a}(t,r,n,o):t.prototype&&t.prototype.isReactComponent?function(e,t,r,n){class o extends e{constructor(t,r){var n;if(super(t,r),n=this,this.render&&!e.prototype.render){var a=this.render;this.render=function(){return o.prototype.render.apply(n),a()}}}render(){return this._prevProps&&n.notifier(ka({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:n})),this._prevProps=this.props,this._prevState=this.state,super.render&&super.render()}}return o.displayName=t,qo(o,e),o}(t,r,0,o):function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=ka({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&n.notifier(i)}return e(o)}return o.displayName=t,qo(o,e),o}(t,r,n,o)}var Ta={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};return function(e,r){var n,o=ra(r),a=e.createElement,c=e.createFactory,i=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===Ra)&&Pa(t,aa(t),o),n=arguments.length,c=new Array(n>1?n-1:0),u=1;u<n;u++)c[u-1]=arguments[u];if(!r)return a.apply(e,[t].concat(c));var f=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||aa(t),s=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=Na(0,t,r,n,o);return e.set(t,a),a}(i,t,f,e,o);return a.apply(e,[s].concat(c))},Object.assign(e.createElement,a),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,c),o.trackHooks){var u=en(Ta,function(t,r){return function(){var a=n[r];if(!a)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var c=a.apply(void 0,arguments);return t&&function(e,t,r,n,o){var a=t.path,c=r,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,u=aa(i);if(!Pa(i,u,o))return c;var f=n.useRef(),s=f.current;if(f.current=c,s){var l=ka({Component:i,displayName:u,hookName:e,prevHook:a?$r(s,a):s,nextHook:a?$r(c,a):c,options:o});l.reason.hookDifferences&&o.notifier(l)}f.current}(r,!0===t?{}:t,c,e,o),c}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){n=e},get:function(){return t({},n,u)}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:a,createFactory:c}),i=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:n}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).whyDidYouRender=t()}(this,function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(r){e(t,r,n[r])})}return t}function r(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t){return e(t={exports:{}},t.exports),t.exports}var a="object"==typeof n&&n&&n.Object===Object&&n,c="object"==typeof self&&self&&self.Object===Object&&self,i=a||c||Function("return this")(),u=i.Symbol,f=Object.prototype,s=f.hasOwnProperty,l=f.toString,p=u?u.toStringTag:void 0;var v=function(e){var t=s.call(e,p),r=e[p];try{e[p]=void 0;var n=!0}catch(e){}var o=l.call(e);return n&&(t?e[p]=r:delete e[p]),o},d=Object.prototype.toString;var y=function(e){return d.call(e)},h="[object Null]",b="[object Undefined]",g=u?u.toStringTag:void 0;var j=function(e){return null==e?void 0===e?b:h:g&&g in Object(e)?v(e):y(e)};var _=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},m="[object AsyncFunction]",O="[object Function]",w="[object GeneratorFunction]",E="[object Proxy]";var S,x=function(e){if(!_(e))return!1;var t=j(e);return t==O||t==w||t==m||t==E},A=i["__core-js_shared__"],D=(S=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"";var k=function(e){return!!D&&D in e},P=Function.prototype.toString;var R=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""},N=/^\[object .+?Constructor\]$/,T=Function.prototype,C=Object.prototype,I=T.toString,z=C.hasOwnProperty,L=RegExp("^"+I.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(e){return!(!_(e)||k(e))&&(x(e)?L:N).test(R(e))};var F=function(e,t){return null==e?void 0:e[t]};var M=function(e,t){var r=F(e,t);return U(r)?r:void 0},B=function(){try{var e=M(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var H=function(e,t,r){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var $=function(e){return function(t,r,n){for(var o=-1,a=Object(t),c=n(t),i=c.length;i--;){var u=c[e?i:++o];if(!1===r(a[u],u,a))break}return t}}();var V=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var Y=function(e){return null!=e&&"object"==typeof e},W="[object Arguments]";var q=function(e){return Y(e)&&j(e)==W},G=Object.prototype,J=G.hasOwnProperty,K=G.propertyIsEnumerable,Q=q(function(){return arguments}())?q:function(e){return Y(e)&&J.call(e,"callee")&&!K.call(e,"callee")},X=Array.isArray;var Z=function(){return!1},ee=o(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?i.Buffer:void 0,a=(o?o.isBuffer:void 0)||Z;e.exports=a}),te=9007199254740991,re=/^(?:0|[1-9]\d*)$/;var ne=function(e,t){var r=typeof e;return!!(t=null==t?te:t)&&("number"==r||"symbol"!=r&&re.test(e))&&e>-1&&e%1==0&&e<t},oe=9007199254740991;var ae=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=oe},ce={};ce["[object Float32Array]"]=ce["[object Float64Array]"]=ce["[object Int8Array]"]=ce["[object Int16Array]"]=ce["[object Int32Array]"]=ce["[object Uint8Array]"]=ce["[object Uint8ClampedArray]"]=ce["[object Uint16Array]"]=ce["[object Uint32Array]"]=!0,ce["[object Arguments]"]=ce["[object Array]"]=ce["[object ArrayBuffer]"]=ce["[object Boolean]"]=ce["[object DataView]"]=ce["[object Date]"]=ce["[object Error]"]=ce["[object Function]"]=ce["[object Map]"]=ce["[object Number]"]=ce["[object Object]"]=ce["[object RegExp]"]=ce["[object Set]"]=ce["[object String]"]=ce["[object WeakMap]"]=!1;var ie=function(e){return Y(e)&&ae(e.length)&&!!ce[j(e)]};var ue=function(e){return function(t){return e(t)}},fe=o(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&a.process,c=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c}),se=fe&&fe.isTypedArray,le=se?ue(se):ie,pe=Object.prototype.hasOwnProperty;var ve=function(e,t){var r=X(e),n=!r&&Q(e),o=!r&&!n&&ee(e),a=!r&&!n&&!o&&le(e),c=r||n||o||a,i=c?V(e.length,String):[],u=i.length;for(var f in e)!t&&!pe.call(e,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||a&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||ne(f,u))||i.push(f);return i},de=Object.prototype;var ye=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||de)};var he=function(e,t){return function(r){return e(t(r))}},be=he(Object.keys,Object),ge=Object.prototype.hasOwnProperty;var je=function(e){if(!ye(e))return be(e);var t=[];for(var r in Object(e))ge.call(e,r)&&"constructor"!=r&&t.push(r);return t};var _e=function(e){return null!=e&&ae(e.length)&&!x(e)};var me=function(e){return _e(e)?ve(e):je(e)};var Oe=function(e,t){return e&&$(e,t,me)};var we=function(){this.__data__=[],this.size=0};var Ee=function(e,t){return e===t||e!=e&&t!=t};var Se=function(e,t){for(var r=e.length;r--;)if(Ee(e[r][0],t))return r;return-1},xe=Array.prototype.splice;var Ae=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():xe.call(t,r,1),--this.size,0))};var De=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]};var ke=function(e){return Se(this.__data__,e)>-1};var Pe=function(e,t){var r=this.__data__,n=Se(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Re.prototype.clear=we,Re.prototype.delete=Ae,Re.prototype.get=De,Re.prototype.has=ke,Re.prototype.set=Pe;var Ne=Re;var Te=function(){this.__data__=new Ne,this.size=0};var Ce=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Ie=function(e){return this.__data__.get(e)};var ze=function(e){return this.__data__.has(e)},Le=M(i,"Map"),Ue=M(Object,"create");var Fe=function(){this.__data__=Ue?Ue(null):{},this.size=0};var Me=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Be="__lodash_hash_undefined__",He=Object.prototype.hasOwnProperty;var $e=function(e){var t=this.__data__;if(Ue){var r=t[e];return r===Be?void 0:r}return He.call(t,e)?t[e]:void 0},Ve=Object.prototype.hasOwnProperty;var Ye=function(e){var t=this.__data__;return Ue?void 0!==t[e]:Ve.call(t,e)},We="__lodash_hash_undefined__";var qe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ue&&void 0===t?We:t,this};function Ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ge.prototype.clear=Fe,Ge.prototype.delete=Me,Ge.prototype.get=$e,Ge.prototype.has=Ye,Ge.prototype.set=qe;var Je=Ge;var Ke=function(){this.size=0,this.__data__={hash:new Je,map:new(Le||Ne),string:new Je}};var Qe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Xe=function(e,t){var r=e.__data__;return Qe(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ze=function(e){var t=Xe(this,e).delete(e);return this.size-=t?1:0,t};var et=function(e){return Xe(this,e).get(e)};var tt=function(e){return Xe(this,e).has(e)};var rt=function(e,t){var r=Xe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function nt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nt.prototype.clear=Ke,nt.prototype.delete=Ze,nt.prototype.get=et,nt.prototype.has=tt,nt.prototype.set=rt;var ot=nt,at=200;var ct=function(e,t){var r=this.__data__;if(r instanceof Ne){var n=r.__data__;if(!Le||n.length<at-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ot(n)}return r.set(e,t),this.size=r.size,this};function it(e){var t=this.__data__=new Ne(e);this.size=t.size}it.prototype.clear=Te,it.prototype.delete=Ce,it.prototype.get=Ie,it.prototype.has=ze,it.prototype.set=ct;var ut=it,ft="__lodash_hash_undefined__";var st=function(e){return this.__data__.set(e,ft),this};var lt=function(e){return this.__data__.has(e)};function pt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ot;++t<r;)this.add(e[t])}pt.prototype.add=pt.prototype.push=st,pt.prototype.has=lt;var vt=pt;var dt=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var yt=function(e,t){return e.has(t)},ht=1,bt=2;var gt=function(e,t,r,n,o,a){var c=r&ht,i=e.length,u=t.length;if(i!=u&&!(c&&u>i))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var s=-1,l=!0,p=r&bt?new vt:void 0;for(a.set(e,t),a.set(t,e);++s<i;){var v=e[s],d=t[s];if(n)var y=c?n(d,v,s,t,e,a):n(v,d,s,e,t,a);if(void 0!==y){if(y)continue;l=!1;break}if(p){if(!dt(t,function(e,t){if(!yt(p,t)&&(v===e||o(v,e,r,n,a)))return p.push(t)})){l=!1;break}}else if(v!==d&&!o(v,d,r,n,a)){l=!1;break}}return a.delete(e),a.delete(t),l},jt=i.Uint8Array;var _t=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r};var mt=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},Ot=1,wt=2,Et="[object Boolean]",St="[object Date]",xt="[object Error]",At="[object Map]",Dt="[object Number]",kt="[object RegExp]",Pt="[object Set]",Rt="[object String]",Nt="[object Symbol]",Tt="[object ArrayBuffer]",Ct="[object DataView]",It=u?u.prototype:void 0,zt=It?It.valueOf:void 0;var Lt=function(e,t,r,n,o,a,c){switch(r){case Ct:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Tt:return!(e.byteLength!=t.byteLength||!a(new jt(e),new jt(t)));case Et:case St:case Dt:return Ee(+e,+t);case xt:return e.name==t.name&&e.message==t.message;case kt:case Rt:return e==t+"";case At:var i=_t;case Pt:var u=n&Ot;if(i||(i=mt),e.size!=t.size&&!u)return!1;var f=c.get(e);if(f)return f==t;n|=wt,c.set(e,t);var s=gt(i(e),i(t),n,o,a,c);return c.delete(e),s;case Nt:if(zt)return zt.call(e)==zt.call(t)}return!1};var Ut=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};var Ft=function(e,t,r){var n=t(e);return X(e)?n:Ut(n,r(e))};var Mt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var c=e[r];t(c,r,e)&&(a[o++]=c)}return a};var Bt=function(){return[]},Ht=Object.prototype.propertyIsEnumerable,$t=Object.getOwnPropertySymbols,Vt=$t?function(e){return null==e?[]:(e=Object(e),Mt($t(e),function(t){return Ht.call(e,t)}))}:Bt;var Yt=function(e){return Ft(e,me,Vt)},Wt=1,qt=Object.prototype.hasOwnProperty;var Gt=function(e,t,r,n,o,a){var c=r&Wt,i=Yt(e),u=i.length;if(u!=Yt(t).length&&!c)return!1;for(var f=u;f--;){var s=i[f];if(!(c?s in t:qt.call(t,s)))return!1}var l=a.get(e);if(l&&a.get(t))return l==t;var p=!0;a.set(e,t),a.set(t,e);for(var v=c;++f<u;){var d=e[s=i[f]],y=t[s];if(n)var h=c?n(y,d,s,t,e,a):n(d,y,s,e,t,a);if(!(void 0===h?d===y||o(d,y,r,n,a):h)){p=!1;break}v||(v="constructor"==s)}if(p&&!v){var b=e.constructor,g=t.constructor;b!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(p=!1)}return a.delete(e),a.delete(t),p},Jt=M(i,"DataView"),Kt=M(i,"Promise"),Qt=M(i,"Set"),Xt=M(i,"WeakMap"),Zt=R(Jt),er=R(Le),tr=R(Kt),rr=R(Qt),nr=R(Xt),or=j;(Jt&&"[object DataView]"!=or(new Jt(new ArrayBuffer(1)))||Le&&"[object Map]"!=or(new Le)||Kt&&"[object Promise]"!=or(Kt.resolve())||Qt&&"[object Set]"!=or(new Qt)||Xt&&"[object WeakMap]"!=or(new Xt))&&(or=function(e){var t=j(e),r="[object Object]"==t?e.constructor:void 0,n=r?R(r):"";if(n)switch(n){case Zt:return"[object DataView]";case er:return"[object Map]";case tr:return"[object Promise]";case rr:return"[object Set]";case nr:return"[object WeakMap]"}return t});var ar=or,cr=1,ir="[object Arguments]",ur="[object Array]",fr="[object Object]",sr=Object.prototype.hasOwnProperty;var lr=function(e,t,r,n,o,a){var c=X(e),i=X(t),u=c?ur:ar(e),f=i?ur:ar(t),s=(u=u==ir?fr:u)==fr,l=(f=f==ir?fr:f)==fr,p=u==f;if(p&&ee(e)){if(!ee(t))return!1;c=!0,s=!1}if(p&&!s)return a||(a=new ut),c||le(e)?gt(e,t,r,n,o,a):Lt(e,t,u,r,n,o,a);if(!(r&cr)){var v=s&&sr.call(e,"__wrapped__"),d=l&&sr.call(t,"__wrapped__");if(v||d){var y=v?e.value():e,h=d?t.value():t;return a||(a=new ut),o(y,h,r,n,a)}}return!!p&&(a||(a=new ut),Gt(e,t,r,n,o,a))};var pr=function e(t,r,n,o,a){return t===r||(null==t||null==r||!Y(t)&&!Y(r)?t!=t&&r!=r:lr(t,r,n,o,e,a))},vr=1,dr=2;var yr=function(e,t,r,n){var o=r.length,a=o,c=!n;if(null==e)return!a;for(e=Object(e);o--;){var i=r[o];if(c&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var u=(i=r[o])[0],f=e[u],s=i[1];if(c&&i[2]){if(void 0===f&&!(u in e))return!1}else{var l=new ut;if(n)var p=n(f,s,u,e,t,l);if(!(void 0===p?pr(s,f,vr|dr,n,l):p))return!1}}return!0};var hr=function(e){return e==e&&!_(e)};var br=function(e){for(var t=me(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,hr(o)]}return t};var gr=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}};var jr=function(e){var t=br(e);return 1==t.length&&t[0][2]?gr(t[0][0],t[0][1]):function(r){return r===e||yr(r,e,t)}},_r="[object Symbol]";var mr=function(e){return"symbol"==typeof e||Y(e)&&j(e)==_r},Or=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wr=/^\w*$/;var Er=function(e,t){if(X(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!mr(e))||wr.test(e)||!Or.test(e)||null!=t&&e in Object(t)},Sr="Expected a function";function xr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Sr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var c=e.apply(this,n);return r.cache=a.set(o,c)||a,c};return r.cache=new(xr.Cache||ot),r}xr.Cache=ot;var Ar=xr,Dr=500;var kr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pr=/\\(\\)?/g,Rr=function(e){var t=Ar(e,function(e){return r.size===Dr&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kr,function(e,r,n,o){t.push(n?o.replace(Pr,"$1"):r||e)}),t});var Nr=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Tr=1/0,Cr=u?u.prototype:void 0,Ir=Cr?Cr.toString:void 0;var zr=function e(t){if("string"==typeof t)return t;if(X(t))return Nr(t,e)+"";if(mr(t))return Ir?Ir.call(t):"";var r=t+"";return"0"==r&&1/t==-Tr?"-0":r};var Lr=function(e){return null==e?"":zr(e)};var Ur=function(e,t){return X(e)?e:Er(e,t)?[e]:Rr(Lr(e))},Fr=1/0;var Mr=function(e){if("string"==typeof e||mr(e))return e;var t=e+"";return"0"==t&&1/e==-Fr?"-0":t};var Br=function(e,t){for(var r=0,n=(t=Ur(t,e)).length;null!=e&&r<n;)e=e[Mr(t[r++])];return r&&r==n?e:void 0};var Hr=function(e,t,r){var n=null==e?void 0:Br(e,t);return void 0===n?r:n};var $r=function(e,t){return null!=e&&t in Object(e)};var Vr=function(e,t,r){for(var n=-1,o=(t=Ur(t,e)).length,a=!1;++n<o;){var c=Mr(t[n]);if(!(a=null!=e&&r(e,c)))break;e=e[c]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&ae(o)&&ne(c,o)&&(X(e)||Q(e))};var Yr=function(e,t){return null!=e&&Vr(e,t,$r)},Wr=1,qr=2;var Gr=function(e,t){return Er(e)&&hr(t)?gr(Mr(e),t):function(r){var n=Hr(r,e);return void 0===n&&n===t?Yr(r,e):pr(t,n,Wr|qr)}};var Jr=function(e){return e};var Kr=function(e){return function(t){return null==t?void 0:t[e]}};var Qr=function(e){return function(t){return Br(t,e)}};var Xr=function(e){return Er(e)?Kr(Mr(e)):Qr(e)};var Zr=function(e){return"function"==typeof e?e:null==e?Jr:"object"==typeof e?X(e)?Gr(e[0],e[1]):jr(e):Xr(e)};var en=function(e,t){var r={};return t=Zr(t,3),Oe(e,function(e,n,o){H(r,n,t(e,n,o))}),r};var tn=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},rn=Object.prototype.hasOwnProperty;var nn=function(e,t,r){var n=e[t];rn.call(e,t)&&Ee(n,r)&&(void 0!==r||t in e)||H(e,t,r)};var on=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,c=t.length;++a<c;){var i=t[a],u=n?n(r[i],e[i],i,r,e):void 0;void 0===u&&(u=e[i]),o?H(r,i,u):nn(r,i,u)}return r};var an=function(e,t){return e&&on(t,me(t),e)};var cn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},un=Object.prototype.hasOwnProperty;var fn=function(e){if(!_(e))return cn(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&un.call(e,n))&&r.push(n);return r};var sn=function(e){return _e(e)?ve(e,!0):fn(e)};var ln=function(e,t){return e&&on(t,sn(t),e)},pn=o(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?i.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}});var vn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var dn=function(e,t){return on(e,Vt(e),t)},yn=he(Object.getPrototypeOf,Object),hn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ut(t,Vt(e)),e=yn(e);return t}:Bt;var bn=function(e,t){return on(e,hn(e),t)};var gn=function(e){return Ft(e,sn,hn)},jn=Object.prototype.hasOwnProperty;var _n=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&jn.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var mn=function(e){var t=new e.constructor(e.byteLength);return new jt(t).set(new jt(e)),t};var On=function(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},wn=/\w*$/;var En=function(e){var t=new e.constructor(e.source,wn.exec(e));return t.lastIndex=e.lastIndex,t},Sn=u?u.prototype:void 0,xn=Sn?Sn.valueOf:void 0;var An=function(e){return xn?Object(xn.call(e)):{}};var Dn=function(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},kn="[object Boolean]",Pn="[object Date]",Rn="[object Map]",Nn="[object Number]",Tn="[object RegExp]",Cn="[object Set]",In="[object String]",zn="[object Symbol]",Ln="[object ArrayBuffer]",Un="[object DataView]",Fn="[object Float32Array]",Mn="[object Float64Array]",Bn="[object Int8Array]",Hn="[object Int16Array]",$n="[object Int32Array]",Vn="[object Uint8Array]",Yn="[object Uint8ClampedArray]",Wn="[object Uint16Array]",qn="[object Uint32Array]";var Gn=function(e,t,r){var n=e.constructor;switch(t){case Ln:return mn(e);case kn:case Pn:return new n(+e);case Un:return On(e,r);case Fn:case Mn:case Bn:case Hn:case $n:case Vn:case Yn:case Wn:case qn:return Dn(e,r);case Rn:return new n;case Nn:case In:return new n(e);case Tn:return En(e);case Cn:return new n;case zn:return An(e)}},Jn=Object.create,Kn=function(){function e(){}return function(t){if(!_(t))return{};if(Jn)return Jn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Qn=function(e){return"function"!=typeof e.constructor||ye(e)?{}:Kn(yn(e))},Xn="[object Map]";var Zn=function(e){return Y(e)&&ar(e)==Xn},eo=fe&&fe.isMap,to=eo?ue(eo):Zn,ro="[object Set]";var no=function(e){return Y(e)&&ar(e)==ro},oo=fe&&fe.isSet,ao=oo?ue(oo):no,co=1,io=2,uo=4,fo="[object Arguments]",so="[object Function]",lo="[object GeneratorFunction]",po="[object Object]",vo={};vo[fo]=vo["[object Array]"]=vo["[object ArrayBuffer]"]=vo["[object DataView]"]=vo["[object Boolean]"]=vo["[object Date]"]=vo["[object Float32Array]"]=vo["[object Float64Array]"]=vo["[object Int8Array]"]=vo["[object Int16Array]"]=vo["[object Int32Array]"]=vo["[object Map]"]=vo["[object Number]"]=vo[po]=vo["[object RegExp]"]=vo["[object Set]"]=vo["[object String]"]=vo["[object Symbol]"]=vo["[object Uint8Array]"]=vo["[object Uint8ClampedArray]"]=vo["[object Uint16Array]"]=vo["[object Uint32Array]"]=!0,vo["[object Error]"]=vo[so]=vo["[object WeakMap]"]=!1;var yo=function e(t,r,n,o,a,c){var i,u=r&co,f=r&io,s=r&uo;if(n&&(i=a?n(t,o,a,c):n(t)),void 0!==i)return i;if(!_(t))return t;var l=X(t);if(l){if(i=_n(t),!u)return vn(t,i)}else{var p=ar(t),v=p==so||p==lo;if(ee(t))return pn(t,u);if(p==po||p==fo||v&&!a){if(i=f||v?{}:Qn(t),!u)return f?bn(t,ln(i,t)):dn(t,an(i,t))}else{if(!vo[p])return a?t:{};i=Gn(t,p,u)}}c||(c=new ut);var d=c.get(t);if(d)return d;if(c.set(t,i),ao(t))return t.forEach(function(o){i.add(e(o,r,n,o,t,c))}),i;if(to(t))return t.forEach(function(o,a){i.set(a,e(o,r,n,a,t,c))}),i;var y=s?f?gn:Yt:f?keysIn:me,h=l?void 0:y(t);return tn(h||t,function(o,a){h&&(o=t[a=o]),nn(i,a,e(o,r,n,a,t,c))}),i};var ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var bo=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a};var go=function(e,t){return t.length<2?e:Br(e,bo(t,0,-1))};var jo=function(e,t){return t=Ur(t,e),null==(e=go(e,t))||delete e[Mr(ho(t))]},_o="[object Object]",mo=Function.prototype,Oo=Object.prototype,wo=mo.toString,Eo=Oo.hasOwnProperty,So=wo.call(Object);var xo=function(e){if(!Y(e)||j(e)!=_o)return!1;var t=yn(e);if(null===t)return!0;var r=Eo.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&wo.call(r)==So};var Ao=function(e){return xo(e)?void 0:e},Do=u?u.isConcatSpreadable:void 0;var ko=function(e){return X(e)||Q(e)||!!(Do&&e&&e[Do])};var Po=function e(t,r,n,o,a){var c=-1,i=t.length;for(n||(n=ko),a||(a=[]);++c<i;){var u=t[c];r>0&&n(u)?r>1?e(u,r-1,n,o,a):Ut(a,u):o||(a[a.length]=u)}return a};var Ro=function(e){return null!=e&&e.length?Po(e,1):[]};var No=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},To=Math.max;var Co=function(e,t,r){return t=To(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=To(n.length-t,0),c=Array(a);++o<a;)c[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(c),No(e,this,i)}};var Io=function(e){return function(){return e}},zo=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:Io(t),writable:!0})}:Jr,Lo=800,Uo=16,Fo=Date.now;var Mo=function(e){var t=0,r=0;return function(){var n=Fo(),o=Uo-(n-r);if(r=n,o>0){if(++t>=Lo)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(zo);var Bo=function(e){return Mo(Co(e,void 0,Ro),e+"")}(function(e,t){var r={};if(null==e)return r;var n=!1;t=Nr(t,function(t){return t=Ur(t,e),n||(n=t.length>1),t}),on(e,gn(e),r),n&&(r=yo(r,7,Ao));for(var o=t.length;o--;)jo(r,t[o]);return r});var Ho=function(e,t){return Mo(Co(e,t,Jr),e+"")};var $o,Vo=function(e,t,r){if(!_(r))return!1;var n=typeof t;return!!("number"==n?_e(r)&&ne(t,r.length):"string"==n&&t in r)&&Ee(r[t],e)},Yo=Object.prototype,Wo=Yo.hasOwnProperty,qo=Ho(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&Vo(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],c=sn(a),i=-1,u=c.length;++i<u;){var f=c[i],s=e[f];(void 0===s||Ee(s,Yo[f])&&!Wo.call(e,f))&&(e[f]=a[f])}return e}),Go={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},Jo="http://bit.ly/wdyr02",Ko="http://bit.ly/wdyr3",Qo=(e($o={},Go.different,"different objects."),e($o,Go.deepEquals,"different objects that are equal by value."),e($o,Go.date,"different date objects with the same value."),e($o,Go.regex,"different regular expressions with the same value."),e($o,Go.reactElement,"different React elements with the same displayName."),e($o,Go.function,"different functions with the same name."),$o),Xo=!1;function Zo(t){var r=t.Component,n=t.displayName,o=t.hookName,a=t.prefixMessage,c=t.diffObjType,i=t.differences,u=t.values,f=t.options;i&&i.length>0?(f.consoleLog(e({},n,r),"".concat(a," of ").concat(c," changes:")),i.forEach(function(t){var r=t.pathString,n=t.diffType,a=t.prevValue,i=t.nextValue;f.consoleGroup("%c".concat("hook"===c?"hook ".concat(o," "):"".concat(c,"."),"%c").concat(r,"%c"),"color:".concat(f.diffNameColor,";"),"color:".concat(f.diffPathColor,";"),"color:default;"),f.consoleLog("".concat(Qo[n]," (more info at ").concat(o?Ko:Jo,")")),f.consoleLog(e({},"prev ".concat(r),a),"!==",e({},"next ".concat(r),i)),f.consoleGroupEnd()})):i&&(f.consoleLog(e({},n,r),"".concat(a," the ").concat(c," object itself changed but it's values are all equal."),"props"===c?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(Jo)),f.consoleLog("prev ".concat(c,":"),u.prev," !== ",u.next,":next ".concat(c)))}function ea(t){var r=t.Component,n=t.displayName,o=t.hookName,a=t.prevProps,c=t.prevState,i=t.prevHook,u=t.nextProps,f=t.nextState,s=t.nextHook,l=t.reason,p=t.options;if(function(e,t,r){return!(Xo||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===Go.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===Go.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===Go.different})))}(l,r,p)){p.consoleGroup("%c".concat(n),"color: ".concat(p.titleColor,";"));var v="Re-rendered because";l.propsDifferences&&(Zo({Component:r,displayName:n,prefixMessage:v,diffObjType:"props",differences:l.propsDifferences,values:{prev:a,next:u},options:p}),v="And because"),l.stateDifferences&&Zo({Component:r,displayName:n,prefixMessage:v,diffObjType:"state",differences:l.stateDifferences,values:{prev:c,next:f},options:p}),l.hookDifferences&&Zo({Component:r,displayName:n,prefixMessage:v,diffObjType:"hook",differences:l.hookDifferences,values:{prev:i,next:s},hookName:o,options:p}),l.propsDifferences||l.stateDifferences||l.hookDifferences||p.consoleLog(e({},n,r),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(Jo)),p.consoleGroupEnd()}}var ta=function(){};function ra(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=console.group,o=console.groupEnd;return r.collapseGroups?n=console.groupCollapsed:r.onlyLogs&&(n=console.log,o=ta),t({include:null,exclude:null,notifier:r.notifier||((e=r.hasOwnProperty("hotReloadBufferMs")?r.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(Xo=!0,setTimeout(function(){Xo=!1},e))}),ea),onlyLogs:!1,consoleLog:console.log,consoleGroup:n,consoleGroupEnd:o,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},r)}var na="[object String]";var oa=function(e){return"string"==typeof e||!X(e)&&Y(e)&&j(e)==na};function aa(e){return e.displayName||e.name||e.type&&aa(e.type)||(oa(e)?e:void 0)}var ca=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var ia=function(e,t){return function(r,n){if(null==r)return r;if(!_e(r))return e(r,n);for(var o=r.length,a=t?o:-1,c=Object(r);(t?a--:++a<o)&&!1!==n(c[a],a,c););return r}}(Oe);var ua=function(e,t,r,n,o){return o(e,function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)}),r};var fa=function(e,t,r){var n=X(e)?ca:ua,o=arguments.length<3;return n(e,Zr(t,4),r,o,ia)},sa=Object.prototype.hasOwnProperty;var la=function(e,t){return null!=e&&sa.call(e,t)};var pa=function(e,t){return null!=e&&Vr(e,t,la)},va="[object RegExp]";var da=function(e){return Y(e)&&j(e)==va},ya=fe&&fe.isRegExp,ha=ya?ue(ya):da,ba="[object Date]";var ga=function(e){return Y(e)&&j(e)==ba},ja=fe&&fe.isDate,_a=ja?ue(ja):ga,ma="undefined"!=typeof Element,Oa="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,wa=function(e){return e.$$typeof===Oa};function Ea(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==Go.different}function Sa(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return Ea(t,r,n,o,Go.different);if(X(t)&&X(r)){var a=t.length;if(a!==r.length)return Ea(t,r,n,o,Go.different);for(var c=!0,i=a;0!=i--;)e(t[i],r[i],n,"".concat(o,"[").concat(i,"]"))||(c=!1);return Ea(t,r,n,o,c?Go.deepEquals:Go.different)}if(_a(t)&&_a(r))return t.getTime()===r.getTime()?Ea(t,r,n,o,Go.date):Ea(t,r,n,o,Go.different);if(ha(t)&&ha(r))return t.toString()===r.toString()?Ea(t,r,n,o,Go.regex):Ea(t,r,n,o,Go.different);if(ma&&t instanceof Element&&r instanceof Element)return Ea(t,r,n,o,Go.different);if(wa(t)&&wa(r))return t.type===r.type?Ea(t,r,n,o,Go.reactElement):Ea(t,r,n,o,Go.different);if(x(t)&&x(r))return t.name===r.name?Ea(t,r,n,o,Go.function):Ea(t,r,n,o,Go.different);if(xo(t)&&xo(r)){var u=me(t),f=u.length;if(f!==me(r).length)return Ea(t,r,n,o,Go.different);for(var s=f;0!=s--;)if(!pa(r,u[s]))return Ea(t,r,n,o,Go.different);for(var l=!0,p=f;0!=p--;){var v=u[p];e(t[v],r[v],n,"".concat(o,".").concat(v))||(l=!1)}return Ea(t,r,n,o,l?Go.deepEquals:Go.different)}return Ea(t,r,n,o,Go.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var xa={};function Aa(e,n){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===n)return!1;if(!(void 0===o||o))return Sa(e,n);var a=e||xa,c=n||xa,i=Object.keys(t({},a,c));return fa(i,function(e,t){var n=Sa(a[t],c[t],t);return n&&(e=[].concat(r(e),r(n))),e},[])}function Da(e,t,r,n,o,a){return{propsDifferences:Aa(e,n),stateDifferences:Aa(t,o),hookDifferences:Aa(r,a,{shallow:!1})}}function ka(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,c=e.prevHook,i=e.nextProps,u=e.nextState,f=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:c,nextProps:i,nextState:u,nextHook:f,options:e.options,reason:Da(o,a,c,i,u,f)}}function Pa(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var Ra="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function Na(e,t,r,n,o){return t.$$typeof===Ra?function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=ka({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&i.reason.propsDifferences.length>0&&n.notifier(i)}return e.type(o)}var a=r.memo(o),c=Bo(e,Object.keys(a));return o.displayName=t,qo(o,c),a.displayName=t,qo(a,e),a}(t,r,n,o):t.prototype&&t.prototype.isReactComponent?function(e,t,r,n){class o extends e{constructor(t,r){var n;if(super(t,r),n=this,this.render&&!e.prototype.render){var a=this.render;this.render=function(){return o.prototype.render.apply(n),a()}}}render(){return this._prevProps&&n.notifier(ka({Component:e,displayName:t,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:n})),this._prevProps=this.props,this._prevState=this.state,super.render&&super.render()}}return o.displayName=t,qo(o,e),o}(t,r,0,o):function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=ka({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&n.notifier(i)}return e(o)}return o.displayName=t,qo(o,e),o}(t,r,n,o)}var Ta={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};return function(e,r){var n,o=ra(r),a=e.createElement,c=e.createFactory,i=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===Ra)&&Pa(t,aa(t),o),n=arguments.length,c=new Array(n>1?n-1:0),u=1;u<n;u++)c[u-1]=arguments[u];if(!r)return a.apply(e,[t].concat(c));var f=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||aa(t),s=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=Na(0,t,r,n,o);return e.set(t,a),a}(i,t,f,e,o);return a.apply(e,[s].concat(c))},Object.assign(e.createElement,a),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,c),o.trackHooks){var u=en(Ta,function(t,r){return function(){var a=n[r];if(!a)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var c=a.apply(void 0,arguments);return t&&function(e,t,r,n,o){var a=t.path,c=r,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,u=aa(i);if(!Pa(i,u,o))return c;var f=n.useRef(),s=f.current;if(f.current=c,s){var l=ka({Component:i,displayName:u,hookName:e,prevHook:a?Hr(s,a):s,nextHook:a?Hr(c,a):c,options:o});l.reason.hookDifferences&&o.notifier(l)}f.current}(r,!0===t?{}:t,c,e,o),c}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){n=e&&t({},e,e.origHooks)},get:function(){return n&&t({},n,u,{origHooks:n})}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:a,createFactory:c}),i=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:n}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}});
//# sourceMappingURL=whyDidYouRender.min.js.map
/**
* @welldone-software/why-did-you-render 3.0.1
* @welldone-software/why-did-you-render 3.0.2
* MIT Licensed

@@ -8,3 +8,3 @@ * Generated by Vitali Zaidman <vzaidman@gmail.com> (https://github.com/vzaidman)

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).whyDidYouRender=t()}(this,function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(r){t(e,r,n[r])})}return e}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,r){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(r):a.value}})(e,t,r||e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var u="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var s="object"==typeof u&&u&&u.Object===Object&&u,l="object"==typeof self&&self&&self.Object===Object&&self,p=s||l||Function("return this")(),v=p.Symbol,y=Object.prototype,h=y.hasOwnProperty,d=y.toString,b=v?v.toStringTag:void 0;var g=function(e){var t=h.call(e,b),r=e[b];try{e[b]=void 0;var n=!0}catch(e){}var o=d.call(e);return n&&(t?e[b]=r:delete e[b]),o},j=Object.prototype.toString;var _=function(e){return j.call(e)},m="[object Null]",O="[object Undefined]",w=v?v.toStringTag:void 0;var E=function(e){return null==e?void 0===e?O:m:w&&w in Object(e)?g(e):_(e)};var S=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},x="[object AsyncFunction]",A="[object Function]",D="[object GeneratorFunction]",P="[object Proxy]";var R,k=function(e){if(!S(e))return!1;var t=E(e);return t==A||t==D||t==x||t==P},N=p["__core-js_shared__"],T=(R=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"";var C=function(e){return!!T&&T in e},I=Function.prototype.toString;var z=function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""},L=/^\[object .+?Constructor\]$/,U=Function.prototype,F=Object.prototype,M=U.toString,B=F.hasOwnProperty,$=RegExp("^"+M.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var V=function(e){return!(!S(e)||C(e))&&(k(e)?$:L).test(z(e))};var H=function(e,t){return null==e?void 0:e[t]};var Y=function(e,t){var r=H(e,t);return V(r)?r:void 0},W=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var q=function(e,t,r){"__proto__"==t&&W?W(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var G=function(e){return function(t,r,n){for(var o=-1,a=Object(t),c=n(t),i=c.length;i--;){var u=c[e?i:++o];if(!1===r(a[u],u,a))break}return t}}();var J=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var K=function(e){return null!=e&&"object"==typeof e},Q="[object Arguments]";var X=function(e){return K(e)&&E(e)==Q},Z=Object.prototype,ee=Z.hasOwnProperty,te=Z.propertyIsEnumerable,re=X(function(){return arguments}())?X:function(e){return K(e)&&ee.call(e,"callee")&&!te.call(e,"callee")},ne=Array.isArray;var oe=function(){return!1},ae=f(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?p.Buffer:void 0,a=(o?o.isBuffer:void 0)||oe;e.exports=a}),ce=9007199254740991,ie=/^(?:0|[1-9]\d*)$/;var ue=function(e,t){var r=typeof e;return!!(t=null==t?ce:t)&&("number"==r||"symbol"!=r&&ie.test(e))&&e>-1&&e%1==0&&e<t},fe=9007199254740991;var se=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=fe},le={};le["[object Float32Array]"]=le["[object Float64Array]"]=le["[object Int8Array]"]=le["[object Int16Array]"]=le["[object Int32Array]"]=le["[object Uint8Array]"]=le["[object Uint8ClampedArray]"]=le["[object Uint16Array]"]=le["[object Uint32Array]"]=!0,le["[object Arguments]"]=le["[object Array]"]=le["[object ArrayBuffer]"]=le["[object Boolean]"]=le["[object DataView]"]=le["[object Date]"]=le["[object Error]"]=le["[object Function]"]=le["[object Map]"]=le["[object Number]"]=le["[object Object]"]=le["[object RegExp]"]=le["[object Set]"]=le["[object String]"]=le["[object WeakMap]"]=!1;var pe=function(e){return K(e)&&se(e.length)&&!!le[E(e)]};var ve=function(e){return function(t){return e(t)}},ye=f(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&s.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}),he=ye&&ye.isTypedArray,de=he?ve(he):pe,be=Object.prototype.hasOwnProperty;var ge=function(e,t){var r=ne(e),n=!r&&re(e),o=!r&&!n&&ae(e),a=!r&&!n&&!o&&de(e),c=r||n||o||a,i=c?J(e.length,String):[],u=i.length;for(var f in e)!t&&!be.call(e,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||a&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||ue(f,u))||i.push(f);return i},je=Object.prototype;var _e=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)};var me=function(e,t){return function(r){return e(t(r))}},Oe=me(Object.keys,Object),we=Object.prototype.hasOwnProperty;var Ee=function(e){if(!_e(e))return Oe(e);var t=[];for(var r in Object(e))we.call(e,r)&&"constructor"!=r&&t.push(r);return t};var Se=function(e){return null!=e&&se(e.length)&&!k(e)};var xe=function(e){return Se(e)?ge(e):Ee(e)};var Ae=function(e,t){return e&&G(e,t,xe)};var De=function(){this.__data__=[],this.size=0};var Pe=function(e,t){return e===t||e!=e&&t!=t};var Re=function(e,t){for(var r=e.length;r--;)if(Pe(e[r][0],t))return r;return-1},ke=Array.prototype.splice;var Ne=function(e){var t=this.__data__,r=Re(t,e);return!(r<0||(r==t.length-1?t.pop():ke.call(t,r,1),--this.size,0))};var Te=function(e){var t=this.__data__,r=Re(t,e);return r<0?void 0:t[r][1]};var Ce=function(e){return Re(this.__data__,e)>-1};var Ie=function(e,t){var r=this.__data__,n=Re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ze.prototype.clear=De,ze.prototype.delete=Ne,ze.prototype.get=Te,ze.prototype.has=Ce,ze.prototype.set=Ie;var Le=ze;var Ue=function(){this.__data__=new Le,this.size=0};var Fe=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Me=function(e){return this.__data__.get(e)};var Be=function(e){return this.__data__.has(e)},$e=Y(p,"Map"),Ve=Y(Object,"create");var He=function(){this.__data__=Ve?Ve(null):{},this.size=0};var Ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},We="__lodash_hash_undefined__",qe=Object.prototype.hasOwnProperty;var Ge=function(e){var t=this.__data__;if(Ve){var r=t[e];return r===We?void 0:r}return qe.call(t,e)?t[e]:void 0},Je=Object.prototype.hasOwnProperty;var Ke=function(e){var t=this.__data__;return Ve?void 0!==t[e]:Je.call(t,e)},Qe="__lodash_hash_undefined__";var Xe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ve&&void 0===t?Qe:t,this};function Ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ze.prototype.clear=He,Ze.prototype.delete=Ye,Ze.prototype.get=Ge,Ze.prototype.has=Ke,Ze.prototype.set=Xe;var et=Ze;var tt=function(){this.size=0,this.__data__={hash:new et,map:new($e||Le),string:new et}};var rt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var nt=function(e,t){var r=e.__data__;return rt(t)?r["string"==typeof t?"string":"hash"]:r.map};var ot=function(e){var t=nt(this,e).delete(e);return this.size-=t?1:0,t};var at=function(e){return nt(this,e).get(e)};var ct=function(e){return nt(this,e).has(e)};var it=function(e,t){var r=nt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ut(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ut.prototype.clear=tt,ut.prototype.delete=ot,ut.prototype.get=at,ut.prototype.has=ct,ut.prototype.set=it;var ft=ut,st=200;var lt=function(e,t){var r=this.__data__;if(r instanceof Le){var n=r.__data__;if(!$e||n.length<st-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ft(n)}return r.set(e,t),this.size=r.size,this};function pt(e){var t=this.__data__=new Le(e);this.size=t.size}pt.prototype.clear=Ue,pt.prototype.delete=Fe,pt.prototype.get=Me,pt.prototype.has=Be,pt.prototype.set=lt;var vt=pt,yt="__lodash_hash_undefined__";var ht=function(e){return this.__data__.set(e,yt),this};var dt=function(e){return this.__data__.has(e)};function bt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ft;++t<r;)this.add(e[t])}bt.prototype.add=bt.prototype.push=ht,bt.prototype.has=dt;var gt=bt;var jt=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var _t=function(e,t){return e.has(t)},mt=1,Ot=2;var wt=function(e,t,r,n,o,a){var c=r&mt,i=e.length,u=t.length;if(i!=u&&!(c&&u>i))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var s=-1,l=!0,p=r&Ot?new gt:void 0;for(a.set(e,t),a.set(t,e);++s<i;){var v=e[s],y=t[s];if(n)var h=c?n(y,v,s,t,e,a):n(v,y,s,e,t,a);if(void 0!==h){if(h)continue;l=!1;break}if(p){if(!jt(t,function(e,t){if(!_t(p,t)&&(v===e||o(v,e,r,n,a)))return p.push(t)})){l=!1;break}}else if(v!==y&&!o(v,y,r,n,a)){l=!1;break}}return a.delete(e),a.delete(t),l},Et=p.Uint8Array;var St=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r};var xt=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},At=1,Dt=2,Pt="[object Boolean]",Rt="[object Date]",kt="[object Error]",Nt="[object Map]",Tt="[object Number]",Ct="[object RegExp]",It="[object Set]",zt="[object String]",Lt="[object Symbol]",Ut="[object ArrayBuffer]",Ft="[object DataView]",Mt=v?v.prototype:void 0,Bt=Mt?Mt.valueOf:void 0;var $t=function(e,t,r,n,o,a,c){switch(r){case Ft:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ut:return!(e.byteLength!=t.byteLength||!a(new Et(e),new Et(t)));case Pt:case Rt:case Tt:return Pe(+e,+t);case kt:return e.name==t.name&&e.message==t.message;case Ct:case zt:return e==t+"";case Nt:var i=St;case It:var u=n&At;if(i||(i=xt),e.size!=t.size&&!u)return!1;var f=c.get(e);if(f)return f==t;n|=Dt,c.set(e,t);var s=wt(i(e),i(t),n,o,a,c);return c.delete(e),s;case Lt:if(Bt)return Bt.call(e)==Bt.call(t)}return!1};var Vt=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};var Ht=function(e,t,r){var n=t(e);return ne(e)?n:Vt(n,r(e))};var Yt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var c=e[r];t(c,r,e)&&(a[o++]=c)}return a};var Wt=function(){return[]},qt=Object.prototype.propertyIsEnumerable,Gt=Object.getOwnPropertySymbols,Jt=Gt?function(e){return null==e?[]:(e=Object(e),Yt(Gt(e),function(t){return qt.call(e,t)}))}:Wt;var Kt=function(e){return Ht(e,xe,Jt)},Qt=1,Xt=Object.prototype.hasOwnProperty;var Zt=function(e,t,r,n,o,a){var c=r&Qt,i=Kt(e),u=i.length;if(u!=Kt(t).length&&!c)return!1;for(var f=u;f--;){var s=i[f];if(!(c?s in t:Xt.call(t,s)))return!1}var l=a.get(e);if(l&&a.get(t))return l==t;var p=!0;a.set(e,t),a.set(t,e);for(var v=c;++f<u;){var y=e[s=i[f]],h=t[s];if(n)var d=c?n(h,y,s,t,e,a):n(y,h,s,e,t,a);if(!(void 0===d?y===h||o(y,h,r,n,a):d)){p=!1;break}v||(v="constructor"==s)}if(p&&!v){var b=e.constructor,g=t.constructor;b!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(p=!1)}return a.delete(e),a.delete(t),p},er=Y(p,"DataView"),tr=Y(p,"Promise"),rr=Y(p,"Set"),nr=Y(p,"WeakMap"),or=z(er),ar=z($e),cr=z(tr),ir=z(rr),ur=z(nr),fr=E;(er&&"[object DataView]"!=fr(new er(new ArrayBuffer(1)))||$e&&"[object Map]"!=fr(new $e)||tr&&"[object Promise]"!=fr(tr.resolve())||rr&&"[object Set]"!=fr(new rr)||nr&&"[object WeakMap]"!=fr(new nr))&&(fr=function(e){var t=E(e),r="[object Object]"==t?e.constructor:void 0,n=r?z(r):"";if(n)switch(n){case or:return"[object DataView]";case ar:return"[object Map]";case cr:return"[object Promise]";case ir:return"[object Set]";case ur:return"[object WeakMap]"}return t});var sr=fr,lr=1,pr="[object Arguments]",vr="[object Array]",yr="[object Object]",hr=Object.prototype.hasOwnProperty;var dr=function(e,t,r,n,o,a){var c=ne(e),i=ne(t),u=c?vr:sr(e),f=i?vr:sr(t),s=(u=u==pr?yr:u)==yr,l=(f=f==pr?yr:f)==yr,p=u==f;if(p&&ae(e)){if(!ae(t))return!1;c=!0,s=!1}if(p&&!s)return a||(a=new vt),c||de(e)?wt(e,t,r,n,o,a):$t(e,t,u,r,n,o,a);if(!(r&lr)){var v=s&&hr.call(e,"__wrapped__"),y=l&&hr.call(t,"__wrapped__");if(v||y){var h=v?e.value():e,d=y?t.value():t;return a||(a=new vt),o(h,d,r,n,a)}}return!!p&&(a||(a=new vt),Zt(e,t,r,n,o,a))};var br=function e(t,r,n,o,a){return t===r||(null==t||null==r||!K(t)&&!K(r)?t!=t&&r!=r:dr(t,r,n,o,e,a))},gr=1,jr=2;var _r=function(e,t,r,n){var o=r.length,a=o,c=!n;if(null==e)return!a;for(e=Object(e);o--;){var i=r[o];if(c&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var u=(i=r[o])[0],f=e[u],s=i[1];if(c&&i[2]){if(void 0===f&&!(u in e))return!1}else{var l=new vt;if(n)var p=n(f,s,u,e,t,l);if(!(void 0===p?br(s,f,gr|jr,n,l):p))return!1}}return!0};var mr=function(e){return e==e&&!S(e)};var Or=function(e){for(var t=xe(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,mr(o)]}return t};var wr=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}};var Er=function(e){var t=Or(e);return 1==t.length&&t[0][2]?wr(t[0][0],t[0][1]):function(r){return r===e||_r(r,e,t)}},Sr="[object Symbol]";var xr=function(e){return"symbol"==typeof e||K(e)&&E(e)==Sr},Ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dr=/^\w*$/;var Pr=function(e,t){if(ne(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!xr(e))||Dr.test(e)||!Ar.test(e)||null!=t&&e in Object(t)},Rr="Expected a function";function kr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Rr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var c=e.apply(this,n);return r.cache=a.set(o,c)||a,c};return r.cache=new(kr.Cache||ft),r}kr.Cache=ft;var Nr=kr,Tr=500;var Cr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/\\(\\)?/g,zr=function(e){var t=Nr(e,function(e){return r.size===Tr&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Cr,function(e,r,n,o){t.push(n?o.replace(Ir,"$1"):r||e)}),t});var Lr=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Ur=1/0,Fr=v?v.prototype:void 0,Mr=Fr?Fr.toString:void 0;var Br=function e(t){if("string"==typeof t)return t;if(ne(t))return Lr(t,e)+"";if(xr(t))return Mr?Mr.call(t):"";var r=t+"";return"0"==r&&1/t==-Ur?"-0":r};var $r=function(e){return null==e?"":Br(e)};var Vr=function(e,t){return ne(e)?e:Pr(e,t)?[e]:zr($r(e))},Hr=1/0;var Yr=function(e){if("string"==typeof e||xr(e))return e;var t=e+"";return"0"==t&&1/e==-Hr?"-0":t};var Wr=function(e,t){for(var r=0,n=(t=Vr(t,e)).length;null!=e&&r<n;)e=e[Yr(t[r++])];return r&&r==n?e:void 0};var qr=function(e,t,r){var n=null==e?void 0:Wr(e,t);return void 0===n?r:n};var Gr=function(e,t){return null!=e&&t in Object(e)};var Jr=function(e,t,r){for(var n=-1,o=(t=Vr(t,e)).length,a=!1;++n<o;){var c=Yr(t[n]);if(!(a=null!=e&&r(e,c)))break;e=e[c]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&se(o)&&ue(c,o)&&(ne(e)||re(e))};var Kr=function(e,t){return null!=e&&Jr(e,t,Gr)},Qr=1,Xr=2;var Zr=function(e,t){return Pr(e)&&mr(t)?wr(Yr(e),t):function(r){var n=qr(r,e);return void 0===n&&n===t?Kr(r,e):br(t,n,Qr|Xr)}};var en=function(e){return e};var tn=function(e){return function(t){return null==t?void 0:t[e]}};var rn=function(e){return function(t){return Wr(t,e)}};var nn=function(e){return Pr(e)?tn(Yr(e)):rn(e)};var on=function(e){return"function"==typeof e?e:null==e?en:"object"==typeof e?ne(e)?Zr(e[0],e[1]):Er(e):nn(e)};var an=function(e,t){var r={};return t=on(t,3),Ae(e,function(e,n,o){q(r,n,t(e,n,o))}),r};var cn=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},un=Object.prototype.hasOwnProperty;var fn=function(e,t,r){var n=e[t];un.call(e,t)&&Pe(n,r)&&(void 0!==r||t in e)||q(e,t,r)};var sn=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,c=t.length;++a<c;){var i=t[a],u=n?n(r[i],e[i],i,r,e):void 0;void 0===u&&(u=e[i]),o?q(r,i,u):fn(r,i,u)}return r};var ln=function(e,t){return e&&sn(t,xe(t),e)};var pn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},vn=Object.prototype.hasOwnProperty;var yn=function(e){if(!S(e))return pn(e);var t=_e(e),r=[];for(var n in e)("constructor"!=n||!t&&vn.call(e,n))&&r.push(n);return r};var hn=function(e){return Se(e)?ge(e,!0):yn(e)};var dn=function(e,t){return e&&sn(t,hn(t),e)},bn=f(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?p.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}});var gn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var jn=function(e,t){return sn(e,Jt(e),t)},_n=me(Object.getPrototypeOf,Object),mn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Vt(t,Jt(e)),e=_n(e);return t}:Wt;var On=function(e,t){return sn(e,mn(e),t)};var wn=function(e){return Ht(e,hn,mn)},En=Object.prototype.hasOwnProperty;var Sn=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&En.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var xn=function(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t};var An=function(e,t){var r=t?xn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},Dn=/\w*$/;var Pn=function(e){var t=new e.constructor(e.source,Dn.exec(e));return t.lastIndex=e.lastIndex,t},Rn=v?v.prototype:void 0,kn=Rn?Rn.valueOf:void 0;var Nn=function(e){return kn?Object(kn.call(e)):{}};var Tn=function(e,t){var r=t?xn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},Cn="[object Boolean]",In="[object Date]",zn="[object Map]",Ln="[object Number]",Un="[object RegExp]",Fn="[object Set]",Mn="[object String]",Bn="[object Symbol]",$n="[object ArrayBuffer]",Vn="[object DataView]",Hn="[object Float32Array]",Yn="[object Float64Array]",Wn="[object Int8Array]",qn="[object Int16Array]",Gn="[object Int32Array]",Jn="[object Uint8Array]",Kn="[object Uint8ClampedArray]",Qn="[object Uint16Array]",Xn="[object Uint32Array]";var Zn=function(e,t,r){var n=e.constructor;switch(t){case $n:return xn(e);case Cn:case In:return new n(+e);case Vn:return An(e,r);case Hn:case Yn:case Wn:case qn:case Gn:case Jn:case Kn:case Qn:case Xn:return Tn(e,r);case zn:return new n;case Ln:case Mn:return new n(e);case Un:return Pn(e);case Fn:return new n;case Bn:return Nn(e)}},eo=Object.create,to=function(){function e(){}return function(t){if(!S(t))return{};if(eo)return eo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var ro=function(e){return"function"!=typeof e.constructor||_e(e)?{}:to(_n(e))},no="[object Map]";var oo=function(e){return K(e)&&sr(e)==no},ao=ye&&ye.isMap,co=ao?ve(ao):oo,io="[object Set]";var uo=function(e){return K(e)&&sr(e)==io},fo=ye&&ye.isSet,so=fo?ve(fo):uo,lo=1,po=2,vo=4,yo="[object Arguments]",ho="[object Function]",bo="[object GeneratorFunction]",go="[object Object]",jo={};jo[yo]=jo["[object Array]"]=jo["[object ArrayBuffer]"]=jo["[object DataView]"]=jo["[object Boolean]"]=jo["[object Date]"]=jo["[object Float32Array]"]=jo["[object Float64Array]"]=jo["[object Int8Array]"]=jo["[object Int16Array]"]=jo["[object Int32Array]"]=jo["[object Map]"]=jo["[object Number]"]=jo[go]=jo["[object RegExp]"]=jo["[object Set]"]=jo["[object String]"]=jo["[object Symbol]"]=jo["[object Uint8Array]"]=jo["[object Uint8ClampedArray]"]=jo["[object Uint16Array]"]=jo["[object Uint32Array]"]=!0,jo["[object Error]"]=jo[ho]=jo["[object WeakMap]"]=!1;var _o=function e(t,r,n,o,a,c){var i,u=r&lo,f=r&po,s=r&vo;if(n&&(i=a?n(t,o,a,c):n(t)),void 0!==i)return i;if(!S(t))return t;var l=ne(t);if(l){if(i=Sn(t),!u)return gn(t,i)}else{var p=sr(t),v=p==ho||p==bo;if(ae(t))return bn(t,u);if(p==go||p==yo||v&&!a){if(i=f||v?{}:ro(t),!u)return f?On(t,dn(i,t)):jn(t,ln(i,t))}else{if(!jo[p])return a?t:{};i=Zn(t,p,u)}}c||(c=new vt);var y=c.get(t);if(y)return y;if(c.set(t,i),so(t))return t.forEach(function(o){i.add(e(o,r,n,o,t,c))}),i;if(co(t))return t.forEach(function(o,a){i.set(a,e(o,r,n,a,t,c))}),i;var h=s?f?wn:Kt:f?keysIn:xe,d=l?void 0:h(t);return cn(d||t,function(o,a){d&&(o=t[a=o]),fn(i,a,e(o,r,n,a,t,c))}),i};var mo=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var Oo=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a};var wo=function(e,t){return t.length<2?e:Wr(e,Oo(t,0,-1))};var Eo=function(e,t){return t=Vr(t,e),null==(e=wo(e,t))||delete e[Yr(mo(t))]},So="[object Object]",xo=Function.prototype,Ao=Object.prototype,Do=xo.toString,Po=Ao.hasOwnProperty,Ro=Do.call(Object);var ko=function(e){if(!K(e)||E(e)!=So)return!1;var t=_n(e);if(null===t)return!0;var r=Po.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Do.call(r)==Ro};var No=function(e){return ko(e)?void 0:e},To=v?v.isConcatSpreadable:void 0;var Co=function(e){return ne(e)||re(e)||!!(To&&e&&e[To])};var Io=function e(t,r,n,o,a){var c=-1,i=t.length;for(n||(n=Co),a||(a=[]);++c<i;){var u=t[c];r>0&&n(u)?r>1?e(u,r-1,n,o,a):Vt(a,u):o||(a[a.length]=u)}return a};var zo=function(e){return null!=e&&e.length?Io(e,1):[]};var Lo=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Uo=Math.max;var Fo=function(e,t,r){return t=Uo(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Uo(n.length-t,0),c=Array(a);++o<a;)c[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(c),Lo(e,this,i)}};var Mo=function(e){return function(){return e}},Bo=W?function(e,t){return W(e,"toString",{configurable:!0,enumerable:!1,value:Mo(t),writable:!0})}:en,$o=800,Vo=16,Ho=Date.now;var Yo=function(e){var t=0,r=0;return function(){var n=Ho(),o=Vo-(n-r);if(r=n,o>0){if(++t>=$o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Bo);var Wo=function(e){return Yo(Fo(e,void 0,zo),e+"")}(function(e,t){var r={};if(null==e)return r;var n=!1;t=Lr(t,function(t){return t=Vr(t,e),n||(n=t.length>1),t}),sn(e,wn(e),r),n&&(r=_o(r,7,No));for(var o=t.length;o--;)Eo(r,t[o]);return r});var qo=function(e,t){return Yo(Fo(e,t,en),e+"")};var Go,Jo=function(e,t,r){if(!S(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&ue(t,r.length):"string"==n&&t in r)&&Pe(r[t],e)},Ko=Object.prototype,Qo=Ko.hasOwnProperty,Xo=qo(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&Jo(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],c=hn(a),i=-1,u=c.length;++i<u;){var f=c[i],s=e[f];(void 0===s||Pe(s,Ko[f])&&!Qo.call(e,f))&&(e[f]=a[f])}return e}),Zo={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},ea="http://bit.ly/wdyr02",ta="http://bit.ly/wdyr3",ra=(t(Go={},Zo.different,"different objects."),t(Go,Zo.deepEquals,"different objects that are equal by value."),t(Go,Zo.date,"different date objects with the same value."),t(Go,Zo.regex,"different regular expressions with the same value."),t(Go,Zo.reactElement,"different React elements with the same displayName."),t(Go,Zo.function,"different functions with the same name."),Go),na=!1;function oa(e){var r=e.Component,n=e.displayName,o=e.hookName,a=e.prefixMessage,c=e.diffObjType,i=e.differences,u=e.values,f=e.options;i&&i.length>0?(f.consoleLog(t({},n,r),"".concat(a," of ").concat(c," changes:")),i.forEach(function(e){var r=e.pathString,n=e.diffType,a=e.prevValue,i=e.nextValue;f.consoleGroup("%c".concat("hook"===c?"hook ".concat(o," "):"".concat(c,"."),"%c").concat(r,"%c"),"color:".concat(f.diffNameColor,";"),"color:".concat(f.diffPathColor,";"),"color:default;"),f.consoleLog("".concat(ra[n]," (more info at ").concat(o?ta:ea,")")),f.consoleLog(t({},"prev ".concat(r),a),"!==",t({},"next ".concat(r),i)),f.consoleGroupEnd()})):i&&(f.consoleLog(t({},n,r),"".concat(a," the ").concat(c," object itself changed but it's values are all equal."),"props"===c?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(ea)),f.consoleLog("prev ".concat(c,":"),u.prev," !== ",u.next,":next ".concat(c)))}function aa(e){var r=e.Component,n=e.displayName,o=e.hookName,a=e.prevProps,c=e.prevState,i=e.prevHook,u=e.nextProps,f=e.nextState,s=e.nextHook,l=e.reason,p=e.options;if(function(e,t,r){return!(na||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===Zo.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===Zo.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===Zo.different})))}(l,r,p)){p.consoleGroup("%c".concat(n),"color: ".concat(p.titleColor,";"));var v="Re-rendered because";l.propsDifferences&&(oa({Component:r,displayName:n,prefixMessage:v,diffObjType:"props",differences:l.propsDifferences,values:{prev:a,next:u},options:p}),v="And because"),l.stateDifferences&&oa({Component:r,displayName:n,prefixMessage:v,diffObjType:"state",differences:l.stateDifferences,values:{prev:c,next:f},options:p}),l.hookDifferences&&oa({Component:r,displayName:n,prefixMessage:v,diffObjType:"hook",differences:l.hookDifferences,values:{prev:i,next:s},hookName:o,options:p}),l.propsDifferences||l.stateDifferences||l.hookDifferences||p.consoleLog(t({},n,r),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(ea)),p.consoleGroupEnd()}}var ca=function(){};function ia(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=console.group,o=console.groupEnd;return t.collapseGroups?n=console.groupCollapsed:t.onlyLogs&&(n=console.log,o=ca),r({include:null,exclude:null,notifier:t.notifier||((e=t.hasOwnProperty("hotReloadBufferMs")?t.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(na=!0,setTimeout(function(){na=!1},e))}),aa),onlyLogs:!1,consoleLog:console.log,consoleGroup:n,consoleGroupEnd:o,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},t)}var ua="[object String]";var fa=function(e){return"string"==typeof e||!ne(e)&&K(e)&&E(e)==ua};function sa(e){return e.displayName||e.name||e.type&&sa(e.type)||(fa(e)?e:void 0)}var la=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var pa=function(e,t){return function(r,n){if(null==r)return r;if(!Se(r))return e(r,n);for(var o=r.length,a=t?o:-1,c=Object(r);(t?a--:++a<o)&&!1!==n(c[a],a,c););return r}}(Ae);var va=function(e,t,r,n,o){return o(e,function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)}),r};var ya=function(e,t,r){var n=ne(e)?la:va,o=arguments.length<3;return n(e,on(t,4),r,o,pa)},ha=Object.prototype.hasOwnProperty;var da=function(e,t){return null!=e&&ha.call(e,t)};var ba=function(e,t){return null!=e&&Jr(e,t,da)},ga="[object RegExp]";var ja=function(e){return K(e)&&E(e)==ga},_a=ye&&ye.isRegExp,ma=_a?ve(_a):ja,Oa="[object Date]";var wa=function(e){return K(e)&&E(e)==Oa},Ea=ye&&ye.isDate,Sa=Ea?ve(Ea):wa,xa="undefined"!=typeof Element,Aa="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,Da=function(e){return e.$$typeof===Aa};function Pa(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==Zo.different}function Ra(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return Pa(t,r,n,o,Zo.different);if(ne(t)&&ne(r)){var a=t.length;if(a!==r.length)return Pa(t,r,n,o,Zo.different);for(var c=!0,i=a;0!=i--;)e(t[i],r[i],n,"".concat(o,"[").concat(i,"]"))||(c=!1);return Pa(t,r,n,o,c?Zo.deepEquals:Zo.different)}if(Sa(t)&&Sa(r))return t.getTime()===r.getTime()?Pa(t,r,n,o,Zo.date):Pa(t,r,n,o,Zo.different);if(ma(t)&&ma(r))return t.toString()===r.toString()?Pa(t,r,n,o,Zo.regex):Pa(t,r,n,o,Zo.different);if(xa&&t instanceof Element&&r instanceof Element)return Pa(t,r,n,o,Zo.different);if(Da(t)&&Da(r))return t.type===r.type?Pa(t,r,n,o,Zo.reactElement):Pa(t,r,n,o,Zo.different);if(k(t)&&k(r))return t.name===r.name?Pa(t,r,n,o,Zo.function):Pa(t,r,n,o,Zo.different);if(ko(t)&&ko(r)){var u=xe(t),f=u.length;if(f!==xe(r).length)return Pa(t,r,n,o,Zo.different);for(var s=f;0!=s--;)if(!ba(r,u[s]))return Pa(t,r,n,o,Zo.different);for(var l=!0,p=f;0!=p--;){var v=u[p];e(t[v],r[v],n,"".concat(o,".").concat(v))||(l=!1)}return Pa(t,r,n,o,l?Zo.deepEquals:Zo.different)}return Pa(t,r,n,o,Zo.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var ka={};function Na(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===n||n))return Ra(e,t);var o=e||ka,a=t||ka,c=Object.keys(r({},o,a));return ya(c,function(e,t){var r=Ra(o[t],a[t],t);return r&&(e=[].concat(i(e),i(r))),e},[])}function Ta(e,t,r,n,o,a){return{propsDifferences:Na(e,n),stateDifferences:Na(t,o),hookDifferences:Na(r,a,{shallow:!1})}}function Ca(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,c=e.prevHook,i=e.nextProps,u=e.nextState,f=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:c,nextProps:i,nextState:u,nextHook:f,options:e.options,reason:Ta(o,a,c,i,u,f)}}function Ia(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var za="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function La(t,r,i,u){var f=function(i){function f(e,r){var o,c,i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),c=this,i=n(f).call(this,e,r),(o=!i||"object"!=typeof i&&"function"!=typeof i?a(c):i).render&&!t.prototype.render){var u=o.render;o.render=function(){return f.prototype.render.apply(a(o)),u()}}return o}var s,l,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(f,t),s=f,(l=[{key:"render",value:function(){return this._prevProps&&u.notifier(Ca({Component:t,displayName:r,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:u})),this._prevProps=this.props,this._prevState=this.state,c(n(f.prototype),"render",this)&&c(n(f.prototype),"render",this).call(this)}}])&&e(s.prototype,l),p&&e(s,p),f}();return f.displayName=r,Xo(f,t),f}function Ua(e,t,r,n,o){return t.$$typeof===za?function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=Ca({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&i.reason.propsDifferences.length>0&&n.notifier(i)}return e.type(o)}var a=r.memo(o),c=Wo(e,Object.keys(a));return o.displayName=t,Xo(o,c),a.displayName=t,Xo(a,e),a}(t,r,n,o):t.prototype&&t.prototype.isReactComponent?La(t,r,0,o):function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=Ca({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&n.notifier(i)}return e(o)}return o.displayName=t,Xo(o,e),o}(t,r,n,o)}var Fa={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};return function(e,t){var n,o=ia(t),a=e.createElement,c=e.createFactory,i=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===za)&&Ia(t,sa(t),o),n=arguments.length,c=new Array(n>1?n-1:0),u=1;u<n;u++)c[u-1]=arguments[u];if(!r)return a.apply(e,[t].concat(c));var f=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||sa(t),s=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=Ua(0,t,r,n,o);return e.set(t,a),a}(i,t,f,e,o);return a.apply(e,[s].concat(c))},Object.assign(e.createElement,a),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,c),o.trackHooks){var u=an(Fa,function(t,r){return function(){var a=n[r];if(!a)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var c=a.apply(void 0,arguments);return t&&function(e,t,r,n,o){var a=t.path,c=r,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,u=sa(i);if(!Ia(i,u,o))return c;var f=n.useRef(),s=f.current;if(f.current=c,s){var l=Ca({Component:i,displayName:u,hookName:e,prevHook:a?qr(s,a):s,nextHook:a?qr(c,a):c,options:o});l.reason.hookDifferences&&o.notifier(l)}f.current}(r,!0===t?{}:t,c,e,o),c}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){n=e},get:function(){return r({},n,u)}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:a,createFactory:c}),i=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:n}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).whyDidYouRender=t()}(this,function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(r){t(e,r,n[r])})}return e}function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,r){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e}(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(r):a.value}})(e,t,r||e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var u="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var s="object"==typeof u&&u&&u.Object===Object&&u,l="object"==typeof self&&self&&self.Object===Object&&self,p=s||l||Function("return this")(),v=p.Symbol,y=Object.prototype,h=y.hasOwnProperty,d=y.toString,b=v?v.toStringTag:void 0;var g=function(e){var t=h.call(e,b),r=e[b];try{e[b]=void 0;var n=!0}catch(e){}var o=d.call(e);return n&&(t?e[b]=r:delete e[b]),o},j=Object.prototype.toString;var _=function(e){return j.call(e)},m="[object Null]",O="[object Undefined]",w=v?v.toStringTag:void 0;var E=function(e){return null==e?void 0===e?O:m:w&&w in Object(e)?g(e):_(e)};var S=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},x="[object AsyncFunction]",A="[object Function]",D="[object GeneratorFunction]",P="[object Proxy]";var k,R=function(e){if(!S(e))return!1;var t=E(e);return t==A||t==D||t==x||t==P},N=p["__core-js_shared__"],T=(k=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var C=function(e){return!!T&&T in e},I=Function.prototype.toString;var z=function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""},L=/^\[object .+?Constructor\]$/,U=Function.prototype,F=Object.prototype,M=U.toString,B=F.hasOwnProperty,H=RegExp("^"+M.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var $=function(e){return!(!S(e)||C(e))&&(R(e)?H:L).test(z(e))};var V=function(e,t){return null==e?void 0:e[t]};var Y=function(e,t){var r=V(e,t);return $(r)?r:void 0},W=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var q=function(e,t,r){"__proto__"==t&&W?W(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var G=function(e){return function(t,r,n){for(var o=-1,a=Object(t),c=n(t),i=c.length;i--;){var u=c[e?i:++o];if(!1===r(a[u],u,a))break}return t}}();var J=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var K=function(e){return null!=e&&"object"==typeof e},Q="[object Arguments]";var X=function(e){return K(e)&&E(e)==Q},Z=Object.prototype,ee=Z.hasOwnProperty,te=Z.propertyIsEnumerable,re=X(function(){return arguments}())?X:function(e){return K(e)&&ee.call(e,"callee")&&!te.call(e,"callee")},ne=Array.isArray;var oe=function(){return!1},ae=f(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?p.Buffer:void 0,a=(o?o.isBuffer:void 0)||oe;e.exports=a}),ce=9007199254740991,ie=/^(?:0|[1-9]\d*)$/;var ue=function(e,t){var r=typeof e;return!!(t=null==t?ce:t)&&("number"==r||"symbol"!=r&&ie.test(e))&&e>-1&&e%1==0&&e<t},fe=9007199254740991;var se=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=fe},le={};le["[object Float32Array]"]=le["[object Float64Array]"]=le["[object Int8Array]"]=le["[object Int16Array]"]=le["[object Int32Array]"]=le["[object Uint8Array]"]=le["[object Uint8ClampedArray]"]=le["[object Uint16Array]"]=le["[object Uint32Array]"]=!0,le["[object Arguments]"]=le["[object Array]"]=le["[object ArrayBuffer]"]=le["[object Boolean]"]=le["[object DataView]"]=le["[object Date]"]=le["[object Error]"]=le["[object Function]"]=le["[object Map]"]=le["[object Number]"]=le["[object Object]"]=le["[object RegExp]"]=le["[object Set]"]=le["[object String]"]=le["[object WeakMap]"]=!1;var pe=function(e){return K(e)&&se(e.length)&&!!le[E(e)]};var ve=function(e){return function(t){return e(t)}},ye=f(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&s.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}),he=ye&&ye.isTypedArray,de=he?ve(he):pe,be=Object.prototype.hasOwnProperty;var ge=function(e,t){var r=ne(e),n=!r&&re(e),o=!r&&!n&&ae(e),a=!r&&!n&&!o&&de(e),c=r||n||o||a,i=c?J(e.length,String):[],u=i.length;for(var f in e)!t&&!be.call(e,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||a&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||ue(f,u))||i.push(f);return i},je=Object.prototype;var _e=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)};var me=function(e,t){return function(r){return e(t(r))}},Oe=me(Object.keys,Object),we=Object.prototype.hasOwnProperty;var Ee=function(e){if(!_e(e))return Oe(e);var t=[];for(var r in Object(e))we.call(e,r)&&"constructor"!=r&&t.push(r);return t};var Se=function(e){return null!=e&&se(e.length)&&!R(e)};var xe=function(e){return Se(e)?ge(e):Ee(e)};var Ae=function(e,t){return e&&G(e,t,xe)};var De=function(){this.__data__=[],this.size=0};var Pe=function(e,t){return e===t||e!=e&&t!=t};var ke=function(e,t){for(var r=e.length;r--;)if(Pe(e[r][0],t))return r;return-1},Re=Array.prototype.splice;var Ne=function(e){var t=this.__data__,r=ke(t,e);return!(r<0||(r==t.length-1?t.pop():Re.call(t,r,1),--this.size,0))};var Te=function(e){var t=this.__data__,r=ke(t,e);return r<0?void 0:t[r][1]};var Ce=function(e){return ke(this.__data__,e)>-1};var Ie=function(e,t){var r=this.__data__,n=ke(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ze.prototype.clear=De,ze.prototype.delete=Ne,ze.prototype.get=Te,ze.prototype.has=Ce,ze.prototype.set=Ie;var Le=ze;var Ue=function(){this.__data__=new Le,this.size=0};var Fe=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Me=function(e){return this.__data__.get(e)};var Be=function(e){return this.__data__.has(e)},He=Y(p,"Map"),$e=Y(Object,"create");var Ve=function(){this.__data__=$e?$e(null):{},this.size=0};var Ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},We="__lodash_hash_undefined__",qe=Object.prototype.hasOwnProperty;var Ge=function(e){var t=this.__data__;if($e){var r=t[e];return r===We?void 0:r}return qe.call(t,e)?t[e]:void 0},Je=Object.prototype.hasOwnProperty;var Ke=function(e){var t=this.__data__;return $e?void 0!==t[e]:Je.call(t,e)},Qe="__lodash_hash_undefined__";var Xe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$e&&void 0===t?Qe:t,this};function Ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ze.prototype.clear=Ve,Ze.prototype.delete=Ye,Ze.prototype.get=Ge,Ze.prototype.has=Ke,Ze.prototype.set=Xe;var et=Ze;var tt=function(){this.size=0,this.__data__={hash:new et,map:new(He||Le),string:new et}};var rt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var nt=function(e,t){var r=e.__data__;return rt(t)?r["string"==typeof t?"string":"hash"]:r.map};var ot=function(e){var t=nt(this,e).delete(e);return this.size-=t?1:0,t};var at=function(e){return nt(this,e).get(e)};var ct=function(e){return nt(this,e).has(e)};var it=function(e,t){var r=nt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ut(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ut.prototype.clear=tt,ut.prototype.delete=ot,ut.prototype.get=at,ut.prototype.has=ct,ut.prototype.set=it;var ft=ut,st=200;var lt=function(e,t){var r=this.__data__;if(r instanceof Le){var n=r.__data__;if(!He||n.length<st-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ft(n)}return r.set(e,t),this.size=r.size,this};function pt(e){var t=this.__data__=new Le(e);this.size=t.size}pt.prototype.clear=Ue,pt.prototype.delete=Fe,pt.prototype.get=Me,pt.prototype.has=Be,pt.prototype.set=lt;var vt=pt,yt="__lodash_hash_undefined__";var ht=function(e){return this.__data__.set(e,yt),this};var dt=function(e){return this.__data__.has(e)};function bt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ft;++t<r;)this.add(e[t])}bt.prototype.add=bt.prototype.push=ht,bt.prototype.has=dt;var gt=bt;var jt=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var _t=function(e,t){return e.has(t)},mt=1,Ot=2;var wt=function(e,t,r,n,o,a){var c=r&mt,i=e.length,u=t.length;if(i!=u&&!(c&&u>i))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var s=-1,l=!0,p=r&Ot?new gt:void 0;for(a.set(e,t),a.set(t,e);++s<i;){var v=e[s],y=t[s];if(n)var h=c?n(y,v,s,t,e,a):n(v,y,s,e,t,a);if(void 0!==h){if(h)continue;l=!1;break}if(p){if(!jt(t,function(e,t){if(!_t(p,t)&&(v===e||o(v,e,r,n,a)))return p.push(t)})){l=!1;break}}else if(v!==y&&!o(v,y,r,n,a)){l=!1;break}}return a.delete(e),a.delete(t),l},Et=p.Uint8Array;var St=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r};var xt=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},At=1,Dt=2,Pt="[object Boolean]",kt="[object Date]",Rt="[object Error]",Nt="[object Map]",Tt="[object Number]",Ct="[object RegExp]",It="[object Set]",zt="[object String]",Lt="[object Symbol]",Ut="[object ArrayBuffer]",Ft="[object DataView]",Mt=v?v.prototype:void 0,Bt=Mt?Mt.valueOf:void 0;var Ht=function(e,t,r,n,o,a,c){switch(r){case Ft:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ut:return!(e.byteLength!=t.byteLength||!a(new Et(e),new Et(t)));case Pt:case kt:case Tt:return Pe(+e,+t);case Rt:return e.name==t.name&&e.message==t.message;case Ct:case zt:return e==t+"";case Nt:var i=St;case It:var u=n&At;if(i||(i=xt),e.size!=t.size&&!u)return!1;var f=c.get(e);if(f)return f==t;n|=Dt,c.set(e,t);var s=wt(i(e),i(t),n,o,a,c);return c.delete(e),s;case Lt:if(Bt)return Bt.call(e)==Bt.call(t)}return!1};var $t=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};var Vt=function(e,t,r){var n=t(e);return ne(e)?n:$t(n,r(e))};var Yt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var c=e[r];t(c,r,e)&&(a[o++]=c)}return a};var Wt=function(){return[]},qt=Object.prototype.propertyIsEnumerable,Gt=Object.getOwnPropertySymbols,Jt=Gt?function(e){return null==e?[]:(e=Object(e),Yt(Gt(e),function(t){return qt.call(e,t)}))}:Wt;var Kt=function(e){return Vt(e,xe,Jt)},Qt=1,Xt=Object.prototype.hasOwnProperty;var Zt=function(e,t,r,n,o,a){var c=r&Qt,i=Kt(e),u=i.length;if(u!=Kt(t).length&&!c)return!1;for(var f=u;f--;){var s=i[f];if(!(c?s in t:Xt.call(t,s)))return!1}var l=a.get(e);if(l&&a.get(t))return l==t;var p=!0;a.set(e,t),a.set(t,e);for(var v=c;++f<u;){var y=e[s=i[f]],h=t[s];if(n)var d=c?n(h,y,s,t,e,a):n(y,h,s,e,t,a);if(!(void 0===d?y===h||o(y,h,r,n,a):d)){p=!1;break}v||(v="constructor"==s)}if(p&&!v){var b=e.constructor,g=t.constructor;b!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(p=!1)}return a.delete(e),a.delete(t),p},er=Y(p,"DataView"),tr=Y(p,"Promise"),rr=Y(p,"Set"),nr=Y(p,"WeakMap"),or=z(er),ar=z(He),cr=z(tr),ir=z(rr),ur=z(nr),fr=E;(er&&"[object DataView]"!=fr(new er(new ArrayBuffer(1)))||He&&"[object Map]"!=fr(new He)||tr&&"[object Promise]"!=fr(tr.resolve())||rr&&"[object Set]"!=fr(new rr)||nr&&"[object WeakMap]"!=fr(new nr))&&(fr=function(e){var t=E(e),r="[object Object]"==t?e.constructor:void 0,n=r?z(r):"";if(n)switch(n){case or:return"[object DataView]";case ar:return"[object Map]";case cr:return"[object Promise]";case ir:return"[object Set]";case ur:return"[object WeakMap]"}return t});var sr=fr,lr=1,pr="[object Arguments]",vr="[object Array]",yr="[object Object]",hr=Object.prototype.hasOwnProperty;var dr=function(e,t,r,n,o,a){var c=ne(e),i=ne(t),u=c?vr:sr(e),f=i?vr:sr(t),s=(u=u==pr?yr:u)==yr,l=(f=f==pr?yr:f)==yr,p=u==f;if(p&&ae(e)){if(!ae(t))return!1;c=!0,s=!1}if(p&&!s)return a||(a=new vt),c||de(e)?wt(e,t,r,n,o,a):Ht(e,t,u,r,n,o,a);if(!(r&lr)){var v=s&&hr.call(e,"__wrapped__"),y=l&&hr.call(t,"__wrapped__");if(v||y){var h=v?e.value():e,d=y?t.value():t;return a||(a=new vt),o(h,d,r,n,a)}}return!!p&&(a||(a=new vt),Zt(e,t,r,n,o,a))};var br=function e(t,r,n,o,a){return t===r||(null==t||null==r||!K(t)&&!K(r)?t!=t&&r!=r:dr(t,r,n,o,e,a))},gr=1,jr=2;var _r=function(e,t,r,n){var o=r.length,a=o,c=!n;if(null==e)return!a;for(e=Object(e);o--;){var i=r[o];if(c&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){var u=(i=r[o])[0],f=e[u],s=i[1];if(c&&i[2]){if(void 0===f&&!(u in e))return!1}else{var l=new vt;if(n)var p=n(f,s,u,e,t,l);if(!(void 0===p?br(s,f,gr|jr,n,l):p))return!1}}return!0};var mr=function(e){return e==e&&!S(e)};var Or=function(e){for(var t=xe(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,mr(o)]}return t};var wr=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}};var Er=function(e){var t=Or(e);return 1==t.length&&t[0][2]?wr(t[0][0],t[0][1]):function(r){return r===e||_r(r,e,t)}},Sr="[object Symbol]";var xr=function(e){return"symbol"==typeof e||K(e)&&E(e)==Sr},Ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dr=/^\w*$/;var Pr=function(e,t){if(ne(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!xr(e))||Dr.test(e)||!Ar.test(e)||null!=t&&e in Object(t)},kr="Expected a function";function Rr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(kr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var c=e.apply(this,n);return r.cache=a.set(o,c)||a,c};return r.cache=new(Rr.Cache||ft),r}Rr.Cache=ft;var Nr=Rr,Tr=500;var Cr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/\\(\\)?/g,zr=function(e){var t=Nr(e,function(e){return r.size===Tr&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Cr,function(e,r,n,o){t.push(n?o.replace(Ir,"$1"):r||e)}),t});var Lr=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Ur=1/0,Fr=v?v.prototype:void 0,Mr=Fr?Fr.toString:void 0;var Br=function e(t){if("string"==typeof t)return t;if(ne(t))return Lr(t,e)+"";if(xr(t))return Mr?Mr.call(t):"";var r=t+"";return"0"==r&&1/t==-Ur?"-0":r};var Hr=function(e){return null==e?"":Br(e)};var $r=function(e,t){return ne(e)?e:Pr(e,t)?[e]:zr(Hr(e))},Vr=1/0;var Yr=function(e){if("string"==typeof e||xr(e))return e;var t=e+"";return"0"==t&&1/e==-Vr?"-0":t};var Wr=function(e,t){for(var r=0,n=(t=$r(t,e)).length;null!=e&&r<n;)e=e[Yr(t[r++])];return r&&r==n?e:void 0};var qr=function(e,t,r){var n=null==e?void 0:Wr(e,t);return void 0===n?r:n};var Gr=function(e,t){return null!=e&&t in Object(e)};var Jr=function(e,t,r){for(var n=-1,o=(t=$r(t,e)).length,a=!1;++n<o;){var c=Yr(t[n]);if(!(a=null!=e&&r(e,c)))break;e=e[c]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&se(o)&&ue(c,o)&&(ne(e)||re(e))};var Kr=function(e,t){return null!=e&&Jr(e,t,Gr)},Qr=1,Xr=2;var Zr=function(e,t){return Pr(e)&&mr(t)?wr(Yr(e),t):function(r){var n=qr(r,e);return void 0===n&&n===t?Kr(r,e):br(t,n,Qr|Xr)}};var en=function(e){return e};var tn=function(e){return function(t){return null==t?void 0:t[e]}};var rn=function(e){return function(t){return Wr(t,e)}};var nn=function(e){return Pr(e)?tn(Yr(e)):rn(e)};var on=function(e){return"function"==typeof e?e:null==e?en:"object"==typeof e?ne(e)?Zr(e[0],e[1]):Er(e):nn(e)};var an=function(e,t){var r={};return t=on(t,3),Ae(e,function(e,n,o){q(r,n,t(e,n,o))}),r};var cn=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},un=Object.prototype.hasOwnProperty;var fn=function(e,t,r){var n=e[t];un.call(e,t)&&Pe(n,r)&&(void 0!==r||t in e)||q(e,t,r)};var sn=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,c=t.length;++a<c;){var i=t[a],u=n?n(r[i],e[i],i,r,e):void 0;void 0===u&&(u=e[i]),o?q(r,i,u):fn(r,i,u)}return r};var ln=function(e,t){return e&&sn(t,xe(t),e)};var pn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},vn=Object.prototype.hasOwnProperty;var yn=function(e){if(!S(e))return pn(e);var t=_e(e),r=[];for(var n in e)("constructor"!=n||!t&&vn.call(e,n))&&r.push(n);return r};var hn=function(e){return Se(e)?ge(e,!0):yn(e)};var dn=function(e,t){return e&&sn(t,hn(t),e)},bn=f(function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?p.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}});var gn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var jn=function(e,t){return sn(e,Jt(e),t)},_n=me(Object.getPrototypeOf,Object),mn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)$t(t,Jt(e)),e=_n(e);return t}:Wt;var On=function(e,t){return sn(e,mn(e),t)};var wn=function(e){return Vt(e,hn,mn)},En=Object.prototype.hasOwnProperty;var Sn=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&En.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var xn=function(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t};var An=function(e,t){var r=t?xn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},Dn=/\w*$/;var Pn=function(e){var t=new e.constructor(e.source,Dn.exec(e));return t.lastIndex=e.lastIndex,t},kn=v?v.prototype:void 0,Rn=kn?kn.valueOf:void 0;var Nn=function(e){return Rn?Object(Rn.call(e)):{}};var Tn=function(e,t){var r=t?xn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},Cn="[object Boolean]",In="[object Date]",zn="[object Map]",Ln="[object Number]",Un="[object RegExp]",Fn="[object Set]",Mn="[object String]",Bn="[object Symbol]",Hn="[object ArrayBuffer]",$n="[object DataView]",Vn="[object Float32Array]",Yn="[object Float64Array]",Wn="[object Int8Array]",qn="[object Int16Array]",Gn="[object Int32Array]",Jn="[object Uint8Array]",Kn="[object Uint8ClampedArray]",Qn="[object Uint16Array]",Xn="[object Uint32Array]";var Zn=function(e,t,r){var n=e.constructor;switch(t){case Hn:return xn(e);case Cn:case In:return new n(+e);case $n:return An(e,r);case Vn:case Yn:case Wn:case qn:case Gn:case Jn:case Kn:case Qn:case Xn:return Tn(e,r);case zn:return new n;case Ln:case Mn:return new n(e);case Un:return Pn(e);case Fn:return new n;case Bn:return Nn(e)}},eo=Object.create,to=function(){function e(){}return function(t){if(!S(t))return{};if(eo)return eo(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var ro=function(e){return"function"!=typeof e.constructor||_e(e)?{}:to(_n(e))},no="[object Map]";var oo=function(e){return K(e)&&sr(e)==no},ao=ye&&ye.isMap,co=ao?ve(ao):oo,io="[object Set]";var uo=function(e){return K(e)&&sr(e)==io},fo=ye&&ye.isSet,so=fo?ve(fo):uo,lo=1,po=2,vo=4,yo="[object Arguments]",ho="[object Function]",bo="[object GeneratorFunction]",go="[object Object]",jo={};jo[yo]=jo["[object Array]"]=jo["[object ArrayBuffer]"]=jo["[object DataView]"]=jo["[object Boolean]"]=jo["[object Date]"]=jo["[object Float32Array]"]=jo["[object Float64Array]"]=jo["[object Int8Array]"]=jo["[object Int16Array]"]=jo["[object Int32Array]"]=jo["[object Map]"]=jo["[object Number]"]=jo[go]=jo["[object RegExp]"]=jo["[object Set]"]=jo["[object String]"]=jo["[object Symbol]"]=jo["[object Uint8Array]"]=jo["[object Uint8ClampedArray]"]=jo["[object Uint16Array]"]=jo["[object Uint32Array]"]=!0,jo["[object Error]"]=jo[ho]=jo["[object WeakMap]"]=!1;var _o=function e(t,r,n,o,a,c){var i,u=r&lo,f=r&po,s=r&vo;if(n&&(i=a?n(t,o,a,c):n(t)),void 0!==i)return i;if(!S(t))return t;var l=ne(t);if(l){if(i=Sn(t),!u)return gn(t,i)}else{var p=sr(t),v=p==ho||p==bo;if(ae(t))return bn(t,u);if(p==go||p==yo||v&&!a){if(i=f||v?{}:ro(t),!u)return f?On(t,dn(i,t)):jn(t,ln(i,t))}else{if(!jo[p])return a?t:{};i=Zn(t,p,u)}}c||(c=new vt);var y=c.get(t);if(y)return y;if(c.set(t,i),so(t))return t.forEach(function(o){i.add(e(o,r,n,o,t,c))}),i;if(co(t))return t.forEach(function(o,a){i.set(a,e(o,r,n,a,t,c))}),i;var h=s?f?wn:Kt:f?keysIn:xe,d=l?void 0:h(t);return cn(d||t,function(o,a){d&&(o=t[a=o]),fn(i,a,e(o,r,n,a,t,c))}),i};var mo=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var Oo=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a};var wo=function(e,t){return t.length<2?e:Wr(e,Oo(t,0,-1))};var Eo=function(e,t){return t=$r(t,e),null==(e=wo(e,t))||delete e[Yr(mo(t))]},So="[object Object]",xo=Function.prototype,Ao=Object.prototype,Do=xo.toString,Po=Ao.hasOwnProperty,ko=Do.call(Object);var Ro=function(e){if(!K(e)||E(e)!=So)return!1;var t=_n(e);if(null===t)return!0;var r=Po.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Do.call(r)==ko};var No=function(e){return Ro(e)?void 0:e},To=v?v.isConcatSpreadable:void 0;var Co=function(e){return ne(e)||re(e)||!!(To&&e&&e[To])};var Io=function e(t,r,n,o,a){var c=-1,i=t.length;for(n||(n=Co),a||(a=[]);++c<i;){var u=t[c];r>0&&n(u)?r>1?e(u,r-1,n,o,a):$t(a,u):o||(a[a.length]=u)}return a};var zo=function(e){return null!=e&&e.length?Io(e,1):[]};var Lo=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Uo=Math.max;var Fo=function(e,t,r){return t=Uo(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Uo(n.length-t,0),c=Array(a);++o<a;)c[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(c),Lo(e,this,i)}};var Mo=function(e){return function(){return e}},Bo=W?function(e,t){return W(e,"toString",{configurable:!0,enumerable:!1,value:Mo(t),writable:!0})}:en,Ho=800,$o=16,Vo=Date.now;var Yo=function(e){var t=0,r=0;return function(){var n=Vo(),o=$o-(n-r);if(r=n,o>0){if(++t>=Ho)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Bo);var Wo=function(e){return Yo(Fo(e,void 0,zo),e+"")}(function(e,t){var r={};if(null==e)return r;var n=!1;t=Lr(t,function(t){return t=$r(t,e),n||(n=t.length>1),t}),sn(e,wn(e),r),n&&(r=_o(r,7,No));for(var o=t.length;o--;)Eo(r,t[o]);return r});var qo=function(e,t){return Yo(Fo(e,t,en),e+"")};var Go,Jo=function(e,t,r){if(!S(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&ue(t,r.length):"string"==n&&t in r)&&Pe(r[t],e)},Ko=Object.prototype,Qo=Ko.hasOwnProperty,Xo=qo(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&Jo(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],c=hn(a),i=-1,u=c.length;++i<u;){var f=c[i],s=e[f];(void 0===s||Pe(s,Ko[f])&&!Qo.call(e,f))&&(e[f]=a[f])}return e}),Zo={different:"different",deepEquals:"deepEquals",date:"date",regex:"regex",reactElement:"reactElement",function:"function"},ea="http://bit.ly/wdyr02",ta="http://bit.ly/wdyr3",ra=(t(Go={},Zo.different,"different objects."),t(Go,Zo.deepEquals,"different objects that are equal by value."),t(Go,Zo.date,"different date objects with the same value."),t(Go,Zo.regex,"different regular expressions with the same value."),t(Go,Zo.reactElement,"different React elements with the same displayName."),t(Go,Zo.function,"different functions with the same name."),Go),na=!1;function oa(e){var r=e.Component,n=e.displayName,o=e.hookName,a=e.prefixMessage,c=e.diffObjType,i=e.differences,u=e.values,f=e.options;i&&i.length>0?(f.consoleLog(t({},n,r),"".concat(a," of ").concat(c," changes:")),i.forEach(function(e){var r=e.pathString,n=e.diffType,a=e.prevValue,i=e.nextValue;f.consoleGroup("%c".concat("hook"===c?"hook ".concat(o," "):"".concat(c,"."),"%c").concat(r,"%c"),"color:".concat(f.diffNameColor,";"),"color:".concat(f.diffPathColor,";"),"color:default;"),f.consoleLog("".concat(ra[n]," (more info at ").concat(o?ta:ea,")")),f.consoleLog(t({},"prev ".concat(r),a),"!==",t({},"next ".concat(r),i)),f.consoleGroupEnd()})):i&&(f.consoleLog(t({},n,r),"".concat(a," the ").concat(c," object itself changed but it's values are all equal."),"props"===c?"This could of been avoided by making the component pure, or by preventing it's father from re-rendering.":"This usually means this component called setState when no changes in it's state actually occurred.","more info at ".concat(ea)),f.consoleLog("prev ".concat(c,":"),u.prev," !== ",u.next,":next ".concat(c)))}function aa(e){var r=e.Component,n=e.displayName,o=e.hookName,a=e.prevProps,c=e.prevState,i=e.prevHook,u=e.nextProps,f=e.nextState,s=e.nextHook,l=e.reason,p=e.options;if(function(e,t,r){return!(na||!r.logOnDifferentValues&&(!t.whyDidYouRender||!t.whyDidYouRender.logOnDifferentValues)&&(e.propsDifferences&&e.propsDifferences.some(function(e){return e.diffType===Zo.different})||e.stateDifferences&&e.stateDifferences.some(function(e){return e.diffType===Zo.different})||e.hookDifferences&&e.hookDifferences.some(function(e){return e.diffType===Zo.different})))}(l,r,p)){p.consoleGroup("%c".concat(n),"color: ".concat(p.titleColor,";"));var v="Re-rendered because";l.propsDifferences&&(oa({Component:r,displayName:n,prefixMessage:v,diffObjType:"props",differences:l.propsDifferences,values:{prev:a,next:u},options:p}),v="And because"),l.stateDifferences&&oa({Component:r,displayName:n,prefixMessage:v,diffObjType:"state",differences:l.stateDifferences,values:{prev:c,next:f},options:p}),l.hookDifferences&&oa({Component:r,displayName:n,prefixMessage:v,diffObjType:"hook",differences:l.hookDifferences,values:{prev:i,next:s},hookName:o,options:p}),l.propsDifferences||l.stateDifferences||l.hookDifferences||p.consoleLog(t({},n,r),"Re-rendered although props and state objects are the same.","This usually means there was a call to this.forceUpdate() inside the component.","more info at ".concat(ea)),p.consoleGroupEnd()}}var ca=function(){};function ia(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=console.group,o=console.groupEnd;return t.collapseGroups?n=console.groupCollapsed:t.onlyLogs&&(n=console.log,o=ca),r({include:null,exclude:null,notifier:t.notifier||((e=t.hasOwnProperty("hotReloadBufferMs")?t.hotReloadBufferMs:500)&&module&&module.hot&&module.hot.addStatusHandler&&module.hot.addStatusHandler(function(t){"idle"===t&&(na=!0,setTimeout(function(){na=!1},e))}),aa),onlyLogs:!1,consoleLog:console.log,consoleGroup:n,consoleGroupEnd:o,logOnDifferentValues:!1,trackHooks:!0,titleColor:"#058",diffNameColor:"blue",diffPathColor:"red"},t)}var ua="[object String]";var fa=function(e){return"string"==typeof e||!ne(e)&&K(e)&&E(e)==ua};function sa(e){return e.displayName||e.name||e.type&&sa(e.type)||(fa(e)?e:void 0)}var la=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var pa=function(e,t){return function(r,n){if(null==r)return r;if(!Se(r))return e(r,n);for(var o=r.length,a=t?o:-1,c=Object(r);(t?a--:++a<o)&&!1!==n(c[a],a,c););return r}}(Ae);var va=function(e,t,r,n,o){return o(e,function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)}),r};var ya=function(e,t,r){var n=ne(e)?la:va,o=arguments.length<3;return n(e,on(t,4),r,o,pa)},ha=Object.prototype.hasOwnProperty;var da=function(e,t){return null!=e&&ha.call(e,t)};var ba=function(e,t){return null!=e&&Jr(e,t,da)},ga="[object RegExp]";var ja=function(e){return K(e)&&E(e)==ga},_a=ye&&ye.isRegExp,ma=_a?ve(_a):ja,Oa="[object Date]";var wa=function(e){return K(e)&&E(e)==Oa},Ea=ye&&ye.isDate,Sa=Ea?ve(Ea):wa,xa="undefined"!=typeof Element,Aa="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,Da=function(e){return e.$$typeof===Aa};function Pa(e,t,r,n,o){return r.push({diffType:o,pathString:n,prevValue:e,nextValue:t}),o!==Zo.different}function ka(e,t,r){try{var n=[];return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t===r)return!0;if(!t||!r)return Pa(t,r,n,o,Zo.different);if(ne(t)&&ne(r)){var a=t.length;if(a!==r.length)return Pa(t,r,n,o,Zo.different);for(var c=!0,i=a;0!=i--;)e(t[i],r[i],n,"".concat(o,"[").concat(i,"]"))||(c=!1);return Pa(t,r,n,o,c?Zo.deepEquals:Zo.different)}if(Sa(t)&&Sa(r))return t.getTime()===r.getTime()?Pa(t,r,n,o,Zo.date):Pa(t,r,n,o,Zo.different);if(ma(t)&&ma(r))return t.toString()===r.toString()?Pa(t,r,n,o,Zo.regex):Pa(t,r,n,o,Zo.different);if(xa&&t instanceof Element&&r instanceof Element)return Pa(t,r,n,o,Zo.different);if(Da(t)&&Da(r))return t.type===r.type?Pa(t,r,n,o,Zo.reactElement):Pa(t,r,n,o,Zo.different);if(R(t)&&R(r))return t.name===r.name?Pa(t,r,n,o,Zo.function):Pa(t,r,n,o,Zo.different);if(Ro(t)&&Ro(r)){var u=xe(t),f=u.length;if(f!==xe(r).length)return Pa(t,r,n,o,Zo.different);for(var s=f;0!=s--;)if(!ba(r,u[s]))return Pa(t,r,n,o,Zo.different);for(var l=!0,p=f;0!=p--;){var v=u[p];e(t[v],r[v],n,"".concat(o,".").concat(v))||(l=!1)}return Pa(t,r,n,o,l?Zo.deepEquals:Zo.different)}return Pa(t,r,n,o,Zo.different)}(e,t,n,r),n}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: why-did-you-render couldn't handle circular references in props.",e.name,e.message),!1;throw e}}var Ra={};function Na(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).shallow;if(e===t)return!1;if(!(void 0===n||n))return ka(e,t);var o=e||Ra,a=t||Ra,c=Object.keys(r({},o,a));return ya(c,function(e,t){var r=ka(o[t],a[t],t);return r&&(e=[].concat(i(e),i(r))),e},[])}function Ta(e,t,r,n,o,a){return{propsDifferences:Na(e,n),stateDifferences:Na(t,o),hookDifferences:Na(r,a,{shallow:!1})}}function Ca(e){var t=e.Component,r=e.displayName,n=e.hookName,o=e.prevProps,a=e.prevState,c=e.prevHook,i=e.nextProps,u=e.nextState,f=e.nextHook;return{Component:t,displayName:r,hookName:n,prevProps:o,prevState:a,prevHook:c,nextProps:i,nextState:u,nextHook:f,options:e.options,reason:Ta(o,a,c,i,u,f)}}function Ia(e,t,r){return!function(e,t){return t.exclude&&t.exclude.length>0&&t.exclude.some(function(t){return t.test(e)})}(t,r)&&!(!e.whyDidYouRender&&!function(e,t){return t.include&&t.include.length>0&&t.include.some(function(t){return t.test(e)})}(t,r))}var za="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115;function La(t,r,i,u){var f=function(i){function f(e,r){var o,c,i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),c=this,i=n(f).call(this,e,r),(o=!i||"object"!=typeof i&&"function"!=typeof i?a(c):i).render&&!t.prototype.render){var u=o.render;o.render=function(){return f.prototype.render.apply(a(o)),u()}}return o}var s,l,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(f,t),s=f,(l=[{key:"render",value:function(){return this._prevProps&&u.notifier(Ca({Component:t,displayName:r,prevProps:this._prevProps,prevState:this._prevState,nextProps:this.props,nextState:this.state,options:u})),this._prevProps=this.props,this._prevState=this.state,c(n(f.prototype),"render",this)&&c(n(f.prototype),"render",this).call(this)}}])&&e(s.prototype,l),p&&e(s,p),f}();return f.displayName=r,Xo(f,t),f}function Ua(e,t,r,n,o){return t.$$typeof===za?function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=Ca({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&i.reason.propsDifferences.length>0&&n.notifier(i)}return e.type(o)}var a=r.memo(o),c=Wo(e,Object.keys(a));return o.displayName=t,Xo(o,c),a.displayName=t,Xo(a,e),a}(t,r,n,o):t.prototype&&t.prototype.isReactComponent?La(t,r,0,o):function(e,t,r,n){function o(o){var a=r.useRef(),c=a.current;if(a.current=o,c){var i=Ca({Component:e,displayName:t,prevProps:c,nextProps:o,options:n});i.reason.propsDifferences&&n.notifier(i)}return e(o)}return o.displayName=t,Xo(o,e),o}(t,r,n,o)}var Fa={useState:{path:"0"},useReducer:{path:"0"},useContext:!0,useMemo:!0};return function(e,t){var n,o=ia(t),a=e.createElement,c=e.createFactory,i=new WeakMap;if(e.createElement=function(t){for(var r=("function"==typeof t||t.$$typeof===za)&&Ia(t,sa(t),o),n=arguments.length,c=new Array(n>1?n-1:0),u=1;u<n;u++)c[u-1]=arguments[u];if(!r)return a.apply(e,[t].concat(c));var f=t&&t.whyDidYouRender&&t.whyDidYouRender.customName||sa(t),s=function(e,t,r,n,o){if(e.has(t))return e.get(t);var a=Ua(0,t,r,n,o);return e.set(t,a),a}(i,t,f,e,o);return a.apply(e,[s].concat(c))},Object.assign(e.createElement,a),e.createFactory=function(t){var r=e.createElement.bind(null,t);return r.type=t,r},Object.assign(e.createFactory,c),o.trackHooks){var u=an(Fa,function(t,r){return function(){var a=n[r];if(!a)throw new Error("[WhyDidYouRender] A problem with React Hooks patching occurred.");var c=a.apply(void 0,arguments);return t&&function(e,t,r,n,o){var a=t.path,c=r,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current.type,u=sa(i);if(!Ia(i,u,o))return c;var f=n.useRef(),s=f.current;if(f.current=c,s){var l=Ca({Component:i,displayName:u,hookName:e,prevHook:a?qr(s,a):s,nextHook:a?qr(c,a):c,options:o});l.reason.hookDifferences&&o.notifier(l)}f.current}(r,!0===t?{}:t,c,e,o),c}});Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{set:function(e){n=e&&r({},e,e.origHooks)},get:function(){return n&&r({},n,u,{origHooks:n})}})}return e.__REVERT_WHY_DID_YOU_RENDER__=function(){Object.assign(e,{createElement:a,createFactory:c}),i=null,Object.defineProperty(e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{writable:!0,value:n}),delete e.__REVERT_WHY_DID_YOU_RENDER__},e}});
//# sourceMappingURL=whyDidYouRender.min.js.map
{
"name": "@welldone-software/why-did-you-render",
"version": "3.0.1",
"version": "3.0.2",
"description": "Monkey patches React to notify you about avoidable re-renders.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/whyDidYouRender.min.js",

@@ -320,2 +320,82 @@ import React, {useState, useLayoutEffect} from 'react'

test('many deep equals direct import', () => {
const ComponentWithHooks = ({a}) => {
const [currentStateA, setCurrentStateA] = useState({a: 'a'})
const [currentStateB, setCurrentStateB] = useState({b: 'b'})
const [currentStateC, setCurrentStateC] = useState({c: 'c'})
const [currentStateD, setCurrentStateD] = useState({d: 'd'})
const [currentStateE, setCurrentStateE] = useState({e: 'e'})
useLayoutEffect(() => {
setCurrentStateA({a: 'a'})
setCurrentStateB({b: 'b'})
setCurrentStateC({c: 'c'})
setCurrentStateD({d: 'd'})
setCurrentStateE({e: 'e'})
}, [])
return (
<div>hi! {a} {currentStateA.a} {currentStateB.b} {currentStateC.c} {currentStateD.d} {currentStateE.e}</div>
)
}
ComponentWithHooks.whyDidYouRender = true
TestRenderer.create(
<ComponentWithHooks a={1}/>
)
expect(updateInfos).toHaveLength(5)
expect(updateInfos[0].reason).toEqual({
hookDifferences: [{
diffType: diffTypes.deepEquals,
pathString: '',
nextValue: {a: 'a'},
prevValue: {a: 'a'}
}],
propsDifferences: false,
stateDifferences: false
})
expect(updateInfos[1].reason).toEqual({
hookDifferences: [{
diffType: diffTypes.deepEquals,
pathString: '',
nextValue: {b: 'b'},
prevValue: {b: 'b'}
}],
propsDifferences: false,
stateDifferences: false
})
expect(updateInfos[2].reason).toEqual({
hookDifferences: [{
diffType: diffTypes.deepEquals,
pathString: '',
nextValue: {c: 'c'},
prevValue: {c: 'c'}
}],
propsDifferences: false,
stateDifferences: false
})
expect(updateInfos[3].reason).toEqual({
hookDifferences: [{
diffType: diffTypes.deepEquals,
pathString: '',
nextValue: {d: 'd'},
prevValue: {d: 'd'}
}],
propsDifferences: false,
stateDifferences: false
})
expect(updateInfos[4].reason).toEqual({
hookDifferences: [{
diffType: diffTypes.deepEquals,
pathString: '',
nextValue: {e: 'e'},
prevValue: {e: 'e'}
}],
propsDifferences: false,
stateDifferences: false
})
})
test('deep equals functional use', () => {

@@ -322,0 +402,0 @@ const ComponentWithHooks = ({a}) => {

@@ -247,9 +247,13 @@ import {defaults, omit, get, mapValues} from 'lodash'

{
set(_origHooks){
origHooks = _origHooks
set(newHooks){
origHooks = newHooks && {
...newHooks,
...newHooks.origHooks
}
},
get(){
return {
return origHooks && {
...origHooks,
...patchedHooks
...patchedHooks,
origHooks
}

@@ -256,0 +260,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc