UNPKG

react-to-target-auto-scroll

Version:

A React auto scroll component which scrolls to a given target position, supports linear and eased scrolling

23 lines 60.4 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):"object"==typeof exports?exports.ReactAutoScroll=t():e.ReactAutoScroll=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports=n(24)},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?y=d.concat(y):v=-1,y.length&&c())}function c(){if(!m){var e=o(a);m=!0;for(var t=y.length;t;){for(d=y,y=[];++v<t;)d&&d[v].run();v=-1,t=y.length}d=null,m=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function s(){}var l,f,p=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,y=[],m=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];y.push(new u(e,t)),1!==y.length||m||o(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.prependListener=s,p.prependOnceListener=s,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,i,a,c,u){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,c,u],f=0;s=new Error(t.replace(/%s/g,function(){return l[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(16),o=r;if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(a){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=o}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){if("production"!==t.env.NODE_ENV&&d.call(e,"ref")){var n=Object.getOwnPropertyDescriptor(e,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==e.ref}function o(e){if("production"!==t.env.NODE_ENV&&d.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}function i(e,n){var r=function(){c||(c=!0,"production"!==t.env.NODE_ENV?f(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",n):void 0)};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function a(e,n){var r=function(){u||(u=!0,"production"!==t.env.NODE_ENV?f(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",n):void 0)};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}var c,u,s=n(6),l=n(8),f=n(3),p=n(9),d=Object.prototype.hasOwnProperty,y=n(20),m={key:!0,ref:!0,__self:!0,__source:!0},v=function(e,n,r,o,i,a,c){var u={$$typeof:y,type:e,key:n,ref:r,props:c,_owner:a};return"production"!==t.env.NODE_ENV&&(u._store={},p?(Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i})):(u._store.validated=!1,u._self=o,u._source=i),Object.freeze&&(Object.freeze(u.props),Object.freeze(u))),u};v.createElement=function(e,n,c){var u,s={},f=null,p=null,h=null,g=null;if(null!=n){r(n)&&(p=n.ref),o(n)&&(f=""+n.key),h=void 0===n.__self?null:n.__self,g=void 0===n.__source?null:n.__source;for(u in n)d.call(n,u)&&!m.hasOwnProperty(u)&&(s[u]=n[u])}var b=arguments.length-2;if(1===b)s.children=c;else if(b>1){for(var E=Array(b),_=0;b>_;_++)E[_]=arguments[_+2];"production"!==t.env.NODE_ENV&&Object.freeze&&Object.freeze(E),s.children=E}if(e&&e.defaultProps){var N=e.defaultProps;for(u in N)void 0===s[u]&&(s[u]=N[u])}if("production"!==t.env.NODE_ENV&&(f||p)&&("undefined"==typeof s.$$typeof||s.$$typeof!==y)){var O="function"==typeof e?e.displayName||e.name||"Unknown":e;f&&i(s,O),p&&a(s,O)}return v(e,f,p,h,g,l.current,s)},v.createFactory=function(e){var t=v.createElement.bind(null,e);return t.type=e,t},v.cloneAndReplaceKey=function(e,t){var n=v(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},v.cloneElement=function(e,t,n){var i,a=s({},e.props),c=e.key,u=e.ref,f=e._self,p=e._source,y=e._owner;if(null!=t){r(t)&&(u=t.ref,y=l.current),o(t)&&(c=""+t.key);var h;e.type&&e.type.defaultProps&&(h=e.type.defaultProps);for(i in t)d.call(t,i)&&!m.hasOwnProperty(i)&&(void 0===t[i]&&void 0!==h?a[i]=h[i]:a[i]=t[i])}var g=arguments.length-2;if(1===g)a.children=n;else if(g>1){for(var b=Array(g),E=0;g>E;E++)b[E]=arguments[E+2];a.children=b}return v(e.type,c,u,f,p,y,a)},v.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===y},e.exports=v}).call(t,n(1))},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;t>r;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=n},function(e,t){/* object-assign (c) Sindre Sorhus @license MIT */ "use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;10>n;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join("")?!1:!0}catch(i){return!1}}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,c,u=n(e),s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var l in r)i.call(r,l)&&(u[l]=r[l]);if(o){c=o(r);for(var f=0;f<c.length;f++)a.call(r,c[f])&&(u[c[f]]=r[c[f]])}}return u}},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){(function(t){"use strict";var n=!1;if("production"!==t.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),n=!0}catch(r){}e.exports=n}).call(t,n(1))},function(e,t){var n=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(e,t,n){(function(t){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=t.call(e);return r.test(o)}catch(i){return!1}}function o(e){var t=s(e);if(t){var n=t.childIDs;l(e),n.forEach(o)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function c(e){var n,r=D.getDisplayName(e),o=D.getElement(e),a=D.getOwnerID(e);return a&&(n=D.getDisplayName(a)),"production"!==t.env.NODE_ENV?g(o,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",e):void 0,i(r,o&&o._source,n)}var u,s,l,f,p,d,y,m=n(5),v=n(8),h=n(2),g=n(3),b="function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys);if(b){var E=new Map,_=new Set;u=function(e,t){E.set(e,t)},s=function(e){return E.get(e)},l=function(e){E["delete"](e)},f=function(){return Array.from(E.keys())},p=function(e){_.add(e)},d=function(e){_["delete"](e)},y=function(){return Array.from(_.keys())}}else{var N={},O={},S=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};u=function(e,t){var n=S(e);N[n]=t},s=function(e){var t=S(e);return N[t]},l=function(e){var t=S(e);delete N[t]},f=function(){return Object.keys(N).map(w)},p=function(e){var t=S(e);O[t]=!0},d=function(e){var t=S(e);delete O[t]},y=function(){return Object.keys(O).map(w)}}var x=[],D={onSetChildren:function(e,n){var r=s(e);r?void 0:"production"!==t.env.NODE_ENV?h(!1,"Item must have been set"):m("144"),r.childIDs=n;for(var o=0;o<n.length;o++){var i=n[o],a=s(i);a?void 0:"production"!==t.env.NODE_ENV?h(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."):m("140"),null==a.childIDs&&"object"==typeof a.element&&null!=a.element?"production"!==t.env.NODE_ENV?h(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."):m("141"):void 0,a.isMounted?void 0:"production"!==t.env.NODE_ENV?h(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."):m("71"),null==a.parentID&&(a.parentID=e),a.parentID!==e?"production"!==t.env.NODE_ENV?h(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",i,a.parentID,e):m("142",i,a.parentID,e):void 0}},onBeforeMountComponent:function(e,t,n){var r={element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};u(e,r)},onBeforeUpdateComponent:function(e,t){var n=s(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var n=s(e);n?void 0:"production"!==t.env.NODE_ENV?h(!1,"Item must have been set"):m("144"),n.isMounted=!0;var r=0===n.parentID;r&&p(e)},onUpdateComponent:function(e){var t=s(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=s(e);if(t){t.isMounted=!1;var n=0===t.parentID;n&&d(e)}x.push(e)},purgeUnmountedComponents:function(){if(!D._preventPurging){for(var e=0;e<x.length;e++){var t=x[e];o(t)}x.length=0}},isMounted:function(e){var t=s(e);return t?t.isMounted:!1},getCurrentStackAddendum:function(e){var t="";if(e){var n=a(e),r=e._owner;t+=i(n,e._source,r&&r.getName())}var o=v.current,c=o&&o._debugID;return t+=D.getStackAddendumByID(c)},getStackAddendumByID:function(e){for(var t="";e;)t+=c(e),e=D.getParentID(e);return t},getChildIDs:function(e){var t=s(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=D.getElement(e);return t?a(t):null},getElement:function(e){var t=s(e);return t?t.element:null},getOwnerID:function(e){var t=D.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=s(e);return t?t.parentID:null},getSource:function(e){var t=s(e),n=t?t.element:null,r=null!=n?n._source:null;return r},getText:function(e){var t=D.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=s(e);return t?t.updateCount:0},getRootIDs:y,getRegisteredIDs:f,pushNonStandardWarningStack:function(e,t){if("function"==typeof console.reactStack){var n=[],r=v.current,o=r&&r._debugID;try{for(e&&n.push({name:o?D.getDisplayName(o):null,fileName:t?t.fileName:null,lineNumber:t?t.lineNumber:null});o;){var i=D.getElement(o),a=D.getParentID(o),c=D.getOwnerID(o),u=c?D.getDisplayName(c):null,s=i&&i._source;n.push({name:u,fileName:s?s.fileName:null,lineNumber:s?s.lineNumber:null}),o=a}}catch(l){}console.reactStack(n)}},popNonStandardWarningStack:function(){"function"==typeof console.reactStackEnd&&console.reactStackEnd()}};e.exports=D}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var n=function(){};if("production"!==t.env.NODE_ENV){var r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(a){}};n=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;n>i;i++)o[i-2]=arguments[i];r.apply(void 0,[t].concat(o))}}}e.exports=n}).call(t,n(1))},function(e,t,n){var r=n(39);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(44),o=n(10),i=n(13),a="prototype",c=function(e,t,n){var u,s,l,f=e&c.F,p=e&c.G,d=e&c.S,y=e&c.P,m=e&c.B,v=e&c.W,h=p?o:o[t]||(o[t]={}),g=p?r:d?r[t]:(r[t]||{})[a];p&&(n=t);for(u in n)s=!f&&g&&u in g,s&&u in h||(l=s?g[u]:n[u],h[u]=p&&"function"!=typeof g[u]?n[u]:m&&s?i(l,r):v&&g[u]==l?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[a]=e[a],t}(l):y&&"function"==typeof l?i(Function.call,l):l,y&&((h[a]||(h[a]={}))[u]=l))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,e.exports=c},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(1))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||u}function o(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||u}function i(){}var a=n(5),c=n(6),u=n(22),s=n(9),l=n(17),f=n(2),p=n(12);if(r.prototype.isReactComponent={},r.prototype.setState=function(e,n){"object"!=typeof e&&"function"!=typeof e&&null!=e?"production"!==t.env.NODE_ENV?f(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):a("85"):void 0,this.updater.enqueueSetState(this,e),n&&this.updater.enqueueCallback(this,n,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")},"production"!==t.env.NODE_ENV){var d={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},y=function(e,t){s&&Object.defineProperty(r.prototype,e,{get:function(){return void p(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var m in d)d.hasOwnProperty(m)&&y(m,d[m])}i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,c(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}}).call(t,n(1))},function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;e.exports=n},function(e,t,n){(function(t){"use strict";function r(){if(s.current){var e=s.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){if(null!==e&&void 0!==e&&void 0!==e.__source){var t=e.__source,n=t.fileName.replace(/^.*[\\\/]/,""),r=t.lineNumber;return" Check your code at "+n+":"+r+"."}return""}function i(e){var t=r();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t=" Check the top-level render call using <"+n+">.")}return t}function a(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=h.uniqueKey||(h.uniqueKey={}),o=i(n);if(!r[o]){r[o]=!0;var a="";e&&e._owner&&e._owner!==s.current&&(a=" It was passed a child from "+e._owner.getName()+"."),"production"!==t.env.NODE_ENV?m(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',o,a,l.getCurrentStackAddendum(e)):void 0}}}function c(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];f.isValidElement(r)&&a(r,t)}else if(f.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var o=y(e);if(o&&o!==e.entries)for(var i,c=o.call(e);!(i=c.next()).done;)f.isValidElement(i.value)&&a(i.value,t)}}function u(e){var n=e.type;if("function"==typeof n){var r=n.displayName||n.name;n.propTypes&&p(n.propTypes,e.props,"prop",r,e,null),"function"==typeof n.getDefaultProps&&("production"!==t.env.NODE_ENV?m(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var s=n(8),l=n(11),f=n(4),p=n(67),d=n(9),y=n(23),m=n(3),v=n(12),h={},g={createElement:function(e,n,i){var a="string"==typeof e||"function"==typeof e;if(!a&&"function"!=typeof e&&"string"!=typeof e){var s="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(s+=" You likely forgot to export your component from the file it's defined in.");var p=o(n);s+=p?p:r(),s+=l.getCurrentStackAddendum();var d=null!==n&&void 0!==n&&void 0!==n.__source?n.__source:null;l.pushNonStandardWarningStack(!0,d),"production"!==t.env.NODE_ENV?m(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==e?e:typeof e,s):void 0,l.popNonStandardWarningStack()}var y=f.createElement.apply(this,arguments);if(null==y)return y;if(a)for(var v=2;v<arguments.length;v++)c(arguments[v],e);return u(y),y},createFactory:function(e){var n=g.createElement.bind(null,e);return n.type=e,"production"!==t.env.NODE_ENV&&d&&Object.defineProperty(n,"type",{enumerable:!1,get:function(){return v(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),n},cloneElement:function(e,t,n){for(var r=f.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)c(arguments[o],r.type);return u(r),r}};e.exports=g}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,n){if("production"!==t.env.NODE_ENV){var r=e.constructor;"production"!==t.env.NODE_ENV?o(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",n,n,r&&(r.displayName||r.name)||"ReactClass"):void 0}}var o=n(3),i={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}};e.exports=i}).call(t,n(1))},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";var r=n(32)["default"],o=n(33)["default"],i=n(31)["default"],a=n(30)["default"],c=n(34)["default"];Object.defineProperty(t,"__esModule",{value:!0});var u=n(71),s=c(u),l=n(25),f=function(e){function t(){a(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return o(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.canScroll(this.props);this.props.scrollTargetRef&&!e?console.log("please check your scrollTargetRef ("+this.props.scrollTargetRef+"), a scrollTop can not be found!"):this.props.isEnabled?this.doScrollAction():this.resetAndStopScrolling()}},{key:"componentDidUpdate",value:function(){this.props.isEnabled?this.doScrollAction():this.resetAndStopScrolling()}},{key:"canScroll",value:function(e){if(!e.scrollTargetRef)return!1;var t=this.getScrollTargetRef(e);return t&&null!==t.scrollTop&&void 0!==t.scrollTop?!0:!1}},{key:"doScrollAction",value:function(){var e=this;this.props.targetPosition>=0&&!this.isAtScrollTarget(this.getScrollTargetRef(this.props),this.props.targetPosition)&&(this.isScrolling=!0,this.scrollIntervalId&&clearInterval(this.scrollIntervalId),this.scrollIntervalId=setInterval(function(){return e.scrollToTarget(e.props)},this.props.updateInterval))}},{key:"resetAndStopScrolling",value:function(){this.stopScrolling(),this.currentIndexToScrollTo=null}},{key:"getScrollTargetRef",value:function(e){return e.scrollTargetRef?e.scrollTargetRef.refs?e.scrollTargetRef.refs.scrollable:e.scrollTargetRef:null}},{key:"stopScrolling",value:function(){this.isScrolling=!1,this.scrollIntervalId&&clearInterval(this.scrollIntervalId)}},{key:"isAtScrollTarget",value:function(e,t){return e&&e.scrollTop?Math.abs(e.scrollTop-t)<=2:!1}},{key:"scrollToTarget",value:function(e){if(this.canScroll(e)){var t=this.getScrollTargetRef(e);this.isScrolling&&(t.scrollTop=l.calculateScrollPosition(t.scrollTop,e.targetPosition,e.speed,e.easeType),this.isAtScrollTarget(t,e.targetPosition)&&(t.scrollTop=e.targetPosition,this.props.onScrollingDone(),this.stopScrolling()))}}},{key:"render",value:function(){return s["default"].createElement("div",{className:"autoscrollcomponent"},this.props.children)}}]),t}(u.Component);t["default"]=f,e.exports=t["default"]},function(e,t){"use strict";function n(e){return e.speed}function r(e){var t=Math.abs(e.distance)*e.speed;return Math.max(t,2)}function o(e){return Math.abs(e.distance)<=1.5*e.speed?!0:!1}function i(e,t,i,a){var c=t-e,u={speed:i,distance:c};if(o(u))return t;var s=0;s="linear"===a?n(u):r(u);var l=c>0?1:-1;return e+s*l}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateScrollPosition=i},function(e,t,n){e.exports={"default":n(35),__esModule:!0}},function(e,t,n){e.exports={"default":n(36),__esModule:!0}},function(e,t,n){e.exports={"default":n(37),__esModule:!0}},function(e,t,n){e.exports={"default":n(38),__esModule:!0}},function(e,t){"use strict";t["default"]=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.__esModule=!0},function(e,t,n){"use strict";var r=n(27)["default"];t["default"]=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(e,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),t.__esModule=!0},function(e,t,n){"use strict";var r=n(28)["default"];t["default"]=function(e,t,n){for(var o=!0;o;){var i=e,a=t,c=n;o=!1,null===i&&(i=Function.prototype);var u=r(i,a);if(void 0!==u){if("value"in u)return u.value;var s=u.get;return void 0===s?void 0:s.call(c)}var l=Object.getPrototypeOf(i);if(null===l)return void 0;e=l,t=a,n=c,o=!0,u=l=void 0}},t.__esModule=!0},function(e,t,n){"use strict";var r=n(26)["default"],o=n(29)["default"];t["default"]=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=r(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o?o(e,t):e.__proto__=t)},t.__esModule=!0},function(e,t){"use strict";t["default"]=function(e){return e&&e.__esModule?e:{"default":e}},t.__esModule=!0},function(e,t,n){var r=n(7);e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){return r.setDesc(e,t,n)}},function(e,t,n){var r=n(7);n(49),e.exports=function(e,t){return r.getDesc(e,t)}},function(e,t,n){n(50),e.exports=n(10).Object.setPrototypeOf},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(41);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(14),o=n(10),i=n(43);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(7).getDesc,o=n(15),i=n(40),a=function(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(13)(Function.call,r(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(45),o=n(42);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(48);n(46)("getOwnPropertyDescriptor",function(e){return function(t,n){return e(r(t),n)}})},function(e,t,n){var r=n(14);r(r.S,"Object",{setPrototypeOf:n(47).set})},function(e,t,n){(function(t){"use strict";function r(e){return e}function o(e,n,o){function f(e,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==t.env.NODE_ENV&&u("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",s[r],o)}function p(e,t){var n=N.hasOwnProperty(t)?N[t]:null;D.hasOwnProperty(t)&&c("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&c("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,r){if(r){c("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),c(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,i=o.__reactAutoBindPairs;r.hasOwnProperty(l)&&S.mixins(e,r.mixins);for(var a in r)if(r.hasOwnProperty(a)&&a!==l){var s=r[a],f=o.hasOwnProperty(a);if(p(f,a),S.hasOwnProperty(a))S[a](e,s);else{var d=N.hasOwnProperty(a),y="function"==typeof s,m=y&&!d&&!f&&r.autobind!==!1;if(m)i.push(a,s),o[a]=s;else if(f){var g=N[a];c(d&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,a),"DEFINE_MANY_MERGED"===g?o[a]=v(o[a],s):"DEFINE_MANY"===g&&(o[a]=h(o[a],s))}else o[a]=s,"production"!==t.env.NODE_ENV&&"function"==typeof s&&r.displayName&&(o[a].displayName=r.displayName+"_"+a)}}}else if("production"!==t.env.NODE_ENV){var b=typeof r,E="object"===b&&null!==r;"production"!==t.env.NODE_ENV&&u(E,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",e.displayName||"ReactClass",null===r?null:b)}}function y(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in S;c(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;if(i){var a=O.hasOwnProperty(n)?O[n]:null;return c("DEFINE_MANY_MERGED"===a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=v(e[n],r))}e[n]=r}}}function m(e,t){c(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(c(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function v(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return m(o,n),m(o,r),o}}function h(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,i=r.bind;r.bind=function(a){for(var c=arguments.length,s=Array(c>1?c-1:0),l=1;c>l;l++)s[l-1]=arguments[l];if(a!==e&&null!==a)"production"!==t.env.NODE_ENV&&u(!1,"bind(): React component methods may only be bound to the component instance. See %s",o);else if(!s.length)return"production"!==t.env.NODE_ENV&&u(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o),r;var f=i.apply(r,arguments);return f.__reactBoundContext=e,f.__reactBoundMethod=n,f.__reactBoundArguments=s,f}}return r}function b(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=g(e,o)}}function E(e){var n=r(function(e,r,i){"production"!==t.env.NODE_ENV&&u(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&b(this),this.props=e,this.context=r,this.refs=a,this.updater=i||o,this.state=null;var s=this.getInitialState?this.getInitialState():null;"production"!==t.env.NODE_ENV&&void 0===s&&this.getInitialState._isMockFunction&&(s=null),c("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"),this.state=s});n.prototype=new P,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],_.forEach(d.bind(null,n)),d(n,w),d(n,e),d(n,x),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==t.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),c(n.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==t.env.NODE_ENV&&(u(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"),u(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",e.displayName||"A component"),u(!n.prototype.UNSAFE_componentWillRecieveProps,"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",e.displayName||"A component"));for(var i in N)n.prototype[i]||(n.prototype[i]=null);return n}var _=[],N={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},O={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},S={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"childContext"),e.childContextTypes=i({},e.childContextTypes,n)},contextTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"context"),e.contextTypes=i({},e.contextTypes,n)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=v(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"prop"),e.propTypes=i({},e.propTypes,n)},statics:function(e,t){y(e,t)},autobind:function(){}},w={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},D={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return"production"!==t.env.NODE_ENV&&(u(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},P=function(){};return i(P.prototype,e.prototype,D),E}var i=n(6),a=n(17),c=n(2);if("production"!==t.env.NODE_ENV)var u=n(3);var s,l="mixins";s="production"!==t.env.NODE_ENV?{prop:"prop",context:"context",childContext:"child context"}:{},e.exports=o}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e,n,r,u,s){if("production"!==t.env.NODE_ENV)for(var l in e)if(c(e,l)){var f;try{if("function"!=typeof e[l]){var p=Error((u||"React class")+": "+r+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.");throw p.name="Invariant Violation",p}f=e[l](n,l,u,r,null,i)}catch(d){f=d}if(!f||f instanceof Error||o((u||"React class")+": type specification of "+r+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var y=s?s():"";o("Failed "+r+" type: "+f.message+(null!=y?y:""))}}}var o=function(){};if("production"!==t.env.NODE_ENV){var i=n(18),a={},c=Function.call.bind(Object.prototype.hasOwnProperty);o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}}}r.resetWarningCache=function(){"production"!==t.env.NODE_ENV&&(a={})},e.exports=r}).call(t,n(1))},function(e,t,n){"use strict";var r=n(54);e.exports=function(e){var t=!1;return r(e,t)}},function(e,t,n){(function(t){"use strict";function r(){return null}var o=n(57),i=n(6),a=n(18),c=n(52),u=Function.call.bind(Object.prototype.hasOwnProperty),s=function(){};"production"!==t.env.NODE_ENV&&(s=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}}),e.exports=function(e,n){function l(e){var t=e&&(R&&e[R]||e[A]);return"function"==typeof t?t:void 0}function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function d(e){function r(r,c,u,l,f,d,y){if(l=l||T,d=d||u,y!==a){if(n){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+u;!o[v]&&3>i&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[v]=!0,i++)}}return null==c[u]?r?new p(null===c[u]?"The "+f+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`."):"The "+f+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(c,u,l,f,d)}if("production"!==t.env.NODE_ENV)var o={},i=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function y(e){function t(t,n,r,o,i,a){var c=t[n],u=P(c);if(u!==e){var s=k(c);return new p("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return d(t)}function m(){return d(r)}function v(e){function t(t,n,r,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c)){var u=P(c);return new p("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<c.length;s++){var l=e(c,s,r,o,i+"["+s+"]",a);if(l instanceof Error)return l}return null}return d(t)}function h(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){var c=P(a);return new p("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return d(t)}function g(){function e(e,t,n,r,i){var a=e[t];if(!o.isValidElementType(a)){ var c=P(a);return new p("Invalid "+r+" `"+i+"` of type "+("`"+c+"` supplied to `"+n+"`, expected a single ReactElement type."))}return null}return d(e)}function b(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||T,c=j(t[n]);return new p("Invalid "+o+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return d(t)}function E(e){function n(t,n,r,o,i){for(var a=t[n],c=0;c<e.length;c++)if(f(a,e[c]))return null;var u=JSON.stringify(e,function(e,t){var n=k(t);return"symbol"===n?String(t):t});return new p("Invalid "+o+" `"+i+"` of value `"+String(a)+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return Array.isArray(e)?d(n):("production"!==t.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function _(e){function t(t,n,r,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],s=P(c);if("object"!==s)return new p("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."));for(var l in c)if(u(c,l)){var f=e(c,l,r,o,i+"."+l,a);if(f instanceof Error)return f}return null}return d(t)}function N(e){function n(t,n,r,o,i){for(var c=0;c<e.length;c++){var u=e[c];if(null==u(t,n,r,o,i,a))return null}return new p("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV?s("Invalid argument supplied to oneOfType, expected an instance of array."):void 0,r;for(var o=0;o<e.length;o++){var i=e[o];if("function"!=typeof i)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(i)+" at index "+o+"."),r}return d(n)}function O(){function e(e,t,n,r,o){return x(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return d(e)}function S(e){function t(t,n,r,o,i){var c=t[n],u=P(c);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."));for(var s in e){var l=e[s];if(l){var f=l(c,s,r,o,i+"."+s,a);if(f)return f}}return null}return d(t)}function w(e){function t(t,n,r,o,c){var u=t[n],s=P(u);if("object"!==s)return new p("Invalid "+o+" `"+c+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."));var l=i({},t[n],e);for(var f in l){var d=e[f];if(!d)return new p("Invalid "+o+" `"+c+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=d(u,f,r,o,c+"."+f,a);if(y)return y}return null}return d(t)}function x(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(x);if(null===t||e(t))return!0;var n=l(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!x(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!x(i[1]))return!1}return!0;default:return!1}}function D(e,t){return"symbol"===e?!0:t?"Symbol"===t["@@toStringTag"]?!0:"function"==typeof Symbol&&t instanceof Symbol?!0:!1:!1}function P(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":D(t,e)?"symbol":t}function k(e){if("undefined"==typeof e||null===e)return""+e;var t=P(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function I(e){var t=k(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function j(e){return e.constructor&&e.constructor.name?e.constructor.name:T}var R="function"==typeof Symbol&&Symbol.iterator,A="@@iterator",T="<<anonymous>>",M={array:y("array"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:m(),arrayOf:v,element:h(),elementType:g(),instanceOf:b,node:O(),objectOf:_,oneOf:E,oneOfType:N,shape:S,exact:w};return p.prototype=Error.prototype,M.checkPropTypes=c,M.resetWarningCache=c.resetWarningCache,M.PropTypes=M,M}}).call(t,n(1))},function(e,t,n){(function(e){/** @license React v16.9.0 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict";"production"!==e.env.NODE_ENV&&!function(){function e(e){return"string"==typeof e||"function"==typeof e||e===b||e===w||e===_||e===E||e===D||e===P||"object"==typeof e&&null!==e&&(e.$$typeof===I||e.$$typeof===k||e.$$typeof===N||e.$$typeof===O||e.$$typeof===x||e.$$typeof===j||e.$$typeof===R)}function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case h:var n=e.type;switch(n){case S:case w:case b:case _:case E:case D:return n;default:var r=n&&n.$$typeof;switch(r){case O:case x:case N:return r;default:return t}}case I:case k:case g:return t}}return void 0}function r(e){return J||(J=!0,M(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(e)||n(e)===S}function o(e){return n(e)===w}function i(e){return n(e)===O}function a(e){return n(e)===N}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===h}function u(e){return n(e)===x}function s(e){return n(e)===b}function l(e){return n(e)===I}function f(e){return n(e)===k}function p(e){return n(e)===g}function d(e){return n(e)===_}function y(e){return n(e)===E}function m(e){return n(e)===D}Object.defineProperty(t,"__esModule",{value:!0});var v="function"==typeof Symbol&&Symbol["for"],h=v?Symbol["for"]("react.element"):60103,g=v?Symbol["for"]("react.portal"):60106,b=v?Symbol["for"]("react.fragment"):60107,E=v?Symbol["for"]("react.strict_mode"):60108,_=v?Symbol["for"]("react.profiler"):60114,N=v?Symbol["for"]("react.provider"):60109,O=v?Symbol["for"]("react.context"):60110,S=v?Symbol["for"]("react.async_mode"):60111,w=v?Symbol["for"]("react.concurrent_mode"):60111,x=v?Symbol["for"]("react.forward_ref"):60112,D=v?Symbol["for"]("react.suspense"):60113,P=v?Symbol["for"]("react.suspense_list"):60120,k=v?Symbol["for"]("react.memo"):60115,I=v?Symbol["for"]("react.lazy"):60116,j=v?Symbol["for"]("react.fundamental"):60117,R=v?Symbol["for"]("react.responder"):60118,A=function(){},T=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(a){}};A=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];T.apply(void 0,[t].concat(r))}};var M=A,C=S,V=w,F=O,$=N,U=h,W=x,Y=b,q=I,B=k,z=g,G=_,L=E,K=D,J=!1;t.typeOf=n,t.AsyncMode=C,t.ConcurrentMode=V,t.ContextConsumer=F,t.ContextProvider=$,t.Element=U,t.ForwardRef=W,t.Fragment=Y,t.Lazy=q,t.Memo=B,t.Portal=z,t.Profiler=G,t.StrictMode=L,t.Suspense=K,t.isValidElementType=e,t.isAsyncMode=r,t.isConcurrentMode=o,t.isContextConsumer=i,t.isContextProvider=a,t.isElement=c,t.isForwardRef=u,t.isFragment=s,t.isLazy=l,t.isMemo=f,t.isPortal=p,t.isProfiler=d,t.isStrictMode=y,t.isSuspense=m}()}).call(t,n(1))},function(e,t){/** @license React v16.9.0 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict";function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case c:case s:case u:case m:return e;default:switch(e=e&&e.$$typeof){case f:case y:case l:return e;default:return t}}case g:case h:case a:return t}}}function r(e){return n(e)===d}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol["for"],i=o?Symbol["for"]("react.element"):60103,a=o?Symbol["for"]("react.portal"):60106,c=o?Symbol["for"]("react.fragment"):60107,u=o?Symbol["for"]("react.strict_mode"):60108,s=o?Symbol["for"]("react.profiler"):60114,l=o?Symbol["for"]("react.provider"):60109,f=o?Symbol["for"]("react.context"):60110,p=o?Symbol["for"]("react.async_mode"):60111,d=o?Symbol["for"]("react.concurrent_mode"):60111,y=o?Symbol["for"]("react.forward_ref"):60112,m=o?Symbol["for"]("react.suspense"):60113,v=o?Symbol["for"]("react.suspense_list"):60120,h=o?Symbol["for"]("react.memo"):60115,g=o?Symbol["for"]("react.lazy"):60116,b=o?Symbol["for"]("react.fundamental"):60117,E=o?Symbol["for"]("react.responder"):60118;t.typeOf=n,t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=f,t.ContextProvider=l,t.Element=i,t.ForwardRef=y,t.Fragment=c,t.Lazy=g,t.Memo=h,t.Portal=a,t.Profiler=s,t.StrictMode=u,t.Suspense=m,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===d||e===s||e===u||e===m||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E)},t.isAsyncMode=function(e){return r(e)||n(e)===p},t.isConcurrentMode=r,t.isContextConsumer=function(e){return n(e)===f},t.isContextProvider=function(e){return n(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return n(e)===y},t.isFragment=function(e){return n(e)===c},t.isLazy=function(e){return n(e)===g},t.isMemo=function(e){return n(e)===h},t.isPortal=function(e){return n(e)===a},t.isProfiler=function(e){return n(e)===s},t.isStrictMode=function(e){return n(e)===u},t.isSuspense=function(e){return n(e)===m}},function(e,t,n){(function(t){"use strict";"production"===t.env.NODE_ENV?e.exports=n(56):e.exports=n(55)}).call(t,n(1))},function(e,t){"use strict";function n(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function r(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var o={escape:n,unescape:r};e.exports=o},function(e,t,n){(function(t){"use strict";var r=n(5),o=n(2),i=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},a=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},c=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},u=function(e,t,