-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe8ce038c3bf3a6082a56f817ef2c0163db9a0f21-2945204c928fcdb5d988.js
2 lines (2 loc) · 28.8 KB
/
e8ce038c3bf3a6082a56f817ef2c0163db9a0f21-2945204c928fcdb5d988.js
1
2
(self.webpackChunkopenousd=self.webpackChunkopenousd||[]).push([[387],{18385:function(t,e,n){var o="Expected a function",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,f=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return f.Date.now()};function y(t,e,n){var r,i,a,u,s,l,c=0,f=!1,d=!1,y=!0;if("function"!=typeof t)throw new TypeError(o);function b(e){var n=r,o=i;return r=i=void 0,c=e,u=t.apply(o,n)}function w(t){return c=t,s=setTimeout(_,e),f?b(t):u}function O(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=a}function _(){var t=v();if(O(t))return S(t);s=setTimeout(_,function(t){var n=e-(t-l);return d?h(n,a-(t-c)):n}(t))}function S(t){return s=void 0,y&&r?b(t):(r=i=void 0,u)}function P(){var t=v(),n=O(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return w(l);if(d)return s=setTimeout(_,e),b(l)}return void 0===s&&(s=setTimeout(_,e)),u}return e=g(e)||0,m(n)&&(f=!!n.leading,a=(d="maxWait"in n)?p(g(n.maxWait)||0,e):a,y="trailing"in n?!!n.trailing:y),P.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},P.flush=function(){return void 0===s?u:S(v())},P}function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=a.test(t);return n||u.test(t)?s(t.slice(2),n?2:8):i.test(t)?NaN:+t}t.exports=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError(o);return m(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),y(t,e,{leading:r,maxWait:e,trailing:i})}},37290:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=a(n(67294)),i=a(n(55907));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){return u(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"render",value:function(){return r.default.createElement("input",this.props,this.props.children)}}]),e}(r.default.Component);e.default=(0,i.default)(l)},51957:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=s(n(67294)),a=s(n(27371)),u=s(n(45697));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"render",value:function(){var t=this,e=o({},this.props);return e.parentBindings&&delete e.parentBindings,i.default.createElement("div",o({},e,{ref:function(e){t.props.parentBindings.domNode=e}}),this.props.children)}}]),e}(i.default.Component);f.propTypes={name:u.default.string,id:u.default.string},e.default=(0,a.default)(f)},15883:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(67294)),r=i(n(55907));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){var t,n,r;a(this,e);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return n=r=u(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),r.render=function(){return o.default.createElement("a",r.props,r.props.children)},u(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(o.default.Component);e.default=(0,r.default)(s)},12349:function(t,e,n){"use strict";e.W_=e.rU=void 0;var o=p(n(15883)),r=p(n(37290)),i=p(n(51957)),a=p(n(90332)),u=p(n(18638)),s=p(n(17614)),l=p(n(61450)),c=p(n(55907)),f=p(n(27371)),d=p(n(4627));function p(t){return t&&t.__esModule?t:{default:t}}e.rU=o.default,r.default,e.W_=i.default,a.default,u.default,s.default,l.default,c.default,f.default,d.default,o.default,r.default,i.default,a.default,u.default,s.default,l.default,c.default,f.default,d.default},4627:function(t,e,n){"use strict";var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(67294),l=(n(73935),n(1719),n(17614)),c=n(90332),f=n(45697),d=n(21521),p={to:f.string.isRequired,containerId:f.string,container:f.object,activeClass:f.string,spy:f.bool,smooth:f.oneOfType([f.bool,f.string]),offset:f.number,delay:f.number,isDynamic:f.bool,onClick:f.func,duration:f.oneOfType([f.number,f.func]),absolute:f.bool,onSetActive:f.func,onSetInactive:f.func,ignoreCancelEvents:f.bool,hashSpy:f.bool,spyThrottle:f.number},h={Scroll:function(t,e){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=e||c,f=function(e){function c(t){i(this,c);var e=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t));return h.call(e),e.state={active:!1},e}return u(c,e),r(c,[{key:"getScrollSpyContainer",value:function(){var t=this.props.containerId,e=this.props.container;return t?document.getElementById(t):e&&e.nodeType?e:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var t=this.getScrollSpyContainer();l.isMounted(t)||l.mount(t,this.props.spyThrottle),this.props.hashSpy&&(d.isMounted()||d.mount(n),d.mapContainer(this.props.to,t)),this.props.spy&&l.addStateHandler(this.stateHandler),l.addSpyHandler(this.spyHandler,t),this.setState({container:t})}}},{key:"componentWillUnmount",value:function(){l.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var e="";e=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=o({},this.props);for(var r in p)n.hasOwnProperty(r)&&delete n[r];return n.className=e,n.onClick=this.handleClick,s.createElement(t,n)}}]),c}(s.Component),h=function(){var t=this;this.scrollTo=function(e,r){n.scrollTo(e,o({},t.state,r))},this.handleClick=function(e){t.props.onClick&&t.props.onClick(e),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),t.scrollTo(t.props.to,t.props)},this.stateHandler=function(){n.getActiveLink()!==t.props.to&&(null!==t.state&&t.state.active&&t.props.onSetInactive&&t.props.onSetInactive(),t.setState({active:!1}))},this.spyHandler=function(e){var o=t.getScrollSpyContainer();if(!d.isMounted()||d.isInitialized()){var r=t.props.to,i=null,a=0,u=0,s=0;if(o.getBoundingClientRect)s=o.getBoundingClientRect().top;if(!i||t.props.isDynamic){if(!(i=n.get(r)))return;var c=i.getBoundingClientRect();u=(a=c.top-s+e)+c.height}var f=e-t.props.offset,p=f>=Math.floor(a)&&f<Math.floor(u),h=f<Math.floor(a)||f>=Math.floor(u),v=n.getActiveLink();return h?(r===v&&n.setActiveLink(void 0),t.props.hashSpy&&d.getHash()===r&&d.changeHash(),t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive()),l.updateStates()):p&&v!==r?(n.setActiveLink(r),t.props.hashSpy&&d.changeHash(r),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(r)),l.updateStates()):void 0}}};return f.propTypes=p,f.defaultProps={offset:0},f},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var e=function(e){function n(t){i(this,n);var e=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.childBindings={domNode:null},e}return u(n,e),r(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(t){this.props.name!==t.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(t){c.register(t,this.childBindings.domNode)}},{key:"render",value:function(){return s.createElement(t,o({},this.props,{parentBindings:this.childBindings}))}}]),n}(s.Component);return e.propTypes={name:f.string,id:f.string},e}};t.exports=h},61450:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=(u(n(1719)),u(n(69239))),i=u(n(48150)),a=u(n(18638));function u(t){return t&&t.__esModule?t:{default:t}}var s=function(t){return r.default[t.smooth]||r.default.defaultEasing},l=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(t,e,n){window.setTimeout(t,n||1e3/60,(new Date).getTime())},c=function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollLeft;var n=void 0!==window.pageXOffset,o="CSS1Compat"===(document.compatMode||"");return n?window.pageXOffset:o?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollTop;var n=void 0!==window.pageXOffset,o="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:o?document.documentElement.scrollTop:document.body.scrollTop},d=function t(e,n,o){var r=n.data;if(n.ignoreCancelEvents||!r.cancel)if(r.delta=Math.round(r.targetPosition-r.startPosition),null===r.start&&(r.start=o),r.progress=o-r.start,r.percent=r.progress>=r.duration?1:e(r.progress/r.duration),r.currentPosition=r.startPosition+Math.ceil(r.delta*r.percent),r.containerElement&&r.containerElement!==document&&r.containerElement!==document.body?n.horizontal?r.containerElement.scrollLeft=r.currentPosition:r.containerElement.scrollTop=r.currentPosition:n.horizontal?window.scrollTo(r.currentPosition,0):window.scrollTo(0,r.currentPosition),r.percent<1){var i=t.bind(null,e,n);l.call(window,i)}else a.default.registered.end&&a.default.registered.end(r.to,r.target,r.currentPosition);else a.default.registered.end&&a.default.registered.end(r.to,r.target,r.currentPositionY)},p=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},h=function(t,e,n,o){if(e.data=e.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},window.clearTimeout(e.data.delayTimeout),i.default.subscribe((function(){e.data.cancel=!0})),p(e),e.data.start=null,e.data.cancel=!1,e.data.startPosition=e.horizontal?c(e):f(e),e.data.targetPosition=e.absolute?t:t+e.data.startPosition,e.data.startPosition!==e.data.targetPosition){var r;e.data.delta=Math.round(e.data.targetPosition-e.data.startPosition),e.data.duration=("function"==typeof(r=e.duration)?r:function(){return r})(e.data.delta),e.data.duration=isNaN(parseFloat(e.data.duration))?1e3:parseFloat(e.data.duration),e.data.to=n,e.data.target=o;var u=s(e),h=d.bind(null,u,e);e&&e.delay>0?e.data.delayTimeout=window.setTimeout((function(){a.default.registered.begin&&a.default.registered.begin(e.data.to,e.data.target),l.call(window,h)}),e.delay):(a.default.registered.begin&&a.default.registered.begin(e.data.to,e.data.target),l.call(window,h))}else a.default.registered.end&&a.default.registered.end(e.data.to,e.data.target,e.data.currentPosition)},v=function(t){return(t=o({},t)).data=t.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},t.absolute=!0,t};e.default={animateTopScroll:h,getAnimationType:s,scrollToTop:function(t){h(0,v(t))},scrollToBottom:function(t){t=v(t),p(t),h(t.horizontal?function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollWidth-e.offsetWidth;var n=document.body,o=document.documentElement;return Math.max(n.scrollWidth,n.offsetWidth,o.clientWidth,o.scrollWidth,o.offsetWidth)}(t):function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollHeight-e.offsetHeight;var n=document.body,o=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight)}(t),t)},scrollTo:function(t,e){h(t,v(e))},scrollMore:function(t,e){e=v(e),p(e);var n=e.horizontal?c(e):f(e);h(t+n,e)}}},48150:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(18139),r=["mousedown","mousewheel","touchmove","keydown"];e.default={subscribe:function(t){return"undefined"!=typeof document&&r.forEach((function(e){return(0,o.addPassiveEventListener)(document,e,t)}))}}},18139:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.addPassiveEventListener=function(t,e,n){var o=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(n){}return t}();t.addEventListener(e,n,!!o&&{passive:!0})},e.removePassiveEventListener=function(t,e,n){t.removeEventListener(e,n)}},27371:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=s(n(67294)),a=(s(n(73935)),s(n(90332))),u=s(n(45697));function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e=function(e){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.childBindings={domNode:null},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),r(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(t){this.props.name!==t.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(t){a.default.register(t,this.childBindings.domNode)}},{key:"render",value:function(){return i.default.createElement(t,o({},this.props,{parentBindings:this.childBindings}))}}]),n}(i.default.Component);return e.propTypes={name:u.default.string,id:u.default.string},e}},18638:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={registered:{},scrollEvent:{register:function(t,e){n.registered[t]=e},remove:function(t){n.registered[t]=null}}};e.default=n},21521:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n(18139);var o,r=n(1719),i=(o=r)&&o.__esModule?o:{default:o};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(t){this.scroller=t,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(t,e){this.containers[t]=e},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var t=this,e=this.getHash();e?window.setTimeout((function(){t.scrollTo(e,!0),t.initialized=!0}),10):this.initialized=!0},scrollTo:function(t,e){var n=this.scroller;if(n.get(t)&&(e||t!==n.getActiveLink())){var o=this.containers[t]||document;n.scrollTo(t,{container:o})}},getHash:function(){return i.default.getHash()},changeHash:function(t,e){this.isInitialized()&&i.default.getHash()!==t&&i.default.updateHash(t,e)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};e.default=a},55907:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),i=c(n(67294)),a=c(n(17614)),u=c(n(90332)),s=c(n(45697)),l=c(n(21521));function c(t){return t&&t.__esModule?t:{default:t}}var f={to:s.default.string.isRequired,containerId:s.default.string,container:s.default.object,activeClass:s.default.string,spy:s.default.bool,horizontal:s.default.bool,smooth:s.default.oneOfType([s.default.bool,s.default.string]),offset:s.default.number,delay:s.default.number,isDynamic:s.default.bool,onClick:s.default.func,duration:s.default.oneOfType([s.default.number,s.default.func]),absolute:s.default.bool,onSetActive:s.default.func,onSetInactive:s.default.func,ignoreCancelEvents:s.default.bool,hashSpy:s.default.bool,saveHashHistory:s.default.bool,spyThrottle:s.default.number};e.default=function(t,e){var n=e||u.default,s=function(e){function u(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,t));return c.call(e),e.state={active:!1},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(u,e),r(u,[{key:"getScrollSpyContainer",value:function(){var t=this.props.containerId,e=this.props.container;return t&&!e?document.getElementById(t):e&&e.nodeType?e:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var t=this.getScrollSpyContainer();a.default.isMounted(t)||a.default.mount(t,this.props.spyThrottle),this.props.hashSpy&&(l.default.isMounted()||l.default.mount(n),l.default.mapContainer(this.props.to,t)),a.default.addSpyHandler(this.spyHandler,t),this.setState({container:t})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var e="";e=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=o({},this.props);for(var r in f)n.hasOwnProperty(r)&&delete n[r];return n.className=e,n.onClick=this.handleClick,i.default.createElement(t,n)}}]),u}(i.default.PureComponent),c=function(){var t=this;this.scrollTo=function(e,r){n.scrollTo(e,o({},t.state,r))},this.handleClick=function(e){t.props.onClick&&t.props.onClick(e),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),t.scrollTo(t.props.to,t.props)},this.spyHandler=function(e,o){var r=t.getScrollSpyContainer();if(!l.default.isMounted()||l.default.isInitialized()){var i=t.props.horizontal,a=t.props.to,u=null,s=void 0,c=void 0;if(i){var f=0,d=0,p=0;if(r.getBoundingClientRect)p=r.getBoundingClientRect().left;if(!u||t.props.isDynamic){if(!(u=n.get(a)))return;var h=u.getBoundingClientRect();d=(f=h.left-p+e)+h.width}var v=e-t.props.offset;s=v>=Math.floor(f)&&v<Math.floor(d),c=v<Math.floor(f)||v>=Math.floor(d)}else{var y=0,m=0,g=0;if(r.getBoundingClientRect)g=r.getBoundingClientRect().top;if(!u||t.props.isDynamic){if(!(u=n.get(a)))return;var b=u.getBoundingClientRect();m=(y=b.top-g+o)+b.height}var w=o-t.props.offset;s=w>=Math.floor(y)&&w<Math.floor(m),c=w<Math.floor(y)||w>=Math.floor(m)}var O=n.getActiveLink();if(c){if(a===O&&n.setActiveLink(void 0),t.props.hashSpy&&l.default.getHash()===a){var _=t.props.saveHashHistory,S=void 0!==_&&_;l.default.changeHash("",S)}t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive(a,u))}if(s&&(O!==a||!1===t.state.active)){n.setActiveLink(a);var P=t.props.saveHashHistory,C=void 0!==P&&P;t.props.hashSpy&&l.default.changeHash(a,C),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(a,u))}}}};return s.propTypes=f,s.defaultProps={offset:0},s}},17614:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(18385),i=(o=r)&&o.__esModule?o:{default:o},a=n(18139);var u={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,e){if(t){var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,i.default)(t,e)}((function(e){u.scrollHandler(t)}),e);u.scrollSpyContainers.push(t),(0,a.addPassiveEventListener)(t,"scroll",n)}},isMounted:function(t){return-1!==u.scrollSpyContainers.indexOf(t)},currentPositionX:function(t){if(t===document){var e=void 0!==window.pageYOffset,n="CSS1Compat"===(document.compatMode||"");return e?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft}return t.scrollLeft},currentPositionY:function(t){if(t===document){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return e?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return t.scrollTop},scrollHandler:function(t){(u.scrollSpyContainers[u.scrollSpyContainers.indexOf(t)].spyCallbacks||[]).forEach((function(e){return e(u.currentPositionX(t),u.currentPositionY(t))}))},addStateHandler:function(t){u.spySetState.push(t)},addSpyHandler:function(t,e){var n=u.scrollSpyContainers[u.scrollSpyContainers.indexOf(e)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(t),t(u.currentPositionX(e),u.currentPositionY(e))},updateStates:function(){u.spySetState.forEach((function(t){return t()}))},unmount:function(t,e){u.scrollSpyContainers.forEach((function(t){return t.spyCallbacks&&t.spyCallbacks.length&&t.spyCallbacks.splice(t.spyCallbacks.indexOf(e),1)})),u.spySetState&&u.spySetState.length&&u.spySetState.splice(u.spySetState.indexOf(t),1),document.removeEventListener("scroll",u.scrollHandler)},update:function(){return u.scrollSpyContainers.forEach((function(t){return u.scrollHandler(t)}))}};e.default=u},90332:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=u(n(1719)),i=u(n(61450)),a=u(n(18638));function u(t){return t&&t.__esModule?t:{default:t}}var s={},l=void 0;e.default={unmount:function(){s={}},register:function(t,e){s[t]=e},unregister:function(t){delete s[t]},get:function(t){return s[t]||document.getElementById(t)||document.getElementsByName(t)[0]||document.getElementsByClassName(t)[0]},setActiveLink:function(t){return l=t},getActiveLink:function(){return l},scrollTo:function(t,e){var n=this.get(t);if(n){var u=(e=o({},e,{absolute:!1})).containerId,s=e.container,l=void 0;l=u?document.getElementById(u):s&&s.nodeType?s:document,e.absolute=!0;var c=e.horizontal,f=r.default.scrollOffset(l,n,c)+(e.offset||0);if(!e.smooth)return a.default.registered.begin&&a.default.registered.begin(t,n),l===document?e.horizontal?window.scrollTo(f,0):window.scrollTo(0,f):l.scrollTop=f,void(a.default.registered.end&&a.default.registered.end(t,n));i.default.animateTopScroll(f,e,t,n)}else console.warn("target Element not found")}}},69239:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={defaultEasing:function(t){return t<.5?Math.pow(2*t,2)/2:1-Math.pow(2*(1-t),2)/2},linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}}},1719:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){for(var n=t.offsetTop,o=t.offsetParent;o&&!e(o);)n+=o.offsetTop,o=o.offsetParent;return{offsetTop:n,offsetParent:o}};e.default={updateHash:function(t,e){var n=0===t.indexOf("#")?t.substring(1):t,o=n?"#"+n:"",r=window&&window.location,i=o?r.pathname+r.search+o:r.pathname+r.search;e?history.pushState(null,"",i):history.replaceState(null,"",i)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(t){return function(e){return t.contains?t!=e&&t.contains(e):!!(16&t.compareDocumentPosition(e))}},scrollOffset:function(t,e,o){if(o)return t===document?e.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(t).position?e.offsetLeft:e.offsetLeft-t.offsetLeft;if(t===document)return e.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(t).position){if(e.offsetParent!==t){var r=n(e,(function(e){return e===t||e===document})),i=r.offsetTop;if(r.offsetParent!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return i}return e.offsetTop}if(e.offsetParent===t.offsetParent)return e.offsetTop-t.offsetTop;var a=function(t){return t===document};return n(e,a).offsetTop-n(t,a).offsetTop}}}}]);
//# sourceMappingURL=e8ce038c3bf3a6082a56f817ef2c0163db9a0f21-2945204c928fcdb5d988.js.map