diff --git a/_expo/static/js/web/index-a8a9b000db0f4e211573aa5e81fadce7.js b/_expo/static/js/web/index-6d454e1d76d39a96da359e839b8a2648.js similarity index 99% rename from _expo/static/js/web/index-a8a9b000db0f4e211573aa5e81fadce7.js rename to _expo/static/js/web/index-6d454e1d76d39a96da359e839b8a2648.js index 89b449aa..d1dec609 100644 --- a/_expo/static/js/web/index-a8a9b000db0f4e211573aa5e81fadce7.js +++ b/_expo/static/js/web/index-6d454e1d76d39a96da359e839b8a2648.js @@ -347,7 +347,7 @@ __d((function(g,r,i,a,m,e,d){var t=/\s/;m.exports=function(n){for(var o=n.length __d((function(g,r,i,a,m,e,d){var o=r(d[0]),t=r(d[1]);m.exports=function(n){return'symbol'==typeof n||t(n)&&"[object Symbol]"==o(n)}}),297,[283,298]); __d((function(g,r,i,a,m,e,d){m.exports=function(n){return null!=n&&'object'==typeof n}}),298,[]); __d((function(g,_r,i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.VirtualizedListWithSize=void 0;var e=t(_r(d[1])),r=t(_r(d[2])),n=t(_r(d[3])),o=t(_r(d[4])),c=_r(d[5]),s=_r(d[6]),u=_r(d[7]),l=_r(d[8]);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var r=1;r{const e='vertical'===t.orientation,[r,c]=(0,u.useState)(e?o.default.get('window').height:o.default.get('window').width),[f,O]=(0,u.useState)(!1);return(0,l.jsx)(n.default,{style:y.container,onLayout:t=>{if(!f){const r=e?'height':'width';0!==t.nativeEvent.layout[r]&&(c(t.nativeEvent.layout[r]),O(!0))}},testID:t.testID?t.testID+'-size-giver':void 0,children:(0,l.jsx)(s.VirtualizedList,p(p({},t),{},{listSizeInPx:r}))})}))).displayName='VirtualizedListWithSize';const y=r.default.create({container:{width:'100%',height:'100%'}})}),299,[1,8,29,156,183,274,300,16,136]); -__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualizedList=void 0;var n=r(d[1]),s=t(r(d[2])),l=t(r(d[3])),o=t(r(d[4])),c=(t(r(d[5])),r(d[6])),u=r(d[7]),I=r(d[8]),f=r(d[9]),h=r(d[10]),x=r(d[11]),b=r(d[12]),y=r(d[13]);const O=({numberOfItems:t,range:s,currentlyFocusedItemIndex:l,onEndReachedThresholdItemsNumber:o,onEndReached:c})=>{(0,n.useEffect)((()=>{0!==t&&0!==s.end&&l===Math.max(t-1-o,0)&&c?.()}),[c,s.end,l,o,t])},z=(0,I.typedMemo)((({item:t,index:s,renderItem:c,itemSize:u,vertical:I,data:f})=>{const h=(0,n.useCallback)(((t,n)=>'number'==typeof u?n*u:f.slice(0,n).reduce(((t,n)=>t+u(n)),0)),[f,u]),x=(0,n.useMemo)((()=>l.default.flatten([S.item,I?{transform:[{translateY:h(t,s)}]}:{transform:[{translateX:h(t,s)}]}])),[h,t,s,I]);return(0,y.jsx)(o.default,{style:x,children:c({item:t,index:s})})}));z.displayName='ItemContainerWithAnimatedStyle';(e.VirtualizedList=(0,I.typedMemo)((({data:t,renderItem:l,itemSize:I,currentlyFocusedItemIndex:v,additionalItemsRendered:M,onEndReached:R,onEndReachedThresholdItemsNumber:p=3,style:E,orientation:V="horizontal",nbMaxOfItems:N,keyExtractor:A,scrollDuration:F=200,listSizeInPx:_,scrollBehavior:j="stick-to-start",testID:D})=>{const P=(0,x.getNumberOfItemsVisibleOnScreen)({data:t,listSizeInPx:_,itemSize:I}),k=M?M+P:(0,b.getAdditionalNumberOfItemsRendered)(j,P),L=(0,c.getRange)({data:t,currentlyFocusedItemIndex:v,numberOfRenderedItems:k,numberOfItemsVisibleOnScreen:P,scrollBehavior:j}),T='vertical'===V,w=(0,n.useMemo)((()=>(0,f.getSizeInPxFromOneItemToAnother)(t,I,0,t.length)),[t,I]),B=t.slice(L.start,L.end+1),C=(0,n.useMemo)((()=>(0,h.computeAllScrollOffsets)({itemSize:I,nbMaxOfItems:N??t.length,numberOfItemsVisibleOnScreen:P,scrollBehavior:j,data:t,listSizeInPx:_})),[t,I,_,N,P,j]);O({numberOfItems:t.length,range:L,currentlyFocusedItemIndex:v,onEndReachedThresholdItemsNumber:p,onEndReached:R});const W=(0,u.useWebVirtualizedListAnimation)({currentlyFocusedItemIndex:v,vertical:T,scrollDuration:F,scrollOffsetsArray:C}),X=(0,n.useCallback)((t=>"recycled_item_"+t%k),[k]),Y=(0,n.useMemo)((()=>({flexDirection:T?'column':'row'})),[T]),q=(0,n.useMemo)((()=>T?{height:w}:{width:w}),[w,T]);return(0,y.jsx)(s.default.View,{style:[S.container,W,E,Y,q],testID:D,children:(0,y.jsx)(o.default,{children:B.map(((n,s)=>{const o=L.start+s;return(0,y.jsx)(z,{renderItem:l,item:n,index:o,itemSize:I,vertical:T,data:t},A?A(o):X(o))}))})})}))).displayName='VirtualizedList';const S=l.default.create({container:{flex:1},item:{left:0,position:'absolute'}})}),300,[1,16,190,29,156,85,301,302,274,303,304,307,308,136]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualizedList=void 0;var n=r(d[1]),s=t(r(d[2])),l=t(r(d[3])),o=t(r(d[4])),c=(t(r(d[5])),r(d[6])),u=r(d[7]),I=r(d[8]),f=r(d[9]),h=r(d[10]),x=r(d[11]),b=r(d[12]),y=r(d[13]);const O=({numberOfItems:t,range:s,currentlyFocusedItemIndex:l,onEndReachedThresholdItemsNumber:o,onEndReached:c})=>{(0,n.useEffect)((()=>{0!==t&&0!==s.end&&l===Math.max(t-1-o,0)&&c?.()}),[c,s.end,l,o,t])},z=(0,I.typedMemo)((({item:t,index:s,renderItem:c,itemSize:u,vertical:I,data:f})=>{const h=(0,n.useCallback)(((t,n)=>'number'==typeof u?n*u:f.slice(0,n).reduce(((t,n)=>t+u(n)),0)),[f,u]),x=(0,n.useMemo)((()=>l.default.flatten([S.item,I?{transform:[{translateY:h(t,s)}]}:{transform:[{translateX:h(t,s)}]}])),[h,t,s,I]);return(0,y.jsx)(o.default,{style:x,children:c({item:t,index:s})})}));z.displayName='ItemContainerWithAnimatedStyle';(e.VirtualizedList=(0,I.typedMemo)((({data:t,renderItem:l,itemSize:I,currentlyFocusedItemIndex:v,additionalItemsRendered:M=2,onEndReached:R,onEndReachedThresholdItemsNumber:p=3,style:E,orientation:V="horizontal",nbMaxOfItems:N,keyExtractor:A,scrollDuration:F=200,listSizeInPx:_,scrollBehavior:j="stick-to-start",testID:D})=>{const P=(0,x.getNumberOfItemsVisibleOnScreen)({data:t,listSizeInPx:_,itemSize:I}),k=(0,b.getAdditionalNumberOfItemsRendered)(j,P,M),L=(0,c.getRange)({data:t,currentlyFocusedItemIndex:v,numberOfRenderedItems:k,numberOfItemsVisibleOnScreen:P,scrollBehavior:j}),T='vertical'===V,w=(0,n.useMemo)((()=>(0,f.getSizeInPxFromOneItemToAnother)(t,I,0,t.length)),[t,I]),B=t.slice(L.start,L.end+1),C=(0,n.useMemo)((()=>(0,h.computeAllScrollOffsets)({itemSize:I,nbMaxOfItems:N??t.length,numberOfItemsVisibleOnScreen:P,scrollBehavior:j,data:t,listSizeInPx:_})),[t,I,_,N,P,j]);O({numberOfItems:t.length,range:L,currentlyFocusedItemIndex:v,onEndReachedThresholdItemsNumber:p,onEndReached:R});const W=(0,u.useWebVirtualizedListAnimation)({currentlyFocusedItemIndex:v,vertical:T,scrollDuration:F,scrollOffsetsArray:C}),X=(0,n.useCallback)((t=>"recycled_item_"+t%k),[k]),Y=(0,n.useMemo)((()=>({flexDirection:T?'column':'row'})),[T]),q=(0,n.useMemo)((()=>T?{height:w}:{width:w}),[w,T]);return(0,y.jsx)(s.default.View,{style:[S.container,W,E,Y,q],testID:D,children:(0,y.jsx)(o.default,{children:B.map(((n,s)=>{const o=L.start+s;return(0,y.jsx)(z,{renderItem:l,item:n,index:o,itemSize:I,vertical:T,data:t},A?A(o):X(o))}))})})}))).displayName='VirtualizedList';const S=l.default.create({container:{flex:1},item:{left:0,position:'absolute'}})}),300,[1,16,190,29,156,85,301,302,274,303,304,307,308,136]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getRange=void 0;const n=n=>Math.max(n,0),t=({data:t,currentlyFocusedItemIndex:o,numberOfRenderedItems:c=8,numberOfItemsVisibleOnScreen:l,scrollBehavior:u})=>{const I=c-l,b=t.length-1,{rawStartIndex:f,rawEndIndex:O}=s({currentlyFocusedItemIndex:o,numberOfItemsVisibleOnScreen:l,numberOfItemsNotVisible:I,scrollBehavior:u});if(f<0){const t=c-1;return{start:0,end:n(Math.min(t,b))}}if(O>t.length-1){return{start:n(b-c+1),end:n(b)}}return{start:f,end:O}},s=({currentlyFocusedItemIndex:n,numberOfItemsVisibleOnScreen:t,numberOfItemsNotVisible:s,scrollBehavior:o})=>{const c=s/2;switch(o){case'stick-to-start':return{rawStartIndex:n-c,rawEndIndex:n+t-1+c};case'stick-to-end':return{rawStartIndex:n-t+1-c,rawEndIndex:n+c};case'jump-on-scroll':return{rawStartIndex:n-(c+1),rawEndIndex:n+(c+1)};default:throw new Error(`Unknown scroll behavior: ${o}`)}};e.getRange=({data:n,currentlyFocusedItemIndex:s,numberOfRenderedItems:o=8,numberOfItemsVisibleOnScreen:c,scrollBehavior:l})=>{if(o<=0)return console.error('[VirtualizedList] Negative number of rendered items was given, no elements will be rendered'),{start:0,end:0};const u=t({data:n,currentlyFocusedItemIndex:s,numberOfRenderedItems:o,numberOfItemsVisibleOnScreen:c,scrollBehavior:l});return{start:Math.ceil(u.start),end:Math.ceil(u.end)}}}),301,[]); __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useWebVirtualizedListAnimation=e.useVirtualizedListAnimation=void 0;var n=r(d[1]),s=t(r(d[2])),u=t(r(d[3]));e.useVirtualizedListAnimation=({currentlyFocusedItemIndex:t,vertical:o=!1,scrollDuration:l,scrollOffsetsArray:c})=>{const f=(0,n.useRef)(new s.default.Value(0)).current,v=c[t];return(0,n.useEffect)((()=>{s.default.timing(f,{toValue:v,duration:l,useNativeDriver:!0,easing:u.default.out(u.default.sin)}).start()}),[f,v,l]),{transform:[o?{translateY:f}:{translateX:f}]}};e.useWebVirtualizedListAnimation=({currentlyFocusedItemIndex:t,vertical:n=!1,scrollDuration:s,scrollOffsetsArray:u})=>{const o=`${s}ms`,l=u[t];return{transitionDuration:o,transitionProperty:'transform',transitionTimingFunction:'ease-out',transform:[n?{translateY:l}:{translateX:l}]}}}),302,[1,16,190,265]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getSizeInPxFromOneItemToAnother=void 0;e.getSizeInPxFromOneItemToAnother=(n,o,t,c)=>'function'==typeof o?n.slice(t,c).reduce(((n,t)=>n+o(t)),0):n.slice(t,c).length*o}),303,[]); @@ -355,7 +355,7 @@ __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e. __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.computeTranslation=void 0;var n=r(d[0]);const t=({currentlyFocusedItemIndex:t,itemSizeInPx:o,data:s,maxPossibleLeftAlignedIndex:I})=>-(t{if(t<=l)return-0;const c='function'==typeof o?o(s[t]):o;return-((0,n.getSizeInPxFromOneItemToAnother)(s,o,0,t)+c-I)},s=({currentlyFocusedItemIndex:n,itemSizeInPx:t,nbMaxOfItems:o,numberOfItemsVisibleOnScreen:s})=>{if('function'==typeof t)throw new Error('jump-on-scroll scroll behavior is not supported with dynamic item size');const I=Math.max(o-s,0),l=n-n%s;return-(Math.min(l,I)*t)};e.computeTranslation=({currentlyFocusedItemIndex:n,itemSizeInPx:I,nbMaxOfItems:l,numberOfItemsVisibleOnScreen:c,scrollBehavior:x,data:u,listSizeInPx:P,maxPossibleLeftAlignedIndex:b,maxPossibleRightAlignedIndex:f})=>{switch(x){case'stick-to-start':return t({currentlyFocusedItemIndex:n,itemSizeInPx:I,data:u,maxPossibleLeftAlignedIndex:b});case'stick-to-end':return o({currentlyFocusedItemIndex:n,itemSizeInPx:I,data:u,listSizeInPx:P,maxPossibleRightAlignedIndex:f});case'jump-on-scroll':return s({currentlyFocusedItemIndex:n,itemSizeInPx:I,nbMaxOfItems:l,numberOfItemsVisibleOnScreen:c});default:throw new Error(`Invalid scroll behavior: ${x}`)}}}),305,[303]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getLastRightItemIndex=e.getLastLeftItemIndex=void 0;e.getLastLeftItemIndex=(t,n,f)=>{if('function'==typeof n){let o=0;for(let l=t.length-1;l>=0;l--)if(o+=n(t[l]),o>=f)return l+1;return 0}const o=t.length-Math.floor(f/n);return o<0?0:o};e.getLastRightItemIndex=(t,n,f)=>{if('function'==typeof n){let o=0;for(let l=0;l=f)return l-1;return t.length-1}const o=Math.floor(f/n)-1;return o>t.length-1?t.length-1:o}}),306,[]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberOfItemsVisibleOnScreen=void 0;const t=({data:t,itemSize:n})=>{if('number'==typeof n)return n;if(0===t.length)return 0;const s=n(t[0]),l=t.reduce(((t,s)=>{const l=n(s);return l{if(0===n.length)return 0;const o=t({data:n,itemSize:l});return o?0===o?(console.warn('The size of the smallest item in the list is 0. The list will appear empty.'),0):Math.floor(s/o):0}}),307,[]); -__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getAdditionalNumberOfItemsRendered=void 0;e.getAdditionalNumberOfItemsRendered=(t,n)=>{switch(t){case'stick-to-start':case'stick-to-end':return 4+n;case'jump-on-scroll':return 2*n+1}}}),308,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getAdditionalNumberOfItemsRendered=void 0;e.getAdditionalNumberOfItemsRendered=(n,t,o)=>(o<0&&console.error('[VirtualizedList] Negative number of additional items to render was given, no elements will be rendered'),'jump-on-scroll'===n?2*t+1+o:t+2+o)}),308,[]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.typedForwardRef=function(n){return(0,f.forwardRef)(n)};var f=r(d[0])}),309,[16]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.SpatialNavigationVirtualizedGrid=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),a=e(_r(d[4])),i=e(_r(d[5])),o=e(_r(d[6])),l=_r(d[7]),u=_r(d[8]),s=_r(d[9]),c=_r(d[10]),f=_r(d[11]),p=_r(d[12]);const h=["renderItem","data","numberOfColumns","itemHeight","header","headerSize","additionalRenderedRows","onEndReachedThresholdRowsNumber","nbMaxOfItems","rowContainerStyle"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var r=1;r{const t=(0,u.useSpatialNavigator)(),r=(0,s.useParentId)(),a=(0,n.useCallback)((e=>`${r}_${e}`),[r]),i=(0,n.useCallback)((e=>t.registerNode(a(e),{parent:r,orientation:'horizontal',isFocusable:!1,useMeForIndexAlign:!0})),[t,r,a]),l=(0,n.useCallback)((e=>t.unregisterNode(a(e))),[t,a]);return(0,n.useEffect)((()=>((0,o.default)(e).forEach((e=>i(e))),()=>(0,o.default)(e).forEach((e=>l(e))))),[r]),{getNthVirtualNodeID:a}},v=(0,c.typedMemo)((({virtualParentID:e,item:t,index:r,renderItem:n})=>(0,p.jsx)(s.ParentIdContext.Provider,{value:e,children:n({item:t,index:r})})));v.displayName='ItemWrapperWithVirtualParentContext';const j=({renderItem:e,numberOfColumns:t,row:r,rowIndex:n,rowContainerStyle:i})=>{const{getNthVirtualNodeID:o}=y({numberOfColumns:t});return(0,p.jsx)(x,{style:i,children:r.items.map(((r,i)=>{const l=n*t+i;return(0,p.jsx)(a.default,{children:(0,p.jsx)(v,{virtualParentID:o(i),renderItem:e,item:r,index:l})},i)}))})};(_e.SpatialNavigationVirtualizedGrid=(0,c.typedMemo)((e=>{let{renderItem:t,data:a,numberOfColumns:i,itemHeight:o,header:u,headerSize:s,additionalRenderedRows:c,onEndReachedThresholdRowsNumber:b,nbMaxOfItems:O,rowContainerStyle:y}=e,v=(0,r.default)(e,h);if(u&&!s)throw new Error('You must provide a headerSize when using a header');if(s&&!u)throw new Error('You must provide a header when using a headerSize');const x=!!u&&!!s,I=(0,n.useMemo)((()=>(0,f.convertToGrid)(a,i,u)),[a,u,i]),C=(0,n.useMemo)((()=>x?[u,...I]:I),[x,u,I]),P=(0,n.useCallback)((e=>x&&n.default.isValidElement(e)?s:o),[x,s,o]),N=x?P:o,S=(0,n.useCallback)((({item:e,index:r})=>(0,p.jsx)(j,{renderItem:t,numberOfColumns:i,row:e,rowIndex:r,rowContainerStyle:y})),[t,i,y]),M=(0,n.useCallback)((({item:e,index:t})=>{if(n.default.isValidElement(e))return e;return S({item:e,index:x?t-1:t})}),[x,S]);return(0,p.jsx)(l.SpatialNavigationVirtualizedList,w({data:C,itemSize:N,additionalItemsRendered:c,onEndReachedThresholdItemsNumber:b,orientation:"vertical",nbMaxOfItems:O?Math.ceil(O/i):void 0,renderItem:M,isGrid:!0},v))}))).displayName='SpatialNavigationVirtualizedGrid';const x=({style:e,children:t})=>(0,p.jsx)(a.default,{style:[e,I.rowContainer],children:t}),I=i.default.create({rowContainer:{flexDirection:'row'}})}),310,[1,8,125,16,156,29,311,270,140,138,274,276,136]); __d((function(g,r,i,a,m,e,d){var n=r(d[0])();m.exports=n}),311,[312]); diff --git a/index.html b/index.html index c6253248..5099e555 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,6 @@
- +