@reltio/remotes 1.4.1108 → 1.4.1111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/5127.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 5127.js.LICENSE.txt */
2
- (self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5127],{43525:(e,t,o)=>{"use strict";var n=o(14859);t.Z=void 0;var r=n(o(24328)),i=(0,n(o(50175)).default)(r.default.createElement("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");t.Z=i},73272:(e,t,o)=>{"use strict";var n=o(14859);t.Z=void 0;var r=n(o(24328)),i=(0,n(o(50175)).default)(r.default.createElement("path",{d:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag");t.Z=i},67766:(e,t,o)=>{"use strict";var n=o(14859);t.Z=void 0;var r=n(o(24328)),i=(0,n(o(50175)).default)(r.default.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"KeyboardArrowLeft");t.Z=i},42767:(e,t,o)=>{"use strict";var n=o(14859);t.Z=void 0;var r=n(o(24328)),i=(0,n(o(50175)).default)(r.default.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.Z=i},98685:(e,t,o)=>{"use strict";var n=o(14859);t.Z=void 0;var r=n(o(24328)),i=(0,n(o(50175)).default)(r.default.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.Z=i},94842:(e,t,o)=>{"use strict";var n=o(14859);t.Z=void 0;var r=n(o(24328)),i=(0,n(o(50175)).default)(r.default.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"}),"Send");t.Z=i},72753:(e,t,o)=>{"use strict";var n=o(14859);t.Z=void 0;var r=n(o(24328)),i=(0,n(o(50175)).default)(r.default.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=i},81521:(e,t,o)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?s(e):t}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function h(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}o.d(t,{qj:()=>Y,Z8:()=>ee,t1:()=>te,aV:()=>_e});var f=o(24328),p=o(46847);function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g.apply(this,arguments)}var m=o(6277);function v(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,l=e.nextCellSize,s=e.nextScrollToIndex,a=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof l||o===l)||(n(r),a>=0&&a===s&&c())}function _(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}o(13980);var S=function(){function e(t){var o=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;n(this,e),h(this,"_cellSizeAndPositionData",{}),h(this,"_lastMeasuredIndex",-1),h(this,"_lastBatchedIndex",-1),h(this,"_cellCount",void 0),h(this,"_cellSizeGetter",void 0),h(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=o,this._estimatedCellSize=i}return i(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,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(),o=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,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,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var l,s=this.getSizeAndPositionOfCell(i),a=s.offset,c=a-n+s.size;switch(o){case"start":l=a;break;case"end":l=c;break;case"center":l=a-(n-s.size)/2;break;default:l=Math.max(c,Math.min(a,r))}var d=this.getTotalSize();return Math.max(0,Math.min(d-n,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var l=r;o<n&&l<this._cellCount-1;)l++,o+=this.getSizeAndPositionOfCell(l).size;return{start:r,stop:l}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),y=function(){function e(t){var o=t.maxScrollSize,r=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,i=_(t,["maxScrollSize"]);n(this,e),h(this,"_cellSizeAndPositionManager",void 0),h(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new S(i),this._maxScrollSize=r}return i(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,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-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,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]),e}();function w(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),l=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),s=i.length!==Object.keys(t).length||i.some((function(e){var o=t[e],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n}));t=r,l&&s&&n(r)}}function C(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,l=e.previousScrollToIndex,s=e.previousSize,a=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,u=e.size,h=e.sizeJustIncreasedFromZero,f=e.updateScrollIndexCallback,p=o.getCellCount(),g=d>=0&&d<p;g&&(u!==s||h||!r||"number"==typeof t&&t!==r||c!==i||d!==l)?f(d):!g&&p>0&&(u<s||p<n)&&a>o.getTotalSize()-u&&f(p-1)}const x=!("undefined"==typeof window||!window.document||!window.document.createElement);var b,R;function T(e){if((!b&&0!==b||e)&&x){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),b=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return b}var z,I,M=(R="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||R.webkitRequestAnimationFrame||R.mozRequestAnimationFrame||R.oRequestAnimationFrame||R.msRequestAnimationFrame||function(e){return R.setTimeout(e,1e3/60)},O=R.cancelAnimationFrame||R.webkitCancelAnimationFrame||R.mozCancelAnimationFrame||R.oCancelAnimationFrame||R.msCancelAnimationFrame||function(e){R.clearTimeout(e)},P=M,k=O,L=function(e){return k(e.id)},G=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:P((function r(){Date.now()-o>=t?e.call():n.id=P(r)}))};return n};function A(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function E(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?A(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):A(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var H="requested",W=(I=z=function(e){function t(e){var o;n(this,t),h(s(o=a(this,c(t).call(this,e))),"_onGridRenderedMemoizer",w()),h(s(o),"_onScrollMemoizer",w(!1)),h(s(o),"_deferredInvalidateColumnIndex",null),h(s(o),"_deferredInvalidateRowIndex",null),h(s(o),"_recomputeScrollLeftFlag",!1),h(s(o),"_recomputeScrollTopFlag",!1),h(s(o),"_horizontalScrollBarSize",0),h(s(o),"_verticalScrollBarSize",0),h(s(o),"_scrollbarPresenceChanged",!1),h(s(o),"_scrollingContainer",void 0),h(s(o),"_childrenToDisplay",void 0),h(s(o),"_columnStartIndex",void 0),h(s(o),"_columnStopIndex",void 0),h(s(o),"_rowStartIndex",void 0),h(s(o),"_rowStopIndex",void 0),h(s(o),"_renderedColumnStartIndex",0),h(s(o),"_renderedColumnStopIndex",0),h(s(o),"_renderedRowStartIndex",0),h(s(o),"_renderedRowStopIndex",0),h(s(o),"_initialScrollTop",void 0),h(s(o),"_initialScrollLeft",void 0),h(s(o),"_disablePointerEventsTimeoutId",void 0),h(s(o),"_styleCache",{}),h(s(o),"_cellCache",{}),h(s(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),h(s(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),h(s(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),h(s(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var r=new y({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new y({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:i,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return u(t,e),i(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,l=void 0===i?this.props.scrollToRow:i,s=E({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{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,o=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n;if(!(r<0)){this._debounceScrollEnded();var i=this.props,l=i.autoHeight,s=i.autoWidth,a=i.height,c=i.width,d=this.state.instanceProps,u=d.scrollbarSize,h=d.rowSizeAndPositionManager.getTotalSize(),f=d.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,f-c+u),o),g=Math.min(Math.max(0,h-a+u),r);if(this.state.scrollLeft!==p||this.state.scrollTop!==g){var m={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:g!==this.state.scrollTop?g>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};l||(m.scrollTop=g),s||(m.scrollLeft=p),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:f,totalRowsHeight:h})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,l=i.scrollToColumn,s=i.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?o<=l:o>=l),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?r<=s:r>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props.columnCount,r=this.props;n>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(E({},r,{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(E({},r,{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=e.scrollLeft,i=e.scrollToColumn,l=e.scrollTop,s=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=E({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof l&&l>=0){var d=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:l});d&&(d.needToResetStyleCache=!1,this.setState(d))}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 u=n>0&&a>0;i>=0&&u&&this._updateScrollLeftForScrollToColumn(),s>=0&&u&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,l=n.columnCount,s=n.height,a=n.rowCount,c=n.scrollToAlignment,d=n.scrollToColumn,u=n.scrollToRow,h=n.width,f=this.state,p=f.scrollLeft,g=f.scrollPositionChangeReason,m=f.scrollTop,v=f.instanceProps;this._handleInvalidatedGridSize();var _=l>0&&0===e.columnCount||a>0&&0===e.rowCount;g===H&&(!i&&p>=0&&(p!==this._scrollingContainer.scrollLeft||_)&&(this._scrollingContainer.scrollLeft=p),!r&&m>=0&&(m!==this._scrollingContainer.scrollTop||_)&&(this._scrollingContainer.scrollTop=m));var S=(0===e.width||0===e.height)&&s>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):C({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:d,size:h,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):C({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:m,scrollToAlignment:c,scrollToIndex:u,size:s,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||m!==t.scrollTop){var y=v.rowSizeAndPositionManager.getTotalSize(),w=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:m,totalColumnsWidth:w,totalRowsHeight:y})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&L(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,r=e.className,i=e.containerProps,l=e.containerRole,s=e.containerStyle,a=e.height,c=e.id,d=e.noContentRenderer,u=e.role,h=e.style,p=e.tabIndex,v=e.width,_=this.state,S=_.instanceProps,y=_.needToResetStyleCache,w=this._isScrolling(),C={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:n?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=S.columnSizeAndPositionManager.getTotalSize(),b=S.rowSizeAndPositionManager.getTotalSize(),R=b>a?S.scrollbarSize:0,T=x>v?S.scrollbarSize:0;T===this._horizontalScrollBarSize&&R===this._verticalScrollBarSize||(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),C.overflowX=x+R<=v?"hidden":"auto",C.overflowY=b+T<=a?"hidden":"auto";var z=this._childrenToDisplay,I=0===z.length&&a>0&&v>0;return f.createElement("div",g({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:(0,m.Z)("ReactVirtualized__Grid",r),id:c,onScroll:this._onScroll,role:u,style:E({},C,{},h),tabIndex:p}),z.length>0&&f.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:E({width:t?"auto":x,height:b,maxWidth:x,maxHeight:b,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"},s)},z),I&&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,o=e.cellRenderer,n=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,l=e.height,s=e.overscanColumnCount,a=e.overscanIndicesGetter,c=e.overscanRowCount,d=e.rowCount,u=e.width,h=e.isScrollingOptOut,f=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,g=t.instanceProps,m=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,_=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&u>0){var S=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:u,offset:v}),y=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:m}),w=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:u,offset:v}),C=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:m});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=y.start,this._renderedRowStopIndex=y.stop;var x=a({direction:"horizontal",cellCount:r,overscanCellsCount:s,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),b=a({direction:"vertical",cellCount:d,overscanCellsCount:c,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),R=x.overscanStartIndex,T=x.overscanStopIndex,z=b.overscanStartIndex,I=b.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=z;M<=I;M++)if(!i.has(M,0)){R=0,T=r-1;break}if(!i.hasFixedWidth())for(var O=R;O<=T;O++)if(!i.has(0,O)){z=0,I=d-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:R,columnStopIndex:T,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:_,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:z,rowStopIndex:I,scrollLeft:v,scrollTop:m,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:S,visibleRowIndices:y}),this._columnStartIndex=R,this._columnStopIndex=T,this._rowStartIndex=z,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&L(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=G(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,o=e.scrollLeft,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,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 o=e.scrollLeft,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollLeftForScrollToColumnStateUpdate(e,o);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollTopForScrollToRowStateUpdate(e,o);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,l=o.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}),v({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(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),v({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,o)}}),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,E({},n,{},r,{},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,o=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:H};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?1:-1,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,l=e.width,s=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,d=i<0?c:Math.min(c,i),u=a.rowSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>n?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:l-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,l=e.width,s=t.scrollTop,a=t.instanceProps;if(n>0){var c=n-1,d=i<0?c:Math.min(c,i),u=a.columnSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>l?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}]),t}(f.PureComponent),h(z,"propTypes",null),I);h(W,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,l=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,a=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,u=e.rowSizeAndPositionManager,h=e.rowStartIndex,f=e.rowStopIndex,p=e.styleCache,g=e.verticalOffsetAdjustment,m=e.visibleColumnIndices,v=e.visibleRowIndices,_=[],S=n.areOffsetsAdjusted()||u.areOffsetsAdjusted(),y=!a&&!S,w=h;w<=f;w++)for(var C=u.getSizeAndPositionOfCell(w),x=r;x<=i;x++){var b=n.getSizeAndPositionOfCell(x),R=x>=m.start&&x<=m.stop&&w>=v.start&&w<=v.stop,T="".concat(w,"-").concat(x),z=void 0;y&&p[T]?z=p[T]:l&&!l.has(w,x)?z={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(z={height:C.size,left:b.offset+s,position:"absolute",top:C.offset+g,width:b.size},p[T]=z);var I={columnIndex:x,isScrolling:a,isVisible:R,key:T,parent:d,rowIndex:w,style:z},M=void 0;!c&&!a||s||g?M=o(I):(t[T]||(t[T]=o(I)),M=t[T]),null!=M&&!1!==M&&_.push(M)}return _},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:T,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,p.polyfill)(W);const D=W;function j(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),1===n?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}var F,N;function U(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var B,V,$=(N=F=function(e){function t(){var e,o;n(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return h(s(o=a(this,(e=c(t)).call.apply(e,[this].concat(i)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),h(s(o),"_columnStartIndex",0),h(s(o),"_columnStopIndex",0),h(s(o),"_rowStartIndex",0),h(s(o),"_rowStopIndex",0),h(s(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,l=t.rowCount;if(!r){var s=o._getScrollState(),a=s.scrollToColumn,c=s.scrollToRow,d=o._getScrollState(),u=d.scrollToColumn,h=d.scrollToRow;switch(e.key){case"ArrowDown":h="cells"===i?Math.min(h+1,l-1):Math.min(o._rowStopIndex+1,l-1);break;case"ArrowLeft":u="cells"===i?Math.max(u-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":u="cells"===i?Math.min(u+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":h="cells"===i?Math.max(h-1,0):Math.max(o._rowStartIndex-1,0)}u===a&&h===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:u,scrollToRow:h}))}})),h(s(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i})),o}return u(t,e),i(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,n=this._getScrollState(),r=n.scrollToColumn,i=n.scrollToRow;return f.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:r,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?U(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(f.PureComponent),h(F,"propTypes",null),N);function q(e,t){var n,r=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&n.document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),l=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),s=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},a=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(o){o.call(t,e)})))}))}},c=!1,d="",u="animationstart",h="Webkit Moz O ms".split(" "),f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p=n.document.createElement("fakeelement");if(void 0!==p.style.animationName&&(c=!0),!1===c)for(var g=0;g<h.length;g++)if(void 0!==p.style[h[g]+"AnimationName"]){d="-"+h[g].toLowerCase()+"-",u=f[g],c=!0;break}var m="resizeanim",v="@"+d+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",_=d+"animation: 1ms "+m+"; "}return{addResizeListener:function(t,o){if(r)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,l=n.getComputedStyle(t);l&&"static"==l.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(v||"")+".resize-triggers { "+(_||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var d=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=d.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),s(t),t.addEventListener("scroll",a,!0),u&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&s(t)},t.__resizeTriggers__.addEventListener(u,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function Z(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function X(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Z(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Z(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}h($,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,p.polyfill)($);var Y=(V=B=function(e){function t(){var e,o;n(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return h(s(o=a(this,(e=c(t)).call.apply(e,[this].concat(i)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),h(s(o),"_parentNode",void 0),h(s(o),"_autoSizer",void 0),h(s(o),"_window",void 0),h(s(o),"_detectElementResize",void 0),h(s(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,l=o._parentNode.offsetWidth||0,s=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,d=parseInt(s.paddingTop,10)||0,u=parseInt(s.paddingBottom,10)||0,h=i-d-u,f=l-a-c;(!t&&o.state.height!==h||!n&&o.state.width!==f)&&(o.setState({height:i-d-u,width:l-a-c}),r({height:i,width:l}))}})),h(s(o),"_setRef",(function(e){o._autoSizer=e})),o}return u(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=q(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,n=e.disableHeight,r=e.disableWidth,i=e.style,l=this.state,s=l.height,a=l.width,c={overflow:"visible"},d={};return n||(c.height=0,d.height=s),r||(c.width=0,d.width=a),f.createElement("div",{className:o,ref:this._setRef,style:X({},c,{},i)},t(d))}}]),t}(f.Component),h(B,"propTypes",null),V);h(Y,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var K,J,Q=o(75047),ee=(J=K=function(e){function t(){var e,o;n(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return h(s(o=a(this,(e=c(t)).call.apply(e,[this].concat(i)))),"_child",void 0),h(s(o),"_measure",(function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,l=e.rowIndex,s=void 0===l?o.props.index||0:l,a=o._getCellMeasurements(),c=a.height,d=a.width;c===t.getHeight(s,r)&&d===t.getWidth(s,r)||(t.set(s,r,d,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:s}))})),h(s(o),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),o._child=e,e&&o._maybeMeasureCell()})),o}return u(t,e),i(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,Q.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,l=void 0===i?this.props.index||0:i;if(!t.has(l,n)){var s=this._getCellMeasurements(),a=s.height,c=s.width;t.set(l,n,c,a),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:l})}}}]),t}(f.PureComponent),h(K,"propTypes",null),J);h(ee,"__internalCellMeasurerFlag",!1);var te=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),h(this,"_cellHeightCache",{}),h(this,"_cellWidthCache",{}),h(this,"_columnWidthCache",{}),h(this,"_rowHeightCache",{}),h(this,"_defaultHeight",void 0),h(this,"_defaultWidth",void 0),h(this,"_minHeight",void 0),h(this,"_minWidth",void 0),h(this,"_keyMapper",void 0),h(this,"_hasFixedHeight",void 0),h(this,"_hasFixedWidth",void 0),h(this,"_columnCount",0),h(this,"_rowCount",0),h(this,"columnWidth",(function(e){var o=e.index,n=t._keyMapper(0,o);return void 0!==t._columnWidthCache[n]?t._columnWidthCache[n]:t._defaultWidth})),h(this,"rowHeight",(function(e){var o=e.index,n=t._keyMapper(o,0);return void 0!==t._rowHeightCache[n]?t._rowHeightCache[n]:t._defaultHeight}));var r=o.defaultHeight,i=o.defaultWidth,l=o.fixedHeight,s=o.fixedWidth,a=o.keyMapper,c=o.minHeight,d=o.minWidth;this._hasFixedHeight=!0===l,this._hasFixedWidth=!0===s,this._minHeight=c||0,this._minWidth=d||0,this._keyMapper=a||oe,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:100)}return i(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(e,t);return void 0!==this._cellWidthCache[o]?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this._keyMapper(e,t);return void 0!==this._cellHeightCache[o]}},{key:"set",value:function(e,t,o,n){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=n,this._cellWidthCache[r]=o,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var o=0,n=0;n<this._rowCount;n++)o=Math.max(o,this.getWidth(n,t));var r=this._keyMapper(0,t);this._columnWidthCache[r]=o}if(!this._hasFixedHeight){for(var i=0,l=0;l<this._columnCount;l++)i=Math.max(i,this.getHeight(e,l));var s=this._keyMapper(e,0);this._rowHeightCache[s]=i}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function oe(e,t){return"".concat(e,"-").concat(t)}function ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function re(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ne(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ne(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ie="observed",le="requested",se=function(e){function t(){var e,o;n(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return h(s(o=a(this,(e=c(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),h(s(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),h(s(o),"_onSectionRenderedMemoizer",w()),h(s(o),"_onScrollMemoizer",w(!1)),h(s(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),h(s(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),h(s(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,l=e.width,s=o.state,a=s.scrollLeft,c=s.scrollTop;if(i>=0){var d=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:a,scrollTop:c,width:l});d.scrollLeft===a&&d.scrollTop===c||o._setScrollPosition(d)}})),h(s(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,n=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,l=t.width,s=o._scrollbarSize,a=n.getTotalSize(),c=a.height,d=a.width,u=Math.max(0,Math.min(d-l+s,e.target.scrollLeft)),h=Math.max(0,Math.min(c-r+s,e.target.scrollTop));if(o.state.scrollLeft!==u||o.state.scrollTop!==h){var f=e.cancelable?ie:le;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:u,scrollPositionChangeReason:f,scrollTop:h})}o._invokeOnScrollMemoizer({scrollLeft:u,scrollTop:h,totalWidth:d,totalHeight:c})}})),o._scrollbarSize=T(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return u(t,e),i(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=T(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),l=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:l,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,l=o.width,s=this.state,a=s.scrollLeft,c=s.scrollPositionChangeReason,d=s.scrollTop;c===le&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),d>=0&&d!==t.scrollTop&&d!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=d)),n===e.height&&r===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,o=e.cellCount,n=e.cellLayoutManager,r=e.className,i=e.height,l=e.horizontalOverscanSize,s=e.id,a=e.noContentRenderer,c=e.style,d=e.verticalOverscanSize,u=e.width,h=this.state,p=h.isScrolling,g=h.scrollLeft,v=h.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var _=n.getTotalSize(),S=_.height,y=_.width,w=Math.max(0,g-l),C=Math.max(0,v-d),x=Math.min(y,g+u+l),b=Math.min(S,v+i+d),R=i>0&&u>0?n.cellRenderers({height:b-C,isScrolling:p,width:x-w,x:w,y:C}):[],T={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},z=S>i?this._scrollbarSize:0,I=y>u?this._scrollbarSize:0;return T.overflowX=y+z<=u?"hidden":"auto",T.overflowY=S+I<=i?"hidden":"auto",f.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,m.Z)("ReactVirtualized__Collection",r),id:s,onScroll:this._onScroll,role:"grid",style:re({},T,{},c),tabIndex:0},o>0&&f.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:S,maxHeight:S,maxWidth:y,overflow:"hidden",pointerEvents:p?"none":"",width:y}},R),0===o&&a())}},{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,o=e.scrollLeft,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:le};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==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:le}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:le}}}]),t}(f.PureComponent);h(se,"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}),se.propTypes={},(0,p.polyfill)(se);const ae=se;var ce=function(){function e(t){var o=t.height,r=t.width,i=t.x,l=t.y;n(this,e),this.height=o,this.width=r,this.x=i,this.y=l,this._indexMap={},this._indices=[]}return i(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}(),de=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;n(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return i(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).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,o=e.width,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),l=Math.floor((n+o-1)/this._sectionSize),s=Math.floor(r/this._sectionSize),a=Math.floor((r+t-1)/this._sectionSize),c=[],d=i;d<=l;d++)for(var u=s;u<=a;u++){var h="".concat(d,".").concat(u);this._sections[h]||(this._sections[h]=new ce({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:u*this._sectionSize})),c.push(this._sections[h])}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,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function ue(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,l=e.currentOffset,s=n,a=s-i+r;switch(o){case"start":return s;case"end":return a;case"center":return s-(i-r)/2;default:return Math.max(a,Math.min(s,l))}}var he=function(e){function t(e,o){var r;return n(this,t),(r=a(this,c(t).call(this,e,o)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(s(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(s(r)),r}return u(t,e),i(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=g({},this.props);return f.createElement(ae,g({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,o=e.cellSizeAndPositionGetter,n=[],r=new de(e.sectionSize),i=0,l=0,s=0;s<t;s++){var a=o({index:s});if(null==a.height||isNaN(a.height)||null==a.width||isNaN(a.width)||null==a.x||isNaN(a.x)||null==a.y||isNaN(a.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(a.x,", y:").concat(a.y,", width:").concat(a.width,", height:").concat(a.height));i=Math.max(i,a.y+a.height),l=Math.max(l,a.x+a.width),n[s]=a,r.registerCell({cellMetadatum:a,index:s})}return{cellMetadata:n,height:i,sectionManager:r,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,n=e.height,r=e.scrollLeft,i=e.scrollTop,l=e.width,s=this.props.cellCount;if(o>=0&&o<s){var a=this._cellMetadata[o];r=ue({align:t,cellOffset:a.x,cellSize:a.width,containerSize:l,currentOffset:r,targetIndex:o}),i=ue({align:t,cellOffset:a.y,cellSize:a.height,containerSize:n,currentOffset:i,targetIndex:o})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=e.width,i=e.x,l=e.y,s=this.props,a=s.cellGroupRenderer,c=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:l}),a({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(f.PureComponent);function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function pe(e,t){if(e){if("string"==typeof e)return fe(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?fe(e,t):void 0}}h(he,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=n({index:e}),l={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(l)),t[e]):o(l)})).filter((function(e){return!!e}))}}),he.propTypes={},(function(e){function t(e,o){var r;return n(this,t),(r=a(this,c(t).call(this,e,o)))._registerChild=r._registerChild.bind(s(r)),r}return u(t,e),i(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,l=n||1,s=o?Math.min(o,i):i,a=i/r;return a=Math.max(l,a),a=Math.min(s,a),a=Math.floor(a),t({adjustedWidth:Math.min(i,a*r),columnWidth:a,getColumnWidth:function(){return a},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(f.PureComponent)).propTypes={};var ge=function(e){function t(e,o){var r;return n(this,t),(r=a(this,c(t).call(this,e,o)))._loadMoreRowsMemoizer=w(),r._onRowsRendered=r._onRowsRendered.bind(s(r)),r._registerChild=r._registerChild.bind(s(r)),r}return u(t,e),i(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=w(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach((function(e){var n=o(e);n&&n.then((function(){var o;(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>o.lastRenderedStopIndex||o.stopIndex<o.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,n,r=this,i=this.props,l=i.isRowLoaded,s=i.minimumBatchSize,a=i.rowCount,c=i.threshold,d=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.stopIndex,i=[],l=null,s=null,a=e.startIndex;a<=r;a++)t({index:a})?null!==s&&(i.push({startIndex:l,stopIndex:s}),l=s=null):(s=a,null===l&&(l=a));if(null!==s){for(var c=Math.min(Math.max(s,l+o-1),n-1),d=s+1;d<=c&&!t({index:d});d++)s=d;i.push({startIndex:l,stopIndex:s})}if(i.length)for(var u=i[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var h=u.startIndex-1;if(t({index:h}))break;u.startIndex=h}return i}({isRowLoaded:l,minimumBatchSize:s,rowCount:a,startIndex:Math.max(0,e-c),stopIndex:Math.min(a-1,t+c)}),u=(o=[]).concat.apply(o,function(e){if(Array.isArray(e))return fe(e)}(n=d.map((function(e){return[e.startIndex,e.stopIndex]})))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||pe(n)||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.")}());this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(f.PureComponent);h(ge,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),ge.propTypes={};var me,ve,_e=(ve=me=function(e){function t(){var e,o;n(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return h(s(o=a(this,(e=c(t)).call.apply(e,[this].concat(i)))),"Grid",void 0),h(s(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,l=e.isVisible,s=e.key,a=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),a({index:n,style:r,isScrolling:i,isVisible:l,key:s,parent:t})})),h(s(o),"_setRef",(function(e){o.Grid=e})),h(s(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),h(s(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})})),o}return u(t,e),i(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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,o=e.noRowsRenderer,n=e.scrollToIndex,r=e.width,i=(0,m.Z)("ReactVirtualized__List",t);return f.createElement(D,g({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(f.PureComponent),h(me,"propTypes",null),ve);h(_e,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:j,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const Se=function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var l=t+o>>>1;r(e[l],n)>=0?(i=l,o=l-1):t=l+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)};function ye(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var we=ye.prototype;function Ce(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 xe(e,t){var o=ke(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function be(e,t){var o=e.intervals([]);o.push(t),xe(e,o)}function Re(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?0:(o.splice(n,1),xe(e,o),1)}function Te(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function ze(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function Ie(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function Me(e,t){return e-t}function Oe(e,t){return e[0]-t[0]||e[1]-t[1]}function Pe(e,t){return e[1]-t[1]||e[0]-t[0]}function ke(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(Me);var n=t[t.length>>1],r=[],i=[],l=[];for(o=0;o<e.length;++o){var s=e[o];s[1]<n?r.push(s):n<s[0]?i.push(s):l.push(s)}var a=l,c=l.slice();return a.sort(Oe),c.sort(Pe),new ye(n,ke(r),ke(i),a,c)}function Le(e){this.root=e}we.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},we.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?be(this,e):this.left.insert(e):this.left=ke([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?be(this,e):this.right.insert(e):this.right=ke([e]);else{var o=Se(this.leftPoints,e,Oe),n=Se(this.rightPoints,e,Pe);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},we.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Re(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)?Re(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 o=this,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}Ce(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Ce(this,this.left):Ce(this,this.right);return 1}for(r=Se(this.leftPoints,e,Oe);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e)for(this.count-=1,this.leftPoints.splice(r,1),i=Se(this.rightPoints,e,Pe);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1;return 0},we.queryPoint=function(e,t){return e<this.mid?this.left&&(o=this.left.queryPoint(e,t))?o:Te(this.leftPoints,e,t):e>this.mid?this.right&&(o=this.right.queryPoint(e,t))?o:ze(this.rightPoints,e,t):Ie(this.leftPoints,t);var o},we.queryInterval=function(e,t,o){var n;return e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o))||t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o))?n:t<this.mid?Te(this.leftPoints,t,o):e>this.mid?ze(this.rightPoints,e,o):Ie(this.leftPoints,o)};var Ge=Le.prototype;Ge.insert=function(e){this.root?this.root.insert(e):this.root=new ye(e[0],null,null,[e],[e])},Ge.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ge.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ge.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Ge,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ge,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ae,Ee,He=function(){function e(){n(this,e),h(this,"_columnSizeMap",{}),h(this,"_intervalTree",new Le(null)),h(this,"_leftMap",{})}return i(e,[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t,r,i=(r=3,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var o=[],n=!0,r=!1,i=void 0;try{for(var l,s=e[Symbol.iterator]();!(n=(l=s.next()).done)&&(o.push(l.value),!t||o.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return o}}(t,r)||pe(t,r)||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.")}()),l=i[0],s=(i[1],i[2]);return o(s,n._leftMap[s],l)}))}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]),e}();function We(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function De(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?We(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):We(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var je=(Ee=Ae=function(e){function t(){var e,o;n(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return h(s(o=a(this,(e=c(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollTop:0}),h(s(o),"_debounceResetIsScrollingId",void 0),h(s(o),"_invalidateOnUpdateStartIndex",null),h(s(o),"_invalidateOnUpdateStopIndex",null),h(s(o),"_positionCache",new He),h(s(o),"_startIndex",null),h(s(o),"_startIndexMemoized",null),h(s(o),"_stopIndex",null),h(s(o),"_stopIndexMemoized",null),h(s(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),h(s(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),h(s(o),"_onScroll",(function(e){var t=o.props.height,n=e.currentTarget.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))})),o}return u(t,e),i(t,[{key:"clearCellPositions",value:function(){this._positionCache=new He,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new He,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&L(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,r=o.cellCount,i=o.cellMeasurerCache,l=o.cellRenderer,s=o.className,a=o.height,c=o.id,d=o.keyMapper,u=o.overscanByPixels,p=o.role,g=o.style,v=o.tabIndex,_=o.width,S=o.rowDirection,y=this.state,w=y.isScrolling,C=y.scrollTop,x=[],b=this._getEstimatedTotalHeight(),R=this._positionCache.shortestColumnSize,T=this._positionCache.count,z=0;if(this._positionCache.range(Math.max(0,C-u),a+2*u,(function(o,n,r){var s;void 0===e?(z=o,e=o):(z=Math.min(z,o),e=Math.max(e,o)),x.push(l({index:o,isScrolling:w,key:d(o),parent:t,style:(s={height:i.getHeight(o)},h(s,"ltr"===S?"left":"right",n),h(s,"position","absolute"),h(s,"top",r),h(s,"width",i.getWidth(o)),s)}))})),R<C+a+u&&T<r)for(var I=Math.min(r-T,Math.ceil((C+a+u-R)/i.defaultHeight*_/i.defaultWidth)),M=T;M<T+I;M++)e=M,x.push(l({index:M,isScrolling:w,key:d(M),parent:this,style:{width:i.getWidth(M)}}));return this._startIndex=z,this._stopIndex=e,f.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:(0,m.Z)("ReactVirtualized__Masonry",s),id:c,onScroll:this._onScroll,role:p,style:De({boxSizing:"border-box",direction:"ltr",height:n?"auto":a,overflowX:"hidden",overflowY:b<a?"hidden":"auto",position:"relative",width:_,WebkitOverflowScrolling:"touch",willChange:"transform"},g),tabIndex:v},f.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:b,maxWidth:"100%",maxHeight:b,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"}},x))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&L(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=G(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var l=r(i),s=l.left,a=l.top;this._positionCache.setPosition(i,s,a,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(f.PureComponent),h(Ae,"propTypes",null),Ee);function Fe(){}h(je,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Fe,onScroll:Fe,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),(0,p.polyfill)(je);var Ne=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),h(this,"_cellMeasurerCache",void 0),h(this,"_columnIndexOffset",void 0),h(this,"_rowIndexOffset",void 0),h(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),h(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var r=o.cellMeasurerCache,i=o.columnIndexOffset,l=void 0===i?0:i,s=o.rowIndexOffset,a=void 0===s?0:s;this._cellMeasurerCache=r,this._columnIndexOffset=l,this._rowIndexOffset=a}return i(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,o,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Ue(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Be(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ue(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ue(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Ve=function(e){function t(e,o){var r;n(this,t),h(s(r=a(this,c(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),h(s(r),"_deferredInvalidateColumnIndex",null),h(s(r),"_deferredInvalidateRowIndex",null),h(s(r),"_bottomLeftGridRef",(function(e){r._bottomLeftGrid=e})),h(s(r),"_bottomRightGridRef",(function(e){r._bottomRightGrid=e})),h(s(r),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=_(e,["rowIndex"]),n=r.props,i=n.cellRenderer,l=n.fixedRowCount;return t===n.rowCount-l?f.createElement("div",{key:o.key,style:Be({},o.style,{height:20})}):i(Be({},o,{parent:s(r),rowIndex:t+l}))})),h(s(r),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,n=_(e,["columnIndex","rowIndex"]),i=r.props,l=i.cellRenderer,a=i.fixedColumnCount,c=i.fixedRowCount;return l(Be({},n,{columnIndex:t+a,parent:s(r),rowIndex:o+c}))})),h(s(r),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=_(e,["columnIndex"]),n=r.props,i=n.cellRenderer,l=n.columnCount,a=n.fixedColumnCount;return t===l-a?f.createElement("div",{key:o.key,style:Be({},o.style,{width:20})}):i(Be({},o,{columnIndex:t+a,parent:s(r)}))})),h(s(r),"_columnWidthRightGrid",(function(e){var t=e.index,o=r.props,n=o.columnCount,i=o.fixedColumnCount,l=o.columnWidth,s=r.state,a=s.scrollbarSize;return s.showHorizontalScrollbar&&t===n-i?a:"function"==typeof l?l({index:t+i}):l})),h(s(r),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;r.setState({scrollLeft:t,scrollTop:o});var n=r.props.onScroll;n&&n(e)})),h(s(r),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,n=e.vertical,i=r.state,l=i.showHorizontalScrollbar,s=i.showVerticalScrollbar;if(t!==l||n!==s){r.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:n});var a=r.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:n})}})),h(s(r),"_onScrollLeft",(function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})})),h(s(r),"_onScrollTop",(function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})})),h(s(r),"_rowHeightBottomGrid",(function(e){var t=e.index,o=r.props,n=o.fixedRowCount,i=o.rowCount,l=o.rowHeight,s=r.state,a=s.scrollbarSize;return s.showVerticalScrollbar&&t===i-n?a:"function"==typeof l?l({index:t+n}):l})),h(s(r),"_topLeftGridRef",(function(e){r._topLeftGrid=e})),h(s(r),"_topRightGridRef",(function(e){r._topRightGrid=e}));var i=e.deferredMeasurementCache,l=e.fixedColumnCount,d=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),i&&(r._deferredMeasurementCacheBottomLeftGrid=d>0?new Ne({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:d}):i,r._deferredMeasurementCacheBottomRightGrid=l>0||d>0?new Ne({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:d}):i,r._deferredMeasurementCacheTopRightGrid=l>0?new Ne({cellMeasurerCache:i,columnIndexOffset:l,rowIndexOffset:0}):i),r}return u(t,e),i(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,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{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,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,l=i.fixedColumnCount,s=i.fixedRowCount,a=Math.max(0,o-l),c=Math.max(0,r-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),r=(e.scrollTop,e.scrollToRow),i=_(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,s=l.scrollLeft,a=l.scrollTop;return f.createElement("div",{style:this._containerOuterStyle},f.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Be({},i,{onScroll:t,scrollLeft:s}))),f.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Be({},i,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid(Be({},i,{onScroll:t,onSectionRendered:o,scrollLeft:s,scrollToColumn:n,scrollToRow:r,scrollTop:a}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,n=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,l=t.fixedColumnCount,s=t.fixedRowCount,a=t.rowHeight,c=t.style,d=t.styleBottomLeftGrid,u=t.styleBottomRightGrid,h=t.styleTopLeftGrid,f=t.styleTopRightGrid,p=t.width,g=e||i!==this._lastRenderedHeight||p!==this._lastRenderedWidth,m=e||o!==this._lastRenderedColumnWidth||l!==this._lastRenderedFixedColumnCount,v=e||s!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||g||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Be({height:i,overflow:"visible",width:p},c)),(e||g||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:p},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:p}),(e||d!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Be({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},d)),(e||m||u!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Be({left:this._getLeftGridWidth(this.props),position:"absolute"},u)),(e||h!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Be({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},h)),(e||m||f!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Be({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},f)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=l,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=i,this._lastRenderedRowHeight=a,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=d,this._lastRenderedStyleBottomRightGrid=u,this._lastRenderedStyleTopLeftGrid=h,this._lastRenderedStyleTopRightGrid=f,this._lastRenderedWidth=p}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!o)return null;var s=l?1:0,a=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=i?c+d:c,h=f.createElement(D,g({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:a,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,r-n)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return i?f.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Be({},this._bottomLeftGridStyle,{height:a,width:c,overflowY:"hidden"})},h):h}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,n=e.fixedRowCount,r=e.rowCount,i=e.scrollToColumn,l=e.scrollToRow;return f.createElement(D,g({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,r-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-o,scrollToRow:l-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?f.createElement(D,g({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,n=e.fixedColumnCount,r=e.fixedRowCount,i=e.scrollLeft,l=e.hideTopRightGridScrollbar,s=this.state,a=s.showHorizontalScrollbar,c=s.scrollbarSize;if(!r)return null;var d=a?1:0,u=this._getTopGridHeight(e),h=this._getRightGridWidth(e),p=a?c:0,m=u,v=this._topRightGridStyle;l&&(m=u+p,v=Be({},this._topRightGridStyle,{left:0}));var _=f.createElement(D,g({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:r,scrollLeft:i,style:v,tabIndex:null,width:h}));return l?f.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Be({},this._topRightGridStyle,{height:u,width:h,overflowX:"hidden"})},_):_}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(f.PureComponent);function $e(e){var t=e.className,o=e.columns,n=e.style;return f.createElement("div",{className:t,role:"row",style:n},o)}h(Ve,"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}),Ve.propTypes={},(0,p.polyfill)(Ve),(function(e){function t(e,o){var r;return n(this,t),(r=a(this,c(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(s(r)),r}return u(t,e),i(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,l=t.scrollTop,s=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:l,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:l})}}]),t}(f.PureComponent)).propTypes={},$e.propTypes=null;const qe="ASC",Ze="DESC";function Xe(e){var t=e.sortDirection,o=(0,m.Z)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===qe,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Ze});return f.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===qe?f.createElement("path",{d:"M7 14l5-5 5 5z"}):f.createElement("path",{d:"M7 10l5 5 5-5z"}),f.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Ye(e){var t=e.dataKey,o=e.label,n=e.sortBy,r=e.sortDirection,i=n===t,l=[f.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return i&&l.push(f.createElement(Xe,{key:"SortIndicator",sortDirection:r})),l}function Ke(e){var t=e.className,o=e.columns,n=e.index,r=e.key,i=e.onRowClick,l=e.onRowDoubleClick,s=e.onRowMouseOut,a=e.onRowMouseOver,c=e.onRowRightClick,d=e.rowData,u=e.style,h={"aria-rowindex":n+1};return(i||l||s||a||c)&&(h["aria-label"]="row",h.tabIndex=0,i&&(h.onClick=function(e){return i({event:e,index:n,rowData:d})}),l&&(h.onDoubleClick=function(e){return l({event:e,index:n,rowData:d})}),s&&(h.onMouseOut=function(e){return s({event:e,index:n,rowData:d})}),a&&(h.onMouseOver=function(e){return a({event:e,index:n,rowData:d})}),c&&(h.onContextMenu=function(e){return c({event:e,index:n,rowData:d})})),f.createElement("div",g({},h,{className:t,key:r,role:"row",style:u}),o)}Xe.propTypes={},Ye.propTypes=null,Ke.propTypes=null;var Je=function(e){function t(){return n(this,t),a(this,c(t).apply(this,arguments))}return u(t,e),t}(f.Component);function Qe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function et(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Qe(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Qe(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}h(Je,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:qe,flexGrow:0,flexShrink:1,headerRenderer:Ye,style:{}}),Je.propTypes={};var tt=function(e){function t(e){var o;return n(this,t),(o=a(this,c(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(s(o)),o._createRow=o._createRow.bind(s(o)),o._onScroll=o._onScroll.bind(s(o)),o._onSectionRendered=o._onSectionRendered.bind(s(o)),o._setRef=o._setRef.bind(s(o)),o}return u(t,e),i(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{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=(0,Q.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,o=t.children,n=t.className,r=t.disableHeader,i=t.gridClassName,l=t.gridStyle,s=t.headerHeight,a=t.headerRowRenderer,c=t.height,d=t.id,u=t.noRowsRenderer,h=t.rowClassName,p=t.rowStyle,v=t.scrollToIndex,_=t.style,S=t.width,y=this.state.scrollbarWidth,w=r?c:c-s,C="function"==typeof h?h({index:-1}):h,x="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],f.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=et({overflow:"hidden"},n)})),f.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":f.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:(0,m.Z)("ReactVirtualized__Table",n),id:d,role:"grid",style:_},!r&&a({className:(0,m.Z)("ReactVirtualized__Table__headerRow",C),columns:this._getHeaderColumns(),style:et({height:s,overflow:"hidden",paddingRight:y,width:S},x)}),f.createElement(D,g({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:(0,m.Z)("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:S,columnCount:1,height:w,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:v,style:et({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,r=e.parent,i=e.rowData,l=e.rowIndex,s=this.props.onColumnClick,a=t.props,c=a.cellDataGetter,d=a.cellRenderer,u=a.className,h=a.columnData,p=a.dataKey,g=a.id,v=d({cellData:c({columnData:h,dataKey:p,rowData:i}),columnData:h,columnIndex:o,dataKey:p,isScrolling:n,parent:r,rowData:i,rowIndex:l}),_=this._cachedColumnStyles[o],S="string"==typeof v?v:null;return f.createElement("div",{"aria-colindex":o+1,"aria-describedby":g,className:(0,m.Z)("ReactVirtualized__Table__rowColumn",u),key:"Row"+l+"-Col"+o,onClick:function(e){s&&s({columnData:h,dataKey:p,event:e})},role:"gridcell",style:_,title:S},v)}},{key:"_createHeader",value:function(e){var t,o,n,r,i,l=e.column,s=e.index,a=this.props,c=a.headerClassName,d=a.headerStyle,u=a.onHeaderClick,h=a.sort,p=a.sortBy,g=a.sortDirection,v=l.props,_=v.columnData,S=v.dataKey,y=v.defaultSortDirection,w=v.disableSort,C=v.headerRenderer,x=v.id,b=v.label,R=!w&&h,T=(0,m.Z)("ReactVirtualized__Table__headerColumn",c,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),z=this._getFlexStyleForColumn(l,et({},d,{},l.props.headerStyle)),I=C({columnData:_,dataKey:S,disableSort:w,label:b,sortBy:p,sortDirection:g});if(R||u){var M=p!==S?y:g===Ze?qe:Ze,O=function(e){R&&h({defaultSortDirection:y,event:e,sortBy:S,sortDirection:M}),u&&u({columnData:_,dataKey:S,event:e})};i=l.props["aria-label"]||b||S,r="none",n=0,t=O,o=function(e){"Enter"!==e.key&&" "!==e.key||O(e)}}return p===S&&(r=g===qe?"ascending":"descending"),f.createElement("div",{"aria-label":i,"aria-sort":r,className:T,id:x,key:"Header-Col"+s,onClick:t,onKeyDown:o,role:"columnheader",style:z,tabIndex:n},I)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,r=e.key,i=e.parent,l=e.style,s=this.props,a=s.children,c=s.onRowClick,d=s.onRowDoubleClick,u=s.onRowRightClick,h=s.onRowMouseOver,p=s.onRowMouseOut,g=s.rowClassName,v=s.rowGetter,_=s.rowRenderer,S=s.rowStyle,y=this.state.scrollbarWidth,w="function"==typeof g?g({index:o}):g,C="function"==typeof S?S({index:o}):S,x=v({index:o}),b=f.Children.toArray(a).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:i,rowData:x,rowIndex:o,scrollbarWidth:y})})),R=(0,m.Z)("ReactVirtualized__Table__row",w),T=et({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:y},C);return _({className:R,columns:b,index:o,isScrolling:n,key:r,onRowClick:c,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:h,onRowMouseOut:p,rowData:x,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=et({},t,{flex:o,msFlex:o,WebkitFlex:o});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,o=t.children;return(t.disableHeader?[]:f.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{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,o=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(f.PureComponent);h(tt,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:j,overscanRowCount:10,rowRenderer:Ke,headerRowRenderer:$e,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),tt.propTypes={};var ot=[],nt=null,rt=null;function it(){rt&&(rt=null,document.body&&null!=nt&&(document.body.style.pointerEvents=nt),nt=null)}function lt(){it(),ot.forEach((function(e){return e.__resetIsScrolling()}))}function st(e){e.currentTarget===window&&null==nt&&document.body&&(nt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){rt&&L(rt);var e=0;ot.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),rt=G(lt,e)}(),ot.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function at(e,t){ot.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",st),ot.push(e)}function ct(e,t){(ot=ot.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",st),rt&&(L(rt),it()))}var dt,ut,ht=function(e){return e===window},ft=function(e){return e.getBoundingClientRect()};function pt(e,t){if(e){if(ht(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return ft(e)}return{height:t.serverHeight,width:t.serverWidth}}function gt(e,t){if(ht(t)&&document.documentElement){var o=document.documentElement,n=ft(e),r=ft(o);return{top:n.top-r.top,left:n.left-r.left}}var i=mt(t),l=ft(e),s=ft(t);return{top:l.top+i.top-s.top,left:l.left+i.left-s.left}}function mt(e){return ht(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 vt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _t(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?vt(o,!0).forEach((function(t){h(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):vt(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var St=function(){return"undefined"!=typeof window?window:void 0},yt=(ut=dt=function(e){function t(){var e,o;n(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return h(s(o=a(this,(e=c(t)).call.apply(e,[this].concat(i)))),"_window",St()),h(s(o),"_isMounted",!1),h(s(o),"_positionFromTop",0),h(s(o),"_positionFromLeft",0),h(s(o),"_detectElementResize",void 0),h(s(o),"_child",void 0),h(s(o),"state",_t({},pt(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),h(s(o),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),o._child=e,o.updatePosition()})),h(s(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}})),h(s(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),h(s(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),h(s(o),"_onResize",(function(){o.updatePosition()})),h(s(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=mt(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),h(s(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return u(t,e),i(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,n=o.height,r=o.width,i=this._child||Q.findDOMNode(this);if(i instanceof Element&&e){var l=gt(i,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var s=pt(e,this.props);n===s.height&&r===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=q(),this.updatePosition(e),e&&(at(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),ct(this,n),at(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(ct(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,n=t.scrollTop,r=t.scrollLeft,i=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:r,scrollTop:n,width:l})}}]),t}(f.PureComponent),h(dt,"propTypes",null),ut);h(yt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:St(),serverHeight:0,serverWidth:0})},8978:(e,t,o)=>{"use strict";t.v7=y,t.Kx=w,t._t=b,t.ZP=function(e){var t=b(e);return function(e){return n.default.createElement(c.DragDropContextConsumer,null,(function(o){var r=o.dragDropManager;return void 0===r?null:n.default.createElement(t,p({},e,{dragDropManager:r}))}))}};var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(o(24328)),r=h(o(52386)),i=o(75047),l=h(o(5095)),s=h(o(12198)),a=h(o(20506)),c=o(13896),d=h(o(89819)),u=o(67750);function h(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}function g(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e){return function(t,o){var n=t.x,r=t.w,i=t.y,l=t.h,s=Math.min(r/2,e);if(o.x>=n&&o.x<=n+r&&o.y>=i&&o.y<=i+l){if(o.x<n+s)return(o.x-n-s)/s;if(o.x>n+r-s)return-(n+r-o.x-s)/s}return 0}}function w(e){return function(t,o){var n=t.y,r=t.h,i=t.x,l=t.w,s=Math.min(r/2,e);if(o.y>=n&&o.y<=n+r&&o.x>=i&&o.x<=i+l){if(o.y<n+s)return(o.y-n-s)/s;if(o.y>n+r-s)return-(n+r-o.y-s)/s}return 0}}var C=y(150),x=w(150);function b(e){var t=function(t){function o(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),r=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?_(e):t}(this,m(o).call(this,e,t)),S(_(_(r)),"updateScrolling",(0,l.default)((function(e){var t=r.container.getBoundingClientRect(),o={x:t.left,y:t.top,w:t.width,h:t.height},n=(0,u.getCoords)(e),i=r.props,l=i.horizontalStrength,s=i.verticalStrength;r.scaleX=l(o,n),r.scaleY=s(o,n),r.frame||!r.scaleX&&!r.scaleY||r.startScrolling()}),100,{trailing:!1})),S(_(_(r)),"handleEvent",(function(e){r.dragging&&!r.attached&&(r.attach(),r.updateScrolling(e))})),r.wrappedInstance=n.default.createRef(),r.scaleX=0,r.scaleY=0,r.frame=null,r.attached=!1,r.dragging=!1,r}var r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(o,t),r=o,(a=[{key:"componentDidMount",value:function(){var e=this;this.container=(0,i.findDOMNode)(this.wrappedInstance.current),this.container&&"function"==typeof this.container.addEventListener&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var t=this.props.dragDropManager;this.clearMonitorSubscription=t.getMonitor().subscribeToStateChange((function(){return e.handleMonitorChange()}))}},{key:"componentWillUnmount",value:function(){this.container&&"function"==typeof this.container.removeEventListener&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var e=this.props.dragDropManager.getMonitor().isDragging();!this.dragging&&e?this.dragging=!0:this.dragging&&!e&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var e=this,t=0;!function o(){var n=e.scaleX,r=e.scaleY,i=e.container,l=e.props,a=l.strengthMultiplier,c=l.onScrollChange;if(0!==a&&n+r!==0){if((t+=1)%2){var d=i.scrollLeft,h=i.scrollTop,f=i.scrollWidth,p=i.scrollHeight,g=i.clientWidth,m=i.clientHeight;c(n?i.scrollLeft=(0,u.intBetween)(0,f-g,d+n*a):d,r?i.scrollTop=(0,u.intBetween)(0,p-m,h+r*a):h)}e.frame=(0,s.default)(o)}else e.stopScrolling()}()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(s.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var t=this.props,o=(t.strengthMultiplier,t.verticalStrength,t.horizontalStrength,t.onScrollChange,function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(t,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]));return n.default.createElement(e,p({ref:this.wrappedInstance},o))}}])&&g(r.prototype,a),o}(n.Component);return S(t,"displayName","Scrolling(".concat((0,a.default)(e),")")),S(t,"propTypes",{dragDropManager:r.default.object.isRequired,onScrollChange:r.default.func,verticalStrength:r.default.func,horizontalStrength:r.default.func,strengthMultiplier:r.default.number}),S(t,"defaultProps",{onScrollChange:u.noop,verticalStrength:x,horizontalStrength:C,strengthMultiplier:30}),(0,d.default)(t,e)}},67750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=function(){},t.intBetween=function(e,t,o){return Math.floor(Math.min(t,Math.max(e,o)))},t.getCoords=function(e){return"touchmove"===e.type?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY}}},89819:(e,t,o)=>{"use strict";var n=o(77328),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return n.isMemo(e)?l:s[e.$$typeof]||r}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=l;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,o,n){if("string"!=typeof o){if(p){var r=f(o);r&&r!==p&&e(t,r,n)}var l=d(o);u&&(l=l.concat(u(o)));for(var s=a(t),g=a(o),m=0;m<l.length;++m){var v=l[m];if(!(i[v]||n&&n[v]||g&&g[v]||s&&s[v])){var _=h(o,v);try{c(t,v,_)}catch(e){}}}}return t}},5095:(e,t,o)=>{var n="Expected a function",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,d="object"==typeof self&&self&&self.Object===Object&&self,u=c||d||Function("return this")(),h=Object.prototype.toString,f=Math.max,p=Math.min,g=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var o=l.test(e);return o||s.test(e)?a(e.slice(2),o?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,o){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return m(o)&&(r="leading"in o?!!o.leading:r,i="trailing"in o?!!o.trailing:i),function(e,t,o){var r,i,l,s,a,c,d=0,u=!1,h=!1,_=!0;if("function"!=typeof e)throw new TypeError(n);function S(t){var o=r,n=i;return r=i=void 0,d=t,s=e.apply(n,o)}function y(e){return d=e,a=setTimeout(C,t),u?S(e):s}function w(e){var o=e-c;return void 0===c||o>=t||o<0||h&&e-d>=l}function C(){var e=g();if(w(e))return x(e);a=setTimeout(C,function(e){var o=t-(e-c);return h?p(o,l-(e-d)):o}(e))}function x(e){return a=void 0,_&&r?S(e):(r=i=void 0,s)}function b(){var e=g(),o=w(e);if(r=arguments,i=this,c=e,o){if(void 0===a)return y(c);if(h)return a=setTimeout(C,t),S(c)}return void 0===a&&(a=setTimeout(C,t)),s}return t=v(t)||0,m(o)&&(u=!!o.leading,l=(h="maxWait"in o)?f(v(o.maxWait)||0,t):l,_="trailing"in o?!!o.trailing:_),b.cancel=function(){void 0!==a&&clearTimeout(a),d=0,r=c=i=a=void 0},b.flush=function(){return void 0===a?s:x(g())},b}(e,t,{leading:r,maxWait:t,trailing:i})}},94352:function(e,t,o){var n=o(34406);(function(){var t,o,r,i,l,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=n&&n.hrtime?(e.exports=function(){return(t()-l)/1e6},o=n.hrtime,i=(t=function(){var e;return 1e9*(e=o())[0]+e[1]})(),s=1e9*n.uptime(),l=i-s):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},61727:(e,t,o)=>{"use strict";var n=o(15528);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,l){if(l!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var o={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:r};return o.PropTypes=o,o}},52386:(e,t,o)=>{e.exports=o(61727)()},15528:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},12198:(e,t,o)=>{for(var n=o(94352),r="undefined"==typeof window?o.g:window,i=["moz","webkit"],l="AnimationFrame",s=r["request"+l],a=r["cancel"+l]||r["cancelRequest"+l],c=0;!s&&c<i.length;c++)s=r[i[c]+"Request"+l],a=r[i[c]+"Cancel"+l]||r[i[c]+"CancelRequest"+l];if(!s||!a){var d=0,u=0,h=[];s=function(e){if(0===h.length){var t=n(),o=Math.max(0,16.666666666666668-(t-d));d=o+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(d)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(o))}return h.push({handle:++u,callback:e,cancelled:!1}),u},a=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return s.call(r,e)},e.exports.cancel=function(){a.apply(r,arguments)},e.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=s,e.cancelAnimationFrame=a}},20506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},35938:(e,t)=>{"use strict";var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,u=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,p=o?Symbol.for("react.suspense_list"):60120,g=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,_=o?Symbol.for("react.fundamental"):60117,S=o?Symbol.for("react.responder"):60118,y=o?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case u:case i:case s:case l:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case a:return e;default:return t}}case r:return t}}}function C(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=a,t.Element=n,t.ForwardRef=h,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=r,t.Profiler=s,t.StrictMode=l,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===l},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===s||e===l||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===a||e.$$typeof===c||e.$$typeof===h||e.$$typeof===_||e.$$typeof===S||e.$$typeof===y||e.$$typeof===v)},t.typeOf=w},77328:(e,t,o)=>{"use strict";e.exports=o(35938)}}]);
package/5818.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[5818],{93873:(e,t,n)=>{n.d(t,{a:()=>C});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(94079),s=n(83348),c=n(8818),u=n(67766),d=n(42767),p=n(99493);const h=(0,n(79692).Z)({container:{display:"flex",alignItems:"center"},link:{whiteSpace:"nowrap",marginRight:"9px"}}),f=(0,s.Z)(o.Link),m=e=>{let{total:t=0,onPrev:n,onNext:r,onSearchResultsClick:l,isPrevDisabled:o,isNextDisabled:s}=e;const m=h();return i().createElement("div",{className:m.container},i().createElement(f,{className:m.link,component:"button",variant:"caption",onClick:l,underline:"none",tooltipTitle:a().text("Go to search results")},(0,p.k7L)(t,1e6)," ",1===t?a().text("Search result"):a().text("Search results")),i().createElement(c.k,{size:"L",icon:u.Z,tooltipTitle:a().text("Go to previous profile"),onClick:n,disabled:o,showForDisabled:!0}),i().createElement(c.k,{size:"L",icon:d.Z,tooltipTitle:a().text("Go to next profile"),onClick:r,disabled:s,showForDisabled:!0}))};var E=n(52730),y=n(87638),v=n(17440),g=n(39450),b=n(67218);function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){T(e,t,n[t])}))}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{constructor(e){var t=this;let{data:{query:n,sortField:r,sortOrder:i},tenant:l,searchTenant:a,apiPath:o,dtssPath:s,globalSearchRequestOptions:c}=e;this.query=void 0,this.sortField=void 0,this.sortOrder=void 0,this.tenant=void 0,this.searchTenant=void 0,this.apiPath=void 0,this.dtssPath=void 0,this.globalSearchRequestOptions=void 0,this.isDT=()=>this.tenant!==this.searchTenant,this.getQueryFilter=()=>({rawFilter:this.query}),this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[t.getQueryFilter(),...e],i=x({},t.globalSearchRequestOptions,{sort:t.sortField,order:t.sortOrder,select:"uri,label,type",scoreEnabled:!1},n);return t.isDT()?(0,p.uqV)({filters:r,options:i,customerTenant:t.tenant,dataTenant:t.searchTenant,dtssPath:t.dtssPath}):(0,p.ZOr)(r,i)},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"uri",values:[e]}],{offset:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{offset:t,max:e}),this.requestTotal=()=>{const e=[this.getQueryFilter()],t=this.globalSearchRequestOptions;return(this.isDT()?(0,p.J$m)({filters:e,options:t,customerTenant:this.tenant,dataTenant:this.searchTenant,dtssPath:this.dtssPath}):(0,p.j_Q)(e,t)).then((e=>e.total))},this.query=n,this.sortField=r,this.sortOrder=i,this.tenant=l,this.searchTenant=a,this.apiPath=o,this.dtssPath=s,this.globalSearchRequestOptions=c}}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){N(e,t,n[t])}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w{constructor(e){var t=this;let{data:n,tenant:r,apiPath:i}=e;this.searchBody=void 0,this.tenant=void 0,this.apiPath=void 0,this.getEntities=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[{rawFilter:t.searchBody.filter},...e];return(0,p.P2h)({apiPath:t.apiPath,tenant:t.tenant,searchBody:O({},t.searchBody,{filter:e.length?(0,p.Uqd)()(r):t.searchBody.filter}),options:n})},this.checkEntity=e=>this.getEntities([{filter:"equals",fieldName:"id",values:[(0,p.BTI)({uri:e})]}],{from:0,max:1}).then((t=>t&&t.length>0&&t[0].uri===e)),this.requestEntities=(e,t)=>this.getEntities([],{from:t,max:e}),this.requestTotal=()=>(0,p.dED)({apiPath:this.apiPath,tenant:this.tenant,searchBody:this.searchBody}).then((e=>e.count)),this.searchBody=n,this.tenant=r,this.apiPath=i}}const S=(e,t)=>(0,v.pipe)((0,v.map)((0,v.prop)("uri")),(0,v.reject)((e=>t.includes(e))))(e),C=()=>{const{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:o}=(()=>{const e=(0,b._)(),t=(0,b._)(),n=(0,b._)(),{uri:i,index:l,total:a,tenant:o,cache:s}=(0,E.useSelector)(y.ZP.selectors.getSearchNavigationData)||{},{type:c,data:u}=(0,E.useSelector)(y.ZP.selectors.getSearchProviderData)||{},d=(0,E.useSelector)(y.ZP.selectors.getTenant),h=(0,E.useSelector)(y.ZP.selectors.getApiPath),f=(0,E.useSelector)(y.ZP.selectors.getDtssPath),m=(0,E.useSelector)((e=>y.ZP.selectors.getGlobalSearchRequestOptions(e,["ovOnly"]))),v=(0,r.useContext)(g.m),x=(0,E.useDispatch)(),[T,O]=(0,r.useState)(!1),N=(0,r.useMemo)((()=>((e,t)=>{switch(e){case"search":return new I(t);case"graphsearch":return new w(t)}})(c,{data:u,tenant:d,searchTenant:o,apiPath:h,dtssPath:f,globalSearchRequestOptions:m})),[c,u,d,o,h,f,m]),C=(0,r.useCallback)((e=>{x(y.yC.actions.updateSearchNavigationDataFields(e))}),[x]),P=(0,r.useCallback)((e=>{const t=d!==o?(0,p.wwR)({uri:e,dataTenant:o}):e;x(y.ui.actions.openEntity({uri:t,viewId:v,source:"navigation"}))}),[x,v,d,o]),D=(0,r.useCallback)((()=>{x(y.ui.actions.openPerspective({perspectiveId:c,viewId:v}))}),[x,c,v]);(0,r.useEffect)((()=>{l>=a?C({index:a-1}):l<0&&C({index:0})}),[a,l,C]);const R=(0,r.useCallback)(((e,r,i)=>{O(!0),t(N.requestTotal()).then((e=>C({total:e})));const l=i+1;return n(N.requestEntities(15,l)).then((t=>{if(t){if(t.length){const n=S(t,e);if(n.length>0)return C({cache:e.concat(n),uri:n[0],index:l+t.length-n.length}),void P(n[0]);if(i+t.length<r-1)return R(e,r-t.length,i+t.length)}C({index:l})}})).finally((()=>{O(!1)}))}),[N,C,P]),k=(0,r.useCallback)(((e,r)=>{O(!0),t(N.requestTotal()).then((e=>C({total:e})));const i=r-1,l=Math.max(0,r-15),a=15+Math.min(0,r-15);return n(N.requestEntities(a,l)).then((t=>{if(t){if(t.length){const n=S(t,e);if(n.length>0)return C({cache:n.concat(e),uri:n[n.length-1],index:i-(t.length-n.length)}),void P(n[n.length-1]);if(r-t.length>0)return k(e,r-t.length)}C({index:0})}})).finally((()=>{O(!1)}))}),[N,C,P]),M=(0,r.useCallback)(((t,n,r,i)=>{if(n<t.length){const l=t[n];return O(!0),e(N.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),M(e,n,r-1,i)}C({index:i+1,uri:l,cache:t,total:r}),P(l)})).finally((()=>{O(!1)}))}if(!(i>=r-1))return R(t,r,i);C({cache:t,total:r,index:r-1})}),[N,C,P,R]),_=(0,r.useCallback)(((t,n,r,i)=>{if(n>-1){const l=t[n];return O(!0),e(N.checkEntity(l)).then((e=>{if(!e){const e=[...t];return e.splice(n,1),_(e,n-1,r-1,i-1)}C({index:i-1,uri:l,cache:t,total:r}),P(l)})).finally((()=>{O(!1)}))}if(!(i<=0))return k(t,i);C({index:0,cache:t,total:r})}),[N,C,P,k]),L=(0,r.useCallback)((()=>{if(s&&i){const e=s.indexOf(i)-1;_(s,e,a,l)}}),[_,s,i,a,l]),A=(0,r.useCallback)((()=>{if(s&&i){const e=s.indexOf(i)+1;M(s,e,a,l)}}),[M,s,i,a,l]);return{total:a,onPrev:L,onNext:A,onSearchResultsClick:D,isPrevDisabled:T||l<=0,isNextDisabled:T||l>=a-1}})();return(()=>{const{cache:e}=(0,E.useSelector)(y.ZP.selectors.getSearchNavigationData)||{},t=(0,E.useSelector)(y.ZP.selectors.getMode),n=(0,E.useSelector)(y.ZP.selectors.getEntity);return(0,p.uzs)(t)&&(null==e?void 0:e.includes(null==n?void 0:n.uri))})()?i().createElement(m,{total:e,onPrev:t,onNext:n,onSearchResultsClick:l,isPrevDisabled:a,isNextDisabled:o}):null}},10159:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24328),i=n.n(r),l=n(94079);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const o=e=>i().createElement("svg",a({width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i().createElement("circle",{cx:128,cy:128,r:128,fill:"#0072CE",fillOpacity:.1}),i().createElement("mask",{id:"AttributesList_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:256,height:256},i().createElement("circle",{cx:128,cy:128,r:128,fill:"#fff"})),i().createElement("g",{mask:"url(#AttributesList_svg__a)"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-16 9h256v247H-16V9z",fill:"url(#AttributesList_svg__b)"}),i().createElement("path",{opacity:.05,fillRule:"evenodd",clipRule:"evenodd",d:"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z",fill:"url(#AttributesList_svg__c)"}),i().createElement("path",{opacity:.06,fillRule:"evenodd",clipRule:"evenodd",d:"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z",fill:"#000"}),i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z",fill:"#fff"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:79,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:120,cy:106,r:6,fill:"#B6C7DB"}),i().createElement("circle",{cx:120,cy:136,r:6,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:169,r:9,fill:"#B6C7DB"}),i().createElement("circle",{cx:67,cy:199,r:9,fill:"#B6C7DB"}),i().createElement("path",{opacity:.8,fillRule:"evenodd",clipRule:"evenodd",d:"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z",fill:"#B6C7DB"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z",fill:"#979797"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M92.514 108v-8h-2v40.365h11.178v-2h-9.178V110h9.178v-2h-9.178z",fill:"#2B98F0"}),i().createElement("path",{opacity:.54,fillRule:"evenodd",clipRule:"evenodd",d:"M95.071 77l-3.535 3.535L88 77h7.071z",fill:"#000"}),i().createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z",fill:"#fff"}),i().createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zm90 0a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z",fill:"#979797"})),i().createElement("defs",null,i().createElement("linearGradient",{id:"AttributesList_svg__b",x1:-16,y1:9,x2:-16,y2:256,gradientUnits:"userSpaceOnUse"},i().createElement("stop",{stopColor:"#FAFAFA",stopOpacity:.01}),i().createElement("stop",{offset:1,stopColor:"#F4F4F4"})),i().createElement("linearGradient",{id:"AttributesList_svg__c",x1:266.117,y1:181.111,x2:154.882,y2:77.681,gradientUnits:"userSpaceOnUse"},i().createElement("stop",{stopOpacity:.01}),i().createElement("stop",{offset:1})))),s=(0,n(79692).Z)((e=>({root:{display:"flex",flex:"1 1 auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"auto",height:"100%",minHeight:"350px",boxSizing:"border-box",padding:"40px"},logo:{width:"190px",height:"190px"},textBox:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:400,marginTop:"24px"},text:{color:e.palette.text.primary,fontSize:"20px",fontWeight:500,lineHeight:"23px",textAlign:"center"},secondaryText:{color:e.palette.text.primary,fontSize:"14px",fontWeight:"normal",lineHeight:"16px",letterSpacing:"0.24px",textAlign:"center",paddingTop:"8px"}}))),c=e=>{let{IconRenderer:t=o,text:n,secondaryText:r}=e;const a=s();return i().createElement("div",{className:a.root},i().createElement(t,{className:a.logo}),i().createElement("div",{className:a.textBox},i().createElement(l.Typography,{className:a.text},n),r&&i().createElement(l.Typography,{className:a.secondaryText},r)))}},91515:(e,t,n)=>{n.d(t,{Z:()=>Q});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(94079),s=n(17440),c=n(51229),u=n(36444),d=n(22385),p=n(48465),h=n(85451),f=n(27815),m=n(71153),E=n.n(m),y=n(31517),v=n(67885);const g=[v.K.WITHIN,v.K.AGO,v.K.BETWEEN],b=e=>({[v.K.WITHIN]:a().text("Within the last"),[v.K.AGO]:a().text("More than"),[v.K.BETWEEN]:a().text("Date range")}[e]||"");var x=n(39621),T=n(20562),I=n(51843),O=n(79692);const N=(0,O.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},intervalContainer:{display:"flex",justifyContent:"space-between"},typeInput:{width:160,marginRight:10}}),w=[null,null],S=[null,"hours"],C=e=>{let{value:t,onChange:n,className:l}=e;const s=N(),c=e=>e===v.K.WITHIN||e===v.K.AGO,u=e=>e===v.K.BETWEEN,d=u(null==t?void 0:t.type)?t.period:w,p=c(null==t?void 0:t.type)?t.period:S,[h,f]=(0,r.useState)(d),[m,O]=(0,r.useState)(p),C=(null==t?void 0:t.type)||v.K.WITHIN,P=e=>c(e)?m:u(e)?h:void 0,D=e=>{n({type:C,period:e})};return(0,T.D)((()=>{t?c(t.type)?O(t.period):u(t.type)&&f(t.period):(f(w),O(S))}),[t]),i().createElement("div",{className:E()(s.root,l)},i().createElement(o.Typography,{className:s.title,variant:"subtitle1"},a().text("Date")),i().createElement("div",{className:s.intervalContainer},i().createElement(y.Z,{label:"",className:s.typeInput,value:{value:C,label:b(C)},options:g.map((e=>({value:e,label:b(e)}))),onChange:e=>{let{value:r}=e;(null==t?void 0:t.type)!==r&&n({period:P(r),type:r})}}),c(C)?i().createElement(x.Z,{interval:m,onChange:D}):i().createElement(I.Z,{values:h,onChange:D})))};var P=n(92575),D=n(96808),R=n(65942);const k=[R.M.UPDATE,R.M.MERGE,R.M.UNMERGE];function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const L={input:e=>M({},e,{fontSize:"14px"}),menuPortal:e=>M({},e,{zIndex:1300})},A=(0,O.Z)({root:{flex:1},title:{paddingBottom:"10px",paddingLeft:"5px",fontSize:"14px"},dropDownInput:{width:"100%",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.03)",borderTop:"4px"},valueContainer:{overflowY:"auto",height:44},option:{fontSize:"14px",height:"32px"}}),j=e=>{let{selectedHistoryActivityTypes:t,onChange:n,className:r}=e;const l=A(),c=e=>{return{value:e,label:(t=e,{[R.M.UPDATE]:a().text("Update"),[R.M.MERGE]:a().text("Merge"),[R.M.UNMERGE]:a().text("Unmerge")}[t]||"")};var t},u=e=>e.map(c),d=u(k);return i().createElement("div",{className:E()(l.root,r)},i().createElement(o.Typography,{className:l.title,variant:"subtitle1"},a().text("Activity")),i().createElement(P.Z,{value:u(t),onChange:(0,s.pipe)((0,s.defaultTo)([]),(0,s.pluck)("value"),n),options:d,TextFieldProps:{classes:{root:l.dropDownInput}},components:{DropdownIndicator:D.Z},styles:L,classes:l,menuPlacement:"bottom",menuPortalTarget:document.body}))},F=(0,O.Z)({popup:{width:500,height:500,overflowY:"hidden",display:"flex",flexDirection:"column"},filterContainer:{padding:20,height:410,display:"flex",flexDirection:"column"},filterContainerScrollable:{overflowY:"auto"},filterItem:{marginTop:15},filterControls:{display:"flex",padding:"10px 12px 0",borderTop:"solid 1px rgba(0, 0, 0, 0.12)"},clearButton:{marginRight:"auto"},input:{height:"100%",paddingLeft:"12px",paddingRight:"8px"}});function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const H=e=>{let{className:t,filter:n,onApplyFilter:l,onClearFilter:c,entityType:m}=e;const E=F(),[y,v]=(0,r.useState)(null),g=()=>v(null),[b,x]=(0,r.useState)(n);(0,r.useEffect)((()=>{x(n)}),[n]);const T=(0,s.curry)(((e,t)=>{x((n=>function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){G(e,t,n[t])}))}return e}({},n,{[e]:t})))})),{activities:I=[],attributes:O=[],dateRange:N=null,users:w=[]}=b||{};return i().createElement(i().Fragment,null,i().createElement(d.Z,{icon:u.Z,size:"L",onClick:e=>v(e.currentTarget),className:t}),i().createElement(o.Popover,{classes:{paper:E.popup},open:!!y,anchorEl:y,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},i().createElement("div",{className:E.filterContainer},i().createElement(o.Typography,{variant:"h6"},a().text("Filter")),i().createElement("div",{className:E.filterContainerScrollable},i().createElement(C,{value:N,onChange:T("dateRange"),className:E.filterItem}),i().createElement(h.Z,{selectedUsers:w,onChange:T("users"),className:E.filterItem}),i().createElement(j,{selectedHistoryActivityTypes:I,onChange:T("activities"),className:E.filterItem}),i().createElement(f.Z,{selectedAttributes:O,entityType:m,onChange:T("attributes"),className:E.filterItem,title:a().text("Attribute updated")}))),i().createElement("div",{className:E.filterControls},i().createElement(o.Button,{onClick:c,className:E.clearButton},a().text("Clear all")),i().createElement(o.Button,{onClick:g},a().text("Cancel")),i().createElement(o.Button,{color:"primary",onClick:()=>{N&&(0,p.R)(N)?l(b):l((0,s.dissoc)("dateRange",b)),g()}},a().text("Apply")))))};var Z=n(52730),B=n(43054),U=n(87638),z=n(55847),$=n(98281),K=n(31276);const W=(0,O.Z)({menuItem:{minHeight:"32px"},menuText:{fontSize:"13px",lineHeight:"15px",letterSpacing:0,marginLeft:"30px"},checkIcon:{position:"absolute",color:"rgba(0, 0, 0, 0.54)"}}),q=(0,r.forwardRef)(((e,t)=>{let{item:n,onMenuClose:r=K.ZT}=e;const l=W(),{text:a,selected:s,onClick:c}=n;return i().createElement(o.MenuItem,{classes:{root:l.menuItem},onClick:e=>{r(),c(e)},ref:t},s&&i().createElement($.Z,{className:l.checkIcon}),i().createElement(o.Typography,{classes:{root:l.menuText}},a))}));q.displayName="MenuItemRenderer";const Y=q,V=()=>{const e=(0,Z.useSelector)(U.ZP.selectors.getHistoryMode),t=(0,Z.useDispatch)(),n=e=>{t(U.N5.history.actions.setHistoryMode(e))},r=[{text:a().text("Compare to Current view"),selected:e===U.Z9.Current,onClick:()=>n(U.Z9.Current)},{text:a().text("Compare to Previous view"),selected:e===U.Z9.Previous,onClick:()=>n(U.Z9.Previous)}];return i().createElement(z.Z,{MenuItemRenderer:Y,buttonComponent:d.Z,buttonProps:{icon:B.Z,size:"L"},menuId:"history-menu",menuItems:r})},X=(0,O.Z)({root:{display:"flex",flex:1,alignItems:"center"},icon:{margin:4},divider:{backgroundColor:"rgba(0,0,0,0.12)",margin:"3px 19px"},count:{fontSize:14},filterButton:{marginRight:"-4px"}}),Q=e=>{let{total:t,entityType:n,filter:r,onApplyFilter:l,onClearFilter:u}=e;const d=X();return i().createElement("div",{className:d.root},i().createElement(o.Typography,{variant:"h6"},a().text("History")),!(0,s.isNil)(t)&&i().createElement(i().Fragment,null,i().createElement(o.Divider,{orientation:"vertical",flexItem:!0,className:d.divider}),i().createElement(o.Typography,{variant:"body1",color:"textSecondary",className:d.count},1===t?a().text("${count} contributing profile",{count:t}):a().text("${count} contributing profiles",{count:t}))),i().createElement(c.Z,null),i().createElement(H,{className:d.filterButton,entityType:n,filter:r,onApplyFilter:l,onClearFilter:u}),i().createElement(V,null))}},6674:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(24328),i=n.n(r),l=n(87918),a=n.n(l),o=n(10159);const s=()=>i().createElement(o.Z,{text:a().text("History in the making"),secondaryText:a().text("When you create an event or perform an activity, it will show up here.")})},54362:(e,t,n)=>{n.d(t,{Z:()=>F});var r=n(24328),i=n.n(r),l=n(52730),a=n(44443),o=n(87918),s=n.n(o),c=n(17440),u=n(71153),d=n.n(u),p=n(99493),h=n(87638),f=n(94079),m=n(34606),E=n(79692);const y=(0,E.Z)((()=>({historyRow:{position:"relative",padding:"8px 12px 16px",cursor:"pointer"},selected:{background:"rgba(0,0,0,0.05)","&:before":{content:'""',background:"rgba(0,0,0,0.05)",width:"100%",height:"100%",position:"absolute",left:"-100%",top:0}},rowHeader:{display:"flex",position:"relative"},badge:e=>{let{color:t}=e;return{position:"absolute",width:"2px",height:"100%",left:"-9px",pointerEvents:"none",background:t,"&:before":{height:"100%",width:"3px",content:'""',left:"-3px",background:t,position:"absolute",opacity:.06}}},title:{color:"rgba(0,0,0,0.87)",fontSize:"13px",letterSpacing:0,lineHeight:"16px",fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&.bold":{fontWeight:500}},date:{marginLeft:"auto",color:"rgba(0,0,0,0.54)",fontSize:"11px",letterSpacing:0,lineHeight:"16px"},user:{color:"rgba(0,0,0,0.38)",fontSize:"12px",letterSpacing:0,lineHeight:"14px"}}))),v=e=>{let{change:t,isCurrent:n,isSelected:r,onClick:l}=e;const{uri:a,type:o,matchGroups:c,user:u,timestamp:h}=t,E=(0,p.GtP)(a),v=y({color:E});return i().createElement("div",{className:d()(v.historyRow,{[v.selected]:r}),onClick:l},i().createElement("div",{className:v.rowHeader},i().createElement("div",{className:v.badge}),i().createElement(f.Typography,{className:d()(v.title,{bold:n})},n?s().text("Current view"):(0,m.Xr)(o)),!n&&i().createElement(f.Typography,{className:v.date},s().date(h,"L LT"))),c&&i().createElement(f.Typography,{className:v.title},s().text("Match rule:")," ",c.join(", ")),i().createElement(f.Typography,{className:v.user},u))};var g=n(55912);const b=e=>e===g.b.FAKE_FILTERED_INCOMING||e===g.b.FAKE_FILTERED_OUTGOING,x=e=>{let{x:t,y:n,toX:r,toY:l,color:a,isDashed:o}=e;const s=((e,t,n,r)=>{const i=t>r,l=e<n,a=i?-6:6;return`M${e} ${t} L${l?n-12:n+12} ${t} ${l?`c 6 0 12 ${a} 12`:`c -6 0 -12 ${a} -12`} ${i?-12:12} L${n} ${r}`})(t,n,r,l);return i().createElement("path",{d:s,stroke:a,strokeWidth:2,fill:"none",strokeDasharray:o?"3,3":void 0})};function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}const I=(0,r.forwardRef)(((e,t)=>{let{x:n,y:r,color:l,isDashed:a,isCollapsed:o,showCollapseIcon:s,showLine:c}=e,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["x","y","color","isDashed","isCollapsed","showCollapseIcon","showLine"]);const d=s?6:3;return i().createElement("g",T({},u,{ref:t}),c&&i().createElement("rect",{id:"line",x:n-d-4,y:r-d-4,width:2*d+8,height:2,fill:l}),i().createElement("circle",{cx:n,cy:r,r:d,fill:a?"#fff":l,stroke:l,strokeDasharray:a?"1,1":void 0,strokeWidth:2}),s&&i().createElement("g",{id:"icon"},i().createElement("rect",{x:n-4,y:r-1,width:8,height:2,fill:"#fff"}),o&&i().createElement("rect",{x:n-1,y:r-4,width:2,height:8,fill:"#fff"})))}));const O=(0,n(83348).Z)(I),N=(0,r.memo)((e=>{let{graphData:t,onHistoryCircleMouseOver:n}=e;const{historyLanes:r,rows:l}=t,a=[16],{links:o,rowLines:s,circles:c}=l.reduce(((e,t,o)=>{let{uri:s,height:c,uris:u,type:d,fakeType:h,index:f,timestamp:m,label:E}=t;const y=16*r[s].index+24,v=a[o];a.push(v+c);const T=b(h),I=T?u[0]:s,N=!(null!=u&&u.some((e=>r[e])));e.circles.push(i().createElement(O,{tooltipTitle:E,tooltipPlacement:"top",onMouseOver:n?()=>n(s,m,f):void 0,key:`circle-${I}-${o}`,x:y,y:v,color:(0,p.GtP)(I),isDashed:T,isCollapsed:N,showCollapseIcon:!!u,showLine:h===g.b.FAKE_NAVIGATE_PROFILE})),e.rowLines.push(i().createElement("rect",{key:`${I}-${f}`,x:y,y:v-8,width:"100%",height:16,fill:(0,p.GtP)(I),opacity:.06}));const w=d===g.b.ENTITIES_SPLITTED;return null==u||u.forEach((t=>{const n=r[t];if(!n)return;const a=l[o].height,s=16*n.index+24,c=w?v-a:v+a;y!==s&&e.links.push(i().createElement(x,{key:`link-${t}-${f}`,x:y,y:v,toX:s,toY:c,isDashed:b(h),color:(0,p.GtP)(t)}))})),e}),{links:[],circles:[],rowLines:[]}),u=16*Object.keys(r).length+24,d=a[a.length-1]-16;return Object.entries(r).forEach((e=>{let[t,n]=e;const r=16*n.index+24;n.lifeTime.forEach(((e,s)=>{var u;let{start:d,end:h}=e;if((null===(u=l[null==h?void 0:h.index])||void 0===u?void 0:u.type)===g.b.ENTITIES_SPLITTED)return;const f=(null==d?void 0:d.type)===g.b.ENTITIES_SPLITTED?(null==d?void 0:d.index)-1:null==d?void 0:d.index,m=(null==h?void 0:h.type)===g.b.ENTITIES_MERGED_MANUALLY||(null==h?void 0:h.type)===g.b.ENTITIES_MERGED?(null==h?void 0:h.index)+1:null==h?void 0:h.index,E=a[f]||a[a.length-2],y=a[m]||16;if(E<=y)return;const v=(0,p.GtP)(t);!h&&n.index>0&&c.push(i().createElement(I,{key:`initCircle-${t}-${s}`,x:r,y,color:v,showLine:!0})),o.unshift(i().createElement("path",{key:`line-${t}-${s}`,d:`M${r} ${E} L${r} ${y}`,stroke:v,strokeWidth:2}))}))})),i().createElement("svg",{className:"chart",width:u,height:d},i().createElement("g",{id:"rowLines"},s),i().createElement("g",{id:"links"},o),i().createElement("g",{id:"circles"},c))}));var w=n(99136);const S=(0,E.Z)({historyTree:{display:"grid",gridTemplateColumns:"auto 1fr",overflowY:"auto"},graph:{overflowX:"scroll",overflowY:"hidden"},history:{minWidth:344},buttonContainer:{gridColumnStart:1,gridColumnEnd:3,padding:"8px 16px"},shadow:{boxShadow:"inset -8px 0px 5px -5px rgba(0,0,0,0.1)"}});function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P(e,t,n[t])}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D=e=>{let{historyData:t,isLoading:n,canLoadMore:o,onLoadMore:u,entityUri:m,historyEvent:E,findPreviousChange:y}=e;const g=S(),b=(0,l.useDispatch)(),x=(0,l.useSelector)(h.ZP.selectors.getIsEditableMode),T=(0,l.useSelector)(h.ZP.selectors.getMetadata),[I,O]=(0,r.useState)({historyLanes:{},rows:[]}),[P,D]=(0,r.useState)(!1),[R,k]=(0,r.useState)(-1);(0,r.useEffect)((()=>{if((0,c.isNil)(E))return void k(0);const e=e=>(null==e?void 0:e.uri)===((null==E?void 0:E.overrideUri)||m)&&(null==e?void 0:e.timestamp)===(null==E?void 0:E.aStamp),n=-1!==R?t.rows[R]:null,r=t.rows.findIndex((t=>e(t)));k(e(n)?R:r)}),[t.rows,E]);const M=(0,r.useRef)(null),_=(0,r.useCallback)((e=>{if(!(0,c.isNil)(e)){var n;const r=null===(n=t.rows)||void 0===n?void 0:n.map(((t,n)=>{var r;return C({},t,{height:null===(r=e.childNodes[n])||void 0===r?void 0:r.clientHeight})}));O({historyLanes:t.historyLanes,rows:r})}}),[t]),L=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=(null==M?void 0:M.current)||{};D(n<e-t)};return i().createElement("div",{className:g.historyTree},n&&i().createElement(w.Z,null),i().createElement("div",{className:d()(g.graph,{[g.shadow]:P}),onScroll:L,ref:M},i().createElement(N,{onHistoryCircleMouseOver:(e,t,n)=>{if((0,c.isNil)(I.rows[n].label)){const r={time:t,select:"crosswalks"};(0,p.HvW)(e,r).then((e=>{let{crosswalks:t}=e;const r=t?(0,c.uniqBy)((0,c.prop)("type"),t).map((e=>{const t=(0,p.s5)(T,e.type);return t?t.label:null})).filter(c.identity).join(", "):s().text("No data");O((e=>C({},e,{rows:e.rows.map((e=>e.index===n?C({},e,{label:r}):e))})))}))}},graphData:I}),i().createElement(a.Z,{handleWidth:!0,onResize:L})),i().createElement("div",{ref:_,className:g.history},t.rows.map(((e,t)=>{const n=t===R,r=0===t;return i().createElement(v,{key:`row-${t}`,change:e,isCurrent:r,isSelected:n,onClick:()=>((e,t,n,r)=>{if(x){if(!window.confirm(s().text("Are you sure you want to go in history mode? All your changes will be lost.")))return;b(h.N5.mode.actions.modeUpdated(p.ARY.Viewing))}if(r&&!n||!r&&n)b(h.N5.history.actions.clearHistoryEvent()),k(0);else if(!r&&!n){const n=y(e-1,t.uri||m),r=y(e,t.uri||m),i=null==n?void 0:n.timestamp,l=null==r?void 0:r.timestamp,a=(null==t?void 0:t.uri)===m?null:null==t?void 0:t.uri;b(h.N5.history.actions.setHistoryEvent({aStamp:i,bStamp:l,overrideUri:a})),k(e)}})(t,e,n,r)})}))),o&&i().createElement("div",{className:g.buttonContainer},i().createElement(f.Button,{color:"primary",onClick:()=>u()},s().text("Show more"))))},R=(0,E.Z)({root:{display:"flex",flexWrap:"wrap",padding:"10px 15px"}}),k=(0,E.Z)({icon:e=>{let{color:t}=e;return{boxSizing:"border-box",borderWidth:2,borderStyle:"solid",borderColor:t,height:12,width:12,borderRadius:30,transition:"opacity 0.3s",margin:4}},active:e=>{let{color:t}=e;return{backgroundColor:t}},inactive:{backgroundColor:"white"},clickable:{cursor:"pointer"}}),M=e=>{let{value:t,isSelected:n=!0,onClick:r}=e;const l=(0,p.GtP)(t),a=k({color:l});return i().createElement("div",{className:d()(a.icon,{[a.inactive]:!n,[a.active]:n,[a.clickable]:!!r}),onClick:r})},_=e=>{let{values:t,selectedValues:n,entityUri:r,onSelectValues:l,className:a}=e;const o=R();return i().createElement("div",{className:d()(o.root,a)},i().createElement(M,{value:r}),(null==t?void 0:t.length)>0&&t.map((e=>i().createElement(M,{key:e,value:e,isSelected:null==n?void 0:n.includes(e),onClick:()=>(e=>{null!=n&&n.includes(e)?l((0,c.without)([e],n)):l([...n||[],e])})(e)}))))};function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const A=(e,t)=>e.reduce(((e,n,r)=>{let{start:i,end:l}=n;if(i){const n=t-i.timestamp;((0,c.isNil)(e.startDistance)||Math.abs(e.startDistance)>Math.abs(n)&&n>0)&&(e.startIndex=r,e.startDistance=n)}if(l){const n=t-l.timestamp;((0,c.isNil)(e.endDistance)||Math.abs(e.endDistance)>Math.abs(n)&&n<0)&&(e.endIndex=r,e.endDistance=n)}return e}),{startIndex:null,endIndex:null,startDistance:null,endDistance:null}),j=(0,E.Z)({root:{display:"flex",flexDirection:"column",overflow:"hidden",position:"relative",height:"100%"},borderBottom:{borderBottom:"1px solid rgba(0, 0, 0, 0.12)"}}),F=(0,r.memo)((e=>{let{isLoading:t,historyWithTotal:n,contributorsUris:l,entityUri:a,canLoadMore:o,onLoadMore:s,historyEvent:u}=e;const d=j(),[p,h]=(0,r.useState)(null);(0,r.useEffect)((()=>{h(l)}),[l]);const{historyData:f,findPreviousChange:m}=(e=>{let{entityUri:t,historyChanges:n,selectedUris:i}=e;return(0,r.useMemo)((()=>{const e={[t]:{index:0,lifeTime:[]}},r=[{user:"",timestamp:0,uri:t}],l=(0,c.curry)(((e,n,r)=>{const i=r.uri||t;if(e)if(Array.isArray(e)){if(r.type!==g.b.ENTITY_LOST_MERGE)return null;if(e.includes(i))return r;if(n&&r.uris)return e.some((e=>r.uris.includes(e)))?r:null}else{var l;if(i===e||n&&null!==(l=r.uris)&&void 0!==l&&l.includes(e))return r}return null})),a=(e,t,r)=>(0,c.pipe)((0,c.drop)(e+1),(0,c.find)(l(t,r)))(n),o=t=>(e[t]||i&&!i.includes(t)||(e[t]={index:Object.keys(e).length,lifeTime:[]}),e[t]),s=(e,t)=>{const n=e[e.length-1];!n||n.start&&(n.start.type!==g.b.ENTITY_CREATED||t.type!==g.b.ENTITIES_SPLITTED)?e.push({start:t,end:null}):n.start=t},u=(e,t)=>{let n=!0;if(e.length){const r=e[e.length-1];n=!((!r.start||r.start.timestamp<t.timestamp)&&(!r.end||r.end.timestamp>t.timestamp))}n&&e.push({start:null,end:null})},d=(e,t)=>{if(e.length){const n=e[e.length-1];n.start||(n.start=t)}e.push({start:null,end:t})},p=[];return null==n||n.forEach(((n,i)=>{var l;switch(n.type){case g.b.ENTITIES_SPLITTED:if(!a(i,n.uri||t,!1))return;{const e=n.uri,t=n.uris?[n.uris,e]:[e],r=a(i,t,!0);if(r&&(!e||e===r.uri))return}break;case g.b.ENTITY_LOST_MERGE:case g.b.RELATIONSHIP_CREATED:case g.b.RELATIONSHIP_REMOVED:case g.b.RELATIONSHIP_CHANGED:return}let c=!1;null===(l=n.uris)||void 0===l||l.forEach((e=>{o(e)||(c=!0)}));const h=o(n.uri||t);if(!h)return;const f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){L(e,t,n[t])}))}return e}({},n);((t,n)=>{var i,l;switch(n.type){case g.b.ENTITY_CREATED:s(t,n);break;case g.b.ENTITIES_MERGED_ON_THE_FLY:case g.b.ENTITY_CHANGED:u(t,n);break;case g.b.ENTITY_LOST_MERGE:case g.b.ENTITY_REMOVED:d(t,n);break;case g.b.ENTITIES_SPLITTED:u(t,n),null===(i=n.uris)||void 0===i||i.forEach((t=>{const i=e[t];if(!i)return;const l=i.lifeTime.length;l?s(i.lifeTime,n):d(i.lifeTime,n),r.push({uri:t,user:n.user,type:n.type,fakeType:l?g.b.FAKE_UPDATE:g.b.FAKE_NAVIGATE_PROFILE,timestamp:n.timestamp})}));break;case g.b.ENTITIES_MERGED:case g.b.ENTITIES_MERGED_MANUALLY:u(t,n),null===(l=n.uris)||void 0===l||l.forEach((t=>{const r=e[t];r&&d(r.lifeTime,n)}))}})(h.lifeTime,f),c&&p.push(f),r.push(f)})),p.forEach((t=>{t.uris.forEach((i=>{e[i]||n.forEach((n=>{let{uri:l,uris:a,timestamp:o,user:s,type:u}=n;l===i&&(null==a||a.forEach((n=>{const i=e[n];if(!i)return;let l=null;switch(u){case g.b.ENTITIES_MERGED:case g.b.ENTITIES_MERGED_MANUALLY:l=g.b.FAKE_FILTERED_INCOMING;break;case g.b.ENTITIES_SPLITTED:l=g.b.FAKE_FILTERED_OUTGOING;break;default:return}const a={fakeType:l,uri:t.uri,uris:[n],type:u,user:s,timestamp:o},d=A(i.lifeTime,t.timestamp);l===g.b.FAKE_FILTERED_INCOMING?(0,c.isNil)(d.endIndex)||(i.lifeTime[d.endIndex].end=a):(0,c.isNil)(d.startIndex)||(i.lifeTime[d.startIndex].start=a),r.splice(r.indexOf(t),0,a)})))}))}))})),r.forEach(((e,n)=>{e.index=n,e.uri=e.uri||t})),{historyData:{historyLanes:e,rows:r},findPreviousChange:(e,t)=>(0,c.pipe)((0,c.slice)(e+1,1/0),(0,c.find)(l(t,!1)))(r)}}),[t,n,i])})({entityUri:a,historyChanges:null==n?void 0:n.changes,selectedUris:p});return i().createElement("div",{className:d.root},i().createElement(_,{values:l,selectedValues:p,onSelectValues:h,entityUri:a,className:d.borderBottom}),i().createElement(D,{historyData:f,isLoading:t,onLoadMore:s,canLoadMore:o,entityUri:a,historyEvent:u,findPreviousChange:m}))}))},3409:(e,t,n)=>{n.d(t,{Z:()=>p});var r=n(24328),i=n.n(r),l=n(52730),a=n(87638),o=n(94079),s=n(17440),c=n(87918),u=n.n(c);const d=(0,n(79692).Z)({root:{display:"flex",alignItems:"flex-start"},slice:{fontWeight:500},cancelButton:{width:"88px",flexShrink:0,marginLeft:"15px"}}),p=()=>{const e=d(),t=(0,l.useSelector)(a.ZP.selectors.getHistoryEvent),n=(0,l.useDispatch)(),r=(0,s.pipe)(a.N5.history.actions.clearHistoryEvent,n);return t?i().createElement("div",{className:e.root},i().createElement(o.Typography,{component:"div"},u().text("You are viewing a historic slice:")," ",i().createElement("span",{className:e.slice},u().date(t.aStamp,"llll"))),i().createElement(o.Button,{className:e.cancelButton,variant:"contained",color:"primary",onClick:r},u().text("Cancel"))):null}},85890:(e,t,n)=>{n.d(t,{k:()=>d});var r=n(24328),i=n(99493),l=n(65942),a=n(48465),o=n(67218);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={activities:[l.M.MERGE,l.M.UNMERGE,l.M.UPDATE]},d=e=>{let{entity:t,enabled:n}=e;const[l,c]=(0,r.useState)(u),[d,p]=(0,r.useState)(0),h=(0,r.useMemo)((()=>(0,a.Z)(l)),[l]),[f,m]=(0,r.useState)(null),[E,y]=(0,r.useState)(null),[v,g]=(0,r.useState)(!1),b=(0,o._)(),x=null==t?void 0:t.uri,T={max:32,order:"desc"},I=(0,i.O27)(null==l?void 0:l.attributes)||void 0;(0,r.useEffect)((()=>{x&&n&&(g(!0),b((0,i.kgP)(s({entityUri:x,historicUris:f,filter:h,showAll:I},T))).then(y).catch((e=>{console.warn("Failed to load history data",e),y(null)})).finally((()=>{g(!1)})))}),[h,I,f]),(0,r.useEffect)((()=>{x&&n&&(g(!0),b((0,i.wdF)({entityUri:x})).then((e=>{m(e)})).catch((e=>{console.warn("Failed to load history data",e),m(null)})).finally((()=>{g(!1)})),p(0))}),[x,null==t?void 0:t.updatedTime,n]);const O=(0,r.useCallback)((e=>{x&&f&&n&&(g(!0),b((0,i.kgP)(s({entityUri:x,historicUris:f,filter:h,showAll:I,offset:e},T))).then((e=>{y((t=>s({},t,{changes:[...null==t?void 0:t.changes,...e.changes]})))})).catch((e=>{console.warn("Failed to load history data",e)})).finally((()=>{g(!1)})))}),[f,h,n]),N=(0,r.useMemo)((()=>32*(d+1)<(null==E?void 0:E.total)),[E,d]),w=(0,r.useCallback)((e=>{p(0),c(e)}),[]),S=(0,r.useCallback)((()=>{w(s({},u))}),[]),C=(0,r.useCallback)((()=>{N&&(O(32*(d+1)),p(d+1))}),[O,d,N]);return{isLoading:v,canLoadMore:N,onLoadMore:C,onApplyFilter:w,onClearFilter:S,historicUris:f,historyWithTotal:E,historyFilter:l}}},71820:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(24328),i=n(99493);const l=e=>{let{isHistoryTabActive:t,entity:n}=e;const[l,a]=(0,r.useState)(!1),o=null==n?void 0:n.uri;(0,r.useEffect)((()=>{t||a(!1)}),[o]),(0,r.useEffect)((()=>{t&&a(!0)}),[t]);const s=o&&!(0,i.ZiX)(o)&&!(0,i.biM)(n);return{isHistoryEnabled:l&&s,isProfilePersisted:s}}},57730:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(24328),i=n(52730),l=n(87638),a=n(99493),o=n(67218);const s=e=>{let{entity:t,historyEvent:n}=e;const[s,c]=(0,r.useState)(!1),u=(0,i.useSelector)(l.ZP.selectors.getHistorySlice),d=(0,i.useDispatch)(),p=(0,o._)(),{aStamp:h,bStamp:f,overrideUri:m}=n||{},E=m||(null==t?void 0:t.uri);return(0,r.useEffect)((()=>{n&&E&&(c(!0),p(Promise.all([(0,a.lrH)(E,h),f&&1!==f?(0,a.lrH)(E,f):Promise.resolve(null)])).then((e=>{let[t,n]=e;d(l.N5.history.actions.setHistorySlice({aEntity:t,bEntity:n}))})).catch((e=>{console.warn("Failed to load entity slice",e)})).finally((()=>{c(!1)})))}),[h,f,E]),{isLoading:s,historySlice:u}}},55912:(e,t,n)=>{n.d(t,{b:()=>a});var r,i=n(31537);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.FAKE_NAVIGATE_PROFILE="FAKE_NAVIGATE_PROFILE",e.FAKE_FILTERED_INCOMING="FAKE_FILTERED_INCOMING",e.FAKE_FILTERED_OUTGOING="FAKE_FILTERED_OUTGOING",e.FAKE_UPDATE="FAKE_UPDATE"}(r||(r={}));const a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}({},i.I,r)},65942:(e,t,n)=>{let r;n.d(t,{M:()=>r}),function(e){e.UPDATE="UPDATE",e.MERGE="MERGE",e.UNMERGE="UNMERGE"}(r||(r={}))},48465:(e,t,n)=>{n.d(t,{Z:()=>f,R:()=>m});var r=n(95038),i=n.n(r),l=n(17440),a=n(99493),o=n(65942),s=n(31537),c=n(67885);const u=e=>(0,l.pipe)((0,l.map)(e),(0,l.join)(" or ")),d=e=>{const[t,n]=e;return i()().subtract(t,n).valueOf()},p=(0,l.chain)((0,l.cond)([[(0,l.equals)(o.M.MERGE),()=>[s.I.ENTITIES_MERGED,s.I.ENTITIES_MERGED_MANUALLY,s.I.ENTITIES_MERGED_ON_THE_FLY]],[(0,l.equals)(o.M.UNMERGE),()=>[s.I.ENTITIES_SPLITTED]],[(0,l.equals)(o.M.UPDATE),()=>[s.I.ENTITY_CHANGED]]])),h=(0,l.pipe)((0,l.defaultTo)([]),p,(0,l.concat)([s.I.ENTITY_CREATED,s.I.ENTITY_REMOVED,s.I.ENTITY_LOST_MERGE]),u((e=>`equals(type, '${e}')`))),f=(0,l.pipe)((0,l.defaultTo)({}),(0,l.reject)(a.O27),(0,l.evolve)({users:u((e=>`equals(user, '${(0,a.HRH)(e)}')`)),attributes:u((e=>`changes(${(0,a.HRH)(e.value)})`)),dateRange:e=>{let{type:t,period:n}=e;switch(t){case c.K.WITHIN:return`gte(timestamp, ${d(n)})`;case c.K.AGO:return`lte(timestamp, ${d(n)})`;case c.K.BETWEEN:{const[e,t]=n;return`gte(timestamp, ${e.valueOf()}) and lte(timestamp, ${i()(t).endOf("date").valueOf()})`}default:return""}}}),(0,l.over)((0,l.lensProp)("activities"),h),l.values,(0,l.reject)(a.O27),(0,l.append)("not equals(user, 'collaboration-service')"),(0,l.map)((e=>`(${e})`)),(0,l.join)(" and ")),m=e=>{if(e.type===c.K.AGO||e.type===c.K.WITHIN){const[t,n]=e.period;return"Number"===(0,l.type)(t)&&"String"===(0,l.type)(n)&&t>0}if(e.type===c.K.BETWEEN){const[t,n]=e.period;return t instanceof Date&&n instanceof Date}}},2804:(e,t,n)=>{n.d(t,{a:()=>i});var r=n(24328);const i=e=>{const[t,n]=(0,r.useState)(!1),[i,l]=(0,r.useState)({});return(0,r.useEffect)((()=>{e().then((e=>{l(e||{})})).then((e=>n(!0))).catch((e=>n(!0)))}),[]),{isLoaded:t,savedState:i}}}}]);