@tamagui/react-native-web-lite 1.116.1 → 1.116.3

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.
Files changed (442) hide show
  1. package/dist/cjs/AccessibilityInfo/index.js +96 -0
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.js +116 -0
  3. package/dist/cjs/ActivityIndicator/index.js +108 -0
  4. package/dist/cjs/Alert/index.js +25 -0
  5. package/dist/cjs/AppRegistry/AppContainer.js +41 -0
  6. package/dist/cjs/AppRegistry/__tests__/index-test.js +77 -0
  7. package/dist/cjs/AppRegistry/__tests__/index-test.node.js +131 -0
  8. package/dist/cjs/AppRegistry/index.js +98 -0
  9. package/dist/cjs/AppRegistry/renderApplication.js +51 -0
  10. package/dist/cjs/AppState/__tests__/index-test.js +33 -0
  11. package/dist/cjs/AppState/index.js +71 -0
  12. package/dist/cjs/Appearance/index.js +41 -0
  13. package/dist/cjs/BackHandler/index.js +32 -0
  14. package/dist/cjs/Batchinator/index.cjs +68 -0
  15. package/dist/cjs/Batchinator/index.js +57 -0
  16. package/dist/cjs/Batchinator/index.js.map +6 -0
  17. package/dist/cjs/Batchinator/index.native.js +92 -0
  18. package/dist/cjs/Batchinator/index.native.js.map +6 -0
  19. package/dist/cjs/Clipboard/index.js +47 -0
  20. package/dist/cjs/DeviceEmitter.js +29 -0
  21. package/dist/cjs/DeviceInfo/index.js +62 -0
  22. package/dist/cjs/Dimensions/__tests__/index-test.js +51 -0
  23. package/dist/cjs/Dimensions/index.js +74 -0
  24. package/dist/cjs/FlatList.cjs +196 -0
  25. package/dist/cjs/FlatList.js +193 -0
  26. package/dist/cjs/FlatList.js.map +6 -0
  27. package/dist/cjs/FlatList.native.js +256 -0
  28. package/dist/cjs/FlatList.native.js.map +6 -0
  29. package/dist/cjs/I18nManager/index.js +30 -0
  30. package/dist/cjs/Image/index.js +253 -0
  31. package/dist/cjs/Image/types.js +14 -0
  32. package/dist/cjs/ImageBackground/__tests__/index-test.js +48 -0
  33. package/dist/cjs/ImageBackground/index.js +62 -0
  34. package/dist/cjs/InteractionManager/TaskQueue.cjs +88 -0
  35. package/dist/cjs/InteractionManager/TaskQueue.js +76 -0
  36. package/dist/cjs/InteractionManager/TaskQueue.js.map +6 -0
  37. package/dist/cjs/InteractionManager/TaskQueue.native.js +134 -0
  38. package/dist/cjs/InteractionManager/TaskQueue.native.js.map +6 -0
  39. package/dist/cjs/InteractionManager/index.cjs +114 -0
  40. package/dist/cjs/InteractionManager/index.js +95 -0
  41. package/dist/cjs/InteractionManager/index.js.map +6 -0
  42. package/dist/cjs/InteractionManager/index.native.js +99 -0
  43. package/dist/cjs/InteractionManager/index.native.js.map +6 -0
  44. package/dist/cjs/Keyboard/index.js +35 -0
  45. package/dist/cjs/KeyboardAvoidingView/index.js +56 -0
  46. package/dist/cjs/Linking/__tests__/index-test.js +38 -0
  47. package/dist/cjs/Linking/index.js +86 -0
  48. package/dist/cjs/LogBox/index.js +31 -0
  49. package/dist/cjs/Modal/ModalAnimation.js +137 -0
  50. package/dist/cjs/Modal/ModalContent.js +75 -0
  51. package/dist/cjs/Modal/ModalFocusTrap.js +105 -0
  52. package/dist/cjs/Modal/ModalPortal.js +43 -0
  53. package/dist/cjs/Modal/index.js +92 -0
  54. package/dist/cjs/NativeModules/index.js +25 -0
  55. package/dist/cjs/PanResponder/index.js +29 -0
  56. package/dist/cjs/PixelRatio/index.js +60 -0
  57. package/dist/cjs/Pressable/index.js +140 -0
  58. package/dist/cjs/RefreshControl/index.js +48 -0
  59. package/dist/cjs/SafeAreaView/index.js +43 -0
  60. package/dist/cjs/ScrollView/ScrollViewBase.js +124 -0
  61. package/dist/cjs/ScrollView/index.js +374 -0
  62. package/dist/cjs/Share/index.js +56 -0
  63. package/dist/cjs/StatusBar/index.js +31 -0
  64. package/dist/cjs/Text/index.js +152 -0
  65. package/dist/cjs/Text/types.js +14 -0
  66. package/dist/cjs/TextInput/__tests__/index-test.js +422 -0
  67. package/dist/cjs/TextInput/index.js +260 -0
  68. package/dist/cjs/TextInput/types.js +14 -0
  69. package/dist/cjs/TouchableOpacity.js +123 -0
  70. package/dist/cjs/TouchableWithoutFeedback.js +90 -0
  71. package/dist/cjs/UnimplementedView.js +36 -0
  72. package/dist/cjs/Vibration/index.js +31 -0
  73. package/dist/cjs/View/index.js +101 -0
  74. package/dist/cjs/View/types.js +14 -0
  75. package/dist/cjs/createElement/__tests__/index-test.js +536 -0
  76. package/dist/cjs/createElement/index.js +37 -0
  77. package/dist/cjs/createReactDOMStyle.js +21 -0
  78. package/dist/cjs/findNodeHandle.js +29 -0
  79. package/dist/cjs/index.cjs +7 -7
  80. package/dist/cjs/index.js +110 -0
  81. package/dist/cjs/{index.cjs.map → index.js.map} +1 -1
  82. package/dist/cjs/index.native.js +6 -6
  83. package/dist/cjs/index.native.js.map +1 -1
  84. package/dist/cjs/render/index.js +45 -0
  85. package/dist/cjs/styleTypes.js +14 -0
  86. package/dist/cjs/types.js +14 -0
  87. package/dist/cjs/useColorScheme/index.js +39 -0
  88. package/dist/cjs/useLocaleContext/index.js +21 -0
  89. package/dist/cjs/useWindowDimensions/index.js +41 -0
  90. package/dist/cjs/vendor/react-native/Animated/Animated.js +35 -0
  91. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +143 -0
  92. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +458 -0
  93. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +126 -0
  94. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +2 -0
  95. package/dist/cjs/vendor/react-native/Animated/Easing.js +189 -0
  96. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +335 -0
  97. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +29 -0
  98. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +29 -0
  99. package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +70 -0
  100. package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +64 -0
  101. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +63 -0
  102. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +146 -0
  103. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +82 -0
  104. package/dist/cjs/vendor/react-native/Animated/bezier.js +72 -0
  105. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +29 -0
  106. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +38 -0
  107. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +29 -0
  108. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +29 -0
  109. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +42 -0
  110. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +57 -0
  111. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +197 -0
  112. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +60 -0
  113. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +58 -0
  114. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +175 -0
  115. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +58 -0
  116. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +57 -0
  117. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +136 -0
  118. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +112 -0
  119. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +100 -0
  120. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +57 -0
  121. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +76 -0
  122. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +100 -0
  123. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +182 -0
  124. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +167 -0
  125. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +67 -0
  126. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +89 -0
  127. package/dist/cjs/vendor/react-native/FeatureFlags.js +28 -0
  128. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +138 -0
  129. package/dist/cjs/vendor/react-native/FillRateHelper/index.js +124 -0
  130. package/dist/cjs/vendor/react-native/FillRateHelper/index.js.map +6 -0
  131. package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js +158 -0
  132. package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
  133. package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js +29 -0
  134. package/dist/cjs/vendor/react-native/NativeEventEmitter/index.js +73 -0
  135. package/dist/cjs/vendor/react-native/PanResponder/index.js +272 -0
  136. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +118 -0
  137. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +2 -0
  138. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +28 -0
  139. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +15 -0
  140. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +29 -0
  141. package/dist/cjs/vendor/react-native/Utilities/clamp.js +24 -0
  142. package/dist/cjs/vendor/react-native/Utilities/clamp.js.map +6 -0
  143. package/dist/cjs/vendor/react-native/Utilities/clamp.native.js +25 -0
  144. package/dist/cjs/vendor/react-native/Utilities/clamp.native.js.map +6 -0
  145. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +29 -0
  146. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +133 -0
  147. package/dist/cjs/vendor/react-native/ViewabilityHelper.js +144 -0
  148. package/dist/cjs/vendor/react-native/ViewabilityHelper.js.map +6 -0
  149. package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js +199 -0
  150. package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
  151. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +106 -0
  152. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js +86 -0
  153. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
  154. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js +95 -0
  155. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
  156. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +81 -0
  157. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js +84 -0
  158. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
  159. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js +125 -0
  160. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
  161. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +56 -0
  162. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js +59 -0
  163. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
  164. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js +153 -0
  165. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
  166. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +80 -0
  167. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js +74 -0
  168. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
  169. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +163 -0
  170. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
  171. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +164 -0
  172. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +149 -0
  173. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
  174. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +245 -0
  175. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
  176. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +84 -0
  177. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js +72 -0
  178. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
  179. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +85 -0
  180. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
  181. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +16 -0
  182. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js +14 -0
  183. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
  184. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +15 -0
  185. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
  186. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +1003 -0
  187. package/dist/cjs/vendor/react-native/VirtualizedList/index.js +1021 -0
  188. package/dist/cjs/vendor/react-native/VirtualizedList/index.js.map +6 -0
  189. package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js +1075 -0
  190. package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
  191. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +41 -0
  192. package/dist/cjs/vendor/react-native/deepDiffer/index.js +47 -0
  193. package/dist/cjs/vendor/react-native/deepDiffer/index.js.map +6 -0
  194. package/dist/cjs/vendor/react-native/deepDiffer/index.native.js +48 -0
  195. package/dist/cjs/vendor/react-native/deepDiffer/index.native.js.map +6 -0
  196. package/dist/cjs/vendor/react-native/emitter/EventEmitter.js +30 -0
  197. package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +2 -0
  198. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.js +55 -0
  199. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.js +135 -0
  200. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.js +37 -0
  201. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.js +76 -0
  202. package/dist/cjs/vendor/react-native/infoLog/index.js +25 -0
  203. package/dist/cjs/vendor/react-native/useRefEffect.js +30 -0
  204. package/dist/cjs/without-animated.js +95 -0
  205. package/dist/esm/Batchinator/index.js +33 -0
  206. package/dist/esm/Batchinator/index.js.map +6 -0
  207. package/dist/esm/Batchinator/index.mjs +34 -0
  208. package/dist/esm/Batchinator/index.mjs.map +1 -0
  209. package/dist/esm/Batchinator/index.native.js +67 -0
  210. package/dist/esm/Batchinator/index.native.js.map +6 -0
  211. package/dist/esm/FlatList.js +176 -0
  212. package/dist/esm/FlatList.js.map +6 -0
  213. package/dist/esm/FlatList.mjs +162 -0
  214. package/dist/esm/FlatList.mjs.map +1 -0
  215. package/dist/esm/FlatList.native.js +238 -0
  216. package/dist/esm/FlatList.native.js.map +6 -0
  217. package/dist/esm/InteractionManager/TaskQueue.js +60 -0
  218. package/dist/esm/InteractionManager/TaskQueue.js.map +6 -0
  219. package/dist/esm/InteractionManager/TaskQueue.mjs +65 -0
  220. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
  221. package/dist/esm/InteractionManager/TaskQueue.native.js +117 -0
  222. package/dist/esm/InteractionManager/TaskQueue.native.js.map +6 -0
  223. package/dist/esm/InteractionManager/index.js +73 -0
  224. package/dist/esm/InteractionManager/index.js.map +6 -0
  225. package/dist/esm/InteractionManager/index.mjs +80 -0
  226. package/dist/esm/InteractionManager/index.mjs.map +1 -0
  227. package/dist/esm/InteractionManager/index.native.js +77 -0
  228. package/dist/esm/InteractionManager/index.native.js.map +6 -0
  229. package/dist/esm/index.js +2 -2
  230. package/dist/esm/index.mjs +2 -2
  231. package/dist/esm/index.native.js +2 -2
  232. package/dist/esm/vendor/react-native/FillRateHelper/index.js +108 -0
  233. package/dist/esm/vendor/react-native/FillRateHelper/index.js.map +6 -0
  234. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +115 -0
  235. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
  236. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +141 -0
  237. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
  238. package/dist/esm/vendor/react-native/Utilities/clamp.js +8 -0
  239. package/dist/esm/vendor/react-native/Utilities/clamp.js.map +6 -0
  240. package/dist/esm/vendor/react-native/Utilities/clamp.mjs +6 -0
  241. package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
  242. package/dist/esm/vendor/react-native/Utilities/clamp.native.js +8 -0
  243. package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +6 -0
  244. package/dist/esm/vendor/react-native/ViewabilityHelper.js +128 -0
  245. package/dist/esm/vendor/react-native/ViewabilityHelper.js.map +6 -0
  246. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +110 -0
  247. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
  248. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js +182 -0
  249. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
  250. package/dist/esm/vendor/react-native/VirtualizeUtils/index.js +70 -0
  251. package/dist/esm/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
  252. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +80 -0
  253. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
  254. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js +71 -0
  255. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
  256. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js +68 -0
  257. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
  258. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +58 -0
  259. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
  260. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +104 -0
  261. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
  262. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js +43 -0
  263. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
  264. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +33 -0
  265. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
  266. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js +136 -0
  267. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
  268. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js +51 -0
  269. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
  270. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +46 -0
  271. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
  272. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +139 -0
  273. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
  274. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +132 -0
  275. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
  276. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +130 -0
  277. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
  278. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +224 -0
  279. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
  280. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js +50 -0
  281. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
  282. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +47 -0
  283. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
  284. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +56 -0
  285. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
  286. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js +1 -0
  287. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
  288. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +2 -0
  289. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
  290. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +1 -0
  291. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
  292. package/dist/esm/vendor/react-native/VirtualizedList/index.js +1016 -0
  293. package/dist/esm/vendor/react-native/VirtualizedList/index.js.map +6 -0
  294. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +969 -0
  295. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
  296. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +1065 -0
  297. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
  298. package/dist/esm/vendor/react-native/deepDiffer/index.js +31 -0
  299. package/dist/esm/vendor/react-native/deepDiffer/index.js.map +6 -0
  300. package/dist/esm/vendor/react-native/deepDiffer/index.mjs +18 -0
  301. package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
  302. package/dist/esm/vendor/react-native/deepDiffer/index.native.js +31 -0
  303. package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +6 -0
  304. package/package.json +6 -6
  305. package/src/Batchinator/index.tsx +78 -0
  306. package/src/FlatList.tsx +330 -0
  307. package/src/InteractionManager/TaskQueue.tsx +114 -0
  308. package/src/InteractionManager/index.tsx +139 -0
  309. package/src/index.tsx +2 -2
  310. package/src/vendor/react-native/FillRateHelper/index.tsx +218 -0
  311. package/src/vendor/react-native/Utilities/clamp.ts +21 -0
  312. package/src/vendor/react-native/ViewabilityHelper.ts +291 -0
  313. package/src/vendor/react-native/VirtualizeUtils/index.tsx +212 -0
  314. package/src/vendor/react-native/VirtualizedList/CellRenderMask.ts +147 -0
  315. package/src/vendor/react-native/VirtualizedList/ChildListCollection.tsx +73 -0
  316. package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.tsx +79 -0
  317. package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx +210 -0
  318. package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.tsx +116 -0
  319. package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.ts +130 -0
  320. package/src/vendor/react-native/VirtualizedList/index.tsx +1797 -0
  321. package/src/vendor/react-native/deepDiffer/index.tsx +56 -0
  322. package/dist/cjs/PanResponder/Alternative.cjs +0 -198
  323. package/dist/cjs/PanResponder/Alternative.cjs.map +0 -6
  324. /package/dist/cjs/AccessibilityInfo/{index.cjs.map → index.js.map} +0 -0
  325. /package/dist/cjs/ActivityIndicator/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  326. /package/dist/cjs/ActivityIndicator/{index.cjs.map → index.js.map} +0 -0
  327. /package/dist/cjs/Alert/{index.cjs.map → index.js.map} +0 -0
  328. /package/dist/cjs/AppRegistry/{AppContainer.cjs.map → AppContainer.js.map} +0 -0
  329. /package/dist/cjs/AppRegistry/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  330. /package/dist/cjs/AppRegistry/__tests__/{index-test.node.cjs.map → index-test.node.js.map} +0 -0
  331. /package/dist/cjs/AppRegistry/{index.cjs.map → index.js.map} +0 -0
  332. /package/dist/cjs/AppRegistry/{renderApplication.cjs.map → renderApplication.js.map} +0 -0
  333. /package/dist/cjs/AppState/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  334. /package/dist/cjs/AppState/{index.cjs.map → index.js.map} +0 -0
  335. /package/dist/cjs/Appearance/{index.cjs.map → index.js.map} +0 -0
  336. /package/dist/cjs/BackHandler/{index.cjs.map → index.js.map} +0 -0
  337. /package/dist/cjs/Clipboard/{index.cjs.map → index.js.map} +0 -0
  338. /package/dist/cjs/{DeviceEmitter.cjs.map → DeviceEmitter.js.map} +0 -0
  339. /package/dist/cjs/DeviceInfo/{index.cjs.map → index.js.map} +0 -0
  340. /package/dist/cjs/Dimensions/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  341. /package/dist/cjs/Dimensions/{index.cjs.map → index.js.map} +0 -0
  342. /package/dist/cjs/I18nManager/{index.cjs.map → index.js.map} +0 -0
  343. /package/dist/cjs/Image/{index.cjs.map → index.js.map} +0 -0
  344. /package/dist/cjs/Image/{types.cjs.map → types.js.map} +0 -0
  345. /package/dist/cjs/ImageBackground/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  346. /package/dist/cjs/ImageBackground/{index.cjs.map → index.js.map} +0 -0
  347. /package/dist/cjs/Keyboard/{index.cjs.map → index.js.map} +0 -0
  348. /package/dist/cjs/KeyboardAvoidingView/{index.cjs.map → index.js.map} +0 -0
  349. /package/dist/cjs/Linking/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  350. /package/dist/cjs/Linking/{index.cjs.map → index.js.map} +0 -0
  351. /package/dist/cjs/LogBox/{index.cjs.map → index.js.map} +0 -0
  352. /package/dist/cjs/Modal/{ModalAnimation.cjs.map → ModalAnimation.js.map} +0 -0
  353. /package/dist/cjs/Modal/{ModalContent.cjs.map → ModalContent.js.map} +0 -0
  354. /package/dist/cjs/Modal/{ModalFocusTrap.cjs.map → ModalFocusTrap.js.map} +0 -0
  355. /package/dist/cjs/Modal/{ModalPortal.cjs.map → ModalPortal.js.map} +0 -0
  356. /package/dist/cjs/Modal/{index.cjs.map → index.js.map} +0 -0
  357. /package/dist/cjs/NativeModules/{index.cjs.map → index.js.map} +0 -0
  358. /package/dist/cjs/PanResponder/{index.cjs.map → index.js.map} +0 -0
  359. /package/dist/cjs/PixelRatio/{index.cjs.map → index.js.map} +0 -0
  360. /package/dist/cjs/Pressable/{index.cjs.map → index.js.map} +0 -0
  361. /package/dist/cjs/RefreshControl/{index.cjs.map → index.js.map} +0 -0
  362. /package/dist/cjs/SafeAreaView/{index.cjs.map → index.js.map} +0 -0
  363. /package/dist/cjs/ScrollView/{ScrollViewBase.cjs.map → ScrollViewBase.js.map} +0 -0
  364. /package/dist/cjs/ScrollView/{index.cjs.map → index.js.map} +0 -0
  365. /package/dist/cjs/Share/{index.cjs.map → index.js.map} +0 -0
  366. /package/dist/cjs/StatusBar/{index.cjs.map → index.js.map} +0 -0
  367. /package/dist/cjs/Text/{index.cjs.map → index.js.map} +0 -0
  368. /package/dist/cjs/Text/{types.cjs.map → types.js.map} +0 -0
  369. /package/dist/cjs/TextInput/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  370. /package/dist/cjs/TextInput/{index.cjs.map → index.js.map} +0 -0
  371. /package/dist/cjs/TextInput/{types.cjs.map → types.js.map} +0 -0
  372. /package/dist/cjs/{TouchableOpacity.cjs.map → TouchableOpacity.js.map} +0 -0
  373. /package/dist/cjs/{TouchableWithoutFeedback.cjs.map → TouchableWithoutFeedback.js.map} +0 -0
  374. /package/dist/cjs/{UnimplementedView.cjs.map → UnimplementedView.js.map} +0 -0
  375. /package/dist/cjs/Vibration/{index.cjs.map → index.js.map} +0 -0
  376. /package/dist/cjs/View/{index.cjs.map → index.js.map} +0 -0
  377. /package/dist/cjs/View/{types.cjs.map → types.js.map} +0 -0
  378. /package/dist/cjs/createElement/__tests__/{index-test.cjs.map → index-test.js.map} +0 -0
  379. /package/dist/cjs/createElement/{index.cjs.map → index.js.map} +0 -0
  380. /package/dist/cjs/{createReactDOMStyle.cjs.map → createReactDOMStyle.js.map} +0 -0
  381. /package/dist/cjs/{findNodeHandle.cjs.map → findNodeHandle.js.map} +0 -0
  382. /package/dist/cjs/render/{index.cjs.map → index.js.map} +0 -0
  383. /package/dist/cjs/{styleTypes.cjs.map → styleTypes.js.map} +0 -0
  384. /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
  385. /package/dist/cjs/useColorScheme/{index.cjs.map → index.js.map} +0 -0
  386. /package/dist/cjs/useLocaleContext/{index.cjs.map → index.js.map} +0 -0
  387. /package/dist/cjs/useWindowDimensions/{index.cjs.map → index.js.map} +0 -0
  388. /package/dist/cjs/vendor/react-native/Animated/{Animated.cjs.map → Animated.js.map} +0 -0
  389. /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.cjs.map → AnimatedEvent.js.map} +0 -0
  390. /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.cjs.map → AnimatedImplementation.js.map} +0 -0
  391. /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.cjs.map → AnimatedMock.js.map} +0 -0
  392. /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.cjs.map → AnimatedPlatformConfig.js.map} +0 -0
  393. /package/dist/cjs/vendor/react-native/Animated/{Easing.cjs.map → Easing.js.map} +0 -0
  394. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.cjs.map → NativeAnimatedHelper.js.map} +0 -0
  395. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.cjs.map → NativeAnimatedModule.js.map} +0 -0
  396. /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.cjs.map → NativeAnimatedTurboModule.js.map} +0 -0
  397. /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.cjs.map → SpringConfig.js.map} +0 -0
  398. /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.cjs.map → Animation.js.map} +0 -0
  399. /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.cjs.map → DecayAnimation.js.map} +0 -0
  400. /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.cjs.map → SpringAnimation.js.map} +0 -0
  401. /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.cjs.map → TimingAnimation.js.map} +0 -0
  402. /package/dist/cjs/vendor/react-native/Animated/{bezier.cjs.map → bezier.js.map} +0 -0
  403. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.cjs.map → AnimatedImage.js.map} +0 -0
  404. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.cjs.map → AnimatedScrollView.js.map} +0 -0
  405. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.cjs.map → AnimatedText.js.map} +0 -0
  406. /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.cjs.map → AnimatedView.js.map} +0 -0
  407. /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.cjs.map → createAnimatedComponent.js.map} +0 -0
  408. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.cjs.map → AnimatedAddition.js.map} +0 -0
  409. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.cjs.map → AnimatedColor.js.map} +0 -0
  410. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.cjs.map → AnimatedDiffClamp.js.map} +0 -0
  411. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.cjs.map → AnimatedDivision.js.map} +0 -0
  412. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.cjs.map → AnimatedInterpolation.js.map} +0 -0
  413. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.cjs.map → AnimatedModulo.js.map} +0 -0
  414. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.cjs.map → AnimatedMultiplication.js.map} +0 -0
  415. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.cjs.map → AnimatedNode.js.map} +0 -0
  416. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.cjs.map → AnimatedProps.js.map} +0 -0
  417. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.cjs.map → AnimatedStyle.js.map} +0 -0
  418. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.cjs.map → AnimatedSubtraction.js.map} +0 -0
  419. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.cjs.map → AnimatedTracking.js.map} +0 -0
  420. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.cjs.map → AnimatedTransform.js.map} +0 -0
  421. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.cjs.map → AnimatedValue.js.map} +0 -0
  422. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.cjs.map → AnimatedValueXY.js.map} +0 -0
  423. /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.cjs.map → AnimatedWithChildren.js.map} +0 -0
  424. /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.cjs.map → useAnimatedProps.js.map} +0 -0
  425. /package/dist/cjs/vendor/react-native/{FeatureFlags.cjs.map → FeatureFlags.js.map} +0 -0
  426. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.cjs.map → RCTDeviceEventEmitter.js.map} +0 -0
  427. /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.cjs.map → index.js.map} +0 -0
  428. /package/dist/cjs/vendor/react-native/PanResponder/{index.cjs.map → index.js.map} +0 -0
  429. /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.cjs.map → index.js.map} +0 -0
  430. /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.cjs.map → RCTExport.js.map} +0 -0
  431. /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.cjs.map → TurboModuleRegistry.js.map} +0 -0
  432. /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.cjs.map → CoreEventTypes.js.map} +0 -0
  433. /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.cjs.map → setAndForwardRef.js.map} +0 -0
  434. /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.cjs.map → EventEmitter.js.map} +0 -0
  435. /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.cjs.map → EventSubscription.js.map} +0 -0
  436. /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.cjs.map → _EmitterSubscription.js.map} +0 -0
  437. /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.cjs.map → _EventEmitter.js.map} +0 -0
  438. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.cjs.map → _EventSubscription.js.map} +0 -0
  439. /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.cjs.map → _EventSubscriptionVendor.js.map} +0 -0
  440. /package/dist/cjs/vendor/react-native/infoLog/{index.cjs.map → index.js.map} +0 -0
  441. /package/dist/cjs/vendor/react-native/{useRefEffect.cjs.map → useRefEffect.js.map} +0 -0
  442. /package/dist/cjs/{without-animated.cjs.map → without-animated.js.map} +0 -0
@@ -0,0 +1,86 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var VirtualizeUtils_exports = {};
16
+ __export(VirtualizeUtils_exports, {
17
+ computeWindowedRenderLimits: () => computeWindowedRenderLimits,
18
+ elementsThatOverlapOffsets: () => elementsThatOverlapOffsets,
19
+ keyExtractor: () => keyExtractor,
20
+ newRangeCount: () => newRangeCount
21
+ });
22
+ module.exports = __toCommonJS(VirtualizeUtils_exports);
23
+ function elementsThatOverlapOffsets(offsets, props, getFrameMetrics, zoomScale = 1) {
24
+ const itemCount = props.getItemCount(props.data), result = [];
25
+ for (let offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) {
26
+ const currentOffset = offsets[offsetIndex];
27
+ let left = 0, right = itemCount - 1;
28
+ for (; left <= right; ) {
29
+ const mid = left + (right - left >>> 1), frame = getFrameMetrics(mid, props), scaledOffsetStart = frame.offset * zoomScale, scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;
30
+ if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart)
31
+ right = mid - 1;
32
+ else if (currentOffset > scaledOffsetEnd)
33
+ left = mid + 1;
34
+ else {
35
+ result[offsetIndex] = mid;
36
+ break;
37
+ }
38
+ }
39
+ }
40
+ return result;
41
+ }
42
+ function newRangeCount(prev, next) {
43
+ return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first));
44
+ }
45
+ function computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) {
46
+ const itemCount = props.getItemCount(props.data);
47
+ if (itemCount === 0)
48
+ return { first: 0, last: -1 };
49
+ const { offset, velocity, visibleLength, zoomScale = 1 } = scrollMetrics, visibleBegin = Math.max(0, offset), visibleEnd = visibleBegin + visibleLength, overscanLength = (windowSize - 1) * visibleLength, leadFactor = 0.5, fillPreference = velocity > 1 ? "after" : velocity < -1 ? "before" : "none", overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength), overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);
50
+ if (getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale < overscanBegin)
51
+ return {
52
+ first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),
53
+ last: itemCount - 1
54
+ };
55
+ let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets(
56
+ [overscanBegin, visibleBegin, visibleEnd, overscanEnd],
57
+ props,
58
+ getFrameMetricsApprox,
59
+ zoomScale
60
+ );
61
+ overscanFirst = overscanFirst ?? 0, first = first ?? Math.max(0, overscanFirst), overscanLast = overscanLast ?? itemCount - 1, last = last ?? Math.min(overscanLast, first + maxToRenderPerBatch - 1);
62
+ const visible = { first, last };
63
+ let newCellCount = newRangeCount(prev, visible);
64
+ for (; !(first <= overscanFirst && last >= overscanLast); ) {
65
+ const maxNewCells = newCellCount >= maxToRenderPerBatch, firstWillAddMore = first <= prev.first || first > prev.last, firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore), lastWillAddMore = last >= prev.last || last < prev.first, lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore);
66
+ if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement)
67
+ break;
68
+ firstShouldIncrement && !(fillPreference === "after" && lastShouldIncrement && lastWillAddMore) && (firstWillAddMore && newCellCount++, first--), lastShouldIncrement && !(fillPreference === "before" && firstShouldIncrement && firstWillAddMore) && (lastWillAddMore && newCellCount++, last++);
69
+ }
70
+ if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last))
71
+ throw new Error(
72
+ "Bad window calculation " + JSON.stringify({
73
+ first,
74
+ last,
75
+ itemCount,
76
+ overscanFirst,
77
+ overscanLast,
78
+ visible
79
+ })
80
+ );
81
+ return { first, last };
82
+ }
83
+ function keyExtractor(item, index) {
84
+ return typeof item == "object" && item?.key != null ? item.key : typeof item == "object" && item?.id != null ? item.id : String(index);
85
+ }
86
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 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AM,IAAI;AAAA,MACR,4BACE,KAAK,UAAU;AAAA,QACb;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACL;AAGF,SAAO,EAAE,OAAO,KAAK;AACvB;AAEO,SAAS,aAAa,MAAW,OAAuB;AAC7D,SAAI,OAAO,QAAS,YAAY,MAAM,OAAO,OACpC,KAAK,MAEV,OAAO,QAAS,YAAY,MAAM,MAAM,OACnC,KAAK,KAEP,OAAO,KAAK;AACrB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var VirtualizeUtils_exports = {};
17
+ __export(VirtualizeUtils_exports, {
18
+ computeWindowedRenderLimits: () => computeWindowedRenderLimits,
19
+ elementsThatOverlapOffsets: () => elementsThatOverlapOffsets,
20
+ keyExtractor: () => keyExtractor,
21
+ newRangeCount: () => newRangeCount
22
+ });
23
+ module.exports = __toCommonJS(VirtualizeUtils_exports);
24
+ function elementsThatOverlapOffsets(offsets, props, getFrameMetrics) {
25
+ for (var zoomScale = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1, itemCount = props.getItemCount(props.data), result = [], offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++)
26
+ for (var currentOffset = offsets[offsetIndex], left = 0, right = itemCount - 1; left <= right; ) {
27
+ var mid = left + (right - left >>> 1), frame = getFrameMetrics(mid, props), scaledOffsetStart = frame.offset * zoomScale, scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;
28
+ if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart)
29
+ right = mid - 1;
30
+ else if (currentOffset > scaledOffsetEnd)
31
+ left = mid + 1;
32
+ else {
33
+ result[offsetIndex] = mid;
34
+ break;
35
+ }
36
+ }
37
+ return result;
38
+ }
39
+ function newRangeCount(prev, next) {
40
+ return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first));
41
+ }
42
+ function computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) {
43
+ var itemCount = props.getItemCount(props.data);
44
+ if (itemCount === 0)
45
+ return {
46
+ first: 0,
47
+ last: -1
48
+ };
49
+ var { offset, velocity, visibleLength, zoomScale = 1 } = scrollMetrics, visibleBegin = Math.max(0, offset), visibleEnd = visibleBegin + visibleLength, overscanLength = (windowSize - 1) * visibleLength, leadFactor = 0.5, fillPreference = velocity > 1 ? "after" : velocity < -1 ? "before" : "none", overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength), overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength), lastItemOffset = getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale;
50
+ if (lastItemOffset < overscanBegin)
51
+ return {
52
+ first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),
53
+ last: itemCount - 1
54
+ };
55
+ var [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets([
56
+ overscanBegin,
57
+ visibleBegin,
58
+ visibleEnd,
59
+ overscanEnd
60
+ ], props, getFrameMetricsApprox, zoomScale);
61
+ overscanFirst = overscanFirst ?? 0, first = first ?? Math.max(0, overscanFirst), overscanLast = overscanLast ?? itemCount - 1, last = last ?? Math.min(overscanLast, first + maxToRenderPerBatch - 1);
62
+ for (var visible = {
63
+ first,
64
+ last
65
+ }, newCellCount = newRangeCount(prev, visible); !(first <= overscanFirst && last >= overscanLast); ) {
66
+ var maxNewCells = newCellCount >= maxToRenderPerBatch, firstWillAddMore = first <= prev.first || first > prev.last, firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore), lastWillAddMore = last >= prev.last || last < prev.first, lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore);
67
+ if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement)
68
+ break;
69
+ firstShouldIncrement && !(fillPreference === "after" && lastShouldIncrement && lastWillAddMore) && (firstWillAddMore && newCellCount++, first--), lastShouldIncrement && !(fillPreference === "before" && firstShouldIncrement && firstWillAddMore) && (lastWillAddMore && newCellCount++, last++);
70
+ }
71
+ if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last))
72
+ throw new Error("Bad window calculation " + JSON.stringify({
73
+ first,
74
+ last,
75
+ itemCount,
76
+ overscanFirst,
77
+ overscanLast,
78
+ visible
79
+ }));
80
+ return {
81
+ first,
82
+ last
83
+ };
84
+ }
85
+ function keyExtractor(item, index) {
86
+ return typeof item == "object" && (item == null ? void 0 : item.key) != null ? item.key : typeof item == "object" && (item == null ? void 0 : item.id) != null ? item.id : String(index);
87
+ }
88
+ // Annotate the CommonJS export names for ESM import in node:
89
+ 0 && (module.exports = {
90
+ computeWindowedRenderLimits,
91
+ elementsThatOverlapOffsets,
92
+ keyExtractor,
93
+ newRangeCount
94
+ });
95
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizeUtils/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/VirtualizeUtils/index.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;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BAErDE,mBACFJ,gBAEFvB;EAEJ;AAEA,MACE,EACEA,QAAQC,SACRA,SAAS,KACTD,OAAOjB,aACPkB,SAASmB,iBACTpB,QAAQqB,gBACRpB,SAASqB,QAAQrB,SACjBD,QAAQsB,QAAQtB;AAGlB,UAAM,IAAI6B,MACR,4BACEC,KAAKC,UAAU;MACb9B;MACAD;MACAjB;MACAqC;MACAC;MACAC;IACF,CAAA,CAAA;AAIN,SAAO;IAAErB;IAAOD;EAAK;AACvB;AAEO,SAASgC,aAAaC,MAAWC,OAAa;AACnD,SAAI,OAAOD,QAAS,aAAYA,QAAAA,OAAAA,SAAAA,KAAME,QAAO,OACpCF,KAAKE,MAEV,OAAOF,QAAS,aAAYA,QAAAA,OAAAA,SAAAA,KAAMG,OAAM,OACnCH,KAAKG,KAEPC,OAAOH,KAAAA;AAChB;",
5
+ "names": ["elementsThatOverlapOffsets", "offsets", "props", "getFrameMetrics", "zoomScale", "itemCount", "getItemCount", "data", "result", "offsetIndex", "length", "currentOffset", "left", "right", "mid", "frame", "scaledOffsetStart", "offset", "scaledOffsetEnd", "newRangeCount", "prev", "next", "last", "first", "Math", "max", "min", "computeWindowedRenderLimits", "maxToRenderPerBatch", "windowSize", "getFrameMetricsApprox", "scrollMetrics", "velocity", "visibleLength", "visibleBegin", "visibleEnd", "overscanLength", "leadFactor", "fillPreference", "overscanBegin", "overscanEnd", "lastItemOffset", "overscanFirst", "overscanLast", "visible", "newCellCount", "maxNewCells", "firstWillAddMore", "firstShouldIncrement", "lastWillAddMore", "lastShouldIncrement", "Error", "JSON", "stringify", "keyExtractor", "item", "index", "key", "id", "String"]
6
+ }
@@ -0,0 +1,81 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var CellRenderMask_exports = {};
22
+ __export(CellRenderMask_exports, {
23
+ CellRenderMask: () => CellRenderMask
24
+ });
25
+ module.exports = __toCommonJS(CellRenderMask_exports);
26
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
27
+ class CellRenderMask {
28
+ _numCells;
29
+ _regions;
30
+ constructor(numCells) {
31
+ (0, import_react_native_web_internals.invariant)(numCells >= 0, "CellRenderMask must contain a non-negative number of cells"), this._numCells = numCells, numCells === 0 ? this._regions = [] : this._regions = [{
32
+ first: 0,
33
+ last: numCells - 1,
34
+ isSpacer: !0
35
+ }];
36
+ }
37
+ enumerateRegions() {
38
+ return this._regions;
39
+ }
40
+ addCells(cells) {
41
+ if ((0, import_react_native_web_internals.invariant)(cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1, "CellRenderMask.addCells called with invalid cell range"), cells.last < cells.first) return;
42
+ const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first),
43
+ [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);
44
+ if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) return;
45
+ const newLeadRegion = [],
46
+ newTailRegion = [],
47
+ newMainRegion = {
48
+ ...cells,
49
+ isSpacer: !1
50
+ };
51
+ firstIntersect.first < newMainRegion.first && (firstIntersect.isSpacer ? newLeadRegion.push({
52
+ first: firstIntersect.first,
53
+ last: newMainRegion.first - 1,
54
+ isSpacer: !0
55
+ }) : newMainRegion.first = firstIntersect.first), lastIntersect.last > newMainRegion.last && (lastIntersect.isSpacer ? newTailRegion.push({
56
+ first: newMainRegion.last + 1,
57
+ last: lastIntersect.last,
58
+ isSpacer: !0
59
+ }) : newMainRegion.last = lastIntersect.last);
60
+ const replacementRegions = [...newLeadRegion, newMainRegion, ...newTailRegion],
61
+ numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;
62
+ this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);
63
+ }
64
+ numCells() {
65
+ return this._numCells;
66
+ }
67
+ equals(other) {
68
+ return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every((region, i) => region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer);
69
+ }
70
+ _findRegion(cellIdx) {
71
+ let firstIdx = 0,
72
+ lastIdx = this._regions.length - 1;
73
+ for (; firstIdx <= lastIdx;) {
74
+ const middleIdx = Math.floor((firstIdx + lastIdx) / 2),
75
+ middleRegion = this._regions[middleIdx];
76
+ if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) return [middleRegion, middleIdx];
77
+ cellIdx < middleRegion.first ? lastIdx = middleIdx - 1 : cellIdx > middleRegion.last && (firstIdx = middleIdx + 1);
78
+ }
79
+ (0, import_react_native_web_internals.invariant)(!1, `A region was not found containing cellIdx ${cellIdx}`);
80
+ }
81
+ }
@@ -0,0 +1,84 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var CellRenderMask_exports = {};
16
+ __export(CellRenderMask_exports, {
17
+ CellRenderMask: () => CellRenderMask
18
+ });
19
+ module.exports = __toCommonJS(CellRenderMask_exports);
20
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
21
+ class CellRenderMask {
22
+ _numCells;
23
+ _regions;
24
+ constructor(numCells) {
25
+ (0, import_react_native_web_internals.invariant)(numCells >= 0, "CellRenderMask must contain a non-negative number of cells"), this._numCells = numCells, numCells === 0 ? this._regions = [] : this._regions = [
26
+ {
27
+ first: 0,
28
+ last: numCells - 1,
29
+ isSpacer: !0
30
+ }
31
+ ];
32
+ }
33
+ enumerateRegions() {
34
+ return this._regions;
35
+ }
36
+ addCells(cells) {
37
+ if ((0, import_react_native_web_internals.invariant)(
38
+ cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1,
39
+ "CellRenderMask.addCells called with invalid cell range"
40
+ ), cells.last < cells.first)
41
+ return;
42
+ const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first), [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);
43
+ if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer)
44
+ return;
45
+ const newLeadRegion = [], newTailRegion = [], newMainRegion = {
46
+ ...cells,
47
+ isSpacer: !1
48
+ };
49
+ firstIntersect.first < newMainRegion.first && (firstIntersect.isSpacer ? newLeadRegion.push({
50
+ first: firstIntersect.first,
51
+ last: newMainRegion.first - 1,
52
+ isSpacer: !0
53
+ }) : newMainRegion.first = firstIntersect.first), lastIntersect.last > newMainRegion.last && (lastIntersect.isSpacer ? newTailRegion.push({
54
+ first: newMainRegion.last + 1,
55
+ last: lastIntersect.last,
56
+ isSpacer: !0
57
+ }) : newMainRegion.last = lastIntersect.last);
58
+ const replacementRegions = [
59
+ ...newLeadRegion,
60
+ newMainRegion,
61
+ ...newTailRegion
62
+ ], numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;
63
+ this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);
64
+ }
65
+ numCells() {
66
+ return this._numCells;
67
+ }
68
+ equals(other) {
69
+ return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every(
70
+ (region, i) => region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer
71
+ );
72
+ }
73
+ _findRegion(cellIdx) {
74
+ let firstIdx = 0, lastIdx = this._regions.length - 1;
75
+ for (; firstIdx <= lastIdx; ) {
76
+ const middleIdx = Math.floor((firstIdx + lastIdx) / 2), middleRegion = this._regions[middleIdx];
77
+ if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last)
78
+ return [middleRegion, middleIdx];
79
+ cellIdx < middleRegion.first ? lastIdx = middleIdx - 1 : cellIdx > middleRegion.last && (firstIdx = middleIdx + 1);
80
+ }
81
+ (0, import_react_native_web_internals.invariant)(!1, `A region was not found containing cellIdx ${cellIdx}`);
82
+ }
83
+ }
84
+ //# sourceMappingURL=CellRenderMask.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/CellRenderMask.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,wCAA0B;AAQnB,MAAM,eAAe;AAAA,EAClB;AAAA,EACA;AAAA,EAER,YAAY,UAAkB;AAC5B,qDAAU,YAAY,GAAG,4DAA4D,GAErF,KAAK,YAAY,UAEb,aAAa,IACf,KAAK,WAAW,CAAC,IAEjB,KAAK,WAAW;AAAA,MACd;AAAA,QACE,OAAO;AAAA,QACP,MAAM,WAAW;AAAA,QACjB,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EAEJ;AAAA,EAEA,mBAA8C;AAC5C,WAAO,KAAK;AAAA,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CAAC,EAAE,SACnC,OAAO,SAAS,MAAM,SAAS,CAAC,EAAE,QAClC,OAAO,aAAa,MAAM,SAAS,CAAC,EAAE;AAAA,IAC1C;AAAA,EAEJ;AAAA,EAEQ,YAAY,SAAuC;AACzD,QAAI,WAAW,GACX,UAAU,KAAK,SAAS,SAAS;AAErC,WAAO,YAAY,WAAS;AAC1B,YAAM,YAAY,KAAK,OAAO,WAAW,WAAW,CAAC,GAC/C,eAAe,KAAK,SAAS,SAAS;AAE5C,UAAI,WAAW,aAAa,SAAS,WAAW,aAAa;AAC3D,eAAO,CAAC,cAAc,SAAS;AAC1B,MAAI,UAAU,aAAa,QAChC,UAAU,YAAY,IACb,UAAU,aAAa,SAChC,WAAW,YAAY;AAAA,IAE3B;AAEA,qDAAU,IAAO,6CAA6C,OAAO,EAAE;AAAA,EACzE;AACF;",
5
+ "names": []
6
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var CellRenderMask_exports = {};
17
+ __export(CellRenderMask_exports, {
18
+ CellRenderMask: () => CellRenderMask
19
+ });
20
+ module.exports = __toCommonJS(CellRenderMask_exports);
21
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
22
+ function _class_call_check(instance, Constructor) {
23
+ if (!(instance instanceof Constructor))
24
+ throw new TypeError("Cannot call a class as a function");
25
+ }
26
+ function _defineProperties(target, props) {
27
+ for (var i = 0; i < props.length; i++) {
28
+ var descriptor = props[i];
29
+ descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
30
+ }
31
+ }
32
+ function _create_class(Constructor, protoProps, staticProps) {
33
+ return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
34
+ }
35
+ function _define_property(obj, key, value) {
36
+ return key in obj ? Object.defineProperty(obj, key, {
37
+ value,
38
+ enumerable: !0,
39
+ configurable: !0,
40
+ writable: !0
41
+ }) : obj[key] = value, obj;
42
+ }
43
+ var CellRenderMask = /* @__PURE__ */ function() {
44
+ "use strict";
45
+ function CellRenderMask2(numCells) {
46
+ _class_call_check(this, CellRenderMask2), _define_property(this, "_numCells", void 0), _define_property(this, "_regions", void 0), (0, import_react_native_web_internals.invariant)(numCells >= 0, "CellRenderMask must contain a non-negative number of cells"), this._numCells = numCells, numCells === 0 ? this._regions = [] : this._regions = [
47
+ {
48
+ first: 0,
49
+ last: numCells - 1,
50
+ isSpacer: !0
51
+ }
52
+ ];
53
+ }
54
+ return _create_class(CellRenderMask2, [
55
+ {
56
+ key: "enumerateRegions",
57
+ value: function() {
58
+ return this._regions;
59
+ }
60
+ },
61
+ {
62
+ key: "addCells",
63
+ value: function(cells) {
64
+ if ((0, import_react_native_web_internals.invariant)(cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1, "CellRenderMask.addCells called with invalid cell range"), !(cells.last < cells.first)) {
65
+ var [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first), [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);
66
+ if (!(firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer)) {
67
+ var newLeadRegion = [], newTailRegion = [], newMainRegion = {
68
+ ...cells,
69
+ isSpacer: !1
70
+ };
71
+ firstIntersect.first < newMainRegion.first && (firstIntersect.isSpacer ? newLeadRegion.push({
72
+ first: firstIntersect.first,
73
+ last: newMainRegion.first - 1,
74
+ isSpacer: !0
75
+ }) : newMainRegion.first = firstIntersect.first), lastIntersect.last > newMainRegion.last && (lastIntersect.isSpacer ? newTailRegion.push({
76
+ first: newMainRegion.last + 1,
77
+ last: lastIntersect.last,
78
+ isSpacer: !0
79
+ }) : newMainRegion.last = lastIntersect.last);
80
+ var replacementRegions = [
81
+ ...newLeadRegion,
82
+ newMainRegion,
83
+ ...newTailRegion
84
+ ], numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;
85
+ this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);
86
+ }
87
+ }
88
+ }
89
+ },
90
+ {
91
+ key: "numCells",
92
+ value: function() {
93
+ return this._numCells;
94
+ }
95
+ },
96
+ {
97
+ key: "equals",
98
+ value: function(other) {
99
+ return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every(function(region, i) {
100
+ return region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer;
101
+ });
102
+ }
103
+ },
104
+ {
105
+ key: "_findRegion",
106
+ value: function(cellIdx) {
107
+ for (var firstIdx = 0, lastIdx = this._regions.length - 1; firstIdx <= lastIdx; ) {
108
+ var middleIdx = Math.floor((firstIdx + lastIdx) / 2), middleRegion = this._regions[middleIdx];
109
+ if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last)
110
+ return [
111
+ middleRegion,
112
+ middleIdx
113
+ ];
114
+ cellIdx < middleRegion.first ? lastIdx = middleIdx - 1 : cellIdx > middleRegion.last && (firstIdx = middleIdx + 1);
115
+ }
116
+ (0, import_react_native_web_internals.invariant)(!1, `A region was not found containing cellIdx ${cellIdx}`);
117
+ }
118
+ }
119
+ ]), CellRenderMask2;
120
+ }();
121
+ // Annotate the CommonJS export names for ESM import in node:
122
+ 0 && (module.exports = {
123
+ CellRenderMask
124
+ });
125
+ //# sourceMappingURL=CellRenderMask.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/VirtualizedList/CellRenderMask.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AASA,wCAA0B;AAFzB,SAAA,kBAAA,UAAA,aAAA;;;;;;;;;;;;;;;;;;;;;AAUM,IAAMA,iBAAN,2BAAA;;WAAMA,gBAICC,UAAgB;4BAJjBD,eAAAA,GACX,iBAAA,MAAQE,aAAR,MAAA,GACA,iBAAA,MAAQC,YAAR,MAAA,OAGEC,6CAAUH,YAAY,GAAG,4DAAA,GAEzB,KAAKC,YAAYD,UAEbA,aAAa,IACf,KAAKE,WAAW,CAAA,IAEhB,KAAKA,WAAW;MACd;QACEE,OAAO;QACPC,MAAML,WAAW;QACjBM,UAAU;MACZ;;;uBAjBKP,iBAAAA;;MAsBXQ,KAAAA;aAAAA,WAAAA;AACE,eAAO,KAAKL;MACd;;;MAEAM,KAAAA;aAAAA,SAASC,OAAsC;AAY7C,gBAXAN,6CACEM,MAAML,SAAS,KACbK,MAAML,QAAQ,KAAKH,aACnBQ,MAAMJ,QAAQ,MACdI,MAAMJ,OAAO,KAAKJ,aAClBQ,MAAMJ,QAAQI,MAAML,QAAQ,GAC9B,wDAAA,GAKEK,QAAMJ,OAAOI,MAAML,QAIvB;cAAM,CAACM,gBAAgBC,iBAAAA,IAAqB,KAAKC,YAAYH,MAAML,KAAK,GAClE,CAACS,eAAeC,gBAAAA,IAAoB,KAAKF,YAAYH,MAAMJ,IAAI;AAIrE,cAAIM,wBAAsBG,oBAAoB,CAACJ,eAAeJ,WAM9D;gBAAMS,gBAAmC,CAAA,GACnCC,gBAAmC,CAAA,GACnCC,gBAA4B;cAChC,GAAGR;cACHH,UAAU;YACZ;AAEA,YAAII,e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AAY,IACbH,UAAUM,aAAa7B,SAChCwB,WAAWE,YAAY;QAE3B;AAEA5B,yDAAU,IAAO,6CAA6CyB,OAAAA,EAAS;MACzE;;MAhIW7B;;",
5
+ "names": ["CellRenderMask", "numCells", "_numCells", "_regions", "invariant", "first", "last", "isSpacer", "enumerateRegions", "addCells", "cells", "firstIntersect", "firstIntersectIdx", "_findRegion", "lastIntersect", "lastIntersectIdx", "newLeadRegion", "newTailRegion", "newMainRegion", "push", "replacementRegions", "numRegionsToDelete", "splice", "equals", "other", "length", "every", "region", "i", "cellIdx", "firstIdx", "lastIdx", "middleIdx", "Math", "floor", "middleRegion"]
6
+ }
@@ -0,0 +1,56 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var ChildListCollection_exports = {};
22
+ __export(ChildListCollection_exports, {
23
+ default: () => ChildListCollection
24
+ });
25
+ module.exports = __toCommonJS(ChildListCollection_exports);
26
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
27
+ class ChildListCollection {
28
+ _cellKeyToChildren = /* @__PURE__ */new Map();
29
+ _childrenToCellKey = /* @__PURE__ */new Map();
30
+ add(list, cellKey) {
31
+ (0, import_react_native_web_internals.invariant)(!this._childrenToCellKey.has(list), "Trying to add already present child list");
32
+ const cellLists = this._cellKeyToChildren.get(cellKey) ?? /* @__PURE__ */new Set();
33
+ cellLists.add(list), this._cellKeyToChildren.set(cellKey, cellLists), this._childrenToCellKey.set(list, cellKey);
34
+ }
35
+ remove(list) {
36
+ const cellKey = this._childrenToCellKey.get(list);
37
+ (0, import_react_native_web_internals.invariant)(cellKey != null, "Trying to remove non-present child list"), this._childrenToCellKey.delete(list);
38
+ const cellLists = this._cellKeyToChildren.get(cellKey);
39
+ (0, import_react_native_web_internals.invariant)(cellLists, "_cellKeyToChildren should contain cellKey"), cellLists.delete(list), cellLists.size === 0 && this._cellKeyToChildren.delete(cellKey);
40
+ }
41
+ forEach(fn) {
42
+ for (const listSet of this._cellKeyToChildren.values()) for (const list of listSet) fn(list);
43
+ }
44
+ forEachInCell(cellKey, fn) {
45
+ const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
46
+ for (const list of listSet) fn(list);
47
+ }
48
+ anyInCell(cellKey, fn) {
49
+ const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
50
+ for (const list of listSet) if (fn(list)) return !0;
51
+ return !1;
52
+ }
53
+ size() {
54
+ return this._childrenToCellKey.size;
55
+ }
56
+ }
@@ -0,0 +1,59 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var ChildListCollection_exports = {};
16
+ __export(ChildListCollection_exports, {
17
+ default: () => ChildListCollection
18
+ });
19
+ module.exports = __toCommonJS(ChildListCollection_exports);
20
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
21
+ class ChildListCollection {
22
+ _cellKeyToChildren = /* @__PURE__ */ new Map();
23
+ _childrenToCellKey = /* @__PURE__ */ new Map();
24
+ add(list, cellKey) {
25
+ (0, import_react_native_web_internals.invariant)(
26
+ !this._childrenToCellKey.has(list),
27
+ "Trying to add already present child list"
28
+ );
29
+ const cellLists = this._cellKeyToChildren.get(cellKey) ?? /* @__PURE__ */ new Set();
30
+ cellLists.add(list), this._cellKeyToChildren.set(cellKey, cellLists), this._childrenToCellKey.set(list, cellKey);
31
+ }
32
+ remove(list) {
33
+ const cellKey = this._childrenToCellKey.get(list);
34
+ (0, import_react_native_web_internals.invariant)(cellKey != null, "Trying to remove non-present child list"), this._childrenToCellKey.delete(list);
35
+ const cellLists = this._cellKeyToChildren.get(cellKey);
36
+ (0, import_react_native_web_internals.invariant)(cellLists, "_cellKeyToChildren should contain cellKey"), cellLists.delete(list), cellLists.size === 0 && this._cellKeyToChildren.delete(cellKey);
37
+ }
38
+ forEach(fn) {
39
+ for (const listSet of this._cellKeyToChildren.values())
40
+ for (const list of listSet)
41
+ fn(list);
42
+ }
43
+ forEachInCell(cellKey, fn) {
44
+ const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
45
+ for (const list of listSet)
46
+ fn(list);
47
+ }
48
+ anyInCell(cellKey, fn) {
49
+ const listSet = this._cellKeyToChildren.get(cellKey) ?? [];
50
+ for (const list of listSet)
51
+ if (fn(list))
52
+ return !0;
53
+ return !1;
54
+ }
55
+ size() {
56
+ return this._childrenToCellKey.size;
57
+ }
58
+ }
59
+ //# sourceMappingURL=ChildListCollection.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/ChildListCollection.tsx"],
4
+ "mapp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