(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40671],{8273:function(t,e,n){"use strict";n.r(e),n.d(e,{CountUp:function(){return o}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;no.endVal;o.frameVal=n?o.endVal:o.frameVal,o.frameVal=Number(o.frameVal.toFixed(o.options.decimalPlaces)),o.printValue(o.frameVal),e1?o.options.decimal+s[1]:"",o.options.useGrouping){i="";for(var l=3,u=0,c=0,f=n.length;cwindow.scrollY&&t.paused?(t.paused=!1,setTimeout((function(){return t.start()}),t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||r>e)&&!t.paused&&t.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var n=this.countDown?1:-1;this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var n=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}()},93096:function(t,e,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,f=u||c||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,m=function(){return f.Date.now()};function y(t,e,n){var o,i,a,s,l,u,c=0,f=!1,p=!1,y=!0;if("function"!=typeof t)throw new TypeError(r);function v(e){var n=o,r=i;return o=i=void 0,c=e,s=t.apply(r,n)}function w(t){return c=t,l=setTimeout(S,e),f?v(t):s}function O(t){var n=t-u;return void 0===u||n>=e||n<0||p&&t-c>=a}function S(){var t=m();if(O(t))return E(t);l=setTimeout(S,function(t){var n=e-(t-u);return p?h(n,a-(t-c)):n}(t))}function E(t){return l=void 0,y&&o?v(t):(o=i=void 0,s)}function V(){var t=m(),n=O(t);if(o=arguments,i=this,u=t,n){if(void 0===l)return w(u);if(p)return l=setTimeout(S,e),v(u)}return void 0===l&&(l=setTimeout(S,e)),s}return e=g(e)||0,b(n)&&(f=!!n.leading,a=(p="maxWait"in n)?d(g(n.maxWait)||0,e):a,y="trailing"in n?!!n.trailing:y),V.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},V.flush=function(){return void 0===l?s:E(m())},V}function b(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]"==p.call(t)}(t))return NaN;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||s.test(t)?l(t.slice(2),n?2:8):i.test(t)?NaN:+t}t.exports=function(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(r);return b(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),y(t,e,{leading:o,maxWait:e,trailing:i})}},90638:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(96856).Z;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=a.default,i=(null==e?void 0:e.suspense)?{}:{loading:function(t){t.error,t.isLoading;return t.pastDelay,null}};r(t,Promise)?i.loader=function(){return t}:"function"===typeof t?i.loader=t:"object"===typeof t&&(i=o({},i,t));if((i=o({},i,e)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");i.suspense&&(delete i.ssr,delete i.loading);i.loadableGenerated&&delete(i=o({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,s(n,i);delete i.ssr}return n(i)},e.noSSR=s;var o=n(6495).Z,i=n(92648).Z,a=(i(n(67294)),i(n(14302)));function s(t,e){return delete e.webpack,delete e.modules,t(e)}("function"===typeof e.default||"object"===typeof e.default&&null!==e.default)&&"undefined"===typeof e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},16319:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoadableContext=void 0;var r=(0,n(92648).Z)(n(67294)).default.createContext(null);e.LoadableContext=r},14302:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(79658).Z,o=n(7222).Z;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(6495).Z,a=(0,n(92648).Z)(n(67294)),s=n(16319),l=n(61688).useSyncExternalStore,u=[],c=[],f=!1;function p(t){var e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then((function(t){return n.loading=!1,n.loaded=t,t})).catch((function(t){throw n.loading=!1,n.error=t,t})),n}var d=function(){function t(e,n){r(this,t),this._loadFn=e,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(t,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,n=this._opts;e.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){t._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){t._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){t._update({}),t._clearTimeouts()})).catch((function(e){t._update({}),t._clearTimeouts()})),this._update({})}},{key:"_update",value:function(t){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},t),this._callbacks.forEach((function(t){return t()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}]),t}();function h(t){return function(t,e){var n=function(){if(!u){var e=new d(t,o);u={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return u.promise()},r=function(){n();var t=a.default.useContext(s.LoadableContext);t&&Array.isArray(o.modules)&&o.modules.forEach((function(e){t(e)}))},o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},e);o.suspense&&(o.lazy=a.default.lazy(o.loader));var u=null;if(!f){var p=o.webpack?o.webpack():o.modules;p&&c.push((function(t){var e=!0,r=!1,o=void 0;try{for(var i,a=p[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){var s=i.value;if(-1!==t.indexOf(s))return n()}}catch(l){r=!0,o=l}finally{try{e||null==a.return||a.return()}finally{if(r)throw o}}}))}var h=o.suspense?function(t,e){return r(),a.default.createElement(o.lazy,i({},t,{ref:e}))}:function(t,e){r();var n=l(u.subscribe,u.getCurrentValue,u.getCurrentValue);return a.default.useImperativeHandle(e,(function(){return{retry:u.retry}}),[]),a.default.useMemo((function(){return n.loading||n.error?a.default.createElement(o.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:u.retry}):n.loaded?a.default.createElement((e=n.loaded)&&e.__esModule?e.default:e,t):null;var e}),[t,n])};return h.preload=function(){return n()},h.displayName="LoadableComponent",a.default.forwardRef(h)}(p,t)}function m(t,e){for(var n=[];t.length;){var r=t.pop();n.push(r(e))}return Promise.all(n).then((function(){if(t.length)return m(t,e)}))}h.preloadAll=function(){return new Promise((function(t,e){m(u).then(t,e)}))},h.preloadReady=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(e){var n=function(){return f=!0,e()};m(c,t).then(n,n)}))},window.__NEXT_PRELOADREADY=h.preloadReady;var y=h;e.default=y},5152:function(t,e,n){t.exports=n(90638)},17857:function(t,e,n){"use strict";var r=n(67294),o=n(8273);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?S.current=setTimeout(t,1e3*u):t(),null===d||void 0===d||d({pauseResume:C,reset:j,update:_})})),C=h((function(){T().pauseResume(),null===b||void 0===b||b({reset:j,start:x,update:_})})),j=h((function(){T().el&&(S.current&&clearTimeout(S.current),T().reset(),null===g||void 0===g||g({pauseResume:C,start:x,update:_}))})),_=h((function(t){T().update(t),null===v||void 0===v||v({pauseResume:C,reset:j,start:x})})),x=h((function(){j(),P()})),k=h((function(t){s&&(t&&j(),P())}));return r.useEffect((function(){E.current?l&&k(!0):(E.current=!0,k())}),[l,E,k,u,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),r.useEffect((function(){return function(){j()}}),[j]),{start:x,pauseResume:C,reset:j,update:_,getCountUp:T}},g=["className","redraw","containerProps","children","style"];e.ZP=function(t){var e=t.className,n=t.redraw,o=t.containerProps,i=t.children,s=t.style,l=c(t,g),f=r.useRef(null),p=r.useRef(!1),d=b(a(a({},l),{},{ref:f,startOnMount:"function"!==typeof i||0===t.delay,enableReinitialize:!1})),m=d.start,y=d.reset,v=d.update,w=d.pauseResume,O=d.getCountUp,S=h((function(){m()})),E=h((function(e){t.preserveValue||y(),v(e)})),V=h((function(){"function"!==typeof t.children||f.current instanceof Element?O():console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. .')}));r.useEffect((function(){V()}),[V]),r.useEffect((function(){p.current&&E(t.end)}),[t.end,E]);var T=n&&t;return r.useEffect((function(){n&&p.current&&S()}),[S,n,T]),r.useEffect((function(){!n&&p.current&&S()}),[S,n,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),r.useEffect((function(){p.current=!0}),[]),"function"===typeof i?i({countUpRef:f,start:m,reset:y,update:v,pauseResume:w,getCountUp:O}):r.createElement("span",u({className:e,ref:f,style:s},o),"undefined"!==typeof t.start?O().formattingFn(t.start):"")}},80547:function(t,e,n){"use strict";n.d(e,{Z:function(){return O}});var r=n(67294),o=n(45697),i=n.n(o),a=n(73935),s=n(93096),l=n.n(s),u=["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","controlsList","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap"],c=["about","datatype","inlist","prefix","property","resource","typeof","vocab"],f=["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onReset","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle"],p=/data-([a-zA-Z0-9\-]*)/,d=/aria-([a-zA-Z0-9\-]*)/,h=function(t,e,n){void 0===t&&(t={}),void 0===e&&(e=[]),void 0===n&&(n=[]);var r=Object.assign({},t),o=Object.keys(r).filter((function(t){return-1===e.indexOf(t)&&(n.indexOf(t)>-1||(-1!==u.indexOf(t)||(-1!==c.indexOf(t)||(!!p.test(t)||(!!d.test(t)||-1!==f.indexOf(t))))))}));return Object.keys(r).forEach((function(t){-1===o.indexOf(t)&&delete r[t]})),r};function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e=0,d=window.scrollY,h=s&&l?Math.abs((s-d)/(l-Date.now())):null;if(p){var m=Math.max(0,Math.min(1,1-u.bottom/(f+u.height)));return this.state.inViewport||(this.setState({inViewport:p}),n({progress:m,velocity:h},this)),o({progress:m,velocity:h},this),void this.setState({lastScrollPosition:d,lastScrollTime:Date.now()})}if(this.state.inViewport){var y=u.top<=f?1:0;this.setState({lastScrollPosition:d,lastScrollTime:Date.now(),inViewport:p,progress:y}),o({progress:y,velocity:h},this),r({progress:y,velocity:h},this)}},i.render=function(){var t=this,e=this.props,n=e.children,o=e.component;return r[r.isValidElement(o)?"cloneElement":"createElement"](o,y(y({},h(this.props,["onProgress"])),{},{ref:function(e){t.element=e}}),n)},o}(r.Component);w.propTypes={component:i().oneOfType([i().element,i().node]),containerRef:i().oneOfType([i().object,i().string]),throttleResize:i().number,throttleScroll:i().number,triggerOnLoad:i().bool,onEnter:i().func,onExit:i().func,onProgress:i().func},w.defaultProps={component:"div",containerRef:"undefined"!==typeof document?document.documentElement:"html",throttleResize:100,throttleScroll:100,triggerOnLoad:!0,onEnter:function(){},onExit:function(){},onProgress:function(){}};var O=w},33082:function(t,e,n){var r;r=function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){t.exports=n(5)()},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=function(t,e,n){var r=t.direction,o=t.value;switch(r){case"top":return n.top+oe.bottom&&n.lefte.right;case"left":return n.left+oe.bottom&&n.tope.right;case"bottom":return n.bottom-o>e.bottom&&n.lefte.right&&n.tope.right&&n.lefte.bottom}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r=n(1),o=n.n(r),i=n(2),a=n.n(i),s=n(0),l=n.n(s),u=n(3),c=n.n(u);function f(t){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){for(var n=0;n-1?function(){i||(i=setTimeout(a,o||0))}:function(){clearTimeout(i),i=setTimeout(a,r||0)},getLastTimeout:function(){return i}};t.addEventListener(e,s.fn),n.debounceCheck[e]=s})),y(h(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),y(h(n),"stopWatching",(function(){if(n.debounceCheck)for(var t in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(t)){var e=n.debounceCheck[t];clearTimeout(e.getLastTimeout()),e.target.removeEventListener(t,e.fn),n.debounceCheck[t]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),y(h(n),"check",(function(){var t,e,r=n.node;if(!r)return n.state;if(t=function(t){return void 0===t.width&&(t.width=t.right-t.left),void 0===t.height&&(t.height=t.bottom-t.top),t}(n.roundRectDown(r.getBoundingClientRect())),n.props.containment){var o=n.props.containment.getBoundingClientRect();e={top:o.top,left:o.left,bottom:o.bottom,right:o.right}}else e={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===f(i)&&(e.top+=i.top||0,e.left+=i.left||0,e.bottom-=i.bottom||0,e.right-=i.right||0);var a={top:t.top>=e.top,left:t.left>=e.left,bottom:t.bottom<=e.bottom,right:t.right<=e.right},s=t.height>0&&t.width>0,l=s&&a.top&&a.left&&a.bottom&&a.right;if(s&&n.props.partialVisibility){var u=t.top<=e.bottom&&t.bottom>=e.top&&t.left<=e.right&&t.right>=e.left;"string"===typeof n.props.partialVisibility&&(u=a[n.props.partialVisibility]),l=n.props.minTopValue?u&&t.top<=e.bottom-n.props.minTopValue:u}"string"===typeof i.direction&&"number"===typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),l=c()(i,t,e));var p=n.state;return n.state.isVisible!==l&&(p={isVisible:l,visibilityRect:a},n.setState(p),n.props.onChange&&n.props.onChange(l)),p})),n.state={isVisible:null,visibilityRect:{}},n}var n,r,i;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(t){this.node=a.a.findDOMNode(this),this.props.active&&!t.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(t){return{top:Math.floor(t.top),left:Math.floor(t.left),bottom:Math.floor(t.bottom),right:Math.floor(t.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):o.a.Children.only(this.props.children)}}])&&p(n.prototype,r),i&&p(n,i),e}(o.a.Component);y(b,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:o.a.createElement("span",null)}),y(b,"propTypes",{onChange:l.a.func,active:l.a.bool,partialVisibility:l.a.oneOfType([l.a.bool,l.a.oneOf(["top","right","bottom","left"])]),delayedCall:l.a.bool,offset:l.a.oneOfType([l.a.shape({top:l.a.number,left:l.a.number,bottom:l.a.number,right:l.a.number}),l.a.shape({direction:l.a.oneOf(["top","right","bottom","left"]),value:l.a.number})]),scrollCheck:l.a.bool,scrollDelay:l.a.number,scrollThrottle:l.a.number,resizeCheck:l.a.bool,resizeDelay:l.a.number,resizeThrottle:l.a.number,intervalCheck:l.a.bool,intervalDelay:l.a.number,containment:"undefined"!==typeof window?l.a.instanceOf(window.Element):l.a.any,children:l.a.oneOfType([l.a.element,l.a.func]),minTopValue:l.a.number})},function(t,e,n){"use strict";var r=n(6);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},t.exports=r(n(67294),n(73935))},53250:function(t,e,n){"use strict";var r=n(67294);var o="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!o(t,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=i({inst:{value:n,getSnapshot:e}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=e,u(o)&&c({inst:o})}),[t,n,e]),a((function(){return u(o)&&c({inst:o}),t((function(){u(o)&&c({inst:o})}))}),[t]),l(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},61688:function(t,e,n){"use strict";t.exports=n(53250)}}]);