diff --git a/dist/index.js b/dist/index.js index 3accc28f..14b1f922 100644 --- a/dist/index.js +++ b/dist/index.js @@ -11,4 +11,4 @@ object-assign (c) Sindre Sorhus @license MIT -*/var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=l(e),c=1;c=0||(o[r]=e[r]);return o}},function(e,t,r){"use strict";var n=r(29);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,l){if(l!==n){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n=r(18);e.exports=function(e){if(Array.isArray(e))return n(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}},function(e,t){e.exports=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(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},,function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return ec})),r.d(t,"moveColumn",(function(){return ks})),r.d(t,"moveCard",(function(){return Ls})),r.d(t,"addColumn",(function(){return Gs})),r.d(t,"removeColumn",(function(){return Ns})),r.d(t,"changeColumn",(function(){return Bs})),r.d(t,"addCard",(function(){return Ws})),r.d(t,"removeCard",(function(){return Hs}));var n=r(3),o=r(0),i=r.n(o);function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(){return(a=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}var O=r(15),R=r.n(O),P=r(14),T="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,D=[],E=[null,null];function A(e,t){var r=e[1];return[t.payload,r+1]}function j(e,t,r){T((function(){return e.apply(void 0,t)}),r)}function z(e,t,r,n,o,i,l){e.current=n,t.current=o,r.current=!1,i.current&&(i.current=null,l())}function M(e,t,r,n,o,i,l,a,s,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,r,f=t.getState();try{e=n(f,o.current)}catch(e){r=e,d=e}r||(d=null),e===i.current?l.current||s():(i.current=e,a.current=e,l.current=!0,c({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=f,r.trySubscribe(),f();return function(){if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function L(e,t){void 0===t&&(t={});var r=t,n=r.getDisplayName,l=void 0===n?function(e){return"ConnectAdvanced("+e+")"}:n,s=r.methodName,c=void 0===s?"connectAdvanced":s,u=r.renderCountProp,d=void 0===u?void 0:u,f=r.shouldHandleStateChanges,p=void 0===f||f,h=r.storeKey,g=void 0===h?"store":h,m=(r.withRef,r.forwardRef),v=void 0!==m&&m,b=r.context,S=void 0===b?y:b,w=I(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),C=S;return function(t){var r=t.displayName||t.name||"Component",n=l(r),s=a({},w,{getDisplayName:l,methodName:c,renderCountProp:d,shouldHandleStateChanges:p,storeKey:g,displayName:n,wrappedComponentName:r,WrappedComponent:t}),u=w.pure;var f=u?o.useMemo:function(e){return e()};function h(r){var n=Object(o.useMemo)((function(){var e=r.reactReduxForwardedRef,t=I(r,["reactReduxForwardedRef"]);return[r.context,e,t]}),[r]),l=n[0],c=n[1],u=n[2],d=Object(o.useMemo)((function(){return l&&l.Consumer&&Object(P.isContextConsumer)(i.a.createElement(l.Consumer,null))?l:C}),[l,C]),h=Object(o.useContext)(d),g=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(h)&&Boolean(h.store);var m=g?r.store:h.store,v=Object(o.useMemo)((function(){return function(t){return e(t.dispatch,s)}(m)}),[m]),b=Object(o.useMemo)((function(){if(!p)return E;var e=new _(m,g?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,g,h]),y=b[0],S=b[1],w=Object(o.useMemo)((function(){return g?h:a({},h,{subscription:y})}),[g,h,y]),x=Object(o.useReducer)(A,D,k),O=x[0][0],R=x[1];if(O&&O.error)throw O.error;var T=Object(o.useRef)(),L=Object(o.useRef)(u),G=Object(o.useRef)(),N=Object(o.useRef)(!1),B=f((function(){return G.current&&u===L.current?G.current:v(m.getState(),u)}),[m,O,u]);j(z,[L,T,N,u,B,G,S]),j(M,[p,m,y,v,L,T,N,G,S,R],[m,y,v]);var W=Object(o.useMemo)((function(){return i.a.createElement(t,a({},B,{ref:c}))}),[c,t,B]);return Object(o.useMemo)((function(){return p?i.a.createElement(d.Provider,{value:w},W):W}),[d,W,w])}var m=u?i.a.memo(h):h;if(m.WrappedComponent=t,m.displayName=n,v){var b=i.a.forwardRef((function(e,t){return i.a.createElement(m,a({},e,{reactReduxForwardedRef:t}))}));return b.displayName=n,b.WrappedComponent=t,R()(b,t)}return R()(m,t)}}function G(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function N(e,t){if(G(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function $(e,t){return e===t}function Z(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?L:r,o=t.mapStateToPropsFactories,i=void 0===o?U:o,l=t.mapDispatchToPropsFactories,s=void 0===l?F:l,c=t.mergePropsFactories,u=void 0===c?q:c,d=t.selectorFactory,f=void 0===d?X:d;return function(e,t,r,o){void 0===o&&(o={});var l=o,c=l.pure,d=void 0===c||c,p=l.areStatesEqual,h=void 0===p?$:p,g=l.areOwnPropsEqual,m=void 0===g?N:g,v=l.areStatePropsEqual,b=void 0===v?N:v,y=l.areMergedPropsEqual,S=void 0===y?N:y,w=I(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),C=J(e,i,"mapStateToProps"),_=J(t,s,"mapDispatchToProps"),x=J(r,u,"mergeProps");return n(f,a({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:_,initMergeProps:x,pure:d,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:S},w))}}var Q=Z();var ee,te=r(11),re=r.n(te);function ne(e,t){var r=Object(o.useState)((function(){return{inputs:t,result:e()}}))[0],n=Object(o.useRef)(r),i=Boolean(t&&n.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}l(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=Ce(window,[{eventName:"error",fn:this.onWindowError}])},r.componentWillUnmount=function(){this.unbind()},r.componentDidCatch=function(e){if(!(e instanceof _e))throw e;this.setState({})},r.render=function(){return this.props.children(this.setCallbacks)},t}(i.a.Component),Oe=function(e){return e+1},Re=function(e,t){var r=e.droppableId===t.droppableId,n=Oe(e.index),o=Oe(t.index);return r?"\n You have moved the item from position "+n+"\n to position "+o+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Pe=function(e,t,r){return t.droppableId===r.droppableId?"\n The item "+e+"\n has been combined with "+r.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},Te=function(e){return"\n The item has returned to its starting position\n of "+Oe(e.index)+"\n"},De="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",Ee=function(e){return"\n You have lifted an item in position "+Oe(e.source.index)+"\n"},Ae=function(e){var t=e.destination;if(t)return Re(e.source,t);var r=e.combine;return r?Pe(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},je=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Te(e.source)+"\n ";var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n "+Re(e.source,t)+"\n ":r?"\n You have dropped the item.\n "+Pe(e.draggableId,e.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Te(e.source)+"\n "},ze={x:0,y:0},Me=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},ke=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Le=function(e,t){return e.x===t.x&&e.y===t.y},Ge=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},Be=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},We=function(e,t){return Math.min.apply(Math,t.map((function(t){return Be(e,t)})))},He=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Fe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ue=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ve=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=ae({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):ae(e)},qe=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,o=e.frame,i=function(e,t,r){var n;return r&&r.increasedBy?a({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(function(e,t){return t?Fe(e,t.scroll.diff.displacement):e}(t.marginBox,o),n,r);return{page:t,withPlaceholder:r,active:Ve(i,o)}},Ye=function(e,t){e.frame||xe(!1);var r=e.frame,n=ke(t,r.scroll.initial),o=Ge(n),i=a({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}});return a({},e,{frame:i,subject:qe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function Ke(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Xe(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;re.bottom,a=n.lefte.right;return!(!l||!a)||(l&&i||a&&o)}},ft=function(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},pt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ht={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},gt=function(e){var t=e.target,r=e.destination,n=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,l=o?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:ze;return Fe(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(l,r,i)&&function(e,t,r){return r(t)(e)}(l,n,i)},mt=function(e){return gt(a({},e,{isVisibleThroughFrameFn:dt}))},vt=function(e){return gt(a({},e,{isVisibleThroughFrameFn:ft}))};function bt(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,l=e.last;return t.reduce((function(e,t){var a=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return ae(se(r,n))}(t,n),s=t.descriptor.id;if(e.all.push(s),!mt({target:a,destination:r,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:s,shouldAnimate:function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,o=t.visible;if(n[e])return!1;var i=o[e];return!i||i.shouldAnimate}(s,l,i)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function yt(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:st,displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function St(e){var t=e.draggable,r=e.insideDestination,n=e.destination,o=e.viewport,i=e.displacedBy,l=e.last,a=e.index,s=e.forceShouldAnimate,c=lt(t,n);if(null==a)return yt({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var u=Je(r,(function(e){return e.descriptor.index===a}));if(!u)return yt({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var d=it(t,r),f=r.indexOf(u);return{displaced:bt({afterDragging:d.slice(f),destination:n,displacedBy:i,last:l,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function wt(e,t){return Boolean(t.effected[e])}var Ct=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,o=e.draggables,i=e.destination,l=e.insideDestination,a=e.previousImpact,s=e.viewport,c=e.afterCritical,u=a.at;if(u||xe(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,o=e.location;if(!n.length)return null;var i=o.index,l=t?i+1:i-1,a=n[0].descriptor.index,s=n[n.length-1].descriptor.index;return l(r?s:s+1)?null:l}({isMovingForward:t,isInHomeList:r,location:u.destination,insideDestination:l});return null==d?null:St({draggable:n,insideDestination:l,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,o=e.combine,i=e.afterCritical;if(!r.isCombineEnabled)return null;var l=o.draggableId,a=n[l].descriptor.index;return wt(l,i)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:a.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:St({draggable:n,insideDestination:l,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})},_t=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,o=ot(r);o||xe(!1);var i=o.draggableId,l=n[i].page.borderBox.center,a=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[n]||t.invisible[n]);return wt(n,r)?i?ze:Ge(o.point):i?o.point:ze}({displaced:r.displaced,afterCritical:t,combineWith:i,displacedBy:r.displacedBy});return Me(l,a)},xt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},It=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},Ot=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ne(t.line,r.marginBox[t.end]+xt(t,n),It(t,r.marginBox,n))},Rt=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ne(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),It(t,r.marginBox,n))},Pt=function(e){var t=e.impact,r=e.draggable,n=e.draggables,o=e.droppable,i=e.afterCritical,l=rt(o.descriptor.id,n),a=r.page,s=o.axis;if(!l.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return Ne(t.line,r.contentBox[t.start]+xt(t,n),It(t,r.contentBox,n))}({axis:s,moveInto:o.page,isMoving:a});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=n[d];if(wt(d,i))return Rt({axis:s,moveRelativeTo:f.page,isMoving:a});var p=pe(f.page,u.point);return Rt({axis:s,moveRelativeTo:p,isMoving:a})}var h=l[l.length-1];if(h.descriptor.id===r.descriptor.id)return a.borderBox.center;if(wt(h.descriptor.id,i)){var g=pe(h.page,Ge(i.displacedBy.point));return Ot({axis:s,moveRelativeTo:g,isMoving:a})}return Ot({axis:s,moveRelativeTo:h.page,isMoving:a})},Tt=function(e,t){var r=e.frame;return r?Me(t,r.scroll.diff.displacement):t},Dt=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.afterCritical,l=r.page.borderBox.center,a=t.at;return n&&a?"REORDER"===a.type?Pt({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:i}):_t({impact:t,draggables:o,afterCritical:i}):l}(e),r=e.droppable;return r?Tt(r,t):t},Et=function(e,t){var r=ke(t,e.scroll.initial),n=Ge(r);return{frame:ae({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function At(e,t){return e.map((function(e){return t[e]}))}var jt=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return Me(e.scroll.diff.displacement,t)}(e.viewport,t),o=ke(n,r.page.borderBox.center);return Me(r.client.borderBox.center,o)},zt=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,l=e.onlyOnMainAxis,s=void 0!==l&&l,c=ke(n,t.page.borderBox.center),u={target:Fe(t.page.borderBox,c),destination:r,withDroppableDisplacement:i,viewport:o};return s?function(e){return gt(a({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=ut(e.top,e.bottom),n=ut(e.left,e.right);return function(e){return t===pt?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(u):vt(u)},Mt=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.draggables,i=e.previousImpact,l=e.viewport,s=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!n.isEnabled)return null;var d=rt(n.descriptor.id,o),f=lt(r,n),p=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.previousImpact;if(!n.isCombineEnabled)return null;if(!nt(i))return null;function l(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return a({},i,{at:t})}var s=i.displaced.all,c=s.length?s[0]:null;if(t)return c?l(c):null;var u=it(r,o);if(!c)return u.length?l(u[u.length-1].descriptor.id):null;var d=Xe(u,(function(e){return e.descriptor.id===c}));-1===d&&xe(!1);var f=d-1;return f<0?null:l(u[f].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:i})||Ct({isMovingForward:t,isInHomeList:f,draggable:r,draggables:o,destination:n,insideDestination:d,previousImpact:i,viewport:l,afterCritical:u});if(!p)return null;var h=Dt({impact:p,draggable:r,droppable:n,draggables:o,afterCritical:u});if(zt({draggable:r,destination:n,newPageBorderBoxCenter:h,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:jt({pageBorderBoxCenter:h,draggable:r,viewport:l}),impact:p,scrollJumpRequest:null};var g=ke(h,s);return{clientSelection:c,impact:function(e){var t=e.impact,r=e.viewport,n=e.destination,o=e.draggables,i=e.maxScrollChange,l=Et(r,Me(r.scroll.current,i)),s=n.frame?Ye(n,Me(n.frame.scroll.current,i)):n,c=t.displaced,u=bt({afterDragging:At(c.all,o),destination:n,displacedBy:t.displacedBy,viewport:l.frame,last:c,forceShouldAnimate:!1}),d=bt({afterDragging:At(c.all,o),destination:s,displacedBy:t.displacedBy,viewport:r.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var r=0;r1?u.sort((function(e,t){return kt(e)[a.start]-kt(t)[a.start]}))[0]:c.sort((function(e,t){var n=We(r,Ue(kt(e))),o=We(r,Ue(kt(t)));return n!==o?n-o:kt(e)[a.start]-kt(t)[a.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:o,droppables:l,viewport:a});if(!c)return null;var u=rt(c.descriptor.id,i),d=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,o=e.draggable,i=e.draggables,l=e.destination,a=e.viewport,s=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:st,displacedBy:at,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:0}}},u=Dt({impact:c,draggable:o,droppable:l,draggables:i,afterCritical:s}),d=lt(o,l)?l:Wt(l,o,i);return zt({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f,p=Boolean(t[l.axis.line]<=r.page.borderBox.center[l.axis.line]),h=(f=r.descriptor.index,r.descriptor.id===o.descriptor.id||p?f:f+1),g=Nt(l.axis,o.displaceBy);return St({draggable:o,insideDestination:n,destination:l,viewport:a,displacedBy:g,last:st,index:h})}({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return vt({target:Gt(e,i),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var o=Be(t,Tt(n,Lt(e,i))),l=Be(t,Tt(n,Lt(r,i)));return on.left&&r.topn.top))return!1;if(qt(o)(t.center))return!0;var i=e.axis,l=o.center[i.crossAxisLine],a=t[i.crossAxisStart],s=t[i.crossAxisEnd],c=ut(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(a),d=c(s);return!u&&!d||(u?al)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,o=r.page.borderBox.center,i=n.map((function(e){var r=e.axis,n=Ne(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:Be(o,n)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:r,candidates:o}):null}var Kt=function(e,t){return ae(Fe(e,t))};function Xt(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var Jt=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,o=e.droppables,i=e.previousImpact,l=e.viewport,a=e.afterCritical,s=Kt(r.page.borderBox,t),c=Yt({pageBorderBox:s,draggable:r,droppables:o});if(!c)return ct;var u,d,f=o[c],p=rt(f.descriptor.id,n),h=(u=s,(d=f.frame)?Kt(u,d.scroll.diff.value):u);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,o=e.destination,i=e.insideDestination,l=e.afterCritical;if(!o.isCombineEnabled)return null;var a=o.axis,s=Nt(o.axis,t.displaceBy),c=s.value,u=r[a.start],d=r[a.end],f=Je(it(t,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox,o=r[a.size]/4,i=wt(t,l),s=Xt({displaced:n.displaced,id:t});return i?s?d>r[a.start]+o&&dr[a.start]-c+o&&ur[a.start]+c+o&&dr[a.start]+o&&ut.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:Je(it(r,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=wt(t,a),o=Xt({displaced:i,id:t});return n?o?f<=r:d=1500)return zr;var i=jr+Mr*(o/1500);return Number(("CANCEL"===n?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:y,completed:b}))}else r(Cr({completed:b}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(n)}}},Lr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Gr(e){var t=e.onWindowScroll;var r,n=ye((function(){t(Lr())})),o=(r=n,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||r()}}),i=we;function l(){return i!==we}return{start:function(){l()&&xe(!1),i=Ce(window,[o])},stop:function(){l()||xe(!1),n.cancel(),i(),i=we},isActive:l}}var Nr=function(e){var t=Gr({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},Br=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=Xe(e,(function(e){return e.timerId===t}));-1===r&&xe(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Wr=function(e,t){or(),t(),ir()},Hr=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Fr=function(e,t,r,n){if(e){var o=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),o=function(o){t||r||(t=!0,e(o),clearTimeout(n))};return o.wasCalled=function(){return t},o}(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}else r(n(t))},Ur=function(e,t){var r=function(e,t){var r=Br(),n=null,o=function(r){n||xe(!1),n=null,Wr(0,(function(){return Fr(e().onDragEnd,r,t,je)}))};return{beforeCapture:function(t,r){n&&xe(!1),Wr(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&xe(!1),Wr(0,(function(){var n=e().onBeforeDragStart;n&&n(Hr(t,r))}))},start:function(o,i){n&&xe(!1);var l=Hr(o,i);n={mode:i,lastCritical:o,lastLocation:l.source,lastCombine:null},r.add((function(){Wr(0,(function(){return Fr(e().onDragStart,l,t,Ee)}))}))},update:function(o,i){var l=nt(i),s=ot(i);n||xe(!1);var c=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(o,n.lastCritical);c&&(n.lastCritical=o);var u,d,f=(u=n.lastLocation,d=l,!(null==u&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(n.lastLocation=l);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(n.lastCombine,s);if(p&&(n.lastCombine=s),c||f||p){var h=a({},Hr(o,n.mode),{combine:s,destination:l});r.add((function(){Wr(0,(function(){return Fr(e().onDragUpdate,h,t,Ae)}))}))}},flush:function(){n||xe(!1),r.flush()},drop:o,abort:function(){if(n){var e=a({},Hr(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var o=n.payload.critical;return r.beforeStart(o,n.payload.movementMode),t(n),void r.start(o,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var i=n.payload.completed.result;return r.flush(),t(n),void r.drop(i)}if(t(n),"FLUSH"!==n.type){var l=e.getState();"DRAGGING"===l.phase&&r.update(l.critical,l.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Vr=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&xe(!1),e.dispatch(Cr({completed:n.completed}))}else t(r)}}},qr=function(e){var t=null,r=null;return function(n){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=Ce(window,[i])}))}}}},Yr=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(_r({reason:n.reason})))}}}},Kr=b,Xr=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,l=e.announce,a=e.autoScroller;return f(dr,Kr(function(){for(var e=arguments.length,t=new Array(e),r=0;rt.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return dn;if(e===t.startScrollingFrom)return 1;var r=hn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=dn*fn(1-r);return Math.ceil(n)}(t,r);return 0===i?0:o?Math.max(function(e,t){var r=t,n=mn,o=Date.now()-r;if(o>=mn)return e;if(ot.height,i=r.width>t.width;return i||o?i&&o?null:{x:i?0:n.x,y:o?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return u?Le(u,ze)?null:u:null},wn=He((function(e){return 0===e?0:e>0?1:-1})),Cn=(tn=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,o=Me(t,n),i={x:tn(o.x,r.x),y:tn(o.y,r.y)};return Le(i,ze)?null:i}),_n=function(e){var t=e.max,r=e.current,n=e.change,o={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},i=wn(n),l=Cn({max:o,current:r,change:i});return!l||(0!==i.x&&0===l.x||0!==i.y&&0===l.y)},xn=function(e,t){return _n({current:e.scroll.current,max:e.scroll.max,change:t})},In=function(e,t){var r=e.frame;return!!r&&_n({current:r.scroll.current,max:r.scroll.max,change:t})},On=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,l=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,l=Sn({dragStartTime:o,container:t.frame,subject:r,center:n,shouldUseTimeDampening:i});return l&&xn(t,l)?l:null}({dragStartTime:r,viewport:t.viewport,subject:a,center:l,shouldUseTimeDampening:n});if(s)return void o(s)}var c=sn({center:l,destination:Ft(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,l=t.frame;if(!l)return null;var a=Sn({dragStartTime:o,container:l.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:i});return a&&In(t,a)?a:null}({dragStartTime:r,droppable:c,subject:a,center:l,shouldUseTimeDampening:n});u&&i(c.descriptor.id,u)}},Rn=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,o=function(e,t){if(!In(e,t))return t;var n=function(e,t){var r=e.frame;return r&&In(e,t)?Cn({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var o=ke(t,n);return r(e.descriptor.id,o),ke(t,o)},i=function(e,t,r){if(!e)return r;if(!xn(t,r))return r;var o=function(e,t){if(!xn(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return Cn({current:n,max:r,change:t})}(t,r);if(!o)return n(r),null;var i=ke(r,o);return n(i),ke(r,i)};return function(e){var r=e.scrollJumpRequest;if(r){var n=Ft(e.impact);n||xe(!1);var l=o(e.dimensions.droppables[n],r);if(l){var a=e.viewport,s=i(e.isWindowScrollAllowed,a,l);s&&function(e,r){var n=Me(e.current.client.selection,r);t({client:n})}(e,s)}}}},Pn=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,o=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=ye(t),o=ye(r),i=null,l=function(e){i||xe(!1);var t=i,r=t.shouldUseTimeDampening,l=t.dragStartTime;On({state:e,scrollWindow:n,scrollDroppable:o,dragStartTime:l,shouldUseTimeDampening:r})};return{start:function(e){or(),i&&xe(!1);var t=Date.now(),r=!1,n=function(){r=!0};On({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),i={dragStartTime:t,shouldUseTimeDampening:r},ir(),r&&l(e)},stop:function(){i&&(n.cancel(),o.cancel(),i=null)},scroll:l}}({scrollWindow:r,scrollDroppable:t}),i=Rn({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Tn={base:rn="data-rbd-drag-handle",draggableId:rn+"-draggable-id",contextId:rn+"-context-id"},Dn=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),En=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),An={contextId:"data-rbd-scroll-container-context-id"},jn=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},zn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,Mn=function(){var e=document.querySelector("head");return e||xe(!1),e},kn=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Ln(e,t){var r=oe((function(){return function(e){var t,r,n,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(r="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Tn.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),l=[(n="\n transition: "+Tr.outOfTheWay+";\n ",{selector:o(Dn.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:o(En.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:jn(l,"always"),resting:jn(l,"resting"),dragging:jn(l,"dragging"),dropAnimating:jn(l,"dropAnimating"),userCancel:jn(l,"userCancel")}}(e)}),[e]),n=Object(o.useRef)(null),i=Object(o.useRef)(null),l=ie(be((function(e){var t=i.current;t||xe(!1),t.textContent=e})),[]),a=ie((function(e){var t=n.current;t||xe(!1),t.textContent=e}),[]);zn((function(){(n.current||i.current)&&xe(!1);var o=kn(t),s=kn(t);return n.current=o,i.current=s,o.setAttribute("data-rbd-always",e),s.setAttribute("data-rbd-dynamic",e),Mn().appendChild(o),Mn().appendChild(s),a(r.always),l(r.resting),function(){var e=function(e){var t=e.current;t||xe(!1),Mn().removeChild(t),e.current=null};e(n),e(i)}}),[t,a,l,r.always,r.resting,e]);var s=ie((function(){return l(r.dragging)}),[l,r.dragging]),c=ie((function(e){l("DROP"!==e?r.userCancel:r.dropAnimating)}),[l,r.dropAnimating,r.userCancel]),u=ie((function(){i.current&&l(r.resting)}),[l,r.resting]);return oe((function(){return{dragging:s,dropping:c,resting:u}}),[s,c,u])}var Gn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Nn(e){return e instanceof Gn(e).HTMLElement}function Bn(e,t){var r="["+Tn.contextId+'="'+e+'"]',n=$e(document.querySelectorAll(r));if(!n.length)return null;var o=Je(n,(function(e){return e.getAttribute(Tn.draggableId)===t}));return o&&Nn(o)?o:null}function Wn(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=n(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||xe(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return Ke(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=o(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||xe(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ke(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Hn=i.a.createContext(null),Fn=function(){var e=document.body;return e||xe(!1),e},Un={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Vn=0,qn={separator:"::"};function Yn(e,t){return void 0===t&&(t=qn),oe((function(){return""+e+t.separator+Vn++}),[t.separator,e])}var Kn=i.a.createContext(null);function Xn(e){0}function Jn(e,t){Xn()}function $n(){Jn()}function Zn(e){var t=Object(o.useRef)(e);return Object(o.useEffect)((function(){t.current=e})),t}var Qn,eo=((Qn={})[13]=!0,Qn[9]=!0,Qn),to=function(e){eo[e.keyCode]&&e.preventDefault()},ro=function(){var e="visibilitychange";return"undefined"==typeof document?e:Je([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var no,oo={type:"IDLE"};function io(e){var t=e.cancel,r=e.completed,n=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,i=e.clientY;if(0===t){var l={x:r,y:i},a=n();if("DRAGGING"===a.type)return e.preventDefault(),void a.actions.move(l);"PENDING"!==a.type&&xe(!1);var s=a.point;if(c=s,u=l,Math.abs(u.x-c.x)>=5||Math.abs(u.y-c.y)>=5){var c,u;e.preventDefault();var d=a.actions.fluidLift(l);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void to(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&xe(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:ro,fn:t}]}function lo(){}var ao=((no={})[34]=!0,no[33]=!0,no[36]=!0,no[35]=!0,no);function so(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(ao[n.keyCode]?n.preventDefault():to(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:ro,fn:r}]}var co={type:"IDLE"};var uo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function fo(e,t){var r=t.target;return!!Nn(r)&&function e(t,r){if(null==r)return!1;if(Boolean(uo[r.tagName.toLowerCase()]))return!0;var n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==t&&e(t,r.parentElement)}(e,r)}var po=function(e){return ae(e.getBoundingClientRect()).center};var ho="undefined"==typeof document?"matches":Je(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function go(e,t){return e.closest?e.closest(t):function e(t,r){return null==t?null:t[ho](r)?t:e(t.parentElement,r)}(e,t)}function mo(e,t){var r,n=t.target;if(!((r=n)instanceof Gn(r).Element))return null;var o=go(n,function(e){return"["+Tn.contextId+'="'+e+'"]'}(e));return o&&Nn(o)?o:null}function vo(e){e.preventDefault()}function bo(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function yo(e){var t=e.lockAPI,r=e.store,n=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=n.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!on(r.getState(),o))}function So(e){var t=e.lockAPI,r=e.contextId,n=e.store,o=e.registry,i=e.draggableId,l=e.forceSensorStop,s=e.sourceEvent;if(!yo({lockAPI:t,store:n,registry:o,draggableId:i}))return null;var c=o.draggable.getById(i),u=function(e,t){var r="["+Dn.contextId+'="'+e+'"]',n=Je($e(document.querySelectorAll(r)),(function(e){return e.getAttribute(Dn.id)===t}));return n&&Nn(n)?n:null}(r,c.descriptor.id);if(!u)return null;if(s&&!c.options.canDragInteractiveElements&&fo(u,s))return null;var d=t.claim(l||we),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var g=function(e,t){bo({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function m(e){function r(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Ce(window,[{eventName:"click",fn:vo,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}r(),n.dispatch(_r({reason:t}))}return"PRE_DRAG"!==f&&(r(),"PRE_DRAG"!==f&&xe(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",a({isActive:function(){return bo({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return bo({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ye((function(e){g((function(){return vr({client:e})}))}));return a({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return g(br)},moveRight:function(){return g(Sr)},moveDown:function(){return g(yr)},moveLeft:function(){return g(wr)}};return m({liftActionArgs:{id:i,clientSelection:po(u),movementMode:"SNAP"},cleanup:we,actions:e})},abort:function(){bo({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var wo=[function(e){var t=Object(o.useRef)(oo),r=Object(o.useRef)(we),n=oe((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};r.current(),u(o,i)}}}}}}),[e]),i=oe((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),l=ie((function(){r.current=Ce(window,[i,n],{passive:!1,capture:!0})}),[i,n]),a=ie((function(){"IDLE"!==t.current.type&&(t.current=oo,r.current(),l())}),[l]),s=ie((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),c=ie((function(){var e=io({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=Ce(window,e,{capture:!0,passive:!1})}),[s,a]),u=ie((function(e,r){"IDLE"!==t.current.type&&xe(!1),t.current={type:"PENDING",point:r,actions:e},c()}),[c]);zn((function(){return l(),function(){r.current()}}),[l])},function(e){var t=Object(o.useRef)(lo),r=oe((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var o=e.findClosestDraggableId(r);if(o){var i=e.tryGetLock(o,s,{sourceEvent:r});if(i){r.preventDefault();var l=!0,a=i.snapLift();t.current(),t.current=Ce(window,so(a,s),{capture:!0,passive:!1})}}}function s(){l||xe(!1),l=!1,t.current(),n()}}}}),[e]),n=ie((function(){t.current=Ce(window,[r],{passive:!1,capture:!0})}),[r]);zn((function(){return n(),function(){t.current()}}),[n])},function(e){var t=Object(o.useRef)(co),r=Object(o.useRef)(we),n=ie((function(){return t.current}),[]),i=ie((function(e){t.current=e}),[]),l=oe((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,s,{sourceEvent:t});if(o){var i=t.touches[0],l={x:i.clientX,y:i.clientY};r.current(),f(o,l)}}}}}}),[e]),a=ie((function(){r.current=Ce(window,[l],{capture:!0,passive:!1})}),[l]),s=ie((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(co),r.current(),a())}),[a,i]),c=ie((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=ie((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:n},o=Ce(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),r.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&xe(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:ro,fn:t}]}(t),e),i=Ce(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:ro,fn:t}]}(t),e);r.current=function(){o(),i()}}),[c,n,s]),d=ie((function(){var e=n();"PENDING"!==e.type&&xe(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[n,i]),f=ie((function(e,t){"IDLE"!==n().type&&xe(!1);var r=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:r}),u()}),[u,n,i,d]);zn((function(){return a(),function(){r.current();var e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(co))}}),[n,a,i]),zn((function(){return Ce(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Co(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,l=e.enableDefaultSensors,a=[].concat(l?wo:[],i||[]),s=Object(o.useState)((function(){return function(){var e=null;function t(){e||xe(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&xe(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=ie((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);zn((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();c(e,t),e=t}))}),[s,r,c]),zn((function(){return s.tryAbandon}),[s.tryAbandon]);var u=ie((function(e){return yo({lockAPI:s,registry:n,store:r,draggableId:e})}),[s,n,r]),d=ie((function(e,o,i){return So({lockAPI:s,registry:n,contextId:t,store:r,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,n,r]),f=ie((function(e){return function(e,t){var r=mo(e,t);return r?r.getAttribute(Tn.draggableId):null}(t,e)}),[t]),p=ie((function(e){var t=n.draggable.findById(e);return t?t.options:null}),[n.draggable]),h=ie((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[s,r]),g=ie(s.isClaimed,[s]),m=oe((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:g}}),[u,d,f,p,h,g]);Xn();for(var v=0;v=0&&s===a&&c())}var Mi=r(12),ki=r.n(Mi),Li=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;pi()(this,e),Ii()(this,"_cellSizeAndPositionData",{}),Ii()(this,"_lastMeasuredIndex",-1),Ii()(this,"_lastBatchedIndex",-1),Ii()(this,"_cellCount",void 0),Ii()(this,"_cellSizeGetter",void 0),Ii()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return gi()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,r=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=r,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),r=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var o=this._cellSizeGetter({index:n});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(o));null===o?(this._cellSizeAndPositionData[n]={offset:r,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:r,size:o},r+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var l,a=this.getSizeAndPositionOfCell(i),s=a.offset,c=s-n+a.size;switch(r){case"start":l=s;break;case"end":l=c;break;case"center":l=s-(n-a.size)/2;break;default:l=Math.max(c,Math.min(s,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-n,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;if(0===this.getTotalSize())return{};var n=r+t,o=this._findNearestCell(r),i=this.getSizeAndPositionOfCell(o);r=i.offset+i.size;for(var l=o;rr&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var r=1;e=e?this._binarySearch(r,0,e):this._exponentialSearch(r,e)}}]),e}(),Gi=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},Ni=function(){function e(t){var r=t.maxScrollSize,n=void 0===r?Gi():r,o=ki()(t,["maxScrollSize"]);pi()(this,e),Ii()(this,"_cellSizeAndPositionManager",void 0),Ii()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Li(o),this._maxScrollSize=n}return gi()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(o-n))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:n,offset:o});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;return r=this._safeOffsetToOffset({containerSize:t,offset:r}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:r})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,r=e.offset,n=e.totalSize;return n<=t?0:r/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:n});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(n-t))}}]),e}();function Bi(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),l=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Object.keys(t).length||i.some((function(e){var r=t[e],n=o[e];return Array.isArray(n)?r.join(",")!==n.join(","):r!==n}));t=o,l&&a&&n(o)}}function Wi(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,l=e.previousScrollToIndex,a=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=r.getCellCount(),g=u>=0&&u0&&(dr.getTotalSize()-d&&p(h-1)}var Hi,Fi,Ui=!("undefined"==typeof window||!window.document||!window.document.createElement);function Vi(e){if((!Hi&&0!==Hi||e)&&Ui){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Hi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Hi}var qi,Yi,Ki=(Fi="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||Fi.webkitRequestAnimationFrame||Fi.mozRequestAnimationFrame||Fi.oRequestAnimationFrame||Fi.msRequestAnimationFrame||function(e){return Fi.setTimeout(e,1e3/60)},Xi=Fi.cancelAnimationFrame||Fi.webkitCancelAnimationFrame||Fi.mozCancelAnimationFrame||Fi.oCancelAnimationFrame||Fi.msCancelAnimationFrame||function(e){Fi.clearTimeout(e)},Ji=Ki,$i=Xi,Zi=function(e){return $i(e.id)},Qi=function(e,t){var r;Promise.resolve().then((function(){r=Date.now()}));var n={id:Ji((function o(){Date.now()-r>=t?e.call():n.id=Ji(o)}))};return n};function el(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t0&&(r._initialScrollTop=r._getCalculatedScrollTop(e,r.state)),e.scrollToColumn>0&&(r._initialScrollLeft=r._getCalculatedScrollLeft(e,r.state)),r}return _i()(t,e),gi()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,r=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,o=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,l=void 0===i?this.props.scrollToRow:i,a=tl({},this.props,{scrollToAlignment:r,scrollToColumn:o,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,r=void 0===t?0:t,n=e.scrollTop,o=void 0===n?0:n;if(!(o<0)){this._debounceScrollEnded();var i=this.props,l=i.autoHeight,a=i.autoWidth,s=i.height,c=i.width,u=this.state.instanceProps,d=u.scrollbarSize,f=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+d),r),g=Math.min(Math.max(0,f-s+d),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==g){var m={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:rl};l||(m.scrollTop=g),a||(m.scrollLeft=h),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:g,totalColumnsWidth:p,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,r=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(r-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n,i=this.props,l=i.scrollToColumn,a=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(r),s.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?r<=l:r>=l),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?o<=a:o>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,r=e.rowIndex,n=this.props.columnCount,o=this.props;n>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(tl({},o,{scrollToColumn:t})),void 0!==r&&this._updateScrollTopForScrollToRow(tl({},o,{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,r=e.getScrollbarSize,n=e.height,o=e.scrollLeft,i=e.scrollToColumn,l=e.scrollTop,a=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=tl({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=r(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof o&&o>=0||"number"==typeof l&&l>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:l});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=n>0&&s>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,o=n.autoHeight,i=n.autoWidth,l=n.columnCount,a=n.height,s=n.rowCount,c=n.scrollToAlignment,u=n.scrollToColumn,d=n.scrollToRow,f=n.width,p=this.state,h=p.scrollLeft,g=p.scrollPositionChangeReason,m=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var b=l>0&&0===e.columnCount||s>0&&0===e.rowCount;g===nl&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||b)&&(this._scrollingContainer.scrollLeft=h),!o&&m>=0&&(m!==this._scrollingContainer.scrollTop||b)&&(this._scrollingContainer.scrollTop=m));var y=(0===e.width||0===e.height)&&a>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Wi({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:f,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Wi({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:m,scrollToAlignment:c,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return r._updateScrollTopForScrollToRow(r.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||m!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),w=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:w,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Zi(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,r=e.autoHeight,n=e.autoWidth,i=e.className,l=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,u=e.id,d=e.noContentRenderer,f=e.role,p=e.style,h=e.tabIndex,g=e.width,m=this.state,v=m.instanceProps,b=m.needToResetStyleCache,y=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:r?"auto":c,position:"relative",width:n?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};b&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var w=v.columnSizeAndPositionManager.getTotalSize(),C=v.rowSizeAndPositionManager.getTotalSize(),_=C>c?v.scrollbarSize:0,x=w>g?v.scrollbarSize:0;x===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=x,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),S.overflowX=w+_<=g?"hidden":"auto",S.overflowY=C+x<=c?"hidden":"auto";var I=this._childrenToDisplay,O=0===I.length&&c>0&&g>0;return o.createElement("div",Ei()({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:ji("ReactVirtualized__Grid",i),id:u,onScroll:this._onScroll,role:f,style:tl({},S,{},p),tabIndex:h}),I.length>0&&o.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:tl({width:t?"auto":w,height:C,maxWidth:w,maxHeight:C,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},s)},I),O&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=e.cellRenderer,n=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,l=e.height,a=e.overscanColumnCount,s=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,d=e.width,f=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,g=t.instanceProps,m=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,b=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&d>0){var y=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:m}),w=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),C=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:m});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var _=s({direction:"horizontal",cellCount:o,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),x=s({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),I=_.overscanStartIndex,O=_.overscanStopIndex,R=x.overscanStartIndex,P=x.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var T=R;T<=P;T++)if(!i.has(T,0)){I=0,O=o-1;break}if(!i.hasFixedWidth())for(var D=I;D<=O;D++)if(!i.has(0,D)){R=0,P=u-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:I,columnStopIndex:O,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:b,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:R,rowStopIndex:P,scrollLeft:v,scrollTop:m,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:y,visibleRowIndices:S}),this._columnStartIndex=I,this._columnStopIndex=O,this._rowStartIndex=R,this._rowStopIndex=P}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Zi(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Qi(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:i,scrollLeft:r,scrollTop:n,scrollWidth:o})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var r=e.scrollLeft,n=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:n});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,r)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollLeftForScrollToColumnStateUpdate(e,r);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,r)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,r=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(n,"-").concat(o);this._styleCache[i]=e[i],r&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollTopForScrollToRowStateUpdate(e,r);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var n={};0===e.columnCount&&0!==r.scrollLeft||0===e.rowCount&&0!==r.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==r.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==r.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,l=r.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(n.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(n,{isScrolling:!1}),zi({cellCount:l.prevColumnCount,cellSize:"number"==typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,r)}}),zi({cellCount:l.prevRowCount,cellSize:"number"==typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,r)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,n.instanceProps=l,tl({},n,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,r=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:nl};return"number"==typeof r&&r>=0&&(o.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,o.scrollLeft=r),"number"==typeof n&&n>=0&&(o.scrollDirectionVertical=n>t.scrollTop?1:-1,o.scrollTop=n),"number"==typeof r&&r>=0&&r!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var r=e.columnCount,n=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,l=e.width,a=t.scrollLeft,s=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),d=s.rowSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>n?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:l-f,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,r){var n=r.scrollLeft,o=t._getCalculatedScrollLeft(e,r);return"number"==typeof o&&o>=0&&n!==o?t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var r=e.height,n=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,l=e.width,a=t.scrollTop,s=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),d=s.columnSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>l?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:r-f,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,r){var n=r.scrollTop,o=t._getCalculatedScrollTop(e,r);return"number"==typeof o&&o>=0&&n!==o?t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:-1,scrollTop:o}):{}}}]),t}(o.PureComponent),Ii()(qi,"propTypes",null),Yi);Ii()(ol,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,l=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,g=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],y=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!s&&!y,w=f;w<=p;w++)for(var C=d.getSizeAndPositionOfCell(w),_=o;_<=i;_++){var x=n.getSizeAndPositionOfCell(_),I=_>=m.start&&_<=m.stop&&w>=v.start&&w<=v.stop,O="".concat(w,"-").concat(_),R=void 0;S&&h[O]?R=h[O]:l&&!l.has(w,_)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:C.size,left:x.offset+a,position:"absolute",top:C.offset+g,width:x.size},h[O]=R);var P={columnIndex:_,isScrolling:s,isVisible:I,key:O,parent:u,rowIndex:w,style:R},T=void 0;!c&&!s||a||g?T=r(P):(t[O]||(t[O]=r(P)),T=t[O]),null!=T&&!1!==T&&b.push(T)}return b},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Vi,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Ti(ol);var il=ol;function ll(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),1===n?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}}var al,sl;function cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ul=(sl=al=function(e){function t(){var e,r;pi()(this,t);for(var n=arguments.length,o=new Array(n),i=0;i=0){var u=t.getScrollPositionForCell({align:o,cellIndex:i,height:n,scrollLeft:s,scrollTop:c,width:l});u.scrollLeft===s&&u.scrollTop===c||r._setScrollPosition(u)}})),Ii()(wi()(r),"_onScroll",(function(e){if(e.target===r._scrollingContainer){r._enablePointerEventsAfterDelay();var t=r.props,n=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,l=t.width,a=r._scrollbarSize,s=n.getTotalSize(),c=s.height,u=s.width,d=Math.max(0,Math.min(u-l+a,e.target.scrollLeft)),f=Math.max(0,Math.min(c-o+a,e.target.scrollTop));if(r.state.scrollLeft!==d||r.state.scrollTop!==f){var p=e.cancelable?Cl:_l;r.state.isScrolling||i(!0),r.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:f})}r._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:u,totalHeight:c})}})),r._scrollbarSize=Vi(),void 0===r._scrollbarSize?(r._scrollbarSizeMeasured=!1,r._scrollbarSize=0):r._scrollbarSizeMeasured=!0,r}return _i()(t,e),gi()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,r=e.scrollLeft,n=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Vi(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(r>=0||o>=0)&&this._setScrollPosition({scrollLeft:r,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),l=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:o||0,totalHeight:l,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.height,o=r.scrollToAlignment,i=r.scrollToCell,l=r.width,a=this.state,s=a.scrollLeft,c=a.scrollPositionChangeReason,u=a.scrollTop;c===_l&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),n===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&l===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,r=e.cellCount,n=e.cellLayoutManager,i=e.className,l=e.height,a=e.horizontalOverscanSize,s=e.id,c=e.noContentRenderer,u=e.style,d=e.verticalOverscanSize,f=e.width,p=this.state,h=p.isScrolling,g=p.scrollLeft,m=p.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),b=v.height,y=v.width,S=Math.max(0,g-a),w=Math.max(0,m-d),C=Math.min(y,g+f+a),_=Math.min(b,m+l+d),x=l>0&&f>0?n.cellRenderers({height:_-w,isScrolling:h,width:C-S,x:S,y:w}):[],I={boxSizing:"border-box",direction:"ltr",height:t?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},O=b>l?this._scrollbarSize:0,R=y>f?this._scrollbarSize:0;return I.overflowX=y+O<=f?"hidden":"auto",I.overflowY=b+R<=l?"hidden":"auto",o.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ji("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:wl({},I,{},u),tabIndex:0},r>0&&o.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:b,maxHeight:b,maxWidth:y,overflow:"hidden",pointerEvents:h?"none":"",width:y}},x),0===r&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:o,scrollLeft:r,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:_l};t>=0&&(n.scrollLeft=t),r>=0&&(n.scrollTop=r),(t>=0&&t!==this.state.scrollLeft||r>=0&&r!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:_l}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:_l}}}]),t}(o.PureComponent);Ii()(xl,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),xl.propTypes={},Ti(xl);var Il=xl,Ol=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;pi()(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return gi()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),Rl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;pi()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return gi()(e,[{key:"getCellIndices",value:function(e){var t=e.height,r=e.width,n=e.x,o=e.y,i={};return this.getSections({height:t,width:r,x:n,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,r=e.width,n=e.x,o=e.y,i=Math.floor(n/this._sectionSize),l=Math.floor((n+r-1)/this._sectionSize),a=Math.floor(o/this._sectionSize),s=Math.floor((o+t-1)/this._sectionSize),c=[],u=i;u<=l;u++)for(var d=a;d<=s;d++){var f="".concat(u,".").concat(d);this._sections[f]||(this._sections[f]=new Ol({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,r=e.index;this._cellMetadata[r]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:r})}))}}]),e}();function Pl(e){var t=e.align,r=void 0===t?"auto":t,n=e.cellOffset,o=e.cellSize,i=e.containerSize,l=e.currentOffset,a=n,s=a-i+o;switch(r){case"start":return a;case"end":return s;case"center":return a-(i-o)/2;default:return Math.max(s,Math.min(a,l))}}var Tl=function(e){function t(e,r){var n;return pi()(this,t),(n=vi()(this,yi()(t).call(this,e,r)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(wi()(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(wi()(n)),n}return _i()(t,e),gi()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=Ei()({},this.props);return o.createElement(Il,Ei()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new Rl(n),l=0,a=0,s=0;s=0&&ro||l1&&void 0!==arguments[1]?arguments[1]:0,r="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,r=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=r,this._doStuff(t,r)}},{key:"_doStuff",value:function(e,t){var r,n=this,o=this.props,i=o.isRowLoaded,l=o.minimumBatchSize,a=o.rowCount,s=o.threshold,c=function(e){for(var t=e.isRowLoaded,r=e.minimumBatchSize,n=e.rowCount,o=e.startIndex,i=e.stopIndex,l=[],a=null,s=null,c=o;c<=i;c++){t({index:c})?null!==s&&(l.push({startIndex:a,stopIndex:s}),a=s=null):(s=c,null===a&&(a=c))}if(null!==s){for(var u=Math.min(Math.max(s,a+r-1),n-1),d=s+1;d<=u&&!t({index:d});d++)s=d;l.push({startIndex:a,stopIndex:s})}if(l.length)for(var f=l[0];f.stopIndex-f.startIndex+10;){var p=f.startIndex-1;if(t({index:p}))break;f.startIndex=p}return l}({isRowLoaded:i,minimumBatchSize:l,rowCount:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(a-1,t+s)}),u=(r=[]).concat.apply(r,Al()(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(o.PureComponent);Ii()(jl,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),jl.propTypes={};var zl,Ml,kl=(Ml=zl=function(e){function t(){var e,r;pi()(this,t);for(var n=arguments.length,o=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.noRowsRenderer,n=e.scrollToIndex,i=e.width,l=ji("ReactVirtualized__List",t);return o.createElement(il,Ei()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:i,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(o.PureComponent),Ii()(zl,"propTypes",null),Ml);Ii()(kl,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:ll,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var Ll=r(21),Gl=r.n(Ll);var Nl={ge:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(var i=r+1;t<=r;){var l=t+r>>>1;o(e[l],n)>=0?(i=l,r=l-1):t=l+1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1;e[i]>=n?(o=i,r=i-1):t=i+1}return o}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)},gt:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(var i=r+1;t<=r;){var l=t+r>>>1;o(e[l],n)>0?(i=l,r=l-1):t=l+1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1;e[i]>n?(o=i,r=i-1):t=i+1}return o}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)},lt:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(var i=t-1;t<=r;){var l=t+r>>>1;o(e[l],n)<0?(i=l,t=l+1):r=l-1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1;e[i]>>1;o(e[l],n)<=0?(i=l,t=l+1):r=l-1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1;e[i]<=n?(o=i,t=i+1):r=i-1}return o}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)},eq:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(;t<=r;){var i=t+r>>>1,l=o(e[i],n);if(0===l)return i;l<=0?t=i+1:r=i-1}return-1}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(;t<=r;){var o=t+r>>>1,i=e[o];if(i===n)return o;i<=n?t=o+1:r=o-1}return-1}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)}};function Bl(e,t,r,n,o){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=o,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var Wl=Bl.prototype;function Hl(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Fl(e,t){var r=Zl(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function Ul(e,t){var r=e.intervals([]);r.push(t),Fl(e,r)}function Vl(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?0:(r.splice(n,1),Fl(e,r),1)}function ql(e,t,r){for(var n=0;n=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function Kl(e,t){for(var r=0;r>1],o=[],i=[],l=[];for(r=0;r3*(t+1)?Ul(this,e):this.left.insert(e):this.left=Zl([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ul(this,e):this.right.insert(e):this.right=Zl([e]);else{var r=Nl.ge(this.leftPoints,e,Jl),n=Nl.ge(this.rightPoints,e,$l);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}},Wl.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?Vl(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Vl(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,n=this.left;n.right;)r=n,n=n.right;if(r===this)n.right=this.right;else{var o=this.left,i=this.right;r.count-=n.count,r.right=n.left,n.left=o,n.right=i}Hl(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Hl(this,this.left):Hl(this,this.right);return 1}for(o=Nl.ge(this.leftPoints,e,Jl);othis.mid){var r;if(this.right)if(r=this.right.queryPoint(e,t))return r;return Yl(this.rightPoints,e,t)}return Kl(this.leftPoints,t)},Wl.queryInterval=function(e,t,r){var n;if(ethis.mid&&this.right&&(n=this.right.queryInterval(e,t,r)))return n;return tthis.mid?Yl(this.rightPoints,e,r):Kl(this.leftPoints,r)};var ea=Ql.prototype;ea.insert=function(e){this.root?this.root.insert(e):this.root=new Bl(e[0],null,null,[e],[e])},ea.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},ea.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},ea.queryInterval=function(e,t,r){if(e<=t&&this.root)return this.root.queryInterval(e,t,r)},Object.defineProperty(ea,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(ea,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var ta,ra,na=function(){function e(){var t;pi()(this,e),Ii()(this,"_columnSizeMap",{}),Ii()(this,"_intervalTree",t&&0!==t.length?new Ql(Zl(t)):new Ql(null)),Ii()(this,"_leftMap",{})}return gi()(e,[{key:"estimateTotalHeight",value:function(e,t,r){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*r}},{key:"range",value:function(e,t,r){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Gl()(e,3),o=t[0],i=(t[1],t[2]);return r(i,n._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,r,n){this._intervalTree.insert([r,r+n,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?r+n:Math.max(i,r+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var r in e){var n=e[r];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var r in e){var n=e[r];t=Math.max(t,n)}return t}}]),e}();function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ia(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};pi()(this,e),Ii()(this,"_cellMeasurerCache",void 0),Ii()(this,"_columnIndexOffset",void 0),Ii()(this,"_rowIndexOffset",void 0),Ii()(this,"columnWidth",(function(e){var r=e.index;t._cellMeasurerCache.columnWidth({index:r+t._columnIndexOffset})})),Ii()(this,"rowHeight",(function(e){var r=e.index;t._cellMeasurerCache.rowHeight({index:r+t._rowIndexOffset})}));var n=r.cellMeasurerCache,o=r.columnIndexOffset,i=void 0===o?0:o,l=r.rowIndexOffset,a=void 0===l?0:l;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=a}return gi()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,r,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,r,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ua(e){for(var t=1;t0?new sa({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:a}):i,n._deferredMeasurementCacheBottomRightGrid=l>0||a>0?new sa({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:a}):i,n._deferredMeasurementCacheTopRightGrid=l>0?new sa({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:0}):i),n}return _i()(t,e),gi()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,r):r,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n,i=this.props,l=i.fixedColumnCount,a=i.fixedRowCount,s=Math.max(0,r-l),c=Math.max(0,o-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,r=e.scrollTop;if(t>0||r>0){var n={};t>0&&(n.scrollLeft=t),r>0&&(n.scrollTop=r),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,r=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=ki()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return o.createElement("div",{style:this._containerOuterStyle},o.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(ua({},l,{onScroll:t,scrollLeft:s}))),o.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(ua({},l,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(ua({},l,{onScroll:t,onSectionRendered:r,scrollLeft:s,scrollToColumn:n,scrollToRow:i,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,r=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof r){for(var n=0,o=0;o=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(o.PureComponent);Ii()(da,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),da.propTypes={},Ti(da);var fa=function(e){function t(e,r){var n;return pi()(this,t),(n=vi()(this,yi()(t).call(this,e,r))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(wi()(n)),n}return _i()(t,e),gi()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.clientHeight,n=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,l=t.scrollTop,a=t.scrollWidth;return e({clientHeight:r,clientWidth:n,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:l,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.clientWidth,n=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:r,scrollHeight:n,scrollLeft:o,scrollTop:i,scrollWidth:l})}}]),t}(o.PureComponent);fa.propTypes={};function pa(e){var t=e.className,r=e.columns,n=e.style;return o.createElement("div",{className:t,role:"row",style:n},r)}pa.propTypes=null;var ha={ASC:"ASC",DESC:"DESC"};function ga(e){var t=e.sortDirection,r=ji("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===ha.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===ha.DESC});return o.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===ha.ASC?o.createElement("path",{d:"M7 14l5-5 5 5z"}):o.createElement("path",{d:"M7 10l5 5 5-5z"}),o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function ma(e){var t=e.dataKey,r=e.label,n=e.sortBy,i=e.sortDirection,l=n===t,a=[o.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof r?r:null},r)];return l&&a.push(o.createElement(ga,{key:"SortIndicator",sortDirection:i})),a}function va(e){var t=e.className,r=e.columns,n=e.index,i=e.key,l=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,c=e.onRowMouseOver,u=e.onRowRightClick,d=e.rowData,f=e.style,p={"aria-rowindex":n+1};return(l||a||s||c||u)&&(p["aria-label"]="row",p.tabIndex=0,l&&(p.onClick=function(e){return l({event:e,index:n,rowData:d})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:n,rowData:d})}),s&&(p.onMouseOut=function(e){return s({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),u&&(p.onContextMenu=function(e){return u({event:e,index:n,rowData:d})})),o.createElement("div",Ei()({},p,{className:t,key:i,role:"row",style:f}),r)}ga.propTypes={},ma.propTypes=null,va.propTypes=null;var ba=function(e){function t(){return pi()(this,t),vi()(this,yi()(t).apply(this,arguments))}return _i()(t,e),t}(o.Component);function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(te.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.className,i=t.disableHeader,l=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,u=t.height,d=t.id,f=t.noRowsRenderer,p=t.rowClassName,h=t.rowStyle,g=t.scrollToIndex,m=t.style,v=t.width,b=this.state.scrollbarWidth,y=i?u:u-s,S="function"==typeof p?p({index:-1}):p,w="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],o.Children.toArray(r).forEach((function(t,r){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[r]=Sa({overflow:"hidden"},n)})),o.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":o.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:ji("ReactVirtualized__Table",n),id:d,role:"grid",style:m},!i&&c({className:ji("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:Sa({height:s,overflow:"hidden",paddingRight:b,width:v},w)}),o.createElement(il,Ei()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:ji("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:y,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:b,scrollToRow:g,style:Sa({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,r=e.columnIndex,n=e.isScrolling,i=e.parent,l=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,u=c.cellDataGetter,d=c.cellRenderer,f=c.className,p=c.columnData,h=c.dataKey,g=c.id,m=d({cellData:u({columnData:p,dataKey:h,rowData:l}),columnData:p,columnIndex:r,dataKey:h,isScrolling:n,parent:i,rowData:l,rowIndex:a}),v=this._cachedColumnStyles[r],b="string"==typeof m?m:null;return o.createElement("div",{"aria-colindex":r+1,"aria-describedby":g,className:ji("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+r,onClick:function(e){s&&s({columnData:p,dataKey:h,event:e})},role:"gridcell",style:v,title:b},m)}},{key:"_createHeader",value:function(e){var t,r,n,i,l,a=e.column,s=e.index,c=this.props,u=c.headerClassName,d=c.headerStyle,f=c.onHeaderClick,p=c.sort,h=c.sortBy,g=c.sortDirection,m=a.props,v=m.columnData,b=m.dataKey,y=m.defaultSortDirection,S=m.disableSort,w=m.headerRenderer,C=m.id,_=m.label,x=!S&&p,I=ji("ReactVirtualized__Table__headerColumn",u,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:x}),O=this._getFlexStyleForColumn(a,Sa({},d,{},a.props.headerStyle)),R=w({columnData:v,dataKey:b,disableSort:S,label:_,sortBy:h,sortDirection:g});if(x||f){var P=h!==b?y:g===ha.DESC?ha.ASC:ha.DESC,T=function(e){x&&p({defaultSortDirection:y,event:e,sortBy:b,sortDirection:P}),f&&f({columnData:v,dataKey:b,event:e})};l=a.props["aria-label"]||_||b,i="none",n=0,t=T,r=function(e){"Enter"!==e.key&&" "!==e.key||T(e)}}return h===b&&(i=g===ha.ASC?"ascending":"descending"),o.createElement("div",{"aria-label":l,"aria-sort":i,className:I,id:C,key:"Header-Col"+s,onClick:t,onKeyDown:r,role:"columnheader",style:O,tabIndex:n},R)}},{key:"_createRow",value:function(e){var t=this,r=e.rowIndex,n=e.isScrolling,i=e.key,l=e.parent,a=e.style,s=this.props,c=s.children,u=s.onRowClick,d=s.onRowDoubleClick,f=s.onRowRightClick,p=s.onRowMouseOver,h=s.onRowMouseOut,g=s.rowClassName,m=s.rowGetter,v=s.rowRenderer,b=s.rowStyle,y=this.state.scrollbarWidth,S="function"==typeof g?g({index:r}):g,w="function"==typeof b?b({index:r}):b,C=m({index:r}),_=o.Children.toArray(c).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:n,parent:l,rowData:C,rowIndex:r,scrollbarWidth:y})})),x=ji("ReactVirtualized__Table__row",S),I=Sa({},a,{height:this._getRowHeight(r),overflow:"hidden",paddingRight:y},w);return v({className:x,columns:_,index:r,isScrolling:n,key:i,onRowClick:u,onRowDoubleClick:d,onRowRightClick:f,onRowMouseOver:p,onRowMouseOut:h,rowData:C,style:I})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=Sa({},t,{flex:r,msFlex:r,WebkitFlex:r});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,r=t.children;return(t.disableHeader?[]:o.Children.toArray(r)).map((function(t,r){return e._createHeader({column:t,index:r})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(o.PureComponent);Ii()(wa,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:ll,overscanRowCount:10,rowRenderer:va,headerRowRenderer:pa,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),wa.propTypes={};var Ca=[],_a=null,xa=null;function Ia(){xa&&(xa=null,document.body&&null!=_a&&(document.body.style.pointerEvents=_a),_a=null)}function Oa(){Ia(),Ca.forEach((function(e){return e.__resetIsScrolling()}))}function Ra(e){e.currentTarget===window&&null==_a&&document.body&&(_a=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){xa&&Zi(xa);var e=0;Ca.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),xa=Qi(Oa,e)}(),Ca.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Pa(e,t){Ca.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Ra),Ca.push(e)}function Ta(e,t){(Ca=Ca.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Ra),xa&&(Zi(xa),Ia()))}var Da,Ea,Aa=function(e){return e===window},ja=function(e){return e.getBoundingClientRect()};function za(e,t){if(e){if(Aa(e)){var r=window,n=r.innerHeight,o=r.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof o?o:0}}return ja(e)}return{height:t.serverHeight,width:t.serverWidth}}function Ma(e,t){if(Aa(t)&&document.documentElement){var r=document.documentElement,n=ja(e),o=ja(r);return{top:n.top-o.top,left:n.left-o.left}}var i=ka(t),l=ja(e),a=ja(t);return{top:l.top+i.top-a.top,left:l.left+i.left-a.left}}function ka(e){return Aa(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function La(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ga(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,r=this.state,n=r.height,o=r.width,i=this._child||te.findDOMNode(this);if(i instanceof Element&&e){var l=Ma(i,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var a=za(e,this.props);n===a.height&&o===a.width||(this.setState({height:a.height,width:a.width}),t({height:a.height,width:a.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(pl.a)(),this.updatePosition(e),e&&(Pa(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var r=this.props.scrollElement,n=e.scrollElement;n!==r&&null!=n&&null!=r&&(this.updatePosition(r),Ta(this,n),Pa(this,r),this._unregisterResizeListener(n),this._registerResizeListener(r))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Ta(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.isScrolling,n=t.scrollTop,o=t.scrollLeft,i=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:r,scrollLeft:o,scrollTop:n,width:l})}}]),t}(o.PureComponent),Ii()(Da,"propTypes",null),Ea);Ii()(Ba,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Na(),serverHeight:0,serverWidth:0});function Wa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Xa=function(e){return function(t){var r=t.children,o=Ka(t,["children"]);return Object(n.jsx)(di,qa(qa({},o),{},{children:function(t){return Object(n.jsxs)(e,qa(qa({ref:t.innerRef},t.droppableProps),{},{children:[r,t.placeholder]}))}}))}};function Ja(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $a(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:is;return function(r){if(t(e))return r(e)}}function as(e){return function(t){return e.map((function(e){return t.when(e)?t.for(e):e}))}}var ss=function(e){var t=e.onConfirm,r=e.onCancel,i=Object(o.useRef)(),l=Object(o.useRef)();return Object(n.jsx)("div",{className:"react-kanban-card-adder-form",children:Object(n.jsxs)("form",{onSubmit:function(e){e.preventDefault(),ls(i.current.value)((function(e){t({title:e,description:l.current.value})}))},children:[Object(n.jsx)("input",{className:"react-kanban-card-adder-form__title",name:"title",autoFocus:!0,defaultValue:"Title",ref:i}),Object(n.jsx)("input",{className:"react-kanban-card-adder-form__description",name:"description",defaultValue:"Description",ref:l}),Object(n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[Object(n.jsx)("button",{className:"react-kanban-card-adder-form__button",type:"submit",children:"Add"}),Object(n.jsx)("button",{className:"react-kanban-card-adder-form__button",type:"button",onClick:r,children:"Cancel"})]})]})})};function cs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return us(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return us(e,t)}(e,t)||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 us(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r3&&void 0!==arguments[3]?arguments[3]:{},o=n.on,i=e.columns.find((function(e){return e.id===t.id})),l=rs(i.cards,r,"top"===o?0:i.cards.length),a=as(e.columns)({when:function(e){var r=e.id;return t.id===r},for:function(e){return js(js({},e),{},{cards:l})}});return js(js({},e),{},{columns:a})}function Hs(e,t,r){var n=e.columns.find((function(e){return e.id===t.id})),o=n.cards.filter((function(e){var t=e.id;return r.id!==t})),i=js(js({},n),{},{cards:o}),l=e.columns.map((function(e){return t.id===e.id?i:e}));return js(js({},e),{},{columns:l})}function Fs(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function Us(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){Fs(i,n,o,l,a,"next",e)}function a(e){Fs(i,n,o,l,a,"throw",e)}l(void 0)}))}}function Vs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qs(e,t)}(e,t)||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 qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},n=Ws(P,e,t,r);h(n,n.columns.find((function(t){return t.id===e.id})),t),T(n)}function G(){return(G=Us((function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=yield C(t);L(e,n,r)}))).apply(this,arguments)}function N(e,t){var r=Hs(P,e,t);v(r,r.columns.find((function(t){return t.id===e.id})),t),T(r)}return Object(n.jsx)(Qs,Ks(Ks({onCardDragEnd:D,onColumnDragEnd:E,renderColumnAdder:function(){return l?a?a({addColumn:j}):s?Object(n.jsx)(Ss,{onConfirm:function(e){return j({title:e,cards:[]})}}):null:null}},u&&{renderColumnHeader:function(e){return u(e,{removeColumn:M.bind(null,e),renameColumn:k.bind(null,e),addCard:L.bind(null,e)})}}),{},{renderCard:function(e,t,r){return g?g(t,{removeCard:N.bind(null,e,t),dragging:r}):Object(n.jsx)(Is,{dragging:r,allowRemoveCard:m,onCardRemove:function(t){return N(e,t)},children:t})},allowRemoveColumn:d,onColumnRemove:M,allowRenameColumn:f,onColumnRename:k,disableColumnDrag:S,disableCardDrag:y,onCardNew:function(e,t){return function(e,t){return G.apply(this,arguments)}(e,t,w)},allowAddCard:w&&C,isVirtualList:_,rowHeight:x,width:I,height:O,children:P}))}function Zs(e){var t=e.children,r=e.onCardDragEnd,o=e.onColumnDragEnd,i=e.allowAddColumn,l=e.renderColumnAdder,a=e.onNewColumnConfirm,s=e.onColumnRemove,c=e.renderColumnHeader,u=e.allowRemoveColumn,d=e.allowRenameColumn,f=e.onColumnRename,p=e.renderCard,h=e.allowRemoveCard,g=e.onCardRemove,m=e.disableCardDrag,v=e.disableColumnDrag,b=e.isVirtualList,y=e.rowHeight,S=e.width,w=e.height,C=ts(x,{notifyCallback:r}),_=ts(x,{notifyCallback:o});function x(e,t){var r=e.source,n=e.destination,o=e.subject;ls(t.notifyCallback)((function(e){return e(o,r,n)}))}return Object(n.jsx)(Qs,Ks(Ks({onCardDragEnd:C,onColumnDragEnd:_,renderColumnAdder:function(){return i?l?l():a?Object(n.jsx)(Ss,{onConfirm:function(e){return a({title:e,cards:[]})}}):null:null}},c&&{renderColumnHeader:c}),{},{renderCard:function(e,t,r){return p?p(t,{dragging:r}):Object(n.jsx)(Is,{dragging:r,allowRemoveCard:h,onCardRemove:g,children:t})},allowRemoveColumn:u,onColumnRemove:s,allowRenameColumn:d,onColumnRename:f,disableColumnDrag:v,disableCardDrag:m,isVirtualList:b,rowHeight:y,width:S,height:w,children:t}))}function Qs(e){var t=e.children,r=e.renderCard,o=e.disableColumnDrag,i=e.disableCardDrag,l=e.renderColumnHeader,a=e.renderColumnAdder,s=e.allowRemoveColumn,c=e.onColumnRemove,u=e.allowRenameColumn,d=e.onColumnRename,f=e.onColumnDragEnd,p=e.onCardDragEnd,h=e.onCardNew,g=e.allowAddCard,m=e.isVirtualList,v=e.rowHeight,b=e.width,y=e.height;return Object(n.jsx)(Oo,{onDragEnd:function(e){var r=function(e,t){if(null===e.destination)return{};var r={fromPosition:e.source.index},n={toPosition:e.destination.index};return Ts(e.type)?{source:r,destination:n}:{source:Rs(Rs({},r),{},{fromColumnId:Es(t,e.source.droppableId).id}),destination:Rs(Rs({},n),{},{toColumnId:Es(t,e.destination.droppableId).id})}}(e,t);r.source&&(Ts(e.type)?function(e){return e.source.fromPosition!==e.destination.toPosition}(r)&&f(Ks(Ks({},r),{},{subject:t.columns[r.source.fromPosition]})):function(e){return!(e.source.fromPosition===e.destination.toPosition&&e.source.fromColumnId===e.destination.toColumnId)}(r)&&p(Ks(Ks({},r),{},{subject:Ds(t,r.source)})))},children:Object(n.jsxs)("div",{style:{overflowY:"hidden",display:"flex",alignItems:"flex-start"},className:"react-kanban-board",children:[Object(n.jsx)(Js,{droppableId:"board-droppable",direction:"horizontal",type:"BOARD",children:t.columns.map((function(e,t){return Object(n.jsx)(ms,{index:t,isVirtualList:m,width:b,height:y,rowHeight:v,renderCard:r,renderColumnHeader:function(e){return l?l(e):Object(n.jsx)(xs,{allowRemoveColumn:s,onColumnRemove:c,allowRenameColumn:u,onColumnRename:d,children:e})},disableColumnDrag:o,disableCardDrag:i,onCardNew:h,allowAddCard:g,children:e},e.id)}))}),a()]})})}var ec=function(e){return e.initialBoard?Object(n.jsx)($s,Ks({},e)):Object(n.jsx)(Zs,Ks({},e))}}])})); \ No newline at end of file +*/var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=l(e),c=1;c=0||(o[r]=e[r]);return o}},function(e,t,r){"use strict";var n=r(29);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,l){if(l!==n){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n=r(18);e.exports=function(e){if(Array.isArray(e))return n(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}}},function(e,t){e.exports=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(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},,function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return ec})),r.d(t,"moveColumn",(function(){return ks})),r.d(t,"moveCard",(function(){return Ls})),r.d(t,"addColumn",(function(){return Gs})),r.d(t,"removeColumn",(function(){return Ns})),r.d(t,"changeColumn",(function(){return Bs})),r.d(t,"addCard",(function(){return Ws})),r.d(t,"removeCard",(function(){return Hs}));var n=r(3),o=r(0),i=r.n(o);function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(){return(a=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}var O=r(15),R=r.n(O),P=r(14),T="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,D=[],E=[null,null];function A(e,t){var r=e[1];return[t.payload,r+1]}function j(e,t,r){T((function(){return e.apply(void 0,t)}),r)}function z(e,t,r,n,o,i,l){e.current=n,t.current=o,r.current=!1,i.current&&(i.current=null,l())}function M(e,t,r,n,o,i,l,a,s,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,r,f=t.getState();try{e=n(f,o.current)}catch(e){r=e,d=e}r||(d=null),e===i.current?l.current||s():(i.current=e,a.current=e,l.current=!0,c({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=f,r.trySubscribe(),f();return function(){if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function L(e,t){void 0===t&&(t={});var r=t,n=r.getDisplayName,l=void 0===n?function(e){return"ConnectAdvanced("+e+")"}:n,s=r.methodName,c=void 0===s?"connectAdvanced":s,u=r.renderCountProp,d=void 0===u?void 0:u,f=r.shouldHandleStateChanges,p=void 0===f||f,h=r.storeKey,g=void 0===h?"store":h,m=(r.withRef,r.forwardRef),v=void 0!==m&&m,b=r.context,S=void 0===b?y:b,w=I(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),C=S;return function(t){var r=t.displayName||t.name||"Component",n=l(r),s=a({},w,{getDisplayName:l,methodName:c,renderCountProp:d,shouldHandleStateChanges:p,storeKey:g,displayName:n,wrappedComponentName:r,WrappedComponent:t}),u=w.pure;var f=u?o.useMemo:function(e){return e()};function h(r){var n=Object(o.useMemo)((function(){var e=r.reactReduxForwardedRef,t=I(r,["reactReduxForwardedRef"]);return[r.context,e,t]}),[r]),l=n[0],c=n[1],u=n[2],d=Object(o.useMemo)((function(){return l&&l.Consumer&&Object(P.isContextConsumer)(i.a.createElement(l.Consumer,null))?l:C}),[l,C]),h=Object(o.useContext)(d),g=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(h)&&Boolean(h.store);var m=g?r.store:h.store,v=Object(o.useMemo)((function(){return function(t){return e(t.dispatch,s)}(m)}),[m]),b=Object(o.useMemo)((function(){if(!p)return E;var e=new _(m,g?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,g,h]),y=b[0],S=b[1],w=Object(o.useMemo)((function(){return g?h:a({},h,{subscription:y})}),[g,h,y]),x=Object(o.useReducer)(A,D,k),O=x[0][0],R=x[1];if(O&&O.error)throw O.error;var T=Object(o.useRef)(),L=Object(o.useRef)(u),G=Object(o.useRef)(),N=Object(o.useRef)(!1),B=f((function(){return G.current&&u===L.current?G.current:v(m.getState(),u)}),[m,O,u]);j(z,[L,T,N,u,B,G,S]),j(M,[p,m,y,v,L,T,N,G,S,R],[m,y,v]);var W=Object(o.useMemo)((function(){return i.a.createElement(t,a({},B,{ref:c}))}),[c,t,B]);return Object(o.useMemo)((function(){return p?i.a.createElement(d.Provider,{value:w},W):W}),[d,W,w])}var m=u?i.a.memo(h):h;if(m.WrappedComponent=t,m.displayName=n,v){var b=i.a.forwardRef((function(e,t){return i.a.createElement(m,a({},e,{reactReduxForwardedRef:t}))}));return b.displayName=n,b.WrappedComponent=t,R()(b,t)}return R()(m,t)}}function G(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function N(e,t){if(G(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function $(e,t){return e===t}function Z(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?L:r,o=t.mapStateToPropsFactories,i=void 0===o?U:o,l=t.mapDispatchToPropsFactories,s=void 0===l?F:l,c=t.mergePropsFactories,u=void 0===c?q:c,d=t.selectorFactory,f=void 0===d?X:d;return function(e,t,r,o){void 0===o&&(o={});var l=o,c=l.pure,d=void 0===c||c,p=l.areStatesEqual,h=void 0===p?$:p,g=l.areOwnPropsEqual,m=void 0===g?N:g,v=l.areStatePropsEqual,b=void 0===v?N:v,y=l.areMergedPropsEqual,S=void 0===y?N:y,w=I(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),C=J(e,i,"mapStateToProps"),_=J(t,s,"mapDispatchToProps"),x=J(r,u,"mergeProps");return n(f,a({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:_,initMergeProps:x,pure:d,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:S},w))}}var Q=Z();var ee,te=r(11),re=r.n(te);function ne(e,t){var r=Object(o.useState)((function(){return{inputs:t,result:e()}}))[0],n=Object(o.useRef)(r),i=Boolean(t&&n.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}l(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=Ce(window,[{eventName:"error",fn:this.onWindowError}])},r.componentWillUnmount=function(){this.unbind()},r.componentDidCatch=function(e){if(!(e instanceof _e))throw e;this.setState({})},r.render=function(){return this.props.children(this.setCallbacks)},t}(i.a.Component),Oe=function(e){return e+1},Re=function(e,t){var r=e.droppableId===t.droppableId,n=Oe(e.index),o=Oe(t.index);return r?"\n You have moved the item from position "+n+"\n to position "+o+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Pe=function(e,t,r){return t.droppableId===r.droppableId?"\n The item "+e+"\n has been combined with "+r.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},Te=function(e){return"\n The item has returned to its starting position\n of "+Oe(e.index)+"\n"},De="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",Ee=function(e){return"\n You have lifted an item in position "+Oe(e.source.index)+"\n"},Ae=function(e){var t=e.destination;if(t)return Re(e.source,t);var r=e.combine;return r?Pe(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},je=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Te(e.source)+"\n ";var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n "+Re(e.source,t)+"\n ":r?"\n You have dropped the item.\n "+Pe(e.draggableId,e.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Te(e.source)+"\n "},ze={x:0,y:0},Me=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},ke=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Le=function(e,t){return e.x===t.x&&e.y===t.y},Ge=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ne=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},Be=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},We=function(e,t){return Math.min.apply(Math,t.map((function(t){return Be(e,t)})))},He=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Fe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ue=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ve=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=ae({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):ae(e)},qe=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,o=e.frame,i=function(e,t,r){var n;return r&&r.increasedBy?a({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(function(e,t){return t?Fe(e,t.scroll.diff.displacement):e}(t.marginBox,o),n,r);return{page:t,withPlaceholder:r,active:Ve(i,o)}},Ye=function(e,t){e.frame||xe(!1);var r=e.frame,n=ke(t,r.scroll.initial),o=Ge(n),i=a({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}});return a({},e,{frame:i,subject:qe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function Ke(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Xe(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;re.bottom,a=n.lefte.right;return!(!l||!a)||(l&&i||a&&o)}},ft=function(e){var t=ut(e.top,e.bottom),r=ut(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},pt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ht={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},gt=function(e){var t=e.target,r=e.destination,n=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,l=o?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:ze;return Fe(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(l,r,i)&&function(e,t,r){return r(t)(e)}(l,n,i)},mt=function(e){return gt(a({},e,{isVisibleThroughFrameFn:dt}))},vt=function(e){return gt(a({},e,{isVisibleThroughFrameFn:ft}))};function bt(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,l=e.last;return t.reduce((function(e,t){var a=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return ae(se(r,n))}(t,n),s=t.descriptor.id;if(e.all.push(s),!mt({target:a,destination:r,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:s,shouldAnimate:function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,o=t.visible;if(n[e])return!1;var i=o[e];return!i||i.shouldAnimate}(s,l,i)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function yt(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:st,displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function St(e){var t=e.draggable,r=e.insideDestination,n=e.destination,o=e.viewport,i=e.displacedBy,l=e.last,a=e.index,s=e.forceShouldAnimate,c=lt(t,n);if(null==a)return yt({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var u=Je(r,(function(e){return e.descriptor.index===a}));if(!u)return yt({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var d=it(t,r),f=r.indexOf(u);return{displaced:bt({afterDragging:d.slice(f),destination:n,displacedBy:i,last:l,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function wt(e,t){return Boolean(t.effected[e])}var Ct=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,o=e.draggables,i=e.destination,l=e.insideDestination,a=e.previousImpact,s=e.viewport,c=e.afterCritical,u=a.at;if(u||xe(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,o=e.location;if(!n.length)return null;var i=o.index,l=t?i+1:i-1,a=n[0].descriptor.index,s=n[n.length-1].descriptor.index;return l(r?s:s+1)?null:l}({isMovingForward:t,isInHomeList:r,location:u.destination,insideDestination:l});return null==d?null:St({draggable:n,insideDestination:l,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,o=e.combine,i=e.afterCritical;if(!r.isCombineEnabled)return null;var l=o.draggableId,a=n[l].descriptor.index;return wt(l,i)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:a.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:St({draggable:n,insideDestination:l,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})},_t=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,o=ot(r);o||xe(!1);var i=o.draggableId,l=n[i].page.borderBox.center,a=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[n]||t.invisible[n]);return wt(n,r)?i?ze:Ge(o.point):i?o.point:ze}({displaced:r.displaced,afterCritical:t,combineWith:i,displacedBy:r.displacedBy});return Me(l,a)},xt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},It=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},Ot=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ne(t.line,r.marginBox[t.end]+xt(t,n),It(t,r.marginBox,n))},Rt=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return Ne(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),It(t,r.marginBox,n))},Pt=function(e){var t=e.impact,r=e.draggable,n=e.draggables,o=e.droppable,i=e.afterCritical,l=rt(o.descriptor.id,n),a=r.page,s=o.axis;if(!l.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return Ne(t.line,r.contentBox[t.start]+xt(t,n),It(t,r.contentBox,n))}({axis:s,moveInto:o.page,isMoving:a});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=n[d];if(wt(d,i))return Rt({axis:s,moveRelativeTo:f.page,isMoving:a});var p=pe(f.page,u.point);return Rt({axis:s,moveRelativeTo:p,isMoving:a})}var h=l[l.length-1];if(h.descriptor.id===r.descriptor.id)return a.borderBox.center;if(wt(h.descriptor.id,i)){var g=pe(h.page,Ge(i.displacedBy.point));return Ot({axis:s,moveRelativeTo:g,isMoving:a})}return Ot({axis:s,moveRelativeTo:h.page,isMoving:a})},Tt=function(e,t){var r=e.frame;return r?Me(t,r.scroll.diff.displacement):t},Dt=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.afterCritical,l=r.page.borderBox.center,a=t.at;return n&&a?"REORDER"===a.type?Pt({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:i}):_t({impact:t,draggables:o,afterCritical:i}):l}(e),r=e.droppable;return r?Tt(r,t):t},Et=function(e,t){var r=ke(t,e.scroll.initial),n=Ge(r);return{frame:ae({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function At(e,t){return e.map((function(e){return t[e]}))}var jt=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return Me(e.scroll.diff.displacement,t)}(e.viewport,t),o=ke(n,r.page.borderBox.center);return Me(r.client.borderBox.center,o)},zt=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,l=e.onlyOnMainAxis,s=void 0!==l&&l,c=ke(n,t.page.borderBox.center),u={target:Fe(t.page.borderBox,c),destination:r,withDroppableDisplacement:i,viewport:o};return s?function(e){return gt(a({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=ut(e.top,e.bottom),n=ut(e.left,e.right);return function(e){return t===pt?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(u):vt(u)},Mt=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.draggables,i=e.previousImpact,l=e.viewport,s=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!n.isEnabled)return null;var d=rt(n.descriptor.id,o),f=lt(r,n),p=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.previousImpact;if(!n.isCombineEnabled)return null;if(!nt(i))return null;function l(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return a({},i,{at:t})}var s=i.displaced.all,c=s.length?s[0]:null;if(t)return c?l(c):null;var u=it(r,o);if(!c)return u.length?l(u[u.length-1].descriptor.id):null;var d=Xe(u,(function(e){return e.descriptor.id===c}));-1===d&&xe(!1);var f=d-1;return f<0?null:l(u[f].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:i})||Ct({isMovingForward:t,isInHomeList:f,draggable:r,draggables:o,destination:n,insideDestination:d,previousImpact:i,viewport:l,afterCritical:u});if(!p)return null;var h=Dt({impact:p,draggable:r,droppable:n,draggables:o,afterCritical:u});if(zt({draggable:r,destination:n,newPageBorderBoxCenter:h,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:jt({pageBorderBoxCenter:h,draggable:r,viewport:l}),impact:p,scrollJumpRequest:null};var g=ke(h,s);return{clientSelection:c,impact:function(e){var t=e.impact,r=e.viewport,n=e.destination,o=e.draggables,i=e.maxScrollChange,l=Et(r,Me(r.scroll.current,i)),s=n.frame?Ye(n,Me(n.frame.scroll.current,i)):n,c=t.displaced,u=bt({afterDragging:At(c.all,o),destination:n,displacedBy:t.displacedBy,viewport:l.frame,last:c,forceShouldAnimate:!1}),d=bt({afterDragging:At(c.all,o),destination:s,displacedBy:t.displacedBy,viewport:r.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var r=0;r1?u.sort((function(e,t){return kt(e)[a.start]-kt(t)[a.start]}))[0]:c.sort((function(e,t){var n=We(r,Ue(kt(e))),o=We(r,Ue(kt(t)));return n!==o?n-o:kt(e)[a.start]-kt(t)[a.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:o,droppables:l,viewport:a});if(!c)return null;var u=rt(c.descriptor.id,i),d=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,o=e.draggable,i=e.draggables,l=e.destination,a=e.viewport,s=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:st,displacedBy:at,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:0}}},u=Dt({impact:c,draggable:o,droppable:l,draggables:i,afterCritical:s}),d=lt(o,l)?l:Wt(l,o,i);return zt({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f,p=Boolean(t[l.axis.line]<=r.page.borderBox.center[l.axis.line]),h=(f=r.descriptor.index,r.descriptor.id===o.descriptor.id||p?f:f+1),g=Nt(l.axis,o.displaceBy);return St({draggable:o,insideDestination:n,destination:l,viewport:a,displacedBy:g,last:st,index:h})}({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return vt({target:Gt(e,i),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var o=Be(t,Tt(n,Lt(e,i))),l=Be(t,Tt(n,Lt(r,i)));return on.left&&r.topn.top))return!1;if(qt(o)(t.center))return!0;var i=e.axis,l=o.center[i.crossAxisLine],a=t[i.crossAxisStart],s=t[i.crossAxisEnd],c=ut(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(a),d=c(s);return!u&&!d||(u?al)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,o=r.page.borderBox.center,i=n.map((function(e){var r=e.axis,n=Ne(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:Be(o,n)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:r,candidates:o}):null}var Kt=function(e,t){return ae(Fe(e,t))};function Xt(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var Jt=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,o=e.droppables,i=e.previousImpact,l=e.viewport,a=e.afterCritical,s=Kt(r.page.borderBox,t),c=Yt({pageBorderBox:s,draggable:r,droppables:o});if(!c)return ct;var u,d,f=o[c],p=rt(f.descriptor.id,n),h=(u=s,(d=f.frame)?Kt(u,d.scroll.diff.value):u);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,o=e.destination,i=e.insideDestination,l=e.afterCritical;if(!o.isCombineEnabled)return null;var a=o.axis,s=Nt(o.axis,t.displaceBy),c=s.value,u=r[a.start],d=r[a.end],f=Je(it(t,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox,o=r[a.size]/4,i=wt(t,l),s=Xt({displaced:n.displaced,id:t});return i?s?d>r[a.start]+o&&dr[a.start]-c+o&&ur[a.start]+c+o&&dr[a.start]+o&&ut.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:Je(it(r,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=wt(t,a),o=Xt({displaced:i,id:t});return n?o?f<=r:d=1500)return zr;var i=jr+Mr*(o/1500);return Number(("CANCEL"===n?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:y,completed:b}))}else r(Cr({completed:b}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(n)}}},Lr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Gr(e){var t=e.onWindowScroll;var r,n=ye((function(){t(Lr())})),o=(r=n,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||r()}}),i=we;function l(){return i!==we}return{start:function(){l()&&xe(!1),i=Ce(window,[o])},stop:function(){l()||xe(!1),n.cancel(),i(),i=we},isActive:l}}var Nr=function(e){var t=Gr({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},Br=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=Xe(e,(function(e){return e.timerId===t}));-1===r&&xe(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Wr=function(e,t){or(),t(),ir()},Hr=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Fr=function(e,t,r,n){if(e){var o=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),o=function(o){t||r||(t=!0,e(o),clearTimeout(n))};return o.wasCalled=function(){return t},o}(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}else r(n(t))},Ur=function(e,t){var r=function(e,t){var r=Br(),n=null,o=function(r){n||xe(!1),n=null,Wr(0,(function(){return Fr(e().onDragEnd,r,t,je)}))};return{beforeCapture:function(t,r){n&&xe(!1),Wr(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&xe(!1),Wr(0,(function(){var n=e().onBeforeDragStart;n&&n(Hr(t,r))}))},start:function(o,i){n&&xe(!1);var l=Hr(o,i);n={mode:i,lastCritical:o,lastLocation:l.source,lastCombine:null},r.add((function(){Wr(0,(function(){return Fr(e().onDragStart,l,t,Ee)}))}))},update:function(o,i){var l=nt(i),s=ot(i);n||xe(!1);var c=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(o,n.lastCritical);c&&(n.lastCritical=o);var u,d,f=(u=n.lastLocation,d=l,!(null==u&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(n.lastLocation=l);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(n.lastCombine,s);if(p&&(n.lastCombine=s),c||f||p){var h=a({},Hr(o,n.mode),{combine:s,destination:l});r.add((function(){Wr(0,(function(){return Fr(e().onDragUpdate,h,t,Ae)}))}))}},flush:function(){n||xe(!1),r.flush()},drop:o,abort:function(){if(n){var e=a({},Hr(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var o=n.payload.critical;return r.beforeStart(o,n.payload.movementMode),t(n),void r.start(o,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var i=n.payload.completed.result;return r.flush(),t(n),void r.drop(i)}if(t(n),"FLUSH"!==n.type){var l=e.getState();"DRAGGING"===l.phase&&r.update(l.critical,l.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Vr=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&xe(!1),e.dispatch(Cr({completed:n.completed}))}else t(r)}}},qr=function(e){var t=null,r=null;return function(n){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=Ce(window,[i])}))}}}},Yr=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(_r({reason:n.reason})))}}}},Kr=b,Xr=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,l=e.announce,a=e.autoScroller;return f(dr,Kr(function(){for(var e=arguments.length,t=new Array(e),r=0;rt.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return dn;if(e===t.startScrollingFrom)return 1;var r=hn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=dn*fn(1-r);return Math.ceil(n)}(t,r);return 0===i?0:o?Math.max(function(e,t){var r=t,n=mn,o=Date.now()-r;if(o>=mn)return e;if(ot.height,i=r.width>t.width;return i||o?i&&o?null:{x:i?0:n.x,y:o?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return u?Le(u,ze)?null:u:null},wn=He((function(e){return 0===e?0:e>0?1:-1})),Cn=(tn=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,o=Me(t,n),i={x:tn(o.x,r.x),y:tn(o.y,r.y)};return Le(i,ze)?null:i}),_n=function(e){var t=e.max,r=e.current,n=e.change,o={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},i=wn(n),l=Cn({max:o,current:r,change:i});return!l||(0!==i.x&&0===l.x||0!==i.y&&0===l.y)},xn=function(e,t){return _n({current:e.scroll.current,max:e.scroll.max,change:t})},In=function(e,t){var r=e.frame;return!!r&&_n({current:r.scroll.current,max:r.scroll.max,change:t})},On=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,l=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,l=Sn({dragStartTime:o,container:t.frame,subject:r,center:n,shouldUseTimeDampening:i});return l&&xn(t,l)?l:null}({dragStartTime:r,viewport:t.viewport,subject:a,center:l,shouldUseTimeDampening:n});if(s)return void o(s)}var c=sn({center:l,destination:Ft(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,l=t.frame;if(!l)return null;var a=Sn({dragStartTime:o,container:l.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:i});return a&&In(t,a)?a:null}({dragStartTime:r,droppable:c,subject:a,center:l,shouldUseTimeDampening:n});u&&i(c.descriptor.id,u)}},Rn=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,o=function(e,t){if(!In(e,t))return t;var n=function(e,t){var r=e.frame;return r&&In(e,t)?Cn({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var o=ke(t,n);return r(e.descriptor.id,o),ke(t,o)},i=function(e,t,r){if(!e)return r;if(!xn(t,r))return r;var o=function(e,t){if(!xn(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return Cn({current:n,max:r,change:t})}(t,r);if(!o)return n(r),null;var i=ke(r,o);return n(i),ke(r,i)};return function(e){var r=e.scrollJumpRequest;if(r){var n=Ft(e.impact);n||xe(!1);var l=o(e.dimensions.droppables[n],r);if(l){var a=e.viewport,s=i(e.isWindowScrollAllowed,a,l);s&&function(e,r){var n=Me(e.current.client.selection,r);t({client:n})}(e,s)}}}},Pn=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,o=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=ye(t),o=ye(r),i=null,l=function(e){i||xe(!1);var t=i,r=t.shouldUseTimeDampening,l=t.dragStartTime;On({state:e,scrollWindow:n,scrollDroppable:o,dragStartTime:l,shouldUseTimeDampening:r})};return{start:function(e){or(),i&&xe(!1);var t=Date.now(),r=!1,n=function(){r=!0};On({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),i={dragStartTime:t,shouldUseTimeDampening:r},ir(),r&&l(e)},stop:function(){i&&(n.cancel(),o.cancel(),i=null)},scroll:l}}({scrollWindow:r,scrollDroppable:t}),i=Rn({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Tn={base:rn="data-rbd-drag-handle",draggableId:rn+"-draggable-id",contextId:rn+"-context-id"},Dn=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),En=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),An={contextId:"data-rbd-scroll-container-context-id"},jn=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},zn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,Mn=function(){var e=document.querySelector("head");return e||xe(!1),e},kn=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Ln(e,t){var r=oe((function(){return function(e){var t,r,n,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(r="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Tn.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),l=[(n="\n transition: "+Tr.outOfTheWay+";\n ",{selector:o(Dn.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:o(En.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:jn(l,"always"),resting:jn(l,"resting"),dragging:jn(l,"dragging"),dropAnimating:jn(l,"dropAnimating"),userCancel:jn(l,"userCancel")}}(e)}),[e]),n=Object(o.useRef)(null),i=Object(o.useRef)(null),l=ie(be((function(e){var t=i.current;t||xe(!1),t.textContent=e})),[]),a=ie((function(e){var t=n.current;t||xe(!1),t.textContent=e}),[]);zn((function(){(n.current||i.current)&&xe(!1);var o=kn(t),s=kn(t);return n.current=o,i.current=s,o.setAttribute("data-rbd-always",e),s.setAttribute("data-rbd-dynamic",e),Mn().appendChild(o),Mn().appendChild(s),a(r.always),l(r.resting),function(){var e=function(e){var t=e.current;t||xe(!1),Mn().removeChild(t),e.current=null};e(n),e(i)}}),[t,a,l,r.always,r.resting,e]);var s=ie((function(){return l(r.dragging)}),[l,r.dragging]),c=ie((function(e){l("DROP"!==e?r.userCancel:r.dropAnimating)}),[l,r.dropAnimating,r.userCancel]),u=ie((function(){i.current&&l(r.resting)}),[l,r.resting]);return oe((function(){return{dragging:s,dropping:c,resting:u}}),[s,c,u])}var Gn=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Nn(e){return e instanceof Gn(e).HTMLElement}function Bn(e,t){var r="["+Tn.contextId+'="'+e+'"]',n=$e(document.querySelectorAll(r));if(!n.length)return null;var o=Je(n,(function(e){return e.getAttribute(Tn.draggableId)===t}));return o&&Nn(o)?o:null}function Wn(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=n(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||xe(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return Ke(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=o(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||xe(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ke(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Hn=i.a.createContext(null),Fn=function(){var e=document.body;return e||xe(!1),e},Un={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Vn=0,qn={separator:"::"};function Yn(e,t){return void 0===t&&(t=qn),oe((function(){return""+e+t.separator+Vn++}),[t.separator,e])}var Kn=i.a.createContext(null);function Xn(e){0}function Jn(e,t){Xn()}function $n(){Jn()}function Zn(e){var t=Object(o.useRef)(e);return Object(o.useEffect)((function(){t.current=e})),t}var Qn,eo=((Qn={})[13]=!0,Qn[9]=!0,Qn),to=function(e){eo[e.keyCode]&&e.preventDefault()},ro=function(){var e="visibilitychange";return"undefined"==typeof document?e:Je([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var no,oo={type:"IDLE"};function io(e){var t=e.cancel,r=e.completed,n=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,i=e.clientY;if(0===t){var l={x:r,y:i},a=n();if("DRAGGING"===a.type)return e.preventDefault(),void a.actions.move(l);"PENDING"!==a.type&&xe(!1);var s=a.point;if(c=s,u=l,Math.abs(u.x-c.x)>=5||Math.abs(u.y-c.y)>=5){var c,u;e.preventDefault();var d=a.actions.fluidLift(l);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void to(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&xe(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:ro,fn:t}]}function lo(){}var ao=((no={})[34]=!0,no[33]=!0,no[36]=!0,no[35]=!0,no);function so(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(ao[n.keyCode]?n.preventDefault():to(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:ro,fn:r}]}var co={type:"IDLE"};var uo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function fo(e,t){var r=t.target;return!!Nn(r)&&function e(t,r){if(null==r)return!1;if(Boolean(uo[r.tagName.toLowerCase()]))return!0;var n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==t&&e(t,r.parentElement)}(e,r)}var po=function(e){return ae(e.getBoundingClientRect()).center};var ho="undefined"==typeof document?"matches":Je(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function go(e,t){return e.closest?e.closest(t):function e(t,r){return null==t?null:t[ho](r)?t:e(t.parentElement,r)}(e,t)}function mo(e,t){var r,n=t.target;if(!((r=n)instanceof Gn(r).Element))return null;var o=go(n,function(e){return"["+Tn.contextId+'="'+e+'"]'}(e));return o&&Nn(o)?o:null}function vo(e){e.preventDefault()}function bo(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function yo(e){var t=e.lockAPI,r=e.store,n=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=n.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!on(r.getState(),o))}function So(e){var t=e.lockAPI,r=e.contextId,n=e.store,o=e.registry,i=e.draggableId,l=e.forceSensorStop,s=e.sourceEvent;if(!yo({lockAPI:t,store:n,registry:o,draggableId:i}))return null;var c=o.draggable.getById(i),u=function(e,t){var r="["+Dn.contextId+'="'+e+'"]',n=Je($e(document.querySelectorAll(r)),(function(e){return e.getAttribute(Dn.id)===t}));return n&&Nn(n)?n:null}(r,c.descriptor.id);if(!u)return null;if(s&&!c.options.canDragInteractiveElements&&fo(u,s))return null;var d=t.claim(l||we),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var g=function(e,t){bo({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function m(e){function r(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Ce(window,[{eventName:"click",fn:vo,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}r(),n.dispatch(_r({reason:t}))}return"PRE_DRAG"!==f&&(r(),"PRE_DRAG"!==f&&xe(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",a({isActive:function(){return bo({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return bo({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ye((function(e){g((function(){return vr({client:e})}))}));return a({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return g(br)},moveRight:function(){return g(Sr)},moveDown:function(){return g(yr)},moveLeft:function(){return g(wr)}};return m({liftActionArgs:{id:i,clientSelection:po(u),movementMode:"SNAP"},cleanup:we,actions:e})},abort:function(){bo({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var wo=[function(e){var t=Object(o.useRef)(oo),r=Object(o.useRef)(we),n=oe((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};r.current(),u(o,i)}}}}}}),[e]),i=oe((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),l=ie((function(){r.current=Ce(window,[i,n],{passive:!1,capture:!0})}),[i,n]),a=ie((function(){"IDLE"!==t.current.type&&(t.current=oo,r.current(),l())}),[l]),s=ie((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),c=ie((function(){var e=io({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=Ce(window,e,{capture:!0,passive:!1})}),[s,a]),u=ie((function(e,r){"IDLE"!==t.current.type&&xe(!1),t.current={type:"PENDING",point:r,actions:e},c()}),[c]);zn((function(){return l(),function(){r.current()}}),[l])},function(e){var t=Object(o.useRef)(lo),r=oe((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var o=e.findClosestDraggableId(r);if(o){var i=e.tryGetLock(o,s,{sourceEvent:r});if(i){r.preventDefault();var l=!0,a=i.snapLift();t.current(),t.current=Ce(window,so(a,s),{capture:!0,passive:!1})}}}function s(){l||xe(!1),l=!1,t.current(),n()}}}}),[e]),n=ie((function(){t.current=Ce(window,[r],{passive:!1,capture:!0})}),[r]);zn((function(){return n(),function(){t.current()}}),[n])},function(e){var t=Object(o.useRef)(co),r=Object(o.useRef)(we),n=ie((function(){return t.current}),[]),i=ie((function(e){t.current=e}),[]),l=oe((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,s,{sourceEvent:t});if(o){var i=t.touches[0],l={x:i.clientX,y:i.clientY};r.current(),f(o,l)}}}}}}),[e]),a=ie((function(){r.current=Ce(window,[l],{capture:!0,passive:!1})}),[l]),s=ie((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(co),r.current(),a())}),[a,i]),c=ie((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=ie((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:n},o=Ce(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),r.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&xe(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:ro,fn:t}]}(t),e),i=Ce(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:ro,fn:t}]}(t),e);r.current=function(){o(),i()}}),[c,n,s]),d=ie((function(){var e=n();"PENDING"!==e.type&&xe(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[n,i]),f=ie((function(e,t){"IDLE"!==n().type&&xe(!1);var r=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:r}),u()}),[u,n,i,d]);zn((function(){return a(),function(){r.current();var e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(co))}}),[n,a,i]),zn((function(){return Ce(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Co(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,l=e.enableDefaultSensors,a=[].concat(l?wo:[],i||[]),s=Object(o.useState)((function(){return function(){var e=null;function t(){e||xe(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&xe(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=ie((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);zn((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();c(e,t),e=t}))}),[s,r,c]),zn((function(){return s.tryAbandon}),[s.tryAbandon]);var u=ie((function(e){return yo({lockAPI:s,registry:n,store:r,draggableId:e})}),[s,n,r]),d=ie((function(e,o,i){return So({lockAPI:s,registry:n,contextId:t,store:r,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,n,r]),f=ie((function(e){return function(e,t){var r=mo(e,t);return r?r.getAttribute(Tn.draggableId):null}(t,e)}),[t]),p=ie((function(e){var t=n.draggable.findById(e);return t?t.options:null}),[n.draggable]),h=ie((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[s,r]),g=ie(s.isClaimed,[s]),m=oe((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:g}}),[u,d,f,p,h,g]);Xn();for(var v=0;v=0&&s===a&&c())}var Mi=r(12),ki=r.n(Mi),Li=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;pi()(this,e),Ii()(this,"_cellSizeAndPositionData",{}),Ii()(this,"_lastMeasuredIndex",-1),Ii()(this,"_lastBatchedIndex",-1),Ii()(this,"_cellCount",void 0),Ii()(this,"_cellSizeGetter",void 0),Ii()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return gi()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,r=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=r,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),r=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var o=this._cellSizeGetter({index:n});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(o));null===o?(this._cellSizeAndPositionData[n]={offset:r,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:r,size:o},r+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var l,a=this.getSizeAndPositionOfCell(i),s=a.offset,c=s-n+a.size;switch(r){case"start":l=s;break;case"end":l=c;break;case"center":l=s-(n-a.size)/2;break;default:l=Math.max(c,Math.min(s,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-n,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;if(0===this.getTotalSize())return{};var n=r+t,o=this._findNearestCell(r),i=this.getSizeAndPositionOfCell(o);r=i.offset+i.size;for(var l=o;rr&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var r=1;e=e?this._binarySearch(r,0,e):this._exponentialSearch(r,e)}}]),e}(),Gi=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},Ni=function(){function e(t){var r=t.maxScrollSize,n=void 0===r?Gi():r,o=ki()(t,["maxScrollSize"]);pi()(this,e),Ii()(this,"_cellSizeAndPositionManager",void 0),Ii()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Li(o),this._maxScrollSize=n}return gi()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(o-n))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:n,offset:o});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;return r=this._safeOffsetToOffset({containerSize:t,offset:r}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:r})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,r=e.offset,n=e.totalSize;return n<=t?0:r/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:n});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(n-t))}}]),e}();function Bi(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),l=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Object.keys(t).length||i.some((function(e){var r=t[e],n=o[e];return Array.isArray(n)?r.join(",")!==n.join(","):r!==n}));t=o,l&&a&&n(o)}}function Wi(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,l=e.previousScrollToIndex,a=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=r.getCellCount(),g=u>=0&&u0&&(dr.getTotalSize()-d&&p(h-1)}var Hi,Fi,Ui=!("undefined"==typeof window||!window.document||!window.document.createElement);function Vi(e){if((!Hi&&0!==Hi||e)&&Ui){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Hi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Hi}var qi,Yi,Ki=(Fi="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||Fi.webkitRequestAnimationFrame||Fi.mozRequestAnimationFrame||Fi.oRequestAnimationFrame||Fi.msRequestAnimationFrame||function(e){return Fi.setTimeout(e,1e3/60)},Xi=Fi.cancelAnimationFrame||Fi.webkitCancelAnimationFrame||Fi.mozCancelAnimationFrame||Fi.oCancelAnimationFrame||Fi.msCancelAnimationFrame||function(e){Fi.clearTimeout(e)},Ji=Ki,$i=Xi,Zi=function(e){return $i(e.id)},Qi=function(e,t){var r;Promise.resolve().then((function(){r=Date.now()}));var n={id:Ji((function o(){Date.now()-r>=t?e.call():n.id=Ji(o)}))};return n};function el(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t0&&(r._initialScrollTop=r._getCalculatedScrollTop(e,r.state)),e.scrollToColumn>0&&(r._initialScrollLeft=r._getCalculatedScrollLeft(e,r.state)),r}return _i()(t,e),gi()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,r=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,o=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,l=void 0===i?this.props.scrollToRow:i,a=tl({},this.props,{scrollToAlignment:r,scrollToColumn:o,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,r=void 0===t?0:t,n=e.scrollTop,o=void 0===n?0:n;if(!(o<0)){this._debounceScrollEnded();var i=this.props,l=i.autoHeight,a=i.autoWidth,s=i.height,c=i.width,u=this.state.instanceProps,d=u.scrollbarSize,f=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+d),r),g=Math.min(Math.max(0,f-s+d),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==g){var m={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:rl};l||(m.scrollTop=g),a||(m.scrollLeft=h),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:g,totalColumnsWidth:p,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,r=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(r-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n,i=this.props,l=i.scrollToColumn,a=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(r),s.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?r<=l:r>=l),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?o<=a:o>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,r=e.rowIndex,n=this.props.columnCount,o=this.props;n>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(tl({},o,{scrollToColumn:t})),void 0!==r&&this._updateScrollTopForScrollToRow(tl({},o,{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,r=e.getScrollbarSize,n=e.height,o=e.scrollLeft,i=e.scrollToColumn,l=e.scrollTop,a=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=tl({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=r(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof o&&o>=0||"number"==typeof l&&l>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:l});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=n>0&&s>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,o=n.autoHeight,i=n.autoWidth,l=n.columnCount,a=n.height,s=n.rowCount,c=n.scrollToAlignment,u=n.scrollToColumn,d=n.scrollToRow,f=n.width,p=this.state,h=p.scrollLeft,g=p.scrollPositionChangeReason,m=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var b=l>0&&0===e.columnCount||s>0&&0===e.rowCount;g===nl&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||b)&&(this._scrollingContainer.scrollLeft=h),!o&&m>=0&&(m!==this._scrollingContainer.scrollTop||b)&&(this._scrollingContainer.scrollTop=m));var y=(0===e.width||0===e.height)&&a>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Wi({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:f,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Wi({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:m,scrollToAlignment:c,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return r._updateScrollTopForScrollToRow(r.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||m!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),w=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:w,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Zi(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,r=e.autoHeight,n=e.autoWidth,i=e.className,l=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,u=e.id,d=e.noContentRenderer,f=e.role,p=e.style,h=e.tabIndex,g=e.width,m=this.state,v=m.instanceProps,b=m.needToResetStyleCache,y=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:r?"auto":c,position:"relative",width:n?"auto":g,WebkitOverflowScrolling:"touch",willChange:"transform"};b&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var w=v.columnSizeAndPositionManager.getTotalSize(),C=v.rowSizeAndPositionManager.getTotalSize(),_=C>c?v.scrollbarSize:0,x=w>g?v.scrollbarSize:0;x===this._horizontalScrollBarSize&&_===this._verticalScrollBarSize||(this._horizontalScrollBarSize=x,this._verticalScrollBarSize=_,this._scrollbarPresenceChanged=!0),S.overflowX=w+_<=g?"hidden":"auto",S.overflowY=C+x<=c?"hidden":"auto";var I=this._childrenToDisplay,O=0===I.length&&c>0&&g>0;return o.createElement("div",Ei()({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:ji("ReactVirtualized__Grid",i),id:u,onScroll:this._onScroll,role:f,style:tl({},S,{},p),tabIndex:h}),I.length>0&&o.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:tl({width:t?"auto":w,height:C,maxWidth:w,maxHeight:C,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},s)},I),O&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=e.cellRenderer,n=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,l=e.height,a=e.overscanColumnCount,s=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,d=e.width,f=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,g=t.instanceProps,m=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,b=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&d>0){var y=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:m}),w=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),C=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:m});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var _=s({direction:"horizontal",cellCount:o,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),x=s({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),I=_.overscanStartIndex,O=_.overscanStopIndex,R=x.overscanStartIndex,P=x.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var T=R;T<=P;T++)if(!i.has(T,0)){I=0,O=o-1;break}if(!i.hasFixedWidth())for(var D=I;D<=O;D++)if(!i.has(0,D)){R=0,P=u-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:I,columnStopIndex:O,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:b,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:R,rowStopIndex:P,scrollLeft:v,scrollTop:m,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:y,visibleRowIndices:S}),this._columnStartIndex=I,this._columnStopIndex=O,this._rowStartIndex=R,this._rowStopIndex=P}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Zi(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Qi(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:i,scrollLeft:r,scrollTop:n,scrollWidth:o})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var r=e.scrollLeft,n=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:n});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,r)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollLeftForScrollToColumnStateUpdate(e,r);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,r)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,r=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(n,"-").concat(o);this._styleCache[i]=e[i],r&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollTopForScrollToRowStateUpdate(e,r);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var n={};0===e.columnCount&&0!==r.scrollLeft||0===e.rowCount&&0!==r.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==r.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==r.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,l=r.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(n.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(n,{isScrolling:!1}),zi({cellCount:l.prevColumnCount,cellSize:"number"==typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,r)}}),zi({cellCount:l.prevRowCount,cellSize:"number"==typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,r)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,n.instanceProps=l,tl({},n,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,r=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:nl};return"number"==typeof r&&r>=0&&(o.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,o.scrollLeft=r),"number"==typeof n&&n>=0&&(o.scrollDirectionVertical=n>t.scrollTop?1:-1,o.scrollTop=n),"number"==typeof r&&r>=0&&r!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var r=e.columnCount,n=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,l=e.width,a=t.scrollLeft,s=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),d=s.rowSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>n?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:l-f,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,r){var n=r.scrollLeft,o=t._getCalculatedScrollLeft(e,r);return"number"==typeof o&&o>=0&&n!==o?t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var r=e.height,n=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,l=e.width,a=t.scrollTop,s=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),d=s.columnSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>l?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:r-f,currentOffset:a,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,r){var n=r.scrollTop,o=t._getCalculatedScrollTop(e,r);return"number"==typeof o&&o>=0&&n!==o?t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:-1,scrollTop:o}):{}}}]),t}(o.PureComponent),Ii()(qi,"propTypes",null),Yi);Ii()(ol,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,l=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,g=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],y=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!s&&!y,w=f;w<=p;w++)for(var C=d.getSizeAndPositionOfCell(w),_=o;_<=i;_++){var x=n.getSizeAndPositionOfCell(_),I=_>=m.start&&_<=m.stop&&w>=v.start&&w<=v.stop,O="".concat(w,"-").concat(_),R=void 0;S&&h[O]?R=h[O]:l&&!l.has(w,_)?R={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(R={height:C.size,left:x.offset+a,position:"absolute",top:C.offset+g,width:x.size},h[O]=R);var P={columnIndex:_,isScrolling:s,isVisible:I,key:O,parent:u,rowIndex:w,style:R},T=void 0;!c&&!s||a||g?T=r(P):(t[O]||(t[O]=r(P)),T=t[O]),null!=T&&!1!==T&&b.push(T)}return b},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Vi,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Ti(ol);var il=ol;function ll(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),1===n?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}}var al,sl;function cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ul=(sl=al=function(e){function t(){var e,r;pi()(this,t);for(var n=arguments.length,o=new Array(n),i=0;i=0){var u=t.getScrollPositionForCell({align:o,cellIndex:i,height:n,scrollLeft:s,scrollTop:c,width:l});u.scrollLeft===s&&u.scrollTop===c||r._setScrollPosition(u)}})),Ii()(wi()(r),"_onScroll",(function(e){if(e.target===r._scrollingContainer){r._enablePointerEventsAfterDelay();var t=r.props,n=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,l=t.width,a=r._scrollbarSize,s=n.getTotalSize(),c=s.height,u=s.width,d=Math.max(0,Math.min(u-l+a,e.target.scrollLeft)),f=Math.max(0,Math.min(c-o+a,e.target.scrollTop));if(r.state.scrollLeft!==d||r.state.scrollTop!==f){var p=e.cancelable?Cl:_l;r.state.isScrolling||i(!0),r.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:f})}r._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:u,totalHeight:c})}})),r._scrollbarSize=Vi(),void 0===r._scrollbarSize?(r._scrollbarSizeMeasured=!1,r._scrollbarSize=0):r._scrollbarSizeMeasured=!0,r}return _i()(t,e),gi()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,r=e.scrollLeft,n=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Vi(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(r>=0||o>=0)&&this._setScrollPosition({scrollLeft:r,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),l=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:o||0,totalHeight:l,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.height,o=r.scrollToAlignment,i=r.scrollToCell,l=r.width,a=this.state,s=a.scrollLeft,c=a.scrollPositionChangeReason,u=a.scrollTop;c===_l&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),n===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&l===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,r=e.cellCount,n=e.cellLayoutManager,i=e.className,l=e.height,a=e.horizontalOverscanSize,s=e.id,c=e.noContentRenderer,u=e.style,d=e.verticalOverscanSize,f=e.width,p=this.state,h=p.isScrolling,g=p.scrollLeft,m=p.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),b=v.height,y=v.width,S=Math.max(0,g-a),w=Math.max(0,m-d),C=Math.min(y,g+f+a),_=Math.min(b,m+l+d),x=l>0&&f>0?n.cellRenderers({height:_-w,isScrolling:h,width:C-S,x:S,y:w}):[],I={boxSizing:"border-box",direction:"ltr",height:t?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:f,willChange:"transform"},O=b>l?this._scrollbarSize:0,R=y>f?this._scrollbarSize:0;return I.overflowX=y+O<=f?"hidden":"auto",I.overflowY=b+R<=l?"hidden":"auto",o.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:ji("ReactVirtualized__Collection",i),id:s,onScroll:this._onScroll,role:"grid",style:wl({},I,{},u),tabIndex:0},r>0&&o.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:b,maxHeight:b,maxWidth:y,overflow:"hidden",pointerEvents:h?"none":"",width:y}},x),0===r&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:o,scrollLeft:r,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:_l};t>=0&&(n.scrollLeft=t),r>=0&&(n.scrollTop=r),(t>=0&&t!==this.state.scrollLeft||r>=0&&r!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:_l}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:_l}}}]),t}(o.PureComponent);Ii()(xl,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),xl.propTypes={},Ti(xl);var Il=xl,Ol=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;pi()(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return gi()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),Rl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;pi()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return gi()(e,[{key:"getCellIndices",value:function(e){var t=e.height,r=e.width,n=e.x,o=e.y,i={};return this.getSections({height:t,width:r,x:n,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,r=e.width,n=e.x,o=e.y,i=Math.floor(n/this._sectionSize),l=Math.floor((n+r-1)/this._sectionSize),a=Math.floor(o/this._sectionSize),s=Math.floor((o+t-1)/this._sectionSize),c=[],u=i;u<=l;u++)for(var d=a;d<=s;d++){var f="".concat(u,".").concat(d);this._sections[f]||(this._sections[f]=new Ol({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,r=e.index;this._cellMetadata[r]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:r})}))}}]),e}();function Pl(e){var t=e.align,r=void 0===t?"auto":t,n=e.cellOffset,o=e.cellSize,i=e.containerSize,l=e.currentOffset,a=n,s=a-i+o;switch(r){case"start":return a;case"end":return s;case"center":return a-(i-o)/2;default:return Math.max(s,Math.min(a,l))}}var Tl=function(e){function t(e,r){var n;return pi()(this,t),(n=vi()(this,yi()(t).call(this,e,r)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(wi()(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(wi()(n)),n}return _i()(t,e),gi()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=Ei()({},this.props);return o.createElement(Il,Ei()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new Rl(n),l=0,a=0,s=0;s=0&&ro||l1&&void 0!==arguments[1]?arguments[1]:0,r="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,r=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=r,this._doStuff(t,r)}},{key:"_doStuff",value:function(e,t){var r,n=this,o=this.props,i=o.isRowLoaded,l=o.minimumBatchSize,a=o.rowCount,s=o.threshold,c=function(e){for(var t=e.isRowLoaded,r=e.minimumBatchSize,n=e.rowCount,o=e.startIndex,i=e.stopIndex,l=[],a=null,s=null,c=o;c<=i;c++){t({index:c})?null!==s&&(l.push({startIndex:a,stopIndex:s}),a=s=null):(s=c,null===a&&(a=c))}if(null!==s){for(var u=Math.min(Math.max(s,a+r-1),n-1),d=s+1;d<=u&&!t({index:d});d++)s=d;l.push({startIndex:a,stopIndex:s})}if(l.length)for(var f=l[0];f.stopIndex-f.startIndex+10;){var p=f.startIndex-1;if(t({index:p}))break;f.startIndex=p}return l}({isRowLoaded:i,minimumBatchSize:l,rowCount:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(a-1,t+s)}),u=(r=[]).concat.apply(r,Al()(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(o.PureComponent);Ii()(jl,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),jl.propTypes={};var zl,Ml,kl=(Ml=zl=function(e){function t(){var e,r;pi()(this,t);for(var n=arguments.length,o=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.noRowsRenderer,n=e.scrollToIndex,i=e.width,l=ji("ReactVirtualized__List",t);return o.createElement(il,Ei()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:i,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(o.PureComponent),Ii()(zl,"propTypes",null),Ml);Ii()(kl,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:ll,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var Ll=r(21),Gl=r.n(Ll);var Nl={ge:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(var i=r+1;t<=r;){var l=t+r>>>1;o(e[l],n)>=0?(i=l,r=l-1):t=l+1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1;e[i]>=n?(o=i,r=i-1):t=i+1}return o}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)},gt:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(var i=r+1;t<=r;){var l=t+r>>>1;o(e[l],n)>0?(i=l,r=l-1):t=l+1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1;e[i]>n?(o=i,r=i-1):t=i+1}return o}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)},lt:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(var i=t-1;t<=r;){var l=t+r>>>1;o(e[l],n)<0?(i=l,t=l+1):r=l-1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1;e[i]>>1;o(e[l],n)<=0?(i=l,t=l+1):r=l-1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1;e[i]<=n?(o=i,t=i+1):r=i-1}return o}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)},eq:function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(;t<=r;){var i=t+r>>>1,l=o(e[i],n);if(0===l)return i;l<=0?t=i+1:r=i-1}return-1}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(;t<=r;){var o=t+r>>>1,i=e[o];if(i===n)return o;i<=n?t=o+1:r=o-1}return-1}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)}};function Bl(e,t,r,n,o){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=o,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var Wl=Bl.prototype;function Hl(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Fl(e,t){var r=Zl(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function Ul(e,t){var r=e.intervals([]);r.push(t),Fl(e,r)}function Vl(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?0:(r.splice(n,1),Fl(e,r),1)}function ql(e,t,r){for(var n=0;n=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function Kl(e,t){for(var r=0;r>1],o=[],i=[],l=[];for(r=0;r3*(t+1)?Ul(this,e):this.left.insert(e):this.left=Zl([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ul(this,e):this.right.insert(e):this.right=Zl([e]);else{var r=Nl.ge(this.leftPoints,e,Jl),n=Nl.ge(this.rightPoints,e,$l);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}},Wl.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?Vl(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Vl(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,n=this.left;n.right;)r=n,n=n.right;if(r===this)n.right=this.right;else{var o=this.left,i=this.right;r.count-=n.count,r.right=n.left,n.left=o,n.right=i}Hl(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Hl(this,this.left):Hl(this,this.right);return 1}for(o=Nl.ge(this.leftPoints,e,Jl);othis.mid){var r;if(this.right)if(r=this.right.queryPoint(e,t))return r;return Yl(this.rightPoints,e,t)}return Kl(this.leftPoints,t)},Wl.queryInterval=function(e,t,r){var n;if(ethis.mid&&this.right&&(n=this.right.queryInterval(e,t,r)))return n;return tthis.mid?Yl(this.rightPoints,e,r):Kl(this.leftPoints,r)};var ea=Ql.prototype;ea.insert=function(e){this.root?this.root.insert(e):this.root=new Bl(e[0],null,null,[e],[e])},ea.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},ea.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},ea.queryInterval=function(e,t,r){if(e<=t&&this.root)return this.root.queryInterval(e,t,r)},Object.defineProperty(ea,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(ea,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var ta,ra,na=function(){function e(){var t;pi()(this,e),Ii()(this,"_columnSizeMap",{}),Ii()(this,"_intervalTree",t&&0!==t.length?new Ql(Zl(t)):new Ql(null)),Ii()(this,"_leftMap",{})}return gi()(e,[{key:"estimateTotalHeight",value:function(e,t,r){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*r}},{key:"range",value:function(e,t,r){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Gl()(e,3),o=t[0],i=(t[1],t[2]);return r(i,n._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,r,n){this._intervalTree.insert([r,r+n,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?r+n:Math.max(i,r+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var r in e){var n=e[r];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var r in e){var n=e[r];t=Math.max(t,n)}return t}}]),e}();function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ia(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};pi()(this,e),Ii()(this,"_cellMeasurerCache",void 0),Ii()(this,"_columnIndexOffset",void 0),Ii()(this,"_rowIndexOffset",void 0),Ii()(this,"columnWidth",(function(e){var r=e.index;t._cellMeasurerCache.columnWidth({index:r+t._columnIndexOffset})})),Ii()(this,"rowHeight",(function(e){var r=e.index;t._cellMeasurerCache.rowHeight({index:r+t._rowIndexOffset})}));var n=r.cellMeasurerCache,o=r.columnIndexOffset,i=void 0===o?0:o,l=r.rowIndexOffset,a=void 0===l?0:l;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=a}return gi()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,r,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,r,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function ca(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ua(e){for(var t=1;t0?new sa({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:a}):i,n._deferredMeasurementCacheBottomRightGrid=l>0||a>0?new sa({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:a}):i,n._deferredMeasurementCacheTopRightGrid=l>0?new sa({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:0}):i),n}return _i()(t,e),gi()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,r):r,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n,i=this.props,l=i.fixedColumnCount,a=i.fixedRowCount,s=Math.max(0,r-l),c=Math.max(0,o-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,r=e.scrollTop;if(t>0||r>0){var n={};t>0&&(n.scrollLeft=t),r>0&&(n.scrollTop=r),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,r=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),l=ki()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return o.createElement("div",{style:this._containerOuterStyle},o.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(ua({},l,{onScroll:t,scrollLeft:s}))),o.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(ua({},l,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(ua({},l,{onScroll:t,onSectionRendered:r,scrollLeft:s,scrollToColumn:n,scrollToRow:i,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,r=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof r){for(var n=0,o=0;o=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(o.PureComponent);Ii()(da,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),da.propTypes={},Ti(da);var fa=function(e){function t(e,r){var n;return pi()(this,t),(n=vi()(this,yi()(t).call(this,e,r))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(wi()(n)),n}return _i()(t,e),gi()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.clientHeight,n=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,l=t.scrollTop,a=t.scrollWidth;return e({clientHeight:r,clientWidth:n,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:l,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.clientWidth,n=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:r,scrollHeight:n,scrollLeft:o,scrollTop:i,scrollWidth:l})}}]),t}(o.PureComponent);fa.propTypes={};function pa(e){var t=e.className,r=e.columns,n=e.style;return o.createElement("div",{className:t,role:"row",style:n},r)}pa.propTypes=null;var ha={ASC:"ASC",DESC:"DESC"};function ga(e){var t=e.sortDirection,r=ji("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===ha.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===ha.DESC});return o.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===ha.ASC?o.createElement("path",{d:"M7 14l5-5 5 5z"}):o.createElement("path",{d:"M7 10l5 5 5-5z"}),o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function ma(e){var t=e.dataKey,r=e.label,n=e.sortBy,i=e.sortDirection,l=n===t,a=[o.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof r?r:null},r)];return l&&a.push(o.createElement(ga,{key:"SortIndicator",sortDirection:i})),a}function va(e){var t=e.className,r=e.columns,n=e.index,i=e.key,l=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,c=e.onRowMouseOver,u=e.onRowRightClick,d=e.rowData,f=e.style,p={"aria-rowindex":n+1};return(l||a||s||c||u)&&(p["aria-label"]="row",p.tabIndex=0,l&&(p.onClick=function(e){return l({event:e,index:n,rowData:d})}),a&&(p.onDoubleClick=function(e){return a({event:e,index:n,rowData:d})}),s&&(p.onMouseOut=function(e){return s({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),u&&(p.onContextMenu=function(e){return u({event:e,index:n,rowData:d})})),o.createElement("div",Ei()({},p,{className:t,key:i,role:"row",style:f}),r)}ga.propTypes={},ma.propTypes=null,va.propTypes=null;var ba=function(e){function t(){return pi()(this,t),vi()(this,yi()(t).apply(this,arguments))}return _i()(t,e),t}(o.Component);function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sa(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(te.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.className,i=t.disableHeader,l=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,u=t.height,d=t.id,f=t.noRowsRenderer,p=t.rowClassName,h=t.rowStyle,g=t.scrollToIndex,m=t.style,v=t.width,b=this.state.scrollbarWidth,y=i?u:u-s,S="function"==typeof p?p({index:-1}):p,w="function"==typeof h?h({index:-1}):h;return this._cachedColumnStyles=[],o.Children.toArray(r).forEach((function(t,r){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[r]=Sa({overflow:"hidden"},n)})),o.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":o.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:ji("ReactVirtualized__Table",n),id:d,role:"grid",style:m},!i&&c({className:ji("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:Sa({height:s,overflow:"hidden",paddingRight:b,width:v},w)}),o.createElement(il,Ei()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:ji("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:y,id:void 0,noContentRenderer:f,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:b,scrollToRow:g,style:Sa({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,r=e.columnIndex,n=e.isScrolling,i=e.parent,l=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,u=c.cellDataGetter,d=c.cellRenderer,f=c.className,p=c.columnData,h=c.dataKey,g=c.id,m=d({cellData:u({columnData:p,dataKey:h,rowData:l}),columnData:p,columnIndex:r,dataKey:h,isScrolling:n,parent:i,rowData:l,rowIndex:a}),v=this._cachedColumnStyles[r],b="string"==typeof m?m:null;return o.createElement("div",{"aria-colindex":r+1,"aria-describedby":g,className:ji("ReactVirtualized__Table__rowColumn",f),key:"Row"+a+"-Col"+r,onClick:function(e){s&&s({columnData:p,dataKey:h,event:e})},role:"gridcell",style:v,title:b},m)}},{key:"_createHeader",value:function(e){var t,r,n,i,l,a=e.column,s=e.index,c=this.props,u=c.headerClassName,d=c.headerStyle,f=c.onHeaderClick,p=c.sort,h=c.sortBy,g=c.sortDirection,m=a.props,v=m.columnData,b=m.dataKey,y=m.defaultSortDirection,S=m.disableSort,w=m.headerRenderer,C=m.id,_=m.label,x=!S&&p,I=ji("ReactVirtualized__Table__headerColumn",u,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:x}),O=this._getFlexStyleForColumn(a,Sa({},d,{},a.props.headerStyle)),R=w({columnData:v,dataKey:b,disableSort:S,label:_,sortBy:h,sortDirection:g});if(x||f){var P=h!==b?y:g===ha.DESC?ha.ASC:ha.DESC,T=function(e){x&&p({defaultSortDirection:y,event:e,sortBy:b,sortDirection:P}),f&&f({columnData:v,dataKey:b,event:e})};l=a.props["aria-label"]||_||b,i="none",n=0,t=T,r=function(e){"Enter"!==e.key&&" "!==e.key||T(e)}}return h===b&&(i=g===ha.ASC?"ascending":"descending"),o.createElement("div",{"aria-label":l,"aria-sort":i,className:I,id:C,key:"Header-Col"+s,onClick:t,onKeyDown:r,role:"columnheader",style:O,tabIndex:n},R)}},{key:"_createRow",value:function(e){var t=this,r=e.rowIndex,n=e.isScrolling,i=e.key,l=e.parent,a=e.style,s=this.props,c=s.children,u=s.onRowClick,d=s.onRowDoubleClick,f=s.onRowRightClick,p=s.onRowMouseOver,h=s.onRowMouseOut,g=s.rowClassName,m=s.rowGetter,v=s.rowRenderer,b=s.rowStyle,y=this.state.scrollbarWidth,S="function"==typeof g?g({index:r}):g,w="function"==typeof b?b({index:r}):b,C=m({index:r}),_=o.Children.toArray(c).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:n,parent:l,rowData:C,rowIndex:r,scrollbarWidth:y})})),x=ji("ReactVirtualized__Table__row",S),I=Sa({},a,{height:this._getRowHeight(r),overflow:"hidden",paddingRight:y},w);return v({className:x,columns:_,index:r,isScrolling:n,key:i,onRowClick:u,onRowDoubleClick:d,onRowRightClick:f,onRowMouseOver:p,onRowMouseOut:h,rowData:C,style:I})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=Sa({},t,{flex:r,msFlex:r,WebkitFlex:r});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,r=t.children;return(t.disableHeader?[]:o.Children.toArray(r)).map((function(t,r){return e._createHeader({column:t,index:r})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(o.PureComponent);Ii()(wa,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:ll,overscanRowCount:10,rowRenderer:va,headerRowRenderer:pa,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),wa.propTypes={};var Ca=[],_a=null,xa=null;function Ia(){xa&&(xa=null,document.body&&null!=_a&&(document.body.style.pointerEvents=_a),_a=null)}function Oa(){Ia(),Ca.forEach((function(e){return e.__resetIsScrolling()}))}function Ra(e){e.currentTarget===window&&null==_a&&document.body&&(_a=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){xa&&Zi(xa);var e=0;Ca.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),xa=Qi(Oa,e)}(),Ca.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Pa(e,t){Ca.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Ra),Ca.push(e)}function Ta(e,t){(Ca=Ca.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Ra),xa&&(Zi(xa),Ia()))}var Da,Ea,Aa=function(e){return e===window},ja=function(e){return e.getBoundingClientRect()};function za(e,t){if(e){if(Aa(e)){var r=window,n=r.innerHeight,o=r.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof o?o:0}}return ja(e)}return{height:t.serverHeight,width:t.serverWidth}}function Ma(e,t){if(Aa(t)&&document.documentElement){var r=document.documentElement,n=ja(e),o=ja(r);return{top:n.top-o.top,left:n.left-o.left}}var i=ka(t),l=ja(e),a=ja(t);return{top:l.top+i.top-a.top,left:l.left+i.left-a.left}}function ka(e){return Aa(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function La(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ga(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,r=this.state,n=r.height,o=r.width,i=this._child||te.findDOMNode(this);if(i instanceof Element&&e){var l=Ma(i,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var a=za(e,this.props);n===a.height&&o===a.width||(this.setState({height:a.height,width:a.width}),t({height:a.height,width:a.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(pl.a)(),this.updatePosition(e),e&&(Pa(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var r=this.props.scrollElement,n=e.scrollElement;n!==r&&null!=n&&null!=r&&(this.updatePosition(r),Ta(this,n),Pa(this,r),this._unregisterResizeListener(n),this._registerResizeListener(r))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Ta(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.isScrolling,n=t.scrollTop,o=t.scrollLeft,i=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:r,scrollLeft:o,scrollTop:n,width:l})}}]),t}(o.PureComponent),Ii()(Da,"propTypes",null),Ea);Ii()(Ba,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Na(),serverHeight:0,serverWidth:0});function Wa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Xa=function(e){return function(t){var r=t.children,o=Ka(t,["children"]);return Object(n.jsx)(di,qa(qa({},o),{},{children:function(t){return Object(n.jsxs)(e,qa(qa({ref:t.innerRef},t.droppableProps),{},{children:[r,t.placeholder]}))}}))}};function Ja(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $a(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:is;return function(r){if(t(e))return r(e)}}function as(e){return function(t){return e.map((function(e){return t.when(e)?t.for(e):e}))}}var ss=function(e){var t=e.onConfirm,r=e.onCancel,i=Object(o.useRef)(),l=Object(o.useRef)();return Object(n.jsx)("div",{className:"react-kanban-card-adder-form",children:Object(n.jsxs)("form",{onSubmit:function(e){e.preventDefault(),ls(i.current.value)((function(e){t({title:e,description:l.current.value})}))},children:[Object(n.jsx)("input",{className:"react-kanban-card-adder-form__title",name:"title",autoFocus:!0,defaultValue:"Title",ref:i}),Object(n.jsx)("input",{className:"react-kanban-card-adder-form__description",name:"description",defaultValue:"Description",ref:l}),Object(n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[Object(n.jsx)("button",{className:"react-kanban-card-adder-form__button",type:"submit",children:"Add"}),Object(n.jsx)("button",{className:"react-kanban-card-adder-form__button",type:"button",onClick:r,children:"Cancel"})]})]})})};function cs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return us(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return us(e,t)}(e,t)||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 us(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r3&&void 0!==arguments[3]?arguments[3]:{},o=n.on,i=e.columns.find((function(e){return e.id===t.id})),l=rs(i.cards,r,"top"===o?0:i.cards.length),a=as(e.columns)({when:function(e){var r=e.id;return t.id===r},for:function(e){return js(js({},e),{},{cards:l})}});return js(js({},e),{},{columns:a})}function Hs(e,t,r){var n=e.columns.find((function(e){return e.id===t.id})),o=n.cards.filter((function(e){var t=e.id;return r.id!==t})),i=js(js({},n),{},{cards:o}),l=e.columns.map((function(e){return t.id===e.id?i:e}));return js(js({},e),{},{columns:l})}function Fs(e,t,r,n,o,i,l){try{var a=e[i](l),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function Us(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){Fs(i,n,o,l,a,"next",e)}function a(e){Fs(i,n,o,l,a,"throw",e)}l(void 0)}))}}function Vs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qs(e,t)}(e,t)||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 qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{},n=Ws(P,e,t,r);h(n,n.columns.find((function(t){return t.id===e.id})),t),T(n)}function G(){return(G=Us((function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=yield C(t);L(e,n,r)}))).apply(this,arguments)}function N(e,t){var r=Hs(P,e,t);v(r,r.columns.find((function(t){return t.id===e.id})),t),T(r)}return Object(n.jsx)(Qs,Ks(Ks({onCardDragEnd:D,onColumnDragEnd:E,renderColumnAdder:function(){return l?a?a({addColumn:j}):s?Object(n.jsx)(Ss,{onConfirm:function(e){return j({title:e,cards:[]})}}):null:null}},u&&{renderColumnHeader:function(e){return u(e,{removeColumn:M.bind(null,e),renameColumn:k.bind(null,e),addCard:L.bind(null,e)})}}),{},{renderCard:function(e,t,r){return g?g(t,{removeCard:N.bind(null,e,t),dragging:r}):Object(n.jsx)(Is,{dragging:r,allowRemoveCard:m,onCardRemove:function(t){return N(e,t)},children:t})},allowRemoveColumn:d,onColumnRemove:M,allowRenameColumn:f,onColumnRename:k,disableColumnDrag:S,disableCardDrag:y,onCardNew:function(e,t){return function(e,t){return G.apply(this,arguments)}(e,t,w)},allowAddCard:w&&C,isVirtualList:_,rowHeight:x,width:I,height:O,children:P}))}function Zs(e){var t=e.children,r=e.onCardDragEnd,o=e.onColumnDragEnd,i=e.allowAddColumn,l=e.renderColumnAdder,a=e.onNewColumnConfirm,s=e.onColumnRemove,c=e.renderColumnHeader,u=e.allowRemoveColumn,d=e.allowRenameColumn,f=e.onColumnRename,p=e.renderCard,h=e.allowRemoveCard,g=e.onCardRemove,m=e.disableCardDrag,v=e.disableColumnDrag,b=e.isVirtualList,y=e.rowHeight,S=e.width,w=e.height,C=ts(x,{notifyCallback:r}),_=ts(x,{notifyCallback:o});function x(e,t){var r=e.source,n=e.destination,o=e.subject;ls(t.notifyCallback)((function(e){return e(o,r,n)}))}return Object(n.jsx)(Qs,Ks(Ks({onCardDragEnd:C,onColumnDragEnd:_,renderColumnAdder:function(){return i?l?l():a?Object(n.jsx)(Ss,{onConfirm:function(e){return a({title:e,cards:[]})}}):null:null}},c&&{renderColumnHeader:c}),{},{renderCard:function(e,t,r){return p?p(t,{dragging:r}):Object(n.jsx)(Is,{dragging:r,allowRemoveCard:h,onCardRemove:g,children:t})},allowRemoveColumn:u,onColumnRemove:s,allowRenameColumn:d,onColumnRename:f,disableColumnDrag:v,disableCardDrag:m,isVirtualList:b,rowHeight:y,width:S,height:w,children:t}))}function Qs(e){var t=e.children,r=e.renderCard,o=e.disableColumnDrag,i=e.disableCardDrag,l=e.renderColumnHeader,a=e.renderColumnAdder,s=e.allowRemoveColumn,c=e.onColumnRemove,u=e.allowRenameColumn,d=e.onColumnRename,f=e.onColumnDragEnd,p=e.onCardDragEnd,h=e.onCardNew,g=e.allowAddCard,m=e.isVirtualList,v=e.rowHeight,b=e.width,y=e.height;return Object(n.jsx)(Oo,{onDragEnd:function(e){var r=function(e,t){if(null===e.destination)return{};var r={fromPosition:e.source.index},n={toPosition:e.destination.index};return Ts(e.type)?{source:r,destination:n}:{source:Rs(Rs({},r),{},{fromColumnId:Es(t,e.source.droppableId).id}),destination:Rs(Rs({},n),{},{toColumnId:Es(t,e.destination.droppableId).id})}}(e,t);r.source&&(Ts(e.type)?function(e){return e.source.fromPosition!==e.destination.toPosition}(r)&&f(Ks(Ks({},r),{},{subject:t.columns[r.source.fromPosition]})):function(e){return!(e.source.fromPosition===e.destination.toPosition&&e.source.fromColumnId===e.destination.toColumnId)}(r)&&p(Ks(Ks({},r),{},{subject:Ds(t,r.source)})))},children:Object(n.jsxs)("div",{className:"react-kanban-board",children:[Object(n.jsx)(Js,{droppableId:"board-droppable",direction:"horizontal",type:"BOARD",children:t.columns.map((function(e,t){return Object(n.jsx)(ms,{index:t,isVirtualList:m,width:b,height:y,rowHeight:v,renderCard:r,renderColumnHeader:function(e){return l?l(e):Object(n.jsx)(xs,{allowRemoveColumn:s,onColumnRemove:c,allowRenameColumn:u,onColumnRename:d,children:e})},disableColumnDrag:o,disableCardDrag:i,onCardNew:h,allowAddCard:g,children:e},e.id)}))}),a()]})})}var ec=function(e){return e.initialBoard?Object(n.jsx)($s,Ks({},e)):Object(n.jsx)(Zs,Ks({},e))}}])})); \ No newline at end of file