"use strict";(self.webpackChunkCustomerApp=self.webpackChunkCustomerApp||[]).push([[9636],{17355:(e,t,r)=>{r.d(t,{A:()=>o});r(74548);var s=function(e,t){var r=this;if(r.instancePool.length){var s=r.instancePool.pop();return r.call(s,e,t),s}return new r(e,t)},i=function(e){var t=this;e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},n=s;const o={addPoolingTo:function(e,t){var r=e;return r.instancePool=[],r.getPooled=t||n,r.poolSize||(r.poolSize=10),r.release=i,r},twoArgumentPooler:s}},35895:(e,t,r)=>{r.d(t,{A:()=>s});const s=r(67862).default},40960:(e,t,r)=>{r.d(t,{A:()=>s});const s=function e(t,r,s){if(void 0===s&&(s=-1),0===s)return!0;if(t===r)return!1;if("function"==typeof t&&"function"==typeof r)return!1;if("object"!=typeof t||null===t)return t!==r;if("object"!=typeof r||null===r)return!0;if(t.constructor!==r.constructor)return!0;if(Array.isArray(t)){var i=t.length;if(r.length!==i)return!0;for(var n=0;n<i;n++)if(e(t[n],r[n],s-1))return!0}else{for(var o in t)if(e(t[o],r[o],s-1))return!0;for(var l in r)if(void 0===t[l]&&void 0!==r[l])return!0}return!1}},44584:(e,t,r)=>{r.d(t,{A:()=>K});var s=r(3098),i=r(58168),n=r(22555),o=r(71217),l=r(34951),a=r(9176),h=r(41304),c=r(37757);const d=function(e,t,r){return t<e?e:t>r?r:t};const u=function(){};var p=r(74548),f=r.n(p);class g{constructor(e){f()(e>=0,"CellRenderMask must contain a non-negative number os cells"),this._numCells=e,this._regions=0===e?[]:[{first:0,last:e-1,isSpacer:!0}]}enumerateRegions(){return this._regions}addCells(e){if(f()(e.first>=0&&e.first<this._numCells&&e.last>=-1&&e.last<this._numCells&&e.last>=e.first-1,"CellRenderMask.addCells called with invalid cell range"),!(e.last<e.first)){var t=this._findRegion(e.first),r=t[0],s=t[1],i=this._findRegion(e.last),o=i[0],l=i[1];if(s!==l||r.isSpacer){var a=[],h=[],c=(0,n.A)((0,n.A)({},e),{},{isSpacer:!1});r.first<c.first&&(r.isSpacer?a.push({first:r.first,last:c.first-1,isSpacer:!0}):c.first=r.first),o.last>c.last&&(o.isSpacer?h.push({first:c.last+1,last:o.last,isSpacer:!0}):c.last=o.last);var d=[...a,c,...h],u=l-s+1;this._regions.splice(s,u,...d)}}}numCells(){return this._numCells}equals(e){return this._numCells===e._numCells&&this._regions.length===e._regions.length&&this._regions.every(((t,r)=>t.first===e._regions[r].first&&t.last===e._regions[r].last&&t.isSpacer===e._regions[r].isSpacer))}_findRegion(e){for(var t=0,r=this._regions.length-1;t<=r;){var s=Math.floor((t+r)/2),i=this._regions[s];if(e>=i.first&&e<=i.last)return[i,s];e<i.first?r=s-1:e>i.last&&(t=s+1)}f()(!1,"A region was not found containing cellIdx "+e)}}class m{constructor(){this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}add(e,t){var r;f()(!this._childrenToCellKey.has(e),"Trying to add already present child list");var s=null!==(r=this._cellKeyToChildren.get(t))&&void 0!==r?r:new Set;s.add(e),this._cellKeyToChildren.set(t,s),this._childrenToCellKey.set(e,t)}remove(e){var t=this._childrenToCellKey.get(e);f()(null!=t,"Trying to remove non-present child list"),this._childrenToCellKey.delete(e);var r=this._cellKeyToChildren.get(t);f()(r,"_cellKeyToChildren should contain cellKey"),r.delete(e),0===r.size&&this._cellKeyToChildren.delete(t)}forEach(e){for(var t,r=(0,s.A)(this._cellKeyToChildren.values());!(t=r()).done;)for(var i,n=t.value,o=(0,s.A)(n);!(i=o()).done;){e(i.value)}}forEachInCell(e,t){for(var r,i,n=null!==(r=this._cellKeyToChildren.get(e))&&void 0!==r?r:[],o=(0,s.A)(n);!(i=o()).done;){t(i.value)}}anyInCell(e,t){for(var r,i,n=null!==(r=this._cellKeyToChildren.get(e))&&void 0!==r?r:[],o=(0,s.A)(n);!(i=o()).done;){if(t(i.value))return!0}return!1}size(){return this._childrenToCellKey.size}}var _=r(32817),v=r(36782);class C extends v.PureComponent{constructor(e){super(e),this._inAsyncStateUpdate=!1,this._installSetStateHooks()}setState(e,t){"function"==typeof e?super.setState(((t,r)=>{var s;this._inAsyncStateUpdate=!0;try{s=e(t,r)}catch(e){throw e}finally{this._inAsyncStateUpdate=!1}return s}),t):super.setState(e,t)}_installSetStateHooks(){var e=this,t=this.props,r=this.state;Object.defineProperty(this,"props",{get:()=>(f()(!e._inAsyncStateUpdate,'"this.props" should not be accessed during state updates'),t),set(e){t=e}}),Object.defineProperty(this,"state",{get:()=>(f()(!e._inAsyncStateUpdate,'"this.state" should not be acceessed during state updates'),r),set(e){r=e}})}}function y(e,t,r,s,i,n){if(function(e,t,r){return e>=0&&t<=r&&t>e}(r,s,i))return!0;var o=function(e,t,r){var s=Math.min(t,r)-Math.max(e,0);return Math.max(0,s)}(r,s,i);return 100*(e?o/i:o/n)>=t}const S=class{constructor(e){void 0===e&&(e={viewAreaCoveragePercentThreshold:0}),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=e}dispose(){this._timers.forEach(clearTimeout)}computeViewableItems(e,t,r,s,i){var n=e.getItemCount(e.data),o=this._config,l=o.itemVisiblePercentThreshold,a=o.viewAreaCoveragePercentThreshold,h=null!=a,c=h?a:l;f()(null!=c&&null!=l!=(null!=a),"Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold");var d=[];if(0===n)return d;var u=-1,p=i||{first:0,last:n-1},g=p.first,m=p.last;if(m>=n)return[];for(var _=g;_<=m;_++){var v=s(_,e);if(v){var C=v.offset-t,S=C+v.length;if(C<r&&S>0)u=_,y(h,c,C,S,r,v.length)&&d.push(_);else if(u>=0)break}}return d}onUpdate(e,t,r,s,i,n,o){var l=e.getItemCount(e.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==l&&s(0,e)){var a=[];if(l&&(a=this.computeViewableItems(e,t,r,s,o)),this._viewableIndices.length!==a.length||!this._viewableIndices.every(((e,t)=>e===a[t])))if(this._viewableIndices=a,this._config.minimumViewTime){var h=setTimeout((()=>{this._timers.delete(h),this._onUpdateSync(e,a,n,i)}),this._config.minimumViewTime);this._timers.add(h)}else this._onUpdateSync(e,a,n,i)}}resetViewableIndices(){this._viewableIndices=[]}recordInteraction(){this._hasInteracted=!0}_onUpdateSync(e,t,r,i){t=t.filter((e=>this._viewableIndices.includes(e)));for(var o,l=this._viewableItems,a=new Map(t.map((t=>{var r=i(t,!0,e);return[r.key,r]}))),h=[],c=(0,s.A)(a);!(o=c()).done;){var d=o.value,u=d[0],p=d[1];l.has(u)||h.push(p)}for(var f,g=(0,s.A)(l);!(f=g()).done;){var m=f.value,_=m[0],v=m[1];a.has(_)||h.push((0,n.A)((0,n.A)({},v),{},{isViewable:!1}))}h.length>0&&(this._viewableItems=a,r({viewableItems:Array.from(a.values()),changed:h,viewabilityConfig:this._config}))}};var I=v.createContext(null);function b(e){var t=e.children,r=e.value,s=(0,v.useMemo)((()=>({cellKey:null,getScrollMetrics:r.getScrollMetrics,horizontal:r.horizontal,getOutermostParentListRef:r.getOutermostParentListRef,registerAsNestedChild:r.registerAsNestedChild,unregisterAsNestedChild:r.unregisterAsNestedChild})),[r.getScrollMetrics,r.horizontal,r.getOutermostParentListRef,r.registerAsNestedChild,r.unregisterAsNestedChild]);return v.createElement(I.Provider,{value:s},t)}function R(e){var t=e.cellKey,r=e.children,s=(0,v.useContext)(I),i=(0,v.useMemo)((()=>null==s?null:(0,n.A)((0,n.A)({},s),{},{cellKey:t})),[s,t]);return v.createElement(I.Provider,{value:i},r)}class L extends v.Component{constructor(){super(...arguments),this.state={separatorProps:{highlighted:!1,leadingItem:this.props.item}},this._separators={highlight:()=>{var e=this.props,t=e.cellKey,r=e.prevCellKey;this.props.onUpdateSeparators([t,r],{highlighted:!0})},unhighlight:()=>{var e=this.props,t=e.cellKey,r=e.prevCellKey;this.props.onUpdateSeparators([t,r],{highlighted:!1})},updateProps:(e,t)=>{var r=this.props,s=r.cellKey,i=r.prevCellKey;this.props.onUpdateSeparators(["leading"===e?i:s],t)}},this._onLayout=e=>{this.props.onCellLayout&&this.props.onCellLayout(e,this.props.cellKey,this.props.index)}}static getDerivedStateFromProps(e,t){return{separatorProps:(0,n.A)((0,n.A)({},t.separatorProps),{},{leadingItem:e.item})}}updateSeparatorProps(e){this.setState((t=>({separatorProps:(0,n.A)((0,n.A)({},t.separatorProps),e)})))}componentWillUnmount(){this.props.onUnmount(this.props.cellKey)}_renderElement(e,t,r,s){return t?v.createElement(t,{item:r,index:s,separators:this._separators}):e?e({item:r,index:s,separators:this._separators}):void f()(!1,"VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.")}render(){var e=this.props,t=e.CellRendererComponent,r=e.ItemSeparatorComponent,s=e.ListItemComponent,n=e.cellKey,o=e.horizontal,l=e.item,h=e.index,c=e.inversionStyle,d=e.onCellFocusCapture,u=e.onCellLayout,p=e.renderItem,f=this._renderElement(p,s,l,h),g=v.isValidElement(r)?r:r&&v.createElement(r,this.state.separatorProps),m=c?o?[M.rowReverse,c]:[M.columnReverse,c]:o?[M.row,c]:c,_=t?v.createElement(t,(0,i.A)({cellKey:n,index:h,item:l,style:m,onFocusCapture:d},u&&{onLayout:this._onLayout}),f,g):v.createElement(a.default,(0,i.A)({style:m,onFocusCapture:d},u&&{onLayout:this._onLayout}),f,g);return v.createElement(R,{cellKey:this.props.cellKey},_)}}var M=h.default.create({row:{flexDirection:"row"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}}),x=r(56074),w=r(40801),T=r.n(w),A=!1;function E(e){return null!=e&&e}function P(e){return null!=e?e:10}function k(e){return null!=e?e:2}function F(e,t){return e*t/2}function O(e){return null!=e?e:21}class H extends C{scrollToEnd(e){var t=!e||e.animated,r=this.props.getItemCount(this.props.data)-1;if(!(r<0)){var s=this.__getFrameMetricsApprox(r,this.props),i=Math.max(0,s.offset+s.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&null!=this._scrollRef.scrollTo&&this._scrollRef.scrollTo(E(this.props.horizontal)?{x:i,animated:t}:{y:i,animated:t})}}scrollToIndex(e){var t=this.props,r=t.data,s=t.horizontal,i=t.getItemCount,n=t.getItemLayout,o=t.onScrollToIndexFailed,l=e.animated,a=e.index,h=e.viewOffset,c=e.viewPosition;if(f()(a>=0,"scrollToIndex out of range: requested index "+a+" but minimum is 0"),f()(i(r)>=1,"scrollToIndex out of range: item length "+i(r)+" but minimum is 1"),f()(a<i(r),"scrollToIndex out of range: requested index "+a+" is out of 0 to "+(i(r)-1)),!n&&a>this._highestMeasuredFrameIndex)return f()(!!o,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void o({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:a});var d=this.__getFrameMetricsApprox(Math.floor(a),this.props),u=Math.max(0,this._getOffsetApprox(a,this.props)-(c||0)*(this._scrollMetrics.visibleLength-d.length))-(h||0);null!=this._scrollRef&&null!=this._scrollRef.scrollTo&&this._scrollRef.scrollTo(s?{x:u,animated:l}:{y:u,animated:l})}scrollToItem(e){for(var t=e.item,r=this.props,s=r.data,i=r.getItem,o=(0,r.getItemCount)(s),l=0;l<o;l++)if(i(s,l)===t){this.scrollToIndex((0,n.A)((0,n.A)({},e),{},{index:l}));break}}scrollToOffset(e){var t=e.animated,r=e.offset;null!=this._scrollRef&&null!=this._scrollRef.scrollTo&&this._scrollRef.scrollTo(E(this.props.horizontal)?{x:r,animated:t}:{y:r,animated:t})}recordInteraction(){this._nestedChildLists.forEach((e=>{e.recordInteraction()})),this._viewabilityTuples.forEach((e=>{e.viewabilityHelper.recordInteraction()})),this._updateViewableItems(this.props,this.state.cellsAroundViewport)}flashScrollIndicators(){null!=this._scrollRef&&this._scrollRef.flashScrollIndicators()}getScrollResponder(){if(this._scrollRef&&this._scrollRef.getScrollResponder)return this._scrollRef.getScrollResponder()}getScrollableNode(){return this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode():this._scrollRef}getScrollRef(){return this._scrollRef&&this._scrollRef.getScrollRef?this._scrollRef.getScrollRef():this._scrollRef}_getCellKey(){var e;return(null==(e=this.context)?void 0:e.cellKey)||"rootList"}hasMore(){return this._hasMore}constructor(e){var t;if(super(e),this._getScrollMetrics=()=>this._scrollMetrics,this._getOutermostParentListRef=()=>this._isNestedWithSameOrientation()?this.context.getOutermostParentListRef():this,this._registerAsNestedChild=e=>{this._nestedChildLists.add(e.ref,e.cellKey),this._hasInteracted&&e.ref.recordInteraction()},this._unregisterAsNestedChild=e=>{this._nestedChildLists.remove(e.ref)},this._onUpdateSeparators=(e,t)=>{e.forEach((e=>{var r=null!=e&&this._cellRefs[e];r&&r.updateSeparatorProps(t)}))},this._getSpacerKey=e=>e?"height":"width",this._averageCellLength=0,this._cellRefs={},this._frames={},this._footerLength=0,this._hasTriggeredInitialScrollToIndex=!1,this._hasInteracted=!1,this._hasMore=!1,this._hasWarned={},this._headerLength=0,this._hiPriInProgress=!1,this._highestMeasuredFrameIndex=0,this._indicesToKeys=new Map,this._lastFocusedCellKey=null,this._nestedChildLists=new m,this._offsetFromParentVirtualizedList=0,this._prevParentOffset=0,this._scrollMetrics={contentLength:0,dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},this._scrollRef=null,this._sentStartForContentLength=0,this._sentEndForContentLength=0,this._totalCellLength=0,this._totalCellsMeasured=0,this._viewabilityTuples=[],this._captureScrollRef=e=>{this._scrollRef=e},this._defaultRenderScrollComponent=e=>{var t,r=e.onRefresh;return this._isNestedWithSameOrientation()?v.createElement(a.default,e):r?(f()("boolean"==typeof e.refreshing,"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `"+JSON.stringify(null!==(t=e.refreshing)&&void 0!==t?t:"undefined")+"`"),v.createElement(l.default,(0,i.A)({},e,{refreshControl:null==e.refreshControl?v.createElement(o.default,{refreshing:e.refreshing,onRefresh:r,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):v.createElement(l.default,e)},this._onCellLayout=(e,t,r)=>{var s=e.nativeEvent.layout,i={offset:this._selectOffset(s),length:this._selectLength(s),index:r,inLayout:!0},n=this._frames[t];n&&i.offset===n.offset&&i.length===n.length&&r===n.index?this._frames[t].inLayout=!0:(this._totalCellLength+=i.length-(n?n.length:0),this._totalCellsMeasured+=n?0:1,this._averageCellLength=this._totalCellLength/this._totalCellsMeasured,this._frames[t]=i,this._highestMeasuredFrameIndex=Math.max(this._highestMeasuredFrameIndex,r),this._scheduleCellsToRenderUpdate()),this._triggerRemeasureForChildListsInCell(t),this._computeBlankness(),this._updateViewableItems(this.props,this.state.cellsAroundViewport)},this._onCellUnmount=e=>{delete this._cellRefs[e];var t=this._frames[e];t&&(this._frames[e]=(0,n.A)((0,n.A)({},t),{},{inLayout:!1}))},this._onLayout=e=>{this._isNestedWithSameOrientation()?this.measureLayoutRelativeToContainingList():this._scrollMetrics.visibleLength=this._selectLength(e.nativeEvent.layout),this.props.onLayout&&this.props.onLayout(e),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._onLayoutEmpty=e=>{this.props.onLayout&&this.props.onLayout(e)},this._onLayoutFooter=e=>{this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()),this._footerLength=this._selectLength(e.nativeEvent.layout)},this._onLayoutHeader=e=>{this._headerLength=this._selectLength(e.nativeEvent.layout)},this._onContentSizeChange=(e,t)=>{e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex<this.props.getItemCount(this.props.data)?this.scrollToIndex({animated:!1,index:T()(this.props.initialScrollIndex)}):this.scrollToEnd({animated:!1})),this._hasTriggeredInitialScrollToIndex=!0),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t),this._scrollMetrics.contentLength=this._selectLength({height:t,width:e}),this._scheduleCellsToRenderUpdate(),this._maybeCallOnEdgeReached()},this._convertParentScrollMetrics=e=>{var t=e.offset-this._offsetFromParentVirtualizedList,r=e.visibleLength,s=t-this._scrollMetrics.offset;return{visibleLength:r,contentLength:this._scrollMetrics.contentLength,offset:t,dOffset:s}},this._onScroll=e=>{this._nestedChildLists.forEach((t=>{t._onScroll(e)})),this.props.onScroll&&this.props.onScroll(e);var t=e.timeStamp,r=this._selectLength(e.nativeEvent.layoutMeasurement),s=this._selectLength(e.nativeEvent.contentSize),i=this._selectOffset(e.nativeEvent.contentOffset),n=i-this._scrollMetrics.offset;if(this._isNestedWithSameOrientation()){if(0===this._scrollMetrics.contentLength)return;var o=this._convertParentScrollMetrics({visibleLength:r,offset:i});r=o.visibleLength,s=o.contentLength,i=o.offset,n=o.dOffset}var l=this._scrollMetrics.timestamp?Math.max(1,t-this._scrollMetrics.timestamp):1,a=n/l;l>500&&this._scrollMetrics.dt>500&&s>5*r&&!this._hasWarned.perf&&(u("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:l,prevDt:this._scrollMetrics.dt,contentLength:s}),this._hasWarned.perf=!0);var h=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;this._scrollMetrics={contentLength:s,dt:l,dOffset:n,offset:i,timestamp:t,velocity:a,visibleLength:r,zoomScale:h},this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.props&&(this._maybeCallOnEdgeReached(),0!==a&&this._fillRateHelper.activate(),this._computeBlankness(),this._scheduleCellsToRenderUpdate())},this._onScrollBeginDrag=e=>{this._nestedChildLists.forEach((t=>{t._onScrollBeginDrag(e)})),this._viewabilityTuples.forEach((e=>{e.viewabilityHelper.recordInteraction()})),this._hasInteracted=!0,this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},this._onScrollEndDrag=e=>{this._nestedChildLists.forEach((t=>{t._onScrollEndDrag(e)}));var t=e.nativeEvent.velocity;t&&(this._scrollMetrics.velocity=this._selectOffset(t)),this._computeBlankness(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},this._onMomentumScrollBegin=e=>{this._nestedChildLists.forEach((t=>{t._onMomentumScrollBegin(e)})),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},this._onMomentumScrollEnd=e=>{this._nestedChildLists.forEach((t=>{t._onMomentumScrollEnd(e)})),this._scrollMetrics.velocity=0,this._computeBlankness(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},this._updateCellsToRender=()=>{this._updateViewableItems(this.props,this.state.cellsAroundViewport),this.setState(((e,t)=>{var r=this._adjustCellsAroundViewport(t,e.cellsAroundViewport),s=H._createRenderMask(t,r,this._getNonViewportRenderRegions(t));return r.first===e.cellsAroundViewport.first&&r.last===e.cellsAroundViewport.last&&s.equals(e.renderMask)?null:{cellsAroundViewport:r,renderMask:s}}))},this._createViewToken=(e,t,r)=>{var s=r.data,i=(0,r.getItem)(s,e);return{index:e,item:i,key:this._keyExtractor(i,e,r),isViewable:t}},this._getOffsetApprox=(e,t)=>{if(Number.isInteger(e))return this.__getFrameMetricsApprox(e,t).offset;var r=this.__getFrameMetricsApprox(Math.floor(e),t),s=e-Math.floor(e);return r.offset+s*r.length},this.__getFrameMetricsApprox=(e,t)=>{var r=this._getFrameMetrics(e,t);if(r&&r.index===e)return r;var s=t.data,i=t.getItemCount,n=t.getItemLayout;return f()(e>=0&&e<i(s),"Tried to get frame for out of range index "+e),f()(!n,"Should not have to estimate frames when a measurement metrics function is provided"),{length:this._averageCellLength,offset:this._averageCellLength*e}},this._getFrameMetrics=(e,t)=>{var r=t.data,s=t.getItem,i=t.getItemCount,n=t.getItemLayout;f()(e>=0&&e<i(r),"Tried to get frame for out of range index "+e);var o=s(r,e),l=this._frames[this._keyExtractor(o,e,t)];return l&&l.index===e||!n?l:n(r,e)},this._getNonViewportRenderRegions=e=>{if(!this._lastFocusedCellKey||!this._cellRefs[this._lastFocusedCellKey])return[];var t=this._cellRefs[this._lastFocusedCellKey].props.index,r=e.getItemCount(e.data);if(t>=r||this._keyExtractor(e.getItem(e.data,t),t,e)!==this._lastFocusedCellKey)return[];for(var s=t,i=0,n=s-1;n>=0&&i<this._scrollMetrics.visibleLength;n--)s--,i+=this.__getFrameMetricsApprox(n,e).length;for(var o=t,l=0,a=o+1;a<r&&l<this._scrollMetrics.visibleLength;a++)o++,l+=this.__getFrameMetricsApprox(a,e).length;return[{first:s,last:o}]},this._checkProps(e),this._fillRateHelper=new _.A(this._getFrameMetrics),this._updateCellsToRenderBatcher=new c.A(this._updateCellsToRender,null!==(t=this.props.updateCellsBatchingPeriod)&&void 0!==t?t:50),this.props.viewabilityConfigCallbackPairs)this._viewabilityTuples=this.props.viewabilityConfigCallbackPairs.map((e=>({viewabilityHelper:new S(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged})));else{var r=this.props,s=r.onViewableItemsChanged,h=r.viewabilityConfig;s&&this._viewabilityTuples.push({viewabilityHelper:new S(h),onViewableItemsChanged:s})}var d=H._initialRenderRegion(e);this.state={cellsAroundViewport:d,renderMask:H._createRenderMask(e,d)},this.invertedWheelEventHandler=e=>{var t=this.props.horizontal?e.target.scrollLeft:e.target.scrollTop,r=this.props.horizontal?e.target.scrollWidth:e.target.scrollHeight,s=this.props.horizontal?e.target.clientWidth:e.target.clientHeight,i=r>s,n=this.props.horizontal?e.deltaX||e.wheelDeltaX:e.deltaY||e.wheelDeltaY,o=n;i&&(o=n<0?Math.min(n+t,0):Math.max(n-(r-s-t),0));var l=n-o;if(this.props.inverted&&this._scrollRef&&this._scrollRef.getScrollableNode){var a=this._scrollRef.getScrollableNode();if(this.props.horizontal){e.target.scrollLeft+=l;var h=a.scrollLeft-o;a.scrollLeft=this.props.getItemLayout?h:Math.min(h,this._totalCellLength)}else{e.target.scrollTop+=l;var c=a.scrollTop-o;a.scrollTop=this.props.getItemLayout?c:Math.min(c,this._totalCellLength)}e.preventDefault()}}}_checkProps(e){var t=e.onScroll,r=e.windowSize,s=e.getItemCount,i=e.data,n=e.initialScrollIndex;f()(!t||!t.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),f()(O(r)>0,"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."),f()(s,'VirtualizedList: The "getItemCount" prop must be provided');var o=s(i);null==n||this._hasTriggeredInitialScrollToIndex||!(n<0||o>0&&n>=o)||this._hasWarned.initialScrollIndex||(this._hasWarned.initialScrollIndex=!0)}static _createRenderMask(e,t,r){var s=e.getItemCount(e.data);f()(t.first>=0&&t.last>=t.first-1&&t.last<s,'Invalid cells around viewport "['+t.first+", "+t.last+']" was passed to VirtualizedList._createRenderMask');var i=new g(s);if(s>0){for(var n=0,o=[t,...null!=r?r:[]];n<o.length;n++){var l=o[n];i.addCells(l)}if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var a=H._initialRenderRegion(e);i.addCells(a)}var h=new Set(e.stickyHeaderIndices);H._ensureClosestStickyHeader(e,h,i,t.first)}return i}static _initialRenderRegion(e){var t,r,s=e.getItemCount(e.data),i=Math.max(0,Math.min(s-1,Math.floor(null!==(t=e.initialScrollIndex)&&void 0!==t?t:0)));return{first:i,last:Math.min(s,i+(null!=(r=e.initialNumToRender)?r:10))-1}}static _ensureClosestStickyHeader(e,t,r,s){for(var i=e.ListHeaderComponent?1:0,n=s-1;n>=0;n--)if(t.has(n+i)){r.addCells({first:n,last:n});break}}_adjustCellsAroundViewport(e,t){var r,s=e.data,i=e.getItemCount,n=k(e.onEndReachedThreshold),o=this._scrollMetrics,l=o.contentLength,a=o.offset,h=o.visibleLength,c=l-h-a;if(h<=0||l<=0)return t.last>=i(s)?H._constrainToItemCount(t,e):t;if(e.disableVirtualization){var d=c<n*h?P(e.maxToRenderPerBatch):0;r={first:0,last:Math.min(t.last+d,i(s)-1)}}else{if(e.initialScrollIndex&&!this._scrollMetrics.offset&&Math.abs(c)>=Number.EPSILON)return t.last>=i(s)?H._constrainToItemCount(t,e):t;r=(0,x.pT)(e,P(e.maxToRenderPerBatch),O(e.windowSize),t,this.__getFrameMetricsApprox,this._scrollMetrics),f()(r.last<i(s),"computeWindowedRenderLimits() should return range in-bounds")}if(this._nestedChildLists.size()>0){var u=this._findFirstChildWithMore(r.first,r.last);r.last=null!=u?u:r.last}return r}_findFirstChildWithMore(e,t){for(var r=e;r<=t;r++){var s=this._indicesToKeys.get(r);if(null!=s&&this._nestedChildLists.anyInCell(s,(e=>e.hasMore())))return r}return null}componentDidMount(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey}),this.setupWebWheelHandler()}componentWillUnmount(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach((e=>{e.viewabilityHelper.dispose()})),this._fillRateHelper.deactivateAndFlush(),this.teardownWebWheelHandler()}setupWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode?this._scrollRef.getScrollableNode().addEventListener("wheel",this.invertedWheelEventHandler):setTimeout((()=>this.setupWebWheelHandler()),50)}teardownWebWheelHandler(){this._scrollRef&&this._scrollRef.getScrollableNode&&this._scrollRef.getScrollableNode().removeEventListener("wheel",this.invertedWheelEventHandler)}static getDerivedStateFromProps(e,t){if(e.getItemCount(e.data)===t.renderMask.numCells())return t;var r=H._constrainToItemCount(t.cellsAroundViewport,e);return{cellsAroundViewport:r,renderMask:H._createRenderMask(e,r)}}_pushCells(e,t,r,s,n,o){var l,a=this,h=this.props,c=h.CellRendererComponent,d=h.ItemSeparatorComponent,u=h.ListHeaderComponent,p=h.ListItemComponent,f=h.data,g=h.debug,m=h.getItem,_=h.getItemCount,C=h.getItemLayout,y=h.horizontal,S=h.renderItem,I=u?1:0,b=_(f)-1;n=Math.min(b,n);for(var R=function(){var s=m(f,M),n=a._keyExtractor(s,M,a.props);a._indicesToKeys.set(M,n),r.has(M+I)&&t.push(e.length);var h=null==C||g||a._fillRateHelper.enabled();e.push(v.createElement(L,(0,i.A)({CellRendererComponent:c,ItemSeparatorComponent:M<b?d:void 0,ListItemComponent:p,cellKey:n,horizontal:y,index:M,inversionStyle:o,item:s,key:n,prevCellKey:l,onUpdateSeparators:a._onUpdateSeparators,onCellFocusCapture:e=>a._onCellFocusCapture(n),onUnmount:a._onCellUnmount,ref:e=>{a._cellRefs[n]=e},renderItem:S},h&&{onCellLayout:a._onCellLayout}))),l=n},M=s;M<=n;M++)R()}static _constrainToItemCount(e,t){var r=t.getItemCount(t.data),s=Math.min(r-1,e.last),i=P(t.maxToRenderPerBatch);return{first:d(0,r-1-i,e.first),last:s}}_isNestedWithSameOrientation(){var e=this.context;return!(!e||!!e.horizontal!==E(this.props.horizontal))}_keyExtractor(e,t,r){if(null!=r.keyExtractor)return r.keyExtractor(e,t);var s=(0,x.It)(e,t);return s===String(t)&&(A=!0,e.type&&e.type.displayName&&e.type.displayName),s}render(){this._checkProps(this.props);var e=this.props,t=e.ListEmptyComponent,r=e.ListFooterComponent,i=e.ListHeaderComponent,o=this.props,l=o.data,h=o.horizontal,c=this.props.inverted?E(this.props.horizontal)?V.horizontallyInverted:V.verticallyInverted:null,u=[],p=new Set(this.props.stickyHeaderIndices),f=[];if(i){p.has(0)&&f.push(0);var g=v.isValidElement(i)?i:v.createElement(i,null);u.push(v.createElement(R,{cellKey:this._getCellKey()+"-header",key:"$header"},v.createElement(a.default,{onLayout:this._onLayoutHeader,style:[c,this.props.ListHeaderComponentStyle]},g)))}var m=this.props.getItemCount(l);if(0===m&&t){var _=v.isValidElement(t)?t:v.createElement(t,null);u.push(v.createElement(R,{cellKey:this._getCellKey()+"-empty",key:"$empty"},v.cloneElement(_,{onLayout:e=>{this._onLayoutEmpty(e),_.props.onLayout&&_.props.onLayout(e)},style:[c,_.props.style]})))}if(m>0){A=!1;for(var C,y=this._getSpacerKey(!h),S=this.state.renderMask.enumerateRegions(),I=function(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return e[r];return null}(S,(e=>e.isSpacer)),L=(0,s.A)(S);!(C=L()).done;){var M=C.value;if(M.isSpacer){if(this.props.disableVirtualization)continue;var x=M===I&&!this.props.getItemLayout?d(M.first-1,M.last,this._highestMeasuredFrameIndex):M.last,w=this.__getFrameMetricsApprox(M.first,this.props),T=this.__getFrameMetricsApprox(x,this.props),P=T.offset+T.length-w.offset;u.push(v.createElement(a.default,{key:"$spacer-"+M.first,style:{[y]:P}}))}else this._pushCells(u,f,p,M.first,M.last,c)}!this._hasWarned.keys&&A&&(this._hasWarned.keys=!0)}if(r){var k=v.isValidElement(r)?r:v.createElement(r,null);u.push(v.createElement(R,{cellKey:this._getFooterCellKey(),key:"$footer"},v.createElement(a.default,{onLayout:this._onLayoutFooter,style:[c,this.props.ListFooterComponentStyle]},k)))}var F,O=(0,n.A)((0,n.A)({},this.props),{},{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:(F=this.props.scrollEventThrottle,null!=F?F:50),invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:f,style:c?[c,this.props.style]:this.props.style});this._hasMore=this.state.cellsAroundViewport.last<m-1;var H=v.createElement(b,{value:{cellKey:null,getScrollMetrics:this._getScrollMetrics,horizontal:E(this.props.horizontal),getOutermostParentListRef:this._getOutermostParentListRef,registerAsNestedChild:this._registerAsNestedChild,unregisterAsNestedChild:this._unregisterAsNestedChild}},v.cloneElement((this.props.renderScrollComponent||this._defaultRenderScrollComponent)(O),{ref:this._captureScrollRef},u));return this.props.debug?v.createElement(a.default,{style:V.debug},H,this._renderDebugOverlay()):H}componentDidUpdate(e){var t=this.props,r=t.data,s=t.extraData;r===e.data&&s===e.extraData||this._viewabilityTuples.forEach((e=>{e.viewabilityHelper.resetViewableIndices()}));var i=this._hiPriInProgress;this._scheduleCellsToRenderUpdate(),i&&(this._hiPriInProgress=!1)}_computeBlankness(){this._fillRateHelper.computeBlankness(this.props,this.state.cellsAroundViewport,this._scrollMetrics)}_onCellFocusCapture(e){this._lastFocusedCellKey=e,this._updateCellsToRender()}_triggerRemeasureForChildListsInCell(e){this._nestedChildLists.forEachInCell(e,(e=>{e.measureLayoutRelativeToContainingList()}))}measureLayoutRelativeToContainingList(){try{if(!this._scrollRef)return;this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(),((e,t,r,s)=>{this._offsetFromParentVirtualizedList=this._selectOffset({x:e,y:t}),this._scrollMetrics.contentLength=this._selectLength({width:r,height:s});var i=this._convertParentScrollMetrics(this.context.getScrollMetrics());(this._scrollMetrics.visibleLength!==i.visibleLength||this._scrollMetrics.offset!==i.offset)&&(this._scrollMetrics.visibleLength=i.visibleLength,this._scrollMetrics.offset=i.offset,this._nestedChildLists.forEach((e=>{e.measureLayoutRelativeToContainingList()})))}),(e=>{}))}catch(e){}}_getFooterCellKey(){return this._getCellKey()+"-footer"}_renderDebugOverlay(){for(var e=this._scrollMetrics.visibleLength/(this._scrollMetrics.contentLength||1),t=[],r=this.props.getItemCount(this.props.data),s=0;s<r;s++){var i=this.__getFrameMetricsApprox(s,this.props);i.inLayout&&t.push(i)}var n=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.first,this.props).offset,o=this.__getFrameMetricsApprox(this.state.cellsAroundViewport.last,this.props),l=o.offset+o.length-n,h=this._scrollMetrics.offset,c=this._scrollMetrics.visibleLength;return v.createElement(a.default,{style:[V.debugOverlayBase,V.debugOverlay]},t.map(((t,r)=>v.createElement(a.default,{key:"f"+r,style:[V.debugOverlayBase,V.debugOverlayFrame,{top:t.offset*e,height:t.length*e}]}))),v.createElement(a.default,{style:[V.debugOverlayBase,V.debugOverlayFrameLast,{top:n*e,height:l*e}]}),v.createElement(a.default,{style:[V.debugOverlayBase,V.debugOverlayFrameVis,{top:h*e,height:c*e}]}))}_selectLength(e){return E(this.props.horizontal)?e.width:e.height}_selectOffset(e){return E(this.props.horizontal)?e.x:e.y}_maybeCallOnEdgeReached(){var e=this.props,t=e.data,r=e.getItemCount,s=e.onStartReached,i=e.onStartReachedThreshold,n=e.onEndReached,o=e.onEndReachedThreshold,l=e.initialScrollIndex,a=this._scrollMetrics,h=a.contentLength,c=a.visibleLength,d=a.offset,u=d,p=h-c-d;u<.001&&(u=0),p<.001&&(p=0);var f=u<=(null!=i?i*c:2),g=p<=(null!=o?o*c:2);n&&this.state.cellsAroundViewport.last===r(t)-1&&g&&this._scrollMetrics.contentLength!==this._sentEndForContentLength?(this._sentEndForContentLength=this._scrollMetrics.contentLength,n({distanceFromEnd:p})):null!=s&&0===this.state.cellsAroundViewport.first&&f&&this._scrollMetrics.contentLength!==this._sentStartForContentLength?l&&0===this._scrollMetrics.timestamp||(this._sentStartForContentLength=this._scrollMetrics.contentLength,s({distanceFromStart:u})):(this._sentStartForContentLength=f?this._sentStartForContentLength:0,this._sentEndForContentLength=g?this._sentEndForContentLength:0)}_scheduleCellsToRenderUpdate(){var e=this.state.cellsAroundViewport,t=e.first,r=e.last,s=this._scrollMetrics,i=s.offset,n=s.visibleLength,o=s.velocity,l=this.props.getItemCount(this.props.data),a=!1,h=function(e){return null!=e?e:2}(this.props.onStartReachedThreshold),c=k(this.props.onEndReachedThreshold);if(t>0){var d=i-this.__getFrameMetricsApprox(t,this.props).offset;a=d<0||o<-2&&d<F(h,n)}if(!a&&r>=0&&r<l-1){var u=this.__getFrameMetricsApprox(r,this.props).offset-(i+n);a=u<0||o>2&&u<F(c,n)}if(a&&(this._averageCellLength||this.props.getItemLayout)&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}_updateViewableItems(e,t){this._viewabilityTuples.forEach((r=>{r.viewabilityHelper.onUpdate(e,this._scrollMetrics.offset,this._scrollMetrics.visibleLength,this._getFrameMetrics,this._createViewToken,r.onViewableItemsChanged,t)}))}}H.contextType=I;var V=h.default.create({verticallyInverted:{transform:"scaleY(-1)"},horizontallyInverted:{transform:"scaleX(-1)"},debug:{flex:1},debugOverlayBase:{position:"absolute",top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:"blue",borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:"orange"},debugOverlayFrameLast:{left:0,borderColor:"green",borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:"red",borderWidth:2}});const K=H},56074:(e,t,r)=>{function s(e,t,r,s,i,n){var o=e.getItemCount(e.data);if(0===o)return{first:0,last:-1};var l=n.offset,a=n.velocity,h=n.visibleLength,c=n.zoomScale,d=void 0===c?1:c,u=Math.max(0,l),p=u+h,f=(r-1)*h,g=a>1?"after":a<-1?"before":"none",m=Math.max(0,u-.5*f),_=Math.max(0,p+.5*f);if(i(o-1,e).offset*d<m)return{first:Math.max(0,o-1-t),last:o-1};var v=function(e,t,r,s){void 0===s&&(s=1);for(var i=t.getItemCount(t.data),n=[],o=0;o<e.length;o++)for(var l=e[o],a=0,h=i-1;a<=h;){var c=a+(h-a>>>1),d=r(c,t),u=d.offset*s,p=(d.offset+d.length)*s;if(0===c&&l<u||0!==c&&l<=u)h=c-1;else{if(!(l>p)){n[o]=c;break}a=c+1}}return n}([m,u,p,_],e,i,d),C=v[0],y=v[1],S=v[2],I=v[3];C=null==C?0:C,I=null==I?o-1:I;for(var b={first:y=null==y?Math.max(0,C):y,last:S=null==S?Math.min(I,y+t-1):S},R=function(e,t){return t.last-t.first+1-Math.max(0,1+Math.min(t.last,e.last)-Math.max(t.first,e.first))}(s,b);!(y<=C&&S>=I);){var L=R>=t,M=y<=s.first||y>s.last,x=y>C&&(!L||!M),w=S>=s.last||S<s.first,T=S<I&&(!L||!w);if(L&&!x&&!T)break;!x||"after"===g&&T&&w||(M&&R++,y--),!T||"before"===g&&x&&M||(w&&R++,S++)}if(!(S>=y&&y>=0&&S<o&&y>=C&&S<=I&&y<=b.first&&S>=b.last))throw new Error("Bad window calculation "+JSON.stringify({first:y,last:S,itemCount:o,overscanFirst:C,overscanLast:I,visible:b}));return{first:y,last:S}}function i(e,t){return"object"==typeof e&&null!=(null==e?void 0:e.key)?e.key:"object"==typeof e&&null!=(null==e?void 0:e.id)?e.id:String(t)}r.d(t,{It:()=>i,pT:()=>s})},56079:(e,t,r)=>{r.d(t,{A:()=>s});const s={isLayoutAnimationEnabled:()=>!0,shouldEmitW3CPointerEvents:()=>!1,shouldPressibilityUseW3CPointerEventsForHover:()=>!1,animatedShouldDebounceQueueFlush:()=>!1,animatedShouldUseSingleOp:()=>!1}},76699:(e,t,r)=>{r.d(t,{A:()=>C});var s=r(58168),i=r(98587),n=r(67862),o=r(36782),l=r(3098),a=r(22555),h=r(9176),c=r(44584),d=r(56074),u=r(74548),p=r.n(u),f=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];class g extends o.PureComponent{constructor(){super(...arguments),this._keyExtractor=(e,t)=>{var r=this._subExtractor(t);return r&&r.key||String(t)},this._convertViewable=e=>{var t;p()(null!=e.index,"Received a broken ViewToken");var r=this._subExtractor(e.index);if(!r)return null;var s=r.section.keyExtractor,i=this.props.keyExtractor||d.It,n=null!=s?s(e.item,r.index):i(e.item,null!==(t=r.index)&&void 0!==t?t:0);return(0,a.A)((0,a.A)({},e),{},{index:r.index,key:n,section:r.section})},this._onViewableItemsChanged=e=>{var t=e.viewableItems,r=e.changed,s=this.props.onViewableItemsChanged;null!=s&&s({viewableItems:t.map(this._convertViewable,this).filter(Boolean),changed:r.map(this._convertViewable,this).filter(Boolean)})},this._renderItem=e=>t=>{var r=t.item,s=t.index,i=this._subExtractor(s);if(!i)return null;var n=i.index;if(null==n){var l=i.section;if(!0===i.header){var a=this.props.renderSectionHeader;return a?a({section:l}):null}var h=this.props.renderSectionFooter;return h?h({section:l}):null}var c=i.section.renderItem||this.props.renderItem,d=this._getSeparatorComponent(s,i,e);return p()(c,"no renderItem!"),o.createElement(m,{SeparatorComponent:d,LeadingSeparatorComponent:0===n?this.props.SectionSeparatorComponent:void 0,cellKey:i.key,index:n,item:r,leadingItem:i.leadingItem,leadingSection:i.leadingSection,prevCellKey:(this._subExtractor(s-1)||{}).key,setSelfHighlightCallback:this._setUpdateHighlightFor,setSelfUpdatePropsCallback:this._setUpdatePropsFor,updateHighlightFor:this._updateHighlightFor,updatePropsFor:this._updatePropsFor,renderItem:c,section:i.section,trailingItem:i.trailingItem,trailingSection:i.trailingSection,inverted:!!this.props.inverted})},this._updatePropsFor=(e,t)=>{var r=this._updatePropsMap[e];null!=r&&r(t)},this._updateHighlightFor=(e,t)=>{var r=this._updateHighlightMap[e];null!=r&&r(t)},this._setUpdateHighlightFor=(e,t)=>{null!=t?this._updateHighlightMap[e]=t:delete this._updateHighlightFor[e]},this._setUpdatePropsFor=(e,t)=>{null!=t?this._updatePropsMap[e]=t:delete this._updatePropsMap[e]},this._updateHighlightMap={},this._updatePropsMap={},this._captureRef=e=>{this._listRef=e}}scrollToLocation(e){for(var t=e.itemIndex,r=0;r<e.sectionIndex;r++)t+=this.props.getItemCount(this.props.sections[r].data)+2;var s=e.viewOffset||0;if(null!=this._listRef){if(e.itemIndex>0&&this.props.stickySectionHeadersEnabled)s+=this._listRef.__getFrameMetricsApprox(t-e.itemIndex,this._listRef.props).length;var i=(0,a.A)((0,a.A)({},e),{},{viewOffset:s,index:t});this._listRef.scrollToIndex(i)}}getListRef(){return this._listRef}render(){for(var e,t=this.props,r=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,i.A)(t,f)),n=this.props.ListHeaderComponent?1:0,a=this.props.stickySectionHeadersEnabled?[]:void 0,h=0,d=(0,l.A)(this.props.sections);!(e=d()).done;){var u=e.value;null!=a&&a.push(h+n),h+=2,h+=this.props.getItemCount(u.data)}var p=this._renderItem(h);return o.createElement(c.A,(0,s.A)({},r,{keyExtractor:this._keyExtractor,stickyHeaderIndices:a,renderItem:p,data:this.props.sections,getItem:(e,t)=>this._getItem(this.props,e,t),getItemCount:()=>h,onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}_getItem(e,t,r){if(!t)return null;for(var s=r-1,i=0;i<t.length;i++){var n=t[i],o=n.data,l=e.getItemCount(o);if(-1===s||s===l)return n;if(s<l)return e.getItem(o,s);s-=l+2}return null}_subExtractor(e){for(var t=e,r=this.props,s=r.getItem,i=r.getItemCount,n=r.keyExtractor,o=r.sections,l=0;l<o.length;l++){var a=o[l],h=a.data,c=a.key||String(l);if(!((t-=1)>=i(h)+1))return-1===t?{section:a,key:c+":header",index:null,header:!0,trailingSection:o[l+1]}:t===i(h)?{section:a,key:c+":footer",index:null,header:!1,trailingSection:o[l+1]}:{section:a,key:c+":"+(a.keyExtractor||n||d.It)(s(h,t),t),index:t,leadingItem:s(h,t-1),leadingSection:o[l-1],trailingItem:s(h,t+1),trailingSection:o[l+1]};t-=i(h)+1}}_getSeparatorComponent(e,t,r){if(!(t=t||this._subExtractor(e)))return null;var s=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,n=e===r-1,o=t.index===this.props.getItemCount(t.section.data)-1;return i&&o?i:!s||o||n?null:s}}function m(e){var t=e.LeadingSeparatorComponent,r=e.SeparatorComponent,i=e.cellKey,n=e.prevCellKey,l=e.setSelfHighlightCallback,c=e.updateHighlightFor,d=e.setSelfUpdatePropsCallback,u=e.updatePropsFor,p=e.item,f=e.index,g=e.section,m=e.inverted,_=o.useState(!1),v=_[0],C=_[1],y=o.useState(!1),S=y[0],I=y[1],b=o.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),R=b[0],L=b[1],M=o.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),x=M[0],w=M[1];o.useEffect((()=>(l(i,I),d(i,w),()=>{d(i,null),l(i,null)})),[i,l,w,d]);var T={highlight:()=>{C(!0),I(!0),null!=n&&c(n,!0)},unhighlight:()=>{C(!1),I(!1),null!=n&&c(n,!1)},updateProps:(e,s)=>{"leading"===e?null!=t?L((0,a.A)((0,a.A)({},R),s)):null!=n&&u(n,(0,a.A)((0,a.A)({},R),s)):"trailing"===e&&null!=r&&w((0,a.A)((0,a.A)({},x),s))}},A=e.renderItem({item:p,index:f,section:g,separators:T}),E=null!=t&&o.createElement(t,(0,s.A)({highlighted:v},R)),P=null!=r&&o.createElement(r,(0,s.A)({highlighted:S},x));return E||P?o.createElement(h.default,null,!1===m?E:P,A,!1===m?P:E):A}const _=g;var v=["stickySectionHeadersEnabled"];class C extends o.PureComponent{constructor(){super(...arguments),this._captureRef=e=>{this._wrapperListRef=e}}scrollToLocation(e){null!=this._wrapperListRef&&this._wrapperListRef.scrollToLocation(e)}recordInteraction(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.recordInteraction()}flashScrollIndicators(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();e&&e.flashScrollIndicators()}getScrollResponder(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollResponder()}getScrollableNode(){var e=this._wrapperListRef&&this._wrapperListRef.getListRef();if(e)return e.getScrollableNode()}render(){var e=this.props,t=e.stickySectionHeadersEnabled,r=(0,i.A)(e,v),l=null!=t?t:"ios"===n.default.OS;return o.createElement(_,(0,s.A)({},r,{stickySectionHeadersEnabled:l,ref:this._captureRef,getItemCount:e=>e.length,getItem:(e,t)=>e[t]}))}}},80035:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(36782);function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.useCallback)((e=>{for(var r=0,s=t;r<s.length;r++){var i=s[r];null!=i&&("function"==typeof i?i(e):i.current=e)}}),[...t])}},81002:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(67862),i=r(22486);function n(e,t){s.default.isTesting||i.default.configureNextLayoutAnimation(e,null!=t?t:function(){},(function(){}))}function o(e,t,r){return{duration:e,create:{type:t,property:r},update:{type:t},delete:{type:t,property:r}}}var l={easeInEaseOut:o(300,"easeInEaseOut","opacity"),linear:o(500,"linear","opacity"),spring:{duration:700,create:{type:"linear",property:"opacity"},update:{type:"spring",springDamping:.4},delete:{type:"linear",property:"opacity"}}};const a={configureNext:n,create:o,Types:Object.freeze({spring:"spring",linear:"linear",easeInEaseOut:"easeInEaseOut",easeIn:"easeIn",easeOut:"easeOut",keyboard:"keyboard"}),Properties:Object.freeze({opacity:"opacity",scaleX:"scaleX",scaleY:"scaleY",scaleXY:"scaleXY"}),checkConfig(){},Presets:l,easeInEaseOut:n.bind(null,l.easeInEaseOut),linear:n.bind(null,l.linear),spring:n.bind(null,l.spring)}},85813:(e,t,r)=>{r.d(t,{A:()=>g});var s=r(80067),i={centroidDimension:function(e,t,r,s){var n=e.touchBank,o=0,l=0,a=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==a)a.touchActive&&a.currentTimeStamp>t&&(o+=s&&r?a.currentPageX:s&&!r?a.currentPageY:!s&&r?a.previousPageX:a.previousPageY,l=1);else for(var h=0;h<n.length;h++){var c=n[h];if(null!=c&&c.touchActive&&c.currentTimeStamp>=t){o+=s&&r?c.currentPageX:s&&!r?c.currentPageY:!s&&r?c.previousPageX:c.previousPageY,l++}}return l>0?o/l:i.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return i.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return i.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return i.centroidDimension(e,0,!1,!0)},noCentroid:-1};const n=i;var o=n.currentCentroidXOfTouchesChangedAfter,l=n.currentCentroidYOfTouchesChangedAfter,a=n.previousCentroidXOfTouchesChangedAfter,h=n.previousCentroidYOfTouchesChangedAfter,c=n.currentCentroidX,d=n.currentCentroidY,u={_initializeGestureState(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=o(t,e._accountsForMovesUpTo),e.moveY=l(t,e._accountsForMovesUpTo);var r=e._accountsForMovesUpTo,s=a(t,r),i=o(t,r),n=h(t,r),c=l(t,r),d=e.dx+(i-s),u=e.dy+(c-n),p=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(d-e.dx)/p,e.vy=(u-e.dy)/p,e.dx=d,e.dy=u,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create(e){var t={handle:null,shouldCancelClick:!1,timeout:null},r={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:t=>null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,r),onMoveShouldSetResponder:t=>null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,r),onStartShouldSetResponderCapture:t=>(1===t.nativeEvent.touches.length&&u._initializeGestureState(r),r.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,r)),onMoveShouldSetResponderCapture(t){var s=t.touchHistory;return r._accountsForMovesUpTo!==s.mostRecentTimeStamp&&(u._updateGestureStateOnMove(r,s),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,r))},onResponderGrant:i=>(t.handle||(t.handle=s.default.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,r.x0=c(i.touchHistory),r.y0=d(i.touchHistory),r.dx=0,r.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(i,r),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(i,r)),onResponderReject(s){p(t,e.onPanResponderReject,s,r)},onResponderRelease(s){p(t,e.onPanResponderRelease,s,r),f(t),u._initializeGestureState(r)},onResponderStart(t){var s=t.touchHistory;r.numberActiveTouches=s.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,r)},onResponderMove(t){var s=t.touchHistory;r._accountsForMovesUpTo!==s.mostRecentTimeStamp&&(u._updateGestureStateOnMove(r,s),e.onPanResponderMove&&e.onPanResponderMove(t,r))},onResponderEnd(s){var i=s.touchHistory;r.numberActiveTouches=i.numberActiveTouches,p(t,e.onPanResponderEnd,s,r)},onResponderTerminate(s){p(t,e.onPanResponderTerminate,s,r),f(t),u._initializeGestureState(r)},onResponderTerminationRequest:t=>null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,r),onClickCapture:e=>{!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:()=>t.handle}}};function p(e,t,r,i){e.handle&&(s.default.clearInteractionHandle(e.handle),e.handle=null),t&&t(r,i)}function f(e){e.timeout=setTimeout((()=>{e.shouldCancelClick=!1}),250)}const g=u},86797:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(36782);function i(e){var t=(0,s.useRef)(void 0);return(0,s.useCallback)((r=>{t.current&&(t.current(),t.current=void 0),null!=r&&(t.current=e(r))}),[e])}},93365:(e,t,r)=>{r.d(t,{J:()=>s});r(74548);function s(e){return null}}}]);