{"version":3,"file":"index-C-uAsnrU.js","sources":["../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.js","../../src/shared/atoms/toast/ToastContext.tsx","../../src/assets/atoms/eye.svg","../../src/assets/atoms/pen.svg","../../src/assets/atoms/search.svg","../../src/assets/atoms/trash.svg","../../src/assets/atoms/atomsAssets.ts","../../src/assets/auth/apple.svg","../../src/assets/auth/authBackground.svg","../../src/assets/auth/google.svg","../../src/assets/auth/mail.svg","../../src/assets/auth/show.svg","../../src/assets/auth/slide1.svg","../../src/assets/auth/slide2.svg","../../src/assets/auth/slide3.svg","../../src/assets/auth/closeEye.svg","../../src/assets/auth/index.tsx","../../src/assets/copy.svg","../../src/assets/copyActive.svg","../../src/assets/dashboard/addIcon.svg","../../src/assets/dashboard/dashboard.svg","../../src/assets/dashboard/activeDashboard.svg","../../src/assets/dashboard/addForm.svg","../../src/assets/dashboard/activeAddForm.svg","../../src/assets/dashboard/downArrowBlue.svg","../../src/assets/dashboard/close.svg","../../src/assets/dashboard/open.svg","../../src/assets/dashboard/trash.svg","../../src/assets/dashboard/nodataImg.svg","../../src/assets/dashboard/updatedLogoDash.svg","../../src/assets/dashboard/dashAssets.ts","../../src/assets/designerRobo.svg","../../src/assets/downArrowWhite.svg","../../src/assets/dropdown/tick.svg","../../src/assets/emailIconWithTick.svg","../../src/assets/fArrow.svg","../../src/assets/layout/header/avatar.svg","../../src/assets/layout/header/chevronDown.svg","../../src/assets/layout/header/profileIcon.svg","../../src/assets/layout/header/signout.svg","../../src/assets/layout/sidebar/address.svg","../../src/assets/layout/sidebar/date.svg","../../src/assets/layout/sidebar/earphone.svg","../../src/assets/layout/sidebar/email.svg","../../src/assets/layout/sidebar/activeEmail.svg","../../src/assets/layout/sidebar/freeTextActive.svg","../../src/assets/layout/sidebar/freeText.svg","../../src/assets/layout/sidebar/gear.svg","../../src/assets/layout/sidebar/headlines.svg","../../src/assets/layout/sidebar/icon.svg","../../src/assets/layout/sidebar/like.svg","../../src/assets/layout/sidebar/multiple.svg","../../src/assets/layout/sidebar/activeMultiple.svg","../../src/assets/layout/sidebar/name.svg","../../src/assets/layout/sidebar/activeName.svg","../../src/assets/layout/sidebar/number.svg","../../src/assets/layout/sidebar/activeNumber.svg","../../src/assets/layout/sidebar/paragraph.svg","../../src/assets/layout/sidebar/activeParagraph.svg","../../src/assets/layout/sidebar/phone.svg","../../src/assets/layout/sidebar/activePhone.svg","../../src/assets/layout/sidebar/rating.svg","../../src/assets/layout/sidebar/activeRating.svg","../../src/assets/layout/sidebar/upload.svg","../../src/assets/layout/sidebar/url.svg","../../src/assets/layout/surveyeditor.svg","../../src/assets/layout/sidebar/matrix.svg","../../src/assets/layout/sidebar/matrixActive.svg","../../src/assets/layout/sidebar/healthcare.svg","../../src/assets/layout/sidebar/activeHealthcare.svg","../../src/assets/layout/sidebar/activeDateTime.svg","../../src/assets/layout/sidebar/dateTime.svg","../../src/assets/layout/layoutAssets.ts","../../src/assets/leftArrow.svg","../../src/assets/liveResult.svg","../../src/assets/poll.svg","../../src/assets/pollImg.svg","../../src/assets/preview/desktop.svg","../../src/assets/preview/desktopHover.svg","../../src/assets/preview/mobileHover.svg","../../src/assets/preview/mobileIcon.svg","../../src/assets/preview/tablet.svg","../../src/assets/preview/tabletHover.svg","../../src/assets/preview/whatsapp.svg","../../src/assets/preview/emailIcon.svg","../../src/assets/preview/device.svg","../../src/assets/preview/copyIcon.svg","../../src/assets/preview/previewAssets.ts","../../src/assets/printer.svg","../../src/assets/printerActive.svg","../../src/assets/qpLogo.svg","../../src/assets/redirectPopupAssets.ts/redirectPopup.svg","../../src/assets/redirectPopupAssets.ts/signUp.svg","../../src/assets/redirectPopupAssets.ts/earnPoints.svg","../../src/assets/redirectPopupAssets.ts/rewards.svg","../../src/assets/redirectPopupAssets.ts/index.ts","../../src/assets/rewardsIcon.svg","../../src/assets/samplePhoto.svg","../../src/assets/saveIcon.svg","../../src/assets/shareIcon.svg","../../src/assets/survey/bin.svg","../../src/assets/survey/copy.svg","../../src/assets/survey/crossIcon.svg","../../src/assets/survey/directionIcon.svg","../../src/assets/survey/dragIcon.svg","../../src/assets/survey/edit.svg","../../src/assets/survey/lightEdit.svg","../../src/assets/survey/logoIcon.svg","../../src/assets/survey/deleteIcon.svg","../../src/assets/survey/addIcon.svg","../../src/assets/survey/complete.svg","../../src/assets/survey/incomplete.svg","../../src/assets/survey/rate.svg","../../src/assets/survey/answers.svg","../../src/assets/survey/skips.svg","../../src/assets/survey/surveyAssests.ts","../../src/assets/surveyIcon.svg","../../src/assets/takeSurvey.svg","../../src/assets/toast/success.svg","../../src/assets/toast/error.svg","../../src/assets/toast/info.svg","../../src/assets/toast/warning.svg","../../src/assets/toast/toastAssets.ts","../../src/assets/trash.svg","../../src/assets/uploadFile.svg","../../src/assets/zeroDegArrow.svg","../../src/assets/deletealert.svg","../../src/assets/threeDots.svg","../../src/assets/Clipboard.svg","../../src/assets/contextclose.svg","../../src/assets/qlementine-icons_rename.svg","../../src/assets/share.svg","../../src/assets/Carbonresult.svg","../../src/assets/image.svg","../../src/assets/uploadIcon.svg","../../src/assets/plusIcon.svg","../../src/assets/colourDelete.svg","../../src/assets/upload-popupbutton.svg","../../src/assets/landingPage/createPollImg.svg","../../src/assets/landingPage/arrowRight.svg","../../src/assets/landingPage/surveyCreated.svg","../../src/assets/landingPage/questionContent.svg","../../src/assets/landingPage/rectangle.svg","../../src/assets/landingPage/frame.svg","../../src/assets/landingPage/ssl.svg","../../src/assets/landingPage/mdiTick.svg","../../src/assets/landingPage/sslCertificate.svg","../../src/assets/landingPage/kemSimpson.svg","../../src/assets/landingPage/sliderBtns.svg","../../src/assets/landingPage/qpiLogo.svg","../../src/assets/landingPage/secondaryHeadline.svg","../../src/assets/landingPage/starsImg.svg","../../src/assets/landingPage/blueArrow.svg","../../src/assets/landingPage/whiteArrow.svg","../../src/assets/landingPage/Icons.svg","../../src/assets/landingPage/newCreatePollImg.svg","../../src/assets/landingPage/LeftImgnew.svg","../../src/assets/landingPage/blueRect.svg","../../src/assets/landingPage/ManImg.svg","../../src/assets/landingPage/FrameLast.svg","../../src/assets/landingPage/updatedLogoHome.svg","../../src/assets/landingPage/landingPageAssets.ts","../../src/assets/assets.ts","../../node_modules/clsx/dist/clsx.mjs","../../src/shared/atoms/typography/TypographyAtom.tsx","../../src/shared/atoms/toast/ToastContainer.tsx","../../node_modules/react-dom/client.js","../../node_modules/lucide-react/dist/esm/shared/src/utils.js","../../node_modules/lucide-react/dist/esm/defaultAttributes.js","../../node_modules/lucide-react/dist/esm/Icon.js","../../node_modules/lucide-react/dist/esm/createLucideIcon.js","../../node_modules/lucide-react/dist/esm/icons/arrow-right.js","../../node_modules/lucide-react/dist/esm/icons/award.js","../../node_modules/lucide-react/dist/esm/icons/badge-check.js","../../node_modules/lucide-react/dist/esm/icons/book-open.js","../../node_modules/lucide-react/dist/esm/icons/brain.js","../../node_modules/lucide-react/dist/esm/icons/briefcase-business.js","../../node_modules/lucide-react/dist/esm/icons/briefcase.js","../../node_modules/lucide-react/dist/esm/icons/building.js","../../node_modules/lucide-react/dist/esm/icons/calendar.js","../../node_modules/lucide-react/dist/esm/icons/camera.js","../../node_modules/lucide-react/dist/esm/icons/chart-line.js","../../node_modules/lucide-react/dist/esm/icons/check.js","../../node_modules/lucide-react/dist/esm/icons/chevron-down.js","../../node_modules/lucide-react/dist/esm/icons/chevron-left.js","../../node_modules/lucide-react/dist/esm/icons/chevron-right.js","../../node_modules/lucide-react/dist/esm/icons/chevron-up.js","../../node_modules/lucide-react/dist/esm/icons/circle-alert.js","../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js","../../node_modules/lucide-react/dist/esm/icons/clock.js","../../node_modules/lucide-react/dist/esm/icons/coffee.js","../../node_modules/lucide-react/dist/esm/icons/credit-card.js","../../node_modules/lucide-react/dist/esm/icons/eye.js","../../node_modules/lucide-react/dist/esm/icons/gift.js","../../node_modules/lucide-react/dist/esm/icons/menu.js","../../node_modules/lucide-react/dist/esm/icons/monitor.js","../../node_modules/lucide-react/dist/esm/icons/refresh-cw.js","../../node_modules/lucide-react/dist/esm/icons/share-2.js","../../node_modules/lucide-react/dist/esm/icons/share.js","../../node_modules/lucide-react/dist/esm/icons/shield.js","../../node_modules/lucide-react/dist/esm/icons/smartphone.js","../../node_modules/lucide-react/dist/esm/icons/star.js","../../node_modules/lucide-react/dist/esm/icons/tablet.js","../../node_modules/lucide-react/dist/esm/icons/target.js","../../node_modules/lucide-react/dist/esm/icons/trash-2.js","../../node_modules/lucide-react/dist/esm/icons/trending-up.js","../../node_modules/lucide-react/dist/esm/icons/upload.js","../../node_modules/lucide-react/dist/esm/icons/user.js","../../node_modules/lucide-react/dist/esm/icons/users.js","../../node_modules/lucide-react/dist/esm/icons/x.js","../../node_modules/lucide-react/dist/esm/icons/zap.js","../../src/features/editorWithImage/PollEditorWithPreview.tsx","../../node_modules/redux/dist/redux.mjs","../../node_modules/immer/dist/immer.mjs","../../node_modules/redux-thunk/dist/redux-thunk.mjs","../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs","../../src/features/survey/slice/getSidebarType.ts","../../src/shared/atoms/spinner/SpinnerAtom.tsx","../../src/shared/atoms/button/ButtonAtom.tsx","../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js","../../node_modules/use-sync-external-store/with-selector.js","../../node_modules/react-redux/dist/react-redux.mjs","../../node_modules/redux-persist/es/constants.js","../../node_modules/redux-persist/es/stateReconciler/autoMergeLevel1.js","../../node_modules/redux-persist/es/createPersistoid.js","../../node_modules/redux-persist/es/getStoredState.js","../../node_modules/redux-persist/es/purgeStoredState.js","../../node_modules/redux-persist/es/persistReducer.js","../../node_modules/redux-persist/es/persistStore.js","../../node_modules/redux-persist/lib/storage/getStorage.js","../../node_modules/redux-persist/lib/storage/createWebStorage.js","../../node_modules/redux-persist/lib/storage/index.js","../../src/shared/utils/accessLOcalStorage.ts","../../node_modules/axios/lib/helpers/bind.js","../../node_modules/axios/lib/utils.js","../../node_modules/axios/lib/core/AxiosError.js","../../node_modules/axios/lib/helpers/null.js","../../node_modules/axios/lib/helpers/toFormData.js","../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../../node_modules/axios/lib/helpers/buildURL.js","../../node_modules/axios/lib/core/InterceptorManager.js","../../node_modules/axios/lib/defaults/transitional.js","../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../../node_modules/axios/lib/platform/browser/classes/FormData.js","../../node_modules/axios/lib/platform/browser/classes/Blob.js","../../node_modules/axios/lib/platform/browser/index.js","../../node_modules/axios/lib/platform/common/utils.js","../../node_modules/axios/lib/platform/index.js","../../node_modules/axios/lib/helpers/toURLEncodedForm.js","../../node_modules/axios/lib/helpers/formDataToJSON.js","../../node_modules/axios/lib/defaults/index.js","../../node_modules/axios/lib/helpers/parseHeaders.js","../../node_modules/axios/lib/core/AxiosHeaders.js","../../node_modules/axios/lib/core/transformData.js","../../node_modules/axios/lib/cancel/isCancel.js","../../node_modules/axios/lib/cancel/CanceledError.js","../../node_modules/axios/lib/core/settle.js","../../node_modules/axios/lib/helpers/parseProtocol.js","../../node_modules/axios/lib/helpers/speedometer.js","../../node_modules/axios/lib/helpers/throttle.js","../../node_modules/axios/lib/helpers/progressEventReducer.js","../../node_modules/axios/lib/helpers/isURLSameOrigin.js","../../node_modules/axios/lib/helpers/cookies.js","../../node_modules/axios/lib/helpers/isAbsoluteURL.js","../../node_modules/axios/lib/helpers/combineURLs.js","../../node_modules/axios/lib/core/buildFullPath.js","../../node_modules/axios/lib/core/mergeConfig.js","../../node_modules/axios/lib/helpers/resolveConfig.js","../../node_modules/axios/lib/adapters/xhr.js","../../node_modules/axios/lib/helpers/composeSignals.js","../../node_modules/axios/lib/helpers/trackStream.js","../../node_modules/axios/lib/adapters/fetch.js","../../node_modules/axios/lib/adapters/adapters.js","../../node_modules/axios/lib/core/dispatchRequest.js","../../node_modules/axios/lib/env/data.js","../../node_modules/axios/lib/helpers/validator.js","../../node_modules/axios/lib/core/Axios.js","../../node_modules/axios/lib/cancel/CancelToken.js","../../node_modules/axios/lib/helpers/spread.js","../../node_modules/axios/lib/helpers/isAxiosError.js","../../node_modules/axios/lib/helpers/HttpStatusCode.js","../../node_modules/axios/lib/axios.js","../../node_modules/axios/index.js","../../src/config/config.ts","../../src/shared/hooks/getAuthToken.ts","../../src/axios/axios.ts","../../src/services/auth.service.ts","../../src/features/auth/slice/AuthSlice.ts","../../src/services/dashboard.service.ts","../../src/services/healthcare.service.ts","../../src/services/redeem.service.ts","../../src/services/survey.service.ts","../../src/services/service.ts","../../src/shared/hooks/createSliceHook.ts","../../src/features/auth/slice/updateUserSlice.ts","../../src/features/auth/slice/userDetailSlice.ts","../../src/features/dashboard/slice/getSurveyByIdPrevSlice.ts","../../src/features/dashboard/slice/getSurveyByIdSlice.ts","../../src/features/dashboard/slice/surveysSlice.ts","../../src/features/painAssessment/slice/getPatientDetailSlice.ts","../../src/features/painAssessment/slice/physiotherapyDashboardSlice.ts","../../src/features/security/captcha/services/captchaServices.ts","../../src/features/security/captcha/helper.ts","../../src/features/security/captcha/slice/getCaptchCodeSlice.ts","../../src/features/survey/slice/attemptSurveySlice.ts","../../src/features/survey/slice/cloneSurveySlice.ts","../../src/features/survey/slice/createSurveyIdSlice.ts","../../src/features/survey/slice/createSurveyNameSlice.ts","../../src/features/survey/slice/createSurveySlice.ts","../../src/features/survey/slice/getFeatureOptionSlice.ts","../../src/features/survey/slice/getPollSettingSlice.ts","../../src/features/survey/slice/getSettingFeatureSlice.ts","../../src/features/survey/slice/getSurveyOrPollForAttemptSlice.ts","../../src/features/survey/slice/getSurveyUrlSlice.ts","../../src/features/survey/slice/qustionSoftDeleteSlice.ts","../../src/features/survey/slice/redeemRewardSlice.ts","../../src/features/survey/slice/trackSurveyClickSlice.ts","../../src/features/survey/slice/updateQuestionOrderSlice.ts","../../src/features/survey/slice/verifyRewardCouponSlice.ts","../../src/features/survey/slice/getOptionByQuestion.ts","../../src/features/survey/slice/getParticipantsBySurveyIdSlice.ts","../../src/features/survey/slice/getSurveyReportSlice.ts","../../src/store/reducer.ts","../../src/store/rootReducer.ts","../../src/store/store.ts","../../src/shared/atoms/imagepoll/partial/UploadImagePoll.tsx","../../src/shared/atoms/popup/PopupAtom.tsx","../../src/shared/atoms/checkbox/Checkbox.tsx","../../src/shared/atoms/input/Input.tsx","../../src/shared/atoms/checkbox/PrevCheckbox.tsx","../../src/shared/atoms/checkbox/SingleCheckBox.tsx","../../src/assets/dropdown/downArrow.svg","../../src/assets/dropdown/upArrow.svg","../../src/shared/atoms/dropdown/Dropdown.tsx","../../src/shared/atoms/dropdown/SurveyDropdown.tsx","../../src/shared/atoms/menu/MenuAtom.tsx","../../src/shared/atoms/pagination/Pagination.tsx","../../node_modules/@remix-run/router/dist/router.js","../../node_modules/react-router/dist/index.js","../../node_modules/react-router-dom/dist/index.js","../../src/shared/atoms/paragraph/sexualFiltrationData.ts","../../src/shared/atoms/paragraph/ParagraphAtom.tsx","../../src/shared/atoms/paragraph/SingleLineAtom.tsx","../../src/shared/atoms/popup/ConfirmationAtom.tsx","../../src/shared/atoms/radio/SurveyRadio.tsx","../../src/shared/atoms/rating/StarRating.tsx","../../src/shared/atoms/rating/RadioRating.tsx","../../src/shared/atoms/rating/SurveyRating.tsx","../../src/features/survey/slice/updateSurveyStatusSlice.ts","../../node_modules/uuid/dist/esm-browser/stringify.js","../../node_modules/uuid/dist/esm-browser/rng.js","../../node_modules/uuid/dist/esm-browser/native.js","../../node_modules/uuid/dist/esm-browser/v4.js","../../src/shared/utils/cookies.ts","../../src/shared/utils/formatDateAndTimeForBrowser.ts","../../src/shared/utils/formatUpdatedDate.ts","../../src/shared/utils/utils.ts","../../src/shared/atoms/tableDropdown/TableDropdown.tsx","../../src/shared/atoms/tooltip/Tooltip.tsx","../../src/shared/atoms/tables/NoDataTable.tsx","../../src/shared/hooks/useOutsideClick.ts","../../src/shared/atoms/Context/Context.tsx","../../src/shared/atoms/tables/TableAtom.tsx","../../src/shared/layout/questionItems.ts","../../src/shared/atoms/drawer/DrawerPopup.tsx","../../src/shared/hooks/useDebounce.ts","../../src/shared/atoms/search/SearchAtom.tsx","../../src/shared/hooks/useReferrerTracker.ts","../../src/utils/labels/labels.ts","../../src/features/dashboard/slice/index.ts","../../src/features/dashboard/slice/surveySoftDeleteSlice.ts","../../src/features/dashboard/pages/Partial/Delete.tsx","../../src/shared/atoms/lines/HorizontalLine.tsx","../../src/features/survey/partial/LinkPublishSurvey.tsx","../../src/features/survey/partial/EmbedPublishSurvey.tsx","../../src/features/survey/partial/EmailPublishSurvey.tsx","../../node_modules/qrcode.react/lib/esm/index.js","../../src/features/survey/partial/QrCodePublishSurvey.tsx","../../src/features/survey/partial/ShareSurveyLink.tsx","../../src/features/dashboard/slice/surveyBulkActionSlice.ts","../../src/features/dashboard/pages/Dashboard.tsx","../../src/routes/redirects.ts","../../src/validation/auth.validation.ts","../../src/shared/hooks/useAuth.ts","../../src/features/auth/partial/ImageSlider.tsx","../../src/features/auth/partial/AuthPage.tsx","../../src/features/auth/pages/Login.tsx","../../src/features/auth/pages/SignUp.tsx","../../src/features/auth/pages/authPages.ts","../../src/features/security/captcha/pages/CaptchaCode.tsx","../../src/features/security/captcha/pages/index.ts","../../src/features/survey/slice/getParticipantResponseSlice.ts","../../src/features/survey/slice/updateQuestionByIdSlice.ts","../../src/features/survey/slice/index.ts","../../src/features/survey/utils/useActiveFeature.tsx","../../src/features/survey/utils/useDropdownOptions.tsx","../../src/features/survey/utils/useFilterSwitchOptions.tsx","../../src/shared/atoms/toggleSwitch/ToggleSwitch.tsx","../../src/features/survey/utils/useToggleSwitches.tsx","../../src/features/survey/utils/surveyUtils.ts","../../node_modules/date-fns/constants.js","../../node_modules/date-fns/constructFrom.js","../../node_modules/date-fns/toDate.js","../../node_modules/date-fns/addDays.js","../../node_modules/date-fns/addMonths.js","../../node_modules/date-fns/addMilliseconds.js","../../node_modules/date-fns/addHours.js","../../node_modules/date-fns/_lib/defaultOptions.js","../../node_modules/date-fns/startOfWeek.js","../../node_modules/date-fns/startOfISOWeek.js","../../node_modules/date-fns/getISOWeekYear.js","../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js","../../node_modules/date-fns/_lib/normalizeDates.js","../../node_modules/date-fns/startOfDay.js","../../node_modules/date-fns/differenceInCalendarDays.js","../../node_modules/date-fns/startOfISOWeekYear.js","../../node_modules/date-fns/addMinutes.js","../../node_modules/date-fns/addQuarters.js","../../node_modules/date-fns/addSeconds.js","../../node_modules/date-fns/addWeeks.js","../../node_modules/date-fns/addYears.js","../../node_modules/date-fns/max.js","../../node_modules/date-fns/min.js","../../node_modules/date-fns/isSameDay.js","../../node_modules/date-fns/isDate.js","../../node_modules/date-fns/isValid.js","../../node_modules/date-fns/differenceInCalendarMonths.js","../../node_modules/date-fns/getQuarter.js","../../node_modules/date-fns/differenceInCalendarQuarters.js","../../node_modules/date-fns/differenceInCalendarYears.js","../../node_modules/date-fns/differenceInDays.js","../../node_modules/date-fns/endOfDay.js","../../node_modules/date-fns/endOfMonth.js","../../node_modules/date-fns/startOfQuarter.js","../../node_modules/date-fns/startOfMonth.js","../../node_modules/date-fns/endOfYear.js","../../node_modules/date-fns/startOfYear.js","../../node_modules/date-fns/endOfWeek.js","../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js","../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js","../../node_modules/date-fns/locale/en-US/_lib/formatLong.js","../../node_modules/date-fns/locale/en-US/_lib/formatRelative.js","../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js","../../node_modules/date-fns/locale/en-US/_lib/localize.js","../../node_modules/date-fns/locale/_lib/buildMatchFn.js","../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js","../../node_modules/date-fns/locale/en-US/_lib/match.js","../../node_modules/date-fns/locale/en-US.js","../../node_modules/date-fns/getDayOfYear.js","../../node_modules/date-fns/getISOWeek.js","../../node_modules/date-fns/getWeekYear.js","../../node_modules/date-fns/startOfWeekYear.js","../../node_modules/date-fns/getWeek.js","../../node_modules/date-fns/_lib/addLeadingZeros.js","../../node_modules/date-fns/_lib/format/lightFormatters.js","../../node_modules/date-fns/_lib/format/formatters.js","../../node_modules/date-fns/_lib/format/longFormatters.js","../../node_modules/date-fns/_lib/protectedTokens.js","../../node_modules/date-fns/format.js","../../node_modules/date-fns/getDate.js","../../node_modules/date-fns/getDay.js","../../node_modules/date-fns/getDaysInMonth.js","../../node_modules/date-fns/getDefaultOptions.js","../../node_modules/date-fns/getHours.js","../../node_modules/date-fns/getISODay.js","../../node_modules/date-fns/getMinutes.js","../../node_modules/date-fns/getMonth.js","../../node_modules/date-fns/getSeconds.js","../../node_modules/date-fns/getTime.js","../../node_modules/date-fns/getYear.js","../../node_modules/date-fns/isAfter.js","../../node_modules/date-fns/isBefore.js","../../node_modules/date-fns/isEqual.js","../../node_modules/date-fns/transpose.js","../../node_modules/date-fns/parse/_lib/Setter.js","../../node_modules/date-fns/parse/_lib/Parser.js","../../node_modules/date-fns/parse/_lib/parsers/EraParser.js","../../node_modules/date-fns/parse/_lib/constants.js","../../node_modules/date-fns/parse/_lib/utils.js","../../node_modules/date-fns/parse/_lib/parsers/YearParser.js","../../node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js","../../node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js","../../node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js","../../node_modules/date-fns/parse/_lib/parsers/QuarterParser.js","../../node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js","../../node_modules/date-fns/parse/_lib/parsers/MonthParser.js","../../node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js","../../node_modules/date-fns/setWeek.js","../../node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js","../../node_modules/date-fns/setISOWeek.js","../../node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js","../../node_modules/date-fns/parse/_lib/parsers/DateParser.js","../../node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js","../../node_modules/date-fns/setDay.js","../../node_modules/date-fns/parse/_lib/parsers/DayParser.js","../../node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js","../../node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js","../../node_modules/date-fns/setISODay.js","../../node_modules/date-fns/parse/_lib/parsers/ISODayParser.js","../../node_modules/date-fns/parse/_lib/parsers/AMPMParser.js","../../node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js","../../node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js","../../node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js","../../node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js","../../node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js","../../node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js","../../node_modules/date-fns/parse/_lib/parsers/MinuteParser.js","../../node_modules/date-fns/parse/_lib/parsers/SecondParser.js","../../node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js","../../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js","../../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js","../../node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js","../../node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js","../../node_modules/date-fns/parse/_lib/parsers.js","../../node_modules/date-fns/parse.js","../../node_modules/date-fns/isSameMonth.js","../../node_modules/date-fns/isSameQuarter.js","../../node_modules/date-fns/isSameYear.js","../../node_modules/date-fns/isWithinInterval.js","../../node_modules/date-fns/subDays.js","../../node_modules/date-fns/parseISO.js","../../node_modules/date-fns/setMonth.js","../../node_modules/date-fns/setHours.js","../../node_modules/date-fns/setMinutes.js","../../node_modules/date-fns/setQuarter.js","../../node_modules/date-fns/setSeconds.js","../../node_modules/date-fns/setYear.js","../../node_modules/date-fns/subMonths.js","../../node_modules/date-fns/subQuarters.js","../../node_modules/date-fns/subWeeks.js","../../node_modules/date-fns/subYears.js","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs","../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs","../../node_modules/react-datepicker/dist/index.es.js","../../node_modules/react-icons/lib/iconContext.mjs","../../node_modules/react-icons/lib/iconBase.mjs","../../node_modules/react-icons/fa/index.mjs","../../src/shared/atoms/calendar/Calendar.tsx","../../src/shared/atoms/dropdown/CustomDropdown.tsx","../../src/features/survey/partial/setting/pollSetting/PollSettingSkelton.tsx","../../src/features/survey/partial/setting/pollSetting/PollSetting.tsx","../../src/features/survey/partial/setting/surveySetting/partial/general/GeneralSetting.tsx","../../src/features/survey/partial/setting/surveySetting/partial/surveyOption/SurveyOption.tsx","../../node_modules/lodash/_listCacheClear.js","../../node_modules/lodash/eq.js","../../node_modules/lodash/_assocIndexOf.js","../../node_modules/lodash/_listCacheDelete.js","../../node_modules/lodash/_listCacheGet.js","../../node_modules/lodash/_listCacheHas.js","../../node_modules/lodash/_listCacheSet.js","../../node_modules/lodash/_ListCache.js","../../node_modules/lodash/_stackClear.js","../../node_modules/lodash/_stackDelete.js","../../node_modules/lodash/_stackGet.js","../../node_modules/lodash/_stackHas.js","../../node_modules/lodash/_freeGlobal.js","../../node_modules/lodash/_root.js","../../node_modules/lodash/_Symbol.js","../../node_modules/lodash/_getRawTag.js","../../node_modules/lodash/_objectToString.js","../../node_modules/lodash/_baseGetTag.js","../../node_modules/lodash/isObject.js","../../node_modules/lodash/isFunction.js","../../node_modules/lodash/_coreJsData.js","../../node_modules/lodash/_isMasked.js","../../node_modules/lodash/_toSource.js","../../node_modules/lodash/_baseIsNative.js","../../node_modules/lodash/_getValue.js","../../node_modules/lodash/_getNative.js","../../node_modules/lodash/_Map.js","../../node_modules/lodash/_nativeCreate.js","../../node_modules/lodash/_hashClear.js","../../node_modules/lodash/_hashDelete.js","../../node_modules/lodash/_hashGet.js","../../node_modules/lodash/_hashHas.js","../../node_modules/lodash/_hashSet.js","../../node_modules/lodash/_Hash.js","../../node_modules/lodash/_mapCacheClear.js","../../node_modules/lodash/_isKeyable.js","../../node_modules/lodash/_getMapData.js","../../node_modules/lodash/_mapCacheDelete.js","../../node_modules/lodash/_mapCacheGet.js","../../node_modules/lodash/_mapCacheHas.js","../../node_modules/lodash/_mapCacheSet.js","../../node_modules/lodash/_MapCache.js","../../node_modules/lodash/_stackSet.js","../../node_modules/lodash/_Stack.js","../../node_modules/lodash/_setCacheAdd.js","../../node_modules/lodash/_setCacheHas.js","../../node_modules/lodash/_SetCache.js","../../node_modules/lodash/_arraySome.js","../../node_modules/lodash/_cacheHas.js","../../node_modules/lodash/_equalArrays.js","../../node_modules/lodash/_Uint8Array.js","../../node_modules/lodash/_mapToArray.js","../../node_modules/lodash/_setToArray.js","../../node_modules/lodash/_equalByTag.js","../../node_modules/lodash/_arrayPush.js","../../node_modules/lodash/isArray.js","../../node_modules/lodash/_baseGetAllKeys.js","../../node_modules/lodash/_arrayFilter.js","../../node_modules/lodash/stubArray.js","../../node_modules/lodash/_getSymbols.js","../../node_modules/lodash/_baseTimes.js","../../node_modules/lodash/isObjectLike.js","../../node_modules/lodash/_baseIsArguments.js","../../node_modules/lodash/isArguments.js","../../node_modules/lodash/stubFalse.js","../../node_modules/lodash/isBuffer.js","../../node_modules/lodash/_isIndex.js","../../node_modules/lodash/isLength.js","../../node_modules/lodash/_baseIsTypedArray.js","../../node_modules/lodash/_baseUnary.js","../../node_modules/lodash/_nodeUtil.js","../../node_modules/lodash/isTypedArray.js","../../node_modules/lodash/_arrayLikeKeys.js","../../node_modules/lodash/_isPrototype.js","../../node_modules/lodash/_overArg.js","../../node_modules/lodash/_nativeKeys.js","../../node_modules/lodash/_baseKeys.js","../../node_modules/lodash/isArrayLike.js","../../node_modules/lodash/keys.js","../../node_modules/lodash/_getAllKeys.js","../../node_modules/lodash/_equalObjects.js","../../node_modules/lodash/_DataView.js","../../node_modules/lodash/_Promise.js","../../node_modules/lodash/_Set.js","../../node_modules/lodash/_WeakMap.js","../../node_modules/lodash/_getTag.js","../../node_modules/lodash/_baseIsEqualDeep.js","../../node_modules/lodash/_baseIsEqual.js","../../node_modules/lodash/isEqual.js","../../node_modules/react-quill/node_modules/quill/dist/quill.js","../../node_modules/react-quill/lib/index.js","../../src/features/survey/partial/setting/surveySetting/partial/startFinish/StartFinishSetting.tsx","../../src/shared/components/headers/surveySettingHeader/SurveySettingHeader.tsx","../../src/features/survey/partial/setting/surveySetting/SurveySetting.tsx","../../src/features/survey/partial/setting/Setting.tsx","../../src/shared/components/attemptRedirectPopup/AttemptRedirectPopup.tsx","../../src/utils/getDeviceType.ts","../../src/shared/hooks/useDeviceType.ts","../../src/features/survey/partial/NoContent.tsx","../../src/features/survey/partial/PollQuestionWrapper.tsx","../../src/shared/atoms/matrix/AttemptMatrix.tsx","../../src/shared/atoms/poweredBy/PoweredBy.tsx","../../src/shared/atoms/RadioButton/ButtonWithRadio.tsx","../../src/shared/atoms/sidebar/email/EmailElement.tsx","../../src/shared/atoms/sidebar/name/NameElement.tsx","../../src/shared/atoms/sidebar/number/NumberElement.tsx","../../src/shared/atoms/sidebar/phone/PhoneElement.tsx","../../src/shared/components/shareOption/ShareOption.tsx","../../src/shared/atoms/imagepoll/PrevImagePoll.tsx","../../src/utils/generateRandomColor.ts","../../src/features/survey/partial/PollResultWithDeals.tsx","../../src/features/survey/partial/PollResult.tsx","../../src/features/survey/partial/PrevAttemptPoll.tsx","../../src/shared/atoms/slider/AttemptSlider.tsx","../../node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs","../../node_modules/framer-motion/dist/es/utils/use-constant.mjs","../../node_modules/framer-motion/dist/es/utils/is-browser.mjs","../../node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs","../../node_modules/framer-motion/dist/es/context/PresenceContext.mjs","../../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs","../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../../node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs","../../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../../node_modules/motion-utils/dist/es/array.mjs","../../node_modules/motion-utils/dist/es/errors.mjs","../../node_modules/motion-utils/dist/es/global-config.mjs","../../node_modules/motion-utils/dist/es/memo.mjs","../../node_modules/motion-utils/dist/es/noop.mjs","../../node_modules/motion-utils/dist/es/progress.mjs","../../node_modules/motion-utils/dist/es/subscription-manager.mjs","../../node_modules/motion-utils/dist/es/time-conversion.mjs","../../node_modules/motion-utils/dist/es/velocity-per-second.mjs","../../node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs","../../node_modules/motion-dom/dist/es/animation/GroupAnimation.mjs","../../node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs","../../node_modules/motion-dom/dist/es/stats/buffer.mjs","../../node_modules/motion-dom/dist/es/utils/is-bezier-definition.mjs","../../node_modules/motion-dom/dist/es/utils/supports/flags.mjs","../../node_modules/motion-dom/dist/es/utils/supports/memo.mjs","../../node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs","../../node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs","../../node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs","../../node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs","../../node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs","../../node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs","../../node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs","../../node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs","../../node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs","../../node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs","../../node_modules/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs","../../node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.mjs","../../node_modules/motion-dom/dist/es/frameloop/order.mjs","../../node_modules/motion-dom/dist/es/frameloop/render-step.mjs","../../node_modules/motion-dom/dist/es/frameloop/batcher.mjs","../../node_modules/motion-dom/dist/es/frameloop/frame.mjs","../../node_modules/motion-dom/dist/es/frameloop/microtask.mjs","../../node_modules/motion-dom/dist/es/frameloop/sync-time.mjs","../../node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs","../../node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs","../../node_modules/motion-dom/dist/es/utils/resolve-elements.mjs","../../node_modules/motion-dom/dist/es/gestures/utils/setup.mjs","../../node_modules/motion-dom/dist/es/gestures/hover.mjs","../../node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs","../../node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs","../../node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs","../../node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs","../../node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs","../../node_modules/motion-dom/dist/es/gestures/press/index.mjs","../../node_modules/motion-dom/dist/es/value/index.mjs","../../node_modules/framer-motion/dist/es/context/LazyContext.mjs","../../node_modules/framer-motion/dist/es/motion/features/definitions.mjs","../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs","../../node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs","../../node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs","../../node_modules/framer-motion/dist/es/render/components/create-proxy.mjs","../../node_modules/framer-motion/dist/es/context/MotionContext/index.mjs","../../node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs","../../node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs","../../node_modules/framer-motion/dist/es/render/utils/variant-props.mjs","../../node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs","../../node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs","../../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs","../../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs","../../node_modules/framer-motion/dist/es/utils/is-ref-object.mjs","../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs","../../node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs","../../node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs","../../node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs","../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs","../../node_modules/framer-motion/dist/es/motion/index.mjs","../../node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs","../../node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/keys-transform.mjs","../../node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs","../../node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs","../../node_modules/framer-motion/dist/es/utils/clamp.mjs","../../node_modules/framer-motion/dist/es/value/types/numbers/index.mjs","../../node_modules/framer-motion/dist/es/value/types/numbers/units.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/transform.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs","../../node_modules/framer-motion/dist/es/render/html/use-props.mjs","../../node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs","../../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/path.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs","../../node_modules/framer-motion/dist/es/render/svg/use-props.mjs","../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs","../../node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs","../../node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs","../../node_modules/framer-motion/dist/es/utils/resolve-value.mjs","../../node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs","../../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs","../../node_modules/framer-motion/dist/es/render/html/config-motion.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/measure.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/render.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/render.mjs","../../node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs","../../node_modules/framer-motion/dist/es/render/svg/config-motion.mjs","../../node_modules/framer-motion/dist/es/render/components/create-factory.mjs","../../node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/keys-position.mjs","../../node_modules/framer-motion/dist/es/render/utils/setters.mjs","../../node_modules/framer-motion/dist/es/value/use-will-change/is.mjs","../../node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs","../../node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs","../../node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs","../../node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs","../../node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs","../../node_modules/framer-motion/dist/es/easing/back.mjs","../../node_modules/framer-motion/dist/es/easing/anticipate.mjs","../../node_modules/framer-motion/dist/es/easing/circ.mjs","../../node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs","../../node_modules/framer-motion/dist/es/animation/utils/is-none.mjs","../../node_modules/framer-motion/dist/es/value/types/utils/sanitize.mjs","../../node_modules/framer-motion/dist/es/value/types/utils/float-regex.mjs","../../node_modules/framer-motion/dist/es/value/types/utils/is-nullish.mjs","../../node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.mjs","../../node_modules/framer-motion/dist/es/value/types/color/utils.mjs","../../node_modules/framer-motion/dist/es/value/types/color/rgba.mjs","../../node_modules/framer-motion/dist/es/value/types/color/hex.mjs","../../node_modules/framer-motion/dist/es/value/types/color/hsla.mjs","../../node_modules/framer-motion/dist/es/value/types/color/index.mjs","../../node_modules/framer-motion/dist/es/value/types/utils/color-regex.mjs","../../node_modules/framer-motion/dist/es/value/types/complex/index.mjs","../../node_modules/framer-motion/dist/es/value/types/complex/filter.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs","../../node_modules/framer-motion/dist/es/render/html/utils/parse-transform.mjs","../../node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs","../../node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs","../../node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs","../../node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs","../../node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs","../../node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs","../../node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.mjs","../../node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs","../../node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.mjs","../../node_modules/framer-motion/dist/es/utils/mix/number.mjs","../../node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs","../../node_modules/framer-motion/dist/es/utils/mix/immediate.mjs","../../node_modules/framer-motion/dist/es/utils/mix/color.mjs","../../node_modules/framer-motion/dist/es/utils/pipe.mjs","../../node_modules/framer-motion/dist/es/utils/mix/visibility.mjs","../../node_modules/framer-motion/dist/es/utils/mix/complex.mjs","../../node_modules/framer-motion/dist/es/utils/mix/index.mjs","../../node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs","../../node_modules/framer-motion/dist/es/animation/generators/spring/defaults.mjs","../../node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs","../../node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs","../../node_modules/framer-motion/dist/es/animation/generators/inertia.mjs","../../node_modules/framer-motion/dist/es/easing/ease.mjs","../../node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs","../../node_modules/framer-motion/dist/es/easing/utils/map.mjs","../../node_modules/framer-motion/dist/es/utils/interpolate.mjs","../../node_modules/framer-motion/dist/es/utils/offsets/fill.mjs","../../node_modules/framer-motion/dist/es/utils/offsets/default.mjs","../../node_modules/framer-motion/dist/es/utils/offsets/time.mjs","../../node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs","../../node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs","../../node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs","../../node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs","../../node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs","../../node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs","../../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs","../../node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs","../../node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs","../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs","../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs","../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs","../../node_modules/framer-motion/dist/es/utils/shallow-compare.mjs","../../node_modules/framer-motion/dist/es/render/utils/get-variant-context.mjs","../../node_modules/framer-motion/dist/es/render/utils/animation-state.mjs","../../node_modules/framer-motion/dist/es/motion/features/Feature.mjs","../../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs","../../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs","../../node_modules/framer-motion/dist/es/motion/features/animations.mjs","../../node_modules/framer-motion/dist/es/events/add-dom-event.mjs","../../node_modules/framer-motion/dist/es/events/event-info.mjs","../../node_modules/framer-motion/dist/es/events/add-pointer-event.mjs","../../node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs","../../node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs","../../node_modules/framer-motion/dist/es/projection/geometry/models.mjs","../../node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs","../../node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs","../../node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs","../../node_modules/framer-motion/dist/es/projection/utils/measure.mjs","../../node_modules/framer-motion/dist/es/utils/get-context-window.mjs","../../node_modules/framer-motion/dist/es/utils/distance.mjs","../../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs","../../node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs","../../node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs","../../node_modules/framer-motion/dist/es/gestures/drag/index.mjs","../../node_modules/framer-motion/dist/es/gestures/pan/index.mjs","../../node_modules/framer-motion/dist/es/projection/node/state.mjs","../../node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs","../../node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs","../../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs","../../node_modules/framer-motion/dist/es/animation/animate/single-value.mjs","../../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs","../../node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs","../../node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs","../../node_modules/framer-motion/dist/es/utils/delay.mjs","../../node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs","../../node_modules/framer-motion/dist/es/projection/geometry/copy.mjs","../../node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs","../../node_modules/framer-motion/dist/es/projection/geometry/utils.mjs","../../node_modules/framer-motion/dist/es/projection/shared/stack.mjs","../../node_modules/framer-motion/dist/es/projection/styles/transform.mjs","../../node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs","../../node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs","../../node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs","../../node_modules/framer-motion/dist/es/motion/features/drag.mjs","../../node_modules/framer-motion/dist/es/gestures/hover.mjs","../../node_modules/framer-motion/dist/es/gestures/focus.mjs","../../node_modules/framer-motion/dist/es/gestures/press.mjs","../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs","../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs","../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs","../../node_modules/framer-motion/dist/es/motion/features/layout.mjs","../../node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs","../../node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs","../../node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs","../../node_modules/framer-motion/dist/es/render/store.mjs","../../node_modules/framer-motion/dist/es/render/utils/motion-values.mjs","../../node_modules/framer-motion/dist/es/render/VisualElement.mjs","../../node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs","../../node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs","../../node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs","../../node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs","../../node_modules/framer-motion/dist/es/render/components/motion/create.mjs","../../node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs","../../src/shared/atoms/healthcare/AttemptHeathcare.tsx","../../src/features/painAssessment/datetime-picker.tsx","../../src/features/survey/partial/PrevAttemSurvey.tsx","../../src/assets/survey/addQuestion.svg","../../src/shared/atoms/question/QuestionAtom.tsx","../../src/assets/survey/cancel.svg","../../src/assets/survey/save.svg","../../src/shared/atoms/checkbox/QuestionCheckbox.tsx","../../src/features/survey/partial/RightContent.tsx","../../src/shared/atoms/rating/Rating.tsx","../../src/shared/atoms/matrix/MatrixAtom.tsx","../../src/shared/atoms/radio/Radio.tsx","../../src/shared/atoms/slider/Slider.tsx","../../src/shared/atoms/imagepoll/ImagePoll.tsx","../../src/shared/atoms/largeImagePoll/LargeImagePoll.tsx","../../src/shared/atoms/healthcare/Healthcare.tsx","../../src/features/survey/partial/SurveySwitchCases.tsx","../../node_modules/react-icons/ti/index.mjs","../../src/features/survey/partial/QuestionCard.tsx","../../src/features/survey/partial/QuestionWrapper.tsx","../../src/features/survey/partial/index.ts","../../src/features/survey/pages/redeem/RedeemedCoupon.tsx","../../src/features/survey/pages/redeem/UserQRScreen.tsx","../../src/features/survey/pages/AttemptSurvey.tsx","../../src/assets/survey/preview.svg","../../src/assets/survey/share.svg","../../src/features/survey/partial/PaginationMulti.tsx","../../src/assets/circle plus.png","../../src/assets/clipboardIcon.png","../../src/shared/components/pageConfirmationPopUp/pageConfirmation.tsx","../../src/features/survey/partial/editor/SurveyEditor.tsx","../../src/features/survey/partial/result/pollResult/SkeletonLoader.tsx","../../src/features/survey/partial/result/pollResult/PollResultView.tsx","../../src/features/survey/partial/result/surveyResult/overview/SurveyOverview.tsx","../../src/features/survey/partial/result/surveyResult/participants/SurveyParticipants.tsx","../../src/features/survey/partial/result/surveyResult/analysis/SurveyAnalysis.tsx","../../src/shared/atoms/rating/RatingReport.tsx","../../src/shared/atoms/multiSelect/ReportMultiple.tsx","../../src/features/survey/partial/result/surveyResult/report/SurveyReport.tsx","../../src/features/survey/partial/result/surveyResult/SurveyResultView.tsx","../../src/features/survey/partial/result/SurveyResult.tsx","../../src/shared/components/headers/CreateFormHeader.tsx","../../src/features/survey/pages/CreateSurvey.tsx","../../src/features/survey/pages/PreviewSurvey.tsx","../../src/assets/ResponseSummaryNavigate.svg","../../src/features/survey/partial/result/surveyResult/participants/participantResponse/SurveyParticipantResponse.tsx","../../src/features/survey/pages/index.ts","../../src/features/features.ts","../../src/features/landingPage/partials/Header.tsx","../../src/features/landingPage/partials/Footer.tsx","../../src/features/landingPage/LandingPage.tsx","../../src/features/landingPage/HomeLayout.tsx","../../src/features/painAssessment/pain-assessment-report.tsx","../../node_modules/lodash/isSymbol.js","../../node_modules/lodash/_isKey.js","../../node_modules/lodash/memoize.js","../../node_modules/lodash/_memoizeCapped.js","../../node_modules/lodash/_stringToPath.js","../../node_modules/lodash/_arrayMap.js","../../node_modules/lodash/_baseToString.js","../../node_modules/lodash/toString.js","../../node_modules/lodash/_castPath.js","../../node_modules/lodash/_toKey.js","../../node_modules/lodash/_baseGet.js","../../node_modules/lodash/get.js","../../node_modules/lodash/isNil.js","../../node_modules/lodash/isString.js","../../node_modules/recharts/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/recharts/node_modules/react-is/index.js","../../node_modules/lodash/isNumber.js","../../node_modules/lodash/isNaN.js","../../node_modules/recharts/es6/util/DataUtils.js","../../node_modules/recharts/es6/util/ShallowEqual.js","../../node_modules/recharts/es6/util/types.js","../../node_modules/recharts/es6/util/ReactUtils.js","../../node_modules/recharts/es6/container/Surface.js","../../node_modules/recharts/es6/container/Layer.js","../../node_modules/recharts/es6/util/LogUtils.js","../../node_modules/lodash/_baseSlice.js","../../node_modules/lodash/_castSlice.js","../../node_modules/lodash/_hasUnicode.js","../../node_modules/lodash/_asciiToArray.js","../../node_modules/lodash/_unicodeToArray.js","../../node_modules/lodash/_stringToArray.js","../../node_modules/lodash/_createCaseFirst.js","../../node_modules/lodash/upperFirst.js","../../node_modules/d3-shape/src/constant.js","../../node_modules/d3-shape/src/math.js","../../node_modules/d3-path/src/path.js","../../node_modules/d3-shape/src/path.js","../../node_modules/d3-shape/src/array.js","../../node_modules/d3-shape/src/curve/linear.js","../../node_modules/d3-shape/src/point.js","../../node_modules/d3-shape/src/line.js","../../node_modules/d3-shape/src/area.js","../../node_modules/d3-shape/src/curve/bump.js","../../node_modules/d3-shape/src/symbol/circle.js","../../node_modules/d3-shape/src/symbol/cross.js","../../node_modules/d3-shape/src/symbol/diamond.js","../../node_modules/d3-shape/src/symbol/square.js","../../node_modules/d3-shape/src/symbol/star.js","../../node_modules/d3-shape/src/symbol/triangle.js","../../node_modules/d3-shape/src/symbol/wye.js","../../node_modules/d3-shape/src/symbol.js","../../node_modules/d3-shape/src/noop.js","../../node_modules/d3-shape/src/curve/basis.js","../../node_modules/d3-shape/src/curve/basisClosed.js","../../node_modules/d3-shape/src/curve/basisOpen.js","../../node_modules/d3-shape/src/curve/linearClosed.js","../../node_modules/d3-shape/src/curve/monotone.js","../../node_modules/d3-shape/src/curve/natural.js","../../node_modules/d3-shape/src/curve/step.js","../../node_modules/d3-shape/src/offset/none.js","../../node_modules/d3-shape/src/order/none.js","../../node_modules/d3-shape/src/stack.js","../../node_modules/d3-shape/src/offset/expand.js","../../node_modules/d3-shape/src/offset/silhouette.js","../../node_modules/d3-shape/src/offset/wiggle.js","../../node_modules/recharts/es6/shape/Symbols.js","../../node_modules/recharts/es6/component/DefaultLegendContent.js","../../node_modules/lodash/_baseIsMatch.js","../../node_modules/lodash/_isStrictComparable.js","../../node_modules/lodash/_getMatchData.js","../../node_modules/lodash/_matchesStrictComparable.js","../../node_modules/lodash/_baseMatches.js","../../node_modules/lodash/_baseHasIn.js","../../node_modules/lodash/_hasPath.js","../../node_modules/lodash/hasIn.js","../../node_modules/lodash/_baseMatchesProperty.js","../../node_modules/lodash/identity.js","../../node_modules/lodash/_baseProperty.js","../../node_modules/lodash/_basePropertyDeep.js","../../node_modules/lodash/property.js","../../node_modules/lodash/_baseIteratee.js","../../node_modules/lodash/_baseFindIndex.js","../../node_modules/lodash/_baseIsNaN.js","../../node_modules/lodash/_strictIndexOf.js","../../node_modules/lodash/_baseIndexOf.js","../../node_modules/lodash/_arrayIncludes.js","../../node_modules/lodash/_arrayIncludesWith.js","../../node_modules/lodash/noop.js","../../node_modules/lodash/_createSet.js","../../node_modules/lodash/_baseUniq.js","../../node_modules/lodash/uniqBy.js","../../node_modules/recharts/es6/util/payload/getUniqPayload.js","../../node_modules/recharts/es6/component/Legend.js","../../node_modules/lodash/_isFlattenable.js","../../node_modules/lodash/_baseFlatten.js","../../node_modules/lodash/_createBaseFor.js","../../node_modules/lodash/_baseFor.js","../../node_modules/lodash/_baseForOwn.js","../../node_modules/lodash/_createBaseEach.js","../../node_modules/lodash/_baseEach.js","../../node_modules/lodash/_baseMap.js","../../node_modules/lodash/_baseSortBy.js","../../node_modules/lodash/_compareAscending.js","../../node_modules/lodash/_compareMultiple.js","../../node_modules/lodash/_baseOrderBy.js","../../node_modules/lodash/_apply.js","../../node_modules/lodash/_overRest.js","../../node_modules/lodash/constant.js","../../node_modules/lodash/_defineProperty.js","../../node_modules/lodash/_baseSetToString.js","../../node_modules/lodash/_shortOut.js","../../node_modules/lodash/_setToString.js","../../node_modules/lodash/_baseRest.js","../../node_modules/lodash/_isIterateeCall.js","../../node_modules/lodash/sortBy.js","../../node_modules/recharts/es6/component/DefaultTooltipContent.js","../../node_modules/recharts/es6/util/tooltip/translate.js","../../node_modules/recharts/es6/component/TooltipBoundingBox.js","../../node_modules/recharts/es6/util/Global.js","../../node_modules/recharts/es6/component/Tooltip.js","../../node_modules/lodash/now.js","../../node_modules/lodash/_trimmedEndIndex.js","../../node_modules/lodash/_baseTrim.js","../../node_modules/lodash/toNumber.js","../../node_modules/lodash/debounce.js","../../node_modules/lodash/throttle.js","../../node_modules/recharts/es6/component/ResponsiveContainer.js","../../node_modules/recharts/es6/component/Cell.js","../../node_modules/recharts/es6/util/DOMUtils.js","../../node_modules/recharts/es6/util/ReduceCSSCalc.js","../../node_modules/recharts/es6/component/Text.js","../../node_modules/d3-array/src/ascending.js","../../node_modules/d3-array/src/descending.js","../../node_modules/d3-array/src/bisector.js","../../node_modules/d3-array/src/number.js","../../node_modules/d3-array/src/bisect.js","../../node_modules/internmap/src/index.js","../../node_modules/d3-array/src/sort.js","../../node_modules/d3-array/src/ticks.js","../../node_modules/d3-array/src/max.js","../../node_modules/d3-array/src/min.js","../../node_modules/d3-array/src/quickselect.js","../../node_modules/d3-array/src/quantile.js","../../node_modules/d3-array/src/range.js","../../node_modules/d3-scale/src/init.js","../../node_modules/d3-scale/src/ordinal.js","../../node_modules/d3-scale/src/band.js","../../node_modules/d3-color/src/define.js","../../node_modules/d3-color/src/color.js","../../node_modules/d3-interpolate/src/constant.js","../../node_modules/d3-interpolate/src/color.js","../../node_modules/d3-interpolate/src/rgb.js","../../node_modules/d3-interpolate/src/numberArray.js","../../node_modules/d3-interpolate/src/array.js","../../node_modules/d3-interpolate/src/date.js","../../node_modules/d3-interpolate/src/number.js","../../node_modules/d3-interpolate/src/object.js","../../node_modules/d3-interpolate/src/string.js","../../node_modules/d3-interpolate/src/value.js","../../node_modules/d3-interpolate/src/round.js","../../node_modules/d3-interpolate/src/piecewise.js","../../node_modules/d3-scale/src/constant.js","../../node_modules/d3-scale/src/number.js","../../node_modules/d3-scale/src/continuous.js","../../node_modules/d3-format/src/formatDecimal.js","../../node_modules/d3-format/src/exponent.js","../../node_modules/d3-format/src/formatGroup.js","../../node_modules/d3-format/src/formatNumerals.js","../../node_modules/d3-format/src/formatSpecifier.js","../../node_modules/d3-format/src/formatTrim.js","../../node_modules/d3-format/src/formatPrefixAuto.js","../../node_modules/d3-format/src/formatRounded.js","../../node_modules/d3-format/src/formatTypes.js","../../node_modules/d3-format/src/identity.js","../../node_modules/d3-format/src/locale.js","../../node_modules/d3-format/src/defaultLocale.js","../../node_modules/d3-format/src/precisionFixed.js","../../node_modules/d3-format/src/precisionPrefix.js","../../node_modules/d3-format/src/precisionRound.js","../../node_modules/d3-scale/src/tickFormat.js","../../node_modules/d3-scale/src/linear.js","../../node_modules/d3-scale/src/identity.js","../../node_modules/d3-scale/src/nice.js","../../node_modules/d3-scale/src/log.js","../../node_modules/d3-scale/src/symlog.js","../../node_modules/d3-scale/src/pow.js","../../node_modules/d3-scale/src/radial.js","../../node_modules/d3-scale/src/quantile.js","../../node_modules/d3-scale/src/quantize.js","../../node_modules/d3-scale/src/threshold.js","../../node_modules/d3-time/src/interval.js","../../node_modules/d3-time/src/millisecond.js","../../node_modules/d3-time/src/duration.js","../../node_modules/d3-time/src/second.js","../../node_modules/d3-time/src/minute.js","../../node_modules/d3-time/src/hour.js","../../node_modules/d3-time/src/day.js","../../node_modules/d3-time/src/week.js","../../node_modules/d3-time/src/month.js","../../node_modules/d3-time/src/year.js","../../node_modules/d3-time/src/ticks.js","../../node_modules/d3-time-format/src/locale.js","../../node_modules/d3-time-format/src/defaultLocale.js","../../node_modules/d3-scale/src/time.js","../../node_modules/d3-scale/src/utcTime.js","../../node_modules/d3-scale/src/sequential.js","../../node_modules/d3-scale/src/sequentialQuantile.js","../../node_modules/d3-scale/src/diverging.js","../../node_modules/lodash/_baseExtremum.js","../../node_modules/lodash/_baseGt.js","../../node_modules/lodash/max.js","../../node_modules/lodash/_baseLt.js","../../node_modules/lodash/min.js","../../node_modules/lodash/map.js","../../node_modules/lodash/flatMap.js","../../node_modules/decimal.js-light/decimal.mjs","../../node_modules/recharts-scale/es6/util/utils.js","../../node_modules/recharts-scale/es6/util/arithmetic.js","../../node_modules/recharts-scale/es6/getNiceTickValues.js","../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js","../../node_modules/recharts/es6/cartesian/ErrorBar.js","../../node_modules/recharts/es6/util/getLegendProps.js","../../node_modules/recharts/es6/util/ChartUtils.js","../../node_modules/recharts/es6/util/PolarUtils.js","../../node_modules/recharts/es6/component/Label.js","../../node_modules/lodash/last.js","../../node_modules/recharts/es6/component/LabelList.js","../../node_modules/recharts/es6/shape/Sector.js","../../node_modules/recharts/es6/shape/Curve.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../node_modules/fast-equals/dist/esm/index.mjs","../../node_modules/react-smooth/es6/setRafTimeout.js","../../node_modules/react-smooth/es6/AnimateManager.js","../../node_modules/react-smooth/es6/util.js","../../node_modules/react-smooth/es6/easing.js","../../node_modules/react-smooth/es6/configUpdate.js","../../node_modules/react-smooth/es6/Animate.js","../../node_modules/recharts/es6/shape/Rectangle.js","../../node_modules/recharts/es6/shape/Polygon.js","../../node_modules/recharts/es6/shape/Dot.js","../../node_modules/recharts/es6/shape/Cross.js","../../node_modules/lodash/maxBy.js","../../node_modules/lodash/minBy.js","../../node_modules/recharts/es6/polar/PolarRadiusAxis.js","../../node_modules/recharts/es6/polar/PolarAngleAxis.js","../../node_modules/lodash/_getPrototype.js","../../node_modules/lodash/isPlainObject.js","../../node_modules/lodash/isBoolean.js","../../node_modules/recharts/es6/shape/Trapezoid.js","../../node_modules/recharts/es6/util/ActiveShapeUtils.js","../../node_modules/recharts/es6/polar/Pie.js","../../node_modules/lodash/_baseRange.js","../../node_modules/lodash/toFinite.js","../../node_modules/lodash/_createRange.js","../../node_modules/lodash/range.js","../../node_modules/recharts/es6/util/CssPrefixUtils.js","../../node_modules/recharts/es6/cartesian/Brush.js","../../node_modules/lodash/_baseSome.js","../../node_modules/lodash/some.js","../../node_modules/recharts/es6/util/IfOverflowMatches.js","../../node_modules/lodash/_baseAssignValue.js","../../node_modules/lodash/mapValues.js","../../node_modules/lodash/_arrayEvery.js","../../node_modules/lodash/_baseEvery.js","../../node_modules/lodash/every.js","../../node_modules/recharts/es6/util/BarUtils.js","../../node_modules/recharts/es6/cartesian/Bar.js","../../node_modules/recharts/es6/util/CartesianUtils.js","../../node_modules/lodash/_createFind.js","../../node_modules/lodash/toInteger.js","../../node_modules/lodash/findIndex.js","../../node_modules/lodash/find.js","../../node_modules/recharts/es6/util/calculateViewBox.js","../../node_modules/recharts/es6/context/chartLayoutContext.js","../../node_modules/recharts/es6/cartesian/ReferenceLine.js","../../node_modules/recharts/es6/cartesian/ReferenceDot.js","../../node_modules/recharts/es6/cartesian/ReferenceArea.js","../../node_modules/recharts/es6/util/getEveryNthWithCondition.js","../../node_modules/recharts/es6/util/TickUtils.js","../../node_modules/recharts/es6/cartesian/getEquidistantTicks.js","../../node_modules/recharts/es6/cartesian/getTicks.js","../../node_modules/recharts/es6/cartesian/CartesianAxis.js","../../node_modules/recharts/es6/cartesian/CartesianGrid.js","../../node_modules/recharts/es6/cartesian/Line.js","../../node_modules/recharts/es6/cartesian/XAxis.js","../../node_modules/recharts/es6/cartesian/YAxis.js","../../node_modules/recharts/es6/util/DetectReferenceElementsDomain.js","../../node_modules/recharts/node_modules/eventemitter3/index.js","../../node_modules/recharts/es6/util/Events.js","../../node_modules/recharts/es6/chart/AccessibilityManager.js","../../node_modules/recharts/es6/util/isDomainSpecifiedByUser.js","../../node_modules/recharts/es6/util/cursor/getCursorRectangle.js","../../node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js","../../node_modules/recharts/es6/util/cursor/getCursorPoints.js","../../node_modules/recharts/es6/component/Cursor.js","../../node_modules/recharts/es6/chart/generateCategoricalChart.js","../../node_modules/recharts/es6/chart/LineChart.js","../../node_modules/recharts/es6/chart/BarChart.js","../../node_modules/recharts/es6/chart/PieChart.js","../../src/features/painAssessment/PainVisualization.tsx","../../src/features/painAssessment/pain-dashboard.tsx","../../src/features/painAssessment/PainAssessment.tsx","../../src/features/painAssessment/ResponsiveSurveyUI.tsx","../../src/features/painAssessment/special.tsx","../../src/features/painAssessment/FlexibleSurveyBanner.tsx","../../src/features/painAssessment/SurveyImpactReport.tsx","../../src/features/survey/pages/redeem/QRCodeRedemptionPreview.tsx","../../src/features/painAssessment/SurveyPreviewCard.tsx","../../src/features/painAssessment/YouthSurveyReport.tsx","../../src/features/survey/pages/redeem/StaffRedemptionScreen.tsx","../../src/features/survey/pages/redeem/StaffValidScreen.tsx","../../src/features/survey/pages/redeem/StaffVerifyingScreen.tsx","../../src/features/survey/v2/pages/EndMessage.tsx","../../src/features/survey/v2/pages/StartMessage.tsx","../../src/features/survey/v2/pages/SurveyAttemptNewUI.tsx","../../src/pages/notFound/NotFound.tsx","../../src/pages/Test.tsx","../../src/shared/gaurds/AuthGuards.tsx","../../src/shared/gaurds/GuestGaurds.tsx","../../src/shared/layout/Footer.tsx","../../src/shared/components/navProfileToggle/accountSetting/GroupButton.tsx","../../src/shared/components/navProfileToggle/accountSetting/InputButton.tsx","../../src/shared/components/navProfileToggle/accountSetting/AccountSetting.tsx","../../src/shared/components/navProfileToggle/NavProfileToggle.tsx","../../src/shared/layout/Header.tsx","../../src/shared/components/createFormDrawer/CreateFormDrawer.tsx","../../src/shared/layout/SidebarIcon.tsx","../../src/shared/layout/Sidebar.tsx","../../src/shared/layout/Layout.tsx","../../src/routes/Routes.tsx","../../node_modules/redux-persist/es/integration/react.js","../../src/App.tsx","../../src/main.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import React, { createContext, ReactNode, useCallback, useContext, useState } from 'react';\n\ntype ToastType = 'toastSuccess' | 'toastError' | 'toastInfo' | 'toastWarning';\n\ninterface Toast {\n id: string;\n message: string;\n type: ToastType;\n}\n\ninterface ToastContextType {\n toasts: Toast[];\n removeToast: (id: string) => void;\n toastError: (message: string) => void;\n toastSuccess: (message: string) => void;\n toastInfo: (message: string) => void;\n toastWarning: (message: string) => void;\n}\n\nconst ToastContext = createContext(undefined);\n\nexport const useToast = () => {\n const context = useContext(ToastContext);\n if (!context) {\n throw new Error('useToast must be used within a ToastProvider');\n }\n return context;\n};\n\nexport const ToastProvider = ({ children }: { children: ReactNode }) => {\n const [toasts, setToasts] = useState([]);\n\n const showToast = useCallback((message: string, type: ToastType) => {\n const existingToast = toasts.find((toast) => toast.message === message && toast.type === type);\n if (existingToast) {\n return;\n }\n const id = Math.random().toString(36).slice(2, 11);\n setToasts((prevToasts) => [...prevToasts, { id, message, type }]);\n \n setTimeout(() => {\n setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id));\n }, 5000);\n }, [toasts]);\n\n const removeToast = (id: string) => {\n setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id));\n };\n\n const toastError = (message: string) => showToast(message, 'toastError');\n const toastSuccess = (message: string) => showToast(message, 'toastSuccess');\n const toastInfo = (message: string) => showToast(message, 'toastInfo');\n const toastWarning = (message: string) => showToast(message, 'toastWarning');\n\n return (\n \n {children}\n \n );\n};\n","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='12'%20viewBox='0%200%2018%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.00021%200.166668C14.1085%200.166668%2016.5258%203.59164%2017.3768%205.19282C17.6477%205.70267%2017.6477%206.29734%2017.3768%206.80719C16.5258%208.40837%2014.1085%2011.8333%209.00021%2011.8333C3.89188%2011.8333%201.4746%208.40836%200.623634%206.80719C0.352669%206.29734%200.352669%205.70266%200.623634%205.19282C1.4746%203.59164%203.89188%200.166668%209.00021%200.166668ZM4.69716%203.06475C3.31361%203.98145%202.50572%205.20286%202.09536%205.97499C2.09078%205.98361%202.08889%205.98959%202.08807%205.99287C2.08724%205.99621%202.08708%206%202.08708%206C2.08708%206%202.08724%206.00379%202.08807%206.00713C2.08889%206.01041%202.09078%206.01639%202.09536%206.02502C2.50572%206.79715%203.31361%208.01855%204.69716%208.93526C4.12594%208.09947%203.79188%207.08875%203.79188%206C3.79188%204.91125%204.12594%203.90053%204.69716%203.06475ZM13.3033%208.93525C14.6868%208.01854%2015.4947%206.79714%2015.905%206.02502C15.9096%206.01639%2015.9115%206.01041%2015.9123%206.00713C15.9129%206.00496%2015.9133%206.00191%2015.9133%206.00191L15.9133%206L15.913%205.99633L15.9123%205.99287C15.9115%205.98959%2015.9096%205.98361%2015.905%205.97499C15.4947%205.20286%2014.6868%203.98146%2013.3033%203.06476C13.8745%203.90054%2014.2085%204.91126%2014.2085%206C14.2085%207.08874%2013.8745%208.09946%2013.3033%208.93525ZM5.45854%206C5.45854%204.04399%207.0442%202.45833%209.00021%202.45833C10.9562%202.45833%2012.5419%204.04399%2012.5419%206C12.5419%207.95601%2010.9562%209.54167%209.00021%209.54167C7.0442%209.54167%205.45854%207.95601%205.45854%206Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17.3047%206.82012C18.281%205.84381%2018.281%204.2609%2017.3047%203.28459L16.7155%202.69533C15.7391%201.71902%2014.1562%201.71902%2013.1799%202.69533L3.69097%2012.1843C3.34624%2012.529%203.10982%2012.967%203.01082%2013.4444L2.34111%2016.6737C2.21932%2017.2609%202.73906%2017.7807%203.32629%2017.6589L6.55565%2016.9892C7.03302%2016.8902%207.47103%2016.6538%207.81577%2016.3091L17.3047%206.82012ZM16.1262%204.4631L15.5369%203.87384C15.2115%203.5484%2014.6839%203.5484%2014.3584%203.87384L13.4745%204.75775L15.2423%206.52552L16.1262%205.64161C16.4516%205.31617%2016.4516%204.78853%2016.1262%204.4631ZM14.0638%207.70403L12.296%205.93626L4.86948%2013.3628C4.75457%2013.4777%204.67577%2013.6237%204.64277%2013.7828L4.23082%2015.7692L6.21721%2015.3573C6.37634%2015.3243%206.52234%2015.2455%206.63726%2015.1305L14.0638%207.70403Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.7844%2015.1989C10.646%2017.6414%206.10629%2017.4203%203.22156%2014.5356C0.0973695%2011.4114%200.0973695%206.34605%203.22156%203.22185C6.34576%200.0976594%2011.4111%200.0976594%2014.5353%203.22185C17.42%206.10658%2017.6411%2010.6463%2015.1986%2013.7847L19.4851%2018.0711C19.8756%2018.4616%2019.8756%2019.0948%2019.4851%2019.4853C19.0945%2019.8759%2018.4614%2019.8758%2018.0708%2019.4853L13.7844%2015.1989ZM4.63578%2013.1213C6.97892%2015.4645%2010.7779%2015.4645%2013.1211%2013.1213C15.4642%2010.7782%2015.4642%206.97921%2013.1211%204.63607C10.7779%202.29292%206.97892%202.29292%204.63578%204.63607C2.29263%206.97921%202.29263%2010.7782%204.63578%2013.1213Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.33317%208.125C8.79341%208.125%209.1665%208.49809%209.1665%208.95833V13.9583C9.1665%2014.4186%208.79341%2014.7917%208.33317%2014.7917C7.87293%2014.7917%207.49984%2014.4186%207.49984%2013.9583V8.95833C7.49984%208.49809%207.87293%208.125%208.33317%208.125Z'%20fill='%23667085'/%3e%3cpath%20d='M12.4998%208.95833C12.4998%208.49809%2012.1267%208.125%2011.6665%208.125C11.2063%208.125%2010.8332%208.49809%2010.8332%208.95833V13.9583C10.8332%2014.4186%2011.2063%2014.7917%2011.6665%2014.7917C12.1267%2014.7917%2012.4998%2014.4186%2012.4998%2013.9583V8.95833Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.9998%205V4.16666C14.9998%202.78595%2013.8806%201.66666%2012.4998%201.66666H7.49984C6.11913%201.66666%204.99984%202.78595%204.99984%204.16666V5H3.74984C3.2896%205%202.9165%205.37309%202.9165%205.83333C2.9165%206.29357%203.2896%206.66666%203.74984%206.66666H4.1665V15.8333C4.1665%2017.214%205.28579%2018.3333%206.6665%2018.3333H13.3332C14.7139%2018.3333%2015.8332%2017.214%2015.8332%2015.8333V6.66666H16.2498C16.7101%206.66666%2017.0832%206.29357%2017.0832%205.83333C17.0832%205.37309%2016.7101%205%2016.2498%205H14.9998ZM12.4998%203.33333H7.49984C7.0396%203.33333%206.6665%203.70643%206.6665%204.16666V5H13.3332V4.16666C13.3332%203.70643%2012.9601%203.33333%2012.4998%203.33333ZM14.1665%206.66666H5.83317V15.8333C5.83317%2016.2936%206.20627%2016.6667%206.6665%2016.6667H13.3332C13.7934%2016.6667%2014.1665%2016.2936%2014.1665%2015.8333V6.66666Z'%20fill='%23667085'/%3e%3c/svg%3e\"","import eye from './eye.svg';\nimport pen from './pen.svg';\nimport search from './search.svg';\nimport trash from './trash.svg';\nconst atomsAssets = {\n search,\n eye,\n pen,\n trash,\n}\n\nexport default atomsAssets;","export default \"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='28'%20height='28'%20fill='url(%23pattern0_476_88)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_476_88'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_476_88'%20transform='scale(0.0078125)'/%3e%3c/pattern%3e%3cimage%20id='image0_476_88'%20width='128'%20height='128'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAE3MAABNzAG2nloDAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAo5QTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoqtv5wAAANl0Uk5TAAECAwQFBgcICQsMDQ8QERITFBUWFxkaGxwdHiAhIyQlJicoKSorLC0uLzAxMzQ2Nzg5Ojs8PT4/QEFCREVGR0hKS05PUlNUVVZXWFlaW1xdX2FjZGVmZ2lrbG5vcHFydHV2eHl7fH1+f4GCg4SFh4qMjY6PkJGSlJWWl5iZnZ6foaKjpKWmp6ipqqutrq+wsrO0tre5uru8vb6/wMHDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk5ebn6Onr7O3u7/Dx8vP09fb3+Pn6+/z9/rLcTGIAAAQsSURBVBgZzcGJX5MFGAfw3zYOOVVEIZPEKIhGZCaYmVooaWkJGZok5FFqeRSmkVl2WFhm5FXikUWFlZGaRxheHKIoKoYy9vtv6pMfkm2w99n2Pi99v4CCqPFLd11biX7ieHLPDf5jGfpF3EuneMti9IOo16+yWymsl3uCt82D1WLedrOHIljsrpP0kA9rpTfSgzsBlsq+QE+/wlIPXKGXN2Gl+D/pLQ9WqqS3zlhYqJQ+PoSFMm7SmysVFqqkj49hoWz66EqDhXbQx0ZY6GH6ODMIFtpAb65cWOksvb0KK91Lb3scsFIJvfwYC0vtoKeDA2GtS/RwJAEWc7GnnYmwWAR76CixwWrxvO1wJqyXzG77nxuAfpDKf51blYr+kbhgdv6ErBF2/L+EDYqAqZImlW74ZvfWTze89Xwa/EsvKtt6vJO8efH04c+KM+0IXdaaJvbQ8mXJcPQha+Uxerq0fdGDCEX8wkP04f7uxSR4s41+4yR7dWCaHUGKWtTK3nXtmOJADzlrz7Bvf8yJRBBsRQ304+yy4bhl6KITNND8AgKWXEUjP68ofOyptTWdFNgci8BMb6W5jmUgEKtouvZZELOVU0MxhOwfUEXno5Apo5ILKZAopJrfYmDsoQ7qWQNDcQ3U83ksDK2nms5SGBvrppaGHBiLOEIte4dCYC61bHFAwFFHJfsiITGDSmrjIHKQOtpHQWQslcyDTDl1fAUZexNVuDMgM546KiG0jjqyIVRLFfshFO2iioUQGkcdaRBaQBV1kNpEFe9D6luqWAKpeqp4BlIdVDEGQgnUcQeEMqgjGUJO6rgTQk7qSIGQkzpSIeSkDieEnNQxHUJ3U8cSCEVTx0ZItVLFT5CqpYquBAhto45CCL1DHVsg9DJ1XI2GzAwqmQ+ZUVRyOgwitjYqKYDMPiqpj4FIGbWsh8hMqpkIiVFU05wOAdt5qmm5HwIfUU9rNow9S0WXx8DQEDcVXX0Ehg5Q0/UF4TCwgrqOjId/o6mtYhj8OkZtV0rD4MdiqutMhB/JXdS2DX7tpLZ8+PU0lbWEw6/IZupaAwPzqSsTBiLPUlMVDM2hpgkwFFZHPT9AoIB6pkDA/ju1HLJBYhq1PAER2y/UsRlCeVTRlgSp76mhGGJjXDRfjR1yr9F0riwEwFFNs61GQFLaaK4zMQhMAc01FYGqoJm+QMDiTtE85xIQuBwXzeLKRTCW0yyvIChh1TTH13YEJ7GOZjgxBMEaeZ6haxiB4GVfYagu3YdQZDXRr8uH693053oOQpNynL1rq5g98Z4YAFHOmcu332DvmichVIOr6Kvx3ckR6Cl+9u4u+vpkMEww6zw9/LVpsh2+hpXU0FPTVJgjfl07u3XsnRuHvoxcepT/ubhuIEwzIO+9RvLarqXjIuFfyuTi8p1Hqzevfjwcxv4GpnoAvFsCMI0AAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e\"","export default \"__VITE_ASSET__C$GHPTQp__\"","export default \"__VITE_ASSET__D9gmqoRh__\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.3337%204.99999C18.3337%204.08333%2017.5837%203.33333%2016.667%203.33333H3.33366C2.41699%203.33333%201.66699%204.08333%201.66699%204.99999M18.3337%204.99999V15C18.3337%2015.9167%2017.5837%2016.6667%2016.667%2016.6667H3.33366C2.41699%2016.6667%201.66699%2015.9167%201.66699%2015V4.99999M18.3337%204.99999L10.0003%2010.8333L1.66699%204.99999'%20stroke='%238C969F'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='16'%20viewBox='0%200%2024%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.285421%207.1088C3.53863%202.44556%207.75676%200.000305176%2011.9826%200.000305176C16.9456%200.000305176%2021.2208%203.23356%2023.7431%207.12923L23.7443%207.13106C23.9112%207.39041%2024%207.69232%2024%208.00074C24%208.3086%2023.9116%208.60997%2023.7452%208.869C21.2251%2012.8148%2016.9775%2015.9997%2011.9826%2015.9997C6.93445%2015.9997%202.76875%2012.8215%200.254808%208.88712C0.0839889%208.62187%20-0.00460887%208.31203%200.000184724%207.99654C0.00499024%207.68026%200.103437%207.37251%200.283084%207.11217L0.285421%207.1088ZM1.59994%208.02086L1.60216%208.0243C3.92412%2011.659%207.64571%2014.3997%2011.9826%2014.3997C16.2709%2014.3997%2020.0727%2011.6473%2022.3974%208.00692L22.3989%208.00453C22.3997%208.0034%2022.4001%208.00208%2022.4001%208.00074C22.4001%208.00018%2022.4%207.99962%2022.3999%207.99907C22.3997%207.99839%2022.3994%207.99772%2022.399%207.99711C20.0655%204.39389%2016.2325%201.60024%2011.9826%201.60024C8.41561%201.60024%204.64008%203.66475%201.59994%208.02086ZM11.9996%204.80012C10.2323%204.80012%208.7997%206.23275%208.7997%207.99999C8.7997%209.76723%2010.2323%2011.1999%2011.9996%2011.1999C13.7668%2011.1999%2015.1994%209.76723%2015.1994%207.99999C15.1994%206.23275%2013.7668%204.80012%2011.9996%204.80012ZM7.19976%207.99999C7.19976%205.34913%209.34871%203.20018%2011.9996%203.20018C14.6504%203.20018%2016.7994%205.34913%2016.7994%207.99999C16.7994%2010.6509%2014.6504%2012.7998%2011.9996%2012.7998C9.34871%2012.7998%207.19976%2010.6509%207.19976%207.99999Z'%20fill='%2398A2B3'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__sOSRjRo2__\"","export default \"__VITE_ASSET__CfMtnQFK__\"","export default \"__VITE_ASSET__BENxXLni__\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.9%204.24C10.5883%204.07888%2011.2931%203.99834%2012%204C19%204%2023%2012%2023%2012C22.393%2013.1356%2021.6691%2014.2047%2020.84%2015.19M14.12%2014.12C13.8454%2014.4147%2013.5141%2014.6512%2013.1462%2014.8151C12.7782%2014.9791%2012.3809%2015.0673%2011.9781%2015.0744C11.5753%2015.0815%2011.1752%2015.0074%2010.8016%2014.8565C10.4281%2014.7056%2010.0887%2014.481%209.80385%2014.1962C9.51897%2013.9113%209.29439%2013.5719%209.14351%2013.1984C8.99262%2012.8248%208.91853%2012.4247%208.92563%2012.0219C8.93274%2011.6191%209.02091%2011.2218%209.18488%2010.8538C9.34884%2010.4859%209.58525%2010.1546%209.88%209.88M1%201L23%2023M17.94%2017.94C16.2306%2019.243%2014.1491%2019.9649%2012%2020C5%2020%201%2012%201%2012C2.24389%209.6819%203.96914%207.65661%206.06%206.06L17.94%2017.94Z'%20stroke='%2398A2B3'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","import apple from './apple.svg';\nimport authBackground from './authBackground.svg';\nimport google from './google.svg';\nimport mail from './mail.svg';\nimport show from './show.svg';\nimport slide1 from './slide1.svg';\nimport slide2 from './slide2.svg';\nimport slide3 from './slide3.svg';\nimport closeEye from './closeEye.svg';\nconst authAssets = {\n apple,\n authBackground,\n google,\n mail,\n show,\n slide1,\n slide2,\n slide3,\n closeEye\n}\nexport default authAssets;","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%203H4V16'%20stroke='%23FFFFFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8%207H20V19C20%2019.5304%2019.7893%2020.0391%2019.4142%2020.4142C19.0391%2020.7893%2018.5304%2021%2018%2021H10C9.46957%2021%208.96086%2020.7893%208.58579%2020.4142C8.21071%2020.0391%208%2019.5304%208%2019V7Z'%20stroke='%23FFFFFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16%203H4V16'%20stroke='%235C59E8'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8%207H20V19C20%2019.5304%2019.7893%2020.0391%2019.4142%2020.4142C19.0391%2020.7893%2018.5304%2021%2018%2021H10C9.46957%2021%208.96086%2020.7893%208.58579%2020.4142C8.21071%2020.0391%208%2019.5304%208%2019V7Z'%20stroke='%235C59E8'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%2014.5354C9.44776%2014.5354%209.00004%2014.0877%209.00004%2013.5354L9.00001%2011L6.46448%2011C5.91219%2011%205.46448%2010.5523%205.46449%2010C5.46449%209.44772%205.91221%209%206.46449%208.99999L9%208.99997L8.99997%206.46451C8.99997%205.91223%209.44768%205.46451%209.99997%205.4645C10.5523%205.4645%2011%205.91221%2011%206.46449L11%208.99996L13.5355%208.99994C14.0878%208.99993%2014.5355%209.44764%2014.5355%209.99993C14.5355%2010.5522%2014.0878%2010.9999%2013.5355%2010.9999L11%2011L11%2013.5354C11%2014.0877%2010.5523%2014.5354%2010%2014.5354Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2020C15.5228%2020%2020%2015.5228%2020%2010C20%204.47715%2015.5228%200%2010%200C4.47715%200%200%204.47715%200%2010C0%2015.5228%204.47715%2020%2010%2020ZM10%2018C14.4183%2018%2018%2014.4183%2018%2010C18%205.58172%2014.4183%202%2010%202C5.58172%202%202%205.58172%202%2010C2%2014.4183%205.58172%2018%2010%2018Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.6644%208.75259L10.6644%200.752591C10.2855%200.415803%209.71453%200.415803%209.33565%200.752591L0.335647%208.75259C-0.0771359%209.11951%20-0.114317%209.75158%200.252601%2010.1644C0.573589%2010.5255%201.0975%2010.5991%201.5%2010.3663V17C1.5%2019.2091%203.29086%2021%205.5%2021H14.5C16.7091%2021%2018.5%2019.2091%2018.5%2017V10.3662C18.9025%2010.5991%2019.4264%2010.5255%2019.7474%2010.1644C20.1143%209.75158%2020.0772%209.11951%2019.6644%208.75259ZM16.5%208.61572L10%202.83796L3.5%208.61574V17C3.5%2018.1046%204.39543%2019%205.5%2019H6V15C6%2013.3431%207.34315%2012%209%2012H11C12.6569%2012%2014%2013.3431%2014%2015V19H14.5C15.6046%2019%2016.5%2018.1046%2016.5%2017V8.61572ZM12%2019H8V15C8%2014.4477%208.44771%2014%209%2014H11C11.5523%2014%2012%2014.4477%2012%2015V19Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.6644%208.75259L10.6644%200.752591C10.2855%200.415803%209.71453%200.415803%209.33565%200.752591L0.335647%208.75259C-0.0771359%209.11951%20-0.114317%209.75158%200.252601%2010.1644C0.573589%2010.5255%201.0975%2010.5991%201.5%2010.3663V17C1.5%2019.2091%203.29086%2021%205.5%2021H14.5C16.7091%2021%2018.5%2019.2091%2018.5%2017V10.3662C18.9025%2010.5991%2019.4264%2010.5255%2019.7474%2010.1644C20.1143%209.75158%2020.0772%209.11951%2019.6644%208.75259ZM16.5%208.61572L10%202.83796L3.5%208.61574V17C3.5%2018.1046%204.39543%2019%205.5%2019H6V15C6%2013.3431%207.34315%2012%209%2012H11C12.6569%2012%2014%2013.3431%2014%2015V19H14.5C15.6046%2019%2016.5%2018.1046%2016.5%2017V8.61572ZM12%2019H8V15C8%2014.4477%208.44771%2014%209%2014H11C11.5523%2014%2012%2014.4477%2012%2015V19Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='20'%20viewBox='0%200%2016%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%207.5C8.55229%207.5%209%207.94772%209%208.5V10H10.5C11.0523%2010%2011.5%2010.4477%2011.5%2011C11.5%2011.5523%2011.0523%2012%2010.5%2012H9V13.5C9%2014.0523%208.55229%2014.5%208%2014.5C7.44772%2014.5%207%2014.0523%207%2013.5V12H5.5C4.94772%2012%204.5%2011.5523%204.5%2011C4.5%2010.4477%204.94772%2010%205.5%2010H7V8.5C7%207.94772%207.44772%207.5%208%207.5Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%203C0%201.34315%201.34315%200%203%200H10.7574C11.553%200%2012.3161%200.316071%2012.8787%200.87868L15.1213%203.12132C15.6839%203.68393%2016%204.44699%2016%205.24264V17C16%2018.6569%2014.6569%2020%2013%2020H3C1.34315%2020%200%2018.6569%200%2017V3ZM10%202H3C2.44771%202%202%202.44772%202%203V17C2%2017.5523%202.44772%2018%203%2018H13C13.5523%2018%2014%2017.5523%2014%2017V6H11.1C10.4925%206%2010%205.50751%2010%204.9V2ZM13.1716%204L12%202.82843V4H13.1716Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='20'%20viewBox='0%200%2016%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%207.5C8.55229%207.5%209%207.94772%209%208.5V10H10.5C11.0523%2010%2011.5%2010.4477%2011.5%2011C11.5%2011.5523%2011.0523%2012%2010.5%2012H9V13.5C9%2014.0523%208.55229%2014.5%208%2014.5C7.44772%2014.5%207%2014.0523%207%2013.5V12H5.5C4.94772%2012%204.5%2011.5523%204.5%2011C4.5%2010.4477%204.94772%2010%205.5%2010H7V8.5C7%207.94772%207.44772%207.5%208%207.5Z'%20fill='%235C59E8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%203C0%201.34315%201.34315%200%203%200H10.7574C11.553%200%2012.3161%200.316071%2012.8787%200.87868L15.1213%203.12132C15.6839%203.68393%2016%204.44699%2016%205.24264V17C16%2018.6569%2014.6569%2020%2013%2020H3C1.34315%2020%200%2018.6569%200%2017V3ZM10%202H3C2.44771%202%202%202.44772%202%203V17C2%2017.5523%202.44772%2018%203%2018H13C13.5523%2018%2014%2017.5523%2014%2017V6H11.1C10.4925%206%2010%205.50751%2010%204.9V2ZM13.1716%204L12%202.82843V4H13.1716Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.5893%206.9107C15.2638%206.58527%2014.7362%206.58527%2014.4108%206.9107L10%2011.3214L5.58928%206.9107C5.26384%206.58527%204.7362%206.58527%204.41077%206.9107C4.08533%207.23614%204.08533%207.76378%204.41077%208.08921L9.70539%2013.3838C9.86811%2013.5466%2010.1319%2013.5466%2010.2946%2013.3838L15.5893%208.08921C15.9147%207.76378%2015.9147%207.23614%2015.5893%206.9107Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%2021C6.46957%2021%205.96086%2020.7893%205.58579%2020.4142C5.21071%2020.0391%205%2019.5304%205%2019V3H14L19%208V19C19%2019.5304%2018.7893%2020.0391%2018.4142%2020.4142C18.0391%2020.7893%2017.5304%2021%2017%2021H7Z'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13%203V9H19'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M10%2013L14%2017M10%2017L14%2013'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.25%203.75H7.75C6.68913%203.75%205.67172%204.17143%204.92157%204.92157C4.17143%205.67172%203.75%206.68913%203.75%207.75V16.25C3.75%2017.3109%204.17143%2018.3283%204.92157%2019.0784C5.67172%2019.8286%206.68913%2020.25%207.75%2020.25H16.25C17.3109%2020.25%2018.3283%2019.8286%2019.0784%2019.0784C19.8286%2018.3283%2020.25%2017.3109%2020.25%2016.25V13.75M13.75%203.75H19.25C19.526%203.75%2019.776%203.862%2019.957%204.043M19.957%204.043C20.1446%204.23049%2020.2499%204.48481%2020.25%204.75V10.25M19.957%204.043L19.25%204.75L12.75%2011.25'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.33335%208.12496C8.79359%208.12496%209.16669%208.49806%209.16669%208.95829V13.9583C9.16669%2014.4185%208.79359%2014.7916%208.33335%2014.7916C7.87312%2014.7916%207.50002%2014.4185%207.50002%2013.9583V8.95829C7.50002%208.49806%207.87312%208.12496%208.33335%208.12496Z'%20fill='%23667085'/%3e%3cpath%20d='M12.5%208.95829C12.5%208.49806%2012.1269%208.12496%2011.6667%208.12496C11.2064%208.12496%2010.8334%208.49806%2010.8334%208.95829V13.9583C10.8334%2014.4185%2011.2064%2014.7916%2011.6667%2014.7916C12.1269%2014.7916%2012.5%2014.4185%2012.5%2013.9583V8.95829Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15%204.99996V4.16663C15%202.78591%2013.8807%201.66663%2012.5%201.66663H7.50002C6.11931%201.66663%205.00002%202.78591%205.00002%204.16663V4.99996H3.75002C3.28978%204.99996%202.91669%205.37306%202.91669%205.83329C2.91669%206.29353%203.28978%206.66663%203.75002%206.66663H4.16669V15.8333C4.16669%2017.214%205.28598%2018.3333%206.66669%2018.3333H13.3334C14.7141%2018.3333%2015.8334%2017.214%2015.8334%2015.8333V6.66663H16.25C16.7103%206.66663%2017.0834%206.29353%2017.0834%205.83329C17.0834%205.37306%2016.7103%204.99996%2016.25%204.99996H15ZM12.5%203.33329H7.50002C7.03978%203.33329%206.66669%203.70639%206.66669%204.16663V4.99996H13.3334V4.16663C13.3334%203.70639%2012.9603%203.33329%2012.5%203.33329ZM14.1667%206.66663H5.83335V15.8333C5.83335%2016.2935%206.20645%2016.6666%206.66669%2016.6666H13.3334C13.7936%2016.6666%2014.1667%2016.2935%2014.1667%2015.8333V6.66663Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__B3BJ$xka__\"","export default \"__VITE_ASSET__C7DmnTZe__\"","import addIcon from './addIcon.svg';\nimport dashboard from './dashboard.svg';\nimport activeDashboard from './activeDashboard.svg';\nimport addForm from './addForm.svg';\nimport activeAddForm from './activeAddForm.svg';\nimport downArrowBlue from './downArrowBlue.svg';\nimport close from './close.svg';\nimport open from './open.svg';\nimport trash from './trash.svg';\nimport noDataImg from './nodataImg.svg';\nimport updatedLogoDash from './updatedLogoDash.svg';\nconst dashAssests ={\n addIcon,\n dashboard,\n addForm,\n activeDashboard,\n activeAddForm,\n downArrowBlue,\n close,\n open,\n trash,\n noDataImg,\n updatedLogoDash,\n}\nexport default dashAssests;","export default \"__VITE_ASSET__lc8bE13t__\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.5891%206.9107C15.2637%206.58527%2014.736%206.58527%2014.4106%206.9107L9.99984%2011.3214L5.58909%206.9107C5.26366%206.58527%204.73602%206.58527%204.41058%206.9107C4.08514%207.23614%204.08514%207.76378%204.41058%208.08921L9.70521%2013.3838C9.86793%2013.5466%2010.1317%2013.5466%2010.2945%2013.3838L15.5891%208.08921C15.9145%207.76378%2015.9145%207.23614%2015.5891%206.9107Z'%20fill='%23ffffff'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='13'%20height='11'%20viewBox='0%200%2013%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9463%200.773553C12.3014%201.06644%2012.3517%201.59167%2012.0588%201.94668L4.90973%2010.6123C4.75984%2010.794%204.48926%2010.8154%204.31265%2010.6595L0.448008%207.24956C0.102904%206.94506%200.0699912%206.41845%200.374494%206.07335C0.678997%205.72824%201.20561%205.69533%201.55071%205.99983L4.44643%208.55488L10.7732%200.886045C11.0661%200.53103%2011.5913%200.480666%2011.9463%200.773553Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='59'%20height='60'%20viewBox='0%200%2059%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='59'%20height='60'%20rx='29.5'%20fill='url(%23paint0_linear_2316_7367)'/%3e%3cpath%20d='M16.0765%2021.3518C15.9229%2021.5049%2015.7899%2021.6735%2015.6775%2021.8576C15.4211%2022.2835%2015.2857%2022.7704%2015.2857%2023.2675V37.2266C15.2857%2037.7237%2015.4226%2038.2135%2015.6804%2038.6379C15.8301%2038.8805%2016.0162%2039.0982%2016.2321%2039.2832C16.7147%2039.6989%2017.3269%2039.9271%2017.9621%2039.9271H32.9647C34.6296%2042.8774%2037.287%2045.1282%2040.4551%2046.2715L40.651%2046.3427L40.8455%2046.2671C43.4651%2045.2513%2045.7226%2043.4661%2047.3262%2041.1422C48.9789%2038.7632%2049.8629%2035.927%2049.8571%2033.0217C49.8574%2031.9953%2049.7478%2030.972%2049.5301%2029.9694L49.4552%2029.6249L49.1153%2029.5406C49.0356%2029.5213%2048.9578%2029.5009%2048.8819%2029.4796C45.8295%2028.6678%2043.0557%2027.0281%2040.8614%2024.7384L40.8037%2024.6759L40.4695%2024.3285V23.2675C40.4695%2022.7689%2040.3327%2022.2791%2040.0749%2021.8547C39.9625%2021.6706%2039.829%2021.503%2039.6744%2021.3518C39.2157%2020.888%2038.6042%2020.6103%2037.9559%2020.5713H17.7979C17.1486%2020.6096%2016.536%2020.8873%2016.0765%2021.3518ZM37.7917%2021.8547C37.8397%2021.8547%2037.8868%2021.8566%2037.9329%2021.8605H38.1374L38.1043%2021.891L28.2874%2030.654C28.1729%2030.7561%2028.0254%2030.8124%2027.8726%2030.8124C27.7198%2030.8124%2027.5723%2030.7561%2027.4577%2030.654L17.6409%2021.891L17.6078%2021.8605H17.8181C17.865%2021.8562%2017.9121%2021.8543%2017.9592%2021.8547H37.7917ZM39.0852%2022.734C39.1528%2022.9037%2039.1879%2023.0847%2039.189%2023.2675V25.5727C37.157%2027.4213%2034.7191%2028.7568%2032.0759%2029.4694L31.9117%2029.5116L31.8296%2029.5334L31.4882%2029.6177L31.4147%2029.965C31.3581%2030.2372%2031.31%2030.511%2031.2707%2030.7863L30.67%2030.2499L39.0852%2022.734ZM46.5023%2040.3152C45.0605%2042.4697%2043.0184%2044.1448%2040.6338%2045.1291C37.7932%2044.0489%2035.4184%2041.9971%2033.9233%2039.3315C32.4281%2036.6659%2031.9074%2033.5553%2032.4519%2030.5421C35.4639%2029.7182%2038.2179%2028.1329%2040.4537%2025.936C42.6999%2028.1426%2045.4685%2029.7323%2048.4959%2030.5537C48.6504%2031.3671%2048.7281%2032.1935%2048.7278%2033.0217C48.7174%2035.6215%2047.9429%2038.1597%2046.5023%2040.3152ZM31.1122%2032.9054C31.1118%2034.8804%2031.5225%2036.8334%2032.3179%2038.6379H17.6078L17.6481%2038.6016L26.0403%2031.1118L27.4592%2032.3764C27.5729%2032.4795%2027.7204%2032.5366%2027.8733%2032.5366C28.0262%2032.5366%2028.1737%2032.4795%2028.2874%2032.3764L29.7063%2031.1118L31.1237%2032.3764C31.1161%2032.5527%2031.1122%2032.7291%2031.1122%2032.9054ZM16.6657%2037.7585C16.5947%2037.5905%2016.5594%2037.4093%2016.562%2037.2266L16.5605%2023.2689C16.5616%2023.0877%2016.5963%2022.9082%2016.6628%2022.7399L25.0752%2030.2514L16.6657%2037.7585ZM40.337%2027.9418C38.5618%2029.6457%2036.3939%2030.8765%2034.0292%2031.5232C33.9235%2032.1113%2033.8669%2032.7039%2033.8592%2033.3008V33.4199C33.8621%2035.8968%2034.7319%2038.2931%2036.3152%2040.1858L36.3253%2040.1975C37.4698%2041.5649%2038.9428%2042.6133%2040.6035%2043.2425C42.5199%2042.4527%2044.1609%2041.1069%2045.3187%2039.3754C46.4765%2037.6439%2047.099%2035.6046%2047.1073%2033.5159C47.1073%2032.8482%2047.0453%2032.1869%2046.9214%2031.5319C44.4893%2030.8723%2042.2648%2029.5959%2040.4595%2027.8241L40.337%2027.9418ZM44.9134%2035.2862L40.9492%2039.2861L35.4293%2033.7179L36.6494%2032.4883L40.9463%2036.8254L43.6948%2034.0537L44.9134%2035.2862Z'%20fill='%23723DDA'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2316_7367'%20x1='29.5'%20y1='0'%20x2='29.5'%20y2='60'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23CCCBFF'/%3e%3cstop%20offset='1'%20stop-color='white'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='17'%20height='12'%20viewBox='0%200%2017%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5303%206.53033C16.8232%206.23744%2016.8232%205.76256%2016.5303%205.46967L11.7574%200.696699C11.4645%200.403806%2010.9896%200.403806%2010.6967%200.696699C10.4038%200.989593%2010.4038%201.46447%2010.6967%201.75736L14.9393%206L10.6967%2010.2426C10.4038%2010.5355%2010.4038%2011.0104%2010.6967%2011.3033C10.9896%2011.5962%2011.4645%2011.5962%2011.7574%2011.3033L16.5303%206.53033ZM0%206.75H16V5.25H0V6.75Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__CJddfzMI__\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.5891%206.91073C15.2637%206.5853%2014.736%206.5853%2014.4106%206.91073L9.99984%2011.3215L5.58909%206.91073C5.26366%206.5853%204.73602%206.5853%204.41058%206.91073C4.08514%207.23617%204.08514%207.76381%204.41058%208.08925L9.70521%2013.3839C9.86793%2013.5466%2010.1317%2013.5466%2010.2945%2013.3839L15.5891%208.08925C15.9145%207.76381%2015.9145%207.23617%2015.5891%206.91073Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='19'%20viewBox='0%200%2018%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.5%204.5C13.5%206.98528%2011.4853%209%209%209C6.51472%209%204.5%206.98528%204.5%204.5C4.5%202.01472%206.51472%200%209%200C11.4853%200%2013.5%202.01472%2013.5%204.5ZM11.5%204.5C11.5%205.88071%2010.3807%207%209%207C7.61929%207%206.5%205.88071%206.5%204.5C6.5%203.11929%207.61929%202%209%202C10.3807%202%2011.5%203.11929%2011.5%204.5Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2016.9231C0%2013.0996%203.09957%2010%206.92308%2010H11.0769C14.9004%2010%2018%2013.0996%2018%2016.9231C18%2018.0701%2017.0701%2019%2015.9231%2019H2.07692C0.929871%2019%200%2018.0701%200%2016.9231ZM2%2016.9231C2%2014.2041%204.20414%2012%206.92308%2012H11.0769C13.7959%2012%2016%2014.2041%2016%2016.9231C16%2016.9656%2015.9656%2017%2015.9231%2017H2.07692C2.03444%2017%202%2016.9656%202%2016.9231Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%2016C13%2018.2091%2011.2091%2020%209%2020H4C1.79086%2020%200%2018.2091%200%2016V4C0%201.79086%201.79086%200%204%200H9C11.2091%200%2013%201.79086%2013%204V6C13%206.55229%2012.5523%207%2012%207C11.4477%207%2011%206.55229%2011%206V4C11%202.89543%2010.1046%202%209%202H4C2.89543%202%202%202.89543%202%204V16C2%2017.1046%202.89543%2018%204%2018H9C10.1046%2018%2011%2017.1046%2011%2016V14C11%2013.4477%2011.4477%2013%2012%2013C12.5523%2013%2013%2013.4477%2013%2014V16Z'%20fill='%23667085'/%3e%3cpath%20d='M14.5429%2013.7071C14.1523%2013.3166%2014.1523%2012.6834%2014.5429%2012.2929L15.8358%2011H6.24997C5.69769%2011%205.24997%2010.5523%205.24997%2010C5.24997%209.44771%205.69769%209%206.24997%209H15.8358L14.5429%207.70711C14.1523%207.31658%2014.1523%206.68342%2014.5429%206.29289C14.9334%205.90237%2015.5666%205.90237%2015.9571%206.29289L19.3106%209.64645C19.5059%209.84171%2019.5059%2010.1583%2019.3106%2010.3536L15.9571%2013.7071C15.5666%2014.0976%2014.9334%2014.0976%2014.5429%2013.7071Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='16'%20viewBox='0%200%2020%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.25%200.5V15.5H19.75V0.5H0.25ZM1.75%202H18.25V14H15.6955C15.637%2013.8973%2015.6632%2013.757%2015.5778%2013.6715C15.295%2013.388%2014.8923%2013.25%2014.5%2013.25C14.1077%2013.25%2013.7058%2013.388%2013.4215%2013.6722C13.3368%2013.757%2013.363%2013.8973%2013.3045%2014H6.6955C6.637%2013.8973%206.66325%2013.757%206.5785%2013.6715C6.2935%2013.388%205.89225%2013.25%205.5%2013.25C5.10775%2013.25%204.70575%2013.388%204.4215%2013.6722C4.33675%2013.757%204.363%2013.8973%204.3045%2014H1.75V2ZM7%203.5C5.35%203.5%204%204.85%204%206.5C4%207.33475%204.35775%208.08775%204.91425%208.633C4.40393%208.97768%203.98555%209.44183%203.6955%209.98507C3.40545%2010.5283%203.25251%2011.1342%203.25%2011.75H4.75C4.75%2011.1533%204.98705%2010.581%205.40901%2010.159C5.83097%209.73705%206.40326%209.5%207%209.5C7.59674%209.5%208.16903%209.73705%208.59099%2010.159C9.01295%2010.581%209.25%2011.1533%209.25%2011.75H10.75C10.7475%2011.1342%2010.5946%2010.5283%2010.3045%209.98507C10.0145%209.44183%209.59607%208.97768%209.08575%208.633C9.64225%208.08775%2010%207.3355%2010%206.5C10%204.85%208.65%203.5%207%203.5ZM7%205C7.83775%205%208.5%205.66225%208.5%206.5C8.5%207.33775%207.83775%208%207%208C6.16225%208%205.5%207.33775%205.5%206.5C5.5%205.66225%206.16225%205%207%205ZM12.25%205.75V7.25H16.75V5.75H12.25ZM12.25%208.75V10.25H16.75V8.75H12.25Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.673%200C5.85865%200%206.0367%200.0737498%206.16797%200.205025C6.29925%200.336301%206.373%200.514348%206.373%200.7V2.009H13.89V0.709C13.89%200.523348%2013.9637%200.345301%2014.095%200.214025C14.2263%200.0827498%2014.4043%200.009%2014.59%200.009C14.7757%200.009%2014.9537%200.0827498%2015.085%200.214025C15.2162%200.345301%2015.29%200.523348%2015.29%200.709V2.009H18C18.5303%202.009%2019.0388%202.21958%2019.4139%202.59443C19.7889%202.96929%2019.9997%203.47774%2020%204.008V18.001C19.9997%2018.5313%2019.7889%2019.0397%2019.4139%2019.4146C19.0388%2019.7894%2018.5303%2020%2018%2020H2C1.46974%2020%200.961184%2019.7894%200.58614%2019.4146C0.211096%2019.0397%200.00026513%2018.5313%200%2018.001L0%204.008C0.00026513%203.47774%200.211096%202.96929%200.58614%202.59443C0.961184%202.21958%201.46974%202.009%202%202.009H4.973V0.699C4.97327%200.513522%205.04713%200.335731%205.17838%200.204672C5.30963%200.0736123%205.48752%20-1.89263e-07%205.673%200ZM1.4%207.742V18.001C1.4%2018.0798%201.41552%2018.1578%201.44567%2018.2306C1.47583%2018.3034%201.52002%2018.3695%201.57574%2018.4253C1.63145%2018.481%201.69759%2018.5252%201.77039%2018.5553C1.84319%2018.5855%201.92121%2018.601%202%2018.601H18C18.0788%2018.601%2018.1568%2018.5855%2018.2296%2018.5553C18.3024%2018.5252%2018.3685%2018.481%2018.4243%2018.4253C18.48%2018.3695%2018.5242%2018.3034%2018.5543%2018.2306C18.5845%2018.1578%2018.6%2018.0798%2018.6%2018.001V7.756L1.4%207.742ZM6.667%2014.619V16.285H5V14.619H6.667ZM10.833%2014.619V16.285H9.167V14.619H10.833ZM15%2014.619V16.285H13.333V14.619H15ZM6.667%2010.642V12.308H5V10.642H6.667ZM10.833%2010.642V12.308H9.167V10.642H10.833ZM15%2010.642V12.308H13.333V10.642H15ZM4.973%203.408H2C1.92121%203.408%201.84319%203.42352%201.77039%203.45367C1.69759%203.48382%201.63145%203.52802%201.57574%203.58374C1.52002%203.63945%201.47583%203.70559%201.44567%203.77839C1.41552%203.85119%201.4%203.92921%201.4%204.008V6.343L18.6%206.357V4.008C18.6%203.92921%2018.5845%203.85119%2018.5543%203.77839C18.5242%203.70559%2018.48%203.63945%2018.4243%203.58374C18.3685%203.52802%2018.3024%203.48382%2018.2296%203.45367C18.1568%203.42352%2018.0788%203.408%2018%203.408H15.29V4.337C15.29%204.52265%2015.2162%204.7007%2015.085%204.83197C14.9537%204.96325%2014.7757%205.037%2014.59%205.037C14.4043%205.037%2014.2263%204.96325%2014.095%204.83197C13.9637%204.7007%2013.89%204.52265%2013.89%204.337V3.408H6.373V4.328C6.373%204.51365%206.29925%204.6917%206.16797%204.82297C6.0367%204.95425%205.85865%205.028%205.673%205.028C5.48735%205.028%205.3093%204.95425%205.17803%204.82297C5.04675%204.6917%204.973%204.51365%204.973%204.328V3.408Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3%2011C3%206.02944%207.02944%202%2012%202C16.9706%202%2021%206.02944%2021%2011V19C21%2020.6569%2019.6569%2022%2018%2022H17C15.3431%2022%2014%2020.6569%2014%2019V16C14%2014.3431%2015.3431%2013%2017%2013H18C18.3506%2013%2018.6872%2013.0602%2019%2013.1707V11C19%207.13401%2015.866%204%2012%204C8.13401%204%205%207.13401%205%2011V13.1707C5.31278%2013.0602%205.64936%2013%206%2013H7C8.65685%2013%2010%2014.3431%2010%2016V19C10%2020.6569%208.65685%2022%207%2022H6C4.34315%2022%203%2020.6569%203%2019V11ZM19%2016C19%2015.4477%2018.5523%2015%2018%2015H17C16.4477%2015%2016%2015.4477%2016%2016V19C16%2019.5523%2016.4477%2020%2017%2020H18C18.5523%2020%2019%2019.5523%2019%2019V16ZM5%2019V16C5%2015.4477%205.44772%2015%206%2015H7C7.55228%2015%208%2015.4477%208%2016V19C8%2019.5523%207.55228%2020%207%2020H6C5.44772%2020%205%2019.5523%205%2019Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='22'%20height='16'%20viewBox='0%200%2022%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%200.5H2C1.60218%200.5%201.22064%200.658035%200.93934%200.93934C0.658035%201.22064%200.5%201.60218%200.5%202V14C0.5%2014.3978%200.658035%2014.7794%200.93934%2015.0607C1.22064%2015.342%201.60218%2015.5%202%2015.5H20C20.3978%2015.5%2020.7794%2015.342%2021.0607%2015.0607C21.342%2014.7794%2021.5%2014.3978%2021.5%2014V2C21.5%201.60218%2021.342%201.22064%2021.0607%200.93934C20.7794%200.658035%2020.3978%200.5%2020%200.5ZM18.35%202L11%207.085L3.65%202H18.35ZM2%2014V2.6825L10.5725%208.615C10.698%208.7021%2010.8472%208.74877%2011%208.74877C11.1528%208.74877%2011.302%208.7021%2011.4275%208.615L20%202.6825V14H2Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='22'%20height='16'%20viewBox='0%200%2022%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%200.5H2C1.60218%200.5%201.22064%200.658035%200.93934%200.93934C0.658035%201.22064%200.5%201.60218%200.5%202V14C0.5%2014.3978%200.658035%2014.7794%200.93934%2015.0607C1.22064%2015.342%201.60218%2015.5%202%2015.5H20C20.3978%2015.5%2020.7794%2015.342%2021.0607%2015.0607C21.342%2014.7794%2021.5%2014.3978%2021.5%2014V2C21.5%201.60218%2021.342%201.22064%2021.0607%200.93934C20.7794%200.658035%2020.3978%200.5%2020%200.5ZM18.35%202L11%207.085L3.65%202H18.35ZM2%2014V2.6825L10.5725%208.615C10.698%208.7021%2010.8472%208.74877%2011%208.74877C11.1528%208.74877%2011.302%208.7021%2011.4275%208.615L20%202.6825V14H2Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='19'%20height='12'%20viewBox='0%200%2019%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.5%200V2H0.5V0H18.5ZM0.5%2012H9.5V10H0.5V12ZM0.5%207H18.5V5H0.5V7Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='19'%20height='12'%20viewBox='0%200%2019%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.5%200V2H0.5V0H18.5ZM0.5%2012H9.5V10H0.5V12ZM0.5%207H18.5V5H0.5V7Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%2012C16%2014.2091%2014.2091%2016%2012%2016C9.79086%2016%208%2014.2091%208%2012C8%209.79086%209.79086%208%2012%208C14.2091%208%2016%209.79086%2016%2012ZM14%2012C14%2013.1046%2013.1046%2014%2012%2014C10.8954%2014%2010%2013.1046%2010%2012C10%2010.8954%2010.8954%2010%2012%2010C13.1046%2010%2014%2010.8954%2014%2012Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.51026%2013.4144L4.16603%2013.0204C4.12293%2012.6863%204.1007%2012.3458%204.1007%2012C4.1007%2011.6543%204.12292%2011.3137%204.16602%2010.9797L3.51163%2010.5866C2.56483%2010.0177%202.25848%208.78894%202.82737%207.84214L4.0201%205.85712C4.58899%204.91032%205.8177%204.60397%206.7645%205.17286L7.41911%205.56619C7.86036%205.25176%208.33533%204.9816%208.83754%204.76217V4C8.83754%202.89543%209.73297%202%2010.8375%202H13.1533C14.2579%202%2015.1533%202.89543%2015.1533%204V4.76217C15.6556%204.98161%2016.1305%205.25178%2016.5718%205.56622L17.2279%205.17199C18.1747%204.6031%2019.4034%204.90945%2019.9723%205.85625L21.165%207.84127C21.7339%208.78807%2021.4276%2010.0168%2020.4808%2010.5857L19.8249%2010.9798C19.868%2011.3138%2019.8902%2011.6543%2019.8902%2012C19.8902%2012.3457%2019.868%2012.6863%2019.8249%2013.0203L20.4792%2013.4135C21.426%2013.9824%2021.7324%2015.2111%2021.1635%2016.1579L19.9708%2018.1429C19.4019%2019.0897%2018.1732%2019.3961%2017.2264%2018.8272L16.5717%2018.4338C16.1305%2018.7483%2015.6555%2019.0184%2015.1533%2019.2378V20C15.1533%2021.1046%2014.2579%2022%2013.1533%2022H10.8375C9.73297%2022%208.83754%2021.1046%208.83754%2020V19.2378C8.33536%2019.0184%207.86042%2018.7483%207.4192%2018.4339L6.76314%2018.8281C5.81634%2019.397%204.58762%2019.0906%204.01873%2018.1438L2.82601%2016.1588C2.25711%2015.212%202.56346%2013.9833%203.51026%2013.4144ZM9.63829%206.59488L10.8375%206.0709V4L13.1533%204V6.0709L14.3526%206.59488C14.7268%206.75839%2015.0813%206.95997%2015.4112%207.195L16.4785%207.95556L18.258%206.88633L19.4507%208.87135L17.674%209.93891L17.8413%2011.2357C17.8735%2011.4851%2017.8902%2011.7401%2017.8902%2012C17.8902%2012.2599%2017.8735%2012.515%2017.8413%2012.7644L17.674%2014.0612L19.4492%2015.1278L18.2565%2017.1129L16.4784%2016.0445L15.4111%2016.805C15.0813%2017.0401%2014.7268%2017.2416%2014.3526%2017.4051L13.1533%2017.9291V20H10.8375V17.9291L9.63829%2017.4051C9.26408%2017.2416%208.9096%2017.0401%208.5798%2016.8051L7.51249%2016.0446L5.73306%2017.1137L4.54034%2015.1287L6.31694%2014.0612L6.14959%2012.7644C6.11741%2012.515%206.1007%2012.26%206.1007%2012C6.1007%2011.7401%206.1174%2011.485%206.14958%2011.2357L6.31691%209.93886L4.54171%208.87221L5.73443%206.88719L7.51242%207.95552L8.57974%207.19497C8.90956%206.95995%209.26406%206.75839%209.63829%206.59488Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='19'%20viewBox='0%200%2020%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%200.75C12.4995%200.58138%2012.4423%200.417834%2012.3374%200.285761C12.2326%200.153689%2012.0863%200.0607962%2011.9222%200.0220788C11.7581%20-0.0166387%2011.5857%200.00107807%2011.4329%200.0723689C11.2801%200.14366%2011.1558%200.264365%2011.08%200.415C10.81%200.952%2010.397%201.372%2010.031%201.665C9.83776%201.81893%209.63243%201.95705%209.417%202.078L9.412%202.08C9.23952%202.17222%209.10988%202.32818%209.05074%202.51462C8.9916%202.70105%209.00763%202.90322%209.09542%203.078C9.1832%203.25279%209.33579%203.38637%209.52066%203.45025C9.70552%203.51414%209.90803%203.50329%2010.085%203.42H10.087L10.09%203.419L10.096%203.416L10.114%203.406L10.171%203.376C10.219%203.34933%2010.2823%203.312%2010.361%203.264C10.572%203.13401%2010.7747%202.99106%2010.968%202.836L11%202.81V8.25C11%208.44891%2011.079%208.63968%2011.2197%208.78033C11.3603%208.92098%2011.5511%209%2011.75%209C11.9489%209%2012.1397%208.92098%2012.2803%208.78033C12.421%208.63968%2012.5%208.44891%2012.5%208.25V0.75ZM0.75%200C0.948912%200%201.13968%200.0790175%201.28033%200.21967C1.42098%200.360322%201.5%200.551088%201.5%200.75V3.5H5.5V0.752C5.5%200.553088%205.57902%200.362322%205.71967%200.22167C5.86032%200.0810176%206.05109%200.00200009%206.25%200.00200009C6.44891%200.00200009%206.63968%200.0810176%206.78033%200.22167C6.92098%200.362322%207%200.553088%207%200.752V8.244C7%208.44291%206.92098%208.63368%206.78033%208.77433C6.63968%208.91498%206.44891%208.994%206.25%208.994C6.05109%208.994%205.86032%208.91498%205.71967%208.77433C5.57902%208.63368%205.5%208.44291%205.5%208.244V5H1.5V8.25C1.5%208.44891%201.42098%208.63968%201.28033%208.78033C1.13968%208.92098%200.948912%209%200.75%209C0.551088%209%200.360322%208.92098%200.21967%208.78033C0.0790175%208.63968%204.19177e-09%208.44891%200%208.25V0.75C0%200.551088%200.0790175%200.360322%200.21967%200.21967C0.360322%200.0790175%200.551088%200%200.75%200ZM0.75%2017C0.551088%2017%200.360322%2017.079%200.21967%2017.2197C0.0790175%2017.3603%200%2017.5511%200%2017.75C0%2017.9489%200.0790175%2018.1397%200.21967%2018.2803C0.360322%2018.421%200.551088%2018.5%200.75%2018.5H19.25C19.4489%2018.5%2019.6397%2018.421%2019.7803%2018.2803C19.921%2018.1397%2020%2017.9489%2020%2017.75C20%2017.5511%2019.921%2017.3603%2019.7803%2017.2197C19.6397%2017.079%2019.4489%2017%2019.25%2017H0.75ZM0%2012.75C0%2012.5511%200.0790175%2012.3603%200.21967%2012.2197C0.360322%2012.079%200.551088%2012%200.75%2012H19.25C19.4489%2012%2019.6397%2012.079%2019.7803%2012.2197C19.921%2012.3603%2020%2012.5511%2020%2012.75C20%2012.9489%2019.921%2013.1397%2019.7803%2013.2803C19.6397%2013.421%2019.4489%2013.5%2019.25%2013.5H0.75C0.551088%2013.5%200.360322%2013.421%200.21967%2013.2803C0.0790175%2013.1397%200%2012.9489%200%2012.75Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%202.5C0%201.11929%201.11929%200%202.5%200H5.5C6.88071%200%208%201.11929%208%202.5V5.5C8%206.88071%206.88071%208%205.5%208H2.5C1.11929%208%200%206.88071%200%205.5V2.5ZM2.5%202H5.5C5.77614%202%206%202.22386%206%202.5V5.5C6%205.77614%205.77614%206%205.5%206H2.5C2.22386%206%202%205.77614%202%205.5V2.5C2%202.22386%202.22386%202%202.5%202Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%202.5C10%201.11929%2011.1193%200%2012.5%200H15.5C16.8807%200%2018%201.11929%2018%202.5V5.5C18%206.88071%2016.8807%208%2015.5%208H12.5C11.1193%208%2010%206.88071%2010%205.5V2.5ZM12.5%202H15.5C15.7761%202%2016%202.22386%2016%202.5V5.5C16%205.77614%2015.7761%206%2015.5%206H12.5C12.2239%206%2012%205.77614%2012%205.5V2.5C12%202.22386%2012.2239%202%2012.5%202Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.5%2010C11.1193%2010%2010%2011.1193%2010%2012.5V15.5C10%2016.8807%2011.1193%2018%2012.5%2018H15.5C16.8807%2018%2018%2016.8807%2018%2015.5V12.5C18%2011.1193%2016.8807%2010%2015.5%2010H12.5ZM15.5%2012H12.5C12.2239%2012%2012%2012.2239%2012%2012.5V15.5C12%2015.7761%2012.2239%2016%2012.5%2016H15.5C15.7761%2016%2016%2015.7761%2016%2015.5V12.5C16%2012.2239%2015.7761%2012%2015.5%2012Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2012.5C0%2011.1193%201.11929%2010%202.5%2010H5.5C6.88071%2010%208%2011.1193%208%2012.5V15.5C8%2016.8807%206.88071%2018%205.5%2018H2.5C1.11929%2018%200%2016.8807%200%2015.5V12.5ZM2.5%2012H5.5C5.77614%2012%206%2012.2239%206%2012.5V15.5C6%2015.7761%205.77614%2016%205.5%2016H2.5C2.22386%2016%202%2015.7761%202%2015.5V12.5C2%2012.2239%202.22386%2012%202.5%2012Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.51632%208C6.52644%207.96138%206.54119%207.92396%206.56035%207.88858L9.17219%203.06673C9.52821%202.40945%2010.2157%202%2010.9632%202C12.0881%202%2013%202.91192%2013%204.03684V8H18.2781C20.0191%208%2021.3945%209.47714%2021.2704%2011.2137L20.699%2019.2137C20.5869%2020.7837%2019.2806%2022%2017.7066%2022H5.5C3.84315%2022%202.5%2020.6569%202.5%2019V11C2.5%209.34315%203.84315%208%205.5%208H6.51632ZM11%204.03684V10H18.2781C18.8584%2010%2019.3169%2010.4924%2019.2755%2011.0712L18.7041%2019.0712C18.6667%2019.5946%2018.2313%2020%2017.7066%2020H8.5V8.50688L10.9308%204.01929C10.9372%204.0074%2010.9496%204%2010.9632%204C10.9719%204%2010.9769%204.00207%2010.9769%204.00207C10.9798%204.00333%2010.9844%204.006%2010.9892%204.01079C10.994%204.01558%2010.9967%204.02015%2010.9979%204.02311C10.9979%204.02311%2011%204.02806%2011%204.03684ZM6.5%2010H5.5C4.94772%2010%204.5%2010.4477%204.5%2011V19C4.5%2019.5523%204.94772%2020%205.5%2020H6.5V10Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%206H2.5V4H0.5V6ZM0.5%2010H2.5V8H0.5V10ZM0.5%202H2.5V0H0.5V2ZM4.5%206H18.5V4H4.5V6ZM4.5%2010H18.5V8H4.5V10ZM4.5%200V2H18.5V0H4.5ZM0.5%206H2.5V4H0.5V6ZM0.5%2010H2.5V8H0.5V10ZM0.5%202H2.5V0H0.5V2ZM4.5%206H18.5V4H4.5V6ZM4.5%2010H18.5V8H4.5V10ZM4.5%200V2H18.5V0H4.5Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%206H2.5V4H0.5V6ZM0.5%2010H2.5V8H0.5V10ZM0.5%202H2.5V0H0.5V2ZM4.5%206H18.5V4H4.5V6ZM4.5%2010H18.5V8H4.5V10ZM4.5%200V2H18.5V0H4.5ZM0.5%206H2.5V4H0.5V6ZM0.5%2010H2.5V8H0.5V10ZM0.5%202H2.5V0H0.5V2ZM4.5%206H18.5V4H4.5V6ZM4.5%2010H18.5V8H4.5V10ZM4.5%200V2H18.5V0H4.5Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='20'%20viewBox='0%200%2018%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2011C11.7614%2011%2014%208.76142%2014%206C14%203.23858%2011.7614%201%209%201C6.23858%201%204%203.23858%204%206C4%208.76142%206.23858%2011%209%2011Z'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17%2019C17%2016.8783%2016.1571%2014.8434%2014.6569%2013.3431C13.1566%2011.8429%2011.1217%2011%209%2011C6.87827%2011%204.84344%2011.8429%203.34315%2013.3431C1.84285%2014.8434%201%2016.8783%201%2019'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='20'%20viewBox='0%200%2018%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2011C11.7614%2011%2014%208.76142%2014%206C14%203.23858%2011.7614%201%209%201C6.23858%201%204%203.23858%204%206C4%208.76142%206.23858%2011%209%2011Z'%20stroke='%235C59E8'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17%2019C17%2016.8783%2016.1571%2014.8434%2014.6569%2013.3431C13.1566%2011.8429%2011.1217%2011%209%2011C6.87827%2011%204.84344%2011.8429%203.34315%2013.3431C1.84285%2014.8434%201%2016.8783%201%2019'%20stroke='%235C59E8'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%2012C10.5304%2012%2011.0391%2011.7893%2011.4142%2011.4142C11.7893%2011.0391%2012%2010.5304%2012%2010C12%209.46957%2011.7893%208.96086%2011.4142%208.58579C11.0391%208.21071%2010.5304%208%2010%208C9.46957%208%208.96086%208.21071%208.58579%208.58579C8.21071%208.96086%208%209.46957%208%2010C8%2010.5304%208.21071%2011.0391%208.58579%2011.4142C8.96086%2011.7893%209.46957%2012%2010%2012ZM3%2012C3.53043%2012%204.03914%2011.7893%204.41421%2011.4142C4.78929%2011.0391%205%2010.5304%205%2010C5%209.46957%204.78929%208.96086%204.41421%208.58579C4.03914%208.21071%203.53043%208%203%208C2.46957%208%201.96086%208.21071%201.58579%208.58579C1.21071%208.96086%201%209.46957%201%2010C1%2010.5304%201.21071%2011.0391%201.58579%2011.4142C1.96086%2011.7893%202.46957%2012%203%2012ZM17%2012C17.5304%2012%2018.0391%2011.7893%2018.4142%2011.4142C18.7893%2011.0391%2019%2010.5304%2019%2010C19%209.46957%2018.7893%208.96086%2018.4142%208.58579C18.0391%208.21071%2017.5304%208%2017%208C16.4696%208%2015.9609%208.21071%2015.5858%208.58579C15.2107%208.96086%2015%209.46957%2015%2010C15%2010.5304%2015.2107%2011.0391%2015.5858%2011.4142C15.9609%2011.7893%2016.4696%2012%2017%2012ZM10%205C10.5304%205%2011.0391%204.78929%2011.4142%204.41421C11.7893%204.03914%2012%203.53043%2012%203C12%202.46957%2011.7893%201.96086%2011.4142%201.58579C11.0391%201.21071%2010.5304%201%2010%201C9.46957%201%208.96086%201.21071%208.58579%201.58579C8.21071%201.96086%208%202.46957%208%203C8%203.53043%208.21071%204.03914%208.58579%204.41421C8.96086%204.78929%209.46957%205%2010%205ZM3%205C3.53043%205%204.03914%204.78929%204.41421%204.41421C4.78929%204.03914%205%203.53043%205%203C5%202.46957%204.78929%201.96086%204.41421%201.58579C4.03914%201.21071%203.53043%201%203%201C2.46957%201%201.96086%201.21071%201.58579%201.58579C1.21071%201.96086%201%202.46957%201%203C1%203.53043%201.21071%204.03914%201.58579%204.41421C1.96086%204.78929%202.46957%205%203%205ZM17%205C17.5304%205%2018.0391%204.78929%2018.4142%204.41421C18.7893%204.03914%2019%203.53043%2019%203C19%202.46957%2018.7893%201.96086%2018.4142%201.58579C18.0391%201.21071%2017.5304%201%2017%201C16.4696%201%2015.9609%201.21071%2015.5858%201.58579C15.2107%201.96086%2015%202.46957%2015%203C15%203.53043%2015.2107%204.03914%2015.5858%204.41421C15.9609%204.78929%2016.4696%205%2017%205ZM10%2019C10.5304%2019%2011.0391%2018.7893%2011.4142%2018.4142C11.7893%2018.0391%2012%2017.5304%2012%2017C12%2016.4696%2011.7893%2015.9609%2011.4142%2015.5858C11.0391%2015.2107%2010.5304%2015%2010%2015C9.46957%2015%208.96086%2015.2107%208.58579%2015.5858C8.21071%2015.9609%208%2016.4696%208%2017C8%2017.5304%208.21071%2018.0391%208.58579%2018.4142C8.96086%2018.7893%209.46957%2019%2010%2019ZM3%2019C3.53043%2019%204.03914%2018.7893%204.41421%2018.4142C4.78929%2018.0391%205%2017.5304%205%2017C5%2016.4696%204.78929%2015.9609%204.41421%2015.5858C4.03914%2015.2107%203.53043%2015%203%2015C2.46957%2015%201.96086%2015.2107%201.58579%2015.5858C1.21071%2015.9609%201%2016.4696%201%2017C1%2017.5304%201.21071%2018.0391%201.58579%2018.4142C1.96086%2018.7893%202.46957%2019%203%2019ZM17%2019C17.5304%2019%2018.0391%2018.7893%2018.4142%2018.4142C18.7893%2018.0391%2019%2017.5304%2019%2017C19%2016.4696%2018.7893%2015.9609%2018.4142%2015.5858C18.0391%2015.2107%2017.5304%2015%2017%2015C16.4696%2015%2015.9609%2015.2107%2015.5858%2015.5858C15.2107%2015.9609%2015%2016.4696%2015%2017C15%2017.5304%2015.2107%2018.0391%2015.5858%2018.4142C15.9609%2018.7893%2016.4696%2019%2017%2019Z'%20stroke='black'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%2012C10.5304%2012%2011.0391%2011.7893%2011.4142%2011.4142C11.7893%2011.0391%2012%2010.5304%2012%2010C12%209.46957%2011.7893%208.96086%2011.4142%208.58579C11.0391%208.21071%2010.5304%208%2010%208C9.46957%208%208.96086%208.21071%208.58579%208.58579C8.21071%208.96086%208%209.46957%208%2010C8%2010.5304%208.21071%2011.0391%208.58579%2011.4142C8.96086%2011.7893%209.46957%2012%2010%2012ZM3%2012C3.53043%2012%204.03914%2011.7893%204.41421%2011.4142C4.78929%2011.0391%205%2010.5304%205%2010C5%209.46957%204.78929%208.96086%204.41421%208.58579C4.03914%208.21071%203.53043%208%203%208C2.46957%208%201.96086%208.21071%201.58579%208.58579C1.21071%208.96086%201%209.46957%201%2010C1%2010.5304%201.21071%2011.0391%201.58579%2011.4142C1.96086%2011.7893%202.46957%2012%203%2012ZM17%2012C17.5304%2012%2018.0391%2011.7893%2018.4142%2011.4142C18.7893%2011.0391%2019%2010.5304%2019%2010C19%209.46957%2018.7893%208.96086%2018.4142%208.58579C18.0391%208.21071%2017.5304%208%2017%208C16.4696%208%2015.9609%208.21071%2015.5858%208.58579C15.2107%208.96086%2015%209.46957%2015%2010C15%2010.5304%2015.2107%2011.0391%2015.5858%2011.4142C15.9609%2011.7893%2016.4696%2012%2017%2012ZM10%205C10.5304%205%2011.0391%204.78929%2011.4142%204.41421C11.7893%204.03914%2012%203.53043%2012%203C12%202.46957%2011.7893%201.96086%2011.4142%201.58579C11.0391%201.21071%2010.5304%201%2010%201C9.46957%201%208.96086%201.21071%208.58579%201.58579C8.21071%201.96086%208%202.46957%208%203C8%203.53043%208.21071%204.03914%208.58579%204.41421C8.96086%204.78929%209.46957%205%2010%205ZM3%205C3.53043%205%204.03914%204.78929%204.41421%204.41421C4.78929%204.03914%205%203.53043%205%203C5%202.46957%204.78929%201.96086%204.41421%201.58579C4.03914%201.21071%203.53043%201%203%201C2.46957%201%201.96086%201.21071%201.58579%201.58579C1.21071%201.96086%201%202.46957%201%203C1%203.53043%201.21071%204.03914%201.58579%204.41421C1.96086%204.78929%202.46957%205%203%205ZM17%205C17.5304%205%2018.0391%204.78929%2018.4142%204.41421C18.7893%204.03914%2019%203.53043%2019%203C19%202.46957%2018.7893%201.96086%2018.4142%201.58579C18.0391%201.21071%2017.5304%201%2017%201C16.4696%201%2015.9609%201.21071%2015.5858%201.58579C15.2107%201.96086%2015%202.46957%2015%203C15%203.53043%2015.2107%204.03914%2015.5858%204.41421C15.9609%204.78929%2016.4696%205%2017%205ZM10%2019C10.5304%2019%2011.0391%2018.7893%2011.4142%2018.4142C11.7893%2018.0391%2012%2017.5304%2012%2017C12%2016.4696%2011.7893%2015.9609%2011.4142%2015.5858C11.0391%2015.2107%2010.5304%2015%2010%2015C9.46957%2015%208.96086%2015.2107%208.58579%2015.5858C8.21071%2015.9609%208%2016.4696%208%2017C8%2017.5304%208.21071%2018.0391%208.58579%2018.4142C8.96086%2018.7893%209.46957%2019%2010%2019ZM3%2019C3.53043%2019%204.03914%2018.7893%204.41421%2018.4142C4.78929%2018.0391%205%2017.5304%205%2017C5%2016.4696%204.78929%2015.9609%204.41421%2015.5858C4.03914%2015.2107%203.53043%2015%203%2015C2.46957%2015%201.96086%2015.2107%201.58579%2015.5858C1.21071%2015.9609%201%2016.4696%201%2017C1%2017.5304%201.21071%2018.0391%201.58579%2018.4142C1.96086%2018.7893%202.46957%2019%203%2019ZM17%2019C17.5304%2019%2018.0391%2018.7893%2018.4142%2018.4142C18.7893%2018.0391%2019%2017.5304%2019%2017C19%2016.4696%2018.7893%2015.9609%2018.4142%2015.5858C18.0391%2015.2107%2017.5304%2015%2017%2015C16.4696%2015%2015.9609%2015.2107%2015.5858%2015.5858C15.2107%2015.9609%2015%2016.4696%2015%2017C15%2017.5304%2015.2107%2018.0391%2015.5858%2018.4142C15.9609%2018.7893%2016.4696%2019%2017%2019Z'%20stroke='%235C59E8'%20stroke-width='1.5'%20stroke-miterlimit='10'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='18'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.75%200H5.25C3.85761%202.07482e-08%202.52226%200.553123%201.53769%201.53769C0.553124%202.52226%200%203.85761%200%205.25C0%206.64239%200.553124%207.97774%201.53769%208.96231C2.52226%209.94688%203.85761%2010.5%205.25%2010.5V18H6.75V1.5H10.5V18H12V1.5H15.75V0ZM5.25%209C4.25544%209%203.30161%208.60491%202.59835%207.90165C1.89509%207.19839%201.5%206.24456%201.5%205.25C1.5%204.25544%201.89509%203.30161%202.59835%202.59835C3.30161%201.89509%204.25544%201.5%205.25%201.5V9Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='18'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.75%200H5.25C3.85761%202.07482e-08%202.52226%200.553123%201.53769%201.53769C0.553124%202.52226%200%203.85761%200%205.25C0%206.64239%200.553124%207.97774%201.53769%208.96231C2.52226%209.94688%203.85761%2010.5%205.25%2010.5V18H6.75V1.5H10.5V18H12V1.5H15.75V0ZM5.25%209C4.25544%209%203.30161%208.60491%202.59835%207.90165C1.89509%207.19839%201.5%206.24456%201.5%205.25C1.5%204.25544%201.89509%203.30161%202.59835%202.59835C3.30161%201.89509%204.25544%201.5%205.25%201.5V9Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.707%2011.707L16.355%2014.355C16.4399%2014.4396%2016.5074%2014.5401%2016.5534%2014.6508C16.5994%2014.7614%2016.6231%2014.8801%2016.6231%2015C16.6231%2015.1199%2016.5994%2015.2386%2016.5534%2015.3492C16.5074%2015.4599%2016.4399%2015.5604%2016.355%2015.645C15.4238%2016.5763%2014.188%2017.1405%2012.8743%2017.2338C11.5607%2017.3271%2010.2574%2016.9434%209.20399%2016.153L7.62898%2014.971C5.88545%2013.6634%204.33663%2012.1145%203.02898%2010.371L1.84699%208.796C1.05663%207.74256%200.672878%206.43933%200.766199%205.12568C0.85952%203.81202%201.42365%202.57614%202.35498%201.645C2.43954%201.56004%202.54005%201.49262%202.65074%201.44662C2.76143%201.40061%202.88012%201.37693%202.99998%201.37693C3.11985%201.37693%203.23854%201.40061%203.34923%201.44662C3.45992%201.49262%203.56043%201.56004%203.64498%201.645L6.29299%204.293C6.48046%204.48053%206.58577%204.73484%206.58577%205C6.58577%205.26516%206.48046%205.51947%206.29299%205.707L5.27199%206.728C5.19229%206.80689%205.13968%206.90903%205.12171%207.01972C5.10374%207.13041%205.12134%207.24395%205.17199%207.344C6.35841%209.71726%208.28273%2011.6416%2010.656%2012.828C10.756%2012.8786%2010.8696%2012.8962%2010.9803%2012.8783C11.091%2012.8603%2011.1931%2012.8077%2011.272%2012.728L12.292%2011.708C12.3849%2011.615%2012.4951%2011.5413%2012.6165%2011.4909C12.7379%2011.4406%2012.8681%2011.4147%2012.9995%2011.4147C13.1309%2011.4147%2013.261%2011.4406%2013.3824%2011.4909C13.5038%2011.5413%2013.6141%2011.615%2013.707%2011.708V11.707Z'%20stroke='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.707%2011.707L16.355%2014.355C16.4399%2014.4396%2016.5074%2014.5401%2016.5534%2014.6508C16.5994%2014.7614%2016.6231%2014.8801%2016.6231%2015C16.6231%2015.1199%2016.5994%2015.2386%2016.5534%2015.3492C16.5074%2015.4599%2016.4399%2015.5604%2016.355%2015.645C15.4238%2016.5763%2014.188%2017.1405%2012.8743%2017.2338C11.5607%2017.3271%2010.2574%2016.9434%209.20399%2016.153L7.62898%2014.971C5.88545%2013.6634%204.33663%2012.1145%203.02898%2010.371L1.84699%208.796C1.05663%207.74256%200.672878%206.43933%200.766199%205.12568C0.85952%203.81202%201.42365%202.57614%202.35498%201.645C2.43954%201.56004%202.54005%201.49262%202.65074%201.44662C2.76143%201.40061%202.88012%201.37693%202.99998%201.37693C3.11985%201.37693%203.23854%201.40061%203.34923%201.44662C3.45992%201.49262%203.56043%201.56004%203.64498%201.645L6.29299%204.293C6.48046%204.48053%206.58577%204.73484%206.58577%205C6.58577%205.26516%206.48046%205.51947%206.29299%205.707L5.27199%206.728C5.19229%206.80689%205.13968%206.90903%205.12171%207.01972C5.10374%207.13041%205.12134%207.24395%205.17199%207.344C6.35841%209.71726%208.28273%2011.6416%2010.656%2012.828C10.756%2012.8786%2010.8696%2012.8962%2010.9803%2012.8783C11.091%2012.8603%2011.1931%2012.8077%2011.272%2012.728L12.292%2011.708C12.3849%2011.615%2012.4951%2011.5413%2012.6165%2011.4909C12.7379%2011.4406%2012.8681%2011.4147%2012.9995%2011.4147C13.1309%2011.4147%2013.261%2011.4406%2013.3824%2011.4909C13.5038%2011.5413%2013.6141%2011.615%2013.707%2011.708V11.707Z'%20stroke='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='6'%20viewBox='0%200%2020%206'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205C4.10457%205%205%204.10457%205%203C5%201.89543%204.10457%201%203%201C1.89543%201%201%201.89543%201%203C1%204.10457%201.89543%205%203%205Z'%20stroke='black'%20stroke-width='1.5'/%3e%3cpath%20opacity='0.5'%20d='M10%205C11.1046%205%2012%204.10457%2012%203C12%201.89543%2011.1046%201%2010%201C8.89543%201%208%201.89543%208%203C8%204.10457%208.89543%205%2010%205Z'%20stroke='black'%20stroke-width='1.5'/%3e%3cpath%20d='M17%205C18.1046%205%2019%204.10457%2019%203C19%201.89543%2018.1046%201%2017%201C15.8954%201%2015%201.89543%2015%203C15%204.10457%2015.8954%205%2017%205Z'%20stroke='black'%20stroke-width='1.5'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='6'%20viewBox='0%200%2020%206'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%205C4.10457%205%205%204.10457%205%203C5%201.89543%204.10457%201%203%201C1.89543%201%201%201.89543%201%203C1%204.10457%201.89543%205%203%205Z'%20stroke='%235C59E8'%20stroke-width='1.5'/%3e%3cpath%20opacity='0.5'%20d='M10%205C11.1046%205%2012%204.10457%2012%203C12%201.89543%2011.1046%201%2010%201C8.89543%201%208%201.89543%208%203C8%204.10457%208.89543%205%2010%205Z'%20stroke='%235C59E8'%20stroke-width='1.5'/%3e%3cpath%20d='M17%205C18.1046%205%2019%204.10457%2019%203C19%201.89543%2018.1046%201%2017%201C15.8954%201%2015%201.89543%2015%203C15%204.10457%2015.8954%205%2017%205Z'%20stroke='%235C59E8'%20stroke-width='1.5'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%2013.004V14C1%2014.7956%201.31607%2015.5587%201.87868%2016.1213C2.44129%2016.6839%203.20435%2017%204%2017H14C14.7956%2017%2015.5587%2016.6839%2016.1213%2016.1213C16.6839%2015.5587%2017%2014.7956%2017%2014V13M9%2012.5V1.5M9%201.5L12.5%205M9%201.5L5.5%205'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='22'%20height='10'%20viewBox='0%200%2022%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%205H15M8%201H5C3.93913%201%202.92172%201.42143%202.17157%202.17157C1.42143%202.92172%201%203.93913%201%205C1%206.06087%201.42143%207.07828%202.17157%207.82843C2.92172%208.57857%203.93913%209%205%209H8M14%201H17C18.0609%201%2019.0783%201.42143%2019.8284%202.17157C20.5786%202.92172%2021%203.93913%2021%205C21%206.06087%2020.5786%207.07828%2019.8284%207.82843C19.0783%208.57857%2018.0609%209%2017%209H14'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__CYIjdfZm__\"","export default \"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.84375%205.75C5.6204%205.75%206.25%205.1204%206.25%204.34375C6.25%203.5671%205.6204%202.9375%204.84375%202.9375C4.0671%202.9375%203.4375%203.5671%203.4375%204.34375C3.4375%205.1204%204.0671%205.75%204.84375%205.75Z'%20fill='%23000000'/%3e%3cpath%20d='M4.84375%2013.0625C5.6204%2013.0625%206.25%2012.4329%206.25%2011.6562C6.25%2010.8796%205.6204%2010.25%204.84375%2010.25C4.0671%2010.25%203.4375%2010.8796%203.4375%2011.6562C3.4375%2012.4329%204.0671%2013.0625%204.84375%2013.0625Z'%20fill='%23000000'/%3e%3cpath%20d='M12.1562%2013.0625C12.9329%2013.0625%2013.5625%2012.4329%2013.5625%2011.6562C13.5625%2010.8796%2012.9329%2010.25%2012.1562%2010.25C11.3796%2010.25%2010.75%2010.8796%2010.75%2011.6562C10.75%2012.4329%2011.3796%2013.0625%2012.1562%2013.0625Z'%20fill='%23000000'/%3e%3cpath%20d='M15.25%200.125H1.75C1.45163%200.125%201.16548%200.243526%200.954505%200.454505C0.743526%200.665483%200.625%200.951631%200.625%201.25V14.75C0.625%2015.0484%200.743526%2015.3345%200.954505%2015.5455C1.16548%2015.7565%201.45163%2015.875%201.75%2015.875H15.25C15.5484%2015.875%2015.8345%2015.7565%2016.0455%2015.5455C16.2565%2015.3345%2016.375%2015.0484%2016.375%2014.75V1.25C16.375%200.951631%2016.2565%200.665483%2016.0455%200.454505C15.8345%200.243526%2015.5484%200.125%2015.25%200.125ZM15.25%207.4375H9.0625V1.25H15.25V7.4375ZM7.9375%201.25V7.4375H1.75V1.25H7.9375ZM1.75%208.5625H7.9375V14.75H1.75V8.5625ZM9.0625%2014.75V8.5625H15.25V14.75H9.0625Z'%20fill='%23000000'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.84375%205.75C5.6204%205.75%206.25%205.1204%206.25%204.34375C6.25%203.5671%205.6204%202.9375%204.84375%202.9375C4.0671%202.9375%203.4375%203.5671%203.4375%204.34375C3.4375%205.1204%204.0671%205.75%204.84375%205.75Z'%20fill='%235C59E8'/%3e%3cpath%20d='M4.84375%2013.0625C5.6204%2013.0625%206.25%2012.4329%206.25%2011.6562C6.25%2010.8796%205.6204%2010.25%204.84375%2010.25C4.0671%2010.25%203.4375%2010.8796%203.4375%2011.6562C3.4375%2012.4329%204.0671%2013.0625%204.84375%2013.0625Z'%20fill='%235C59E8'/%3e%3cpath%20d='M12.1562%2013.0625C12.9329%2013.0625%2013.5625%2012.4329%2013.5625%2011.6562C13.5625%2010.8796%2012.9329%2010.25%2012.1562%2010.25C11.3796%2010.25%2010.75%2010.8796%2010.75%2011.6562C10.75%2012.4329%2011.3796%2013.0625%2012.1562%2013.0625Z'%20fill='%235C59E8'/%3e%3cpath%20d='M15.25%200.125H1.75C1.45163%200.125%201.16548%200.243526%200.954505%200.454505C0.743526%200.665483%200.625%200.951631%200.625%201.25V14.75C0.625%2015.0484%200.743526%2015.3345%200.954505%2015.5455C1.16548%2015.7565%201.45163%2015.875%201.75%2015.875H15.25C15.5484%2015.875%2015.8345%2015.7565%2016.0455%2015.5455C16.2565%2015.3345%2016.375%2015.0484%2016.375%2014.75V1.25C16.375%200.951631%2016.2565%200.665483%2016.0455%200.454505C15.8345%200.243526%2015.5484%200.125%2015.25%200.125ZM15.25%207.4375H9.0625V1.25H15.25V7.4375ZM7.9375%201.25V7.4375H1.75V1.25H7.9375ZM1.75%208.5625H7.9375V14.75H1.75V8.5625ZM9.0625%2014.75V8.5625H15.25V14.75H9.0625Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.96654%207.86758C4.12668%207.86758%203.32123%207.53395%202.72737%206.94008C2.1335%206.34622%201.79987%205.54076%201.79987%204.70091V2.16758C1.79987%201.99961%201.8666%201.83852%201.98537%201.71974C2.10414%201.60097%202.26523%201.53424%202.4332%201.53424H3.06654C3.23451%201.53424%203.3956%201.46752%203.51437%201.34875C3.63314%201.22997%203.69987%201.06888%203.69987%200.900911C3.69987%200.732941%203.63314%200.57185%203.51437%200.453077C3.3956%200.334304%203.23451%200.267578%203.06654%200.267578H2.4332C1.92929%200.267578%201.44602%200.467756%201.0897%200.824075C0.733381%201.18039%200.533203%201.66367%200.533203%202.16758V4.70091C0.534017%205.41641%200.708492%206.12102%201.04164%206.75423C1.37479%207.38744%201.85666%207.93032%202.44587%208.33624C3.01253%208.83485%203.47201%209.44337%203.79643%2010.1249C4.12086%2010.8064%204.30348%2011.5467%204.3332%2012.3009C4.3332%2013.4767%204.80029%2014.6043%205.6317%2015.4358C6.46311%2016.2672%207.59074%2016.7342%208.76654%2016.7342C9.94233%2016.7342%2011.07%2016.2672%2011.9014%2015.4358C12.7328%2014.6043%2013.1999%2013.4767%2013.1999%2012.3009V11.5789C13.7969%2011.4248%2014.3172%2011.0582%2014.6633%2010.5478C15.0093%2010.0375%2015.1574%209.41849%2015.0797%208.80681C15.002%208.19513%2014.7039%207.63278%2014.2412%207.22517C13.7786%206.81757%2013.1831%206.59269%2012.5665%206.59269C11.9499%206.59269%2011.3545%206.81757%2010.8919%207.22517C10.4292%207.63278%2010.1311%208.19513%2010.0534%208.80681C9.9757%209.41849%2010.1238%2010.0375%2010.4698%2010.5478C10.8159%2011.0582%2011.3362%2011.4248%2011.9332%2011.5789V12.3009C11.9332%2013.1408%2011.5996%2013.9462%2011.0057%2014.5401C10.4118%2015.1339%209.60639%2015.4676%208.76654%2015.4676C7.92668%2015.4676%207.12123%2015.1339%206.52736%2014.5401C5.9335%2013.9462%205.59987%2013.1408%205.59987%2012.3009C5.6312%2011.5458%205.81579%2010.8049%206.14242%2010.1233C6.46905%209.44175%206.9309%208.83373%207.49987%208.33624C8.08673%207.92891%208.56614%207.38541%208.89704%206.75229C9.22794%206.11917%209.40047%205.41529%209.39987%204.70091V2.16758C9.39987%201.66367%209.19969%201.18039%208.84337%200.824075C8.48705%200.467756%208.00378%200.267578%207.49987%200.267578H6.86654C6.69857%200.267578%206.53748%200.334304%206.4187%200.453077C6.29993%200.57185%206.2332%200.732941%206.2332%200.900911C6.2332%201.06888%206.29993%201.22997%206.4187%201.34875C6.53748%201.46752%206.69857%201.53424%206.86654%201.53424H7.49987C7.66784%201.53424%207.82893%201.60097%207.9477%201.71974C8.06648%201.83852%208.1332%201.99961%208.1332%202.16758V4.70091C8.1332%205.11676%208.0513%205.52854%207.89216%205.91274C7.73302%206.29694%207.49976%206.64603%207.20571%206.94008C6.91166%207.23414%206.56256%207.46739%206.17837%207.62653C5.79417%207.78567%205.38239%207.86758%204.96654%207.86758ZM12.5665%2010.4009C12.2306%2010.4009%2011.9084%2010.2675%2011.6709%2010.0299C11.4333%209.79237%2011.2999%209.47019%2011.2999%209.13424C11.2999%208.7983%2011.4333%208.47612%2011.6709%208.23858C11.9084%208.00103%2012.2306%207.86758%2012.5665%207.86758C12.9025%207.86758%2013.2247%208.00103%2013.4622%208.23858C13.6998%208.47612%2013.8332%208.7983%2013.8332%209.13424C13.8332%209.47019%2013.6998%209.79237%2013.4622%2010.0299C13.2247%2010.2675%2012.9025%2010.4009%2012.5665%2010.4009Z'%20fill='%23444444'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.96654%207.86758C4.12668%207.86758%203.32123%207.53395%202.72737%206.94008C2.1335%206.34622%201.79987%205.54076%201.79987%204.70091V2.16758C1.79987%201.99961%201.8666%201.83852%201.98537%201.71974C2.10414%201.60097%202.26523%201.53424%202.4332%201.53424H3.06654C3.23451%201.53424%203.3956%201.46752%203.51437%201.34875C3.63314%201.22997%203.69987%201.06888%203.69987%200.900911C3.69987%200.732941%203.63314%200.57185%203.51437%200.453077C3.3956%200.334304%203.23451%200.267578%203.06654%200.267578H2.4332C1.92929%200.267578%201.44602%200.467756%201.0897%200.824075C0.733381%201.18039%200.533203%201.66367%200.533203%202.16758V4.70091C0.534017%205.41641%200.708492%206.12102%201.04164%206.75423C1.37479%207.38744%201.85666%207.93032%202.44587%208.33624C3.01253%208.83485%203.47201%209.44337%203.79643%2010.1249C4.12086%2010.8064%204.30348%2011.5467%204.3332%2012.3009C4.3332%2013.4767%204.80029%2014.6043%205.6317%2015.4358C6.46311%2016.2672%207.59074%2016.7342%208.76654%2016.7342C9.94233%2016.7342%2011.07%2016.2672%2011.9014%2015.4358C12.7328%2014.6043%2013.1999%2013.4767%2013.1999%2012.3009V11.5789C13.7969%2011.4248%2014.3172%2011.0582%2014.6633%2010.5478C15.0093%2010.0375%2015.1574%209.41849%2015.0797%208.80681C15.002%208.19513%2014.7039%207.63278%2014.2412%207.22517C13.7786%206.81757%2013.1831%206.59269%2012.5665%206.59269C11.9499%206.59269%2011.3545%206.81757%2010.8919%207.22517C10.4292%207.63278%2010.1311%208.19513%2010.0534%208.80681C9.9757%209.41849%2010.1238%2010.0375%2010.4698%2010.5478C10.8159%2011.0582%2011.3362%2011.4248%2011.9332%2011.5789V12.3009C11.9332%2013.1408%2011.5996%2013.9462%2011.0057%2014.5401C10.4118%2015.1339%209.60639%2015.4676%208.76654%2015.4676C7.92668%2015.4676%207.12123%2015.1339%206.52736%2014.5401C5.9335%2013.9462%205.59987%2013.1408%205.59987%2012.3009C5.6312%2011.5458%205.81579%2010.8049%206.14242%2010.1233C6.46905%209.44175%206.9309%208.83373%207.49987%208.33624C8.08673%207.92891%208.56614%207.38541%208.89704%206.75229C9.22794%206.11917%209.40047%205.41529%209.39987%204.70091V2.16758C9.39987%201.66367%209.19969%201.18039%208.84337%200.824075C8.48705%200.467756%208.00378%200.267578%207.49987%200.267578H6.86654C6.69857%200.267578%206.53748%200.334304%206.4187%200.453077C6.29993%200.57185%206.2332%200.732941%206.2332%200.900911C6.2332%201.06888%206.29993%201.22997%206.4187%201.34875C6.53748%201.46752%206.69857%201.53424%206.86654%201.53424H7.49987C7.66784%201.53424%207.82893%201.60097%207.9477%201.71974C8.06648%201.83852%208.1332%201.99961%208.1332%202.16758V4.70091C8.1332%205.11676%208.0513%205.52854%207.89216%205.91274C7.73302%206.29694%207.49976%206.64603%207.20571%206.94008C6.91166%207.23414%206.56256%207.46739%206.17837%207.62653C5.79417%207.78567%205.38239%207.86758%204.96654%207.86758ZM12.5665%2010.4009C12.2306%2010.4009%2011.9084%2010.2675%2011.6709%2010.0299C11.4333%209.79237%2011.2999%209.47019%2011.2999%209.13424C11.2999%208.7983%2011.4333%208.47612%2011.6709%208.23858C11.9084%208.00103%2012.2306%207.86758%2012.5665%207.86758C12.9025%207.86758%2013.2247%208.00103%2013.4622%208.23858C13.6998%208.47612%2013.8332%208.7983%2013.8332%209.13424C13.8332%209.47019%2013.6998%209.79237%2013.4622%2010.0299C13.2247%2010.2675%2012.9025%2010.4009%2012.5665%2010.4009Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.673%200C5.85865%200%206.0367%200.0737498%206.16797%200.205025C6.29925%200.336301%206.373%200.514348%206.373%200.7V2.009H13.89V0.709C13.89%200.523348%2013.9637%200.345301%2014.095%200.214025C14.2263%200.0827498%2014.4043%200.009%2014.59%200.009C14.7757%200.009%2014.9537%200.0827498%2015.085%200.214025C15.2162%200.345301%2015.29%200.523348%2015.29%200.709V2.009H18C18.5303%202.009%2019.0388%202.21958%2019.4139%202.59443C19.7889%202.96929%2019.9997%203.47774%2020%204.008V18.001C19.9997%2018.5313%2019.7889%2019.0397%2019.4139%2019.4146C19.0388%2019.7894%2018.5303%2020%2018%2020H2C1.46974%2020%200.961184%2019.7894%200.58614%2019.4146C0.211096%2019.0397%200.00026513%2018.5313%200%2018.001L0%204.008C0.00026513%203.47774%200.211096%202.96929%200.58614%202.59443C0.961184%202.21958%201.46974%202.009%202%202.009H4.973V0.699C4.97327%200.513522%205.04713%200.335731%205.17838%200.204672C5.30963%200.0736123%205.48752%20-1.89263e-07%205.673%200ZM1.4%207.742V18.001C1.4%2018.0798%201.41552%2018.1578%201.44567%2018.2306C1.47583%2018.3034%201.52002%2018.3695%201.57574%2018.4253C1.63145%2018.481%201.69759%2018.5252%201.77039%2018.5553C1.84319%2018.5855%201.92121%2018.601%202%2018.601H18C18.0788%2018.601%2018.1568%2018.5855%2018.2296%2018.5553C18.3024%2018.5252%2018.3685%2018.481%2018.4243%2018.4253C18.48%2018.3695%2018.5242%2018.3034%2018.5543%2018.2306C18.5845%2018.1578%2018.6%2018.0798%2018.6%2018.001V7.756L1.4%207.742ZM6.667%2014.619V16.285H5V14.619H6.667ZM10.833%2014.619V16.285H9.167V14.619H10.833ZM15%2014.619V16.285H13.333V14.619H15ZM6.667%2010.642V12.308H5V10.642H6.667ZM10.833%2010.642V12.308H9.167V10.642H10.833ZM15%2010.642V12.308H13.333V10.642H15ZM4.973%203.408H2C1.92121%203.408%201.84319%203.42352%201.77039%203.45367C1.69759%203.48382%201.63145%203.52802%201.57574%203.58374C1.52002%203.63945%201.47583%203.70559%201.44567%203.77839C1.41552%203.85119%201.4%203.92921%201.4%204.008V6.343L18.6%206.357V4.008C18.6%203.92921%2018.5845%203.85119%2018.5543%203.77839C18.5242%203.70559%2018.48%203.63945%2018.4243%203.58374C18.3685%203.52802%2018.3024%203.48382%2018.2296%203.45367C18.1568%203.42352%2018.0788%203.408%2018%203.408H15.29V4.337C15.29%204.52265%2015.2162%204.7007%2015.085%204.83197C14.9537%204.96325%2014.7757%205.037%2014.59%205.037C14.4043%205.037%2014.2263%204.96325%2014.095%204.83197C13.9637%204.7007%2013.89%204.52265%2013.89%204.337V3.408H6.373V4.328C6.373%204.51365%206.29925%204.6917%206.16797%204.82297C6.0367%204.95425%205.85865%205.028%205.673%205.028C5.48735%205.028%205.3093%204.95425%205.17803%204.82297C5.04675%204.6917%204.973%204.51365%204.973%204.328V3.408Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.673%200C5.85865%200%206.0367%200.0737498%206.16797%200.205025C6.29925%200.336301%206.373%200.514348%206.373%200.7V2.009H13.89V0.709C13.89%200.523348%2013.9637%200.345301%2014.095%200.214025C14.2263%200.0827498%2014.4043%200.009%2014.59%200.009C14.7757%200.009%2014.9537%200.0827498%2015.085%200.214025C15.2162%200.345301%2015.29%200.523348%2015.29%200.709V2.009H18C18.5303%202.009%2019.0388%202.21958%2019.4139%202.59443C19.7889%202.96929%2019.9997%203.47774%2020%204.008V18.001C19.9997%2018.5313%2019.7889%2019.0397%2019.4139%2019.4146C19.0388%2019.7894%2018.5303%2020%2018%2020H2C1.46974%2020%200.961184%2019.7894%200.58614%2019.4146C0.211096%2019.0397%200.00026513%2018.5313%200%2018.001L0%204.008C0.00026513%203.47774%200.211096%202.96929%200.58614%202.59443C0.961184%202.21958%201.46974%202.009%202%202.009H4.973V0.699C4.97327%200.513522%205.04713%200.335731%205.17838%200.204672C5.30963%200.0736123%205.48752%20-1.89263e-07%205.673%200ZM1.4%207.742V18.001C1.4%2018.0798%201.41552%2018.1578%201.44567%2018.2306C1.47583%2018.3034%201.52002%2018.3695%201.57574%2018.4253C1.63145%2018.481%201.69759%2018.5252%201.77039%2018.5553C1.84319%2018.5855%201.92121%2018.601%202%2018.601H18C18.0788%2018.601%2018.1568%2018.5855%2018.2296%2018.5553C18.3024%2018.5252%2018.3685%2018.481%2018.4243%2018.4253C18.48%2018.3695%2018.5242%2018.3034%2018.5543%2018.2306C18.5845%2018.1578%2018.6%2018.0798%2018.6%2018.001V7.756L1.4%207.742ZM6.667%2014.619V16.285H5V14.619H6.667ZM10.833%2014.619V16.285H9.167V14.619H10.833ZM15%2014.619V16.285H13.333V14.619H15ZM6.667%2010.642V12.308H5V10.642H6.667ZM10.833%2010.642V12.308H9.167V10.642H10.833ZM15%2010.642V12.308H13.333V10.642H15ZM4.973%203.408H2C1.92121%203.408%201.84319%203.42352%201.77039%203.45367C1.69759%203.48382%201.63145%203.52802%201.57574%203.58374C1.52002%203.63945%201.47583%203.70559%201.44567%203.77839C1.41552%203.85119%201.4%203.92921%201.4%204.008V6.343L18.6%206.357V4.008C18.6%203.92921%2018.5845%203.85119%2018.5543%203.77839C18.5242%203.70559%2018.48%203.63945%2018.4243%203.58374C18.3685%203.52802%2018.3024%203.48382%2018.2296%203.45367C18.1568%203.42352%2018.0788%203.408%2018%203.408H15.29V4.337C15.29%204.52265%2015.2162%204.7007%2015.085%204.83197C14.9537%204.96325%2014.7757%205.037%2014.59%205.037C14.4043%205.037%2014.2263%204.96325%2014.095%204.83197C13.9637%204.7007%2013.89%204.52265%2013.89%204.337V3.408H6.373V4.328C6.373%204.51365%206.29925%204.6917%206.16797%204.82297C6.0367%204.95425%205.85865%205.028%205.673%205.028C5.48735%205.028%205.3093%204.95425%205.17803%204.82297C5.04675%204.6917%204.973%204.51365%204.973%204.328V3.408Z'%20fill='%23000000'/%3e%3c/svg%3e\"","import avatar from './header/avatar.svg';\nimport chevronDown from './header/chevronDown.svg';\nimport profileIcon from './header/profileIcon.svg';\nimport signout from './header/signout.svg';\nimport address from './sidebar/address.svg';\nimport date from './sidebar/date.svg';\nimport earphone from './sidebar/earphone.svg';\nimport email from './sidebar/email.svg';\nimport activeEmail from './sidebar/activeEmail.svg';\nimport freeTextActive from './sidebar/freeTextActive.svg';\nimport freeText from './sidebar/freeText.svg';\nimport gear from './sidebar/gear.svg';\nimport headlines from './sidebar/headlines.svg';\nimport icon from './sidebar/icon.svg';\nimport like from './sidebar/like.svg';\nimport multiple from './sidebar/multiple.svg';\nimport activeMultiple from './sidebar/activeMultiple.svg';\nimport name from './sidebar/name.svg';\nimport activeName from './sidebar/activeName.svg';\nimport number from './sidebar/number.svg';\nimport activeNumber from './sidebar/activeNumber.svg';\nimport paragraph from './sidebar/paragraph.svg';\nimport activeParagraph from './sidebar/activeParagraph.svg';\nimport phone from './sidebar/phone.svg';\nimport activePhone from './sidebar/activePhone.svg';\nimport rating from './sidebar/rating.svg';\nimport activeRating from './sidebar/activeRating.svg';\nimport upload from './sidebar/upload.svg';\nimport url from './sidebar/url.svg';\nimport logo from './surveyeditor.svg';\nimport matrix from './sidebar/matrix.svg';\nimport matrixActive from './sidebar/matrixActive.svg';\nimport healthcare from './sidebar/healthcare.svg';\nimport activeHealthcare from './sidebar/activeHealthcare.svg';\nimport activeDateTime from './sidebar/activeDateTime.svg';\nimport dateTime from './sidebar/dateTime.svg';\nconst LayoutAssets = {\n icon,\n logo,\n earphone,\n like,\n gear,\n freeText,\n freeTextActive,\n multiple,\n activeMultiple,\n rating,\n activeRating,\n name,\n activeName,\n email,\n activeEmail,\n address,\n phone,\n activePhone,\n date,\n number,\n activeNumber,\n url,\n upload,\n headlines,\n paragraph,\n activeParagraph,\n avatar,\n chevronDown,\n signout,\n profileIcon,\n matrix,\n matrixActive,\n healthcare,\n activeHealthcare,\n dateTime,\n activeDateTime\n}\n\nexport default LayoutAssets;","export default \"data:image/svg+xml,%3csvg%20width='14'%20height='12'%20viewBox='0%200%2014%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.46967%205.46967C0.176777%205.76256%200.176777%206.23744%200.46967%206.53033L5.24264%2011.3033C5.53553%2011.5962%206.01041%2011.5962%206.3033%2011.3033C6.59619%2011.0104%206.59619%2010.5355%206.3033%2010.2426L2.06066%206L6.3033%201.75736C6.59619%201.46447%206.59619%200.989593%206.3033%200.696699C6.01041%200.403806%205.53553%200.403806%205.24264%200.696699L0.46967%205.46967ZM1%206.75H14V5.25H1V6.75Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='18'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.4999%201.27045C5.5053%201.18846%205.52681%201.10833%205.56321%201.03467C5.59961%200.960998%205.65018%200.89523%205.71202%200.841127C5.77387%200.787023%205.84577%200.745645%205.92362%200.719361C6.00148%200.693077%206.08375%200.682403%206.16573%200.687949C11.1591%201.01628%2015.1507%205.00878%2015.4782%2010.0038C15.4836%2010.0857%2015.4728%2010.1679%2015.4464%2010.2456C15.42%2010.3233%2015.3785%2010.3951%2015.3244%2010.4568C15.2703%2010.5185%2015.2045%2010.569%2015.1309%2010.6053C15.0573%2010.6416%2014.9772%2010.663%2014.8953%2010.6684C14.8134%2010.6737%2014.7312%2010.6629%2014.6535%2010.6365C14.5758%2010.6101%2014.504%2010.5687%2014.4423%2010.5145C14.3177%2010.4052%2014.2416%2010.2509%2014.2307%2010.0855C13.9449%205.71712%2010.4516%202.22295%206.08323%201.93545C6.00124%201.93015%205.9211%201.90874%205.84739%201.87244C5.77369%201.83614%205.70786%201.78566%205.65368%201.7239C5.5995%201.66213%205.55803%201.59029%205.53164%201.51248C5.50526%201.43468%205.49447%201.35243%205.4999%201.27045ZM4.32406%2016.8213L4.6474%2017.143C4.76448%2017.2592%204.9228%2017.3245%205.08781%2017.3245C5.25283%2017.3245%205.41115%2017.2592%205.52823%2017.143L6.6499%2016.0288C7.25656%2015.4263%207.95656%2014.7296%208.32656%2014.3596C8.96703%2013.7191%209.40318%2012.903%209.57985%2012.0146C9.75653%2011.1262%209.66579%2010.2053%209.31913%209.36845C8.97246%208.53159%208.38543%207.81633%207.63227%207.3131C6.8791%206.80987%205.99363%206.54127%205.08781%206.54127C4.182%206.54127%203.29653%206.80987%202.54336%207.3131C1.7902%207.81633%201.20317%208.53159%200.856501%209.36845C0.509835%2010.2053%200.419102%2011.1262%200.595776%2012.0146C0.772451%2012.903%201.2086%2013.7191%201.84906%2014.3596C2.67258%2015.1817%203.49759%2016.0022%204.32406%2016.8213ZM5.08323%2012.1246C4.80696%2012.1246%204.54201%2012.0149%204.34666%2011.8195C4.15131%2011.6242%204.04156%2011.3592%204.04156%2011.0829C4.04156%2010.8067%204.15131%2010.5417%204.34666%2010.3464C4.54201%2010.151%204.80696%2010.0413%205.08323%2010.0413C5.3595%2010.0413%205.62445%2010.151%205.8198%2010.3464C6.01515%2010.5417%206.1249%2010.8067%206.1249%2011.0829C6.1249%2011.3592%206.01515%2011.6242%205.8198%2011.8195C5.62445%2012.0149%205.3595%2012.1246%205.08323%2012.1246ZM6.18156%203.58545C6.09973%203.57795%206.01722%203.58667%205.93876%203.6111C5.8603%203.63553%205.78743%203.67519%205.72431%203.72781C5.6612%203.78044%205.60908%203.84499%205.57094%203.91778C5.53281%203.99057%205.5094%204.07016%205.50206%204.15201C5.49471%204.23386%205.50359%204.31635%205.52816%204.39476C5.55274%204.47318%205.59254%204.54598%205.64528%204.60899C5.69802%204.67201%205.76267%204.724%205.83554%204.762C5.9084%204.8%205.98804%204.82326%206.0699%204.83045C7.42409%204.95522%208.69195%205.54987%209.65371%206.51133C10.6155%207.4728%2011.2105%208.74046%2011.3357%2010.0946C11.3432%2010.1764%2011.3666%2010.2558%2011.4048%2010.3285C11.443%2010.4012%2011.4951%2010.4657%2011.5581%2010.5182C11.6212%2010.5707%2011.694%2010.6103%2011.7724%2010.6347C11.8507%2010.6592%2011.9331%2010.6679%2012.0149%2010.6604C12.0966%2010.653%2012.1761%2010.6295%2012.2488%2010.5914C12.3215%2010.5532%2012.3859%2010.5011%2012.4385%2010.4381C12.491%2010.375%2012.5306%2010.3022%2012.555%2010.2238C12.5794%2010.1454%2012.5882%2010.063%2012.5807%209.98128C12.429%208.33566%2011.706%206.79508%2010.5371%205.62682C9.36822%204.45855%207.82726%203.73633%206.18156%203.58545Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.5%204C10.5%203.44772%2010.0523%203%209.5%203C8.94772%203%208.5%203.44772%208.5%204V20C8.5%2020.5523%208.94772%2021%209.5%2021C10.0523%2021%2010.5%2020.5523%2010.5%2020V4Z'%20fill='%23667085'/%3e%3cpath%20d='M5.5%2012C5.5%2011.4477%205.05228%2011%204.5%2011C3.94772%2011%203.5%2011.4477%203.5%2012V20C3.5%2020.5523%203.94772%2021%204.5%2021C5.05228%2021%205.5%2020.5523%205.5%2020V12Z'%20fill='%23667085'/%3e%3cpath%20d='M14.5%206C15.0523%206%2015.5%206.44772%2015.5%207V20C15.5%2020.5523%2015.0523%2021%2014.5%2021C13.9477%2021%2013.5%2020.5523%2013.5%2020V7C13.5%206.44772%2013.9477%206%2014.5%206Z'%20fill='%23667085'/%3e%3cpath%20d='M20.5%2010C20.5%209.44772%2020.0523%209%2019.5%209C18.9477%209%2018.5%209.44772%2018.5%2010V20C18.5%2020.5523%2018.9477%2021%2019.5%2021C20.0523%2021%2020.5%2020.5523%2020.5%2020V10Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__CK_qQm0f__\"","export default \"data:image/svg+xml,%3csvg%20width='21'%20height='18'%20viewBox='0%200%2021%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.5%200.499512L17.774%200.704512C18.3957%200.722164%2018.9902%200.963466%2019.4483%201.38412C19.9065%201.80478%2020.1975%202.37656%2020.268%202.99451C20.5918%205.82194%2020.5918%208.67708%2020.268%2011.5045C20.1975%2012.1225%2019.9065%2012.6942%2019.4483%2013.1149C18.9902%2013.5356%2018.3957%2013.7769%2017.774%2013.7945L12.25%2013.9505V16.0005H15.5C15.6989%2016.0005%2015.8897%2016.0795%2016.0303%2016.2202C16.171%2016.3608%2016.25%2016.5516%2016.25%2016.7505C16.25%2016.9494%2016.171%2017.1402%2016.0303%2017.2808C15.8897%2017.4215%2015.6989%2017.5005%2015.5%2017.5005H5.5C5.30109%2017.5005%205.11032%2017.4215%204.96967%2017.2808C4.82902%2017.1402%204.75%2016.9494%204.75%2016.7505C4.75%2016.5516%204.82902%2016.3608%204.96967%2016.2202C5.11032%2016.0795%205.30109%2016.0005%205.5%2016.0005H8.75V13.9495L3.226%2013.7935C2.60429%2013.7759%202.00981%2013.5346%201.55168%2013.1139C1.09355%2012.6932%200.802515%2012.1215%200.732%2011.5035C0.408222%208.67608%200.408222%205.82094%200.732%202.99351C0.802515%202.37556%201.09355%201.80378%201.55168%201.38312C2.00981%200.962466%202.60429%200.721164%203.226%200.703512L10.5%200.499512ZM10.5%201.99951L3.269%202.20451C2.729%202.21951%202.284%202.62851%202.222%203.16451C1.91198%205.87902%201.91198%208.62%202.222%2011.3345C2.284%2011.8705%202.729%2012.2795%203.269%2012.2945L10.499%2012.4995L17.731%2012.2945C18.271%2012.2795%2018.716%2011.8705%2018.778%2011.3345C19.088%208.62%2019.088%205.87902%2018.778%203.16451C18.7483%202.90527%2018.626%202.66547%2018.4337%202.48912C18.2413%202.31277%2017.9918%202.21172%2017.731%202.20451L10.5%201.99951Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='22'%20height='18'%20viewBox='0%200%2022%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.0001%200.499512L18.2741%200.704512C18.8958%200.722164%2019.4903%200.963466%2019.9484%201.38412C20.4065%201.80478%2020.6976%202.37656%2020.7681%202.99451C21.0919%205.82194%2021.0919%208.67708%2020.7681%2011.5045C20.6976%2012.1225%2020.4065%2012.6942%2019.9484%2013.1149C19.4903%2013.5356%2018.8958%2013.7769%2018.2741%2013.7945L12.7501%2013.9505V16.0005H16.0001C16.199%2016.0005%2016.3898%2016.0795%2016.5304%2016.2202C16.6711%2016.3608%2016.7501%2016.5516%2016.7501%2016.7505C16.7501%2016.9494%2016.6711%2017.1402%2016.5304%2017.2808C16.3898%2017.4215%2016.199%2017.5005%2016.0001%2017.5005H6.00009C5.80118%2017.5005%205.61041%2017.4215%205.46976%2017.2808C5.32911%2017.1402%205.25009%2016.9494%205.25009%2016.7505C5.25009%2016.5516%205.32911%2016.3608%205.46976%2016.2202C5.61041%2016.0795%205.80118%2016.0005%206.00009%2016.0005H9.25009V13.9495L3.72609%2013.7935C3.10438%2013.7759%202.5099%2013.5346%202.05177%2013.1139C1.59364%2012.6932%201.30261%2012.1215%201.23209%2011.5035C0.908313%208.67608%200.908313%205.82094%201.23209%202.99351C1.30261%202.37556%201.59364%201.80378%202.05177%201.38312C2.5099%200.962466%203.10438%200.721164%203.72609%200.703512L11.0001%200.499512ZM11.0001%201.99951L3.76909%202.20451C3.22909%202.21951%202.78409%202.62851%202.72209%203.16451C2.41207%205.87902%202.41207%208.62%202.72209%2011.3345C2.78409%2011.8705%203.22909%2012.2795%203.76909%2012.2945L10.9991%2012.4995L18.2311%2012.2945C18.7711%2012.2795%2019.2161%2011.8705%2019.2781%2011.3345C19.5881%208.62%2019.5881%205.87902%2019.2781%203.16451C19.2483%202.90527%2019.1261%202.66547%2018.9337%202.48912C18.7414%202.31277%2018.4919%202.21172%2018.2311%202.20451L11.0001%201.99951Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='12'%20height='20'%20viewBox='0%200%2012%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6667%200.666626H1.33333C0.979711%200.666626%200.640573%200.807102%200.390525%201.05715C0.140476%201.3072%200%201.64634%200%201.99996V18C0%2018.3536%200.140476%2018.6927%200.390525%2018.9428C0.640573%2019.1928%200.979711%2019.3333%201.33333%2019.3333H10.6667C11.0203%2019.3333%2011.3594%2019.1928%2011.6095%2018.9428C11.8595%2018.6927%2012%2018.3536%2012%2018V1.99996C12%201.64634%2011.8595%201.3072%2011.6095%201.05715C11.3594%200.807102%2011.0203%200.666626%2010.6667%200.666626ZM6.66667%2018H5.33333V16.6666H6.66667V18ZM1.33333%2015.3333V1.99996H10.6667V15.3333H1.33333Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='13'%20height='20'%20viewBox='0%200%2013%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.1667%200.666626H1.83333C1.47971%200.666626%201.14057%200.807102%200.890525%201.05715C0.640476%201.3072%200.5%201.64634%200.5%201.99996V18C0.5%2018.3536%200.640476%2018.6927%200.890525%2018.9428C1.14057%2019.1928%201.47971%2019.3333%201.83333%2019.3333H11.1667C11.5203%2019.3333%2011.8594%2019.1928%2012.1095%2018.9428C12.3595%2018.6927%2012.5%2018.3536%2012.5%2018V1.99996C12.5%201.64634%2012.3595%201.3072%2012.1095%201.05715C11.8594%200.807102%2011.5203%200.666626%2011.1667%200.666626ZM7.16667%2018H5.83333V16.6666H7.16667V18ZM1.83333%2015.3333V1.99996H11.1667V15.3333H1.83333Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='18'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.25%200.25H2.25C1.29%200.25%200.5%201.04%200.5%202V16C0.5%2016.96%201.29%2017.75%202.25%2017.75H14.25C15.21%2017.75%2016%2016.96%2016%2016V2C16%201.04%2015.21%200.25%2014.25%200.25ZM14.5%2016C14.5%2016.14%2014.39%2016.25%2014.25%2016.25H2.25C2.11%2016.25%202%2016.14%202%2016V2C2%201.86%202.11%201.75%202.25%201.75H14.25C14.39%201.75%2014.5%201.86%2014.5%202V16ZM9.25%2013C9.25%2013.55%208.8%2014%208.25%2014C7.7%2014%207.25%2013.55%207.25%2013C7.25%2012.45%207.7%2012%208.25%2012C8.8%2012%209.25%2012.45%209.25%2013Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='17'%20height='18'%20viewBox='0%200%2017%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.5%200.25H2.5C1.54%200.25%200.75%201.04%200.75%202V16C0.75%2016.96%201.54%2017.75%202.5%2017.75H14.5C15.46%2017.75%2016.25%2016.96%2016.25%2016V2C16.25%201.04%2015.46%200.25%2014.5%200.25ZM14.75%2016C14.75%2016.14%2014.64%2016.25%2014.5%2016.25H2.5C2.36%2016.25%202.25%2016.14%202.25%2016V2C2.25%201.86%202.36%201.75%202.5%201.75H14.5C14.64%201.75%2014.75%201.86%2014.75%202V16ZM9.5%2013C9.5%2013.55%209.05%2014%208.5%2014C7.95%2014%207.5%2013.55%207.5%2013C7.5%2012.45%207.95%2012%208.5%2012C9.05%2012%209.5%2012.45%209.5%2013Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='39'%20height='30'%20viewBox='0%200%2039%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='39'%20height='30'%20rx='8'%20fill='%2325D366'/%3e%3cpath%20d='M26.55%207.91005C25.6331%206.98416%2024.5411%206.25002%2023.3376%205.75042C22.134%205.25081%2020.8431%204.99574%2019.54%205.00005C14.08%205.00005%209.63005%209.45005%209.63005%2014.9101C9.63005%2016.6601%2010.09%2018.3601%2010.95%2019.8601L9.55005%2025.0001L14.8%2023.6201C16.25%2024.4101%2017.88%2024.8301%2019.54%2024.8301C25%2024.8301%2029.4501%2020.3801%2029.4501%2014.9201C29.4501%2012.2701%2028.42%209.78005%2026.55%207.91005ZM19.54%2023.1501C18.06%2023.1501%2016.61%2022.7501%2015.34%2022.0001L15.04%2021.8201L11.92%2022.6401L12.75%2019.6001L12.55%2019.2901C11.7276%2017.9771%2011.291%2016.4593%2011.29%2014.9101C11.29%2010.3701%2014.99%206.67005%2019.53%206.67005C21.73%206.67005%2023.8%207.53005%2025.35%209.09005C26.1177%209.85392%2026.726%2010.7626%2027.1397%2011.7634C27.5534%2012.7642%2027.7642%2013.8371%2027.76%2014.9201C27.7801%2019.4601%2024.08%2023.1501%2019.54%2023.1501ZM24.06%2016.9901C23.81%2016.8701%2022.59%2016.2701%2022.37%2016.1801C22.14%2016.1001%2021.98%2016.0601%2021.81%2016.3001C21.64%2016.5501%2021.17%2017.1101%2021.03%2017.2701C20.89%2017.4401%2020.74%2017.4601%2020.49%2017.3301C20.24%2017.2101%2019.44%2016.9401%2018.5%2016.1001C17.76%2015.4401%2017.27%2014.6301%2017.12%2014.3801C16.98%2014.1301%2017.1%2014.0001%2017.23%2013.8701C17.34%2013.7601%2017.48%2013.5801%2017.6%2013.4401C17.72%2013.3001%2017.77%2013.1901%2017.85%2013.0301C17.93%2012.8601%2017.89%2012.7201%2017.83%2012.6001C17.77%2012.4801%2017.27%2011.2601%2017.07%2010.7601C16.87%2010.2801%2016.66%2010.3401%2016.51%2010.3301H16.03C15.86%2010.3301%2015.6%2010.3901%2015.37%2010.6401C15.15%2010.8901%2014.51%2011.4901%2014.51%2012.7101C14.51%2013.9301%2015.4%2015.1101%2015.52%2015.2701C15.64%2015.4401%2017.27%2017.9401%2019.75%2019.0101C20.34%2019.2701%2020.8%2019.4201%2021.16%2019.5301C21.75%2019.7201%2022.29%2019.6901%2022.72%2019.6301C23.2%2019.5601%2024.19%2019.0301%2024.39%2018.4501C24.6%2017.8701%2024.6%2017.3801%2024.53%2017.2701C24.46%2017.1601%2024.31%2017.1101%2024.06%2016.9901Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='39'%20height='30'%20viewBox='0%200%2039%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='39'%20height='30'%20rx='8'%20fill='%231DA1F2'/%3e%3cpath%20d='M10.5%208V7.25C10.3011%207.25%2010.1103%207.32902%209.96967%207.46967C9.82902%207.61032%209.75%207.80109%209.75%208H10.5ZM28.5%208H29.25C29.25%207.80109%2029.171%207.61032%2029.0303%207.46967C28.8897%207.32902%2028.6989%207.25%2028.5%207.25V8ZM10.5%208.75H28.5V7.25H10.5V8.75ZM27.75%208V20H29.25V8H27.75ZM26.5%2021.25H12.5V22.75H26.5V21.25ZM11.25%2020V8H9.75V20H11.25ZM12.5%2021.25C11.81%2021.25%2011.25%2020.69%2011.25%2020H9.75C9.75%2020.7293%2010.0397%2021.4288%2010.5555%2021.9445C11.0712%2022.4603%2011.7707%2022.75%2012.5%2022.75V21.25ZM27.75%2020C27.75%2020.69%2027.19%2021.25%2026.5%2021.25V22.75C27.2293%2022.75%2027.9288%2022.4603%2028.4445%2021.9445C28.9603%2021.4288%2029.25%2020.7293%2029.25%2020H27.75Z'%20fill='white'/%3e%3cpath%20d='M10.5%208L19.5%2017L28.5%208'%20stroke='white'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='39'%20height='30'%20viewBox='0%200%2039%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='39'%20height='30'%20rx='8'%20fill='%234267B2'/%3e%3cpath%20d='M25.8375%2019.05L20.4375%2015L25.8375%2010.95C25.9074%2010.8976%2025.9641%2010.8297%2026.0031%2010.7516C26.0422%2010.6735%2026.0625%2010.5873%2026.0625%2010.5C26.0625%2010.4127%2026.0422%2010.3265%2026.0031%2010.2484C25.9641%2010.1703%2025.9074%2010.1024%2025.8375%2010.05L19.8375%205.55C19.7539%205.48732%2019.6546%205.44915%2019.5505%205.43977C19.4465%205.43039%2019.3419%205.45017%2019.2484%205.49688C19.155%205.5436%2019.0764%205.61542%2019.0215%205.70428C18.9666%205.79314%2018.9375%205.89554%2018.9375%206V13.875L13.8375%2010.05C13.7784%2010.0057%2013.7112%209.97343%2013.6396%209.9551C13.568%209.93677%2013.4936%209.93271%2013.4205%209.94315C13.3473%209.9536%2013.277%209.97835%2013.2134%2010.016C13.1498%2010.0536%2013.0943%2010.1034%2013.05%2010.1625C13.0057%2010.2216%2012.9734%2010.2888%2012.9551%2010.3604C12.9368%2010.432%2012.9327%2010.5064%2012.9432%2010.5795C12.9536%2010.6527%2012.9783%2010.723%2013.016%2010.7866C13.0536%2010.8502%2013.1034%2010.9057%2013.1625%2010.95L18.5625%2015L13.1625%2019.05C13.1034%2019.0943%2013.0536%2019.1498%2013.016%2019.2134C12.9783%2019.277%2012.9536%2019.3473%2012.9432%2019.4205C12.9327%2019.4936%2012.9368%2019.568%2012.9551%2019.6396C12.9734%2019.7112%2013.0057%2019.7784%2013.05%2019.8375C13.0943%2019.8966%2013.1498%2019.9464%2013.2134%2019.984C13.277%2020.0217%2013.3473%2020.0464%2013.4205%2020.0568C13.4936%2020.0673%2013.568%2020.0632%2013.6396%2020.0449C13.7112%2020.0266%2013.7784%2019.9943%2013.8375%2019.95L18.9375%2016.125V24C18.9375%2024.1045%2018.9666%2024.2069%2019.0215%2024.2957C19.0764%2024.3846%2019.155%2024.4564%2019.2484%2024.5031C19.3419%2024.5498%2019.4465%2024.5696%2019.5505%2024.5602C19.6546%2024.5508%2019.7539%2024.5127%2019.8375%2024.45L25.8375%2019.95C25.9074%2019.8976%2025.9641%2019.8297%2026.0031%2019.7516C26.0422%2019.6735%2026.0625%2019.5873%2026.0625%2019.5C26.0625%2019.4127%2026.0422%2019.3265%2026.0031%2019.2484C25.9641%2019.1703%2025.9074%2019.1024%2025.8375%2019.05ZM20.0625%207.125L24.5625%2010.5L20.0625%2013.875V7.125ZM20.0625%2022.875V16.125L24.5625%2019.5L20.0625%2022.875Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='39'%20height='30'%20viewBox='0%200%2039%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='39'%20height='30'%20rx='8'%20fill='%23667085'/%3e%3cpath%20d='M20.5%209L22.5%207C23.5%206%2025.5%206%2026.5%207L27.5%208C28.5%209%2028.5%2011%2027.5%2012L22.5%2017C21.5%2018%2019.5%2018%2018.5%2017M18.5%2021L16.5%2023C15.5%2024%2013.5%2024%2012.5%2023L11.5%2022C10.5%2021%2010.5%2019%2011.5%2018L16.5%2013C17.5%2012%2019.5%2012%2020.5%2013'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","import desktop from './desktop.svg';\nimport desktopHover from './desktopHover.svg';\nimport mobileHover from './mobileHover.svg';\nimport mobileIcon from './mobileIcon.svg';\nimport tablet from './tablet.svg';\nimport tabletHover from './tabletHover.svg';\nimport whatsapp from './whatsapp.svg';\nimport emailIcon from './emailIcon.svg';\nimport device from './device.svg';\nimport copyImg from './copyIcon.svg';\nconst previewAssets ={\n desktopHover,\n tablet,\n mobileIcon,\n mobileHover,\n tabletHover,\n desktop,\n whatsapp,\n emailIcon,\n device,\n copyImg\n}\n \n export default previewAssets;","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%2011C14.4477%2011%2014%2011.4477%2014%2012C14%2012.5523%2014.4477%2013%2015%2013H17C17.5523%2013%2018%2012.5523%2018%2012C18%2011.4477%2017.5523%2011%2017%2011H15Z'%20fill='%23FFFFFF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22%2015C22%2017.2091%2020.2091%2019%2018%2019C18%2020.6569%2016.6569%2022%2015%2022H9C7.34315%2022%206%2020.6569%206%2019C3.79086%2019%202%2017.2091%202%2015V11C2%208.79086%203.79086%207%206%207V5C6%203.34315%207.34315%202%209%202H15C16.6569%202%2018%203.34315%2018%205L18%207C20.2091%207%2022%208.79086%2022%2011V15ZM8%205C8%204.44772%208.44772%204%209%204H15C15.5523%204%2016%204.44772%2016%205V7H8V5ZM6%209H18C19.1046%209%2020%209.89543%2020%2011V15C20%2016.1046%2019.1046%2017%2018%2017L18%2015H6L6%2017C4.89543%2017%204%2016.1046%204%2015V11C4%209.89543%204.89543%209%206%209ZM8%2019V17H16V19C16%2019.5523%2015.5523%2020%2015%2020H9C8.44772%2020%208%2019.5523%208%2019Z'%20fill='%23FFFFFF'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%2011C14.4477%2011%2014%2011.4477%2014%2012C14%2012.5523%2014.4477%2013%2015%2013H17C17.5523%2013%2018%2012.5523%2018%2012C18%2011.4477%2017.5523%2011%2017%2011H15Z'%20fill='%235C59E8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22%2015C22%2017.2091%2020.2091%2019%2018%2019C18%2020.6569%2016.6569%2022%2015%2022H9C7.34315%2022%206%2020.6569%206%2019C3.79086%2019%202%2017.2091%202%2015V11C2%208.79086%203.79086%207%206%207V5C6%203.34315%207.34315%202%209%202H15C16.6569%202%2018%203.34315%2018%205L18%207C20.2091%207%2022%208.79086%2022%2011V15ZM8%205C8%204.44772%208.44772%204%209%204H15C15.5523%204%2016%204.44772%2016%205V7H8V5ZM6%209H18C19.1046%209%2020%209.89543%2020%2011V15C20%2016.1046%2019.1046%2017%2018%2017L18%2015H6L6%2017C4.89543%2017%204%2016.1046%204%2015V11C4%209.89543%204.89543%209%206%209ZM8%2019V17H16V19C16%2019.5523%2015.5523%2020%2015%2020H9C8.44772%2020%208%2019.5523%208%2019Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__J8W86dt3__\"","export default \"__VITE_ASSET__BIuRn2si__\"","export default \"data:image/svg+xml,%3csvg%20width='88'%20height='88'%20viewBox='0%200%2088%2088'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='88'%20height='88'%20rx='44'%20fill='url(%23paint0_linear_1824_5305)'/%3e%3cpath%20d='M67.7419%2030.2417C67.9863%2030.4853%2068.1979%2030.7535%2068.3767%2031.0464C68.7846%2031.7239%2069%2032.4986%2069%2033.2894V55.497C69%2056.2879%2068.7823%2057.0671%2068.3721%2057.7423C68.1339%2058.1283%2067.8378%2058.4747%2067.4944%2058.769C66.7267%2059.4303%2065.7527%2059.7934%2064.7421%2059.7934H40.8744C38.2257%2064.487%2033.998%2068.0678%2028.9577%2069.8867L28.6461%2070L28.3367%2069.8798C24.1692%2068.2636%2020.5777%2065.4235%2018.0265%2061.7265C15.3972%2057.9416%2013.9909%2053.4295%2014%2048.8075C13.9996%2047.1746%2014.174%2045.5466%2014.5203%2043.9516L14.6394%2043.4035L15.1803%2043.2694C15.3071%2043.2386%2015.4308%2043.2062%2015.5515%2043.1723C20.4076%2041.8808%2024.8205%2039.2722%2028.3115%2035.6295L28.4032%2035.53L28.9348%2034.9774V33.2894C28.9348%2032.4962%2029.1525%2031.717%2029.5627%2031.0418C29.7415%2030.7489%2029.9538%2030.4822%2030.1998%2030.2417C30.9296%2029.5038%2031.9025%2029.062%2032.9338%2029H65.0033C66.0363%2029.0609%2067.0109%2029.5028%2067.7419%2030.2417ZM33.195%2031.0418C33.1186%2031.0418%2033.0438%2031.0449%2032.9704%2031.051H32.645L32.6977%2031.0996L48.3154%2045.0407C48.4976%2045.2031%2048.7323%2045.2927%2048.9754%2045.2927C49.2185%2045.2927%2049.4532%2045.2031%2049.6354%2045.0407L65.2531%2031.0996L65.3058%2031.051H64.9713C64.8966%2031.0443%2064.8216%2031.0412%2064.7467%2031.0418H33.195ZM31.1371%2032.4408C31.0297%2032.7106%2030.9737%2032.9986%2030.9721%2033.2894V36.9567C34.2048%2039.8977%2038.0832%2042.0224%2042.2884%2043.1561L42.5496%2043.2232L42.6802%2043.2579L43.2234%2043.392L43.3402%2043.9446C43.4304%2044.3775%2043.5068%2044.8133%2043.5694%2045.2511L44.525%2044.3978L31.1371%2032.4408ZM19.3373%2060.4108C21.631%2063.8384%2024.8798%2066.5034%2028.6736%2068.0692C33.1926%2066.3507%2036.9707%2063.0866%2039.3493%2058.8458C41.728%2054.605%2042.5564%2049.6565%2041.6902%2044.8626C36.8984%2043.5519%2032.5169%2041.0299%2028.96%2037.5348C25.3865%2041.0452%2020.9819%2043.5743%2016.1657%2044.8811C15.9198%2046.1752%2015.7962%2047.4898%2015.7967%2048.8075C15.8132%2052.9435%2017.0454%2056.9816%2019.3373%2060.4108ZM43.8215%2048.6225C43.8222%2051.7644%2043.1687%2054.8715%2041.9034%2057.7423H65.3058L65.2417%2057.6845L51.8904%2045.7691L49.6331%2047.7808C49.4522%2047.9449%2049.2176%2048.0357%2048.9743%2048.0357C48.731%2048.0357%2048.4963%2047.9449%2048.3154%2047.7808L46.0581%2045.7691L43.8031%2047.7808C43.8154%2048.0613%2043.8215%2048.3419%2043.8215%2048.6225ZM66.8046%2056.3434C66.9176%2056.076%2066.9738%2055.7877%2066.9696%2055.497L66.9719%2033.2917C66.9701%2033.0033%2066.9149%2032.7179%2066.8092%2032.45L53.4258%2044.4001L66.8046%2056.3434ZM29.1457%2040.7258C31.9699%2043.4365%2035.4187%2045.3947%2039.1809%2046.4234C39.3489%2047.3592%2039.4391%2048.3018%2039.4513%2049.2514V49.441C39.4467%2053.3815%2038.0629%2057.1937%2035.544%2060.205L35.5279%2060.2235C33.7071%2062.399%2031.3637%2064.0669%2028.7217%2065.0678C25.6729%2063.8114%2023.0621%2061.6703%2021.2202%2058.9156C19.3783%2056.1609%2018.388%2052.9166%2018.3748%2049.5937C18.3748%2048.5315%2018.4734%2047.4794%2018.6705%2046.4373C22.5398%2045.3879%2026.0787%2043.3573%2028.9509%2040.5385L29.1457%2040.7258ZM21.865%2052.4101L28.1717%2058.7736L36.9534%2049.9151L35.0123%2047.9588L28.1763%2054.8588L23.8038%2050.4492L21.865%2052.4101Z'%20fill='%23723DDA'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1824_5305'%20x1='44'%20y1='0'%20x2='44'%20y2='88'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23CCCBFF'/%3e%3cstop%20offset='1'%20stop-color='white'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='88'%20height='88'%20viewBox='0%200%2088%2088'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20y='3.05176e-05'%20width='88'%20height='88'%20rx='44'%20fill='url(%23paint0_linear_1824_5313)'/%3e%3cg%20clip-path='url(%23clip0_1824_5313)'%3e%3cpath%20d='M26.125%2026.6875V64.0625C26.125%2064.511%2026.489%2064.875%2026.9375%2064.875H37.24C37.8865%2064.875%2038.5065%2065.1318%2038.9636%2065.589C39.4207%2066.0461%2039.6775%2066.6661%2039.6775%2067.3125C39.6775%2067.959%2039.4207%2068.579%2038.9636%2069.0361C38.5065%2069.4932%2037.8865%2069.75%2037.24%2069.75H26.9375C25.4291%2069.75%2023.9824%2069.1508%2022.9158%2068.0842C21.8492%2067.0176%2021.25%2065.5709%2021.25%2064.0625V26.6875C21.25%2023.548%2023.798%2021%2026.9375%2021H54.5625C57.702%2021%2060.25%2023.548%2060.25%2026.6875V51.8295C60.25%2052.476%2059.9932%2053.096%2059.5361%2053.5531C59.079%2054.0102%2058.459%2054.267%2057.8125%2054.267C57.166%2054.267%2056.546%2054.0102%2056.0889%2053.5531C55.6318%2053.096%2055.375%2052.476%2055.375%2051.8295V26.6875C55.375%2026.472%2055.2894%2026.2654%2055.137%2026.113C54.9847%2025.9606%2054.778%2025.875%2054.5625%2025.875H26.9375C26.722%2025.875%2026.5153%2025.9606%2026.363%2026.113C26.2106%2026.2654%2026.125%2026.472%2026.125%2026.6875ZM69.2655%2057.6828L54.4552%2072.1453C53.9955%2072.5934%2053.3775%2072.842%2052.7355%2072.8371C52.0936%2072.8322%2051.4794%2072.5743%2051.0265%2072.1193L44.7118%2065.7818C44.282%2065.3189%2044.0487%2064.7073%2044.0611%2064.0758C44.0734%2063.4443%2044.3303%2062.8423%2044.7778%2062.3965C45.2252%2061.9508%2045.8282%2061.6961%2046.4598%2061.6862C47.0913%2061.6762%2047.702%2061.9118%2048.1632%2062.3433L52.775%2066.9745L65.8595%2054.1955C66.3224%2053.7439%2066.9457%2053.4946%2067.5924%2053.5025C67.9126%2053.5064%2068.2289%2053.5734%2068.5232%2053.6995C68.8175%2053.8257%2069.0841%2054.0086%2069.3078%2054.2378C69.5314%2054.467%2069.7077%2054.738%2069.8266%2055.0353C69.9455%2055.3326%2070.0047%2055.6505%2070.0008%2055.9707C69.9969%2056.2909%2069.9299%2056.6071%2069.8037%2056.9015C69.6776%2057.1958%2069.4947%2057.4624%2069.2655%2057.686M33.4375%2034H48.0625C48.709%2034%2049.329%2034.2568%2049.7861%2034.714C50.2432%2035.1711%2050.5%2035.7911%2050.5%2036.4375C50.5%2037.084%2050.2432%2037.704%2049.7861%2038.1611C49.329%2038.6182%2048.709%2038.875%2048.0625%2038.875H33.4375C32.791%2038.875%2032.171%2038.6182%2031.7139%2038.1611C31.2568%2037.704%2031%2037.084%2031%2036.4375C31%2035.7911%2031.2568%2035.1711%2031.7139%2034.714C32.171%2034.2568%2032.791%2034%2033.4375%2034ZM31%2046.1875C31%2045.5411%2031.2568%2044.9211%2031.7139%2044.464C32.171%2044.0068%2032.791%2043.75%2033.4375%2043.75H39.9375C40.584%2043.75%2041.204%2044.0068%2041.6611%2044.464C42.1182%2044.9211%2042.375%2045.5411%2042.375%2046.1875C42.375%2046.834%2042.1182%2047.454%2041.6611%2047.9111C41.204%2048.3682%2040.584%2048.625%2039.9375%2048.625H33.4375C32.791%2048.625%2032.171%2048.3682%2031.7139%2047.9111C31.2568%2047.454%2031%2046.834%2031%2046.1875Z'%20fill='%23FF7578'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1824_5313'%20x1='44'%20y1='3.05176e-05'%20x2='44'%20y2='88'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFCBCC'/%3e%3cstop%20offset='1'%20stop-color='white'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1824_5313'%3e%3crect%20width='52'%20height='52'%20fill='white'%20transform='translate(18%2021)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='88'%20height='88'%20viewBox='0%200%2088%2088'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20y='6.10352e-05'%20width='88'%20height='88'%20rx='44'%20fill='url(%23paint0_linear_1824_5322)'/%3e%3cpath%20d='M43.9994%2041.5834C45.3285%2041.5834%2046.4668%2041.1105%2047.4141%2040.1648C48.3614%2039.2191%2048.8343%2038.0808%2048.8327%2036.7501C48.8311%2035.4193%2048.3582%2034.2818%2047.4141%2033.3377C46.47%2032.3936%2045.3317%2031.92%2043.9994%2031.9167C42.667%2031.9135%2041.5295%2032.3872%2040.587%2033.3377C39.6445%2034.2883%2039.1709%2035.4257%2039.166%2036.7501C39.1612%2038.0744%2039.6349%2039.2126%2040.587%2040.1648C41.5392%2041.117%2042.6766%2041.5898%2043.9994%2041.5834ZM35.2631%2063.3334V60.9167H42.791V51.8446C40.724%2051.6802%2038.8229%2050.8368%2037.0877%2049.3143C35.3493%2047.7918%2034.2884%2046.0115%2033.9049%2043.9735C31.3497%2043.6722%2029.1707%2042.6242%2027.3679%2040.8294C25.565%2039.0346%2024.6644%2036.8693%2024.666%2034.3334V29.5001H33.4965V24.6667H54.5022V29.5001H63.3327V34.3334C63.3327%2036.8677%2062.4321%2039.033%2060.6309%2040.8294C58.8296%2042.6258%2056.6506%2043.673%2054.0938%2043.9711C53.7103%2046.0107%2052.6502%2047.7918%2050.9134%2049.3143C49.1767%2050.8368%2047.2747%2051.6802%2045.2077%2051.8446V60.9167H52.738V63.3334H35.2631ZM33.4965%2041.3804V31.9167H27.0827V34.3334C27.0827%2036.1733%2027.6965%2037.7546%2028.9242%2039.0773C30.1519%2040.4%2031.676%2041.1677%2033.4965%2041.3804ZM54.5022%2041.3804C56.3244%2041.1661%2057.8493%2040.3976%2059.0769%2039.0749C60.3046%2037.7522%2060.9176%2036.1717%2060.916%2034.3334V31.9167H54.5022V41.3804Z'%20fill='%23DCB975'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1824_5322'%20x1='44'%20y1='6.10352e-05'%20x2='44'%20y2='88.0001'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFEECB'/%3e%3cstop%20offset='1'%20stop-color='white'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","import redirectImg from './redirectPopup.svg';\nimport signUp from './signUp.svg';\nimport earnPoints from './earnPoints.svg';\nimport rewards from './rewards.svg';\n\nconst redirectPopupAssets ={\n redirectImg,\n signUp,\n earnPoints,\n rewards\n}\n \n export default redirectPopupAssets;","export default \"data:image/svg+xml,%3csvg%20width='59'%20height='60'%20viewBox='0%200%2059%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='59'%20height='60'%20rx='29.5'%20fill='url(%23paint0_linear_2316_7385)'/%3e%3cpath%20d='M30%2028.375C30.8938%2028.375%2031.6591%2028.057%2032.2961%2027.4211C32.9331%2026.7852%2033.2511%2026.0198%2033.25%2025.125C33.2489%2024.2302%2032.931%2023.4653%2032.2961%2022.8305C31.6613%2022.1957%2030.8959%2021.8772%2030%2021.875C29.1041%2021.8728%2028.3393%2022.1913%2027.7055%2022.8305C27.0718%2023.4697%2026.7533%2024.2345%2026.75%2025.125C26.7468%2026.0155%2027.0653%2026.7809%2027.7055%2027.4211C28.3458%2028.0614%2029.1106%2028.3793%2030%2028.375ZM24.1256%2043V41.375H29.1875V35.2747C27.7976%2035.1643%2026.5193%2034.5971%2025.3525%2033.5734C24.1836%2032.5496%2023.4702%2031.3525%2023.2124%2029.9821C21.4942%2029.7795%2020.029%2029.0748%2018.8168%2027.868C17.6045%2026.6612%2016.9989%2025.2052%2017%2023.5V20.25H22.9378V17H37.0623V20.25H43V23.5C43%2025.2041%2042.3944%2026.6601%2041.1833%2027.868C39.9721%2029.0759%2038.5069%2029.7801%2036.7876%2029.9805C36.5298%2031.352%2035.817%2032.5496%2034.6491%2033.5734C33.4813%2034.5971%2032.2024%2035.1643%2030.8125%2035.2747V41.375H35.876V43H24.1256ZM22.9378%2028.2385V21.875H18.625V23.5C18.625%2024.7372%2019.0378%2025.8005%2019.8633%2026.6899C20.6888%2027.5793%2021.7136%2028.0955%2022.9378%2028.2385ZM37.0623%2028.2385C38.2875%2028.0944%2039.3129%2027.5777%2040.1384%2026.6882C40.9639%2025.7988%2041.3761%2024.7361%2041.375%2023.5V21.875H37.0623V28.2385Z'%20fill='%23DCB975'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2316_7385'%20x1='29.5'%20y1='0'%20x2='29.5'%20y2='60'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFEECB'/%3e%3cstop%20offset='1'%20stop-color='white'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","export default \"__VITE_ASSET__JYtdcLJN__\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4473%203.72852L12.2715%200.552734C12.125%200.40625%2011.9453%200.298828%2011.75%200.240234V0.1875H0.8125C0.466797%200.1875%200.1875%200.466797%200.1875%200.8125V15.1875C0.1875%2015.5332%200.466797%2015.8125%200.8125%2015.8125H15.1875C15.5332%2015.8125%2015.8125%2015.5332%2015.8125%2015.1875V4.61133C15.8125%204.2793%2015.6816%203.96289%2015.4473%203.72852ZM5.5%201.59375H10.5V3.625H5.5V1.59375ZM14.4062%2014.4062H1.59375V1.59375H4.25V4.25C4.25%204.5957%204.5293%204.875%204.875%204.875H11.125C11.4707%204.875%2011.75%204.5957%2011.75%204.25V2.01953L14.4062%204.67578V14.4062ZM8%206.63281C6.44727%206.63281%205.1875%207.89258%205.1875%209.44531C5.1875%2010.998%206.44727%2012.2578%208%2012.2578C9.55273%2012.2578%2010.8125%2010.998%2010.8125%209.44531C10.8125%207.89258%209.55273%206.63281%208%206.63281ZM8%2011.0078C7.13672%2011.0078%206.4375%2010.3086%206.4375%209.44531C6.4375%208.58203%207.13672%207.88281%208%207.88281C8.86328%207.88281%209.5625%208.58203%209.5625%209.44531C9.5625%2010.3086%208.86328%2011.0078%208%2011.0078Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.8417%2017.5C13.2894%2017.5%2012.8208%2017.3069%2012.4358%2016.9208C12.0514%2016.5342%2011.8592%2016.0647%2011.8592%2015.5125C11.8592%2015.4292%2011.8958%2015.2189%2011.9692%2014.8817L5.97167%2011.3208C5.79167%2011.5286%205.57139%2011.6917%205.31083%2011.81C5.05028%2011.9283%204.77056%2011.9875%204.47167%2011.9875C3.92389%2011.9875%203.45833%2011.7925%203.075%2011.4025C2.69167%2011.0125%202.5%2010.545%202.5%2010C2.5%209.455%202.69167%208.9875%203.075%208.5975C3.45833%208.2075%203.92389%208.0125%204.47167%208.0125C4.77%208.0125%205.04972%208.07167%205.31083%208.19C5.57194%208.30833%205.79222%208.47167%205.97167%208.68L11.97%205.13417C11.9311%205.02639%2011.9031%204.91944%2011.8858%204.81333C11.8681%204.70667%2011.8592%204.59778%2011.8592%204.48667C11.8592%203.935%2012.0528%203.46583%2012.44%203.07917C12.8272%202.69306%2013.2972%202.5%2013.85%202.5C14.4028%202.5%2014.8717%202.69361%2015.2567%203.08083C15.6417%203.46806%2015.8339%203.93806%2015.8333%204.49083C15.8328%205.04361%2015.6397%205.5125%2015.2542%205.8975C14.8686%206.2825%2014.3992%206.47472%2013.8458%206.47417C13.5447%206.47417%2013.2669%206.4125%2013.0125%206.28917C12.7581%206.16583%2012.5414%206%2012.3625%205.79167L6.36333%209.3525C6.40222%209.46028%206.43028%209.5675%206.4475%209.67417C6.46528%209.78028%206.47417%209.88889%206.47417%2010C6.47417%2010.1111%206.46528%2010.2197%206.4475%2010.3258C6.42972%2010.4319%206.40194%2010.5392%206.36417%2010.6475L12.3625%2014.2083C12.5419%2014%2012.7586%2013.8342%2013.0125%2013.7108C13.2669%2013.5875%2013.5447%2013.5258%2013.8458%2013.5258C14.3981%2013.5258%2014.8675%2013.7192%2015.2542%2014.1058C15.6403%2014.4936%2015.8333%2014.9639%2015.8333%2015.5167C15.8333%2016.0694%2015.6397%2016.5383%2015.2525%2016.9233C14.8653%2017.3083%2014.3944%2017.5006%2013.8417%2017.5Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='20'%20viewBox='0%200%2018%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.412%204L14.611%2017.617C14.5812%2018.1264%2014.3577%2018.6051%2013.9865%2018.9551C13.6153%2019.3052%2013.1243%2019.5001%2012.614%2019.5H5.386C4.87575%2019.5001%204.38475%2019.3052%204.0135%2018.9551C3.64226%2018.6051%203.41885%2018.1264%203.389%2017.617L2.59%204H0.5V3C0.5%202.86739%200.552679%202.74021%200.646447%202.64645C0.740215%202.55268%200.867392%202.5%201%202.5H17C17.1326%202.5%2017.2598%202.55268%2017.3536%202.64645C17.4473%202.74021%2017.5%202.86739%2017.5%203V4H15.412ZM7%200H11C11.1326%200%2011.2598%200.0526785%2011.3536%200.146447C11.4473%200.240215%2011.5%200.367392%2011.5%200.5V1.5H6.5V0.5C6.5%200.367392%206.55268%200.240215%206.64645%200.146447C6.74021%200.0526785%206.86739%200%207%200ZM6%206.5L6.5%2015.5H8L7.6%206.5H6ZM10.5%206.5L10%2015.5H11.5L12%206.5H10.5Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='12'%20height='17'%20viewBox='0%200%2012%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.5%202.5H1.5C0.671573%202.5%200%203.17157%200%204V15C0%2015.8284%200.671573%2016.5%201.5%2016.5H8.5C9.32843%2016.5%2010%2015.8284%2010%2015V4C10%203.17157%209.32843%202.5%208.5%202.5Z'%20fill='%235C59E8'/%3e%3cpath%20d='M2.06396%201.564C2.20535%201.52132%202.35227%201.49975%202.49996%201.5H9.49996C9.89779%201.5%2010.2793%201.65804%2010.5606%201.93934C10.8419%202.22064%2011%202.60218%2011%203V14C11.0002%2014.1477%2010.9786%2014.2946%2010.936%2014.436C11.2439%2014.3425%2011.5136%2014.1523%2011.7052%2013.8938C11.8968%2013.6352%2012.0001%2013.3218%2012%2013V2C12%201.60218%2011.8419%201.22064%2011.5606%200.93934C11.2793%200.658035%2010.8978%200.5%2010.5%200.5H3.49996C3.17813%200.499836%202.86478%200.603186%202.6062%200.794783C2.34762%200.98638%202.15751%201.25606%202.06396%201.564Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.2071%2016.7927C18.5976%2017.1832%2018.5976%2017.8164%2018.2071%2018.2069C17.8166%2018.5974%2017.1834%2018.5974%2016.7929%2018.2069L12%2013.4141L7.20731%2018.2069C6.81679%2018.5975%206.18363%2018.5975%205.7931%2018.207C5.40257%2017.8164%205.40256%2017.1833%205.79309%2016.7927L10.5858%2011.9999L5.79289%207.20709C5.40237%206.81657%205.40237%206.18341%205.7929%205.79289C6.18342%205.40237%206.81659%205.40237%207.20712%205.79289L12%2010.5857L16.7927%205.79291C17.1832%205.40238%2017.8164%205.40238%2018.2069%205.7929C18.5975%206.18342%2018.5975%206.81658%2018.2069%207.20711L13.4142%2011.9999L18.2071%2016.7927Z'%20fill='%23858D9D'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%209.4999L9.5%2015.3499V3.6499L2.5%209.4999Z'%20fill='%233F51B5'/%3e%3cpath%20d='M21.5%2013.5V20H17.5V13.5C17.5%2012.4%2016.6%2011.5%2015.5%2011.5H7V7.5L15.5%207.5C18.8%207.5%2021.5%2010.2%2021.5%2013.5Z'%20fill='%233F51B5'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='14'%20height='10'%20viewBox='0%200%2014%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%2010H12V8H14V10ZM14%206H12V4H14V6ZM14%202H12V0H14V2ZM10%2010H8V8H10V10ZM10%206H8V4H10V6ZM10%202H8V0H10V2ZM6%2010H4V8H6V10ZM6%206H4V4H6V6ZM6%202H4V0H6V2ZM2%2010H0L0%208H2V10ZM2%206H0L0%204H2V6ZM2%202H0L0%200H2V2Z'%20fill='%23858D9D'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='20'%20viewBox='0%200%2016%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%2018H15C15.2652%2018%2015.5196%2018.1054%2015.7071%2018.2929C15.8946%2018.4804%2016%2018.7348%2016%2019C16%2019.2652%2015.8946%2019.5196%2015.7071%2019.7071C15.5196%2019.8946%2015.2652%2020%2015%2020H1C0.734784%2020%200.48043%2019.8946%200.292893%2019.7071C0.105357%2019.5196%200%2019.2652%200%2019C0%2018.7348%200.105357%2018.4804%200.292893%2018.2929C0.48043%2018.1054%200.734784%2018%201%2018ZM0%2013L10%203L13%206L3%2016H0V13ZM11%202L13%200L16%203L13.999%205.001L11%202Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='21'%20viewBox='0%200%2016%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%2018.5H15C15.2652%2018.5%2015.5196%2018.6054%2015.7071%2018.7929C15.8946%2018.9804%2016%2019.2348%2016%2019.5C16%2019.7652%2015.8946%2020.0196%2015.7071%2020.2071C15.5196%2020.3946%2015.2652%2020.5%2015%2020.5H1C0.734784%2020.5%200.48043%2020.3946%200.292893%2020.2071C0.105357%2020.0196%200%2019.7652%200%2019.5C0%2019.2348%200.105357%2018.9804%200.292893%2018.7929C0.48043%2018.6054%200.734784%2018.5%201%2018.5ZM0%2013.5L10%203.5L13%206.5L3%2016.5H0V13.5ZM11%202.5L13%200.5L16%203.5L13.999%205.501L11%202.5Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='47'%20height='48'%20viewBox='0%200%2047%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='23.5'%20cy='24'%20r='23.5'%20fill='%23EEEDFF'/%3e%3cpath%20d='M18.6523%2016.3719C18.6523%2015.3134%2019.0728%2014.2983%2019.8212%2013.5498C20.5697%2012.8013%2021.5849%2012.3809%2022.6434%2012.3809C23.7019%2012.3809%2024.717%2012.8013%2025.4655%2013.5498C26.214%2014.2983%2026.6345%2015.3134%2026.6345%2016.3719V36.3274C26.6345%2037.3859%2026.214%2038.401%2025.4655%2039.1495C24.717%2039.898%2023.7019%2040.3185%2022.6434%2040.3185C21.5849%2040.3185%2020.5697%2039.898%2019.8212%2039.1495C19.0728%2038.401%2018.6523%2037.3859%2018.6523%2036.3274V16.3719Z'%20fill='url(%23paint0_linear_4001_7360)'/%3e%3cpath%20d='M32.6211%2020.363C31.5626%2020.363%2030.5474%2020.7835%2029.799%2021.532C29.0505%2022.2805%2028.63%2023.2956%2028.63%2024.3541V36.3274C28.63%2037.3859%2029.0505%2038.401%2029.799%2039.1495C30.5474%2039.898%2031.5626%2040.3185%2032.6211%2040.3185C33.6796%2040.3185%2034.6947%2039.898%2035.4432%2039.1495C36.1917%2038.401%2036.6122%2037.3859%2036.6122%2036.3274V24.3541C36.6122%2023.2956%2036.1917%2022.2805%2035.4432%2021.532C34.6947%2020.7835%2033.6796%2020.363%2032.6211%2020.363Z'%20fill='url(%23paint1_linear_4001_7360)'/%3e%3cpath%20d='M12.6656%2024.3541C11.6071%2024.3541%2010.592%2024.7746%209.84352%2025.5231C9.09505%2026.2716%208.67456%2027.2867%208.67456%2028.3452V36.3274C8.67456%2037.3859%209.09505%2038.401%209.84352%2039.1495C10.592%2039.898%2011.6071%2040.3185%2012.6656%2040.3185C13.7242%2040.3185%2014.7393%2039.898%2015.4878%2039.1495C16.2362%2038.401%2016.6567%2037.3859%2016.6567%2036.3274V28.3452C16.6567%2027.2867%2016.2362%2026.2716%2015.4878%2025.5231C14.7393%2024.7746%2013.7242%2024.3541%2012.6656%2024.3541Z'%20fill='url(%23paint2_linear_4001_7360)'/%3e%3cpath%20d='M31.136%2014.01L28.1566%2012.0952L37.8517%206.18073L34.6952%2011.0923L37.6746%2013.0071L27.9795%2018.9216L31.136%2014.01Z'%20fill='url(%23paint3_linear_4001_7360)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_4001_7360'%20x1='25.9699'%20y1='35.1959'%20x2='21.7035'%20y2='12.0895'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236966E1'/%3e%3cstop%20offset='1'%20stop-color='%23A09EFF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_4001_7360'%20x1='35.9477'%20y1='36.6606'%20x2='33.7346'%20y2='19.8841'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E23CB4'/%3e%3cstop%20offset='1'%20stop-color='%23EA71EF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_4001_7360'%20x1='9.67233'%20y1='25.0186'%20x2='24.9343'%20y2='34.0465'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2336DFF1'/%3e%3cstop%20offset='1'%20stop-color='%230078D4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_4001_7360'%20x1='33.147'%20y1='18.7432'%20x2='39.3583'%20y2='6.57229'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%236966E1'/%3e%3cstop%20offset='1'%20stop-color='%23A09EFF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.809%203.875L11.2083%2014.0878C11.1859%2014.4698%2011.0183%2014.8288%2010.7399%2015.0914C10.4614%2015.3539%2010.0932%2015.5001%209.7105%2015.5H4.2895C3.90681%2015.5001%203.53856%2015.3539%203.26013%2015.0914C2.9817%2014.8288%202.81414%2014.4698%202.79175%2014.0878L2.1925%203.875H0.625V3.125C0.625%203.02554%200.664509%202.93016%200.734835%202.85984C0.805161%202.78951%200.900544%202.75%201%202.75H13C13.0995%202.75%2013.1948%202.78951%2013.2652%202.85984C13.3355%202.93016%2013.375%203.02554%2013.375%203.125V3.875H11.809ZM5.5%200.875H8.5C8.59946%200.875%208.69484%200.914509%208.76517%200.984835C8.83549%201.05516%208.875%201.15054%208.875%201.25V2H5.125V1.25C5.125%201.15054%205.16451%201.05516%205.23483%200.984835C5.30516%200.914509%205.40054%200.875%205.5%200.875ZM4.75%205.75L5.125%2012.5H6.25L5.95%205.75H4.75ZM8.125%205.75L7.75%2012.5H8.875L9.25%205.75H8.125Z'%20fill='%23DDDDDD'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.00019%2010.0236C6.632%2010.0236%206.33352%209.72513%206.33352%209.35694L6.33351%207.66665L4.64315%207.66666C4.27496%207.66666%203.97648%207.36819%203.97649%207C3.97649%206.63181%204.27497%206.33333%204.64316%206.33333L6.33349%206.33331L6.33348%204.64301C6.33348%204.27482%206.63195%203.97634%207.00014%203.97633C7.36833%203.97633%207.66681%204.27481%207.66681%204.64299L7.66683%206.3333L9.35717%206.33329C9.72536%206.33329%2010.0238%206.63176%2010.0238%206.99995C10.0238%207.36814%209.72535%207.66662%209.35716%207.66662L7.66684%207.66664L7.66685%209.35693C7.66686%209.72512%207.36838%2010.0236%207.00019%2010.0236Z'%20fill='%235C59E8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.00016%2013.6667C10.6821%2013.6667%2013.6668%2010.6819%2013.6668%207C13.6668%203.3181%2010.6821%200.333332%207.00016%200.333332C3.31826%200.333332%200.333496%203.3181%200.333496%207C0.333496%2010.6819%203.31826%2013.6667%207.00016%2013.6667ZM7.00016%2012.3333C9.94568%2012.3333%2012.3335%209.94552%2012.3335%207C12.3335%204.05448%209.94568%201.66667%207.00016%201.66667C4.05464%201.66667%201.66683%204.05448%201.66683%207C1.66683%209.94552%204.05464%2012.3333%207.00016%2012.3333Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='52'%20height='52'%20viewBox='0%200%2052%2052'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='52'%20height='52'%20rx='26'%20fill='url(%23paint0_linear_2886_7673)'/%3e%3cg%20clip-path='url(%23clip0_2886_7673)'%3e%3cpath%20d='M16.573%2011.2596C17.5901%2011.2596%2018.6073%2011.4948%2019.6245%2011.8079C20.5637%2012.1196%2021.503%2012.5899%2022.4422%2013.0602C23.3036%2013.5296%2024.1644%2014.0774%2025.0248%2014.7036L26.1992%2015.6428C26.433%2015.7986%2026.5902%2015.9545%2026.7461%2016.1117C26.8254%2016.1896%2026.9019%2016.2676%2027.0591%2016.3469L27.215%2016.5821L27.3722%2016.7379H24.5545L24.7896%2016.4262L25.0248%2016.1911L25.4937%2015.7207C25.8068%2015.3297%2026.1199%2015.0166%2026.433%2014.7036C26.7523%2014.394%2027.0921%2014.1062%2027.4501%2013.8422C27.6074%2013.6864%2027.8426%2013.5306%2027.9984%2013.4512L28.2336%2013.2161L28.4687%2012.9809C29.1728%2012.4341%2029.9562%2011.9637%2030.7382%2011.4934C31.5224%2011.0309%2032.3321%2010.6133%2033.1636%2010.2425C34.8069%209.46048%2036.5296%208.91081%2038.2494%208.52123C39.1121%208.3654%2040.0514%208.20815%2040.9127%208.12881C41.8185%207.98634%2042.7387%207.96016%2043.6511%208.0509L42.4767%208.75498C42.3209%208.83431%2042.0857%208.99015%2041.9285%209.06806C41.8505%209.1474%2041.7726%209.1474%2041.6168%209.2239L41.3023%209.38115C40.5982%209.85148%2039.8148%2010.2425%2039.1107%2010.7128C37.7805%2011.6506%2036.4502%2012.512%2035.0421%2013.4512C33.6339%2014.3905%2032.3816%2015.3297%2031.0513%2016.269L30.1121%2016.9731C29.799%2017.2082%2029.4859%2017.442%2029.1728%2017.7551C28.8597%2018.0681%2028.5466%2018.3033%2028.2336%2018.5385C28.0777%2018.6943%2027.9205%2018.7722%2027.7632%2018.9295L27.3722%2019.3205L25.651%2020.808L24.5545%2019.3205L24.4766%2019.2426L24.3986%2019.0867L24.087%2018.8516L23.6166%2018.3033C23.3222%2017.9475%2023.0087%2017.6079%2022.6774%2017.2861L20.7989%2015.1725C20.1727%2014.4684%2019.5466%2013.7643%2018.8425%2013.1381C18.1418%2012.4475%2017.3824%2011.819%2016.573%2011.2596ZM39.8148%2028.2497C39.8202%2026.5357%2039.5015%2024.8361%2038.8755%2023.2404L33.9456%2025.3541C35.3537%2029.2669%2033.7104%2033.6486%2030.0327%2035.6051L32.145%2040.5351C36.8412%2038.267%2039.8148%2033.4928%2039.8148%2028.2497ZM34.338%2017.2932L29.6417%2020.7357C31.2071%2021.5191%2032.5374%2022.7715%2033.3208%2024.2576L38.2508%2022.1453C37.3895%2020.2668%2036.0592%2018.6235%2034.338%2017.2932ZM17.7474%2028.2497C17.7562%2026.8221%2018.127%2025.42%2018.8249%2024.1746C19.5228%2022.9291%2020.5251%2021.881%2021.7381%2021.1281L18.2956%2016.9801C13.1276%2020.502%2011.0154%2027.1532%2013.207%2033.0225L18.2149%2030.9102C17.9076%2030.0567%2017.7504%2029.1568%2017.7474%2028.2497ZM26.0406%2036.6222C24.4957%2036.6149%2022.9831%2036.1796%2021.6707%2035.3646C20.3583%2034.5496%2019.2974%2033.3868%2018.6059%2032.0053L13.6759%2034.119C16.7274%2040.6144%2024.3193%2043.6673%2031.0499%2041.0833L28.9362%2036.1533C28.0035%2036.4687%2027.0251%2036.6262%2026.0406%2036.6222Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2886_7673'%20x1='26'%20y1='0'%20x2='26'%20y2='52'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2340AAFF'/%3e%3cstop%20offset='1'%20stop-color='%233D9CE8'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_2886_7673'%3e%3crect%20width='34'%20height='34'%20fill='white'%20transform='translate(11%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='52'%20height='52'%20viewBox='0%200%2052%2052'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='52'%20height='52'%20rx='26'%20fill='url(%23paint0_linear_2886_7667)'/%3e%3cpath%20d='M15.573%2012.2616C16.5901%2012.2616%2017.6073%2012.4968%2018.6245%2012.8098C19.5637%2013.1215%2020.503%2013.5918%2021.4422%2014.0622C22.3036%2014.5316%2023.1644%2015.0793%2024.0248%2015.7055L25.1992%2016.6448C25.433%2016.8006%2025.5902%2016.9564%2025.7461%2017.1137C25.8254%2017.1916%2025.9019%2017.2695%2026.0591%2017.3488L26.215%2017.584L26.3722%2017.7399H23.5545L23.7896%2017.4282L24.0248%2017.193L24.4937%2016.7227C24.8068%2016.3317%2025.1199%2016.0186%2025.433%2015.7055C25.7523%2015.3959%2026.0921%2015.1082%2026.4501%2014.8442C26.6074%2014.6883%2026.8426%2014.5325%2026.9984%2014.4532L27.2336%2014.218L27.4687%2013.9828C28.1728%2013.436%2028.9562%2012.9657%2029.7382%2012.4953C30.5224%2012.0329%2031.3321%2011.6152%2032.1636%2011.2444C33.8069%2010.4624%2035.5296%209.91277%2037.2494%209.52318C38.1121%209.36735%2039.0514%209.2101%2039.9127%209.13077C40.8185%208.9883%2041.7387%208.96211%2042.6511%209.05285L41.4767%209.75693C41.3209%209.83627%2041.0857%209.9921%2040.9285%2010.07C40.8505%2010.1493%2040.7726%2010.1493%2040.6168%2010.2258L40.3023%2010.3831C39.5982%2010.8534%2038.8148%2011.2444%2038.1107%2011.7148C36.7805%2012.6526%2035.4502%2013.5139%2034.0421%2014.4532C32.6339%2015.3924%2031.3816%2016.3317%2030.0513%2017.2709L29.1121%2017.975C28.799%2018.2102%2028.4859%2018.4439%2028.1728%2018.757C27.8597%2019.0701%2027.5466%2019.3053%2027.2336%2019.5404C27.0777%2019.6963%2026.9205%2019.7742%2026.7632%2019.9314L26.3722%2020.3224L24.651%2021.8099L23.5545%2020.3224L23.4766%2020.2445L23.3986%2020.0887L23.087%2019.8535L22.6166%2019.3053C22.3222%2018.9494%2022.0087%2018.6099%2021.6774%2018.2881L19.7989%2016.1744C19.1727%2015.4703%2018.5466%2014.7663%2017.8425%2014.1401C17.1418%2013.4494%2016.3824%2012.8209%2015.573%2012.2616ZM38.8148%2029.2517C38.8202%2027.5376%2038.5015%2025.838%2037.8755%2024.2423L32.9456%2026.356C34.3537%2030.2689%2032.7104%2034.6506%2029.0327%2036.607L31.145%2041.537C35.8412%2039.2689%2038.8148%2034.4948%2038.8148%2029.2517ZM33.338%2018.2952L28.6417%2021.7377C30.2071%2022.5211%2031.5374%2023.7734%2032.3208%2025.2595L37.2508%2023.1473C36.3895%2021.2688%2035.0592%2019.6254%2033.338%2018.2952ZM16.7474%2029.2517C16.7562%2027.824%2017.127%2026.422%2017.8249%2025.1765C18.5228%2023.9311%2019.5251%2022.8829%2020.7381%2022.1301L17.2956%2017.9821C12.1276%2021.5039%2010.0154%2028.1552%2012.207%2034.0244L17.2149%2031.9122C16.9076%2031.0587%2016.7504%2030.1588%2016.7474%2029.2517ZM25.0406%2037.6242C23.4957%2037.6169%2021.9831%2037.1815%2020.6707%2036.3665C19.3583%2035.5515%2018.2974%2034.3887%2017.6059%2033.0073L12.6759%2035.1209C15.7274%2041.6163%2023.3193%2044.6693%2030.0499%2042.0853L27.9362%2037.1553C27.0035%2037.4707%2026.0251%2037.6282%2025.0406%2037.6242Z'%20fill='white'/%3e%3crect%20x='19.8188'%20y='25.9375'%20width='3.35553'%20height='11.8933'%20transform='rotate(-43.6241%2019.8188%2025.9375)'%20fill='white'/%3e%3crect%20x='28.8296'%20y='23.6123'%20width='3.1761'%20height='11.8933'%20transform='rotate(43.4794%2028.8296%2023.6123)'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2886_7667'%20x1='26'%20y1='0'%20x2='26'%20y2='52'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF9D6A'/%3e%3cstop%20offset='1'%20stop-color='%23FF8A96'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='50'%20height='50'%20rx='25'%20fill='url(%23paint0_linear_2886_7680)'/%3e%3cpath%20d='M28.1998%2029.1337C26.9998%2030.6003%2026.3332%2032.3337%2026.3332%2034.3337C26.3332%2035.667%2026.7332%2037.0003%2027.2665%2038.067C26.5998%2038.2003%2025.7998%2038.3337%2024.9998%2038.3337C17.6665%2038.3337%2011.6665%2032.3337%2011.6665%2025.0003C11.6665%2017.667%2017.6665%2011.667%2024.9998%2011.667C32.3332%2011.667%2038.3332%2017.667%2038.3332%2025.0003C38.3332%2025.667%2038.2265%2026.2937%2038.1198%2027.0003L38.0665%2027.267C36.9998%2026.7337%2035.6665%2026.3337%2034.3332%2026.3337C32.5998%2026.3337%2031.1332%2026.867%2029.7998%2027.8003L25.6665%2025.267V18.3337H23.6665V26.3337L28.1998%2029.1337Z'%20fill='white'/%3e%3cpath%20d='M30%2032.2376C30%2031.5378%2030.2137%2030.9899%2030.6411%2030.5939C31.0781%2030.198%2031.6366%2030%2032.3166%2030C32.9965%2030%2033.5501%2030.198%2033.9775%2030.5939C34.4146%2030.9899%2034.6331%2031.5378%2034.6331%2032.2376C34.6331%2032.9466%2034.4146%2033.4991%2033.9775%2033.895C33.5501%2034.291%2032.9965%2034.489%2032.3166%2034.489C31.6366%2034.489%2031.0781%2034.291%2030.6411%2033.895C30.2137%2033.4991%2030%2032.9466%2030%2032.2376ZM39.3536%2030.1657L33.6278%2039.8343H31.6464L37.3576%2030.1657H39.3536ZM32.302%2031.1602C31.7678%2031.1602%2031.5007%2031.5193%2031.5007%2032.2376C31.5007%2032.965%2031.7678%2033.3287%2032.302%2033.3287C32.5642%2033.3287%2032.7682%2033.2413%2032.9139%2033.0663C33.0596%2032.8821%2033.1325%2032.6059%2033.1325%2032.2376C33.1325%2031.5193%2032.8556%2031.1602%2032.302%2031.1602ZM36.396%2037.7486C36.396%2037.0396%2036.6097%2036.4917%2037.0371%2036.105C37.4742%2035.709%2038.0327%2035.511%2038.7126%2035.511C39.3925%2035.511%2039.9413%2035.709%2040.3589%2036.105C40.7863%2036.4917%2041%2037.0396%2041%2037.7486C41%2038.4576%2040.7863%2039.0101%2040.3589%2039.4061C39.9413%2039.802%2039.3925%2040%2038.7126%2040C38.023%2040%2037.4645%2039.802%2037.0371%2039.4061C36.6097%2039.0101%2036.396%2038.4576%2036.396%2037.7486ZM38.698%2036.6713C38.1444%2036.6713%2037.8676%2037.0304%2037.8676%2037.7486C37.8676%2038.4761%2038.1444%2038.8398%2038.698%2038.8398C39.2419%2038.8398%2039.5139%2038.4761%2039.5139%2037.7486C39.5139%2037.0304%2039.2419%2036.6713%2038.698%2036.6713Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2886_7680'%20x1='25'%20y1='0'%20x2='25'%20y2='50'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2326C1B4'/%3e%3cstop%20offset='1'%20stop-color='%232FD1BA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='33'%20height='33'%20rx='16.5'%20fill='url(%23paint0_linear_3230_9130)'/%3e%3cg%20clip-path='url(%23clip0_3230_9130)'%3e%3cpath%20d='M10.1143%206.82168C10.6828%206.82168%2011.2512%206.9531%2011.8196%207.12806C12.3445%207.30222%2012.8693%207.56506%2013.3942%207.82789C13.8756%208.0902%2014.3566%208.39631%2014.8374%208.74622L15.4937%209.2711C15.6244%209.35818%2015.7122%209.44527%2015.7993%209.53314C15.8436%209.57668%2015.8864%209.62022%2015.9743%209.66456L16.0613%209.79597L16.1492%209.88306H14.5746L14.706%209.70889L14.8374%209.57747L15.0995%209.31464C15.2744%209.09614%2015.4494%208.92118%2015.6244%208.74622C15.8028%208.57321%2015.9927%208.41241%2016.1928%208.26489C16.2806%208.17781%2016.4121%208.09072%2016.4991%208.04639L16.6306%207.91497L16.762%207.78356C17.1554%207.47797%2017.5932%207.21514%2018.0302%206.95231C18.4684%206.69386%2018.9209%206.46048%2019.3856%206.25327C20.3039%205.81627%2021.2666%205.5091%2022.2276%205.29139C22.7098%205.20431%2023.2346%205.11643%2023.716%205.0721C24.2221%204.99248%2024.7364%204.97785%2025.2463%205.02856L24.59%205.42202C24.5029%205.46635%2024.3715%205.55343%2024.2836%205.59697C24.2401%205.64131%2024.1965%205.64131%2024.1094%205.68406L23.9337%205.77193C23.5402%206.03477%2023.1024%206.25327%2022.709%206.5161C21.9656%207.04018%2021.2222%207.52152%2020.4353%208.04639C19.6484%208.57127%2018.9486%209.09614%2018.2052%209.62102L17.6803%2010.0145C17.5054%2010.1459%2017.3304%2010.2765%2017.1554%2010.4515C16.9805%2010.6264%2016.8055%2010.7578%2016.6306%2010.8893C16.5435%2010.9763%2016.4556%2011.0199%2016.3677%2011.1078L16.1492%2011.3263L15.1873%2012.1575L14.5746%2011.3263L14.5311%2011.2827L14.4875%2011.1956L14.3133%2011.0642L14.0505%2010.7578C13.886%2010.559%2013.7108%2010.3693%2013.5256%2010.1894L12.4759%209.00827C12.126%208.61481%2011.7761%208.22135%2011.3826%207.87143C10.991%207.48547%2010.5667%207.13424%2010.1143%206.82168ZM23.1024%2016.3161C23.1054%2015.3583%2022.9274%2014.4085%2022.5776%2013.5168L19.8226%2014.698C20.6095%2016.8846%2019.6911%2019.3332%2017.636%2020.4265L18.8163%2023.1815C21.4407%2021.914%2023.1024%2019.2461%2023.1024%2016.3161ZM20.0419%2010.1934L17.4175%2012.1171C18.2923%2012.5549%2019.0356%2013.2548%2019.4734%2014.0852L22.2284%2012.9048C21.7471%2011.8551%2021.0037%2010.9368%2020.0419%2010.1934ZM10.7706%2016.3161C10.7756%2015.5183%2010.9828%2014.7348%2011.3728%2014.0388C11.7628%2013.3429%2012.3229%2012.7571%2013.0008%2012.3364L11.077%2010.0184C8.18902%2011.9865%207.00864%2015.7034%208.23335%2018.9833L11.0319%2017.8029C10.8602%2017.3259%2010.7723%2016.8231%2010.7706%2016.3161ZM15.4051%2020.9949C14.5418%2020.9908%2013.6965%2020.7475%2012.9631%2020.2921C12.2297%2019.8366%2011.6368%2019.1868%2011.2504%2018.4148L8.49539%2019.596C10.2006%2023.2258%2014.4432%2024.9319%2018.2044%2023.4879L17.0232%2020.7328C16.502%2020.9091%2015.9553%2020.9971%2015.4051%2020.9949Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3230_9130'%20x1='16.5'%20y1='0'%20x2='16.5'%20y2='33'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2340AAFF'/%3e%3cstop%20offset='1'%20stop-color='%233D9CE8'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_3230_9130'%3e%3crect%20width='19'%20height='19'%20fill='white'%20transform='translate(7%205)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='33'%20height='33'%20rx='16.5'%20fill='url(%23paint0_linear_3230_9143)'/%3e%3crect%20x='12.8557'%20y='15.9092'%20width='2.03671'%20height='7.21886'%20transform='rotate(-43.6241%2012.8557%2015.9092)'%20fill='white'/%3e%3crect%20x='18.3251'%20y='14.498'%20width='1.9278'%20height='7.21886'%20transform='rotate(43.4794%2018.3251%2014.498)'%20fill='white'/%3e%3cpath%20d='M10.5643%207.9797C11.1817%207.9797%2011.7991%208.12243%2012.4165%208.31247C12.9866%208.50164%2013.5567%208.78712%2014.1268%209.0726C14.6496%209.3575%2015.1721%209.68999%2015.6944%2010.0701L16.4072%2010.6401C16.5491%2010.7347%2016.6445%2010.8293%2016.7391%2010.9248C16.7873%2010.9721%2016.8337%2011.0194%2016.9291%2011.0675L17.0237%2011.2102L17.1192%2011.3048H15.4089L15.5516%2011.1157L15.6944%2010.9729L15.979%2010.6874C16.169%2010.4501%2016.359%2010.2601%2016.5491%2010.0701C16.7429%209.88214%2016.9492%209.70747%2017.1665%209.54725C17.2619%209.45266%2017.4047%209.35808%2017.4992%209.30992L17.642%209.16718L17.7847%209.02444C18.2121%208.69253%2018.6876%208.40705%2019.1622%208.12158C19.6382%207.84087%2020.1297%207.58737%2020.6343%207.36231C21.6318%206.88765%2022.6774%206.55402%2023.7213%206.31756C24.245%206.22297%2024.8151%206.12752%2025.3379%206.07937C25.8876%205.9929%2026.4462%205.977%2027%206.03208L26.2872%206.45944C26.1926%206.50759%2026.0498%206.60218%2025.9544%206.64947C25.9071%206.69762%2025.8598%206.69762%2025.7652%206.74405L25.5743%206.8395C25.147%207.12498%2024.6715%207.36231%2024.2441%207.64778C23.4367%208.21702%2022.6293%208.73983%2021.7745%209.30992C20.9198%209.88002%2020.1597%2010.4501%2019.3523%2011.0202L18.7822%2011.4476C18.5921%2011.5903%2018.4021%2011.7322%2018.2121%2011.9222C18.022%2012.1123%2017.832%2012.255%2017.642%2012.3977C17.5474%2012.4923%2017.4519%2012.5396%2017.3565%2012.6351L17.1192%2012.8724L16.0744%2013.7753L15.4089%2012.8724L15.3616%2012.8251L15.3143%2012.7305L15.1251%2012.5878L14.8396%2012.255C14.6609%2012.039%2014.4706%2011.8329%2014.2695%2011.6376L13.1294%2010.3547C12.7493%209.92731%2012.3692%209.49996%2011.9419%209.11989C11.5166%208.70068%2011.0556%208.31918%2010.5643%207.9797ZM24.6715%2018.2922C24.6747%2017.2518%2024.4813%2016.2202%2024.1014%2015.2517L21.109%2016.5346C21.9637%2018.9096%2020.9663%2021.5692%2018.734%2022.7567L20.0161%2025.749C22.8666%2024.3724%2024.6715%2021.4746%2024.6715%2018.2922ZM21.3472%2011.6419L18.4967%2013.7314C19.4469%2014.2069%2020.2543%2014.967%2020.7298%2015.8691L23.7222%2014.587C23.1994%2013.4468%2022.3919%2012.4493%2021.3472%2011.6419ZM11.2772%2018.2922C11.2826%2017.4256%2011.5076%2016.5746%2011.9312%2015.8187C12.3548%2015.0627%2012.9632%2014.4265%2013.6995%2013.9696L11.61%2011.4519C8.47313%2013.5895%207.19106%2017.6266%208.52128%2021.1891L11.5609%2019.907C11.3744%2019.389%2011.279%2018.8428%2011.2772%2018.2922ZM16.3109%2023.374C15.3732%2023.3696%2014.4551%2023.1054%2013.6585%2022.6107C12.8619%2022.116%2012.218%2021.4102%2011.7983%2020.5717L8.8059%2021.8546C10.6581%2025.7972%2015.2661%2027.6502%2019.3514%2026.0818L18.0685%2023.0894C17.5024%2023.2809%2016.9085%2023.3765%2016.3109%2023.374Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_3230_9143'%20x1='16.5'%20y1='0'%20x2='16.5'%20y2='33'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF9D6A'/%3e%3cstop%20offset='1'%20stop-color='%23FF8A96'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\"","import bin from '@assets/survey/bin.svg';\nimport copy from '@assets/survey/copy.svg';\nimport crossIcon from '@assets/survey/crossIcon.svg';\nimport directionIcon from '@assets/survey/directionIcon.svg';\nimport drag from '@assets/survey/dragIcon.svg';\nimport edit from '@assets/survey/edit.svg';\nimport lightEdit from '@assets/survey/lightEdit.svg';\nimport logoIcon from '@assets/survey/logoIcon.svg';\nimport deleteIcon from '@assets/survey/deleteIcon.svg';\nimport add from '@assets/survey/addIcon.svg';\nimport complete from '@assets/survey/complete.svg';\nimport incomplete from '@assets/survey/incomplete.svg';\nimport rate from '@assets/survey/rate.svg';\nimport answers from '@assets/survey/answers.svg';\nimport skips from '@assets/survey/skips.svg';\nconst SurveyAssets = {\n edit,\n drag,\n lightEdit,\n copy,\n bin,\n directionIcon,\n logoIcon,\n crossIcon,\n deleteIcon,\n add,\n rate,\n incomplete,\n complete,\n answers,\n skips\n}\n\nexport default SurveyAssets;","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%207C8.44772%207%208%207.44772%208%208C8%208.55228%208.44772%209%209%209H11C11.5523%209%2012%208.55228%2012%208C12%207.44772%2011.5523%207%2011%207H9Z'%20fill='%23667085'/%3e%3cpath%20d='M8%2012C8%2011.4477%208.44772%2011%209%2011H15C15.5523%2011%2016%2011.4477%2016%2012C16%2012.5523%2015.5523%2013%2015%2013H9C8.44772%2013%208%2012.5523%208%2012Z'%20fill='%23667085'/%3e%3cpath%20d='M9%2015C8.44772%2015%208%2015.4477%208%2016C8%2016.5523%208.44772%2017%209%2017H15C15.5523%2017%2016%2016.5523%2016%2016C16%2015.4477%2015.5523%2015%2015%2015H9Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%202C5.34315%202%204%203.34315%204%205V19C4%2020.6569%205.34315%2022%207%2022H17C18.6569%2022%2020%2020.6569%2020%2019V7.24264C20%206.44699%2019.6839%205.68393%2019.1213%205.12132L16.8787%202.87868C16.3161%202.31607%2015.553%202%2014.7574%202H7ZM7%204H14V6.9C14%207.50751%2014.4925%208%2015.1%208H18V19C18%2019.5523%2017.5523%2020%2017%2020H7C6.44772%2020%206%2019.5523%206%2019V5C6%204.44772%206.44771%204%207%204ZM16%204.82843L17.1716%206H16V4.82843Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='59'%20height='60'%20viewBox='0%200%2059%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='59'%20height='60'%20rx='29.5'%20fill='url(%23paint0_linear_2316_7374)'/%3e%3cg%20clip-path='url(%23clip0_2316_7374)'%3e%3cpath%20d='M19.7088%2017.5464V36.0706C19.7088%2036.2929%2019.8892%2036.4733%2020.1115%2036.4733H25.2177C25.5381%2036.4733%2025.8454%2036.6006%2026.072%2036.8271C26.2985%2037.0537%2026.4258%2037.361%2026.4258%2037.6814C26.4258%2038.0018%2026.2985%2038.3091%2026.072%2038.5356C25.8454%2038.7622%2025.5381%2038.8895%2025.2177%2038.8895H20.1115C19.3639%2038.8895%2018.6469%2038.5925%2018.1182%2038.0638C17.5896%2037.5352%2017.2926%2036.8182%2017.2926%2036.0706V17.5464C17.2926%2015.9904%2018.5555%2014.7275%2020.1115%2014.7275H33.8033C35.3593%2014.7275%2036.6222%2015.9904%2036.6222%2017.5464V30.0075C36.6222%2030.328%2036.4949%2030.6352%2036.2683%2030.8618C36.0417%2031.0884%2035.7345%2031.2156%2035.4141%2031.2156C35.0937%2031.2156%2034.7864%2031.0884%2034.5598%2030.8618C34.3332%2030.6352%2034.206%2030.328%2034.206%2030.0075V17.5464C34.206%2017.4396%2034.1635%2017.3372%2034.088%2017.2617C34.0125%2017.1862%2033.9101%2017.1437%2033.8033%2017.1437H20.1115C20.0047%2017.1437%2019.9023%2017.1862%2019.8268%2017.2617C19.7512%2017.3372%2019.7088%2017.4396%2019.7088%2017.5464ZM41.0905%2032.9086L33.7501%2040.0766C33.5222%2040.2987%2033.2159%2040.4219%2032.8978%2040.4195C32.5796%2040.4171%2032.2752%2040.2893%2032.0507%2040.0637L28.9209%2036.9227C28.708%2036.6933%2028.5923%2036.3901%2028.5984%2036.0772C28.6045%2035.7642%2028.7319%2035.4658%2028.9537%2035.2449C29.1754%2035.0239%2029.4743%2034.8977%2029.7873%2034.8928C30.1003%2034.8879%2030.403%2035.0046%2030.6316%2035.2185L32.9173%2037.5139L39.4024%2031.1802C39.6318%2030.9563%2039.9407%2030.8328%2040.2613%2030.8367C40.42%2030.8387%2040.5767%2030.8718%2040.7226%2030.9344C40.8685%2030.9969%2041.0006%2031.0876%2041.1114%2031.2011C41.2223%2031.3147%2041.3097%2031.4491%2041.3686%2031.5964C41.4275%2031.7438%2041.4569%2031.9013%2041.4549%2032.06C41.453%2032.2187%2041.4198%2032.3755%2041.3573%2032.5213C41.2947%2032.6672%2041.2041%2032.7994%2041.0905%2032.9102M23.3331%2021.1707H30.5817C30.9021%2021.1707%2031.2094%2021.298%2031.4359%2021.5246C31.6625%2021.7511%2031.7898%2022.0584%2031.7898%2022.3788C31.7898%2022.6992%2031.6625%2023.0065%2031.4359%2023.2331C31.2094%2023.4596%2030.9021%2023.5869%2030.5817%2023.5869H23.3331C23.0127%2023.5869%2022.7054%2023.4596%2022.4788%2023.2331C22.2523%2023.0065%2022.125%2022.6992%2022.125%2022.3788C22.125%2022.0584%2022.2523%2021.7511%2022.4788%2021.5246C22.7054%2021.298%2023.0127%2021.1707%2023.3331%2021.1707ZM22.125%2027.2112C22.125%2026.8908%2022.2523%2026.5835%2022.4788%2026.357C22.7054%2026.1304%2023.0127%2026.0031%2023.3331%2026.0031H26.5547C26.8751%2026.0031%2027.1824%2026.1304%2027.4089%2026.357C27.6355%2026.5835%2027.7628%2026.8908%2027.7628%2027.2112C27.7628%2027.5316%2027.6355%2027.8389%2027.4089%2028.0655C27.1824%2028.292%2026.8751%2028.4193%2026.5547%2028.4193H23.3331C23.0127%2028.4193%2022.7054%2028.292%2022.4788%2028.0655C22.2523%2027.8389%2022.125%2027.5316%2022.125%2027.2112Z'%20fill='%23FF7578'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2316_7374'%20x1='29.5'%20y1='0'%20x2='29.5'%20y2='60'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFCBCC'/%3e%3cstop%20offset='1'%20stop-color='white'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_2316_7374'%3e%3crect%20width='25.7727'%20height='25.7727'%20fill='white'%20transform='translate(15.6818%2014.7275)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20fill='%23D1FADF'/%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20stroke='%23ECFDF3'%20stroke-width='6'/%3e%3cg%20clip-path='url(%23clip0_2423_6681)'%3e%3cpath%20d='M31.3327%2022.2335V23.0002C31.3317%2024.7972%2030.7498%2026.5458%2029.6738%2027.9851C28.5978%2029.4244%2027.0854%2030.4773%2025.3621%2030.9868C23.6389%2031.4963%2021.7971%2031.4351%2020.1114%2030.8124C18.4258%2030.1896%2016.9866%2029.0386%2016.0085%2027.5311C15.0304%2026.0236%2014.5658%2024.2403%2014.6841%2022.4471C14.8023%2020.654%2015.497%2018.9472%2016.6646%2017.5811C17.8321%2016.2151%2019.41%2015.263%2021.1628%2014.867C22.9157%2014.471%2024.7496%2014.6522%2026.391%2015.3835M31.3327%2016.3335L22.9994%2024.6752L20.4994%2022.1752'%20stroke='%23039855'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2423_6681'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='translate(13%2013)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20fill='%23FEE4E2'/%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20stroke='%23FEF3F2'%20stroke-width='6'/%3e%3cg%20clip-path='url(%23clip0_2423_6696)'%3e%3cpath%20d='M22.9993%2019.666V22.9993M22.9993%2026.3327H23.0077M31.3327%2022.9993C31.3327%2027.6017%2027.6017%2031.3327%2022.9993%2031.3327C18.397%2031.3327%2014.666%2027.6017%2014.666%2022.9993C14.666%2018.397%2018.397%2014.666%2022.9993%2014.666C27.6017%2014.666%2031.3327%2018.397%2031.3327%2022.9993Z'%20stroke='%23D92D20'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2423_6696'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='translate(13%2013)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20fill='%23F4EBFF'/%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20stroke='%23F9F5FF'%20stroke-width='6'/%3e%3cpath%20d='M23.8333%2014.666L15.5%2024.666H23L22.1667%2031.3327L30.5%2021.3327H23L23.8333%2014.666Z'%20stroke='%237F56D9'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20fill='%23FEF0C7'/%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20stroke='%23FFFAEB'%20stroke-width='6'/%3e%3cpath%20d='M22.9997%2019.6657V22.999M22.9997%2026.3324H23.008M21.5747%2015.3824L14.5163%2027.1657C14.3708%2027.4177%2014.2938%2027.7034%2014.293%2027.9945C14.2922%2028.2855%2014.3676%2028.5716%2014.5117%2028.8245C14.6558%2029.0773%2014.8636%2029.288%2015.1144%2029.4356C15.3652%2029.5832%2015.6503%2029.6625%2015.9413%2029.6657H30.058C30.349%2029.6625%2030.6341%2029.5832%2030.8849%2029.4356C31.1357%2029.288%2031.3435%2029.0773%2031.4876%2028.8245C31.6317%2028.5716%2031.7071%2028.2855%2031.7063%2027.9945C31.7055%2027.7034%2031.6285%2027.4177%2031.483%2027.1657L24.4247%2015.3824C24.2761%2015.1375%2024.0669%2014.935%2023.8173%2014.7944C23.5677%2014.6539%2023.2861%2014.5801%2022.9997%2014.5801C22.7132%2014.5801%2022.4316%2014.6539%2022.182%2014.7944C21.9324%2014.935%2021.7232%2015.1375%2021.5747%2015.3824Z'%20stroke='%23DC6803'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","import success from '@assets/toast/success.svg';\nimport error from '@assets/toast/error.svg';\nimport info from '@assets/toast/info.svg';\nimport warning from '@assets/toast/warning.svg';\n\nconst SurveyAssets = {\n success,\n error,\n info,\n warning\n}\n\nexport default SurveyAssets;","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%209.75C10.5523%209.75%2011%2010.1977%2011%2010.75V16.75C11%2017.3023%2010.5523%2017.75%2010%2017.75C9.44772%2017.75%209%2017.3023%209%2016.75V10.75C9%2010.1977%209.44772%209.75%2010%209.75Z'%20fill='%23667085'/%3e%3cpath%20d='M15%2010.75C15%2010.1977%2014.5523%209.75%2014%209.75C13.4477%209.75%2013%2010.1977%2013%2010.75V16.75C13%2017.3023%2013.4477%2017.75%2014%2017.75C14.5523%2017.75%2015%2017.3023%2015%2016.75V10.75Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M18%206V5C18%203.34315%2016.6569%202%2015%202H9C7.34315%202%206%203.34315%206%205V6H4.5C3.94772%206%203.5%206.44772%203.5%207C3.5%207.55228%203.94772%208%204.5%208H5V19C5%2020.6569%206.34315%2022%208%2022H16C17.6569%2022%2019%2020.6569%2019%2019V8H19.5C20.0523%208%2020.5%207.55228%2020.5%207C20.5%206.44772%2020.0523%206%2019.5%206H18ZM15%204H9C8.44772%204%208%204.44772%208%205V6H16V5C16%204.44772%2015.5523%204%2015%204ZM17%208H7V19C7%2019.5523%207.44772%2020%208%2020H16C16.5523%2020%2017%2019.5523%2017%2019V8Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20fill='%23F2F4F7'/%3e%3crect%20x='3'%20y='3'%20width='40'%20height='40'%20rx='20'%20stroke='%23F9FAFB'%20stroke-width='6'/%3e%3cg%20clip-path='url(%23clip0_2359_7155)'%3e%3cpath%20d='M26.3335%2026.3332L23.0002%2022.9999M23.0002%2022.9999L19.6669%2026.3332M23.0002%2022.9999V30.4999M29.9919%2028.3249C30.8047%2027.8818%2031.4467%2027.1806%2031.8168%2026.3321C32.1868%2025.4835%2032.2637%2024.5359%2032.0354%2023.6388C31.807%2022.7417%2031.2865%2021.9462%2030.5558%2021.3778C29.8251%2020.8094%2028.9259%2020.5005%2028.0002%2020.4999H26.9502C26.698%2019.5243%2026.2278%2018.6185%2025.5752%2017.8507C24.9225%2017.0829%2024.1042%2016.4731%2023.182%2016.0671C22.2597%2015.661%2021.2573%2015.4694%2020.2503%2015.5065C19.2433%2015.5436%2018.2578%2015.8085%2017.3679%2016.2813C16.4779%2016.7541%2015.7068%2017.4225%2015.1124%2018.2362C14.518%2019.05%2014.1158%2019.9879%2013.936%2020.9794C13.7563%2021.9709%2013.8036%2022.9903%2014.0746%2023.961C14.3455%2024.9316%2014.8329%2025.8281%2015.5002%2026.5832'%20stroke='%23475467'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2359_7155'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='translate(13%2013)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.5891%206.9107C15.2637%206.58527%2014.736%206.58527%2014.4106%206.9107L9.99984%2011.3214L5.58909%206.9107C5.26366%206.58527%204.73602%206.58527%204.41058%206.9107C4.08514%207.23614%204.08514%207.76378%204.41058%208.08921L9.70521%2013.3838C9.86793%2013.5466%2010.1317%2013.5466%2010.2945%2013.3838L15.5891%208.08921C15.9145%207.76378%2015.9145%207.23614%2015.5891%206.9107Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='4'%20y='4'%20width='48'%20height='48'%20rx='24'%20fill='%23FEE4E2'/%3e%3crect%20x='4'%20y='4'%20width='48'%20height='48'%20rx='24'%20stroke='%23FEF3F2'%20stroke-width='8'/%3e%3cpath%20d='M28%2024V28M28%2032H28.01M38%2028C38%2033.5228%2033.5228%2038%2028%2038C22.4772%2038%2018%2033.5228%2018%2028C18%2022.4772%2022.4772%2018%2028%2018C33.5228%2018%2038%2022.4772%2038%2028Z'%20stroke='%23D92D20'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='4'%20height='16'%20viewBox='0%200%204%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%202C4%203.10457%203.10457%204%202%204C0.895431%204%200%203.10457%200%202C0%200.895431%200.895431%200%202%200C3.10457%200%204%200.895431%204%202Z'%20fill='%23667085'/%3e%3cpath%20d='M4%208C4%209.10457%203.10457%2010%202%2010C0.895431%2010%200%209.10457%200%208C0%206.89543%200.895431%206%202%206C3.10457%206%204%206.89543%204%208Z'%20fill='%23667085'/%3e%3cpath%20d='M2%2016C3.10457%2016%204%2015.1046%204%2014C4%2012.8954%203.10457%2012%202%2012C0.895431%2012%200%2012.8954%200%2014C0%2015.1046%200.895431%2016%202%2016Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='18'%20height='20'%20viewBox='0%200%2018%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%201H1V14'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5%205H17V17C17%2017.5304%2016.7893%2018.0391%2016.4142%2018.4142C16.0391%2018.7893%2015.5304%2019%2015%2019H7C6.46957%2019%205.96086%2018.7893%205.58579%2018.4142C5.21071%2018.0391%205%2017.5304%205%2017V5Z'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='20'%20viewBox='0%200%2016%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%2019C2.46957%2019%201.96086%2018.7893%201.58579%2018.4142C1.21071%2018.0391%201%2017.5304%201%2017V1H10L15%206V17C15%2017.5304%2014.7893%2018.0391%2014.4142%2018.4142C14.0391%2018.7893%2013.5304%2019%2013%2019H3Z'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9%201V7H15'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20d='M6%2011L10%2015M6%2015L10%2011'%20stroke='%23667085'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%202.625C12%202.45924%2012.0632%202.30027%2012.1757%202.18306C12.2883%202.06585%2012.4409%202%2012.6%202H17.4C17.5591%202%2017.7117%202.06585%2017.8243%202.18306C17.9368%202.30027%2018%202.45924%2018%202.625C18%202.79076%2017.9368%202.94973%2017.8243%203.06694C17.7117%203.18415%2017.5591%203.25%2017.4%203.25H15.6V20.75H17.4C17.5591%2020.75%2017.7117%2020.8158%2017.8243%2020.9331C17.9368%2021.0503%2018%2021.2092%2018%2021.375C18%2021.5408%2017.9368%2021.6997%2017.8243%2021.8169C17.7117%2021.9342%2017.5591%2022%2017.4%2022H12.6C12.4409%2022%2012.2883%2021.9342%2012.1757%2021.8169C12.0632%2021.6997%2012%2021.5408%2012%2021.375C12%2021.2092%2012.0632%2021.0503%2012.1757%2020.9331C12.2883%2020.8158%2012.4409%2020.75%2012.6%2020.75H14.4V3.25H12.6C12.4409%203.25%2012.2883%203.18415%2012.1757%203.06694C12.0632%202.94973%2012%202.79076%2012%202.625Z'%20fill='%23667085'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.61435%207.39499C8.56347%207.27796%208.47789%207.17803%208.36835%207.10776C8.25882%207.03749%208.13021%207%207.99867%207C7.86713%207%207.73852%207.03749%207.62898%207.10776C7.51945%207.17803%207.43387%207.27796%207.38298%207.39499L4.05136%2015.1096C3.98332%2015.2669%203.98287%2015.4439%204.0501%2015.6016C4.11732%2015.7593%204.24673%2015.8848%204.40984%2015.9504C4.57295%2016.0161%204.75641%2016.0165%204.91986%2015.9517C5.08331%2015.8868%205.21336%2015.762%205.28139%2015.6046L6.22091%2013.4316H9.77909L10.7186%2015.6046C10.7866%2015.762%2010.9167%2015.8868%2011.0801%2015.9517C11.2436%2016.0165%2011.427%2016.0161%2011.5902%2015.9504C11.7533%2015.8848%2011.8827%2015.7593%2011.9499%2015.6016C12.0171%2015.4439%2012.0167%2015.2669%2011.9486%2015.1096L8.61702%207.39499H8.61435ZM7.99867%209.31078L9.22071%2012.1395H6.78196L8.004%209.31078H7.99867Z'%20fill='%23667085'/%3e%3cpath%20d='M12.6199%205.33332C12.7857%205.33332%2012.9446%205.26308%2013.0618%205.13806C13.179%205.01303%2013.2448%204.84347%2013.2448%204.66666C13.2448%204.48985%2013.179%204.32028%2013.0618%204.19526C12.9446%204.07024%2012.7857%204%2012.6199%204H7.9955C5.89576%204%204.84589%204%204.04599%204.43599C3.34217%204.82084%202.76945%205.43181%202.4087%206.18264C2%207.03863%202%208.15594%202%2010.3959V13.5959C2%2015.8358%202%2016.9558%202.4087%2017.8092C2.76945%2018.56%203.34217%2019.1709%204.04599%2019.5558C4.84839%2019.9918%205.89576%2019.9918%207.9955%2019.9918H12.6199C12.7857%2019.9918%2012.9446%2019.9216%2013.0618%2019.7965C13.179%2019.6715%2013.2448%2019.5019%2013.2448%2019.3251C13.2448%2019.1483%2013.179%2018.9788%2013.0618%2018.8537C12.9446%2018.7287%2012.7857%2018.6585%2012.6199%2018.6585H7.9955C6.92439%2018.6585%206.19573%2018.6585%205.6333%2018.6078C5.08586%2018.5611%204.80465%2018.4745%204.60967%2018.3678C4.13935%2018.1122%203.75696%2017.7042%203.51731%2017.2025C3.41732%2016.9945%203.33608%2016.6958%203.29234%2016.1105C3.24609%2015.5105%203.24484%2014.7372%203.24484%2013.5905V10.3906C3.24484%209.24793%203.24609%208.47061%203.29234%207.87062C3.33733%207.28662%203.41857%206.98663%203.51731%206.77863C3.75728%206.2773%204.13973%205.86931%204.60967%205.61331C4.80465%205.50665%205.08586%205.41998%205.6333%205.37332C6.19573%205.32532%206.92064%205.32398%207.9955%205.32398H12.6199V5.33332ZM17.6193%2018.6665C17.4542%2018.67%2017.2969%2018.7422%2017.181%2018.8678C17.0652%2018.9933%2017%2019.1623%2016.9994%2019.3385C16.9994%2019.7091%2017.2818%2020.0091%2017.6293%2019.9998C18.7079%2019.9731%2019.3916%2019.8798%2019.954%2019.5758C20.6588%2019.1924%2021.2319%2018.5811%2021.5913%2017.8291C22%2016.9732%2022%2015.8558%2022%2013.6159V10.4159C22%208.17594%2022%207.05596%2021.5913%206.20264C21.2319%205.45073%2020.6588%204.83936%2019.954%204.45599C19.3928%204.15066%2018.7104%204.05867%2017.6293%204.032C17.547%204.03022%2017.4651%204.04603%2017.3886%204.0785C17.3121%204.11097%2017.2424%204.15945%2017.1837%204.22107C17.125%204.28269%2017.0785%204.35622%2017.0468%204.43733C17.0152%204.51843%2016.999%204.60547%2016.9994%204.69332C16.9994%205.05999%2017.2768%205.35598%2017.6193%205.36532C17.8968%205.37154%2018.1434%205.38443%2018.3592%205.40398C18.9066%205.45065%2019.1879%205.53731%2019.3828%205.64398C19.8528%205.89997%2020.2352%206.30797%2020.4752%206.8093C20.5752%207.01729%2020.6564%207.31596%2020.7002%207.90128C20.7464%208.50127%2020.7477%209.2746%2020.7477%2010.4212V13.6212C20.7477%2014.7639%2020.7464%2015.5412%2020.7002%2016.1412C20.6552%2016.7252%2020.5739%2017.0252%2020.4752%2017.2332C20.2355%2017.7349%2019.8532%2018.1428%2019.3828%2018.3985C19.1879%2018.5051%2018.9066%2018.5918%2018.3592%2018.6385C18.1426%2018.6562%2017.8959%2018.6687%2017.6193%2018.6758V18.6665Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%202.49995C10.9999%201.91338%2011.2061%201.34546%2011.5825%200.895559C11.9588%200.445654%2012.4814%200.142411%2013.0588%200.0388849C13.6361%20-0.0646415%2014.2315%200.0381412%2014.7408%200.32925C15.25%200.620359%2015.6406%201.08126%2015.8444%201.63131C16.0481%202.18135%2016.0519%202.78553%2015.8552%203.33812C15.6585%203.89071%2015.2737%204.35654%2014.7682%204.65409C14.2627%204.95165%2013.6687%205.06198%2013.0901%204.9658C12.5115%204.86962%2011.9851%204.57304%2011.603%204.12795L4.88502%207.24795C5.0394%207.7374%205.0394%208.2625%204.88502%208.75195L11.603%2011.8719C12.0069%2011.4023%2012.5707%2011.0993%2013.1852%2011.0216C13.7997%2010.9439%2014.4212%2011.0972%2014.9292%2011.4516C15.4372%2011.8061%2015.7955%2012.3365%2015.9347%2012.9401C16.0739%2013.5436%2015.9841%2014.1774%2015.6826%2014.7185C15.3812%2015.2596%2014.8896%2015.6696%2014.3031%2015.8689C13.7166%2016.0682%2013.077%2016.0427%2012.5083%2015.7974C11.9396%2015.552%2011.4822%2015.1042%2011.2247%2014.5408C10.9673%2013.9774%2010.9282%2013.3385%2011.115%2012.7479L4.39702%209.62795C4.06446%2010.0155%203.62117%2010.2919%203.1268%2010.42C2.63243%2010.5481%202.11069%2010.5217%201.63176%2010.3444C1.15283%2010.1671%200.739697%209.84738%200.447928%209.42824C0.15616%209.00909%20-0.000244141%208.51064%20-0.000244141%207.99995C-0.000244141%207.48925%200.15616%206.99081%200.447928%206.57166C0.739697%206.15252%201.15283%205.83278%201.63176%205.65547C2.11069%205.47816%202.63243%205.45177%203.1268%205.57986C3.62117%205.70795%204.06446%205.98438%204.39702%206.37195L11.115%203.25195C11.0386%203.00862%2010.9998%202.75501%2011%202.49995Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.5%2017.25H16.5V18.75H10.5V17.25ZM7.5%2017.25H9V18.75H7.5V17.25ZM10.5%2013.5H16.5V15H10.5V13.5ZM7.5%2013.5H9V15H7.5V13.5ZM10.5%209.75H16.5V11.25H10.5V9.75ZM7.5%209.75H9V11.25H7.5V9.75Z'%20fill='%23667085'/%3e%3cpath%20d='M18.75%203.75H16.5V3C16.5%202.60218%2016.342%202.22064%2016.0607%201.93934C15.7794%201.65804%2015.3978%201.5%2015%201.5H9C8.60218%201.5%208.22064%201.65804%207.93934%201.93934C7.65804%202.22064%207.5%202.60218%207.5%203V3.75H5.25C4.85218%203.75%204.47064%203.90804%204.18934%204.18934C3.90804%204.47064%203.75%204.85218%203.75%205.25V21C3.75%2021.3978%203.90804%2021.7794%204.18934%2022.0607C4.47064%2022.342%204.85218%2022.5%205.25%2022.5H18.75C19.1478%2022.5%2019.5294%2022.342%2019.8107%2022.0607C20.092%2021.7794%2020.25%2021.3978%2020.25%2021V5.25C20.25%204.85218%2020.092%204.47064%2019.8107%204.18934C19.5294%203.90804%2019.1478%203.75%2018.75%203.75ZM9%203H15V6H9V3ZM18.75%2021H5.25V5.25H7.5V7.5H16.5V5.25H18.75V21Z'%20fill='%23667085'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.6667%201.33333V10.6667H1.33333V1.33333H10.6667ZM10.6667%200H1.33333C0.6%200%200%200.6%200%201.33333V10.6667C0%2011.4%200.6%2012%201.33333%2012H10.6667C11.4%2012%2012%2011.4%2012%2010.6667V1.33333C12%200.6%2011.4%200%2010.6667%200ZM7.42667%205.90667L5.42667%208.48667L4%206.76L2%209.33333H10L7.42667%205.90667Z'%20fill='%235C59E8'%20fill-opacity='0.5'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='20'%20height='18'%20viewBox='0%200%2020%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.3335%2012.3332L10.0002%208.9999M10.0002%208.9999L6.66688%2012.3332M10.0002%208.9999V16.4999M16.9919%2014.3249C17.8047%2013.8818%2018.4467%2013.1806%2018.8168%2012.3321C19.1868%2011.4835%2019.2637%2010.5359%2019.0354%209.63881C18.807%208.7417%2018.2865%207.94616%2017.5558%207.37778C16.8251%206.80939%2015.9259%206.50052%2015.0002%206.4999H13.9502C13.698%205.52427%2013.2278%204.61852%2012.5752%203.85073C11.9225%203.08295%2011.1042%202.47311%2010.182%202.06708C9.25967%201.66104%208.25734%201.46937%207.25031%201.50647C6.24328%201.54358%205.25777%201.80849%204.36786%202.28129C3.47795%202.7541%202.7068%203.42249%202.1124%204.23622C1.51799%205.04996%201.11579%205.98785%200.936028%206.9794C0.756269%207.97095%200.803632%208.99035%201.07456%209.96096C1.34548%2010.9316%201.83291%2011.8281%202.50021%2012.5832'%20stroke='%235C59E8'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.00019%2010.0243C6.632%2010.0243%206.33352%209.72578%206.33352%209.35759L6.33351%207.6673L4.64315%207.66731C4.27496%207.66732%203.97648%207.36884%203.97649%207.00065C3.97649%206.63246%204.27497%206.33398%204.64316%206.33398L6.33349%206.33397L6.33348%204.64366C6.33348%204.27547%206.63195%203.97699%207.00014%203.97699C7.36833%203.97698%207.66681%204.27546%207.66681%204.64365L7.66683%206.33396L9.35717%206.33394C9.72536%206.33394%2010.0238%206.63241%2010.0238%207.0006C10.0238%207.36879%209.72535%207.66727%209.35716%207.66728L7.66684%207.66729L7.66685%209.35758C7.66686%209.72577%207.36838%2010.0242%207.00019%2010.0243Z'%20fill='%235C59E8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.00016%2013.6673C10.6821%2013.6673%2013.6668%2010.6825%2013.6668%207.00065C13.6668%203.31875%2010.6821%200.333984%207.00016%200.333984C3.31826%200.333984%200.333496%203.31875%200.333496%207.00065C0.333496%2010.6825%203.31826%2013.6673%207.00016%2013.6673ZM7.00016%2012.334C9.94568%2012.334%2012.3335%209.94617%2012.3335%207.00065C12.3335%204.05513%209.94568%201.66732%207.00016%201.66732C4.05464%201.66732%201.66683%204.05513%201.66683%207.00065C1.66683%209.94617%204.05464%2012.334%207.00016%2012.334Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='12'%20height='14'%20viewBox='0%200%2012%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.2748%203.33268L9.74083%2012.4107C9.72093%2012.7503%209.57199%2013.0694%209.32449%2013.3028C9.077%2013.5361%208.74967%2013.6661%208.4095%2013.666H3.59083C3.25066%2013.6661%202.92333%2013.5361%202.67583%2013.3028C2.42834%2013.0694%202.2794%2012.7503%202.2595%2012.4107L1.72683%203.33268H0.333496V2.66602C0.333496%202.57761%200.368615%202.49283%200.431127%202.43031C0.493639%202.3678%200.578424%202.33268%200.666829%202.33268H11.3335C11.4219%202.33268%2011.5067%202.3678%2011.5692%202.43031C11.6317%202.49283%2011.6668%202.57761%2011.6668%202.66602V3.33268H10.2748ZM4.66683%200.666016H7.3335C7.4219%200.666016%207.50669%200.701135%207.5692%200.763647C7.63171%200.826159%207.66683%200.910943%207.66683%200.999349V1.66602H4.3335V0.999349C4.3335%200.910943%204.36862%200.826159%204.43113%200.763647C4.49364%200.701135%204.57842%200.666016%204.66683%200.666016ZM4.00016%204.99935L4.3335%2010.9993H5.3335L5.06683%204.99935H4.00016ZM7.00016%204.99935L6.66683%2010.9993H7.66683L8.00016%204.99935H7.00016Z'%20fill='%235C59E8'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='21'%20height='20'%20viewBox='0%200%2021%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3569_10301)'%3e%3cpath%20d='M13.8335%2013.3332L10.5002%209.9999M10.5002%209.9999L7.16688%2013.3332M10.5002%209.9999V17.4999M17.4919%2015.3249C18.3047%2014.8818%2018.9467%2014.1806%2019.3168%2013.3321C19.6868%2012.4835%2019.7637%2011.5359%2019.5354%2010.6388C19.307%209.7417%2018.7865%208.94616%2018.0558%208.37778C17.3251%207.80939%2016.4259%207.50052%2015.5002%207.4999H14.4502C14.198%206.52427%2013.7278%205.61852%2013.0752%204.85073C12.4225%204.08295%2011.6042%203.47311%2010.682%203.06708C9.75967%202.66104%208.75734%202.46937%207.75031%202.50647C6.74328%202.54358%205.75777%202.80849%204.86786%203.28129C3.97795%203.7541%203.2068%204.42249%202.6124%205.23622C2.01799%206.04996%201.61579%206.98785%201.43603%207.9794C1.25627%208.97095%201.30363%209.99035%201.57456%2010.961C1.84548%2011.9316%202.33291%2012.8281%203.00021%2013.5832'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3569_10301'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='translate(0.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"__VITE_ASSET__CCPoSpHh__\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.586%2010.6569L11.636%206.70692C11.4538%206.51832%2011.353%206.26571%2011.3553%206.00352C11.3576%205.74132%2011.4628%205.49051%2011.6482%205.3051C11.8336%205.11969%2012.0844%205.01452%2012.3466%205.01224C12.6088%205.00997%2012.8614%205.11076%2013.05%205.29292L18.707%2010.9499C18.8002%2011.0426%2018.8741%2011.1527%2018.9246%2011.2741C18.9751%2011.3954%2019.001%2011.5255%2019.001%2011.6569C19.001%2011.7883%2018.9751%2011.9184%2018.9246%2012.0398C18.8741%2012.1611%2018.8002%2012.2713%2018.707%2012.3639L13.05%2018.0209C12.9578%2018.1164%2012.8474%2018.1926%2012.7254%2018.245C12.6034%2018.2974%2012.4722%2018.325%2012.3394%2018.3262C12.2066%2018.3273%2012.0749%2018.302%2011.952%2018.2517C11.8291%2018.2015%2011.7175%2018.1272%2011.6236%2018.0333C11.5297%2017.9394%2011.4555%2017.8278%2011.4052%2017.7049C11.3549%2017.582%2011.3296%2017.4503%2011.3307%2017.3175C11.3319%2017.1847%2011.3595%2017.0535%2011.4119%2016.9315C11.4643%2016.8095%2011.5405%2016.6992%2011.636%2016.6069L15.586%2012.6569H6C5.73478%2012.6569%205.48043%2012.5516%205.29289%2012.364C5.10536%2012.1765%205%2011.9221%205%2011.6569C5%2011.3917%205.10536%2011.1373%205.29289%2010.9498C5.48043%2010.7623%205.73478%2010.6569%206%2010.6569H15.586Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__TYYDf1td__\"","export default \"__VITE_ASSET__C_FlMLTD__\"","export default \"data:image/svg+xml,%3csvg%20width='518'%20height='336'%20viewBox='0%200%20518%20336'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%202C0.5%200.895426%201.39543%200%202.5%200H515.5C516.605%200%20517.5%200.895431%20517.5%202V207.172C517.5%20207.702%20517.29%20208.211%20516.915%20208.586L390.755%20334.913C390.38%20335.289%20389.871%20335.5%20389.34%20335.5H2.5C1.39543%20335.5%200.5%20334.605%200.5%20333.5V2Z'%20fill='%23D5E0FF'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__Dngfkmp2__\"","export default \"__VITE_ASSET__Hb2lMHS7__\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewBox='0%200%2024%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21%207.78793L9%2019.7879L3.5%2014.2879L4.91%2012.8779L9%2016.9579L19.59%206.37793L21%207.78793Z'%20fill='%2362B595'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__DPy5Gs_K__\"","export default \"__VITE_ASSET__Cc9b6Xgb__\"","export default \"data:image/svg+xml,%3csvg%20width='106'%20height='58'%20viewBox='0%200%20106%2058'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20y='0.788086'%20width='106'%20height='57'%20fill='url(%23pattern0_2980_8645)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_2980_8645'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_2980_8645'%20transform='scale(0.00689655%200.0128252)'/%3e%3c/pattern%3e%3cimage%20id='image0_2980_8645'%20width='145'%20height='78'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJEAAABOCAYAAAAgsPTZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAASqSURBVHhe7Z1NbhMxGIan9F8CCcGCA7BnBUcoXIFFJfZskbgBGyS2cIEuuAL0CGXFngOAxI8Egv6DnzRTJpnMdBLHn+3P3yON0kRpMt+rZ2zHk3hW/joqw/Dg2vjWMBbGJDK8MYkMb0wiwxuTyPDGJDK8MYkMb0wiwxuTyPDGJDK8MYkMb0wiwxuRE7C8w/l5Y3P3eWz6nVdWLrZrbE7veuOxkkk9v2AS8aqnp1V1duY2V7gPqy6I1dWqWlsrR6ic8lu6RBR9Mi4+BISx7sLgViM55rc0iUbFn7hbz6NmKBxd6+t6ZMo5P2+J+O/jY9f0BjpyrmLNhbCxkW83pyE/L4nos49cACmw6YKgz88JLfktLBHFE0JKEAJh5ICm/OaWiGcTQKiBny/08QSRavemMb+5JOKZh0cXcxUpw9zI1mZ6ImnNzz19GLkEAOwj+zr88AiP5vwGS0QTnEMANewr+5wKmvMbJFHKfXgf7HMKImnP70qJ+ASR2qeIeYi9/yXk1ysRfWIKR7Iv1BBjfFRKfr0SMZOqhRi1lJJfp0T0h7Gm4kNALZLjkpLy65SIk4HakKyppPxmSoRxUmeTJaEmidaotPxmSsT3WbQiUVtp+bUkYhQucbTGgtpCflIrMb+WRDnPaQwlZI0l5teSSPNRVBOyxhLzm5Bo1BRHGhB++nhcvXjypXr76sf4kXBQY4guTSq/d3s/q9fPv1bfPscxdjq/CYlinSBEoDqUg/0/40fDEqJWqfw+uIzI7E1EkZq1RpeoFqjm7j2ZrybmLNH9ne3RLQLFEikZiWYJ9PTl7fG9sOQs0aPdG9XD3eujv2OJ1C1RgHFCFzEFghC1SuYXW6Rmra2BtQSxBYJQA2tJYorUObCWCCEFgUCDRBBLpE6JJEhBIG1MiyQxTdJEXKJbd/7/bheJpJpf7Xxv5Nj8WwJxiR4/u3kp0vu9X9XB/m8TyRNannp+jWzJWJIJiSR+p0Xrk4JIIWqN8Tu3WQKRcWiatYpLBCmIpEGiWAJBp0SssCVFbJFC1CqZX0yBoFnrpETCI6QukSQIUatUfpyAjSkQNGuNKhHMEkmiNcpZIk7AQiyBICmJoCnSg53tS6FCkrNEnIAlp1gCQbPW1qogh4fxvlMkBUvNbW2N7yyZEvNrHTta1kDsI2SNJebXkii3JesWIWSNJebXkojP/5qPJmoLOZ9TYn4tiYB1jrUiUVtp+c2UCNsYPGmDmiRaidLy6yyVhbK1IVlTSfl1SoRxLJStBWqRaIVqSsqvt9FlpXUtxKillPx6JWIUnsvi4n3EWte6lPx6JQLmBHKe+4i9/yXkd6VEgImS44llwT6n0BJoz2+QRMCLxTpBuwjsawoC1WjOb3BZ9Iks1Z9DEOxjapdl0JyfXSBGGI352aWqIqEpv4UlAkIgjBSg+Nw+BWnJz0si4L9zv/xkTDTk5y1RDX18rhfCTYGc81uaRDWjMFwzHWrgSNHLviR3SuSY39IlquFV6fMJw/foqr+CQJ+da7c1LznlF0yiJrwDK2tdbu4+j02/MwWy8cM45irqrRRxukg9PxGJDN04Tw3DD5PI8MYkMrwxiQxPquofApgABIMu90oAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e\"","export default \"__VITE_ASSET__BTgl5gnm__\"","export default \"data:image/svg+xml,%3csvg%20width='53'%20height='44'%20viewBox='0%200%2053%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_d_4500_10000)'%3e%3cpath%20d='M4.50391%2035.2607V24.9678C4.50391%2022.0459%205.05729%2019.0576%206.16406%2016.0029C7.3151%2012.904%208.82031%2010.0042%2010.6797%207.30371C12.5391%204.55892%2014.5312%202.2347%2016.6562%200.331055L25.9531%205.57715C24.4479%208.18913%2023.1198%2011.0225%2021.9688%2014.0771C20.8177%2017.1318%2020.2422%2020.762%2020.2422%2024.9678V35.2607H4.50391ZM27.4141%2035.2607V24.9678C27.4141%2022.0459%2027.9674%2019.0576%2029.0742%2016.0029C30.2253%2012.904%2031.7305%2010.0042%2033.5898%207.30371C35.4492%204.55892%2037.4414%202.2347%2039.5664%200.331055L48.8633%205.57715C47.3581%208.18913%2046.0299%2011.0225%2044.8789%2014.0771C43.7279%2017.1318%2043.1523%2020.762%2043.1523%2024.9678V35.2607H27.4141Z'%20fill='%235C59E8'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_4500_10000'%20x='0.503906'%20y='0.331055'%20width='52.3594'%20height='42.9297'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_4500_10000'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_4500_10000'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e\"","export default \"__VITE_ASSET__PtkOyJmr__\"","export default \"data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.586%206.445L6.636%202.495C6.45384%202.3064%206.35305%202.0538%206.35533%201.7916C6.3576%201.52941%206.46277%201.27859%206.64818%201.09319C6.83359%200.907778%207.0844%200.802609%207.3466%200.800331C7.6088%200.798052%207.8614%200.898847%208.05%201.081L13.707%206.738C13.8002%206.83066%2013.8741%206.94082%2013.9246%207.06215C13.9751%207.18349%2014.001%207.3136%2014.001%207.445C14.001%207.57641%2013.9751%207.70652%2013.9246%207.82786C13.8741%207.94919%2013.8002%208.05935%2013.707%208.152L8.05%2013.809C7.95775%2013.9045%207.84741%2013.9807%207.7254%2014.0331C7.6034%2014.0855%207.47218%2014.1131%207.3394%2014.1143C7.20662%2014.1154%207.07494%2014.0901%206.95205%2014.0398C6.82915%2013.9895%206.7175%2013.9153%206.62361%2013.8214C6.52971%2013.7275%206.45546%2013.6159%206.40518%2013.493C6.3549%2013.3701%206.3296%2013.2384%206.33075%2013.1056C6.3319%2012.9728%206.35949%2012.8416%206.4119%2012.7196C6.46431%2012.5976%206.54049%2012.4873%206.636%2012.395L10.586%208.445H1C0.734784%208.445%200.48043%208.33965%200.292893%208.15211C0.105357%207.96458%200%207.71022%200%207.445C0%207.17979%200.105357%206.92543%200.292893%206.7379C0.48043%206.55036%200.734784%206.445%201%206.445H10.586Z'%20fill='%232563EB'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.586%205.65692L6.636%201.70692C6.45384%201.51832%206.35305%201.26571%206.35533%201.00352C6.3576%200.741321%206.46277%200.490508%206.64818%200.3051C6.83359%200.119692%207.0844%200.0145233%207.3466%200.0122448C7.6088%200.00996641%207.8614%200.110761%208.05%200.292919L13.707%205.94992C13.8002%206.04257%2013.8741%206.15273%2013.9246%206.27407C13.9751%206.3954%2014.001%206.52551%2014.001%206.65692C14.001%206.78833%2013.9751%206.91844%2013.9246%207.03977C13.8741%207.16111%2013.8002%207.27127%2013.707%207.36392L8.05%2013.0209C7.95775%2013.1164%207.84741%2013.1926%207.7254%2013.245C7.6034%2013.2974%207.47218%2013.325%207.3394%2013.3262C7.20662%2013.3273%207.07494%2013.302%206.95205%2013.2517C6.82915%2013.2015%206.7175%2013.1272%206.62361%2013.0333C6.52971%2012.9394%206.45546%2012.8278%206.40518%2012.7049C6.3549%2012.582%206.3296%2012.4503%206.33075%2012.3175C6.3319%2012.1847%206.35949%2012.0535%206.4119%2011.9315C6.46431%2011.8095%206.54049%2011.6992%206.636%2011.6069L10.586%207.65692H1C0.734784%207.65692%200.48043%207.55156%200.292893%207.36403C0.105357%207.17649%200%206.92214%200%206.65692C0%206.3917%200.105357%206.13735%200.292893%205.94981C0.48043%205.76228%200.734784%205.65692%201%205.65692H10.586Z'%20fill='white'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__fRx7$JJu__\"","export default \"__VITE_ASSET__DGakCTET__\"","export default \"__VITE_ASSET__5GBJZWZg__\"","export default \"data:image/svg+xml,%3csvg%20width='437'%20height='335'%20viewBox='0%200%20437%20335'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%201.99999C0%200.895421%200.89543%200%202%200H435C436.105%200%20437%200.895431%20437%202V206.958C437%20207.431%20436.833%20207.888%20436.527%20208.249L329.972%20334.291C329.592%20334.741%20329.033%20335%20328.444%20335H2C0.895434%20335%200%20334.105%200%20333V1.99999Z'%20fill='%23D5E0FF'/%3e%3c/svg%3e\"","export default \"__VITE_ASSET__Cf7fyOsK__\"","export default \"__VITE_ASSET__C39k$4Wm__\"","export default \"__VITE_ASSET__DK_wnEIr__\"","\nimport createPoll from './createPollImg.svg';\nimport arrowRight from './arrowRight.svg';\nimport surveyCreated from './surveyCreated.svg';\nimport questionContent from './questionContent.svg';\nimport rectangle from './rectangle.svg';\nimport frame from './frame.svg';\nimport ssl from './ssl.svg';\nimport mdiTick from './mdiTick.svg'\nimport sslCertificate from './sslCertificate.svg';\nimport kenSimpson from './kemSimpson.svg';\nimport sliderbtns from './sliderBtns.svg';\nimport qpiLogo from './qpiLogo.svg';\nimport secondaryHeadline from './secondaryHeadline.svg';\nimport starsImg from './starsImg.svg';\nimport blueArrow from './blueArrow.svg';\nimport whiteArrow from './whiteArrow.svg';\nimport starssvg from './Icons.svg';\nimport newCreatePoll from './newCreatePollImg.svg';\nimport LeftImg from './LeftImgnew.svg';\nimport blueRect from './blueRect.svg';\nimport ManImg from './ManImg.svg';\nimport Frames from './FrameLast.svg';\nimport updatedLogoHome from './updatedLogoHome.svg';\n\nconst landingPageAssets ={\n createPoll,\n arrowRight,\n surveyCreated,\n questionContent,\n rectangle,\n frame,\n ssl,\n mdiTick,\n sslCertificate,\n kenSimpson,\n sliderbtns,\n qpiLogo,\n secondaryHeadline,\n starsImg,\n blueArrow,\n whiteArrow,\n starssvg,\n newCreatePoll,\n LeftImg,\n blueRect,\n ManImg,\n Frames,\n updatedLogoHome,\n}\nexport default landingPageAssets;","import atomsAssets from \"./atoms/atomsAssets\";\nimport authAssets from \"./auth\";\nimport calendarIcon from './calendarIcon.svg';\nimport copy from './copy.svg';\nimport copyActive from './copyActive.svg';\nimport dashAssests from \"./dashboard/dashAssets\";\nimport robo from './designerRobo.svg';\nimport downArrowWhite from './downArrowWhite.svg';\nimport tick from './dropdown/tick.svg';\nimport emailIconWithTick from './emailIconWithTick.svg';\nimport fArrow from './fArrow.svg';\nimport LayoutAssets from \"./layout/layoutAssets\";\nimport leftArrow from './leftArrow.svg';\nimport liveResult from './liveResult.svg';\nimport pollIcon from './poll.svg';\nimport pollImg from './pollImg.svg';\nimport previewAssets from \"./preview/previewAssets\";\nimport printer from './printer.svg';\nimport printerActive from './printerActive.svg';\nimport qpLogo from './qpLogo.svg';\nimport redirectPopupAssets from \"./redirectPopupAssets.ts\";\nimport rewardsIcon from './rewardsIcon.svg';\nimport samplePhot from './samplePhoto.svg';\nimport saveIcon from './saveIcon.svg';\nimport shareIcon from './shareIcon.svg';\nimport starActive from './starActive.svg';\nimport starDisable from './starDisable.svg';\nimport SurveyAssets from \"./survey/surveyAssests\";\nimport surveyIcon from './surveyIcon.svg';\nimport takeSurveyIcon from './takeSurvey.svg';\nimport ToastAssets from \"./toast/toastAssets.ts\";\nimport trash from './trash.svg';\nimport trashActive from './trashActive.svg';\nimport uploadFile from './uploadFile.svg';\nimport zeroDegArrow from './zeroDegArrow.svg';\nimport deletealert from './deletealert.svg';\nimport threeDots from './threeDots.svg';\nimport clipboard from './Clipboard.svg';\nimport contextclose from './contextclose.svg';\nimport rename from './qlementine-icons_rename.svg';\nimport share from './share.svg';\nimport contextreport from './Carbonresult.svg';\nimport descriptionimage from './image.svg';\nimport uploadIcon from './uploadIcon.svg';\nimport plusIcon from './plusIcon.svg';\nimport colouredDelete from './colourDelete.svg';\nimport uploadpopupbutton from './upload-popupbutton.svg';\nimport polparty from './polparty.svg';\nimport landingPageAssets from \"./landingPage/landingPageAssets.ts\";\nconst assets = {\n ...LayoutAssets,\n ...atomsAssets,\n ...dashAssests,\n ...previewAssets,\n ...SurveyAssets,\n ...authAssets,\n ...redirectPopupAssets,\n ...ToastAssets,\n ...landingPageAssets,\n calendarIcon,\n samplePhot,\n copy,\n trash,\n printer,\n copyActive,\n trashActive,\n printerActive,\n starActive,\n starDisable,\n robo,\n zeroDegArrow,\n pollIcon,\n surveyIcon,\n downArrowWhite,\n emailIconWithTick,\n takeSurveyIcon,\n rewardsIcon,\n qpLogo,\n fArrow,\n shareIcon,\n liveResult,\n leftArrow,\n pollImg,\n tick,\n saveIcon,\n uploadFile,\n descriptionimage,\n uploadIcon,\n colouredDelete,\n plusIcon,\n deletealert,\n threeDots,\n clipboard,\n contextclose,\n contextreport,\n rename,\n share,\n uploadpopupbutton,\n polparty\n\n}\n\nexport default assets;\n\n\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t & {\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tlabel?: any;\n\tfontSize?: keyof typeof fontSizes;\n\tfontWeight?: keyof typeof fontWeights;\n\tlineHeight?: keyof typeof lineHeights;\n\ttextColor?: keyof typeof textColors;\n\tclassName?: string;\n\tisSpan?: boolean;\n};\n\nexport const Typography: React.FC = ({\n\tfontSize = 'fontSize12',\n\tfontWeight = 'regular',\n\tlineHeight = 'base',\n\ttextColor = 'black',\n\tclassName,\n\tisSpan = false,\n\t...props\n}) => {\n\treturn (\n\t\t<>\n\t\t\t{isSpan === false ? (\n\t\t\t\t\t
\n\t\t\t\t\t\t{props.label}\n\t\t\t\t\t
\n\t\t\t) : (\n\t\t\t\t\n\t\t\t\t\t{props.label}\n\t\t\t\t\n\t\t\t)}\n\t\t\n\t);\n};\n","import React from 'react';\nimport { useToast } from '@shared/atoms/toast/ToastContext';\nimport './Toast.scss';\nimport assets from '@assets/assets';\nimport { Typography } from '../typography/TypographyAtom';\n\ntype ToastType = 'toastError' | 'toastSuccess' | 'toastWarning' | 'toastInfo';\n\nconst getToastImage = (type: ToastType) => {\n switch (type) {\n case 'toastError':\n return assets.error;\n case 'toastSuccess':\n return assets.success;\n case 'toastWarning':\n return assets.warning;\n case 'toastInfo':\n return assets.info;\n default:\n return '';\n }\n};\n\nconst ToastContainer: React.FC = () => {\n const { toasts, removeToast } = useToast();\n\n return (\n
\n {toasts.length > 0 && toasts.map((toast) => (\n
\n \n \n removeToast(toast.id)}\n />\n
\n ))}\n
\n );\n};\n\nexport default ToastContainer;\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses, toKebabCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => {\n return createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n );\n }\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),\n ...props\n })\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M5 12h14\", key: \"1ays0h\" }],\n [\"path\", { d: \"m12 5 7 7-7 7\", key: \"xquz4c\" }]\n];\nconst ArrowRight = createLucideIcon(\"ArrowRight\", __iconNode);\n\nexport { __iconNode, ArrowRight as default };\n//# sourceMappingURL=arrow-right.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526\",\n key: \"1yiouv\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"8\", r: \"6\", key: \"1vp47v\" }]\n];\nconst Award = createLucideIcon(\"Award\", __iconNode);\n\nexport { __iconNode, Award as default };\n//# sourceMappingURL=award.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\",\n key: \"3c2336\"\n }\n ],\n [\"path\", { d: \"m9 12 2 2 4-4\", key: \"dzmm74\" }]\n];\nconst BadgeCheck = createLucideIcon(\"BadgeCheck\", __iconNode);\n\nexport { __iconNode, BadgeCheck as default };\n//# sourceMappingURL=badge-check.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M12 7v14\", key: \"1akyts\" }],\n [\n \"path\",\n {\n d: \"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z\",\n key: \"ruj8y\"\n }\n ]\n];\nconst BookOpen = createLucideIcon(\"BookOpen\", __iconNode);\n\nexport { __iconNode, BookOpen as default };\n//# sourceMappingURL=book-open.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z\",\n key: \"l5xja\"\n }\n ],\n [\n \"path\",\n {\n d: \"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z\",\n key: \"ep3f8r\"\n }\n ],\n [\"path\", { d: \"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4\", key: \"1p4c4q\" }],\n [\"path\", { d: \"M17.599 6.5a3 3 0 0 0 .399-1.375\", key: \"tmeiqw\" }],\n [\"path\", { d: \"M6.003 5.125A3 3 0 0 0 6.401 6.5\", key: \"105sqy\" }],\n [\"path\", { d: \"M3.477 10.896a4 4 0 0 1 .585-.396\", key: \"ql3yin\" }],\n [\"path\", { d: \"M19.938 10.5a4 4 0 0 1 .585.396\", key: \"1qfode\" }],\n [\"path\", { d: \"M6 18a4 4 0 0 1-1.967-.516\", key: \"2e4loj\" }],\n [\"path\", { d: \"M19.967 17.484A4 4 0 0 1 18 18\", key: \"159ez6\" }]\n];\nconst Brain = createLucideIcon(\"Brain\", __iconNode);\n\nexport { __iconNode, Brain as default };\n//# sourceMappingURL=brain.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M12 12h.01\", key: \"1mp3jc\" }],\n [\"path\", { d: \"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2\", key: \"1ksdt3\" }],\n [\"path\", { d: \"M22 13a18.15 18.15 0 0 1-20 0\", key: \"12hx5q\" }],\n [\"rect\", { width: \"20\", height: \"14\", x: \"2\", y: \"6\", rx: \"2\", key: \"i6l2r4\" }]\n];\nconst BriefcaseBusiness = createLucideIcon(\"BriefcaseBusiness\", __iconNode);\n\nexport { __iconNode, BriefcaseBusiness as default };\n//# sourceMappingURL=briefcase-business.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16\", key: \"jecpp\" }],\n [\"rect\", { width: \"20\", height: \"14\", x: \"2\", y: \"6\", rx: \"2\", key: \"i6l2r4\" }]\n];\nconst Briefcase = createLucideIcon(\"Briefcase\", __iconNode);\n\nexport { __iconNode, Briefcase as default };\n//# sourceMappingURL=briefcase.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"16\", height: \"20\", x: \"4\", y: \"2\", rx: \"2\", ry: \"2\", key: \"76otgf\" }],\n [\"path\", { d: \"M9 22v-4h6v4\", key: \"r93iot\" }],\n [\"path\", { d: \"M8 6h.01\", key: \"1dz90k\" }],\n [\"path\", { d: \"M16 6h.01\", key: \"1x0f13\" }],\n [\"path\", { d: \"M12 6h.01\", key: \"1vi96p\" }],\n [\"path\", { d: \"M12 10h.01\", key: \"1nrarc\" }],\n [\"path\", { d: \"M12 14h.01\", key: \"1etili\" }],\n [\"path\", { d: \"M16 10h.01\", key: \"1m94wz\" }],\n [\"path\", { d: \"M16 14h.01\", key: \"1gbofw\" }],\n [\"path\", { d: \"M8 10h.01\", key: \"19clt8\" }],\n [\"path\", { d: \"M8 14h.01\", key: \"6423bh\" }]\n];\nconst Building = createLucideIcon(\"Building\", __iconNode);\n\nexport { __iconNode, Building as default };\n//# sourceMappingURL=building.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M8 2v4\", key: \"1cmpym\" }],\n [\"path\", { d: \"M16 2v4\", key: \"4m81vk\" }],\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"4\", rx: \"2\", key: \"1hopcy\" }],\n [\"path\", { d: \"M3 10h18\", key: \"8toen8\" }]\n];\nconst Calendar = createLucideIcon(\"Calendar\", __iconNode);\n\nexport { __iconNode, Calendar as default };\n//# sourceMappingURL=calendar.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z\",\n key: \"1tc9qg\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"13\", r: \"3\", key: \"1vg3eu\" }]\n];\nconst Camera = createLucideIcon(\"Camera\", __iconNode);\n\nexport { __iconNode, Camera as default };\n//# sourceMappingURL=camera.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M3 3v16a2 2 0 0 0 2 2h16\", key: \"c24i48\" }],\n [\"path\", { d: \"m19 9-5 5-4-4-3 3\", key: \"2osh9i\" }]\n];\nconst ChartLine = createLucideIcon(\"ChartLine\", __iconNode);\n\nexport { __iconNode, ChartLine as default };\n//# sourceMappingURL=chart-line.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"M20 6 9 17l-5-5\", key: \"1gmf2c\" }]];\nconst Check = createLucideIcon(\"Check\", __iconNode);\n\nexport { __iconNode, Check as default };\n//# sourceMappingURL=check.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m6 9 6 6 6-6\", key: \"qrunsl\" }]];\nconst ChevronDown = createLucideIcon(\"ChevronDown\", __iconNode);\n\nexport { __iconNode, ChevronDown as default };\n//# sourceMappingURL=chevron-down.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m15 18-6-6 6-6\", key: \"1wnfg3\" }]];\nconst ChevronLeft = createLucideIcon(\"ChevronLeft\", __iconNode);\n\nexport { __iconNode, ChevronLeft as default };\n//# sourceMappingURL=chevron-left.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m9 18 6-6-6-6\", key: \"mthhwq\" }]];\nconst ChevronRight = createLucideIcon(\"ChevronRight\", __iconNode);\n\nexport { __iconNode, ChevronRight as default };\n//# sourceMappingURL=chevron-right.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [[\"path\", { d: \"m18 15-6-6-6 6\", key: \"153udz\" }]];\nconst ChevronUp = createLucideIcon(\"ChevronUp\", __iconNode);\n\nexport { __iconNode, ChevronUp as default };\n//# sourceMappingURL=chevron-up.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"8\", y2: \"12\", key: \"1pkeuh\" }],\n [\"line\", { x1: \"12\", x2: \"12.01\", y1: \"16\", y2: \"16\", key: \"4dfq90\" }]\n];\nconst CircleAlert = createLucideIcon(\"CircleAlert\", __iconNode);\n\nexport { __iconNode, CircleAlert as default };\n//# sourceMappingURL=circle-alert.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M21.801 10A10 10 0 1 1 17 3.335\", key: \"yps3ct\" }],\n [\"path\", { d: \"m9 11 3 3L22 4\", key: \"1pflzl\" }]\n];\nconst CircleCheckBig = createLucideIcon(\"CircleCheckBig\", __iconNode);\n\nexport { __iconNode, CircleCheckBig as default };\n//# sourceMappingURL=circle-check-big.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"polyline\", { points: \"12 6 12 12 16 14\", key: \"68esgv\" }]\n];\nconst Clock = createLucideIcon(\"Clock\", __iconNode);\n\nexport { __iconNode, Clock as default };\n//# sourceMappingURL=clock.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M10 2v2\", key: \"7u0qdc\" }],\n [\"path\", { d: \"M14 2v2\", key: \"6buw04\" }],\n [\n \"path\",\n {\n d: \"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1\",\n key: \"pwadti\"\n }\n ],\n [\"path\", { d: \"M6 2v2\", key: \"colzsn\" }]\n];\nconst Coffee = createLucideIcon(\"Coffee\", __iconNode);\n\nexport { __iconNode, Coffee as default };\n//# sourceMappingURL=coffee.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"20\", height: \"14\", x: \"2\", y: \"5\", rx: \"2\", key: \"ynyp8z\" }],\n [\"line\", { x1: \"2\", x2: \"22\", y1: \"10\", y2: \"10\", key: \"1b3vmo\" }]\n];\nconst CreditCard = createLucideIcon(\"CreditCard\", __iconNode);\n\nexport { __iconNode, CreditCard as default };\n//# sourceMappingURL=credit-card.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\",\n key: \"1nclc0\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }]\n];\nconst Eye = createLucideIcon(\"Eye\", __iconNode);\n\nexport { __iconNode, Eye as default };\n//# sourceMappingURL=eye.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { x: \"3\", y: \"8\", width: \"18\", height: \"4\", rx: \"1\", key: \"bkv52\" }],\n [\"path\", { d: \"M12 8v13\", key: \"1c76mn\" }],\n [\"path\", { d: \"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7\", key: \"6wjy6b\" }],\n [\n \"path\",\n {\n d: \"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5\",\n key: \"1ihvrl\"\n }\n ]\n];\nconst Gift = createLucideIcon(\"Gift\", __iconNode);\n\nexport { __iconNode, Gift as default };\n//# sourceMappingURL=gift.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"line\", { x1: \"4\", x2: \"20\", y1: \"12\", y2: \"12\", key: \"1e0a9i\" }],\n [\"line\", { x1: \"4\", x2: \"20\", y1: \"6\", y2: \"6\", key: \"1owob3\" }],\n [\"line\", { x1: \"4\", x2: \"20\", y1: \"18\", y2: \"18\", key: \"yk5zj1\" }]\n];\nconst Menu = createLucideIcon(\"Menu\", __iconNode);\n\nexport { __iconNode, Menu as default };\n//# sourceMappingURL=menu.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"20\", height: \"14\", x: \"2\", y: \"3\", rx: \"2\", key: \"48i651\" }],\n [\"line\", { x1: \"8\", x2: \"16\", y1: \"21\", y2: \"21\", key: \"1svkeh\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"17\", y2: \"21\", key: \"vw1qmm\" }]\n];\nconst Monitor = createLucideIcon(\"Monitor\", __iconNode);\n\nexport { __iconNode, Monitor as default };\n//# sourceMappingURL=monitor.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\", key: \"v9h5vc\" }],\n [\"path\", { d: \"M21 3v5h-5\", key: \"1q7to0\" }],\n [\"path\", { d: \"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\", key: \"3uifl3\" }],\n [\"path\", { d: \"M8 16H3v5\", key: \"1cv678\" }]\n];\nconst RefreshCw = createLucideIcon(\"RefreshCw\", __iconNode);\n\nexport { __iconNode, RefreshCw as default };\n//# sourceMappingURL=refresh-cw.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"18\", cy: \"5\", r: \"3\", key: \"gq8acd\" }],\n [\"circle\", { cx: \"6\", cy: \"12\", r: \"3\", key: \"w7nqdw\" }],\n [\"circle\", { cx: \"18\", cy: \"19\", r: \"3\", key: \"1xt0gg\" }],\n [\"line\", { x1: \"8.59\", x2: \"15.42\", y1: \"13.51\", y2: \"17.49\", key: \"47mynk\" }],\n [\"line\", { x1: \"15.41\", x2: \"8.59\", y1: \"6.51\", y2: \"10.49\", key: \"1n3mei\" }]\n];\nconst Share2 = createLucideIcon(\"Share2\", __iconNode);\n\nexport { __iconNode, Share2 as default };\n//# sourceMappingURL=share-2.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8\", key: \"1b2hhj\" }],\n [\"polyline\", { points: \"16 6 12 2 8 6\", key: \"m901s6\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"2\", y2: \"15\", key: \"1p0rca\" }]\n];\nconst Share = createLucideIcon(\"Share\", __iconNode);\n\nexport { __iconNode, Share as default };\n//# sourceMappingURL=share.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\",\n key: \"oel41y\"\n }\n ]\n];\nconst Shield = createLucideIcon(\"Shield\", __iconNode);\n\nexport { __iconNode, Shield as default };\n//# sourceMappingURL=shield.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"14\", height: \"20\", x: \"5\", y: \"2\", rx: \"2\", ry: \"2\", key: \"1yt0o3\" }],\n [\"path\", { d: \"M12 18h.01\", key: \"mhygvu\" }]\n];\nconst Smartphone = createLucideIcon(\"Smartphone\", __iconNode);\n\nexport { __iconNode, Smartphone as default };\n//# sourceMappingURL=smartphone.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\",\n key: \"r04s7s\"\n }\n ]\n];\nconst Star = createLucideIcon(\"Star\", __iconNode);\n\nexport { __iconNode, Star as default };\n//# sourceMappingURL=star.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"16\", height: \"20\", x: \"4\", y: \"2\", rx: \"2\", ry: \"2\", key: \"76otgf\" }],\n [\"line\", { x1: \"12\", x2: \"12.01\", y1: \"18\", y2: \"18\", key: \"1dp563\" }]\n];\nconst Tablet = createLucideIcon(\"Tablet\", __iconNode);\n\nexport { __iconNode, Tablet as default };\n//# sourceMappingURL=tablet.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"6\", key: \"1vlfrh\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"2\", key: \"1c9p78\" }]\n];\nconst Target = createLucideIcon(\"Target\", __iconNode);\n\nexport { __iconNode, Target as default };\n//# sourceMappingURL=target.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n [\"path\", { d: \"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\", key: \"4alrt4\" }],\n [\"path\", { d: \"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\", key: \"v07s0e\" }],\n [\"line\", { x1: \"10\", x2: \"10\", y1: \"11\", y2: \"17\", key: \"1uufr5\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"11\", y2: \"17\", key: \"xtxkd\" }]\n];\nconst Trash2 = createLucideIcon(\"Trash2\", __iconNode);\n\nexport { __iconNode, Trash2 as default };\n//# sourceMappingURL=trash-2.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"polyline\", { points: \"22 7 13.5 15.5 8.5 10.5 2 17\", key: \"126l90\" }],\n [\"polyline\", { points: \"16 7 22 7 22 13\", key: \"kwv8wd\" }]\n];\nconst TrendingUp = createLucideIcon(\"TrendingUp\", __iconNode);\n\nexport { __iconNode, TrendingUp as default };\n//# sourceMappingURL=trending-up.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n [\"polyline\", { points: \"17 8 12 3 7 8\", key: \"t8dd8p\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"3\", y2: \"15\", key: \"widbto\" }]\n];\nconst Upload = createLucideIcon(\"Upload\", __iconNode);\n\nexport { __iconNode, Upload as default };\n//# sourceMappingURL=upload.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\", key: \"975kel\" }],\n [\"circle\", { cx: \"12\", cy: \"7\", r: \"4\", key: \"17ys0d\" }]\n];\nconst User = createLucideIcon(\"User\", __iconNode);\n\nexport { __iconNode, User as default };\n//# sourceMappingURL=user.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\", key: \"1yyitq\" }],\n [\"circle\", { cx: \"9\", cy: \"7\", r: \"4\", key: \"nufk8\" }],\n [\"path\", { d: \"M22 21v-2a4 4 0 0 0-3-3.87\", key: \"kshegd\" }],\n [\"path\", { d: \"M16 3.13a4 4 0 0 1 0 7.75\", key: \"1da9ce\" }]\n];\nconst Users = createLucideIcon(\"Users\", __iconNode);\n\nexport { __iconNode, Users as default };\n//# sourceMappingURL=users.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M18 6 6 18\", key: \"1bl5f8\" }],\n [\"path\", { d: \"m6 6 12 12\", key: \"d8bk6v\" }]\n];\nconst X = createLucideIcon(\"X\", __iconNode);\n\nexport { __iconNode, X as default };\n//# sourceMappingURL=x.js.map\n","/**\n * @license lucide-react v0.474.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\",\n key: \"1xq2db\"\n }\n ]\n];\nconst Zap = createLucideIcon(\"Zap\", __iconNode);\n\nexport { __iconNode, Zap as default };\n//# sourceMappingURL=zap.js.map\n","import React, { useState, ChangeEvent } from 'react';\nimport { Eye, Share2, Upload, Trash2, Monitor, Smartphone, Tablet, Share } from 'lucide-react';\n\ninterface PollOption {\n imageUrl: string | ArrayBuffer | null;\n title: string;\n description: string;\n file: File | null;\n}\n\nconst TitleInput: React.FC<{\n value: string;\n onChange: (value: string) => void;\n}> = React.memo(({ value, onChange }) => (\n onChange(e.target.value)}\n className=\"text-xl font-medium focus:outline-none\"\n placeholder=\"Untitled Polls\"\n />\n));\n\nconst DescriptionInput: React.FC<{\n value: string;\n onChange: (value: string) => void;\n}> = React.memo(({ value, onChange }) => (\n onChange(e.target.value)}\n placeholder=\"Description (optional)\"\n className=\"w-full h-24 p-2 border rounded-lg mb-6\"\n />\n));\n\nconst PollOptionInput: React.FC<{\n option: PollOption;\n index: number;\n onEdit: (index: number, field: keyof PollOption, value: string) => void;\n onImageUpload: (index: number, event: ChangeEvent) => void;\n onImageRemove: (index: number) => void;\n}> = React.memo(({ option, index, onEdit, onImageUpload, onImageRemove }) => (\n
\n
\n {option.imageUrl ? (\n
\n {`Option\n onImageRemove(index)}\n >\n ×\n \n
\n ) : (\n
\n \n onImageUpload(index, e)}\n />\n
\n )}\n
\n onEdit(index, 'title', e.target.value)}\n placeholder={`Title ${index + 1} (Optional)`}\n className=\"w-full p-2 border rounded-lg mb-2\"\n />\n onEdit(index, 'description', e.target.value)}\n placeholder={`Description ${index + 1} (Optional)`}\n className=\"w-full p-2 border rounded-lg\"\n />\n
\n));\n\nconst EditMode: React.FC<{\n pollTitle: string;\n setPollTitle: (value: string) => void;\n pollDescription: string;\n setPollDescription: (value: string) => void;\n pollOptions: PollOption[];\n setPollOptions: (options: PollOption[]) => void;\n handleImageUpload: (index: number, event: ChangeEvent) => void;\n editOption: (index: number, field: keyof PollOption, value: string) => void;\n addOption: () => void;\n deleteOption: (index: number) => void;\n setMode: (mode: 'edit' | 'preview') => void;\n}> = React.memo(({ \n pollTitle, \n setPollTitle, \n pollDescription, \n setPollDescription, \n pollOptions, \n setPollOptions,\n handleImageUpload, \n editOption, \n addOption,\n deleteOption, \n setMode \n}) => (\n
\n
\n \n
\n \n \n
\n
\n\n
\n
\n \n\n {pollOptions.map((option, index) => (\n
\n {\n const newOptions = [...pollOptions];\n newOptions[index] = { ...newOptions[index], imageUrl: null, file: null };\n setPollOptions(newOptions);\n }}\n />\n {pollOptions.length > 2 && (\n deleteOption(index)}\n className=\"absolute top-2 right-2 p-2 text-red-500 hover:text-red-700\"\n >\n \n \n )}\n
\n ))}\n\n \n
\n
\n
\n));\n\nconst PreviewMode: React.FC<{ \n pollTitle: string;\n pollDescription: string;\n pollOptions: PollOption[];\n selectedOption: number | null;\n setSelectedOption: (index: number | null) => void;\n setMode: (mode: 'edit' | 'preview') => void;\n deviceView: 'desktop' | 'mobile' | 'tablet';\n setDeviceView: (view: 'desktop' | 'mobile' | 'tablet') => void;\n}> = React.memo(({\n pollTitle,\n pollDescription,\n pollOptions,\n selectedOption,\n setSelectedOption,\n setMode,\n deviceView,\n setDeviceView\n}) => (\n
\n {/* Preview Controls */}\n
\n
\n setMode('edit')}\n >\n Design View\n \n
\n \n
\n } active={deviceView === 'desktop'} onClick={() => setDeviceView('desktop')} />\n } active={deviceView === 'mobile'} onClick={() => setDeviceView('mobile')} />\n } active={deviceView === 'tablet'} onClick={() => setDeviceView('tablet')} />\n
\n
\n\n {/* Preview Content */}\n
\n
\n

\n {pollTitle || 'Please type your poll question here'}\n

\n \n {pollDescription && (\n

\n {pollDescription}\n

\n )}\n\n
\n {pollOptions.map((option, index) => (\n
setSelectedOption(index)}\n >\n
\n {option.imageUrl ? (\n {option.title}\n ) : (\n
\n )}\n
\n
{option.title || `Option ${index + 1}`}
\n
{option.description || 'Description will go here'}
\n
\n
\n
\n {selectedOption === index && (\n
\n )}\n
\n
\n ))}\n
\n\n
\n
\n \n \n
\n \n
\n
\n\n {/* Branding Footer */}\n
\n
\n \"QuickpollIndia\"\n Quickpollindia\n
\n
Powered by quickpollindia.com
\n
\n
\n
\n));\n\nconst DeviceButton: React.FC<{ icon: React.ReactElement; active: boolean; onClick: () => void }> = ({ icon, active, onClick }) => (\n \n {React.cloneElement(icon, { className: 'w-5 h-5' })}\n \n);\n\nconst PollEditorWithPreview: React.FC = () => {\n const [mode, setMode] = useState<'edit' | 'preview'>('edit');\n const [deviceView, setDeviceView] = useState<'desktop' | 'mobile' | 'tablet'>('desktop');\n const [pollTitle, setPollTitle] = useState('');\n const [pollDescription, setPollDescription] = useState('');\n const [pollOptions, setPollOptions] = useState([\n { imageUrl: null, title: '', description: '', file: null },\n { imageUrl: null, title: '', description: '', file: null }\n ]);\n const [selectedOption, setSelectedOption] = useState(null);\n\n const handleImageUpload = (index: number, event: ChangeEvent) => {\n const file = event.target.files?.[0];\n if (file) {\n const reader = new FileReader();\n reader.onloadend = () => {\n const newOptions = [...pollOptions];\n newOptions[index] = {\n ...newOptions[index],\n imageUrl: reader.result,\n file: file\n };\n setPollOptions(newOptions);\n };\n reader.readAsDataURL(file);\n }\n };\n\n const deleteOption = (index: number) => {\n if (pollOptions.length > 2) {\n setPollOptions(pollOptions.filter((_, i) => i !== index));\n }\n };\n\n const editOption = (index: number, field: keyof PollOption, value: string) => {\n const newOptions = [...pollOptions];\n newOptions[index] = {\n ...newOptions[index],\n [field]: value\n };\n setPollOptions(newOptions);\n };\n\n const addOption = () => {\n setPollOptions([...pollOptions, { imageUrl: null, title: '', description: '', file: null }]);\n };\n\n return (\n
\n {mode === 'preview' ? (\n \n ) : (\n \n )}\n
\n );\n};\n\nexport default PollEditorWithPreview;","// src/utils/formatProdErrorMessage.ts\nfunction formatProdErrorMessage(code) {\n return `Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;\n}\n\n// src/utils/symbol-observable.ts\nvar $$observable = /* @__PURE__ */ (() => typeof Symbol === \"function\" && Symbol.observable || \"@@observable\")();\nvar symbol_observable_default = $$observable;\n\n// src/utils/actionTypes.ts\nvar randomString = () => Math.random().toString(36).substring(7).split(\"\").join(\".\");\nvar ActionTypes = {\n INIT: `@@redux/INIT${/* @__PURE__ */ randomString()}`,\n REPLACE: `@@redux/REPLACE${/* @__PURE__ */ randomString()}`,\n PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`\n};\nvar actionTypes_default = ActionTypes;\n\n// src/utils/isPlainObject.ts\nfunction isPlainObject(obj) {\n if (typeof obj !== \"object\" || obj === null)\n return false;\n let proto = obj;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(obj) === proto || Object.getPrototypeOf(obj) === null;\n}\n\n// src/utils/kindOf.ts\nfunction miniKindOf(val) {\n if (val === void 0)\n return \"undefined\";\n if (val === null)\n return \"null\";\n const type = typeof val;\n switch (type) {\n case \"boolean\":\n case \"string\":\n case \"number\":\n case \"symbol\":\n case \"function\": {\n return type;\n }\n }\n if (Array.isArray(val))\n return \"array\";\n if (isDate(val))\n return \"date\";\n if (isError(val))\n return \"error\";\n const constructorName = ctorName(val);\n switch (constructorName) {\n case \"Symbol\":\n case \"Promise\":\n case \"WeakMap\":\n case \"WeakSet\":\n case \"Map\":\n case \"Set\":\n return constructorName;\n }\n return Object.prototype.toString.call(val).slice(8, -1).toLowerCase().replace(/\\s/g, \"\");\n}\nfunction ctorName(val) {\n return typeof val.constructor === \"function\" ? val.constructor.name : null;\n}\nfunction isError(val) {\n return val instanceof Error || typeof val.message === \"string\" && val.constructor && typeof val.constructor.stackTraceLimit === \"number\";\n}\nfunction isDate(val) {\n if (val instanceof Date)\n return true;\n return typeof val.toDateString === \"function\" && typeof val.getDate === \"function\" && typeof val.setDate === \"function\";\n}\nfunction kindOf(val) {\n let typeOfVal = typeof val;\n if (process.env.NODE_ENV !== \"production\") {\n typeOfVal = miniKindOf(val);\n }\n return typeOfVal;\n}\n\n// src/createStore.ts\nfunction createStore(reducer, preloadedState, enhancer) {\n if (typeof reducer !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : `Expected the root reducer to be a function. Instead, received: '${kindOf(reducer)}'`);\n }\n if (typeof preloadedState === \"function\" && typeof enhancer === \"function\" || typeof enhancer === \"function\" && typeof arguments[3] === \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : \"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.\");\n }\n if (typeof preloadedState === \"function\" && typeof enhancer === \"undefined\") {\n enhancer = preloadedState;\n preloadedState = void 0;\n }\n if (typeof enhancer !== \"undefined\") {\n if (typeof enhancer !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : `Expected the enhancer to be a function. Instead, received: '${kindOf(enhancer)}'`);\n }\n return enhancer(createStore)(reducer, preloadedState);\n }\n let currentReducer = reducer;\n let currentState = preloadedState;\n let currentListeners = /* @__PURE__ */ new Map();\n let nextListeners = currentListeners;\n let listenerIdCounter = 0;\n let isDispatching = false;\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = /* @__PURE__ */ new Map();\n currentListeners.forEach((listener, key) => {\n nextListeners.set(key, listener);\n });\n }\n }\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : \"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.\");\n }\n return currentState;\n }\n function subscribe(listener) {\n if (typeof listener !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : `Expected the listener to be a function. Instead, received: '${kindOf(listener)}'`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : \"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.\");\n }\n let isSubscribed = true;\n ensureCanMutateNextListeners();\n const listenerId = listenerIdCounter++;\n nextListeners.set(listenerId, listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : \"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.\");\n }\n isSubscribed = false;\n ensureCanMutateNextListeners();\n nextListeners.delete(listenerId);\n currentListeners = null;\n };\n }\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : `Actions must be plain objects. Instead, the actual type was: '${kindOf(action)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);\n }\n if (typeof action.type === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n if (typeof action.type !== \"string\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(17) : `Action \"type\" property must be a string. Instead, the actual type was: '${kindOf(action.type)}'. Value was: '${action.type}' (stringified)`);\n }\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : \"Reducers may not dispatch actions.\");\n }\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n const listeners = currentListeners = nextListeners;\n listeners.forEach((listener) => {\n listener();\n });\n return action;\n }\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : `Expected the nextReducer to be a function. Instead, received: '${kindOf(nextReducer)}`);\n }\n currentReducer = nextReducer;\n dispatch({\n type: actionTypes_default.REPLACE\n });\n }\n function observable() {\n const outerSubscribe = subscribe;\n return {\n /**\n * The minimal observable subscription method.\n * @param observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe(observer) {\n if (typeof observer !== \"object\" || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : `Expected the observer to be an object. Instead, received: '${kindOf(observer)}'`);\n }\n function observeState() {\n const observerAsObserver = observer;\n if (observerAsObserver.next) {\n observerAsObserver.next(getState());\n }\n }\n observeState();\n const unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe\n };\n },\n [symbol_observable_default]() {\n return this;\n }\n };\n }\n dispatch({\n type: actionTypes_default.INIT\n });\n const store = {\n dispatch,\n subscribe,\n getState,\n replaceReducer,\n [symbol_observable_default]: observable\n };\n return store;\n}\nfunction legacy_createStore(reducer, preloadedState, enhancer) {\n return createStore(reducer, preloadedState, enhancer);\n}\n\n// src/utils/warning.ts\nfunction warning(message) {\n if (typeof console !== \"undefined\" && typeof console.error === \"function\") {\n console.error(message);\n }\n try {\n throw new Error(message);\n } catch (e) {\n }\n}\n\n// src/combineReducers.ts\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n const reducerKeys = Object.keys(reducers);\n const argumentName = action && action.type === actionTypes_default.INIT ? \"preloadedState argument passed to createStore\" : \"previous state received by the reducer\";\n if (reducerKeys.length === 0) {\n return \"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.\";\n }\n if (!isPlainObject(inputState)) {\n return `The ${argumentName} has unexpected type of \"${kindOf(inputState)}\". Expected argument to be an object with the following keys: \"${reducerKeys.join('\", \"')}\"`;\n }\n const unexpectedKeys = Object.keys(inputState).filter((key) => !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]);\n unexpectedKeys.forEach((key) => {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === actionTypes_default.REPLACE)\n return;\n if (unexpectedKeys.length > 0) {\n return `Unexpected ${unexpectedKeys.length > 1 ? \"keys\" : \"key\"} \"${unexpectedKeys.join('\", \"')}\" found in ${argumentName}. Expected to find one of the known reducer keys instead: \"${reducerKeys.join('\", \"')}\". Unexpected keys will be ignored.`;\n }\n}\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach((key) => {\n const reducer = reducers[key];\n const initialState = reducer(void 0, {\n type: actionTypes_default.INIT\n });\n if (typeof initialState === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : `The slice reducer for key \"${key}\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);\n }\n if (typeof reducer(void 0, {\n type: actionTypes_default.PROBE_UNKNOWN_ACTION()\n }) === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : `The slice reducer for key \"${key}\" returned undefined when probed with a random type. Don't try to handle '${actionTypes_default.INIT}' or other actions in \"redux/*\" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);\n }\n });\n}\nfunction combineReducers(reducers) {\n const reducerKeys = Object.keys(reducers);\n const finalReducers = {};\n for (let i = 0; i < reducerKeys.length; i++) {\n const key = reducerKeys[i];\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof reducers[key] === \"undefined\") {\n warning(`No reducer provided for key \"${key}\"`);\n }\n }\n if (typeof reducers[key] === \"function\") {\n finalReducers[key] = reducers[key];\n }\n }\n const finalReducerKeys = Object.keys(finalReducers);\n let unexpectedKeyCache;\n if (process.env.NODE_ENV !== \"production\") {\n unexpectedKeyCache = {};\n }\n let shapeAssertionError;\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n return function combination(state = {}, action) {\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n if (process.env.NODE_ENV !== \"production\") {\n const warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n let hasChanged = false;\n const nextState = {};\n for (let i = 0; i < finalReducerKeys.length; i++) {\n const key = finalReducerKeys[i];\n const reducer = finalReducers[key];\n const previousStateForKey = state[key];\n const nextStateForKey = reducer(previousStateForKey, action);\n if (typeof nextStateForKey === \"undefined\") {\n const actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : `When called with an action of type ${actionType ? `\"${String(actionType)}\"` : \"(unknown type)\"}, the slice reducer for key \"${key}\" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);\n }\n nextState[key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\n// src/bindActionCreators.ts\nfunction bindActionCreator(actionCreator, dispatch) {\n return function(...args) {\n return dispatch(actionCreator.apply(this, args));\n };\n}\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === \"function\") {\n return bindActionCreator(actionCreators, dispatch);\n }\n if (typeof actionCreators !== \"object\" || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : `bindActionCreators expected an object or a function, but instead received: '${kindOf(actionCreators)}'. Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?`);\n }\n const boundActionCreators = {};\n for (const key in actionCreators) {\n const actionCreator = actionCreators[key];\n if (typeof actionCreator === \"function\") {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n return boundActionCreators;\n}\n\n// src/compose.ts\nfunction compose(...funcs) {\n if (funcs.length === 0) {\n return (arg) => arg;\n }\n if (funcs.length === 1) {\n return funcs[0];\n }\n return funcs.reduce((a, b) => (...args) => a(b(...args)));\n}\n\n// src/applyMiddleware.ts\nfunction applyMiddleware(...middlewares) {\n return (createStore2) => (reducer, preloadedState) => {\n const store = createStore2(reducer, preloadedState);\n let dispatch = () => {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : \"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.\");\n };\n const middlewareAPI = {\n getState: store.getState,\n dispatch: (action, ...args) => dispatch(action, ...args)\n };\n const chain = middlewares.map((middleware) => middleware(middlewareAPI));\n dispatch = compose(...chain)(store.dispatch);\n return {\n ...store,\n dispatch\n };\n };\n}\n\n// src/utils/isAction.ts\nfunction isAction(action) {\n return isPlainObject(action) && \"type\" in action && typeof action.type === \"string\";\n}\nexport {\n actionTypes_default as __DO_NOT_USE__ActionTypes,\n applyMiddleware,\n bindActionCreators,\n combineReducers,\n compose,\n createStore,\n isAction,\n isPlainObject,\n legacy_createStore\n};\n//# sourceMappingURL=redux.mjs.map","// src/utils/env.ts\nvar NOTHING = Symbol.for(\"immer-nothing\");\nvar DRAFTABLE = Symbol.for(\"immer-draftable\");\nvar DRAFT_STATE = Symbol.for(\"immer-state\");\n\n// src/utils/errors.ts\nvar errors = process.env.NODE_ENV !== \"production\" ? [\n // All error codes, starting by 0:\n function(plugin) {\n return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \\`enable${plugin}()\\` when initializing your application.`;\n },\n function(thing) {\n return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${thing}'`;\n },\n \"This object has been frozen and should not be mutated\",\n function(data) {\n return \"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? \" + data;\n },\n \"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.\",\n \"Immer forbids circular references\",\n \"The first or second argument to `produce` must be a function\",\n \"The third argument to `produce` must be a function or undefined\",\n \"First argument to `createDraft` must be a plain object, an array, or an immerable object\",\n \"First argument to `finishDraft` must be a draft returned by `createDraft`\",\n function(thing) {\n return `'current' expects a draft, got: ${thing}`;\n },\n \"Object.defineProperty() cannot be used on an Immer draft\",\n \"Object.setPrototypeOf() cannot be used on an Immer draft\",\n \"Immer only supports deleting array indices\",\n \"Immer only supports setting array indices and the 'length' property\",\n function(thing) {\n return `'original' expects a draft, got: ${thing}`;\n }\n // Note: if more errors are added, the errorOffset in Patches.ts should be increased\n // See Patches.ts for additional errors\n] : [];\nfunction die(error, ...args) {\n if (process.env.NODE_ENV !== \"production\") {\n const e = errors[error];\n const msg = typeof e === \"function\" ? e.apply(null, args) : e;\n throw new Error(`[Immer] ${msg}`);\n }\n throw new Error(\n `[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`\n );\n}\n\n// src/utils/common.ts\nvar getPrototypeOf = Object.getPrototypeOf;\nfunction isDraft(value) {\n return !!value && !!value[DRAFT_STATE];\n}\nfunction isDraftable(value) {\n if (!value)\n return false;\n return isPlainObject(value) || Array.isArray(value) || !!value[DRAFTABLE] || !!value.constructor?.[DRAFTABLE] || isMap(value) || isSet(value);\n}\nvar objectCtorString = Object.prototype.constructor.toString();\nfunction isPlainObject(value) {\n if (!value || typeof value !== \"object\")\n return false;\n const proto = getPrototypeOf(value);\n if (proto === null) {\n return true;\n }\n const Ctor = Object.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n if (Ctor === Object)\n return true;\n return typeof Ctor == \"function\" && Function.toString.call(Ctor) === objectCtorString;\n}\nfunction original(value) {\n if (!isDraft(value))\n die(15, value);\n return value[DRAFT_STATE].base_;\n}\nfunction each(obj, iter) {\n if (getArchtype(obj) === 0 /* Object */) {\n Reflect.ownKeys(obj).forEach((key) => {\n iter(key, obj[key], obj);\n });\n } else {\n obj.forEach((entry, index) => iter(index, entry, obj));\n }\n}\nfunction getArchtype(thing) {\n const state = thing[DRAFT_STATE];\n return state ? state.type_ : Array.isArray(thing) ? 1 /* Array */ : isMap(thing) ? 2 /* Map */ : isSet(thing) ? 3 /* Set */ : 0 /* Object */;\n}\nfunction has(thing, prop) {\n return getArchtype(thing) === 2 /* Map */ ? thing.has(prop) : Object.prototype.hasOwnProperty.call(thing, prop);\n}\nfunction get(thing, prop) {\n return getArchtype(thing) === 2 /* Map */ ? thing.get(prop) : thing[prop];\n}\nfunction set(thing, propOrOldValue, value) {\n const t = getArchtype(thing);\n if (t === 2 /* Map */)\n thing.set(propOrOldValue, value);\n else if (t === 3 /* Set */) {\n thing.add(value);\n } else\n thing[propOrOldValue] = value;\n}\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\nfunction isMap(target) {\n return target instanceof Map;\n}\nfunction isSet(target) {\n return target instanceof Set;\n}\nfunction latest(state) {\n return state.copy_ || state.base_;\n}\nfunction shallowCopy(base, strict) {\n if (isMap(base)) {\n return new Map(base);\n }\n if (isSet(base)) {\n return new Set(base);\n }\n if (Array.isArray(base))\n return Array.prototype.slice.call(base);\n const isPlain = isPlainObject(base);\n if (strict === true || strict === \"class_only\" && !isPlain) {\n const descriptors = Object.getOwnPropertyDescriptors(base);\n delete descriptors[DRAFT_STATE];\n let keys = Reflect.ownKeys(descriptors);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const desc = descriptors[key];\n if (desc.writable === false) {\n desc.writable = true;\n desc.configurable = true;\n }\n if (desc.get || desc.set)\n descriptors[key] = {\n configurable: true,\n writable: true,\n // could live with !!desc.set as well here...\n enumerable: desc.enumerable,\n value: base[key]\n };\n }\n return Object.create(getPrototypeOf(base), descriptors);\n } else {\n const proto = getPrototypeOf(base);\n if (proto !== null && isPlain) {\n return { ...base };\n }\n const obj = Object.create(proto);\n return Object.assign(obj, base);\n }\n}\nfunction freeze(obj, deep = false) {\n if (isFrozen(obj) || isDraft(obj) || !isDraftable(obj))\n return obj;\n if (getArchtype(obj) > 1) {\n obj.set = obj.add = obj.clear = obj.delete = dontMutateFrozenCollections;\n }\n Object.freeze(obj);\n if (deep)\n Object.entries(obj).forEach(([key, value]) => freeze(value, true));\n return obj;\n}\nfunction dontMutateFrozenCollections() {\n die(2);\n}\nfunction isFrozen(obj) {\n return Object.isFrozen(obj);\n}\n\n// src/utils/plugins.ts\nvar plugins = {};\nfunction getPlugin(pluginKey) {\n const plugin = plugins[pluginKey];\n if (!plugin) {\n die(0, pluginKey);\n }\n return plugin;\n}\nfunction loadPlugin(pluginKey, implementation) {\n if (!plugins[pluginKey])\n plugins[pluginKey] = implementation;\n}\n\n// src/core/scope.ts\nvar currentScope;\nfunction getCurrentScope() {\n return currentScope;\n}\nfunction createScope(parent_, immer_) {\n return {\n drafts_: [],\n parent_,\n immer_,\n // Whenever the modified draft contains a draft from another scope, we\n // need to prevent auto-freezing so the unowned draft can be finalized.\n canAutoFreeze_: true,\n unfinalizedDrafts_: 0\n };\n}\nfunction usePatchesInScope(scope, patchListener) {\n if (patchListener) {\n getPlugin(\"Patches\");\n scope.patches_ = [];\n scope.inversePatches_ = [];\n scope.patchListener_ = patchListener;\n }\n}\nfunction revokeScope(scope) {\n leaveScope(scope);\n scope.drafts_.forEach(revokeDraft);\n scope.drafts_ = null;\n}\nfunction leaveScope(scope) {\n if (scope === currentScope) {\n currentScope = scope.parent_;\n }\n}\nfunction enterScope(immer2) {\n return currentScope = createScope(currentScope, immer2);\n}\nfunction revokeDraft(draft) {\n const state = draft[DRAFT_STATE];\n if (state.type_ === 0 /* Object */ || state.type_ === 1 /* Array */)\n state.revoke_();\n else\n state.revoked_ = true;\n}\n\n// src/core/finalize.ts\nfunction processResult(result, scope) {\n scope.unfinalizedDrafts_ = scope.drafts_.length;\n const baseDraft = scope.drafts_[0];\n const isReplaced = result !== void 0 && result !== baseDraft;\n if (isReplaced) {\n if (baseDraft[DRAFT_STATE].modified_) {\n revokeScope(scope);\n die(4);\n }\n if (isDraftable(result)) {\n result = finalize(scope, result);\n if (!scope.parent_)\n maybeFreeze(scope, result);\n }\n if (scope.patches_) {\n getPlugin(\"Patches\").generateReplacementPatches_(\n baseDraft[DRAFT_STATE].base_,\n result,\n scope.patches_,\n scope.inversePatches_\n );\n }\n } else {\n result = finalize(scope, baseDraft, []);\n }\n revokeScope(scope);\n if (scope.patches_) {\n scope.patchListener_(scope.patches_, scope.inversePatches_);\n }\n return result !== NOTHING ? result : void 0;\n}\nfunction finalize(rootScope, value, path) {\n if (isFrozen(value))\n return value;\n const state = value[DRAFT_STATE];\n if (!state) {\n each(\n value,\n (key, childValue) => finalizeProperty(rootScope, state, value, key, childValue, path)\n );\n return value;\n }\n if (state.scope_ !== rootScope)\n return value;\n if (!state.modified_) {\n maybeFreeze(rootScope, state.base_, true);\n return state.base_;\n }\n if (!state.finalized_) {\n state.finalized_ = true;\n state.scope_.unfinalizedDrafts_--;\n const result = state.copy_;\n let resultEach = result;\n let isSet2 = false;\n if (state.type_ === 3 /* Set */) {\n resultEach = new Set(result);\n result.clear();\n isSet2 = true;\n }\n each(\n resultEach,\n (key, childValue) => finalizeProperty(rootScope, state, result, key, childValue, path, isSet2)\n );\n maybeFreeze(rootScope, result, false);\n if (path && rootScope.patches_) {\n getPlugin(\"Patches\").generatePatches_(\n state,\n path,\n rootScope.patches_,\n rootScope.inversePatches_\n );\n }\n }\n return state.copy_;\n}\nfunction finalizeProperty(rootScope, parentState, targetObject, prop, childValue, rootPath, targetIsSet) {\n if (process.env.NODE_ENV !== \"production\" && childValue === targetObject)\n die(5);\n if (isDraft(childValue)) {\n const path = rootPath && parentState && parentState.type_ !== 3 /* Set */ && // Set objects are atomic since they have no keys.\n !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;\n const res = finalize(rootScope, childValue, path);\n set(targetObject, prop, res);\n if (isDraft(res)) {\n rootScope.canAutoFreeze_ = false;\n } else\n return;\n } else if (targetIsSet) {\n targetObject.add(childValue);\n }\n if (isDraftable(childValue) && !isFrozen(childValue)) {\n if (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) {\n return;\n }\n finalize(rootScope, childValue);\n if ((!parentState || !parentState.scope_.parent_) && typeof prop !== \"symbol\" && Object.prototype.propertyIsEnumerable.call(targetObject, prop))\n maybeFreeze(rootScope, childValue);\n }\n}\nfunction maybeFreeze(scope, value, deep = false) {\n if (!scope.parent_ && scope.immer_.autoFreeze_ && scope.canAutoFreeze_) {\n freeze(value, deep);\n }\n}\n\n// src/core/proxy.ts\nfunction createProxyProxy(base, parent) {\n const isArray = Array.isArray(base);\n const state = {\n type_: isArray ? 1 /* Array */ : 0 /* Object */,\n // Track which produce call this is associated with.\n scope_: parent ? parent.scope_ : getCurrentScope(),\n // True for both shallow and deep changes.\n modified_: false,\n // Used during finalization.\n finalized_: false,\n // Track which properties have been assigned (true) or deleted (false).\n assigned_: {},\n // The parent draft state.\n parent_: parent,\n // The base state.\n base_: base,\n // The base proxy.\n draft_: null,\n // set below\n // The base copy with any updated values.\n copy_: null,\n // Called by the `produce` function.\n revoke_: null,\n isManual_: false\n };\n let target = state;\n let traps = objectTraps;\n if (isArray) {\n target = [state];\n traps = arrayTraps;\n }\n const { revoke, proxy } = Proxy.revocable(target, traps);\n state.draft_ = proxy;\n state.revoke_ = revoke;\n return proxy;\n}\nvar objectTraps = {\n get(state, prop) {\n if (prop === DRAFT_STATE)\n return state;\n const source = latest(state);\n if (!has(source, prop)) {\n return readPropFromProto(state, source, prop);\n }\n const value = source[prop];\n if (state.finalized_ || !isDraftable(value)) {\n return value;\n }\n if (value === peek(state.base_, prop)) {\n prepareCopy(state);\n return state.copy_[prop] = createProxy(value, state);\n }\n return value;\n },\n has(state, prop) {\n return prop in latest(state);\n },\n ownKeys(state) {\n return Reflect.ownKeys(latest(state));\n },\n set(state, prop, value) {\n const desc = getDescriptorFromProto(latest(state), prop);\n if (desc?.set) {\n desc.set.call(state.draft_, value);\n return true;\n }\n if (!state.modified_) {\n const current2 = peek(latest(state), prop);\n const currentState = current2?.[DRAFT_STATE];\n if (currentState && currentState.base_ === value) {\n state.copy_[prop] = value;\n state.assigned_[prop] = false;\n return true;\n }\n if (is(value, current2) && (value !== void 0 || has(state.base_, prop)))\n return true;\n prepareCopy(state);\n markChanged(state);\n }\n if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'\n (value !== void 0 || prop in state.copy_) || // special case: NaN\n Number.isNaN(value) && Number.isNaN(state.copy_[prop]))\n return true;\n state.copy_[prop] = value;\n state.assigned_[prop] = true;\n return true;\n },\n deleteProperty(state, prop) {\n if (peek(state.base_, prop) !== void 0 || prop in state.base_) {\n state.assigned_[prop] = false;\n prepareCopy(state);\n markChanged(state);\n } else {\n delete state.assigned_[prop];\n }\n if (state.copy_) {\n delete state.copy_[prop];\n }\n return true;\n },\n // Note: We never coerce `desc.value` into an Immer draft, because we can't make\n // the same guarantee in ES5 mode.\n getOwnPropertyDescriptor(state, prop) {\n const owner = latest(state);\n const desc = Reflect.getOwnPropertyDescriptor(owner, prop);\n if (!desc)\n return desc;\n return {\n writable: true,\n configurable: state.type_ !== 1 /* Array */ || prop !== \"length\",\n enumerable: desc.enumerable,\n value: owner[prop]\n };\n },\n defineProperty() {\n die(11);\n },\n getPrototypeOf(state) {\n return getPrototypeOf(state.base_);\n },\n setPrototypeOf() {\n die(12);\n }\n};\nvar arrayTraps = {};\neach(objectTraps, (key, fn) => {\n arrayTraps[key] = function() {\n arguments[0] = arguments[0][0];\n return fn.apply(this, arguments);\n };\n});\narrayTraps.deleteProperty = function(state, prop) {\n if (process.env.NODE_ENV !== \"production\" && isNaN(parseInt(prop)))\n die(13);\n return arrayTraps.set.call(this, state, prop, void 0);\n};\narrayTraps.set = function(state, prop, value) {\n if (process.env.NODE_ENV !== \"production\" && prop !== \"length\" && isNaN(parseInt(prop)))\n die(14);\n return objectTraps.set.call(this, state[0], prop, value, state[0]);\n};\nfunction peek(draft, prop) {\n const state = draft[DRAFT_STATE];\n const source = state ? latest(state) : draft;\n return source[prop];\n}\nfunction readPropFromProto(state, source, prop) {\n const desc = getDescriptorFromProto(source, prop);\n return desc ? `value` in desc ? desc.value : (\n // This is a very special case, if the prop is a getter defined by the\n // prototype, we should invoke it with the draft as context!\n desc.get?.call(state.draft_)\n ) : void 0;\n}\nfunction getDescriptorFromProto(source, prop) {\n if (!(prop in source))\n return void 0;\n let proto = getPrototypeOf(source);\n while (proto) {\n const desc = Object.getOwnPropertyDescriptor(proto, prop);\n if (desc)\n return desc;\n proto = getPrototypeOf(proto);\n }\n return void 0;\n}\nfunction markChanged(state) {\n if (!state.modified_) {\n state.modified_ = true;\n if (state.parent_) {\n markChanged(state.parent_);\n }\n }\n}\nfunction prepareCopy(state) {\n if (!state.copy_) {\n state.copy_ = shallowCopy(\n state.base_,\n state.scope_.immer_.useStrictShallowCopy_\n );\n }\n}\n\n// src/core/immerClass.ts\nvar Immer2 = class {\n constructor(config) {\n this.autoFreeze_ = true;\n this.useStrictShallowCopy_ = false;\n /**\n * The `produce` function takes a value and a \"recipe function\" (whose\n * return value often depends on the base state). The recipe function is\n * free to mutate its first argument however it wants. All mutations are\n * only ever applied to a __copy__ of the base state.\n *\n * Pass only a function to create a \"curried producer\" which relieves you\n * from passing the recipe function every time.\n *\n * Only plain objects and arrays are made mutable. All other objects are\n * considered uncopyable.\n *\n * Note: This function is __bound__ to its `Immer` instance.\n *\n * @param {any} base - the initial state\n * @param {Function} recipe - function that receives a proxy of the base state as first argument and which can be freely modified\n * @param {Function} patchListener - optional function that will be called with all the patches produced here\n * @returns {any} a new state, or the initial state if nothing was modified\n */\n this.produce = (base, recipe, patchListener) => {\n if (typeof base === \"function\" && typeof recipe !== \"function\") {\n const defaultBase = recipe;\n recipe = base;\n const self = this;\n return function curriedProduce(base2 = defaultBase, ...args) {\n return self.produce(base2, (draft) => recipe.call(this, draft, ...args));\n };\n }\n if (typeof recipe !== \"function\")\n die(6);\n if (patchListener !== void 0 && typeof patchListener !== \"function\")\n die(7);\n let result;\n if (isDraftable(base)) {\n const scope = enterScope(this);\n const proxy = createProxy(base, void 0);\n let hasError = true;\n try {\n result = recipe(proxy);\n hasError = false;\n } finally {\n if (hasError)\n revokeScope(scope);\n else\n leaveScope(scope);\n }\n usePatchesInScope(scope, patchListener);\n return processResult(result, scope);\n } else if (!base || typeof base !== \"object\") {\n result = recipe(base);\n if (result === void 0)\n result = base;\n if (result === NOTHING)\n result = void 0;\n if (this.autoFreeze_)\n freeze(result, true);\n if (patchListener) {\n const p = [];\n const ip = [];\n getPlugin(\"Patches\").generateReplacementPatches_(base, result, p, ip);\n patchListener(p, ip);\n }\n return result;\n } else\n die(1, base);\n };\n this.produceWithPatches = (base, recipe) => {\n if (typeof base === \"function\") {\n return (state, ...args) => this.produceWithPatches(state, (draft) => base(draft, ...args));\n }\n let patches, inversePatches;\n const result = this.produce(base, recipe, (p, ip) => {\n patches = p;\n inversePatches = ip;\n });\n return [result, patches, inversePatches];\n };\n if (typeof config?.autoFreeze === \"boolean\")\n this.setAutoFreeze(config.autoFreeze);\n if (typeof config?.useStrictShallowCopy === \"boolean\")\n this.setUseStrictShallowCopy(config.useStrictShallowCopy);\n }\n createDraft(base) {\n if (!isDraftable(base))\n die(8);\n if (isDraft(base))\n base = current(base);\n const scope = enterScope(this);\n const proxy = createProxy(base, void 0);\n proxy[DRAFT_STATE].isManual_ = true;\n leaveScope(scope);\n return proxy;\n }\n finishDraft(draft, patchListener) {\n const state = draft && draft[DRAFT_STATE];\n if (!state || !state.isManual_)\n die(9);\n const { scope_: scope } = state;\n usePatchesInScope(scope, patchListener);\n return processResult(void 0, scope);\n }\n /**\n * Pass true to automatically freeze all copies created by Immer.\n *\n * By default, auto-freezing is enabled.\n */\n setAutoFreeze(value) {\n this.autoFreeze_ = value;\n }\n /**\n * Pass true to enable strict shallow copy.\n *\n * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.\n */\n setUseStrictShallowCopy(value) {\n this.useStrictShallowCopy_ = value;\n }\n applyPatches(base, patches) {\n let i;\n for (i = patches.length - 1; i >= 0; i--) {\n const patch = patches[i];\n if (patch.path.length === 0 && patch.op === \"replace\") {\n base = patch.value;\n break;\n }\n }\n if (i > -1) {\n patches = patches.slice(i + 1);\n }\n const applyPatchesImpl = getPlugin(\"Patches\").applyPatches_;\n if (isDraft(base)) {\n return applyPatchesImpl(base, patches);\n }\n return this.produce(\n base,\n (draft) => applyPatchesImpl(draft, patches)\n );\n }\n};\nfunction createProxy(value, parent) {\n const draft = isMap(value) ? getPlugin(\"MapSet\").proxyMap_(value, parent) : isSet(value) ? getPlugin(\"MapSet\").proxySet_(value, parent) : createProxyProxy(value, parent);\n const scope = parent ? parent.scope_ : getCurrentScope();\n scope.drafts_.push(draft);\n return draft;\n}\n\n// src/core/current.ts\nfunction current(value) {\n if (!isDraft(value))\n die(10, value);\n return currentImpl(value);\n}\nfunction currentImpl(value) {\n if (!isDraftable(value) || isFrozen(value))\n return value;\n const state = value[DRAFT_STATE];\n let copy;\n if (state) {\n if (!state.modified_)\n return state.base_;\n state.finalized_ = true;\n copy = shallowCopy(value, state.scope_.immer_.useStrictShallowCopy_);\n } else {\n copy = shallowCopy(value, true);\n }\n each(copy, (key, childValue) => {\n set(copy, key, currentImpl(childValue));\n });\n if (state) {\n state.finalized_ = false;\n }\n return copy;\n}\n\n// src/plugins/patches.ts\nfunction enablePatches() {\n const errorOffset = 16;\n if (process.env.NODE_ENV !== \"production\") {\n errors.push(\n 'Sets cannot have \"replace\" patches.',\n function(op) {\n return \"Unsupported patch operation: \" + op;\n },\n function(path) {\n return \"Cannot apply patch, path doesn't resolve: \" + path;\n },\n \"Patching reserved attributes like __proto__, prototype and constructor is not allowed\"\n );\n }\n const REPLACE = \"replace\";\n const ADD = \"add\";\n const REMOVE = \"remove\";\n function generatePatches_(state, basePath, patches, inversePatches) {\n switch (state.type_) {\n case 0 /* Object */:\n case 2 /* Map */:\n return generatePatchesFromAssigned(\n state,\n basePath,\n patches,\n inversePatches\n );\n case 1 /* Array */:\n return generateArrayPatches(state, basePath, patches, inversePatches);\n case 3 /* Set */:\n return generateSetPatches(\n state,\n basePath,\n patches,\n inversePatches\n );\n }\n }\n function generateArrayPatches(state, basePath, patches, inversePatches) {\n let { base_, assigned_ } = state;\n let copy_ = state.copy_;\n if (copy_.length < base_.length) {\n ;\n [base_, copy_] = [copy_, base_];\n [patches, inversePatches] = [inversePatches, patches];\n }\n for (let i = 0; i < base_.length; i++) {\n if (assigned_[i] && copy_[i] !== base_[i]) {\n const path = basePath.concat([i]);\n patches.push({\n op: REPLACE,\n path,\n // Need to maybe clone it, as it can in fact be the original value\n // due to the base/copy inversion at the start of this function\n value: clonePatchValueIfNeeded(copy_[i])\n });\n inversePatches.push({\n op: REPLACE,\n path,\n value: clonePatchValueIfNeeded(base_[i])\n });\n }\n }\n for (let i = base_.length; i < copy_.length; i++) {\n const path = basePath.concat([i]);\n patches.push({\n op: ADD,\n path,\n // Need to maybe clone it, as it can in fact be the original value\n // due to the base/copy inversion at the start of this function\n value: clonePatchValueIfNeeded(copy_[i])\n });\n }\n for (let i = copy_.length - 1; base_.length <= i; --i) {\n const path = basePath.concat([i]);\n inversePatches.push({\n op: REMOVE,\n path\n });\n }\n }\n function generatePatchesFromAssigned(state, basePath, patches, inversePatches) {\n const { base_, copy_ } = state;\n each(state.assigned_, (key, assignedValue) => {\n const origValue = get(base_, key);\n const value = get(copy_, key);\n const op = !assignedValue ? REMOVE : has(base_, key) ? REPLACE : ADD;\n if (origValue === value && op === REPLACE)\n return;\n const path = basePath.concat(key);\n patches.push(op === REMOVE ? { op, path } : { op, path, value });\n inversePatches.push(\n op === ADD ? { op: REMOVE, path } : op === REMOVE ? { op: ADD, path, value: clonePatchValueIfNeeded(origValue) } : { op: REPLACE, path, value: clonePatchValueIfNeeded(origValue) }\n );\n });\n }\n function generateSetPatches(state, basePath, patches, inversePatches) {\n let { base_, copy_ } = state;\n let i = 0;\n base_.forEach((value) => {\n if (!copy_.has(value)) {\n const path = basePath.concat([i]);\n patches.push({\n op: REMOVE,\n path,\n value\n });\n inversePatches.unshift({\n op: ADD,\n path,\n value\n });\n }\n i++;\n });\n i = 0;\n copy_.forEach((value) => {\n if (!base_.has(value)) {\n const path = basePath.concat([i]);\n patches.push({\n op: ADD,\n path,\n value\n });\n inversePatches.unshift({\n op: REMOVE,\n path,\n value\n });\n }\n i++;\n });\n }\n function generateReplacementPatches_(baseValue, replacement, patches, inversePatches) {\n patches.push({\n op: REPLACE,\n path: [],\n value: replacement === NOTHING ? void 0 : replacement\n });\n inversePatches.push({\n op: REPLACE,\n path: [],\n value: baseValue\n });\n }\n function applyPatches_(draft, patches) {\n patches.forEach((patch) => {\n const { path, op } = patch;\n let base = draft;\n for (let i = 0; i < path.length - 1; i++) {\n const parentType = getArchtype(base);\n let p = path[i];\n if (typeof p !== \"string\" && typeof p !== \"number\") {\n p = \"\" + p;\n }\n if ((parentType === 0 /* Object */ || parentType === 1 /* Array */) && (p === \"__proto__\" || p === \"constructor\"))\n die(errorOffset + 3);\n if (typeof base === \"function\" && p === \"prototype\")\n die(errorOffset + 3);\n base = get(base, p);\n if (typeof base !== \"object\")\n die(errorOffset + 2, path.join(\"/\"));\n }\n const type = getArchtype(base);\n const value = deepClonePatchValue(patch.value);\n const key = path[path.length - 1];\n switch (op) {\n case REPLACE:\n switch (type) {\n case 2 /* Map */:\n return base.set(key, value);\n case 3 /* Set */:\n die(errorOffset);\n default:\n return base[key] = value;\n }\n case ADD:\n switch (type) {\n case 1 /* Array */:\n return key === \"-\" ? base.push(value) : base.splice(key, 0, value);\n case 2 /* Map */:\n return base.set(key, value);\n case 3 /* Set */:\n return base.add(value);\n default:\n return base[key] = value;\n }\n case REMOVE:\n switch (type) {\n case 1 /* Array */:\n return base.splice(key, 1);\n case 2 /* Map */:\n return base.delete(key);\n case 3 /* Set */:\n return base.delete(patch.value);\n default:\n return delete base[key];\n }\n default:\n die(errorOffset + 1, op);\n }\n });\n return draft;\n }\n function deepClonePatchValue(obj) {\n if (!isDraftable(obj))\n return obj;\n if (Array.isArray(obj))\n return obj.map(deepClonePatchValue);\n if (isMap(obj))\n return new Map(\n Array.from(obj.entries()).map(([k, v]) => [k, deepClonePatchValue(v)])\n );\n if (isSet(obj))\n return new Set(Array.from(obj).map(deepClonePatchValue));\n const cloned = Object.create(getPrototypeOf(obj));\n for (const key in obj)\n cloned[key] = deepClonePatchValue(obj[key]);\n if (has(obj, DRAFTABLE))\n cloned[DRAFTABLE] = obj[DRAFTABLE];\n return cloned;\n }\n function clonePatchValueIfNeeded(obj) {\n if (isDraft(obj)) {\n return deepClonePatchValue(obj);\n } else\n return obj;\n }\n loadPlugin(\"Patches\", {\n applyPatches_,\n generatePatches_,\n generateReplacementPatches_\n });\n}\n\n// src/plugins/mapset.ts\nfunction enableMapSet() {\n class DraftMap extends Map {\n constructor(target, parent) {\n super();\n this[DRAFT_STATE] = {\n type_: 2 /* Map */,\n parent_: parent,\n scope_: parent ? parent.scope_ : getCurrentScope(),\n modified_: false,\n finalized_: false,\n copy_: void 0,\n assigned_: void 0,\n base_: target,\n draft_: this,\n isManual_: false,\n revoked_: false\n };\n }\n get size() {\n return latest(this[DRAFT_STATE]).size;\n }\n has(key) {\n return latest(this[DRAFT_STATE]).has(key);\n }\n set(key, value) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (!latest(state).has(key) || latest(state).get(key) !== value) {\n prepareMapCopy(state);\n markChanged(state);\n state.assigned_.set(key, true);\n state.copy_.set(key, value);\n state.assigned_.set(key, true);\n }\n return this;\n }\n delete(key) {\n if (!this.has(key)) {\n return false;\n }\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareMapCopy(state);\n markChanged(state);\n if (state.base_.has(key)) {\n state.assigned_.set(key, false);\n } else {\n state.assigned_.delete(key);\n }\n state.copy_.delete(key);\n return true;\n }\n clear() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (latest(state).size) {\n prepareMapCopy(state);\n markChanged(state);\n state.assigned_ = /* @__PURE__ */ new Map();\n each(state.base_, (key) => {\n state.assigned_.set(key, false);\n });\n state.copy_.clear();\n }\n }\n forEach(cb, thisArg) {\n const state = this[DRAFT_STATE];\n latest(state).forEach((_value, key, _map) => {\n cb.call(thisArg, this.get(key), key, this);\n });\n }\n get(key) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n const value = latest(state).get(key);\n if (state.finalized_ || !isDraftable(value)) {\n return value;\n }\n if (value !== state.base_.get(key)) {\n return value;\n }\n const draft = createProxy(value, state);\n prepareMapCopy(state);\n state.copy_.set(key, draft);\n return draft;\n }\n keys() {\n return latest(this[DRAFT_STATE]).keys();\n }\n values() {\n const iterator = this.keys();\n return {\n [Symbol.iterator]: () => this.values(),\n next: () => {\n const r = iterator.next();\n if (r.done)\n return r;\n const value = this.get(r.value);\n return {\n done: false,\n value\n };\n }\n };\n }\n entries() {\n const iterator = this.keys();\n return {\n [Symbol.iterator]: () => this.entries(),\n next: () => {\n const r = iterator.next();\n if (r.done)\n return r;\n const value = this.get(r.value);\n return {\n done: false,\n value: [r.value, value]\n };\n }\n };\n }\n [(DRAFT_STATE, Symbol.iterator)]() {\n return this.entries();\n }\n }\n function proxyMap_(target, parent) {\n return new DraftMap(target, parent);\n }\n function prepareMapCopy(state) {\n if (!state.copy_) {\n state.assigned_ = /* @__PURE__ */ new Map();\n state.copy_ = new Map(state.base_);\n }\n }\n class DraftSet extends Set {\n constructor(target, parent) {\n super();\n this[DRAFT_STATE] = {\n type_: 3 /* Set */,\n parent_: parent,\n scope_: parent ? parent.scope_ : getCurrentScope(),\n modified_: false,\n finalized_: false,\n copy_: void 0,\n base_: target,\n draft_: this,\n drafts_: /* @__PURE__ */ new Map(),\n revoked_: false,\n isManual_: false\n };\n }\n get size() {\n return latest(this[DRAFT_STATE]).size;\n }\n has(value) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (!state.copy_) {\n return state.base_.has(value);\n }\n if (state.copy_.has(value))\n return true;\n if (state.drafts_.has(value) && state.copy_.has(state.drafts_.get(value)))\n return true;\n return false;\n }\n add(value) {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (!this.has(value)) {\n prepareSetCopy(state);\n markChanged(state);\n state.copy_.add(value);\n }\n return this;\n }\n delete(value) {\n if (!this.has(value)) {\n return false;\n }\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareSetCopy(state);\n markChanged(state);\n return state.copy_.delete(value) || (state.drafts_.has(value) ? state.copy_.delete(state.drafts_.get(value)) : (\n /* istanbul ignore next */\n false\n ));\n }\n clear() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n if (latest(state).size) {\n prepareSetCopy(state);\n markChanged(state);\n state.copy_.clear();\n }\n }\n values() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareSetCopy(state);\n return state.copy_.values();\n }\n entries() {\n const state = this[DRAFT_STATE];\n assertUnrevoked(state);\n prepareSetCopy(state);\n return state.copy_.entries();\n }\n keys() {\n return this.values();\n }\n [(DRAFT_STATE, Symbol.iterator)]() {\n return this.values();\n }\n forEach(cb, thisArg) {\n const iterator = this.values();\n let result = iterator.next();\n while (!result.done) {\n cb.call(thisArg, result.value, result.value, this);\n result = iterator.next();\n }\n }\n }\n function proxySet_(target, parent) {\n return new DraftSet(target, parent);\n }\n function prepareSetCopy(state) {\n if (!state.copy_) {\n state.copy_ = /* @__PURE__ */ new Set();\n state.base_.forEach((value) => {\n if (isDraftable(value)) {\n const draft = createProxy(value, state);\n state.drafts_.set(value, draft);\n state.copy_.add(draft);\n } else {\n state.copy_.add(value);\n }\n });\n }\n }\n function assertUnrevoked(state) {\n if (state.revoked_)\n die(3, JSON.stringify(latest(state)));\n }\n loadPlugin(\"MapSet\", { proxyMap_, proxySet_ });\n}\n\n// src/immer.ts\nvar immer = new Immer2();\nvar produce = immer.produce;\nvar produceWithPatches = immer.produceWithPatches.bind(\n immer\n);\nvar setAutoFreeze = immer.setAutoFreeze.bind(immer);\nvar setUseStrictShallowCopy = immer.setUseStrictShallowCopy.bind(immer);\nvar applyPatches = immer.applyPatches.bind(immer);\nvar createDraft = immer.createDraft.bind(immer);\nvar finishDraft = immer.finishDraft.bind(immer);\nfunction castDraft(value) {\n return value;\n}\nfunction castImmutable(value) {\n return value;\n}\nexport {\n Immer2 as Immer,\n applyPatches,\n castDraft,\n castImmutable,\n createDraft,\n current,\n enableMapSet,\n enablePatches,\n finishDraft,\n freeze,\n DRAFTABLE as immerable,\n isDraft,\n isDraftable,\n NOTHING as nothing,\n original,\n produce,\n produceWithPatches,\n setAutoFreeze,\n setUseStrictShallowCopy\n};\n//# sourceMappingURL=immer.mjs.map","// src/index.ts\nfunction createThunkMiddleware(extraArgument) {\n const middleware = ({ dispatch, getState }) => (next) => (action) => {\n if (typeof action === \"function\") {\n return action(dispatch, getState, extraArgument);\n }\n return next(action);\n };\n return middleware;\n}\nvar thunk = createThunkMiddleware();\nvar withExtraArgument = createThunkMiddleware;\nexport {\n thunk,\n withExtraArgument\n};\n","// src/index.ts\nexport * from \"redux\";\nimport { produce, current as current3, freeze, original as original2, isDraft as isDraft5 } from \"immer\";\nimport { createSelector, createSelectorCreator as createSelectorCreator2, lruMemoize, weakMapMemoize as weakMapMemoize2 } from \"reselect\";\n\n// src/createDraftSafeSelector.ts\nimport { current, isDraft } from \"immer\";\nimport { createSelectorCreator, weakMapMemoize } from \"reselect\";\nvar createDraftSafeSelectorCreator = (...args) => {\n const createSelector2 = createSelectorCreator(...args);\n const createDraftSafeSelector2 = Object.assign((...args2) => {\n const selector = createSelector2(...args2);\n const wrappedSelector = (value, ...rest) => selector(isDraft(value) ? current(value) : value, ...rest);\n Object.assign(wrappedSelector, selector);\n return wrappedSelector;\n }, {\n withTypes: () => createDraftSafeSelector2\n });\n return createDraftSafeSelector2;\n};\nvar createDraftSafeSelector = /* @__PURE__ */ createDraftSafeSelectorCreator(weakMapMemoize);\n\n// src/configureStore.ts\nimport { applyMiddleware, createStore, compose as compose2, combineReducers, isPlainObject as isPlainObject2 } from \"redux\";\n\n// src/devtoolsExtension.ts\nimport { compose } from \"redux\";\nvar composeWithDevTools = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {\n if (arguments.length === 0) return void 0;\n if (typeof arguments[0] === \"object\") return compose;\n return compose.apply(null, arguments);\n};\nvar devToolsEnhancer = typeof window !== \"undefined\" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function() {\n return function(noop3) {\n return noop3;\n };\n};\n\n// src/getDefaultMiddleware.ts\nimport { thunk as thunkMiddleware, withExtraArgument } from \"redux-thunk\";\n\n// src/createAction.ts\nimport { isAction } from \"redux\";\n\n// src/tsHelpers.ts\nvar hasMatchFunction = (v) => {\n return v && typeof v.match === \"function\";\n};\n\n// src/createAction.ts\nfunction createAction(type, prepareAction) {\n function actionCreator(...args) {\n if (prepareAction) {\n let prepared = prepareAction(...args);\n if (!prepared) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : \"prepareAction did not return an object\");\n }\n return {\n type,\n payload: prepared.payload,\n ...\"meta\" in prepared && {\n meta: prepared.meta\n },\n ...\"error\" in prepared && {\n error: prepared.error\n }\n };\n }\n return {\n type,\n payload: args[0]\n };\n }\n actionCreator.toString = () => `${type}`;\n actionCreator.type = type;\n actionCreator.match = (action) => isAction(action) && action.type === type;\n return actionCreator;\n}\nfunction isActionCreator(action) {\n return typeof action === \"function\" && \"type\" in action && // hasMatchFunction only wants Matchers but I don't see the point in rewriting it\n hasMatchFunction(action);\n}\nfunction isFSA(action) {\n return isAction(action) && Object.keys(action).every(isValidKey);\n}\nfunction isValidKey(key) {\n return [\"type\", \"payload\", \"error\", \"meta\"].indexOf(key) > -1;\n}\n\n// src/actionCreatorInvariantMiddleware.ts\nfunction getMessage(type) {\n const splitType = type ? `${type}`.split(\"/\") : [];\n const actionName = splitType[splitType.length - 1] || \"actionCreator\";\n return `Detected an action creator with type \"${type || \"unknown\"}\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. \\`dispatch(${actionName}())\\` instead of \\`dispatch(${actionName})\\`. This is necessary even if the action has no payload.`;\n}\nfunction createActionCreatorInvariantMiddleware(options = {}) {\n if (process.env.NODE_ENV === \"production\") {\n return () => (next) => (action) => next(action);\n }\n const {\n isActionCreator: isActionCreator2 = isActionCreator\n } = options;\n return () => (next) => (action) => {\n if (isActionCreator2(action)) {\n console.warn(getMessage(action.type));\n }\n return next(action);\n };\n}\n\n// src/utils.ts\nimport { produce as createNextState, isDraftable } from \"immer\";\nfunction getTimeMeasureUtils(maxDelay, fnName) {\n let elapsed = 0;\n return {\n measureTime(fn) {\n const started = Date.now();\n try {\n return fn();\n } finally {\n const finished = Date.now();\n elapsed += finished - started;\n }\n },\n warnIfExceeded() {\n if (elapsed > maxDelay) {\n console.warn(`${fnName} took ${elapsed}ms, which is more than the warning threshold of ${maxDelay}ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.`);\n }\n }\n };\n}\nvar Tuple = class _Tuple extends Array {\n constructor(...items) {\n super(...items);\n Object.setPrototypeOf(this, _Tuple.prototype);\n }\n static get [Symbol.species]() {\n return _Tuple;\n }\n concat(...arr) {\n return super.concat.apply(this, arr);\n }\n prepend(...arr) {\n if (arr.length === 1 && Array.isArray(arr[0])) {\n return new _Tuple(...arr[0].concat(this));\n }\n return new _Tuple(...arr.concat(this));\n }\n};\nfunction freezeDraftable(val) {\n return isDraftable(val) ? createNextState(val, () => {\n }) : val;\n}\nfunction getOrInsertComputed(map, key, compute) {\n if (map.has(key)) return map.get(key);\n return map.set(key, compute(key)).get(key);\n}\n\n// src/immutableStateInvariantMiddleware.ts\nfunction isImmutableDefault(value) {\n return typeof value !== \"object\" || value == null || Object.isFrozen(value);\n}\nfunction trackForMutations(isImmutable, ignorePaths, obj) {\n const trackedProperties = trackProperties(isImmutable, ignorePaths, obj);\n return {\n detectMutations() {\n return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);\n }\n };\n}\nfunction trackProperties(isImmutable, ignorePaths = [], obj, path = \"\", checkedObjects = /* @__PURE__ */ new Set()) {\n const tracked = {\n value: obj\n };\n if (!isImmutable(obj) && !checkedObjects.has(obj)) {\n checkedObjects.add(obj);\n tracked.children = {};\n for (const key in obj) {\n const childPath = path ? path + \".\" + key : key;\n if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {\n continue;\n }\n tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);\n }\n }\n return tracked;\n}\nfunction detectMutations(isImmutable, ignoredPaths = [], trackedProperty, obj, sameParentRef = false, path = \"\") {\n const prevObj = trackedProperty ? trackedProperty.value : void 0;\n const sameRef = prevObj === obj;\n if (sameParentRef && !sameRef && !Number.isNaN(obj)) {\n return {\n wasMutated: true,\n path\n };\n }\n if (isImmutable(prevObj) || isImmutable(obj)) {\n return {\n wasMutated: false\n };\n }\n const keysToDetect = {};\n for (let key in trackedProperty.children) {\n keysToDetect[key] = true;\n }\n for (let key in obj) {\n keysToDetect[key] = true;\n }\n const hasIgnoredPaths = ignoredPaths.length > 0;\n for (let key in keysToDetect) {\n const nestedPath = path ? path + \".\" + key : key;\n if (hasIgnoredPaths) {\n const hasMatches = ignoredPaths.some((ignored) => {\n if (ignored instanceof RegExp) {\n return ignored.test(nestedPath);\n }\n return nestedPath === ignored;\n });\n if (hasMatches) {\n continue;\n }\n }\n const result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);\n if (result.wasMutated) {\n return result;\n }\n }\n return {\n wasMutated: false\n };\n}\nfunction createImmutableStateInvariantMiddleware(options = {}) {\n if (process.env.NODE_ENV === \"production\") {\n return () => (next) => (action) => next(action);\n } else {\n let stringify2 = function(obj, serializer, indent, decycler) {\n return JSON.stringify(obj, getSerialize2(serializer, decycler), indent);\n }, getSerialize2 = function(serializer, decycler) {\n let stack = [], keys = [];\n if (!decycler) decycler = function(_, value) {\n if (stack[0] === value) return \"[Circular ~]\";\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\";\n };\n return function(key, value) {\n if (stack.length > 0) {\n var thisPos = stack.indexOf(this);\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);\n if (~stack.indexOf(value)) value = decycler.call(this, key, value);\n } else stack.push(value);\n return serializer == null ? value : serializer.call(this, key, value);\n };\n };\n var stringify = stringify2, getSerialize = getSerialize2;\n let {\n isImmutable = isImmutableDefault,\n ignoredPaths,\n warnAfter = 32\n } = options;\n const track = trackForMutations.bind(null, isImmutable, ignoredPaths);\n return ({\n getState\n }) => {\n let state = getState();\n let tracker = track(state);\n let result;\n return (next) => (action) => {\n const measureUtils = getTimeMeasureUtils(warnAfter, \"ImmutableStateInvariantMiddleware\");\n measureUtils.measureTime(() => {\n state = getState();\n result = tracker.detectMutations();\n tracker = track(state);\n if (result.wasMutated) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(19) : `A state mutation was detected between dispatches, in the path '${result.path || \"\"}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);\n }\n });\n const dispatchedAction = next(action);\n measureUtils.measureTime(() => {\n state = getState();\n result = tracker.detectMutations();\n tracker = track(state);\n if (result.wasMutated) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(20) : `A state mutation was detected inside a dispatch, in the path: ${result.path || \"\"}. Take a look at the reducer(s) handling the action ${stringify2(action)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);\n }\n });\n measureUtils.warnIfExceeded();\n return dispatchedAction;\n };\n };\n }\n}\n\n// src/serializableStateInvariantMiddleware.ts\nimport { isAction as isAction2, isPlainObject } from \"redux\";\nfunction isPlain(val) {\n const type = typeof val;\n return val == null || type === \"string\" || type === \"boolean\" || type === \"number\" || Array.isArray(val) || isPlainObject(val);\n}\nfunction findNonSerializableValue(value, path = \"\", isSerializable = isPlain, getEntries, ignoredPaths = [], cache) {\n let foundNestedSerializable;\n if (!isSerializable(value)) {\n return {\n keyPath: path || \"\",\n value\n };\n }\n if (typeof value !== \"object\" || value === null) {\n return false;\n }\n if (cache?.has(value)) return false;\n const entries = getEntries != null ? getEntries(value) : Object.entries(value);\n const hasIgnoredPaths = ignoredPaths.length > 0;\n for (const [key, nestedValue] of entries) {\n const nestedPath = path ? path + \".\" + key : key;\n if (hasIgnoredPaths) {\n const hasMatches = ignoredPaths.some((ignored) => {\n if (ignored instanceof RegExp) {\n return ignored.test(nestedPath);\n }\n return nestedPath === ignored;\n });\n if (hasMatches) {\n continue;\n }\n }\n if (!isSerializable(nestedValue)) {\n return {\n keyPath: nestedPath,\n value: nestedValue\n };\n }\n if (typeof nestedValue === \"object\") {\n foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);\n if (foundNestedSerializable) {\n return foundNestedSerializable;\n }\n }\n }\n if (cache && isNestedFrozen(value)) cache.add(value);\n return false;\n}\nfunction isNestedFrozen(value) {\n if (!Object.isFrozen(value)) return false;\n for (const nestedValue of Object.values(value)) {\n if (typeof nestedValue !== \"object\" || nestedValue === null) continue;\n if (!isNestedFrozen(nestedValue)) return false;\n }\n return true;\n}\nfunction createSerializableStateInvariantMiddleware(options = {}) {\n if (process.env.NODE_ENV === \"production\") {\n return () => (next) => (action) => next(action);\n } else {\n const {\n isSerializable = isPlain,\n getEntries,\n ignoredActions = [],\n ignoredActionPaths = [\"meta.arg\", \"meta.baseQueryMeta\"],\n ignoredPaths = [],\n warnAfter = 32,\n ignoreState = false,\n ignoreActions = false,\n disableCache = false\n } = options;\n const cache = !disableCache && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;\n return (storeAPI) => (next) => (action) => {\n if (!isAction2(action)) {\n return next(action);\n }\n const result = next(action);\n const measureUtils = getTimeMeasureUtils(warnAfter, \"SerializableStateInvariantMiddleware\");\n if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {\n measureUtils.measureTime(() => {\n const foundActionNonSerializableValue = findNonSerializableValue(action, \"\", isSerializable, getEntries, ignoredActionPaths, cache);\n if (foundActionNonSerializableValue) {\n const {\n keyPath,\n value\n } = foundActionNonSerializableValue;\n console.error(`A non-serializable value was detected in an action, in the path: \\`${keyPath}\\`. Value:`, value, \"\\nTake a look at the logic that dispatched this action: \", action, \"\\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)\", \"\\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)\");\n }\n });\n }\n if (!ignoreState) {\n measureUtils.measureTime(() => {\n const state = storeAPI.getState();\n const foundStateNonSerializableValue = findNonSerializableValue(state, \"\", isSerializable, getEntries, ignoredPaths, cache);\n if (foundStateNonSerializableValue) {\n const {\n keyPath,\n value\n } = foundStateNonSerializableValue;\n console.error(`A non-serializable value was detected in the state, in the path: \\`${keyPath}\\`. Value:`, value, `\nTake a look at the reducer(s) handling this action type: ${action.type}.\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);\n }\n });\n measureUtils.warnIfExceeded();\n }\n return result;\n };\n }\n}\n\n// src/getDefaultMiddleware.ts\nfunction isBoolean(x) {\n return typeof x === \"boolean\";\n}\nvar buildGetDefaultMiddleware = () => function getDefaultMiddleware(options) {\n const {\n thunk = true,\n immutableCheck = true,\n serializableCheck = true,\n actionCreatorCheck = true\n } = options ?? {};\n let middlewareArray = new Tuple();\n if (thunk) {\n if (isBoolean(thunk)) {\n middlewareArray.push(thunkMiddleware);\n } else {\n middlewareArray.push(withExtraArgument(thunk.extraArgument));\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (immutableCheck) {\n let immutableOptions = {};\n if (!isBoolean(immutableCheck)) {\n immutableOptions = immutableCheck;\n }\n middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));\n }\n if (serializableCheck) {\n let serializableOptions = {};\n if (!isBoolean(serializableCheck)) {\n serializableOptions = serializableCheck;\n }\n middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));\n }\n if (actionCreatorCheck) {\n let actionCreatorOptions = {};\n if (!isBoolean(actionCreatorCheck)) {\n actionCreatorOptions = actionCreatorCheck;\n }\n middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));\n }\n }\n return middlewareArray;\n};\n\n// src/autoBatchEnhancer.ts\nvar SHOULD_AUTOBATCH = \"RTK_autoBatch\";\nvar prepareAutoBatched = () => (payload) => ({\n payload,\n meta: {\n [SHOULD_AUTOBATCH]: true\n }\n});\nvar createQueueWithTimer = (timeout) => {\n return (notify) => {\n setTimeout(notify, timeout);\n };\n};\nvar autoBatchEnhancer = (options = {\n type: \"raf\"\n}) => (next) => (...args) => {\n const store = next(...args);\n let notifying = true;\n let shouldNotifyAtEndOfTick = false;\n let notificationQueued = false;\n const listeners = /* @__PURE__ */ new Set();\n const queueCallback = options.type === \"tick\" ? queueMicrotask : options.type === \"raf\" ? (\n // requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.\n typeof window !== \"undefined\" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10)\n ) : options.type === \"callback\" ? options.queueNotification : createQueueWithTimer(options.timeout);\n const notifyListeners = () => {\n notificationQueued = false;\n if (shouldNotifyAtEndOfTick) {\n shouldNotifyAtEndOfTick = false;\n listeners.forEach((l) => l());\n }\n };\n return Object.assign({}, store, {\n // Override the base `store.subscribe` method to keep original listeners\n // from running if we're delaying notifications\n subscribe(listener2) {\n const wrappedListener = () => notifying && listener2();\n const unsubscribe = store.subscribe(wrappedListener);\n listeners.add(listener2);\n return () => {\n unsubscribe();\n listeners.delete(listener2);\n };\n },\n // Override the base `store.dispatch` method so that we can check actions\n // for the `shouldAutoBatch` flag and determine if batching is active\n dispatch(action) {\n try {\n notifying = !action?.meta?.[SHOULD_AUTOBATCH];\n shouldNotifyAtEndOfTick = !notifying;\n if (shouldNotifyAtEndOfTick) {\n if (!notificationQueued) {\n notificationQueued = true;\n queueCallback(notifyListeners);\n }\n }\n return store.dispatch(action);\n } finally {\n notifying = true;\n }\n }\n });\n};\n\n// src/getDefaultEnhancers.ts\nvar buildGetDefaultEnhancers = (middlewareEnhancer) => function getDefaultEnhancers(options) {\n const {\n autoBatch = true\n } = options ?? {};\n let enhancerArray = new Tuple(middlewareEnhancer);\n if (autoBatch) {\n enhancerArray.push(autoBatchEnhancer(typeof autoBatch === \"object\" ? autoBatch : void 0));\n }\n return enhancerArray;\n};\n\n// src/configureStore.ts\nfunction configureStore(options) {\n const getDefaultMiddleware = buildGetDefaultMiddleware();\n const {\n reducer = void 0,\n middleware,\n devTools = true,\n preloadedState = void 0,\n enhancers = void 0\n } = options || {};\n let rootReducer;\n if (typeof reducer === \"function\") {\n rootReducer = reducer;\n } else if (isPlainObject2(reducer)) {\n rootReducer = combineReducers(reducer);\n } else {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers\");\n }\n if (process.env.NODE_ENV !== \"production\" && middleware && typeof middleware !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"`middleware` field must be a callback\");\n }\n let finalMiddleware;\n if (typeof middleware === \"function\") {\n finalMiddleware = middleware(getDefaultMiddleware);\n if (process.env.NODE_ENV !== \"production\" && !Array.isArray(finalMiddleware)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : \"when using a middleware builder function, an array of middleware must be returned\");\n }\n } else {\n finalMiddleware = getDefaultMiddleware();\n }\n if (process.env.NODE_ENV !== \"production\" && finalMiddleware.some((item) => typeof item !== \"function\")) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"each middleware provided to configureStore must be a function\");\n }\n let finalCompose = compose2;\n if (devTools) {\n finalCompose = composeWithDevTools({\n // Enable capture of stack traces for dispatched Redux actions\n trace: process.env.NODE_ENV !== \"production\",\n ...typeof devTools === \"object\" && devTools\n });\n }\n const middlewareEnhancer = applyMiddleware(...finalMiddleware);\n const getDefaultEnhancers = buildGetDefaultEnhancers(middlewareEnhancer);\n if (process.env.NODE_ENV !== \"production\" && enhancers && typeof enhancers !== \"function\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : \"`enhancers` field must be a callback\");\n }\n let storeEnhancers = typeof enhancers === \"function\" ? enhancers(getDefaultEnhancers) : getDefaultEnhancers();\n if (process.env.NODE_ENV !== \"production\" && !Array.isArray(storeEnhancers)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : \"`enhancers` callback must return an array\");\n }\n if (process.env.NODE_ENV !== \"production\" && storeEnhancers.some((item) => typeof item !== \"function\")) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"each enhancer provided to configureStore must be a function\");\n }\n if (process.env.NODE_ENV !== \"production\" && finalMiddleware.length && !storeEnhancers.includes(middlewareEnhancer)) {\n console.error(\"middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`\");\n }\n const composedEnhancer = finalCompose(...storeEnhancers);\n return createStore(rootReducer, preloadedState, composedEnhancer);\n}\n\n// src/createReducer.ts\nimport { produce as createNextState2, isDraft as isDraft2, isDraftable as isDraftable2 } from \"immer\";\n\n// src/mapBuilders.ts\nfunction executeReducerBuilderCallback(builderCallback) {\n const actionsMap = {};\n const actionMatchers = [];\n let defaultCaseReducer;\n const builder = {\n addCase(typeOrActionCreator, reducer) {\n if (process.env.NODE_ENV !== \"production\") {\n if (actionMatchers.length > 0) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(26) : \"`builder.addCase` should only be called before calling `builder.addMatcher`\");\n }\n if (defaultCaseReducer) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(27) : \"`builder.addCase` should only be called before calling `builder.addDefaultCase`\");\n }\n }\n const type = typeof typeOrActionCreator === \"string\" ? typeOrActionCreator : typeOrActionCreator.type;\n if (!type) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(28) : \"`builder.addCase` cannot be called with an empty action type\");\n }\n if (type in actionsMap) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(29) : `\\`builder.addCase\\` cannot be called with two reducers for the same action type '${type}'`);\n }\n actionsMap[type] = reducer;\n return builder;\n },\n addMatcher(matcher, reducer) {\n if (process.env.NODE_ENV !== \"production\") {\n if (defaultCaseReducer) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(30) : \"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`\");\n }\n }\n actionMatchers.push({\n matcher,\n reducer\n });\n return builder;\n },\n addDefaultCase(reducer) {\n if (process.env.NODE_ENV !== \"production\") {\n if (defaultCaseReducer) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(31) : \"`builder.addDefaultCase` can only be called once\");\n }\n }\n defaultCaseReducer = reducer;\n return builder;\n }\n };\n builderCallback(builder);\n return [actionsMap, actionMatchers, defaultCaseReducer];\n}\n\n// src/createReducer.ts\nfunction isStateFunction(x) {\n return typeof x === \"function\";\n}\nfunction createReducer(initialState, mapOrBuilderCallback) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof mapOrBuilderCallback === \"object\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : \"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer\");\n }\n }\n let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] = executeReducerBuilderCallback(mapOrBuilderCallback);\n let getInitialState;\n if (isStateFunction(initialState)) {\n getInitialState = () => freezeDraftable(initialState());\n } else {\n const frozenInitialState = freezeDraftable(initialState);\n getInitialState = () => frozenInitialState;\n }\n function reducer(state = getInitialState(), action) {\n let caseReducers = [actionsMap[action.type], ...finalActionMatchers.filter(({\n matcher\n }) => matcher(action)).map(({\n reducer: reducer2\n }) => reducer2)];\n if (caseReducers.filter((cr) => !!cr).length === 0) {\n caseReducers = [finalDefaultCaseReducer];\n }\n return caseReducers.reduce((previousState, caseReducer) => {\n if (caseReducer) {\n if (isDraft2(previousState)) {\n const draft = previousState;\n const result = caseReducer(draft, action);\n if (result === void 0) {\n return previousState;\n }\n return result;\n } else if (!isDraftable2(previousState)) {\n const result = caseReducer(previousState, action);\n if (result === void 0) {\n if (previousState === null) {\n return previousState;\n }\n throw Error(\"A case reducer on a non-draftable value must not return undefined\");\n }\n return result;\n } else {\n return createNextState2(previousState, (draft) => {\n return caseReducer(draft, action);\n });\n }\n }\n return previousState;\n }, state);\n }\n reducer.getInitialState = getInitialState;\n return reducer;\n}\n\n// src/matchers.ts\nvar matches = (matcher, action) => {\n if (hasMatchFunction(matcher)) {\n return matcher.match(action);\n } else {\n return matcher(action);\n }\n};\nfunction isAnyOf(...matchers) {\n return (action) => {\n return matchers.some((matcher) => matches(matcher, action));\n };\n}\nfunction isAllOf(...matchers) {\n return (action) => {\n return matchers.every((matcher) => matches(matcher, action));\n };\n}\nfunction hasExpectedRequestMetadata(action, validStatus) {\n if (!action || !action.meta) return false;\n const hasValidRequestId = typeof action.meta.requestId === \"string\";\n const hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;\n return hasValidRequestId && hasValidRequestStatus;\n}\nfunction isAsyncThunkArray(a) {\n return typeof a[0] === \"function\" && \"pending\" in a[0] && \"fulfilled\" in a[0] && \"rejected\" in a[0];\n}\nfunction isPending(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"pending\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isPending()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.pending));\n}\nfunction isRejected(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"rejected\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isRejected()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.rejected));\n}\nfunction isRejectedWithValue(...asyncThunks) {\n const hasFlag = (action) => {\n return action && action.meta && action.meta.rejectedWithValue;\n };\n if (asyncThunks.length === 0) {\n return isAllOf(isRejected(...asyncThunks), hasFlag);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isRejectedWithValue()(asyncThunks[0]);\n }\n return isAllOf(isRejected(...asyncThunks), hasFlag);\n}\nfunction isFulfilled(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"fulfilled\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isFulfilled()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.map((asyncThunk) => asyncThunk.fulfilled));\n}\nfunction isAsyncThunkAction(...asyncThunks) {\n if (asyncThunks.length === 0) {\n return (action) => hasExpectedRequestMetadata(action, [\"pending\", \"fulfilled\", \"rejected\"]);\n }\n if (!isAsyncThunkArray(asyncThunks)) {\n return isAsyncThunkAction()(asyncThunks[0]);\n }\n return isAnyOf(...asyncThunks.flatMap((asyncThunk) => [asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled]));\n}\n\n// src/nanoid.ts\nvar urlAlphabet = \"ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW\";\nvar nanoid = (size = 21) => {\n let id = \"\";\n let i = size;\n while (i--) {\n id += urlAlphabet[Math.random() * 64 | 0];\n }\n return id;\n};\n\n// src/createAsyncThunk.ts\nvar commonProperties = [\"name\", \"message\", \"stack\", \"code\"];\nvar RejectWithValue = class {\n constructor(payload, meta) {\n this.payload = payload;\n this.meta = meta;\n }\n /*\n type-only property to distinguish between RejectWithValue and FulfillWithMeta\n does not exist at runtime\n */\n _type;\n};\nvar FulfillWithMeta = class {\n constructor(payload, meta) {\n this.payload = payload;\n this.meta = meta;\n }\n /*\n type-only property to distinguish between RejectWithValue and FulfillWithMeta\n does not exist at runtime\n */\n _type;\n};\nvar miniSerializeError = (value) => {\n if (typeof value === \"object\" && value !== null) {\n const simpleError = {};\n for (const property of commonProperties) {\n if (typeof value[property] === \"string\") {\n simpleError[property] = value[property];\n }\n }\n return simpleError;\n }\n return {\n message: String(value)\n };\n};\nvar externalAbortMessage = \"External signal was aborted\";\nvar createAsyncThunk = /* @__PURE__ */ (() => {\n function createAsyncThunk2(typePrefix, payloadCreator, options) {\n const fulfilled = createAction(typePrefix + \"/fulfilled\", (payload, requestId, arg, meta) => ({\n payload,\n meta: {\n ...meta || {},\n arg,\n requestId,\n requestStatus: \"fulfilled\"\n }\n }));\n const pending = createAction(typePrefix + \"/pending\", (requestId, arg, meta) => ({\n payload: void 0,\n meta: {\n ...meta || {},\n arg,\n requestId,\n requestStatus: \"pending\"\n }\n }));\n const rejected = createAction(typePrefix + \"/rejected\", (error, requestId, arg, payload, meta) => ({\n payload,\n error: (options && options.serializeError || miniSerializeError)(error || \"Rejected\"),\n meta: {\n ...meta || {},\n arg,\n requestId,\n rejectedWithValue: !!payload,\n requestStatus: \"rejected\",\n aborted: error?.name === \"AbortError\",\n condition: error?.name === \"ConditionError\"\n }\n }));\n function actionCreator(arg, {\n signal\n } = {}) {\n return (dispatch, getState, extra) => {\n const requestId = options?.idGenerator ? options.idGenerator(arg) : nanoid();\n const abortController = new AbortController();\n let abortHandler;\n let abortReason;\n function abort(reason) {\n abortReason = reason;\n abortController.abort();\n }\n if (signal) {\n if (signal.aborted) {\n abort(externalAbortMessage);\n } else {\n signal.addEventListener(\"abort\", () => abort(externalAbortMessage), {\n once: true\n });\n }\n }\n const promise = async function() {\n let finalAction;\n try {\n let conditionResult = options?.condition?.(arg, {\n getState,\n extra\n });\n if (isThenable(conditionResult)) {\n conditionResult = await conditionResult;\n }\n if (conditionResult === false || abortController.signal.aborted) {\n throw {\n name: \"ConditionError\",\n message: \"Aborted due to condition callback returning false.\"\n };\n }\n const abortedPromise = new Promise((_, reject) => {\n abortHandler = () => {\n reject({\n name: \"AbortError\",\n message: abortReason || \"Aborted\"\n });\n };\n abortController.signal.addEventListener(\"abort\", abortHandler);\n });\n dispatch(pending(requestId, arg, options?.getPendingMeta?.({\n requestId,\n arg\n }, {\n getState,\n extra\n })));\n finalAction = await Promise.race([abortedPromise, Promise.resolve(payloadCreator(arg, {\n dispatch,\n getState,\n extra,\n requestId,\n signal: abortController.signal,\n abort,\n rejectWithValue: (value, meta) => {\n return new RejectWithValue(value, meta);\n },\n fulfillWithValue: (value, meta) => {\n return new FulfillWithMeta(value, meta);\n }\n })).then((result) => {\n if (result instanceof RejectWithValue) {\n throw result;\n }\n if (result instanceof FulfillWithMeta) {\n return fulfilled(result.payload, requestId, arg, result.meta);\n }\n return fulfilled(result, requestId, arg);\n })]);\n } catch (err) {\n finalAction = err instanceof RejectWithValue ? rejected(null, requestId, arg, err.payload, err.meta) : rejected(err, requestId, arg);\n } finally {\n if (abortHandler) {\n abortController.signal.removeEventListener(\"abort\", abortHandler);\n }\n }\n const skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;\n if (!skipDispatch) {\n dispatch(finalAction);\n }\n return finalAction;\n }();\n return Object.assign(promise, {\n abort,\n requestId,\n arg,\n unwrap() {\n return promise.then(unwrapResult);\n }\n });\n };\n }\n return Object.assign(actionCreator, {\n pending,\n rejected,\n fulfilled,\n settled: isAnyOf(rejected, fulfilled),\n typePrefix\n });\n }\n createAsyncThunk2.withTypes = () => createAsyncThunk2;\n return createAsyncThunk2;\n})();\nfunction unwrapResult(action) {\n if (action.meta && action.meta.rejectedWithValue) {\n throw action.payload;\n }\n if (action.error) {\n throw action.error;\n }\n return action.payload;\n}\nfunction isThenable(value) {\n return value !== null && typeof value === \"object\" && typeof value.then === \"function\";\n}\n\n// src/createSlice.ts\nvar asyncThunkSymbol = /* @__PURE__ */ Symbol.for(\"rtk-slice-createasyncthunk\");\nvar asyncThunkCreator = {\n [asyncThunkSymbol]: createAsyncThunk\n};\nvar ReducerType = /* @__PURE__ */ ((ReducerType2) => {\n ReducerType2[\"reducer\"] = \"reducer\";\n ReducerType2[\"reducerWithPrepare\"] = \"reducerWithPrepare\";\n ReducerType2[\"asyncThunk\"] = \"asyncThunk\";\n return ReducerType2;\n})(ReducerType || {});\nfunction getType(slice, actionKey) {\n return `${slice}/${actionKey}`;\n}\nfunction buildCreateSlice({\n creators\n} = {}) {\n const cAT = creators?.asyncThunk?.[asyncThunkSymbol];\n return function createSlice2(options) {\n const {\n name,\n reducerPath = name\n } = options;\n if (!name) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"`name` is a required option for createSlice\");\n }\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\n if (options.initialState === void 0) {\n console.error(\"You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`\");\n }\n }\n const reducers = (typeof options.reducers === \"function\" ? options.reducers(buildReducerCreators()) : options.reducers) || {};\n const reducerNames = Object.keys(reducers);\n const context = {\n sliceCaseReducersByName: {},\n sliceCaseReducersByType: {},\n actionCreators: {},\n sliceMatchers: []\n };\n const contextMethods = {\n addCase(typeOrActionCreator, reducer2) {\n const type = typeof typeOrActionCreator === \"string\" ? typeOrActionCreator : typeOrActionCreator.type;\n if (!type) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"`context.addCase` cannot be called with an empty action type\");\n }\n if (type in context.sliceCaseReducersByType) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"`context.addCase` cannot be called with two reducers for the same action type: \" + type);\n }\n context.sliceCaseReducersByType[type] = reducer2;\n return contextMethods;\n },\n addMatcher(matcher, reducer2) {\n context.sliceMatchers.push({\n matcher,\n reducer: reducer2\n });\n return contextMethods;\n },\n exposeAction(name2, actionCreator) {\n context.actionCreators[name2] = actionCreator;\n return contextMethods;\n },\n exposeCaseReducer(name2, reducer2) {\n context.sliceCaseReducersByName[name2] = reducer2;\n return contextMethods;\n }\n };\n reducerNames.forEach((reducerName) => {\n const reducerDefinition = reducers[reducerName];\n const reducerDetails = {\n reducerName,\n type: getType(name, reducerName),\n createNotation: typeof options.reducers === \"function\"\n };\n if (isAsyncThunkSliceReducerDefinition(reducerDefinition)) {\n handleThunkCaseReducerDefinition(reducerDetails, reducerDefinition, contextMethods, cAT);\n } else {\n handleNormalReducerDefinition(reducerDetails, reducerDefinition, contextMethods);\n }\n });\n function buildReducer() {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof options.extraReducers === \"object\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice\");\n }\n }\n const [extraReducers = {}, actionMatchers = [], defaultCaseReducer = void 0] = typeof options.extraReducers === \"function\" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers];\n const finalCaseReducers = {\n ...extraReducers,\n ...context.sliceCaseReducersByType\n };\n return createReducer(options.initialState, (builder) => {\n for (let key in finalCaseReducers) {\n builder.addCase(key, finalCaseReducers[key]);\n }\n for (let sM of context.sliceMatchers) {\n builder.addMatcher(sM.matcher, sM.reducer);\n }\n for (let m of actionMatchers) {\n builder.addMatcher(m.matcher, m.reducer);\n }\n if (defaultCaseReducer) {\n builder.addDefaultCase(defaultCaseReducer);\n }\n });\n }\n const selectSelf = (state) => state;\n const injectedSelectorCache = /* @__PURE__ */ new Map();\n let _reducer;\n function reducer(state, action) {\n if (!_reducer) _reducer = buildReducer();\n return _reducer(state, action);\n }\n function getInitialState() {\n if (!_reducer) _reducer = buildReducer();\n return _reducer.getInitialState();\n }\n function makeSelectorProps(reducerPath2, injected = false) {\n function selectSlice(state) {\n let sliceState = state[reducerPath2];\n if (typeof sliceState === \"undefined\") {\n if (injected) {\n sliceState = getInitialState();\n } else if (process.env.NODE_ENV !== \"production\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : \"selectSlice returned undefined for an uninjected slice reducer\");\n }\n }\n return sliceState;\n }\n function getSelectors(selectState = selectSelf) {\n const selectorCache = getOrInsertComputed(injectedSelectorCache, injected, () => /* @__PURE__ */ new WeakMap());\n return getOrInsertComputed(selectorCache, selectState, () => {\n const map = {};\n for (const [name2, selector] of Object.entries(options.selectors ?? {})) {\n map[name2] = wrapSelector(selector, selectState, getInitialState, injected);\n }\n return map;\n });\n }\n return {\n reducerPath: reducerPath2,\n getSelectors,\n get selectors() {\n return getSelectors(selectSlice);\n },\n selectSlice\n };\n }\n const slice = {\n name,\n reducer,\n actions: context.actionCreators,\n caseReducers: context.sliceCaseReducersByName,\n getInitialState,\n ...makeSelectorProps(reducerPath),\n injectInto(injectable, {\n reducerPath: pathOpt,\n ...config\n } = {}) {\n const newReducerPath = pathOpt ?? reducerPath;\n injectable.inject({\n reducerPath: newReducerPath,\n reducer\n }, config);\n return {\n ...slice,\n ...makeSelectorProps(newReducerPath, true)\n };\n }\n };\n return slice;\n };\n}\nfunction wrapSelector(selector, selectState, getInitialState, injected) {\n function wrapper(rootState, ...args) {\n let sliceState = selectState(rootState);\n if (typeof sliceState === \"undefined\") {\n if (injected) {\n sliceState = getInitialState();\n } else if (process.env.NODE_ENV !== \"production\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"selectState returned undefined for an uninjected slice reducer\");\n }\n }\n return selector(sliceState, ...args);\n }\n wrapper.unwrapped = selector;\n return wrapper;\n}\nvar createSlice = /* @__PURE__ */ buildCreateSlice();\nfunction buildReducerCreators() {\n function asyncThunk(payloadCreator, config) {\n return {\n _reducerDefinitionType: \"asyncThunk\" /* asyncThunk */,\n payloadCreator,\n ...config\n };\n }\n asyncThunk.withTypes = () => asyncThunk;\n return {\n reducer(caseReducer) {\n return Object.assign({\n // hack so the wrapping function has the same name as the original\n // we need to create a wrapper so the `reducerDefinitionType` is not assigned to the original\n [caseReducer.name](...args) {\n return caseReducer(...args);\n }\n }[caseReducer.name], {\n _reducerDefinitionType: \"reducer\" /* reducer */\n });\n },\n preparedReducer(prepare, reducer) {\n return {\n _reducerDefinitionType: \"reducerWithPrepare\" /* reducerWithPrepare */,\n prepare,\n reducer\n };\n },\n asyncThunk\n };\n}\nfunction handleNormalReducerDefinition({\n type,\n reducerName,\n createNotation\n}, maybeReducerWithPrepare, context) {\n let caseReducer;\n let prepareCallback;\n if (\"reducer\" in maybeReducerWithPrepare) {\n if (createNotation && !isCaseReducerWithPrepareDefinition(maybeReducerWithPrepare)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(17) : \"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.\");\n }\n caseReducer = maybeReducerWithPrepare.reducer;\n prepareCallback = maybeReducerWithPrepare.prepare;\n } else {\n caseReducer = maybeReducerWithPrepare;\n }\n context.addCase(type, caseReducer).exposeCaseReducer(reducerName, caseReducer).exposeAction(reducerName, prepareCallback ? createAction(type, prepareCallback) : createAction(type));\n}\nfunction isAsyncThunkSliceReducerDefinition(reducerDefinition) {\n return reducerDefinition._reducerDefinitionType === \"asyncThunk\" /* asyncThunk */;\n}\nfunction isCaseReducerWithPrepareDefinition(reducerDefinition) {\n return reducerDefinition._reducerDefinitionType === \"reducerWithPrepare\" /* reducerWithPrepare */;\n}\nfunction handleThunkCaseReducerDefinition({\n type,\n reducerName\n}, reducerDefinition, context, cAT) {\n if (!cAT) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(18) : \"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.\");\n }\n const {\n payloadCreator,\n fulfilled,\n pending,\n rejected,\n settled,\n options\n } = reducerDefinition;\n const thunk = cAT(type, payloadCreator, options);\n context.exposeAction(reducerName, thunk);\n if (fulfilled) {\n context.addCase(thunk.fulfilled, fulfilled);\n }\n if (pending) {\n context.addCase(thunk.pending, pending);\n }\n if (rejected) {\n context.addCase(thunk.rejected, rejected);\n }\n if (settled) {\n context.addMatcher(thunk.settled, settled);\n }\n context.exposeCaseReducer(reducerName, {\n fulfilled: fulfilled || noop,\n pending: pending || noop,\n rejected: rejected || noop,\n settled: settled || noop\n });\n}\nfunction noop() {\n}\n\n// src/entities/entity_state.ts\nfunction getInitialEntityState() {\n return {\n ids: [],\n entities: {}\n };\n}\nfunction createInitialStateFactory(stateAdapter) {\n function getInitialState(additionalState = {}, entities) {\n const state = Object.assign(getInitialEntityState(), additionalState);\n return entities ? stateAdapter.setAll(state, entities) : state;\n }\n return {\n getInitialState\n };\n}\n\n// src/entities/state_selectors.ts\nfunction createSelectorsFactory() {\n function getSelectors(selectState, options = {}) {\n const {\n createSelector: createSelector2 = createDraftSafeSelector\n } = options;\n const selectIds = (state) => state.ids;\n const selectEntities = (state) => state.entities;\n const selectAll = createSelector2(selectIds, selectEntities, (ids, entities) => ids.map((id) => entities[id]));\n const selectId = (_, id) => id;\n const selectById = (entities, id) => entities[id];\n const selectTotal = createSelector2(selectIds, (ids) => ids.length);\n if (!selectState) {\n return {\n selectIds,\n selectEntities,\n selectAll,\n selectTotal,\n selectById: createSelector2(selectEntities, selectId, selectById)\n };\n }\n const selectGlobalizedEntities = createSelector2(selectState, selectEntities);\n return {\n selectIds: createSelector2(selectState, selectIds),\n selectEntities: selectGlobalizedEntities,\n selectAll: createSelector2(selectState, selectAll),\n selectTotal: createSelector2(selectState, selectTotal),\n selectById: createSelector2(selectGlobalizedEntities, selectId, selectById)\n };\n }\n return {\n getSelectors\n };\n}\n\n// src/entities/state_adapter.ts\nimport { produce as createNextState3, isDraft as isDraft3 } from \"immer\";\nvar isDraftTyped = isDraft3;\nfunction createSingleArgumentStateOperator(mutator) {\n const operator = createStateOperator((_, state) => mutator(state));\n return function operation(state) {\n return operator(state, void 0);\n };\n}\nfunction createStateOperator(mutator) {\n return function operation(state, arg) {\n function isPayloadActionArgument(arg2) {\n return isFSA(arg2);\n }\n const runMutator = (draft) => {\n if (isPayloadActionArgument(arg)) {\n mutator(arg.payload, draft);\n } else {\n mutator(arg, draft);\n }\n };\n if (isDraftTyped(state)) {\n runMutator(state);\n return state;\n }\n return createNextState3(state, runMutator);\n };\n}\n\n// src/entities/utils.ts\nimport { current as current2, isDraft as isDraft4 } from \"immer\";\nfunction selectIdValue(entity, selectId) {\n const key = selectId(entity);\n if (process.env.NODE_ENV !== \"production\" && key === void 0) {\n console.warn(\"The entity passed to the `selectId` implementation returned undefined.\", \"You should probably provide your own `selectId` implementation.\", \"The entity that was passed:\", entity, \"The `selectId` implementation:\", selectId.toString());\n }\n return key;\n}\nfunction ensureEntitiesArray(entities) {\n if (!Array.isArray(entities)) {\n entities = Object.values(entities);\n }\n return entities;\n}\nfunction getCurrent(value) {\n return isDraft4(value) ? current2(value) : value;\n}\nfunction splitAddedUpdatedEntities(newEntities, selectId, state) {\n newEntities = ensureEntitiesArray(newEntities);\n const existingIdsArray = getCurrent(state.ids);\n const existingIds = new Set(existingIdsArray);\n const added = [];\n const updated = [];\n for (const entity of newEntities) {\n const id = selectIdValue(entity, selectId);\n if (existingIds.has(id)) {\n updated.push({\n id,\n changes: entity\n });\n } else {\n added.push(entity);\n }\n }\n return [added, updated, existingIdsArray];\n}\n\n// src/entities/unsorted_state_adapter.ts\nfunction createUnsortedStateAdapter(selectId) {\n function addOneMutably(entity, state) {\n const key = selectIdValue(entity, selectId);\n if (key in state.entities) {\n return;\n }\n state.ids.push(key);\n state.entities[key] = entity;\n }\n function addManyMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n for (const entity of newEntities) {\n addOneMutably(entity, state);\n }\n }\n function setOneMutably(entity, state) {\n const key = selectIdValue(entity, selectId);\n if (!(key in state.entities)) {\n state.ids.push(key);\n }\n ;\n state.entities[key] = entity;\n }\n function setManyMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n for (const entity of newEntities) {\n setOneMutably(entity, state);\n }\n }\n function setAllMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n state.ids = [];\n state.entities = {};\n addManyMutably(newEntities, state);\n }\n function removeOneMutably(key, state) {\n return removeManyMutably([key], state);\n }\n function removeManyMutably(keys, state) {\n let didMutate = false;\n keys.forEach((key) => {\n if (key in state.entities) {\n delete state.entities[key];\n didMutate = true;\n }\n });\n if (didMutate) {\n state.ids = state.ids.filter((id) => id in state.entities);\n }\n }\n function removeAllMutably(state) {\n Object.assign(state, {\n ids: [],\n entities: {}\n });\n }\n function takeNewKey(keys, update, state) {\n const original3 = state.entities[update.id];\n if (original3 === void 0) {\n return false;\n }\n const updated = Object.assign({}, original3, update.changes);\n const newKey = selectIdValue(updated, selectId);\n const hasNewKey = newKey !== update.id;\n if (hasNewKey) {\n keys[update.id] = newKey;\n delete state.entities[update.id];\n }\n ;\n state.entities[newKey] = updated;\n return hasNewKey;\n }\n function updateOneMutably(update, state) {\n return updateManyMutably([update], state);\n }\n function updateManyMutably(updates, state) {\n const newKeys = {};\n const updatesPerEntity = {};\n updates.forEach((update) => {\n if (update.id in state.entities) {\n updatesPerEntity[update.id] = {\n id: update.id,\n // Spreads ignore falsy values, so this works even if there isn't\n // an existing update already at this key\n changes: {\n ...updatesPerEntity[update.id]?.changes,\n ...update.changes\n }\n };\n }\n });\n updates = Object.values(updatesPerEntity);\n const didMutateEntities = updates.length > 0;\n if (didMutateEntities) {\n const didMutateIds = updates.filter((update) => takeNewKey(newKeys, update, state)).length > 0;\n if (didMutateIds) {\n state.ids = Object.values(state.entities).map((e) => selectIdValue(e, selectId));\n }\n }\n }\n function upsertOneMutably(entity, state) {\n return upsertManyMutably([entity], state);\n }\n function upsertManyMutably(newEntities, state) {\n const [added, updated] = splitAddedUpdatedEntities(newEntities, selectId, state);\n updateManyMutably(updated, state);\n addManyMutably(added, state);\n }\n return {\n removeAll: createSingleArgumentStateOperator(removeAllMutably),\n addOne: createStateOperator(addOneMutably),\n addMany: createStateOperator(addManyMutably),\n setOne: createStateOperator(setOneMutably),\n setMany: createStateOperator(setManyMutably),\n setAll: createStateOperator(setAllMutably),\n updateOne: createStateOperator(updateOneMutably),\n updateMany: createStateOperator(updateManyMutably),\n upsertOne: createStateOperator(upsertOneMutably),\n upsertMany: createStateOperator(upsertManyMutably),\n removeOne: createStateOperator(removeOneMutably),\n removeMany: createStateOperator(removeManyMutably)\n };\n}\n\n// src/entities/sorted_state_adapter.ts\nfunction findInsertIndex(sortedItems, item, comparisonFunction) {\n let lowIndex = 0;\n let highIndex = sortedItems.length;\n while (lowIndex < highIndex) {\n let middleIndex = lowIndex + highIndex >>> 1;\n const currentItem = sortedItems[middleIndex];\n const res = comparisonFunction(item, currentItem);\n if (res >= 0) {\n lowIndex = middleIndex + 1;\n } else {\n highIndex = middleIndex;\n }\n }\n return lowIndex;\n}\nfunction insert(sortedItems, item, comparisonFunction) {\n const insertAtIndex = findInsertIndex(sortedItems, item, comparisonFunction);\n sortedItems.splice(insertAtIndex, 0, item);\n return sortedItems;\n}\nfunction createSortedStateAdapter(selectId, comparer) {\n const {\n removeOne,\n removeMany,\n removeAll\n } = createUnsortedStateAdapter(selectId);\n function addOneMutably(entity, state) {\n return addManyMutably([entity], state);\n }\n function addManyMutably(newEntities, state, existingIds) {\n newEntities = ensureEntitiesArray(newEntities);\n const existingKeys = new Set(existingIds ?? getCurrent(state.ids));\n const models = newEntities.filter((model) => !existingKeys.has(selectIdValue(model, selectId)));\n if (models.length !== 0) {\n mergeFunction(state, models);\n }\n }\n function setOneMutably(entity, state) {\n return setManyMutably([entity], state);\n }\n function setManyMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n if (newEntities.length !== 0) {\n for (const item of newEntities) {\n delete state.entities[selectId(item)];\n }\n mergeFunction(state, newEntities);\n }\n }\n function setAllMutably(newEntities, state) {\n newEntities = ensureEntitiesArray(newEntities);\n state.entities = {};\n state.ids = [];\n addManyMutably(newEntities, state, []);\n }\n function updateOneMutably(update, state) {\n return updateManyMutably([update], state);\n }\n function updateManyMutably(updates, state) {\n let appliedUpdates = false;\n let replacedIds = false;\n for (let update of updates) {\n const entity = state.entities[update.id];\n if (!entity) {\n continue;\n }\n appliedUpdates = true;\n Object.assign(entity, update.changes);\n const newId = selectId(entity);\n if (update.id !== newId) {\n replacedIds = true;\n delete state.entities[update.id];\n const oldIndex = state.ids.indexOf(update.id);\n state.ids[oldIndex] = newId;\n state.entities[newId] = entity;\n }\n }\n if (appliedUpdates) {\n mergeFunction(state, [], appliedUpdates, replacedIds);\n }\n }\n function upsertOneMutably(entity, state) {\n return upsertManyMutably([entity], state);\n }\n function upsertManyMutably(newEntities, state) {\n const [added, updated, existingIdsArray] = splitAddedUpdatedEntities(newEntities, selectId, state);\n if (updated.length) {\n updateManyMutably(updated, state);\n }\n if (added.length) {\n addManyMutably(added, state, existingIdsArray);\n }\n }\n function areArraysEqual(a, b) {\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n if (a[i] === b[i]) {\n continue;\n }\n return false;\n }\n return true;\n }\n const mergeFunction = (state, addedItems, appliedUpdates, replacedIds) => {\n const currentEntities = getCurrent(state.entities);\n const currentIds = getCurrent(state.ids);\n const stateEntities = state.entities;\n let ids = currentIds;\n if (replacedIds) {\n ids = new Set(currentIds);\n }\n let sortedEntities = [];\n for (const id of ids) {\n const entity = currentEntities[id];\n if (entity) {\n sortedEntities.push(entity);\n }\n }\n const wasPreviouslyEmpty = sortedEntities.length === 0;\n for (const item of addedItems) {\n stateEntities[selectId(item)] = item;\n if (!wasPreviouslyEmpty) {\n insert(sortedEntities, item, comparer);\n }\n }\n if (wasPreviouslyEmpty) {\n sortedEntities = addedItems.slice().sort(comparer);\n } else if (appliedUpdates) {\n sortedEntities.sort(comparer);\n }\n const newSortedIds = sortedEntities.map(selectId);\n if (!areArraysEqual(currentIds, newSortedIds)) {\n state.ids = newSortedIds;\n }\n };\n return {\n removeOne,\n removeMany,\n removeAll,\n addOne: createStateOperator(addOneMutably),\n updateOne: createStateOperator(updateOneMutably),\n upsertOne: createStateOperator(upsertOneMutably),\n setOne: createStateOperator(setOneMutably),\n setMany: createStateOperator(setManyMutably),\n setAll: createStateOperator(setAllMutably),\n addMany: createStateOperator(addManyMutably),\n updateMany: createStateOperator(updateManyMutably),\n upsertMany: createStateOperator(upsertManyMutably)\n };\n}\n\n// src/entities/create_adapter.ts\nfunction createEntityAdapter(options = {}) {\n const {\n selectId,\n sortComparer\n } = {\n sortComparer: false,\n selectId: (instance) => instance.id,\n ...options\n };\n const stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);\n const stateFactory = createInitialStateFactory(stateAdapter);\n const selectorsFactory = createSelectorsFactory();\n return {\n selectId,\n sortComparer,\n ...stateFactory,\n ...selectorsFactory,\n ...stateAdapter\n };\n}\n\n// src/listenerMiddleware/index.ts\nimport { isAction as isAction3 } from \"redux\";\n\n// src/listenerMiddleware/exceptions.ts\nvar task = \"task\";\nvar listener = \"listener\";\nvar completed = \"completed\";\nvar cancelled = \"cancelled\";\nvar taskCancelled = `task-${cancelled}`;\nvar taskCompleted = `task-${completed}`;\nvar listenerCancelled = `${listener}-${cancelled}`;\nvar listenerCompleted = `${listener}-${completed}`;\nvar TaskAbortError = class {\n constructor(code) {\n this.code = code;\n this.message = `${task} ${cancelled} (reason: ${code})`;\n }\n name = \"TaskAbortError\";\n message;\n};\n\n// src/listenerMiddleware/utils.ts\nvar assertFunction = (func, expected) => {\n if (typeof func !== \"function\") {\n throw new TypeError(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(32) : `${expected} is not a function`);\n }\n};\nvar noop2 = () => {\n};\nvar catchRejection = (promise, onError = noop2) => {\n promise.catch(onError);\n return promise;\n};\nvar addAbortSignalListener = (abortSignal, callback) => {\n abortSignal.addEventListener(\"abort\", callback, {\n once: true\n });\n return () => abortSignal.removeEventListener(\"abort\", callback);\n};\nvar abortControllerWithReason = (abortController, reason) => {\n const signal = abortController.signal;\n if (signal.aborted) {\n return;\n }\n if (!(\"reason\" in signal)) {\n Object.defineProperty(signal, \"reason\", {\n enumerable: true,\n value: reason,\n configurable: true,\n writable: true\n });\n }\n ;\n abortController.abort(reason);\n};\n\n// src/listenerMiddleware/task.ts\nvar validateActive = (signal) => {\n if (signal.aborted) {\n const {\n reason\n } = signal;\n throw new TaskAbortError(reason);\n }\n};\nfunction raceWithSignal(signal, promise) {\n let cleanup = noop2;\n return new Promise((resolve, reject) => {\n const notifyRejection = () => reject(new TaskAbortError(signal.reason));\n if (signal.aborted) {\n notifyRejection();\n return;\n }\n cleanup = addAbortSignalListener(signal, notifyRejection);\n promise.finally(() => cleanup()).then(resolve, reject);\n }).finally(() => {\n cleanup = noop2;\n });\n}\nvar runTask = async (task2, cleanUp) => {\n try {\n await Promise.resolve();\n const value = await task2();\n return {\n status: \"ok\",\n value\n };\n } catch (error) {\n return {\n status: error instanceof TaskAbortError ? \"cancelled\" : \"rejected\",\n error\n };\n } finally {\n cleanUp?.();\n }\n};\nvar createPause = (signal) => {\n return (promise) => {\n return catchRejection(raceWithSignal(signal, promise).then((output) => {\n validateActive(signal);\n return output;\n }));\n };\n};\nvar createDelay = (signal) => {\n const pause = createPause(signal);\n return (timeoutMs) => {\n return pause(new Promise((resolve) => setTimeout(resolve, timeoutMs)));\n };\n};\n\n// src/listenerMiddleware/index.ts\nvar {\n assign\n} = Object;\nvar INTERNAL_NIL_TOKEN = {};\nvar alm = \"listenerMiddleware\";\nvar createFork = (parentAbortSignal, parentBlockingPromises) => {\n const linkControllers = (controller) => addAbortSignalListener(parentAbortSignal, () => abortControllerWithReason(controller, parentAbortSignal.reason));\n return (taskExecutor, opts) => {\n assertFunction(taskExecutor, \"taskExecutor\");\n const childAbortController = new AbortController();\n linkControllers(childAbortController);\n const result = runTask(async () => {\n validateActive(parentAbortSignal);\n validateActive(childAbortController.signal);\n const result2 = await taskExecutor({\n pause: createPause(childAbortController.signal),\n delay: createDelay(childAbortController.signal),\n signal: childAbortController.signal\n });\n validateActive(childAbortController.signal);\n return result2;\n }, () => abortControllerWithReason(childAbortController, taskCompleted));\n if (opts?.autoJoin) {\n parentBlockingPromises.push(result.catch(noop2));\n }\n return {\n result: createPause(parentAbortSignal)(result),\n cancel() {\n abortControllerWithReason(childAbortController, taskCancelled);\n }\n };\n };\n};\nvar createTakePattern = (startListening, signal) => {\n const take = async (predicate, timeout) => {\n validateActive(signal);\n let unsubscribe = () => {\n };\n const tuplePromise = new Promise((resolve, reject) => {\n let stopListening = startListening({\n predicate,\n effect: (action, listenerApi) => {\n listenerApi.unsubscribe();\n resolve([action, listenerApi.getState(), listenerApi.getOriginalState()]);\n }\n });\n unsubscribe = () => {\n stopListening();\n reject();\n };\n });\n const promises = [tuplePromise];\n if (timeout != null) {\n promises.push(new Promise((resolve) => setTimeout(resolve, timeout, null)));\n }\n try {\n const output = await raceWithSignal(signal, Promise.race(promises));\n validateActive(signal);\n return output;\n } finally {\n unsubscribe();\n }\n };\n return (predicate, timeout) => catchRejection(take(predicate, timeout));\n};\nvar getListenerEntryPropsFrom = (options) => {\n let {\n type,\n actionCreator,\n matcher,\n predicate,\n effect\n } = options;\n if (type) {\n predicate = createAction(type).match;\n } else if (actionCreator) {\n type = actionCreator.type;\n predicate = actionCreator.match;\n } else if (matcher) {\n predicate = matcher;\n } else if (predicate) {\n } else {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(21) : \"Creating or removing a listener requires one of the known fields for matching an action\");\n }\n assertFunction(effect, \"options.listener\");\n return {\n predicate,\n type,\n effect\n };\n};\nvar createListenerEntry = /* @__PURE__ */ assign((options) => {\n const {\n type,\n predicate,\n effect\n } = getListenerEntryPropsFrom(options);\n const entry = {\n id: nanoid(),\n effect,\n type,\n predicate,\n pending: /* @__PURE__ */ new Set(),\n unsubscribe: () => {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(22) : \"Unsubscribe not initialized\");\n }\n };\n return entry;\n}, {\n withTypes: () => createListenerEntry\n});\nvar findListenerEntry = (listenerMap, options) => {\n const {\n type,\n effect,\n predicate\n } = getListenerEntryPropsFrom(options);\n return Array.from(listenerMap.values()).find((entry) => {\n const matchPredicateOrType = typeof type === \"string\" ? entry.type === type : entry.predicate === predicate;\n return matchPredicateOrType && entry.effect === effect;\n });\n};\nvar cancelActiveListeners = (entry) => {\n entry.pending.forEach((controller) => {\n abortControllerWithReason(controller, listenerCancelled);\n });\n};\nvar createClearListenerMiddleware = (listenerMap) => {\n return () => {\n listenerMap.forEach(cancelActiveListeners);\n listenerMap.clear();\n };\n};\nvar safelyNotifyError = (errorHandler, errorToNotify, errorInfo) => {\n try {\n errorHandler(errorToNotify, errorInfo);\n } catch (errorHandlerError) {\n setTimeout(() => {\n throw errorHandlerError;\n }, 0);\n }\n};\nvar addListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/add`), {\n withTypes: () => addListener\n});\nvar clearAllListeners = /* @__PURE__ */ createAction(`${alm}/removeAll`);\nvar removeListener = /* @__PURE__ */ assign(/* @__PURE__ */ createAction(`${alm}/remove`), {\n withTypes: () => removeListener\n});\nvar defaultErrorHandler = (...args) => {\n console.error(`${alm}/error`, ...args);\n};\nvar createListenerMiddleware = (middlewareOptions = {}) => {\n const listenerMap = /* @__PURE__ */ new Map();\n const {\n extra,\n onError = defaultErrorHandler\n } = middlewareOptions;\n assertFunction(onError, \"onError\");\n const insertEntry = (entry) => {\n entry.unsubscribe = () => listenerMap.delete(entry.id);\n listenerMap.set(entry.id, entry);\n return (cancelOptions) => {\n entry.unsubscribe();\n if (cancelOptions?.cancelActive) {\n cancelActiveListeners(entry);\n }\n };\n };\n const startListening = (options) => {\n const entry = findListenerEntry(listenerMap, options) ?? createListenerEntry(options);\n return insertEntry(entry);\n };\n assign(startListening, {\n withTypes: () => startListening\n });\n const stopListening = (options) => {\n const entry = findListenerEntry(listenerMap, options);\n if (entry) {\n entry.unsubscribe();\n if (options.cancelActive) {\n cancelActiveListeners(entry);\n }\n }\n return !!entry;\n };\n assign(stopListening, {\n withTypes: () => stopListening\n });\n const notifyListener = async (entry, action, api, getOriginalState) => {\n const internalTaskController = new AbortController();\n const take = createTakePattern(startListening, internalTaskController.signal);\n const autoJoinPromises = [];\n try {\n entry.pending.add(internalTaskController);\n await Promise.resolve(entry.effect(\n action,\n // Use assign() rather than ... to avoid extra helper functions added to bundle\n assign({}, api, {\n getOriginalState,\n condition: (predicate, timeout) => take(predicate, timeout).then(Boolean),\n take,\n delay: createDelay(internalTaskController.signal),\n pause: createPause(internalTaskController.signal),\n extra,\n signal: internalTaskController.signal,\n fork: createFork(internalTaskController.signal, autoJoinPromises),\n unsubscribe: entry.unsubscribe,\n subscribe: () => {\n listenerMap.set(entry.id, entry);\n },\n cancelActiveListeners: () => {\n entry.pending.forEach((controller, _, set) => {\n if (controller !== internalTaskController) {\n abortControllerWithReason(controller, listenerCancelled);\n set.delete(controller);\n }\n });\n },\n cancel: () => {\n abortControllerWithReason(internalTaskController, listenerCancelled);\n entry.pending.delete(internalTaskController);\n },\n throwIfCancelled: () => {\n validateActive(internalTaskController.signal);\n }\n })\n ));\n } catch (listenerError) {\n if (!(listenerError instanceof TaskAbortError)) {\n safelyNotifyError(onError, listenerError, {\n raisedBy: \"effect\"\n });\n }\n } finally {\n await Promise.all(autoJoinPromises);\n abortControllerWithReason(internalTaskController, listenerCompleted);\n entry.pending.delete(internalTaskController);\n }\n };\n const clearListenerMiddleware = createClearListenerMiddleware(listenerMap);\n const middleware = (api) => (next) => (action) => {\n if (!isAction3(action)) {\n return next(action);\n }\n if (addListener.match(action)) {\n return startListening(action.payload);\n }\n if (clearAllListeners.match(action)) {\n clearListenerMiddleware();\n return;\n }\n if (removeListener.match(action)) {\n return stopListening(action.payload);\n }\n let originalState = api.getState();\n const getOriginalState = () => {\n if (originalState === INTERNAL_NIL_TOKEN) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(23) : `${alm}: getOriginalState can only be called synchronously`);\n }\n return originalState;\n };\n let result;\n try {\n result = next(action);\n if (listenerMap.size > 0) {\n const currentState = api.getState();\n const listenerEntries = Array.from(listenerMap.values());\n for (const entry of listenerEntries) {\n let runListener = false;\n try {\n runListener = entry.predicate(action, currentState, originalState);\n } catch (predicateError) {\n runListener = false;\n safelyNotifyError(onError, predicateError, {\n raisedBy: \"predicate\"\n });\n }\n if (!runListener) {\n continue;\n }\n notifyListener(entry, action, api, getOriginalState);\n }\n }\n } finally {\n originalState = INTERNAL_NIL_TOKEN;\n }\n return result;\n };\n return {\n middleware,\n startListening,\n stopListening,\n clearListeners: clearListenerMiddleware\n };\n};\n\n// src/dynamicMiddleware/index.ts\nimport { compose as compose3 } from \"redux\";\nvar createMiddlewareEntry = (middleware) => ({\n middleware,\n applied: /* @__PURE__ */ new Map()\n});\nvar matchInstance = (instanceId) => (action) => action?.meta?.instanceId === instanceId;\nvar createDynamicMiddleware = () => {\n const instanceId = nanoid();\n const middlewareMap = /* @__PURE__ */ new Map();\n const withMiddleware = Object.assign(createAction(\"dynamicMiddleware/add\", (...middlewares) => ({\n payload: middlewares,\n meta: {\n instanceId\n }\n })), {\n withTypes: () => withMiddleware\n });\n const addMiddleware = Object.assign(function addMiddleware2(...middlewares) {\n middlewares.forEach((middleware2) => {\n getOrInsertComputed(middlewareMap, middleware2, createMiddlewareEntry);\n });\n }, {\n withTypes: () => addMiddleware\n });\n const getFinalMiddleware = (api) => {\n const appliedMiddleware = Array.from(middlewareMap.values()).map((entry) => getOrInsertComputed(entry.applied, api, entry.middleware));\n return compose3(...appliedMiddleware);\n };\n const isWithMiddleware = isAllOf(withMiddleware, matchInstance(instanceId));\n const middleware = (api) => (next) => (action) => {\n if (isWithMiddleware(action)) {\n addMiddleware(...action.payload);\n return api.dispatch;\n }\n return getFinalMiddleware(api)(next)(action);\n };\n return {\n middleware,\n addMiddleware,\n withMiddleware,\n instanceId\n };\n};\n\n// src/combineSlices.ts\nimport { combineReducers as combineReducers2 } from \"redux\";\nvar isSliceLike = (maybeSliceLike) => \"reducerPath\" in maybeSliceLike && typeof maybeSliceLike.reducerPath === \"string\";\nvar getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));\nvar ORIGINAL_STATE = Symbol.for(\"rtk-state-proxy-original\");\nvar isStateProxy = (value) => !!value && !!value[ORIGINAL_STATE];\nvar stateProxyMap = /* @__PURE__ */ new WeakMap();\nvar createStateProxy = (state, reducerMap) => getOrInsertComputed(stateProxyMap, state, () => new Proxy(state, {\n get: (target, prop, receiver) => {\n if (prop === ORIGINAL_STATE) return target;\n const result = Reflect.get(target, prop, receiver);\n if (typeof result === \"undefined\") {\n const reducer = reducerMap[prop.toString()];\n if (reducer) {\n const reducerResult = reducer(void 0, {\n type: nanoid()\n });\n if (typeof reducerResult === \"undefined\") {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(24) : `The slice reducer for key \"${prop.toString()}\" returned undefined when called for selector(). If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);\n }\n return reducerResult;\n }\n }\n return result;\n }\n}));\nvar original = (state) => {\n if (!isStateProxy(state)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(25) : \"original must be used on state Proxy\");\n }\n return state[ORIGINAL_STATE];\n};\nvar noopReducer = (state = {}) => state;\nfunction combineSlices(...slices) {\n const reducerMap = Object.fromEntries(getReducers(slices));\n const getReducer = () => Object.keys(reducerMap).length ? combineReducers2(reducerMap) : noopReducer;\n let reducer = getReducer();\n function combinedReducer(state, action) {\n return reducer(state, action);\n }\n combinedReducer.withLazyLoadedSlices = () => combinedReducer;\n const inject = (slice, config = {}) => {\n const {\n reducerPath,\n reducer: reducerToInject\n } = slice;\n const currentReducer = reducerMap[reducerPath];\n if (!config.overrideExisting && currentReducer && currentReducer !== reducerToInject) {\n if (typeof process !== \"undefined\" && process.env.NODE_ENV === \"development\") {\n console.error(`called \\`inject\\` to override already-existing reducer ${reducerPath} without specifying \\`overrideExisting: true\\``);\n }\n return combinedReducer;\n }\n reducerMap[reducerPath] = reducerToInject;\n reducer = getReducer();\n return combinedReducer;\n };\n const selector = Object.assign(function makeSelector(selectorFn, selectState) {\n return function selector2(state, ...args) {\n return selectorFn(createStateProxy(selectState ? selectState(state, ...args) : state, reducerMap), ...args);\n };\n }, {\n original\n });\n return Object.assign(combinedReducer, {\n inject,\n selector\n });\n}\n\n// src/formatProdErrorMessage.ts\nfunction formatProdErrorMessage(code) {\n return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;\n}\nexport {\n ReducerType,\n SHOULD_AUTOBATCH,\n TaskAbortError,\n Tuple,\n addListener,\n asyncThunkCreator,\n autoBatchEnhancer,\n buildCreateSlice,\n clearAllListeners,\n combineSlices,\n configureStore,\n createAction,\n createActionCreatorInvariantMiddleware,\n createAsyncThunk,\n createDraftSafeSelector,\n createDraftSafeSelectorCreator,\n createDynamicMiddleware,\n createEntityAdapter,\n createImmutableStateInvariantMiddleware,\n createListenerMiddleware,\n produce as createNextState,\n createReducer,\n createSelector,\n createSelectorCreator2 as createSelectorCreator,\n createSerializableStateInvariantMiddleware,\n createSlice,\n current3 as current,\n findNonSerializableValue,\n formatProdErrorMessage,\n freeze,\n isActionCreator,\n isAllOf,\n isAnyOf,\n isAsyncThunkAction,\n isDraft5 as isDraft,\n isFSA as isFluxStandardAction,\n isFulfilled,\n isImmutableDefault,\n isPending,\n isPlain,\n isRejected,\n isRejectedWithValue,\n lruMemoize,\n miniSerializeError,\n nanoid,\n original2 as original,\n prepareAutoBatched,\n removeListener,\n unwrapResult,\n weakMapMemoize2 as weakMapMemoize\n};\n//# sourceMappingURL=redux-toolkit.modern.mjs.map","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { ISurveyQuestion } from '../types/types';\n\nexport interface Question {\n id: number;\n type: string;\n imgSrc: string;\n label: string;\n questionType?: number;\n questionOrder?: number;\n pageNumber?: number;\n pageHeading?: string;\n pageType?: string;\n\n}\n\nexport interface IsActiveCard {\n questionOrderId: number;\n imgSrc: string;\n questionTypeId: number;\n}\n\ninterface QuestionState {\n selectedQuestionTypes: Question[];\n draggedItem: ISurveyQuestion[];\n isActiveCard: IsActiveCard | null;\n selectedOptions: Record;\n surveyData: ISurveyQuestion[];\n signleSurveyQuestionData: ISurveyQuestion[];\n pageNumber: number; \n pageHeading: string;\n pageType: string;\n surveySavedData: ISurveyQuestion[];\n}\n\nconst initialState: QuestionState = {\n selectedQuestionTypes: [],\n draggedItem: [],\n isActiveCard: null,\n selectedOptions: {},\n surveyData: [],\n signleSurveyQuestionData: [],\n pageNumber: 1,\n pageHeading: '',\n pageType: '',\n surveySavedData: [],\n};\n\nconst questionSlice = createSlice({\n name: 'question',\n initialState,\n reducers: {\n setQuestionType(state, action: PayloadAction<{ questions: Question[] }>) {\n state.selectedQuestionTypes = [...state.selectedQuestionTypes, ...action.payload.questions];\n },\n\n setActiveCard(state, action: PayloadAction) {\n state.isActiveCard = action.payload;\n },\n\n setDraggedItem(state, action: PayloadAction) {\n state.draggedItem = action.payload;\n },\n\n resetDraggedItem(state) {\n state.draggedItem = [];\n },\n\n setSelectedOption(state, action: PayloadAction<{ questionId: number | string; selectedOption: string }>) {\n const { questionId, selectedOption } = action.payload;\n state.selectedOptions[+questionId] = selectedOption;\n },\n\n setSurveyData(state, action: PayloadAction) {\n // const soretedaData = action.payload.slice().sort((a,b) => a.questionOrder - b.questionOrder);\n state.surveyData = action.payload;\n },\n\n setSingleSurveyQuestionData(state, action: PayloadAction) {\n // const soretedaData = action.payload.slice().sort((a,b) => a.questionOrder - b.questionOrder);\n state.signleSurveyQuestionData = action.payload;\n },\n\n setPageNumber(state, action: PayloadAction) {\n state.pageNumber = action.payload;\n },\n\n setPageHeading: (state, action: PayloadAction) => {\n state.pageHeading = action.payload;\n },\n setPageType: (state, action: PayloadAction) => {\n state.pageType = action.payload;\n },\n setSurveySavedData(state, action: PayloadAction) {\n state.surveySavedData = action.payload;\n },\n\n resetSurveyData(state) {\n state.selectedQuestionTypes = [];\n state.draggedItem = [];\n state.isActiveCard = null; // Reset to null or default\n state.selectedOptions = {};\n state.surveyData = [];\n state.signleSurveyQuestionData = [];\n state.pageNumber = 1;\n state.surveySavedData = [];\n },\n },\n});\n\nexport const {\n setQuestionType,\n setDraggedItem,\n resetDraggedItem,\n setActiveCard,\n setSelectedOption,\n setSurveyData,\n resetSurveyData,\n setSingleSurveyQuestionData,\n setPageNumber, \n setPageHeading,\n setPageType,\n setSurveySavedData,\n} = questionSlice.actions;\n\nexport default questionSlice.reducer;\n","import React from \"react\";\nimport \"./SpinnerAtom.scss\";\n\ninterface SpinnerAtomProps {\n colorSpinner?: boolean;\n}\nexport const SpinnerAtom: React.FC = ({\n colorSpinner = false\n}) => {\n return (\n <>\n {colorSpinner ? (\n
\n \n
\n ) : (\n
\n \n
\n )}\n \n );\n};\n","import clsx from \"clsx\";\nimport React from \"react\";\nimport { SpinnerAtom } from \"../spinner/SpinnerAtom\";\nimport \"./button.scss\";\n\nconst variants = {\n primary: \"brandPrimary\",\n secondary: \"brandSecondary\",\n tertiary: \"backgroundTertiary\",\n danger: \"button-red\",\n white: \"button-white\"\n} as const; // Use 'as const' to make the values of variants readonly and literal types\n\nconst sizes = {\n sm: \"button-sm\",\n md: \"button-md\",\n lg: \"button-lg\"\n} as const;\n\nconst colors = {\n white: \"btn-color-white\",\n blue: \"btn-color-blue\",\n black: \"btn-color-black\",\n theme: \"btn-color-theme\",\n grey: \"btn-color-grey\",\n navyblue: \"btn-color-navyblue\"\n} as const;\n\nexport type ButtonProps = React.ButtonHTMLAttributes & {\n variant?: keyof typeof variants; // 'keyof typeof variants' restricts it to keys in the variants object\n size?: keyof typeof sizes;\n color?: keyof typeof colors;\n label?: string;\n onClick?: () => void;\n className?: string;\n isLoading?: boolean;\n isDisable?: boolean;\n img?: string;\n reverse?: boolean;\n imgRight?: string;\n icon?: React.ReactNode; \n iconPosition?: 'left' | 'right';\n};\n\nexport const Button = React.forwardRef(\n (\n {\n className,\n reverse = false,\n variant = \"primary\",\n size = \"md\",\n color = \"white\",\n label,\n img = \"\",\n onClick,\n isLoading,\n imgRight = \"\",\n isDisable,\n icon,\n iconPosition = 'left',\n ...props\n },\n ref\n ) => {\n return (\n \n {isLoading ? (\n
\n \n
\n ) : (\n \n {iconPosition === 'left' && icon}\n {img && \"img\"}\n {label && {label}}\n {iconPosition === 'right' && icon}\n {imgRight && \"img\"}\n \n )}\n \n );\n }\n);\n\nButton.displayName = \"Button\";\n","/**\n * @license React\n * use-sync-external-store-with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = React.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/use-sync-external-store-with-selector.production.js');\n} else {\n module.exports = require('./cjs/use-sync-external-store-with-selector.development.js');\n}\n","// src/utils/react.ts\nimport * as React from \"react\";\n\n// src/utils/react-is.ts\nvar IS_REACT_19 = /* @__PURE__ */ React.version.startsWith(\"19\");\nvar REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for(\n IS_REACT_19 ? \"react.transitional.element\" : \"react.element\"\n);\nvar REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for(\"react.portal\");\nvar REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for(\"react.fragment\");\nvar REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for(\"react.strict_mode\");\nvar REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for(\"react.profiler\");\nvar REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for(\"react.consumer\");\nvar REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for(\"react.context\");\nvar REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for(\"react.forward_ref\");\nvar REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for(\"react.suspense\");\nvar REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for(\n \"react.suspense_list\"\n);\nvar REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for(\"react.memo\");\nvar REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for(\"react.lazy\");\nvar REACT_OFFSCREEN_TYPE = /* @__PURE__ */ Symbol.for(\"react.offscreen\");\nvar REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for(\n \"react.client.reference\"\n);\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nfunction isValidElementType(type) {\n return typeof type === \"string\" || typeof type === \"function\" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || typeof type === \"object\" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || type.getModuleId !== void 0) ? true : false;\n}\nfunction typeOf(object) {\n if (typeof object === \"object\" && object !== null) {\n const { $$typeof } = object;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (object = object.type, object) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return object;\n default:\n switch (object = object && object.$$typeof, object) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nfunction isContextConsumer(object) {\n return IS_REACT_19 ? typeOf(object) === REACT_CONSUMER_TYPE : typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\n\n// src/utils/warning.ts\nfunction warning(message) {\n if (typeof console !== \"undefined\" && typeof console.error === \"function\") {\n console.error(message);\n }\n try {\n throw new Error(message);\n } catch (e) {\n }\n}\n\n// src/connect/verifySubselectors.ts\nfunction verify(selector, methodName) {\n if (!selector) {\n throw new Error(`Unexpected value for ${methodName} in connect.`);\n } else if (methodName === \"mapStateToProps\" || methodName === \"mapDispatchToProps\") {\n if (!Object.prototype.hasOwnProperty.call(selector, \"dependsOnOwnProps\")) {\n warning(\n `The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`\n );\n }\n }\n}\nfunction verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {\n verify(mapStateToProps, \"mapStateToProps\");\n verify(mapDispatchToProps, \"mapDispatchToProps\");\n verify(mergeProps, \"mergeProps\");\n}\n\n// src/connect/selectorFactory.ts\nfunction pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, {\n areStatesEqual,\n areOwnPropsEqual,\n areStatePropsEqual\n}) {\n let hasRunAtLeastOnce = false;\n let state;\n let ownProps;\n let stateProps;\n let dispatchProps;\n let mergedProps;\n function handleFirstCall(firstState, firstOwnProps) {\n state = firstState;\n ownProps = firstOwnProps;\n stateProps = mapStateToProps(state, ownProps);\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n hasRunAtLeastOnce = true;\n return mergedProps;\n }\n function handleNewPropsAndNewState() {\n stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps)\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n function handleNewProps() {\n if (mapStateToProps.dependsOnOwnProps)\n stateProps = mapStateToProps(state, ownProps);\n if (mapDispatchToProps.dependsOnOwnProps)\n dispatchProps = mapDispatchToProps(dispatch, ownProps);\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n function handleNewState() {\n const nextStateProps = mapStateToProps(state, ownProps);\n const statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);\n stateProps = nextStateProps;\n if (statePropsChanged)\n mergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n return mergedProps;\n }\n function handleSubsequentCalls(nextState, nextOwnProps) {\n const propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);\n const stateChanged = !areStatesEqual(\n nextState,\n state,\n nextOwnProps,\n ownProps\n );\n state = nextState;\n ownProps = nextOwnProps;\n if (propsChanged && stateChanged) return handleNewPropsAndNewState();\n if (propsChanged) return handleNewProps();\n if (stateChanged) return handleNewState();\n return mergedProps;\n }\n return function pureFinalPropsSelector(nextState, nextOwnProps) {\n return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);\n };\n}\nfunction finalPropsSelectorFactory(dispatch, {\n initMapStateToProps,\n initMapDispatchToProps,\n initMergeProps,\n ...options\n}) {\n const mapStateToProps = initMapStateToProps(dispatch, options);\n const mapDispatchToProps = initMapDispatchToProps(dispatch, options);\n const mergeProps = initMergeProps(dispatch, options);\n if (process.env.NODE_ENV !== \"production\") {\n verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps);\n }\n return pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);\n}\n\n// src/utils/bindActionCreators.ts\nfunction bindActionCreators(actionCreators, dispatch) {\n const boundActionCreators = {};\n for (const key in actionCreators) {\n const actionCreator = actionCreators[key];\n if (typeof actionCreator === \"function\") {\n boundActionCreators[key] = (...args) => dispatch(actionCreator(...args));\n }\n }\n return boundActionCreators;\n}\n\n// src/utils/isPlainObject.ts\nfunction isPlainObject(obj) {\n if (typeof obj !== \"object\" || obj === null) return false;\n const proto = Object.getPrototypeOf(obj);\n if (proto === null) return true;\n let baseProto = proto;\n while (Object.getPrototypeOf(baseProto) !== null) {\n baseProto = Object.getPrototypeOf(baseProto);\n }\n return proto === baseProto;\n}\n\n// src/utils/verifyPlainObject.ts\nfunction verifyPlainObject(value, displayName, methodName) {\n if (!isPlainObject(value)) {\n warning(\n `${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`\n );\n }\n}\n\n// src/connect/wrapMapToProps.ts\nfunction wrapMapToPropsConstant(getConstant) {\n return function initConstantSelector(dispatch) {\n const constant = getConstant(dispatch);\n function constantSelector() {\n return constant;\n }\n constantSelector.dependsOnOwnProps = false;\n return constantSelector;\n };\n}\nfunction getDependsOnOwnProps(mapToProps) {\n return mapToProps.dependsOnOwnProps ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;\n}\nfunction wrapMapToPropsFunc(mapToProps, methodName) {\n return function initProxySelector(dispatch, { displayName }) {\n const proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {\n return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch, void 0);\n };\n proxy.dependsOnOwnProps = true;\n proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {\n proxy.mapToProps = mapToProps;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);\n let props = proxy(stateOrDispatch, ownProps);\n if (typeof props === \"function\") {\n proxy.mapToProps = props;\n proxy.dependsOnOwnProps = getDependsOnOwnProps(props);\n props = proxy(stateOrDispatch, ownProps);\n }\n if (process.env.NODE_ENV !== \"production\")\n verifyPlainObject(props, displayName, methodName);\n return props;\n };\n return proxy;\n };\n}\n\n// src/connect/invalidArgFactory.ts\nfunction createInvalidArgFactory(arg, name) {\n return (dispatch, options) => {\n throw new Error(\n `Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`\n );\n };\n}\n\n// src/connect/mapDispatchToProps.ts\nfunction mapDispatchToPropsFactory(mapDispatchToProps) {\n return mapDispatchToProps && typeof mapDispatchToProps === \"object\" ? wrapMapToPropsConstant(\n (dispatch) => (\n // @ts-ignore\n bindActionCreators(mapDispatchToProps, dispatch)\n )\n ) : !mapDispatchToProps ? wrapMapToPropsConstant((dispatch) => ({\n dispatch\n })) : typeof mapDispatchToProps === \"function\" ? (\n // @ts-ignore\n wrapMapToPropsFunc(mapDispatchToProps, \"mapDispatchToProps\")\n ) : createInvalidArgFactory(mapDispatchToProps, \"mapDispatchToProps\");\n}\n\n// src/connect/mapStateToProps.ts\nfunction mapStateToPropsFactory(mapStateToProps) {\n return !mapStateToProps ? wrapMapToPropsConstant(() => ({})) : typeof mapStateToProps === \"function\" ? (\n // @ts-ignore\n wrapMapToPropsFunc(mapStateToProps, \"mapStateToProps\")\n ) : createInvalidArgFactory(mapStateToProps, \"mapStateToProps\");\n}\n\n// src/connect/mergeProps.ts\nfunction defaultMergeProps(stateProps, dispatchProps, ownProps) {\n return { ...ownProps, ...stateProps, ...dispatchProps };\n}\nfunction wrapMergePropsFunc(mergeProps) {\n return function initMergePropsProxy(dispatch, { displayName, areMergedPropsEqual }) {\n let hasRunOnce = false;\n let mergedProps;\n return function mergePropsProxy(stateProps, dispatchProps, ownProps) {\n const nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);\n if (hasRunOnce) {\n if (!areMergedPropsEqual(nextMergedProps, mergedProps))\n mergedProps = nextMergedProps;\n } else {\n hasRunOnce = true;\n mergedProps = nextMergedProps;\n if (process.env.NODE_ENV !== \"production\")\n verifyPlainObject(mergedProps, displayName, \"mergeProps\");\n }\n return mergedProps;\n };\n };\n}\nfunction mergePropsFactory(mergeProps) {\n return !mergeProps ? () => defaultMergeProps : typeof mergeProps === \"function\" ? wrapMergePropsFunc(mergeProps) : createInvalidArgFactory(mergeProps, \"mergeProps\");\n}\n\n// src/utils/batch.ts\nfunction defaultNoopBatch(callback) {\n callback();\n}\n\n// src/utils/Subscription.ts\nfunction createListenerCollection() {\n let first = null;\n let last = null;\n return {\n clear() {\n first = null;\n last = null;\n },\n notify() {\n defaultNoopBatch(() => {\n let listener = first;\n while (listener) {\n listener.callback();\n listener = listener.next;\n }\n });\n },\n get() {\n const listeners = [];\n let listener = first;\n while (listener) {\n listeners.push(listener);\n listener = listener.next;\n }\n return listeners;\n },\n subscribe(callback) {\n let isSubscribed = true;\n const listener = last = {\n callback,\n next: null,\n prev: last\n };\n if (listener.prev) {\n listener.prev.next = listener;\n } else {\n first = listener;\n }\n return function unsubscribe() {\n if (!isSubscribed || first === null) return;\n isSubscribed = false;\n if (listener.next) {\n listener.next.prev = listener.prev;\n } else {\n last = listener.prev;\n }\n if (listener.prev) {\n listener.prev.next = listener.next;\n } else {\n first = listener.next;\n }\n };\n }\n };\n}\nvar nullListeners = {\n notify() {\n },\n get: () => []\n};\nfunction createSubscription(store, parentSub) {\n let unsubscribe;\n let listeners = nullListeners;\n let subscriptionsAmount = 0;\n let selfSubscribed = false;\n function addNestedSub(listener) {\n trySubscribe();\n const cleanupListener = listeners.subscribe(listener);\n let removed = false;\n return () => {\n if (!removed) {\n removed = true;\n cleanupListener();\n tryUnsubscribe();\n }\n };\n }\n function notifyNestedSubs() {\n listeners.notify();\n }\n function handleChangeWrapper() {\n if (subscription.onStateChange) {\n subscription.onStateChange();\n }\n }\n function isSubscribed() {\n return selfSubscribed;\n }\n function trySubscribe() {\n subscriptionsAmount++;\n if (!unsubscribe) {\n unsubscribe = parentSub ? parentSub.addNestedSub(handleChangeWrapper) : store.subscribe(handleChangeWrapper);\n listeners = createListenerCollection();\n }\n }\n function tryUnsubscribe() {\n subscriptionsAmount--;\n if (unsubscribe && subscriptionsAmount === 0) {\n unsubscribe();\n unsubscribe = void 0;\n listeners.clear();\n listeners = nullListeners;\n }\n }\n function trySubscribeSelf() {\n if (!selfSubscribed) {\n selfSubscribed = true;\n trySubscribe();\n }\n }\n function tryUnsubscribeSelf() {\n if (selfSubscribed) {\n selfSubscribed = false;\n tryUnsubscribe();\n }\n }\n const subscription = {\n addNestedSub,\n notifyNestedSubs,\n handleChangeWrapper,\n isSubscribed,\n trySubscribe: trySubscribeSelf,\n tryUnsubscribe: tryUnsubscribeSelf,\n getListeners: () => listeners\n };\n return subscription;\n}\n\n// src/utils/useIsomorphicLayoutEffect.ts\nvar canUseDOM = () => !!(typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\");\nvar isDOM = /* @__PURE__ */ canUseDOM();\nvar isRunningInReactNative = () => typeof navigator !== \"undefined\" && navigator.product === \"ReactNative\";\nvar isReactNative = /* @__PURE__ */ isRunningInReactNative();\nvar getUseIsomorphicLayoutEffect = () => isDOM || isReactNative ? React.useLayoutEffect : React.useEffect;\nvar useIsomorphicLayoutEffect = /* @__PURE__ */ getUseIsomorphicLayoutEffect();\n\n// src/utils/shallowEqual.ts\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) return true;\n if (typeof objA !== \"object\" || objA === null || typeof objB !== \"object\" || objB === null) {\n return false;\n }\n const keysA = Object.keys(objA);\n const keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return false;\n for (let i = 0; i < keysA.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n return true;\n}\n\n// src/utils/hoistStatics.ts\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n $$typeof: true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n $$typeof: true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {\n [ForwardRef]: FORWARD_REF_STATICS,\n [Memo]: MEMO_STATICS\n};\nfunction getStatics(component) {\n if (isMemo(component)) {\n return MEMO_STATICS;\n }\n return TYPE_STATICS[component[\"$$typeof\"]] || REACT_STATICS;\n}\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent) {\n if (typeof sourceComponent !== \"string\") {\n if (objectPrototype) {\n const inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent);\n }\n }\n let keys = getOwnPropertyNames(sourceComponent);\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n const targetStatics = getStatics(targetComponent);\n const sourceStatics = getStatics(sourceComponent);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (!KNOWN_STATICS[key] && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n const descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try {\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {\n }\n }\n }\n }\n return targetComponent;\n}\n\n// src/components/Context.ts\nvar ContextKey = /* @__PURE__ */ Symbol.for(`react-redux-context`);\nvar gT = typeof globalThis !== \"undefined\" ? globalThis : (\n /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */\n {}\n);\nfunction getContext() {\n if (!React.createContext) return {};\n const contextMap = gT[ContextKey] ??= /* @__PURE__ */ new Map();\n let realContext = contextMap.get(React.createContext);\n if (!realContext) {\n realContext = React.createContext(\n null\n );\n if (process.env.NODE_ENV !== \"production\") {\n realContext.displayName = \"ReactRedux\";\n }\n contextMap.set(React.createContext, realContext);\n }\n return realContext;\n}\nvar ReactReduxContext = /* @__PURE__ */ getContext();\n\n// src/components/connect.tsx\nvar NO_SUBSCRIPTION_ARRAY = [null, null];\nvar stringifyComponent = (Comp) => {\n try {\n return JSON.stringify(Comp);\n } catch (err) {\n return String(Comp);\n }\n};\nfunction useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {\n useIsomorphicLayoutEffect(() => effectFunc(...effectArgs), dependencies);\n}\nfunction captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, childPropsFromStoreUpdate, notifyNestedSubs) {\n lastWrapperProps.current = wrapperProps;\n renderIsScheduled.current = false;\n if (childPropsFromStoreUpdate.current) {\n childPropsFromStoreUpdate.current = null;\n notifyNestedSubs();\n }\n}\nfunction subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, isMounted, childPropsFromStoreUpdate, notifyNestedSubs, additionalSubscribeListener) {\n if (!shouldHandleStateChanges) return () => {\n };\n let didUnsubscribe = false;\n let lastThrownError = null;\n const checkForUpdates = () => {\n if (didUnsubscribe || !isMounted.current) {\n return;\n }\n const latestStoreState = store.getState();\n let newChildProps, error;\n try {\n newChildProps = childPropsSelector(\n latestStoreState,\n lastWrapperProps.current\n );\n } catch (e) {\n error = e;\n lastThrownError = e;\n }\n if (!error) {\n lastThrownError = null;\n }\n if (newChildProps === lastChildProps.current) {\n if (!renderIsScheduled.current) {\n notifyNestedSubs();\n }\n } else {\n lastChildProps.current = newChildProps;\n childPropsFromStoreUpdate.current = newChildProps;\n renderIsScheduled.current = true;\n additionalSubscribeListener();\n }\n };\n subscription.onStateChange = checkForUpdates;\n subscription.trySubscribe();\n checkForUpdates();\n const unsubscribeWrapper = () => {\n didUnsubscribe = true;\n subscription.tryUnsubscribe();\n subscription.onStateChange = null;\n if (lastThrownError) {\n throw lastThrownError;\n }\n };\n return unsubscribeWrapper;\n}\nfunction strictEqual(a, b) {\n return a === b;\n}\nvar hasWarnedAboutDeprecatedPureOption = false;\nfunction connect(mapStateToProps, mapDispatchToProps, mergeProps, {\n // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.\n // @ts-ignore\n pure,\n areStatesEqual = strictEqual,\n areOwnPropsEqual = shallowEqual,\n areStatePropsEqual = shallowEqual,\n areMergedPropsEqual = shallowEqual,\n // use React's forwardRef to expose a ref of the wrapped component\n forwardRef = false,\n // the context consumer to use\n context = ReactReduxContext\n} = {}) {\n if (process.env.NODE_ENV !== \"production\") {\n if (pure !== void 0 && !hasWarnedAboutDeprecatedPureOption) {\n hasWarnedAboutDeprecatedPureOption = true;\n warning(\n 'The `pure` option has been removed. `connect` is now always a \"pure/memoized\" component'\n );\n }\n }\n const Context = context;\n const initMapStateToProps = mapStateToPropsFactory(mapStateToProps);\n const initMapDispatchToProps = mapDispatchToPropsFactory(mapDispatchToProps);\n const initMergeProps = mergePropsFactory(mergeProps);\n const shouldHandleStateChanges = Boolean(mapStateToProps);\n const wrapWithConnect = (WrappedComponent) => {\n if (process.env.NODE_ENV !== \"production\") {\n const isValid = /* @__PURE__ */ isValidElementType(WrappedComponent);\n if (!isValid)\n throw new Error(\n `You must pass a component to the function returned by connect. Instead received ${stringifyComponent(\n WrappedComponent\n )}`\n );\n }\n const wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n const displayName = `Connect(${wrappedComponentName})`;\n const selectorFactoryOptions = {\n shouldHandleStateChanges,\n displayName,\n wrappedComponentName,\n WrappedComponent,\n // @ts-ignore\n initMapStateToProps,\n initMapDispatchToProps,\n initMergeProps,\n areStatesEqual,\n areStatePropsEqual,\n areOwnPropsEqual,\n areMergedPropsEqual\n };\n function ConnectFunction(props) {\n const [propsContext, reactReduxForwardedRef, wrapperProps] = React.useMemo(() => {\n const { reactReduxForwardedRef: reactReduxForwardedRef2, ...wrapperProps2 } = props;\n return [props.context, reactReduxForwardedRef2, wrapperProps2];\n }, [props]);\n const ContextToUse = React.useMemo(() => {\n let ResultContext = Context;\n if (propsContext?.Consumer) {\n if (process.env.NODE_ENV !== \"production\") {\n const isValid = /* @__PURE__ */ isContextConsumer(\n // @ts-ignore\n /* @__PURE__ */ React.createElement(propsContext.Consumer, null)\n );\n if (!isValid) {\n throw new Error(\n \"You must pass a valid React context consumer as `props.context`\"\n );\n }\n ResultContext = propsContext;\n }\n }\n return ResultContext;\n }, [propsContext, Context]);\n const contextValue = React.useContext(ContextToUse);\n const didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);\n const didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);\n if (process.env.NODE_ENV !== \"production\" && !didStoreComeFromProps && !didStoreComeFromContext) {\n throw new Error(\n `Could not find \"store\" in the context of \"${displayName}\". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to ${displayName} in connect options.`\n );\n }\n const store = didStoreComeFromProps ? props.store : contextValue.store;\n const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;\n const childPropsSelector = React.useMemo(() => {\n return finalPropsSelectorFactory(store.dispatch, selectorFactoryOptions);\n }, [store]);\n const [subscription, notifyNestedSubs] = React.useMemo(() => {\n if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY;\n const subscription2 = createSubscription(\n store,\n didStoreComeFromProps ? void 0 : contextValue.subscription\n );\n const notifyNestedSubs2 = subscription2.notifyNestedSubs.bind(subscription2);\n return [subscription2, notifyNestedSubs2];\n }, [store, didStoreComeFromProps, contextValue]);\n const overriddenContextValue = React.useMemo(() => {\n if (didStoreComeFromProps) {\n return contextValue;\n }\n return {\n ...contextValue,\n subscription\n };\n }, [didStoreComeFromProps, contextValue, subscription]);\n const lastChildProps = React.useRef(void 0);\n const lastWrapperProps = React.useRef(wrapperProps);\n const childPropsFromStoreUpdate = React.useRef(void 0);\n const renderIsScheduled = React.useRef(false);\n const isMounted = React.useRef(false);\n const latestSubscriptionCallbackError = React.useRef(\n void 0\n );\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n const actualChildPropsSelector = React.useMemo(() => {\n const selector = () => {\n if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {\n return childPropsFromStoreUpdate.current;\n }\n return childPropsSelector(store.getState(), wrapperProps);\n };\n return selector;\n }, [store, wrapperProps]);\n const subscribeForReact = React.useMemo(() => {\n const subscribe = (reactListener) => {\n if (!subscription) {\n return () => {\n };\n }\n return subscribeUpdates(\n shouldHandleStateChanges,\n store,\n subscription,\n // @ts-ignore\n childPropsSelector,\n lastWrapperProps,\n lastChildProps,\n renderIsScheduled,\n isMounted,\n childPropsFromStoreUpdate,\n notifyNestedSubs,\n reactListener\n );\n };\n return subscribe;\n }, [subscription]);\n useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [\n lastWrapperProps,\n lastChildProps,\n renderIsScheduled,\n wrapperProps,\n childPropsFromStoreUpdate,\n notifyNestedSubs\n ]);\n let actualChildProps;\n try {\n actualChildProps = React.useSyncExternalStore(\n // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing\n subscribeForReact,\n // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,\n // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.\n actualChildPropsSelector,\n getServerState ? () => childPropsSelector(getServerState(), wrapperProps) : actualChildPropsSelector\n );\n } catch (err) {\n if (latestSubscriptionCallbackError.current) {\n ;\n err.message += `\nThe error may be correlated with this previous error:\n${latestSubscriptionCallbackError.current.stack}\n\n`;\n }\n throw err;\n }\n useIsomorphicLayoutEffect(() => {\n latestSubscriptionCallbackError.current = void 0;\n childPropsFromStoreUpdate.current = void 0;\n lastChildProps.current = actualChildProps;\n });\n const renderedWrappedComponent = React.useMemo(() => {\n return (\n // @ts-ignore\n /* @__PURE__ */ React.createElement(\n WrappedComponent,\n {\n ...actualChildProps,\n ref: reactReduxForwardedRef\n }\n )\n );\n }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]);\n const renderedChild = React.useMemo(() => {\n if (shouldHandleStateChanges) {\n return /* @__PURE__ */ React.createElement(ContextToUse.Provider, { value: overriddenContextValue }, renderedWrappedComponent);\n }\n return renderedWrappedComponent;\n }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);\n return renderedChild;\n }\n const _Connect = React.memo(ConnectFunction);\n const Connect = _Connect;\n Connect.WrappedComponent = WrappedComponent;\n Connect.displayName = ConnectFunction.displayName = displayName;\n if (forwardRef) {\n const _forwarded = React.forwardRef(\n function forwardConnectRef(props, ref) {\n return /* @__PURE__ */ React.createElement(Connect, { ...props, reactReduxForwardedRef: ref });\n }\n );\n const forwarded = _forwarded;\n forwarded.displayName = displayName;\n forwarded.WrappedComponent = WrappedComponent;\n return /* @__PURE__ */ hoistNonReactStatics(forwarded, WrappedComponent);\n }\n return /* @__PURE__ */ hoistNonReactStatics(Connect, WrappedComponent);\n };\n return wrapWithConnect;\n}\nvar connect_default = connect;\n\n// src/components/Provider.tsx\nfunction Provider(providerProps) {\n const { children, context, serverState, store } = providerProps;\n const contextValue = React.useMemo(() => {\n const subscription = createSubscription(store);\n const baseContextValue = {\n store,\n subscription,\n getServerState: serverState ? () => serverState : void 0\n };\n if (process.env.NODE_ENV === \"production\") {\n return baseContextValue;\n } else {\n const { identityFunctionCheck = \"once\", stabilityCheck = \"once\" } = providerProps;\n return /* @__PURE__ */ Object.assign(baseContextValue, {\n stabilityCheck,\n identityFunctionCheck\n });\n }\n }, [store, serverState]);\n const previousState = React.useMemo(() => store.getState(), [store]);\n useIsomorphicLayoutEffect(() => {\n const { subscription } = contextValue;\n subscription.onStateChange = subscription.notifyNestedSubs;\n subscription.trySubscribe();\n if (previousState !== store.getState()) {\n subscription.notifyNestedSubs();\n }\n return () => {\n subscription.tryUnsubscribe();\n subscription.onStateChange = void 0;\n };\n }, [contextValue, previousState]);\n const Context = context || ReactReduxContext;\n return /* @__PURE__ */ React.createElement(Context.Provider, { value: contextValue }, children);\n}\nvar Provider_default = Provider;\n\n// src/hooks/useReduxContext.ts\nfunction createReduxContextHook(context = ReactReduxContext) {\n return function useReduxContext2() {\n const contextValue = React.useContext(context);\n if (process.env.NODE_ENV !== \"production\" && !contextValue) {\n throw new Error(\n \"could not find react-redux context value; please ensure the component is wrapped in a \"\n );\n }\n return contextValue;\n };\n}\nvar useReduxContext = /* @__PURE__ */ createReduxContextHook();\n\n// src/hooks/useStore.ts\nfunction createStoreHook(context = ReactReduxContext) {\n const useReduxContext2 = context === ReactReduxContext ? useReduxContext : (\n // @ts-ignore\n createReduxContextHook(context)\n );\n const useStore2 = () => {\n const { store } = useReduxContext2();\n return store;\n };\n Object.assign(useStore2, {\n withTypes: () => useStore2\n });\n return useStore2;\n}\nvar useStore = /* @__PURE__ */ createStoreHook();\n\n// src/hooks/useDispatch.ts\nfunction createDispatchHook(context = ReactReduxContext) {\n const useStore2 = context === ReactReduxContext ? useStore : createStoreHook(context);\n const useDispatch2 = () => {\n const store = useStore2();\n return store.dispatch;\n };\n Object.assign(useDispatch2, {\n withTypes: () => useDispatch2\n });\n return useDispatch2;\n}\nvar useDispatch = /* @__PURE__ */ createDispatchHook();\n\n// src/hooks/useSelector.ts\nimport { useSyncExternalStoreWithSelector } from \"use-sync-external-store/with-selector.js\";\nvar refEquality = (a, b) => a === b;\nfunction createSelectorHook(context = ReactReduxContext) {\n const useReduxContext2 = context === ReactReduxContext ? useReduxContext : createReduxContextHook(context);\n const useSelector2 = (selector, equalityFnOrOptions = {}) => {\n const { equalityFn = refEquality } = typeof equalityFnOrOptions === \"function\" ? { equalityFn: equalityFnOrOptions } : equalityFnOrOptions;\n if (process.env.NODE_ENV !== \"production\") {\n if (!selector) {\n throw new Error(`You must pass a selector to useSelector`);\n }\n if (typeof selector !== \"function\") {\n throw new Error(`You must pass a function as a selector to useSelector`);\n }\n if (typeof equalityFn !== \"function\") {\n throw new Error(\n `You must pass a function as an equality function to useSelector`\n );\n }\n }\n const reduxContext = useReduxContext2();\n const { store, subscription, getServerState } = reduxContext;\n const firstRun = React.useRef(true);\n const wrappedSelector = React.useCallback(\n {\n [selector.name](state) {\n const selected = selector(state);\n if (process.env.NODE_ENV !== \"production\") {\n const { devModeChecks = {} } = typeof equalityFnOrOptions === \"function\" ? {} : equalityFnOrOptions;\n const { identityFunctionCheck, stabilityCheck } = reduxContext;\n const {\n identityFunctionCheck: finalIdentityFunctionCheck,\n stabilityCheck: finalStabilityCheck\n } = {\n stabilityCheck,\n identityFunctionCheck,\n ...devModeChecks\n };\n if (finalStabilityCheck === \"always\" || finalStabilityCheck === \"once\" && firstRun.current) {\n const toCompare = selector(state);\n if (!equalityFn(selected, toCompare)) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"Selector \" + (selector.name || \"unknown\") + \" returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization\",\n {\n state,\n selected,\n selected2: toCompare,\n stack\n }\n );\n }\n }\n if (finalIdentityFunctionCheck === \"always\" || finalIdentityFunctionCheck === \"once\" && firstRun.current) {\n if (selected === state) {\n let stack = void 0;\n try {\n throw new Error();\n } catch (e) {\n ;\n ({ stack } = e);\n }\n console.warn(\n \"Selector \" + (selector.name || \"unknown\") + \" returned the root state when called. This can lead to unnecessary rerenders.\\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.\",\n { stack }\n );\n }\n }\n if (firstRun.current) firstRun.current = false;\n }\n return selected;\n }\n }[selector.name],\n [selector]\n );\n const selectedState = useSyncExternalStoreWithSelector(\n subscription.addNestedSub,\n store.getState,\n getServerState || store.getState,\n wrappedSelector,\n equalityFn\n );\n React.useDebugValue(selectedState);\n return selectedState;\n };\n Object.assign(useSelector2, {\n withTypes: () => useSelector2\n });\n return useSelector2;\n}\nvar useSelector = /* @__PURE__ */ createSelectorHook();\n\n// src/exports.ts\nvar batch = defaultNoopBatch;\nexport {\n Provider_default as Provider,\n ReactReduxContext,\n batch,\n connect_default as connect,\n createDispatchHook,\n createSelectorHook,\n createStoreHook,\n shallowEqual,\n useDispatch,\n useSelector,\n useStore\n};\n//# sourceMappingURL=react-redux.mjs.map","export var KEY_PREFIX = 'persist:';\nexport var FLUSH = 'persist/FLUSH';\nexport var REHYDRATE = 'persist/REHYDRATE';\nexport var PAUSE = 'persist/PAUSE';\nexport var PERSIST = 'persist/PERSIST';\nexport var PURGE = 'persist/PURGE';\nexport var REGISTER = 'persist/REGISTER';\nexport var DEFAULT_VERSION = -1;","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/*\n autoMergeLevel1: \n - merges 1 level of substate\n - skips substate if already modified\n*/\nexport default function autoMergeLevel1(inboundState, originalState, reducedState, _ref) {\n var debug = _ref.debug;\n\n var newState = _objectSpread({}, reducedState); // only rehydrate if inboundState exists and is an object\n\n\n if (inboundState && _typeof(inboundState) === 'object') {\n Object.keys(inboundState).forEach(function (key) {\n // ignore _persist data\n if (key === '_persist') return; // if reducer modifies substate, skip auto rehydration\n\n if (originalState[key] !== reducedState[key]) {\n if (process.env.NODE_ENV !== 'production' && debug) console.log('redux-persist/stateReconciler: sub state for key `%s` modified, skipping.', key);\n return;\n } // otherwise hard set the new value\n\n\n newState[key] = inboundState[key];\n });\n }\n\n if (process.env.NODE_ENV !== 'production' && debug && inboundState && _typeof(inboundState) === 'object') console.log(\"redux-persist/stateReconciler: rehydrated keys '\".concat(Object.keys(inboundState).join(', '), \"'\"));\n return newState;\n}","import { KEY_PREFIX, REHYDRATE } from './constants';\n// @TODO remove once flow < 0.63 support is no longer required.\nexport default function createPersistoid(config) {\n // defaults\n var blacklist = config.blacklist || null;\n var whitelist = config.whitelist || null;\n var transforms = config.transforms || [];\n var throttle = config.throttle || 0;\n var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n var storage = config.storage;\n var serialize;\n\n if (config.serialize === false) {\n serialize = function serialize(x) {\n return x;\n };\n } else if (typeof config.serialize === 'function') {\n serialize = config.serialize;\n } else {\n serialize = defaultSerialize;\n }\n\n var writeFailHandler = config.writeFailHandler || null; // initialize stateful values\n\n var lastState = {};\n var stagedState = {};\n var keysToProcess = [];\n var timeIterator = null;\n var writePromise = null;\n\n var update = function update(state) {\n // add any changed keys to the queue\n Object.keys(state).forEach(function (key) {\n if (!passWhitelistBlacklist(key)) return; // is keyspace ignored? noop\n\n if (lastState[key] === state[key]) return; // value unchanged? noop\n\n if (keysToProcess.indexOf(key) !== -1) return; // is key already queued? noop\n\n keysToProcess.push(key); // add key to queue\n }); //if any key is missing in the new state which was present in the lastState,\n //add it for processing too\n\n Object.keys(lastState).forEach(function (key) {\n if (state[key] === undefined && passWhitelistBlacklist(key) && keysToProcess.indexOf(key) === -1 && lastState[key] !== undefined) {\n keysToProcess.push(key);\n }\n }); // start the time iterator if not running (read: throttle)\n\n if (timeIterator === null) {\n timeIterator = setInterval(processNextKey, throttle);\n }\n\n lastState = state;\n };\n\n function processNextKey() {\n if (keysToProcess.length === 0) {\n if (timeIterator) clearInterval(timeIterator);\n timeIterator = null;\n return;\n }\n\n var key = keysToProcess.shift();\n var endState = transforms.reduce(function (subState, transformer) {\n return transformer.in(subState, key, lastState);\n }, lastState[key]);\n\n if (endState !== undefined) {\n try {\n stagedState[key] = serialize(endState);\n } catch (err) {\n console.error('redux-persist/createPersistoid: error serializing state', err);\n }\n } else {\n //if the endState is undefined, no need to persist the existing serialized content\n delete stagedState[key];\n }\n\n if (keysToProcess.length === 0) {\n writeStagedState();\n }\n }\n\n function writeStagedState() {\n // cleanup any removed keys just before write.\n Object.keys(stagedState).forEach(function (key) {\n if (lastState[key] === undefined) {\n delete stagedState[key];\n }\n });\n writePromise = storage.setItem(storageKey, serialize(stagedState)).catch(onWriteFail);\n }\n\n function passWhitelistBlacklist(key) {\n if (whitelist && whitelist.indexOf(key) === -1 && key !== '_persist') return false;\n if (blacklist && blacklist.indexOf(key) !== -1) return false;\n return true;\n }\n\n function onWriteFail(err) {\n // @TODO add fail handlers (typically storage full)\n if (writeFailHandler) writeFailHandler(err);\n\n if (err && process.env.NODE_ENV !== 'production') {\n console.error('Error storing data', err);\n }\n }\n\n var flush = function flush() {\n while (keysToProcess.length !== 0) {\n processNextKey();\n }\n\n return writePromise || Promise.resolve();\n }; // return `persistoid`\n\n\n return {\n update: update,\n flush: flush\n };\n} // @NOTE in the future this may be exposed via config\n\nfunction defaultSerialize(data) {\n return JSON.stringify(data);\n}","import { KEY_PREFIX } from './constants';\nexport default function getStoredState(config) {\n var transforms = config.transforms || [];\n var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n var storage = config.storage;\n var debug = config.debug;\n var deserialize;\n\n if (config.deserialize === false) {\n deserialize = function deserialize(x) {\n return x;\n };\n } else if (typeof config.deserialize === 'function') {\n deserialize = config.deserialize;\n } else {\n deserialize = defaultDeserialize;\n }\n\n return storage.getItem(storageKey).then(function (serialized) {\n if (!serialized) return undefined;else {\n try {\n var state = {};\n var rawState = deserialize(serialized);\n Object.keys(rawState).forEach(function (key) {\n state[key] = transforms.reduceRight(function (subState, transformer) {\n return transformer.out(subState, key, rawState);\n }, deserialize(rawState[key]));\n });\n return state;\n } catch (err) {\n if (process.env.NODE_ENV !== 'production' && debug) console.log(\"redux-persist/getStoredState: Error restoring data \".concat(serialized), err);\n throw err;\n }\n }\n });\n}\n\nfunction defaultDeserialize(serial) {\n return JSON.parse(serial);\n}","import { KEY_PREFIX } from './constants';\nexport default function purgeStoredState(config) {\n var storage = config.storage;\n var storageKey = \"\".concat(config.keyPrefix !== undefined ? config.keyPrefix : KEY_PREFIX).concat(config.key);\n return storage.removeItem(storageKey, warnIfRemoveError);\n}\n\nfunction warnIfRemoveError(err) {\n if (err && process.env.NODE_ENV !== 'production') {\n console.error('redux-persist/purgeStoredState: Error purging data stored state', err);\n }\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { FLUSH, PAUSE, PERSIST, PURGE, REHYDRATE, DEFAULT_VERSION } from './constants';\nimport autoMergeLevel1 from './stateReconciler/autoMergeLevel1';\nimport createPersistoid from './createPersistoid';\nimport defaultGetStoredState from './getStoredState';\nimport purgeStoredState from './purgeStoredState';\nvar DEFAULT_TIMEOUT = 5000;\n/*\n @TODO add validation / handling for:\n - persisting a reducer which has nested _persist\n - handling actions that fire before reydrate is called\n*/\n\nexport default function persistReducer(config, baseReducer) {\n if (process.env.NODE_ENV !== 'production') {\n if (!config) throw new Error('config is required for persistReducer');\n if (!config.key) throw new Error('key is required in persistor config');\n if (!config.storage) throw new Error(\"redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`\");\n }\n\n var version = config.version !== undefined ? config.version : DEFAULT_VERSION;\n var debug = config.debug || false;\n var stateReconciler = config.stateReconciler === undefined ? autoMergeLevel1 : config.stateReconciler;\n var getStoredState = config.getStoredState || defaultGetStoredState;\n var timeout = config.timeout !== undefined ? config.timeout : DEFAULT_TIMEOUT;\n var _persistoid = null;\n var _purge = false;\n var _paused = true;\n\n var conditionalUpdate = function conditionalUpdate(state) {\n // update the persistoid only if we are rehydrated and not paused\n state._persist.rehydrated && _persistoid && !_paused && _persistoid.update(state);\n return state;\n };\n\n return function (state, action) {\n var _ref = state || {},\n _persist = _ref._persist,\n rest = _objectWithoutProperties(_ref, [\"_persist\"]); // $FlowIgnore need to update State type\n\n\n var restState = rest;\n\n if (action.type === PERSIST) {\n var _sealed = false;\n\n var _rehydrate = function _rehydrate(payload, err) {\n // dev warning if we are already sealed\n if (process.env.NODE_ENV !== 'production' && _sealed) console.error(\"redux-persist: rehydrate for \\\"\".concat(config.key, \"\\\" called after timeout.\"), payload, err); // only rehydrate if we are not already sealed\n\n if (!_sealed) {\n action.rehydrate(config.key, payload, err);\n _sealed = true;\n }\n };\n\n timeout && setTimeout(function () {\n !_sealed && _rehydrate(undefined, new Error(\"redux-persist: persist timed out for persist key \\\"\".concat(config.key, \"\\\"\")));\n }, timeout); // @NOTE PERSIST resumes if paused.\n\n _paused = false; // @NOTE only ever create persistoid once, ensure we call it at least once, even if _persist has already been set\n\n if (!_persistoid) _persistoid = createPersistoid(config); // @NOTE PERSIST can be called multiple times, noop after the first\n\n if (_persist) {\n // We still need to call the base reducer because there might be nested\n // uses of persistReducer which need to be aware of the PERSIST action\n return _objectSpread({}, baseReducer(restState, action), {\n _persist: _persist\n });\n }\n\n if (typeof action.rehydrate !== 'function' || typeof action.register !== 'function') throw new Error('redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.');\n action.register(config.key);\n getStoredState(config).then(function (restoredState) {\n var migrate = config.migrate || function (s, v) {\n return Promise.resolve(s);\n };\n\n migrate(restoredState, version).then(function (migratedState) {\n _rehydrate(migratedState);\n }, function (migrateErr) {\n if (process.env.NODE_ENV !== 'production' && migrateErr) console.error('redux-persist: migration error', migrateErr);\n\n _rehydrate(undefined, migrateErr);\n });\n }, function (err) {\n _rehydrate(undefined, err);\n });\n return _objectSpread({}, baseReducer(restState, action), {\n _persist: {\n version: version,\n rehydrated: false\n }\n });\n } else if (action.type === PURGE) {\n _purge = true;\n action.result(purgeStoredState(config));\n return _objectSpread({}, baseReducer(restState, action), {\n _persist: _persist\n });\n } else if (action.type === FLUSH) {\n action.result(_persistoid && _persistoid.flush());\n return _objectSpread({}, baseReducer(restState, action), {\n _persist: _persist\n });\n } else if (action.type === PAUSE) {\n _paused = true;\n } else if (action.type === REHYDRATE) {\n // noop on restState if purging\n if (_purge) return _objectSpread({}, restState, {\n _persist: _objectSpread({}, _persist, {\n rehydrated: true\n }) // @NOTE if key does not match, will continue to default else below\n\n });\n\n if (action.key === config.key) {\n var reducedState = baseReducer(restState, action);\n var inboundState = action.payload; // only reconcile state if stateReconciler and inboundState are both defined\n\n var reconciledRest = stateReconciler !== false && inboundState !== undefined ? stateReconciler(inboundState, state, reducedState, config) : reducedState;\n\n var _newState = _objectSpread({}, reconciledRest, {\n _persist: _objectSpread({}, _persist, {\n rehydrated: true\n })\n });\n\n return conditionalUpdate(_newState);\n }\n } // if we have not already handled PERSIST, straight passthrough\n\n\n if (!_persist) return baseReducer(state, action); // run base reducer:\n // is state modified ? return original : return updated\n\n var newState = baseReducer(restState, action);\n if (newState === restState) return state;\n return conditionalUpdate(_objectSpread({}, newState, {\n _persist: _persist\n }));\n };\n}","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { createStore } from 'redux';\nimport { FLUSH, PAUSE, PERSIST, PURGE, REGISTER, REHYDRATE } from './constants';\nvar initialState = {\n registry: [],\n bootstrapped: false\n};\n\nvar persistorReducer = function persistorReducer() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case REGISTER:\n return _objectSpread({}, state, {\n registry: [].concat(_toConsumableArray(state.registry), [action.key])\n });\n\n case REHYDRATE:\n var firstIndex = state.registry.indexOf(action.key);\n\n var registry = _toConsumableArray(state.registry);\n\n registry.splice(firstIndex, 1);\n return _objectSpread({}, state, {\n registry: registry,\n bootstrapped: registry.length === 0\n });\n\n default:\n return state;\n }\n};\n\nexport default function persistStore(store, options, cb) {\n // help catch incorrect usage of passing PersistConfig in as PersistorOptions\n if (process.env.NODE_ENV !== 'production') {\n var optionsToTest = options || {};\n var bannedKeys = ['blacklist', 'whitelist', 'transforms', 'storage', 'keyPrefix', 'migrate'];\n bannedKeys.forEach(function (k) {\n if (!!optionsToTest[k]) console.error(\"redux-persist: invalid option passed to persistStore: \\\"\".concat(k, \"\\\". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.\"));\n });\n }\n\n var boostrappedCb = cb || false;\n\n var _pStore = createStore(persistorReducer, initialState, options && options.enhancer ? options.enhancer : undefined);\n\n var register = function register(key) {\n _pStore.dispatch({\n type: REGISTER,\n key: key\n });\n };\n\n var rehydrate = function rehydrate(key, payload, err) {\n var rehydrateAction = {\n type: REHYDRATE,\n payload: payload,\n err: err,\n key: key // dispatch to `store` to rehydrate and `persistor` to track result\n\n };\n store.dispatch(rehydrateAction);\n\n _pStore.dispatch(rehydrateAction);\n\n if (boostrappedCb && persistor.getState().bootstrapped) {\n boostrappedCb();\n boostrappedCb = false;\n }\n };\n\n var persistor = _objectSpread({}, _pStore, {\n purge: function purge() {\n var results = [];\n store.dispatch({\n type: PURGE,\n result: function result(purgeResult) {\n results.push(purgeResult);\n }\n });\n return Promise.all(results);\n },\n flush: function flush() {\n var results = [];\n store.dispatch({\n type: FLUSH,\n result: function result(flushResult) {\n results.push(flushResult);\n }\n });\n return Promise.all(results);\n },\n pause: function pause() {\n store.dispatch({\n type: PAUSE\n });\n },\n persist: function persist() {\n store.dispatch({\n type: PERSIST,\n register: register,\n rehydrate: rehydrate\n });\n }\n });\n\n if (!(options && options.manualPersist)) {\n persistor.persist();\n }\n\n return persistor;\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","\n\nconst accessLocalStorage = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setItem: (key: string, value: any): void => {\n try {\n const serializedValue = JSON.stringify(value);\n localStorage.setItem(key, serializedValue);\n } catch (error) {\n console.error(\"Error setting item in localStorage\", error);\n }\n },\n\n getItem: (key: string): T | null => {\n try {\n const serializedValue = localStorage.getItem(key);\n if (serializedValue === null) return null;\n return JSON.parse(serializedValue) as T;\n } catch (error) {\n console.error(\"Error getting item from localStorage\", error);\n return null;\n }\n },\n\n removeItem: (key: string): void => {\n try {\n localStorage.removeItem(key);\n } catch (error) {\n console.error(\"Error removing item from localStorage\", error);\n }\n }\n}\n\nexport default accessLocalStorage;","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? ((token, callbacks) => {\n _global.addEventListener(\"message\", ({source, data}) => {\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return (cb) => {\n callbacks.push(cb);\n _global.postMessage(token, \"*\");\n }\n })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n typeof setImmediate === 'function',\n isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable,\n setImmediate: _setImmediate,\n asap\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n if (utils.isFunction(options)) {\n options = {\n serialize: options\n };\n } \n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n","import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n","import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n})(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {\n let isRelativeUrl = !isAbsoluteURL(requestedURL);\n if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, prop, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, prop , caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, prop , caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, prop , caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n","import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = resolveConfig(config);\n let requestData = _config.data;\n const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n let {responseType, onUploadProgress, onDownloadProgress} = _config;\n let onCanceled;\n let uploadThrottled, downloadThrottled;\n let flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || transitionalDefaults;\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (onDownloadProgress) {\n ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n request.addEventListener('progress', downloadThrottled);\n }\n\n // Not all browsers support upload events\n if (onUploadProgress && request.upload) {\n ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n request.upload.addEventListener('progress', uploadThrottled);\n\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n","\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(utils.isBlob(body)) {\n return body.size;\n }\n\n if(utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if(utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = \"credentials\" in Request.prototype;\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n});\n\n\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","export const VERSION = \"1.8.4\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n return (value, opt) => {\n // eslint-disable-next-line no-console\n console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n return true;\n }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy = {};\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.allowAbsoluteUrls\n if (config.allowAbsoluteUrls !== undefined) {\n // do nothing\n } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n } else {\n config.allowAbsoluteUrls = true;\n }\n\n validator.assertOptions(config, {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken')\n }, true);\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n}\n","const configData = {\n baseURL: import.meta.env.VITE_APP_API_URL,\n successRedirect: import.meta.env.VITE_SUCCESS_RED_URL,\n opinionRichUrl: import.meta.env.VITE_OPINIONRICH_URL\n};\nexport default configData;","import { store } from \"@store/store\";\n\n\nexport const getAuthToken = () => {\n const state = store.getState();\n const accessToken = state?.auth?.user?.data?.tokens?.accessToken;\n return accessToken ?? null;\n};","import { clearStoreAction } from '@store/rootReducer';\nimport { store } from '@store/store';\nimport axios, { AxiosError, AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios';\nimport configData from '../config/config';\nimport { getAuthToken } from '../shared/hooks/getAuthToken';\n\nconst baseURL = configData.baseURL;\nconst axiosInstance: AxiosInstance = axios.create({\n baseURL: baseURL,\n headers: {\n 'Content-Type': 'application/json',\n 'Time-Zone': Intl.DateTimeFormat().resolvedOptions().timeZone\n },\n});\n\n// Add a request interceptor to set additional headers\naxiosInstance.interceptors.request.use(\n (config: InternalAxiosRequestConfig): InternalAxiosRequestConfig => {\n const token = getAuthToken();\n const cookieId = localStorage.getItem('cookieId');\n config.headers['Authorization'] = `Bearer ${token}`;\n config.headers['Cookie-Id'] = cookieId;\n return config;\n },\n (error: AxiosError): Promise => {\n return Promise.reject(error);\n }\n);\n\n// Add a response interceptor\naxiosInstance.interceptors.response.use(\n (response: AxiosResponse): AxiosResponse => {\n return response;\n },\n async(error: AxiosError): Promise => {\n // Check for 401 or 403 error status\n if (error?.response?.status === 401 || error?.response?.status === 403) {\n store.dispatch({ type: clearStoreAction });\n localStorage.clear();\n localStorage.removeItem('redux-root');\n sessionStorage.clear();\n window.stop();\n window.location.href = '/login';\n }\n\n return Promise.reject(error);\n }\n);\n\nexport default axiosInstance;\n","import axiosInstance from '../axios/axios';\nexport interface ILoginPage {\n email: string;\n password: string;\n}\nexport interface IUpdateUser {\n updateType: \"name\" | \"email\" | \"password\";\n updateField: string | null\n}\nexport const loginApi = async (details: ILoginPage): Promise => {\nconst response = await axiosInstance.post('/auth/login', { ...details });\n return response.data as T;\n};\nexport const signupApi = async (data: ILoginPage): Promise => {\nconst response = await axiosInstance.post('/auth/signup', { ...data });\n return response.data as T;\n};\nexport const updateUserApi = async (data: IUpdateUser): Promise => {\nconst response = await axiosInstance.patch('/auth/updateUser', { ...data });\n return response.data as T;\n};\nexport const userDetailsApi = async (): Promise => {\nconst response = await axiosInstance.get('/auth/userDetails');\n return response.data as T;\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\n\nimport { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport accessLocalStorage from '@shared/utils/accessLOcalStorage';\nimport { loginApi, signupApi } from '../../../services/auth.service';\n\ninterface AuthState {\n user: unknown | null;\n loading: boolean;\n error: string | null | object;\n}\n\nconst initialState: AuthState = {\n user: null,\n loading: false,\n error: null,\n};\n\nexport const loginThunk = createAsyncThunk('auth/login', async (credentials: { email: string; password: string }, { rejectWithValue }) => {\n try {\n const response = await loginApi(credentials);\n return response;\n } catch (error: any) {\n return rejectWithValue(error?.response?.data);\n }\n});\n\nexport const signupThunk = createAsyncThunk('auth/signup', async (userData: { email: string; password: string }, { rejectWithValue }) => {\n try {\n const response = await signupApi(userData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error?.response?.data);\n }\n});\n\nconst authSlice = createSlice({\n name: 'auth',\n initialState,\n reducers: {\n logout() {},\n reset: () => {\n return initialState;\n },\n },\n extraReducers: (builder) => {\n builder\n .addCase(loginThunk.pending, (state) => {\n state.loading = true;\n })\n .addCase(loginThunk.fulfilled, (state, action: PayloadAction) => {\n accessLocalStorage.setItem('access', action.payload.data.tokens.accessToken)\n state.loading = false;\n state.user = action.payload;\n state.error = null;\n })\n .addCase(loginThunk.rejected, (state, action) => {\n state.loading = false;\n state.user = action.payload;\n state.error = action.error.message || 'Login failed';\n })\n .addCase(signupThunk.pending, (state) => {\n state.loading = true;\n })\n .addCase(signupThunk.fulfilled, (state, action: PayloadAction) => {\n accessLocalStorage.setItem('access', action.payload.data.tokens.accessToken)\n state.loading = false;\n state.user = action.payload;\n state.error = null;\n })\n .addCase(signupThunk.rejected, (state, action) => {\n state.loading = false;\n state.user = action.payload;\n state.error = action.error.message || 'Signup failed';\n });\n },\n});\n\nexport const { logout, reset } = authSlice.actions;\nexport default authSlice.reducer;\n","import axiosInstance from \"@axios/axios\";\n\nexport interface ISurveyDetail {\n currentPage: number;\n pLimit: number;\n searchQuery: string;\n}\n\nexport const surveysApi = async (queryData: ISurveyDetail): Promise => {\n const { currentPage, pLimit, searchQuery } = queryData;\n const queryString = `currentPage=${currentPage}&pLimit=${pLimit}&searchQuery=${encodeURIComponent(searchQuery)}`;\n const response = await axiosInstance.get(`survey/surveys?${queryString}`);\n return response.data as T;\n};\nexport const surveySoftDeleteApi = async (surveyId: string): Promise => {\n const response = await axiosInstance.patch(`survey/surveySoftDelete/${surveyId}`);\n return response.data as T;\n};\nexport const updateSurveyStatusBulkApi = async (\n surveyIds: string[],\n statusId: string,\n): Promise => {\n const response = await axiosInstance.patch('survey/updateSurveyStatus', {\n surveyIds,\n statusId,\n });\n return response.data as T;\n};\n\nexport const getSurveyByIdApi = async (surveyId: string): Promise => {\n const response = await axiosInstance.get(`survey/surveyById/${surveyId}`);\n return response.data as T;\n};\n \n\n","import axiosInstance from \"@axios/axios\";\nexport const healthcareApis = {\n physiotherapyDashboardApi: async (timePeriod: string): Promise => {\n const response = await axiosInstance.get(`healthcare/healthCareDashboard?timePeriod=${timePeriod}`);\n return response.data as T;\n }, \n getPatientDetailsApi: async (rId: string): Promise => {\n const response = await axiosInstance.get(`healthcare/getPatientDetails?rId=${rId}`);\n return response.data as T;\n }, \n}\n\n","import axiosInstance from \"@axios/axios\";\nexport const redeemApis = {\n verifyRewardCouponApi: async (couponCode: string): Promise => {\n const response = await axiosInstance.post('reward/verifyCoupon', {couponCode});\n return response.data as T;\n },\n redeemRewardApi: async (couponCode: string): Promise => {\n const response = await axiosInstance.post('reward/redeemReward', {couponCode});\n return response.data as T;\n },\n\n}\n\n","import axiosInstance from \"@axios/axios\";\nimport { SurveyAnswerData } from \"@features/survey/pages/AttemptSurvey\";\nimport { SurveyTitleName } from \"@features/survey/slice/createSurveyNameSlice\";\nimport { CreateSurveyArgs } from \"@features/survey/slice/createSurveySlice\";\nimport { GetParticipantsBySurveyIdParams } from \"@features/survey/slice/getParticipantsBySurveyIdSlice\";\nimport { PollSettingData } from \"@features/survey/slice/getPollSettingSlice\";\nimport { IQuestionDelete } from \"@features/survey/slice/qustionSoftDeleteSlice\";\nimport { VisitorSourcesBody } from \"@features/survey/slice/trackSurveyClickSlice\";\nimport { surveyQuestionOrderUpdate } from \"@features/survey/slice/updateQuestionOrderSlice\";\nimport { SurveyTitleStatus } from \"@features/survey/slice/updateSurveyStatusSlice\";\nimport {surveyQuestionUpdate} from \"@features/survey/slice/updateQuestionByIdSlice\";\nexport const surveyApis = {\n attemptSurveyApi: async (queryData: SurveyAnswerData): Promise => {\n const response = await axiosInstance.post('survey/survey-attempt', { ...queryData });\n return response.data as T;\n },\n createSurveyApi: async ({ queryData, surveyId }: CreateSurveyArgs): Promise => {\n const response = await axiosInstance.post(`survey/createSurvey/${surveyId}`, { ...queryData });\n return response.data as T;\n },\n createSurveyIdApi: async (surveyType: number): Promise => {\n const response = await axiosInstance.post(`survey/createSurveyId/${surveyType}`);\n return response.data as T;\n },\n surveyUrlApi: async (surveyId: string): Promise => {\n const response = await axiosInstance.get(`survey/surveyUrl/${surveyId}`);\n return response.data as T;\n },\n questionSoftDelete: async ({ surveyId, questionOrder }: IQuestionDelete): Promise => {\n const response = await axiosInstance.patch(`survey/questionSoftDelete/${surveyId}/${questionOrder}`);\n return response.data as T;\n },\n createSurveyTitle: async ({ bodyData }: { bodyData: SurveyTitleName }): Promise => {\n const response = await axiosInstance.post('survey/createUntitledForm', bodyData);\n return response.data as T;\n },\n updateSurveyStatus: async ({ surveyId, id }: SurveyTitleStatus): Promise => {\n const response = await axiosInstance.patch(`survey/updateSurveyStatus/${surveyId}/${id}`);\n return response.data as T;\n },\n cloneSurveyApi: async (surveyId: string): Promise => {\n const response = await axiosInstance.post(`survey/cloneSurvey/${surveyId}`);\n return response.data as T;\n },\n updateQuestionOrderApi: async (bodyData: surveyQuestionOrderUpdate): Promise => {\n const response = await axiosInstance.post('survey/updateQuestionOrder', { ...bodyData });\n return response.data as T;\n },\n trackSurveyUrlClickApi: async (bodyData: VisitorSourcesBody): Promise => {\n const response = await axiosInstance.post('track/track', { ...bodyData });\n return response.data as T;\n },\n getPollResultApi: async (surveyId: string): Promise => {\n const response = await axiosInstance.get(`survey/getPollResult/${surveyId}`, {});\n return response.data as T;\n\n },\n getSurveyOrPollForAttemptApi: async (\n surveyId: string,\n currentUrl?: string\n ): Promise => {\n const url = `survey/getSurveyOrPollForAttempt/${surveyId}${\n currentUrl ? `?currentUrl=${encodeURIComponent(currentUrl)}` : \"\"\n }`;\n const response = await axiosInstance.get(url);\n return response.data as T;\n },\n getSettingFeaturesApi: async (): Promise => {\n const response = await axiosInstance.get(`survey/getSettingFeatures`);\n return response.data as T;\n },\n getFeatureOptionsApi: async (): Promise => {\n const response = await axiosInstance.get(`survey/getFeatureOptions`);\n return response.data as T;\n },\n getPollSettingApi: async (surveyId: string): Promise => {\n const response = await axiosInstance.get(`survey/${surveyId}/getPollSetting`);\n return response.data as T;\n },\n upsertPollSettingApi: async (data: PollSettingData): Promise => {\n const response = await axiosInstance.post(`survey/upsertPollSetting`, {...data});\n return response.data as T;\n },\n getParticipantsBySurveyId: async (queryData: GetParticipantsBySurveyIdParams): Promise => {\n const response = await axiosInstance.get(`survey/getParticipantsBySurveyId`, { params: queryData });\n return response.data as T;\n },\n getParticipantResponseApi: async ({ id, currentPage }: { id: string | number; currentPage: number }): Promise => {\n const response = await axiosInstance.get(`survey/participantResponseById?rid=${id}¤tPage=${currentPage}`);\n return response.data;\n }, \n DeleteParticipantResponse: async (id: string): Promise => {\n const response = await axiosInstance.patch(`survey/participantResponseSoftDelete/${id}`);\n return response.data;\n },\n \n getSurveyReportApi: async (surveyId: string): Promise => {\n const response = await axiosInstance.get(`survey/${surveyId}/getSurveyResult`);\n return response.data as T;\n },\n updateQuestionApi: async (bodyData: surveyQuestionUpdate): Promise => {\n const response = await axiosInstance.post('survey/updateQuestionById', { ...bodyData });\n return response.data as T;\n },\n}\n\n","import { updateUserApi, userDetailsApi } from \"./auth.service\";\nimport { getSurveyByIdApi, surveysApi, surveySoftDeleteApi, updateSurveyStatusBulkApi } from \"./dashboard.service\";\nimport { healthcareApis } from \"./healthcare.service\";\nimport { redeemApis } from \"./redeem.service\";\nimport { surveyApis } from \"./survey.service\";\n\nconst serviceApis = {\n surveysApi,\n surveySoftDeleteApi,\n getSurveyByIdApi,\n updateUserApi,\n userDetailsApi,\n updateSurveyStatusBulkApi,\n ...surveyApis,\n ...healthcareApis,\n ...redeemApis\n}\nexport default serviceApis; ","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { AsyncThunk, createSlice, Draft, PayloadAction } from '@reduxjs/toolkit';\n\ninterface AsyncState {\n loading: boolean;\n error: string | null;\n data: T | null;\n}\n\nexport const createSliceHook = (name: string, asyncThunk: AsyncThunk, initialData: T) => {\n const initialState: AsyncState = {\n loading: false,\n error: null,\n data: initialData,\n };\n\n const slice = createSlice({\n name,\n initialState,\n reducers: {\n reset: (state) => {\n state.data = null;\n state.error = null;\n state.loading = false;\n },\n updateSurveyIdData: (state, action) => {\n state.data = action.payload\n }\n\n },\n extraReducers: (builder) => {\n builder\n .addCase(asyncThunk.pending, (state) => {\n state.loading = true;\n state.error = null;\n })\n .addCase(asyncThunk.fulfilled, (state, action: PayloadAction) => {\n state.loading = false;\n state.data = action.payload as Draft;\n })\n .addCase(asyncThunk.rejected, (state, action: PayloadAction) => {\n state.loading = false;\n state.error = action.payload;\n state.data = action.payload;\n });\n },\n });\n\n return {\n reducer: slice.reducer,\n actions: slice.actions\n };\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport { IUpdateUser } from '@services/auth.service';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const updateUserThunk = createAsyncThunk('updateUser', async (formData: IUpdateUser, { rejectWithValue }) => {\n try {\n const response = await serviceApis.updateUserApi(formData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('updateUser', updateUserThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const userDetailsThunk = createAsyncThunk('userDetails', async (_, { rejectWithValue }) => {\n try {\n const response = await serviceApis.userDetailsApi();\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('userDetails', userDetailsThunk, {});\nexport default reducer;","import { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const getSurveyByIdPrevThunk = createAsyncThunk('getSurveyByIdPrev', async (queryData: string, { rejectWithValue }) => {\n try {\n const response = await serviceApis.getSurveyByIdApi(queryData);\n return response;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\n\nconst {reducer, actions } =createSliceHook('getSurveyByIdPrev', getSurveyByIdPrevThunk, {});\nexport const { reset: resetGetSurveyById } = actions;\n\nexport default reducer;","import { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const getSurveyByIdThunk = createAsyncThunk('getSurveyById', async (queryData: string, { rejectWithValue }) => {\n try {\n const response = await serviceApis.getSurveyByIdApi(queryData);\n return response;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\n\nconst {reducer, actions } =createSliceHook('getSurveyById', getSurveyByIdThunk, {});\nexport const { reset: resetGetSurveyById, updateSurveyIdData } = actions;\n\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nimport { ISurveyDetail } from 'services/dashboard.service';\nexport const surveysThunk = createAsyncThunk('surveys', async (queryData: ISurveyDetail, { rejectWithValue }) => {\n try {\n const response = await serviceApis.surveysApi(queryData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('surveys', surveysThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const getPatientDetailsThunk = createAsyncThunk('surveys', async (timePeriod: string, { rejectWithValue }) => {\n try {\n const response = await serviceApis.getPatientDetailsApi(timePeriod);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('getPatientDetails', getPatientDetailsThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const physiotherapyDashboardThunk = createAsyncThunk('surveys', async (timePeriod: string, { rejectWithValue }) => {\n try {\n const response = await serviceApis.physiotherapyDashboardApi(timePeriod);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('physiotherapyDashboard', physiotherapyDashboardThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport axiosInstance from \"@axios/axios\";\nexport const getCaptcha = async (bodyData: any) => {\n const response = await axiosInstance.post('captcha/generateCaptcha', { ...bodyData });\n return response.data;\n};\n\nexport const verifyCaptcha = async (data: any) => {\n const response = await axiosInstance.post('captcha/verifyCaptcha', { ...data });\n return response.data;\n};\nexport const checkBevahior = async (data: any) => {\n const response = await axiosInstance.post('captcha/checkBehavior', { ...data });\n return response.data;\n}\nconst captchaServices = {\n getCaptcha,\n verifyCaptcha,\n checkBevahior\n};\nexport default captchaServices;\n","import captchaServices from \"./services/captchaServices\";\n\nexport interface UADataValues {\n brands?: { brand: string; version: string }[];\n platform?: string;\n mobile?: boolean;\n architecture?: string;\n bitness?: string;\n}\n\nexport interface NetworkInformation {\n effectiveType: string;\n downlink: number;\n rtt: number;\n saveData: boolean;\n}\n\n/**\n * Safely get permissions state with fallbacks for mobile browsers\n */\nexport const getPermissionsState = async () => {\n // Check if permissions API is available\n if (!navigator.permissions) {\n return [];\n }\n\n const permissions = ['geolocation', 'notifications', 'camera', 'microphone'];\n \n try {\n return Promise.all(\n permissions.map(async p => ({\n name: p,\n state: await navigator.permissions\n .query({ name: p as \"geolocation\" | \"notifications\" | \"camera\" | \"microphone\" })\n .then(result => result.state)\n .catch(() => 'unsupported')\n }))\n );\n } catch (e) {\n // Fallback for browsers with partial permissions support\n return permissions.map(p => ({\n name: p,\n state: 'unknown'\n }));\n }\n};\n\n/**\n * Get GPU information with error handling for mobile browsers\n */\nexport const getGPUInfo = () => {\n try {\n const canvas = document.createElement('canvas');\n let gl;\n \n // Try different WebGL contexts (important for iOS)\n try {\n gl = canvas.getContext('webgl') || \n canvas.getContext('experimental-webgl');\n } catch (e) {\n return null;\n }\n\n if (!gl) return null;\n\n // Safely extract values\n const vendor = (gl as WebGLRenderingContext).getParameter((gl as WebGLRenderingContext).VENDOR) || '';\n const renderer = (gl as WebGLRenderingContext).getParameter((gl as WebGLRenderingContext).RENDERER) || '';\n \n // Some mobile browsers may fail on getSupportedExtensions\n let extensions = null;\n try {\n extensions = (gl as WebGLRenderingContext).getSupportedExtensions();\n } catch (e) {\n // Ignore extension errors\n }\n\n return {\n vendor: String(vendor),\n renderer: String(renderer),\n extensions\n };\n } catch (e) {\n // WebGL completely unsupported or errored\n return null;\n }\n};\n\n/**\n * Get canvas fingerprint with mobile compatibility\n */\nexport const getCanvasFingerprint = async (): Promise => {\n try {\n const canvas = document.createElement(\"canvas\");\n canvas.width = 200;\n canvas.height = 60;\n \n const ctx = canvas.getContext(\"2d\");\n if (!ctx) return \"\";\n \n // Basic canvas operations\n ctx.textBaseline = \"top\";\n ctx.font = \"14px Arial\";\n ctx.fillStyle = \"#f60\";\n ctx.fillRect(125, 1, 62, 20);\n ctx.fillStyle = \"#069\";\n ctx.fillText(\"Canvas FP\", 2, 15);\n ctx.fillStyle = \"rgba(102, 204, 0, 0.7)\";\n ctx.fillText(\"Canvas FP\", 4, 17);\n\n // Get dataURL with error handling\n try {\n return canvas.toDataURL();\n } catch (e) {\n return \"\";\n }\n } catch (e) {\n return \"\";\n }\n};\n\n/**\n * Get detailed canvas fingerprints with better mobile support\n */\nexport const getDetailedCanvasFingerprints = () => {\n try {\n const canvas = document.createElement('canvas');\n canvas.width = 200; \n canvas.height = 60;\n \n const ctx = canvas.getContext('2d');\n \n if (!ctx) {\n return {\n canvasText: '',\n canvasGeometry: '',\n canvasBlending: ''\n };\n }\n \n // Default result object\n const result = {\n canvasText: '',\n canvasGeometry: '',\n canvasBlending: ''\n };\n \n // Text rendering test - with try/catch for each operation\n try {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.font = '14px Arial';\n ctx.fillText('Hello, world!', 2, 2);\n result.canvasText = canvas.toDataURL();\n } catch (e) {\n // Text operation failed\n }\n \n // Geometry rendering test\n try {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.beginPath();\n ctx.arc(50, 50, 25, 0, Math.PI * 2);\n ctx.fill();\n result.canvasGeometry = canvas.toDataURL();\n } catch (e) {\n // Geometry operation failed\n }\n \n // Color blending test\n try {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.globalCompositeOperation = 'multiply';\n ctx.fillStyle = 'rgba(255,0,0,0.5)';\n ctx.fillRect(0, 0, 10, 10);\n result.canvasBlending = canvas.toDataURL();\n } catch (e) {\n // Blending operation failed\n }\n \n return result;\n } catch (e) {\n // Complete canvas failure\n return {\n canvasText: '',\n canvasGeometry: '',\n canvasBlending: ''\n };\n }\n};\n\n/**\n * Get WebGL fingerprint with better error handling\n */\nexport const getWebGLFingerprint = async (): Promise<{\n vendor: string;\n renderer: string;\n extensions: string[] | null;\n} | null> => {\n try {\n const canvas = document.createElement(\"canvas\");\n let gl;\n \n try {\n gl = canvas.getContext(\"webgl\") || \n canvas.getContext(\"experimental-webgl\");\n } catch (e) {\n return null;\n }\n \n if (!gl) return null;\n\n // Default values\n let vendor = '';\n let renderer = '';\n let extensions = null;\n \n // Try to get each parameter individually\n try {\n vendor = (gl as WebGLRenderingContext).getParameter((gl as WebGLRenderingContext).VENDOR) || '';\n } catch (e) {\n // Vendor parameter failed\n }\n \n try {\n renderer = (gl as WebGLRenderingContext).getParameter((gl as WebGLRenderingContext).RENDERER) || '';\n } catch (e) {\n // Renderer parameter failed\n }\n \n try {\n extensions = (gl as WebGLRenderingContext).getSupportedExtensions() || null;\n } catch (e) {\n // Extensions parameter failed\n }\n\n return {\n vendor: String(vendor),\n renderer: String(renderer),\n extensions\n };\n } catch (e) {\n return null;\n }\n};\n\n/**\n * Get information about the browser and device safely\n */\nexport const getBrowserInfo = () => {\n const userAgent = navigator.userAgent || '';\n \n // Detect iOS\n const isIOS = /iPad|iPhone|iPod/.test(userAgent) && !(window as any).MSStream;\n \n // Detect Android\n const isAndroid = /Android/.test(userAgent);\n \n // Detect browser (simplified)\n const isSafari = /Safari/.test(userAgent) && !/Chrome/.test(userAgent);\n const isChrome = /Chrome/.test(userAgent);\n const isFirefox = /Firefox/.test(userAgent);\n \n return {\n userAgent,\n isIOS,\n isAndroid,\n isMobile: isIOS || isAndroid,\n browser: isSafari ? 'Safari' : isChrome ? 'Chrome' : isFirefox ? 'Firefox' : 'Other'\n };\n};\n\n/**\n * Generate a safe device memory value\n */\nconst getSafeDeviceMemory = () => {\n if ('deviceMemory' in navigator) {\n try {\n return (navigator as any).deviceMemory;\n } catch (e) {\n return null;\n }\n }\n return null;\n};\n\n/**\n * Get available device data with proper error handling\n */\nexport const getDeviceData = async () => {\n // Check browser type for targeted workarounds\n const browserInfo = getBrowserInfo();\n \n // Create a structured object for all device data\n const deviceData = {\n // Modern APIs for platform info\n platform: {\n brands: [] as { brand: string; version: string }[],\n platform: '',\n mobile: browserInfo.isMobile,\n architecture: '',\n bitness: '',\n browserInfo: browserInfo,\n },\n\n // Modern screen and display info\n screen: {\n width: window.screen.width || 0,\n height: window.screen.height || 0,\n colorDepth: window.screen.colorDepth || 0,\n pixelDepth: window.screen.pixelDepth || 0,\n orientation: '',\n pixelRatio: window.devicePixelRatio || 1,\n },\n\n // Modern hardware capabilities\n hardware: {\n cores: navigator.hardwareConcurrency || 0,\n memory: null as { totalJSHeapSize: number; usedJSHeapSize: number; jsHeapSizeLimit: number } | null,\n maxTouchPoints: navigator.maxTouchPoints || 0,\n gpu: null as ReturnType,\n },\n\n // Modern browser capabilities\n capabilities: {\n cookiesEnabled: navigator.cookieEnabled || false,\n serviceWorker: 'serviceWorker' in navigator,\n permissions: [] as Awaited>,\n connection: null as NetworkInformation | null,\n },\n\n // Modern language and locale info\n localization: {\n languages: navigator.languages || [navigator.language || ''],\n timeZone: '',\n locale: {},\n },\n\n // Canvas and WebGL fingerprints\n fingerprints: {\n canvasText: '',\n canvasGeometry: '',\n canvasBlending: '',\n webgl: null as Awaited>,\n audio: '', // New audio fingerprint property\n }\n };\n\n // Try to get User Agent data\n try {\n const uaData = (navigator as Navigator & { userAgentData?: UADataValues }).userAgentData;\n if (uaData) {\n deviceData.platform.brands = uaData.brands || [];\n deviceData.platform.platform = uaData.platform || '';\n deviceData.platform.mobile = uaData.mobile || browserInfo.isMobile;\n deviceData.platform.architecture = uaData.architecture || '';\n deviceData.platform.bitness = uaData.bitness || '';\n }\n } catch (e) {\n // UA Data API not available - use fallback from browserInfo\n }\n\n // Try to get screen orientation\n try {\n deviceData.screen.orientation = window.screen.orientation?.type || '';\n } catch (e) {\n // Orientation API not available\n }\n\n // Try to get memory info\n try {\n deviceData.hardware.memory = \n (performance as Performance & { \n memory?: { \n totalJSHeapSize: number; \n usedJSHeapSize: number; \n jsHeapSizeLimit: number \n } \n }).memory || null;\n \n // If memory is null, try deviceMemory as fallback\n if (!deviceData.hardware.memory) {\n const deviceMemory = getSafeDeviceMemory();\n if (deviceMemory) {\n deviceData.hardware.memory = { totalJSHeapSize: deviceMemory * 1024 * 1024 * 1024, usedJSHeapSize: 0, jsHeapSizeLimit: 0 };\n }\n }\n } catch (e) {\n // Memory API not available\n }\n\n // Try to get GPU info\n deviceData.hardware.gpu = getGPUInfo();\n\n // Try to get permissions (with retry in case of first-attempt failure)\n try {\n deviceData.capabilities.permissions = await getPermissionsState();\n } catch (e) {\n // Second attempt with minimal permissions\n try {\n deviceData.capabilities.permissions = await getPermissionsState();\n } catch (e) {\n // Permissions API completely unavailable\n deviceData.capabilities.permissions = [];\n }\n }\n\n // Try to get network connection info\n try {\n deviceData.capabilities.connection = \n (navigator as Navigator & { connection?: NetworkInformation }).connection || null;\n } catch (e) {\n // Connection API not available\n }\n\n // Try to get timezone and locale info\n try {\n const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n deviceData.localization.timeZone = timeZone || '';\n \n const locale = Intl.DateTimeFormat().resolvedOptions();\n deviceData.localization.locale = locale;\n } catch (e) {\n // Intl APIs not available\n }\n\n // Get canvas fingerprinting data\n try {\n const canvasData = getDetailedCanvasFingerprints();\n deviceData.fingerprints.canvasText = canvasData.canvasText;\n deviceData.fingerprints.canvasGeometry = canvasData.canvasGeometry;\n deviceData.fingerprints.canvasBlending = canvasData.canvasBlending;\n } catch (e) {\n // Canvas APIs not available\n }\n\n // Get WebGL fingerprint\n try {\n deviceData.fingerprints.webgl = await getWebGLFingerprint();\n } catch (e) {\n // WebGL APIs not available\n }\n \n // Get Audio fingerprint\n try {\n deviceData.fingerprints.audio = await getAudioFingerprint();\n } catch (e) {\n // Audio APIs not available\n }\n\n return deviceData;\n};\n\n/**\n * Generate an audio fingerprint by analyzing how the browser processes audio\n * This creates a unique signature based on how the audio context is implemented\n */\nexport const getAudioFingerprint = async (): Promise => {\n // Check if AudioContext is supported\n if (typeof window === 'undefined' || !window.AudioContext && !(window as any).webkitAudioContext) {\n return '';\n }\n\n try {\n // Get the appropriate AudioContext constructor\n const AudioContext = window.AudioContext || (window as any).webkitAudioContext;\n const audioContext = new AudioContext();\n \n // Create an oscillator and analyzer\n const oscillator = audioContext.createOscillator();\n const analyser = audioContext.createAnalyser();\n const gainNode = audioContext.createGain();\n const scriptProcessor = audioContext.createScriptProcessor(4096, 1, 1);\n \n // Connect the nodes\n gainNode.gain.value = 0; // Mute the sound\n oscillator.type = 'triangle'; // Use triangle wave\n oscillator.connect(analyser);\n analyser.connect(scriptProcessor);\n scriptProcessor.connect(gainNode);\n gainNode.connect(audioContext.destination);\n \n // Set up analyzer\n analyser.fftSize = 2048;\n const bufferLength = analyser.frequencyBinCount;\n const dataArray = new Uint8Array(bufferLength);\n \n // State variables for audio processing\n let audioData = '';\n let isProcessing = true;\n \n // Process audio data\n return new Promise((resolve) => {\n // Create a timeout for mobile browsers that might not process audio quickly\n const timeout = setTimeout(() => {\n if (isProcessing) {\n isProcessing = false;\n \n try {\n // Try to clean up\n scriptProcessor.disconnect();\n gainNode.disconnect();\n analyser.disconnect();\n oscillator.disconnect();\n audioContext.close();\n } catch (e) {\n // Ignore cleanup errors\n }\n \n // Return empty string if we couldn't process in time\n resolve('');\n }\n }, 1000);\n \n // Process the audio data\n scriptProcessor.onaudioprocess = (event) => {\n if (!isProcessing) return;\n \n // Get the audio data\n analyser.getByteFrequencyData(dataArray);\n \n // Take a sample of the audio data to create a fingerprint\n const sampleSize = Math.min(bufferLength, 30); // Use at most 30 samples\n let sample = '';\n \n for (let i = 0; i < sampleSize; i += 3) {\n sample += dataArray[i].toString(16);\n }\n \n // Add sample to audio data\n audioData = sample;\n \n // We got the data, clean up\n isProcessing = false;\n clearTimeout(timeout);\n \n try {\n // Clean up audio resources\n scriptProcessor.disconnect();\n gainNode.disconnect();\n analyser.disconnect();\n oscillator.disconnect();\n audioContext.close();\n } catch (e) {\n // Ignore cleanup errors\n }\n \n // Hash the audio data to make it more concise\n const hash = hashString(audioData);\n resolve(hash);\n };\n \n // Start the oscillator\n oscillator.start(0);\n });\n } catch (e) {\n // Return empty string if audio processing fails\n return '';\n }\n};\n\n/**\n * Simple string hashing function for audio fingerprint\n */\nconst hashString = (str: string): string => {\n let hash = 0;\n if (str.length === 0) return hash.toString(16);\n \n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = ((hash << 5) - hash) + char;\n hash = hash & hash; // Convert to 32bit integer\n }\n \n return hash.toString(16);\n};\n\n/**\n * Get timing resolution measurement with better browser support\n */\nexport const getTimingResolution = () => {\n try {\n const iterations = 50; // Reduced from 100 for better mobile performance\n const timings = new Float64Array(iterations);\n \n // Measure the smallest possible time difference\n for(let i = 0; i < iterations; i++) {\n const start = performance.now();\n let end = performance.now();\n let safety = 0;\n \n // Add safety counter to avoid infinite loops on some browsers\n while (end === start && safety < 1000) {\n end = performance.now();\n safety++;\n }\n \n timings[i] = end - start;\n }\n\n // Get statistical measures\n let minDiff = Infinity;\n let sum = 0;\n \n for (let i = 0; i < iterations; i++) {\n const value = timings[i];\n if (value < minDiff && value > 0) minDiff = value;\n sum += value;\n }\n \n // If all values are 0 or we never found a min\n if (minDiff === Infinity) minDiff = 0;\n \n const avgDiff = sum / iterations;\n \n return `${minDiff.toFixed(6)}_${avgDiff.toFixed(6)}`;\n } catch (e) {\n return \"0_0\";\n }\n};\n\n/**\n * Generate a simple device ID when other methods fail\n */\nconst generateSimpleDeviceId = () => {\n const screen = `${window.screen.width}x${window.screen.height}`;\n const colorDepth = window.screen.colorDepth || 0;\n const pixelRatio = window.devicePixelRatio || 1;\n const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone || '';\n const language = navigator.language || '';\n const platform = navigator.platform || '';\n \n return btoa(`${screen}_${colorDepth}_${pixelRatio.toFixed(2)}_${timeZone}_${language}_${platform}`);\n};\n\n/**\n * Get fingerprints token with improved error handling\n */\nexport const getFingerprintsToken = async () => {\n try {\n // Try to get detailed device data\n let deviceData;\n try {\n deviceData = await getDeviceData();\n } catch (e) {\n // If detailed data fails, create minimal device data\n const minimal = {\n userAgent: navigator.userAgent,\n screen: {\n width: window.screen.width,\n height: window.screen.height\n },\n simpleId: generateSimpleDeviceId()\n };\n deviceData = minimal;\n }\n \n // Call the captcha service\n const data = await captchaServices.getCaptcha({\n deviceData,\n userAgent: navigator.userAgent\n });\n \n if (data?.status === 200) {\n // Try to store in localStorage\n try {\n localStorage.setItem('cookieId', data.token);\n } catch (e) {\n // If localStorage fails, use a fallback cookie\n document.cookie = `cookieId=${data.token};path=/;max-age=31536000`;\n }\n }\n \n return data;\n } catch (error) {\n console.log('Fingerprint error:', error);\n \n // Return a minimal response to prevent complete failure\n return {\n status: 500,\n error: 'Fingerprinting failed',\n token: 'fallback-token-' + Date.now()\n };\n }\n}","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { getFingerprintsToken } from '../helper'; // Adjust path as needed\n\n// Define an initial state for the slice\ninterface CommonState {\n data: T | null;\n isLoading: boolean;\n error: string | null;\n}\n\nconst initialState: CommonState = {\n data: null,\n isLoading: false,\n error: null,\n};\n\nexport interface CaptchaResponse {\n status: number;\n token: string;\n text: string;\n difficulty: 'easy' | 'medium' | 'hard';\n expiresIn: number;\n }\nexport const fetchCaptchaTokenThunk = createAsyncThunk(\n 'common/fetchCaptchaToken',\n async (_, { rejectWithValue }) => {\n try {\n const data = await getFingerprintsToken() as CaptchaResponse;\n if (data?.status === 200) {\n const cId = localStorage.getItem('cookieId');\n if(cId){\n localStorage.setItem('cookieId', data.token);\n }\n return data;\n } else {\n return rejectWithValue('Failed to fetch CAPTCHA data.');\n }\n } catch {\n return rejectWithValue('An error occurred while fetching the CAPTCHA.');\n }\n }\n);\nconst getFingerprintsTokenSlice = createSlice({\n name: 'getFingerprintsToken',\n initialState,\n reducers: {\n resetState: (state) => {\n state.isLoading = false;\n state.error = null;\n state.data = null;\n },\n },\n extraReducers: (builder) => {\n builder\n .addCase(fetchCaptchaTokenThunk.pending, (state) => {\n state.isLoading = true;\n state.error = null;\n })\n .addCase(fetchCaptchaTokenThunk.fulfilled, (state, action: PayloadAction) => {\n state.isLoading = false;\n state.data = action.payload;\n })\n .addCase(fetchCaptchaTokenThunk.rejected, (state, action) => {\n state.isLoading = false;\n state.error = action.payload as string;\n });\n },\n});\n\n// Export actions\nexport const { resetState } = getFingerprintsTokenSlice.actions;\nexport default getFingerprintsTokenSlice.reducer;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nimport { SurveyAnswerData } from '../pages/AttemptSurvey';\nexport const attemptSurveyThunk = createAsyncThunk('attemptSurvey', async (queryData: SurveyAnswerData, { rejectWithValue }) => {\n try {\n const response = await serviceApis.attemptSurveyApi(queryData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n}); \nconst { reducer } = createSliceHook('attemptSurvey', attemptSurveyThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const cloneSurveyThunk = createAsyncThunk('cloneSurvey', async (surveyId: string, { rejectWithValue }) => {\n try {\n const response = await serviceApis.cloneSurveyApi(surveyId);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst {reducer} = createSliceHook('cloneSurvey', cloneSurveyThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const createSurveyIdThunk = createAsyncThunk('createSurveyId', async (surveyType: number, { rejectWithValue }) => {\n try {\n const response = await serviceApis.createSurveyIdApi(surveyType);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('createSurveyId', createSurveyIdThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\n\nexport interface SurveyTitleName {\n surveyId: string | undefined;\n surveyTitle: string;\n}\nexport const createSurveyTitleThunk = createAsyncThunk('createSurveyTitle', async (queryData: SurveyTitleName, { rejectWithValue }) => {\n try {\n const response = await serviceApis.createSurveyTitle({ bodyData: queryData });\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('createSurveyTile', createSurveyTitleThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport interface CreateSurveyArgs {\n queryData: any;\n surveyId: string;\n}\nexport const createSurveyThunk = createAsyncThunk('createSurvey', async ({ queryData, surveyId }: CreateSurveyArgs, { rejectWithValue }) => {\n try {\n const response = await serviceApis.createSurveyApi({ queryData, surveyId });\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('createSurvey', createSurveyThunk, {});\nexport default reducer;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const getFeatureOptionsThunk = createAsyncThunk('getFeatureOptions', async (_, { rejectWithValue }) => {\n try {\n const response = await serviceApis.getFeatureOptionsApi();\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('getFeatureOptions', getFeatureOptionsThunk, {});\nexport default reducer;","import { createAsyncThunk, createSlice, PayloadAction } from \"@reduxjs/toolkit\";\nimport serviceApis from \"@services/service\";\nexport interface Feature {\n featureId: number;\n isFeatureActive: 1 | 0;\n featureOptionValue: string | number;\n}\nexport interface PollSettingData {\n surveyId: string;\n features: Feature[];\n optionSelectLimit?: string | null\n}\ninterface AsyncState {\n loading: boolean;\n error: string | null;\n data: T | null;\n}\nconst initialState: AsyncState = {\n data: { surveyId: \"\", features: [], optionSelectLimit: '' },\n loading: true,\n error: null,\n};\nexport const getPollSettingThunk = createAsyncThunk(\n \"pollSetting/fetch\",\n async (surveyId: string, { rejectWithValue }) => {\n try {\n const response: { data: PollSettingData } = await serviceApis.getPollSettingApi(surveyId);\n return response.data;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n\n }\n }\n);\nconst pollSettingSlice = createSlice({\n name: \"pollSetting\",\n initialState,\n reducers: {\n updateFeature: (state, action: PayloadAction<{ featureId: number; id?: string | number; isActive?: boolean }>) => {\n if (!state.data || typeof state.data !== \"object\") {\n return;\n }\n \n if (!state.data.features) state.data.features = [];\n \n const { featureId, id, isActive } = action.payload;\n const existingFeature = state.data.features.find((f) => f.featureId === featureId);\n \n if (existingFeature) {\n // Update `featureOptionValue` only if `id` is provided, otherwise keep existing value\n if (id !== undefined) {\n existingFeature.featureOptionValue = id;\n }\n \n // Update `isFeatureActive` only if `isActive` is provided, otherwise keep existing value\n if (isActive !== undefined) {\n existingFeature.isFeatureActive = isActive ? 1 : 0;\n }\n } else {\n // If no existing feature, create a new one\n state.data.features.push({\n featureId,\n isFeatureActive: isActive !== undefined ? (isActive ? 1 : 0) : 1, // Default to active if not specified\n featureOptionValue: id ?? \"\",\n });\n }\n },\n clearPollSetting: (state) => {\n state.data = { surveyId: \"\", features: [], optionSelectLimit: \"\" };\n state.loading = false;\n state.error = null;\n },\n \n },\n extraReducers: (builder) => {\n builder\n .addCase(getPollSettingThunk.pending, (state) => {\n state.loading = true;\n })\n .addCase(getPollSettingThunk.fulfilled, (state, action: PayloadAction) => {\n state.loading = false;\n state.data = action.payload ?? {data:{ surveyId: \"\", features: [] }};\n })\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .addCase(getPollSettingThunk.rejected, (state, action: PayloadAction) => {\n state.loading = false;\n state.data = action.payload ?? {data:{ surveyId: \"\", features: [] }}\n state.error = typeof action.payload === \"string\" ? action.payload : \"Unknown error occurred\";\n });\n },\n});\nexport const { updateFeature,clearPollSetting } = pollSettingSlice.actions;\nexport default pollSettingSlice.reducer;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const getSettingFeatureThunk = createAsyncThunk('getSettingFeatures', async (_, { rejectWithValue }) => {\n try {\n const response = await serviceApis.getSettingFeaturesApi();\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('getSettingFeatures', getSettingFeatureThunk, {});\nexport default reducer;","import { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\n\ninterface SurveyAttemptParams {\n surveyId: string;\n currentUrl?: string; // Made optional\n}\n\nexport const getSurveyOrPollForAttemptThunk = createAsyncThunk(\n 'getSurveyOrPollForAttempt',\n async ({ surveyId, currentUrl }: SurveyAttemptParams, { rejectWithValue }) => {\n try {\n const response = await serviceApis.getSurveyOrPollForAttemptApi(surveyId, currentUrl);\n return response;\n } catch (error: unknown) {\n if (error instanceof Error && (error as any).response?.data) {\n return rejectWithValue((error as any).response.data);\n }\n return rejectWithValue('An unknown error occurred');\n }\n }\n);\n\n// Create slice with thunk\nconst { reducer, actions } = createSliceHook('getSurveyOrPollForAttempt', getSurveyOrPollForAttemptThunk, {});\n\n// Export actions & reducer\nexport const { reset: resetGetSurveyOrPollForAttempt } = actions;\nexport default reducer;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const surveyUrlThunk = createAsyncThunk('surveyUrl', async (surveyId: string, { rejectWithValue }) => {\n try {\n const response = await serviceApis.surveyUrlApi(surveyId);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('surveyUrl', surveyUrlThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport interface IQuestionDelete {\n surveyId: string;\n questionOrder: number\n}\nexport const questionSoftDeleteThunk = createAsyncThunk('questionSoftDelete', async (queryData: IQuestionDelete, { rejectWithValue }) => {\n try {\n const response = await serviceApis.questionSoftDelete(queryData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('questionSoftDelete', questionSoftDeleteThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport { redeemApis } from '@services/redeem.service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const redeemRewardThunk = createAsyncThunk('redeemReward', async (queryData: string, { rejectWithValue }) => {\n try {\n const response = await redeemApis.redeemRewardApi(queryData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('redeemReward', redeemRewardThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport interface VisitorSourcesBody {\n referrerType?: string\n referrerDomain?: string | null;\n visitedUrl: string | null\n}\nexport const trackSurveyUrlClickThunk = createAsyncThunk('trackSurvey', async (queryData:VisitorSourcesBody , { rejectWithValue }) => {\n try {\n const response = await serviceApis.trackSurveyUrlClickApi(queryData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n}); \nconst { reducer } = createSliceHook('trackSurvey', trackSurveyUrlClickThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\n\ninterface IQuestionOrder {\n newOrderId: number;\n questionOrder: number;\n}\n\nexport interface surveyQuestionOrderUpdate {\n surveyId: string;\n questionOrder: IQuestionOrder[];\n}\n\nexport const updateQuestionOrderThunk = createAsyncThunk('updateQuestionOrder', async (queryData: surveyQuestionOrderUpdate, { rejectWithValue }) => {\n try {\n const response = await serviceApis.updateQuestionOrderApi(queryData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('updateQuestionOrder', updateQuestionOrderThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport { redeemApis } from '@services/redeem.service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\nexport const verifyRewardCuponThunk = createAsyncThunk('verifyRewardCupon', async (queryData: string, { rejectWithValue }) => {\n try {\n const response = await redeemApis.verifyRewardCouponApi(queryData);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n});\nconst { reducer } = createSliceHook('verifyRewardCupon', verifyRewardCuponThunk, {});\nexport default reducer;","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nexport interface RadioOption {\n optionId: number;\n optionText: string;\n isAnswer: number;\n optionOrder: number;\n}\n\ninterface RadioOptionsState {\n optionsByQuestion: Record;\n}\n\nconst initialState: RadioOptionsState = {\n optionsByQuestion: {},\n};\n\nconst radioOptionsSlice = createSlice({\n name: 'radioOptions',\n initialState,\n reducers: {\n addRadioOption(state, action: PayloadAction<{ questionId: number; option: RadioOption }>) {\n const { questionId, option } = action.payload;\n if (!state.optionsByQuestion[questionId]) {\n state.optionsByQuestion[questionId] = [];\n }\n state.optionsByQuestion[questionId].push(option);\n },\n updateRadioOption(state, action: PayloadAction<{ questionId: number; optionId: number; updatedOption: Partial }>) {\n const { questionId, optionId, updatedOption } = action.payload;\n const options = state.optionsByQuestion[questionId];\n if (options) {\n const optionIndex = options.findIndex(option => option.optionId === optionId);\n if (optionIndex !== -1) {\n options[optionIndex] = { ...options[optionIndex], ...updatedOption };\n }\n }\n },\n\n removeRadioOption(state, action: PayloadAction<{ questionId: number; optionId: number }>) {\n const { questionId, optionId } = action.payload;\n const options = state.optionsByQuestion[questionId];\n if (options) {\n state.optionsByQuestion[questionId] = options.filter(option => option.optionId !== optionId);\n }\n },\n resetRadioOptions(state, action: PayloadAction) {\n const questionId = action.payload;\n delete state.optionsByQuestion[questionId];\n },\n },\n});\n\nexport const {\n addRadioOption,\n updateRadioOption,\n removeRadioOption,\n resetRadioOptions,\n} = radioOptionsSlice.actions;\n\nexport default radioOptionsSlice.reducer;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\n\nexport interface GetParticipantsBySurveyIdParams {\n limit: number;\n currentPage: number;\n status: number;\n surveyId: string;\n overview?: boolean ;\n}\n\nexport const getParticipantsBySurveyIdThunk = createAsyncThunk(\n 'getParticipantsBySurveyId',\n async (queryData: GetParticipantsBySurveyIdParams, { rejectWithValue }) => {\n try {\n const finalQueryData = { ...queryData, overview: queryData.overview ?? false };\n const response: { data: any } = await serviceApis.getParticipantsBySurveyId(finalQueryData);\n console.log(response.data);\n return response.data;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n }\n);\n\nconst { reducer } = createSliceHook('getParticipantsBySurveyId', getParticipantsBySurveyIdThunk, {});\nexport default reducer;","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { createAsyncThunk } from '@reduxjs/toolkit';\nimport serviceApis from '@services/service';\nimport { createSliceHook } from '@shared/hooks/createSliceHook';\n\ninterface SurveyReportArgs {\n surveyId: string;\n}\n\nexport const getSurveyReportThunk = createAsyncThunk(\n 'getFeatureOptions',\n async ({ surveyId }: SurveyReportArgs, { rejectWithValue }) => {\n try {\n const response = await serviceApis.getSurveyReportApi(surveyId);\n return response;\n } catch (error: any) {\n return rejectWithValue(error.response.data);\n }\n }\n);\n\nconst { reducer } = createSliceHook('getFeatureOptions', getSurveyReportThunk, {});\nexport default reducer;","import authSlice from '@features/auth/slice/AuthSlice';\nimport updateUserSlice from '@features/auth/slice/updateUserSlice';\nimport userDetailSlice from '@features/auth/slice/userDetailSlice';\nimport getSurveyByIdPrevSlice from '@features/dashboard/slice/getSurveyByIdPrevSlice';\nimport getSurveyByIdSlice from '@features/dashboard/slice/getSurveyByIdSlice';\nimport surveys from '@features/dashboard/slice/surveysSlice';\nimport getPatientDetailSlice from '@features/painAssessment/slice/getPatientDetailSlice';\nimport physiotherapyDashboardSlice from '@features/painAssessment/slice/physiotherapyDashboardSlice';\nimport getCaptchCodeSlice from '@features/security/captcha/slice/getCaptchCodeSlice';\nimport attemptSurveySlice from '@features/survey/slice/attemptSurveySlice';\nimport cloneSurveySlice from '@features/survey/slice/cloneSurveySlice';\nimport createSurveyIdSlice from '@features/survey/slice/createSurveyIdSlice';\nimport createSurveyNameSlice from '@features/survey/slice/createSurveyNameSlice';\nimport createSurveySlice from '@features/survey/slice/createSurveySlice';\nimport getFeatureOptionSlice from '@features/survey/slice/getFeatureOptionSlice';\nimport getPollSettingSlice from '@features/survey/slice/getPollSettingSlice';\nimport getSettingFeatureSlice from '@features/survey/slice/getSettingFeatureSlice';\nimport selectedQuestionReducer from '@features/survey/slice/getSidebarType';\nimport getSurveyOrPollForAttemptSlice from '@features/survey/slice/getSurveyOrPollForAttemptSlice';\nimport getSurveyUrlSlice from '@features/survey/slice/getSurveyUrlSlice';\nimport qustionSoftDeleteSlice from '@features/survey/slice/qustionSoftDeleteSlice';\nimport redeemRewardSlice from '@features/survey/slice/redeemRewardSlice';\nimport trackSurveyUrlClickSlice from '@features/survey/slice/trackSurveyClickSlice';\nimport updateQuestionOrderSlice from '@features/survey/slice/updateQuestionOrderSlice';\nimport verifyRewardCouponSlice from '@features/survey/slice/verifyRewardCouponSlice';\nimport radioOptionsReducer from '../features/survey/slice/getOptionByQuestion';\nimport getParticipantsBySurveyIdSlice from '../features/survey/slice/getParticipantsBySurveyIdSlice';\nimport getSurveyReportSlice from '../features/survey/slice/getSurveyReportSlice';\nconst reducer = {\n auth: authSlice,\n question: selectedQuestionReducer,\n radioOptions: radioOptionsReducer,\n surveys,\n getSurveyByIdSlice,\n attemptSurveySlice,\n createSurveySlice,\n createSurveyIdSlice,\n getSurveyUrlSlice,\n qustionSoftDeleteSlice,\n createSurveyNameSlice,\n cloneSurveySlice,\n updateUserSlice,\n userDetailSlice,\n updateQuestionOrderSlice,\n trackSurveyUrlClickSlice,\n getSurveyByIdPrevSlice,\n getSurveyOrPollForAttemptSlice,\n getSettingFeatureSlice,\n getFeatureOptionSlice,\n getPollSettingSlice,\n getCaptchCodeSlice,\n physiotherapyDashboardSlice,\n getPatientDetailSlice,\n getParticipantsBySurveyIdSlice,\n getSurveyReportSlice,\n verifyRewardCouponSlice,\n redeemRewardSlice\n};\n\nexport default reducer;\n","import { combineReducers } from 'redux';\nimport { persistReducer } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage'; // Default storage (localStorage)\nimport reducer from './reducer'; // Your reducers\nexport const clearStoreAction = 'CLEAR_STORE';\n\n// Root persist configuration\nconst rootPersistConfig = {\n key: 'root', \n storage,\n keyPrefix: 'redux-',\n};\n\nconst rootReducer = combineReducers({\n ...reducer,\n});\n\n// Create the persisted reducer using redux-persist\nconst persistedReducer = persistReducer(rootPersistConfig, rootReducer);\n\n// Custom app reducer to handle resetting the entire store on clearStoreAction\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst appReducer = (state: any, action: any) => {\n if (action.type === clearStoreAction) {\n // Reset the state to undefined, which will reset all slices of the state\n state = undefined;\n }\n return persistedReducer(state, action);\n};\n\nexport type RootState = ReturnType;\nexport { appReducer, rootPersistConfig, persistedReducer as rootReducer };\n\n\n","import { configureStore } from '@reduxjs/toolkit';\nimport { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';\nimport { persistReducer, persistStore } from 'redux-persist';\nimport { rootPersistConfig, rootReducer } from './rootReducer';\n\n// Configuring the store\nconst store = configureStore({\n reducer: persistReducer(rootPersistConfig, rootReducer),\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n serializableCheck: false,\n immutableCheck: false,\n }),\n devTools: import.meta.env.MODE === 'development',\n});\n\n// Persistor for Redux-Persist\nconst persistor = persistStore(store);\n\n// Typing RootState and AppDispatch\nexport type RootState = ReturnType;\nexport type AppDispatch = typeof store.dispatch;\n\n// Typed versions of useSelector and useDispatch hooks\nexport const useAppDispatch: () => AppDispatch = () => useDispatch();\nexport const useAppSelector: TypedUseSelectorHook = useSelector;\n\nexport { persistor, store };\n\n","import assets from '@assets/assets';\nimport { Typography } from '@shared/atoms/typography/TypographyAtom';\nimport React, { useState } from 'react';\nimport './UploadImage.scss';\nimport { Button } from '@shared/atoms/button/ButtonAtom';\nimport { useToast } from '@shared/atoms/toast/ToastContext';\n\nconst UploadImagePoll = ({ onUpload, onClose }: { onUpload: (file: File) => void; onClose: () => void }) => {\n const [selectedImage, setSelectedImage] = useState(null);\n const { toastSuccess } = useToast();\n\n const handleFileChange = (event: React.ChangeEvent) => {\n const file = event.target.files?.[0];\n if (file) {\n setSelectedImage(file);\n toastSuccess('Image selected successfully');\n\n }\n };\n\n const handleUpload = () => {\n if (selectedImage) {\n onUpload(selectedImage);\n onClose();\n toastSuccess('Image uploaded successfully');\n }\n };\n\n return (\n
\n \n \n
\n \n\n {/* {selectedImage && (\n
\n \"Preview\"\n
\n )} */}\n\n
\n
\n
\n
\n );\n};\n\nexport default UploadImagePoll;\n","import React, { useEffect, useRef } from 'react';\nimport './PopupAtom.scss';\nimport assets from '@assets/assets';\n\ninterface PopupProps {\n\tonClose: () => void;\n\tchildren: React.ReactNode;\n\twidth?: number;\n\theight?: number;\n\tclickOut?: boolean;\n\thideCloseButton?: boolean; // New prop to hide the close button\n\tclassName?: string;\n}\n\nconst PopupComponent: React.FC = ({ children, onClose, width, height, clickOut = false, hideCloseButton = false }) => {\n\tconst popupRef = useRef(null);\n\n\tuseEffect(() => {\n\t\tif ( !clickOut) {\n\t\t\tconst handleOutsideClick = (event: MouseEvent) => {\n\t\t\t\tif (popupRef.current && !popupRef.current.contains(event.target as Node)) {\n\t\t\t\t\tonClose();\n\t\t\t\t}\n\t\t\t};\n\t\t\tdocument.addEventListener('mousedown', handleOutsideClick);\n\t\t\treturn () => {\n\t\t\t\tdocument.removeEventListener('mousedown', handleOutsideClick);\n\t\t\t};\n\t\t}\n\t}, [onClose, clickOut]);\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t{!hideCloseButton && Cancel}\n\t\t\t\t{children}\n\t\t\t
\n\t\t
\n\t);\n};\n\nexport default PopupComponent;\n","import assets from \"@assets/assets\";\nimport add from \"@assets/survey/addIcon.svg\";\nimport { SurveyData } from \"@features/survey/pages/PreviewSurvey\";\nimport {\n setSingleSurveyQuestionData,\n setSurveyData\n} from \"@features/survey/slice/getSidebarType\";\nimport { useAppDispatch, useAppSelector } from \"@store/store\";\nimport React, { useEffect, useRef, useState } from \"react\";\nimport UploadImagePoll from \"../imagepoll/partial/UploadImagePoll\";\nimport PopupComponent from \"../popup/PopupAtom\";\nimport \"./Checkbox.scss\";\n\nexport interface SurveyOption {\n id: number | null;\n optionText: string;\n optionOrder: number;\n isOther: number;\n isComment: number;\n optionImage?: string;\n}\n\ninterface CheckboxProps {\n questionId: number;\n options: SurveyOption[];\n handleEditOptions: (updatedOptions: SurveyOption[]) => void;\n poll: boolean | true;\n}\n\nexport const Checkbox: React.FC = ({\n questionId,\n options,\n handleEditOptions,\n poll = true\n}) => {\n const dispatch = useAppDispatch();\n const { surveyData } = useAppSelector((state) => state.question);\n\n const [optionList, setOptionList] = useState(options || []);\n const [selectedCheckboxes, setSelectedCheckboxes] = useState([]);\n const [isEditing, setIsEditing] = useState(null);\n const checkboxListRef = useRef(null);\n const [uploadPopup, setUploadPopup] = useState(false);\n const [optionIdCounter, setOptionIdCounter] = useState(\n (options?.length || 0) + 1\n );\n\n const handlePopup = () => {\n setUploadPopup((prev) => !prev);\n };\n\n useEffect(() => {\n const question = surveyData.find((q: SurveyData) => q.questionOrder === questionId);\n if (question) {\n setOptionList(question.surveyOptions);\n }\n }, [surveyData, questionId]);\n\n const handleCheckboxChange = (optionId: number) => {\n setSelectedCheckboxes((prev) =>\n prev.includes(optionId) ? prev.filter((id) => id !== optionId) : [...prev, optionId]\n );\n };\n\n const handleInputChange = (e: React.ChangeEvent, optionOrder: number) => {\n const updatedOptions = optionList.map((opt) =>\n opt.optionOrder === optionOrder ? { ...opt, optionText: e.target.value } : opt\n );\n setOptionList(updatedOptions);\n };\n\n const handleSaveOption = () => {\n setIsEditing(null);\n const filteredOptions = optionList.filter((opt) => opt.optionText.toString().trim() !== \"\");\n handleEditOptions(filteredOptions);\n updateSurveyData(filteredOptions);\n };\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === \"Enter\") {\n handleSaveOption();\n addOption();\n }\n };\n\n const addOption = () => {\n const maxOrderId = Math.max(0, ...optionList.map((opt) => Number(opt.optionOrder)));\n const newOption: SurveyOption = {\n id: null,\n optionText: \"\",\n optionOrder: maxOrderId + 1,\n isOther: 0,\n isComment: 0,\n };\n\n const sortedOptions = [...optionList, newOption].sort((a, b) => {\n if (a.isOther === 1 && b.isOther === 0) return 1;\n if (a.isOther === 0 && b.isOther === 1) return -1;\n return 0;\n });\n\n setOptionList(sortedOptions);\n setOptionIdCounter((prevId) => prevId + 1);\n updateSurveyData(sortedOptions);\n\n setTimeout(() => {\n setIsEditing(newOption.optionOrder);\n requestAnimationFrame(() => {\n const inputElement = checkboxListRef.current?.querySelector(\".checkboxEditInputField\") as HTMLInputElement;\n inputElement?.focus();\n });\n checkboxListRef.current?.scrollTo({ top: checkboxListRef.current.scrollHeight, behavior: \"smooth\" });\n }, 50);\n };\n\n const deleteOption = (optionOrder: number) => {\n const updatedOptions = optionList.filter((option) => option.optionOrder !== optionOrder);\n setOptionList(updatedOptions);\n updateSurveyData(updatedOptions);\n };\n\n const updateSurveyData = (updatedOptions: SurveyOption[]) => {\n const updatedSurveyData = surveyData.map((question: SurveyData) =>\n question.questionOrder === questionId ? { ...question, surveyOptions: updatedOptions } : question\n );\n\n dispatch(setSurveyData(updatedSurveyData));\n dispatch(setSingleSurveyQuestionData(updatedSurveyData));\n };\n\n const handleUploadImage = async (file: File, optionId: number) => {\n try {\n const formData = new FormData();\n formData.append(\"image\", file);\n\n const token = localStorage.getItem(\"access\")?.replace(/\"/g, \"\");\n\n if (!token) {\n console.error(\"No authentication token found.\");\n return;\n }\n\n const response = await fetch(`${import.meta.env.VITE_APP_API_URL}survey/upload-image`, {\n method: \"POST\",\n body: formData,\n headers: {\n Authorization: `Bearer ${token}`,\n },\n });\n const data = await response.json();\n function getBaseUrl(apiUrl: string) {\n try {\n const url = new URL(apiUrl);\n return `${url.protocol}//${url.host}`;\n } catch (error) {\n console.error(\"Invalid URL:\", error);\n return \"\";\n }\n }\n if (response.ok) {\n const fullUrl = import.meta.env.VITE_APP_API_URL;\n const baseUrl = getBaseUrl(fullUrl);\n const cleanedPath = removeSurveyImagesPrefix(data.imageUrl);\n const imageUrl = `${baseUrl}/static/${cleanedPath}`;\n\n setOptionList((prevOptions) =>\n prevOptions.map((option) =>\n option.id === optionId - 1 ? { ...option, optionImage: imageUrl } : option\n )\n );\n } else {\n console.error(\"Image upload failed:\", data.message);\n }\n } catch (error) {\n console.error(\"Error uploading image:\", error);\n }\n };\n const removeSurveyImagesPrefix = (filePath: string): string => {\n return filePath.replace(/^\\/sptsurveyimages\\//, \"\");\n };\n\n return (\n
\n {uploadPopup && (\n \n handleUploadImage(file, optionIdCounter)} onClose={handlePopup} />\n \n )}\n
\n {optionList.map((option) => (\n
\n setIsEditing(option.optionOrder)}\n >\n handleCheckboxChange(option.optionOrder)}\n className=\"custom-checkbox\"\n />\n \n
\n {!poll && (\n deleteOption(option.optionOrder)}\n className=\"deleteOptionBtn\"\n alt=\"Delete option\"\n />\n )}\n
\n
\n
\n ))}\n
\n
addOption()}>\n Add\n \"Add\n
\n
\n );\n};","import clsx from 'clsx';\nimport React, { useRef, useState } from 'react';\nimport { Typography } from '../typography/TypographyAtom';\nimport './Input.scss';\n\n\nimport assets from '@assets/assets';\nimport { fontSizes, fontWeights, textColors } from '../index';\n\ntype Variants = 'default' | 'help' | 'error' | 'disable' | 'withImage';\n\ninterface InputProps {\n\tshowLabel?: boolean;\n\tid?: string;\n\tlabel?: string;\n\tclassName?: string;\n\tvariant?: Variants;\n\tisReverse?: boolean;\n\ttooltipMessage?: string;\n\tplaceholder?: string;\n\tgrid?: string;\n\twidth?: string;\n\theight?: string;\n\tonChange?: (event: React.ChangeEvent) => void;\n\tvalue?: string;\n\ttype?: string;\n\tdisable?: boolean;\n\tfontSize?: string;\n\ttypoColor?: keyof typeof textColors;\n\ttypoWeight?: keyof typeof fontWeights;\n\ttypoSize?: keyof typeof fontSizes;\n\tname?: string;\n\tsignup?: boolean;\n\timageUrlInput?: string;\n\tdatepicker?: boolean;\n\tpattern?: string | number;\n\tstartDate?: Date | string;\n\tendDate?: Date | string;\n\treadOnly?: boolean;\n\tdateType?: string;\n\tsetStartDate?: React.Dispatch>;\n\tsetEndDate?: React.Dispatch>;\n\tsetIsStartDateOpen?: React.Dispatch>;\n\tsetIsEndDateOpen?: React.Dispatch>;\n\tsetQuestionId?:React.Dispatch>;\n\tonPaste?: (event: React.ClipboardEvent) => void; // Add onPaste prop\n}\n\nexport const InputAtom: React.FC = ({\n\tlabel,\n\tclassName,\n\tplaceholder,\n\twidth = '',\n\theight = '',\n\tonChange,\n\tvalue,\n\ttype,\n\tdisable = false,\n\ttypoColor = 'black',\n\ttypoSize = 'fontSize12',\n\ttypoWeight = 'medium',\n\tname = '',\n\tsignup = false,\n\tdatepicker = false,\n\timageUrlInput,\n\tdateType = '',\n\tstartDate = '',\n\tendDate = '',\n\tsetStartDate,\n\tsetEndDate,\n\tsetIsStartDateOpen,\n\tsetIsEndDateOpen,\n\tisReverse= false,\n\tonPaste,\n\tshowLabel\n}) => {\n\tconst [isPasswordVisible, setIsPasswordVisible] = useState(false);\n\tconst dateInputRef = useRef(null);\n\n\tconst togglePasswordVisibility = () => {\n\t\tsetIsPasswordVisible(!isPasswordVisible);\n\t};\n\n\tconst handleClick = () => {\n\t\tif (datepicker && dateInputRef.current) {\n\t\t\tdateInputRef.current.showPicker();\n\t\t}\n\t};\n\n\tconst borderSCSS: string = '';\n\tconst determineInputType = () => {\n\t\tif (type === 'password') {\n\t\t\treturn isPasswordVisible ? 'text' : 'password';\n\t\t}\n\t\treturn type;\n\t};\n\tconst handleClearDate = (e: React.MouseEvent, dateType: 'start' | 'end') => {\n\t\te.stopPropagation();\n\t\tif (dateType === 'start') {\n\t\t\tif (typeof setStartDate === 'function') {\n\t\t\t\tsetStartDate(''); // Safely call setStartDate\n\t\t\t}\n\t\t\tif (typeof setIsStartDateOpen === 'function') {\n\t\t\t\tsetIsStartDateOpen(false); // Type-safe call\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof setEndDate === 'function') {\n\t\t\t\t(setEndDate as (date: string) => void)(''); // Safely call setEndDate // Safely call setEndDate\n\t\t\t}\n\t\t\tif (typeof setIsEndDateOpen === 'function') {\n\t\t\t\tsetIsEndDateOpen(false); // Type-safe call\n\t\t\t}\n\t\t}\n\t};\n\tconst handleInvalid = (event: React.ChangeEvent) => {\n\t\tevent.preventDefault(); // Prevent the default error message\n\t\tevent.target.setCustomValidity(''); // Clear any custom validity message\n\t};\n\n\treturn (\n\t\t
\n\t\t\t<>\n\t\t\t{(showLabel === false) ? '' :
\n\t\t\t\t\n\t\t\t\t
}\n\t\t\t\t{datepicker ? (\n\t\t\t\t\t\n\t\t\t\t) : (\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\t{imageUrlInput ? (\n\t\t\t\t\t
\n\t\t\t\t\t\t{/* Input Image */}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{(dateType === 'start' || dateType === 'end') && (startDate || endDate) ? (\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif (dateType as 'start' | 'end') {\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\thandleClearDate(e, dateType);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tstyle={{ paddingTop: '6px' }}\n\t\t\t\t\t\t\t\t\t// src={dCross}\n\t\t\t\t\t\t\t\t\talt='close'\n\t\t\t\t\t\t\t\t\tclassName='search-image'\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\tInput Image\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t) : (\n\t\t\t\t\ttype === 'password' && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\tToggle Password Visibility\n\t\t\t\t\t\t
\n\t\t\t\t\t)\n\t\t\t\t)}\n\t\t\t\n\t\t
\n\t);\n};\n","import { SurveyOption } from \"@features/survey/pages/PreviewSurvey\";\nimport React, { useEffect, useState } from \"react\";\nimport \"./Checkbox.scss\";\nimport { InputAtom } from \"../input/Input\";\n\ninterface CheckboxProps {\n questionId: string | number;\n options: SurveyOption[];\n className?: string;\n error?: boolean;\n onSelect?: (data: {\n questionId: string | number;\n selected: SurveyOption[];\n }) => void;\n answerType: number;\n clearState: boolean;\n isComment: number | undefined;\n fullName?: string | '';\n poll?:boolean | false;\n deviceClass?: string;\n}\n\nexport const PrevCheckbox: React.FC = ({\n questionId,\n onSelect,\n options,\n clearState,\n isComment,\n poll,\n deviceClass\n // fullName\n}) => {\n const [selectedCheckboxes, setSelectedCheckboxes] = useState([]);\n const [otherOptionText, setOtherOptionText] = useState(\"\");\n\n \n const handleCheckboxChange = (optionId: number | null) => {\n \n if (optionId === null) return;\n const updatedSelection = selectedCheckboxes.includes(optionId)\n ? selectedCheckboxes.filter((id) => id !== optionId)\n : [...selectedCheckboxes, optionId];\n setSelectedCheckboxes(updatedSelection);\n if (onSelect) {\n const selectedOptions = options.filter((option) =>\n updatedSelection.includes(+(option.id ?? 0))\n );\n onSelect({\n questionId,\n selected: selectedOptions.map((option) => ({\n id: option.id,\n optionText: option.optionText,\n optionOrder: option.optionOrder,\n questionId,\n optionImage: option.optionImage\n }))\n });\n }\n };\n console.log(options,'options');\n useEffect(() => {\n const handler = setTimeout(() => {\n const selectedOtherOption = options.find(option => option.optionText === \"Other\" && selectedCheckboxes.includes(option.id ?? -1));\n if (selectedOtherOption && onSelect) {\n const updatedOtherOption = {\n ...selectedOtherOption,\n optionText: otherOptionText || selectedOtherOption.optionText,\n };\n onSelect({\n questionId,\n selected: [{\n id: updatedOtherOption.id,\n optionOrder: updatedOtherOption.optionOrder,\n optionText: updatedOtherOption.optionText,\n }],\n });\n }\n }, 300);\n\n return () => {\n clearTimeout(handler);\n };\n }, [otherOptionText]);\n const handleOtherInputChange = (e: React.ChangeEvent) => {\n setOtherOptionText(e.target.value);\n };\n useEffect(() => {\n setSelectedCheckboxes([]);\n setOtherOptionText(\"\");\n }, [clearState]);\n return (\n
\n {options\n .filter(option => poll || String(option?.optionText).trim() !== \"\")\n .map((option) => (\n <>\n
\n handleCheckboxChange(option.id)}\n className=\"h-5 w-5 text-blue-600\"\n />\n \n
\n { selectedCheckboxes.includes(option.id ?? -1) && option.isOther === 1 && isComment === 1 && (\n
\n \n
\n )}\n \n ))}\n
\n );\n};\n","import React from \"react\";\nimport \"./Checkbox.scss\";\ninterface CheckboxProps {\n label?: string;\n isChecked?: boolean;\n onChange?: (e: React.ChangeEvent) => void;\n}\n\nexport const SingleCheckBox: React.FC = ({ label, isChecked, onChange }) => {\n return (\n
\n
\n \n \n
\n
\n );\n};\n","export default \"data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.5886%200.91107C11.2632%200.585633%2010.7355%200.585633%2010.4101%200.91107L5.99935%205.32181L1.5886%200.91107C1.26317%200.585633%200.73553%200.585633%200.410094%200.91107C0.0846563%201.23651%200.0846563%201.76414%200.410094%202.08958L5.70472%207.38421C5.86744%207.54693%206.13126%207.54693%206.29398%207.38421L11.5886%202.08958C11.914%201.76414%2011.914%201.23651%2011.5886%200.91107Z'%20fill='%23858D9D'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.5886%207.08932C11.2632%207.41476%2010.7355%207.41476%2010.4101%207.08932L5.99935%202.67857L1.5886%207.08932C1.26317%207.41476%200.73553%207.41476%200.410094%207.08932C0.0846563%206.76388%200.0846563%206.23624%200.410094%205.91081L5.70472%200.61618C5.86744%200.453461%206.13126%200.453461%206.29398%200.616179L11.5886%205.91081C11.914%206.23624%2011.914%206.76388%2011.5886%207.08932Z'%20fill='%23858D9D'/%3e%3c/svg%3e\"","import React, { useEffect, useRef, useState } from \"react\";\nimport downArrow from \"../../../assets/dropdown/downArrow.svg\";\nimport tick from \"../../../assets/dropdown/tick.svg\";\nimport upArrow from \"../../../assets/dropdown/upArrow.svg\";\nimport { Typography } from \"../../atoms/typography/TypographyAtom\";\nimport \"./Dropdown.scss\";\n\ninterface DropdownProps {\n label?: string;\n options: { id: number; optionText: string }[];\n className?: string;\n error?: boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n onSelect?: (data: any) => void;\n answerType?: number;\n}\n\nexport const Dropdown: React.FC = ({\n label,\n onSelect,\n options,\n answerType\n}) => {\n const [isOpen, setIsOpen] = useState(false);\n const [selectedOption, setSelectedOption] = useState<\n { id: number; optionText: string } | undefined\n >(undefined);\n const dropdownRef = useRef(null);\n\n const toggleDropdown = () => {\n setIsOpen((prev) => !prev);\n };\n useEffect(() => {\n const matchedOption = options.find((item) => item.id === answerType)\n setSelectedOption(matchedOption);\n }, [answerType, options]);\n const handleSelect = (option: { id: number; optionText: string }) => {\n setSelectedOption(option);\n setIsOpen(false);\n if (onSelect) {\n onSelect(option);\n }\n };\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsOpen(false);\n }\n };\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, []);\n\n return (\n
\n {label && (\n
\n \n
\n )}\n\n
\n \n \n {selectedOption ? selectedOption.optionText : \"Select. . .\"}\n \n \n \n\n {isOpen && (\n
\n {options.length > 0 ? (\n options.map((option) => (\n handleSelect(option)}\n >\n \n {option.optionText}\n
\n {selectedOption?.id === option.id && (\n
\n \n
\n )}\n
\n ))\n ) : (\n
No options available
\n )}\n
\n )}\n
\n \n );\n};\n","import React, { useEffect, useLayoutEffect, useRef, useState } from \"react\";\nimport { SurveyOption } from \"@features/survey/pages/PreviewSurvey\";\nimport downArrow from \"../../../assets/dropdown/downArrow.svg\";\nimport tick from \"../../../assets/dropdown/tick.svg\";\nimport upArrow from \"../../../assets/dropdown/upArrow.svg\";\nimport { Typography } from \"../../atoms/typography/TypographyAtom\";\nimport \"./Dropdown.scss\";\nimport { InputAtom } from \"../input/Input\";\n\ninterface DropdownProps {\n questionId: string | number;\n label?: string;\n options: SurveyOption[];\n className?: string;\n error?: boolean;\n onSelect?: (data: {\n questionId: string | number;\n selected: SurveyOption[];\n }) => void;\n answerType: number; // 3 for single-select, 4 for multi-select\n clearState: boolean;\n isComment?: number | undefined;\n}\n\nexport const SurveyDropdown: React.FC = ({\n questionId,\n label,\n onSelect,\n options,\n answerType,\n clearState,\n isComment,\n}) => {\n const [isOpen, setIsOpen] = useState(false);\n const [selectedOptions, setSelectedOptions] = useState([]);\n const [otherOptionText, setOtherOptionText] = useState(\"\");\n const dropdownRef = useRef(null);\n const dropdownButtonRef = useRef(null);\n const [optionMaxHeight, setOptionMaxHeight] = useState(undefined);\n const [openDropdown, setOpenDropdown] = useState<'up' | 'down'>('down');\n\n const toggleDropdown = () => {\n setIsOpen((prev) => !prev);\n };\n\n const handleSelect = (option: SurveyOption) => {\n const optionWithQuestionId = { ...option, questionId };\n if (answerType === 1) {\n // Single Select\n const updatedOption = [optionWithQuestionId];\n setSelectedOptions(updatedOption);\n setIsOpen(false);\n if (onSelect) {\n onSelect({ questionId, selected: updatedOption });\n }\n } else if (answerType === 3) {\n // Multi-select\n setSelectedOptions((prevSelected) => {\n const isAlreadySelected = prevSelected.some(\n (opt) => opt.id === option.id\n );\n const updatedOptions = isAlreadySelected\n ? prevSelected.filter((opt) => opt.id !== option.id)\n : [...prevSelected, optionWithQuestionId];\n\n if (onSelect) {\n onSelect({ questionId, selected: updatedOptions });\n }\n return updatedOptions;\n });\n }\n };\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsOpen(false);\n }\n };\n document.addEventListener(\"mousedown\", handleClickOutside);\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, []);\n\n const isSelected = (option: SurveyOption) =>\n selectedOptions.some((selected) => selected.id === option.id);\n\n useEffect(() => {\n setSelectedOptions([]);\n }, [clearState]);\n\n useLayoutEffect(() => {\n const calculateDropdownPosition = () => {\n if (dropdownButtonRef.current && dropdownRef.current) {\n const dropdownButton = dropdownButtonRef.current;\n const windowHeight = window.innerHeight;\n const dropdownButtonRect = dropdownButton.getBoundingClientRect();\n const heightAbove = dropdownButtonRect.top;\n const heightBelow = windowHeight - dropdownButtonRect.bottom;\n if (heightAbove > heightBelow) {\n setOpenDropdown('up');\n const optionHeight = heightAbove - 100;\n setOptionMaxHeight(optionHeight);\n } else {\n setOpenDropdown('down');\n const optionHeight = heightBelow - 100;\n setOptionMaxHeight(optionHeight);\n }\n }\n };\n calculateDropdownPosition();\n window.addEventListener(\"resize\", calculateDropdownPosition);\n\n return () => {\n window.removeEventListener(\"resize\", calculateDropdownPosition);\n };\n }, [isOpen]);\n\n const handleOtherInputChange = (e: React.ChangeEvent) => {\n setOtherOptionText(e.target.value);\n };\n useEffect(() => {\n const handler = setTimeout(() => {\n if (selectedOptions !== null) {\n const selectedOption = options.find(option => selectedOptions.some(selected => selected.id === option.id));\n if (selectedOption && selectedOption.optionText === \"Other\") {\n const data = {\n questionId,\n selected: [{\n id: selectedOption.id,\n optionOrder: selectedOption.optionOrder,\n optionText: otherOptionText || selectedOption.optionText,\n }]\n };\n if (onSelect) {\n onSelect(data);\n }\n }\n }\n }, 300);\n\n return () => {\n clearTimeout(handler);\n };\n }, [otherOptionText]);\n\n const dropdownOptionStyle: React.CSSProperties = {\n maxHeight: optionMaxHeight,\n overflowY: 'auto',\n position: 'absolute',\n zIndex: 1000,\n };\n\n return (\n
\n {label && (\n
\n \n
\n )}\n\n
\n \n 0 ? \"selectedOption\" : \"placeholder\"\n }\n >\n {selectedOptions.length > 0\n ? selectedOptions.map((option) => option.optionText).join(\", \")\n : \"Select. . .\"}\n \n \n \n\n {isOpen && (\n \n {options.length > 0 ? (\n options.map((option) => (\n handleSelect(option)}\n >\n \n {option.optionText}\n
\n {isSelected(option) && (\n
\n \n
\n )}\n
\n ))\n ) : (\n
No options available
\n )}\n \n )}\n {selectedOptions.some(selected => options.some(item => selected.id === item.id && item.optionText === 'Other')) && isComment === 1 && (\n
\n \n
\n )}\n \n \n );\n};","import React from \"react\";\nimport \"./MenuAtom.scss\";\n\ninterface IMenuData {\n label: string;\n img: string;\n}\n\ninterface IMenuProps {\n menuData: IMenuData[];\n onClick: (label: string) => void;\n}\n\nexport const MenuAtom: React.FC = ({ menuData, onClick }) => {\n return (\n
\n {menuData.map((item) => (\n
onClick(item.label)}>\n {item.label}\n {item.label}\n
\n ))}\n
\n );\n};\n","import React from \"react\";\nimport { Button } from \"../button/ButtonAtom\";\nimport \"./Pagination.scss\";\n\ninterface PaginationProps {\n totalPages: number;\n activePage: number;\n handlePageChange: (page: number) => void;\n}\n\nexport const Pagination: React.FC = ({\n totalPages,\n activePage,\n handlePageChange\n}) => {\n const getVisiblePages = (): (number | string)[] => {\n const pages: (number | string)[] = [];\n pages.push(1);\n\n if (totalPages <= 5) {\n for (let i = 2; i <= totalPages; i++) {\n pages.push(i);\n }\n } else {\n if (activePage <= 3) {\n for (let i = 2; i <= 3; i++) {\n pages.push(i);\n }\n pages.push(\"next\");\n } else if (activePage >= totalPages - 2) {\n pages.push(\"prev\");\n for (let i = totalPages - 2; i < totalPages; i++) {\n pages.push(i);\n }\n } else {\n pages.push(\"prev\");\n pages.push(activePage - 1);\n pages.push(activePage);\n pages.push(activePage + 1);\n pages.push(\"next\");\n }\n pages.push(totalPages);\n }\n\n return pages;\n };\n\n const visiblePages = getVisiblePages();\n\n const handleEllipsisClick = (type: \"prev\" | \"next\") => {\n const newPage =\n type === \"prev\"\n ? Math?.max(1, activePage - 1)\n : Math.min(totalPages, activePage + 1);\n handlePageChange(newPage);\n };\n\n return (\n
\n {totalPages > 1 && (\n <>\n {activePage > 1 && (\n handlePageChange(Math?.max(1, activePage - 1))}\n disabled={activePage === 1}\n >\n )}\n {visiblePages.map((page, index) =>\n page === \"prev\" ? (\n handleEllipsisClick(\"prev\")}\n label=\"...\"\n >\n ) : page === \"next\" ? (\n handleEllipsisClick(\"next\")}\n >\n ) : (\n handlePageChange(page as number)}\n label={`${page}`}\n >\n )\n )}\n {activePage < totalPages && (\n \n handlePageChange(Math.min(totalPages, activePage + 1))\n }\n disabled={activePage === totalPages}\n label=\"+\"\n >\n )}\n \n )}\n
\n );\n};\n","/**\n * @remix-run/router v1.23.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n////////////////////////////////////////////////////////////////////////////////\n//#region Types and Constants\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Actions represent the type of change to a location value.\n */\nvar Action;\n(function (Action) {\n /**\n * A POP indicates a change to an arbitrary index in the history stack, such\n * as a back or forward navigation. It does not describe the direction of the\n * navigation, only that the current index changed.\n *\n * Note: This is the default action for newly created history objects.\n */\n Action[\"Pop\"] = \"POP\";\n /**\n * A PUSH indicates a new entry being added to the history stack, such as when\n * a link is clicked and a new page loads. When this happens, all subsequent\n * entries in the stack are lost.\n */\n Action[\"Push\"] = \"PUSH\";\n /**\n * A REPLACE indicates the entry at the current index in the history stack\n * being replaced by a new one.\n */\n Action[\"Replace\"] = \"REPLACE\";\n})(Action || (Action = {}));\nconst PopStateEventType = \"popstate\";\n/**\n * Memory history stores the current location in memory. It is designed for use\n * in stateful non-browser environments like tests and React Native.\n */\nfunction createMemoryHistory(options) {\n if (options === void 0) {\n options = {};\n }\n let {\n initialEntries = [\"/\"],\n initialIndex,\n v5Compat = false\n } = options;\n let entries; // Declare so we can access from createMemoryLocation\n entries = initialEntries.map((entry, index) => createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n let action = Action.Pop;\n let listener = null;\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n function getCurrentLocation() {\n return entries[index];\n }\n function createMemoryLocation(to, state, key) {\n if (state === void 0) {\n state = null;\n }\n let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n return location;\n }\n function createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n let history = {\n get index() {\n return index;\n },\n get action() {\n return action;\n },\n get location() {\n return getCurrentLocation();\n },\n createHref,\n createURL(to) {\n return new URL(createHref(to), \"http://localhost\");\n },\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 1\n });\n }\n },\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 0\n });\n }\n },\n go(delta) {\n action = Action.Pop;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n if (listener) {\n listener({\n action,\n location: nextLocation,\n delta\n });\n }\n },\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n };\n return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n function createBrowserLocation(window, globalHistory) {\n let {\n pathname,\n search,\n hash\n } = window.location;\n return createLocation(\"\", {\n pathname,\n search,\n hash\n },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n function createBrowserHref(window, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n function createHashLocation(window, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window.location.hash.substr(1));\n // Hash URL should always have a leading / just like window.location.pathname\n // does, so if an app ends up at a route like /#something then we add a\n // leading slash so all of our path-matching behaves the same as if it would\n // in a browser router. This is particularly important when there exists a\n // root splat route () since that matches internally against\n // \"/*\" and we'd expect /#something to 404 in a hash router app.\n if (!pathname.startsWith(\"/\") && !pathname.startsWith(\".\")) {\n pathname = \"/\" + pathname;\n }\n return createLocation(\"\", {\n pathname,\n search,\n hash\n },\n // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n function createHashHref(window, to) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n function validateHashLocation(location, to) {\n warning(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n }\n return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience, so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message);\n // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\nfunction getHistoryState(location, index) {\n return {\n usr: location.state,\n key: location.key,\n idx: index\n };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\nfunction createLocation(current, to, state, key) {\n if (state === void 0) {\n state = null;\n }\n let location = _extends({\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\"\n }, typeof to === \"string\" ? parsePath(to) : to, {\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n });\n return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\nfunction createPath(_ref) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = _ref;\n if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\nfunction parsePath(path) {\n let parsedPath = {};\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n let searchIndex = path.indexOf(\"?\");\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n if (path) {\n parsedPath.pathname = path;\n }\n }\n return parsedPath;\n}\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n if (options === void 0) {\n options = {};\n }\n let {\n window = document.defaultView,\n v5Compat = false\n } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener = null;\n let index = getIndex();\n // Index should only be null when we initialize. If not, it's because the\n // user called history.pushState or history.replaceState directly, in which\n // case we should log a warning as it will result in bugs.\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), \"\");\n }\n function getIndex() {\n let state = globalHistory.state || {\n idx: null\n };\n return state.idx;\n }\n function handlePop() {\n action = Action.Pop;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n if (listener) {\n listener({\n action,\n location: history.location,\n delta\n });\n }\n }\n function push(to, state) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n // try...catch because iOS limits us to 100 pushState calls :/\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // If the exception is because `state` can't be serialized, let that throw\n // outwards just like a replace call would so the dev knows the cause\n // https://html.spec.whatwg.org/multipage/nav-history-apis.html#shared-history-push/replace-state-steps\n // https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal\n if (error instanceof DOMException && error.name === \"DataCloneError\") {\n throw error;\n }\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 1\n });\n }\n }\n function replace(to, state) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 0\n });\n }\n }\n function createURL(to) {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n let href = typeof to === \"string\" ? to : createPath(to);\n // Treating this as a full URL will strip any trailing spaces so we need to\n // pre-encode them since they might be part of a matching splat param from\n // an ancestor route\n href = href.replace(/ $/, \"%20\");\n invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n return new URL(href, base);\n }\n let history = {\n get action() {\n return action;\n },\n get location() {\n return getLocation(window, globalHistory);\n },\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n createHref(to) {\n return createHref(window, to);\n },\n createURL,\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n push,\n replace,\n go(n) {\n return globalHistory.go(n);\n }\n };\n return history;\n}\n//#endregion\n\nvar ResultType;\n(function (ResultType) {\n ResultType[\"data\"] = \"data\";\n ResultType[\"deferred\"] = \"deferred\";\n ResultType[\"redirect\"] = \"redirect\";\n ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\nconst immutableRouteKeys = new Set([\"lazy\", \"caseSensitive\", \"path\", \"id\", \"index\", \"children\"]);\nfunction isIndexRoute(route) {\n return route.index === true;\n}\n// Walk the route tree generating unique IDs where necessary, so we are working\n// solely with AgnosticDataRouteObject's within the Router\nfunction convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath, manifest) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n if (manifest === void 0) {\n manifest = {};\n }\n return routes.map((route, index) => {\n let treePath = [...parentPath, String(index)];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n invariant(!manifest[id], \"Found a route id collision on id \\\"\" + id + \"\\\". Route \" + \"id's must be globally unique within Data Router usages\");\n if (isIndexRoute(route)) {\n let indexRoute = _extends({}, route, mapRouteProperties(route), {\n id\n });\n manifest[id] = indexRoute;\n return indexRoute;\n } else {\n let pathOrLayoutRoute = _extends({}, route, mapRouteProperties(route), {\n id,\n children: undefined\n });\n manifest[id] = pathOrLayoutRoute;\n if (route.children) {\n pathOrLayoutRoute.children = convertRoutesToDataRoutes(route.children, mapRouteProperties, treePath, manifest);\n }\n return pathOrLayoutRoute;\n }\n });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/v6/utils/match-routes\n */\nfunction matchRoutes(routes, locationArg, basename) {\n if (basename === void 0) {\n basename = \"/\";\n }\n return matchRoutesImpl(routes, locationArg, basename, false);\n}\nfunction matchRoutesImpl(routes, locationArg, basename, allowPartial) {\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n if (pathname == null) {\n return null;\n }\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n for (let i = 0; matches == null && i < branches.length; ++i) {\n // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n let decoded = decodePath(pathname);\n matches = matchRouteBranch(branches[i], decoded, allowPartial);\n }\n return matches;\n}\nfunction convertRouteMatchToUiMatch(match, loaderData) {\n let {\n route,\n pathname,\n params\n } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n handle: route.handle\n };\n}\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n if (branches === void 0) {\n branches = [];\n }\n if (parentsMeta === void 0) {\n parentsMeta = [];\n }\n if (parentPath === void 0) {\n parentPath = \"\";\n }\n let flattenRoute = (route, index, relativePath) => {\n let meta = {\n relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta);\n // Add the children before adding this route to the array, so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n if (route.children && route.children.length > 0) {\n invariant(\n // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n flattenRoutes(route.children, branches, routesMeta, path);\n }\n // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n if (route.path == null && !route.index) {\n return;\n }\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n routes.forEach((route, index) => {\n var _route$path;\n // coarse-grain check for optional params\n if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments;\n // Optional path segments are denoted by a trailing `?`\n let isOptional = first.endsWith(\"?\");\n // Compute the corresponding required segment: `foo?` -> `foo`\n let required = first.replace(/\\?$/, \"\");\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = [];\n // All child paths with the prefix. Do this for all children before the\n // optional version for all children, so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explode _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\")));\n // Then, if this is an optional value, add all child versions without\n if (isOptional) {\n result.push(...restExploded);\n }\n // for absolute paths, ensure `/` instead of empty segment\n return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\nfunction rankRouteBranches(branches) {\n branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\nconst paramRe = /^:[\\w-]+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\nconst isSplat = s => s === \"*\";\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n if (index) {\n initialScore += indexRouteValue;\n }\n return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ?\n // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1] :\n // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\nfunction matchRouteBranch(branch, pathname, allowPartial) {\n if (allowPartial === void 0) {\n allowPartial = false;\n }\n let {\n routesMeta\n } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end\n }, remainingPathname);\n let route = meta.route;\n if (!match && end && allowPartial && !routesMeta[routesMeta.length - 1].route.index) {\n match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end: false\n }, remainingPathname);\n }\n if (!match) {\n return null;\n }\n Object.assign(matchedParams, match.params);\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n route\n });\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/v6/utils/generate-path\n */\nfunction generatePath(originalPath, params) {\n if (params === void 0) {\n params = {};\n }\n let path = originalPath;\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n path = path.replace(/\\*$/, \"/*\");\n }\n // ensure `/` is added at the beginning if the path is absolute\n const prefix = path.startsWith(\"/\") ? \"/\" : \"\";\n const stringify = p => p == null ? \"\" : typeof p === \"string\" ? p : String(p);\n const segments = path.split(/\\/+/).map((segment, index, array) => {\n const isLastSegment = index === array.length - 1;\n // only apply the splat if it's the last segment\n if (isLastSegment && segment === \"*\") {\n const star = \"*\";\n // Apply the splat\n return stringify(params[star]);\n }\n const keyMatch = segment.match(/^:([\\w-]+)(\\??)$/);\n if (keyMatch) {\n const [, key, optional] = keyMatch;\n let param = params[key];\n invariant(optional === \"?\" || param != null, \"Missing \\\":\" + key + \"\\\" param\");\n return stringify(param);\n }\n // Remove any optional markers from optional static segments\n return segment.replace(/\\?$/g, \"\");\n })\n // Remove empty segments\n .filter(segment => !!segment);\n return prefix + segments.join(\"/\");\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/v6/utils/match-path\n */\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = {\n path: pattern,\n caseSensitive: false,\n end: true\n };\n }\n let [matcher, compiledParams] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = compiledParams.reduce((memo, _ref, index) => {\n let {\n paramName,\n isOptional\n } = _ref;\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n const value = captureGroups[index];\n if (isOptional && !value) {\n memo[paramName] = undefined;\n } else {\n memo[paramName] = (value || \"\").replace(/%2F/g, \"/\");\n }\n return memo;\n }, {});\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\nfunction compilePath(path, caseSensitive, end) {\n if (caseSensitive === void 0) {\n caseSensitive = false;\n }\n if (end === void 0) {\n end = true;\n }\n warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n let params = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^${}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:([\\w-]+)(\\?)?/g, (_, paramName, isOptional) => {\n params.push({\n paramName,\n isOptional: isOptional != null\n });\n return isOptional ? \"/?([^\\\\/]+)?\" : \"/([^\\\\/]+)\";\n });\n if (path.endsWith(\"*\")) {\n params.push({\n paramName: \"*\"\n });\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex, so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else ;\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n return [matcher, params];\n}\nfunction decodePath(value) {\n try {\n return value.split(\"/\").map(v => decodeURIComponent(v).replace(/\\//g, \"%2F\")).join(\"/\");\n } catch (error) {\n warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n return value;\n }\n}\n/**\n * @private\n */\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n }\n // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n return pathname.slice(startIndex) || \"/\";\n}\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/v6/utils/resolve-path\n */\nfunction resolvePath(to, fromPathname) {\n if (fromPathname === void 0) {\n fromPathname = \"/\";\n }\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach(segment => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\nfunction getInvalidPathError(char, field, dest, path) {\n return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"]. Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * \n * \n * \n *\n * \n * \n * }> // <-- Does not contribute\n * // <-- Does not contribute\n * \n * \n */\nfunction getPathContributingMatches(matches) {\n return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n// Return the array of pathnames for the current route matches - used to\n// generate the routePathnames input for resolveTo()\nfunction getResolveToMatches(matches, v7_relativeSplatPath) {\n let pathMatches = getPathContributingMatches(matches);\n // When v7_relativeSplatPath is enabled, use the full pathname for the leaf\n // match so we include splat values for \".\" links. See:\n // https://github.com/remix-run/react-router/issues/11052#issuecomment-1836589329\n if (v7_relativeSplatPath) {\n return pathMatches.map((match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase);\n }\n return pathMatches.map(match => match.pathnameBase);\n}\n/**\n * @private\n */\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n if (isPathRelative === void 0) {\n isPathRelative = false;\n }\n let to;\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = _extends({}, toArg);\n invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n }\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from;\n // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n if (toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n // With relative=\"route\" (the default), each leading .. segment means\n // \"go up one route\" instead of \"go up one URL segment\". This is a key\n // difference from how works and a major reason we call this a\n // \"to\" value instead of a \"href\".\n if (!isPathRelative && toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\");\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n to.pathname = toSegments.join(\"/\");\n }\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n let path = resolvePath(to, from);\n // Ensure the pathname has a trailing slash if the original \"to\" had one\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\");\n // Or if this was a link to the current path which has a trailing slash\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n return path;\n}\n/**\n * @private\n */\nfunction getToPathname(to) {\n // Empty strings should be treated the same as / paths\n return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\n/**\n * @private\n */\nconst joinPaths = paths => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n *\n * @deprecated The `json` method is deprecated in favor of returning raw objects.\n * This method will be removed in v7.\n */\nconst json = function json(data, init) {\n if (init === void 0) {\n init = {};\n }\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n let headers = new Headers(responseInit.headers);\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n return new Response(JSON.stringify(data), _extends({}, responseInit, {\n headers\n }));\n};\nclass DataWithResponseInit {\n constructor(data, init) {\n this.type = \"DataWithResponseInit\";\n this.data = data;\n this.init = init || null;\n }\n}\n/**\n * Create \"responses\" that contain `status`/`headers` without forcing\n * serialization into an actual `Response` - used by Remix single fetch\n */\nfunction data(data, init) {\n return new DataWithResponseInit(data, typeof init === \"number\" ? {\n status: init\n } : init);\n}\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n constructor(data, responseInit) {\n this.pendingKeysSet = new Set();\n this.subscribers = new Set();\n this.deferredKeys = [];\n invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\");\n // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n let reject;\n this.abortPromise = new Promise((_, r) => reject = r);\n this.controller = new AbortController();\n let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n this.controller.signal.addEventListener(\"abort\", onAbort);\n this.data = Object.entries(data).reduce((acc, _ref2) => {\n let [key, value] = _ref2;\n return Object.assign(acc, {\n [key]: this.trackPromise(key, value)\n });\n }, {});\n if (this.done) {\n // All incoming values were resolved\n this.unlistenAbortSignal();\n }\n this.init = responseInit;\n }\n trackPromise(key, value) {\n if (!(value instanceof Promise)) {\n return value;\n }\n this.deferredKeys.push(key);\n this.pendingKeysSet.add(key);\n // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, undefined, data), error => this.onSettle(promise, key, error));\n // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n promise.catch(() => {});\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n return promise;\n }\n onSettle(promise, key, error, data) {\n if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n return Promise.reject(error);\n }\n this.pendingKeysSet.delete(key);\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n // If the promise was resolved/rejected with undefined, we'll throw an error as you\n // should always resolve with a value or null\n if (error === undefined && data === undefined) {\n let undefinedError = new Error(\"Deferred data for key \\\"\" + key + \"\\\" resolved/rejected with `undefined`, \" + \"you must resolve/reject with a value or `null`.\");\n Object.defineProperty(promise, \"_error\", {\n get: () => undefinedError\n });\n this.emit(false, key);\n return Promise.reject(undefinedError);\n }\n if (data === undefined) {\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n this.emit(false, key);\n return Promise.reject(error);\n }\n Object.defineProperty(promise, \"_data\", {\n get: () => data\n });\n this.emit(false, key);\n return data;\n }\n emit(aborted, settledKey) {\n this.subscribers.forEach(subscriber => subscriber(aborted, settledKey));\n }\n subscribe(fn) {\n this.subscribers.add(fn);\n return () => this.subscribers.delete(fn);\n }\n cancel() {\n this.controller.abort();\n this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n this.emit(true);\n }\n async resolveData(signal) {\n let aborted = false;\n if (!this.done) {\n let onAbort = () => this.cancel();\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise(resolve => {\n this.subscribe(aborted => {\n signal.removeEventListener(\"abort\", onAbort);\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n return aborted;\n }\n get done() {\n return this.pendingKeysSet.size === 0;\n }\n get unwrappedData() {\n invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n return Object.entries(this.data).reduce((acc, _ref3) => {\n let [key, value] = _ref3;\n return Object.assign(acc, {\n [key]: unwrapTrackedPromise(value)\n });\n }, {});\n }\n get pendingKeys() {\n return Array.from(this.pendingKeysSet);\n }\n}\nfunction isTrackedPromise(value) {\n return value instanceof Promise && value._tracked === true;\n}\nfunction unwrapTrackedPromise(value) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n if (value._error) {\n throw value._error;\n }\n return value._data;\n}\n/**\n * @deprecated The `defer` method is deprecated in favor of returning raw\n * objects. This method will be removed in v7.\n */\nconst defer = function defer(data, init) {\n if (init === void 0) {\n init = {};\n }\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n return new DeferredData(data, responseInit);\n};\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirect = function redirect(url, init) {\n if (init === void 0) {\n init = 302;\n }\n let responseInit = init;\n if (typeof responseInit === \"number\") {\n responseInit = {\n status: responseInit\n };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, _extends({}, responseInit, {\n headers\n }));\n};\n/**\n * A redirect response that will force a document reload to the new location.\n * Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst redirectDocument = (url, init) => {\n let response = redirect(url, init);\n response.headers.set(\"X-Remix-Reload-Document\", \"true\");\n return response;\n};\n/**\n * A redirect response that will perform a `history.replaceState` instead of a\n * `history.pushState` for client-side navigation redirects.\n * Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\nconst replace = (url, init) => {\n let response = redirect(url, init);\n response.headers.set(\"X-Remix-Replace\", \"true\");\n return response;\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n *\n * We don't export the class for public use since it's an implementation\n * detail, but we export the interface above so folks can build their own\n * abstractions around instances via isRouteErrorResponse()\n */\nclass ErrorResponseImpl {\n constructor(status, statusText, data, internal) {\n if (internal === void 0) {\n internal = false;\n }\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\nfunction isRouteErrorResponse(error) {\n return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n};\nconst IDLE_FETCHER = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n};\nconst IDLE_BLOCKER = {\n state: \"unblocked\",\n proceed: undefined,\n reset: undefined,\n location: undefined\n};\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst defaultMapRouteProperties = route => ({\n hasErrorBoundary: Boolean(route.hasErrorBoundary)\n});\nconst TRANSITIONS_STORAGE_KEY = \"remix-router-transitions\";\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Create a router and listen to history POP navigations\n */\nfunction createRouter(init) {\n const routerWindow = init.window ? init.window : typeof window !== \"undefined\" ? window : undefined;\n const isBrowser = typeof routerWindow !== \"undefined\" && typeof routerWindow.document !== \"undefined\" && typeof routerWindow.document.createElement !== \"undefined\";\n const isServer = !isBrowser;\n invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n let mapRouteProperties;\n if (init.mapRouteProperties) {\n mapRouteProperties = init.mapRouteProperties;\n } else if (init.detectErrorBoundary) {\n // If they are still using the deprecated version, wrap it with the new API\n let detectErrorBoundary = init.detectErrorBoundary;\n mapRouteProperties = route => ({\n hasErrorBoundary: detectErrorBoundary(route)\n });\n } else {\n mapRouteProperties = defaultMapRouteProperties;\n }\n // Routes keyed by ID\n let manifest = {};\n // Routes in tree format for matching\n let dataRoutes = convertRoutesToDataRoutes(init.routes, mapRouteProperties, undefined, manifest);\n let inFlightDataRoutes;\n let basename = init.basename || \"/\";\n let dataStrategyImpl = init.dataStrategy || defaultDataStrategy;\n let patchRoutesOnNavigationImpl = init.patchRoutesOnNavigation;\n // Config driven behavior flags\n let future = _extends({\n v7_fetcherPersist: false,\n v7_normalizeFormMethod: false,\n v7_partialHydration: false,\n v7_prependBasename: false,\n v7_relativeSplatPath: false,\n v7_skipActionErrorRevalidation: false\n }, init.future);\n // Cleanup function for history\n let unlistenHistory = null;\n // Externally-provided functions to call on all state changes\n let subscribers = new Set();\n // Externally-provided object to hold scroll restoration locations during routing\n let savedScrollPositions = null;\n // Externally-provided function to get scroll restoration keys\n let getScrollRestorationKey = null;\n // Externally-provided function to get current scroll position\n let getScrollPosition = null;\n // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, basename);\n let initialMatchesIsFOW = false;\n let initialErrors = null;\n if (initialMatches == null && !patchRoutesOnNavigationImpl) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let {\n matches,\n route\n } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = {\n [route.id]: error\n };\n }\n // In SPA apps, if the user provided a patchRoutesOnNavigation implementation and\n // our initial match is a splat route, clear them out so we run through lazy\n // discovery on hydration in case there's a more accurate lazy route match.\n // In SSR apps (with `hydrationData`), we expect that the server will send\n // up the proper matched routes so we don't want to run lazy discovery on\n // initial hydration and want to hydrate into the splat route.\n if (initialMatches && !init.hydrationData) {\n let fogOfWar = checkFogOfWar(initialMatches, dataRoutes, init.history.location.pathname);\n if (fogOfWar.active) {\n initialMatches = null;\n }\n }\n let initialized;\n if (!initialMatches) {\n initialized = false;\n initialMatches = [];\n // If partial hydration and fog of war is enabled, we will be running\n // `patchRoutesOnNavigation` during hydration so include any partial matches as\n // the initial matches so we can properly render `HydrateFallback`'s\n if (future.v7_partialHydration) {\n let fogOfWar = checkFogOfWar(null, dataRoutes, init.history.location.pathname);\n if (fogOfWar.active && fogOfWar.matches) {\n initialMatchesIsFOW = true;\n initialMatches = fogOfWar.matches;\n }\n }\n } else if (initialMatches.some(m => m.route.lazy)) {\n // All initialMatches need to be loaded before we're ready. If we have lazy\n // functions around still then we'll need to run them in initialize()\n initialized = false;\n } else if (!initialMatches.some(m => m.route.loader)) {\n // If we've got no loaders to run, then we're good to go\n initialized = true;\n } else if (future.v7_partialHydration) {\n // If partial hydration is enabled, we're initialized so long as we were\n // provided with hydrationData for every route with a loader, and no loaders\n // were marked for explicit hydration\n let loaderData = init.hydrationData ? init.hydrationData.loaderData : null;\n let errors = init.hydrationData ? init.hydrationData.errors : null;\n // If errors exist, don't consider routes below the boundary\n if (errors) {\n let idx = initialMatches.findIndex(m => errors[m.route.id] !== undefined);\n initialized = initialMatches.slice(0, idx + 1).every(m => !shouldLoadRouteOnHydration(m.route, loaderData, errors));\n } else {\n initialized = initialMatches.every(m => !shouldLoadRouteOnHydration(m.route, loaderData, errors));\n }\n } else {\n // Without partial hydration - we're initialized if we were provided any\n // hydrationData - which is expected to be complete\n initialized = init.hydrationData != null;\n }\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: new Map(),\n blockers: new Map()\n };\n // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n let pendingAction = Action.Pop;\n // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n let pendingPreventScrollReset = false;\n // AbortController for the active navigation\n let pendingNavigationController;\n // Should the current navigation enable document.startViewTransition?\n let pendingViewTransitionEnabled = false;\n // Store applied view transitions so we can apply them on POP\n let appliedViewTransitions = new Map();\n // Cleanup function for persisting applied transitions to sessionStorage\n let removePageHideEventListener = null;\n // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n let isUninterruptedRevalidation = false;\n // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidator()\n // - X-Remix-Revalidate (from redirect)\n let isRevalidationRequired = false;\n // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n let cancelledDeferredRoutes = [];\n // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n let cancelledFetcherLoads = new Set();\n // AbortControllers for any in-flight fetchers\n let fetchControllers = new Map();\n // Track loads based on the order in which they started\n let incrementingLoadId = 0;\n // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n let pendingNavigationLoadId = -1;\n // Fetchers that triggered data reloads as a result of their actions\n let fetchReloadIds = new Map();\n // Fetchers that triggered redirect navigations\n let fetchRedirectIds = new Set();\n // Most recent href/match for fetcher.load calls for fetchers\n let fetchLoadMatches = new Map();\n // Ref-count mounted fetchers so we know when it's ok to clean them up\n let activeFetchers = new Map();\n // Fetchers that have requested a delete when using v7_fetcherPersist,\n // they'll be officially removed after they return to idle\n let deletedFetchers = new Set();\n // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n let activeDeferreds = new Map();\n // Store blocker functions in a separate Map outside of router state since\n // we don't need to update UI state if they change\n let blockerFunctions = new Map();\n // Flag to ignore the next history update, so we can revert the URL change on\n // a POP navigation that was blocked by the user without touching router state\n let unblockBlockerHistoryUpdate = undefined;\n // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(_ref => {\n let {\n action: historyAction,\n location,\n delta\n } = _ref;\n // Ignore this event if it was just us resetting the URL from a\n // blocked POP navigation\n if (unblockBlockerHistoryUpdate) {\n unblockBlockerHistoryUpdate();\n unblockBlockerHistoryUpdate = undefined;\n return;\n }\n warning(blockerFunctions.size === 0 || delta != null, \"You are trying to use a blocker on a POP navigation to a location \" + \"that was not created by @remix-run/router. This will fail silently in \" + \"production. This can happen if you are navigating outside the router \" + \"via `window.history.pushState`/`window.location.hash` instead of using \" + \"router navigation APIs. This can also happen if you are using \" + \"createHashRouter and the user manually changes the URL.\");\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction\n });\n if (blockerKey && delta != null) {\n // Restore the URL to match the current UI, but don't update router state\n let nextHistoryUpdatePromise = new Promise(resolve => {\n unblockBlockerHistoryUpdate = resolve;\n });\n init.history.go(delta * -1);\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location\n });\n // Re-do the same POP navigation we just blocked, after the url\n // restoration is also complete. See:\n // https://github.com/remix-run/react-router/issues/11613\n nextHistoryUpdatePromise.then(() => init.history.go(delta));\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({\n blockers\n });\n }\n });\n return;\n }\n return startNavigation(historyAction, location);\n });\n if (isBrowser) {\n // FIXME: This feels gross. How can we cleanup the lines between\n // scrollRestoration/appliedTransitions persistance?\n restoreAppliedTransitions(routerWindow, appliedViewTransitions);\n let _saveAppliedTransitions = () => persistAppliedTransitions(routerWindow, appliedViewTransitions);\n routerWindow.addEventListener(\"pagehide\", _saveAppliedTransitions);\n removePageHideEventListener = () => routerWindow.removeEventListener(\"pagehide\", _saveAppliedTransitions);\n }\n // Kick off initial data load if needed. Use Pop to avoid modifying history\n // Note we don't do any handling of lazy here. For SPA's it'll get handled\n // in the normal navigation flow. For SSR it's expected that lazy modules are\n // resolved prior to router creation since we can't go into a fallbackElement\n // UI for SSR'd apps\n if (!state.initialized) {\n startNavigation(Action.Pop, state.location, {\n initialHydration: true\n });\n }\n return router;\n }\n // Clean up a router and it's side effects\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n if (removePageHideEventListener) {\n removePageHideEventListener();\n }\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n }\n // Subscribe to state updates for the router\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n }\n // Update our state and notify the calling context of the change\n function updateState(newState, opts) {\n if (opts === void 0) {\n opts = {};\n }\n state = _extends({}, state, newState);\n // Prep fetcher cleanup so we can tell the UI which fetcher data entries\n // can be removed\n let completedFetchers = [];\n let deletedFetchersKeys = [];\n if (future.v7_fetcherPersist) {\n state.fetchers.forEach((fetcher, key) => {\n if (fetcher.state === \"idle\") {\n if (deletedFetchers.has(key)) {\n // Unmounted from the UI and can be totally removed\n deletedFetchersKeys.push(key);\n } else {\n // Returned to idle but still mounted in the UI, so semi-remains for\n // revalidations and such\n completedFetchers.push(key);\n }\n }\n });\n }\n // Remove any lingering deleted fetchers that have already been removed\n // from state.fetchers\n deletedFetchers.forEach(key => {\n if (!state.fetchers.has(key) && !fetchControllers.has(key)) {\n deletedFetchersKeys.push(key);\n }\n });\n // Iterate over a local copy so that if flushSync is used and we end up\n // removing and adding a new subscriber due to the useCallback dependencies,\n // we don't get ourselves into a loop calling the new subscriber immediately\n [...subscribers].forEach(subscriber => subscriber(state, {\n deletedFetchers: deletedFetchersKeys,\n viewTransitionOpts: opts.viewTransitionOpts,\n flushSync: opts.flushSync === true\n }));\n // Remove idle fetchers from state since we only care about in-flight fetchers.\n if (future.v7_fetcherPersist) {\n completedFetchers.forEach(key => state.fetchers.delete(key));\n deletedFetchersKeys.forEach(key => deleteFetcher(key));\n } else {\n // We already called deleteFetcher() on these, can remove them from this\n // Set now that we've handed the keys off to the data layer\n deletedFetchersKeys.forEach(key => deletedFetchers.delete(key));\n }\n }\n // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n function completeNavigation(location, newState, _temp) {\n var _location$state, _location$state2;\n let {\n flushSync\n } = _temp === void 0 ? {} : _temp;\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n let actionData;\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n }\n // Always preserve any existing loaderData from re-used routes\n let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData;\n // On a successful navigation we can assume we got through all blockers\n // so we can start fresh\n let blockers = state.blockers;\n if (blockers.size > 0) {\n blockers = new Map(blockers);\n blockers.forEach((_, k) => blockers.set(k, IDLE_BLOCKER));\n }\n // Always respect the user flag. Otherwise don't reset on mutation\n // submission navigations unless they redirect\n let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true;\n // Commit any in-flight routes at the end of the HMR revalidation \"navigation\"\n if (inFlightDataRoutes) {\n dataRoutes = inFlightDataRoutes;\n inFlightDataRoutes = undefined;\n }\n if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === Action.Replace) {\n init.history.replace(location, location.state);\n }\n let viewTransitionOpts;\n // On POP, enable transitions if they were enabled on the original navigation\n if (pendingAction === Action.Pop) {\n // Forward takes precedence so they behave like the original navigation\n let priorPaths = appliedViewTransitions.get(state.location.pathname);\n if (priorPaths && priorPaths.has(location.pathname)) {\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n } else if (appliedViewTransitions.has(location.pathname)) {\n // If we don't have a previous forward nav, assume we're popping back to\n // the new location and enable if that location previously enabled\n viewTransitionOpts = {\n currentLocation: location,\n nextLocation: state.location\n };\n }\n } else if (pendingViewTransitionEnabled) {\n // Store the applied transition on PUSH/REPLACE\n let toPaths = appliedViewTransitions.get(state.location.pathname);\n if (toPaths) {\n toPaths.add(location.pathname);\n } else {\n toPaths = new Set([location.pathname]);\n appliedViewTransitions.set(state.location.pathname, toPaths);\n }\n viewTransitionOpts = {\n currentLocation: state.location,\n nextLocation: location\n };\n }\n updateState(_extends({}, newState, {\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches),\n preventScrollReset,\n blockers\n }), {\n viewTransitionOpts,\n flushSync: flushSync === true\n });\n // Reset stateful navigation vars\n pendingAction = Action.Pop;\n pendingPreventScrollReset = false;\n pendingViewTransitionEnabled = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n }\n // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, to, future.v7_relativeSplatPath, opts == null ? void 0 : opts.fromRouteId, opts == null ? void 0 : opts.relative);\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(future.v7_normalizeFormMethod, false, normalizedPath, opts);\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state);\n // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation));\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n let historyAction = Action.Push;\n if (userReplace === true) {\n historyAction = Action.Replace;\n } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = Action.Replace;\n }\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n let flushSync = (opts && opts.flushSync) === true;\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n });\n if (blockerKey) {\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location: nextLocation\n });\n // Send the same navigation through\n navigate(to, opts);\n },\n reset() {\n let blockers = new Map(state.blockers);\n blockers.set(blockerKey, IDLE_BLOCKER);\n updateState({\n blockers\n });\n }\n });\n return;\n }\n return await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace,\n enableViewTransition: opts && opts.viewTransition,\n flushSync\n });\n }\n // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n function revalidate() {\n interruptActiveLoads();\n updateState({\n revalidation: \"loading\"\n });\n // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n if (state.navigation.state === \"submitting\") {\n return;\n }\n // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return;\n }\n // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n overrideNavigation: state.navigation,\n // Proxy through any rending view transition\n enableViewTransition: pendingViewTransitionEnabled === true\n });\n }\n // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n async function startNavigation(historyAction, location, opts) {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true;\n // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n pendingViewTransitionEnabled = (opts && opts.enableViewTransition) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = opts != null && opts.initialHydration && state.matches && state.matches.length > 0 && !initialMatchesIsFOW ?\n // `matchRoutes()` has already been called if we're in here via `router.initialize()`\n state.matches : matchRoutes(routesToUse, location, basename);\n let flushSync = (opts && opts.flushSync) === true;\n // Short circuit if it's only a hash change and not a revalidation or\n // mutation submission.\n //\n // Ignore on initial page loads because since the initial hydration will always\n // be \"same hash\". For example, on /page#hash and submit a
\n // which will default to a navigation to /page\n if (matches && state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n completeNavigation(location, {\n matches\n }, {\n flushSync\n });\n return;\n }\n let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname);\n if (fogOfWar.active && fogOfWar.matches) {\n matches = fogOfWar.matches;\n }\n // Short circuit with a 404 on the root error boundary if we match nothing\n if (!matches) {\n let {\n error,\n notFoundMatches,\n route\n } = handleNavigational404(location.pathname);\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n }, {\n flushSync\n });\n return;\n }\n // Create a controller/Request for this navigation\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission);\n let pendingActionResult;\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingActionResult = [findNearestBoundary(matches).route.id, {\n type: ResultType.error,\n error: opts.pendingError\n }];\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n // Call action if we received an action submission\n let actionResult = await handleAction(request, location, opts.submission, matches, fogOfWar.active, {\n replace: opts.replace,\n flushSync\n });\n if (actionResult.shortCircuited) {\n return;\n }\n // If we received a 404 from handleAction, it's because we couldn't lazily\n // discover the destination route so we don't want to call loaders\n if (actionResult.pendingActionResult) {\n let [routeId, result] = actionResult.pendingActionResult;\n if (isErrorResult(result) && isRouteErrorResponse(result.error) && result.error.status === 404) {\n pendingNavigationController = null;\n completeNavigation(location, {\n matches: actionResult.matches,\n loaderData: {},\n errors: {\n [routeId]: result.error\n }\n });\n return;\n }\n }\n matches = actionResult.matches || matches;\n pendingActionResult = actionResult.pendingActionResult;\n loadingNavigation = getLoadingNavigation(location, opts.submission);\n flushSync = false;\n // No need to do fog of war matching again on loader execution\n fogOfWar.active = false;\n // Create a GET request for the loaders\n request = createClientSideRequest(init.history, request.url, request.signal);\n }\n // Call loaders\n let {\n shortCircuited,\n matches: updatedMatches,\n loaderData,\n errors\n } = await handleLoaders(request, location, matches, fogOfWar.active, loadingNavigation, opts && opts.submission, opts && opts.fetcherSubmission, opts && opts.replace, opts && opts.initialHydration === true, flushSync, pendingActionResult);\n if (shortCircuited) {\n return;\n }\n // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n pendingNavigationController = null;\n completeNavigation(location, _extends({\n matches: updatedMatches || matches\n }, getActionDataForCommit(pendingActionResult), {\n loaderData,\n errors\n }));\n }\n // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n async function handleAction(request, location, submission, matches, isFogOfWar, opts) {\n if (opts === void 0) {\n opts = {};\n }\n interruptActiveLoads();\n // Put us in a submitting state\n let navigation = getSubmittingNavigation(location, submission);\n updateState({\n navigation\n }, {\n flushSync: opts.flushSync === true\n });\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(matches, location.pathname, request.signal);\n if (discoverResult.type === \"aborted\") {\n return {\n shortCircuited: true\n };\n } else if (discoverResult.type === \"error\") {\n let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id;\n return {\n matches: discoverResult.partialMatches,\n pendingActionResult: [boundaryId, {\n type: ResultType.error,\n error: discoverResult.error\n }]\n };\n } else if (!discoverResult.matches) {\n let {\n notFoundMatches,\n error,\n route\n } = handleNavigational404(location.pathname);\n return {\n matches: notFoundMatches,\n pendingActionResult: [route.id, {\n type: ResultType.error,\n error\n }]\n };\n } else {\n matches = discoverResult.matches;\n }\n }\n // Call our action and get the result\n let result;\n let actionMatch = getTargetMatch(matches, location);\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n let results = await callDataStrategy(\"action\", state, request, [actionMatch], matches, null);\n result = results[actionMatch.route.id];\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n }\n if (isRedirectResult(result)) {\n let replace;\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n let location = normalizeRedirectLocation(result.response.headers.get(\"Location\"), new URL(request.url), basename);\n replace = location === state.location.pathname + state.location.search;\n }\n await startRedirectNavigation(request, result, true, {\n submission,\n replace\n });\n return {\n shortCircuited: true\n };\n }\n if (isDeferredResult(result)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n // By default, all submissions to the current location are REPLACE\n // navigations, but if the action threw an error that'll be rendered in\n // an errorElement, we fall back to PUSH so that the user can use the\n // back button to get back to the pre-submission form location to try\n // again\n if ((opts && opts.replace) !== true) {\n pendingAction = Action.Push;\n }\n return {\n matches,\n pendingActionResult: [boundaryMatch.route.id, result]\n };\n }\n return {\n matches,\n pendingActionResult: [actionMatch.route.id, result]\n };\n }\n // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n async function handleLoaders(request, location, matches, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace, initialHydration, flushSync, pendingActionResult) {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation || getLoadingNavigation(location, submission);\n // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation);\n // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n // If we have partialHydration enabled, then don't update the state for the\n // initial data load since it's not a \"navigation\"\n let shouldUpdateNavigationState = !isUninterruptedRevalidation && (!future.v7_partialHydration || !initialHydration);\n // When fog of war is enabled, we enter our `loading` state earlier so we\n // can discover new routes during the `loading` state. We skip this if\n // we've already run actions since we would have done our matching already.\n // If the children() function threw then, we want to proceed with the\n // partial matches it discovered.\n if (isFogOfWar) {\n if (shouldUpdateNavigationState) {\n let actionData = getUpdatedActionData(pendingActionResult);\n updateState(_extends({\n navigation: loadingNavigation\n }, actionData !== undefined ? {\n actionData\n } : {}), {\n flushSync\n });\n }\n let discoverResult = await discoverRoutes(matches, location.pathname, request.signal);\n if (discoverResult.type === \"aborted\") {\n return {\n shortCircuited: true\n };\n } else if (discoverResult.type === \"error\") {\n let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id;\n return {\n matches: discoverResult.partialMatches,\n loaderData: {},\n errors: {\n [boundaryId]: discoverResult.error\n }\n };\n } else if (!discoverResult.matches) {\n let {\n error,\n notFoundMatches,\n route\n } = handleNavigational404(location.pathname);\n return {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n };\n } else {\n matches = discoverResult.matches;\n }\n }\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, future.v7_partialHydration && initialHydration === true, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult);\n // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId));\n pendingNavigationLoadId = ++incrementingLoadId;\n // Short circuit if we have no loaders to run\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n let updatedFetchers = markFetchRedirectsDone();\n completeNavigation(location, _extends({\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? {\n [pendingActionResult[0]]: pendingActionResult[1].error\n } : null\n }, getActionDataForCommit(pendingActionResult), updatedFetchers ? {\n fetchers: new Map(state.fetchers)\n } : {}), {\n flushSync\n });\n return {\n shortCircuited: true\n };\n }\n if (shouldUpdateNavigationState) {\n let updates = {};\n if (!isFogOfWar) {\n // Only update navigation/actionNData if we didn't already do it above\n updates.navigation = loadingNavigation;\n let actionData = getUpdatedActionData(pendingActionResult);\n if (actionData !== undefined) {\n updates.actionData = actionData;\n }\n }\n if (revalidatingFetchers.length > 0) {\n updates.fetchers = getUpdatedRevalidatingFetchers(revalidatingFetchers);\n }\n updateState(updates, {\n flushSync\n });\n }\n revalidatingFetchers.forEach(rf => {\n abortFetcher(rf.key);\n if (rf.controller) {\n // Fetchers use an independent AbortController so that aborting a fetcher\n // (via deleteFetcher) does not abort the triggering navigation that\n // triggered the revalidation\n fetchControllers.set(rf.key, rf.controller);\n }\n });\n // Proxy navigation abort through to revalidation fetchers\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(f => abortFetcher(f.key));\n if (pendingNavigationController) {\n pendingNavigationController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n }\n let {\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state, matches, matchesToLoad, revalidatingFetchers, request);\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n if (pendingNavigationController) {\n pendingNavigationController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n }\n revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key));\n // If any loaders returned a redirect Response, start a new REPLACE navigation\n let redirect = findRedirect(loaderResults);\n if (redirect) {\n await startRedirectNavigation(request, redirect.result, true, {\n replace\n });\n return {\n shortCircuited: true\n };\n }\n redirect = findRedirect(fetcherResults);\n if (redirect) {\n // If this redirect came from a fetcher make sure we mark it in\n // fetchRedirectIds so it doesn't get revalidated on the next set of\n // loader executions\n fetchRedirectIds.add(redirect.key);\n await startRedirectNavigation(request, redirect.result, true, {\n replace\n });\n return {\n shortCircuited: true\n };\n }\n // Process and commit output from loaders\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, loaderResults, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds);\n // Wire up subscribers to update loaderData as promises settle\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe(aborted => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n // Preserve SSR errors during partial hydration\n if (future.v7_partialHydration && initialHydration && state.errors) {\n errors = _extends({}, state.errors, errors);\n }\n let updatedFetchers = markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n let shouldUpdateFetchers = updatedFetchers || didAbortFetchLoads || revalidatingFetchers.length > 0;\n return _extends({\n matches,\n loaderData,\n errors\n }, shouldUpdateFetchers ? {\n fetchers: new Map(state.fetchers)\n } : {});\n }\n function getUpdatedActionData(pendingActionResult) {\n if (pendingActionResult && !isErrorResult(pendingActionResult[1])) {\n // This is cast to `any` currently because `RouteData`uses any and it\n // would be a breaking change to use any.\n // TODO: v7 - change `RouteData` to use `unknown` instead of `any`\n return {\n [pendingActionResult[0]]: pendingActionResult[1].data\n };\n } else if (state.actionData) {\n if (Object.keys(state.actionData).length === 0) {\n return null;\n } else {\n return state.actionData;\n }\n }\n }\n function getUpdatedRevalidatingFetchers(revalidatingFetchers) {\n revalidatingFetchers.forEach(rf => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher = getLoadingFetcher(undefined, fetcher ? fetcher.data : undefined);\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n return new Map(state.fetchers);\n }\n // Trigger a fetcher load/submit for the given fetcher key\n function fetch(key, routeId, href, opts) {\n if (isServer) {\n throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n }\n abortFetcher(key);\n let flushSync = (opts && opts.flushSync) === true;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, href, future.v7_relativeSplatPath, routeId, opts == null ? void 0 : opts.relative);\n let matches = matchRoutes(routesToUse, normalizedPath, basename);\n let fogOfWar = checkFogOfWar(matches, routesToUse, normalizedPath);\n if (fogOfWar.active && fogOfWar.matches) {\n matches = fogOfWar.matches;\n }\n if (!matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: normalizedPath\n }), {\n flushSync\n });\n return;\n }\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(future.v7_normalizeFormMethod, true, normalizedPath, opts);\n if (error) {\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return;\n }\n let match = getTargetMatch(matches, path);\n let preventScrollReset = (opts && opts.preventScrollReset) === true;\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, fogOfWar.active, flushSync, preventScrollReset, submission);\n return;\n }\n // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n fetchLoadMatches.set(key, {\n routeId,\n path\n });\n handleFetcherLoader(key, routeId, path, match, matches, fogOfWar.active, flushSync, preventScrollReset, submission);\n }\n // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n async function handleFetcherAction(key, routeId, path, match, requestMatches, isFogOfWar, flushSync, preventScrollReset, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n function detectAndHandle405Error(m) {\n if (!m.route.action && !m.route.lazy) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId\n });\n setFetcherError(key, routeId, error, {\n flushSync\n });\n return true;\n }\n return false;\n }\n if (!isFogOfWar && detectAndHandle405Error(match)) {\n return;\n }\n // Put this fetcher into it's submitting state\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(key, getSubmittingFetcher(submission, existingFetcher), {\n flushSync\n });\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);\n if (discoverResult.type === \"aborted\") {\n return;\n } else if (discoverResult.type === \"error\") {\n setFetcherError(key, routeId, discoverResult.error, {\n flushSync\n });\n return;\n } else if (!discoverResult.matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: path\n }), {\n flushSync\n });\n return;\n } else {\n requestMatches = discoverResult.matches;\n match = getTargetMatch(requestMatches, path);\n if (detectAndHandle405Error(match)) {\n return;\n }\n }\n }\n // Call the action for the fetcher\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let actionResults = await callDataStrategy(\"action\", state, fetchRequest, [match], requestMatches, key);\n let actionResult = actionResults[match.route.id];\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n return;\n }\n // When using v7_fetcherPersist, we don't want errors bubbling up to the UI\n // or redirects processed for unmounted fetchers so we just revert them to\n // idle\n if (future.v7_fetcherPersist && deletedFetchers.has(key)) {\n if (isRedirectResult(actionResult) || isErrorResult(actionResult)) {\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n }\n // Let SuccessResult's fall through for revalidation\n } else {\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n if (pendingNavigationLoadId > originatingLoadId) {\n // A new navigation was kicked off after our action started, so that\n // should take precedence over this redirect navigation. We already\n // set isRevalidationRequired so all loaders for the new route should\n // fire unless opted out via shouldRevalidate\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n } else {\n fetchRedirectIds.add(key);\n updateFetcherState(key, getLoadingFetcher(submission));\n return startRedirectNavigation(fetchRequest, actionResult, false, {\n fetcherSubmission: submission,\n preventScrollReset\n });\n }\n }\n // Process any non-redirect errors thrown\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n }\n if (isDeferredResult(actionResult)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal);\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(routesToUse, state.navigation.location, basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n let loadFetcher = getLoadingFetcher(submission, actionResult.data);\n state.fetchers.set(key, loadFetcher);\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, false, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, [match.route.id, actionResult]);\n // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => {\n let staleKey = rf.key;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher = getLoadingFetcher(undefined, existingFetcher ? existingFetcher.data : undefined);\n state.fetchers.set(staleKey, revalidatingFetcher);\n abortFetcher(staleKey);\n if (rf.controller) {\n fetchControllers.set(staleKey, rf.controller);\n }\n });\n updateState({\n fetchers: new Map(state.fetchers)\n });\n let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(rf => abortFetcher(rf.key));\n abortController.signal.addEventListener(\"abort\", abortPendingFetchRevalidations);\n let {\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n if (abortController.signal.aborted) {\n return;\n }\n abortController.signal.removeEventListener(\"abort\", abortPendingFetchRevalidations);\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach(r => fetchControllers.delete(r.key));\n let redirect = findRedirect(loaderResults);\n if (redirect) {\n return startRedirectNavigation(revalidationRequest, redirect.result, false, {\n preventScrollReset\n });\n }\n redirect = findRedirect(fetcherResults);\n if (redirect) {\n // If this redirect came from a fetcher make sure we mark it in\n // fetchRedirectIds so it doesn't get revalidated on the next set of\n // loader executions\n fetchRedirectIds.add(redirect.key);\n return startRedirectNavigation(revalidationRequest, redirect.result, false, {\n preventScrollReset\n });\n }\n // Process and commit output from loaders\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n // Since we let revalidations complete even if the submitting fetcher was\n // deleted, only put it back to idle if it hasn't been deleted\n if (state.fetchers.has(key)) {\n let doneFetcher = getDoneFetcher(actionResult.data);\n state.fetchers.set(key, doneFetcher);\n }\n abortStaleFetchLoads(loadId);\n // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState({\n errors,\n loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors),\n fetchers: new Map(state.fetchers)\n });\n isRevalidationRequired = false;\n }\n }\n // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n async function handleFetcherLoader(key, routeId, path, match, matches, isFogOfWar, flushSync, preventScrollReset, submission) {\n let existingFetcher = state.fetchers.get(key);\n updateFetcherState(key, getLoadingFetcher(submission, existingFetcher ? existingFetcher.data : undefined), {\n flushSync\n });\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);\n if (isFogOfWar) {\n let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);\n if (discoverResult.type === \"aborted\") {\n return;\n } else if (discoverResult.type === \"error\") {\n setFetcherError(key, routeId, discoverResult.error, {\n flushSync\n });\n return;\n } else if (!discoverResult.matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: path\n }), {\n flushSync\n });\n return;\n } else {\n matches = discoverResult.matches;\n match = getTargetMatch(matches, path);\n }\n }\n // Call the loader for this fetcher route match\n fetchControllers.set(key, abortController);\n let originatingLoadId = incrementingLoadId;\n let results = await callDataStrategy(\"loader\", state, fetchRequest, [match], matches, key);\n let result = results[match.route.id];\n // Deferred isn't supported for fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n if (isDeferredResult(result)) {\n result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n }\n // We can delete this so long as we weren't aborted by our our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n if (fetchRequest.signal.aborted) {\n return;\n }\n // We don't want errors bubbling up or redirects followed for unmounted\n // fetchers, so short circuit here if it was removed from the UI\n if (deletedFetchers.has(key)) {\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n }\n // If the loader threw a redirect Response, start a new REPLACE navigation\n if (isRedirectResult(result)) {\n if (pendingNavigationLoadId > originatingLoadId) {\n // A new navigation was kicked off after our loader started, so that\n // should take precedence over this redirect navigation\n updateFetcherState(key, getDoneFetcher(undefined));\n return;\n } else {\n fetchRedirectIds.add(key);\n await startRedirectNavigation(fetchRequest, result, false, {\n preventScrollReset\n });\n return;\n }\n }\n // Process any non-redirect errors thrown\n if (isErrorResult(result)) {\n setFetcherError(key, routeId, result.error);\n return;\n }\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\");\n // Put the fetcher back into an idle state\n updateFetcherState(key, getDoneFetcher(result.data));\n }\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n async function startRedirectNavigation(request, redirect, isNavigation, _temp2) {\n let {\n submission,\n fetcherSubmission,\n preventScrollReset,\n replace\n } = _temp2 === void 0 ? {} : _temp2;\n if (redirect.response.headers.has(\"X-Remix-Revalidate\")) {\n isRevalidationRequired = true;\n }\n let location = redirect.response.headers.get(\"Location\");\n invariant(location, \"Expected a Location header on the redirect Response\");\n location = normalizeRedirectLocation(location, new URL(request.url), basename);\n let redirectLocation = createLocation(state.location, location, {\n _isRedirect: true\n });\n if (isBrowser) {\n let isDocumentReload = false;\n if (redirect.response.headers.has(\"X-Remix-Reload-Document\")) {\n // Hard reload if the response contained X-Remix-Reload-Document\n isDocumentReload = true;\n } else if (ABSOLUTE_URL_REGEX.test(location)) {\n const url = init.history.createURL(location);\n isDocumentReload =\n // Hard reload if it's an absolute URL to a new origin\n url.origin !== routerWindow.location.origin ||\n // Hard reload if it's an absolute URL that does not match our basename\n stripBasename(url.pathname, basename) == null;\n }\n if (isDocumentReload) {\n if (replace) {\n routerWindow.location.replace(location);\n } else {\n routerWindow.location.assign(location);\n }\n return;\n }\n }\n // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n pendingNavigationController = null;\n let redirectHistoryAction = replace === true || redirect.response.headers.has(\"X-Remix-Replace\") ? Action.Replace : Action.Push;\n // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n let {\n formMethod,\n formAction,\n formEncType\n } = state.navigation;\n if (!submission && !fetcherSubmission && formMethod && formAction && formEncType) {\n submission = getSubmissionFromNavigation(state.navigation);\n }\n // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n let activeSubmission = submission || fetcherSubmission;\n if (redirectPreserveMethodStatusCodes.has(redirect.response.status) && activeSubmission && isMutationMethod(activeSubmission.formMethod)) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: _extends({}, activeSubmission, {\n formAction: location\n }),\n // Preserve these flags across redirects\n preventScrollReset: preventScrollReset || pendingPreventScrollReset,\n enableViewTransition: isNavigation ? pendingViewTransitionEnabled : undefined\n });\n } else {\n // If we have a navigation submission, we will preserve it through the\n // redirect navigation\n let overrideNavigation = getLoadingNavigation(redirectLocation, submission);\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation,\n // Send fetcher submissions through for shouldRevalidate\n fetcherSubmission,\n // Preserve these flags across redirects\n preventScrollReset: preventScrollReset || pendingPreventScrollReset,\n enableViewTransition: isNavigation ? pendingViewTransitionEnabled : undefined\n });\n }\n }\n // Utility wrapper for calling dataStrategy client-side without having to\n // pass around the manifest, mapRouteProperties, etc.\n async function callDataStrategy(type, state, request, matchesToLoad, matches, fetcherKey) {\n let results;\n let dataResults = {};\n try {\n results = await callDataStrategyImpl(dataStrategyImpl, type, state, request, matchesToLoad, matches, fetcherKey, manifest, mapRouteProperties);\n } catch (e) {\n // If the outer dataStrategy method throws, just return the error for all\n // matches - and it'll naturally bubble to the root\n matchesToLoad.forEach(m => {\n dataResults[m.route.id] = {\n type: ResultType.error,\n error: e\n };\n });\n return dataResults;\n }\n for (let [routeId, result] of Object.entries(results)) {\n if (isRedirectDataStrategyResultResult(result)) {\n let response = result.result;\n dataResults[routeId] = {\n type: ResultType.redirect,\n response: normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename, future.v7_relativeSplatPath)\n };\n } else {\n dataResults[routeId] = await convertDataStrategyResultToDataResult(result);\n }\n }\n return dataResults;\n }\n async function callLoadersAndMaybeResolveData(state, matches, matchesToLoad, fetchersToLoad, request) {\n let currentMatches = state.matches;\n // Kick off loaders and fetchers in parallel\n let loaderResultsPromise = callDataStrategy(\"loader\", state, request, matchesToLoad, matches, null);\n let fetcherResultsPromise = Promise.all(fetchersToLoad.map(async f => {\n if (f.matches && f.match && f.controller) {\n let results = await callDataStrategy(\"loader\", state, createClientSideRequest(init.history, f.path, f.controller.signal), [f.match], f.matches, f.key);\n let result = results[f.match.route.id];\n // Fetcher results are keyed by fetcher key from here on out, not routeId\n return {\n [f.key]: result\n };\n } else {\n return Promise.resolve({\n [f.key]: {\n type: ResultType.error,\n error: getInternalRouterError(404, {\n pathname: f.path\n })\n }\n });\n }\n }));\n let loaderResults = await loaderResultsPromise;\n let fetcherResults = (await fetcherResultsPromise).reduce((acc, r) => Object.assign(acc, r), {});\n await Promise.all([resolveNavigationDeferredResults(matches, loaderResults, request.signal, currentMatches, state.loaderData), resolveFetcherDeferredResults(matches, fetcherResults, fetchersToLoad)]);\n return {\n loaderResults,\n fetcherResults\n };\n }\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true;\n // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n cancelledDeferredRoutes.push(...cancelActiveDeferreds());\n // Abort in-flight fetcher loads\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.add(key);\n }\n abortFetcher(key);\n });\n }\n function updateFetcherState(key, fetcher, opts) {\n if (opts === void 0) {\n opts = {};\n }\n state.fetchers.set(key, fetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }, {\n flushSync: (opts && opts.flushSync) === true\n });\n }\n function setFetcherError(key, routeId, error, opts) {\n if (opts === void 0) {\n opts = {};\n }\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n }, {\n flushSync: (opts && opts.flushSync) === true\n });\n }\n function getFetcher(key) {\n activeFetchers.set(key, (activeFetchers.get(key) || 0) + 1);\n // If this fetcher was previously marked for deletion, unmark it since we\n // have a new instance\n if (deletedFetchers.has(key)) {\n deletedFetchers.delete(key);\n }\n return state.fetchers.get(key) || IDLE_FETCHER;\n }\n function deleteFetcher(key) {\n let fetcher = state.fetchers.get(key);\n // Don't abort the controller if this is a deletion of a fetcher.submit()\n // in it's loading phase since - we don't want to abort the corresponding\n // revalidation and want them to complete and land\n if (fetchControllers.has(key) && !(fetcher && fetcher.state === \"loading\" && fetchReloadIds.has(key))) {\n abortFetcher(key);\n }\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n // If we opted into the flag we can clear this now since we're calling\n // deleteFetcher() at the end of updateState() and we've already handed the\n // deleted fetcher keys off to the data layer.\n // If not, we're eagerly calling deleteFetcher() and we need to keep this\n // Set populated until the next updateState call, and we'll clear\n // `deletedFetchers` then\n if (future.v7_fetcherPersist) {\n deletedFetchers.delete(key);\n }\n cancelledFetcherLoads.delete(key);\n state.fetchers.delete(key);\n }\n function deleteFetcherAndUpdateState(key) {\n let count = (activeFetchers.get(key) || 0) - 1;\n if (count <= 0) {\n activeFetchers.delete(key);\n deletedFetchers.add(key);\n if (!future.v7_fetcherPersist) {\n deleteFetcher(key);\n }\n } else {\n activeFetchers.set(key, count);\n }\n updateState({\n fetchers: new Map(state.fetchers)\n });\n }\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n if (controller) {\n controller.abort();\n fetchControllers.delete(key);\n }\n }\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = getDoneFetcher(fetcher.data);\n state.fetchers.set(key, doneFetcher);\n }\n }\n function markFetchRedirectsDone() {\n let doneKeys = [];\n let updatedFetchers = false;\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n updatedFetchers = true;\n }\n }\n markFetchersDone(doneKeys);\n return updatedFetchers;\n }\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n function getBlocker(key, fn) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n }\n return blocker;\n }\n function deleteBlocker(key) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n }\n // Utility function to update blockers, ensuring valid state transitions\n function updateBlocker(key, newBlocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n // Poor mans state machine :)\n // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n invariant(blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\", \"Invalid blocker state transition: \" + blocker.state + \" -> \" + newBlocker.state);\n let blockers = new Map(state.blockers);\n blockers.set(key, newBlocker);\n updateState({\n blockers\n });\n }\n function shouldBlockNavigation(_ref2) {\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = _ref2;\n if (blockerFunctions.size === 0) {\n return;\n }\n // We ony support a single active blocker at the moment since we don't have\n // any compelling use cases for multi-blocker yet\n if (blockerFunctions.size > 1) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n let entries = Array.from(blockerFunctions.entries());\n let [blockerKey, blockerFunction] = entries[entries.length - 1];\n let blocker = state.blockers.get(blockerKey);\n if (blocker && blocker.state === \"proceeding\") {\n // If the blocker is currently proceeding, we don't need to re-check\n // it and can let this navigation continue\n return;\n }\n // At this point, we know we're unblocked/blocked so we need to check the\n // user-provided blocker function\n if (blockerFunction({\n currentLocation,\n nextLocation,\n historyAction\n })) {\n return blockerKey;\n }\n }\n function handleNavigational404(pathname) {\n let error = getInternalRouterError(404, {\n pathname\n });\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let {\n matches,\n route\n } = getShortCircuitMatches(routesToUse);\n // Cancel all pending deferred on 404s since we don't keep any routes\n cancelActiveDeferreds();\n return {\n notFoundMatches: matches,\n route,\n error\n };\n }\n function cancelActiveDeferreds(predicate) {\n let cancelledRouteIds = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n }\n // Opt in to capturing and reporting scroll positions during navigations,\n // used by the component\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n getScrollRestorationKey = getKey || null;\n // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered \n // and therefore have no savedScrollPositions available\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n if (y != null) {\n updateState({\n restoreScrollPosition: y\n });\n }\n }\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n function getScrollKey(location, matches) {\n if (getScrollRestorationKey) {\n let key = getScrollRestorationKey(location, matches.map(m => convertRouteMatchToUiMatch(m, state.loaderData)));\n return key || location.key;\n }\n return location.key;\n }\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollPosition) {\n let key = getScrollKey(location, matches);\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions) {\n let key = getScrollKey(location, matches);\n let y = savedScrollPositions[key];\n if (typeof y === \"number\") {\n return y;\n }\n }\n return null;\n }\n function checkFogOfWar(matches, routesToUse, pathname) {\n if (patchRoutesOnNavigationImpl) {\n if (!matches) {\n let fogMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n return {\n active: true,\n matches: fogMatches || []\n };\n } else {\n if (Object.keys(matches[0].params).length > 0) {\n // If we matched a dynamic param or a splat, it might only be because\n // we haven't yet discovered other routes that would match with a\n // higher score. Call patchRoutesOnNavigation just to be sure\n let partialMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n return {\n active: true,\n matches: partialMatches\n };\n }\n }\n }\n return {\n active: false,\n matches: null\n };\n }\n async function discoverRoutes(matches, pathname, signal, fetcherKey) {\n if (!patchRoutesOnNavigationImpl) {\n return {\n type: \"success\",\n matches\n };\n }\n let partialMatches = matches;\n while (true) {\n let isNonHMR = inFlightDataRoutes == null;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n let localManifest = manifest;\n try {\n await patchRoutesOnNavigationImpl({\n signal,\n path: pathname,\n matches: partialMatches,\n fetcherKey,\n patch: (routeId, children) => {\n if (signal.aborted) return;\n patchRoutesImpl(routeId, children, routesToUse, localManifest, mapRouteProperties);\n }\n });\n } catch (e) {\n return {\n type: \"error\",\n error: e,\n partialMatches\n };\n } finally {\n // If we are not in the middle of an HMR revalidation and we changed the\n // routes, provide a new identity so when we `updateState` at the end of\n // this navigation/fetch `router.routes` will be a new identity and\n // trigger a re-run of memoized `router.routes` dependencies.\n // HMR will already update the identity and reflow when it lands\n // `inFlightDataRoutes` in `completeNavigation`\n if (isNonHMR && !signal.aborted) {\n dataRoutes = [...dataRoutes];\n }\n }\n if (signal.aborted) {\n return {\n type: \"aborted\"\n };\n }\n let newMatches = matchRoutes(routesToUse, pathname, basename);\n if (newMatches) {\n return {\n type: \"success\",\n matches: newMatches\n };\n }\n let newPartialMatches = matchRoutesImpl(routesToUse, pathname, basename, true);\n // Avoid loops if the second pass results in the same partial matches\n if (!newPartialMatches || partialMatches.length === newPartialMatches.length && partialMatches.every((m, i) => m.route.id === newPartialMatches[i].route.id)) {\n return {\n type: \"success\",\n matches: null\n };\n }\n partialMatches = newPartialMatches;\n }\n }\n function _internalSetRoutes(newRoutes) {\n manifest = {};\n inFlightDataRoutes = convertRoutesToDataRoutes(newRoutes, mapRouteProperties, undefined, manifest);\n }\n function patchRoutes(routeId, children) {\n let isNonHMR = inFlightDataRoutes == null;\n let routesToUse = inFlightDataRoutes || dataRoutes;\n patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties);\n // If we are not in the middle of an HMR revalidation and we changed the\n // routes, provide a new identity and trigger a reflow via `updateState`\n // to re-run memoized `router.routes` dependencies.\n // HMR will already update the identity and reflow when it lands\n // `inFlightDataRoutes` in `completeNavigation`\n if (isNonHMR) {\n dataRoutes = [...dataRoutes];\n updateState({});\n }\n }\n router = {\n get basename() {\n return basename;\n },\n get future() {\n return future;\n },\n get state() {\n return state;\n },\n get routes() {\n return dataRoutes;\n },\n get window() {\n return routerWindow;\n },\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: to => init.history.createHref(to),\n encodeLocation: to => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher: deleteFetcherAndUpdateState,\n dispose,\n getBlocker,\n deleteBlocker,\n patchRoutes,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds,\n // TODO: Remove setRoutes, it's temporary to avoid dealing with\n // updating the tree while validating the update algorithm.\n _internalSetRoutes\n };\n return router;\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\nconst UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\nfunction createStaticHandler(routes, opts) {\n invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n let manifest = {};\n let basename = (opts ? opts.basename : null) || \"/\";\n let mapRouteProperties;\n if (opts != null && opts.mapRouteProperties) {\n mapRouteProperties = opts.mapRouteProperties;\n } else if (opts != null && opts.detectErrorBoundary) {\n // If they are still using the deprecated version, wrap it with the new API\n let detectErrorBoundary = opts.detectErrorBoundary;\n mapRouteProperties = route => ({\n hasErrorBoundary: detectErrorBoundary(route)\n });\n } else {\n mapRouteProperties = defaultMapRouteProperties;\n }\n // Config driven behavior flags\n let future = _extends({\n v7_relativeSplatPath: false,\n v7_throwAbortReason: false\n }, opts ? opts.future : null);\n let dataRoutes = convertRoutesToDataRoutes(routes, mapRouteProperties, undefined, manifest);\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n *\n * - `opts.requestContext` is an optional server context that will be passed\n * to actions/loaders in the `context` parameter\n * - `opts.skipLoaderErrorBubbling` is an optional parameter that will prevent\n * the bubbling of errors which allows single-fetch-type implementations\n * where the client will handle the bubbling and we may need to return data\n * for the handling route\n */\n async function query(request, _temp3) {\n let {\n requestContext,\n skipLoaderErrorBubbling,\n dataStrategy\n } = _temp3 === void 0 ? {} : _temp3;\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"HEAD\") {\n let error = getInternalRouterError(405, {\n method\n });\n let {\n matches: methodNotAllowedMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n let result = await queryImpl(request, location, matches, requestContext, dataStrategy || null, skipLoaderErrorBubbling === true, null);\n if (isResponse(result)) {\n return result;\n }\n // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n return _extends({\n location,\n basename\n }, result);\n }\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n *\n * - `opts.routeId` allows you to specify the specific route handler to call.\n * If not provided the handler will determine the proper route by matching\n * against `request.url`\n * - `opts.requestContext` is an optional server context that will be passed\n * to actions/loaders in the `context` parameter\n */\n async function queryRoute(request, _temp4) {\n let {\n routeId,\n requestContext,\n dataStrategy\n } = _temp4 === void 0 ? {} : _temp4;\n let url = new URL(request.url);\n let method = request.method;\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename);\n // SSR supports HEAD requests while SPA doesn't\n if (!isValidMethod(method) && method !== \"HEAD\" && method !== \"OPTIONS\") {\n throw getInternalRouterError(405, {\n method\n });\n } else if (!matches) {\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n let result = await queryImpl(request, location, matches, requestContext, dataStrategy || null, false, match);\n if (isResponse(result)) {\n return result;\n }\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n }\n // Pick off the right state value to return\n if (result.actionData) {\n return Object.values(result.actionData)[0];\n }\n if (result.loaderData) {\n var _result$activeDeferre;\n let data = Object.values(result.loaderData)[0];\n if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) {\n data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n }\n return data;\n }\n return undefined;\n }\n async function queryImpl(request, location, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch) {\n invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch != null);\n return result;\n }\n let result = await loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch);\n return isResponse(result) ? result : _extends({}, result, {\n actionData: null,\n actionHeaders: {}\n });\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction for a\n // `queryRoute` call, we throw the `DataStrategyResult` to bail out early\n // and then return or throw the raw Response here accordingly\n if (isDataStrategyResult(e) && isResponse(e.result)) {\n if (e.type === ResultType.error) {\n throw e.result;\n }\n return e.result;\n }\n // Redirects are always returned since they don't propagate to catch\n // boundaries\n if (isRedirectResponse(e)) {\n return e;\n }\n throw e;\n }\n }\n async function submit(request, matches, actionMatch, requestContext, dataStrategy, skipLoaderErrorBubbling, isRouteRequest) {\n let result;\n if (!actionMatch.route.action && !actionMatch.route.lazy) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error\n };\n } else {\n let results = await callDataStrategy(\"action\", request, [actionMatch], matches, isRouteRequest, requestContext, dataStrategy);\n result = results[actionMatch.route.id];\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest, future);\n }\n }\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.response.status,\n headers: {\n Location: result.response.headers.get(\"Location\")\n }\n });\n }\n if (isDeferredResult(result)) {\n let error = getInternalRouterError(400, {\n type: \"defer-action\"\n });\n if (isRouteRequest) {\n throw error;\n }\n result = {\n type: ResultType.error,\n error\n };\n }\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: {\n [actionMatch.route.id]: result.data\n },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n // Create a GET request for the loaders\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(loaderRequest, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, null, [boundaryMatch.route.id, result]);\n // action status codes take precedence over loader status codes\n return _extends({}, context, {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500,\n actionData: null,\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n let context = await loadRouteData(loaderRequest, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, null);\n return _extends({}, context, {\n actionData: {\n [actionMatch.route.id]: result.data\n }\n }, result.statusCode ? {\n statusCode: result.statusCode\n } : {}, {\n actionHeaders: result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {}\n });\n }\n async function loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, pendingActionResult) {\n let isRouteRequest = routeMatch != null;\n // Short circuit if we have no loaders to run (queryRoute())\n if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader) && !(routeMatch != null && routeMatch.route.lazy)) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch == null ? void 0 : routeMatch.route.id\n });\n }\n let requestMatches = routeMatch ? [routeMatch] : pendingActionResult && isErrorResult(pendingActionResult[1]) ? getLoaderMatchesUntilBoundary(matches, pendingActionResult[0]) : matches;\n let matchesToLoad = requestMatches.filter(m => m.route.loader || m.route.lazy);\n // Short circuit if we have no loaders to run (query())\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n [m.route.id]: null\n }), {}),\n errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? {\n [pendingActionResult[0]]: pendingActionResult[1].error\n } : null,\n statusCode: 200,\n loaderHeaders: {},\n activeDeferreds: null\n };\n }\n let results = await callDataStrategy(\"loader\", request, matchesToLoad, matches, isRouteRequest, requestContext, dataStrategy);\n if (request.signal.aborted) {\n throwStaticHandlerAbortedError(request, isRouteRequest, future);\n }\n // Process and commit output from loaders\n let activeDeferreds = new Map();\n let context = processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling);\n // Add a null for any non-loader matches for proper revalidation on the client\n let executedLoaders = new Set(matchesToLoad.map(match => match.route.id));\n matches.forEach(match => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n return _extends({}, context, {\n matches,\n activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null\n });\n }\n // Utility wrapper for calling dataStrategy server-side without having to\n // pass around the manifest, mapRouteProperties, etc.\n async function callDataStrategy(type, request, matchesToLoad, matches, isRouteRequest, requestContext, dataStrategy) {\n let results = await callDataStrategyImpl(dataStrategy || defaultDataStrategy, type, null, request, matchesToLoad, matches, null, manifest, mapRouteProperties, requestContext);\n let dataResults = {};\n await Promise.all(matches.map(async match => {\n if (!(match.route.id in results)) {\n return;\n }\n let result = results[match.route.id];\n if (isRedirectDataStrategyResultResult(result)) {\n let response = result.result;\n // Throw redirects and let the server handle them with an HTTP redirect\n throw normalizeRelativeRoutingRedirectResponse(response, request, match.route.id, matches, basename, future.v7_relativeSplatPath);\n }\n if (isResponse(result.result) && isRouteRequest) {\n // For SSR single-route requests, we want to hand Responses back\n // directly without unwrapping\n throw result;\n }\n dataResults[match.route.id] = await convertDataStrategyResultToDataResult(result);\n }));\n return dataResults;\n }\n return {\n dataRoutes,\n query,\n queryRoute\n };\n}\n//#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\nfunction getStaticContextFromError(routes, context, error) {\n let newContext = _extends({}, context, {\n statusCode: isRouteErrorResponse(error) ? error.status : 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error\n }\n });\n return newContext;\n}\nfunction throwStaticHandlerAbortedError(request, isRouteRequest, future) {\n if (future.v7_throwAbortReason && request.signal.reason !== undefined) {\n throw request.signal.reason;\n }\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted: \" + request.method + \" \" + request.url);\n}\nfunction isSubmissionNavigation(opts) {\n return opts != null && (\"formData\" in opts && opts.formData != null || \"body\" in opts && opts.body !== undefined);\n}\nfunction normalizeTo(location, matches, basename, prependBasename, to, v7_relativeSplatPath, fromRouteId, relative) {\n let contextualMatches;\n let activeRouteMatch;\n if (fromRouteId) {\n // Grab matches up to the calling route so our route-relative logic is\n // relative to the correct source route\n contextualMatches = [];\n for (let match of matches) {\n contextualMatches.push(match);\n if (match.route.id === fromRouteId) {\n activeRouteMatch = match;\n break;\n }\n }\n } else {\n contextualMatches = matches;\n activeRouteMatch = matches[matches.length - 1];\n }\n // Resolve the relative path\n let path = resolveTo(to ? to : \".\", getResolveToMatches(contextualMatches, v7_relativeSplatPath), stripBasename(location.pathname, basename) || location.pathname, relative === \"path\");\n // When `to` is not specified we inherit search/hash from the current\n // location, unlike when to=\".\" and we just inherit the path.\n // See https://github.com/remix-run/remix/issues/927\n if (to == null) {\n path.search = location.search;\n path.hash = location.hash;\n }\n // Account for `?index` params when routing to the current location\n if ((to == null || to === \"\" || to === \".\") && activeRouteMatch) {\n let nakedIndex = hasNakedIndexQuery(path.search);\n if (activeRouteMatch.route.index && !nakedIndex) {\n // Add one when we're targeting an index route\n path.search = path.search ? path.search.replace(/^\\?/, \"?index&\") : \"?index\";\n } else if (!activeRouteMatch.route.index && nakedIndex) {\n // Remove existing ones when we're not\n let params = new URLSearchParams(path.search);\n let indexValues = params.getAll(\"index\");\n params.delete(\"index\");\n indexValues.filter(v => v).forEach(v => params.append(\"index\", v));\n let qs = params.toString();\n path.search = qs ? \"?\" + qs : \"\";\n }\n }\n // If we're operating within a basename, prepend it to the pathname. If\n // this is a root navigation, then just use the raw basename which allows\n // the basename to have full control over the presence of a trailing slash\n // on root actions\n if (prependBasename && basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n return createPath(path);\n}\n// Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\nfunction normalizeNavigateOptions(normalizeFormMethod, isFetcher, path, opts) {\n // Return location verbatim on non-submission navigations\n if (!opts || !isSubmissionNavigation(opts)) {\n return {\n path\n };\n }\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, {\n method: opts.formMethod\n })\n };\n }\n let getInvalidBodyError = () => ({\n path,\n error: getInternalRouterError(400, {\n type: \"invalid-body\"\n })\n });\n // Create a Submission on non-GET navigations\n let rawFormMethod = opts.formMethod || \"get\";\n let formMethod = normalizeFormMethod ? rawFormMethod.toUpperCase() : rawFormMethod.toLowerCase();\n let formAction = stripHashFromPath(path);\n if (opts.body !== undefined) {\n if (opts.formEncType === \"text/plain\") {\n // text only support POST/PUT/PATCH/DELETE submissions\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n let text = typeof opts.body === \"string\" ? opts.body : opts.body instanceof FormData || opts.body instanceof URLSearchParams ?\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data\n Array.from(opts.body.entries()).reduce((acc, _ref3) => {\n let [name, value] = _ref3;\n return \"\" + acc + name + \"=\" + value + \"\\n\";\n }, \"\") : String(opts.body);\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: undefined,\n json: undefined,\n text\n }\n };\n } else if (opts.formEncType === \"application/json\") {\n // json only supports POST/PUT/PATCH/DELETE submissions\n if (!isMutationMethod(formMethod)) {\n return getInvalidBodyError();\n }\n try {\n let json = typeof opts.body === \"string\" ? JSON.parse(opts.body) : opts.body;\n return {\n path,\n submission: {\n formMethod,\n formAction,\n formEncType: opts.formEncType,\n formData: undefined,\n json,\n text: undefined\n }\n };\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n }\n invariant(typeof FormData === \"function\", \"FormData is not available in this environment\");\n let searchParams;\n let formData;\n if (opts.formData) {\n searchParams = convertFormDataToSearchParams(opts.formData);\n formData = opts.formData;\n } else if (opts.body instanceof FormData) {\n searchParams = convertFormDataToSearchParams(opts.body);\n formData = opts.body;\n } else if (opts.body instanceof URLSearchParams) {\n searchParams = opts.body;\n formData = convertSearchParamsToFormData(searchParams);\n } else if (opts.body == null) {\n searchParams = new URLSearchParams();\n formData = new FormData();\n } else {\n try {\n searchParams = new URLSearchParams(opts.body);\n formData = convertSearchParamsToFormData(searchParams);\n } catch (e) {\n return getInvalidBodyError();\n }\n }\n let submission = {\n formMethod,\n formAction,\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData,\n json: undefined,\n text: undefined\n };\n if (isMutationMethod(submission.formMethod)) {\n return {\n path,\n submission\n };\n }\n // Flatten submission onto URLSearchParams for GET submissions\n let parsedPath = parsePath(path);\n // On GET navigation submissions we can drop the ?index param from the\n // resulting location since all loaders will run. But fetcher GET submissions\n // only run a single loader so we need to preserve any incoming ?index params\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n parsedPath.search = \"?\" + searchParams;\n return {\n path: createPath(parsedPath),\n submission\n };\n}\n// Filter out all routes at/below any caught error as they aren't going to\n// render so we don't need to load them\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId, includeBoundary) {\n if (includeBoundary === void 0) {\n includeBoundary = false;\n }\n let index = matches.findIndex(m => m.route.id === boundaryId);\n if (index >= 0) {\n return matches.slice(0, includeBoundary ? index + 1 : index);\n }\n return matches;\n}\nfunction getMatchesToLoad(history, state, matches, submission, location, initialHydration, skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult) {\n let actionResult = pendingActionResult ? isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : pendingActionResult[1].data : undefined;\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n // Pick navigation matches that are net-new or qualify for revalidation\n let boundaryMatches = matches;\n if (initialHydration && state.errors) {\n // On initial hydration, only consider matches up to _and including_ the boundary.\n // This is inclusive to handle cases where a server loader ran successfully,\n // a child server loader bubbled up to this route, but this route has\n // `clientLoader.hydrate` so we want to still run the `clientLoader` so that\n // we have a complete version of `loaderData`\n boundaryMatches = getLoaderMatchesUntilBoundary(matches, Object.keys(state.errors)[0], true);\n } else if (pendingActionResult && isErrorResult(pendingActionResult[1])) {\n // If an action threw an error, we call loaders up to, but not including the\n // boundary\n boundaryMatches = getLoaderMatchesUntilBoundary(matches, pendingActionResult[0]);\n }\n // Don't revalidate loaders by default after action 4xx/5xx responses\n // when the flag is enabled. They can still opt-into revalidation via\n // `shouldRevalidate` via `actionResult`\n let actionStatus = pendingActionResult ? pendingActionResult[1].statusCode : undefined;\n let shouldSkipRevalidation = skipActionErrorRevalidation && actionStatus && actionStatus >= 400;\n let navigationMatches = boundaryMatches.filter((match, index) => {\n let {\n route\n } = match;\n if (route.lazy) {\n // We haven't loaded this route yet so we don't know if it's got a loader!\n return true;\n }\n if (route.loader == null) {\n return false;\n }\n if (initialHydration) {\n return shouldLoadRouteOnHydration(route, state.loaderData, state.errors);\n }\n // Always call the loader on new route instances and pending defer cancellations\n if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) {\n return true;\n }\n // This is the default implementation for when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n let currentRouteMatch = state.matches[index];\n let nextRouteMatch = match;\n return shouldRevalidateLoader(match, _extends({\n currentUrl,\n currentParams: currentRouteMatch.params,\n nextUrl,\n nextParams: nextRouteMatch.params\n }, submission, {\n actionResult,\n actionStatus,\n defaultShouldRevalidate: shouldSkipRevalidation ? false :\n // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate\n isRevalidationRequired || currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search ||\n // Search params affect all loaders\n currentUrl.search !== nextUrl.search || isNewRouteInstance(currentRouteMatch, nextRouteMatch)\n }));\n });\n // Pick fetcher.loads that need to be revalidated\n let revalidatingFetchers = [];\n fetchLoadMatches.forEach((f, key) => {\n // Don't revalidate:\n // - on initial hydration (shouldn't be any fetchers then anyway)\n // - if fetcher won't be present in the subsequent render\n // - no longer matches the URL (v7_fetcherPersist=false)\n // - was unmounted but persisted due to v7_fetcherPersist=true\n if (initialHydration || !matches.some(m => m.route.id === f.routeId) || deletedFetchers.has(key)) {\n return;\n }\n let fetcherMatches = matchRoutes(routesToUse, f.path, basename);\n // If the fetcher path no longer matches, push it in with null matches so\n // we can trigger a 404 in callLoadersAndMaybeResolveData. Note this is\n // currently only a use-case for Remix HMR where the route tree can change\n // at runtime and remove a route previously loaded via a fetcher\n if (!fetcherMatches) {\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: null,\n match: null,\n controller: null\n });\n return;\n }\n // Revalidating fetchers are decoupled from the route matches since they\n // load from a static href. They revalidate based on explicit revalidation\n // (submission, useRevalidator, or X-Remix-Revalidate)\n let fetcher = state.fetchers.get(key);\n let fetcherMatch = getTargetMatch(fetcherMatches, f.path);\n let shouldRevalidate = false;\n if (fetchRedirectIds.has(key)) {\n // Never trigger a revalidation of an actively redirecting fetcher\n shouldRevalidate = false;\n } else if (cancelledFetcherLoads.has(key)) {\n // Always mark for revalidation if the fetcher was cancelled\n cancelledFetcherLoads.delete(key);\n shouldRevalidate = true;\n } else if (fetcher && fetcher.state !== \"idle\" && fetcher.data === undefined) {\n // If the fetcher hasn't ever completed loading yet, then this isn't a\n // revalidation, it would just be a brand new load if an explicit\n // revalidation is required\n shouldRevalidate = isRevalidationRequired;\n } else {\n // Otherwise fall back on any user-defined shouldRevalidate, defaulting\n // to explicit revalidations only\n shouldRevalidate = shouldRevalidateLoader(fetcherMatch, _extends({\n currentUrl,\n currentParams: state.matches[state.matches.length - 1].params,\n nextUrl,\n nextParams: matches[matches.length - 1].params\n }, submission, {\n actionResult,\n actionStatus,\n defaultShouldRevalidate: shouldSkipRevalidation ? false : isRevalidationRequired\n }));\n }\n if (shouldRevalidate) {\n revalidatingFetchers.push({\n key,\n routeId: f.routeId,\n path: f.path,\n matches: fetcherMatches,\n match: fetcherMatch,\n controller: new AbortController()\n });\n }\n });\n return [navigationMatches, revalidatingFetchers];\n}\nfunction shouldLoadRouteOnHydration(route, loaderData, errors) {\n // We dunno if we have a loader - gotta find out!\n if (route.lazy) {\n return true;\n }\n // No loader, nothing to initialize\n if (!route.loader) {\n return false;\n }\n let hasData = loaderData != null && loaderData[route.id] !== undefined;\n let hasError = errors != null && errors[route.id] !== undefined;\n // Don't run if we error'd during SSR\n if (!hasData && hasError) {\n return false;\n }\n // Explicitly opting-in to running on hydration\n if (typeof route.loader === \"function\" && route.loader.hydrate === true) {\n return true;\n }\n // Otherwise, run if we're not yet initialized with anything\n return !hasData && !hasError;\n}\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew =\n // [a] -> [a, b]\n !currentMatch ||\n // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id;\n // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n let isMissingData = currentLoaderData[match.route.id] === undefined;\n // Always load if this is a net-new route or we don't yet have data\n return isNew || isMissingData;\n}\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (\n // param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname ||\n // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n return arg.defaultShouldRevalidate;\n}\nfunction patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties) {\n var _childrenToPatch;\n let childrenToPatch;\n if (routeId) {\n let route = manifest[routeId];\n invariant(route, \"No route found to patch children into: routeId = \" + routeId);\n if (!route.children) {\n route.children = [];\n }\n childrenToPatch = route.children;\n } else {\n childrenToPatch = routesToUse;\n }\n // Don't patch in routes we already know about so that `patch` is idempotent\n // to simplify user-land code. This is useful because we re-call the\n // `patchRoutesOnNavigation` function for matched routes with params.\n let uniqueChildren = children.filter(newRoute => !childrenToPatch.some(existingRoute => isSameRoute(newRoute, existingRoute)));\n let newRoutes = convertRoutesToDataRoutes(uniqueChildren, mapRouteProperties, [routeId || \"_\", \"patch\", String(((_childrenToPatch = childrenToPatch) == null ? void 0 : _childrenToPatch.length) || \"0\")], manifest);\n childrenToPatch.push(...newRoutes);\n}\nfunction isSameRoute(newRoute, existingRoute) {\n // Most optimal check is by id\n if (\"id\" in newRoute && \"id\" in existingRoute && newRoute.id === existingRoute.id) {\n return true;\n }\n // Second is by pathing differences\n if (!(newRoute.index === existingRoute.index && newRoute.path === existingRoute.path && newRoute.caseSensitive === existingRoute.caseSensitive)) {\n return false;\n }\n // Pathless layout routes are trickier since we need to check children.\n // If they have no children then they're the same as far as we can tell\n if ((!newRoute.children || newRoute.children.length === 0) && (!existingRoute.children || existingRoute.children.length === 0)) {\n return true;\n }\n // Otherwise, we look to see if every child in the new route is already\n // represented in the existing route's children\n return newRoute.children.every((aChild, i) => {\n var _existingRoute$childr;\n return (_existingRoute$childr = existingRoute.children) == null ? void 0 : _existingRoute$childr.some(bChild => isSameRoute(aChild, bChild));\n });\n}\n/**\n * Execute route.lazy() methods to lazily load route modules (loader, action,\n * shouldRevalidate) and update the routeManifest in place which shares objects\n * with dataRoutes so those get updated as well.\n */\nasync function loadLazyRouteModule(route, mapRouteProperties, manifest) {\n if (!route.lazy) {\n return;\n }\n let lazyRoute = await route.lazy();\n // If the lazy route function was executed and removed by another parallel\n // call then we can return - first lazy() to finish wins because the return\n // value of lazy is expected to be static\n if (!route.lazy) {\n return;\n }\n let routeToUpdate = manifest[route.id];\n invariant(routeToUpdate, \"No route found in manifest\");\n // Update the route in place. This should be safe because there's no way\n // we could yet be sitting on this route as we can't get there without\n // resolving lazy() first.\n //\n // This is different than the HMR \"update\" use-case where we may actively be\n // on the route being updated. The main concern boils down to \"does this\n // mutation affect any ongoing navigations or any current state.matches\n // values?\". If not, it should be safe to update in place.\n let routeUpdates = {};\n for (let lazyRouteProperty in lazyRoute) {\n let staticRouteValue = routeToUpdate[lazyRouteProperty];\n let isPropertyStaticallyDefined = staticRouteValue !== undefined &&\n // This property isn't static since it should always be updated based\n // on the route updates\n lazyRouteProperty !== \"hasErrorBoundary\";\n warning(!isPropertyStaticallyDefined, \"Route \\\"\" + routeToUpdate.id + \"\\\" has a static property \\\"\" + lazyRouteProperty + \"\\\" \" + \"defined but its lazy function is also returning a value for this property. \" + (\"The lazy route property \\\"\" + lazyRouteProperty + \"\\\" will be ignored.\"));\n if (!isPropertyStaticallyDefined && !immutableRouteKeys.has(lazyRouteProperty)) {\n routeUpdates[lazyRouteProperty] = lazyRoute[lazyRouteProperty];\n }\n }\n // Mutate the route with the provided updates. Do this first so we pass\n // the updated version to mapRouteProperties\n Object.assign(routeToUpdate, routeUpdates);\n // Mutate the `hasErrorBoundary` property on the route based on the route\n // updates and remove the `lazy` function so we don't resolve the lazy\n // route again.\n Object.assign(routeToUpdate, _extends({}, mapRouteProperties(routeToUpdate), {\n lazy: undefined\n }));\n}\n// Default implementation of `dataStrategy` which fetches all loaders in parallel\nasync function defaultDataStrategy(_ref4) {\n let {\n matches\n } = _ref4;\n let matchesToLoad = matches.filter(m => m.shouldLoad);\n let results = await Promise.all(matchesToLoad.map(m => m.resolve()));\n return results.reduce((acc, result, i) => Object.assign(acc, {\n [matchesToLoad[i].route.id]: result\n }), {});\n}\nasync function callDataStrategyImpl(dataStrategyImpl, type, state, request, matchesToLoad, matches, fetcherKey, manifest, mapRouteProperties, requestContext) {\n let loadRouteDefinitionsPromises = matches.map(m => m.route.lazy ? loadLazyRouteModule(m.route, mapRouteProperties, manifest) : undefined);\n let dsMatches = matches.map((match, i) => {\n let loadRoutePromise = loadRouteDefinitionsPromises[i];\n let shouldLoad = matchesToLoad.some(m => m.route.id === match.route.id);\n // `resolve` encapsulates route.lazy(), executing the loader/action,\n // and mapping return values/thrown errors to a `DataStrategyResult`. Users\n // can pass a callback to take fine-grained control over the execution\n // of the loader/action\n let resolve = async handlerOverride => {\n if (handlerOverride && request.method === \"GET\" && (match.route.lazy || match.route.loader)) {\n shouldLoad = true;\n }\n return shouldLoad ? callLoaderOrAction(type, request, match, loadRoutePromise, handlerOverride, requestContext) : Promise.resolve({\n type: ResultType.data,\n result: undefined\n });\n };\n return _extends({}, match, {\n shouldLoad,\n resolve\n });\n });\n // Send all matches here to allow for a middleware-type implementation.\n // handler will be a no-op for unneeded routes and we filter those results\n // back out below.\n let results = await dataStrategyImpl({\n matches: dsMatches,\n request,\n params: matches[0].params,\n fetcherKey,\n context: requestContext\n });\n // Wait for all routes to load here but 'swallow the error since we want\n // it to bubble up from the `await loadRoutePromise` in `callLoaderOrAction` -\n // called from `match.resolve()`\n try {\n await Promise.all(loadRouteDefinitionsPromises);\n } catch (e) {\n // No-op\n }\n return results;\n}\n// Default logic for calling a loader/action is the user has no specified a dataStrategy\nasync function callLoaderOrAction(type, request, match, loadRoutePromise, handlerOverride, staticContext) {\n let result;\n let onReject;\n let runHandler = handler => {\n // Setup a promise we can race against so that abort signals short circuit\n let reject;\n // This will never resolve so safe to type it as Promise to\n // satisfy the function return value\n let abortPromise = new Promise((_, r) => reject = r);\n onReject = () => reject();\n request.signal.addEventListener(\"abort\", onReject);\n let actualHandler = ctx => {\n if (typeof handler !== \"function\") {\n return Promise.reject(new Error(\"You cannot call the handler for a route which defines a boolean \" + (\"\\\"\" + type + \"\\\" [routeId: \" + match.route.id + \"]\")));\n }\n return handler({\n request,\n params: match.params,\n context: staticContext\n }, ...(ctx !== undefined ? [ctx] : []));\n };\n let handlerPromise = (async () => {\n try {\n let val = await (handlerOverride ? handlerOverride(ctx => actualHandler(ctx)) : actualHandler());\n return {\n type: \"data\",\n result: val\n };\n } catch (e) {\n return {\n type: \"error\",\n result: e\n };\n }\n })();\n return Promise.race([handlerPromise, abortPromise]);\n };\n try {\n let handler = match.route[type];\n // If we have a route.lazy promise, await that first\n if (loadRoutePromise) {\n if (handler) {\n // Run statically defined handler in parallel with lazy()\n let handlerError;\n let [value] = await Promise.all([\n // If the handler throws, don't let it immediately bubble out,\n // since we need to let the lazy() execution finish so we know if this\n // route has a boundary that can handle the error\n runHandler(handler).catch(e => {\n handlerError = e;\n }), loadRoutePromise]);\n if (handlerError !== undefined) {\n throw handlerError;\n }\n result = value;\n } else {\n // Load lazy route module, then run any returned handler\n await loadRoutePromise;\n handler = match.route[type];\n if (handler) {\n // Handler still runs even if we got interrupted to maintain consistency\n // with un-abortable behavior of handler execution on non-lazy or\n // previously-lazy-loaded routes\n result = await runHandler(handler);\n } else if (type === \"action\") {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(405, {\n method: request.method,\n pathname,\n routeId: match.route.id\n });\n } else {\n // lazy() route has no loader to run. Short circuit here so we don't\n // hit the invariant below that errors on returning undefined.\n return {\n type: ResultType.data,\n result: undefined\n };\n }\n }\n } else if (!handler) {\n let url = new URL(request.url);\n let pathname = url.pathname + url.search;\n throw getInternalRouterError(404, {\n pathname\n });\n } else {\n result = await runHandler(handler);\n }\n invariant(result.result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n } catch (e) {\n // We should already be catching and converting normal handler executions to\n // DataStrategyResults and returning them, so anything that throws here is an\n // unexpected error we still need to wrap\n return {\n type: ResultType.error,\n result: e\n };\n } finally {\n if (onReject) {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n }\n return result;\n}\nasync function convertDataStrategyResultToDataResult(dataStrategyResult) {\n let {\n result,\n type\n } = dataStrategyResult;\n if (isResponse(result)) {\n let data;\n try {\n let contentType = result.headers.get(\"Content-Type\");\n // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n if (result.body == null) {\n data = null;\n } else {\n data = await result.json();\n }\n } else {\n data = await result.text();\n }\n } catch (e) {\n return {\n type: ResultType.error,\n error: e\n };\n }\n if (type === ResultType.error) {\n return {\n type: ResultType.error,\n error: new ErrorResponseImpl(result.status, result.statusText, data),\n statusCode: result.status,\n headers: result.headers\n };\n }\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers\n };\n }\n if (type === ResultType.error) {\n if (isDataWithResponseInit(result)) {\n var _result$init3, _result$init4;\n if (result.data instanceof Error) {\n var _result$init, _result$init2;\n return {\n type: ResultType.error,\n error: result.data,\n statusCode: (_result$init = result.init) == null ? void 0 : _result$init.status,\n headers: (_result$init2 = result.init) != null && _result$init2.headers ? new Headers(result.init.headers) : undefined\n };\n }\n // Convert thrown data() to ErrorResponse instances\n return {\n type: ResultType.error,\n error: new ErrorResponseImpl(((_result$init3 = result.init) == null ? void 0 : _result$init3.status) || 500, undefined, result.data),\n statusCode: isRouteErrorResponse(result) ? result.status : undefined,\n headers: (_result$init4 = result.init) != null && _result$init4.headers ? new Headers(result.init.headers) : undefined\n };\n }\n return {\n type: ResultType.error,\n error: result,\n statusCode: isRouteErrorResponse(result) ? result.status : undefined\n };\n }\n if (isDeferredData(result)) {\n var _result$init5, _result$init6;\n return {\n type: ResultType.deferred,\n deferredData: result,\n statusCode: (_result$init5 = result.init) == null ? void 0 : _result$init5.status,\n headers: ((_result$init6 = result.init) == null ? void 0 : _result$init6.headers) && new Headers(result.init.headers)\n };\n }\n if (isDataWithResponseInit(result)) {\n var _result$init7, _result$init8;\n return {\n type: ResultType.data,\n data: result.data,\n statusCode: (_result$init7 = result.init) == null ? void 0 : _result$init7.status,\n headers: (_result$init8 = result.init) != null && _result$init8.headers ? new Headers(result.init.headers) : undefined\n };\n }\n return {\n type: ResultType.data,\n data: result\n };\n}\n// Support relative routing in internal redirects\nfunction normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename, v7_relativeSplatPath) {\n let location = response.headers.get(\"Location\");\n invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\");\n if (!ABSOLUTE_URL_REGEX.test(location)) {\n let trimmedMatches = matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1);\n location = normalizeTo(new URL(request.url), trimmedMatches, basename, true, location, v7_relativeSplatPath);\n response.headers.set(\"Location\", location);\n }\n return response;\n}\nfunction normalizeRedirectLocation(location, currentUrl, basename) {\n if (ABSOLUTE_URL_REGEX.test(location)) {\n // Strip off the protocol+origin for same-origin + same-basename absolute redirects\n let normalizedLocation = location;\n let url = normalizedLocation.startsWith(\"//\") ? new URL(currentUrl.protocol + normalizedLocation) : new URL(normalizedLocation);\n let isSameBasename = stripBasename(url.pathname, basename) != null;\n if (url.origin === currentUrl.origin && isSameBasename) {\n return url.pathname + url.search + url.hash;\n }\n }\n return location;\n}\n// Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\nfunction createClientSideRequest(history, location, signal, submission) {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init = {\n signal\n };\n if (submission && isMutationMethod(submission.formMethod)) {\n let {\n formMethod,\n formEncType\n } = submission;\n // Didn't think we needed this but it turns out unlike other methods, patch\n // won't be properly normalized to uppercase and results in a 405 error.\n // See: https://fetch.spec.whatwg.org/#concept-method\n init.method = formMethod.toUpperCase();\n if (formEncType === \"application/json\") {\n init.headers = new Headers({\n \"Content-Type\": formEncType\n });\n init.body = JSON.stringify(submission.json);\n } else if (formEncType === \"text/plain\") {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = submission.text;\n } else if (formEncType === \"application/x-www-form-urlencoded\" && submission.formData) {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = convertFormDataToSearchParams(submission.formData);\n } else {\n // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n init.body = submission.formData;\n }\n }\n return new Request(url, init);\n}\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n for (let [key, value] of formData.entries()) {\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n searchParams.append(key, typeof value === \"string\" ? value : value.name);\n }\n return searchParams;\n}\nfunction convertSearchParamsToFormData(searchParams) {\n let formData = new FormData();\n for (let [key, value] of searchParams.entries()) {\n formData.append(key, value);\n }\n return formData;\n}\nfunction processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling) {\n // Fill in loaderData/errors from our loaders\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {};\n let pendingError = pendingActionResult && isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : undefined;\n // Process loader results into state.loaderData/state.errors\n matches.forEach(match => {\n if (!(match.route.id in results)) {\n return;\n }\n let id = match.route.id;\n let result = results[id];\n invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n if (isErrorResult(result)) {\n let error = result.error;\n // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n if (pendingError !== undefined) {\n error = pendingError;\n pendingError = undefined;\n }\n errors = errors || {};\n if (skipLoaderErrorBubbling) {\n errors[id] = error;\n } else {\n // Look upwards from the matched route for the closest ancestor error\n // boundary, defaulting to the root match. Prefer higher error values\n // if lower errors bubble to the same boundary\n let boundaryMatch = findNearestBoundary(matches, id);\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n }\n }\n // Clear our any prior loaderData for the throwing route\n loaderData[id] = undefined;\n // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n if (isDeferredResult(result)) {\n activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data;\n // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n loaderData[id] = result.data;\n // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n if (result.statusCode && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n }\n });\n // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n if (pendingError !== undefined && pendingActionResult) {\n errors = {\n [pendingActionResult[0]]: pendingError\n };\n loaderData[pendingActionResult[0]] = undefined;\n }\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\nfunction processLoaderData(state, matches, results, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds) {\n let {\n loaderData,\n errors\n } = processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, false // This method is only called client side so we always want to bubble\n );\n // Process results from our revalidating fetchers\n revalidatingFetchers.forEach(rf => {\n let {\n key,\n match,\n controller\n } = rf;\n let result = fetcherResults[key];\n invariant(result, \"Did not find corresponding fetcher result\");\n // Process fetcher non-redirect errors\n if (controller && controller.signal.aborted) {\n // Nothing to do for aborted fetchers\n return;\n } else if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match == null ? void 0 : match.route.id);\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = _extends({}, errors, {\n [boundaryMatch.route.id]: result.error\n });\n }\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n invariant(false, \"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher = getDoneFetcher(result.data);\n state.fetchers.set(key, doneFetcher);\n }\n });\n return {\n loaderData,\n errors\n };\n}\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = _extends({}, newLoaderData);\n for (let match of matches) {\n let id = match.route.id;\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n }\n } else if (loaderData[id] !== undefined && match.route.loader) {\n // Preserve existing keys not included in newLoaderData and where a loader\n // wasn't removed by HMR\n mergedLoaderData[id] = loaderData[id];\n }\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n return mergedLoaderData;\n}\nfunction getActionDataForCommit(pendingActionResult) {\n if (!pendingActionResult) {\n return {};\n }\n return isErrorResult(pendingActionResult[1]) ? {\n // Clear out prior actionData on errors\n actionData: {}\n } : {\n actionData: {\n [pendingActionResult[0]]: pendingActionResult[1].data\n }\n };\n}\n// Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\nfunction getShortCircuitMatches(routes) {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.length === 1 ? routes[0] : routes.find(r => r.index || !r.path || r.path === \"/\") || {\n id: \"__shim-error-route__\"\n };\n return {\n matches: [{\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }],\n route\n };\n}\nfunction getInternalRouterError(status, _temp5) {\n let {\n pathname,\n routeId,\n method,\n type,\n message\n } = _temp5 === void 0 ? {} : _temp5;\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n if (status === 400) {\n statusText = \"Bad Request\";\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (type === \"defer-action\") {\n errorMessage = \"defer() is not supported in actions\";\n } else if (type === \"invalid-body\") {\n errorMessage = \"Unable to encode submission body\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (method) {\n errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n }\n }\n return new ErrorResponseImpl(status || 500, statusText, new Error(errorMessage), true);\n}\n// Find any returned redirect errors, starting from the lowest match\nfunction findRedirect(results) {\n let entries = Object.entries(results);\n for (let i = entries.length - 1; i >= 0; i--) {\n let [key, result] = entries[i];\n if (isRedirectResult(result)) {\n return {\n key,\n result\n };\n }\n }\n}\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath(_extends({}, parsedPath, {\n hash: \"\"\n }));\n}\nfunction isHashChangeOnly(a, b) {\n if (a.pathname !== b.pathname || a.search !== b.search) {\n return false;\n }\n if (a.hash === \"\") {\n // /page -> /page#hash\n return b.hash !== \"\";\n } else if (a.hash === b.hash) {\n // /page#hash -> /page#hash\n return true;\n } else if (b.hash !== \"\") {\n // /page#hash -> /page#other\n return true;\n }\n // If the hash is removed the browser will re-perform a request to the server\n // /page#hash -> /page\n return false;\n}\nfunction isDataStrategyResult(result) {\n return result != null && typeof result === \"object\" && \"type\" in result && \"result\" in result && (result.type === ResultType.data || result.type === ResultType.error);\n}\nfunction isRedirectDataStrategyResultResult(result) {\n return isResponse(result.result) && redirectStatusCodes.has(result.result.status);\n}\nfunction isDeferredResult(result) {\n return result.type === ResultType.deferred;\n}\nfunction isErrorResult(result) {\n return result.type === ResultType.error;\n}\nfunction isRedirectResult(result) {\n return (result && result.type) === ResultType.redirect;\n}\nfunction isDataWithResponseInit(value) {\n return typeof value === \"object\" && value != null && \"type\" in value && \"data\" in value && \"init\" in value && value.type === \"DataWithResponseInit\";\n}\nfunction isDeferredData(value) {\n let deferred = value;\n return deferred && typeof deferred === \"object\" && typeof deferred.data === \"object\" && typeof deferred.subscribe === \"function\" && typeof deferred.cancel === \"function\" && typeof deferred.resolveData === \"function\";\n}\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\nfunction isRedirectResponse(result) {\n if (!isResponse(result)) {\n return false;\n }\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\nfunction isValidMethod(method) {\n return validRequestMethods.has(method.toLowerCase());\n}\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method.toLowerCase());\n}\nasync function resolveNavigationDeferredResults(matches, results, signal, currentMatches, currentLoaderData) {\n let entries = Object.entries(results);\n for (let index = 0; index < entries.length; index++) {\n let [routeId, result] = entries[index];\n let match = matches.find(m => (m == null ? void 0 : m.route.id) === routeId);\n // If we don't have a match, then we can have a deferred result to do\n // anything with. This is for revalidating fetchers where the route was\n // removed during HMR\n if (!match) {\n continue;\n }\n let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n if (isDeferredResult(result) && isRevalidatingLoader) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n await resolveDeferredData(result, signal, false).then(result => {\n if (result) {\n results[routeId] = result;\n }\n });\n }\n }\n}\nasync function resolveFetcherDeferredResults(matches, results, revalidatingFetchers) {\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let {\n key,\n routeId,\n controller\n } = revalidatingFetchers[index];\n let result = results[key];\n let match = matches.find(m => (m == null ? void 0 : m.route.id) === routeId);\n // If we don't have a match, then we can have a deferred result to do\n // anything with. This is for revalidating fetchers where the route was\n // removed during HMR\n if (!match) {\n continue;\n }\n if (isDeferredResult(result)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n invariant(controller, \"Expected an AbortController for revalidating fetcher deferred result\");\n await resolveDeferredData(result, controller.signal, true).then(result => {\n if (result) {\n results[key] = result;\n }\n });\n }\n }\n}\nasync function resolveDeferredData(result, signal, unwrap) {\n if (unwrap === void 0) {\n unwrap = false;\n }\n let aborted = await result.deferredData.resolveData(signal);\n if (aborted) {\n return;\n }\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e\n };\n }\n }\n return {\n type: ResultType.data,\n data: result.deferredData.data\n };\n}\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n}\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n }\n // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n}\nfunction getSubmissionFromNavigation(navigation) {\n let {\n formMethod,\n formAction,\n formEncType,\n text,\n formData,\n json\n } = navigation;\n if (!formMethod || !formAction || !formEncType) {\n return;\n }\n if (text != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: undefined,\n json: undefined,\n text\n };\n } else if (formData != null) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData,\n json: undefined,\n text: undefined\n };\n } else if (json !== undefined) {\n return {\n formMethod,\n formAction,\n formEncType,\n formData: undefined,\n json,\n text: undefined\n };\n }\n}\nfunction getLoadingNavigation(location, submission) {\n if (submission) {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n } else {\n let navigation = {\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined\n };\n return navigation;\n }\n}\nfunction getSubmittingNavigation(location, submission) {\n let navigation = {\n state: \"submitting\",\n location,\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text\n };\n return navigation;\n}\nfunction getLoadingFetcher(submission, data) {\n if (submission) {\n let fetcher = {\n state: \"loading\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data\n };\n return fetcher;\n } else {\n let fetcher = {\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined,\n data\n };\n return fetcher;\n }\n}\nfunction getSubmittingFetcher(submission, existingFetcher) {\n let fetcher = {\n state: \"submitting\",\n formMethod: submission.formMethod,\n formAction: submission.formAction,\n formEncType: submission.formEncType,\n formData: submission.formData,\n json: submission.json,\n text: submission.text,\n data: existingFetcher ? existingFetcher.data : undefined\n };\n return fetcher;\n}\nfunction getDoneFetcher(data) {\n let fetcher = {\n state: \"idle\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n json: undefined,\n text: undefined,\n data\n };\n return fetcher;\n}\nfunction restoreAppliedTransitions(_window, transitions) {\n try {\n let sessionPositions = _window.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);\n if (sessionPositions) {\n let json = JSON.parse(sessionPositions);\n for (let [k, v] of Object.entries(json || {})) {\n if (v && Array.isArray(v)) {\n transitions.set(k, new Set(v || []));\n }\n }\n }\n } catch (e) {\n // no-op, use default empty object\n }\n}\nfunction persistAppliedTransitions(_window, transitions) {\n if (transitions.size > 0) {\n let json = {};\n for (let [k, v] of transitions) {\n json[k] = [...v];\n }\n try {\n _window.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY, JSON.stringify(json));\n } catch (error) {\n warning(false, \"Failed to save applied view transitions in sessionStorage (\" + error + \").\");\n }\n }\n}\n//#endregion\n\nexport { AbortedDeferredError, Action, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, UNSAFE_DEFERRED_SYMBOL, DeferredData as UNSAFE_DeferredData, ErrorResponseImpl as UNSAFE_ErrorResponseImpl, convertRouteMatchToUiMatch as UNSAFE_convertRouteMatchToUiMatch, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, decodePath as UNSAFE_decodePath, getResolveToMatches as UNSAFE_getResolveToMatches, invariant as UNSAFE_invariant, warning as UNSAFE_warning, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, data, defer, generatePath, getStaticContextFromError, getToPathname, isDataWithResponseInit, isDeferredData, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, redirectDocument, replace, resolvePath, resolveTo, stripBasename };\n//# sourceMappingURL=router.js.map\n","/**\n * React Router v6.30.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport * as React from 'react';\nimport { UNSAFE_invariant, joinPaths, matchPath, UNSAFE_decodePath, UNSAFE_getResolveToMatches, UNSAFE_warning, resolveTo, parsePath, matchRoutes, Action, UNSAFE_convertRouteMatchToUiMatch, stripBasename, IDLE_BLOCKER, isRouteErrorResponse, createMemoryHistory, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, redirectDocument, replace, resolvePath } from '@remix-run/router';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n// Create react-specific types from the agnostic types in @remix-run/router to\n// export from react-router\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterContext.displayName = \"DataRouter\";\n}\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n AwaitContext.displayName = \"Await\";\n}\n\n/**\n * A Navigator is a \"location changer\"; it's how you get to different locations.\n *\n * Every history instance conforms to the Navigator interface, but the\n * distinction is useful primarily when it comes to the low-level `` API\n * where both the location and a navigator must be provided separately in order\n * to avoid \"tearing\" that may occur in a suspense-enabled app if the action\n * and/or location were to be read directly from the history instance.\n */\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n NavigationContext.displayName = \"Navigation\";\n}\nconst LocationContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n LocationContext.displayName = \"Location\";\n}\nconst RouteContext = /*#__PURE__*/React.createContext({\n outlet: null,\n matches: [],\n isDataRoute: false\n});\nif (process.env.NODE_ENV !== \"production\") {\n RouteContext.displayName = \"Route\";\n}\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") {\n RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/v6/hooks/use-href\n */\nfunction useHref(to, _temp) {\n let {\n relative\n } = _temp === void 0 ? {} : _temp;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useHref() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n hash,\n pathname,\n search\n } = useResolvedPath(to, {\n relative\n });\n let joinedPathname = pathname;\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n return navigator.createHref({\n pathname: joinedPathname,\n search,\n hash\n });\n}\n\n/**\n * Returns true if this component is a descendant of a ``.\n *\n * @see https://reactrouter.com/v6/hooks/use-in-router-context\n */\nfunction useInRouterContext() {\n return React.useContext(LocationContext) != null;\n}\n\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/v6/hooks/use-location\n */\nfunction useLocation() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useLocation() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n return React.useContext(LocationContext).location;\n}\n\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/v6/hooks/use-navigation-type\n */\nfunction useNavigationType() {\n return React.useContext(LocationContext).navigationType;\n}\n\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * ``.\n *\n * @see https://reactrouter.com/v6/hooks/use-match\n */\nfunction useMatch(pattern) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useMatch() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let {\n pathname\n } = useLocation();\n return React.useMemo(() => matchPath(pattern, UNSAFE_decodePath(pathname)), [pathname, pattern]);\n}\n\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\nconst navigateEffectWarning = \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\";\n\n// Mute warnings for calls to useNavigate in SSR environments\nfunction useIsomorphicLayoutEffect(cb) {\n let isStatic = React.useContext(NavigationContext).static;\n if (!isStatic) {\n // We should be able to get rid of this once react 18.3 is released\n // See: https://github.com/facebook/react/pull/26395\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useLayoutEffect(cb);\n }\n}\n\n/**\n * Returns an imperative method for changing the location. Used by ``s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/v6/hooks/use-navigate\n */\nfunction useNavigate() {\n let {\n isDataRoute\n } = React.useContext(RouteContext);\n // Conditional usage is OK here because the usage of a data router is static\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return isDataRoute ? useNavigateStable() : useNavigateUnstable();\n}\nfunction useNavigateUnstable() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useNavigate() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let dataRouterContext = React.useContext(DataRouterContext);\n let {\n basename,\n future,\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n let activeRef = React.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n // Short circuit here since if this happens on first render the navigate\n // is useless because we haven't wired up our history listener yet\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\");\n\n // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history (but only if we're not in a data router,\n // otherwise it'll prepend the basename inside of the router).\n // If this is a root navigation, then we navigate to the raw basename\n // which allows the basename to have full control over the presence of a\n // trailing slash on root links\n if (dataRouterContext == null && basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n }, [basename, navigator, routePathnamesJson, locationPathname, dataRouterContext]);\n return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/v6/hooks/use-outlet-context\n */\nfunction useOutletContext() {\n return React.useContext(OutletContext);\n}\n\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by `` to render child routes.\n *\n * @see https://reactrouter.com/v6/hooks/use-outlet\n */\nfunction useOutlet(context) {\n let outlet = React.useContext(RouteContext).outlet;\n if (outlet) {\n return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n value: context\n }, outlet);\n }\n return outlet;\n}\n\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/v6/hooks/use-params\n */\nfunction useParams() {\n let {\n matches\n } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\n\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/v6/hooks/use-resolved-path\n */\nfunction useResolvedPath(to, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n future\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getResolveToMatches(matches, future.v7_relativeSplatPath));\n return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an `` to render their child route's\n * element.\n *\n * @see https://reactrouter.com/v6/hooks/use-routes\n */\nfunction useRoutes(routes, locationArg) {\n return useRoutesImpl(routes, locationArg);\n}\n\n// Internal implementation with accept optional param for RouterProvider usage\nfunction useRoutesImpl(routes, locationArg, dataRouterState, future) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useRoutes() may be used only in the context of a component.\") : UNSAFE_invariant(false) : void 0;\n let {\n navigator,\n static: isStatic\n } = React.useContext(NavigationContext);\n let {\n matches: parentMatches\n } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n if (process.env.NODE_ENV !== \"production\") {\n // You won't get a warning about 2 different under a \n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // \n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // } />\n // } />\n // \n //\n // function Blog() {\n // return (\n // \n // } />\n // \n // );\n // }\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (under ) but the \") + \"parent route path has no trailing \\\"*\\\". This means if you navigate \" + \"deeper, the parent won't match anymore and therefore the child \" + \"routes will never render.\\n\\n\" + (\"Please change the parent to .\"));\n }\n let locationFromContext = useLocation();\n let location;\n if (locationArg) {\n var _parsedLocationArg$pa;\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"When overriding the location using `` or `useRoutes(routes, location)`, \" + \"the location pathname must begin with the portion of the URL pathname that was \" + (\"matched by all parent routes. The current pathname base is \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : UNSAFE_invariant(false) : void 0;\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n let pathname = location.pathname || \"/\";\n let remainingPathname = pathname;\n if (parentPathnameBase !== \"/\") {\n // Determine the remaining pathname by removing the # of URL segments the\n // parentPathnameBase has, instead of removing based on character count.\n // This is because we can't guarantee that incoming/outgoing encodings/\n // decodings will match exactly.\n // We decode paths before matching on a per-segment basis with\n // decodeURIComponent(), but we re-encode pathnames via `new URL()` so they\n // match what `window.location.pathname` would reflect. Those don't 100%\n // align when it comes to encoded URI characters such as % and &.\n //\n // So we may end up with:\n // pathname: \"/descendant/a%25b/match\"\n // parentPathnameBase: \"/descendant/a%b\"\n //\n // And the direct substring removal approach won't work :/\n let parentSegments = parentPathnameBase.replace(/^\\//, \"\").split(\"/\");\n let segments = pathname.replace(/^\\//, \"\").split(\"/\");\n remainingPathname = \"/\" + segments.slice(parentSegments.length).join(\"/\");\n }\n let matches = !isStatic && dataRouterState && dataRouterState.matches && dataRouterState.matches.length > 0 ? dataRouterState.matches : matchRoutes(routes, {\n pathname: remainingPathname\n });\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(matches == null || matches[matches.length - 1].route.element !== undefined || matches[matches.length - 1].route.Component !== undefined || matches[matches.length - 1].route.lazy !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \" + \"does not have an element or Component. This means it will render an with a \" + \"null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n }\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase,\n // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n })), parentMatches, dataRouterState, future);\n\n // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n if (locationArg && renderedMatches) {\n return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n value: {\n location: _extends({\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\"\n }, location),\n navigationType: Action.Pop\n }\n }, renderedMatches);\n }\n return renderedMatches;\n}\nfunction DefaultErrorComponent() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = {\n padding: \"0.5rem\",\n backgroundColor: lightgrey\n };\n let codeStyles = {\n padding: \"2px 4px\",\n backgroundColor: lightgrey\n };\n let devInfo = null;\n if (process.env.NODE_ENV !== \"production\") {\n console.error(\"Error handled by React Router default ErrorBoundary:\", error);\n devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own \", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"ErrorBoundary\"), \" or\", \" \", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"errorElement\"), \" prop on your route.\"));\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unexpected Application Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n fontStyle: \"italic\"\n }\n }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n style: preStyles\n }, stack) : null, devInfo);\n}\nconst defaultErrorElement = /*#__PURE__*/React.createElement(DefaultErrorComponent, null);\nclass RenderErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n revalidation: props.revalidation,\n error: props.error\n };\n }\n static getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n static getDerivedStateFromProps(props, state) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location || state.revalidation !== \"idle\" && props.revalidation === \"idle\") {\n return {\n error: props.error,\n location: props.location,\n revalidation: props.revalidation\n };\n }\n\n // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n return {\n error: props.error !== undefined ? props.error : state.error,\n location: state.location,\n revalidation: props.revalidation || state.revalidation\n };\n }\n componentDidCatch(error, errorInfo) {\n console.error(\"React Router caught the following error during render\", error, errorInfo);\n }\n render() {\n return this.state.error !== undefined ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: this.props.routeContext\n }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n value: this.state.error,\n children: this.props.component\n })) : this.props.children;\n }\n}\nfunction RenderedRoute(_ref) {\n let {\n routeContext,\n match,\n children\n } = _ref;\n let dataRouterContext = React.useContext(DataRouterContext);\n\n // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && (match.route.errorElement || match.route.ErrorBoundary)) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: routeContext\n }, children);\n}\nfunction _renderMatches(matches, parentMatches, dataRouterState, future) {\n var _dataRouterState;\n if (parentMatches === void 0) {\n parentMatches = [];\n }\n if (dataRouterState === void 0) {\n dataRouterState = null;\n }\n if (future === void 0) {\n future = null;\n }\n if (matches == null) {\n var _future;\n if (!dataRouterState) {\n return null;\n }\n if (dataRouterState.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches;\n } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) {\n // Don't bail if we're initializing with partial hydration and we have\n // router matches. That means we're actively running `patchRoutesOnNavigation`\n // so we should render down the partial matches to the appropriate\n // `HydrateFallback`. We only do this if `parentMatches` is empty so it\n // only impacts the root matches for `RouterProvider` and no descendant\n // ``\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n let renderedMatches = matches;\n\n // If we have data errors, trim matches to the highest error boundary\n let errors = (_dataRouterState = dataRouterState) == null ? void 0 : _dataRouterState.errors;\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]) !== undefined);\n !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, \"Could not find a matching route for errors on route IDs: \" + Object.keys(errors).join(\",\")) : UNSAFE_invariant(false) : void 0;\n renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n }\n\n // If we're in a partial hydration mode, detect if we need to render down to\n // a given HydrateFallback while we load the rest of the hydration data\n let renderFallback = false;\n let fallbackIndex = -1;\n if (dataRouterState && future && future.v7_partialHydration) {\n for (let i = 0; i < renderedMatches.length; i++) {\n let match = renderedMatches[i];\n // Track the deepest fallback up until the first route without data\n if (match.route.HydrateFallback || match.route.hydrateFallbackElement) {\n fallbackIndex = i;\n }\n if (match.route.id) {\n let {\n loaderData,\n errors\n } = dataRouterState;\n let needsToRunLoader = match.route.loader && loaderData[match.route.id] === undefined && (!errors || errors[match.route.id] === undefined);\n if (match.route.lazy || needsToRunLoader) {\n // We found the first route that's not ready to render (waiting on\n // lazy, or has a loader that hasn't run yet). Flag that we need to\n // render a fallback and render up until the appropriate fallback\n renderFallback = true;\n if (fallbackIndex >= 0) {\n renderedMatches = renderedMatches.slice(0, fallbackIndex + 1);\n } else {\n renderedMatches = [renderedMatches[0]];\n }\n break;\n }\n }\n }\n }\n return renderedMatches.reduceRight((outlet, match, index) => {\n // Only data routers handle errors/fallbacks\n let error;\n let shouldRenderHydrateFallback = false;\n let errorElement = null;\n let hydrateFallbackElement = null;\n if (dataRouterState) {\n error = errors && match.route.id ? errors[match.route.id] : undefined;\n errorElement = match.route.errorElement || defaultErrorElement;\n if (renderFallback) {\n if (fallbackIndex < 0 && index === 0) {\n warningOnce(\"route-fallback\", false, \"No `HydrateFallback` element provided to render during initial hydration\");\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = null;\n } else if (fallbackIndex === index) {\n shouldRenderHydrateFallback = true;\n hydrateFallbackElement = match.route.hydrateFallbackElement || null;\n }\n }\n }\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n let getChildren = () => {\n let children;\n if (error) {\n children = errorElement;\n } else if (shouldRenderHydrateFallback) {\n children = hydrateFallbackElement;\n } else if (match.route.Component) {\n // Note: This is a de-optimized path since React won't re-use the\n // ReactElement since it's identity changes with each new\n // React.createElement call. We keep this so folks can use\n // `` in `` but generally `Component`\n // usage is only advised in `RouterProvider` when we can convert it to\n // `element` ahead of time.\n children = /*#__PURE__*/React.createElement(match.route.Component, null);\n } else if (match.route.element) {\n children = match.route.element;\n } else {\n children = outlet;\n }\n return /*#__PURE__*/React.createElement(RenderedRoute, {\n match: match,\n routeContext: {\n outlet,\n matches,\n isDataRoute: dataRouterState != null\n },\n children: children\n });\n };\n // Only wrap in an error boundary within data router usages when we have an\n // ErrorBoundary/errorElement on this route. Otherwise let it bubble up to\n // an ancestor ErrorBoundary/errorElement\n return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n location: dataRouterState.location,\n revalidation: dataRouterState.revalidation,\n component: errorElement,\n error: error,\n children: getChildren(),\n routeContext: {\n outlet: null,\n matches,\n isDataRoute: true\n }\n }) : getChildren();\n }, null);\n}\nvar DataRouterHook = /*#__PURE__*/function (DataRouterHook) {\n DataRouterHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n DataRouterHook[\"UseNavigateStable\"] = \"useNavigate\";\n return DataRouterHook;\n}(DataRouterHook || {});\nvar DataRouterStateHook = /*#__PURE__*/function (DataRouterStateHook) {\n DataRouterStateHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n DataRouterStateHook[\"UseNavigateStable\"] = \"useNavigate\";\n DataRouterStateHook[\"UseRouteId\"] = \"useRouteId\";\n return DataRouterStateHook;\n}(DataRouterStateHook || {});\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.\";\n}\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return ctx;\n}\nfunction useDataRouterState(hookName) {\n let state = React.useContext(DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return state;\n}\nfunction useRouteContext(hookName) {\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, getDataRouterConsoleError(hookName)) : UNSAFE_invariant(false) : void 0;\n return route;\n}\n\n// Internal version with hookName-aware debugging\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? UNSAFE_invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : UNSAFE_invariant(false) : void 0;\n return thisRoute.route.id;\n}\n\n/**\n * Returns the ID for the nearest contextual route\n */\nfunction useRouteId() {\n return useCurrentRouteId(DataRouterStateHook.UseRouteId);\n}\n\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\nfunction useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return React.useMemo(() => ({\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation\n }), [dataRouterContext.router.revalidate, state.revalidation]);\n}\n\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\nfunction useMatches() {\n let {\n matches,\n loaderData\n } = useDataRouterState(DataRouterStateHook.UseMatches);\n return React.useMemo(() => matches.map(m => UNSAFE_convertRouteMatchToUiMatch(m, loaderData)), [matches, loaderData]);\n}\n\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\nfunction useLoaderData() {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n if (state.errors && state.errors[routeId] != null) {\n console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n return undefined;\n }\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the loaderData for the given routeId\n */\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n\n/**\n * Returns the action data for the nearest ancestor Route action\n */\nfunction useActionData() {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n return state.actionData ? state.actionData[routeId] : undefined;\n}\n\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * ErrorBoundary/errorElement to display a proper error message.\n */\nfunction useRouteError() {\n var _state$errors;\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);\n\n // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n if (error !== undefined) {\n return error;\n }\n\n // Otherwise look for errors from our data router state\n return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n\n/**\n * Returns the happy-path data from the nearest ancestor `` value\n */\nfunction useAsyncValue() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._data;\n}\n\n/**\n * Returns the error from the nearest ancestor `` value\n */\nfunction useAsyncError() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._error;\n}\nlet blockerId = 0;\n\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation. Mostly used to avoid\n * using half-filled form data. This does not handle hard-reloads or\n * cross-origin navigations.\n */\nfunction useBlocker(shouldBlock) {\n let {\n router,\n basename\n } = useDataRouterContext(DataRouterHook.UseBlocker);\n let state = useDataRouterState(DataRouterStateHook.UseBlocker);\n let [blockerKey, setBlockerKey] = React.useState(\"\");\n let blockerFunction = React.useCallback(arg => {\n if (typeof shouldBlock !== \"function\") {\n return !!shouldBlock;\n }\n if (basename === \"/\") {\n return shouldBlock(arg);\n }\n\n // If they provided us a function and we've got an active basename, strip\n // it from the locations we expose to the user to match the behavior of\n // useLocation\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = arg;\n return shouldBlock({\n currentLocation: _extends({}, currentLocation, {\n pathname: stripBasename(currentLocation.pathname, basename) || currentLocation.pathname\n }),\n nextLocation: _extends({}, nextLocation, {\n pathname: stripBasename(nextLocation.pathname, basename) || nextLocation.pathname\n }),\n historyAction\n });\n }, [basename, shouldBlock]);\n\n // This effect is in charge of blocker key assignment and deletion (which is\n // tightly coupled to the key)\n React.useEffect(() => {\n let key = String(++blockerId);\n setBlockerKey(key);\n return () => router.deleteBlocker(key);\n }, [router]);\n\n // This effect handles assigning the blockerFunction. This is to handle\n // unstable blocker function identities, and happens only after the prior\n // effect so we don't get an orphaned blockerFunction in the router with a\n // key of \"\". Until then we just have the IDLE_BLOCKER.\n React.useEffect(() => {\n if (blockerKey !== \"\") {\n router.getBlocker(blockerKey, blockerFunction);\n }\n }, [router, blockerKey, blockerFunction]);\n\n // Prefer the blocker from `state` not `router.state` since DataRouterContext\n // is memoized so this ensures we update on blocker state updates\n return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : IDLE_BLOCKER;\n}\n\n/**\n * Stable version of useNavigate that is used when we are in the context of\n * a RouterProvider.\n */\nfunction useNavigateStable() {\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseNavigateStable);\n let id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable);\n let activeRef = React.useRef(false);\n useIsomorphicLayoutEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(activeRef.current, navigateEffectWarning) : void 0;\n\n // Short circuit here since if this happens on first render the navigate\n // is useless because we haven't wired up our router subscriber yet\n if (!activeRef.current) return;\n if (typeof to === \"number\") {\n router.navigate(to);\n } else {\n router.navigate(to, _extends({\n fromRouteId: id\n }, options));\n }\n }, [router, id]);\n return navigate;\n}\nconst alreadyWarned$1 = {};\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned$1[key]) {\n alreadyWarned$1[key] = true;\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(false, message) : void 0;\n }\n}\n\nconst alreadyWarned = {};\nfunction warnOnce(key, message) {\n if (process.env.NODE_ENV !== \"production\" && !alreadyWarned[message]) {\n alreadyWarned[message] = true;\n console.warn(message);\n }\n}\nconst logDeprecation = (flag, msg, link) => warnOnce(flag, \"\\u26A0\\uFE0F React Router Future Flag Warning: \" + msg + \". \" + (\"You can use the `\" + flag + \"` future flag to opt-in early. \") + (\"For more information, see \" + link + \".\"));\nfunction logV6DeprecationWarnings(renderFuture, routerFuture) {\n if ((renderFuture == null ? void 0 : renderFuture.v7_startTransition) === undefined) {\n logDeprecation(\"v7_startTransition\", \"React Router will begin wrapping state updates in `React.startTransition` in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_starttransition\");\n }\n if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === undefined && (!routerFuture || !routerFuture.v7_relativeSplatPath)) {\n logDeprecation(\"v7_relativeSplatPath\", \"Relative route resolution within Splat routes is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath\");\n }\n if (routerFuture) {\n if (routerFuture.v7_fetcherPersist === undefined) {\n logDeprecation(\"v7_fetcherPersist\", \"The persistence behavior of fetchers is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist\");\n }\n if (routerFuture.v7_normalizeFormMethod === undefined) {\n logDeprecation(\"v7_normalizeFormMethod\", \"Casing of `formMethod` fields is being normalized to uppercase in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod\");\n }\n if (routerFuture.v7_partialHydration === undefined) {\n logDeprecation(\"v7_partialHydration\", \"`RouterProvider` hydration behavior is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_partialhydration\");\n }\n if (routerFuture.v7_skipActionErrorRevalidation === undefined) {\n logDeprecation(\"v7_skipActionErrorRevalidation\", \"The revalidation behavior after 4xx/5xx `action` responses is changing in v7\", \"https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation\");\n }\n }\n}\n\n/**\n Webpack + React 17 fails to compile on any of the following because webpack\n complains that `startTransition` doesn't exist in `React`:\n * import { startTransition } from \"react\"\n * import * as React from from \"react\";\n \"startTransition\" in React ? React.startTransition(() => setState()) : setState()\n * import * as React from from \"react\";\n \"startTransition\" in React ? React[\"startTransition\"](() => setState()) : setState()\n\n Moving it to a constant such as the following solves the Webpack/React 17 issue:\n * import * as React from from \"react\";\n const START_TRANSITION = \"startTransition\";\n START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState()\n\n However, that introduces webpack/terser minification issues in production builds\n in React 18 where minification/obfuscation ends up removing the call of\n React.startTransition entirely from the first half of the ternary. Grabbing\n this exported reference once up front resolves that issue.\n\n See https://github.com/remix-run/react-router/issues/10579\n*/\nconst START_TRANSITION = \"startTransition\";\nconst startTransitionImpl = React[START_TRANSITION];\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router,\n future\n } = _ref;\n let [state, setStateImpl] = React.useState(router.state);\n let {\n v7_startTransition\n } = future || {};\n let setState = React.useCallback(newState => {\n if (v7_startTransition && startTransitionImpl) {\n startTransitionImpl(() => setStateImpl(newState));\n } else {\n setStateImpl(newState);\n }\n }, [setStateImpl, v7_startTransition]);\n\n // Need to use a layout effect here so we are subscribed early enough to\n // pick up on any render-driven redirects/navigations (useEffect/)\n React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);\n React.useEffect(() => {\n process.env.NODE_ENV !== \"production\" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, \"`` is deprecated when using \" + \"`v7_partialHydration`, use a `HydrateFallback` component instead\") : void 0;\n // Only log this once on initial mount\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\";\n let dataRouterContext = React.useMemo(() => ({\n router,\n navigator,\n static: false,\n basename\n }), [router, navigator, basename]);\n React.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]);\n\n // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a