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.
- package/README.md +75 -75
- package/lib/_virtual/index10.js +2 -2
- package/lib/_virtual/index11.js +2 -2
- package/lib/_virtual/index12.js +2 -2
- package/lib/_virtual/index9.js +2 -2
- package/lib/assets/icons/navigate_to_pages.svg.js +6 -0
- package/lib/assets/icons/navigate_to_pages.svg.js.map +1 -0
- package/lib/assets/icons/spinner.svg.js +1 -1
- package/lib/assets/icons/spinner.svg.js.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +1 -1
- package/lib/components/Accordion/Accordion.js +5 -3
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/types.d.ts +1 -0
- package/lib/components/Editor/VariableDropdown.js +2 -2
- package/lib/components/Icon/iconList.js +2 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.js +4 -3
- package/lib/components/InputWithDropdown/InputWithDropdown.js.map +1 -1
- package/lib/index.cjs +9901 -3778
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/node_modules/@date-fns/tz/date/index.js +1 -19
- package/lib/node_modules/@date-fns/tz/date/index.js.map +1 -1
- package/lib/node_modules/@date-fns/tz/date/mini.js +34 -6
- package/lib/node_modules/@date-fns/tz/date/mini.js.map +1 -1
- package/lib/node_modules/@date-fns/tz/tzName/index.js +40 -0
- package/lib/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
- package/lib/node_modules/@date-fns/tz/tzOffset/index.js +6 -5
- package/lib/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js +93 -98
- package/lib/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/config/index.js +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/config/index.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/loader/index.js +15 -13
- package/lib/node_modules/@monaco-editor/loader/lib/es/loader/index.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/compose.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/curry.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js +1 -0
- package/lib/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js.map +1 -1
- package/lib/node_modules/@monaco-editor/loader/lib/es/validators/index.js +1 -2
- package/lib/node_modules/@monaco-editor/loader/lib/es/validators/index.js.map +1 -1
- package/lib/node_modules/janus-gateway/npm/dist/janus.es.js +26 -57
- package/lib/node_modules/janus-gateway/npm/dist/janus.es.js.map +1 -1
- package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/index.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
- package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
- package/lib/node_modules/jsencrypt/lib/JSEncrypt.js +246 -0
- package/lib/node_modules/jsencrypt/lib/JSEncrypt.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js +325 -0
- package/lib/node_modules/jsencrypt/lib/JSEncryptRSAKey.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/index.js +6 -0
- package/lib/node_modules/jsencrypt/lib/index.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js +570 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/asn1.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js +88 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/base64.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js +66 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/hex.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js +87 -0
- package/lib/node_modules/jsencrypt/lib/lib/asn1js/int10.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js +65 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/base64.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js +1700 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/jsbn.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js +48 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/prng4.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js +77 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rng.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js +415 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/rsa.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js +307 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/sha256.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js +61 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsbn/util.js.map +1 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js +1559 -0
- package/lib/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js.map +1 -0
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +115 -82
- package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +68 -58
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +36 -23
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +13 -9
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +226 -187
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js +21 -27
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +150 -117
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +57 -38
- package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/ParseError.js +70 -109
- package/lib/node_modules/libphonenumber-js/es6/ParseError.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +72 -57
- package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/constants.js +15 -9
- package/lib/node_modules/libphonenumber-js/es6/constants.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/format.js +67 -93
- package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
- package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/getCountries.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +49 -10
- package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +20 -32
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +5 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +25 -18
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +12 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +13 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +21 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +12 -11
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +15 -12
- package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +59 -35
- package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +2 -2
- package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +38 -36
- package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/isObject.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +14 -10
- package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
- package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +22 -27
- package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +6 -6
- package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js +6 -7
- package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isValid.js +6 -5
- package/lib/node_modules/libphonenumber-js/es6/isValid.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +44 -26
- package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/metadata.js +120 -69
- package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js +87 -68
- package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parse.js +58 -40
- package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +32 -36
- package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +44 -26
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +46 -28
- package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/es6/tools/semver-compare.js.map +1 -1
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js +19 -19
- package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +88 -64
- package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +71 -6
- package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Button.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -14
- package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +3 -2
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/formatters/index.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -4
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +2 -2
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +9 -11
- package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/index.js +2 -2
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +3 -2
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +6 -0
- package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +6 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
- package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
- package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js +64 -0
- package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
- package/lib/node_modules/react-hook-form/dist/index.esm.js +67 -44
- package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/lib/node_modules/react-virtuoso/dist/index.js +1246 -1200
- package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
- package/lib/node_modules/ua-parser-js/src/ua-parser.js +85 -71
- package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/styles.css.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.d.ts +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.js +8 -17
- package/lib/utils/getEncryptedData/getEncryptedData.js.map +1 -1
- 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
|
|
6
|
+
function un(t) {
|
|
7
7
|
return () => t;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
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
|
|
15
|
+
function an(t, e) {
|
|
16
16
|
return () => t(e);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function mo(t, e) {
|
|
19
19
|
return (n) => t(e, n);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function We(t) {
|
|
22
22
|
return t !== void 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function po(...t) {
|
|
25
25
|
return () => {
|
|
26
|
-
t.map(
|
|
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
|
|
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
|
|
46
|
+
function Ge(t) {
|
|
47
47
|
t(qt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ot(t) {
|
|
50
50
|
return t(kn);
|
|
51
51
|
}
|
|
52
52
|
function O(t, e) {
|
|
53
|
-
return K(t,
|
|
53
|
+
return K(t, mo(e, we));
|
|
54
54
|
}
|
|
55
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
86
|
+
function Rt(t) {
|
|
87
87
|
return (e) => () => {
|
|
88
88
|
e(t);
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
const n =
|
|
91
|
+
function S(t, ...e) {
|
|
92
|
+
const n = go(...e);
|
|
93
93
|
return (o, r) => {
|
|
94
94
|
switch (o) {
|
|
95
95
|
case qt:
|
|
96
|
-
|
|
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
|
|
103
|
+
function bt(t, e) {
|
|
104
104
|
return (n) => (o) => {
|
|
105
105
|
n(e = t(e, o));
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Dt(t) {
|
|
109
109
|
return (e) => (n) => {
|
|
110
110
|
t > 0 ? t-- : e(n);
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
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
|
|
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
|
|
139
|
-
return (e) => t.reduceRight(
|
|
138
|
+
function go(...t) {
|
|
139
|
+
return (e) => t.reduceRight(ho, e);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
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
|
|
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(
|
|
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:
|
|
202
|
+
id: So(),
|
|
203
203
|
singleton: n
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
const
|
|
207
|
-
function
|
|
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
|
-
|
|
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
|
|
237
|
-
return
|
|
236
|
+
function V(t, e = Fn) {
|
|
237
|
+
return S(t, Y(e));
|
|
238
238
|
}
|
|
239
|
-
function
|
|
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
|
|
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
|
|
250
|
+
const To = {
|
|
251
251
|
0: "debug",
|
|
252
252
|
3: "error",
|
|
253
253
|
1: "log",
|
|
254
254
|
2: "warn"
|
|
255
|
-
},
|
|
255
|
+
}, Co = () => typeof globalThis > "u" ? window : globalThis, Vt = U(
|
|
256
256
|
() => {
|
|
257
|
-
const t =
|
|
257
|
+
const t = w(
|
|
258
258
|
3
|
|
259
259
|
/* ERROR */
|
|
260
260
|
);
|
|
261
261
|
return {
|
|
262
|
-
log:
|
|
262
|
+
log: w((n, o, r = 1) => {
|
|
263
263
|
var i;
|
|
264
|
-
const s = (i =
|
|
265
|
-
r >= s && console[
|
|
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
|
|
280
|
+
return _e(t, e, n).callbackRef;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
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
|
-
(
|
|
300
|
-
const
|
|
301
|
-
let
|
|
302
|
-
for (; !
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
let
|
|
306
|
-
|
|
307
|
-
const v = i ? l ? i.scrollLeft : i.scrollTop :
|
|
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:
|
|
309
|
+
scrollHeight: g,
|
|
310
310
|
scrollTop: Math.max(v, 0),
|
|
311
|
-
viewportHeight:
|
|
311
|
+
viewportHeight: p
|
|
312
312
|
}), s == null || s(
|
|
313
|
-
l ? fn("column-gap", getComputedStyle(
|
|
314
|
-
),
|
|
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
|
|
318
|
+
return _e(a, n, c);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
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),
|
|
330
|
-
if (
|
|
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
|
|
333
|
-
s.length === 0 ||
|
|
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
|
|
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(),
|
|
346
|
-
let
|
|
345
|
+
const a = c.getBoundingClientRect(), m = a.width;
|
|
346
|
+
let x, h;
|
|
347
347
|
if (e) {
|
|
348
|
-
const
|
|
349
|
-
|
|
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
|
|
352
|
-
|
|
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:
|
|
356
|
-
visibleHeight:
|
|
357
|
-
visibleWidth:
|
|
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 } =
|
|
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 =
|
|
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
|
-
|
|
387
|
+
S(
|
|
388
388
|
t,
|
|
389
|
-
E(({ scrollTop:
|
|
389
|
+
E(({ scrollTop: g }) => g)
|
|
390
390
|
),
|
|
391
391
|
e
|
|
392
392
|
), O(
|
|
393
|
-
|
|
393
|
+
S(
|
|
394
394
|
t,
|
|
395
|
-
E(({ scrollHeight:
|
|
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:
|
|
402
|
+
footerHeight: m,
|
|
403
403
|
headerHeight: l,
|
|
404
|
-
horizontalDirection:
|
|
405
|
-
scrollBy:
|
|
404
|
+
horizontalDirection: C,
|
|
405
|
+
scrollBy: h,
|
|
406
406
|
// input
|
|
407
407
|
scrollContainerState: t,
|
|
408
408
|
scrollHeight: i,
|
|
409
|
-
scrollingInProgress:
|
|
409
|
+
scrollingInProgress: I,
|
|
410
410
|
// signals
|
|
411
|
-
scrollTo:
|
|
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
|
|
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 =
|
|
448
|
+
const o = wt(t.r, e, n);
|
|
449
449
|
return o[0] === -1 / 0 ? [t.k, t.v] : o;
|
|
450
450
|
}
|
|
451
|
-
return
|
|
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 ?
|
|
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
|
|
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 =
|
|
463
|
-
return
|
|
462
|
+
const o = wt(t, e)[0];
|
|
463
|
+
return vo(Ve(t, o, n));
|
|
464
464
|
}
|
|
465
|
-
function
|
|
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(
|
|
475
|
+
return ge(st(t, { k: s, l: zn(o), v: i }));
|
|
476
476
|
}
|
|
477
|
-
} else return e < n ? ge(
|
|
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
|
|
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(
|
|
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(
|
|
495
|
+
return An(st(t, { lvl: n - 1 }));
|
|
496
496
|
if (!j(e) && !j(e.r))
|
|
497
|
-
return
|
|
498
|
-
l:
|
|
497
|
+
return st(e.r, {
|
|
498
|
+
l: st(e, { r: e.r.l }),
|
|
499
499
|
lvl: n,
|
|
500
|
-
r:
|
|
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
|
|
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
|
|
512
|
-
l:
|
|
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:
|
|
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
|
|
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(
|
|
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
|
|
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 ?
|
|
549
|
+
return !j(e) && e.lvl === t.lvl ? st(e, { r: st(t, { l: e.r }) }) : t;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
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 ?
|
|
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
|
|
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
|
|
565
|
-
() => ({ recalcInProgress:
|
|
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
|
|
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
|
|
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
|
|
600
|
+
function $e({ index: t }, e) {
|
|
601
601
|
return e === t ? 0 : e < t ? -1 : 1;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Ro() {
|
|
604
604
|
return {
|
|
605
605
|
groupIndices: [],
|
|
606
|
-
groupOffsetTree:
|
|
606
|
+
groupOffsetTree: jt(),
|
|
607
607
|
lastIndex: 0,
|
|
608
608
|
lastOffset: 0,
|
|
609
609
|
lastSize: 0,
|
|
610
610
|
offsetTree: [],
|
|
611
|
-
sizeTree:
|
|
611
|
+
sizeTree: jt()
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
function
|
|
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(
|
|
623
|
+
if (l.some(Lo(o)))
|
|
624
624
|
continue;
|
|
625
625
|
let c = false, a = false;
|
|
626
|
-
for (const { end:
|
|
627
|
-
c ? (r >=
|
|
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
|
|
632
|
+
function Ho(t) {
|
|
633
633
|
return typeof t.groupIndex < "u";
|
|
634
634
|
}
|
|
635
|
-
function
|
|
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,
|
|
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 (
|
|
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
|
|
662
|
-
return o > 0 && (e = Math.max(e, Wn(t, o,
|
|
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
|
|
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
|
|
670
|
-
i = n.reduce((
|
|
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] =
|
|
672
|
+
[i, l] = bo(i, e);
|
|
673
673
|
if (i === s)
|
|
674
674
|
return t;
|
|
675
|
-
const { lastIndex: c, lastOffset: a, lastSize:
|
|
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((
|
|
678
|
+
groupOffsetTree: n.reduce((h, I) => pt(h, I, ie(I, x, r)), jt()),
|
|
679
679
|
lastIndex: c,
|
|
680
680
|
lastOffset: a,
|
|
681
|
-
lastSize:
|
|
682
|
-
offsetTree:
|
|
681
|
+
lastSize: m,
|
|
682
|
+
offsetTree: x,
|
|
683
683
|
sizeTree: i
|
|
684
684
|
};
|
|
685
685
|
}
|
|
686
|
-
function
|
|
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
|
|
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,
|
|
702
|
-
const
|
|
703
|
-
s =
|
|
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:
|
|
707
|
-
const
|
|
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:
|
|
711
|
-
size:
|
|
712
|
-
}), s = a, l =
|
|
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
|
|
721
|
+
function Oo(t) {
|
|
722
722
|
return { index: t.index, value: t };
|
|
723
723
|
}
|
|
724
|
-
function
|
|
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
|
|
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 =
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
),
|
|
737
|
-
|
|
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
|
-
|
|
740
|
-
|
|
739
|
+
Y(),
|
|
740
|
+
bt((f, d) => ({ current: d, prev: f.current }), {
|
|
741
741
|
current: [],
|
|
742
742
|
prev: []
|
|
743
743
|
}),
|
|
744
|
-
E(({ prev:
|
|
744
|
+
E(({ prev: f }) => f)
|
|
745
745
|
),
|
|
746
746
|
[]
|
|
747
747
|
);
|
|
748
748
|
O(
|
|
749
|
-
|
|
749
|
+
S(
|
|
750
750
|
c,
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
E(([
|
|
754
|
-
const
|
|
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
|
-
...
|
|
757
|
-
groupIndices:
|
|
758
|
-
groupOffsetTree:
|
|
756
|
+
...d,
|
|
757
|
+
groupIndices: f,
|
|
758
|
+
groupOffsetTree: B
|
|
759
759
|
};
|
|
760
760
|
})
|
|
761
761
|
),
|
|
762
762
|
v
|
|
763
763
|
), O(
|
|
764
|
-
|
|
764
|
+
S(
|
|
765
765
|
o,
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
E(([
|
|
766
|
+
N(v),
|
|
767
|
+
A(([f, { lastIndex: d }]) => f < d),
|
|
768
|
+
E(([f, { lastIndex: d, lastSize: y }]) => [
|
|
769
769
|
{
|
|
770
|
-
endIndex:
|
|
771
|
-
size:
|
|
772
|
-
startIndex:
|
|
770
|
+
endIndex: d,
|
|
771
|
+
size: y,
|
|
772
|
+
startIndex: f
|
|
773
773
|
}
|
|
774
774
|
])
|
|
775
775
|
),
|
|
776
776
|
n
|
|
777
|
-
), O(a,
|
|
778
|
-
const
|
|
779
|
-
|
|
777
|
+
), O(a, m);
|
|
778
|
+
const p = ct(
|
|
779
|
+
S(
|
|
780
780
|
a,
|
|
781
|
-
E((
|
|
781
|
+
E((f) => f === void 0)
|
|
782
782
|
),
|
|
783
783
|
true
|
|
784
784
|
);
|
|
785
785
|
O(
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
E((
|
|
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
|
-
|
|
794
|
+
S(
|
|
795
795
|
n,
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
({ sizes:
|
|
799
|
-
changed:
|
|
800
|
-
sizes:
|
|
796
|
+
N(v),
|
|
797
|
+
bt(
|
|
798
|
+
({ sizes: f }, [d, y]) => ({
|
|
799
|
+
changed: y !== f,
|
|
800
|
+
sizes: y
|
|
801
801
|
}),
|
|
802
|
-
{ changed: false, sizes:
|
|
802
|
+
{ changed: false, sizes: C }
|
|
803
803
|
),
|
|
804
|
-
E((
|
|
804
|
+
E((f) => f.changed)
|
|
805
805
|
)
|
|
806
806
|
);
|
|
807
807
|
K(
|
|
808
|
-
|
|
808
|
+
S(
|
|
809
809
|
l,
|
|
810
|
-
|
|
811
|
-
(
|
|
810
|
+
bt(
|
|
811
|
+
(f, d) => ({ diff: f.prev - d, prev: d }),
|
|
812
812
|
{ diff: 0, prev: 0 }
|
|
813
813
|
),
|
|
814
|
-
E((
|
|
814
|
+
E((f) => f.diff)
|
|
815
815
|
),
|
|
816
|
-
(
|
|
817
|
-
const { groupIndices:
|
|
818
|
-
if (
|
|
819
|
-
G(e, true), G(s,
|
|
820
|
-
else if (
|
|
821
|
-
const
|
|
822
|
-
|
|
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(
|
|
826
|
-
|
|
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
|
-
|
|
834
|
+
S(
|
|
835
835
|
s,
|
|
836
|
-
|
|
837
|
-
E(([
|
|
838
|
-
const
|
|
839
|
-
if (
|
|
840
|
-
const L = re(
|
|
841
|
-
let
|
|
842
|
-
for (;
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
endIndex:
|
|
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:
|
|
848
|
-
}),
|
|
849
|
-
endIndex:
|
|
850
|
-
size:
|
|
851
|
-
startIndex:
|
|
852
|
-
}),
|
|
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(
|
|
855
|
-
return
|
|
856
|
-
(
|
|
857
|
-
let dt =
|
|
858
|
-
return
|
|
859
|
-
...
|
|
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:
|
|
862
|
-
size:
|
|
863
|
-
startIndex:
|
|
861
|
+
endIndex: q + f - 1,
|
|
862
|
+
size: F.prevSize,
|
|
863
|
+
startIndex: F.prevIndex
|
|
864
864
|
}
|
|
865
865
|
]), {
|
|
866
|
-
prevIndex:
|
|
866
|
+
prevIndex: q + f,
|
|
867
867
|
prevSize: it,
|
|
868
868
|
ranges: dt
|
|
869
869
|
};
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
|
-
prevIndex:
|
|
872
|
+
prevIndex: f,
|
|
873
873
|
prevSize: 0,
|
|
874
|
-
ranges:
|
|
874
|
+
ranges: B
|
|
875
875
|
}
|
|
876
876
|
).ranges;
|
|
877
877
|
}
|
|
878
|
-
return Gt(
|
|
879
|
-
(L, { k:
|
|
880
|
-
prevIndex:
|
|
881
|
-
prevSize:
|
|
882
|
-
ranges: [...L.ranges, { endIndex:
|
|
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:
|
|
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
|
|
895
|
-
|
|
894
|
+
const b = ht(
|
|
895
|
+
S(
|
|
896
896
|
i,
|
|
897
|
-
|
|
898
|
-
E(([
|
|
899
|
-
const
|
|
900
|
-
return ie(
|
|
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
|
-
|
|
905
|
+
S(
|
|
906
906
|
i,
|
|
907
|
-
|
|
908
|
-
E(([
|
|
909
|
-
if (
|
|
910
|
-
if (j(
|
|
911
|
-
return
|
|
912
|
-
let
|
|
913
|
-
const L =
|
|
914
|
-
let
|
|
915
|
-
for (;
|
|
916
|
-
J = L[
|
|
917
|
-
const
|
|
918
|
-
|
|
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 (
|
|
921
|
-
const
|
|
922
|
-
|
|
923
|
-
const
|
|
924
|
-
|
|
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
|
-
...
|
|
928
|
-
sizeTree:
|
|
929
|
-
...
|
|
927
|
+
...d,
|
|
928
|
+
sizeTree: k,
|
|
929
|
+
...Ae(d.offsetTree, 0, k, y)
|
|
930
930
|
};
|
|
931
931
|
} else {
|
|
932
|
-
const
|
|
932
|
+
const k = Gt(d.sizeTree).reduce((L, { k: z, v: _ }) => pt(L, Math.max(0, z + f), _), jt());
|
|
933
933
|
return {
|
|
934
|
-
...
|
|
935
|
-
sizeTree:
|
|
936
|
-
...
|
|
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:
|
|
946
|
-
defaultItemSize:
|
|
945
|
+
data: h,
|
|
946
|
+
defaultItemSize: m,
|
|
947
947
|
firstItemIndex: l,
|
|
948
948
|
fixedItemSize: a,
|
|
949
|
-
gap:
|
|
949
|
+
gap: I,
|
|
950
950
|
groupIndices: c,
|
|
951
|
-
itemSize:
|
|
951
|
+
itemSize: x,
|
|
952
952
|
listRefresh: u,
|
|
953
953
|
shiftWith: i,
|
|
954
|
-
shiftWithOffset:
|
|
954
|
+
shiftWithOffset: b,
|
|
955
955
|
sizeRanges: n,
|
|
956
956
|
// output
|
|
957
957
|
sizes: v,
|
|
958
958
|
statefulTotalCount: r,
|
|
959
959
|
totalCount: o,
|
|
960
|
-
trackItemSizes:
|
|
960
|
+
trackItemSizes: p,
|
|
961
961
|
unshiftWith: s
|
|
962
962
|
};
|
|
963
963
|
},
|
|
964
|
-
X(Vt,
|
|
964
|
+
X(Vt, De),
|
|
965
965
|
{ singleton: true }
|
|
966
966
|
);
|
|
967
|
-
function
|
|
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(
|
|
978
|
+
const s = $(), i = $(), l = ht(S(s, E(Vo)));
|
|
979
979
|
return O(
|
|
980
|
-
|
|
980
|
+
S(
|
|
981
981
|
l,
|
|
982
982
|
E((c) => c.totalCount)
|
|
983
983
|
),
|
|
984
984
|
n
|
|
985
985
|
), O(
|
|
986
|
-
|
|
986
|
+
S(
|
|
987
987
|
l,
|
|
988
988
|
E((c) => c.groupIndices)
|
|
989
989
|
),
|
|
990
990
|
t
|
|
991
991
|
), O(
|
|
992
|
-
|
|
992
|
+
S(
|
|
993
993
|
rt(r, e, o),
|
|
994
|
-
|
|
995
|
-
E(([c, a,
|
|
996
|
-
|
|
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 =
|
|
1006
|
-
|
|
1005
|
+
const e = w(false), n = ht(
|
|
1006
|
+
S(
|
|
1007
1007
|
e,
|
|
1008
|
-
|
|
1009
|
-
|
|
1008
|
+
A((o) => o),
|
|
1009
|
+
Y()
|
|
1010
1010
|
)
|
|
1011
1011
|
);
|
|
1012
1012
|
return K(e, (o) => {
|
|
1013
|
-
o &&
|
|
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
|
-
),
|
|
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 || !
|
|
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:
|
|
1034
|
-
viewportHeight:
|
|
1033
|
+
smoothScrollTargetReached: m,
|
|
1034
|
+
viewportHeight: x
|
|
1035
1035
|
},
|
|
1036
|
-
{ log:
|
|
1036
|
+
{ log: h }
|
|
1037
1037
|
]) => {
|
|
1038
|
-
const
|
|
1039
|
-
let
|
|
1038
|
+
const I = $(), C = $(), v = w(0);
|
|
1039
|
+
let g = null, p = null, u = null;
|
|
1040
1040
|
function T() {
|
|
1041
|
-
|
|
1041
|
+
g && (g(), g = null), u && (u(), u = null), p && (clearTimeout(p), p = null), G(c, false);
|
|
1042
1042
|
}
|
|
1043
1043
|
return O(
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1044
|
+
S(
|
|
1045
|
+
I,
|
|
1046
|
+
N(n, x, o, v, l, i, h),
|
|
1047
|
+
N(t, s, r),
|
|
1048
1048
|
E(
|
|
1049
1049
|
([
|
|
1050
|
-
[
|
|
1051
|
-
|
|
1050
|
+
[b, f, d, y, B, k, L, z],
|
|
1051
|
+
_,
|
|
1052
1052
|
J,
|
|
1053
1053
|
nt
|
|
1054
1054
|
]) => {
|
|
1055
|
-
const
|
|
1056
|
-
let ut = ie(ft,
|
|
1057
|
-
|
|
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 ? (
|
|
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
|
-
}),
|
|
1065
|
+
}), g = Tt(m, () => {
|
|
1066
1066
|
At(xt);
|
|
1067
1067
|
});
|
|
1068
1068
|
} else
|
|
1069
|
-
|
|
1070
|
-
return
|
|
1069
|
+
g = Tt(S(e, Ao(150)), At);
|
|
1070
|
+
return p = setTimeout(() => {
|
|
1071
1071
|
T();
|
|
1072
|
-
}, 1200), G(c, true),
|
|
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:
|
|
1079
|
-
scrollToIndex:
|
|
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
|
|
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
|
|
1096
|
+
function Ue(t, e) {
|
|
1097
1097
|
t == 0 ? e() : requestAnimationFrame(() => {
|
|
1098
|
-
|
|
1098
|
+
Ue(t - 1, e);
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
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 =
|
|
1107
|
+
const l = w(true), c = w(0), a = w(true);
|
|
1108
1108
|
return O(
|
|
1109
|
-
|
|
1109
|
+
S(
|
|
1110
1110
|
i,
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1111
|
+
N(c),
|
|
1112
|
+
A(([m, x]) => !!x),
|
|
1113
|
+
Rt(false)
|
|
1114
1114
|
),
|
|
1115
1115
|
l
|
|
1116
1116
|
), O(
|
|
1117
|
-
|
|
1117
|
+
S(
|
|
1118
1118
|
i,
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1119
|
+
N(c),
|
|
1120
|
+
A(([m, x]) => !!x),
|
|
1121
|
+
Rt(false)
|
|
1122
1122
|
),
|
|
1123
1123
|
a
|
|
1124
1124
|
), K(
|
|
1125
|
-
|
|
1125
|
+
S(
|
|
1126
1126
|
rt(e, i),
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
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
|
-
([,
|
|
1132
|
-
|
|
1131
|
+
([, m]) => {
|
|
1132
|
+
Tt(r, () => {
|
|
1133
1133
|
G(a, true);
|
|
1134
|
-
}),
|
|
1135
|
-
|
|
1134
|
+
}), Ue(4, () => {
|
|
1135
|
+
Tt(o, () => {
|
|
1136
1136
|
G(l, true);
|
|
1137
|
-
}), G(s,
|
|
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",
|
|
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
|
-
},
|
|
1162
|
-
const i =
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
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
|
-
),
|
|
1169
|
-
|
|
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
|
-
|
|
1174
|
-
rt(
|
|
1173
|
+
S(
|
|
1174
|
+
rt(V(r), V(x)),
|
|
1175
1175
|
E(([u, T]) => u <= T),
|
|
1176
|
-
|
|
1176
|
+
Y()
|
|
1177
1177
|
),
|
|
1178
1178
|
l
|
|
1179
|
-
), O(
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1182
|
-
rt(o,
|
|
1183
|
-
|
|
1184
|
-
const
|
|
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:
|
|
1187
|
-
viewportHeight:
|
|
1186
|
+
scrollTop: b,
|
|
1187
|
+
viewportHeight: f
|
|
1188
1188
|
};
|
|
1189
|
-
if (
|
|
1190
|
-
let
|
|
1191
|
-
return
|
|
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:
|
|
1193
|
+
atBottomBecause: _,
|
|
1194
1194
|
scrollTopDelta: J,
|
|
1195
1195
|
state: L
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
|
-
let
|
|
1199
|
-
return L.scrollHeight > u.state.scrollHeight ?
|
|
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:
|
|
1201
|
+
notAtBottomBecause: z,
|
|
1202
1202
|
state: L
|
|
1203
1203
|
};
|
|
1204
|
-
},
|
|
1205
|
-
|
|
1204
|
+
}, Wo),
|
|
1205
|
+
Y((u, T) => u && u.atBottom === T.atBottom)
|
|
1206
1206
|
)
|
|
1207
1207
|
), v = ct(
|
|
1208
|
-
|
|
1208
|
+
S(
|
|
1209
1209
|
o,
|
|
1210
|
-
|
|
1211
|
-
(u, { scrollHeight: T, scrollTop:
|
|
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:
|
|
1217
|
+
scrollTop: b
|
|
1218
1218
|
};
|
|
1219
1219
|
{
|
|
1220
|
-
const
|
|
1221
|
-
return u.scrollTop !==
|
|
1220
|
+
const d = T - (b + f) < 1;
|
|
1221
|
+
return u.scrollTop !== b && d ? {
|
|
1222
1222
|
changed: true,
|
|
1223
|
-
jump: u.scrollTop -
|
|
1223
|
+
jump: u.scrollTop - b,
|
|
1224
1224
|
scrollHeight: T,
|
|
1225
|
-
scrollTop:
|
|
1225
|
+
scrollTop: b
|
|
1226
1226
|
} : {
|
|
1227
1227
|
changed: true,
|
|
1228
1228
|
jump: 0,
|
|
1229
1229
|
scrollHeight: T,
|
|
1230
|
-
scrollTop:
|
|
1230
|
+
scrollTop: b
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
1233
|
},
|
|
1234
1234
|
{ changed: false, jump: 0, scrollHeight: 0, scrollTop: 0 }
|
|
1235
1235
|
),
|
|
1236
|
-
|
|
1236
|
+
A((u) => u.changed),
|
|
1237
1237
|
E((u) => u.jump)
|
|
1238
1238
|
),
|
|
1239
1239
|
0
|
|
1240
1240
|
);
|
|
1241
1241
|
O(
|
|
1242
|
-
|
|
1243
|
-
|
|
1242
|
+
S(
|
|
1243
|
+
C,
|
|
1244
1244
|
E((u) => u.atBottom)
|
|
1245
1245
|
),
|
|
1246
1246
|
i
|
|
1247
|
-
), O(
|
|
1248
|
-
const
|
|
1247
|
+
), O(S(i, kt(50)), c);
|
|
1248
|
+
const g = w(te);
|
|
1249
1249
|
O(
|
|
1250
|
-
|
|
1250
|
+
S(
|
|
1251
1251
|
o,
|
|
1252
1252
|
E(({ scrollTop: u }) => u),
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
(u, 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
|
-
|
|
1261
|
-
), O(
|
|
1262
|
-
const
|
|
1260
|
+
g
|
|
1261
|
+
), O(S(o, kt(50), Rt(Mo)), g);
|
|
1262
|
+
const p = w(0);
|
|
1263
1263
|
return O(
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1264
|
+
S(
|
|
1265
|
+
h,
|
|
1266
|
+
A((u) => !u),
|
|
1267
|
+
Rt(0)
|
|
1268
1268
|
),
|
|
1269
|
-
|
|
1269
|
+
p
|
|
1270
1270
|
), O(
|
|
1271
|
-
|
|
1271
|
+
S(
|
|
1272
1272
|
r,
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
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
|
-
|
|
1279
|
+
p
|
|
1280
1280
|
), {
|
|
1281
|
-
atBottomState:
|
|
1281
|
+
atBottomState: C,
|
|
1282
1282
|
atBottomStateChange: c,
|
|
1283
|
-
atBottomThreshold:
|
|
1283
|
+
atBottomThreshold: m,
|
|
1284
1284
|
atTopStateChange: a,
|
|
1285
|
-
atTopThreshold:
|
|
1285
|
+
atTopThreshold: x,
|
|
1286
1286
|
isAtBottom: i,
|
|
1287
1287
|
isAtTop: l,
|
|
1288
|
-
isScrolling:
|
|
1288
|
+
isScrolling: h,
|
|
1289
1289
|
lastJumpDueToItemResize: v,
|
|
1290
|
-
scrollDirection:
|
|
1291
|
-
scrollVelocity:
|
|
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
|
|
1301
|
+
const je = U(
|
|
1302
1302
|
([{ deviation: t, fixedHeaderHeight: e, headerHeight: n, scrollTop: o, viewportHeight: r }]) => {
|
|
1303
|
-
const s = $(), i =
|
|
1304
|
-
|
|
1303
|
+
const s = $(), i = w(0), l = w(0), c = w(0), a = ct(
|
|
1304
|
+
S(
|
|
1305
1305
|
rt(
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
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
|
-
|
|
1319
|
+
x,
|
|
1320
|
+
h,
|
|
1321
|
+
[I, C],
|
|
1322
|
+
v,
|
|
1323
|
+
g,
|
|
1324
|
+
p,
|
|
1325
1325
|
u,
|
|
1326
1326
|
T
|
|
1327
1327
|
]) => {
|
|
1328
|
-
const
|
|
1329
|
-
let
|
|
1330
|
-
const
|
|
1331
|
-
return
|
|
1332
|
-
Math.max(
|
|
1333
|
-
|
|
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
|
-
|
|
1338
|
-
|
|
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
|
|
1355
|
+
function _o(t, e, n) {
|
|
1356
1356
|
if (Re(e)) {
|
|
1357
1357
|
const o = Gn(t, e);
|
|
1358
1358
|
return [
|
|
1359
|
-
{ index:
|
|
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,
|
|
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
|
-
|
|
1382
|
+
m = v.offset + v.size;
|
|
1383
1383
|
}
|
|
1384
|
-
const
|
|
1384
|
+
const x = n - i, h = l + x * c + (x - 1) * o, I = a, C = h - m;
|
|
1385
1385
|
return {
|
|
1386
|
-
bottom:
|
|
1386
|
+
bottom: m,
|
|
1387
1387
|
firstItemIndex: s,
|
|
1388
1388
|
items: Sn(t, r, s),
|
|
1389
|
-
offsetBottom:
|
|
1389
|
+
offsetBottom: C,
|
|
1390
1390
|
offsetTop: a,
|
|
1391
|
-
top:
|
|
1391
|
+
top: I,
|
|
1392
1392
|
topItems: Sn(e, r, s),
|
|
1393
|
-
topListHeight: e.reduce((v,
|
|
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
|
|
1401
|
-
if (
|
|
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 =
|
|
1406
|
-
data: s[
|
|
1407
|
-
index:
|
|
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
|
|
1423
|
-
a.index === l.start ?
|
|
1422
|
+
let m;
|
|
1423
|
+
a.index === l.start ? m = {
|
|
1424
1424
|
index: c,
|
|
1425
1425
|
type: "group"
|
|
1426
|
-
} :
|
|
1426
|
+
} : m = {
|
|
1427
1427
|
groupIndex: c,
|
|
1428
1428
|
index: a.index - (c + 1) + n
|
|
1429
1429
|
}, s.push({
|
|
1430
|
-
...
|
|
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
|
|
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:
|
|
1445
|
-
{ topListHeight:
|
|
1446
|
-
|
|
1447
|
-
{ didMount:
|
|
1448
|
-
{ recalcInProgress:
|
|
1444
|
+
{ initialTopMostItemIndex: a, scrolledToInitialItem: m },
|
|
1445
|
+
{ topListHeight: x },
|
|
1446
|
+
h,
|
|
1447
|
+
{ didMount: I },
|
|
1448
|
+
{ recalcInProgress: C }
|
|
1449
1449
|
]) => {
|
|
1450
|
-
const v =
|
|
1450
|
+
const v = w([]), g = w(0), p = $();
|
|
1451
1451
|
O(s.topItemsIndexes, v);
|
|
1452
1452
|
const u = ct(
|
|
1453
|
-
|
|
1453
|
+
S(
|
|
1454
1454
|
rt(
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
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
|
-
|
|
1468
|
-
const L =
|
|
1469
|
-
return
|
|
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
|
-
[
|
|
1475
|
+
[d, y],
|
|
1476
|
+
B,
|
|
1476
1477
|
k,
|
|
1477
|
-
F,
|
|
1478
1478
|
L,
|
|
1479
|
-
|
|
1480
|
-
|
|
1479
|
+
z,
|
|
1480
|
+
_,
|
|
1481
1481
|
J,
|
|
1482
1482
|
nt,
|
|
1483
|
-
|
|
1483
|
+
F
|
|
1484
1484
|
]) => {
|
|
1485
|
-
const
|
|
1486
|
-
if (
|
|
1487
|
-
return { ...Be, totalCount:
|
|
1488
|
-
if (
|
|
1489
|
-
return St === 0 ? { ...Be, totalCount:
|
|
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
|
-
|
|
1492
|
+
_o(Ke(L, B), q, F),
|
|
1493
1493
|
[],
|
|
1494
|
-
|
|
1494
|
+
B,
|
|
1495
1495
|
nt,
|
|
1496
|
-
|
|
1496
|
+
q,
|
|
1497
1497
|
J
|
|
1498
1498
|
);
|
|
1499
1499
|
const ft = [];
|
|
1500
|
-
if (
|
|
1501
|
-
const Mt =
|
|
1500
|
+
if (_.length > 0) {
|
|
1501
|
+
const Mt = _[0], yt = _[_.length - 1];
|
|
1502
1502
|
let Bt = 0;
|
|
1503
|
-
for (const
|
|
1504
|
-
const
|
|
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:
|
|
1506
|
+
ft.push({ data: F == null ? void 0 : F[tt], index: tt, offset: Bt, size: D }), Bt += D;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
if (!
|
|
1510
|
-
return Ie([], ft,
|
|
1511
|
-
const 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 =
|
|
1515
|
-
for (const
|
|
1516
|
-
const Bt =
|
|
1517
|
-
let
|
|
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 <
|
|
1520
|
-
|
|
1521
|
-
const tt =
|
|
1522
|
-
|
|
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
|
-
|
|
1525
|
-
const lt = Math.min(
|
|
1526
|
-
for (let tt =
|
|
1527
|
-
Mt.push({ data:
|
|
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,
|
|
1530
|
+
return Ie(Xt, ft, B, nt, q, J);
|
|
1531
1531
|
}
|
|
1532
1532
|
),
|
|
1533
1533
|
//@ts-expect-error filter needs to be fixed
|
|
1534
|
-
|
|
1535
|
-
|
|
1534
|
+
A((d) => d !== null),
|
|
1535
|
+
Y()
|
|
1536
1536
|
),
|
|
1537
1537
|
Be
|
|
1538
1538
|
);
|
|
1539
1539
|
O(
|
|
1540
|
-
|
|
1540
|
+
S(
|
|
1541
1541
|
t,
|
|
1542
|
-
|
|
1543
|
-
E((
|
|
1542
|
+
A(We),
|
|
1543
|
+
E((d) => d == null ? void 0 : d.length)
|
|
1544
1544
|
),
|
|
1545
1545
|
r
|
|
1546
1546
|
), O(
|
|
1547
|
-
|
|
1547
|
+
S(
|
|
1548
1548
|
u,
|
|
1549
|
-
E((
|
|
1549
|
+
E((d) => d.topListHeight)
|
|
1550
1550
|
),
|
|
1551
|
-
|
|
1552
|
-
), O(
|
|
1553
|
-
|
|
1551
|
+
x
|
|
1552
|
+
), O(x, l), O(
|
|
1553
|
+
S(
|
|
1554
1554
|
u,
|
|
1555
|
-
E((
|
|
1555
|
+
E((d) => [d.top, d.bottom])
|
|
1556
1556
|
),
|
|
1557
1557
|
i
|
|
1558
1558
|
), O(
|
|
1559
|
-
|
|
1559
|
+
S(
|
|
1560
1560
|
u,
|
|
1561
|
-
E((
|
|
1561
|
+
E((d) => d.items)
|
|
1562
1562
|
),
|
|
1563
|
-
|
|
1563
|
+
p
|
|
1564
1564
|
);
|
|
1565
1565
|
const T = ht(
|
|
1566
|
-
|
|
1566
|
+
S(
|
|
1567
1567
|
u,
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
E(([,
|
|
1572
|
-
|
|
1573
|
-
E(([
|
|
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
|
-
),
|
|
1576
|
-
|
|
1575
|
+
), b = ht(
|
|
1576
|
+
S(
|
|
1577
1577
|
u,
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
E(({ items:
|
|
1581
|
-
|
|
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
|
-
),
|
|
1584
|
-
|
|
1583
|
+
), f = ht(
|
|
1584
|
+
S(
|
|
1585
1585
|
u,
|
|
1586
|
-
|
|
1587
|
-
E(({ items:
|
|
1588
|
-
let
|
|
1589
|
-
for (;
|
|
1590
|
-
|
|
1591
|
-
for (;
|
|
1592
|
-
|
|
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:
|
|
1595
|
-
startIndex:
|
|
1594
|
+
endIndex: d[B].index,
|
|
1595
|
+
startIndex: d[y].index
|
|
1596
1596
|
};
|
|
1597
1597
|
}),
|
|
1598
|
-
|
|
1598
|
+
Y(Mn)
|
|
1599
1599
|
)
|
|
1600
1600
|
);
|
|
1601
|
-
return { endReached: T, initialItemCount:
|
|
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
|
-
|
|
1606
|
+
je,
|
|
1607
1607
|
ue,
|
|
1608
1608
|
ce,
|
|
1609
1609
|
ae,
|
|
1610
1610
|
Pt,
|
|
1611
|
-
|
|
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
|
-
|
|
1617
|
+
S(
|
|
1618
1618
|
rt(n, t, o, e, r),
|
|
1619
|
-
E(([l, c, a,
|
|
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(
|
|
1623
|
+
return O(V(i), s), { totalListHeight: i, totalListHeightChanged: s };
|
|
1624
1624
|
},
|
|
1625
|
-
X(at,
|
|
1625
|
+
X(at, $t),
|
|
1626
1626
|
{ singleton: true }
|
|
1627
|
-
),
|
|
1627
|
+
), No = U(
|
|
1628
1628
|
([{ viewportHeight: t }, { totalListHeight: e }]) => {
|
|
1629
|
-
const n =
|
|
1630
|
-
|
|
1629
|
+
const n = w(false), o = ct(
|
|
1630
|
+
S(
|
|
1631
1631
|
rt(n, t, e),
|
|
1632
|
-
|
|
1632
|
+
A(([r]) => r),
|
|
1633
1633
|
E(([, r, s]) => Math.max(0, r - s)),
|
|
1634
|
-
|
|
1635
|
-
|
|
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
|
|
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:
|
|
1651
|
-
{ scrollToIndex:
|
|
1652
|
-
{ scrolledToInitialItem:
|
|
1653
|
-
{ didMount:
|
|
1654
|
-
{ log:
|
|
1655
|
-
{ scrollingInProgress:
|
|
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
|
|
1658
|
-
let
|
|
1659
|
-
function
|
|
1660
|
-
G(
|
|
1707
|
+
const C = w(false), v = $();
|
|
1708
|
+
let g = null;
|
|
1709
|
+
function p(f) {
|
|
1710
|
+
G(i, {
|
|
1661
1711
|
align: "end",
|
|
1662
|
-
behavior:
|
|
1712
|
+
behavior: f,
|
|
1663
1713
|
index: "LAST"
|
|
1664
1714
|
});
|
|
1665
1715
|
}
|
|
1666
1716
|
K(
|
|
1667
|
-
|
|
1668
|
-
rt(
|
|
1669
|
-
|
|
1670
|
-
E(([[
|
|
1671
|
-
let
|
|
1672
|
-
return
|
|
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
|
-
|
|
1724
|
+
A(({ shouldFollow: f }) => f)
|
|
1675
1725
|
),
|
|
1676
|
-
({ followOutputBehavior:
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
}) :
|
|
1680
|
-
|
|
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
|
|
1685
|
-
const d =
|
|
1686
|
-
|
|
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
|
-
|
|
1691
|
-
|
|
1692
|
-
rt(
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
({ value:
|
|
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
|
-
|
|
1699
|
-
|
|
1748
|
+
A(({ refreshed: f }) => f),
|
|
1749
|
+
N(C, e)
|
|
1700
1750
|
),
|
|
1701
|
-
([,
|
|
1702
|
-
|
|
1751
|
+
([, f]) => {
|
|
1752
|
+
ot(l) && u(f !== false);
|
|
1703
1753
|
}
|
|
1704
|
-
), K(
|
|
1705
|
-
|
|
1706
|
-
}), K(rt(
|
|
1707
|
-
|
|
1708
|
-
})
|
|
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(
|
|
1711
|
-
|
|
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
|
-
|
|
1802
|
+
S(
|
|
1714
1803
|
l,
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
E(([[, c], a,
|
|
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,
|
|
1811
|
+
X(Et, ue, $t, Pt),
|
|
1723
1812
|
{ singleton: true }
|
|
1724
|
-
),
|
|
1813
|
+
), jo = U(
|
|
1725
1814
|
([{ didMount: t }, { scrollTo: e }, { listState: n }]) => {
|
|
1726
|
-
const o =
|
|
1815
|
+
const o = w(0);
|
|
1727
1816
|
return K(
|
|
1728
|
-
|
|
1817
|
+
S(
|
|
1729
1818
|
t,
|
|
1730
|
-
|
|
1731
|
-
|
|
1819
|
+
N(o),
|
|
1820
|
+
A(([, r]) => r !== 0),
|
|
1732
1821
|
E(([, r]) => ({ top: r }))
|
|
1733
1822
|
),
|
|
1734
1823
|
(r) => {
|
|
1735
|
-
|
|
1736
|
-
|
|
1824
|
+
Tt(
|
|
1825
|
+
S(
|
|
1737
1826
|
n,
|
|
1738
|
-
|
|
1739
|
-
|
|
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,
|
|
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
|
-
),
|
|
1843
|
+
), Yn = U(
|
|
1801
1844
|
([{ scrollVelocity: t }]) => {
|
|
1802
|
-
const e =
|
|
1845
|
+
const e = w(false), n = $(), o = w(false);
|
|
1803
1846
|
return O(
|
|
1804
|
-
|
|
1847
|
+
S(
|
|
1805
1848
|
t,
|
|
1806
|
-
|
|
1807
|
-
|
|
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
|
-
|
|
1860
|
+
Y()
|
|
1818
1861
|
),
|
|
1819
1862
|
e
|
|
1820
1863
|
), K(
|
|
1821
|
-
|
|
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
|
-
),
|
|
1830
|
-
const n = $(), o = $(), r = $(), s =
|
|
1872
|
+
), qe = U(([{ scrollContainerState: t, scrollTo: e }]) => {
|
|
1873
|
+
const n = $(), o = $(), r = $(), s = w(false), i = w(void 0);
|
|
1831
1874
|
return O(
|
|
1832
|
-
|
|
1875
|
+
S(
|
|
1833
1876
|
rt(n, o),
|
|
1834
|
-
E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop:
|
|
1877
|
+
E(([{ scrollHeight: l, scrollTop: c, viewportHeight: a }, { offsetTop: m }]) => ({
|
|
1835
1878
|
scrollHeight: l,
|
|
1836
|
-
scrollTop: Math.max(0, c -
|
|
1879
|
+
scrollTop: Math.max(0, c - m),
|
|
1837
1880
|
viewportHeight: a
|
|
1838
1881
|
}))
|
|
1839
1882
|
),
|
|
1840
1883
|
t
|
|
1841
1884
|
), O(
|
|
1842
|
-
|
|
1885
|
+
S(
|
|
1843
1886
|
e,
|
|
1844
|
-
|
|
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)),
|
|
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 = $(),
|
|
1870
|
-
return O(l,
|
|
1871
|
-
|
|
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
|
-
|
|
1916
|
+
N(e, o, i, x, h, n)
|
|
1874
1917
|
),
|
|
1875
|
-
([
|
|
1876
|
-
const
|
|
1877
|
-
|
|
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(
|
|
1880
|
-
|
|
1922
|
+
), O(S(m, A(We), E(Yo)), r), O(
|
|
1923
|
+
S(
|
|
1881
1924
|
s,
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
E(([,
|
|
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:
|
|
1933
|
+
restoreStateFrom: m
|
|
1891
1934
|
};
|
|
1892
1935
|
},
|
|
1893
|
-
X(Et, at, ue, Pt,
|
|
1936
|
+
X(Et, at, ue, Pt, qe)
|
|
1894
1937
|
);
|
|
1895
|
-
function
|
|
1938
|
+
function Yo(t) {
|
|
1896
1939
|
return { align: "start", index: 0, offset: t.scrollTop };
|
|
1897
1940
|
}
|
|
1898
|
-
const
|
|
1899
|
-
const e =
|
|
1941
|
+
const Zo = U(([{ topItemsIndexes: t }]) => {
|
|
1942
|
+
const e = w(0);
|
|
1900
1943
|
return O(
|
|
1901
|
-
|
|
1944
|
+
S(
|
|
1902
1945
|
e,
|
|
1903
|
-
|
|
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(
|
|
1909
|
-
function
|
|
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
|
|
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:
|
|
1919
|
-
{ log:
|
|
1920
|
-
{ recalcInProgress:
|
|
1961
|
+
{ beforeUnshiftWith: a, gap: m, shiftWithOffset: x, sizes: h },
|
|
1962
|
+
{ log: I },
|
|
1963
|
+
{ recalcInProgress: C }
|
|
1921
1964
|
]) => {
|
|
1922
1965
|
const v = ht(
|
|
1923
|
-
|
|
1966
|
+
S(
|
|
1924
1967
|
c,
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
([,
|
|
1928
|
-
const
|
|
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 ===
|
|
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
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
E(([[
|
|
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
|
|
1941
|
-
|
|
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(
|
|
1944
|
-
T &&
|
|
1986
|
+
return K(S(v, N(t, s)), ([p, u, T]) => {
|
|
1987
|
+
T && Xo() ? G(t, u - p) : g(-p);
|
|
1945
1988
|
}), K(
|
|
1946
|
-
|
|
1947
|
-
rt(ct(s, false), t,
|
|
1948
|
-
|
|
1949
|
-
E(([
|
|
1950
|
-
|
|
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
|
-
|
|
1995
|
+
g
|
|
1953
1996
|
), O(
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
E((
|
|
1997
|
+
S(
|
|
1998
|
+
x,
|
|
1999
|
+
E((p) => ({ top: -p }))
|
|
1957
2000
|
),
|
|
1958
2001
|
e
|
|
1959
2002
|
), K(
|
|
1960
|
-
|
|
2003
|
+
S(
|
|
1961
2004
|
a,
|
|
1962
|
-
|
|
1963
|
-
E(([
|
|
1964
|
-
function
|
|
1965
|
-
return
|
|
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
|
|
2011
|
+
return d(p);
|
|
1969
2012
|
{
|
|
1970
|
-
let
|
|
1971
|
-
const
|
|
1972
|
-
let
|
|
1973
|
-
for (;
|
|
1974
|
-
|
|
1975
|
-
let
|
|
1976
|
-
|
|
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
|
|
2021
|
+
return y;
|
|
1979
2022
|
}
|
|
1980
2023
|
})
|
|
1981
2024
|
),
|
|
1982
|
-
(
|
|
1983
|
-
G(t,
|
|
1984
|
-
G(e, { top:
|
|
1985
|
-
G(t, 0), G(
|
|
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,
|
|
1992
|
-
),
|
|
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
|
-
|
|
2064
|
+
Pt,
|
|
2065
|
+
Yn,
|
|
2066
|
+
Kn,
|
|
2067
|
+
jo,
|
|
2068
|
+
No,
|
|
2069
|
+
qe,
|
|
2070
|
+
qn,
|
|
2071
|
+
Vt,
|
|
2072
|
+
jn
|
|
2027
2073
|
)
|
|
2028
|
-
),
|
|
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:
|
|
2042
|
-
trackItemSizes:
|
|
2087
|
+
totalCount: m,
|
|
2088
|
+
trackItemSizes: x
|
|
2043
2089
|
},
|
|
2044
|
-
{ initialItemFinalLocationReached:
|
|
2090
|
+
{ initialItemFinalLocationReached: h, initialTopMostItemIndex: I, scrolledToInitialItem: C },
|
|
2045
2091
|
v,
|
|
2046
|
-
|
|
2092
|
+
g,
|
|
2093
|
+
p,
|
|
2094
|
+
{ listState: u, topItemsIndexes: T, ...b },
|
|
2095
|
+
{ scrollToIndex: f },
|
|
2047
2096
|
d,
|
|
2048
|
-
{
|
|
2049
|
-
{
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
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:
|
|
2067
|
-
initialItemFinalLocationReached:
|
|
2068
|
-
initialTopMostItemIndex:
|
|
2069
|
-
scrolledToInitialItem:
|
|
2112
|
+
groupCounts: B,
|
|
2113
|
+
initialItemFinalLocationReached: h,
|
|
2114
|
+
initialTopMostItemIndex: I,
|
|
2115
|
+
scrolledToInitialItem: C,
|
|
2070
2116
|
sizeRanges: l,
|
|
2071
|
-
topItemCount:
|
|
2117
|
+
topItemCount: y,
|
|
2072
2118
|
topItemsIndexes: T,
|
|
2073
2119
|
// input
|
|
2074
|
-
totalCount:
|
|
2075
|
-
...
|
|
2120
|
+
totalCount: m,
|
|
2121
|
+
...p,
|
|
2076
2122
|
groupIndices: s,
|
|
2077
2123
|
itemSize: i,
|
|
2078
2124
|
listState: u,
|
|
2079
|
-
scrollToIndex:
|
|
2125
|
+
scrollToIndex: f,
|
|
2080
2126
|
// output
|
|
2081
2127
|
statefulTotalCount: a,
|
|
2082
|
-
trackItemSizes:
|
|
2128
|
+
trackItemSizes: x,
|
|
2083
2129
|
// exported from stateFlagsSystem
|
|
2084
|
-
...
|
|
2130
|
+
...b,
|
|
2085
2131
|
// the bag of IO from featureGroup1System
|
|
2086
|
-
...
|
|
2132
|
+
...k,
|
|
2087
2133
|
...v,
|
|
2088
2134
|
sizes: c,
|
|
2089
|
-
...
|
|
2135
|
+
...g
|
|
2090
2136
|
}),
|
|
2091
2137
|
X(
|
|
2092
2138
|
Et,
|
|
2093
2139
|
ue,
|
|
2094
2140
|
at,
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2141
|
+
qo,
|
|
2142
|
+
Uo,
|
|
2143
|
+
$t,
|
|
2098
2144
|
ce,
|
|
2099
|
-
|
|
2100
|
-
|
|
2145
|
+
Jo,
|
|
2146
|
+
Zo,
|
|
2101
2147
|
Nn,
|
|
2102
|
-
|
|
2148
|
+
Qo
|
|
2103
2149
|
)
|
|
2104
2150
|
);
|
|
2105
|
-
function
|
|
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
|
|
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(
|
|
2119
|
-
|
|
2164
|
+
function c(p, u) {
|
|
2165
|
+
p.propsReady && G(p.propsReady, false);
|
|
2120
2166
|
for (const T of o) {
|
|
2121
|
-
const
|
|
2122
|
-
G(
|
|
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
|
|
2127
|
-
G(
|
|
2172
|
+
const b = p[e.optional[T]];
|
|
2173
|
+
G(b, u[T]);
|
|
2128
2174
|
}
|
|
2129
|
-
|
|
2175
|
+
p.propsReady && G(p.propsReady, true);
|
|
2130
2176
|
}
|
|
2131
|
-
function a(
|
|
2132
|
-
return s.reduce((u, T) => (u[T] = (
|
|
2133
|
-
const
|
|
2134
|
-
G(
|
|
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
|
|
2138
|
-
return i.reduce((u, T) => (u[T] =
|
|
2183
|
+
function m(p) {
|
|
2184
|
+
return i.reduce((u, T) => (u[T] = Io(p[e.events[T]]), u), {});
|
|
2139
2185
|
}
|
|
2140
|
-
const
|
|
2141
|
-
const { children: T, ...
|
|
2142
|
-
c(
|
|
2143
|
-
})), [
|
|
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
|
|
2146
|
-
|
|
2191
|
+
for (const B of i)
|
|
2192
|
+
B in b && K(d[B], b[B]);
|
|
2147
2193
|
return () => {
|
|
2148
|
-
Object.values(
|
|
2194
|
+
Object.values(d).map(Ge);
|
|
2149
2195
|
};
|
|
2150
|
-
}, [
|
|
2151
|
-
c(
|
|
2152
|
-
}), React__default.useImperativeHandle(u,
|
|
2153
|
-
const
|
|
2154
|
-
return /* @__PURE__ */ jsx(l.Provider, { value:
|
|
2155
|
-
}),
|
|
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[
|
|
2205
|
+
G(u[p], T);
|
|
2160
2206
|
},
|
|
2161
|
-
[u,
|
|
2207
|
+
[u, p]
|
|
2162
2208
|
);
|
|
2163
|
-
},
|
|
2164
|
-
const T = React__default.useContext(l)[
|
|
2165
|
-
(
|
|
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
|
-
|
|
2170
|
-
() =>
|
|
2171
|
-
() =>
|
|
2215
|
+
b,
|
|
2216
|
+
() => ot(T),
|
|
2217
|
+
() => ot(T)
|
|
2172
2218
|
);
|
|
2173
|
-
},
|
|
2174
|
-
const T = React__default.useContext(l)[
|
|
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, (
|
|
2177
|
-
|
|
2222
|
+
() => K(T, (d) => {
|
|
2223
|
+
d !== b && f(un(d));
|
|
2178
2224
|
}),
|
|
2179
|
-
[T,
|
|
2180
|
-
),
|
|
2181
|
-
}, v = React__default.version.startsWith("18") ?
|
|
2225
|
+
[T, b]
|
|
2226
|
+
), b;
|
|
2227
|
+
}, v = React__default.version.startsWith("18") ? I : C;
|
|
2182
2228
|
return {
|
|
2183
|
-
Component:
|
|
2184
|
-
useEmitter: (
|
|
2185
|
-
const
|
|
2186
|
-
pe(() => K(
|
|
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:
|
|
2235
|
+
usePublisher: h
|
|
2190
2236
|
};
|
|
2191
2237
|
}
|
|
2192
|
-
const be = React__default.createContext(void 0),
|
|
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
|
|
2242
|
+
function er(t) {
|
|
2197
2243
|
return "body" in t;
|
|
2198
2244
|
}
|
|
2199
|
-
function
|
|
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
|
-
(
|
|
2202
|
-
let
|
|
2203
|
-
const
|
|
2204
|
-
if (
|
|
2205
|
-
const u = ke(
|
|
2206
|
-
v = s ? u.scrollX : u.scrollY,
|
|
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 ?
|
|
2209
|
-
const
|
|
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:
|
|
2257
|
+
scrollHeight: I,
|
|
2212
2258
|
scrollTop: Math.max(v, 0),
|
|
2213
|
-
viewportHeight:
|
|
2259
|
+
viewportHeight: C
|
|
2214
2260
|
});
|
|
2215
2261
|
};
|
|
2216
|
-
|
|
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
|
|
2222
|
-
return o(r || i.current), a({ suppressFlushSync: true, target:
|
|
2223
|
-
o(null),
|
|
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
|
|
2227
|
-
const
|
|
2228
|
-
if (!
|
|
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
|
|
2231
|
-
let v,
|
|
2232
|
-
ke(
|
|
2233
|
-
|
|
2234
|
-
s ?
|
|
2235
|
-
), v = s ?
|
|
2236
|
-
const u =
|
|
2237
|
-
if (
|
|
2238
|
-
t({ scrollHeight:
|
|
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
|
-
|
|
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 && (
|
|
2289
|
+
}, 1e3)) : l.current = null, s && (h = { behavior: h.behavior, left: h.top }), I.scrollTo(h);
|
|
2244
2290
|
}
|
|
2245
|
-
function
|
|
2246
|
-
s && (
|
|
2291
|
+
function x(h) {
|
|
2292
|
+
s && (h = { behavior: h.behavior, left: h.top }), i.current.scrollBy(h);
|
|
2247
2293
|
}
|
|
2248
|
-
return { scrollByCallback:
|
|
2294
|
+
return { scrollByCallback: x, scrollerRef: i, scrollToCallback: m };
|
|
2249
2295
|
}
|
|
2250
|
-
const Fe = "-webkit-sticky", Tn = "sticky",
|
|
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
|
|
2302
|
+
function Xe(t) {
|
|
2257
2303
|
return t;
|
|
2258
2304
|
}
|
|
2259
|
-
const
|
|
2260
|
-
const t =
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
E((
|
|
2264
|
-
|
|
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
|
-
|
|
2312
|
+
c
|
|
2267
2313
|
);
|
|
2268
2314
|
return {
|
|
2269
|
-
components:
|
|
2270
|
-
computeItemKey:
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
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:
|
|
2281
|
-
ScrollerComponent:
|
|
2282
|
-
scrollerRef:
|
|
2283
|
-
ScrollSeekPlaceholder:
|
|
2284
|
-
TopItemListComponent:
|
|
2325
|
+
ListComponent: i("List", "div"),
|
|
2326
|
+
ScrollerComponent: i("Scroller", "div"),
|
|
2327
|
+
scrollerRef: s,
|
|
2328
|
+
ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
|
|
2329
|
+
TopItemListComponent: i("TopItemList")
|
|
2285
2330
|
};
|
|
2286
|
-
}),
|
|
2331
|
+
}), or = /* @__PURE__ */ U(
|
|
2287
2332
|
([t, e]) => ({ ...t, ...e }),
|
|
2288
|
-
X(
|
|
2289
|
-
),
|
|
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"),
|
|
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
|
-
|
|
2340
|
+
C,
|
|
2296
2341
|
v,
|
|
2297
2342
|
s,
|
|
2298
|
-
|
|
2343
|
+
g,
|
|
2299
2344
|
M("skipAnimationFrameInResizeObserver")
|
|
2300
2345
|
), [u, T] = React__default.useState(0);
|
|
2301
|
-
|
|
2302
|
-
u !==
|
|
2346
|
+
tn("deviation", (F) => {
|
|
2347
|
+
u !== F && T(F);
|
|
2303
2348
|
});
|
|
2304
|
-
const
|
|
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
|
-
...
|
|
2351
|
+
...g ? {
|
|
2307
2352
|
display: "inline-block",
|
|
2308
2353
|
height: "100%",
|
|
2309
|
-
marginLeft: u !== 0 ? u :
|
|
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 :
|
|
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 &&
|
|
2321
|
-
|
|
2365
|
+
return !e && n.totalCount === 0 && b ? /* @__PURE__ */ jsx(b, { ...Z(b, m) }) : /* @__PURE__ */ jsx(
|
|
2366
|
+
d,
|
|
2322
2367
|
{
|
|
2323
|
-
...
|
|
2368
|
+
...Z(d, m),
|
|
2324
2369
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
2325
|
-
ref:
|
|
2370
|
+
ref: p,
|
|
2326
2371
|
style: nt,
|
|
2327
|
-
children: (e ? n.topItems : n.items).map((
|
|
2328
|
-
const
|
|
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
|
-
|
|
2375
|
+
f,
|
|
2331
2376
|
{
|
|
2332
|
-
...
|
|
2333
|
-
height:
|
|
2334
|
-
index:
|
|
2377
|
+
...Z(f, m),
|
|
2378
|
+
height: F.size,
|
|
2379
|
+
index: F.index,
|
|
2335
2380
|
key: it,
|
|
2336
|
-
type:
|
|
2337
|
-
...
|
|
2381
|
+
type: F.type || "item",
|
|
2382
|
+
...F.type === "group" ? {} : { groupIndex: F.groupIndex }
|
|
2338
2383
|
}
|
|
2339
|
-
) :
|
|
2340
|
-
|
|
2384
|
+
) : F.type === "group" ? /* @__PURE__ */ createElement(
|
|
2385
|
+
B,
|
|
2341
2386
|
{
|
|
2342
|
-
...
|
|
2343
|
-
"data-index":
|
|
2344
|
-
"data-item-index":
|
|
2345
|
-
"data-known-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:
|
|
2392
|
+
style: sr
|
|
2348
2393
|
},
|
|
2349
|
-
|
|
2394
|
+
x(F.index, m)
|
|
2350
2395
|
) : /* @__PURE__ */ createElement(
|
|
2351
|
-
|
|
2396
|
+
y,
|
|
2352
2397
|
{
|
|
2353
|
-
...
|
|
2354
|
-
...
|
|
2355
|
-
"data-index":
|
|
2356
|
-
"data-item-group-index":
|
|
2357
|
-
"data-item-index":
|
|
2358
|
-
"data-known-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:
|
|
2405
|
+
style: g ? ir : eo
|
|
2361
2406
|
},
|
|
2362
|
-
|
|
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
|
-
}),
|
|
2412
|
+
}), lr = {
|
|
2368
2413
|
height: "100%",
|
|
2369
2414
|
outline: "none",
|
|
2370
2415
|
overflowY: "auto",
|
|
2371
2416
|
position: "relative",
|
|
2372
2417
|
WebkitOverflowScrolling: "touch"
|
|
2373
|
-
},
|
|
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
|
-
}),
|
|
2384
|
-
position:
|
|
2428
|
+
}), ur = {
|
|
2429
|
+
position: Ze(),
|
|
2385
2430
|
top: 0,
|
|
2386
2431
|
width: "100%",
|
|
2387
2432
|
zIndex: 1
|
|
2388
2433
|
};
|
|
2389
|
-
function
|
|
2434
|
+
function Z(t, e) {
|
|
2390
2435
|
if (typeof t != "string")
|
|
2391
2436
|
return { context: e };
|
|
2392
2437
|
}
|
|
2393
|
-
function
|
|
2438
|
+
function no(t, e) {
|
|
2394
2439
|
return { item: typeof t == "string" ? void 0 : e };
|
|
2395
2440
|
}
|
|
2396
|
-
const
|
|
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(
|
|
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, { ...
|
|
2408
|
-
}),
|
|
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(
|
|
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, { ...
|
|
2464
|
+
return e ? /* @__PURE__ */ jsx(o, { ref: r, children: /* @__PURE__ */ jsx(e, { ...Z(e, s) }) }) : null;
|
|
2420
2465
|
});
|
|
2421
|
-
function
|
|
2422
|
-
return React__default.memo(function({ children: s, style: i,
|
|
2423
|
-
const
|
|
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
|
-
|
|
2470
|
+
x,
|
|
2471
|
+
m,
|
|
2472
|
+
h,
|
|
2428
2473
|
void 0,
|
|
2429
|
-
|
|
2474
|
+
I
|
|
2430
2475
|
);
|
|
2431
|
-
return t("scrollTo",
|
|
2432
|
-
|
|
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: { ...
|
|
2482
|
+
style: { ...I ? cr : lr, ...i },
|
|
2438
2483
|
tabIndex: 0,
|
|
2439
|
-
...
|
|
2440
|
-
...
|
|
2484
|
+
...c,
|
|
2485
|
+
...Z(m, l),
|
|
2441
2486
|
children: s
|
|
2442
2487
|
}
|
|
2443
2488
|
);
|
|
2444
2489
|
});
|
|
2445
2490
|
}
|
|
2446
|
-
function
|
|
2447
|
-
return React__default.memo(function({ children: s, style: i,
|
|
2448
|
-
const
|
|
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
|
-
|
|
2497
|
+
g,
|
|
2498
|
+
C
|
|
2454
2499
|
);
|
|
2455
|
-
return
|
|
2456
|
-
var
|
|
2457
|
-
return u.current =
|
|
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,
|
|
2461
|
-
|
|
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, ...
|
|
2466
|
-
...
|
|
2467
|
-
...
|
|
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
|
|
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) =>
|
|
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
|
-
},
|
|
2482
|
-
const e = React__default.useContext(be), n = gt("windowViewportRect"), o = gt("fixedItemHeight"), r = M("customScrollParent"), s =
|
|
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
|
-
},
|
|
2491
|
-
const e = M("TopItemListComponent") || "div", n = M("headerHeight"), o = { ...
|
|
2492
|
-
return /* @__PURE__ */ jsx(e, { style: o, ...
|
|
2493
|
-
},
|
|
2494
|
-
const n = M("useWindowScroll"), o = M("topItemsIndexes").length > 0, r = M("customScrollParent"), s = M("context")
|
|
2495
|
-
return /* @__PURE__ */ jsxs(
|
|
2496
|
-
o && /* @__PURE__ */ jsx(
|
|
2497
|
-
/* @__PURE__ */ jsxs(
|
|
2498
|
-
/* @__PURE__ */ jsx(
|
|
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(
|
|
2545
|
+
/* @__PURE__ */ jsx(dr, {})
|
|
2501
2546
|
] })
|
|
2502
2547
|
] });
|
|
2503
2548
|
}), {
|
|
2504
|
-
Component:
|
|
2505
|
-
useEmitter:
|
|
2549
|
+
Component: oo,
|
|
2550
|
+
useEmitter: tn,
|
|
2506
2551
|
useEmitterValue: M,
|
|
2507
2552
|
usePublisher: gt
|
|
2508
|
-
} = /* @__PURE__ */
|
|
2509
|
-
|
|
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
|
-
|
|
2566
|
-
),
|
|
2567
|
-
const t =
|
|
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 =
|
|
2616
|
+
] })), e = w(null), n = w((a) => /* @__PURE__ */ jsxs("td", { colSpan: 1e3, children: [
|
|
2571
2617
|
"Group ",
|
|
2572
2618
|
a
|
|
2573
|
-
] })), o =
|
|
2574
|
-
|
|
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((
|
|
2577
|
-
|
|
2622
|
+
E((x) => x[a]),
|
|
2623
|
+
Y()
|
|
2578
2624
|
),
|
|
2579
|
-
|
|
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(
|
|
2604
|
-
); ({ position:
|
|
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
|
-
},
|
|
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
|
|
2670
|
+
function kr(t) {
|
|
2625
2671
|
return {
|
|
2626
|
-
...
|
|
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
|
|
2679
|
+
function Fr(t, e) {
|
|
2634
2680
|
return t && t.column === e.column && t.row === e.row;
|
|
2635
2681
|
}
|
|
2636
|
-
const
|
|
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:
|
|
2640
|
-
g,
|
|
2685
|
+
{ footerHeight: r, headerHeight: s, scrollBy: i, scrollContainerState: l, scrollTo: c, scrollTop: a, smoothScrollTargetReached: m, viewportHeight: x },
|
|
2641
2686
|
h,
|
|
2642
|
-
|
|
2643
|
-
{
|
|
2644
|
-
|
|
2687
|
+
I,
|
|
2688
|
+
{ didMount: C, propsReady: v },
|
|
2689
|
+
{ customScrollParent: g, useWindowScroll: p, windowScrollContainerState: u, windowScrollTo: T, windowViewportRect: b },
|
|
2690
|
+
f
|
|
2645
2691
|
]) => {
|
|
2646
|
-
const
|
|
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
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
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
|
-
|
|
2658
|
-
rt(
|
|
2659
|
-
|
|
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
|
-
([, , , ,
|
|
2662
|
-
G(ut, true),
|
|
2663
|
-
G(
|
|
2664
|
-
}),
|
|
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
|
-
|
|
2715
|
+
S(
|
|
2670
2716
|
it,
|
|
2671
|
-
|
|
2672
|
-
|
|
2717
|
+
A((R) => R != null && R.scrollTop > 0),
|
|
2718
|
+
Rt(0)
|
|
2673
2719
|
),
|
|
2674
|
-
|
|
2720
|
+
y
|
|
2675
2721
|
), K(
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2722
|
+
S(
|
|
2723
|
+
C,
|
|
2724
|
+
N(it),
|
|
2725
|
+
A(([, R]) => R != null)
|
|
2680
2726
|
),
|
|
2681
|
-
([,
|
|
2682
|
-
|
|
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:
|
|
2730
|
+
}), G(c, { top: R.scrollTop })));
|
|
2685
2731
|
}
|
|
2686
2732
|
), O(
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
E(({ height:
|
|
2733
|
+
S(
|
|
2734
|
+
k,
|
|
2735
|
+
E(({ height: R }) => R)
|
|
2690
2736
|
),
|
|
2691
|
-
|
|
2737
|
+
x
|
|
2692
2738
|
), O(
|
|
2693
|
-
|
|
2739
|
+
S(
|
|
2694
2740
|
rt(
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
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(([
|
|
2746
|
+
E(([R, D, Q, lt]) => ({
|
|
2701
2747
|
gap: Q,
|
|
2702
|
-
item:
|
|
2748
|
+
item: D,
|
|
2703
2749
|
scrollTop: lt,
|
|
2704
|
-
viewport:
|
|
2750
|
+
viewport: R
|
|
2705
2751
|
}))
|
|
2706
2752
|
),
|
|
2707
|
-
|
|
2753
|
+
q
|
|
2708
2754
|
), O(
|
|
2709
|
-
|
|
2755
|
+
S(
|
|
2710
2756
|
rt(
|
|
2711
|
-
|
|
2757
|
+
V(d),
|
|
2712
2758
|
o,
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
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
|
-
|
|
2768
|
+
A(([, , , , , , , R]) => !R),
|
|
2723
2769
|
E(
|
|
2724
2770
|
([
|
|
2725
|
-
|
|
2726
|
-
[
|
|
2771
|
+
R,
|
|
2772
|
+
[D, Q],
|
|
2727
2773
|
lt,
|
|
2728
2774
|
tt,
|
|
2729
|
-
|
|
2775
|
+
Ft,
|
|
2730
2776
|
Jt,
|
|
2731
|
-
|
|
2777
|
+
Ut,
|
|
2732
2778
|
,
|
|
2733
2779
|
de,
|
|
2734
|
-
|
|
2780
|
+
Ot
|
|
2735
2781
|
]) => {
|
|
2736
|
-
const { column:
|
|
2737
|
-
if (
|
|
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
|
|
2741
|
-
return
|
|
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 =
|
|
2744
|
-
let
|
|
2745
|
-
de ?
|
|
2746
|
-
const
|
|
2747
|
-
return { bottom:
|
|
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
|
-
|
|
2797
|
+
B
|
|
2752
2798
|
), O(
|
|
2753
|
-
|
|
2799
|
+
S(
|
|
2754
2800
|
nt,
|
|
2755
|
-
|
|
2756
|
-
E((
|
|
2801
|
+
A((R) => R !== null),
|
|
2802
|
+
E((R) => R.length)
|
|
2757
2803
|
),
|
|
2758
|
-
|
|
2804
|
+
d
|
|
2759
2805
|
), O(
|
|
2760
|
-
|
|
2761
|
-
rt(
|
|
2762
|
-
|
|
2763
|
-
E(([
|
|
2764
|
-
const { bottom: tt, top:
|
|
2765
|
-
return [
|
|
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
|
-
|
|
2813
|
+
Y(se)
|
|
2768
2814
|
),
|
|
2769
2815
|
e
|
|
2770
2816
|
);
|
|
2771
|
-
const xt =
|
|
2817
|
+
const xt = w(false);
|
|
2772
2818
|
O(
|
|
2773
|
-
|
|
2819
|
+
S(
|
|
2774
2820
|
a,
|
|
2775
|
-
|
|
2776
|
-
E(([
|
|
2821
|
+
N(xt),
|
|
2822
|
+
E(([R, D]) => D || R !== 0)
|
|
2777
2823
|
),
|
|
2778
2824
|
xt
|
|
2779
2825
|
);
|
|
2780
2826
|
const Xt = ht(
|
|
2781
|
-
|
|
2782
|
-
rt(
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
const tt =
|
|
2787
|
-
return (Q ||
|
|
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(([[,
|
|
2790
|
-
|
|
2835
|
+
E(([[, R]]) => R - 1),
|
|
2836
|
+
Y()
|
|
2791
2837
|
)
|
|
2792
2838
|
), Mt = ht(
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2839
|
+
S(
|
|
2840
|
+
V(B),
|
|
2841
|
+
A(({ items: R }) => R.length > 0 && R[0].index === 0),
|
|
2842
|
+
Rt(0),
|
|
2843
|
+
Y()
|
|
2798
2844
|
)
|
|
2799
|
-
),
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
E(([{ items:
|
|
2805
|
-
endIndex:
|
|
2806
|
-
startIndex:
|
|
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
|
-
|
|
2809
|
-
|
|
2854
|
+
Y(Mn),
|
|
2855
|
+
kt(0)
|
|
2810
2856
|
)
|
|
2811
2857
|
);
|
|
2812
|
-
O(
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
E(([
|
|
2817
|
-
const
|
|
2818
|
-
let
|
|
2819
|
-
|
|
2820
|
-
let
|
|
2821
|
-
return Jt === "end" ?
|
|
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
|
-
|
|
2828
|
-
|
|
2829
|
-
E((
|
|
2873
|
+
S(
|
|
2874
|
+
B,
|
|
2875
|
+
E((R) => R.offsetBottom + R.bottom)
|
|
2830
2876
|
),
|
|
2831
2877
|
0
|
|
2832
2878
|
);
|
|
2833
2879
|
return O(
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
E((
|
|
2880
|
+
S(
|
|
2881
|
+
b,
|
|
2882
|
+
E((R) => ({ height: R.visibleHeight, width: R.visibleWidth }))
|
|
2837
2883
|
),
|
|
2838
|
-
|
|
2884
|
+
k
|
|
2839
2885
|
), {
|
|
2840
|
-
customScrollParent:
|
|
2886
|
+
customScrollParent: g,
|
|
2841
2887
|
// input
|
|
2842
2888
|
data: nt,
|
|
2843
2889
|
deviation: J,
|
|
2844
2890
|
footerHeight: r,
|
|
2845
|
-
gap:
|
|
2891
|
+
gap: F,
|
|
2846
2892
|
headerHeight: s,
|
|
2847
2893
|
increaseViewportBy: t,
|
|
2848
|
-
initialItemCount:
|
|
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:
|
|
2900
|
+
scrollHeight: _,
|
|
2855
2901
|
scrollTo: c,
|
|
2856
|
-
scrollToIndex:
|
|
2902
|
+
scrollToIndex: z,
|
|
2857
2903
|
scrollTop: a,
|
|
2858
|
-
smoothScrollTargetReached:
|
|
2859
|
-
totalCount:
|
|
2860
|
-
useWindowScroll:
|
|
2861
|
-
viewportDimensions:
|
|
2904
|
+
smoothScrollTargetReached: m,
|
|
2905
|
+
totalCount: d,
|
|
2906
|
+
useWindowScroll: p,
|
|
2907
|
+
viewportDimensions: k,
|
|
2862
2908
|
windowScrollContainerState: u,
|
|
2863
2909
|
windowScrollTo: T,
|
|
2864
|
-
windowViewportRect:
|
|
2865
|
-
...
|
|
2910
|
+
windowViewportRect: b,
|
|
2911
|
+
...I,
|
|
2866
2912
|
// output
|
|
2867
|
-
gridState:
|
|
2913
|
+
gridState: B,
|
|
2868
2914
|
horizontalDirection: At,
|
|
2869
2915
|
initialTopMostItemIndex: St,
|
|
2870
2916
|
totalListHeight: Bt,
|
|
2871
|
-
...
|
|
2917
|
+
...h,
|
|
2872
2918
|
endReached: Xt,
|
|
2873
2919
|
propsReady: v,
|
|
2874
|
-
rangeChanged:
|
|
2920
|
+
rangeChanged: yt,
|
|
2875
2921
|
startReached: Mt,
|
|
2876
|
-
stateChanged:
|
|
2922
|
+
stateChanged: q,
|
|
2877
2923
|
stateRestoreInProgress: dt,
|
|
2878
|
-
...
|
|
2924
|
+
...f
|
|
2879
2925
|
};
|
|
2880
2926
|
},
|
|
2881
|
-
X(
|
|
2927
|
+
X(je, at, ae, Yn, Pt, qe, Vt)
|
|
2882
2928
|
);
|
|
2883
|
-
function
|
|
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 =
|
|
2891
|
-
return { bottom:
|
|
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
|
|
2894
|
-
const r =
|
|
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
|
|
2898
|
-
const t =
|
|
2899
|
-
|
|
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((
|
|
2902
|
-
|
|
2947
|
+
E((I) => I[x]),
|
|
2948
|
+
Y()
|
|
2903
2949
|
),
|
|
2904
|
-
|
|
2905
|
-
), a =
|
|
2906
|
-
return O(
|
|
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:
|
|
2965
|
+
reportReadyState: m,
|
|
2920
2966
|
ScrollerComponent: c("Scroller", "div"),
|
|
2921
2967
|
scrollerRef: l,
|
|
2922
2968
|
ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
|
|
2923
2969
|
};
|
|
2924
|
-
}),
|
|
2970
|
+
}), zr = /* @__PURE__ */ U(
|
|
2925
2971
|
([t, e]) => ({ ...t, ...e }),
|
|
2926
|
-
X(
|
|
2927
|
-
),
|
|
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"),
|
|
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
|
|
2934
|
-
if (
|
|
2935
|
-
const { height:
|
|
2936
|
-
|
|
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
|
-
|
|
2939
|
-
column: Bn("column-gap", getComputedStyle(u).columnGap,
|
|
2940
|
-
row: Bn("row-gap", getComputedStyle(u).rowGap,
|
|
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,
|
|
2989
|
+
[l, h, I, C]
|
|
2944
2990
|
),
|
|
2945
2991
|
true,
|
|
2946
2992
|
false
|
|
2947
2993
|
);
|
|
2948
|
-
return
|
|
2949
|
-
e.itemHeight > 0 && e.itemWidth > 0 &&
|
|
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:
|
|
2955
|
-
...
|
|
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,
|
|
3005
|
+
const T = s(u.index, u.data, x);
|
|
2960
3006
|
return i ? /* @__PURE__ */ jsx(
|
|
2961
|
-
|
|
3007
|
+
m,
|
|
2962
3008
|
{
|
|
2963
|
-
...
|
|
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
|
-
...
|
|
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,
|
|
3023
|
+
r(u.index, u.data, x)
|
|
2978
3024
|
);
|
|
2979
3025
|
})
|
|
2980
3026
|
}
|
|
2981
3027
|
);
|
|
2982
|
-
}),
|
|
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(
|
|
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, { ...
|
|
2994
|
-
}),
|
|
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(
|
|
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, { ...
|
|
3006
|
-
}),
|
|
3007
|
-
const e = React__default.useContext(
|
|
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
|
-
},
|
|
3021
|
-
const e = React__default.useContext(
|
|
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
|
-
},
|
|
3026
|
-
const n = et("useWindowScroll"), o = et("customScrollParent"), r = o || n ?
|
|
3027
|
-
return /* @__PURE__ */ jsx(r, { ...e, ...
|
|
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(
|
|
3030
|
-
/* @__PURE__ */ jsx(Pr, {})
|
|
3076
|
+
/* @__PURE__ */ jsx(Ar, {})
|
|
3031
3077
|
] }) });
|
|
3032
3078
|
}), {
|
|
3033
|
-
useEmitter:
|
|
3079
|
+
useEmitter: io,
|
|
3034
3080
|
useEmitterValue: et,
|
|
3035
3081
|
usePublisher: It
|
|
3036
|
-
} = /* @__PURE__ */
|
|
3037
|
-
|
|
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
|
-
|
|
3077
|
-
),
|
|
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,
|
|
3128
|
+
export { mt as LogLevel, qr as Virtuoso, Jn as VirtuosoGridMockContext, be as VirtuosoMockContext };
|
|
3083
3129
|
//# sourceMappingURL=index.js.map
|