1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esm-CKhyEPqg.js","assets/rolldown-runtime-kRBrHsR4.js","assets/react-Du8R2vNm.js","assets/testimonials-BgmKmI5T.js","assets/jsx-runtime-Dgr2IFzZ.js","assets/compiler-runtime-BerNLI5p.js","assets/button-zY5WQSwJ.js","assets/useRenderElement-B_YhN0o7.js","assets/useButton-HNyNE-1y.js","assets/utils-SGDdDKov.js","assets/dist-BCrI8cGL.js","assets/createLucideIcon-70pKtyTU.js","assets/react-CkxKRHz7.js","assets/motion-D8Rp7RoL.js","assets/kevin-smokler-CwmckgwP.js","assets/troy-beebe-C7-mOxny.js","assets/secondary-hero-bg-1920w-WDOVxorG.js","assets/marketing-hero-DAOGzJVi.js","assets/aaron-endre-C7vjtntC.js","assets/testimonial-card-HLn3xaKO.js","assets/termsofservice-q0qw1kAl.js","assets/legal-page-D5TQeNzF.js","assets/support-T7iIdOqX.js","assets/link-94cF4E02.js","assets/react-dom-BycroCBV.js","assets/useStore-Cn-Fikvy.js","assets/with-selector-dIRgomGD.js","assets/useRouter-BQjom9jp.js","assets/external-links-PgsCp2XM.js","assets/support-dialog-BbqReidX.js","assets/sonner-D4pu0wR6.js","assets/info-BV5832W4.js","assets/dialog-DtS_zIQn.js","assets/x-Dsyq5QJD.js","assets/DialogTrigger-BSLj3UHp.js","assets/useTransitionStatus-Da_c13sf.js","assets/createBaseUIEventDetails-Cg4IBHJH.js","assets/popupTriggerMap-tOhTRze_.js","assets/useTimeout-CQUrVa56.js","assets/visuallyHidden-BlU9rZsU.js","assets/owner-CkELbVFb.js","assets/composite-DXqTQBl1.js","assets/shadowDom-DpeYv2q6.js","assets/useValueAsRef-D-To6NHL.js","assets/useOpenInteractionType-Cpw9NVcX.js","assets/useValueChanged-ClHTg2Gx.js","assets/store-HLMD4N6h.js","assets/composite-zTgZnrIK.js","assets/inertValue-CYRASL2X.js","assets/input-8D84R2Vj.js","assets/useLabelableId-DrFWOR0d.js","assets/faq-section-V2n0ouh1.js","assets/faqs-r3fGZASx.js","assets/plans-CrpIs8zR.js","assets/billing.constants-CWok7Orq.js","assets/accordion-D9-maX1g.js","assets/DirectionContext-CaIVrlRb.js","assets/useCompositeListItem-BboqMcEK.js","assets/useCollapsiblePanel-BZ2ceUAo.js","assets/student-BOzWWSNm.js","assets/offer-landing-oKhgtzFh.js","assets/hero-BbMbpQZ8.js","assets/play-BapfRe-H.js","assets/social-proof-B6XQ1ENn.js","assets/product-showcase-ctqHtUGy.js","assets/feature-section-BgzbbO2x.js","assets/dist-CJUT-hnQ.js","assets/support-blob-CgpbXii9.js","assets/final-cta-hawqXz16.js","assets/mobile-KrLqGQNz.js","assets/testimonials-DCVGzVaL.js","assets/use-case-detail-BQAjeVMF.js","assets/security-CyLAil7v.js","assets/database-DLYdcFtt.js","assets/lock-wqxrSYd1.js","assets/security-CBXKyGy8.js","assets/resources-DgIeDse5.js","assets/product-overview-CrJZdK44.js","assets/globe-BDRM0SzB.js","assets/privacypolicy-CnZCBbaA.js","assets/pricing-BRRjKtOF.js","assets/sparkles-CPEJGH-4.js","assets/briefcase-business-BNlyw9CP.js","assets/building-2-DSwWtvMy.js","assets/tooltip-G6nUi9Qk.js","assets/usePositioner-BNxRCxoz.js","assets/segmented-tabs-DTKrCgkZ.js","assets/preboard-BA-kfSdF.js","assets/useNavigate-C0cokOOi.js","assets/radio-group-CbYzMINX.js","assets/serializeValue-WtHBja8j.js","assets/CompositeItem-Dczw0y4f.js","assets/useCompositeItem-WRIF9Ewm.js","assets/CompositeRoot-hgS_M-mX.js","assets/isElementDisabled-udiZacsL.js","assets/mobile-CisH1BDl.js","assets/store-buttons-xZRpRnZn.js","assets/app-urls-C0tOiUnt.js","assets/mba-B3Ph35sP.js","assets/logout-Ceak76LZ.js","assets/useAuth-BBIT6XoN.js","assets/root-provider-BXMX1NN5.js","assets/useSDK-C4WR6ayj.js","assets/app-version-WZ-kDWAv.js","assets/renderer-ONRvuntJ.js","assets/coerce-BELqCRtg.js","assets/differenceInCalendarDays-DQCzWYG3.js","assets/social-BYMjgjez.js","assets/firebase-Dr6OnVGh.js","assets/preload-helper-Dl2XlF2J.js","assets/useMutation-CZ08y2cI.js","assets/collections-DEzfyqeN.js","assets/query-DSGnpvvA.js","assets/oauth-credentials.collection-B2qyqhCG.js","assets/user.collection-Bm0VOopC.js","assets/useDeviceSync-BbA-Rw2b.js","assets/desktop-auth-CvCXQ-ca.js","assets/auth-card-656MVYDu.js","assets/watercolor-DAZI092d.js","assets/linkHandler-Cot7FfH4.js","assets/jarvis-DsEu2TPa.js","assets/privacy-section-CZc1AOdf.js","assets/integrations-_7GzeSSQ.js","assets/desktop-voice-panel-D5xWTwPP.js","assets/voice-dock-DD4HnUF0.js","assets/voice-store-V5boFnQF.js","assets/useContactSearch-CKKGxLkD.js","assets/useQuery-D7ePxfCc.js","assets/useLiveQuery-DPy5OowB.js","assets/rotate-ccw-DAAc8UOz.js","assets/desktop-login-start-DBTR7kYt.js","assets/desktop-auth-layout-BoLH9Ftc.js","assets/desktop-traffic-lights-DG0TDpD_.js","assets/desktop-window-controls-HEInwN9j.js","assets/desktop-login-redirect-CVAN0HYX.js","assets/desktop-DHK6S_c0.js","assets/SiApple-DsGLatra.js","assets/browser-extension-C63ixyKl.js","assets/app-CQvrMpZT.js","assets/app-gate-Bs6_qhXa.js","assets/redirect-BdaT9UAE.js","assets/workspace-routes-CgPxcBfE.js","assets/workspace-document-DVenZetQ.js","assets/onboarding-experiment-gate-C36FuCtf.js","assets/pending-referral-BSksUos_.js","assets/paywall-exempt-route-Bw-Wzhb-.js","assets/ambassador-BiWl6Cg8.js","assets/pen-line-DWO2C4Dr.js","assets/briefcase-C6DzFgdA.js","assets/ai-agents-Bd-BInvl.js","assets/about-DjNuxxhL.js","assets/clock-BH_4rftm.js","assets/routes-DK1uI7Y1.js","assets/util-6R0Nxyvs.js","assets/dub-DRdMicLD.js","assets/guides.index-B4mMYgtk.js","assets/resources-section-Do6nm-lG.js","assets/arrow-right-BN8z0MDN.js","assets/image-DTuUVg0k.js","assets/LayoutGroup-wCH7b0xs.js","assets/article-card-Bymx0r2t.js","assets/blog.index-m6QA65OJ.js","assets/pagination-vKNsNXkx.js","assets/chevron-left-Si4_i8XS.js","assets/chevron-right-BWHiGdkI.js","assets/use-cases._slug-ByACh3wt.js","assets/unsubscribe._type-r1hFg9g6.js","assets/shared._token-C_9dx0NQ.js","assets/shared._token-D2OaNSqI.js","assets/unlink-C1eHKoJd.js","assets/guides._slug-DVgnvnjk.js","assets/related-articles-1eDVXmde.js","assets/blog._slug-QXpCz0m7.js","assets/auth.open-app-Crwr78u8.js","assets/app-handoff-ByeyZFZA.js","assets/mobile-app-DkjNzlWZ.js","assets/auth.desktop-login-D-FyxZ6u.js","assets/resources.index-BHy7es4C.js","assets/integrations.index-mxdtk-dX.js","assets/request-cta-UwYpYxRR.js","assets/integrations._slug-DmzTJE-z.js","assets/app.subscribe-COTc1W91.js","assets/arrow-left-D9Hhv1yz.js","assets/select-_9mgnuuC.js","assets/getPseudoElementBounds-D1gBY9Ah.js","assets/useAnchoredPopupScrollLock-BKUGJcgd.js","assets/ToolbarRootContext-Bu-gD6E9.js","assets/gift-Ca-zD8_6.js","assets/addDays-DXsFCPu_.js","assets/badge-QSO_xU98.js","assets/switch-CbBVxdOk.js","assets/use-checkout-session-B3eftRDC.js","assets/plans-4UqB8UFS.js","assets/watercolor-_nVPwBRD.js","assets/account-footer-NNUi3qWZ.js","assets/payment-step-31zpbryk.js","assets/tag-CB1Yr4Tf.js","assets/stripe-DEABoqLR.js","assets/app.settings-Bb32TLH4.js","assets/open-tabs-bar-Cn2fLOa5.js","assets/useSearch-BJU1OPEU.js","assets/useMatch-CPj79t8p.js","assets/matchContext-DtRGLu-S.js","assets/workspace-switcher-RcuT-mF1.js","assets/dropdown-menu-BN0SvPyj.js","assets/useTriggerFocusGuards-CGNtyPha.js","assets/Separator-LV67USXf.js","assets/alarm-clock-DMUtsFm4.js","assets/archive-BN74Wz5e.js","assets/audio-lines-CI5qFXdj.js","assets/cake-Dg5CDDzf.js","assets/chart-bar-increasing-CN_LbQqw.js","assets/dice-5-BpIj21Lg.js","assets/download-D2pmGJ7M.js","assets/folder-plus-COdhlZWu.js","assets/folder-_cBN8cCt.js","assets/git-merge-jg3Kv3d_.js","assets/map-pinned-B04fKoFb.js","assets/map-DlfyQbQa.js","assets/add-group-dialog-COyBG2H5.js","assets/users-cPbwfqSU.js","assets/textarea-wfSEwfKr.js","assets/useSelector-DQALVzrj.js","assets/command-C5HBd7nN.js","assets/search-DqbT7hu9.js","assets/popover-CSN_VSBd.js","assets/forms-Cy8ffBkI.js","assets/kbd-DaxaPg8c.js","assets/useGroups-DSa9SZ5C.js","assets/group-emoji-picker-C6HNtWBa.js","assets/add-pill-BCI3ZCmj.js","assets/monitor-TxlYCGA4.js","assets/refresh-cw-B7APq1El.js","assets/settings-dCi-lHvo.js","assets/smartphone-5gsUVB2Y.js","assets/group-actions-menu-BXsENoto.js","assets/ellipsis-vertical-Csn3MEJY.js","assets/pencil-TlGrISHO.js","assets/star-lCAuh2f2.js","assets/trash-2-Dap2kQGK.js","assets/label-DIaLIYcq.js","assets/alert-dialog-91KxSP2i.js","assets/useViews-DkH6p9DV.js","assets/useFavorites-DAWpRXpk.js","assets/user-plus-CFztNdXw.js","assets/vector-square-_bTzJtZp.js","assets/contact-avatar-CINRobDA.js","assets/contact-helpers-CwmK5zwf.js","assets/mention-label-BLtBCDkU.js","assets/text--q03_3Li.js","assets/contact-name-CQWih3oQ.js","assets/global-dialogs-context-D4dUKuUr.js","assets/command-bar-context-CXeggs4E.js","assets/react-Df0i68i6.js","assets/sortable-CXkVGOdA.js","assets/link-target-Bvfluw_b.js","assets/collapsible-EDQ8yuQU.js","assets/copilot-mark-DGuFKh13.js","assets/settings-nav-DKw4Zf91.js","assets/app.reactivation-DUiSk1kF.js","assets/app.plans-wuvK_wou.js","assets/useBilling-Bj8zceBk.js","assets/useUser-Bqz5G5K5.js","assets/app.onboarding-CNN1Zj_6.js","assets/onboarding-experiment-context-BtspLZE9.js","assets/app.extension-handler-C4qUgLZG.js","assets/useDexExtension-Cp47Gyvr.js","assets/app.auth-Dn_yPAoo.js","assets/app._shell-DE3wcP2X.js","assets/useReminders-Dwl6YpDZ.js","assets/useInfiniteQuery-BrspnPTP.js","assets/right-panel-store-DliNgoyu.js","assets/app-right-panel-CGaRlOav.js","assets/blog.tag._tag-II4Mfy53.js","assets/blog.page._page-Bm5Ttzj0.js","assets/blog.author._slug-D2ircnu0.js","assets/app.settings.index-DFpyVSJ2.js","assets/app.settings.zapier-C0iLwBgN.js","assets/useSubscription-D_COY05Q.js","assets/setup-steps-u8_ysn08.js","assets/settings-page-BphwjjKU.js","assets/settings-card-DHM7QTeB.js","assets/integration-row-CS9SHvf3.js","assets/app.settings.text-messaging-mxwvM9uG.js","assets/message-square-Ckk3WKei.js","assets/phone-number-BvupZqWb.js","assets/country-select-PJkgXhRF.js","assets/useSmsSettings-BSDGOcxF.js","assets/input-otp-Dj93p644.js","assets/usePhoneVerification-D0JH-zVe.js","assets/useWorkflowSettings-Czhu4bJZ.js","assets/section-card-DvaHVrOk.js","assets/settings-toggle-CfIoYZLe.js","assets/timezone-select-1uCYs3C-.js","assets/app.settings.team-5owPQ91x.js","assets/app.settings.tags-C_GQt0kS.js","assets/app.settings.sync-integrations-ngzlVfkS.js","assets/mail-mp0WfXww.js","assets/phone-CWrwH9fV.js","assets/dates-CI8Xnvj0.js","assets/formatDistanceStrict--bdNj2vo.js","assets/constructNow-b7UCcUBX.js","assets/contact-identity-CLb_Yda6.js","assets/esm-Bgz-sq-_.js","assets/useSyncIntegrations-GKjYMLiR.js","assets/useLinkedInSync-Bwaq8bT6.js","assets/useProfessionalGate-XfCBS2Ms.js","assets/useCalendarWriteAccess-i_nQvwr8.js","assets/useGrantCalendarAccess-CfP20UJ8.js","assets/useGranolaConnection-WjqRdRz2.js","assets/connect-on-mobile-dialog-DOQqctLS.js","assets/social-icons-m7gDsFys.js","assets/imessage-sync-dialog-C7vjm456.js","assets/sync-success-panel-CMJMVtcn.js","assets/onboarding-browser-CIcqsgtO.js","assets/two-way-sync-dialog-DL6ilUGS.js","assets/tabs-DEcmoQor.js","assets/instagram-sync-dialog-BaJ7eU7p.js","assets/linkedin-device-sync-dialog-C9iPEU3o.js","assets/connect-app-tile-DYL8IG6A.js","assets/facebook-sync-dialog-C5jbQYcU.js","assets/whatsapp-sync-dialog-D9nyA7l5.js","assets/useWhatsAppPairing-BVHcEwc_.js","assets/oauth.schemas-CqXv_SOc.js","assets/import-dialog-states-BNbCYKQG.js","assets/app.settings.social-links-C7t8lf5e.js","assets/app.settings.profile-DKT80QcM.js","assets/app.settings.notifications-YjwTzHwU.js","assets/connect-linkedin-mobile-dialog-B8Co11tp.js","assets/useNotificationPreferences-BkuMvC7_.js","assets/app.settings.note-types-C5UacwNx.js","assets/app.settings.import-export-BqZK
1hlUc.js","assets/esm-jNHa0rWU.js","assets/useCustomFields-CSB02ulP.js","assets/useExports-4B6ILoHq.js","assets/keep-in-touch-Bo4ZSYcD.js","assets/addMonths-Dnfurhwq.js","assets/useContactRelations-C0f7yUxw.js","assets/birthday-month-day-BZ16slcx.js","assets/custom-fields-B1gUimC_.js","assets/organize-with-ai-dialog-vbtu4sr8.js","assets/copilot-handoff-B_4R6sNn.js","assets/toggle-group-prUBPKtP.js","assets/app.settings.general-CDna1SwQ.js","assets/useMeetingTypes-bg2Z8WsF.js","assets/email-client-link-DVt6KDGm.js","assets/app.settings.data-DlGJyIDx.js","assets/arrow-down-up-BDS0_3lO.js","assets/grip-vertical-CzYwmkOo.js","assets/SiInstagram-CtYrXCu6.js","assets/useTags-DorNzwHS.js","assets/useSocialSettings-E9MM0rw4.js","assets/useCustomFieldDefinitions-ChLiH0DU.js","assets/useScrollMargin-B_D_NgS2.js","assets/custom-field-form-DB1rmWQU.js","assets/app.settings.custom-fields-Cut2D5_E.js","assets/app.settings.billing-NBSmAM5L.js","assets/circle-check-big-CKKL13ai.js","assets/zap-D-9RmvTL.js","assets/app.settings.automation-DRRTPf8S.js","assets/app.settings.api-Xq_-iySe.js","assets/blocks-zKAu2bg8.js","assets/key-round-ov1ucn0g.js","assets/network-DLgqs_gS.js","assets/mcp-setup-dialog-Bbp6beHl.js","assets/app.settings._section--68I2Flp.js","assets/app.onboarding.resurface-CUxnq27R.js","assets/resurface-card-Cng3mbbJ.js","assets/contact-socials-DfOrpkbu.js","assets/useResurfaceReminders-BDiXIOMG.js","assets/useOnboarding-B-AmblNZ.js","assets/onboarding-loading--QiVFFvl.js","assets/app.onboarding.phone-6FG59Gv7.js","assets/app.onboarding.identity-CSaEcBg4.js","assets/linkedin-slug-B2Fz2Z6W.js","assets/app.onboarding.extension-CqC73YSl.js","assets/app.onboarding.everywhere-CU9Zlhac.js","assets/app.onboarding.copilot-D31eMTqy.js","assets/composer-waves-DT6Ei0lv.js","assets/app.onboarding.contacts-Drbt3ZHn.js","assets/app.onboarding.connected-BRYzvNNU.js","assets/useConnectAccounts-BKSOxSxS.js","assets/app.onboarding.connect-whatsapp-D8J_nWqu.js","assets/connect-shell-DzRiIxAf.js","assets/app.onboarding.connect-mcp-BTvKNi_L.js","assets/workflow-Du28FvV8.js","assets/app.onboarding.connect-linkedin-D5ZWDe9y.js","assets/app.onboarding.connect-instagram-DZIIYtbr.js","assets/app.onboarding.connect-imessage-J-qlPJA9.js","assets/app.onboarding.connect-email-U_xDsYVi.js","assets/app.onboarding.connect-D-NkO2uZ.js","assets/app.onboarding.about-CAVysPxS.js","assets/app.auth.sign-up-BaU5PevH.js","assets/hard-navigate-BbQXPXSr.js","assets/auth-collapse-C1_JKpbF.js","assets/post-auth-landing-Dtg3R3TV.js","assets/app.auth.sign-in-g7DNFRKF.js","assets/route-DyyOPcAk.js","assets/root-Bvm3B4gi.js","assets/useParams-Cn2O5j8b.js","assets/app.auth.mcp-authorize-B90fxjGB.js","assets/separator-D3khYZNR.js","assets/mcp-oauth-DC44rkSs.js","assets/app.auth.forgot-password-B7FEIp9F.js","assets/useLocation-CpGeMzmR.js","assets/app.auth.device-code-BHYO_lia.js","assets/app.auth.check-email-CZzDwNLR.js","assets/auth-link-errors-DAqoQPPR.js","assets/app.auth.action-BChhHvhn.js","assets/app._shell.index-DDB0LJZR.js","assets/queryOptions-CNSijTzW.js","assets/arrow-up-right-w9zNnqQo.js","assets/row-link-overlay-DgZvZD7T.js","assets/link-B9hEvWdo.js","assets/rich-text-emit-loop-DU6RE-tO.js","assets/safe-html-BOrT4CcM.js","assets/add-reminder-dialog-Bnzocp37.js","assets/calendar-B-HRV-6s.js","assets/reminder-date-D9qUykRQ.js","assets/typeable-date-picker-DqtAfqI9.js","assets/useFocusPopupOnOpen-Dzspz8SA.js","assets/network-update-modal-CgBQy6no.js","assets/note-contact-links-k_OhCBco.js","assets/useOpenContactDetail-CSZENnsm.js","assets/copilot-composer-OpelQ0C5.js","assets/useVoiceRecording-Cq8q00vW.js","assets/use-data-table-keyboard-nav-CYDl4MdY.js","assets/useKeepInTouch-B_GVBvA7.js","assets/useContactById-BK7SogrA.js","assets/row-action-button-CtL9xca7.js","assets/google-calendar-v2-BKARB643.js","assets/calendar-compose-url-DTT9s086.js","assets/useBirthdays-ZKlx5-ig.js","assets/section-info-tooltip-BGstY8HY.js","assets/section-cursor-C93ZG0SS.js","assets/kit-snooze-action-CnKeMhHJ.js","assets/date-presets-bMyfSRsT.js","assets/reminder-contact-avatars-BRX0CRYM.js","assets/useRecentContacts-UDcTLSLL.js","assets/app._shell.timeline-ubVCgjNP.js","assets/funnel-CU5T97Cf.js","assets/timeline-filters-popover-D1l3K05g.js","assets/timeline-entry-icon-C6sMgb-l.js","assets/html-to-text-C0wREtXH.js","assets/contact-chip-BFcq8FeW.js","assets/shortcut-tooltip-DlBeDUXI.js","assets/empty-state-3syxmwa9.js","assets/expanding-search-f43-YY09.js","assets/app._shell.search-BDc0-MBD.js","assets/selection-toolbar-DEftWShP.js","assets/bulk-archive-delete-pG9Dg-KK.js","assets/send-HdUthTQ-.js","assets/strings-SR49XKUp.js","assets/isObject-DBzxA7sQ.js","assets/rich-text-edit-popover-BgN54SKX.js","assets/add-groups-popover-DL8gefwh.js","assets/group-tree-iGAvUT8D.js","assets/useContactCustomFields-maRdgumI.js","assets/contact-picker-list-CJPMXOGa.js","assets/contact-identity-BvV3Gdll.js","assets/merge-contacts-CAjSXeML.js","assets/bulk-archive-delete-UultBQg5.css","assets/priority-icon-DIYFsFRW.js","assets/bulk-actions-nN_1y2E2.js","assets/useBulkContactActions-BrdwK5EE.js","assets/notes-search-th3pfVFC.js","assets/contacts-list-view-DXNYn4o6.js","assets/eye-off-C4eUJTc0.js","assets/app._shell.reminders-DlGCGH7C.js","assets/app._shell.refer-Ch7mc8Pf.js","assets/app._shell.priority-map-BjCNbjvv.js","assets/detail-right-panel-Dgk57onx.js","assets/earth-pfq47nDE.js","assets/custom-field-fields-CBaSSEOU.js","assets/useIsTruncated-uEixNjls.js","assets/groups-chips-Dwh3mtmW.js","assets/places-autocomplete-q75NZrVo.js","assets/contact-glance-sections-BzfWWwbQ.js","assets/net
1work-graph-BZue-UNL.js","assets/use-group-filter-CQRQ7MSj.js","assets/canvas-colors-CTWcCaYA.js","assets/priority-map-colors-Bbg_Vp0H.js","assets/ego-pulse-Cw7Yv0i7.js","assets/app._shell.network-D6-V53Hb.js","assets/app._shell.merge-and-fix-Z1pfBBPs.js","assets/framed-card-Cp-HpdHR.js","assets/app._shell.map-DtecuZLO.js","assets/contacts-map-view-CPB_PRo0.js","assets/useViewMembership-Cr7rH4iR.js","assets/sort-options-V857J8wp.js","assets/app._shell.locations-C5LofOp8.js","assets/map-pin-CwiGMLMJ.js","assets/add-to-location-dialog-BZiEdmKA.js","assets/app._shell.keep-in-touch-BoHoTExr.js","assets/eye-BgDFmE7V.js","assets/useDragScroll-uGWfVQ9A.js","assets/kit-contact-identity-BDCgitY6.js","assets/app._shell.import-Czs-bI3j.js","assets/app._shell.game-D3ZOqKu1.js","assets/app._shell.copilot-B5n8T69D.js","assets/sliders-horizontal-DTnzYogJ.js","assets/app._shell.contacts-C4JCZ5BI.js","assets/contacts-page-DMMWCcnd.js","assets/add-contacts-to-group-dialog-CNdiB4DK.js","assets/sort-menu-Dqjikp4-.js","assets/app._shell.birthdays-DAxlYa38.js","assets/app._shell.archive-9eWHyp-y.js","assets/app._shell.view._viewId-DHzHbiQP.js","assets/app._shell.tag._tagId-CdOhZo9-.js","assets/app._shell.location._locationName-C0LIISW2.js","assets/app._shell.group._groupId-Kk4sZwss.js","assets/app._shell.network.index-28LUVIw0.js","assets/manage-groups-dialog-Cmm1yHia.js","assets/ungrouped-tray-DLeRLEAX.js","assets/network-contact-card-BPlfEhLq.js","assets/app._shell.network.related-CXpn7nzK.js","assets/app._shell.network.insights-B6kmnKer.js","assets/app._shell.network.companies-lHzb8Y_t.js","assets/app.auth.referral._kind._id-DSXVcb69.js","assets/instrument.client-BPv1_iSV.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`v5.20260924.1202-production.4880d64`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`104981ff-3cec-4fe1-ad01-36631e6af8ad`,e._sentryDebugIdIdentifier=`sentry-dbid-104981ff-3cec-4fe1-ad01-36631e6af8ad`)}catch{}})();import{a as e,r as t,t as n}from"./rolldown-runtime-kRBrHsR4.js";import{t as r}from"./react-Du8R2vNm.js";import{t as i}from"./react-dom-BycroCBV.js";import{A as a,C as o,D as s,E as c,F as l,I as u,M as d,N as f,O as p,P as m,S as h,T as g,_,a as v,b as y,c as b,d as x,g as S,h as C,i as w,j as T,k as E,m as D,n as O,p as k,r as A,s as j,t as M,u as ee,v as te,w as N,x as P,y as ne}from"./useStore-Cn-Fikvy.js";import{n as F,r as re,t as ie}from"./root-Bvm3B4gi.js";import{n as I,r as L,t as R}from"./redirect-BdaT9UAE.js";import{t as ae}from"./link-94cF4E02.js";import{n as oe,r as se,t as ce}from"./route-DyyOPcAk.js";import{n as le,o as ue,r as de,s as fe,t as pe}from"./useRouter-BQjom9jp.js";import{t as me}from"./jsx-runtime-Dgr2IFzZ.js";import{n as he}from"./matchContext-DtRGLu-S.js";import{n as ge}from"./useMatch-CPj79t8p.js";import{_ as _e,f as ve,n as ye,r as be}from"./root-provider-BXMX1NN5.js";import{t as xe}from"./compiler-runtime-BerNLI5p.js";import{t as Se}from"./renderer-ONRvuntJ.js";import{a as Ce,i as we,n as Te,r as Ee,t as De}from"./consent-Bmm02nKA.js";import{a as Oe,i as ke,n as Ae,o as je,r as Me,s as Ne,t as Pe}from"./util-6R0Nxyvs.js";import{a as Fe,i as Ie,t as Le}from"./dub-DRdMicLD.js";import{t as Re}from"./app-version-WZ-kDWAv.js";import{n as z,t as B}from"./preload-helper-Dl2XlF2J.js";import{C as ze,a as Be,c as Ve,d as He,f as Ue,i as We,p as Ge,s as Ke,t as qe,u as Je}from"./useRenderElement-B_YhN0o7.js";import{t as Ye}from"./useButton-HNyNE-1y.js";import{n as Xe,r as Ze,t as Qe}from"./button-zY5WQSwJ.js";import{t as $e}from"./utils-SGDdDKov.js";import{t as et}from"./createLucideIcon-70pKtyTU.js";import{t as tt}from"./earth-pfq47nDE.js";import{t as nt}from"./blocks-zKAu2bg8.js";import{t as rt}from"./download-D2pmGJ7M.js";import{t as it}from"./file-text-B7y8KpFr.js";import{t as at}from"./globe-BDRM0SzB.js";import{t as ot}from"./mail-mp0WfXww.js";import{t as st}from"./phone-CWrwH9fV.js";import{t as ct}from"./play-BapfRe-H.js";import{t as lt}from"./refresh-cw-B7APq1El.js";import{t as ut}
vendor: 16,730 bytes, lines 2-9
2from"./workflow-Du28FvV8.js";import{t as dt}from"./zap-D-9RmvTL.js";import{t as ft}from"./x-Dsyq5QJD.js";import{n as pt,t as mt}from"./SiInstagram-CtYrXCu6.js";import{i as ht,n as gt}from"./app-urls-C0tOiUnt.js";import{D as _t,E as vt,O as yt,T as bt,a as xt,i as St,n as Ct,o as wt,r as Tt,t as V,u as Et}from"./react-CkxKRHz7.js";import{n as Dt}from"./motion-D8Rp7RoL.js";import{a as Ot,i as kt,o as At,r as jt,t as Mt}from"./seo-Dbq1frYd.js";import{n as Nt,t as Pt}from"./external-links-PgsCp2XM.js";import{a as Ft,i as It,l as Lt,n as Rt,t as zt}from"./billing.constants-CWok7Orq.js";import{a as Bt,i as Vt,t as Ht}from"./plans-CrpIs8zR.js";import{t as Ut}from"./faqs-r3fGZASx.js";import{r as Wt,t as Gt}from"./security-CBXKyGy8.js";import{S as Kt,i as qt,n as Jt,r as Yt,s as Xt,v as Zt,y as Qt}from"./coerce-BELqCRtg.js";import{a as $t,n as en,t as tn}from"./useTransitionStatus-Da_c13sf.js";import{n as nn}from"./useTimeout-CQUrVa56.js";import{n as rn,t as an}from"./visuallyHidden-BlU9rZsU.js";import{f as on,t as sn,y as cn}from"./createBaseUIEventDetails-Cg4IBHJH.js";import{t as ln}from"./useValueChanged-ClHTg2Gx.js";import{n as un}from"./useSDK-C4WR6ayj.js";import{o as dn,r as fn}from"./social-BYMjgjez.js";import{n as pn,r as mn,t as hn}from"./kevin-smokler-CwmckgwP.js";import{n as gn,t as _n}from"./troy-beebe-C7-mOxny.js";import{a as vn,i as yn,o as bn,s as xn,t as Sn}from"./social-proof-B6XQ1ENn.js";import{a as Cn,n as wn,r as Tn}from"./tooltip-G6nUi9Qk.js";import{c as En,r as Dn,s as On,t as kn}from"./dialog-DtS_zIQn.js";import{c as An,i as jn}from"./dates-CI8Xnvj0.js";import{r as Mn}from"./contact-identity-CLb_Yda6.js";import{t as Nn}from"./badge-QSO_xU98.js";import{a as Pn,c as Fn,l as In,n as Ln,o as Rn,r as zn,s as Bn,t as Vn}from"./social-icons-m7gDsFys.js";import{t as Hn}from"./html-to-text-C0wREtXH.js";import{n as Un,t as Wn}from"./checkout-offers-CQPe5Lgw.js";var Gn=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Kn=n(((e,t)=>{t.exports=Gn()})),qn=n((e=>{var t=Kn(),n=r(),a=i();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.memo_cache_sentinel`),A=Symbol.iterator;function j(e){return typeof e!=`object`||!e?null:(e=A&&e[A]||e[`@@iterator`],typeof e==`function`?e:null)}var M=Symbol.for(`react.client.reference`);function ee(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===M?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?ee(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var te=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},F=[],re=-1;function ie(e){return{current:e}}function I(e){0>re||(e.current=F[re],F[re]=null,re--)}function L(e,t){re++,F[re]=e.current,e.current=t}var R=ie(null),ae=ie(null),oe=ie(null),se=ie(null);function ce(e,t){switch(L(oe,t),L(ae,e),L(R,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jd(t),e=Yd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}I(R),L(R,e)}function le(){I(R),I(ae),I(oe)}function ue(e){e.memoizedState!==null&&L(se,e);var t=R.current,n=Yd(t,e.type);t!==n&&(L(ae,e),L(R,n))}function de(e){ae.current===e&&(I(R),I(ae)),se.current===e&&(I(se),ap._currentValue=ne)}var fe,pe;function me(e){if(fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);fe=t&&t[1]||``,pe=-1<e.stack.indexOf(` 3 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 4`+fe+e+pe}var he=!1;function ge(e,t){if(!e||he)return``;he=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 5`),l=s.split(` 6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{he=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?me(n):``}function _e(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return e.child!==t&&t!==null?me(`Suspense Fallback`):me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 15:return ge(e.type,!1);case 11:return ge(e.type.render,!1);case 1:return ge(e.type,!0);case 31:return me(`Activity`);default:return``}}function ve(e){try{var t=``,n=null;do t+=_e(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 8Error generating stack: `+e.message+` 9`+e.stack}}var ye=Object.prototype.hasOwnProperty,be=t.unstable_scheduleCallback,xe=t.unstable_cancelCallback,Se=t.unstable_shouldYield,Ce=t.unstable_requestPaint,we=t.unstable_now,Te=t.unstable_getCurrentPriorityLevel,Ee=t.unstable_ImmediatePriority,De=t.unstable_UserBlockingPriority,Oe=t.unstable_NormalPriority,ke=t.unstable_LowPriority,Ae=t.unstable_IdlePriority,je=t.log,Me=t.unstable_setDisableYieldValue,Ne=null,Pe=null;function Fe(e){if(typeof je==`function`&&Me(e),Pe&&typeof Pe.setStrictMode==`function`)try{Pe.setStrictMode(Ne,e)}catch{}}var Ie=Math.clz32?Math.clz32:z,Le=Math.log,Re=Math.LN2;function z(e){return e>>>=0,e===0?32:31-(Le(e)/Re|0)|0}var B=256,ze=262144,Be=4194304;function Ve(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function He(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ve(n))):i=Ve(o):i=Ve(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ve(n))):i=Ve(o)):i=Ve(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function We(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ge(){var e=Be;return Be<<=1,!(Be&62914560)&&(Be=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Je(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ie(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ye(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ye(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ie(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Xe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ie(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ze(e,t){var n=t&-t;return n=n&42?1:Qe(n),(n&(e.suspendedLanes|t))===0?n:0}function Qe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $e(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function et(){var e=P.p;return e===0?(e=window.event,e===void 0?32:bp(e.type)):e}function tt(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var nt=Math.random().toString(36).slice(2),rt=`__reactFiber$`+nt,it=`__reactProps$`+nt,at=`__reactContainer$`+nt,ot=`__reactEvents$`+nt,st=`__reactListeners$`+nt,ct=`__reactHandles$`+nt,lt=`__reactResources$`+nt,ut=`__reactMarker$`+nt;function dt(e){delete e[rt],delete e[it],delete e[ot],delete e[st],delete e[ct]}function ft(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[at]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vf(e);e!==null;){if(n=e[rt])return n;e=vf(e)}return t}e=n,n=e.parentNode}return null}function pt(e){if(e=e[rt]||e[at]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ht(e){var t=e[lt];return t||=e[lt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function gt(e){e[ut]=!0}var _t=new Set,vt={};function yt(e,t){bt(e,t),bt(e+`Capture`,t)}function bt(e,t){for(vt[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var xt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),St={},Ct={};function wt(e){return ye.call(Ct,e)?!0:ye.call(St,e)?!1:xt.test(e)?Ct[e]=!0:(St[e]=!0,!1)}function Tt(e,t,n){if(wt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function V(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Et(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Dt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ot(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function kt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function At(e){if(!e._valueTracker){var t=Ot(e)?`checked`:`value`;e._valueTracker=kt(e,t,``+e[t])}}function jt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ot(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Mt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Nt=/[\n"\\]/g;function Pt(e){return e.replace(Nt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ft(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Dt(t)):e.value!==``+Dt(t)&&(e.value=``+Dt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Lt(e,o,Dt(n)):Lt(e,o,Dt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Dt(s):e.removeAttribute(`name`)}function It(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){At(e);return}n=n==null?``:``+Dt(n),t=t==null?n:``+Dt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),At(e)}function Lt(e,t,n){t===`number`&&Mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Rt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function zt(e,t,n){if(t!=null&&(t=``+Dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Dt(n)}function Bt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}n??=``,t=n}
vendor: 9,508 bytes, line 9
9n=Dt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),At(e)}function Vt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ht=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Ut(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ht.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Wt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(o(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Ut(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Ut(e,a,t[a])}function Gt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Kt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jt(e){return qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Yt(){}var Xt=null;function Zt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qt=null,$t=null;function en(e){var t=pt(e);if(t&&(e=t.stateNode)){var n=e[it]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ft(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Pt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[it]||null;if(!i)throw Error(o(90));Ft(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&jt(r)}break a;case`textarea`:zt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Rt(e,!!n.multiple,t,!1)}}}var tn=!1;function nn(e,t,n){if(tn)return e(t,n);tn=!0;try{return e(t)}finally{if(tn=!1,(Qt!==null||$t!==null)&&(wu(),Qt&&(t=Qt,e=$t,$t=Qt=null,en(t),e)))for(t=0;t<e.length;t++)en(e[t])}}function rn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[it]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(o(231,t,typeof n));return n}var an=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),on=!1;if(an)try{var sn={};Object.defineProperty(sn,"passive",{get:function(){on=!0}}),window.addEventListener(`test`,sn,sn),window.removeEventListener(`test`,sn,sn)}catch{on=!1}var cn=null,ln=null,un=null;function dn(){if(un)return un;var e,t=ln,n=t.length,r,i=`value`in cn?cn.value:cn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return un=i.slice(e,1<r?1-r:void 0)}function fn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pn(){return!0}function mn(){return!1}function hn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?pn:mn,this.isPropagationStopped=mn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=pn)},persist:function(){},isPersistent:pn}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_n=hn(gn),vn=m({},gn,{view:0,detail:0}),yn=hn(vn),bn,xn,Sn,Cn=m({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Sn&&(Sn&&e.type===`mousemove`?(bn=e.screenX-Sn.screenX,xn=e.screenY-Sn.screenY):xn=bn=0,Sn=e),bn)},movementY:function(e){return`movementY`in e?e.movementY:xn}}),wn=hn(Cn),Tn=hn(m({},Cn,{dataTransfer:0})),En=hn(m({},vn,{relatedTarget:0})),Dn=hn(m({},gn,{animationName:0,elapsedTime:0,pseudoElement:0})),On=hn(m({},gn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),kn=hn(m({},gn,{data:0})),An={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},jn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Mn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mn[e])?!!t[e]:!1}function Pn(){return Nn}var Fn=hn(m({},vn,{key:function(e){if(e.key){var t=An[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return e.type===`keypress`?fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),In=hn(m({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=hn(m({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Rn=hn(m({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=hn(m({},Cn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Bn=hn(m({},gn,{newState:0,oldState:0})),Vn=[9,13,27,32],Hn=an&&`CompositionEvent`in window,Un=null;an&&`documentMode`in document&&(Un=document.documentMode);var Wn=an&&`TextEvent`in window&&!Un,Gn=an&&(!Hn||Un&&8<Un&&11>=Un),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Vn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Hn&&Yn(e,t)?(e=dn(),un=ln=cn=null,Zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Gn&&t.locale!==`ko`?null:t.data;default:return null}}var er={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){Qt?$t?$t.push(r):$t=[r]:Qt=r,t=Md(t,`onChange`),0<t.length&&(n=new _n(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){wd(e,0)}function or(e){if(jt(mt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(an){var lr;if(an){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Zt(e)),nn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ye.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mt(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Er=an&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Mt(r)||(r=Dr,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 106,701 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),kr&&br(kr,r)||(kr=r,r=Md(Or,`onSelect`),0<r.length&&(t=new _n(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};an&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),yt(t,[e])}var qr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ie(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<hu)throw hu=0,gu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ci(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,n,r,i,a){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,R.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=ai(31,n,t,i),e.elementType=O,e.lanes=a,e;case v:return ui(n.children,i,a,t);case y:s=8,i|=24;break;case b:return e=ai(12,n,t,i|2),e.elementType=b,e.lanes=a,e;case w:return e=ai(13,n,t,i),e.elementType=w,e.lanes=a,e;case T:return e=ai(19,n,t,i),e.elementType=T,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case E:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(o(130,e===null?`null`:typeof e,``)),r=null}return t=ai(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:ve(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:ve(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Ie(r)-1;r&=~(1<<i),n+=1;var a=32-Ie(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Ie(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,Mi=!1,Ni=null,Pi=!1,Fi=Error(o(519));function Ii(e){throw Hi(hi(Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[rt]=e,t[it]=r,n){case`dialog`:Td(`cancel`,t),Td(`close`,t);break;case`iframe`:case`object`:case`embed`:Td(`load`,t);break;case`video`:case`audio`:for(n=0;n<Sd.length;n++)Td(Sd[n],t);break;case`source`:Td(`error`,t);break;case`img`:case`image`:case`link`:Td(`error`,t),Td(`load`,t);break;case`details`:Td(`toggle`,t);break;case`input`:Td(`invalid`,t),It(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Td(`invalid`,t);break;case`textarea`:Td(`invalid`,t),Bt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Rd(t.textContent,n)?(r.popover!=null&&(Td(`beforetoggle`,t),Td(`toggle`,t)),r.onScroll!=null&&Td(`scroll`,t),r.onScrollEnd!=null&&Td(`scrollend`,t),r.onClick!=null&&(t.onclick=Yt),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:Ai=Ai.return}}function zi(e){if(e!==Ai)return!1;if(!Mi)return Ri(e),Mi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Xd(e.type,e.memoizedProps)),n=!n),n&&ji&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));ji=_f(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));ji=_f(e)}else t===27?(t=ji,af(e.type)?(e=gf,gf=null,ji=e):ji=t):ji=Ai?hf(e.stateNode.nextSibling):null;return!0}function Bi(){ji=Ai=null,Mi=!1}function Vi(){var e=Ni;return e!==null&&(tu===null?tu=e:tu.push.apply(tu,e),Ni=null),e}function Hi(e){Ni===null?Ni=[e]:Ni.push(e)}var Ui=ie(null),Wi=null,Gi=null;function Ki(e,t,n){L(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,I(Ui)}function Ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Yi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Ji(a.return,n,e),r||(s=null);break a}a=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(o(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ji(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Xi(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var c=i.type;yr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===se.current){if(s=i.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[ap]:e.push(ap))}i=i.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(o(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=gd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=N.S;N.S=function(e,t){iu=we(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=ie(null);function _a(){var e=ga.current;return e===null?zl.pooledCache:e}function va(e,t){t===null?L(ga,ga.current):L(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(o(460)),xa=Error(o(474)),Sa=Error(o(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yt,Yt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(Yt,Yt);else{if(e=zl,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(o(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(o(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Pa(e,t){throw t.$$typeof===h?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=si(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=di(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===D&&Ea(a)===t.type)?(t=i(t,n.props),Na(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),Na(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ui(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=li(t.type,t.key,t.props,null,e.mode,n),Na(n,t),n.return=e,n;case _:return t=pi(t,e.mode,n),t.return=e,t;case D:return t=Ea(t),f(e,t,n)}if(te(t)||j(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===S)return f(e,ea(e,t),n);Pa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case D:return n=Ea(n),p(e,t,n,r)}if(te(n)||j(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===S)return p(e,t,ea(e,n),r);Pa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Ea(r),m(e,t,n,r,i)}if(te(r)||j(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ma(r),i);if(r.$$typeof===S)return m(e,t,n,ea(t,r),i);Pa(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Mi&&Ti(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return Mi&&Ti(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Mi&&Ti(i,h),l}function y(i,s,c,l){if(c==null)throw Error(o(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=a(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Mi&&Ti(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return Mi&&Ti(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Mi&&Ti(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===v&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case g:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Ea(l)===r.type){n(e,r.sibling),c=i(r,a.props),Na(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===v?(c=ui(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=li(a.type,a.key,a.props,null,e.mode,c),Na(c,a),c.return=e,e=c)}return s(e);case _:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=pi(a,e.mode,c),c.return=e,e=c}return s(e);case D:return a=Ea(a),b(e,r,a,c)}if(te(a))return h(e,r,a,c);if(j(a)){if(l=j(a),typeof l!=`function`)throw Error(o(150));return a=l.call(a),y(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ma(a),c);if(a.$$typeof===S)return b(e,r,ea(e,a),c);Pa(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=di(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=b(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ia=Fa(!0),La=Fa(!1),Ra=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Rl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function Ua(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}function Wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ga=!1;function Ka(){if(Ga){var e=da;if(e!==null)throw e}}function qa(e,t,n,r){Ga=!1;var i=e.updateQueue;Ra=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Vl&f)===f:(r&f)===f){f!==0&&f===ua&&(Ga=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ra=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Yl|=o,e.lanes=o,e.memoizedState=d}}function Ja(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function Ya(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ja(n[e],t)}var Xa=ie(null),Za=ie(0);function Qa(e,t){e=ql,L(Za,e),L(Xa,t),ql=e|t.baseLanes}function $a(){L(Za,ql),L(Xa,Xa.current)}function eo(){ql=Za.current,I(Xa),I(Za)}var to=ie(null),no=null;function ro(e){var t=e.alternate;L(co,co.current&1),L(to,e),no===null&&(t===null||Xa.current!==null||t.memoizedState!==null)&&(no=e)}function io(e){L(co,co.current),L(to,e),no===null&&(no=e)}function ao(e){e.tag===22?(L(co,co.current),L(to,e),no===null&&(no=e)):oo(e)}function oo(){L(co,co.current),L(to,to.current)}function so(e){I(to),no===e&&(no=null),I(co)}var co=ie(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ff(n)||pf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=0,fo=null,po=null,mo=null,ho=!1,go=!1,_o=!1,vo=0,yo=0,bo=null,xo=0;function So(){throw Error(o(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return uo=a,fo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Vs:Hs,_o=!1,a=n(r,i),_o=!1,go&&(a=Eo(t,n,r,i)),To(e),a}function To(e){N.H=Bs;var t=po!==null&&po.next!==null;if(uo=0,mo=po=fo=null,ho=!1,yo=0,bo=null,t)throw Error(o(300));e===null||ac||(e=e.dependencies,e!==null&&Zi(e)&&(ac=!0))}function Eo(e,t,n,r){fo=e;var i=0;do{if(go&&(bo=null),yo=0,go=!1,25<=i)throw Error(o(301));if(i+=1,mo=po=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}N.H=Us,a=t(n,r)}while(go);return a}function Do(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?Po(t):t,e=e.useState()[0],(po===null?null:po.memoizedState)!==e&&(fo.flags|=1024),t}function Oo(){var e=vo!==0;return vo=0,e}function ko(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}uo=0,mo=po=fo=null,go=!1,yo=vo=0,bo=null}function jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mo===null?fo.memoizedState=mo=e:mo=mo.next=e,mo}function Mo(){if(po===null){var e=fo.alternate;e=e===null?null:e.memoizedState}else e=po.next;var t=mo===null?fo.memoizedState:mo.next;if(t!==null)mo=t,po=e;else{if(e===null)throw fo.alternate===null?Error(o(467)):Error(o(310));po=e,e={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},mo===null?fo.memoizedState=mo=e:mo=mo.next=e}return mo}function No(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Po(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Ta(bo,e,t),t=fo,(mo===null?t.memoizedState:mo.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Vs:Hs),e}function Fo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Po(e);if(e.$$typeof===S)return $i(e)}throw Error(o(438,String(e)))}function Io(e){var t=null,n=fo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=fo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=No(),fo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){return zo(Mo(),po,e)}function zo(e,t,n){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(uo&f)===f:(Vl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((uo&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=a):l=l.next=f,fo.lanes|=p,Yl|=p;f=u.action,_o&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=a):l=l.next=p,fo.lanes|=f,Yl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=c,!yr(a,e.memoizedState)&&(ac=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Bo(e){var t=Mo(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);yr(a,t.memoizedState)||(ac=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Vo(e,t,n){var r=fo,i=Mo(),a=Mi;if(a){if(n===void 0)throw Error(o(407));n=n()}else n=t();var s=!yr((po||i).memoizedState,n);if(s&&(i.memoizedState=n,ac=!0),i=i.queue,fs(Wo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||mo!==null&&mo.memoizedState.tag&1){if(r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,i,n,t),null),zl===null)throw Error(o(349));a||uo&127||Ho(r,t,n)}return n}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fo.updateQueue,t===null?(t=No(),fo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function Wo(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Ko(e){var t=ei(e,2);t!==null&&yu(t,e,2)}function qo(e){var t=jo();if(typeof e==`function`){var n=e;if(e=n(),_o){Fe(!0);try{n()}finally{Fe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t}function Jo(e,t,n,r){return e.baseState=n,zo(e,po,typeof r==`function`?r:Lo)}function Yo(e,t,n,r,i){if(Ls(e))throw Error(o(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};N.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Xo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=N.T,o={};N.T=o;try{var s=n(i,r),c=N.S;c!==null&&c(o,s),Zo(e,t,s)}catch(n){$o(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),Zo(e,t,a)}catch(n){$o(e,t,n)}}function Zo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Qo(e,t,n)},function(n){return $o(e,t,n)}):Qo(e,t,n)}function Qo(e,t,n){t.status=`fulfilled`,t.value=n,es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xo(e,n)))}function $o(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,es(t),t=t.next;while(t!==r)}e.action=null}function es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ts(e,t){return t}function ns(e,t){if(Mi){var n=zl.formState;if(n!==null){a:{var r=fo;if(Mi){if(ji){b:{for(var i=ji,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=hf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=hf(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=jo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:t},n.queue=r,n=Ps.bind(null,fo,r),r.dispatch=n,r=qo(!1),a=Is.bind(null,fo,!1,r.queue),r=jo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Yo.bind(null,fo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function rs(e){return is(Mo(),po,e)}function is(e,t,n){if(t=zo(e,t,ts)[0],e=Ro(Lo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Po(t)}catch(e){throw e===ba?Sa:e}else r=t;t=Mo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(fo.flags|=2048,ss(9,{destroy:void 0},as.bind(null,i,n),null)),[r,a,e]}function as(e,t){e.action=t}function os(e){var t=Mo(),n=po;if(n!==null)return is(t,n,e);Mo(),t=t.memoizedState,n=Mo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ss(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=fo.updateQueue,t===null&&(t=No(),fo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function cs(){return Mo().memoizedState}function ls(e,t,n,r){var i=jo();fo.flags|=e,i.memoizedState=ss(1|t,{destroy:void 0},n,r===void 0?null:r)}function us(e,t,n,r){var i=Mo();r=r===void 0?null:r;var a=i.memoizedState.inst;po!==null&&r!==null&&Co(r,po.memoizedState.deps)?i.memoizedState=ss(t,a,n,r):(fo.flags|=e,i.memoizedState=ss(1|t,a,n,r))}function ds(e,t){ls(8390656,8,e,t)}function fs(e,t){us(2048,8,e,t)}function ps(e){fo.flags|=4;var t=fo.updateQueue;if(t===null)t=No(),fo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ms(e){var t=Mo().memoizedState;return ps({ref:t,nextImpl:e}),function(){if(Rl&2)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function hs(e,t){return us(4,2,e,t)}function gs(e,t){return us(4,4,e,t)}function _s(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vs(e,t,n){n=n==null?null:n.concat([e]),us(4,4,_s.bind(null,t,e),n)}function ys(){}function bs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),_o){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r}function Ss(e,t,n){return n===void 0||uo&1073741824&&!(Vl&261930)?e.memoizedState=t:(e.memoizedState=n,e=vu(),fo.lanes|=e,Yl|=e,n)}function Cs(e,t,n,r){return yr(n,t)?n:Xa.current===null?!(uo&42)||uo&1073741824&&!(Vl&261930)?(ac=!0,e.memoizedState=n):(e=vu(),fo.lanes|=e,Yl|=e,t):(e=Ss(e,n,r),yr(e,t)||(ac=!0),e)}function ws(e,t,n,r,i){var a=P.p;P.p=a!==0&&8>a?a:8;var o=N.T,s={};N.T=s,Is(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,ma(c,r),_u(e)):Fs(e,t,r,_u(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},_u())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=Ds(e).queue;ws(e,i,t,ne,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},_u())}function ks(){return $i(ap)}function As(){return Mo().memoizedState}function js(){return Mo().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_u();e=Va(n);var r=Ha(t,e,n);r!==null&&(yu(r,t,n),Ua(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=_u();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ls(e)?Rs(t,n):(n=$r(e,t,n,r),n!==null&&(yu(n,e,r),zs(n,t,r)))}function Ps(e,t,n){Fs(e,t,n,_u())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))Rs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return Qr(e,t,i,0),zl===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return yu(n,e,r),zs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:gd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(o(479))}else t=$r(e,n,r,2),t!==null&&yu(t,e,2)}function Ls(e){var t=e.alternate;return e===fo||t!==null&&t===fo}function Rs(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}var Bs={readContext:$i,use:Fo,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};Bs.useEffectEvent=So;var Vs={readContext:$i,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(_o){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(_o){Fe(!0);try{n(t)}finally{Fe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,fo,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ps.bind(null,fo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=ws.bind(null,fo,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=fo,i=jo();if(Mi){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),zl===null)throw Error(o(349));Vl&127||Ho(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ds(Wo.bind(null,r,a,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),n},useId:function(){var e=jo(),t=zl.identifierPrefix;if(Mi){var n=wi,r=Ci;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:ns,useActionState:ns,useOptimistic:function(e){var t=jo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Is.bind(null,fo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Io,useCacheRefresh:function(){return jo().memoizedState=Ms.bind(null,fo)},useEffectEvent:function(e){var t=jo(),n={impl:e};return t.memoizedState=n,function(){if(Rl&2)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Hs={readContext:$i,use:Fo,useCallback:bs,useContext:$i,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Ro,useRef:cs,useState:function(){return Ro(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){return Cs(Mo(),po.memoizedState,e,t)},useTransition:function(){var e=Ro(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:rs,useActionState:rs,useOptimistic:function(e,t){return Jo(Mo(),po,e,t)},useMemoCache:Io,useCacheRefresh:js};Hs.useEffectEvent=ms;var Us={readContext:$i,use:Fo,useCallback:bs,useContext:$i,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Bo,useRef:cs,useState:function(){return Bo(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){var n=Mo();return po===null?Ss(n,e,t):Cs(n,po.memoizedState,e,t)},useTransition:function(){var e=Bo(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:os,useActionState:os,useOptimistic:function(e,t){var n=Mo();return po===null?(n.baseState=e,[e,n.queue.dispatch]):Jo(n,po,e,t)},useMemoCache:Io,useCacheRefresh:js};Us.useEffectEvent=ms;function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_u(),i=Va(r);i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(yu(t,e,r),Ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_u(),i=Va(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(yu(t,e,r),Ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_u(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Ha(e,r,n),t!==null&&(yu(t,e,n),Ua(t,e,n))}};function Ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Gs.enqueueReplaceState(t,t.state,null)}function Js(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ys(e){qr(e)}function Xs(e){console.error(e)}function Zs(e){qr(e)}function Qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Qs(e,t)},n}function tc(e){return e=Va(e),e.tag=3,e}function nc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){$s(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){$s(t,n,r),typeof i!=`function`&&(su===null?su=new Set([this]):su.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function rc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,i,!0),n=to.current,n!==null){switch(n.tag){case 31:case 13:return no===null?ju():n.alternate===null&&Jl===0&&(Jl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Xu(e,r,i)),!1;case 22:return n.flags|=65536,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Xu(e,r,i)),!1}throw Error(o(435,n.tag))}return Xu(e,r,i),ju(),!1}if(Mi)return t=to.current,t===null?(r!==Fi&&(t=Error(o(423),{cause:r}),Hi(hi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=hi(r,n),i=ec(e.stateNode,r,i),Wa(e,i),Jl!==4&&(Jl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Fi&&(e=Error(o(422),{cause:r}),Hi(hi(e,n)))),!1;var a=Error(o(520),{cause:r});if(a=hi(a,n),eu===null?eu=[a]:eu.push(a),Jl!==4&&(Jl=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ec(n.stateNode,r,e),Wa(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(su===null||!su.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=tc(i),nc(i,e,n,r),Wa(n,i),!1}n=n.return}while(n!==null);return!1}var ic=Error(o(461)),ac=!1;function oc(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function sc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qi(t),r=wo(e,t,n,o,a,i),s=Oo(),e!==null&&!ac?(ko(e,t,i),jc(e,t,i)):(Mi&&s&&Di(t),t.flags|=1,oc(e,t,r,i),t.child)}function cc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lc(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Mc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return jc(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref)if(ac=!1,t.pendingProps=r=a,Mc(e,i))e.flags&131072&&(ac=!0);else return t.lanes=e.lanes,jc(e,t,i)}return _c(e,t,n,r,i)}function uc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?$a():Qa(t,a),ao(t);else return r=t.lanes=536870912,fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),$a(),oo(t)):(va(t,a.cachePool),Qa(t,a),oo(t),t.memoizedState=null);return oc(e,t,i,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),$a(),ao(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function pc(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mc(e,t,n){return Ia(t,e.child,null,n),e=pc(t,t.pendingProps),e.flags|=2,so(t),t.memoizedState=null,e}function hc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Mi){if(r.mode===`hidden`)return e=pc(t,r),t.lanes=536870912,dc(null,e);if(io(t),(e=ji)?(e=df(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return pc(t,r)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(io(t),i)if(t.flags&256)t.flags&=-257,t=mc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(ac||Xi(e,t,n,!1),i=(n&e.childLanes)!==0,ac||i){if(r=zl,r!==null&&(s=Ze(r,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,ei(e,s),yu(r,e,s),ic;ju(),t=mc(e,t,n)}else e=a.treeContext,ji=hf(s.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=pc(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _c(e,t,n,r,i){return Qi(t),n=wo(e,t,n,r,void 0,i),r=Oo(),e!==null&&!ac?(ko(e,t,i),jc(e,t,i)):(Mi&&r&&Di(t),t.flags|=1,oc(e,t,n,i),t.child)}function vc(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Oo(),e!==null&&!ac?(ko(e,t,a),jc(e,t,a)):(Mi&&r&&Di(t),t.flags|=1,oc(e,t,n,a),t.child)}function yc(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Gs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},za(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ws(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Gs.enqueueReplaceState(a,a.state,null),qa(t,r,a,i),Ka(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Js(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=$i(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&qs(t,a,r,o),Ra=!1;var f=t.memoizedState;a.state=f,qa(t,r,a,i),Ka(),l=t.memoizedState,s||f!==l||Ra?(typeof d==`function`&&(Ws(t,n,d,r),l=t.memoizedState),(c=Ra||Ks(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ba(e,t),o=t.memoizedProps,u=Js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=$i(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&qs(t,a,r,c),Ra=!1,f=t.memoizedState,a.state=f,qa(t,r,a,i),Ka();var p=t.memoizedState;o!==d||f!==p||Ra||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Ws(t,n,s,r),p=t.memoizedState),(u=Ra||Ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,gc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,n,i)):oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=jc(e,t,i),e}function bc(e,t,n,r){return Bi(),t.flags|=256,oc(e,t,n,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:ya()}}function Cc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Ql),e}function wc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(co.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Mi){if(i?ro(t):oo(t),(e=ji)?(e=df(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return pf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(oo(t),i=t.mode,c=Ec({mode:`hidden`,children:c},i),r=ui(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(null,r)):(ro(t),Tc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(ro(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState===null?(oo(t),c=r.fallback,i=t.mode,r=Ec({mode:`visible`,children:r.children},i),c=ui(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ia(t,e.child,null,n),r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,t=dc(null,r)):(oo(t),t.child=e.child,t.flags|=128,t=null);else if(ro(t),pf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(o(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=Dc(e,t,n)}else if(ac||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,ac||s){if(s=zl,s!==null&&(r=Ze(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),yu(s,e,r),ic;ff(c)||ju(),t=Dc(e,t,n)}else ff(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=hf(c.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=Tc(t,r.children),t.flags|=4096);return t}return i?(oo(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,i,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,dc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sc(n):(i=c.cachePool,i===null?i=ya():(l=aa._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(e.child,r)):(ro(t),n=e.child,e=n.sibling,n=si(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Tc(e,t){return t=Ec({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ia(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function kc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=co.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,L(co,o),oc(e,t,r,n),r=Mi?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oc(e,n,t);else if(e.tag===19)Oc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),kc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}kc(t,!0,n,null,a,r);break;case`together`:kc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function jc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Zi(e))):!0}function Nc(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Bi();break;case 27:case 5:ue(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,io(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ro(t),e=jc(e,t,n),e===null?null:e.sibling):wc(e,t,n):(ro(t),t.flags|=128,null);ro(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),L(co,co.current),r)break;return null;case 22:return t.lanes=0,uc(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return jc(e,t,n)}function Pc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ac=!0;else{if(!Mc(e,n)&&!(t.flags&128))return ac=!1,Nc(e,t,n);ac=!!(e.flags&131072)}else ac=!1,Mi&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=Js(e,r),t.tag=1,t=yc(null,t,e,r,n)):(t.tag=0,t=_c(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=sc(null,t,e,r,n);break a}else if(i===E){t.tag=14,t=cc(null,t,e,r,n);break a}}throw t=ee(e)||e,Error(o(306,t,``))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Js(r,t.pendingProps),yc(e,t,r,i,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Ba(e,t),qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0),Ka(),r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=bc(e,t,r,n);break a}else if(r!==i){i=hi(Error(o(424)),t),Hi(i),t=bc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ji=hf(e.firstChild),Ai=t,Mi=!0,Ni=null,Pi=!0,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===i){t=jc(e,t,n);break a}oc(e,t,r,n)}t=t.child}return t;case 26:return gc(e,t),e===null?(n=If(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mi||(n=t.type,e=t.pendingProps,r=qd(oe.current).createElement(n),r[rt]=t,r[it]=e,Vd(r,n,e),gt(r),t.stateNode=r):t.memoizedState=If(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ue(t),e===null&&Mi&&(r=t.stateNode=yf(t.type,t.pendingProps,oe.current),Ai=t,Pi=!0,i=ji,af(t.type)?(gf=i,ji=hf(r.firstChild)):ji=i),oc(e,t,t.pendingProps.children,n),gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mi&&((i=r=ji)&&(r=lf(r,t.type,t.pendingProps,Pi),r===null?i=!1:(t.stateNode=r,Ai=t,ji=hf(r.firstChild),Pi=!1,i=!0)),i||Ii(t)),ue(t),i=t.type,a=t.pendingProps,s=e===null?null:e.memoizedProps,r=a.children,Xd(i,a)?r=null:s!==null&&Xd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=wo(e,t,Do,null,null,n),ap._currentValue=i),gc(e,t),oc(e,t,r,n),t.child;case 6:return e===null&&Mi&&((e=n=ji)&&(n=uf(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Ii(t)),null;case 13:return wc(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ia(t,null,r,n):oc(e,t,r,n),t.child;case 11:return sc(e,t,t.type,t.pendingProps,n);case 7:return oc(e,t,t.pendingProps,n),t.child;case 8:return oc(e,t,t.pendingProps.children,n),t.child;case 12:return oc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),oc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Qi(t),i=$i(i),r=r(i),t.flags|=1,oc(e,t,r,n),t.child;case 14:return cc(e,t,t.type,t.pendingProps,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 19:return Ac(e,t,n);case 31:return hc(e,t,n);case 22:return uc(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(i=_a(),i===null&&(i=zl,a=oa(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},za(t),Ki(t,aa,i)):((e.lanes&n)!==0&&(Ba(e,t),qa(t,null,null,n),Ka()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Ki(t,aa,r),r!==i.cache&&Yi(t,[aa],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ki(t,aa,r))),oc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Fc(e){e.flags|=4}function Ic(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ou())e.flags|=8192;else throw Da=Ca,xa}else e.flags&=-16777217}function Lc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(Ou())e.flags|=8192;else throw Da=Ca,xa}function Rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ge(),e.lanes|=t,$l|=t)}function zc(e,t){if(!Mi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bc(t),null;case 1:return Bc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),le(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zi(t)?Fc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),Bc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Fc(t),a===null?(Bc(t),Ic(t,i,null,r,n)):(Bc(t),Lc(t,a))):a?a===e.memoizedState?(Bc(t),t.flags&=-16777217):(Fc(t),Bc(t),Lc(t,a)):(e=e.memoizedProps,e!==r&&Fc(t),Bc(t),Ic(t,i,e,r,n)),null;case 27:if(de(t),n=oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Bc(t),null}e=R.current,zi(t)?Li(t,e):(e=yf(i,r,n),t.stateNode=e,Fc(t))}return Bc(t),null;case 5:if(de(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Bc(t),null}if(a=R.current,zi(t))Li(t,a);else{var s=qd(oe.current);switch(a){case 1:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=s.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}a[rt]=t,a[it]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;a:switch(Vd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Fc(t)}}return Bc(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=oe.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ai,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Rd(e.nodeValue,n)),e||Ii(t,!0)}else e=qd(e).createTextNode(r),e[rt]=t,t.stateNode=e}return Bc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(t),n!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(557));e[rt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(so(t),t):(so(t),null);if(t.flags&128)throw Error(o(558))}return Bc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(o(317));i[rt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),i=!1}else i=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(so(t),t):(so(t),null)}return so(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Rc(t,t.updateQueue),Bc(t),null);case 4:return le(),e===null&&Od(t.stateNode.containerInfo),Bc(t),null;case 10:return qi(t.type),Bc(t),null;case 19:if(I(co),r=t.memoizedState,r===null)return Bc(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)zc(r,!1);else{if(Jl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=lo(e),a!==null){for(t.flags|=128,zc(r,!1),e=a.updateQueue,t.updateQueue=e,Rc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return L(co,co.current&1|2),Mi&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&we()>au&&(t.flags|=128,i=!0,zc(r,!1),t.lanes=4194304)}else{if(!i)if(e=lo(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Rc(t,e),zc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!Mi)return Bc(t),null}else 2*we()-r.renderingStartTime>au&&n!==536870912&&(t.flags|=128,i=!0,zc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Bc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=we(),e.sibling=null,n=co.current,L(co,i?n&1|2:n&1),Mi&&Ti(t,r.treeForkCount),e);case 22:case 23:return so(t),eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Bc(t),t.subtreeFlags&6&&(t.flags|=8192)):Bc(t),n=t.updateQueue,n!==null&&Rc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&I(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),Bc(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Hc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return de(t),null;case 31:if(t.memoizedState!==null){if(so(t),t.alternate===null)throw Error(o(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(so(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(co),null;case 4:return le(),null;case 10:return qi(t.type),null;case 22:case 23:return so(t),eo(),e!==null&&I(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function Uc(e,t){switch(Oi(t),t.tag){case 3:qi(aa),le();break;case 26:case 27:case 5:de(t);break;case 4:le();break;case 31:t.memoizedState!==null&&so(t);break;case 13:so(t);break;case 19:I(co);break;case 10:qi(t.type);break;case 22:case 23:so(t),eo(),e!==null&&I(ga);break;case 24:qi(aa)}}function Wc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Yu(t,t.return,e)}}function Gc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Yu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Yu(t,t.return,e)}}function Kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ya(t,n)}catch(t){Yu(e,e.return,t)}}}function qc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Yu(e,t,n)}}function Jc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Yu(e,t,n)}}function Yc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Yu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Yu(e,t,n)}else n.current=null}function Xc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Yu(e,e.return,t)}}function Zc(e,t,n){try{var r=e.stateNode;Hd(r,e.type,n,t),r[it]=t}catch(t){Yu(e,e.return,t)}}function Qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&af(e.type)||e.tag===4}function $c(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&af(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yt));else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Vd(t,r,n),t[rt]=e,t[it]=n}catch(t){Yu(e,e.return,t)}}var rl=!1,il=!1,al=!1,H=typeof WeakSet==`function`?WeakSet:Set,U=null;function ol(e,t){if(e=e.containerInfo,Gd=pp,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===a&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Kd={focusedElem:e,selectionRange:n},pp=!1,U=t;U!==null;)if(t=U,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,U=e;else for(;U!==null;){switch(t=U,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Js(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Yu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:cf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:xl(e,n),r&4&&Wc(5,n);break;case 1:if(xl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Yu(n,n.return,e)}else{var i=Js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Yu(n,n.return,e)}}r&64&&Kc(n),r&512&&Jc(n,n.return);break;case 3:if(xl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ya(e,t)}catch(e){Yu(n,n.return,e)}}break;case 27:t===null&&r&4&&nl(n);case 26:case 5:xl(e,n),t===null&&r&4&&Xc(n),r&512&&Jc(n,n.return);break;case 12:xl(e,n);break;case 31:xl(e,n),r&4&&fl(e,n);break;case 13:xl(e,n),r&4&&pl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$u.bind(null,n),mf(e,n))));break;case 22:if(r=n.memoizedState!==null||rl,!r){t=t!==null&&t.memoizedState!==null||il,i=rl;var a=il;rl=r,(il=t)&&!a?Cl(e,n,(n.subtreeFlags&8772)!=0):xl(e,n),rl=i,il=a}break;case 30:break;default:xl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var W=null,ll=!1;function ul(e,t,n){for(n=n.child;n!==null;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(Pe&&typeof Pe.onCommitFiberUnmount==`function`)try{Pe.onCommitFiberUnmount(Ne,n)}catch{}switch(n.tag){case 26:il||Yc(n,t),ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:il||Yc(n,t);var r=W,i=ll;af(n.type)&&(W=n.stateNode,ll=!1),ul(e,t,n),bf(n.stateNode),W=r,ll=i;break;case 5:il||Yc(n,t);case 6:if(r=W,i=ll,W=null,ul(e,t,n),W=r,ll=i,W!==null)if(ll)try{(W.nodeType===9?W.body:W.nodeName===`HTML`?W.ownerDocument.body:W).removeChild(n.stateNode)}catch(e){Yu(n,t,e)}else try{W.removeChild(n.stateNode)}catch(e){Yu(n,t,e)}break;case 18:W!==null&&(ll?(e=W,of(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),zp(e)):of(W,n.stateNode));break;case 4:r=W,i=ll,W=n.stateNode.containerInfo,ll=!0,ul(e,t,n),W=r,ll=i;break;case 0:case 11:case 14:case 15:Gc(2,n,t),il||Gc(4,n,t),ul(e,t,n);break;case 1:il||(Yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&qc(n,t,r)),ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:il=(r=il)||n.memoizedState!==null,ul(e,t,n),il=r;break;default:ul(e,t,n)}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zp(e)}catch(e){Yu(t,t.return,e)}}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zp(e)}catch(e){Yu(t,t.return,e)}}function ml(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new H),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new H),t;default:throw Error(o(435,e.tag))}}function hl(e,t){var n=ml(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ed.bind(null,e,t);t.then(r,r)}})}function gl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(af(c.type)){W=c.stateNode,ll=!1;break a}break;case 5:W=c.stateNode,ll=!1;break a;case 3:case 4:W=c.stateNode.containerInfo,ll=!0;break a}c=c.return}if(W===null)throw Error(o(160));dl(a,s,i),W=null,ll=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vl(t,e),t=t.sibling}var _l=null;function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gl(t,e),yl(e),r&4&&(Gc(3,e,e.return),Wc(3,e),Gc(5,e,e.return));break;case 1:gl(t,e),yl(e),r&512&&(il||n===null||Yc(n,n.return)),r&64&&rl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=_l;if(gl(t,e),yl(e),r&512&&(il||n===null||Yc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[ut]||a[rt]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Vd(a,r,n),a[rt]=e,gt(a),r=a;break a;case`link`:var s=Jf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}a=i.createElement(r),Vd(a,r,n),i.head.appendChild(a);break;case`meta`:if(s=Jf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}a=i.createElement(r),Vd(a,r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[rt]=e,gt(a),r=a}e.stateNode=r}else Yf(i,e.type,e.stateNode);else e.stateNode=Uf(i,r,e.memoizedProps);else a===r?r===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Yf(i,e.type,e.stateNode):Uf(i,r,e.memoizedProps))}break;case 27:gl(t,e),yl(e),r&512&&(il||n===null||Yc(n,n.return)),n!==null&&r&4&&Zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gl(t,e),yl(e),r&512&&(il||n===null||Yc(n,n.return)),e.flags&32){i=e.stateNode;try{Vt(i,``)}catch(t){Yu(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Zc(e,i,n===null?i:n.memoizedProps)),r&1024&&(al=!0);break;case 6:if(gl(t,e),yl(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Yu(e,e.return,t)}}break;case 3:if(qf=null,i=_l,_l=Cf(t.containerInfo),gl(t,e),_l=i,yl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(t){Yu(e,e.return,t)}al&&(al=!1,bl(e));break;case 4:r=_l,_l=Cf(e.stateNode.containerInfo),gl(t,e),yl(e),_l=r;break;case 12:gl(t,e),yl(e);break;case 31:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 13:gl(t,e),yl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ru=we()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=rl,d=il;if(rl=u||i,il=d||l,gl(t,e),il=d,rl=u,yl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||rl||il||Sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Yu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Yu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?sf(m,!0):sf(l.stateNode,!1)}catch(e){Yu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,hl(e,n))));break;case 19:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 30:break;case 21:break;default:gl(t,e),yl(e)}}function yl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Qc(r)){n=r;break}r=r.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;tl(e,$c(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Vt(a,``),n.flags&=-33),tl(e,$c(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;el(e,$c(e),s);break;default:throw Error(o(161))}}catch(t){Yu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gc(4,t,t.return),Sl(t);break;case 1:Yc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&qc(t,t.return,n),Sl(t);break;case 27:bf(t.stateNode);case 26:case 5:Yc(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function Cl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Cl(i,a,n),Wc(4,a);break;case 1:if(Cl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Yu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ja(c[i],s)}catch(e){Yu(r,r.return,e)}}n&&o&64&&Kc(a),Jc(a,a.return);break;case 27:nl(a);case 26:case 5:Cl(i,a,n),n&&r===null&&o&4&&Xc(a),Jc(a,a.return);break;case 12:Cl(i,a,n);break;case 31:Cl(i,a,n),n&&o&4&&fl(i,a);break;case 13:Cl(i,a,n),n&&o&4&&pl(i,a);break;case 22:a.memoizedState===null&&Cl(i,a,n),Jc(a,a.return);break;case 30:break;default:Cl(i,a,n)}t=t.sibling}}function wl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function Tl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function El(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)G(e,t,n,r),t=t.sibling}function G(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:El(e,t,n,r),i&2048&&Wc(9,t);break;case 1:El(e,t,n,r);break;case 3:El(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){El(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Yu(t,t.return,e)}}else El(e,t,n,r);break;case 31:El(e,t,n,r);break;case 13:El(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?El(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?El(e,t,n,r):K(e,t),i&2048&&wl(o,t);break;case 24:El(e,t,n,r),i&2048&&Tl(t.alternate,t);break;default:El(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Wc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):K(a,o),i&&l&2048&&wl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&Tl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function K(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:K(n,r),i&2048&&wl(r.alternate,r);break;case 24:K(n,r),i&2048&&Tl(r.alternate,r);break;default:K(n,r)}t=t.sibling}}var Ol=8192;function kl(e,t,n){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)Al(e,t,n),e=e.sibling}function Al(e,t,n){switch(e.tag){case 26:kl(e,t,n),e.flags&Ol&&e.memoizedState!==null&&Qf(n,_l,e.memoizedState,e.memoizedProps);break;case 5:kl(e,t,n);break;case 3:case 4:var r=_l;_l=Cf(e.stateNode.containerInfo),kl(e,t,n),_l=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ol,Ol=16777216,kl(e,t,n),Ol=r):kl(e,t,n));break;default:kl(e,t,n)}}function jl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ml(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];U=r,Fl(r,e)}jl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&Gc(9,e,e.return);break;case 3:Ml(e);break;case 12:Ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pl(e)):Ml(e);break;default:Ml(e)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];U=r,Fl(r,e)}jl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gc(8,t,t.return),Pl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pl(t));break;default:Pl(t)}e=e.sibling}}function Fl(e,t){for(;U!==null;){var n=U;switch(n.tag){case 0:case 11:case 15:Gc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,U=r;else a:for(n=e;U!==null;){r=U;var i=r.sibling,a=r.return;if(cl(r),r===n){U=null;break a}if(i!==null){i.return=a,U=i;break a}U=a}}}var Il={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},Ll=typeof WeakMap==`function`?WeakMap:Map,Rl=0,zl=null,Bl=null,Vl=0,Hl=0,Ul=null,Wl=!1,Gl=!1,Kl=!1,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=null,tu=null,nu=!1,ru=0,iu=0,au=1/0,ou=null,su=null,cu=0,lu=null,uu=null,du=0,fu=0,pu=null,mu=null,hu=0,gu=null;function _u(){return Rl&2&&Vl!==0?Vl&-Vl:N.T===null?et():gd()}function vu(){if(Ql===0)if(!(Vl&536870912)||Mi){var e=ze;ze<<=1,!(ze&3932160)&&(ze=262144),Ql=e}else Ql=536870912;return e=to.current,e!==null&&(e.flags|=32),Ql}function yu(e,t,n){(e===zl&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)&&(Eu(e,0),Cu(e,Vl,Ql,!1)),qe(e,n),(!(Rl&2)||e!==zl)&&(e===zl&&(!(Rl&2)&&(Xl|=n),Jl===4&&Cu(e,Vl,Ql,!1)),cd(e))}function bu(e,t,n){if(Rl&6)throw Error(o(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ue(e,t),i=r?Pu(e,t):Mu(e,t,!0),a=r;do{if(i===0){Gl&&!r&&Cu(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!Su(n)){i=Mu(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=eu;var l=c.current.memoizedState.isDehydrated;if(l&&(Eu(c,s).flags|=256),s=Mu(c,s,!1),s!==2){if(Kl&&!l){c.errorRecoveryDisabledLanes|=a,Xl|=a,i=4;break a}a=tu,tu=i,a!==null&&(tu===null?tu=a:tu.push.apply(tu,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){Eu(e,0),Cu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Cu(r,t,Ql,!Wl);break a;case 2:tu=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=ru+300-we(),10<i)){if(Cu(r,t,Ql,!Wl),He(r,0,!0)!==0)break a;du=t,r.timeoutHandle=$d(xu.bind(null,r,n,tu,ou,nu,t,Ql,Xl,$l,Wl,a,`Throttled`,-0,0),i);break a}xu(r,n,tu,ou,nu,t,Ql,Xl,$l,Wl,a,null,-0,0)}}break}while(1);cd(e)}function xu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yt},Al(t,a,d);var m=(a&62914560)===a?ru-we():(a&4194048)===a?iu-we():0;if(m=ep(d,m),m!==null){du=a,e.cancelPendingCommit=m(Vu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Cu(e,a,o,!l);return}}Vu(e,t,a,n,r,i,o,s,c)}function Su(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cu(e,t,n,r){t&=~Zl,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ie(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ye(e,n,t)}function wu(){return Rl&6?!0:(ld(0,!1),!1)}function Tu(){if(Bl!==null){if(Hl===0)var e=Bl.return;else e=Bl,Gi=Wi=null,Ao(e),Aa=null,ja=0,e=Bl;for(;e!==null;)Uc(e.alternate,e),e=e.return;Bl=null}}function Eu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ef(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),du=0,Tu(),zl=e,Bl=n=si(e.current,null),Vl=t,Hl=0,Ul=null,Wl=!1,Gl=Ue(e,t),Kl=!1,$l=Ql=Zl=Xl=Yl=Jl=0,tu=eu=null,nu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ie(r),a=1<<i;t|=e[i],r&=~a}return ql=t,Zr(),n}function Du(e,t){fo=null,N.H=Bs,t===ba||t===Sa?(t=Oa(),Hl=3):t===xa?(t=Oa(),Hl=4):Hl=t===ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ul=t,Bl===null&&(Jl=1,Qs(e,hi(t,e.current)))}function Ou(){var e=to.current;return e===null?!0:(Vl&4194048)===Vl?no===null:(Vl&62914560)===Vl||Vl&536870912?e===no:!1}function ku(){var e=N.H;return N.H=Bs,e===null?Bs:e}function Au(){var e=N.A;return N.A=Il,e}function ju(){Jl=4,Wl||(Vl&4194048)!==Vl&&to.current!==null||(Gl=!0),!(Yl&134217727)&&!(Xl&134217727)||zl===null||Cu(zl,Vl,Ql,!1)}function Mu(e,t,n){var r=Rl;Rl|=2;var i=ku(),a=Au();(zl!==e||Vl!==t)&&(ou=null,Eu(e,t)),t=!1;var o=Jl;a:do try{if(Hl!==0&&Bl!==null){var s=Bl,c=Ul;switch(Hl){case 8:Tu(),o=6;break a;case 3:case 2:case 9:case 6:to.current===null&&(t=!0);var l=Hl;if(Hl=0,Ul=null,Ru(e,s,c,l),n&&Gl){o=0;break a}break;default:l=Hl,Hl=0,Ul=null,Ru(e,s,c,l)}}Nu(),o=Jl;break}catch(t){Du(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,Rl=r,N.H=i,N.A=a,Bl===null&&(zl=null,Vl=0,Zr()),o}function Nu(){for(;Bl!==null;)Iu(Bl)}function Pu(e,t){var n=Rl;Rl|=2;var r=ku(),i=Au();zl!==e||Vl!==t?(ou=null,au=we()+500,Eu(e,t)):Gl=Ue(e,t);a:do try{if(Hl!==0&&Bl!==null){t=Bl;var a=Ul;b:switch(Hl){case 1:Hl=0,Ul=null,Ru(e,t,a,1);break;case 2:case 9:if(wa(a)){Hl=0,Ul=null,Lu(t);break}t=function(){Hl!==2&&Hl!==9||zl!==e||(Hl=7),cd(e)},a.then(t,t);break a;case 3:Hl=7;break a;case 4:Hl=5;break a;case 7:wa(a)?(Hl=0,Ul=null,Lu(t)):(Hl=0,Ul=null,Ru(e,t,a,7));break;case 5:var s=null;switch(Bl.tag){case 26:s=Bl.memoizedState;case 5:case 27:var c=Bl;if(s?Zf(s):c.stateNode.complete){Hl=0,Ul=null;var l=c.sibling;if(l!==null)Bl=l;else{var u=c.return;u===null?Bl=null:(Bl=u,zu(u))}break b}}Hl=0,Ul=null,Ru(e,t,a,5);break;case 6:Hl=0,Ul=null,Ru(e,t,a,6);break;case 8:Tu(),Jl=6;break a;default:throw Error(o(462))}}Fu();break}catch(t){Du(e,t)}while(1);return Gi=Wi=null,N.H=r,N.A=i,Rl=n,Bl===null?(zl=null,Vl=0,Zr(),Jl):0}function Fu(){for(;Bl!==null&&!Se();)Iu(Bl)}function Iu(e){var t=Pc(e.alternate,e,ql);e.memoizedProps=e.pendingProps,t===null?zu(e):Bl=t}function Lu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=vc(n,t,t.pendingProps,t.type,void 0,Vl);break;case 11:t=vc(n,t,t.pendingProps,t.type.render,t.ref,Vl);break;case 5:Ao(t);default:Uc(n,t),t=Bl=ci(t,ql),t=Pc(n,t,ql)}e.memoizedProps=e.pendingProps,t===null?zu(e):Bl=t}function Ru(e,t,n,r){Gi=Wi=null,Ao(t),Aa=null,ja=0;var i=t.return;try{if(rc(e,i,t,n,Vl)){Jl=1,Qs(e,hi(n,e.current)),Bl=null;return}}catch(t){if(i!==null)throw Bl=i,t;Jl=1,Qs(e,hi(n,e.current)),Bl=null;return}t.flags&32768?(Mi||r===1?e=!0:Gl||Vl&536870912?e=!1:(Wl=e=!0,(r===2||r===9||r===3||r===6)&&(r=to.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bu(t,e)):zu(t)}function zu(e){var t=e;do{if(t.flags&32768){Bu(t,Wl);return}e=t.return;var n=Vc(t.alternate,t,ql);if(n!==null){Bl=n;return}if(t=t.sibling,t!==null){Bl=t;return}Bl=t=e}while(t!==null);Jl===0&&(Jl=5)}function Bu(e,t){do{var n=Hc(e.alternate,e);if(n!==null){n.flags&=32767,Bl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Bl=e;return}Bl=e=n}while(e!==null);Jl=6,Bl=null}function Vu(e,t,n,r,i,a,s,c,l){e.cancelPendingCommit=null;do Ku();while(cu!==0);if(Rl&6)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,a|=Xr,Je(e,n,a,s,c,l),e===zl&&(Bl=zl=null,Vl=0),uu=t,lu=e,du=n,fu=a,pu=i,mu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,td(Oe,function(){return qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=N.T,N.T=null,i=P.p,P.p=2,s=Rl,Rl|=4;try{ol(e,t,n)}finally{Rl=s,P.p=i,N.T=r}}cu=1,Hu(),Uu(),Wu()}}function Hu(){if(cu===1){cu=0;var e=lu,t=uu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Rl;Rl|=4;try{vl(t,e);var a=Kd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Sr(s,h),v=Sr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}pp=!!Gd,Kd=Gd=null}finally{Rl=i,P.p=r,N.T=n}}e.current=t,cu=2}}function Uu(){if(cu===2){cu=0;var e=lu,t=uu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Rl;Rl|=4;try{sl(e,t.alternate,t)}finally{Rl=i,P.p=r,N.T=n}}cu=3}}function Wu(){if(cu===4||cu===3){cu=0,Ce();var e=lu,t=uu,n=du,r=mu;t.subtreeFlags&10256||t.flags&10256?cu=5:(cu=0,uu=lu=null,Gu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(su=null),$e(n),t=t.stateNode,Pe&&typeof Pe.onCommitFiberRoot==`function`)try{Pe.onCommitFiberRoot(Ne,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=N.T,i=P.p,P.p=2,N.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{N.T=t,P.p=i}}du&3&&Ku(),cd(e),i=e.pendingLanes,n&261930&&i&42?e===gu?hu++:(hu=0,gu=e):hu=0,ld(0,!1)}}function Gu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Ku(){return Hu(),Uu(),Wu(),qu()}function qu(){if(cu!==5)return!1;var e=lu,t=fu;fu=0;var n=$e(du),r=N.T,i=P.p;try{P.p=32>n?32:n,N.T=null,n=pu,pu=null;var a=lu,s=du;if(cu=0,uu=lu=null,du=0,Rl&6)throw Error(o(331));var c=Rl;if(Rl|=4,Nl(a.current),G(a,a.current,s,n),Rl=c,ld(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot==`function`)try{Pe.onPostCommitFiberRoot(Ne,a)}catch{}return!0}finally{P.p=i,N.T=r,Gu(e,t)}}function Ju(e,t,n){t=hi(n,t),t=ec(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(qe(e,2),cd(e))}function Yu(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(su===null||!su.has(r))){e=hi(n,e),n=tc(2),r=Ha(t,n,2),r!==null&&(nc(n,r,t,e),qe(r,2),cd(r));break}}t=t.return}}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Kl=!0,i.add(n),e=Zu.bind(null,e,t,n),t.then(e,e))}function Zu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zl===e&&(Vl&n)===n&&(Jl===4||Jl===3&&(Vl&62914560)===Vl&&300>we()-ru?!(Rl&2)&&Eu(e,0):Zl|=n,$l===Vl&&($l=0)),cd(e)}function Qu(e,t){t===0&&(t=Ge()),e=ei(e,t),e!==null&&(qe(e,t),cd(e))}function $u(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qu(e,n)}function ed(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),Qu(e,n)}function td(e,t){return be(e,t)}var nd=null,rd=null,id=!1,ad=!1,od=!1,sd=0;function cd(e){e!==rd&&e.next===null&&(rd===null?nd=rd=e:rd=rd.next=e),ad=!0,id||(id=!0,hd())}function ld(e,t){if(!od&&ad){od=!0;do for(var n=!1,r=nd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ie(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,md(r,a))}else a=Vl,a=He(r,r===zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ue(r,a)||(n=!0,md(r,a));r=r.next}while(n);od=!1}}function ud(){dd()}function dd(){ad=id=!1;var e=0;sd!==0&&Qd()&&(e=sd);for(var t=we(),n=null,r=nd;r!==null;){var i=r.next,a=fd(r,t);a===0?(r.next=null,n===null?nd=i:n.next=i,i===null&&(rd=n)):(n=r,(e!==0||a&3)&&(ad=!0)),r=i}cu!==0&&cu!==5||ld(e,!1),sd!==0&&(sd=0)}function fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ie(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=We(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=zl,n=Vl,n=He(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&xe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ue(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&xe(r),$e(n)){case 2:case 8:n=De;break;case 32:n=Oe;break;case 268435456:n=Ae;break;default:n=Oe}return r=pd.bind(null,e),n=be(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&xe(r),e.callbackPriority=2,e.callbackNode=null,2}function pd(e,t){if(cu!==0&&cu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ku()&&e.callbackNode!==n)return null;var r=Vl;return r=He(e,e===zl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(bu(e,r,t),fd(e,we()),e.callbackNode!=null&&e.callbackNode===n?pd.bind(null,e):null)}function md(e,t){if(Ku())return null;bu(e,t,!0)}function hd(){nf(function(){Rl&6?be(Ee,ud):dd()})}function gd(){if(sd===0){var e=ua;e===0&&(e=B,B<<=1,!(B&261888)&&(B=256)),sd=e}return sd}function _d(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Jt(``+e)}function vd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function yd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=_d((i[it]||null).action),o=r.submitter;o&&(t=(t=o[it]||null)?_d(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new _n(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(sd!==0){var e=o?vd(i,o):new FormData(i);Es(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?vd(i,o):new FormData(i),Es(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var bd=0;bd<Gr.length;bd++){var xd=Gr[bd];Kr(xd.toLowerCase(),`on`+(xd[0].toUpperCase()+xd.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),bt(`onMouseEnter`,[`mouseout`,`mouseover`]),bt(`onMouseLeave`,[`mouseout`,`mouseover`]),bt(`onPointerEnter`,[`pointerout`,`pointerover`]),bt(`onPointerLeave`,[`pointerout`,`pointerover`]),yt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),yt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),yt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),yt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Sd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Cd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Sd));function wd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}}}}function Td(e,t){var n=t[ot];n===void 0&&(n=t[ot]=new Set);var r=e+`__bubble`;n.has(r)||(kd(t,e,2,!1),n.add(r))}function Ed(e,t,n){var r=0;t&&(r|=4),kd(n,e,r,t)}var Dd=`_reactListening`+Math.random().toString(36).slice(2);function Od(e){if(!e[Dd]){e[Dd]=!0,_t.forEach(function(t){t!==`selectionchange`&&(Cd.has(t)||Ed(t,!1,e),Ed(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dd]||(t[Dd]=!0,Ed(`selectionchange`,!1,t))}}function kd(e,t,n,r){switch(bp(t)){case 2:var i=mp;break;case 8:i=hp;break;default:i=gp}n=i.bind(null,t,n,e),i=void 0,!on||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ad(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ft(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}nn(function(){var r=a,i=Zt(n),o=[];a:{var s=Wr.get(e);if(s!==void 0){var l=_n,u=e;switch(e){case`keypress`:if(fn(n)===0)break a;case`keydown`:case`keyup`:l=Fn;break;case`focusin`:u=`focus`,l=En;break;case`focusout`:u=`blur`,l=En;break;case`beforeblur`:case`afterblur`:l=En;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Tn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Ln;break;case Lr:case Rr:case zr:l=Dn;break;case Ur:l=Rn;break;case`scroll`:case`scrollend`:l=yn;break;case`wheel`:l=zn;break;case`copy`:case`cut`:case`paste`:l=On;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=In;break;case`toggle`:case`beforetoggle`:l=Bn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=rn(m,p),g!=null&&d.push(jd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==Xt&&(u=n.relatedTarget||n.fromElement)&&(ft(u)||u[at]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ft(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=In,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:mt(l),h=u==null?s:mt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,ft(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Nd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Pd(o,s,l,d,!1),u!==null&&f!==null&&Pd(o,f,u,d,!0)}}a:{if(s=r?mt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=sr;else if(tr(s))if(cr)v=_r;else{v=hr;var y=mr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Gt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Lt(s,`number`,s.value)}switch(y=r?mt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(o,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(o,n,i)}var b;if(Hn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}
vendor: 4,214 bytes, lines 9-10
9else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Gn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=dn()):(cn=i,ln=`value`in cn?cn.value:cn.textContent,Zn=!0)),y=Md(r,x),0<y.length&&(x=new kn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Wn?Qn(e,n):$n(e,n))&&(x=Md(r,`onBeforeInput`),0<x.length&&(y=new kn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),yd(o,e,r,n,i)}wd(o,t)})}function jd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Md(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=rn(e,n),i!=null&&r.unshift(jd(e,i,a)),i=rn(e,t),i!=null&&r.push(jd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Nd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=rn(n,a),l!=null&&o.unshift(jd(n,l,c))):i||(l=rn(n,a),l!=null&&o.push(jd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Fd=/\r\n?/g,Id=/\u0000|\uFFFD/g;function Ld(e){return(typeof e==`string`?e:``+e).replace(Fd,` 10`).replace(Id,``)}function Rd(e,t){return t=Ld(t),Ld(e)===t}function zd(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Vt(e,``+r);break;case`className`:V(e,`class`,r);break;case`tabIndex`:V(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:V(e,n,r);break;case`style`:Wt(e,r,a);break;case`data`:if(t!==`object`){V(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&zd(e,t,`name`,i.name,i,null),zd(e,t,`formEncType`,i.formEncType,i,null),zd(e,t,`formMethod`,i.formMethod,i,null),zd(e,t,`formTarget`,i.formTarget,i,null)):(zd(e,t,`encType`,i.encType,i,null),zd(e,t,`method`,i.method,i,null),zd(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`onScroll`:r!=null&&Td(`scroll`,e);break;case`onScrollEnd`:r!=null&&Td(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Jt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInl
10ine`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Td(`beforetoggle`,e),Td(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Et(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Et(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Kt.get(n)||n,Tt(e,n,r))}}function Bd(e,t,n,r,i,a){switch(n){case`style`:Wt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Vt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Vt(e,``+r);break;case`onScroll`:r!=null&&Td(`scroll`,e);break;case`onScrollEnd`:r!=null&&Td(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!vt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[it]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Tt(e,n,r)}}}function Vd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Td(`error`,e),Td(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:zd(e,t,a,s,n,null)}}i&&zd(e,t,`srcSet`,n.srcSet,n,null),r&&zd(e,t,`src`,n.src,n,null);return;case`input`:Td(`invalid`,e);var c=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(o(137,t));break;default:zd(e,t,r,d,n,null)}}It(e,a,c,l,u,s,i,!1);return;case`select`:for(i in Td(`invalid`,e),r=s=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:zd(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&Rt(e,!!r,n,!0):Rt(e,!!r,t,!1);return;case`textarea`:for(s in Td(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(o(91));break;default:zd(e,t,s,c,n,null)}Bt(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:zd(e,t,l,r,n,null)}return;case`dialog`:Td(`beforetoggle`,e),Td(`toggle`,e),Td(`cancel`,e),Td(`close`,e);break;case`iframe`:case`object`:Td(`load`,e);break;case`video`:case`audio`:for(r=0;r<Sd.length;r++)Td(Sd[r],e);break;case`image`:Td(`error`,e),Td(`load`,e);break;case`details`:Td(`toggle`,e);break;case`embed`:case`source`:case`link`:Td(`error`,e),Td(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:zd(e,t,u,r,n,null)}return;default:if(Gt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Bd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&zd(e,t,c,r,n,null))}function Hd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||zd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(o(137,t));break;default:m!==f&&zd(e,t,p,m,r,f)}}Ft(e,s,c,l,u,d,a,i);return;case`select`:for(a in m=s=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||zd(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:s=a;default:a!==l&&zd(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Rt(e,!!n,n?[]:``,!1):Rt(e,!!n,t,!0)):Rt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:zd(e,t,c,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(o(91));break;default:i!==a&&zd(e,t,s,i,r,a)}zt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:zd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:zd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&zd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(o(137,t));break;default:zd(e,t,u,p,r,m)}return;default:if(Gt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Bd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Bd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&zd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||zd(e,t,f,p,r,m)}function Ud(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Wd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ud(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ud(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Gd=null,Kd=null;function qd(e){return e.nodeType===9?e:e.ownerDocument}function Jd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Yd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Xd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zd=null;function Qd(){var e=window.event;return e&&e.type===`popstate`?e===Zd?!1:(Zd=e,!0):(Zd=null,!1)}var $d=typeof setTimeout==`function`?setTimeout:void 0,ef=typeof clearTimeout==`function`?clearTimeout:void 0,tf=typeof Promise==`function`?Promise:void 0,nf=typeof queueMicrotask==`function`?queueMicrotask:tf===void 0?$d:function(e){return tf.resolve(null).then(e).catch(rf)};function rf(e){setTimeout(function(){throw e})}function af(e){return e===`head`}function of(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),zp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ut]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bf(e.ownerDocument.body);n=i}while(n);zp(t)}function sf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function cf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cf(n),dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function lf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ut])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hf(e.nextSibling),e===null)break}return null}function uf(e,t,n){if(t===``)return null;for(;
vendor: 17,955 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hf(e.nextSibling),e===null))return null;return e}function df(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hf(e.nextSibling),e===null))return null;return e}function ff(e){return e.data===`$?`||e.data===`$~`}function pf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function mf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var gf=null;function _f(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return hf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function vf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function yf(e,t,n){switch(t=qd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(o(452));return e;case`head`:if(e=t.head,!e)throw Error(o(453));return e;case`body`:if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function bf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var xf=new Map,Sf=new Set;function Cf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wf=P.d;P.d={f:Tf,r:Ef,D:kf,C:Af,L:jf,m:Mf,X:Pf,S:Nf,M:Ff};function Tf(){var e=wf.f(),t=wu();return e||t}function Ef(e){var t=pt(e);t!==null&&t.tag===5&&t.type===`form`?Os(t):wf.r(e)}var Df=typeof document>`u`?null:document;function Of(e,t,n){var r=Df;if(r&&typeof t==`string`&&t){var i=Pt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sf.has(i)||(Sf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Vd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function kf(e){wf.D(e),Of(`dns-prefetch`,e,null)}function Af(e,t){wf.C(e,t),Of(`preconnect`,e,t)}function jf(e,t,n){wf.L(e,t,n);var r=Df;if(r&&e&&t){var i=`link[rel="preload"][as="`+Pt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Pt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Pt(n.imageSizes)+`"]`)):i+=`[href="`+Pt(e)+`"]`;var a=i;switch(t){case`style`:a=Lf(e);break;case`script`:a=Vf(e)}xf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rf(a))||t===`script`&&r.querySelector(Hf(a))||(t=r.createElement(`link`),Vd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Mf(e,t){wf.m(e,t);var n=Df;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Pt(r)+`"][href="`+Pt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vf(e)}if(!xf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),xf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hf(a)))return}r=n.createElement(`link`),Vd(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Nf(e,t,n){wf.S(e,t,n);var r=Df;if(r&&e){var i=ht(r).hoistableStyles,a=Lf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xf.get(a))&&Gf(e,n);var c=o=r.createElement(`link`);gt(c),Vd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pf(e,t){wf.X(e,t);var n=Df;if(n&&e){var r=ht(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=m({src:e,async:!0},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),gt(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t){wf.M(e,t);var n=Df;if(n&&e){var r=ht(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),gt(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t,n,r){var i=(i=oe.current)?Cf(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Lf(n.href),n=ht(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lf(n.href);var a=ht(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(Rf(e)))&&!a._p&&(s.instance=a,s.state.loading=5),xf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xf.set(e,n),a||Bf(i,e,n,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Vf(n),n=ht(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Lf(e){return`href="`+Pt(e)+`"`}function Rf(e){return`link[rel="stylesheet"][`+e+`]`}function zf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Bf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Vd(t,`link`,n),gt(t),e.head.appendChild(t))}function Vf(e){return`[src="`+Pt(e)+`"]`}function Hf(e){return`script[async]`+e}function Uf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Pt(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Vd(r,`style`,i),Wf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Lf(n.href);var a=e.querySelector(Rf(i));if(a)return t.state.loading|=4,t.instance=a,gt(a),a;r=zf(n),(i=xf.get(i))&&Gf(r,i),a=(e.ownerDocument||e).createElement(`link`),gt(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Vd(a,`link`,r),t.state.loading|=4,Wf(a,n.precedence,e),t.instance=a;case`script`:return a=Vf(n.src),(i=e.querySelector(Hf(a)))?(t.instance=i,gt(i),i):(r=n,(i=xf.get(a))&&(r=m({},n),Kf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),gt(i),Vd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wf(r,n.precedence,e));return t.instance}function Wf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qf=null;function Jf(e,t,n){if(qf===null){var r=new Map,i=qf=new Map;i.set(n,r)}else i=qf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ut]||a[rt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lf(r.href),a=t.querySelector(Rf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=zf(r),(i=xf.get(i))&&Gf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Vd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $f=0;function ep(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$f===0&&($f=62500*Wd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$f?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=tp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ap={$$typeof:S,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function op(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function sp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new op(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},za(a),e}function cp(e){return e?(e=ri,e):ri}function lp(e,t,n,r,i,a){i=cp(i),r.context===null?r.context=i:r.pendingContext=i,r=Va(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ha(e,r,t),n!==null&&(yu(n,e,t),Ua(n,e,t))}function q(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function up(e,t){q(e,t),(e=e.alternate)&&q(e,t)}function dp(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&yu(t,e,67108864),up(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=_u();t=Qe(t);var n=ei(e,t);n!==null&&yu(n,e,t),up(e,t)}}var pp=!0;function mp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,gp(e,t,n,r)}finally{P.p=a,N.T=i}}function hp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,gp(e,t,n,r)}finally{P.p=a,N.T=i}}function gp(e,t,n,r){if(pp){var i=_p(r);if(i===null)Ad(e,t,r,vp,n),kp(e,r);else if(jp(i,e,t,n,r))r.stopPropagation();else if(kp(e,r),t&4&&-1<Op.indexOf(e)){for(;i!==null;){var a=pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ve(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ie(o);s.entanglements[1]|=c,o&=~c}cd(a),!(Rl&6)&&(au=we()+500,ld(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&yu(s,a,2),wu(),up(a,2)}if(a=_p(r),a===null&&Ad(e,t,r,vp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ad(e,t,r,null,n)}}function _p(e){return e=Zt(e),yp(e)}var vp=null;function yp(e){if(vp=null,e=ft(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vp=e,null}function bp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Te()){case Ee:return 2;case De:return 8;case Oe:case ke:return 32;case Ae:return 268435456;default:return 32}default:return 32}}var xp=!1,Sp=null,Cp=null,wp=null,Tp=new Map,Ep=new Map,Dp=[],Op=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function kp(e,t){switch(e){case`focusin`:case`focusout`:Sp=null;break;case`dragenter`:case`dragleave`:Cp=null;break;case`mouseover`:case`mouseout`:wp=null;break;case`pointerover`:case`pointerout`:Tp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ep.delete(t.pointerId)}}function Ap(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=pt(t),t!==null&&dp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function jp(e,t,n,r,i){switch(t){case`focusin`:return Sp=Ap(Sp,e,t,n,r,i),!0;case`dragenter`:return Cp=Ap(Cp,e,t,n,r,i),!0;case`mouseover`:return wp=Ap(wp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Tp.set(a,Ap(Tp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ep.set(a,Ap(Ep.get(a)||null,e,t,n,r,i)),!0}return!1}function Mp(e){var t=ft(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,tt(e.priority,function(){fp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,tt(e.priority,function(){fp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Np(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_p(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xt=r,n.target.dispatchEvent(r),Xt=null}else return t=pt(n),t!==null&&dp(t),e.blockedOn=n,!1;t.shift()}return!0}function Pp(e,t,n){Np(e)&&n.delete(t)}function Fp(){xp=!1,Sp!==null&&Np(Sp)&&(Sp=null),Cp!==null&&Np(Cp)&&(Cp=null),wp!==null&&Np(wp)&&(wp=null),Tp.forEach(Pp),Ep.forEac
10h(Pp)}function Ip(e,n){e.blockedOn===n&&(e.blockedOn=null,xp||(xp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Fp)))}var Lp=null;function Rp(e){Lp!==e&&(Lp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Lp===e&&(Lp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(yp(r||n)===null)continue;break}var a=pt(n);a!==null&&(e.splice(t,3),t-=3,Es(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function zp(e){function t(t){return Ip(t,e)}Sp!==null&&Ip(Sp,e),Cp!==null&&Ip(Cp,e),wp!==null&&Ip(wp,e),Tp.forEach(t),Ep.forEach(t);for(var n=0;n<Dp.length;n++){var r=Dp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Dp.length&&(n=Dp[0],n.blockedOn===null);)Mp(n),n.blockedOn===null&&Dp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[it]||null;if(typeof a==`function`)o||Rp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[it]||null)s=o.formAction;else if(yp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Rp(n)}}}function Bp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Vp(e){this._internalRoot=e}Hp.prototype.render=Vp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current;lp(n,_u(),e,t,null,null)},Hp.prototype.unmount=Vp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),wu(),t[at]=null}};function Hp(e){this._internalRoot=e}Hp.prototype.unstable_scheduleHydration=function(e){if(e){var t=et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dp.length&&t!==0&&t<Dp[n].priority;n++);Dp.splice(n,0,e),n===0&&Mp(e)}};var Up=n.version;if(Up!==`19.2.0`)throw Error(o(527,Up,`19.2.0`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(o(188)):(e=Object.keys(e).join(`,`),Error(o(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Wp={bundleType:0,version:`19.2.0`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Gp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gp.isDisabled&&Gp.supportsFiber)try{Ne=Gp.inject(Wp),Pe=Gp}catch{}}e.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var r=!1,i=``,a=Ys,c=Xs,l=Zs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=sp(e,1,!0,t,n??null,r,i,u,a,c,l,Bp),t.context=cp(null),n=t.current,r=_u(),r=Qe(r),i=Va(r),i.callback=null,Ha(n,i,r),n=r,t.current.lanes=n,qe(t,n),cd(t),e[at]=t.current,Od(e),new Hp(t)}})),Jn=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=qn()})),Yn=`__TSS_CONTEXT`,Xn=Symbol.for(`TSS_SERVER_FUNCTION`),Zn=`application/x-tss-framed`,Qn={JSON:0,CHUNK:1,END:2,ERROR:3};`${Zn}`;var $n=/;\s*v=(\d+)/;function er(e){let t=e.match($n);return t?parseInt(t[1],10):void 0}function tr(e){let t=er(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var nr=()=>window.__TSS_START_OPTIONS__;function rr(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}
10function ir(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ar(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=ir(r):Array.isArray(t)?t.push(ir(r)):n[e]=[t,ir(r)]}return n}function or(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),b=n([]),x=r(()=>sr(o,_.get())),S=r(()=>sr(s,v.get())),C=r(()=>sr(c,b.get())),w=r(()=>_.get()[0]),T=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),E=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:x.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),O=y(64);function k(e){let t=O.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),O.set(e,t)),t}let A={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:T,matchRouteDeps:E,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:k,setMatches:j,setPending:M,setCached:ee};j(e.matches),a?.(A);function j(e){cr(e,o,_,n,i)}function M(e){cr(e,s,v,n,i)}function ee(e){cr(e,c,b,n,i)}return A}function sr(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function cr(e,t,n,r,i){let a=e.map(e=>e.id),s=new Set(a);i(()=>{for(let e of t.keys())s.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}o(n.get(),a)||n.set(a)})}function lr(){try{return sessionStorage}catch{return}}var ur=`tsr-scroll-restoration-v1_3`,dr=lr();function fr(){try{return JSON.parse(dr?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function pr(){try{dr?.setItem(ur,JSON.stringify(mr))}catch{}}var mr=fr(),hr=`data-scroll-restoration-id`,gr=e=>e.state.__TSR_key||e.href;function _r(e){let t=e.getAttribute(hr);if(t)return`[${hr}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var vr=!1,yr=`window`;function br(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function xr(e){let t=[];for(let n of e){if(n===yr)continue;let e=br(n);e&&t.push(e)}return t}function Sr(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||gr,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(vr||!r.restoring))if(e.target===document)o(yr,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=mr[e]||={};for(let[e,n]of a)e===yr?t[yr]=n:e.isConnected&&(t[_r(e)]=n)};n&&!r.restoration&&(r.restoration=!0,vr=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),pr()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=mr[u];if(e){let t=mr[l];for(let n in e){if(n===yr){if(s)continue}else{let e=br(n);if(!e||s&&o&&(c??=xr(o),c.includes(e)))continue}t||=mr[l]={},t[n]??=e[n]}}}vr=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=ui.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?mr[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===yr){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=br(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=xr(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{vr=!1}}
10))}var Cr=Tr(JSON.parse),wr=Er(JSON.stringify,JSON.parse);function Tr(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=ar(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Er(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=rr(e,r);return t?`?${t}`:``}}var Dr=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Or=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),kr=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ar=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},jr=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Mr=(e,t,n)=>{if(!(!R(n)&&!F(n)))throw R(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:R(n)?`redirected`:F(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Ar(e,t.index),isFetching:!1,error:n})),F(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),R(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Nr=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Pr=(e,t,n)=>{let r=Ar(e,n);e.updateMatch(t,e=>({...e,context:r}))},Fr=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Mr(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Mr(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!R(n)&&!F(n)&&(e.serialError??=n)},Ir=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!kr(e,t)&&(n.options.loader||n.options.beforeLoad||qr(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Dr(e)},i);r._nonReactive.pendingTimeout=t}},Lr=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ir(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Mr(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Rr=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=N(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;
10o&&Fr(e,n,o),s&&Fr(e,n,s),Ir(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=N();let p={...Ar(e,n,!1),...i.__routeContext},{search:m,params:h,cause:g}=i,_=kr(e,t),v={search:m,abortController:c,params:h,preload:_,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},y=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(R(r)||F(r))&&(u(),Fr(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},b;try{if(b=r.options.beforeLoad(v),f(b))return u(),b.catch(t=>{Fr(e,n,t)}).then(y)}catch(t){u(),Fr(e,n,t)}y(b)},zr=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Rr(e,n,t,i),s=()=>{if(Nr(e,n))return;let t=Lr(e,n,i);return f(t)?t.then(o):o()};return a()},Br=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Vr=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Ar(e,r),d=kr(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Hr=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Kr(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Vr(e,t,n,r,i)),l=!!s&&f(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Mr(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Ar(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Ar(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,F(t)&&await i.options.notFoundComponent?.preload?.(),Mr(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Mr(e,e.router.getMatch(n),t)}!R(o)&&!F(o)&&await Kr(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Ar(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Mr(e,r,t)}},Ur=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Vr(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Hr(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){R(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Hr(e,t,i,n,d):Pr(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.
10staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Nr(e,i)){if(!e.router.getMatch(i))return e.matches[n];Pr(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=kr(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Mr(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=N(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Wr(e){let t=e,n=[];Or(t.router)&&Dr(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=zr(t,e);f(n)&&await n}catch(e){if(R(e))throw e;if(F(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?jr(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(Ur(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(R(e))throw e;F(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=jr(t,l);e===void 0&&P();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Kr(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Kr(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Br(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Dr(t);if(f(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Gr(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Kr(e,t=Jr){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Jr?(()=>{if(e._componentsPromise===void 0){let t=Gr(e,Jr);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Gr(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function qr(e){for(let t of Jr)if(e.options[t]?.preload)return!0;return!1}var Jr=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Yr(e){return{input:({url:t})=>{for(let n of e)t=Zr(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Qr(e[n],t);return t}}}function Xr(e){let t=x(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=b([`/`,t,e.pathname]),e)}}function Zr(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Qr(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}var $r=`__TSR_index`,ei=`popstate`,ti=`beforeunload`;function ni(e){let t=e.getLocation(),n=new Set,r=r=>
10{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=oi(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[$r];i=ri(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[$r];i=ri(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[$r]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function ri(e,t){t||={};let n=si();return{...t,key:n,__TSR_key:n,[$r]:e}}function ii(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>oi(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=si();t.history.replaceState({[$r]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=oi(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[$r]-l.state[$r],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=ni({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ti,S,{capture:!0}),t.removeEventListener(ei,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ti,S,{capture:!0}),t.addEventListener(ei,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function ai(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function oi(e,t){let n=ai(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=si();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[$r]:0,key:a,__TSR_key:a}}}function si(){return(Math.random()+1).toString(36).substring(7)}function ci(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function li(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var ui=new WeakMap,di=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=v(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=ii()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=y(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=or(mi(this.latestLocation),e),Sr(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=x(o);t&&t!==`/`&&e.push(Xr({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Yr(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=ne(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&te(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
10{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:g(e).path,external:!1,searchStr:o,search:l(t?.search,i),hash:g(r.slice(1)).path,state:u(t?.state,a)}}let o=new URL(i,this.origin),s=Zr(this.rewrite,o),c=this.options.parseSearch(s.search),d=this.options.stringifySearch(c);return s.search=d,{href:s.href.replace(s.origin,``),publicHref:i,pathname:g(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:d,search:l(t?.search,c),hash:g(s.hash.slice(1)).path,state:u(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ee({base:e,to:t.includes(`//`)?w(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>gi({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,o=t.to?`${t.to}`:void 0,c=r.search,d=Object.assign(Object.create(null),r.params),f=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),p=o?this.resolvePathWithBase(f,o):f,m=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?d:Object.assign(d,E(t.params,d)),h=this.routesByPath[k(p)],_;if(h)_=this.getRouteBranch(h);else if(p.includes(`$`))_=[];else{let e=this.getMatchedRoutes(p);_=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(_=[..._,this.options.notFoundRoute])}if(_.length&&a(m))for(let e of _){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(m,t(m))}catch{}}let v=e.leaveParams?p:g(j({path:p,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=c;if(e._includeValidateSearch&&this.options.search?.strict){let e={};_.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,hi(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=_i({search:y,dest:t,destRoutes:_,_includeValidateSearch:e._includeValidateSearch}),y=l(c,y);let b=this.options.stringifySearch(y),x=t.hash===!0?n.hash:t.hash?E(t.hash,n.hash):void 0,S=x?`#${x}`:``,C=t.state===!0?n.state:t.state?E(t.state,n.state):{};C=u(n.state,C);let w=`${v}${b}${S}`,T,D,O=!1;if(this.rewrite){let e=new URL(w,this.origin),t=Qr(this.rewrite,e);T=e.href.replace(e.origin,``),t.origin===this.origin?D=t.pathname+t.search+t.hash:(D=t.href,O=!0)}else T=s(w),D=T;return{publicHref:D,href:T,pathname:v,search:y,searchStr:b,state:C,hash:x??``,external:O,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=C(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,E(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
10e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=c(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=k(this.latestLocation.href)===k(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=N(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=oi(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Zr(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(T(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?ui.set(this.latestLocation,t):ui.delete(this.latestLocation);let n=this.latestLocation,r=li(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Wr({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){R(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):F(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(li(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
10{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&T(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=Kr,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Wr({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(R(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});F(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=_(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!c(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?c(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??wr,parseSearch:e.parseSearch??Cr,protocolAllowlist:e.protocolAllowlist??h}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=D(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
10s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:k(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?yi(this.options.notFoundMode,a):void 0,c=Array(a.length),d=new Map;for(let e of this.stores.matchStores.values())e.routeId&&d.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],f,p,m;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=hi(r.options.validateSearch,{...n})??void 0;f={...n,...e},p={...i,...e},m=void 0}catch(e){let r=e;if(e instanceof fi||(r=new fi(e.message,{cause:e})),t?.throwOnError)throw r;f=n,p={},m=r}}let h=r.options.loaderDeps?.({search:f})??``,g=h?JSON.stringify(h):``,{interpolatedPath:_,usedParams:v}=j({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),y=r.id+_+g,b=this.getMatch(y),x=d.get(r.id),S=b?._strictParams??v,C;if(!b)try{bi(r,S)}catch(e){if(C=F(e)||R(e)?e:new pi(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(i,S);let w=x?`stay`:`enter`,T;if(b)T={...b,cause:w,params:x?.params??i,_strictParams:S,search:l(x?x.search:b.search,f),_strictSearch:p};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||qr(r)?`pending`:`success`;T={id:y,ssr:r.options.ssr,index:n,routeId:r.id,params:x?.params??i,_strictParams:S,pathname:_,updatedAt:Date.now(),search:x?l(x.search,f):f,_strictSearch:p,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:N()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:w,loaderDeps:x?u(x.loaderDeps,h):h,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(T.globalNotFound=s===r.id),T.searchError=m;let E=this.getParentContext(o);T.context={...E,...T.__routeContext,...T.__beforeLoadContext},c[n]=T}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=d.get(n.routeId);if(n.params=o?l(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let t=m(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=m(r),o={...e.search};for(let e of r)try{Object.assign(o,hi(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{bi(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},fi=class extends Error{},pi=class extends Error{};function mi(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function hi(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new fi(`Async validation not supported`);if(n.issues)throw new fi(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function gi({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=k(e),a,o=S(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function _i({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return vi(n)(e,t,r??!1)}function vi(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>
10t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=hi(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=E(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function yi(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return ie}function bi(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}var xi=Symbol.for(`TSR_DEFERRED_PROMISE`);function Si(e,t){let n=e;return n[xi]?n:(n[xi]={status:`pending`},n.then(e=>{n[xi].status=`success`,n[xi].data=e}).catch(e=>{n[xi].status=`error`,n[xi].error={data:(t?.serializeError??ci)(e),__isServerError:!0}}),n)}function Ci(e,t){if(e)return typeof e==`string`?e:e[t]}function wi(e){return e?.scriptFormat??`module`}function Ti(e,t,n){let r=Ei(t),i=Ci(n,`script`)??r.crossOrigin;return{...wi(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function Ei(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Di(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Oi(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var ki=Symbol.asyncIterator,Ai=Symbol.hasInstance,ji=Symbol.isConcatSpreadable,Mi=Symbol.iterator,Ni=Symbol.match,Pi=Symbol.matchAll,Fi=Symbol.replace,Ii=Symbol.search,Li=Symbol.species,Ri=Symbol.split,zi=Symbol.toPrimitive,Bi=Symbol.toStringTag,Vi=Symbol.unscopables,Hi={[ki]:0,[Ai]:1,[ji]:2,[Mi]:3,[Ni]:4,[Pi]:5,[Fi]:6,[Ii]:7,[Li]:8,[Ri]:9,[zi]:10,[Bi]:11,[Vi]:12},Ui={0:ki,1:Ai,2:ji,3:Mi,4:Ni,5:Pi,6:Fi,7:Ii,8:Li,9:Ri,10:zi,11:Bi,12:Vi},Wi={2:!0,3:!1,1:void 0,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Gi={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},Ki={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function qi(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function Ji(e){return qi(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}var Yi=Ji(2),Xi=Ji(3),Zi=Ji(1),Qi=Ji(0),$i=Ji(4),ea=Ji(5),ta=Ji(6),na=Ji(7);function ra(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case` 11`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return}}function ia(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=ra(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function aa(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return` 12`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function oa(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,aa)}var sa=`__SEROVAL_REFS__`,ca=new Map,la=new Map;function ua(e){return ca.has(e)}function da(e){return la.has(e)}function fa(e){if(ua(e))return ca.get(e);throw new to(e)}function pa(e){if(da(e))return la.get(e);throw new no(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,sa,{value:la,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,sa,{value:la,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,sa,{value:la,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,sa,{value:la,configurable:!0,writable:!1,enumerable:!1});function ma(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function ha(e){let t=Gi[ma(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function ga(e,t){let n=ha(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function _a(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function va(e){switch(e){case 1/0:return ea;case-1/0:return ta}return e===e?Object.is(e,-0)?$i:qi(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0):na}function ya(e){return qi(1,void 0,ia(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ba(e){return qi(3,void 0,``+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function xa(e){return qi(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Sa(e,t){let n=t.valueOf();return qi(5,e,n===n?t.toISOString():``,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ca(e,t,n){return qi(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function wa(e,t){return qi(6,e,void 0,ia(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ta(e,t){return qi(17,e,Hi[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Ea(e,t){return qi(18,e,ia(fa(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}
12function Da(e,t,n){return qi(25,e,n,ia(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Oa(e,t,n){return qi(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,_a(t),void 0)}function ka(e,t){return qi(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Aa(e,t,n){return qi(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function ja(e,t,n){return qi(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function Ma(e,t,n){return qi(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function Na(e,t,n){return qi(13,e,ma(t),void 0,ia(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function Pa(e,t,n){return qi(14,e,ma(t),void 0,ia(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function Fa(e,t){return qi(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function Ia(e,t){return qi(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function La(e,t){return qi(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Ra(e,t,n){return qi(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function za(e,t){return qi(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Ba(e,t){return qi(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Va(e,t){return qi(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Ha(e,t,n,r){return qi(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var{toString:Ua}=Object.prototype,Wa={parsing:1,serialization:2,deserialization:3};function Ga(e){return`Seroval Error (step: ${Wa[e]})`}var Ka=(e,t)=>Ga(e),qa=class extends Error{constructor(e,t){super(Ka(e,t)),this.cause=t}},Ja=class extends qa{constructor(e){super(`parsing`,e)}},Ya=class extends qa{constructor(e){super(`deserialization`,e)}};function Xa(e){return`Seroval Error (specific: ${e})`}var Za=class extends Error{constructor(e){super(Xa(1)),this.value=e}},Qa=class extends Error{constructor(e){super(Xa(2))}},$a=class extends Error{constructor(e){super(Xa(3))}},eo=class extends Error{constructor(e){super(Xa(4))}},to=class extends Error{constructor(e){super(Xa(5)),this.value=e}},no=class extends Error{constructor(e){super(Xa(6))}},ro=class extends Error{constructor(e){super(Xa(7))}},io=class extends Error{constructor(e){super(Xa(8))}},ao=class extends Error{constructor(e){super(Xa(9))}},oo=class{constructor(e,t){this.value=e,this.replacement=t}},so=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},co=()=>{let e=[],t=[],n=!0,r=!1,i=0,a={flush(e,n,r){for(r=0;r<i;r++)t[r]&&t[r][n](e)},up(t,i,a,o){for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},on(e,r){return n&&(r=i++,t[r]=e),a.up(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)}}};return{__SEROVAL_STREAM__:!0,on(e){return a.on(e)},next(t){n&&(e.push(t),a.flush(t,`next`))},throw(i){n&&(e.push(i),a.flush(i,`throw`),n=!1,r=!1,t.length=0)},return(i){n&&(e.push(i),a.flush(i,`return`),n=!1,r=!0,t.length=0)}}},lo=e=>t=>()=>{let n=0,r={[e](){return r},next(){if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r},uo=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c={finalize(e=0,t=s.length){for(;e<t;e++)s[e].s({done:!0,value:void 0})}};n.on({next(e){let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw(e){let t=s.shift();t&&t.f(e),c.finalize(),i=o.length,a=!0,o.push(e)},return(e){let t=s.shift();t&&t.s({done:!0,value:e}),c.finalize(),i=o.length,o.push(e)}});let l={[e](){return l},next(){if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l},fo=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};
12function po(e){return`__SEROVAL_SEQUENCE__`in e}function mo(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function ho(e){let t=[],n=-1,r=-1,i=e[Mi]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return mo(t,n,r)}var go=lo(Mi);function _o(e){return go(e)}var vo={},yo={},bo={0:{},1:{},2:{},3:{},4:{},5:{}};function xo(e){return`__SEROVAL_STREAM__`in e}function So(){return co()}function Co(e){let t=So(),n=e[ki]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var wo=uo(ki,so);function To(e){return wo(e)}async function Eo(e){try{return[1,await e]}catch(e){return[0,e]}}function Do(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Oo(e,t){e.marked.add(t)}function ko(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Ao(e,t){let n=e.refs.get(t);return n==null?{type:0,value:ko(e,t)}:(Oo(e,n),{type:1,value:xa(n)})}function jo(e,t){let n=Ao(e,t);return n.type===1?n:ua(t)?{type:2,value:Ea(n.value,t)}:n}function Mo(e,t){let n=jo(e,t);if(n.type!==0)return n.value;if(t in Hi)return Ta(n.value,t);throw new Za(t)}function No(e,t){let n=Ao(e,bo[t]);return n.type===1?n.value:qi(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function Po(e){let t=Ao(e,vo);return t.type===1?t.value:qi(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Mo(e,Mi),void 0,void 0,void 0)}function Fo(e){let t=Ao(e,yo);return t.type===1?t.value:qi(29,t.value,void 0,void 0,void 0,void 0,void 0,[No(e,1),Mo(e,ki)],void 0,void 0,void 0,void 0)}function Io(e,t,n,r){return qi(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,_a(t),void 0)}function Lo(e,t,n,r){return qi(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,No(e,0),void 0,void 0,void 0)}function Ro(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return qi(19,t,ia(btoa(i)),void 0,void 0,void 0,void 0,void 0,No(e,5),void 0,void 0,void 0)}function zo(e,t){return{base:Do(e,t),child:void 0}}var Bo=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return os(this._p,this.depth,e)}};async function Vo(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await os(e,t,n[i]):r[i]=0;return r}async function Ho(e,t,n,r){return Oa(n,r,await Vo(e,t,r))}async function Uo(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(ia(r[n][0])),a.push(await os(e,t,r[n][1]));return Mi in n&&(i.push(Mo(e.base,Mi)),a.push(Ia(Po(e.base),await os(e,t,ho(n))))),ki in n&&(i.push(Mo(e.base,ki)),a.push(La(Fo(e.base),await os(e,t,Co(n))))),Bi in n&&(i.push(Mo(e.base,Bi)),a.push(ya(n[Bi]))),ji in n&&(i.push(Mo(e.base,ji)),a.push(n[ji]?Yi:Xi)),{k:i,v:a}}async function Wo(e,t,n,r,i){return Io(n,r,i,await Uo(e,t,r))}async function Go(e,t,n,r){return ka(n,await os(e,t,r.valueOf()))}async function Ko(e,t,n,r){return Aa(n,r,await os(e,t,r.buffer))}async function qo(e,t,n,r){return ja(n,r,await os(e,t,r.buffer))}async function Jo(e,t,n,r){return Ma(n,r,await os(e,t,r.buffer))}async function Yo(e,t,n,r){let i=ga(r,e.base.features);return Na(n,r,i?await Uo(e,t,i):void 0)}async function Xo(e,t,n,r){let i=ga(r,e.base.features);return Pa(n,r,i?await Uo(e,t,i):void 0)}async function Zo(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await os(e,t,n)),a.push(await os(e,t,o));return Lo(e.base,n,i,a)}async function Qo(e,t,n,r){let i=[];for(let n of r.keys())i.push(await os(e,t,n));return Fa(n,i)}async function $o(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return Da(n,o.tag,await o.parse.async(r,new Bo(e,t),{id:n}))}}async function es(e,t,n,r){let[i,a]=await Eo(r);return qi(12,n,i,void 0,void 0,void 0,void 0,void 0,await os(e,t,a),void 0,void 0,void 0)}function ts(e,t,n,r,i){let a=[],o=n.on({next:n=>{Oo(this.base,t),os(this,e,n).then(e=>{a.push(za(t,e))},e=>{i(e),o()})},throw:n=>{Oo(this.base,t),os(this,e,n).then(e=>{a.push(Ba(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{Oo(this.base,t),os(this,e,n).then(e=>{a.push(Va(t,e)),r(a),o()},e=>{i(e),o()})}})}async function ns(e,t,n,r){return Ra(n,No(e.base,4),await new Promise(ts.bind(e,t,n,r)))}async function rs(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await os(e,t,r.v[n]);return Ha(n,i,r.t,r.d)}async function is(e,t,n,r){if(Array.isArray(r))return Ho(e,t,n,r);if(xo(r))return ns(e,t,n,r);if(po(r))return rs(e,t,n,r);let i=r.constructor;if(i!==void 0&&typeof i!=`function`){let e=Object.getPrototypeOf(r);i=e===null?void 0:e.constructor}if(i===oo)return os(e,t,r.replacement);let a=await $o(e,t,n,r);if(a)return a;switch(i){case Object:return Wo(e,t,n,r,!1);case void 0:return Wo(e,t,n,r,!0);case Date:return Sa(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Yo(e,t,n,r);case Number:case Boolean:case String:case BigInt:return Go(e,t,n,r);case ArrayBuffer:return Ro(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ko(e,t,n,r);case DataView:return Jo(e,t,n,r);case Map:return Zo(e,t,n,r);case Set:return Qo(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return es(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return wa(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return qo(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Xo(e,t,n,r);if(o&64&&typeof Temporal<`u`)switch(i){case Temporal.Instant:return Ca(n,0,r);case Temporal.Duration:return Ca(n,1,r);case Temporal.PlainDate:return Ca(n,2,r);case Temporal.PlainDateTime:return Ca(n,3,r);case Temporal.PlainMonthDay:return Ca(n,4,r);case Temporal.PlainTime:return Ca(n,5,r);case Temporal.PlainYearMonth:return Ca(n,6,r);case Temporal.ZonedDateTime:return Ca(n,7,r);default:break}if(r instanceof Error)return Yo(e,t,n,r);if(Mi in r||ki in r)return Wo(e,t,n,r,!!i);throw new Za(r)}async function as(e,t,n){let r=jo(e.base,n);if(r.type!==0)return r.value;let i=await $o(e,t,r.value,n);if(i)return i;throw new Za(n)}async function os(e,t,n){if(t>=e.base.depthLimit)throw new ao(e.base.depthLimit);switch(typeof n){case`boolean`:return n?Yi:Xi;case`undefined`:return Zi;case`string`:return ya(n);case`number`:return va(n);case`bigint`:return ba(n);case`object`:if(n){let r=jo(e.base,n);return r.type===0?await is(e,t+1,r.value,n):r.value}return Qi;case`symbol`:return Mo(e.base,n);case`function`:return as(e,t,n);default:throw new Za(n)}}async function ss(e,t){try{return await os(e,0,t)}
12catch(e){throw e instanceof Ja?e:new Ja(e)}}function cs(e){return e}function ls(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&ls(e,r.extends))}}function us(e){if(e){let t=new Set;return ls(t,e),[...t]}}function ds(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new ro(e)}}function fs(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function ps(e){switch(e){case ki:case ji:case Bi:case Mi:return!0;default:return!1}}var ms=1e6,hs=1e4,gs=2e4;function _s(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var vs=1e3;function ys(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??127^(t.disabledFeatures||0),depthLimit:t.depthLimit||vs}}function bs(e){return{mode:2,base:ys(2,e),child:void 0}}var xs=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return sc(this._p,this.depth,e)}};function Ss(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new io({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Cs(e,t,n){return Ss(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function ws(e,t,n){return Ss(e.base,t),e.base.refs.set(t,n),n}function Ts(e,t,n){return e.mode===1?Cs(e,t,n):ws(e,t,n)}function Es(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new io(e)}function Ds(e,t){return Ts(e,t.i,pa(oa(t.s)))}function Os(e,t,n){let r=n.a,i=r.length,a=Ts(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=sc(e,t,o));return _s(a,n.o),a}function ks(e,t,n){fs(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function As(e,t,n,r,i){if(typeof r==`string`)ks(n,oa(r),sc(e,t,i));else{let a=sc(e,t,r);switch(typeof a){case`string`:ks(n,a,sc(e,t,i));break;case`symbol`:ps(a)&&(n[a]=sc(e,t,i));break;default:throw new io(r)}}}function js(e,t,n){e.base.refs.types.set(t,n)}function Ms(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new io(t)}function Ns(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)As(e,t,r,i[a],o[a]);return r}function Ps(e,t,n){let r=Ts(e,n.i,n.t===10?{}:Object.create(null));return Ns(e,t,n.p,r),_s(r,n.o),r}function Fs(e,t){return Ts(e,t.i,new Date(t.s))}function Is(e,t){if(!(e.base.features&64))throw new Qa(t);let n;switch(t.c){case 0:n=Temporal.Instant.from(t.s);break;case 1:n=Temporal.Duration.from(t.s);break;case 2:n=Temporal.PlainDate.from(t.s);break;case 3:n=Temporal.PlainDateTime.from(t.s);break;case 4:n=Temporal.PlainMonthDay.from(t.s);break;case 5:n=Temporal.PlainTime.from(t.s);break;case 6:n=Temporal.PlainYearMonth.from(t.s);break;case 7:n=Temporal.ZonedDateTime.from(t.s);break;default:throw new io(t)}return Ts(e,t.i,n)}function Ls(e,t){if(e.base.features&32){let n=oa(t.c);if(n.length>gs)throw new io(t);return Ts(e,t.i,new RegExp(n,t.m))}throw new Qa(t)}function Rs(e,t,n){let r=Ts(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(sc(e,t,a[i]));return r}function zs(e,t,n){let r=Ts(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(sc(e,t,a[i]),sc(e,t,o[i]));return r}function Bs(e,t){if(t.s.length>ms)throw new io(t);return Ts(e,t.i,fo(oa(t.s)))}function Vs(e,t,n){let r=ds(n.c),i=sc(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new io(n);return Ts(e,n.i,new r(i,a,n.l))}function Hs(e,t,n){let r=sc(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new io(n);return Ts(e,n.i,new DataView(r,i,n.l))}function Us(e,t,n,r){if(n.p){let i=Ns(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function Ws(e,t,n){return Us(e,t,n,Ts(e,n.i,AggregateError([],oa(n.m))))}function Gs(e,t,n){let r=Es(n,Ki,n.s);return Us(e,t,n,Ts(e,n.i,new r(oa(n.m))))}function Ks(e,t,n){let r=so(),i=Ts(e,n.i,r.p),a=sc(e,t,n.f);return n.s?r.s(a):r.f(a),i}
12function qs(e,t,n){return Ts(e,n.i,Object(sc(e,t,n.f)))}function Js(e,t,n){let r=e.base.plugins;if(r){let i=oa(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Ts(e,n.i,o.deserialize(n.s,new xs(e,t),{id:n.i}))}}throw new $a(n.c)}function Ys(e,t){let n=Ts(e,t.i,Ts(e,t.s,so()).p);return js(e,t.s,22),n}function Xs(e,t,n){let r=e.base.refs.get(n.i);if(r){Ms(e,n,n.i,22),r.s(sc(e,t,n.a[1]));return}throw new eo(`Promise`)}function Zs(e,t,n){let r=e.base.refs.get(n.i);if(r){Ms(e,n,n.i,22),r.f(sc(e,t,n.a[1]));return}throw new eo(`Promise`)}function Qs(e,t,n){return sc(e,t,n.a[0]),_o(sc(e,t,n.a[1]))}function $s(e,t,n){return sc(e,t,n.a[0]),To(sc(e,t,n.a[1]))}function ec(e,t,n){let r=Ts(e,n.i,So());js(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)sc(e,t,i[n]);return r}function tc(e,t,n){let r=e.base.refs.get(n.i);if(r){Ms(e,n,n.i,31),r.next(sc(e,t,n.f));return}throw new eo(`Stream`)}function nc(e,t,n){let r=e.base.refs.get(n.i);if(r){Ms(e,n,n.i,31),r.throw(sc(e,t,n.f));return}throw new eo(`Stream`)}function rc(e,t,n){let r=e.base.refs.get(n.i);if(r){Ms(e,n,n.i,31),r.return(sc(e,t,n.f));return}throw new eo(`Stream`)}function ic(e,t,n){sc(e,t,n.f)}function ac(e,t,n){sc(e,t,n.a[1])}function oc(e,t,n){let r=Ts(e,n.i,mo([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=sc(e,t,n.a[i]);return r}function sc(e,t,n){if(t>e.base.depthLimit)throw new ao(e.base.depthLimit);switch(t+=1,n.t){case 2:return Es(n,Wi,n.s);case 0:return Number(n.s);case 1:return oa(String(n.s));case 3:if(String(n.s).length>hs)throw new io(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return Ds(e,n);case 9:return Os(e,t,n);case 10:case 11:return Ps(e,t,n);case 5:return Fs(e,n);case 6:return Ls(e,n);case 7:return Rs(e,t,n);case 8:return zs(e,t,n);case 19:return Bs(e,n);case 16:case 15:return Vs(e,t,n);case 20:return Hs(e,t,n);case 14:return Ws(e,t,n);case 13:return Gs(e,t,n);case 12:return Ks(e,t,n);case 17:return Es(n,Ui,n.s);case 21:return qs(e,t,n);case 25:return Js(e,t,n);case 22:return Ys(e,n);case 23:return Xs(e,t,n);case 24:return Zs(e,t,n);case 28:return Qs(e,t,n);case 30:return $s(e,t,n);case 31:return ec(e,t,n);case 32:return tc(e,t,n);case 33:return nc(e,t,n);
12case 34:return rc(e,t,n);case 27:return ic(e,t,n);case 29:return ac(e,t,n);case 35:return oc(e,t,n);case 36:return Is(e,n);default:throw new Qa(n)}}function cc(e,t){try{return sc(e,0,t)}catch(e){throw new Ya(e)}}function lc(e,t){return cc(bs({plugins:us(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function uc(e,t={}){let n=zo(1,{plugins:us(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await ss(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function dc(e){return e}function fc(e){return cs({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var pc=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},mc=globalThis.Buffer,hc=!!mc&&typeof mc.from==`function`;function gc(e){if(e.length===0)return``;if(hc)return mc.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function _c(e){if(e.length===0)return new Uint8Array;
12if(hc){let t=mc.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var vc=Object.create(null),yc=Object.create(null),bc=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(_c(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),xc=new TextEncoder,Sc=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(xc.encode(e)):t.enqueue(_c(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Cc=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,wc=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function Tc(e){let t=So(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(gc(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function Ec(e){let t=So(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:gc(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var Dc=cs({tag:`tss/RawStream`,extends:[cs({tag:`tss/RawStreamFactory`,test(e){return e===vc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Cc},deserialize(e,t,n){return vc}}),cs({tag:`tss/RawStreamFactoryText`,test(e){return e===yc},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return wc},deserialize(e,t,n){return yc}})],test(e){return e instanceof pc},parse:{sync(e,t,n){let r=e.hint===`text`?yc:vc;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(So())}},async async(e,t,n){let r=e.hint===`text`?yc:vc,i=e.hint===`text`?Ec(e.stream):Tc(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?yc:vc,i=e.hint===`text`?Ec(e.stream):Tc(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?Sc(r):bc(r)}});function Oc(e){return cs({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var kc=cs({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),Ac={},jc=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(e)}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Mc=cs({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===Ac},parse:{sync(){return Ac},async async(){return await Promise.resolve(Ac)},stream(){return Ac}},serialize(){return jc.toString()},deserialize(){return Ac}});async function Nc(e,t){try{let n=await t.read();n.done?(e.return(n.value),t.releaseLock()):(e.next(n.value),await Nc(e,t))}catch(t){e.throw(t)}}function Pc(e){e.cancel().catch(()=>{}),e.releaseLock()}function Fc(e){let t=So(),n=e.getReader(),r=Pc.bind(null,n);return Nc(t,n).catch(r),[t,r]}var Ic=[kc,Dc,cs({tag:`seroval/plugins/web/ReadableStream`,extends:[Mc],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Ac),stream:t.parse(So())}},async async(e,t){return{factory:await t.parse(Ac),stream:await t.parse(Fc(e)[0])}},stream(e,t){let[n,r]=Fc(e);return t.addCleanup(r),{factory:t.parse(Ac),stream:t.parse(n)}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return jc(t.deserialize(e.stream))}})];function Lc(){return[...(nr()?.serializationAdapters)?.map(fc)??[],...Ic]}var Rc=new TextDecoder,zc=new Uint8Array,Bc=16*1024*1024,Vc=32*1024*1024,Hc=1024,Uc=1e5;function Wc(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}
12t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=Hc)throw Error(`Too many raw streams in framed response (max ${Hc})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return zc;let t=c[0];if(t&&t.length>=e){let n=t.subarray(0,e);return t.length===e?c.shift():c[0]=t.subarray(e),l-=e,n}let n=new Uint8Array(e),r=0,i=e;for(;i>0&&c.length>0;){let e=c[0];if(!e)break;let t=Math.min(e.length,i);n.set(e.subarray(0,t),r),r+=t,i-=t,t===e.length?c.shift():c[0]=e.subarray(t)}return l-=e,n}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>Vc)throw Error(`Framed response buffer exceeded ${Vc} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==Qn.JSON&&n!==Qn.CHUNK&&n!==Qn.END&&n!==Qn.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===Qn.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>Bc)throw Error(`Frame payload too large: ${a} bytes (max ${Bc})`);let c=9+a;if(l<c)break;if(++o>Uc)throw Error(`Too many frames in framed response (max ${Uc})`);f(9);let p=f(a);switch(n){case Qn.JSON:try{s.enqueue(Rc.decode(p))}catch{}break;case Qn.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case Qn.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case Qn.ERROR:{let e=u(i);if(r.add(i),e){let n=Rc.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var Gc=null;async function Kc(e){e.length>0&&await Promise.allSettled(e)}var qc=Object.prototype.hasOwnProperty;function Jc(e){for(let t in e)if(qc.call(e,t))return!0;return!1}async function Yc(e,t,n){Gc||=Lc();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${Zn}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await Xc(r);if(t!==void 0){let n=rr({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await Qc(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await $c(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Xc(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Jc(e.context)&&(t=!0,n.context=e.context),t)return Zc(n)}async function Zc(e){return JSON.stringify(await Promise.resolve(uc(e,{plugins:Gc})))}async function Qc(e){if(e.data instanceof FormData){let t;return e.context&&Jc(e.context)&&(t=await Zc(e.context)),t!==void 0&&e.data.set(Yn,t),{body:e.data}}let t=await Xc(e);if(t)return{body:t,contentType:`application/json`}}async function $c(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||P(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(tr(n),!t.body)throw Error(`No response body for framed response`);
12let{getOrCreateStream:r,jsonChunks:i}=Wc(t.body),a=[Oc(r),...Gc||[]],o=new Map;e=await el({jsonStream:i,onMessage:e=>lc(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=lc(n,{plugins:Gc})}finally{}await Kc(r)}if(e||P(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=I(e);if(n)throw n;if(F(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function el({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await Kc(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await Kc(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function tl(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=nr()?.serverFns?.fetch;return Yc(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[Xn]:!0})}var nl=dc({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(Xn in e)?!1:!!e[Xn],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>tl(e)});function rl(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function il(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function al(e){window.$_TSR||P();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||P();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=rl(e.i)}),n.lastMatchId&&=rl(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=N();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}il(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(F(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||P(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>
12{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var H=e(r(),1),U=me();function ol({promise:e}){if(de)return de(e);let t=Si(e);if(t[xi].status===`pending`)throw t;if(t[xi].status===`error`)throw t[xi].error;return t[xi].data}function sl(e){let t=(0,U.jsx)(cl,{...e});return e.fallback?(0,U.jsx)(H.Suspense,{fallback:e.fallback,children:t}):t}function cl(e){let t=ol(e);return e.children(t)}var W=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(W||{});function ll({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function ul(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var dl=[],fl=0,{link:pl,unlink:ml,propagate:hl,checkDirty:gl,shallowPropagate:_l}=ll({update(e){return e._update()},notify(e){dl[yl++]=e,e.flags&=~W.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=W.Mutable|W.Dirty,Cl(e))}}),vl=0,yl=0,bl,xl=0;function Sl(e){try{++xl,e()}finally{--xl||wl()}}function Cl(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ml(n,e)}function wl(){if(!(xl>0)){for(;vl<yl;){let e=dl[vl];dl[vl++]=void 0,e.notify()}vl=0,yl=0}}function Tl(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?W.None:W.Mutable,get(){return bl!==void 0&&pl(i,bl,fl),i._snapshot},subscribe(e){let t=ul(e),n={current:!1},r=El(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=bl,o=t?.compare??Object.is;if(n)bl=i,++fl,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=W.Mutable|W.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{bl=a,n&&(i.flags&=~W.RecursedCheck),Cl(i)}}};return n?(i.flags=W.Mutable|W.Dirty,i.get=function(){let e=i.flags;if(e&W.Dirty||e&W.Pending&&gl(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&_l(e)}}else e&W.Pending&&(i.flags=e&~W.Pending);return bl!==void 0&&pl(i,bl,fl),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(hl(e),_l(e),wl())}},i}function El(e){let t=()=>{let t=bl;bl=n,++fl,n.depsTail=void 0,n.flags=W.Watching|W.RecursedCheck;try{return e()}finally{bl=t,n.flags&=~W.RecursedCheck,Cl(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:W.Watching|W.RecursedCheck,notify(){let e=this.flags;e&W.Dirty||e&W.Pending&&gl(this.deps,this)?t():this.flags=W.Watching},stop(){this.flags=W.None,this.depsTail=void 0,Cl(this)}};return t(),n}function G(e){return new Dl(e,{silent:!0}).createRoute}var Dl=class{constructor(e,t){this.path=e,this.createRoute=e=>
12{let t=oe(e);return t.isRoot=!1,t},this.silent=t?.silent}};function K(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,d(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(de)de(o());else throw o();return H.createElement(r,e)};return s.preload=o,s}function Ol(e){let t=e.errorComponent??Al;return(0,U.jsx)(kl,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?H.createElement(t,{error:n,reset:r}):e.children})}var kl=class extends H.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Al({error:e}){let[t,n]=H.useState(!1);return(0,U.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,U.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,U.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,U.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,U.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,U.jsx)(`div`,{children:(0,U.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,U.jsx)(`code`,{children:e.message}):null})}):null]})}function jl(e){let t=pe(),n=`not-found-${M(t.stores.location,e=>e.pathname)}-${M(t.stores.status,e=>e)}`;return(0,U.jsx)(Ol,{getResetKey:()=>n,onCatch:(t,n)=>{if(F(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(F(t))return e.fallback?.(t);throw t},children:e.children})}function Ml(){return(0,U.jsx)(`p`,{children:`Not Found`})}function Nl(e){return(0,U.jsx)(U.Fragment,{children:e.children})}function Pl(e,t,n){return t.options.notFoundComponent?(0,U.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,U.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,U.jsx)(Ml,{})}var Fl=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,Il=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ll=H.memo(function({matchId:e}){let t=pe(),n=t.stores.matchStores.get(e);n||P();let r=M(t.stores.loadedAt,e=>e),i=M(n,e=>e,Fl);return(0,U.jsx)(Rl,{router:t,matchId:e,resetKey:r,matchState:H.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Rl({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,U.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?H.Suspense:Nl,f=s?Ol:Nl,p=l?jl:Nl;return(0,U.jsxs)(i.isRoot?i.options.shellComponent??Nl:Nl,{children:[(0,U.jsx)(he.Provider,{value:t,children:(0,U.jsx)(d,{fallback:o,children:(0,U.jsx)(f,{getResetKey:()=>n,errorComponent:s||Al,onCatch:(e,t)=>{if(F(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,U.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return H.createElement(l,e)},children:u||r._displayPending?(0,U.jsx)(O,{fallback:o,children:(0,U.jsx)(Bl,{matchId:t})}):(0,U.jsx)(Bl,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(zl,{}),(e.options.scrollRestoration,null)]}):null]})}function zl(){let e=pe(),t=H.useRef();return ue(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...li(e.stores.location.get(),r??n)}),t.current=n},[M(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}
12var Bl=H.memo(function({matchId:e}){let t=pe(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||P();let i=M(r,e=>e),a=i.routeId,o=t.routesById[a],s=H.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=H.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,U.jsx)(e,{},s):(0,U.jsx)(Vl,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending){let e=n(i,`displayPendingPromise`);if(e)throw e}if(i._forcePending){let e=n(i,`minPendingPromise`);if(e)throw e}if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=N();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}let r=n(i,`loadPromise`);if(r)throw r}if(i.status===`notFound`)return F(i.error)||P(),Pl(t,o,i.error);if(i.status===`redirected`){R(i.error)||P();let e=n(i,`loadPromise`);if(e)throw e}if(i.status===`error`)throw i.error;return c}),Vl=H.memo(function(){let e=pe(),t=H.useContext(he),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=M(a,e=>[e?.routeId,e?.globalNotFound??!1],Il),i=M(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,U.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||P(),Pl(e,a,void 0);if(!i)return null;let s=(0,U.jsx)(Ll,{matchId:i});return n===`__root__`?(0,U.jsx)(H.Suspense,{fallback:o,children:s}):s}),Hl=e=>({createMutableStore:Tl,createReadonlyStore:Tl,batch:Sl}),Ul=e=>new Wl(e),Wl=class extends di{constructor(e){super(e,Hl)}};function Gl(){let e=pe(),t=H.useRef({router:e,mounted:!1}),[n,r]=H.useState(!1),i=M(e.stores.isLoading,e=>e),a=M(e.stores.hasPending,e=>e),o=fe(i),s=i||n||a,c=fe(s),l=i||a,u=fe(l);return e.startTransition=e=>{r(!0),H.startTransition(()=>{e(),r(!1)})},H.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return k(e.latestLocation.publicHref)!==k(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),ue(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),ue(()=>{o&&!i&&e.emit({type:`onLoad`,...li(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),ue(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...li(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),ue(()=>{if(c&&!s){let t=li(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Sl(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Kl(){let e=pe(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,U.jsx)(t,{}):null,r=(0,U.jsxs)(typeof document<`u`&&e.ssr?Nl:H.Suspense,{fallback:n,children:[(0,U.jsx)(Gl,{}),(0,U.jsx)(ql,{})]});return e.options.InnerWrap?(0,U.jsx)(e.options.InnerWrap,{children:r}):r}function ql(){let e=pe(),t=M(e.stores.firstId,e=>e),n=M(e.stores.loadedAt,e=>e),r=t?(0,U.jsx)(Ll,{matchId:t}):null;return(0,U.jsx)(he.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,U.jsx)(Ol,{getResetKey:()=>n,errorComponent:Al,onCatch:void 0,children:r})})}function Jl({router:e,children:t,...n}
12){a(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,U.jsx)(le.Provider,{value:e,children:t});return e.options.Wrap?(0,U.jsx)(e.options.Wrap,{children:r}):r}function Yl({router:e,...t}){return(0,U.jsx)(Jl,{router:e,...t,children:(0,U.jsx)(Kl,{})})}function Xl(e){let t=pe({warn:e?.router===void 0}),n=e?.router||t;return M(n.stores.__store,ge(e,n))}function Zl(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Ql(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,U.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,U.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,U.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,U.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,U.jsx)($l,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function $l({attrs:e,children:t,preventScriptHoist:n}){pe();let r=A(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(H.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Zl(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Zl(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,U.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var eu=e=>{let t=pe(),n=t.options.ssr?.nonce,r=M(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),c),i=H.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:p(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=M(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),c),o=M(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=Oi(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Ci(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},c),s=M(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...Ti(a,t,e),nonce:n}})})}),i},c),l=M(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),c),u=M(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),c),d=[];return Di(d,i),d.push(...s),Di(d,a),d.push(...o),Di(d,l),Di(d,u),d};function tu(e){let t=eu(e.assetCrossOrigin),n=pe().options.ssr?.nonce;return(0,U.jsx)(U.Fragment,{children:t.map(e=>(0,H.createElement)(Ql,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var nu=()=>{let e=pe(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>
12e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=M(e.stores.matches,n,c);return ru(e,M(e.stores.matches,r,c),i)};function ru(e,t,n){let r=[...t,...n];return(0,U.jsx)(U.Fragment,{children:r.map((e,t)=>(0,H.createElement)(Ql,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function iu(e){return e}function au(e,t,n){if(typeof t!=`object`||!t)return;let r=e.getMutationCache(),i=e.getQueryCache(),a=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??iu,o=t.mutations||[],s=t.queries||[];o.forEach(({state:t,...i})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),s.forEach(({queryKey:t,state:r,queryHash:o,meta:s,promise:c,dehydratedAt:l,queryType:u})=>{let d=c?ve(c):void 0,f=r.data===void 0?d?.data:r.data,p=f===void 0?f:a(f),m=i.get(o),h=m?.state.status===`pending`,g=m?.state.fetchStatus===`fetching`;if(m){let e=d&&l!==void 0&&l>m.state.dataUpdatedAt;if(r.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=r;m.setState({...t,data:p,...r.status===`pending`&&p!==void 0&&{status:`success`,...!g&&{fetchStatus:`idle`}}})}}else m=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:s,_type:u},{...r,data:p,fetchStatus:`idle`,status:r.status===`pending`&&p!==void 0?`success`:r.status});c&&!d&&!h&&!g&&(l===void 0||l>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(c).then(a)}).catch(_e)})}var ou=H.createContext(void 0),su=e=>{let t=H.useContext(ou);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},cu=({client:e,children:t})=>(H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,U.jsx)(ou.Provider,{value:e,children:t}));function lu({router:e,queryClient:t,dehydrateOptions:n,hydrateOptions:r,handleRedirects:i=!0}){let a=e.options.hydrate;if(e.options.dehydrate,e.options.hydrate=async e=>{await a?.(e),e.dehydratedQueryClient&&au(t,e.dehydratedQueryClient,r);let n=e.queryStream.getReader();n.read().then(async function e({done:i,value:a}){if(au(t,a,r),!i)return e(await n.read())}).catch(e=>{console.error(`Error reading query stream:`,e)})},i){let n=t.getMutationCache().config;t.getMutationCache().config={...n,onError:(t,...r)=>R(t)?(t.options._fromLocation=e.stores.location.get(),e.navigate(e.resolveRedirect(t).options)):n.onError?.(t,...r)};let r=t.getQueryCache().config;t.getQueryCache().config={...r,onError:(t,...n)=>R(t)?(t.options._fromLocation=e.stores.location.get(),e.navigate(e.resolveRedirect(t).options)):r.onError?.(t,...n)}}}function uu(e){if(lu(e),e.wrapQueryClient===!1)return;let t=e.router.options.Wrap||H.Fragment;e.router.options.Wrap=({children:n})=>(0,U.jsx)(cu,{client:e.queryClient,children:(0,U.jsx)(t,{children:n})})}function du(){let e=crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}function fu(){return typeof crypto.randomUUID==`function`?crypto.randomUUID():du()}function pu(){typeof crypto.randomUUID!=`function`&&Object.defineProperty(crypto,"randomUUID",{configurable:!0,value:du})}pu();var mu=[`onboarding_experiment_exposed`,`research_run_started`,`research_run_failed`,`research_details_viewed`,`research_note_expanded`,`desktop_sync_finished`,`voice_session_started`,`voice_tool_called`,`voice_session_ended`,`voice_session_start_failed`,`$ai_generation`],hu=[],gu=new Set,_u=new Set,vu=[],yu=!1;function bu(e){hu.some(t=>t.name===e.name)||hu.push(e)}function xu(e){_u.add(e),De()===`granted`&&wu(e)}function Su(){if(yu||typeof window>`u`)return;yu=!0;function e(){De()===`granted`&&Cu()}e(),Ce(t=>{t===`granted`&&e()})}async function Cu(){Oe(),await Me(),await Promise.all(hu.filter(e=>!gu.has(e.name)&&(e.defaultEnabled||_u.has(e.name))).map(e=>Tu(e)))}async function wu(e){let t=hu.find(t=>t.name===e);!t||gu.has(e)||(Oe(),await Me(),await Tu(t))}async function Tu(e){try{await e.load(),gu.add(e.name),Eu(e)}catch(t){console.warn(`[analytics] provider "${e.name}" failed to load`,t)}}function Eu(e){for(let t of vu)Ou(e,t);Du()&&(vu.length=0)}function Du(){return hu.filter(e=>e.defaultEnabled||_u.has(e.name)).every(e=>gu.has(e.name))}function Ou(e,t){try{t.kind===`pageview`?e.pageview(t.props):t.kind===`identify`?e.identify(t.userId,t.traits):t.kind===`reset`?e.reset?.():(!t.only||t.only.includes(e.name))&&e.track(t.name,t.properties)}catch(n){console.warn(`[analytics] provider "${e.name}" ${t.kind} threw`,n)}}function ku(e){vu.push(e);for(let t of hu)gu.has(t.name)&&Ou(t,e);Du()&&(vu.length=0)}function Au(e){ku({kind:`pageview`,props:e})}function ju(e,t){ku({kind:`identify`,userId:e,traits:t})}function Mu(e,t){if(Pu.has(e)){ku({kind:`track`,name:e,properties:t,only:[Nu]});return}ku({kind:`track`,name:e,properties:t})}var Nu=`posthog`,Pu=new Set(mu);function Fu(e,t){ku({kind:`track`,name:e,properties:t,only:[Nu]})}function Iu(){ku({kind:`reset`})}function Lu(e,t,n=new Date){return`${e}_${t}_${n.toISOString().split(`T`)[0].replace(/-/g,``)}`}function Ru(e=Date.now()){let t=Fe(`_fbc`);if(t)return t;if(typeof window<`u`){let t=new URLSearchParams(window.location.search).get(`fbclid`);if(t)return`fb.1.${e}.${t}`}let n=Ne();if(n){let{lastTouch:e,firstTouch:t}=n;if(e.params.fbclid)return`fb.1.${e.capturedAt}.${e.params.fbclid}`;if(t.params.fbclid)return`fb.1.${t.capturedAt}.${t.params.fbclid}`}}var zu=`2681282998548997`,Bu=`https://connect.facebook.net/en_US/fbevents.js`;function Vu(){return window.fbq}var Hu={},Uu=`dex.analytics.metaIdentity`,Wu=10080*60*1e3;function Gu(e){try{let t={...e,savedAt:Date.now()};window.localStorage.setItem(Uu,JSON.stringify(t))}catch{}}function Ku(){try{let e=window.localStorage.getItem(Uu);if(!e)return{};let t=JSON.parse(e);return!t||typeof t.savedAt!=`number`||Date.now()-t.savedAt>Wu?{}:{external_id:t.external_id,email:t.email}}catch{return{}}}function qu(){try{window.localStorage.removeItem(Uu)}catch{}}function Ju(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}function Yu(){return{...Hu.external_id?Hu:Ku(),fbp:Fe(`_fbp`),fbc:Ru()}}function Xu(e){fetch(`/api/analytics/fb-capi`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e),keepalive:!0}
12).catch(()=>{})}var Zu=!1,Qu=`dex.analytics.metaPendingConversions`,$u=10080*60*1e3;function ed(){try{let e=window.localStorage.getItem(Qu);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function td(e){try{e.length===0?window.localStorage.removeItem(Qu):window.localStorage.setItem(Qu,JSON.stringify(e.slice(-20)))}catch{}}function nd(e,t){if(Vu()?.(`track`,e,t.params,{eventID:t.eventId}),t.mirrorToCapi){let n=Yu();Xu({event_name:e,event_id:t.eventId,event_time:Math.floor(Date.now()/1e3),event_source_url:Ae(),user_data:{...n,external_id:t.identity?.external_id??n?.external_id,email:t.identity?.email??n?.email},custom_data:t.params})}}function rd(){let e=Date.now()-$u,t=ed().filter(t=>t.queuedAt>=e);td([]);for(let e of t)nd(e.eventName,e.options)}function id(e,t){if(!(typeof window>`u`)){if(!Zu){let n=ed();n.push({eventName:e,options:t,queuedAt:Date.now()}),td(n);return}nd(e,t)}}var ad={name:`facebook`,defaultEnabled:!0,async load(){let e=window;if(!e.fbq){let t=function(){let e=arguments;t.callMethod?t.callMethod.apply(t,e):t.queue.push(e)};t.push=t,t.loaded=!0,t.version=`2.0`,t.queue=[],e.fbq=t,e._fbq||=t;let n=document.createElement(`script`);n.async=!0,n.src=Bu;let r=document.getElementsByTagName(`script`)[0];r?.parentNode?.insertBefore(n,r)}Vu()?.(`init`,zu),Zu=!0,setTimeout(rd,0)},pageview(){let e=Ju();Vu()?.(`track`,`PageView`,void 0,{eventID:e}),Xu({event_name:`PageView`,event_id:e,event_time:Math.floor(Date.now()/1e3),event_source_url:Ae(),user_data:Yu()})},identify(e,t){Hu={external_id:e,email:t?.email??void 0},Gu(Hu),Vu()?.(`init`,zu,{external_id:e,em:t?.email})},track(e,t){let n=Ju();Vu()?.(`trackCustom`,e,t,{eventID:n}),Xu({event_name:e,event_id:n,event_time:Math.floor(Date.now()/1e3),event_source_url:Ae(),user_data:Yu(),custom_data:t})},reset(){Hu={},qu()}},od=`G-THWZ98EBTQ`,sd=`G-81ECKJPZX4`,cd=[od,sd],ld=`AW-768317188`,ud=`AW-768317188/HyFCCK_H2YIdEISuru4C`,dd=`dex.analytics.googleAdsPendingConversions`,fd=`dex.analytics.googleAdsClaimedConversions`,pd=10080*60*1e3,md=720*60*60*1e3,hd=20,gd=50;function _d(){return window.gtag}var vd=!1,yd=!1,bd=!1,xd=!1,Sd=!1,Cd=new Set,wd=[];function Td(e){return/^[a-f0-9]{64}$/.test(e)}function Ed(e,t){try{let n=window.localStorage.getItem(e),r=n?JSON.parse(n):[];if(!Array.isArray(r))return[];let i=Date.now()-t;return r.filter(e=>typeof e?.transactionId==`string`&&Td(e.transactionId)&&typeof e.recordedAt==`number`&&e.recordedAt>=i)}catch{return[]}}function Dd(e,t,n){try{return t.length===0?window.localStorage.removeItem(e):window.localStorage.setItem(e,JSON.stringify(t.slice(-n))),!0}catch{return!1}}function Od(e){return Cd.has(e)?!0:Ed(fd,md).some(t=>
12t.transactionId===e)?(Cd.add(e),!0):!1}function kd(e){let t=Ed(fd,md);Cd.add(e),Dd(fd,[...t,{transactionId:e,recordedAt:Date.now()}],gd)}function Ad(){wd.length=0,Cd.clear();try{window.localStorage.removeItem(dd),window.localStorage.removeItem(fd)}catch{}}function jd(e){if(!yd||De()!==`granted`)return!1;if(Od(e))return!0;let t=_d();if(!t||De()!==`granted`)return!1;try{t(`event`,`conversion`,{send_to:ud,transaction_id:e})}catch{return!1}return De()===`granted`&&kd(e),!0}function Md(e,t=Date.now()){wd.some(t=>t.transactionId===e)||(wd.push({transactionId:e,recordedAt:t}),wd.length>hd&&wd.shift())}function Nd(e,t=Date.now()){let n=De();if(n===`denied`){Ad();return}if(n!==`granted`){Md(e,t);return}if(Od(e))return;let r=Ed(dd,pd);if(r.some(t=>t.transactionId===e))return;let i={transactionId:e,recordedAt:t};Dd(dd,[...r,i],hd)||Md(e,t)}function Pd(){if(!yd||De()!==`granted`)return;let e=Date.now()-pd,t=[...Ed(dd,pd),...wd.splice(0).filter(t=>t.recordedAt>=e)];Dd(dd,[],hd);let n=new Set;for(let e=0;e<t.length;e+=1){let r=t[e];if(n.has(r.transactionId))continue;n.add(r.transactionId);let i=De();if(i===`denied`){Ad();return}if(i!==`granted`){for(let n of t.slice(e))Md(n.transactionId,n.recordedAt);return}jd(r.transactionId)||Nd(r.transactionId,r.recordedAt)}}function Fd(){if(!vd||De()!==`granted`)return;let e=_d();if(e)try{if(bd||=(e(`js`,new Date),e(`config`,od,{send_page_view:!1}),e(`config`,sd,{send_page_view:!1}),e(`set`,`user_properties`,je()??{}),!0),De()!==`granted`||(xd||=(e(`config`,ld,{send_page_view:!1,groups:`adsConversions`}),!0),De()!==`granted`))return;yd=!0,Pd()}catch{yd=!1}}function Id(e){if(e===`denied`){yd=!1,Ad();return}if(e===`pending`){yd=!1;return}if(Fd(),!vd)for(let e of wd.splice(0))Nd(e.transactionId,e.recordedAt)}function Ld(){Sd||typeof window>`u`||(Sd=!0,Ce(Id),Id(De()))}function Rd(e){if(typeof window>`u`||!Td(e))return;Ld();let t=De();if(t===`denied`){Ad();return}if(t===`pending`){Md(e);return}Od(e)||(!yd||!jd(e))&&Nd(e)}var zd={name:`google-analytics`,defaultEnabled:!0,async load(){Ld(),De()===`denied`&&Ad();let e=window;if(e.dataLayer=e.dataLayer||[],e.gtag=function(){e.dataLayer.push(arguments)},await Promise.all([Pe(`https://m.getdex.com/gtag/js?id=${od}`),Pe(`https://www.googletagmanager.com/gtag/js?id=${sd}`)]),vd=!0,De()===`denied`){Ad();return}Fd()},pageview(e){_d()?.(`event`,`page_view`,{page_path:e.path,page_title:e.title,page_referrer:e.referrer,send_to:[...cd]})},identify(e){let t=_d();t?.(`config`,od,{user_id:e}),t?.(`config`,sd,{user_id:e})},track(e,t){_d()?.(`event`,e,{...t,send_to:[...cd]})}},Bd=`onboarding-flow-v2`,Vd=`onboarding_flow_v2_arm`,Hd=`$feature/onboarding-flow-v2`;function Ud(e){return{[Hd]:e,[Vd]:e}}function Wd(e){return e??`control`}var Gd=`dex.signup_attribution`,Kd=64,qd=200;function Jd(e){return e.ref_post?{signup_ref:e.ref,signup_ref_post:e.ref_post}:{signup_ref:e.ref}}function Yd(e,t,n){let r=e instanceof URLSearchParams?e.get(t):e[t];if(typeof r!=`string`)return;let i=r.trim();if(!(!i||i.length>n))return i}function Xd(e){let t=Yd(e,`ref`,Kd);if(!t)return;let n=Yd(e,`ref_post`,qd);return n?{ref:t,ref_post:n}:{ref:t}}function Zd(e){if(!(!e||typeof window>`u`))try{window.sessionStorage.setItem(Gd,JSON.stringify(e))}catch{}}function Qd(){if(!(typeof window>`u`))try{let e=window.sessionStorage.getItem(Gd);return e?Xd(JSON.parse(e)):void 0}catch{return}}function $d(){if(!(typeof window>`u`))try{window.sessionStorage.removeItem(Gd)}catch{}}var ef,tf=!1,nf=new Set,rf=new Set([`development`,`staging`,`preview`]);function af(){return!rf.has(`production`)}function of(){return af()?tf?ef:void 0:!0}function sf(e){return nf.add(e),()=>{nf.delete(e)}}function cf(e){let t=e===void 0?void 0:e===!0;if(tf=!0,ef!==t){ef=t;for(let e of nf)e()}}z();var lf=null,uf=null;function df(e){return uf?{...e,...Ud(uf)}:e}var ff=!1,pf=`dex-webapp`,mf=`dex-desktop`,hf=/^v(.+)-([^-]+)-([^-]+)$/,gf=/-[^.]+\.([^.]+)$/;function _f(){let e={app_source:pf},t=gf.exec(Re)?.[1];t&&(e.webapp_commit=t);let n=Se();if(!n)return e;e.app_source=mf;let{buildVersion:r,platform:i}=n;r&&(e.desktop_build=r),i&&(e.desktop_platform=i);let a=r?hf.exec(r):null;if(a){let[,t,n,r]=a;e.desktop_version=t,e.desktop_build_env=n,e.desktop_commit=r}return e}function vf(e){ff=e,Sf()}var yf=null;function bf(e){lf?lf.register_once(e):yf=e}function xf(){let e=Qd(),t=yf??(e?Jd(e):null);yf=null,t&&lf?.register_once(t)}function Sf(){lf&&(ff?lf.startSessionRecording():lf.stopSessionRecording())}var Cf={name:`posthog`,defaultEnabled:!0,async load(){if(typeof window>`u`)return;lf=(await B(()=>import(`./module-CkYIWfal.js`),[])).default,lf.init(`phc_dtzrG7UquKfZslbXGEWdImDQUIXHSU2TZ3BpKgSAUP7`,{api_host:`https://argos.getdex.com`,person_profiles:`identified_only`,capture_pageview:!1,defaults:`2025-11-30`,disable_session_recording:!0}
12),lf.onFeatureFlags?.((e,t,n)=>{cf(n?.errorsLoading?void 0:lf?.getFeatureFlag?.(`dex-for-teams`,{send_event:!1}))}),lf.register(_f()),xf(),Sf();let e=await Se()?.getInfo?.().catch(()=>null);e&&lf.register({desktop_os_version:e.osVersion,desktop_arch:e.arch});let t=je();t&&lf.register(t)},pageview(e){lf?.capture(`$pageview`,{$current_url:typeof window<`u`?Ae():e.path,path:e.path,title:e.title,referrer:e.referrer,...uf?Ud(uf):{}})},identify(e,t){let{$set_once:n,...r}=t??{};lf?.identify(e,{id:e,...r},uf?{...n,[Vd]:uf}:n)},track(e,t){e===`onboarding_experiment_exposed`&&(t?.variant===`control`||t?.variant===`test`)&&(uf=t.variant),lf?.capture(e,df(t))},reset(){cf(!1),uf=null,ff=!1,Sf(),lf?.reset()}},wf=`GNLKQHPYZW6Q`;function Tf(){return window.reb2b}var Ef={name:`reb2b`,defaultEnabled:!1,async load(){let e=window,t=e.reb2b??[];if(!t.invoked){t.invoked=!0,t.methods=[`identify`,`collect`],t.factory=function(e){return function(){let n=Array.prototype.slice.call(arguments);return n.unshift(e),t.push(n),t}};for(let e of t.methods)t[e]=t.factory(e);t.load=function(e){let t=document.createElement(`script`);t.type=`text/javascript`,t.async=!0,t.src=`https://s3-us-west-2.amazonaws.com/b2bjsstore/b/${e}/GNLKQHPYZW6Q.js.gz`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n)},t.SNIPPET_VERSION=`1.0.1`,e.reb2b=t,t.load(wf)}},pageview(){},identify(e,t){Tf()?.identify?.(e,t??{})},track(){}},Df=`t2_4a9idv0f`;function Of(){return window.rdt}var kf=`dex.analytics.redditPendingConversions`,Af=2880*60*1e3,jf=!1;function Mf(){try{let e=window.localStorage.getItem(kf);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function Nf(e){try{e.length===0?window.localStorage.removeItem(kf):window.localStorage.setItem(kf,JSON.stringify(e.slice(-20)))}catch{}}function Pf(e,t){Of()?.(`track`,e,{conversionId:t})}function Ff(){let e=Date.now()-Af,t=Mf().filter(t=>t.queuedAt>=e);Nf([]);for(let e of t)Pf(e.eventName,e.conversionId)}function If(){jf=!0,setTimeout(Ff,0)}function Lf(e,t){if(!(typeof window>`u`)){if(!jf){let n=Mf();n.push({eventName:e,conversionId:t.conversionId,queuedAt:Date.now()}),Nf(n);return}Pf(e,t.conversionId)}}var Rf={name:`reddit`,defaultEnabled:!0,async load(){let e=window;if(e.rdt)e.rdt.sendEvent&&If();else{let t=function(){let e=arguments;t.sendEvent?t.sendEvent.apply(t,e):t.callQueue.push(e)};t.callQueue=[],e.rdt=t;let n=document.createElement(`script`);n.src=`https://www.redditstatic.com/ads/pixel.js`,n.async=!0,n.onload=If;let r=document.getElementsByTagName(`script`)[0];r?.parentNode?.insertBefore(n,r)}Of()?.(`init`,Df,{optOut:!1,useDecimalCurrencyValues:!0})},pageview(){Of()?.(`track`,`PageVisit`)},identify(e,t){Of()?.(`init`,Df,{externalId:e,...t?.email?{email:t.email.toLowerCase()}:{},optOut:!1,useDecimalCurrencyValues:!0})},track(e){e===`Lead`&&Of()?.(`track`,`Lead`)}},zf=`D2AG3KBC77U9B02LP170`,Bf=`https://analytics.tiktok.com/i18n/pixel/events.js`;function Vf(){return window.ttq}var Hf={name:`tiktok`,defaultEnabled:!0,async load(){let e=window;if(!e.ttq){e.TiktokAnalyticsObject=`ttq`;let t=[];e.ttq=t,t.methods=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`,`holdConsent`,`revokeConsent`,`grantConsent`],t.setAndDefer=function(e,t){e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}};for(let e of t.methods)t.setAndDefer(t,e);t.instance=function(e){let n=t._i?.[e]??{push:()=>{}};for(let e of t.methods)t.setAndDefer(n,e);return n},t.load=function(e,n){t._i=t._i||{},t._i[e]=[],t._i[e]._u=Bf,t._t=t._t||{},t._t[e]=Date.now(),t._o=t._o||{},t._o[e]=n||{};let r=document.createElement(`script`);r.type=`text/javascript`,r.async=!0,r.src=`${Bf}?sdkid=${e}&lib=ttq`;let i=document.getElementsByTagName(`script`)[0];i?.parentNode?.insertBefore(r,i)}}let t=Vf();t?.load(zf),t?.page()},pageview(){Vf()?.page()},identify(e,t){Vf()?.identify({external_id:e,email:t?.email})},track(e,t){Vf()?.track(e,t)}},Uf=`qf19b`,Wf=`https://static.ads-twitter.com/uwt.js`;function Gf(){return window.twq}typeof window<`u`&&(Ld(),bu(Cf),bu(zd),bu(ad),bu(Rf),bu(Hf),bu({name:`twitter`,defaultEnabled:!0,async load(){let e=window;if(!e.twq){let t=function(){let e=arguments;t.exe?t.exe.apply(t,e):t.queue.push(e)};
12t.version=`1.1`,t.queue=[],e.twq=t;let n=document.createElement(`script`);n.async=!0,n.src=Wf;let r=document.getElementsByTagName(`script`)[0];r?.parentNode?.insertBefore(n,r)}Gf()?.(`config`,Uf)},pageview(){Gf()?.(`event`,`tw-pageview`,{})},identify(e,t){Gf()?.(`config`,Uf,{external_id:e,email:t?.email})},track(e,t){Gf()?.(`event`,e,t)}}),bu(Le),bu(Ef),Su(),Ee());var Kf=`(function(){try{ 13var p=location.pathname; 14if(p.length>1)p=p.replace(/\\/+$/,'')||'/'; 15if(${JSON.stringify([`/`,`/jarvis`])}.indexOf(p.toLowerCase())===-1)return; 16var c=document.cookie.split(';'); 17for(var i=0;i<c.length;i++){if(c[i].trim().indexOf(${JSON.stringify(`dex_session_present=1`)})===0){location.replace('/app');return;}} 18}catch(e){}})();`,qf=et(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Jf=et(`award`,[[`path`,{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`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),Yf=et(`calendar`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),Xf=et(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),Zf=et(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Qf=et(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),$f=et(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),ep=et(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),tp=et(`handshake`,[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]),np=et(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),rp=et(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),ip=et(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),ap=et(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),op=et(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),sp=et(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),cp=et(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),lp=et(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),q=xe();function up(){let e=(0,q.c)(5),[t,n]=(0,H.useState)(!1),r,i;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>(n(Te()),Ce(()=>{n(Te())})),i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,H.useEffect)(r,i),!t)return null;let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(`p`,{className:`font-medium text-foreground`,children:`We use cookies to improve Dex.`}),e[2]=a):a=e[2];let o;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,U.jsxs)(`div`,{className:`min-w-0 flex-1 text-sm text-muted-foreground`,children:[a,(0,U.jsxs)(`p`,{className:`mt-1 leading-snug`,children:[`We use analytics and marketing cookies to understand how visitors use Dex. Change this anytime.`,` `,(0,U.jsx)(ae,{to:`/privacypolicy`,className:`text-foreground underline-offset-4 hover:underline`,children:`Privacy policy`}),`.`]})]}),e[3]=o):o=e[3];let s;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,U.jsxs)(`div`,{role:`dialog`,"aria-label":`Cookie preferences`,className:`fixed inset-x-4 bottom-4 z-50 mx-auto flex max-h-[calc(100dvh-2rem)] max-w-2xl flex-col gap-3 overflow-auto rounded-lg border border-border bg-card p-4 shadow-lg sm:flex-row sm:items-center sm:gap-6 sm:p-5`,children:[o,(0,U.jsxs)(`div`,{className:`flex shrink-0 gap-2`,children:[(0,U.jsx)(Qe,{variant:`outline`,size:`sm`,onClick:fp,children:`Reject`}),(0,U.jsx)(Qe,{size:`sm`,onClick:dp,children:`Accept all`})]})]}),e[4]=s):s=e[4],s}function dp(){return we(`granted`)}function fp(){return we(`denied`)}var pp=`#EA4335`,mp=H.forwardRef(function({title:e=`Gmail`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=pp),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
18width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z`})]})}),hp=`#4285F4`,gp=H.forwardRef(function({title:e=`Google Calendar`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=hp),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M18.316 5.684H24v12.632h-5.684V5.684zM5.684 24h12.632v-5.684H5.684V24zM18.316 5.684V0H1.895A1.894 1.894 0 0 0 0 1.895v16.421h5.684V5.684h12.632zm-7.207 6.25v-.065c.272-.144.5-.349.687-.617s.279-.595.279-.982c0-.379-.099-.72-.3-1.025a2.05 2.05 0 0 0-.832-.714 2.703 2.703 0 0 0-1.197-.257c-.6 0-1.094.156-1.481.467-.386.311-.65.671-.793 1.078l1.085.452c.086-.249.224-.461.413-.633.189-.172.445-.257.767-.257.33 0 .602.088.816.264a.86.86 0 0 1 .322.703c0 .33-.12.589-.36.778-.24.19-.535.284-.886.284h-.567v1.085h.633c.407 0 .748.109 1.02.327.272.218.407.499.407.843 0 .336-.129.614-.387.832s-.565.327-.924.327c-.351 0-.651-.103-.897-.311-.248-.208-.422-.502-.521-.881l-1.096.452c.178.616.505 1.082.977 1.401.472.319.984.478 1.538.477a2.84 2.84 0 0 0 1.293-.291c.382-.193.684-.458.902-.794.218-.336.327-.72.327-1.149 0-.429-.115-.797-.344-1.105a2.067 2.067 0 0 0-.881-.689zm2.093-1.931l.602.913L15 10.045v5.744h1.187V8.446h-.827l-2.158 1.557zM22.105 0h-3.289v5.184H24V1.895A1.894 1.894 0 0 0 22.105 0zm-3.289 23.5l4.684-4.684h-4.684V23.5zM0 22.105C0 23.152.848 24 1.895 24h3.289v-5.184H0v3.289z`})]})}),_p=`#34DA50`,vp=H.forwardRef(function({title:e=`iMessage`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=_p),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M5.285 0A5.273 5.273 0 0 0 0 5.285v13.43A5.273 5.273 0 0 0 5.285 24h13.43A5.273 5.273 0 0 0 24 18.715V5.285A5.273 5.273 0 0 0 18.715 0ZM12 4.154a8.809 7.337 0 0 1 8.809 7.338A8.809 7.337 0 0 1 12 18.828a8.809 7.337 0 0 1-2.492-.303A8.656 7.337 0 0 1 5.93 19.93a9.929 7.337 0 0 0 1.54-2.155 8.809 7.337 0 0 1-4.279-6.283A8.809 7.337 0 0 1 12 4.154`})]})}),yp=`#000000`,bp=H.forwardRef(function({title:e=`TikTok`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=yp),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z`})]})}),xp=`#25D366`,Sp=H.forwardRef(function({title:e=`WhatsApp`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=xp),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z`})]})}),Cp=`#000000`,wp=H.forwardRef(function({title:e=`X`,color:t=`currentColor`,size:n=24,...r}
18,i){return t==="default"&&(t=Cp),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z`})]})}),Tp=`#FF0000`,Ep=H.forwardRef(function({title:e=`YouTube`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Tp),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`})]})}),Dp=`#FF4F00`,Op=H.forwardRef(function({title:e=`Zapier`,color:t=`currentColor`,size:n=24,...r},i){return t==="default"&&(t=Dp),(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:n,fill:t,viewBox:`0 0 24 24`,ref:i,...r,children:[(0,U.jsx)(`title`,{children:e}),(0,U.jsx)(`path`,{d:`M4.157 0A4.151 4.151 0 0 0 0 4.161v15.678A4.151 4.151 0 0 0 4.157 24h15.682A4.152 4.152 0 0 0 24 19.839V4.161A4.152 4.152 0 0 0 19.839 0H4.157Zm10.61 8.761h.03a.577.577 0 0 1 .23.038.585.585 0 0 1 .201.124.63.63 0 0 1 .162.431.612.612 0 0 1-.162.435.58.58 0 0 1-.201.128.58.58 0 0 1-.23.042.529.529 0 0 1-.235-.042.585.585 0 0 1-.332-.328.559.559 0 0 1-.038-.235.613.613 0 0 1 .17-.431.59.59 0 0 1 .405-.162Zm2.853 1.572c.03.004.061.004.095.004.325-.011.646.064.937.219.238.144.431.355.552.609.128.279.189.582.185.888v.193a2 2 0 0 1 0 .219h-2.498c.003.227.075.45.204.642a.78.78 0 0 0 .646.265.714.714 0 0 0 .484-.136.642.642 0 0 0 .23-.318l.915.257a1.398 1.398 0 0 1-.28.537c-.14.159-.321.284-.521.355a2.234 2.234 0 0 1-.836.136 1.923 1.923 0 0 1-1.001-.245 1.618 1.618 0 0 1-.665-.703 2.221 2.221 0 0 1-.227-1.036 1.95 1.95 0 0 1 .48-1.398 1.9 1.9 0 0 1 1.3-.488Zm-9.607.023c.162.004.325.026.48.079.207.065.4.174.563.314.26.302.393.692.366 1.088v2.276H8.53l-.109-.711h-.065c-.064.163-.155.31-.272.439a1.122 1.122 0 0 1-.374.264 1.023 1.023 0 0 1-.453.083 1.334 1.334 0 0 1-.866-.264.965.965 0 0 1-.329-.801.993.993 0 0 1 .076-.431 1.02 1.02 0 0 1 .242-.363 1.478 1.478 0 0 1 1.043-.303h.952v-.181a.696.696 0 0 0-.136-.454.553.553 0 0 0-.438-.154.695.695 0 0 0-.378.086.48.48 0 0 0-.193.254l-.99-.144a1.26 1.26 0 0 1 .257-.563c.14-.174.321-.302.533-.378.261-.091.54-.136.82-.129.053-.003.106-.007.163-.007Zm4.384.007c.174 0 .347.038.506.114.182.083.34.211.458.374.257.423.377.911.351 1.406a2.53 2.53 0 0 1-.355 1.448 1.148 1.148 0 0 1-1.009.517c-.204 0-.401-.045-.582-.136a1.052 1.052 0 0 1-.48-.457 1.298 1.298 0 0 1-.114-.234h-.045l.004 1.784h-1.059v-4.713h.904l.117.805h.057c.068-.208.177-.401.328-.56a1.129 1.129 0 0 1 .843-.344h.076v-.004Zm7.559.084h.903l.113.805h.053a1.37 1.37 0 0 1 .235-.484.813.813 0 0 1 .313-.242.82.82 0 0 1 .39-.076h.234v1.051h-.401a.662.662 0 0 0-.313.008.623.623 0 0 0-.272.155.663.663 0 0 0-.174.26.683.683 0 0 0-.027.314v1.875h-1.054v-3.666Zm-17.515.003h3.262v.896L3.73 13.104l.034.113h1.973l.042.9H2.4v-.9l1.931-1.754-.045-.117H2.441v-.896Zm11.815 0h1.055v3.659h-1.055V10.45Zm3.443.684.019.016a.69.69 0 0 0-.351.045.756.756 0 0 0-.287.204c-.11.155-.174.336-.189.522h1.545c-.034-.526-.257-.787-.74-.787h.003Zm-5.718.163c-.026 0-.057 0-.083.004a.78.78 0 0 0-.31.053.746.746 0 0 0-.257.189 1.016 1.016 0 0 0-.204.695v.064c-.015.257.057.507.204.711a.634.634 0 0 0 .253.196.638.638 0 0 0 .314.061.644.644 0 0 0 .578-.265c.14-.223.204-.48.189-.74a1.216 1.216 0 0 0-.181-.711.677.677 0 0 0-.503-.257Zm-4.509 1.266a.464.464 0 0 0-.268.102.373.373 0 0 0-.114.276c0 .053.008.106.027.155a.375.375 0 0 0 .087.132.576.576 0 0 0 .397.11v.004a.863.863 0 0 0 .563-.182.573.573 0 0 0 .211-.457v-.14h-.903Z`})]})}),kp=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAoCAYAAAA16j4lAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAB51JREFUeAHtnL9SFUsQxgfKSAOxSkiFUBPwBUQjzUCNNAEjzQBDEyAyFJ5ADBQT/5BphPoCQKIhmFlqlVilhpw7v6n7nWrnzllm9yxcOLVfVdfuzvTM9kxPT0/3HuhzBqurq8P+MtVqtSb//Pkz7GnANTjyOHny5O6pU6c2+/r6Nr3ulm/durWjuj7dPH/+fObLly8Lb9++Hfjw4YP7/fu3a3B8MDg46C5cuOBu3LjhhoaGFrySF9uV3nLn79+/3/KroOUfGzrG5K25hS6fPXs2i2772Ja/fv26/eDBg8ZqewReye7hw4dY8kj/3t7e7MuXLxvl9hD82cm9efPGed1O93uMfvz40TXoLbx//975Q9dE/69fv8a+ffvmGvQWsGK/Kw/3N6FQ7wLd9rsDwvDwsBsYKLd24L98+XKb6sb8/HxpmQTazc7Ourrx6NEjd5CoXcEodn193W1vb7uxsbFSbeF//Pixm5qacjMzM6EP+qsLLJpuFDwxMeG6BeNhjMLk5KQ7SNSqYITf2NhoW9/m5qYri52dHXfnzh13/fp19+TJk7bVoHT6hlgIvEurH8vURGnyXr16FQj+lOXRhoUIv5SuMkhlvIM+qEsh7gfiXu+OdyL6Q1ZrubGcjI8y+u16ASwvL9cWZHuBWsLS0lLp9n4yQh969koMz1y9Nbf85LXvqdcVHj+poT1Xyn78+BF4/WT9xUfZ9PR0y09wKEPOhYWF0LefzHYZPDyrP56tbCpTPX3QzsqKPK9fv/6rjcakZ8kZj4tn+lBfVfS
18BbmuzYPlPgOX6AbtugZX+/PkzXLHs3d3dcNX7CAX8JLu1tbXwzMrnHog3tYsgJ22BV4A7d+5caM8ugeWMj4+33//58+dw/+7du6R86of60dHRcG9lPX36tCuC+DQu9atdwJZXQa0KZrLm5ubcxYsXg+BV+2GAKIFB0idKokwE6J9ytkgmF0Xgt1OKiEE7KRG/ipJ4H33iGrQoxNfJ/zL56oerlJ0zxv3kk5uiz6pzCUorGOGYVA5AficOvgMrAgjFisV3UBfX7wcGAumgRX8rKyvtiacc33XlypXATx2TAbEQIE2GVbTut7a2Qr3fSsPOgJxc6Ye2PjEQrIbFgvJoxwRTNjIy8p/dgHb0ST+01a5l+eI29Euf8sEpOTVWqFsLLuWD5SeqQD6vocOj0j6YlVo1bDlz5oxrcPjIVjDbbFXlsvXkbtNHFVUSN0cB2QrGJ1YFB6+yYELx89BBZLVyZWDX8qFMkEPXTjHxUUS2gstmpQSddstCOwZ00NmeFKRcFhfyLy4ucl4JdRymbDaKuYG3jtCwduQesqpCwXtZoh1EUoBkQNVgvyqRtABKZIiUfAAkUSgjoZHi/b8J3Z5wmcASq/ggpe/KxHJYDRZEGELIwjNWzLNAPVaOdeHjiYEp4z1YmsIL8cFDGa4mxZeSGyhxItAOl6MdDbkUI1OGFSOn+kV26jUHhEiEZHasEG0kG/3Dy72Vl5DMzkEWci3Yx7OtqiCl51z+ysMSAJaBxYA4TSiroTwO3bD4lHUV8cVE6lE7UCce96+l04/6g593Uud9dcvuZIINGfUem+YlHCVNqn5pq/sy4WbQba6CtWVVgfKtuYJpe9azBm+3aSkOIJvq7ISV4YvJbsWaZBYJizUeS2qLhkftxM9VhqJFbxeSFrSdAy0WyFtv4LVltSnYTlQVIKyS+UUEj5ShMv+VJZRxjeVJ+XgphgnN5eukZH1kiMeCdRYpWAYR715257EKtnyaAzteu2hyfX2pRAc+rJucaG4cKX/Gu/CdNn5O5YPxSzGUE7Yn/yK+TvE9MuDzSI2SqOHKJ0z48bVF4RsfMEDs45WOLMopSG6lhEWc1PdrGyP7kAU4lFSNAZXbLYIORCD1HiaUwduwi9g0hr7g2AVZxJcD+kJ+jYHDD/J0GhM57m7BYSz1AaOMoZVKVZKkr5r8ZuXv11YWgdWQ3LekGDSOiVMxsizATkQRX0ouFgSU2nVy4np7irbQc9FcqH8iCObCkl1kWSj7wZ8TpU50ueh0kIlJvi51iNBpmne76EzAyZJ6iHvAYSbmw2924otJPpR666Ppr1McHP9YQfLaQ5baxocs64ORj3aQPbfoVB77ZudqOGRZQhgLBPGf1ILzTx1Ick7Q9tSZswA0qbw3Ff7onUV8RbIxyTY01IQLKCZWiKAFqsOh2qfaphQsQ5K89t3MQW7Sp1Siw0JbBf6SrcZ+hwVKL1IW13UCWyHpwKLtj/rYJ9E3hx+2Pj66KxkQvzOXz/LzwwXGQRt+rcFYtW3aLVa8Oj+oDpfG+Cnn0IVf5jn1DTgeN89W3lTbLNT5m6zDpNz04FFNIx4G1fqbrAZHEyf442F/PXYfOtkG99vSy/D1IoJunz59utH8XXDv0eDgYGt1dXWdLXrt0qVLrkFv4fz583zj3eLPR1euXbvmvBW7Br0BdHnz5k1+6bnUzz/s8OY8d+/evUbJPQB0ePfuXXf27NlFdNv+JyzeFy98//59/sWLF+7Tp0+u+Zvh4wUUi6u9evXq7tDQ0OLt27eXKO+zTPy/DjJh/na8+TdKxweclj3teN2t4XLtv1H6B3fCpZxM0QcQAAAAAElFTkSuQmCC`,Ap=`/assets/google-play-badge-BrCqUfJJ.png`,jp=`data:image/svg+xml,%3csvg%20width='270'%20height='91'%20viewBox='0%200%20270%2091'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M58.0946%2045.5C58.0946%2055.9704%2049.5668%2064.4583%2039.0472%2064.4583H8.72604C7.91422%2064.4583%207.47462%2063.5122%208.00039%2062.8965L22.3326%2046.1139C22.6349%2045.7599%2022.6349%2045.2401%2022.3326%2044.8861L8.00039%2028.1035C7.47462%2027.4878%207.91422%2026.5417%208.72604%2026.5417H39.0472C49.5668%2026.5417%2058.0946%2035.0296%2058.0946%2045.5Z'%20fill='%234C79FF'/%3e%3cpath%20d='M84.761%2045.5C84.761%2070.629%2064.2942%2091%2039.0472%2091H0.952369C0.42639%2091%200%2090.5756%200%2090.0521V78.6771C0%2078.1536%200.426391%2077.7292%200.95237%2077.7292H39.0472C56.9305%2077.7292%2071.4278%2063.2997%2071.4278%2045.5C71.4278%2027.7003%2056.9305%2013.2708%2039.0472%2013.2708H0.95237C0.426391%2013.2708%200%2012.8464%200%2012.3229V0.947917C0%200.424397%200.426391%200%200.95237%200H39.0472C64.2942%200%2084.761%2020.371%2084.761%2045.5Z'%20fill='%234C79FF'/%3e%3cpath%20d='M137.202%2013.2708H111.427V77.7477H137.202C155.095%2077.7477%20168.446%2063.6549%20168.446%2045.5093C168.446%2027.3636%20155.095%2013.2708%20137.202%2013.2708ZM137.202%2065.5892H124.222V25.4293H137.202C148.42%2025.4293%20156.208%2033.6271%20156.208%2045.5093C156.208%2057.3915%20148.42%2065.5892%20137.202%2065.5892Z'%20fill='%23171513'/%3e%3cpath%20d='M186.119%2059.6021H221.072C221.35%2058.0362%20221.535%2056.4704%20221.535%2054.7203C221.535%2041.1801%20211.801%2030.4033%20198.079%2030.4033C183.523%2030.4033%20173.603%2040.9959%20173.603%2054.7203C173.603%2068.4446%20183.43%2079.0373%20199.006%2079.0373C207.907%2079.0373%20214.86%2075.445%20219.218%2069.1815L209.575%2063.6549C207.536%2066.3261%20203.827%2068.2604%20199.192%2068.2604C192.887%2068.2604%20187.788%2065.6813%20186.119%2059.6021ZM185.934%2050.3911C187.324%2044.4961%20191.682%2041.088%20198.079%2041.088C203.086%2041.088%20208.092%2043.7592%20209.575%2050.3911H185.934Z'%20fill='%23171513'/%3e%3cpath%20d='M270%2077.7477L253.033%2054.1676L269.258%2031.6928H255.537L246.173%2044.6803L236.809%2031.6928H222.994L239.219%2054.2597L222.253%2077.7477H236.067L246.173%2063.747L256.186%2077.7477H270Z'%20fill='%23171513'/%3e%3c/svg%3e`,Mp=`data:image/svg+xml,%3csvg%20width='85'%20height='91'%20viewBox='0%200%2085%2091'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M58.0946%2045.5C58.0946%2055.9704%2049.5668%2064.4583%2039.0472%2064.4583H8.72604C7.91422%2064.4583%207.47462%2063.5122%208.00039%2062.8965L22.3326%2046.1139C22.6349%2045.7599%2022.6349%2045.2401%2022.3326%2044.8861L8.00039%2028.1035C7.474
1862%2027.4878%207.91422%2026.5417%208.72604%2026.5417H39.0472C49.5668%2026.5417%2058.0946%2035.0296%2058.0946%2045.5Z'%20fill='%234C79FF'/%3e%3cpath%20d='M84.761%2045.5C84.761%2070.629%2064.2942%2091%2039.0472%2091H0.952369C0.42639%2091%200%2090.5756%200%2090.0521V78.6771C0%2078.1536%200.426391%2077.7292%200.95237%2077.7292H39.0472C56.9305%2077.7292%2071.4278%2063.2997%2071.4278%2045.5C71.4278%2027.7003%2056.9305%2013.2708%2039.0472%2013.2708H0.95237C0.426391%2013.2708%200%2012.8464%200%2012.3229V0.947917C0%200.424397%200.426391%200%200.95237%200H39.0472C64.2942%200%2084.761%2020.371%2084.761%2045.5Z'%20fill='%234C79FF'/%3e%3c/svg%3e`;function Np(e){let t=(0,q.c)(3),{className:n,isotypeOnly:r}=e,i=r?Mp:jp,a;return t[0]!==n||t[1]!==i?(a=(0,U.jsx)(`img`,{src:i,alt:`Dex`,className:n}),t[0]=n,t[1]=i,t[2]=a):a=t[2],a}var Pp=[{label:`Facebook`,href:`https://www.facebook.com/dexprm`,Icon:pt},{label:`Instagram`,href:`https://www.instagram.com/dex_prm/`,Icon:mt},{label:`X`,href:`https://x.com/dexprm`,Icon:wp},{label:`TikTok`,href:`https://www.tiktok.com/@getdex`,Icon:bp},{label:`YouTube`,href:`https://www.youtube.com/@dexprm`,Icon:Ep}],Fp=[[{label:`Product`,items:[{label:`Product Overview`,href:`/product-overview`},{label:`Dex for Agents`,href:`/ai-agents`},{label:`Browser Extension`,href:`/browser-extension`},{label:`Mobile App`,href:`/mobile`},{label:`Desktop App`,href:`/desktop`},{label:`Security & Privacy`,href:`/security`},{label:`Roadmap`,href:`https://feedback.getdex.com/roadmap`},{label:`Changelog`,href:`https://getdex.com/docs/changelog/changelog`}]},{label:`Use cases`,items:[{label:`MBA Students`,href:`/mba`},{label:`Student Discount`,href:`/student`},{label:`Founders`,href:`/use-cases/founders`},{label:`Investors`,href:`/use-cases/investors`},{label:`Job Seekers`,href:`/use-cases/jobseekers`},{label:`Creators`,href:`/use-cases/creators`}]}],[{label:`Integrations`,items:[{label:`Gmail`,href:`/integrations/gmail`},{label:`Outlook`,href:`/integrations/outlook`},{label:`Google Calendar`,href:`/integrations/google-calendar`},{label:`Two-way Contact Sync`,href:`/integrations/two-way-sync`},{label:`Superhuman`,href:`/integrations/superhuman`},{label:`Facebook`,href:`/integrations/facebook`},{label:`Instagram`,href:`/integrations/instagram`},{label:`WhatsApp`,href:`/integrations/whatsapp`},{label:`Granola`,href:`/integrations/granola`},{label:`Zapier`,href:`/integrations/zapier`}]},{label:`Guides`,items:[{label:`MBA Networking`,href:`/guides/mba-networking`},{label:`Find the right personal CRM`,href:`/guides/finding-the-right-personal-crm`},{label:`Organizing your job search`,href:`/guides/organizing-your-job-search`}]}],[{label:`Comparisons`,items:[{label:`Dex vs HubSpot`,href:`/blog/hubspot-vs-dex/`},{label:`Dex vs Clay`,href:`/blog/dex-vs-clay/`},{label:`Dex vs Notion`,href:`/blog/notion-vs-dex/`},{label:`Dex vs Folk`,href:`/blog/dex-vs-folk/`},{label:`Dex vs Attio`,href:`/blog/dex-vs-attio/`},{label:`Dex vs Google Contacts`,href:`/blog/dex-vs-google-contacts/`},{label:`Dex vs Orvo`,href:`/blog/dex-vs-orvo/`},{label:`Dex vs Contacts+`,href:`/blog/dex-vs-contacts-contact-management-app/`}]}],[{label:`Company`,items:[{label:`About`,href:`/about`},{label:`Blog`,href:`/blog`},{label:`Dex Ambassador Program`,href:`/ambassador`},{label:`Terms of Service`,href:`/termsofservice`},{label:`Privacy Policy`,href:`/privacypolicy`},{label:`Vulnerability Disclosure Program`,href:`https://docs.google.com/forms/d/e/1FAIpQLSeSdI6ouP1cIoufV79xV3tbcjv6FBuw1rDkkJbDK2T6tpdErg/viewform?usp=sf_link`},{label:`From C-AR`,href:`https://www.sec.gov/Archives/edgar/data/1900769/000190076923000002/dexformc-ar.pdf`},{label:`Testimonials`,href:`/testimonials`}]},{label:`Support`,items:[{label:`Documentation`,href:`https://getdex.com/docs`},{label:`Getting Started with Dex`,href:`https://getdex.com/docs/get-started`},{label:`Support`,href:`/support`},{label:`Contact Us`,href:`mailto:[email protected]`}]}]],Ip=`text-sm text-neutral-700 transition-colors hover:text-foreground`;function Lp(){let e=(0,q.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,U.jsx)(`div`,{children:(0,U.jsx)(Np,{className:`h-6 w-auto`})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,U.jsx)(`h2`,{id:`footer-nav-heading`,className:`sr-only`,children:`Site navigation`}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsxs)(`div`,{className:`grid gap-12 md:grid-cols-[140px_1fr]`,children:[t,(0,U.jsxs)(`nav`,{"aria-labelledby":`footer-nav-heading`,children:[n,(0,U.jsx)(`div`,{className:`grid grid-cols-2 gap-[71px] lg:grid-cols-4`,children:Fp.map(zp)})]})]}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`footer`,{className:`border-t border-neutral-200 bg-background`,children:(0,U.jsxs)(`div`,{className:`mx-auto max-w-[1200px] px-6 pt-20 pb-10`,children:[r,(0,U.jsxs)(`div`,{className:`mt-[60px] flex flex-col-reverse items-center gap-6 sm:flex-row sm:gap-[60px]`,children:[(0,U.jsx)(`div`,{className:`flex items-center gap-2`,children:Pp.map(Rp)}),(0,U.jsx)(`p`,{className:`text-center text-sm text-neutral-500 sm:flex-1 sm:text-right`,children:`Copyright 2026 DanaHQ, Inc.`})]})]})}),e[3]=i):i=e[3],i}function Rp(e){let{label:t,href:n,Icon:r}=e;return(0,U.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,"aria-label":t,className:`flex size-6 items-center justify-center rounded-[4px] bg-neutral-100 text-neutral-700 transition-colors hover:text-foreground`,children:(0,U.jsx)(r,{className:`size-3.5`})},t)}function zp(e,t){return(0,U.jsxs)(`div`,{className:`space-y-12`,children:[e.map(Bp),t===Fp.length-1?(0,U.jsxs)(`div`,{className:`flex flex-col items-start gap-3`,children:[(0,U.jsx)(`a`,{href:gt,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Download on the App Store`,className:`block transition-opacity hover:opacity-90`,children:(0,U.jsx)(`img`,{src:kp,alt:`Download on the App Store`,width:120,height:40,loading:`lazy`,decoding:`async`,className:`block h-[33px] w-[100px]`})}),(0,U.jsx)(`a`,{href:ht,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`Get it on Google Play`,className:`block transition-opacity hover:opacity-90`,children:(0,U.jsx)(`img`,{src:Ap,alt:`Get it on Google Play`,width:120,height:40,loading:`lazy`,decoding:`async`,className:`block h-[33px] w-[100px]`})})]}):null]},t)}function Bp(e){let{label:t,items:n}=e;return(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h3`,{className:`text-sm text-neutral-500`,children:t}),(0,U.jsx)(`ul`,{className:`mt-3 space-y-1`,children:n.map(Vp)})]},t)}function Vp(e){let{label:t,href:n}=e;return(0,U.jsx)(`li`,{children:(0,U.jsx)(Hp,{href:n,children:t})},t)}function Hp(e){let t=(0,q.c)(10),{href:n,children:r}=e;if(!n.startsWith(`/`)){let e;return t[0]!==r||t[1]!==n?(e=(0,U.jsx)(`a`,{href:n,className:Ip,children:r}),t[0]=r,t[1]=n,t[2]=e):e=t[2],e}let i,a;if(t[3]!==n){let[e,r]=n.split(`?`);i=e,a=r?Object.fromEntries(new URLSearchParams(r).entries()):void 0,t[3]=n,t[4]=i,t[5]=a}else i=t[4],a=t[5];let o=a,s;return t[6]!==r||t[7]!==i||t[8]!==o?(s=(0,U.jsx)(ae,{to:i,search:o,className:Ip,children:r}),t[6]=r,t[7]=i,t[8]=o,t[9]=s):s=t[9],s}function Up(e,t){if(typeof e==`function`)return e(t);
18e!=null&&(e.current=t)}function Wp(...e){return t=>{let n=!1,r=e.map(e=>{let r=Up(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Up(e[t],null)}}}}function Gp(...e){return H.useCallback(Wp(...e),e)}var Kp=class extends H.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Et(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Et(e)&&e.offsetWidth||0,r=Et(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function qp({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,H.useId)(),s=(0,H.useRef)(null),c=(0,H.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,H.useContext)(Tt),u=Gp(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,H.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 19 [data-motion-pop-id="${o}"] { 20 position: absolute !important; 21 width: ${e}px !important; 22 height: ${u}px !important; 23 ${_}px !important; 24 ${v}px !important; 25 } 26 `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,U.jsx)(Kp,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:H.cloneElement(e,{ref:u})})}var Jp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=_t(Yp),d=(0,H.useId)(),f=(0,H.useRef)(n),p=(0,H.useRef)(r);vt(()=>{f.current=n,p.current=r});let m=!0,h=(0,H.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,H.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),H.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,U.jsx)(qp,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,U.jsx)(bt.Provider,{value:h,children:e})};function Yp(){return new Map}var Xp=e=>e.key||``;function Zp(e){let t=[];return H.Children.forEach(e,e=>{(0,H.isValidElement)(e)&&t.push(e)}),t}var Qp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Ct(o),f=(0,H.useMemo)(()=>Zp(e),[e]),p=o&&!u?[]:f.map(Xp),m=(0,H.useRef)(!0),h=(0,H.useRef)(f),g=_t(()=>new Map),_=(0,H.useRef)(new Set),[v,y]=(0,H.useState)(f),[b,x]=(0,H.useState)(f);vt(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=Xp(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=Xp(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Zp(e)),y(f),null}let{forceRender:C}=(0,H.useContext)(yt);return(0,U.jsx)(U.Fragment,{children:b.map(e=>{let v=Xp(e),y=o&&!u?!1:f===b||p.includes(v);return(0,U.jsx)(Jp,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})};function $p(){!xt.current&&St();let[e]=(0,H.useState)(wt.current);return e}var em=`blog`,tm=`ref_post`,nm=[`/preboard`,`/pricing`,`/get-started`],rm=`https://getdex.com`,im=new Set([`getdex.com`,`www.getdex.com`,`next.getdex.com`]),am=new Set([`author`,`tag`,`page`]);function om(e){return nm.some(t=>e===t||e.startsWith(`${t}/`))}function sm(e,t){let n;try{n=new URL(e,rm)}catch{return e}return!im.has(n.hostname)||!om(n.pathname)?e:(n.searchParams.set(`ref`,em),t&&n.searchParams.set(tm,t),e.startsWith(`/`)?`${n.pathname}${n.search}${n.hash}`:n.href)}function cm(e){let t=/^\/blog\/([^/]+)\/?$/.exec(e);if(!t)return;let n=t[1];if(!(!n||am.has(n)))return n}function lm(e){if(e!==`/blog`&&!e.startsWith(`/blog/`))return;let t=cm(e);return t?{ref:em,ref_post:t}:{ref:em}}var um=[[{label:`Guides`,title:`Do more with your network`,to:`/guides`},{label:`Blog`,title:`Updates and more from Dex`,to:`/blog`},{label:`Docs`,title:`How to use Dex`,href:`https://getdex.com/docs`},{label:`AI Assistant`,title:`Bring your network to AI`,to:`/ai-agents`}
26],[{label:`Install Extension`,title:`Get the Chrome Extension`,to:`/browser-extension`},{label:`Download on Desktop`,title:`Get the desktop app`,to:`/desktop`},{label:`Download on Mobile`,title:`Get the mobile app`,to:`/mobile`}]],dm=[{label:`Resources`,dropdown:um},{label:`Integrations`,to:`/integrations`},{label:`Pricing`,to:`/pricing`},{label:`Love`,to:`/testimonials`}],fm=dm.filter(e=>!e.dropdown),pm=um.flat(),mm=[`/resources`,`/blog`,`/guides`,`/ai-agents`,`/browser-extension`,`/desktop`,`/mobile`],hm=`h-10 rounded-xl backdrop-blur-md`,gm={boxShadow:`0 4px 10px 0 rgba(0, 0, 0, 0.05)`},_m={...gm,background:`linear-gradient(93.7124deg, rgba(255, 255, 255, 0.45) 27.803%, rgba(255, 255, 255, 0.88) 155.95%)`},vm={...gm,background:`linear-gradient(93.3866deg, rgba(255, 255, 255, 0.45) 27.814%, rgba(255, 255, 255, 0.88) 160.36%)`},ym=`inline-flex items-center text-sm font-normal leading-5 transition-colors`,bm=`text-neutral-500 hover:text-foreground`,xm=`text-foreground`,Sm=100;function Cm(e,t){return e.dropdown?mm.some(e=>t.startsWith(e)):e.to===`/integrations`?t.startsWith(`/integrations`):e.to===`/pricing`?t.startsWith(`/pricing`):e.to===`/testimonials`?t.startsWith(`/testimonials`):!1}function wm(){let e=(0,q.c)(60),[t,n]=(0,H.useState)(!1),[r,i]=(0,H.useState)(!1),a=(0,H.useRef)(null),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={select:Em},e[0]=o):o=e[0];let{pathname:s,search:c}=Xl(o),l;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>{i(!1)},e[1]=l):l=e[1];let u;e[2]!==s||e[3]!==c?(u=[s,c],e[2]=s,e[3]=c,e[4]=u):u=e[4],(0,H.useEffect)(l,u);let d,f;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>()=>{a.current&&window.clearTimeout(a.current)},f=[],e[5]=d,e[6]=f):(d=e[5],f=e[6]),(0,H.useEffect)(d,f);let p,m;e[7]===r?(p=e[8],m=e[9]):(p=()=>{if(!r)return;let e=e=>{e.key===`Escape`&&i(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},m=[r],e[7]=r,e[8]=p,e[9]=m),(0,H.useEffect)(p,m);let h;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{a.current&&=(window.clearTimeout(a.current),null)},e[10]=h):h=e[10];let g=h,_;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{g(),i(!0)},e[11]=_):_=e[11];let v=_,y;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>{g(),a.current=window.setTimeout(()=>{i(!1),a.current=null},Sm)},e[12]=y):y=e[12];let b=y,x,S,C;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(x={opacity:0,x:-8},S={opacity:1,x:0},C={duration:.45,ease:Dt},e[13]=x,e[14]=S,e[15]=C):(x=e[13],S=e[14],C=e[15]);let w;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,U.jsx)(V.div,{className:`absolute left-6 top-1/2 -translate-y-1/2 shrink-0`,initial:x,animate:S,transition:C,children:(0,U.jsx)(ae,{to:`/`,"aria-label":`Dex home`,className:`block`,children:(0,U.jsx)(Np,{className:`h-[30px] w-[88px]`})})}),e[16]=w):w=e[16];let T;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(T=$e(`flex items-center gap-6 px-3`,hm),e[17]=T):T=e[17];let E,D,O;e[18]===Symbol.for(`react.memo_cache_sentinel`)?(E={opacity:0,y:-8},D={opacity:1,y:0},O={duration:.45,delay:.05,ease:Dt},e[18]=E,e[19]=D,e[20]=O):(E=e[18],D=e[19],O=e[20]);let k;e[21]!==s||e[22]!==r?(k=dm.map((e,t)=>{let n=Cm(e,s),a=!!e.dropdown;return(0,U.jsx)(V.li,{initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.4,delay:.05+t*.04,ease:Dt},onMouseEnter:a?v:void 0,onMouseLeave:a?b:void 0,children:a?(0,U.jsx)(`button`,{type:`button`,"aria-haspopup":`menu`,"aria-expanded":r,onClick:()=>r?i(!1):v(),className:$e(ym,`cursor-default`,n||r?xm:bm),children:e.label}):(0,U.jsx)(ae,{to:e.to,search:e.search,"aria-current":n?`page`:void 0,className:$e(ym,n?xm:bm),children:e.label})},e.label)}),e[21]=s,e[22]=r,e[23]=k):k=e[23];let A;e[24]===k?A=e[25]:(A=(0,U.jsx)(V.ul,{className:T,style:_m,initial:E,animate:D,transition:O,children:k}),e[24]=k,e[25]=A);let j;e[26]===r?j=e[27]:(j=(0,U.jsx)(Dm,{open:r,onMouseEnter:v,onMouseLeave:b}),e[26]=r,e[27]=j);let M;e[28]!==A||e[29]!==j?(M=(0,U.jsxs)(`div`,{className:`relative mx-auto hidden w-fit md:block`,children:[A,j]}),e[28]=A,e[29]=j,e[30]=M):M=e[30];let ee;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(ee=$e(`absolute right-6 top-1/2 flex -translate-y-1/2 items-center gap-2 pl-1 pr-1 md:gap-4 md:pl-3`,hm),e[3
261]=ee):ee=e[31];let te,N,P;e[32]===Symbol.for(`react.memo_cache_sentinel`)?(te={opacity:0,y:-8},N={opacity:1,y:0},P={duration:.45,delay:.1,ease:Dt},e[32]=te,e[33]=N,e[34]=P):(te=e[32],N=e[33],P=e[34]);let ne;e[35]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,U.jsx)(ae,{to:`/app/auth/sign-in`,className:$e(ym,bm,`hidden md:inline-flex`),children:`Sign in`}),e[35]=ne):ne=e[35];let F;e[36]===s?F=e[37]:(F=lm(s),e[36]=s,e[37]=F);let re;e[38]===F?re=e[39]:(re={step:0,...F},e[38]=F,e[39]=re);let ie;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(ie=Xe({size:`sm`,className:`h-8 rounded-lg px-3 md:h-9`}),e[40]=ie):ie=e[40];let I;e[41]===re?I=e[42]:(I=(0,U.jsx)(ae,{to:`/get-started`,search:re,className:ie,children:`Get started for free`}),e[41]=re,e[42]=I);let L=t?`Close menu`:`Open menu`,R;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>n(Tm),e[43]=R):R=e[43];let oe;e[44]===t?oe=e[45]:(oe=t?(0,U.jsx)(ft,{className:`size-5`}):(0,U.jsx)(ip,{className:`size-5`}),e[44]=t,e[45]=oe);let se;e[46]!==t||e[47]!==L||e[48]!==oe?(se=(0,U.jsx)(`button`,{type:`button`,"aria-label":L,"aria-expanded":t,onClick:R,className:`grid size-8 place-items-center text-neutral-500 transition-colors hover:text-foreground md:hidden`,children:oe}),e[46]=t,e[47]=L,e[48]=oe,e[49]=se):se=e[49];let ce;e[50]!==I||e[51]!==se?(ce=(0,U.jsxs)(V.div,{className:ee,style:vm,initial:te,animate:N,transition:P,children:[ne,I,se]}),e[50]=I,e[51]=se,e[52]=ce):ce=e[52];let le;e[53]===Symbol.for(`react.memo_cache_sentinel`)?(le=()=>n(!1),e[53]=le):le=e[53];let ue;e[54]===t?ue=e[55]:(ue=(0,U.jsx)(jm,{open:t,onClose:le}),e[54]=t,e[55]=ue);let de;return e[56]!==M||e[57]!==ce||e[58]!==ue?(de=(0,U.jsx)(`nav`,{className:`absolute inset-x-0 top-0 z-20 pt-6`,children:(0,U.jsxs)(`div`,{className:`relative mx-auto h-10 max-w-[1200px] px-6`,children:[w,M,ce,ue]})}),e[56]=M,e[57]=ce,e[58]=ue,e[59]=de):de=e[59],de}function Tm(e){return!e}function Em(e){return{pathname:e.location.pathname,search:e.location.search??{}}}function Dm(e){let t=(0,q.c)(6),{open:n,onMouseEnter:r,onMouseLeave:i}=e,a;t[0]!==r||t[1]!==i||t[2]!==n?(a=n?(0,U.jsx)(V.div,{role:`menu`,"aria-label":`Resources`,onMouseEnter:r,onMouseLeave:i,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.15},style:gm,className:`absolute left-1/2 top-full z-30 mt-1.5 inline-flex -translate-x-1/2 items-start gap-3 rounded-xl bg-popover/95 p-3 backdrop-blur-sm`,children:um.map(Om)},`resources-dropdown`):null,t[0]=r,t[1]=i,t[2]=n,t[3]=a):a=t[3];let o;return t[4]===a?o=t[5]:(o=(0,U.jsx)(Qp,{children:a}),t[4]=a,t[5]=o),o}function Om(e,t){return(0,U.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.map(km)},t)}function km(e){return(0,U.jsx)(`li`,{children:(0,U.jsx)(Am,{item:e})},e.title)}function Am(e){let t=(0,q.c)(17),{item:n}=e,r;t[0]===n.label?r=t[1]:(r=(0,U.jsx)(`span`,{className:`text-xs leading-4 text-neutral-500`,children:n.label}),t[0]=n.label,t[1]=r);let i;t[2]===n.href?i=t[3]:(i=n.href?(0,U.jsx)(ep,{className:`size-3 text-neutral-400`,strokeWidth:2,"aria-hidden":`true`}):null,t[2]=n.href,t[3]=i);let a;t[4]!==n.title||t[5]!==i?(a=(0,U.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-sm leading-5 text-foreground`,children:[n.title,i]}),t[4]=n.title,t[5]=i,t[6]=a):a=t[6];let o;t[7]!==r||t[8]!==a?(o=(0,U.jsxs)(U.Fragment,{children:[r,a]}),t[7]=r,t[8]=a,t[9]=o):o=t[9];let s=o;if(n.href){let e;return t[10]!==s||t[11]!==n.href?(e=(0,U.jsx)(`a`,{href:n.href,target:`_blank`,rel:`noopener noreferrer`,role:`menuitem`,className:`flex w-60 flex-col items-start gap-0.5 rounded-md p-2 transition-colors hover:bg-neutral-50`,children:s}),t[10]=s,t[11]=n.href,t[12]=e):e=t[12],e}let c;return t[13]!==s||t[14]!==n.search||t[15]!==n.to?(c=(0,U.jsx)(ae,{to:n.to,search:n.search,role:`menuitem`,className:`flex w-60 flex-col items-start gap-0.5 rounded-md p-2 transition-colors hover:bg-neutral-50`,children:s}),t[13]=s,t[14]=n.search,t[15]=n.to,t[16]=c):c=t[16],c}function jm(e){let t=(0,q.c)(11),{open:n,onClose:r}=e,[i,a]=(0,H.useState)(!1),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={select:Nm},t[0]=o):o=t[0];let{pathname:s}=Xl(o),c,l;t[1]===n?(c=t[2],l=t[3]):(c=()=>{n||a(!1)},l=[n],t[1]=n,t[2]=c,t[3]=l),(0,H.useEffect)(c,l);let u;t[4]!==r||t[5]!==n||t[6]!==s||t[7]!==i?(u=n?(0,U.jsxs)(V.div,{initial:{opacity:0,y:-8}
26,animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2},className:`absolute right-6 left-6 top-[calc(100%+32px)] flex flex-col gap-0.5 rounded-2xl bg-card p-3 shadow-lg ring-1 ring-border/50 md:hidden`,children:[(0,U.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:()=>a(Mm),className:$e(`inline-flex w-full items-center px-3 py-2.5 text-sm font-normal leading-5 transition-colors`,`justify-between`,Cm(dm[0],s)||i?xm:bm),children:[(0,U.jsx)(`span`,{children:`Resources`}),(0,U.jsx)(Qf,{"aria-hidden":`true`,className:$e(`size-4 shrink-0 transition-transform duration-200`,i&&`rotate-180`)})]}),(0,U.jsx)(Qp,{initial:!1,children:i?(0,U.jsx)(V.ul,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.22,1,.36,1]},className:`flex flex-col gap-0.5 overflow-hidden pl-3`,children:pm.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsx)(Pm,{item:e,onClose:r})},e.title))},`mobile-resources`):null}),fm.map(e=>{let t=Cm(e,s);return(0,U.jsx)(ae,{to:e.to,search:e.search,onClick:r,"aria-current":t?`page`:void 0,className:$e(`inline-flex w-full items-center px-3 py-2.5 text-sm font-normal leading-5 transition-colors`,t?xm:bm),children:e.label},e.label)}),(0,U.jsx)(ae,{to:`/app/auth/sign-in`,onClick:r,className:$e(`inline-flex w-full items-center px-3 py-2.5 text-sm font-normal leading-5 transition-colors`,bm),children:`Sign in`})]},`mobile-menu`):null,t[4]=r,t[5]=n,t[6]=s,t[7]=i,t[8]=u):u=t[8];let d;return t[9]===u?d=t[10]:(d=(0,U.jsx)(Qp,{children:u}),t[9]=u,t[10]=d),d}function Mm(e){return!e}function Nm(e){return{pathname:e.location.pathname}}function Pm(e){let t=(0,q.c)(19),{item:n,onClose:r}=e,i;t[0]===n.label?i=t[1]:(i=(0,U.jsx)(`span`,{className:`text-xs leading-4 text-neutral-500`,children:n.label}),t[0]=n.label,t[1]=i);let a;t[2]===n.href?a=t[3]:(a=n.href?(0,U.jsx)(ep,{className:`size-3 text-neutral-400`,strokeWidth:2,"aria-hidden":`true`}):null,t[2]=n.href,t[3]=a);let o;t[4]!==n.title||t[5]!==a?(o=(0,U.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-sm leading-5 text-foreground`,children:[n.title,a]}),t[4]=n.title,t[5]=a,t[6]=o):o=t[6];let s;t[7]!==i||t[8]!==o?(s=(0,U.jsxs)(U.Fragment,{children:[i,o]}),t[7]=i,t[8]=o,t[9]=s):s=t[9];let c=s;if(n.href){let e;return t[10]!==c||t[11]!==n.href||t[12]!==r?(e=(0,U.jsx)(`a`,{href:n.href,target:`_blank`,rel:`noopener noreferrer`,onClick:r,className:`flex w-full flex-col gap-0.5 rounded-md px-3 py-2 transition-colors hover:bg-neutral-50`,children:c}),t[10]=c,t[11]=n.href,t[12]=r,t[13]=e):e=t[13],e}let l;return t[14]!==c||t[15]!==n.search||t[16]!==n.to||t[17]!==r?(l=(0,U.jsx)(ae,{to:n.to,search:n.search,onClick:r,className:`flex w-full flex-col gap-0.5 rounded-md px-3 py-2 transition-colors hover:bg-neutral-50`,children:c}),t[14]=c,t[15]=n.search,t[16]=n.to,t[17]=r,t[18]=l):l=t[18],l}z();var Fm=typeof window<`u`,Im=class extends H.Component{state={hasError:!1,error:void 0};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){zm(e,t)}render(){if(!this.state.hasError)return this.props.children;if(!Fm)throw Lm(this.state.error);return(0,U.jsx)(Bm,{error:this.state.error})}};function Lm(e){return e instanceof Error?e:Error(`Non-Error value thrown during render: ${Rm(e)}`)}function Rm(e){if(typeof e==`string`)return e||`<empty string>`;try{return String(e)}catch{return`<unstringifiable>`}}async function zm(e,t){try{(await B(()=>import(`./esm-CKhyEPqg.js`).then(e=>e.t),__vite__mapDeps([0,1,2]))).captureException(Lm(e),{contexts:{react:{componentStack:t.componentStack}},tags:{boundary:`root`},extra:{thrownValue:Rm(e)}})}catch{}}function Bm(e){let t=(0,q.c)(11),{error:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsxs)(`div`,{className:`rise-in flex items-center gap-3 text-muted-foreground`,style:{animationDelay:`0ms`},children:[(0,U.jsx)(`span`,{"aria-hidden":!0,className:`h-px w-10 bg-current opacity-40`}),(0,U.jsx)(`span`,{className:`text-[0.6875rem] font-medium uppercase tracking-[0.22em]`,children:`Something went wrong`})]}),t[0]=r):r=t[0];let i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`h1`,{className:`rise-in mt-6 italic text-display-lg text-foreground sm:text-display-xl`,style:{animationDelay:`80ms`},children:`That didnât load.`}),t[1]=i):i=t[1];let a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={animationDelay:`180ms`},o=(0,U.jsx)(`p`,{className:`max-w-[48ch] text-lg leading-normal text-muted-foreground`,children:`Something broke while showing this page. Itâs been reported â reloading usually fixes it.`}),t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s;t[4]===n?s=t[5]:(s=Lm(n),t[4]=n,t[5]=s);let c;t[6]===s.message?c=t[7]:(c=(0,U.jsx)(`p`,{className:`mt-4 max-w-[56ch] truncate font-mono text-xs text-muted-foreground
26/70`,children:s.message}),t[6]=s.message,t[7]=c);let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,U.jsxs)(`div`,{className:`mt-12 flex items-center gap-8`,children:[(0,U.jsx)(`button`,{type:`button`,onClick:Vm,className:`inline-flex items-center rounded-md bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground shadow-xs transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/32`,children:`Reload page`}),(0,U.jsx)(`a`,{href:`/`,className:`text-sm font-medium text-muted-foreground transition-colors hover:text-foreground`,children:`Take me home`})]}),t[8]=l):l=t[8];let u;return t[9]===c?u=t[10]:(u=(0,U.jsx)(`main`,{className:`flex min-h-screen flex-col justify-center`,children:(0,U.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-6 sm:px-12 lg:px-20 xl:px-28`,children:(0,U.jsxs)(`div`,{className:`max-w-xl`,children:[r,i,(0,U.jsxs)(`div`,{className:`rise-in mt-8`,style:a,children:[o,c,l]})]})})}),t[9]=c,t[10]=u),u}function Vm(){return window.location.reload()}var Hm=()=>{},Um=new Promise(e=>{Hm=e});function Wm(){Hm()}function Gm(){return Um}var Km=[`/app`,`/logout`,`/preboard`,`/shared`,`/linkHandler`,`/refer`,`/auth`,`/desktop-login-start`,`/desktop-login-redirect`,`/desktop-voice-panel`];function qm(e){return Km.some(t=>e===t||e.startsWith(`${t}/`))}var Jm=`/app/auth`,Ym=new Set([`/app/auth/mcp-authorize`,`/app/auth/device-code`]),Xm=new Set([`/app/auth/action`]);function Zm(e){let t=e.toLowerCase();return t===Jm||t.startsWith(`${Jm}/`)}function Qm(e){return Ym.has(e.toLowerCase().replace(/\/+$/,``))}function $m(e){return Xm.has(e.toLowerCase().replace(/\/+$/,``))}var eh=`/app`,th=`/desktop-voice-panel`,nh=`/refer`;function rh(e){let t=e.toLowerCase();return t===eh||t.startsWith(`${eh}/`)||t===th||t===nh}function ih(e){return e.some(rh)&&!e.some(Zm)}var ah=class extends Error{constructor(e){super(e),this.name=`TanStackDBError`}},oh=class extends ah{constructor(e,t,n){let r=`${e===`insert`?`Insert`:`Update`} validation failed: ${t.map(e=>` 27- ${e.message} - path: ${e.path}`).join(``)}`;super(n||r),this.name=`SchemaValidationError`,this.type=e,this.issues=t}},sh=class extends ah{constructor(e){super(e),this.name=`CollectionConfigurationError`}},ch=class extends sh{constructor(){super(`Collection requires a config`)}},lh=class extends sh{constructor(){super(`Collection requires a sync config`)}},uh=class extends sh{constructor(){super(`Schema must implement the standard-schema interface`)}},dh=class extends sh{constructor(){super(`Schema validation must be synchronous`)}},fh=class extends ah{constructor(e){super(e),this.name=`CollectionStateError`}},ph=class extends fh{constructor(e,t){super(`Cannot perform ${e} on collection "${t}" - collection is in error state. Try calling cleanup() and restarting the collection.`)}},mh=class extends fh{constructor(e,t,n){super(`Invalid collection status transition from "${e}" to "${t}" for collection "${n}"`)}},hh=class extends fh{constructor(){super(`Collection is in error state`)}},gh=class extends fh{constructor(){super(`Active subscribers count is negative - this should never happen`)}},_h=class extends ah{constructor(e){super(e),this.name=`CollectionOperationError`}},vh=class extends _h{constructor(e){super(`An object was created without a defined key: ${JSON.stringify(e)}`)}},yh=class extends _h{constructor(e,t){super(`getKey returned an invalid key type. Expected string or number, but got ${e===null?`null`:typeof e}: ${JSON.stringify(e)}. Item: ${JSON.stringify(t)}`)}},bh=class extends _h{constructor(e){super(`Cannot insert document with ID "${e}" because it already exists in the collection`)}},xh=class extends _h{constructor(e,t,n){let r=`Cannot insert document with key "${e}" from sync because it already exists in the collection "${t}"`;n?.hasCustomGetKey&&n.hasDistinct?super(`${r}. This collection uses a custom getKey with .distinct(). The .distinct() operator deduplicates by the ENTIRE selected object (standard SQL behavior), but your custom getKey extracts only a subset of fields. This causes multiple distinct rows (with different values in non-key fields) to receive the same key. To fix this, either: (1) ensure your SELECT only includes fields that uniquely identify each row, (2) use .groupBy() with min()/max() aggregates to select one value per group, or (3) remove the custom getKey to use the default key behavior.`):n?.hasCustomGetKey&&n.hasJoins?super(`${r}. This collection uses a custom getKey with joined queries. Joined queries can produce multiple rows with the same key when relationships are not 1:1. Consider: (1) using a composite key in your getKey function (e.g., \`\${item.key1}-\${item.key2}\`), (2) ensuring your join produces unique rows per key, or (3) removing the custom getKey to use the default composite key behavior.`):super(r)}},Sh=class extends _h{constructor(){super(`The first argument to update is missing`)}},Ch=class extends _h{constructor(){super(`No keys were passed to update`)}},wh=class extends _h{constructor(e){super(`The key "${e}" was passed to update but an object for this key was not found in the collection`)}}
27,Th=class extends _h{constructor(e,t){super(`Updating the key of an item is not allowed. Original key: "${e}", Attempted new key: "${t}". Please delete the old item and create a new one if a key change is necessary.`)}},Eh=class extends _h{constructor(){super(`No keys were passed to delete`)}},Dh=class extends _h{constructor(e){super(`Collection.delete was called with key '${e}' but there is no item in the collection with this key`)}},Oh=class extends ah{constructor(e){super(e),this.name=`MissingHandlerError`}},kh=class extends Oh{constructor(){super(`Collection.insert called directly (not within an explicit transaction) but no 'onInsert' handler is configured.`)}},Ah=class extends Oh{constructor(){super(`Collection.update called directly (not within an explicit transaction) but no 'onUpdate' handler is configured.`)}},jh=class extends Oh{constructor(){super(`Collection.delete called directly (not within an explicit transaction) but no 'onDelete' handler is configured.`)}},Mh=class extends ah{constructor(e){super(e),this.name=`TransactionError`}},Nh=class extends Mh{constructor(){super(`mutationFn is required when creating a transaction`)}},Ph=class extends Mh{constructor(){super(`onMutate must be synchronous and cannot return a promise. Remove async/await or returned promises from onMutate.`),this.name=`OnMutateMustBeSynchronousError`}},Fh=class extends Mh{constructor(){super(`You can no longer call .mutate() as the transaction is no longer pending`)}},Ih=class extends Mh{constructor(){super(`You can no longer call .rollback() as the transaction is already completed`)}},Lh=class extends Mh{constructor(){super(`You can no longer call .commit() as the transaction is no longer pending`)}},Rh=class extends Mh{constructor(){super(`No pending sync transaction to write to`)}},zh=class extends Mh{constructor(){super(`The pending sync transaction is already committed, you can't still write to it.`)}},Bh=class extends Mh{constructor(){super(`No pending sync transaction to commit`)}},Vh=class extends Mh{constructor(){super(`The pending sync transaction is already committed, you can't commit it again.`)}},Hh=class extends ah{constructor(e){super(e),this.name=`QueryBuilderError`}},Uh=class extends Hh{constructor(e){super(`Only one source is allowed in the ${e}`)}},Wh=class extends Hh{constructor(e){super(`A sub query passed to a ${e} must have a from clause itself`)}},Gh=class extends Hh{constructor(e){super(`Invalid source for live query: The value provided for alias "${e}" is not a Collection or subquery. Live queries only accept Collection instances or subqueries. Please ensure you're passing a valid Collection or QueryBuilder, not a plain array or other data type.`)}},Kh=class extends Hh{constructor(e,t){super(`Invalid source for ${e}: Expected an object with a single key-value pair like { alias: collection }. For example: .from({ todos: todosCollection }). Got: ${t}`)}},qh=class extends Hh{constructor(){super(`Join condition must be an equality expression`)}},Jh=class extends Hh{constructor(){super(`Query must have a from clause`)}},Yh=class extends Hh{constructor(e){super(`Invalid where() expression: Expected a query expression, but received a ${e}. This usually happens when using JavaScript's comparison operators (===, !==, <, >, etc.) directly. Instead, use the query builder functions: 28 29 â .where(({ user }) => user.id === 'abc') 30 â .where(({ user }) => eq(user.id, 'abc')) 31 32Available comparison functions: eq, gt, gte, lt, lte, and, or, not, like, ilike, isNull, isUndefined`)}},Xh=class extends ah{constructor(e){super(e),this.name=`QueryCompilationError`}},Zh=class extends Xh{constructor(){super(`DISTINCT requires a SELECT clause.`)}},Qh=class extends Xh{constructor(){super(`fn.select() cannot be used with groupBy(). groupBy requires the compiler to statically analyze aggregate functions (count, sum, max, etc.) in the SELECT clause, which is not possible with fn.select() since it is an opaque function. Use .select() instead of .fn.select() when combining with groupBy().`)}},$h=class extends Xh{constructor(){super(`Top-level scalar select() is not supported by createLiveQueryCollection() or queryOnce(). Return an object from .select(), or use the scalar query inside toArray(...) or concat(toArray(...)).`)}},eg=class extends Xh{constructor(){super(`HAVING clause requires GROUP BY clause`)}},tg=class extends Xh{constructor(){super(`LIMIT and OFFSET require an ORDER BY clause to ensure deterministic results`)}},ng=class extends Xh{constructor(e,t,n){let r=t?`alias "${e}" (collection "${t}")`:`collection "${e}"`,i=n?.length?`. Available keys: ${n.join(`, `)}`:``;super(`Input for ${r} not found in inputs map${i}`)}},rg=class extends Xh{constructor(e,t){super(`Subquery uses alias "${e}" which is already used in the parent query. Each alias must be unique across parent and subquery contexts. Parent query aliases: ${t.join(`, `)}. Please rename "${e}" in either the parent query or subquery to avoid conflicts.`)}},ig=class extends Xh{constructor(e){super(`Unsupported FROM type: ${e}`)}},ag=class extends Xh{constructor(e){super(`Unknown expression type: ${e}`)}},og=class extends Xh{constructor(){super(`Reference path cannot be empty`)}},sg=class extends Xh{constructor(e){super(`Unknown function: ${e}`)}},cg=class extends Xh{constructor(e){super(`Collection "${e}" not found during compilation of join`)}},lg=class extends ah{constructor(e){super(e),this.name=`JoinError`}},ug=class extends lg{constructor(e){super(`Unsupported join type: ${e}`)}},dg=class extends lg{constructor(e){super(`Invalid join condition: both expressions refer to the same source "${e}"`)}},fg=class extends lg{constructor(){super(`Invalid join condition: expressions must reference source aliases`)}},pg=class extends lg{constructor(e){super(`Invalid join condition: left expression refers to an unavailable source "${e}"`)}},mg=class extends lg{constructor(e){super(`Invalid join condition: right expression does not refer to the joined source "${e}"`)}},hg=class extends lg{constructor(){super(`Invalid join condition`)}},gg=class extends lg{constructor(e){super(`Unsupported join source type: ${e}`)}},_g=class extends ah{constructor(e){super(e),this.name=`GroupByError`}},vg=class extends _g{constructor(e){super(`Non-aggregate expression '${e}' in SELECT must also appear in GROUP BY clause`)}},yg=class extends _g{constructor(e){super(`Unsupported aggregate function: ${e}`)}},bg=class extends _g{constructor(e){super(`Aggregate function in HAVING clause must also be in SELECT clause: ${e}`)}},xg=class extends _g{constructor(e){super(`Unknown expression type in HAVING clause: ${e}`)}},Sg=class extends ah{constructor(e){super(e),this.name=`StorageError`}},Cg=class extends Sg{constructor(e,t){super(`Cannot ${e} item because it cannot be JSON serialized: ${t}`)}},wg=class extends Sg{constructor(e){super(e),this.name=`LocalStorageCollectionError`}},Tg=class extends wg{constructor(){super(`[LocalStorageCollection] storageKey must be provided.`)}},Eg=class extends wg{constructor(e,t){super(`[LocalStorageCollection] Invalid data format in storage key "${e}" for key "${t}".`)}},Dg=class extends wg{constructor(e){super(`[LocalStorageCollection] Invalid data format in storage key "${e}". Expected object format.`)}},Og=class extends ah{constructor(e,t){let n=t instanceof Error?t.message:String(t);super(`Collection "${e}" sync cleanup function threw an error: ${n}`),this.name=`SyncCleanupError`}},kg=class extends ah{constructor(e){super(e),this.name=`QueryOptimizerError`}},Ag=class extends kg{constructor(){super(`Cannot combine empty expression list`)}},jg=class extends Xh{constructor(e,t,n,r){super(`Internal error: subscription for alias '${e}' (remapped from '${t}', collection '${n}') is missing in join pipeline. Available aliases: ${r.join(`, `)}. This indicates a bug in alias tracking.`)}},Mg=class extends Xh{constructor(e){super(`Internal error: compiler returned aliases without inputs: ${e.join(`, `)}. This indicates a bug in query compilation. Please report this issue.`)}},Ng=class extends Xh{constructor(){super(`setWindow() can only be called on collections with an ORDER BY clause. Add .orderBy() to your query to enable window movement.`)}};function Pg(e,t){return Fg(e,t,new Map)}function Fg(e,t,n){if(e===t)return!0;
32if(e==null||t==null||typeof e!=typeof t)return!1;if(e instanceof Date)return t instanceof Date?e.getTime()===t.getTime():!1;if(t instanceof Date)return!1;if(e instanceof RegExp)return t instanceof RegExp?e.source===t.source&&e.flags===t.flags:!1;if(t instanceof RegExp)return!1;if(e instanceof Map){if(!(t instanceof Map)||e.size!==t.size)return!1;if(n.has(e))return n.get(e)===t;n.set(e,t);let r=Array.from(e.entries()).every(([e,r])=>t.has(e)&&Fg(r,t.get(e),n));return n.delete(e),r}if(t instanceof Map)return!1;if(e instanceof Set){if(!(t instanceof Set)||e.size!==t.size)return!1;if(n.has(e))return n.get(e)===t;n.set(e,t);let r=Array.from(e),i=Array.from(t);if(r.every(e=>typeof e!=`object`))return n.delete(e),r.every(e=>t.has(e));let a=r.length===i.length;return n.delete(e),a}if(t instanceof Set)return!1;if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)&&!(e instanceof DataView)&&!(t instanceof DataView)){let n=e,r=t;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==r[e])return!1;return!0}if(ArrayBuffer.isView(t)&&!(t instanceof DataView)&&!ArrayBuffer.isView(e))return!1;if(Lg(e)&&Lg(t))return e[Symbol.toStringTag]===t[Symbol.toStringTag]?typeof e.equals==`function`?e.equals(t):e.toString()===t.toString():!1;if(Lg(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;if(n.has(e))return n.get(e)===t;n.set(e,t);let r=e.every((e,r)=>Fg(e,t[r],n));return n.delete(e),r}if(Array.isArray(t))return!1;if(typeof e==`object`){if(n.has(e))return n.get(e)===t;n.set(e,t);let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return n.delete(e),!1;let a=r.every(r=>r in t&&Fg(e[r],t[r],n));return n.delete(e),a}return!1}var Ig=new Set([`Temporal.Duration`,`Temporal.Instant`,`Temporal.PlainDate`,`Temporal.PlainDateTime`,`Temporal.PlainMonthDay`,`Temporal.PlainTime`,`Temporal.PlainYearMonth`,`Temporal.ZonedDateTime`]);function Lg(e){if(typeof e!=`object`||!e)return!1;let t=e[Symbol.toStringTag];return typeof t==`string`&&Ig.has(t)}var Rg={direction:`asc`,nulls:`first`,stringSort:`locale`},zg=new WeakMap,Bg=1;function Vg(e){if(zg.has(e))return zg.get(e);let t=Bg++;return zg.set(e,t),t}var Hg=(e,t,n)=>{let{nulls:r}=n;if(e==null&&t==null)return 0;if(e==null)return r===`first`?-1:1;if(t==null)return r===`first`?1:-1;if(typeof e==`string`&&typeof t==`string`&&n.stringSort===`locale`)return e.localeCompare(t,n.locale,n.localeOptions);if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<Math.min(e.length,t.length);r++){let i=Hg(e[r],t[r],n);if(i!==0)return i}return e.length-t.length}if(e instanceof Date&&t instanceof Date)return e.getTime()-t.getTime();if(Lg(e)&&Lg(t)){let n=e.toString(),r=t.toString();return n<r?-1:+(n>r)}let i=typeof e==`object`,a=typeof t==`object`;if(i||a){if(i&&a)return Vg(e)-Vg(t);if(i)return 1;if(a)return-1}return e<t?-1:+(e>t)},Ug=(e,t,n)=>Hg(t,e,{...n,nulls:n.nulls===`first`?`last`:`first`});function Wg(e){return(t,n)=>e.direction===`asc`?Hg(t,n,e):Ug(t,n,e)}var Gg=Wg({direction:`asc`,nulls:`first`,stringSort:`locale`});function Kg(e,t){if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}var qg=128;function Jg(e){return e instanceof Date?e.getTime():Lg(e)?`__temporal__${e[Symbol.toStringTag]}__${e.toString()}`:(typeof Buffer<`u`&&e instanceof Buffer||e instanceof Uint8Array)&&e.byteLength<=qg?`__u8__${Array.from(e).join(`,`)}`:e}function Yg(e,t){if(e===t)return!0;let n=typeof Buffer<`u`&&e instanceof Buffer||e instanceof Uint8Array,r=typeof Buffer<`u`&&t instanceof Buffer||t instanceof Uint8Array;return n&&r?Kg(e,t):!1}function Xg(e){return e==null}function Zg(e){if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if(typeof e==`string`||typeof e==`number`){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}return null}function Qg(e,t){return e===`%Y-%m-%d`?t.toISOString().slice(0,10):t.toISOString()}function $g(e){return e===!0}function e_(e,t=!1){return n_(e,t)}function t_(e){return n_(e,!0)}function n_(e,t){switch(e.type){case`val`:{let t=e.value;return()=>t}case`ref`:return t?i_(e):r_(e);case`func`:return a_(e,t);default:throw new ag(e.type)}}function r_(e){let[t,...n]=e.path;if(!t)throw new og;if(t===`$selected`){if(n.length===0)return e=>e.$selected;if(n.length===1){let e=n[0];return t=>t.$selected?.[e]}else return e=>{let t=e.$selected;if(t===void 0)return;let r=t;for(let e of n){if(r==null)return r;r=r[e]}return r}}let r=t;if(n.length===0)return e=>e[r];if(n.length===1){let e=n[0];return t=>t[r]?.[e]}else return e=>{let t=e[r];if(t===void 0)return;let i=t;for(let e of n){if(i==null)return i;i=i[e]}return i}}function i_(e){let t=e.path;return e=>{let n=e;for(let e of t){if(n==null)return n;n=n[e]}return n}}function a_(e,t){let n=e.args.map(e=>n_(e,t));switch(e.name){case`eq`:{let e=n[0],t=n[1];return n=>{let r=Jg(e(n)),i=Jg(t(n));return Xg(r)||Xg(i)?null:Yg(r,i)}}case`gt`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return Xg(r)||Xg(i)?null:r>i}}case`gte`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return Xg(r)||Xg(i)?null:r>=i}}case`lt`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return Xg(r)||Xg(i)?null:r<i}}case`lte`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return Xg(r)||Xg(i)?null:r<=i}}case`and`:return e=>{let t=!1;for(let r of n){let n=r(e);
32if(n===!1)return!1;Xg(n)&&(t=!0)}return t?null:!0};case`or`:return e=>{let t=!1;for(let r of n){let n=r(e);if(n===!0)return!0;Xg(n)&&(t=!0)}return t?null:!1};case`not`:{let e=n[0];return t=>{let n=e(t);return Xg(n)?null:!n}}case`in`:{let e=n[0],t=n[1];return n=>{let r=Jg(e(n)),i=t(n);return Xg(r)?null:Array.isArray(i)?i.some(e=>Jg(e)===r):!1}}case`like`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return Xg(r)||Xg(i)?null:o_(r,i,!1)}}case`ilike`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return Xg(r)||Xg(i)?null:o_(r,i,!0)}}case`upper`:{let e=n[0];return t=>{let n=e(t);return typeof n==`string`?n.toUpperCase():n}}case`lower`:{let e=n[0];return t=>{let n=e(t);return typeof n==`string`?n.toLowerCase():n}}case`length`:{let e=n[0];return t=>{let n=e(t);return typeof n==`string`||Array.isArray(n)?n.length:0}}case`concat`:return e=>n.map(t=>{let n=t(e);try{return String(n??``)}catch{try{return JSON.stringify(n)||``}catch{return`[object]`}}}).join(``);case`coalesce`:return e=>{for(let t of n){let n=t(e);if(n!=null)return n}return null};case`add`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return(r??0)+(i??0)}}case`subtract`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return(r??0)-(i??0)}}case`multiply`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n);return(r??0)*(i??0)}}case`divide`:{let e=n[0],t=n[1];return n=>{let r=e(n),i=t(n)??0;return i===0?null:(r??0)/i}}case`date`:{let e=n[0];return t=>{let n=Zg(e(t));return n?n.toISOString().slice(0,10):null}}case`datetime`:{let e=n[0];return t=>{let n=Zg(e(t));return n?n.toISOString():null}}case`strftime`:{let e=n[0],t=n[1];return n=>{let r=e(n);if(typeof r!=`string`)return null;let i=Zg(t(n));return i?Qg(r,i):null}}case`isUndefined`:{let e=n[0];return t=>e(t)===void 0}case`isNull`:{let e=n[0];return t=>e(t)===null}default:throw new sg(e.name)}}function o_(e,t,n){if(typeof e!=`string`||typeof t!=`string`)return!1;let r=n?e.toLowerCase():e,i=(n?t.toLowerCase():t).replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return i=i.replace(/%/g,`.*`),i=i.replace(/_/g,`.`),RegExp(`^${i}$`,`s`).test(r)}var s_=class{constructor(e){this.originalIndex=e}lookup(e,t){let n=e===`gt`?`lt`:e===`gte`?`lte`:e===`lt`?`gt`:e===`lte`?`gte`:e;return this.originalIndex.lookup(n,t)}rangeQuery(e={}){return this.originalIndex.rangeQueryReversed(e)}rangeQueryReversed(e={}){return this.originalIndex.rangeQuery(e)}take(e,t,n){return this.originalIndex.takeReversed(e,t,n)}takeFromStart(e,t){return this.originalIndex.takeReversedFromEnd(e,t)}takeReversed(e,t,n){return this.originalIndex.take(e,t,n)}takeReversedFromEnd(e,t){return this.originalIndex.takeFromStart(e,t)}get orderedEntriesArray(){return this.originalIndex.orderedEntriesArrayReversed}get orderedEntriesArrayReversed(){return this.originalIndex.orderedEntriesArray}supports(e){return this.originalIndex.supports(e)}matchesField(e){return this.originalIndex.matchesField(e)}matchesCompareOptions(e){return this.originalIndex.matchesCompareOptions(e)}matchesDirection(e){return this.originalIndex.matchesDirection(e)}getStats(){return this.originalIndex.getStats()}add(e,t){this.originalIndex.add(e,t)}remove(e,t){this.originalIndex.remove(e,t)}update(e,t,n){this.originalIndex.update(e,t,n)}build(e){this.originalIndex.build(e)}clear(){this.originalIndex.clear()}get keyCount(){return this.originalIndex.keyCount}equalityLookup(e){return this.originalIndex.equalityLookup(e)}inArrayLookup(e){return this.originalIndex.inArrayLookup(e)}get indexedKeysSet(){return this.originalIndex.indexedKeysSet}get valueMapData(){return this.originalIndex.valueMapData}};function c_(e,t,n,r,i){let a=e;return{...e,$synced:a.$synced??r(),$origin:a.$origin??i(),$key:a.$key??t,$collectionId:a.$collectionId??n}}var l_=[`$synced`,`$origin`,`$key`,`$collectionId`];function u_(e){return l_.includes(e)}function d_(e){return e.some(e=>u_(e))}function f_(e,t,n){if(d_(t))return;let r=n??{...Rg,...e.compareOptions};for(let n of e.indexes.values())if(n.matchesField(t)&&n.matchesCompareOptions(r))return n.matchesDirection(r.direction)?n:new s_(n)}function p_(e){if(e.length===0)return new Set;if(e.length===1)return new Set(e[0]);let t=new Set(e[0]);for(let n=1;n<e.length;n++){let r=new Set;for(let i of t)e[n].has(i)&&r.add(i);t=r}return t}function m_(e){let t=new Set;for(let n of e)for(let e of n)t.add(e);return t}function h_(e,t){return g_(e,t)}function g_(e,t){if(e.type===`func`)switch(e.name){case`eq`:case`gt`:case`gte`:case`lt`:case`lte`:return v_(e,t);case`and`:return y_(e,t);case`or`:return b_(e,t);case`in`:return x_(e,t)}return{canOptimize:!1,matchingKeys:new Set}}function __(e,t){if(e.type!==`func`||e.args.length<2)return{canOptimize:!1,matchingKeys:new Set};let n=new Map;for(let t of e.args)if(t.type===`func`&&[`gt`,`gte`,`lt`,`lte`].includes(t.name)){let e=t;if(e.args.length===2){let t=e.args[0],r=e.args[1],i=null,a=null,o=e.name;if(t.type===`ref`&&r.type===`val`)i=t,a=r;else if(t.type===`val`&&r.type===`ref`)switch(i=r,a=t,o){case`gt`:o=`lt`;break;case`gte`:o=`lte`;break;case`lt`:o=`gt`;break;case`lte`:o=`gte`;break}if(i&&a){let e=i.path.join(`.`),t=a.value;n.has(e)||n.set(e,[]),n.get(e).push({operation:o,value:t})}}}for(let[e,r]of n)if(r.length>=2){let n=f_(t,e.split(`.`));if(n&&n.supports(`gt`)&&n.supports(`lt`)){let e,t,i=!0,a=!0;for(let{operation:n,value:o}of r)switch(n){case`gt`:(e===void 0||o>e)&&(e=o,i=!1);break;case`gte`:(e===void 0||o>e)&&(e=o,i=!0);break;case`lt`:(t===void 0||o<t)&&(t=o,a=!1);break;case`lte`:(t===void 0||o<t)&&(t=o,a=!0);break}return{canOptimize:!0,matchingKeys:n.rangeQuery({from:e,to:t,fromInclusive:i,toInclusive:a})}}}return{canOptimize:!1,matchingKeys:new Set}}function v_(e,t){if(e.type!==`func`||e.args.length!==2)return{canOptimize:!1,matchingKeys:new Set};let n=e.args[0],r=e.args[1],i=null,a=null,o=e.name;if(n.type===`ref`&&r.type===`val`)i=n,a=r;else if(n.type===`val`&&r.type===`ref`)switch(i=r,a=n,o){case`gt`:o=`lt`;break;case`gte`:o=`lte`;break;case`lt`:o=`gt`;break;case`lte`:o=`gte`;break}if(i&&a){let e=i.path,n=f_(t,e);if(n){let e=a.value,t=o;return n.supports(t)?{canOptimize:!0,matchingKeys:n.lookup(t,e)}:{canOptimize:!1,matchingKeys:new Set}}}return{canOptimize:!1,matchingKeys:new Set}}function y_(e,t){if(e.type!==`func`||e.args.length<2)return{canOptimize:!1,matchingKeys:new Set};let n=__(e,t);if(n.canOptimize)return n;let r=[];for(let n of e.args){let e=g_(n,t);e.canOptimize&&r.push(e)}return r.length>0?{canOptimize:!0,matchingKeys:p_(r.map(e=>e.matchingKeys))}:{canOptimize:!1,matchingKeys:new Set}}function b_(e,t){if(e.type!==`func`||e.args.length<2)return{canOptimize:!1,matchingKeys:new Set};let n=[];for(let r of e.args){let e=g_(r,t);e.canOptimize&&n.push(e)}return n.length>0?{canOptimize:!0,matchingKeys:m_(n.map(e=>e.matchingKeys))}:{canOptimize:!1,matchingKeys:new Set}}function x_(e,t){if(e.type!==`func`||e.args.length!==2)return{canOptimize:!1,matchingKeys:new Set};let n=e.args[0],r=e.args[1];if(n.type===`ref`&&r.type===`val`&&Array.isArray(r.value)){let e=n.path,i=r.value,a=f_(t,e);if(a){if(a.supports(`in`))return{canOptimize:!0,matchingKeys:a.lookup(`in`,i)};if(a.supports(`eq`)){let e=new Set;for(let t of i){let n=a.lookup(`eq`,t);for(let t of n)e.add(t)}return{canOptimize:!0,matchingKeys:e}}}}return{canOptimize:!1,matchingKeys:new Set}}var S_={enabled:!0,collectionSizeThreshold:1e3,slowQueryThresholdMs:10,onSuggestion:null};function C_(){return S_.enabled&&!1}function w_(e){if(C_())if(S_.onSuggestion)try{S_.onSuggestion(e)}catch{}else console.warn(`[TanStack DB] Index suggestion for "${e.collectionId}": 33 ${e.message} 34 Field: ${e.fieldPath.join(`.`)} 35 Add index: collection.createIndex((row) => row.${e.fieldPath.join(`.`)})`)}function T_(e,t,n){C_()&&t>S_.collectionSizeThreshold&&w_({type:`collection-size`,collectionId:e,fieldPath:n,message:`Collection has ${t} items. Queries on "${n.join(`.`)}" may benefit from an index.`,collectionSize:t})}function E_(e){return e.config.autoIndex===`eager`}function D_(e,t,n,r,i){if(d_(t)||!E_(n))return;let a=r??{...Rg,...n.compareOptions};if(!Array.from(n.indexes.values()).find(e=>e.matchesField(t)&&e.matchesCompareOptions(a))){C_()&&T_(n.id||`unknown`,n.size,t);try{n.createIndex(e=>{let n=e;for(let e of t)n=n[e];return n},{name:`auto:${t.join(`.`)}`,options:i?{compareFn:i,compareOptions:a}:{}})}catch(e){console.warn(`${n.id?`[${n.id}] `:``}Failed to create auto-index for field path "${t.join(`.`)}":`,e)}}}function O_(e,t){if(!E_(t))return;let n=k_(e);for(let{fieldName:e,fieldPath:r}of n)D_(e,r,t)}function k_(e){let t=[];function n(e){if(e.type!==`func`)return;let r=e;if(r.name===`and`){for(let e of r.args)n(e);return}if(![`eq`,`gt`,`gte`,`lt`,`lte`,`in`].includes(r.name)||r.args.length<1||r.args[0].type!==`ref`)return;let i=r.args[0].path;if(i.length===0)return;let a=i.join(`_`);t.push({fieldName:a,fieldPath:i})}return n(e),t}var A_=class extends Map{constructor(e,t){super(t),this.defaultValue=e}get(e){return this.has(e)?super.get(e):this.defaultValue()}update(e,t){let n=t(this.get(e));return this.set(e,n),n}},j_=3e4;function M_(e,t){if(t.length<=j_)e.push(...t);else for(let n=0;n<t.length;n+=j_){let r=t.slice(n,n+j_);e.push(...r)}}function N_(e,t,n){let r=0,i=e.length;for(;r<i;){let a=Math.floor((r+i)/2),o=n(e[a],t);if(o<0)r=a+1;else if(o>0)i=a;else return a}return r}var P_=new class{constructor(){this.objectIds=new WeakMap,this.nextId=0}getId(e){if(typeof e!=`object`||!e){let t=String(e),n=0;for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);n=(n<<5)-n+r,n&=n}return n}return this.objectIds.has(e)||this.objectIds.set(e,this.nextId++),this.objectIds.get(e)}getStringId(e){return e===null?`null`:e===void 0?`undefined`:typeof e==`object`?`obj_${this.getId(e)}`:`str_${String(e)}`}};function F_(e,t){let[n,r]=e,[i,a]=t;return{onlyInA:[...I_(n,Math.min(r,i)),...I_(Math.max(n,a),r)],onlyInB:[...I_(i,Math.min(a,n)),...I_(Math.max(i,r),a)]}}function I_(e,t){let n=[];for(let r=e;r<t;r++)n.push(r);return n}function L_(e,t){return typeof e==typeof t?e<t?-1:+(e>t):typeof e==`string`?-1:1}function R_(e){return JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t instanceof Date?t.toISOString():t)}
35var z_=W_(),B_=W_(),V_=W_(),H_=W_(),U_=W_();function W_(){return Math.random()*(2**31-1)>>>0}var G_=new ArrayBuffer(8),K_=new DataView(G_),q_=new Uint8Array(G_),J_=class{constructor(){this.hash=z_,this.length=0,this.carry=0,this.carryBytes=0}_mix(e){e=Math.imul(e,3432918353),e=e<<15|e>>>17,e=Math.imul(e,461845907),this.hash^=e,this.hash=this.hash<<13|this.hash>>>19,this.hash=Math.imul(this.hash,5)+3864292196}writeByte(e){this.carry|=(e&255)<<8*this.carryBytes,this.carryBytes++,this.length++,this.carryBytes===4&&(this._mix(this.carry>>>0),this.carry=0,this.carryBytes=0)}update(e){switch(typeof e){case`symbol`:{this.update(U_);let t=e.description;if(!t)return;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);this.writeByte(n&255),this.writeByte(n>>>8&255)}return}case`string`:this.update(B_);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);this.writeByte(n&255),this.writeByte(n>>>8&255)}return;case`number`:K_.setFloat64(0,e,!0),this.writeByte(q_[0]),this.writeByte(q_[1]),this.writeByte(q_[2]),this.writeByte(q_[3]),this.writeByte(q_[4]),this.writeByte(q_[5]),this.writeByte(q_[6]),this.writeByte(q_[7]);return;case`bigint`:{let t=e;for(t<0n?(t=-t,this.update(H_)):this.update(V_);t>0n;)this.writeByte(Number(t&255n)),t>>=8n;e===0n&&this.writeByte(0);return}default:throw TypeError(`Unsupported input type: ${typeof e}`)}}digest(){if(this.carryBytes>0){let e=this.carry>>>0;e=Math.imul(e,3432918353),e=e<<15|e>>>17,e=Math.imul(e,461845907),this.hash^=e}return this.hash^=this.length,this.hash^=this.hash>>>16,this.hash=Math.imul(this.hash,2246822507),this.hash^=this.hash>>>13,this.hash=Math.imul(this.hash,3266489909),this.hash^=this.hash>>>16,this.hash>>>0}},Y_=W_(),X_=W_(),Z_=W_(),Q_=W_(),$_=W_(),ev=W_(),tv=W_(),nv=W_(),rv=W_(),iv=W_(),av=W_(),ov=W_(),sv=W_(),cv=new Set([`Temporal.Duration`,`Temporal.Instant`,`Temporal.PlainDate`,`Temporal.PlainDateTime`,`Temporal.PlainMonthDay`,`Temporal.PlainTime`,`Temporal.PlainYearMonth`,`Temporal.ZonedDateTime`]);function lv(e){let t=e[Symbol.toStringTag];return typeof t==`string`&&cv.has(t)}var uv=128,dv=new WeakMap;function fv(e){let t=new J_;return vv(t,e),t.digest()}function pv(e){let t=dv.get(e);if(t!==void 0)return t;let n;if(e instanceof Date)n=mv(e);else if(typeof Buffer<`u`&&e instanceof Buffer||e instanceof Uint8Array)if(e.byteLength<=uv)n=hv(e);else return xv(e);else if(e instanceof File)return xv(e);else if(lv(e))n=gv(e);else{let t=e,r=nv;e instanceof Array&&(r=rv),e instanceof Map&&(r=iv,t=[...e.entries()]),e instanceof Set&&(r=av,t=[...e.entries()]),n=_v(t,r)}return dv.set(e,n),n}function mv(e){let t=new J_;return t.update(tv),t.update(e.getTime()),t.digest()}function hv(e){let t=new J_;t.update(ov),t.update(e.byteLength);for(let n=0;n<e.byteLength;n++)t.writeByte(e[n]);return t.digest()}function gv(e){let t=new J_;return t.update(sv),t.update(e[Symbol.toStringTag]),t.update(e.toString()),t.digest()}function _v(e,t){let n=new J_;n.update(t);let r=Object.keys(e);r.sort(Sv);for(let t of r)n.update($_),n.update(t),vv(n,e[t]);return n.digest()}function vv(e,t){if(t===null){e.update(Z_);return}switch(typeof t){case`undefined`:e.update(Q_);return;case`boolean`:e.update(t?Y_:X_);return;case`number`:e.update(isNaN(t)?NaN:t===0?0:t);return;case`bigint`:case`string`:case`symbol`:e.update(t);return;case`object`:e.update(yv(t));return;case`function`:e.update(xv(t));return;default:console.warn(`Ignored input during hashing because it is of type ${typeof t} which is not supported`)}}function yv(e){let t=dv.get(e);return t===void 0&&(t=pv(e)),t}var bv=1;function xv(e){let t=dv.get(e);return t===void 0&&(t=bv^ev,bv++,dv.set(e,t)),t}function Sv(e,t){return e.localeCompare(t)}var Cv=class e{#e;constructor(e=[]){this.#e=e}toString(e=!1){return`MultiSet(${JSON.stringify(this.#e,null,e?2:void 0)})`}toJSON(){return JSON.stringify(Array.from(this.getInner()))}static fromJSON(t){return new e(JSON.parse(t))}map(t){return new e(this.#e.map(([e,n])=>[t(e),n]))}filter(t){return new e(this.#e.filter(([e,n])=>t(e)))}negate(){return new e(this.#e.map(([e,t])=>[e,-t]))}concat(t){let n=[];return M_(n,this.#e),M_(n,t.getInner()),new e(n)}consolidate(){if(this.#e.length>0){let e=this.#e[0]?.[0];if(Array.isArray(e)&&e.length===2)return this.#t()}return this.#n()}#t(){let t=new Map,n=new Map,r=e=>{if(e.length!==2)throw Error(`Expected tuple of length 2`);let[t,n]=e;return`${P_.getStringId(t)}|${P_.getStringId(n)}`};for(let[e,i]of this.#e){if(!Array.isArray(e)||e.length!==2)return this.#n();let[a,o]=e;if(typeof a!=`string`&&typeof a!=`number`)return this.#n();let s;s=Array.isArray(o)&&o.length===2?r(o):P_.getStringId(o);let c=a+`|`+s;t.set(c,(t.get(c)||0)+i),n.has(c)||n.set(c,e)}let i=[];for(let[e,r]of t)r!==0&&i.push([n.get(e),r]);return new e(i)}#n(){let t=new A_(()=>0),n=new Map,r=!1,i=!1,a=!1;for(let[e,t]of this.#e)if(typeof e==`string`)r=!0;else if(typeof e==`number`)i=!0;else{a=!0;break}let o=a||r&&i;for(let[e,r]of this.#e){let i=o?fv(e):e;o&&!n.has(i)&&n.set(i,e),t.update(i,e=>e+r)}let s=[];
35for(let[e,r]of t.entries())if(r!==0){let t=o?n.get(e):e;s.push([t,r])}return new e(s)}extend(t){let n=t instanceof e?t.getInner():t;M_(this.#e,n)}add(e,t){t!==0&&this.#e.push([e,t])}getInner(){return this.#e}},wv=class{#e;constructor(e){this.#e=e}drain(){let e=[...this.#e].reverse();return this.#e.length=0,e}isEmpty(){return this.#e.length===0}},Tv=class{#e=[];sendData(e){e instanceof Cv||(e=new Cv(e));for(let t of this.#e)t.unshift(e)}newReader(){let e=[];return this.#e.push(e),new wv(e)}},Ev=class{constructor(e,t,n){this.id=e,this.inputs=t,this.output=n}hasPendingWork(){return this.inputs.some(e=>!e.isEmpty())}},Dv=class extends Ev{constructor(e,t,n){super(e,[t],n),this.id=e}inputMessages(){return this.inputs[0].drain()}},Ov=class extends Ev{constructor(e,t,n,r){super(e,[t,n],r),this.id=e}inputAMessages(){return this.inputs[0].drain()}inputBMessages(){return this.inputs[1].drain()}},kv=class extends Dv{run(){for(let e of this.inputMessages())this.output.sendData(this.inner(e))}},Av=class{#e=[];#t=0;#n=!1;constructor(){}#r(){if(this.#n)throw Error(`Graph already finalized`)}getNextOperatorId(){return this.#r(),this.#t++}newInput(){this.#r();let e=new Tv;return new Mv(this,e)}addOperator(e){this.#r(),this.#e.push(e)}finalize(){this.#r(),this.#n=!0}step(){if(!this.#n)throw Error(`Graph not finalized`);for(let e of this.#e)e.run()}pendingWork(){return this.#e.some(e=>e.hasPendingWork())}run(){for(;this.pendingWork();)this.step()}},jv=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}connectReader(){return this.#t.newReader()}get writer(){return this.#t}get graph(){return this.#e}pipe(...e){return e.reduce((e,t)=>t(e),this)}},Mv=class extends jv{sendData(e){this.writer.sendData(e)}},Nv=class extends kv{#e;constructor(e,t,n,r){super(e,t,n),this.#e=r}inner(e){return e.filter(this.#e)}};function Pv(e){return t=>{let n=new jv(t.graph,new Tv),r=new Nv(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}var Fv=Symbol(`NO_PREFIX`),Iv=class extends Map{addValue(e,t){if(t===0)return this.size===0;let n=zv(e),r=this.get(n);if(Bv(r)){let[i,a]=r;if(zv(i)!==n)throw Error(`Mismatching prefixes, this should never happen`);if(i===e||fv(i)===fv(e)){let r=a+t;r===0?this.delete(n):this.set(n,[e,r])}else{let a=new Lv;a.set(fv(i),r),a.set(fv(e),[e,t]),this.set(n,a)}}else r===void 0?this.set(n,[e,t]):r.addValue(e,t)&&this.delete(n);return this.size===0}},Lv=class extends Map{addValue(e,t){if(t===0)return this.size===0;let n=fv(e),r=this.get(n);if(r){let[,i]=r,a=i+t;a===0?this.delete(n):this.set(n,[e,a])}else this.set(n,[e,t]);return this.size===0}},Rv=class e{#e;#t=new Map;constructor(){this.#e=new Map}static fromMultiSets(t){let n=new e;for(let e of t)for(let[t,r]of e.getInner()){let[e,i]=t;n.addValue(e,[i,r])}return n}toString(e=!1){return`Index(${JSON.stringify([...this.entries()],void 0,e?2:void 0)})`}get size(){return this.#e.size}has(e){return this.#e.has(e)}hasPresence(e){return(this.#t.get(e)||0)!==0}getConsolidatedMultiplicity(e){return this.#t.get(e)||0}getPresenceKeys(){return this.#t.keys()}get(e){return[...this.getIterator(e)]}*getIterator(e){let t=this.#e.get(e);if(Bv(t))yield t;else if(t===void 0)return;else if(t instanceof Lv)for(let e of t.values())yield e;else for(let e of t.values())if(Bv(e))yield e;else for(let t of e.values())yield t}*entries(){for(let e of this.#e.keys())for(let t of this.getIterator(e))yield[e,t]}*entriesIterators(){for(let e of this.#e.keys())yield[e,this.getIterator(e)]}addValue(e,t){let[n,r]=t;if(r===0)return;let i=(this.#t.get(e)||0)+r;i===0?this.#t.delete(e):this.#t.set(e,i);let a=this.#e.get(e);if(a===void 0){this.#e.set(e,t);return}if(Bv(a)){this.#n(e,a,n,r);return}if(a instanceof Lv){let i=zv(n);if(i!==Fv){let n=new Iv;n.set(Fv,a),n.set(i,t),this.#e.set(e,n)}else a.addValue(n,r)&&this.#e.delete(e)}else a.addValue(n,r)&&this.#e.delete(e)}#n(e,t,n,r){let[i,a]=t;if(i===n){let t=a+r;t===0?this.#e.delete(e):this.#e.set(e,[n,t]);return}let o=zv(n),s=zv(i);if(s===o&&(i===n||fv(i)===fv(n))){let t=a+r;t===0?this.#e.delete(e):this.#e.set(e,[n,t]);return}if(s===Fv&&o===Fv){let a=new Lv;a.set(fv(i),t),a.set(fv(n),[n,r]),this.#e.set(e,a)}else{let a=new Iv;if(s===o){let e=new Lv;e.set(fv(i),t),e.set(fv(n),[n,r]),a.set(s,e)}else a.set(s,t),a.set(o,[n,r]);this.#e.set(e,a)}}append(e){for(let[t,n]of e.entries())this.addValue(t,n)}join(e){let t=[];if(this.size<=e.size)for(let[n,r]of this.entriesIterators()){if(!e.has(n))continue;let i=e.get(n);for(let[e,a]of r)for(let[r,o]of i)a!==0&&o!==0&&t.push([[n,[e,r]],a*o])}else for(let[n,r]of e.entriesIterators()){if(!this.has(n))continue;let e=this.get(n);for(let[i,a]of r)for(let[r,o]of e)o!==0&&a!==0&&t.push([[n,[r,i]],o*a])}return new Cv(t)}};function zv(e){return Array.isArray(e)&&(typeof e[0]==`string`||typeof e[0]==`
35number`||typeof e[0]==`bigint`)?e[0]:Fv}function Bv(e){return Array.isArray(e)}var Vv=class extends Ov{#e=new Rv;#t=new Rv;#n;constructor(e,t,n,r,i=`inner`){super(e,t,n,r),this.#n=i}run(){let e=Rv.fromMultiSets(this.inputAMessages()),t=Rv.fromMultiSets(this.inputBMessages());if(e.size===0&&t.size===0)return;let n=new Cv;this.#n!==`anti`&&this.emitInnerResults(e,t,n),(this.#n===`left`||this.#n===`full`||this.#n===`anti`)&&this.emitLeftOuterResults(e,t,n),(this.#n===`right`||this.#n===`full`)&&this.emitRightOuterResults(e,t,n),this.#e.append(e),this.#t.append(t),n.getInner().length>0&&this.output.sendData(n)}emitInnerResults(e,t,n){e.size>0&&n.extend(e.join(this.#t)),t.size>0&&n.extend(this.#e.join(t)),e.size>0&&t.size>0&&n.extend(e.join(t))}emitLeftOuterResults(e,t,n){if(e.size>0){for(let[r,i]of e.entriesIterators())if(this.#t.getConsolidatedMultiplicity(r)+t.getConsolidatedMultiplicity(r)===0)for(let[e,t]of i)t!==0&&n.add([r,[e,null]],t)}if(t.size>0)for(let e of t.getPresenceKeys()){let r=this.#t.getConsolidatedMultiplicity(e),i=t.getConsolidatedMultiplicity(e);if(i===0)continue;let a=r+i;if(r===0==(a===0))continue;let o=r===0;for(let[t,r]of this.#e.getIterator(e))r!==0&&n.add([e,[t,null]],o?-r:+r)}}emitRightOuterResults(e,t,n){if(t.size>0){for(let[r,i]of t.entriesIterators())if(this.#e.getConsolidatedMultiplicity(r)+e.getConsolidatedMultiplicity(r)===0)for(let[e,t]of i)t!==0&&n.add([r,[null,e]],t)}if(e.size>0)for(let t of e.getPresenceKeys()){let r=this.#e.getConsolidatedMultiplicity(t),i=e.getConsolidatedMultiplicity(t);if(i===0)continue;let a=r+i;if(r===0==(a===0))continue;let o=r===0;for(let[e,r]of this.#t.getIterator(t))r!==0&&n.add([t,[null,e]],o?-r:+r)}}};function Hv(e,t=`inner`){return n=>{if(n.graph!==e.graph)throw Error(`Cannot join streams from different graphs`);let r=new jv(n.graph,new Tv),i=new Vv(n.graph.getNextOperatorId(),n.connectReader(),e.connectReader(),r.writer,t);return n.graph.addOperator(i),r}}var Uv=class extends kv{#e;constructor(e,t,n,r){super(e,t,n),this.#e=r}inner(e){return e.map(this.#e)}};function Wv(e){return t=>{let n=new jv(t.graph,new Tv),r=new Uv(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}var Gv=class extends Dv{#e=new Rv;#t=new Rv;#n;constructor(e,t,n,r){super(e,t,n),this.#n=r}run(){let e=new Set;for(let t of this.inputMessages())for(let[n,r]of t.getInner()){let[t,i]=n;this.#e.addValue(t,[i,r]),e.add(t)}let t=[];for(let n of e){let e=this.#e.get(n),r=this.#t.get(n),i=this.#n(e),a=new Map,o=new Map;for(let[e,t]of i){let n=a.get(e)??0;a.set(e,n+t)}for(let[e,t]of r){let n=o.get(e)??0;o.set(e,n+t)}for(let[e,r]of o)a.has(e)||(t.push([[n,e],-r]),this.#t.addValue(n,[e,-r]));for(let[e,r]of a)o.has(e)||r!==0&&(t.push([[n,e],r]),this.#t.addValue(n,[e,r]));for(let[e,r]of a){let i=o.get(e);if(i!==void 0){let a=r-i;a!==0&&(t.push([[n,e],a]),this.#t.addValue(n,[e,a]))}}}t.length>0&&this.output.sendData(new Cv(t))}};function Kv(e){return t=>{let n=new jv(t.graph,new Tv),r=new Gv(t.graph.getNextOperatorId(),t.connectReader(),n.writer,e);return t.graph.addOperator(r),n}}function qv(e){return`pipe`in e}function Jv(e,t={}){let n=Object.fromEntries(Object.entries(t).filter(([e,t])=>!qv(t)));return Object.fromEntries(Object.entries(t).filter(([e,t])=>qv(t))),t=>{let r=`__original_key__`;return t.pipe(Wv(t=>{let i=e(t),a=R_(i),o={};o[r]=i;for(let[e,r]of Object.entries(n))o[e]=r.preMap(t);return[a,o]})).pipe(Kv(e=>{let t=0;for(let[n,r]of e)t+=r;if(t<=0)return[];let i={};i[r]=e[0]?.[0]?.[r];for(let[t,r]of Object.entries(n)){let n=e.map(([e,n])=>[e[t],n]);i[t]=r.reduce(n)}return[[i,1]]})).pipe(Wv(([e,t])=>{let i=t[r],a={};Object.assign(a,i);for(let[e,r]of Object.entries(n))r.postMap?a[e]=r.postMap(t[e]):a[e]=t[e];return[e,a]}))}}function Yv(e=e=>e){return{preMap:t=>e(t),reduce:e=>{let t=0;for(let[n,r]of e)t+=n*r;return t}}}function Xv(e=e=>e){return{preMap:t=>e(t)==null?0:1,reduce:e=>{let t=0;for(let[n,r]of e)t+=n*r;return t}}}function Zv(e=e=>e){return{preMap:t=>({sum:e(t),count:0}),reduce:e=>{let t=0,n=0;for(let[r,i]of e)t+=r.sum*i,n+=i;return{sum:t,count:n}},postMap:e=>e.sum/e.count}}function Qv(e){let t=e??(e=>e);return{preMap:e=>t(e),reduce:e=>{let t;for(let[n,r]of e)(!t||n&&n<t)&&(t=n);return t}}}function $v(e){let t=e??(e=>e);return{preMap:e=>t(e),reduce:e=>{let t;for(let[n,r]of e)(!t||n&&n>t)&&(t=n);return t}}}function ey(e=e=>e){return{preMap:t=>[e(t)],reduce:e=>{let t=[];for(let[n,r]of e)for(let e of n)for(let n=0;n<r;n++)t.push(e);return t.length===0?[]:(t.sort((e,t)=>
35e-t),t)},postMap:e=>{if(e.length===0)return 0;let t=Math.floor(e.length/2);return e.length%2==0?(e[t-1]+e[t])/2:e[t]}}}function ty(e=e=>e){return{preMap:t=>{let n=e(t),r=new Map;return r.set(n,1),r},reduce:e=>{let t=new Map;for(let[n,r]of e)for(let[e,i]of n.entries()){let n=t.get(e)||0;t.set(e,n+i*r)}return t},postMap:e=>{if(e.size===0)return 0;let t=0,n=0;for(let[r,i]of e.entries())i>n&&(n=i,t=r);return t}}}var ny={sum:Yv,count:Xv,avg:Zv,min:Qv,max:$v,median:ey,mode:ty},ry=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,iy=new Map;function ay(e){let t=iy.get(e);if(t===void 0){t=new Uint8Array(256);for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=n;iy.set(e,t)}return t}function oy(e,t,n,r){let i=n[0];if(t!=null&&e>=t)throw Error(e+` >= `+t);if(e.slice(-1)===i||t&&t.slice(-1)===i)throw Error(`trailing zero`);if(t){let a=0;for(;(e[a]||i)===t[a];)a++;if(a>0)return t.slice(0,a)+oy(e.slice(a),t.slice(a),n,r)}let a=e?r[e.charCodeAt(0)]:0,o=t==null?n.length:r[t.charCodeAt(0)];return o-a>1?n[Math.round(.5*(a+o))]:t&&t.length>1?t.slice(0,1):n[a]+oy(e.slice(1),null,n,r)}function sy(e,t){if(e.length!==cy(e[0],t))throw Error(`invalid integer part of order key: `+e)}function cy(e,t){if(t===void 0){let t=e.charCodeAt(0);if(t>=97&&t<=122)return t-97+2;if(t>=65&&t<=90)return 90-t+2}else{let n=t.indexOf(e);if(n!==-1){let e=t.length/2;return n<e?e-n+1:n-e+2}}throw Error(`invalid order key head: `+e)}function ly(e,t){let n=cy(e[0],t);if(n>e.length)throw Error(`invalid order key: `+e);return e.slice(0,n)}function uy(e,t,n){if(my(e,t,n))throw Error(`invalid order key: `+e);let r=ly(e,n);if(e.slice(r.length).slice(-1)===t[0])throw Error(`invalid order key: `+e)}function dy(e,t,n,r){sy(e,r);let i=e[0],a=t[0],o=``;for(let r=e.length-1;r>=1;r--){let s=n[e.charCodeAt(r)]+1;if(s===t.length)o=a+o;else return i+e.slice(1,r)+t[s]+o}if(r===void 0){if(i===`Z`)return`a`+a;if(i===`z`)return null;let e=String.fromCharCode(i.charCodeAt(0)+1);return e+(e>`a`?o+a:o.slice(1))}let s=r.indexOf(i);if(s===r.length-1)return null;let c=r[s+1],l=cy(c,r)-cy(i,r);return c+(l>0?o+a:l<0?o.slice(1):o)}function fy(e,t,n,r){sy(e,r);let i=e[0],a=t[t.length-1],o=``;for(let r=e.length-1;r>=1;r--){let s=n[e.charCodeAt(r)]-1;if(s===-1)o=a+o;else return i+e.slice(1,r)+t[s]+o}if(r===void 0){if(i===`a`)return`Z`+a;if(i===`A`)return null;let e=String.fromCharCode(i.charCodeAt(0)-1);return e+(e<`Z`?o+a:o.slice(1))}let s=r.indexOf(i);if(s===0)return null;let c=r[s-1],l=cy(c,r)-cy(i,r);return c+(l>0?o+a:l<0?o.slice(1):o)}var py=new Map;function my(e,t,n=``){let r=py.get(n);r===void 0&&(r=new Map,py.set(n,r));let i=t.charCodeAt(0),a=r.get(i);return a===void 0&&(a=n===``?`A`+t[0].repeat(26):n[0]+t[0].repeat(n.length/2),r.set(i,a)),e===a}function hy(e){for(let t=1;t<e.length;t++)if(e.charCodeAt(t-1)>=e.charCodeAt(t))return!1;return!0}function gy(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!1;return!0}var _y=new Set;function vy(e){if(!_y.has(e)){if(e.length<2||!hy(e))throw Error(`digits must be at least 2 characters in strictly ascending character code order: `+e);if(!gy(e))throw Error(`digits must be single-byte (char code 0-255): `+e);_y.add(e)}}var yy=new Set;function by(e){if(!yy.has(e)){if(e.length<2||e.length%2!=0||!hy(e))throw Error(`intDigits must be an even number of at least 2 characters in strictly ascending character code order: `+e);if(!gy(e))throw Error(`intDigits must be single-byte (char code 0-255): `+e);yy.add(e)}}function xy(e,t,n=ry,r=void 0){vy(n),r!==void 0&&by(r);let i=ay(n);if(e!=null&&uy(e,n,r),t!=null&&uy(t,n,r),e!=null&&t!=null&&e>t){let n=e;e=t,t=n}if(e==null){if(t==null)return(r===void 0?`a`:r[r.length/2])+n[0];let e=ly(t,r),a=t.slice(e.length);if(my(e,n,r))return e+oy(``,a,n,i);if(e<t)return e;let o=fy(e,n,i,r);if(o==null)throw Error(`cannot decrement any more`);return o}if(t==null){let t=ly(e,r),a=e.slice(t.length);return dy(t,n,i,r)??t+oy(a,null,n,i)}let a=ly(e,r),o=e.slice(a.length),s=ly(t,r),c=t.slice(s.length);if(a===s)return a+oy(o,c,n,i);let l=dy(a,n,i,r);if(l==null)throw Error(`cannot increment any more`);return l<t?l:a+oy(o,null,n,i)}function Sy(e,t){return[e,t]}function Cy(e){return e[0]}function wy(e){return e[1]}function Ty(e){return([t,n],[r,i])=>{let a=e(n,i);return a===0?L_(t,r):a}}var Ey=class{#e=[];#t;#n;#r;constructor(e,t,n){this.#n=e,this.#r=e+t,this.#t=n}
35get size(){let e=this.#n,t=this.#r-this.#n,n=this.#e.length-e;return Math.max(0,Math.min(t,n))}move({offset:e,limit:t}){let n=this.#n,r=this.#r-this.#n,i=[this.#n,this.#r===1/0?this.#n+this.size:this.#r];this.#n=e??n,this.#r=this.#n+(t??r);let{onlyInA:a,onlyInB:o}=F_(i,[this.#n,this.#r===1/0?Math.max(this.#n+this.size,i[1]):this.#r]),s=[];o.forEach(e=>{let t=this.#e[e];t&&s.push(t)});let c=[];return a.forEach(e=>{let t=this.#e[e];t&&c.push(t)}),{moveIns:s,moveOuts:c,changes:a.length+o.length>0}}insert(e){let t={moveIn:null,moveOut:null},n=this.#i(e),r=Sy(e,xy(n===0?null:wy(this.#e[n-1]),n===this.#e.length?null:wy(this.#e[n])));if(this.#e.splice(n,0,r),n<this.#r){let e=Math.max(n,this.#n);e<this.#e.length&&(t.moveIn=this.#e[e],this.#r<this.#e.length&&(t.moveOut=this.#e[this.#r]))}return t}delete(e){let t={moveIn:null,moveOut:null},n=this.#i(e),[r]=this.#e.splice(n,1);if(n<this.#r){if(t.moveOut=r,n<this.#n){let e=this.#n-1;e<this.#e.length?t.moveOut=this.#e[e]:t.moveOut=null}let e=this.#r-1;e<this.#e.length&&(t.moveIn=this.#e[e])}return t}#i(e){return N_(this.#e,Sy(e,``),(e,t)=>this.#t(Cy(e),Cy(t)))}},Dy=class{#e=new Map;#t;constructor(e){this.#t=e}get size(){return this.#t.size}get isEmpty(){return this.#e.size===0&&this.#t.size===0}processElement(e,t,n){let{oldMultiplicity:r,newMultiplicity:i}=this.#n(e,n);return r<=0&&i>0?this.#t.insert([e,t]):r>0&&i<=0?this.#t.delete([e,t]):{moveIn:null,moveOut:null}}move(e){if(!(this.#t instanceof Ey))throw Error(`Cannot move B+-tree implementation of TopK with fractional index`);return this.#t.move(e)}#n(e,t){if(t===0){let t=this.#e.get(e)??0;return{oldMultiplicity:t,newMultiplicity:t}}let n=this.#e.get(e)??0,r=n+t;return r===0?this.#e.delete(e):this.#e.set(e,r),{oldMultiplicity:n,newMultiplicity:r}}};function Oy(e,t){if(e){let[[n,r],i]=e;t.push([[n,[r,i]],1])}}function ky(e,t){if(e){let[[n,r],i]=e;t.push([[n,[r,i]],-1])}}var Ay=class extends Dv{#e=new Map;#t;#n;#r;#i;constructor(e,t,n,r,i){super(e,t,n),this.#t=i.groupKeyFn,this.#i=i.limit??1/0,this.#r=i.offset??0,this.#n=Ty(r),i.setSizeCallback?.(()=>this.#a()),i.setWindowFn?.(this.#c.bind(this))}createTopK(e,t,n){return new Ey(e,t,n)}#a(){let e=0;for(let t of this.#e.values())e+=t.size;return e}#o(e){let t=this.#e.get(e);return t||(t=new Dy(this.createTopK(this.#r,this.#i,this.#n)),this.#e.set(e,t)),t}#s(e,t){t.isEmpty&&this.#e.delete(e)}#c({offset:e,limit:t}){e!==void 0&&(this.#r=e),t!==void 0&&(this.#i=t);let n=[],r=!1;for(let e of this.#e.values()){let t=e.move({offset:this.#r,limit:this.#i});t.moveIns.forEach(e=>Oy(e,n)),t.moveOuts.forEach(e=>ky(e,n)),t.changes&&(r=!0)}r&&this.output.sendData(new Cv(n))}run(){let e=[];for(let t of this.inputMessages())for(let[n,r]of t.getInner()){let[t,i]=n;this.#l(t,i,r,e)}e.length>0&&this.output.sendData(new Cv(e))}#l(e,t,n,r){let i=this.#t(e,t),a=this.#o(i),o=a.processElement(e,t,n);Oy(o.moveIn,r),ky(o.moveOut,r),this.#s(i,a)}};function jy(e,t){return n=>{let r=new jv(n.graph,new Tv),i=new Ay(n.graph.getNextOperatorId(),n.connectReader(),r.writer,e,t);return n.graph.addOperator(i),r}}var My=class extends Dv{run(){let e=this.inputMessages();if(e.length===0)return;let t=new Cv;for(let n of e)t.extend(n);let n=t.consolidate();n.getInner().length>0&&this.output.sendData(n)}};function Ny(){return e=>{let t=new jv(e.graph,new Tv),n=new My(e.graph.getNextOperatorId(),e.connectReader(),t.writer);return e.graph.addOperator(n),t}}function Py(e,t){let n=t.limit??1/0,r=t.offset??0,i=t.setSizeCallback,a=t.setWindowFn,o=t.groupKeyFn,s=t.comparator??((e,t)=>e===t?0:e<t?-1:1);return t=>t.pipe(jy((t,n)=>s(e(t),e(n)),{limit:n,offset:r,setSizeCallback:i,setWindowFn:a,groupKeyFn:o}),Ny())}var Fy=class extends Dv{#e;constructor(e,t,n,r,i){super(e,t,n);let a=i.limit??1/0,o=i.offset??0,s=this.createTopK(o,a,Ty(r));this.#e=new Dy(s),i.setSizeCallback?.(()=>this.#e.size),i.setWindowFn?.(this.moveTopK.bind(this))}createTopK(e,t,n){return new Ey(e,t,n)}moveTopK({offset:e,limit:t}){let n=[],r=this.#e.move({offset:e,limit:t});r.moveIns.forEach(e=>Oy(e,n)),r.moveOuts.forEach(e=>ky(e,n)),r.changes&&this.output.sendData(new Cv(n))}run(){let e=[];for(let t of this.inputMessages())for(let[n,r]of t.getInner()){let[t,i]=n;this.processElement(t,i,r,e)}e.length>0&&this.output.sendData(new Cv(e))}processElement(e,t,n,r){let i=this.#e.processElement(e,t,n);Oy(i.moveIn,r),ky(i.moveOut,r)}};function Iy(e,t){let n=t||{};return t=>{let r=new jv(t.graph,new Tv),i=new Fy(t.graph.getNextOperatorId(),t.connectReader(),r.writer,e,n);return t.graph.addOperator(i),r}}function Ly(e,t,n){let r=n?.limit??1/0,i=n?.offset??0,a=n?.setSizeCallback,o=n?.setWindowFn,s=n?.comparator??((e,t)=>e===t?0:e<t?-1:1);return n=>n.pipe(e((e,n)=>s(t(e),t(n)),{limit:r,offset:i,setSizeCallback:a,setWindowFn:o}),Ny())}function Ry(e,t){return Ly(Iy,e,t)}var zy=`__includes_scalar__`,By=class{},Vy=class extends By{constructor(e,t){super(),this.collection=e,this.alias=t,this.type=`collectionRef`}},Hy=class extends By{constructor(e,t){super(),this.query=e,this.alias=t,this.type=`queryRef`}},Uy=class extends By{constructor(e){super(),this.path=e,this.type=`ref`}},Wy=class extends By{constructor(e){super(),this.value=e,this.type=`val`}},Gy=class extends By{constructor(e,t){super(),this.name=e,this.args=t,this.type=`func`}},Ky=class extends By{constructor(e,t){super(),this.name=e,this.args=t,this.type=`agg`}},qy=class extends By{constructor(e,t,n,r,i,a,o=`collection`,s){super(),this.query=e,this.correlationField=t,this.childCorrelationField=n,this.fieldName=r,this.parentFilters=i,this.parentProjection=a,this.materialization=o,this.scalarField=s,this.type=`includesSubquery`}};function Jy(e){return e instanceof Ky||e instanceof Gy||e instanceof Uy||e instanceof Wy||e instanceof qy}function Yy(e){return typeof e==`object`&&`expression`in e?e.expression:e}function Xy(e){return typeof e==`object`&&`expression`in e?e.expression:e}function Zy(e){return typeof e==`object`&&`expression`in e&&e.residual===!0}function Qy(e){return{expression:e,residual:!0}}function $y(e,t){if(e.from.alias===t)return e.from;for(let n of e.join||[])if(n.from.alias===t)return n.from}function eb(e,t,n){if(t.path.length!==0){if(t.path.length===1){let r=t.path[0];if(e.select){let t=e.select[r];if(t&&t.type===`ref`)return eb(e,t,n)}return{collection:n,path:[r]}}if(t.path.length>1){let[r,...i]=t.path,a=$y(e,r);return a?a.type===`queryRef`?eb(a.query,new Uy(i),n):{collection:a.collection,path:i}:void 0}}}var tb=`__virtual_synced__`,nb=`__virtual_has_local__`;function rb(e){let t=!1,n=!0,r=!1;for(let[i,a]of Object.entries(e)){if(i===`$selected`)continue;let e=a,o=`$synced`in e,s=`$origin`in e;!o&&!s||(t=!0,e.$synced===!1&&(n=!1),e.$origin===`local`&&(r=!0))}return{synced:t?n:!0,hasLocal:r}}var{sum:ib,count:ab,avg:ob,min:sb,max:cb}=ny;function lb(e,t){let n=new Map,r=[...e];if(!t)return{selectToGroupByIndex:n,groupByExpressions:r};for(let[e,i]of Object.entries(t)){if(i.type===`agg`||hb(i))continue;let t=r.findIndex(e=>db(i,e));if(t===-1)throw new vg(e);n.set(e,t)}return{selectToGroupByIndex:n,groupByExpressions:r}}function ub(e,t,n,r,i,a,o){let s={[tb]:{preMap:([,e])=>rb(e).synced,reduce:e=>{for(let[t,n]of e)if(!t&&n>0)return!1;return!0}},[nb]:{preMap:([,e])=>rb(e).hasLocal,reduce:e=>{for(let[t,n]of e)if(t&&n>0)return!0;return!1}}};if(t.length===0){let t=s,c={},l={value:0};if(r){for(let[e,n]of Object.entries(r))if(n.type===`agg`)t[e]=fb(n);else if(hb(n)){let{transformed:r,extracted:i}=gb(n,l);for(let[e,n]of Object.entries(i))t[e]=fb(n);c[e]=e_(r)}}let u=o?([,e])=>({__singleGroup:!0,__correlationKey:e?.[o]?.__correlationKey}):()=>({__singleGroup:!0}
35);if(e=e.pipe(Jv(u,t)),e=e.pipe(Wv(([,e])=>{let t={...e.$selected||{}};if(r){for(let[n,i]of Object.entries(r))i.type===`agg`&&(t[n]=e[n]);mb(t,e,c)}let n=o?e.__correlationKey:void 0,i=n===void 0?`single_group`:`single_group_${R_(n)}`,s={...e,$selected:t},l=e[tb],u=e[nb];return s.$synced=l??!0,s.$origin=u?`local`:`remote`,s.$key=i,s.$collectionId=a??s.$collectionId,o&&n!==void 0&&(s[o]={__correlationKey:n}),[i,s]})),n&&n.length>0)for(let t of n){let n=e_(pb(Xy(t),r||{},`$selected`));e=e.pipe(Pv(([,e])=>$g(n({$selected:e.$selected}))))}if(i&&i.length>0)for(let t of i)e=e.pipe(Pv(([,e])=>$g(t({$selected:e.$selected}))));return e}let c=lb(t,r),l=t.map(e=>e_(e)),u=([,e])=>{let n={...e};delete n.$selected;let r={};for(let e=0;e<t.length;e++){let t=l[e],i=t(n);r[`__key_${e}`]=i}return o&&(r.__correlationKey=e?.[o]?.__correlationKey),r},d=s,f={},p={value:0};if(r){for(let[e,t]of Object.entries(r))if(t.type===`agg`)d[e]=fb(t);else if(hb(t)){let{transformed:n,extracted:r}=gb(t,p);for(let[e,t]of Object.entries(r))d[e]=fb(t);f[e]=e_(n)}}if(e=e.pipe(Jv(u,d)),e=e.pipe(Wv(([,e])=>{let n=e.$selected||{},i={};if(r){for(let[t,a]of Object.entries(r))if(a.type===`agg`)i[t]=e[t];else if(!f[t]){let r=c.selectToGroupByIndex.get(t);r===void 0?i[t]=n[t]:i[t]=e[`__key_${r}`]}mb(i,e,f)}else for(let n=0;n<t.length;n++)i[`__key_${n}
35`]=e[`__key_${n}`];let s=o?e.__correlationKey:void 0,l=[];for(let n=0;n<t.length;n++)l.push(e[`__key_${n}`]);s!==void 0&&l.push(s);let u=l.length===1?l[0]:R_(l),d={...e,$selected:i},p=e[tb],m=e[nb];return d.$synced=p??!0,d.$origin=m?`local`:`remote`,d.$key=u,d.$collectionId=a??d.$collectionId,o&&s!==void 0&&(d[o]={__correlationKey:s}),[u,d]})),n&&n.length>0)for(let t of n){let n=e_(pb(Xy(t),r||{}));e=e.pipe(Pv(([,e])=>n({$selected:e.$selected})))}if(i&&i.length>0)for(let t of i)e=e.pipe(Pv(([,e])=>$g(t({$selected:e.$selected}))));return e}function db(e,t){if(!e||!t||e.type!==t.type)return!1;switch(e.type){case`ref`:return!e.path||!t.path||e.path.length!==t.path.length?!1:e.path.every((e,n)=>e===t.path[n]);case`val`:return e.value===t.value;case`func`:return e.name===t.name&&e.args?.length===t.args?.length&&(e.args||[]).every((e,n)=>db(e,t.args[n]));case`agg`:return e.name===t.name&&e.args?.length===t.args?.length&&(e.args||[]).every((e,n)=>db(e,t.args[n]));default:return!1}}function fb(e){let t=e_(e.args[0]),n=([,e])=>{let n=t(e);
35return typeof n==`number`?n:n==null?0:Number(n)},r=([,e])=>{let n=t(e);return typeof n==`number`||typeof n==`string`||typeof n==`bigint`||n instanceof Date?n:n==null?0:Number(n)},i=([,e])=>t(e);switch(e.name.toLowerCase()){case`sum`:return ib(n);case`count`:return ab(i);case`avg`:return ob(n);case`min`:return sb(r);case`max`:return cb(r);default:throw new yg(e.name)}}function pb(e,t,n=`$selected`){switch(e.type){case`agg`:{let r=e;for(let[e,i]of Object.entries(t))if(i.type===`agg`&&_b(r,i))return new Uy([n,e]);throw new bg(r.name)}case`func`:{let n=e,r=n.args.map(e=>pb(e,t));return new Gy(n.name,r)}case`ref`:return e;case`val`:return e;default:throw new xg(e.type)}}function mb(e,t,n){for(let n of Object.keys(t))n.startsWith(`__agg_`)&&(e[n]=t[n]);for(let[t,r]of Object.entries(n))e[t]=r({$selected:e});for(let t of Object.keys(e))t.startsWith(`__agg_`)&&delete e[t]}function hb(e){return Jy(e)?e.type===`agg`?!0:e.type===`func`&&`args`in e?e.args.some(e=>hb(e)):!1:!1}function gb(e,t){if(e.type===`agg`){let n=`__agg_${t.value++}`;return{transformed:new Uy([`$selected`,n]),extracted:{[n]:e}}}if(e.type===`func`){let n={},r=e.args.map(e=>{let r=gb(e,t);return Object.assign(n,r.extracted),r.transformed});return{transformed:new Gy(e.name,r),extracted:n}}return{transformed:e,extracted:{}}}function _b(e,t){return e.name===t.name&&e.args.length===t.args.length&&e.args.every((e,n)=>db(e,t.args[n]))}function vb(e,t,n,r,i,a,o,s,c,l){let u=n.map(e=>({compiledExpression:e_(pb(e.expression,r,`$selected`)),compareOptions:yb(e,i)})),d=e=>{let t=e;return n.length>1?u.map(e=>e.compiledExpression(t)):n.length===1?u[0].compiledExpression(t):null},f=(e,t)=>{if(n.length>1){let r=e,i=t;for(let e=0;e<n.length;e++){let t=u[e],n=Wg(t.compareOptions)(r[e],i[e]);if(n!==0)return n}return r.length-i.length}if(n.length===1){let n=u[0];return Wg(n.compareOptions)(e,t)}return Gg(e,t)},p,m;if(s&&!l){let t,r,o,l=e.from.alias,u=n[0],d=u.expression;if(d.type===`ref`){let n=eb(e,d,i);if(n){r=n.collection;let i=n.path[0],a=yb(u,r);if(i){let e=Wg(a);D_(i,n.path,r,a,e)}if(o=e_(new Uy(n.path),!0),t=f_(r,n.path,a),t?.supports(`gt`)||(t=void 0),!t){let e=r.id,t=n.path.join(`.`);console.warn(`[TanStack DB]${e?` [${e}]`:``} orderBy with limit requires an index on "${t}" for efficient lazy loading. Falling back to loading all data. Consider creating an index on the collection with collection.createIndex((row) => row.${t}) or enable auto-indexing with autoIndex: 'eager' and a defaultIndexType.`)}l=d.path.length>1?String(d.path[0]):e.from.alias}}if(o){let u=n.every(e=>e.expression.type===`ref`)?n.map(t=>{let n=t.expression,r=eb(e,n,i);return e_(r?new Uy(r.path):t.expression,!0)}):void 0;m={alias:l,offset:c??0,limit:s,comparator:(e,t)=>{if(n.length===1)return f(e&&o(e),t&&o(t));if(u){let n=e=>e&&u.map(t=>t(e));return f(n(e),n(t))}return 0},valueExtractorForRawRow:e=>{if(n.length===1)return o(e);if(u)return u.map(t=>t(e))},firstColumnValueExtractor:o,index:t,orderBy:n};let d=r?.id??i.id;a[d]=m,t&&(p=e=>{a[d].dataNeeded=()=>{let t=e();return Math.max(0,m.limit-t)}})}}return l?t.pipe(Py(d,{limit:s,offset:c,comparator:f,setSizeCallback:p,groupKeyFn:l,setWindowFn:e=>{o(t=>{e(t),m&&(m.offset=t.offset??m.offset,m.limit=t.limit??m.limit)})}})):t.pipe(Ry(d,{limit:s,offset:c,comparator:f,setSizeCallback:p,setWindowFn:e=>{o(t=>{e(t),m&&(m.offset=t.offset??m.offset,m.limit=t.limit??m.limit)})}}))}function yb(e,t){return e.compareOptions.stringSort===void 0?{...t.compareOptions,direction:e.compareOptions.direction,nulls:e.compareOptions.nulls}:e.compareOptions}function bb(e,t={}){let n=t=>{let n=[];for(let[r,i]of e.entries())(t?.(i)??!0)&&n.push({type:`insert`,key:r,value:i});return n};if(t.limit!==void 0&&!t.orderBy)throw Error(`limit cannot be used without orderBy`);if(t.orderBy){let n=t.where?xb(t.where):void 0,r=Cb(e,t.orderBy,t.limit,n,t.optimizedOnly);if(r===void 0)return;let i=[];for(let t of r){let n=e.get(t);n!==void 0&&i.push({type:`insert`,key:t,value:n})}return i}if(!t.where)return n();try{let r=t.where,i=h_(r,e);if(i.canOptimize){let t=[];for(let n of i.matchingKeys){let r=e.get(n);r!==void 0&&t.push({type:`insert`,key:n,value:r})}return t}else return t.optimizedOnly?void 0:n(xb(r))}catch(r){console.warn(`${e.id?`[${e.id}] `:``}Error processing where clause, falling back to full scan:`,r);let i=xb(t.where);return t.optimizedOnly?void 0:n(i)}}function xb(e){let t=t_(e);return e=>{try{return $g(t(e))}catch{return!1}}}function Sb(e,t){let n=xb(t.whereExpression);return t=>{let r=[];for(let e of t)if(e.type===`insert`)n(e.value)&&r.push(e);else if(e.type===`update`){let t=n(e.value),i=e.previousValue?n(e.previousValue):!1;t&&i?r.push(e):t&&!i?r.push({...e,type:`insert`}):!t&&i&&r.push({...e,type:`delete`,value:e.previousValue})}else n(e.value)&&r.push(e);(r.length>0||t.length===0)&&e(r)}}function Cb(e,t,n,r,i){if(t.length===1){let i=t[0],a=i.expression;if(a.type===`ref`){let t=a.path,o=yb(i,e);D_(t[0],t,e,o);let s=f_(e,t,o);if(s&&s.supports(`gt`))return s.takeFromStart(n??s.keyCount,t=>{let n=e.get(t);return n===void 0?!1:r?.(n)??!0})}}if(i)return;let a=[];for(let[t,n]of e.entries())(r?.(n)??!0)&&a.push({key:t,value:n});a.sort((e,n)=>{for(let r of t){let t=Wg(r.compareOptions)(wb(e.value,r.expression),wb(n.value,r.expression));if(t!==0)return t}return 0});let o=a.map(e=>e.key);return n===void 0?o:o.slice(0,n)}function wb(e,t){if(t.type===`ref`){let n=t,r=e;for(let e of n.path)r=r?.[e];return r}else if(t.type===`val`)return t.value;else return t_(t)(e)}var Tb=class{constructor(e){this.map=new Map,this.sortedKeys=[],this.comparator=e}indexOf(e,t){let n=0,r=this.sortedKeys.length;if(!this.comparator){for(;n<r;){let t=Math.floor((n+r)/2),i=this.sortedKeys[t],a=L_(e,i);if(a<0)r=t;else if(a>0)n=t+1;else return t}return n}for(;n<r;){let i=Math.floor((n+r)/2),a=this.sortedKeys[i],o=this.map.get(a),s=this.comparator(t,o);if(s<0)r=i;else if(s>0)n=i+1;else{let t=L_(e,a);if(t<0)r=i;else if(t>0)n=i+1;else return i}}return n}set(e,t){if(this.map.has(e)){let t=this.map.get(e),n=this.indexOf(e,t);this.sortedKeys.splice(n,1)}let n=this.indexOf(e,t);return this.sortedKeys.splice(n,0,e),this.map.set(e,t),this}get(e){return this.map.get(e)}delete(e){if(this.map.has(e)){let t=this.map.get(e),n=this.indexOf(e,t);return this.sortedKeys.splice(n,1),this.map.delete(e)}return!1}has(e){return this.map.has(e)}clear(){this.map.clear(),this.sortedKeys=[]}get size(){return this.map.size}*[Symbol.iterator](){for(let e of this.sortedKeys)yield[e,this.map.get(e)]}entries(){return this[Symbol.iterator]()}keys(){return this.sortedKeys[Symbol.iterator]()}values(){return(function*(){for(let e of this.sortedKeys)yield this.map.get(e)}).call(this)}forEach(e){for(let t of this.sortedKeys)e(this.map.get(t),t,this.map)}},Eb=`__tanstack_db_direct`,Db=class{constructor(e){this.pendingSyncedTransactions=[],this.syncedMetadata=new Map,this.syncedCollectionMetadata=new Map,this.optimisticUpserts=new Map,this.optimisticDeletes=new Set,this.pendingOptimisticUpserts=new Map,this.pendingOptimisticDeletes=new Set,this.pendingOptimisticDirectUpserts=new Set,this.pendingOptimisticDirectDeletes=new Set,this.rowOrigins=new Map,this.pendingLocalChanges=new Set,this.pendingLocalOrigins=new Set,this.virtualPropsCache=new WeakMap,this.size=0,this.syncedKeys=new Set,this.preSyncVisibleState=new Map,this.recentlySyncedKeys=new Set,this.hasReceivedFirstCommit=!1,this.isCommittingSyncTransactions=!1,this.isLocalOnly=!1,this.commitPendingTransactions=()=>{let e=!1;for(let t of this.transactions.values())if(t.state===`persisting`){e=!0;break}let{committedSyncedTransactions:t,uncommittedSyncedTransactions:n,hasTruncateSync:r,hasImmediateSync:i}=this.pendingSyncedTransactions.reduce((e,t)=>
35(t.committed?(e.committedSyncedTransactions.push(t),t.truncate&&(e.hasTruncateSync=!0),t.immediate&&(e.hasImmediateSync=!0)):e.uncommittedSyncedTransactions.push(t),e),{committedSyncedTransactions:[],uncommittedSyncedTransactions:[],hasTruncateSync:!1,hasImmediateSync:!1});if(!e||r||i){this.isCommittingSyncTransactions=!0;let e=new Map(this.rowOrigins),i=new Map(this.optimisticUpserts),a=new Set(this.optimisticDeletes),o=r?t.find(e=>e.truncate)?.optimisticSnapshot:null,s,c,l=new Set;for(let e of t){for(let t of e.operations)l.add(t.key);for(let[t]of e.rowMetadataWrites)l.add(t)}let u=this.preSyncVisibleState;if(u.size===0){u=new Map;for(let e of l){let t=this.get(e);t!==void 0&&u.set(e,t)}}let d=[],f=this.config.sync.rowUpdateMode||`partial`,p=new Map;for(let e of this.transactions.values())if(e.state===`completed`)for(let t of e.mutations)this.isThisCollection(t.collection)&&t.optimistic&&p.set(t.key,{type:t.type,value:t.modified});for(let e of t){if(e.truncate){let e=new Set([...this.syncedData.keys(),...o?.upserts.keys()||[]]);for(let t of e){if(o?.deletes.has(t))continue;let e=o?.upserts.get(t)||this.syncedData.get(t);e!==void 0&&d.push({type:`delete`,key:t,value:e})}s=new Set(this.pendingLocalChanges),c=new Set(this.pendingLocalOrigins),this.syncedData.clear(),this.syncedMetadata.clear(),this.syncedKeys.clear(),this.clearOriginTrackingState();for(let e of l)u.delete(e);this._events.emit(`truncate`,{type:`truncate`,collection:this.collection})}for(let t of e.operations){let e=t.key;this.syncedKeys.add(e);let n=this.isLocalOnly||this.pendingLocalChanges.has(e)||this.pendingLocalOrigins.has(e)||s?.has(e)===!0||c?.has(e)===!0?`local`:`remote`;switch(t.type){case`insert`:this.syncedData.set(e,t.value),this.rowOrigins.set(e,n),this.pendingLocalChanges.delete(e),this.pendingLocalOrigins.delete(e),this.pendingOptimisticUpserts.delete(e),this.pendingOptimisticDeletes.delete(e),this.pendingOptimisticDirectUpserts.delete(e),this.pendingOptimisticDirectDeletes.delete(e);break;case`update`:if(f===`partial`){let n=Object.assign({},this.syncedData.get(e),t.value);this.syncedData.set(e,n)}else this.syncedData.set(e,t.value);this.rowOrigins.set(e,n),this.pendingLocalChanges.delete(e),this.pendingLocalOrigins.delete(e),this.pendingOptimisticUpserts.delete(e),this.pendingOptimisticDeletes.delete(e),this.pendingOptimisticDirectUpserts.delete(e),this.pendingOptimisticDirectDeletes.delete(e);break;case`delete`:this.syncedData.delete(e),this.syncedMetadata.delete(e),this.rowOrigins.delete(e),this.pendingLocalChanges.delete(e),this.pendingLocalOrigins.delete(e),this.pendingOptimisticUpserts.delete(e),this.pendingOptimisticDeletes.delete(e),this.pendingOptimisticDirectUpserts.delete(e),this.pendingOptimisticDirectDeletes.delete(e);break}}for(let[t,n]of e.rowMetadataWrites){if(n.type===`delete`){this.syncedMetadata.delete(t);continue}this.syncedMetadata.set(t,n.value)}for(let[t,n]of e.collectionMetadataWrites){if(n.type===`delete`){this.syncedCollectionMetadata.delete(t);continue}this.syncedCollectionMetadata.set(t,n.value)}}if(r){let e=new Set;for(let n of t)for(let t of n.operations)(t.type===`insert`||t.type===`update`)&&e.add(t.key);let n=new Map(o.upserts),r=new Set(o.deletes);for(let[t,i]of n)if(!r.has(t))if(e.has(t)){let e=!1;for(let n=d.length-1;n>=0;n--){let r=d[n];if(r.key===t&&r.type===`insert`){r.value=i,e=!0;break}}e||d.push({type:`insert`,key:t,value:i})}else d.push({type:`insert`,key:t,value:i});if(d.length>0&&r.size>0){let e=[];for(let t of d)t.type===`insert`&&r.has(t.key)||e.push(t);d.length=0,d.push(...e)}this.lifecycle.status!==`ready`&&this.lifecycle.markReady()}if(this.optimisticUpserts.clear(),this.optimisticDeletes.clear(),this.isCommittingSyncTransactions=!1,r&&o){for(let[e,t]of o.upserts)this.optimisticUpserts.set(e,t);for(let e of o.deletes)this.optimisticDeletes.add(e)}for(let e of this.transactions.values())if(![`completed`,`failed`].includes(e.state)){for(let t of e.mutations)if(this.isThisCollection(t.collection)&&t.optimistic)switch(t.type){case`insert`:case`update`:this.optimisticUpserts.set(t.key,t.modified),this.optimisticDeletes.delete(t.key);break;case`delete`:this.optimisticUpserts.delete(t.key),this.optimisticDeletes.add(t.key);break}}for(let t of l){let n=u.get(t),r=this.get(t),o=this.getVirtualPropsSnapshotForState(t,{rowOrigins:e,optimisticUpserts:i,optimisticDeletes:a,completedOptimisticKeys:p}),s=this.getVirtualPropsSnapshotForState(t),c=o.$synced!==s.$synced||o.$origin!==s.$origin,l=n===void 0?void 0:c_(n,t,this.collection.id,()=>o.$synced,()=>o.$origin),f=p.get(t),m=!1;f&&(f.type===`delete`&&n!==void 0&&r===void 0&&Pg(f.value,n)||r!==void 0&&Pg(f.value,r))&&(m=!0);let h=c&&n!==void 0&&r!==void 0&&Pg(n,r);if(!(m&&!h))if(n===void 0&&r!==void 0){let e=p.get(t);if(e){let n=e.value,i=c_(n,t,this.collection.id,()=>o.$synced,()=>o.$origin);d.push({type:`update`,key:t,value:r,previousValue:i})}else d.push({type:`insert`,key:t,value:r})}else n!==void 0&&r===void 0?d.push({type:`delete`,key:t,value:l??n}):n!==void 0&&r!==void 0&&(!Pg(n,r)||h)&&d.push({type:`update`,key:t,value:r,previousValue:l??n})}this.size=this.calculateSize(),d.length>0&&this.indexes.updateIndexes(d),this.changes.emitEvents(d,!0),this.pendingSyncedTransactions=n,this.preSyncVisibleState.clear(),Promise.resolve().then(()=>{this.recentlySyncedKeys.clear()}),this.hasReceivedFirstCommit||=!0}},this.config=e,this.transactions=new Tb((e,t)=>
35e.compareCreatedAt(t)),this.syncedData=new Tb(e.compare)}setDeps(e){this.collection=e.collection,this.lifecycle=e.lifecycle,this.changes=e.changes,this.indexes=e.indexes,this._events=e.events}isRowSynced(e){return this.isLocalOnly?!0:!this.optimisticUpserts.has(e)&&!this.optimisticDeletes.has(e)}getRowOrigin(e){return this.isLocalOnly||this.optimisticUpserts.has(e)||this.optimisticDeletes.has(e)?`local`:this.rowOrigins.get(e)??`remote`}createVirtualPropsSnapshot(e,t){return{$synced:t?.$synced??this.isRowSynced(e),$origin:t?.$origin??this.getRowOrigin(e),$key:t?.$key??e,$collectionId:t?.$collectionId??this.collection.id}}getVirtualPropsSnapshotForState(e,t){if(this.isLocalOnly)return this.createVirtualPropsSnapshot(e,{$synced:!0,$origin:`local`});let n=t?.optimisticUpserts??this.optimisticUpserts,r=t?.optimisticDeletes??this.optimisticDeletes,i=n.has(e)||r.has(e)||t?.completedOptimisticKeys?.has(e)===!0;return this.createVirtualPropsSnapshot(e,{$synced:!i,$origin:i?`local`:(t?.rowOrigins??this.rowOrigins).get(e)??`remote`})}enrichWithVirtualPropsSnapshot(e,t){let n=e,r=n.$synced??t.$synced,i=n.$origin??t.$origin,a=n.$key??t.$key,o=n.$collectionId??t.$collectionId,s=this.virtualPropsCache.get(e);if(s&&s.synced===r&&s.origin===i&&s.key===a&&s.collectionId===o)return s.enriched;let c={...e,$synced:r,$origin:i,$key:a,$collectionId:o};return this.virtualPropsCache.set(e,{synced:r,origin:i,key:a,collectionId:o,enriched:c}),c}clearOriginTrackingState(){this.rowOrigins.clear(),this.pendingLocalChanges.clear(),this.pendingLocalOrigins.clear()}enrichWithVirtualProps(e,t){return this.enrichWithVirtualPropsSnapshot(e,this.createVirtualPropsSnapshot(t))}enrichChangeMessage(e){let{__virtualProps:t}=e,n=t?.value?this.enrichWithVirtualPropsSnapshot(e.value,t.value):this.enrichWithVirtualProps(e.value,e.key),r=e.previousValue?t?.previousValue?this.enrichWithVirtualPropsSnapshot(e.previousValue,t.previousValue):this.enrichWithVirtualProps(e.previousValue,e.key):void 0;return{key:e.key,type:e.type,value:n,previousValue:r,metadata:e.metadata}}getWithVirtualProps(e){let t=this.get(e);if(t!==void 0)return this.enrichWithVirtualProps(t,e)}get(e){let{optimisticDeletes:t,optimisticUpserts:n,syncedData:r}=this;if(!t.has(e))return n.has(e)?n.get(e):r.get(e)}has(e){let{optimisticDeletes:t,optimisticUpserts:n,syncedData:r}=this;return t.has(e)?!1:n.has(e)?!0:r.has(e)}*keys(){let{syncedData:e,optimisticDeletes:t,optimisticUpserts:n}=this;for(let n of e.keys())t.has(n)||(yield n);for(let r of n.keys())!e.has(r)&&!t.has(r)&&(yield r)}*values(){for(let e of this.keys()){let t=this.get(e);t!==void 0&&(yield t)}}*entries(){for(let e of this.keys()){let t=this.get(e);t!==void 0&&(yield[e,t])}}*[Symbol.iterator](){for(let[e,t]of this.entries())yield[e,t]}forEach(e){let t=0;for(let[n,r]of this.entries())e(r,n,t++)}map(e){let t=[],n=0;for(let[r,i]of this.entries())t.push(e(i,r,n++));return t}isThisCollection(e){return e===this.collection}recomputeOptimisticState(e=!1){if(this.isCommittingSyncTransactions&&!e)return;let t=new Map(this.optimisticUpserts),n=new Set(this.optimisticDeletes),r=new Map(this.rowOrigins);for(let e of this.transactions.values()){let t=e.metadata[Eb]===!0;if(e.state===`completed`){for(let n of e.mutations)if(this.isThisCollection(n.collection)&&(this.pendingLocalOrigins.add(n.key),n.optimistic))switch(n.type){case`insert`:case`update`:this.pendingOptimisticUpserts.set(n.key,n.modified),this.pendingOptimisticDeletes.delete(n.key),t?(this.pendingOptimisticDirectUpserts.add(n.key),this.pendingOptimisticDirectDeletes.delete(n.key)):(this.pendingOptimisticDirectUpserts.delete(n.key),this.pendingOptimisticDirectDeletes.delete(n.key));break;case`delete`:this.pendingOptimisticUpserts.delete(n.key),this.pendingOptimisticDeletes.add(n.key),t?(this.pendingOptimisticDirectUpserts.delete(n.key),this.pendingOptimisticDirectDeletes.add(n.key)):(this.pendingOptimisticDirectUpserts.delete(n.key),this.pendingOptimisticDirectDeletes.delete(n.key));break}}else if(e.state===`failed`)for(let t of e.mutations)this.isThisCollection(t.collection)&&(this.pendingLocalOrigins.delete(t.key),t.optimistic&&(this.pendingOptimisticUpserts.delete(t.key),this.pendingOptimisticDeletes.delete(t.key),this.pendingOptimisticDirectUpserts.delete(t.key),this.pendingOptimisticDirectDeletes.delete(t.key)))}this.optimisticUpserts.clear(),this.optimisticDeletes.clear(),this.pendingLocalChanges.clear();let i=new Set;for(let e of this.pendingSyncedTransactions)for(let t of e.operations)i.add(t.key);let a=[];for(let[e,t]of this.pendingOptimisticUpserts)i.has(e)||this.pendingOptimisticDirectUpserts.has(e)?this.optimisticUpserts.set(e,t):a.push(e);for(let e of a)this.pendingOptimisticUpserts.delete(e),this.pendingLocalOrigins.delete(e);let o=[];for(let e of this.pendingOptimisticDeletes)i.has(e)||this.pendingOptimisticDirectDeletes.has(e)?this.optimisticDeletes.add(e):o.push(e);for(let e of o)this.pendingOptimisticDeletes.delete(e),this.pendingLocalOrigins.delete(e);let s=[];for(let e of this.transactions.values())[`completed`,`failed`].includes(e.state)||s.push(e);for(let e of s)for(let t of e.mutations)if(this.isThisCollection(t.collection)&&(this.pendingLocalChanges.add(t.key),t.optimistic))switch(t.type){case`insert`:case`update`:this.optimisticUpserts.set(t.key,t.modified),this.optimisticDeletes.delete(t.key);break;case`delete`:this.optimisticUpserts.delete(t.key),this.optimisticDeletes.add(t.key);break}this.size=this.calculateSize();let c=[];this.collectOptimisticChanges(t,n,r,c);let l=c.filter(t=>!!(!this.recentlySyncedKeys.has(t.key)||e));if(this.pendingSyncedTransactions.length>0&&!e){let t=new Set;
35for(let e of this.pendingSyncedTransactions)for(let n of e.operations)t.add(n.key);let n=l.filter(e=>!(e.type===`delete`&&t.has(e.key)&&!s.some(t=>t.mutations.some(t=>this.isThisCollection(t.collection)&&t.key===e.key))));n.length>0&&this.indexes.updateIndexes(n),this.changes.emitEvents(n,e)}else l.length>0&&this.indexes.updateIndexes(l),this.changes.emitEvents(l,e)}calculateSize(){let e=this.syncedData.size,t=Array.from(this.optimisticDeletes).filter(e=>this.syncedData.has(e)&&!this.optimisticUpserts.has(e)).length,n=Array.from(this.optimisticUpserts.keys()).filter(e=>!this.syncedData.has(e)).length;return e-t+n}collectOptimisticChanges(e,t,n,r){let i=new Set([...e.keys(),...this.optimisticUpserts.keys(),...t,...this.optimisticDeletes]);for(let a of i){let i=this.get(a),o=this.getPreviousValue(a,e,t),s=this.getVirtualPropsSnapshotForState(a,{rowOrigins:n,optimisticUpserts:e,optimisticDeletes:t}),c=this.getVirtualPropsSnapshotForState(a);o!==void 0&&i===void 0?r.push({type:`delete`,key:a,value:o,__virtualProps:{value:s}}):o===void 0&&i!==void 0?r.push({type:`insert`,key:a,value:i,__virtualProps:{value:c}}):o!==void 0&&i!==void 0&&o!==i&&r.push({type:`update`,key:a,value:i,previousValue:o,__virtualProps:{value:c,previousValue:s}})}}getPreviousValue(e,t,n){if(!n.has(e))return t.has(e)?t.get(e):this.syncedData.get(e)}scheduleTransactionCleanup(e){if(e.state===`completed`){this.transactions.delete(e.id);return}e.isPersisted.promise.then(()=>{this.transactions.delete(e.id)}).catch(()=>{})}capturePreSyncVisibleState(){if(this.pendingSyncedTransactions.length===0)return;let e=new Set;for(let t of this.pendingSyncedTransactions)for(let n of t.operations)e.add(n.key);for(let t of e)this.recentlySyncedKeys.add(t);for(let t of e)if(!this.preSyncVisibleState.has(t)){let e=this.get(t);e!==void 0&&this.preSyncVisibleState.set(t,e)}}onTransactionStateChange(){this.changes.shouldBatchEvents=this.pendingSyncedTransactions.length>0,this.capturePreSyncVisibleState(),this.recomputeOptimisticState(!1)}cleanup(){this.syncedData.clear(),this.syncedMetadata.clear(),this.syncedCollectionMetadata.clear(),this.optimisticUpserts.clear(),this.optimisticDeletes.clear(),this.pendingOptimisticUpserts.clear(),this.pendingOptimisticDeletes.clear(),this.pendingOptimisticDirectUpserts.clear(),this.pendingOptimisticDirectDeletes.clear(),this.clearOriginTrackingState(),this.isLocalOnly=!1,this.size=0,this.pendingSyncedTransactions=[],this.syncedKeys.clear(),this.hasReceivedFirstCommit=!1}};function Ob(){let e=new Map;function t(n){let r=n.join(`.`);if(e.has(r))return e.get(r);let i=new Proxy({},{get(e,r,i){if(r===`__refProxy`)return!0;if(r===`__path`)return n;if(r!==`__type`)return typeof r==`symbol`?Reflect.get(e,r,i):t([...n,String(r)])},has(e,t){return t===`__refProxy`||t===`__path`||t===`__type`?!0:Reflect.has(e,t)},ownKeys(e){return Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,t){return t===`__refProxy`||t===`__path`||t===`__type`?{enumerable:!1,configurable:!0}:Reflect.getOwnPropertyDescriptor(e,t)}});return e.set(r,i),i}return t([])}function kb(e){let t=new Map,n=0;function r(e){let i=e.join(`.`);if(t.has(i))return t.get(i);let a=new Proxy({},{get(t,n,i){if(n===`__refProxy`)return!0;if(n===`__path`)return e;if(n!==`__type`)return typeof n==`symbol`?Reflect.get(t,n,i):r([...e,String(n)])},has(e,t){return t===`__refProxy`||t===`__path`||t===`__type`?!0:Reflect.has(e,t)},ownKeys(t){let r=++n,i=`__SPREAD_SENTINEL__${e.join(`.`)}__${r}`;return Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{enumerable:!0,configurable:!0,value:!0}),Reflect.ownKeys(t)},getOwnPropertyDescriptor(e,t){return t===`__refProxy`||t===`__path`||t===`__type`?{enumerable:!1,configurable:!0}:Reflect.getOwnPropertyDescriptor(e,t)}});return t.set(i,a),a}return new Proxy({},{get(t,n,i){if(n===`__refProxy`)return!0;if(n===`__path`)return[];if(n===`__type`)return;if(typeof n==`symbol`)return Reflect.get(t,n,i);let a=String(n);if(e.includes(a))return r([a])},has(t,n){return n===`__refProxy`||n===`__path`||n===`__type`||typeof n==`string`&&e.includes(n)?!0:Reflect.has(t,n)},ownKeys(t){return[...e,`__refProxy`,`__path`,`__type`]},getOwnPropertyDescriptor(t,n){if(n===`__refProxy`||n===`__path`||n===`__type`)return{enumerable:!1,
35configurable:!0};if(typeof n==`string`&&e.includes(n))return{enumerable:!0,configurable:!0}}})}function Ab(e){let t=kb(e),n=new Map;function r(e){let t=e.join(`.`);if(n.has(t))return n.get(t);let i=new Proxy({},{get(t,n,i){if(n===`__refProxy`)return!0;if(n===`__path`)return[`$selected`,...e];if(n!==`__type`)return typeof n==`symbol`?Reflect.get(t,n,i):r([...e,String(n)])},has(e,t){return t===`__refProxy`||t===`__path`||t===`__type`?!0:Reflect.has(e,t)},ownKeys(e){return Reflect.ownKeys(e)},getOwnPropertyDescriptor(e,t){return t===`__refProxy`||t===`__path`||t===`__type`?{enumerable:!1,configurable:!0}:Reflect.getOwnPropertyDescriptor(e,t)}});return n.set(t,i),i}let i=r([]);return new Proxy(t,{get(e,t,n){return t===`$selected`?i:Reflect.get(e,t,n)},has(e,t){return t===`$selected`?!0:Reflect.has(e,t)},ownKeys(e){return[...Reflect.ownKeys(e),`$selected`]},getOwnPropertyDescriptor(e,t){return t===`$selected`?{enumerable:!0,configurable:!0,value:i}:Reflect.getOwnPropertyDescriptor(e,t)}})}function jb(e){if(Mb(e))return new Uy(e.__path);if(e&&typeof e==`object`&&(e.__brand===`ToArrayWrapper`||e.__brand===`ConcatToArrayWrapper`)){let t=e.__brand===`ToArrayWrapper`?`toArray()`:`concat(toArray())`;throw Error(`${t} cannot be used inside expressions (e.g., coalesce(), eq(), not()). Use ${t} directly as a select field value instead.`)}return e&&typeof e==`object`&&`type`in e&&(e.type===`func`||e.type===`ref`||e.type===`val`||e.type===`agg`)?e:new Wy(e)}function Mb(e){return e&&typeof e==`object`&&e.__refProxy===!0}function Nb(e,t){return new Gy(`eq`,[jb(e),jb(t)])}function Pb(e,t){return new Gy(`gt`,[jb(e),jb(t)])}function Fb(e,t){return new Gy(`gte`,[jb(e),jb(t)])}function Ib(e,t){return new Gy(`lt`,[jb(e),jb(t)])}function Lb(e,t,...n){return new Gy(`and`,[e,t,...n].map(e=>jb(e)))}function Rb(e,t,...n){return new Gy(`or`,[e,t,...n].map(e=>jb(e)))}function zb(e,t){return new Gy(`in`,[jb(e),jb(t)])}var Bb=class{constructor(e){this.query=e,this.__brand=`ToArrayWrapper`}},Vb=class{constructor(e){this.query=e,this.__brand=`ConcatToArrayWrapper`}},Hb=class{constructor(){this.listeners=new Map}on(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{this.listeners.get(e)?.delete(t)}}once(e,t){let n=this.on(e,e=>{t(e),n()});return n}off(e,t){this.listeners.get(e)?.delete(t)}waitFor(e,t){return new Promise((n,r)=>{let i,a=this.on(e,e=>{i&&=(clearTimeout(i),void 0),n(e),a()});t&&(i=setTimeout(()=>{i=void 0,a(),r(Error(`Timeout waiting for event ${String(e)}`))},t))})}emitInner(e,t){this.listeners.get(e)?.forEach(e=>{try{e(t)}catch(e){queueMicrotask(()=>{throw e})}})}clearListeners(){this.listeners.clear()}};function Ub(e,t){if(t.length===0||e.length===0)return;if(e.length===1){let{expression:n,compareOptions:r}=e[0];return(r.direction===`asc`?Pb:Ib)(n,new Wy(t[0]))}let n=[];for(let r=0;r<e.length&&r<t.length;r++){let i=e[r],a=t[r],o=[];for(let n=0;n<r;n++){let r=e[n],i=t[n];o.push(Nb(r.expression,new Wy(i)))}let s=(i.compareOptions.direction===`asc`?Pb:Ib)(i.expression,new Wy(a));if(o.length===0)n.push(s);else{let e=[...o,s];n.push(e.reduce((e,t)=>Lb(e,t)))}}return n.length===1?n[0]:n.reduce((e,t)=>Rb(e,t))}var Wb=class extends Hb{constructor(e,t,n){super(),this.collection=e,this.callback=t,this.options=n,this.loadedInitialState=!1,this.skipFiltering=!1,this.snapshotSent=!1,this.loadedSubsets=[],this.sentKeys=new Set,this.limitedSnapshotRowCount=0,this._status=`ready`,this.pendingLoadSubsetPromises=new Set,this.isBufferingForTruncate=!1,this.truncateBuffer=[],this.pendingTruncateRefetches=new Set,n.onUnsubscribe&&this.on(`unsubscribed`,e=>n.onUnsubscribe(e)),n.whereExpression&&O_(n.whereExpression,this.collection);let r=e=>{t(e),this.trackSentKeys(e)};this.callback=r,this.filteredCallback=n.whereExpression?Sb(this.callback,n):this.callback,this.truncateCleanup=this.collection.on(`truncate`,()=>{this.handleTruncate()})}get status(){return this._status}handleTruncate(){let e=[...this.loadedSubsets],t=this.collection._sync.syncLoadSubsetFn!==null;if(e.length===0||!t){this.snapshotSent=!1,this.loadedInitialState=!1,this.limitedSnapshotRowCount=0,this.lastSentKey=void 0,this.loadedSubsets=[];return}this.isBufferingForTruncate=!0,this.truncateBuffer=[],this.pendingTruncateRefetches.clear(),this.snapshotSent=!1,this.loadedInitialState=!1,this.limitedSnapshotRowCount=0,this.lastSentKey=void 0,this.loadedSubsets=[],queueMicrotask(()=>
35{if(this.isBufferingForTruncate){for(let t of e){let e=this.collection._sync.loadSubset(t);this.loadedSubsets.push(t),this.trackLoadSubsetPromise(e),e instanceof Promise&&(this.pendingTruncateRefetches.add(e),e.catch(()=>{}).finally(()=>{this.pendingTruncateRefetches.delete(e),this.checkTruncateRefetchComplete()}))}this.pendingTruncateRefetches.size===0&&this.flushTruncateBuffer()}})}checkTruncateRefetchComplete(){this.pendingTruncateRefetches.size===0&&this.isBufferingForTruncate&&this.flushTruncateBuffer()}flushTruncateBuffer(){this.isBufferingForTruncate=!1;let e=this.truncateBuffer.flat();e.length>0&&this.filteredCallback(e),this.truncateBuffer=[]}setOrderByIndex(e){this.orderByIndex=e}hasOrderByIndex(){return this.orderByIndex!==void 0}setStatus(e){if(this._status===e)return;let t=this._status;this._status=e,this.emitInner(`status:change`,{type:`status:change`,subscription:this,previousStatus:t,status:e});let n=`status:${e}`;this.emitInner(n,{type:n,subscription:this,previousStatus:t,status:e})}trackLoadSubsetPromise(e){e instanceof Promise&&(this.pendingLoadSubsetPromises.add(e),this.setStatus(`loadingSubset`),e.finally(()=>{this.pendingLoadSubsetPromises.delete(e),this.pendingLoadSubsetPromises.size===0&&this.setStatus(`ready`)}))}hasLoadedInitialState(){return this.loadedInitialState}hasSentAtLeastOneSnapshot(){return this.snapshotSent}emitEvents(e){let t=this.filterAndFlipChanges(e);this.isBufferingForTruncate?t.length>0&&this.truncateBuffer.push(t):this.filteredCallback(t)}requestSnapshot(e){if(this.loadedInitialState)return!1;let t={where:this.options.whereExpression,optimizedOnly:e?.optimizedOnly??!1};if(e){if(`where`in e){let n=e.where;if(t.where){let e=t.where;t.where=Lb(e,n)}else t.where=n}}else this.loadedInitialState=!0;let n={where:t.where,subscription:this,orderBy:e?.orderBy,limit:e?.limit},r=this.collection._sync.loadSubset(n);e?.onLoadSubsetResult?.(r),this.loadedSubsets.push(n),(e?.trackLoadSubsetPromise??!0)&&this.trackLoadSubsetPromise(r);let i=this.collection.currentStateAsChanges(t);if(i===void 0)return!1;let a=i.filter(e=>!this.sentKeys.has(e.key));for(let e of a)this.sentKeys.add(e.key);return this.snapshotSent=!0,this.callback(a),!0}requestLimitedSnapshot({orderBy:e,limit:t,minValues:n,offset:r,trackLoadSubsetPromise:i=!0,onLoadSubsetResult:a}){if(!t)throw Error(`limit is required`);if(!this.orderByIndex)throw Error(`Ordered snapshot was requested but no index was found. You have to call setOrderByIndex before requesting an ordered snapshot.`);let o=n!==void 0&&n.length>0,s=n?.[0],c=this.orderByIndex,l=this.options.whereExpression,u=l?xb(l):void 0,d=e=>{if(e!==void 0&&this.sentKeys.has(e))return!1;let t=this.collection.get(e);return t===void 0?!1:u?.(t)??!0},f=s,p=[],m=[];if(o){let{expression:n}=e[0],r=this.collection.currentStateAsChanges({where:Nb(n,new Wy(s))});if(r){let e=r.map(e=>e.key).filter(e=>!this.sentKeys.has(e)&&d(e));m.push(...e);let n=c.take(t-m.length,s,d);m.push(...n)}else m=c.take(t,s,d)}else m=c.takeFromStart(t,d);let h=()=>Math.max(t-p.length,0),g=()=>m.length===0,_=e[0].expression,v=_.type===`ref`?e_(new Uy(_.path),!0):null;for(;h()>0&&!g();){let e=new Set;for(let t of m){let n=this.collection.get(t);p.push({type:`insert`,key:t,value:n}),f=v?v(n):n,e.add(t)}m=c.take(h(),f,d)}let y=this.limitedSnapshotRowCount;for(let e of p)this.sentKeys.add(e.key);this.callback(p),this.limitedSnapshotRowCount+=p.length,p.length>0&&(this.lastSentKey=p[p.length-1].key);let b;if(n!==void 0&&n.length>0){let t=Ub(e,n);if(t){let{expression:r}=e[0],i=n[0],a;if(i instanceof Date){let e=new Date(i.getTime()+1);a=Lb(Fb(r,new Wy(i)),Ib(r,new Wy(e)))}else a=Nb(r,new Wy(i));b={whereFrom:t,whereCurrent:a,lastKey:this.lastSentKey}}}let x={where:l,limit:t,orderBy:e,cursor:b,offset:r??y,subscription:this},S=this.collection._sync.loadSubset(x);a?.(S),this.loadedSubsets.push(x),i&&this.trackLoadSubsetPromise(S)}filterAndFlipChanges(e){if(this.loadedInitialState||this.skipFiltering)return e;let t=this.isBufferingForTruncate,n=[];for(let r of e){let e=r;if(!this.sentKeys.has(r.key)){if(r.type===`update`)e={...r,type:`insert`,previousValue:void 0};else if(r.type===`delete`&&!t)continue;this.sentKeys.add(r.key)}else if(r.type===`insert`)continue;else r.type===`delete`&&this.sentKeys.delete(r.key);n.push(e)}return n}trackSentKeys(e){if(!(this.loadedInitialState||this.skipFiltering)){for(let t of e)t.type===`delete`?this.sentKeys.delete(t.key):this.sentKeys.add(t.key);this.orderByIndex&&(this.limitedSnapshotRowCount=Math.max(this.limitedSnapshotRowCount,this.sentKeys.size))}}markAllStateAsSeen(){this.skipFiltering=!0}unsubscribe(){this.truncateCleanup?.(),this.truncateCleanup=void 0,this.isBufferingForTruncate=!1,this.truncateBuffer=[],this.pendingTruncateRefetches.clear();for(let e of this.loadedSubsets)this.collection._sync.unloadSubset(e);this.loadedSubsets=[],this.emitInner(`unsubscribed`,{type:`unsubscribed`,subscription:this}),this.clearListeners()}},Gb=class{constructor(){this.activeSubscribersCount=0,this.changeSubscriptions=new Set,this.batchedEvents=[],this.shouldBatchEvents=!1}setDeps(e){this.lifecycle=e.lifecycle,this.sync=e.sync,this.events=e.events,this.collection=e.collection,this.state=e.state}emitEmptyReadyEvent(){for(let e of this.changeSubscriptions)e.emitEvents([])}enrichChangeWithVirtualProps(e){return this.state.enrichChangeMessage(e)}emitEvents(e,t=!1){if(this.shouldBatchEvents&&!t){this.batchedEvents.push(...e);return}let n=e;if(t&&(this.batchedEvents.length>0&&(n=[...this.batchedEvents,...e]),this.batchedEvents=[],this.shouldBatchEvents=!1),n.length===0)return;let r=n.map(e=>this.enrichChangeWithVirtualProps(e));for(let e of this.changeSubscriptions)e.emitEvents(r)}subscribeChanges(e,t={}){if(this.addSubscriber(),t.where&&t.whereExpression)throw Error(`Cannot specify both 'where' and 'whereExpression' options. Use one or the other.`);let{where:n,...r}=t,i=r.whereExpression;n&&(i=jb(n(Ob())));let a=new Wb(this.collection,e,{...r,whereExpression:i,onUnsubscribe:()=>{this.removeSubscriber(),this.changeSubscriptions.delete(a)}});return t.onStatusChange&&a.on(`status:change`,t.onStatusChange),t.includeInitialState?a.requestSnapshot({trackLoadSubsetPromise:!1,orderBy:t.orderBy,limit:t.limit,onLoadSubsetRe
35sult:t.onLoadSubsetResult}):t.includeInitialState===!1&&a.markAllStateAsSeen(),this.changeSubscriptions.add(a),a}addSubscriber(){let e=this.activeSubscribersCount;this.activeSubscribersCount++,this.lifecycle.cancelGCTimer(),(this.lifecycle.status===`cleaned-up`||this.lifecycle.status===`idle`)&&this.sync.startSync(),this.events.emitSubscribersChange(this.activeSubscribersCount,e)}removeSubscriber(){let e=this.activeSubscribersCount;if(this.activeSubscribersCount--,this.activeSubscribersCount===0)this.lifecycle.startGCTimer();else if(this.activeSubscribersCount<0)throw new gh;this.events.emitSubscribersChange(this.activeSubscribersCount,e)}cleanup(){this.batchedEvents=[],this.shouldBatchEvents=!1}},Kb=e=>setTimeout(()=>{e({didTimeout:!0,timeRemaining:()=>50})},0),qb=e=>{clearTimeout(e)},Jb=typeof window<`u`&&`requestIdleCallback`in window?(e,t)=>window.requestIdleCallback(e,t):(e,t)=>Kb(e),Yb=typeof window<`u`&&`cancelIdleCallback`in window?e=>window.cancelIdleCallback(e):qb,Xb=class e{constructor(){this.tasks=new Map,this.timeoutId=null,this.microtaskScheduled=!1}static getInstance(){return e.instance||=new e,e.instance}schedule(e,t,n){let r=Date.now()+t;this.tasks.set(e,{executeAt:r,callback:n}),this.microtaskScheduled||(this.microtaskScheduled=!0,Promise.resolve().then(()=>{this.microtaskScheduled=!1,this.updateTimeout()}))}cancel(e){this.tasks.delete(e)}updateTimeout(){if(this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.tasks.size===0)return;let e=1/0;for(let t of this.tasks.values())t.executeAt<e&&(e=t.executeAt);let t=Math.max(0,e-Date.now());this.timeoutId=setTimeout(()=>this.process(),t)}process(){this.timeoutId=null;let e=Date.now();for(let[t,n]of this.tasks.entries())if(e>=n.executeAt){this.tasks.delete(t);try{n.callback()}catch(e){console.error(`Error in CleanupQueue task:`,e)}}this.tasks.size>0&&this.updateTimeout()}static resetInstance(){e.instance&&=(e.instance.timeoutId!==null&&clearTimeout(e.instance.timeoutId),null)}};Xb.instance=null;var Zb=Xb,Qb=class{constructor(e,t){this.status=`idle`,this.hasBeenReady=!1,this.hasReceivedFirstCommit=!1,this.onFirstReadyCallbacks=[],this.idleCallbackId=null,this.config=e,this.id=t}setDeps(e){this.indexes=e.indexes,this.events=e.events,this.changes=e.changes,this.sync=e.sync,this.state=e.state}validateStatusTransition(e,t){if(e!==t&&!{idle:[`loading`,`error`,`cleaned-up`],loading:[`ready`,`error`,`cleaned-up`],ready:[`cleaned-up`,`error`],error:[`cleaned-up`,`idle`],"cleaned-up":[`loading`,`error`]}[e].includes(t))throw new mh(e,t,this.id)}setStatus(e,t=!1){if(e===`ready`&&!t)throw new fh(`You can't directly call "setStatus('ready'). You must use markReady instead.`);this.validateStatusTransition(this.status,e);let n=this.status;this.status=e,this.events.emitStatusChange(e,n)}validateCollectionUsable(e){switch(this.status){case`error`:throw new ph(e,this.id);case`cleaned-up`:this.sync.startSync();break}}markReady(){if(this.validateStatusTransition(this.status,`ready`),this.status===`loading`){if(this.setStatus(`ready`,!0),!this.hasBeenReady){this.hasBeenReady=!0,this.hasReceivedFirstCommit||=!0;let e=[...this.onFirstReadyCallbacks];this.onFirstReadyCallbacks=[],e.forEach(e=>e())}this.changes.changeSubscriptions.size>0&&this.changes.emitEmptyReadyEvent()}}startGCTimer(){let e=this.config.gcTime??3e5;e<=0||!Number.isFinite(e)||Zb.getInstance().schedule(this,e,()=>{this.changes.activeSubscribersCount===0&&this.scheduleIdleCleanup()})}cancelGCTimer(){Zb.getInstance().cancel(this),this.idleCallbackId!==null&&(Yb(this.idleCallbackId),this.idleCallbackId=null)}scheduleIdleCleanup(){this.idleCallbackId!==null&&Yb(this.idleCallbackId),this.idleCallbackId=Jb(e=>{this.changes.activeSubscribersCount===0?this.performCleanup(e)&&(this.idleCallbackId=null):this.idleCallbackId=null},{timeout:1e3})}performCleanup(e){if(!e||e.timeRemaining()>0||e.didTimeout){this.sync.cleanup(),this.state.cleanup(),this.changes.cleanup(),this.indexes.cleanup(),Zb.getInstance().cancel(this),this.hasBeenReady=!1;let e=[...this.onFirstReadyCallbacks];
35return this.onFirstReadyCallbacks=[],e.forEach(e=>{try{e()}catch(e){console.error(`${this.config.id?`[${this.config.id}] `:``}Error in onFirstReady callback during cleanup:`,e)}}),this.setStatus(`cleaned-up`),this.events.cleanup(),!0}else return this.scheduleIdleCleanup(),!1}onFirstReady(e){if(this.hasBeenReady){e();return}this.onFirstReadyCallbacks.push(e)}cleanup(){this.idleCallbackId!==null&&(Yb(this.idleCallbackId),this.idleCallbackId=null),this.performCleanup()}},$b=Symbol(`liveQueryInternal`),ex=class{constructor(e,t){this.preloadPromise=null,this.syncCleanupFn=null,this.syncLoadSubsetFn=null,this.syncUnloadSubsetFn=null,this.pendingLoadSubsetPromises=new Set,this.config=e,this.id=t,this.syncMode=e.syncMode??`eager`}setDeps(e){this.collection=e.collection,this.state=e.state,this.lifecycle=e.lifecycle,this._events=e.events}startSync(){if(!(this.lifecycle.status!==`idle`&&this.lifecycle.status!==`cleaned-up`)){this.lifecycle.setStatus(`loading`);try{let e=tx(this.config.sync.sync({collection:this.collection,begin:e=>{this.state.pendingSyncedTransactions.push({committed:!1,operations:[],deletedKeys:new Set,rowMetadataWrites:new Map,collectionMetadataWrites:new Map,immediate:e?.immediate})},write:e=>{let t=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!t)throw new Rh;if(t.committed)throw new zh;let n;n=`key`in e?e.key:this.config.getKey(e.value),this.state.pendingLocalChanges.has(n)&&this.state.pendingLocalOrigins.add(n);let r=e.type;if(e.type===`insert`){let i=this.state.syncedData.has(n),a=t.deletedKeys.has(n),o=t.truncate===!0;if(i&&!a&&!o){let t=this.state.syncedData.get(n);if(t!==void 0&&Pg(t,e.value))r=`update`;else{let e=this.config.utils[$b];throw new xh(n,this.id,{hasCustomGetKey:e?.hasCustomGetKey??!1,hasJoins:e?.hasJoins??!1,hasDistinct:e?.hasDistinct??!1})}}}let i={...e,type:r,key:n};t.operations.push(i),r===`delete`?(t.deletedKeys.add(n),t.rowMetadataWrites.set(n,{type:`delete`})):r===`insert`?i.metadata===void 0?t.rowMetadataWrites.set(n,{type:`delete`}):t.rowMetadataWrites.set(n,{type:`set`,value:i.metadata}):i.metadata!==void 0&&t.rowMetadataWrites.set(n,{type:`set`,value:i.metadata})},commit:()=>{let e=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!e)throw new Bh;if(e.committed)throw new Vh;e.committed=!0,this.state.commitPendingTransactions()},markReady:()=>{this.lifecycle.markReady()},truncate:()=>{let e=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!e)throw new Rh;if(e.committed)throw new zh;e.operations=[],e.deletedKeys.clear(),e.rowMetadataWrites.clear(),e.truncate=!0,e.optimisticSnapshot={upserts:new Map(this.state.optimisticUpserts),deletes:new Set(this.state.optimisticDeletes)}},metadata:this.createSyncMetadataApi()}));if(this.syncCleanupFn=e?.cleanup??null,this.syncLoadSubsetFn=e?.loadSubset??null,this.syncUnloadSubsetFn=e?.unloadSubset??null,this.syncMode===`on-demand`&&!this.syncLoadSubsetFn)throw new sh(`Collection "${this.id}" is configured with syncMode "on-demand" but the sync function did not return a loadSubset handler. Either provide a loadSubset handler or use syncMode "eager".`)}catch(e){throw this.lifecycle.setStatus(`error`),e}}}getActivePendingSyncTransaction(){let e=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(!e)throw new Rh;if(e.committed)throw new zh;return e}createSyncMetadataApi(){return{row:{get:e=>{let t=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1],n=t?.rowMetadataWrites.get(e);if(n)return n.type===`delete`?void 0:n.value;if(!t?.truncate)return this.state.syncedMetadata.get(e)},set:(e,t)=>{this.getActivePendingSyncTransaction().rowMetadataWrites.set(e,{type:`set`,value:t})},delete:e=>{this.getActivePendingSyncTransaction().rowMetadataWrites.set(e,{type:`delete`})}},collection:{get:e=>{let t=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1]?.collectionMetadataWrites.get(e);return t?t.type===`delete`?void 0:t.value:this.state.syncedCollectionMetadata.get(e)}
35,set:(e,t)=>{this.getActivePendingSyncTransaction().collectionMetadataWrites.set(e,{type:`set`,value:t})},delete:e=>{this.getActivePendingSyncTransaction().collectionMetadataWrites.set(e,{type:`delete`})},list:e=>{let t=new Map(this.state.syncedCollectionMetadata),n=this.state.pendingSyncedTransactions[this.state.pendingSyncedTransactions.length-1];if(n)for(let[e,r]of n.collectionMetadataWrites)r.type===`delete`?t.delete(e):t.set(e,r.value);return Array.from(t.entries()).filter(([t])=>e?t.startsWith(e):!0).map(([e,t])=>({key:e,value:t}))}}}}preload(){return this.preloadPromise?this.preloadPromise:(this.syncMode===`on-demand`&&console.warn(`${this.id?`[${this.id}] `:``}Calling .preload() on a collection with syncMode "on-demand" is a no-op. In on-demand mode, data is only loaded when queries request it. Instead, create a live query and call .preload() on that to load the specific data you need. See https://tanstack.com/blog/tanstack-db-0.5-query-driven-sync for more details.`),this.preloadPromise=new Promise((e,t)=>{if(this.lifecycle.status===`ready`){e();return}if(this.lifecycle.status===`error`){t(new hh);return}if(this.lifecycle.onFirstReady(()=>{e()}),this.lifecycle.status===`idle`||this.lifecycle.status===`cleaned-up`)try{this.startSync()}catch(e){t(e);return}}),this.preloadPromise)}get isLoadingSubset(){return this.pendingLoadSubsetPromises.size>0}trackLoadPromise(e){let t=!this.isLoadingSubset;this.pendingLoadSubsetPromises.add(e),t&&this._events.emit(`loadingSubset:change`,{type:`loadingSubset:change`,collection:this.collection,isLoadingSubset:!0,previousIsLoadingSubset:!1,loadingSubsetTransition:`start`}),e.finally(()=>{let t=this.pendingLoadSubsetPromises.size===1&&this.pendingLoadSubsetPromises.has(e);this.pendingLoadSubsetPromises.delete(e),t&&this._events.emit(`loadingSubset:change`,{type:`loadingSubset:change`,collection:this.collection,isLoadingSubset:!1,previousIsLoadingSubset:!0,loadingSubsetTransition:`end`})})}loadSubset(e){if(this.syncMode===`eager`)return!0;if(this.syncLoadSubsetFn){let t=this.syncLoadSubsetFn(e);if(t instanceof Promise)return this.trackLoadPromise(t),t}return!0}unloadSubset(e){this.syncUnloadSubsetFn&&this.syncUnloadSubsetFn(e)}cleanup(){try{this.syncCleanupFn&&=(this.syncCleanupFn(),null)}catch(e){queueMicrotask(()=>{if(e instanceof Error){let t=new Og(this.id,e);throw t.cause=e,t.stack=e.stack,t}else throw new Og(this.id,e)})}this.preloadPromise=null}};function tx(e){if(typeof e==`function`)return{cleanup:e};if(typeof e==`object`)return e}var nx=1;function rx(e,t){return e===t?0:e<t?-1:1}function ix(e){return{kind:`constructor`,...e.name?{name:e.name}:{}}}function ax(e){if(e==null)return e;switch(typeof e){case`string`:case`boolean`:return e;case`number`:return Number.isFinite(e)?e:null;case`bigint`:return{__type:`bigint`,value:e.toString()};case`function`:case`symbol`:return;case`undefined`:return}if(Array.isArray(e))return e.map(e=>ax(e)??null);if(e instanceof Date)return{__type:`date`,value:e.toISOString()};if(e instanceof Set)return{__type:`set`,values:Array.from(e).map(e=>ax(e)??null).sort((e,t)=>rx(ox(e),ox(t)))};if(e instanceof Map)return{__type:`map`,entries:Array.from(e.entries()).map(([e,t])=>({key:ax(e)??null,value:ax(t)??null})).sort((e,t)=>rx(ox(e.key),ox(t.key)))};if(e instanceof RegExp)return{__type:`regexp`,value:e.toString()};let t={},n=Object.entries(e).sort(([e],[t])=>rx(e,t));for(let[e,r]of n){let n=ax(r);n!==void 0&&(t[e]=n)}return t}function ox(e){return e===null?`null`:Array.isArray(e)?`[${e.map(ox).join(`,`)}]`:typeof e==`object`?`{${Object.keys(e).sort((e,t)=>rx(e,t)).map(t=>`${JSON.stringify(t)}:${ox(e[t])}`).join(`,`)}}`:JSON.stringify(e)}function sx(e,t,n,r,i){let a=ix(r),o=ax(t)??null,s=ax(i);return{signatureVersion:nx,signature:ox(ax({signatureVersion:nx,expression:o,options:s??null})??null),indexId:e,name:n,expression:t,resolver:a,...s===void 0?{}:{options:s}}}function cx(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>cx(e));let t={};for(let[n,r]of Object.entries(e))t[n]=cx(r);return t}function lx(e){return JSON.parse(JSON.stringify(e))}var ux=class{constructor(){this.indexes=new Map,this.indexMetadata=new Map,this.indexCounter=0}setDeps(e){this.state=e.state,this.lifecycle=e.lifecycle,this.defaultIndexType=e.defaultIndexType,this.events=e.events}createIndex(e,t={}){this.lifecycle.validateCollectionUsable(`createIndex`);let n=++this.indexCounter,r=jb(e(Ob())),i=t.indexType??this.defaultIndexType;if(!i)throw new sh(`No index type specified and no defaultIndexType set on collection. Either pass indexType in config, or set defaultIndexType on the collection: 36 import { BasicIndex } from '@tanstack/db' 37 createCollection({ defaultIndexType: BasicIndex, ... })`);let a=new i(n,r,t.name,t.options);a.build(this.state.entries()),this.indexes.set(n,a);let o=sx(n,r,t.name,i,t.options);return this.indexMetadata.set(n,o),this.events.emitIndexAdded(o),a}removeIndex(e){this.lifecycle.validateCollectionUsable(`removeIndex`);let t=typeof e==`number`?e:e.id,n=this.indexes.get(t);if(!n||typeof e!=`number`&&n!==e)return!1;this.indexes.delete(t);let r=this.indexMetadata.get(t);return this.indexMetadata.delete(t),r&&this.events.emitIndexRemoved(r),!0}getIndexMetadataSnapshot(){return Array.from(this.indexMetadata.values()).sort((e,t)=>
37e.indexId-t.indexId).map(e=>({...e,expression:lx(e.expression),resolver:{...e.resolver},...e.options===void 0?{}:{options:cx(e.options)}}))}updateIndexes(e){for(let t of this.indexes.values())for(let n of e)switch(n.type){case`insert`:t.add(n.key,n.value);break;case`update`:n.previousValue?t.update(n.key,n.previousValue,n.value):t.add(n.key,n.value);break;case`delete`:t.remove(n.key,n.value);break}}cleanup(){this.indexes.clear(),this.indexMetadata.clear()}},dx=new Set([`find`,`findLast`,`findIndex`,`findLastIndex`,`filter`,`map`,`flatMap`,`forEach`,`some`,`every`,`reduce`,`reduceRight`]),fx=new Set([`pop`,`push`,`shift`,`unshift`,`splice`,`sort`,`reverse`,`fill`,`copyWithin`]),px=new Set([`set`,`delete`,`clear`,`add`]),mx=new Set([`entries`,`keys`,`values`,`forEach`]);function hx(e){return typeof e==`object`&&!!e&&!(e instanceof Date)&&!(e instanceof RegExp)&&!Lg(e)}function gx(e,t,n,r){if(dx.has(e))return function(...i){let a=i[0];if(typeof a!=`function`)return t.apply(n.copy_,i);let o=(e,t)=>{if(hx(e)){let{proxy:i}=r(e,{tracker:n,prop:String(t)});return i}return e},s=function(e,t,n){let r=o(e,t);return a.call(this,r,t,n)};if(e===`reduce`||e===`reduceRight`)return t.apply(n.copy_,[function(e,t,n,r){let i=o(t,n);return a.call(this,e,i,n,r)},...i.slice(1)]);let c=t.apply(n.copy_,[s,...i.slice(1)]);if((e===`find`||e===`findLast`)&&c&&typeof c==`object`){let e=n.copy_.indexOf(c);if(e!==-1)return o(c,e)}return e===`filter`&&Array.isArray(c)?c.map(e=>{let t=n.copy_.indexOf(e);return t===-1?e:o(e,t)}):c}}function _x(e,t){return function(){let n=e.copy_,r=0;return{next(){if(r>=n.length)return{done:!0,value:void 0};let i=n[r],a=i;if(hx(i)){let{proxy:n}=t(i,{tracker:e,prop:String(r)});a=n}return r++,{done:!1,value:a}},[Symbol.iterator](){return this}}}}function vx(e,t,n){return function(...r){let i=e.apply(t.copy_,r);return n(t),i}}function yx(e,t,n,r,i,a,o){if(mx.has(e)||t===Symbol.iterator)return function(...s){let c=n.apply(i.copy_,s);if(e===`forEach`){let e=s[0];if(typeof e==`function`)return n.apply(r,[function(t,n,r){let a=e.call(this,t,n,r);return o(i),a},...s.slice(1)])}if(e===`entries`||e===`values`||e===Symbol.iterator.toString()||t===Symbol.iterator){let n=c,o=new Map;if(e===`values`&&r instanceof Map)for(let[e,t]of i.copy_.entries())o.set(t,e);let s=new Map;if(r instanceof Set)for(let e of i.copy_.values())s.set(e,e);return{next(){let c=n.next();if(!c.done&&c.value&&typeof c.value==`object`){if(e===`entries`&&Array.isArray(c.value)&&c.value.length===2){if(c.value[1]&&typeof c.value[1]==`object`){let e=c.value[0],t={tracker:i,prop:e,updateMap:t=>{i.copy_ instanceof Map&&i.copy_.set(e,t)}},{proxy:n}=a(c.value[1],t);c.value[1]=n}}else if(e===`values`||e===Symbol.iterator.toString()||t===Symbol.iterator)if(e===`values`&&r instanceof Map){let e=o.get(c.value);if(e!==void 0){let t={tracker:i,prop:e,updateMap:t=>{i.copy_ instanceof Map&&i.copy_.set(e,t)}},{proxy:n}=a(c.value,t);c.value=n}}else if(r instanceof Set){let e=c.value,t={tracker:i,prop:e,updateSet:t=>{i.copy_ instanceof Set&&(i.copy_.delete(e),i.copy_.add(t),s.set(e,t))}},{proxy:n}=a(c.value,t);c.value=n}else{let e=Symbol(`iterator-value`),{proxy:t}=a(c.value,{tracker:i,prop:e});c.value=t}}return c},[Symbol.iterator](){return this}}}return c}}function bx(...e){let t=typeof window<`u`&&typeof localStorage<`u`;(t&&localStorage.getItem(`DEBUG`)===`true`||!t&&typeof process<`u`&&{}.DEBUG===`true`)&&console.log(`[proxy]`,...e)}function xx(e,t=new WeakMap){if(typeof e!=`object`||!e)return e;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(Array.isArray(e)){let n=[];return t.set(e,n),e.forEach((e,r)=>{n[r]=xx(e,t)}),n}if(ArrayBuffer.isView(e)&&!(e instanceof DataView)){let n=Object.getPrototypeOf(e).constructor,r=new n(e.length);t.set(e,r);for(let t=0;t<e.length;t++)r[t]=e[t];return r}if(e instanceof Map){let n=new Map;return t.set(e,n),e.forEach((e,r)=>{n.set(r,xx(e,t))}),n}if(e instanceof Set){let n=new Set;return t.set(e,n),e.forEach(e=>{n.add(xx(e,t))}),n}if(Lg(e))return e;let n={};t.set(e,n);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=xx(e[r],t));let r=Object.getOwnPropertySymbols(e);
37for(let i of r)n[i]=xx(e[i],t);return n}var Sx=0;function Cx(){return Sx+=1,Sx}function wx(e,t){let n=new Map;function r(e,t){if(bx(`Object ID:`,e.constructor.name),n.has(e))return n.get(e);{let r=wx(e,t);return n.set(e,r),r}}let i=new Map,a={copy_:xx(e),originalObject:xx(e),proxyCount:Cx(),modified:!1,assigned_:{},parent:t,target:e};bx(`createChangeProxy called for target`,e,a.proxyCount);function o(e){e.modified||=!0,e.parent&&(bx(`propagating change to parent`),`updateMap`in e.parent?e.parent.updateMap(e.copy_):`updateSet`in e.parent?e.parent.updateSet(e.copy_):(e.parent.tracker.copy_[e.parent.prop]=e.copy_,e.parent.tracker.assigned_[e.parent.prop]=!0),o(e.parent.tracker))}function s(e){if(bx(`checkIfReverted called with assigned keys:`,Object.keys(e.assigned_)),Object.keys(e.assigned_).length===0&&Object.getOwnPropertySymbols(e.assigned_).length===0)return bx(`No assigned properties, returning true`),!0;for(let t in e.assigned_)if(e.assigned_[t]===!0){let n=e.copy_[t],r=e.originalObject[t];if(bx(`Checking property ${String(t)}, current:`,n,`original:`,r),!Pg(n,r))return bx(`Property ${String(t)} is different, returning false`),!1}else if(e.assigned_[t]===!1)return bx(`Property ${String(t)} was deleted, returning false`),!1;let t=Object.getOwnPropertySymbols(e.assigned_);for(let n of t)if(e.assigned_[n]===!0){let t=e.copy_[n],r=e.originalObject[n];if(!Pg(t,r))return bx(`Symbol property is different, returning false`),!1}else if(e.assigned_[n]===!1)return bx(`Symbol property was deleted, returning false`),!1;return bx(`All properties match original values, returning true`),!0}function c(e,t){bx(`checkParentStatus called for child prop:`,t);let n=s(e);bx(`Parent checkIfReverted returned:`,n),n&&(bx(`Parent is fully reverted, clearing tracking`),e.modified=!1,e.assigned_={},e.parent&&(bx(`Continuing up the parent chain`),c(e.parent.tracker,e.parent.prop)))}function l(e){if(bx(`createObjectProxy`,e),i.has(e))return bx(`proxyCache found match`),i.get(e);let n=new Proxy(e,{get(e,t){bx(`get`,e,t);let n=a.copy_[t]??a.originalObject[t],s=a.originalObject[t];if(bx(`value (at top of proxy get)`,n),Object.getOwnPropertyDescriptor(e,t)?.get)return n;if(typeof n==`function`){if(Array.isArray(e)){let e=t.toString();if(fx.has(e))return vx(n,a,o);let i=gx(e,n,a,r);if(i)return i;if(t===Symbol.iterator)return _x(a,r)}if(e instanceof Map||e instanceof Set){let i=t.toString();if(px.has(i))return vx(n,a,o);let s=yx(i,t,n,e,a,r,o);if(s)return s}return n.bind(e)}if(hx(n)){let{proxy:e}=r(s,{tracker:a,prop:String(t)});return i.set(n,e),e}return n},set(e,n,r){let i=a.copy_[n];if(bx(`set called for property ${String(n)}, current:`,i,`new:`,r),Pg(i,r))bx(`Value unchanged, not tracking`);else{let e=a.originalObject[n],i=Pg(r,e);if(bx(`value:`,r,`original:`,e,`isRevertToOriginal:`,i),i){bx(`Reverting property ${String(n)} to original value`),delete a.assigned_[n.toString()],bx(`Updating copy with original value for ${String(n)}`),a.copy_[n]=xx(e),bx(`Checking if all properties reverted`);let r=s(a);bx(`All reverted:`,r),r?(bx(`All properties reverted, clearing tracking`),a.modified=!1,a.assigned_={},t&&(bx(`Updating parent for property:`,t.prop),c(t.tracker,t.prop))):(bx(`Some properties still changed, keeping modified flag`),a.modified=!0)}else bx(`Setting new value for property ${String(n)}`),a.copy_[n]=r,a.assigned_[n.toString()]=!0,bx(`Marking object and ancestors as modified`,a),o(a)}return!0},defineProperty(e,t,n){let r=Reflect.defineProperty(e,t,n);return r&&`value`in n&&(a.copy_[t]=xx(n.value),a.assigned_[t.toString()]=!0,o(a)),r},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e,t)},preventExtensions(e){return Reflect.preventExtensions(e)},isExtensible(e){return Reflect.isExtensible(e)},deleteProperty(e,t){bx(`deleteProperty`,e,t);let n=typeof t==`symbol`?t.toString():t;if(n in e){let r=n in a.originalObject,i=Reflect.deleteProperty(e,t);return i&&(r?(a.assigned_[n]=!1,o(a)):(delete a.assigned_[n],Object.keys(a.assigned_).length===0&&Object.getOwnPropertySymbols(a.assigned_).length===0?a.modified=!1:a.modified=!0)),i}return!0}});return i.set(e,n),n}return{proxy:l(a.copy_),getChanges:()=>
37{if(bx(`getChanges called, modified:`,a.modified),bx(a),!a.modified)return bx(`Object not modified, returning empty object`),{};if(typeof a.copy_!=`object`||Array.isArray(a.copy_)||Object.keys(a.assigned_).length===0)return a.copy_;let e={};for(let t in a.copy_)a.assigned_[t]===!0&&t in a.copy_&&(e[t]=a.copy_[t]);return bx(`Returning copy:`,e),e}}}function Tx(e){let t=e.map(e=>wx(e));return{proxies:t.map(e=>e.proxy),getChanges:()=>t.map(e=>e.getChanges())}}function Ex(e,t){let{proxy:n,getChanges:r}=wx(e);return t(n),r()}function Dx(e,t){let{proxies:n,getChanges:r}=Tx(e);return t(n),r()}function Ox(){let e,t,n=!0;return{promise:new Promise((r,i)=>{e=e=>{n=!1,r(e)},t=e=>{n=!1,i(e)}}),resolve:e,reject:t,isPending:()=>n}}function kx(e){return typeof e==`object`&&!!e&&typeof e.hasPendingGraphRun==`function`}var Ax=new class{constructor(){this.contexts=new Map,this.clearListeners=new Set}getOrCreateContext(e){let t=this.contexts.get(e);return t||(t={queue:[],jobs:new Map,dependencies:new Map,completed:new Set},this.contexts.set(e,t)),t}schedule({contextId:e,jobId:t,dependencies:n,run:r}){if(e===void 0){r();return}let i=this.getOrCreateContext(e);if(i.jobs.has(t)||i.queue.push(t),i.jobs.set(t,r),n){let e=new Set(n);e.delete(t),i.dependencies.set(t,e)}else i.dependencies.has(t)||i.dependencies.set(t,new Set);i.completed.delete(t)}flush(e){let t=this.contexts.get(e);if(!t)return;let{queue:n,jobs:r,dependencies:i,completed:a}=t;for(;n.length>0;){let t=!1,o=n.length;for(let s=0;s<o;s++){let o=n.shift(),s=r.get(o);if(!s){i.delete(o),a.delete(o);continue}let c=i.get(o),l=!c;if(c){l=!0;for(let t of c){if(t===o)continue;let n=kx(t)&&t.hasPendingGraphRun(e);if(r.has(t)&&!a.has(t)||!r.has(t)&&n){l=!1;break}}}l?(r.delete(o),i.delete(o),s(),a.add(o),t=!0):n.push(o)}if(!t)throw Error(`Scheduler detected unresolved dependencies for context ${String(e)}.`)}this.contexts.delete(e)}flushAll(){for(let e of Array.from(this.contexts.keys()))this.flush(e)}clear(e){this.contexts.delete(e),this.clearListeners.forEach(t=>t(e))}onClear(e){return this.clearListeners.add(e),()=>this.clearListeners.delete(e)}hasPendingJobs(e){let t=this.contexts.get(e);return!!t&&t.jobs.size>0}clearJob(e,t){let n=this.contexts.get(e);n&&(n.jobs.delete(t),n.dependencies.delete(t),n.completed.delete(t),n.queue=n.queue.filter(e=>e!==t),n.jobs.size===0&&this.contexts.delete(e))}},jx=[],Mx=[],Nx=0;function Px(e,t){switch(`${e.type}-${t.type}`){case`insert-update`:return{...e,type:`insert`,original:{},modified:t.modified,changes:{...e.changes,...t.changes},key:e.key,globalKey:e.globalKey,metadata:t.metadata??e.metadata,syncMetadata:{...e.syncMetadata,...t.syncMetadata},mutationId:t.mutationId,updatedAt:t.updatedAt};case`insert-delete`:return null;case`update-delete`:return t;case`update-update`:return{...t,original:e.original,changes:{...e.changes,...t.changes},metadata:t.metadata??e.metadata,syncMetadata:{...e.syncMetadata,...t.syncMetadata}};case`delete-delete`:case`insert-insert`:return t;default:{let n=`${e.type}-${t.type}`;throw Error(`Unhandled mutation combination: ${n}`)}}}function Fx(e){let t=new Bx(e);return jx.push(t),t}function Ix(){if(Mx.length>0)return Mx.slice(-1)[0]}function Lx(e){Ax.clear(e.id),Mx.push(e)}function Rx(e){try{Ax.flush(e.id)}finally{Mx=Mx.filter(t=>t.id!==e.id)}}function zx(e){let t=jx.findIndex(t=>t.id===e.id);t!==-1&&jx.splice(t,1)}var Bx=class{constructor(e){if(e.mutationFn===void 0)throw new Nh;this.id=e.id??crypto.randomUUID(),this.mutationFn=e.mutationFn,this.state=`pending`,this.mutations=[],this.isPersisted=Ox(),this.autoCommit=e.autoCommit??!0,this.createdAt=new Date,this.sequenceNumber=Nx++,this.metadata=e.metadata??{}}setState(e){this.state=e,(e===`completed`||e===`failed`)&&zx(this)}mutate(e){if(this.state!==`pending`)throw new Fh;Lx(this);try{e()}finally{Rx(this)}return this.autoCommit&&this.commit().catch(()=>{}),this}applyMutations(e){for(let t of e){let e=this.mutations.findIndex(e=>e.globalKey===t.globalKey);if(e>=0){let n=this.mutations[e],r=Px(n,t);r===null?this.mutations.splice(e,1):this.mutations[e]=r}else this.mutations.push(t)}}rollback(e){let t=e?.isSecondaryRollback??!1;if(this.state===`completed`)throw new Ih;if(this.setState(`failed`),!t){let e=new Set;this.mutations.forEach(t=>e.add(t.globalKey));for(let t of jx)t.state===`pending`&&t.mutations.some(t=>e.has(t.globalKey))&&t.rollback({isSecondaryRollback:!0})}return this.isPersisted.reject(this.error?.error),this.touchCollection(),this}touchCollection(){let e=new Set;for(let t of this.mutations)e.has(t.collection.id)||(t.collection._state.onTransactionStateChange(),t.collection._state.pendingSyncedTransactions.length>0&&t.collection._state.commitPendingTransactions(),e.add(t.collection.id))}async commit(){if(this.state!==`pending`)throw new Lh;if(this.setState(`persisting`),this.mutations.length===0)return this.setState(`completed`),this.isPersisted.resolve(this),this;try{await this.mutationFn({transaction:this}),this.setState(`completed`),this.touchCollection(),this.isPersisted.resolve(this)}catch(e){let t=e instanceof Error?e:Error(String(e));throw this.error={message:t.message,error:t},this.rollback(),t}return this}compareCreatedAt(e){let t=this.createdAt.getTime()-e.createdAt.getTime();return t===0?this.sequenceNumber-e.sequenceNumber:t}},Vx=class{constructor(e,t){this.insert=(e,t)=>{this.lifecycle.validateCollectionUsable(`insert`);let n=this.state,r=Ix();if(!r&&!this.config.onInsert)throw new kh;let i=Array.isArray(e)?e:[e],a=[],o=new Set;
37if(i.forEach(e=>{let n=this.validateData(e,`insert`),r=this.config.getKey(n);if(this.state.has(r)||o.has(r))throw new bh(r);o.add(r);let i=this.generateGlobalKey(r,e),s={mutationId:crypto.randomUUID(),original:{},modified:n,changes:Object.fromEntries(Object.keys(e).map(e=>[e,n[e]])),globalKey:i,key:r,metadata:t?.metadata,syncMetadata:this.config.sync.getSyncMetadata?.()||{},optimistic:t?.optimistic??!0,type:`insert`,createdAt:new Date,updatedAt:new Date,collection:this.collection};a.push(s)}),r)return r.applyMutations(a),n.transactions.set(r.id,r),n.scheduleTransactionCleanup(r),n.recomputeOptimisticState(!0),r;{let e=Fx({metadata:{[Eb]:!0},mutationFn:async e=>await this.config.onInsert({transaction:e.transaction,collection:this.collection})});return e.applyMutations(a),this.markPendingLocalOrigins(a),e.commit().catch(()=>void 0),n.transactions.set(e.id,e),n.scheduleTransactionCleanup(e),n.recomputeOptimisticState(!0),e}},this.delete=(e,t)=>{let n=this.state;this.lifecycle.validateCollectionUsable(`delete`);let r=Ix();if(!r&&!this.config.onDelete)throw new jh;if(Array.isArray(e)&&e.length===0)throw new Eh;let i=Array.isArray(e)?e:[e],a=[];for(let e of i){if(!this.state.has(e))throw new Dh(e);let r=this.generateGlobalKey(e,this.state.get(e)),i={mutationId:crypto.randomUUID(),original:this.state.get(e),modified:this.state.get(e),changes:this.state.get(e),globalKey:r,key:e,metadata:t?.metadata,syncMetadata:n.syncedMetadata.get(e)||{},optimistic:t?.optimistic??!0,type:`delete`,createdAt:new Date,updatedAt:new Date,collection:this.collection};a.push(i)}if(r)return r.applyMutations(a),n.transactions.set(r.id,r),n.scheduleTransactionCleanup(r),n.recomputeOptimisticState(!0),r;let o=Fx({autoCommit:!0,metadata:{[Eb]:!0},mutationFn:async e=>this.config.onDelete({transaction:e.transaction,collection:this.collection})});return o.applyMutations(a),this.markPendingLocalOrigins(a),o.commit().catch(()=>void 0),n.transactions.set(o.id,o),n.scheduleTransactionCleanup(o),n.recomputeOptimisticState(!0),o},this.id=t,this.config=e}setDeps(e){this.lifecycle=e.lifecycle,this.state=e.state,this.collection=e.collection}ensureStandardSchema(e){if(e&&`~standard`in e)return e;throw new uh}validateData(e,t,n){if(!this.config.schema)return e;let r=this.ensureStandardSchema(this.config.schema);if(t===`update`&&n){let i=this.state.get(n);if(i&&e&&typeof e==`object`&&typeof i==`object`){let n=Object.assign({},i,e),a=r[`~standard`].validate(n);if(a instanceof Promise)throw new dh;if(`issues`in a&&a.issues)throw new oh(t,a.issues.map(e=>({message:e.message,path:e.path?.map(e=>String(e))})));let o=a.value;return Object.fromEntries(Object.keys(e).map(e=>[e,o[e]]))}}let i=r[`~standard`].validate(e);if(i instanceof Promise)throw new dh;if(`issues`in i&&i.issues)throw new oh(t,i.issues.map(e=>({message:e.message,path:e.path?.map(e=>String(e))})));return i.value}generateGlobalKey(e,t){if(typeof e!=`string`&&typeof e!=`number`)throw e===void 0?new vh(t):new yh(e,t);return`KEY::${this.id}/${e}`}markPendingLocalOrigins(e){for(let t of e)this.state.pendingLocalOrigins.add(t.key)}update(e,t,n){if(e===void 0)throw new Sh;let r=this.state;this.lifecycle.validateCollectionUsable(`update`);let i=Ix();if(!i&&!this.config.onUpdate)throw new Ah;let a=Array.isArray(e),o=a?e:[e];if(a&&o.length===0)throw new Ch;let s=typeof t==`function`?t:n,c=typeof t==`function`?{}:t,l=o.map(e=>{let t=this.state.get(e);if(!t)throw new wh(e);return t}),u;u=a?Dx(l,s):[Ex(l[0],s)];let d=o.map((e,t)=>{let n=u[t];if(!n||Object.keys(n).length===0)return null;let i=l[t],a=this.validateData(n,`update`,e),o=Object.assign({},i,a),s=this.config.getKey(i),d=this.config.getKey(o);if(s!==d)throw new Th(s,d);let f=this.generateGlobalKey(d,o);return{mutationId:crypto.randomUUID(),original:i,modified:o,changes:Object.fromEntries(Object.keys(n).map(e=>[e,o[e]])),globalKey:f,key:e,metadata:c.metadata,syncMetadata:r.syncedMetadata.get(e)||{},optimistic:c.optimistic??!0,type:`update`,createdAt:new Date,updatedAt:new Date,collection:this.collection}}).filter(Boolean);if(d.length===0){let e=Fx({mutationFn:async()=>{}});return e.commit().catch(()=>void 0),r.scheduleTransactionCleanup(e),e}if(i)return i.applyMutations(d),r.transactions.set(i.id,i),r.scheduleTransactionCleanup(i),r.recomputeOptimisticState(!0),i;let f=Fx({metadata:{[Eb]:!0},mutationFn:async e=>this.config.onUpdate({transaction:e.transaction,collection:this.collection})});return f.applyMutations(d),this.markPendingLocalOrigins(d),f.commit().catch(()=>void 0),r.transactions.set(f.id,f),r.scheduleTransactionCleanup(f),r.recomputeOptimisticState(!0),f}}
37,Hx=class extends Hb{constructor(){super()}setDeps(e){this.collection=e.collection}emit(e,t){this.emitInner(e,t)}emitStatusChange(e,t){this.emit(`status:change`,{type:`status:change`,collection:this.collection,previousStatus:t,status:e});let n=`status:${e}`;this.emit(n,{type:n,collection:this.collection,previousStatus:t,status:e})}emitSubscribersChange(e,t){this.emit(`subscribers:change`,{type:`subscribers:change`,collection:this.collection,previousSubscriberCount:t,subscriberCount:e})}emitIndexAdded(e){this.emit(`index:added`,{type:`index:added`,collection:this.collection,index:e})}emitIndexRemoved(e){this.emit(`index:removed`,{type:`index:removed`,collection:this.collection,index:e})}cleanup(){this.clearListeners()}};function Ux(e){let t=new Wx(e);return e.utils?t.utils=e.utils:t.utils={},t}var Wx=class{constructor(e){if(this.utils={},this.deferDataRefresh=null,this.insert=(e,t)=>this._mutations.insert(e,t),this.delete=(e,t)=>this._mutations.delete(e,t),!e)throw new ch;if(!e.sync)throw new lh;if(e.id?this.id=e.id:this.id=crypto.randomUUID(),this.config={...e,autoIndex:e.autoIndex??`off`},this.config.autoIndex===`eager`&&!e.defaultIndexType)throw new sh(`autoIndex: 'eager' requires defaultIndexType to be set. Import an index type and set it: 38 import { BasicIndex } from '@tanstack/db' 39 createCollection({ defaultIndexType: BasicIndex, autoIndex: 'eager', ... })`);this._changes=new Gb,this._events=new Hx,this._indexes=new ux,this._lifecycle=new Qb(e,this.id),this._mutations=new Vx(e,this.id),this._state=new Db(e),this._sync=new ex(e,this.id),this.comparisonOpts=Gx(e),this._changes.setDeps({collection:this,lifecycle:this._lifecycle,sync:this._sync,events:this._events,state:this._state}),this._events.setDeps({collection:this}),this._indexes.setDeps({state:this._state,lifecycle:this._lifecycle,defaultIndexType:e.defaultIndexType,events:this._events}),this._lifecycle.setDeps({changes:this._changes,events:this._events,indexes:this._indexes,state:this._state,sync:this._sync}),this._mutations.setDeps({collection:this,lifecycle:this._lifecycle,state:this._state}),this._state.setDeps({collection:this,lifecycle:this._lifecycle,changes:this._changes,indexes:this._indexes,events:this._events}),this._sync.setDeps({collection:this,state:this._state,lifecycle:this._lifecycle,events:this._events}),e.startSync===!0&&this._sync.startSync()}get status(){return this._lifecycle.status}get subscriberCount(){return this._changes.activeSubscribersCount}onFirstReady(e){return this._lifecycle.onFirstReady(e)}isReady(){return this._lifecycle.status===`ready`}get isLoadingSubset(){return this._sync.isLoadingSubset}startSyncImmediate(){this._sync.startSync()}preload(){return this._sync.preload()}get(e){return this._state.getWithVirtualProps(e)}has(e){return this._state.has(e)}get size(){return this._state.size}*keys(){yield*this._state.keys()}*values(){for(let e of this._state.keys()){let t=this.get(e);t!==void 0&&(yield t)}}*entries(){for(let e of this._state.keys()){let t=this.get(e);t!==void 0&&(yield[e,t])}}*[Symbol.iterator](){yield*this.entries()}forEach(e){let t=0;for(let[n,r]of this.entries())e(r,n,t++)}map(e){let t=[],n=0;for(let[r,i]of this.entries())t.push(e(i,r,n++));return t}getKeyFromItem(e){return this.config.getKey(e)}createIndex(e,t={}){return this._indexes.createIndex(e,t)}removeIndex(e){return this._indexes.removeIndex(e)}getIndexMetadata(){return this._indexes.getIndexMetadataSnapshot()}get indexes(){return this._indexes.indexes}validateData(e,t,n){return this._mutations.validateData(e,t,n)}get compareOptions(){return{...this.comparisonOpts}}update(e,t,n){return this._mutations.update(e,t,n)}get state(){let e=new Map;for(let[t,n]of this.entries())e.set(t,n);return e}stateWhenReady(){return this.size>0||this.isReady()?Promise.resolve(this.state):this.preload().then(()=>this.state)}get toArray(){return Array.from(this.values())}toArrayWhenReady(){return this.size>0||this.isReady()?Promise.resolve(this.toArray):this.preload().then(()=>this.toArray)}currentStateAsChanges(e={}){return bb(this,e)}subscribeChanges(e,t={}){return this._changes.subscribeChanges(e,t)}on(e,t){return this._events.on(e,t)}once(e,t){return this._events.once(e,t)}off(e,t){this._events.off(e,t)}waitFor(e,t){return this._events.waitFor(e,t)}async cleanup(){return this._lifecycle.cleanup(),Promise.resolve()}};function Gx(e){if(e.defaultStringCollation){let t=e.defaultStringCollation;return{stringSort:t.stringSort??`locale`,locale:t.stringSort===`locale`?t.locale:void 0,localeOptions:t.stringSort===`locale`?t.localeOptions:void 0}}else return{stringSort:`locale`}}function Kx(e,t,n){try{e.stringify(t)}catch(e){throw new Cg(n,e instanceof Error?e.message:String(e))}}function qx(){return crypto.randomUUID()}function Jx(e){return typeof e==`number`?`n:${e}`:`s:${e}`}function Yx(e){return e.startsWith(`n:`)?Number(e.slice(2)):e.startsWith(`s:`)?e.slice(2):e}function Xx(){let e=new Map;return{getItem(t){return e.get(t)??null},setItem(t,n){e.set(t,n)},removeItem(t){e.delete(t)}}}function Zx(){return{addEventListener:()=>{},removeEventListener:()=>{}}}function Qx(e){if(!e.storageKey)throw new Tg;let t=e.storage||(typeof window<`u`?window.localStorage:null)||Xx(),n=e.storageEventApi||(typeof window<`u`?window:null)||Zx(),r=e.parser||JSON,i=new Map,a=eS(e.storageKey,t,n,r,e.getKey,i),o=n=>{try{let i={};
39n.forEach((e,t)=>{i[Jx(t)]=e});let a=r.stringify(i);t.setItem(e.storageKey,a)}catch(t){throw console.error(`[LocalStorageCollection] Error saving data to storage key "${e.storageKey}":`,t),t}},s=()=>{t.removeItem(e.storageKey)},c=()=>{let n=t.getItem(e.storageKey);return n?new Blob([n]).size:0},l=async t=>{t.transaction.mutations.forEach(e=>{Kx(r,e.modified,`insert`)});let n={};return e.onInsert&&(n=await e.onInsert(t)??{}),t.transaction.mutations.forEach(e=>{let t={versionKey:qx(),data:e.modified};i.set(e.key,t)}),o(i),a.confirmOperationsSync(t.transaction.mutations),n},u=async t=>{t.transaction.mutations.forEach(e=>{Kx(r,e.modified,`update`)});let n={};return e.onUpdate&&(n=await e.onUpdate(t)??{}),t.transaction.mutations.forEach(e=>{let t={versionKey:qx(),data:e.modified};i.set(e.key,t)}),o(i),a.confirmOperationsSync(t.transaction.mutations),n},d=async t=>{let n={};return e.onDelete&&(n=await e.onDelete(t)??{}),t.transaction.mutations.forEach(e=>{i.delete(e.key)}),o(i),a.confirmOperationsSync(t.transaction.mutations),n},{storageKey:f,storage:p,storageEventApi:m,onInsert:h,onUpdate:g,onDelete:_,id:v,...y}=e,b=v??`local-collection:${e.storageKey}`,x=e=>{let t=e.mutations.filter(e=>a.collection&&e.collection===a.collection?!0:e.collection.id===b);if(t.length!==0){for(let e of t)switch(e.type){case`insert`:case`update`:Kx(r,e.modified,e.type);break;case`delete`:Kx(r,e.original,e.type);break}for(let e of t)switch(e.type){case`insert`:case`update`:{let t={versionKey:qx(),data:e.modified};i.set(e.key,t);break}case`delete`:i.delete(e.key);break}o(i),a.confirmOperationsSync(t)}};return{...y,id:b,sync:a,onInsert:l,onUpdate:u,onDelete:d,utils:{clearStorage:s,getStorageSize:c,acceptMutations:x}}}function $x(e,t,n){try{let r=t.getItem(e);if(!r)return new Map;let i=n.parse(r),a=new Map;if(typeof i==`object`&&i&&!Array.isArray(i))Object.entries(i).forEach(([t,n])=>{if(n&&typeof n==`object`&&`versionKey`in n&&`data`in n){let e=n,r=Yx(t);a.set(r,e)}else throw new Eg(e,t)});else throw new Dg(e);return a}catch(t){return console.warn(`[LocalStorageCollection] Error loading data from storage key "${e}":`,t),new Map}}function eS(e,t,n,r,i,a){let o=null,s=null,c=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=t.get(r);i?e.versionKey!==i.versionKey&&n.push({type:`update`,key:r,value:i.data}):n.push({type:`delete`,key:r,value:e.data})}),t.forEach((t,r)=>{e.has(r)||n.push({type:`insert`,key:r,value:t.data})}),n},l=()=>{if(!o)return;let{begin:n,write:i,commit:s}=o,l=$x(e,t,r),u=c(a,l);u.length>0&&(n(),u.forEach(({type:e,value:t})=>{t&&(Kx(r,t,e),i({type:e,value:t}))}),s(),a.clear(),l.forEach((e,t)=>{a.set(t,e)}))},u={sync:i=>{let{begin:c,write:u,commit:d,markReady:f}=i;o=i,s=i.collection;let p=$x(e,t,r);p.size>0&&(c(),p.forEach(e=>{Kx(r,e.data,`load`),u({type:`insert`,value:e.data})}),d()),a.clear(),p.forEach((e,t)=>{a.set(t,e)}),f(),n.addEventListener(`storage`,n=>{n.key!==e||n.storageArea!==t||l()})},getSyncMetadata:()=>({storageKey:e,storageType:t===(typeof window<`u`?window.localStorage:null)?`localStorage`:`custom`}),manualTrigger:l,collection:s},d=e=>{if(!o)return;let{begin:t,write:n,commit:r}=o;t(),e.forEach(e=>{n({type:e.type,value:e.type===`delete`?e.original:e.modified})}),r()};return{...u,confirmOperationsSync:d}}var tS=new Set;function nS(e){e.utils?.clearStorage?.(),e.cleanup()}var rS=(e=>{let t=Ux(e);return tS.add(()=>nS(t)),t});function iS(){for(let e of tS)e()}function aS(e){return e.viewId?`filters:view:${e.viewId}`:e.archived?`filters:archive`:e.tagId?`filters:tag:${e.tagId}`:e.groupId?`filters:group:${e.groupId}`:`filters:${oS}`}var oS=`all-contacts`,sS=`tabs`,cS=`sidebar`,lS=`appearance`,uS=`network`,dS=`dex:preferences`;function fS(e){return`s:${e}`}var pS=null;function mS(){return pS??=hS(),pS}function hS(){return rS(Qx({storageKey:dS,getKey:e=>e.scope}))}var gS=`dark`,_S=`dex:theme`,vS=`(prefers-color-scheme: dark)`,yS=`system`;function bS(e){return e===`light`||e===`dark`||e===`system`}function xS(){try{let e=mS().get(lS)?.theme;return bS(e)?e:yS}catch{return yS}}async function SS(e){let t=mS();await(t.has(`appearance`)?t.update(lS,t=>{t.theme=e}):t.insert({scope:lS,theme:e})).isPersisted.promise}function CS(){let e;try{e=window.localStorage.getItem(_S)}catch{return}if(e!==null){try{window.localStorage.removeItem(_S)}catch{}bS(e)&&mS().get(`appearance`)?.theme===void 0&&SS(e).catch(()=>{})}}function wS(){try{return window.matchMedia(vS).matches}catch{return!1}}function TS(e,t){return e===`system`?t?`dark`:`light`:e}var ES=[`light`,`dark`,`system`];function DS(e){return ES[(ES.indexOf(e)+1)%ES.length]??ES[0]}var OS={preference:`system`,resolved:`light`,hydrated:!1},kS=OS,AS=new Set,jS=!1;function MS(){for(let e of AS)e()}function NS(e){let t=e??xS(),n=TS(t,wS());kS.hydrated&&kS.preference===t&&kS.resolved===n||(kS={preference:t,resolved:n,hydrated:!0},MS())}function PS(){if(!(jS||typeof window>`u`)){jS=!0;try{let e=mS();e.startSyncImmediate(),CS(),e.subscribeChanges(()=>NS())}catch{}NS();try{let e=window.matchMedia(vS),t=()=>NS(kS.preference);typeof e.addEventListener==`function`?e.addEventListener(`change`,t):typeof e.addListener==`function`&&e.addListener(t)}catch{}}}function FS(e){return PS(),AS.add(e),()=>AS.delete(e)}function IS(){return PS(),kS}function LS(){return OS}function RS(e){NS(e),SS(e).catch(()=>{NS(e)})}function zS(){return(0,H.useSyncExternalStore)(FS,IS,LS)}function BS(e){typeof document>`u`||document.documentElement.classList.toggle(gS,e===`dark`)}var VS=`(function(){try{ 40var p=window.location.pathname.toLowerCase(); 41if(!(p==='/app'||p.indexOf('/app/')===0))return; 42if(p==='/app/auth'||p.indexOf('/app/auth/')===0)return; 43var s=null;try{ 44var r=window.localStorage.getItem('${dS}'); 45var v=r?JSON.parse(r)['${fS(lS)}']:null; 46s=v&&v.data?v.data.theme:window.localStorage.getItem('${_S}'); 47}catch(e){} 48var d=s==='dark'||(s!=='light'&&window.matchMedia('${vS}').matches); 49if(d)document.documentElement.classList.add('${gS}'); 50}catch(e){}})();`,HS=`/assets/styles-CJ-yDyQk.css`,US=ce()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Dex`}],links:[{rel:`preload`,href:`/fonts/dm-sans-normal-latin.woff2`,as:`font`,type:`font/woff2`,crossOrigin:`anonymous`},{rel:`preload`,href:`/fonts/cormorant-normal-latin.woff2`,as:`font`,type:`font/woff2`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:HS}
50,{rel:`icon`,href:`/favicon.png`,type:`image/png`}]}),shellComponent:WS});function WS(e){let t=(0,q.c)(9),{children:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsxs)(`head`,{children:[(0,U.jsx)(`script`,{dangerouslySetInnerHTML:{__html:Kf}}),(0,U.jsx)(`script`,{dangerouslySetInnerHTML:{__html:ke}}),(0,U.jsx)(`script`,{dangerouslySetInnerHTML:{__html:VS}}),(0,U.jsx)(tu,{})]}),i=(0,U.jsx)(GS,{}),a=(0,U.jsx)(YS,{}),t[0]=r,t[1]=i,t[2]=a):(r=t[0],i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=(0,U.jsx)(Im,{children:(0,U.jsx)(ZS,{children:n})}),t[3]=n,t[4]=o);let s,c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,U.jsx)(up,{}),c=(0,U.jsx)(nu,{}),t[5]=s,t[6]=c):(s=t[5],c=t[6]);let l;return t[7]===o?l=t[8]:(l=(0,U.jsxs)(`html`,{lang:`en`,suppressHydrationWarning:!0,children:[r,(0,U.jsxs)(`body`,{children:[i,a,o,s,c]})]}),t[7]=o,t[8]=l),l}function GS(){let e=(0,q.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:KS},e[0]=t):t=e[0];let n=Xl(t),{resolved:r,hydrated:i}=zS(),a,o;return e[1]!==i||e[2]!==r||e[3]!==n?(a=()=>{if(!i)return;let e=n?r:null;BS(e),Se()?.setTitleBarTheme?.(e??`light`)},o=[n,r,i],e[1]=i,e[2]=r,e[3]=n,e[4]=a,e[5]=o):(a=e[4],o=e[5]),JS(a,o),null}function KS(e){return ih(e.matches.map(qS))}function qS(e){return e.routeId}var JS=typeof window>`u`?H.useEffect:H.useLayoutEffect;function YS(){let e=(0,q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,H.useEffect)(XS,t),null}function XS(){Wm()}function ZS(e){let t=(0,q.c)(9),{children:n}=e,r;if(t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:QS},t[0]=r):r=t[0],Xl(r)){let e;return t[1]===n?e=t[2]:(e=(0,U.jsx)(U.Fragment,{children:n}),t[1]=n,t[2]=e),e}let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(wm,{}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,U.jsx)(`main`,{children:n}),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,U.jsx)(Lp,{}),t[6]=o):o=t[6];let s;return t[7]===a?s=t[8]:(s=(0,U.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[i,a,o]}),t[7]=a,t[8]=s),s}function QS(e){return e.matches.some($S)}function $S(e){return qm(e.routeId)}function eC(e){let t=e.startsWith(`/`)?e:`/${e}`;return`${jt}${t.endsWith(`/`)?t:`${t}/`}`}function tC(e){return`${e} | Dex`}function J(e,t={}){let n=tC(e),r=t.ogImage??Mt,i=t.ogImageAlt??(t.ogImage?void 0:`Dex personal CRM â Build Stronger Relationships. A contact list beside a contact profile with a suggested follow-up message, plus Gmail, Outlook, LinkedIn, Facebook, and Instagram integration icons.`),a=[{title:n},{property:`og:site_name`,content:`Dex`},{property:`og:type`,content:`website`},{property:`og:title`,content:n},{property:`og:image`,content:r},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:n},{name:`twitter:image`,content:r}];i&&a.push({property:`og:image:alt`,content:i},{name:`twitter:image:alt`,content:i});let o=[];if(t.description&&(a.push({name:`description`,content:t.description}),a.push({property:`og:description`,content:t.description}),a.push({name:`twitter:description`,content:t.description})),t.canonicalPath){let e=eC(t.canonicalPath);a.push({property:`og:url`,content:e}),o.push({rel:`canonical`,href:e})}return t.markdownPath&&o.push({rel:`alternate`,type:`text/markdown`,href:`${jt}${t.markdownPath}`,title:`Markdown`}),t.noindex&&a.push({name:`robots`,content:`noindex`}),t.jsonLd&&a.push({"script:ld+json":t.jsonLd}),o.length?{meta:a,links:o}:{meta:a}}var nC=`${jt}/#organization`,rC=`${jt}/#website`,iC=`${jt}/#software`,aC={"@id":nC},oC={"@type":`Organization`,"@id":nC,name:`Dex`,legalName:`Dana HQ Inc.`,url:jt,logo:`${jt}/dex_extension_logo_sq.svg`,description:`Dex is a personal CRM that helps you consolidate, organize, and nurture your relationships.`,foundingDate:`2019`,email:`[email protected]`,sameAs:[`https://www.crunchbase.com/organization/dex-0c0e`,`https://github.com/getdex`,gt,ht,Pt.chromeWebStore,`https://chatgpt.com/apps/dex/asdk_app_69a79848c5708191b157a64ff93bc799`,`https://zapier.com/apps/dex`,`https://skills.sh/getdex/agent-skills/dex-skill`],contactPoint:{"@type":`ContactPoint`,contactType:`customer support`,email:`[email protected]`,availableLanguage:`English`},hasCertification:Gt.map(e=>({"@type":`Certification`,name:e}))};function sC(e){let t=e.startsWith(`/`)?e:`/${e}`;return`${jt}${t.endsWith(`/`)?t:`${t}/`}`}function cC(e){return e.toFixed(2)}var lC={annual:`Annual billing`,quarterly:`Quarterly billing`,monthly:`Monthly billing`};function uC(e){return{"@type":`Offer`,"@id":`${jt}/pricing/#${e.slug}`,name:`Dex ${e.name}`,description:e.summary,url:sC(`/pricing`),category:`subscription`,price:cC(e.prices.annual),priceCurrency:`USD`,availability:`https://schema.org/InStock`,seller:aC,priceSpecification:Object.keys(lC).map(t=>({"@type":`UnitPriceSpecification`,name:lC[t],price:cC(e.prices[t]),priceCurrency:`USD`,referenceQuantity:{"@type":`QuantitativeValue`,value:1,unitCode:`MON`}}))}}function dC(){return Bt.map(uC)}function fC(){return`${Vt.map(e=>e.prices===null?`${e.name} is sales-assisted â ${e.summary} Talk to us at ${Ht}.`:`${e.name}
50 starts at $${e.prices.annual}/month (annual billing) â ${e.summary}`).join(` `)} Premium and Professional include a 7-day free trial.`}function pC(e){return e.replace(/\[([^\]]+)\]\(([^()\s]+)\)/g,(e,t,n)=>`<a href="${n.startsWith(`/`)?sC(n):n}">${t}</a>`)}function mC(e,t){return{"@type":`FAQPage`,"@id":t,mainEntity:e.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:pC(e.answer)}}))}}function hC(e){return{"@type":`BreadcrumbList`,itemListElement:[{name:`Home`,path:`/`},...e].map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:sC(e.path)}))}}var gC={blog:{name:`Blog`,path:`/blog`},guides:{name:`Guides`,path:`/guides`}};function _C(e){return vC([hC([gC[e.section],{name:e.title,path:e.path}])])}function vC(e){return{"@context":`https://schema.org`,"@graph":e.filter(Boolean)}}function yC(e){return{"@type":`SoftwareApplication`,"@id":e.id??iC,name:e.name??`Dex`,applicationCategory:e.category??`BusinessApplication`,operatingSystem:e.operatingSystem,description:e.description,url:e.url,...e.downloadUrl?{downloadUrl:e.downloadUrl}:{},publisher:aC,offers:dC()}}function bC(e,t){return{"@type":`ItemList`,"@id":e,numberOfItems:t.length,itemListElement:t.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,url:sC(e.path),...e.description?{description:e.description}:{}}))}}function xC(e){let t=sC(e.path);return{"@type":e.type??`WebPage`,"@id":`${t}#webpage`,url:t,name:e.name,description:e.description,isPartOf:{"@id":rC},publisher:aC,inLanguage:`en`}}var SC=`${jt}/pricing/#faq`;function CC(){return vC([xC({path:`/pricing`,name:`Dex pricing`,description:`Compare Dex Premium, Professional, and Enterprise plans for personal relationship management, contact sync, reminders, and integrations.`}),{"@type":`Product`,"@id":`${jt}/pricing/#product`,name:`Dex Personal CRM`,description:`A personal CRM that consolidates your contacts from LinkedIn, email, calendar, WhatsApp and more, with keep-in-touch reminders, notes and a unified timeline.`,url:sC(`/pricing`),brand:aC,offers:dC()},mC(Ut,SC),hC([{name:`Pricing`,path:`/pricing`}])])}z();var wC=()=>B(()=>import(`./testimonials-BgmKmI5T.js`),__vite__mapDeps([3,4,1,5,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),TC=`Read how founders, investors, consultants, and job seekers use Dex to stay close to the people who matter to them.`,EC=G(`/testimonials`)({head:()=>J(`Testimonials`,{description:TC,canonicalPath:`/testimonials`,markdownPath:`/testimonials.md`,jsonLd:vC([xC({path:`/testimonials`,name:`Dex testimonials`,description:TC}),hC([{name:`Testimonials`,path:`/testimonials`}])])}),component:K(wC,`component`)});z();var DC=G(`/termsofservice`)({head:()=>J(`Terms of Service`,{description:`Read the Dex terms of service for account, subscription, acceptable use, and legal terms.`,canonicalPath:`/termsofservice`}),component:K(()=>B(()=>import(`./termsofservice-q0qw1kAl.js`),__vite__mapDeps([20,4,1,5,2,21,17,9,12,13,16])),`component`)});z();var OC=()=>B(()=>import(`./support-T7iIdOqX.js`),__vite__mapDeps([22,23,1,2,24,25,4,26,27,5,6,7,8,9,10,11,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,17,12,13,16,51,52,53,54,55,56,57,58])),kC=`Get help with Dex. Contact our support team, browse guides, and find answers to common questions about your personal CRM.`,AC=G(`/support`)({head:()=>J(`Support`,{description:kC,canonicalPath:`/support`,markdownPath:`/support.md`,jsonLd:vC([{...xC({path:`/support`,name:`Dex support`,description:kC,type:`ContactPage`}),mainEntity:{"@type":`ContactPoint`,contactType:`customer support`,email:Nt,availableLanguage:`English`}},hC([{name:`Support`,path:`/support`}])])}),component:K(OC,`component`)}),jC={student:{offer:`student`,percentOff:50,durationLabel:`1 year`,maxSavingsUsd:204},mba:{offer:`mba`,percentOff:50,durationLabel:`2 years`,maxSavingsUsd:408}},MC=[{slug:`hbs`,abbreviation:`HBS`,name:`Harvard Business School`,university:`Harvard University`,location:`Boston, Massachusetts`,emailDomains:[`hbs.edu`],displayDomain:`@hbs.edu`},{slug:`gsb`,abbreviation:`GSB`,name:`Stanford Graduate School of Business`,university:`Stanford University`,location:`Stanford, California`,emailDomains:[`stanford.edu`],displayDomain:`@stanford.edu`},{slug:`wharton`,abbreviation:`Wharton`,name:`The Wharton School`,university:`University of Pennsylvania`,location:`Philadelphia, Pennsylvania`,emailDomains:[`wharton.upenn.edu`],displayDomain:`@wharton.upenn.edu`},{slug:`kellogg`,abbreviation:`Kellogg`,name:`Kellogg School of Management`,university:`Northwestern University`,location:`Evanston, Illinois`,emailDomains:[`kellogg.northwestern.edu`],displayDomain:`@kellogg.northwestern.edu`},{slug:`booth`,abbreviation:`Booth`,name:`Chicago Booth School of Business`,university:`University of Chicago`,location:`Chicago, Illinois`,emailDomains:[`chicagobooth.edu`],displayDomain:`@chicagobooth.edu`}
50,{slug:`columbia`,abbreviation:`CBS`,name:`Columbia Business School`,university:`Columbia University`,location:`New York City, New York`,emailDomains:[`gsb.columbia.edu`],displayDomain:`@gsb.columbia.edu`},{slug:`mit-sloan`,abbreviation:`MIT Sloan`,name:`MIT Sloan School of Management`,university:`Massachusetts Institute of Technology`,location:`Cambridge, Massachusetts`,emailDomains:[`mit.edu`],displayDomain:`@mit.edu`},{slug:`haas`,abbreviation:`Haas`,name:`Berkeley Haas School of Business`,university:`University of California, Berkeley`,location:`Berkeley, California`,emailDomains:[`berkeley.edu`],displayDomain:`@berkeley.edu`},{slug:`stern`,abbreviation:`Stern`,name:`NYU Stern School of Business`,university:`New York University`,location:`New York City, New York`,emailDomains:[`stern.nyu.edu`],displayDomain:`@stern.nyu.edu`},{slug:`tuck`,abbreviation:`Tuck`,name:`Tuck School of Business`,university:`Dartmouth College`,location:`Hanover, New Hampshire`,emailDomains:[`dartmouth.edu`],displayDomain:`@dartmouth.edu`},{slug:`johnson`,abbreviation:`Johnson`,name:`Samuel Curtis Johnson Graduate School of Management`,university:`Cornell University`,location:`Ithaca, New York`,emailDomains:[`cornell.edu`],displayDomain:`@cornell.edu`},{slug:`ross`,abbreviation:`Ross`,name:`Ross School of Business`,university:`University of Michigan`,location:`Ann Arbor, Michigan`,emailDomains:[`umich.edu`],displayDomain:`@umich.edu`},{slug:`yale-som`,abbreviation:`Yale SOM`,name:`Yale School of Management`,university:`Yale University`,location:`New Haven, Connecticut`,emailDomains:[`yale.edu`],displayDomain:`@yale.edu`},{slug:`darden`,abbreviation:`Darden`,name:`Darden School of Business`,university:`University of Virginia`,location:`Charlottesville, Virginia`,emailDomains:[`virginia.edu`,`darden.virginia.edu`],displayDomain:`@virginia.edu`},{slug:`fuqua`,abbreviation:`Fuqua`,name:`Fuqua School of Business`,university:`Duke University`,location:`Durham, North Carolina`,emailDomains:[`duke.edu`],displayDomain:`@duke.edu`},{slug:`kenan-flagler`,abbreviation:`Kenan-Flagler`,name:`Kenan-Flagler Business School`,university:`University of North Carolina, Chapel Hill`,location:`Chapel Hill, North Carolina`,emailDomains:[`unc.edu`],displayDomain:`@unc.edu`},{slug:`anderson`,abbreviation:`Anderson`,name:`UCLA Anderson School of Management`,university:`University of California, Los Angeles`,location:`Los Angeles, California`,emailDomains:[`ucla.edu`],displayDomain:`@ucla.edu`},{slug:`tepper`,abbreviation:`Tepper`,name:`Tepper School of Business`,university:`Carnegie Mellon University`,location:`Pittsburgh, Pennsylvania`,emailDomains:[`cmu.edu`],displayDomain:`@cmu.edu`},{slug:`mccombs`,abbreviation:`McCombs`,name:`McCombs School of Business`,university:`University of Texas at Austin`,location:`Austin, Texas`,emailDomains:[`utexas.edu`],displayDomain:`@utexas.edu`},{slug:`kelley`,abbreviation:`Kelley`,name:`Kelley School of Business`,university:`Indiana University`,location:`Bloomington, Indiana`,emailDomains:[`iu.edu`,`indiana.edu`],displayDomain:`@iu.edu`},{slug:`marshall`,abbreviation:`Marshall`,name:`Marshall School of Business`,university:`University of Southern California`,location:`Los Angeles, California`,emailDomains:[`usc.edu`],displayDomain:`@usc.edu`},{slug:`goizueta`,abbreviation:`Goizueta`,name:`Goizueta Business School`,university:`Emory University`,location:`Atlanta, Georgia`,emailDomains:[`emory.edu`],displayDomain:`@emory.edu`},{slug:`foster`,abbreviation:`Foster`,name:`Foster School of Business`,university:`University of Washington`,location:`Seattle, Washington`,emailDomains:[`uw.edu`,`washington.edu`],displayDomain:`@uw.edu`},{slug:`marriott`,abbreviation:`Marriott`,name:`Marriott School of Business`,university:`Brigham Young University`,location:`Provo, Utah`,emailDomains:[`byu.edu`],displayDomain:`@byu.edu`},{slug:`mendoza`,abbreviation:`Mendoza`,name:`Mendoza College of Business`,university:`University of Notre Dame`,location:`South Bend, Indiana`,emailDomains:[`nd.edu`],displayDomain:`@nd.edu`},{slug:`jones`,abbreviation:`Rice Jones`,name:`Jesse H. Jones Graduate School of Business`,university:`Rice University`,location:`Houston, Texas`,emailDomains:[`rice.edu`],displayDomain:`@rice.edu`},{slug:`broad`,abbreviation:`Broad`,name:`Eli Broad College of Business`,university:`Michigan State University`,location:`East Lansing, Michigan`,emailDomains:[`msu.edu`],displayDomain:`@msu.edu`},{slug:`scheller`,abbreviation:`Scheller`,name:`Scheller College of Business`,university:`Georgia Institute of Technology`,location:`Atlanta, Georgia`,emailDomains:[`gatech.edu`],displayDomain:`@gatech.edu`}
50,{slug:`olin`,abbreviation:`Olin`,name:`Olin Business School`,university:`Washington University in St. Louis`,location:`St. Louis, Missouri`,emailDomains:[`wustl.edu`],displayDomain:`@wustl.edu`},{slug:`owen`,abbreviation:`Owen`,name:`Owen Graduate School of Management`,university:`Vanderbilt University`,location:`Nashville, Tennessee`,emailDomains:[`vanderbilt.edu`],displayDomain:`@vanderbilt.edu`},{slug:`mcdonough`,abbreviation:`McDonough`,name:`McDonough School of Business`,university:`Georgetown University`,location:`Washington, D.C.`,emailDomains:[`georgetown.edu`],displayDomain:`@georgetown.edu`},{slug:`carlson`,abbreviation:`Carlson`,name:`Carlson School of Management`,university:`University of Minnesota`,location:`Minneapolis, Minnesota`,emailDomains:[`umn.edu`],displayDomain:`@umn.edu`},{slug:`mays`,abbreviation:`Mays`,name:`Mays Business School`,university:`Texas A&M University`,location:`College Station, Texas`,emailDomains:[`tamu.edu`],displayDomain:`@tamu.edu`},{slug:`smeal`,abbreviation:`Smeal`,name:`Smeal College of Business`,university:`Penn State University`,location:`University Park, Pennsylvania`,emailDomains:[`psu.edu`],displayDomain:`@psu.edu`},{slug:`wisconsin`,abbreviation:`Wisconsin`,name:`Wisconsin School of Business`,university:`University of WisconsinâMadison`,location:`Madison, Wisconsin`,emailDomains:[`wisc.edu`],displayDomain:`@wisc.edu`},{slug:`eccles`,abbreviation:`Eccles`,name:`David Eccles School of Business`,university:`University of Utah`,location:`Salt Lake City, Utah`,emailDomains:[`utah.edu`],displayDomain:`@utah.edu`},{slug:`katz`,abbreviation:`Katz`,name:`Katz Graduate School of Business`,university:`University of Pittsburgh`,location:`Pittsburgh, Pennsylvania`,emailDomains:[`pitt.edu`],displayDomain:`@pitt.edu`},{slug:`wp-carey`,abbreviation:`W. P. Carey`,name:`W. P. Carey School of Business`,university:`Arizona State University`,location:`Tempe, Arizona`,emailDomains:[`asu.edu`],displayDomain:`@asu.edu`},{slug:`questrom`,abbreviation:`Questrom`,name:`Questrom School of Business`,university:`Boston University`,location:`Boston, Massachusetts`,emailDomains:[`bu.edu`],displayDomain:`@bu.edu`},{slug:`krannert`,abbreviation:`Krannert`,name:`Krannert School of Management`,university:`Purdue University`,location:`West Lafayette, Indiana`,emailDomains:[`purdue.edu`],displayDomain:`@purdue.edu`},{slug:`fisher`,abbreviation:`Fisher`,name:`Fisher College of Business`,university:`Ohio State University`,location:`Columbus, Ohio`,emailDomains:[`osu.edu`],displayDomain:`@osu.edu`},{slug:`simon`,abbreviation:`Simon`,name:`Simon Business School`,university:`University of Rochester`,location:`Rochester, New York`,emailDomains:[`rochester.edu`],displayDomain:`@rochester.edu`},{slug:`merage`,abbreviation:`Merage`,name:`Paul Merage School of Business`,university:`University of California, Irvine`,location:`Irvine, California`,emailDomains:[`uci.edu`],displayDomain:`@uci.edu`},{slug:`mason`,abbreviation:`Mason`,name:`Raymond A. Mason School of Business`,university:`College of William & Mary`,location:`Williamsburg, Virginia`,emailDomains:[`wm.edu`],displayDomain:`@wm.edu`},{slug:`cox`,abbreviation:`Cox`,name:`Cox School of Business`,university:`Southern Methodist University`,location:`Dallas, Texas`,emailDomains:[`smu.edu`],displayDomain:`@smu.edu`},{slug:`jindal`,abbreviation:`Jindal`,name:`Naveen Jindal School of Management`,university:`University of Texas at Dallas`,location:`Richardson, Texas`,emailDomains:[`utdallas.edu`],displayDomain:`@utdallas.edu`},{slug:`smith`,abbreviation:`Smith`,name:`Robert H. Smith School of Business`,university:`University of Maryland, College Park`,location:`College Park, Maryland`,emailDomains:[`umd.edu`],displayDomain:`@umd.edu`},{slug:`terry`,abbreviation:`Terry`,name:`Terry College of Business`,university:`University of Georgia`,location:`Athens, Georgia`,emailDomains:[`uga.edu`],displayDomain:`@uga.edu`},{slug:`buffalo`,abbreviation:`UB`,name:`University at Buffalo School of Management`,university:`The State University of New York at Buffalo`,location:`Buffalo, New York`,emailDomains:[`buffalo.edu`],displayDomain:`@buffalo.edu`},{slug:`manderson`,abbreviation:`Manderson`,name:`Manderson Graduate School of Business`,university:`University of Alabama`,location:`Tuscaloosa, Alabama`,emailDomains:[`ua.edu`],displayDomain:`@ua.edu`},{slug:`crummer`,abbreviation:`Crummer`,name:`Crummer Graduate School of Business`,university:`Rollins College`,location:`Winter Park, Florida`,emailDomains:[`rollins.edu`],displayDomain:`@rollins.edu`},{slug:`weatherhead`,abbreviation:`Weatherhead`,name:`Weatherhead
50School of Management`,university:`Case Western Reserve University`,location:`Cleveland, Ohio`,emailDomains:[`case.edu`],displayDomain:`@case.edu`},{slug:`trulaske`,abbreviation:`Trulaske`,name:`Trulaske College of Business`,university:`University of Missouri`,location:`Columbia, Missouri`,emailDomains:[`missouri.edu`,`umsystem.edu`],displayDomain:`@missouri.edu`},{slug:`haslam`,abbreviation:`Haslam`,name:`Haslam College of Business`,university:`University of Tennessee`,location:`Knoxville, Tennessee`,emailDomains:[`utk.edu`,`tennessee.edu`],displayDomain:`@utk.edu`},{slug:`miami`,abbreviation:`Miami Herbert`,name:`Miami Herbert Business School`,university:`University of Miami`,location:`Coral Gables, Florida`,emailDomains:[`miami.edu`],displayDomain:`@miami.edu`},{slug:`uc-davis`,abbreviation:`UC Davis GSM`,name:`UC Davis Graduate School of Management`,university:`University of California, Davis`,location:`Davis, California`,emailDomains:[`ucdavis.edu`],displayDomain:`@ucdavis.edu`},{slug:`atkinson`,abbreviation:`Atkinson`,name:`Atkinson Graduate School of Management`,university:`Willamette University`,location:`Salem, Oregon`,emailDomains:[`willamette.edu`],displayDomain:`@willamette.edu`},{slug:`gabelli`,abbreviation:`Gabelli`,name:`Gabelli School of Business`,university:`Fordham University`,location:`New York City, New York`,emailDomains:[`fordham.edu`],displayDomain:`@fordham.edu`},{slug:`freeman`,abbreviation:`Freeman`,name:`Freeman School of Business`,university:`Tulane University`,location:`New Orleans, Louisiana`,emailDomains:[`tulane.edu`],displayDomain:`@tulane.edu`}
50,{slug:`leeds`,abbreviation:`Leeds`,name:`Leeds School of Business`,university:`University of Colorado Boulder`,location:`Boulder, Colorado`,emailDomains:[`colorado.edu`],displayDomain:`@colorado.edu`},{slug:`graziadio`,abbreviation:`Graziadio`,name:`Graziadio Business School`,university:`Pepperdine University`,location:`Malibu, California`,emailDomains:[`pepperdine.edu`],displayDomain:`@pepperdine.edu`},{slug:`hkust`,abbreviation:`HKUST`,name:`HKUST Business School`,university:`The Hong Kong University of Science and Technology`,location:`Clear Water Bay, Hong Kong`,emailDomains:[`connect.ust.hk`,`ust.hk`],displayDomain:`@connect.ust.hk`}];function NC(e){return e.trim().toLowerCase()}function PC(e,t){let n=FC(t);return n?e.emailDomains.some(e=>n===e||n.endsWith(`.${e}`)):!1}function FC(e){let t=NC(e),n=t.lastIndexOf(`@`);return n===-1||n===t.length-1?null:t.slice(n+1)}function IC(e){return MC.find(t=>PC(t,e))}var LC=[`getdex.com`];function RC(e,t){let n=FC(t);return n?LC.includes(n)?!0:e===`mba`?IC(t)!==void 0:n.endsWith(`.edu`)||IC(t)!==void 0:!1}var zC={mba:{offer:`mba`,path:`/mba`,title:`The personal CRM for business school`,heroParagraphs:[`Building your business school network is hard. Across networking events, classes, and a busy schedule, it's overwhelming to keep track of everything.`,`Your MBA network is the whole point. Dex keeps every classmate, recruiter, and alum â names, conversations, follow-ups â so it's still there after graduation.`],formLead:`Enter your school email to get ${jC.mba.percentOff}% off for ${jC.mba.durationLabel}.`,finePrint:`For students at top MBA programs · Your code arrives by email`,ineligibleError:`That email doesn't match a supported MBA program. Use your school-issued address.`,seoDescription:`50% off Dex for 2 years for MBA students. Use your school email to claim your code and keep your business-school network long after graduation.`},student:{offer:`student`,path:`/student`,title:`The personal CRM for students`,heroParagraphs:[`College introduces you to hundreds of people. Dex helps you keep track â who you met, what you talked about, and when to reach back out.`],formLead:`Enter your .edu email to get ${jC.student.percentOff}% off for ${jC.student.durationLabel}.`,finePrint:`For students with a .edu email · Your code arrives by email`,ineligibleError:`That doesn't look like a school email. Use your .edu address.`,seoDescription:`50% off Dex for 1 year for students. Use your .edu email to claim your code and keep your network alive long after graduation.`}},BC=zC.student;z();var VC=G(`/student`)({head:()=>J(`Dex for students: 50% off for 1 year`,{description:BC.seoDescription,canonicalPath:BC.path}),component:K(()=>B(()=>import(`./student-BOzWWSNm.js`),__vite__mapDeps([59,4,1,5,2,60,23,24,25,26,27,6,7,8,9,10,11,12,61,62,13,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,16,63,49,50,64,65,66,67,68,69,70,14,19,71])),`component`)});z();var HC=()=>B(()=>import(`./security-CyLAil7v.js`),__vite__mapDeps([72,23,1,2,24,25,4,26,27,5,11,73,74,12,13,75,17,9,16])),UC=`Learn how Dex protects your relationship data with privacy-first product decisions and secure infrastru
50cture.`,WC=G(`/security`)({head:()=>J(`Security`,{description:UC,canonicalPath:`/security`,markdownPath:`/security.md`,jsonLd:vC([{...xC({path:`/security`,name:`Security and Privacy at Dex`,description:UC}),mainEntity:aC,hasPart:Wt.map((e,t)=>({"@type":`WebPageElement`,"@id":`${jt}/security/#practice-${t+1}`,text:e}))},hC([{name:`Security`,path:`/security`}])])}),component:K(HC,`component`)});z();var GC=G(`/resources`)({component:K(()=>B(()=>import(`./resources-DgIeDse5.js`),__vite__mapDeps([76,4,1,5,2])),`component`)});function KC(e){let t=(0,q.c)(9),{variant:n,className:r}=e,i;t[0]===r?i=t[1]:(i=$e(r),t[0]=r,t[1]=i);let a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(`rect`,{x:`4`,y:`11`,width:`16`,height:`9`,rx:`2.5`}),o=(0,U.jsx)(`circle`,{cx:`12`,cy:`15.5`,r:`1`,fill:`currentColor`,stroke:`none`}),t[2]=a,t[3]=o):(a=t[2],o=t[3]);let s=n===`unlocking`?`lock-shackle`:`lock-shackle-close`,c;t[4]===s?c=t[5]:(c=(0,U.jsx)(`path`,{d:`M8 11V7a4 4 0 0 1 8 0v4`,className:s}),t[4]=s,t[5]=c);let l;return t[6]!==i||t[7]!==c?(l=(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:i,"aria-hidden":!0,xmlns:`http://www.w3.org/2000/svg`,children:[a,o,c]}),t[6]=i,t[7]=c,t[8]=l):l=t[8],l}function qC(e){let t=(0,q.c)(5),{className:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsxs)(`g`,{className:`dex-loader-spin`,children:[(0,U.jsx)(`circle`,{cx:`44.811`,cy:`53.685`,r:`3.002`,opacity:1}),(0,U.jsx)(`circle`,{cx:`37.606`,cy:`63.976`,r:`3.002`,opacity:1}),(0,U.jsx)(`circle`,{cx:`32.299`,cy:`75.36`,r:`3.002`,opacity:1}),(0,U.jsx)(`circle`,{cx:`29.045`,cy:`87.488`,r:`3.002`,opacity:.803}),(0,U.jsx)(`circle`,{cx:`27.952`,cy:`100.0`,r:`3.002`,opacity:.803}),(0,U.jsx)(`circle`,{cx:`29.045`,cy:`112.512`,r:`3.002`,opacity:.803}),(0,U.jsx)(`circle`,{cx:`32.299`,cy:`124.64`,r:`3.002`,opacity:.577}),(0,U.jsx)(`circle`,{cx:`37.606`,cy:`136.024`,r:`3.002`,opacity:.577}),(0,U.jsx)(`circle`,{cx:`44.811`,cy:`146.315`,r:`3.002`,opacity:.577}),(0,U.jsx)(`circle`,{cx:`53.685`,cy:`155.189`,r:`3.002`,opacity:.577}),(0,U.jsx)(`circle`,{cx:`63.976`,cy:`162.394`,r:`3.002`,opacity:.577}),(0,U.jsx)(`circle`,{cx:`75.36`,cy:`167.701`,r:`3.002`,opacity:.36}),(0,U.jsx)(`circle`,{cx:`87.488`,cy:`170.955`,r:`3.002`,opacity:.36}),(0,U.jsx)(`circle`,{cx:`100.0`,cy:`172.048`,r:`3.002`,opacity:.36}),(0,U.jsx)(`circle`,{cx:`112.512`,cy:`170.955`,r:`3.002`,opacity:.36}),(0,U.jsx)(`circle`,{cx:`124.64`,cy:`167.701`,r:`3.002`,opacity:.36}),(0,U.jsx)(`circle`,{cx:`136.024`,cy:`162.394`,r:`3.002`,opacity:.36}),(0,U.jsx)(`circle`,{cx:`146.315`,cy:`155.189`,r:`3.002`,opacity:.191}),(0,U.jsx)(`circle`,{cx:`155.189`,cy:`146.315`,r:`3.002`,opacity:.191}),(0,U.jsx)(`circle`,{cx:`162.394`,cy:`136.024`,r:`3.002`,opacity:.191}),(0,U.jsx)(`circle`,{cx:`167.701`,cy:`124.64`,r:`3.002`,opacity:.191}),(0,U.jsx)(`circle`,{cx:`170.955`,cy:`112.512`,r:`3.002`,opacity:.191}),(0,U.jsx)(`circle`,{cx:`172.048`,cy:`100.0`,r:`3.002`,opacity:.092}),(0,U.jsx)(`circle`,{cx:`170.955`,cy:`87.488`,r:`3.002`,opacity:.092}),(0,U.jsx)(`circle`,{cx:`167.701`,cy:`75.36`,r:`3.002`,opacity:.092}),(0,U.jsx)(`circle`,{cx:`162.394`,cy:`63.976`,r:`3.002`,opacity:.092}),(0,U.jsx)(`circle`,{cx:`155.189`,cy:`53.685`,r:`3.002`,opacity:.092}),(0,U.jsx)(`circle`,{cx:`146.315`,cy:`44.811`,r:`3.002`,opacity:.092})]}),i=(0,U.jsx)(`path`,{d:`M112.059 100.0C112.059 107.326 106.231 113.265 99.047 113.265C95.434 113.265 91.819 113.265 88.206 113.265C88.057 113.265 87.941 113.141 87.941 112.988C87.941 111.882 87.941 110.777 87.941 109.671C87.941 109.518 88.057 109.394 88.206 109.394C91.819 109.394 95.434 109.394 99.047 109.394C104.136 109.394 108.26 105.189 108.26 100.0C108.26 94.811 104.136 90.606 99.047 90.606C95.434 90.606 91.819 90.606 88.206 90.606C88.057 90.606 87.941 90.482 87.941 90.329C87.941 89.223 87.941 88.118 87.941 87.012C87.941 86.859 88.057 86.735 88.206 86.735C91.819 86.735 95.434 86.735 99.047 86.735C106.231 86.735 112.059 92.674 112.059 100.0C112.059 100.0 112.059 100.0 112.059 100.0C112.059 100.0 112.059 100.0 112.059 100.0Z`}),a=(0,U.jsx)(`path`,{d:`M104.461 100.0C104.461 103.052 102.04 105.535 99.046 105.535C96.17 105.535 93.3 105.535 90.424 105.535C90.193 105.535 90.058 105.257 90.207 105.077C91.566 103.446 92.936 101.811 94.295 100.181C94.381 100.077 94.381 99.923 94.295 99.819C92.936 98.189 91.566 96.566 90.207 94.935C90.058 94.756 90.193 94.477 90.424 94.477C93.3 94.477 96.17 94.477 99.046 94.477C102.04 94.477 104.461 96.948 104.461 100.0C104.461 100.0 104.461 100.0 104.461 100.0C104.461 100.0 104.461 100.0 104.461 100.0Z`}),t[0]=r,t[1]=i,t[2]=a):(r=t[0],i=t[1],a=t[2]);let o;
50return t[3]===n?o=t[4]:(o=(0,U.jsxs)(`svg`,{viewBox:`0 0 200 200`,fill:`currentColor`,className:n,"aria-hidden":!0,xmlns:`http://www.w3.org/2000/svg`,children:[r,i,a]}),t[3]=n,t[4]=o),o}var JC=`dex:auth-handoff-at`,YC=3e4;function XC(){try{sessionStorage.setItem(JC,String(Date.now()))}catch{}}function ZC(){try{let e=Number(sessionStorage.getItem(JC));return Number.isFinite(e)&&e>0&&Date.now()-e<YC}catch{return!1}}function QC(){return()=>{}}function $C(){return!1}function ew(){return(0,H.useSyncExternalStore)(QC,ZC,$C)}function tw(e){let t=(0,q.c)(8),{className:n}=e,r=ew(),i=r?`Signing you in`:`Loading Dex`,a;t[0]===n?a=t[1]:(a=$e(`flex h-full min-h-dvh w-full items-center justify-center bg-background text-foreground`,n),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=r?(0,U.jsx)(KC,{variant:`unlocking`,className:`logo-breathe size-10 text-primary`}):(0,U.jsx)(qC,{className:`size-[100px] text-primary`}),t[2]=r,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,U.jsx)(`div`,{role:`status`,"aria-label":i,className:a,children:o}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}var nw=G(`/refer`)({head:()=>J(`Refer & Earn`),beforeLoad:()=>{if(!(typeof window>`u`))throw L({to:`/app/refer`,replace:!0})},pendingComponent:tw});z();var rw=()=>B(()=>import(`./product-overview-CrJZdK44.js`),__vite__mapDeps([77,4,1,5,2,78,11,12,61,23,24,25,26,27,6,7,8,9,10,62,13,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,16,64,65,66,67,68,69,70,14,19])),iw=`See how Dex helps you consolidate contacts, remember context, set keep-in-touch reminders, and build stronger relationships.`,aw=G(`/product-overview`)({head:()=>J(`Product Overview`,{description:iw,canonicalPath:`/product-overview`,markdownPath:`/product-overview.md`,jsonLd:vC([yC({description:iw,operatingSystem:`iOS, Android, macOS, Windows, Chrome, Web`,url:sC(`/product-overview`)}),hC([{name:`Product overview`,path:`/product-overview`}])])}),component:K(rw,`component`)});z();var ow=G(`/privacypolicy`)({head:()=>J(`Privacy Policy`,{description:`Read the Dex privacy policy for details on data collection, use, retention, integrations, and user privacy choices.`,canonicalPath:`/privacypolicy`}),component:K(()=>B(()=>import(`./privacypolicy-CnZCBbaA.js`),__vite__mapDeps([79,4,1,5,2,21,17,9,12,13,16])),`component`)});z();var sw=G(`/pricing`)({head:()=>J(`Pricing`,{description:`Compare Dex Premium, Professional, and Enterprise plans for personal relationship management, contact sync, reminders, and integrations.`,canonicalPath:`/pricing`,markdownPath:`/pricing.md`,jsonLd:CC()}),component:K(()=>B(()=>import(`./pricing-BRRjKtOF.js`),__vite__mapDeps([80,1,2,23,24,25,4,26,27,5,6,7,8,9,10,11,81,82,83,31,12,13,53,54,84,35,38,40,36,37,39,41,42,43,85,56,46,16,86,67,51,52,55,57,58])),`component`)});function cw(e){"@babel/helpers - typeof";return cw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cw(e)}function lw(e,t){if(cw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(cw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function uw(e){var t=lw(e,`string`);return cw(t)==`symbol`?t:t+``}function Y(e,t,n){return(t=uw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dw=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},fw=class{constructor(){Y(this,`_lastHandleId`,0),Y(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(performance.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},pw=class{constructor(){Y(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new dw:new fw}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}},mw=typeof window<`u`&&window.document!==void 0,hw=new Uint8Array([80,75,3,4]),gw=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],X,Z=0,_w=null;function vw(){return(_w===null||_w.byteLength===0)&&(_w=new Uint8Array(X.memory.buffer)),_w}var yw=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},bw=typeof yw.encodeInto==`function`?function(e,t){return yw.encodeInto(e,t)}:function(e,t){let n=yw.encode(e);return t.set(n),{read:e.length,written:n.length}};function xw(e,t,n){if(n===void 0){let n=yw.encode(e),r=t(n.length,1)>>>0;return vw().subarray(r,r+n.length).set(n),Z=n.length,r}let r=e.length,i=t(r,1)>>>0,a=vw(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}
50if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=vw().subarray(i+o,i+r),a=bw(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return Z=o,i}var Sw=null;function Cw(){return(Sw===null||Sw.buffer.detached===!0||Sw.buffer.detached===void 0&&Sw.buffer!==X.memory.buffer)&&(Sw=new DataView(X.memory.buffer)),Sw}function ww(e){let t=X.__externref_table_alloc_command_export();return X.__wbindgen_export_4.set(t,e),t}function Tw(e,t){try{return e.apply(this,t)}catch(e){let t=ww(e);X.__wbindgen_exn_store_command_export(t)}}var Ew=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&Ew.decode();function Dw(e,t){return e>>>=0,Ew.decode(vw().subarray(e,e+t))}function Ow(e){return e==null}var kw=null;function Aw(){return(kw===null||kw.byteLength===0)&&(kw=new Float32Array(X.memory.buffer)),kw}function jw(e,t){let n=t(e.length*4,4)>>>0;return Aw().set(e,n/4),Z=e.length,n}function Mw(e,t){let n=t(e.length*1,1)>>>0;return vw().set(e,n/1),Z=e.length,n}function Nw(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=ww(e[t]);Cw().setUint32(n+4*t,r,!0)}return Z=e.length,n}function Pw(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=Mw(t,X.__wbindgen_malloc_command_export),a=Z;return X.register_font(n,r,i,a)!==0}var Fw=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),Iw=Object.freeze({Idle:0,0:`Idle`,Playing:1,1:`Playing`,Paused:2,2:`Paused`,Stopped:3,3:`Stopped`,Tweening:4,4:`Tweening`}),Lw=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>X.__wbg_dotlottieplayerwasm_free(e>>>0,1)),Rw=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Lw.unregister(this),e}free(){let e=this.__destroy_into_raw();X.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}layout_fit(){let e,t;try{let n=X.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],Dw(n[0],n[1])}finally{X.__wbindgen_free_command_export(e,t,1)}}loop_count(){return X.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return X.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}set_layout(e,t,n){let r=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),i=Z;return X.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}set_marker(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;X.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_slots(){return X.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}is_complete(){return X.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}reset_slots(){return X.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}reset_theme(){return X.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}segment_end(){return X.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return X.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}set_segment(e,t){return X.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}sm_set_seed(e){return X.dotlottieplayerwasm_sm_set_seed(this.__wbg_ptr,e)!==0}static unload_font(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_unload_font(t,n)!==0}animation_id(){let e=X.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=Dw(e[0],e[1]).slice(),X.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}audio_volume(){return X.dotlottieplayerwasm_audio_volume(this.__wbg_ptr)}background_a(){return X.dotlottieplayerwasm_background_a(this.__wbg_ptr)}background_b(){return X.dotlottieplayerwasm_background_b(this.__wbg_ptr)}background_g(){return X.dotlottieplayerwasm_background_g(this.__wbg_ptr)}background_r(){return X.dotlottieplayerwasm_background_r(this.__wbg_ptr)}clear_marker(){X.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){X.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return X.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r
50=X.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Dw(r[0],r[1]).slice(),X.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}marker_names(){return X.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(e){X.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=xw(t,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),a=Z;return X.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}set_viewport(e,t,n,r){return X.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}total_frames(){return X.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}clear_segment(){return X.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}current_frame(){return X.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r=X.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Dw(r[0],r[1]).slice(),X.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=X.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],Dw(n[0],n[1])}finally{X.__wbindgen_free_command_export(e,t,1)}}get_transform(){return X.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}segment_start(){return X.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_text_slot(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=xw(t,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),a=Z;return X.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_transform(e){let t=jw(e,X.__wbindgen_malloc_command_export),n=Z;return X.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}sm_get_inputs(){return X.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return X.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(e,t){X.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}animation_size(){return X.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}current_marker(){let e=X.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=Dw(e[0],e[1]).slice(),X.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}layout_align_x(){return X.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return X.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_load_animation(this.__wbg_ptr,t,n)!==0}loop_animation(){return X.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_background(e,t,n,r){return X.dotlottieplayerwasm_set_background(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),a=Z;return X.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_image_slot(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=xw(t,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),a=Z;return X.dotlottieplayerwasm_set_image_slot(this.__wbg_ptr,n,r,i,a)!==0}set_loop_count(e){X.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}sm_reset_input(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;X.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}manifest_string(){let e,t;try{let n=X.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],Dw(n[0],n[1])}finally{X.__wbindgen_free_command_export(e,t,1)}}set_scalar_slot(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z;return X.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_vector_slot(e,t,n){let r=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),i=Z;return X.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}setup_sw_target(e,t){return X.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr,e,t)!==0}get_pixel_buffer(){return X.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}set_audio_volume(e){X.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr,e)}sm_current_state(){let e,t;try{let n=X.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],Dw(n[0],n[1])}finally{X.__wbindgen_free_command_export(e,t,1)}}state_machine_id(){let e=X.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=Dw(e[0],e[1]).slice(),X.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}get_state_machine(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r
50=X.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Dw(r[0],r[1]).slice(),X.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}set_position_slot(e,t,n){let r=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),i=Z;return X.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}current_loop_count(){return X.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return X.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(e,t){X.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}state_machine_load(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}load_dotlottie_data(e){let t=Mw(e,X.__wbindgen_malloc_command_export),n=Z;return X.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,t,n)!==0}sm_get_string_input(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r=X.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Dw(r[0],r[1]).slice(),X.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_string_input(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=xw(t,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),a=Z;return X.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_boolean_input(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r=X.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_get_numeric_input(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z,r=X.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_post_pointer_down(e,t){X.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){X.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){X.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_set_boolean_input(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z;return X.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_set_numeric_input(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z;return X.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}state_machine_unload(){X.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,t){X.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}load_animation_from_id(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,t,n)!==0}sm_poll_internal_event(){return X.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return X.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}reset_current_loop_count(){X.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z;return X.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}state_machine_load_from_id(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}set_use_frame_interpolation(e){X.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){let e=X.dotlottieplayerwasm_new();return this.__wbg_ptr=e>>>0,Lw.register(this,this.__wbg_ptr,this),this}mode(){return X.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return X.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}stop(){return X.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}tick(e){return X.dotlottieplayerwasm_tick(this.__wbg_ptr,e)!==0}pause(){return X.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}speed(){return X.dotlottieplayerwasm_speed(this.__wbg_ptr)}width(){return X.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return X.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return X.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}status(){return X.dotlottieplayerwasm_status(this.__wbg_ptr)}markers(){return X.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_stop(){return X.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_tick(e){return X.dotlottieplayerwasm_sm_tick(this.__wbg_ptr,e)!==0}autoplay(){return X.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}duration(){return X.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){X.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){X.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,t){let n=Nw(t,X.__wbindgen_malloc_command_export),r=Z;return X.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}theme_id(){let e=X.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=Dw(e[0],e[1]).slice(),X.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}load_font(e,t){let n=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z,i=Mw(t,X.__wbindgen_malloc_command_export),a=Z;return X.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}set_frame(e){return X.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}set_speed(e){X.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let t=xw(e,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),n=Z;return X.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}sm_status(){let e,t;try{let n=X.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],Dw(n[0],n[1])}finally{X.__wbindgen_free_command_export(e,t,1)}}};async function zw(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function Bw(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer}
50,e.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764=function(){return Tw(function(e,t){let n=xw(URL.createObjectURL(t),X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),r=Z;Cw().setInt32(e+4,r,!0),Cw().setInt32(e+0,n,!0)},arguments)},e.wbg.__wbg_ended_b873fb75d0c13ca7=function(e){return e.ended},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let n,r;try{n=e,r=t,console.error(Dw(e,t))}finally{X.__wbindgen_free_command_export(n,r,1)}},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_newwithsrc_20307ca7e8762a81=function(){return Tw(function(e,t){return new Audio(Dw(e,t))},arguments)},e.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127=function(){return Tw(function(e,t){return new Blob(e,t)},arguments)},e.wbg.__wbg_pause_b74c96d69f769518=function(){return Tw(function(e){e.pause()},arguments)},e.wbg.__wbg_play_f6ec5fc4e84b0d26=function(){return Tw(function(e){return e.play()},arguments)},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_revokeObjectURL_27267efebeb457c7=function(){return Tw(function(e,t){URL.revokeObjectURL(Dw(e,t))},arguments)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return Tw(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setcurrentTime_64727eddd3966512=function(e,t){e.currentTime=t},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_settype_39ed370d3edd403c=function(e,t,n){e.type=Dw(t,n)},e.wbg.__wbg_setvolume_3895e06a030ca4f7=function(e,t){e.volume=t},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){let n=t.stack,r=xw(n,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),i=Z;Cw().setInt32(e+4,i,!0),Cw().setInt32(e+0,r,!0)}
50,e.wbg.__wbindgen_init_externref_table=function(){let e=X.__wbindgen_export_4,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return X.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=Ow(r)?0:xw(r,X.__wbindgen_malloc_command_export,X.__wbindgen_realloc_command_export),a=Z;Cw().setInt32(e+4,a,!0),Cw().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return Dw(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(Dw(e,t))},e}function Vw(e,t){return X=e.exports,Hw.__wbindgen_wasm_module=t,Sw=null,kw=null,_w=null,X.__wbindgen_start(),X}async function Hw(e){if(X!==void 0)return X;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=Bw();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await zw(await e,t);return Vw(n,r)}var Uw=class{constructor(){Y(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},Ww=class e{static _initializeObserver(){e._observer||=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0})}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};Y(Ww,`_observer`,null),Y(Ww,`_observedCanvases`,new Map);var Gw=class e{static _initializeObserver(){e._observer||=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})})}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};Y(Gw,`_observer`,null),Y(Gw,`_observedCanvases`,new Map);function Kw(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function qw(e){if(!Kw(e))return[0,0,0,0];let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255,parseInt(t.slice(6,8),16)/255]}function Jw(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,hw.byteLength));for(let e=0;e<hw.length;e+=1)if(hw[e]!==t[e])return!1;return!0}function Yw(e){return gw.every(t=>Object.hasOwn(e,t))}function Xw(e){return typeof e==`string`?/^\s*\{/u.test(e)&&/\}\s*$/u.test(e):Yw(e)}function Zw(){return 1+((mw?window.devicePixelRatio:1)-1)*.75}function Qw(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function $w(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function eT(e){return new Promise((t,n)=>{let r=new FileReader;r.onerror=()=>n(r.error??Error(`Failed to read image slot source`)),r.onload=()=>
50t(r.result),r.readAsDataURL(e)})}async function tT(e){if(!/^https?:\/\//i.test(e))return e;let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch image slot source from URL: ${e}. ${t.status}: ${t.statusText}`);return eT(await t.blob())}function nT(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function rT(e,t,n){let r=null,i=t;async function a(t){await e({module_or_path:t})}async function o(t){let n=await fetch(t);if(!n.ok)throw Error(`fetch ${t} responded with ${n.status} ${n.statusText}`);await e({module_or_path:await n.arrayBuffer()})}return{load(){if(!r){let e=i,t=n;r=(async()=>{let n,i;try{await a(e);return}catch(r){n=r,console.warn(`Primary WASM load failed from ${e}: ${r.message}`),console.warn(`Attempting to load WASM from backup URL: ${t}`)}try{await a(t);return}catch(e){i=e,console.warn(`Backup WASM load failed from ${t}: ${e.message}`)}console.warn(`Retrying WASM load with buffered instantiation`);try{await o(e);return}catch(t){console.warn(`Buffered WASM load from ${e} failed: ${t.message}`)}try{await o(t);return}catch(e){throw console.error(`Primary WASM URL failed: ${n.message}`),console.error(`Backup WASM URL failed: ${i.message}`),console.error(`Buffered fallback failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})()}return r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}var iT=null;function aT(){return iT??=rT(Hw,`https://cdn.jsdelivr.net/npm/@lottiefiles/[email protected]/dist/dotlottie-player.wasm`,`https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-player.wasm`),iT}var oT=e=>{switch(e){case`reverse`:return Fw.Reverse;case`bounce`:return Fw.Bounce;case`reverse-bounce`:return Fw.ReverseBounce;default:return Fw.Forward}},sT=e=>{switch(e){case Fw.Reverse:return`reverse`;case Fw.Bounce:return`bounce`;case Fw.ReverseBounce:return`reverse-bounce`;default:return`forward`}},cT=e=>{switch(e){case`contain`:return`contain`;case`cover`:return`cover`;case`fill`:return`fill`;case`fit-height`:return`fit-height`;case`fit-width`:return`fit-width`;case`none`:return`none`;default:return`contain`}},lT=class{constructor(e){Y(this,`_canvas`,null),Y(this,`_pendingLoad`,null),Y(this,`_srcFetchAbort`,null),Y(this,`_context`,null),Y(this,`_eventManager`,void 0),Y(this,`_animationFrameId`,null),Y(this,`_frameManager`,void 0),Y(this,`_boundAnimationLoop`,void 0),Y(this,`_dotLottieCore`,null),Y(this,`_stateMachineId`,``),Y(this,`_stateMachineConfig`,null),Y(this,`_isStateMachineRunning`,!1),Y(this,`_renderConfig`,{}),Y(this,`_isFrozen`,!1),Y(this,`_backgroundColor`,null),Y(this,`_lastFrameTime`,null),Y(this,`_boundOnClick`,null),Y(this,`_boundOnPointerUp`,null),Y(this,`_boundOnPointerDown`,null),Y(this,`_boundOnPointerMove`,null),Y(this,`_boundOnPointerEnter`,null),Y(this,`_boundOnPointerLeave`,null),Y(this,`_bufferMismatchCount`,0),Y(this,`_lastExpectedBufferSize`,0),Y(this,`_cachedImageData`,null),Y(this,`_cachedImageDataBuffer`,null),Y(this,`_cachedImageDataByteOffset`,0),Y(this,`_marker`,``),Y(this,`_segment`,null),this._canvas=e.canvas??null,this._eventManager=new Uw,this._frameManager=new pw,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||Zw(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0};let t=null;e.src&&!e.data&&(this._srcFetchAbort=new AbortController,t=this._fetchData(e.src,this._srcFetchAbort.signal),t.catch(()=>{})),this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(oT(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}
50),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src,t):this._pendingLoad={src:e.src,dataPromise:t}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{this._srcFetchAbort?.abort(),console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return aT().load()}_createCore(){return new Rw}_onCoreCreated(){}_setupTarget(e,t){return this._dotLottieCore?this._dotLottieCore.setup_sw_target(e,t):!1}_drainPlayerEvents({skipFrame:e=!1}={}){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.poll_event())!=null;){let n=t;switch(n.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:queueMicrotask(()=>this._eventManager.dispatch({type:`play`}));break;case`Pause`:queueMicrotask(()=>this._eventManager.dispatch({type:`pause`}));break;case`Stop`:queueMicrotask(()=>this._eventManager.dispatch({type:`stop`}));break;case`Frame`:e||queueMicrotask(()=>this._eventManager.dispatch({type:`frame`,currentFrame:n.frameNo??0}));break;case`Render`:e||queueMicrotask(()=>this._eventManager.dispatch({type:`render`,currentFrame:n.frameNo??0}));break;case`Loop`:queueMicrotask(()=>this._eventManager.dispatch({type:`loop`,loopCount:n.loopCount??0}));break;case`Complete`:queueMicrotask(()=>this._eventManager.dispatch({type:`complete`}));break;default:break}}}_discardPlayerEvents(){for(;this._dotLottieCore?.poll_event()!=null;);}_drainSmEvents(){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.sm_poll_event())!=null;){let t=e;switch(t.type){case`Start`:queueMicrotask(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:`stateMachineStart`}),this._startAnimationLoop()});break;case`Stop`:queueMicrotask(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:`stateMachineStop`}),this._dotLottieCore?.status()!==Iw.Playing&&this._stopAnimationLoop()});break;case`CustomEvent`:this._eventManager.dispatch({type:`stateMachineCustomEvent`,eventName:t.message??``});break;case`BooleanInputChange`:this._eventManager.dispatch({type:`stateMachineBooleanInputValueChange`,inputName:t.name??``,newValue:t.newValue,oldValue:t.oldValue});break;case`NumericInputChange`:this._eventManager.dispatch({type:`stateMachineNumericInputValueChange`,inputName:t.name??``,newValue:t.newValue,oldValue:t.oldValue});break;case`StringInputChange`:this._eventManager.dispatch({type:`stateMachineStringInputValueChange`,inputName:t.name??``,newValue:t.newValue,oldValue:t.oldValue});break;case`InputFired`:this._eventManager.dispatch({type:`stateMachineInputFired`,inputName:t.name??``});break;case`Transition`:this._eventManager.dispatch({type:`stateMachineTransition`,fromState:t.previousState??``,toState:t.newState??``});break;case`StateEntered`:this._eventManager.dispatch({type:`stateMachineStateEntered`,state:t.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:t.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:t.message??``});break;default:break}}let t;for(;(t=this._dotLottieCore.sm_poll_internal_event())!=null;){let e=t;if(e.type===`Message`){let t=e.message??``;mw&&t.startsWith(`OpenUrl: `)?nT(t):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:t})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e,t=null){let n=await fetch(e,{signal:t});if(!n.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${n.status}: ${n.statusText}`);let r=await n.arrayBuffer();return Jw(r)?r:new TextDecoder().decode(r)}_loadFromData(e){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height);let t=!1;if(typeof e==`string`){if(t=this._dotLottieCore.load_animation(e),!t&&!Xw(e)){this._discardPlayerEvents(),this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}}else if(e instanceof ArrayBuffer){if(!Jw(e)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}t=this._dotLottieCore.load_dotlottie_data(new Uint8Array(e))}else if(typeof e==`object`){if(!Xw(e)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}t=this._dotLottieCore.load_animation(JSON.stringify(e))}else{this._dispatchError(`Unsupported data type for animation data. Expected: 51 - string (Lottie JSON), 52 - ArrayBuffer (dotLottie), 53 - object (Lottie JSON). 54 Received: ${typeof e}`);return}if(t){if(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents({ski
vendor: 16,403 bytes, line 54
54pFrame:!!this._marker||!!this._segment}),this._marker&&this._dotLottieCore.set_marker(this._marker),this._segment){this._dotLottieCore.set_segment(this._segment[0],this._segment[1]);let e=sT(this._dotLottieCore.mode()),t=e===`reverse`||e===`reverse-bounce`?this._segment[1]:this._segment[0];this._dotLottieCore.set_frame(t)}setTimeout(()=>{this._eventManager.dispatch({type:`frame`,currentFrame:this.currentFrame})},0),this._dotLottieCore.render(),this._drainPlayerEvents(),this._draw(),this._stateMachineId?this.stateMachineLoad(this._stateMachineId)&&this.stateMachineStart()&&this._startAnimationLoop():this._dotLottieCore.status()===Iw.Playing&&this._startAnimationLoop(),mw&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(Ww.observe(this._canvas,this),Qw(this._canvas)||this.freeze()),this._renderConfig.autoResize&&Gw.observe(this._canvas,this))}else this._drainPlayerEvents()}_loadFromSrc(e,t){(t??this._fetchData(e)).then(e=>this._loadFromData(e)).catch(t=>this._dispatchError(`Failed to load animation data from URL: ${e}. ${t}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){return this._dotLottieCore?.animation_id()??void 0}get activeThemeId(){return this._dotLottieCore?.theme_id()??void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:cT(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??``}get manifest(){try{let e=this._dotLottieCore?.manifest_string();if(this._dotLottieCore===null||!e)return null;let t=JSON.parse(e);return Object.keys(t).length===0?null:t}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(this._dotLottieCore)return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){return this._dotLottieCore?.loop_animation()??!1}get mode(){return this._dotLottieCore?sT(this._dotLottieCore.mode()):`forward`}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??``}get autoplay(){return this._dotLottieCore?.autoplay()??!1}get useFrameInterpolation(){return this._dotLottieCore?.use_frame_interpolation()??!1}get speed(){return this._dotLottieCore?.speed()??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return(this._dotLottieCore?.status()??Iw.Idle)!==Iw.Idle}get isPlaying(){return this._dotLottieCore?.status()===Iw.Playing}get isPaused(){return this._dotLottieCore?.status()===Iw.Paused}get isStopped(){return this._dotLottieCore?.status()===Iw.Stopped}get currentFrame(){return this._dotLottieCore?Math.round(this._dotLottieCore.current_frame()*100)/100:0}get loopCount(){return this._dotLottieCore?.current_loop_count()??0}get totalFrames(){return this._dotLottieCore?.total_frames()??0}get duration(){return(this._dotLottieCore?.duration()??0)/1e3}get canvas(){return this._canvas}load(e){this._dotLottieCore!==null&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(oT(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2?(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])):(this._segment=null,this._dotLottieCore.clear_segment()),this._marker=e.marker??``,this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor))}_draw(){if(this._dotLottieCore===null||this._canvas===null||(!this._context&&`getContext`in this._canvas&&typeof this._canvas.getContext==`function`&&(!mw||typeof HTMLCanvasElement<`u`&&this._canvas instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext(`2d`)),!this._context))return;let e=this._dotLottieCore.get_pixel_buffer(),t=this._canvas.width,n=this._canvas.height,r=t*n*4;if(e.byteLength!==r){this._lastExpectedBufferSize===r?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=r),this._bufferMismatchCount===10&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${r} bytes for canvas ${t}x${n}, but got ${e.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=r;let i=this._cachedImageData;if(!(i!==null&&i.width===t&&i.height===n&&i.data.byteLength===r&&this._cachedImageDataBuffer===e.buffer&&this._cachedImageDataByteOffset===e.byteOffset)){if(typeof ImageData>`u`)this._cachedImageData=this._context.createImageData(t,n);else{let r=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData=new ImageData(r,t,n)}this._cachedImageDataBuffer=e.buffer,this._cachedImageDataByteOffset=e.byteOffset}if(typeof ImageData>`u`){let t=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData.data.set(t)}this._context.putImageData(this._cachedImageData,0,0)}_cleanupCanvas(){this._canvas&&mw&&this._canvas instanceof HTMLCanvasElement&&(Ww.unobserve(this._canvas),Gw.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&mw&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(Ww.observe(this._canvas,this),Qw(this._canvas)||this.freeze()),this._renderConfig.autoResize&&Gw.observe(this._canvas,this),this._isStateMachineRunning&&this._setupStateMachineListeners()),this._canvas&&this._dotLottieCore&&this.isLoaded&&this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}_setupRendererOnCanvas(){this._context=null}_stopAnimationLoop(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),this._lastFrameTime=null}_startAnimationLoop(){this._animationFrameId===null&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.status()===Iw.Playing||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(e){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(this._dotLottieCore.status()!==Iw.Playing&&!this._isStateMachineRunning){this._stopAnimationLoop();return}try{let t=this._lastFrameTime===null?0:e-this._lastFrameTime;this._lastFrameTime=e;let n=this._isStateMachineRunning?this._dotLottieCore.sm_tick(t):this._dotLottieCore.tick(t);this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),n&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop)}catch(e){console.error(`Error in animation frame:`,e),this._eventManager.dispatch({type:`renderError`,error:e}),e instanceof WebAssembly.RuntimeError&&this.destroy()}}play(){if(this._dotLottieCore===null||!this.isLoaded)return;this._stopAnimationLoop();let e=this._dotLottieCore.play();this._drainPlayerEvents(),(e||this._dotLottieCore.status()===Iw.Playing)&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&mw&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!Qw(this._canvas)&&this.freeze()}pause(){this._dotLottieCore!==null&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(this._dotLottieCore===null)return;let e=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),e&&(this._eventManager.dispatch({type:`frame`,currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(e){if(this._dotLottieCore!==null&&this._dotLottieCore.set_frame(e)){let e=this._dotLottieCore.render();this._drainPlayerEvents(),e&&this._draw()}}setSpeed(e){this._dotLottieCore!==null&&this._dotLottieCore.set_speed(e)}setBackgroundColor(e){if(this._dotLottieCore!==null){if(mw&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=e;else{let[t,n,r,i]=qw(e);this._dotLottieCore.set_background(t,n,r,i)}this._backgroundColor=e}}setLoop(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop(e)}setLoopCount(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop_count(e)}setUseFrameInterpolation(e){this._dotLottieCore!==null&&this._dotLottieCore.set_use_frame_interpolation(e)}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),this._srcFetchAbort?.abort(),this._srcFetchAbort=null,this._pendingLoad=null;let e=this._dotLottieCore;if(this._dotLottieCore=null,this._context=null,e)try{e.free()}catch(e){console.warn(`[dotlottie-web] Error freeing wasm core during destroy:`,e)}this._eventManager.dispatch({type:`destroy`}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:`freeze`}))}unfreeze(){this._animationFrameId===null&&(this._isFrozen=!1,this._eventManager.dispatch({type:`unfreeze`}),this._startAnimationLoop())}_syncCanvasSize(){if(!(mw&&this._canvas instanceof HTMLCanvasElement))return;let e=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:t,width:n}=this._canvas.getBoundingClientRect();t!==0&&n!==0&&(this._canvas.width=n*e,this._canvas.height=t*e)}resize(){!this._dotLottieCore||!this.isLoaded||!this._canvas||(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw()))}setCanvas(e){if(!(!e||this._canvas===e)&&(this._canvas&&this._cleanupCanvas(),this._canvas=e,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src,e.dataPromise)}}setTransform(e){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.set_transform(new Float32Array(e));return t&&this._dotLottieCore.render()&&this._draw(),t}getTransform(){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_transform();return Array.from(e)}setSegment(e,t){this._dotLottieCore!==null&&(this._segment=[e,t],this._dotLottieCore.set_segment(e,t))}resetSegment(){this._dotLottieCore!==null&&(this._segment=null,this._dotLottieCore.clear_segment())}setMode(e){this._dotLottieCore!==null&&this._dotLottieCore.set_mode(oT(e))}setRenderConfig(e){let{devicePixelRatio:t,freezeOnOffscreen:n,quality:r,...i}=e;this._renderConfig={...this._renderConfig,...i,devicePixelRatio:t||Zw(),freezeOnOffscreen:n??!0,...r!==void 0&&{quality:r}},r!==void 0&&this._dotLottieCore&&this._dotLottieCore.set_quality(r),mw&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?Gw.observe(this._canvas,this):Gw.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(Ww.observe(this._canvas,this),Qw(this._canvas)||this.freeze()):(Ww.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(e){this._dotLottieCore===null||this._dotLottieCore.animation_id()===e||!this._canvas||(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height),this._dotLottieCore.load_animation_from_id(e)?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${e}`))}setMarker(e){this._dotLottieCore!==null&&(this.markers().some(t=>t.name===e)?(this._marker=e,this._dotLottieCore.set_marker(e)):(this._marker=``,this._segment=null,this._dotLottieCore.clear_marker(),this._dotLottieCore.clear_segment()))}markers(){let e=this._dotLottieCore?.markers();return e&&Array.isArray(e)?e:[]}setTheme(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.set_theme(e);return t&&(this._dotLottieCore.render(),this._draw()),t}resetTheme(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_theme();return e&&(this._dotLottieCore.render(),this._draw()),e}setThemeData(e){if(this._dotLottieCore===null)return!1;let t=typeof e==`string`?e:JSON.stringify(e),n=this._dotLottieCore.set_theme_data(t);return n&&(this._dotLottieCore.render(),this._draw()),n}setSlots(e){this._dotLottieCore!==null&&this._dotLottieCore.set_slots_str(JSON.stringify(e))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(e){return Array.isArray(e)&&e.length>0&&typeof e[0]==`object`&&e[0]!==null&&`t`in e[0]&&`s`in e[0]}getSlotIds(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.get_slot_ids();return Array.isArray(e)?e:[]}getSlotType(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_type(e);if(t)return t}getSlot(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_str(e);if(t)try{return JSON.parse(t)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:+!!n,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setScalarSlot(e,t){if(this._dotLottieCore===null)return!1;let n=JSON.stringify({a:typeof t==`number`?0:1,k:t}),r=this._dotLottieCore.set_slot_str(e,n);return this._dotLottieCore.render(),this._draw(),r}setVectorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:+!!n,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setGradientSlot(e,t,n){if(this._dotLottieCore===null)return!1;let r=this._isKeyframeArray(t),i=JSON.stringify({k:{a:+!!r,k:t},p:n}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}setTextSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._dotLottieCore.get_slot_str(e),r=t;if(n){let e=JSON.parse(n);if(e&&`k`in e&&Array.isArray(e.k)){let n=e.k[0];`s`in n&&typeof n.s==`object`&&(r={...n.s,...t})}}let i=JSON.stringify({a:0,k:[{t:0,s:r}]}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}async setImageSlot(e,t){if(this._dotLottieCore===null)return!1;let n=await tT(t);if(this._dotLottieCore===null)return!1;let r=this._dotLottieCore.set_image_slot(e,n);return this._dotLottieCore.render(),this._draw(),r}resetSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_slot(e);return this._dotLottieCore.render(),this._draw(),t}clearSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.clear_slot(e);return this._dotLottieCore.render(),this._draw(),t}resetSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),e}clearSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),e}setLayout(e){this._dotLottieCore!==null&&this._dotLottieCore.set_layout(e.fit??`contain`,e.align?.[0]??.5,e.align?.[1]??.5)}setViewport(e,t,n,r){return this._dotLottieCore===null?!1:this._dotLottieCore.set_viewport(e,t,n,r)}static setWasmUrl(e){aT().setWasmUrl(e)}static preload(){return aT().load()}static async registerFont(e,t){try{await aT().load();let n;if(typeof t==`string`){let e=await fetch(t);if(!e.ok)return console.error(`Failed to fetch font from URL: ${t}. Status: ${e.status}`),!1;n=new Uint8Array(await e.arrayBuffer())}else n=t instanceof Uint8Array?t:new Uint8Array(t);let r=Pw(e,n);return r||console.error(`Failed to register font "${e}". Font data may be invalid.`),r}catch(t){return console.error(`Error registering font "${e}
54":`,t),!1}}animationSize(){let e=this._dotLottieCore?.animation_size();return{width:e?.[0]??0,height:e?.[1]??0}}stateMachineLoad(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load_from_id(e):!1}stateMachineLoadData(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load(e):!1}stateMachineSetConfig(e){this._stateMachineConfig=e}stateMachineStart(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),e&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),e}stateMachineStop(){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_stop();return this._drainSmEvents(),e&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.status()!==Iw.Playing&&this._stopAnimationLoop()),e}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??``}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??``}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??``}stateMachineOverrideState(e,t=!1){return this._dotLottieCore?.sm_override_current_state(e,t)??!1}stateMachineSetSeed(e){return this._dotLottieCore?.sm_set_seed(BigInt(Math.trunc(e)))??!1}stateMachineGet(e){return this._dotLottieCore?.get_state_machine(e)??``}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_framework_setup();return Array.isArray(e)?e:[]}stateMachineSetBooleanInput(e,t){return this._dotLottieCore?.sm_set_boolean_input(e,t)??!1}stateMachineSetNumericInput(e,t){return this._dotLottieCore?.sm_set_numeric_input(e,t)??!1}stateMachineSetStringInput(e,t){return this._dotLottieCore?.sm_set_string_input(e,t)??!1}stateMachineGetBooleanInput(e){return this._dotLottieCore?.sm_get_boolean_input(e)??void 0}stateMachineGetNumericInput(e){return this._dotLottieCore?.sm_get_numeric_input(e)??void 0}stateMachineGetStringInput(e){return this._dotLottieCore?.sm_get_string_input(e)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_get_inputs();return Array.isArray(e)?e:[]}stateMachineFireEvent(e){this._dotLottieCore?.sm_fire(e)}stateMachinePostClickEvent(e,t){this._dotLottieCore?.sm_post_click(e,t)}stateMachinePostPointerUpEvent(e,t){this._dotLottieCore?.sm_post_pointer_up(e,t)}stateMachinePostPointerDownEvent(e,t){this._dotLottieCore?.sm_post_pointer_down(e,t)}stateMachinePostPointerMoveEvent(e,t){this._dotLottieCore?.sm_post_pointer_move(e,t)}stateMachinePostPointerEnterEvent(e,t){this._dotLottieCore?.sm_post_pointer_enter(e,t)}stateMachinePostPointerExitEvent(e,t){this._dotLottieCore?.sm_post_pointer_exit(e,t)}_onClick(e){let t=$w(e);t&&this.stateMachinePostClickEvent(t.x,t.y)}_onPointerUp(e){let t=$w(e);t&&this.stateMachinePostPointerUpEvent(t.x,t.y)}_onPointerDown(e){let t=$w(e);t&&this.stateMachinePostPointerDownEvent(t.x,t.y)}_onPointerMove(e){let t=$w(e);t&&this.stateMachinePostPointerMoveEvent(t.x,t.y)}_onPointerEnter(e){let t=$w(e);t&&this.stateMachinePostPointerEnterEvent(t.x,t.y)}_onPointerLeave(e){let t=$w(e);t&&this.stateMachinePostPointerExitEvent(t.x,t.y)}_setupStateMachineListeners(){if(mw&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieCore!==null&&this.isLoaded){let e=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),e.includes(`Click`)&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener(`click`,this._boundOnClick)),e.includes(`PointerUp`)&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener(`pointerup`,this._boundOnPointerUp)),e.includes(`PointerDown`)&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener(`pointerdown`,this._boundOnPointerDown)),e.includes(`PointerMove`)&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener(`pointermove`,this._boundOnPointerMove)),e.includes(`PointerEnter`)&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener(`pointerenter`,this._boundOnPointerEnter)),e.includes(`PointerExit`)&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener(`pointerleave`,this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){mw&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&=(this._canvas.removeEventListener(`click`,this._boundOnClick),null),this._boundOnPointerUp&&=(this._canvas.removeEventListener(`pointerup`,this._boundOnPointerUp),null),this._boundOnPointerDown&&=(this._canvas.removeEventListener(`pointerdown`,this._boundOnPointerDown),null),this._boundOnPointerMove&&=(this._canvas.removeEventListener(`pointermove`,this._boundOnPointerMove),null),this._boundOnPointerEnter&&=(this._canvas.removeEventListener(`pointerenter`,this._boundOnPointerEnter),null),this._boundOnPointerLeave&&=(this._canvas.removeEventListener(`pointerleave`,this._boundOnPointerLeave),null))}},uT=class{constructor(){if(typeof Worker>`u`)throw Error(`Worker is not supported in this environment.`);let e=new Blob(['"use strict";(()=>{var lt=Object.defineProperty;var pt=(n,t,e)=>t in n?lt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var l=(n,t,e)=>pt(n,typeof t!="symbol"?t+"":t,e);var z=class{requestAnimationFrame(t){return requestAnimationFrame(t)}cancelAnimationFrame(t){cancelAnimationFrame(t)}},V=class{constructor(){l(this,"_lastHandleId",0);l(this,"_lastImmediate",null)}requestAnimationFrame(t){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{t(performance.now())}),this._lastHandleId}cancelAnimationFrame(t){this._lastImmediate&&clearImmediate(this._lastImmediate)}},A=class{constructor(){l(this,"_strategy");this._strategy=typeof requestAnimationFrame=="function"?new z:new V}requestAnimationFrame(t){return this._strategy.requestAnimationFrame(t)}cancelAnimationFrame(t){this._strategy.cancelAnimationFrame(t)}};var g=typeof window<"u"&&typeof window.document<"u";
54var F=new Uint8Array([80,75,3,4]),X=["v","ip","op","layers","fr","w","h"],U="0.78.2",N="@lottiefiles/dotlottie-web",Z=.75,Q=4;var o,c=0,x=null;function P(){return(x===null||x.byteLength===0)&&(x=new Uint8Array(o.memory.buffer)),x}var O=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},ut=typeof O.encodeInto=="function"?function(n,t){return O.encodeInto(n,t)}:function(n,t){let e=O.encode(n);return t.set(e),{read:n.length,written:e.length}};function p(n,t,e){if(e===void 0){let d=O.encode(n),u=t(d.length,1)>>>0;return P().subarray(u,u+d.length).set(d),c=d.length,u}let r=n.length,s=t(r,1)>>>0,i=P(),_=0;for(;_<r;_++){let d=n.charCodeAt(_);if(d>127)break;i[s+_]=d}if(_!==r){_!==0&&(n=n.slice(_)),s=e(s,r,r=_+n.length*3,1)>>>0;let d=P().subarray(s+_,s+r),u=ut(n,d);_+=u.written,s=e(s,r,_,1)>>>0}return c=_,s}var C=null;function L(){return(C===null||C.buffer.detached===!0||C.buffer.detached===void 0&&C.buffer!==o.memory.buffer)&&(C=new DataView(o.memory.buffer)),C}function tt(n){let t=o.__externref_table_alloc_command_export();return o.__wbindgen_export_4.set(t,n),t}function M(n,t){try{return n.apply(this,t)}catch(e){let r=tt(e);o.__wbindgen_exn_store_command_export(r)}}var et=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&et.decode();function h(n,t){return n=n>>>0,et.decode(P().subarray(n,n+t))}function ht(n){return n==null}var R=null;function mt(){return(R===null||R.byteLength===0)&&(R=new Float32Array(o.memory.buffer)),R}function ft(n,t){let e=t(n.length*4,4)>>>0;return mt().set(n,e/4),c=n.length,e}function W(n,t){let e=t(n.length*1,1)>>>0;return P().set(n,e/1),c=n.length,e}function gt(n,t){let e=t(n.length*4,4)>>>0;for(let r=0;r<n.length;r++){let s=tt(n[r]);L().setUint32(e+4*r,s,!0)}return c=n.length,e}function nt(n,t){let e=p(n,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c,s=W(t,o.__wbindgen_malloc_command_export),i=c;return o.register_font(e,r,s,i)!==0}var b=Object.freeze({Forward:0,0:"Forward",Reverse:1,1:"Reverse",Bounce:2,2:"Bounce",ReverseBounce:3,3:"ReverseBounce"}),w=Object.freeze({Idle:0,0:"Idle",Playing:1,1:"Playing",Paused:2,2:"Paused",Stopped:3,3:"Stopped",Tweening:4,4:"Tweening"}),q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>o.__wbg_dotlottieplayerwasm_free(n>>>0,1)),B=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),t}free(){let t=this.__destroy_into_raw();o.__wbg_dotlottieplayerwasm_free(t,0)}clear_slot(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,e,r)!==0}layout_fit(){let t,e;try{let r=o.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return t=r[0],e=r[1],h(r[0],r[1])}finally{o.__wbindgen_free_command_export(t,e,1)}}loop_count(){return o.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return o.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,e,r)!==0}set_layout(t,e,r){let s=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=c;return o.dotlottieplayerwasm_set_layout(this.__wbg_ptr,s,i,e,r)!==0}set_marker(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;o.dotlottieplayerwasm_set_marker(this.__wbg_ptr,e,r)}clear_slots(){return o.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}is_complete(){return o.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}reset_slots(){return o.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}reset_theme(){return o.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}segment_end(){return o.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(t){return o.dotlottieplayerwasm_set_quality(this.__wbg_ptr,t)!==0}set_segment(t,e){return o.dotlottieplayerwasm_set_segment(this.__wbg_ptr,t,e)!==0}sm_set_seed(t){return o.dotlottieplayerwasm_sm_set_seed(this.__wbg_ptr,t)!==0}static unload_font(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_unload_font(e,r)!==0}
54animation_id(){let t=o.dotlottieplayerwasm_animation_id(this.__wbg_ptr),e;return t[0]!==0&&(e=h(t[0],t[1]).slice(),o.__wbindgen_free_command_export(t[0],t[1]*1,1)),e}audio_volume(){return o.dotlottieplayerwasm_audio_volume(this.__wbg_ptr)}background_a(){return o.dotlottieplayerwasm_background_a(this.__wbg_ptr)}background_b(){return o.dotlottieplayerwasm_background_b(this.__wbg_ptr)}background_g(){return o.dotlottieplayerwasm_background_g(this.__wbg_ptr)}background_r(){return o.dotlottieplayerwasm_background_r(this.__wbg_ptr)}clear_marker(){o.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){o.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return o.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c,s=o.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,e,r),i;return s[0]!==0&&(i=h(s[0],s[1]).slice(),o.__wbindgen_free_command_export(s[0],s[1]*1,1)),i}marker_names(){return o.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(t){o.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,t)}set_slot_str(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c,i=p(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),_=c;return o.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,r,s,i,_)!==0}set_viewport(t,e,r,s){return o.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,t,e,r,s)!==0}total_frames(){return o.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}clear_segment(){return o.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}current_frame(){return o.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c,s=o.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,e,r),i;return s[0]!==0&&(i=h(s[0],s[1]).slice(),o.__wbindgen_free_command_export(s[0],s[1]*1,1)),i}get_slots_str(){let t,e;try{let r=o.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return t=r[0],e=r[1],h(r[0],r[1])}finally{o.__wbindgen_free_command_export(t,e,1)}}get_transform(){return o.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}segment_start(){return o.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,e,r)!==0}set_text_slot(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c,i=p(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),_=c;return o.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,r,s,i,_)!==0}set_transform(t){let e=ft(t,o.__wbindgen_malloc_command_export),r=c;return o.dotlottieplayerwasm_set_transform(this.__wbg_ptr,e,r)!==0}sm_get_inputs(){return o.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return o.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(t,e){o.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,t,e)}animation_size(){return o.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}
54current_marker(){let t=o.dotlottieplayerwasm_current_marker(this.__wbg_ptr),e;return t[0]!==0&&(e=h(t[0],t[1]).slice(),o.__wbindgen_free_command_export(t[0],t[1]*1,1)),e}layout_align_x(){return o.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return o.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_load_animation(this.__wbg_ptr,e,r)!==0}loop_animation(){return o.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_background(t,e,r,s){return o.dotlottieplayerwasm_set_background(this.__wbg_ptr,t,e,r,s)!==0}set_color_slot(t,e,r,s){let i=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),_=c;return o.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,_,e,r,s)!==0}set_image_slot(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c,i=p(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),_=c;return o.dotlottieplayerwasm_set_image_slot(this.__wbg_ptr,r,s,i,_)!==0}set_loop_count(t){o.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,t)}set_theme_data(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,e,r)!==0}sm_reset_input(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;o.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,e,r)}manifest_string(){let t,e;try{let r=o.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return t=r[0],e=r[1],h(r[0],r[1])}finally{o.__wbindgen_free_command_export(t,e,1)}}set_scalar_slot(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c;return o.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,r,s,e)!==0}set_vector_slot(t,e,r){let s=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=c;return o.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,s,i,e,r)!==0}setup_sw_target(t,e){return o.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr,t,e)!==0}get_pixel_buffer(){return o.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}set_audio_volume(t){o.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr,t)}sm_current_state(){let t,e;try{let r=o.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return t=r[0],e=r[1],h(r[0],r[1])}finally{o.__wbindgen_free_command_export(t,e,1)}}state_machine_id(){let t=o.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),e;return t[0]!==0&&(e=h(t[0],t[1]).slice(),o.__wbindgen_free_command_export(t[0],t[1]*1,1)),e}get_state_machine(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c,s=o.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,e,r),i;return s[0]!==0&&(i=h(s[0],s[1]).slice(),o.__wbindgen_free_command_export(s[0],s[1]*1,1)),i}set_position_slot(t,e,r){let s=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=c;return o.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,s,i,e,r)!==0}current_loop_count(){return o.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return o.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(t,e){o.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,t,e)}state_machine_load(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,e,r)!==0}load_dotlottie_data(t){let e=W(t,o.__wbindgen_malloc_command_export),r=c;return o.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,e,r)!==0}sm_get_string_input(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c,s=o.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,e,r),i;return s[0]!==0&&(i=h(s[0],s[1]).slice(),o.__wbindgen_free_command_export(s[0],s[1]*1,1)),i}sm_set_string_input(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c,i=p(e,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),_=c;return o.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,r,s,i,_)!==0}sm_get_boolean_input(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c,s=o.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,e,r);return s===16777215?void 0:s!==0}sm_get_numeric_input(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c,s=o.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,e,r);return s===4294967297?void 0:s}sm_post_pointer_down(t,e){o.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,t,e)}sm_post_pointer_exit(t,e){o.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,t,e)}sm_post_pointer_move(t,e){o.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,t,e)}sm_set_boolean_input(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c;return o.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,r,s,e)!==0}sm_set_numeric_input(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c;return o.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,r,s,e)!==0}state_machine_unload(){o.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(t,e){o.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,t,e)}load_animation_from_id(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,e,r)!==0}sm_poll_internal_event(){return o.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return o.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}reset_current_loop_count(){o.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c;return o.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,r,s,e)!==0}state_machine_load_from_id(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,e,r)!==0}set_use_frame_interpolation(t){o.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,t)}
54constructor(){let t=o.dotlottieplayerwasm_new();return this.__wbg_ptr=t>>>0,q.register(this,this.__wbg_ptr,this),this}mode(){return o.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return o.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}stop(){return o.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}tick(t){return o.dotlottieplayerwasm_tick(this.__wbg_ptr,t)!==0}pause(){return o.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}speed(){return o.dotlottieplayerwasm_speed(this.__wbg_ptr)}width(){return o.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return o.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return o.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}status(){return o.dotlottieplayerwasm_status(this.__wbg_ptr)}markers(){return o.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,e,r)!==0}sm_stop(){return o.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_tick(t){return o.dotlottieplayerwasm_sm_tick(this.__wbg_ptr,t)!==0}autoplay(){return o.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}duration(){return o.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(t){o.dotlottieplayerwasm_set_loop(this.__wbg_ptr,t)}set_mode(t){o.dotlottieplayerwasm_set_mode(this.__wbg_ptr,t)}sm_start(t,e){let r=gt(e,o.__wbindgen_malloc_command_export),s=c;return o.dotlottieplayerwasm_sm_start(this.__wbg_ptr,t,r,s)!==0}theme_id(){let t=o.dotlottieplayerwasm_theme_id(this.__wbg_ptr),e;return t[0]!==0&&(e=h(t[0],t[1]).slice(),o.__wbindgen_free_command_export(t[0],t[1]*1,1)),e}load_font(t,e){let r=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),s=c,i=W(e,o.__wbindgen_malloc_command_export),_=c;return o.dotlottieplayerwasm_load_font(this.__wbg_ptr,r,s,i,_)!==0}set_frame(t){return o.dotlottieplayerwasm_set_frame(this.__wbg_ptr,t)!==0}set_speed(t){o.dotlottieplayerwasm_set_speed(this.__wbg_ptr,t)}set_theme(t){let e=p(t,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),r=c;return o.dotlottieplayerwasm_set_theme(this.__wbg_ptr,e,r)!==0}sm_status(){let t,e;try{let r=o.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return t=r[0],e=r[1],h(r[0],r[1])}finally{o.__wbindgen_free_command_export(t,e,1)}}};async function wt(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(r){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n",r);else throw r}let e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{let e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function vt(){let n={};return n.wbg={},n.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},n.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764=function(){return M(function(t,e){let r=URL.createObjectURL(e),s=p(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=c;L().setInt32(t+4,i,!0),L().setInt32(t+0,s,!0)},arguments)},n.wbg.__wbg_ended_b873fb75d0c13ca7=function(t){return t.ended},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let r,s;try{r=t,s=e,console.error(h(t,e))}finally{o.__wbindgen_free_command_export(r,s,1)}},n.wbg.__wbg_new_405e22f390576ce2=function(){return new Object},n.wbg.__wbg_new_78feb108b6472713=function(){return new Array},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},n.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},n.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,e,r){return new Uint8Array(t,e>>>0,r>>>0)},n.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(t){return new Float32Array(t>>>0)},n.wbg.__wbg_newwithsrc_20307ca7e8762a81=function(){return M(function(t,e){return new Audio(h(t,e))},arguments)},n.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127=function(){return M(function(t,e){return new Blob(t,e)},arguments)},n.wbg.__wbg_pause_b74c96d69f769518=function(){return M(function(t){t.pause()},arguments)},n.wbg.__wbg_play_f6ec5fc4e84b0d26=function(){return M(function(t){return t.play()},arguments)},n.wbg.__wbg_push_737cfc8c1432c2c6=function(t,e){return t.push(e)},n.wbg.__wbg_revokeObjectURL_27267efebeb457c7=function(){return M(function(t,e){URL.revokeObjectURL(h(t,e))},arguments)},n.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return M(function(t,e,r){return Reflect.set(t,e,r)},arguments)},n.wbg.__wbg_setcurrentTime_64727eddd3966512=function(t,e){t.currentTime=e},n.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(t,e,r){t[e>>>0]=r},n.wbg.__wbg_settype_39ed370d3edd403c=function(t,e,r){t.type=h(e,r)},n.wbg.__wbg_setvolume_3895e06a030ca4f7=function(t,e){t.volume=e},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){let r=e.stack,s=p(r,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),i=c;L().setInt32(t+4,i,!0),L().setInt32(t+0,s,!0)}
54,n.wbg.__wbindgen_init_externref_table=function(){let t=o.__wbindgen_export_4,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},n.wbg.__wbindgen_memory=function(){return o.memory},n.wbg.__wbindgen_number_new=function(t){return t},n.wbg.__wbindgen_string_get=function(t,e){let r=e,s=typeof r=="string"?r:void 0;var i=ht(s)?0:p(s,o.__wbindgen_malloc_command_export,o.__wbindgen_realloc_command_export),_=c;L().setInt32(t+4,_,!0),L().setInt32(t+0,i,!0)},n.wbg.__wbindgen_string_new=function(t,e){return h(t,e)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(h(t,e))},n}function bt(n,t){return o=n.exports,rt.__wbindgen_wasm_module=t,C=null,R=null,x=null,o.__wbindgen_start(),o}async function rt(n){if(o!==void 0)return o;if(typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u")throw new Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");let t=vt();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));let{instance:e,module:r}=await wt(await n,t);return bt(e,r)}var ot=rt;var $=class{constructor(){l(this,"_eventListeners",new Map)}addEventListener(t,e){let r=this._eventListeners.get(t);r||(r=new Set,this._eventListeners.set(t,r)),r.add(e)}removeEventListener(t,e){let r=this._eventListeners.get(t);r&&(e?(r.delete(e),r.size===0&&this._eventListeners.delete(t)):this._eventListeners.delete(t))}dispatch(t){this._eventListeners.get(t.type)?.forEach(r=>r(t))}removeAllEventListeners(){this._eventListeners.clear()}};var f=class f{static _initializeObserver(){if(f._observer)return;let t=e=>{e.forEach(r=>{let s=f._observedCanvases.get(r.target);s&&(r.isIntersecting?s.unfreeze():s.freeze())})};f._observer=new IntersectionObserver(t,{threshold:0})}static observe(t,e){f._initializeObserver(),!f._observedCanvases.has(t)&&(f._observedCanvases.set(t,e),f._observer?.observe(t))}static unobserve(t){f._observer?.unobserve(t),f._observedCanvases.delete(t),f._observedCanvases.size===0&&(f._observer?.disconnect(),f._observer=null)}};l(f,"_observer",null),l(f,"_observedCanvases",new Map);var y=f;var m=class m{static _initializeObserver(){if(m._observer)return;let t=e=>{e.forEach(r=>{let s=m._observedCanvases.get(r.target);if(!s)return;let[i,_]=s;clearTimeout(_);let d=setTimeout(()=>{i.resize()},100);m._observedCanvases.set(r.target,[i,d])})};m._observer=new ResizeObserver(t)}static observe(t,e){m._initializeObserver(),!m._observedCanvases.has(t)&&(m._observedCanvases.set(t,[e,0]),m._observer?.observe(t))}static unobserve(t){let e=m._observedCanvases.get(t);if(e){let r=e[1];r&&clearTimeout(r)}m._observer?.unobserve(t),m._observedCanvases.delete(t),!m._observedCanvases.size&&m._observer&&(m._observer.disconnect(),m._observer=null)}};l(m,"_observer",null),l(m,"_observedCanvases",new Map);var E=m;function yt(n){return/^#([\\da-f]{6}|[\\da-f]{8})$/iu.test(n)}function st(n){if(!yt(n))return[0,0,0,0];let t=n.replace("#","");t=t.length===6?`${t}ff`:t;let e=parseInt(t.slice(0,2),16)/255,r=parseInt(t.slice(2,4),16)/255,s=parseInt(t.slice(4,6),16)/255,i=parseInt(t.slice(6,8),16)/255;return[e,r,s,i]}function G(n){if(n.byteLength<4)return!1;let t=new Uint8Array(n.slice(0,F.byteLength));for(let e=0;e<F.length;e+=1)if(F[e]!==t[e])return!1;return!0}function Et(n){return X.every(t=>Object.hasOwn(n,t))}function H(n){return typeof n=="string"?/^\\s*\\{/u.test(n)&&/\\}\\s*$/u.test(n):Et(n)}function J(){return 1+((g?window.devicePixelRatio:1)-1)*Z}function k(n){let t=n.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>e||t.right<0||t.left>r)}function I(n){let t=n.target;if(t instanceof HTMLCanvasElement){let e=t.getBoundingClientRect();if(e.width===0||e.height===0||t.width===0||t.height===0)return null;let r=t.width/e.width,s=t.height/e.height,i=(n.clientX-e.left)*r,_=(n.clientY-e.top)*s;return!Number.isFinite(i)||!Number.isFinite(_)||Number.isNaN(i)||Number.isNaN(_)?null:{x:i,y:_}}return null}function Mt(n){return new Promise((t,e)=>{let r=new FileReader;r.onerror=()=>e(r.error??new Error("Failed to read image slot source")),r.onload=()=>
54t(r.result),r.readAsDataURL(n)})}async function it(n){if(!/^https?:\\/\\//i.test(n))return n;let t=await fetch(n);if(!t.ok)throw new Error(`Failed to fetch image slot source from URL: ${n}. ${t.status}: ${t.statusText}`);return Mt(await t.blob())}function at(n){let t=n.replace("OpenUrl: ",""),e=t.indexOf(" | Target: "),r,s;e===-1?(r=t,s="_blank"):(r=t.substring(0,e),s=t.substring(e+11)),window.open(r,s)}function ct(n,t,e){let r=null,s=t;async function i(d){await n({module_or_path:d})}async function _(d){let u=await fetch(d);if(!u.ok)throw new Error(`fetch ${d} responded with ${u.status} ${u.statusText}`);let T=await u.arrayBuffer();await n({module_or_path:T})}return{load(){if(!r){let d=s,u=e;r=(async()=>{let T,Y;try{await i(d);return}catch(v){T=v,console.warn(`Primary WASM load failed from ${d}: ${v.message}`),console.warn(`Attempting to load WASM from backup URL: ${u}`)}try{await i(u);return}catch(v){Y=v,console.warn(`Backup WASM load failed from ${u}: ${v.message}`)}console.warn("Retrying WASM load with buffered instantiation");try{await _(d);return}catch(v){console.warn(`Buffered WASM load from ${d} failed: ${v.message}`)}try{await _(u);return}catch(v){throw console.error(`Primary WASM URL failed: ${T.message}`),console.error(`Backup WASM URL failed: ${Y.message}`),console.error(`Buffered fallback failed: ${v.message}`),r=null,new Error("WASM loading failed from all sources.")}})()}return r},setWasmUrl(d){d!==s&&(s=d,r=null)}}}var _t=null;function D(){return _t??(_t=ct(ot,`https://cdn.jsdelivr.net/npm/${N}@${U}/dist/dotlottie-player.wasm`,`https://unpkg.com/${N}@${U}/dist/dotlottie-player.wasm`)),_t}var j=n=>{switch(n){case"reverse":return b.Reverse;case"bounce":return b.Bounce;case"reverse-bounce":return b.ReverseBounce;default:return b.Forward}},dt=n=>{switch(n){case b.Reverse:return"reverse";case b.Bounce:return"bounce";case b.ReverseBounce:return"reverse-bounce";default:return"forward"}},Ct=n=>{switch(n){case"contain":return"contain";case"cover":return"cover";case"fill":return"fill";case"fit-height":return"fit-height";case"fit-width":return"fit-width";case"none":return"none";default:return"contain"}},S=class{constructor(t){l(this,"_canvas",null);l(this,"_pendingLoad",null);l(this,"_srcFetchAbort",null);l(this,"_context",null);l(this,"_eventManager");l(this,"_animationFrameId",null);l(this,"_frameManager");l(this,"_boundAnimationLoop");l(this,"_dotLottieCore",null);l(this,"_stateMachineId","");l(this,"_stateMachineConfig",null);l(this,"_isStateMachineRunning",!1);l(this,"_renderConfig",{});l(this,"_isFrozen",!1);l(this,"_backgroundColor",null);l(this,"_lastFrameTime",null);l(this,"_boundOnClick",null);l(this,"_boundOnPointerUp",null);l(this,"_boundOnPointerDown",null);l(this,"_boundOnPointerMove",null);l(this,"_boundOnPointerEnter",null);l(this,"_boundOnPointerLeave",null);l(this,"_bufferMismatchCount",0);l(this,"_lastExpectedBufferSize",0);l(this,"_cachedImageData",null);l(this,"_cachedImageDataBuffer",null);l(this,"_cachedImageDataByteOffset",0);l(this,"_marker","");l(this,"_segment",null);this._canvas=t.canvas??null,this._eventManager=new $,this._frameManager=new A,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...t.renderConfig,devicePixelRatio:t.renderConfig?.devicePixelRatio||J(),freezeOnOffscreen:t.renderConfig?.freezeOnOffscreen??!0};let e=null;t.src&&!t.data&&(this._srcFetchAbort=new AbortController,e=this._fetchData(t.src,this._srcFetchAbort.signal),e.catch(()=>{})),this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(t.autoplay??!1),this._dotLottieCore.set_loop(t.loop??!1),this._dotLottieCore.set_loop_count(t.loopCount??0),this._dotLottieCore.set_mode(j(t.mode??"forward")),this._dotLottieCore.set_speed(t.speed??1),this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation??!0),t.segment&&t.segment.length===2&&(this._segment=[t.segment[0],t.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])),this._marker=t.marker??"",this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(t.layout?.fit??"contain",t.layout?.align?.[0]??.5,t.layout?.align?.[1]??.5),this._stateMachineId=t.stateMachineId??"",this._stateMachineConfig=t.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:"ready"}
54),t.data?this._canvas?this._loadFromData(t.data):this._pendingLoad={data:t.data}:t.src&&(this._canvas?this._loadFromSrc(t.src,e):this._pendingLoad={src:t.src,dataPromise:e}),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor)}).catch(r=>{this._srcFetchAbort?.abort(),console.error("[dotlottie-web] Initialization failed:",r),this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${r}`)})})}async _initWasm(){return D().load()}_createCore(){return new B}_onCoreCreated(){}_setupTarget(t,e){return this._dotLottieCore?this._dotLottieCore.setup_sw_target(t,e):!1}_drainPlayerEvents({skipFrame:t=!1}={}){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.poll_event())!==null&&e!==void 0;){let r=e;switch(r.type){case"Load":setTimeout(()=>this._eventManager.dispatch({type:"load"}),0);break;case"LoadError":setTimeout(()=>this._eventManager.dispatch({type:"loadError",error:new Error("failed to load")}),0);break;case"Play":queueMicrotask(()=>this._eventManager.dispatch({type:"play"}));break;case"Pause":queueMicrotask(()=>this._eventManager.dispatch({type:"pause"}));break;case"Stop":queueMicrotask(()=>this._eventManager.dispatch({type:"stop"}));break;case"Frame":t||queueMicrotask(()=>this._eventManager.dispatch({type:"frame",currentFrame:r.frameNo??0}));break;case"Render":t||queueMicrotask(()=>this._eventManager.dispatch({type:"render",currentFrame:r.frameNo??0}));break;case"Loop":queueMicrotask(()=>this._eventManager.dispatch({type:"loop",loopCount:r.loopCount??0}));break;case"Complete":queueMicrotask(()=>this._eventManager.dispatch({type:"complete"}));break;default:break}}}_discardPlayerEvents(){for(;this._dotLottieCore?.poll_event()!=null;);}_drainSmEvents(){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.sm_poll_event())!==null&&t!==void 0;){let r=t;switch(r.type){case"Start":queueMicrotask(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()});break;case"Stop":queueMicrotask(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),this._dotLottieCore?.status()!==w.Playing&&this._stopAnimationLoop()});break;case"CustomEvent":this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:r.message??""});break;case"BooleanInputChange":this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:r.name??"",newValue:r.newValue,oldValue:r.oldValue});break;case"NumericInputChange":this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:r.name??"",newValue:r.newValue,oldValue:r.oldValue});break;case"StringInputChange":this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:r.name??"",newValue:r.newValue,oldValue:r.oldValue});break;case"InputFired":this._eventManager.dispatch({type:"stateMachineInputFired",inputName:r.name??""});break;case"Transition":this._eventManager.dispatch({type:"stateMachineTransition",fromState:r.previousState??"",toState:r.newState??""});break;case"StateEntered":this._eventManager.dispatch({type:"stateMachineStateEntered",state:r.state??""});break;case"StateExit":this._eventManager.dispatch({type:"stateMachineStateExit",state:r.state??""});break;case"Error":this._eventManager.dispatch({type:"stateMachineError",error:r.message??""});break;default:break}}let e;for(;(e=this._dotLottieCore.sm_poll_internal_event())!==null&&e!==void 0;){let r=e;if(r.type==="Message"){let s=r.message??"";g&&s.startsWith("OpenUrl: ")?at(s):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:s})}}}_dispatchError(t){console.error(t),this._eventManager.dispatch({type:"loadError",error:new Error(t)})}async _fetchData(t,e=null){let r=await fetch(t,{signal:e});if(!r.ok)throw new Error(`Failed to fetch animation data from URL: ${t}. ${r.status}: ${r.statusText}`);let s=await r.arrayBuffer();return G(s)?s:new TextDecoder().decode(s)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn("[dotlottie-web] Cannot load animation without canvas. Call setCanvas() f
54irst.");return}this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height);let e=!1;if(typeof t=="string"){if(e=this._dotLottieCore.load_animation(t),!e&&!H(t)){this._discardPlayerEvents(),this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");return}}else if(t instanceof ArrayBuffer){if(!G(t)){this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");return}e=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t))}else if(typeof t=="object"){if(!H(t)){this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");return}e=this._dotLottieCore.load_animation(JSON.stringify(t))}else{this._dispatchError(`Unsupported data type for animation data. Expected:\n - string (Lottie JSON),\n - ArrayBuffer (dotLottie),\n - object (Lottie JSON).\n Received: ${typeof t}`);return}if(e){if(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents({skipFrame:!!this._marker||!!this._segment}),this._marker&&this._dotLottieCore.set_marker(this._marker),this._segment){this._dotLottieCore.set_segment(this._segment[0],this._segment[1]);let r=dt(this._dotLottieCore.mode()),s=r==="reverse"||r==="reverse-bounce"?this._segment[1]:this._segment[0];this._dotLottieCore.set_frame(s)}setTimeout(()=>{this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame})},0),this._dotLottieCore.render(),this._drainPlayerEvents(),this._draw(),this._stateMachineId?this.stateMachineLoad(this._stateMachineId)&&this.stateMachineStart()&&this._startAnimationLoop():this._dotLottieCore.status()===w.Playing&&this._startAnimationLoop(),g&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(y.observe(this._canvas,this),k(this._canvas)||this.freeze()),this._renderConfig.autoResize&&E.observe(this._canvas,this))}else this._drainPlayerEvents()}_loadFromSrc(t,e){(e??this._fetchData(t)).then(r=>this._loadFromData(r)).catch(r=>this._dispatchError(`Failed to load animation data from URL: ${t}. ${r}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){return this._dotLottieCore?.animation_id()??void 0}get activeThemeId(){return this._dotLottieCore?.theme_id()??void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:Ct(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??""}get manifest(){try{let t=this._dotLottieCore?.manifest_string();if(this._dotLottieCore===null||!t)return null;let e=JSON.parse(t);return Object.keys(e).length===0?null:e}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(this._dotLottieCore)return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){return this._dotLottieCore?.loop_animation()??!1}get mode(){return this._dotLottieCore?dt(this._dotLottieCore.mode()):"forward"}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.autoplay()??!1}get useFrameInterpolation(){return this._dotLottieCore?.use_frame_interpolation()??!1}get speed(){return this._dotLottieCore?.speed()??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return(this._dotLottieCore?.status()??w.Idle)!==w.Idle}get isPlaying(){return this._dotLottieCore?.status()===w.Playing}get isPaused(){return this._dotLottieCore?.status()===w.Paused}get isStopped(){return this._dotLottieCore?.status()===w.Stopped}get currentFrame(){return this._dotLottieCore?Math.round(this._dotLottieCore.current_frame()*100)/100:0}get loopCount(){return this._dotLottieCore?.current_loop_count()??0}get totalFrames(){return this._dotLottieCore?.total_frames()??0}get duration(){return(this._dotLottieCore?.duration()??0)/1e3}
vendor: 5,490 bytes, line 54
54get canvas(){return this._canvas}load(t){this._dotLottieCore!==null&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(t.autoplay??!1),this._dotLottieCore.set_loop(t.loop??!1),this._dotLottieCore.set_loop_count(t.loopCount??0),this._dotLottieCore.set_mode(j(t.mode??"forward")),this._dotLottieCore.set_speed(t.speed??1),this._dotLottieCore.set_use_frame_interpolation(t.useFrameInterpolation??!0),t.segment&&t.segment.length===2?(this._segment=[t.segment[0],t.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])):(this._segment=null,this._dotLottieCore.clear_segment()),this._marker=t.marker??"",this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(t.layout?.fit??"contain",t.layout?.align?.[0]??.5,t.layout?.align?.[1]??.5),t.data?this._canvas?this._loadFromData(t.data):this._pendingLoad={data:t.data}:t.src&&(this._canvas?this._loadFromSrc(t.src):this._pendingLoad={src:t.src}),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor))}_draw(){if(this._dotLottieCore===null||this._canvas===null||(!this._context&&"getContext"in this._canvas&&typeof this._canvas.getContext=="function"&&(!g||typeof HTMLCanvasElement<"u"&&this._canvas instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext("2d")),!this._context))return;let t=this._dotLottieCore.get_pixel_buffer(),e=this._canvas.width,r=this._canvas.height,s=e*r*Q;if(t.byteLength!==s){this._lastExpectedBufferSize===s?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=s),this._bufferMismatchCount===10&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${s} bytes for canvas ${e}x${r}, but got ${t.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=s;let i=this._cachedImageData;if(!(i!==null&&i.width===e&&i.height===r&&i.data.byteLength===s&&this._cachedImageDataBuffer===t.buffer&&this._cachedImageDataByteOffset===t.byteOffset)){if(typeof ImageData>"u")this._cachedImageData=this._context.createImageData(e,r);else{let d=new Uint8ClampedArray(t.buffer,t.byteOffset,t.byteLength);this._cachedImageData=new ImageData(d,e,r)}this._cachedImageDataBuffer=t.buffer,this._cachedImageDataByteOffset=t.byteOffset}if(typeof ImageData>"u"){let d=new Uint8ClampedArray(t.buffer,t.byteOffset,t.byteLength);this._cachedImageData.data.set(d)}this._context.putImageData(this._cachedImageData,0,0)}_cleanupCanvas(){this._canvas&&g&&this._canvas instanceof HTMLCanvasElement&&(y.unobserve(this._canvas),E.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&g&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(y.observe(this._canvas,this),k(this._canvas)||this.freeze()),this._renderConfig.autoResize&&E.observe(this._canvas,this),this._isStateMachineRunning&&this._setupStateMachineListeners()),this._canvas&&this._dotLottieCore&&this.isLoaded&&this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}_setupRendererOnCanvas(){this._context=null}_stopAnimationLoop(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),this._lastFrameTime=null}_startAnimationLoop(){this._animationFrameId===null&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.status()===w.Playing||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(t){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(this._dotLottieCore.status()!==w.Playing&&!this._isStateMachineRunning){this._stopAnimationLoop();return}try{let e=this._lastFrameTime!==null?t-this._lastFrameTime:0;this._lastFrameTime=t;let r=this._isStateMachineRunning?this._dotLottieCore.sm_tick(e):this._dotLottieCore.tick(e);this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),r&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop)}catch(e){console.error("Error in animation frame:",e),this._eventManager.dispatch({type:"renderError",error:e}),e instanceof WebAssembly.RuntimeError&&this.destroy()}}play(){if(this._dotLottieCore===null||!this.isLoaded)return;this._stopAnimationLoop();let t=this._dotLottieCore.play();this._drainPlayerEvents(),(t||this._dotLottieCore.status()===w.Playing)&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&g&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!k(this._canvas)&&this.freeze()}pause(){this._dotLottieCore!==null&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(this._dotLottieCore===null)return;let t=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),t&&(this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(t){if(this._dotLottieCore===null)return;if(this._dotLottieCore.set_frame(t)){let r=this._dotLottieCore.render();this._drainPlayerEvents(),r&&this._draw()}}setSpeed(t){this._dotLottieCore!==null&&this._dotLottieCore.set_speed(t)}
vendor: 6,482 bytes, line 54
54setBackgroundColor(t){if(this._dotLottieCore!==null){if(g&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=t;else{let[e,r,s,i]=st(t);this._dotLottieCore.set_background(e,r,s,i)}this._backgroundColor=t}}setLoop(t){this._dotLottieCore!==null&&this._dotLottieCore.set_loop(t)}setLoopCount(t){this._dotLottieCore!==null&&this._dotLottieCore.set_loop_count(t)}setUseFrameInterpolation(t){this._dotLottieCore!==null&&this._dotLottieCore.set_use_frame_interpolation(t)}addEventListener(t,e){this._eventManager.addEventListener(t,e)}removeEventListener(t,e){this._eventManager.removeEventListener(t,e)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),this._srcFetchAbort?.abort(),this._srcFetchAbort=null,this._pendingLoad=null;let t=this._dotLottieCore;if(this._dotLottieCore=null,this._context=null,t)try{t.free()}catch(e){console.warn("[dotlottie-web] Error freeing wasm core during destroy:",e)}this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}),this._startAnimationLoop())}_syncCanvasSize(){if(!(g&&this._canvas instanceof HTMLCanvasElement))return;let t=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:e,width:r}=this._canvas.getBoundingClientRect();e!==0&&r!==0&&(this._canvas.width=r*t,this._canvas.height=e*t)}resize(){if(!this._dotLottieCore||!this.isLoaded||!this._canvas)return;this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}setCanvas(t){if(!(!t||this._canvas===t)&&(this._canvas&&this._cleanupCanvas(),this._canvas=t,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src,e.dataPromise)}}setTransform(t){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.set_transform(new Float32Array(t));return e&&this._dotLottieCore.render()&&this._draw(),e}getTransform(){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_transform();return Array.from(t)}setSegment(t,e){this._dotLottieCore!==null&&(this._segment=[t,e],this._dotLottieCore.set_segment(t,e))}resetSegment(){this._dotLottieCore!==null&&(this._segment=null,this._dotLottieCore.clear_segment())}setMode(t){this._dotLottieCore!==null&&this._dotLottieCore.set_mode(j(t))}setRenderConfig(t){let{devicePixelRatio:e,freezeOnOffscreen:r,quality:s,...i}=t;this._renderConfig={...this._renderConfig,...i,devicePixelRatio:e||J(),freezeOnOffscreen:r??!0,...s!==void 0&&{quality:s}},s!==void 0&&this._dotLottieCore&&this._dotLottieCore.set_quality(s),g&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?E.observe(this._canvas,this):E.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(y.observe(this._canvas,this),k(this._canvas)||this.freeze()):(y.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(t){if(this._dotLottieCore===null||this._dotLottieCore.animation_id()===t||!this._canvas)return;this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height),this._dotLottieCore.load_animation_from_id(t)?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${t}`)}setMarker(t){if(this._dotLottieCore===null)return;this.markers().some(s=>s.name===t)?(this._marker=t,this._dotLottieCore.set_marker(t)):(this._marker="",this._segment=null,this._dotLottieCore.clear_marker(),this._dotLottieCore.clear_segment())}markers(){let t=this._dotLottieCore?.markers();return t&&Array.isArray(t)?t:[]}setTheme(t){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.set_theme(t);return e&&(this._dotLottieCore.render(),this._draw()),e}resetTheme(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_theme();return t&&(this._dotLottieCore.render(),this._draw()),t}setThemeData(t){if(this._dotLottieCore===null)return!1;let e=typeof t=="string"?t:JSON.stringify(t),r=this._dotLottieCore.set_theme_data(e);return r&&(this._dotLottieCore.render(),this._draw()),r}setSlots(t){this._dotLottieCore!==null&&this._dotLottieCore.set_slots_str(JSON.stringify(t))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"&&t[0]!==null&&"t"in t[0]&&"s"in t[0]}getSlotIds(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.get_slot_ids();return Array.isArray(t)?t:[]}getSlotType(t){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_slot_type(t);if(e)return e}getSlot(t){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_slot_str(t);if(e)try{return JSON.parse(e)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(t,e){if(this._dotLottieCore===null)return!1;let r=this._isKeyframeArray(e),s=JSON.stringify({a:r?1:0,k:e}),i=this._dotLottieCore.set_slot_str(t,s);return this._dotLottieCore.render(),this._draw(),i}setScalarSlot(t,e){if(this._dotLottieCore===null)return!1;let s=JSON.stringify({a:typeof e!="number"?1:0,k:e}),i=this._dotLottieCore.set_slot_str(t,s);return this._dotLottieCore.render(),this._draw(),i}setVectorSlot(t,e){if(this._dotLottieCore===null)return!1;let r=this._isKeyframeArray(e),s=JSON.stringify({a:r?1:0,k:e}),i=this._dotLottieCore.set_slot_str(t,s);return this._dotLottieCore.render(),this._draw(),i}setGradientSlot(t,e,r){if(this._dotLottieCore===null)return!1;let s=this._isKeyframeArray(e),i=JSON.stringify({k:{a:s?1:0,k:e},p:r}),_=this._dotLottieCore.set_slot_str(t,i);return this._dotLottieCore.render(),this._draw(),_}setTextSlot(t,e){if(this._dotLottieCore===null)return!1;let r=this._dotLottieCore.get_slot_str(t),s=e;if(r){let d=JSON.parse(r);if(d&&"k"in d&&Array.isArray(d.k)){let u=d.k[0];"s"in u&&typeof u.s=="object"&&(s={...u.s,...e})}}let i=JSON.stringify({a:0,k:[{t:0,s}]}),_=this._dotLottieCore.set_slot_str(t,i);return this._dotLottieCore.render(),this._draw(),_}async setImageSlot(t,e){if(this._dotLottieCore===null)return!1;let r=await it(e);
vendor: 6,693 bytes, line 54
54if(this._dotLottieCore===null)return!1;let s=this._dotLottieCore.set_image_slot(t,r);return this._dotLottieCore.render(),this._draw(),s}resetSlot(t){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_slot(t);return this._dotLottieCore.render(),this._draw(),e}clearSlot(t){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.clear_slot(t);return this._dotLottieCore.render(),this._draw(),e}resetSlots(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),t}clearSlots(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),t}setLayout(t){this._dotLottieCore!==null&&this._dotLottieCore.set_layout(t.fit??"contain",t.align?.[0]??.5,t.align?.[1]??.5)}setViewport(t,e,r,s){return this._dotLottieCore===null?!1:this._dotLottieCore.set_viewport(t,e,r,s)}static setWasmUrl(t){D().setWasmUrl(t)}static preload(){return D().load()}static async registerFont(t,e){try{await D().load();let r;if(typeof e=="string"){let i=await fetch(e);if(!i.ok)return console.error(`Failed to fetch font from URL: ${e}. Status: ${i.status}`),!1;r=new Uint8Array(await i.arrayBuffer())}else e instanceof Uint8Array?r=e:r=new Uint8Array(e);let s=nt(t,r);return s||console.error(`Failed to register font "${t}". Font data may be invalid.`),s}catch(r){return console.error(`Error registering font "${t}":`,r),!1}}animationSize(){let t=this._dotLottieCore?.animation_size();return{width:t?.[0]??0,height:t?.[1]??0}}stateMachineLoad(t){return this._dotLottieCore?this._dotLottieCore.state_machine_load_from_id(t):!1}stateMachineLoadData(t){return this._dotLottieCore?this._dotLottieCore.state_machine_load(t):!1}stateMachineSetConfig(t){this._stateMachineConfig=t}stateMachineStart(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),t&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),t}stateMachineStop(){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.sm_stop();return this._drainSmEvents(),t&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.status()!==w.Playing&&this._stopAnimationLoop()),t}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??""}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??""}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??""}stateMachineOverrideState(t,e=!1){return this._dotLottieCore?.sm_override_current_state(t,e)??!1}stateMachineSetSeed(t){return this._dotLottieCore?.sm_set_seed(BigInt(Math.trunc(t)))??!1}stateMachineGet(t){return this._dotLottieCore?.get_state_machine(t)??""}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.sm_framework_setup();return Array.isArray(t)?t:[]}stateMachineSetBooleanInput(t,e){return this._dotLottieCore?.sm_set_boolean_input(t,e)??!1}stateMachineSetNumericInput(t,e){return this._dotLottieCore?.sm_set_numeric_input(t,e)??!1}stateMachineSetStringInput(t,e){return this._dotLottieCore?.sm_set_string_input(t,e)??!1}stateMachineGetBooleanInput(t){return this._dotLottieCore?.sm_get_boolean_input(t)??void 0}stateMachineGetNumericInput(t){return this._dotLottieCore?.sm_get_numeric_input(t)??void 0}stateMachineGetStringInput(t){return this._dotLottieCore?.sm_get_string_input(t)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.sm_get_inputs();return Array.isArray(t)?t:[]}stateMachineFireEvent(t){this._dotLottieCore?.sm_fire(t)}stateMachinePostClickEvent(t,e){this._dotLottieCore?.sm_post_click(t,e)}stateMachinePostPointerUpEvent(t,e){this._dotLottieCore?.sm_post_pointer_up(t,e)}stateMachinePostPointerDownEvent(t,e){this._dotLottieCore?.sm_post_pointer_down(t,e)}stateMachinePostPointerMoveEvent(t,e){this._dotLottieCore?.sm_post_pointer_move(t,e)}stateMachinePostPointerEnterEvent(t,e){this._dotLottieCore?.sm_post_pointer_enter(t,e)}stateMachinePostPointerExitEvent(t,e){this._dotLottieCore?.sm_post_pointer_exit(t,e)}_onClick(t){let e=I(t);e&&this.stateMachinePostClickEvent(e.x,e.y)}_onPointerUp(t){let e=I(t);e&&this.stateMachinePostPointerUpEvent(e.x,e.y)}_onPointerDown(t){let e=I(t);e&&this.stateMachinePostPointerDownEvent(e.x,e.y)}_onPointerMove(t){let e=I(t);e&&this.stateMachinePostPointerMoveEvent(e.x,e.y)}_onPointerEnter(t){let e=I(t);e&&this.stateMachinePostPointerEnterEvent(e.x,e.y)}_onPointerLeave(t){let e=I(t);e&&this.stateMachinePostPointerExitEvent(e.x,e.y)}_setupStateMachineListeners(){if(g&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieCore!==null&&this.isLoaded){let t=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),t.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),t.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),t.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),t.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),t.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),t.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){g&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener("click",this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener("pointerup",this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener("pointerdown",this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener("pointermove",this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener("pointerenter",this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener("pointerleave",this._boundOnPointerLeave),this._boundOnPointerLeave=null))}};var a=new Map,Lt={ready:n=>
54t=>{let e={id:"",method:"onReady",result:{instanceId:n,event:t}};self.postMessage(e)},complete:n=>t=>{let e={id:"",method:"onComplete",result:{instanceId:n,event:t}};self.postMessage(e)},load:n=>t=>{let r={id:"",method:"onLoad",result:{instanceId:n,event:t}};self.postMessage(r)},loadError:n=>t=>{let r={id:"",method:"onLoadError",result:{instanceId:n,event:t}};self.postMessage(r)},renderError:n=>t=>{let r={id:"",method:"onRenderError",result:{instanceId:n,event:t}};self.postMessage(r)},loop:n=>t=>{let r={id:"",method:"onLoop",result:{instanceId:n,event:t}};self.postMessage(r)},play:n=>t=>{let r={id:"",method:"onPlay",result:{instanceId:n,event:t}};self.postMessage(r)},pause:n=>t=>{let r={id:"",method:"onPause",result:{instanceId:n,event:t}};self.postMessage(r)},stop:n=>t=>{let r={id:"",method:"onStop",result:{instanceId:n,event:t}};self.postMessage(r)},frame:n=>t=>{let r={id:"",method:"onFrame",result:{instanceId:n,event:t}};self.postMessage(r)},render:n=>t=>{let r={id:"",method:"onRender",result:{instanceId:n,event:t}};self.postMessage(r)},freeze:n=>t=>{let r={id:"",method:"onFreeze",result:{instanceId:n,event:t}};self.postMessage(r)},unfreeze:n=>t=>{let r={id:"",method:"onUnfreeze",result:{instanceId:n,event:t}};self.postMessage(r)},destroy:n=>t=>{let r={id:"",method:"onDestroy",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineStart:n=>t=>{let r={id:"",method:"onStateMachineStart",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineStop:n=>t=>{let r={id:"",method:"onStateMachineStop",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineTransition:n=>t=>{let r={id:"",method:"onStateMachineTransition",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineStateEntered:n=>t=>{let r={id:"",method:"onStateMachineStateEntered",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineStateExit:n=>t=>{let r={id:"",method:"onStateMachineStateExit",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineCustomEvent:n=>t=>{let r={id:"",method:"onStateMachineCustomEvent",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineError:n=>t=>{let r={id:"",method:"onStateMachineError",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineBooleanInputValueChange:n=>t=>{let r={id:"",method:"onStateMachineBooleanInputValueChange",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineNumericInputValueChange:n=>t=>{let r={id:"",method:"onStateMachineNumericInputValueChange",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineStringInputValueChange:n=>t=>{let r={id:"",method:"onStateMachineStringInputValueChange",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineInputFired:n=>t=>{let r={id:"",method:"onStateMachineInputFired",result:{instanceId:n,event:t}};self.postMessage(r)},stateMachineInternalMessage:n=>t=>{let r={id:"",method:"onStateMachineInternalMessage",result:{instanceId:n,event:t}};self.postMessage(r)}},K
vendor: 6,128 bytes, line 54
54={setTransform(n){let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.setTransform(n.params.transform)},getTransform(n){let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.getTransform()},getDotLottieInstanceState(n){let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return{state:{loopCount:e.loopCount,isLoaded:e.isLoaded,isPaused:e.isPaused,isPlaying:e.isPlaying,isStopped:e.isStopped,isFrozen:e.isFrozen,loop:e.loop,mode:e.mode,speed:e.speed,currentFrame:e.currentFrame,totalFrames:e.totalFrames,duration:e.duration,useFrameInterpolation:e.useFrameInterpolation,renderConfig:e.renderConfig,marker:e.marker,backgroundColor:e.backgroundColor,markers:e.markers(),activeAnimationId:e.activeAnimationId,activeThemeId:e.activeThemeId,autoplay:e.autoplay,segment:e.segment,layout:e.layout,isReady:e.isReady,manifest:e.manifest}}},setLayout(n){let t=n.params.instanceId,e=n.params.layout,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setLayout(e)},stateMachineGetListeners(n){let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.stateMachineGetListeners()},stateMachineStart(n){let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.stateMachineStart()},stateMachineStop(n){let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.stateMachineStop()},stateMachineLoad(n){let t=n.params.instanceId,e=n.params.stateMachineId,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineLoad(e)},stateMachineLoadData(n){let t=n.params.instanceId,e=n.params.stateMachineData,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineLoadData(e)},stateMachinePostClickEvent(n){let t=n.params.instanceId,e=n.params.x,r=n.params.y,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachinePostClickEvent(e,r)},stateMachinePostPointerUpEvent(n){let t=n.params.instanceId,e=n.params.x,r=n.params.y,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachinePostPointerUpEvent(e,r)},stateMachinePostPointerDownEvent(n){let t=n.params.instanceId,e=n.params.x,r=n.params.y,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachinePostPointerDownEvent(e,r)},stateMachinePostPointerMoveEvent(n){let t=n.params.instanceId,e=n.params.x,r=n.params.y,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachinePostPointerMoveEvent(e,r)},stateMachinePostPointerEnterEvent(n){let t=n.params.instanceId,e=n.params.x,r=n.params.y,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachinePostPointerEnterEvent(e,r)},stateMachinePostPointerExitEvent(n){let t=n.params.instanceId,e=n.params.x,r=n.params.y,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachinePostPointerExitEvent(e,r)},stateMachineSetNumericInput:n=>{let t=n.params.instanceId,e=n.params.name,r=n.params.value,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachineSetNumericInput(e,r)},stateMachineSetBooleanInput:n=>{let t=n.params.instanceId,e=n.params.name,r=n.params.value,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachineSetBooleanInput(e,r)},stateMachineSetConfig:n=>{let t=n.params.instanceId,e=n.params.config,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.stateMachineSetConfig(e)},stateMachineSetStringInput:n=>{let t=n.params.instanceId,e=n.params.name,r=n.params.value,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachineSetStringInput(e,r)},stateMachineGetNumericInput:n=>{let t=n.params.instanceId,e=n.params.name,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineGetNumericInput(e)},stateMachineGetBooleanInput:n=>{let t=n.params.instanceId,e=n.params.name,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineGetBooleanInput(e)},stateMachineGetStringInput:n=>{let t=n.params.instanceId,e=n.params.name,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineGetStringInput(e)},stateMachineGetInputs:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.stateMachineGetInputs()},stateMachineFireEvent:n=>{let t=n.params.instanceId,e=n.params.name,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineFireEvent(e)},stateMachineGetStatus:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.stateMachineGetStatus()},stateMachineGetCurrentState:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.stateMachineGetCurrentState()},stateMachineGetActiveId:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.stateMachineGetActiveId()},stateMachineOverrideState:n=>{let t=n.params.instanceId,e=n.params.state,r=n.params.immediate,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);return s.stateMachineOverrideState(e,r)},stateMachineSetSeed:n=>{let t=n.params.instanceId,e=n.params.seed,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineSetSeed(e)},stateMachineGet:n=>{let t=n.params.instanceId,e=n.params.stateMachineId,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.stateMachineGet(e)},create:n=>{let t=n.params.instanceId,e=n.params.config,r=n.params.width,s=n.params.height;if(a.has(t))throw new Error(`Instance with id ${t} already exists.`);let i=new
54S(e);return i.canvas&&(i.canvas.height=s,i.canvas.width=r),a.set(t,i),["complete","frame","load","loadError","renderError","loop","pause","play","stop","destroy","freeze","unfreeze","render","ready","stateMachineStart","stateMachineStop","stateMachineTransition","stateMachineStateEntered","stateMachineStateExit","stateMachineCustomEvent","stateMachineError","stateMachineBooleanInputValueChange","stateMachineNumericInputValueChange","stateMachineStringInputValueChange","stateMachineInputFired","stateMachineInternalMessage"].forEach(d=>{i.addEventListener(d,Lt[d](t))}),{instanceId:t}},destroy:n=>{let t=n.params.instanceId,e=a.get(t);e&&(e.destroy(),a.delete(t))},freeze:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);e.freeze()},load:n=>{let t=n.params.instanceId,e=n.params.config,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.load(e)},loadAnimation:n=>{let t=n.params.instanceId,e=n.params.animationId,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.loadAnimation(e)},setTheme:n=>{let t=n.params.instanceId,e=n.params.themeId,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.setTheme(e)},setThemeData:n=>{let t=n.params.instanceId,e=n.params.themeData,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);return r.setThemeData(e)},pause:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.pause()},play:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.play()},registerFont:async n=>{let{fontName:t,fontSource:e}=n.params;return S.registerFont(t,e)},resize:n=>{let t=n.params.instanceId,e=n.params.width,r=n.params.height,s=a.get(t);if(!s)throw new Error(`Instance with id ${t} does not exist.`);s.canvas&&(s.canvas.height=r,s.canvas.width=e),s.resize()},setBackgroundColor:n=>{let t=n.params.instanceId,e=n.params.backgroundColor,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setBackgroundColor(e)},setSlots:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);e.setSlots(n.params.slots)},getSlotIds:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.getSlotIds()},getSlotType:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.getSlotType(n.params.slotId)},getSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.getSlot(n.params.slotId)},getSlots:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.getSlots()},setColorSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.setColorSlot(n.params.slotId,n.params.value)},setScalarSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.setScalarSlot(n.params.slotId,n.params.value)},setVectorSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.setVectorSlot(n.params.slotId,n.params.value)},setGradientSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.setGradientSlot(n.params.slotId,n.params.value,n.params.colorStopCount)},setTextSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.setTextSlot(n.params.slotId,n.params.value)},setImageSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.setImageSlot(n.params.slotId,n.params.src)},resetSlot:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.resetSlot(n.params.slotId)},clearSlot:n=>{let t=n.params.instanceId,e=a.get(t);
54if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.clearSlot(n.params.slotId)},resetSlots:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.resetSlots()},clearSlots:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);return e.clearSlots()},setFrame:n=>{let t=n.params.instanceId,e=n.params.frame,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setFrame(e)},setMode:n=>{let t=n.params.instanceId,e=n.params.mode,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setMode(e)},setRenderConfig:n=>{let t=n.params.instanceId,e=n.params.renderConfig,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setRenderConfig(e)},setSegment:n=>{let t=n.params.instanceId,e=n.params.segment,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setSegment(e[0],e[1])},resetSegment:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);e.resetSegment()},setSpeed:n=>{let t=n.params.instanceId,e=n.params.speed,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setSpeed(e)},setUseFrameInterpolation:n=>{let t=n.params.instanceId,e=n.params.useFrameInterpolation,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setUseFrameInterpolation(e)},setWasmUrl:n=>{S.setWasmUrl(n.params.url)},stop:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);e.stop()},unfreeze:n=>{let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);e.unfreeze()},setViewport(n){let t=n.params.instanceId,e=n.params.x,r=n.params.y,s=n.params.width,i=n.params.height,_=a.get(t);if(!_)throw new Error(`Instance with id ${t} does not exist.`);return _.setViewport(e,r,s,i)},animationSize(n){let t=n.params.instanceId,e=a.get(t);if(!e)throw new Error(`Instance with id ${t} does not exist.`);let{height:r,width:s}=e.animationSize();return{height:r,width:s}},setMarker(n){let t=n.params.instanceId,e=n.params.marker,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setMarker(e)},setLoop(n){let t=n.params.instanceId,e=n.params.loop,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setLoop(e)},setLoopCount(n){let t=n.params.instanceId,e=n.params.loopCount,r=a.get(t);if(!r)throw new Error(`Instance with id ${t} does not exist.`);r.setLoopCount(e)}};function It(n){let t=n.method;if(Object.hasOwn(K,t)&&typeof K[t]=="function")return K[t](n);throw new Error(`Method ${String(t)} is not implemented in commands.`)}self.onmessage=async n=>{try{let t=await It(n.data),e={id:n.data.id,method:n.data.method,result:t};self.postMessage(e)}catch(t){let e={id:n.data.id,method:n.data.method,error:t.message};self.postMessage(e)}};var St="",qt=St;})();\n'],{type:`application/javascript`}),t=URL.createObjectURL(e),n=new Worker(t);return URL.revokeObjectURL(t),n}},dT=class{constructor(){Y(this,`_workers`,new Map),Y(this,`_animationWorkerMap`,new Map),Y(this,`_eventHandlers`,new Map),Y(this,`_rpcHandlers`,new Map),Y
vendor: 14,345 bytes, line 54
54(this,`_routeMessage`,e=>{let t=e.data;if(t.id){let n=this._rpcHandlers.get(t.id);n&&n(e);return}let n=t.result?.instanceId;if(n){let t=this._eventHandlers.get(n);t&&t(e)}})}getWorker(e){let t=this._workers.get(e);return t||(t=new uT,t.addEventListener(`message`,this._routeMessage),this._workers.set(e,t)),t}assignAnimationToWorker(e,t){this._animationWorkerMap.set(e,t)}unassignAnimationFromWorker(e){this._animationWorkerMap.delete(e)}sendMessage(e,t,n){this.getWorker(e).postMessage(t,n||[])}broadcastMessage(e,t){this._workers.forEach(n=>{n.postMessage(e,t||[])})}terminateWorker(e){let t=this._workers.get(e);t&&(t.removeEventListener(`message`,this._routeMessage),t.terminate(),this._workers.delete(e))}registerEventHandler(e,t){this._eventHandlers.set(e,t)}unregisterEventHandler(e){this._eventHandlers.delete(e)}registerRpcReplyHandler(e,t){this._rpcHandlers.set(e,t)}unregisterRpcReplyHandler(e){this._rpcHandlers.delete(e)}};function fT(e,t){if(typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement){let{height:n,width:r}=e.getBoundingClientRect();if(n!==0&&r!==0)return{width:r*t,height:n*t}}return{width:e.width,height:e.height}}function pT(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var mT=null;function hT(){return mT??=new dT,mT}var gT=``,_T=new Map,vT=class{constructor(e){if(Y(this,`_eventManager`,new Uw),Y(this,`_id`,void 0),Y(this,`_workerId`,void 0),Y(this,`_worker`,void 0),Y(this,`_canvas`,void 0),Y(this,`_dotLottieInstanceState`,{loopCount:0,markers:[],autoplay:!1,backgroundColor:``,currentFrame:0,duration:0,loop:!1,mode:`forward`,segment:[0,0],speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:Zw()},activeAnimationId:``,activeThemeId:``,layout:void 0,marker:``,isReady:!1,manifest:null}),Y(this,`_created`,!1),Y(this,`_retired`,!1),Y(this,`_boundOnClick`,null),Y(this,`_boundOnPointerUp`,null),Y(this,`_boundOnPointerDown`,null),Y(this,`_boundOnPointerMove`,null),Y(this,`_boundOnPointerEnter`,null),Y(this,`_boundOnPointerLeave`,null),Y(this,`_pendingConfig`,null),e.canvas){let t=typeof HTMLCanvasElement<`u`&&e.canvas instanceof HTMLCanvasElement,n=typeof OffscreenCanvas<`u`&&e.canvas instanceof OffscreenCanvas;if(!t&&!n)throw Error(`Worker-based DotLottie requires HTMLCanvasElement or OffscreenCanvas`)}this._canvas=e.canvas??null,this._id=`dotlottie-${pT()}`,this._workerId=e.workerId||`defaultWorker`,this._worker=hT().getWorker(this._workerId),hT().assignAnimationToWorker(this._id,this._workerId),gT&&this._sendMessage(`setWasmUrl`,{url:gT});let t={...e,renderConfig:{...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||Zw(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0}};this._pendingConfig=t,this._canvas&&(this._create(t),this._pendingConfig=null),hT().registerEventHandler(this._id,this._handleWorkerEvent.bind(this))}async _handleWorkerEvent(e){let t=e.data;if(!t.id&&(t.method===`onLoad`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event),mw&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&(Ww.observe(this._canvas,this),Qw(this._canvas)||await this.freeze()),this._dotLottieInstanceState.renderConfig.autoResize&&Gw.observe(this._canvas,this))),t.method===`onComplete`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onDestroy`&&t.result.instanceId===this._id&&this._eventManager.dispatch(t.result.event),t.method===`onUnfreeze`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(t.result.event)),t.method===`onFrame`&&t.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=t.result.event.currentFrame,this._eventManager.dispatch(t.result.event)),t.method===`onRender`&&t.result.instanceId===this._id&&this._eventManager.dispatch(t.result.event),t.method===`onFreeze`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onPause`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onPlay`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStop`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onLoadError`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onRenderError`&&t.result.instanceId===this._id&&this._eventManager.dispatch(t.result.event),t.method===`onReady`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onLoop`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineStart`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._setupStateMachineListeners(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineStop`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._cleanupStateMachineListeners(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineTransition`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineStateEntered`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineStateExit`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineCustomEvent`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineError`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineBooleanInputValueChange`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineNumericInputValueChange`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineStringInputValueChange`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineInputFired`&&t.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(t.result.event)),t.method===`onStateMachineInternalMessage`&&t.result.instanceId===this._id)){await this._updateDotLottieInstanceState();let e=t.result.event;e.message.startsWith(`OpenUrl: `)&&nT(e.message)}}async _create(e){if(!this._canvas)return;let t;if(this._canvas instanceof HTMLCanvasElement){let n=_T.get(this._canvas);if(n&&n.workerId===this._workerId){await this._adopt(n,e);return}t=this._canvas.transferControlToOffscreen(),_T.set(this._canvas,{destroyTimer:null,facade:this,instanceId:this._id,workerId:this._workerId})}else t=this._canvas;let{instanceId:n}=await this._sendMessage(`create`,{instanceId:this._id,config:{...e,canvas:t},...fT(this._canvas,e.renderConfig?.devicePixelRatio||Zw())},[t]);if(n!==this._id)throw Error(`Instance ID mismatch`);this._retired||(this._created=!0,await this._updateDotLottieInstanceState())}async _adopt(e,t){e.destroyTimer===null?e.facade._retire():(clearTimeout(e.destroyTimer),e.destroyTimer=null),hT().unassignAnimationFromWorker(this._id),this._id=e.instanceId,hT().assignAnimationToWorker(this._id,this._workerId),e.facade=this,this._created=!0;let{canvas:n,...r}=t;await this._sendMessage(`load`,{config:r,instanceId:this._id}),await this._updateDotLottieInstanceState()}_retire(){this._retired=!0,this._created&&(this._created=!1,this._cleanupStateMachineListeners(),this._eventManager.dispatch({type:`destroy`}),this._eventManager.removeAllEventListeners(),mw&&this._canvas instanceof HTMLCanvasElement&&(Ww.unobserve(this._canvas),Gw.unobserve(this._canvas)))}get loopCount(){return this._dotLottieInstanceState.loopCount}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}async setCanvas(e){let t=typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement,n=typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas;if(!t&&!n)throw Error(`Worker-based DotLottie requires HTMLCanvasElement or OffscreenCanvas`);if(this._canvas!==e){if(this._created&&this._canvas!==null)throw Error(`Cannot change canvas after worker instance is already created with a different canvas.`);this._canvas=e,!this._created&&this._pendingConfig&&(await this._create(this._pendingConfig),this._pendingConfig=null)}}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}async play(){this._created&&(await this._sendMessage(`play`,{instanceId:this._id}),await this._updateDotLottieInstanceState(),mw&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&!Qw(this._canvas)&&await this.freeze())}async pause(){this._created&&(await this._sendMessage(`pause`,{instanceId:this._id}),await this._updateDotLottieInstanceState())}async stop(){this._created&&(await this._sendMessage(`stop`,{instanceId:this._id}),await this._updateDotLottieInstanceState())}async setSpeed(e){this._created&&(await this._sendMessage(`setSpeed`,{instanceId:this._id,speed:e}),await this._updateDotLottieInstanceState())}async setMode(e){this._created&&(await this._sendMessage(`setMode`,{instanceId:this._id,mode:e}),await this._updateDotLottieInstanceState())}async setFrame(e){this._created&&(await this._sendMessage(`setFrame`,{frame:e,instanceId:this._id}),await this._updateDotLottieInstanceState())}async setSegment(e,t){this._created&&(await this._sendMessage(`setSegment`,{instanceId:this._id,segment:[e,t]}),await this._updateDotLottieInstanceState())}async resetSegment(){this._created&&(await this._sendMessage(`resetSegment`,{instanceId:this._id}),await this._updateDotLottieInstanceState())}async setRenderConfig(e){if(!this._created)return;let{devicePixelRatio:t,freezeOnOffscreen:n,quality:r,...i}=e;await this._sendMessage(`setRenderConfig`,{instanceId:this._id,renderConfig:{...this._dotLottieInstanceState.renderConfig,...i,devicePixelRatio:t||Zw(),freezeOnOffscreen:n??!0,...r!==void 0&&{quality:r}}}),await this._updateDotLottieInstanceState(),mw&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.autoResize?Gw.observe(this._canvas,this):Gw.unobserve(this._canvas),this._dotLottieInstanceState.renderConfig.freezeOnOffscreen?(Ww.observe(this._canvas,this),Qw(this._canvas)||await this.freeze()):(Ww.unobserve(this._canvas),this._dotLottieInstanceState.isFrozen&&await this.unfreeze()))}async setUseFrameInterpolation(e){this._created&&(await this._sendMessage(`setUseFrameInterpolation`,{instanceId:this._id,useFrameInterpolation:e}),await this._updateDotLottieInstanceState())}async setTheme(e){if(!this._created)return!1;let t=await this._sendMessage(`setTheme`,{instanceId:this._id,themeId:e});return await this._updateDotLottieInstanceState(),t}async load(e){if(!this._created){this._pendingConfig&&={...this._pendingConfig,...e};return}await this._sendMessage(`load`,{config:e,instanceId:this._id}),await this._updateDotLottieInstanceState()}async setLoop(e){this._created&&(await this._sendMessage(`setLoop`,{instanceId:this._id,loop:e}),await this._updateDotLottieInstanceState())}async setLoopCount(e){this._created&&(await this._sendMessage(`setLoopCount`,{instanceId:this._id,loopCount:e}),await this._updateDotLottieInstanceState())}async resize(){if(!this._created||!this._canvas)return;let{height:e,width:t}=fT(this._canvas,this._dotLottieInstanceState.renderConfig.devicePixelRatio||Zw());await this._sendMessage(`resize`,{height:e,instanceId:this._id,width:t}),await this._updateDotLottieInstanceState()}async destroy(){if(!this._created)return;let e=this._canvas,t=e instanceof HTMLCanvasElement?_T.get(e):void 0;this._retire(),t&&t.facade===this?t.destroyTimer=setTimeout(()=>{_T.delete(e),this._finalizeDestroy()},0):await this._finalizeDestroy()}async _finalizeDestroy(){hT().unregisterEventHandler(this._id),hT().unassignAnimationFromWorker(this._id),await this._sendMessage(`destroy`,{instanceId:this._id})}async freeze(){this._created&&(await this._sendMessage(`freeze`,{instanceId:this._id}),await this._updateDotLottieInstanceState())}async unfreeze(){this._created&&(await this._sendMessage(`unfreeze`,{instanceId:this._id}),await this._updateDotLottieInstanceState())}
54async setBackgroundColor(e){this._created&&(await this._sendMessage(`setBackgroundColor`,{instanceId:this._id,backgroundColor:e}),await this._updateDotLottieInstanceState())}async loadAnimation(e){this._created&&(await this._sendMessage(`loadAnimation`,{animationId:e,instanceId:this._id}),await this._updateDotLottieInstanceState())}async setLayout(e){this._created&&(await this._sendMessage(`setLayout`,{instanceId:this._id,layout:e}),await this._updateDotLottieInstanceState())}async setSlots(e){this._created&&await this._sendMessage(`setSlots`,{instanceId:this._id,slots:e})}async getSlotIds(){return this._created?this._sendMessage(`getSlotIds`,{instanceId:this._id}):[]}async getSlotType(e){if(this._created)return this._sendMessage(`getSlotType`,{instanceId:this._id,slotId:e})}async getSlot(e){if(this._created)return this._sendMessage(`getSlot`,{instanceId:this._id,slotId:e})}async getSlots(){return this._created?this._sendMessage(`getSlots`,{instanceId:this._id}):{}}async setColorSlot(e,t){return this._created?this._sendMessage(`setColorSlot`,{instanceId:this._id,slotId:e,value:t}):!1}async setScalarSlot(e,t){return this._created?this._sendMessage(`setScalarSlot`,{instanceId:this._id,slotId:e,value:t}):!1}async setVectorSlot(e,t){return this._created?this._sendMessage(`setVectorSlot`,{instanceId:this._id,slotId:e,value:t}):!1}async setGradientSlot(e,t,n){return this._created?this._sendMessage(`setGradientSlot`,{instanceId:this._id,slotId:e,value:t,colorStopCount:n}):!1}async setTextSlot(e,t){return this._created?this._sendMessage(`setTextSlot`,{instanceId:this._id,slotId:e,value:t}):!1}async setImageSlot(e,t){if(!this._created)return!1;let n=await tT(t);return this._sendMessage(`setImageSlot`,{instanceId:this._id,slotId:e,src:n})}async resetSlot(e){return this._created?this._sendMessage(`resetSlot`,{instanceId:this._id,slotId:e}):!1}async clearSlot(e){return this._created?this._sendMessage(`clearSlot`,{instanceId:this._id,slotId:e}):!1}async resetSlots(){return this._created?this._sendMessage(`resetSlots`,{instanceId:this._id}):!1}async clearSlots(){return this._created?this._sendMessage(`clearSlots`,{instanceId:this._id}):!1}async _updateDotLottieInstanceState(){if(!this._created)return;let e=await this._sendMessage(`getDotLottieInstanceState`,{instanceId:this._id});this._dotLottieInstanceState=e.state}markers(){return this._dotLottieInstanceState.markers}async setMarker(e){this._created&&(await this._sendMessage(`setMarker`,{instanceId:this._id,marker:e}),await this._updateDotLottieInstanceState())}async setThemeData(e){if(!this._created)return!1;let t=await this._sendMessage(`setThemeData`,{instanceId:this._id,themeData:e});return await this._updateDotLottieInstanceState(),t}async setViewport(e,t,n,r){return this._created?this._sendMessage(`setViewport`,{x:e,y:t,width:n,height:r,instanceId:this._id}):!1}async animationSize(){return this._created?this._sendMessage(`animationSize`,{instanceId:this._id}):{height:0,width:0}}async setTransform(e){return this._created?this._sendMessage(`setTransform`,{instanceId:this._id,transform:e}):!1}async getTransform(){if(this._created)return this._sendMessage(`getTransform`,{instanceId:this._id})}async _sendMessage(e,t,n){let r={id:`dotlottie-request-${pT()}`,method:e,params:t};return new Promise((t,i)=>{hT().registerRpcReplyHandler(r.id,n=>{hT().unregisterRpcReplyHandler(r.id);let a=n.data;a.error?i(Error(`Failed to execute method ${e}: ${a.error}`)):t(a.result)}),this._worker.postMessage(r,n||[])})}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}static setWasmUrl(e){gT=e}static async registerFont(e,t){try{let n=pT();return hT().broadcastMessage({id:n,method:`registerFont`,params:{fontName:e,fontSource:t}}),!0}catch(t){return console.error(`Error broadcasting registerFont for "${e}":`,t),!1}}async stateMachineLoad(e){if(!this._created)return!1;let t=await this._sendMessage(`stateMachineLoad`,{instanceId:this._id,stateMachineId:e});return await this._updateDotLottieInstanceState(),t}async stateMachineLoadData(e){if(!this._created)return!1;let t=await this._sendMessage(`stateMachineLoadData`,{instanceId:this._id,stateMachineData:e});return await this._updateDotLottieInstanceState(),t}
vendor: 4,761 bytes, line 54
54async stateMachineStart(){if(!this._created)return!1;let e=await this._sendMessage(`stateMachineStart`,{instanceId:this._id});return e&&(this._setupStateMachineListeners(),await this._updateDotLottieInstanceState()),e}async stateMachineStop(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage(`stateMachineStop`,{instanceId:this._id})):!1}async stateMachineSetNumericInput(e,t){return this._created?this._sendMessage(`stateMachineSetNumericInput`,{instanceId:this._id,name:e,value:t}):!1}async stateMachineSetBooleanInput(e,t){return this._created?this._sendMessage(`stateMachineSetBooleanInput`,{instanceId:this._id,name:e,value:t}):!1}async stateMachineSetConfig(e){this._created&&this._sendMessage(`stateMachineSetConfig`,{instanceId:this._id,config:e})}async stateMachineSetStringInput(e,t){return this._created?this._sendMessage(`stateMachineSetStringInput`,{instanceId:this._id,name:e,value:t}):!1}async stateMachineGetNumericInput(e){if(this._created)return this._sendMessage(`stateMachineGetNumericInput`,{instanceId:this._id,name:e})}async stateMachineGetBooleanInput(e){if(this._created)return this._sendMessage(`stateMachineGetBooleanInput`,{instanceId:this._id,name:e})}async stateMachineGetStringInput(e){if(this._created)return this._sendMessage(`stateMachineGetStringInput`,{instanceId:this._id,name:e})}async stateMachineGetInputs(){if(this._created)return this._sendMessage(`stateMachineGetInputs`,{instanceId:this._id})}async stateMachineFireEvent(e){this._created&&this._sendMessage(`stateMachineFireEvent`,{instanceId:this._id,name:e})}async stateMachineGetStatus(){return this._created?this._sendMessage(`stateMachineGetStatus`,{instanceId:this._id}):``}async stateMachineGetCurrentState(){return this._created?this._sendMessage(`stateMachineGetCurrentState`,{instanceId:this._id}):``}async stateMachineGetActiveId(){return this._created?this._sendMessage(`stateMachineGetActiveId`,{instanceId:this._id}):``}async stateMachineOverrideState(e,t=!1){return this._created?this._sendMessage(`stateMachineOverrideState`,{instanceId:this._id,state:e,immediate:t}):!1}async stateMachineSetSeed(e){return this._created?this._sendMessage(`stateMachineSetSeed`,{instanceId:this._id,seed:e}):!1}async stateMachineGet(e){return this._created?this._sendMessage(`stateMachineGet`,{instanceId:this._id,stateMachineId:e}):``}async stateMachineGetListeners(){return this._created?this._sendMessage(`stateMachineGetListeners`,{instanceId:this._id}):[]}async stateMachinePostClickEvent(e,t){if(this._created)return this._sendMessage(`stateMachinePostClickEvent`,{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerUpEvent(e,t){if(this._created)return this._sendMessage(`stateMachinePostPointerUpEvent`,{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerDownEvent(e,t){if(this._created)return this._sendMessage(`stateMachinePostPointerDownEvent`,{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerMoveEvent(e,t){if(this._created)return this._sendMessage(`stateMachinePostPointerMoveEvent`,{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerEnterEvent(e,t){if(this._created)return this._sendMessage(`stateMachinePostPointerEnterEvent`,{instanceId:this._id,x:e,y:t})}async stateMachinePostPointerExitEvent(e,t){if(this._created)return this._sendMessage(`stateMachinePostPointerExitEvent`,{instanceId:this._id,x:e,y:t})}_onClick(e){let t=$w(e);t&&this._sendMessage(`stateMachinePostClickEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerUp(e){let t=$w(e);t&&this._sendMessage(`stateMachinePostPointerUpEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerDown(e){let t=$w(e);t&&this._sendMessage(`stateMachinePostPointerDownEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerMove(e){let t=$w(e);t&&this._sendMessage(`stateMachinePostPointerMoveEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerEnter(e){let t=$w(e);t&&this._sendMessage(`stateMachinePostPointerEnterEvent`,{instanceId:this._id,x:t.x,y:t.y})}_onPointerLeave(e){let t=$w(e);t&&this._sendMessage(`stateMachinePostPointerExitEvent`,{instanceId:this._id,x:t.x,y:t.y})}async _setupStateMachineListeners(){if(mw&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let e=await this._sendMessage(`stateMachineGetListeners`,{instanceId:this._id});if(e.length===0)return;this._cleanupStateMachineListeners(),e.includes(`Click`)&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener(`click`,this._boundOnClick)),e.includes(`PointerUp`)&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener(`pointerup`,this._boundOnPointerUp)),e.includes(`PointerDown`)&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener(`pointerdown`,this._boundOnPointerDown)),e.
54includes(`PointerMove`)&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener(`pointermove`,this._boundOnPointerMove)),e.includes(`PointerEnter`)&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener(`pointerenter`,this._boundOnPointerEnter)),e.includes(`PointerExit`)&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener(`pointerleave`,this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){mw&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&=(this._canvas.removeEventListener(`click`,this._boundOnClick),null),this._boundOnPointerUp&&=(this._canvas.removeEventListener(`pointerup`,this._boundOnPointerUp),null),this._boundOnPointerDown&&=(this._canvas.removeEventListener(`pointerdown`,this._boundOnPointerDown),null),this._boundOnPointerMove&&=(this._canvas.removeEventListener(`pointermove`,this._boundOnPointerMove),null),this._boundOnPointerEnter&&=(this._canvas.removeEventListener(`pointerenter`,this._boundOnPointerEnter),null),this._boundOnPointerLeave&&=(this._canvas.removeEventListener(`pointerleave`,this._boundOnPointerLeave),null))}};typeof window<`u`&&lT.setWasmUrl(`/assets/dotlottie-player-CkTF56SJ.wasm`);function yT(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$e(`animate-pulse rounded-md bg-muted`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var bT=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='claude%202'%20clip-path='url(%23clip0_90_6677)'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.53175%2011.9662L7.07175%209.981L7.13175%209.8085L7.07175%209.7125H6.9L6.3075%209.6765L4.284%209.62175L2.52975%209.549L0.83025%209.4575L0.402%209.36675L0%208.838L0.04125%208.574L0.40125%208.33325L0.91575%208.37825L2.05575%208.4555L3.76425%208.574L5.00325%208.64675L6.84%208.838H7.13175L7.173%208.72025L7.0725%208.64675L6.99525%208.574L5.22675%207.377L3.31275%206.111L2.31075%205.382L1.76775%205.01375L1.49475%204.66725L1.37625%203.91125L1.86825%203.36975L2.529%203.41475L2.69775%203.4605L3.3675%203.975L4.7985%205.082L6.66675%206.45675L6.9405%206.68475L7.04925%206.6075L7.0635%206.55275L6.9405%206.34725L5.92425%204.51275L4.83975%202.64525L4.35675%201.87125L4.22925%201.407C4.18067%201.22869%204.15447%201.04503%204.15125%200.86025L4.71225%200.1005L5.022%200L5.769%200.1005L6.084%200.3735L6.549%201.434L7.3005%203.10575L8.46675%205.37825L8.80875%206.05175L8.991%206.67575L9.05925%206.867H9.17775V6.7575L9.27375%205.478L9.4515%203.90675L9.624%201.8855L9.684%201.3155L9.966%200.633L10.5262%200.264L10.9643%200.474L11.3242%200.98775L11.274%201.32075L11.0595%202.709L10.6403%204.88625L10.3672%206.34275H10.5262L10.7085%206.16125L11.4472%205.18175L12.6863%203.63375L13.2338%203.01875L13.8713%202.34075L14.2815%202.0175H15.0563L15.6262%202.86425L15.3713%203.73875L14.5732%204.749L13.9125%205.6055L12.9645%206.8805L12.372%207.9005L12.4268%207.983L12.5677%207.968L14.7098%207.5135L15.867%207.3035L17.2477%207.06725L17.8725%207.35825L17.9407%207.6545L17.6948%208.25975L16.218%208.62425L14.4863%208.97075L11.907%209.5805L11.8755%209.603L11.9123%209.64875L13.074%209.75825L13.5705%209.78525H14.787L17.052%209.954L17.6445%2010.3455L18%2010.824L17.9407%2011.1877L17.0295%2011.6527L15.7995%2011.361L12.9277%2010.6785L11.9438%2010.4318H11.8073V10.5143L12.627%2011.3152L14.1315%2012.6727L16.0132%2014.4202L16.1085%2014.8538L15.867%2015.195L15.612%2015.1583L13.9583%2013.9155L13.32%2013.3552L11.8755%2012.1403H11.7795V12.2678L12.1125%2012.7545L13.8713%2015.3953L13.9628%2016.2053L13.8353%2016.47L13.3793%2016.6298L12.8782%2016.5383L11.8477%2015.0945L10.7865%2013.4692L9.92925%2012.012L9.82425%2012.072L9.31875%2017.5125L9.08175%2017.79L8.535%2018L8.07975%2017.6542L7.83825%2017.094L8.07975%2015.987L8.3715%2014.544L8.60775%2013.3965L8.82225%2011.9715L8.94975%2011.4975L8.94075%2011.466L8.83575%2011.4795L7.76025%2012.9548L6.12525%2015.1635L4.83075%2016.5472L4.52025%2016.6702L3.9825%2016.3928L4.03275%2015.8962L4.3335%2015.4545L6.1245%2013.1775L7.2045%2011.766L7.902%2010.9515L7.8975%2010.833H7.85625L3.099%2013.92L2.2515%2014.0295L1.88625%2013.6875L1.932%2013.128L2.10525%2012.9457L3.53625%2011.9618L3.53175%2011.9662Z'%20fill='%23D97757'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_90_6677'%3e%3crect%20width='18'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,xT=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='18'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='CUBE_25D%201'%20clip-path='url(%23clip0_90_6683)'%3e%3cpath%20id='Vector'%20d='M8.00017%209L15.9246%2013.5044C15.8759%2013.5874%2015.8053%2013.6583%2015.7179%2013.7079L8.3111%201
547.918C8.11878%2018.0273%207.88156%2018.0273%207.68924%2017.918L0.282476%2013.7079C0.195059%2013.6583%200.12444%2013.5874%200.0757611%2013.5044L8.00017%209Z'%20fill='%2372716D'/%3e%3cpath%20id='Vector_2'%20d='M8.00017%200V9L0.0757611%2013.5044C0.027082%2013.4214%200%2013.3255%200%2013.2263V4.77372C0%204.57493%200.107643%204.39166%200.282476%204.29209L7.6889%200.0820146C7.78523%200.0273382%207.89253%200%207.99983%200H8.00017Z'%20fill='%2355544F'/%3e%3cpath%20id='Vector_3'%20d='M15.9242%204.49561C15.8756%204.41259%2015.8049%204.34171%2015.7175%204.29209L8.31076%200.0820146C8.21477%200.0273382%208.10747%200%208.00017%200V9L15.9246%2013.5044C15.9733%2013.4214%2016.0003%2013.3255%2016.0003%2013.2263V4.77372C16.0003%204.67415%2015.9736%204.57898%2015.9246%204.49561H15.9242Z'%20fill='%2343413C'/%3e%3cpath%20id='Vector_4'%20d='M15.3699%204.81085C15.4148%204.88712%2015.421%204.985%2015.3699%205.07208L8.17672%2017.3378C8.12838%2017.4208%207.99983%2017.3867%207.99983%2017.2912V9.20858C7.99983%209.14412%207.98235%209.08201%207.95046%209.02768L15.3696%204.81051H15.3699V4.81085Z'%20fill='%23D6D5D2'/%3e%3cpath%20id='Vector_5'%20d='M15.3699%204.81084L7.95081%209.02801C7.91927%208.97401%207.87333%208.92811%207.81642%208.89571L0.706875%204.85438C0.622544%204.80679%200.657168%204.68023%200.754183%204.68023H15.1402C15.2424%204.68023%2015.3253%204.73457%2015.3699%204.81084Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_90_6683'%3e%3crect%20width='16'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,ST=`data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='12.6665%2012%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M29.9922%2018.9477C30.3996%2017.4209%2030.0045%2015.7243%2028.8067%2014.5265C27.6089%2013.3287%2025.9124%2012.9336%2024.3854%2013.341C23.2668%2012.2247%2021.6001%2011.7186%2019.9638%2012.1571C18.3275%2012.5955%2017.137%2013.8672%2016.7265%2015.3933C15.2004%2015.8038%2013.9287%2016.9944%2013.4903%2018.6305C13.0519%2020.2669%2013.5579%2021.9336%2014.6743%2023.0522C14.2669%2024.5791%2014.6621%2026.2757%2015.8598%2027.4735C17.0576%2028.6712%2018.7541%2029.0664%2020.2811%2028.659C21.3997%2029.7752%2023.0666%2030.2813%2024.7027%2029.8429C26.339%2029.4045%2027.5295%2028.1329%2027.94%2026.6069C29.4661%2026.1962%2030.7378%2025.0057%2031.1762%2023.3695C31.6145%2021.7333%2031.1086%2020.0665%2029.9922%2018.9479V18.9477ZM28.0713%2015.2621C28.8829%2016.0738%2029.2177%2017.1817%2029.0755%2018.2379L25.2636%2016.037C25.103%2015.9443%2024.9049%2015.9443%2024.7443%2016.037L20.2811%2018.6139V16.9242C20.2811%2016.8057%2020.3446%2016.6947%2020.4473%2016.6354L23.846%2014.6733C25.1926%2013.9211%2026.9267%2014.1175%2028.0714%2015.2621H28.0713ZM22.3333%2018.6303L24.3855%2019.8152V22.1849L22.3333%2023.3698L20.281%2022.1849V19.8152L22.3333%2018.6303ZM17.6103%2016.5266C17.6322%2014.9844%2018.6694%2013.5808%2020.233%2013.1618C21.3418%2012.8648%2022.4687%2013.1289%2023.3123%2013.78L19.5002%2015.9807C19.3395%2016.0735%2019.2406%2016.245%2019.2406%2016.4304V2
541.5841L17.7773%2020.7392C17.6746%2020.68%2017.6103%2020.5694%2017.6103%2020.4509V16.5265V16.5266ZM14.495%2018.8998C14.792%2017.7911%2015.5843%2016.9471%2016.57%2016.5422V20.9438C16.57%2021.1293%2016.6689%2021.3008%2016.8296%2021.3935L21.2929%2023.9703L19.8295%2024.8152C19.7269%2024.8745%2019.599%2024.8749%2019.4964%2024.8156L16.0977%2022.8534C14.773%2022.0633%2014.0762%2020.4633%2014.495%2018.8998ZM16.5953%2026.738C15.7836%2025.9263%2015.4489%2024.8184%2015.591%2023.7622L19.4029%2025.9631C19.5636%2026.0558%2019.7616%2026.0558%2019.9222%2025.9631L24.3854%2023.3863V25.0759C24.3854%2025.1945%2024.3219%2025.3054%2024.2192%2025.3647L20.8205%2027.3269C19.4739%2028.079%2017.7398%2027.8826%2016.5951%2026.738H16.5953ZM27.0562%2025.4734C27.0343%2027.0157%2025.9971%2028.4193%2024.4335%2028.8383C23.3247%2029.1353%2022.1978%2028.8712%2021.3543%2028.2201L25.1663%2026.0193C25.327%2025.9266%2025.4259%2025.7551%2025.4259%2025.5696V20.416L26.8893%2021.2609C26.9919%2021.3201%2027.0562%2021.4307%2027.0562%2021.5492V25.4736V25.4734ZM30.1715%2023.1003C29.8745%2024.209%2029.0822%2025.053%2028.0965%2025.4579V21.0563C28.0965%2020.8708%2027.9976%2020.6993%2027.8369%2020.6066L23.3736%2018.0298L24.837%2017.1849C24.9396%2017.1256%2025.0675%2017.1252%2025.1701%2017.1845L28.5688%2019.1466C29.8935%2019.9368%2030.5904%2021.5368%2030.1715%2023.1003Z'%20fill='%23171513'/%3e%3c/svg%3e`,CT=`data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='12.6665%2012%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.7174%2020.0451C27.3581%2019.4664%2026.1221%2018.6329%2025.0762%2017.5895C23.6196%2016.13%2022.5805%2014.3071%2022.0667%2012.3102C22.0441%2012.2215%2021.9927%2012.1429%2021.9204%2012.0867C21.8482%2012.0305%2021.7593%2012%2021.6678%2012C21.5763%2012%2021.4874%2012.0305%2021.4151%2012.0867C21.3429%2012.1429%2021.2914%2012.2215%2021.2689%2012.3102C20.754%2014.3069%2019.7147%2016.1296%2018.2586%2017.5895C17.2125%2018.6328%2015.9766%2019.4663%2014.6174%2020.0451C14.0855%2020.2742%2013.5389%2020.4583%2012.9793%2020.5998C12.89%2020.6218%2012.8107%2020.673%2012.754%2020.7453C12.6973%2020.8176%2012.6665%2020.9068%2012.6665%2020.9987C12.6665%2021.0906%2012.6973%2021.1798%2012.754%2021.2522C12.8107%2021.3245%2012.89%2021.3757%2012.9793%2021.3976C13.5389%2021.5384%2014.0839%2021.7225%2014.6174%2021.9516C15.9767%2022.5302%2017.2127%2023.3637%2018.2586%2024.4071C19.7155%2025.8668%2020.755%2027.69%2021.2689%2029.6873C21.2908%2029.7765%2021.342%2029.8558%2021.4143%2029.9125C21.4867%2029.9692%2021.5759%2030%2021.6678%2030C21.7597%2030%2021.8489%2029.9692%2021.9212%2029.9125C21.9935%2029.8558%2022.0448%2029.7765%2022.0667%2029.6873C22.2074%2029.1268%2022.3915%2028.5818%2022.6206%2028.0483C23.1993%2026.689%2024.0328%2025.453%2025.0762%2024.4071C26.5359%2022.9505%2028.3591%2021.9113%2030.3563%2021.3976C30.445%2021.3751%2030.5237%2021.3236%2030.5798%2021.2514C30.636%2021.1791%2030.6665%2021.0902%2030.6665%2020.9987C30.6665%2020.9072%2030.636%2020.8183%2030.5798%2020.7461C30.5237%2020.6738%2030.445%2020.6224%2030.3563%2020.5998C29.7961%2020.4589%2029.248%2020.2734%2028.7174%202
540.0451Z'%20fill='url(%23paint0_linear_90_6679)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_90_6679'%20x1='21.6665'%20y1='12'%20x2='21.6665'%20y2='30'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2396B3FF'/%3e%3cstop%20offset='1'%20stop-color='%23456EE8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,wT=[{key:`vscode`,src:`/assets/vscode-0_hX0Src.png`},{key:`cube`,src:xT},{key:`sparkle`,src:CT},{key:`openai`,src:ST},{key:`claude`,src:bT}],TT=`Do I have any contact in Dex named Priya?`,ET={name:`Priya Anand`,title:`VP of Design at Northbeam`},DT=`Priya Anand leads the design team at Northbeam, a design-tools startup. Your notes show you met at a product conference last spring and last connected over a coffee catch-up two months ago.`,OT=560,kT=90,AT=300,jT=OT+(wT.length-1)*kT+AT+200,MT=jT+700,NT=MT+1400,PT=400;function FT(){let e=(0,q.c)(13),[t,n]=(0,H.useState)(`entering`),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=setTimeout(()=>n(`skeleton`),MT),t=setTimeout(()=>n(`loaded`),NT);return()=>{clearTimeout(e),clearTimeout(t)}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,H.useEffect)(r,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={maxHeight:PT},e[2]=a):a=e[2];let o,s,c,l;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o={opacity:0,y:12},s={opacity:1,y:0},c={delay:OT/1e3,duration:.4,ease:`easeOut`},l={height:PT},e[3]=o,e[4]=s,e[5]=c,e[6]=l):(o=e[3],s=e[4],c=e[5],l=e[6]);let u;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,U.jsx)(`div`,{className:`flex -space-x-2.5`,children:wT.map(IT)}),e[7]=u):u=e[7];let d;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,U.jsx)(V.p,{initial:{opacity:0,y:8},animate:{opacity:.9,y:0},transition:{delay:jT/1e3,duration:.35,ease:`easeOut`},className:`mt-6 ml-auto w-fit rounded-2xl border-2 border-blue-50 bg-gradient-to-b from-blue-50 to-card px-3 py-[7px] text-sm text-foreground`,children:TT}),e[8]=d):d=e[8];let f;e[9]===t?f=e[10]:(f=t===`loaded`?(0,U.jsx)(V.div,{initial:{opacity:0}
54,animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:`easeOut`},className:`mt-5 flex flex-col gap-4`,children:(0,U.jsxs)(`div`,{className:`text-sm text-foreground`,children:[(0,U.jsx)(`p`,{className:`font-bold`,children:`Contact found`}),(0,U.jsx)(`p`,{className:`mt-5`,children:ET.name}),(0,U.jsxs)(`ul`,{className:`list-disc pl-5`,children:[(0,U.jsxs)(`li`,{children:[`Position: `,ET.title]}),(0,U.jsx)(`li`,{children:`Starred contact: Yes`})]}),(0,U.jsx)(`p`,{className:`mt-5`,children:DT})]})},`response`):t===`skeleton`?(0,U.jsxs)(V.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25,ease:`easeOut`},className:`mt-5 flex flex-col gap-4`,children:[(0,U.jsx)(yT,{className:`h-2.5 w-[90px] rounded-full bg-blue-50 opacity-60`}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsx)(yT,{className:`h-2.5 w-full rounded-full bg-blue-50 opacity-60`}),(0,U.jsx)(yT,{className:`h-2.5 w-full rounded-full bg-blue-50 opacity-60`}),(0,U.jsx)(yT,{className:`h-2.5 w-[62%] rounded-full bg-blue-50 opacity-60`})]})]},`skeleton`):null,e[9]=t,e[10]=f);let p;return e[11]===f?p=e[12]:(p=(0,U.jsx)(`div`,{className:`flex size-full flex-col items-center pt-2`,children:(0,U.jsx)(`div`,{className:`mask-b-from-60% mask-b-to-100% min-h-0 w-full max-w-[420px] flex-1 overflow-hidden`,style:a,children:(0,U.jsxs)(V.div,{initial:o,animate:s,transition:c,style:l,className:`max-h-full w-full overflow-hidden rounded-3xl border border-border bg-card p-4 shadow-md`,children:[u,d,(0,U.jsx)(Qp,{mode:`wait`,children:f})]})})}),e[11]=f,e[12]=p),p}function IT(e,t){let{key:n,src:r}=e;return(0,U.jsx)(V.span,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:(OT+t*kT)/1e3,duration:AT/1e3,ease:`easeOut`},className:`flex size-10 items-center justify-center rounded-xl border border-border bg-background shadow-xs`,children:(0,U.jsx)(`span`,{className:`flex size-[33.6px] items-center justify-center rounded-[10px] border border-border bg-card`,children:(0,U.jsx)(`img`,{src:r,alt:``,className:`size-[18px]`})})},n)}var LT=H.createContext(void 0);function RT(){let e=H.useContext(LT);if(e===void 0)throw Error(Ve(13));return e}var zT={imageLoadingStatus:()=>null},BT=H.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=H.useState(`idle`),c={imageLoadingStatus:o},l=H.useMemo(()=>({imageLoadingStatus:o,setImageLoadingStatus:s}),[o,s]),u=qe(`span`,e,{state:c,ref:t,props:a,stateAttributesMapping:zT});return(0,U.jsx)(LT.Provider,{value:l,children:u})});function VT(e,{referrerPolicy:t,crossOrigin:n,sizes:r,srcSet:i}){let[a,o]=H.useState(`idle`);return He(()=>{if(!e&&!i)return o(`error`),Be;let a=!0,s=new window.Image,c=e=>()=>{a&&o(e)};return o(`loading`),s.onload=c(`loaded`),s.onerror=c(`error`),t&&(s.referrerPolicy=t),s.crossOrigin=n??null,r&&(s.sizes=r),i&&(s.srcset=i),e&&(s.src=e),s.complete&&o(s.naturalWidth>0?`loaded`:`error`),()=>{a=!1}},[e,i,r,n,t]),a}var HT={...zT,...$t},UT=H.forwardRef(function(e,t){let{className:n,render:r,onLoadingStatusChange:i,style:a,...o}=e,{setImageLoadingStatus:s}=RT(),c=VT(o.src,o),l=c===`loaded`,{mounted:u,transitionStatus:d,setMounted:f}=tn(l),p=H.useRef(null),m=Ue(e=>{i?.(e),s(e)});He(()=>{c!==`idle`&&m(c)},[c,m]),He(()=>()=>s(`idle`),[s]),en({open:l,ref:p,onComplete(){l||f(!1)}});let h=qe(`img`,e,{state:{imageLoadingStatus:c,transitionStatus:d},ref:[t,p],props:o,stateAttributesMapping:HT,enabled:u});return u?h:null}),WT=H.forwardRef(function(e,t){let{className:n,render:r,delay:i,style:a,...o}=e,{imageLoadingStatus:s}=RT(),[c,l]=H.useState(i===void 0),u=nn();return H.useEffect(()=>(i===void 0?l(!0):u.start(i,()=>l(!0)),u.clear),[u,i]),qe(`span`,e,{state:{imageLoadingStatus:s},ref:t,props:o,stateAttributesMapping:zT,enabled:s!==`loaded`&&(i===void 0||c)})});function GT(e){let t=(0,q.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,size:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]===n?o=t[5]:(o=$e(`group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten`,n),t[4]=n,t[5]=o);let s;return t[6]!==r||t[7]!==a||t[8]!==o?(s=(0,U.jsx)(BT,{"data-slot":`avatar`,"data-size":a,className:o,...r}),t[6]=r,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function KT(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$e(`aspect-square size-full rounded-full object-cover`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(UT,{"data-slot":`avatar-image`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qT(e){let t=(0,q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$e(`flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,U.jsx)(WT,{"data-slot":`avatar-fallback`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function JT({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=H.useRef(e!==void 0),[a,o]=H.useState(t);return[i?e:a,H.useCallback(e=>{i||o(e)},[])]}function YT(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var XT=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.indeterminate=`data-indeterminate`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invali
54d=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),ZT=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),QT={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},$T={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},eE={disabled:!1,...$T},tE={valid(e){return e===null?null:e?{[ZT.valid]:``}:{[ZT.invalid]:``}}};function nE(e){return H.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[XT.checked]:``}:{[XT.unchecked]:``}},...tE}),[e.indeterminate])}var rE={invalid:void 0,name:void 0,validityData:{state:QT,errors:[],error:``,value:``,initialValue:null},setValidityData:Be,disabled:void 0,touched:$T.touched,setTouched:Be,dirty:$T.dirty,setDirty:Be,filled:$T.filled,setFilled:Be,focused:$T.focused,setFocused:Be,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:eE,markedDirtyRef:{current:!1},registerFieldControl:Be,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registerInput:Be,commit:async()=>{},change:Be}},iE=H.createContext(rE);function aE(e=!0){let t=H.useContext(iE);if(t.setValidityData===Be&&!e)throw Error(Ve(28));return t}function oE(e,t,n,r,i=!0,a){let{registerFieldControl:o}=aE(),s=H.useRef(null);s.current||=Symbol(),He(()=>{let c=s.current;if(!(!c||!i))return o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}),()=>{o(c,void 0)}},[e,i,r,t,a,o,n])}var sE=H.createContext({disabled:!1});function cE(){return H.useContext(sE)}var lE=H.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Be,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function uE(){return H.useContext(lE)}var dE=H.createContext({controlId:void 0,registerControlId:Be,labelId:void 0,setLabelId:Be,messageIds:[],setMessageIds:Be,getDescriptionProps:e=>e});function fE(){return H.useContext(dE)}function pE(e,t,n,r=!0,i){let[a,o]=H.useState(),s=cn(i?`${i}-label`:void 0),c=e??t??a;return He(()=>{let i=e||t||!r?void 0:mE(n.current,s);a!==i&&o(i)}),c}function mE(e,t){let n=hE(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function hE(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}var gE=H.createContext(void 0);function _E(e=!0){let t=H.useContext(gE);if(t===void 0&&!e)throw Error(Ve(3));return t}var vE=H.createContext(void 0);function yE(){let e=H.useContext(vE);if(e===void 0)throw Error(Ve(14));return e}var bE=`data-parent`,xE=H.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i=!1,"aria-labelledby":a,disabled:o=!1,form:s,id:c,indeterminate:l=!1,inputRef:u,name:d,onCheckedChange:f,parent:p=!1,readOnly:m=!1,render:h,required:g=!1,uncheckedValue:_,value:v,nativeButton:y=!1,style:b,...x}=e,{clearErrors:S}=uE(),{disabled:C,name:w,setDirty:T,setFilled:E,setFocused:D,setTouched:O,state:k,validationMode:A,validityData:j,validation:M}=aE(),ee=cE(),{labelId:te,controlId:N,registerControlId:P,getDescriptionProps:ne}=fE(),F=_E(),re=F?.parent,ie=re&&F.allValues,I=C||ee.disabled||F?.disabled||o,L=w??d,R=v??L,ae=cn(),oe=cn(),se=N;ie?se=p?oe:`${re.id}-${R}`:c&&(se=c);let ce={};ie&&(p?ce=F.parent.getParentProps():R&&(ce=F.parent.getChildProps(R)));let{checked:le=n,indeterminate:ue=l,onCheckedChange:de,...fe}=ce,pe=F?.value,me=F?.setValue,he=F?.defaultValue,ge=H.useRef(null),_e=Ge(()=>Symbol(`checkbox-control`)),ve=H.useRef(!1),{getButtonProps:ye,buttonRef:be}=Ye({disabled:I,native:y}),xe=F?.validation??M,[Se,Ce]=JT({controlled:R&&pe&&!p?pe.includes(R):le,default:R&&he&&!p?he.includes(R):i,name:`Checkbox`,state:`checked`}),we=ie?!!le:Se,Te=ie&&ue||l;He(()=>{P!==Be&&(ve.current=!0,P(_e.current,se))},[se,P,_e]),H.useEffect(()=>{let e=_e.current;return()=>{!ve.current||P===Be||(ve.current=!1,P(e,void 0))}},[P,_e]),oE(ge,ae,Se,void 0,!F&&!I,d);let Ee=H.useRef(null),De=Ke(u,Ee,xe.inputRef,xe.registerInput),Oe=pE(a,te,Ee,!y,se??void 0);He(()=>{Ee.current&&(Ee.current.indeterminate=Te,Se&&E(!0))},[Se,Te,E]),ln(Se,()=>{F||(S(L),E(Se),T(Se!==j.initialValue),xe.change(Se))});let ke=Je({checked:Se,disabled:I,form:s,name:p?void 0:L,id:y?void 0:se??void 0,required:g,ref:De,style:L?rn:an,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(m){e.preventDefault();return}let t=e.currentTarget.checked,n=sn(on,e.nativeEvent);f?.(t,n),!n.isCanceled&&(de?.(t,n),!n.isCanceled&&(Ce(t),R&&pe&&me&&!p&&!ie&&me(t?[...pe,R]:pe.filter(e=>e!==R),n)))},onFocus(){ge.current?.focus()}},v===void 0?We:{value:(F?Se&&v:v)||``},ne,e=>xe.getValidationProps(I,e));H.useEffect(()=>{if(!re||!R)return;let e=re.disabledStatesRef.current;return e.set(R,I),()=>{e.delete(R)}},[re,I,R]);let Ae=H.useMemo(()=>({...k,checked:we,disabled:I,readOnly:m,required:g,indeterminate:Te}),[k,we,I,m,g,Te]),je=nE(Ae),Me=qe(`span`,e,{state:Ae,ref:[be,ge,t,F?.registerControlRef],props:[{id:y?se??void 0:ae,role:`checkbox`,"aria-checked":Te?`mixed`:we,"aria-readonly":m||void 0,"aria-required":g||void 0,"aria-labelledby":Oe,[bE]:p?``:void 0,onFocus(){I||D(!0)},onBlur(){let e=Ee.current;e&&(O(!0),D(!1),A===`onBlur`&&xe.commit(F?pe:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=Ee.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),ze(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||YT(t)?.click()})},onClick(e){if(m||I)return;e.preventDefault();let t=Ee.current;t&&t.dispatchEvent(new(ze(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},x,fe,ye,ne,e=>xe.getValidationProps(I,e)],stateAttributesMapping:je});return(0,U.jsxs)(vE.Provider,{value:Ae,children:[Me,!Se&&!F&&L&&!p&&_!==void 0&&(0,U.jsx)(`input`,{type:`hidden`,form:s,name:L,value:_,disabled:I}),(0,U.jsx)(`input`,{...ke,suppressHydrationWarning:!0})]})}),SE=H.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=yE(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:d}=tn(c),f=H.useRef(null),p={...s,transitionStatus:u};en({open:c,ref:f,onComplete(){c||d(!1)}});let m={...nE(s),...$t,...tE},h=a||l,g=qe(`span`,e,{ref:[t,f],state:p,stateAttributesMapping:m,props:o});return h?g:null});function CE(e){let t=(0,q.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$e(`peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-card transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground dark:data-indeterminate:bg-primary`,n),t[3]=n,t[4]=i);let a;t[5]===r.indeterminate?a=t[6]:(a=(0,U.jsx)(SE,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:r.indeterminate?(0,U.jsx)(ap,{}):(0,U.jsx)(Zf,{})}),t[5]=r.indeterminate,t[6]=a);let o;return t[7]!==r||t[8]!==i||t[9]!==a?(o=(0,U.jsx)(xE,{"data-slot":`checkbox`,className:i,...r,children:a}),t[7]=r,t[8]=i,t[9]=a,t[10]=o):o=t[10],o}var wE=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASXSURBVHgB7Z09TBRBFMf/u0cAAwU2Eqzu6CQS+WhILFCxEpQz2mBItIDSSKlYiIUfJdhqodFYWZxES6IUGCxUDAl2cBUEGik0AuFY582xB5zc3d7uzM4K75eQy8ndcvfLm5k3H7614JHkiFO3sYFkDOh0HLRYFuLisQ4HAPFdVsV3SYvHGfF0MlaJVGrEWvX03lIvSN524hkLt8QrbxwUYV4QMp/HtnA/9dhKF31doV9QxGXWcc8BhnCIEYJGY1VCZIGI3FfgdtR9EPLiYEhSOubg7H7RaOf/Q3LYaWF5eyEX5OSCcJP/uz0RyJFXnP0iMSdwu8/7xvKKIyVWodXtE3NNeHvAiIMpimzOwpX7XEYgNd1NCwtgPFPhIEFNWUZgxt4xynhjczu9s6jv21zHTzDlslpRhYSdEdMzMH6oI3fUhDvB+KXTFqNKCxhf
540KKKbXHqEoS4fZhWWDRQV4EIUlMN1B8FEg3A7z/iZw2YX8o+Ro3ICCRpXe1AxwmguXH/18wvAuOfgImviAxWzx3RiA3T1QYM9mQlemFFZK2vJ6Ih0ngEDnQDvafLeguOieY9dDXbxJ+9h1FsGMSPvN3Qe4euwCjGBPZ1BZPnQv3mJQXX8YsRgdQEr3VBGXStekPJmBGBKuURNPhcNBSFoQuU6UoblHO+3fsorpLQBRbK8YJC8k5qunYxQhdIqYcumhMIndAF0gCii9ojCB2jeeBBgAUGJHSBC0vQxrzGaxcifIGL0IbOaxcidIGzC3rW9WiFZtbAzraRPvDtFJRDy1smMCJwfCobMaqga5laGzQikJrwg1dQhsprlYuxNIZGzNE3CAxdw8To62J0RZqaHUXjYHf5MxQZxS/NDBy7Mb6kPz2XjSBa4vK6SkPin76Lxi5dJDaVXCgKO5qyO3ONx3eWp2iQWBY/0z+EvC/R2t6MlMD/EZ4LB4QFBsToIEJ9XG3AZfhfa2b7xFAFkjA5SDRll/ZV7WGQwNn57Ige9owktEGE9m4pVdG98RP2sQ/tAknY3X59m0mFoIgcE7OUZU//59I/WgcRyuue3AxfHkF/8+Gg/g13rQIfDejdRCoF/e3hfmhFm0A6+2JSngvNaPoUn4TYjRaBqs++BEXn2RktAqMkz+VcO7SgRaCJEwKl6NV0+Ei5wMaGaPR9+VA61ajhWIlygVGU55JggcGo0XB2RrlAE2f0vKLjs/FyVkBYYEBYYEBYYECUC1yJcPEAHRvwygXKfV4Dx8xKQZ/p8xyUo21BlaZzUckJdR5907YnIj/wIahEY1PxQTB+WaWiE2kwfknbloPvYHxBJUPtjIWPYPyxhUm7shIp7gf9EatGyqY6eM4WXoApCypSS+5kIi1ymVEwZUEVfulRCpQlLR2MgfGGcOWWAc1N5SqqMWJxSlMSckSu3Oc5gdSeqcAqSyxMrgjtrprSexYTKCxjFi6zxH+R8oSb/FrSXIjbA2UV4iZkJFahlQcWyAFDlj0uUFPf680IRkQ0XschQd7dQeTGlN75vhlBPrJQ9xqS4h1nHAunqHDjgbodhmim4jvNZMT0rLLa++0w/gJOg2zjKFH65wAAAABJRU5ErkJggg==`,TE=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALWSURBVHgB7ZsxTBNRGMf/3xPM1USgW0tCcnEUB4yJg4uMmpjAoo7axbW4QDfaDUlM6uwgcdSYwKZxkUGdjAyVUZtgoFuhNPak9D7fu1KE0jYhud5d390vaXv37q7Nr+993713eY/QAzPLY9afahrE0wCbAJkIIATsMrBBzGssLq6WlmLFHueeJZGpmeD6K7k5jcFkBTSc6yQu2guSC9U0cf07BldW8Vg5JOf35toPnKrhxPz+omy+WegEU7a0fDnX2j0WVjXLsPPQEBnbT3eWRx03R1jFrGoCMvDHoCFOUqPh6yqmmzHM9UVdZRWOWzMJg44y8i+EACPWiAuyD2YREixLzAkmmkFYYLotZEBPITyYQudk1QFzCD4yYhDuTg5hJNbcVvwuM/ZqjIrFKGzbzqeb+CJ8bVwgd8/ArSsXep6Xfmvhzbc63MRz4Qc3hvHivgG/EPAQVaN+yio8Fc77LKvwTFjV7kTc0/+3I57F8J2rvX/qy89DfNg8lBn6f9lXWeY2nglPjnfPyO+laOp1DV7gfxuTPP/4F17hmfBEnLoeK+zY8IpA1LCXRMK643qWVoOA0dj5rukW31tldwcOCkosVFz91oeyr+xWjyqZ2YfbBLZJ/+hT5g6s8FY5ZMKF7Qb6QWCFN8PWpNVjnn7gepbudlt69+RS1+HhzWfVM2X9uCUpXL8Pq4duFetcl/RNrhNR11J3ImHdiYR1JxLWnUhYdyJh3YmeWvaLl58Pjqc1+Inr4+Ggo5p0ESFBzbkMlTATNgSI1xESyOY1YVh6zpHuBAt7VRTz8V25/Qm6Q1gpLcWP5ktTI6UCGppCYOnWcJYBOMLKHMw56Aoj5zjiRE/LWRNAGkpLp9Z6B2e3/biz9IVo4JcEOM1Y1uxJ2WZ5BxKZsikrPytvXI8wiJBKwo1UqxmfPtQDJU62mGVBM8Q8xaBg1jpxUb7JF68bhp0vZuNdE/A/FFL3KgXu/9sAAAAASUVORK5CYII=`,EE=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='svg16'%20width='24'%20height='24'%20fill='none'%20version='1.1'%20viewBox='0%20-81.818%20800%20800'%3e%3cpath%20id='path1'%20fill='url(%23a)'%20stroke-width='4.545'%20d='M627.272%2081.82h172.727v499.998c0%2030.123-24.423%2054.545-54.546%2054.545h-90.908a27.273%2027.273%200%200%201-27.273-27.272z'/%3e%3cpath%20id='path2'%20fill='%23fc413d'%20stroke-width='4.545'%20d='M172.728%2081.82H0v499.998c0%2030.123%2024.423%2054.545%2054.545%2054.545h90.909a27.273%2027.273%200%200%200%2027.273-27.272z'/%3e%3cpath%20id='path3'%20fill='url(%23b)'%20stroke-width='4.545'%20d='M141.937%2020.256c-36.514-30.691-90.99-25.973-121.682%2010.54-30.69%2036.51-25.972%2090.987%2010.541%20121.682l345.808%20290.677a36.364%2036.364%200%200%200%2046.796%200l345.808-290.681c36.509-30.691%2041.227-85.168%2010.536-121.682-30.69-36.509-85.168-41.227-121.677-10.536L400%20237.182Z'/%3e%3cdefs%20id='defs16'%3e%3clinearGradient%20id='a'%20x1='165'%20x2='165'%20y1='44'%20y2='166'%20gradientTransform='translate(-36.363%20-118.18)scale(4.54544)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20id='stop3'%20stop-color='%2360d673'/%3e%3cstop%20id='stop4'%20offset='.17'%20stop-color='%2342c868'/%3e%3cstop%20id='stop5'%20offset='.39'%20stop-color='%230ebc5f'/%3e%3cstop%20id='stop6'%20offset='.62'%20stop-color='%2300a9bb'/%3e%3cstop%20id='stop7'%20offset='.86'%20stop-color='%233c90ff'/%3e%3cstop%20id='stop8'%20offset='1'%20stop-color='%233186ff'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='8'%20x2='184'%20y1='46.13'%20y2='46.13'%20gradientTransform='translate(-36.363%20-118.18)scale(4.54544)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20id='stop9'%20offset='.08'%20stop-color='%23ff63a0'/%3e%3cstop%20id='stop10'%20offset='.3'%20stop-color='%23fc413d'/%3e%3cstop%20id='stop11'%20offset='.5'%20stop-color='%23fc413d'/%3e%3cstop%20id='stop12'%20offset='.65'%20stop-color='%23fc413d'/%3e%3cstop%20id='stop13'%20offset='.72'%20stop-color='%23fc5c30'/%3e%3cstop%20id='stop14'%20offset='.86'%20stop-color='%23feb10c'/%3e%3cstop%20id='stop15'%20offset='.91'%20stop-color='%23fec700'/%3e%3cstop%20id='stop16'%20offset='.96'%20stop-color='%23ffdb0f'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,DE=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAWESURBVHgB7ZpdaBxVFMfPubOTxCS2GzDGYrEbxDfBXexKoIqbtJX6lMQvGn3oxlcfLAhCLJIELH0qJk8+NgElfhSzfRBEk+zkRUISyOqTUNARKpVGyTSbmGbn43rvJK2x3czc+dquZX4QdnfmzGT+c84998y5AxATExMTE1M3INSI67muFJGsNBKapBRTt7cTy9IsJCqShPro9z+UIGIiE7zWl0sa6xt5itiLQNMUMCl4qAIUJuUGSWn7dkGFkAld8OqJrhyl5jD7moOAsJtUIEjG22cWFAiJ0ASHKbQKiixLg2F4PLDgndDdHKYIZyFikOJI+9ziKAQgkOC1U10pXTeL7GsKakcgbxPwydrJbNrQjRWorVhOrlKx8uATXx62xVq06CHzhgYFmOyYXcqDTzx72A5jC6bvh1gLYDyIWI4nD/MEpZc3fYUx+0caS2wli8KPEqUqlVBDkyZNxBRBeIa5Lud0PCtWRjvmFkcgIAkvxkzsx+BVLLJCAmFyQ28pdCqK5mR6oyebB0Q2tdHU3u1hid25HEF2LgYuidpzj1qAgx2ziwXwyB89R88SWzgkwxS7e11i3Die/RVEvYtYMg3Sf0jxXyjw2hsTRt9jM8tjECJCgiuzcl7/qe3S3zOHgd6SXM6IpU2judstfO8XQoL1mQRPVGnrZgOUP3sK+Oc+p1M3zeZMvYrluAquFOU0y6Yre7dxT28vtd9ja5pSZ5AwrgWu8zATm797W/OJa/YfNpl3tvE5st7FckQKjxerbWzMrsKBt38GcrBi/6amFGpyiQrHkKZFSBpmYs3RhiWxreLjEwcv/jII/wMcCw/DSKTdRjkP65aXr12Bi+CJnvPlEXb0MISMJUNGeb9131aRY0gjUqF6WZIqCtQJRIe0436nnRYlKXBHw26on2kIwdFJzh4Gdw8jYH3NuZT6F/wg4iiYCniPgtg4rxecPUwskXBN8ukL6gV0dpKLYCK0EmCaDTmoE1hOUZ32O87DMuiq4dIjKFMZ5iqHewGuenruRYuUKIEJYXukKUrde95oOkel68PD7Selavuum83wzvox/qkZjWZnqb8QWcbuOb+RZx+uDYgDut5WGGnb9zrcszSFK9U2f7P9BJzRcrZoRjJxKxFpI555uNfVBqDkJJYjMi0pe3/wEB7bfBo+Kmfs7//+Nzqc/fL1NETAqQtbLJyxz92SzrtZuAqWTxoK7Iq2Q/jmMfhi68nqxpY1nZ7uCz1j69QU6qWhBa55RKjwYEuek/OVQ3YIXzUO7m/Hel6JbakYpuieC2zdSiBZMdSZDx9W3IyEBDcc1yeG1p9T/xPC+5PmorumTqcgIFwsK+hHBM2FFtmES0s2hrw876ZN1IvZqVfy4IOuqb7U8598WvQgVp071zohYuhp5eHZz18dYwe86+UYZq+yuzW6NPD1hJvt0anXckigl1K7rZRs0F6CxrV+Njab3Q4djEQwH5vytrRC/a8YKsjauGxM/mZRS2Or+0k28JNsyjnCzsmz8D1jnxiPQMvvQ4DssxrIVjZmP2jtBkE8rx7ycDNQWql2cVHBPdz055sgl1+4e5dqEalbGXpIBUF8LZfy+ZZaFl8Ir+lDAw/xpr/euvObdUozyrlWT2/++HoeXnrjqxIS0m2PzxpSSX4HG0feY32rVV5NDXoVywn0ygMPbxOlYoAx7QeN32x+08EHgToeCwMFVW80M0zwONQEVBJUzvgVa58BQmInmSWm2YwdRT3NQhhHl09fDtzsD/3FND6XsrPyRe0cBEdjde14a5MxpoT06BnZq4f2+AaSo0jO7HpdMKNjiXVL51llV1geuKxAyNTs5VI+lbFiI4X8xVK6RzyCxosQSZJKLbKu
54KhE2EWJiYmJiYuqMfwAHciLNjm/o5QAAAABJRU5ErkJggg==`,OE=`/assets/granola-BcG_lhIJ.png`,kE=`/assets/imessage-D5XrIP1t.png`,AE=`/assets/instagram-Cwy3C-II.png`,jE=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQzSURBVHgB7Z09TBRBFMf/syeCQOCiklCAORK1gejRGS0QS20gsbDTRqM20NhplMTEwubs1AqsTDSRxo/Kk0JjYSKKhVESL4AJBepBQAHh1nnj3QnH7Qc7DmSX90suu8fOkdwvb2bem73MCvgk0ZuOzy+iaxnokG+TsJGQxziiQRYCGXkclq+hmu0YzKQ6s34+KLwaNJ5PJ5Zj6EEOZxAdYd4I9Mdy6Ju83Zlxb+YARdzcAq7K015sbVI1lehzisiyAlXUCaTlaQIMkYnZ6CwXjVbpHxrOppMsbw0qoBouppOlF1ZFIEeeJ2sisSgwP+a9BcvzIiPHxPbCmFjswvkJIwHGi0TelUJFYL7rfgHjG9mVW6grqwhctv4ZZfwhnan0TsTl2FexgB9g1ktWjoUtVsU8usAEIT4nS1tLTiMdYAIiOmgMTIIJhLDtpJVfVWECYMuUhiJw66yw/H/iFhgtWKAmLFATFqgJC9SEBWqyDRvAkX1xHN4fx8zPJTx9P4Wxb/OICqLhQtqGIfbsqsKj3iSa5XElNx9n1CsKGO3C5eQRl04kVFRGAWMCjx/YXVZeAZIYBYwJbG2udb3uJjdMGBNIE4Yb07/cr4cFYwLvv57Uuh4WjAmkCLv8cLTstZGJ2cgINJoH3n0+obryqUONaG2qxYyUSuLupCc8u3hYMJoHbgW4lNNkQ0o5E1AaRMl4/Y6/X2Hs+zzGZYn4QY6vG4lRgYMOlQhx5cEonsi6uAC1o/blIDFdqWF1TtIoCafa2qktjbMbVSoaFUhSnATWVW8r294NEudVwdD/oDY0cR278QbThier0IyBfuSthEQOnGuDaUIhkKI1SO1M3dz0okUoBBYmiiCYXrSIfBpDixr11eaG+lClMbSS3XPvI0a+zqpKhro2TRbXT+51/AxFb/POKjmZmElvQhOBNJt2y1Tm5edssQykI5WLXilLW1MtTBEagXQvZdzhXgpJdKPOYBcOjcBnw1OO12jlZ9zlRpXOJORFaARSqebGZi3QhmcM9BC0WctjvBqjCQvUhAVqwgI1YYGasEBNWKAmLFATFqgJC9SEBWpi/KcdTktJpfdvqZZ1W9eb8aiF6VYmrRWW49UnX3voBIJ/2qEJd2FNWKAmLFATFqgJC9SEBWpCAs0lSdEna+V3bmQCIICMJWy8AxMIW4hhy7bxAkxA7CHrdxUGweNgIGizWitL++DZGACzPoTopz0EVRoTA1Jg1kUsZ/fRUQmkffByNm6B8Yd0VdgGtJhIL1fhGk3LYFwhRzXSVeF9USCNhZaNTpbojMr7pKOVe0qvKuUoLO0ldLPEtZATclO6l7TjRtw5AVqqToApRp6vjbgJarhYiXaeWKAmjGrpwmlPfX8PIxBq0DyNrQM93WEglkMq8MMISlEbddN+qwJH5etgZB+HkcOQnGV9Pw7jD5O5fMvh4VUWAAAAAElFTkSuQmCC`,ME=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAR+SURBVHgB7Z07bBNZGIXPjK0k0jbZZlds5VCuFm2gWkGRXbHVLgIjaKCBAkpIGhCkITSIMjw6ggQNKaAwSHRYQIFExUNI0AVXINKQBglQnOGesa9xjB/juf94xsn/SZHleKxcfz73OZM7HiJSnAvGv35FMQdMBQEmPQ8F8ziODYD5LCvms1TM4wvz9HFuBKXSnLcS6b29DiieCQpVD9PmyKMbRVgUjMwbuTWcL130Kl2P6/QCE1f9gnMBMINNjBE0nxs1Ijsksq3AeuoeGnkFKJRUyQX4p10a/dZfFGeDSZW3Hrqgk/+Mm9bX1iVQk9eddklsCKy3ec9VXndCiaPYbtvERhWudxgFKF0Jq7NxZZ+HCWTVXfXwFkpk8gEmWJXDBFb970aVaKzWh3ce277VL/gIpV9W8qOY8KtmegYlDuN0xyo8BSUuU77pVSahxIKLKr6nQxcXCv5mWmFJgHEfihMq0BEV6IgKdEQFOqICHclDmJ/GgL9+B375GZni7TvglVlv+vQZoogKPLQb2LerJjGr3CoDi2WIISbwwjFg21ZknsPmS942AcwuQASRNnDfzuGQZ2FZWVskEBH44Blw7wmGBpZVqrzenrNmNiwEq8bMwex1IJZls2w8f6fWmUghKpCwA2E7s3cXMgUTxw5EuhcWF2jJShqTSF0zzm1gpyELC3zW9HTlZ0gNpu7klfbyWO5fBRbynAVy0Hz9VPvC2G+fP8sDPG3FvzV7Dbh2v32VZe24fAL4Q2DkIDIOZDVdON15kMoUMgVsG3fvQKJ0a+uYOjvYl0J0JkJB/+6offsfWi4Ga7RFS7XjpNvGXm3d1i3A9AHz+BtEEZ8Lp5HGXj0sU3dYaODcirhAyyDSSGHzt4Gnb9q/nlTqmklMIEkyjU9f176ENFLXTKICLZJpzELqmhmIQCKRxl6p4+zn+P8YKAMTaImTxl6p43EzB9JZERq4QBI1jXt31p4vlrunjrLTWsRNRaClVxoX7nd+b5qpayb1k0o2jf0scDJ1nIplYRE31QQ20y2NlqykrpnMCCQ2jeX6CvfS+9rvOfnnxD+LJ6wyJdDCYUzSiw5S6Il1R1SgIyrQERXoiAp0RAU64ixweYj/x0mi7M4COdiVPlk9KOxA3QVngZR3d4iui7EsCl2lINIGsjBL7zA0cL3xltA1gmKdyPRV2QsXk4CJYxmlrg0kiVxcxNWSiS3IFOwweEpgaC4u2izoONARFeiICnREBTqiAh1RgY743HwQSlxWuOlEBUpcKr4X4CWUWHDLUL/q4RGUeKzhsT8ygpK2g/HIjaHkcx+8YA03ofQFN6mlu3AYkwfmofQFd/jlYygw3NIywCUo0TCu7DagjYF0fgxzng5pekJHdGWfNwSyPnODVZXYmcYmtE17Sq+byjGWOQ/7VeKPhPKMm9a9pHUj7gj0tRE3CZM4iu3asSDsMMJtjzvsqR/1ZgRzJo1HsEkI7+5gxsYc3sW+GUEr4Ubdn1E07/g78PAnN27cULfDMNXUfKYXVTM9GxmLfjuMbzrD1SXmo+o8AAAAAElFTkSuQmCC`,NE=`/assets/outlook-2G6KXDFI.svg`,PE=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAU8SURBVHgB7Z1PaBxVHMe/Mxs2kXpYLwn2ILs5VCiWpvGgIBplC4KIruBFUSxYb5Z41PbgeqmCl414Sw4KUg8qrGJvBu1BsIfWSoIiwmZBUJpLc+h/spm+78zOJtlmdt/MvDfZt/s+UDabvN2yH37vvd/7vdk3DiSpVL3C3buo5IA5z8OM46AoHgsYAsRn2RCfpSker4inF3J51OtVZ0Pqtf0aVN73ii0H86LliWERJoOQ+UVuCx/VP3GaPdtF/YE
54R17qDDz3gPYwwQlAtNy5ERkTkngLbUfezkFeEhZKaOQ/P7RWNbvcvKqe9GStvN3RBJy8IN91/2xWBNvJ6s1ckdgS2x7zfrbze+BLHcSwcEztduD1hFGHpid+dhavwuR+B7LqbDtZgkWbMQ4ld2Y/Alrtt1CLHZju9czj2bd7BNVjisjE2jpLbEsszWJJQoDt24TlYkjLnilllBpZEsKjiOjZ1SUPRHaUKiwYKLiypsAJTMoaMmX4YKIl/6yLzXBmCtY9WgQcmAmGPTQNHSuLng8HvQs4tA18vw2iUC3zysBBW2hbWi9fLwGrD7EhUKnDh3f7SunnisNkClU0ijLy48sjxx3d3a9NQJjCpBL7upadgLAORxrxsBaaDUchJx0SUCVxPWVF8rQwjUSbwqtSFENEcmTYzCgcmAglTGtNQOgaup4xCE1MapQIb/yEVlPfgKAtMu6LgMJB2LM0apUu5tRQRyOg9+xWMQ6lARuCN2/HHseXLwOKPwWtNQ3kivdKI137pPFD71kx5RLnA3/6Ua0dhpxeB73+F0WgRKBtNjf9hPMoFUt5Pl/q3M70KE6KlmHBRshuzCjNl+KaqFoGcjWUmE0bh/KswGm3lLNnNIhYRTK3EEG0CZaOQcHNp5OuBe1H7Tr7tmTfNHA+1CuTa9pxkV+Z4ePadZBK597xf8p0XP/A8aIRiPjsFTD4k157SmWDLFBX4nh+f3H5vLgmXL2W7TapdIGGELJySb89csvaNSMr/im7TLW8nYeRTqG5yh56uVqGZa9eBm7eA2UNy7fOixPHM0eDn1YhoOvNG9D70gQeCferjs0EbVol0rbUzEUj+/jcolj76iPxrmOJQwsWu5SHTHlav+0GRjH6ueKZEpN64lb5q3k1mAsnlf4J0ZUpyPCSUEApgJJWFuBPPIzYUWW5LX1U4RmYyBu7En21PJrsMhGPbZAz5UXCSUjXRZL6x7pexlpLtn6iQp/J9yL5cmZBGogrWFJbR9u3SDkqc/xz4IeOCKv/fxjAIDFk8n+1VqqqjfiAuLmLS+/anaq5u6IfqVcrAXKVPeZSoOxpXY2569WPgvuYQRqOuZZjqfZiB/J4Io5FbnX6+pjBiKE/1ki7z74nEwS/KLgV5G4uuXN+mufhoRXH3JQMtMCSMSFKeDURynRxXpo4ylxECd+LX/NrjI9fVpYPB42Sh9/KQ6YvsbmEcMl8L64ZFA0YmixBhhOr8WplxEdiPrK92sN/WTIkVmBKXhw/CkpQNHjrRhCUpTdfx8AcsieCRoW7LwS+wJGMLF9x8HnU7DiYjN4G6y3PwvC18CUsseEgt3flpjMima7DEgif88tEX6B9p6WEBFjmEq/AY0E4iPTaBqmNTmr7QEV2FzzsC2Z95wKqVGE3nENodZ0rvWsoxLHMOXrES78eXJ9x0nyVtD+KWINZB3MSPxHEcsxML/AnDP/Y44kx92ZsRVEU0voURwb+7g8iNmd4lvhlBN/5B3bdREa941nNwlAc3DtXtMEQ3FZ/pSkssz/IT8rfDuAdjR72Q/dMmzgAAAABJRU5ErkJggg==`,FE=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAhWSURBVHgB7Z1PbBRVHMd/b+3CigWqIfyxW7NNiQk0kXKjQEJ7cTkZjLEHD2oC8SAHpQc8qQue9NDiAQ+kTYCDhxIT4sl6sSRKvVEPLYZA2NgatkqkQCEtS2d839fOun375s/OezNL6nySSdvd6e7Md37/3u+9nWUUkNztnpbyQuoI//UQMbuLWZSzGbXQGoDZNGenqEg2m+B/XklnrMvF9rG5QP/rt0Puek+uzFIfMct+f60IFgx2Pk3WqeKusaLnXm5PCItbTH1Otv0x/Z9h7Ex6PRfSxSKVAgqrI/YTfqUEUEyT3auyxpT8QOtkT1ciXg3CoFpv9HTJT6yywMTyfKmxxIqAy1mWXaNEPD+K6Yy914mJFRcWCSMRLwi5Fa0EwgJXXPc2JQSGu3I7XFlYYJn+UzQhGGU7Jco7lrvGY1+G3aOE+mA0l15vt6fKGTE8S6gXm1qW+NAWLnyIEkJhpehQE+ONAdumZ4q29Hba9FwzbUo1Vx6bKZdomm/PFLbd1US8q+LfUogOiJXfeIB2r++g/Ru6KMv/9mJy4SbNPC3R+OPfxIa/G0iOtV7vjd3+YFnHXnqLujfs4VsX6QDLHLk/Spf41ggLjVVARzhs1e5pipH7P9Dg3YuxChmbgBCtf8t7kQgnM3D3gtjiIHIBEeOGWk9TZ2an535wxauPJ2hq8RZNP5kVce7B0rx4zomLnZkOHit3UiePl0Fe7+0/+iO3xkgF7Nucp8K2465W98Cap6F/vgsVv3BhEENh1V6Jp/DXWfEeURGZgDgxbCpgHXAxBH8T4EJ5CRmlS0cioJt4jsVFdTJeFh+ViMYFdBMPVnf0z88ir9vg2pdeGVBaYxQipsgg+eYDSvHGeXJ4/fYHsRS9iKX7br0jShoZHBuqAZMYExBX/hR3HxnEOWRDuG+c9N/5Spk8IKJfBq8HYwIO7DhZ4zawuP47X1KjQAaWLRHxcZiXVabqUSMCInjLQzLEvGM85jWawuw3NaEDF9qUKxsRUBX3/IpYuBFEN+lOKhA6cCHlEAIB23waF0HQFhDWJ7suYo+beHAdZMnR3LnKT92Ggh84loG/L9Qcx4kt75Iu2gLK1gfXHb7nXvkPZ0/XCNZv4ET8GOLHhGqgmr7Nh7VjoZaAKFtk60Od5WZ9qlgJ8FjUVkji2C7WPKYbC7UEhCAyaHK6cfRF94PFxYgaWKBshQ0VsPuF1VYz4tEUgKt4JYy+lnwsra7R+V9IPi4d6w8tIN5UPuHR+Z9d9/fLtngtiBg1I3O1DQwd69cQcE/NY+OP3N3X6e15gV5f1KCckd0YfcawhBYQTc1qJhdveg7XgvT7vLK3SSYXbq36W6cWDS2gnH1nyrOe+6uufDXI3nHNsMnHgfARtqgOLWDbutpxrx9yAHdA8olrDgNg2kAmG7eAcgKZCeCiCOAqN29Lb6NGE/YYjPYD/YB48pAKIKPnmw9SXJicaIpVQKAaUoHBl08aGdwHwWS9aUxArGUJCpqdssvjpIYM9um82Kw41mmfJOhGaAFlAbJNwa0HLnSCiyiDcgIdmiAi6gidNWjpoQW8LxXGclb2A25cmD1b8zhE/LH9nKc74zns82vHt8rxuB+qhBG2hAotoNw0UI1M/EA8VJUvsJBxLo7bvDJcHftgG9jxiRAS+waNofukY0VyCztnE1rAqcXVVyxsMeo11QhRZCsrbD1eM3KAkNgX7u8mejWd0pBRp4A3ZoEA6/zC4CVitZVBIK/2kyOkV3cFF1m+AG4FfhBCC4hEICcSna4GBFTFRIesWAsTrO3k5Y6qnuTowwYICOS1LbqdZcTEbj4pPqNR6EI8L5c8LHkJmiA6hbWWgKorpzu/4awsCDs2VvX7HFQTYMOaK7e0BMTVk0cVpuY3ICCsETN8QS0SHoHJdBVtK/GxGryu1xREELRHIqqJmsLWD8kEsEYIAovECgd0vFXxDS57dOZTz1UQiH2y9Y0YWFdtZHUWsqNsdbtvvBHZehhkUWckEuTjD0huw9kvVj2G/8OCJ91jbKII8OtOa79+HXWb26InhAgTx6jtwqpZLa+5kThxWysI1zW1OlZbQNUQTqcwNYWbeHDdQYPdb20BVaMPr7mPOIBHqMSDy5peua8dA+VxZaPFw1AP42WZKMQDWgIGGVciRh7eeJB3QF4Tn4UDJlfoO8DqUD6ppigd8aKY9dMSUBX/MOeK+Y1uLhiEUy725s0BFLUmhIRwGP24Fe9RL27XqgOxVDa/UW8yyPmE0ujDq8L9/UoLZ41Nvnk/9bV4L0/D62H6IMpPK2kJOPXq98bnMGApEFE+acxjIN4GaceL2T9u3VF+QskhtAurFhd54axM8Ju+dGJYN4UDIWHQY42iaTQE9G7hO4LJH4xG4jnB4x/aSqasF++FLgwSWNxVQGgXlse/Th/OEczvRJaz8wFRR9ZrzdXvB9HcVjzEActO9d6r976AOFnEP4iErIuTcGJXWJZX7HeI6dG2ddtqBIVLPlh6VPm4//STUsNEq8BojmV/771m21RXA885uYafQKNhNJHi4tU98teZBlxTMDbBx8JsjBLCYVlXUukF6zJuwkoJdZPO0OVUcS/ug8fiW924Vkix87iHoGhnPWXWGUqoiyXLOoWfQsDSrrEis9nXlBAMrlVp5TaglYZq06JV4D+KlOBHMf280EpQERCxcInsXkpE9KIIjarvKb2qpS/M0rLfpEREFUKbknQvaeV927Zf78k9l9wOuRpheaUgN+IG2DG9YO9NEguJhIHbHpdc7qnve+fAFWss8F/9Vy6uEcS3O/DaeImXd6WwX0Ygs3yjbjrC/6WHMdpDa+zrMLgvopSbsOr8Oox/AZlJNWiXC4vUAAAAAElFTkSuQmCC`;function IE(e){let t=(0,q.c)(3),{src:n,className:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,U.jsx)(`img`,{src:n,alt:``,"aria-hidden":`true`,className:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function LE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:DE,className:n}),t[0]=n,t[1]=r),r}function RE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:EE,className:n}),t[0]=n,t[1]=r),r}function zE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:NE,className:n}),t[0]=n,t[1]=r),r}function BE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:jE,className:n}),t[0]=n,t[1]=r),r}function VE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:TE,className:n}),t[0]=n,t[1]=r),r}function HE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:AE,className:n}),t[0]=n,t[1]=r),r}function UE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:FE,className:n}),t[0]=n,t[1]=r),r}function WE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:kE,className:n}),t[0]=n,t[1]=r),r}function GE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:PE,className:n}),t[0]=n,t[1]=r),r}function KE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:wE,className:n}),t[0]=n,t[1]=r),r}function qE(e){let t=(0,q.c)(2),{className:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(IE,{src:ME,className:n}),t[0]=n,t[1]=r),r}function JE(e){let t=(0,q.c)(4),{className:n}=e,r;t[0]===n?r=t[1]:(r=$e(`rounded-[22%]`,n),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,U.jsx)(IE,{src:OE,className:r}),t[2]=r,t[3]=i),i}function YE(e){let t=(0,q.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,U.jsx)(`span`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-card shadow-xs`,children:n}),t[0]=n,t[1]=r),r}var XE=`/assets/Circle-Dt-YmYro.png`,ZE=`/assets/Circle-1-CGBo9U5P.png`,QE=`/assets/Circle-2-CuCbxLFf.png`,$E=`/assets/Circle-3-BgWucdxb.png`,eD=`/assets/Circle-4-BAZpzUbV.png`,tD=[{key:`gmail`,Icon:RE},{key:`outlook`,Icon:zE},{key:`linkedin`,Icon:BE},{key:`whatsapp`,Icon:UE}
54,{key:`instagram`,Icon:HE},{key:`imessage`,Icon:WE},{key:`facebook`,Icon:VE}],nD=[{label:`All contacts`,icon:rp},{label:`MBA Classmates`,icon:np},{label:`Alumni Network`,icon:cp},{label:`Mentors & Advisors`,icon:at}],rD=[{name:`James Robinson`,title:`MBA Classmate · Finance`,frequency:`Every week`,avatar:eD},{name:`Amelia White`,title:`Venture Capital Associate`,frequency:`Every 2 weeks`,avatar:QE},{name:`Christopher Taylor`,title:`Director of Inside Sales`,frequency:`Every week`,avatar:ZE},{name:`Alexander Rodriguez`,title:`Entrepreneurship Club Lead`,frequency:`Every month`,avatar:$E},{name:`Samuel Brown`,title:`Product Manager · Growth`,frequency:`Every 3 months`,avatar:XE}],iD=460,aD=90,oD=350,sD=1100,cD=iD+((tD.length-1)*aD+oD)+450,lD=356,uD=`grid-cols-[1.4fr_1fr_0.7fr]`;function dD(){let e=(0,q.c)(21),[t,n]=(0,H.useState)(`icons`),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=setTimeout(()=>n(`skeleton`),cD),t=setTimeout(()=>n(`loaded`),cD+sD);return()=>{clearTimeout(e),clearTimeout(t)}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,H.useEffect)(r,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(`div`,{className:`flex shrink-0 gap-3`,children:tD.map(hD)}),e[2]=a):a=e[2];let o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o={maxHeight:lD},s={opacity:0,y:12},e[3]=o,e[4]=s):(o=e[3],s=e[4]);let c=t===`icons`?0:1,l=t===`icons`?12:0,u;e[5]!==c||e[6]!==l?(u={opacity:c,y:l},e[5]=c,e[6]=l,e[7]=u):u=e[7];let d,f;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(d={duration:.4,ease:`easeOut`},f={height:lD},e[8]=d,e[9]=f):(d=e[8],f=e[9]);let p;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,U.jsx)(`p`,{className:`font-display text-heading-md text-foreground`,children:`All contacts`}),e[10]=p):p=e[10];let m;e[11]===t?m=e[12]:(m=(0,U.jsxs)(`div`,{className:`mb-3`,children:[p,(0,U.jsx)(Qp,{mode:`wait`,children:t===`skeleton`?(0,U.jsxs)(V.p,{initial:{opacity:0}
54,animate:{opacity:1},exit:{opacity:0},className:`mt-1 flex items-center gap-1 text-caption-md text-muted-foreground`,children:[(0,U.jsx)(Ze,{className:`size-3 animate-spin`}),`total contacts`]},`count-spinner`):(0,U.jsx)(V.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`mt-1 text-caption-md text-muted-foreground`,children:`517 total contacts`},`count-loaded`)})]}),e[11]=t,e[12]=m);let h;e[13]===t?h=e[14]:(h=(0,U.jsx)(Qp,{mode:`wait`,children:t===`loaded`?(0,U.jsxs)(V.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},children:[(0,U.jsxs)(`div`,{className:`mb-3 flex items-center gap-0.5`,children:[nD.map(mD),(0,U.jsx)(op,{className:`ml-1 size-4 shrink-0 text-muted-foreground`})]}),(0,U.jsxs)(`div`,{className:`overflow-hidden rounded-lg border border-border`,children:[(0,U.jsxs)(`div`,{className:`grid ${uD} divide-x divide-border border-b border-border`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,U.jsx)(CE,{className:`pointer-events-none`}),(0,U.jsx)(`span`,{className:`text-caption-md text-muted-foreground`,children:`Name`})]}),(0,U.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,U.jsx)(`span`,{className:`text-caption-md text-muted-foreground`,children:`Title`})}),(0,U.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,U.jsx)(`span`,{className:`text-caption-md text-muted-foreground`,children:`Frequency`})})]}),(0,U.jsx)(`div`,{className:`divide-y divide-border`,children:rD.map(pD)})]})]},`loaded`):(0,U.jsxs)(V.div,{initial:{opacity:0}
54,animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},children:[(0,U.jsxs)(`div`,{className:`mb-3 flex gap-1.5`,children:[(0,U.jsx)(yT,{className:`h-6 w-20`}),(0,U.jsx)(yT,{className:`h-6 w-20`}),(0,U.jsx)(yT,{className:`h-6 w-20`})]}),(0,U.jsxs)(`div`,{className:`overflow-hidden rounded-lg border border-border`,children:[(0,U.jsxs)(`div`,{className:`grid ${uD} divide-x divide-border border-b border-border`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,U.jsx)(yT,{className:`size-3.5 shrink-0 rounded-[4px]`}),(0,U.jsx)(yT,{className:`h-2.5 w-16`})]}),(0,U.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,U.jsx)(yT,{className:`h-2.5 w-14`})}),(0,U.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,U.jsx)(yT,{className:`h-2.5 w-10`})})]}),(0,U.jsx)(`div`,{className:`divide-y divide-border`,children:Array.from({length:rD.length}).map(fD)})]})]},`skeleton`)}),e[13]=t,e[14]=h);let g;e[15]!==m||e[16]!==h?(g=(0,U.jsxs)(`div`,{style:f,className:`w-full overflow-hidden rounded-2xl border border-border bg-card pt-6 pr-6 pb-4 pl-6 shadow-md`,children:[m,h]}),e[15]=m,e[16]=h,e[17]=g):g=e[17];let _;return e[18]!==g||e[19]!==u?(_=(0,U.jsxs)(`div`,{className:`flex size-full flex-col items-center gap-4 pt-2`,children:[a,(0,U.jsx)(V.div,{className:`mask-r-from-70% mask-r-to-100% mask-b-from-60% mask-b-to-100% min-h-0 w-full flex-1 overflow-hidden`,style:o,initial:s,animate:u,transition:d,children:g})]}),e[18]=g,e[19]=u,e[20]=_):_=e[20],_}function fD(e,t){return(0,U.jsxs)(`div`,{className:`grid ${uD}
54 divide-x divide-border`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,U.jsx)(yT,{className:`size-3.5 shrink-0 rounded-[4px]`}),(0,U.jsx)(yT,{className:`size-5 shrink-0 rounded-full`}),(0,U.jsx)(yT,{className:`h-2.5 flex-1`})]}),(0,U.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,U.jsx)(yT,{className:`h-2.5 w-full max-w-24`})}),(0,U.jsx)(`div`,{className:`flex items-center px-3 py-2`,children:(0,U.jsx)(yT,{className:`h-2.5 w-10`})})]},t)}function pD(e){return(0,U.jsxs)(`div`,{className:`grid ${uD} divide-x divide-border`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2 px-3 py-2`,children:[(0,U.jsx)(CE,{className:`pointer-events-none shrink-0`}),(0,U.jsxs)(GT,{size:`sm`,className:`shrink-0`,children:[(0,U.jsx)(KT,{src:e.avatar,alt:``}),(0,U.jsx)(qT,{children:e.name[0]})]}),(0,U.jsx)(`span`,{className:`truncate text-sm text-foreground`,children:e.name})]}),(0,U.jsx)(`div`,{className:`flex min-w-0 items-center px-3 py-2`,children:(0,U.jsx)(`span`,{className:`truncate text-caption-md text-muted-foreground`,children:e.title})}),(0,U.jsx)(`div`,{className:`flex min-w-0 items-center px-3 py-2`,children:(0,U.jsx)(`span`,{className:`inline-flex h-5 items-center truncate rounded-full border border-border bg-card px-2 text-caption-md text-foreground`,children:e.frequency})})]},e.name)}function mD(e,t){return(0,U.jsxs)(`span`,{className:t===0?`flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg bg-background px-3 py-1 text-label-sm text-foreground`:`flex max-w-[100px] items-center gap-1.5 truncate px-3 py-1 text-label-sm text-muted-foreground`,children:[(0,U.jsx)(e.icon,{className:`size-4 shrink-0`}),(0,U.jsx)(`span`,{className:t===0?``:`truncate`,children:e.label})]},e.label)}function hD(e,t){let{key:n,Icon:r}=e;return(0,U.jsx)(V.div,{className:`flex size-14 items-center justify-center rounded-2xl border border-border bg-background shadow-[0px_4px_6.5px_0px_rgba(0,0,0,0.05)]`,initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{delay:(iD+t*aD)/1e3,duration:oD/1e3,ease:`easeOut`},children:(0,U.jsx)(`div`,{className:`flex size-11 items-center justify-center rounded-[10px] border border-border bg-card`,children:(0,U.jsx)(r,{className:`size-6`})})},n)}var gD=`/assets/daniel-eGO-Bi1h.png`,_D=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='Facebook'%3e%3cpath%20id='Vector'%20d='M16.5301%2014.7292L16.8326%2012.6178H14.9413V11.2476C14.9413%2010.67%2015.2055%2010.1069%2016.0525%2010.1069H16.9124V8.30931C16.9124%208.30931%2016.1321%208.16667%2015.3861%208.16667C13.8285%208.16667%2012.8104%209.17793%2012.8104%2011.0086V12.6178H11.079V14.7292H12.8104V19.8333H14.9413V14.7292H16.5301Z'%20fill='%23456EE8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,vD=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='iMessage%20icon'%3e%3cpath%20id='path922'%20d='M13.9992%208.16667C12.2957%208.16668%2010.6619%208.73035%209.45736%209.73368C8.25278%2010.737%207.57605%2012.0978%207.57604%2013.5167C7.57759%2014.4397%207.86577%2015.3466%208.41256%2016.1493C8.95935%2016.9521%209.74615%2017.6233%2010.6965%2018.0979C10.4434%2018.6646%2010.0638%2019.196%209.57337%2019.67C10.5244%2019.5031%2011.4171%2019.1524%2012.1821%2018.6452C12.7719%2018.7912%2013.3839%2018.8658%2013.9992%2018.8668C15.7028%2018.8668%2017.3365%2018.3031%2018.5411%2017.2998C19.7457%2016.2965%2020.4224%2014.9357%2020.4224%2013.5167C20.4224%2012.0978%2019.7457%2010.737%2018.5411%209.73368C17.3365%208.73035%2015.7028%208.16668%2013.9992%208.16667Z'%20fill='%23456EE8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,yD=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='icon/instagram'%20clip-path='url(%23clip0_83_11138)'%3e%3cpath%20id='Vector'%20d='M16.9
54167%208.16667H11.0833C9.4725%208.16667%208.16667%209.4725%208.16667%2011.0833V16.9167C8.16667%2018.5275%209.4725%2019.8333%2011.0833%2019.8333H16.9167C18.5275%2019.8333%2019.8333%2018.5275%2019.8333%2016.9167V11.0833C19.8333%209.4725%2018.5275%208.16667%2016.9167%208.16667Z'%20stroke='%23456EE8'%20stroke-width='1.4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M16.3333%2013.6325C16.4053%2014.118%2016.3224%2014.6138%2016.0964%2015.0494C15.8703%2015.4851%2015.5127%2015.8383%2015.0743%2016.059C14.6359%2016.2796%2014.1391%2016.3564%2013.6545%2016.2785C13.17%2016.2005%2012.7224%2015.9717%2012.3753%2015.6247C12.0283%2015.2776%2011.7995%2014.83%2011.7215%2014.3455C11.6436%2013.8609%2011.7204%2013.3641%2011.941%2012.9257C12.1617%2012.4873%2012.5149%2012.1297%2012.9506%2011.9036C13.3862%2011.6776%2013.882%2011.5947%2014.3675%2011.6667C14.8627%2011.7401%2015.3212%2011.9709%2015.6752%2012.3248C16.0291%2012.6788%2016.2599%2013.1373%2016.3333%2013.6325Z'%20stroke='%23456EE8'%20stroke-width='1.4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M17.2083%2010.7917H17.2142'%20stroke='%23456EE8'%20stroke-width='1.4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_83_11138'%3e%3crect%20width='14'%20height='14'%20fill='white'%20transform='translate(7%207)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,bD=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='Linkedin'%3e%3cpath%20id='Union'%20d='M11.1006%2019.25H8.92285V12.2402H11.1006V19.25ZM16.6416%2012.0635C18.8439%2012.0635%2019.25%2013.5147%2019.25%2015.3984V19.25H17.0752V15.8369C17.0752%2015.0236%2017.0585%2013.9805%2015.9434%2013.9805C14.8116%2013.9805%2014.6387%2014.8645%2014.6387%2015.7783V19.25H12.4639V12.2393H14.5518V13.1953H14.583C14.8731%2012.6447%2015.5833%2012.0637%2016.6416%2012.0635ZM10.0107%208.75C10.7063%208.75%2011.271%209.31474%2011.2715%2010.0107C11.2715%2010.7068%2010.7068%2011.2832%2010.0107%2011.2832C9.31474%2011.2831%208.75%2010.7068%208.75%2010.0107C8.75006%209.35831%209.24638%208.82152%209.88184%208.75684L10.0107%208.75Z'%20fill='%23456EE8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,xD=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='icon/mail_big'%3e%3cpath%20id='Vector%20(Stroke)'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.33333%209.91667C9.01117%209.91667%208.75%2010.1778%208.75%2010.5V17.5C8.75%2017.8222%209.01117%2018.0833%209.33333%2018.0833H18.6667C18.9888%2018.0833%2019.25%2017.8222%2019.25%2017.5V10.5C19.25%2010.1778%2018.9888%209.91667%2018.6667%209.91667H9.33333ZM7.58333%2010.5C7.58333%209.5335%208.36684%208.75%209.33333%208.75H18.6667C19.6332%208.75%2020.4167%209.5335%2020.4167%2010.5V17.5C20.4167%2018.4665%2019.6332%2019.25%2018.6667%2019.25H9.33333C8.36684%2019.25%207.58333%2018.4665%207.58333%2017.5V10.5Z'%20fill='%23456EE8'/%3e%3cpath%20id='Vector%20(Stroke)_2'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.6744%2010.2212C7.84719%209.91513%208.20768%209.82469%208.47959%2010.0192L13.7102%2013.7603C13.7971%2013.8212%2013.8975%2013.8535%2014%2013.8535C14.1025%2013.8535%2014.2029%2013.8212%2014.2898%2013.7603C14.2903%2013.76%2014.2907%2013.7597%2014.2911%2013.7594L19.5204%2010.0192C19.7923%209.82469%2020.1528%209.91513%2020.3256%2010.2212C20.4984%2010.5272%2020.418%2010.933%2020.1461%2011.1275L14.9105%2014.8721C14.6376%2015.0646%2014.3221%2015.1667%2014%2015.1667C13.6779%2015.1667%2013.3624%2015.0646%2013.0895%2014.8721L13.0863%2014.8699L7.85388%2011.1275C7.58197%2010.933%207.50162%2010.5272%207.6744%2010.2212Z'%20fill='%23456EE8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,SD=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='Facebook-messenger%20'%3e%3cpath%20id='Vector'%20d='M14.0129%208.16632C10.7192%208.16632%208.16667%2010.5736%208.16667%2013.8252C8.16667%2015.5259%208.86549%2016.9956%2010.003%2018.0108C10.1994%2018.1875%2010.1589%2018.2898%2010.1923%2019.3805C10.195%2019.4569%2010.2163%2019.5315%2010.2543%2019.5978C10.2924%2019.6641%2010.3461%2019.7201%2010.4108%2019.7608C10.4755%2019.8016%2010.5491%2019.8259%2010.6254%2019.8317C10.7016%2019.8374%2010.7781%2019.8244%2010.8481%2019.7938C12.0926%2019.2458%2012.1086%2019.2025%2012.3196%2019.2599C15.9252%202
540.2523%2019.8333%2017.9447%2019.8333%2013.8252C19.8333%2010.5736%2017.3069%208.16632%2014.0129%208.16632ZM17.5233%2012.5211L15.8062%2015.2396C15.7414%2015.3418%2015.6561%2015.4296%2015.5558%2015.4973C15.4555%2015.565%2015.3422%2015.6113%2015.2232%2015.6332C15.1041%2015.6552%2014.9818%2015.6523%2014.864%2015.6247C14.7461%2015.5972%2014.6352%2015.5456%2014.5382%2015.4732L13.172%2014.4506C13.111%2014.4048%2013.0367%2014.3801%2012.9603%2014.3801C12.884%2014.3801%2012.8097%2014.4048%2012.7487%2014.4506L10.9053%2015.8488C10.6592%2016.0354%2010.337%2015.7406%2010.5028%2015.4802L12.2199%2012.7617C12.2847%2012.6595%2012.37%2012.5717%2012.4703%2012.504C12.5706%2012.4362%2012.6838%2012.3899%2012.8029%2012.368C12.922%2012.346%2013.0443%2012.3489%2013.1621%2012.3765C13.28%2012.4041%2013.3909%2012.4557%2013.4879%2012.5281L14.8536%2013.5504C14.9147%2013.5962%2014.9889%2013.621%2015.0653%2013.621C15.1416%2013.621%2015.2159%2013.5962%2015.277%2013.5504L17.1213%2012.1537C17.3669%2011.9659%2017.6891%2012.2604%2017.5233%2012.5211V12.5211Z'%20fill='%23456EE8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,CD=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='Telegram'%20clip-path='url(%23clip0_83_11172)'%3e%3cpath%20id='Vector'%20d='M14%206.37109C9.78666%206.37109%206.37109%209.78666%206.37109%2014C6.37109%2018.2133%209.78666%2021.6289%2014%2021.6289C18.2133%2021.6289%2021.6289%2018.2133%2021.6289%2014C21.6289%209.78666%2018.2133%206.37109%2014%206.37109ZM17.5361%2011.5594C17.4213%2012.7657%2016.9245%2015.6931%2016.6717%2017.0442C16.5648%2017.6159%2016.3542%2017.8076%2016.1504%2017.8263C15.7074%2017.8671%2015.3709%2017.5335%2014.9418%2017.2523C14.2704%2016.8121%2013.8911%2016.5381%2013.2393%2016.1086C12.4861%2015.6123%2012.9744%2015.3396%2013.4036%2014.8935C13.516%2014.7769%2015.4679%2013.0014%2015.5057%2012.8403C15.5104%2012.8202%2015.515%2012.745%2015.4702%2012.7055C15.4255%2012.666%2015.3598%2012.6793%2015.3123%2012.6901C15.2449%2012.7054%2014.1723%2013.4143%2012.0943%2014.817C11.7899%2015.0261%2011.5141%2015.1279%2011.267%2015.1226C10.9946%2015.1167%2010.4707%2014.9686%2010.0811%2014.8419C9.60338%2014.6867%209.22366%2014.6046%209.25673%2014.3408C9.27395%2014.2034%209.46314%2014.0629%209.82428%2013.9194C12.0483%2012.9504%2013.5313%2012.3116%2014.2733%2012.0029C16.3919%2011.1217%2016.8321%2010.9686%2017.1191%2010.9635C17.1822%2010.9625%2017.3233%2010.9781%2017.4147%2011.0523C17.4755%2011.1051%2017.5143%2011.1788%2017.5233%2011.2589C17.5388%2011.3582%2017.5431%2011.459%2017.5361%2011.5594V11.5594Z'%20fill='%23456EE8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_83_11172'%3e%3crect%20width='15.75'%20height='15.75'%20fill='white'%20transform='translate(6.125%206.125)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,wD=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='_Base_button'%3e%3ccircle%20id='Ellipse%202'%20cx='14'%20cy='14'%20r='14'%20fill='%23EEF3FF'/%3e%3cg%20id='Whatsapp%20'%20clip-path='url(%23clip0_83_11148)'%3e%3cpath%20id='Vector'%20d='M18.3106%209.65508C17.1627%208.50664%2015.6339%207.875%2014.0092%207.875C10.6558%207.875%207.92705%2010.5984%207.92705%2013.9453C7.92705%2015.0145%208.20651%2016.059%208.73801%2016.9805L7.875%2020.125L11.0997%2019.2801C11.9873%2019.7641%2012.9873%2020.0184%2014.0065%2020.0184H14.0092C17.3599%2020.0184%2020.149%2017.2949%2020.149%2013.948C20.149%2012.3266%2019.4586%2010.8035%2018.3106%209.65508V9.65508ZM14.0092%2018.9957C13.0997%2018.9957%2012.2092%2018.7523%2011.4339%2018.293L11.2503%2018.1836L9.33801%2018.684L9.8476%2016.8219L9.72705%2016.6305C9.22021%2015.8266%208.95445%2014.8996%208.95445%2013.9453C8.95445%2011.1645%2011.2229%208.90039%2014.012%208.90039C15.3627%208.90039%2016.6312%209.42539%2017.5846%2010.3797C18.538%2011.334%2019.1243%2012.6%2019.1216%2013.948C19.1216%2016.7316%2016.7955%2018.9957%2014.0092%2018.9957V18.9957ZM16.7818%2015.2168C16.6312%2015.1402%2015.8832%2014.7738%2015.7435%2014.7246C15.6038%2014.6727%2015.5024%2014.648%2015.401%2014.8
54012C15.2997%2014.9543%2015.0092%2015.2934%2014.9188%2015.3973C14.8312%2015.4984%2014.7408%2015.5121%2014.5901%2015.4355C13.6969%2014.9898%2013.1106%2014.6398%2012.5216%2013.6309C12.3654%2013.3629%2012.6777%2013.382%2012.9682%2012.8023C13.0175%2012.7012%2012.9928%2012.6137%2012.9545%2012.5371C12.9161%2012.4605%2012.612%2011.7141%2012.486%2011.4105C12.3627%2011.1152%2012.2366%2011.1563%2012.1435%2011.1508C12.0558%2011.1453%2011.9545%2011.1453%2011.8531%2011.1453C11.7517%2011.1453%2011.5873%2011.1836%2011.4476%2011.334C11.3079%2011.4871%2010.9161%2011.8535%2010.9161%2012.6C10.9161%2013.3465%2011.4613%2014.0684%2011.5353%2014.1695C11.612%2014.2707%2012.6065%2015.802%2014.1325%2016.4609C15.0969%2016.8766%2015.475%2016.9121%2015.9572%2016.841C16.2503%2016.7973%2016.8558%2016.4746%2016.9818%2016.1191C17.1079%2015.7637%2017.1079%2015.4602%2017.0695%2015.3973C17.0339%2015.3289%2016.9325%2015.2906%2016.7818%2015.2168Z'%20fill='%23456EE8'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_83_11148'%3e%3crect%20width='14'%20height='14'%20fill='white'%20transform='translate(7%207)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,TD=[{key:`telegram`,src:CD},{key:`imessage`,src:vD},{key:`messenger`,src:SD},{key:`whatsapp`,src:wD}
54,{key:`instagram`,src:yD},{key:`facebook`,src:_D},{key:`linkedin`,src:bD},{key:`mail`,src:xD}],ED=`Last connected 4 months ago via WhatsApp. Daniel had just shipped a major feature launch and was talking about taking a proper vacation for the first time in a year â mentioned wanting to go to Japan.`,DD=`Hey Daniel, it's been a while! How'd the launch land, and did you end up making it to Japan? Would love to catch up over coffee sometime.`,OD=560,kD=1060,AD=155,jD=400;function MD(){let e=(0,q.c)(27),[t,n]=(0,H.useState)(`entering`),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=setTimeout(()=>n(`skeleton`),kD),t=setTimeout(()=>n(`loaded`),2460);return()=>{clearTimeout(e),clearTimeout(t)}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,H.useEffect)(r,i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={maxHeight:jD},e[2]=a):a=e[2];let o,s,c,l;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o={opacity:0,y:12},s={opacity:1,y:0},c={delay:OD/1e3,duration:.4,ease:`easeOut`},l={height:jD},e[3]=o,e[4]=s,e[5]=c,e[6]=l):(o=e[3],s=e[4],c=e[5],l=e[6]);let u;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,U.jsx)(`img`,{src:gD,alt:``,className:`size-14 shrink-0 rounded-full object-cover`}),e[7]=u):u=e[7];let d,f;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,U.jsx)(`p`,{className:`font-display text-heading-md text-foreground`,children:`Daniel Carter`}),f=(0,U.jsx)(`p`,{className:`truncate text-caption-md text-muted-foreground`,children:`Senior Product Manager, Google`}),e[8]=d,e[9]=f):(d=e[8],f=e[9]);let p;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,U.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-border px-2 py-0.5 text-caption-md text-foreground`,children:[(0,U.jsx)(Jf,{className:`size-3 shrink-0 text-blue-500`}),`Top`]}),e[10]=p):p=e[10];let m;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,U.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1.5`,children:[p,(0,U.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-full border border-border px-2 py-0.5 text-caption-md text-foreground`,children:[(0,U.jsx)(tp,{className:`size-3 shrink-0 text-muted-foreground`}),`Every month`]})]}),e[11]=m):m=e[11];let h;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,U.jsx)(`div`,{className:`mask-b-from-60% mask-b-to-100% min-h-0 w-full max-w-[420px] flex-1 overflow-hidden`,style:a,children:(0,U.jsx)(V.div,{initial:o,animate:s,transition:c,style:l,className:`w-full rounded-3xl border border-border bg-card p-5 shadow-md`,children:(0,U.jsxs)(`div`,{className:`flex items-start gap-3`,children:[u,(0,U.jsxs)(`div`,{className:`min-w-0 flex-1 pt-0.5`,children:[d,f,m,(0,U.jsx)(`div`,{className:`mt-4 flex gap-2.5`,children:TD.map(ND)})]})]})})}),e[12]=h):h=e[12];let g;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(g={opacity:0,y:12},e[13]=g):g=e[13];let _=t===`entering`?0:1,v=t===`entering`?12:0,y;e[14]!==_||e[15]!==v?(y={opacity:_,y:v},e[14]=_,e[15]=v,e[16]=y):y=e[16];let b,x;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(b={duration:.4,ease:`easeOut`},x={top:AD},e[17]=b,e[18]=x):(b=e[17],x=e[18]);let S;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,U.jsx)(`p`,{className:`text-caption-sm text-blue-400 uppercase`,children:`Summary`}),e[19]=S):S=e[19];let C,w;e[20]===t?(C=e[21],w=e[22]):(C=(0,U.jsxs)(`div`,{className:`rounded-2xl border-2 border-blue-50 bg-gradient-to-b from-blue-50 to-card p-4 shadow-md`,children:[S,t===`loaded`?(0,U.jsx)(V.p,{initial:{opacity:0}
54,animate:{opacity:1},transition:{duration:.3},className:`mt-1.5 line-clamp-3 text-caption-md text-foreground`,children:ED}):(0,U.jsxs)(`div`,{className:`mt-2 flex flex-col gap-1.5`,children:[(0,U.jsx)(yT,{className:`h-3 w-full bg-blue-100`}),(0,U.jsx)(yT,{className:`h-3 w-full bg-blue-100`}),(0,U.jsx)(yT,{className:`h-3 w-3/5 bg-blue-100`})]})]}),w=t===`loaded`&&(0,U.jsxs)(V.div,{initial:{opacity:0,y:-12},animate:{opacity:1,y:0},transition:{duration:.4,delay:.15,ease:`easeOut`},className:`rounded-2xl border-2 border-blue-50 bg-gradient-to-b from-blue-50 to-card p-4 shadow-md`,children:[(0,U.jsx)(`p`,{className:`text-caption-sm text-blue-400 uppercase`,children:`Suggested action`}),(0,U.jsxs)(`div`,{className:`mt-1.5 flex items-start gap-2`,children:[(0,U.jsxs)(`p`,{className:`line-clamp-2 flex-1 text-caption-md text-foreground`,children:[`â`,DD,`â`]}),(0,U.jsx)(Qe,{variant:`ghost`,size:`icon-sm`,className:`shrink-0 text-blue-500`,"aria-label":`Send message`,children:(0,U.jsx)(ot,{})})]})]}),e[20]=t,e[21]=C,e[22]=w);let T;return e[23]!==y||e[24]!==C||e[25]!==w?(T=(0,U.jsxs)(`div`,{className:`relative flex size-full flex-col items-center pt-2`,children:[h,(0,U.jsxs)(V.div,{initial:g,animate:y,transition:b,style:x,className:`absolute left-1/2 flex w-[480px] -translate-x-1/2 flex-col gap-3`,children:[C,w]})]}),e[23]=y,e[24]=C,e[25]=w,e[26]=T):T=e[26],T}function ND(e){let{key:t,src:n}=e;return(0,U.jsx)(`img`,{src:n,alt:``,className:`size-7`},t)}var PD=[{kind:`single-choice`,storageKey:`what_brings_you_to_dex`,eventKey:`what_brings_you_to_dex`,title:`What brings you to Dex?`,subtitle:`Tell us about why you're looking to use Dex.`,options:[{value:`stay_in_touch`,label:`Stay in touch`},{value:`organize_network`,label:`Organize my network`},{value:`find_new_job`,label:`Find a new job`},{value:`be_more_thoughtful`,label:`Be more thoughtful`}]},{kind:`feature`,eventKey:`feature_bring_together`,title:`Bring together everyone you know`,subtitle:`Dex tracks your interactions automatically â LinkedIn, Gmail, iMessage, Instagram, WhatsApp and more`,render:()=>(0,H.createElement)(dD)},{kind:`feature`,eventKey:`feature_remember`,title:`Always remember where you left off`,subtitle:`Jot down a note, and impress with thoughtfulness the next time you see someone.`,render:()=>(0,H.createElement)(MD)},{kind:`multi-choice`,storageKey:`who`,eventKey:`who`,title:`Who are you looking to build relationships with?`,subtitle:`You can set multiple options.`,options:[{value:`coworkers_professionals`,label:`Coworkers / Professionals`},{value:`clients_partners`,label:`Clients / Partners`},{value:`mentors`,label:`Mentors`},{value:`classmates`,label:`Classmates`},{value:`friends_family`,label:`Friends & Family`}]},{kind:`feature`,eventKey:`feature_map`,title:`See your people around the world`,subtitle:`Visualize your network by location to plan outreach and your next trip.`,lottie:`/preboard/preboard03.json`},{kind:`feature`,eventKey:`feature_ai_copilot`,title:`AI for your network, one text away`,subtitle:`Text Dex to log interactions, set reminders and easily stay on top of your relationships.`,lottie:`/preboard/preboard04.json`,loop:!1},{kind:`multi-choice`,storageKey:`hear`,eventKey:`hear`,title:`How did you hear about Dex?`,subtitle:`Select all that apply`,options:[{value:`word_of_mouth`,label:`Word of mouth (friends, coworker, etc)`},{value:`google_search`,label:`Google search`},{value:`social_media_ad`,label:`Social Media Ad`},{value:`newsletter_podcast`,label:`Newsletter / Podcast`},{value:`event_or_conference`,label:`Event or conference`},{value:`other`,label:`Other`}]},{kind:`feature`,eventKey:`feature_notifications`,title:`Bring Dex into your AI tools`,subtitle:`Ask Claude, ChatGPT, or any AI assistant about your contacts, right from where you already work.`,render:()=>(0,H.createElement)(FT)}];z();var FD=()=>B(()=>import(`./preboard-BA-kfSdF.js`),__vite__mapDeps([87,1,2,23,24,25,4,26,27,88,5,6,7,8,9,10,11,89,35,39,36,45,42,47,50,90,91,92,57,93,41,56,94,66])),ID=Zt({step:Jt().int().min(0).max(PD.length-1).catch(0),ref:Kt().optional().catch(void 0),ref_post:Kt().optional().catch(void 0)}),LD=G(`/preboard`)({validateSearch:ID,head:()=>J(`Get Started`),component:K(FD,`component`)});z();var RD=()=>B(()=>import(`./mobile-CisH1BDl.js`),__vite__mapDeps([95,4,1,5,2,12,13,17,9,16,65,23,24,25,26,27,6,7,8,10,11,66,67,68,96,97])),zD=`Download Dex for iOS and Android to manage your relationships, follow-ups, and contact context on the go.`,BD=G(`/mobile`)({head:()=>J(`Mobile App`,{description:zD,canonicalPath:`/mobile`,markdownPath:`/mobile.md`,jsonLd:vC([{...yC({id:`${jt}/mobile/#software`,name:`Dex for iOS and Android`,description:zD,operatingSystem:`iOS, Android`,category:`MobileApplication`,url:sC(`/mobile`),downloadUrl:gt}),sameAs:[gt,ht]},hC([{name:`Mobile app`,path:`/mobile`}])])}),component:K(RD,`component`)}),VD=zC.mba;z();var HD=G(`/mba`)({head:()=>J(`Dex for MBA students: 50% off for 2 years`,{description:VD.seoDescription,canonicalPath:VD.path}),component:K(()=>B(()=>import(`./mba-B3Ph35sP.js`),__vite__mapDeps([98,4,1,5,2,60,23,24,25,26,27,6,7,8,9,10,11,12,61,62,13,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,16,63,49,50,64,65,66,67,68,69,70,14,19,71])),`component`)});z();var UD=G(`/logout`)({head:()=>J(`Signing out`),component:K(()=>B(()=>import(`./logout-Ceak76LZ.js`),__vite__mapDeps([99,1,2,4,100,101,102,103,104,54,105,106,107,108,109,110,5,111,
54112,30,24,9,11,31,113,114,115,28,116,117,12,13,118])),`component`)});z();var WD=()=>B(()=>import(`./linkHandler-Cot7FfH4.js`),__vite__mapDeps([119,1,2,4])),GD=Zt({link:Kt().optional().catch(void 0),event:Kt().optional().catch(void 0)}),KD=G(`/linkHandler`)({validateSearch:GD,head:()=>J(`Redirectingâ¦`,{noindex:!0}),component:K(WD,`component`)}),qD=`Your personal AI for everyone you know`,JD=`Dex remembers everyone, keeps you up to date, and tells you when to reach out.`;z();var YD=G(`/jarvis`)({head:()=>J(qD,{description:JD,canonicalPath:`/`,noindex:!0}),component:K(()=>B(()=>import(`./jarvis-DsEu2TPa.js`),__vite__mapDeps([120,4,1,5,2,61,23,24,25,26,27,6,7,8,9,10,11,62,12,13,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,16,63,68,70,14,19,121,65,66,67])),`component`)});z();var XD=G(`/integrations`)({component:K(()=>B(()=>import(`./integrations-_7GzeSSQ.js`),__vite__mapDeps([122,4,1,5,2])),`component`)});function ZD(e,t,n){e&&e.isPersisted.promise.then(()=>Mu(t,n),()=>void 0)}var QD=`dex.analytics.metaConversion.`,$D=`dex.analytics.redditConversion.`;function eO(e,t){return`${QD}${e}.${t}`}function tO(e){try{return window.localStorage.getItem(e)!==null}catch{return!1}}function nO(e){try{window.localStorage.setItem(e,`true`)}catch{}}function rO(e,t,n,r,i){typeof window>`u`||!t||tO(eO(e,t))||(id(e,{eventId:Lu(t,e),params:r,mirrorToCapi:i,identity:{external_id:t,email:n??void 0}}),nO(eO(e,t)))}function iO(e,t){rO(`StartTrial`,e,t,{value:0,currency:`USD`,predicted_ltv:125},!1)}function aO(e,t){rO(`CompleteRegistration`,e,t,void 0,!0)}function oO(e){if(typeof window>`u`||!e)return;let t=`${$D}SignUp.${e}`;tO(t)||(Lf(`SignUp`,{conversionId:`${e}_SignUp`}),nO(t))}var sO=t({buildRegistrationData:()=>lO,hasCapturedRegistrationData:()=>cO,maybeCaptureRegistrationData:()=>pO,resetRegistrationDataStateForTests:()=>mO});function cO(e){let t=e?.registration_data;return!!(t&&(t.client_user_agent||t.fbp||t.fbc))}function lO(){let e=Ne(),t=e?.lastTouch.params,n=e?.firstTouch.params,r=typeof window>`u`?void 0:new URLSearchParams(window.location.search),i={client_user_agent:navigator.userAgent},a=Fe(`_fbp`);a&&(i.fbp=a);let o=Ru();o&&(i.fbc=o);let s=Fe(`ttclid`)??r?.get(`ttclid`)??t?.ttclid??n?.ttclid;s&&(i.ttclid=s);let c=r?.get(`gclid`)??t?.gclid??n?.gclid;c&&(i.gclid=c);let l=Ie();return l&&(i.dub_id=l),typeof window<`u`&&(i.source_url=Ae()),i}var uO=!1,dO=!1,fO=!1;function pO(e){if(typeof window>`u`||uO||dO||!e)return;if(cO(e)){uO=!0;return}let t=De();if(t!==`denied`){if(t===`pending`){if(fO)return;fO=!0;let t=Ce(n=>{n!==`pending`&&(t(),fO=!1,n===`granted`&&pO(e))});return}Oe(),dO=!0,(async()=>{try{await un().v2.users.update({registration_data:lO()},{idempotencyKey:crypto.randomUUID()}),uO=!0}catch{}finally{dO=!1}})()}}function mO(){uO=!1,dO=!1,fO=!1}var hO=`preboard_steps`;function gO(){if(typeof window>`u`)return{};try{let e=window.localStorage.getItem(hO);return e?JSON.parse(e):{}}catch{return{}}}function _O(e,t){if(typeof window>`u`)return;let n={...gO(),[e]:t};window.localStorage.setItem(hO,JSON.stringify(n))}function vO(){if(!(typeof window>`u`))try{window.localStorage.removeItem(hO)}catch{}}var yO=`preboard_`;function bO(e){let t=e?.utm_tags;return typeof t!=`object`||!t||Array.isArray(t)?{}:t}function xO(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)&&r.length===0||(t[`${yO}${n}`]=r));return t}function SO(e){return Object.keys(bO(e)).some(e=>e.startsWith(yO))}var CO=!1,wO=!1;function TO(e){if(typeof window>`u`||CO||wO||!e)return;if(SO(e)){vO(),CO=!0;return}let t=xO(gO());if(Object.keys(t).length===0)return;let n={...bO(e),...t};wO=!0,(async()=>{try{await un().v2.users.update({utm_tags:n},{idempotencyKey:crypto.randomUUID()}),vO(),CO=!0}catch{}finally{wO=!1}})()}z();var EO=`019b137a-bcb4-0000-b250-349e6878f50c`;async function DO(){if(typeof window>`u`)return null;try{return(await B(()=>import(`./module-CkYIWfal.js`),[])).default}catch{return null}}async function OO(){let e=await DO();return!e?.__loaded||typeof e.getActiveMatchingSurveys!=`function`?null:new Promise(t=>{try{e.getActiveMatchingSurveys(n=>{let r=n.find(e=>e.id===EO);if(!r)return t(null);let i=r.questions?.[0],a={id:r.id,name:r.name,firstQuestionId:i?.id,firstQuestion:i?.question};e.capture(`survey shown`,{$survey_id:a.id,$survey_name:a.name}),t(a)})}catch{t(null)}})}async function kO(e,t){let n=await DO();n&&(e?n.capture(`survey sent`,{$survey_id:e.id,$survey_name:e.name,[`$survey_response_${e.firstQuestionId??``}
54`]:t,$survey_questions:[{id:e.firstQuestionId,question:e.firstQuestion}]}):n.capture(`copilot_feedback_submitted`,{feedback:t}))}function AO(e){if(typeof window>`u`)return;let t=null;e.subscribe(`onResolved`,()=>{let{pathname:e}=window.location;e!==t&&(t=e,Au({path:e,title:document.title,referrer:document.referrer||void 0}))})}var jO=864e5;function MO(e,t=new Date){if(!e)return!1;let n=(e instanceof Date?e:new Date(String(e))).getTime();return Number.isNaN(n)?!1:t.getTime()-n<7*jO}function NO(e,t){let n=Xd(e);if(n)return Zd(n),bf(Jd(n)),Mu(`blog_cta_arrived`,{ref:n.ref,ref_post:n.ref_post,landing_path:t}),n}function PO(e){let t=Qd();return $d(),!e||!t?{}:{$set_once:Jd(t)}}var FO=G(`/get-started`)({beforeLoad:async()=>{if(typeof window>`u`)throw L({to:`/preboard`,search:{step:0},replace:!0});Mu(`Lead`);let e=NO(new URLSearchParams(window.location.search),`/get-started`);throw await Gm(),L({to:`/preboard`,search:{step:0,...e},replace:!0})}});z();var IO=G(`/desktop-voice-panel`)({component:K(()=>B(()=>import(`./desktop-voice-panel-D5xWTwPP.js`),__vite__mapDeps([123,1,2,4,104,124,5,6,7,8,9,10,11,125,101,102,103,54,105,106,107,108,109,111,112,30,24,31,113,114,126,127,128,100,110,115,28,116,129])),`component`)});z();var LO=G(`/desktop-login-start`)({head:()=>J(`Signing in to Dex`,{noindex:!0}),validateSearch:Zt({provider:qt([`google`,`apple`]).catch(`google`)}),component:K(()=>B(()=>import(`./desktop-login-start-DBTR7kYt.js`),__vite__mapDeps([130,1,2,4,100,101,102,103,104,54,105,106,107,108,109,110,5,111,112,30,24,9,11,31,113,114,115,28,116,131,132,133])),`component`)});z();var RO=G(`/desktop-login-redirect`)({head:()=>J(`Signing in to Dex`,{noindex:!0}),component:K(()=>B(()=>import(`./desktop-login-redirect-CVAN0HYX.js`),__vite__mapDeps([134,1,2,4,5,116,104,108,109,131,132,133,9])),`component`)});z();var zO=()=>B(()=>import(`./desktop-DHK6S_c0.js`),__vite__mapDeps([135,4,1,5,2,6,7,8,9,10,11,136,12,13,28,17,16,65,23,24,25,26,27,66,67,68,69,96,97])),BO=`Download Dex for desktop to manage your relationships, notes, reminders, and network context from your computer.`,VO=G(`/desktop`)({head:()=>J(`Desktop App`,{description:BO,canonicalPath:`/desktop`,markdownPath:`/desktop.md`,jsonLd:vC([yC({id:`${jt}/desktop/#software`,name:`Dex for macOS and Windows`,description:BO,operatingSystem:`macOS, Windows`,category:`DesktopApplication`,url:sC(`/desktop`)}),hC([{name:`Desktop app`,path:`/desktop`}])])}),component:K(zO,`component`)});z();var HO=()=>B(()=>import(`./browser-extension-C63ixyKl.js`),__vite__mapDeps([137,1,2,4,5,6,7,8,9,10,11,12,13,28,17,16,65,23,24,25,26,27,66,67,68])),UO=`Use the Dex browser extension to add contacts from LinkedIn, Facebook, and the web into your personal CRM.`,WO=Pt.chromeWebStore,GO=G(`/browser-extension`)({head:()=>J(`Browser Extension`,{description:UO,canonicalPath:`/browser-extension`,markdownPath:`/browser-extension.md`,jsonLd:vC([{...yC({id:`${jt}/browser-extension/#software`,name:`Dex browser extension`,description:UO,operatingSystem:`Chrome`,category:`BrowserApplication`,url:sC(`/browser-extension`),downloadUrl:WO}),sameAs:[WO]},hC([{name:`Browser extension`,path:`/browser-extension`}])])}),component:K(HO,`component`)}),KO=`/app`,qO=Kt().optional().catch(void 0),JO=32;function YO(e){return!e.startsWith(`/`)||e.startsWith(`//`)||e.startsWith(`/\\`)}function XO(e){return Zm(e)&&!Qm(e)}function ZO(e){try{return new URL(e,`http://internal`).pathname.toLowerCase()}catch{return null}}function QO(e){if(YO(e))return null;let t;try{t=new URL(e,`http://internal`)}catch{return null}return XO(t.pathname.toLowerCase())?t.searchParams.get(`continue`):null}function $O(e){if(!e)return KO;let t=e;for(let e=0;e<JO;e+=1){let e=QO(t);if(!e)break;t=e}if(YO(t))return KO;let n,r;try{let e=new URL(t,`http://internal`);n=e.pathname+e.search+e.hash,r=e.pathname.toLowerCase()}catch{return KO}return r!==`/app`&&!r.startsWith(`/app/`)||XO(r)?KO:n}function ek(e,t){let n=ZO(e);return n!==null&&XO(n)?e:`${t}?${new URLSearchParams({continue:$O(e)}).toString()}`}z();var tk=()=>B(()=>import(`./app-CQvrMpZT.js`),__vite__mapDeps([138,1,2,27,4,5,109,100,101,102,103,104,54,105,106,107,108,110,111,112,30,24,9,11,31,113,114,115,28,116]
54)),nk=Zt({contact:Kt().optional(),note:Kt().optional(),continue:qO}),rk=G(`/app`)({validateSearch:nk,beforeLoad:async({location:e,search:t})=>{if(typeof window>`u`)return;let[{runAppGate:n},r]=await Promise.all([B(()=>import(`./app-gate-Bs6_qhXa.js`),__vite__mapDeps([139,140,109,1,102,103,104,54,105,106,107,108,141,100,2,101,110,5,111,112,30,24,4,9,11,31,113,114,115,28,116,142,143,144,145])),B(()=>Promise.resolve().then(()=>Sz),void 0).catch(()=>null)]);r?.captureCheckoutOffer(e.search),await n({location:e,search:t})},component:K(tk,`component`),pendingComponent:tw});z();var ik=()=>B(()=>import(`./ambassador-BiWl6Cg8.js`),__vite__mapDeps([146,4,1,5,2,6,7,8,9,10,11,147,148,17,12,13,16,68,23,24,25,26,27,55,35,36,56,57,58,43])),ak=`Share Dex with your network and earn rewards as a Dex ambassador.`,ok=G(`/ambassador`)({head:()=>J(`Ambassador Program`,{description:ak,canonicalPath:`/ambassador`,markdownPath:`/ambassador.md`,jsonLd:vC([xC({path:`/ambassador`,name:`Dex Ambassador Program`,description:ak}),hC([{name:`Ambassador Program`,path:`/ambassador`}])])}),component:K(ik,`component`)}),sk=`Bring who you know to your AI assistant`,ck=`Dex runs a hosted MCP server. Point your client at it once and your assistant gains eleven tools on your network: search and enrich contacts, log meetings, set reminders, organize tags and groups â no exports, no local install, no second contact list.`;z();var lk=G(`/ai-agents`)({head:()=>J(sk,{description:ck,canonicalPath:`/ai-agents`,markdownPath:`/ai-agents.md`,jsonLd:vC([{...xC({path:`/ai-agents`,name:sk,description:ck}),about:{"@id":iC}},hC([{name:`Dex for Agents`,path:`/ai-agents`}])])}),component:K(()=>B(()=>import(`./ai-agents-Bd-BInvl.js`),__vite__mapDeps([149,1,2,4,5,6,7,8,9,10,11,62,12,61,23,24,25,26,27,13,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,16,28,18,65,66,67,68,71,63,64,69,70,14,19])),`component`)});z();var uk=()=>B(()=>import(`./about-DjNuxxhL.js`),__vite__mapDeps([150,23,1,2,24,25,4,26,27,5,81,11,151,74,12,13,17,9,16])),dk=`Learn why Dex was created as a personal CRM for organizing, remembering, and nurturing the relationships that matter.`,fk=G(`/about`)({head:()=>J(`About`,{description:dk,canonicalPath:`/about`,markdownPath:`/about.md`,jsonLd:vC([{...xC({path:`/about`,name:`About Dex`,description:dk,type:`AboutPage`}),mainEntity:aC},hC([{name:`About`,path:`/about`}])])}),component:K(uk,`component`)}),pk=vC([oC,{"@type":`WebSite`,"@id":rC,url:jt,name:`Dex`,publisher:aC,inLanguage:`en`},{"@type":`SoftwareApplication`,"@id":iC,name:`Dex`,applicationCategory:`BusinessApplication`,operatingSystem:`iOS, Android, macOS, Windows, Chrome`,description:`Dex is a personal CRM that helps you manage relationships, track follow-ups, and stay in touch with your network.`,url:jt,publisher:aC,offers:dC()},{"@type":`FAQPage`,"@id":`${jt}/#faq`,mainEntity:[{"@type":`Question`,name:`What is Dex?`,acceptedA
54nswer:{"@type":`Answer`,text:`Dex is a personal CRM that helps you consolidate, organize, and nurture your relationships. Import contacts from LinkedIn, email, WhatsApp, and more; set keep-in-touch reminders; take notes; and never forget where you left off. Unlike sales CRMs, Dex is built for personal relationship management.`}},{"@type":`Question`,name:`How much does Dex cost?`,acceptedAnswer:{"@type":`Answer`,text:fC()}},{"@type":`Question`,name:`Does Dex have an API or MCP server?`,acceptedAnswer:{"@type":`Answer`,text:`Yes. The REST API is at https://api.prod.getdex.com with the OpenAPI spec at https://getdex.com/openapi.json. Dex also operates an MCP (Model Context Protocol) server at https://mcp.getdex.com/mcp that exposes contacts, notes, reminders, tags, groups, and custom fields as agent-callable tools. Authentication is via OAuth 2.0 (browser) or bearer API key. API and MCP access require a Dex Professional subscription.`}},{"@type":`Question`,name:`Can I import contacts from LinkedIn, Gmail, WhatsApp, and other sources?`,acceptedA
54nswer:{"@type":`Answer`,text:`Yes. Dex imports from LinkedIn, Gmail, Google Calendar, WhatsApp, iMessage, Facebook, Instagram, Outlook, phone contacts, and CSV files (including Airtable, Notion, Google Contacts exports). See the integrations overview at https://getdex.com/integrations/.`}},{"@type":`Question`,name:`Is my data private?`,acceptedAnswer:{"@type":`Answer`,text:`Dex is SOC 2 Type II and ISO 27001 certified. Data is encrypted in transit with TLS 1.2+ and at rest with AES-256. Servers are hosted in the US. Dex is funded by subscriptions, never by ads â your data is never sold or shared. You can export or delete all your data at any time.`}},{"@type":`Question`,name:`Is Dex available on mobile?`,acceptedAnswer:{"@type":`Answer`,text:`Yes. Dex has native apps for iOS (${gt}) and Android (${ht}), plus a web app, desktop apps for macOS and Windows, and a Chrome extension.`}},{"@type":`Question`,name:`What's the difference between Dex and a sales CRM like HubSpot or Salesforce?`,acceptedAnswer:{"@type":`Answer`,text:`Sales CRMs optimize for pipelines, deals, and team workflows. Dex optimizes for people â remembering birthdays, keep-in-touch cadences, how you met, family context, and interaction history. It's built for founders, investors, MBAs, job seekers, and operators who believe their network is their net worth.`}}]}]);z();var mk=G(`/`)({head:()=>J(`Personal CRM for your relationships`,{description:`Dex is a personal CRM that brings your relationships into one place with reminders, notes, timelines, and thoughtful follow-up workflows.`,canonicalPath:`/`,markdownPath:`/index.md`,jsonLd:pk}),component:K(()=>B(()=>import(`./routes-DK1uI7Y1.js`),__vite__mapDeps([152,1,2,23,24,25,4,26,27,5,153,154,9,33,11,12,61,6,7,8,10,62,13,32,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,16,63,65,66,67,68,70,14,19,121])),`component`)});function hk(e,t){return function(){return e.apply(t,arguments)}}var{toString:gk}=Object.prototype,{getPrototypeOf:_k}=Object,{iterator:vk,toStringTag:yk}=Symbol,bk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xk=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),bk(n,t))return!0;n=_k(n)}return!1},Sk=(e,t)=>e!=null&&xk(e,t)?e[t]:void 0,Ck=(e=>t=>{let n=gk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wk=e=>(e=e.toLowerCase(),t=>Ck(t)===e),Tk=e=>t=>typeof t===e,{isArray:Ek}=Array,Dk=Tk(`undefined`);function Ok(e){return e!==null&&!Dk(e)&&e.constructor!==null&&!Dk(e.constructor)&&Mk(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var kk=wk(`ArrayBuffer`);function Ak(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&kk(e.buffer),t}var jk=Tk(`string`),Mk=Tk(`function`),Nk=Tk(`number`),Pk=e=>typeof e==`object`&&!!e,Fk=e=>e===!0||e===!1,Ik=e=>{if(!Pk(e))return!1;let t=_k(e);return(t===null||t===Object.prototype||_k(t)===null)&&!xk(e,yk)&&!xk(e,vk)},Lk=e=>{if(!Pk(e)||Ok(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Rk=wk(`Date`),zk=wk(`File`),Bk=e=>!!(e&&e.uri!==void 0),Vk=e=>e&&e.getParts!==void 0,Hk=wk(`Blob`),Uk=wk(`FileList`),Wk=wk(`Set`),Gk=e=>Pk(e)&&Mk(e.pipe);function Kk(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var qk=Kk(),Jk=qk.FormData===void 0?void 0:qk.FormData,Yk=e=>{if(!e)return!1;if(Jk&&e instanceof Jk)return!0;let t=_k(e);if(!t||t===Object.prototype||!Mk(e.append))return!1;let n=Ck(e);return n===`formdata`||n===`object`&&Mk(e.toString)&&e.toString()===`[object FormData]`},Xk=wk(`URLSearchParams`),[Zk,Qk,$k,eA]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(wk),tA=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function nA(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Ek(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Ok(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function rA(e,t){if(Ok(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var iA=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,aA=e=>!Dk(e)&&e!==iA;function oA(...e){let{caseless:t,skipUndefined:n}=aA(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&rA(r,i)||i,o=bk(r,a)?r[a]:void 0;Ik(o)&&Ik(e)?r[a]=oA(o,e):Ik(e)?r[a]=oA({},e):Ek(e)?r[a]=e.slice():(!n||!Dk(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||Ok(n)||(nA(n,i),typeof n!=`object`||Ek(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];vA.call(n,t)&&i(n[t],t)}}return r}var sA=(e,t,n,{allOwnKeys:r}={})=>(nA(t,(t,r)=>{n&&Mk(t)?Object.defineProperty(e,r,{__proto__:null,value:hk(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),cA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lA=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
54configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},uA=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&_k(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dA=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},fA=e=>{if(!e)return null;if(Ek(e))return e;let t=e.length;if(!Nk(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},pA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&_k(Uint8Array)),mA=(e,t)=>{let n=(e&&e[vk]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},hA=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gA=wk(`HTMLFormElement`),_A=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:vA}=Object.prototype,yA=wk(`RegExp`),bA=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};nA(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},xA=e=>{bA(e,(t,n)=>{if(Mk(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Mk(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},SA=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Ek(e)?r(e):r(String(e).split(t)),n},CA=()=>{},wA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function TA(e){return!!(e&&Mk(e.append)&&e[yk]===`FormData`&&e[vk])}var EA=e=>{let t=new WeakSet,n=e=>{if(Pk(e)){if(t.has(e))return;if(Ok(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(Wk(e)){r=[];for(let t of e){let e=n(t);!Dk(e)&&r.push(e)}}else r=Ek(e)?[]:{},nA(e,(e,t)=>{let i=n(e);!Dk(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},DA=wk(`AsyncFunction`),OA=e=>e&&(Pk(e)||Mk(e))&&Mk(e.then)&&Mk(e.catch),kA=((e,t)=>e?setImmediate:t?((e,t)=>(iA.addEventListener(`message`,({source:n,data:r})=>{n===iA&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),iA.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Mk(iA.postMessage)),AA=typeof queueMicrotask<`u`?queueMicrotask.bind(iA):typeof process<`u`&&process.nextTick||kA,jA=e=>e!=null&&Mk(e[vk]),Q={isArray:Ek,isArrayBuffer:kk,isBuffer:Ok,isFormData:Yk,isArrayBufferView:Ak,isString:jk,isNumber:Nk,isBoolean:Fk,isObject:Pk,isPlainObject:Ik,isEmptyObject:Lk,isReadableStream:Zk,isRequest:Qk,isResponse:$k,isHeaders:eA,isUndefined:Dk,isDate:Rk,isFile:zk,isReactNativeBlob:Bk,isReactNative:Vk,isBlob:Hk,isRegExp:yA,isFunction:Mk,isStream:Gk,isURLSearchParams:Xk,isTypedArray:pA,isFileList:Uk,forEach:nA,merge:oA,extend:sA,trim:tA,stripBOM:cA,inherits:lA,toFlatObject:uA,kindOf:Ck,kindOfTest:wk,endsWith:dA,toArray:fA,forEachEntry:mA,matchAll:hA,isHTMLForm:gA,hasOwnProperty:bk,hasOwnProp:bk,hasOwnInPrototypeChain:xk,getSafeProp:Sk,reduceDescriptors:bA,freezeMethods:xA,toObjectSet:SA,toCamelCase:_A,noop:CA,toFiniteNumber:wA,findKey:rA,global:iA,isContextDefined:aA,isSpecCompliantForm:TA,toJSONObject:EA,isAsyncFn:DA,isThenable:OA,setImmediate:kA,asap:AA,isIterable:jA,isSafeIterable:e=>e!=null&&xk(e,vk)&&jA(e)},MA=Q.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),NA=e=>{let t={},n,r,i;return e&&e.split(` 55`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=Q.hasOwnProp(t,n);!n||a&&Q.hasOwnProp(MA,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function PA(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var FA=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),IA=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function LA(e,t){return Q.isArray(e)?e.map(e=>LA(e,t)):PA(String(e).replace(t,``))}
55var RA=e=>LA(e,FA),zA=e=>LA(e,IA);function BA(e){let t=Object.create(null);return Q.forEach(e.toJSON(),(e,n)=>{t[n]=zA(e)}),t}var VA=Symbol(`internals`);function HA(e){return e&&String(e).trim().toLowerCase()}function UA(e){return e===!1||e==null?e:Q.isArray(e)?e.map(UA):RA(String(e))}function WA(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var GA=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function KA(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function qA(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function JA(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=KA(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=KA(i.slice(0,a));if(!GA.test(o))return;let s=o.toLowerCase();s===`__proto__`||s===`constructor`||s===`prototype`||(t[s]=qA(KA(i.slice(a+1))))}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var YA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function XA(e,t,n,r,i){if(Q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function ZA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function QA(e,t){let n=Q.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var $A=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=HA(t);if(!i)return;let a=Q.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=UA(e))}let a=(e,t)=>
55Q.forEach(e,(e,n)=>i(e,n,t));if(Q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Q.isString(e)&&(e=e.trim())&&!YA(e))a(NA(e),t);else if(Q.isObject(e)&&Q.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!Q.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],Q.hasOwnProp(n,i)?(r=n[i],n[i]=Q.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=HA(e),e){let n=Q.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return WA(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=HA(e),e){let n=Q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||XA(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=HA(e),e){let i=Q.findKey(n,e);i&&(!t||XA(n,n[i],i,t))&&(delete n[i],r=!0)}}return Q.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||XA(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Q.forEach(this,(r,i)=>{let a=Q.findKey(n,i);if(a){t[a]=UA(r),delete t[i];return}let o=e?ZA(i):String(i).trim();o!==i&&delete t[i],t[o]=UA(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Q.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Q.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` 56`)}getSetCookie(){let e=this.get(`set-cookie`);return Q.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return JA(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[VA]=this[VA]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=HA(e);t[r]||(QA(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}};$A.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Q.reduceDescriptors($A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Q.freezeMethods($A);var ej=`[REDACTED ****]`;function tj(e){if(Q.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Q.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function nj(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||Q.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof $A&&(e=e.toJSON()),r.push(e);let t;if(Q.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);Q.isUndefined(r)||(t[n]=r)});else{if(!Q.isPlainObject(e)&&tj(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ej:i(a);Q.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function rj(e){try{return String(e)}catch{return``}}function ij(e){return e.errors.map(e=>{try{return e&&e.message?rj(e.message):rj(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var $=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&Q.isArray(t.errors)&&t.errors.length&&(s=ij(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&Q.hasOwnProp(e,`redact`)?e.redact:void 0,n=Q.isArray(t)&&t.length>0?nj(e,t):Q.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};$.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,$.ERR_BAD_OPTION=`ERR_BAD_OPTION`,$.ECONNABORTED=`ECONNABORTED`,$.ETIMEDOUT=`ETIMEDOUT`,$.ECONNREFUSED=`ECONNREFUSED`,$.ERR_NETWORK=`E
56RR_NETWORK`,$.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,$.ERR_DEPRECATED=`ERR_DEPRECATED`,$.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,$.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,$.ERR_CANCELED=`ERR_CANCELED`,$.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,$.ERR_INVALID_URL=`ERR_INVALID_URL`,$.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function aj(e){return Q.isPlainObject(e)||Q.isArray(e)}function oj(e){return Q.endsWith(e,`[]`)?e.slice(0,-2):e}function sj(e,t,n){return e?e.concat(t).map(function(e,t){return e=oj(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function cj(e){return Q.isArray(e)&&!e.some(aj)}var lj=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});function uj(e,t,n){if(!Q.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Q.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&Q.isSpecCompliantForm(t),u=[];if(!Q.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(Q.isDate(e))return e.toISOString();if(Q.isBoolean(e))return e.toString();if(!l&&Q.isBlob(e))throw new $(`Blob is not supported. Use a Buffer instead.`);if(Q.isArrayBuffer(e)||Q.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);throw new $(`Blob is not supported. Use a Buffer instead.`,$.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new $(`Object is too deeply nested (`+e+` levels). Max depth: `+c,$.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!Q.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(Q.isReactNative(t)&&Q.isReactNativeBlob(e))return t.append(sj(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(Q.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(Q.isArray(e)&&cj(e)||(Q.isFileList(e)||Q.endsWith(n,`[]`))&&(s=Q.toArray(e)))return n=oj(n),s.forEac
56h(function(e,r){!(Q.isUndefined(e)||e===null)&&t.append(o===!0?sj([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return aj(e)?!0:(t.append(sj(i,n,a),d(e)),!1)}let h=Object.assign(lj,{defaultVisitor:m,convertValue:d,isVisitable:aj});function g(e,n,r=0){if(!Q.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),Q.forEach(e,function(e,a){(!(Q.isUndefined(e)||e===null)&&i.call(t,e,Q.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!Q.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function dj(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function fj(e,t){this._pairs=[],e&&uj(e,this,t)}var pj=fj.prototype;pj.append=function(e,t){this._pairs.push([e,t])},pj.toString=function(e){let t=e?t=>e.call(this,t,dj):dj;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function mj(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function hj(e,t,n){if(!t)return e;e||=``;let r=Q.isFunction(n)?{serialize:n}:n,i=Q.getSafeProp(r,`encode`)||mj,a=Q.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):Q.isURLSearchParams(t)?t.toString():new fj(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var gj=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){Q.forEach(this.handlers,function(t){t!==null&&e(t)})}},_j={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},vj={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:fj,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},yj=t({hasBrowserEnv:()=>bj,hasStandardBrowserEnv:()=>Sj,hasStandardBrowserWebWorkerEnv:()=>Cj,navigator:()=>xj,origin:()=>wj}),bj=typeof window<`u`&&typeof document<`u`,xj=typeof navigator==`object`&&navigator||void 0,Sj=bj&&(!xj||[`ReactNative`,`NativeScript`,`NS`].indexOf(xj.product)<0),Cj=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,wj=bj&&window.location.href||`http://localhost`,Tj={...yj,...vj};function Ej(e,t){return uj(e,new Tj.classes.URLSearchParams,{visitor:function(e,t,n,r){return Tj.isNode&&Q.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Dj=100;function Oj(e){if(e>Dj)throw new $(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Dj,$.ERR_FORM_DATA_DEPTH_EXCEEDED)}function kj(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)Oj(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Aj(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function jj(e){function t(e,n,r,i){Oj(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&Q.isArray(r)?r.length:a,s?(Q.hasOwnProp(r,a)?r[a]=Q.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!Q.hasOwnProp(r,a)||!Q.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Q.isArray(r[a])&&(r[a]=Aj(r[a])),!o)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){let n={};return Q.forEachEntry(e,(e,r)=>{t(kj(e),r,n,0)}),n}return null}var Mj=(e,t)=>e!=null&&Q.hasOwnProp(e,t)?e[t]:void 0;function Nj(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Pj={transitional:_j,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Q.isObject(e);if(i&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return r?JSON.stringify(jj(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;
56if(i){let t=Mj(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Ej(e,t).toString();if((a=Q.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Mj(this,`env`),r=n&&n.FormData;return uj(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Nj(e)):e}],transformResponse:[function(e){let t=Mj(this,`transitional`)||Pj.transitional,n=t&&t.forcedJSONParsing,r=Mj(this,`responseType`),i=r===`json`;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Mj(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?$.from(e,$.ERR_BAD_RESPONSE,this,null,Mj(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tj.classes.FormData,Blob:Tj.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Pj.headers[e]={}});function Fj(e,t){let n=this||Pj,r=t||n,i=$A.from(r.headers),a=r.data;return Q.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ij(e){return!!(e&&e.__CANCEL__)}var Lj=class extends ${constructor(e,t,n){super(e??`canceled`,$.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Rj(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $(`Request failed with status code `+n.status,n.status>=400&&n.status<500?$.ERR_BAD_REQUEST:$.ERR_BAD_RESPONSE,n.config,n.request,n))}function zj(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Bj(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Vj(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Hj=(e,t,n=3)=>{let r=0,i=Bj(50,250);return Vj(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Uj=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wj=(e,t=Q.asap)=>(...n)=>t(()=>e(...n)),Gj=Tj.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Tj.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Tj.origin),Tj.navigator&&/(msie|trident)/i.test(Tj.navigator.userAgent)):()=>!0,Kj=Tj.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Q.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Q.isString(r)&&s.push(`path=${r}`),Q.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Q.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function qj(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Jj(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var Yj=/^https?:(?!\/\/)/i,Xj=/[\t\n\r]/g;function Zj(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Qj(e){return Zj(e).replace(Xj,``)}function $j(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${ej}`)}function eM(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ej}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ej}`);return n===-1?r:`${r}#${$j(t.slice(n+1))}`}function tM(e,t){if(typeof e==`string`){let n=Qj(e);if(Yj.test(n))throw new $(`Invalid URL ${JSON.stringify(eM(n))}: missing "//" after protocol`,$.ERR_INVALID_URL,t)}}function nM(e,t,n,r){tM(t,r);let i=!qj(t);return e&&(i||n===!1)?(tM(e,r),Jj(e,t)):t}var rM=e=>e instanceof $A?{...e}:e,iM=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function aM(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Q.isUndefined(t))return r(e,t,n,i);if(!Q.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Q.isUndefined(t))return r(void 0,t);
56if(!Q.isUndefined(e))return r(void 0,e)}function s(n){let r=Q.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!Q.isUndefined(r))if(Q.isPlainObject(r)){if(Q.hasOwnProp(r,n))return r[n]}else return;let i=Q.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(Q.isPlainObject(i)&&Q.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(Q.hasOwnProp(t,a))return r(n,i);if(Q.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(rM(e),rM(t),n,!0)};return Q.forEach(iM({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Q.hasOwnProp(l,r)?l[r]:i,o=a(Q.hasOwnProp(e,r)?e[r]:void 0,Q.hasOwnProp(t,r)?t[r]:void 0,r);Q.isUndefined(o)&&a!==c||(n[r]=o)}),Q.hasOwnProp(t,`validateStatus`)&&Q.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(Q.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.val
56idateStatus),n}var oM=[`content-type`,`content-length`];function sM(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{oM.includes(t.toLowerCase())&&e.set(t,n)})}var cM=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function lM(e){let t=aM({},e),n=e=>Q.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=$A.from(s),t.url=hj(nM(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=Q.getSafeProp(c,`username`)||``,n=Q.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?cM(n):``)))}catch(t){throw $.from(t,$.ERR_BAD_OPTION_VALUE,e)}}if(Q.isFormData(r)&&(Tj.hasStandardBrowserEnv||Tj.hasStandardBrowserWebWorkerEnv||Q.isReactNative(r)?s.setContentType(void 0):Q.isFunction(r.getHeaders)&&sM(s,r.getHeaders(),n(`formDataHeaderPolicy`))),Tj.hasStandardBrowserEnv&&(Q.isFunction(i)&&(i=i(t)),i===!0||i==null&&Gj(t.url))){let e=a&&o&&Kj.read(o);e&&s.set(a,e)}return t}var uM=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=lM(e),i=r.data,a=$A.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=$A.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Rj(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new $(`Request aborted`,$.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new $(t&&t.message?t.message:`Network Error`,$.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||_j;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,i.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&Q.forEach(BA(a),function(e,t){h.setRequestHeader(t,e)}),Q.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Hj(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Hj(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Lj(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=zj(r.url);if(_&&!Tj.protocols.includes(_)){n(new $(`Unsupported protocol `+_+`:`,$.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},dM=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new Lj(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new $(`timeout of ${t}ms exceeded`,$.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>Q.asap(o),s},fM=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},pM=async function*(e,t){for await(let n of mM(e))yield*fM(n,t)},mM=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},hM=(e,t,n,r)=>{let i=pM(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},gM=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,_M=(e,t,n)=>t+2<n&&gM(e.charCodeAt(t+1))&&gM(e.charCodeAt(t+2)),vM=e=>e<=57?e-48:(e&223)-55,yM=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,bM=e=>e===9||e===10||e===12||e===13||e===32,xM=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},SM=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},CM=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&_M(e,a,t)&&(o=vM(e.charCodeAt(a+1))*16+vM(e.charCodeAt(a+2)),a+=2),!bM(o)){if(o===61){r++;continue}if(!yM(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?SM(e):xM(n)},wM=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&_M(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>
56=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function TM(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return wM(t===-1?e:e.slice(0,t),CM)}var EM=`1.19.0`,DM=64*1024,{isFunction:OM}=Q,kM=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),AM=e=>{if(!Q.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},jM=(e,...t)=>{try{return!!e(...t)}catch{return!1}},MM=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},NM=e=>{let t=Q.global!==void 0&&Q.global!==null?Q.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Q.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?OM(i):typeof fetch==`function`,c=OM(a),l=OM(o);if(!s)return!1;let u=s&&OM(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&jM(()=>{let e=!1,t=new a(Tj.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&jM(()=>Q.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new a(Tj.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e)||Q.isArrayBuffer(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e+=``),Q.isString(e))return(await d(e)).byteLength},g=async(e,t)=>Q.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T}=lM(e),E=Q.isNumber(w)&&w>-1,D=Q.isNumber(T)&&T>-1,O=t=>Q.hasOwnProp(e,t)?e[t]:void 0,k=i||fetch;b=b?(b+``).toLowerCase():`text`;let A=dM([l,d&&d.toAbortSignal()],_),j=null,M=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),ee,te=null,N=()=>new $(`Request body larger than maxBodyLength limit`,$.ERR_BAD_REQUEST,e,j);try{let i,l=O(`auth`);if(l&&(i={username:Q.getSafeProp(l,`username`)||``,password:Q.getSafeProp(l,`password`)||``}),MM(t)){let e=new URL(t,Tj.origin);!i&&(e.username||e.password)&&(i={username:AM(e.username),password:AM(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(kM((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&TM(t)>w)throw new $(`maxContentLength size of `+w+` exceeded`,$.ERR_BAD_RESPONSE,e,j);if(D&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ee=e,e>T))throw N()}let d=D&&(Q.isReadableStream(s)||Q.isStream(s)),_=(e,t,n)=>hM(e,DM,e=>{if(D&&e>T)throw te=N();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ee??=await g(x,s),ee!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(Q.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&Uj(ee,Hj(Wj(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new $(`Stream request bodies are not supported by the current fetch implementation`,$.ERR_NOT_SUPPORT,e,j);Q.isString(S)||(S=S?`include`:`omit`);let P=c&&`credentials`in a.prototype;if(Q.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+EM,!1);let ne={...C,signal:A,method:n.toUpperCase(),headers:BA(x.normalize()),body:s,duplex:`half`,credentials:P?S:void 0};j=c&&new a(t,ne);let F=await(c?k(j,C):k(t,ne)),re=$A.from(F.headers);if(E){let t=Q.toFiniteNumber(re.getContentLength());if(t!=null&&t>w)throw new $(`maxContentLength size of `+w+` exceeded`,$.ERR_BAD_RESPONSE,e,j)}let ie=p&&(b===`stream`||b===`response`);if(p&&F.body&&(v||E||ie&&M)){let t={};
56[`status`,`statusText`,`headers`].forEach(e=>{t[e]=F[e]});let n=Q.toFiniteNumber(re.getContentLength()),[r,i]=v&&Uj(n,Hj(Wj(v),!0))||[],a=0;F=new o(hM(F.body,DM,t=>{if(E&&(a=t,a>w))throw new $(`maxContentLength size of `+w+` exceeded`,$.ERR_BAD_RESPONSE,e,j);r&&r(t)},()=>{i&&i(),M&&M()}),t)}b||=`text`;let I=await m[Q.findKey(m,b)||`text`](F,e);if(E&&!p&&!ie){let t;if(I!=null&&(typeof I.byteLength==`number`?t=I.byteLength:typeof I.size==`number`?t=I.size:typeof I==`string`&&(t=typeof r==`function`?new r().encode(I).byteLength:I.length)),typeof t==`number`&&t>w)throw new $(`maxContentLength size of `+w+` exceeded`,$.ERR_BAD_RESPONSE,e,j)}return!ie&&M&&M(),await new Promise((t,n)=>{Rj(t,n,{data:I,headers:$A.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:j})})}catch(t){if(M&&M(),A&&A.aborted&&A.reason instanceof $){let n=A.reason;throw n.config=e,j&&(n.request=j),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(te)throw j&&!te.request&&(te.request=j),te;if(t instanceof $)throw j&&!t.request&&(t.request=j),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new $(`Network Error`,$.ERR_NETWORK,e,j,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw $.from(t,t&&t.code,e,j,t&&t.response)}}},PM=new Map,FM=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=PM;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:NM(t)),l=c;return c};FM();var IM={http:null,xhr:uM,fetch:{get:FM}};Q.forEach(IM,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var LM=e=>`- ${e}`,RM=e=>Q.isFunction(e)||e===null||e===!1;function zM(e,t){e=Q.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!RM(r)&&(i=IM[(n=String(r)).toLowerCase()],i===void 0))throw new $(`Unknown adapter '${n}'`);if(i&&(Q.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new $(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : 57`+e.map(LM).join(` 58`):` `+LM(e[0]):`as no adapter specified`),$.ERR_NOT_SUPPORT)}return i}var BM={getAdapter:zM,adapters:IM};function VM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lj(null,e)}function HM(e){return VM(e),e.headers=$A.from(e.headers),e.data=Fj.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),BM.getAdapter(e.adapter||Pj.adapter,e)(e).then(function(t){VM(e),e.response=t;try{t.data=Fj.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=$A.from(t.headers),t},function(t){if(!Ij(t)&&(VM(e),t&&t.response)){e.response=t.response;try{t.response.data=Fj.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=$A.from(t.response.headers)}return Promise.reject(t)})}var UM={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{UM[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var WM={};UM.transitional=function(e,t,n){function r(e,t){return`[Axios v`+EM+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new $(r(i,` has been removed`+(t?` in `+t:``)),$.ERR_DEPRECATED);return t&&!WM[i]&&(WM[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},UM.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function GM(e,t,n){if(typeof e!=`object`||!e)throw new $(`options must be an object`,$.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new $(`option `+a+` must be `+n,$.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $(`Unknown option `+a,$.ERR_BAD_OPTION)}}var KM={assertOptions:GM,validators:UM},qM=KM.validators,JM=class{constructor(e){this.defaults=e||{},this.interceptors={request:new gj,response:new gj}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>
58{if(!t.stack)return``;let e=t.stack.indexOf(` 59`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(` 60`),r=t===-1?-1:n.indexOf(` 61`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=` 62`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=aM(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&KM.assertOptions(n,{silentJSONParsing:qM.transitional(qM.boolean),forcedJSONParsing:qM.transitional(qM.boolean),clarifyTimeoutError:qM.transitional(qM.boolean),legacyInterceptorReqResOrdering:qM.transitional(qM.boolean),advertiseZstdAcceptEncoding:qM.transitional(qM.boolean),validateStatusUndefinedResolves:qM.transitional(qM.boolean)},!1),r!=null&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:KM.assertOptions(r,{encode:qM.function,serialize:qM.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),KM.assertOptions(t,{baseUrl:qM.spelling(`baseURL`),withXsrfToken:qM.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&Q.merge(i.common,i[t.method]);i&&Q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=$A.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||_j;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[HM.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);Q.isThenable(n)&&(l=Promise.resolve(n).then(()=>HM.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=HM.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=aM(this.defaults,e),hj(nM(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};Q.forEach([`delete`,`get`,`head`,`options`],function(e){JM.prototype[e]=function(t,n){return this.request(aM(n||{},{method:e,url:t,data:n&&Q.hasOwnProp(n,`data`)?n.data:void 0}))}}),Q.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(aM(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}JM.prototype[e]=t(),e!==`query`&&(JM.prototype[e+`Form`]=t(!0))});var YM=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Lj(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function XM(e){return function(t){return e.apply(null,t)}}function ZM(e){return Q.isObject(e)&&e.isAxiosError===!0}var QM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
62alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(QM).forEach(([e,t])=>{QM[t]=e});function $M(e){let t=new JM(e),n=hk(JM.prototype.request,t);return Q.extend(n,JM.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return $M(aM(e,t))},n}var eN=$M(Pj);eN.Axios=JM,eN.CanceledError=Lj,eN.CancelToken=YM,eN.isCancel=Ij,eN.VERSION=EM,eN.toFormData=uj,eN.AxiosError=$,eN.Cancel=eN.CanceledError,eN.all=function(e){return Promise.all(e)},eN.spread=XM,eN.isAxiosError=ZM,eN.mergeConfig=aM,eN.AxiosHeaders=$A,eN.formToJSON=e=>jj(Q.isHTMLForm(e)?new FormData(e):e),eN.getAdapter=BM.getAdapter,eN.HttpStatusCode=QM,eN.default=eN;var tN=Function.prototype.toString,nN=Object.create,rN=Object.prototype.toString,iN=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();function aN(){return new iN}function oN(){return new WeakMap}var sN=typeof WeakMap<`u`?oN:aN;function cN(e){if(!e)return nN(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:nN(e);if(t&&~tN.call(t).indexOf(`[native code]`))try{return new t}catch{}return nN(e)}function lN(e){var t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}function uN(e){return e.flags}var dN=/test/g.flags===`g`?uN:lN;function fN(e){var t=rN.call(e);return t.substring(8,t.length-1)}function pN(e){return e[Symbol.toStringTag]||fN(e)}var mN=typeof Symbol<`u`?pN:fN,hN=Object.defineProperty,gN=Object.getOwnPropertyDescriptor,_N=Object.getOwnPropertyNames,vN=Object.getOwnPropertySymbols,yN=Object.prototype,bN=yN.hasOwnProperty,xN=yN.propertyIsEnumerable,SN=typeof vN==`function`;function CN(e){return _N(e).concat(vN(e))}var wN=SN?CN:_N;function TN(e,t,n){for(var r=wN(e),i=0,a=r.length,o=void 0,s=void 0;i<a;++i)if(o=r[i],!(o===`callee`||o===`caller`)){if(s=gN(e,o),!s){t[o]=n.copier(e[o],n);continue}!s.get&&!s.set&&(s.value=n.copier(s.value,n));try{hN(t,o,s)}catch{t[o]=s.value}}return t}function EN(e,t){var n=new t.Constructor;t.cache.set(e,n);for(var r=0,i=e.length;r<i;++r)n[r]=t.copier(e[r],t);return n}function DN(e,t){var n=new t.Constructor;return t.cache.set(e,n),TN(e,n,t)}function ON(e,t){return e.slice(0)}function kN(e,t){return e.slice(0,e.size,e.type)}function AN(e,t){return new t.Constructor(ON(e.buffer))}function jN(e,t){return new t.Constructor(e.getTime())}function MN(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach(function(e,r){n.set(r,t.copier(e,t))}),n}function NN(e,t){return TN(e,MN(e,t),t)}function PN(e,t){var n=cN(t.prototype);for(var r in t.cache.set(e,n),e)bN.call(e,r)&&(n[r]=t.copier(e[r],t));return n}function FN(e,t){var n=cN(t.prototype);for(var r in t.cache.set(e,n),e)bN.call(e,r)&&(n[r]=t.copier(e[r],t));for(var i=vN(e),a=0,o=i.length,s=void 0;a<o;++a)s=i[a],xN.call(e,s)&&(n[s]=t.copier(e[s],t));return n}var IN=SN?FN:PN;function LN(e,t){var n=cN(t.prototype);return t.cache.set(e,n),TN(e,n,t)}function RN(e,t){return new t.Constructor(e.valueOf())}function zN(e,t){var n=new t.Constructor(e.source,dN(e));return n.lastIndex=e.lastIndex,n}function BN(e,t){return e}function VN(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach(function(e){n.add(t.copier(e,t))}),n}function HN(e,t){return TN(e,VN(e,t),t)}var UN=Array.isArray,WN=Object.assign,GN=Object.getPrototypeOf||(function(e){return e.__proto__}),KN={array:EN,arrayBuffer:ON,blob:kN,dataView:AN,date:jN,error:BN,map:MN,object:IN,regExp:zN,set:VN},qN=WN({},KN,{array:DN,map:NN,object:LN,set:HN});function JN(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:RN,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:RN,Object:e.object,Promise:BN,RegExp:e.regExp,Set:e.set,String:RN,WeakMap:BN,WeakSet:BN,Uint8Array:e.arrayBuffer,
62Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function YN(e){var t=JN(WN({},KN,e)),n=t.Array,r=t.Object;function i(e,i){if(i.prototype=i.Constructor=void 0,!e||typeof e!=`object`)return e;if(i.cache.has(e))return i.cache.get(e);if(i.prototype=GN(e),i.Constructor=i.prototype&&i.prototype.constructor,!i.Constructor||i.Constructor===Object)return r(e,i);if(UN(e))return n(e,i);var a=t[mN(e)];return a?a(e,i):typeof e.then==`function`?e:r(e,i)}return function(e){return i(e,{Constructor:void 0,cache:sN(),copier:i,prototype:void 0})}}function XN(e){return YN(WN({},qN,e))}XN({});var ZN=YN({});function QN(e,t){e.interceptors.request.use(function(e){return t().then(t=>(e.headers.set(`Authorization`,`Bearer ${t}`),e))})}var $N=n(((e,t)=>{t.exports={}})),eP=e($N(),1);function tP(){return eP.default!==void 0&&!eP.default.browser}function nP(){return typeof window<`u`&&`navigator`in window&&`product`in window.navigator&&window.navigator.product===`ReactNative`}function rP(){return eP.default.versions&&eP.default.versions.node?`v${eP.default.versions.node}`:eP.default.version}function iP(){return window}function aP(){}var oP=e=>new Promise(t=>{setTimeout(t,e)}),sP=e=>Math.SQRT2**+e;function cP(e,t=5){let{responseLogger:n=aP,requestLogger:r=aP}=e.defaults;e.interceptors.request.use(function(e){return r(e),e},function(e){return r(e),Promise.reject(e)}),e.interceptors.response.use(function(e){return n(e),e},async function(r){let{response:i}=r,{config:a}=r;if(n(r),!a||!e.defaults.retryOnError)return Promise.reject(r);let o=a.attempts||1;if(o>t)return r.attempts=a.attempts,Promise.reject(r);let s=null,c=sP(o);return i?i.status>=500&&i.status<600?s=`Server ${i.status}`:i.status===429&&(s=`Rate limit`,i.headers&&r.response.headers[`x-contentful-ratelimit-reset`]&&(c=i.headers[`x-contentful-ratelimit-reset`])):s=`Connection`,s?(c=Math.floor(c*1e3+Math.random()*200+500),e.defaults.logHandler(`warning`,`${s} error occurred. Waiting for ${c} ms before retrying...`),a.attempts=o+1,delete a.httpAgent,delete a.httpsAgent,oP(c).then(()=>e(a))):Promise.reject(r)})}var lP=n(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),uP=n(((e,t)=>{var n=lP(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),dP=n(((e,t)=>{t.exports=uP().Symbol})),fP=n(((e,t)=>{var n=dP(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),pP=n(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),mP=n(((e,t)=>{var n=dP(),r=fP(),i=pP(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),hP=n(((e,t)=>{t.exports=Array.isArray})),gP=n(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),_P=n(((e,t)=>{var n=mP(),r=hP(),i=gP(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),vP=class extends Error{name=`AbortError`;constructor(){super(`Throttled function aborted`)}};function yP({limit:e,interval:t,strict:n,onDelay:r}){if(!Number.isFinite(e))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw TypeError("Expected `interval` to be a finite number");let i=new Map,a=0,o=0;function s(){let n=Date.now();return n-a>t?(o=1,a=n,0):(o<e?o++:(a+=t,o=1),a-n)}let c=s;return function(e){let t=function(...n){if(!t.isEnabled)return(async()=>e.apply(this,n))();let a;return new Promise((t,o)=>{let s=()=>{t(e.apply(this,n)),i.delete(a)},l=c();l>0?(a=setTimeout(s,l),i.set(a,o),r?.()):s()})};return t.abort=()=>{for(let e of i.keys())clearTimeout(e),i.get(e)(new vP);i.clear()},t.isEnabled=!0,Object.defineProperty(t,"queueSize",{get(){return i.size}}),t}}var bP=e(_P(),1),xP=/(?<value>\d+)(%)/;function SP(e,t=7){let n=t;if(xP.test(e)){let r=e.match(xP)?.groups;if(r&&r.value){let e=parseInt(r.value)/100;n=Math.round(t*e)}}return Math.min(30,Math.max(1,n))}function CP(e,t){return t(`info`,`Throttle request to ${e}/s`),yP({limit:e,interval:1e3,strict:!1})}var wP=(e,t=`auto`)=>{let{logHandler:n=aP}
62=e.defaults,r=(0,bP.default)(t)?SP(t):SP(`auto`,t),i=CP(r,n),a=!1,o=e.interceptors.request.use(e=>i(()=>e)(),function(e){return Promise.reject(e)}),s=e.interceptors.response.use(s=>{if(!a&&(0,bP.default)(t)&&(t===`auto`||xP.test(t))&&s.headers&&s.headers[`x-contentful-ratelimit-second-limit`]){let c=SP(t,parseInt(s.headers[`x-contentful-ratelimit-second-limit`]));c!==r&&(o&&e.interceptors.request.eject(o),r=c,i=CP(c,n),o=e.interceptors.request.use(e=>i(()=>e)(),function(e){return Promise.reject(e)})),a=!0}return s},function(e){return Promise.reject(e)});return()=>{e.interceptors.request.eject(o),e.interceptors.response.eject(s)}},TP=n(((e,t)=>{t.exports=TypeError})),EP=n(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ee(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var te=$N(),N=te.custom,P=ue(N)?N:null,ne={__proto__:null,double:`"`,single:`'`},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(pe(s,`quoteStyle`)&&!pe(ne,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(pe(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=pe(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pe(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pe(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return Ce(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?ee(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?ee(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return L(t)?`[Array]`:`[Object]`;var g=ke(s,r);
vendor: 5,765 bytes, lines 62-65
62if(o===void 0)o=[];else if(ge(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return pe(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ae(t)){var x=he(t),T=je(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ue(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?Te(D):D}if(Se(t)){for(var N=`<`+b.call(String(t.nodeName)),F=t.attributes||[],I=0;I<F.length;I++)N+=` `+F[I].name+`=`+re(ie(F[I].value),`double`,s);return N+=`>`,t.childNodes&&t.childNodes.length&&(N+=`...`),N+=`</`+b.call(String(t.nodeName))+`>`,N}if(L(t)){if(t.length===0)return`[]`;var fe=je(t,y);return g&&!Oe(fe)?`[`+Ae(fe,g)+`]`:`[ `+C.call(fe,`, `)+` ]`}if(oe(t)){var we=je(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),we),`, `)+` }`:we.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(we,`, `)+` }`}if(typeof t==`object`&&u){if(P&&typeof t[P]==`function`&&te)return te(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(_e(t)){var Me=[];return a&&a.call(t,function(e,n){Me.push(y(n,t,!0)+` => `+y(e,t))}),De(`Map`,i.call(t),Me,g)}if(be(t)){var Ne=[];return l&&l.call(t,function(e){Ne.push(y(e,t))}),De(`Set`,c.call(t),Ne,g)}if(ve(t))return Ee(`WeakMap`);if(xe(t))return Ee(`WeakSet`);if(ye(t))return Ee(`WeakRef`);if(ce(t))return Te(y(Number(t)));if(de(t))return Te(y(E.call(t)));if(le(t))return Te(p.call(t));if(se(t))return Te(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!R(t)&&!ae(t)){var Pe=je(t,y),Fe=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ie=t instanceof Object?``:`null prototype`,Le=!Fe&&A&&Object(t)===t&&A in t?_.call(me(t),8,-1):Ie?`Object`:``,Re=(Fe||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Le||Ie?`[`+C.call(S.call([],Le||[],Ie||[]),`: `)+`] `:``);return Pe.length===0?Re+`{}`:g?Re+`{`+Ae(Pe,g)+`}`:Re+`{ `+C.call(Pe,`, `)+` }`}return String(t)};function re(e,t,n){var r=ne[n.quoteStyle||t];return r+e+r}function ie(e){return v.call(String(e),/"/g,`"`)}function I(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function L(e){return me(e)===`[object Array]`&&I(e)}function R(e){return me(e)===`[object Date]`&&I(e)}function ae(e){return me(e)===`[object RegExp]`&&I(e)}function oe(e){return me(e)===`[object Error]`&&I(e)}function se(e){return me(e)===`[object String]`&&I(e)}function ce(e){return me(e)===`[object Number]`&&I(e)}function le(e){return me(e)===`[object Boolean]`&&I(e)}function ue(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function de(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var fe=Object.prototype.hasOwnProperty||function(e){return e in this};function pe(e,t){return fe.call(e,t)}function me(e){return m.call(e)}function he(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ge(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function _e(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ve(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ye(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function be(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function xe(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Se(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function Ce(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return Ce(_.call(e,0,t.maxStringLength),t)+r}var i=F[t.quoteStyle||`single`];return i.lastIndex=0,re(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,we),`single`,t)}function we(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function Te(e){return`Object(`+e+`)`}function Ee(e){return e+` { ? }`}function De(e,t,n,r){var i=r?Ae(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Oe(e){for(var t=0;t<e.length;t++)if(ge(e[t],` 63`)>=0)return!1;return!0}function ke(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function Ae(e,t){if(e.length===0)return``;var n=` 64`+t.prev+t.base;return n+C.call(e,`,`+n)+` 65`+t.prev}function je(e,t){var n=L(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=pe(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)pe(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),DP=n(((e,t)=>{var n=EP(),r=TP(),i=function(e,t,n){for(var r=e,i;
65(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),OP=n(((e,t)=>{t.exports=Object})),kP=n(((e,t)=>{t.exports=Error})),AP=n(((e,t)=>{t.exports=EvalError})),jP=n(((e,t)=>{t.exports=RangeError})),MP=n(((e,t)=>{t.exports=ReferenceError})),NP=n(((e,t)=>{t.exports=SyntaxError})),PP=n(((e,t)=>{t.exports=URIError})),FP=n(((e,t)=>{t.exports=Math.abs})),IP=n(((e,t)=>{t.exports=Math.floor})),LP=n(((e,t)=>{t.exports=Math.max})),RP=n(((e,t)=>{t.exports=Math.min})),zP=n(((e,t)=>{t.exports=Math.pow})),BP=n(((e,t)=>{t.exports=Math.round})),VP=n(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),HP=n(((e,t)=>{var n=VP();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),UP=n(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),WP=n(((e,t)=>{var n=UP();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),GP=n(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),KP=n(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),qP=n(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=KP();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),JP=n(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),YP=n(((e,t)=>{t.exports=OP().getPrototypeOf||null})),XP=n(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),ZP=n(((e,t)=>{var n=XP();t.exports=Function.prototype.bind||n})),QP=n(((e,t)=>{t.exports=Function.prototype.call})),$P=n(((e,t)=>{t.exports=Function.prototype.apply})),eF=n(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),tF=n(((e,t)=>{var n=ZP(),r=$P(),i=QP();t.exports=eF()||n.call(i,r)})),nF=n(((e,t)=>{var n=ZP(),r=TP(),i=QP(),a=tF();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}
65)),rF=n(((e,t)=>{var n=nF(),r=WP(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),iF=n(((e,t)=>{var n=JP(),r=YP(),i=rF();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),aF=n(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=ZP().call(n,r)})),oF=n(((e,t)=>{var n,r=OP(),i=kP(),a=AP(),o=jP(),s=MP(),c=NP(),l=TP(),u=PP(),d=FP(),f=IP(),p=LP(),m=RP(),h=zP(),g=BP(),_=HP(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=WP(),x=GP(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=qP()(),T=iF(),E=YP(),D=JP(),O=$P(),k=QP(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 4,702 bytes, line 65
65`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var ee=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},te={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},N=ZP(),P=aF(),ne=N.call(k,Array.prototype.concat),F=N.call(O,Array.prototype.splice),re=N.call(k,String.prototype.replace),ie=N.call(k,String.prototype.slice),I=N.
65call(k,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,ae=function(e){var t=ie(e,0,1),n=ie(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return re(e,L,function(e,t,n,i){r[r.length]=n?re(i,R,`$1`):t||e}),r},oe=function(e,t){var n=e,r;if(P(te,n)&&(r=te[n],n=`%`+r[0]+`%`),P(M,n)){var i=M[n];if(i===A&&(i=ee(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(I(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ae(e),r=n.length>0?n[0]:``,i=oe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],F(n,ne([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ie(p,0,1),h=ie(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,P(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=P(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),sF=n(((e,t)=>{var n=oF(),r=nF(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),cF=n(((e,t)=>{var n=oF(),r=sF(),i=EP(),a=TP(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),lF=n(((e,t)=>{var n=oF(),r=sF(),i=EP(),a=cF(),o=TP(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),uF=n(((e,t)=>{var n=TP(),r=EP(),i=DP(),a=cF(),o=lF()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+(e&&Object(e)===e?`the given object key`:r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),dF=n(((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),fF=n(((e,t)=>{var n=dF(),r=uF(),i=GP(),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=r(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},m=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},h=function(e,t,n){t===`__proto__`&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},g=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(o(t)){var i=t.length;if(r&&typeof r.arrayLimit==`number`&&i>=r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t.concat(n),r),i)}t[i]=n}else if(t&&typeof t==`object`)if(l(t)){var s=u(t)+1;t[s]=n,d(t,s)}else if(r&&r.strictMerge)return[t,n];else(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`){if(l(n)){for(var f=Object.keys(n),p=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<f.length;g++){var _=parseInt(f[g],10);p[_+1]=n[f[g]]}return c(p,u(n)+1)}var v=[t].concat(n);if(r&&typeof r.arrayLimit==`number`&&v.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(v,r),v.length-1)}return v}var y=t;if(o(t)&&!o(n)&&(y=m(t,r)),o(t)&&o(n)){if(n.forEach(function(n,i){if
65(a.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,r):t[t.length]=n}else t[i]=n}),r&&typeof r.arrayLimit==`number`&&t.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t,r),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var o=n[i];if(a.call(t,i)?h(t,i,e(t[i],o,r)):h(t,i,o),l(n)&&!l(t)&&c(t,u(n)),l(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>u(t)&&d(t,s)}return t},y)},_=function(e,t){return Object.keys(t).reduce(function(e,n){return h(e,n,t[n]),e},e)},v=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},y=1024;t.exports={arrayToObject:m,assign:_,combine:function(e,t,n,r,i){if(l(e)){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);var a=u(e)+1;return e[a]=t,d(e,a),e}var o=[].concat(e,t);if(o.length>n){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);return c(m(o,{plainObjects:r}),o.length-1)}return o},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=r(),i=0;i<t.length;++i)for(var a=t[i],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];typeof u==`object`&&u&&!n.has(u)&&(t[t.length]={obj:o,prop:l},n.set(u,!0))}return p(t),e},decode:v,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=y){var l=o.length>=y?o.slice(c,c+y):o;if(c+y<o.length){var u=l.charCodeAt(l.length-1);u>=55296&&u<=56319&&(l=l.slice(0,-1),--c)}for(var d=[],p=0;p<l.length;++p){var m=l.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(m===40||m===41)){d[d.length]=l.charAt(p);continue}if(m<128){d[d.length]=f[m];continue}if(m<2048){d[d.length]=f[192|m>>6]+f[128|m&63];continue}if(m<55296||m>=57344){d[d.length]=f[224|m>>12]+f[128|m>>6&63]+f[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|l.charCodeAt(p)&1023),d[d.length]=f[240|m>>18]+f[128|m>>12&63]+f[128|m>>6&63]+f[128|m&63]}s+=d.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:c,maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:g}})),pF=n(((e,t)=>{var n=uF(),r=fF(),i=dF(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return S(g&&!C?g(i,f.encoder,w,`key`,x):i);E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,function(e){return e==null?e:g(e)})),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var ee=Object.keys(E);M=v?ee.sort(v):ee}var te=h?String(i).replace(/\./g,`%2E`):String(i),N=o&&s(E)&&E.length===1?te+`[]`:te;if(c&&s(E)&&E.length===0)return N+`[]`;for(var P=0;P<M.length;++P){var ne=M[P],F=typeof ne==`object`&&ne&&ne.value!==void 0?ne.value:E[ne];if(!(d&&F===null)){var re=y&&h?String(ne).replace(/\./g,`%2E`):String(ne),ie=s(E)?typeof a==`function`?a(N,re):N:N+(y?`.`+re:`[`+re+`]`);T.set(t,O);var I=n();I.set(m,T),l(j,e(F,ie,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,I))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
65if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m];if(_!=null){var v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B`+i.delimiter:b+=`utf8=%E2%9C%93`+i.delimiter),y.length>0?b+y:``}})),mF=n(((e,t)=>{var n=fF(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n,r){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1){if(r&&t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(`,`);a>-1;){if(i+=1,i>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);a=e.indexOf(`,`,a+1)}return e.split(`,`)}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded&&f!==void 0?f+1:f);if(t.throwOnLimitExceeded&&f!==void 0&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0,_.indexOf(`[]=`)===-1),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit&&(x=n.combine([],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),b!==null){var S=r.call(u,b);
65S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=[],a=n.indexOf(`[`),o=a>=0?n.slice(0,a):n;if(o){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var s=n.length,c=a,l=0;c>=0&&l<t.depth;){for(var u=1,d=c+1,f=-1;d<s&&f<0;){var p=n.charCodeAt(d);p===91?u+=1:p===93&&(--u,u===0&&(f=d)),d+=1}if(f<0)return i[i.length]=`[`+n.slice(c)+`]`,i;var m=n.slice(c,f+1),h=m.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;i[i.length]=m,l+=1,c=n.indexOf(`[`,f+1)}if(c>=0){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);i[i.length]=`[`+n.slice(c)+`]`}return i},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;
65if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),hF=e(n(((e,t)=>{var n=pF(),r=mF();t.exports={formats:dF(),parse:r,stringify:n}}))(),1),gF=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function _F(e){let t={insecure:!1,retryOnError:!0,logHandler:(e,t)=>{if(e===`error`&&t){let e=[t.name,t.message].filter(e=>e).join(` - `);console.error(`[error] ${e}`),console.error(t);return}console.log(`[${e}] ${t}`)},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:``,adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824,...e};if(!t.accessToken){let e=TypeError(`Expected parameter accessToken`);throw t.logHandler(`error`,e),e}let n=t.insecure?`http`:`https`,r=t.space?`${t.space}/`:``,i=t.defaultHostname,a=t.insecure?80:443;if(t.host&&gF.test(t.host)){let e=t.host.split(`:`);e.length===2?[i,a]=e:i=e[0]}t.basePath&&=`/${t.basePath.split(`/`).filter(Boolean).join(`/`)}`;let o=e.baseURL||`${n}://${i}:${a}${t.basePath}/spaces/${r}`;return!t.headers.Authorization&&typeof t.accessToken!=`function`&&(t.headers.Authorization=`Bearer `+t.accessToken),{baseURL:o,headers:t.headers,httpAgent:t.httpAgent,httpsAgent:t.httpsAgent,proxy:t.proxy,timeout:t.timeout,adapter:t.adapter,fetchOptions:t.fetchOptions,maxContentLength:t.maxContentLength,maxBodyLength:t.maxBodyLength,paramsSerializer:{serialize:e=>hF.default.stringify(e)},logHandler:t.logHandler,responseLogger:t.responseLogger,requestLogger:t.requestLogger,retryOnError:t.retryOnError}}function vF(e){let t=ZN(e);return t.httpAgent=e.httpAgent,t.httpsAgent=e.httpsAgent,t}function yF(e,t){let n=_F(t),r=e.create(n);return r.httpClientParams=t,r.cloneWithNewParams=function(n){return yF(e,{...vF(t),...n})},t.onBeforeRequest&&r.interceptors.request.use(t.onBeforeRequest),typeof t.accessToken==`function`&&QN(r,t.accessToken),t.throttle&&wP(r,t.throttle),cP(r,t.retryLimit),t.onError&&r.interceptors.response.use(e=>e,t.onError),r}function bF({query:e}){let t={};return delete e.resolveLinks,t.params=ZN(e),t}function xF(e){let t=Object.getOwnPropertyNames(e);for(let n of t){let t=e[n];t&&typeof t==`object`&&xF(t)}return Object.freeze(e)}function SF(e){return xF(e.sys||{}),e}function CF(){let e=iP();if(!e)return null;let t=e.navigator.userAgent,n=e.navigator.platform;return[`Macintosh`,`MacIntel`,`MacPPC`,`Mac68K`].indexOf(n)===-1?[`iPhone`,`iPad`,`iPod`].indexOf(n)===-1?[`Win32`,`Win64`,`Windows`,`WinCE`].indexOf(n)===-1?/Android/.test(t)?`Android`:/Linux/.test(n)?`Linux`:null:`W
65indows`:`iOS`:`macOS`}function wF(){let e=eP.default.platform||`linux`,t=eP.default.version||`0.0.0`,n={android:`Android`,aix:`Linux`,darwin:`macOS`,freebsd:`Linux`,linux:`Linux`,openbsd:`Linux`,sunos:`Linux`,win32:`Windows`};return e in n?`${n[e]||`Linux`}/${t}`:null}function TF(e,t,n,r){let i=[];t&&i.push(`app ${t}`),n&&i.push(`integration ${n}`),r&&i.push(`feature `+r),i.push(`sdk ${e}`);let a=null;try{nP()?(a=CF(),i.push(`platform ReactNative`)):tP()?(a=wF(),i.push(`platform node.js/${rP()}`)):(a=CF(),i.push(`platform browser`))}catch{a=null}return a&&i.push(`os ${a}`),`${i.filter(e=>e!==``).join(`; `)};`}function EF(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return ZN(this)}})}var DF=n(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),OF=n(((e,t)=>{t.exports=DF()(Object.getPrototypeOf,Object)})),kF=e(n(((e,t)=>{var n=mP(),r=OF(),i=gP(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d}))(),1);function AF(e){if(e?.headers?.Authorization){let t=`...${e.headers.Authorization.toString().substr(-5)}`;e.headers.Authorization=`Bearer ${t}`}if(e?.headers?.[`X-Contentful-Resource-Resolution`]){let t=`...${e.headers[`X-Contentful-Resource-Resolution`].toString().substr(-5)}`;e.headers[`X-Contentful-Resource-Resolution`]=t}}function jF(e){let{config:t,response:n}=e,r;if(AF(t),!(0,kF.default)(n)||!(0,kF.default)(t))throw e;let i=n?.data,a={status:n?.status,statusText:n?.statusText,message:``,details:{}};t&&(0,kF.default)(t)&&(a.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&typeof i==`object`&&(`requestId`in i&&(a.requestId=i.requestId||`UNKNOWN`),`message`in i&&(a.message=i.message||``),`details`in i&&(a.details=i.details||{}),r=i.sys?.id);let o=Error();o.name=r&&r!==`Unknown`?r:`${n?.status} ${n?.statusText}`;try{o.message=JSON.stringify(a,null,` `)}catch{o.message=a?.message??``}throw o}function MF(e){return function(t){return Object.assign({},e,t)}}var NF={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},PF={0:8203,1:8204,2:8205,3:65279},FF=[,,,,].fill(String.fromCodePoint(PF[0])).join(``);function IF(e){let t=JSON.stringify(e);return`${FF}${Array.from(t).map(e=>{let n=e.charCodeAt(0);if(n>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${e} (${n})`);return Array.from(n.toString(4).padStart(4,`0`)).map(e=>String.fromCodePoint(PF[e])).join(``)}).join(``)}`}function LF(e){return!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)?!1:!!Date.parse(e)}function RF(e){try{new URL(e,e.startsWith(`/`)?`https://acme.com`:void 0)}catch{return!1}return!0}function zF(e,t,n=`auto`){return n===!0||n===`auto`&&(LF(e)||RF(e))?e:`${e}${IF(t)}`}Object.fromEntries(Object.entries(PF).map(e=>e.reverse())),Object.fromEntries(Object.entries(NF).map(e=>e.reverse()));var BF=`${Object.values(NF).map(e=>`\\u{${e.toString(16)}}`).join(``)}`;RegExp(`[${BF}]{4,}`,`gu`);function VF(e,t){return zF(e,t)}var HF,UF;function WF(){if(UF)return HF;UF=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return HF=function(n,r,i){if(t.call(r)!==`[object Function]`)throw TypeError(`iterator must be a function`);var a=n.length;if(a===+a)for(var o=0;o<a;o++)r.call(i,n[o],o,n);else for(var s in n)e.call(n,s)&&r.call(i,n[s],s,n)},HF}var GF,KF;function qF(){if(KF)return GF;KF=1;var e=WF();GF=t;function t(e,n,r){if(arguments.length===3)return t.set(e,n,r);if(arguments.length===2)return t.get(e,n);var i=t.bind(t,e);for(var a in t)t.hasOwnProperty(a)&&(i[a]=t[a].bind(i,e));return i}return t.get=function(e,n){for(var r=Array.isArray(n)?n:t.parse(n),i=0;i<r.length;++i){var a=r[i];if(!(typeof e==`object`&&a in e))throw Error(`Invalid reference token: `+a);e=e[a]}return e},t.set=function(e,n,r){var i=Array.isArray(n)?n:t.parse(n),a=i[0];if(i.length===0)throw Error(`Can not set the root object`);for(var o=0;o<i.length-1;++o){var s=i[o];typeof s!=`string`&&typeof s!=`number`&&(s=String(s)),!(s===`__proto__`||s===`constructor`||s===`prototype`)&&(s===`-`&&Array.isArray(e)&&(s=e.length),a=i[o+1],s in e||(a.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return a===`-`&&Array.isArray(e)&&(a=e.length),e[a]=r,this},t.remove=function(e,n){var r=Array.isArray(n)?n:t.parse(n),i=r[r.length-1];if(i===void 0)throw Error(`Invalid JSON pointer for remove: "`+n+`"`);var a=t.get(e,r.slice(0,-1));if(Array.isArray(a)){var o=+i;
65if(i===``&&isNaN(o))throw Error(`Invalid array index: "`+i+`"`);Array.prototype.splice.call(a,o,1)}else delete a[i]},t.dict=function(e,n){var r={};return t.walk(e,function(e,t){r[t]=e},n),r},t.walk=function(n,r,i){var a=[];i||=function(e){var t=Object.prototype.toString.call(e);return t===`[object Object]`||t===`[object Array]`},function n(o){e(o,function(e,o){a.push(String(o)),i(e)?n(e):r(e,t.compile(a)),a.pop()})}(n)},t.has=function(e,n){try{t.get(e,n)}catch{return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,`~0`).replace(/\//g,`~1`)},t.unescape=function(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)},t.parse=function(e){if(e===``)return[];if(e.charAt(0)!==`/`)throw Error(`Invalid JSON pointer: `+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return e.length===0?``:`/`+e.map(t.escape).join(`/`)},GF}var JF=qF(),YF=({pointer:e,mappings:t,data:n,hiddenStrings:r})=>{let i=t[e];if(i){delete t[e];let a=ZF(n,e);for(let e of a){t[e]=i;let a=VF(JF.get(n,e),r);JF.set(n,e,a)}}else{let t=ZF(n,e);for(let e of t){let t=VF(JF.get(n,e),r);JF.set(n,e,t)}}};function XF(e){return`content`in e&&!!e.content}var ZF=(e,t=``)=>{let n=[],r=JF.get(e,t);if(XF(r))for(let i=0;i<r.content.length;i++)r.content[i].nodeType===`text`?n.push(`${t}/content/${i}/value`):n.push(...ZF(e,`${t}/content/${i}`));return n},QF=({entityId:e,entityType:t,space:n,environment:r,field:i,locale:a,editorInterface:o,fieldType:s,targetOrigin:c,platform:l})=>{let u={origin:`contentful.com`,href:`${`${c||`https://app.contentful.com`}/spaces/${n}/environments/${r}`}/${t===`Entry`?`entries`:`assets`}/${e}/?focusedField=${i}&focusedLocale=${a}&source=vercel-content-link`,contentful:{editorInterface:o,fieldType:s}};return l===`vercel`&&delete u.contentful,u},$F=e=>[`builtin`,`sidebar-builtin`,`editor-builtin`].includes(e),eI=e=>nI.includes(e);function tI(e){if(typeof structuredClone==`function`)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn(`Failed to clone data:`,e,t),e}}var nI=[`singleLine`,`tagEditor`,`listInput`,`checkbox`,`richTextEditor`,`multipleLine`];function rI(e,t,n,r,i,a,o){let s=o?t[o]:t;switch(e){case`Symbol`:{let e=VF(s,n);JF.set(r,i,e);break}case`Text`:{let e=VF(s,n);JF.set(r,i,e);break}case`RichText`:YF({pointer:``,mappings:a,data:s,hiddenStrings:n});break;case`Array`:{let e=s.map(e=>typeof e==`string`?VF(e,n):e);JF.set(r,i,e);break}}}var iI=(e,t,n,r,i)=>{if(!e.fields)return;let{contentSourceMaps:a}=e.sys;if(!a)return;let{mappings:o}=a;for(let a in o){let{source:s}=o[a],c=e.sys.space.sys.id,l=e.sys.environment.sys.id,u=e.sys.id,d=e.sys.type,f=t[s.fieldType],p=n[s.editorInterface];if($F(p.widgetNamespace)&&!eI(p.widgetId))continue;let m=a.startsWith(`/`)?a:`/${a}`;if(JF.has(e,m)){let t=JF.get(e,m);if(t===null)return;let n=m.split(`/`).pop();if(!n){console.error(`Field name could not be extracted from the pointer`,m);return}let a=e.sys.locale;a?rI(f,t,QF({entityId:u,entityType:d,space:c,environment:l,field:n,locale:a,editorInterface:p,fieldType:f,targetOrigin:r,platform:i}),e,m,o):Object.keys(t).forEach(a=>{rI(f,t,QF({entityId:u,entityType:d,space:c,environment:l,field:n,locale:a,editorInterface:p,fieldType:f,targetOrigin:r,platform:i}),e,`${m}/${a}`,o,a)})}}},aI=(e,t,n)=>{var r;let i=tI(e);if(i.sys&&`items`in i){let e=i;if(!((r=e.sys)!=null&&r.contentSourceMapsLookup))return e;let{contentSourceMapsLookup:{fieldTypes:a,editorInterfaces:o}}=e.sys,{items:s,includes:c}=e;s.forEach(e=>iI(e,a,o,t,n)),c&&c.Entry&&c.Entry.forEach(e=>iI(e,a,o,t,n)),c&&c.Asset&&c.Asset.forEach(e=>iI(e,a,o,t,n))}else{let e=i;if(!e.sys.contentSourceMapsLookup)return console.error(`Content source maps lookup data is missing`),e;iI(e,e.sys.contentSourceMapsLookup.fieldTypes,e.sys.contentSourceMapsLookup.editorInterfaces,t,n)}return i};function oI(e){return lI(e)||cI(e)||pI(e)||sI()}function sI(){throw TypeError(`Invalid attempt to spread non-iterable instance. 66In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cI(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lI(e){if(Array.isArray(e))return mI(e)}function uI(e){"@babel/helpers - typeof";return uI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uI(e)}function dI(e,t){return gI(e)||hI(e,t)||pI(e,t)||fI()}
66function fI(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 67In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pI(e,t){if(e){if(typeof e==`string`)return mI(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mI(e,t):void 0}}function mI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hI(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gI(e){if(Array.isArray(e))return e}var _I={},vI=function(e){return e&&e.sys&&e.sys.type===`Link`},yI=function(e){return e&&e.sys&&e.sys.type===`ResourceLink`},bI=function(e){return e.space&&e.environment?[`${e.type}!${e.id}`,`${e.space.sys.id}!${e.environment.sys.id}!${e.type}!${e.id}`]:[`${e.type}!${e.id}`]},xI=function(e,t){var n=t.entryId,r=t.linkType,i=t.spaceId,a=t.environmentId;return i&&a?e.get(`${i}!${a}!${r}!${n}`):e.get(`${r}!${n}`)},SI=function(e){var t=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(t.test(e)){var n=dI(e.match(t),4);n[0];var r=n[1],i=n[2];return{spaceId:r,environmentId:i===void 0?`master`:i,entryId:n[3]}}},CI=function(e,t){var n=t.sys,r=n.type,i=n.linkType;if(r===`ResourceLink`){if(!i.startsWith(`Contentful:`))return t;var a=t.sys.urn,o=SI(a),s=o.spaceId,c=o.environmentId,l=o.entryId,u=i.split(`:`)[1];return xI(e,{linkType:u,entryId:l,spaceId:s,environmentId:c})||_I}var d=t.sys.id;return xI(e,{linkType:i,entryId:d})||_I},wI=function(e){if(Array.isArray(e))return e.filter(function(e){return e!==_I});for(var t in e)e[t]===_I&&delete e[t];return e},TI=function(e,t,n,r){if(t(e))return n(e);if(e&&uI(e)===`object`){for(var i in e)e.hasOwnProperty(i)&&(e[i]=TI(e[i],t,n,r));r&&(e=wI(e))}return e},EI=function(e,t,n){var r=CI(e,t);return r===_I?n?r:t:r},DI=function(e,t){return Array.isArray(t)?Object.keys(e).filter(function(e){return t.indexOf(e)!==-1}).reduce(function(t,n){return t[n]=e[n],t},{}):e},OI=function(e,t){if(t||={},!e.items)return[];var n=ZN(e),r=Object.keys(n.includes||{}).reduce(function(e,t){return[].concat(oI(e),oI(n.includes[t]))},[]),i=[].concat(oI(n.items),oI(r)).filter(function(e){return!!e.sys}),a=new Map(i.reduce(function(e,t){var n=bI(t.sys).map(function(e){return[e,t]});return e.push.apply(e,oI(n)),e},[]));return i.forEach(function(e){var n=DI(e,t.itemEntryPoints);Object.assign(e,TI(n,function(e){return vI(e)||yI(e)},function(e){return EI(a,e,t.removeUnresolved)},t.removeUnresolved))}),n.items},kI=e(n(((e,t)=>{e=t.exports=n,e.getSerialize=r;function n(e,t,n,i){return JSON.stringify(e,r(t,i),n)}function r(e,t){var n=[],r=[];return t??=function(e,t){return n[0]===t?`[Circular ~]`:`[Circular ~.`+r.slice(0,n.indexOf(t)).join(`.`)+`]`},function(i,a){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return e==null?a:e.call(this,i,a)}}}))(),1);function AI(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(e=null,t=``){return(0,kI.default)(this,e,t,(e,t)=>({sys:{type:`Link`,linkType:`Entry`,id:t.sys.id,circular:!0}}))}})}async function jI(e,t,n){if(!t||!t.initial&&!t.nextSyncToken&&!t.nextPageToken)throw Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(t.content_type&&!t.type)t.type=`Entry`;else if(t.content_type&&t.type&&t.type!==`Entry`)throw Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");let{withoutLinkResolution:r,withoutUnresolvableLinks:i,paginate:a}=Object.assign(Object.assign({},{withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0}),n),o=await PI(e,[],t,{paginate:a});r||(o.items=OI(o,{removeUnresolved:i,itemEntryPoints:[`fields`]}));let s=MI(o.items);return o.nextSyncToken&&(s.nextSyncToken=o.nextSyncToken),o.nextPageToken&&
67(s.nextPageToken=o.nextPageToken),SF(AI(EF(s)))}function MI(e){let t=e=>(t,n)=>(n.sys.type===e&&t.push(EF(n)),t);return{entries:e.reduce(t(`Entry`),[]),assets:e.reduce(t(`Asset`),[]),deletedEntries:e.reduce(t(`DeletedEntry`),[]),deletedAssets:e.reduce(t(`DeletedAsset`),[])}}function NI(e){return e.nextPageToken?{sync_token:e.nextPageToken}:e.nextSyncToken?{sync_token:e.nextSyncToken}:e.sync_token?{sync_token:e.sync_token}:e}async function PI(e,t,n,{paginate:r}){let i=NI(n),a=(await e.get(`sync`,bF({query:i}))).data||{};return t=t.concat(a.items||[]),a.nextPageUrl?r?(delete i.initial,i.sync_token=FI(a.nextPageUrl),PI(e,t,i,{paginate:r})):{items:t,nextPageToken:FI(a.nextPageUrl)}:a.nextSyncUrl?{items:t,nextSyncToken:FI(a.nextSyncUrl)}:{items:[]}}function FI(e){let t=e.split(`?`);return t.length>0?t[1].replace(`sync_token=`,``):``}function II(e){let t={},n=!1;for(let r in e)Array.isArray(e[r])&&(t[r]=e[r].join(`,`),n=!0);return n?Object.assign(Object.assign({},e),t):e}function LI(e){if(!e.select)return new Set;let t=Array.isArray(e.select)?e.select:e.select.split(`,`).map(e=>e.trim());return new Set(t)}function RI(e){if(!e.select)return e;let t=LI(e);return t.has(`sys`)?e:(t.add(`sys.id`),t.add(`sys.type`),Object.assign(Object.assign({},e),{select:[...t].join(`,`)}))}function zI(e,{resolveLinks:t,removeUnresolved:n}){let r=AI(e);return t&&(r.items=OI(r,{removeUnresolved:n,itemEntryPoints:[`fields`]})),r}var BI=class extends Error{constructor(e,t){super(`Invalid "${e}" provided, `+t),this.name=`ValidationError`}};function VI(e,t,n){if(n||={},typeof t!=`number`)throw new BI(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(n.maximum&&t>n.maximum)throw new BI(e,`value (${t}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&t<n.now)throw new BI(e,`value (${t}) cannot be in the past, current time was ${n.now}`)}function HI(e){return!!(e&&typeof e==`object`&&typeof e.lte==`string`)}function UI(e){return!!(e&&typeof e==`object`&&(typeof e.lte==`string`||e.lte instanceof Date))}var WI=e=>{if(typeof e!=`object`||!e||Array.isArray(e))throw new BI(`timelinePreview`,`The 'timelinePreview' parameter must be an object.`);let t=HI(e.release),n=UI(e.timestamp);if(!t&&!n)throw new BI(`timelinePreview`,`The 'timelinePreview' object must have at least one of 'release' or 'timestamp' with a valid 'lte' property.`);return t||n},GI=e=>{let t=e?.host,n=e?.timelinePreview??e?.alphaFeatures?.timelinePreview;return{enabled:QI(t,n),timelinePreview:n}};function KI(e){if(e.locale===`*`)throw new BI(`locale`,`The use of locale='*' is no longer supported.To fetch an entry in all existing locales, 68 use client.withAllLocales instead of the locale='*' parameter.`)}function qI(e){if(e.locale)throw new BI(`locale`,"The `locale` parameter is not allowed")}function JI(e,t){t?qI(e):KI(e)}function YI(e){if(`resolveLinks`in e)throw new BI(`resolveLinks`,`The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved. 69 If you do not want to resolve links, use client.withoutLinkResolution.`)}function XI(e){if(`removeUnresolved`in e)throw new BI(`removeUnresolved`,`The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects. 70 If you do not want to include unresolved links, use client.withoutUnresolvableLinks.`)}function ZI(e,t){if(t===void 0)return!1;if(typeof t!=`boolean`)throw new BI(`includeContentSourceMaps`,`The 'includeContentSourceMaps' parameter must be a boolean.`);let n=typeof e==`string`&&e.startsWith(`preview`);if(t&&!n)throw new BI(`includeContentSourceMaps`,`The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to include Content Source Maps. 71 `);return t}function QI(e,t){if(t===void 0)return!1;let n=WI(t),r=typeof e==`string`&&/^preview(\.eu)?\.contentful\.com$/.test(e),i=typeof e!=`string`||!e.endsWith(`.contentful.com`);if(n&&!(r||i))throw new BI(`timelinePreview`,`The 'timelinePreview' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to enable Timeline Preview. 72 `);return!0}function $I(e){for(let t in e){let n=e[t];if(typeof n==`object`&&n&&!Array.isArray(n))throw Error(`Objects are not supported as value for the "${t}" query parameter.`)}}var eL=function(){return eL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},eL.apply(this,arguments)};function tL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function nL(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
72r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function rL(e){let{cursor:t,pagePrev:n,pageNext:r,skip:i}=e,a=tL(e,[`cursor`,`pagePrev`,`pageNext`,`skip`]);return Object.assign(Object.assign(Object.assign(Object.assign({},a),{cursor:!0}),!!n&&{pagePrev:n}),!!r&&{pageNext:r})}function iL(e,t){let n=t?.split(`?`)[1];if(n)return new URLSearchParams(n).get(e)}var aL={prev:`pagePrev`,next:`pageNext`};function oL(e){let t={};for(let[n,r]of Object.entries(aL)){let i=iL(r,e.pages[n]);i&&(t[n]=i)}return Object.assign(Object.assign({},e),{pages:t})}var sL=2880*60,cL=class extends Error{constructor(e,t,n){super(`The resource could not be found.`),this.sys={type:`Error`,id:`NotFound`},this.details={type:`Entry`,id:e,environment:t,space:n}}};function lL({http:e,getGlobalOptions:t},n){let r=(e=`unknown`)=>new cL(e,t().environment,t().space),i=e=>{let n=e===`space`?t().spaceBaseUrl:t().environmentBaseUrl;if(!n)throw Error(`Please define baseUrl for `+e);return n.endsWith(`/`)||(n+=`/`),n};function a(t={}){let n=e.httpClientParams,r=n?.includeContentSourceMaps??n?.alphaFeatures?.includeContentSourceMaps;if(ZI(n?.host,r)&&(t.includeContentSourceMaps=!0,t.select)){let e=LI(t);e.add(`sys`),t.select=Array.from(e).join(`,`)}return t}function o(t){let{enabled:n}=GI(e.httpClientParams);return n?`timeline/${t}`:t}function s(t){let{enabled:n,timelinePreview:r}=GI(e.httpClientParams);return n&&(r?.release&&(t.release=r.release),r?.timestamp&&(t.timestamp=r.timestamp)),t}function c(e,t){return t?.params?.includeContentSourceMaps?aI(e):e}async function l({context:t,path:n,config:r}){let a=i(t);try{return c((await e.get(a+n,r)).data,r)}catch(e){jF(e)}}async function u({context:t,path:n,data:r,config:a}){let o=i(t);try{return(await e.post(o+n,r,a)).data}catch(e){jF(e)}}async function d(){return l({context:`space`,path:``})}async function f(e){return l({context:`environment`,path:`content_types/${e}`})}async function p(e={}){return l({context:`environment`,path:`content_types`,config:bF({query:e})})}async function m(e,t={}){return _(e,t,n)}async function h(e={}){return y(e,n)}async function g(e={}){return oL(await y(rL(e),n))}async function _(e,t,n={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:r}=n;return JI(t,r),YI(t),XI(t),$I(t),v(e,r?Object.assign(Object.assign({},t),{locale:`*`}):t,n)}async function v(e,t,n){if(!e)throw r(e);try{let i=await x(Object.assign({"sys.id":e},a(t)),n);if(i.items.length>0)return i.items[0];throw r(e)}catch(e){jF(e)}}async function y(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:n}=t;return JI(e,n),YI(e),XI(e),$I(e),x(n?Object.assign(Object.assign({},e),{locale:`*`}):e,t)}function b(e){return a(II(RI(s(Object.assign({},e)))))}async function x(e,t){let{withoutLinkResolution:n,withoutUnresolvableLinks:r,withLocaleBasedPublishing:i}=t;try{let t=bF({query:b(e)});return i&&(t.headers=Object.assign(Object.assign({},t.headers),{"X-Contentful-Locale-Based-Publishing":!0})),zI(await l({context:`environment`,path:o(`entries`),config:t}),{resolveLinks:!n,removeUnresolved:r??!1})}catch(e){jF(e)}}async function S(e,t={}){return D(e,t,n)}async function C(e={}){return T(e,n)}async function w(e={}){return oL(await T(rL(e),n))}async function T(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:n}=t;return JI(e,n),$I(e),O(n?Object.assign(Object.assign({},e),{locale:`*`}):e,t)}async function E(e,t,n){let{withLocaleBasedPublishing:r}=n;try{let n=bF({query:b(t)});return r&&(n.headers=Object.assign(Object.assign({},n.headers),{"X-Contentful-Locale-Based-Publishing":!0})),l({context:`environment`,path:o(`assets/${e}`),config:n})}catch(e){jF(e)}}async function D(e,t,n={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){let{withAllLocales:r}=n;return JI(t,r),$I(t),E(e,r?Object.assign(Object.assign({},t),{locale:`*`}):t,n)}async function O(e,t){let{withLocaleBasedPublishing:n}=t;try{let t=bF({query:b(e)});return n&&(t.headers=Object.assign(Object.assign({},t.headers),{"X-Contentful-Locale-Based-Publishing":!0})),l({context:`environment`,path:o(`assets`),config:t})}catch(e){jF(e)}}async function k(e){return l({context:`environment`,path:`tags/${e}`})}async function A(e={}){return $I(e),l({context:`environment`,path:`tags`,config:bF({query:II(RI(e))})})}async function j(e){try{let t=Math.floor(Date.now()/1e3);VI(`expiresAt`,e,{maximum:t+sL,now:t})}catch(e){jF(e)}return u({context:`environment`,path:`asset_keys`,data:{expiresAt:e}})}async function M(e={}){return $I(e),l({context:`environment`,path:`locales`,config:bF({query:RI(e)})})}async function ee(e,t={paginate:!0}){return te(e,t,n)}async function te(t,n,r={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){YI(t),XI(t);let i=Object.assign(Object.assign({},n),r);return de(e),jI(e,t,i)}function N(e){return P(e,n)}function P(e,t={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1}){return ne(e,t)}function ne(e,t){let{withoutLinkResolution:n,withoutUnresolvableLinks:r}=t;return zI(e,{resolveLinks:!n,removeUnresolved:r??!1})}function F(e,t={}){return re(e,t)}async function re(e,t={}){try{return l({context:`environment`,path:`taxonomy/concept-schemes/${e}`,config:bF({query:II(RI(t))})})}catch(e){jF(e)}}function ie(e={}){return I(e)}async function I(e={}){try{return l({context:`environment`,path:`taxonomy/concept-schemes`,config:bF({query:II(RI(e))})})}catch(e){jF(e)}}function L(e,t={}){return R(e,t)}async function R(e,t={}){try{return l({context:`environment`,path:`taxonomy/concepts/${e}`,config:bF({query:II(RI(t))})})}catch(e){jF(e)}}function ae(e={}){return oe(e)}async function oe(e={}){try{return l({context:`environment`,path:`taxonomy/concepts`,config:bF({query:II(RI(e))})})}catch(e){jF(e)}}function se(e,t={}){return ce(e,t)}async function ce(e,t={}){try{return l({context:`environment`,path:`taxonomy/concepts/${e}/ancestors`,config:bF({query:II(RI(t))})})}catch(e){jF(e)}}function le(e,t={}){return ue(e,t)}async function ue(e,t={}){try{return l({context:`environment`,path:`taxonomy/concepts/${e}/descendants`,config:bF({query:II(RI(t))})})}catch(e){jF(e)}}function de(e){e.defaults.baseURL=t().environmentBaseUrl}
72return{version:`0.0.0-determined-by-semantic-release`,getSpace:d,getContentType:f,getContentTypes:p,getAsset:S,getAssets:C,getAssetsWithCursor:w,getTag:k,getTags:A,getLocales:M,parseEntries:N,sync:ee,getEntry:m,getEntries:h,getEntriesWithCursor:g,getConceptScheme:F,getConceptSchemes:ie,getConcept:L,getConcepts:ae,getConceptAncestors:se,getConceptDescendants:le,createAssetKey:j}}function uL({http:e,getGlobalOptions:t},n,r){let i=lL({http:e,getGlobalOptions:t},n)||{};return Object.defineProperty(i,"withAllLocales",{get:()=>r(Object.assign(Object.assign({},n),{withAllLocales:!0}))}),Object.defineProperty(i,"withoutLinkResolution",{get:()=>r(Object.assign(Object.assign({},n),{withoutLinkResolution:!0}))}),Object.defineProperty(i,"withoutUnresolvableLinks",{get:()=>r(Object.assign(Object.assign({},n),{withoutUnresolvableLinks:!0}))}),Object.defineProperty(i,"withLocaleBasedPublishing",{get:()=>r(Object.assign(Object.assign({},n),{withLocaleBasedPublishing:!0}))}),Object.create(i)}var dL=({http:e,getGlobalOptions:t})=>{function n(r){return uL({http:e,getGlobalOptions:t},r,n)}let r=lL({http:e,getGlobalOptions:t},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1});return Object.assign(Object.assign({},r),{get withAllLocales(){return n({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1})},get withoutLinkResolution(){return n({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!1})},get withoutUnresolvableLinks(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0,withLocaleBasedPublishing:!1})},get withLocaleBasedPublishing(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1,withLocaleBasedPublishing:!0})}})};function fL(e){if(!e.accessToken)throw TypeError(`Expected parameter accessToken`);if(!e.space)throw TypeError(`Expected parameter space`);YI(e),XI(e);let t=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:`cdn.contentful.com`,environment:`master`}),e),n=TF(`contentful.js/0.0.0-determined-by-semantic-release`,t.application,t.integration);t.headers=Object.assign(Object.assign({},t.headers),{"Content-Type":`application/vnd.contentful.delivery.v1+json`,"X-Contentful-User-Agent":n});let r=yF(eN,t);if(!r.defaults.baseURL)throw Error(`Please define a baseURL`);let i=MF({space:t.space,environment:t.environment,spaceBaseUrl:r.defaults.baseURL,environmentBaseUrl:`${r.defaults.baseURL}environments/${t.environment}`});return r.defaults.baseURL=i({}).environmentBaseUrl,dL({http:r,getGlobalOptions:i})}var pL=fL({space:`u17em9tc1vdb`,environment:`master`,accessToken:`ATWRagrRwcwv428uM_3rbDgRJoKKGASF0Xh4wpnQoOg`,host:`cdn.contentful.com`}),mL=`https://getdex.com`,hL=230;function gL(e){let t=e?.fields?.file?.url;if(t)return t.startsWith(`//`)?`https:${t}`:t}function _L(e,t){let n=gL(e);if(!n)return;let r=new URLSearchParams({fm:`webp`,q:`75`});return t&&r.set(`w`,String(t)),`${n}?${r.toString()}`}function vL(e){let t=e?.fields;return t?.description?.trim()||t?.title?.trim()||void 0}function yL(e){if(!e)return``;let t=``,n=e=>{typeof e.value==`string`&&(t+=e.value),Array.isArray(e.content)&&e.content.forEach(e=>n(e))};return n(e),t}function bL(e){let t=yL(e).trim().split(/\s+/).filter(Boolean).length;return Math.max(1,Math.round(t/hL))}function xL(e){return e?e.replace(/^@+/,``):void 0}function SL(e){let t=e.seoTitle||e.title,n=e.metaDescription||e.excerpt,r=e.ogImage??e.featureImage,i=e.twitterImage??e.ogImage??e.featureImage,a=_L(r,1200);return{title:t,description:n,canonicalUrl:e.canonicalUrl,ogTitle:e.ogTitle||t,ogDescription:e.ogDescription||n,ogImageUrl:a,ogImageAlt:vL(r)??e.title,twitterTitle:e.twitterTitle||e.ogTitle||t,twitterDescription:e.twitterDescription||e.ogDescription||n,twitterImageUrl:_L(i,1200)??a,twitterImageAlt:vL(i)??e.title,jsonLdSchema:e.jsonLdSchema}}var CL={nodeType:`document`,data:{},content:[]};function wL(e){let t=e.canonicalUrl||`${mL}/blog/${e.slug}/`,n=(e.authors??[]).filter(e=>e?.fields).map(e=>({name:e.fields.name,slug:e.fields.slug,avatarUrl:_L(e.fields.profileImage,96),twitter:xL(e.fields.twitter),bio:e.fields.bio}));return{type:`blog`,slug:e.slug,href:`/blog/${e.slug}`,title:e.title,excerpt:e.excerpt,body:e.body,authors:n,publishedAt:e.publishedAt,updatedAt:e.updatedAt,readMinutes:bL(e.body),featured:!!e.featured,featureImageUrl:_L(e.featureImage,1200),tags:(e.tags??[]).filter(e=>e?.fields).map(e=>({name:e.fields.name,slug:e.fields.slug})),seo:SL({canonicalUrl:t,title:e.title,excerpt:e.excerpt,seoTitle:e.seoTitle,metaDescription:e.metaDescription,ogTitle:e.ogTitle,ogDescription:e.ogDescription,ogImage:e.ogImage,twitterTitle:e.twitterTitle,twitterDescription:e.twitterDescription,twitterImage:e.twitterImage,featureImage:e.featureImage,jsonLdSchema:e.jsonLdSchema})}}function TL(e){return{...wL({...e,body:CL}),body:CL,readMinutes:0}}function EL(e){return{...DL({...e,body:CL}),body:CL,readMinutes:0}}function DL(e){let t=`${mL}/guides/${e.slug}/`;return{type:`guide`,slug:e.slug,href:`/guides/${e.slug}`,title:e.title,excerpt:e.subtitle,body:e.body,authors:[],publishedAt:e.createdAt,updatedAt:e.updatedAt,readMinutes:bL(e.body),featured:!1,featureImageUrl:_L(e.coverImage,1200),tags:[],seo:SL({canonicalUrl:t,title:e.title,excerpt:e.subtitle,featureImage:e.coverImage,jsonLdSchema:e.jsonLdSchema})}}
72var OL=new Set(Object.keys({"top-10-best-personal-crm-apps-in-2026-to-up-your-networking-game":`personal-crm-for-networking`,"top-personal-crm-2024":`personal-crm-for-networking`,"notion-vs-dex-2021":`notion-vs-dex`,"personal-crm-in-2020-20-startups-apps-and-failed-attempts":`personal-crm-for-networking`})),kL=3,AL=600*1e3,jL=new Map;function ML(e,t){let n=jL.get(e);if(n&&Date.now()-n.at<AL)return n.value;let r=t();return jL.set(e,{at:Date.now(),value:r}),r.catch(()=>{jL.get(e)?.value===r&&jL.delete(e)}),r}var NL=[`sys.id`,`sys.updatedAt`,`fields.title`,`fields.slug`,`fields.excerpt`,`fields.featureImage`,`fields.featured`,`fields.publishedAt`,`fields.updatedAt`,`fields.authors`,`fields.tags`,`fields.seoTitle`,`fields.metaDescription`,`fields.canonicalUrl`],PL=[`sys.id`,`sys.updatedAt`,`fields.title`,`fields.subtitle`,`fields.slug`,`fields.createdAt`,`fields.updatedAt`,`fields.coverImage`];function FL(e,t){return(t.publishedAt??``).localeCompare(e.publishedAt??``)}function IL(e){return!OL.has(e.slug)}async function LL(){return ML(`blogIndex`,async()=>(await pL.getEntries({content_type:`blogPost`,order:[`-fields.publishedAt`],include:kL})).items.map(e=>wL(e.fields)).filter(IL))}async function RL(){return ML(`guideIndex`,async()=>(await pL.getEntries({content_type:`guide`,order:[`-fields.createdAt`],include:kL})).items.map(e=>DL(e.fields)))}async function zL(){return ML(`blogCards`,async()=>(await pL.getEntries({content_type:`blogPost`,order:[`-fields.publishedAt`],include:kL,select:[...NL]})).items.map(e=>TL(e.fields)).filter(IL))}async function BL(){return ML(`guideCards`,async()=>(await pL.getEntries({content_type:`guide`,order:[`-fields.createdAt`],include:kL,select:[...PL]})).items.map(e=>EL(e.fields)))}async function VL(){let[e,t]=await Promise.all([zL(),BL()]);return[...e,...t].sort(FL)}async function HL(e){return(await LL()).find(t=>t.slug===e)??null}async function UL(e){return(await RL()).find(t=>t.slug===e)??null}async function WL(e){let t=(await zL()).filter(t=>t.tags.some(t=>t.slug===e)),n=t[0]?.tags.find(t=>t.slug===e);return{tag:n?{name:n.name,slug:n.slug}:null,items:t}}async function GL(e){let[t,n]=await Promise.all([zL(),LL()]),r=t.filter(t=>t.authors.some(t=>t.slug===e)),i=n.flatMap(e=>e.authors).find(t=>t.slug===e);return{author:i?{name:i.name,slug:i.slug,bio:i.bio,avatarUrl:i.avatarUrl}:null,items:r}}function KL(e,t,n=3){let r=t.filter(t=>t.type===e.type&&t.slug!==e.slug),i=new Set(e.tags.map(e=>e.slug));return r.map(e=>({item:e,shared:e.tags.filter(e=>i.has(e.slug)).length})).sort((e,t)=>t.shared===e.shared?FL(e.item,t.item):t.shared-e.shared).slice(0,n).map(e=>e.item)}z();var qL=()=>B(()=>import(`./guides.index-B4mMYgtk.js`),__vite__mapDeps([155,4,1,5,2,156,23,24,25,26,27,6,7,8,9,10,11,157,158,12,159,13,16,86,160])),JL=`In-depth guides from Dex on personal CRMs, networking, and staying in touch with the people who matter.`,YL=G(`/guides/`)({loader:()=>BL(),head:({loaderData:e})=>J(`Guides`,{description:JL,canonicalPath:`/guides`,markdownPath:`/guides.md`,jsonLd:vC([xC({path:`/guides`,name:`Dex guides`,description:JL,type:`CollectionPage`}),bC(`${jt}/guides/#list`,(e??[]).map(e=>({name:e.title,path:e.href,description:e.excerpt}))),hC([{name:`Guides`,path:`/guides`}])])}),component:K(qL,`component`)});function XL(e,t){let n=Math.max(1,Math.ceil(e.length/15)),r=(t-1)*15;return{items:e.slice(r,r+15),page:t,pageCount:n}}function ZL(e){if(!/^\d+$/.test(e))return null;let t=Number(e);return t>=1?t:null}z();var QL=()=>B(()=>import(`./blog.index-m6QA65OJ.js`),__vite__mapDeps([161,4,1,5,2,156,23,24,25,26,27,6,7,8,9,10,11,157,158,12,159,13,16,86,160,162,163,164])),$L=`Dex Blog`,eR=`The Dex blog â relationship-building playbooks, personal CRM guides, and notes from the team.`,tR=G(`/blog/`)({loader:async()=>XL(await zL(),1),head:({loaderData:e})=>{let t=At({title:$L,description:eR,canonicalPath:`/blog/`,markdownPath:`/blog.md`,jsonLd:e?kt({canonicalUrl:`${jt}/blog/`,name:$L,description:eR,items:e.items}):void 0});return{meta:[...t.meta,{"script:ld+json":vC([hC([{name:`Blog`,path:`/blog`}])])}],links:t.links}},component:K(QL,`component`)}),nR={label:`Top professionals build their network with Dex`,items:Sn}
72,rR={slug:`mba`,title:`Personal CRM for MBA Students`,subtitle:[`Building your business school network is hard. Across networking events, classes, and a busy schedule, it's overwhelming to keep track of everything.`,`Dex is the best way to manage your network. Keep-in-touch, remember where you left off, and realize the full potential of your network.`],socialProof:{label:`Used by MBA students at top business schools`,items:[{name:`Harvard`,src:bn},{name:`Stanford GSB`,src:yn},{name:`Chicago Booth`,src:xn},{name:`Northwestern Kellogg`,src:vn}]},testimonials:[{name:`Janet Lee`,title:`MBA Candidate at UCLA Anderson School of Management`,text:`Dex is the first personal CRM that provides an elegant experience for managing personal relationships, while also being powerful enough to enrich professional connections.`,photo:pn},{name:`Sid Singh`,title:`MBA Candidate at Harvard Business School`,text:`Common advice for business school students is to stay in touch with old friends and family. Dex provided an easy and effective way to make sure I followed that advice.`,photo:gn},{name:`Troy Beebe`,title:`MBA Candidate at Kellogg`,text:`Dex is the first comprehensive personal CRM solution I've used that beautifully combines robust functionality with ease of use.`,photo:_n}]},iR=[{slug:`founders`,title:`Personal CRM for Founders`,subtitle:[`Building a company means managing countless relationships with investors, partners, customers, and mentors. Your network is one of your most valuable assets.`,`Dex consolidates your entire network from LinkedIn, WhatsApp, email, and calendar into one searchable platform. Stay connected, nurture relationships, and leverage your network's full potential.`],socialProof:nR},{slug:`investors`,title:`Personal CRM for Investors`,subtitle:[`Across your partners, LPs, and portfolio founders, it can be overwhelming to track who you know. From sharing dealflow to managing future LPs, networking well is crucial for success.`,`Dex is the best way to manage your network. Keep-in-touch, remember where you left off, and make the connections that matter.`],socialProof:nR,testimonials:[{name:`Ari Newman`,title:`Co-Founder & Managing Director, Massive Capital Partners`,text:`Dex is the personal/professional CRM solution I've wanted to exist for years, but hasn't until now. I was a Contactually user in the past and have tried spreadsheets, Airtable, Pipedrive and so on - and nothing is close to Dex's focus when it comes to personal CRM. The Chrome plugin is a game-changer for quick access without having to context-switch. Relationships are everything and business moves fast, so Dex is a huge help.`,photo:mn}]},{slug:`jobseekers`,title:`Personal CRM for Job Seekers`,subtitle:[`Job searching is about who you know, not just what you know. Your network holds untapped opportunities, referrals, and insider information that can be the difference in landing your dream role.`,`Dex brings together your entire professional network and lets you search it using AI to discover overlooked connections at target companies. Track interactions, set follow-up reminders, and never miss an opportunity again.`],socialProof:nR},{slug:`creators`,title:`Personal CRM for Creators`,subtitle:[`Creating content is hard enough. You know managing your network of collaborators, peers, and partners is important, but it can be overwhelming to keep track of everything.`,`Dex is the best way to manage your network. Keep-in-touch, remember where you left off, and realize the full potential of your network.`],socialProof:nR,testimonials:[{name:`Kevin Smokler`,title:`Author and Documentary Filmmaker`,text:`I am blessed to meet so many amazing people through making films and writing books and cursed that I forget to keep them close. Dex solves this problem in a way that is elegant, intuitive and best of all fun.`,photo:hn}]}];function aR(e){return iR.find(t=>t.slug===e)}z();var oR=G(`/use-cases/$slug`)({head:({params:e})=>{let t=aR(e.slug);if(!t)return J(`Use case not found`,{noindex:!0});let n=`/use-cases/${t.slug}`;return J(t.title,{description:t.subtitle[0],canonicalPath:n,markdownPath:`${n}
72.md`,jsonLd:vC([{...xC({path:n,name:t.title,description:t.subtitle[0]}),about:{"@id":iC}},hC([{name:t.title,path:n}])])})},component:K(()=>B(()=>import(`./use-cases._slug-ByACh3wt.js`),__vite__mapDeps([165,23,1,2,24,25,4,26,27,5,71,6,7,8,9,10,11,12,61,62,13,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,16,63,64,65,66,67,68,69,70,14,19])),`component`)});z();var sR=G(`/unsubscribe/$type`)({head:()=>J(`You are unsubscribed`,{noindex:!0}),component:K(()=>B(()=>import(`./unsubscribe._type-r1hFg9g6.js`),__vite__mapDeps([166,23,1,2,24,25,4,26,27,5,6,7,8,9,10,11])),`component`)});function cR(e){return/[",\n\r]/.test(e)?`"${e.replaceAll(`"`,`""`)}"`:e}var lR=[{header:`First name`,value:e=>e.first_name??``},{header:`Last name`,value:e=>e.last_name??``},{header:`Full name`,value:e=>e.full_name??``},{header:`Job title`,value:e=>e.job_title??``},{header:`Company`,value:e=>e.company??``},{header:`Location`,value:e=>e.legacy_location??``},{header:`Website`,value:e=>e.website??``},{header:`Emails`,value:e=>(e.contact_emails??[]).map(e=>e.email).join(`; `)},{header:`Phones`,value:e=>(e.contact_phone_numbers??[]).map(e=>e.phone_number).join(`; `)},{header:`LinkedIn`,value:e=>e.linkedin??``},{header:`Twitter`,value:e=>e.twitter??``},{header:`Facebook`,value:e=>e.facebook??``},{header:`Instagram`,value:e=>e.instagram??``},{header:`Telegram`,value:e=>e.telegram??``},{header:`TikTok`,value:e=>e.tiktok??``},{header:`YouTube`,value:e=>e.youtube??``},{header:`Notes`,value:e=>(e.notes??[]).map(e=>e.note).join(` 73 74`)}];function uR(e){let t=lR.filter(t=>e.some(e=>t.value(e).trim()!==``));return[t.map(e=>cR(e.header)).join(`,`),...e.map(e=>t.map(t=>cR(t.value(e))).join(`,`))].join(`\r 75`)}function dR(e,t){let n=new Blob([``,uR(e)],{type:`text/csv;charset=utf-8`}),r=URL.createObjectURL(n),i=document.createElement(`a`);i.href=r,i.download=t.endsWith(`.csv`)?t:`${t}.csv`,i.click(),URL.revokeObjectURL(r)}function fR(e){return e.replace(/\\/g,`\\\\`).replace(/\n/g,`\\n`).replace(/[,;]/g,e=>`\\${e}`)}function pR(e,t){let n=t?.trim();return n?`${e}:${fR(n)}`:null}function mR(e){return[`BEGIN:VCARD`,`VERSION:3.0`,pR(`FN`,e.full_name??`${e.first_name??``} ${e.last_name??``}`),`N:${fR(e.last_name??``)};${fR(e.first_name??``)};;;`,pR(`TITLE`,e.job_title),pR(`ORG`,e.company),pR(`PHOTO;VALUE=URI`,e.image_url),pR(`ADR;TYPE=HOME`,e.legacy_location?`;;${e.legacy_location};;;;`:null),...(e.contact_emails??[]).map(e=>pR(`EMAIL;TYPE=INTERNET`,e.email)),...(e.contact_phone_numbers??[]).map(e=>pR(`TEL;TYPE=CELL`,e.phone_number)),pR(`URL`,e.website),pR(`URL`,e.linkedin),pR(`URL`,e.twitter),pR(`URL`,e.facebook),pR(`URL`,e.instagram),`END:VCARD`].filter(e=>!!e).join(`\r 76`)}function hR(e,t){let n=e.map(mR).join(`\r 77`),r=new Blob([n],{type:`text/vcard;charset=utf-8`}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=t.endsWith(`.vcf`)?t:`${t}.vcf`,a.click(),URL.revokeObjectURL(i)}function gR(e){let t=(0,q.c)(13),{children:n,wide:r}=e,i=r!==void 0&&r?`max-w-4xl`:`max-w-xl`,a;t[0]===i?a=t[1]:(a=$e(`mx-auto flex w-full items-center px-4 py-5`,i),t[0]=i,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,U.jsx)(ae,{to:`/`,"aria-label":`Dex home`,children:(0,U.jsx)(`img`,{src:`/email/dex-app-icon.png`,alt:``,className:`size-8`})}),t[2]=o):o=t[2];let s;t[3]===a?s=t[4]:(s=(0,U.jsx)(`header`,{className:a,children:o}),t[3]=a,t[4]=s);let c;t[5]===i?c=t[6]:(c=$e(`mx-auto flex w-full flex-col gap-4 px-4 pb-16`,i),t[5]=i,t[6]=c);let l;t[7]!==n||t[8]!==c?(l=(0,U.jsx)(`main`,{className:c,children:n}),t[7]=n,t[8]=c,t[9]=l):l=t[9];let u;return t[10]!==s||t[11]!==l?(u=(0,U.jsxs)(`div`,{className:`min-h-screen bg-neutral-50`,children:[s,l]}),t[10]=s,t[11]=l,t[12]=u):u=t[12],u}function _R(e){let t=(0,q.c)(47),{group:n,contacts:r,onLoadMore:i,loadingMore:a,loadError:o}=e,s=a===void 0?!1:a,c=o===void 0?!1:o,l=Math.max(0,n.contact_count-r.length),u;t[0]===n.emoji?u=t[1]:(u=(0,U.jsx)(`div`,{"aria-hidden":!0,className:`flex size-12 shrink-0 items-center justify-center rounded-xl border border-border bg-background text-2xl`,children:n.emoji}),t[0]=n.emoji,t[1]=u);let d;t[2]===n.name?d=t[3]:(d=(0,U.jsx)(`h1`,{className:`truncate font-display text-2xl font-semibold text-foreground`,children:n.name}),t[2]=n.name,t[3]=d);let f;
77t[4]===n.contact_count?f=t[5]:(f=n.contact_count.toLocaleString(),t[4]=n.contact_count,t[5]=f);let p=n.contact_count===1?``:`s`,m=n.description?` · ${n.description}`:``,h;t[6]!==f||t[7]!==p||t[8]!==m?(h=(0,U.jsxs)(`p`,{className:`truncate text-sm text-muted-foreground`,children:[f,` contact`,p,m]}),t[6]=f,t[7]=p,t[8]=m,t[9]=h):h=t[9];let g;t[10]!==d||t[11]!==h?(g=(0,U.jsxs)(`div`,{className:`min-w-0`,children:[d,h]}),t[10]=d,t[11]=h,t[12]=g):g=t[12];let _;t[13]!==u||t[14]!==g?(_=(0,U.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[u,g]}),t[13]=u,t[14]=g,t[15]=_):_=t[15];let v;t[16]!==r||t[17]!==n.name?(v=()=>dR(r,n.name),t[16]=r,t[17]=n.name,t[18]=v):v=t[18];let y;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,U.jsx)(rt,{}),t[19]=y):y=t[19];let b;t[20]===v?b=t[21]:(b=(0,U.jsxs)(Qe,{variant:`outline`,size:`sm`,onClick:v,children:[y,`Download .csv`]}),t[20]=v,t[21]=b);let x;t[22]!==r||t[23]!==n.name?(x=()=>hR(r,n.name),t[22]=r,t[23]=n.name,t[24]=x):x=t[24];let S;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,U.jsx)(rt,{}),t[25]=S):S=t[25];let C;t[26]===x?C=t[27]:(C=(0,U.jsxs)(Qe,{variant:`outline`,size:`sm`,onClick:x,children:[S,`Download .vcf`]}),t[26]=x,t[27]=C);let w;t[28]!==b||t[29]!==C?(w=(0,U.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[b,C]}),t[28]=b,t[29]=C,t[30]=w):w=t[30];let T;t[31]!==_||t[32]!==w?(T=(0,U.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-4`,children:[_,w]}),t[31]=_,t[32]=w,t[33]=T):T=t[33];let E;t[34]===r?E=t[35]:(E=r.map(vR),t[34]=r,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,U.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:E}),t[36]=E,t[37]=D);let O;t[38]!==c||t[39]!==s||t[40]!==i||t[41]!==l?(O=i?(0,U.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,U.jsx)(Qe,{variant:`outline`,onClick:i,disabled:s,children:s?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ze,{className:`animate-spin`}),`Loadingâ¦`]}):`Show ${l>0?l.toLocaleString():``} more`}),c?(0,U.jsx)(`p`,{className:`text-xs text-destructive`,children:`Couldnât load more contacts. Try again.`}):null]}):null,t[38]=c,t[39]=s,t[40]=i,t[41]=l,t[42]=O):O=t[42];let k;return t[43]!==T||t[44]!==D||t[45]!==O?(k=(0,U.jsxs)(U.Fragment,{children:[T,D,O]}),t[43]=T,t[44]=D,t[45]=O,t[46]=k):k=t[46],k}function vR(e){return(0,U.jsx)(SR,{card:e},e.id)}var yR=[{key:`linkedin`,label:`LinkedIn`,Icon:zn},{key:`twitter`,label:`Twitter`,Icon:Bn},{key:`facebook`,label:`Facebook`,Icon:Vn},{key:`instagram`,label:`Instagram`,Icon:Ln},{key:`telegram`,label:`Telegram`,Icon:Pn},{key:`tiktok`,label:`TikTok`,Icon:Rn},{key:`youtube`,label:`YouTube`,Icon:In}];function bR(e,t){if(dn(e))return e;try{return fn(e,t)}catch{return null}}function xR(e){let t=0;for(let n=0;n<e.length;n+=1)t=Math.imul(t^e.charCodeAt(n),16777619);return t=Math.imul(t^t>>>16,73244475),Math.abs(t)%360}function SR(e){let t=(0,q.c)(45),{card:n,prominent:r}=e,i=r===void 0?!1:r,a=n.full_name?.trim()||`Unnamed contact`,o;t[0]!==n.company||t[1]!==n.job_title?(o=[n.job_title,n.company].filter(Boolean),t[0]=n.company,t[1]=n.job_title,t[2]=o):o=t[2];let s=o.join(` · `),c;t[3]===n.id?c=t[4]:(c=xR(n.id),t[3]=n.id,t[4]=c);let l=c,u;t[5]===n?u=t[6]:(u=e=>{let{key:t,label:r,Icon:i}=e,a=n[t]?.trim();if(!a)return null;let o=bR(a,t);return o?{label:r,href:o,Icon:i}:null},t[5]=n,t[6]=u);let d=yR.map(u).filter(AR),f=n.website&&dn(n.website)?n.website:null,p;t[7]===n.contact_emails?p=t[8]:(p=n.contact_emails??[],t[7]=n.contact_emails,t[8]=p);let m=p,h;t[9]===n.contact_phone_numbers?h=t[10]:(h=n.contact_phone_numbers??[],t[9]=n.contact_phone_numbers,t[10]=h);let g=h,_;t[11]===n.notes?_=t[12]:(_=n.notes??[],t[11]=n.notes,t[12]=_);let v=_,[y,b]=(0,H.useState)(null),x=n.image_url&&n.image_url!==y?(0,U.jsx)(`img`,{src:n.image_url,alt:``,className:$e(`shrink-0 rounded-full object-cover`,i?`size-20`:`size-11`),onError:()=>b(n.image_url??null)}):(0,U.jsx)(`div`,{"aria-hidden":!0,className:$e(`flex shrink-0 items-center justify-center rounded-full font-medium`,i?`size-20 text-2xl`:`size-11 text-sm`),style:{backgroundColor:`hsl(${l} 65% 92%)`,color:`hsl(${l} 45% 35%)`},children:Mn(a)}),S=i?`text-2xl`:`text-heading-md`,C;t[13]===S?C=t[14]:(C=$e(`truncate font-display font-semibold text-foreground`,S),t[13]=S,t[14]=C);let w;t[15]!==a||t[16]!==C?(w=(0,U.jsx)(`h2`,{className:C,children:a}),t[15]=a,t[16]=C,t[17]=w):w=t[17];let T;t[18]===s?T=t[19]:(T=s?(0,U.jsx)(`p`,{className:`truncate text-sm text-muted-foreground`,children:s}):null,t[18]=s,t[19]=T);let E;t[20]!==w||t[21]!==T?(E=(0,U.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[w,T]}),t[20]=w,t[21]=T,t[22]=E):E=t[22];let D;t[23]!==n||t[24]!==i?(D=i?(0,U.jsxs)(wn,{children:[(0,U.jsx)(Cn,{render:(0,U.jsxs)(Qe,{variant:`outline`,size:`sm`,className:`w-8 shrink-0 px-0 sm:w-auto
77sm:px-3`,"aria-label":`Download .vcf`,onClick:()=>hR([n],n.full_name??`contact`),children:[(0,U.jsx)(rt,{}),(0,U.jsx)(`span`,{className:`hidden sm:inline`,children:`Download .vcf`})]})}),(0,U.jsx)(Tn,{children:`Download .vcf`})]}):null,t[23]=n,t[24]=i,t[25]=D):D=t[25];let O;t[26]!==E||t[27]!==D||t[28]!==x?(O=(0,U.jsxs)(`div`,{className:`flex items-center gap-3.5`,children:[x,E,D]}),t[26]=E,t[27]=D,t[28]=x,t[29]=O):O=t[29];let k;t[30]!==n.legacy_location||t[31]!==m||t[32]!==g||t[33]!==i?(k=m.length>0||g.length>0||n.legacy_location?(0,U.jsxs)(`div`,{className:$e(`mt-4 flex flex-col border-t border-border pt-3`,i?`gap-2`:`gap-1.5`),children:[n.legacy_location?(0,U.jsx)(jR,{icon:(0,U.jsx)(tt,{className:`size-3.5 shrink-0`}),value:n.legacy_location}):null,m.map(kR),g.map(OR)]}):null,t[30]=n.legacy_location,t[31]=m,t[32]=g,t[33]=i,t[34]=k):k=t[34];let A=d.length>0||f?(0,U.jsxs)(`div`,{className:`mt-3.5 flex flex-wrap items-center gap-1.5`,children:[f?(0,U.jsx)(MR,{label:`Website`,href:f,children:(0,U.jsx)(at,{className:`size-3.5`})}):null,d.map(DR)]}):null,j;t[35]===n.research?j=t[36]:(j=n.research?(0,U.jsxs)(`div`,{className:`mt-4 border-t border-border pt-3`,children:[(0,U.jsx)(`p`,{className:`text-caption-sm text-muted-foreground uppercase`,children:`From the web`}),n.research.one_line_summary?(0,U.jsx)(`p`,{className:`mt-2 text-sm text-foreground`,children:n.research.one_line_summary}):null,n.research.sections.map(TR),n.research.sources.length>0?(0,U.jsxs)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:[`Sources:`,` `,n.research.sources.map(wR)]}):null]}):null,t[35]=n.research,t[36]=j);let M;t[37]===v?M=t[38]:(M=v.length>0?(0,U.jsxs)(`div`,{className:`mt-4 border-t border-border pt-3`,children:[(0,U.jsx)(`p`,{className:`text-caption-sm text-muted-foreground uppercase`,children:`Notes`}),(0,U.jsx)(`ul`,{className:`mt-2 flex flex-col gap-2`,children:v.map(CR)})]}):null,t[37]=v,t[38]=M);let ee;return t[39]!==O||t[40]!==k||t[41]!==A||t[42]!==j||t[43]!==M?(ee=(0,U.jsxs)(`div`,{className:`rounded-xl border border-border bg-background p-5 shadow-xs`,children:[O,k,A,j,M]}),t[39]=O,t[40]=k,t[41]=A,t[42]=j,t[43]=M,t[44]=ee):ee=t[44],ee}function CR(e,t){return(0,U.jsxs)(`li`,{className:`rounded-lg bg-muted/50 px-3 py-2 text-sm text-foreground`,children:[(0,U.jsx)(`p`,{className:`whitespace-pre-wrap`,children:Hn(e.note)}),(0,U.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:new Date(e.event_time).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`})})]},t)}function wR(e,t){return(0,U.jsxs)(`span`,{children:[t>0?` · `:``,(0,U.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`underline transition-colors hover:text-primary`,children:e.title||e.url})]},e.url)}function TR(e){return(0,U.jsxs)(`div`,{className:`mt-3`,children:[(0,U.jsx)(`p`,{className:`text-caption-sm text-muted-foreground uppercase`,children:e.title}),(0,U.jsx)(`ul`,{className:`mt-1 flex flex-col gap-1`,children:e.bullets.map(ER)})]},e.key)}function ER(e,t){return(0,U.jsxs)(`li`,{className:`flex gap-2 text-sm text-foreground-secondary`,children:[(0,U.jsx)(`span`,{className:`select-none text-muted-foreground`,children:`â¢`}),(0,U.jsx)(`span`,{className:`min-w-0`,children:e})]},t)}function DR(e){let{label:t,href:n,Icon:r}=e;return(0,U.jsx)(MR,{label:t,href:n,children:(0,U.jsx)(r,{className:`size-3.5`})},t)}function OR(e,t){return(0,U.jsx)(jR,{href:`tel:${e.phone_number}`,icon:(0,U.jsx)(st,{className:`size-3.5 shrink-0`}),value:e.phone_number,label:e.label},`${e.phone_number}-${t}`)}function kR(e,t){return(0,U.jsx)(jR,{href:`mailto:${encodeURIComponent(e.email)}`,icon:(0,U.jsx)(ot,{className:`size-3.5 shrink-0`}),value:e.email,label:e.label},`${e.email}-${t}`)}function AR(e){return!!e}function jR(e){let t=(0,q.c)(18),{href:n,icon:r,value:i,label:a}=e,o;t[0]===r?o=t[1]:(o=(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:r}),t[0]=r,t[1]=o);let s=n&&`group-hover:underline`,c;t[2]===s?c=t[3]:(c=$e(`truncate`,s),t[2]=s,t[3]=c);let l;t[4]!==c||t[5]!==i?(l=(0,U.jsx)(`span`,{className:c,children:i}),t[4]=c,t[5]=i,t[6]=l):l=t[6];let u;t[7]===a?u=t[8]:(u=a?(0,U.jsx)(Nn,{variant:`outline`,className:`-my-px h-[18px] box-border rounded-md px-1.5 leading-none text-muted-foreground`,children:a}):null,t[7]=a,t[8]=u);let d;t[9]!==o||t[10]!==l||t[11]!==u?(d=(0,U.jsxs)(U.Fragment,{children:[o,l,u]}),t[9]=o,t[10]=l,t[11]=u,t[12]=d):d=t[12];let f=d;if(!n){let e;return t[13]===f?e=t[14]:(e=(0,U.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-foreground`,children:f}),t[13]=f,t[14]=e),e}let p;return t[15]!==f||t[16]!==n?(p=(0,U.jsx)(`a`,{href:n,className:`group flex items-center gap-2 text-sm text-foreground`,children:f}),t[15]=f,t[16]=n,t[17]=p):p=t[17],p}function MR(e){let t=(0,q.c)(4),{label:n,href:r,children:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,U.jsx)(`a`,{href:r,target:`_blank`,rel:`noopener noreferrer`,"aria-label":n,title:n,className:`inline-flex size-8 items-center justify-center rounded-full bg-primary/10 text-primary transition-colors hover:bg-primary/20`,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function NR(e){let t=(0,q.c)(7),{isGroup:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsx)(`p`,{className:`font-display text-base font-semibold text-foreground`,children:`Keep your network warm with Dex`}),t[0]=r):r=t[0];let i=n?`these contacts`:`this contact`,a;t[1]===i?a=t[2]:(a=(0,U.jsxs)(`p`,{className:`mx-auto mt-1 max-w-sm text-sm text-muted-foreground`,children:[`Save `,i,`, set reminders, and never lose touch.`]}),t[1]=i,t[2]=a);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,U.jsx)(ae,{to:`/app/auth/sign-up`,className:$e(Xe({size:`sm`}),`mt-4`),children:`Get started free`}),t[3]=o):o=t[3];let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,U.jsxs)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:[`Dex is a personal CRM for keeping in touch.`,` `,(0,U.jsx)(ae,{to:`/`,className:`underline hover:text-foreground`,children:`Learn more`})]}),t[4]=s):s=t[4];let c;return t[5]===a?c=t[6]:(c=(0,U.jsxs)(`div`,{className:`mt-4 rounded-xl bg-background px-6 py-7 text-center`,children:[r,a,o,s]}),t[5]=a,t[6]=c),c}z();var PR=G(`/shared/$token`)({loader:async({params:e})=>{let{getSDK:t}=await B(async()=>{let{getSDK:e}=await import(`./useSDK-C4WR6ayj.js`).then(e=>e.i);return{getSDK:e}},__vite__mapDeps([102,1,103,104,54,105,106,107,108,109]));try{let n=(await t().v2.shareLinks.resolveShared(e.token)).data?.shared;if(!n)throw Error(`empty payload`);return n}catch{throw re()}},head:({loaderData:e})=>
77{if(!e)return J(`Shared with you`,{noindex:!0});let t=(e.type===`group`?e.group?.name:e.contact?.full_name)?.trim()||`Shared with you`,n=J(t,{noindex:!0,description:`${e.shared_by??`Someone`} shared ${e.type===`group`?`a group of contacts`:`a contact`} with you via Dex.`});n.meta.push({property:`og:title`,content:`${t} | Dex`});let r=e.type===`contact`?e.contact?.image_url:null;return r&&n.meta.push({property:`og:image`,content:r}),n},component:K(()=>B(()=>import(`./shared._token-C_9dx0NQ.js`),__vite__mapDeps([167,1,2,4,5,109])),`component`),pendingComponent:FR,notFoundComponent:K(()=>B(()=>import(`./shared._token-D2OaNSqI.js`),__vite__mapDeps([168,23,1,2,24,25,4,26,27,5,6,7,8,9,10,11,169])),`notFoundComponent`)});function FR(){let e=(0,q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,U.jsx)(gR,{children:(0,U.jsxs)(`div`,{className:`flex flex-col items-center gap-3 rounded-xl border border-border bg-background px-6 py-16 text-center`,children:[(0,U.jsx)(Ze,{className:`size-5 animate-spin text-muted-foreground`}),(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Opening shared linkâ¦`})]})}),e[0]=t):t=e[0],t}z();var IR=G(`/guides/$slug`)({loader:async({params:e})=>{let[t,n]=await Promise.all([UL(e.slug),RL()]);if(!t)throw re();return{item:t,related:KL(t,n)}},head:({loaderData:e})=>{if(!e?.item)return{};let t=e.item,n=Ot(t);return{meta:[...n.meta,{"script:ld+json":_C({section:`guides`,title:t.title,path:t.href})}],links:n.links,scripts:n.scripts}},component:K(()=>B(()=>import(`./guides._slug-DVgnvnjk.js`),__vite__mapDeps([170,1,2,4,5,171,23,24,25,26,27,9,12,16,67,160,158,11])),`component`)});z();var LR=G(`/blog/$slug`)({loader:async({params:e})=>{let[t,n]=await Promise.all([HL(e.slug),LL()]);if(!t)throw re();return{item:t,related:KL(t,n)}},head:({loaderData:e})=>{if(!e?.item)return{};let t=e.item,n=Ot(t);return{meta:[...n.meta,{"script:ld+json":_C({section:`blog`,title:t.title,path:t.href})}],links:n.links,scripts:n.scripts}},component:K(()=>B(()=>import(`./blog._slug-QXpCz0m7.js`),__vite__mapDeps([172,1,2,4,5,171,23,24,25,26,27,9,12,16,67,160,158,11])),`component`)});z();var RR=G(`/auth/open-app`)({head:()=>J(`Open in Dex`,{noindex:!0}),component:K(()=>B(()=>import(`./auth.open-app-Crwr78u8.js`),__vite__mapDeps([173,1,2,4,5,6,7,8,9,10,11,117,12,13,118,174,175])),`component`)});z();var zR=G(`/auth/desktop-login`)({head:()=>J(`Signing in to Dex`,{noindex:!0}),validateSearch:Zt({id_token:Kt().optional(),provider:qt([`google`,`apple`]).catch(`google`),credential:Kt().optional()}),component:K(()=>B(()=>import(`./auth.desktop-login-D-FyxZ6u.js`),__vite__mapDeps([176,1,2,27,4,5,100,101,102,103,104,54,105,106,107,108,109,110,111,112,30,24,9,11,31,113,114,115,28,116,131,132,133])),`component`)});z();var BR=G(`/resources/`)({loader:()=>VL(),head:()=>{let e=At({title:`Resources â Dex`,description:`Product releases, relationship-building playbooks, and guides from the team building Dex.`,canonicalPath:`/resources/`});return{meta:e.meta,links:e.links}},component:K(()=>B(()=>import(`./resources.index-BHy7es4C.js`),__vite__mapDeps([177,4,1,5,2,156,23,24,25,26,27,6,7,8,9,10,11,157,158,12,159,13,16,86,160])),`component`)}),VR=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAAAAAAAAPlDu38AAAAHdElNRQfqCBQSCTfi3XAVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI2LTA4LTIwVDE4OjA5OjU1KzAwOjAwgjGJIgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNi0wOC0yMFQxODowOTo1NSswMDowMPNsMZ4AAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjYtMDgtMjBUMTg6MDk6NTUrMDA6MDCkeRBBAAAKM0lEQVR42u2da3BV1RWAv33uIwlBAgaiIRASAiogRORhRaUgqB11tDptBztTrU6nWJ36gnZqazt0rPWNtAVGp3Y6nU47dfhRnLaolAq2oCijgoIMIySggRieSYA87uOs/jiJ5ObckHv3PvceCOeb2T/uyVlr773WWWvvs/e+NxAQEBAQEBAQEBAQEBAQEBAQcK6g8lnZmk+lIFrIXBFuBaYDI4EyIOxT/xPAQWA/8D6wOt7JhhvHq858NSAvDlgvEk5+xj2iWAKU56tzmhwS4YlIJSvmKpXIdWU5d8Br9VIVCbFaoDbXdXmK4kMrzm3zxqp9ua0mh6xrkCvF5lVgRC7ryRnCQdvilhtGq3dzVUXOHPBavVSFQ7zH2Wr8Uxyx4Ip5lWpPLpTnxAHr66VwfzM7DzRR1d4BsU5I2rm1kteELIgWQFEhVJSzJxJm4rcmqZjX9XjugLtekvuHRXhCJSnJj6nyg4RpPhbjsT8tVCu81OuZA+askAuTSf48tYj5eZ3b5hEBtraxtlO4892HVJMXOj2x1azlMsZK8O+wYvzkIl9tlHM+boeEUG9bXPf2A+bjgrED5j8lJR2FfAhUhxVMGuAO2OE4AKC+sIOp636iWkz0Gb+BdhSyEqju/myL3ybKG9XthSwHvmOixCgCZi+T2Ta81f05rODiQr/tklt2dXwZAQ6KazY+qDbq6jOKABsedF07dyKgmwcBbQdoR0BX7j8ChLqvhRXUFPhtj9yyp7NXBEAiblH67gOqVUefdgTECphGD+ODM00b6BGQpnvhKEylRyrOBm0HJGFKuvA5y154PUFsasm3A5TCnWwEkgM8AtKFgALtxKvvAIils/W5GAG2ENeV1XaAKJp7Pw3CwHdAuodOWWi
77/jOk7APamHQMGegpKh029rqi+A0LUpduwG+gRkBaLOl1RbQdUlNHQeIAYEO153TQChg6CC4bAeYWgFJzogMYWaG7z2GjeESsvZ7+usNFSxDXL5FOBcd2fLaBUw6WRENxwKcy5GKpHpG9UYwu8tQte3w6t7WYWu3wMfHM6hEMQS8BTa+B4R2ayRxKuKP9040PqIt22mC3GCXWoUw4QIJmlignl8KProXTw6e8rL4EFM+HmWlixHt7WWAiOhuCuWXDTlFQnjxkB2z7PtMsutNMPmDpAuSvPJgVdPQ4WXec8iZkyuAB+/DVY/ias/SRzuTGlsPh6qCp1/03EIHUqfx1Q3/uRyHQQnlxxeuMLfedHBdw/F3Yfht0H+2si3DwF7rnKiYC+6tKdPCjRnwGBoQMkTeWZPElFEXhkvtv4Ta3w1y2wZS8ca3P+XjMCbroU5k9IdYil4O4r4dHVfdcztMipZ0ZVv/3QjwA/HYCiTicCbpwMZeelXtvVBD99FU70OBQYS8LOL5yy/QA8PC9VpnYUlAxynNWbGWNg0XwYNqj/9tgZtrsPjFKQZSIctkkZCrtXQ/sr1cNT9bS0wy//Ba0dfcus2QHv9OqqUjDhwtT7AO6dDY/f4ja+AIeOu/uRabttcQ/CIT8dsOFh1Qw097xmZ1Ce/w+s/C8cPuF06Nl10HSif7l1u9xtGFaces+Ecrit1j1+tLTDL/4Jr+9068ikzX1EybEuG2jjxankOuDynp3pj/YErNoKqz+G0UOh7khmFe1Ps+JiWal1bv8CdjTCpB5HgD/4HH69Fo6chPFlbh0Gg7DR0w+GEQC4pmGZhrIt0JlwZjKZ3l8QcVd/6ETqPfEk/OoNaItBwoaXNsGiv5+6T9IMttm02WsHmEeATV3PeM/lWlBtRepnAXZ84a6zoQW+/4pzw75jbpne+BkBxg4Qi3qVhxXQ4cXwjctSr21tgKbj6e/fdzT3bRLMpqDgQQqyDOfBmVB1PrxwOwzpceQl2ZVe/EQs874bR4BS1IlHEVAchemVzkuWpaC0GKaOglnVzucvOw4s2+CkHz+RxBmQgk4WsreonSS9TkjocOdM+Pa009/T0Ay/eQs27zWtzZhkayufmSoxTkHvL1Rx0F8P70lR5PR/P9kJf/vAyf2+IzTsWGL+fQHzaSgQDnMoFIJQyJmX6xbVz+5EcQEsvhb+chdcUeVdHUplLt/dz3CEw57YzgslkRCjvTjovmGPs3zQbaTiKFQOhRG99grKBsMzt8DTb8L63dnVEUqTKCMRKIhmpweb0V7YztwBIkpe5HwvGrOjySm9qSmFu2fCFZWnrlkKFs+B+qNOMe5GtgKK81kiFkuU0auPcQqav5JLgDDS1YsclD2H4bE1sGpbat2RENw3K0t9fVk/2wLhOaVob0V65gAsJhvryJCXN7vXjS6rcNaT/EAw77uxA0S4RLrWWHJdkja8kWZFtHZkdnrS9EGrWBaXmNrPeAywhRpPplIZsjfNymn5EDSSeC/05MdpSfXAC9tV6aTQ8hK4YxrUDM9OLp7m2EVBOP9DgAAoxpgaz4NZEBXZTEErSuChrzpLDAqYOw7uXZX5F7lHlrivtRieE9JFCRWmOrzYDyjLJm9OHw2Xjzq1YzW2FG6fkrn87Bp3Ew60+DMGIJRhiJED5qyQwcrmvGxkNu91G+G7M6A6gzeJq8fCzMrUayKwJcNDVZ4jDLnqacmq/70xjYDLbJVd3mw8Dht6vb0WRuC5W50pZV9y8y6Cn13nbsA7++Bom9kYQBbt71lsBdFBTDExoNm3JJNMsjSWIH7/DsyodE65dTNsEDz/dXj/c3hvn7N/q5QzZlw9Fsan+c2VRLJrT8CLGZCmjrhiEqC9M2HkAKW4WKfdB1rhyXXw+I2p6/wKZ4yYnsEqiwDPrndvOWYil+6arg/DmL0NG6UgW6jWncNtqoOfr3E25rMlnoSl6+GNnXp1u9CdhwrYwljfHKBsKk3kN9XBwldgSxbbGtv2w32r4B/b9ersSPNtrni2R7o9tIHp0cRy0/RbfxQWvwoTL3Ry/bRRMHwwDCtyHrLWDmhsha37YWMdfGK4Dblmp3O8pfug7tE2+KjRYBhRZj9CaHY4F0q9OhHxSaNTck1zG/xxs3f6BIabyGunoDlPShUQNUifA6IA0WufE+0lCe0IsKNMMZ7+DRDsMJMBrZ+31I4AO8QEv5++M6UkFRN17ag/CzIcfAYUom8Lky9qFwQpqAuLiK6o/ixIyMeR0LMCZetnEpMI+CiIAAex2KYrq+05SfCm3x0/UwjF9G1hdJxq1lKpF6jy2wB+YkHdpkdUjYG8PhLiJd/ngD4XG140dKA+hxQvIDScAXbwpSjFZ7FilvnmgN0PqE6xWaDQ/8WosxUF8bhwR9fpcBM95nzlGfkBFr8V//4XTF5Rzv+e+eHmxcoo/XTp8oZZS2VB0uZlhGJfrZNrFCdFcfd7i9Qqb9R5yFW/k5HxGH/A5gavdZ8BiILXokP43v8WKs8WznNipCuXyjixuVdsrgcuQDFMRP913Q+UIo5wFDioYG0yycotjyrj74QFBAQEBAQEBAQEBAQEBAQEBJy7/B+r+P2wVOdp9gAAAABJRU5ErkJggg==`,HR=`/assets/granola-DemxJ_zc.svg`,UR=`/assets/superhuman-vLbhJs0B.png`,WR=`data:image/svg+xml,%3csvg%20width='131'%20height='132'%20viewBox='0%200%20131%20132'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M64.2489%200.00144319C68.7545%20-0.0226189%2072.2382%200.25636%2076.747%200.677224C76.563%209.01991%2076.8004%2017.5439%2076.7118%2025.9028C76.6644%2030.3839%2076.7992%2034.7174%2076.4941%2039.2153C81.7804%2033.5121%2087.7647%2028.1507%2093.161%2022.5171C96.6439%2018.8808%20100.463%2015.4947%20103.767%2011.687C106.421%2014.3088%20109.743%2016.5055%20112.441%2019.3374C114.944%2021.9639%20116.994%2024.8305%20119.576%2027.2973C113.195%2033.2674%20107.025%2039.9319%20100.74%2046.0405C98.2901%2048.4218%2094.4281%2052.6986%2091.786%2054.5718C95.7905%2054.2517%20101.512%2054.419%20105.644%2054.4214L130.544%2054.3901C130.956%2061.8648%20130.956%2069.3569%20130.542%2076.8315C117.93%2076.5023%20104.48%2077.2159%2091.9735%2076.6596C93.7504%2078.024%2096.7687%2081.228%2098.4579%2082.9214L111.713%2096.2036C113.822%2098.3156%20117.36%20102.047%20119.606%20103.789L103.638%20119.791C102.275%20117.877%2099.0193%20114.796%2097.2089%20112.987L84.0829%2099.9116C81.928%2097.7716%2078.3658%2094.4481%2076.6337%2092.2446C76.8837%20101.049%2076.594%20110.063%2076.7021%20118.883C76.7478%20122.622%2076.5743%20126.978%2076.8319%20130.672C73.8286%20130.78%2071.1811%20131.095%2068.0487%20131.123C63.0367%20131.144%2059.4029%20131.076%2054.4316%20130.689C54.4937%20122.085%2054.5105%20113.481%2054.4823%20104.876C54.4817%20100.719%2054.3837%2096.0782%2054.5966%2091.9546C45.9272%20101.397%2036.0188%20110.277%2027.2245%20119.624C25.293%2
770117.584%2022.3023%20115.38%2020.12%20113.28C16.9345%20110.215%2014.5544%20107.139%2011.6093%20103.907C20.4634%2095.7771%2030.3553%2085.2959%2038.995%2076.6538C26.7954%2077.1468%2012.897%2076.7595%200.500886%2076.8432C-0.253357%2067.2798%20-0.0668762%2064.0335%200.474519%2054.4468C10.2236%2054.321%2020.0117%2054.5022%2029.7636%2054.4262C32.8493%2054.4024%2035.9906%2054.4087%2039.0702%2054.5688C37.9047%2053.7441%2037.0767%2052.9286%2036.0741%2051.9331C27.8817%2043.798%2019.8345%2035.4678%2011.6005%2027.3803C13.565%2025.4866%2015.858%2022.3495%2017.9179%2020.2192C21.0167%2017.0145%2023.8968%2014.6573%2027.2763%2011.8081C34.6322%2018.9164%2041.7697%2026.3054%2049.0575%2033.4887C50.9273%2035.3318%2052.9618%2037.2742%2054.6122%2039.3052C54.2986%2035.5182%2054.4794%2029.3746%2054.4814%2025.4477L54.4618%200.637185C57.8126%200.354144%2060.892%200.119346%2064.2489%200.00144319ZM78.7685%2051.4927C74.6017%2049.7158%2068.0697%2049.2022%2063.5702%2049.4321C60.9953%2049.6038%2053.1057%2050.1333%2051.8271%2052.0903C48.2254%2057.6064%2048.6765%2073.3787%2051.3554%2078.8569C55.4481%2081.9036%2063.0512%2082.0384%2067.9794%2081.8833C70.639%2081.6435%2077.8973%2081.1331%2079.3691%2078.7798C82.6647%2073.5094%2082.8152%2056.1006%2078.7685%2051.4927Z'%20fill='%23FEFEFE'/%3e%3c/svg%3e`,GR=[{value:`all`,label:`All`},{value:`social-media`,label:`Social media`},{value:`communications`,label:`Communications`},{value:`productivity`,label:`Productivity`},{value:`ai`,label:`AI`}],KR={"social-media":`Social media`,communications:`Communications`,productivity:`Productivity`,ai:`AI`},qR=[{id:`gmail`,name:`Gmail`,title:`Gmail Integration`,slug:`gmail`,description:`Sync contacts and surface relevant email conversations.`,subtitle:`See your conversations where they matter. With Gmail connected, youâll get relevant email threads, updated interaction timelines, and full context for every relationship.`,category:`communications`,Icon:mp,iconStyle:`compact`,iconClass:`text-[#EA4335]`,logo:EE,website:`gmail.com`,features:[`Automatically syncs the subject and date/time of your emails.`,`Keeps your contact timelines fresh by updating the last email interaction automatically.`,`See relevant email threads.`],overview:`Gmail integration allows you to enrich your contact timelines by automatically syncing email metadataâspecifically, the subject line and date/time of each message. This gives you a high-level view of your communications without exposing email content, ensuring both context and privacy. By connecting your Google account, the system continuously updates the last interaction with each contact and surfaces relevant email threads, helping you maintain stronger, better-informed relationships.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures/sync-gmail`},{id:`outlook`,name:`Outlook`,title:`Outlook Integration`,slug:`outlook`,description:`Sync Outlook emails and calendar context.`,subtitle:`Connect Outlook to Dex and keep your professional relationships organized with email context, interaction timelines, and seamless contact syncing.`,category:`communications`,Icon:ot,iconStyle:`compact`,iconClass:`text-[#0072C6]`,logo:NE,website:`outlook.live.com`,features:[`Automatically syncs the subject and date/time of your Outlook emails.`,`Keeps your contact timelines fresh by updating the last email interaction automatically.`,`See relevant email threads from your Outlook inbox.`,`Connect multiple Outlook accounts and set a primary account for default workflows.`,`Sync calendar events and add notes to meetings directly within Dex.`],overview:`The Outlook integration brings the power of Microsoft 365 to your relationship management. By connecting your Outlook account, Dex automatically syncs email metadata (subject lines and timestamps) and calendar events, giving you complete context for every professional relationship without compromising privacy. Real-time syncing ensures your contact timelines stay current, while intelligent contact matching links communications using email addresses and calendar attendee names. Note: Outlook sync is available only on the Dex Professional plan.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures/outlook-sync`},{id:`google-calendar`,name:`Google calendar`,title:`Google Calendar Integration`,slug:`google-calendar`,description:`Vie
77w calendar events on your timeline.`,subtitle:`Connect Google Calendar to Dex to see relevant events for each contact, update the last interaction automatically, and add notes to meetings with ease.`,category:`productivity`,Icon:gp,iconStyle:`compact`,iconClass:`text-[#4285F4]`,logo:VR,website:`calendar.google.com`,features:[`See relevant calendar events for a contact in Dex.`,`Search + view through multiple calendars for a contact.`,`Update last interaction in Dex automatically based on calendar events.`,`Add notes to calendar events easily within Dex.`],overview:`The Dex Google Calendar integration gives you full visibility into your meeting history and upcoming events with your contacts. By connecting your account, you can search and view calendar events across multiple calendars for each specific contact, all in one centralized place in Dex. Last interaction is updated based on calendar activity, keeping your timelines accurate without manual input. You can also easily add notes to any event in Dex, ensuring key takeaways are always documented.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures/sync-calendar`},{id:`two-way-sync`,name:`Two-way contact sync`,title:`Two-Way Contact Sync`,slug:`two-way-sync`,description:`Keep contacts synced across all your devices.`,subtitle:`Two-Way Contact Sync ensures your Dex contacts and device contacts stay up to date across all your devices, with changes reflected instantly wherever you make them.`,category:`productivity`,Icon:lt,iconStyle:`compact`,iconClass:`text-primary`,logo:wE,website:`getdex.com`,features:[`Keep your Dex contacts and device contacts in sync; changes made in either place update instantly.`,`Save time by eliminating the need to re-enter or duplicate contact information.`,`All contact data is securely encrypted during syncing to ensure privacy.`],overview:`Two-Way Contact Sync keeps your contact list consistent and accurate by automatically syncing changes between Dex and your phone's contacts. So, if you add or update a phone number in Dex or on your phone, the information stays in sync, no manual updates needed. All synced contact information is encrypted, both at rest and in transit. With Dex, your contacts stay organized, connected, and protected, everywhere you need them.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures/two-way-sync`},{id:`facebook`,name:`Facebook`,title:`Facebook Integration`,slug:`facebook`,description:`Import your friends from Facebook into Dex.`,subtitle:`Stay thoughtful and connected by importing key details from Facebook like profile photos and upcoming birthdays directly into your Dex contacts.`,category:`social-media`,Icon:pt,iconStyle:`compact`,iconClass:`text-[#1877F2]`,logo:TE,website:`facebook.com`,features:[`See upcoming birthdays directly in Dex.`,`Enrich contacts in Dex with profile images pulled directly from Facebook.`,`Use the Dex Extension to selectively import specific Facebook friends.`],overview:`The Facebook integration makes it easy to enrich your Dex contacts with meaningful personal details. By importing from Facebook, you'll automatically add profile pictures and birthdays to your contact profiles, helping you recognize, remember, and stay in touch at the right time. To get started, simply install the Dex Extension or initiate the process through the import from Facebook flow within Dex.`,documentationLink:`https://getdex.com/docs/workflows/consolidate-your-contacts#facebook`},{id:`instagram`,name:`Instagram`,title:`Instagram Integration`,slug:`instagram`,description:`Add contacts and log your recent DMs.`,subtitle:`With the Instagram integration, Dex automatically syncs your DMs, keeps timelines updated, and helps you stay on top of every interaction.`,category:`social-media`,Icon:mt,iconStyle:`compact`,iconClass:`text-[#D62976]`,logo:AE,website:`instagram.com`,features:[`Instantly add contacts to Dex from your 1:1 Instagram DMs.`,`Update the timeline in Dex with the date and snippet of your last message.`,`Keep your last interaction up to date in Dex from recent Instagram DMs.`,`Refresh your keep-in-touch reminders in Dex based on recent Instagram activity.`,`Automatically create and update a group in Dex for all Instagram contacts.`],overview:`The Instagram integration brings
77your 1:1 DMs into Dex, helping you manage personal and professional relationships more effectively. After you connect your Instagram account, Dex will automatically add contacts you've messaged on Instagram and track the most recent message.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures/sync-instagram`},{id:`whatsapp`,name:`WhatsApp`,title:`WhatsApp Integration`,slug:`whatsapp`,description:`Import contacts and view your most recent interactions.`,subtitle:`Dex syncs with WhatsApp daily to update your contacts and interactions, so every message helps you stay connected and in touch at the right time.`,category:`communications`,Icon:Sp,iconStyle:`compact`,iconClass:`text-[#25D366]`,logo:FE,website:`whatsapp.com`,features:[`Automatically imports contacts from 1:1 chats and small groups.`,`Detects and merges contact records using WhatsApp phone numbers.`,`Update last interaction based on the latest messages.`,`Shows the most recent message directly in each contact's profile.`],overview:`The WhatsApp integration syncs your messaging activity daily, automatically importing contacts from 1:1 chats and small groups (with fewer than five participants). By connecting your WhatsApp account via QR code, Dex tracks your most recent message interactions and updates contact timelines accordingly. Phone numbers from WhatsApp are used to detect and merge duplicate contact records, ensuring your relationship data stays organized.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures/sync-whatsapp#whatsapp-sync`},{id:`imessage`,name:`iMessage`,title:`iMessage Integration`,slug:`imessage`,description:`Import contacts and keep message interactions synced.`,subtitle:`Seamlessly sync your iMessage activity to keep contacts, names, and last interaction dates always up to dateâwithout lifting a finger.`,category:`communications`,Icon:vp,iconStyle:`compact`,iconClass:`text-[#34DA51]`,logo:kE,website:`apple.com/messages`,features:[`Sync your sent and received iMessage to keep timelines updated in Dex.`,`Update your iMessage activity in Dex every hour.`,`Automatically create and maintain a dedicated group in Dex for synced iMessage contacts.`,`Detect duplicate contacts by name to avoid clutter.`,`Automatic Name Enrichment for your Dex contacts.`],overview:`The iMessage integration seamlessly syncs your messaging activity, capturing both iMessage and SMS exchanges to keep contact timelines current. After connecting iMessage from the Dex desktop app on your Mac through Sync & Integrations settings, Dex automatically syncs messages every hour when your Mac is online. To maintain privacy, only the most recent message and basic metadata are stored locally on your deviceâfull message histories remain exclusively on your computer. This feature is available only on macOS and is currently in beta.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures/sync-imessage`},{id:`superhuman`,name:`Superhuman`,title:`Superhuman Integration`,slug:`superhuman`,description:`Add contacts directly from your email client.`,subtitle:`If you use Superhuman as your email client, Dex integrates seamlessly into your workflow.`,category:`communications`,Icon:dt,iconStyle:`compact`,iconClass:`text-foreground`,logo:UR,logoFullBleed:!0,website:`superhuman.com`,features:[`Use the Dex Extension to import email contacts into Dex.`],overview:`The Superhuman integration makes it easy to stay organized and follow up at the right timeâwithout ever leaving your inbox. With the Dex Browser Extension installed, simply press Cmd + . or click the blue Dex button inside the Superhuman web app to pull up Dex. This integration works only in the Superhuman browser and requires the Dex Extension to function.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/dexextension/superhuman#superhuman-integration`},{id:`csv`,name:`CSV file`,title:`CSV Import`,slug:`csv-file`,description:`Bulk import your contacts using a CSV file.`,subtitle:`Whether you're migrating from Notion, Airtable, Outlook, or another CRM, Dex makes it simple to bring your contacts in.`,category:`productivity`,Icon:it,iconStyle:`compact`,iconClass:`text-primary`,website:`getdex.com`,features:[],overview:`Dexâs CSV import feature allows you to quickly upload contacts from virtually any platform, including Notion, Airtable, Google Contacts, and Outlook. The system is designed to be flexible, intelligently recognizing a wide range of header formatsâso columns like âFirst Name,â âfirst_name,â or even just âNameâ are matched automatically.`,documentationLink:`https://getdex.com/docs/workflows/consolidate-your-contacts#csv-file`}
77,{id:`granola`,name:`Granola`,title:`Granola Integration`,slug:`granola`,description:`Turn your Granola meeting notes into contacts and timeline notes.`,subtitle:`Connect Granola to Dex and every meeting you record writes itself into your CRM â the summary lands on the people who were there, and the people you met become contacts.`,category:`productivity`,iconStyle:`compact`,logo:HR,logoFullBleed:!0,website:`granola.ai`,features:[`Files each meeting summary as a note on everyone who attended.`,`Adds meeting participants you do not already have as contacts.`,`Backfills your last 30 days on the first sync, then keeps up automatically.`,`Keeps last-interaction dates and keep-in-touch reminders current.`,`Filter Granola notes in or out of your timeline.`],overview:`The Granola integration connects your AI meeting notepad to your personal CRM. Dex reads the summary of each meeting Granola captured for you, files it as a note on every participant, and creates contacts for the people it does not yet know â so the relationship record builds itself while you take notes as usual. The first sync covers the last 30 days and Dex keeps up from there. Because the notes are filed against real people, last-interaction dates and keep-in-touch reminders stay current without any manual logging. Granola sync is available on the Dex Professional plan.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/syncfeatures`},{id:`zapier`,name:`Zapier`,title:`Zapier Integration`,slug:`zapier`,description:`Connect with thousands of apps to automate workflows.`,subtitle:`Connect Dex to the tools you already useâlike Google Contacts, Gmail, Outlook, Salesforce, and moreâand let Zapier handle the busywork.`,category:`productivity`,Icon:Op,iconStyle:`full`,iconClass:`text-white`,badgeClass:`bg-[#FF4F00]`,logo:WR,website:`zapier.com`,features:[`Create contacts.`,`Create notes.`,`Create reminders.`],overview:`The Zapier integration connects Dex with thousands of appsâincluding Gmail, Outlook, Salesforce, and HubSpotâto automate repetitive relationship management tasks. Zapier works through triggers (events that start a workflow) and actions (tasks Dex performs). Currently, Dex supports actions only, meaning external triggers from connected apps can push data into Dex automatically. Available actions include creating or updating contacts, creating timestamped notes from email content, and generating reminders from calendar events.`,documentationLink:`https://getdex.com/docs/integrationsandfeatures/zapier`},{id:`mcp-server`,name:`Dex MCP Server`,title:`Dex MCP Server`,slug:`mcp-server`,description:`Manage Dex through AI assistants using the Model Context Protocol.`,subtitle:`The Dex MCP Server lets you search, create, and update contacts, log notes, set reminders, and organize your network â all through natural language in Claude and other AI assistants.`,category:`ai`,Icon:ut,iconStyle:`compact`,iconClass:`text-primary`,website:`getdex.com`,features:[`Search contacts by name, email, or any keyword with rich, interactive result cards.`,`Create, update, and delete contacts directly from your AI assistant.`,`Log meetings, calls, and notes to contact timelines with automatic note type detection.`,`Set and manage follow-up reminders and tasks for any contact.`,`Organize contacts with tags and groups â create, assign, and manage them conversationally.`,`Define and update custom fields to track the data that matters to you.`,`Merge duplicate contacts intelligently with a single command.`],overview:`The Dex MCP Server brings the full power of your personal CRM into any AI assistant that supports the Model Context Protocol. Instead of switching between apps, you can manage your entire professional network through natural conversation. Ask your AI to find a contact, log a meeting note, set a reminder to follow up, or organize contacts into groups â and it just works. The server exposes 12 powerful tools covering contacts, notes, reminders, tags, groups, custom fields, and more.`,documentationLink:`https://getdex.com/docs/ai/mcp-server`},{id:`ai-skill`,name:`Dex AI Skill`,title:`Dex AI Skill`,slug:`ai-skill`,description:`Add the Dex AI Skill to your AI workflow.`,
77subtitle:`Connect Dex to Claude Code, OpenClaw, Grok Bot, and other compatible AI clients to manage contacts, log interactions, set reminders, and organize your professional network through natural language.`,category:`ai`,Icon:nt,iconStyle:`compact`,iconClass:`text-primary`,website:`getdex.com`,features:[`Works with Claude Code, OpenClaw, Grok Bot, and any AI client that supports skills.`,`Search, create, and update contacts using natural language.`,`Log meeting notes, calls, and interactions to contact timelines.`,`Set follow-up reminders and manage tasks for any contact.`,`Organize your network with tags and groups conversationally.`,`Track custom data with flexible custom fields.`],overview:`The Dex AI Skill is the easiest way to bring personal CRM capabilities into your AI workflow. Available on ClawHub and skills.sh, the Dex AI Skill works with Claude Code, OpenClaw, Grok Bot, and any AI client that supports skills â giving you a ready-to-use personal CRM right inside your favorite AI assistant. Once installed, your AI assistant can search your contacts, log interaction notes, set reminders, organize contacts with tags and groups, manage custom fields, and even merge duplicates â all through natural language.`,documentationLink:`https://getdex.com/docs/ai/dex-skill`}];function JR(e){return qR.find(t=>t.slug===e)}z();var YR=()=>B(()=>import(`./integrations.index-mxdtk-dX.js`),__vite__mapDeps([178,1,2,23,24,25,4,26,27,5,12,159,13,86,9,179,6,7,8,10,11,28,16])),XR=`Connect Dex with Gmail, Outlook, Google Calendar, Facebook, Instagram, WhatsApp, Zapier, and more relationship sources.`,ZR=G(`/integrations/`)({head:()=>J(`Integrations`,{description:XR,canonicalPath:`/integrations`,markdownPath:`/integrations.md`,jsonLd:vC([xC({path:`/integrations`,name:`Dex integrations`,description:XR,type:`CollectionPage`}),bC(`${jt}/integrations/#list`,qR.map(e=>({name:e.name,path:`/integrations/${e.slug}`,description:e.description}))),hC([{name:`Integrations`,path:`/integrations`}])])}),component:K(YR,`component`)});z();var QR=G(`/integrations/$slug`)({head:({params:e})=>{let t=JR(e.slug);if(!t)return J(`Integration not found`,{noindex:!0});let n=`/integrations/${t.slug}`;return J(t.title,{description:t.description,canonicalPath:n,markdownPath:`${n}.md`,jsonLd:vC([{...xC({path:n,name:t.title,description:t.description}),about:{"@id":iC},...t.documentationLink?{significantLink:t.documentationLink}:{}},hC([{name:`Integrations`,path:`/integrations`},{name:t.name,path:n}])])})},component:K(()=>B(()=>import(`./integrations._slug-DmzTJE-z.js`),__vite__mapDeps([180,23,1,2,24,25,4,26,27,5,6,7,8,9,10,11,12,13,179,28,16])),`component`)});function $R(e){let t=(0,q.c)(8),{reason:n}=e,r=n===`already-subscribed`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(Ze,{className:`size-6 animate-spin text-primary`,"aria-hidden":`true`}),t[0]=i):i=t[0];let a=r?`You're already subscribed`:`Setting up your accountâ¦`,o;t[1]===a?o=t[2]:(o=(0,U.jsx)(`p`,{className:`text-base font-medium text-foreground`,children:a}),t[1]=a,t[2]=o);let s=r?`Taking you to the appâ¦`:`This will only take a moment â don't close this window.`,c;t[3]===s?c=t[4]:(c=(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:s}),t[3]=s,t[4]=c);let l;return t[5]!==o||t[6]!==c?(l=(0,U.jsxs)(`div`,{className:`flex w-full flex-col items-center gap-3 py-10 text-center`,"aria-busy":`true`,children:[i,(0,U.jsxs)(`div`,{className:`space-y-1`,children:[o,c]})]}),t[5]=o,t[6]=c,t[7]=l):l=t[7],l}function ez(e){let t=(0,q.c)(16),{reason:n,onRetry:r}=e,i=n===`already-subscribed`,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(`p`,{className:`text-base font-medium text-foreground`,children:`This is taking longer than expected`}),t[0]=a):a=t[0];let o=n===`completed`?`Your payment went through â do not pay again. We are still setting up your subscription; it can take a minute to land.`:`Your subscription is still being activated; it can take a minute to land.`,s;t[1]===o?s=t[2]:(s=(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:o}),t[1]=o,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`If this persists, contact [email protected].`}),t[3]=c):c=t[3];let l;t[4]===s?l=t[5]:(l=(0,U.jsxs)(`div`,{className:`space-y-1`,children:[a,s,c]}),t[4]=s,t[5]=l);let u;t[6]===r?u=t[7]:(u=(0,U.jsx)(Qe,{variant:`outline`,onClick:r,children:`Check again`}),t[6]=r,t[7]=u);let d;
77t[8]===i?d=t[9]:(d=i?(0,U.jsx)(`a`,{href:`/app/settings/billing`,className:Xe({variant:`ghost`}),children:`Go to billing`}):null,t[8]=i,t[9]=d);let f;t[10]!==u||t[11]!==d?(f=(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2`,children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12];let p;return t[13]!==l||t[14]!==f?(p=(0,U.jsxs)(`div`,{className:`flex w-full flex-col items-center gap-4 py-10 text-center`,children:[l,f]}),t[13]=l,t[14]=f,t[15]=p):p=t[15],p}var tz=t({fetchUserForGate:()=>uz,hasCanceledStoreSubscription:()=>cz,isEntitled:()=>oz,isExpired:()=>az,isGrandfatheredFree:()=>sz,refetchUserForGate:()=>dz}),nz=`premium`,rz=`free`,iz=`subscriptionended`;function az(e){return e?.pricing_plan===iz}function oz(e){return e?!!(e.pricing_plan===nz||e.pricing_plan===rz&&e.created_at&&new Date(e.created_at)<It):!1}function sz(e){return e?.pricing_plan===rz&&oz(e)}function cz(e){let t=e?.subscription_details;return t?t.payment_source===Ft.Revenuecat&&t.cancelation_requested_at!=null:!1}async function lz(){let e=(await un().v2.users.getMe({include:[`subscription_details`]})).data?.user;return e?[e]:[]}async function uz(){try{return(await be().ensureQueryData({queryKey:[`user`,`me`],queryFn:lz,staleTime:5*6e4}))[0]??null}catch{return null}}async function dz(){try{return(await be().fetchQuery({queryKey:[`user`,`me`],queryFn:lz,staleTime:0}))[0]??null}catch{return be().removeQueries({queryKey:[`user`,`me`]}),null}}var fz=1500,pz=4e4;async function mz(e){let t=be(),n=un(),r=Date.now()+pz;for(;Date.now()<r;){try{let r=(await n.v2.users.getMe({include:[`subscription_details`],fresh:!0})).data?.user;if(r){t.setQueryData([`user`,`me`],[r]);let n=!e||r.subscription_details?.plan_tier===e;if(oz(r)&&n)return await t.invalidateQueries({queryKey:[`billing`,`subscription`]}),!0}}catch{}await new Promise(e=>setTimeout(e,fz))}return await t.invalidateQueries({queryKey:[`user`,`me`]}),!1}var hz=t({trackGoogleAdsStartTrialAfterConfirmation:()=>xz}),gz=1500,_z=4e4,vz=new Map;function yz(e){return/^cs_(test|live)_[A-Za-z0-9_]+$/.test(e)}async function bz(e){let t=Date.now()+_z;for(;Date.now()<t;){try{let t=(await un().v2.subscription.get({checkoutSessionId:e})).data?.subscription?.confirmed_trial;if(t?.checkout_session_id===e&&/^[a-f0-9]{64}$/.test(t.transaction_id))return t.transaction_id}catch{}await new Promise(e=>setTimeout(e,gz))}return null}function xz(e){if(!e||!yz(e)||vz.has(e))return;let t=bz(e).then(e=>{e&&Rd(e)}).catch(()=>{}).finally(()=>{vz.delete(e)});vz.set(e,t)}var Sz=t({captureCheckoutOffer:()=>wz,clearCheckoutOffer:()=>Ez,readCheckoutOffer:()=>Tz,trialDaysForOffer:()=>Dz}),Cz=`dex_checkout_offer`;function wz(e){let t=Un(e?.offer);if(t)try{window.localStorage.setItem(Cz,t.id)}catch{}}function Tz({liveCode:e}={}){let t=Un(e);if(t)return t;let n=Oz();if(!n)return null;let r=Un(n);return r||Ez(),r}function Ez(){try{window.localStorage.removeItem(Cz)}catch{}}function Dz(e){return Un(e)?.trialDays??7}function Oz(){try{return window.localStorage.getItem(Cz)}catch{return null}}z();var kz=()=>B(()=>import(`./app.subscribe-COTc1W91.js`),__vite__mapDeps([181,1,2,4,88,27,5,109,6,7,8,9,10,11,30,24,31,182,183,35,38,39,40,36,45,37,26,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,187,128,28,54,53,102,103,104,105,106,107,108,188,189,0,114,101,112,190,191,154,153,192,193,194,23,25])),Az=Zt({next:Kt().optional(),plan:qt(Lt).optional().catch(void 0),period:qt(zt).optional().catch(void 0),checkout_session_id:Kt().optional(),offer:Kt().optional().catch(void 0),from:qt([`reactivation`]).optional().catch(void 0)}),jz=G(`/app/subscribe`)({validateSearch:Az,head:()=>J(`Subscribe`),beforeLoad:async({search:e})=>{if(typeof window>`u`)return;let[{fetchUserForGate:t,hasCanceledStoreSubscription:n,isEntitled:r,isGrandfatheredFree:i},{maybeCaptureRegistrationData:a}]=await Promise.all([B(()=>Promise.resolve().then(()=>tz),void 0),B(()=>Promise.resolve().then(()=>sO),void 0)]),o=await t();if(a(o),o&&r(o)){if((e.plan||e.period||e.offer)&&i(o)||n(o))return;throw e.checkout_session_id&&B(async()=>{let{trackGoogleAdsStartTrialAfterConfirmation:e}=await Promise.resolve().then(()=>hz);return{trackGoogleAdsStartTrialAfterConfirmation:e}},void 0).then(({trackGoogleAdsStartTrialAfterConfirmation:t})=>{t(e.checkout_session_id)}).catch(()=>{}),L({to:`/app`})}},loaderDeps:({search:e})=>({isResumingCheckout:!!e.checkout_session_id}),loader:async({deps:e})=>{let{getUserCollection:t}=await B(async()=>{let{getUserCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getUserCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));await t().preload();let n=t().toArray[0];return!e.isResumingCheckout&&!az(n)&&Promise.all([B(()=>import(`./payment-step-31zpbryk.js`),__vite__mapDeps([195,1,2,4,5,6,7,8,9,10,11,196,33,28,54,102,103,104,105,106,107,108,109,0,49,40,36,42,50,100,101,110,111,112,30,24,31,113,114,115,116,86,23,25,26,27,12,13,191,154,153,197,192])),B(async()=>{let{getStripe:e}=await import(`./stripe-DEABoqLR.js`);return{getStripe:e}},__vite__mapDeps([197,109,1])).then(({getStripe:e})=>e())]).catch(()=>{}),null},component:K(kz,`component`)});z();
77var Mz=G(`/app/settings`)({head:()=>J(`Settings`),component:K(()=>B(()=>import(`./app.settings-Bb32TLH4.js`),__vite__mapDeps([198,1,2,4,88,27,5,104,103,6,7,8,9,10,11,199,23,24,25,26,200,201,202,203,30,31,183,35,38,39,40,36,45,37,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,124,125,101,102,54,105,106,107,108,109,111,112,113,114,126,127,128,100,110,115,28,116,129,33,34,46,32,204,164,84,205,206,91,92,81,207,208,209,210,211,212,213,214,215,187,216,217,218,219,220,189,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,49,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,58,132,257,258,182,141])),`component`)}),Nz=`/onboarding/watercolor.webp`,Pz=`/reactivation/watercolor-dense.webp`;function Fz(e){let t=(0,q.c)(7),{blooms:n,src:r}=e,i=r===void 0?Nz:r,a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,U.jsx)(`img`,{src:i,alt:``,style:{left:e.left,top:e.top,width:e.width},className:$e(`absolute aspect-square max-w-none object-cover dark:opacity-15 dark:mix-blend-screen`,e.className)},`${e.left}:${e.top}`),t[3]=i,t[4]=e),a=n.map(e),t[0]=n,t[1]=i,t[2]=a}else a=t[2];let o;return t[5]===a?o=t[6]:(o=(0,U.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 select-none`,children:a}),t[5]=a,t[6]=o),o}var Iz=[{key:`claude`,src:bT},{key:`openai`,src:ST},{key:`sparkle`,src:CT}],Lz=`Do I have any contact in Dex named Priya?`,Rz=[{kind:`heading`,text:`Contact found`},{kind:`text`,text:`Priya Anand`},{kind:`bullet`,text:`Position: VP of Design at Northbeam`},{kind:`bullet`,text:`Starred contact: Yes`},{kind:`text`,text:`Priya Anand leads the design team at Northbeam, a design-tools startup. Your notes show you met at a product conference last spring and last connected over a coffee catch-up two months ago.`}],zz=Rz.reduce((e,t,n)=>(e.push(n===0?0:e[n-1]+Rz[n-1].text.length),e),[]),Bz=zz[Rz.length-1]+Rz[Rz.length-1].text.length,Vz=500,Hz=420,Uz=60,Wz=Uz-8,Gz=680,Kz=200,qz=Gz+Iz.length*Kz+120,Jz=qz+420,Yz=Jz+460,Xz=2400,Zz=Yz+Xz,Qz=[{left:`-10%`,top:`10%`,width:`68%`,className:`opacity-30`}],$z=`bg-gradient-to-l from-background from-25% to-transparent`,eB=`bg-gradient-to-t from-background from-30% to-transparent`;function tB(){let e=(0,q.c)(59),t=$p(),n;e[0]===t?n=e[1]:(n=()=>t?1/0:0,e[0]=t,e[1]=n);let[r,i]=(0,H.useState)(n),a,o;e[2]===t?(a=e[3],o=e[4]):(a=()=>{if(t)return;let e=performance.now(),n=setInterval(()=>{let t=performance.now()-e;i(t),t>=Zz&&clearInterval(n)},40);return()=>clearInterval(n)},o=[t],e[2]=t,e[3]=a,e[4]=o),(0,H.useEffect)(a,o);let s=Math.max(0,Math.min(Iz.length,Math.floor((r-Gz)/Kz)+1)),c=r>=qz,l=r>=Jz,u;e[5]===r?u=e[6]:(u=Math.round((r-Yz)/Xz*Bz),e[5]=r,e[6]=u);let d=Math.max(0,Math.min(Bz,u)),f=d>=Bz?`answered`:d>0?`answering`:l?`query`:c?`card`:`tools`,p;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(p={maxWidth:Vz,height:Hz},e[7]=p):p=e[7];let m;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(m={opacity:0}
77,e[8]=m):m=e[8];let h=c||t?1:0,g;e[9]===h?g=e[10]:(g={opacity:h},e[9]=h,e[10]=g);let _=t?0:.7,v;e[11]===_?v=e[12]:(v={duration:_,ease:`easeOut`},e[11]=_,e[12]=v);let y;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,U.jsx)(Fz,{blooms:Qz,src:Pz}),e[13]=y):y=e[13];let b;e[14]!==v||e[15]!==g?(b=(0,U.jsx)(V.div,{className:`absolute inset-0`,initial:m,animate:g,transition:v,children:y}),e[14]=v,e[15]=g,e[16]=b):b=e[16];let x;e[17]!==t||e[18]!==s?(x=Iz.map((e,n)=>{let{key:r,src:i}=e;return(0,U.jsx)(nB,{src:i,show:n<s,reduceMotion:!!t},r)}),e[17]=t,e[18]=s,e[19]=x):x=e[19];let S;e[20]===x?S=e[21]:(S=(0,U.jsx)(`div`,{className:`flex shrink-0 flex-col gap-5`,children:x}),e[20]=x,e[21]=S);let C;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(C={opacity:0,y:14},e[22]=C):C=e[22];let w=c||t?1:0,T=c||t?0:14,E;e[23]!==w||e[24]!==T?(E={opacity:w,y:T},e[23]=w,e[24]=T,e[25]=E):E=e[25];let D=t?0:.44,O;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(O=[.22,1,.36,1],e[26]=O):O=e[26];let k;e[27]===D?k=e[28]:(k={duration:D,ease:O},e[27]=D,e[28]=k);let A;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(A={height:Hz},e[29]=A):A=e[29];let j;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(j={opacity:0,y:8},e[30]=j):j=e[30];let M=l||t?.9:0,ee=l||t?0:8,te;e[31]!==M||e[32]!==ee?(te={opacity:M,y:ee},e[31]=M,e[32]=ee,e[33]=te):te=e[33];let N=t?0:.32,P;e[34]===N?P=e[35]:(P={duration:N,ease:`easeOut`},e[34]=N,e[35]=P);let ne;e[36]!==te||e[37]!==P?(ne=(0,U.jsx)(V.span,{className:`inline-flex rounded-2xl border-2 border-blue-50 bg-gradient-to-b from-blue-50 to-background px-3 py-1.5 text-sm text-foreground opacity-90`,initial:j,animate:te,transition:P,children:Lz}),e[36]=te,e[37]=P,e[38]=ne):ne=e[38];let F;e[39]===d?F=e[40]:(F=(0,U.jsx)(rB,{typed:d}),e[39]=d,e[40]=F);let re;e[41]!==ne||e[42]!==F?(re=(0,U.jsxs)(`div`,{className:`h-full p-7`,children:[ne,F]}),e[41]=ne,e[42]=F,e[43]=re):re=e[43];let ie;e[44]!==E||e[45]!==k||e[46]!==re?(ie=(0,U.jsx)(V.div,{initial:C,animate:E,transition:k,style:A,className:`relative min-w-0 flex-1 overflow-hidden rounded-t-3xl border border-b-0 border-border bg-card shadow-[0px_8px_14.4px_1px_rgba(0,0,0,0.05)]`,children:re}),e[44]=E,e[45]=k,e[46]=re,e[47]=ie):ie=e[47];let I;e[48]!==S||e[49]!==ie?(I=(0,U.jsxs)(`div`,{className:`absolute inset-0 flex items-start gap-7`,children:[S,ie]}),e[48]=S,e[49]=ie,e[50]=I):I=e[50];let L;e[51]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,U.jsx)(`div`,{"aria-hidden":!0,className:$e(`pointer-events-none absolute -inset-y-8 -right-8 w-32`,$z)}),e[51]=L):L=e[51];let R;e[52]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,U.jsx)(`div`,{"aria-hidden":!0,className:$e(`pointer-events-none absolute -inset-x-8 -bottom-8 h-32`,eB),style:{left:72}}),e[52]=R):R=e[52];let ae;e[53]!==b||e[54]!==I?(ae=(0,U.jsxs)(`div`,{className:`relative w-full`,style:p,children:[b,I,L,R]}),e[53]=b,e[54]=I,e[55]=ae):ae=e[55];let oe;return e[56]!==ae||e[57]!==f?(oe=(0,U.jsx)(`div`,{className:`relative flex size-full flex-col items-center`,"data-phase":f,children:ae}),e[56]=ae,e[57]=f,e[58]=oe):oe=e[58],oe}function nB(e){let t=(0,q.c)(16),{src:n,show:r,reduceMotion:i}=e,a=r?``:void 0,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={width:Uz,height:Uz},t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={opacity:0,y:10,scale:.94},t[1]=s):s=t[1];let c=r||i?1:0,l=r||i?0:10,u=r||i?1:.94,d;t[2]!==c||t[3]!==l||t[4]!==u?(d={opacity:c,y:l,scale:u},t[2]=c,t[3]=l,t[4]=u,t[5]=d):d=t[5];let f=i?0:.34,p;t[6]===f?p=t[7]:(p={duration:f,ease:`easeOut`},t[6]=f,t[7]=p);let m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m={width:Wz,height:Wz},t[8]=m):m=t[8];let h;t[9]===n?h=t[10]:(h=(0,U.jsx)(`span`,{style:m,className:`flex items-center justify-center rounded-xl bg-card`,children:(0,U.jsx)(`img`,{src:n,alt:``,className:`size-6`})}),t[9]=n,t[10]=h);let g;return t[11]!==a||t[12]!==h||t[13]!==d||t[14]!==p?(g=(0,U.jsx)(V.span,{"data-tool":a,style:o,className:`flex items-center justify-center rounded-2xl border border-border bg-neutral-50 shadow-[0px_4px_6.5px_0px_rgba(0,0,0,0.05)]`,initial:s,animate:d,transition:p,children:h}),t[11]=a,t[12]=h,t[13]=d,t[14]=p,t[15]=g):g=t[15],g}function rB(e){let t=(0,q.c)(32),{typed:n}=e,r;t[0]===n?r=t[1]:(r=e=>n>zz[e],t[0]=n,t[1]=r);let i=r,a;t[2]===n?a=t[3]:(a=e=>Rz[e].text.slice(0,n-zz[e]),t[2]=n,t[3]=a);let o=a,s;t[4]===n?s=t[5]:(s=zz.reduce((e,t,r)=>n>t?r:e,-1),t[4]=n,t[5]=s);let c=s,l=n>0&&n<Bz,u=n>0?``:void 0,d;t[6]!==c||t[7]!==l||t[8]!==o||t[9]!==i?(d=i(0)?(0,U.jsxs)(`p`,{className:`mt-5 text-sm font-bold text-foreground`,children:[o(0),(0,U.jsx)(iB,{show:l&&c===0})]}):null,t[6]=c,t[7]=l,t[8]=o,t[9]=i,t[10]=d):d=t[10];let f;t[11]!==c||t[12]!==l||t[13]!==o||t[14]!==i?(f=i(1)?(0,U.jsxs)(`p`,{className:`mt-4 text-sm text-foreground`,children:[o(1),(0,U.jsx)(iB,{show:l&&c===1})]}):null,t[11]=c,t[12]=l,t[13]=o,t[14]=i,t[15]=f):f=t[15];let p;t[16]!==c||t[17]!==l||t[18]!==o||t[19]!==i?(p=i(2)?(0,U.jsxs)(`ul`,{className:`ml-5 list-disc text-sm text-foreground`,children:[(0,U.jsxs)(`li`,{children:[o(2),(0,U.jsx)(iB,{show:l&&c===2})]}),i(3)?(0,U.jsxs)(`li`,{children:[o(3),(0,U.jsx)(iB,{show:l&&c===3})]}):null]}):null,t[16]=c,t[17]=l,t[18]=o,t[19]=i,t[20]=p):p=t[20];let m;t[21]!==c||t[22]!==l||t[23]!==o||t[24]!==i?(m=i(4)?(0,U.jsxs)(`p`,{className:`mt-4 text-sm text-foreground`,children:[o(4),(0,U.jsx)(iB,{show:l&&c===4})]}):null,t[21]=c,t[22]=l,t[23]=o,t[24]=i,t[25]=m):m=t[25];let h;return t[26]!==u||t[27]!==d||t[28]!==f||t[29]!==p||t[30]!==m?(h=(0,U.jsxs)(`div`,{"data-answer":u,children:[d,f,p,m]}),t[26]=u,t[27]=d,t[28]=f,t[29]=p,t[30]=m,t[31]=h):h=t[31],h}function iB(e){let t=(0,q.c)(1),{show:n}=e;if(!n)return null;let r;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsx)(`span`,{"aria-hidden":!0,
77className:`ml-0.5 inline-block h-[1em] w-[2px] translate-y-[2px] animate-pulse bg-foreground`}),t[0]=r):r=t[0],r}var aB=[{key:`mail`,src:xD},{key:`linkedin`,src:bD},{key:`facebook`,src:_D},{key:`instagram`,src:yD},{key:`whatsapp`,src:wD},{key:`imessage`,src:vD}],oB=1.5;function sB(e){let t=(0,q.c)(14),{radius:n,className:r,outerClassName:i,children:a}=e,o;t[0]===n?o=t[1]:(o={borderRadius:n},t[0]=n,t[1]=o);let s;t[2]===i?s=t[3]:(s=$e(`gradient-drift bg-[linear-gradient(90deg,var(--color-blue-100),var(--color-blue-400),var(--color-blue-200),var(--color-blue-400),var(--color-blue-100))] p-[1.5px]`,i),t[2]=i,t[3]=s);let c=n-oB,l;t[4]===c?l=t[5]:(l={borderRadius:c},t[4]=c,t[5]=l);let u;t[6]!==a||t[7]!==r||t[8]!==l?(u=(0,U.jsx)(`div`,{style:l,className:r,children:a}),t[6]=a,t[7]=r,t[8]=l,t[9]=u):u=t[9];let d;return t[10]!==o||t[11]!==s||t[12]!==u?(d=(0,U.jsx)(`div`,{style:o,className:s,children:u}),t[10]=o,t[11]=s,t[12]=u,t[13]=d):d=t[13],d}var cB=`/assets/nora-DWnfnxkq.png`,lB=`Legal cleared the partnership terms â Nora is sending the final draft tomorrow and wants to sign by Thursday. She proposed a mid-July joint launch and asked you to loop in your design team for the co-branded assets.`,uB=[{from:`them`,text:`Hey! Good news â legal cleared the partnership terms`,at:`10:12`},{from:`me`,text:`That's great ð when can we sign?`,at:`10:13`},{from:`them`,text:`I'll send the final draft tomorrow â aiming to sign Thursday`,at:`10:13`},{from:`them`,text:`Let's also lock the joint launch â thinking mid-July`,at:`10:13`},{from:`them`,text:`Can you loop in your design team for the co-branded assets?`,at:`10:13`}],dB=[{label:`Driving Customer Acquisition`,date:`Sep 14, 2026`,Icon:ot,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:(0,U.jsxs)(U.Fragment,{children:[`Engineering @ACME `,(0,U.jsx)(`span`,{className:`text-green-600`,children:`Maintenance`})]}),date:`Sep 12, 2026`,Icon:zn,badgeClassName:`bg-blue-50 text-primary`},{label:`Product Positioning and Messaging Workshop`,date:`Sep 9, 2026`,Icon:Yf,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Customer Acquisition Strategy Meeting`,date:`Sep 8, 2026`,Icon:Yf,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Added a note`,date:`Sep 4, 2026`,Icon:sp,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`New onboarding flow`,date:`Sep 3, 2026`,Icon:Yf,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Aligning Product Innovation with Investor Expectations`,date:`Sep 2, 2026`,Icon:ot,badgeClassName:`bg-neutral-50 text-neutral-500`},{label:`Investment Readiness for Early-Stage Product Companies`,date:`Sep 1, 2026`,Icon:ot,badgeClassName:`bg-neutral-50 text-neutral-500`}],fB=420,pB=500,mB=pB,hB=20,gB=10,_B=36,vB=58,yB=fB-hB*2,bB=396,xB=(mB-bB)/2,SB=72,CB=90,wB=98,TB=20,EB=64,DB=`scale-[0.80] min-[380px]:scale-[0.96] min-[440px]:scale-100`,OB=460,kB=1020,AB=520,jB=kB+(uB.length-1)*AB+620,MB=560,NB=[.65,0,.35,1],PB=jB+MB+160,FB=620,IB=PB+520,LB=[{left:`-12%`,top:`-5.2%`,width:`122.4%`,className:`opacity-40`},{left:`13.1%`,top:`-6%`,width:`104%`,className:`opacity-40`}];function RB(){let e=(0,q.c)(42),t=$p(),n;e[0]===t?n=e[1]:(n=()=>t?1/0:0,e[0]=t,e[1]=n);let[r,i]=(0,H.useState)(n),a,o;e[2]===t?(a=e[3],o=e[4]):(a=()=>{if(t)return;let e=[...uB.map(zB),jB,PB,IB].map(e=>setTimeout(()=>i(t=>Math.max(t,e)),e));return()=>e.forEach(clearTimeout)},o=[t],e[2]=t,e[3]=a,e[4]=o),(0,H.useEffect)(a,o);let s=Math.max(0,Math.min(uB.length,Math.floor((r-kB)/AB)+1)),c=r>=jB,l=r>=PB,u=r>=IB,d=u?`summary`:l?`detail`:c?`compacting`:`chatting`,f,p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=$e(`relative shrink-0 origin-center`,DB),p={width:fB,height:mB},e[5]=f,e[6]=p):(f=e[5],p=e[6]);let m;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(m={opacity:0}
77,e[7]=m):m=e[7];let h=l||t?1:0,g;e[8]===h?g=e[9]:(g={opacity:h},e[8]=h,e[9]=g);let _,v;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={duration:.7,ease:`easeOut`},_=(0,U.jsx)(Fz,{blooms:LB,src:Pz}),e[10]=_,e[11]=v):(_=e[10],v=e[11]);let y;e[12]===g?y=e[13]:(y=(0,U.jsx)(V.div,{className:`absolute inset-0`,initial:m,animate:g,transition:v,children:_}),e[12]=g,e[13]=y);let b=!!t,x;e[14]!==c||e[15]!==s?(x=(0,U.jsx)(VB,{shownMessages:s,isCompacting:c}),e[14]=c,e[15]=s,e[16]=x):x=e[16];let S;e[17]!==c||e[18]!==l||e[19]!==b||e[20]!==x?(S=(0,U.jsx)(BB,{isFolded:c,isGone:l,reduceMotion:b,children:x}),e[17]=c,e[18]=l,e[19]=b,e[20]=x,e[21]=S):S=e[21];let C=l||!!t,w=u||!!t,T=!!t,E;e[22]!==c||e[23]!==C||e[24]!==w||e[25]!==T?(E=(0,U.jsx)(UB,{isOpen:C,absorbed:c,showSummary:w,reduceMotion:T}),e[22]=c,e[23]=C,e[24]=w,e[25]=T,e[26]=E):E=e[26];let D,O;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(D={height:pB*.3},O={opacity:0},e[27]=D,e[28]=O):(D=e[27],O=e[28]);let k=l||t?1:0,A;e[29]===k?A=e[30]:(A={opacity:k},e[29]=k,e[30]=A);let j;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(j={duration:.44,ease:`easeOut`}
77,e[31]=j):j=e[31];let M;e[32]===A?M=e[33]:(M=(0,U.jsx)(V.div,{"aria-hidden":!0,className:`pointer-events-none absolute -inset-x-40 -bottom-4 bg-gradient-to-b from-transparent to-background to-90%`,style:D,initial:O,animate:A,transition:j}),e[32]=A,e[33]=M);let ee;e[34]!==y||e[35]!==S||e[36]!==E||e[37]!==M?(ee=(0,U.jsxs)(`div`,{className:f,style:p,children:[y,S,E,M]}),e[34]=y,e[35]=S,e[36]=E,e[37]=M,e[38]=ee):ee=e[38];let te;return e[39]!==ee||e[40]!==d?(te=(0,U.jsx)(`div`,{className:`relative flex size-full flex-col items-center justify-center-safe`,"data-phase":d,children:ee}),e[39]=ee,e[40]=d,e[41]=te):te=e[41],te}function zB(e,t){return kB+t*AB}function BB(e){let t=(0,q.c)(16),{isFolded:n,isGone:r,reduceMotion:i,children:a}=e;if(i)return null;let o,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={left:0,width:fB},s={opacity:0,y:12,top:xB,height:bB},t[0]=o,t[1]=s):(o=t[0],s=t[1]);let c=+!r,l=n?wB:bB,u=n?20:32,d;t[2]!==c||t[3]!==l||t[4]!==u?(d={opacity:c,y:0,top:xB,height:l,borderRadius:u},t[2]=c,t[3]=l,t[4]=u,t[5]=d):d=t[5];let f;t[6]===r?f=t[7]:(f=r?{duration:.26,ease:`easeOut`}:{duration:.4,delay:OB/1e3,ease:`easeOut`},t[6]=r,t[7]=f);let p,m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p={duration:.4,delay:OB/1e3,ease:`easeOut`},m={duration:MB/1e3,ease:NB},t[8]=p,t[9]=m):(p=t[8],m=t[9]);let h;t[10]===f?h=t[11]:(h={opacity:f,y:p,default:m},t[10]=f,t[11]=h);let g;return t[12]!==a||t[13]!==h||t[14]!==d?(g=(0,U.jsx)(V.div,{"aria-hidden":!0,className:`absolute overflow-hidden border border-b-0 border-border bg-background shadow-[0px_8px_14.4px_1px_rgba(0,0,0,0.05)]`,style:o,initial:s,animate:d,transition:h,children:a}),t[12]=a,t[13]=h,t[14]=d,t[15]=g):g=t[15],g}function VB(e){let t=(0,q.c)(12),{shownMessages:n,isCompacting:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={left:hB,top:CB,width:yB,originY:0,originX:.5},t[0]=i):i=t[0];let a=+!r,o=r?.82:1,s=r?-12:0,c=+!r,l;t[1]!==a||t[2]!==o||t[3]!==s||t[4]!==c?(l={scaleY:a,scaleX:o,y:s,opacity:c},t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l):l=t[5];let u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u={duration:MB/1e3,ease:NB,opacity:{duration:MB/1e3,ease:[.7,0,.84,0]}},t[6]=u):u=t[6];let d;t[7]===n?d=t[8]:(d=uB.map((e,t)=>(0,U.jsx)(HB,{message:e,show:t<n},t)),t[7]=n,t[8]=d);let f;return t[9]!==l||t[10]!==d?(f=(0,U.jsx)(V.div,{"aria-hidden":!0,className:`absolute flex flex-col gap-1.5`,style:i,animate:l,transition:u,children:d}),t[9]=l,t[10]=d,t[11]=f):f=t[11],f}function HB(e){let t=(0,q.c)(26),{message:n,show:r}=e,i=n.from===`me`,a=r?``:void 0,o=i?`justify-end`:`justify-start`,s;t[0]===o?s=t[1]:(s=$e(`flex`,o),t[0]=o,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c={opacity:0,y:10,scale:.94},t[2]=c):c=t[2];let l=+!!r,u=r?0:10,d=r?1:.94,f;t[3]!==l||t[4]!==u||t[5]!==d?(f={opacity:l,y:u,scale:d},t[3]=l,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p={duration:.34,ease:`easeOut`},t[7]=p):p=t[7];let m=i?`bg-green-100`:`bg-card`,h;t[8]===m?h=t[9]:(h=$e(`max-w-[78%] rounded-xl px-2.5 py-1.5 shadow-[0px_1px_1px_rgba(0,0,0,0.06)]`,m),t[8]=m,t[9]=h);let g;t[10]===n.text?g=t[11]:(g=(0,U.jsx)(`p`,{className:`text-caption-md text-foreground`,children:n.text}),t[10]=n.text,t[11]=g);let _;t[12]===i?_=t[13]:(_=i?(0,U.jsx)(Xf,{className:`size-3.5 text-[#3497f9]`}):null,t[12]=i,t[13]=_);let v;t[14]!==n.at||t[15]!==_?(v=(0,U.jsxs)(`span`,{className:`flex items-center justify-end gap-1 text-[11px] leading-none tracking-[0.5px] text-foreground/25`,children:[n.at,_]}),t[14]=n.at,t[15]=_,t[16]=v):v=t[16];let y;t[17]!==h||t[18]!==g||t[19]!==v?(y=(0,U.jsxs)(`div`,{className:h,children:[g,v]}),t[17]=h,t[18]=g,t[19]=v,t[20]=y):y=t[20];let b;return t[21]!==a||t[22]!==y||t[23]!==s||t[24]!==f?(b=(0,U.jsx)(V.div,{"data-message":a,className:s,initial:c,animate:f,transition:p,children:y}),t[21]=a,t[22]=y,t[23]=s,t[24]=f,t[25]=b):b=t[25],b}function UB(e){let t=(0,q.c)(102),{isOpen:n,absorbed:r,showSummary:i,reduceMotion:a}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={left:hB,top:SB,width:yB,height:vB,padding:gB,borderRadius:12,boxShadow:`0px 2px 3px 0px rgba(23,21,19,0.08)`},t[0]=o):o=t[0];let s=o,c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c={left:0,top:0,width:fB,height:pB,padding:TB,borderRadius:24,boxShadow:`0px 4px 14px 0px rgba(23,21,19,0.10)`},t[1]=c):c=t[1];let l=n?c:s,u=n?`contact`:`header`,d=n?`border-border`:`border-transparent`,f;t[2]===d?f=t[3]:(f=$e(`absolute overflow-hidden border bg-card transition-colors duration-500`,d),t[2]=d,t[3]=f);let p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p={...s,opacity:0,y:12,scale:1},t[4]=p):p=t[4];let m;t[5]!==r||t[6]!==n?(m=r&&!n?[1,1.03,1]:1,t[5]=r,t[6]=n,t[7]=m):m=t[7];let h;t[8]!==m||t[9]!==l?(h={...l,opacity:1,y:0,scale:m},t[8]=m,t[9]=l,t[10]=h):h=t[10];let g=a?0:.4,_=a?0:OB/1e3,v;t[11]!==_||t[12]!==g?(v={duration:g,delay:_,ease:`easeOut`},t[11]=_,t[12]=g,t[13]=v):v=t[13];let y=a?0:.4,b=a?0:OB/1e3,x;t[14]!==y||t[15]!==b?(x={duration:y,delay:b,ease:`easeOut`},t[14]=y,t[15]=b,t[16]=x):x=t[16];let S;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(S={duration:.46,ease:`easeOut`,times:[0,.45,1]},t[17]=S):S=t[17];let C=a?0:FB/1e3,w;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(w=[.22,1,.36,1],t[18]=w):w=t[18];let T;t[19]===C?T=t[20]:(T={duration:C,ease:w},t[19]=C,t[20]=T);let E;t[21]!==v||t[22]!==x||t[23]!==T?(E={opacity:v,y:x,scale:S,default:T},t[21]=v,t[22]=x,t[23]=T,t[24]=E):E=t[24];let D;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(D={width:_B,height:_B},t[25]=D):D=t[25];let O=n?EB:_B,k=n?EB:_B,A;t[26]!==O||t[27]!==k?(A={width:O,height:k},t[26]=O,t[27]=k,t[28]=A):A=t[28];let j=a?0:FB/1e3,M;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(M=[.22,1,.36,1],t[29]=M):M=t[29];let ee;t[30]===j?ee=t[31]:(ee={duration:j,ease:M},t[30]=j,t[31]=ee);let te;t[32]!==A||t[33]!==ee?(te=(0,U.jsx)(V.img,{src:cB,alt:``,className:`shrink-0 rounded-full object-cover`,initial:D,animate:A,transition:ee}),t[32]=A,t[33]=ee,t[34]=te):te=t[34];let N;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(N={opacity:1},t[35]=N):N=t[35];let P=+!!n,ne;t[36]===P?ne=t[37]:(ne={opacity:P},t[36]=P,t[37]=ne);let F=a?0:.3,re=a?0:.12,ie;t[38]!==F||t[39]!==re?(ie={duration:F,delay:re},t[38]=F,t[39]=re,t[40]=ie):ie=t[40];let I,L;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,U.jsx)(`p`,{className:`text-display-sm text-foreground`,children:`Nora Bennett`}),L=(0,U.jsx)(`p`,{className:`truncate text-caption-md text-neutral-500`,children:`Head of Partnerships at Google`}),t[41]=I,t[42]=L):(I=t[41],L=t[42]);let R;t[43]!==ne||t[44]!==ie?(R=(0,U.jsxs)(V.div,{className:`min-w-0`,initial:N,animate:ne,transition:ie,children:[I,L]}),t[43]=ne,t[44]=ie,t[45]=R):R=t[45];let ae;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(ae={opacity:1},t[46]=ae):ae=t[46];let oe=+!n,se;t[47]===oe?se=t[48]:(se={opacity:oe},t[47]=oe,t[48]=se);let ce=a?0:.2,le;t[49]===ce?le=t[50]:(le={duration:ce},t[49]=ce,t[50]=le);let ue,de;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,U.jsx)(`p`,{className:`truncate text-sm text-foreground`,children:`Nora Bennett`}),de=(0,U.jsx)(`p`,{className:`text-caption-md text-neutral-500`,children:`online`}),t[51]=ue,t[52]=de):(ue=t[51],de=t[52]);let fe;t[53]!==se||t[54]!==le?(fe=(0,U.jsxs)(V.div,{className:`absolute inset-x-0 top-0 min-w-0`,initial:ae,animate:se,transition:le,children:[ue,de]}),t[53]=se,t[54]=le,t[55]=fe):fe=t[55];let pe;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(pe=aB.map(GB),t[56]=pe):pe=t[56];let me;t[57]!==n||t[58]!==a?(me=(0,U.jsx)(KB,{show:n,reduceMotion:a,className:`mt-3 flex gap-2`,children:pe}),t[57]=n,t[58]=a,t[59]=me):me=t[59];let he;t[60]!==R||t[61]!==fe||t[62]!==me?(he=(0,U.jsxs)(`div`,{className:`relative min-w-0 flex-1`,children:[R,fe,me]}),t[60]=R,t[61]=fe,t[62]=me,t[63]=he):he=t[63];let ge;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(ge={opacity:1},t[64]=ge):ge=t[64];let _e=+!n,ve;t[65]===_e?ve=t[66]:(ve={opacity:_e}
77,t[65]=_e,t[66]=ve);let ye=a?0:.2,be;t[67]===ye?be=t[68]:(be={duration:ye},t[67]=ye,t[68]=be);let xe,Se;t[69]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,U.jsx)(lp,{className:`size-4 text-neutral-500`}),Se=(0,U.jsx)(st,{className:`size-4 text-neutral-500`}),t[69]=xe,t[70]=Se):(xe=t[69],Se=t[70]);let Ce;t[71]!==ve||t[72]!==be?(Ce=(0,U.jsxs)(V.div,{className:`flex shrink-0 items-center gap-2.5 pt-2.5`,initial:ge,animate:ve,transition:be,children:[xe,Se]}),t[71]=ve,t[72]=be,t[73]=Ce):Ce=t[73];let we;t[74]!==te||t[75]!==he||t[76]!==Ce?(we=(0,U.jsxs)(`div`,{className:`flex items-start gap-3`,children:[te,he,Ce]}),t[74]=te,t[75]=he,t[76]=Ce,t[77]=we):we=t[77];let Te;t[78]===Symbol.for(`react.memo_cache_sentinel`)?(Te={opacity:0,height:0},t[78]=Te):Te=t[78];let Ee=+!!i,De=i?`auto`:0,Oe;t[79]!==Ee||t[80]!==De?(Oe={opacity:Ee,height:De},t[79]=Ee,t[80]=De,t[81]=Oe):Oe=t[81];let ke=a?0:.5,Ae;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=[.22,1,.36,1],t[82]=Ae):Ae=t[82];let je;t[83]===ke?je=t[84]:(je={duration:ke,ease:Ae},t[83]=ke,t[84]=je);let Me;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,U.jsx)(qB,{label:`WhatsApp Conversation`,date:`Sep 16, 2026`,Icon:Fn,badgeClassName:`bg-green-100 text-green-600`}),t[85]=Me):Me=t[85];let Ne;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,U.jsx)(sB,{radius:12,outerClassName:`mt-1.5`,className:`bg-blue-50 p-4`,children:(0,U.jsx)(`p`,{className:`text-caption-md text-foreground-secondary`,children:lB})}),t[86]=Ne):Ne=t[86];let Pe;t[87]!==Oe||t[88]!==je?(Pe=(0,U.jsxs)(V.div,{className:`overflow-hidden py-3`,initial:Te,animate:Oe,transition:je,children:[Me,Ne]}),t[87]=Oe,t[88]=je,t[89]=Pe):Pe=t[89];let Fe;t[90]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=dB.map(WB),t[90]=Fe):Fe=t[90];let Ie;t[91]!==n||t[92]!==a?(Ie=(0,U.jsx)(KB,{show:n,reduceMotion:a,to:.45,children:Fe}),t[91]=n,t[92]=a,t[93]=Ie):Ie=t[93];let Le;return t[94]!==E||t[95]!==u||t[96]!==f||t[97]!==we||t[98]!==Pe||t[99]!==Ie||t[100]!==h?(Le=(0,U.jsxs)(V.div,{"aria-hidden":!0,"data-card":u,className:f,initial:p,animate:h,transition:E,children:[we,Pe,Ie]}),t[94]=E,t[95]=u,t[96]=f,t[97]=we,t[98]=Pe,t[99]=Ie,t[100]=h,t[101]=Le):Le=t[101],Le}function WB(e,t){return(0,U.jsx)(qB,{...e},t)}function GB(e){let{key:t,src:n}=e;return(0,U.jsx)(`img`,{src:n,alt:``,className:`size-6`},t)}function KB(e){let t=(0,q.c)(11),{show:n,reduceMotion:r,to:i,className:a,children:o}=e,s=i===void 0?1:i,c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={opacity:0},t[0]=c):c=t[0];let l=n?s:0,u;t[1]===l?u=t[2]:(u={opacity:l},t[1]=l,t[2]=u);let d=r?0:.34,f=r||!n?0:(FB-260)/1e3,p;t[3]!==d||t[4]!==f?(p={duration:d,delay:f,ease:`easeOut`},t[3]=d,t[4]=f,t[5]=p):p=t[5];let m;return t[6]!==o||t[7]!==a||t[8]!==u||t[9]!==p?(m=(0,U.jsx)(V.div,{className:a,initial:c,animate:u,transition:p,children:o}),t[6]=o,t[7]=a,t[8]=u,t[9]=p,t[10]=m):m=t[10],m}function qB(e){let t=(0,q.c)(17),{label:n,date:r,Icon:i,badgeClassName:a}=e,o;t[0]===a?o=t[1]:(o=$e(`flex size-3.5 shrink-0 items-center justify-center rounded-sm`,a),t[0]=a,t[1]=o);let s;t[2]===i?s=t[3]:(s=(0,U.jsx)(i,{className:`size-2.5`}),t[2]=i,t[3]=s);let c;t[4]!==o||t[5]!==s?(c=(0,U.jsx)(`span`,{className:o,children:s}),t[4]=o,t[5]=s,t[6]=c):c=t[6];let l;t[7]===n?l=t[8]:(l=(0,U.jsx)(`p`,{className:`truncate text-caption-md text-foreground-secondary`,children:n}),t[7]=n,t[8]=l);let u;t[9]!==c||t[10]!==l?(u=(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[c,l]}),t[9]=c,t[10]=l,t[11]=u):u=t[11];let d;t[12]===r?d=t[13]:(d=(0,U.jsx)(`p`,{className:`shrink-0 text-caption-md text-neutral-500`,children:r}),t[12]=r,t[13]=d);let f;return t[14]!==u||t[15]!==d?(f=(0,U.jsxs)(`div`,{className:`flex items-center gap-3 py-1`,children:[u,d]}),t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function JB(e){let t=(0,q.c)(12),{title:n,titleAdornment:r,className:i,children:a}=e,o;t[0]===i?o=t[1]:(o=$e(`flex w-full flex-col rounded-4xl border border-border bg-card p-6 shadow-md sm:w-[350px] min-[1130px]:min-h-[24rem] tall:p-8 tall:min-[1130px]:min-h-[32rem]`,i),t[0]=i,t[1]=o);let s;t[2]===n?s=t[3]:(s=(0,U.jsx)(`h2`,{className:`font-display text-[2rem] leading-9 font-semibold text-foreground`,children:n}),t[2]=n,t[3]=s);let c;t[4]!==s||t[5]!==r?(c=(0,U.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-2`,children:[s,r]}),t[4]=s,t[5]=r,t[6]=c):c=t[6];let l;return t[7]!==a||t[8]!==o||t[9]!==c||t[10]!==n?(l=(0,U.jsxs)(`section`,{"aria-label":n,className:o,children:[c,a]}),t[7]=a,t[8]=o,t[9]=c,t[10]=n,t[11]=l):l=t[11],l}function YB(e){let t=(0,q.c)(4),{items:n}=e,r;t[0]===n?r=t[1]:(r=n.map(XB),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,U.jsx)(`ul`,{className:`flex flex-1 flex-col gap-2 py-6`,children:r}),t[2]=r,t[3]=i),i}function XB(e){return(0,U.jsxs)(`li`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,U.jsx)(qf,{"aria-hidden":!0,
77className:`size-5 shrink-0 text-primary`}),e]},e)}var ZB=Wn.winback_2026_09,{trialDays:QB,planTier:$B}=ZB,eV=[`Full Professional access for ${QB} days`,`LinkedIn sync: ${Rt[$B].toLocaleString(`en-US`)} connections`,`Mail merge and voice mode`,`Outlook integration`,`Priority Support`,`Reminder before your trial ends`,`Cancel anytime`],tV=350,nV=512,rV=[{left:-133,top:154,size:432.05,className:`rotate-180 opacity-60`},{left:50.91,top:-84.09,size:414.79,className:`rotate-180 opacity-60`}],iV=.8,aV=rV.map(({left:e,top:t,size:n,className:r})=>{let i=n*iV,a=(n-i)/2;return{left:`${(e+a)/tV*100}%`,top:`${(t+a)/nV*100}%`,width:`${i/tV*100}%`,className:r}});function oV(e){let t=(0,q.c)(6),{onActivate:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsx)(Fz,{blooms:aV,src:Pz}),t[0]=r):r=t[0];let i,a,o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`p`,{className:`text-[2.5rem] leading-none font-semibold text-foreground`,children:`Free`}),a=(0,U.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:`Credit card required`}),o=(0,U.jsx)(YB,{items:eV}),t[1]=i,t[2]=a,t[3]=o):(i=t[1],a=t[2],o=t[3]);let s;return t[4]===n?s=t[5]:(s=(0,U.jsx)(`div`,{className:`flex w-full flex-col items-center`,children:(0,U.jsxs)(`div`,{className:`relative w-full max-w-[350px]`,children:[r,(0,U.jsxs)(JB,{title:`${QB}-day trial`,className:`relative border-4 border-blue-100 bg-gradient-to-t from-card to-blue-50 dark:border-blue-900 dark:to-blue-950`,children:[i,a,o,(0,U.jsx)(Qe,{size:`lg`,className:`w-full`,onClick:n,children:`Activate Pro Trial`})]})]})}),t[4]=n,t[5]=s),s}var sV=`/assets/aisha-karim-COBA_2hq.png`,cV=`/assets/anne-hill-D9WZPc3N.png`,lV=`/assets/daniel-okafor-D3Sf7HBi.png`,uV=`/assets/emma-cole-BSk-nf-Z.png`,dV=`/assets/lucas-meyer-T6_IXyfp.png`,fV=`/assets/priya-nair-BkMqg4Vs.png`,pV=`/assets/ryan-BU3-ermv.png`,mV=`/assets/sofia-ramirez-Dteo4DRd.png`,hV=`You worked together on a 2023 product launch and kept in touch on LinkedIn. It's been ~10 months â worth reconnecting before it goes cold.`,gV=`Hey Ryan â it's been too long! I keep thinking about the 2023 launch we shipped together. Would love to catch up and hear what you're working on these days.`,_V={name:`Ryan Carter`,role:`Project Manager`,avatar:pV},vV=[{name:`Sofia RamÃrez`,role:`Engineering Manager`,avatar:mV},{name:`Anne Hill`,role:`Operations Lead`,avatar:cV},{name:`Priya Nair`,role:`Product Designer`,avatar:fV},{name:`Daniel Okafor`,role:`Project Account Executive`,avatar:lV},{name:`Sofia RamÃrez`,role:`Engineering Manager`,avatar:mV},{name:`Anne Hill`,role:`Operations Lead`,avatar:cV},{name:`Priya Nair`,role:`Product Designer`,avatar:fV}],yV=2,bV=[{name:`Emma Cole`,role:`Content Strategist`,avatar:uV},{name:`Aisha Karim`,role:`Marketing Manager`,avatar:sV},_V,{name:`Lucas Meyer`,role:`Finance Director`,avatar:dV},{name:`Emma Cole`,role:`Content Strategist`,avatar:uV},{name:`Aisha Karim`,role:`Marketing Manager`,avatar:sV},{name:`Lucas Meyer`,role:`Finance Director`,avatar:dV}],xV=259,SV=108,CV=275,wV=480,TV=420,EV=470,DV=wV/2,OV=534,kV=(OV-TV)/2,AV=EV,jV=(AV-wV)/2,MV=235-EV/2,NV=DV-302,PV=NV-95,FV=-40,IV=FV-85,LV=460,RV=1600,zV=2060,BV=380,VV=2480,HV=560,UV=2860,WV=110,GV=[{column:`left`,index:3},{column:`right`,index:3},{column:`left`,index:2},{column:`right`,index:yV}],KV=zV-(GV.length-1)*BV,qV=`scale-[0.63] min-[380px]:scale-[0.76] min-[440px]:scale-[0.89] min-[490px]:scale-100`,JV=[{left:`-19.503%`,top:`0.573%`,width:`92.174%`,className:`-rotate-[135deg] opacity-50`},{left:`39.438%`,top:`-9.073%`,width:`69.749%`,className:`rotate-[150deg] opacity-50`}],YV=`mask-b-from-90% mask-b-to-100%`,XV=`text-caption-sm text-neutral-500 uppercase`;function ZV(){let e=(0,q.c)(39),t=$p(),n;e[0]===t?n=e[1]:(n=()=>t?1/0:0,e[0]=t,e[1]=n);let[r,i]=(0,H.useState)(n),a,o;e[2]===t?(a=e[3],o=e[4]):(a=()=>{if(t)return;let e=[...GV.map(QV),VV,UV].map(e=>setTimeout(()=>i(t=>Math.max(t,e)),e));return()=>e.forEach(clearTimeout)},o=[t],e[2]=t,e[3]=a,e[4]=o),(0,H.useEffect)(a,o);let s=Math.floor((r-KV)/BV),c=r>=KV?GV[Math.min(s,GV.length-1)]??null:null,l=r>=VV,u=r>=UV,d=u?`detail`:l?`expanded`:r>=zV?`found`:`searching`,f,p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(f=$e(`relative shrink-0 origin-center`,qV),p={width:OV,height:AV},e[5]=f,e[6]=p):(f=e[5],p=e[6]);let m,h;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(m={left:kV,top:MV,width:TV,height:EV},h={opacity:0}
77,e[7]=m,e[8]=h):(m=e[7],h=e[8]);let g=l||t?1:0,_;e[9]===g?_=e[10]:(_={opacity:g},e[9]=g,e[10]=_);let v,y;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(v={duration:.7,ease:`easeOut`},y=(0,U.jsx)(Fz,{blooms:JV,src:Pz}),e[11]=v,e[12]=y):(v=e[11],y=e[12]);let b;e[13]===_?b=e[14]:(b=(0,U.jsx)(V.div,{className:`absolute`,style:m,initial:h,animate:_,transition:v,children:y}),e[13]=_,e[14]=b);let x;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(x={top:jV,height:wV},e[15]=x):x=e[15];let S=!!t,C;e[16]!==l||e[17]!==c||e[18]!==S?(C=(0,U.jsx)($V,{contacts:vV,side:`left`,from:FV,to:IV,x:0,scanTarget:c,isDismissed:l,reduceMotion:S}),e[16]=l,e[17]=c,e[18]=S,e[19]=C):C=e[19];let w=l?yV:void 0,T=!!t,E;e[20]!==l||e[21]!==c||e[22]!==w||e[23]!==T?(E=(0,U.jsx)($V,{contacts:bV,side:`right`,from:PV,to:NV,x:CV,scanTarget:c,isDismissed:l,hideIndex:w,reduceMotion:T}),e[20]=l,e[21]=c,e[22]=w,e[23]=T,e[24]=E):E=e[24];let D;e[25]!==C||e[26]!==E?(D=(0,U.jsxs)(`div`,{className:`absolute inset-x-0 mask-b-from-80% mask-b-to-100% mask-t-from-80% mask-t-to-100% overflow-hidden`,style:x,children:[C,E]}),e[25]=C,e[26]=E,e[27]=D):D=e[27];let O=!!t,k;e[28]!==l||e[29]!==u||e[30]!==O?(k=(0,U.jsx)(tH,{isExpanded:l,showDetail:u,reduceMotion:O}),e[28]=l,e[29]=u,e[30]=O,e[31]=k):k=e[31];let A;e[32]!==b||e[33]!==D||e[34]!==k?(A=(0,U.jsxs)(`div`,{className:f,style:p,children:[b,D,k]}),e[32]=b,e[33]=D,e[34]=k,e[35]=A):A=e[35];let j;return e[36]!==A||e[37]!==d?(j=(0,U.jsx)(`div`,{className:`relative flex size-full flex-col items-center justify-center-safe`,"data-
77phase":d,children:A}),e[36]=A,e[37]=d,e[38]=j):j=e[38],j}function QV(e,t){return KV+t*BV}function $V(e){let t=(0,q.c)(25),{contacts:n,side:r,from:i,to:a,x:o,scanTarget:s,isDismissed:c,hideIndex:l,reduceMotion:u}=e,d;t[0]===o?d=t[1]:(d={left:o,width:xV},t[0]=o,t[1]=d);let f;t[2]===i?f=t[3]:(f={opacity:0,y:i},t[2]=i,t[3]=f);let p;t[4]!==c||t[5]!==u||t[6]!==a?(p=u?{opacity:0,y:a}:{opacity:+!c,y:a},t[4]=c,t[5]=u,t[6]=a,t[7]=p):p=t[7];let m;t[8]===c?m=t[9]:(m=c?{duration:.32,ease:`easeOut`}:{opacity:{duration:.55,delay:LV/1e3,ease:`easeOut`},y:{duration:RV/1e3,delay:LV/1e3,ease:`linear`}},t[8]=c,t[9]=m);let h;if(t[10]!==n||t[11]!==l||t[12]!==s||t[13]!==r){let e;t[15]!==l||t[16]!==s||t[17]!==r?(e=(e,t)=>(0,U.jsx)(eH,{contact:e,isActive:s?.column===r&&s.index===t,isHidden:l===t},`${r}-${t}`),t[15]=l,t[16]=s,t[17]=r,t[18]=e):e=t[18],h=n.map(e),t[10]=n,t[11]=l,t[12]=s,t[13]=r,t[14]=h}else h=t[14];let g;return t[19]!==d||t[20]!==f||t[21]!==p||t[22]!==m||t[23]!==h?(g=(0,U.jsx)(V.div,{className:`absolute top-0 flex flex-col gap-4`,style:d,initial:f,animate:p,transition:m,children:h}),t[19]=d,t[20]=f,t[21]=p,t[22]=m,t[23]=h,t[24]=g):g=t[24],g}function eH(e){let t=(0,q.c)(19),{contact:n,isActive:r,isHidden:i}=e,a=r||void 0,o=i?0:void 0,s;t[0]===o?s=t[1]:(s={height:SV,opacity:o},t[0]=o,t[1]=s);let c=r?`border-blue-200 bg-gradient-to-b from-blue-50 to-blue-100 outline-2 -outline-offset-2`:`border-border bg-card outline-0`,l;t[2]===c?l=t[3]:(l=$e(`flex w-full items-center gap-3 rounded-[32px] border border-b-0 p-6 shadow-[0px_8px_7.2px_rgba(0,0,0,0.05)] outline-blue-200 transition-[background-color,border-color,outline-width] duration-slow ease-in-out`,c),t[2]=c,t[3]=l);let u;t[4]===n.avatar?u=t[5]:(u=(0,U.jsx)(`img`,{src:n.avatar,alt:``,className:`size-[60px] shrink-0 rounded-full object-cover`}),t[4]=n.avatar,t[5]=u);let d;t[6]===n.name?d=t[7]:(d=(0,U.jsx)(`p`,{className:`truncate text-display-sm text-foreground`,children:n.name}),t[6]=n.name,t[7]=d);let f;t[8]===n.role?f=t[9]:(f=(0,U.jsx)(`p`,{className:`truncate text-caption-md text-neutral-500`,children:n.role}),t[8]=n.role,t[9]=f);let p;t[10]!==d||t[11]!==f?(p=(0,U.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[d,f]}),t[10]=d,t[11]=f,t[12]=p):p=t[12];let m;return t[13]!==a||t[14]!==s||t[15]!==l||t[16]!==u||t[17]!==p?(m=(0,U.jsxs)(`div`,{"data-active":a,style:s,className:l,children:[u,p]}),t[13]=a,t[14]=s,t[15]=l,t[16]=u,t[17]=p,t[18]=m):m=t[18],m}function tH(e){let t=(0,q.c)(32),{isExpanded:n,showDetail:r,reduceMotion:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={left:CV,top:235-SV/2,width:xV,height:SV,borderRadius:32},t[0]=a):a=t[0];let o=a,s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={left:kV,top:MV,width:TV,height:EV,borderRadius:24},t[1]=s):s=t[1];let c=n||i?s:o,l,u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=$e(`absolute overflow-hidden bg-card p-5 shadow-md`,YV),u={...o,op
77acity:0},t[2]=l,t[3]=u):(l=t[2],u=t[3]);let d=n||i?1:0,f;t[4]!==d||t[5]!==c?(f={...c,opacity:d},t[4]=d,t[5]=c,t[6]=f):f=t[6];let p=i?0:HV/1e3,m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=[.22,1,.36,1],t[7]=m):m=t[7];let h;t[8]===p?h=t[9]:(h={duration:p,ease:m},t[8]=p,t[9]=h);let g;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,U.jsx)(`img`,{src:pV,alt:``,className:`size-[60px] shrink-0 rounded-full object-cover`}),t[10]=g):g=t[10];let _,v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,U.jsx)(`p`,{className:`truncate text-display-sm text-foreground`,children:`Ryan Carter`}),v=(0,U.jsx)(`p`,{className:`truncate text-caption-md text-neutral-500`,children:`Project Manager`}),t[11]=_,t[12]=v):(_=t[11],v=t[12]);let y;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=aB.map(nH),t[13]=y):y=t[13];let b;t[14]===r?b=t[15]:(b=(0,U.jsxs)(`div`,{className:`flex w-[380px] items-start gap-3`,children:[g,(0,U.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,v,(0,U.jsx)(rH,{show:r,step:0,className:`mt-3 flex w-auto gap-2`,children:y})]})]}),t[14]=r,t[15]=b);let x,S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,U.jsx)(`p`,{className:XV,children:`Why Ryan surfaced`}),S=(0,U.jsx)(`p`,{className:`mt-1 line-clamp-2 text-caption-md text-foreground-secondary`,children:hV}),t[16]=x,t[17]=S):(x=t[16],S=t[17]);let C;t[18]===r?C=t[19]:(C=(0,U.jsxs)(rH,{show:r,step:1,className:`mt-4 rounded-xl border border-blue-100 bg-gradient-to-b from-card from-24% to-blue-50 to-77% p-3`,children:[x,S]}),t[18]=r,t[19]=C);let w;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,U.jsx)(`p`,{className:XV,children:`Suggested action`}),t[20]=w):w=t[20];let T;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,U.jsx)(`p`,{className:`text-label-sm text-foreground`,children:`Send a short LinkedIn catch-up`}),t[21]=T):T=t[21];let E;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,U.jsx)(`div`,{className:`mt-2 rounded-xl bg-neutral-50 p-4`,children:(0,U.jsx)(`p`,{className:`text-caption-md text-foreground-secondary`,children:gV})}),t[22]=E):E=t[22];let D;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,U.jsxs)(sB,{radius:16,outerClassName:`mt-1 shadow-[0px_8px_20px_-4px_rgba(205,220,255,0.7)]`,className:`bg-card p-4`,children:[T,E,(0,U.jsxs)(`div`,{className:`mt-2 flex items-center gap-2 pointer-events-none`,children:[(0,U.jsx)(`span`,{className:$e(Xe({variant:`outline`,size:`icon-sm`}),`size-7`),children:(0,U.jsx)($f,{className:`size-3.5`})}),(0,U.jsx)(`span`,{className:$e(Xe({variant:`outline`,size:`sm`}),`h-7 px-2.5 text-caption-md`),children:`Open LinkedIn message`})]})]}),t[23]=D):D=t[23];let O;t[24]===r?O=t[25]:(O=(0,U.jsxs)(rH,{show:r,step:2,className:`mt-4`,children:[w,D]}),t[24]=r,t[25]=O);let k;return t[26]!==b||t[27]!==C||t[28]!==O||t[29]!==f||t[30]!==h?(k=(0,U.jsxs)(V.div,{"aria-hidden":!0,className:l,initial:u,animate:f,transition:h,children:[b,C,O]}),t[26]=b,t[27]=C,t[28]=O,t[29]=f,t[30]=h,t[31]=k):k=t[31],k}function nH(e){let{key:t,src:n}=e;return(0,U.jsx)(`img`,{src:n,alt:``,className:`size-6`},t)}function rH(e){let t=(0,q.c)(13),{show:n,step:r,className:i,children:a}=e,o;t[0]===i?o=t[1]:(o=$e(`w-[380px]`,i),t[0]=i,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s={opacity:0,y:8},t[2]=s):s=t[2];let c=+!!n,l=n?0:8,u;t[3]!==c||t[4]!==l?(u={opacity:c,y:l},t[3]=c,t[4]=l,t[5]=u):u=t[5];let d=n?r*WV/1e3:0,f;t[6]===d?f=t[7]:(f={duration:.34,ease:`easeOut`,delay:d},t[6]=d,t[7]=f);let p;return t[8]!==a||t[9]!==o||t[10]!==u||t[11]!==f?(p=(0,U.jsx)(V.div,{className:o,initial:s,animate:u,transition:f,children:a}),t[8]=a,t[9]=o,t[10]=u,t[11]=f,t[12]=p):p=t[12],p}var iH=`What's new at Dex`,aH=[{left:`-19.251%`,top:`-20%`,width:`72.316%`,className:`-rotate-90 opacity-60`},{left:`45.656%`,top:`27.381%`,width:`72.316%`,className:`-rotate-90 opacity-60`}];function oH(){let e=(0,q.c)(5),t=(0,H.useRef)(null),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,U.jsx)(Fz,{blooms:aH}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsx)(`button`,{type:`button`,"aria-label":`Play video: ${iH}`,className:`group relative aspect-[587/420] w-full cursor-pointer rounded-[14px] border border-border bg-olive-50 p-1.5 shadow-[0px_19px_18.2px_-1px_rgba(0,0,0,0.05)]`}),e[1]=r):r=e[1];let i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,U.jsx)(`span`,{className:`grid size-10 shrink-0 place-items-center rounded-full bg-card shadow-sm`,children:(0,U.jsx)(ct,{className:`size-5 translate-x-px fill-primary stroke-primary`,"aria-hidden":`true`})}),e[2]=i):i=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(En,{render:r,children:(0,U.jsx)(`span`,{className:`grid size-full place-items-center rounded-lg bg-card`,children:(0,U.jsxs)(`span`,{className:`relative inline-flex h-12 items-center rounded-full bg-blue-100 p-1 pr-4 transition-[padding-right] duration-200 ease-out group-hover:pr-1`,children:[i,(0,U.jsx)(`span`,{className:`grid grid-cols-[1fr] transition-[grid-template-columns] duration-200 ease-out group-hover:grid-cols-[0fr]`,children:(0,U.jsx)(`span`,{className:`overflow-hidden`,children:(0,U.jsxs)(`span`,{className:`flex flex-col items-start pl-1.5 leading-tight transition-opacity duration-150 ease-out group-hover:opacity-0`,children:[(0,U.jsx)(`span`,{className:`whitespace-nowrap text-sm text-blue-950`,children:`Watch now`}),(0,U.jsx)(`span`,{className:`text-caption-sm whitespace-nowrap text-neutral-500 uppercase`,children:`1:20 min`})]})})})]})})}),e[3]=a):a=e[3];let o;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,U.jsx)(`div`,{className:`flex size-full flex-col items-center justify-center`,children:(0,U.jsxs)(`div`,{className:`relative w-full max-w-[587px]`,children:[n,(0,U.jsxs)(kn,{children:[a,(0,U.jsxs)(Dn,{size:`lg`,className:`duration-300 sm:max-w-[880px]`,overlayClassName:`duration-300`,ref:t,initialFocus:t,children:[(0,U.jsx)(On,{className:`sr-only`,children:iH}),(0,U.jsx)(`div`,{className:`aspect-video w-full overflow-hidden rounded-xl bg-muted`})]})]})]})}),e[4]=o):o=e[4],o}
77var sH=[{key:`whats_new`,title:`What's new at Dex`,subtitle:`A lot changed while you were away. Here's the 80-second version.`,render:()=>(0,H.createElement)(oH)},{key:`resurface_reminders`,title:`Resurface Reminders`,subtitle:`Dex will now find opportunities in your network unprompted!`,render:()=>(0,H.createElement)(ZV)},{key:`conversation_memory`,title:`Conversation Memory`,subtitle:`Dex now has context on your contacts and conversations without you having to manually update them.`,render:()=>(0,H.createElement)(RB)},{key:`ai_integrations`,title:`AI Integrations`,subtitle:`Dex now connects to your favorite AI so you can ask anything about your relationships.`,render:()=>(0,H.createElement)(tB)},{key:`free_trial`,title:`Turn Dex back on â free for ${ZB.trialDays} days`,subtitle:`Full Professional access. We'll remind you before it ends.`,render:({onPrimary:e})=>(0,H.createElement)(oV,{onActivate:e}),isPaywall:!0}];z();var cH=()=>B(()=>import(`./app.reactivation-DUiSk1kF.js`),__vite__mapDeps([259,4,1,88,2,27,5,6,7,8,9,10,11,194,23,24,25,26])),lH=Zt({step:Jt().int().min(0).max(sH.length-1).catch(0)}),uH=G(`/app/reactivation`)({validateSearch:lH,head:()=>J(`What's new at Dex`),component:K(cH,`component`)});z();var dH=G(`/app/plans`)({head:()=>J(`Dex Plans`),loader:async()=>{let{getBillingCollection:e,getUserCollection:t}=await B(async()=>{let{getBillingCollection:e,getUserCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getBillingCollection:e,getUserCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),t().preload()]),null},component:K(()=>B(()=>import(`./app.plans-wuvK_wou.js`),__vite__mapDeps([260,1,2,23,24,25,4,26,27,5,6,7,8,9,10,11,81,182,82,54,102,103,104,105,106,107,108,109,241,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,261,110,101,127,112,30,31,97,128,111,113,114,28,0,262,86,12,13,192,193])),`component`)}),fH=[`identity`,`about`,`phone`,`connect`,`connect-linkedin`,`connect-email`,`connect-whatsapp`,`connect-imessage`,`connect-instagram`,`connect-mcp`,`connected`,`contacts`,`resurface`,`extension`,`everywhere`,`copilot`],pH=[`connect-linkedin`,`connect-email`,`connect-whatsapp`,`connect-imessage`,`connect-instagram`,`connect-mcp`,`connected`],mH=[`identity`,`about`,...pH,`extension`,`copilot`],hH=[`connect`];function gH(e){return e===`control`?mH:hH}function _H(e,t){return t===`control`?pH.includes(e)?`connect`:null:e===`connect`?`connected`:null}var vH={identity:`/app/onboarding/identity`,about:`/app/onboarding/about`,phone:`/app/onboarding/phone`,connect:`/app/onboarding/connect`,"connect-linkedin":`/app/onboarding/connect-linkedin`,"connect-email":`/app/onboarding/connect-email`,"connect-whatsapp":`/app/onboarding/connect-whatsapp`,"connect-imessage":`/app/onboarding/connect-imessage`,"connect-instagram":`/app/onboarding/connect-instagram`,"connect-mcp":`/app/onboarding/connect-mcp`,connected:`/app/onboarding/connected`,contacts:`/app/onboarding/contacts`,resurface:`/app/onboarding/resurface`,extension:`/app/onboarding/extension`,everywhere:`/app/onboarding/everywhere`,copilot:`/app/onboarding/copilot`},yH=fH[0],bH=[`resurface`];function xH(e,t=[]){let n=fH.indexOf(e);for(let e=n+1;e<fH.length;e++){let n=fH[e];if(!t.includes(n))return n}return null}function SH(e,t=[]){let n=fH.indexOf(e);for(let e=n-1;e>=0;e--){let n=fH[e];if(!bH.includes(n)&&!t.includes(n))return n}return null}var CH=`dex:onboarding-step:`;function wH(e){return`${CH}${e}`}function TH(e){return fH.includes(e)}function EH(e){if(typeof window>`u`||!e)return null;try{let t=wH(e),n=window.localStorage.getItem(t);return n?TH(n)?n:(window.localStorage.removeItem(t),null):null}catch{return null}}function DH(e,t){if(!(typeof window>`u`||!e))try{window.localStorage.setItem(wH(e),t)}catch{}}function OH(e){if(!(typeof window>`u`||!e))try{window.localStorage.removeItem(wH(e))}catch{}}function kH(e,t=`test`){return jH(e,null,t)}function AH(e,t=`test`){return t===`control`?vH.phone:e?e.linkedin_profile_id?!e.job_title&&!e.school&&!e.about_me?vH.about:vH.phone:vH.identity:vH[yH]}function jH(e,t,n=`test`){let r=EH(e);if(!r)return AH(t,n);if(!gH(n).includes(r))return vH[r];let i=_H(r,n);return i?vH[i]:AH(t,n)}z();var MH=G(`/app/onboarding`)({head:()=>J(`Welcome to Dex`),beforeLoad:async({location:e})=>
77{if(typeof window>`u`)return{onboardingExperiment:{userId:null,variant:null}};let{fetchUserForGate:t}=await B(async()=>{let{fetchUserForGate:e}=await Promise.resolve().then(()=>tz);return{fetchUserForGate:e}},void 0),n=await t();if(n?.onboarded_web)throw L({to:`/app`});if(!n)throw Error(`Could not load your account. Please try again.`);let{fetchOnboardingVariantForGate:r}=await B(async()=>{let{fetchOnboardingVariantForGate:e}=await import(`./onboarding-experiment-gate-C36FuCtf.js`).then(e=>e.n);return{fetchOnboardingVariantForGate:e}},__vite__mapDeps([143,1,101,102,103,104,54,105,106,107,108,109])),i=await r(n),a=Wd(i),o=e.pathname.replace(/\/$/,``),s=gH(a).find(e=>o===vH[e]);if(s){let t=_H(s,a);throw L(t?{to:vH[t],search:e.search}:{to:jH(n?.id,null,a)})}return B(async()=>{let{getOAuthCredentialsCollection:e}=await import(`./oauth-credentials.collection-B2qyqhCG.js`).then(e=>e.n);return{getOAuthCredentialsCollection:e}},__vite__mapDeps([113,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31])).then(({getOAuthCredentialsCollection:e})=>{let t=e();return t.status===`ready`?void 0:t.preload()}).catch(()=>void 0),{onboardingExperiment:{userId:n?.id??null,variant:i}}},component:K(()=>B(()=>import(`./app.onboarding-CNN1Zj_6.js`),__vite__mapDeps([263,4,1,5,2,264])),`component`)}),NH=Xt(Zt({name:Yt().optional(),email:Yt().optional()})),PH=Zt({action:Kt().optional().catch(void 0),eventName:Yt().optional().catch(void 0),attendees:Qt(e=>{if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return}},NH.optional()).catch(void 0),eventTimestamp:Jt().optional().catch(void 0)});function FH(e){let t=PH.safeParse(e);return t.success?t.data:{}}var IH=Zt({name:Yt().optional().catch(void 0),slug:Yt().optional().catch(void 0),company:Yt().optional().catch(void 0),education:Yt().optional().catch(void 0),email:Yt().optional().catch(void 0),location:Yt().optional().catch(void 0),source:Yt().optional().catch(void 0),title:Yt().optional().catch(void 0),bio:Yt().optional().catch(void 0),image_url:Yt().optional().catch(void 0),image_source:Yt().optional().catch(void 0)});function LH(e){let t=IH.safeParse(e);return t.success?t.data:{}}[...Object.keys(IH.shape),...Object.keys(PH.shape)];function RH(e,t){let n=(0,H.useRef)(e);return t(e)&&(n.current=e),n.current}function zH(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function BH(e,t){return t!==void 0&&!Number.isNaN(t.getTime())&&e===An(t)?t:jn(e)??new Date}z();var VH=G(`/app/extension-handler`)({validateSearch:LH,head:()=>J(`Open in Dex`),component:K(()=>B(()=>import(`./app.extension-handler-C4qUgLZG.js`),__vite__mapDeps([265,1,2,4,88,27,6,5,7,8,9,10,11,30,24,31,102,103,104,54,105,106,107,108,109,246,247,248,266])),`component`)});z();var HH=G(`/app/auth`)({component:K(()=>B(()=>import(`./app.auth-Dn_yPAoo.js`),__vite__mapDeps([267,23,1,2,24,25,4,26,27,5,104,12,13,132,133,9])),`component`)});z();var UH=G(`/app/_shell`)({component:K(()=>B(()=>import(`./app._shell-DE3wcP2X.js`),__vite__mapDeps([268,1,2,4,5,104,9,199,23,24,25,26,27,200,201,202,88,6,7,8,10,11,203,30,31,183,35,38,39,40,36,45,37,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,124,125,101,102,103,54,105,106,107,108,109,111,112,113,114,126,127,128,100,110,115,28,116,129,33,34,46,32,204,164,84,205,206,91,92,81,207,208,209,210,211,212,213,214,215,187,216,217,218,219,220,189,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,49,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,58,132,257,258,269,270,262,271,272])),`component`)});z();var WH=G(`/blog/tag/$tag`)({loader:({params:e})=>WL(e.tag),head:({loaderData:e,params:t})=>{if(!e?.tag){let e=At({title:`Tag not found | Dex`,canonicalPath:`/blog/tag/${t.tag}/`,noindex:!0});return{meta:e.meta,links:e.links}}let{tag:n}=e,r=At({title:`${n.name} articles | Dex`,description:`Articles tagged ${n.name} from the Dex blog.`,canonicalPath:`/blog/tag/${n.slug}/`});return{meta:r.meta,links:r.links}},component:K(()=>B(()=>import(`./blog.tag._tag-II4Mfy53.js`),__vite__mapDeps([273,23,1,2,24,25,4,26,27,5,156,6,7,8,9,10,11,157,158,12,159,13,16,86,160])),`component`)});z();var GH=G(`/blog/page/$page`)({loader:async({params:e})=>{let t=ZL(e.page);if(t===null)return{result:null,page:e.page};let n=XL(await zL(),t);return t>n.pageCount?{result:null,page:e.page}:{result:n,page:e.page}},head:({loaderData:e})=>
77{if(!e?.result){let e=At({title:`Page not found | Dex`,canonicalPath:`/blog/`,noindex:!0});return{meta:e.meta,links:e.links}}let{page:t}=e.result,n=At({title:`Blog â Page ${t} | Dex`,description:`The Dex blog â relationship-building playbooks, personal CRM guides, and notes from the team.`,canonicalPath:`/blog/page/${t}/`});return{meta:n.meta,links:n.links}},component:K(()=>B(()=>import(`./blog.page._page-Bm5Ttzj0.js`),__vite__mapDeps([274,23,1,2,24,25,4,26,27,5,156,6,7,8,9,10,11,157,158,12,159,13,16,86,160,162,163,164])),`component`)});z();var KH=G(`/blog/author/$slug`)({loader:({params:e})=>GL(e.slug),head:({loaderData:e,params:t})=>{if(!e?.author){let e=At({title:`Author not found | Dex`,canonicalPath:`/blog/author/${t.slug}/`,noindex:!0});return{meta:e.meta,links:e.links}}let{author:n}=e,r=At({title:`${n.name} | Dex`,description:n.bio||`Articles by ${n.name} on the Dex blog.`,canonicalPath:`/blog/author/${n.slug}/`});return{meta:r.meta,links:r.links}},component:K(()=>B(()=>import(`./blog.author._slug-D2ircnu0.js`),__vite__mapDeps([275,23,1,2,24,25,4,26,27,5,156,6,7,8,9,10,11,157,158,12,159,13,16,86,160])),`component`)}),qH=G(`/app/contact/$contactId`)({beforeLoad:({params:e,search:t})=>{throw L({to:`/app/contacts`,search:{...t,contact:e.contactId},mask:{to:`/app/contact/$contactId`,params:e,search:t}})}});z();var JH=G(`/app/settings/`)({component:K(()=>B(()=>import(`./app.settings.index-DFpyVSJ2.js`),__vite__mapDeps([276,4,1,88,2,27,5])),`component`)});z();var YH=G(`/app/settings/zapier`)({head:()=>J(`Zapier`),loader:async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await B(async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getPublicApiKeysCollection:e,getUserCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),t().preload()]),null},component:K(()=>B(()=>import(`./app.settings.zapier-C0iLwBgN.js`),__vite__mapDeps([277,4,1,5,2,6,7,8,9,10,11,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,278,128,279,49,40,36,42,50,221,280,281,282,110])),`component`)});z();var XH=G(`/app/settings/text-messaging`)({head:()=>J(`Text Messaging`),loader:async()=>{let{getSmsSettingsCollection:e,getUserCollection:t}=await B(async()=>{let{getSmsSettingsCollection:e,getUserCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getSmsSettingsCollection:e,getUserCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([t().preload(),e().preload()]),null},component:K(()=>B(()=>import(`./app.settings.text-messaging-mxwvM9uG.js`),__vite__mapDeps([283,1,2,23,24,25,4,26,27,5,109,6,7,8,9,10,11,30,31,183,35,38,39,40,36,45,37,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,284,102,103,104,54,105,106,107,108,84,46,32,33,34,285,89,91,92,93,49,286,223,224,225,205,240,226,227,241,262,128,111,101,112,113,114,287,288,289,100,110,115,28,116,290,280,281,291,256,58,292,190,293])),`component`)});z();var ZH=G(`/app/settings/team`)({head:()=>J(`Team`),component:K(()=>B(()=>import(`./app.settings.team-5owPQ91x.js`),__vite__mapDeps([294,4,1,5,2,6,7,8,9,10,11,280,281])),`component`)});z();var QH=G(`/app/settings/tags`)({component:K(()=>B(()=>import(`./app.settings.tags-C_GQt0kS.js`),__vite__mapDeps([295,4,1,88,2,27,5])),`component`)}),$H=Zt({oauth_status:qt([`success`,`error`,`cancelled`]).optional(),email:Kt().optional(),error_code:Kt().optional(),error_message:Kt().optional(),error_reason:Kt().optional(),granola_status:qt([`pending`,`error`]).optional(),granola_reason:Kt().optional()}),eU=Zt({connect:qt([`linkedin`]).optional().catch(void 0)}),tU=Zt({highlight:qt([`linkedin`]).optional().catch(void 0)}),nU=`sync-utility`,rU=Zt({source:Kt().optional().catch(void 0),reason:qt([`trigger-login`,`imessage-sync`]).optional().catch(void 0)});function iU(e){return e.source===`sync-utility`?e.reason??null:null}z();var aU=G(`/app/settings/sync-integrations`)({head:()=>J(`Sync & Integrations`),validateSearch:$H.extend(rU.shape).extend(eU.shape).extend(tU.shape),loader:async()=>{let{getGranolaConnectionCollection:e,getOAuthCredentialsCollection:t,getUserCollection:n,getWorkflowSettingsCollection:r}=await B(async()=>{let{getGranolaConnectionCollection:e,getOAuthCredentialsCollection:t,getUserCollection:n,getWorkflowSettingsCollection:r}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getGranolaConnectionCollection:e,getOAuthCredentialsCollection:t,getUserCollection:n,getWorkflowSettingsCollection:r}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([n().preload(),t().preload(),r().preload(),e().preload()]),null},component:K(()=>B(()=>import(`./app.settings.sync-integrations-ngzlVfkS.js`),__vite__mapDeps([296,1,2,23,24,25,4,26,27,88,5,6,7,8,9,10,11,30,31,236,297,298,232,224,33,111,101,102,103,104,54,105,106,107,108,109,112,113,114,84,35,38,40,36,37,39,41,42,43,85,56,46,32,34,44,45,47,48,299,300,301,302,246,247,248,189,0,49,50,115,28,225,205,185,186,290,128,204,164,184,57,206,91,92,241,278,262,303,304,127,266,305,306,251,307,308,190,309,310,97,311,118,96,312,313,314,315,316,93,94,279,221,317,318,319,320,321,322,323,280,281,324])),`component`)});z();
77var oU=G(`/app/settings/social-links`)({component:K(()=>B(()=>import(`./app.settings.social-links-C7t8lf5e.js`),__vite__mapDeps([325,4,1,88,2,27,5])),`component`)});z();var sU=G(`/app/settings/profile`)({head:()=>J(`Profile`),loader:()=>(B(async()=>{let{getUserCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getUserCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114])).then(({getUserCollection:e})=>e().preload()).catch(()=>{}),null),component:K(()=>B(()=>import(`./app.settings.profile-DKT80QcM.js`),__vite__mapDeps([326,1,2,4,88,27,127,101,102,103,104,54,105,106,107,108,109,112,5,6,7,8,9,10,11,30,24,31,237,84,35,38,40,36,37,26,39,41,42,43,85,56,46,32,33,34,44,45,47,48,0,49,50,221,100,110,111,113,114,115,28,116,240,226,227,262,128,280,281,293,223,224,225,205,185,186])),`component`)});z();var cU=G(`/app/settings/notifications`)({head:()=>J(`Notifications`),loader:async()=>{let{getNotificationPreferencesCollection:e}=await B(async()=>{let{getNotificationPreferencesCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getNotificationPreferencesCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await e().preload(),null},component:K(()=>B(()=>import(`./app.settings.notifications-YjwTzHwU.js`),__vite__mapDeps([327,1,2,23,24,25,4,26,27,5,30,9,11,31,183,7,8,35,38,39,40,36,45,37,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,262,128,111,101,102,103,104,54,105,106,107,108,109,112,113,114,305,328,310,6,10,97,32,33,34,46,311,118,96,287,280,281,329,291,256,58,292,190])),`component`)});z();var lU=G(`/app/settings/note-types`)({component:K(()=>B(()=>import(`./app.settings.note-types-C5UacwNx.js`),__vite__mapDeps([330,4,1,88,2,27,5])),`component`)}),uU=Zt({tab:qt([`import`,`export`]).default(`import`).catch(`import`)});z();var dU=G(`/app/settings/import-export`)({head:()=>J(`Import / Export`),validateSearch:uU,loader:async()=>{let{getContactsCollection:e,getGroupsCollection:t,getTagsCollection:n,getCustomFieldsCollection:r,getUserCollection:i}=await B(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getTagsCollection:n,getCustomFieldsCollection:r,getUserCollection:i}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getTagsCollection:n,getCustomFieldsCollection:r,getUserCollection:i}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),t().preload(),n().preload(),r().preload(),i().preload()]),null},component:K(()=>B(()=>import(`./app.settings.import-export-BqZKhlUc.js`),__vite__mapDeps([331,1,2,23,24,25,4,26,27,88,5,6,7,8,9,10,11,30,31,81,73,74,111,101,102,103,104,54,105,106,107,108,109,112,113,114,28,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,189,0,126,127,128,100,110,115,116,240,332,250,262,333,316,57,92,93,56,94,334,335,188,336,337,247,248,338,339,340,183,85,184,50,185,186,90,221,341,342,91,280,281,291,256,58,324])),`component`)});z();var fU=G(`/app/settings/general`)({head:()=>J(`General settings`),loader:async()=>{let{getMeetingTypesCollection:e,getWorkflowSettingsCollection:t}=await B(async()=>{let{getMeetingTypesCollection:e,getWorkflowSettingsCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getMeetingTypesCollection:e,getWorkflowSettingsCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([t().preload(),e().preload()]),null},component:K(()=>B(()=>import(`./app.settings.general-CDna1SwQ.js`),__vite__mapDeps([343,1,2,4,5,104,6,7,8,9,10,11,30,24,31,183,35,38,39,40,36,45,37,26,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,102,103,54,105,106,107,108,109,221,286,84,46,285,223,224,225,205,290,128,111,101,112,113,114,344,345,280,281,292,190])),`component`)}),pU=[`social-links`,`custom-fields`,`note-types`,`tags`],mU=Zt({tab:qt(pU).default(`social-links`).catch(`social-links`)});z();
77var hU=G(`/app/settings/data`)({head:()=>J(`Data Setup`),validateSearch:mU,loader:async()=>{let{getCustomFieldsCollection:e,getMeetingTypesCollection:t,getSocialSettingsCollection:n,getTagsCollection:r}=await B(async()=>{let{getCustomFieldsCollection:e,getMeetingTypesCollection:t,getSocialSettingsCollection:n,getTagsCollection:r}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getCustomFieldsCollection:e,getMeetingTypesCollection:t,getSocialSettingsCollection:n,getTagsCollection:r}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return r().preload().catch(()=>{}),await Promise.all([n().preload(),e().preload(),t().preload()]),null},component:K(()=>B(()=>import(`./app.settings.data-DlGJyIDx.js`),__vite__mapDeps([346,1,2,23,24,25,4,26,27,88,5,6,7,8,9,10,11,30,31,347,183,35,38,39,40,36,45,37,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,348,297,237,239,33,349,102,103,104,54,105,106,107,108,109,84,46,32,34,49,240,226,227,229,225,205,204,164,206,91,92,344,128,111,101,112,113,114,241,350,303,351,253,254,316,93,352,333,353,354,189,89,339,280,292,190])),`component`)});z();var gU=G(`/app/settings/custom-fields`)({component:K(()=>B(()=>import(`./app.settings.custom-fields-Cut2D5_E.js`),__vite__mapDeps([355,4,1,88,2,27,5])),`component`)});z();var _U=G(`/app/settings/billing`)({head:()=>J(`Plans and billing`),loader:()=>(B(async()=>{let{getBillingCollection:e,getUserCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getBillingCollection:e,getUserCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114])).then(({getBillingCollection:e,getUserCollection:t})=>Promise.all([e().preload(),t().preload()])).catch(()=>{}),null),component:K(()=>B(()=>import(`./app.settings.billing-NBSmAM5L.js`),__vite__mapDeps([356,1,2,23,24,25,4,26,27,5,6,7,8,9,10,11,357,81,182,78,31,358,33,54,32,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,311,221,240,261,110,101,102,103,104,105,106,107,108,109,127,112,30,97,128,111,113,114,28,0,262,280,281])),`component`)});z();var vU=G(`/app/settings/automation`)({head:()=>J(`Automation`),loader:async()=>{let{getNotificationPreferencesCollection:e,getWorkflowSettingsCollection:t}=await B(async()=>{let{getNotificationPreferencesCollection:e,getWorkflowSettingsCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getNotificationPreferencesCollection:e,getWorkflowSettingsCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([t().preload(),e().preload()]),null},component:K(()=>B(()=>import(`./app.settings.automation-DRRTPf8S.js`),__vite__mapDeps([359,4,1,5,2,30,24,9,11,31,290,128,111,101,102,103,104,54,105,106,107,108,109,112,113,114,280,281,329,291,256,7,8,35,58,36,43,292,190,39,45,50])),`component`)});z();var yU=G(`/app/settings/api`)({head:()=>J(`Dex API & MCP`),loader:async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await B(async()=>{let{getPublicApiKeysCollection:e,getUserCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getPublicApiKeysCollection:e,getUserCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),t().preload()]),null},component:K(()=>B(()=>import(`./app.settings.api-Xq_-iySe.js`),__vite__mapDeps([360,1,2,4,5,6,7,8,9,10,11,361,362,363,232,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,32,33,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48,189,241,278,128,279,49,50,221,364,316,57,92,93,56,94,280,281,282,110])),`component`)});z();var bU=G(`/app/settings/$section`)({component:K(()=>B(()=>import(`./app.settings._section--68I2Flp.js`),__vite__mapDeps([365,4,1,5,2,11,258,280])),`component`)});z();var xU=G(`/app/onboarding/`)({beforeLoad:async()=>{if(typeof window>`u`)throw L({to:vH[yH]});let[{fetchUserForGate:e},{fetchOnboardingVariantForGate:t}]=await Promise.all([B(()=>Promise.resolve().then(()=>tz),void 0),B(()=>import(`./onboarding-experiment-gate-C36FuCtf.js`).then(e=>e.n),__vite__mapDeps([143,1,101,102,103,104,54,105,106,107,108,109]))]),n=await e(),r=Wd(await t(n));throw EH(n?.id)?L({to:jH(n?.id,null,r)}):L({to:jH(n?.id,{linkedin_profile_id:n?.linkedin_profile_id,job_title:n?.job_title,school:n?.school,about_me:n?.about_me},r)})}});z();var SU=G(`/app/onboarding/resurface`)({head:()=>J(`Who to resurface`),component:K(()=>B(()=>import(`./app.onboarding.resurface-CUxnq27R.js`),__vite__mapDeps([366,1,2,4,5,246,9,367,6,7,8,10,11,30,24,31,111,101,102,103,104,54,105,106,107,108,109,112,113,114,300,301,351,128,368,311,369,270,127,110,126,100,115,28,116,250,247,248,370,88,27,163,262,266,304,305,193,314,264,371])),`component`)});z();var CU=G(`/app/onboarding/phone`)({head:()=>J(`Your AI assistant`),component:K(()=>B(()=>import(`./app.onboarding.phone-6FG59Gv7.js`),__vite__mapDeps([372,1,2,4,5,6,7,8,9,10,11,32,33,34,35,24,36,37,26,38,39,40,41,42,43,44,45,46,47,48,49,50,286,84,85,56,285,223,224,225,205,185,186,288,370,88,27,163,111,101,102,103,104,54,105,106,107,108,109,112,30,31,113,114,262,128,266,304,127,300,115,28,305,193,314,264,289,100,110,116,290])),`component`)});z();var wU=G(`/app/onboarding/identity`)({head:()=>J(`Welcome to Dex`),component:K(()=>B(()=>import(`./app.onboarding.identity-CSaEcBg4.js`),__vite__mapDeps([373,1,2,4,5,6,7,8,9,10,11,28,246,247,106,248,262,128,111,101,102,103,104,54,105,107,108,109,112,30,24,31,113,114,370,88,27,163,266,304,127,300,115,305,193,314,264,374,110,371])),`component`)});z();var TU=G(`/app/onboarding/extension`)({head:()=>J(`Dex Browser Extension`),component:K(()=>B(()=>import(`./app.onboarding.extension-CqC73YSl.js`),__vite__mapDeps([375,1,2,4,5,6,7,8,9,10,11,28,370,88,27,163,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,262,128,266,304,127,300,115,305,193,314,264])),`component`)});z();var EU=G(`/app/onboarding/everywhere`)({head:()=>J(`Take Dex everywhere`),component:K(()=>B(()=>import(`./app.onboarding.everywhere-CU9Zlhac.js`),__vite__mapDeps([376,4,1,88,2,27,5,97,96,9,370,6,7,8,10,11,163,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,262,128,266,304,127,300,115,28,305,193,314,264])),`component`)});z();var DU=G(`/app/onboarding/copilot`)({head:()=>J(`Set up your account with AI`),component:K(()=>B(()=>import(`./app.onboarding.copilot-D31eMTqy.js`),__vite__mapDeps([37
777,1,2,4,88,27,5,6,7,8,9,10,11,221,262,128,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,378,341,342,36,186,91,92,57,93,41,42,47,56,94,370,163,266,304,127,300,115,28,305,193,314,264,371])),`component`)});z();var OU=G(`/app/onboarding/contacts`)({head:()=>J(`Add your contacts`),component:K(()=>B(()=>import(`./app.onboarding.contacts-Drbt3ZHn.js`),__vite__mapDeps([379,1,2,4,5,6,7,8,9,10,11,30,24,31,224,111,101,102,103,104,54,105,106,107,108,109,112,113,114,302,23,25,26,27,246,247,248,0,49,40,36,42,50,303,304,127,128,300,115,28,266,305,369,270,110,126,100,116,250,370,88,163,262,193,314,264,371,323,299,301])),`component`)});z();var kU=G(`/app/onboarding/connected`)({validateSearch:$H,head:()=>J(`Connected accounts`),component:K(()=>B(()=>import(`./app.onboarding.connected-BRYzvNNU.js`),__vite__mapDeps([380,1,2,4,5,6,7,8,9,10,11,189,304,127,101,102,103,104,54,105,106,107,108,109,112,30,24,31,128,111,113,114,300,115,28,266,305,310,97,32,33,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48,311,118,96,312,262,313,314,370,88,27,163,193,264,381,306,278,251,317,321,322])),`component`)});z();var AU=G(`/app/onboarding/connect-whatsapp`)({head:()=>J(`Sync your WhatsApp`),component:K(()=>B(()=>import(`./app.onboarding.connect-whatsapp-D8J_nWqu.js`),__vite__mapDeps([382,1,2,4,5,6,7,8,9,10,11,30,24,31,114,101,102,103,104,54,105,106,107,108,109,112,370,88,27,163,111,113,262,128,266,304,127,300,115,28,305,193,314,264,319,383,231,136,96,97,381,306,278,251,322])),`component`)});z();var jU=G(`/app/onboarding/connect-mcp`)({head:()=>J(`Your network, inside your AI assistant`),component:K(()=>B(()=>import(`./app.onboarding.connect-mcp-BTvKNi_L.js`),__vite__mapDeps([384,1,2,4,5,6,7,8,9,10,11,385,370,88,27,163,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,262,128,266,304,127,300,115,28,305,193,314,264,319,383,231,136,96,97,381,306,278,251,364,32,33,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48,189,316,57,92,93,56,94,279,49,50,221])),`component`)});z();var MU=G(`/app/onboarding/connect-linkedin`)({head:()=>J(`Connect your LinkedIn network`),component:K(()=>B(()=>import(`./app.onboarding.connect-linkedin-D5ZWDe9y.js`),__vite__mapDeps([386,1,2,4,5,6,7,8,9,10,11,370,88,27,163,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,262,128,266,304,127,300,115,28,305,193,314,264,319,383,231,136,96,97,381,306,278,251,318,32,33,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48])),`component`)});z();var NU=G(`/app/onboarding/connect-instagram`)({head:()=>J(`Sync your Instagram DMs`),component:K(()=>B(()=>import(`./app.onboarding.connect-instagram-DZIIYtbr.js`),__vite__mapDeps([387,1,2,4,5,6,7,8,9,10,11,189,370,88,27,163,111,101,102,103,104,54,105,106,107,108,109,112,30,24,31,113,114,262,128,266,304,127,300,115,28,305,193,314,264,319,383,231,136,96,97,381,306,278,251,317,32,33,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48,313])),`component`)});z();var PU=G(`/app/onboarding/connect-imessage`)({head:()=>J(`Sync your iMessage`),component:K(()=>B(()=>import(`./app.onboarding.connect-imessage-J-qlPJA9.js`),__vite__mapDeps([388,1,2,4,5,6,7,8,9,10,11,189,116,104,108,109,312,30,24,31,111,101,102,103,54,105,106,107,112,113,114,28,32,33,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48,115,262,128,304,127,300,266,305,313,314,370,88,27,163,193,264,319,383,231,136,96,97,381,306,278,251])),`component`)});z();var FU=G(`/app/onboarding/connect-email`)({validateSearch:$H,head:()=>J(`Connect your email & calendar`),component:K(()=>B(()=>import(`./app.onboarding.connect-email-U_xDsYVi.js`),__vite__mapDeps([389,4,1,5,2,6,7,8,9,10,11,189,304,127,101,102,103,104,54,105,106,107,108,109,112,30,24,31,128,111,113,114,300,115,28,266,305,370,88,27,163,262,193,314,264,319,383,231,136,96,97,381,306,278,251])),`component`)});z();var IU=G(`/app/onboarding/connect`)({validateSearch:$H,head:()=>J(`Connect your accounts`),component:K(()=>B(()=>import(`./app.onboarding.connect-D-NkO2uZ.js`),__vite__mapDeps([390,1,2,4,5,6,7,8,9,10,11,189,304,127,101,102,103,104,54,105,106,107,108,109,112,30,24,31,128,111,113,114,300,115,28,266,305,310,97,32,33,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48,311,118,96,312,262,313,314,315,232,316,57,92,93,56,94,279,49,50,221,370,88,27,163,193,264,381,306,278,251,317,320,321,322])),`component`)});z();var LU=G(`/app/onboarding/about`)({head:()=>J(`Tell us about yourself`),component:K(()=>B(()=>import(`./app.onboarding.about-CAVysPxS.js`),__vite__mapDeps([391,1,2,4,110,101,102,103,104,54,105,106,107,108,109,127,112,5,6,7,8,9,10,11,249,49,40,36,42,50,221,262,128,111,30,24,31,113,114,370,88,27,163,266,304,300,115,28,305,193,314,264,374])),`component`)});z();var RU=G(`/app/auth/sign-up`)({head:()=>J(`Sign Up`),component:K(()=>B(()=>import(`./app.auth.sign-up-BaU5PevH.js`),__vite__mapDeps([392,1,2,23,24,25,4,26,27,5,6,7,8,9,10,11,297,136,12,49,40,36,42,50,100,101,102,103,104,54,105,106,107,108,109,110,111,112,30,31,113,114,115,28,116,240,393,117,13,118,394,395,143,145])),`component`)});z();var zU=G(`/app/auth/sign-in`)({head:()=>J(`Sign In`),component:K(()=>B(()=>import(`./app.auth.sign-in-g7DNFRKF.js`),__vite__mapDeps([396,1,2,23,24,25,4,26,27,397,398,140,201,202,399,200,88,5,6,7,8,9,10,11,297,136,12,49,40,36,42,50,100,101,102,103,104,54,105,106,107,108,109,110,111,112,30,31,113,114,115,28,116,240,393,117,13,118,394,395,143,145])),`component`)});z();var BU=()=>B(()=>import(`./app.auth.mcp-authorize-B90fxjGB.js`),__vite__mapDeps([400,1,2,4,6,5,7,8,9,10,11,362,189,100,101,102,103,104,54,105,106,107,108,109,110,111,112,30,24,31,113,114,115,28,116,401,206,117,12,13,118,402])),VU=Zt({authorization_transaction:Kt().min(32).max(256).catch(``)}),HU=G(`/app/auth/mcp-authorize`)({validateSearch:VU,head:()=>J(`Authorize MCP Connection`),component:K(BU,`component`)});z();var UU=G(`/app/auth/forgot-password`)({head:()=>J(`Reset Password`),component:K(()=>B(()=>import(`./app.auth.forgot-password-B7FEIp9F.js`),__vite__mapDeps([403,1,2,23,24,25,4,26,27,404,201,202,5,6,7,8,9,10,11,12,49,40,36,42,50,100,101,102,103,104,54,105,106,107,108,109,110,111,112,30,31,113,114,115,28,116,240,117,13,118,394])),`component`)});z();var WU=G(`/app/auth/device-code`)({head:()=>J(`Connect an MCP Device`,{noindex:!0}),component:K(()=>B(()=>import(`./app.auth.device-code-BHYO_lia.js`),__vite__mapDeps([405,1,2,4,6,5,7,8,9,10,11,357,362,100,101,102,103,104,54,105,106,107,108,109,110,111,112,30,24,31,113,114,115,28,116,117,12,13,118,288,402])),`component`)});z();var GU=()=>B(()=>import(`./app.auth.check-email-CZzDwNLR.js`),__vite__mapDeps([406,1,2,23,24,25,4,26,27,5,6,7,8,9,10,11,12,102,103,104,54,105,106,107,108,109,49,40,36,42,50,100,101,110,111,112,30,31,113,114,115,28,116,240,117,13,118,394,407,0,174,175])),KU=Zt({email:Kt().email().optional().catch(void 0)}),qU=G(`/app/auth/check-email`)({validateSearch:KU,head:()=>J(`Check Your Email`),component:K(GU,`component`)});z();var JU=()=>B(()=>import(`./app.auth.action-BChhHvhn.js`),__vite__mapDeps([408,1,2,23,24,25,4,26,27,88,5,6,7,8,9,10,11,49,40,36,42,50,100,101,102,103,104,54,105,106,107,108,109,110,111,112,30,31,113,114,115,28,116,240,117,12,13,118,394,407,0])),YU=Zt({mode:Kt().optional().catch(void 0),oobCode:Kt().optional().catch(void 0),continueUrl:Kt().optional().catch(void 0)}),XU=G(`/app/auth/action`)({validateSearch:YU,head:()=>J(`Account`,{noindex:!0}),component:K(JU,`component`)});z();var ZU=G(`/app/_shell/`)({validateSearch:FH,head:()=>J(`Home`),component:K(()=>B(()=>import(`./app._shell.index-DDB0LJZR.js`),__vite__mapDeps([409,1,2,23,24,25,4,26,27,88,270,101,
77102,103,104,54,105,106,107,108,109,112,127,110,410,5,6,7,8,9,10,11,30,31,207,157,411,412,413,169,0,414,111,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,128,100,115,28,116,415,255,416,183,45,44,184,47,48,50,185,186,94,90,57,417,163,164,188,336,418,301,237,129,239,244,33,84,46,32,34,246,299,300,247,49,223,224,225,205,240,227,226,419,332,269,204,206,91,92,420,250,421,236,297,311,249,221,228,422,241,368,351,307,304,266,305,423,345,308,233,424,425,209,125,378,335,367,369,302,189,426,222,427,428,262,251,252,429,430,431,190,432,338,433,271,434,435,436,118,328,310,97,96,287,437,312,313,314,315,232,316,93,279,438])),`component`)});z();var QU=G(`/app/_shell/timeline`)({head:()=>J(`Timeline`),loader:async()=>{let{getGranolaConnectionCollection:e,getTimelineCollection:t}=await B(async()=>{let{getGranolaConnectionCollection:e,getTimelineCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getGranolaConnectionCollection:e,getTimelineCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([t().preload(),e().preload()]),null},component:K(()=>B(()=>import(`./app._shell.timeline-ubVCgjNP.js`),__vite__mapDeps([439,1,2,4,5,6,7,8,9,10,11,440,416,23,24,25,26,27,207,183,35,38,39,40,36,45,37,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,417,163,164,102,103,104,54,105,106,107,108,109,188,336,418,301,237,129,239,244,33,111,101,112,30,31,113,114,84,46,32,34,246,299,300,247,248,49,100,110,115,28,116,126,127,128,223,224,225,205,240,227,226,419,332,269,270,204,206,91,92,420,250,421,88,236,411,412,413,169,0,414,415,255,297,311,249,221,228,422,241,368,351,307,304,266,305,423,345,308,441,151,442,443,427,335,428,444,189,290,445,190,446,251,309,447])),`component`)}),$U=[`contacts`,`groups`,`notes`,`tags`,`views`];z();var eW=G(`/app/_shell/search`)({head:()=>J(`Search`),validateSearch:Zt({q:Kt().optional().default(``),tab:qt($U).default(`contacts`).catch(`contacts`)}),loader:async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await B(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),t().preload(),n().preload()]),null},component:K(()=>B(()=>import(`./app._shell.search-BDc0-MBD.js`),__vite__mapDeps([448,1,2,4,88,27,127,101,102,103,104,54,105,106,107,108,109,112,449,6,5,7,8,9,10,11,450,23,24,25,26,30,31,81,451,412,413,169,0,414,111,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,128,100,110,115,28,116,415,255,82,163,164,183,45,44,184,47,48,50,185,186,94,90,57,297,237,224,239,33,84,46,32,34,246,299,300,301,247,452,453,49,221,225,205,240,226,227,454,335,188,336,427,270,418,455,223,228,456,351,368,311,457,204,206,91,92,241,278,262,458,303,459,302,333,429,304,266,305,460,461,236,208,462,151,213,216,463,214,215,196,350,464,251,401,334,337,338,465,443,422,466,148,83,417,467,220,426,222,242,423,253,254,352,353,442,207,428,444,189,306,434])),`component`)});z();var tW=G(`/app/_shell/reminders`)({head:()=>J(`Reminders`),loader:async()=>{let{getRemindersCollection:e}=await B(async()=>{let{getRemindersCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getRemindersCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await e().preload(),null},component:K(()=>B(()=>import(`./app._shell.reminders-DlGCGH7C.js`),__vite__mapDeps([468,1,2,23,24,25,4,26,27,5,6,7,8,9,10,11,236,207,416,183,35,38,39,40,36,45,37,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,417,163,164,102,103,104,54,105,106,107,108,109,188,336,418,301,237,129,239,244,33,111,101,112,30,31,113,114,84,46,32,34,246,299,300,247,248,49,100,110,115,28,116,126,127,128,223,224,225,205,240,227,226,419,332,269,270,204,206,91,92,420,250,151,241,446,255,316,93,437])),`component`)});z();var nW=G(`/app/_shell/refer`)({head:()=>J(`Refer & Earn`),component:K(()=>B(()=>import(`./app._shell.refer-Ch7mc8Pf.js`),__vite__mapDeps([469,1,2,4,6,5,7,8,9,10,11,102,103,104,54,105,106,107,108,109])),`component`)});z();var rW=G(`/app/_shell/priority-map`)({head:()=>
77J(`Priority Map`),loader:async()=>{let{getContactsCollection:e}=await B(async()=>{let{getContactsCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await e().preload(),null},component:K(()=>B(()=>import(`./app._shell.priority-map-BjCNbjvv.js`),__vite__mapDeps([470,1,2,4,88,27,5,6,7,8,9,10,11,30,24,31,471,23,25,26,104,472,236,147,81,451,208,83,210,473,127,101,102,103,54,105,106,107,108,109,112,417,163,164,188,336,418,301,413,297,169,33,84,35,38,40,36,37,39,41,42,43,85,56,46,299,300,189,49,50,221,223,224,225,44,45,47,48,205,185,186,240,333,128,111,113,114,474,457,190,352,183,184,94,90,57,213,216,78,218,234,238,239,244,220,32,34,246,335,247,248,311,475,462,262,348,196,285,249,126,100,110,115,28,116,286,228,290,427,270,455,456,445,227,253,254,476,230,204,206,91,92,444,428,350,252,431,337,351,368,307,304,266,305,243,256,58,338,182,212,129,233,245,477,464,241,303,423,478,479,433,480,481,482,272])),`component`)});z();var iW=G(`/app/_shell/network`)({head:()=>J(`Network`),loader:async()=>{let{getContactsCollection:e,getGroupsCollection:t}=await B(async()=>{let{getContactsCollection:e,getGroupsCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),t().preload()]),null},component:K(()=>B(()=>import(`./app._shell.network-D6-V53Hb.js`),__vite__mapDeps([483,4,1,88,2,27,5,316,7,8,9,10,35,24,40,36,42,48,57,92,93,41,47,56,94])),`component`)});z();var aW=G(`/app/_shell/merge-and-fix`)({head:()=>J(`Merge & Fix`),component:K(()=>B(()=>import(`./app._shell.merge-and-fix-Z1pfBBPs.js`),__vite__mapDeps([484,1,2,4,88,27,127,101,102,103,104,54,105,106,107,108,109,112,5,6,7,8,9,10,11,30,24,31,216,232,220,128,111,113,114,84,35,38,40,36,37,26,39,41,42,43,85,56,46,247,248,302,23,25,246,189,460,0,126,100,110,115,28,116,446,485])),`component`)});z();var oW=G(`/app/_shell/map`)({head:()=>J(`Map`),component:K(()=>B(()=>import(`./app._shell.map-DtecuZLO.js`),__vite__mapDeps([486,25,1,2,4,26,5,487,23,24,27,88,101,102,103,104,54,105,106,107,108,109,127,112,6,7,8,9,10,11,347,164,214,217,224,463,462,30,31,262,128,111,113,114,151,215,196,335,188,336,223,225,35,38,36,37,39,40,41,42,43,84,85,56,46,44,45,47,48,205,185,186,228,456,350,464,126,100,110,115,28,116,241,34,33,246,247,248,49,50,423,478,479,488,410,489])),`component`)});z();var sW=G(`/app/_shell/locations`)({head:()=>J(`Locations`),loader:async()=>{let{getLocationsCollection:e,getContactsCollection:t}=await B(async()=>{let{getLocationsCollection:e,getContactsCollection:t}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getLocationsCollection:e,getContactsCollection:t}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),t().preload()]),null},component:K(()=>B(()=>import(`./app._shell.locations-C5LofOp8.js`),__vite__mapDeps([490,1,2,23,24,25,4,26,27,5,6,7,8,9,10,11,440,164,348,491,224,33,111,101,102,103,104,54,105,106,107,108,109,112,30,31,113,114,84,35,38,40,36,37,39,41,42,43,85,56,46,32,34,44,45,47,48,49,50,126,127,128,100,110,115,28,116,240,476,226,227,204,184,205,185,186,57,206,91,92,303,459,302,246,247,248,423,88,253,401,492,270,438])),`component`)});z();var cW=G(`/app/_shell/keep-in-touch`)({head:()=>J(`Keep in Touch`),loader:async()=>{let{getContactsCollection:e}=await B(async()=>{let{getContactsCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await e().preload(),null},component:K(()=>B(()=>import(`./app._shell.keep-in-touch-BoHoTExr.js`),__vite__mapDeps([493,1,2,4,5,6,7,8,9,10,11,30,24,31,494,348,84,35,38,40,36,37,26,39,41,42,43,85,56,46,335,102,103,104,54,105,106,107,108,109,188,336,418,301,223,224,225,44,45,47,48,205,185,186,227,228,101,127,112,128,111,113,114,204,164,184,57,206,91,92,420,427,270,126,100,110,115,28,116,429,423,88,27,253,190,50,316,93,94,495,496,246,247,248,435,207,436,299,300,332])),`component`)});z();var lW=G(`/app/_shell/import`)({component:K(()=>B(()=>import(`./app._shell.import-Czs-bI3j.js`),__vite__mapDeps([497,4,1,88,2,27,5])),`component`)});z();var uW=()=>B(()=>import(`./app._shell.game-D3ZOqKu1.js`),__vite__mapDeps([498,1,2,23,24,25,4,26,27,270,101,
77102,103,104,54,105,106,107,108,109,112,127,5,6,7,8,9,10,11,208,411,462,30,31,262,128,111,113,114,220,12,84,35,38,40,36,37,39,41,42,43,85,56,46,335,188,336,299,300,301,418,247,248,443,475,348,297,234,196,239,33,189,285,249,49,50,221,126,100,110,115,28,116,223,224,225,44,45,47,48,205,185,186,286,228,290,427,455,456,445,227,253,254,474,415,230,419,417,163,164,332,423,88,86,13,193,481,480,496,246])),dW=Zt({play:qt([`priority`,`frequency`]).optional().catch(void 0)}),fW=G(`/app/_shell/game`)({head:()=>J(`Quick Action`),validateSearch:dW,loader:async()=>{let{getContactsCollection:e}=await B(async()=>{let{getContactsCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await e().preload(),null},component:K(uW,`component`)});z();var pW=G(`/app/_shell/copilot`)({head:()=>J(`Dex Copilot`),component:K(()=>B(()=>import(`./app._shell.copilot-B5n8T69D.js`),__vite__mapDeps([499,1,2,23,24,25,4,26,27,399,201,202,200,88,404,5,6,7,8,9,10,11,30,31,125,101,102,103,104,54,105,106,107,108,109,111,112,113,114,126,127,128,100,110,115,28,116,129,500,424,425,0,209,239,84,35,38,40,36,37,39,41,42,43,85,56,46,414,248,227,204,164,44,45,184,47,48,205,185,186,57,206,91,92,378,33,32,34,221,226,428,241,262,271,257,341])),`component`)});z();var mW=G(`/app/_shell/contacts`)({head:()=>J(`Contacts`),loader:async()=>{let{getContactsCollection:e,getGranolaConnectionCollection:t,getViewsCollection:n,getPreferencesCollection:r}=await B(async()=>{let{getContactsCollection:e,getGranolaConnectionCollection:t,getViewsCollection:n,getPreferencesCollection:r}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e,getGranolaConnectionCollection:t,getViewsCollection:n,getPreferencesCollection:r}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await Promise.all([e().preload(),n().preload(),r().preload(),t().preload()]),null},component:K(()=>B(()=>import(`./app._shell.contacts-C4JCZ5BI.js`),__vite__mapDeps([501,4,1,5,2,502,25,26,88,27,101,102,103,104,54,105,106,107,108,109,270,112,127,449,6,7,8,9,10,11,450,23,24,30,31,81,451,412,413,169,0,414,111,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,128,100,110,115,28,116,415,255,82,163,164,183,45,44,184,47,48,50,185,186,94,90,57,297,237,224,239,33,84,46,32,34,246,299,300,301,247,452,453,49,221,225,205,240,226,227,454,335,188,336,427,418,455,223,228,456,351,368,311,457,204,206,91,92,241,278,262,458,303,459,302,333,429,304,266,305,460,461,236,208,462,151,213,216,463,214,215,196,350,464,251,401,334,337,338,472,440,466,148,83,417,467,220,426,222,242,423,253,254,352,353,347,473,189,474,190,211,78,348,158,491,219,229,230,284,298,235,238,243,476,306,488,410,489,503,504,494,447,433,495,354,89,93,339])),`component`)});z();var hW=G(`/app/_shell/birthdays`)({head:()=>J(`Birthdays`),loader:()=>(B(async()=>{let{prefetchBirthdays:e}=await import(`./useBirthdays-ZKlx5-ig.js`).then(e=>e.r);return{prefetchBirthdays:e}},__vite__mapDeps([432,1,2,127,4,101,102,103,104,54,105,106,107,108,109,112,410,5,30,24,9,11,31,128,111,113,114,126,100,110,115,28,116,338])).then(({prefetchBirthdays:e})=>e()).catch(()=>{}),null),component:K(()=>B(()=>import(`./app._shell.birthdays-DAxlYa38.js`),__vite__mapDeps([505,1,2,4,5,9,11,210,297,107,84,24,7,35,38,40,36,37,26,39,41,42,43,85,56,46,302,23,25,27,246,247,106,248,311,303,351,128,111,101,102,103,104,54,105,108,109,112,30,31,113,114,432,127,410,126,100,110,115,28,116,338,353,447,224,33,49,50,485])),`component`)});z();var gW=G(`/app/_shell/archive`)({head:()=>J(`Archived Contacts`),loader:async()=>{let{getContactsCollection:e}=await B(async()=>{let{getContactsCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await e().preload(),null},component:K(()=>B(()=>import(`./app._shell.archive-9eWHyp-y.js`),__vite__mapDeps([506,4,1,5,2,502,25,26,88,27,101,
77102,103,104,54,105,106,107,108,109,270,112,127,449,6,7,8,9,10,11,450,23,24,30,31,81,451,412,413,169,0,414,111,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,128,100,110,115,28,116,415,255,82,163,164,183,45,44,184,47,48,50,185,186,94,90,57,297,237,224,239,33,84,46,32,34,246,299,300,301,247,452,453,49,221,225,205,240,226,227,454,335,188,336,427,418,455,223,228,456,351,368,311,457,204,206,91,92,241,278,262,458,303,459,302,333,429,304,266,305,460,461,236,208,462,151,213,216,463,214,215,196,350,464,251,401,334,337,338,472,440,466,148,83,417,467,220,426,222,242,423,253,254,352,353,347,473,189,474,190,211,78,348,158,491,219,229,230,284,298,235,238,243,476,306,488,410,489,503,504,494,447,433,495,354,89,93,339])),`component`)});z();var _W=G(`/app/_shell/view/$viewId`)({loader:async({params:e})=>{let{getContactsCollection:t,getGroupsCollection:n,getViewsCollection:r}=await B(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114])),i=r();return await Promise.all([t().preload(),n().preload(),i.preload()]),{viewName:i.get(e.viewId)?.name?.trim()||void 0}},head:({loaderData:e})=>J(e?.viewName??`Contacts`),component:K(()=>B(()=>import(`./app._shell.view._viewId-DHzHbiQP.js`),__vite__mapDeps([507,4,1,5,2,502,25,26,88,27,101,102,103,104,54,105,106,107,108,109,270,112,127,449,6,7,8,9,10,11,450,23,24,30,31,81,451,412,413,169,0,414,111,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,128,100,110,115,28,116,415,255,82,163,164,183,45,44,184,47,48,50,185,186,94,90,57,297,237,224,239,33,84,46,32,34,246,299,300,301,247,452,453,49,221,225,205,240,226,227,454,335,188,336,427,418,455,223,228,456,351,368,311,457,204,206,91,92,241,278,262,458,303,459,302,333,429,304,266,305,460,461,236,208,462,151,213,216,463,214,215,196,350,464,251,401,334,337,338,472,440,466,148,83,417,467,220,426,222,242,423,253,254,352,353,347,473,189,474,190,211,78,348,158,491,219,229,230,284,298,235,238,243,476,306,488,410,489,503,504,494,447,433,495,354,89,93,339])),`component`)});z();var vW=G(`/app/_shell/tag/$tagId`)({loader:async({params:e})=>{let{getTagsCollection:t}=await B(async()=>{let{getTagsCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getTagsCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114])),n=t();return n.preload().catch(()=>{}),{tagName:n.get(e.tagId)?.name?.trim()||void 0}},head:({loaderData:e})=>J(e?.tagName??`Contacts`),component:K(()=>B(()=>import(`./app._shell.tag._tagId-CdOhZo9-.js`),__vite__mapDeps([508,4,1,5,2,502,25,26,88,27,101,102,103,104,54,105,106,107,108,109,270,112,127,449,6,7,8,9,10,11,450,23,24,30,31,81,451,412,413,169,0,414,111,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,128,100,110,115,28,116,415,255,82,163,164,183,45,44,184,47,48,50,185,186,94,90,57,297,237,224,239,33,84,46,32,34,246,299,300,301,247,452,453,49,221,225,205,240,226,227,454,335,188,336,427,418,455,223,228,456,351,368,311,457,204,206,91,92,241,278,262,458,303,459,302,333,429,304,266,305,460,461,236,208,462,151,213,216,463,214,215,196,350,464,251,401,334,337,338,472,440,466,148,83,417,467,220,426,222,242,423,253,254,352,353,347,473,189,474,190,211,78,348,158,491,219,229,230,284,298,235,238,243,476,306,488,410,489,503,504,494,447,433,495,354,89,93,339])),`component`)});z();var yW=G(`/app/_shell/location/$locationName`)({head:({params:e})=>J(decodeURIComponent(e.locationName)),validateSearch:e=>{let t=e.lat==null?void 0:Number(e.lat),n=e.lng==null?void 0:Number(e.lng);return{lat:t!=null&&!Number.isNaN(t)?t:void 0,lng:n!=null&&!Number.isNaN(n)?n:void 0}},loader:async()=>{let{getContactsCollection:e}=await B(async()=>{let{getContactsCollection:e}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114]));return await e().preload(),null},component:K(()=>B(()=>import(`./app._shell.location._locationName-C0LIISW2.js`),__vite__mapDeps([509,1,2,23,24,25,4,26,27,88,5,6,7,8,9,10,11,236,466,412,109,30,31,413,169,108,0,414,111,101,102,103,104,54,105,106,107,112,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,127,128,100,110,115,28,116,415,255,148,83,417,163,164,188,336,418,301,151,467,220,84,46,246,335,299,300,247,49,50,221,426,222,223,224,225,44,45,47,48,205,185,186,454,33,427,270,455,228,456,351,368,311,457,303,333,242,423,253,254,352,353,347,182,237,239,32,34,240,226,227,204,184,57,206,91,92,241,459,302,504,494,489,447,492,438])),`component`)});z();var bW=G(`/app/_shell/group/$groupId`)({loader:async({params:e})=>{let{getContactsCollection:t,getGroupsCollection:n,getViewsCollection:r}=await B(async()=>{let{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}=await import(`./collections-DEzfyqeN.js`).then(e=>e.t);return{getContactsCollection:e,getGroupsCollection:t,getViewsCollection:n}},__vite__mapDeps([111,1,101,102,103,104,54,105,106,107,108,109,112,30,2,24,4,5,9,11,31,113,114])),i=n();return await Promise.all([t().preload(),i.preload(),r().preload()]),{groupName:i.get(e.groupId)?.name?.trim()||void 0}},head:({loaderData:e})=>J(e?.groupName??`Contacts`),component:K(()=>B(()=>import(`./app._shell.group._groupId-Kk4sZwss.js`),__vite__mapDeps([510,4,1,5,2,502,25,26,88,27,101,
77102,103,104,54,105,106,107,108,109,270,112,127,449,6,7,8,9,10,11,450,23,24,30,31,81,451,412,413,169,0,414,111,113,114,41,85,40,36,37,35,38,39,42,43,56,248,126,128,100,110,115,28,116,415,255,82,163,164,183,45,44,184,47,48,50,185,186,94,90,57,297,237,224,239,33,84,46,32,34,246,299,300,301,247,452,453,49,221,225,205,240,226,227,454,335,188,336,427,418,455,223,228,456,351,368,311,457,204,206,91,92,241,278,262,458,303,459,302,333,429,304,266,305,460,461,236,208,462,151,213,216,463,214,215,196,350,464,251,401,334,337,338,472,440,466,148,83,417,467,220,426,222,242,423,253,254,352,353,347,473,189,474,190,211,78,348,158,491,219,229,230,284,298,235,238,243,476,306,488,410,489,503,504,494,447,433,495,354,89,93,339])),`component`)});z();var xW=G(`/app/_shell/network/`)({component:K(()=>B(()=>import(`./app._shell.network.index-28LUVIw0.js`),__vite__mapDeps([511,1,2,4,88,27,101,102,103,104,54,105,106,107,108,109,5,6,7,8,9,10,11,30,24,31,411,235,236,214,219,220,33,111,112,113,114,32,34,35,36,37,26,38,39,40,41,42,43,44,45,46,47,48,189,221,222,223,224,225,84,85,56,205,185,186,226,227,228,127,128,229,230,237,238,239,49,50,240,204,164,184,57,206,91,92,241,242,243,244,245,246,247,248,126,100,110,115,28,116,512,467,494,456,262,455,335,188,336,429,423,478,503,251,458,303,459,302,23,25,482,272,513,81,163,477,471,472,147,451,208,83,210,473,417,418,301,413,297,169,299,300,333,474,457,190,352,183,94,90,213,216,78,218,234,311,475,462,348,196,285,249,286,290,427,270,445,253,254,476,444,428,350,252,431,337,351,368,307,304,266,305,256,58,338,480,514,340,341,342,93])),`component`)});z();var SW=G(`/app/_shell/network/related`)({head:()=>J(`Related contacts`),component:K(()=>B(()=>import(`./app._shell.network.related-CXpn7nzK.js`),__vite__mapDeps([515,1,2,4,5,109,6,7,8,9,10,11,183,35,24,38,39,40,36,45,37,26,41,42,43,44,85,56,184,47,48,50,185,186,94,90,57,100,101,102,103,104,54,105,106,107,108,110,111,112,30,31,113,114,115,28,116,126,127,128,228,477,471,23,25,27,88,472,236,147,81,451,208,83,210,473,417,163,164,188,336,418,301,413,297,169,33,84,46,299,300,189,49,221,223,224,225,205,240,333,474,457,190,352,213,216,78,218,234,238,239,244,220,32,34,246,335,247,248,311,475,462,262,348,196,285,249,286,290,427,270,455,456,445,227,253,254,476,230,204,206,91,92,444,428,350,252,431,337,351,368,307,304,266,305,243,256,58,338,423,478,480,514])),`component`)});z();var CW=G(`/app/_shell/network/insights`)({head:()=>J(`Network insights`),validateSearch:e=>{let t=e.insightsMock;return{insightsMock:t===1||t===`1`||t===!0||t===`true`}},component:K(()=>B(()=>import(`./app._shell.network.insights-B6kmnKer.js`),__vite__mapDeps([516,1,2,4,88,27,127,101,102,103,104,54,105,106,107,108,109,112,5,6,7,8,9,10,11,81,164,238,33,246,247,248,126,128,111,30,24,31,113,114,100,110,115,28,116,423,433,84,35,38,40,36,37,26,39,41,42,43,85,56,46])),`component`)});z();var wW=G(`/app/_shell/network/companies`)({head:()=>J(`Companies network`),component:K(()=>B(()=>import(`./app._shell.network.companies-lHzb8Y_t.js`),__vite__mapDeps([517,1,2,4,5,6,7,8,9,10,11,411,245,33,84,24,35,38,40,36,37,26,39,41,42,43,85,56,46,246,247,106,248,49,50,126,101,102,103,104,54,105,107,108,109,127,112,128,111,30,31,113,114,100,110,115,28,116,228,262,429,227,423,88,27,478,482,272,513,81,163,164,224,251,477,471,23,25,472,236,147,451,208,83,210,473,417,188,336,418,301,413,297,169,299,300,189,221,223,225,44,45,47,48,205,185,186,240,333,474,457,190,352,183,184,94,90,57,213,216,78,218,234,238,239,244,220,32,34,335,311,475,462,348,196,285,249,286,290,427,270,455,456,445,253,254,476,230,204,206,91,92,444,428,350,252,431,337,351,368,307,304,266,305,243,256,58,338,303,480,514])),`component`)});z();var TW=G(`/app/_shell/copilot/`)({validateSearch:Zt({ask:Kt().optional()}),component:K(()=>B(()=>import(`./app._shell.copilot.index-D9MZLUEo.js`),[]),`component`)});z();var EW=G(`/app/_shell/copilot/$threadId`)({component:K(()=>B(()=>import(`./app._shell.copilot._threadId-Bg_c7hz1.js`),[]),`component`)});z();var DW=G(`/app/auth/referral/$kind/$id`)({head:()=>J(`Joining Dex`,{noindex:!0}),component:K(()=>B(()=>import(`./app.auth.referral._kind._id-DSXVcb69.js`),__vite__mapDeps([518,1,2,4,88,27,5,144])),`component`)}),OW=EC.update({id:`/testimonials`,path:`/testimonials`,getParentRoute:()=>US}),kW=DC.update({id:`/termsofservice`,path:`/termsofservice`,getParentRoute:()=>US}),AW=AC.update({id:`/support`,path:`/support`,getParentRoute:()=>US}),jW=VC.update({id:`/student`,path:`/student`,getParentRoute:()=>US}),MW=WC.update({id:`/security`,path:`/security`,getParentRoute:()=>US}),NW=GC.update({id:`/resources`,path:`/resources`,getParentRoute:()=>US}),PW=nw.update({id:`/refer`,path:`/refer`,getParentRoute:()=>US}),FW=aw.update({id:`/product-overview`,path:`/product-overview`,getParentRoute:()=>US}),IW=ow.update({id:`/privacypolicy`,path:`/privacypolicy`,getParentRoute:()=>US}),LW=sw.update({id:`/pricing`,path:`/pricing`,getParentRoute:()=>US}),RW=LD.update({id:`/preboard`,path:`/preboard`,getParentRoute:()=>US}),zW=BD.update({id:`/mobile`,path:`/mobile`,getParentRoute:()=>US}),BW=HD.update({id:`/mba`,path:`/mba`,getParentRoute:()=>US}),VW=UD.update({id:`/logout`,path:`/logout`,getParentRoute:()=>US}),HW=KD.update({id:`/linkHandler`,path:`/linkHandler`,getParentRoute:()=>US}),UW=YD.update({id:`/jarvis`,path:`/jarvis`,getParentRoute:()=>US}),WW=XD.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>US}),GW=FO.update({id:`/get-started`,path:`/get-started`,getParentRoute:()=>US}),KW=IO.update({id:`/desktop-voice-panel`,path:`/desktop-voice-panel`,getParentRoute:()=>US}),qW=LO.update({id:`/desktop-login-start`,path:`/desktop-login-start`,getParentRoute:()=>US}),JW=RO.update({id:`/desktop-login-redirect`,path:`/desktop-login-redirect`,getParentRoute:()=>US}),YW=VO.update({id:`/desktop`,path:`/desktop`,getParentRoute:()=>US}),XW=GO.update({id:`/browser-extension`,path:`/browser-extension`,getParentRoute:()=>US}),ZW=rk.update({id:`/app`,path:`/app`,getParentRoute:()=>US}),QW=ok.update({id:`/ambassador`,path:`/ambassador`,getParentRoute:()=>US}),$W=lk.update({id:`/ai-agents`,path:`/ai-agents`,getParentRoute:()=>US}),eG=fk.update({id:`/about`,path:`/about`,getParentRoute:()=>US}),tG=mk.update({id:`/`,path:`/`,getParentRoute:()=>US}),nG=YL.update({id:`/guides/`,path:`/guides/`,getParentRoute:()=>US}),rG=tR.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>US}),iG=oR.update({id:`/use-cases/$slug`,path:`/use-cases/$slug`,getParentRoute:()=>US}),aG=sR.update({id:`/unsubscribe/$type`,path:`/unsubscribe/$type`,getParentRoute:()=>US}),oG=PR.update({id:`/shared/$token`,path:`/shared/$token`,getParentRoute:()=>US}),sG=IR.update({id:`/guides/$slug`,path:`/guides/$slug`,getParentRoute:()=>US}),cG=LR.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>US}),lG=RR.update({id:`/auth/open-app`,path:`/auth/open-app`,getParentRoute:()=>US}),uG=zR.update({id:`/auth/desktop-login`,path:`/auth/desktop-login`,getParentRoute:()=>US}),dG=BR.update({id:`/`,path:`/`,getParentRoute:()=>NW}),fG=ZR.update({id:`/`,path:`/`,getParentRoute:()=>WW}),pG=QR.update({id:`/$slug`,path:`/$slug`,getParentRoute:()=>WW}),mG=jz.update({id:`/subscribe`,path:`/subscribe`,getParentRoute:()=>ZW}),hG=Mz.update({id:`/settings`,path:`/settings`,getParentRoute:()=>ZW}),gG=uH.update({id:`/reactivation`,path:`/reactivation`,getParentRoute:()=>ZW}),_G=dH.update({id:`/plans`,path:`/plans`,getParentRoute:()=>ZW}),vG=MH.update({id:`/onboarding`,path:`/onboarding`,getParentRoute:()=>ZW}),yG=VH.update({id:`/extension-handler`,path:`/extension-handler`,getParentRoute:()=>ZW}
77),bG=HH.update({id:`/auth`,path:`/auth`,getParentRoute:()=>ZW}),xG=UH.update({id:`/_shell`,getParentRoute:()=>ZW}),SG=WH.update({id:`/blog/tag/$tag`,path:`/blog/tag/$tag`,getParentRoute:()=>US}),CG=GH.update({id:`/blog/page/$page`,path:`/blog/page/$page`,getParentRoute:()=>US}),wG=KH.update({id:`/blog/author/$slug`,path:`/blog/author/$slug`,getParentRoute:()=>US}),TG=qH.update({id:`/contact/$contactId`,path:`/contact/$contactId`,getParentRoute:()=>ZW}),EG=JH.update({id:`/`,path:`/`,getParentRoute:()=>hG}),DG=YH.update({id:`/zapier`,path:`/zapier`,getParentRoute:()=>hG}),OG=XH.update({id:`/text-messaging`,path:`/text-messaging`,getParentRoute:()=>hG}),kG=ZH.update({id:`/team`,path:`/team`,getParentRoute:()=>hG}),AG=QH.update({id:`/tags`,path:`/tags`,getParentRoute:()=>hG}),jG=aU.update({id:`/sync-integrations`,path:`/sync-integrations`,getParentRoute:()=>hG}),MG=oU.update({id:`/social-links`,path:`/social-links`,getParentRoute:()=>hG}),NG=sU.update({id:`/profile`,path:`/profile`,getParentRoute:()=>hG}),PG=cU.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>hG}),FG=lU.update({id:`/note-types`,path:`/note-types`,getParentRoute:()=>hG}),IG=dU.update({id:`/import-export`,path:`/import-export`,getParentRoute:()=>hG}),LG=fU.update({id:`/general`,path:`/general`,getParentRoute:()=>hG}),RG=hU.update({id:`/data`,path:`/data`,getParentRoute:()=>hG}
77),zG=gU.update({id:`/custom-fields`,path:`/custom-fields`,getParentRoute:()=>hG}),BG=_U.update({id:`/billing`,path:`/billing`,getParentRoute:()=>hG}),VG=vU.update({id:`/automation`,path:`/automation`,getParentRoute:()=>hG}),HG=yU.update({id:`/api`,path:`/api`,getParentRoute:()=>hG}),UG=bU.update({id:`/$section`,path:`/$section`,getParentRoute:()=>hG}),WG=xU.update({id:`/`,path:`/`,getParentRoute:()=>vG}),GG=SU.update({id:`/resurface`,path:`/resurface`,getParentRoute:()=>vG}),KG=CU.update({id:`/phone`,path:`/phone`,getParentRoute:()=>vG}),qG=wU.update({id:`/identity`,path:`/identity`,getParentRoute:()=>vG}),JG=TU.update({id:`/extension`,path:`/extension`,getParentRoute:()=>vG}),YG=EU.update({id:`/everywhere`,path:`/everywhere`,getParentRoute:()=>vG}),XG=DU.update({id:`/copilot`,path:`/copilot`,getParentRoute:()=>vG}),ZG=OU.update({id:`/contacts`,path:`/contacts`,getParentRoute:()=>vG}),QG=kU.update({id:`/connected`,path:`/connected`,getParentRoute:()=>vG}),$G=AU.update({id:`/connect-whatsapp`,path:`/connect-whatsapp`,getParentRoute:()=>vG}),eK=jU.update({id:`/connect-mcp`,path:`/connect-mcp`,getParentRoute:()=>vG}),tK=MU.update({id:`/connect-linkedin`,path:`/connect-linkedin`,getParentRoute:()=>vG}),nK=NU.update({id:`/connect-instagram`,path:`/connect-instagram`,getParentRoute:()=>vG}),rK=PU.update({id:`/connect-imessage`,path:`/connect-imessage`,getParentRoute:()=>vG}),iK=FU.update({id:`/connect-email`,path:`/connect-email`,getParentRoute:()=>vG}),aK=IU.update({id:`/connect`,path:`/connect`,getParentRoute:()=>vG}),oK=LU.update({id:`/about`,path:`/about`,getParentRoute:()=>vG}),sK=RU.update({id:`/sign-up`,path:`/sign-up`,getParentRoute:()=>bG}),cK=zU.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>bG}),lK=HU.update({id:`/mcp-authorize`,path:`/mcp-authorize`,getParentRoute:()=>bG}),uK=UU.update({id:`/forgot-password`,path:`/forgot-password`,getParentRoute:()=>bG}),dK=WU.update({id:`/device-code`,path:`/device-code`,getParentRoute:()=>bG}),fK=qU.update({id:`/check-email`,path:`/check-email`,getParentRoute:()=>bG}),pK=XU.update({id:`/action`,path:`/action`,getParentRoute:()=>bG}),mK=ZU.update({id:`/`,path:`/`,getParentRoute:()=>xG}),hK=QU.update({id:`/timeline`,path:`/timeline`,getParentRoute:()=>xG}),gK=eW.update({id:`/search`,path:`/search`,getParentRoute:()=>xG}),_K=tW.update({id:`/reminders`,path:`/reminders`,getParentRoute:()=>xG}),vK=nW.update({id:`/refer`,path:`/refer`,getParentRoute:()=>xG}),yK=rW.update({id:`/priority-map`,path:`/priority-map`,getParentRoute:()=>xG}),bK=iW.update({id:`/network`,path:`/network`,getParentRoute:()=>xG}),xK=aW.update({id:`/merge-and-fix`,path:`/merge-and-fix`,getParentRoute:()=>xG}),SK=oW.update({id:`/map`,path:`/map`,getParentRoute:()=>xG}),CK=sW.update({id:`/locations`,path:`/locations`,getParentRoute:()=>xG}),wK=cW.update({id:`/keep-in-touch`,path:`/keep-in-touch`,getParentRoute:()=>xG}),TK=lW.update({id:`/import`,path:`/import`,getParentRoute:()=>xG}),EK=fW.update({id:`/game`,path:`/game`,getParentRoute:()=>xG}),DK=pW.update({id:`/copilot`,path:`/copilot`,getParentRoute:()=>xG}),OK=mW.update({id:`/contacts`,path:`/contacts`,getParentRoute:()=>xG}),kK=hW.update({id:`/birthdays`,path:`/birthdays`,getParentRoute:()=>xG}),AK=gW.update({id:`/archive`,path:`/archive`,getParentRoute:()=>xG}),jK=_W.update({id:`/view/$viewId`,path:`/view/$viewId`,getParentRoute:()=>xG}),MK=vW.update({id:`/tag/$tagId`,path:`/tag/$tagId`,getParentRoute:()=>xG}),NK=yW.update({id:`/location/$locationName`,path:`/location/$locationName`,getParentRoute:()=>xG}),PK=bW.update({id:`/group/$groupId`,path:`/group/$groupId`,getParentRoute:()=>xG}),FK=xW.update({id:`/`,path:`/`,getParentRoute:()=>bK}),IK=SW.update({id:`/related`,path:`/related`,getParentRoute:()=>bK}),LK=CW.update({id:`/insights`,path:`/insights`,getParentRoute:()=>bK}),RK=wW.update({id:`/companies`,path:`/companies`,getParentRoute:()=>bK}),zK=TW.update({id:`/`,path:`/`,getParentRoute:()=>DK}),BK=EW.update({id:`/$threadId`,path:`/$threadId`,getParentRoute:()=>DK}),VK=DW.update({id:`/referral/$kind/$id`,path:`/referral/$kind/$id`,getParentRoute:()=>bG}
77),HK={AppShellCopilotThreadIdRoute:BK,AppShellCopilotIndexRoute:zK},UK=DK._addFileChildren(HK),WK={AppShellNetworkCompaniesRoute:RK,AppShellNetworkInsightsRoute:LK,AppShellNetworkRelatedRoute:IK,AppShellNetworkIndexRoute:FK},GK={AppShellArchiveRoute:AK,AppShellBirthdaysRoute:kK,AppShellContactsRoute:OK,AppShellCopilotRoute:UK,AppShellGameRoute:EK,AppShellImportRoute:TK,AppShellKeepInTouchRoute:wK,AppShellLocationsRoute:CK,AppShellMapRoute:SK,AppShellMergeAndFixRoute:xK,AppShellNetworkRoute:bK._addFileChildren(WK),AppShellPriorityMapRoute:yK,AppShellReferRoute:vK,AppShellRemindersRoute:_K,AppShellSearchRoute:gK,AppShellTimelineRoute:hK,AppShellIndexRoute:mK,AppShellGroupGroupIdRoute:PK,AppShellLocationLocationNameRoute:NK,AppShellTagTagIdRoute:MK,AppShellViewViewIdRoute:jK},KK=xG._addFileChildren(GK),qK={AppAuthActionRoute:pK,AppAuthCheckEmailRoute:fK,AppAuthDeviceCodeRoute:dK,AppAuthForgotPasswordRoute:uK,AppAuthMcpAuthorizeRoute:lK,AppAuthSignInRoute:cK,AppAuthSignUpRoute:sK,AppAuthReferralKindIdRoute:VK},JK=bG._addFileChildren(qK),YK={AppOnboardingAboutRoute:oK,AppOnboardingConnectRoute:aK,AppOnboardingConnectEmailRoute:iK,AppOnboardingConnectImessageRoute:rK,AppOnboardingConnectInstagramRoute:nK,AppOnboardingConnectLinkedinRoute:tK,AppOnboardingConnectMcpRoute:eK,AppOnboardingConnectWhatsappRoute:$G,AppOnboardingConnectedRoute:QG,AppOnboardingContactsRoute:ZG,AppOnboardingCopilotRoute:XG,AppOnboardingEverywhereRoute:YG,AppOnboardingExtensionRoute:JG,AppOnboardingIdentityRoute:qG,AppOnboardingPhoneRoute:KG,AppOnboardingResurfaceRoute:GG,AppOnboardingIndexRoute:WG},XK=vG._addFileChildren(YK),ZK={AppSettingsSectionRoute:UG,AppSettingsApiRoute:HG,AppSettingsAutomationRoute:VG,AppSettingsBillingRoute:BG,AppSettingsCustomFieldsRoute:zG,AppSettingsDataRoute:RG,AppSettingsGeneralRoute:LG,AppSettingsImportExportRoute:IG,AppSettingsNoteTypesRoute:FG,AppSettingsNotificationsRoute:PG,AppSettingsProfileRoute:NG,AppSettingsSocialLinksRoute:MG,AppSettingsSyncIntegrationsRoute:jG,AppSettingsTagsRoute:AG,AppSettingsTeamRoute:kG,AppSettingsTextMessagingRoute:OG,AppSettingsZapierRoute:DG,AppSettingsIndexRoute:EG},QK={AppShellRoute:KK,AppAuthRoute:JK,AppExtensionHandlerRoute:yG,AppOnboardingRoute:XK,AppPlansRoute:_G,AppReactivationRoute:gG,AppSettingsRoute:hG._addFileChildren(ZK),AppSubscribeRoute:mG,AppContactContactIdRoute:TG},$K=ZW._addFileChildren(QK),eq={IntegrationsSlugRoute:pG,IntegrationsIndexRoute:fG},tq=WW._addFileChildren(eq),nq={ResourcesIndexRoute:dG},rq={IndexRoute:tG,AboutRoute:eG,AiAgentsRoute:$W,AmbassadorRoute:QW,AppRoute:$K,BrowserExtensionRoute:XW,DesktopRoute:YW,DesktopLoginRedirectRoute:JW,DesktopLoginStartRoute:qW,De
77sktopVoicePanelRoute:KW,GetStartedRoute:GW,IntegrationsRoute:tq,JarvisRoute:UW,LinkHandlerRoute:HW,LogoutRoute:VW,MbaRoute:BW,MobileRoute:zW,PreboardRoute:RW,PricingRoute:LW,PrivacypolicyRoute:IW,ProductOverviewRoute:FW,ReferRoute:PW,ResourcesRoute:NW._addFileChildren(nq),SecurityRoute:MW,StudentRoute:jW,SupportRoute:AW,TermsofserviceRoute:kW,TestimonialsRoute:OW,AuthDesktopLoginRoute:uG,AuthOpenAppRoute:lG,BlogSlugRoute:cG,GuidesSlugRoute:sG,SharedTokenRoute:oG,UnsubscribeTypeRoute:aG,UseCasesSlugRoute:iG,BlogIndexRoute:rG,GuidesIndexRoute:nG,BlogAuthorSlugRoute:wG,BlogPagePageRoute:CG,BlogTagTagRoute:SG},iq=US._addFileChildren(rq);function aq(e){return e===`/app`||e.startsWith(`/app/`)}var oq=[`Error invoking postMessage: Java exception was raised during method invocation`,`Error invoking postMessage: Java object is gone`];function sq(e){let t=e instanceof Error?e.message:typeof e==`string`?e:``;return t?oq.some(e=>t===e||t.endsWith(e)):!1}function cq(e,t){if(typeof e!=`object`||!e||typeof e.postMessage!=`function`)return!1;let n;try{n=typeof t==`string`?t:JSON.stringify(t)}catch{return!1}try{return e.postMessage(n),!0}catch(e){if(sq(e))return!1;throw e}}function lq(e){let t=e.postMessage.bind(e);return e.postMessage=function(e){cq({postMessage:t},e)},e}function uq(e){try{return e(),!0}catch(e){if(sq(e))return!1;throw e}}function dq(e){let t=e===void 0?typeof window>`u`?null:window:e;typeof t!=`object`||!t||(hq(t),gq(t))}function fq(e){return typeof e==`object`&&!!e&&typeof e.postMessage==`function`}function pq(e){return function(...t){try{return e.apply(this,t)}catch(e){if(sq(e))return;throw e}}}function mq(e){return typeof e==`function`?pq(e):fq(e)?lq(e):e}function hq(e){let t=e.__call_iabjs_unified_bridge,n=mq(t);t!==void 0&&(e.__call_iabjs_unified_bridge=n);try{Object.defineProperty(e,"__call_iabjs_unified_bridge",{configurable:!0,enumerable:!0,get(){return n},set(e){n=mq(e)}})}catch{}}function gq(e){typeof e.addEventListener==`function`&&e.addEventListener(`error`,function(e){sq(e.error??e.message)&&(e.preventDefault(),e.stopImmediatePropagation())},!0)}var _q=`[pw-census]`;function vq(){if(typeof window>`u`)return!1;try{return window.localStorage.getItem(`DEX_PW_DEBUG`)===`1`}catch{return!1}}function yq(){return(Error(`pw-census stack probe`).stack||``).split(` 78`).map(e=>e.trim()).filter(e=>e.startsWith(`at `)&&!e.includes(`pw-prompt-census`)&&!e.includes(`logEvent`)&&!e.includes(`topFrames`)).slice(0,3).map(e=>e.replace(/^at\s+/,``).replace(/\s+\(.*$/,``).replace(/^Object\./,``).trim()).filter(Boolean).join(` â `)}var bq=0,xq=typeof performance<`u`?performance.now():0;function Sq(e,t,n){bq+=1;let r=Math.round((typeof performance<`u`?performance.now():0)-xq),i=typeof window<`u`?window.location.pathname+window.location.search:``,a={seq:bq,t:r,kind:e,url:i,detail:t,frames:n},o=window;(o.__pwCensus??=[]).push(a);let s=[`${_q} #${bq} +${r}ms ${e}`,t||``,`â ${i}`,n?`(frames: ${n})`:``].filter(Boolean);console.info(s.join(` `))}var Cq=!1;function wq(){let e=History.prototype.pushState,t=History.prototype.replaceState;History.prototype.pushState=function(...t){return Cq||Sq(`pushState`,String(t[2]??``),yq()),e.apply(this,t)},History.prototype.replaceState=function(...e){return Cq||Sq(`replaceState`,String(e[2]??``),yq()),t.apply(this,e)};let n=window.history,r=n.pushState.bind(n),i=n.replaceState.bind(n);n.pushState=function(...e){Sq(`pushState`,String(e[2]??``),yq()),Cq=!0;try{return r(...e)}finally{Cq=!1}},n.replaceState=function(...e){Sq(`replaceState`,String(e[2]??``),yq()),Cq=!0;try{return i(...e)}finally{Cq=!1}}}function Tq(){document.addEventListener(`submit`,e=>{Sq(`submit-event`,e.target?.querySelector?.(`input[type=password]`)?`(hasPassword)`:``,yq())},!0);let e=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(...t){return Sq(`form.submit()`,this.id?`#${this.id}`:``,yq()),e.apply(this,t)};let t=HTMLFormElement.prototype.requestSubmit;t&&(HTMLFormElement.prototype.requestSubmit=function(...e){return Sq(`form.requestSubmit()`,this.id?`#${this.id}`:``,yq()),t.apply(this,e)})}function Eq(){let e=navigator.credentials;if(!e)return;let t=e.store?.bind(e),n=e.get?.bind(e);t&&(e.store=function(...e){return Sq(`credentials.store`,``,yq()),t(...e)}),n&&(e.get=function(...e){return Sq(`credentials.get`,``,yq()),n(...e)})}function Dq(){let e=window.addEventListener.bind(window);window.addEventListener=function(t,n,r){return(t===`popstate`||t===`hashchange`)&&Sq(`addEventListener:${t}`,``,yq()),e(t,n,r)}}function Oq(e,t){if(e.nodeType!==1)return;let n=e,r=e=>{if(e.matches(`input[type=password]`)){let n=e.getAttribute(`autocomplete`);Sq(`password-input:${t}`,n?`[autocomplete=${n}]`:``)}
78if(e.matches(`form`)){let n=!!e.querySelector(`input[type=password]`);Sq(`form:${t}`,n?`(hasPassword)`:``)}};r(n),n.querySelectorAll(`input[type=password], form`).forEach(r)}function kq(){let e=()=>{new MutationObserver(e=>{for(let t of e)t.addedNodes.forEach(e=>Oq(e,`mount`)),t.removedNodes.forEach(e=>Oq(e,`unmount`))}).observe(document.documentElement,{childList:!0,subtree:!0})};document.documentElement?e():document.addEventListener(`DOMContentLoaded`,e,{once:!0})}function Aq(){if(!vq())return;let e=window;if(!e.__pwCensusInstalled){e.__pwCensusInstalled=!0,e.__pwCensus=[];try{wq(),Tq(),Eq(),Dq(),kq(),Sq(`census-installed`,`gate=${window.location.hostname}`)}catch(e){console.info(`${_q} install failed`,e)}}}var jq=[{href:`/sitemap.md`,label:`Markdown sitemap`,hint:`every page that publishes a markdown variant`},{href:`/llms.txt`,label:`llms.txt`,hint:`condensed site overview`},{href:`/docs`,label:`Documentation`,hint:`product docs index`},{href:`/sitemap.xml`,label:`sitemap.xml`,hint:`full URL list`}];function Mq(){let e=(0,q.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={animationDelay:`260ms`},n=(0,U.jsx)(`h2`,{id:`not-found-agent-links`,className:`text-caption-md uppercase tracking-[0.18em] text-muted-foreground`,children:`Index of this site`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsxs)(`nav`,{"aria-labelledby":`not-found-agent-links`,className:`rise-in mt-14 border-t border-border pt-6`,style:t,children:[n,(0,U.jsx)(`ul`,{className:`mt-3 space-y-1.5`,children:jq.map(Nq)})]}),e[2]=r):r=e[2],r}function Nq(e){return(0,U.jsxs)(`li`,{className:`text-sm text-muted-foreground`,children:[(0,U.jsx)(`a`,{href:e.href,className:`text-primary-text underline underline-offset-4 transition-colors hover:text-primary focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/32`,children:e.label}),` `,`â `,e.hint]},e.href)}function Pq(){let e=(0,q.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,U.jsxs)(`div`,{className:`rise-in flex items-center gap-3 text-muted-foreground`,style:{animationDelay:`0ms`},children:[(0,U.jsx)(`span`,{"aria-hidden":!0,className:`h-px w-10 bg-current opacity-40`}),(0,U.jsx)(`span`,{className:`text-[0.6875rem] font-medium uppercase tracking-[0.22em]`,children:`Page not found`})]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,U.jsx)(`h1`,{className:`rise-in mt-6 italic text-display-lg text-foreground sm:text-display-xl`,style:{animationDelay:`80ms`},children:`Nothing here.`}),e[1]=n):n=e[1];let r,i;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r={animationDelay:`180ms`},i=(0,U.jsx)(`p`,{className:`max-w-[48ch] text-lg leading-normal text-muted-foreground`,children:`The page youâre looking for may have moved, or it may have never been here.`}),e[2]=r,e[3]=i):(r=e[2],i=e[3]);let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(`main`,{className:`flex min-h-screen flex-col justify-center`,children:(0,U.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-6 sm:px-12 lg:px-20 xl:px-28`,children:(0,U.jsxs)(`div`,{className:`max-w-xl`,children:[t,n,(0,U.jsxs)(`div`,{className:`rise-in mt-8`,style:r,children:[i,(0,U.jsx)(`div`,{className:`mt-12 flex items-center gap-8`,children:(0,U.jsx)(ae,{to:`/`,className:`inline-flex items-center rounded-md bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground shadow-xs transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/32`,children:`Take me home`})}),(0,U.jsx)(Mq,{})]})]})})}),e[4]=a):a=e[4],a}z();function Fq({error:e}){let[t,n]=(0,H.useState)(!1);(0,H.useEffect)(()=>{n(!0)},[]),(0,H.useEffect)(()=>{B(()=>import(`./esm-CKhyEPqg.js`).then(e=>e.t).then(t=>t.captureException(e)),__vite__mapDeps([0,1,2])).catch(()=>{})},[e]);let r=``;try{let t=e?.message;typeof t==`string`&&(r=t)}catch{}return(0,U.jsx)(`main`,{className:`flex min-h-screen flex-col justify-center`,children:(0,U.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-6 sm:px-12 lg:px-20 xl:px-28`,children:(0,U.jsxs)(`div`,{className:`max-w-xl`,children:[(0,U.jsxs)(`div`,{className:`rise-in flex items-center gap-3 text-muted-foreground`,style:{animationDelay:`0ms`}
78,children:[(0,U.jsx)(`span`,{"aria-hidden":!0,className:`h-px w-10 bg-current opacity-40`}),(0,U.jsx)(`span`,{className:`text-[0.6875rem] font-medium uppercase tracking-[0.22em]`,children:`Something went wrong`})]}),(0,U.jsx)(`h1`,{className:`rise-in mt-6 italic text-display-lg text-foreground sm:text-display-xl`,style:{animationDelay:`80ms`},children:`That didnât load.`}),(0,U.jsxs)(`div`,{className:`rise-in mt-8`,style:{animationDelay:`180ms`},children:[(0,U.jsx)(`p`,{className:`max-w-[48ch] text-lg leading-normal text-muted-foreground`,children:`Something broke while showing this page. Itâs been reported â reloading usually fixes it.`}),t&&r?(0,U.jsx)(`p`,{className:`mt-4 max-w-[56ch] truncate font-mono text-xs text-muted-foreground/70`,children:r}):null,(0,U.jsxs)(`div`,{className:`mt-12 flex items-center gap-8`,children:[(0,U.jsx)(`button`,{type:`button`,onClick:()=>window.location.reload(),className:`inline-flex items-center rounded-md bg-primary px-5 py-2.5 text-sm font-medium text-primary-foreground shadow-xs transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/32`,children:`Reload page`}),(0,U.jsx)(ae,{to:`/`,className:`text-sm font-medium text-muted-foreground transition-colors hover:text-foreground`,children:`Take me home`})]})]})]})})})}z(),Aq(),typeof window<`u`&&dq(),(()=>{if(aq(window.location.pathname)){B(()=>import(`./instrument.client-BPv1_iSV.js`),__vite__mapDeps([519,103,104,0,1,2]));return}Me().then(()=>B(()=>import(`./instrument.client-BPv1_iSV.js`),__vite__mapDeps([519,103,104,0,1,2])))})();function Iq(){let e=ye(),t=Ul({routeTree:iq,context:e,routeMasks:[se({routeTree:iq,from:`/app/refer`,to:`/refer`})],scrollRestoration:!0,getScrollRestorationKey:e=>e.href,defaultPreload:`intent`,defaultPreloadStaleTime:3e4,defaultNotFoundComponent:Pq,defaultErrorComponent:Fq});return uu({router:t,queryClient:e.queryClient}),AO(t),t}async function Lq(){let e=await Iq(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(nl),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await al(e),e}var Rq=Lq;async function zq(){let e=await Rq();return window.$_TSR?.h(),e}var Bq;function Vq(){return Bq||=zq(),(0,U.jsx)(sl,{promise:Bq,children:e=>(0,U.jsx)(Yl,{router:e})})}var Hq=Jn();(0,H.startTransition)(()=>{(0,Hq.hydrateRoot)(document,(0,U.jsx)(H.StrictMode,{children:(0,U.jsx)(Vq,{})}))});export{xz as $,of as $i,$b as $n,mg as $r,PD as $t,WH as A,Op as Ai,KC as An,Tv as Ar,ck as At,vH as B,ap as Bi,uS as Bn,$g as Br,TO as Bt,pU as C,sm as Ci,qT as Cn,Zy as Cr,rR as Ct,iU as D,Mp as Di,lT as Dn,Pv as Dr,eL as Dt,nU as E,Np as Ei,vT as En,Hv as Er,YL as Et,MH as F,vp as Fi,tC as Fn,R_ as Fr,NO as Ft,sH as G,ep as Gi,iS as Gn,Ag as Gr,oO as Gt,xH as H,rp as Hi,sS as Hn,Jg as Hr,_O as Ht,OH as I,lp as Ii,DS as In,D_ as Ir,PO as It,JB as J,Zf as Ji,Wx as Jn,rg as Jr,JD as Jt,ZB as K,$f as Ki,rS as Kn,ng as Kr,iO as Kt,kH as L,cp as Li,RS as Ln,l_ as Lr,MO as Lt,zH as M,wp as Mi,jC as Mn,Dv as Mr,$O as Mt,BH as N,Sp as Ni,IC as Nn,Cv as Nr,ek as Nt,KH as O,Ap as Oi,tw as On,Av as Or,tL as Ot,RH as P,bp as Pi,RC as Pn,fv as Pr,LO as Pt,Dz as Q,vf as Qi,Ax as Qn,pg as Qr,LD as Qt,DH as R,sp as Ri,zS as Rn,e_ as Rr,OO as Rt,hU as S,$m as Si,GT as Sn,Jy as Sr,oR as St,aU as T,Qp as Ti,yT as Tn,Wv as Tr,tR as Tt,SH as U,np as Ui,aS as Un,Rg as Ur,pO as Ut,gH as V,ip as Vi,cS as Vn,Gg as Vr,gO as Vt,uH as W,tp as Wi,mS as Wn,Pg as Wr,aO as Wt,Ez as X,Jf as Xi,Fx as Xn,eg as Xr,KD as Xt,jz as Y,Yf as Yi,Ux as Yn,Qh as Yr,qD as Yt,Tz as Z,qf as Zi,Ix as Zn,hg as Zr,VD as Zt,RU as _,gg as _i,cE as _n,Hy as _r,SR as _t,CW as a,ju as aa,cg as ai,WE as an,Ab as ar,ez as at,kU as b,Zm as bi,tE as bn,eb as br,_R as bt,vW as c,Fu as ca,Mg as ci,zE as cn,vb as cr,GR as ct,eW as d,Xl as da,Jh as di,KE as dn,Ky as dr,JR as dt,sf as ea,dg as ei,qE as en,Vb as er,mz as et,$U as f,Vl as fa,Ng as fi,UE as fn,Vy as fr,BR as ft,HU as g,ig as gi,uE as gn,Uy as gr,PR as gt,qU as h,ah as hi,fE as hn,qy as hr,IR as ht,DW as i,xu as ia,Yh as ii,JE as in,kb as ir,dz as it,VH as j,Ep as ji,BC as jn,kv as jr,sk as
78jt,GH as k,kp as ki,XC as kn,jv as kr,nL as kt,_W as l,fu as la,Ph as li,GE as ln,hb as lr,KR as lt,XU as m,jg as mi,pE as mn,zy as mr,LR as mt,uq as n,Bd as na,Gh as ni,RE as nn,Nb as nr,oz as nt,bW as o,Iu as oa,qh as oi,HE as on,Mb as or,$R as ot,ZU as p,Wh as pi,CE as pn,Gy as pr,zR as pt,YB as q,Qf as qi,Qx as qn,Zh as qr,ZD as qt,aq as r,Ud as ra,Kh as ri,LE as rn,zb as rr,az as rt,yW as s,Mu as sa,tg as si,BE as sn,jb as sr,QR as st,oq as t,Wd as ta,fg as ti,VE as tn,Bb as tr,uz as tt,fW as u,su as ua,Uh as ui,YE as un,ub as ur,qR as ut,IU as v,ug as vi,oE as vn,Wy as vr,NR as vt,dU as w,$p as wi,KT as wn,Kv as wr,aR as wt,bU as x,Qm as xi,JT as xn,Yy as xr,sR as xt,FU as y,$h as yi,aE as yn,Qy as yr,gR as yt,fH as z,op as zi,oS as zn,t_ as zr,kO as zt};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.