pixel-react 1.15.13 → 1.15.15

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 (304) hide show
  1. package/README.md +75 -75
  2. package/lib/_virtual/index10.js +2 -2
  3. package/lib/_virtual/index11.js +2 -2
  4. package/lib/_virtual/index12.js +2 -2
  5. package/lib/_virtual/index9.js +2 -2
  6. package/lib/assets/icons/navigate_to_pages.svg.js +6 -0
  7. package/lib/assets/icons/navigate_to_pages.svg.js.map +1 -0
  8. package/lib/assets/icons/spinner.svg.js +1 -1
  9. package/lib/assets/icons/spinner.svg.js.map +1 -1
  10. package/lib/components/Accordion/Accordion.d.ts +1 -1
  11. package/lib/components/Accordion/Accordion.js +5 -3
  12. package/lib/components/Accordion/Accordion.js.map +1 -1
  13. package/lib/components/Accordion/types.d.ts +1 -0
  14. package/lib/components/Editor/VariableDropdown.js +2 -2
  15. package/lib/components/Icon/iconList.js +2 -0
  16. package/lib/components/Icon/iconList.js.map +1 -1
  17. package/lib/components/InputWithDropdown/InputWithDropdown.js +4 -3
  18. package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
  19. package/lib/index.cjs +9901 -3778
  20. package/lib/index.cjs.map +1 -1
  21. package/lib/index.d.ts +3 -2
  22. package/lib/node_modules/@date-fns/tz/date/index.js +1 -19
  23. package/lib/node_modules/@date-fns/tz/date/index.js.map +1 -1
  24. package/lib/node_modules/@date-fns/tz/date/mini.js +34 -6
  25. package/lib/node_modules/@date-fns/tz/date/mini.js.map +1 -1
  26. package/lib/node_modules/@date-fns/tz/tzName/index.js +40 -0
  27. package/lib/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
  28. package/lib/node_modules/@date-fns/tz/tzOffset/index.js +6 -5
  29. package/lib/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -1
  30. package/lib/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js +93 -98
  31. package/lib/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  32. package/lib/node_modules/@monaco-editor/loader/lib/es/config/index.js +1 -1
  33. package/lib/node_modules/@monaco-editor/loader/lib/es/config/index.js.map +1 -1
  34. package/lib/node_modules/@monaco-editor/loader/lib/es/loader/index.js +15 -13
  35. package/lib/node_modules/@monaco-editor/loader/lib/es/loader/index.js.map +1 -1
  36. package/lib/node_modules/@monaco-editor/loader/lib/es/utils/compose.js.map +1 -1
  37. package/lib/node_modules/@monaco-editor/loader/lib/es/utils/curry.js.map +1 -1
  38. package/lib/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js.map +1 -1
  39. package/lib/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js.map +1 -1
  40. package/lib/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js +1 -0
  41. package/lib/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js.map +1 -1
  42. package/lib/node_modules/@monaco-editor/loader/lib/es/validators/index.js +1 -2
  43. package/lib/node_modules/@monaco-editor/loader/lib/es/validators/index.js.map +1 -1
  44. package/lib/node_modules/janus-gateway/npm/dist/janus.es.js +26 -57
  45. package/lib/node_modules/janus-gateway/npm/dist/janus.es.js.map +1 -1
  46. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  47. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  48. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  49. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  50. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  51. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  52. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  53. package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
  54. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  55. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  56. package/lib/node_modules/jsencrypt/lib/JSEncrypt.js +246 -0
  57. package/lib/node_modules/jsencrypt/lib/JSEncrypt.js.map +1 -0
  58. package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +325 -0
  59. package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js.map +1 -0
  60. package/lib/node_modules/jsencrypt/lib/index.js +6 -0
  61. package/lib/node_modules/jsencrypt/lib/index.js.map +1 -0
  62. package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +570 -0
  63. package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js.map +1 -0
  64. package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js +88 -0
  65. package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js.map +1 -0
  66. package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js +66 -0
  67. package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js.map +1 -0
  68. package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js +87 -0
  69. package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js.map +1 -0
  70. package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js +65 -0
  71. package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js.map +1 -0
  72. package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +1700 -0
  73. package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js.map +1 -0
  74. package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +48 -0
  75. package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js.map +1 -0
  76. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js +77 -0
  77. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js.map +1 -0
  78. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +415 -0
  79. package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js.map +1 -0
  80. package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js +307 -0
  81. package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js.map +1 -0
  82. package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js +61 -0
  83. package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js.map +1 -0
  84. package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +1559 -0
  85. package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js.map +1 -0
  86. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +115 -82
  87. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
  88. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +68 -58
  89. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js.map +1 -1
  90. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +36 -23
  91. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js.map +1 -1
  92. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +13 -9
  93. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
  94. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +226 -187
  95. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
  96. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js +21 -27
  97. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js.map +1 -1
  98. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +150 -117
  99. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
  100. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +57 -38
  101. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
  102. package/lib/node_modules/libphonenumber-js/es6/ParseError.js +70 -109
  103. package/lib/node_modules/libphonenumber-js/es6/ParseError.js.map +1 -1
  104. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +72 -57
  105. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
  106. package/lib/node_modules/libphonenumber-js/es6/constants.js +15 -9
  107. package/lib/node_modules/libphonenumber-js/es6/constants.js.map +1 -1
  108. package/lib/node_modules/libphonenumber-js/es6/format.js +67 -93
  109. package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
  110. package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
  111. package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js.map +1 -1
  112. package/lib/node_modules/libphonenumber-js/es6/getCountries.js.map +1 -1
  113. package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
  114. package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js.map +1 -1
  115. package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -1
  116. package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js.map +1 -1
  117. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +49 -10
  118. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
  119. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +20 -32
  120. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js.map +1 -1
  121. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +5 -4
  122. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js.map +1 -1
  123. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +25 -18
  124. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
  125. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +12 -11
  126. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
  127. package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +13 -11
  128. package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map +1 -1
  129. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +21 -11
  130. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
  131. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +12 -11
  132. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js.map +1 -1
  133. package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +15 -12
  134. package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js.map +1 -1
  135. package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -1
  136. package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js.map +1 -1
  137. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +4 -4
  138. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
  139. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +59 -35
  140. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
  141. package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +2 -2
  142. package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js.map +1 -1
  143. package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +38 -36
  144. package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js.map +1 -1
  145. package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -1
  146. package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js.map +1 -1
  147. package/lib/node_modules/libphonenumber-js/es6/helpers/isObject.js.map +1 -1
  148. package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +14 -10
  149. package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js.map +1 -1
  150. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
  151. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
  152. package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +22 -27
  153. package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js.map +1 -1
  154. package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +6 -6
  155. package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js.map +1 -1
  156. package/lib/node_modules/libphonenumber-js/es6/isPossible.js +6 -7
  157. package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
  158. package/lib/node_modules/libphonenumber-js/es6/isValid.js +6 -5
  159. package/lib/node_modules/libphonenumber-js/es6/isValid.js.map +1 -1
  160. package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +44 -26
  161. package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js.map +1 -1
  162. package/lib/node_modules/libphonenumber-js/es6/metadata.js +120 -69
  163. package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
  164. package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js +87 -68
  165. package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js.map +1 -1
  166. package/lib/node_modules/libphonenumber-js/es6/parse.js +58 -40
  167. package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
  168. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +32 -36
  169. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
  170. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber.js.map +1 -1
  171. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +44 -26
  172. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js.map +1 -1
  173. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +46 -28
  174. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js.map +1 -1
  175. package/lib/node_modules/libphonenumber-js/es6/tools/semver-compare.js.map +1 -1
  176. package/lib/node_modules/libphonenumber-js/metadata.min.json.js +19 -19
  177. package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
  178. package/lib/node_modules/prop-types/index.js +1 -1
  179. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +88 -64
  180. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  181. package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
  182. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
  183. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
  184. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
  185. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +71 -6
  186. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  187. package/lib/node_modules/react-day-picker/dist/esm/components/Button.js.map +1 -1
  188. package/lib/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
  189. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -14
  190. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
  191. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
  192. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
  193. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
  194. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
  195. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
  196. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
  197. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
  198. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
  199. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
  200. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
  201. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
  202. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
  203. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
  204. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
  205. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
  206. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
  207. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
  208. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
  209. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
  210. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
  211. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
  212. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
  213. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
  214. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +3 -2
  215. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  216. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
  217. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
  218. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
  219. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
  220. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
  221. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
  222. package/lib/node_modules/react-day-picker/dist/esm/formatters/index.js +1 -1
  223. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
  224. package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
  225. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
  226. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
  227. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
  228. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
  229. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
  230. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
  231. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -4
  232. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
  233. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
  234. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
  235. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
  236. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
  237. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
  238. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
  239. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
  240. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
  241. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
  242. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
  243. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
  244. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
  245. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
  246. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +2 -2
  247. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
  248. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +9 -11
  249. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
  250. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
  251. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
  252. package/lib/node_modules/react-day-picker/dist/esm/labels/index.js +2 -2
  253. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
  254. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +3 -2
  255. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  256. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
  257. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -1
  258. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
  259. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
  260. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +1 -1
  261. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
  262. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +1 -1
  263. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
  264. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -1
  265. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
  266. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -1
  267. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
  268. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
  269. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -1
  270. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
  271. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
  272. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
  273. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
  274. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +1 -1
  275. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
  276. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -1
  277. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
  278. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
  279. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +6 -0
  280. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
  281. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
  282. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +6 -1
  283. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
  284. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
  285. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
  286. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
  287. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
  288. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
  289. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
  290. package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js +64 -0
  291. package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
  292. package/lib/node_modules/react-hook-form/dist/index.esm.js +67 -44
  293. package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  294. package/lib/node_modules/react-virtuoso/dist/index.js +1246 -1200
  295. package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
  296. package/lib/node_modules/ua-parser-js/src/ua-parser.js +85 -71
  297. package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
  298. package/lib/styles.css +1 -1
  299. package/lib/styles.css.map +1 -1
  300. package/lib/tsconfig.tsbuildinfo +1 -1
  301. package/lib/utils/getEncryptedData/getEncryptedData.d.ts +1 -1
  302. package/lib/utils/getEncryptedData/getEncryptedData.js +8 -17
  303. package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
  304. package/package.json +107 -106
@@ -3,27 +3,27 @@ import React__default, { createElement } from 'react';
3
3
  import ReactDOM from 'react-dom';
4
4
 
5
5
  const we = 0, zt = 1, qt = 2, kn = 4;
6
- function cn(t) {
6
+ function un(t) {
7
7
  return () => t;
8
8
  }
9
- function uo(t) {
9
+ function fo(t) {
10
10
  t();
11
11
  }
12
12
  function ne(t, e) {
13
13
  return (n) => t(e(n));
14
14
  }
15
- function un(t, e) {
15
+ function an(t, e) {
16
16
  return () => t(e);
17
17
  }
18
- function ao(t, e) {
18
+ function mo(t, e) {
19
19
  return (n) => t(e, n);
20
20
  }
21
- function Me(t) {
21
+ function We(t) {
22
22
  return t !== void 0;
23
23
  }
24
- function fo(...t) {
24
+ function po(...t) {
25
25
  return () => {
26
- t.map(uo);
26
+ t.map(fo);
27
27
  };
28
28
  }
29
29
  function Yt() {
@@ -31,7 +31,7 @@ function Yt() {
31
31
  function ve(t, e) {
32
32
  return e(t), t;
33
33
  }
34
- function mo(t, e) {
34
+ function ho(t, e) {
35
35
  return e(t);
36
36
  }
37
37
  function X(...t) {
@@ -43,22 +43,22 @@ function K(t, e) {
43
43
  function G(t, e) {
44
44
  t(we, e);
45
45
  }
46
- function We(t) {
46
+ function Ge(t) {
47
47
  t(qt);
48
48
  }
49
- function st(t) {
49
+ function ot(t) {
50
50
  return t(kn);
51
51
  }
52
52
  function O(t, e) {
53
- return K(t, ao(e, we));
53
+ return K(t, mo(e, we));
54
54
  }
55
- function bt(t, e) {
55
+ function Tt(t, e) {
56
56
  const n = t(zt, (o) => {
57
57
  n(), e(o);
58
58
  });
59
59
  return n;
60
60
  }
61
- function an(t) {
61
+ function dn(t) {
62
62
  let e, n;
63
63
  return (o) => (r) => {
64
64
  e = r, n && clearTimeout(n), n = setTimeout(() => {
@@ -69,13 +69,13 @@ function an(t) {
69
69
  function Fn(t, e) {
70
70
  return t === e;
71
71
  }
72
- function Z(t = Fn) {
72
+ function Y(t = Fn) {
73
73
  let e;
74
74
  return (n) => (o) => {
75
75
  t(e, o) || (e = o, n(o));
76
76
  };
77
77
  }
78
- function P(t) {
78
+ function A(t) {
79
79
  return (e) => (n) => {
80
80
  t(n) && e(n);
81
81
  };
@@ -83,34 +83,34 @@ function P(t) {
83
83
  function E(t) {
84
84
  return (e) => ne(e, t);
85
85
  }
86
- function yt(t) {
86
+ function Rt(t) {
87
87
  return (e) => () => {
88
88
  e(t);
89
89
  };
90
90
  }
91
- function x(t, ...e) {
92
- const n = po(...e);
91
+ function S(t, ...e) {
92
+ const n = go(...e);
93
93
  return (o, r) => {
94
94
  switch (o) {
95
95
  case qt:
96
- We(t);
96
+ Ge(t);
97
97
  return;
98
98
  case zt:
99
99
  return K(t, n(r));
100
100
  }
101
101
  };
102
102
  }
103
- function Rt(t, e) {
103
+ function bt(t, e) {
104
104
  return (n) => (o) => {
105
105
  n(e = t(e, o));
106
106
  };
107
107
  }
108
- function jt(t) {
108
+ function Dt(t) {
109
109
  return (e) => (n) => {
110
110
  t > 0 ? t-- : e(n);
111
111
  };
112
112
  }
113
- function Lt(t) {
113
+ function kt(t) {
114
114
  let e = null, n;
115
115
  return (o) => (r) => {
116
116
  e = r, !n && (n = setTimeout(() => {
@@ -118,7 +118,7 @@ function Lt(t) {
118
118
  }, t));
119
119
  };
120
120
  }
121
- function _(...t) {
121
+ function N(...t) {
122
122
  const e = new Array(t.length);
123
123
  let n = 0, o = null;
124
124
  const r = Math.pow(2, t.length) - 1;
@@ -135,10 +135,10 @@ function _(...t) {
135
135
  n === r ? l() : o = l;
136
136
  };
137
137
  }
138
- function po(...t) {
139
- return (e) => t.reduceRight(mo, e);
138
+ function go(...t) {
139
+ return (e) => t.reduceRight(ho, e);
140
140
  }
141
- function ho(t) {
141
+ function Io(t) {
142
142
  let e, n;
143
143
  const o = () => e == null ? void 0 : e();
144
144
  return function(r, s) {
@@ -151,7 +151,7 @@ function ho(t) {
151
151
  }
152
152
  };
153
153
  }
154
- function C(t) {
154
+ function w(t) {
155
155
  let e = t;
156
156
  const n = $();
157
157
  return (o, r) => {
@@ -170,7 +170,7 @@ function C(t) {
170
170
  };
171
171
  }
172
172
  function ct(t, e) {
173
- return ve(C(e), (n) => O(t, n));
173
+ return ve(w(e), (n) => O(t, n));
174
174
  }
175
175
  function $() {
176
176
  const t = [];
@@ -199,12 +199,12 @@ function U(t, e = [], { singleton: n } = { singleton: true }) {
199
199
  return {
200
200
  constructor: t,
201
201
  dependencies: e,
202
- id: go(),
202
+ id: So(),
203
203
  singleton: n
204
204
  };
205
205
  }
206
- const go = () => Symbol();
207
- function Io(t) {
206
+ const So = () => Symbol();
207
+ function xo(t) {
208
208
  const e = /* @__PURE__ */ new Map(), n = ({ constructor: o, dependencies: r, id: s, singleton: i }) => {
209
209
  if (i && e.has(s))
210
210
  return e.get(s);
@@ -225,7 +225,7 @@ function rt(...t) {
225
225
  }), function(s, i) {
226
226
  switch (s) {
227
227
  case qt: {
228
- We(e);
228
+ Ge(e);
229
229
  return;
230
230
  }
231
231
  case zt:
@@ -233,36 +233,36 @@ function rt(...t) {
233
233
  }
234
234
  };
235
235
  }
236
- function A(t, e = Fn) {
237
- return x(t, Z(e));
236
+ function V(t, e = Fn) {
237
+ return S(t, Y(e));
238
238
  }
239
- function dn(...t) {
239
+ function Le(...t) {
240
240
  return function(e, n) {
241
241
  switch (e) {
242
242
  case qt:
243
243
  return;
244
244
  case zt:
245
- return fo(...t.map((o) => K(o, n)));
245
+ return po(...t.map((o) => K(o, n)));
246
246
  }
247
247
  };
248
248
  }
249
249
  var mt = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t))(mt || {});
250
- const So = {
250
+ const To = {
251
251
  0: "debug",
252
252
  3: "error",
253
253
  1: "log",
254
254
  2: "warn"
255
- }, xo = () => typeof globalThis > "u" ? window : globalThis, Vt = U(
255
+ }, Co = () => typeof globalThis > "u" ? window : globalThis, Vt = U(
256
256
  () => {
257
- const t = C(
257
+ const t = w(
258
258
  3
259
259
  /* ERROR */
260
260
  );
261
261
  return {
262
- log: C((n, o, r = 1) => {
262
+ log: w((n, o, r = 1) => {
263
263
  var i;
264
- const s = (i = xo().VIRTUOSO_LOG_LEVEL) != null ? i : st(t);
265
- r >= s && console[So[r]](
264
+ const s = (i = Co().VIRTUOSO_LOG_LEVEL) != null ? i : ot(t);
265
+ r >= s && console[To[r]](
266
266
  "%creact-virtuoso: %c%s %o",
267
267
  "color: #0253b3; font-weight: bold",
268
268
  "color: initial",
@@ -277,9 +277,9 @@ const So = {
277
277
  { singleton: true }
278
278
  );
279
279
  function Ht(t, e, n) {
280
- return Ge(t, e, n).callbackRef;
280
+ return _e(t, e, n).callbackRef;
281
281
  }
282
- function Ge(t, e, n) {
282
+ function _e(t, e, n) {
283
283
  const o = React__default.useRef(null);
284
284
  let r = (i) => {
285
285
  };
@@ -296,28 +296,28 @@ function Ge(t, e, n) {
296
296
  }
297
297
  function On(t, e, n, o, r, s, i, l, c) {
298
298
  const a = React__default.useCallback(
299
- (p) => {
300
- const S = To(p.children, e, l ? "offsetWidth" : "offsetHeight", r);
301
- let g = p.parentElement;
302
- for (; !g.dataset.virtuosoScroller; )
303
- g = g.parentElement;
304
- const h = g.lastElementChild.dataset.viewportType === "window";
305
- let w;
306
- h && (w = g.ownerDocument.defaultView);
307
- const v = i ? l ? i.scrollLeft : i.scrollTop : h ? l ? w.scrollX || w.document.documentElement.scrollLeft : w.scrollY || w.document.documentElement.scrollTop : l ? g.scrollLeft : g.scrollTop, m = i ? l ? i.scrollWidth : i.scrollHeight : h ? l ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight : l ? g.scrollWidth : g.scrollHeight, d = i ? l ? i.offsetWidth : i.offsetHeight : h ? l ? w.innerWidth : w.innerHeight : l ? g.offsetWidth : g.offsetHeight;
299
+ (m) => {
300
+ const x = wo(m.children, e, l ? "offsetWidth" : "offsetHeight", r);
301
+ let h = m.parentElement;
302
+ for (; !h.dataset.virtuosoScroller; )
303
+ h = h.parentElement;
304
+ const I = h.lastElementChild.dataset.viewportType === "window";
305
+ let C;
306
+ I && (C = h.ownerDocument.defaultView);
307
+ const v = i ? l ? i.scrollLeft : i.scrollTop : I ? l ? C.scrollX || C.document.documentElement.scrollLeft : C.scrollY || C.document.documentElement.scrollTop : l ? h.scrollLeft : h.scrollTop, g = i ? l ? i.scrollWidth : i.scrollHeight : I ? l ? C.document.documentElement.scrollWidth : C.document.documentElement.scrollHeight : l ? h.scrollWidth : h.scrollHeight, p = i ? l ? i.offsetWidth : i.offsetHeight : I ? l ? C.innerWidth : C.innerHeight : l ? h.offsetWidth : h.offsetHeight;
308
308
  o({
309
- scrollHeight: m,
309
+ scrollHeight: g,
310
310
  scrollTop: Math.max(v, 0),
311
- viewportHeight: d
311
+ viewportHeight: p
312
312
  }), s == null || s(
313
- l ? fn("column-gap", getComputedStyle(p).columnGap, r) : fn("row-gap", getComputedStyle(p).rowGap, r)
314
- ), S !== null && t(S);
313
+ l ? fn("column-gap", getComputedStyle(m).columnGap, r) : fn("row-gap", getComputedStyle(m).rowGap, r)
314
+ ), x !== null && t(x);
315
315
  },
316
316
  [t, e, r, s, i, o, l]
317
317
  );
318
- return Ge(a, n, c);
318
+ return _e(a, n, c);
319
319
  }
320
- function To(t, e, n, o) {
320
+ function wo(t, e, n, o) {
321
321
  const r = t.length;
322
322
  if (r === 0)
323
323
  return null;
@@ -326,40 +326,40 @@ function To(t, e, n, o) {
326
326
  const l = t.item(i);
327
327
  if (l.dataset.index === void 0)
328
328
  continue;
329
- const c = parseInt(l.dataset.index), a = parseFloat(l.dataset.knownSize), p = e(l, n);
330
- if (p === 0 && o("Zero-sized element, this should not happen", { child: l }, mt.ERROR), p === a)
329
+ const c = parseInt(l.dataset.index), a = parseFloat(l.dataset.knownSize), m = e(l, n);
330
+ if (m === 0 && o("Zero-sized element, this should not happen", { child: l }, mt.ERROR), m === a)
331
331
  continue;
332
- const S = s[s.length - 1];
333
- s.length === 0 || S.size !== p || S.endIndex !== c - 1 ? s.push({ endIndex: c, size: p, startIndex: c }) : s[s.length - 1].endIndex++;
332
+ const x = s[s.length - 1];
333
+ s.length === 0 || x.size !== m || x.endIndex !== c - 1 ? s.push({ endIndex: c, size: m, startIndex: c }) : s[s.length - 1].endIndex++;
334
334
  }
335
335
  return s;
336
336
  }
337
337
  function fn(t, e, n) {
338
338
  return e !== "normal" && !(e != null && e.endsWith("px")) && n(`${t} was not resolved to pixel value correctly`, e, mt.WARN), e === "normal" ? 0 : parseInt(e != null ? e : "0", 10);
339
339
  }
340
- function _e(t, e, n) {
340
+ function Ne(t, e, n) {
341
341
  const o = React__default.useRef(null), r = React__default.useCallback(
342
342
  (c) => {
343
343
  if (!(c != null && c.offsetParent))
344
344
  return;
345
- const a = c.getBoundingClientRect(), p = a.width;
346
- let S, g;
345
+ const a = c.getBoundingClientRect(), m = a.width;
346
+ let x, h;
347
347
  if (e) {
348
- const h = e.getBoundingClientRect(), w = a.top - h.top;
349
- g = h.height - Math.max(0, w), S = w + e.scrollTop;
348
+ const I = e.getBoundingClientRect(), C = a.top - I.top;
349
+ h = I.height - Math.max(0, C), x = C + e.scrollTop;
350
350
  } else {
351
- const h = i.current.ownerDocument.defaultView;
352
- g = h.innerHeight - Math.max(0, a.top), S = a.top + h.scrollY;
351
+ const I = i.current.ownerDocument.defaultView;
352
+ h = I.innerHeight - Math.max(0, a.top), x = a.top + I.scrollY;
353
353
  }
354
354
  o.current = {
355
- offsetTop: S,
356
- visibleHeight: g,
357
- visibleWidth: p
355
+ offsetTop: x,
356
+ visibleHeight: h,
357
+ visibleWidth: m
358
358
  }, t(o.current);
359
359
  },
360
360
  // eslint-disable-next-line react-hooks/exhaustive-deps
361
361
  [t, e]
362
- ), { callbackRef: s, ref: i } = Ge(r, true, n), l = React__default.useCallback(() => {
362
+ ), { callbackRef: s, ref: i } = _e(r, true, n), l = React__default.useCallback(() => {
363
363
  r(i.current);
364
364
  }, [r, i]);
365
365
  return React__default.useEffect(() => {
@@ -382,33 +382,33 @@ function _e(t, e, n) {
382
382
  }
383
383
  const at = U(
384
384
  () => {
385
- const t = $(), e = $(), n = C(0), o = $(), r = C(0), s = $(), i = $(), l = C(0), c = C(0), a = C(0), p = C(0), S = $(), g = $(), h = C(false), w = C(false), v = C(false);
385
+ const t = $(), e = $(), n = w(0), o = $(), r = w(0), s = $(), i = $(), l = w(0), c = w(0), a = w(0), m = w(0), x = $(), h = $(), I = w(false), C = w(false), v = w(false);
386
386
  return O(
387
- x(
387
+ S(
388
388
  t,
389
- E(({ scrollTop: m }) => m)
389
+ E(({ scrollTop: g }) => g)
390
390
  ),
391
391
  e
392
392
  ), O(
393
- x(
393
+ S(
394
394
  t,
395
- E(({ scrollHeight: m }) => m)
395
+ E(({ scrollHeight: g }) => g)
396
396
  ),
397
397
  i
398
398
  ), O(e, r), {
399
399
  deviation: n,
400
400
  fixedFooterHeight: a,
401
401
  fixedHeaderHeight: c,
402
- footerHeight: p,
402
+ footerHeight: m,
403
403
  headerHeight: l,
404
- horizontalDirection: w,
405
- scrollBy: g,
404
+ horizontalDirection: C,
405
+ scrollBy: h,
406
406
  // input
407
407
  scrollContainerState: t,
408
408
  scrollHeight: i,
409
- scrollingInProgress: h,
409
+ scrollingInProgress: I,
410
410
  // signals
411
- scrollTo: S,
411
+ scrollTo: x,
412
412
  scrollTop: e,
413
413
  skipAnimationFrameInResizeObserver: v,
414
414
  smoothScrollTargetReached: o,
@@ -439,30 +439,30 @@ function re(t, e) {
439
439
  if (!j(t))
440
440
  return e === t.k ? t.v : e < t.k ? re(t.l, e) : re(t.r, e);
441
441
  }
442
- function Ct(t, e, n = "k") {
442
+ function wt(t, e, n = "k") {
443
443
  if (j(t))
444
444
  return [-1 / 0, void 0];
445
445
  if (Number(t[n]) === e)
446
446
  return [t.k, t.v];
447
447
  if (Number(t[n]) < e) {
448
- const o = Ct(t.r, e, n);
448
+ const o = wt(t.r, e, n);
449
449
  return o[0] === -1 / 0 ? [t.k, t.v] : o;
450
450
  }
451
- return Ct(t.l, e, n);
451
+ return wt(t.l, e, n);
452
452
  }
453
453
  function pt(t, e, n) {
454
- return j(t) ? Pn(e, n, 1) : e === t.k ? ot(t, { k: e, v: n }) : e < t.k ? mn(ot(t, { l: pt(t.l, e, n) })) : mn(ot(t, { r: pt(t.r, e, n) }));
454
+ return j(t) ? Pn(e, n, 1) : e === t.k ? st(t, { k: e, v: n }) : e < t.k ? mn(st(t, { l: pt(t.l, e, n) })) : mn(st(t, { r: pt(t.r, e, n) }));
455
455
  }
456
- function Kt() {
456
+ function jt() {
457
457
  return oe;
458
458
  }
459
459
  function ye(t, e, n) {
460
460
  if (j(t))
461
461
  return [];
462
- const o = Ct(t, e)[0];
463
- return Co(ze(t, o, n));
462
+ const o = wt(t, e)[0];
463
+ return vo(Ve(t, o, n));
464
464
  }
465
- function Le(t, e) {
465
+ function ze(t, e) {
466
466
  if (j(t)) return oe;
467
467
  const { k: n, l: o, r } = t;
468
468
  if (e === n) {
@@ -472,19 +472,19 @@ function Le(t, e) {
472
472
  return o;
473
473
  {
474
474
  const [s, i] = Vn(o);
475
- return ge(ot(t, { k: s, l: zn(o), v: i }));
475
+ return ge(st(t, { k: s, l: zn(o), v: i }));
476
476
  }
477
- } else return e < n ? ge(ot(t, { l: Le(o, e) })) : ge(ot(t, { r: Le(r, e) }));
477
+ } else return e < n ? ge(st(t, { l: ze(o, e) })) : ge(st(t, { r: ze(r, e) }));
478
478
  }
479
479
  function Gt(t) {
480
480
  return j(t) ? [] : [...Gt(t.l), { k: t.k, v: t.v }, ...Gt(t.r)];
481
481
  }
482
- function ze(t, e, n) {
482
+ function Ve(t, e, n) {
483
483
  if (j(t))
484
484
  return [];
485
485
  const { k: o, l: r, r: s, v: i } = t;
486
486
  let l = [];
487
- return o > e && (l = l.concat(ze(r, e, n))), o >= e && o <= n && l.push({ k: o, v: i }), o <= n && (l = l.concat(ze(s, e, n))), l;
487
+ return o > e && (l = l.concat(Ve(r, e, n))), o >= e && o <= n && l.push({ k: o, v: i }), o <= n && (l = l.concat(Ve(s, e, n))), l;
488
488
  }
489
489
  function ge(t) {
490
490
  const { l: e, lvl: n, r: o } = t;
@@ -492,12 +492,12 @@ function ge(t) {
492
492
  return t;
493
493
  if (n > o.lvl + 1) {
494
494
  if (Ee(e))
495
- return An(ot(t, { lvl: n - 1 }));
495
+ return An(st(t, { lvl: n - 1 }));
496
496
  if (!j(e) && !j(e.r))
497
- return ot(e.r, {
498
- l: ot(e, { r: e.r.l }),
497
+ return st(e.r, {
498
+ l: st(e, { r: e.r.l }),
499
499
  lvl: n,
500
- r: ot(t, {
500
+ r: st(t, {
501
501
  l: e.r.r,
502
502
  lvl: n - 1
503
503
  })
@@ -505,22 +505,22 @@ function ge(t) {
505
505
  throw new Error("Unexpected empty nodes");
506
506
  } else {
507
507
  if (Ee(t))
508
- return Ve(ot(t, { lvl: n - 1 }));
508
+ return Pe(st(t, { lvl: n - 1 }));
509
509
  if (!j(o) && !j(o.l)) {
510
510
  const r = o.l, s = Ee(r) ? o.lvl - 1 : o.lvl;
511
- return ot(r, {
512
- l: ot(t, {
511
+ return st(r, {
512
+ l: st(t, {
513
513
  lvl: n - 1,
514
514
  r: r.l
515
515
  }),
516
516
  lvl: r.lvl + 1,
517
- r: Ve(ot(o, { l: r.r, lvl: s }))
517
+ r: Pe(st(o, { l: r.r, lvl: s }))
518
518
  });
519
519
  } else
520
520
  throw new Error("Unexpected empty nodes");
521
521
  }
522
522
  }
523
- function ot(t, e) {
523
+ function st(t, e) {
524
524
  return Pn(
525
525
  e.k !== void 0 ? e.k : t.k,
526
526
  e.v !== void 0 ? e.v : t.v,
@@ -530,7 +530,7 @@ function ot(t, e) {
530
530
  );
531
531
  }
532
532
  function zn(t) {
533
- return j(t.r) ? t.l : ge(ot(t, { r: zn(t.r) }));
533
+ return j(t.r) ? t.l : ge(st(t, { r: zn(t.r) }));
534
534
  }
535
535
  function Ee(t) {
536
536
  return j(t) || t.lvl > t.r.lvl;
@@ -542,17 +542,17 @@ function Pn(t, e, n, o = oe, r = oe) {
542
542
  return { k: t, l: o, lvl: n, r, v: e };
543
543
  }
544
544
  function mn(t) {
545
- return Ve(An(t));
545
+ return Pe(An(t));
546
546
  }
547
547
  function An(t) {
548
548
  const { l: e } = t;
549
- return !j(e) && e.lvl === t.lvl ? ot(e, { r: ot(t, { l: e.r }) }) : t;
549
+ return !j(e) && e.lvl === t.lvl ? st(e, { r: st(t, { l: e.r }) }) : t;
550
550
  }
551
- function Ve(t) {
551
+ function Pe(t) {
552
552
  const { lvl: e, r: n } = t;
553
- return !j(n) && !j(n.r) && n.lvl === e && n.r.lvl === e ? ot(n, { l: ot(t, { r: n.l }), lvl: e + 1 }) : t;
553
+ return !j(n) && !j(n.r) && n.lvl === e && n.r.lvl === e ? st(n, { l: st(t, { r: n.l }), lvl: e + 1 }) : t;
554
554
  }
555
- function Co(t) {
555
+ function vo(t) {
556
556
  return Ln(t, ({ k: e, v: n }) => ({ index: e, value: n }));
557
557
  }
558
558
  function Mn(t, e) {
@@ -561,8 +561,8 @@ function Mn(t, e) {
561
561
  function se(t, e) {
562
562
  return !!(t && t[0] === e[0] && t[1] === e[1]);
563
563
  }
564
- const Ne = U(
565
- () => ({ recalcInProgress: C(false) }),
564
+ const De = U(
565
+ () => ({ recalcInProgress: w(false) }),
566
566
  [],
567
567
  { singleton: true }
568
568
  );
@@ -587,31 +587,31 @@ function Se(t, e, n, o = 0) {
587
587
  }
588
588
  throw new Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`);
589
589
  }
590
- function wo(t, e, n, o) {
590
+ function yo(t, e, n, o) {
591
591
  const r = Se(t, e, o), s = Se(t, n, o, r);
592
592
  return t.slice(r, s + 1);
593
593
  }
594
- function wt(t, e) {
594
+ function vt(t, e) {
595
595
  return Math.round(t.getBoundingClientRect()[e]);
596
596
  }
597
597
  function Re(t) {
598
598
  return !j(t.groupOffsetTree);
599
599
  }
600
- function De({ index: t }, e) {
600
+ function $e({ index: t }, e) {
601
601
  return e === t ? 0 : e < t ? -1 : 1;
602
602
  }
603
- function vo() {
603
+ function Ro() {
604
604
  return {
605
605
  groupIndices: [],
606
- groupOffsetTree: Kt(),
606
+ groupOffsetTree: jt(),
607
607
  lastIndex: 0,
608
608
  lastOffset: 0,
609
609
  lastSize: 0,
610
610
  offsetTree: [],
611
- sizeTree: Kt()
611
+ sizeTree: jt()
612
612
  };
613
613
  }
614
- function yo(t, e) {
614
+ function bo(t, e) {
615
615
  let n = j(t) ? 0 : 1 / 0;
616
616
  for (const o of e) {
617
617
  const { endIndex: r, size: s, startIndex: i } = o;
@@ -620,25 +620,25 @@ function yo(t, e) {
620
620
  continue;
621
621
  }
622
622
  const l = ye(t, i - 1, r + 1);
623
- if (l.some(Fo(o)))
623
+ if (l.some(Lo(o)))
624
624
  continue;
625
625
  let c = false, a = false;
626
- for (const { end: p, start: S, value: g } of l)
627
- c ? (r >= S || s === g) && (t = Le(t, S)) : (a = g !== s, c = true), p > r && r >= S && g !== s && (t = pt(t, r + 1, g));
626
+ for (const { end: m, start: x, value: h } of l)
627
+ c ? (r >= x || s === h) && (t = ze(t, x)) : (a = h !== s, c = true), m > r && r >= x && h !== s && (t = pt(t, r + 1, h));
628
628
  a && (t = pt(t, i, s));
629
629
  }
630
630
  return [t, n];
631
631
  }
632
- function Ro(t) {
632
+ function Ho(t) {
633
633
  return typeof t.groupIndex < "u";
634
634
  }
635
- function bo({ offset: t }, e) {
635
+ function Eo({ offset: t }, e) {
636
636
  return e === t ? 0 : e < t ? -1 : 1;
637
637
  }
638
638
  function ie(t, e, n) {
639
639
  if (e.length === 0)
640
640
  return 0;
641
- const { index: o, offset: r, size: s } = Wn(e, t, De), i = t - o, l = s * i + (i - 1) * n + r;
641
+ const { index: o, offset: r, size: s } = Wn(e, t, $e), i = t - o, l = s * i + (i - 1) * n + r;
642
642
  return l > 0 ? l + n : l;
643
643
  }
644
644
  function Gn(t, e) {
@@ -650,7 +650,7 @@ function Gn(t, e) {
650
650
  return t + n;
651
651
  }
652
652
  function _n(t, e, n) {
653
- if (Ro(t))
653
+ if (Ho(t))
654
654
  return e.groupIndices[t.groupIndex] + 1;
655
655
  {
656
656
  const o = t.index === "LAST" ? n : t.index;
@@ -658,32 +658,32 @@ function _n(t, e, n) {
658
658
  return r = Math.max(0, r, Math.min(n, r)), r;
659
659
  }
660
660
  }
661
- function Ho(t, e, n, o = 0) {
662
- return o > 0 && (e = Math.max(e, Wn(t, o, De).offset)), Ln(wo(t, e, n, bo), ko);
661
+ function Bo(t, e, n, o = 0) {
662
+ return o > 0 && (e = Math.max(e, Wn(t, o, $e).offset)), Ln(yo(t, e, n, Eo), Oo);
663
663
  }
664
- function Eo(t, [e, n, o, r]) {
664
+ function ko(t, [e, n, o, r]) {
665
665
  e.length > 0 && o("received item sizes", e, mt.DEBUG);
666
666
  const s = t.sizeTree;
667
667
  let i = s, l = 0;
668
668
  if (n.length > 0 && j(s) && e.length === 2) {
669
- const g = e[0].size, h = e[1].size;
670
- i = n.reduce((w, v) => pt(pt(w, v, g), v + 1, h), i);
669
+ const h = e[0].size, I = e[1].size;
670
+ i = n.reduce((C, v) => pt(pt(C, v, h), v + 1, I), i);
671
671
  } else
672
- [i, l] = yo(i, e);
672
+ [i, l] = bo(i, e);
673
673
  if (i === s)
674
674
  return t;
675
- const { lastIndex: c, lastOffset: a, lastSize: p, offsetTree: S } = Pe(t.offsetTree, l, i, r);
675
+ const { lastIndex: c, lastOffset: a, lastSize: m, offsetTree: x } = Ae(t.offsetTree, l, i, r);
676
676
  return {
677
677
  groupIndices: n,
678
- groupOffsetTree: n.reduce((g, h) => pt(g, h, ie(h, S, r)), Kt()),
678
+ groupOffsetTree: n.reduce((h, I) => pt(h, I, ie(I, x, r)), jt()),
679
679
  lastIndex: c,
680
680
  lastOffset: a,
681
- lastSize: p,
682
- offsetTree: S,
681
+ lastSize: m,
682
+ offsetTree: x,
683
683
  sizeTree: i
684
684
  };
685
685
  }
686
- function Bo(t) {
686
+ function Fo(t) {
687
687
  return Gt(t).map(({ k: e, v: n }, o, r) => {
688
688
  const s = r[o + 1];
689
689
  return { endIndex: s ? s.k - 1 : 1 / 0, size: n, startIndex: e };
@@ -695,21 +695,21 @@ function pn(t, e) {
695
695
  n += e[o + 1] - e[o] - 1, o++;
696
696
  return o - (n === t ? 0 : 1);
697
697
  }
698
- function Pe(t, e, n, o) {
698
+ function Ae(t, e, n, o) {
699
699
  let r = t, s = 0, i = 0, l = 0, c = 0;
700
700
  if (e !== 0) {
701
- c = Se(r, e - 1, De), l = r[c].offset;
702
- const p = Ct(n, e - 1);
703
- s = p[0], i = p[1], r.length && r[c].size === Ct(n, e)[1] && (c -= 1), r = r.slice(0, c + 1);
701
+ c = Se(r, e - 1, $e), l = r[c].offset;
702
+ const m = wt(n, e - 1);
703
+ s = m[0], i = m[1], r.length && r[c].size === wt(n, e)[1] && (c -= 1), r = r.slice(0, c + 1);
704
704
  } else
705
705
  r = [];
706
- for (const { start: a, value: p } of ye(n, e, 1 / 0)) {
707
- const S = a - s, g = S * i + l + S * o;
706
+ for (const { start: a, value: m } of ye(n, e, 1 / 0)) {
707
+ const x = a - s, h = x * i + l + x * o;
708
708
  r.push({
709
709
  index: a,
710
- offset: g,
711
- size: p
712
- }), s = a, l = g, i = p;
710
+ offset: h,
711
+ size: m
712
+ }), s = a, l = h, i = m;
713
713
  }
714
714
  return {
715
715
  lastIndex: s,
@@ -718,112 +718,112 @@ function Pe(t, e, n, o) {
718
718
  offsetTree: r
719
719
  };
720
720
  }
721
- function ko(t) {
721
+ function Oo(t) {
722
722
  return { index: t.index, value: t };
723
723
  }
724
- function Fo(t) {
724
+ function Lo(t) {
725
725
  const { endIndex: e, size: n, startIndex: o } = t;
726
726
  return (r) => r.start === o && (r.end === e || r.end === 1 / 0) && r.value === n;
727
727
  }
728
- const Oo = {
728
+ const zo = {
729
729
  offsetHeight: "height",
730
730
  offsetWidth: "width"
731
731
  }, Et = U(
732
732
  ([{ log: t }, { recalcInProgress: e }]) => {
733
- const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l = C(0), c = C([]), a = C(void 0), p = C(void 0), S = C((I, f) => wt(I, Oo[f])), g = C(void 0), h = C(0), w = vo(), v = ct(
734
- x(n, _(c, t, h), Rt(Eo, w), Z()),
735
- w
736
- ), m = ct(
737
- x(
733
+ const n = $(), o = $(), r = ct(o, 0), s = $(), i = $(), l = w(0), c = w([]), a = w(void 0), m = w(void 0), x = w((f, d) => vt(f, zo[d])), h = w(void 0), I = w(0), C = Ro(), v = ct(
734
+ S(n, N(c, t, I), bt(ko, C), Y()),
735
+ C
736
+ ), g = ct(
737
+ S(
738
738
  c,
739
- Z(),
740
- Rt((I, f) => ({ current: f, prev: I.current }), {
739
+ Y(),
740
+ bt((f, d) => ({ current: d, prev: f.current }), {
741
741
  current: [],
742
742
  prev: []
743
743
  }),
744
- E(({ prev: I }) => I)
744
+ E(({ prev: f }) => f)
745
745
  ),
746
746
  []
747
747
  );
748
748
  O(
749
- x(
749
+ S(
750
750
  c,
751
- P((I) => I.length > 0),
752
- _(v, h),
753
- E(([I, f, b]) => {
754
- const k = I.reduce((F, L, V) => pt(F, L, ie(L, f.offsetTree, b) || V), Kt());
751
+ A((f) => f.length > 0),
752
+ N(v, I),
753
+ E(([f, d, y]) => {
754
+ const B = f.reduce((k, L, z) => pt(k, L, ie(L, d.offsetTree, y) || z), jt());
755
755
  return {
756
- ...f,
757
- groupIndices: I,
758
- groupOffsetTree: k
756
+ ...d,
757
+ groupIndices: f,
758
+ groupOffsetTree: B
759
759
  };
760
760
  })
761
761
  ),
762
762
  v
763
763
  ), O(
764
- x(
764
+ S(
765
765
  o,
766
- _(v),
767
- P(([I, { lastIndex: f }]) => I < f),
768
- E(([I, { lastIndex: f, lastSize: b }]) => [
766
+ N(v),
767
+ A(([f, { lastIndex: d }]) => f < d),
768
+ E(([f, { lastIndex: d, lastSize: y }]) => [
769
769
  {
770
- endIndex: f,
771
- size: b,
772
- startIndex: I
770
+ endIndex: d,
771
+ size: y,
772
+ startIndex: f
773
773
  }
774
774
  ])
775
775
  ),
776
776
  n
777
- ), O(a, p);
778
- const d = ct(
779
- x(
777
+ ), O(a, m);
778
+ const p = ct(
779
+ S(
780
780
  a,
781
- E((I) => I === void 0)
781
+ E((f) => f === void 0)
782
782
  ),
783
783
  true
784
784
  );
785
785
  O(
786
- x(
787
- p,
788
- P((I) => I !== void 0 && j(st(v).sizeTree)),
789
- E((I) => [{ endIndex: 0, size: I, startIndex: 0 }])
786
+ S(
787
+ m,
788
+ A((f) => f !== void 0 && j(ot(v).sizeTree)),
789
+ E((f) => [{ endIndex: 0, size: f, startIndex: 0 }])
790
790
  ),
791
791
  n
792
792
  );
793
793
  const u = ht(
794
- x(
794
+ S(
795
795
  n,
796
- _(v),
797
- Rt(
798
- ({ sizes: I }, [f, b]) => ({
799
- changed: b !== I,
800
- sizes: b
796
+ N(v),
797
+ bt(
798
+ ({ sizes: f }, [d, y]) => ({
799
+ changed: y !== f,
800
+ sizes: y
801
801
  }),
802
- { changed: false, sizes: w }
802
+ { changed: false, sizes: C }
803
803
  ),
804
- E((I) => I.changed)
804
+ E((f) => f.changed)
805
805
  )
806
806
  );
807
807
  K(
808
- x(
808
+ S(
809
809
  l,
810
- Rt(
811
- (I, f) => ({ diff: I.prev - f, prev: f }),
810
+ bt(
811
+ (f, d) => ({ diff: f.prev - d, prev: d }),
812
812
  { diff: 0, prev: 0 }
813
813
  ),
814
- E((I) => I.diff)
814
+ E((f) => f.diff)
815
815
  ),
816
- (I) => {
817
- const { groupIndices: f } = st(v);
818
- if (I > 0)
819
- G(e, true), G(s, I + pn(I, f));
820
- else if (I < 0) {
821
- const b = st(m);
822
- b.length > 0 && (I -= pn(-I, b)), G(i, I);
816
+ (f) => {
817
+ const { groupIndices: d } = ot(v);
818
+ if (f > 0)
819
+ G(e, true), G(s, f + pn(f, d));
820
+ else if (f < 0) {
821
+ const y = ot(g);
822
+ y.length > 0 && (f -= pn(-f, y)), G(i, f);
823
823
  }
824
824
  }
825
- ), K(x(l, _(t)), ([I, f]) => {
826
- I < 0 && f(
825
+ ), K(S(l, N(t)), ([f, d]) => {
826
+ f < 0 && d(
827
827
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
828
828
  { firstItemIndex: l },
829
829
  mt.ERROR
@@ -831,59 +831,59 @@ const Oo = {
831
831
  });
832
832
  const T = ht(s);
833
833
  O(
834
- x(
834
+ S(
835
835
  s,
836
- _(v),
837
- E(([I, f]) => {
838
- const b = f.groupIndices.length > 0, k = [], F = f.lastSize;
839
- if (b) {
840
- const L = re(f.sizeTree, 0);
841
- let V = 0, D = 0;
842
- for (; V < I; ) {
843
- const B = f.groupIndices[D], Y = f.groupIndices.length === D + 1 ? 1 / 0 : f.groupIndices[D + 1] - B - 1;
844
- k.push({
845
- endIndex: B,
836
+ N(v),
837
+ E(([f, d]) => {
838
+ const y = d.groupIndices.length > 0, B = [], k = d.lastSize;
839
+ if (y) {
840
+ const L = re(d.sizeTree, 0);
841
+ let z = 0, _ = 0;
842
+ for (; z < f; ) {
843
+ const F = d.groupIndices[_], q = d.groupIndices.length === _ + 1 ? 1 / 0 : d.groupIndices[_ + 1] - F - 1;
844
+ B.push({
845
+ endIndex: F,
846
846
  size: L,
847
- startIndex: B
848
- }), k.push({
849
- endIndex: B + 1 + Y - 1,
850
- size: F,
851
- startIndex: B + 1
852
- }), D++, V += Y + 1;
847
+ startIndex: F
848
+ }), B.push({
849
+ endIndex: F + 1 + q - 1,
850
+ size: k,
851
+ startIndex: F + 1
852
+ }), _++, z += q + 1;
853
853
  }
854
- const J = Gt(f.sizeTree);
855
- return V !== I && J.shift(), J.reduce(
856
- (B, { k: Y, v: it }) => {
857
- let dt = B.ranges;
858
- return B.prevSize !== 0 && (dt = [
859
- ...B.ranges,
854
+ const J = Gt(d.sizeTree);
855
+ return z !== f && J.shift(), J.reduce(
856
+ (F, { k: q, v: it }) => {
857
+ let dt = F.ranges;
858
+ return F.prevSize !== 0 && (dt = [
859
+ ...F.ranges,
860
860
  {
861
- endIndex: Y + I - 1,
862
- size: B.prevSize,
863
- startIndex: B.prevIndex
861
+ endIndex: q + f - 1,
862
+ size: F.prevSize,
863
+ startIndex: F.prevIndex
864
864
  }
865
865
  ]), {
866
- prevIndex: Y + I,
866
+ prevIndex: q + f,
867
867
  prevSize: it,
868
868
  ranges: dt
869
869
  };
870
870
  },
871
871
  {
872
- prevIndex: I,
872
+ prevIndex: f,
873
873
  prevSize: 0,
874
- ranges: k
874
+ ranges: B
875
875
  }
876
876
  ).ranges;
877
877
  }
878
- return Gt(f.sizeTree).reduce(
879
- (L, { k: V, v: D }) => ({
880
- prevIndex: V + I,
881
- prevSize: D,
882
- ranges: [...L.ranges, { endIndex: V + I - 1, size: L.prevSize, startIndex: L.prevIndex }]
878
+ return Gt(d.sizeTree).reduce(
879
+ (L, { k: z, v: _ }) => ({
880
+ prevIndex: z + f,
881
+ prevSize: _,
882
+ ranges: [...L.ranges, { endIndex: z + f - 1, size: L.prevSize, startIndex: L.prevIndex }]
883
883
  }),
884
884
  {
885
885
  prevIndex: 0,
886
- prevSize: F,
886
+ prevSize: k,
887
887
  ranges: []
888
888
  }
889
889
  ).ranges;
@@ -891,49 +891,49 @@ const Oo = {
891
891
  ),
892
892
  n
893
893
  );
894
- const R = ht(
895
- x(
894
+ const b = ht(
895
+ S(
896
896
  i,
897
- _(v, h),
898
- E(([I, { offsetTree: f }, b]) => {
899
- const k = -I;
900
- return ie(k, f, b);
897
+ N(v, I),
898
+ E(([f, { offsetTree: d }, y]) => {
899
+ const B = -f;
900
+ return ie(B, d, y);
901
901
  })
902
902
  )
903
903
  );
904
904
  return O(
905
- x(
905
+ S(
906
906
  i,
907
- _(v, h),
908
- E(([I, f, b]) => {
909
- if (f.groupIndices.length > 0) {
910
- if (j(f.sizeTree))
911
- return f;
912
- let F = Kt();
913
- const L = st(m);
914
- let V = 0, D = 0, J = 0;
915
- for (; V < -I; ) {
916
- J = L[D];
917
- const B = L[D + 1] - J - 1;
918
- D++, V += B + 1;
907
+ N(v, I),
908
+ E(([f, d, y]) => {
909
+ if (d.groupIndices.length > 0) {
910
+ if (j(d.sizeTree))
911
+ return d;
912
+ let k = jt();
913
+ const L = ot(g);
914
+ let z = 0, _ = 0, J = 0;
915
+ for (; z < -f; ) {
916
+ J = L[_];
917
+ const F = L[_ + 1] - J - 1;
918
+ _++, z += F + 1;
919
919
  }
920
- if (F = Gt(f.sizeTree).reduce((B, { k: Y, v: it }) => pt(B, Math.max(0, Y + I), it), F), V !== -I) {
921
- const B = re(f.sizeTree, J);
922
- F = pt(F, 0, B);
923
- const Y = Ct(f.sizeTree, -I + 1)[1];
924
- F = pt(F, 1, Y);
920
+ if (k = Gt(d.sizeTree).reduce((F, { k: q, v: it }) => pt(F, Math.max(0, q + f), it), k), z !== -f) {
921
+ const F = re(d.sizeTree, J);
922
+ k = pt(k, 0, F);
923
+ const q = wt(d.sizeTree, -f + 1)[1];
924
+ k = pt(k, 1, q);
925
925
  }
926
926
  return {
927
- ...f,
928
- sizeTree: F,
929
- ...Pe(f.offsetTree, 0, F, b)
927
+ ...d,
928
+ sizeTree: k,
929
+ ...Ae(d.offsetTree, 0, k, y)
930
930
  };
931
931
  } else {
932
- const F = Gt(f.sizeTree).reduce((L, { k: V, v: D }) => pt(L, Math.max(0, V + I), D), Kt());
932
+ const k = Gt(d.sizeTree).reduce((L, { k: z, v: _ }) => pt(L, Math.max(0, z + f), _), jt());
933
933
  return {
934
- ...f,
935
- sizeTree: F,
936
- ...Pe(f.offsetTree, 0, F, b)
934
+ ...d,
935
+ sizeTree: k,
936
+ ...Ae(d.offsetTree, 0, k, y)
937
937
  };
938
938
  }
939
939
  })
@@ -942,29 +942,29 @@ const Oo = {
942
942
  ), {
943
943
  beforeUnshiftWith: T,
944
944
  // input
945
- data: g,
946
- defaultItemSize: p,
945
+ data: h,
946
+ defaultItemSize: m,
947
947
  firstItemIndex: l,
948
948
  fixedItemSize: a,
949
- gap: h,
949
+ gap: I,
950
950
  groupIndices: c,
951
- itemSize: S,
951
+ itemSize: x,
952
952
  listRefresh: u,
953
953
  shiftWith: i,
954
- shiftWithOffset: R,
954
+ shiftWithOffset: b,
955
955
  sizeRanges: n,
956
956
  // output
957
957
  sizes: v,
958
958
  statefulTotalCount: r,
959
959
  totalCount: o,
960
- trackItemSizes: d,
960
+ trackItemSizes: p,
961
961
  unshiftWith: s
962
962
  };
963
963
  },
964
- X(Vt, Ne),
964
+ X(Vt, De),
965
965
  { singleton: true }
966
966
  );
967
- function Lo(t) {
967
+ function Vo(t) {
968
968
  return t.reduce(
969
969
  (e, n) => (e.groupIndices.push(e.totalCount), e.totalCount += n + 1, e),
970
970
  {
@@ -975,25 +975,25 @@ function Lo(t) {
975
975
  }
976
976
  const Nn = U(
977
977
  ([{ groupIndices: t, sizes: e, totalCount: n }, { headerHeight: o, scrollTop: r }]) => {
978
- const s = $(), i = $(), l = ht(x(s, E(Lo)));
978
+ const s = $(), i = $(), l = ht(S(s, E(Vo)));
979
979
  return O(
980
- x(
980
+ S(
981
981
  l,
982
982
  E((c) => c.totalCount)
983
983
  ),
984
984
  n
985
985
  ), O(
986
- x(
986
+ S(
987
987
  l,
988
988
  E((c) => c.groupIndices)
989
989
  ),
990
990
  t
991
991
  ), O(
992
- x(
992
+ S(
993
993
  rt(r, e, o),
994
- P(([c, a]) => Re(a)),
995
- E(([c, a, p]) => Ct(a.groupOffsetTree, Math.max(c - p, 0), "v")[0]),
996
- Z(),
994
+ A(([c, a]) => Re(a)),
995
+ E(([c, a, m]) => wt(a.groupOffsetTree, Math.max(c - m, 0), "v")[0]),
996
+ Y(),
997
997
  E((c) => [c])
998
998
  ),
999
999
  i
@@ -1002,23 +1002,23 @@ const Nn = U(
1002
1002
  X(Et, at)
1003
1003
  ), Pt = U(
1004
1004
  ([{ log: t }]) => {
1005
- const e = C(false), n = ht(
1006
- x(
1005
+ const e = w(false), n = ht(
1006
+ S(
1007
1007
  e,
1008
- P((o) => o),
1009
- Z()
1008
+ A((o) => o),
1009
+ Y()
1010
1010
  )
1011
1011
  );
1012
1012
  return K(e, (o) => {
1013
- o && st(t)("props updated", {}, mt.DEBUG);
1013
+ o && ot(t)("props updated", {}, mt.DEBUG);
1014
1014
  }), { didMount: n, propsReady: e };
1015
1015
  },
1016
1016
  X(Vt),
1017
1017
  { singleton: true }
1018
- ), zo = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1018
+ ), Po = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
1019
1019
  function Dn(t) {
1020
1020
  const e = typeof t == "number" ? { index: t } : t;
1021
- return e.align || (e.align = "start"), (!e.behavior || !zo) && (e.behavior = "auto"), e.offset || (e.offset = 0), e;
1021
+ return e.align || (e.align = "start"), (!e.behavior || !Po) && (e.behavior = "auto"), e.offset || (e.offset = 0), e;
1022
1022
  }
1023
1023
  const ce = U(
1024
1024
  ([
@@ -1030,60 +1030,60 @@ const ce = U(
1030
1030
  headerHeight: l,
1031
1031
  scrollingInProgress: c,
1032
1032
  scrollTo: a,
1033
- smoothScrollTargetReached: p,
1034
- viewportHeight: S
1033
+ smoothScrollTargetReached: m,
1034
+ viewportHeight: x
1035
1035
  },
1036
- { log: g }
1036
+ { log: h }
1037
1037
  ]) => {
1038
- const h = $(), w = $(), v = C(0);
1039
- let m = null, d = null, u = null;
1038
+ const I = $(), C = $(), v = w(0);
1039
+ let g = null, p = null, u = null;
1040
1040
  function T() {
1041
- m && (m(), m = null), u && (u(), u = null), d && (clearTimeout(d), d = null), G(c, false);
1041
+ g && (g(), g = null), u && (u(), u = null), p && (clearTimeout(p), p = null), G(c, false);
1042
1042
  }
1043
1043
  return O(
1044
- x(
1045
- h,
1046
- _(n, S, o, v, l, i, g),
1047
- _(t, s, r),
1044
+ S(
1045
+ I,
1046
+ N(n, x, o, v, l, i, h),
1047
+ N(t, s, r),
1048
1048
  E(
1049
1049
  ([
1050
- [R, I, f, b, k, F, L, V],
1051
- D,
1050
+ [b, f, d, y, B, k, L, z],
1051
+ _,
1052
1052
  J,
1053
1053
  nt
1054
1054
  ]) => {
1055
- const B = Dn(R), { align: Y, behavior: it, offset: dt } = B, St = b - 1, ft = _n(B, I, St);
1056
- let ut = ie(ft, I.offsetTree, D) + F;
1057
- Y === "end" ? (ut += J + Ct(I.sizeTree, ft)[1] - f + nt, ft === St && (ut += L)) : Y === "center" ? ut += (J + Ct(I.sizeTree, ft)[1] - f + nt) / 2 : ut -= k, dt && (ut += dt);
1055
+ const F = Dn(b), { align: q, behavior: it, offset: dt } = F, St = y - 1, ft = _n(F, f, St);
1056
+ let ut = ie(ft, f.offsetTree, _) + k;
1057
+ q === "end" ? (ut += J + wt(f.sizeTree, ft)[1] - d + nt, ft === St && (ut += L)) : q === "center" ? ut += (J + wt(f.sizeTree, ft)[1] - d + nt) / 2 : ut -= B, dt && (ut += dt);
1058
1058
  const At = (xt) => {
1059
- T(), xt ? (V("retrying to scroll to", { location: R }, mt.DEBUG), G(h, R)) : (G(w, true), V("list did not change, scroll successful", {}, mt.DEBUG));
1059
+ T(), xt ? (z("retrying to scroll to", { location: b }, mt.DEBUG), G(I, b)) : (G(C, true), z("list did not change, scroll successful", {}, mt.DEBUG));
1060
1060
  };
1061
1061
  if (T(), it === "smooth") {
1062
1062
  let xt = false;
1063
1063
  u = K(e, (Xt) => {
1064
1064
  xt = xt || Xt;
1065
- }), m = bt(p, () => {
1065
+ }), g = Tt(m, () => {
1066
1066
  At(xt);
1067
1067
  });
1068
1068
  } else
1069
- m = bt(x(e, Vo(150)), At);
1070
- return d = setTimeout(() => {
1069
+ g = Tt(S(e, Ao(150)), At);
1070
+ return p = setTimeout(() => {
1071
1071
  T();
1072
- }, 1200), G(c, true), V("scrolling from index to", { behavior: it, index: ft, top: ut }, mt.DEBUG), { behavior: it, top: ut };
1072
+ }, 1200), G(c, true), z("scrolling from index to", { behavior: it, index: ft, top: ut }, mt.DEBUG), { behavior: it, top: ut };
1073
1073
  }
1074
1074
  )
1075
1075
  ),
1076
1076
  a
1077
1077
  ), {
1078
- scrollTargetReached: w,
1079
- scrollToIndex: h,
1078
+ scrollTargetReached: C,
1079
+ scrollToIndex: I,
1080
1080
  topListHeight: v
1081
1081
  };
1082
1082
  },
1083
1083
  X(Et, at, Vt),
1084
1084
  { singleton: true }
1085
1085
  );
1086
- function Vo(t) {
1086
+ function Ao(t) {
1087
1087
  return (e) => {
1088
1088
  const n = setTimeout(() => {
1089
1089
  e(false);
@@ -1093,48 +1093,48 @@ function Vo(t) {
1093
1093
  };
1094
1094
  };
1095
1095
  }
1096
- function $e(t, e) {
1096
+ function Ue(t, e) {
1097
1097
  t == 0 ? e() : requestAnimationFrame(() => {
1098
- $e(t - 1, e);
1098
+ Ue(t - 1, e);
1099
1099
  });
1100
1100
  }
1101
- function Ue(t, e) {
1101
+ function Ke(t, e) {
1102
1102
  const n = e - 1;
1103
1103
  return typeof t == "number" ? t : t.index === "LAST" ? n : t.index;
1104
1104
  }
1105
1105
  const ue = U(
1106
1106
  ([{ defaultItemSize: t, listRefresh: e, sizes: n }, { scrollTop: o }, { scrollTargetReached: r, scrollToIndex: s }, { didMount: i }]) => {
1107
- const l = C(true), c = C(0), a = C(true);
1107
+ const l = w(true), c = w(0), a = w(true);
1108
1108
  return O(
1109
- x(
1109
+ S(
1110
1110
  i,
1111
- _(c),
1112
- P(([p, S]) => !!S),
1113
- yt(false)
1111
+ N(c),
1112
+ A(([m, x]) => !!x),
1113
+ Rt(false)
1114
1114
  ),
1115
1115
  l
1116
1116
  ), O(
1117
- x(
1117
+ S(
1118
1118
  i,
1119
- _(c),
1120
- P(([p, S]) => !!S),
1121
- yt(false)
1119
+ N(c),
1120
+ A(([m, x]) => !!x),
1121
+ Rt(false)
1122
1122
  ),
1123
1123
  a
1124
1124
  ), K(
1125
- x(
1125
+ S(
1126
1126
  rt(e, i),
1127
- _(l, n, t, a),
1128
- P(([[, p], S, { sizeTree: g }, h, w]) => p && (!j(g) || Me(h)) && !S && !w),
1129
- _(c)
1127
+ N(l, n, t, a),
1128
+ A(([[, m], x, { sizeTree: h }, I, C]) => m && (!j(h) || We(I)) && !x && !C),
1129
+ N(c)
1130
1130
  ),
1131
- ([, p]) => {
1132
- bt(r, () => {
1131
+ ([, m]) => {
1132
+ Tt(r, () => {
1133
1133
  G(a, true);
1134
- }), $e(4, () => {
1135
- bt(o, () => {
1134
+ }), Ue(4, () => {
1135
+ Tt(o, () => {
1136
1136
  G(l, true);
1137
- }), G(s, p);
1137
+ }), G(s, m);
1138
1138
  });
1139
1139
  }
1140
1140
  ), {
@@ -1149,7 +1149,7 @@ const ue = U(
1149
1149
  function $n(t, e) {
1150
1150
  return Math.abs(t - e) < 1.01;
1151
1151
  }
1152
- const le = "up", te = "down", Po = "none", Ao = {
1152
+ const le = "up", te = "down", Mo = "none", Wo = {
1153
1153
  atBottom: false,
1154
1154
  notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
1155
1155
  state: {
@@ -1158,137 +1158,137 @@ const le = "up", te = "down", Po = "none", Ao = {
1158
1158
  scrollTop: 0,
1159
1159
  viewportHeight: 0
1160
1160
  }
1161
- }, Mo = 0, ae = U(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1162
- const i = C(false), l = C(true), c = $(), a = $(), p = C(4), S = C(Mo), g = ct(
1163
- x(
1164
- dn(x(A(r), jt(1), yt(true)), x(A(r), jt(1), yt(false), an(100))),
1165
- Z()
1161
+ }, Go = 0, ae = U(([{ footerHeight: t, headerHeight: e, scrollBy: n, scrollContainerState: o, scrollTop: r, viewportHeight: s }]) => {
1162
+ const i = w(false), l = w(true), c = $(), a = $(), m = w(4), x = w(Go), h = ct(
1163
+ S(
1164
+ Le(S(V(r), Dt(1), Rt(true)), S(V(r), Dt(1), Rt(false), dn(100))),
1165
+ Y()
1166
1166
  ),
1167
1167
  false
1168
- ), h = ct(
1169
- x(dn(x(n, yt(true)), x(n, yt(false), an(200))), Z()),
1168
+ ), I = ct(
1169
+ S(Le(S(n, Rt(true)), S(n, Rt(false), dn(200))), Y()),
1170
1170
  false
1171
1171
  );
1172
1172
  O(
1173
- x(
1174
- rt(A(r), A(S)),
1173
+ S(
1174
+ rt(V(r), V(x)),
1175
1175
  E(([u, T]) => u <= T),
1176
- Z()
1176
+ Y()
1177
1177
  ),
1178
1178
  l
1179
- ), O(x(l, Lt(50)), a);
1180
- const w = ht(
1181
- x(
1182
- rt(o, A(s), A(e), A(t), A(p)),
1183
- Rt((u, [{ scrollHeight: T, scrollTop: R }, I, f, b, k]) => {
1184
- const F = R + I - T > -k, L = {
1179
+ ), O(S(l, kt(50)), a);
1180
+ const C = ht(
1181
+ S(
1182
+ rt(o, V(s), V(e), V(t), V(m)),
1183
+ bt((u, [{ scrollHeight: T, scrollTop: b }, f, d, y, B]) => {
1184
+ const k = b + f - T > -B, L = {
1185
1185
  scrollHeight: T,
1186
- scrollTop: R,
1187
- viewportHeight: I
1186
+ scrollTop: b,
1187
+ viewportHeight: f
1188
1188
  };
1189
- if (F) {
1190
- let D, J;
1191
- return R > u.state.scrollTop ? (D = "SCROLLED_DOWN", J = u.state.scrollTop - R) : (D = "SIZE_DECREASED", J = u.state.scrollTop - R || u.scrollTopDelta), {
1189
+ if (k) {
1190
+ let _, J;
1191
+ return b > u.state.scrollTop ? (_ = "SCROLLED_DOWN", J = u.state.scrollTop - b) : (_ = "SIZE_DECREASED", J = u.state.scrollTop - b || u.scrollTopDelta), {
1192
1192
  atBottom: true,
1193
- atBottomBecause: D,
1193
+ atBottomBecause: _,
1194
1194
  scrollTopDelta: J,
1195
1195
  state: L
1196
1196
  };
1197
1197
  }
1198
- let V;
1199
- return L.scrollHeight > u.state.scrollHeight ? V = "SIZE_INCREASED" : I < u.state.viewportHeight ? V = "VIEWPORT_HEIGHT_DECREASING" : R < u.state.scrollTop ? V = "SCROLLING_UPWARDS" : V = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1198
+ let z;
1199
+ return L.scrollHeight > u.state.scrollHeight ? z = "SIZE_INCREASED" : f < u.state.viewportHeight ? z = "VIEWPORT_HEIGHT_DECREASING" : b < u.state.scrollTop ? z = "SCROLLING_UPWARDS" : z = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1200
1200
  atBottom: false,
1201
- notAtBottomBecause: V,
1201
+ notAtBottomBecause: z,
1202
1202
  state: L
1203
1203
  };
1204
- }, Ao),
1205
- Z((u, T) => u && u.atBottom === T.atBottom)
1204
+ }, Wo),
1205
+ Y((u, T) => u && u.atBottom === T.atBottom)
1206
1206
  )
1207
1207
  ), v = ct(
1208
- x(
1208
+ S(
1209
1209
  o,
1210
- Rt(
1211
- (u, { scrollHeight: T, scrollTop: R, viewportHeight: I }) => {
1210
+ bt(
1211
+ (u, { scrollHeight: T, scrollTop: b, viewportHeight: f }) => {
1212
1212
  if ($n(u.scrollHeight, T))
1213
1213
  return {
1214
1214
  changed: false,
1215
1215
  jump: 0,
1216
1216
  scrollHeight: T,
1217
- scrollTop: R
1217
+ scrollTop: b
1218
1218
  };
1219
1219
  {
1220
- const f = T - (R + I) < 1;
1221
- return u.scrollTop !== R && f ? {
1220
+ const d = T - (b + f) < 1;
1221
+ return u.scrollTop !== b && d ? {
1222
1222
  changed: true,
1223
- jump: u.scrollTop - R,
1223
+ jump: u.scrollTop - b,
1224
1224
  scrollHeight: T,
1225
- scrollTop: R
1225
+ scrollTop: b
1226
1226
  } : {
1227
1227
  changed: true,
1228
1228
  jump: 0,
1229
1229
  scrollHeight: T,
1230
- scrollTop: R
1230
+ scrollTop: b
1231
1231
  };
1232
1232
  }
1233
1233
  },
1234
1234
  { changed: false, jump: 0, scrollHeight: 0, scrollTop: 0 }
1235
1235
  ),
1236
- P((u) => u.changed),
1236
+ A((u) => u.changed),
1237
1237
  E((u) => u.jump)
1238
1238
  ),
1239
1239
  0
1240
1240
  );
1241
1241
  O(
1242
- x(
1243
- w,
1242
+ S(
1243
+ C,
1244
1244
  E((u) => u.atBottom)
1245
1245
  ),
1246
1246
  i
1247
- ), O(x(i, Lt(50)), c);
1248
- const m = C(te);
1247
+ ), O(S(i, kt(50)), c);
1248
+ const g = w(te);
1249
1249
  O(
1250
- x(
1250
+ S(
1251
1251
  o,
1252
1252
  E(({ scrollTop: u }) => u),
1253
- Z(),
1254
- Rt(
1255
- (u, T) => st(h) ? { direction: u.direction, prevScrollTop: T } : { direction: T < u.prevScrollTop ? le : te, prevScrollTop: T },
1253
+ Y(),
1254
+ bt(
1255
+ (u, T) => ot(I) ? { direction: u.direction, prevScrollTop: T } : { direction: T < u.prevScrollTop ? le : te, prevScrollTop: T },
1256
1256
  { direction: te, prevScrollTop: 0 }
1257
1257
  ),
1258
1258
  E((u) => u.direction)
1259
1259
  ),
1260
- m
1261
- ), O(x(o, Lt(50), yt(Po)), m);
1262
- const d = C(0);
1260
+ g
1261
+ ), O(S(o, kt(50), Rt(Mo)), g);
1262
+ const p = w(0);
1263
1263
  return O(
1264
- x(
1265
- g,
1266
- P((u) => !u),
1267
- yt(0)
1264
+ S(
1265
+ h,
1266
+ A((u) => !u),
1267
+ Rt(0)
1268
1268
  ),
1269
- d
1269
+ p
1270
1270
  ), O(
1271
- x(
1271
+ S(
1272
1272
  r,
1273
- Lt(100),
1274
- _(g),
1275
- P(([u, T]) => !!T),
1276
- Rt(([u, T], [R]) => [T, R], [0, 0]),
1273
+ kt(100),
1274
+ N(h),
1275
+ A(([u, T]) => !!T),
1276
+ bt(([u, T], [b]) => [T, b], [0, 0]),
1277
1277
  E(([u, T]) => T - u)
1278
1278
  ),
1279
- d
1279
+ p
1280
1280
  ), {
1281
- atBottomState: w,
1281
+ atBottomState: C,
1282
1282
  atBottomStateChange: c,
1283
- atBottomThreshold: p,
1283
+ atBottomThreshold: m,
1284
1284
  atTopStateChange: a,
1285
- atTopThreshold: S,
1285
+ atTopThreshold: x,
1286
1286
  isAtBottom: i,
1287
1287
  isAtTop: l,
1288
- isScrolling: g,
1288
+ isScrolling: h,
1289
1289
  lastJumpDueToItemResize: v,
1290
- scrollDirection: m,
1291
- scrollVelocity: d
1290
+ scrollDirection: g,
1291
+ scrollVelocity: p
1292
1292
  };
1293
1293
  }, X(at)), xe = "top", Te = "bottom", hn = "none";
1294
1294
  function gn(t, e, n) {
@@ -1298,44 +1298,44 @@ function In(t, e) {
1298
1298
  var n;
1299
1299
  return typeof t == "number" ? t : (n = t[e]) != null ? n : 0;
1300
1300
  }
1301
- const Ke = U(
1301
+ const je = U(
1302
1302
  ([{ deviation: t, fixedHeaderHeight: e, headerHeight: n, scrollTop: o, viewportHeight: r }]) => {
1303
- const s = $(), i = C(0), l = C(0), c = C(0), a = ct(
1304
- x(
1303
+ const s = $(), i = w(0), l = w(0), c = w(0), a = ct(
1304
+ S(
1305
1305
  rt(
1306
- A(o),
1307
- A(r),
1308
- A(n),
1309
- A(s, se),
1310
- A(c),
1311
- A(i),
1312
- A(e),
1313
- A(t),
1314
- A(l)
1306
+ V(o),
1307
+ V(r),
1308
+ V(n),
1309
+ V(s, se),
1310
+ V(c),
1311
+ V(i),
1312
+ V(e),
1313
+ V(t),
1314
+ V(l)
1315
1315
  ),
1316
1316
  E(
1317
1317
  ([
1318
- p,
1319
- S,
1320
- g,
1321
- [h, w],
1322
- v,
1323
1318
  m,
1324
- d,
1319
+ x,
1320
+ h,
1321
+ [I, C],
1322
+ v,
1323
+ g,
1324
+ p,
1325
1325
  u,
1326
1326
  T
1327
1327
  ]) => {
1328
- const R = p - u, I = m + d, f = Math.max(g - R, 0);
1329
- let b = hn;
1330
- const k = In(T, xe), F = In(T, Te);
1331
- return h -= u, h += g + d, w += g + d, w -= u, h > p + I - k && (b = le), w < p - f + S + F && (b = te), b !== hn ? [
1332
- Math.max(R - g - gn(v, xe, b) - k, 0),
1333
- R - f - d + S + gn(v, Te, b) + F
1328
+ const b = m - u, f = g + p, d = Math.max(h - b, 0);
1329
+ let y = hn;
1330
+ const B = In(T, xe), k = In(T, Te);
1331
+ return I -= u, I += h + p, C += h + p, C -= u, I > m + f - B && (y = le), C < m - d + x + k && (y = te), y !== hn ? [
1332
+ Math.max(b - h - gn(v, xe, y) - B, 0),
1333
+ b - d - p + x + gn(v, Te, y) + k
1334
1334
  ] : null;
1335
1335
  }
1336
1336
  ),
1337
- P((p) => p != null),
1338
- Z(se)
1337
+ A((m) => m != null),
1338
+ Y(se)
1339
1339
  ),
1340
1340
  [0, 0]
1341
1341
  );
@@ -1352,11 +1352,11 @@ const Ke = U(
1352
1352
  X(at),
1353
1353
  { singleton: true }
1354
1354
  );
1355
- function Wo(t, e, n) {
1355
+ function _o(t, e, n) {
1356
1356
  if (Re(e)) {
1357
1357
  const o = Gn(t, e);
1358
1358
  return [
1359
- { index: Ct(e.groupOffsetTree, o)[0], offset: 0, size: 0 },
1359
+ { index: wt(e.groupOffsetTree, o)[0], offset: 0, size: 0 },
1360
1360
  { data: n == null ? void 0 : n[0], index: o, offset: 0, size: 0 }
1361
1361
  ];
1362
1362
  }
@@ -1375,36 +1375,36 @@ const Be = {
1375
1375
  };
1376
1376
  function Ie(t, e, n, o, r, s) {
1377
1377
  const { lastIndex: i, lastOffset: l, lastSize: c } = r;
1378
- let a = 0, p = 0;
1378
+ let a = 0, m = 0;
1379
1379
  if (t.length > 0) {
1380
1380
  a = t[0].offset;
1381
1381
  const v = t[t.length - 1];
1382
- p = v.offset + v.size;
1382
+ m = v.offset + v.size;
1383
1383
  }
1384
- const S = n - i, g = l + S * c + (S - 1) * o, h = a, w = g - p;
1384
+ const x = n - i, h = l + x * c + (x - 1) * o, I = a, C = h - m;
1385
1385
  return {
1386
- bottom: p,
1386
+ bottom: m,
1387
1387
  firstItemIndex: s,
1388
1388
  items: Sn(t, r, s),
1389
- offsetBottom: w,
1389
+ offsetBottom: C,
1390
1390
  offsetTop: a,
1391
- top: h,
1391
+ top: I,
1392
1392
  topItems: Sn(e, r, s),
1393
- topListHeight: e.reduce((v, m) => m.size + v, 0),
1393
+ topListHeight: e.reduce((v, g) => g.size + v, 0),
1394
1394
  totalCount: n
1395
1395
  };
1396
1396
  }
1397
1397
  function Un(t, e, n, o, r, s) {
1398
1398
  let i = 0;
1399
1399
  if (n.groupIndices.length > 0)
1400
- for (const p of n.groupIndices) {
1401
- if (p - i >= t)
1400
+ for (const m of n.groupIndices) {
1401
+ if (m - i >= t)
1402
1402
  break;
1403
1403
  i++;
1404
1404
  }
1405
- const l = t + i, c = Ue(e, l), a = Array.from({ length: l }).map((p, S) => ({
1406
- data: s[S + c],
1407
- index: S + c,
1405
+ const l = t + i, c = Ke(e, l), a = Array.from({ length: l }).map((m, x) => ({
1406
+ data: s[x + c],
1407
+ index: x + c,
1408
1408
  offset: 0,
1409
1409
  size: 0
1410
1410
  }));
@@ -1419,15 +1419,15 @@ function Sn(t, e, n) {
1419
1419
  let l, c = 0;
1420
1420
  for (const a of t) {
1421
1421
  (!l || l.end < a.index) && (l = i.shift(), c = e.groupIndices.indexOf(l.start));
1422
- let p;
1423
- a.index === l.start ? p = {
1422
+ let m;
1423
+ a.index === l.start ? m = {
1424
1424
  index: c,
1425
1425
  type: "group"
1426
- } : p = {
1426
+ } : m = {
1427
1427
  groupIndex: c,
1428
1428
  index: a.index - (c + 1) + n
1429
1429
  }, s.push({
1430
- ...p,
1430
+ ...m,
1431
1431
  data: a.data,
1432
1432
  offset: a.offset,
1433
1433
  originalIndex: a.index,
@@ -1436,203 +1436,203 @@ function Sn(t, e, n) {
1436
1436
  }
1437
1437
  return s;
1438
1438
  }
1439
- const Dt = U(
1439
+ const $t = U(
1440
1440
  ([
1441
1441
  { data: t, firstItemIndex: e, gap: n, sizes: o, totalCount: r },
1442
1442
  s,
1443
1443
  { listBoundary: i, topListHeight: l, visibleRange: c },
1444
- { initialTopMostItemIndex: a, scrolledToInitialItem: p },
1445
- { topListHeight: S },
1446
- g,
1447
- { didMount: h },
1448
- { recalcInProgress: w }
1444
+ { initialTopMostItemIndex: a, scrolledToInitialItem: m },
1445
+ { topListHeight: x },
1446
+ h,
1447
+ { didMount: I },
1448
+ { recalcInProgress: C }
1449
1449
  ]) => {
1450
- const v = C([]), m = C(0), d = $();
1450
+ const v = w([]), g = w(0), p = $();
1451
1451
  O(s.topItemsIndexes, v);
1452
1452
  const u = ct(
1453
- x(
1453
+ S(
1454
1454
  rt(
1455
- h,
1456
- w,
1457
- A(c, se),
1458
- A(r),
1459
- A(o),
1460
- A(a),
1461
- p,
1462
- A(v),
1463
- A(e),
1464
- A(n),
1455
+ I,
1456
+ C,
1457
+ V(c, se),
1458
+ V(r),
1459
+ V(o),
1460
+ V(a),
1461
+ m,
1462
+ V(v),
1463
+ V(e),
1464
+ V(n),
1465
1465
  t
1466
1466
  ),
1467
- P(([f, b, , k, , , , , , , F]) => {
1468
- const L = F && F.length !== k;
1469
- return f && !b && !L;
1467
+ A(([d, y, , B, , , , , , , k]) => {
1468
+ const L = k && k.length !== B;
1469
+ return d && !y && !L;
1470
1470
  }),
1471
1471
  E(
1472
1472
  ([
1473
1473
  ,
1474
1474
  ,
1475
- [f, b],
1475
+ [d, y],
1476
+ B,
1476
1477
  k,
1477
- F,
1478
1478
  L,
1479
- V,
1480
- D,
1479
+ z,
1480
+ _,
1481
1481
  J,
1482
1482
  nt,
1483
- B
1483
+ F
1484
1484
  ]) => {
1485
- const Y = F, { offsetTree: it, sizeTree: dt } = Y, St = st(m);
1486
- if (k === 0)
1487
- return { ...Be, totalCount: k };
1488
- if (f === 0 && b === 0)
1489
- return St === 0 ? { ...Be, totalCount: k } : Un(St, L, F, J, nt, B || []);
1485
+ const q = k, { offsetTree: it, sizeTree: dt } = q, St = ot(g);
1486
+ if (B === 0)
1487
+ return { ...Be, totalCount: B };
1488
+ if (d === 0 && y === 0)
1489
+ return St === 0 ? { ...Be, totalCount: B } : Un(St, L, k, J, nt, F || []);
1490
1490
  if (j(dt))
1491
1491
  return St > 0 ? null : Ie(
1492
- Wo(Ue(L, k), Y, B),
1492
+ _o(Ke(L, B), q, F),
1493
1493
  [],
1494
- k,
1494
+ B,
1495
1495
  nt,
1496
- Y,
1496
+ q,
1497
1497
  J
1498
1498
  );
1499
1499
  const ft = [];
1500
- if (D.length > 0) {
1501
- const Mt = D[0], vt = D[D.length - 1];
1500
+ if (_.length > 0) {
1501
+ const Mt = _[0], yt = _[_.length - 1];
1502
1502
  let Bt = 0;
1503
- for (const y of ye(dt, Mt, vt)) {
1504
- const N = y.value, Q = Math.max(y.start, Mt), lt = Math.min(y.end, vt);
1503
+ for (const R of ye(dt, Mt, yt)) {
1504
+ const D = R.value, Q = Math.max(R.start, Mt), lt = Math.min(R.end, yt);
1505
1505
  for (let tt = Q; tt <= lt; tt++)
1506
- ft.push({ data: B == null ? void 0 : B[tt], index: tt, offset: Bt, size: N }), Bt += N;
1506
+ ft.push({ data: F == null ? void 0 : F[tt], index: tt, offset: Bt, size: D }), Bt += D;
1507
1507
  }
1508
1508
  }
1509
- if (!V)
1510
- return Ie([], ft, k, nt, Y, J);
1511
- const ut = D.length > 0 ? D[D.length - 1] + 1 : 0, At = Ho(it, f, b, ut);
1509
+ if (!z)
1510
+ return Ie([], ft, B, nt, q, J);
1511
+ const ut = _.length > 0 ? _[_.length - 1] + 1 : 0, At = Bo(it, d, y, ut);
1512
1512
  if (At.length === 0)
1513
1513
  return null;
1514
- const xt = k - 1, Xt = ve([], (Mt) => {
1515
- for (const vt of At) {
1516
- const Bt = vt.value;
1517
- let y = Bt.offset, N = vt.start;
1514
+ const xt = B - 1, Xt = ve([], (Mt) => {
1515
+ for (const yt of At) {
1516
+ const Bt = yt.value;
1517
+ let R = Bt.offset, D = yt.start;
1518
1518
  const Q = Bt.size;
1519
- if (Bt.offset < f) {
1520
- N += Math.floor((f - Bt.offset + nt) / (Q + nt));
1521
- const tt = N - vt.start;
1522
- y += tt * Q + tt * nt;
1519
+ if (Bt.offset < d) {
1520
+ D += Math.floor((d - Bt.offset + nt) / (Q + nt));
1521
+ const tt = D - yt.start;
1522
+ R += tt * Q + tt * nt;
1523
1523
  }
1524
- N < ut && (y += (ut - N) * Q, N = ut);
1525
- const lt = Math.min(vt.end, xt);
1526
- for (let tt = N; tt <= lt && !(y >= b); tt++)
1527
- Mt.push({ data: B == null ? void 0 : B[tt], index: tt, offset: y, size: Q }), y += Q + nt;
1524
+ D < ut && (R += (ut - D) * Q, D = ut);
1525
+ const lt = Math.min(yt.end, xt);
1526
+ for (let tt = D; tt <= lt && !(R >= y); tt++)
1527
+ Mt.push({ data: F == null ? void 0 : F[tt], index: tt, offset: R, size: Q }), R += Q + nt;
1528
1528
  }
1529
1529
  });
1530
- return Ie(Xt, ft, k, nt, Y, J);
1530
+ return Ie(Xt, ft, B, nt, q, J);
1531
1531
  }
1532
1532
  ),
1533
1533
  //@ts-expect-error filter needs to be fixed
1534
- P((f) => f !== null),
1535
- Z()
1534
+ A((d) => d !== null),
1535
+ Y()
1536
1536
  ),
1537
1537
  Be
1538
1538
  );
1539
1539
  O(
1540
- x(
1540
+ S(
1541
1541
  t,
1542
- P(Me),
1543
- E((f) => f == null ? void 0 : f.length)
1542
+ A(We),
1543
+ E((d) => d == null ? void 0 : d.length)
1544
1544
  ),
1545
1545
  r
1546
1546
  ), O(
1547
- x(
1547
+ S(
1548
1548
  u,
1549
- E((f) => f.topListHeight)
1549
+ E((d) => d.topListHeight)
1550
1550
  ),
1551
- S
1552
- ), O(S, l), O(
1553
- x(
1551
+ x
1552
+ ), O(x, l), O(
1553
+ S(
1554
1554
  u,
1555
- E((f) => [f.top, f.bottom])
1555
+ E((d) => [d.top, d.bottom])
1556
1556
  ),
1557
1557
  i
1558
1558
  ), O(
1559
- x(
1559
+ S(
1560
1560
  u,
1561
- E((f) => f.items)
1561
+ E((d) => d.items)
1562
1562
  ),
1563
- d
1563
+ p
1564
1564
  );
1565
1565
  const T = ht(
1566
- x(
1566
+ S(
1567
1567
  u,
1568
- P(({ items: f }) => f.length > 0),
1569
- _(r, t),
1570
- P(([{ items: f }, b]) => f[f.length - 1].originalIndex === b - 1),
1571
- E(([, f, b]) => [f - 1, b]),
1572
- Z(se),
1573
- E(([f]) => f)
1568
+ A(({ items: d }) => d.length > 0),
1569
+ N(r, t),
1570
+ A(([{ items: d }, y]) => d[d.length - 1].originalIndex === y - 1),
1571
+ E(([, d, y]) => [d - 1, y]),
1572
+ Y(se),
1573
+ E(([d]) => d)
1574
1574
  )
1575
- ), R = ht(
1576
- x(
1575
+ ), b = ht(
1576
+ S(
1577
1577
  u,
1578
- Lt(200),
1579
- P(({ items: f, topItems: b }) => f.length > 0 && f[0].originalIndex === b.length),
1580
- E(({ items: f }) => f[0].index),
1581
- Z()
1578
+ kt(200),
1579
+ A(({ items: d, topItems: y }) => d.length > 0 && d[0].originalIndex === y.length),
1580
+ E(({ items: d }) => d[0].index),
1581
+ Y()
1582
1582
  )
1583
- ), I = ht(
1584
- x(
1583
+ ), f = ht(
1584
+ S(
1585
1585
  u,
1586
- P(({ items: f }) => f.length > 0),
1587
- E(({ items: f }) => {
1588
- let b = 0, k = f.length - 1;
1589
- for (; f[b].type === "group" && b < k; )
1590
- b++;
1591
- for (; f[k].type === "group" && k > b; )
1592
- k--;
1586
+ A(({ items: d }) => d.length > 0),
1587
+ E(({ items: d }) => {
1588
+ let y = 0, B = d.length - 1;
1589
+ for (; d[y].type === "group" && y < B; )
1590
+ y++;
1591
+ for (; d[B].type === "group" && B > y; )
1592
+ B--;
1593
1593
  return {
1594
- endIndex: f[k].index,
1595
- startIndex: f[b].index
1594
+ endIndex: d[B].index,
1595
+ startIndex: d[y].index
1596
1596
  };
1597
1597
  }),
1598
- Z(Mn)
1598
+ Y(Mn)
1599
1599
  )
1600
1600
  );
1601
- return { endReached: T, initialItemCount: m, itemsRendered: d, listState: u, rangeChanged: I, startReached: R, topItemsIndexes: v, ...g };
1601
+ return { endReached: T, initialItemCount: g, itemsRendered: p, listState: u, rangeChanged: f, startReached: b, topItemsIndexes: v, ...h };
1602
1602
  },
1603
1603
  X(
1604
1604
  Et,
1605
1605
  Nn,
1606
- Ke,
1606
+ je,
1607
1607
  ue,
1608
1608
  ce,
1609
1609
  ae,
1610
1610
  Pt,
1611
- Ne
1611
+ De
1612
1612
  ),
1613
1613
  { singleton: true }
1614
1614
  ), Kn = U(
1615
1615
  ([{ fixedFooterHeight: t, fixedHeaderHeight: e, footerHeight: n, headerHeight: o }, { listState: r }]) => {
1616
1616
  const s = $(), i = ct(
1617
- x(
1617
+ S(
1618
1618
  rt(n, t, o, e, r),
1619
- E(([l, c, a, p, S]) => l + c + a + p + S.offsetBottom + S.bottom)
1619
+ E(([l, c, a, m, x]) => l + c + a + m + x.offsetBottom + x.bottom)
1620
1620
  ),
1621
1621
  0
1622
1622
  );
1623
- return O(A(i), s), { totalListHeight: i, totalListHeightChanged: s };
1623
+ return O(V(i), s), { totalListHeight: i, totalListHeightChanged: s };
1624
1624
  },
1625
- X(at, Dt),
1625
+ X(at, $t),
1626
1626
  { singleton: true }
1627
- ), Go = U(
1627
+ ), No = U(
1628
1628
  ([{ viewportHeight: t }, { totalListHeight: e }]) => {
1629
- const n = C(false), o = ct(
1630
- x(
1629
+ const n = w(false), o = ct(
1630
+ S(
1631
1631
  rt(n, t, e),
1632
- P(([r]) => r),
1632
+ A(([r]) => r),
1633
1633
  E(([, r, s]) => Math.max(0, r - s)),
1634
- Lt(0),
1635
- Z()
1634
+ kt(0),
1635
+ Y()
1636
1636
  ),
1637
1637
  0
1638
1638
  );
@@ -1640,103 +1640,192 @@ const Dt = U(
1640
1640
  },
1641
1641
  X(at, Kn),
1642
1642
  { singleton: true }
1643
+ ), jn = U(() => ({
1644
+ context: w(null)
1645
+ })), Do = ({
1646
+ itemBottom: t,
1647
+ itemTop: e,
1648
+ locationParams: { align: n, behavior: o, ...r },
1649
+ viewportBottom: s,
1650
+ viewportTop: i
1651
+ }) => e < i ? { ...r, align: n != null ? n : "start", behavior: o } : t > s ? { ...r, align: n != null ? n : "end", behavior: o } : null, qn = U(
1652
+ ([
1653
+ { gap: t, sizes: e, totalCount: n },
1654
+ { fixedFooterHeight: o, fixedHeaderHeight: r, headerHeight: s, scrollingInProgress: i, scrollTop: l, viewportHeight: c },
1655
+ { scrollToIndex: a }
1656
+ ]) => {
1657
+ const m = $();
1658
+ return O(
1659
+ S(
1660
+ m,
1661
+ N(e, c, n, s, r, o, l),
1662
+ N(t),
1663
+ E(([[x, h, I, C, v, g, p, u], T]) => {
1664
+ const { align: b, behavior: f, calculateViewLocation: d = Do, done: y, ...B } = x, k = _n(x, h, C - 1), L = ie(k, h.offsetTree, T) + v + g, z = L + wt(h.sizeTree, k)[1], _ = u + g, J = u + I - p, nt = d({
1665
+ itemBottom: z,
1666
+ itemTop: L,
1667
+ locationParams: { align: b, behavior: f, ...B },
1668
+ viewportBottom: J,
1669
+ viewportTop: _
1670
+ });
1671
+ return nt ? y && Tt(
1672
+ S(
1673
+ i,
1674
+ A((F) => !F),
1675
+ // skips the initial publish of false, and the cleanup call.
1676
+ // but if scrollingInProgress is true, we skip the initial publish.
1677
+ Dt(ot(i) ? 1 : 2)
1678
+ ),
1679
+ y
1680
+ ) : y && y(), nt;
1681
+ }),
1682
+ A((x) => x !== null)
1683
+ ),
1684
+ a
1685
+ ), {
1686
+ scrollIntoView: m
1687
+ };
1688
+ },
1689
+ X(Et, at, ce, $t, Vt),
1690
+ { singleton: true }
1643
1691
  );
1644
1692
  function xn(t) {
1645
1693
  return t ? t === "smooth" ? "smooth" : "auto" : false;
1646
1694
  }
1647
- const _o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), No = U(
1695
+ const $o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), Uo = U(
1648
1696
  ([
1649
- { listRefresh: t, totalCount: e, fixedItemSize: n },
1650
- { atBottomState: o, isAtBottom: r },
1651
- { scrollToIndex: s },
1652
- { scrolledToInitialItem: i },
1653
- { didMount: l, propsReady: c },
1654
- { log: a },
1655
- { scrollingInProgress: p }
1697
+ { listRefresh: t, totalCount: e, fixedItemSize: n, data: o },
1698
+ { atBottomState: r, isAtBottom: s },
1699
+ { scrollToIndex: i },
1700
+ { scrolledToInitialItem: l },
1701
+ { didMount: c, propsReady: a },
1702
+ { log: m },
1703
+ { scrollingInProgress: x },
1704
+ { context: h },
1705
+ { scrollIntoView: I }
1656
1706
  ]) => {
1657
- const S = C(false), g = $();
1658
- let h = null;
1659
- function w(m) {
1660
- G(s, {
1707
+ const C = w(false), v = $();
1708
+ let g = null;
1709
+ function p(f) {
1710
+ G(i, {
1661
1711
  align: "end",
1662
- behavior: m,
1712
+ behavior: f,
1663
1713
  index: "LAST"
1664
1714
  });
1665
1715
  }
1666
1716
  K(
1667
- x(
1668
- rt(x(A(e), jt(1)), l),
1669
- _(A(S), r, i, p),
1670
- E(([[m, d], u, T, R, I]) => {
1671
- let f = d && R, b = "auto";
1672
- return f && (b = _o(u, T || I), f = f && !!b), { followOutputBehavior: b, shouldFollow: f, totalCount: m };
1717
+ S(
1718
+ rt(S(V(e), Dt(1)), c),
1719
+ N(V(C), s, l, x),
1720
+ E(([[f, d], y, B, k, L]) => {
1721
+ let z = d && k, _ = "auto";
1722
+ return z && (_ = $o(y, B || L), z = z && !!_), { followOutputBehavior: _, shouldFollow: z, totalCount: f };
1673
1723
  }),
1674
- P(({ shouldFollow: m }) => m)
1724
+ A(({ shouldFollow: f }) => f)
1675
1725
  ),
1676
- ({ followOutputBehavior: m, totalCount: d }) => {
1677
- h && (h(), h = null), st(n) ? requestAnimationFrame(() => {
1678
- st(a)("following output to ", { totalCount: d }, mt.DEBUG), w(m);
1679
- }) : h = bt(t, () => {
1680
- st(a)("following output to ", { totalCount: d }, mt.DEBUG), w(m), h = null;
1726
+ ({ followOutputBehavior: f, totalCount: d }) => {
1727
+ g && (g(), g = null), ot(n) ? requestAnimationFrame(() => {
1728
+ ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f);
1729
+ }) : g = Tt(t, () => {
1730
+ ot(m)("following output to ", { totalCount: d }, mt.DEBUG), p(f), g = null;
1681
1731
  });
1682
1732
  }
1683
1733
  );
1684
- function v(m) {
1685
- const d = bt(o, (u) => {
1686
- m && !u.atBottom && u.notAtBottomBecause === "SIZE_INCREASED" && !h && (st(a)("scrolling to bottom due to increased size", {}, mt.DEBUG), w("auto"));
1734
+ function u(f) {
1735
+ const d = Tt(r, (y) => {
1736
+ f && !y.atBottom && y.notAtBottomBecause === "SIZE_INCREASED" && !g && (ot(m)("scrolling to bottom due to increased size", {}, mt.DEBUG), p("auto"));
1687
1737
  });
1688
1738
  setTimeout(d, 100);
1689
1739
  }
1690
- return K(
1691
- x(
1692
- rt(A(S), e, c),
1693
- P(([m, , d]) => m && d),
1694
- Rt(
1695
- ({ value: m }, [, d]) => ({ refreshed: m === d, value: d }),
1740
+ K(
1741
+ S(
1742
+ rt(V(C), e, a),
1743
+ A(([f, , d]) => f && d),
1744
+ bt(
1745
+ ({ value: f }, [, d]) => ({ refreshed: f === d, value: d }),
1696
1746
  { refreshed: false, value: 0 }
1697
1747
  ),
1698
- P(({ refreshed: m }) => m),
1699
- _(S, e)
1748
+ A(({ refreshed: f }) => f),
1749
+ N(C, e)
1700
1750
  ),
1701
- ([, m]) => {
1702
- st(i) && v(m !== false);
1751
+ ([, f]) => {
1752
+ ot(l) && u(f !== false);
1703
1753
  }
1704
- ), K(g, () => {
1705
- v(st(S) !== false);
1706
- }), K(rt(A(S), o), ([m, d]) => {
1707
- m && !d.atBottom && d.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && w("auto");
1708
- }), { autoscrollToBottom: g, followOutput: S };
1754
+ ), K(v, () => {
1755
+ u(ot(C) !== false);
1756
+ }), K(rt(V(C), r), ([f, d]) => {
1757
+ f && !d.atBottom && d.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && p("auto");
1758
+ });
1759
+ const T = w(null), b = $();
1760
+ return O(
1761
+ Le(
1762
+ S(
1763
+ V(o),
1764
+ E((f) => {
1765
+ var d;
1766
+ return (d = f == null ? void 0 : f.length) != null ? d : 0;
1767
+ })
1768
+ ),
1769
+ S(V(e))
1770
+ ),
1771
+ b
1772
+ ), K(
1773
+ S(
1774
+ rt(S(b, Dt(1)), c),
1775
+ N(V(T), l, x, h),
1776
+ E(([[f, d], y, B, k, L]) => d && B && (y == null ? void 0 : y({ context: L, totalCount: f, scrollingInProgress: k }))),
1777
+ A((f) => !!f),
1778
+ kt(0)
1779
+ ),
1780
+ (f) => {
1781
+ g && (g(), g = null), ot(n) ? requestAnimationFrame(() => {
1782
+ ot(m)("scrolling into view", {}), G(I, f);
1783
+ }) : g = Tt(t, () => {
1784
+ ot(m)("scrolling into view", {}), G(I, f), g = null;
1785
+ });
1786
+ }
1787
+ ), { autoscrollToBottom: v, followOutput: C, scrollIntoViewOnChange: T };
1709
1788
  },
1710
- X(Et, ae, ce, ue, Pt, Vt, at)
1711
- ), Do = U(
1789
+ X(
1790
+ Et,
1791
+ ae,
1792
+ ce,
1793
+ ue,
1794
+ Pt,
1795
+ Vt,
1796
+ at,
1797
+ jn,
1798
+ qn
1799
+ )
1800
+ ), Ko = U(
1712
1801
  ([{ data: t, firstItemIndex: e, gap: n, sizes: o }, { initialTopMostItemIndex: r }, { initialItemCount: s, listState: i }, { didMount: l }]) => (O(
1713
- x(
1802
+ S(
1714
1803
  l,
1715
- _(s),
1716
- P(([, c]) => c !== 0),
1717
- _(r, o, e, n, t),
1718
- E(([[, c], a, p, S, g, h = []]) => Un(c, a, p, S, g, h))
1804
+ N(s),
1805
+ A(([, c]) => c !== 0),
1806
+ N(r, o, e, n, t),
1807
+ E(([[, c], a, m, x, h, I = []]) => Un(c, a, m, x, h, I))
1719
1808
  ),
1720
1809
  i
1721
1810
  ), {}),
1722
- X(Et, ue, Dt, Pt),
1811
+ X(Et, ue, $t, Pt),
1723
1812
  { singleton: true }
1724
- ), $o = U(
1813
+ ), jo = U(
1725
1814
  ([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
1726
- const o = C(0);
1815
+ const o = w(0);
1727
1816
  return K(
1728
- x(
1817
+ S(
1729
1818
  t,
1730
- _(o),
1731
- P(([, r]) => r !== 0),
1819
+ N(o),
1820
+ A(([, r]) => r !== 0),
1732
1821
  E(([, r]) => ({ top: r }))
1733
1822
  ),
1734
1823
  (r) => {
1735
- bt(
1736
- x(
1824
+ Tt(
1825
+ S(
1737
1826
  n,
1738
- jt(1),
1739
- P((s) => s.items.length > 1)
1827
+ Dt(1),
1828
+ A((s) => s.items.length > 1)
1740
1829
  ),
1741
1830
  () => {
1742
1831
  requestAnimationFrame(() => {
@@ -1749,62 +1838,16 @@ const _o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), No = U(
1749
1838
  initialScrollTop: o
1750
1839
  };
1751
1840
  },
1752
- X(Pt, at, Dt),
1753
- { singleton: true }
1754
- ), Uo = ({
1755
- itemBottom: t,
1756
- itemTop: e,
1757
- locationParams: { align: n, behavior: o, ...r },
1758
- viewportBottom: s,
1759
- viewportTop: i
1760
- }) => e < i ? { ...r, align: n != null ? n : "start", behavior: o } : t > s ? { ...r, align: n != null ? n : "end", behavior: o } : null, Ko = U(
1761
- ([
1762
- { gap: t, sizes: e, totalCount: n },
1763
- { fixedFooterHeight: o, fixedHeaderHeight: r, headerHeight: s, scrollingInProgress: i, scrollTop: l, viewportHeight: c },
1764
- { scrollToIndex: a }
1765
- ]) => {
1766
- const p = $();
1767
- return O(
1768
- x(
1769
- p,
1770
- _(e, c, n, s, r, o, l),
1771
- _(t),
1772
- E(([[S, g, h, w, v, m, d, u], T]) => {
1773
- const { align: R, behavior: I, calculateViewLocation: f = Uo, done: b, ...k } = S, F = _n(S, g, w - 1), L = ie(F, g.offsetTree, T) + v + m, V = L + Ct(g.sizeTree, F)[1], D = u + m, J = u + h - d, nt = f({
1774
- itemBottom: V,
1775
- itemTop: L,
1776
- locationParams: { align: R, behavior: I, ...k },
1777
- viewportBottom: J,
1778
- viewportTop: D
1779
- });
1780
- return nt ? b && bt(
1781
- x(
1782
- i,
1783
- P((B) => !B),
1784
- // skips the initial publish of false, and the cleanup call.
1785
- // but if scrollingInProgress is true, we skip the initial publish.
1786
- jt(st(i) ? 1 : 2)
1787
- ),
1788
- b
1789
- ) : b && b(), nt;
1790
- }),
1791
- P((S) => S !== null)
1792
- ),
1793
- a
1794
- ), {
1795
- scrollIntoView: p
1796
- };
1797
- },
1798
- X(Et, at, ce, Dt, Vt),
1841
+ X(Pt, at, $t),
1799
1842
  { singleton: true }
1800
- ), jn = U(
1843
+ ), Yn = U(
1801
1844
  ([{ scrollVelocity: t }]) => {
1802
- const e = C(false), n = $(), o = C(false);
1845
+ const e = w(false), n = $(), o = w(false);
1803
1846
  return O(
1804
- x(
1847
+ S(
1805
1848
  t,
1806
- _(o, e, n),
1807
- P(([r, s]) => !!s),
1849
+ N(o, e, n),
1850
+ A(([r, s]) => !!s),
1808
1851
  E(([r, s, i, l]) => {
1809
1852
  const { enter: c, exit: a } = s;
1810
1853
  if (i) {
@@ -1814,11 +1857,11 @@ const _o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), No = U(
1814
1857
  return true;
1815
1858
  return i;
1816
1859
  }),
1817
- Z()
1860
+ Y()
1818
1861
  ),
1819
1862
  e
1820
1863
  ), K(
1821
- x(rt(e, t, n), _(o)),
1864
+ S(rt(e, t, n), N(o)),
1822
1865
  ([[r, s, i], l]) => {
1823
1866
  r && l && l.change && l.change(s, i);
1824
1867
  }
@@ -1826,22 +1869,22 @@ const _o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), No = U(
1826
1869
  },
1827
1870
  X(ae),
1828
1871
  { singleton: true }
1829
- ), je = U(([{ scrollContainerState: t, scrollTo: e }]) => {
1830
- const n = $(), o = $(), r = $(), s = C(false), i = C(void 0);
1872
+ ), qe = U(([{ scrollContainerState: t, scrollTo: e }]) => {
1873
+ const n = $(), o = $(), r = $(), s = w(false), i = w(void 0);
1831
1874
  return O(
1832
- x(
1875
+ S(
1833
1876
  rt(n, o),
1834
- E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: p }]) => ({
1877
+ E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: m }]) => ({
1835
1878
  scrollHeight: l,
1836
- scrollTop: Math.max(0, c - p),
1879
+ scrollTop: Math.max(0, c - m),
1837
1880
  viewportHeight: a
1838
1881
  }))
1839
1882
  ),
1840
1883
  t
1841
1884
  ), O(
1842
- x(
1885
+ S(
1843
1886
  e,
1844
- _(o),
1887
+ N(o),
1845
1888
  E(([l, { offsetTop: c }]) => ({
1846
1889
  ...l,
1847
1890
  top: l.top + c
@@ -1858,7 +1901,7 @@ const _o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), No = U(
1858
1901
  windowScrollTo: r,
1859
1902
  windowViewportRect: o
1860
1903
  };
1861
- }, X(at)), jo = U(
1904
+ }, X(at)), qo = U(
1862
1905
  ([
1863
1906
  { sizeRanges: t, sizes: e },
1864
1907
  { headerHeight: n, scrollTop: o },
@@ -1866,130 +1909,130 @@ const _o = (t, e) => typeof t == "function" ? xn(t(e)) : e && xn(t), No = U(
1866
1909
  { didMount: s },
1867
1910
  { useWindowScroll: i, windowScrollContainerState: l, windowViewportRect: c }
1868
1911
  ]) => {
1869
- const a = $(), p = C(void 0), S = C(null), g = C(null);
1870
- return O(l, S), O(c, g), K(
1871
- x(
1912
+ const a = $(), m = w(void 0), x = w(null), h = w(null);
1913
+ return O(l, x), O(c, h), K(
1914
+ S(
1872
1915
  a,
1873
- _(e, o, i, S, g, n)
1916
+ N(e, o, i, x, h, n)
1874
1917
  ),
1875
- ([h, w, v, m, d, u, T]) => {
1876
- const R = Bo(w.sizeTree);
1877
- m && d !== null && u !== null && (v = d.scrollTop - u.offsetTop), v -= T, h({ ranges: R, scrollTop: v });
1918
+ ([I, C, v, g, p, u, T]) => {
1919
+ const b = Fo(C.sizeTree);
1920
+ g && p !== null && u !== null && (v = p.scrollTop - u.offsetTop), v -= T, I({ ranges: b, scrollTop: v });
1878
1921
  }
1879
- ), O(x(p, P(Me), E(qo)), r), O(
1880
- x(
1922
+ ), O(S(m, A(We), E(Yo)), r), O(
1923
+ S(
1881
1924
  s,
1882
- _(p),
1883
- P(([, h]) => h !== void 0),
1884
- Z(),
1885
- E(([, h]) => h.ranges)
1925
+ N(m),
1926
+ A(([, I]) => I !== void 0),
1927
+ Y(),
1928
+ E(([, I]) => I.ranges)
1886
1929
  ),
1887
1930
  t
1888
1931
  ), {
1889
1932
  getState: a,
1890
- restoreStateFrom: p
1933
+ restoreStateFrom: m
1891
1934
  };
1892
1935
  },
1893
- X(Et, at, ue, Pt, je)
1936
+ X(Et, at, ue, Pt, qe)
1894
1937
  );
1895
- function qo(t) {
1938
+ function Yo(t) {
1896
1939
  return { align: "start", index: 0, offset: t.scrollTop };
1897
1940
  }
1898
- const Yo = U(([{ topItemsIndexes: t }]) => {
1899
- const e = C(0);
1941
+ const Zo = U(([{ topItemsIndexes: t }]) => {
1942
+ const e = w(0);
1900
1943
  return O(
1901
- x(
1944
+ S(
1902
1945
  e,
1903
- P((n) => n >= 0),
1946
+ A((n) => n >= 0),
1904
1947
  E((n) => Array.from({ length: n }).map((o, r) => r))
1905
1948
  ),
1906
1949
  t
1907
1950
  ), { topItemCount: e };
1908
- }, X(Dt));
1909
- function qn(t) {
1951
+ }, X($t));
1952
+ function Zn(t) {
1910
1953
  let e = false, n;
1911
1954
  return () => (e || (e = true, n = t()), n);
1912
1955
  }
1913
- const Zo = qn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Xo = U(
1956
+ const Xo = Zn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), Jo = U(
1914
1957
  ([
1915
1958
  { deviation: t, scrollBy: e, scrollingInProgress: n, scrollTop: o },
1916
1959
  { isAtBottom: r, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: l },
1917
1960
  { listState: c },
1918
- { beforeUnshiftWith: a, gap: p, shiftWithOffset: S, sizes: g },
1919
- { log: h },
1920
- { recalcInProgress: w }
1961
+ { beforeUnshiftWith: a, gap: m, shiftWithOffset: x, sizes: h },
1962
+ { log: I },
1963
+ { recalcInProgress: C }
1921
1964
  ]) => {
1922
1965
  const v = ht(
1923
- x(
1966
+ S(
1924
1967
  c,
1925
- _(i),
1926
- Rt(
1927
- ([, d, u, T], [{ bottom: R, items: I, offsetBottom: f, totalCount: b }, k]) => {
1928
- const F = R + f;
1968
+ N(i),
1969
+ bt(
1970
+ ([, p, u, T], [{ bottom: b, items: f, offsetBottom: d, totalCount: y }, B]) => {
1971
+ const k = b + d;
1929
1972
  let L = 0;
1930
- return u === b && d.length > 0 && I.length > 0 && (I[0].originalIndex === 0 && d[0].originalIndex === 0 || (L = F - T, L !== 0 && (L += k))), [L, I, b, F];
1973
+ return u === y && p.length > 0 && f.length > 0 && (f[0].originalIndex === 0 && p[0].originalIndex === 0 || (L = k - T, L !== 0 && (L += B))), [L, f, y, k];
1931
1974
  },
1932
1975
  [0, [], 0, 0]
1933
1976
  ),
1934
- P(([d]) => d !== 0),
1935
- _(o, l, n, r, h, w),
1936
- P(([, d, u, T, , , R]) => !R && !T && d !== 0 && u === le),
1937
- E(([[d], , , , , u]) => (u("Upward scrolling compensation", { amount: d }, mt.DEBUG), d))
1977
+ A(([p]) => p !== 0),
1978
+ N(o, l, n, r, I, C),
1979
+ A(([, p, u, T, , , b]) => !b && !T && p !== 0 && u === le),
1980
+ E(([[p], , , , , u]) => (u("Upward scrolling compensation", { amount: p }, mt.DEBUG), p))
1938
1981
  )
1939
1982
  );
1940
- function m(d) {
1941
- d > 0 ? (G(e, { behavior: "auto", top: -d }), G(t, 0)) : (G(t, 0), G(e, { behavior: "auto", top: -d }));
1983
+ function g(p) {
1984
+ p > 0 ? (G(e, { behavior: "auto", top: -p }), G(t, 0)) : (G(t, 0), G(e, { behavior: "auto", top: -p }));
1942
1985
  }
1943
- return K(x(v, _(t, s)), ([d, u, T]) => {
1944
- T && Zo() ? G(t, u - d) : m(-d);
1986
+ return K(S(v, N(t, s)), ([p, u, T]) => {
1987
+ T && Xo() ? G(t, u - p) : g(-p);
1945
1988
  }), K(
1946
- x(
1947
- rt(ct(s, false), t, w),
1948
- P(([d, u, T]) => !d && !T && u !== 0),
1949
- E(([d, u]) => u),
1950
- Lt(1)
1989
+ S(
1990
+ rt(ct(s, false), t, C),
1991
+ A(([p, u, T]) => !p && !T && u !== 0),
1992
+ E(([p, u]) => u),
1993
+ kt(1)
1951
1994
  ),
1952
- m
1995
+ g
1953
1996
  ), O(
1954
- x(
1955
- S,
1956
- E((d) => ({ top: -d }))
1997
+ S(
1998
+ x,
1999
+ E((p) => ({ top: -p }))
1957
2000
  ),
1958
2001
  e
1959
2002
  ), K(
1960
- x(
2003
+ S(
1961
2004
  a,
1962
- _(g, p),
1963
- E(([d, { groupIndices: u, lastSize: T, sizeTree: R }, I]) => {
1964
- function f(b) {
1965
- return b * (T + I);
2005
+ N(h, m),
2006
+ E(([p, { groupIndices: u, lastSize: T, sizeTree: b }, f]) => {
2007
+ function d(y) {
2008
+ return y * (T + f);
1966
2009
  }
1967
2010
  if (u.length === 0)
1968
- return f(d);
2011
+ return d(p);
1969
2012
  {
1970
- let b = 0;
1971
- const k = re(R, 0);
1972
- let F = 0, L = 0;
1973
- for (; F < d; ) {
1974
- F++, b += k;
1975
- let V = u.length === L + 1 ? 1 / 0 : u[L + 1] - u[L] - 1;
1976
- F + V > d && (b -= k, V = d - F + 1), F += V, b += f(V), L++;
2013
+ let y = 0;
2014
+ const B = re(b, 0);
2015
+ let k = 0, L = 0;
2016
+ for (; k < p; ) {
2017
+ k++, y += B;
2018
+ let z = u.length === L + 1 ? 1 / 0 : u[L + 1] - u[L] - 1;
2019
+ k + z > p && (y -= B, z = p - k + 1), k += z, y += d(z), L++;
1977
2020
  }
1978
- return b;
2021
+ return y;
1979
2022
  }
1980
2023
  })
1981
2024
  ),
1982
- (d) => {
1983
- G(t, d), requestAnimationFrame(() => {
1984
- G(e, { top: d }), requestAnimationFrame(() => {
1985
- G(t, 0), G(w, false);
2025
+ (p) => {
2026
+ G(t, p), requestAnimationFrame(() => {
2027
+ G(e, { top: p }), requestAnimationFrame(() => {
2028
+ G(t, 0), G(C, false);
1986
2029
  });
1987
2030
  });
1988
2031
  }
1989
2032
  ), { deviation: t };
1990
2033
  },
1991
- X(at, ae, Dt, Et, Vt, Ne)
1992
- ), Jo = U(
2034
+ X(at, ae, $t, Et, Vt, De)
2035
+ ), Qo = U(
1993
2036
  ([
1994
2037
  t,
1995
2038
  e,
@@ -2000,7 +2043,8 @@ const Zo = qn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2000
2043
  i,
2001
2044
  l,
2002
2045
  c,
2003
- a
2046
+ a,
2047
+ m
2004
2048
  ]) => ({
2005
2049
  ...t,
2006
2050
  ...e,
@@ -2011,21 +2055,23 @@ const Zo = qn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2011
2055
  ...i,
2012
2056
  ...l,
2013
2057
  ...c,
2014
- ...a
2058
+ ...a,
2059
+ ...m
2015
2060
  }),
2016
2061
  X(
2017
- Ke,
2018
- Do,
2019
- Pt,
2020
- jn,
2021
- Kn,
2022
- $o,
2023
- Go,
2024
2062
  je,
2025
2063
  Ko,
2026
- Vt
2064
+ Pt,
2065
+ Yn,
2066
+ Kn,
2067
+ jo,
2068
+ No,
2069
+ qe,
2070
+ qn,
2071
+ Vt,
2072
+ jn
2027
2073
  )
2028
- ), Yn = U(
2074
+ ), Xn = U(
2029
2075
  ([
2030
2076
  {
2031
2077
  data: t,
@@ -2038,22 +2084,22 @@ const Zo = qn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2038
2084
  sizeRanges: l,
2039
2085
  sizes: c,
2040
2086
  statefulTotalCount: a,
2041
- totalCount: p,
2042
- trackItemSizes: S
2087
+ totalCount: m,
2088
+ trackItemSizes: x
2043
2089
  },
2044
- { initialItemFinalLocationReached: g, initialTopMostItemIndex: h, scrolledToInitialItem: w },
2090
+ { initialItemFinalLocationReached: h, initialTopMostItemIndex: I, scrolledToInitialItem: C },
2045
2091
  v,
2046
- m,
2092
+ g,
2093
+ p,
2094
+ { listState: u, topItemsIndexes: T, ...b },
2095
+ { scrollToIndex: f },
2047
2096
  d,
2048
- { listState: u, topItemsIndexes: T, ...R },
2049
- { scrollToIndex: I },
2050
- f,
2051
- { topItemCount: b },
2052
- { groupCounts: k },
2053
- F
2054
- ]) => (O(R.rangeChanged, F.scrollSeekRangeChanged), O(
2055
- x(
2056
- F.windowViewportRect,
2097
+ { topItemCount: y },
2098
+ { groupCounts: B },
2099
+ k
2100
+ ]) => (O(b.rangeChanged, k.scrollSeekRangeChanged), O(
2101
+ S(
2102
+ k.windowViewportRect,
2057
2103
  E((L) => L.visibleHeight)
2058
2104
  ),
2059
2105
  v.viewportHeight
@@ -2063,46 +2109,46 @@ const Zo = qn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2063
2109
  firstItemIndex: n,
2064
2110
  fixedItemHeight: o,
2065
2111
  gap: r,
2066
- groupCounts: k,
2067
- initialItemFinalLocationReached: g,
2068
- initialTopMostItemIndex: h,
2069
- scrolledToInitialItem: w,
2112
+ groupCounts: B,
2113
+ initialItemFinalLocationReached: h,
2114
+ initialTopMostItemIndex: I,
2115
+ scrolledToInitialItem: C,
2070
2116
  sizeRanges: l,
2071
- topItemCount: b,
2117
+ topItemCount: y,
2072
2118
  topItemsIndexes: T,
2073
2119
  // input
2074
- totalCount: p,
2075
- ...d,
2120
+ totalCount: m,
2121
+ ...p,
2076
2122
  groupIndices: s,
2077
2123
  itemSize: i,
2078
2124
  listState: u,
2079
- scrollToIndex: I,
2125
+ scrollToIndex: f,
2080
2126
  // output
2081
2127
  statefulTotalCount: a,
2082
- trackItemSizes: S,
2128
+ trackItemSizes: x,
2083
2129
  // exported from stateFlagsSystem
2084
- ...R,
2130
+ ...b,
2085
2131
  // the bag of IO from featureGroup1System
2086
- ...F,
2132
+ ...k,
2087
2133
  ...v,
2088
2134
  sizes: c,
2089
- ...m
2135
+ ...g
2090
2136
  }),
2091
2137
  X(
2092
2138
  Et,
2093
2139
  ue,
2094
2140
  at,
2095
- jo,
2096
- No,
2097
- Dt,
2141
+ qo,
2142
+ Uo,
2143
+ $t,
2098
2144
  ce,
2099
- Xo,
2100
- Yo,
2145
+ Jo,
2146
+ Zo,
2101
2147
  Nn,
2102
- Jo
2148
+ Qo
2103
2149
  )
2104
2150
  );
2105
- function Qo(t, e) {
2151
+ function tr(t, e) {
2106
2152
  const n = {}, o = {};
2107
2153
  let r = 0;
2108
2154
  const s = t.length;
@@ -2113,264 +2159,263 @@ function Qo(t, e) {
2113
2159
  return n;
2114
2160
  }
2115
2161
  const pe = typeof document < "u" ? React__default.useLayoutEffect : React__default.useEffect;
2116
- function qe(t, e, n) {
2162
+ function Ye(t, e, n) {
2117
2163
  const o = Object.keys(e.required || {}), r = Object.keys(e.optional || {}), s = Object.keys(e.methods || {}), i = Object.keys(e.events || {}), l = React__default.createContext({});
2118
- function c(d, u) {
2119
- d.propsReady && G(d.propsReady, false);
2164
+ function c(p, u) {
2165
+ p.propsReady && G(p.propsReady, false);
2120
2166
  for (const T of o) {
2121
- const R = d[e.required[T]];
2122
- G(R, u[T]);
2167
+ const b = p[e.required[T]];
2168
+ G(b, u[T]);
2123
2169
  }
2124
2170
  for (const T of r)
2125
2171
  if (T in u) {
2126
- const R = d[e.optional[T]];
2127
- G(R, u[T]);
2172
+ const b = p[e.optional[T]];
2173
+ G(b, u[T]);
2128
2174
  }
2129
- d.propsReady && G(d.propsReady, true);
2175
+ p.propsReady && G(p.propsReady, true);
2130
2176
  }
2131
- function a(d) {
2132
- return s.reduce((u, T) => (u[T] = (R) => {
2133
- const I = d[e.methods[T]];
2134
- G(I, R);
2177
+ function a(p) {
2178
+ return s.reduce((u, T) => (u[T] = (b) => {
2179
+ const f = p[e.methods[T]];
2180
+ G(f, b);
2135
2181
  }, u), {});
2136
2182
  }
2137
- function p(d) {
2138
- return i.reduce((u, T) => (u[T] = ho(d[e.events[T]]), u), {});
2183
+ function m(p) {
2184
+ return i.reduce((u, T) => (u[T] = Io(p[e.events[T]]), u), {});
2139
2185
  }
2140
- const S = React__default.forwardRef((d, u) => {
2141
- const { children: T, ...R } = d, [I] = React__default.useState(() => ve(Io(t), (k) => {
2142
- c(k, R);
2143
- })), [f] = React__default.useState(un(p, I));
2186
+ const x = React__default.forwardRef((p, u) => {
2187
+ const { children: T, ...b } = p, [f] = React__default.useState(() => ve(xo(t), (B) => {
2188
+ c(B, b);
2189
+ })), [d] = React__default.useState(an(m, f));
2144
2190
  pe(() => {
2145
- for (const k of i)
2146
- k in R && K(f[k], R[k]);
2191
+ for (const B of i)
2192
+ B in b && K(d[B], b[B]);
2147
2193
  return () => {
2148
- Object.values(f).map(We);
2194
+ Object.values(d).map(Ge);
2149
2195
  };
2150
- }, [R, f, I]), pe(() => {
2151
- c(I, R);
2152
- }), React__default.useImperativeHandle(u, cn(a(I)));
2153
- const b = n;
2154
- return /* @__PURE__ */ jsx(l.Provider, { value: I, children: n ? /* @__PURE__ */ jsx(b, { ...Qo([...o, ...r, ...i], R), children: T }) : T });
2155
- }), g = (d) => {
2196
+ }, [b, d, f]), pe(() => {
2197
+ c(f, b);
2198
+ }), React__default.useImperativeHandle(u, un(a(f)));
2199
+ const y = n;
2200
+ return /* @__PURE__ */ jsx(l.Provider, { value: f, children: n ? /* @__PURE__ */ jsx(y, { ...tr([...o, ...r, ...i], b), children: T }) : T });
2201
+ }), h = (p) => {
2156
2202
  const u = React__default.useContext(l);
2157
2203
  return React__default.useCallback(
2158
2204
  (T) => {
2159
- G(u[d], T);
2205
+ G(u[p], T);
2160
2206
  },
2161
- [u, d]
2207
+ [u, p]
2162
2208
  );
2163
- }, h = (d) => {
2164
- const T = React__default.useContext(l)[d], R = React__default.useCallback(
2165
- (I) => K(T, I),
2209
+ }, I = (p) => {
2210
+ const T = React__default.useContext(l)[p], b = React__default.useCallback(
2211
+ (f) => K(T, f),
2166
2212
  [T]
2167
2213
  );
2168
2214
  return React__default.useSyncExternalStore(
2169
- R,
2170
- () => st(T),
2171
- () => st(T)
2215
+ b,
2216
+ () => ot(T),
2217
+ () => ot(T)
2172
2218
  );
2173
- }, w = (d) => {
2174
- const T = React__default.useContext(l)[d], [R, I] = React__default.useState(un(st, T));
2219
+ }, C = (p) => {
2220
+ const T = React__default.useContext(l)[p], [b, f] = React__default.useState(an(ot, T));
2175
2221
  return pe(
2176
- () => K(T, (f) => {
2177
- f !== R && I(cn(f));
2222
+ () => K(T, (d) => {
2223
+ d !== b && f(un(d));
2178
2224
  }),
2179
- [T, R]
2180
- ), R;
2181
- }, v = React__default.version.startsWith("18") ? h : w;
2225
+ [T, b]
2226
+ ), b;
2227
+ }, v = React__default.version.startsWith("18") ? I : C;
2182
2228
  return {
2183
- Component: S,
2184
- useEmitter: (d, u) => {
2185
- const R = React__default.useContext(l)[d];
2186
- pe(() => K(R, u), [u, R]);
2229
+ Component: x,
2230
+ useEmitter: (p, u) => {
2231
+ const b = React__default.useContext(l)[p];
2232
+ pe(() => K(b, u), [u, b]);
2187
2233
  },
2188
2234
  useEmitterValue: v,
2189
- usePublisher: g
2235
+ usePublisher: h
2190
2236
  };
2191
2237
  }
2192
- const be = React__default.createContext(void 0), Zn = React__default.createContext(void 0), Xn = typeof document < "u" ? React__default.useLayoutEffect : React__default.useEffect;
2238
+ const be = React__default.createContext(void 0), Jn = React__default.createContext(void 0), Qn = typeof document < "u" ? React__default.useLayoutEffect : React__default.useEffect;
2193
2239
  function ke(t) {
2194
2240
  return "self" in t;
2195
2241
  }
2196
- function tr(t) {
2242
+ function er(t) {
2197
2243
  return "body" in t;
2198
2244
  }
2199
- function Jn(t, e, n, o = Yt, r, s) {
2245
+ function to(t, e, n, o = Yt, r, s) {
2200
2246
  const i = React__default.useRef(null), l = React__default.useRef(null), c = React__default.useRef(null), a = React__default.useCallback(
2201
- (g) => {
2202
- let h, w, v;
2203
- const m = g.target;
2204
- if (tr(m) || ke(m)) {
2205
- const u = ke(m) ? m : m.defaultView;
2206
- v = s ? u.scrollX : u.scrollY, h = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight, w = s ? u.innerWidth : u.innerHeight;
2247
+ (h) => {
2248
+ let I, C, v;
2249
+ const g = h.target;
2250
+ if (er(g) || ke(g)) {
2251
+ const u = ke(g) ? g : g.defaultView;
2252
+ v = s ? u.scrollX : u.scrollY, I = s ? u.document.documentElement.scrollWidth : u.document.documentElement.scrollHeight, C = s ? u.innerWidth : u.innerHeight;
2207
2253
  } else
2208
- v = s ? m.scrollLeft : m.scrollTop, h = s ? m.scrollWidth : m.scrollHeight, w = s ? m.offsetWidth : m.offsetHeight;
2209
- const d = () => {
2254
+ v = s ? g.scrollLeft : g.scrollTop, I = s ? g.scrollWidth : g.scrollHeight, C = s ? g.offsetWidth : g.offsetHeight;
2255
+ const p = () => {
2210
2256
  t({
2211
- scrollHeight: h,
2257
+ scrollHeight: I,
2212
2258
  scrollTop: Math.max(v, 0),
2213
- viewportHeight: w
2259
+ viewportHeight: C
2214
2260
  });
2215
2261
  };
2216
- g.suppressFlushSync ? d() : ReactDOM.flushSync(d), l.current !== null && (v === l.current || v <= 0 || v === h - w) && (l.current = null, e(true), c.current && (clearTimeout(c.current), c.current = null));
2262
+ h.suppressFlushSync ? p() : ReactDOM.flushSync(p), l.current !== null && (v === l.current || v <= 0 || v === I - C) && (l.current = null, e(true), c.current && (clearTimeout(c.current), c.current = null));
2217
2263
  },
2218
2264
  [t, e, s]
2219
2265
  );
2220
2266
  React__default.useEffect(() => {
2221
- const g = r || i.current;
2222
- return o(r || i.current), a({ suppressFlushSync: true, target: g }), g.addEventListener("scroll", a, { passive: true }), () => {
2223
- o(null), g.removeEventListener("scroll", a);
2267
+ const h = r || i.current;
2268
+ return o(r || i.current), a({ suppressFlushSync: true, target: h }), h.addEventListener("scroll", a, { passive: true }), () => {
2269
+ o(null), h.removeEventListener("scroll", a);
2224
2270
  };
2225
2271
  }, [i, a, n, o, r]);
2226
- function p(g) {
2227
- const h = i.current;
2228
- if (!h || (s ? "offsetWidth" in h && h.offsetWidth === 0 : "offsetHeight" in h && h.offsetHeight === 0))
2272
+ function m(h) {
2273
+ const I = i.current;
2274
+ if (!I || (s ? "offsetWidth" in I && I.offsetWidth === 0 : "offsetHeight" in I && I.offsetHeight === 0))
2229
2275
  return;
2230
- const w = g.behavior === "smooth";
2231
- let v, m, d;
2232
- ke(h) ? (m = Math.max(
2233
- wt(h.document.documentElement, s ? "width" : "height"),
2234
- s ? h.document.documentElement.scrollWidth : h.document.documentElement.scrollHeight
2235
- ), v = s ? h.innerWidth : h.innerHeight, d = s ? window.scrollX : window.scrollY) : (m = h[s ? "scrollWidth" : "scrollHeight"], v = wt(h, s ? "width" : "height"), d = h[s ? "scrollLeft" : "scrollTop"]);
2236
- const u = m - v;
2237
- if (g.top = Math.ceil(Math.max(Math.min(u, g.top), 0)), $n(v, m) || g.top === d) {
2238
- t({ scrollHeight: m, scrollTop: d, viewportHeight: v }), w && e(true);
2276
+ const C = h.behavior === "smooth";
2277
+ let v, g, p;
2278
+ ke(I) ? (g = Math.max(
2279
+ vt(I.document.documentElement, s ? "width" : "height"),
2280
+ s ? I.document.documentElement.scrollWidth : I.document.documentElement.scrollHeight
2281
+ ), v = s ? I.innerWidth : I.innerHeight, p = s ? window.scrollX : window.scrollY) : (g = I[s ? "scrollWidth" : "scrollHeight"], v = vt(I, s ? "width" : "height"), p = I[s ? "scrollLeft" : "scrollTop"]);
2282
+ const u = g - v;
2283
+ if (h.top = Math.ceil(Math.max(Math.min(u, h.top), 0)), $n(v, g) || h.top === p) {
2284
+ t({ scrollHeight: g, scrollTop: p, viewportHeight: v }), C && e(true);
2239
2285
  return;
2240
2286
  }
2241
- w ? (l.current = g.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
2287
+ C ? (l.current = h.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
2242
2288
  c.current = null, l.current = null, e(true);
2243
- }, 1e3)) : l.current = null, s && (g = { behavior: g.behavior, left: g.top }), h.scrollTo(g);
2289
+ }, 1e3)) : l.current = null, s && (h = { behavior: h.behavior, left: h.top }), I.scrollTo(h);
2244
2290
  }
2245
- function S(g) {
2246
- s && (g = { behavior: g.behavior, left: g.top }), i.current.scrollBy(g);
2291
+ function x(h) {
2292
+ s && (h = { behavior: h.behavior, left: h.top }), i.current.scrollBy(h);
2247
2293
  }
2248
- return { scrollByCallback: S, scrollerRef: i, scrollToCallback: p };
2294
+ return { scrollByCallback: x, scrollerRef: i, scrollToCallback: m };
2249
2295
  }
2250
- const Fe = "-webkit-sticky", Tn = "sticky", Ye = qn(() => {
2296
+ const Fe = "-webkit-sticky", Tn = "sticky", Ze = Zn(() => {
2251
2297
  if (typeof document > "u")
2252
2298
  return Tn;
2253
2299
  const t = document.createElement("div");
2254
2300
  return t.style.position = Fe, t.style.position === Fe ? Fe : Tn;
2255
2301
  });
2256
- function Ze(t) {
2302
+ function Xe(t) {
2257
2303
  return t;
2258
2304
  }
2259
- const er = /* @__PURE__ */ U(() => {
2260
- const t = C((c) => `Item ${c}`), e = C(null), n = C((c) => `Group ${c}`), o = C({}), r = C(Ze), s = C("div"), i = C(Yt), l = (c, a = null) => ct(
2261
- x(
2262
- o,
2263
- E((p) => p[c]),
2264
- Z()
2305
+ const nr = /* @__PURE__ */ U(() => {
2306
+ const t = w((l) => `Item ${l}`), e = w((l) => `Group ${l}`), n = w({}), o = w(Xe), r = w("div"), s = w(Yt), i = (l, c = null) => ct(
2307
+ S(
2308
+ n,
2309
+ E((a) => a[l]),
2310
+ Y()
2265
2311
  ),
2266
- a
2312
+ c
2267
2313
  );
2268
2314
  return {
2269
- components: o,
2270
- computeItemKey: r,
2271
- context: e,
2272
- EmptyPlaceholder: l("EmptyPlaceholder"),
2273
- FooterComponent: l("Footer"),
2274
- GroupComponent: l("Group", "div"),
2275
- groupContent: n,
2276
- HeaderComponent: l("Header"),
2277
- HeaderFooterTag: s,
2278
- ItemComponent: l("Item", "div"),
2315
+ components: n,
2316
+ computeItemKey: o,
2317
+ EmptyPlaceholder: i("EmptyPlaceholder"),
2318
+ FooterComponent: i("Footer"),
2319
+ GroupComponent: i("Group", "div"),
2320
+ groupContent: e,
2321
+ HeaderComponent: i("Header"),
2322
+ HeaderFooterTag: r,
2323
+ ItemComponent: i("Item", "div"),
2279
2324
  itemContent: t,
2280
- ListComponent: l("List", "div"),
2281
- ScrollerComponent: l("Scroller", "div"),
2282
- scrollerRef: i,
2283
- ScrollSeekPlaceholder: l("ScrollSeekPlaceholder"),
2284
- TopItemListComponent: l("TopItemList")
2325
+ ListComponent: i("List", "div"),
2326
+ ScrollerComponent: i("Scroller", "div"),
2327
+ scrollerRef: s,
2328
+ ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
2329
+ TopItemListComponent: i("TopItemList")
2285
2330
  };
2286
- }), nr = /* @__PURE__ */ U(
2331
+ }), or = /* @__PURE__ */ U(
2287
2332
  ([t, e]) => ({ ...t, ...e }),
2288
- X(Yn, er)
2289
- ), or = ({ height: t }) => /* @__PURE__ */ jsx("div", { style: { height: t } }), rr = { overflowAnchor: "none", position: Ye(), zIndex: 1 }, Qn = { overflowAnchor: "none" }, sr = { ...Qn, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ React__default.memo(function({ showTopList: e = false }) {
2290
- const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), p = M("context"), S = M("groupContent"), g = M("trackItemSizes"), h = M("itemSize"), w = M("log"), v = gt("gap"), m = M("horizontalDirection"), { callbackRef: d } = On(
2333
+ X(Xn, nr)
2334
+ ), rr = ({ height: t }) => /* @__PURE__ */ jsx("div", { style: { height: t } }), sr = { overflowAnchor: "none", position: Ze(), zIndex: 1 }, eo = { overflowAnchor: "none" }, ir = { ...eo, display: "inline-block", height: "100%" }, Cn = /* @__PURE__ */ React__default.memo(function({ showTopList: e = false }) {
2335
+ const n = M("listState"), o = gt("sizeRanges"), r = M("useWindowScroll"), s = M("customScrollParent"), i = gt("windowScrollContainerState"), l = gt("scrollContainerState"), c = s || r ? i : l, a = M("itemContent"), m = M("context"), x = M("groupContent"), h = M("trackItemSizes"), I = M("itemSize"), C = M("log"), v = gt("gap"), g = M("horizontalDirection"), { callbackRef: p } = On(
2291
2336
  o,
2337
+ I,
2292
2338
  h,
2293
- g,
2294
2339
  e ? Yt : c,
2295
- w,
2340
+ C,
2296
2341
  v,
2297
2342
  s,
2298
- m,
2343
+ g,
2299
2344
  M("skipAnimationFrameInResizeObserver")
2300
2345
  ), [u, T] = React__default.useState(0);
2301
- Qe("deviation", (B) => {
2302
- u !== B && T(B);
2346
+ tn("deviation", (F) => {
2347
+ u !== F && T(F);
2303
2348
  });
2304
- const R = M("EmptyPlaceholder"), I = M("ScrollSeekPlaceholder") || or, f = M("ListComponent"), b = M("ItemComponent"), k = M("GroupComponent"), F = M("computeItemKey"), L = M("isSeeking"), V = M("groupIndices").length > 0, D = M("alignToBottom"), J = M("initialItemFinalLocationReached"), nt = e ? {} : {
2349
+ const b = M("EmptyPlaceholder"), f = M("ScrollSeekPlaceholder") || rr, d = M("ListComponent"), y = M("ItemComponent"), B = M("GroupComponent"), k = M("computeItemKey"), L = M("isSeeking"), z = M("groupIndices").length > 0, _ = M("alignToBottom"), J = M("initialItemFinalLocationReached"), nt = e ? {} : {
2305
2350
  boxSizing: "border-box",
2306
- ...m ? {
2351
+ ...g ? {
2307
2352
  display: "inline-block",
2308
2353
  height: "100%",
2309
- marginLeft: u !== 0 ? u : D ? "auto" : 0,
2354
+ marginLeft: u !== 0 ? u : _ ? "auto" : 0,
2310
2355
  paddingLeft: n.offsetTop,
2311
2356
  paddingRight: n.offsetBottom,
2312
2357
  whiteSpace: "nowrap"
2313
2358
  } : {
2314
- marginTop: u !== 0 ? u : D ? "auto" : 0,
2359
+ marginTop: u !== 0 ? u : _ ? "auto" : 0,
2315
2360
  paddingBottom: n.offsetBottom,
2316
2361
  paddingTop: n.offsetTop
2317
2362
  },
2318
2363
  ...J ? {} : { visibility: "hidden" }
2319
2364
  };
2320
- return !e && n.totalCount === 0 && R ? /* @__PURE__ */ jsx(R, { ...q(R, p) }) : /* @__PURE__ */ jsx(
2321
- f,
2365
+ return !e && n.totalCount === 0 && b ? /* @__PURE__ */ jsx(b, { ...Z(b, m) }) : /* @__PURE__ */ jsx(
2366
+ d,
2322
2367
  {
2323
- ...q(f, p),
2368
+ ...Z(d, m),
2324
2369
  "data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
2325
- ref: d,
2370
+ ref: p,
2326
2371
  style: nt,
2327
- children: (e ? n.topItems : n.items).map((B) => {
2328
- const Y = B.originalIndex, it = F(Y + n.firstItemIndex, B.data, p);
2372
+ children: (e ? n.topItems : n.items).map((F) => {
2373
+ const q = F.originalIndex, it = k(q + n.firstItemIndex, F.data, m);
2329
2374
  return L ? /* @__PURE__ */ createElement(
2330
- I,
2375
+ f,
2331
2376
  {
2332
- ...q(I, p),
2333
- height: B.size,
2334
- index: B.index,
2377
+ ...Z(f, m),
2378
+ height: F.size,
2379
+ index: F.index,
2335
2380
  key: it,
2336
- type: B.type || "item",
2337
- ...B.type === "group" ? {} : { groupIndex: B.groupIndex }
2381
+ type: F.type || "item",
2382
+ ...F.type === "group" ? {} : { groupIndex: F.groupIndex }
2338
2383
  }
2339
- ) : B.type === "group" ? /* @__PURE__ */ createElement(
2340
- k,
2384
+ ) : F.type === "group" ? /* @__PURE__ */ createElement(
2385
+ B,
2341
2386
  {
2342
- ...q(k, p),
2343
- "data-index": Y,
2344
- "data-item-index": B.index,
2345
- "data-known-size": B.size,
2387
+ ...Z(B, m),
2388
+ "data-index": q,
2389
+ "data-item-index": F.index,
2390
+ "data-known-size": F.size,
2346
2391
  key: it,
2347
- style: rr
2392
+ style: sr
2348
2393
  },
2349
- S(B.index, p)
2394
+ x(F.index, m)
2350
2395
  ) : /* @__PURE__ */ createElement(
2351
- b,
2396
+ y,
2352
2397
  {
2353
- ...q(b, p),
2354
- ...to(b, B.data),
2355
- "data-index": Y,
2356
- "data-item-group-index": B.groupIndex,
2357
- "data-item-index": B.index,
2358
- "data-known-size": B.size,
2398
+ ...Z(y, m),
2399
+ ...no(y, F.data),
2400
+ "data-index": q,
2401
+ "data-item-group-index": F.groupIndex,
2402
+ "data-item-index": F.index,
2403
+ "data-known-size": F.size,
2359
2404
  key: it,
2360
- style: m ? sr : Qn
2405
+ style: g ? ir : eo
2361
2406
  },
2362
- V ? a(B.index, B.groupIndex, B.data, p) : a(B.index, B.data, p)
2407
+ z ? a(F.index, F.groupIndex, F.data, m) : a(F.index, F.data, m)
2363
2408
  );
2364
2409
  })
2365
2410
  }
2366
2411
  );
2367
- }), ir = {
2412
+ }), lr = {
2368
2413
  height: "100%",
2369
2414
  outline: "none",
2370
2415
  overflowY: "auto",
2371
2416
  position: "relative",
2372
2417
  WebkitOverflowScrolling: "touch"
2373
- }, lr = {
2418
+ }, cr = {
2374
2419
  outline: "none",
2375
2420
  overflowX: "auto",
2376
2421
  position: "relative"
@@ -2380,106 +2425,106 @@ const er = /* @__PURE__ */ U(() => {
2380
2425
  top: 0,
2381
2426
  width: "100%",
2382
2427
  ...t ? { display: "flex", flexDirection: "column" } : {}
2383
- }), cr = {
2384
- position: Ye(),
2428
+ }), ur = {
2429
+ position: Ze(),
2385
2430
  top: 0,
2386
2431
  width: "100%",
2387
2432
  zIndex: 1
2388
2433
  };
2389
- function q(t, e) {
2434
+ function Z(t, e) {
2390
2435
  if (typeof t != "string")
2391
2436
  return { context: e };
2392
2437
  }
2393
- function to(t, e) {
2438
+ function no(t, e) {
2394
2439
  return { item: typeof t == "string" ? void 0 : e };
2395
2440
  }
2396
- const ur = /* @__PURE__ */ React__default.memo(function() {
2441
+ const ar = /* @__PURE__ */ React__default.memo(function() {
2397
2442
  const e = M("HeaderComponent"), n = gt("headerHeight"), o = M("HeaderFooterTag"), r = Ht(
2398
2443
  React__default.useMemo(
2399
2444
  () => (i) => {
2400
- n(wt(i, "height"));
2445
+ n(vt(i, "height"));
2401
2446
  },
2402
2447
  [n]
2403
2448
  ),
2404
2449
  true,
2405
2450
  M("skipAnimationFrameInResizeObserver")
2406
2451
  ), s = M("context");
2407
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
2408
- }), ar = /* @__PURE__ */ React__default.memo(function() {
2452
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
2453
+ }), dr = /* @__PURE__ */ React__default.memo(function() {
2409
2454
  const e = M("FooterComponent"), n = gt("footerHeight"), o = M("HeaderFooterTag"), r = Ht(
2410
2455
  React__default.useMemo(
2411
2456
  () => (i) => {
2412
- n(wt(i, "height"));
2457
+ n(vt(i, "height"));
2413
2458
  },
2414
2459
  [n]
2415
2460
  ),
2416
2461
  true,
2417
2462
  M("skipAnimationFrameInResizeObserver")
2418
2463
  ), s = M("context");
2419
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
2464
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
2420
2465
  });
2421
- function Xe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2422
- return React__default.memo(function({ children: s, style: i, ...l }) {
2423
- const c = n("scrollContainerState"), a = e("ScrollerComponent"), p = n("smoothScrollTargetReached"), S = e("scrollerRef"), g = e("context"), h = e("horizontalDirection") || false, { scrollByCallback: w, scrollerRef: v, scrollToCallback: m } = Jn(
2424
- c,
2425
- p,
2466
+ function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2467
+ return React__default.memo(function({ children: s, style: i, context: l, ...c }) {
2468
+ const a = n("scrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), h = e("scrollerRef"), I = e("horizontalDirection") || false, { scrollByCallback: C, scrollerRef: v, scrollToCallback: g } = to(
2426
2469
  a,
2427
- S,
2470
+ x,
2471
+ m,
2472
+ h,
2428
2473
  void 0,
2429
- h
2474
+ I
2430
2475
  );
2431
- return t("scrollTo", m), t("scrollBy", w), /* @__PURE__ */ jsx(
2432
- a,
2476
+ return t("scrollTo", g), t("scrollBy", C), /* @__PURE__ */ jsx(
2477
+ m,
2433
2478
  {
2434
2479
  "data-testid": "virtuoso-scroller",
2435
2480
  "data-virtuoso-scroller": true,
2436
2481
  ref: v,
2437
- style: { ...h ? lr : ir, ...i },
2482
+ style: { ...I ? cr : lr, ...i },
2438
2483
  tabIndex: 0,
2439
- ...l,
2440
- ...q(a, g),
2484
+ ...c,
2485
+ ...Z(m, l),
2441
2486
  children: s
2442
2487
  }
2443
2488
  );
2444
2489
  });
2445
2490
  }
2446
- function Je({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2447
- return React__default.memo(function({ children: s, style: i, ...l }) {
2448
- const c = n("windowScrollContainerState"), a = e("ScrollerComponent"), p = n("smoothScrollTargetReached"), S = e("totalListHeight"), g = e("deviation"), h = e("customScrollParent"), w = e("context"), v = React__default.useRef(null), m = e("scrollerRef"), { scrollByCallback: d, scrollerRef: u, scrollToCallback: T } = Jn(
2449
- c,
2450
- p,
2491
+ function Qe({ useEmitter: t, useEmitterValue: e, usePublisher: n }) {
2492
+ return React__default.memo(function({ children: s, style: i, context: l, ...c }) {
2493
+ const a = n("windowScrollContainerState"), m = e("ScrollerComponent"), x = n("smoothScrollTargetReached"), h = e("totalListHeight"), I = e("deviation"), C = e("customScrollParent"), v = React__default.useRef(null), g = e("scrollerRef"), { scrollByCallback: p, scrollerRef: u, scrollToCallback: T } = to(
2451
2494
  a,
2495
+ x,
2452
2496
  m,
2453
- h
2497
+ g,
2498
+ C
2454
2499
  );
2455
- return Xn(() => {
2456
- var R;
2457
- return u.current = h || ((R = v.current) == null ? void 0 : R.ownerDocument.defaultView), () => {
2500
+ return Qn(() => {
2501
+ var b;
2502
+ return u.current = C || ((b = v.current) == null ? void 0 : b.ownerDocument.defaultView), () => {
2458
2503
  u.current = null;
2459
2504
  };
2460
- }, [u, h]), t("windowScrollTo", T), t("scrollBy", d), /* @__PURE__ */ jsx(
2461
- a,
2505
+ }, [u, C]), t("windowScrollTo", T), t("scrollBy", p), /* @__PURE__ */ jsx(
2506
+ m,
2462
2507
  {
2463
2508
  ref: v,
2464
2509
  "data-virtuoso-scroller": true,
2465
- style: { position: "relative", ...i, ...S !== 0 ? { height: S + g } : {} },
2466
- ...l,
2467
- ...q(a, w),
2510
+ style: { position: "relative", ...i, ...h !== 0 ? { height: h + I } : {} },
2511
+ ...c,
2512
+ ...Z(m, l),
2468
2513
  children: s
2469
2514
  }
2470
2515
  );
2471
2516
  });
2472
2517
  }
2473
- const dr = ({ children: t }) => {
2518
+ const fr = ({ children: t }) => {
2474
2519
  const e = React__default.useContext(be), n = gt("viewportHeight"), o = gt("fixedItemHeight"), r = M("alignToBottom"), s = M("horizontalDirection"), i = React__default.useMemo(
2475
- () => ne(n, (c) => wt(c, s ? "width" : "height")),
2520
+ () => ne(n, (c) => vt(c, s ? "width" : "height")),
2476
2521
  [n, s]
2477
2522
  ), l = Ht(i, true, M("skipAnimationFrameInResizeObserver"));
2478
2523
  return React__default.useEffect(() => {
2479
2524
  e && (n(e.viewportHeight), o(e.itemHeight));
2480
2525
  }, [e, n, o]), /* @__PURE__ */ jsx("div", { "data-viewport-type": "element", ref: l, style: Zt(r), children: t });
2481
- }, fr = ({ children: t }) => {
2482
- const e = React__default.useContext(be), n = gt("windowViewportRect"), o = gt("fixedItemHeight"), r = M("customScrollParent"), s = _e(
2526
+ }, mr = ({ children: t }) => {
2527
+ const e = React__default.useContext(be), n = gt("windowViewportRect"), o = gt("fixedItemHeight"), r = M("customScrollParent"), s = Ne(
2483
2528
  n,
2484
2529
  r,
2485
2530
  M("skipAnimationFrameInResizeObserver")
@@ -2487,32 +2532,33 @@ const dr = ({ children: t }) => {
2487
2532
  return React__default.useEffect(() => {
2488
2533
  e && (o(e.itemHeight), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: 100 }));
2489
2534
  }, [e, n, o]), /* @__PURE__ */ jsx("div", { "data-viewport-type": "window", ref: s, style: Zt(i), children: t });
2490
- }, mr = ({ children: t }) => {
2491
- const e = M("TopItemListComponent") || "div", n = M("headerHeight"), o = { ...cr, marginTop: `${n}px` }, r = M("context");
2492
- return /* @__PURE__ */ jsx(e, { style: o, ...q(e, r), children: t });
2493
- }, pr = /* @__PURE__ */ React__default.memo(function(e) {
2494
- const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context"), i = r || n ? gr : hr, l = r || n ? fr : dr;
2495
- return /* @__PURE__ */ jsxs(i, { ...e, ...q(i, s), children: [
2496
- o && /* @__PURE__ */ jsx(mr, { children: /* @__PURE__ */ jsx(Cn, { showTopList: true }) }),
2497
- /* @__PURE__ */ jsxs(l, { children: [
2498
- /* @__PURE__ */ jsx(ur, {}),
2535
+ }, pr = ({ children: t }) => {
2536
+ const e = M("TopItemListComponent") || "div", n = M("headerHeight"), o = { ...ur, marginTop: `${n}px` }, r = M("context");
2537
+ return /* @__PURE__ */ jsx(e, { style: o, ...Z(e, r), children: t });
2538
+ }, hr = /* @__PURE__ */ React__default.memo(function(e) {
2539
+ const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context");
2540
+ return /* @__PURE__ */ jsxs(r || n ? Ir : gr, { ...e, context: s, children: [
2541
+ o && /* @__PURE__ */ jsx(pr, { children: /* @__PURE__ */ jsx(Cn, { showTopList: true }) }),
2542
+ /* @__PURE__ */ jsxs(r || n ? mr : fr, { children: [
2543
+ /* @__PURE__ */ jsx(ar, {}),
2499
2544
  /* @__PURE__ */ jsx(Cn, {}),
2500
- /* @__PURE__ */ jsx(ar, {})
2545
+ /* @__PURE__ */ jsx(dr, {})
2501
2546
  ] })
2502
2547
  ] });
2503
2548
  }), {
2504
- Component: eo,
2505
- useEmitter: Qe,
2549
+ Component: oo,
2550
+ useEmitter: tn,
2506
2551
  useEmitterValue: M,
2507
2552
  usePublisher: gt
2508
- } = /* @__PURE__ */ qe(
2509
- nr,
2553
+ } = /* @__PURE__ */ Ye(
2554
+ or,
2510
2555
  {
2511
2556
  required: {},
2512
2557
  optional: {
2513
2558
  restoreStateFrom: "restoreStateFrom",
2514
2559
  context: "context",
2515
2560
  followOutput: "followOutput",
2561
+ scrollIntoViewOnChange: "scrollIntoViewOnChange",
2516
2562
  itemContent: "itemContent",
2517
2563
  groupContent: "groupContent",
2518
2564
  overscan: "overscan",
@@ -2562,21 +2608,21 @@ const dr = ({ children: t }) => {
2562
2608
  groupIndices: "groupIndices"
2563
2609
  }
2564
2610
  },
2565
- pr
2566
- ), hr = /* @__PURE__ */ Xe({ useEmitter: Qe, useEmitterValue: M, usePublisher: gt }), gr = /* @__PURE__ */ Je({ useEmitter: Qe, useEmitterValue: M, usePublisher: gt }), jr = eo, Ir = /* @__PURE__ */ U(() => {
2567
- const t = C((a) => /* @__PURE__ */ jsxs("td", { children: [
2611
+ hr
2612
+ ), gr = /* @__PURE__ */ Je({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), Ir = /* @__PURE__ */ Qe({ useEmitter: tn, useEmitterValue: M, usePublisher: gt }), qr = oo, Sr = /* @__PURE__ */ U(() => {
2613
+ const t = w((a) => /* @__PURE__ */ jsxs("td", { children: [
2568
2614
  "Item $",
2569
2615
  a
2570
- ] })), e = C(null), n = C((a) => /* @__PURE__ */ jsxs("td", { colSpan: 1e3, children: [
2616
+ ] })), e = w(null), n = w((a) => /* @__PURE__ */ jsxs("td", { colSpan: 1e3, children: [
2571
2617
  "Group ",
2572
2618
  a
2573
- ] })), o = C(null), r = C(null), s = C({}), i = C(Ze), l = C(Yt), c = (a, p = null) => ct(
2574
- x(
2619
+ ] })), o = w(null), r = w(null), s = w({}), i = w(Xe), l = w(Yt), c = (a, m = null) => ct(
2620
+ S(
2575
2621
  s,
2576
- E((S) => S[a]),
2577
- Z()
2622
+ E((x) => x[a]),
2623
+ Y()
2578
2624
  ),
2579
- p
2625
+ m
2580
2626
  );
2581
2627
  return {
2582
2628
  components: s,
@@ -2600,8 +2646,8 @@ const dr = ({ children: t }) => {
2600
2646
  };
2601
2647
  }); /* @__PURE__ */ U(
2602
2648
  ([t, e]) => ({ ...t, ...e }),
2603
- X(Yn, Ir)
2604
- ); ({ position: Ye()}); const yn = {
2649
+ X(Xn, Sr)
2650
+ ); ({ position: Ze()}); const yn = {
2605
2651
  bottom: 0,
2606
2652
  itemHeight: 0,
2607
2653
  items: [],
@@ -2609,7 +2655,7 @@ const dr = ({ children: t }) => {
2609
2655
  offsetBottom: 0,
2610
2656
  offsetTop: 0,
2611
2657
  top: 0
2612
- }, Er = {
2658
+ }, Br = {
2613
2659
  bottom: 0,
2614
2660
  itemHeight: 0,
2615
2661
  items: [{ index: 0 }],
@@ -2621,289 +2667,289 @@ const dr = ({ children: t }) => {
2621
2667
  function Hn(t, e, n) {
2622
2668
  return Array.from({ length: e - t + 1 }).map((o, r) => ({ data: n === null ? null : n[r + t], index: r + t }));
2623
2669
  }
2624
- function Br(t) {
2670
+ function kr(t) {
2625
2671
  return {
2626
- ...Er,
2672
+ ...Br,
2627
2673
  items: t
2628
2674
  };
2629
2675
  }
2630
2676
  function he(t, e) {
2631
2677
  return t && t.width === e.width && t.height === e.height;
2632
2678
  }
2633
- function kr(t, e) {
2679
+ function Fr(t, e) {
2634
2680
  return t && t.column === e.column && t.row === e.row;
2635
2681
  }
2636
- const Fr = /* @__PURE__ */ U(
2682
+ const Or = /* @__PURE__ */ U(
2637
2683
  ([
2638
2684
  { increaseViewportBy: t, listBoundary: e, overscan: n, visibleRange: o },
2639
- { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: p, viewportHeight: S },
2640
- g,
2685
+ { footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: m, viewportHeight: x },
2641
2686
  h,
2642
- { didMount: w, propsReady: v },
2643
- { customScrollParent: m, useWindowScroll: d, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: R },
2644
- I
2687
+ I,
2688
+ { didMount: C, propsReady: v },
2689
+ { customScrollParent: g, useWindowScroll: p, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: b },
2690
+ f
2645
2691
  ]) => {
2646
- const f = C(0), b = C(0), k = C(yn), F = C({ height: 0, width: 0 }), L = C({ height: 0, width: 0 }), V = $(), D = $(), J = C(0), nt = C(null), B = C({ column: 0, row: 0 }), Y = $(), it = $(), dt = C(false), St = C(0), ft = C(true), ut = C(false), At = C(false);
2692
+ const d = w(0), y = w(0), B = w(yn), k = w({ height: 0, width: 0 }), L = w({ height: 0, width: 0 }), z = $(), _ = $(), J = w(0), nt = w(null), F = w({ column: 0, row: 0 }), q = $(), it = $(), dt = w(false), St = w(0), ft = w(true), ut = w(false), At = w(false);
2647
2693
  K(
2648
- x(
2649
- w,
2650
- _(St),
2651
- P(([y, N]) => !!N)
2694
+ S(
2695
+ C,
2696
+ N(St),
2697
+ A(([R, D]) => !!D)
2652
2698
  ),
2653
2699
  () => {
2654
2700
  G(ft, false);
2655
2701
  }
2656
2702
  ), K(
2657
- x(
2658
- rt(w, ft, L, F, St, ut),
2659
- P(([y, N, Q, lt, , tt]) => y && !N && Q.height !== 0 && lt.height !== 0 && !tt)
2703
+ S(
2704
+ rt(C, ft, L, k, St, ut),
2705
+ A(([R, D, Q, lt, , tt]) => R && !D && Q.height !== 0 && lt.height !== 0 && !tt)
2660
2706
  ),
2661
- ([, , , , y]) => {
2662
- G(ut, true), $e(1, () => {
2663
- G(V, y);
2664
- }), bt(x(a), () => {
2707
+ ([, , , , R]) => {
2708
+ G(ut, true), Ue(1, () => {
2709
+ G(z, R);
2710
+ }), Tt(S(a), () => {
2665
2711
  G(e, [0, 0]), G(ft, true);
2666
2712
  });
2667
2713
  }
2668
2714
  ), O(
2669
- x(
2715
+ S(
2670
2716
  it,
2671
- P((y) => y != null && y.scrollTop > 0),
2672
- yt(0)
2717
+ A((R) => R != null && R.scrollTop > 0),
2718
+ Rt(0)
2673
2719
  ),
2674
- b
2720
+ y
2675
2721
  ), K(
2676
- x(
2677
- w,
2678
- _(it),
2679
- P(([, y]) => y != null)
2722
+ S(
2723
+ C,
2724
+ N(it),
2725
+ A(([, R]) => R != null)
2680
2726
  ),
2681
- ([, y]) => {
2682
- y && (G(F, y.viewport), G(L, y.item), G(B, y.gap), y.scrollTop > 0 && (G(dt, true), bt(x(a, jt(1)), (N) => {
2727
+ ([, R]) => {
2728
+ R && (G(k, R.viewport), G(L, R.item), G(F, R.gap), R.scrollTop > 0 && (G(dt, true), Tt(S(a, Dt(1)), (D) => {
2683
2729
  G(dt, false);
2684
- }), G(c, { top: y.scrollTop })));
2730
+ }), G(c, { top: R.scrollTop })));
2685
2731
  }
2686
2732
  ), O(
2687
- x(
2688
- F,
2689
- E(({ height: y }) => y)
2733
+ S(
2734
+ k,
2735
+ E(({ height: R }) => R)
2690
2736
  ),
2691
- S
2737
+ x
2692
2738
  ), O(
2693
- x(
2739
+ S(
2694
2740
  rt(
2695
- A(F, he),
2696
- A(L, he),
2697
- A(B, (y, N) => y && y.column === N.column && y.row === N.row),
2698
- A(a)
2741
+ V(k, he),
2742
+ V(L, he),
2743
+ V(F, (R, D) => R && R.column === D.column && R.row === D.row),
2744
+ V(a)
2699
2745
  ),
2700
- E(([y, N, Q, lt]) => ({
2746
+ E(([R, D, Q, lt]) => ({
2701
2747
  gap: Q,
2702
- item: N,
2748
+ item: D,
2703
2749
  scrollTop: lt,
2704
- viewport: y
2750
+ viewport: R
2705
2751
  }))
2706
2752
  ),
2707
- Y
2753
+ q
2708
2754
  ), O(
2709
- x(
2755
+ S(
2710
2756
  rt(
2711
- A(f),
2757
+ V(d),
2712
2758
  o,
2713
- A(B, kr),
2714
- A(L, he),
2715
- A(F, he),
2716
- A(nt),
2717
- A(b),
2718
- A(dt),
2719
- A(ft),
2720
- A(St)
2759
+ V(F, Fr),
2760
+ V(L, he),
2761
+ V(k, he),
2762
+ V(nt),
2763
+ V(y),
2764
+ V(dt),
2765
+ V(ft),
2766
+ V(St)
2721
2767
  ),
2722
- P(([, , , , , , , y]) => !y),
2768
+ A(([, , , , , , , R]) => !R),
2723
2769
  E(
2724
2770
  ([
2725
- y,
2726
- [N, Q],
2771
+ R,
2772
+ [D, Q],
2727
2773
  lt,
2728
2774
  tt,
2729
- kt,
2775
+ Ft,
2730
2776
  Jt,
2731
- $t,
2777
+ Ut,
2732
2778
  ,
2733
2779
  de,
2734
- Ft
2780
+ Ot
2735
2781
  ]) => {
2736
- const { column: Ot, row: Qt } = lt, { height: fe, width: He } = tt, { width: en } = kt;
2737
- if ($t === 0 && (y === 0 || en === 0))
2782
+ const { column: Lt, row: Qt } = lt, { height: fe, width: He } = tt, { width: nn } = Ft;
2783
+ if (Ut === 0 && (R === 0 || nn === 0))
2738
2784
  return yn;
2739
2785
  if (He === 0) {
2740
- const ln = Ue(Ft, y), io = ln + Math.max($t - 1, 0);
2741
- return Br(Hn(ln, io, Jt));
2786
+ const cn = Ke(Ot, R), co = cn + Math.max(Ut - 1, 0);
2787
+ return kr(Hn(cn, co, Jt));
2742
2788
  }
2743
- const me = oo(en, He, Ot);
2744
- let Ut, Wt;
2745
- de ? N === 0 && Q === 0 && $t > 0 ? (Ut = 0, Wt = $t - 1) : (Ut = me * Ce((N + Qt) / (fe + Qt)), Wt = me * Rn((Q + Qt) / (fe + Qt)) - 1, Wt = Oe(y - 1, ee(Wt, me - 1)), Ut = Oe(Wt, ee(0, Ut))) : (Ut = 0, Wt = -1);
2746
- const nn = Hn(Ut, Wt, Jt), { bottom: on, top: rn } = En(kt, lt, tt, nn), sn = Rn(y / me), so = sn * fe + (sn - 1) * Qt - on;
2747
- return { bottom: on, itemHeight: fe, items: nn, itemWidth: He, offsetBottom: so, offsetTop: rn, top: rn };
2789
+ const me = so(nn, He, Lt);
2790
+ let Kt, Wt;
2791
+ de ? D === 0 && Q === 0 && Ut > 0 ? (Kt = 0, Wt = Ut - 1) : (Kt = me * Ce((D + Qt) / (fe + Qt)), Wt = me * Rn((Q + Qt) / (fe + Qt)) - 1, Wt = Oe(R - 1, ee(Wt, me - 1)), Kt = Oe(Wt, ee(0, Kt))) : (Kt = 0, Wt = -1);
2792
+ const on = Hn(Kt, Wt, Jt), { bottom: rn, top: sn } = En(Ft, lt, tt, on), ln = Rn(R / me), lo = ln * fe + (ln - 1) * Qt - rn;
2793
+ return { bottom: rn, itemHeight: fe, items: on, itemWidth: He, offsetBottom: lo, offsetTop: sn, top: sn };
2748
2794
  }
2749
2795
  )
2750
2796
  ),
2751
- k
2797
+ B
2752
2798
  ), O(
2753
- x(
2799
+ S(
2754
2800
  nt,
2755
- P((y) => y !== null),
2756
- E((y) => y.length)
2801
+ A((R) => R !== null),
2802
+ E((R) => R.length)
2757
2803
  ),
2758
- f
2804
+ d
2759
2805
  ), O(
2760
- x(
2761
- rt(F, L, k, B),
2762
- P(([y, N, { items: Q }]) => Q.length > 0 && N.height !== 0 && y.height !== 0),
2763
- E(([y, N, { items: Q }, lt]) => {
2764
- const { bottom: tt, top: kt } = En(y, lt, N, Q);
2765
- return [kt, tt];
2806
+ S(
2807
+ rt(k, L, B, F),
2808
+ A(([R, D, { items: Q }]) => Q.length > 0 && D.height !== 0 && R.height !== 0),
2809
+ E(([R, D, { items: Q }, lt]) => {
2810
+ const { bottom: tt, top: Ft } = En(R, lt, D, Q);
2811
+ return [Ft, tt];
2766
2812
  }),
2767
- Z(se)
2813
+ Y(se)
2768
2814
  ),
2769
2815
  e
2770
2816
  );
2771
- const xt = C(false);
2817
+ const xt = w(false);
2772
2818
  O(
2773
- x(
2819
+ S(
2774
2820
  a,
2775
- _(xt),
2776
- E(([y, N]) => N || y !== 0)
2821
+ N(xt),
2822
+ E(([R, D]) => D || R !== 0)
2777
2823
  ),
2778
2824
  xt
2779
2825
  );
2780
2826
  const Xt = ht(
2781
- x(
2782
- rt(k, f),
2783
- P(([{ items: y }]) => y.length > 0),
2784
- _(xt),
2785
- P(([[y, N], Q]) => {
2786
- const tt = y.items[y.items.length - 1].index === N - 1;
2787
- return (Q || y.bottom > 0 && y.itemHeight > 0 && y.offsetBottom === 0 && y.items.length === N) && tt;
2827
+ S(
2828
+ rt(B, d),
2829
+ A(([{ items: R }]) => R.length > 0),
2830
+ N(xt),
2831
+ A(([[R, D], Q]) => {
2832
+ const tt = R.items[R.items.length - 1].index === D - 1;
2833
+ return (Q || R.bottom > 0 && R.itemHeight > 0 && R.offsetBottom === 0 && R.items.length === D) && tt;
2788
2834
  }),
2789
- E(([[, y]]) => y - 1),
2790
- Z()
2835
+ E(([[, R]]) => R - 1),
2836
+ Y()
2791
2837
  )
2792
2838
  ), Mt = ht(
2793
- x(
2794
- A(k),
2795
- P(({ items: y }) => y.length > 0 && y[0].index === 0),
2796
- yt(0),
2797
- Z()
2839
+ S(
2840
+ V(B),
2841
+ A(({ items: R }) => R.length > 0 && R[0].index === 0),
2842
+ Rt(0),
2843
+ Y()
2798
2844
  )
2799
- ), vt = ht(
2800
- x(
2801
- A(k),
2802
- _(dt),
2803
- P(([{ items: y }, N]) => y.length > 0 && !N),
2804
- E(([{ items: y }]) => ({
2805
- endIndex: y[y.length - 1].index,
2806
- startIndex: y[0].index
2845
+ ), yt = ht(
2846
+ S(
2847
+ V(B),
2848
+ N(dt),
2849
+ A(([{ items: R }, D]) => R.length > 0 && !D),
2850
+ E(([{ items: R }]) => ({
2851
+ endIndex: R[R.length - 1].index,
2852
+ startIndex: R[0].index
2807
2853
  })),
2808
- Z(Mn),
2809
- Lt(0)
2854
+ Y(Mn),
2855
+ kt(0)
2810
2856
  )
2811
2857
  );
2812
- O(vt, h.scrollSeekRangeChanged), O(
2813
- x(
2814
- V,
2815
- _(F, L, f, B),
2816
- E(([y, N, Q, lt, tt]) => {
2817
- const kt = Dn(y), { align: Jt, behavior: $t, offset: de } = kt;
2818
- let Ft = kt.index;
2819
- Ft === "LAST" && (Ft = lt - 1), Ft = ee(0, Ft, Oe(lt - 1, Ft));
2820
- let Ot = Ae(N, tt, Q, Ft);
2821
- return Jt === "end" ? Ot = bn(Ot - N.height + Q.height) : Jt === "center" && (Ot = bn(Ot - N.height / 2 + Q.height / 2)), de && (Ot += de), { behavior: $t, top: Ot };
2858
+ O(yt, I.scrollSeekRangeChanged), O(
2859
+ S(
2860
+ z,
2861
+ N(k, L, d, F),
2862
+ E(([R, D, Q, lt, tt]) => {
2863
+ const Ft = Dn(R), { align: Jt, behavior: Ut, offset: de } = Ft;
2864
+ let Ot = Ft.index;
2865
+ Ot === "LAST" && (Ot = lt - 1), Ot = ee(0, Ot, Oe(lt - 1, Ot));
2866
+ let Lt = Me(D, tt, Q, Ot);
2867
+ return Jt === "end" ? Lt = bn(Lt - D.height + Q.height) : Jt === "center" && (Lt = bn(Lt - D.height / 2 + Q.height / 2)), de && (Lt += de), { behavior: Ut, top: Lt };
2822
2868
  })
2823
2869
  ),
2824
2870
  c
2825
2871
  );
2826
2872
  const Bt = ct(
2827
- x(
2828
- k,
2829
- E((y) => y.offsetBottom + y.bottom)
2873
+ S(
2874
+ B,
2875
+ E((R) => R.offsetBottom + R.bottom)
2830
2876
  ),
2831
2877
  0
2832
2878
  );
2833
2879
  return O(
2834
- x(
2835
- R,
2836
- E((y) => ({ height: y.visibleHeight, width: y.visibleWidth }))
2880
+ S(
2881
+ b,
2882
+ E((R) => ({ height: R.visibleHeight, width: R.visibleWidth }))
2837
2883
  ),
2838
- F
2884
+ k
2839
2885
  ), {
2840
- customScrollParent: m,
2886
+ customScrollParent: g,
2841
2887
  // input
2842
2888
  data: nt,
2843
2889
  deviation: J,
2844
2890
  footerHeight: r,
2845
- gap: B,
2891
+ gap: F,
2846
2892
  headerHeight: s,
2847
2893
  increaseViewportBy: t,
2848
- initialItemCount: b,
2894
+ initialItemCount: y,
2849
2895
  itemDimensions: L,
2850
2896
  overscan: n,
2851
2897
  restoreStateFrom: it,
2852
2898
  scrollBy: i,
2853
2899
  scrollContainerState: l,
2854
- scrollHeight: D,
2900
+ scrollHeight: _,
2855
2901
  scrollTo: c,
2856
- scrollToIndex: V,
2902
+ scrollToIndex: z,
2857
2903
  scrollTop: a,
2858
- smoothScrollTargetReached: p,
2859
- totalCount: f,
2860
- useWindowScroll: d,
2861
- viewportDimensions: F,
2904
+ smoothScrollTargetReached: m,
2905
+ totalCount: d,
2906
+ useWindowScroll: p,
2907
+ viewportDimensions: k,
2862
2908
  windowScrollContainerState: u,
2863
2909
  windowScrollTo: T,
2864
- windowViewportRect: R,
2865
- ...h,
2910
+ windowViewportRect: b,
2911
+ ...I,
2866
2912
  // output
2867
- gridState: k,
2913
+ gridState: B,
2868
2914
  horizontalDirection: At,
2869
2915
  initialTopMostItemIndex: St,
2870
2916
  totalListHeight: Bt,
2871
- ...g,
2917
+ ...h,
2872
2918
  endReached: Xt,
2873
2919
  propsReady: v,
2874
- rangeChanged: vt,
2920
+ rangeChanged: yt,
2875
2921
  startReached: Mt,
2876
- stateChanged: Y,
2922
+ stateChanged: q,
2877
2923
  stateRestoreInProgress: dt,
2878
- ...I
2924
+ ...f
2879
2925
  };
2880
2926
  },
2881
- X(Ke, at, ae, jn, Pt, je, Vt)
2927
+ X(je, at, ae, Yn, Pt, qe, Vt)
2882
2928
  );
2883
- function oo(t, e, n) {
2929
+ function so(t, e, n) {
2884
2930
  return ee(1, Ce((t + n) / (Ce(e) + n)));
2885
2931
  }
2886
2932
  function En(t, e, n, o) {
2887
2933
  const { height: r } = n;
2888
2934
  if (r === void 0 || o.length === 0)
2889
2935
  return { bottom: 0, top: 0 };
2890
- const s = Ae(t, e, n, o[0].index);
2891
- return { bottom: Ae(t, e, n, o[o.length - 1].index) + r, top: s };
2936
+ const s = Me(t, e, n, o[0].index);
2937
+ return { bottom: Me(t, e, n, o[o.length - 1].index) + r, top: s };
2892
2938
  }
2893
- function Ae(t, e, n, o) {
2894
- const r = oo(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + ee(0, s - 1) * e.row;
2939
+ function Me(t, e, n, o) {
2940
+ const r = so(t.width, n.width, e.column), s = Ce(o / r), i = s * n.height + ee(0, s - 1) * e.row;
2895
2941
  return i > 0 ? i + e.row : i;
2896
2942
  }
2897
- const Or = /* @__PURE__ */ U(() => {
2898
- const t = C((S) => `Item ${S}`), e = C({}), n = C(null), o = C("virtuoso-grid-item"), r = C("virtuoso-grid-list"), s = C(Ze), i = C("div"), l = C(Yt), c = (S, g = null) => ct(
2899
- x(
2943
+ const Lr = /* @__PURE__ */ U(() => {
2944
+ const t = w((x) => `Item ${x}`), e = w({}), n = w(null), o = w("virtuoso-grid-item"), r = w("virtuoso-grid-list"), s = w(Xe), i = w("div"), l = w(Yt), c = (x, h = null) => ct(
2945
+ S(
2900
2946
  e,
2901
- E((h) => h[S]),
2902
- Z()
2947
+ E((I) => I[x]),
2948
+ Y()
2903
2949
  ),
2904
- g
2905
- ), a = C(false), p = C(false);
2906
- return O(A(p), a), {
2950
+ h
2951
+ ), a = w(false), m = w(false);
2952
+ return O(V(m), a), {
2907
2953
  components: e,
2908
2954
  computeItemKey: s,
2909
2955
  context: n,
@@ -2916,51 +2962,51 @@ const Or = /* @__PURE__ */ U(() => {
2916
2962
  listClassName: r,
2917
2963
  ListComponent: c("List", "div"),
2918
2964
  readyStateChanged: a,
2919
- reportReadyState: p,
2965
+ reportReadyState: m,
2920
2966
  ScrollerComponent: c("Scroller", "div"),
2921
2967
  scrollerRef: l,
2922
2968
  ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
2923
2969
  };
2924
- }), Lr = /* @__PURE__ */ U(
2970
+ }), zr = /* @__PURE__ */ U(
2925
2971
  ([t, e]) => ({ ...t, ...e }),
2926
- X(Fr, Or)
2927
- ), zr = /* @__PURE__ */ React__default.memo(function() {
2928
- const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), p = et("ScrollSeekPlaceholder"), S = et("context"), g = It("itemDimensions"), h = It("gap"), w = et("log"), v = et("stateRestoreInProgress"), m = It("reportReadyState"), d = Ht(
2972
+ X(Or, Lr)
2973
+ ), Vr = /* @__PURE__ */ React__default.memo(function() {
2974
+ const e = et("gridState"), n = et("listClassName"), o = et("itemClassName"), r = et("itemContent"), s = et("computeItemKey"), i = et("isSeeking"), l = It("scrollHeight"), c = et("ItemComponent"), a = et("ListComponent"), m = et("ScrollSeekPlaceholder"), x = et("context"), h = It("itemDimensions"), I = It("gap"), C = et("log"), v = et("stateRestoreInProgress"), g = It("reportReadyState"), p = Ht(
2929
2975
  React__default.useMemo(
2930
2976
  () => (u) => {
2931
2977
  const T = u.parentElement.parentElement.scrollHeight;
2932
2978
  l(T);
2933
- const R = u.firstChild;
2934
- if (R) {
2935
- const { height: I, width: f } = R.getBoundingClientRect();
2936
- g({ height: I, width: f });
2979
+ const b = u.firstChild;
2980
+ if (b) {
2981
+ const { height: f, width: d } = b.getBoundingClientRect();
2982
+ h({ height: f, width: d });
2937
2983
  }
2938
- h({
2939
- column: Bn("column-gap", getComputedStyle(u).columnGap, w),
2940
- row: Bn("row-gap", getComputedStyle(u).rowGap, w)
2984
+ I({
2985
+ column: Bn("column-gap", getComputedStyle(u).columnGap, C),
2986
+ row: Bn("row-gap", getComputedStyle(u).rowGap, C)
2941
2987
  });
2942
2988
  },
2943
- [l, g, h, w]
2989
+ [l, h, I, C]
2944
2990
  ),
2945
2991
  true,
2946
2992
  false
2947
2993
  );
2948
- return Xn(() => {
2949
- e.itemHeight > 0 && e.itemWidth > 0 && m(true);
2994
+ return Qn(() => {
2995
+ e.itemHeight > 0 && e.itemWidth > 0 && g(true);
2950
2996
  }, [e]), v ? null : /* @__PURE__ */ jsx(
2951
2997
  a,
2952
2998
  {
2953
2999
  className: n,
2954
- ref: d,
2955
- ...q(a, S),
3000
+ ref: p,
3001
+ ...Z(a, x),
2956
3002
  "data-testid": "virtuoso-item-list",
2957
3003
  style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
2958
3004
  children: e.items.map((u) => {
2959
- const T = s(u.index, u.data, S);
3005
+ const T = s(u.index, u.data, x);
2960
3006
  return i ? /* @__PURE__ */ jsx(
2961
- p,
3007
+ m,
2962
3008
  {
2963
- ...q(p, S),
3009
+ ...Z(m, x),
2964
3010
  height: e.itemHeight,
2965
3011
  index: u.index,
2966
3012
  width: e.itemWidth
@@ -2969,42 +3015,42 @@ const Or = /* @__PURE__ */ U(() => {
2969
3015
  ) : /* @__PURE__ */ createElement(
2970
3016
  c,
2971
3017
  {
2972
- ...q(c, S),
3018
+ ...Z(c, x),
2973
3019
  className: o,
2974
3020
  "data-index": u.index,
2975
3021
  key: T
2976
3022
  },
2977
- r(u.index, u.data, S)
3023
+ r(u.index, u.data, x)
2978
3024
  );
2979
3025
  })
2980
3026
  }
2981
3027
  );
2982
- }), Vr = React__default.memo(function() {
3028
+ }), Pr = React__default.memo(function() {
2983
3029
  const e = et("HeaderComponent"), n = It("headerHeight"), o = et("headerFooterTag"), r = Ht(
2984
3030
  React__default.useMemo(
2985
3031
  () => (i) => {
2986
- n(wt(i, "height"));
3032
+ n(vt(i, "height"));
2987
3033
  },
2988
3034
  [n]
2989
3035
  ),
2990
3036
  true,
2991
3037
  false
2992
3038
  ), s = et("context");
2993
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
2994
- }), Pr = React__default.memo(function() {
3039
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
3040
+ }), Ar = React__default.memo(function() {
2995
3041
  const e = et("FooterComponent"), n = It("footerHeight"), o = et("headerFooterTag"), r = Ht(
2996
3042
  React__default.useMemo(
2997
3043
  () => (i) => {
2998
- n(wt(i, "height"));
3044
+ n(vt(i, "height"));
2999
3045
  },
3000
3046
  [n]
3001
3047
  ),
3002
3048
  true,
3003
3049
  false
3004
3050
  ), s = et("context");
3005
- return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...q(e, s) }) }) : null;
3006
- }), Ar = ({ children: t }) => {
3007
- const e = React__default.useContext(Zn), n = It("itemDimensions"), o = It("viewportDimensions"), r = Ht(
3051
+ return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
3052
+ }), Mr = ({ children: t }) => {
3053
+ const e = React__default.useContext(Jn), n = It("itemDimensions"), o = It("viewportDimensions"), r = Ht(
3008
3054
  React__default.useMemo(
3009
3055
  () => (s) => {
3010
3056
  o(s.getBoundingClientRect());
@@ -3017,24 +3063,24 @@ const Or = /* @__PURE__ */ U(() => {
3017
3063
  return React__default.useEffect(() => {
3018
3064
  e && (o({ height: e.viewportHeight, width: e.viewportWidth }), n({ height: e.itemHeight, width: e.itemWidth }));
3019
3065
  }, [e, o, n]), /* @__PURE__ */ jsx("div", { ref: r, style: Zt(false), children: t });
3020
- }, Mr = ({ children: t }) => {
3021
- const e = React__default.useContext(Zn), n = It("windowViewportRect"), o = It("itemDimensions"), r = et("customScrollParent"), s = _e(n, r, false);
3066
+ }, Wr = ({ children: t }) => {
3067
+ const e = React__default.useContext(Jn), n = It("windowViewportRect"), o = It("itemDimensions"), r = et("customScrollParent"), s = Ne(n, r, false);
3022
3068
  return React__default.useEffect(() => {
3023
3069
  e && (o({ height: e.itemHeight, width: e.itemWidth }), n({ offsetTop: 0, visibleHeight: e.viewportHeight, visibleWidth: e.viewportWidth }));
3024
3070
  }, [e, n, o]), /* @__PURE__ */ jsx("div", { ref: s, style: Zt(false), children: t });
3025
- }, Wr = /* @__PURE__ */ React__default.memo(function({ ...e }) {
3026
- const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Nr : _r, s = o || n ? Mr : Ar, i = et("context");
3027
- return /* @__PURE__ */ jsx(r, { ...e, ...q(r, i), children: /* @__PURE__ */ jsxs(s, { children: [
3071
+ }, Gr = /* @__PURE__ */ React__default.memo(function({ ...e }) {
3072
+ const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ? Dr : Nr, s = o || n ? Wr : Mr, i = et("context");
3073
+ return /* @__PURE__ */ jsx(r, { ...e, ...Z(r, i), children: /* @__PURE__ */ jsxs(s, { children: [
3074
+ /* @__PURE__ */ jsx(Pr, {}),
3028
3075
  /* @__PURE__ */ jsx(Vr, {}),
3029
- /* @__PURE__ */ jsx(zr, {}),
3030
- /* @__PURE__ */ jsx(Pr, {})
3076
+ /* @__PURE__ */ jsx(Ar, {})
3031
3077
  ] }) });
3032
3078
  }), {
3033
- useEmitter: ro,
3079
+ useEmitter: io,
3034
3080
  useEmitterValue: et,
3035
3081
  usePublisher: It
3036
- } = /* @__PURE__ */ qe(
3037
- Lr,
3082
+ } = /* @__PURE__ */ Ye(
3083
+ zr,
3038
3084
  {
3039
3085
  optional: {
3040
3086
  context: "context",
@@ -3073,11 +3119,11 @@ const Or = /* @__PURE__ */ U(() => {
3073
3119
  readyStateChanged: "readyStateChanged"
3074
3120
  }
3075
3121
  },
3076
- Wr
3077
- ), _r = /* @__PURE__ */ Xe({ useEmitter: ro, useEmitterValue: et, usePublisher: It }), Nr = /* @__PURE__ */ Je({ useEmitter: ro, useEmitterValue: et, usePublisher: It });
3122
+ Gr
3123
+ ), Nr = /* @__PURE__ */ Je({ useEmitter: io, useEmitterValue: et, usePublisher: It }), Dr = /* @__PURE__ */ Qe({ useEmitter: io, useEmitterValue: et, usePublisher: It });
3078
3124
  function Bn(t, e, n) {
3079
3125
  return e !== "normal" && !(e != null && e.endsWith("px")) && n(`${t} was not resolved to pixel value correctly`, e, mt.WARN), e === "normal" ? 0 : parseInt(e != null ? e : "0", 10);
3080
3126
  }
3081
3127
 
3082
- export { mt as LogLevel, jr as Virtuoso, Zn as VirtuosoGridMockContext, be as VirtuosoMockContext };
3128
+ export { mt as LogLevel, qr as Virtuoso, Jn as VirtuosoGridMockContext, be as VirtuosoMockContext };
3083
3129
  //# sourceMappingURL=index.js.map