"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67123],{67123:(e,t,n)=>{e.exports=function(e){var t=[function(e,t){var n,r,o,i=e.exports={};function u(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:u}catch(e){n=u}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===u||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}var l=[],s=!1,f=-1;function p(){s&&o&&(s=!1,o.length?l=o.concat(l):f=-1,l.length&&d())}function d(){if(!s){var e=c(p);s=!0;for(var t=l.length;t;){for(o=l,l=[];++f1)for(var n=1;n0&&r.syncScrollPosition(r.panes[t][0],e),r.panes[t].push(e))}),r.addEvents(e,t)},r.unregisterPane=function(e,t){t.forEach(function(t){r.findPane(e,t)&&(r.removeEvents(e),r.panes[t].splice(r.panes[t].indexOf(e),1))})},r.addEvents=function(e,t){e.onscroll=r.handlePaneScroll.bind(r,e,t)},r.removeEvents=function(e){e.onscroll=null},r.findPane=function(e,t){return!!r.panes[t]&&r.panes[t].find(function(t){return t===e})},r.handlePaneScroll=function(e,t){r.props.enabled&&window.requestAnimationFrame(function(){r.syncScrollPositions(e,t)})},r.syncScrollPositions=function(e,t){t.forEach(function(n){r.panes[n].forEach(function(o){e!==o&&(r.removeEvents(o,n),r.syncScrollPosition(e,o),window.requestAnimationFrame(function(){r.addEvents(o,t)}))})}),r.props.onSync&&r.props.onSync(e)},l(r,n)}return 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),r(t,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(e,t){var n=e.scrollTop,r=e.scrollHeight,o=e.clientHeight,i=e.scrollLeft,u=e.scrollWidth,a=e.clientWidth,c=r-o,l=u-a,s=this.props,f=s.proportional,p=s.vertical,d=s.horizontal,h=t.scrollHeight-o,y=t.scrollWidth-a;p&&c>0&&(t.scrollTop=f?h*n/c:n),d&&l>0&&(t.scrollLeft=f?y*i/l:i)}},{key:"render",value:function(){return i.default.createElement(a.default.Provider,{value:this.getContextValue()},i.default.Children.only(this.props.children))}}]),t}(o.Component);s.propTypes={onSync:u.default.func,children:u.default.element.isRequired,proportional:u.default.bool,vertical:u.default.bool,horizontal:u.default.bool,enabled:u.default.bool},s.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},t.default=s,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n