@stokr/components-library 3.0.66 → 3.0.67
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/dist/_virtual/Collapse.js +4 -0
- package/dist/_virtual/Component.js +4 -0
- package/dist/_virtual/Range.js +4 -0
- package/dist/_virtual/ResizeObserver.es.js +6 -0
- package/dist/_virtual/UnmountClosed.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +38 -0
- package/dist/_virtual/arrows.js +4 -0
- package/dist/_virtual/attributes-to-props.js +4 -0
- package/dist/_virtual/constants.js +4 -0
- package/dist/_virtual/default-props.js +4 -0
- package/dist/_virtual/defaultRenderElements.js +4 -0
- package/dist/_virtual/dom-to-react.js +4 -0
- package/dist/_virtual/domparser.js +4 -0
- package/dist/_virtual/dots.js +4 -0
- package/dist/_virtual/getInnerHeight.js +4 -0
- package/dist/_virtual/getInnerWidth.js +4 -0
- package/dist/_virtual/getScrollbarWidth.js +4 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js +2 -0
- package/dist/_virtual/html-to-dom.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index10.js +5 -0
- package/dist/_virtual/index11.js +7 -0
- package/dist/_virtual/index12.js +7 -0
- package/dist/_virtual/index13.js +7 -0
- package/dist/_virtual/index14.js +4 -0
- package/dist/_virtual/index15.js +7 -0
- package/dist/_virtual/index16.js +7 -0
- package/dist/_virtual/index17.js +7 -0
- package/dist/_virtual/index18.js +4 -0
- package/dist/_virtual/index19.js +4 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index20.js +4 -0
- package/dist/_virtual/index21.js +4 -0
- package/dist/_virtual/index22.js +4 -0
- package/dist/_virtual/index23.js +4 -0
- package/dist/_virtual/index24.js +4 -0
- package/dist/_virtual/index25.js +4 -0
- package/dist/_virtual/index26.js +4 -0
- package/dist/_virtual/index27.js +4 -0
- package/dist/_virtual/index28.js +4 -0
- package/dist/_virtual/index29.js +4 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index30.js +4 -0
- package/dist/_virtual/index31.js +4 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index7.js +7 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/initial-state.js +4 -0
- package/dist/_virtual/inner-slider.js +4 -0
- package/dist/_virtual/innerSliderUtils.js +4 -0
- package/dist/_virtual/isString.js +4 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/performance-now.js +4 -0
- package/dist/_virtual/popper.js +6 -0
- package/dist/_virtual/possibleStandardNamesOptimized.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-table.development.js +4 -0
- package/dist/_virtual/react-table.production.min.js +4 -0
- package/dist/_virtual/react-tippy.js +5 -0
- package/dist/_virtual/react-tippy2.js +4 -0
- package/dist/_virtual/returnFalse.js +4 -0
- package/dist/_virtual/slider.js +4 -0
- package/dist/_virtual/styles.js +4 -0
- package/dist/_virtual/track.js +4 -0
- package/dist/_virtual/types.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/_virtual/utilities2.js +4 -0
- package/dist/_virtual/utilities3.js +4 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/analytics/index.js +1 -1
- package/dist/api/fetchData.js +2 -2
- package/dist/components/2FA/Connect2FA.js +1 -1
- package/dist/components/2FA/EnterCode.js +1 -1
- package/dist/components/2FA/Sucess2FA.js +1 -1
- package/dist/components/2FA/login-with-otp-flow.js +47 -12
- package/dist/components/2FA/main-flow.js +29 -5
- package/dist/components/AccountBalance/AccountBalance.js +1 -1
- package/dist/components/AdminDashboard/Table/ReactTable.js +5 -5
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +1 -1
- package/dist/components/AdminDashboard/Table/Table.js +1 -1
- package/dist/components/AgreementItem/AgreementItem.js +1 -1
- package/dist/components/BackButton/BackButton.js +1 -1
- package/dist/components/Background/Background.js +1 -1
- package/dist/components/BasicTable/BasicTable.js +1 -1
- package/dist/components/BlogPost/BlogPost.js +1 -1
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Button/GlareButton.js +2 -2
- package/dist/components/ChartLegend/ChartLegend.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checklist/ChecklistCard.js +1 -1
- package/dist/components/Chips/Chip.js +1 -1
- package/dist/components/Chips/ChipWrapper.js +1 -1
- package/dist/components/ComponentScroll/ComponentScroll.js +3 -3
- package/dist/components/Country/CountrySelect.js +4 -4
- package/dist/components/CryptoAddress/ComponentWrap.js +1 -1
- package/dist/components/CryptoAddress/CryptoAddress.js +7 -7
- package/dist/components/CryptoAddress/RadioWrap.js +1 -1
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +1 -1
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +1 -1
- package/dist/components/FAQ/FAQ.js +1 -1
- package/dist/components/FAQ/FAQ.styles.js +2 -2
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/FooterLayout.js +1 -1
- package/dist/components/Footer/FooterMenu.js +3 -3
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +5 -5
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.styles.js +1 -1
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/HeroBlock/HeroVideoBlock.js +1 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +1 -1
- package/dist/components/InfoIcon/InfoIcon.js +6 -6
- package/dist/components/Input/DatePickerInput.js +5 -3
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/InputPassword.js +1 -1
- package/dist/components/Input/InputUsername.js +1 -1
- package/dist/components/Input/InputWithButton.js +1 -1
- package/dist/components/Input/MultiSelect.js +4 -3
- package/dist/components/Input/OtpInput.js +2 -2
- package/dist/components/Input/RangeInput.js +4 -4
- package/dist/components/Input/Select.js +5 -4
- package/dist/components/Input/TableFilterDropdown.js +1 -1
- package/dist/components/InvestmentStat/InvestmentStat.js +1 -1
- package/dist/components/LatestUpdate/LatestUpdate.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/LoginModal/LoginModal.js +6 -6
- package/dist/components/MainMenu/DynamicMainMenu.js +3 -3
- package/dist/components/MainMenu/MainMenu.js +6 -6
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +9 -9
- package/dist/components/Modal/PaymentModal.js +2 -2
- package/dist/components/Modal/SuccessModal/SuccessModal.js +3 -3
- package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -1
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/PageTransition/PageTransition.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/PaginationControls.js +1 -1
- package/dist/components/Payment/PaymentDisplay.js +4 -4
- package/dist/components/Payment/TimerComponent.js +1 -1
- package/dist/components/ProfileBadge/ProfileBadge.js +1 -1
- package/dist/components/ProfileBox/ProfileBox.js +1 -1
- package/dist/components/ProfileStat/ProfileStat.js +1 -1
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RefreshButton/RefreshButton.js +1 -1
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +1 -1
- package/dist/components/RegisterModal/RegisterModal.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.js +1 -1
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +1 -1
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +6 -6
- package/dist/components/SEO/SEO.js +3 -3
- package/dist/components/Slider/Slider.js +4 -4
- package/dist/components/SmartLink/SmartLink.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +1 -1
- package/dist/components/Snackbar/SnackbarProvider.js +1 -1
- package/dist/components/StepController/StepController.js +1 -1
- package/dist/components/StepController/StepControllerContext.js +1 -1
- package/dist/components/StepController/StepControllerProgress.js +1 -1
- package/dist/components/StepsProgress/StepIndicator.js +1 -1
- package/dist/components/StepsProgress/StepsProgress.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/TabsNav/TabNav.js +1 -1
- package/dist/components/TabsNav/TabsNav.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +2 -2
- package/dist/components/TeamOverview/TeamOverview.js +1 -1
- package/dist/components/TermsModal/TermsModal.js +5 -5
- package/dist/components/Timeline/TimelineStep.js +1 -1
- package/dist/components/ToDoList/ToDoList.js +3 -3
- package/dist/components/ToDoList/ToDoListTask.js +4 -4
- package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +2 -2
- package/dist/components/TransactionInfo/TransactionInfo.js +1 -1
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +5 -5
- package/dist/components/headerHo/HeaderHo.js +3 -1
- package/dist/components/logo/Logo.js +1 -1
- package/dist/components/taxId/register-taxid.js +4 -4
- package/dist/components-library.css +781 -0
- package/dist/context/Auth.js +15 -12
- package/dist/context/AuthContext.js +7 -6
- package/dist/firebase-config.js +4 -2
- package/dist/hooks/useNewVentureForm.js +1 -1
- package/dist/index.js +5 -4
- package/dist/model/axios.js +2 -1
- package/dist/model/axiosPublic.js +2 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/@date-fns/tz/date/index.js +66 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +124 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +28 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +345 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +31 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +84 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +50 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +169 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +83 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +9 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -0
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +609 -0
- package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +5751 -0
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +291 -0
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +106 -0
- package/dist/node_modules/@firebase/util/dist/index.esm.js +828 -0
- package/dist/node_modules/@firebase/util/dist/postinstall.js +4 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +257 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +122 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +34 -0
- package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +53 -0
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +1973 -0
- package/dist/node_modules/add-px-to-style/index.js +48 -0
- package/dist/node_modules/axios/index.js +38 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +71 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +219 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +141 -0
- package/dist/node_modules/axios/lib/axios.js +50 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +99 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +20 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/axios/lib/core/Axios.js +188 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +67 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +231 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +66 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +12 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +52 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +88 -0
- package/dist/node_modules/axios/lib/core/settle.js +18 -0
- package/dist/node_modules/axios/lib/core/transformData.js +17 -0
- package/dist/node_modules/axios/lib/defaults/index.js +116 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +34 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +32 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +39 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +49 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +54 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +9 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +47 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +46 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +36 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +35 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +117 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +80 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +67 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +15 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.js +415 -0
- package/dist/node_modules/classnames/index.js +61 -0
- package/dist/node_modules/copy-to-clipboard/index.js +101 -0
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +6570 -0
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +269 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +652 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +62 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +58 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +20 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +23 -0
- package/dist/node_modules/date-fns/addDays.js +12 -0
- package/dist/node_modules/date-fns/addMonths.js +26 -0
- package/dist/node_modules/date-fns/addWeeks.js +7 -0
- package/dist/node_modules/date-fns/addYears.js +7 -0
- package/dist/node_modules/date-fns/constants.js +14 -0
- package/dist/node_modules/date-fns/constructFrom.js +11 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +19 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +20 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +20 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/endOfMonth.js +11 -0
- package/dist/node_modules/date-fns/endOfWeek.js +15 -0
- package/dist/node_modules/date-fns/endOfYear.js +11 -0
- package/dist/node_modules/date-fns/format.js +77 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +12 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +14 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +7 -0
- package/dist/node_modules/date-fns/getISODay.js +8 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +25 -0
- package/dist/node_modules/date-fns/getMonth.js +7 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +28 -0
- package/dist/node_modules/date-fns/getYear.js +7 -0
- package/dist/node_modules/date-fns/isAfter.js +7 -0
- package/dist/node_modules/date-fns/isBefore.js +7 -0
- package/dist/node_modules/date-fns/isDate.js +6 -0
- package/dist/node_modules/date-fns/isSameDay.js +13 -0
- package/dist/node_modules/date-fns/isSameMonth.js +12 -0
- package/dist/node_modules/date-fns/isSameYear.js +12 -0
- package/dist/node_modules/date-fns/isValid.js +8 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +20 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +43 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +85 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +36 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +164 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +122 -0
- package/dist/node_modules/date-fns/locale/en-US.js +20 -0
- package/dist/node_modules/date-fns/max.js +16 -0
- package/dist/node_modules/date-fns/min.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +25 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +64 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +20 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +17 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +28 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +106 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +39 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +42 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +117 -0
- package/dist/node_modules/date-fns/parse.js +123 -0
- package/dist/node_modules/date-fns/setDay.js +17 -0
- package/dist/node_modules/date-fns/setISODay.js +12 -0
- package/dist/node_modules/date-fns/setISOWeek.js +11 -0
- package/dist/node_modules/date-fns/setMonth.js +17 -0
- package/dist/node_modules/date-fns/setWeek.js +11 -0
- package/dist/node_modules/date-fns/setYear.js +11 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfMonth.js +10 -0
- package/dist/node_modules/date-fns/startOfWeek.js +15 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +17 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/toDate.js +7 -0
- package/dist/node_modules/date-fns/transpose.js +18 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +8 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +9 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +29 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +89 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +4 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +81 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +125 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +24 -0
- package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +13 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +305 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +14 -0
- package/dist/node_modules/deepmerge/dist/es.js +69 -0
- package/dist/node_modules/dom-css/index.js +65 -0
- package/dist/node_modules/domelementtype/lib/index.js +39 -0
- package/dist/node_modules/domhandler/lib/index.js +166 -0
- package/dist/node_modules/domhandler/lib/node.js +438 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +1020 -0
- package/dist/node_modules/firebase/app/dist/esm/index.esm.js +20 -0
- package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +44 -0
- package/dist/node_modules/formik/dist/formik.esm.js +969 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +92 -0
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +55 -0
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +96 -0
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +31 -0
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +96 -0
- package/dist/node_modules/html-react-parser/esm/index.js +5 -0
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +64 -0
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +99 -0
- package/dist/node_modules/html-react-parser/lib/index.js +51 -0
- package/dist/node_modules/html-react-parser/lib/utilities.js +79 -0
- package/dist/node_modules/idb/build/index.js +69 -0
- package/dist/node_modules/idb/build/wrap-idb-value.js +148 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +142 -0
- package/dist/node_modules/js-cookie/dist/js.cookie.js +99 -0
- package/dist/node_modules/json2mq/index.js +55 -0
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Hash.js +21 -0
- package/dist/node_modules/lodash-es/_ListCache.js +21 -0
- package/dist/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/lodash-es/_MapCache.js +21 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayEach.js +12 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +13 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +24 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +10 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +10 -0
- package/dist/node_modules/lodash-es/_assignValue.js +13 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +13 -0
- package/dist/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +16 -0
- package/dist/node_modules/lodash-es/_baseClone.js +88 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +21 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +14 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +22 -0
- package/dist/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +14 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +19 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +10 -0
- package/dist/node_modules/lodash-es/_baseToString.js +21 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +16 -0
- package/dist/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.js +9 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +11 -0
- package/dist/node_modules/lodash-es/_copyObject.js +23 -0
- package/dist/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +12 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +25 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +17 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +16 -0
- package/dist/node_modules/lodash-es/_getTag.js +34 -0
- package/dist/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/lodash-es/_hashClear.js +8 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +8 -0
- package/dist/node_modules/lodash-es/_hashGet.js +15 -0
- package/dist/node_modules/lodash-es/_hashHas.js +10 -0
- package/dist/node_modules/lodash-es/_hashSet.js +11 -0
- package/dist/node_modules/lodash-es/_initCloneArray.js +13 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.js +43 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +10 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +20 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +9 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +10 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +15 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +12 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +18 -0
- package/dist/node_modules/lodash-es/_objectToString.js +8 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_root.js +6 -0
- package/dist/node_modules/lodash-es/_stackClear.js +8 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +8 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +22 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +16 -0
- package/dist/node_modules/lodash-es/_toKey.js +11 -0
- package/dist/node_modules/lodash-es/_toSource.js +18 -0
- package/dist/node_modules/lodash-es/clone.js +8 -0
- package/dist/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +13 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +11 -0
- package/dist/node_modules/lodash-es/isFunction.js +13 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isMap.js +8 -0
- package/dist/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +22 -0
- package/dist/node_modules/lodash-es/isSet.js +8 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/memoize.js +22 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPath.js +16 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/lodash.debounce/index.js +137 -0
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +52 -0
- package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +25533 -0
- package/dist/node_modules/object-assign/index.js +73 -0
- package/dist/node_modules/performance-now/lib/performance-now.js +42 -0
- package/dist/node_modules/popper.js/dist/esm/popper.js +1516 -0
- package/dist/node_modules/prefix-style/index.js +29 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +68 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +58 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +451 -0
- package/dist/node_modules/prop-types/index.js +20 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/dist/node_modules/prop-types/lib/has.js +11 -0
- package/dist/node_modules/property-expr/index.js +105 -0
- package/dist/node_modules/qrcode.react/lib/esm/index.js +1099 -0
- package/dist/node_modules/raf/index.js +67 -0
- package/dist/node_modules/react-collapse/lib/Collapse.js +285 -0
- package/dist/node_modules/react-collapse/lib/UnmountClosed.js +278 -0
- package/dist/node_modules/react-collapse/lib/index.js +17 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +209 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/index.js +14 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +85 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +706 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +67 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +24 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +44 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +19 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +325 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +59 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +25 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +282 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +40 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +72 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +30 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +41 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +43 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +39 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +62 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +145 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +128 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +100 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +55 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +53 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +52 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +61 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
- package/dist/node_modules/react-fast-compare/index.js +63 -0
- package/dist/node_modules/react-helmet/es/Helmet.js +717 -0
- package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +81 -0
- package/dist/node_modules/react-intersection-observer/dist/index.js +178 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +157 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +98 -0
- package/dist/node_modules/react-is/index.js +17 -0
- package/dist/node_modules/react-otp-input/lib/index.esm.js +168 -0
- package/dist/node_modules/react-portal/es/LegacyPortal.js +91 -0
- package/dist/node_modules/react-portal/es/Portal.js +74 -0
- package/dist/node_modules/react-portal/es/PortalCompat.js +12 -0
- package/dist/node_modules/react-portal/es/utils.js +4 -0
- package/dist/node_modules/react-property/lib/index.js +471 -0
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +499 -0
- package/dist/node_modules/react-range/lib/Range.js +592 -0
- package/dist/node_modules/react-range/lib/index.js +39 -0
- package/dist/node_modules/react-range/lib/types.js +19 -0
- package/dist/node_modules/react-range/lib/utils.js +318 -0
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +2317 -0
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +1071 -0
- package/dist/node_modules/react-select/dist/react-select.esm.js +20 -0
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +75 -0
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +51 -0
- package/dist/node_modules/react-side-effect/lib/index.js +105 -0
- package/dist/node_modules/react-slick/lib/arrows.js +248 -0
- package/dist/node_modules/react-slick/lib/default-props.js +85 -0
- package/dist/node_modules/react-slick/lib/dots.js +192 -0
- package/dist/node_modules/react-slick/lib/index.js +22 -0
- package/dist/node_modules/react-slick/lib/initial-state.js +48 -0
- package/dist/node_modules/react-slick/lib/inner-slider.js +810 -0
- package/dist/node_modules/react-slick/lib/slider.js +333 -0
- package/dist/node_modules/react-slick/lib/track.js +330 -0
- package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +730 -0
- package/dist/node_modules/react-table/dist/react-table.development.js +3684 -0
- package/dist/node_modules/react-table/dist/react-table.production.min.js +1637 -0
- package/dist/node_modules/react-table/index.js +17 -0
- package/dist/node_modules/react-tippy/dist/react-tippy.js +1981 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +495 -0
- package/dist/node_modules/string-convert/camel2hyphen.js +16 -0
- package/dist/node_modules/style-to-js/cjs/index.js +31 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +42 -0
- package/dist/node_modules/style-to-object/cjs/index.js +38 -0
- package/dist/node_modules/stylis/src/Enum.js +20 -0
- package/dist/node_modules/stylis/src/Middleware.js +22 -0
- package/dist/node_modules/stylis/src/Parser.js +157 -0
- package/dist/node_modules/stylis/src/Serializer.js +29 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +160 -0
- package/dist/node_modules/stylis/src/Utility.js +52 -0
- package/dist/node_modules/tiny-case/index.js +33 -0
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +16 -0
- package/dist/node_modules/to-camel-case/index.js +18 -0
- package/dist/node_modules/to-no-case/index.js +32 -0
- package/dist/node_modules/to-space-case/index.js +18 -0
- package/dist/node_modules/toggle-selection/index.js +42 -0
- package/dist/node_modules/toposort/index.js +79 -0
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
- package/dist/node_modules/yup/index.esm.js +1921 -0
- package/dist/routing/RouterWrapper.js +1 -1
- package/dist/styles/global.js +2 -2
- package/dist/utils/copyToClipboard.js +7 -7
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/moment.js +2 -3
- package/dist/utils/redirect-url.js +2 -2
- package/dist/utils/set-redirect-cookie.js +2 -2
- package/dist/utils/transition.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
import { getDefaultsFromPostinstall } from "./postinstall.js";
|
|
2
|
+
const stringToByteArray$1 = function(str) {
|
|
3
|
+
const out = [];
|
|
4
|
+
let p = 0;
|
|
5
|
+
for (let i = 0; i < str.length; i++) {
|
|
6
|
+
let c = str.charCodeAt(i);
|
|
7
|
+
if (c < 128) {
|
|
8
|
+
out[p++] = c;
|
|
9
|
+
} else if (c < 2048) {
|
|
10
|
+
out[p++] = c >> 6 | 192;
|
|
11
|
+
out[p++] = c & 63 | 128;
|
|
12
|
+
} else if ((c & 64512) === 55296 && i + 1 < str.length && (str.charCodeAt(i + 1) & 64512) === 56320) {
|
|
13
|
+
c = 65536 + ((c & 1023) << 10) + (str.charCodeAt(++i) & 1023);
|
|
14
|
+
out[p++] = c >> 18 | 240;
|
|
15
|
+
out[p++] = c >> 12 & 63 | 128;
|
|
16
|
+
out[p++] = c >> 6 & 63 | 128;
|
|
17
|
+
out[p++] = c & 63 | 128;
|
|
18
|
+
} else {
|
|
19
|
+
out[p++] = c >> 12 | 224;
|
|
20
|
+
out[p++] = c >> 6 & 63 | 128;
|
|
21
|
+
out[p++] = c & 63 | 128;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return out;
|
|
25
|
+
};
|
|
26
|
+
const byteArrayToString = function(bytes) {
|
|
27
|
+
const out = [];
|
|
28
|
+
let pos = 0, c = 0;
|
|
29
|
+
while (pos < bytes.length) {
|
|
30
|
+
const c1 = bytes[pos++];
|
|
31
|
+
if (c1 < 128) {
|
|
32
|
+
out[c++] = String.fromCharCode(c1);
|
|
33
|
+
} else if (c1 > 191 && c1 < 224) {
|
|
34
|
+
const c2 = bytes[pos++];
|
|
35
|
+
out[c++] = String.fromCharCode((c1 & 31) << 6 | c2 & 63);
|
|
36
|
+
} else if (c1 > 239 && c1 < 365) {
|
|
37
|
+
const c2 = bytes[pos++];
|
|
38
|
+
const c3 = bytes[pos++];
|
|
39
|
+
const c4 = bytes[pos++];
|
|
40
|
+
const u = ((c1 & 7) << 18 | (c2 & 63) << 12 | (c3 & 63) << 6 | c4 & 63) - 65536;
|
|
41
|
+
out[c++] = String.fromCharCode(55296 + (u >> 10));
|
|
42
|
+
out[c++] = String.fromCharCode(56320 + (u & 1023));
|
|
43
|
+
} else {
|
|
44
|
+
const c2 = bytes[pos++];
|
|
45
|
+
const c3 = bytes[pos++];
|
|
46
|
+
out[c++] = String.fromCharCode((c1 & 15) << 12 | (c2 & 63) << 6 | c3 & 63);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return out.join("");
|
|
50
|
+
};
|
|
51
|
+
const base64 = {
|
|
52
|
+
/**
|
|
53
|
+
* Maps bytes to characters.
|
|
54
|
+
*/
|
|
55
|
+
byteToCharMap_: null,
|
|
56
|
+
/**
|
|
57
|
+
* Maps characters to bytes.
|
|
58
|
+
*/
|
|
59
|
+
charToByteMap_: null,
|
|
60
|
+
/**
|
|
61
|
+
* Maps bytes to websafe characters.
|
|
62
|
+
* @private
|
|
63
|
+
*/
|
|
64
|
+
byteToCharMapWebSafe_: null,
|
|
65
|
+
/**
|
|
66
|
+
* Maps websafe characters to bytes.
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
charToByteMapWebSafe_: null,
|
|
70
|
+
/**
|
|
71
|
+
* Our default alphabet, shared between
|
|
72
|
+
* ENCODED_VALS and ENCODED_VALS_WEBSAFE
|
|
73
|
+
*/
|
|
74
|
+
ENCODED_VALS_BASE: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
|
|
75
|
+
/**
|
|
76
|
+
* Our default alphabet. Value 64 (=) is special; it means "nothing."
|
|
77
|
+
*/
|
|
78
|
+
get ENCODED_VALS() {
|
|
79
|
+
return this.ENCODED_VALS_BASE + "+/=";
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Our websafe alphabet.
|
|
83
|
+
*/
|
|
84
|
+
get ENCODED_VALS_WEBSAFE() {
|
|
85
|
+
return this.ENCODED_VALS_BASE + "-_.";
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Whether this browser supports the atob and btoa functions. This extension
|
|
89
|
+
* started at Mozilla but is now implemented by many browsers. We use the
|
|
90
|
+
* ASSUME_* variables to avoid pulling in the full useragent detection library
|
|
91
|
+
* but still allowing the standard per-browser compilations.
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
HAS_NATIVE_SUPPORT: typeof atob === "function",
|
|
95
|
+
/**
|
|
96
|
+
* Base64-encode an array of bytes.
|
|
97
|
+
*
|
|
98
|
+
* @param input An array of bytes (numbers with
|
|
99
|
+
* value in [0, 255]) to encode.
|
|
100
|
+
* @param webSafe Boolean indicating we should use the
|
|
101
|
+
* alternative alphabet.
|
|
102
|
+
* @return The base64 encoded string.
|
|
103
|
+
*/
|
|
104
|
+
encodeByteArray(input, webSafe) {
|
|
105
|
+
if (!Array.isArray(input)) {
|
|
106
|
+
throw Error("encodeByteArray takes an array as a parameter");
|
|
107
|
+
}
|
|
108
|
+
this.init_();
|
|
109
|
+
const byteToCharMap = webSafe ? this.byteToCharMapWebSafe_ : this.byteToCharMap_;
|
|
110
|
+
const output = [];
|
|
111
|
+
for (let i = 0; i < input.length; i += 3) {
|
|
112
|
+
const byte1 = input[i];
|
|
113
|
+
const haveByte2 = i + 1 < input.length;
|
|
114
|
+
const byte2 = haveByte2 ? input[i + 1] : 0;
|
|
115
|
+
const haveByte3 = i + 2 < input.length;
|
|
116
|
+
const byte3 = haveByte3 ? input[i + 2] : 0;
|
|
117
|
+
const outByte1 = byte1 >> 2;
|
|
118
|
+
const outByte2 = (byte1 & 3) << 4 | byte2 >> 4;
|
|
119
|
+
let outByte3 = (byte2 & 15) << 2 | byte3 >> 6;
|
|
120
|
+
let outByte4 = byte3 & 63;
|
|
121
|
+
if (!haveByte3) {
|
|
122
|
+
outByte4 = 64;
|
|
123
|
+
if (!haveByte2) {
|
|
124
|
+
outByte3 = 64;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
output.push(byteToCharMap[outByte1], byteToCharMap[outByte2], byteToCharMap[outByte3], byteToCharMap[outByte4]);
|
|
128
|
+
}
|
|
129
|
+
return output.join("");
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* Base64-encode a string.
|
|
133
|
+
*
|
|
134
|
+
* @param input A string to encode.
|
|
135
|
+
* @param webSafe If true, we should use the
|
|
136
|
+
* alternative alphabet.
|
|
137
|
+
* @return The base64 encoded string.
|
|
138
|
+
*/
|
|
139
|
+
encodeString(input, webSafe) {
|
|
140
|
+
if (this.HAS_NATIVE_SUPPORT && !webSafe) {
|
|
141
|
+
return btoa(input);
|
|
142
|
+
}
|
|
143
|
+
return this.encodeByteArray(stringToByteArray$1(input), webSafe);
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
* Base64-decode a string.
|
|
147
|
+
*
|
|
148
|
+
* @param input to decode.
|
|
149
|
+
* @param webSafe True if we should use the
|
|
150
|
+
* alternative alphabet.
|
|
151
|
+
* @return string representing the decoded value.
|
|
152
|
+
*/
|
|
153
|
+
decodeString(input, webSafe) {
|
|
154
|
+
if (this.HAS_NATIVE_SUPPORT && !webSafe) {
|
|
155
|
+
return atob(input);
|
|
156
|
+
}
|
|
157
|
+
return byteArrayToString(this.decodeStringToByteArray(input, webSafe));
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* Base64-decode a string.
|
|
161
|
+
*
|
|
162
|
+
* In base-64 decoding, groups of four characters are converted into three
|
|
163
|
+
* bytes. If the encoder did not apply padding, the input length may not
|
|
164
|
+
* be a multiple of 4.
|
|
165
|
+
*
|
|
166
|
+
* In this case, the last group will have fewer than 4 characters, and
|
|
167
|
+
* padding will be inferred. If the group has one or two characters, it decodes
|
|
168
|
+
* to one byte. If the group has three characters, it decodes to two bytes.
|
|
169
|
+
*
|
|
170
|
+
* @param input Input to decode.
|
|
171
|
+
* @param webSafe True if we should use the web-safe alphabet.
|
|
172
|
+
* @return bytes representing the decoded value.
|
|
173
|
+
*/
|
|
174
|
+
decodeStringToByteArray(input, webSafe) {
|
|
175
|
+
this.init_();
|
|
176
|
+
const charToByteMap = webSafe ? this.charToByteMapWebSafe_ : this.charToByteMap_;
|
|
177
|
+
const output = [];
|
|
178
|
+
for (let i = 0; i < input.length; ) {
|
|
179
|
+
const byte1 = charToByteMap[input.charAt(i++)];
|
|
180
|
+
const haveByte2 = i < input.length;
|
|
181
|
+
const byte2 = haveByte2 ? charToByteMap[input.charAt(i)] : 0;
|
|
182
|
+
++i;
|
|
183
|
+
const haveByte3 = i < input.length;
|
|
184
|
+
const byte3 = haveByte3 ? charToByteMap[input.charAt(i)] : 64;
|
|
185
|
+
++i;
|
|
186
|
+
const haveByte4 = i < input.length;
|
|
187
|
+
const byte4 = haveByte4 ? charToByteMap[input.charAt(i)] : 64;
|
|
188
|
+
++i;
|
|
189
|
+
if (byte1 == null || byte2 == null || byte3 == null || byte4 == null) {
|
|
190
|
+
throw new DecodeBase64StringError();
|
|
191
|
+
}
|
|
192
|
+
const outByte1 = byte1 << 2 | byte2 >> 4;
|
|
193
|
+
output.push(outByte1);
|
|
194
|
+
if (byte3 !== 64) {
|
|
195
|
+
const outByte2 = byte2 << 4 & 240 | byte3 >> 2;
|
|
196
|
+
output.push(outByte2);
|
|
197
|
+
if (byte4 !== 64) {
|
|
198
|
+
const outByte3 = byte3 << 6 & 192 | byte4;
|
|
199
|
+
output.push(outByte3);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return output;
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
* Lazy static initialization function. Called before
|
|
207
|
+
* accessing any of the static map variables.
|
|
208
|
+
* @private
|
|
209
|
+
*/
|
|
210
|
+
init_() {
|
|
211
|
+
if (!this.byteToCharMap_) {
|
|
212
|
+
this.byteToCharMap_ = {};
|
|
213
|
+
this.charToByteMap_ = {};
|
|
214
|
+
this.byteToCharMapWebSafe_ = {};
|
|
215
|
+
this.charToByteMapWebSafe_ = {};
|
|
216
|
+
for (let i = 0; i < this.ENCODED_VALS.length; i++) {
|
|
217
|
+
this.byteToCharMap_[i] = this.ENCODED_VALS.charAt(i);
|
|
218
|
+
this.charToByteMap_[this.byteToCharMap_[i]] = i;
|
|
219
|
+
this.byteToCharMapWebSafe_[i] = this.ENCODED_VALS_WEBSAFE.charAt(i);
|
|
220
|
+
this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]] = i;
|
|
221
|
+
if (i >= this.ENCODED_VALS_BASE.length) {
|
|
222
|
+
this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)] = i;
|
|
223
|
+
this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)] = i;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
class DecodeBase64StringError extends Error {
|
|
230
|
+
constructor() {
|
|
231
|
+
super(...arguments);
|
|
232
|
+
this.name = "DecodeBase64StringError";
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
const base64Encode = function(str) {
|
|
236
|
+
const utf8Bytes = stringToByteArray$1(str);
|
|
237
|
+
return base64.encodeByteArray(utf8Bytes, true);
|
|
238
|
+
};
|
|
239
|
+
const base64urlEncodeWithoutPadding = function(str) {
|
|
240
|
+
return base64Encode(str).replace(/\./g, "");
|
|
241
|
+
};
|
|
242
|
+
const base64Decode = function(str) {
|
|
243
|
+
try {
|
|
244
|
+
return base64.decodeString(str, true);
|
|
245
|
+
} catch (e) {
|
|
246
|
+
console.error("base64Decode failed: ", e);
|
|
247
|
+
}
|
|
248
|
+
return null;
|
|
249
|
+
};
|
|
250
|
+
function getGlobal() {
|
|
251
|
+
if (typeof self !== "undefined") {
|
|
252
|
+
return self;
|
|
253
|
+
}
|
|
254
|
+
if (typeof window !== "undefined") {
|
|
255
|
+
return window;
|
|
256
|
+
}
|
|
257
|
+
if (typeof global !== "undefined") {
|
|
258
|
+
return global;
|
|
259
|
+
}
|
|
260
|
+
throw new Error("Unable to locate global object.");
|
|
261
|
+
}
|
|
262
|
+
const getDefaultsFromGlobal = () => getGlobal().__FIREBASE_DEFAULTS__;
|
|
263
|
+
const getDefaultsFromEnvVariable = () => {
|
|
264
|
+
if (typeof process === "undefined" || typeof process.env === "undefined") {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
const defaultsJsonString = process.env.__FIREBASE_DEFAULTS__;
|
|
268
|
+
if (defaultsJsonString) {
|
|
269
|
+
return JSON.parse(defaultsJsonString);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
const getDefaultsFromCookie = () => {
|
|
273
|
+
if (typeof document === "undefined") {
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
let match;
|
|
277
|
+
try {
|
|
278
|
+
match = document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);
|
|
279
|
+
} catch (e) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
const decoded = match && base64Decode(match[1]);
|
|
283
|
+
return decoded && JSON.parse(decoded);
|
|
284
|
+
};
|
|
285
|
+
const getDefaults = () => {
|
|
286
|
+
try {
|
|
287
|
+
return getDefaultsFromPostinstall() || getDefaultsFromGlobal() || getDefaultsFromEnvVariable() || getDefaultsFromCookie();
|
|
288
|
+
} catch (e) {
|
|
289
|
+
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
const getDefaultEmulatorHost = (productName) => getDefaults()?.emulatorHosts?.[productName];
|
|
294
|
+
const getDefaultAppConfig = () => getDefaults()?.config;
|
|
295
|
+
const getExperimentalSetting = (name) => getDefaults()?.[`_${name}`];
|
|
296
|
+
class Deferred {
|
|
297
|
+
constructor() {
|
|
298
|
+
this.reject = () => {
|
|
299
|
+
};
|
|
300
|
+
this.resolve = () => {
|
|
301
|
+
};
|
|
302
|
+
this.promise = new Promise((resolve, reject) => {
|
|
303
|
+
this.resolve = resolve;
|
|
304
|
+
this.reject = reject;
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
|
|
309
|
+
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
|
|
310
|
+
* and returns a node-style callback which will resolve or reject the Deferred's promise.
|
|
311
|
+
*/
|
|
312
|
+
wrapCallback(callback) {
|
|
313
|
+
return (error, value) => {
|
|
314
|
+
if (error) {
|
|
315
|
+
this.reject(error);
|
|
316
|
+
} else {
|
|
317
|
+
this.resolve(value);
|
|
318
|
+
}
|
|
319
|
+
if (typeof callback === "function") {
|
|
320
|
+
this.promise.catch(() => {
|
|
321
|
+
});
|
|
322
|
+
if (callback.length === 1) {
|
|
323
|
+
callback(error);
|
|
324
|
+
} else {
|
|
325
|
+
callback(error, value);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function isCloudWorkstation(url) {
|
|
332
|
+
try {
|
|
333
|
+
const host = url.startsWith("http://") || url.startsWith("https://") ? new URL(url).hostname : url;
|
|
334
|
+
return host.endsWith(".cloudworkstations.dev");
|
|
335
|
+
} catch {
|
|
336
|
+
return false;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
async function pingServer(endpoint) {
|
|
340
|
+
const result = await fetch(endpoint, {
|
|
341
|
+
credentials: "include"
|
|
342
|
+
});
|
|
343
|
+
return result.ok;
|
|
344
|
+
}
|
|
345
|
+
const emulatorStatus = {};
|
|
346
|
+
function getEmulatorSummary() {
|
|
347
|
+
const summary = {
|
|
348
|
+
prod: [],
|
|
349
|
+
emulator: []
|
|
350
|
+
};
|
|
351
|
+
for (const key of Object.keys(emulatorStatus)) {
|
|
352
|
+
if (emulatorStatus[key]) {
|
|
353
|
+
summary.emulator.push(key);
|
|
354
|
+
} else {
|
|
355
|
+
summary.prod.push(key);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return summary;
|
|
359
|
+
}
|
|
360
|
+
function getOrCreateEl(id) {
|
|
361
|
+
let parentDiv = document.getElementById(id);
|
|
362
|
+
let created = false;
|
|
363
|
+
if (!parentDiv) {
|
|
364
|
+
parentDiv = document.createElement("div");
|
|
365
|
+
parentDiv.setAttribute("id", id);
|
|
366
|
+
created = true;
|
|
367
|
+
}
|
|
368
|
+
return { created, element: parentDiv };
|
|
369
|
+
}
|
|
370
|
+
let previouslyDismissed = false;
|
|
371
|
+
function updateEmulatorBanner(name, isRunningEmulator) {
|
|
372
|
+
if (typeof window === "undefined" || typeof document === "undefined" || !isCloudWorkstation(window.location.host) || emulatorStatus[name] === isRunningEmulator || emulatorStatus[name] || // If already set to use emulator, can't go back to prod.
|
|
373
|
+
previouslyDismissed) {
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
emulatorStatus[name] = isRunningEmulator;
|
|
377
|
+
function prefixedId(id) {
|
|
378
|
+
return `__firebase__banner__${id}`;
|
|
379
|
+
}
|
|
380
|
+
const bannerId = "__firebase__banner";
|
|
381
|
+
const summary = getEmulatorSummary();
|
|
382
|
+
const showError = summary.prod.length > 0;
|
|
383
|
+
function tearDown() {
|
|
384
|
+
const element = document.getElementById(bannerId);
|
|
385
|
+
if (element) {
|
|
386
|
+
element.remove();
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function setupBannerStyles(bannerEl) {
|
|
390
|
+
bannerEl.style.display = "flex";
|
|
391
|
+
bannerEl.style.background = "#7faaf0";
|
|
392
|
+
bannerEl.style.position = "fixed";
|
|
393
|
+
bannerEl.style.bottom = "5px";
|
|
394
|
+
bannerEl.style.left = "5px";
|
|
395
|
+
bannerEl.style.padding = ".5em";
|
|
396
|
+
bannerEl.style.borderRadius = "5px";
|
|
397
|
+
bannerEl.style.alignItems = "center";
|
|
398
|
+
}
|
|
399
|
+
function setupIconStyles(prependIcon, iconId) {
|
|
400
|
+
prependIcon.setAttribute("width", "24");
|
|
401
|
+
prependIcon.setAttribute("id", iconId);
|
|
402
|
+
prependIcon.setAttribute("height", "24");
|
|
403
|
+
prependIcon.setAttribute("viewBox", "0 0 24 24");
|
|
404
|
+
prependIcon.setAttribute("fill", "none");
|
|
405
|
+
prependIcon.style.marginLeft = "-6px";
|
|
406
|
+
}
|
|
407
|
+
function setupCloseBtn() {
|
|
408
|
+
const closeBtn = document.createElement("span");
|
|
409
|
+
closeBtn.style.cursor = "pointer";
|
|
410
|
+
closeBtn.style.marginLeft = "16px";
|
|
411
|
+
closeBtn.style.fontSize = "24px";
|
|
412
|
+
closeBtn.innerHTML = " ×";
|
|
413
|
+
closeBtn.onclick = () => {
|
|
414
|
+
previouslyDismissed = true;
|
|
415
|
+
tearDown();
|
|
416
|
+
};
|
|
417
|
+
return closeBtn;
|
|
418
|
+
}
|
|
419
|
+
function setupLinkStyles(learnMoreLink, learnMoreId) {
|
|
420
|
+
learnMoreLink.setAttribute("id", learnMoreId);
|
|
421
|
+
learnMoreLink.innerText = "Learn more";
|
|
422
|
+
learnMoreLink.href = "https://firebase.google.com/docs/studio/preview-apps#preview-backend";
|
|
423
|
+
learnMoreLink.setAttribute("target", "__blank");
|
|
424
|
+
learnMoreLink.style.paddingLeft = "5px";
|
|
425
|
+
learnMoreLink.style.textDecoration = "underline";
|
|
426
|
+
}
|
|
427
|
+
function setupDom() {
|
|
428
|
+
const banner = getOrCreateEl(bannerId);
|
|
429
|
+
const firebaseTextId = prefixedId("text");
|
|
430
|
+
const firebaseText = document.getElementById(firebaseTextId) || document.createElement("span");
|
|
431
|
+
const learnMoreId = prefixedId("learnmore");
|
|
432
|
+
const learnMoreLink = document.getElementById(learnMoreId) || document.createElement("a");
|
|
433
|
+
const prependIconId = prefixedId("preprendIcon");
|
|
434
|
+
const prependIcon = document.getElementById(prependIconId) || document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
435
|
+
if (banner.created) {
|
|
436
|
+
const bannerEl = banner.element;
|
|
437
|
+
setupBannerStyles(bannerEl);
|
|
438
|
+
setupLinkStyles(learnMoreLink, learnMoreId);
|
|
439
|
+
const closeBtn = setupCloseBtn();
|
|
440
|
+
setupIconStyles(prependIcon, prependIconId);
|
|
441
|
+
bannerEl.append(prependIcon, firebaseText, learnMoreLink, closeBtn);
|
|
442
|
+
document.body.appendChild(bannerEl);
|
|
443
|
+
}
|
|
444
|
+
if (showError) {
|
|
445
|
+
firebaseText.innerText = `Preview backend disconnected.`;
|
|
446
|
+
prependIcon.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
|
|
447
|
+
<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
|
|
448
|
+
</g>
|
|
449
|
+
<defs>
|
|
450
|
+
<clipPath id="clip0_6013_33858">
|
|
451
|
+
<rect width="24" height="24" fill="white"/>
|
|
452
|
+
</clipPath>
|
|
453
|
+
</defs>`;
|
|
454
|
+
} else {
|
|
455
|
+
prependIcon.innerHTML = `<g clip-path="url(#clip0_6083_34804)">
|
|
456
|
+
<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
|
|
457
|
+
</g>
|
|
458
|
+
<defs>
|
|
459
|
+
<clipPath id="clip0_6083_34804">
|
|
460
|
+
<rect width="24" height="24" fill="white"/>
|
|
461
|
+
</clipPath>
|
|
462
|
+
</defs>`;
|
|
463
|
+
firebaseText.innerText = "Preview backend running in this workspace.";
|
|
464
|
+
}
|
|
465
|
+
firebaseText.setAttribute("id", firebaseTextId);
|
|
466
|
+
}
|
|
467
|
+
if (document.readyState === "loading") {
|
|
468
|
+
window.addEventListener("DOMContentLoaded", setupDom);
|
|
469
|
+
} else {
|
|
470
|
+
setupDom();
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function getUA() {
|
|
474
|
+
if (typeof navigator !== "undefined" && typeof navigator["userAgent"] === "string") {
|
|
475
|
+
return navigator["userAgent"];
|
|
476
|
+
} else {
|
|
477
|
+
return "";
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
function isMobileCordova() {
|
|
481
|
+
return typeof window !== "undefined" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
|
482
|
+
// just to deal with this case would probably be a bad idea.
|
|
483
|
+
!!(window["cordova"] || window["phonegap"] || window["PhoneGap"]) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA());
|
|
484
|
+
}
|
|
485
|
+
function isCloudflareWorker() {
|
|
486
|
+
return typeof navigator !== "undefined" && navigator.userAgent === "Cloudflare-Workers";
|
|
487
|
+
}
|
|
488
|
+
function isBrowserExtension() {
|
|
489
|
+
const runtime = typeof chrome === "object" ? chrome.runtime : typeof browser === "object" ? browser.runtime : void 0;
|
|
490
|
+
return typeof runtime === "object" && runtime.id !== void 0;
|
|
491
|
+
}
|
|
492
|
+
function isReactNative() {
|
|
493
|
+
return typeof navigator === "object" && navigator["product"] === "ReactNative";
|
|
494
|
+
}
|
|
495
|
+
function isIE() {
|
|
496
|
+
const ua = getUA();
|
|
497
|
+
return ua.indexOf("MSIE ") >= 0 || ua.indexOf("Trident/") >= 0;
|
|
498
|
+
}
|
|
499
|
+
function isIndexedDBAvailable() {
|
|
500
|
+
try {
|
|
501
|
+
return typeof indexedDB === "object";
|
|
502
|
+
} catch (e) {
|
|
503
|
+
return false;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
function validateIndexedDBOpenable() {
|
|
507
|
+
return new Promise((resolve, reject) => {
|
|
508
|
+
try {
|
|
509
|
+
let preExist = true;
|
|
510
|
+
const DB_CHECK_NAME = "validate-browser-context-for-indexeddb-analytics-module";
|
|
511
|
+
const request = self.indexedDB.open(DB_CHECK_NAME);
|
|
512
|
+
request.onsuccess = () => {
|
|
513
|
+
request.result.close();
|
|
514
|
+
if (!preExist) {
|
|
515
|
+
self.indexedDB.deleteDatabase(DB_CHECK_NAME);
|
|
516
|
+
}
|
|
517
|
+
resolve(true);
|
|
518
|
+
};
|
|
519
|
+
request.onupgradeneeded = () => {
|
|
520
|
+
preExist = false;
|
|
521
|
+
};
|
|
522
|
+
request.onerror = () => {
|
|
523
|
+
reject(request.error?.message || "");
|
|
524
|
+
};
|
|
525
|
+
} catch (error) {
|
|
526
|
+
reject(error);
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
const ERROR_NAME = "FirebaseError";
|
|
531
|
+
class FirebaseError extends Error {
|
|
532
|
+
constructor(code, message, customData) {
|
|
533
|
+
super(message);
|
|
534
|
+
this.code = code;
|
|
535
|
+
this.customData = customData;
|
|
536
|
+
this.name = ERROR_NAME;
|
|
537
|
+
Object.setPrototypeOf(this, FirebaseError.prototype);
|
|
538
|
+
if (Error.captureStackTrace) {
|
|
539
|
+
Error.captureStackTrace(this, ErrorFactory.prototype.create);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
class ErrorFactory {
|
|
544
|
+
constructor(service, serviceName, errors) {
|
|
545
|
+
this.service = service;
|
|
546
|
+
this.serviceName = serviceName;
|
|
547
|
+
this.errors = errors;
|
|
548
|
+
}
|
|
549
|
+
create(code, ...data) {
|
|
550
|
+
const customData = data[0] || {};
|
|
551
|
+
const fullCode = `${this.service}/${code}`;
|
|
552
|
+
const template = this.errors[code];
|
|
553
|
+
const message = template ? replaceTemplate(template, customData) : "Error";
|
|
554
|
+
const fullMessage = `${this.serviceName}: ${message} (${fullCode}).`;
|
|
555
|
+
const error = new FirebaseError(fullCode, fullMessage, customData);
|
|
556
|
+
return error;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function replaceTemplate(template, data) {
|
|
560
|
+
return template.replace(PATTERN, (_, key) => {
|
|
561
|
+
const value = data[key];
|
|
562
|
+
return value != null ? String(value) : `<${key}?>`;
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
const PATTERN = /\{\$([^}]+)}/g;
|
|
566
|
+
function isEmpty(obj) {
|
|
567
|
+
for (const key in obj) {
|
|
568
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
569
|
+
return false;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return true;
|
|
573
|
+
}
|
|
574
|
+
function deepEqual(a, b) {
|
|
575
|
+
if (a === b) {
|
|
576
|
+
return true;
|
|
577
|
+
}
|
|
578
|
+
const aKeys = Object.keys(a);
|
|
579
|
+
const bKeys = Object.keys(b);
|
|
580
|
+
for (const k of aKeys) {
|
|
581
|
+
if (!bKeys.includes(k)) {
|
|
582
|
+
return false;
|
|
583
|
+
}
|
|
584
|
+
const aProp = a[k];
|
|
585
|
+
const bProp = b[k];
|
|
586
|
+
if (isObject(aProp) && isObject(bProp)) {
|
|
587
|
+
if (!deepEqual(aProp, bProp)) {
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
590
|
+
} else if (aProp !== bProp) {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
for (const k of bKeys) {
|
|
595
|
+
if (!aKeys.includes(k)) {
|
|
596
|
+
return false;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return true;
|
|
600
|
+
}
|
|
601
|
+
function isObject(thing) {
|
|
602
|
+
return thing !== null && typeof thing === "object";
|
|
603
|
+
}
|
|
604
|
+
function querystring(querystringParams) {
|
|
605
|
+
const params = [];
|
|
606
|
+
for (const [key, value] of Object.entries(querystringParams)) {
|
|
607
|
+
if (Array.isArray(value)) {
|
|
608
|
+
value.forEach((arrayVal) => {
|
|
609
|
+
params.push(encodeURIComponent(key) + "=" + encodeURIComponent(arrayVal));
|
|
610
|
+
});
|
|
611
|
+
} else {
|
|
612
|
+
params.push(encodeURIComponent(key) + "=" + encodeURIComponent(value));
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return params.length ? "&" + params.join("&") : "";
|
|
616
|
+
}
|
|
617
|
+
function querystringDecode(querystring2) {
|
|
618
|
+
const obj = {};
|
|
619
|
+
const tokens = querystring2.replace(/^\?/, "").split("&");
|
|
620
|
+
tokens.forEach((token) => {
|
|
621
|
+
if (token) {
|
|
622
|
+
const [key, value] = token.split("=");
|
|
623
|
+
obj[decodeURIComponent(key)] = decodeURIComponent(value);
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
return obj;
|
|
627
|
+
}
|
|
628
|
+
function extractQuerystring(url) {
|
|
629
|
+
const queryStart = url.indexOf("?");
|
|
630
|
+
if (!queryStart) {
|
|
631
|
+
return "";
|
|
632
|
+
}
|
|
633
|
+
const fragmentStart = url.indexOf("#", queryStart);
|
|
634
|
+
return url.substring(queryStart, fragmentStart > 0 ? fragmentStart : void 0);
|
|
635
|
+
}
|
|
636
|
+
function createSubscribe(executor, onNoObservers) {
|
|
637
|
+
const proxy = new ObserverProxy(executor, onNoObservers);
|
|
638
|
+
return proxy.subscribe.bind(proxy);
|
|
639
|
+
}
|
|
640
|
+
class ObserverProxy {
|
|
641
|
+
/**
|
|
642
|
+
* @param executor Function which can make calls to a single Observer
|
|
643
|
+
* as a proxy.
|
|
644
|
+
* @param onNoObservers Callback when count of Observers goes to zero.
|
|
645
|
+
*/
|
|
646
|
+
constructor(executor, onNoObservers) {
|
|
647
|
+
this.observers = [];
|
|
648
|
+
this.unsubscribes = [];
|
|
649
|
+
this.observerCount = 0;
|
|
650
|
+
this.task = Promise.resolve();
|
|
651
|
+
this.finalized = false;
|
|
652
|
+
this.onNoObservers = onNoObservers;
|
|
653
|
+
this.task.then(() => {
|
|
654
|
+
executor(this);
|
|
655
|
+
}).catch((e) => {
|
|
656
|
+
this.error(e);
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
next(value) {
|
|
660
|
+
this.forEachObserver((observer) => {
|
|
661
|
+
observer.next(value);
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
error(error) {
|
|
665
|
+
this.forEachObserver((observer) => {
|
|
666
|
+
observer.error(error);
|
|
667
|
+
});
|
|
668
|
+
this.close(error);
|
|
669
|
+
}
|
|
670
|
+
complete() {
|
|
671
|
+
this.forEachObserver((observer) => {
|
|
672
|
+
observer.complete();
|
|
673
|
+
});
|
|
674
|
+
this.close();
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Subscribe function that can be used to add an Observer to the fan-out list.
|
|
678
|
+
*
|
|
679
|
+
* - We require that no event is sent to a subscriber synchronously to their
|
|
680
|
+
* call to subscribe().
|
|
681
|
+
*/
|
|
682
|
+
subscribe(nextOrObserver, error, complete) {
|
|
683
|
+
let observer;
|
|
684
|
+
if (nextOrObserver === void 0 && error === void 0 && complete === void 0) {
|
|
685
|
+
throw new Error("Missing Observer.");
|
|
686
|
+
}
|
|
687
|
+
if (implementsAnyMethods(nextOrObserver, [
|
|
688
|
+
"next",
|
|
689
|
+
"error",
|
|
690
|
+
"complete"
|
|
691
|
+
])) {
|
|
692
|
+
observer = nextOrObserver;
|
|
693
|
+
} else {
|
|
694
|
+
observer = {
|
|
695
|
+
next: nextOrObserver,
|
|
696
|
+
error,
|
|
697
|
+
complete
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
if (observer.next === void 0) {
|
|
701
|
+
observer.next = noop;
|
|
702
|
+
}
|
|
703
|
+
if (observer.error === void 0) {
|
|
704
|
+
observer.error = noop;
|
|
705
|
+
}
|
|
706
|
+
if (observer.complete === void 0) {
|
|
707
|
+
observer.complete = noop;
|
|
708
|
+
}
|
|
709
|
+
const unsub = this.unsubscribeOne.bind(this, this.observers.length);
|
|
710
|
+
if (this.finalized) {
|
|
711
|
+
this.task.then(() => {
|
|
712
|
+
try {
|
|
713
|
+
if (this.finalError) {
|
|
714
|
+
observer.error(this.finalError);
|
|
715
|
+
} else {
|
|
716
|
+
observer.complete();
|
|
717
|
+
}
|
|
718
|
+
} catch (e) {
|
|
719
|
+
}
|
|
720
|
+
return;
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
this.observers.push(observer);
|
|
724
|
+
return unsub;
|
|
725
|
+
}
|
|
726
|
+
// Unsubscribe is synchronous - we guarantee that no events are sent to
|
|
727
|
+
// any unsubscribed Observer.
|
|
728
|
+
unsubscribeOne(i) {
|
|
729
|
+
if (this.observers === void 0 || this.observers[i] === void 0) {
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
delete this.observers[i];
|
|
733
|
+
this.observerCount -= 1;
|
|
734
|
+
if (this.observerCount === 0 && this.onNoObservers !== void 0) {
|
|
735
|
+
this.onNoObservers(this);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
forEachObserver(fn) {
|
|
739
|
+
if (this.finalized) {
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
for (let i = 0; i < this.observers.length; i++) {
|
|
743
|
+
this.sendOne(i, fn);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
// Call the Observer via one of it's callback function. We are careful to
|
|
747
|
+
// confirm that the observe has not been unsubscribed since this asynchronous
|
|
748
|
+
// function had been queued.
|
|
749
|
+
sendOne(i, fn) {
|
|
750
|
+
this.task.then(() => {
|
|
751
|
+
if (this.observers !== void 0 && this.observers[i] !== void 0) {
|
|
752
|
+
try {
|
|
753
|
+
fn(this.observers[i]);
|
|
754
|
+
} catch (e) {
|
|
755
|
+
if (typeof console !== "undefined" && console.error) {
|
|
756
|
+
console.error(e);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
close(err) {
|
|
763
|
+
if (this.finalized) {
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
this.finalized = true;
|
|
767
|
+
if (err !== void 0) {
|
|
768
|
+
this.finalError = err;
|
|
769
|
+
}
|
|
770
|
+
this.task.then(() => {
|
|
771
|
+
this.observers = void 0;
|
|
772
|
+
this.onNoObservers = void 0;
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
function implementsAnyMethods(obj, methods) {
|
|
777
|
+
if (typeof obj !== "object" || obj === null) {
|
|
778
|
+
return false;
|
|
779
|
+
}
|
|
780
|
+
for (const method of methods) {
|
|
781
|
+
if (method in obj && typeof obj[method] === "function") {
|
|
782
|
+
return true;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return false;
|
|
786
|
+
}
|
|
787
|
+
function noop() {
|
|
788
|
+
}
|
|
789
|
+
function getModularInstance(service) {
|
|
790
|
+
if (service && service._delegate) {
|
|
791
|
+
return service._delegate;
|
|
792
|
+
} else {
|
|
793
|
+
return service;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
export {
|
|
797
|
+
DecodeBase64StringError,
|
|
798
|
+
Deferred,
|
|
799
|
+
ErrorFactory,
|
|
800
|
+
FirebaseError,
|
|
801
|
+
base64,
|
|
802
|
+
base64Decode,
|
|
803
|
+
base64Encode,
|
|
804
|
+
base64urlEncodeWithoutPadding,
|
|
805
|
+
createSubscribe,
|
|
806
|
+
deepEqual,
|
|
807
|
+
extractQuerystring,
|
|
808
|
+
getDefaultAppConfig,
|
|
809
|
+
getDefaultEmulatorHost,
|
|
810
|
+
getDefaults,
|
|
811
|
+
getExperimentalSetting,
|
|
812
|
+
getGlobal,
|
|
813
|
+
getModularInstance,
|
|
814
|
+
getUA,
|
|
815
|
+
isBrowserExtension,
|
|
816
|
+
isCloudWorkstation,
|
|
817
|
+
isCloudflareWorker,
|
|
818
|
+
isEmpty,
|
|
819
|
+
isIE,
|
|
820
|
+
isIndexedDBAvailable,
|
|
821
|
+
isMobileCordova,
|
|
822
|
+
isReactNative,
|
|
823
|
+
pingServer,
|
|
824
|
+
querystring,
|
|
825
|
+
querystringDecode,
|
|
826
|
+
updateEmulatorBanner,
|
|
827
|
+
validateIndexedDBOpenable
|
|
828
|
+
};
|